summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2019-06-25 10:45:58 -0300
committerYaco <franco@reevo.org>2019-06-25 10:45:58 -0300
commitb3cc9ccd27b2983533f11071a177d2cde0d7b56c (patch)
tree8679f345cf8adc42e102f96e4b8ed3a563b7fd75
parentc9793814bd7490cd54e47463461996431252abf6 (diff)
agrega SemanticFormsSelect
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/.gitignore11
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/.scrutinizer.yml28
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/.travis.yml38
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/COPYING103
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/ISSUE_TEMPLATE.md18
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/README.md101
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/RELEASE-NOTES.md91
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/SemanticFormsSelect.hooks.php38
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/composer.json64
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/extension.json63
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/ar.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/ast.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/be-tarask.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/be.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/br.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/ca.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/de.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/en.json9
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/es.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/fr.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/gl.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/ia.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/li.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/mk.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/nb.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/nl.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/pl.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/pt-br.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/pt.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/qqq.json9
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/roa-tara.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/ru.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/sr-ec.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/tr.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/uk.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/zh-hans.json8
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/i18n/zh-hant.json9
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/phpunit.xml.dist28
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/res/scriptSelect.js490
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/res/select2.css42
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/res/select2.pngbin0 -> 613 bytes
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelect.php94
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelectRequestProcessor.php149
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/src/Output.php47
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/src/SelectField.php210
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/src/SemanticFormsSelectInput.php307
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/tests/bootstrap.php29
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/ApiSemanticFormsSelectRequestProcessorTest.php134
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/ApiSemanticFormsSelectTest.php95
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/OutputTest.php50
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/SelectFieldTest.php270
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/SemanticFormsSelectInputTest.php84
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/tests/travis/install-mediawiki.sh43
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/tests/travis/install-semantic-forms-select.sh73
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/tests/travis/run-tests.sh14
-rw-r--r--www/wiki/extensions/SemanticFormsSelect/tests/travis/upload-coverage-report.sh10
l---------www/wiki/vendor/bin/jsonlint1
l---------www/wiki/vendor/bin/parallel-lint1
l---------www/wiki/vendor/bin/php-parse1
l---------www/wiki/vendor/bin/phpcbf1
l---------www/wiki/vendor/bin/phpcs1
l---------www/wiki/vendor/bin/phpunit1
l---------www/wiki/vendor/bin/psysh1
l---------www/wiki/vendor/bin/validate-json1
-rw-r--r--www/wiki/vendor/composer/autoload_classmap.php1401
-rw-r--r--www/wiki/vendor/composer/autoload_files.php10
-rw-r--r--www/wiki/vendor/composer/autoload_namespaces.php3
-rw-r--r--www/wiki/vendor/composer/autoload_psr4.php19
-rw-r--r--www/wiki/vendor/composer/autoload_static.php1541
-rw-r--r--www/wiki/vendor/composer/installed.json2462
-rw-r--r--www/wiki/vendor/composer/spdx-licenses/.php_cs.dist59
-rw-r--r--www/wiki/vendor/composer/spdx-licenses/CHANGELOG.md69
-rw-r--r--www/wiki/vendor/composer/spdx-licenses/LICENSE19
-rw-r--r--www/wiki/vendor/composer/spdx-licenses/README.md69
-rw-r--r--www/wiki/vendor/composer/spdx-licenses/composer.json57
-rw-r--r--www/wiki/vendor/composer/spdx-licenses/res/spdx-exceptions.json83
-rw-r--r--www/wiki/vendor/composer/spdx-licenses/res/spdx-licenses.json1847
-rw-r--r--www/wiki/vendor/composer/spdx-licenses/src/SpdxLicenses.php343
-rw-r--r--www/wiki/vendor/dnoegel/php-xdg-base-dir/.gitignore1
-rw-r--r--www/wiki/vendor/dnoegel/php-xdg-base-dir/LICENSE19
-rw-r--r--www/wiki/vendor/dnoegel/php-xdg-base-dir/README.md38
-rw-r--r--www/wiki/vendor/dnoegel/php-xdg-base-dir/composer.json17
-rw-r--r--www/wiki/vendor/dnoegel/php-xdg-base-dir/phpunit.xml.dist24
-rw-r--r--www/wiki/vendor/dnoegel/php-xdg-base-dir/src/Xdg.php121
-rw-r--r--www/wiki/vendor/dnoegel/php-xdg-base-dir/tests/XdgTest.php116
-rw-r--r--www/wiki/vendor/doctrine/instantiator/.gitignore5
-rw-r--r--www/wiki/vendor/doctrine/instantiator/.scrutinizer.yml46
-rwxr-xr-xwww/wiki/vendor/doctrine/instantiator/.travis.install.sh14
-rw-r--r--www/wiki/vendor/doctrine/instantiator/.travis.yml22
-rw-r--r--www/wiki/vendor/doctrine/instantiator/CONTRIBUTING.md35
-rw-r--r--www/wiki/vendor/doctrine/instantiator/LICENSE19
-rw-r--r--www/wiki/vendor/doctrine/instantiator/README.md40
-rw-r--r--www/wiki/vendor/doctrine/instantiator/composer.json45
-rw-r--r--www/wiki/vendor/doctrine/instantiator/phpmd.xml.dist27
-rw-r--r--www/wiki/vendor/doctrine/instantiator/phpunit.xml.dist22
-rw-r--r--www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/ExceptionInterface.php29
-rw-r--r--www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/InvalidArgumentException.php62
-rw-r--r--www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php79
-rw-r--r--www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php273
-rw-r--r--www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php37
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorPerformance/InstantiatorPerformanceEvent.php96
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/InvalidArgumentExceptionTest.php83
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/UnexpectedValueExceptionTest.php69
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php219
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/AbstractClassAsset.php29
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/ArrayObjectAsset.php41
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/ExceptionAsset.php41
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/FinalExceptionAsset.php41
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/PharAsset.php41
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/PharExceptionAsset.php44
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SerializableArrayObjectAsset.php62
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SimpleSerializableAsset.php61
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SimpleTraitAsset.php29
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnCloneableAsset.php50
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnserializeExceptionArrayObjectAsset.php39
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/WakeUpNoticesAsset.php38
-rw-r--r--www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/XMLReaderAsset.php41
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/.coveralls.yml1
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/.gitignore1
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/.gush.yml7
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/.travis.yml24
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/CHANGES.txt167
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/LICENSE.txt27
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/README.md53
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/TODO.txt22
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/composer.json38
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/composer.lock1493
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryCall.php41
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryClass.php72
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryFile.php122
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryGenerator.php115
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryMethod.php231
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryParameter.php69
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/GlobalFunctionFile.php42
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php38
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/file_header.txt7
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_footer.txt0
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_header.txt24
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_imports.txt0
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_footer.txt1
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_header.txt7
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_imports.txt2
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/generator/run.php37
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php805
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php118
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php63
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php59
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php57
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php75
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php80
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php73
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/MatchingOnce.php69
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php75
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php10
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseDescription.php132
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php25
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php71
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php47
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AllOf.php59
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php58
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php78
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php68
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php56
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php56
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php57
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php45
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php93
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php44
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php38
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php67
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php44
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php56
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php51
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php71
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php95
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php43
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php70
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/DiagnosingMatcher.php25
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php67
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php27
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php50
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php118
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php713
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php43
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/IsCloseTo.php67
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php132
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php23
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/StringDescription.php57
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php85
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php52
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php66
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php40
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php45
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php40
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php66
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php40
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php40
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php45
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php32
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsBoolean.php32
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsCallable.php37
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsDouble.php34
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsInteger.php32
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsNumeric.php54
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php32
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsResource.php32
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsScalar.php34
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsString.php32
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeDiagnosingMatcher.php29
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php107
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php76
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php195
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php66
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php54
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php44
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyTest.php62
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php36
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingTest.php50
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayTest.php89
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayWithSizeTest.php37
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php23
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsEmptyTraversableTest.php77
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php57
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AllOfTest.php56
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AnyOfTest.php79
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php59
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/DescribedAsTest.php36
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/EveryTest.php30
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/HasToStringTest.php108
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsAnythingTest.php29
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsCollectionContainingTest.php91
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsEqualTest.php102
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsIdenticalTest.php30
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php51
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNotTest.php31
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNullTest.php20
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsSameTest.php30
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTest.php33
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTypeOfTest.php45
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleBaseClass.php18
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleSubClass.php6
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SetTest.php116
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php73
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php190
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/IsCloseToTest.php27
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/OrderingComparisonTest.php41
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/StringDescriptionTest.php160
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEmptyStringTest.php86
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php40
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php51
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/MatchesPatternTest.php30
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php80
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php42
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php86
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php62
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php62
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsArrayTest.php35
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsBooleanTest.php35
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsCallableTest.php103
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsDoubleTest.php35
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsIntegerTest.php36
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsNumericTest.php53
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsObjectTest.php34
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsResourceTest.php34
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsScalarTest.php39
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsStringTest.php35
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php80
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Xml/HasXPathTest.php198
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/bootstrap.php11
-rw-r--r--www/wiki/vendor/hamcrest/hamcrest-php/tests/phpunit.xml.dist22
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/.gitignore3
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/.travis.yml24
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/LICENSE27
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/README.md10
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/build.xml93
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/composer.json23
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/example.php38
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/phpunit.xml16
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/src/ConsoleColor.php287
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/src/InvalidStyleException.php10
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-color/tests/ConsoleColorTest.php184
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/.gitignore4
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/.travis.yml21
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/LICENSE21
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/README.md40
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/build.xml93
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/composer.json26
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/snippet.php10
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/whole_file.php10
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/whole_file_line_numbers.php10
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/phpunit.xml15
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/src/JakubOnderka/PhpConsoleHighlighter/Highlighter.php267
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/tests/JakubOnderka/PhpConsoleHighligter/HigligterTest.php263
-rw-r--r--www/wiki/vendor/jakub-onderka/php-console-highlighter/tests/bootstrap.php2
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/.gitignore2
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/.travis.yml26
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/LICENSE26
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/README.md93
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/appveyor.yml29
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/bin/skip-linting.php22
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/box.json28
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/composer.json28
-rwxr-xr-xwww/wiki/vendor/jakub-onderka/php-parallel-lint/parallel-lint4
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/parallel-lint.php112
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/phpcs-ruleset.xml71
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Error.php244
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/ErrorFormatter.php152
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/JsonSerializable.php7
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Manager.php272
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Output.php449
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/ParallelLint.php261
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/GitBlameProcess.php143
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/LintProcess.php67
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/PhpExecutable.php128
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/PhpProcess.php27
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/Process.php150
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/SkipLintProcess.php89
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Result.php197
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Settings.php217
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/src/exceptions.php80
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/Manager.run.phpt122
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/ParallelLint.lint.phpt116
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/Settings.parseArguments.phpt72
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/SkipLintProcess.phpt40
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-01/empty-file0
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-02/example.php4
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-03/example.php4
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/dir1/dir2/index.php3
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/dir1/index.php2
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/index.php2
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-images/use-error.pngbin58486 -> 0 bytes
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/class.php6
-rw-r--r--www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/trait.php6
m---------www/wiki/vendor/jetbrains/phpstorm-stubs0
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/.gitattributes5
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/.php_cs.dist30
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/LICENSE21
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/README.md206
-rwxr-xr-xwww/wiki/vendor/justinrainbow/json-schema/bin/validate-json251
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/composer.json76
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/demo/README.md14
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/demo/data.json3
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/demo/demo.php18
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/demo/schema.json3
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/dist/schema/json-schema-draft-03.json174
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/dist/schema/json-schema-draft-04.json150
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/phpunit.xml.dist26
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php148
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php121
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php213
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php65
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php54
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php220
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php214
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/NumberConstraint.php81
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php192
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php94
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php60
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php68
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php40
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/TypeCheckInterface.php18
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php261
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php413
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.php161
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ExceptionInterface.php7
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidArgumentException.php17
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidConfigException.php17
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaException.php17
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.php17
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSourceUriException.php17
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/JsonDecodingException.php40
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ResourceNotFoundException.php17
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/RuntimeException.php17
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UnresolvableJsonPointerException.php19
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UriResolverException.php17
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ValidationException.php14
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php149
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Rfc3339.php30
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php169
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorageInterface.php41
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/AbstractRetriever.php34
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php83
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php93
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php56
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php36
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php175
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php349
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php26
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php26
-rw-r--r--www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php90
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/COPYRIGHT9
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/HISTORY.md183
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/LICENSE339
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/AlternativeSyntaxSniff.php39
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/LeadingZeroInFloatSniff.php66
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/PHP7UnicodeSyntaxSniff.php65
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/ShortCastSyntaxSniff.php65
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Commenting/FunctionCommentSniff.php612
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Commenting/IllegalSingleLineCommentSniff.php90
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ControlStructures/AssignmentInControlStructuresSniff.php61
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ControlStructures/IfElseStructureSniff.php83
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ExtraCharacters/ParenthesesAroundKeywordSniff.php75
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Files/ClassMatchesFilenameSniff.php61
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Files/OneClassPerFileSniff.php42
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/LowerCamelFunctionsNameSniff.php90
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/PrefixedGlobalFunctionsSniff.php112
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/ValidGlobalNameSniff.php93
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/DbrQueryUsageSniff.php42
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/DirUsageSniff.php89
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ExtendClassUsageSniff.php177
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/GotoUsageSniff.php32
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ReferenceThisSniff.php67
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ScalarTypeHintUsageSniff.php61
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/SuperGlobalsUsageSniff.php43
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/VariableAnalysis/UnusedGlobalVariablesSniff.php80
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/DisallowEmptyLineFunctionsSniff.php60
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/MultipleEmptyLinesSniff.php62
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/OpeningKeywordParenthesisSniff.php79
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceAfterClosureSniff.php69
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceAfterControlStructureSniff.php52
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeClassBraceSniff.php84
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeControlStructureBraceSniff.php148
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeSingleLineCommentSniff.php103
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceyParenthesisSniff.php201
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/ruleset.xml125
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/README.md56
-rw-r--r--www/wiki/vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php90
-rw-r--r--www/wiki/vendor/monolog/monolog/.php_cs59
-rw-r--r--www/wiki/vendor/monolog/monolog/CHANGELOG.md333
-rw-r--r--www/wiki/vendor/monolog/monolog/LICENSE19
-rw-r--r--www/wiki/vendor/monolog/monolog/README.md95
-rw-r--r--www/wiki/vendor/monolog/monolog/composer.json66
-rw-r--r--www/wiki/vendor/monolog/monolog/doc/01-usage.md231
-rw-r--r--www/wiki/vendor/monolog/monolog/doc/02-handlers-formatters-processors.md157
-rw-r--r--www/wiki/vendor/monolog/monolog/doc/03-utilities.md13
-rw-r--r--www/wiki/vendor/monolog/monolog/doc/04-extending.md76
-rw-r--r--www/wiki/vendor/monolog/monolog/doc/sockets.md39
-rw-r--r--www/wiki/vendor/monolog/monolog/phpunit.xml.dist19
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/ErrorHandler.php230
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php78
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php89
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php116
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php85
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php36
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php137
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php141
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php206
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php179
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php47
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php166
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php105
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php297
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php48
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php113
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php186
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php66
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php101
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php148
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php230
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php117
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php211
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php72
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php151
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php57
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php169
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php45
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php107
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php128
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php82
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php140
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php28
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php59
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php34
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php163
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php195
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php126
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php127
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php73
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php104
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php90
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php106
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php350
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php69
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php55
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php102
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php67
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php68
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php21
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php59
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php185
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php202
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php45
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php242
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php56
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php185
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php232
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php97
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php131
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php178
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php82
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php294
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php204
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php110
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php80
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php346
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php176
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php94
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php67
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php56
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php82
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php154
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php61
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php95
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Logger.php700
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php64
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php107
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php35
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php63
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php35
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php63
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php31
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php48
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php44
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php46
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php113
-rw-r--r--www/wiki/vendor/monolog/monolog/src/Monolog/Registry.php134
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/ErrorHandlerTest.php31
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ChromePHPFormatterTest.php158
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ElasticaFormatterTest.php79
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/FlowdockFormatterTest.php55
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/FluentdFormatterTest.php62
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/GelfMessageFormatterTest.php234
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/JsonFormatterTest.php183
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LineFormatterTest.php222
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LogglyFormatterTest.php40
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LogstashFormatterTest.php333
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/MongoDBFormatterTest.php262
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/NormalizerFormatterTest.php423
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php110
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/WildfireFormatterTest.php142
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AbstractHandlerTest.php115
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AbstractProcessingHandlerTest.php80
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AmqpHandlerTest.php136
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/BrowserConsoleHandlerTest.php130
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/BufferHandlerTest.php158
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ChromePHPHandlerTest.php141
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.php31
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DeduplicationHandlerTest.php165
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php52
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DynamoDbHandlerTest.php75
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ElasticSearchHandlerTest.php239
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php66
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FilterHandlerTest.php170
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FingersCrossedHandlerTest.php279
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FirePHPHandlerTest.php96
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep0
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FleepHookHandlerTest.php85
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FlowdockHandlerTest.php88
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerLegacyTest.php95
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerTest.php117
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfMockMessagePublisher.php25
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GroupHandlerTest.php112
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/HandlerWrapperTest.php130
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/HipChatHandlerTest.php279
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/LogEntriesHandlerTest.php84
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MailHandlerTest.php75
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MockRavenClient.php27
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MongoDBHandlerTest.php65
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php111
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php200
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.php33
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PHPConsoleHandlerTest.php273
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PsrHandlerTest.php50
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PushoverHandlerTest.php141
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php255
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php127
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php211
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php33
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/Slack/SlackRecordTest.php387
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php155
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackWebhookHandlerTest.php107
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackbotHandlerTest.php47
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php309
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php184
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php113
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php44
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php65
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php70
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php64
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php121
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php69
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/LoggerTest.php548
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php29
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php123
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php42
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php42
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MercurialProcessorTest.php41
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php30
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php43
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php49
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php33
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php113
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/PsrLogCompatTest.php47
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/RegistryTest.php153
-rw-r--r--www/wiki/vendor/monolog/monolog/tests/Monolog/TestCase.php58
-rw-r--r--www/wiki/vendor/nikic/php-parser/.gitignore4
-rw-r--r--www/wiki/vendor/nikic/php-parser/.travis.yml32
-rw-r--r--www/wiki/vendor/nikic/php-parser/CHANGELOG.md138
-rw-r--r--www/wiki/vendor/nikic/php-parser/LICENSE31
-rw-r--r--www/wiki/vendor/nikic/php-parser/README.md96
-rw-r--r--www/wiki/vendor/nikic/php-parser/UPGRADE-1.0.md121
-rw-r--r--www/wiki/vendor/nikic/php-parser/UPGRADE-2.0.md74
-rwxr-xr-xwww/wiki/vendor/nikic/php-parser/bin/php-parse173
-rw-r--r--www/wiki/vendor/nikic/php-parser/composer.json30
-rw-r--r--www/wiki/vendor/nikic/php-parser/doc/0_Introduction.markdown80
-rw-r--r--www/wiki/vendor/nikic/php-parser/doc/2_Usage_of_basic_components.markdown438
-rw-r--r--www/wiki/vendor/nikic/php-parser/doc/3_Other_node_tree_representations.markdown202
-rw-r--r--www/wiki/vendor/nikic/php-parser/doc/4_Code_generation.markdown84
-rw-r--r--www/wiki/vendor/nikic/php-parser/doc/component/Error.markdown77
-rw-r--r--www/wiki/vendor/nikic/php-parser/doc/component/Lexer.markdown149
-rw-r--r--www/wiki/vendor/nikic/php-parser/grammar/README.md29
-rw-r--r--www/wiki/vendor/nikic/php-parser/grammar/analyze.php96
-rw-r--r--www/wiki/vendor/nikic/php-parser/grammar/parser.template103
-rw-r--r--www/wiki/vendor/nikic/php-parser/grammar/php5.y979
-rw-r--r--www/wiki/vendor/nikic/php-parser/grammar/php7.y846
-rw-r--r--www/wiki/vendor/nikic/php-parser/grammar/rebuildParsers.php248
-rw-r--r--www/wiki/vendor/nikic/php-parser/grammar/tokens.template17
-rw-r--r--www/wiki/vendor/nikic/php-parser/grammar/tokens.y113
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Autoloader.php40
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder.php13
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Class_.php121
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php44
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php78
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Function_.php49
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Interface_.php80
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php126
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php59
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Param.php76
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php111
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Trait_.php55
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Use_.php58
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/BuilderAbstract.php131
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/BuilderFactory.php127
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Comment.php151
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Comment/Doc.php7
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Error.php158
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Lexer.php286
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php205
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node.php77
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php34
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Const_.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php34
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseOr.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseXor.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Minus.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mul.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftLeft.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftRight.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseXor.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Concat.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Div.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Equal.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Greater.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalAnd.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalOr.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalXor.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Minus.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftLeft.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Spaceship.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Int_.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Object_.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/String_.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php31
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php65
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.php27
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php31
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php35
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php31
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php35
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php31
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php35
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php31
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php34
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php36
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name.php220
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php42
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php42
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Param.php47
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar.php7
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php64
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php67
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php28
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php12
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php12
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php12
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Function_.php12
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php12
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php12
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php12
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php12
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php153
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt.php9
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php34
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php44
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php101
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php112
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php29
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php39
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Foreach_.php43
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php60
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php35
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/If_.php39
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Interface_.php51
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php52
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php13
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php56
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php31
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php13
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php34
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php25
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php39
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php46
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php43
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php30
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php85
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeDumper.php76
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php162
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php48
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor.php60
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php233
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php14
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser.php24
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Multiple.php63
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Php5.php3120
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Php7.php2707
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Tokens.php144
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php499
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/ParserFactory.php43
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php911
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php312
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Serializer.php15
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Serializer/XML.php86
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Unserializer.php15
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/PhpParser/Unserializer/XML.php152
-rw-r--r--www/wiki/vendor/nikic/php-parser/lib/bootstrap.php6
-rw-r--r--www/wiki/vendor/nikic/php-parser/phpunit.xml.dist24
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/AutoloaderTest.php18
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/ClassTest.php161
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/FunctionTest.php98
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/InterfaceTest.php105
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/MethodTest.php163
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/NamespaceTest.php41
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/ParamTest.php124
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/PropertyTest.php147
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/TraitTest.php47
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/UseTest.php35
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/BuilderFactoryTest.php108
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/CodeParsingTest.php69
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/CodeTestAbstract.php60
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/CommentTest.php80
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/ErrorTest.php112
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Lexer/EmulativeTest.php133
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/LexerTest.php250
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/NameTest.php164
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/MagicConstTest.php25
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/StringTest.php61
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassMethodTest.php63
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassTest.php59
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/InterfaceTest.php26
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/PropertyTest.php44
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeAbstractTest.php147
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeDumperTest.php72
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeTraverserTest.php218
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeVisitor/NameResolverTest.php417
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/MultipleTest.php113
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/Php5Test.php14
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/Php7Test.php14
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/ParserFactoryTest.php34
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/ParserTest.php170
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/PrettyPrinterTest.php164
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Serializer/XMLTest.php172
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/PhpParser/Unserializer/XMLTest.php150
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/bootstrap.php20
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/comments.test100
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/errorHandling/eofError.test18
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/errorHandling/recovery.test191
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/arrayDef.test142
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/assign.test288
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/cast.test72
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/clone.test13
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/closure.test142
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/comparison.test107
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/constant_expr.test621
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/errorSuppress.test12
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/exit.test34
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/args.test99
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constFetch.test33
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constantDeref.test231
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/funcCall.test132
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/newDeref.test70
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/objectAccess.test145
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/simpleArrayAccess.test62
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticCall.test173
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticPropertyFetch.test91
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/includeAndEval.test40
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/issetAndEmpty.test75
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/logic.test159
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/math.test256
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/new.test140
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/newWithoutClass.test8
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/print.test12
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/shellExec.test46
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/ternaryAndCoalesce.test149
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/globalNonSimpleVarError.test16
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/indirectCall.test481
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/isset.test74
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/misc.test109
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/new.test95
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/staticProperty.test93
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/expr/variable.test55
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/constantString.test60
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/docString.test90
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/docStringNewlines.test61
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/encapsedString.test242
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/float.test74
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/int.test43
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/invalidOctal.test17
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/magicConst.test31
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/unicodeEscape.test20
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/semiReserved.test380
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/blocklessStatement.test112
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/abstract.test39
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/anonymous.test194
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/conditional.test33
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/final.test17
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/implicitPublic.test92
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/interface.test36
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/modifier.test54
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/name.test71
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/php4Style.test50
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/simple.test155
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/staticMethod.test25
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/trait.test160
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/const.test40
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/controlFlow.test55
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/declare.test60
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/echo.test32
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/byRef.test41
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/conditional.test33
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/defaultValues.test148
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/returnTypes.test52
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/scalarTypeDeclarations.test45
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/specialVars.test51
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/typeDeclarations.test49
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/variadic.test110
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/variadicDefaultValue.test6
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/basic.test280
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/yieldPrecedence.test230
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/yieldUnaryPrecedence.test48
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompiler.test55
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerInvalidSyntax.test6
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerOffset.test34
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerOutermostScope.test8
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/hashbang.test26
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/if.test103
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/inlineHTML.test27
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/do.test17
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/for.test110
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/foreach.test148
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/while.test25
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/alias.test168
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/braced.test42
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUse.test188
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUseErrors.test45
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/invalidName.test29
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/mix.test13
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/name.test42
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test10
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/notBraced.test45
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nsAfterHashbang.test22
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/outsideStmt.test58
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/outsideStmtInvalid.test20
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/switch.test73
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/tryCatch.test120
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/tryWithoutCatch.test7
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/unset.test26
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/comments.test67
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/anonymousClass.test27
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/call.test13
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test18
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/constant_deref.test13
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/docStrings.test86
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/include.test7
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/intrinsics.test29
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/list.test19
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/literals.test154
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/numbers.test35
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/operators.test144
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/parentheses.test77
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/shortArraySyntax.test11
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/uvs.test23
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/variables.test73
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/yield.test46
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/inlineHTMLandPHPtest.file-test52
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/onlyInlineHTML.file-test11
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/onlyPHP.file-test16
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/alias.test20
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/break_continue.test13
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class.test53
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/const.test11
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/declare.test17
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/do_while.test10
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/for.test28
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/foreach.test28
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/function_signatures.test43
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/global_static_variables.test11
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/goto.test9
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/groupUse.test16
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/haltCompiler.file-test27
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/if.test16
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/namespaces.test50
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/switch.test35
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/throw.test7
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/traitUse.test25
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/tryCatch.test24
-rw-r--r--www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/while.test10
-rwxr-xr-xwww/wiki/vendor/nikic/php-parser/test_old/run-php-src.sh4
-rw-r--r--www/wiki/vendor/nikic/php-parser/test_old/run.php223
-rw-r--r--www/wiki/vendor/nmred/kafka-php/LICENSE27
-rw-r--r--www/wiki/vendor/nmred/kafka-php/README.md496
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Client.php291
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/ClusterMetaData.php53
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Consumer.php369
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception.php31
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/NotSupported.php33
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/OutOfRange.php33
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/Protocol.php33
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/Socket.php33
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketConnect.php33
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketEOF.php33
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketTimeout.php33
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Log.php79
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/MetaDataFromKafka.php208
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Offset.php301
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Produce.php330
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Decoder.php422
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Encoder.php660
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/CommitOffset.php119
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Consumer.php50
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/FreeStream.php117
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Helper.php160
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/HelperAbstract.php71
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Message.php158
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/MessageSet.php273
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Partition.php374
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Topic.php344
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Protocol.php317
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/Socket.php383
-rw-r--r--www/wiki/vendor/nmred/kafka-php/src/Kafka/ZooKeeper.php365
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-common/.travis.yml35
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-common/LICENSE22
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-common/README.md2
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-common/composer.json29
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-common/src/Element.php32
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-common/src/File.php40
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-common/src/Fqsen.php82
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-common/src/Location.php57
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-common/src/Project.php25
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-common/src/ProjectFactory.php27
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/LICENSE21
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/README.md69
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/composer.json28
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock.php220
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Description.php113
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/DescriptionFactory.php192
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/ExampleFinder.php170
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Serializer.php148
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/StandardTagFactory.php320
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tag.php26
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/TagFactory.php93
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Author.php100
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/BaseTag.php52
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Covers.php84
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Deprecated.php97
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Example.php176
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php18
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/Strategy.php18
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter.php27
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/AlignFormatter.php47
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/PassthroughFormatter.php31
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Generic.php91
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php77
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php239
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Param.php141
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php118
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php118
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyWrite.php118
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Fqsen.php42
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Reference.php21
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Url.php40
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php73
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/See.php89
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Since.php94
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Source.php96
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Throws.php72
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Uses.php83
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Var_.php118
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Version.php94
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlockFactory.php277
-rw-r--r--www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlockFactoryInterface.php23
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/LICENSE21
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/README.md182
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/composer.json27
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/FqsenResolver.php77
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Type.php18
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/TypeResolver.php298
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Array_.php86
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Boolean.php31
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Callable_.php31
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Compound.php93
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Context.php84
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/ContextFactory.php210
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Float_.php31
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Integer.php28
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Iterable_.php31
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Mixed_.php31
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Null_.php31
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Nullable.php56
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Object_.php71
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Parent_.php33
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Resource_.php31
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Scalar.php31
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Self_.php33
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Static_.php38
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/String_.php31
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/This.php34
-rw-r--r--www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Void_.php34
-rw-r--r--www/wiki/vendor/phpspec/prophecy/CHANGES.md213
-rw-r--r--www/wiki/vendor/phpspec/prophecy/LICENSE23
-rw-r--r--www/wiki/vendor/phpspec/prophecy/README.md391
-rw-r--r--www/wiki/vendor/phpspec/prophecy/composer.json50
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument.php212
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php101
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php52
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValuesToken.php52
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ApproximateValueToken.php55
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayCountToken.php86
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEntryToken.php143
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEveryEntryToken.php82
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/CallbackToken.php75
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ExactValueToken.php116
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/IdenticalValueToken.php74
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalAndToken.php80
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalNotToken.php73
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php104
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/StringContainsToken.php67
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TokenInterface.php43
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TypeToken.php76
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Call/Call.php162
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php229
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/ClosureComparator.php42
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php47
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/ProphecyComparator.php28
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/CachedDoubler.php68
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php48
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php72
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php63
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/KeywordPatch.php140
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/MagicCallPatch.php94
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php104
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php57
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php123
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ThrowablePatch.php95
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/TraversablePatch.php83
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/DoubleInterface.php22
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Doubler.php146
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCodeGenerator.php129
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php67
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassMirror.php260
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentNode.php102
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php169
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php198
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ReflectionInterface.php22
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/TypeHintReference.php46
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/LazyDouble.php127
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/NameGenerator.php52
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Call/UnexpectedCallException.php40
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassCreatorException.php31
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassMirrorException.php31
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassNotFoundException.php33
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoubleException.php18
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoublerException.php18
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/InterfaceNotFoundException.php20
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php41
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotFoundException.php60
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ReturnByReferenceException.php41
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Exception.php26
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/InvalidArgumentException.php16
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php51
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/FailedPredictionException.php24
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/NoCallsException.php18
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/PredictionException.php18
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php31
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsException.php32
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/MethodProphecyException.php34
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ObjectProphecyException.php34
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ProphecyException.php18
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php69
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassTagRetriever.php52
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/LegacyClassTagRetriever.php35
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/MethodTagRetrieverInterface.php30
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallPrediction.php86
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallTimesPrediction.php107
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallbackPrediction.php65
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/NoCallsPrediction.php68
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/PredictionInterface.php37
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/CallbackPromise.php66
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/PromiseInterface.php35
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnArgumentPromise.php61
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnPromise.php55
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ThrowPromise.php99
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php488
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php281
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ProphecyInterface.php27
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ProphecySubjectInterface.php34
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/Revealer.php44
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/RevealerInterface.php29
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophet.php135
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Util/ExportUtil.php212
-rw-r--r--www/wiki/vendor/phpspec/prophecy/src/Prophecy/Util/StringUtil.php99
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/.gitattributes1
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/.gitignore11
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/.travis.yml20
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/CONTRIBUTING.md5
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/ChangeLog-2.2.md56
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/LICENSE33
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/README.md50
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/build.xml41
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/build/travis-ci.xml21
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/composer.json50
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/phpunit.xml.dist23
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/scripts/auto_append.php5
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php10
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage.php920
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver.php47
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/HHVM.php26
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/PHPDBG.php105
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/Xdebug.php97
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Exception.php18
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Exception/UnintentionallyCoveredCode.php18
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Filter.php293
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Clover.php284
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Crap4j.php164
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Factory.php242
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php182
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer.php271
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Dashboard.php295
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Directory.php97
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/File.php556
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist5
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css5
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/nv.d3.min.css1
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/style.css122
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.dist284
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/directory.html.dist61
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist13
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist90
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.dist14
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.eotbin20127 -> 0 bytes
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.svg288
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.ttfbin45404 -> 0 bytes
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woffbin23424 -> 0 bytes
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff2bin18028 -> 0 bytes
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.js7
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/d3.min.js5
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/holder.min.js12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/html5shiv.min.js4
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js5
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/nv.d3.min.js8
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/respond.min.js5
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.dist11
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php339
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Directory.php478
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php679
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Iterator.php105
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/PHP.php50
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php246
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML.php234
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Directory.php16
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File.php73
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Coverage.php66
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Method.php58
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Report.php72
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Unit.php97
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Node.php89
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Project.php63
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Tests.php45
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Totals.php140
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Util.php45
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Util/InvalidArgumentHelper.php39
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/FilterTest.php281
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/Report/CloverTest.php66
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/Report/FactoryTest.php222
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/UtilTest.php30
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php487
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/TestCase.php311
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-clover.xml26
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccount.php33
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccountTest.php66
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassExtendedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesTest.php11
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php11
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionTest.php11
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodOneLineAnnotationTest.php11
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesWhitespaceTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNoneTest.php9
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPrivateTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotProtectedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPublicTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNothingTest.php13
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveragePrivateTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageProtectedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveragePublicTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageTwoDefaultClassAnnotations.php18
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveredClass.php36
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveredFunction.php4
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassExtendedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassPublicTest.php15
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassTest.php20
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageMethodTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPrivateTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotProtectedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPublicTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePrivateTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageProtectedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePublicTest.php12
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php38
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NotExistingCoveredElementTest.php24
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-clover.xml22
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-clover.xml17
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_class_and_anonymous_function.php19
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_ignore.php37
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_namespace.php20
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php36
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_without_ignore.php4
-rw-r--r--www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_without_namespace.php18
-rw-r--r--www/wiki/vendor/phpunit/php-file-iterator/.gitattributes1
-rw-r--r--www/wiki/vendor/phpunit/php-file-iterator/.gitignore7
-rw-r--r--www/wiki/vendor/phpunit/php-file-iterator/ChangeLog.md41
-rw-r--r--www/wiki/vendor/phpunit/php-file-iterator/LICENSE33
-rw-r--r--www/wiki/vendor/phpunit/php-file-iterator/README.md12
-rw-r--r--www/wiki/vendor/phpunit/php-file-iterator/composer.json36
-rw-r--r--www/wiki/vendor/phpunit/php-file-iterator/src/Facade.php123
-rw-r--r--www/wiki/vendor/phpunit/php-file-iterator/src/Factory.php91
-rw-r--r--www/wiki/vendor/phpunit/php-file-iterator/src/Iterator.php158
-rw-r--r--www/wiki/vendor/phpunit/php-text-template/.gitattributes1
-rw-r--r--www/wiki/vendor/phpunit/php-text-template/.gitignore5
-rw-r--r--www/wiki/vendor/phpunit/php-text-template/LICENSE33
-rw-r--r--www/wiki/vendor/phpunit/php-text-template/README.md14
-rw-r--r--www/wiki/vendor/phpunit/php-text-template/composer.json29
-rw-r--r--www/wiki/vendor/phpunit/php-text-template/src/Template.php135
-rw-r--r--www/wiki/vendor/phpunit/php-timer/.gitattributes1
-rw-r--r--www/wiki/vendor/phpunit/php-timer/.gitignore4
-rw-r--r--www/wiki/vendor/phpunit/php-timer/.travis.yml27
-rw-r--r--www/wiki/vendor/phpunit/php-timer/LICENSE33
-rw-r--r--www/wiki/vendor/phpunit/php-timer/README.md45
-rw-r--r--www/wiki/vendor/phpunit/php-timer/composer.json37
-rw-r--r--www/wiki/vendor/phpunit/php-timer/phpunit.xml19
-rw-r--r--www/wiki/vendor/phpunit/php-timer/src/Timer.php105
-rw-r--r--www/wiki/vendor/phpunit/php-timer/tests/TimerTest.php98
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/.gitattributes1
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/.gitignore4
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/.travis.yml31
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/LICENSE33
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/README.md14
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/build.xml33
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/build/phpunit.xml17
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/composer.json34
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/src/Token.php849
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/src/Token/Stream.php613
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/src/Token/Stream/CachingFactory.php51
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/Token/ClassTest.php123
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/Token/ClosureTest.php85
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php146
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/Token/IncludeTest.php73
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/Token/InterfaceTest.php191
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/Token/NamespaceTest.php80
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/TokenTest.php42
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classExtendsNamespacedClass.php10
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classInNamespace.php6
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classInScopedNamespace.php9
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classUsesNamespacedFunction.php8
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class.php15
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php16
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/closure.php7
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/issue19.php3
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/issue30.php8
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/multipleNamespacesWithOneClassUsingBraces.php12
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/multipleNamespacesWithOneClassUsingNonBraceSyntax.php14
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source.php36
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source2.php6
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source3.php14
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source4.php30
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source5.php5
-rw-r--r--www/wiki/vendor/phpunit/php-token-stream/tests/bootstrap.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/.gitattributes1
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/.gitignore8
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/.travis.yml26
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/CONTRIBUTING.md5
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/LICENSE33
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/README.md21
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/build.xml42
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/build/travis-ci.xml12
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/composer.json50
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/phpunit.xml.dist22
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Identity.php30
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php255
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Match.php26
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/MethodNameMatch.php28
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Namespace.php39
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/ParametersMatch.php49
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Stub.php26
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/BadMethodCallException.php16
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/Exception.php18
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/RuntimeException.php16
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php1120
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_class.tpl.dist36
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_class_method.tpl.dist7
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_clone.tpl.dist4
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_method.tpl.dist22
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_static_method.tpl.dist5
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/proxied_method.tpl.dist22
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/trait_class.tpl.dist4
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/unmocked_clone.tpl.dist5
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/wsdl_class.tpl.dist7
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/wsdl_method.tpl.dist4
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation.php18
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Object.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Static.php152
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/InvocationMocker.php156
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invokable.php39
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher.php271
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyInvokedCount.php32
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyParameters.php34
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/ConsecutiveParameters.php123
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Invocation.php48
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtIndex.php86
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastCount.php57
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastOnce.php45
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtMostCount.php57
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedCount.php109
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedRecorder.php67
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/MethodName.php66
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Parameters.php127
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/StatelessInvocation.php56
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockBuilder.php322
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockObject.php47
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub.php31
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ConsecutiveCalls.php48
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Exception.php41
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/MatcherCollection.php26
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Return.php41
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnArgument.php38
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnCallback.php51
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnSelf.php34
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnValueMap.php47
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Verifiable.php25
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php200
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockBuilderTest.php107
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/232.phpt129
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/ObjectTest.php85
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/StaticTest.php54
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Matcher/ConsecutiveParametersTest.php45
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/abstract_class.phpt143
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class.phpt121
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_call_parent_clone.phpt73
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_call_parent_constructor.phpt72
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_dont_call_parent_clone.phpt72
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_dont_call_parent_constructor.phpt72
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_implementing_interface_call_parent_constructor.phpt77
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_implementing_interface_dont_call_parent_constructor.phpt77
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_partial.phpt99
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_with_method_named_method.phpt88
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_with_method_with_variadic_arguments.phpt99
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/interface.phpt93
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/invocation_object_clone_object.phpt122
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class.phpt123
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_call_parent_clone.phpt75
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_call_parent_constructor.phpt74
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_dont_call_parent_clone.phpt74
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_dont_call_parent_constructor.phpt74
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_implementing_interface_call_parent_constructor.phpt79
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_implementing_interface_dont_call_parent_constructor.phpt79
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_partial.phpt101
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_interface.phpt95
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class.phpt70
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class_with_namespace.phpt78
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class_with_namespace_starting_with_separator.phpt78
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/proxy.phpt117
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/scalar_type_declarations.phpt99
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class.phpt37
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class_namespace.phpt39
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class_partial.phpt30
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php842
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/ProxyObjectTest.php40
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AbstractMockTestClass.php10
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AbstractTrait.php15
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnInterface.php5
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnotherInterface.php5
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Bar.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php15
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassWithStaticMethod.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Foo.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/FunctionCallback.php9
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/GoogleSearch.wsdl198
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/InterfaceWithStaticMethod.php5
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MethodCallback.php21
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MethodCallbackByReference.php13
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MockTestInterface.php6
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Mockable.php28
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/PartialMockTestClass.php18
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/SingletonClass.php28
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/SomeClass.php13
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/StaticMockTestClass.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/TraversableMockTestInterface.php4
-rw-r--r--www/wiki/vendor/phpunit/phpunit-mock-objects/tests/bootstrap.php3
-rw-r--r--www/wiki/vendor/phpunit/phpunit/.gitattributes4
-rw-r--r--www/wiki/vendor/phpunit/phpunit/.gitignore16
-rw-r--r--www/wiki/vendor/phpunit/phpunit/.php_cs69
-rw-r--r--www/wiki/vendor/phpunit/phpunit/.travis.yml34
-rw-r--r--www/wiki/vendor/phpunit/phpunit/CODE_OF_CONDUCT.md28
-rw-r--r--www/wiki/vendor/phpunit/phpunit/CONTRIBUTING.md65
-rw-r--r--www/wiki/vendor/phpunit/phpunit/ChangeLog-4.0.md176
-rw-r--r--www/wiki/vendor/phpunit/phpunit/ChangeLog-4.1.md73
-rw-r--r--www/wiki/vendor/phpunit/phpunit/ChangeLog-4.2.md56
-rw-r--r--www/wiki/vendor/phpunit/phpunit/ChangeLog-4.3.md54
-rw-r--r--www/wiki/vendor/phpunit/phpunit/ChangeLog-4.4.md57
-rw-r--r--www/wiki/vendor/phpunit/phpunit/ChangeLog-4.5.md28
-rw-r--r--www/wiki/vendor/phpunit/phpunit/ChangeLog-4.6.md95
-rw-r--r--www/wiki/vendor/phpunit/phpunit/ChangeLog-4.7.md71
-rw-r--r--www/wiki/vendor/phpunit/phpunit/ChangeLog-4.8.md293
-rw-r--r--www/wiki/vendor/phpunit/phpunit/LICENSE33
-rw-r--r--www/wiki/vendor/phpunit/phpunit/README.md46
-rw-r--r--www/wiki/vendor/phpunit/phpunit/build.xml379
-rw-r--r--www/wiki/vendor/phpunit/phpunit/composer.json73
-rwxr-xr-xwww/wiki/vendor/phpunit/phpunit/phpunit52
-rw-r--r--www/wiki/vendor/phpunit/phpunit/phpunit.xml34
-rw-r--r--www/wiki/vendor/phpunit/phpunit/phpunit.xsd264
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Exception.php18
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Extensions/GroupTestSuite.php60
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Extensions/PhptTestCase.php241
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Extensions/PhptTestSuite.php40
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Extensions/RepeatedTest.php90
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Extensions/TestDecorator.php109
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Extensions/TicketListener.php204
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/Assert.php17
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/AssertionFailedError.php17
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/BaseTestListener.php17
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/Test.php17
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestCase.php17
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestListener.php17
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestSuite.php17
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Assert.php3165
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Assert/Functions.php2569
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/AssertionFailedError.php27
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/BaseTestListener.php55
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/CodeCoverageException.php16
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint.php153
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/And.php125
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php82
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php95
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Attribute.php87
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Callback.php59
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php82
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasStaticAttribute.php56
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Composite.php70
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Count.php104
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Exception.php88
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionCode.php69
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionMessage.php69
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionMessageRegExp.php77
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/FileExists.php60
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/GreaterThan.php55
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsAnything.php62
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsEmpty.php66
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsEqual.php179
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsFalse.php40
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php132
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsInstanceOf.php94
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsJson.php69
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsNull.php40
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsTrue.php40
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsType.php143
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/JsonMatches.php71
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/JsonMatches/ErrorMessageProvider.php69
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/LessThan.php55
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Not.php160
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ObjectHasAttribute.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Or.php117
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/PCREMatch.php63
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php28
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php81
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringEndsWith.php55
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringMatches.php101
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringStartsWith.php55
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/TraversableContains.php125
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/TraversableContainsOnly.php95
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Xor.php122
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Error.php34
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Deprecated.php24
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Notice.php24
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Warning.php24
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Exception.php77
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/ExceptionWrapper.php91
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/ExpectationFailedException.php41
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTest.php19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTestCase.php84
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTestError.php19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/InvalidCoversTargetError.php19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/InvalidCoversTargetException.php16
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/OutputError.php19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/RiskyTest.php19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/RiskyTestError.php19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/SelfDescribing.php24
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTest.php18
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestCase.php82
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestError.php19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestSuiteError.php19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/SyntheticError.php80
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Test.php26
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/TestCase.php2206
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/TestFailure.php167
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/TestListener.php99
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/TestResult.php1128
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/TestSuite.php1011
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/TestSuite/DataProvider.php27
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/UnintentionallyCoveredCodeError.php19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Framework/Warning.php81
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Runner/BaseTestRunner.php140
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Runner/Exception.php16
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Factory.php51
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group.php59
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group/Exclude.php20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group/Include.php20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Test.php116
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Runner/StandardTestSuiteLoader.php118
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Runner/TestSuiteLoader.php32
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Runner/Version.php80
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/TextUI/Command.php1016
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php653
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php1061
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Blacklist.php115
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Configuration.php1158
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/ErrorHandler.php117
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Fileloader.php72
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Filesystem.php42
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Filter.php107
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Getopt.php163
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/GlobalState.php192
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/InvalidArgumentHelper.php41
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Log/JSON.php244
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Log/JUnit.php459
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Log/TAP.php257
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/PHP.php227
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Default.php89
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Template/TestCaseMethod.tpl.dist99
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Windows.php106
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php3
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Printer.php172
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Regex.php26
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/String.php71
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Test.php1098
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/NamePrettifier.php140
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php339
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter/HTML.php80
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter/Text.php54
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/TestSuiteIterator.php103
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/Type.php38
-rw-r--r--www/wiki/vendor/phpunit/phpunit/src/Util/XML.php946
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Extensions/PhptTestCaseTest.php36
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Extensions/RepeatedTestTest.php64
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Fail/fail.phpt5
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/AssertTest.php4135
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/BaseTestListenerTest.php34
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/CountTest.php63
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageRegExpTest.php56
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageTest.php52
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatches/ErrorMessageProviderTest.php83
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatchesTest.php48
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php3489
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/SuiteTest.php242
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/TestCaseTest.php550
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/TestFailureTest.php27
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/TestImplementorTest.php30
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Framework/TestListenerTest.php108
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1149.phpt20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1149/Issue1149Test.php18
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216.phpt25
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/Issue1216Test.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/bootstrap1216.php2
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/phpunit1216.xml8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/Issue1265Test.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/phpunit1265.xml2
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330.phpt24
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330/Issue1330Test.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330/phpunit1330.xml5
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335/Issue1335Test.php67
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335/bootstrap1335.php13
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1337.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1337/Issue1337Test.php19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1348.phpt36
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1348/Issue1348Test.php14
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351.phpt48
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351/ChildProcessClass1351.php4
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351/Issue1351Test.php48
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1374.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1374/Issue1374Test.php21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1437.phpt28
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1437/Issue1437Test.php9
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1468.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1468/Issue1468Test.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1471.phpt28
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1471/Issue1471Test.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1472.phpt26
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1472/Issue1472Test.php21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1570.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1570/Issue1570Test.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158/Issue2158Test.php23
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158/constant.inc5
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/244.phpt32
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/244/Issue244Test.php55
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322.phpt26
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322/Issue322Test.php17
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322/phpunit322.xml11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/433.phpt31
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/433/Issue433Test.php21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/445.phpt32
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/445/Issue445Test.php21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/498.phpt29
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/498/Issue498Test.php44
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/503.phpt33
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/503/Issue503Test.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/581.phpt42
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/581/Issue581Test.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74.phpt28
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74/Issue74Test.php9
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74/NewException.php4
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/765.phpt26
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/765/Issue765Test.php22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797/Issue797Test.php10
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797/bootstrap797.php6
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/863.phpt24
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873-php5.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873-php7.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873/Issue873Test.php9
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/1021.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/1021/Issue1021Test.php23
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/523.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/523/Issue523Test.php13
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/578.phpt37
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/578/Issue578Test.php20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/684.phpt25
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/684/Issue684Test.php4
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/ChildSuite.php15
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/OneTest.php10
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/ParentSuite.php13
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/TwoTest.php10
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Runner/BaseTestRunnerTest.php22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/abstract-test-class.phpt25
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/colors-always.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/concrete-test-class.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/custom-printer-debug.phpt27
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/custom-printer-verbose.phpt32
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-debug.phpt34
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-log-xml-isolation.phpt47
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-log-xml.phpt46
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-testdox.phpt17
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/debug.phpt26
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/default-isolation.phpt20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/default.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies-isolation.phpt40
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies.phpt39
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies2-isolation.phpt20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies2.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies3-isolation.phpt20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies3.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/empty-testcase.phpt25
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/exception-stack.phpt65
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/exclude-group-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/exclude-group.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/failure-isolation.phpt142
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/failure.phpt141
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/fatal-isolation.phpt26
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-class-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-class.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-classname-and-range-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-classname-and-range.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-number-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-number.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-range-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-range.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-regexp-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-regexp.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-string-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-string.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-range-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-range.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-regexp-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-regexp.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-string-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-string.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-case-insensitive.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-case-sensitive-no-result.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-no-results.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/group-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/group.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/help.phpt87
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/help2.phpt88
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/ini-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/list-groups.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-no-pretty-print.phpt27
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-post-66021.phpt72
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-pre-66021.phpt78
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-junit.phpt59
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-tap.phpt26
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/options-after-arguments.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/output-isolation.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/repeat.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests-incomplete.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests-isolation.phpt22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/tap.phpt18
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/test-suffix-multiple.phpt20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/test-suffix-single.phpt20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox-html.phpt21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox-text.phpt25
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox.phpt19
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Util/ConfigurationTest.php504
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Util/GetoptTest.php62
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Util/GlobalStateTest.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Util/RegexTest.php52
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Util/TestDox/NamePrettifierTest.php81
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Util/TestTest.php685
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/Util/XMLTest.php363
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/AbstractTest.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/Author.php27
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccount.php82
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccountTest.php87
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccountTest.test.php87
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/BaseTestListenerSample.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/BeforeAndAfterTest.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/BeforeClassAndAfterClassTest.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/Book.php20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/Calculator.php14
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ChangeCurrentWorkingDirectoryTest.php9
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithNonPublicAttributes.php29
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithScalarTypeDeclarations.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithToString.php22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ConcreteTest.my.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ConcreteTest.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageClassExtendedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageClassTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionParenthesesTest.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionTest.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodOneLineAnnotationTest.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodParenthesesTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodParenthesesWhitespaceTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNamespacedFunctionTest.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNoneTest.php9
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotPrivateTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotProtectedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotPublicTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNothingTest.php13
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoveragePrivateTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageProtectedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoveragePublicTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageTwoDefaultClassAnnotations.php17
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoveredClass.php36
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CoveredFunction.php4
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/CustomPrinter.php4
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderDebugTest.php48
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderFilterTest.php39
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderIncompleteTest.php37
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderSkippedTest.php37
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderTest.php21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/DependencyFailureTest.php22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/DependencySuccessTest.php21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/DependencyTestSuite.php13
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/DoubleTestCase.php25
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/DummyException.php5
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/EmptyTestCaseTest.php4
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInAssertPostConditionsTest.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInAssertPreConditionsTest.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInSetUpTest.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInTearDownTest.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInTest.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionNamespaceTest.php38
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionStackTest.php21
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionTest.php139
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/Failure.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/FailureTest.php75
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/FatalTest.php13
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/IncompleteTest.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/Inheritance/InheritanceA.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/Inheritance/InheritanceB.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/InheritedTestCase.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/IniTest.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/IsolationTest.php13
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/JsonData/arrayObject.json1
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/JsonData/simpleObject.json1
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/MockRunner.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/MultiDependencyTest.php23
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageClassExtendedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageClassTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageCoversClassPublicTest.php15
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageCoversClassTest.php20
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageMethodTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotPrivateTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotProtectedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotPublicTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveragePrivateTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageProtectedTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveragePublicTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveredClass.php38
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveredFunction.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NoArgTestCaseTest.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NoTestCaseClass.php4
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NoTestCases.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NonStatic.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NotExistingCoveredElementTest.php24
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NotPublicTestCase.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NotVoidTestCase.php4
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/NothingTest.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/OneTestCase.php11
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/OutputTestCase.php27
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/OverrideTestCase.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsClassBeforeClassHookTest.php12
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsClassDocBlockTest.php22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsTest.php148
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/SampleArrayAccess.php36
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/SampleClass.php14
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/Singleton.php22
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/StackTest.php24
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/StatusTest.php32
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/Struct.php10
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/Success.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/TemplateMethodsTest.php51
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/TestIncomplete.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/TestIterator.php36
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/TestIterator2.php35
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/TestSkipped.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/TestTestError.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/TestWithTest.php24
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ThrowExceptionTestCase.php8
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/ThrowNoExceptionTestCase.php7
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/WasRun.php10
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/bar.xml1
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.empty.xml1
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.false.xml1
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.invalid.xml1
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.true.xml1
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.custom-printer.xml2
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.xml123
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/configuration_empty.xml57
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/configuration_xinclude.xml75
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/expectedFileFormat.txt1
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/foo.xml1
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/structureAttributesAreSameButValuesAreNot.xml10
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/structureExpected.xml10
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/structureIgnoreTextNodes.xml13
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/structureIsSameButDataIsNot.xml10
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/structureWrongNumberOfAttributes.xml10
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/_files/structureWrongNumberOfNodes.xml9
-rw-r--r--www/wiki/vendor/phpunit/phpunit/tests/bootstrap.php6
-rw-r--r--www/wiki/vendor/psy/psysh/.editorconfig12
-rw-r--r--www/wiki/vendor/psy/psysh/.gitignore9
-rw-r--r--www/wiki/vendor/psy/psysh/.phan/config.php46
-rw-r--r--www/wiki/vendor/psy/psysh/.php_cs44
-rw-r--r--www/wiki/vendor/psy/psysh/.styleci.yml22
-rw-r--r--www/wiki/vendor/psy/psysh/.travis.yml59
-rw-r--r--www/wiki/vendor/psy/psysh/CONTRIBUTING.md18
-rw-r--r--www/wiki/vendor/psy/psysh/LICENSE21
-rw-r--r--www/wiki/vendor/psy/psysh/README.md200
-rwxr-xr-xwww/wiki/vendor/psy/psysh/bin/build13
-rwxr-xr-xwww/wiki/vendor/psy/psysh/bin/build-manual285
-rwxr-xr-xwww/wiki/vendor/psy/psysh/bin/build-phar38
-rwxr-xr-xwww/wiki/vendor/psy/psysh/bin/build-vendor9
-rwxr-xr-xwww/wiki/vendor/psy/psysh/bin/build-vendor-compat21
-rwxr-xr-xwww/wiki/vendor/psy/psysh/bin/package52
-rwxr-xr-xwww/wiki/vendor/psy/psysh/bin/psysh135
-rw-r--r--www/wiki/vendor/psy/psysh/composer.json53
-rw-r--r--www/wiki/vendor/psy/psysh/phpunit.xml.dist12
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Autoloader.php45
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner.php232
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/AbstractClassPass.php69
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/AssignThisVariablePass.php39
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CallTimePassByReferencePass.php52
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CalledClassPass.php83
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CodeCleanerPass.php22
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ExitPass.php37
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/FinalClassPass.php70
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/FunctionReturnInWriteContextPass.php82
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ImplicitReturnPass.php102
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/InstanceOfPass.php45
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LeavePsyshAlonePass.php36
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LegacyEmptyPass.php64
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LoopContextPass.php108
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/MagicConstantsPass.php42
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NamespaceAwarePass.php71
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NamespacePass.php77
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NoReturnValue.php24
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/PassableByReferencePass.php76
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/StaticConstructorPass.php87
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/StrictTypesPass.php76
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/UseStatementPass.php123
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidClassNamePass.php393
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidConstantPass.php85
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidFunctionNamePass.php97
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/BufferCommand.php77
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ClearCommand.php49
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/Command.php282
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/DocCommand.php113
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/DumpCommand.php105
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ExitCommand.php52
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/HelpCommand.php98
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/HistoryCommand.php242
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand.php279
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassConstantEnumerator.php128
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassEnumerator.php80
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ConstantEnumerator.php103
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/Enumerator.php106
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/FunctionEnumerator.php112
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/GlobalVariableEnumerator.php92
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/InterfaceEnumerator.php80
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/MethodEnumerator.php146
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/PropertyEnumerator.php181
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/TraitEnumerator.php85
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/VariableEnumerator.php138
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ParseCommand.php160
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/PsyVersionCommand.php41
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ReflectingCommand.php256
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ShowCommand.php79
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/SudoCommand.php143
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/ThrowUpCommand.php87
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/TraceCommand.php167
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/WhereamiCommand.php123
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Command/WtfCommand.php125
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Compiler.php163
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/ConfigPaths.php222
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Configuration.php1199
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/ConsoleColorFactory.php79
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Context.php255
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/ContextAware.php28
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Exception/BreakException.php39
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Exception/DeprecatedException.php20
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Exception/ErrorException.php100
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Exception/Exception.php27
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Exception/FatalErrorException.php47
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Exception/ParseErrorException.php42
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Exception/RuntimeException.php43
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Exception/ThrowUpException.php37
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Exception/TypeErrorException.php55
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php177
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php186
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Formatter/CodeFormatter.php76
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Formatter/DocblockFormatter.php168
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Formatter/Formatter.php25
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Formatter/SignatureFormatter.php273
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Input/CodeArgument.php50
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Input/FilterOptions.php143
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Input/ShellInput.php322
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Input/SilentInput.php44
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Output/OutputPager.php26
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Output/PassthruPager.php39
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Output/ProcOutputPager.php103
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Output/ShellOutput.php204
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/ParserFactory.php91
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Readline/GNUReadline.php170
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Readline/HoaConsole.php107
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Readline/Libedit.php83
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Readline/Readline.php76
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Readline/Transient.php146
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionConstant.php151
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstruct.php152
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstructParameter.php103
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Shell.php1030
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Sudo.php150
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Sudo/SudoVisitor.php115
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/AutoCompleter.php102
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractContextAwareMatcher.php65
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractMatcher.php186
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassAttributesMatcher.php79
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassMethodsMatcher.php71
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassNamesMatcher.php77
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/CommandsMatcher.php114
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ConstantsMatcher.php54
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/FunctionsMatcher.php56
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/KeywordsMatcher.php85
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoClientMatcher.php71
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php67
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectAttributesMatcher.php74
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectMethodsMatcher.php74
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/VariablesMatcher.php51
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Util/Docblock.php241
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Util/Json.php35
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Util/Mirror.php94
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/Util/Str.php114
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Cloner.php42
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Dumper.php107
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Presenter.php123
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/VarDumper/PresenterAware.php26
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/Checker.php31
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/GitHubChecker.php75
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/IntervalChecker.php69
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/NoopChecker.php36
-rw-r--r--www/wiki/vendor/psy/psysh/src/Psy/functions.php264
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/AutoloaderTest.php23
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AbstractClassPassTest.php61
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AssignThisVariablePassTest.php62
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CallTimePassByReferencePassTest.php73
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CalledClassPassTest.php98
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CodeCleanerTestCase.php97
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ExitPassTest.php51
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/FinalClassPassTest.php69
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/Fixtures/ClassWithCallStatic.php20
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/Fixtures/ClassWithStatic.php20
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/FunctionReturnInWriteContextPassTest.php78
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ImplicitReturnPassTest.php96
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/InstanceOfPassTest.php73
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LeavePsyshAlonePassTest.php69
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LegacyEmptyPassTest.php77
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LoopContextPassTest.php134
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/MagicConstantsPassTest.php39
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/NamespacePassTest.php56
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/PassableByReferencePassTest.php64
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/StaticConstructorPassTest.php91
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/StrictTypesPassTest.php53
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/UseStatementPassTest.php52
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidClassNamePassTest.php333
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidConstantPassTest.php66
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidFunctionNamePassTest.php181
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleanerTest.php128
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/ConfigurationTest.php262
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/ConsoleColorFactoryTest.php51
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/BreakExceptionTest.php34
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/ErrorExceptionTest.php108
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/FatalErrorExceptionTest.php46
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/ParseErrorExceptionTest.php43
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/RuntimeExceptionTest.php31
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/CodeFormatterTest.php61
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/DocblockFormatterTest.php63
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/SignatureFormatterTest.php77
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Input/CodeArgumentTest.php52
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Input/ShellInputTest.php204
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/GNUReadlineTest.php80
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/HoaConsoleTest.php31
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/LibeditTest.php128
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/TransientTest.php76
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Reflection/ReflectionConstantTest.php60
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/ShellTest.php346
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/TabCompletion/AutoCompleterTest.php145
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/TabCompletion/StaticSample.php27
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Util/DocblockTest.php96
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Util/MirrorTest.php80
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/Util/StrTest.php31
-rw-r--r--www/wiki/vendor/psy/psysh/test/Psy/Test/VersionUpdater/GitHubCheckerTest.php82
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/config.php18
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/default/.config/psysh/config.php1
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/default/.config/psysh/psysh_history0
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/default/.local/share/psysh/php_manual.sqlite0
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/empty.php12
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/history0
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/php_manual.sqlite0
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/rc.php1
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/config.php1
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/psysh_history0
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/rc.php1
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/project/.psysh.php15
-rw-r--r--www/wiki/vendor/psy/psysh/test/fixtures/unvis_fixtures.json1
-rwxr-xr-xwww/wiki/vendor/psy/psysh/test/tools/gen_unvis_fixtures.py94
-rwxr-xr-xwww/wiki/vendor/psy/psysh/test/tools/vis.py126
-rw-r--r--www/wiki/vendor/sebastian/comparator/.gitignore6
-rw-r--r--www/wiki/vendor/sebastian/comparator/.travis.yml25
-rw-r--r--www/wiki/vendor/sebastian/comparator/LICENSE33
-rw-r--r--www/wiki/vendor/sebastian/comparator/README.md39
-rw-r--r--www/wiki/vendor/sebastian/comparator/build.xml34
-rw-r--r--www/wiki/vendor/sebastian/comparator/build/travis-ci.xml11
-rw-r--r--www/wiki/vendor/sebastian/comparator/composer.json44
-rw-r--r--www/wiki/vendor/sebastian/comparator/phpunit.xml.dist21
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/ArrayComparator.php132
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/Comparator.php64
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/ComparisonFailure.php129
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/DOMNodeComparator.php107
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/DateTimeComparator.php77
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/DoubleComparator.php56
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/ExceptionComparator.php51
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/Factory.php107
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/MockObjectComparator.php45
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/NumericComparator.php68
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/ObjectComparator.php105
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/ResourceComparator.php52
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/ScalarComparator.php90
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/SplObjectStorageComparator.php69
-rw-r--r--www/wiki/vendor/sebastian/comparator/src/TypeComparator.php59
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/ArrayComparatorTest.php163
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/DOMNodeComparatorTest.php162
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/DateTimeComparatorTest.php216
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/DoubleComparatorTest.php134
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/ExceptionComparatorTest.php136
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/FactoryTest.php115
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/MockObjectComparatorTest.php166
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/NumericComparatorTest.php122
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/ObjectComparatorTest.php150
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/ResourceComparatorTest.php120
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/ScalarComparatorTest.php158
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/SplObjectStorageComparatorTest.php137
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/TypeComparatorTest.php104
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/_files/Author.php28
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/_files/Book.php21
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/_files/ClassWithToString.php19
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/_files/SampleClass.php29
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/_files/Struct.php25
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/_files/TestClass.php14
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/_files/TestClassComparator.php14
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/autoload.php38
-rw-r--r--www/wiki/vendor/sebastian/comparator/tests/bootstrap.php7
-rw-r--r--www/wiki/vendor/sebastian/diff/.gitignore4
-rw-r--r--www/wiki/vendor/sebastian/diff/.php_cs79
-rw-r--r--www/wiki/vendor/sebastian/diff/.travis.yml31
-rw-r--r--www/wiki/vendor/sebastian/diff/LICENSE33
-rw-r--r--www/wiki/vendor/sebastian/diff/README.md126
-rw-r--r--www/wiki/vendor/sebastian/diff/build.xml22
-rw-r--r--www/wiki/vendor/sebastian/diff/composer.json33
-rw-r--r--www/wiki/vendor/sebastian/diff/phpunit.xml19
-rw-r--r--www/wiki/vendor/sebastian/diff/src/Chunk.php103
-rw-r--r--www/wiki/vendor/sebastian/diff/src/Diff.php73
-rw-r--r--www/wiki/vendor/sebastian/diff/src/Differ.php399
-rw-r--r--www/wiki/vendor/sebastian/diff/src/LCS/LongestCommonSubsequence.php27
-rw-r--r--www/wiki/vendor/sebastian/diff/src/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php95
-rw-r--r--www/wiki/vendor/sebastian/diff/src/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php74
-rw-r--r--www/wiki/vendor/sebastian/diff/src/Line.php54
-rw-r--r--www/wiki/vendor/sebastian/diff/src/Parser.php110
-rw-r--r--www/wiki/vendor/sebastian/diff/tests/ChunkTest.php68
-rw-r--r--www/wiki/vendor/sebastian/diff/tests/DiffTest.php55
-rw-r--r--www/wiki/vendor/sebastian/diff/tests/DifferTest.php415
-rw-r--r--www/wiki/vendor/sebastian/diff/tests/LCS/LongestCommonSubsequenceTest.php198
-rw-r--r--www/wiki/vendor/sebastian/diff/tests/LCS/MemoryEfficientImplementationTest.php22
-rw-r--r--www/wiki/vendor/sebastian/diff/tests/LCS/TimeEfficientImplementationTest.php22
-rw-r--r--www/wiki/vendor/sebastian/diff/tests/LineTest.php44
-rw-r--r--www/wiki/vendor/sebastian/diff/tests/ParserTest.php151
-rw-r--r--www/wiki/vendor/sebastian/diff/tests/fixtures/patch.txt9
-rw-r--r--www/wiki/vendor/sebastian/diff/tests/fixtures/patch2.txt21
-rw-r--r--www/wiki/vendor/sebastian/environment/.gitignore4
-rw-r--r--www/wiki/vendor/sebastian/environment/.travis.yml16
-rw-r--r--www/wiki/vendor/sebastian/environment/LICENSE33
-rw-r--r--www/wiki/vendor/sebastian/environment/README.md72
-rw-r--r--www/wiki/vendor/sebastian/environment/build.xml26
-rw-r--r--www/wiki/vendor/sebastian/environment/composer.json29
-rw-r--r--www/wiki/vendor/sebastian/environment/phpunit.xml20
-rw-r--r--www/wiki/vendor/sebastian/environment/src/Console.php113
-rw-r--r--www/wiki/vendor/sebastian/environment/src/Runtime.php194
-rw-r--r--www/wiki/vendor/sebastian/environment/tests/ConsoleTest.php60
-rw-r--r--www/wiki/vendor/sebastian/environment/tests/RuntimeTest.php112
-rw-r--r--www/wiki/vendor/sebastian/exporter/.gitignore9
-rw-r--r--www/wiki/vendor/sebastian/exporter/.travis.yml23
-rw-r--r--www/wiki/vendor/sebastian/exporter/LICENSE33
-rw-r--r--www/wiki/vendor/sebastian/exporter/README.md171
-rw-r--r--www/wiki/vendor/sebastian/exporter/build.xml27
-rw-r--r--www/wiki/vendor/sebastian/exporter/composer.json48
-rw-r--r--www/wiki/vendor/sebastian/exporter/phpunit.xml.dist21
-rw-r--r--www/wiki/vendor/sebastian/exporter/src/Exporter.php301
-rw-r--r--www/wiki/vendor/sebastian/exporter/tests/ExporterTest.php358
-rw-r--r--www/wiki/vendor/sebastian/global-state/.gitignore6
-rw-r--r--www/wiki/vendor/sebastian/global-state/.travis.yml20
-rw-r--r--www/wiki/vendor/sebastian/global-state/LICENSE33
-rw-r--r--www/wiki/vendor/sebastian/global-state/README.md15
-rw-r--r--www/wiki/vendor/sebastian/global-state/build.xml33
-rw-r--r--www/wiki/vendor/sebastian/global-state/composer.json37
-rw-r--r--www/wiki/vendor/sebastian/global-state/phpunit.xml.dist21
-rw-r--r--www/wiki/vendor/sebastian/global-state/src/Blacklist.php149
-rw-r--r--www/wiki/vendor/sebastian/global-state/src/CodeExporter.php93
-rw-r--r--www/wiki/vendor/sebastian/global-state/src/Exception.php17
-rw-r--r--www/wiki/vendor/sebastian/global-state/src/Restorer.php141
-rw-r--r--www/wiki/vendor/sebastian/global-state/src/RuntimeException.php17
-rw-r--r--www/wiki/vendor/sebastian/global-state/src/Snapshot.php423
-rw-r--r--www/wiki/vendor/sebastian/global-state/tests/BlacklistTest.php113
-rw-r--r--www/wiki/vendor/sebastian/global-state/tests/SnapshotTest.php119
-rw-r--r--www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedChildClass.php17
-rw-r--r--www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedClass.php18
-rw-r--r--www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedImplementor.php18
-rw-r--r--www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedInterface.php17
-rw-r--r--www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotClass.php37
-rw-r--r--www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotDomDocument.php19
-rw-r--r--www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotFunctions.php15
-rw-r--r--www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotTrait.php17
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/.gitignore9
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/.travis.yml21
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/LICENSE33
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/README.md14
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/build.xml27
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/composer.json36
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/phpunit.xml.dist20
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/src/Context.php152
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/src/Exception.php17
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/src/InvalidArgumentException.php17
-rw-r--r--www/wiki/vendor/sebastian/recursion-context/tests/ContextTest.php144
-rw-r--r--www/wiki/vendor/sebastian/version/.gitattributes1
-rw-r--r--www/wiki/vendor/sebastian/version/.gitignore1
-rw-r--r--www/wiki/vendor/sebastian/version/LICENSE33
-rw-r--r--www/wiki/vendor/sebastian/version/README.md37
-rw-r--r--www/wiki/vendor/sebastian/version/composer.json21
-rw-r--r--www/wiki/vendor/sebastian/version/src/Version.php82
-rw-r--r--www/wiki/vendor/seld/jsonlint/.gitignore3
-rw-r--r--www/wiki/vendor/seld/jsonlint/.travis.yml25
-rw-r--r--www/wiki/vendor/seld/jsonlint/CHANGELOG.md66
-rw-r--r--www/wiki/vendor/seld/jsonlint/LICENSE19
-rw-r--r--www/wiki/vendor/seld/jsonlint/README.md89
-rwxr-xr-xwww/wiki/vendor/seld/jsonlint/bin/jsonlint117
-rw-r--r--www/wiki/vendor/seld/jsonlint/composer.json24
-rw-r--r--www/wiki/vendor/seld/jsonlint/phpunit.xml.dist25
-rw-r--r--www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/DuplicateKeyException.php26
-rw-r--r--www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/JsonParser.php502
-rw-r--r--www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php217
-rw-r--r--www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/ParsingException.php28
-rw-r--r--www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/Undefined.php16
-rw-r--r--www/wiki/vendor/seld/jsonlint/tests/JsonParserTest.php230
-rw-r--r--www/wiki/vendor/seld/jsonlint/tests/bom.json6
-rw-r--r--www/wiki/vendor/seld/jsonlint/tests/bootstrap.php13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/.gitattributes5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/.gitignore6
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/CONTRIBUTING.md13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/CodeSniffer.conf.dist9
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/README.md71
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/autoload.php288
-rwxr-xr-xwww/wiki/vendor/squizlabs/php_codesniffer/bin/phpcbf19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat14
-rwxr-xr-xwww/wiki/vendor/squizlabs/php_codesniffer/bin/phpcs19
-rwxr-xr-xwww/wiki/vendor/squizlabs/php_codesniffer/bin/phpcs.bat14
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/composer.json40
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/licence.txt24
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/phpcs.xml.dist100
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/scripts/build-phar.php96
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Config.php1641
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/DeepExitException.php18
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/RuntimeException.php15
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/TokenizerException.php15
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Files/DummyFile.php82
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Files/File.php2218
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Files/FileList.php246
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php215
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/ExactMatch.php108
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/Filter.php245
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/GitModified.php61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Fixer.php725
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Generator.php119
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/HTML.php270
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Markdown.php161
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Text.php245
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reporter.php401
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Cbf.php249
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Checkstyle.php109
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Code.php362
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Csv.php91
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Diff.php131
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Emacs.php90
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Full.php218
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Gitblame.php90
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Hgblame.php109
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Info.php141
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Json.php111
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Junit.php130
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Notifysend.php241
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Report.php64
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Source.php337
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Summary.php162
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Svnblame.php72
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/VersionControl.php376
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Xml.php113
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Ruleset.php1299
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Runner.php818
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractPatternSniff.php939
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractScopeSniff.php175
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php211
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/Sniff.php80
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/DuplicateClassNameStandard.xml27
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml28
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/EmptyStatementStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/ForLoopShouldBeWhileLoopStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/ForLoopWithTestFunctionCallStandard.xml24
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/JumbledIncrementerStandard.xml25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnconditionalIfStatementStandard.xml39
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnnecessaryFinalModifierStandard.xml29
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnusedFunctionParameterStandard.xml25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UselessOverridingMethodStandard.xml32
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/FixmeStandard.xml25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/TodoStandard.xml25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/ControlStructures/InlineControlStructureStandard.xml22
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/CSSLintStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/ClosureLinterStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/JSHintStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/ByteOrderMarkStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/EndFileNewlineStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/EndFileNoNewlineStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/InlineHTMLStandard.xml24
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LineEndingsStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LineLengthStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LowercasedFilenameStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneClassPerFileStandard.xml29
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneInterfacePerFileStandard.xml29
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/DisallowMultipleStatementsStandard.xml20
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/MultipleStatementAlignmentStandard.xml56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/NoSpaceAfterCastStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/SpaceAfterCastStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/CallTimePassByReferenceStandard.xml31
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/FunctionCallArgumentSpacingStandard.xml39
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceBsdAllmanStandard.xml24
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceKernighanRitchieStandard.xml24
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Metrics/CyclomaticComplexityStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Metrics/NestingLevelStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/CamelCapsFunctionNameStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/ConstructorNameStandard.xml29
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.xml29
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/BacktickOperatorStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/CharacterBeforePHPOpeningTagStandard.xml22
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/ClosingPHPTagStandard.xml22
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DeprecatedFunctionsStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowAlternativePHPTagsStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowShortOpenTagStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/ForbiddenFunctionsStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseConstantStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseKeywordStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/NoSilencedErrorsStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/SAPIUsageStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/UpperCaseConstantStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Strings/UnnecessaryStringConcatStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/VersionControl/SubversionPropertiesStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/DisallowSpaceIndentStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/DisallowTabIndentStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/ScopeIndentStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowLongArraySyntaxSniff.php68
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowShortArraySyntaxSniff.php61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Classes/DuplicateClassNameSniff.php116
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Classes/OpeningBraceSameLineSniff.php123
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/EmptyStatementSniff.php95
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopShouldBeWhileLoopSniff.php91
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopWithTestFunctionCallSniff.php101
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/JumbledIncrementerSniff.php134
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnconditionalIfStatementSniff.php93
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnnecessaryFinalModifierSniff.php85
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnusedFunctionParameterSniff.php176
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UselessOverridingMethodSniff.php161
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/DocCommentSniff.php339
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/FixmeSniff.php78
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/TodoSniff.php77
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php302
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/CSSLintSniff.php95
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/ClosureLinterSniff.php116
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/ESLintSniff.php113
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/JSHintSniff.php86
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/ByteOrderMarkSniff.php80
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/EndFileNewlineSniff.php81
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/EndFileNoNewlineSniff.php78
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/InlineHTMLSniff.php56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineEndingsSniff.php136
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineLengthSniff.php164
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LowercasedFilenameSniff.php67
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneClassPerFileSniff.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneInterfacePerFileSniff.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneTraitPerFileSniff.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/DisallowMultipleStatementsSniff.php89
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php319
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/NoSpaceAfterCastSniff.php58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceAfterCastSniff.php69
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceAfterNotSniff.php78
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/CallTimePassByReferenceSniff.php147
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php165
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceBsdAllmanSniff.php175
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceKernighanRitchieSniff.php173
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/CyclomaticComplexitySniff.php115
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/NestingLevelSniff.php100
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php202
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/ConstructorNameSniff.php146
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php172
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/BacktickOperatorSniff.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/CharacterBeforePHPOpeningTagSniff.php63
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ClosingPHPTagSniff.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DeprecatedFunctionsSniff.php76
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowAlternativePHPTagsSniff.php254
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php168
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ForbiddenFunctionsSniff.php230
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php83
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseKeywordSniff.php135
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/NoSilencedErrorsSniff.php68
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/SAPIUsageSniff.php66
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/SyntaxSniff.php84
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/UpperCaseConstantSniff.php73
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Strings/UnnecessaryStringConcatSniff.php125
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/VersionControl/SubversionPropertiesSniff.php192
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/DisallowSpaceIndentSniff.php170
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php134
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php1263
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.inc23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.inc.fixed23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc12
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc.fixed12
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.1.inc8
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.2.inc4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.3.inc10
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.4.inc5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.5.inc8
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.6.inc12
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php75
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc91
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc.fixed91
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.inc72
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php62
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.inc15
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.inc25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.inc13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.inc24
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc80
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.inc25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc192
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js192
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php81
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.inc23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.js23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php62
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.inc23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.js23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc202
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc.fixed231
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js31
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js.fixed39
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php106
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.css3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.js3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.css2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.js2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.css2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.js2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.4.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.5.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php65
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.css3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.js3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.css2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.js2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.css2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.js2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.4.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.5.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.6.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php75
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.1.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.2.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.3.inc6
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.4.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.5.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php62
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.css3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc18
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc.fixed18
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.js2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php63
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.inc76
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php77
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.inc7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.inc13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.inc13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.inc17
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.php63
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.inc13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc234
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc.fixed234
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js110
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js.fixed110
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php120
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc45
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc.fixed45
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.php71
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc45
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc.fixed45
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php71
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc.fixed5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.js5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.js.fixed5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.inc33
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc108
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc.fixed108
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php66
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc198
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc.fixed209
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php74
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc169
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc.fixed159
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php71
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.inc160
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.inc102
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.inc149
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php87
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.inc66
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.inc171
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php54
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php50
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.1.inc9
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.2.inc4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.inc10
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.1.inc14
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.1.inc.fixed14
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.2.inc6
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.2.inc.fixed6
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php104
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.1.inc11
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.1.inc.fixed11
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.2.inc8
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.2.inc.fixed8
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.3.inc16
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.inc6
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php122
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php54
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc83
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc.fixed83
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js14
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js.fixed14
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php84
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc.fixed19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc9
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.inc4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.inc4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php71
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc81
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc.fixed81
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php63
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.inc21
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.js15
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php73
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.css4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.css.fixed4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.inc70
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.inc.fixed70
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.js9
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.js.fixed9
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php83
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css.fixed5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc.fixed51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js9
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js.fixed9
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php105
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc1257
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc.fixed1257
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.js239
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.js.fixed239
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc1257
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc.fixed1257
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc17
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc.fixed17
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php172
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/ruleset.xml4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php87
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php125
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php98
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php314
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/UnusedSystemSniff.php141
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php84
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/DebugCodeSniff.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/FirebugConsoleSniff.php64
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php81
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php217
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/DisallowNewWidgetSniff.php59
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php98
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/EvalObjectFactorySniff.php114
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/GetRequestDataSniff.php106
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/ReturnFunctionValueSniff.php63
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Strings/JoinStringsSniff.php76
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.css13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.inc112
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php62
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.inc67
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.inc101
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php54
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.inc4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.js8
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.js20
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.js186
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php59
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.inc6
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.inc179
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc26
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.inc30
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.inc9
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.js18
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php62
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/ruleset.xml18
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Classes/ClassDeclarationStandard.xml22
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/ClassCommentStandard.xml177
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/FileCommentStandard.xml286
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/FunctionCommentStandard.xml230
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/InlineCommentStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/ControlStructures/ControlSignatureStandard.xml36
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/ControlStructures/MultiLineConditionStandard.xml60
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Files/IncludingFileStandard.xml24
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Files/LineLengthStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Formatting/MultiLineAssignmentStandard.xml35
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionCallSignatureStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionDeclarationStandard.xml41
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/ValidDefaultValueStandard.xml25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidClassNameStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidFunctionNameStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidVariableNameStandard.xml29
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ObjectOperatorIndentStandard.xml39
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeClosingBraceStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeIndentStandard.xml29
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php143
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php105
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php569
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php462
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/InlineCommentSniff.php68
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/ControlStructures/ControlSignatureSniff.php47
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/ControlStructures/MultiLineConditionSniff.php267
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Files/IncludingFileSniff.php136
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Formatting/MultiLineAssignmentSniff.php106
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/FunctionCallSignatureSniff.php548
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/FunctionDeclarationSniff.php432
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/ValidDefaultValueSniff.php83
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidClassNameSniff.php97
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidFunctionNameSniff.php279
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidVariableNameSniff.php103
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ObjectOperatorIndentSniff.php179
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php179
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeIndentSniff.php24
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.inc82
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.inc120
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php70
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.inc52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php69
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc372
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc.fixed372
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php92
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc29
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc.fixed29
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc159
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php71
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc190
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc.fixed187
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.js179
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.js.fixed176
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php83
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc99
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc.fixed99
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php69
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.inc22
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc315
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc.fixed322
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.js80
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.js.fixed84
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php108
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc211
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc.fixed214
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js.fixed58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php94
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc99
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc68
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php67
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.inc231
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php161
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.inc101
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.inc50
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc146
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed150
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php63
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.inc314
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php66
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/ruleset.xml41
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Classes/ClassDeclarationStandard.xml48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Files/SideEffectsStandard.xml27
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Classes/ClassDeclarationSniff.php74
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php225
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Methods/CamelCapsMethodNameSniff.php77
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.1.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.2.inc4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.1.inc66
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.2.inc23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.3.inc6
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.4.inc10
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.5.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.6.inc9
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.7.inc8
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php59
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.inc73
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/ruleset.xml45
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Classes/ClassDeclarationStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Classes/PropertyDeclarationStandard.xml62
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml27
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/SwitchDeclarationStandard.xml104
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Files/EndFileNewlineStandard.xml7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Methods/MethodDeclarationStandard.xml51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/NamespaceDeclarationStandard.xml22
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/UseDeclarationStandard.xml57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php445
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php103
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/ControlStructureSpacingSniff.php139
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/ElseIfDeclarationSniff.php72
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php321
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/ClosingTagSniff.php88
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/EndFileNewlineSniff.php104
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionCallSignatureSniff.php79
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionClosingBraceSniff.php91
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/MethodDeclarationSniff.php155
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/NamespaceDeclarationSniff.php92
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/UseDeclarationSniff.php211
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc160
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc.fixed158
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php73
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.inc28
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc47
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc.fixed46
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc17
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc.fixed17
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc264
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc.fixed267
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php70
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.1.inc12
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.1.inc.fixed12
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.2.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.3.inc7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.4.inc1
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.4.inc.fixed1
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.5.inc1
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php60
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.1.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.10.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.2.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.3.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.4.inc4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.5.inc6
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.6.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.7.inc11
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.8.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.9.inc2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php67
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc179
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc.fixed183
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php72
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc70
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc.fixed61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc.fixed19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.inc14
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.inc.fixed14
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc31
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc15
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc.fixed15
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc16
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc.fixed16
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.4.inc4
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.5.inc23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.5.inc.fixed32
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.6.inc1
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.7.inc1
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php74
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/ruleset.xml190
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Arrays/ArrayBracketSpacingStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Arrays/ArrayDeclarationStandard.xml117
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Classes/LowercaseClassKeywordsStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Classes/SelfMemberReferenceStandard.xml63
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/DocCommentAlignmentStandard.xml39
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/FunctionCommentThrowTagStandard.xml32
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/ForEachLoopDeclarationStandard.xml39
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/ForLoopDeclarationStandard.xml55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/LowercaseDeclarationStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Functions/FunctionDuplicateArgumentStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Functions/LowercaseFunctionKeywordsStandard.xml25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Scope/StaticThisUsageStandard.xml31
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Strings/EchoedStringsStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/CastSpacingStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/FunctionOpeningBraceStandard.xml41
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/LanguageConstructSpacingStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ScopeKeywordSpacingStandard.xml23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/SemicolonSpacingStandard.xml19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayBracketSpacingSniff.php105
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php851
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionClosingBraceSpaceSniff.php110
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionNameSpacingSniff.php106
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionOpeningBraceSpaceSniff.php131
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColonSpacingSniff.php106
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColourDefinitionSniff.php88
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DisallowMultipleStyleDefinitionsSniff.php71
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DuplicateClassDefinitionSniff.php116
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DuplicateStyleDefinitionSniff.php83
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyClassDefinitionSniff.php61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyStyleDefinitionSniff.php60
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ForbiddenStylesSniff.php177
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/IndentationSniff.php141
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/LowercaseStyleDefinitionSniff.php97
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/MissingColonSniff.php86
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/NamedColoursSniff.php94
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/OpacitySniff.php97
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/SemicolonSpacingSniff.php71
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ShorthandSizeSniff.php177
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassDeclarationSniff.php199
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassFileNameSniff.php68
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/DuplicatePropertySniff.php82
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/LowercaseClassKeywordsSniff.php72
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/SelfMemberReferenceSniff.php194
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ValidClassNameSniff.php86
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/BlockCommentSniff.php342
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/ClassCommentSniff.php86
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/ClosingDeclarationCommentSniff.php129
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/DocCommentAlignmentSniff.php153
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/EmptyCatchCommentSniff.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FileCommentSniff.php208
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php666
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentThrowTagSniff.php259
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/InlineCommentSniff.php312
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/LongConditionClosingCommentSniff.php204
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/PostStatementCommentSniff.php88
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php153
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ControlSignatureSniff.php271
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ElseIfDeclarationSniff.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ForEachLoopDeclarationSniff.php237
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ForLoopDeclarationSniff.php217
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/InlineIfDeclarationSniff.php151
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/LowercaseDeclarationSniff.php73
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/SwitchDeclarationSniff.php304
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Debug/JSLintSniff.php85
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Debug/JavaScriptLintSniff.php87
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Files/FileExtensionSniff.php68
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Formatting/OperatorBracketSniff.php351
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php402
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationSniff.php34
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDuplicateArgumentSniff.php64
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/GlobalFunctionSniff.php61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/LowercaseFunctionKeywordsSniff.php64
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/MultiLineFunctionDeclarationSniff.php202
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/NamingConventions/ValidFunctionNameSniff.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/NamingConventions/ValidVariableNameSniff.php216
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/DisallowObjectStringIndexSniff.php85
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/ObjectInstantiationSniff.php67
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/ObjectMemberCommaSniff.php64
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ComparisonOperatorUsageSniff.php211
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/IncrementDecrementUsageSniff.php224
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ValidLogicalOperatorsSniff.php67
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/CommentedOutCodeSniff.php230
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowBooleanStatementSniff.php60
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowComparisonAssignmentSniff.php113
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowInlineIfSniff.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowMultipleAssignmentsSniff.php170
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowObEndFlushSniff.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowSizeFunctionsInLoopsSniff.php114
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DiscouragedFunctionsSniff.php38
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/EmbeddedPhpSniff.php397
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/EvalSniff.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/ForbiddenFunctionsSniff.php33
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/GlobalKeywordSniff.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/HeredocSniff.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/InnerFunctionsSniff.php68
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/LowercasePHPFunctionsSniff.php125
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/NonExecutableCodeSniff.php255
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MemberVarScopeSniff.php85
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MethodScopeSniff.php89
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/StaticThisUsageSniff.php91
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/ConcatenationSpacingSniff.php143
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/DoubleQuoteUsageSniff.php139
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/EchoedStringsSniff.php88
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/CastSpacingSniff.php65
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php312
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionClosingBraceSpaceSniff.php167
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php98
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionSpacingSniff.php230
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/LanguageConstructSpacingSniff.php84
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/LogicalOperatorSpacingSniff.php102
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/MemberVarSpacingSniff.php151
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php139
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php313
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/PropertyLabelSpacingSniff.php79
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php100
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ScopeKeywordSpacingSniff.php78
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SemicolonSpacingSniff.php92
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SuperfluousWhitespaceSniff.php252
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc27
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc339
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc.fixed357
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc335
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc.fixed355
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php182
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.css47
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.css62
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.css43
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.css39
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.php59
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.css10
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.css12
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.css70
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.css23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.css15
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.php54
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.css5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.css18
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.css75
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.css.fixed69
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.php67
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.css14
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/MissingColonUnitTest.css17
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/MissingColonUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/NamedColoursUnitTest.css25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/NamedColoursUnitTest.php54
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.css27
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.css27
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.css26
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.php58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc110
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc.fixed121
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php83
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc21
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.js45
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc12
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc121
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc.fixed121
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.inc138
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php70
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc222
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc.fixed226
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php97
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.inc125
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php59
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.inc82
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc78
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc.fixed78
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.js76
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.js.fixed76
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php70
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.inc11
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.js10
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.inc43
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.js40
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php66
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.inc324
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc900
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc.fixed900
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php162
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc124
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc.fixed117
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.js123
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php86
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc934
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc.fixed934
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.js444
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php99
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.inc22
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.js30
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php68
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc339
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc.fixed339
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php78
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc213
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed216
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js135
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js.fixed141
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php88
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc16
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc36
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc.fixed36
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.inc41
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.js47
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php80
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc.fixed48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php75
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.inc23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php60
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc317
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.js287
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php97
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JSLintUnitTest.js2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JSLintUnitTest.php67
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.js2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.php62
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.1.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.2.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.3.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.4.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc154
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc.fixed154
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js116
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js.fixed116
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php106
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc77
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc.fixed77
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php72
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.inc74
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.inc6
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.inc17
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.inc7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php54
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.inc163
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.js73
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php93
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.inc27
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php59
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.inc119
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php79
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js37
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.php59
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.inc17
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.js39
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.php58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc133
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.js71
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php100
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.inc40
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php60
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.inc28
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.css23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.inc89
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php69
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.inc27
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.inc53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.inc10
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.js2
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php60
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.inc44
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.inc10
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc58
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.js13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php73
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.inc5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc113
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc.fixed113
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php76
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EvalUnitTest.inc5
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EvalUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.inc12
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.inc13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.inc24
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.inc29
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.inc23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.inc261
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php77
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.inc22
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php48
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.inc34
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php51
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.inc28
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php52
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc42
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc.fixed40
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php65
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc34
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc.fixed34
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc.fixed13
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.inc7
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc220
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc.fixed214
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js93
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js.fixed93
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php95
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc39
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc.fixed45
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js132
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js.fixed133
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php76
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc40
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.js115
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php68
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc302
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc.fixed330
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php74
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc32
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc.fixed32
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.inc21
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.js19
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc154
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc.fixed152
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php61
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc24
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php57
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc203
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc.fixed197
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js100
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js.fixed94
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php164
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js40
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js.fixed39
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc90
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed91
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php53
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.inc41
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php55
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc18
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc.fixed18
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js.fixed25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php80
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.css25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.css.fixed23
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.js56
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.js.fixed50
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.css3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.css.fixed3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.js1
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.js.fixed1
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.css3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.css.fixed3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.js1
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.js.fixed1
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc54
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc.fixed49
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php91
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/ruleset.xml77
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/Debug/CodeAnalyzerStandard.xml25
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/Files/ClosingTagStandard.xml22
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/NamingConventions/ValidVariableNameStandard.xml37
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/Debug/CodeAnalyzerSniff.php96
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/Files/ClosingTagSniff.php68
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/NamingConventions/ValidVariableNameSniff.php227
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.inc6
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.php62
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.1.inc12
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.2.inc3
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.php54
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.inc103
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php90
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/ruleset.xml32
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/CSS.php535
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/Comment.php275
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/JS.php1248
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/PHP.php1871
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/Tokenizer.php1308
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Cache.php328
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Common.php459
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Standards.php314
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Timing.php86
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Tokens.php598
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/AllTests.php78
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/AllTests.php74
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/ErrorSuppressionTest.php340
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.inc18
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.php149
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.inc22
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.php171
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersTest.inc27
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersTest.php357
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/IsCamelCapsTest.php134
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Standards/AbstractSniffUnitTest.php444
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php138
-rw-r--r--www/wiki/vendor/squizlabs/php_codesniffer/tests/TestSuite.php43
-rw-r--r--www/wiki/vendor/symfony/console/.gitignore3
-rw-r--r--www/wiki/vendor/symfony/console/Application.php1245
-rw-r--r--www/wiki/vendor/symfony/console/CHANGELOG.md112
-rw-r--r--www/wiki/vendor/symfony/console/Command/Command.php664
-rw-r--r--www/wiki/vendor/symfony/console/Command/HelpCommand.php81
-rw-r--r--www/wiki/vendor/symfony/console/Command/ListCommand.php90
-rw-r--r--www/wiki/vendor/symfony/console/Command/LockableTrait.php72
-rw-r--r--www/wiki/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php37
-rw-r--r--www/wiki/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php55
-rw-r--r--www/wiki/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php62
-rw-r--r--www/wiki/vendor/symfony/console/ConsoleEvents.php60
-rw-r--r--www/wiki/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php106
-rw-r--r--www/wiki/vendor/symfony/console/Descriptor/ApplicationDescription.php152
-rw-r--r--www/wiki/vendor/symfony/console/Descriptor/Descriptor.php107
-rw-r--r--www/wiki/vendor/symfony/console/Descriptor/DescriptorInterface.php31
-rw-r--r--www/wiki/vendor/symfony/console/Descriptor/JsonDescriptor.php168
-rw-r--r--www/wiki/vendor/symfony/console/Descriptor/MarkdownDescriptor.php182
-rw-r--r--www/wiki/vendor/symfony/console/Descriptor/TextDescriptor.php342
-rw-r--r--www/wiki/vendor/symfony/console/Descriptor/XmlDescriptor.php251
-rw-r--r--www/wiki/vendor/symfony/console/Event/ConsoleCommandEvent.php60
-rw-r--r--www/wiki/vendor/symfony/console/Event/ConsoleErrorEvent.php83
-rw-r--r--www/wiki/vendor/symfony/console/Event/ConsoleEvent.php67
-rw-r--r--www/wiki/vendor/symfony/console/Event/ConsoleExceptionEvent.php71
-rw-r--r--www/wiki/vendor/symfony/console/Event/ConsoleTerminateEvent.php58
-rw-r--r--www/wiki/vendor/symfony/console/EventListener/ErrorListener.php91
-rw-r--r--www/wiki/vendor/symfony/console/Exception/CommandNotFoundException.php43
-rw-r--r--www/wiki/vendor/symfony/console/Exception/ExceptionInterface.php21
-rw-r--r--www/wiki/vendor/symfony/console/Exception/InvalidArgumentException.php19
-rw-r--r--www/wiki/vendor/symfony/console/Exception/InvalidOptionException.php21
-rw-r--r--www/wiki/vendor/symfony/console/Exception/LogicException.php19
-rw-r--r--www/wiki/vendor/symfony/console/Exception/RuntimeException.php19
-rw-r--r--www/wiki/vendor/symfony/console/Formatter/OutputFormatter.php243
-rw-r--r--www/wiki/vendor/symfony/console/Formatter/OutputFormatterInterface.php71
-rw-r--r--www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyle.php203
-rw-r--r--www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php62
-rw-r--r--www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php109
-rw-r--r--www/wiki/vendor/symfony/console/Helper/DebugFormatterHelper.php127
-rw-r--r--www/wiki/vendor/symfony/console/Helper/DescriptorHelper.php94
-rw-r--r--www/wiki/vendor/symfony/console/Helper/FormatterHelper.php106
-rw-r--r--www/wiki/vendor/symfony/console/Helper/Helper.php138
-rw-r--r--www/wiki/vendor/symfony/console/Helper/HelperInterface.php39
-rw-r--r--www/wiki/vendor/symfony/console/Helper/HelperSet.php108
-rw-r--r--www/wiki/vendor/symfony/console/Helper/InputAwareHelper.php33
-rw-r--r--www/wiki/vendor/symfony/console/Helper/ProcessHelper.php141
-rw-r--r--www/wiki/vendor/symfony/console/Helper/ProgressBar.php614
-rw-r--r--www/wiki/vendor/symfony/console/Helper/ProgressIndicator.php271
-rw-r--r--www/wiki/vendor/symfony/console/Helper/QuestionHelper.php483
-rw-r--r--www/wiki/vendor/symfony/console/Helper/SymfonyQuestionHelper.php124
-rw-r--r--www/wiki/vendor/symfony/console/Helper/Table.php705
-rw-r--r--www/wiki/vendor/symfony/console/Helper/TableCell.php76
-rw-r--r--www/wiki/vendor/symfony/console/Helper/TableSeparator.php25
-rw-r--r--www/wiki/vendor/symfony/console/Helper/TableStyle.php258
-rw-r--r--www/wiki/vendor/symfony/console/Input/ArgvInput.php370
-rw-r--r--www/wiki/vendor/symfony/console/Input/ArrayInput.php206
-rw-r--r--www/wiki/vendor/symfony/console/Input/Input.php203
-rw-r--r--www/wiki/vendor/symfony/console/Input/InputArgument.php129
-rw-r--r--www/wiki/vendor/symfony/console/Input/InputAwareInterface.php26
-rw-r--r--www/wiki/vendor/symfony/console/Input/InputDefinition.php404
-rw-r--r--www/wiki/vendor/symfony/console/Input/InputInterface.php163
-rw-r--r--www/wiki/vendor/symfony/console/Input/InputOption.php208
-rw-r--r--www/wiki/vendor/symfony/console/Input/StreamableInputInterface.php37
-rw-r--r--www/wiki/vendor/symfony/console/Input/StringInput.php72
-rw-r--r--www/wiki/vendor/symfony/console/LICENSE19
-rw-r--r--www/wiki/vendor/symfony/console/Logger/ConsoleLogger.php129
-rw-r--r--www/wiki/vendor/symfony/console/Output/BufferedOutput.php45
-rw-r--r--www/wiki/vendor/symfony/console/Output/ConsoleOutput.php152
-rw-r--r--www/wiki/vendor/symfony/console/Output/ConsoleOutputInterface.php30
-rw-r--r--www/wiki/vendor/symfony/console/Output/NullOutput.php123
-rw-r--r--www/wiki/vendor/symfony/console/Output/Output.php175
-rw-r--r--www/wiki/vendor/symfony/console/Output/OutputInterface.php114
-rw-r--r--www/wiki/vendor/symfony/console/Output/StreamOutput.php124
-rw-r--r--www/wiki/vendor/symfony/console/Question/ChoiceQuestion.php189
-rw-r--r--www/wiki/vendor/symfony/console/Question/ConfirmationQuestion.php59
-rw-r--r--www/wiki/vendor/symfony/console/Question/Question.php246
-rw-r--r--www/wiki/vendor/symfony/console/README.md20
-rw-r--r--www/wiki/vendor/symfony/console/Resources/bin/hiddeninput.exebin9216 -> 0 bytes
-rw-r--r--www/wiki/vendor/symfony/console/Style/OutputStyle.php155
-rw-r--r--www/wiki/vendor/symfony/console/Style/StyleInterface.php154
-rw-r--r--www/wiki/vendor/symfony/console/Style/SymfonyStyle.php429
-rw-r--r--www/wiki/vendor/symfony/console/Terminal.php137
-rw-r--r--www/wiki/vendor/symfony/console/Tester/ApplicationTester.php176
-rw-r--r--www/wiki/vendor/symfony/console/Tester/CommandTester.php158
-rw-r--r--www/wiki/vendor/symfony/console/Tests/ApplicationTest.php1753
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Command/CommandTest.php442
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Command/HelpCommandTest.php71
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Command/ListCommandTest.php113
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Command/LockableTraitTest.php67
-rw-r--r--www/wiki/vendor/symfony/console/Tests/CommandLoader/ContainerCommandLoaderTest.php61
-rw-r--r--www/wiki/vendor/symfony/console/Tests/CommandLoader/FactoryCommandLoaderTest.php60
-rw-r--r--www/wiki/vendor/symfony/console/Tests/DependencyInjection/AddConsoleCommandPassTest.php262
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php107
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Descriptor/JsonDescriptorTest.php35
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Descriptor/MarkdownDescriptorTest.php45
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Descriptor/ObjectsProvider.php82
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php53
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Descriptor/XmlDescriptorTest.php27
-rw-r--r--www/wiki/vendor/symfony/console/Tests/EventListener/ErrorListenerTest.php156
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/BarBucCommand.php11
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplication1.php18
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplication2.php26
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplicationMbString.php24
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand1.php27
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand2.php32
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand3.php27
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand4.php25
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommandMbString.php32
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/DummyOutput.php36
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Foo1Command.php26
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Foo2Command.php21
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Foo3Command.php29
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Foo4Command.php11
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Foo5Command.php10
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Foo6Command.php11
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/FooCommand.php33
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/FooLock2Command.php28
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/FooLockCommand.php27
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/FooOptCommand.php36
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/FooSameCaseLowercaseCommand.php11
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/FooSameCaseUppercaseCommand.php11
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced1Command.php26
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced2Command.php26
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/FoobarCommand.php25
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_0.php11
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_1.php13
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_10.php17
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_11.php12
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_12.php13
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_13.php14
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_14.php17
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_15.php14
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_16.php15
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_17.php13
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_2.php16
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_3.php12
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_4.php34
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php37
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_6.php16
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_7.php15
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_8.php26
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_9.php11
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/interactive_command_1.php19
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/interactive_output_1.txt7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_0.txt3
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_1.txt9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_10.txt7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_11.txt4
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_12.txt6
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_13.txt7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_14.txt6
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_15.txt7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_16.txt8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_17.txt7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_2.txt13
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_3.txt7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_4.txt32
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_5.txt18
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_6.txt6
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_7.txt5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_8.txt9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_9.txt5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/TestCommand.php28
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/TestTiti.php21
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/TestToto.php22
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.json156
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.md172
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.txt17
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.xml104
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.json509
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.md431
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.txt21
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.xml254
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_filtered_namespace.txt16
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_gethelp.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_mbstring.md269
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_mbstring.txt19
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception1.txt5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception2.txt7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception3.txt18
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception3decorated.txt18
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception4.txt6
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth1.txt8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth1decorated.txt8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth2.txt9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_escapeslines.txt9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_linebreaks.txt11
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_run1.txt17
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_run2.txt26
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_run3.txt26
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/application_run4.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.json15
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.md12
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.txt7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.xml12
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.json33
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.md29
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.txt13
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.xml21
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/command_mbstring.md29
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/command_mbstring.txt13
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.json7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.md5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.xml5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.json7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.md7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.xml5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.json7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.md7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.xml7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.json7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.md8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.txt2
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.xml6
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.json7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.md7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.xml7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.json7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.md7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.xml7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.json4
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.md0
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.txt0
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.xml5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.json12
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.md7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.txt2
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.xml10
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.json14
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.md8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.txt2
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.xml9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.json22
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.md16
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.txt5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.xml14
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.json9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.md6
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.xml4
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.json9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.md8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.xml7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.json9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.md8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.xml5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.json9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.md8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.xml5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.json9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.md9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.txt2
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.xml6
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.json9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.md8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.xml5
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.json9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.md8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.xml7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.json9
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.md8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.xml7
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.json12
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.md8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.txt1
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.xml8
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleStackTest.php71
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleTest.php100
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php344
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/AbstractQuestionHelperTest.php34
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/FormatterHelperTest.php129
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/HelperSetTest.php127
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/HelperTest.php55
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/ProcessHelperTest.php118
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/ProgressBarTest.php792
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/ProgressIndicatorTest.php183
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/QuestionHelperTest.php1063
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/SymfonyQuestionHelperTest.php168
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/TableStyleTest.php28
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Helper/TableTest.php874
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Input/ArgvInputTest.php466
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Input/ArrayInputTest.php177
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Input/InputArgumentTest.php117
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Input/InputDefinitionTest.php406
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Input/InputOptionTest.php210
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Input/InputTest.php149
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Input/StringInputTest.php87
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Logger/ConsoleLoggerTest.php215
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Output/ConsoleOutputTest.php42
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Output/NullOutputTest.php88
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Output/OutputTest.php176
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Output/StreamOutputTest.php61
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Question/ConfirmationQuestionTest.php62
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Style/SymfonyStyleTest.php116
-rw-r--r--www/wiki/vendor/symfony/console/Tests/TerminalTest.php44
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Tester/ApplicationTesterTest.php70
-rw-r--r--www/wiki/vendor/symfony/console/Tests/Tester/CommandTesterTest.php216
-rw-r--r--www/wiki/vendor/symfony/console/composer.json56
-rw-r--r--www/wiki/vendor/symfony/console/phpunit.xml.dist41
-rw-r--r--www/wiki/vendor/symfony/debug/.gitignore3
-rw-r--r--www/wiki/vendor/symfony/debug/BufferingLogger.php37
-rw-r--r--www/wiki/vendor/symfony/debug/CHANGELOG.md64
-rw-r--r--www/wiki/vendor/symfony/debug/Debug.php60
-rw-r--r--www/wiki/vendor/symfony/debug/DebugClassLoader.php447
-rw-r--r--www/wiki/vendor/symfony/debug/ErrorHandler.php781
-rw-r--r--www/wiki/vendor/symfony/debug/Exception/ClassNotFoundException.php36
-rw-r--r--www/wiki/vendor/symfony/debug/Exception/ContextErrorException.php40
-rw-r--r--www/wiki/vendor/symfony/debug/Exception/FatalErrorException.php82
-rw-r--r--www/wiki/vendor/symfony/debug/Exception/FatalThrowableError.php45
-rw-r--r--www/wiki/vendor/symfony/debug/Exception/FlattenException.php263
-rw-r--r--www/wiki/vendor/symfony/debug/Exception/OutOfMemoryException.php21
-rw-r--r--www/wiki/vendor/symfony/debug/Exception/SilencedErrorContext.php67
-rw-r--r--www/wiki/vendor/symfony/debug/Exception/UndefinedFunctionException.php36
-rw-r--r--www/wiki/vendor/symfony/debug/Exception/UndefinedMethodException.php36
-rw-r--r--www/wiki/vendor/symfony/debug/ExceptionHandler.php440
-rw-r--r--www/wiki/vendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php206
-rw-r--r--www/wiki/vendor/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.php32
-rw-r--r--www/wiki/vendor/symfony/debug/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php84
-rw-r--r--www/wiki/vendor/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php66
-rw-r--r--www/wiki/vendor/symfony/debug/LICENSE19
-rw-r--r--www/wiki/vendor/symfony/debug/README.md13
-rw-r--r--www/wiki/vendor/symfony/debug/Resources/ext/README.md134
-rw-r--r--www/wiki/vendor/symfony/debug/Resources/ext/config.m463
-rw-r--r--www/wiki/vendor/symfony/debug/Resources/ext/config.w3213
-rw-r--r--www/wiki/vendor/symfony/debug/Resources/ext/php_symfony_debug.h60
-rw-r--r--www/wiki/vendor/symfony/debug/Resources/ext/symfony_debug.c283
-rw-r--r--www/wiki/vendor/symfony/debug/Resources/ext/tests/001.phpt155
-rw-r--r--www/wiki/vendor/symfony/debug/Resources/ext/tests/002.phpt65
-rw-r--r--www/wiki/vendor/symfony/debug/Resources/ext/tests/002_1.phpt48
-rw-r--r--www/wiki/vendor/symfony/debug/Resources/ext/tests/003.phpt87
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/DebugClassLoaderTest.php451
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/ErrorHandlerTest.php645
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Exception/FlattenExceptionTest.php302
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/ExceptionHandlerTest.php133
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php176
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php81
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php76
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/AnnotatedClass.php13
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/ClassAlias.php3
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/DefinitionInEvaluatedCode.php11
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/DeprecatedClass.php12
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/DeprecatedInterface.php12
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php22
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/ExtendedFinalMethod.php19
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalClasses.php84
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalMethod.php24
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalMethod2Trait.php10
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalClass.php15
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalInterface.php10
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalTrait.php10
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalTrait2.php23
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/LoggerThatSetAnErrorHandler.php15
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/NonDeprecatedInterface.php7
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/PEARClass.php5
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/Throwing.php3
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php24
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/TraitWithInternalMethod.php13
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/casemismatch.php7
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/notPsr0Bis.php7
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/psr4/Psr4CaseMismatch.php7
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures/reallyNotPsr0.php7
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/Fixtures2/RequiredTwice.php7
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/HeaderMock.php38
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/MockExceptionHandler.php24
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/phpt/debug_class_loader.phpt27
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/phpt/decorate_exception_hander.phpt47
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/phpt/exception_rethrown.phpt35
-rw-r--r--www/wiki/vendor/symfony/debug/Tests/phpt/fatal_with_nested_handlers.phpt42
-rw-r--r--www/wiki/vendor/symfony/debug/composer.json40
-rw-r--r--www/wiki/vendor/symfony/debug/phpunit.xml.dist33
-rw-r--r--www/wiki/vendor/symfony/polyfill-ctype/Ctype.php227
-rw-r--r--www/wiki/vendor/symfony/polyfill-ctype/LICENSE19
-rw-r--r--www/wiki/vendor/symfony/polyfill-ctype/README.md12
-rw-r--r--www/wiki/vendor/symfony/polyfill-ctype/bootstrap.php26
-rw-r--r--www/wiki/vendor/symfony/polyfill-ctype/composer.json34
-rw-r--r--www/wiki/vendor/symfony/polyfill-mbstring/LICENSE19
-rw-r--r--www/wiki/vendor/symfony/polyfill-mbstring/Mbstring.php800
-rw-r--r--www/wiki/vendor/symfony/polyfill-mbstring/README.md13
-rw-r--r--www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php1096
-rw-r--r--www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php5
-rw-r--r--www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php1104
-rw-r--r--www/wiki/vendor/symfony/polyfill-mbstring/bootstrap.php58
-rw-r--r--www/wiki/vendor/symfony/polyfill-mbstring/composer.json34
-rw-r--r--www/wiki/vendor/symfony/var-dumper/.gitignore3
-rw-r--r--www/wiki/vendor/symfony/var-dumper/CHANGELOG.md13
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/AmqpCaster.php210
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/ArgsStub.php80
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/Caster.php162
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/ClassStub.php87
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/ConstStub.php33
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/CutArrayStub.php30
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/CutStub.php59
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/DOMCaster.php302
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/DateCaster.php129
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/DoctrineCaster.php60
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/EnumStub.php30
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/ExceptionCaster.php349
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/FrameStub.php30
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/LinkStub.php108
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/MongoCaster.php38
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/PdoCaster.php120
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/PgSqlCaster.php154
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/RedisCaster.php77
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/ReflectionCaster.php341
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/ResourceCaster.php72
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/SplCaster.php213
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/StubCaster.php82
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/SymfonyCaster.php43
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/TraceStub.php36
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php77
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Caster/XmlResourceCaster.php61
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Cloner/AbstractCloner.php332
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Cloner/ClonerInterface.php27
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Cloner/Cursor.php43
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Cloner/Data.php437
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Cloner/DumperInterface.php60
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Cloner/Stub.php67
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Cloner/VarCloner.php329
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Dumper/AbstractDumper.php211
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Dumper/CliDumper.php597
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Dumper/DataDumperInterface.php24
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Dumper/HtmlDumper.php908
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Exception/ThrowingCasterException.php26
-rw-r--r--www/wiki/vendor/symfony/var-dumper/LICENSE19
-rw-r--r--www/wiki/vendor/symfony/var-dumper/README.md15
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Resources/functions/dump.php30
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Test/VarDumperTestTrait.php60
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Caster/CasterTest.php181
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Caster/DateCasterTest.php426
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Caster/ExceptionCasterTest.php230
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Caster/PdoCasterTest.php64
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Caster/RedisCasterTest.php84
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Caster/ReflectionCasterTest.php270
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Caster/SplCasterTest.php213
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Caster/StubCasterTest.php192
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Caster/XmlReaderCasterTest.php248
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Cloner/DataTest.php115
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Cloner/VarClonerTest.php437
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Dumper/CliDumperTest.php591
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Dumper/FunctionsTest.php57
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Dumper/HtmlDumperTest.php168
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/FooInterface.php11
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/GeneratorDemo.php21
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/NotLoadableClass.php7
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php38
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/dumb-var.php40
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/xml_reader.xml10
-rw-r--r--www/wiki/vendor/symfony/var-dumper/Tests/Test/VarDumperTestTraitTest.php41
-rw-r--r--www/wiki/vendor/symfony/var-dumper/VarDumper.php48
-rw-r--r--www/wiki/vendor/symfony/var-dumper/composer.json47
-rw-r--r--www/wiki/vendor/symfony/var-dumper/phpunit.xml.dist33
-rw-r--r--www/wiki/vendor/symfony/yaml/.gitignore3
-rw-r--r--www/wiki/vendor/symfony/yaml/CHANGELOG.md149
-rw-r--r--www/wiki/vendor/symfony/yaml/Command/LintCommand.php250
-rw-r--r--www/wiki/vendor/symfony/yaml/Dumper.php132
-rw-r--r--www/wiki/vendor/symfony/yaml/Escaper.php101
-rw-r--r--www/wiki/vendor/symfony/yaml/Exception/DumpException.php21
-rw-r--r--www/wiki/vendor/symfony/yaml/Exception/ExceptionInterface.php21
-rw-r--r--www/wiki/vendor/symfony/yaml/Exception/ParseException.php139
-rw-r--r--www/wiki/vendor/symfony/yaml/Exception/RuntimeException.php21
-rw-r--r--www/wiki/vendor/symfony/yaml/Inline.php903
-rw-r--r--www/wiki/vendor/symfony/yaml/LICENSE19
-rw-r--r--www/wiki/vendor/symfony/yaml/Parser.php1138
-rw-r--r--www/wiki/vendor/symfony/yaml/README.md13
-rw-r--r--www/wiki/vendor/symfony/yaml/Tag/TaggedValue.php48
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Command/LintCommandTest.php139
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/DumperTest.php495
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsAnchorAlias.yml31
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsBasicTests.yml202
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsBlockMapping.yml51
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsDocumentSeparator.yml85
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsErrorTests.yml25
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsFlowCollections.yml60
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsFoldedScalars.yml176
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsNullsAndEmpties.yml45
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsSpecificationExamples.yml1701
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsTypeTransfers.yml266
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/arrow.gifbin185 -> 0 bytes
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/booleanMappingKeys.yml11
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/embededPhp.yml1
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/escapedCharacters.yml155
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/index.yml18
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyBooleanMappingKeys.yml23
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyNonStringKeys.yml2
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyNullMappingKey.yml9
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/multiple_lines_as_literal_block.yml14
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/multiple_lines_as_literal_block_leading_space_in_first_line.yml4
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/nonStringKeys.yml3
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/not_readable.yml18
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/nullMappingKey.yml9
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/numericMappingKeys.yml23
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfComments.yml76
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfCompact.yml159
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfMergeKey.yml61
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfObjects.yml11
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfQuotes.yml33
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfTests.yml140
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/Fixtures/unindentedCollections.yml82
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/InlineTest.php816
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/ParseExceptionTest.php34
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/ParserTest.php2304
-rw-r--r--www/wiki/vendor/symfony/yaml/Tests/YamlTest.php44
-rw-r--r--www/wiki/vendor/symfony/yaml/Unescaper.php142
-rw-r--r--www/wiki/vendor/symfony/yaml/Yaml.php150
-rw-r--r--www/wiki/vendor/symfony/yaml/composer.json43
-rw-r--r--www/wiki/vendor/symfony/yaml/phpunit.xml.dist30
-rw-r--r--www/wiki/vendor/webmozart/assert/CHANGELOG.md76
-rw-r--r--www/wiki/vendor/webmozart/assert/LICENSE20
-rw-r--r--www/wiki/vendor/webmozart/assert/README.md258
-rw-r--r--www/wiki/vendor/webmozart/assert/composer.json39
-rw-r--r--www/wiki/vendor/webmozart/assert/src/Assert.php1187
-rw-r--r--www/wiki/vendor/wikimedia/avro/LICENSE.txt308
-rw-r--r--www/wiki/vendor/wikimedia/avro/NOTICE.txt9
-rw-r--r--www/wiki/vendor/wikimedia/avro/README.md23
-rw-r--r--www/wiki/vendor/wikimedia/avro/lib/avro.php195
-rw-r--r--www/wiki/vendor/wikimedia/avro/lib/avro/data_file.php535
-rw-r--r--www/wiki/vendor/wikimedia/avro/lib/avro/datum.php984
-rw-r--r--www/wiki/vendor/wikimedia/avro/lib/avro/debug.php194
-rw-r--r--www/wiki/vendor/wikimedia/avro/lib/avro/gmp.php222
-rw-r--r--www/wiki/vendor/wikimedia/avro/lib/avro/io.php494
-rw-r--r--www/wiki/vendor/wikimedia/avro/lib/avro/protocol.php86
-rw-r--r--www/wiki/vendor/wikimedia/avro/lib/avro/schema.php1457
-rw-r--r--www/wiki/vendor/wikimedia/avro/lib/avro/util.php67
-rw-r--r--www/wiki/vendor/wikimedia/testing-access-wrapper/LICENSE342
-rw-r--r--www/wiki/vendor/wikimedia/testing-access-wrapper/README.md41
-rw-r--r--www/wiki/vendor/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php155
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/.editorconfig15
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/.gitignore13
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/.travis.yml22
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/COPYING510
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/README.md106
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/composer.json42
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/phpunit.xml.dist29
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/AttributeMatcher.php85
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/ChildElementMatcher.php69
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/ClassMatcher.php50
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/ComplexTagMatcher.php208
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/DirectChildElementMatcher.php75
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/HtmlMatcher.php111
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/RootElementMatcher.php71
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/TagMatcher.php13
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/TagNameMatcher.php44
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/TextContentsMatcher.php40
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/XmlNodeRecursiveIterator.php32
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/src/functions.php88
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/tests/ComplexTagMatcherTest.php139
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/tests/FunctionsTest.php200
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/tests/HtmlMatcherTest.php110
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/tests/XmlNodeRecursiveIteratorTest.php61
-rw-r--r--www/wiki/vendor/wmde/hamcrest-html-matchers/tests/bootstrap.php6
3915 files changed, 3014 insertions, 384225 deletions
diff --git a/www/wiki/extensions/SemanticFormsSelect/.gitignore b/www/wiki/extensions/SemanticFormsSelect/.gitignore
new file mode 100644
index 00000000..0745b001
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/.gitignore
@@ -0,0 +1,11 @@
+*~
+*.kate-swp
+
+vendor/
+extensions/
+
+composer.phar
+composer.lock
+
+!.*
+.idea/ \ No newline at end of file
diff --git a/www/wiki/extensions/SemanticFormsSelect/.scrutinizer.yml b/www/wiki/extensions/SemanticFormsSelect/.scrutinizer.yml
new file mode 100644
index 00000000..6f59b5cb
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/.scrutinizer.yml
@@ -0,0 +1,28 @@
+filter:
+ excluded_paths:
+ - 'vendor/*'
+
+tools:
+ php_mess_detector:
+ config:
+ controversial_rules: { superglobals: false }
+ php_cpd: true
+ php_pdepend: true
+ php_code_coverage: false
+ php_code_sniffer: true
+ php_cs_fixer: true
+ php_loc: true
+ php_analyzer: true
+ sensiolabs_security_checker: true
+ external_code_coverage:
+ timeout: '900'
+
+checks:
+ php:
+ psr2_class_declaration: false
+ psr2_switch_declaration: false
+ sql_injection_vulnerabilities: true
+ security_vulnerabilities: true
+ no_eval: true
+ code_rating: true
+ duplication: true
diff --git a/www/wiki/extensions/SemanticFormsSelect/.travis.yml b/www/wiki/extensions/SemanticFormsSelect/.travis.yml
new file mode 100644
index 00000000..c1c2a52f
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/.travis.yml
@@ -0,0 +1,38 @@
+# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
+sudo: false
+
+language: php
+
+# https://docs.travis-ci.com/user/trusty-ci-environment/
+dist: trusty
+
+matrix:
+ fast_finish: true
+ include:
+ - env: DB=mysql; MW=REL1_30; PHPUNIT=5.7.*
+ php: 7.0
+ - env: DB=mysql; MW=REL1_27; TYPE=coverage
+ php: 5.6
+ - env: DB=sqlite; MW=REL1_27;
+ php: 5.6
+ - env: DB=mysql; MW=master; PHPUNIT=4.8.*
+ php: hhvm
+
+install:
+ - bash ./tests/travis/install-mediawiki.sh
+ - bash ./tests/travis/install-semantic-forms-select.sh
+
+script:
+ - bash ./tests/travis/run-tests.sh
+
+after_success:
+ - bash ./tests/travis/upload-coverage-report.sh
+
+notifications:
+ email:
+ on_success: change
+ on_failure: always
+
+cache:
+ directories:
+ - $HOME/.composer/cache
diff --git a/www/wiki/extensions/SemanticFormsSelect/COPYING b/www/wiki/extensions/SemanticFormsSelect/COPYING
new file mode 100644
index 00000000..9dcf3f86
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/COPYING
@@ -0,0 +1,103 @@
+'''[https://github.com/SemanticMediaWiki/SemanticFormsSelect Semantic Forms Select (SFS)]''' is a free, open-source extension to Semantic MediaWiki that adds in-page navigation by building breadcrumb links from an attributive property filter.
+
+Copyright (C) 2014
+
+
+The license text below "====" applies to all files within this distribution, other than those that are in a directory which contains files named "LICENSE" or "COPYING", or a subdirectory thereof. For those files, the license text contained in said file overrides any license information contained in directories of smaller depth. Alternative licenses are typically used for software that is provided by external parties, and merely packaged with this extension for convenience.
+----
+----
+
+== GNU GENERAL PUBLIC LICENSE ==
+Version 2, June 1991
+
+Copyright (C) 1989, 1991 Free Software Foundation, Inc.,<br />
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Everyone is permitted to copy and distribute verbatim copies<br />
+of this license document, but changing it is not allowed.
+
+=== Preamble ===
+The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software - to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
+
+When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
+
+To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
+
+For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
+
+We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
+
+Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
+
+The precise terms and conditions for copying, distribution and modification follow.
+
+=== TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION ===
+
+'''0.''' This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
+
+'''1.''' You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
+
+'''2.''' You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
+
+: '''a)''' You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
+
+: '''b)''' You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
+
+: '''c)''' If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
+
+'''3.''' You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
+
+: '''a)''' Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
+
+: '''b)''' Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
+
+: '''c)''' Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
+
+If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
+
+'''4.''' You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
+
+'''5.''' You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
+
+'''6.''' Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
+
+'''7.''' If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot impose that choice.
+
+This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
+
+'''8.''' If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
+
+'''9.''' The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
+
+'''10.''' If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
+
+'''<big>NO WARRANTY</big>'''
+
+'''11.''' BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+'''12.''' IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+'''<big>END OF TERMS AND CONDITIONS</big>'''
diff --git a/www/wiki/extensions/SemanticFormsSelect/ISSUE_TEMPLATE.md b/www/wiki/extensions/SemanticFormsSelect/ISSUE_TEMPLATE.md
new file mode 100644
index 00000000..01509cee
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/ISSUE_TEMPLATE.md
@@ -0,0 +1,18 @@
+### Setup
+
+- MW version:
+- DB (MySQL etc.):
+- PHP version:
+- SMW version:
+- SFS version:
+- PF version:
+- Browsers and versions (if applicable):
+
+### Issue
+
+Detailed description of the issue and a [stack trace](https://www.semantic-mediawiki.org/wiki/Help:Identifying_bugs) if applicable:
+
+```
+```
+
+Steps to reproduce the observation (recommendation is to use the [sandbox](https://sandbox.semantic-mediawiki.org)):
diff --git a/www/wiki/extensions/SemanticFormsSelect/README.md b/www/wiki/extensions/SemanticFormsSelect/README.md
new file mode 100644
index 00000000..fc43b2ef
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/README.md
@@ -0,0 +1,101 @@
+# Semantic Forms Select
+
+[![Build Status](https://secure.travis-ci.org/SemanticMediaWiki/SemanticFormsSelect.svg?branch=master)](http://travis-ci.org/SemanticMediaWiki/SemanticFormsSelect)
+[![Code Coverage](https://scrutinizer-ci.com/g/SemanticMediaWiki/SemanticFormsSelect/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/SemanticMediaWiki/SemanticFormsSelect/?branch=master)
+[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/SemanticMediaWiki/SemanticFormsSelect/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/SemanticMediaWiki/SemanticFormsSelect/?branch=master)
+[![Latest Stable Version](https://poser.pugx.org/mediawiki/semantic-forms-select/version.png)](https://packagist.org/packages/mediawiki/semantic-forms-select)
+[![Packagist download count](https://poser.pugx.org/mediawiki/semantic-forms-select/d/total.png)](https://packagist.org/packages/mediawiki/semantic-forms-select)
+
+Semantic Forms Select (a.k.a. SFS) can generate a select form element with values retrieved from a `#ask` query or a parser function.
+
+## Requirements
+
+- PHP 5.6 or later
+- MediaWiki 1.27 or later
+- [Semantic MediaWiki][smw] 2.5 or later
+- [Page Forms][pf] 4.0.2 or later
+
+## Installation
+
+The recommended way to install Semantic Forms Select is using [Composer](http://getcomposer.org) with
+[MediaWiki's built-in support for Composer](https://www.mediawiki.org/wiki/Composer).
+
+Note that the required extensions Semantic MediaWiki and Page Forms must be installed first according to the installation
+instructions provided for them.
+
+### Step 1
+
+Change to the base directory of your MediaWiki installation. This is where the "LocalSettings.php"
+file is located. If you have not yet installed Composer do it now by running the following command
+in your shell:
+
+ wget https://getcomposer.org/composer.phar
+
+### Step 2
+
+If you do not have a "composer.local.json" file yet, create one and add the following content to it:
+
+```
+{
+ "require": {
+ "mediawiki/semantic-forms-select": "~3.0"
+ }
+}
+```
+
+If you already have a "composer.local.json" file add the following line to the end of the "require"
+section in your file:
+
+ "mediawiki/semantic-forms-select": "~3.0"
+
+Remember to add a comma to the end of the preceding line in this section.
+
+### Step 3
+
+Run the following command in your shell:
+
+ php composer.phar update --no-dev
+
+Note if you have Git installed on your system add the `--prefer-source` flag to the above command. Also
+note that it may be necessary to run this command twice. If unsure do it twice right away.
+
+### Step 4
+
+Add the following line to the end of your "LocalSettings.php" file:
+
+ wfLoadExtension( 'SemanticFormsSelect' );
+
+### Verify installation success
+
+As final step, you can verify SFS got installed by looking at the "Special:Version" page on your wiki and check that it is listed in the semantic extensions section.
+
+## Usage
+
+Please consult the [help](https://www.mediawiki.org/wiki/Extension:SemanticFormsSelect) page for more information and examples.
+
+## Contribution and support
+
+If you want to contribute work to the project please subscribe to the developers mailing list and
+have a look at the contribution guideline.
+
+* [File an issue](https://github.com/SemanticMediaWiki/SemanticFormsSelect/issues)
+* [Submit a pull request](https://github.com/SemanticMediaWiki/SemanticFormsSelect/pulls)
+* Ask a question on [the mailing list](https://www.semantic-mediawiki.org/wiki/Mailing_list)
+* Ask a question on the #semantic-mediawiki IRC channel on Freenode.
+
+Original code from https://code.google.com/p/semanticformsselect/downloads/list
+
+## Tests
+
+This extension provides unit and integration tests that are run by a [continues integration platform][travis]
+but can also be executed using `composer phpunit` from the extension base directory.
+
+## License
+
+[GNU General Public License, version 2 or later][gpl-licence].
+
+[gpl-licence]: https://www.gnu.org/copyleft/gpl.html
+[smw]: https://github.com/SemanticMediaWiki/SemanticMediaWiki
+[travis]: https://travis-ci.org/SemanticMediaWiki/SemanticFormsSelect
+[pf]: https://www.mediawiki.org/wiki/Extension:Page_Forms
+[composer]: https://getcomposer.org/
diff --git a/www/wiki/extensions/SemanticFormsSelect/RELEASE-NOTES.md b/www/wiki/extensions/SemanticFormsSelect/RELEASE-NOTES.md
new file mode 100644
index 00000000..eaa06a68
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/RELEASE-NOTES.md
@@ -0,0 +1,91 @@
+This file contains the RELEASE-NOTES of the Semantic Forms Select (a.k.a. SFS) extension.
+
+### 3.0.0
+
+Released on October 5, 2018.
+
+* Dropped support for Semantic MediaWiki 2.4 and lower
+* Dropped support for PHP 5.5 and lower
+* #53 Added support for "mapping property" / "mapping template" in value fields (by Alexander Gesinn)
+* #62 Added support for recent versions of the Page Forms extension (by Alexander Gesinn)
+* Added styles to make single values fields appear like the combobox input type of Page Forms (by Alexander Gesinn)
+* Added handling for the checkbox input type of Page Forms (by Alexander Gesinn)
+* Refactored SemanticFormsSelectInput class -> moved logic to new SelectField class (by Alexander Gesinn)
+* Added Unit Tests (by Felix Ashu)
+* Provided translation updates (by TranslateWiki.net community)
+
+### 2.1.1
+
+Released on June 27, 2017.
+
+* Fixed incorrect version numbering
+* #64 Updated version constraints for requied dependeny Page Forms
+* Provided translation updates (by TranslateWiki.net community)
+
+### 2.1.0
+
+Released on January 19, 2017.
+
+* #54 Fixed select fields no to update for an existing page (by Alexander Gesinn)
+* #56 Fixed issue when multiple `sf_select` have the same parameter in the same page (by Toni Hermoso Pulido)
+* Provided translation updates (by TranslateWiki.net community)
+
+### 2.0.0
+
+Released on December 19, 2016.
+
+* Dropped support for MediaWiki 1.26 and lower
+* Dropped support for PHP 5.4 and lower
+* Dropped support for the Semantic Forms extension
+* Added support for the Page Forms extension
+* #29 Added support for I18n (by James Hong Kong)
+* #29 Made internal code improvements (by James Hong Kong)
+* #30 Migrated to MediaWiki 1.25 extension registration method (by James Hong Kong)
+* #31 Fixed missing input not being populated when parent input only has one value (by Pierre Rudloff)
+* #34 Added escaping for spaces in template names (by Pierre Rudloff)
+* #42, #45 Migrated extension to use the Page Forms extension instead of the Semantic Forms extension (by Thomas Mulhall and Sébastien Beyou)
+* #50 Internal code changes regarding bootstrap (by James Hong Kong)
+* Provided translation updates (by TranslateWiki.net community)
+* Updated testing environment (by Thomas Mulhall and James Hong Kong)
+
+### 1.3.0
+
+Released on November 30, 2015.
+
+* Added the `SFS` PHP namespace (by James Hong Kong)
+* Added full Composer compatibility and autoloading (PSR-4) (by James Hong Kong)
+* Added stricter control over how the `scriptSelect.js` is being used (removed JS elements from PHP) and accessed from MediaWiki (by James Hong Kong)
+* Added `ResourceLoader` support (by James Hong Kong)
+* Added unit tests and general test coverage support (by James Hong Kong)
+* Fixed parser call from `Special:FormEdit/DemoAjax1` (by James Hong Kong)
+* Provided COPYING file (by James Hong Kong)
+
+### 1.2.2
+
+Released on September 18, 2015.
+
+* Fixed options filling in internal script (by Toni Hermoso Pulido)
+
+### 1.2.0
+
+Released on September 11, 2015.
+
+* Dropped support for MediaWiki 1.22 and earlier (by Toni Hermoso Pulido)
+* Dropped support for PHP 5.2 and earlier (by Toni Hermoso Pulido)
+* Extension converted to use Composer (by Toni Hermoso Pulido)
+* Converted depreciated AJAX methods to API methods (by Toni Hermoso Pulido)
+* Add support for the Semantic Forms "mapping template" parameter (by Toni Hermoso Pulido)
+* Improved README (by Toni Hermoso Pulido)
+* Several internal improvements (by Toni Hermoso Pulido)
+
+### 1.1.0
+
+Released on Febrary 23, 2013.
+
+* Various improvements (by Jason Zhang)
+
+### 1.0.0
+
+Released on January 17, 2012.
+
+* Initial release (by Jason Zhang)
diff --git a/www/wiki/extensions/SemanticFormsSelect/SemanticFormsSelect.hooks.php b/www/wiki/extensions/SemanticFormsSelect/SemanticFormsSelect.hooks.php
new file mode 100644
index 00000000..7138c0c4
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/SemanticFormsSelect.hooks.php
@@ -0,0 +1,38 @@
+<?php
+
+namespace SFS;
+
+/**
+ * @license GNU GPL v2+
+ * @since 3.0
+ * @author: Alexander Gesinn
+ */
+class Hooks {
+ /**
+ * Register Page Forms Input Type
+ *
+ * This is attached to the MediaWiki 'ParserFirstCallInit' hook.
+ *
+ * @param $parser Parser
+ * @return bool
+ */
+ public static function onSemanticFormsSelectSetup ( & $parser ) {
+
+ if ( !defined( 'PF_VERSION' ) ) {
+ die( '<b>Error:</b><a href="https://github.com/SemanticMediaWiki/SemanticFormsSelect/">Semantic Forms Select</a> requires the <a href="https://www.mediawiki.org/wiki/Extension:PageForms">Page Forms</a> extension. Please install and activate this extension first.' );
+ }
+
+ if ( isset( $GLOBALS['wgPageFormsFormPrinter'] ) ) {
+ $GLOBALS['wgPageFormsFormPrinter']->registerInputType( \SFS\SemanticFormsSelectInput::class );
+ }
+
+ return true;
+ }
+
+ public static function onRegistration() {
+
+ if ( isset( $GLOBALS['wgAPIModules'] ) ) {
+ $GLOBALS['wgAPIModules']['sformsselect'] = \SFS\ApiSemanticFormsSelect::class;
+ }
+ }
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/composer.json b/www/wiki/extensions/SemanticFormsSelect/composer.json
new file mode 100644
index 00000000..85609b32
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/composer.json
@@ -0,0 +1,64 @@
+{
+ "name": "mediawiki/semantic-forms-select",
+ "type": "mediawiki-extension",
+ "description": "Allows to generate a select field in a form whose values are retrieved from a query",
+ "keywords": [
+ "MediaWiki",
+ "SMW",
+ "Semantic MediaWiki",
+ "Page Forms"
+ ],
+ "homepage": "https://www.mediawiki.org/wiki/Extension:SemanticFormsSelect",
+ "license": "GPL-2.0-or-later",
+ "authors": [
+ {
+ "name": "Jason Zhang",
+ "role": "Creator"
+ },
+ {
+ "name": "Toni Hermoso Pulido",
+ "role": "Developer"
+ },
+ {
+ "name": "James Hong Kong",
+ "role": "Developer"
+ },
+ {
+ "name": "Thomas Mulhall",
+ "role": "Developer"
+ },
+ {
+ "name": "Alexander Gesinn",
+ "role": "Developer"
+ },
+ {
+ "name": "Felix Ashu",
+ "role": "Developer"
+ }
+ ],
+ "require": {
+ "php": ">=5.6",
+ "composer/installers": "1.*,>=1.0.1",
+ "mediawiki/semantic-media-wiki": "~2.5|~3.0",
+ "mediawiki/page-forms": ">=4.0.2"
+ },
+ "require-dev": {
+ "mediawiki/semantic-media-wiki": "@dev"
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "SFS\\": "src/"
+ }
+ },
+ "config": {
+ "process-timeout": 0
+ },
+ "scripts":{
+ "phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist"
+ }
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/extension.json b/www/wiki/extensions/SemanticFormsSelect/extension.json
new file mode 100644
index 00000000..bacfb313
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/extension.json
@@ -0,0 +1,63 @@
+{
+ "name": "Semantic Forms Select",
+ "version": "3.0.0",
+ "author": [
+ "Jason Zhang",
+ "James Hong Kong",
+ "Toni Hermoso Pulido",
+ "Thomas Mulhall",
+ "Alexander Gesinn",
+ "[https://github.com/SemanticMediaWiki/SemanticFormsSelect/graphs/contributors ...]"
+ ],
+ "url": "https://www.mediawiki.org/wiki/Extension:SemanticFormsSelect",
+ "descriptionmsg": "sfs-desc",
+ "license-name": "GPL-2.0-or-later",
+ "type": "semantic",
+ "requires": {
+ "MediaWiki": ">= 1.27"
+ },
+ "AutoloadClasses": {
+ "SFS\\Hooks": "SemanticFormsSelect.hooks.php",
+ "SFS\\SemanticFormsSelectInput": "src/SemanticFormsSelectInput.php",
+ "SFS\\Output": "src/Output.php",
+ "SFS\\SelectField": "src/SelectField.php",
+ "SFS\\ApiSemanticFormsSelectRequestProcessor": "src/ApiSemanticFormsSelectRequestProcessor.php",
+ "SFS\\ApiSemanticFormsSelect": "src/ApiSemanticFormsSelect.php"
+ },
+ "config": {
+ "ScriptSelectCount": 0,
+ "SF_Select_debug": false
+ },
+ "callback": "SFS\\Hooks::onRegistration",
+ "MessagesDirs": {
+ "SemanticFormsSelect": [
+ "i18n"
+ ]
+ },
+ "ResourceModules": {
+ "ext.sf_select.scriptselect": {
+ "scripts": [
+ "res/scriptSelect.js"
+ ],
+ "styles": [
+ "res/select2.css"
+ ],
+ "dependencies": [
+ "ext.pageforms.main",
+ "ext.pageforms.select2"
+ ],
+ "position": "bottom"
+ }
+ },
+ "ResourceFileModulePaths": {
+ "localBasePath": "",
+ "remoteExtPath": "SemanticFormsSelect"
+ },
+ "Hooks": {
+ "ParserFirstCallInit": [
+ "SFS\\Hooks::onSemanticFormsSelectSetup"
+ ]
+ },
+ "load_composer_autoloader":true,
+ "manifest_version": 1
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/ar.json b/www/wiki/extensions/SemanticFormsSelect/i18n/ar.json
new file mode 100644
index 00000000..df82a4c7
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/ar.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "ديفيد"
+ ]
+ },
+ "sfs-desc": "يسمح بتوليد حقل محدد في نموذج تم استرداد قيمه من استعلام"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/ast.json b/www/wiki/extensions/SemanticFormsSelect/i18n/ast.json
new file mode 100644
index 00000000..20cae269
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/ast.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Xuacu"
+ ]
+ },
+ "sfs-desc": "Permite xenerar un campu de selección nun formulariu, nel que los valores sáquense d'una consulta"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/be-tarask.json b/www/wiki/extensions/SemanticFormsSelect/i18n/be-tarask.json
new file mode 100644
index 00000000..69c05275
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/be-tarask.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Red Winged Duck"
+ ]
+ },
+ "sfs-desc": "Дазваляе стварыць поле выбару на форме, чые значэньні будуць узятыя з запыту"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/be.json b/www/wiki/extensions/SemanticFormsSelect/i18n/be.json
new file mode 100644
index 00000000..507fc725
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/be.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Mechanizatar"
+ ]
+ },
+ "sfs-desc": "Дазваляе стварыць поле выбару на форме. Значэнні будуць узятыя з запыту"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/br.json b/www/wiki/extensions/SemanticFormsSelect/i18n/br.json
new file mode 100644
index 00000000..185c8b5b
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/br.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Fulup"
+ ]
+ },
+ "sfs-desc": "Aotren a ra sevel ur roll-desachañ en ur furmskrid gant ar roadennoù distroet diwar ur reked"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/ca.json b/www/wiki/extensions/SemanticFormsSelect/i18n/ca.json
new file mode 100644
index 00000000..809e791b
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/ca.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Toniher"
+ ]
+ },
+ "sfs-desc": "Permet generar un camp select en un formulari amb els valors retornats d'una consulta"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/de.json b/www/wiki/extensions/SemanticFormsSelect/i18n/de.json
new file mode 100644
index 00000000..cb367f76
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/de.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Kghbln"
+ ]
+ },
+ "sfs-desc": "Ermöglicht Eingabefelder innerhalb eines Formulars, deren zur Auswahl stehenden Werte mit einer semantischen Abfrage ermittelt werden"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/en.json b/www/wiki/extensions/SemanticFormsSelect/i18n/en.json
new file mode 100644
index 00000000..fdf3eee2
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/en.json
@@ -0,0 +1,9 @@
+{
+ "@metadata": {
+ "authors": [
+ "kghbln",
+ "mwjames"
+ ]
+ },
+ "sfs-desc": "Allows to generate a select field in a form whose values are retrieved from a query"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/es.json b/www/wiki/extensions/SemanticFormsSelect/i18n/es.json
new file mode 100644
index 00000000..d5d66dc9
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/es.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Fitoschido"
+ ]
+ },
+ "sfs-desc": "Permite generar campos de selección en formularios, cuyos valores se recuperan de una consulta"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/fr.json b/www/wiki/extensions/SemanticFormsSelect/i18n/fr.json
new file mode 100644
index 00000000..2c17bb5c
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/fr.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Seb35"
+ ]
+ },
+ "sfs-desc": "Permet de générer une liste déroulante dans un formulaire, liste dont les valeurs proviennent d’une requête"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/gl.json b/www/wiki/extensions/SemanticFormsSelect/i18n/gl.json
new file mode 100644
index 00000000..f9b4a47d
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/gl.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Elisardojm"
+ ]
+ },
+ "sfs-desc": "Permite xerar un campo de selección nun formulario cuxos valores son recuperados dunha consulta"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/ia.json b/www/wiki/extensions/SemanticFormsSelect/i18n/ia.json
new file mode 100644
index 00000000..ea044384
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/ia.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "McDutchie"
+ ]
+ },
+ "sfs-desc": "Permitte generar un campo de selection in un formulario, con valores proveniente de un consulta"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/li.json b/www/wiki/extensions/SemanticFormsSelect/i18n/li.json
new file mode 100644
index 00000000..54fc4493
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/li.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Ooswesthoesbes"
+ ]
+ },
+ "sfs-desc": "Maak 't meugelik e silleksjeveld in e formeleer aan te make wovan de waerd waere opgehaold oet e verzeuk"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/mk.json b/www/wiki/extensions/SemanticFormsSelect/i18n/mk.json
new file mode 100644
index 00000000..6de22e16
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/mk.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Bjankuloski06"
+ ]
+ },
+ "sfs-desc": "Овозможува создавање на изборно поле во облик чии вредности се добиваат со побарување"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/nb.json b/www/wiki/extensions/SemanticFormsSelect/i18n/nb.json
new file mode 100644
index 00000000..31bfc791
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/nb.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Jon Harald Søby"
+ ]
+ },
+ "sfs-desc": "Gjør det mulig å generere et select-felt i et skjema hvis verdier hentes fra en spørring"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/nl.json b/www/wiki/extensions/SemanticFormsSelect/i18n/nl.json
new file mode 100644
index 00000000..c9e486a1
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/nl.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Rcdeboer"
+ ]
+ },
+ "sfs-desc": "Maakt het mogelijk een selectieveld in een formulier te genereren waarvan de waarden worden opgehaald uit een query"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/pl.json b/www/wiki/extensions/SemanticFormsSelect/i18n/pl.json
new file mode 100644
index 00000000..97a52903
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/pl.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Chrumps"
+ ]
+ },
+ "sfs-desc": "Umożliwia tworzenie pola wyboru w formularzu, którego wartości są pobierane z zapytania"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/pt-br.json b/www/wiki/extensions/SemanticFormsSelect/i18n/pt-br.json
new file mode 100644
index 00000000..36ce7c8c
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/pt-br.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "!Silent"
+ ]
+ },
+ "sfs-desc": "Permite gerar um campo de seleção em um formulário cujos valores são recuperados de uma consulta"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/pt.json b/www/wiki/extensions/SemanticFormsSelect/i18n/pt.json
new file mode 100644
index 00000000..41d938d6
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/pt.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Hamilton Abreu"
+ ]
+ },
+ "sfs-desc": "Permite gerar num formulário um campo de seleção cujos valores são obtidos com uma consulta"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/qqq.json b/www/wiki/extensions/SemanticFormsSelect/i18n/qqq.json
new file mode 100644
index 00000000..895630e0
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/qqq.json
@@ -0,0 +1,9 @@
+{
+ "@metadata": {
+ "authors": [
+ "Kghbln",
+ "Mwjames"
+ ]
+ },
+ "sfs-desc": "{{desc|name=SemanticFormsSelect|url=https://www.mediawiki.org/wiki/Extension:SemanticFormsSelect}}"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/roa-tara.json b/www/wiki/extensions/SemanticFormsSelect/i18n/roa-tara.json
new file mode 100644
index 00000000..6d7485de
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/roa-tara.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Joetaras"
+ ]
+ },
+ "sfs-desc": "Face ccrejà 'nu cambe scacchiate jndr'à 'nu module cu le valore ca onne state pigghiate da 'n'inderrogazione"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/ru.json b/www/wiki/extensions/SemanticFormsSelect/i18n/ru.json
new file mode 100644
index 00000000..02a83317
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/ru.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Kareyac"
+ ]
+ },
+ "sfs-desc": "Позволяет создать выбор поля в форме, значения которых извлекаются из запроса."
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/sr-ec.json b/www/wiki/extensions/SemanticFormsSelect/i18n/sr-ec.json
new file mode 100644
index 00000000..148f6b9f
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/sr-ec.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Obsuser"
+ ]
+ },
+ "sfs-desc": "Омогућава генерисање поља за одабир у форми чије вредности се враћају из упита"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/tr.json b/www/wiki/extensions/SemanticFormsSelect/i18n/tr.json
new file mode 100644
index 00000000..f6def0c1
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/tr.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Hedda"
+ ]
+ },
+ "sfs-desc": "Değerleri sorgudan alınan bir formda bir seçim alanı oluşturulmasına izin verir."
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/uk.json b/www/wiki/extensions/SemanticFormsSelect/i18n/uk.json
new file mode 100644
index 00000000..7a076673
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/uk.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Piramidion"
+ ]
+ },
+ "sfs-desc": "Дозволяє згенерувати вибір поля у формі, чиї значення отримуються із запиту"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/zh-hans.json b/www/wiki/extensions/SemanticFormsSelect/i18n/zh-hans.json
new file mode 100644
index 00000000..dae37368
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/zh-hans.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Liuxinyu970226"
+ ]
+ },
+ "sfs-desc": "允许在从查询检索值的表单中生成选择字段"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/i18n/zh-hant.json b/www/wiki/extensions/SemanticFormsSelect/i18n/zh-hant.json
new file mode 100644
index 00000000..a1dec29e
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/i18n/zh-hant.json
@@ -0,0 +1,9 @@
+{
+ "@metadata": {
+ "authors": [
+ "Assoc",
+ "Deathkon"
+ ]
+ },
+ "sfs-desc": "允許在從査詢檢索值的表單中生成選擇欄位"
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/phpunit.xml.dist b/www/wiki/extensions/SemanticFormsSelect/phpunit.xml.dist
new file mode 100644
index 00000000..cb226758
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/phpunit.xml.dist
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit backupGlobals="false"
+ backupStaticAttributes="false"
+ bootstrap="tests/bootstrap.php"
+ cacheTokens="false"
+ colors="true"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ stopOnError="false"
+ stopOnFailure="false"
+ stopOnIncomplete="false"
+ stopOnSkipped="false"
+ verbose="true">
+ <testsuites>
+ <testsuite name="semantic-forms-select-unit">
+ <directory>tests/phpunit/Unit</directory>
+ </testsuite>
+ <testsuite name="semantic-forms-select-integration">
+ <directory>tests/phpunit/Integration</directory>
+ </testsuite>
+ </testsuites>
+ <filter>
+ <whitelist addUncoveredFilesFromWhitelist="true">
+ <directory suffix=".php">src</directory>
+ </whitelist>
+ </filter>
+</phpunit>
diff --git a/www/wiki/extensions/SemanticFormsSelect/res/scriptSelect.js b/www/wiki/extensions/SemanticFormsSelect/res/scriptSelect.js
new file mode 100644
index 00000000..d6632d21
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/res/scriptSelect.js
@@ -0,0 +1,490 @@
+/*
+ * return a jquery pattern string to find out form fields which values will be changed
+ *
+ */
+function SFSelect_getSelectFieldPat(nameObj, f) {
+ var selectpat = "";
+ if (f.selectismultiple) {
+ if (f.selecttemplate == f.valuetemplate) {
+ // each select field in a multiple
+ // template depends on its value field.
+
+ var pat = "select[name='" + f.selecttemplate + "[" + nameObj.index + "][" + f.selectfield + "]']";
+ var pat1 = "select[name='" + f.selecttemplate + "[" + nameObj.index + "][" + f.selectfield + "][]']";
+ selectpat = pat + "," + pat1;
+ } else {
+ // multiple select fields depends on one
+ // value field.
+ selectpat = "select[name^='"
+ + f.selecttemplate
+ + "'][name$='["
+ + f.selectfield
+ + "]'], select[name^='"
+ + f.selecttemplate
+ + "'][name$='["
+ + f.selectfield + "][]']";
+ }
+
+ } else {
+ selectpat = "select[name='"
+ + f.selecttemplate + "["
+ + f.selectfield
+ + "]'], select[name='"
+ + f.selecttemplate + "["
+ + f.selectfield + "][]']";
+ }
+ return selectpat;
+}
+
+/*
+ * Parse the SF field name into an objetc for easy process
+ */
+function SFSelect_parseName(name) {
+ var names = name.split('[');
+ var nameObj = {template: names[0]};
+ if (names[names.length - 1] == ']') {
+ nameObj.isList = true;
+ var property = names[names.length - 2]
+ property = property.substr(0, property.length - 1);
+ nameObj.property = property;
+ if (names.length == 4) {
+ var index = names[1];
+ index = index.substr(0, index.length - 1);
+ nameObj.index = index;
+ } else {
+ nameObj.index = null;
+ }
+ } else {
+ nameObj.isList = false;
+ var property = names[names.length - 1]
+ property = property.substr(0, property.length - 1);
+ nameObj.property = property;
+ if (names.length == 3) {
+ var index = names[1];
+ index = index.substr(0, index.length - 1);
+ nameObj.index = index;
+ } else {
+ nameObj.index = null;
+ }
+ }
+ return nameObj;
+}
+
+function SFSelect_setDependentValues(nameobj, fobj, values) {
+
+ var selectPat = SFSelect_getSelectFieldPat(nameobj, fobj);
+
+ jQuery(selectPat).each(function (index, element) {
+ //keep selected values;
+ var selectedValues = jQuery(element).val();
+
+ if ( !selectedValues && fobj.hasOwnProperty("curvalues") ) {
+ selectedValues = fobj.curvalues;
+ }
+
+ if (!selectedValues) {
+ selectedValues = [];
+ } else if (!jQuery.isArray(selectedValues)) {
+ selectedValues = [selectedValues];
+ }
+
+ element.options.length = values.length;
+
+ var newselected = [];
+
+ if (fobj.label) {
+ var namevalues = SFSelect_processNameValues(values);
+
+ for (var i = 0; i < namevalues.length; i++) {
+ element.options[i] = new Option(namevalues[i][1], namevalues[i][0]);
+ if (jQuery.inArray(namevalues[i][0], selectedValues) != -1) {
+ element.options[i].selected = true;
+ newselected.push(namevalues[i][0]);
+ }
+ }
+ } else {
+ for (var i = 0; i < values.length; i++) {
+ element.options[i] = new Option(values[i]);
+
+ if (jQuery.inArray(values[i], selectedValues) != -1) {
+ element.options[i].selected = true;
+ newselected.push(values[i]);
+ }
+ }
+ }
+
+ if (newselected.length == 0) {
+ if (fobj.selectrm && fobj.selecttemplate != fobj.valuetemplate && fobj.selectismultiple) {
+ jQuery(element).closest("div.multipleTemplateInstance").remove();
+ } else {
+ if (selectedValues.length != 0 || values.length === 1)
+ jQuery(element).trigger("change");
+ }
+ } else if (!SFSelect_arrayEqual(newselected, selectedValues)) {
+ jQuery(element).trigger("change");
+ }
+ });
+}
+
+/** Function for turning name values from 'Page (property)' results **/
+
+function SFSelect_processNameValues( values ) {
+
+ var namevalues = [];
+
+ for(var i=0; i<values.length; i++){
+
+ var openBr = 0;
+ var doneBr = 0;
+ var num = 0;
+
+ var label = values[i];
+
+ var labelArr = label.split("");
+
+ var end = labelArr.length - 1;
+ var iter = end;
+
+ var endBr = end;
+ var startBr = 0;
+
+ while ( doneBr === 0 && iter >= 0 ) {
+
+ var charLabel = labelArr[ iter ];
+
+ if ( charLabel === ")" ) {
+ openBr = openBr - 1;
+
+ if ( num === 0 ) {
+ endBr = iter;
+ num = num + 1;
+ }
+ }
+
+ if ( charLabel === "(" ) {
+ openBr = openBr + 1;
+
+ if ( num > 0 && openBr === 0 ) {
+ startBr = iter;
+ doneBr = 1;
+ }
+ }
+
+ iter = iter - 1;
+ }
+
+ labelValue = ( labelArr.slice( startBr+1, endBr ) ).join("");
+ labelKey = ( labelArr.slice( 0, startBr - 1 ) ).join("");
+
+ namevalues.push( [ labelKey, labelValue ] );
+
+ }
+
+ return namevalues;
+
+}
+
+function SFSelect_arrayEqual(a, b) {
+ if (a.length != b.length)
+ return false;
+ a = a.sort();
+ b = b.sort();
+ for (var i = 0; i < a.length; i++) {
+ if (a[i] != b[i])
+ return false;
+ }
+ return true;
+}
+
+
+//( function ( $, mw ) {
+( function ($) {
+ 'use strict';
+
+ /**
+ * valuetemplate:string,
+ * valuefield:string, value is the form field on which other select element depends on. change
+ * on this field will trigger a load event for selectfield.
+ * selecttemplate:string
+ * selectfield:string
+ * selectismultiple:boolean, Whether this template is a multiple template.
+ * selectquery or selectfunciton: the query ot function to execute
+ * selectrm:boolean remove the div if the selected value for a field is not valid any more.
+ * label: boolean, process ending content () as label in option values.
+ * sep: Separator for the list of retrieved values, default ','
+ */
+
+ // get the objects from PHP using mw.config helper
+ var SFSelect_fobjs = $.parseJSON(mw.config.get('sf_select'));
+
+ /**
+ * changeHandler
+ * @param src
+ */
+ function SFSelect_changeHandler(src) {
+
+ //console.log("change is called for " + src.name);
+
+ if (src.tagName.toLowerCase() != 'select' && src.tagName.toLowerCase() != 'input') {
+ return;
+ }
+
+ var v = [];
+
+ var selectElement = jQuery(src);
+ var select2enabled = false;
+ var name = src.name;
+
+ if (typeof selectElement.select2 === "function") {
+ // safe to use the function
+
+ var select2Data = selectElement.select2('data');
+ var value_initial = selectElement.attr('data-value-initial');
+ select2enabled = true;
+ }
+
+ // field empty?
+ if ( selectElement.val() && select2enabled ) {
+
+ // do we have a version of Page Forms that supports 'value-initial'?
+ if (typeof value_initial === 'string') {
+
+ // if select2('data') exists
+ if ((select2Data.hasOwnProperty('id') && select2Data.hasOwnProperty('text')) || (select2Data[0].hasOwnProperty('id') && select2Data[0].hasOwnProperty('text'))) {
+
+ // Combobox
+ // lookup values in wgPageFormsAutocompleteValues
+ if (selectElement.hasClass('pfComboBox')) {
+ var autocompletesettings = selectElement.attr('autocompletesettings');
+ if (autocompletesettings !== null) {
+ // In case of initial page load and label is used, select2Data.id holds a value
+ // and not an id. In this case, use 'data-value-initial' instead
+ if (typeof select2Data.id === 'string') {
+ // change triggered by initial page load
+ v.push(value_initial);
+ } else {
+ // change triggered by user
+ v.push(Object.keys(mw.config.get('wgPageFormsAutocompleteValues')[autocompletesettings])[select2Data.id - 1]);
+ }
+ }
+ }
+
+ // Tokens
+ else if (selectElement.hasClass('pfTokens')) {
+ var autocompletesettings = selectElement.attr('autocompletesettings');
+ if (autocompletesettings !== null) {
+ select2Data.forEach(function (i) {
+ v.push(i.id);
+ });
+ }
+ }
+
+ } else { // if select2('data') does not exist, use initial value
+ v = value_initial.split(';');
+ }
+
+ } else {
+
+ // Page Forms does not support 'data-value-initial' -> old behaviour without support for mapping
+ if (jQuery.isArray(selectElement.val())) {
+ v = selectElement.val();
+ } else {
+ if (selectElement.attr('type') === "checkbox") {
+ v = (selectElement.is(":checked")) ? ["true"] : ["false"];
+
+ // cut of [value] component from name
+ name = src.name.substr(0,src.name.indexOf("[value]"));
+ } else {
+ //split and trim
+ v = $.map(selectElement.val().split(";"), $.trim);
+ }
+ }
+ }
+ } else {
+
+ v = selectElement.val();
+
+ if (jQuery.isArray(v)){
+ // That's OK
+ } else if (v==null) {
+
+ v=[];
+
+ } else {
+
+ v=[v];
+
+ }
+ }
+
+ var srcName = SFSelect_parseName(name);
+
+ for (var i = 0; i < SFSelect_fobjs.length; i++) {
+
+ if ( SFSelect_fobjs[i].hasOwnProperty("staticvalue") && SFSelect_fobjs[i].staticvalue ) {
+
+ SFSelect_changeSelected( SFSelect_fobjs[i], srcName );
+
+ } else {
+
+ SFSelect_prepareQuery( SFSelect_fobjs[i], srcName, v );
+
+ }
+ }
+ }
+
+ function SFSelect_changeSelected( fobj, nameobj ) {
+
+ var selectPat=SFSelect_getSelectFieldPat(nameobj, fobj);
+
+ jQuery(selectPat).each(function(index, element){
+ //keep selected values;
+ var selectedValues=jQuery(element).val();
+
+ if ( !selectedValues && fobj.hasOwnProperty("curvalues") ) {
+ selectedValues = fobj.curvalues;
+ }
+
+ if (!selectedValues){
+ selectedValues=[];
+ } else if (!jQuery.isArray(selectedValues)){
+ selectedValues=[selectedValues];
+ }
+
+ if ( element.options && element.options.length > 0 ) {
+
+ var options = jQuery.map( element.options ,function(option) {
+ return option.value;});
+
+ for ( var c = 0; c < selectedValues.length; c++ ) {
+
+ if ( jQuery.inArray( selectedValues[c], options ) ) {
+
+ var changed = jQuery( element ).attr( "data-changed" );
+
+ if ( changed ) {
+
+ jQuery( element ).val( selectedValues[c] ).trigger('change');
+
+ }
+
+ }
+ }
+
+ }
+
+ });
+
+ }
+
+ /**
+ * prepareQuery
+ */
+ function SFSelect_prepareQuery(fobj, srcName, v) {
+ if (srcName.template == fobj.valuetemplate && srcName.property == fobj.valuefield) {
+ //good, we have a match.
+ // No values
+ if (v.length == 0 || v[0] == '') {
+ SFSelect_setDependentValues(srcName, fobj, []);
+ } else {
+ // Values
+
+ var param = {}
+ param['action'] = 'sformsselect';
+ param['format'] = 'json';
+ param['sep'] = fobj.sep;
+
+ if (fobj.selectquery) {
+ var query = fobj.selectquery.replace("@@@@", v.join('||'));
+ param['query'] = query;
+ param['approach'] = 'smw';
+
+ } else {
+ var query = fobj.selectfunction.replace("@@@@", v.join(","));
+ param['query'] = query;
+ param['approach'] = 'function';
+ }
+
+ var posting = jQuery.get(mw.config.get('wgScriptPath') + "/api.php", param);
+ posting.done(function (data) {
+ // Let's pass values
+ SFSelect_setDependentValues(srcName, fobj, data["sformsselect"].values);
+ }).fail(function (data) {
+ console.log("Error!");
+ });
+
+ // break; // Avoid loading fobj again
+ }
+ }
+ }
+
+ /**
+ * removeDuplicateFobjs
+ * SF form add a fobj for each field in a multiple template.
+ * In reality we only need a fobj to reduce the ajax call.
+ **/
+ function SFSelect_removeDuplicateFobjs(SFSelect_fobjs) {
+ var newfobjs = [];
+
+ for (var i = 0; i < SFSelect_fobjs.length; i++) {
+ var found = false;
+ var of = SFSelect_fobjs[i];
+ if (!of.selectismultiple) {
+ newfobjs.push(of);
+ continue;
+ }
+ for (var j = 0; j < newfobjs.length; j++) {
+ var nf = newfobjs[j];
+ if (of.selecttemplate == nf.selecttemplate && of.selectfield == nf.selectfield) {
+ found = true;
+ break;
+ }
+ }
+ if (!found) {
+ newfobjs.push(of);
+ }
+ }
+
+ return newfobjs;
+ }
+
+ //simplify duplicated object.
+ SFSelect_fobjs = SFSelect_removeDuplicateFobjs(SFSelect_fobjs);
+
+ // register change handler
+ $("form#pfForm").change(function (event) {
+ SFSelect_changeHandler(event.target);
+ });
+
+ var objs = null;
+
+ // populate Select fields at load time
+ for (var i = 0; i < SFSelect_fobjs.length; i++) {
+
+ var fobj = SFSelect_fobjs[i];
+
+ //var valuepat = "input[name='" + fobj.valuetemplate + "\\["+ fobj.valuefield + "\\]']";
+
+ // support multi instance templates: select all "input" items starting with fobj.valuetemplate
+ // and containing fobj.valuefield
+ // example name attribute: name="myTemplate[0a][myField]"
+ var valuepat = 'input[name^="' + fobj.valuetemplate + '"]' + '[name*="' + fobj.valuefield + '"]';
+
+ if ($(valuepat).val()) {
+ // get Select fields, skipping 'map_fields'
+ objs = jQuery(valuepat).not('input[name*=map_field]');
+ } else {
+ //valuepat= "select[name='" + fobj.valuetemplate + "\\["+ fobj.valuefield + "\\]']";
+
+ // support multi instance templates: select all "select" items starting with fobj.valuetemplate
+ // and containing fobj.valuefield
+ // example name attribute: name="myTemplate[0a][myField]"
+ var valuepat = 'select[name^="' + fobj.valuetemplate + '"]' + '[name*="' + fobj.valuefield + '"]';
+
+ objs = jQuery(valuepat).not('select[name*=map_field]');
+ }
+ objs.trigger("change");
+ }
+
+//}( jQuery, mediaWiki ) );
+}(jQuery) );
diff --git a/www/wiki/extensions/SemanticFormsSelect/res/select2.css b/www/wiki/extensions/SemanticFormsSelect/res/select2.css
new file mode 100644
index 00000000..efe1174f
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/res/select2.css
@@ -0,0 +1,42 @@
+/* span.select-sfs {
+ margin-bottom: 11px;
+ position: relative;
+ display: inline-block;
+ min-width: 210px;
+} */
+
+/* span.select-sfs-single:after {
+ background-image: url(select2.png);
+ background-image: url(select2.png), linear-gradient(to top,#ccc 0%,#eee 60%);
+ background-image: url(select2.png), -webkit-linear-gradient(center bottom,#ccc 0%,#eee 60%);
+ background-image: url(select2.png), -moz-linear-gradient(center bottom,#ccc 0%,#eee 60%);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee',endColorstr = '#cccccc',GradientType = 0);
+ height: 100%;
+ width: 19px;
+} */
+
+/* span.select-sfs:after{
+ content: '';
+ right: 0;
+ position: absolute;
+ pointer-events: none;
+ border-radius: 0 4px 4px 0;
+ border: 1px solid #aaa;
+} */
+
+/* span.select-sfs select {
+ padding-top: 2px;
+ font-size: 95%;
+ cursor: pointer;
+ outline: none;
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
+ display: inline-block;
+ min-width: 450px !important;
+} */
+
+/* span.select-sfs select:not([multiple]) {
+ height: 26px;
+ background-image: linear-gradient(to top,#eee 0%,#fff 50%)
+} */
diff --git a/www/wiki/extensions/SemanticFormsSelect/res/select2.png b/www/wiki/extensions/SemanticFormsSelect/res/select2.png
new file mode 100644
index 00000000..1d804ffb
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/res/select2.png
Binary files differ
diff --git a/www/wiki/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelect.php b/www/wiki/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelect.php
new file mode 100644
index 00000000..86dabb5e
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelect.php
@@ -0,0 +1,94 @@
+<?php
+
+/**
+ * API modules to communicate with the back-end
+ *
+ * @license GNU GPL v2+
+ * @since 1.2
+ *
+ * @author Jason Zhang
+ * @author Toni Hermoso Pulido
+ */
+
+namespace SFS;
+
+use ApiBase;
+use Parser;
+use ParserOptions;
+use ParserOutput;
+use Title;
+
+class ApiSemanticFormsSelect extends ApiBase {
+
+ /**
+ * @see ApiBase::execute
+ */
+ public function execute() {
+
+ $parser = new Parser( $GLOBALS['wgParserConf'] );
+ $parser->setTitle( Title::newFromText( 'NO TITLE' ) );
+ $parser->mOptions = new ParserOptions();
+ $parser->mOutput = new ParserOutput();
+
+ $apiRequestProcessor = new \SFS\ApiSemanticFormsSelectRequestProcessor( $parser );
+ $apiRequestProcessor->setDebugFlag( $GLOBALS['wgSF_Select_debug'] );
+
+ $resultValues = $apiRequestProcessor->getJsonDecodedResultValuesForRequestParameters(
+ $this->extractRequestParams()
+ );
+
+ $result = $this->getResult();
+ $result->setIndexedTagName( $resultValues->values, 'value' );
+ $result->addValue( $this->getModuleName(), 'values', $resultValues->values );
+ $result->addValue( $this->getModuleName(), 'count', $resultValues->count );
+
+ return true;
+ }
+
+ /**
+ * @see ApiBase::getAllowedParams
+ */
+ public function getAllowedParams() {
+ return [
+ 'approach' => [
+ ApiBase::PARAM_TYPE => 'string',
+ ApiBase::PARAM_REQUIRED => true
+ ],
+ 'query' => [
+ ApiBase::PARAM_TYPE => 'string',
+ ApiBase::PARAM_REQUIRED => true
+ ],
+ 'sep' => [
+ ApiBase::PARAM_TYPE => 'string',
+ ApiBase::PARAM_REQUIRED => false
+ ]
+ ];
+ }
+
+ /**
+ * @see ApiBase::getDescription
+ */
+ public function getDescription() {
+ return [
+ 'API for providing SemanticFormsSelect values'
+ ];
+ }
+
+ /**
+ * @see ApiBase::getParamDescription
+ */
+ public function getParamDescription() {
+ return [
+ 'approach' => 'The actual approach: function or smw',
+ 'query' => 'The query of the former'
+ ];
+ }
+
+ /**
+ * @see ApiBase::getVersion
+ */
+ public function getVersion() {
+ return __CLASS__ . ': 1.1';
+ }
+
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelectRequestProcessor.php b/www/wiki/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelectRequestProcessor.php
new file mode 100644
index 00000000..18355536
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelectRequestProcessor.php
@@ -0,0 +1,149 @@
+<?php
+
+/**
+ * @license GNU GPL v2+
+ * @since 1.3
+ *
+ * @author Jason Zhang
+ * @author Toni Hermoso Pulido
+ * @author mwjames
+ */
+
+namespace SFS;
+
+use Parser;
+use SMWQueryProcessor as QueryProcessor;
+use InvalidArgumentException;
+use MWDebug;
+
+class ApiSemanticFormsSelectRequestProcessor {
+
+ /**
+ * @var Parser
+ */
+ private $parser;
+
+ /**
+ * @var boolean
+ */
+ private $debugFlag = false;
+
+ /**
+ * @since 1.3
+ *
+ * @param Parser $parser
+ */
+ public function __construct( Parser $parser ) {
+ $this->parser = $parser;
+ }
+
+ /**
+ * @since 1.3
+ *
+ * @param boolean $debugFlag
+ */
+ public function setDebugFlag( $debugFlag ) {
+ $this->debugFlag = $debugFlag;
+ }
+
+ /**
+ * @since 1.3
+ *
+ * @param array $parameters
+ *
+ * @return string
+ */
+ public function getJsonDecodedResultValuesForRequestParameters( array $parameters ) {
+
+ if ( !isset( $parameters['query'] ) || !isset( $parameters['sep'] ) ) {
+ throw new InvalidArgumentException( 'Missing an query parameter' );
+ }
+
+ $this->parser->firstCallInit();
+ $json = [];
+
+ if ( isset( $parameters['approach'] ) && $parameters['approach'] == 'smw' ) {
+ $json = $this->doProcessQueryFor( $parameters['query'], $parameters['sep'] );
+ } else {
+ $json = $this->doProcessFunctionFor( $parameters['query'], $parameters['sep'] );
+ }
+
+ // I have no idea why we first encode and and then decode here??
+
+ return json_decode( $json );
+ }
+
+ private function doProcessQueryFor( $querystr, $sep = "," ) {
+
+ $querystr = str_replace(
+ [ "&lt;", "&gt;", "sep=;" ],
+ [ "<", ">", "sep={$sep};" ],
+ $querystr
+ );
+
+ $rawparams = explode( ";", $querystr );
+ $f = str_replace( ";", "|", $rawparams[0] );
+
+ $rawparams[0] = $this->parser->replaceVariables( $f );
+
+ if ( $this->debugFlag ) {
+ error_log( implode( "|", $rawparams ) );
+ }
+
+
+ list( $query, $params ) = QueryProcessor::getQueryAndParamsFromFunctionParams( $rawparams, SMW_OUTPUT_WIKI, QueryProcessor::INLINE_QUERY, false );
+
+ $result = QueryProcessor::getResultFromQuery( $query, $params, SMW_OUTPUT_WIKI, QueryProcessor::INLINE_QUERY );
+
+
+ $values = $this->getFormattedValuesFrom( $sep, $result );
+
+ return json_encode( [
+ "values" => $values,
+ "count" => count( $values )
+ ] );
+ }
+
+ private function doProcessFunctionFor( $query, $sep = "," ) {
+
+ $query = str_replace(
+ [ "&lt;", "&gt;", "sep=;" ],
+ [ "<", ">", "sep={$sep};" ],
+ $query
+ );
+
+ $f = str_replace( ";", "|", $query );
+
+ if ( $this->debugFlag ) {
+ error_log( $f );
+ }
+
+ $values = $this->getFormattedValuesFrom(
+ $sep,
+ $this->parser->replaceVariables( $f )
+ );
+
+ return json_encode( [
+ "values" => $values,
+ "count" => count( $values )
+ ] );
+ }
+
+ private function getFormattedValuesFrom( $sep, $values ) {
+
+ if ( strpos( $values, $sep ) === false ) {
+ return [ $values ];
+ }
+
+ $values = explode( $sep, $values );
+ $values = array_map( "trim", $values );
+ $values = array_unique( $values );
+
+ // TODO: sorting here will destroy any sort defined in the query, e.g. in case sorting for labels (instead of mainlable)
+ //sort( $values );
+ array_unshift( $values, "" );
+
+ return $values;
+ }
+
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/src/Output.php b/www/wiki/extensions/SemanticFormsSelect/src/Output.php
new file mode 100644
index 00000000..578a0ab5
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/src/Output.php
@@ -0,0 +1,47 @@
+<?php
+
+/**
+ * @license GNU GPL v2+
+ * @since 1.3
+ *
+ * @author mwjames
+ * @author Alexander Gesinn
+ */
+
+namespace SFS;
+
+//use MWDebug;
+
+class Output {
+
+ /**
+ * @var array
+ */
+ private static $headItems = [];
+
+ /**
+ * Add an array of SF_Select field parameters as defined in Page Form's field tag.
+ *
+ * This will later be added to $wgOut so that JS can access it via mw.config.get
+ *
+ * @param array $data
+ */
+ public static function addToHeadItem( Array $data = [] ) {
+ return self::$headItems[] = $data;
+ }
+
+ /**
+ * Commit all SF_Select field parameters to Output
+ *
+ */
+ public static function commitToParserOutput() {
+ global $wgOut; # is there a better way to get $output/$parser without using a global? (testability!)
+
+ // to be used in JS like:
+ // var SFSelect_fobjs = $.parseJSON( mw.config.get( 'sf_select' ) );
+ $wgOut->addJsConfigVars('sf_select', json_encode( self::$headItems ));
+
+ //self::$resourceModules = array();
+ //self::$headItems = array();
+ }
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/src/SelectField.php b/www/wiki/extensions/SemanticFormsSelect/src/SelectField.php
new file mode 100644
index 00000000..87adea0a
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/src/SelectField.php
@@ -0,0 +1,210 @@
+<?php
+
+/**
+ * Represents a Select Field.
+ * @license GNU GPL v2+
+ * @since 3.0.0
+ * @author: Alexander Gesinn
+ */
+
+namespace SFS;
+
+use SMWQueryProcessor as QueryProcessor;
+use Parser;
+use MWDebug;
+
+class SelectField {
+
+ private $mParser = null;
+
+ //private $mSelectField = array();
+ private $mValues = null;
+ private $mHasStaticValues = false;
+
+ private $mData = []; # array with all parameters
+ private $mQuery = "";
+ private $mFunction = "";
+ private $mSelectIsMultiple = false;
+ private $mSelectTemplate = "";
+ private $mSelectField = "";
+ private $mValueTemplate = "";
+ private $mValueField = "";
+ private $mSelectRemove = false;
+ private $mLabel = false;
+ private $mDelimiter = ",";
+
+ public function __construct( & $parser ) {
+ $this->mParser = $parser;
+ }
+
+ /**
+ * Convenience function to process all parameters at once
+ */
+ public function processParameters( $input_name = "", $other_args ) {
+ if ( array_key_exists( "query", $other_args ) ) {
+ $this->setQuery( $other_args );
+ } elseif ( array_key_exists( "function", $other_args ) ) {
+ $this->setFunction( $other_args );
+ }
+ }
+
+ /**
+ * getData
+ *
+ * @return array Array with all parameters
+ */
+ public function getData() {
+ return $this->mData;
+ }
+
+ public function setQuery( $other_args ) {
+ $querystr = $other_args["query"];
+ $querystr = str_replace( [ "~", "(", ")" ], [ "=", "[", "]" ], $querystr );
+
+ //$this->mSelectField["query"] = $query;
+ $this->mQuery = $querystr;
+ $this->mData['selectquery'] = $querystr;
+
+ // unparametrized query
+ if ( strpos( $querystr, '@@@@' ) === false ) {
+ $rawparams = explode( ";", $querystr );
+
+ // there is no need to run the parser, $query has been parsed already
+ //$params[0] = $wgParser->replaceVariables( $params[0] );
+
+ list( $query, $params ) = QueryProcessor::getQueryAndParamsFromFunctionParams( $rawparams, SMW_OUTPUT_WIKI, QueryProcessor::INLINE_QUERY, false );
+
+ $result = QueryProcessor::getResultFromQuery( $query, $params, SMW_OUTPUT_WIKI, QueryProcessor::INLINE_QUERY );
+
+ $this->mValues = $this->getFormattedValuesFrom( $this->mDelimiter, $result );
+
+ $this->setHasStaticValues( true );
+ }
+ }
+
+ public function setFunction( $other_args ) {
+ #global $wgParser;
+
+ $function = $other_args["function"];
+ $function = '{{#' . $function . '}}';
+ $function = str_replace( [ "~", "(", ")" ], [ "=", "[", "]" ], $function );
+
+ //$this->mSelectField["function"] = $function;
+ $this->mFunction = $function;
+ $this->mData['selectfunction'] = $function;
+
+ // unparametrized function
+ if ( strpos( $function, '@@@@' ) === false ) {
+ $f = str_replace( ";", "|", $function );
+
+ $this->setValues( $this->mParser->replaceVariables( $f ) );
+
+ $this->setHasStaticValues( true );
+ }
+ }
+
+ public function setSelectIsMultiple( Array $other_args ) {
+ $this->mSelectIsMultiple = array_key_exists( "part_of_multiple", $other_args );
+ $this->mData["selectismultiple"] = $this->mSelectIsMultiple;
+ }
+
+ public function setSelectTemplate( $input_name = "" ) {
+ $index = strpos( $input_name, "[" );
+ $this->mSelectTemplate = substr( $input_name, 0, $index );
+ $this->mData['selecttemplate'] = $this->mSelectTemplate;
+ }
+
+ public function setSelectField( $input_name = "" ) {
+ $index = strrpos( $input_name, "[" );
+ $this->mSelectField = substr( $input_name, $index + 1, strlen( $input_name ) - $index - 2 );
+ $this->mData['selectfield'] = $this->mSelectField;
+ }
+
+ public function setValueTemplate( Array $other_args ) {
+ $this->mValueTemplate =
+ array_key_exists( "sametemplate", $other_args ) ? $this->mSelectTemplate : $other_args["template"];
+ $this->mData["valuetemplate"] = $this->mValueTemplate;
+ }
+
+ public function setValueField( Array $other_args ) {
+ $this->mValueField = $other_args["field"];
+ $this->mData["valuefield"] = $this->mValueField;
+
+ }
+
+ public function setSelectRemove( Array $other_args ) {
+ $this->mSelectRemove = array_key_exists( 'rmdiv', $other_args );
+ $this->mData['selectrm'] = $this->mSelectRemove;
+ }
+
+ public function setLabel( Array $other_args ) {
+ $this->mLabel = array_key_exists( 'label', $other_args );
+ $this->mData['label'] = $this->mLabel;
+ }
+
+ /**
+ * setDelimiter
+ * @param array $other_args
+ */
+ public function setDelimiter( Array $other_args ) {
+
+ $this->mDelimiter = $GLOBALS['wgPageFormsListSeparator'];
+
+ if ( array_key_exists( 'sep', $other_args ) ) {
+ $this->mDelimiter = $other_args['sep'];
+ } else {
+ // Adding Backcompatibility
+ if ( array_key_exists( 'delimiter', $other_args ) ) {
+ $this->mDelimiter = $other_args['delimiter'];
+ }
+ }
+
+ $this->mData['sep'] = $this->mDelimiter;
+ }
+
+ public function getDelimiter() {
+ return $this->mDelimiter;
+ }
+
+ public function getValues() {
+ return $this->mValues;
+ }
+
+ /**
+ * setValues
+ * @param string $values (comma separated, fully parsed list of values)
+ */
+ private function setValues( $values ) {
+ $values = explode( $this->mDelimiter, $values );
+ $values = array_map( "trim", $values );
+ $values = array_unique( $values );
+ $this->mValues = $values;
+ }
+
+ public function hasStaticValues() {
+ return $this->mHasStaticValues;
+ }
+
+ private function setHasStaticValues( $StaticValues ) {
+ $this->mHasStaticValues = $StaticValues;
+ }
+
+ /** Copied from ApiSemanticFormsSelectRequestProcessor */
+
+ private function getFormattedValuesFrom( $sep, $values ) {
+
+ if ( strpos( $values, $sep ) === false ) {
+ return [ $values ];
+ }
+
+ $values = explode( $sep, $values );
+ $values = array_map( "trim", $values );
+ $values = array_unique( $values );
+
+ // TODO: sorting here will destroy any sort defined in the query, e.g. in case sorting for labels (instead of mainlable)
+ //sort( $values );
+ // array_unshift( $values, "" ); Unshift no needed here
+
+ return $values;
+ }
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/src/SemanticFormsSelectInput.php b/www/wiki/extensions/SemanticFormsSelect/src/SemanticFormsSelectInput.php
new file mode 100644
index 00000000..3417f6d0
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/src/SemanticFormsSelectInput.php
@@ -0,0 +1,307 @@
+<?php
+
+/**
+ * @license GNU GPL v2+
+ * @since 1.3
+ *
+ * @author Jason Zhang
+ * @author Toni Hermoso Pulido
+ * @author Alexander Gesinn
+ */
+
+namespace SFS;
+
+use SMWQueryProcessor as QueryProcessor;
+use Parser;
+use PFFormInput;
+use MWDebug;
+
+class SemanticFormsSelectInput extends PFFormInput {
+
+ /**
+ * Internal data container
+ *
+ * @var array
+ */
+ private static $data = [];
+
+ private $mSelectField;
+
+ public function __construct( $inputNumber, $curValue, $inputName, $disabled, $otherArgs ) {
+ parent::__construct( $inputNumber, $curValue, $inputName, $disabled, $otherArgs );
+
+ // SelectField is a simple value object - we accept creating it in the constructor
+ $this->mSelectField = new SelectField( $GLOBALS['wgParser'] );
+ }
+
+ public static function getName() {
+ return 'SF_Select';
+ }
+
+ public static function getParameters() {
+ $params = parent::getParameters();
+ return $params;
+ }
+
+ public function getResourceModuleNames() {
+ /**
+ * Loading modules this way currently fails with:
+ * "mw.loader.state({"ext.sf_select.scriptselect":"loading"});"
+ */
+
+ return [
+ 'ext.sf_select.scriptselect'
+ ];
+ }
+
+ /**
+ * Returns the HTML code to be included in the output page for this input.
+ * This is currently just a wrapper for getHTML().
+ */
+ public function getHtmlText() {
+ return self::getHTML( $this->mCurrentValue, $this->mInputName, $this->mIsMandatory, $this->mIsDisabled,
+ $this->mOtherArgs );
+ }
+
+ /**
+ * Returns the HTML code to be included in the output page for this input.
+ * @deprecated use getHtmlText() instead
+ *
+ * @param string $cur_value A single value or a list of values with separator
+ * @param string $input_name Name of the input including the template, e.g. Building[Part Of Site]
+ * @param $is_mandatory
+ * @param $is_disabled
+ * @param string[] $other_args Array of other field parameters
+ * @return string
+ */
+ public function getHTML( $cur_value = "", $input_name = "", $is_mandatory, $is_disabled, Array $other_args ) {
+ global $sfgFieldNum, $wgUser;
+
+ // shortcut to the SelectField object
+ $selectField = $this->mSelectField;
+
+ // get 'delimiter' before 'query' or 'function'
+ $selectField->setDelimiter( $other_args );
+
+ if ( array_key_exists( "query", $other_args ) ) {
+ $selectField->setQuery( $other_args );
+ } elseif ( array_key_exists( "function", $other_args ) ) {
+ $selectField->setFunction( $other_args );
+ }
+
+ if ( array_key_exists( "label", $other_args ) ) {
+ $selectField->setLabel( $other_args );
+ }
+
+ // parameters are only required if values needs to be retrieved dynamically
+ if ( !$selectField->hasStaticValues() ) {
+ $selectField->setSelectIsMultiple( $other_args );
+ $selectField->setSelectTemplate( $input_name );
+ $selectField->setSelectField( $input_name );
+ $selectField->setValueTemplate( $other_args );
+ $selectField->setValueField( $other_args );
+ $selectField->setSelectRemove( $other_args );
+
+ $item = Output::addToHeadItem( $selectField->getData() );
+ }
+
+ Output::commitToParserOutput();
+
+ // prepare the html input tag
+
+ $extraatt = "";
+ $is_list = false;
+
+ if ( array_key_exists( 'is_list', $other_args ) && $other_args['is_list'] == true ) {
+ $is_list = true;
+ }
+
+ if ( $is_list ) {
+ $extraatt = ' multiple="multiple" ';
+ }
+
+ if ( array_key_exists( "size", $other_args ) ) {
+ $extraatt .= " size=\"{$other_args['size']}\"";
+ }
+
+ $classes = [];
+ if ( $is_mandatory ) {
+ $classes[] = "mandatoryField";
+ }
+ if ( array_key_exists( "class", $other_args ) ) {
+ $classes[] = $other_args['class'];
+ }
+ if ( $classes ) {
+ $cstr = implode( " ", $classes );
+ $extraatt .= " class=\"$cstr\"";
+ }
+
+ $inname = $input_name;
+ if ( $is_list ) {
+ $inname .= '[]';
+ }
+
+ // TODO Use Html::
+
+ $spanextra = $is_mandatory ? 'mandatoryFieldSpan' : '';
+ $is_single_select = (!$is_list) ? 'select-sfs-single' : '' ;
+ $ret = "<span class=\"inputSpan select-sfs $is_single_select $spanextra\"><select name='$inname' id='input_$sfgFieldNum' $extraatt>";
+
+ $curvalues = null;
+ if ( $cur_value ) {
+ if ( $cur_value === 'current user' ) {
+ $cur_value = $wgUser->getName();
+ }
+ if ( is_array( $cur_value ) ) {
+ $curvalues = $cur_value;
+ } else {
+ // delimiter for $cur_value is always ',' - PF seems to ignore $wgPageFormsListSeparator
+ $curvalues = array_map( "trim", explode( $selectField->getDelimiter(), $cur_value ) );
+ }
+
+ } else {
+ $curvalues = [];
+ }
+
+
+ $labelArray = [];
+ if ( array_key_exists( "label", $other_args ) && $curvalues ) {
+ // $labelArray = $this->getLabels( $curvalues );
+ }
+
+ // TODO handle empty value case.
+ $ret .= "<option></option>";
+
+ if ( $selectField->hasStaticValues() ) {
+
+ $values = $selectField->getValues();
+
+ if ( array_key_exists( "label", $other_args ) && $values ) {
+ $labelArray = $this->getLabels( $values );
+ }
+
+ if ( is_array( $values ) ) {
+
+ foreach ( $values as $val ) {
+
+ $selected = "";
+
+ if ( array_key_exists( $val, $labelArray ) ) {
+
+ if ( in_array( $labelArray[ $val ][0], $curvalues ) ) {
+ $selected = " selected='selected'";
+ }
+
+ $ret.="<option".$selected." value='".$labelArray[ $val ][0]."'>".$labelArray[ $val ][1]."</option>";
+
+ } else {
+
+ if ( in_array( $val, $curvalues ) ) {
+ $selected = " selected='selected'";
+ }
+
+ $ret .= "<option".$selected.">$val</option>";
+ }
+ }
+ }
+ } else {
+
+ foreach ( $curvalues as $cur ) {
+ $selected = "";
+
+ if ( array_key_exists( $cur, $labelArray ) ) {
+
+ if ( in_array( $labelArray[ $cur ][0], $curvalues ) ) {
+ $selected = " selected='selected'";
+ }
+
+ $ret.="<option".$selected." value='".$labelArray[ $cur ][0]."'>".$labelArray[ $cur ][1]."</option>";
+
+ } else {
+ if ( in_array( $cur, $curvalues ) ) {
+ $selected = " selected='selected'";
+ }
+ $ret.="<option".$selected.">$cur</option>";
+ }
+ }
+
+ }
+
+ $ret .= "</select></span>";
+ $ret .= "<span id=\"info_$sfgFieldNum\" class=\"errorMessage\"></span>";
+
+ if ( $other_args["is_list"] ) {
+ $hiddenname = $input_name . '[is_list]';
+ $ret .= "<input type='hidden' name='$hiddenname' value='1' />";
+ }
+
+ return $ret;
+ }
+
+
+ private function getLabels( $labels ) {
+
+ $labelArray = [ ];
+
+ if ( is_array( $labels ) ) {
+ foreach ( $labels as $label ) {
+
+ $labelKey = $label;
+ $labelValue = $label;
+
+ // Tricky thing if ( ) already in name
+ if ( strpos( $label, ")" ) && strpos( $label, "(" ) ) {
+
+ // Check Break
+ $openBr = 0;
+ $doneBr = 0;
+ $num = 0;
+
+ $labelArr = str_split ( $label );
+
+ $end = count( $labelArr ) - 1;
+ $iter = $end;
+
+ $endBr = $end;
+ $startBr = 0;
+
+ while ( $doneBr == 0 && $iter >= 0 ) {
+
+ $char = $labelArr[ $iter ];
+
+ if ( $char == ")" ) {
+ $openBr = $openBr - 1;
+
+ if ( $num == 0 ) {
+ $endBr = $iter;
+ $num = $num + 1;
+ }
+ }
+
+ if ( $char == "(" ) {
+ $openBr = $openBr + 1;
+
+ if ( $num > 0 && $openBr == 0 ) {
+ $startBr = $iter;
+ $doneBr = 1;
+ }
+ }
+
+ $iter = $iter - 1;
+
+ }
+
+ $labelValue = implode( "", array_slice( $labelArr, $startBr+1, $endBr-$startBr-1 ) );
+ $labelKey = implode( "", array_slice( $labelArr, 0, $startBr-1 ) );
+
+ }
+
+ $labelArray[ $label ] = [ $labelKey, $labelValue ] ;
+ }
+
+ }
+
+ return $labelArray;
+
+ }
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/tests/bootstrap.php b/www/wiki/extensions/SemanticFormsSelect/tests/bootstrap.php
new file mode 100644
index 00000000..83339993
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/tests/bootstrap.php
@@ -0,0 +1,29 @@
+<?php
+
+if ( PHP_SAPI !== 'cli' ) {
+ die( 'Not an entry point' );
+}
+
+error_reporting( E_ALL | E_STRICT );
+date_default_timezone_set( 'UTC' );
+ini_set( 'display_errors', 1 );
+
+global $IP;
+
+//if ( !is_readable( $autoloaderClassPath = __DIR__ . '/../../SemanticMediaWiki/tests/autoloader.php' ) ) {
+if ( !is_readable( $autoloaderClassPath = $IP . '/extensions/SemanticMediaWiki/tests/autoloader.php' ) ) {
+ die( "\nThe Semantic MediaWiki test autoloader is not available\n" );
+}
+
+// if ( !class_exists( 'SemanticFormsSelect' ) || ( $version = SemanticFormsSelect::getVersion() ) === null ) {
+if ( ExtensionRegistry::getInstance()->isLoaded( 'SemanticFormsSelect' ) ) {
+ die( "\nSemantic Forms Select is not available, please check your Composer or LocalSettings.\n" );
+}
+
+//print sprintf( "\n%-20s%s\n", "Semantic Forms Select: ", ExtensionRegistry::getInstance()->isLoaded( 'SemanticFormsSelect' ) );
+//print sprintf( "%-20s%s\n", "Page Forms: ", SemanticFormsSelect::getVersion( 'PageForms' ) );
+
+$autoloader = require $autoloaderClassPath;
+//$autoloader->addPsr4( 'SFS\\Tests\\', __DIR__ . '/phpunit/Unit' );
+//$autoloader->addPsr4( 'SFS\\Tests\\Integration\\', __DIR__ . '/phpunit/Integration' );
+unset( $autoloader );
diff --git a/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/ApiSemanticFormsSelectRequestProcessorTest.php b/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/ApiSemanticFormsSelectRequestProcessorTest.php
new file mode 100644
index 00000000..7c2b292b
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/ApiSemanticFormsSelectRequestProcessorTest.php
@@ -0,0 +1,134 @@
+<?php
+
+namespace SFS\Tests;
+
+use SFS\ApiSemanticFormsSelectRequestProcessor;
+use ApiMain;
+use RequestContext;
+use WebRequest;
+use FauxRequest;
+
+/**
+ * @covers \SFS\ApiSemanticFormsSelectRequestProcessor
+ * @group semantic-forms-select
+ *
+ * @license GNU GPL v2+
+ * @since 3.0.0
+ *
+ * @author FelixAba
+ */
+class ApiSemanticFormsSelectRequestProcessorTest
+ extends \PHPUnit_Framework_TestCase {
+
+ private $ApiSFSRP;
+
+ protected function setUp() {
+ parent::setUp();
+ $parser = $this->getMockBuilder( '\Parser' )
+ ->disableOriginalConstructor()->getMock();
+ $this->ApiSFSRP = new ApiSemanticFormsSelectRequestProcessor( $parser );
+ }
+
+ protected function tearDown() {
+ unset( $this->ApiSFSRP );
+ parent::tearDown();
+ }
+
+ public function testCanConstruct() {
+ $this->assertInstanceOf(
+ '\SFS\ApiSemanticFormsSelectRequestProcessor', $this->ApiSFSRP
+ );
+ }
+
+ public function testMissingParametersThrowsException() {
+
+ $parameters = [];
+
+ $this->setExpectedException( 'InvalidArgumentException' );
+ $this->ApiSFSRP->getJsonDecodedResultValuesForRequestParameters(
+ $parameters
+ );
+ }
+
+ public function testJsonResultValuesFromRequestParameters() {
+
+ $parameters = [ 'query' => 'foo', 'sep' => ',' ];
+
+ $this->assertInternalType(
+ 'object',
+ $this->ApiSFSRP->getJsonDecodedResultValuesForRequestParameters(
+ $parameters
+ )
+ );
+ }
+
+ public function testJsonResultValuesFromRequestParameters_doProcessQueryFor(
+ ) {
+
+ $parameters = [ 'approach' => 'smw', 'query' => 'foo, baa, gaah',
+ 'sep' => ',' ];
+
+ $this->assertInternalType(
+ 'object',
+ $this->ApiSFSRP->getJsonDecodedResultValuesForRequestParameters(
+ $parameters
+ )
+ );
+ }
+
+ public function testSetDebugFlag() {
+ $this->ApiSFSRP->setDebugFlag( true );
+ $parameters = [ 'query' => 'foo , function', 'sep' => ',' ];
+
+ $this->assertInternalType(
+ 'object',
+ $this->ApiSFSRP->getJsonDecodedResultValuesForRequestParameters(
+ $parameters
+ )
+ );
+ }
+
+ public function testSetDebugFlag_doProcessQueryFor() {
+ $this->ApiSFSRP->setDebugFlag( true );
+ $parameters = [ 'approach' => 'smw', 'query' => 'my Query,query2',
+ 'sep' => ',' ];
+
+ $this->assertInternalType(
+ 'object',
+ $this->ApiSFSRP->getJsonDecodedResultValuesForRequestParameters(
+ $parameters
+ )
+ );
+ }
+
+ public function testGetFormattedValuesFrom() {
+ $sep = ",";
+ $values = "my Query,query2";
+ $result = [ "", "my Query", "query2" ];
+ $formattedValues = $this->invokeMethod(
+ $this->ApiSFSRP, 'getFormattedValuesFrom', [ $sep, $values ]
+ );
+ $this->assertEquals( $result, $formattedValues );
+ }
+
+ /**
+ * Call protected/private method of a class.
+ *
+ * @param object &$object Instantiated object that we will run method on.
+ * @param string $methodName Method name to call
+ * @param array $parameters Array of parameters to pass into method.
+ *
+ * @return mixed Method return.
+ */
+ public function invokeMethod( &$object, $methodName,
+ array $parameters = []
+ ) {
+ $reflection = new \ReflectionClass( get_class( $object ) );
+ $method = $reflection->getMethod( $methodName );
+ $method->setAccessible( true );
+
+ return $method->invokeArgs( $object, $parameters );
+ }
+
+
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/ApiSemanticFormsSelectTest.php b/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/ApiSemanticFormsSelectTest.php
new file mode 100644
index 00000000..30ad86de
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/ApiSemanticFormsSelectTest.php
@@ -0,0 +1,95 @@
+<?php
+
+namespace SFS\Tests;
+
+use SFS\ApiSemanticFormsSelect;
+use ApiMain;
+use RequestContext;
+use WebRequest;
+use FauxRequest;
+
+/**
+ * @covers \SFS\ApiSemanticFormsSelect
+ * @group semantic-forms-select
+ *
+ * @license GNU GPL v2+
+ * @since 1.3
+ *
+ * @author mwjames
+ */
+class ApiSemanticFormsSelectTest extends \PHPUnit_Framework_TestCase {
+
+ private $ApiSFS;
+ private $ApiMain;
+
+ protected function setUp() {
+ parent::setUp();
+ $parameters = [ 'action' => 'sformsselect', 'approach' => 'smw',
+ 'query' => 'abc', 'sep' => ',' ];
+
+ $this->ApiMain = new ApiMain(
+ $this->newRequestContext( $parameters ), true
+ );
+ $this->ApiSFS = new ApiSemanticFormsSelect(
+ $this->ApiMain, 'sformsselect'
+ );
+ }
+
+ protected function tearDown() {
+ unset( $this->ApiSFS );
+ unset( $this->ApiMain );
+ parent::tearDown();
+ }
+
+
+ public function testCanConstruct() {
+
+ $apiMain = new ApiMain( $this->newRequestContext( [] ), true );
+
+ $instance = new ApiSemanticFormsSelect(
+ $apiMain, 'sformsselect'
+ );
+
+ $this->assertInstanceOf(
+ '\SFS\ApiSemanticFormsSelect', $this->ApiSFS
+ );
+ }
+
+ public function testExecute() {
+
+ $this->assertTrue(
+ $this->ApiSFS->execute()
+ );
+ }
+
+ public function testGetDescription() {
+ $tdata = [ 'API for providing SemanticFormsSelect values' ];
+ $this->assertEquals( $this->ApiSFS->getDescription(), $tdata );
+ }
+
+ public function testGetParamDescription() {
+ $tdata = [ 'approach' => 'The actual approach: function or smw',
+ 'query' => 'The query of the former' ];
+ $this->assertEquals( $this->ApiSFS->getParamDescription(), $tdata );
+ }
+
+ public function testGetVersion() {
+ $tdata = 'SFS\ApiSemanticFormsSelect: 1.1';
+ $this->assertEquals( $this->ApiSFS->getVersion(), $tdata );
+ }
+
+
+ private function newRequestContext( $request = [] ) {
+
+ $context = new RequestContext();
+
+ if ( $request instanceof WebRequest ) {
+ $context->setRequest( $request );
+ } else {
+ $context->setRequest( new FauxRequest( $request, true ) );
+ }
+
+ return $context;
+ }
+
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/OutputTest.php b/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/OutputTest.php
new file mode 100644
index 00000000..7f124267
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/OutputTest.php
@@ -0,0 +1,50 @@
+<?php
+
+namespace SFS\Tests;
+
+use SFS\Output;
+
+/**
+ * @covers \SFS\Output
+ * @group semantic-forms-select
+ *
+ * @license GNU GPL v2+
+ * @since 1.3
+ *
+ * @author mwjames
+ */
+class OutputTest extends \PHPUnit_Framework_TestCase {
+ private $data;
+
+ protected function setUp() {
+ parent::setUp();
+ $this->data = [];
+ $this->data['Foo'] = 'Bar';
+ $this->data['Spam'] = 'Eggs';
+ }
+
+ protected function tearDown() {
+ unset( $this->data );
+ parent::tearDown();
+ }
+
+ public function testCanConstruct() {
+ $this->assertInstanceOf( '\SFS\Output', new Output() );
+ }
+
+ public function testAddToHeadItem() {
+ $ret = Output::addToHeadItem( $this->data );
+
+ $this->assertArrayHasKey( 'Foo', $ret );
+ $this->assertArrayHasKey( 'Spam', $ret );
+ }
+
+ public function testCommitToParserOutput() {
+ global $wgOut;
+ $expected_result = '[' . json_encode( $this->data ) . ']';
+ Output::commitToParserOutput();
+ $this->assertEquals(
+ $expected_result, $wgOut->getJsConfigVars()['sf_select']
+ );
+ }
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/SelectFieldTest.php b/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/SelectFieldTest.php
new file mode 100644
index 00000000..e69faca3
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/SelectFieldTest.php
@@ -0,0 +1,270 @@
+<?php
+
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+namespace SFS\Tests;
+
+use SFS\SelectField;
+
+use Parser;
+use ParserOptions;
+use ParserOutput;
+use Title;
+
+/**
+ * @covers \SFS\SelectField
+ * @group semantic-forms-select
+ * @author FelixAba
+ */
+class SelectFieldTest extends \PHPUnit_Framework_TestCase {
+ private $SelectField;
+ private $parser;
+ // Defined variables
+ private $other_args_query_parametrized = [ 'query' => '((Category:Building Complex))((Part Of Site::@@@@));?Display Title;format~list;sort~Display Title;sep~,;link~none;headers~hide;limit~500' ];
+ private $expected_result_parametrized_setQuery = "[[Category:Building Complex]][[Part Of Site::@@@@]];?Display Title;format=list;sort=Display Title;sep=,;link=none;headers=hide;limit=500";
+ private $other_args_query_unparametrized = [ 'query' => '((Category:Building Complex));?Display Title;format~list;sort~Display Title;sep~,;link~none;headers~hide;limit~500' ];
+ private $other_args_function_parametrized = [ 'function' => '((Category:Building Complex))((Part Of Site::@@@@));?Display Title;format~list;sort~Display Title;sep~,;link~none;headers~hide;limit~500' ];
+ private $expected_result_parametrized_seFunction = '{{#[[Category:Building Complex]][[Part Of Site::@@@@]];?Display Title;format=list;sort=Display Title;sep=,;link=none;headers=hide;limit=500}}';
+ private $other_args_function_unparametrized = [ 'function' => 'ask:((Category:Building Complex));?Display Title;format~list;sort~Display Title;sep~@@;link~none;headers~hide;limit~500' ];
+ private $expected_result_unparametrized_seFunction = "Building Complex:86543eab-4112-4616-be50-17dcdc24c346 (OFD.AEXH)@@Building Complex:5b9e26f8-6c57-48ff-a6b8-42a4e50fe472 (OFD.AEXH)@@Building Complex:93b076aa-cbe9-4371-8b61-c17c26f1872f (OFD.AMEXH)@@Building Complex:59577450-1582-4d6e-9621-3ac0531a728e (OFD.EEXH)@@Building Complex:1a9bed0b-67de-4e71-8528-f2b6a8907814 (RContiAve.Sport Complex)@@Building Complex:6a2242ea-7536-4a6d-85d2-f2ba4398ef44 (TB.BC)@@Building Complex:2db51fb1-10b6-4d4c-a152-f512914781ff (TB.BD)";
+
+ public function testCanConstruct() {
+
+ $this->assertInstanceOf( '\SFS\SelectField', $this->SelectField );
+ }
+
+ public function testProcessParameters_Query() {
+
+ $this->SelectField->processParameters(
+ "", $this->other_args_query_parametrized
+ );
+ $this->assertTrue(
+ array_key_exists( "query", $this->other_args_query_parametrized )
+ );
+ }
+
+ public function testProcessParameters_Function() {
+
+ $this->SelectField->processParameters(
+ "", $this->other_args_function_parametrized
+ );
+ $this->assertArrayHasKey(
+ "function", $this->other_args_function_parametrized
+ );
+ }
+
+ public function testParametrized_setQuery() {
+
+ $this->SelectField->setQuery( $this->other_args_query_parametrized );
+
+ $this->assertEquals(
+ $this->expected_result_parametrized_setQuery,
+ $this->SelectField->getData()['selectquery']
+ );
+ /*
+ * Optional Test.
+ */
+ preg_match_all(
+ "/[~(\(\()(\)\))]+/", $this->SelectField->getData()['selectquery'],
+ $was_remove
+ );
+
+ preg_match_all(
+ "/[=(\[\[)(\]\])]+/", $this->SelectField->getData()['selectquery'],
+ $was_replaced
+ );
+
+ $this->assertTrue( count( $was_remove[0] ) == 0 );
+ $this->assertTrue( count( $was_replaced[0] ) > 0 );
+ }
+
+ public function testUnparametrized_setQuery() {
+
+ $this->SelectField->setQuery( $this->other_args_query_unparametrized );
+
+ $this->assertTrue( $this->SelectField->getValues() !== null );
+ $this->assertTrue( $this->SelectField->hasStaticValues() );
+ }
+
+ public function testParametrized_setFunction() {
+
+ $this->SelectField->setFunction(
+ $this->other_args_function_parametrized
+ );
+ $this->assertTrue(
+ strcmp(
+ $this->expected_result_parametrized_seFunction,
+ $this->SelectField->getData()['selectfunction']
+ ) == 0
+ );
+ }
+
+ public function testUnparametrized_setFunction() {
+
+ $this->SelectField->setFunction(
+ $this->other_args_function_unparametrized
+ );
+
+ $this->assertTrue( $this->SelectField->hasStaticValues() );
+ }
+
+ public function testSetSelectIsMultiple_keyExistTrue() {
+ $other_args = [ "part_of_multiple" => "bla bla bla" ];
+ $this->SelectField->setSelectIsMultiple( $other_args );
+ $this->assertTrue( $this->SelectField->getData()["selectismultiple"] );
+ }
+
+ public function testSetSelectIsMultiple_keyExistFalse() {
+
+ $other_args = [ "Not_part_of_multiple" => "blas blas blas" ];
+ $this->SelectField->setSelectIsMultiple( $other_args );
+ $this->assertFalse( $this->SelectField->getData()["selectismultiple"] );
+ }
+
+ public function testSetSelectTemplate_correctData() {
+ $input_name = "{{#[[Category:Building Complex]][[Part Of Site::@@@@]]";
+ $result = "{{#";
+ $this->SelectField->setSelectTemplate( $input_name );
+
+ $this->assertEquals(
+ $this->SelectField->getData()['selecttemplate'], $result
+ );
+ }
+
+ public function testSetSelectTemplate_wrongData() {
+ $input_name = "Category:Building Complex";
+ $result = "";
+ $this->SelectField->setSelectTemplate( $input_name );
+
+ $this->assertEquals(
+ $this->SelectField->getData()['selecttemplate'], $result
+ );
+ }
+
+ public function testSetSelectField_correctData() {
+ $input_name = "{{#[[Category:Building Complex]][[Part Of Site::@@@@]]";
+ $result = "Part Of Site::@@@@]";
+
+ $this->SelectField->setSelectField( $input_name );
+
+ $this->assertEquals(
+ $this->SelectField->getData()['selectfield'], $result
+ );
+ }
+
+ public function testSetSelectField_wrongData() {
+ $input_name = "Category:Building Complex";
+ $result = "";
+ $this->SelectField->setSelectField( $input_name );
+
+ $this->assertNotEquals(
+ $this->SelectField->getData()['selectfield'], $result
+ );
+ }
+
+ public function testSetValueTemplate_containsMselectTemplate() {
+ $input_name = "{{#[[Category:Building Complex]][[Part Of Site::@@@@]]";
+ $other_args = [ "sametemplate" => "test values" ];
+ $result = "{{#";
+ $this->SelectField->setSelectTemplate( $input_name );
+ $this->SelectField->setValueTemplate( $other_args );
+
+ $this->assertEquals(
+ $this->SelectField->getData()["valuetemplate"], $result
+ );
+ }
+
+ public function testSetValueTemplate_containsOtherArgsTemplate() {
+
+ $other_args = [ "template" => "test values" ];
+
+ $this->SelectField->setValueTemplate( $other_args );
+
+ $this->assertEquals(
+ $this->SelectField->getData()["valuetemplate"],
+ $other_args["template"]
+ );
+ }
+
+ public function testSetValueField() {
+ $other_args = [ "field" => "test values Field" ];
+
+ $this->SelectField->setValueField( $other_args );
+
+ $this->assertEquals(
+ $this->SelectField->getData()["valuefield"], $other_args["field"]
+ );
+ }
+
+ public function testSetSelectRemove_keyExistTrue() {
+ $other_args = [ 'rmdiv' => "Test data" ];
+ $this->SelectField->setSelectRemove( $other_args );
+ $this->assertTrue( $this->SelectField->getData()["selectrm"] );
+ }
+
+ public function testSetSelectRemove_keyExistFalse() {
+
+ $other_args = [ "no_rmdiv" => "test data" ];
+ $this->SelectField->setSelectRemove( $other_args );
+ $this->assertFalse( $this->SelectField->getData()["selectrm"] );
+ }
+
+ public function testSetLabel_keyExistTrue() {
+ $other_args = [ 'label' => "Test data" ];
+ $this->SelectField->setLabel( $other_args );
+ $this->assertTrue( $this->SelectField->getData()["label"] );
+ }
+
+ public function testSetLabel_keyExistFalse() {
+
+ $other_args = [ "no_label" => "test data" ];
+ $this->SelectField->setLabel( $other_args );
+ $this->assertArrayHasKey( "label", $this->SelectField->getData() );
+ $this->assertFalse( $this->SelectField->getData()["label"] );
+ }
+
+ public function testSetDelimiter_keyExistTrue() {
+ $other_args = [ "delimiter" => ":" ];
+ $this->SelectField->setDelimiter( $other_args );
+ $this->assertEquals(
+ $this->SelectField->getDelimiter(), $other_args["delimiter"]
+ );
+ $this->assertEquals(
+ $this->SelectField->getData()["sep"], $other_args["delimiter"]
+ );
+ }
+
+ public function testSetWgPageFormsListSeparator_keyExistTrue() {
+
+ $g_args = [ "Global_delimiter" => ";" ];
+ $this->SelectField->setDelimiter( $g_args );
+ $this->assertEquals(
+ $this->SelectField->getDelimiter(), $g_args["Global_delimiter"]
+ );
+ $this->assertEquals(
+ $this->SelectField->getData()["sep"], $g_args["Global_delimiter"]
+ );
+ }
+
+ protected function setUp() {
+ parent::setUp();
+ $this->parser = $GLOBALS['wgParser'];
+ $this->parser->setTitle( Title::newFromText( 'NO TITLE' ) );
+ $this->parser->mOptions = new ParserOptions();
+ $this->parser->mOutput = new ParserOutput(
+ ); // Stored result thats passed back to Parser Object
+ $this->parser->clearState();
+ $this->SelectField = new SelectField( $this->parser );
+ }
+
+ protected function tearDown() {
+ unset( $this->SelectField );
+ parent::tearDown();
+ }
+
+
+}
diff --git a/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/SemanticFormsSelectInputTest.php b/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/SemanticFormsSelectInputTest.php
new file mode 100644
index 00000000..dac06300
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/tests/phpunit/Unit/SemanticFormsSelectInputTest.php
@@ -0,0 +1,84 @@
+<?php
+
+namespace SFS\Tests;
+
+use SFS\SemanticFormsSelectInput;
+
+/**
+ * @covers \SFS\SemanticFormsSelectInput
+ * @group semantic-forms-select
+ *
+ * @license GNU GPL v2+
+ * @since 3.0.0
+ *
+ * @author FelixAba
+ */
+class SemanticFormsSelectInputTest extends \PHPUnit_Framework_TestCase {
+
+ private $SFSInput;
+
+
+ protected function setUp() {
+ parent::setUp();
+ $value = '';
+ $inputName = '';
+ $isMandatory = false;
+ $isDisabled = false;
+
+ $otherArgs = [ 'template' => 'Foo', 'field' => '',
+ 'function' => 'Bar', 'is_list' => true ];
+
+ $parserOutput = $this->getMockBuilder( '\ParserOutput' )
+ ->disableOriginalConstructor()->getMock();
+
+ $parser = $this->getMockBuilder( '\Parser' )
+ ->disableOriginalConstructor()->getMock();
+
+ $parser->expects( $this->any() )->method( 'getOutput' )->will(
+ $this->returnValue( $parserOutput )
+ );
+ $this->SFSInput = new SemanticFormsSelectInput(
+ $value, $inputName, $isMandatory, $isDisabled, $otherArgs
+ );
+ }
+
+ protected function tearDown() {
+ unset( $this->SelectField );
+ parent::tearDown();
+ }
+
+ public function testCanConstruct() {
+
+ $this->assertInstanceOf(
+ '\SFS\SemanticFormsSelectInput', $this->SFSInput
+ );
+ }
+
+ public function testGetHTMLText() {
+
+ $this->assertInternalType(
+ 'string', $this->SFSInput->getHtmlText()
+ );
+ }
+
+ public function testGetName() {
+
+ $this->assertEquals(
+ 'SF_Select', $this->SFSInput->getName()
+ );
+ }
+
+ public function testGetParameters() {
+
+ $this->assertInternalType( 'array', $this->SFSInput->getParameters() );
+ }
+
+
+ public function testGetResourceModuleNames() {
+ $rsmn = [ 'ext.sf_select.scriptselect' ];
+
+ $this->assertEquals( $rsmn, $this->SFSInput->getResourceModuleNames() );
+ }
+
+}
+
diff --git a/www/wiki/extensions/SemanticFormsSelect/tests/travis/install-mediawiki.sh b/www/wiki/extensions/SemanticFormsSelect/tests/travis/install-mediawiki.sh
new file mode 100644
index 00000000..0fe25fb1
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/tests/travis/install-mediawiki.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+set -ex
+
+cd ..
+
+## Use sha (master@5cc1f1d) to download a particular commit to avoid breakages
+## introduced by MediaWiki core
+if [[ "$MW" == *@* ]]
+then
+ arrMw=(${MW//@/ })
+ MW=${arrMw[0]}
+ SOURCE=${arrMw[1]}
+else
+ MW=$MW
+ SOURCE=$MW
+fi
+
+wget https://github.com/wikimedia/mediawiki/archive/$SOURCE.tar.gz -O $MW.tar.gz
+
+tar -zxf $MW.tar.gz
+mv mediawiki-* mw
+
+cd mw
+
+## MW 1.25+ requires Psr\Logger
+if [ -f composer.json ]
+then
+ composer self-update
+ composer install --prefer-source
+fi
+
+if [ "$DB" == "postgres" ]
+then
+ # See #458
+ sudo /etc/init.d/postgresql stop
+ sudo /etc/init.d/postgresql start
+
+ psql -c 'create database its_a_mw;' -U postgres
+ php maintenance/install.php --dbtype $DB --dbuser postgres --dbname its_a_mw --pass nyan TravisWiki admin --scriptpath /TravisWiki
+else
+ mysql -e 'create database its_a_mw;'
+ php maintenance/install.php --dbtype $DB --dbuser root --dbname its_a_mw --dbpath $(pwd) --pass nyan TravisWiki admin --scriptpath /TravisWiki
+fi
diff --git a/www/wiki/extensions/SemanticFormsSelect/tests/travis/install-semantic-forms-select.sh b/www/wiki/extensions/SemanticFormsSelect/tests/travis/install-semantic-forms-select.sh
new file mode 100644
index 00000000..8ebd83b3
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/tests/travis/install-semantic-forms-select.sh
@@ -0,0 +1,73 @@
+#!/bin/bash
+set -ex
+
+BASE_PATH=$(pwd)
+MW_INSTALL_PATH=$BASE_PATH/../mw
+
+# Run Composer installation from the MW root directory
+function installToMediaWikiRoot {
+ echo -e "Running MW root composer install build on $TRAVIS_BRANCH \n"
+
+ cd $MW_INSTALL_PATH
+
+ if [ "$PHPUNIT" != "" ]
+ then
+ composer require 'phpunit/phpunit='$PHPUNIT --prefer-source --update-with-dependencies
+ else
+ composer require 'phpunit/phpunit=3.7.*' --prefer-source --update-with-dependencies
+ fi
+
+ if [ "$SFS" != "" ]
+ then
+ composer require 'mediawiki/semantic-forms-select='$SMT --prefer-source --update-with-dependencies
+ else
+ composer init --stability dev
+ composer require "mediawiki/semantic-forms-select:dev-master" --prefer-source --dev --update-with-dependencies
+
+ cd extensions
+ cd SemanticFormsSelect
+
+ # Pull request number, "false" if it's not a pull request
+ # After the install via composer an additional get fetch is carried out to
+ # update th repository to make sure that the latests code changes are
+ # deployed for testing
+ if [ "$TRAVIS_PULL_REQUEST" != "false" ]
+ then
+ git fetch origin +refs/pull/"$TRAVIS_PULL_REQUEST"/merge:
+ git checkout -qf FETCH_HEAD
+ else
+ git fetch origin "$TRAVIS_BRANCH"
+ git checkout -qf FETCH_HEAD
+ fi
+
+ cd ../..
+ fi
+
+ # Rebuild the class map for added classes during git fetch
+ composer dump-autoload
+}
+
+function updateConfiguration {
+
+ cd $MW_INSTALL_PATH
+
+ # Site language
+ if [ "$SITELANG" != "" ]
+ then
+ echo '$wgLanguageCode = "'$SITELANG'";' >> LocalSettings.php
+ fi
+
+ echo 'wfLoadExtension( "PageForms" );' >> LocalSettings.php
+ echo 'wfLoadExtension( "SemanticFormsSelect" );' >> LocalSettings.php
+
+ echo 'error_reporting(E_ALL| E_STRICT);' >> LocalSettings.php
+ echo 'ini_set("display_errors", 1);' >> LocalSettings.php
+ echo '$wgShowExceptionDetails = true;' >> LocalSettings.php
+ echo '$wgDevelopmentWarnings = true;' >> LocalSettings.php
+ echo "putenv( 'MW_INSTALL_PATH=$(pwd)' );" >> LocalSettings.php
+
+ php maintenance/update.php --quick
+}
+
+installToMediaWikiRoot
+updateConfiguration
diff --git a/www/wiki/extensions/SemanticFormsSelect/tests/travis/run-tests.sh b/www/wiki/extensions/SemanticFormsSelect/tests/travis/run-tests.sh
new file mode 100644
index 00000000..66104ddd
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/tests/travis/run-tests.sh
@@ -0,0 +1,14 @@
+#! /bin/bash
+set -ex
+
+BASE_PATH=$(pwd)
+MW_INSTALL_PATH=$BASE_PATH/../mw
+
+cd $MW_INSTALL_PATH/extensions/SemanticFormsSelect
+
+if [ "$TYPE" == "coverage" ]
+then
+ composer phpunit -- --coverage-clover $BASE_PATH/build/coverage.clover
+else
+ composer phpunit
+fi
diff --git a/www/wiki/extensions/SemanticFormsSelect/tests/travis/upload-coverage-report.sh b/www/wiki/extensions/SemanticFormsSelect/tests/travis/upload-coverage-report.sh
new file mode 100644
index 00000000..aff95cf7
--- /dev/null
+++ b/www/wiki/extensions/SemanticFormsSelect/tests/travis/upload-coverage-report.sh
@@ -0,0 +1,10 @@
+#! /bin/bash
+set -ex
+
+BASE_PATH=$(pwd)
+
+if [ "$TYPE" == "coverage" ]
+then
+ wget https://scrutinizer-ci.com/ocular.phar
+ php ocular.phar code-coverage:upload --format=php-clover $BASE_PATH/build/coverage.clover
+fi \ No newline at end of file
diff --git a/www/wiki/vendor/bin/jsonlint b/www/wiki/vendor/bin/jsonlint
deleted file mode 120000
index 4282f173..00000000
--- a/www/wiki/vendor/bin/jsonlint
+++ /dev/null
@@ -1 +0,0 @@
-../seld/jsonlint/bin/jsonlint \ No newline at end of file
diff --git a/www/wiki/vendor/bin/parallel-lint b/www/wiki/vendor/bin/parallel-lint
deleted file mode 120000
index 902305e2..00000000
--- a/www/wiki/vendor/bin/parallel-lint
+++ /dev/null
@@ -1 +0,0 @@
-../jakub-onderka/php-parallel-lint/parallel-lint \ No newline at end of file
diff --git a/www/wiki/vendor/bin/php-parse b/www/wiki/vendor/bin/php-parse
deleted file mode 120000
index 062d66a3..00000000
--- a/www/wiki/vendor/bin/php-parse
+++ /dev/null
@@ -1 +0,0 @@
-../nikic/php-parser/bin/php-parse \ No newline at end of file
diff --git a/www/wiki/vendor/bin/phpcbf b/www/wiki/vendor/bin/phpcbf
deleted file mode 120000
index bdf04fbc..00000000
--- a/www/wiki/vendor/bin/phpcbf
+++ /dev/null
@@ -1 +0,0 @@
-../squizlabs/php_codesniffer/bin/phpcbf \ No newline at end of file
diff --git a/www/wiki/vendor/bin/phpcs b/www/wiki/vendor/bin/phpcs
deleted file mode 120000
index 9481d68a..00000000
--- a/www/wiki/vendor/bin/phpcs
+++ /dev/null
@@ -1 +0,0 @@
-../squizlabs/php_codesniffer/bin/phpcs \ No newline at end of file
diff --git a/www/wiki/vendor/bin/phpunit b/www/wiki/vendor/bin/phpunit
deleted file mode 120000
index 2c489303..00000000
--- a/www/wiki/vendor/bin/phpunit
+++ /dev/null
@@ -1 +0,0 @@
-../phpunit/phpunit/phpunit \ No newline at end of file
diff --git a/www/wiki/vendor/bin/psysh b/www/wiki/vendor/bin/psysh
deleted file mode 120000
index 3c06b1ae..00000000
--- a/www/wiki/vendor/bin/psysh
+++ /dev/null
@@ -1 +0,0 @@
-../psy/psysh/bin/psysh \ No newline at end of file
diff --git a/www/wiki/vendor/bin/validate-json b/www/wiki/vendor/bin/validate-json
deleted file mode 120000
index 141e2510..00000000
--- a/www/wiki/vendor/bin/validate-json
+++ /dev/null
@@ -1 +0,0 @@
-../justinrainbow/json-schema/bin/validate-json \ No newline at end of file
diff --git a/www/wiki/vendor/composer/autoload_classmap.php b/www/wiki/vendor/composer/autoload_classmap.php
index 834c1b34..4707d4c6 100644
--- a/www/wiki/vendor/composer/autoload_classmap.php
+++ b/www/wiki/vendor/composer/autoload_classmap.php
@@ -6,41 +6,6 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
- 'Avro' => $vendorDir . '/wikimedia/avro/lib/avro.php',
- 'AvroArraySchema' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroDataIO' => $vendorDir . '/wikimedia/avro/lib/avro/data_file.php',
- 'AvroDataIOException' => $vendorDir . '/wikimedia/avro/lib/avro/data_file.php',
- 'AvroDataIOReader' => $vendorDir . '/wikimedia/avro/lib/avro/data_file.php',
- 'AvroDataIOWriter' => $vendorDir . '/wikimedia/avro/lib/avro/data_file.php',
- 'AvroDebug' => $vendorDir . '/wikimedia/avro/lib/avro/debug.php',
- 'AvroEnumSchema' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroException' => $vendorDir . '/wikimedia/avro/lib/avro.php',
- 'AvroField' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroFile' => $vendorDir . '/wikimedia/avro/lib/avro/io.php',
- 'AvroFixedSchema' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroGMP' => $vendorDir . '/wikimedia/avro/lib/avro/gmp.php',
- 'AvroIO' => $vendorDir . '/wikimedia/avro/lib/avro/io.php',
- 'AvroIOBinaryDecoder' => $vendorDir . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroIOBinaryEncoder' => $vendorDir . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroIODatumReader' => $vendorDir . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroIODatumWriter' => $vendorDir . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroIOException' => $vendorDir . '/wikimedia/avro/lib/avro/io.php',
- 'AvroIOSchemaMatchException' => $vendorDir . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroIOTypeException' => $vendorDir . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroMapSchema' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroName' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroNamedSchema' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroNamedSchemata' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroPrimitiveSchema' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroProtocol' => $vendorDir . '/wikimedia/avro/lib/avro/protocol.php',
- 'AvroProtocolMessage' => $vendorDir . '/wikimedia/avro/lib/avro/protocol.php',
- 'AvroProtocolParseException' => $vendorDir . '/wikimedia/avro/lib/avro/protocol.php',
- 'AvroRecordSchema' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroSchema' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroSchemaParseException' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroStringIO' => $vendorDir . '/wikimedia/avro/lib/avro/io.php',
- 'AvroUnionSchema' => $vendorDir . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroUtil' => $vendorDir . '/wikimedia/avro/lib/avro/util.php',
'CLDRPluralRuleParser\\Converter' => $vendorDir . '/wikimedia/cldr-plural-rule-parser/src/Converter.php',
'CLDRPluralRuleParser\\Converter\\Expression' => $vendorDir . '/wikimedia/cldr-plural-rule-parser/src/Converter/Expression.php',
'CLDRPluralRuleParser\\Converter\\Fragment' => $vendorDir . '/wikimedia/cldr-plural-rule-parser/src/Converter/Fragment.php',
@@ -160,7 +125,6 @@ return array(
'Composer\\Semver\\Constraint\\MultiConstraint' => $vendorDir . '/composer/semver/src/Constraint/MultiConstraint.php',
'Composer\\Semver\\Semver' => $vendorDir . '/composer/semver/src/Semver.php',
'Composer\\Semver\\VersionParser' => $vendorDir . '/composer/semver/src/VersionParser.php',
- 'Composer\\Spdx\\SpdxLicenses' => $vendorDir . '/composer/spdx-licenses/src/SpdxLicenses.php',
'DataValues\\BooleanValue' => $vendorDir . '/data-values/data-values/src/DataValues/BooleanValue.php',
'DataValues\\DataValue' => $vendorDir . '/data-values/data-values/src/DataValues/DataValue.php',
'DataValues\\DataValueObject' => $vendorDir . '/data-values/data-values/src/DataValues/DataValueObject.php',
@@ -183,11 +147,6 @@ return array(
'Deserializers\\StrategicDeserializer' => $vendorDir . '/serialization/serialization/src/Deserializers/StrategicDeserializer.php',
'Deserializers\\TypedDeserializationStrategy' => $vendorDir . '/serialization/serialization/src/Deserializers/TypedDeserializationStrategy.php',
'Deserializers\\TypedObjectDeserializer' => $vendorDir . '/serialization/serialization/src/Deserializers/TypedObjectDeserializer.php',
- 'Doctrine\\Instantiator\\Exception\\ExceptionInterface' => $vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator/Exception/ExceptionInterface.php',
- 'Doctrine\\Instantiator\\Exception\\InvalidArgumentException' => $vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator/Exception/InvalidArgumentException.php',
- 'Doctrine\\Instantiator\\Exception\\UnexpectedValueException' => $vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php',
- 'Doctrine\\Instantiator\\Instantiator' => $vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php',
- 'Doctrine\\Instantiator\\InstantiatorInterface' => $vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php',
'Elasticsearch\\Client' => $vendorDir . '/elasticsearch/elasticsearch/src/Elasticsearch/Client.php',
'Elasticsearch\\ClientBuilder' => $vendorDir . '/elasticsearch/elasticsearch/src/Elasticsearch/ClientBuilder.php',
'Elasticsearch\\Common\\EmptyLogger' => $vendorDir . '/elasticsearch/elasticsearch/src/Elasticsearch/Common/EmptyLogger.php',
@@ -384,11 +343,6 @@ return array(
'Elasticsearch\\Serializers\\SerializerInterface' => $vendorDir . '/elasticsearch/elasticsearch/src/Elasticsearch/Serializers/SerializerInterface.php',
'Elasticsearch\\Serializers\\SmartSerializer' => $vendorDir . '/elasticsearch/elasticsearch/src/Elasticsearch/Serializers/SmartSerializer.php',
'Elasticsearch\\Transport' => $vendorDir . '/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php',
- 'ExampleClass' => $vendorDir . '/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/class.php',
- 'ExampleTrait' => $vendorDir . '/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/trait.php',
- 'File_Iterator' => $vendorDir . '/phpunit/php-file-iterator/src/Iterator.php',
- 'File_Iterator_Facade' => $vendorDir . '/phpunit/php-file-iterator/src/Facade.php',
- 'File_Iterator_Factory' => $vendorDir . '/phpunit/php-file-iterator/src/Factory.php',
'GuzzleHttp\\Ring\\Client\\ClientUtils' => $vendorDir . '/guzzlehttp/ringphp/src/Client/ClientUtils.php',
'GuzzleHttp\\Ring\\Client\\CurlFactory' => $vendorDir . '/guzzlehttp/ringphp/src/Client/CurlFactory.php',
'GuzzleHttp\\Ring\\Client\\CurlHandler' => $vendorDir . '/guzzlehttp/ringphp/src/Client/CurlHandler.php',
@@ -429,183 +383,10 @@ return array(
'GuzzleHttp\\Stream\\StreamDecoratorTrait' => $vendorDir . '/guzzlehttp/streams/src/StreamDecoratorTrait.php',
'GuzzleHttp\\Stream\\StreamInterface' => $vendorDir . '/guzzlehttp/streams/src/StreamInterface.php',
'GuzzleHttp\\Stream\\Utils' => $vendorDir . '/guzzlehttp/streams/src/Utils.php',
- 'Hamcrest\\Arrays\\IsArray' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php',
- 'Hamcrest\\Arrays\\IsArrayContaining' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php',
- 'Hamcrest\\Arrays\\IsArrayContainingInAnyOrder' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php',
- 'Hamcrest\\Arrays\\IsArrayContainingInOrder' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php',
- 'Hamcrest\\Arrays\\IsArrayContainingKey' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php',
- 'Hamcrest\\Arrays\\IsArrayContainingKeyValuePair' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php',
- 'Hamcrest\\Arrays\\IsArrayWithSize' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php',
- 'Hamcrest\\Arrays\\MatchingOnce' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/MatchingOnce.php',
- 'Hamcrest\\Arrays\\SeriesMatchingOnce' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php',
- 'Hamcrest\\AssertionError' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php',
- 'Hamcrest\\BaseDescription' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseDescription.php',
- 'Hamcrest\\BaseMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php',
- 'Hamcrest\\Collection\\IsEmptyTraversable' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php',
- 'Hamcrest\\Collection\\IsTraversableWithSize' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php',
- 'Hamcrest\\Core\\AllOf' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AllOf.php',
- 'Hamcrest\\Core\\AnyOf' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php',
- 'Hamcrest\\Core\\CombinableMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php',
- 'Hamcrest\\Core\\DescribedAs' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php',
- 'Hamcrest\\Core\\Every' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php',
- 'Hamcrest\\Core\\HasToString' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php',
- 'Hamcrest\\Core\\Is' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php',
- 'Hamcrest\\Core\\IsAnything' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php',
- 'Hamcrest\\Core\\IsCollectionContaining' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php',
- 'Hamcrest\\Core\\IsEqual' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php',
- 'Hamcrest\\Core\\IsIdentical' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php',
- 'Hamcrest\\Core\\IsInstanceOf' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php',
- 'Hamcrest\\Core\\IsNot' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php',
- 'Hamcrest\\Core\\IsNull' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php',
- 'Hamcrest\\Core\\IsSame' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php',
- 'Hamcrest\\Core\\IsTypeOf' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php',
- 'Hamcrest\\Core\\Set' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php',
- 'Hamcrest\\Core\\ShortcutCombination' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php',
- 'Hamcrest\\Description' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php',
- 'Hamcrest\\DiagnosingMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/DiagnosingMatcher.php',
- 'Hamcrest\\FeatureMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php',
- 'Hamcrest\\Internal\\SelfDescribingValue' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php',
- 'Hamcrest\\Matcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php',
- 'Hamcrest\\MatcherAssert' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php',
- 'Hamcrest\\Matchers' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php',
- 'Hamcrest\\NullDescription' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php',
- 'Hamcrest\\Number\\IsCloseTo' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/IsCloseTo.php',
- 'Hamcrest\\Number\\OrderingComparison' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php',
- 'Hamcrest\\SelfDescribing' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php',
- 'Hamcrest\\StringDescription' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/StringDescription.php',
- 'Hamcrest\\Text\\IsEmptyString' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php',
- 'Hamcrest\\Text\\IsEqualIgnoringCase' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php',
- 'Hamcrest\\Text\\IsEqualIgnoringWhiteSpace' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php',
- 'Hamcrest\\Text\\MatchesPattern' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php',
- 'Hamcrest\\Text\\StringContains' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php',
- 'Hamcrest\\Text\\StringContainsIgnoringCase' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php',
- 'Hamcrest\\Text\\StringContainsInOrder' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php',
- 'Hamcrest\\Text\\StringEndsWith' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php',
- 'Hamcrest\\Text\\StringStartsWith' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php',
- 'Hamcrest\\Text\\SubstringMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php',
- 'Hamcrest\\TypeSafeDiagnosingMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeDiagnosingMatcher.php',
- 'Hamcrest\\TypeSafeMatcher' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php',
- 'Hamcrest\\Type\\IsArray' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php',
- 'Hamcrest\\Type\\IsBoolean' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsBoolean.php',
- 'Hamcrest\\Type\\IsCallable' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsCallable.php',
- 'Hamcrest\\Type\\IsDouble' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsDouble.php',
- 'Hamcrest\\Type\\IsInteger' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsInteger.php',
- 'Hamcrest\\Type\\IsNumeric' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsNumeric.php',
- 'Hamcrest\\Type\\IsObject' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php',
- 'Hamcrest\\Type\\IsResource' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsResource.php',
- 'Hamcrest\\Type\\IsScalar' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsScalar.php',
- 'Hamcrest\\Type\\IsString' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsString.php',
- 'Hamcrest\\Util' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php',
- 'Hamcrest\\Xml\\HasXPath' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php',
'Hashable' => $vendorDir . '/data-values/data-values/src/interfaces/Hashable.php',
'HtmlFormatter\\HtmlFormatter' => $vendorDir . '/wikimedia/html-formatter/src/HtmlFormatter.php',
'IPSet\\IPSet' => $vendorDir . '/wikimedia/ip-set/src/IPSet.php',
'Immutable' => $vendorDir . '/data-values/data-values/src/interfaces/Immutable.php',
- 'JakubOnderka\\PhpConsoleColor\\ConsoleColor' => $vendorDir . '/jakub-onderka/php-console-color/src/ConsoleColor.php',
- 'JakubOnderka\\PhpConsoleColor\\InvalidStyleException' => $vendorDir . '/jakub-onderka/php-console-color/src/InvalidStyleException.php',
- 'JakubOnderka\\PhpConsoleHighlighter\\Highlighter' => $vendorDir . '/jakub-onderka/php-console-highlighter/src/JakubOnderka/PhpConsoleHighlighter/Highlighter.php',
- 'JakubOnderka\\PhpParallelLint\\ArrayIterator' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Settings.php',
- 'JakubOnderka\\PhpParallelLint\\Blame' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Error.php',
- 'JakubOnderka\\PhpParallelLint\\ConsoleWriter' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\Error' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Error.php',
- 'JakubOnderka\\PhpParallelLint\\ErrorFormatter' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/ErrorFormatter.php',
- 'JakubOnderka\\PhpParallelLint\\Exception' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/exceptions.php',
- 'JakubOnderka\\PhpParallelLint\\FileWriter' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\IWriter' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\InvalidArgumentException' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/exceptions.php',
- 'JakubOnderka\\PhpParallelLint\\JsonOutput' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\Manager' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Manager.php',
- 'JakubOnderka\\PhpParallelLint\\MultipleWriter' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\NotExistsPathException' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/exceptions.php',
- 'JakubOnderka\\PhpParallelLint\\NullWriter' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\Output' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\ParallelLint' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/ParallelLint.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\GitBlameProcess' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Process/GitBlameProcess.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\LintProcess' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Process/LintProcess.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\PhpExecutable' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Process/PhpExecutable.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\PhpProcess' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Process/PhpProcess.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\Process' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Process/Process.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\SkipLintProcess' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Process/SkipLintProcess.php',
- 'JakubOnderka\\PhpParallelLint\\RecursiveDirectoryFilterIterator' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Manager.php',
- 'JakubOnderka\\PhpParallelLint\\Result' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Result.php',
- 'JakubOnderka\\PhpParallelLint\\RunTimeException' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/exceptions.php',
- 'JakubOnderka\\PhpParallelLint\\Settings' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Settings.php',
- 'JakubOnderka\\PhpParallelLint\\SyntaxError' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Error.php',
- 'JakubOnderka\\PhpParallelLint\\TextOutput' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\TextOutputColored' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JsonSchema\\Constraints\\BaseConstraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php',
- 'JsonSchema\\Constraints\\CollectionConstraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php',
- 'JsonSchema\\Constraints\\Constraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php',
- 'JsonSchema\\Constraints\\ConstraintInterface' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php',
- 'JsonSchema\\Constraints\\EnumConstraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php',
- 'JsonSchema\\Constraints\\Factory' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php',
- 'JsonSchema\\Constraints\\FormatConstraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php',
- 'JsonSchema\\Constraints\\NumberConstraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/NumberConstraint.php',
- 'JsonSchema\\Constraints\\ObjectConstraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php',
- 'JsonSchema\\Constraints\\SchemaConstraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php',
- 'JsonSchema\\Constraints\\StringConstraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php',
- 'JsonSchema\\Constraints\\TypeCheck\\LooseTypeCheck' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php',
- 'JsonSchema\\Constraints\\TypeCheck\\StrictTypeCheck' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php',
- 'JsonSchema\\Constraints\\TypeCheck\\TypeCheckInterface' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/TypeCheckInterface.php',
- 'JsonSchema\\Constraints\\TypeConstraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php',
- 'JsonSchema\\Constraints\\UndefinedConstraint' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php',
- 'JsonSchema\\Entity\\JsonPointer' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.php',
- 'JsonSchema\\Exception\\ExceptionInterface' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/ExceptionInterface.php',
- 'JsonSchema\\Exception\\InvalidArgumentException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidArgumentException.php',
- 'JsonSchema\\Exception\\InvalidConfigException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidConfigException.php',
- 'JsonSchema\\Exception\\InvalidSchemaException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaException.php',
- 'JsonSchema\\Exception\\InvalidSchemaMediaTypeException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.php',
- 'JsonSchema\\Exception\\InvalidSourceUriException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSourceUriException.php',
- 'JsonSchema\\Exception\\JsonDecodingException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/JsonDecodingException.php',
- 'JsonSchema\\Exception\\ResourceNotFoundException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/ResourceNotFoundException.php',
- 'JsonSchema\\Exception\\RuntimeException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/RuntimeException.php',
- 'JsonSchema\\Exception\\UnresolvableJsonPointerException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/UnresolvableJsonPointerException.php',
- 'JsonSchema\\Exception\\UriResolverException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/UriResolverException.php',
- 'JsonSchema\\Exception\\ValidationException' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Exception/ValidationException.php',
- 'JsonSchema\\Iterator\\ObjectIterator' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php',
- 'JsonSchema\\Rfc3339' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Rfc3339.php',
- 'JsonSchema\\SchemaStorage' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php',
- 'JsonSchema\\SchemaStorageInterface' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/SchemaStorageInterface.php',
- 'JsonSchema\\UriResolverInterface' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php',
- 'JsonSchema\\UriRetrieverInterface' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php',
- 'JsonSchema\\Uri\\Retrievers\\AbstractRetriever' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/AbstractRetriever.php',
- 'JsonSchema\\Uri\\Retrievers\\Curl' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php',
- 'JsonSchema\\Uri\\Retrievers\\FileGetContents' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php',
- 'JsonSchema\\Uri\\Retrievers\\PredefinedArray' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php',
- 'JsonSchema\\Uri\\Retrievers\\UriRetrieverInterface' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php',
- 'JsonSchema\\Uri\\UriResolver' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php',
- 'JsonSchema\\Uri\\UriRetriever' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php',
- 'JsonSchema\\Validator' => $vendorDir . '/justinrainbow/json-schema/src/JsonSchema/Validator.php',
- 'JsonSerializable' => $vendorDir . '/jakub-onderka/php-parallel-lint/src/JsonSerializable.php',
- 'Kafka\\Client' => $vendorDir . '/nmred/kafka-php/src/Kafka/Client.php',
- 'Kafka\\ClusterMetaData' => $vendorDir . '/nmred/kafka-php/src/Kafka/ClusterMetaData.php',
- 'Kafka\\Consumer' => $vendorDir . '/nmred/kafka-php/src/Kafka/Consumer.php',
- 'Kafka\\Exception' => $vendorDir . '/nmred/kafka-php/src/Kafka/Exception.php',
- 'Kafka\\Exception\\NotSupported' => $vendorDir . '/nmred/kafka-php/src/Kafka/Exception/NotSupported.php',
- 'Kafka\\Exception\\OutOfRange' => $vendorDir . '/nmred/kafka-php/src/Kafka/Exception/OutOfRange.php',
- 'Kafka\\Exception\\Protocol' => $vendorDir . '/nmred/kafka-php/src/Kafka/Exception/Protocol.php',
- 'Kafka\\Exception\\Socket' => $vendorDir . '/nmred/kafka-php/src/Kafka/Exception/Socket.php',
- 'Kafka\\Exception\\SocketConnect' => $vendorDir . '/nmred/kafka-php/src/Kafka/Exception/SocketConnect.php',
- 'Kafka\\Exception\\SocketEOF' => $vendorDir . '/nmred/kafka-php/src/Kafka/Exception/SocketEOF.php',
- 'Kafka\\Exception\\SocketTimeout' => $vendorDir . '/nmred/kafka-php/src/Kafka/Exception/SocketTimeout.php',
- 'Kafka\\Log' => $vendorDir . '/nmred/kafka-php/src/Kafka/Log.php',
- 'Kafka\\MetaDataFromKafka' => $vendorDir . '/nmred/kafka-php/src/Kafka/MetaDataFromKafka.php',
- 'Kafka\\Offset' => $vendorDir . '/nmred/kafka-php/src/Kafka/Offset.php',
- 'Kafka\\Produce' => $vendorDir . '/nmred/kafka-php/src/Kafka/Produce.php',
- 'Kafka\\Protocol\\Decoder' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Decoder.php',
- 'Kafka\\Protocol\\Encoder' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Encoder.php',
- 'Kafka\\Protocol\\Fetch\\Helper\\CommitOffset' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/CommitOffset.php',
- 'Kafka\\Protocol\\Fetch\\Helper\\Consumer' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Consumer.php',
- 'Kafka\\Protocol\\Fetch\\Helper\\FreeStream' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/FreeStream.php',
- 'Kafka\\Protocol\\Fetch\\Helper\\Helper' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Helper.php',
- 'Kafka\\Protocol\\Fetch\\Helper\\HelperAbstract' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/HelperAbstract.php',
- 'Kafka\\Protocol\\Fetch\\Message' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Message.php',
- 'Kafka\\Protocol\\Fetch\\MessageSet' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/MessageSet.php',
- 'Kafka\\Protocol\\Fetch\\Partition' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Partition.php',
- 'Kafka\\Protocol\\Fetch\\Topic' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Topic.php',
- 'Kafka\\Protocol\\Protocol' => $vendorDir . '/nmred/kafka-php/src/Kafka/Protocol/Protocol.php',
- 'Kafka\\Socket' => $vendorDir . '/nmred/kafka-php/src/Kafka/Socket.php',
- 'Kafka\\ZooKeeper' => $vendorDir . '/nmred/kafka-php/src/Kafka/ZooKeeper.php',
'LCRun3' => $vendorDir . '/zordius/lightncandy/src/lightncandy.php',
'Less_Autoloader' => $vendorDir . '/oyejorge/less.php/lib/Less/Autoloader.php',
'Less_Cache' => $vendorDir . '/oyejorge/less.php/lib/Less/Cache.php',
@@ -681,94 +462,6 @@ return array(
'Liuggio\\StatsdClient\\Service\\StatsdService' => $vendorDir . '/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Service/StatsdService.php',
'Liuggio\\StatsdClient\\StatsdClient' => $vendorDir . '/liuggio/statsd-php-client/src/Liuggio/StatsdClient/StatsdClient.php',
'Liuggio\\StatsdClient\\StatsdClientInterface' => $vendorDir . '/liuggio/statsd-php-client/src/Liuggio/StatsdClient/StatsdClientInterface.php',
- 'Monolog\\ErrorHandler' => $vendorDir . '/monolog/monolog/src/Monolog/ErrorHandler.php',
- 'Monolog\\Formatter\\ChromePHPFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php',
- 'Monolog\\Formatter\\ElasticaFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php',
- 'Monolog\\Formatter\\FlowdockFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php',
- 'Monolog\\Formatter\\FluentdFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php',
- 'Monolog\\Formatter\\FormatterInterface' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php',
- 'Monolog\\Formatter\\GelfMessageFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php',
- 'Monolog\\Formatter\\HtmlFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php',
- 'Monolog\\Formatter\\JsonFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php',
- 'Monolog\\Formatter\\LineFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/LineFormatter.php',
- 'Monolog\\Formatter\\LogglyFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php',
- 'Monolog\\Formatter\\LogstashFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php',
- 'Monolog\\Formatter\\MongoDBFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php',
- 'Monolog\\Formatter\\NormalizerFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php',
- 'Monolog\\Formatter\\ScalarFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php',
- 'Monolog\\Formatter\\WildfireFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php',
- 'Monolog\\Handler\\AbstractHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/AbstractHandler.php',
- 'Monolog\\Handler\\AbstractProcessingHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php',
- 'Monolog\\Handler\\AbstractSyslogHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php',
- 'Monolog\\Handler\\AmqpHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/AmqpHandler.php',
- 'Monolog\\Handler\\BrowserConsoleHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php',
- 'Monolog\\Handler\\BufferHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/BufferHandler.php',
- 'Monolog\\Handler\\ChromePHPHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php',
- 'Monolog\\Handler\\CouchDBHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php',
- 'Monolog\\Handler\\CubeHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/CubeHandler.php',
- 'Monolog\\Handler\\Curl\\Util' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/Curl/Util.php',
- 'Monolog\\Handler\\DeduplicationHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php',
- 'Monolog\\Handler\\DoctrineCouchDBHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php',
- 'Monolog\\Handler\\DynamoDbHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php',
- 'Monolog\\Handler\\ElasticSearchHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php',
- 'Monolog\\Handler\\ErrorLogHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php',
- 'Monolog\\Handler\\FilterHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FilterHandler.php',
- 'Monolog\\Handler\\FingersCrossedHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php',
- 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php',
- 'Monolog\\Handler\\FingersCrossed\\ChannelLevelActivationStrategy' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php',
- 'Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php',
- 'Monolog\\Handler\\FirePHPHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php',
- 'Monolog\\Handler\\FleepHookHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php',
- 'Monolog\\Handler\\FlowdockHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php',
- 'Monolog\\Handler\\GelfHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/GelfHandler.php',
- 'Monolog\\Handler\\GroupHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/GroupHandler.php',
- 'Monolog\\Handler\\HandlerInterface' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/HandlerInterface.php',
- 'Monolog\\Handler\\HandlerWrapper' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php',
- 'Monolog\\Handler\\HipChatHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/HipChatHandler.php',
- 'Monolog\\Handler\\IFTTTHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php',
- 'Monolog\\Handler\\LogEntriesHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php',
- 'Monolog\\Handler\\LogglyHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/LogglyHandler.php',
- 'Monolog\\Handler\\MailHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/MailHandler.php',
- 'Monolog\\Handler\\MandrillHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/MandrillHandler.php',
- 'Monolog\\Handler\\MissingExtensionException' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php',
- 'Monolog\\Handler\\MongoDBHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php',
- 'Monolog\\Handler\\NativeMailerHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php',
- 'Monolog\\Handler\\NewRelicHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php',
- 'Monolog\\Handler\\NullHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/NullHandler.php',
- 'Monolog\\Handler\\PHPConsoleHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php',
- 'Monolog\\Handler\\PsrHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/PsrHandler.php',
- 'Monolog\\Handler\\PushoverHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/PushoverHandler.php',
- 'Monolog\\Handler\\RavenHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/RavenHandler.php',
- 'Monolog\\Handler\\RedisHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/RedisHandler.php',
- 'Monolog\\Handler\\RollbarHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/RollbarHandler.php',
- 'Monolog\\Handler\\RotatingFileHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php',
- 'Monolog\\Handler\\SamplingHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SamplingHandler.php',
- 'Monolog\\Handler\\SlackHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SlackHandler.php',
- 'Monolog\\Handler\\SlackWebhookHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php',
- 'Monolog\\Handler\\Slack\\SlackRecord' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php',
- 'Monolog\\Handler\\SlackbotHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php',
- 'Monolog\\Handler\\SocketHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SocketHandler.php',
- 'Monolog\\Handler\\StreamHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/StreamHandler.php',
- 'Monolog\\Handler\\SwiftMailerHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php',
- 'Monolog\\Handler\\SyslogHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SyslogHandler.php',
- 'Monolog\\Handler\\SyslogUdpHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php',
- 'Monolog\\Handler\\SyslogUdp\\UdpSocket' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php',
- 'Monolog\\Handler\\TestHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/TestHandler.php',
- 'Monolog\\Handler\\WhatFailureGroupHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php',
- 'Monolog\\Handler\\ZendMonitorHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php',
- 'Monolog\\Logger' => $vendorDir . '/monolog/monolog/src/Monolog/Logger.php',
- 'Monolog\\Processor\\GitProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/GitProcessor.php',
- 'Monolog\\Processor\\IntrospectionProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php',
- 'Monolog\\Processor\\MemoryPeakUsageProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php',
- 'Monolog\\Processor\\MemoryProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php',
- 'Monolog\\Processor\\MemoryUsageProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php',
- 'Monolog\\Processor\\MercurialProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php',
- 'Monolog\\Processor\\ProcessIdProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php',
- 'Monolog\\Processor\\PsrLogMessageProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php',
- 'Monolog\\Processor\\TagProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/TagProcessor.php',
- 'Monolog\\Processor\\UidProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/UidProcessor.php',
- 'Monolog\\Processor\\WebProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/WebProcessor.php',
- 'Monolog\\Registry' => $vendorDir . '/monolog/monolog/src/Monolog/Registry.php',
'OOUI\\AccessKeyedElement' => $vendorDir . '/oojs/oojs-ui/php/mixins/AccessKeyedElement.php',
'OOUI\\ActionFieldLayout' => $vendorDir . '/oojs/oojs-ui/php/layouts/ActionFieldLayout.php',
'OOUI\\ApexTheme' => $vendorDir . '/oojs/oojs-ui/php/themes/ApexTheme.php',
@@ -888,411 +581,6 @@ return array(
'Onoi\\Tesa\\Tokenizer\\PunctuationRegExTokenizer' => $vendorDir . '/onoi/tesa/src/Tokenizer/PunctuationRegExTokenizer.php',
'Onoi\\Tesa\\Tokenizer\\Tokenizer' => $vendorDir . '/onoi/tesa/src/Tokenizer/Tokenizer.php',
'Onoi\\Tesa\\Transliterator' => $vendorDir . '/onoi/tesa/src/Transliterator.php',
- 'PHPUnit\\Framework\\Assert' => $vendorDir . '/phpunit/phpunit/src/ForwardCompatibility/Assert.php',
- 'PHPUnit\\Framework\\AssertionFailedError' => $vendorDir . '/phpunit/phpunit/src/ForwardCompatibility/AssertionFailedError.php',
- 'PHPUnit\\Framework\\BaseTestListener' => $vendorDir . '/phpunit/phpunit/src/ForwardCompatibility/BaseTestListener.php',
- 'PHPUnit\\Framework\\Test' => $vendorDir . '/phpunit/phpunit/src/ForwardCompatibility/Test.php',
- 'PHPUnit\\Framework\\TestCase' => $vendorDir . '/phpunit/phpunit/src/ForwardCompatibility/TestCase.php',
- 'PHPUnit\\Framework\\TestListener' => $vendorDir . '/phpunit/phpunit/src/ForwardCompatibility/TestListener.php',
- 'PHPUnit\\Framework\\TestSuite' => $vendorDir . '/phpunit/phpunit/src/ForwardCompatibility/TestSuite.php',
- 'PHPUnit_Exception' => $vendorDir . '/phpunit/phpunit/src/Exception.php',
- 'PHPUnit_Extensions_GroupTestSuite' => $vendorDir . '/phpunit/phpunit/src/Extensions/GroupTestSuite.php',
- 'PHPUnit_Extensions_PhptTestCase' => $vendorDir . '/phpunit/phpunit/src/Extensions/PhptTestCase.php',
- 'PHPUnit_Extensions_PhptTestSuite' => $vendorDir . '/phpunit/phpunit/src/Extensions/PhptTestSuite.php',
- 'PHPUnit_Extensions_RepeatedTest' => $vendorDir . '/phpunit/phpunit/src/Extensions/RepeatedTest.php',
- 'PHPUnit_Extensions_TestDecorator' => $vendorDir . '/phpunit/phpunit/src/Extensions/TestDecorator.php',
- 'PHPUnit_Extensions_TicketListener' => $vendorDir . '/phpunit/phpunit/src/Extensions/TicketListener.php',
- 'PHPUnit_Framework_Assert' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert.php',
- 'PHPUnit_Framework_AssertionFailedError' => $vendorDir . '/phpunit/phpunit/src/Framework/AssertionFailedError.php',
- 'PHPUnit_Framework_BaseTestListener' => $vendorDir . '/phpunit/phpunit/src/Framework/BaseTestListener.php',
- 'PHPUnit_Framework_CodeCoverageException' => $vendorDir . '/phpunit/phpunit/src/Framework/CodeCoverageException.php',
- 'PHPUnit_Framework_Constraint' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint.php',
- 'PHPUnit_Framework_Constraint_And' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/And.php',
- 'PHPUnit_Framework_Constraint_ArrayHasKey' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php',
- 'PHPUnit_Framework_Constraint_ArraySubset' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php',
- 'PHPUnit_Framework_Constraint_Attribute' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Attribute.php',
- 'PHPUnit_Framework_Constraint_Callback' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Callback.php',
- 'PHPUnit_Framework_Constraint_ClassHasAttribute' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php',
- 'PHPUnit_Framework_Constraint_ClassHasStaticAttribute' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ClassHasStaticAttribute.php',
- 'PHPUnit_Framework_Constraint_Composite' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Composite.php',
- 'PHPUnit_Framework_Constraint_Count' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Count.php',
- 'PHPUnit_Framework_Constraint_Exception' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Exception.php',
- 'PHPUnit_Framework_Constraint_ExceptionCode' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ExceptionCode.php',
- 'PHPUnit_Framework_Constraint_ExceptionMessage' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ExceptionMessage.php',
- 'PHPUnit_Framework_Constraint_ExceptionMessageRegExp' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ExceptionMessageRegExp.php',
- 'PHPUnit_Framework_Constraint_FileExists' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/FileExists.php',
- 'PHPUnit_Framework_Constraint_GreaterThan' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/GreaterThan.php',
- 'PHPUnit_Framework_Constraint_IsAnything' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsAnything.php',
- 'PHPUnit_Framework_Constraint_IsEmpty' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsEmpty.php',
- 'PHPUnit_Framework_Constraint_IsEqual' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsEqual.php',
- 'PHPUnit_Framework_Constraint_IsFalse' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsFalse.php',
- 'PHPUnit_Framework_Constraint_IsIdentical' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php',
- 'PHPUnit_Framework_Constraint_IsInstanceOf' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsInstanceOf.php',
- 'PHPUnit_Framework_Constraint_IsJson' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsJson.php',
- 'PHPUnit_Framework_Constraint_IsNull' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsNull.php',
- 'PHPUnit_Framework_Constraint_IsTrue' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsTrue.php',
- 'PHPUnit_Framework_Constraint_IsType' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsType.php',
- 'PHPUnit_Framework_Constraint_JsonMatches' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/JsonMatches.php',
- 'PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/JsonMatches/ErrorMessageProvider.php',
- 'PHPUnit_Framework_Constraint_LessThan' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/LessThan.php',
- 'PHPUnit_Framework_Constraint_Not' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Not.php',
- 'PHPUnit_Framework_Constraint_ObjectHasAttribute' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ObjectHasAttribute.php',
- 'PHPUnit_Framework_Constraint_Or' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Or.php',
- 'PHPUnit_Framework_Constraint_PCREMatch' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/PCREMatch.php',
- 'PHPUnit_Framework_Constraint_SameSize' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/SameSize.php',
- 'PHPUnit_Framework_Constraint_StringContains' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/StringContains.php',
- 'PHPUnit_Framework_Constraint_StringEndsWith' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/StringEndsWith.php',
- 'PHPUnit_Framework_Constraint_StringMatches' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/StringMatches.php',
- 'PHPUnit_Framework_Constraint_StringStartsWith' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/StringStartsWith.php',
- 'PHPUnit_Framework_Constraint_TraversableContains' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/TraversableContains.php',
- 'PHPUnit_Framework_Constraint_TraversableContainsOnly' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/TraversableContainsOnly.php',
- 'PHPUnit_Framework_Constraint_Xor' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Xor.php',
- 'PHPUnit_Framework_Error' => $vendorDir . '/phpunit/phpunit/src/Framework/Error.php',
- 'PHPUnit_Framework_Error_Deprecated' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Deprecated.php',
- 'PHPUnit_Framework_Error_Notice' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Notice.php',
- 'PHPUnit_Framework_Error_Warning' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Warning.php',
- 'PHPUnit_Framework_Exception' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception.php',
- 'PHPUnit_Framework_ExceptionWrapper' => $vendorDir . '/phpunit/phpunit/src/Framework/ExceptionWrapper.php',
- 'PHPUnit_Framework_ExpectationFailedException' => $vendorDir . '/phpunit/phpunit/src/Framework/ExpectationFailedException.php',
- 'PHPUnit_Framework_IncompleteTest' => $vendorDir . '/phpunit/phpunit/src/Framework/IncompleteTest.php',
- 'PHPUnit_Framework_IncompleteTestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/IncompleteTestCase.php',
- 'PHPUnit_Framework_IncompleteTestError' => $vendorDir . '/phpunit/phpunit/src/Framework/IncompleteTestError.php',
- 'PHPUnit_Framework_InvalidCoversTargetError' => $vendorDir . '/phpunit/phpunit/src/Framework/InvalidCoversTargetError.php',
- 'PHPUnit_Framework_InvalidCoversTargetException' => $vendorDir . '/phpunit/phpunit/src/Framework/InvalidCoversTargetException.php',
- 'PHPUnit_Framework_MockObject_BadMethodCallException' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/BadMethodCallException.php',
- 'PHPUnit_Framework_MockObject_Builder_Identity' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Identity.php',
- 'PHPUnit_Framework_MockObject_Builder_InvocationMocker' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php',
- 'PHPUnit_Framework_MockObject_Builder_Match' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Match.php',
- 'PHPUnit_Framework_MockObject_Builder_MethodNameMatch' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/MethodNameMatch.php',
- 'PHPUnit_Framework_MockObject_Builder_Namespace' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Namespace.php',
- 'PHPUnit_Framework_MockObject_Builder_ParametersMatch' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/ParametersMatch.php',
- 'PHPUnit_Framework_MockObject_Builder_Stub' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Stub.php',
- 'PHPUnit_Framework_MockObject_Exception' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/Exception.php',
- 'PHPUnit_Framework_MockObject_Generator' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php',
- 'PHPUnit_Framework_MockObject_Invocation' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation.php',
- 'PHPUnit_Framework_MockObject_InvocationMocker' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/InvocationMocker.php',
- 'PHPUnit_Framework_MockObject_Invocation_Object' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Object.php',
- 'PHPUnit_Framework_MockObject_Invocation_Static' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Static.php',
- 'PHPUnit_Framework_MockObject_Invokable' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invokable.php',
- 'PHPUnit_Framework_MockObject_Matcher' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher.php',
- 'PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyInvokedCount.php',
- 'PHPUnit_Framework_MockObject_Matcher_AnyParameters' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyParameters.php',
- 'PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/ConsecutiveParameters.php',
- 'PHPUnit_Framework_MockObject_Matcher_Invocation' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Invocation.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtIndex.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastCount' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastCount.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastOnce.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedAtMostCount' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtMostCount.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedCount' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedCount.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedRecorder' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedRecorder.php',
- 'PHPUnit_Framework_MockObject_Matcher_MethodName' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/MethodName.php',
- 'PHPUnit_Framework_MockObject_Matcher_Parameters' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Parameters.php',
- 'PHPUnit_Framework_MockObject_Matcher_StatelessInvocation' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/StatelessInvocation.php',
- 'PHPUnit_Framework_MockObject_MockBuilder' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockBuilder.php',
- 'PHPUnit_Framework_MockObject_MockObject' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockObject.php',
- 'PHPUnit_Framework_MockObject_RuntimeException' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/RuntimeException.php',
- 'PHPUnit_Framework_MockObject_Stub' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub.php',
- 'PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ConsecutiveCalls.php',
- 'PHPUnit_Framework_MockObject_Stub_Exception' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Exception.php',
- 'PHPUnit_Framework_MockObject_Stub_MatcherCollection' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/MatcherCollection.php',
- 'PHPUnit_Framework_MockObject_Stub_Return' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Return.php',
- 'PHPUnit_Framework_MockObject_Stub_ReturnArgument' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnArgument.php',
- 'PHPUnit_Framework_MockObject_Stub_ReturnCallback' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnCallback.php',
- 'PHPUnit_Framework_MockObject_Stub_ReturnSelf' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnSelf.php',
- 'PHPUnit_Framework_MockObject_Stub_ReturnValueMap' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnValueMap.php',
- 'PHPUnit_Framework_MockObject_Verifiable' => $vendorDir . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Verifiable.php',
- 'PHPUnit_Framework_OutputError' => $vendorDir . '/phpunit/phpunit/src/Framework/OutputError.php',
- 'PHPUnit_Framework_RiskyTest' => $vendorDir . '/phpunit/phpunit/src/Framework/RiskyTest.php',
- 'PHPUnit_Framework_RiskyTestError' => $vendorDir . '/phpunit/phpunit/src/Framework/RiskyTestError.php',
- 'PHPUnit_Framework_SelfDescribing' => $vendorDir . '/phpunit/phpunit/src/Framework/SelfDescribing.php',
- 'PHPUnit_Framework_SkippedTest' => $vendorDir . '/phpunit/phpunit/src/Framework/SkippedTest.php',
- 'PHPUnit_Framework_SkippedTestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/SkippedTestCase.php',
- 'PHPUnit_Framework_SkippedTestError' => $vendorDir . '/phpunit/phpunit/src/Framework/SkippedTestError.php',
- 'PHPUnit_Framework_SkippedTestSuiteError' => $vendorDir . '/phpunit/phpunit/src/Framework/SkippedTestSuiteError.php',
- 'PHPUnit_Framework_SyntheticError' => $vendorDir . '/phpunit/phpunit/src/Framework/SyntheticError.php',
- 'PHPUnit_Framework_Test' => $vendorDir . '/phpunit/phpunit/src/Framework/Test.php',
- 'PHPUnit_Framework_TestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/TestCase.php',
- 'PHPUnit_Framework_TestFailure' => $vendorDir . '/phpunit/phpunit/src/Framework/TestFailure.php',
- 'PHPUnit_Framework_TestListener' => $vendorDir . '/phpunit/phpunit/src/Framework/TestListener.php',
- 'PHPUnit_Framework_TestResult' => $vendorDir . '/phpunit/phpunit/src/Framework/TestResult.php',
- 'PHPUnit_Framework_TestSuite' => $vendorDir . '/phpunit/phpunit/src/Framework/TestSuite.php',
- 'PHPUnit_Framework_TestSuite_DataProvider' => $vendorDir . '/phpunit/phpunit/src/Framework/TestSuite/DataProvider.php',
- 'PHPUnit_Framework_UnintentionallyCoveredCodeError' => $vendorDir . '/phpunit/phpunit/src/Framework/UnintentionallyCoveredCodeError.php',
- 'PHPUnit_Framework_Warning' => $vendorDir . '/phpunit/phpunit/src/Framework/Warning.php',
- 'PHPUnit_Runner_BaseTestRunner' => $vendorDir . '/phpunit/phpunit/src/Runner/BaseTestRunner.php',
- 'PHPUnit_Runner_Exception' => $vendorDir . '/phpunit/phpunit/src/Runner/Exception.php',
- 'PHPUnit_Runner_Filter_Factory' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/Factory.php',
- 'PHPUnit_Runner_Filter_GroupFilterIterator' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/Group.php',
- 'PHPUnit_Runner_Filter_Group_Exclude' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/Group/Exclude.php',
- 'PHPUnit_Runner_Filter_Group_Include' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/Group/Include.php',
- 'PHPUnit_Runner_Filter_Test' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/Test.php',
- 'PHPUnit_Runner_StandardTestSuiteLoader' => $vendorDir . '/phpunit/phpunit/src/Runner/StandardTestSuiteLoader.php',
- 'PHPUnit_Runner_TestSuiteLoader' => $vendorDir . '/phpunit/phpunit/src/Runner/TestSuiteLoader.php',
- 'PHPUnit_Runner_Version' => $vendorDir . '/phpunit/phpunit/src/Runner/Version.php',
- 'PHPUnit_TextUI_Command' => $vendorDir . '/phpunit/phpunit/src/TextUI/Command.php',
- 'PHPUnit_TextUI_ResultPrinter' => $vendorDir . '/phpunit/phpunit/src/TextUI/ResultPrinter.php',
- 'PHPUnit_TextUI_TestRunner' => $vendorDir . '/phpunit/phpunit/src/TextUI/TestRunner.php',
- 'PHPUnit_Util_Blacklist' => $vendorDir . '/phpunit/phpunit/src/Util/Blacklist.php',
- 'PHPUnit_Util_Configuration' => $vendorDir . '/phpunit/phpunit/src/Util/Configuration.php',
- 'PHPUnit_Util_ErrorHandler' => $vendorDir . '/phpunit/phpunit/src/Util/ErrorHandler.php',
- 'PHPUnit_Util_Fileloader' => $vendorDir . '/phpunit/phpunit/src/Util/Fileloader.php',
- 'PHPUnit_Util_Filesystem' => $vendorDir . '/phpunit/phpunit/src/Util/Filesystem.php',
- 'PHPUnit_Util_Filter' => $vendorDir . '/phpunit/phpunit/src/Util/Filter.php',
- 'PHPUnit_Util_Getopt' => $vendorDir . '/phpunit/phpunit/src/Util/Getopt.php',
- 'PHPUnit_Util_GlobalState' => $vendorDir . '/phpunit/phpunit/src/Util/GlobalState.php',
- 'PHPUnit_Util_InvalidArgumentHelper' => $vendorDir . '/phpunit/phpunit/src/Util/InvalidArgumentHelper.php',
- 'PHPUnit_Util_Log_JSON' => $vendorDir . '/phpunit/phpunit/src/Util/Log/JSON.php',
- 'PHPUnit_Util_Log_JUnit' => $vendorDir . '/phpunit/phpunit/src/Util/Log/JUnit.php',
- 'PHPUnit_Util_Log_TAP' => $vendorDir . '/phpunit/phpunit/src/Util/Log/TAP.php',
- 'PHPUnit_Util_PHP' => $vendorDir . '/phpunit/phpunit/src/Util/PHP.php',
- 'PHPUnit_Util_PHP_Default' => $vendorDir . '/phpunit/phpunit/src/Util/PHP/Default.php',
- 'PHPUnit_Util_PHP_Windows' => $vendorDir . '/phpunit/phpunit/src/Util/PHP/Windows.php',
- 'PHPUnit_Util_Printer' => $vendorDir . '/phpunit/phpunit/src/Util/Printer.php',
- 'PHPUnit_Util_Regex' => $vendorDir . '/phpunit/phpunit/src/Util/Regex.php',
- 'PHPUnit_Util_String' => $vendorDir . '/phpunit/phpunit/src/Util/String.php',
- 'PHPUnit_Util_Test' => $vendorDir . '/phpunit/phpunit/src/Util/Test.php',
- 'PHPUnit_Util_TestDox_NamePrettifier' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/NamePrettifier.php',
- 'PHPUnit_Util_TestDox_ResultPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php',
- 'PHPUnit_Util_TestDox_ResultPrinter_HTML' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/ResultPrinter/HTML.php',
- 'PHPUnit_Util_TestDox_ResultPrinter_Text' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/ResultPrinter/Text.php',
- 'PHPUnit_Util_TestSuiteIterator' => $vendorDir . '/phpunit/phpunit/src/Util/TestSuiteIterator.php',
- 'PHPUnit_Util_Type' => $vendorDir . '/phpunit/phpunit/src/Util/Type.php',
- 'PHPUnit_Util_XML' => $vendorDir . '/phpunit/phpunit/src/Util/XML.php',
- 'PHP_CodeCoverage' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage.php',
- 'PHP_CodeCoverage_Driver' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Driver.php',
- 'PHP_CodeCoverage_Driver_HHVM' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Driver/HHVM.php',
- 'PHP_CodeCoverage_Driver_PHPDBG' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Driver/PHPDBG.php',
- 'PHP_CodeCoverage_Driver_Xdebug' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Driver/Xdebug.php',
- 'PHP_CodeCoverage_Exception' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Exception.php',
- 'PHP_CodeCoverage_Exception_UnintentionallyCoveredCode' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Exception/UnintentionallyCoveredCode.php',
- 'PHP_CodeCoverage_Filter' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Filter.php',
- 'PHP_CodeCoverage_Report_Clover' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Clover.php',
- 'PHP_CodeCoverage_Report_Crap4j' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Crap4j.php',
- 'PHP_CodeCoverage_Report_Factory' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Factory.php',
- 'PHP_CodeCoverage_Report_HTML' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php',
- 'PHP_CodeCoverage_Report_HTML_Renderer' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer.php',
- 'PHP_CodeCoverage_Report_HTML_Renderer_Dashboard' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Dashboard.php',
- 'PHP_CodeCoverage_Report_HTML_Renderer_Directory' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Directory.php',
- 'PHP_CodeCoverage_Report_HTML_Renderer_File' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/File.php',
- 'PHP_CodeCoverage_Report_Node' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php',
- 'PHP_CodeCoverage_Report_Node_Directory' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Directory.php',
- 'PHP_CodeCoverage_Report_Node_File' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php',
- 'PHP_CodeCoverage_Report_Node_Iterator' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Iterator.php',
- 'PHP_CodeCoverage_Report_PHP' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/PHP.php',
- 'PHP_CodeCoverage_Report_Text' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php',
- 'PHP_CodeCoverage_Report_XML' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML.php',
- 'PHP_CodeCoverage_Report_XML_Directory' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Directory.php',
- 'PHP_CodeCoverage_Report_XML_File' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File.php',
- 'PHP_CodeCoverage_Report_XML_File_Coverage' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Coverage.php',
- 'PHP_CodeCoverage_Report_XML_File_Method' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Method.php',
- 'PHP_CodeCoverage_Report_XML_File_Report' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Report.php',
- 'PHP_CodeCoverage_Report_XML_File_Unit' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Unit.php',
- 'PHP_CodeCoverage_Report_XML_Node' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Node.php',
- 'PHP_CodeCoverage_Report_XML_Project' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Project.php',
- 'PHP_CodeCoverage_Report_XML_Tests' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Tests.php',
- 'PHP_CodeCoverage_Report_XML_Totals' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Totals.php',
- 'PHP_CodeCoverage_Util' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Util.php',
- 'PHP_CodeCoverage_Util_InvalidArgumentHelper' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage/Util/InvalidArgumentHelper.php',
- 'PHP_Timer' => $vendorDir . '/phpunit/php-timer/src/Timer.php',
- 'PHP_Token' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_TokenWithScope' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_TokenWithScopeAndVisibility' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ABSTRACT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_AMPERSAND' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_AND_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ARRAY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ARRAY_CAST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_AS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ASYNC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_AT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_AWAIT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BACKTICK' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BAD_CHARACTER' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BOOLEAN_AND' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BOOLEAN_OR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BOOL_CAST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BREAK' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CALLABLE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CARET' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CASE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CATCH' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CHARACTER' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLASS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLASS_C' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLASS_NAME_CONSTANT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLONE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLOSE_BRACKET' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLOSE_CURLY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLOSE_SQUARE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLOSE_TAG' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_COALESCE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_COLON' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_COMMA' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_COMMENT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_COMPILER_HALT_OFFSET' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CONCAT_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CONST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CONSTANT_ENCAPSED_STRING' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CONTINUE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CURLY_OPEN' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DEC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DECLARE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DEFAULT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DIR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DIV' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DIV_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DNUMBER' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DO' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOC_COMMENT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOLLAR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOLLAR_OPEN_CURLY_BRACES' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOUBLE_ARROW' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOUBLE_CAST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOUBLE_COLON' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOUBLE_QUOTES' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ECHO' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ELLIPSIS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ELSE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ELSEIF' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EMPTY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENCAPSED_AND_WHITESPACE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDDECLARE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDFOR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDFOREACH' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDIF' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDSWITCH' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDWHILE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_END_HEREDOC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENUM' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EQUALS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EVAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EXCLAMATION_MARK' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EXIT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EXTENDS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FILE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FINAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FINALLY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FOR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FOREACH' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FUNCTION' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FUNC_C' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_GLOBAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_GOTO' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_GT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_HALT_COMPILER' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IF' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IMPLEMENTS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IN' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INCLUDE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INCLUDE_ONCE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INLINE_HTML' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INSTANCEOF' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INSTEADOF' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INTERFACE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INT_CAST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ISSET' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_GREATER_OR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_IDENTICAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_NOT_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_NOT_IDENTICAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_SMALLER_OR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_Includes' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_JOIN' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LAMBDA_ARROW' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LAMBDA_CP' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LAMBDA_OP' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LINE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LIST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LNUMBER' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LOGICAL_AND' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LOGICAL_OR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LOGICAL_XOR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_METHOD_C' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_MINUS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_MINUS_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_MOD_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_MULT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_MUL_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NAMESPACE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NEW' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NS_C' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NS_SEPARATOR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NULLSAFE_OBJECT_OPERATOR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NUM_STRING' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OBJECT_CAST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OBJECT_OPERATOR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ONUMBER' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OPEN_BRACKET' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OPEN_CURLY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OPEN_SQUARE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OPEN_TAG' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OPEN_TAG_WITH_ECHO' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PAAMAYIM_NEKUDOTAYIM' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PERCENT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PIPE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PLUS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PLUS_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_POW' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_POW_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PRINT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PRIVATE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PROTECTED' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PUBLIC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_QUESTION_MARK' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_REQUIRE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_REQUIRE_ONCE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_RETURN' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SEMICOLON' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SHAPE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SL_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SPACESHIP' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_START_HEREDOC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_STATIC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_STRING' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_STRING_CAST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_STRING_VARNAME' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SUPER' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SWITCH' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_Stream' => $vendorDir . '/phpunit/php-token-stream/src/Token/Stream.php',
- 'PHP_Token_Stream_CachingFactory' => $vendorDir . '/phpunit/php-token-stream/src/Token/Stream/CachingFactory.php',
- 'PHP_Token_THROW' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TILDE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TRAIT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TRAIT_C' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TRY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TYPE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TYPELIST_GT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TYPELIST_LT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_UNSET' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_UNSET_CAST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_USE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_USE_FUNCTION' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_VAR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_VARIABLE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_WHERE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_WHILE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_WHITESPACE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_ATTRIBUTE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_CATEGORY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_CATEGORY_LABEL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_CHILDREN' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_LABEL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_REQUIRED' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_TAG_GT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_TAG_LT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_TEXT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XOR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_YIELD' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_YIELD_FROM' => $vendorDir . '/phpunit/php-token-stream/src/Token.php',
'ParamProcessor\\Definition\\DimensionParam' => $vendorDir . '/param-processor/param-processor/src/Definition/DimensionParam.php',
'ParamProcessor\\Definition\\StringParam' => $vendorDir . '/param-processor/param-processor/src/Definition/StringParam.php',
'ParamProcessor\\IParam' => $vendorDir . '/param-processor/param-processor/src/IParam.php',
@@ -1317,292 +605,6 @@ return array(
'ParserHooks\\HookRegistrant' => $vendorDir . '/mediawiki/parser-hooks/src/HookRegistrant.php',
'ParserHooks\\HookRunner' => $vendorDir . '/mediawiki/parser-hooks/src/HookRunner.php',
'ParserHooks\\Internal\\Runner' => $vendorDir . '/mediawiki/parser-hooks/src/Internal/Runner.php',
- 'PhpParser\\Autoloader' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Autoloader.php',
- 'PhpParser\\Builder' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder.php',
- 'PhpParser\\BuilderAbstract' => $vendorDir . '/nikic/php-parser/lib/PhpParser/BuilderAbstract.php',
- 'PhpParser\\BuilderFactory' => $vendorDir . '/nikic/php-parser/lib/PhpParser/BuilderFactory.php',
- 'PhpParser\\Builder\\Class_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/Class_.php',
- 'PhpParser\\Builder\\Declaration' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/Declaration.php',
- 'PhpParser\\Builder\\FunctionLike' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php',
- 'PhpParser\\Builder\\Function_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/Function_.php',
- 'PhpParser\\Builder\\Interface_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/Interface_.php',
- 'PhpParser\\Builder\\Method' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/Method.php',
- 'PhpParser\\Builder\\Namespace_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php',
- 'PhpParser\\Builder\\Param' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/Param.php',
- 'PhpParser\\Builder\\Property' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/Property.php',
- 'PhpParser\\Builder\\Trait_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/Trait_.php',
- 'PhpParser\\Builder\\Use_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Builder/Use_.php',
- 'PhpParser\\Comment' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Comment.php',
- 'PhpParser\\Comment\\Doc' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Comment/Doc.php',
- 'PhpParser\\Error' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Error.php',
- 'PhpParser\\Lexer' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Lexer.php',
- 'PhpParser\\Lexer\\Emulative' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php',
- 'PhpParser\\Node' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node.php',
- 'PhpParser\\NodeAbstract' => $vendorDir . '/nikic/php-parser/lib/PhpParser/NodeAbstract.php',
- 'PhpParser\\NodeDumper' => $vendorDir . '/nikic/php-parser/lib/PhpParser/NodeDumper.php',
- 'PhpParser\\NodeTraverser' => $vendorDir . '/nikic/php-parser/lib/PhpParser/NodeTraverser.php',
- 'PhpParser\\NodeTraverserInterface' => $vendorDir . '/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php',
- 'PhpParser\\NodeVisitor' => $vendorDir . '/nikic/php-parser/lib/PhpParser/NodeVisitor.php',
- 'PhpParser\\NodeVisitorAbstract' => $vendorDir . '/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php',
- 'PhpParser\\NodeVisitor\\NameResolver' => $vendorDir . '/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php',
- 'PhpParser\\Node\\Arg' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Arg.php',
- 'PhpParser\\Node\\Const_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Const_.php',
- 'PhpParser\\Node\\Expr' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr.php',
- 'PhpParser\\Node\\Expr\\ArrayDimFetch' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php',
- 'PhpParser\\Node\\Expr\\ArrayItem' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php',
- 'PhpParser\\Node\\Expr\\Array_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php',
- 'PhpParser\\Node\\Expr\\Assign' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php',
- 'PhpParser\\Node\\Expr\\AssignOp' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\BitwiseAnd' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\BitwiseOr' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseOr.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\BitwiseXor' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseXor.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Concat' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Div' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Minus' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Minus.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Mod' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Mul' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mul.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Plus' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Pow' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\ShiftLeft' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftLeft.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\ShiftRight' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftRight.php',
- 'PhpParser\\Node\\Expr\\AssignRef' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php',
- 'PhpParser\\Node\\Expr\\BinaryOp' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\BitwiseAnd' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\BitwiseOr' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\BitwiseXor' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseXor.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\BooleanAnd' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\BooleanOr' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Coalesce' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Concat' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Concat.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Div' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Div.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Equal' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Equal.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Greater' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Greater.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\GreaterOrEqual' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Identical' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\LogicalAnd' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalAnd.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\LogicalOr' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalOr.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\LogicalXor' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalXor.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Minus' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Minus.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Mod' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Mul' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\NotEqual' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\NotIdentical' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Plus' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Pow' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\ShiftLeft' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftLeft.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\ShiftRight' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Smaller' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\SmallerOrEqual' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Spaceship' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Spaceship.php',
- 'PhpParser\\Node\\Expr\\BitwiseNot' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php',
- 'PhpParser\\Node\\Expr\\BooleanNot' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php',
- 'PhpParser\\Node\\Expr\\Cast' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php',
- 'PhpParser\\Node\\Expr\\Cast\\Array_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php',
- 'PhpParser\\Node\\Expr\\Cast\\Bool_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php',
- 'PhpParser\\Node\\Expr\\Cast\\Double' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php',
- 'PhpParser\\Node\\Expr\\Cast\\Int_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Int_.php',
- 'PhpParser\\Node\\Expr\\Cast\\Object_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Object_.php',
- 'PhpParser\\Node\\Expr\\Cast\\String_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/String_.php',
- 'PhpParser\\Node\\Expr\\Cast\\Unset_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php',
- 'PhpParser\\Node\\Expr\\ClassConstFetch' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php',
- 'PhpParser\\Node\\Expr\\Clone_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php',
- 'PhpParser\\Node\\Expr\\Closure' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php',
- 'PhpParser\\Node\\Expr\\ClosureUse' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php',
- 'PhpParser\\Node\\Expr\\ConstFetch' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.php',
- 'PhpParser\\Node\\Expr\\Empty_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php',
- 'PhpParser\\Node\\Expr\\ErrorSuppress' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php',
- 'PhpParser\\Node\\Expr\\Eval_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php',
- 'PhpParser\\Node\\Expr\\Exit_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php',
- 'PhpParser\\Node\\Expr\\FuncCall' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php',
- 'PhpParser\\Node\\Expr\\Include_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php',
- 'PhpParser\\Node\\Expr\\Instanceof_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php',
- 'PhpParser\\Node\\Expr\\Isset_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php',
- 'PhpParser\\Node\\Expr\\List_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php',
- 'PhpParser\\Node\\Expr\\MethodCall' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php',
- 'PhpParser\\Node\\Expr\\New_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php',
- 'PhpParser\\Node\\Expr\\PostDec' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php',
- 'PhpParser\\Node\\Expr\\PostInc' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php',
- 'PhpParser\\Node\\Expr\\PreDec' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php',
- 'PhpParser\\Node\\Expr\\PreInc' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php',
- 'PhpParser\\Node\\Expr\\Print_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php',
- 'PhpParser\\Node\\Expr\\PropertyFetch' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php',
- 'PhpParser\\Node\\Expr\\ShellExec' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php',
- 'PhpParser\\Node\\Expr\\StaticCall' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php',
- 'PhpParser\\Node\\Expr\\StaticPropertyFetch' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php',
- 'PhpParser\\Node\\Expr\\Ternary' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php',
- 'PhpParser\\Node\\Expr\\UnaryMinus' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php',
- 'PhpParser\\Node\\Expr\\UnaryPlus' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php',
- 'PhpParser\\Node\\Expr\\Variable' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php',
- 'PhpParser\\Node\\Expr\\YieldFrom' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php',
- 'PhpParser\\Node\\Expr\\Yield_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php',
- 'PhpParser\\Node\\FunctionLike' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php',
- 'PhpParser\\Node\\Name' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Name.php',
- 'PhpParser\\Node\\Name\\FullyQualified' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php',
- 'PhpParser\\Node\\Name\\Relative' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php',
- 'PhpParser\\Node\\Param' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Param.php',
- 'PhpParser\\Node\\Scalar' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar.php',
- 'PhpParser\\Node\\Scalar\\DNumber' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php',
- 'PhpParser\\Node\\Scalar\\Encapsed' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php',
- 'PhpParser\\Node\\Scalar\\EncapsedStringPart' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php',
- 'PhpParser\\Node\\Scalar\\LNumber' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php',
- 'PhpParser\\Node\\Scalar\\MagicConst' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Class_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Dir' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\File' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Function_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Function_.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Line' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Method' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Namespace_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Trait_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php',
- 'PhpParser\\Node\\Scalar\\String_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php',
- 'PhpParser\\Node\\Stmt' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt.php',
- 'PhpParser\\Node\\Stmt\\Break_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php',
- 'PhpParser\\Node\\Stmt\\Case_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php',
- 'PhpParser\\Node\\Stmt\\Catch_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php',
- 'PhpParser\\Node\\Stmt\\ClassConst' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php',
- 'PhpParser\\Node\\Stmt\\ClassLike' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php',
- 'PhpParser\\Node\\Stmt\\ClassMethod' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php',
- 'PhpParser\\Node\\Stmt\\Class_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php',
- 'PhpParser\\Node\\Stmt\\Const_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php',
- 'PhpParser\\Node\\Stmt\\Continue_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php',
- 'PhpParser\\Node\\Stmt\\DeclareDeclare' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php',
- 'PhpParser\\Node\\Stmt\\Declare_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php',
- 'PhpParser\\Node\\Stmt\\Do_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php',
- 'PhpParser\\Node\\Stmt\\Echo_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php',
- 'PhpParser\\Node\\Stmt\\ElseIf_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php',
- 'PhpParser\\Node\\Stmt\\Else_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php',
- 'PhpParser\\Node\\Stmt\\For_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php',
- 'PhpParser\\Node\\Stmt\\Foreach_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Foreach_.php',
- 'PhpParser\\Node\\Stmt\\Function_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php',
- 'PhpParser\\Node\\Stmt\\Global_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php',
- 'PhpParser\\Node\\Stmt\\Goto_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php',
- 'PhpParser\\Node\\Stmt\\GroupUse' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php',
- 'PhpParser\\Node\\Stmt\\HaltCompiler' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php',
- 'PhpParser\\Node\\Stmt\\If_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/If_.php',
- 'PhpParser\\Node\\Stmt\\InlineHTML' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php',
- 'PhpParser\\Node\\Stmt\\Interface_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Interface_.php',
- 'PhpParser\\Node\\Stmt\\Label' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php',
- 'PhpParser\\Node\\Stmt\\Namespace_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php',
- 'PhpParser\\Node\\Stmt\\Nop' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php',
- 'PhpParser\\Node\\Stmt\\Property' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php',
- 'PhpParser\\Node\\Stmt\\PropertyProperty' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php',
- 'PhpParser\\Node\\Stmt\\Return_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php',
- 'PhpParser\\Node\\Stmt\\StaticVar' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php',
- 'PhpParser\\Node\\Stmt\\Static_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php',
- 'PhpParser\\Node\\Stmt\\Switch_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php',
- 'PhpParser\\Node\\Stmt\\Throw_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php',
- 'PhpParser\\Node\\Stmt\\TraitUse' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php',
- 'PhpParser\\Node\\Stmt\\TraitUseAdaptation' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php',
- 'PhpParser\\Node\\Stmt\\TraitUseAdaptation\\Alias' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php',
- 'PhpParser\\Node\\Stmt\\TraitUseAdaptation\\Precedence' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php',
- 'PhpParser\\Node\\Stmt\\Trait_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php',
- 'PhpParser\\Node\\Stmt\\TryCatch' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php',
- 'PhpParser\\Node\\Stmt\\Unset_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php',
- 'PhpParser\\Node\\Stmt\\UseUse' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php',
- 'PhpParser\\Node\\Stmt\\Use_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php',
- 'PhpParser\\Node\\Stmt\\While_' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php',
- 'PhpParser\\Parser' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Parser.php',
- 'PhpParser\\ParserAbstract' => $vendorDir . '/nikic/php-parser/lib/PhpParser/ParserAbstract.php',
- 'PhpParser\\ParserFactory' => $vendorDir . '/nikic/php-parser/lib/PhpParser/ParserFactory.php',
- 'PhpParser\\Parser\\Multiple' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Parser/Multiple.php',
- 'PhpParser\\Parser\\Php5' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Parser/Php5.php',
- 'PhpParser\\Parser\\Php7' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Parser/Php7.php',
- 'PhpParser\\Parser\\Tokens' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Parser/Tokens.php',
- 'PhpParser\\PrettyPrinterAbstract' => $vendorDir . '/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php',
- 'PhpParser\\PrettyPrinter\\Standard' => $vendorDir . '/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php',
- 'PhpParser\\Serializer' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Serializer.php',
- 'PhpParser\\Serializer\\XML' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Serializer/XML.php',
- 'PhpParser\\Unserializer' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Unserializer.php',
- 'PhpParser\\Unserializer\\XML' => $vendorDir . '/nikic/php-parser/lib/PhpParser/Unserializer/XML.php',
- 'Prophecy\\Argument' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument.php',
- 'Prophecy\\Argument\\ArgumentsWildcard' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php',
- 'Prophecy\\Argument\\Token\\AnyValueToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php',
- 'Prophecy\\Argument\\Token\\AnyValuesToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValuesToken.php',
- 'Prophecy\\Argument\\Token\\ApproximateValueToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/ApproximateValueToken.php',
- 'Prophecy\\Argument\\Token\\ArrayCountToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayCountToken.php',
- 'Prophecy\\Argument\\Token\\ArrayEntryToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEntryToken.php',
- 'Prophecy\\Argument\\Token\\ArrayEveryEntryToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEveryEntryToken.php',
- 'Prophecy\\Argument\\Token\\CallbackToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/CallbackToken.php',
- 'Prophecy\\Argument\\Token\\ExactValueToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/ExactValueToken.php',
- 'Prophecy\\Argument\\Token\\IdenticalValueToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/IdenticalValueToken.php',
- 'Prophecy\\Argument\\Token\\LogicalAndToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalAndToken.php',
- 'Prophecy\\Argument\\Token\\LogicalNotToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalNotToken.php',
- 'Prophecy\\Argument\\Token\\ObjectStateToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php',
- 'Prophecy\\Argument\\Token\\StringContainsToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/StringContainsToken.php',
- 'Prophecy\\Argument\\Token\\TokenInterface' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/TokenInterface.php',
- 'Prophecy\\Argument\\Token\\TypeToken' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Argument/Token/TypeToken.php',
- 'Prophecy\\Call\\Call' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Call/Call.php',
- 'Prophecy\\Call\\CallCenter' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Call/CallCenter.php',
- 'Prophecy\\Comparator\\ClosureComparator' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Comparator/ClosureComparator.php',
- 'Prophecy\\Comparator\\Factory' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Comparator/Factory.php',
- 'Prophecy\\Comparator\\ProphecyComparator' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Comparator/ProphecyComparator.php',
- 'Prophecy\\Doubler\\CachedDoubler' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/CachedDoubler.php',
- 'Prophecy\\Doubler\\ClassPatch\\ClassPatchInterface' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php',
- 'Prophecy\\Doubler\\ClassPatch\\DisableConstructorPatch' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\HhvmExceptionPatch' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\KeywordPatch' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/KeywordPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\MagicCallPatch' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/MagicCallPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\ProphecySubjectPatch' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\ReflectionClassNewInstancePatch' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\SplFileInfoPatch' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\ThrowablePatch' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ThrowablePatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\TraversablePatch' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/TraversablePatch.php',
- 'Prophecy\\Doubler\\DoubleInterface' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/DoubleInterface.php',
- 'Prophecy\\Doubler\\Doubler' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/Doubler.php',
- 'Prophecy\\Doubler\\Generator\\ClassCodeGenerator' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCodeGenerator.php',
- 'Prophecy\\Doubler\\Generator\\ClassCreator' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php',
- 'Prophecy\\Doubler\\Generator\\ClassMirror' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassMirror.php',
- 'Prophecy\\Doubler\\Generator\\Node\\ArgumentNode' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentNode.php',
- 'Prophecy\\Doubler\\Generator\\Node\\ClassNode' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php',
- 'Prophecy\\Doubler\\Generator\\Node\\MethodNode' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php',
- 'Prophecy\\Doubler\\Generator\\ReflectionInterface' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/ReflectionInterface.php',
- 'Prophecy\\Doubler\\Generator\\TypeHintReference' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/TypeHintReference.php',
- 'Prophecy\\Doubler\\LazyDouble' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/LazyDouble.php',
- 'Prophecy\\Doubler\\NameGenerator' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Doubler/NameGenerator.php',
- 'Prophecy\\Exception\\Call\\UnexpectedCallException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Call/UnexpectedCallException.php',
- 'Prophecy\\Exception\\Doubler\\ClassCreatorException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassCreatorException.php',
- 'Prophecy\\Exception\\Doubler\\ClassMirrorException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassMirrorException.php',
- 'Prophecy\\Exception\\Doubler\\ClassNotFoundException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassNotFoundException.php',
- 'Prophecy\\Exception\\Doubler\\DoubleException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoubleException.php',
- 'Prophecy\\Exception\\Doubler\\DoublerException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoublerException.php',
- 'Prophecy\\Exception\\Doubler\\InterfaceNotFoundException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/InterfaceNotFoundException.php',
- 'Prophecy\\Exception\\Doubler\\MethodNotExtendableException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php',
- 'Prophecy\\Exception\\Doubler\\MethodNotFoundException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotFoundException.php',
- 'Prophecy\\Exception\\Doubler\\ReturnByReferenceException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/ReturnByReferenceException.php',
- 'Prophecy\\Exception\\Exception' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Exception.php',
- 'Prophecy\\Exception\\InvalidArgumentException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/InvalidArgumentException.php',
- 'Prophecy\\Exception\\Prediction\\AggregateException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php',
- 'Prophecy\\Exception\\Prediction\\FailedPredictionException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/FailedPredictionException.php',
- 'Prophecy\\Exception\\Prediction\\NoCallsException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/NoCallsException.php',
- 'Prophecy\\Exception\\Prediction\\PredictionException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/PredictionException.php',
- 'Prophecy\\Exception\\Prediction\\UnexpectedCallsCountException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php',
- 'Prophecy\\Exception\\Prediction\\UnexpectedCallsException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsException.php',
- 'Prophecy\\Exception\\Prophecy\\MethodProphecyException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Prophecy/MethodProphecyException.php',
- 'Prophecy\\Exception\\Prophecy\\ObjectProphecyException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ObjectProphecyException.php',
- 'Prophecy\\Exception\\Prophecy\\ProphecyException' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ProphecyException.php',
- 'Prophecy\\PhpDocumentor\\ClassAndInterfaceTagRetriever' => $vendorDir . '/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php',
- 'Prophecy\\PhpDocumentor\\ClassTagRetriever' => $vendorDir . '/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassTagRetriever.php',
- 'Prophecy\\PhpDocumentor\\LegacyClassTagRetriever' => $vendorDir . '/phpspec/prophecy/src/Prophecy/PhpDocumentor/LegacyClassTagRetriever.php',
- 'Prophecy\\PhpDocumentor\\MethodTagRetrieverInterface' => $vendorDir . '/phpspec/prophecy/src/Prophecy/PhpDocumentor/MethodTagRetrieverInterface.php',
- 'Prophecy\\Prediction\\CallPrediction' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prediction/CallPrediction.php',
- 'Prophecy\\Prediction\\CallTimesPrediction' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prediction/CallTimesPrediction.php',
- 'Prophecy\\Prediction\\CallbackPrediction' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prediction/CallbackPrediction.php',
- 'Prophecy\\Prediction\\NoCallsPrediction' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prediction/NoCallsPrediction.php',
- 'Prophecy\\Prediction\\PredictionInterface' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prediction/PredictionInterface.php',
- 'Prophecy\\Promise\\CallbackPromise' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Promise/CallbackPromise.php',
- 'Prophecy\\Promise\\PromiseInterface' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Promise/PromiseInterface.php',
- 'Prophecy\\Promise\\ReturnArgumentPromise' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Promise/ReturnArgumentPromise.php',
- 'Prophecy\\Promise\\ReturnPromise' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Promise/ReturnPromise.php',
- 'Prophecy\\Promise\\ThrowPromise' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Promise/ThrowPromise.php',
- 'Prophecy\\Prophecy\\MethodProphecy' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php',
- 'Prophecy\\Prophecy\\ObjectProphecy' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php',
- 'Prophecy\\Prophecy\\ProphecyInterface' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prophecy/ProphecyInterface.php',
- 'Prophecy\\Prophecy\\ProphecySubjectInterface' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prophecy/ProphecySubjectInterface.php',
- 'Prophecy\\Prophecy\\Revealer' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prophecy/Revealer.php',
- 'Prophecy\\Prophecy\\RevealerInterface' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prophecy/RevealerInterface.php',
- 'Prophecy\\Prophet' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Prophet.php',
- 'Prophecy\\Util\\ExportUtil' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Util/ExportUtil.php',
- 'Prophecy\\Util\\StringUtil' => $vendorDir . '/phpspec/prophecy/src/Prophecy/Util/StringUtil.php',
'Psr\\Log\\AbstractLogger' => $vendorDir . '/psr/log/Psr/Log/AbstractLogger.php',
'Psr\\Log\\InvalidArgumentException' => $vendorDir . '/psr/log/Psr/Log/InvalidArgumentException.php',
'Psr\\Log\\LogLevel' => $vendorDir . '/psr/log/Psr/Log/LogLevel.php',
@@ -1613,129 +615,6 @@ return array(
'Psr\\Log\\NullLogger' => $vendorDir . '/psr/log/Psr/Log/NullLogger.php',
'Psr\\Log\\Test\\DummyTest' => $vendorDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
'Psr\\Log\\Test\\LoggerInterfaceTest' => $vendorDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
- 'Psy\\Autoloader' => $vendorDir . '/psy/psysh/src/Psy/Autoloader.php',
- 'Psy\\CodeCleaner' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner.php',
- 'Psy\\CodeCleaner\\AbstractClassPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/AbstractClassPass.php',
- 'Psy\\CodeCleaner\\AssignThisVariablePass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/AssignThisVariablePass.php',
- 'Psy\\CodeCleaner\\CallTimePassByReferencePass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/CallTimePassByReferencePass.php',
- 'Psy\\CodeCleaner\\CalledClassPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/CalledClassPass.php',
- 'Psy\\CodeCleaner\\CodeCleanerPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/CodeCleanerPass.php',
- 'Psy\\CodeCleaner\\ExitPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/ExitPass.php',
- 'Psy\\CodeCleaner\\FinalClassPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/FinalClassPass.php',
- 'Psy\\CodeCleaner\\FunctionReturnInWriteContextPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/FunctionReturnInWriteContextPass.php',
- 'Psy\\CodeCleaner\\ImplicitReturnPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/ImplicitReturnPass.php',
- 'Psy\\CodeCleaner\\InstanceOfPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/InstanceOfPass.php',
- 'Psy\\CodeCleaner\\LeavePsyshAlonePass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/LeavePsyshAlonePass.php',
- 'Psy\\CodeCleaner\\LegacyEmptyPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/LegacyEmptyPass.php',
- 'Psy\\CodeCleaner\\LoopContextPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/LoopContextPass.php',
- 'Psy\\CodeCleaner\\MagicConstantsPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/MagicConstantsPass.php',
- 'Psy\\CodeCleaner\\NamespaceAwarePass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/NamespaceAwarePass.php',
- 'Psy\\CodeCleaner\\NamespacePass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/NamespacePass.php',
- 'Psy\\CodeCleaner\\NoReturnValue' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/NoReturnValue.php',
- 'Psy\\CodeCleaner\\PassableByReferencePass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/PassableByReferencePass.php',
- 'Psy\\CodeCleaner\\StaticConstructorPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/StaticConstructorPass.php',
- 'Psy\\CodeCleaner\\StrictTypesPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/StrictTypesPass.php',
- 'Psy\\CodeCleaner\\UseStatementPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/UseStatementPass.php',
- 'Psy\\CodeCleaner\\ValidClassNamePass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/ValidClassNamePass.php',
- 'Psy\\CodeCleaner\\ValidConstantPass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/ValidConstantPass.php',
- 'Psy\\CodeCleaner\\ValidFunctionNamePass' => $vendorDir . '/psy/psysh/src/Psy/CodeCleaner/ValidFunctionNamePass.php',
- 'Psy\\Command\\BufferCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/BufferCommand.php',
- 'Psy\\Command\\ClearCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/ClearCommand.php',
- 'Psy\\Command\\Command' => $vendorDir . '/psy/psysh/src/Psy/Command/Command.php',
- 'Psy\\Command\\DocCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/DocCommand.php',
- 'Psy\\Command\\DumpCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/DumpCommand.php',
- 'Psy\\Command\\ExitCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/ExitCommand.php',
- 'Psy\\Command\\HelpCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/HelpCommand.php',
- 'Psy\\Command\\HistoryCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/HistoryCommand.php',
- 'Psy\\Command\\ListCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand.php',
- 'Psy\\Command\\ListCommand\\ClassConstantEnumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/ClassConstantEnumerator.php',
- 'Psy\\Command\\ListCommand\\ClassEnumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/ClassEnumerator.php',
- 'Psy\\Command\\ListCommand\\ConstantEnumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/ConstantEnumerator.php',
- 'Psy\\Command\\ListCommand\\Enumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/Enumerator.php',
- 'Psy\\Command\\ListCommand\\FunctionEnumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/FunctionEnumerator.php',
- 'Psy\\Command\\ListCommand\\GlobalVariableEnumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/GlobalVariableEnumerator.php',
- 'Psy\\Command\\ListCommand\\InterfaceEnumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/InterfaceEnumerator.php',
- 'Psy\\Command\\ListCommand\\MethodEnumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/MethodEnumerator.php',
- 'Psy\\Command\\ListCommand\\PropertyEnumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/PropertyEnumerator.php',
- 'Psy\\Command\\ListCommand\\TraitEnumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/TraitEnumerator.php',
- 'Psy\\Command\\ListCommand\\VariableEnumerator' => $vendorDir . '/psy/psysh/src/Psy/Command/ListCommand/VariableEnumerator.php',
- 'Psy\\Command\\ParseCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/ParseCommand.php',
- 'Psy\\Command\\PsyVersionCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/PsyVersionCommand.php',
- 'Psy\\Command\\ReflectingCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/ReflectingCommand.php',
- 'Psy\\Command\\ShowCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/ShowCommand.php',
- 'Psy\\Command\\SudoCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/SudoCommand.php',
- 'Psy\\Command\\ThrowUpCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/ThrowUpCommand.php',
- 'Psy\\Command\\TraceCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/TraceCommand.php',
- 'Psy\\Command\\WhereamiCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/WhereamiCommand.php',
- 'Psy\\Command\\WtfCommand' => $vendorDir . '/psy/psysh/src/Psy/Command/WtfCommand.php',
- 'Psy\\Compiler' => $vendorDir . '/psy/psysh/src/Psy/Compiler.php',
- 'Psy\\ConfigPaths' => $vendorDir . '/psy/psysh/src/Psy/ConfigPaths.php',
- 'Psy\\Configuration' => $vendorDir . '/psy/psysh/src/Psy/Configuration.php',
- 'Psy\\ConsoleColorFactory' => $vendorDir . '/psy/psysh/src/Psy/ConsoleColorFactory.php',
- 'Psy\\Context' => $vendorDir . '/psy/psysh/src/Psy/Context.php',
- 'Psy\\ContextAware' => $vendorDir . '/psy/psysh/src/Psy/ContextAware.php',
- 'Psy\\Exception\\BreakException' => $vendorDir . '/psy/psysh/src/Psy/Exception/BreakException.php',
- 'Psy\\Exception\\DeprecatedException' => $vendorDir . '/psy/psysh/src/Psy/Exception/DeprecatedException.php',
- 'Psy\\Exception\\ErrorException' => $vendorDir . '/psy/psysh/src/Psy/Exception/ErrorException.php',
- 'Psy\\Exception\\Exception' => $vendorDir . '/psy/psysh/src/Psy/Exception/Exception.php',
- 'Psy\\Exception\\FatalErrorException' => $vendorDir . '/psy/psysh/src/Psy/Exception/FatalErrorException.php',
- 'Psy\\Exception\\ParseErrorException' => $vendorDir . '/psy/psysh/src/Psy/Exception/ParseErrorException.php',
- 'Psy\\Exception\\RuntimeException' => $vendorDir . '/psy/psysh/src/Psy/Exception/RuntimeException.php',
- 'Psy\\Exception\\ThrowUpException' => $vendorDir . '/psy/psysh/src/Psy/Exception/ThrowUpException.php',
- 'Psy\\Exception\\TypeErrorException' => $vendorDir . '/psy/psysh/src/Psy/Exception/TypeErrorException.php',
- 'Psy\\ExecutionLoop\\ForkingLoop' => $vendorDir . '/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php',
- 'Psy\\ExecutionLoop\\Loop' => $vendorDir . '/psy/psysh/src/Psy/ExecutionLoop/Loop.php',
- 'Psy\\Formatter\\CodeFormatter' => $vendorDir . '/psy/psysh/src/Psy/Formatter/CodeFormatter.php',
- 'Psy\\Formatter\\DocblockFormatter' => $vendorDir . '/psy/psysh/src/Psy/Formatter/DocblockFormatter.php',
- 'Psy\\Formatter\\Formatter' => $vendorDir . '/psy/psysh/src/Psy/Formatter/Formatter.php',
- 'Psy\\Formatter\\SignatureFormatter' => $vendorDir . '/psy/psysh/src/Psy/Formatter/SignatureFormatter.php',
- 'Psy\\Input\\CodeArgument' => $vendorDir . '/psy/psysh/src/Psy/Input/CodeArgument.php',
- 'Psy\\Input\\FilterOptions' => $vendorDir . '/psy/psysh/src/Psy/Input/FilterOptions.php',
- 'Psy\\Input\\ShellInput' => $vendorDir . '/psy/psysh/src/Psy/Input/ShellInput.php',
- 'Psy\\Input\\SilentInput' => $vendorDir . '/psy/psysh/src/Psy/Input/SilentInput.php',
- 'Psy\\Output\\OutputPager' => $vendorDir . '/psy/psysh/src/Psy/Output/OutputPager.php',
- 'Psy\\Output\\PassthruPager' => $vendorDir . '/psy/psysh/src/Psy/Output/PassthruPager.php',
- 'Psy\\Output\\ProcOutputPager' => $vendorDir . '/psy/psysh/src/Psy/Output/ProcOutputPager.php',
- 'Psy\\Output\\ShellOutput' => $vendorDir . '/psy/psysh/src/Psy/Output/ShellOutput.php',
- 'Psy\\ParserFactory' => $vendorDir . '/psy/psysh/src/Psy/ParserFactory.php',
- 'Psy\\Readline\\GNUReadline' => $vendorDir . '/psy/psysh/src/Psy/Readline/GNUReadline.php',
- 'Psy\\Readline\\HoaConsole' => $vendorDir . '/psy/psysh/src/Psy/Readline/HoaConsole.php',
- 'Psy\\Readline\\Libedit' => $vendorDir . '/psy/psysh/src/Psy/Readline/Libedit.php',
- 'Psy\\Readline\\Readline' => $vendorDir . '/psy/psysh/src/Psy/Readline/Readline.php',
- 'Psy\\Readline\\Transient' => $vendorDir . '/psy/psysh/src/Psy/Readline/Transient.php',
- 'Psy\\Reflection\\ReflectionConstant' => $vendorDir . '/psy/psysh/src/Psy/Reflection/ReflectionConstant.php',
- 'Psy\\Reflection\\ReflectionLanguageConstruct' => $vendorDir . '/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstruct.php',
- 'Psy\\Reflection\\ReflectionLanguageConstructParameter' => $vendorDir . '/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstructParameter.php',
- 'Psy\\Shell' => $vendorDir . '/psy/psysh/src/Psy/Shell.php',
- 'Psy\\Sudo' => $vendorDir . '/psy/psysh/src/Psy/Sudo.php',
- 'Psy\\Sudo\\SudoVisitor' => $vendorDir . '/psy/psysh/src/Psy/Sudo/SudoVisitor.php',
- 'Psy\\TabCompletion\\AutoCompleter' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/AutoCompleter.php',
- 'Psy\\TabCompletion\\Matcher\\AbstractContextAwareMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractContextAwareMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\AbstractMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ClassAttributesMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/ClassAttributesMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ClassMethodsMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/ClassMethodsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ClassNamesMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/ClassNamesMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\CommandsMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/CommandsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ConstantsMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/ConstantsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\FunctionsMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/FunctionsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\KeywordsMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/KeywordsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\MongoClientMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/MongoClientMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\MongoDatabaseMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ObjectAttributesMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectAttributesMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ObjectMethodsMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectMethodsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\VariablesMatcher' => $vendorDir . '/psy/psysh/src/Psy/TabCompletion/Matcher/VariablesMatcher.php',
- 'Psy\\Util\\Docblock' => $vendorDir . '/psy/psysh/src/Psy/Util/Docblock.php',
- 'Psy\\Util\\Json' => $vendorDir . '/psy/psysh/src/Psy/Util/Json.php',
- 'Psy\\Util\\Mirror' => $vendorDir . '/psy/psysh/src/Psy/Util/Mirror.php',
- 'Psy\\Util\\Str' => $vendorDir . '/psy/psysh/src/Psy/Util/Str.php',
- 'Psy\\VarDumper\\Cloner' => $vendorDir . '/psy/psysh/src/Psy/VarDumper/Cloner.php',
- 'Psy\\VarDumper\\Dumper' => $vendorDir . '/psy/psysh/src/Psy/VarDumper/Dumper.php',
- 'Psy\\VarDumper\\Presenter' => $vendorDir . '/psy/psysh/src/Psy/VarDumper/Presenter.php',
- 'Psy\\VarDumper\\PresenterAware' => $vendorDir . '/psy/psysh/src/Psy/VarDumper/PresenterAware.php',
- 'Psy\\VersionUpdater\\Checker' => $vendorDir . '/psy/psysh/src/Psy/VersionUpdater/Checker.php',
- 'Psy\\VersionUpdater\\GitHubChecker' => $vendorDir . '/psy/psysh/src/Psy/VersionUpdater/GitHubChecker.php',
- 'Psy\\VersionUpdater\\IntervalChecker' => $vendorDir . '/psy/psysh/src/Psy/VersionUpdater/IntervalChecker.php',
- 'Psy\\VersionUpdater\\NoopChecker' => $vendorDir . '/psy/psysh/src/Psy/VersionUpdater/NoopChecker.php',
'React\\Promise\\CancellablePromiseInterface' => $vendorDir . '/react/promise/src/CancellablePromiseInterface.php',
'React\\Promise\\CancellationQueue' => $vendorDir . '/react/promise/src/CancellationQueue.php',
'React\\Promise\\Deferred' => $vendorDir . '/react/promise/src/Deferred.php',
@@ -1821,6 +700,11 @@ return array(
'RemexHtml\\TreeBuilder\\TreeMutationTracer' => $vendorDir . '/wikimedia/remex-html/RemexHtml/TreeBuilder/TreeMutationTracer.php',
'RunningStat\\PSquare' => $vendorDir . '/wikimedia/running-stat/src/PSquare.php',
'RunningStat\\RunningStat' => $vendorDir . '/wikimedia/running-stat/src/RunningStat.php',
+ 'SFS\\ApiSemanticFormsSelect' => $baseDir . '/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelect.php',
+ 'SFS\\ApiSemanticFormsSelectRequestProcessor' => $baseDir . '/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelectRequestProcessor.php',
+ 'SFS\\Output' => $baseDir . '/extensions/SemanticFormsSelect/src/Output.php',
+ 'SFS\\SelectField' => $baseDir . '/extensions/SemanticFormsSelect/src/SelectField.php',
+ 'SFS\\SemanticFormsSelectInput' => $baseDir . '/extensions/SemanticFormsSelect/src/SemanticFormsSelectInput.php',
'SMWCategoryResultPrinter' => $baseDir . '/extensions/SemanticMediaWiki/includes/IdeAliases.php',
'SMWConceptValue' => $baseDir . '/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Concept.php',
'SMWDIBlob' => $baseDir . '/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Blob.php',
@@ -2610,47 +1494,6 @@ return array(
'SMW\\Utils\\Timer' => $baseDir . '/extensions/SemanticMediaWiki/src/Utils/Timer.php',
'SMW\\Utils\\Tokenizer' => $baseDir . '/extensions/SemanticMediaWiki/src/Utils/Tokenizer.php',
'SMW\\WantedPropertiesQueryPage' => $baseDir . '/extensions/SemanticMediaWiki/includes/querypages/WantedPropertiesQueryPage.php',
- 'SebastianBergmann\\Comparator\\ArrayComparator' => $vendorDir . '/sebastian/comparator/src/ArrayComparator.php',
- 'SebastianBergmann\\Comparator\\Comparator' => $vendorDir . '/sebastian/comparator/src/Comparator.php',
- 'SebastianBergmann\\Comparator\\ComparisonFailure' => $vendorDir . '/sebastian/comparator/src/ComparisonFailure.php',
- 'SebastianBergmann\\Comparator\\DOMNodeComparator' => $vendorDir . '/sebastian/comparator/src/DOMNodeComparator.php',
- 'SebastianBergmann\\Comparator\\DateTimeComparator' => $vendorDir . '/sebastian/comparator/src/DateTimeComparator.php',
- 'SebastianBergmann\\Comparator\\DoubleComparator' => $vendorDir . '/sebastian/comparator/src/DoubleComparator.php',
- 'SebastianBergmann\\Comparator\\ExceptionComparator' => $vendorDir . '/sebastian/comparator/src/ExceptionComparator.php',
- 'SebastianBergmann\\Comparator\\Factory' => $vendorDir . '/sebastian/comparator/src/Factory.php',
- 'SebastianBergmann\\Comparator\\MockObjectComparator' => $vendorDir . '/sebastian/comparator/src/MockObjectComparator.php',
- 'SebastianBergmann\\Comparator\\NumericComparator' => $vendorDir . '/sebastian/comparator/src/NumericComparator.php',
- 'SebastianBergmann\\Comparator\\ObjectComparator' => $vendorDir . '/sebastian/comparator/src/ObjectComparator.php',
- 'SebastianBergmann\\Comparator\\ResourceComparator' => $vendorDir . '/sebastian/comparator/src/ResourceComparator.php',
- 'SebastianBergmann\\Comparator\\ScalarComparator' => $vendorDir . '/sebastian/comparator/src/ScalarComparator.php',
- 'SebastianBergmann\\Comparator\\SplObjectStorageComparator' => $vendorDir . '/sebastian/comparator/src/SplObjectStorageComparator.php',
- 'SebastianBergmann\\Comparator\\TypeComparator' => $vendorDir . '/sebastian/comparator/src/TypeComparator.php',
- 'SebastianBergmann\\Diff\\Chunk' => $vendorDir . '/sebastian/diff/src/Chunk.php',
- 'SebastianBergmann\\Diff\\Diff' => $vendorDir . '/sebastian/diff/src/Diff.php',
- 'SebastianBergmann\\Diff\\Differ' => $vendorDir . '/sebastian/diff/src/Differ.php',
- 'SebastianBergmann\\Diff\\LCS\\LongestCommonSubsequence' => $vendorDir . '/sebastian/diff/src/LCS/LongestCommonSubsequence.php',
- 'SebastianBergmann\\Diff\\LCS\\MemoryEfficientImplementation' => $vendorDir . '/sebastian/diff/src/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php',
- 'SebastianBergmann\\Diff\\LCS\\TimeEfficientImplementation' => $vendorDir . '/sebastian/diff/src/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php',
- 'SebastianBergmann\\Diff\\Line' => $vendorDir . '/sebastian/diff/src/Line.php',
- 'SebastianBergmann\\Diff\\Parser' => $vendorDir . '/sebastian/diff/src/Parser.php',
- 'SebastianBergmann\\Environment\\Console' => $vendorDir . '/sebastian/environment/src/Console.php',
- 'SebastianBergmann\\Environment\\Runtime' => $vendorDir . '/sebastian/environment/src/Runtime.php',
- 'SebastianBergmann\\Exporter\\Exporter' => $vendorDir . '/sebastian/exporter/src/Exporter.php',
- 'SebastianBergmann\\GlobalState\\Blacklist' => $vendorDir . '/sebastian/global-state/src/Blacklist.php',
- 'SebastianBergmann\\GlobalState\\CodeExporter' => $vendorDir . '/sebastian/global-state/src/CodeExporter.php',
- 'SebastianBergmann\\GlobalState\\Exception' => $vendorDir . '/sebastian/global-state/src/Exception.php',
- 'SebastianBergmann\\GlobalState\\Restorer' => $vendorDir . '/sebastian/global-state/src/Restorer.php',
- 'SebastianBergmann\\GlobalState\\RuntimeException' => $vendorDir . '/sebastian/global-state/src/RuntimeException.php',
- 'SebastianBergmann\\GlobalState\\Snapshot' => $vendorDir . '/sebastian/global-state/src/Snapshot.php',
- 'SebastianBergmann\\RecursionContext\\Context' => $vendorDir . '/sebastian/recursion-context/src/Context.php',
- 'SebastianBergmann\\RecursionContext\\Exception' => $vendorDir . '/sebastian/recursion-context/src/Exception.php',
- 'SebastianBergmann\\RecursionContext\\InvalidArgumentException' => $vendorDir . '/sebastian/recursion-context/src/InvalidArgumentException.php',
- 'SebastianBergmann\\Version' => $vendorDir . '/sebastian/version/src/Version.php',
- 'Seld\\JsonLint\\DuplicateKeyException' => $vendorDir . '/seld/jsonlint/src/Seld/JsonLint/DuplicateKeyException.php',
- 'Seld\\JsonLint\\JsonParser' => $vendorDir . '/seld/jsonlint/src/Seld/JsonLint/JsonParser.php',
- 'Seld\\JsonLint\\Lexer' => $vendorDir . '/seld/jsonlint/src/Seld/JsonLint/Lexer.php',
- 'Seld\\JsonLint\\ParsingException' => $vendorDir . '/seld/jsonlint/src/Seld/JsonLint/ParsingException.php',
- 'Seld\\JsonLint\\Undefined' => $vendorDir . '/seld/jsonlint/src/Seld/JsonLint/Undefined.php',
'Serializers\\DispatchableSerializer' => $vendorDir . '/serialization/serialization/src/Serializers/DispatchableSerializer.php',
'Serializers\\DispatchingSerializer' => $vendorDir . '/serialization/serialization/src/Serializers/DispatchingSerializer.php',
'Serializers\\Exceptions\\SerializationException' => $vendorDir . '/serialization/serialization/src/Serializers/Exceptions/SerializationException.php',
@@ -2661,6 +1504,8 @@ return array(
'Skins\\Chameleon\\Components\\Cell' => $baseDir . '/skins/chameleon/src/Components/Cell.php',
'Skins\\Chameleon\\Components\\Component' => $baseDir . '/skins/chameleon/src/Components/Component.php',
'Skins\\Chameleon\\Components\\Container' => $baseDir . '/skins/chameleon/src/Components/Container.php',
+ 'Skins\\Chameleon\\Components\\ContentBody' => $baseDir . '/skins/chameleon/src/Components/ContentBody.php',
+ 'Skins\\Chameleon\\Components\\ContentHeader' => $baseDir . '/skins/chameleon/src/Components/ContentHeader.php',
'Skins\\Chameleon\\Components\\FooterIcons' => $baseDir . '/skins/chameleon/src/Components/FooterIcons.php',
'Skins\\Chameleon\\Components\\FooterInfo' => $baseDir . '/skins/chameleon/src/Components/FooterInfo.php',
'Skins\\Chameleon\\Components\\FooterPlaces' => $baseDir . '/skins/chameleon/src/Components/FooterPlaces.php',
@@ -2734,83 +1579,6 @@ return array(
'Skins\\Chameleon\\Tests\\Util\\DocumentElementFinder' => $baseDir . '/skins/chameleon/tests/phpunit/Util/DocumentElementFinder.php',
'Skins\\Chameleon\\Tests\\Util\\MockupFactory' => $baseDir . '/skins/chameleon/tests/phpunit/Util/MockupFactory.php',
'Skins\\Chameleon\\Tests\\Util\\XmlFileProvider' => $baseDir . '/skins/chameleon/tests/phpunit/Util/XmlFileProvider.php',
- 'Symfony\\Component\\Console\\Application' => $vendorDir . '/symfony/console/Application.php',
- 'Symfony\\Component\\Console\\CommandLoader\\CommandLoaderInterface' => $vendorDir . '/symfony/console/CommandLoader/CommandLoaderInterface.php',
- 'Symfony\\Component\\Console\\CommandLoader\\ContainerCommandLoader' => $vendorDir . '/symfony/console/CommandLoader/ContainerCommandLoader.php',
- 'Symfony\\Component\\Console\\CommandLoader\\FactoryCommandLoader' => $vendorDir . '/symfony/console/CommandLoader/FactoryCommandLoader.php',
- 'Symfony\\Component\\Console\\Command\\Command' => $vendorDir . '/symfony/console/Command/Command.php',
- 'Symfony\\Component\\Console\\Command\\HelpCommand' => $vendorDir . '/symfony/console/Command/HelpCommand.php',
- 'Symfony\\Component\\Console\\Command\\ListCommand' => $vendorDir . '/symfony/console/Command/ListCommand.php',
- 'Symfony\\Component\\Console\\Command\\LockableTrait' => $vendorDir . '/symfony/console/Command/LockableTrait.php',
- 'Symfony\\Component\\Console\\ConsoleEvents' => $vendorDir . '/symfony/console/ConsoleEvents.php',
- 'Symfony\\Component\\Console\\DependencyInjection\\AddConsoleCommandPass' => $vendorDir . '/symfony/console/DependencyInjection/AddConsoleCommandPass.php',
- 'Symfony\\Component\\Console\\Descriptor\\ApplicationDescription' => $vendorDir . '/symfony/console/Descriptor/ApplicationDescription.php',
- 'Symfony\\Component\\Console\\Descriptor\\Descriptor' => $vendorDir . '/symfony/console/Descriptor/Descriptor.php',
- 'Symfony\\Component\\Console\\Descriptor\\DescriptorInterface' => $vendorDir . '/symfony/console/Descriptor/DescriptorInterface.php',
- 'Symfony\\Component\\Console\\Descriptor\\JsonDescriptor' => $vendorDir . '/symfony/console/Descriptor/JsonDescriptor.php',
- 'Symfony\\Component\\Console\\Descriptor\\MarkdownDescriptor' => $vendorDir . '/symfony/console/Descriptor/MarkdownDescriptor.php',
- 'Symfony\\Component\\Console\\Descriptor\\TextDescriptor' => $vendorDir . '/symfony/console/Descriptor/TextDescriptor.php',
- 'Symfony\\Component\\Console\\Descriptor\\XmlDescriptor' => $vendorDir . '/symfony/console/Descriptor/XmlDescriptor.php',
- 'Symfony\\Component\\Console\\EventListener\\ErrorListener' => $vendorDir . '/symfony/console/EventListener/ErrorListener.php',
- 'Symfony\\Component\\Console\\Event\\ConsoleCommandEvent' => $vendorDir . '/symfony/console/Event/ConsoleCommandEvent.php',
- 'Symfony\\Component\\Console\\Event\\ConsoleErrorEvent' => $vendorDir . '/symfony/console/Event/ConsoleErrorEvent.php',
- 'Symfony\\Component\\Console\\Event\\ConsoleEvent' => $vendorDir . '/symfony/console/Event/ConsoleEvent.php',
- 'Symfony\\Component\\Console\\Event\\ConsoleExceptionEvent' => $vendorDir . '/symfony/console/Event/ConsoleExceptionEvent.php',
- 'Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent' => $vendorDir . '/symfony/console/Event/ConsoleTerminateEvent.php',
- 'Symfony\\Component\\Console\\Exception\\CommandNotFoundException' => $vendorDir . '/symfony/console/Exception/CommandNotFoundException.php',
- 'Symfony\\Component\\Console\\Exception\\ExceptionInterface' => $vendorDir . '/symfony/console/Exception/ExceptionInterface.php',
- 'Symfony\\Component\\Console\\Exception\\InvalidArgumentException' => $vendorDir . '/symfony/console/Exception/InvalidArgumentException.php',
- 'Symfony\\Component\\Console\\Exception\\InvalidOptionException' => $vendorDir . '/symfony/console/Exception/InvalidOptionException.php',
- 'Symfony\\Component\\Console\\Exception\\LogicException' => $vendorDir . '/symfony/console/Exception/LogicException.php',
- 'Symfony\\Component\\Console\\Exception\\RuntimeException' => $vendorDir . '/symfony/console/Exception/RuntimeException.php',
- 'Symfony\\Component\\Console\\Formatter\\OutputFormatter' => $vendorDir . '/symfony/console/Formatter/OutputFormatter.php',
- 'Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface' => $vendorDir . '/symfony/console/Formatter/OutputFormatterInterface.php',
- 'Symfony\\Component\\Console\\Formatter\\OutputFormatterStyle' => $vendorDir . '/symfony/console/Formatter/OutputFormatterStyle.php',
- 'Symfony\\Component\\Console\\Formatter\\OutputFormatterStyleInterface' => $vendorDir . '/symfony/console/Formatter/OutputFormatterStyleInterface.php',
- 'Symfony\\Component\\Console\\Formatter\\OutputFormatterStyleStack' => $vendorDir . '/symfony/console/Formatter/OutputFormatterStyleStack.php',
- 'Symfony\\Component\\Console\\Helper\\DebugFormatterHelper' => $vendorDir . '/symfony/console/Helper/DebugFormatterHelper.php',
- 'Symfony\\Component\\Console\\Helper\\DescriptorHelper' => $vendorDir . '/symfony/console/Helper/DescriptorHelper.php',
- 'Symfony\\Component\\Console\\Helper\\FormatterHelper' => $vendorDir . '/symfony/console/Helper/FormatterHelper.php',
- 'Symfony\\Component\\Console\\Helper\\Helper' => $vendorDir . '/symfony/console/Helper/Helper.php',
- 'Symfony\\Component\\Console\\Helper\\HelperInterface' => $vendorDir . '/symfony/console/Helper/HelperInterface.php',
- 'Symfony\\Component\\Console\\Helper\\HelperSet' => $vendorDir . '/symfony/console/Helper/HelperSet.php',
- 'Symfony\\Component\\Console\\Helper\\InputAwareHelper' => $vendorDir . '/symfony/console/Helper/InputAwareHelper.php',
- 'Symfony\\Component\\Console\\Helper\\ProcessHelper' => $vendorDir . '/symfony/console/Helper/ProcessHelper.php',
- 'Symfony\\Component\\Console\\Helper\\ProgressBar' => $vendorDir . '/symfony/console/Helper/ProgressBar.php',
- 'Symfony\\Component\\Console\\Helper\\ProgressIndicator' => $vendorDir . '/symfony/console/Helper/ProgressIndicator.php',
- 'Symfony\\Component\\Console\\Helper\\QuestionHelper' => $vendorDir . '/symfony/console/Helper/QuestionHelper.php',
- 'Symfony\\Component\\Console\\Helper\\SymfonyQuestionHelper' => $vendorDir . '/symfony/console/Helper/SymfonyQuestionHelper.php',
- 'Symfony\\Component\\Console\\Helper\\Table' => $vendorDir . '/symfony/console/Helper/Table.php',
- 'Symfony\\Component\\Console\\Helper\\TableCell' => $vendorDir . '/symfony/console/Helper/TableCell.php',
- 'Symfony\\Component\\Console\\Helper\\TableSeparator' => $vendorDir . '/symfony/console/Helper/TableSeparator.php',
- 'Symfony\\Component\\Console\\Helper\\TableStyle' => $vendorDir . '/symfony/console/Helper/TableStyle.php',
- 'Symfony\\Component\\Console\\Input\\ArgvInput' => $vendorDir . '/symfony/console/Input/ArgvInput.php',
- 'Symfony\\Component\\Console\\Input\\ArrayInput' => $vendorDir . '/symfony/console/Input/ArrayInput.php',
- 'Symfony\\Component\\Console\\Input\\Input' => $vendorDir . '/symfony/console/Input/Input.php',
- 'Symfony\\Component\\Console\\Input\\InputArgument' => $vendorDir . '/symfony/console/Input/InputArgument.php',
- 'Symfony\\Component\\Console\\Input\\InputAwareInterface' => $vendorDir . '/symfony/console/Input/InputAwareInterface.php',
- 'Symfony\\Component\\Console\\Input\\InputDefinition' => $vendorDir . '/symfony/console/Input/InputDefinition.php',
- 'Symfony\\Component\\Console\\Input\\InputInterface' => $vendorDir . '/symfony/console/Input/InputInterface.php',
- 'Symfony\\Component\\Console\\Input\\InputOption' => $vendorDir . '/symfony/console/Input/InputOption.php',
- 'Symfony\\Component\\Console\\Input\\StreamableInputInterface' => $vendorDir . '/symfony/console/Input/StreamableInputInterface.php',
- 'Symfony\\Component\\Console\\Input\\StringInput' => $vendorDir . '/symfony/console/Input/StringInput.php',
- 'Symfony\\Component\\Console\\Logger\\ConsoleLogger' => $vendorDir . '/symfony/console/Logger/ConsoleLogger.php',
- 'Symfony\\Component\\Console\\Output\\BufferedOutput' => $vendorDir . '/symfony/console/Output/BufferedOutput.php',
- 'Symfony\\Component\\Console\\Output\\ConsoleOutput' => $vendorDir . '/symfony/console/Output/ConsoleOutput.php',
- 'Symfony\\Component\\Console\\Output\\ConsoleOutputInterface' => $vendorDir . '/symfony/console/Output/ConsoleOutputInterface.php',
- 'Symfony\\Component\\Console\\Output\\NullOutput' => $vendorDir . '/symfony/console/Output/NullOutput.php',
- 'Symfony\\Component\\Console\\Output\\Output' => $vendorDir . '/symfony/console/Output/Output.php',
- 'Symfony\\Component\\Console\\Output\\OutputInterface' => $vendorDir . '/symfony/console/Output/OutputInterface.php',
- 'Symfony\\Component\\Console\\Output\\StreamOutput' => $vendorDir . '/symfony/console/Output/StreamOutput.php',
- 'Symfony\\Component\\Console\\Question\\ChoiceQuestion' => $vendorDir . '/symfony/console/Question/ChoiceQuestion.php',
- 'Symfony\\Component\\Console\\Question\\ConfirmationQuestion' => $vendorDir . '/symfony/console/Question/ConfirmationQuestion.php',
- 'Symfony\\Component\\Console\\Question\\Question' => $vendorDir . '/symfony/console/Question/Question.php',
- 'Symfony\\Component\\Console\\Style\\OutputStyle' => $vendorDir . '/symfony/console/Style/OutputStyle.php',
- 'Symfony\\Component\\Console\\Style\\StyleInterface' => $vendorDir . '/symfony/console/Style/StyleInterface.php',
- 'Symfony\\Component\\Console\\Style\\SymfonyStyle' => $vendorDir . '/symfony/console/Style/SymfonyStyle.php',
- 'Symfony\\Component\\Console\\Terminal' => $vendorDir . '/symfony/console/Terminal.php',
- 'Symfony\\Component\\Console\\Tester\\ApplicationTester' => $vendorDir . '/symfony/console/Tester/ApplicationTester.php',
- 'Symfony\\Component\\Console\\Tester\\CommandTester' => $vendorDir . '/symfony/console/Tester/CommandTester.php',
'Symfony\\Component\\CssSelector\\CssSelectorConverter' => $vendorDir . '/symfony/css-selector/CssSelectorConverter.php',
'Symfony\\Component\\CssSelector\\Exception\\ExceptionInterface' => $vendorDir . '/symfony/css-selector/Exception/ExceptionInterface.php',
'Symfony\\Component\\CssSelector\\Exception\\ExpressionErrorException' => $vendorDir . '/symfony/css-selector/Exception/ExpressionErrorException.php',
@@ -2859,80 +1627,7 @@ return array(
'Symfony\\Component\\CssSelector\\XPath\\Translator' => $vendorDir . '/symfony/css-selector/XPath/Translator.php',
'Symfony\\Component\\CssSelector\\XPath\\TranslatorInterface' => $vendorDir . '/symfony/css-selector/XPath/TranslatorInterface.php',
'Symfony\\Component\\CssSelector\\XPath\\XPathExpr' => $vendorDir . '/symfony/css-selector/XPath/XPathExpr.php',
- 'Symfony\\Component\\Debug\\BufferingLogger' => $vendorDir . '/symfony/debug/BufferingLogger.php',
- 'Symfony\\Component\\Debug\\Debug' => $vendorDir . '/symfony/debug/Debug.php',
- 'Symfony\\Component\\Debug\\DebugClassLoader' => $vendorDir . '/symfony/debug/DebugClassLoader.php',
- 'Symfony\\Component\\Debug\\ErrorHandler' => $vendorDir . '/symfony/debug/ErrorHandler.php',
- 'Symfony\\Component\\Debug\\ExceptionHandler' => $vendorDir . '/symfony/debug/ExceptionHandler.php',
- 'Symfony\\Component\\Debug\\Exception\\ClassNotFoundException' => $vendorDir . '/symfony/debug/Exception/ClassNotFoundException.php',
- 'Symfony\\Component\\Debug\\Exception\\ContextErrorException' => $vendorDir . '/symfony/debug/Exception/ContextErrorException.php',
- 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' => $vendorDir . '/symfony/debug/Exception/FatalErrorException.php',
- 'Symfony\\Component\\Debug\\Exception\\FatalThrowableError' => $vendorDir . '/symfony/debug/Exception/FatalThrowableError.php',
- 'Symfony\\Component\\Debug\\Exception\\FlattenException' => $vendorDir . '/symfony/debug/Exception/FlattenException.php',
- 'Symfony\\Component\\Debug\\Exception\\OutOfMemoryException' => $vendorDir . '/symfony/debug/Exception/OutOfMemoryException.php',
- 'Symfony\\Component\\Debug\\Exception\\SilencedErrorContext' => $vendorDir . '/symfony/debug/Exception/SilencedErrorContext.php',
- 'Symfony\\Component\\Debug\\Exception\\UndefinedFunctionException' => $vendorDir . '/symfony/debug/Exception/UndefinedFunctionException.php',
- 'Symfony\\Component\\Debug\\Exception\\UndefinedMethodException' => $vendorDir . '/symfony/debug/Exception/UndefinedMethodException.php',
- 'Symfony\\Component\\Debug\\FatalErrorHandler\\ClassNotFoundFatalErrorHandler' => $vendorDir . '/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php',
- 'Symfony\\Component\\Debug\\FatalErrorHandler\\FatalErrorHandlerInterface' => $vendorDir . '/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.php',
- 'Symfony\\Component\\Debug\\FatalErrorHandler\\UndefinedFunctionFatalErrorHandler' => $vendorDir . '/symfony/debug/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php',
- 'Symfony\\Component\\Debug\\FatalErrorHandler\\UndefinedMethodFatalErrorHandler' => $vendorDir . '/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php',
- 'Symfony\\Component\\VarDumper\\Caster\\AmqpCaster' => $vendorDir . '/symfony/var-dumper/Caster/AmqpCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ArgsStub' => $vendorDir . '/symfony/var-dumper/Caster/ArgsStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\Caster' => $vendorDir . '/symfony/var-dumper/Caster/Caster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ClassStub' => $vendorDir . '/symfony/var-dumper/Caster/ClassStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' => $vendorDir . '/symfony/var-dumper/Caster/ConstStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\CutArrayStub' => $vendorDir . '/symfony/var-dumper/Caster/CutArrayStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\CutStub' => $vendorDir . '/symfony/var-dumper/Caster/CutStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\DOMCaster' => $vendorDir . '/symfony/var-dumper/Caster/DOMCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\DateCaster' => $vendorDir . '/symfony/var-dumper/Caster/DateCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\DoctrineCaster' => $vendorDir . '/symfony/var-dumper/Caster/DoctrineCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\EnumStub' => $vendorDir . '/symfony/var-dumper/Caster/EnumStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ExceptionCaster' => $vendorDir . '/symfony/var-dumper/Caster/ExceptionCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\FrameStub' => $vendorDir . '/symfony/var-dumper/Caster/FrameStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\LinkStub' => $vendorDir . '/symfony/var-dumper/Caster/LinkStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\MongoCaster' => $vendorDir . '/symfony/var-dumper/Caster/MongoCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\PdoCaster' => $vendorDir . '/symfony/var-dumper/Caster/PdoCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\PgSqlCaster' => $vendorDir . '/symfony/var-dumper/Caster/PgSqlCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\RedisCaster' => $vendorDir . '/symfony/var-dumper/Caster/RedisCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ReflectionCaster' => $vendorDir . '/symfony/var-dumper/Caster/ReflectionCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ResourceCaster' => $vendorDir . '/symfony/var-dumper/Caster/ResourceCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\SplCaster' => $vendorDir . '/symfony/var-dumper/Caster/SplCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\StubCaster' => $vendorDir . '/symfony/var-dumper/Caster/StubCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\SymfonyCaster' => $vendorDir . '/symfony/var-dumper/Caster/SymfonyCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\TraceStub' => $vendorDir . '/symfony/var-dumper/Caster/TraceStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\XmlReaderCaster' => $vendorDir . '/symfony/var-dumper/Caster/XmlReaderCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\XmlResourceCaster' => $vendorDir . '/symfony/var-dumper/Caster/XmlResourceCaster.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\AbstractCloner' => $vendorDir . '/symfony/var-dumper/Cloner/AbstractCloner.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface' => $vendorDir . '/symfony/var-dumper/Cloner/ClonerInterface.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\Cursor' => $vendorDir . '/symfony/var-dumper/Cloner/Cursor.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\Data' => $vendorDir . '/symfony/var-dumper/Cloner/Data.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\DumperInterface' => $vendorDir . '/symfony/var-dumper/Cloner/DumperInterface.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\Stub' => $vendorDir . '/symfony/var-dumper/Cloner/Stub.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\VarCloner' => $vendorDir . '/symfony/var-dumper/Cloner/VarCloner.php',
- 'Symfony\\Component\\VarDumper\\Dumper\\AbstractDumper' => $vendorDir . '/symfony/var-dumper/Dumper/AbstractDumper.php',
- 'Symfony\\Component\\VarDumper\\Dumper\\CliDumper' => $vendorDir . '/symfony/var-dumper/Dumper/CliDumper.php',
- 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' => $vendorDir . '/symfony/var-dumper/Dumper/DataDumperInterface.php',
- 'Symfony\\Component\\VarDumper\\Dumper\\HtmlDumper' => $vendorDir . '/symfony/var-dumper/Dumper/HtmlDumper.php',
- 'Symfony\\Component\\VarDumper\\Exception\\ThrowingCasterException' => $vendorDir . '/symfony/var-dumper/Exception/ThrowingCasterException.php',
- 'Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait' => $vendorDir . '/symfony/var-dumper/Test/VarDumperTestTrait.php',
- 'Symfony\\Component\\VarDumper\\VarDumper' => $vendorDir . '/symfony/var-dumper/VarDumper.php',
- 'Symfony\\Component\\Yaml\\Command\\LintCommand' => $vendorDir . '/symfony/yaml/Command/LintCommand.php',
- 'Symfony\\Component\\Yaml\\Dumper' => $vendorDir . '/symfony/yaml/Dumper.php',
- 'Symfony\\Component\\Yaml\\Escaper' => $vendorDir . '/symfony/yaml/Escaper.php',
- 'Symfony\\Component\\Yaml\\Exception\\DumpException' => $vendorDir . '/symfony/yaml/Exception/DumpException.php',
- 'Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' => $vendorDir . '/symfony/yaml/Exception/ExceptionInterface.php',
- 'Symfony\\Component\\Yaml\\Exception\\ParseException' => $vendorDir . '/symfony/yaml/Exception/ParseException.php',
- 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' => $vendorDir . '/symfony/yaml/Exception/RuntimeException.php',
- 'Symfony\\Component\\Yaml\\Inline' => $vendorDir . '/symfony/yaml/Inline.php',
- 'Symfony\\Component\\Yaml\\Parser' => $vendorDir . '/symfony/yaml/Parser.php',
- 'Symfony\\Component\\Yaml\\Tag\\TaggedValue' => $vendorDir . '/symfony/yaml/Tag/TaggedValue.php',
- 'Symfony\\Component\\Yaml\\Unescaper' => $vendorDir . '/symfony/yaml/Unescaper.php',
- 'Symfony\\Component\\Yaml\\Yaml' => $vendorDir . '/symfony/yaml/Yaml.php',
- 'Symfony\\Polyfill\\Ctype\\Ctype' => $vendorDir . '/symfony/polyfill-ctype/Ctype.php',
- 'Symfony\\Polyfill\\Mbstring\\Mbstring' => $vendorDir . '/symfony/polyfill-mbstring/Mbstring.php',
'TextCat' => $vendorDir . '/wikimedia/textcat/TextCat.php',
- 'Text_Template' => $vendorDir . '/phpunit/php-text-template/src/Template.php',
'UtfNormal\\Constants' => $vendorDir . '/wikimedia/utfnormal/src/Constants.php',
'UtfNormal\\Utils' => $vendorDir . '/wikimedia/utfnormal/src/Util.php',
'UtfNormal\\Validator' => $vendorDir . '/wikimedia/utfnormal/src/Validator.php',
@@ -2974,18 +1669,6 @@ return array(
'ValueValidators\\TitleValidator' => $vendorDir . '/data-values/validators/src/TitleValidator.php',
'ValueValidators\\ValueValidator' => $vendorDir . '/data-values/interfaces/src/ValueValidators/ValueValidator.php',
'ValueValidators\\ValueValidatorObject' => $vendorDir . '/data-values/interfaces/src/ValueValidators/ValueValidatorObject.php',
- 'WMDE\\HamcrestHtml\\AttributeMatcher' => $vendorDir . '/wmde/hamcrest-html-matchers/src/AttributeMatcher.php',
- 'WMDE\\HamcrestHtml\\ChildElementMatcher' => $vendorDir . '/wmde/hamcrest-html-matchers/src/ChildElementMatcher.php',
- 'WMDE\\HamcrestHtml\\ClassMatcher' => $vendorDir . '/wmde/hamcrest-html-matchers/src/ClassMatcher.php',
- 'WMDE\\HamcrestHtml\\ComplexTagMatcher' => $vendorDir . '/wmde/hamcrest-html-matchers/src/ComplexTagMatcher.php',
- 'WMDE\\HamcrestHtml\\DirectChildElementMatcher' => $vendorDir . '/wmde/hamcrest-html-matchers/src/DirectChildElementMatcher.php',
- 'WMDE\\HamcrestHtml\\HtmlMatcher' => $vendorDir . '/wmde/hamcrest-html-matchers/src/HtmlMatcher.php',
- 'WMDE\\HamcrestHtml\\RootElementMatcher' => $vendorDir . '/wmde/hamcrest-html-matchers/src/RootElementMatcher.php',
- 'WMDE\\HamcrestHtml\\TagMatcher' => $vendorDir . '/wmde/hamcrest-html-matchers/src/TagMatcher.php',
- 'WMDE\\HamcrestHtml\\TagNameMatcher' => $vendorDir . '/wmde/hamcrest-html-matchers/src/TagNameMatcher.php',
- 'WMDE\\HamcrestHtml\\TextContentsMatcher' => $vendorDir . '/wmde/hamcrest-html-matchers/src/TextContentsMatcher.php',
- 'WMDE\\HamcrestHtml\\XmlNodeRecursiveIterator' => $vendorDir . '/wmde/hamcrest-html-matchers/src/XmlNodeRecursiveIterator.php',
- 'Webmozart\\Assert\\Assert' => $vendorDir . '/webmozart/assert/src/Assert.php',
'Wikimedia\\Assert\\Assert' => $vendorDir . '/wikimedia/assert/src/Assert.php',
'Wikimedia\\Assert\\AssertionException' => $vendorDir . '/wikimedia/assert/src/AssertionException.php',
'Wikimedia\\Assert\\InvariantException' => $vendorDir . '/wikimedia/assert/src/InvariantException.php',
@@ -3022,80 +1705,10 @@ return array(
'Wikimedia\\Purtle\\UnicodeEscaper' => $vendorDir . '/wikimedia/purtle/src/UnicodeEscaper.php',
'Wikimedia\\Purtle\\XmlRdfWriter' => $vendorDir . '/wikimedia/purtle/src/XmlRdfWriter.php',
'Wikimedia\\ScopedCallback' => $vendorDir . '/wikimedia/scoped-callback/src/ScopedCallback.php',
- 'Wikimedia\\TestingAccessWrapper' => $vendorDir . '/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php',
'Wikimedia\\Timestamp\\ConvertibleTimestamp' => $vendorDir . '/wikimedia/timestamp/src/ConvertibleTimestamp.php',
'Wikimedia\\Timestamp\\TimestampException' => $vendorDir . '/wikimedia/timestamp/src/TimestampException.php',
'Wikimedia\\WaitConditionLoop' => $vendorDir . '/wikimedia/wait-condition-loop/src/WaitConditionLoop.php',
'WrappedString\\WrappedString' => $vendorDir . '/wikimedia/wrappedstring/src/WrappedString.php',
'WrappedString\\WrappedStringList' => $vendorDir . '/wikimedia/wrappedstring/src/WrappedStringList.php',
- 'XdgBaseDir\\Xdg' => $vendorDir . '/dnoegel/php-xdg-base-dir/src/Xdg.php',
'lessc' => $vendorDir . '/oyejorge/less.php/lessc.inc.php',
- 'phpDocumentor\\Reflection\\DocBlock' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock.php',
- 'phpDocumentor\\Reflection\\DocBlockFactory' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlockFactory.php',
- 'phpDocumentor\\Reflection\\DocBlockFactoryInterface' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlockFactoryInterface.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Description' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Description.php',
- 'phpDocumentor\\Reflection\\DocBlock\\DescriptionFactory' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/DescriptionFactory.php',
- 'phpDocumentor\\Reflection\\DocBlock\\ExampleFinder' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/ExampleFinder.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Serializer' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Serializer.php',
- 'phpDocumentor\\Reflection\\DocBlock\\StandardTagFactory' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/StandardTagFactory.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tag' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tag.php',
- 'phpDocumentor\\Reflection\\DocBlock\\TagFactory' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/TagFactory.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Author' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Author.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\BaseTag' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/BaseTag.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Covers' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Covers.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Deprecated' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Deprecated.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Example' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Example.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Factory\\StaticMethod' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Factory\\Strategy' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/Strategy.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Formatter' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Formatter\\AlignFormatter' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/AlignFormatter.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Formatter\\PassthroughFormatter' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/PassthroughFormatter.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Generic' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Generic.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Link' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Method' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Param' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Param.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Property' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\PropertyRead' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\PropertyWrite' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyWrite.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Reference\\Fqsen' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Fqsen.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Reference\\Reference' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Reference.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Reference\\Url' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Url.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Return_' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\See' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/See.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Since' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Since.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Source' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Source.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Throws' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Throws.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Uses' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Uses.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Var_' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Var_.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Version' => $vendorDir . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Version.php',
- 'phpDocumentor\\Reflection\\Element' => $vendorDir . '/phpdocumentor/reflection-common/src/Element.php',
- 'phpDocumentor\\Reflection\\File' => $vendorDir . '/phpdocumentor/reflection-common/src/File.php',
- 'phpDocumentor\\Reflection\\Fqsen' => $vendorDir . '/phpdocumentor/reflection-common/src/Fqsen.php',
- 'phpDocumentor\\Reflection\\FqsenResolver' => $vendorDir . '/phpdocumentor/type-resolver/src/FqsenResolver.php',
- 'phpDocumentor\\Reflection\\Location' => $vendorDir . '/phpdocumentor/reflection-common/src/Location.php',
- 'phpDocumentor\\Reflection\\Project' => $vendorDir . '/phpdocumentor/reflection-common/src/Project.php',
- 'phpDocumentor\\Reflection\\ProjectFactory' => $vendorDir . '/phpdocumentor/reflection-common/src/ProjectFactory.php',
- 'phpDocumentor\\Reflection\\Type' => $vendorDir . '/phpdocumentor/type-resolver/src/Type.php',
- 'phpDocumentor\\Reflection\\TypeResolver' => $vendorDir . '/phpdocumentor/type-resolver/src/TypeResolver.php',
- 'phpDocumentor\\Reflection\\Types\\Array_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Array_.php',
- 'phpDocumentor\\Reflection\\Types\\Boolean' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Boolean.php',
- 'phpDocumentor\\Reflection\\Types\\Callable_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Callable_.php',
- 'phpDocumentor\\Reflection\\Types\\Compound' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Compound.php',
- 'phpDocumentor\\Reflection\\Types\\Context' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Context.php',
- 'phpDocumentor\\Reflection\\Types\\ContextFactory' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/ContextFactory.php',
- 'phpDocumentor\\Reflection\\Types\\Float_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Float_.php',
- 'phpDocumentor\\Reflection\\Types\\Integer' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Integer.php',
- 'phpDocumentor\\Reflection\\Types\\Iterable_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Iterable_.php',
- 'phpDocumentor\\Reflection\\Types\\Mixed_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Mixed_.php',
- 'phpDocumentor\\Reflection\\Types\\Null_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Null_.php',
- 'phpDocumentor\\Reflection\\Types\\Nullable' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Nullable.php',
- 'phpDocumentor\\Reflection\\Types\\Object_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Object_.php',
- 'phpDocumentor\\Reflection\\Types\\Parent_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Parent_.php',
- 'phpDocumentor\\Reflection\\Types\\Resource_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Resource_.php',
- 'phpDocumentor\\Reflection\\Types\\Scalar' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Scalar.php',
- 'phpDocumentor\\Reflection\\Types\\Self_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Self_.php',
- 'phpDocumentor\\Reflection\\Types\\Static_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Static_.php',
- 'phpDocumentor\\Reflection\\Types\\String_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/String_.php',
- 'phpDocumentor\\Reflection\\Types\\This' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/This.php',
- 'phpDocumentor\\Reflection\\Types\\Void_' => $vendorDir . '/phpdocumentor/type-resolver/src/Types/Void_.php',
);
diff --git a/www/wiki/vendor/composer/autoload_files.php b/www/wiki/vendor/composer/autoload_files.php
index ea97198c..892063f5 100644
--- a/www/wiki/vendor/composer/autoload_files.php
+++ b/www/wiki/vendor/composer/autoload_files.php
@@ -6,27 +6,21 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
- '320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
- '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
'd1715cacc3c23b16a030645514266a76' => $vendorDir . '/data-values/interfaces/Interfaces.php',
'7cb394c3af2b1ae832979b0368e0da62' => $vendorDir . '/data-values/data-values/DataValues.php',
'90559502573a0d473dc66fde5c0ff7e2' => $vendorDir . '/data-values/common/Common.php',
'af3cc937b8a54e5b4209c82d6cfe8889' => $vendorDir . '/param-processor/param-processor/DefaultConfig.php',
'ad155f8f1cf0d418fe49e248db8c661b' => $vendorDir . '/react/promise/src/functions_include.php',
- 'a24b5daa493ecb5e767c7d1592a8da36' => $vendorDir . '/mediawiki/at-ease/src/Functions.php',
'f4c767faab43077fd89ff7cf99ffb4b8' => $vendorDir . '/serialization/serialization/Serialization.php',
'5a04c63399fef01344b45823e301d04d' => $vendorDir . '/onoi/shared-resources/Resources.php',
'94e265ce14c952a920a4ea5f7e8e9baa' => $vendorDir . '/mediawiki/parser-hooks/ParserHooks.php',
+ 'a24b5daa493ecb5e767c7d1592a8da36' => $vendorDir . '/mediawiki/at-ease/src/Functions.php',
+ 'cd9b6b6b76aed1304a64986142337d3a' => $baseDir . '/extensions/SemanticMediaWiki/SemanticMediaWiki.php',
'909f49809564e82b2d61096b70b21283' => $baseDir . '/extensions/Bootstrap/Bootstrap.php',
- '667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php',
'c3f7f0e81464740a933532e81fa26cc7' => $vendorDir . '/wikimedia/base-convert/src/Functions.php',
'd55c27a601de788b19a09b7d057d07ae' => $vendorDir . '/wikimedia/relpath/src/RelPath.php',
'c50606d667a3fde2b80a955639479d3d' => $vendorDir . '/wikimedia/timestamp/src/defines.php',
'd5ece1612187536cca0f0d445ce68f45' => $baseDir . '/skins/chameleon/Chameleon.php',
'cb42de33506561e6b5fe72b72238a9a0' => $baseDir . '/skins/chameleon/src/SkinChameleon.php',
- 'cd9b6b6b76aed1304a64986142337d3a' => $baseDir . '/extensions/SemanticMediaWiki/SemanticMediaWiki.php',
- 'e7223560d890eab89cda23685e711e2c' => $vendorDir . '/psy/psysh/src/Psy/functions.php',
'38db717deddb215de53e36c2c0bc9e7e' => $baseDir . '/includes/compat/Timestamp.php',
- '6e34e14285f2ef7d187014f2888f15e2' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest.php',
- '228bb15c3eaa7fe8028741119398e3a1' => $vendorDir . '/wmde/hamcrest-html-matchers/src/functions.php',
);
diff --git a/www/wiki/vendor/composer/autoload_namespaces.php b/www/wiki/vendor/composer/autoload_namespaces.php
index a831ab91..454fd488 100644
--- a/www/wiki/vendor/composer/autoload_namespaces.php
+++ b/www/wiki/vendor/composer/autoload_namespaces.php
@@ -7,11 +7,8 @@ $baseDir = dirname($vendorDir);
return array(
'TextCat' => array($vendorDir . '/wikimedia/textcat'),
- 'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src'),
'Liuggio' => array($vendorDir . '/liuggio/statsd-php-client/src'),
'Less' => array($vendorDir . '/oyejorge/less.php/lib'),
- 'Kafka\\' => array($vendorDir . '/nmred/kafka-php/src'),
- 'JakubOnderka\\PhpConsoleHighlighter' => array($vendorDir . '/jakub-onderka/php-console-highlighter/src'),
'ComposerVendorHtaccessCreator' => array($baseDir . '/includes/composer'),
'ComposerHookHandler' => array($baseDir . '/includes/composer'),
'' => array($vendorDir . '/cssjanus/cssjanus/src'),
diff --git a/www/wiki/vendor/composer/autoload_psr4.php b/www/wiki/vendor/composer/autoload_psr4.php
index b3a9bda2..850191a4 100644
--- a/www/wiki/vendor/composer/autoload_psr4.php
+++ b/www/wiki/vendor/composer/autoload_psr4.php
@@ -6,37 +6,25 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
- 'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/type-resolver/src', $vendorDir . '/phpdocumentor/reflection-docblock/src'),
- 'XdgBaseDir\\' => array($vendorDir . '/dnoegel/php-xdg-base-dir/src'),
'WrappedString\\' => array($vendorDir . '/wikimedia/wrappedstring/src'),
'Wikimedia\\Purtle\\Tests\\' => array($vendorDir . '/wikimedia/purtle/tests/phpunit'),
'Wikimedia\\Purtle\\' => array($vendorDir . '/wikimedia/purtle/src'),
'Wikimedia\\Composer\\' => array($vendorDir . '/wikimedia/composer-merge-plugin/src'),
'Wikimedia\\Assert\\Test\\' => array($vendorDir . '/wikimedia/assert/tests/phpunit'),
'Wikimedia\\Assert\\' => array($vendorDir . '/wikimedia/assert/src'),
- 'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
- 'WMDE\\HamcrestHtml\\' => array($vendorDir . '/wmde/hamcrest-html-matchers/src'),
'ValueValidators\\' => array($vendorDir . '/data-values/interfaces/src/ValueValidators', $vendorDir . '/data-values/validators/src'),
'ValueParsers\\' => array($vendorDir . '/data-values/interfaces/src/ValueParsers', $vendorDir . '/data-values/common/src/ValueParsers'),
'ValueFormatters\\' => array($vendorDir . '/data-values/interfaces/src/ValueFormatters', $vendorDir . '/data-values/common/src/ValueFormatters'),
- 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
- 'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
- 'Symfony\\Component\\Yaml\\' => array($vendorDir . '/symfony/yaml'),
- 'Symfony\\Component\\VarDumper\\' => array($vendorDir . '/symfony/var-dumper'),
- 'Symfony\\Component\\Debug\\' => array($vendorDir . '/symfony/debug'),
'Symfony\\Component\\CssSelector\\' => array($vendorDir . '/symfony/css-selector'),
- 'Symfony\\Component\\Console\\' => array($vendorDir . '/symfony/console'),
'Skins\\Chameleon\\Tests\\' => array($baseDir . '/skins/chameleon/tests/phpunit'),
'Skins\\Chameleon\\' => array($baseDir . '/skins/chameleon/src'),
'Serializers\\' => array($vendorDir . '/serialization/serialization/src/Serializers'),
- 'Seld\\JsonLint\\' => array($vendorDir . '/seld/jsonlint/src/Seld/JsonLint'),
'SMW\\Maintenance\\' => array($baseDir . '/extensions/SemanticMediaWiki/maintenance'),
'SMW\\' => array($baseDir . '/extensions/SemanticMediaWiki/src'),
+ 'SFS\\' => array($baseDir . '/extensions/SemanticFormsSelect/src'),
'RemexHtml\\' => array($vendorDir . '/wikimedia/remex-html/RemexHtml'),
'React\\Promise\\' => array($vendorDir . '/react/promise/src'),
- 'Psy\\' => array($vendorDir . '/psy/psysh/src/Psy'),
'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
- 'PhpParser\\' => array($vendorDir . '/nikic/php-parser/lib/PhpParser'),
'ParserHooks\\' => array($vendorDir . '/mediawiki/parser-hooks/src'),
'ParamProcessor\\' => array($vendorDir . '/param-processor/param-processor/src'),
'Onoi\\Tesa\\' => array($vendorDir . '/onoi/tesa/src'),
@@ -46,16 +34,11 @@ return array(
'Onoi\\CallbackContainer\\' => array($vendorDir . '/onoi/callback-container/src'),
'Onoi\\Cache\\' => array($vendorDir . '/onoi/cache/src'),
'Onoi\\BlobStore\\' => array($vendorDir . '/onoi/blob-store/src'),
- 'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
- 'JsonSchema\\' => array($vendorDir . '/justinrainbow/json-schema/src/JsonSchema'),
- 'JakubOnderka\\PhpConsoleColor\\' => array($vendorDir . '/jakub-onderka/php-console-color/src'),
'GuzzleHttp\\Stream\\' => array($vendorDir . '/guzzlehttp/streams/src'),
'GuzzleHttp\\Ring\\' => array($vendorDir . '/guzzlehttp/ringphp/src'),
'Elasticsearch\\' => array($vendorDir . '/elasticsearch/elasticsearch/src/Elasticsearch'),
- 'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
'Deserializers\\' => array($vendorDir . '/serialization/serialization/src/Deserializers'),
'DataValues\\' => array($vendorDir . '/data-values/data-values/src/DataValues', $vendorDir . '/data-values/common/src/DataValues'),
- 'Composer\\Spdx\\' => array($vendorDir . '/composer/spdx-licenses/src'),
'Composer\\Semver\\' => array($vendorDir . '/composer/semver/src'),
'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
'CLDRPluralRuleParser\\' => array($vendorDir . '/wikimedia/cldr-plural-rule-parser/src'),
diff --git a/www/wiki/vendor/composer/autoload_static.php b/www/wiki/vendor/composer/autoload_static.php
index 5119228a..d2b7c41b 100644
--- a/www/wiki/vendor/composer/autoload_static.php
+++ b/www/wiki/vendor/composer/autoload_static.php
@@ -7,40 +7,26 @@ namespace Composer\Autoload;
class ComposerStaticInit_mediawiki_vendor
{
public static $files = array (
- '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
- '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
'd1715cacc3c23b16a030645514266a76' => __DIR__ . '/..' . '/data-values/interfaces/Interfaces.php',
'7cb394c3af2b1ae832979b0368e0da62' => __DIR__ . '/..' . '/data-values/data-values/DataValues.php',
'90559502573a0d473dc66fde5c0ff7e2' => __DIR__ . '/..' . '/data-values/common/Common.php',
'af3cc937b8a54e5b4209c82d6cfe8889' => __DIR__ . '/..' . '/param-processor/param-processor/DefaultConfig.php',
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
- 'a24b5daa493ecb5e767c7d1592a8da36' => __DIR__ . '/..' . '/mediawiki/at-ease/src/Functions.php',
'f4c767faab43077fd89ff7cf99ffb4b8' => __DIR__ . '/..' . '/serialization/serialization/Serialization.php',
'5a04c63399fef01344b45823e301d04d' => __DIR__ . '/..' . '/onoi/shared-resources/Resources.php',
'94e265ce14c952a920a4ea5f7e8e9baa' => __DIR__ . '/..' . '/mediawiki/parser-hooks/ParserHooks.php',
+ 'a24b5daa493ecb5e767c7d1592a8da36' => __DIR__ . '/..' . '/mediawiki/at-ease/src/Functions.php',
+ 'cd9b6b6b76aed1304a64986142337d3a' => __DIR__ . '/../..' . '/extensions/SemanticMediaWiki/SemanticMediaWiki.php',
'909f49809564e82b2d61096b70b21283' => __DIR__ . '/../..' . '/extensions/Bootstrap/Bootstrap.php',
- '667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php',
'c3f7f0e81464740a933532e81fa26cc7' => __DIR__ . '/..' . '/wikimedia/base-convert/src/Functions.php',
'd55c27a601de788b19a09b7d057d07ae' => __DIR__ . '/..' . '/wikimedia/relpath/src/RelPath.php',
'c50606d667a3fde2b80a955639479d3d' => __DIR__ . '/..' . '/wikimedia/timestamp/src/defines.php',
'd5ece1612187536cca0f0d445ce68f45' => __DIR__ . '/../..' . '/skins/chameleon/Chameleon.php',
'cb42de33506561e6b5fe72b72238a9a0' => __DIR__ . '/../..' . '/skins/chameleon/src/SkinChameleon.php',
- 'cd9b6b6b76aed1304a64986142337d3a' => __DIR__ . '/../..' . '/extensions/SemanticMediaWiki/SemanticMediaWiki.php',
- 'e7223560d890eab89cda23685e711e2c' => __DIR__ . '/..' . '/psy/psysh/src/Psy/functions.php',
'38db717deddb215de53e36c2c0bc9e7e' => __DIR__ . '/../..' . '/includes/compat/Timestamp.php',
- '6e34e14285f2ef7d187014f2888f15e2' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest.php',
- '228bb15c3eaa7fe8028741119398e3a1' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/functions.php',
);
public static $prefixLengthsPsr4 = array (
- 'p' =>
- array (
- 'phpDocumentor\\Reflection\\' => 25,
- ),
- 'X' =>
- array (
- 'XdgBaseDir\\' => 11,
- ),
'W' =>
array (
'WrappedString\\' => 14,
@@ -49,8 +35,6 @@ class ComposerStaticInit_mediawiki_vendor
'Wikimedia\\Composer\\' => 19,
'Wikimedia\\Assert\\Test\\' => 22,
'Wikimedia\\Assert\\' => 17,
- 'Webmozart\\Assert\\' => 17,
- 'WMDE\\HamcrestHtml\\' => 18,
),
'V' =>
array (
@@ -60,19 +44,13 @@ class ComposerStaticInit_mediawiki_vendor
),
'S' =>
array (
- 'Symfony\\Polyfill\\Mbstring\\' => 26,
- 'Symfony\\Polyfill\\Ctype\\' => 23,
- 'Symfony\\Component\\Yaml\\' => 23,
- 'Symfony\\Component\\VarDumper\\' => 28,
- 'Symfony\\Component\\Debug\\' => 24,
'Symfony\\Component\\CssSelector\\' => 30,
- 'Symfony\\Component\\Console\\' => 26,
'Skins\\Chameleon\\Tests\\' => 22,
'Skins\\Chameleon\\' => 16,
'Serializers\\' => 12,
- 'Seld\\JsonLint\\' => 14,
'SMW\\Maintenance\\' => 16,
'SMW\\' => 4,
+ 'SFS\\' => 4,
),
'R' =>
array (
@@ -81,9 +59,7 @@ class ComposerStaticInit_mediawiki_vendor
),
'P' =>
array (
- 'Psy\\' => 4,
'Psr\\Log\\' => 8,
- 'PhpParser\\' => 10,
'ParserHooks\\' => 12,
'ParamProcessor\\' => 15,
),
@@ -97,15 +73,6 @@ class ComposerStaticInit_mediawiki_vendor
'Onoi\\Cache\\' => 11,
'Onoi\\BlobStore\\' => 15,
),
- 'M' =>
- array (
- 'Monolog\\' => 8,
- ),
- 'J' =>
- array (
- 'JsonSchema\\' => 11,
- 'JakubOnderka\\PhpConsoleColor\\' => 29,
- ),
'G' =>
array (
'GuzzleHttp\\Stream\\' => 18,
@@ -117,13 +84,11 @@ class ComposerStaticInit_mediawiki_vendor
),
'D' =>
array (
- 'Doctrine\\Instantiator\\' => 22,
'Deserializers\\' => 14,
'DataValues\\' => 11,
),
'C' =>
array (
- 'Composer\\Spdx\\' => 14,
'Composer\\Semver\\' => 16,
'Composer\\Installers\\' => 20,
'CLDRPluralRuleParser\\' => 21,
@@ -131,16 +96,6 @@ class ComposerStaticInit_mediawiki_vendor
);
public static $prefixDirsPsr4 = array (
- 'phpDocumentor\\Reflection\\' =>
- array (
- 0 => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src',
- 1 => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src',
- 2 => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src',
- ),
- 'XdgBaseDir\\' =>
- array (
- 0 => __DIR__ . '/..' . '/dnoegel/php-xdg-base-dir/src',
- ),
'WrappedString\\' =>
array (
0 => __DIR__ . '/..' . '/wikimedia/wrappedstring/src',
@@ -165,14 +120,6 @@ class ComposerStaticInit_mediawiki_vendor
array (
0 => __DIR__ . '/..' . '/wikimedia/assert/src',
),
- 'Webmozart\\Assert\\' =>
- array (
- 0 => __DIR__ . '/..' . '/webmozart/assert/src',
- ),
- 'WMDE\\HamcrestHtml\\' =>
- array (
- 0 => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src',
- ),
'ValueValidators\\' =>
array (
0 => __DIR__ . '/..' . '/data-values/interfaces/src/ValueValidators',
@@ -188,34 +135,10 @@ class ComposerStaticInit_mediawiki_vendor
0 => __DIR__ . '/..' . '/data-values/interfaces/src/ValueFormatters',
1 => __DIR__ . '/..' . '/data-values/common/src/ValueFormatters',
),
- 'Symfony\\Polyfill\\Mbstring\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
- ),
- 'Symfony\\Polyfill\\Ctype\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
- ),
- 'Symfony\\Component\\Yaml\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/yaml',
- ),
- 'Symfony\\Component\\VarDumper\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/var-dumper',
- ),
- 'Symfony\\Component\\Debug\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/debug',
- ),
'Symfony\\Component\\CssSelector\\' =>
array (
0 => __DIR__ . '/..' . '/symfony/css-selector',
),
- 'Symfony\\Component\\Console\\' =>
- array (
- 0 => __DIR__ . '/..' . '/symfony/console',
- ),
'Skins\\Chameleon\\Tests\\' =>
array (
0 => __DIR__ . '/../..' . '/skins/chameleon/tests/phpunit',
@@ -228,10 +151,6 @@ class ComposerStaticInit_mediawiki_vendor
array (
0 => __DIR__ . '/..' . '/serialization/serialization/src/Serializers',
),
- 'Seld\\JsonLint\\' =>
- array (
- 0 => __DIR__ . '/..' . '/seld/jsonlint/src/Seld/JsonLint',
- ),
'SMW\\Maintenance\\' =>
array (
0 => __DIR__ . '/../..' . '/extensions/SemanticMediaWiki/maintenance',
@@ -240,6 +159,10 @@ class ComposerStaticInit_mediawiki_vendor
array (
0 => __DIR__ . '/../..' . '/extensions/SemanticMediaWiki/src',
),
+ 'SFS\\' =>
+ array (
+ 0 => __DIR__ . '/../..' . '/extensions/SemanticFormsSelect/src',
+ ),
'RemexHtml\\' =>
array (
0 => __DIR__ . '/..' . '/wikimedia/remex-html/RemexHtml',
@@ -248,18 +171,10 @@ class ComposerStaticInit_mediawiki_vendor
array (
0 => __DIR__ . '/..' . '/react/promise/src',
),
- 'Psy\\' =>
- array (
- 0 => __DIR__ . '/..' . '/psy/psysh/src/Psy',
- ),
'Psr\\Log\\' =>
array (
0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
),
- 'PhpParser\\' =>
- array (
- 0 => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser',
- ),
'ParserHooks\\' =>
array (
0 => __DIR__ . '/..' . '/mediawiki/parser-hooks/src',
@@ -296,18 +211,6 @@ class ComposerStaticInit_mediawiki_vendor
array (
0 => __DIR__ . '/..' . '/onoi/blob-store/src',
),
- 'Monolog\\' =>
- array (
- 0 => __DIR__ . '/..' . '/monolog/monolog/src/Monolog',
- ),
- 'JsonSchema\\' =>
- array (
- 0 => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema',
- ),
- 'JakubOnderka\\PhpConsoleColor\\' =>
- array (
- 0 => __DIR__ . '/..' . '/jakub-onderka/php-console-color/src',
- ),
'GuzzleHttp\\Stream\\' =>
array (
0 => __DIR__ . '/..' . '/guzzlehttp/streams/src',
@@ -320,10 +223,6 @@ class ComposerStaticInit_mediawiki_vendor
array (
0 => __DIR__ . '/..' . '/elasticsearch/elasticsearch/src/Elasticsearch',
),
- 'Doctrine\\Instantiator\\' =>
- array (
- 0 => __DIR__ . '/..' . '/doctrine/instantiator/src/Doctrine/Instantiator',
- ),
'Deserializers\\' =>
array (
0 => __DIR__ . '/..' . '/serialization/serialization/src/Deserializers',
@@ -333,10 +232,6 @@ class ComposerStaticInit_mediawiki_vendor
0 => __DIR__ . '/..' . '/data-values/data-values/src/DataValues',
1 => __DIR__ . '/..' . '/data-values/common/src/DataValues',
),
- 'Composer\\Spdx\\' =>
- array (
- 0 => __DIR__ . '/..' . '/composer/spdx-licenses/src',
- ),
'Composer\\Semver\\' =>
array (
0 => __DIR__ . '/..' . '/composer/semver/src',
@@ -359,13 +254,6 @@ class ComposerStaticInit_mediawiki_vendor
0 => __DIR__ . '/..' . '/wikimedia/textcat',
),
),
- 'P' =>
- array (
- 'Prophecy\\' =>
- array (
- 0 => __DIR__ . '/..' . '/phpspec/prophecy/src',
- ),
- ),
'L' =>
array (
'Liuggio' =>
@@ -377,20 +265,6 @@ class ComposerStaticInit_mediawiki_vendor
0 => __DIR__ . '/..' . '/oyejorge/less.php/lib',
),
),
- 'K' =>
- array (
- 'Kafka\\' =>
- array (
- 0 => __DIR__ . '/..' . '/nmred/kafka-php/src',
- ),
- ),
- 'J' =>
- array (
- 'JakubOnderka\\PhpConsoleHighlighter' =>
- array (
- 0 => __DIR__ . '/..' . '/jakub-onderka/php-console-highlighter/src',
- ),
- ),
'C' =>
array (
'ComposerVendorHtaccessCreator' =>
@@ -409,41 +283,6 @@ class ComposerStaticInit_mediawiki_vendor
);
public static $classMap = array (
- 'Avro' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro.php',
- 'AvroArraySchema' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroDataIO' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/data_file.php',
- 'AvroDataIOException' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/data_file.php',
- 'AvroDataIOReader' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/data_file.php',
- 'AvroDataIOWriter' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/data_file.php',
- 'AvroDebug' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/debug.php',
- 'AvroEnumSchema' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroException' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro.php',
- 'AvroField' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroFile' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/io.php',
- 'AvroFixedSchema' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroGMP' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/gmp.php',
- 'AvroIO' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/io.php',
- 'AvroIOBinaryDecoder' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroIOBinaryEncoder' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroIODatumReader' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroIODatumWriter' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroIOException' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/io.php',
- 'AvroIOSchemaMatchException' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroIOTypeException' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/datum.php',
- 'AvroMapSchema' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroName' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroNamedSchema' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroNamedSchemata' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroPrimitiveSchema' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroProtocol' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/protocol.php',
- 'AvroProtocolMessage' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/protocol.php',
- 'AvroProtocolParseException' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/protocol.php',
- 'AvroRecordSchema' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroSchema' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroSchemaParseException' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroStringIO' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/io.php',
- 'AvroUnionSchema' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/schema.php',
- 'AvroUtil' => __DIR__ . '/..' . '/wikimedia/avro/lib/avro/util.php',
'CLDRPluralRuleParser\\Converter' => __DIR__ . '/..' . '/wikimedia/cldr-plural-rule-parser/src/Converter.php',
'CLDRPluralRuleParser\\Converter\\Expression' => __DIR__ . '/..' . '/wikimedia/cldr-plural-rule-parser/src/Converter/Expression.php',
'CLDRPluralRuleParser\\Converter\\Fragment' => __DIR__ . '/..' . '/wikimedia/cldr-plural-rule-parser/src/Converter/Fragment.php',
@@ -563,7 +402,6 @@ class ComposerStaticInit_mediawiki_vendor
'Composer\\Semver\\Constraint\\MultiConstraint' => __DIR__ . '/..' . '/composer/semver/src/Constraint/MultiConstraint.php',
'Composer\\Semver\\Semver' => __DIR__ . '/..' . '/composer/semver/src/Semver.php',
'Composer\\Semver\\VersionParser' => __DIR__ . '/..' . '/composer/semver/src/VersionParser.php',
- 'Composer\\Spdx\\SpdxLicenses' => __DIR__ . '/..' . '/composer/spdx-licenses/src/SpdxLicenses.php',
'DataValues\\BooleanValue' => __DIR__ . '/..' . '/data-values/data-values/src/DataValues/BooleanValue.php',
'DataValues\\DataValue' => __DIR__ . '/..' . '/data-values/data-values/src/DataValues/DataValue.php',
'DataValues\\DataValueObject' => __DIR__ . '/..' . '/data-values/data-values/src/DataValues/DataValueObject.php',
@@ -586,11 +424,6 @@ class ComposerStaticInit_mediawiki_vendor
'Deserializers\\StrategicDeserializer' => __DIR__ . '/..' . '/serialization/serialization/src/Deserializers/StrategicDeserializer.php',
'Deserializers\\TypedDeserializationStrategy' => __DIR__ . '/..' . '/serialization/serialization/src/Deserializers/TypedDeserializationStrategy.php',
'Deserializers\\TypedObjectDeserializer' => __DIR__ . '/..' . '/serialization/serialization/src/Deserializers/TypedObjectDeserializer.php',
- 'Doctrine\\Instantiator\\Exception\\ExceptionInterface' => __DIR__ . '/..' . '/doctrine/instantiator/src/Doctrine/Instantiator/Exception/ExceptionInterface.php',
- 'Doctrine\\Instantiator\\Exception\\InvalidArgumentException' => __DIR__ . '/..' . '/doctrine/instantiator/src/Doctrine/Instantiator/Exception/InvalidArgumentException.php',
- 'Doctrine\\Instantiator\\Exception\\UnexpectedValueException' => __DIR__ . '/..' . '/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php',
- 'Doctrine\\Instantiator\\Instantiator' => __DIR__ . '/..' . '/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php',
- 'Doctrine\\Instantiator\\InstantiatorInterface' => __DIR__ . '/..' . '/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php',
'Elasticsearch\\Client' => __DIR__ . '/..' . '/elasticsearch/elasticsearch/src/Elasticsearch/Client.php',
'Elasticsearch\\ClientBuilder' => __DIR__ . '/..' . '/elasticsearch/elasticsearch/src/Elasticsearch/ClientBuilder.php',
'Elasticsearch\\Common\\EmptyLogger' => __DIR__ . '/..' . '/elasticsearch/elasticsearch/src/Elasticsearch/Common/EmptyLogger.php',
@@ -787,11 +620,6 @@ class ComposerStaticInit_mediawiki_vendor
'Elasticsearch\\Serializers\\SerializerInterface' => __DIR__ . '/..' . '/elasticsearch/elasticsearch/src/Elasticsearch/Serializers/SerializerInterface.php',
'Elasticsearch\\Serializers\\SmartSerializer' => __DIR__ . '/..' . '/elasticsearch/elasticsearch/src/Elasticsearch/Serializers/SmartSerializer.php',
'Elasticsearch\\Transport' => __DIR__ . '/..' . '/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php',
- 'ExampleClass' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/class.php',
- 'ExampleTrait' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/trait.php',
- 'File_Iterator' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Iterator.php',
- 'File_Iterator_Facade' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Facade.php',
- 'File_Iterator_Factory' => __DIR__ . '/..' . '/phpunit/php-file-iterator/src/Factory.php',
'GuzzleHttp\\Ring\\Client\\ClientUtils' => __DIR__ . '/..' . '/guzzlehttp/ringphp/src/Client/ClientUtils.php',
'GuzzleHttp\\Ring\\Client\\CurlFactory' => __DIR__ . '/..' . '/guzzlehttp/ringphp/src/Client/CurlFactory.php',
'GuzzleHttp\\Ring\\Client\\CurlHandler' => __DIR__ . '/..' . '/guzzlehttp/ringphp/src/Client/CurlHandler.php',
@@ -832,183 +660,10 @@ class ComposerStaticInit_mediawiki_vendor
'GuzzleHttp\\Stream\\StreamDecoratorTrait' => __DIR__ . '/..' . '/guzzlehttp/streams/src/StreamDecoratorTrait.php',
'GuzzleHttp\\Stream\\StreamInterface' => __DIR__ . '/..' . '/guzzlehttp/streams/src/StreamInterface.php',
'GuzzleHttp\\Stream\\Utils' => __DIR__ . '/..' . '/guzzlehttp/streams/src/Utils.php',
- 'Hamcrest\\Arrays\\IsArray' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php',
- 'Hamcrest\\Arrays\\IsArrayContaining' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php',
- 'Hamcrest\\Arrays\\IsArrayContainingInAnyOrder' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php',
- 'Hamcrest\\Arrays\\IsArrayContainingInOrder' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php',
- 'Hamcrest\\Arrays\\IsArrayContainingKey' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php',
- 'Hamcrest\\Arrays\\IsArrayContainingKeyValuePair' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php',
- 'Hamcrest\\Arrays\\IsArrayWithSize' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php',
- 'Hamcrest\\Arrays\\MatchingOnce' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/MatchingOnce.php',
- 'Hamcrest\\Arrays\\SeriesMatchingOnce' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php',
- 'Hamcrest\\AssertionError' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php',
- 'Hamcrest\\BaseDescription' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseDescription.php',
- 'Hamcrest\\BaseMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php',
- 'Hamcrest\\Collection\\IsEmptyTraversable' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php',
- 'Hamcrest\\Collection\\IsTraversableWithSize' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php',
- 'Hamcrest\\Core\\AllOf' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AllOf.php',
- 'Hamcrest\\Core\\AnyOf' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php',
- 'Hamcrest\\Core\\CombinableMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php',
- 'Hamcrest\\Core\\DescribedAs' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php',
- 'Hamcrest\\Core\\Every' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php',
- 'Hamcrest\\Core\\HasToString' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php',
- 'Hamcrest\\Core\\Is' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php',
- 'Hamcrest\\Core\\IsAnything' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php',
- 'Hamcrest\\Core\\IsCollectionContaining' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php',
- 'Hamcrest\\Core\\IsEqual' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php',
- 'Hamcrest\\Core\\IsIdentical' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php',
- 'Hamcrest\\Core\\IsInstanceOf' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php',
- 'Hamcrest\\Core\\IsNot' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php',
- 'Hamcrest\\Core\\IsNull' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php',
- 'Hamcrest\\Core\\IsSame' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php',
- 'Hamcrest\\Core\\IsTypeOf' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php',
- 'Hamcrest\\Core\\Set' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php',
- 'Hamcrest\\Core\\ShortcutCombination' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php',
- 'Hamcrest\\Description' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php',
- 'Hamcrest\\DiagnosingMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/DiagnosingMatcher.php',
- 'Hamcrest\\FeatureMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php',
- 'Hamcrest\\Internal\\SelfDescribingValue' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php',
- 'Hamcrest\\Matcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php',
- 'Hamcrest\\MatcherAssert' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php',
- 'Hamcrest\\Matchers' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php',
- 'Hamcrest\\NullDescription' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php',
- 'Hamcrest\\Number\\IsCloseTo' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/IsCloseTo.php',
- 'Hamcrest\\Number\\OrderingComparison' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php',
- 'Hamcrest\\SelfDescribing' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php',
- 'Hamcrest\\StringDescription' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/StringDescription.php',
- 'Hamcrest\\Text\\IsEmptyString' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php',
- 'Hamcrest\\Text\\IsEqualIgnoringCase' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php',
- 'Hamcrest\\Text\\IsEqualIgnoringWhiteSpace' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php',
- 'Hamcrest\\Text\\MatchesPattern' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php',
- 'Hamcrest\\Text\\StringContains' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php',
- 'Hamcrest\\Text\\StringContainsIgnoringCase' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php',
- 'Hamcrest\\Text\\StringContainsInOrder' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php',
- 'Hamcrest\\Text\\StringEndsWith' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php',
- 'Hamcrest\\Text\\StringStartsWith' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php',
- 'Hamcrest\\Text\\SubstringMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php',
- 'Hamcrest\\TypeSafeDiagnosingMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeDiagnosingMatcher.php',
- 'Hamcrest\\TypeSafeMatcher' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php',
- 'Hamcrest\\Type\\IsArray' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php',
- 'Hamcrest\\Type\\IsBoolean' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsBoolean.php',
- 'Hamcrest\\Type\\IsCallable' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsCallable.php',
- 'Hamcrest\\Type\\IsDouble' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsDouble.php',
- 'Hamcrest\\Type\\IsInteger' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsInteger.php',
- 'Hamcrest\\Type\\IsNumeric' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsNumeric.php',
- 'Hamcrest\\Type\\IsObject' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php',
- 'Hamcrest\\Type\\IsResource' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsResource.php',
- 'Hamcrest\\Type\\IsScalar' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsScalar.php',
- 'Hamcrest\\Type\\IsString' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsString.php',
- 'Hamcrest\\Util' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php',
- 'Hamcrest\\Xml\\HasXPath' => __DIR__ . '/..' . '/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php',
'Hashable' => __DIR__ . '/..' . '/data-values/data-values/src/interfaces/Hashable.php',
'HtmlFormatter\\HtmlFormatter' => __DIR__ . '/..' . '/wikimedia/html-formatter/src/HtmlFormatter.php',
'IPSet\\IPSet' => __DIR__ . '/..' . '/wikimedia/ip-set/src/IPSet.php',
'Immutable' => __DIR__ . '/..' . '/data-values/data-values/src/interfaces/Immutable.php',
- 'JakubOnderka\\PhpConsoleColor\\ConsoleColor' => __DIR__ . '/..' . '/jakub-onderka/php-console-color/src/ConsoleColor.php',
- 'JakubOnderka\\PhpConsoleColor\\InvalidStyleException' => __DIR__ . '/..' . '/jakub-onderka/php-console-color/src/InvalidStyleException.php',
- 'JakubOnderka\\PhpConsoleHighlighter\\Highlighter' => __DIR__ . '/..' . '/jakub-onderka/php-console-highlighter/src/JakubOnderka/PhpConsoleHighlighter/Highlighter.php',
- 'JakubOnderka\\PhpParallelLint\\ArrayIterator' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Settings.php',
- 'JakubOnderka\\PhpParallelLint\\Blame' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Error.php',
- 'JakubOnderka\\PhpParallelLint\\ConsoleWriter' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\Error' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Error.php',
- 'JakubOnderka\\PhpParallelLint\\ErrorFormatter' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/ErrorFormatter.php',
- 'JakubOnderka\\PhpParallelLint\\Exception' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/exceptions.php',
- 'JakubOnderka\\PhpParallelLint\\FileWriter' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\IWriter' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\InvalidArgumentException' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/exceptions.php',
- 'JakubOnderka\\PhpParallelLint\\JsonOutput' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\Manager' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Manager.php',
- 'JakubOnderka\\PhpParallelLint\\MultipleWriter' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\NotExistsPathException' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/exceptions.php',
- 'JakubOnderka\\PhpParallelLint\\NullWriter' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\Output' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\ParallelLint' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/ParallelLint.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\GitBlameProcess' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Process/GitBlameProcess.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\LintProcess' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Process/LintProcess.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\PhpExecutable' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Process/PhpExecutable.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\PhpProcess' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Process/PhpProcess.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\Process' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Process/Process.php',
- 'JakubOnderka\\PhpParallelLint\\Process\\SkipLintProcess' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Process/SkipLintProcess.php',
- 'JakubOnderka\\PhpParallelLint\\RecursiveDirectoryFilterIterator' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Manager.php',
- 'JakubOnderka\\PhpParallelLint\\Result' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Result.php',
- 'JakubOnderka\\PhpParallelLint\\RunTimeException' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/exceptions.php',
- 'JakubOnderka\\PhpParallelLint\\Settings' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Settings.php',
- 'JakubOnderka\\PhpParallelLint\\SyntaxError' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Error.php',
- 'JakubOnderka\\PhpParallelLint\\TextOutput' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JakubOnderka\\PhpParallelLint\\TextOutputColored' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/Output.php',
- 'JsonSchema\\Constraints\\BaseConstraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php',
- 'JsonSchema\\Constraints\\CollectionConstraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php',
- 'JsonSchema\\Constraints\\Constraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php',
- 'JsonSchema\\Constraints\\ConstraintInterface' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php',
- 'JsonSchema\\Constraints\\EnumConstraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php',
- 'JsonSchema\\Constraints\\Factory' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php',
- 'JsonSchema\\Constraints\\FormatConstraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php',
- 'JsonSchema\\Constraints\\NumberConstraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/NumberConstraint.php',
- 'JsonSchema\\Constraints\\ObjectConstraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php',
- 'JsonSchema\\Constraints\\SchemaConstraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php',
- 'JsonSchema\\Constraints\\StringConstraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php',
- 'JsonSchema\\Constraints\\TypeCheck\\LooseTypeCheck' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php',
- 'JsonSchema\\Constraints\\TypeCheck\\StrictTypeCheck' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php',
- 'JsonSchema\\Constraints\\TypeCheck\\TypeCheckInterface' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/TypeCheckInterface.php',
- 'JsonSchema\\Constraints\\TypeConstraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php',
- 'JsonSchema\\Constraints\\UndefinedConstraint' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php',
- 'JsonSchema\\Entity\\JsonPointer' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.php',
- 'JsonSchema\\Exception\\ExceptionInterface' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/ExceptionInterface.php',
- 'JsonSchema\\Exception\\InvalidArgumentException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidArgumentException.php',
- 'JsonSchema\\Exception\\InvalidConfigException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidConfigException.php',
- 'JsonSchema\\Exception\\InvalidSchemaException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaException.php',
- 'JsonSchema\\Exception\\InvalidSchemaMediaTypeException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.php',
- 'JsonSchema\\Exception\\InvalidSourceUriException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSourceUriException.php',
- 'JsonSchema\\Exception\\JsonDecodingException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/JsonDecodingException.php',
- 'JsonSchema\\Exception\\ResourceNotFoundException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/ResourceNotFoundException.php',
- 'JsonSchema\\Exception\\RuntimeException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/RuntimeException.php',
- 'JsonSchema\\Exception\\UnresolvableJsonPointerException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/UnresolvableJsonPointerException.php',
- 'JsonSchema\\Exception\\UriResolverException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/UriResolverException.php',
- 'JsonSchema\\Exception\\ValidationException' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Exception/ValidationException.php',
- 'JsonSchema\\Iterator\\ObjectIterator' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php',
- 'JsonSchema\\Rfc3339' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Rfc3339.php',
- 'JsonSchema\\SchemaStorage' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php',
- 'JsonSchema\\SchemaStorageInterface' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/SchemaStorageInterface.php',
- 'JsonSchema\\UriResolverInterface' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php',
- 'JsonSchema\\UriRetrieverInterface' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php',
- 'JsonSchema\\Uri\\Retrievers\\AbstractRetriever' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/AbstractRetriever.php',
- 'JsonSchema\\Uri\\Retrievers\\Curl' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php',
- 'JsonSchema\\Uri\\Retrievers\\FileGetContents' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php',
- 'JsonSchema\\Uri\\Retrievers\\PredefinedArray' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php',
- 'JsonSchema\\Uri\\Retrievers\\UriRetrieverInterface' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php',
- 'JsonSchema\\Uri\\UriResolver' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php',
- 'JsonSchema\\Uri\\UriRetriever' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php',
- 'JsonSchema\\Validator' => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema/Validator.php',
- 'JsonSerializable' => __DIR__ . '/..' . '/jakub-onderka/php-parallel-lint/src/JsonSerializable.php',
- 'Kafka\\Client' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Client.php',
- 'Kafka\\ClusterMetaData' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/ClusterMetaData.php',
- 'Kafka\\Consumer' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Consumer.php',
- 'Kafka\\Exception' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Exception.php',
- 'Kafka\\Exception\\NotSupported' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Exception/NotSupported.php',
- 'Kafka\\Exception\\OutOfRange' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Exception/OutOfRange.php',
- 'Kafka\\Exception\\Protocol' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Exception/Protocol.php',
- 'Kafka\\Exception\\Socket' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Exception/Socket.php',
- 'Kafka\\Exception\\SocketConnect' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Exception/SocketConnect.php',
- 'Kafka\\Exception\\SocketEOF' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Exception/SocketEOF.php',
- 'Kafka\\Exception\\SocketTimeout' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Exception/SocketTimeout.php',
- 'Kafka\\Log' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Log.php',
- 'Kafka\\MetaDataFromKafka' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/MetaDataFromKafka.php',
- 'Kafka\\Offset' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Offset.php',
- 'Kafka\\Produce' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Produce.php',
- 'Kafka\\Protocol\\Decoder' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Decoder.php',
- 'Kafka\\Protocol\\Encoder' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Encoder.php',
- 'Kafka\\Protocol\\Fetch\\Helper\\CommitOffset' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/CommitOffset.php',
- 'Kafka\\Protocol\\Fetch\\Helper\\Consumer' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Consumer.php',
- 'Kafka\\Protocol\\Fetch\\Helper\\FreeStream' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/FreeStream.php',
- 'Kafka\\Protocol\\Fetch\\Helper\\Helper' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Helper.php',
- 'Kafka\\Protocol\\Fetch\\Helper\\HelperAbstract' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/HelperAbstract.php',
- 'Kafka\\Protocol\\Fetch\\Message' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Message.php',
- 'Kafka\\Protocol\\Fetch\\MessageSet' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/MessageSet.php',
- 'Kafka\\Protocol\\Fetch\\Partition' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Partition.php',
- 'Kafka\\Protocol\\Fetch\\Topic' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Fetch/Topic.php',
- 'Kafka\\Protocol\\Protocol' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Protocol/Protocol.php',
- 'Kafka\\Socket' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/Socket.php',
- 'Kafka\\ZooKeeper' => __DIR__ . '/..' . '/nmred/kafka-php/src/Kafka/ZooKeeper.php',
'LCRun3' => __DIR__ . '/..' . '/zordius/lightncandy/src/lightncandy.php',
'Less_Autoloader' => __DIR__ . '/..' . '/oyejorge/less.php/lib/Less/Autoloader.php',
'Less_Cache' => __DIR__ . '/..' . '/oyejorge/less.php/lib/Less/Cache.php',
@@ -1084,94 +739,6 @@ class ComposerStaticInit_mediawiki_vendor
'Liuggio\\StatsdClient\\Service\\StatsdService' => __DIR__ . '/..' . '/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Service/StatsdService.php',
'Liuggio\\StatsdClient\\StatsdClient' => __DIR__ . '/..' . '/liuggio/statsd-php-client/src/Liuggio/StatsdClient/StatsdClient.php',
'Liuggio\\StatsdClient\\StatsdClientInterface' => __DIR__ . '/..' . '/liuggio/statsd-php-client/src/Liuggio/StatsdClient/StatsdClientInterface.php',
- 'Monolog\\ErrorHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/ErrorHandler.php',
- 'Monolog\\Formatter\\ChromePHPFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php',
- 'Monolog\\Formatter\\ElasticaFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php',
- 'Monolog\\Formatter\\FlowdockFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php',
- 'Monolog\\Formatter\\FluentdFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php',
- 'Monolog\\Formatter\\FormatterInterface' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php',
- 'Monolog\\Formatter\\GelfMessageFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php',
- 'Monolog\\Formatter\\HtmlFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php',
- 'Monolog\\Formatter\\JsonFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php',
- 'Monolog\\Formatter\\LineFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/LineFormatter.php',
- 'Monolog\\Formatter\\LogglyFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php',
- 'Monolog\\Formatter\\LogstashFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php',
- 'Monolog\\Formatter\\MongoDBFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php',
- 'Monolog\\Formatter\\NormalizerFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php',
- 'Monolog\\Formatter\\ScalarFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php',
- 'Monolog\\Formatter\\WildfireFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php',
- 'Monolog\\Handler\\AbstractHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/AbstractHandler.php',
- 'Monolog\\Handler\\AbstractProcessingHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php',
- 'Monolog\\Handler\\AbstractSyslogHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php',
- 'Monolog\\Handler\\AmqpHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/AmqpHandler.php',
- 'Monolog\\Handler\\BrowserConsoleHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php',
- 'Monolog\\Handler\\BufferHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/BufferHandler.php',
- 'Monolog\\Handler\\ChromePHPHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php',
- 'Monolog\\Handler\\CouchDBHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php',
- 'Monolog\\Handler\\CubeHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/CubeHandler.php',
- 'Monolog\\Handler\\Curl\\Util' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/Curl/Util.php',
- 'Monolog\\Handler\\DeduplicationHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php',
- 'Monolog\\Handler\\DoctrineCouchDBHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php',
- 'Monolog\\Handler\\DynamoDbHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php',
- 'Monolog\\Handler\\ElasticSearchHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php',
- 'Monolog\\Handler\\ErrorLogHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php',
- 'Monolog\\Handler\\FilterHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FilterHandler.php',
- 'Monolog\\Handler\\FingersCrossedHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php',
- 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php',
- 'Monolog\\Handler\\FingersCrossed\\ChannelLevelActivationStrategy' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php',
- 'Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php',
- 'Monolog\\Handler\\FirePHPHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php',
- 'Monolog\\Handler\\FleepHookHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php',
- 'Monolog\\Handler\\FlowdockHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php',
- 'Monolog\\Handler\\GelfHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/GelfHandler.php',
- 'Monolog\\Handler\\GroupHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/GroupHandler.php',
- 'Monolog\\Handler\\HandlerInterface' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/HandlerInterface.php',
- 'Monolog\\Handler\\HandlerWrapper' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php',
- 'Monolog\\Handler\\HipChatHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/HipChatHandler.php',
- 'Monolog\\Handler\\IFTTTHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php',
- 'Monolog\\Handler\\LogEntriesHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php',
- 'Monolog\\Handler\\LogglyHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/LogglyHandler.php',
- 'Monolog\\Handler\\MailHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/MailHandler.php',
- 'Monolog\\Handler\\MandrillHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/MandrillHandler.php',
- 'Monolog\\Handler\\MissingExtensionException' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php',
- 'Monolog\\Handler\\MongoDBHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php',
- 'Monolog\\Handler\\NativeMailerHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php',
- 'Monolog\\Handler\\NewRelicHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php',
- 'Monolog\\Handler\\NullHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/NullHandler.php',
- 'Monolog\\Handler\\PHPConsoleHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php',
- 'Monolog\\Handler\\PsrHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/PsrHandler.php',
- 'Monolog\\Handler\\PushoverHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/PushoverHandler.php',
- 'Monolog\\Handler\\RavenHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/RavenHandler.php',
- 'Monolog\\Handler\\RedisHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/RedisHandler.php',
- 'Monolog\\Handler\\RollbarHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/RollbarHandler.php',
- 'Monolog\\Handler\\RotatingFileHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php',
- 'Monolog\\Handler\\SamplingHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SamplingHandler.php',
- 'Monolog\\Handler\\SlackHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SlackHandler.php',
- 'Monolog\\Handler\\SlackWebhookHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php',
- 'Monolog\\Handler\\Slack\\SlackRecord' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php',
- 'Monolog\\Handler\\SlackbotHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php',
- 'Monolog\\Handler\\SocketHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SocketHandler.php',
- 'Monolog\\Handler\\StreamHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/StreamHandler.php',
- 'Monolog\\Handler\\SwiftMailerHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php',
- 'Monolog\\Handler\\SyslogHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SyslogHandler.php',
- 'Monolog\\Handler\\SyslogUdpHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php',
- 'Monolog\\Handler\\SyslogUdp\\UdpSocket' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php',
- 'Monolog\\Handler\\TestHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/TestHandler.php',
- 'Monolog\\Handler\\WhatFailureGroupHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php',
- 'Monolog\\Handler\\ZendMonitorHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php',
- 'Monolog\\Logger' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Logger.php',
- 'Monolog\\Processor\\GitProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/GitProcessor.php',
- 'Monolog\\Processor\\IntrospectionProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php',
- 'Monolog\\Processor\\MemoryPeakUsageProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php',
- 'Monolog\\Processor\\MemoryProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php',
- 'Monolog\\Processor\\MemoryUsageProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php',
- 'Monolog\\Processor\\MercurialProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php',
- 'Monolog\\Processor\\ProcessIdProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php',
- 'Monolog\\Processor\\PsrLogMessageProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php',
- 'Monolog\\Processor\\TagProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/TagProcessor.php',
- 'Monolog\\Processor\\UidProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/UidProcessor.php',
- 'Monolog\\Processor\\WebProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/WebProcessor.php',
- 'Monolog\\Registry' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Registry.php',
'OOUI\\AccessKeyedElement' => __DIR__ . '/..' . '/oojs/oojs-ui/php/mixins/AccessKeyedElement.php',
'OOUI\\ActionFieldLayout' => __DIR__ . '/..' . '/oojs/oojs-ui/php/layouts/ActionFieldLayout.php',
'OOUI\\ApexTheme' => __DIR__ . '/..' . '/oojs/oojs-ui/php/themes/ApexTheme.php',
@@ -1291,411 +858,6 @@ class ComposerStaticInit_mediawiki_vendor
'Onoi\\Tesa\\Tokenizer\\PunctuationRegExTokenizer' => __DIR__ . '/..' . '/onoi/tesa/src/Tokenizer/PunctuationRegExTokenizer.php',
'Onoi\\Tesa\\Tokenizer\\Tokenizer' => __DIR__ . '/..' . '/onoi/tesa/src/Tokenizer/Tokenizer.php',
'Onoi\\Tesa\\Transliterator' => __DIR__ . '/..' . '/onoi/tesa/src/Transliterator.php',
- 'PHPUnit\\Framework\\Assert' => __DIR__ . '/..' . '/phpunit/phpunit/src/ForwardCompatibility/Assert.php',
- 'PHPUnit\\Framework\\AssertionFailedError' => __DIR__ . '/..' . '/phpunit/phpunit/src/ForwardCompatibility/AssertionFailedError.php',
- 'PHPUnit\\Framework\\BaseTestListener' => __DIR__ . '/..' . '/phpunit/phpunit/src/ForwardCompatibility/BaseTestListener.php',
- 'PHPUnit\\Framework\\Test' => __DIR__ . '/..' . '/phpunit/phpunit/src/ForwardCompatibility/Test.php',
- 'PHPUnit\\Framework\\TestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/ForwardCompatibility/TestCase.php',
- 'PHPUnit\\Framework\\TestListener' => __DIR__ . '/..' . '/phpunit/phpunit/src/ForwardCompatibility/TestListener.php',
- 'PHPUnit\\Framework\\TestSuite' => __DIR__ . '/..' . '/phpunit/phpunit/src/ForwardCompatibility/TestSuite.php',
- 'PHPUnit_Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Exception.php',
- 'PHPUnit_Extensions_GroupTestSuite' => __DIR__ . '/..' . '/phpunit/phpunit/src/Extensions/GroupTestSuite.php',
- 'PHPUnit_Extensions_PhptTestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Extensions/PhptTestCase.php',
- 'PHPUnit_Extensions_PhptTestSuite' => __DIR__ . '/..' . '/phpunit/phpunit/src/Extensions/PhptTestSuite.php',
- 'PHPUnit_Extensions_RepeatedTest' => __DIR__ . '/..' . '/phpunit/phpunit/src/Extensions/RepeatedTest.php',
- 'PHPUnit_Extensions_TestDecorator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Extensions/TestDecorator.php',
- 'PHPUnit_Extensions_TicketListener' => __DIR__ . '/..' . '/phpunit/phpunit/src/Extensions/TicketListener.php',
- 'PHPUnit_Framework_Assert' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Assert.php',
- 'PHPUnit_Framework_AssertionFailedError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/AssertionFailedError.php',
- 'PHPUnit_Framework_BaseTestListener' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/BaseTestListener.php',
- 'PHPUnit_Framework_CodeCoverageException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/CodeCoverageException.php',
- 'PHPUnit_Framework_Constraint' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint.php',
- 'PHPUnit_Framework_Constraint_And' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/And.php',
- 'PHPUnit_Framework_Constraint_ArrayHasKey' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php',
- 'PHPUnit_Framework_Constraint_ArraySubset' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php',
- 'PHPUnit_Framework_Constraint_Attribute' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Attribute.php',
- 'PHPUnit_Framework_Constraint_Callback' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Callback.php',
- 'PHPUnit_Framework_Constraint_ClassHasAttribute' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php',
- 'PHPUnit_Framework_Constraint_ClassHasStaticAttribute' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/ClassHasStaticAttribute.php',
- 'PHPUnit_Framework_Constraint_Composite' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Composite.php',
- 'PHPUnit_Framework_Constraint_Count' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Count.php',
- 'PHPUnit_Framework_Constraint_Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Exception.php',
- 'PHPUnit_Framework_Constraint_ExceptionCode' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/ExceptionCode.php',
- 'PHPUnit_Framework_Constraint_ExceptionMessage' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/ExceptionMessage.php',
- 'PHPUnit_Framework_Constraint_ExceptionMessageRegExp' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/ExceptionMessageRegExp.php',
- 'PHPUnit_Framework_Constraint_FileExists' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/FileExists.php',
- 'PHPUnit_Framework_Constraint_GreaterThan' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/GreaterThan.php',
- 'PHPUnit_Framework_Constraint_IsAnything' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsAnything.php',
- 'PHPUnit_Framework_Constraint_IsEmpty' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsEmpty.php',
- 'PHPUnit_Framework_Constraint_IsEqual' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsEqual.php',
- 'PHPUnit_Framework_Constraint_IsFalse' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsFalse.php',
- 'PHPUnit_Framework_Constraint_IsIdentical' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php',
- 'PHPUnit_Framework_Constraint_IsInstanceOf' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsInstanceOf.php',
- 'PHPUnit_Framework_Constraint_IsJson' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsJson.php',
- 'PHPUnit_Framework_Constraint_IsNull' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsNull.php',
- 'PHPUnit_Framework_Constraint_IsTrue' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsTrue.php',
- 'PHPUnit_Framework_Constraint_IsType' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/IsType.php',
- 'PHPUnit_Framework_Constraint_JsonMatches' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/JsonMatches.php',
- 'PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/JsonMatches/ErrorMessageProvider.php',
- 'PHPUnit_Framework_Constraint_LessThan' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/LessThan.php',
- 'PHPUnit_Framework_Constraint_Not' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Not.php',
- 'PHPUnit_Framework_Constraint_ObjectHasAttribute' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/ObjectHasAttribute.php',
- 'PHPUnit_Framework_Constraint_Or' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Or.php',
- 'PHPUnit_Framework_Constraint_PCREMatch' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/PCREMatch.php',
- 'PHPUnit_Framework_Constraint_SameSize' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/SameSize.php',
- 'PHPUnit_Framework_Constraint_StringContains' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/StringContains.php',
- 'PHPUnit_Framework_Constraint_StringEndsWith' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/StringEndsWith.php',
- 'PHPUnit_Framework_Constraint_StringMatches' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/StringMatches.php',
- 'PHPUnit_Framework_Constraint_StringStartsWith' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/StringStartsWith.php',
- 'PHPUnit_Framework_Constraint_TraversableContains' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/TraversableContains.php',
- 'PHPUnit_Framework_Constraint_TraversableContainsOnly' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/TraversableContainsOnly.php',
- 'PHPUnit_Framework_Constraint_Xor' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Constraint/Xor.php',
- 'PHPUnit_Framework_Error' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Error.php',
- 'PHPUnit_Framework_Error_Deprecated' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Error/Deprecated.php',
- 'PHPUnit_Framework_Error_Notice' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Error/Notice.php',
- 'PHPUnit_Framework_Error_Warning' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Error/Warning.php',
- 'PHPUnit_Framework_Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception.php',
- 'PHPUnit_Framework_ExceptionWrapper' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/ExceptionWrapper.php',
- 'PHPUnit_Framework_ExpectationFailedException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/ExpectationFailedException.php',
- 'PHPUnit_Framework_IncompleteTest' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/IncompleteTest.php',
- 'PHPUnit_Framework_IncompleteTestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/IncompleteTestCase.php',
- 'PHPUnit_Framework_IncompleteTestError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/IncompleteTestError.php',
- 'PHPUnit_Framework_InvalidCoversTargetError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/InvalidCoversTargetError.php',
- 'PHPUnit_Framework_InvalidCoversTargetException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/InvalidCoversTargetException.php',
- 'PHPUnit_Framework_MockObject_BadMethodCallException' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/BadMethodCallException.php',
- 'PHPUnit_Framework_MockObject_Builder_Identity' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Identity.php',
- 'PHPUnit_Framework_MockObject_Builder_InvocationMocker' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php',
- 'PHPUnit_Framework_MockObject_Builder_Match' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Match.php',
- 'PHPUnit_Framework_MockObject_Builder_MethodNameMatch' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/MethodNameMatch.php',
- 'PHPUnit_Framework_MockObject_Builder_Namespace' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Namespace.php',
- 'PHPUnit_Framework_MockObject_Builder_ParametersMatch' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/ParametersMatch.php',
- 'PHPUnit_Framework_MockObject_Builder_Stub' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Stub.php',
- 'PHPUnit_Framework_MockObject_Exception' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/Exception.php',
- 'PHPUnit_Framework_MockObject_Generator' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php',
- 'PHPUnit_Framework_MockObject_Invocation' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation.php',
- 'PHPUnit_Framework_MockObject_InvocationMocker' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/InvocationMocker.php',
- 'PHPUnit_Framework_MockObject_Invocation_Object' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Object.php',
- 'PHPUnit_Framework_MockObject_Invocation_Static' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Static.php',
- 'PHPUnit_Framework_MockObject_Invokable' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invokable.php',
- 'PHPUnit_Framework_MockObject_Matcher' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher.php',
- 'PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyInvokedCount.php',
- 'PHPUnit_Framework_MockObject_Matcher_AnyParameters' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyParameters.php',
- 'PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/ConsecutiveParameters.php',
- 'PHPUnit_Framework_MockObject_Matcher_Invocation' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Invocation.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtIndex.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastCount' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastCount.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastOnce.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedAtMostCount' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtMostCount.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedCount' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedCount.php',
- 'PHPUnit_Framework_MockObject_Matcher_InvokedRecorder' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedRecorder.php',
- 'PHPUnit_Framework_MockObject_Matcher_MethodName' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/MethodName.php',
- 'PHPUnit_Framework_MockObject_Matcher_Parameters' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Parameters.php',
- 'PHPUnit_Framework_MockObject_Matcher_StatelessInvocation' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/StatelessInvocation.php',
- 'PHPUnit_Framework_MockObject_MockBuilder' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockBuilder.php',
- 'PHPUnit_Framework_MockObject_MockObject' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockObject.php',
- 'PHPUnit_Framework_MockObject_RuntimeException' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/RuntimeException.php',
- 'PHPUnit_Framework_MockObject_Stub' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub.php',
- 'PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ConsecutiveCalls.php',
- 'PHPUnit_Framework_MockObject_Stub_Exception' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Exception.php',
- 'PHPUnit_Framework_MockObject_Stub_MatcherCollection' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/MatcherCollection.php',
- 'PHPUnit_Framework_MockObject_Stub_Return' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Return.php',
- 'PHPUnit_Framework_MockObject_Stub_ReturnArgument' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnArgument.php',
- 'PHPUnit_Framework_MockObject_Stub_ReturnCallback' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnCallback.php',
- 'PHPUnit_Framework_MockObject_Stub_ReturnSelf' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnSelf.php',
- 'PHPUnit_Framework_MockObject_Stub_ReturnValueMap' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnValueMap.php',
- 'PHPUnit_Framework_MockObject_Verifiable' => __DIR__ . '/..' . '/phpunit/phpunit-mock-objects/src/Framework/MockObject/Verifiable.php',
- 'PHPUnit_Framework_OutputError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/OutputError.php',
- 'PHPUnit_Framework_RiskyTest' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/RiskyTest.php',
- 'PHPUnit_Framework_RiskyTestError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/RiskyTestError.php',
- 'PHPUnit_Framework_SelfDescribing' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/SelfDescribing.php',
- 'PHPUnit_Framework_SkippedTest' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/SkippedTest.php',
- 'PHPUnit_Framework_SkippedTestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/SkippedTestCase.php',
- 'PHPUnit_Framework_SkippedTestError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/SkippedTestError.php',
- 'PHPUnit_Framework_SkippedTestSuiteError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/SkippedTestSuiteError.php',
- 'PHPUnit_Framework_SyntheticError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/SyntheticError.php',
- 'PHPUnit_Framework_Test' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Test.php',
- 'PHPUnit_Framework_TestCase' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestCase.php',
- 'PHPUnit_Framework_TestFailure' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestFailure.php',
- 'PHPUnit_Framework_TestListener' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestListener.php',
- 'PHPUnit_Framework_TestResult' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestResult.php',
- 'PHPUnit_Framework_TestSuite' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestSuite.php',
- 'PHPUnit_Framework_TestSuite_DataProvider' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/TestSuite/DataProvider.php',
- 'PHPUnit_Framework_UnintentionallyCoveredCodeError' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/UnintentionallyCoveredCodeError.php',
- 'PHPUnit_Framework_Warning' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Warning.php',
- 'PHPUnit_Runner_BaseTestRunner' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/BaseTestRunner.php',
- 'PHPUnit_Runner_Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Exception.php',
- 'PHPUnit_Runner_Filter_Factory' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Filter/Factory.php',
- 'PHPUnit_Runner_Filter_GroupFilterIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Filter/Group.php',
- 'PHPUnit_Runner_Filter_Group_Exclude' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Filter/Group/Exclude.php',
- 'PHPUnit_Runner_Filter_Group_Include' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Filter/Group/Include.php',
- 'PHPUnit_Runner_Filter_Test' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Filter/Test.php',
- 'PHPUnit_Runner_StandardTestSuiteLoader' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/StandardTestSuiteLoader.php',
- 'PHPUnit_Runner_TestSuiteLoader' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/TestSuiteLoader.php',
- 'PHPUnit_Runner_Version' => __DIR__ . '/..' . '/phpunit/phpunit/src/Runner/Version.php',
- 'PHPUnit_TextUI_Command' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/Command.php',
- 'PHPUnit_TextUI_ResultPrinter' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/ResultPrinter.php',
- 'PHPUnit_TextUI_TestRunner' => __DIR__ . '/..' . '/phpunit/phpunit/src/TextUI/TestRunner.php',
- 'PHPUnit_Util_Blacklist' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Blacklist.php',
- 'PHPUnit_Util_Configuration' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Configuration.php',
- 'PHPUnit_Util_ErrorHandler' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/ErrorHandler.php',
- 'PHPUnit_Util_Fileloader' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Fileloader.php',
- 'PHPUnit_Util_Filesystem' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Filesystem.php',
- 'PHPUnit_Util_Filter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Filter.php',
- 'PHPUnit_Util_Getopt' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Getopt.php',
- 'PHPUnit_Util_GlobalState' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/GlobalState.php',
- 'PHPUnit_Util_InvalidArgumentHelper' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/InvalidArgumentHelper.php',
- 'PHPUnit_Util_Log_JSON' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Log/JSON.php',
- 'PHPUnit_Util_Log_JUnit' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Log/JUnit.php',
- 'PHPUnit_Util_Log_TAP' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Log/TAP.php',
- 'PHPUnit_Util_PHP' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/PHP.php',
- 'PHPUnit_Util_PHP_Default' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/PHP/Default.php',
- 'PHPUnit_Util_PHP_Windows' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/PHP/Windows.php',
- 'PHPUnit_Util_Printer' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Printer.php',
- 'PHPUnit_Util_Regex' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Regex.php',
- 'PHPUnit_Util_String' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/String.php',
- 'PHPUnit_Util_Test' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Test.php',
- 'PHPUnit_Util_TestDox_NamePrettifier' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/NamePrettifier.php',
- 'PHPUnit_Util_TestDox_ResultPrinter' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php',
- 'PHPUnit_Util_TestDox_ResultPrinter_HTML' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/ResultPrinter/HTML.php',
- 'PHPUnit_Util_TestDox_ResultPrinter_Text' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestDox/ResultPrinter/Text.php',
- 'PHPUnit_Util_TestSuiteIterator' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/TestSuiteIterator.php',
- 'PHPUnit_Util_Type' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/Type.php',
- 'PHPUnit_Util_XML' => __DIR__ . '/..' . '/phpunit/phpunit/src/Util/XML.php',
- 'PHP_CodeCoverage' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage.php',
- 'PHP_CodeCoverage_Driver' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Driver.php',
- 'PHP_CodeCoverage_Driver_HHVM' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Driver/HHVM.php',
- 'PHP_CodeCoverage_Driver_PHPDBG' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Driver/PHPDBG.php',
- 'PHP_CodeCoverage_Driver_Xdebug' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Driver/Xdebug.php',
- 'PHP_CodeCoverage_Exception' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Exception.php',
- 'PHP_CodeCoverage_Exception_UnintentionallyCoveredCode' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Exception/UnintentionallyCoveredCode.php',
- 'PHP_CodeCoverage_Filter' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Filter.php',
- 'PHP_CodeCoverage_Report_Clover' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Clover.php',
- 'PHP_CodeCoverage_Report_Crap4j' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Crap4j.php',
- 'PHP_CodeCoverage_Report_Factory' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Factory.php',
- 'PHP_CodeCoverage_Report_HTML' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php',
- 'PHP_CodeCoverage_Report_HTML_Renderer' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer.php',
- 'PHP_CodeCoverage_Report_HTML_Renderer_Dashboard' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Dashboard.php',
- 'PHP_CodeCoverage_Report_HTML_Renderer_Directory' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Directory.php',
- 'PHP_CodeCoverage_Report_HTML_Renderer_File' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/File.php',
- 'PHP_CodeCoverage_Report_Node' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php',
- 'PHP_CodeCoverage_Report_Node_Directory' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Directory.php',
- 'PHP_CodeCoverage_Report_Node_File' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php',
- 'PHP_CodeCoverage_Report_Node_Iterator' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Iterator.php',
- 'PHP_CodeCoverage_Report_PHP' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/PHP.php',
- 'PHP_CodeCoverage_Report_Text' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php',
- 'PHP_CodeCoverage_Report_XML' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML.php',
- 'PHP_CodeCoverage_Report_XML_Directory' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Directory.php',
- 'PHP_CodeCoverage_Report_XML_File' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File.php',
- 'PHP_CodeCoverage_Report_XML_File_Coverage' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Coverage.php',
- 'PHP_CodeCoverage_Report_XML_File_Method' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Method.php',
- 'PHP_CodeCoverage_Report_XML_File_Report' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Report.php',
- 'PHP_CodeCoverage_Report_XML_File_Unit' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Unit.php',
- 'PHP_CodeCoverage_Report_XML_Node' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Node.php',
- 'PHP_CodeCoverage_Report_XML_Project' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Project.php',
- 'PHP_CodeCoverage_Report_XML_Tests' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Tests.php',
- 'PHP_CodeCoverage_Report_XML_Totals' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Totals.php',
- 'PHP_CodeCoverage_Util' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Util.php',
- 'PHP_CodeCoverage_Util_InvalidArgumentHelper' => __DIR__ . '/..' . '/phpunit/php-code-coverage/src/CodeCoverage/Util/InvalidArgumentHelper.php',
- 'PHP_Timer' => __DIR__ . '/..' . '/phpunit/php-timer/src/Timer.php',
- 'PHP_Token' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_TokenWithScope' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_TokenWithScopeAndVisibility' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ABSTRACT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_AMPERSAND' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_AND_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ARRAY' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ARRAY_CAST' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_AS' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ASYNC' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_AT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_AWAIT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BACKTICK' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BAD_CHARACTER' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BOOLEAN_AND' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BOOLEAN_OR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BOOL_CAST' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_BREAK' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CALLABLE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CARET' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CASE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CATCH' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CHARACTER' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLASS' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLASS_C' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLASS_NAME_CONSTANT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLONE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLOSE_BRACKET' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLOSE_CURLY' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLOSE_SQUARE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CLOSE_TAG' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_COALESCE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_COLON' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_COMMA' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_COMMENT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_COMPILER_HALT_OFFSET' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CONCAT_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CONST' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CONSTANT_ENCAPSED_STRING' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CONTINUE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_CURLY_OPEN' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DEC' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DECLARE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DEFAULT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DIR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DIV' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DIV_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DNUMBER' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DO' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOC_COMMENT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOLLAR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOLLAR_OPEN_CURLY_BRACES' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOUBLE_ARROW' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOUBLE_CAST' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOUBLE_COLON' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_DOUBLE_QUOTES' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ECHO' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ELLIPSIS' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ELSE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ELSEIF' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EMPTY' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENCAPSED_AND_WHITESPACE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDDECLARE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDFOR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDFOREACH' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDIF' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDSWITCH' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENDWHILE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_END_HEREDOC' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ENUM' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EQUALS' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EVAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EXCLAMATION_MARK' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EXIT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_EXTENDS' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FILE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FINAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FINALLY' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FOR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FOREACH' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FUNCTION' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_FUNC_C' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_GLOBAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_GOTO' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_GT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_HALT_COMPILER' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IF' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IMPLEMENTS' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IN' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INC' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INCLUDE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INCLUDE_ONCE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INLINE_HTML' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INSTANCEOF' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INSTEADOF' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INTERFACE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_INT_CAST' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ISSET' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_GREATER_OR_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_IDENTICAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_NOT_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_NOT_IDENTICAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_IS_SMALLER_OR_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_Includes' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_JOIN' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LAMBDA_ARROW' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LAMBDA_CP' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LAMBDA_OP' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LINE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LIST' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LNUMBER' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LOGICAL_AND' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LOGICAL_OR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LOGICAL_XOR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_LT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_METHOD_C' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_MINUS' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_MINUS_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_MOD_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_MULT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_MUL_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NAMESPACE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NEW' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NS_C' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NS_SEPARATOR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NULLSAFE_OBJECT_OPERATOR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_NUM_STRING' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OBJECT_CAST' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OBJECT_OPERATOR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_ONUMBER' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OPEN_BRACKET' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OPEN_CURLY' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OPEN_SQUARE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OPEN_TAG' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OPEN_TAG_WITH_ECHO' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_OR_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PAAMAYIM_NEKUDOTAYIM' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PERCENT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PIPE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PLUS' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PLUS_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_POW' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_POW_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PRINT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PRIVATE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PROTECTED' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_PUBLIC' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_QUESTION_MARK' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_REQUIRE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_REQUIRE_ONCE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_RETURN' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SEMICOLON' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SHAPE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SL_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SPACESHIP' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SR_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_START_HEREDOC' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_STATIC' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_STRING' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_STRING_CAST' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_STRING_VARNAME' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SUPER' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_SWITCH' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_Stream' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token/Stream.php',
- 'PHP_Token_Stream_CachingFactory' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token/Stream/CachingFactory.php',
- 'PHP_Token_THROW' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TILDE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TRAIT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TRAIT_C' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TRY' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TYPE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TYPELIST_GT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_TYPELIST_LT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_UNSET' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_UNSET_CAST' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_USE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_USE_FUNCTION' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_VAR' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_VARIABLE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_WHERE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_WHILE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_WHITESPACE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_ATTRIBUTE' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_CATEGORY' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_CATEGORY_LABEL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_CHILDREN' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_LABEL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_REQUIRED' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_TAG_GT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_TAG_LT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XHP_TEXT' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_XOR_EQUAL' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_YIELD' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
- 'PHP_Token_YIELD_FROM' => __DIR__ . '/..' . '/phpunit/php-token-stream/src/Token.php',
'ParamProcessor\\Definition\\DimensionParam' => __DIR__ . '/..' . '/param-processor/param-processor/src/Definition/DimensionParam.php',
'ParamProcessor\\Definition\\StringParam' => __DIR__ . '/..' . '/param-processor/param-processor/src/Definition/StringParam.php',
'ParamProcessor\\IParam' => __DIR__ . '/..' . '/param-processor/param-processor/src/IParam.php',
@@ -1720,292 +882,6 @@ class ComposerStaticInit_mediawiki_vendor
'ParserHooks\\HookRegistrant' => __DIR__ . '/..' . '/mediawiki/parser-hooks/src/HookRegistrant.php',
'ParserHooks\\HookRunner' => __DIR__ . '/..' . '/mediawiki/parser-hooks/src/HookRunner.php',
'ParserHooks\\Internal\\Runner' => __DIR__ . '/..' . '/mediawiki/parser-hooks/src/Internal/Runner.php',
- 'PhpParser\\Autoloader' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Autoloader.php',
- 'PhpParser\\Builder' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder.php',
- 'PhpParser\\BuilderAbstract' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/BuilderAbstract.php',
- 'PhpParser\\BuilderFactory' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/BuilderFactory.php',
- 'PhpParser\\Builder\\Class_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/Class_.php',
- 'PhpParser\\Builder\\Declaration' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/Declaration.php',
- 'PhpParser\\Builder\\FunctionLike' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php',
- 'PhpParser\\Builder\\Function_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/Function_.php',
- 'PhpParser\\Builder\\Interface_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/Interface_.php',
- 'PhpParser\\Builder\\Method' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/Method.php',
- 'PhpParser\\Builder\\Namespace_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php',
- 'PhpParser\\Builder\\Param' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/Param.php',
- 'PhpParser\\Builder\\Property' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/Property.php',
- 'PhpParser\\Builder\\Trait_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/Trait_.php',
- 'PhpParser\\Builder\\Use_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Builder/Use_.php',
- 'PhpParser\\Comment' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Comment.php',
- 'PhpParser\\Comment\\Doc' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Comment/Doc.php',
- 'PhpParser\\Error' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Error.php',
- 'PhpParser\\Lexer' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Lexer.php',
- 'PhpParser\\Lexer\\Emulative' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php',
- 'PhpParser\\Node' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node.php',
- 'PhpParser\\NodeAbstract' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/NodeAbstract.php',
- 'PhpParser\\NodeDumper' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/NodeDumper.php',
- 'PhpParser\\NodeTraverser' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/NodeTraverser.php',
- 'PhpParser\\NodeTraverserInterface' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php',
- 'PhpParser\\NodeVisitor' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/NodeVisitor.php',
- 'PhpParser\\NodeVisitorAbstract' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php',
- 'PhpParser\\NodeVisitor\\NameResolver' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php',
- 'PhpParser\\Node\\Arg' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Arg.php',
- 'PhpParser\\Node\\Const_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Const_.php',
- 'PhpParser\\Node\\Expr' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr.php',
- 'PhpParser\\Node\\Expr\\ArrayDimFetch' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php',
- 'PhpParser\\Node\\Expr\\ArrayItem' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php',
- 'PhpParser\\Node\\Expr\\Array_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php',
- 'PhpParser\\Node\\Expr\\Assign' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php',
- 'PhpParser\\Node\\Expr\\AssignOp' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\BitwiseAnd' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\BitwiseOr' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseOr.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\BitwiseXor' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseXor.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Concat' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Div' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Minus' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Minus.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Mod' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Mul' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mul.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Plus' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\Pow' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\ShiftLeft' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftLeft.php',
- 'PhpParser\\Node\\Expr\\AssignOp\\ShiftRight' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftRight.php',
- 'PhpParser\\Node\\Expr\\AssignRef' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php',
- 'PhpParser\\Node\\Expr\\BinaryOp' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\BitwiseAnd' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\BitwiseOr' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\BitwiseXor' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseXor.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\BooleanAnd' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\BooleanOr' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Coalesce' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Concat' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Concat.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Div' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Div.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Equal' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Equal.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Greater' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Greater.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\GreaterOrEqual' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Identical' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\LogicalAnd' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalAnd.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\LogicalOr' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalOr.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\LogicalXor' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalXor.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Minus' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Minus.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Mod' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Mul' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\NotEqual' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\NotIdentical' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Plus' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Pow' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\ShiftLeft' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftLeft.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\ShiftRight' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Smaller' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\SmallerOrEqual' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php',
- 'PhpParser\\Node\\Expr\\BinaryOp\\Spaceship' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Spaceship.php',
- 'PhpParser\\Node\\Expr\\BitwiseNot' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php',
- 'PhpParser\\Node\\Expr\\BooleanNot' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php',
- 'PhpParser\\Node\\Expr\\Cast' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php',
- 'PhpParser\\Node\\Expr\\Cast\\Array_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php',
- 'PhpParser\\Node\\Expr\\Cast\\Bool_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php',
- 'PhpParser\\Node\\Expr\\Cast\\Double' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php',
- 'PhpParser\\Node\\Expr\\Cast\\Int_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Int_.php',
- 'PhpParser\\Node\\Expr\\Cast\\Object_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Object_.php',
- 'PhpParser\\Node\\Expr\\Cast\\String_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/String_.php',
- 'PhpParser\\Node\\Expr\\Cast\\Unset_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php',
- 'PhpParser\\Node\\Expr\\ClassConstFetch' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php',
- 'PhpParser\\Node\\Expr\\Clone_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php',
- 'PhpParser\\Node\\Expr\\Closure' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php',
- 'PhpParser\\Node\\Expr\\ClosureUse' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php',
- 'PhpParser\\Node\\Expr\\ConstFetch' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.php',
- 'PhpParser\\Node\\Expr\\Empty_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php',
- 'PhpParser\\Node\\Expr\\ErrorSuppress' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php',
- 'PhpParser\\Node\\Expr\\Eval_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php',
- 'PhpParser\\Node\\Expr\\Exit_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php',
- 'PhpParser\\Node\\Expr\\FuncCall' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php',
- 'PhpParser\\Node\\Expr\\Include_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php',
- 'PhpParser\\Node\\Expr\\Instanceof_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php',
- 'PhpParser\\Node\\Expr\\Isset_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php',
- 'PhpParser\\Node\\Expr\\List_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php',
- 'PhpParser\\Node\\Expr\\MethodCall' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php',
- 'PhpParser\\Node\\Expr\\New_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php',
- 'PhpParser\\Node\\Expr\\PostDec' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php',
- 'PhpParser\\Node\\Expr\\PostInc' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php',
- 'PhpParser\\Node\\Expr\\PreDec' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php',
- 'PhpParser\\Node\\Expr\\PreInc' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php',
- 'PhpParser\\Node\\Expr\\Print_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php',
- 'PhpParser\\Node\\Expr\\PropertyFetch' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php',
- 'PhpParser\\Node\\Expr\\ShellExec' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php',
- 'PhpParser\\Node\\Expr\\StaticCall' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php',
- 'PhpParser\\Node\\Expr\\StaticPropertyFetch' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php',
- 'PhpParser\\Node\\Expr\\Ternary' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php',
- 'PhpParser\\Node\\Expr\\UnaryMinus' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php',
- 'PhpParser\\Node\\Expr\\UnaryPlus' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php',
- 'PhpParser\\Node\\Expr\\Variable' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php',
- 'PhpParser\\Node\\Expr\\YieldFrom' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php',
- 'PhpParser\\Node\\Expr\\Yield_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php',
- 'PhpParser\\Node\\FunctionLike' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php',
- 'PhpParser\\Node\\Name' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Name.php',
- 'PhpParser\\Node\\Name\\FullyQualified' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php',
- 'PhpParser\\Node\\Name\\Relative' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php',
- 'PhpParser\\Node\\Param' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Param.php',
- 'PhpParser\\Node\\Scalar' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar.php',
- 'PhpParser\\Node\\Scalar\\DNumber' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php',
- 'PhpParser\\Node\\Scalar\\Encapsed' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php',
- 'PhpParser\\Node\\Scalar\\EncapsedStringPart' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php',
- 'PhpParser\\Node\\Scalar\\LNumber' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php',
- 'PhpParser\\Node\\Scalar\\MagicConst' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Class_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Dir' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\File' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Function_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Function_.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Line' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Method' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Namespace_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php',
- 'PhpParser\\Node\\Scalar\\MagicConst\\Trait_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php',
- 'PhpParser\\Node\\Scalar\\String_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php',
- 'PhpParser\\Node\\Stmt' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt.php',
- 'PhpParser\\Node\\Stmt\\Break_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php',
- 'PhpParser\\Node\\Stmt\\Case_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php',
- 'PhpParser\\Node\\Stmt\\Catch_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php',
- 'PhpParser\\Node\\Stmt\\ClassConst' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php',
- 'PhpParser\\Node\\Stmt\\ClassLike' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php',
- 'PhpParser\\Node\\Stmt\\ClassMethod' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php',
- 'PhpParser\\Node\\Stmt\\Class_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php',
- 'PhpParser\\Node\\Stmt\\Const_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php',
- 'PhpParser\\Node\\Stmt\\Continue_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php',
- 'PhpParser\\Node\\Stmt\\DeclareDeclare' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php',
- 'PhpParser\\Node\\Stmt\\Declare_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php',
- 'PhpParser\\Node\\Stmt\\Do_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php',
- 'PhpParser\\Node\\Stmt\\Echo_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php',
- 'PhpParser\\Node\\Stmt\\ElseIf_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php',
- 'PhpParser\\Node\\Stmt\\Else_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php',
- 'PhpParser\\Node\\Stmt\\For_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php',
- 'PhpParser\\Node\\Stmt\\Foreach_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Foreach_.php',
- 'PhpParser\\Node\\Stmt\\Function_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php',
- 'PhpParser\\Node\\Stmt\\Global_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php',
- 'PhpParser\\Node\\Stmt\\Goto_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php',
- 'PhpParser\\Node\\Stmt\\GroupUse' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php',
- 'PhpParser\\Node\\Stmt\\HaltCompiler' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php',
- 'PhpParser\\Node\\Stmt\\If_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/If_.php',
- 'PhpParser\\Node\\Stmt\\InlineHTML' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php',
- 'PhpParser\\Node\\Stmt\\Interface_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Interface_.php',
- 'PhpParser\\Node\\Stmt\\Label' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php',
- 'PhpParser\\Node\\Stmt\\Namespace_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php',
- 'PhpParser\\Node\\Stmt\\Nop' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php',
- 'PhpParser\\Node\\Stmt\\Property' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php',
- 'PhpParser\\Node\\Stmt\\PropertyProperty' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php',
- 'PhpParser\\Node\\Stmt\\Return_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php',
- 'PhpParser\\Node\\Stmt\\StaticVar' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php',
- 'PhpParser\\Node\\Stmt\\Static_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php',
- 'PhpParser\\Node\\Stmt\\Switch_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php',
- 'PhpParser\\Node\\Stmt\\Throw_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php',
- 'PhpParser\\Node\\Stmt\\TraitUse' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php',
- 'PhpParser\\Node\\Stmt\\TraitUseAdaptation' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php',
- 'PhpParser\\Node\\Stmt\\TraitUseAdaptation\\Alias' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php',
- 'PhpParser\\Node\\Stmt\\TraitUseAdaptation\\Precedence' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php',
- 'PhpParser\\Node\\Stmt\\Trait_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php',
- 'PhpParser\\Node\\Stmt\\TryCatch' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php',
- 'PhpParser\\Node\\Stmt\\Unset_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php',
- 'PhpParser\\Node\\Stmt\\UseUse' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php',
- 'PhpParser\\Node\\Stmt\\Use_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php',
- 'PhpParser\\Node\\Stmt\\While_' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php',
- 'PhpParser\\Parser' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Parser.php',
- 'PhpParser\\ParserAbstract' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/ParserAbstract.php',
- 'PhpParser\\ParserFactory' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/ParserFactory.php',
- 'PhpParser\\Parser\\Multiple' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Parser/Multiple.php',
- 'PhpParser\\Parser\\Php5' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Parser/Php5.php',
- 'PhpParser\\Parser\\Php7' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Parser/Php7.php',
- 'PhpParser\\Parser\\Tokens' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Parser/Tokens.php',
- 'PhpParser\\PrettyPrinterAbstract' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php',
- 'PhpParser\\PrettyPrinter\\Standard' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php',
- 'PhpParser\\Serializer' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Serializer.php',
- 'PhpParser\\Serializer\\XML' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Serializer/XML.php',
- 'PhpParser\\Unserializer' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Unserializer.php',
- 'PhpParser\\Unserializer\\XML' => __DIR__ . '/..' . '/nikic/php-parser/lib/PhpParser/Unserializer/XML.php',
- 'Prophecy\\Argument' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument.php',
- 'Prophecy\\Argument\\ArgumentsWildcard' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php',
- 'Prophecy\\Argument\\Token\\AnyValueToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php',
- 'Prophecy\\Argument\\Token\\AnyValuesToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValuesToken.php',
- 'Prophecy\\Argument\\Token\\ApproximateValueToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/ApproximateValueToken.php',
- 'Prophecy\\Argument\\Token\\ArrayCountToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayCountToken.php',
- 'Prophecy\\Argument\\Token\\ArrayEntryToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEntryToken.php',
- 'Prophecy\\Argument\\Token\\ArrayEveryEntryToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEveryEntryToken.php',
- 'Prophecy\\Argument\\Token\\CallbackToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/CallbackToken.php',
- 'Prophecy\\Argument\\Token\\ExactValueToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/ExactValueToken.php',
- 'Prophecy\\Argument\\Token\\IdenticalValueToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/IdenticalValueToken.php',
- 'Prophecy\\Argument\\Token\\LogicalAndToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalAndToken.php',
- 'Prophecy\\Argument\\Token\\LogicalNotToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalNotToken.php',
- 'Prophecy\\Argument\\Token\\ObjectStateToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php',
- 'Prophecy\\Argument\\Token\\StringContainsToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/StringContainsToken.php',
- 'Prophecy\\Argument\\Token\\TokenInterface' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/TokenInterface.php',
- 'Prophecy\\Argument\\Token\\TypeToken' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Argument/Token/TypeToken.php',
- 'Prophecy\\Call\\Call' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Call/Call.php',
- 'Prophecy\\Call\\CallCenter' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Call/CallCenter.php',
- 'Prophecy\\Comparator\\ClosureComparator' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Comparator/ClosureComparator.php',
- 'Prophecy\\Comparator\\Factory' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Comparator/Factory.php',
- 'Prophecy\\Comparator\\ProphecyComparator' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Comparator/ProphecyComparator.php',
- 'Prophecy\\Doubler\\CachedDoubler' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/CachedDoubler.php',
- 'Prophecy\\Doubler\\ClassPatch\\ClassPatchInterface' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php',
- 'Prophecy\\Doubler\\ClassPatch\\DisableConstructorPatch' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\HhvmExceptionPatch' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\KeywordPatch' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/KeywordPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\MagicCallPatch' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/MagicCallPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\ProphecySubjectPatch' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\ReflectionClassNewInstancePatch' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\SplFileInfoPatch' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\ThrowablePatch' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ThrowablePatch.php',
- 'Prophecy\\Doubler\\ClassPatch\\TraversablePatch' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/TraversablePatch.php',
- 'Prophecy\\Doubler\\DoubleInterface' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/DoubleInterface.php',
- 'Prophecy\\Doubler\\Doubler' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/Doubler.php',
- 'Prophecy\\Doubler\\Generator\\ClassCodeGenerator' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCodeGenerator.php',
- 'Prophecy\\Doubler\\Generator\\ClassCreator' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php',
- 'Prophecy\\Doubler\\Generator\\ClassMirror' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassMirror.php',
- 'Prophecy\\Doubler\\Generator\\Node\\ArgumentNode' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentNode.php',
- 'Prophecy\\Doubler\\Generator\\Node\\ClassNode' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php',
- 'Prophecy\\Doubler\\Generator\\Node\\MethodNode' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php',
- 'Prophecy\\Doubler\\Generator\\ReflectionInterface' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/ReflectionInterface.php',
- 'Prophecy\\Doubler\\Generator\\TypeHintReference' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/Generator/TypeHintReference.php',
- 'Prophecy\\Doubler\\LazyDouble' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/LazyDouble.php',
- 'Prophecy\\Doubler\\NameGenerator' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Doubler/NameGenerator.php',
- 'Prophecy\\Exception\\Call\\UnexpectedCallException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Call/UnexpectedCallException.php',
- 'Prophecy\\Exception\\Doubler\\ClassCreatorException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassCreatorException.php',
- 'Prophecy\\Exception\\Doubler\\ClassMirrorException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassMirrorException.php',
- 'Prophecy\\Exception\\Doubler\\ClassNotFoundException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassNotFoundException.php',
- 'Prophecy\\Exception\\Doubler\\DoubleException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoubleException.php',
- 'Prophecy\\Exception\\Doubler\\DoublerException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoublerException.php',
- 'Prophecy\\Exception\\Doubler\\InterfaceNotFoundException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/InterfaceNotFoundException.php',
- 'Prophecy\\Exception\\Doubler\\MethodNotExtendableException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php',
- 'Prophecy\\Exception\\Doubler\\MethodNotFoundException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotFoundException.php',
- 'Prophecy\\Exception\\Doubler\\ReturnByReferenceException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Doubler/ReturnByReferenceException.php',
- 'Prophecy\\Exception\\Exception' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Exception.php',
- 'Prophecy\\Exception\\InvalidArgumentException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/InvalidArgumentException.php',
- 'Prophecy\\Exception\\Prediction\\AggregateException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php',
- 'Prophecy\\Exception\\Prediction\\FailedPredictionException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/FailedPredictionException.php',
- 'Prophecy\\Exception\\Prediction\\NoCallsException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/NoCallsException.php',
- 'Prophecy\\Exception\\Prediction\\PredictionException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/PredictionException.php',
- 'Prophecy\\Exception\\Prediction\\UnexpectedCallsCountException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php',
- 'Prophecy\\Exception\\Prediction\\UnexpectedCallsException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsException.php',
- 'Prophecy\\Exception\\Prophecy\\MethodProphecyException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Prophecy/MethodProphecyException.php',
- 'Prophecy\\Exception\\Prophecy\\ObjectProphecyException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ObjectProphecyException.php',
- 'Prophecy\\Exception\\Prophecy\\ProphecyException' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ProphecyException.php',
- 'Prophecy\\PhpDocumentor\\ClassAndInterfaceTagRetriever' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php',
- 'Prophecy\\PhpDocumentor\\ClassTagRetriever' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassTagRetriever.php',
- 'Prophecy\\PhpDocumentor\\LegacyClassTagRetriever' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/PhpDocumentor/LegacyClassTagRetriever.php',
- 'Prophecy\\PhpDocumentor\\MethodTagRetrieverInterface' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/PhpDocumentor/MethodTagRetrieverInterface.php',
- 'Prophecy\\Prediction\\CallPrediction' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prediction/CallPrediction.php',
- 'Prophecy\\Prediction\\CallTimesPrediction' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prediction/CallTimesPrediction.php',
- 'Prophecy\\Prediction\\CallbackPrediction' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prediction/CallbackPrediction.php',
- 'Prophecy\\Prediction\\NoCallsPrediction' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prediction/NoCallsPrediction.php',
- 'Prophecy\\Prediction\\PredictionInterface' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prediction/PredictionInterface.php',
- 'Prophecy\\Promise\\CallbackPromise' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Promise/CallbackPromise.php',
- 'Prophecy\\Promise\\PromiseInterface' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Promise/PromiseInterface.php',
- 'Prophecy\\Promise\\ReturnArgumentPromise' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Promise/ReturnArgumentPromise.php',
- 'Prophecy\\Promise\\ReturnPromise' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Promise/ReturnPromise.php',
- 'Prophecy\\Promise\\ThrowPromise' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Promise/ThrowPromise.php',
- 'Prophecy\\Prophecy\\MethodProphecy' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php',
- 'Prophecy\\Prophecy\\ObjectProphecy' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php',
- 'Prophecy\\Prophecy\\ProphecyInterface' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prophecy/ProphecyInterface.php',
- 'Prophecy\\Prophecy\\ProphecySubjectInterface' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prophecy/ProphecySubjectInterface.php',
- 'Prophecy\\Prophecy\\Revealer' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prophecy/Revealer.php',
- 'Prophecy\\Prophecy\\RevealerInterface' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prophecy/RevealerInterface.php',
- 'Prophecy\\Prophet' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Prophet.php',
- 'Prophecy\\Util\\ExportUtil' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Util/ExportUtil.php',
- 'Prophecy\\Util\\StringUtil' => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy/Util/StringUtil.php',
'Psr\\Log\\AbstractLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/AbstractLogger.php',
'Psr\\Log\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/log/Psr/Log/InvalidArgumentException.php',
'Psr\\Log\\LogLevel' => __DIR__ . '/..' . '/psr/log/Psr/Log/LogLevel.php',
@@ -2016,129 +892,6 @@ class ComposerStaticInit_mediawiki_vendor
'Psr\\Log\\NullLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/NullLogger.php',
'Psr\\Log\\Test\\DummyTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
'Psr\\Log\\Test\\LoggerInterfaceTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
- 'Psy\\Autoloader' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Autoloader.php',
- 'Psy\\CodeCleaner' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner.php',
- 'Psy\\CodeCleaner\\AbstractClassPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/AbstractClassPass.php',
- 'Psy\\CodeCleaner\\AssignThisVariablePass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/AssignThisVariablePass.php',
- 'Psy\\CodeCleaner\\CallTimePassByReferencePass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/CallTimePassByReferencePass.php',
- 'Psy\\CodeCleaner\\CalledClassPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/CalledClassPass.php',
- 'Psy\\CodeCleaner\\CodeCleanerPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/CodeCleanerPass.php',
- 'Psy\\CodeCleaner\\ExitPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/ExitPass.php',
- 'Psy\\CodeCleaner\\FinalClassPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/FinalClassPass.php',
- 'Psy\\CodeCleaner\\FunctionReturnInWriteContextPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/FunctionReturnInWriteContextPass.php',
- 'Psy\\CodeCleaner\\ImplicitReturnPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/ImplicitReturnPass.php',
- 'Psy\\CodeCleaner\\InstanceOfPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/InstanceOfPass.php',
- 'Psy\\CodeCleaner\\LeavePsyshAlonePass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/LeavePsyshAlonePass.php',
- 'Psy\\CodeCleaner\\LegacyEmptyPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/LegacyEmptyPass.php',
- 'Psy\\CodeCleaner\\LoopContextPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/LoopContextPass.php',
- 'Psy\\CodeCleaner\\MagicConstantsPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/MagicConstantsPass.php',
- 'Psy\\CodeCleaner\\NamespaceAwarePass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/NamespaceAwarePass.php',
- 'Psy\\CodeCleaner\\NamespacePass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/NamespacePass.php',
- 'Psy\\CodeCleaner\\NoReturnValue' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/NoReturnValue.php',
- 'Psy\\CodeCleaner\\PassableByReferencePass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/PassableByReferencePass.php',
- 'Psy\\CodeCleaner\\StaticConstructorPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/StaticConstructorPass.php',
- 'Psy\\CodeCleaner\\StrictTypesPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/StrictTypesPass.php',
- 'Psy\\CodeCleaner\\UseStatementPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/UseStatementPass.php',
- 'Psy\\CodeCleaner\\ValidClassNamePass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/ValidClassNamePass.php',
- 'Psy\\CodeCleaner\\ValidConstantPass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/ValidConstantPass.php',
- 'Psy\\CodeCleaner\\ValidFunctionNamePass' => __DIR__ . '/..' . '/psy/psysh/src/Psy/CodeCleaner/ValidFunctionNamePass.php',
- 'Psy\\Command\\BufferCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/BufferCommand.php',
- 'Psy\\Command\\ClearCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ClearCommand.php',
- 'Psy\\Command\\Command' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/Command.php',
- 'Psy\\Command\\DocCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/DocCommand.php',
- 'Psy\\Command\\DumpCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/DumpCommand.php',
- 'Psy\\Command\\ExitCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ExitCommand.php',
- 'Psy\\Command\\HelpCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/HelpCommand.php',
- 'Psy\\Command\\HistoryCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/HistoryCommand.php',
- 'Psy\\Command\\ListCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand.php',
- 'Psy\\Command\\ListCommand\\ClassConstantEnumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/ClassConstantEnumerator.php',
- 'Psy\\Command\\ListCommand\\ClassEnumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/ClassEnumerator.php',
- 'Psy\\Command\\ListCommand\\ConstantEnumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/ConstantEnumerator.php',
- 'Psy\\Command\\ListCommand\\Enumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/Enumerator.php',
- 'Psy\\Command\\ListCommand\\FunctionEnumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/FunctionEnumerator.php',
- 'Psy\\Command\\ListCommand\\GlobalVariableEnumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/GlobalVariableEnumerator.php',
- 'Psy\\Command\\ListCommand\\InterfaceEnumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/InterfaceEnumerator.php',
- 'Psy\\Command\\ListCommand\\MethodEnumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/MethodEnumerator.php',
- 'Psy\\Command\\ListCommand\\PropertyEnumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/PropertyEnumerator.php',
- 'Psy\\Command\\ListCommand\\TraitEnumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/TraitEnumerator.php',
- 'Psy\\Command\\ListCommand\\VariableEnumerator' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ListCommand/VariableEnumerator.php',
- 'Psy\\Command\\ParseCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ParseCommand.php',
- 'Psy\\Command\\PsyVersionCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/PsyVersionCommand.php',
- 'Psy\\Command\\ReflectingCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ReflectingCommand.php',
- 'Psy\\Command\\ShowCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ShowCommand.php',
- 'Psy\\Command\\SudoCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/SudoCommand.php',
- 'Psy\\Command\\ThrowUpCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/ThrowUpCommand.php',
- 'Psy\\Command\\TraceCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/TraceCommand.php',
- 'Psy\\Command\\WhereamiCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/WhereamiCommand.php',
- 'Psy\\Command\\WtfCommand' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Command/WtfCommand.php',
- 'Psy\\Compiler' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Compiler.php',
- 'Psy\\ConfigPaths' => __DIR__ . '/..' . '/psy/psysh/src/Psy/ConfigPaths.php',
- 'Psy\\Configuration' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Configuration.php',
- 'Psy\\ConsoleColorFactory' => __DIR__ . '/..' . '/psy/psysh/src/Psy/ConsoleColorFactory.php',
- 'Psy\\Context' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Context.php',
- 'Psy\\ContextAware' => __DIR__ . '/..' . '/psy/psysh/src/Psy/ContextAware.php',
- 'Psy\\Exception\\BreakException' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Exception/BreakException.php',
- 'Psy\\Exception\\DeprecatedException' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Exception/DeprecatedException.php',
- 'Psy\\Exception\\ErrorException' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Exception/ErrorException.php',
- 'Psy\\Exception\\Exception' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Exception/Exception.php',
- 'Psy\\Exception\\FatalErrorException' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Exception/FatalErrorException.php',
- 'Psy\\Exception\\ParseErrorException' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Exception/ParseErrorException.php',
- 'Psy\\Exception\\RuntimeException' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Exception/RuntimeException.php',
- 'Psy\\Exception\\ThrowUpException' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Exception/ThrowUpException.php',
- 'Psy\\Exception\\TypeErrorException' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Exception/TypeErrorException.php',
- 'Psy\\ExecutionLoop\\ForkingLoop' => __DIR__ . '/..' . '/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php',
- 'Psy\\ExecutionLoop\\Loop' => __DIR__ . '/..' . '/psy/psysh/src/Psy/ExecutionLoop/Loop.php',
- 'Psy\\Formatter\\CodeFormatter' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Formatter/CodeFormatter.php',
- 'Psy\\Formatter\\DocblockFormatter' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Formatter/DocblockFormatter.php',
- 'Psy\\Formatter\\Formatter' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Formatter/Formatter.php',
- 'Psy\\Formatter\\SignatureFormatter' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Formatter/SignatureFormatter.php',
- 'Psy\\Input\\CodeArgument' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Input/CodeArgument.php',
- 'Psy\\Input\\FilterOptions' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Input/FilterOptions.php',
- 'Psy\\Input\\ShellInput' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Input/ShellInput.php',
- 'Psy\\Input\\SilentInput' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Input/SilentInput.php',
- 'Psy\\Output\\OutputPager' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Output/OutputPager.php',
- 'Psy\\Output\\PassthruPager' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Output/PassthruPager.php',
- 'Psy\\Output\\ProcOutputPager' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Output/ProcOutputPager.php',
- 'Psy\\Output\\ShellOutput' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Output/ShellOutput.php',
- 'Psy\\ParserFactory' => __DIR__ . '/..' . '/psy/psysh/src/Psy/ParserFactory.php',
- 'Psy\\Readline\\GNUReadline' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Readline/GNUReadline.php',
- 'Psy\\Readline\\HoaConsole' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Readline/HoaConsole.php',
- 'Psy\\Readline\\Libedit' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Readline/Libedit.php',
- 'Psy\\Readline\\Readline' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Readline/Readline.php',
- 'Psy\\Readline\\Transient' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Readline/Transient.php',
- 'Psy\\Reflection\\ReflectionConstant' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Reflection/ReflectionConstant.php',
- 'Psy\\Reflection\\ReflectionLanguageConstruct' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstruct.php',
- 'Psy\\Reflection\\ReflectionLanguageConstructParameter' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstructParameter.php',
- 'Psy\\Shell' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Shell.php',
- 'Psy\\Sudo' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Sudo.php',
- 'Psy\\Sudo\\SudoVisitor' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Sudo/SudoVisitor.php',
- 'Psy\\TabCompletion\\AutoCompleter' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/AutoCompleter.php',
- 'Psy\\TabCompletion\\Matcher\\AbstractContextAwareMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractContextAwareMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\AbstractMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ClassAttributesMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/ClassAttributesMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ClassMethodsMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/ClassMethodsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ClassNamesMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/ClassNamesMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\CommandsMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/CommandsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ConstantsMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/ConstantsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\FunctionsMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/FunctionsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\KeywordsMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/KeywordsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\MongoClientMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/MongoClientMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\MongoDatabaseMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ObjectAttributesMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectAttributesMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\ObjectMethodsMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectMethodsMatcher.php',
- 'Psy\\TabCompletion\\Matcher\\VariablesMatcher' => __DIR__ . '/..' . '/psy/psysh/src/Psy/TabCompletion/Matcher/VariablesMatcher.php',
- 'Psy\\Util\\Docblock' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Util/Docblock.php',
- 'Psy\\Util\\Json' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Util/Json.php',
- 'Psy\\Util\\Mirror' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Util/Mirror.php',
- 'Psy\\Util\\Str' => __DIR__ . '/..' . '/psy/psysh/src/Psy/Util/Str.php',
- 'Psy\\VarDumper\\Cloner' => __DIR__ . '/..' . '/psy/psysh/src/Psy/VarDumper/Cloner.php',
- 'Psy\\VarDumper\\Dumper' => __DIR__ . '/..' . '/psy/psysh/src/Psy/VarDumper/Dumper.php',
- 'Psy\\VarDumper\\Presenter' => __DIR__ . '/..' . '/psy/psysh/src/Psy/VarDumper/Presenter.php',
- 'Psy\\VarDumper\\PresenterAware' => __DIR__ . '/..' . '/psy/psysh/src/Psy/VarDumper/PresenterAware.php',
- 'Psy\\VersionUpdater\\Checker' => __DIR__ . '/..' . '/psy/psysh/src/Psy/VersionUpdater/Checker.php',
- 'Psy\\VersionUpdater\\GitHubChecker' => __DIR__ . '/..' . '/psy/psysh/src/Psy/VersionUpdater/GitHubChecker.php',
- 'Psy\\VersionUpdater\\IntervalChecker' => __DIR__ . '/..' . '/psy/psysh/src/Psy/VersionUpdater/IntervalChecker.php',
- 'Psy\\VersionUpdater\\NoopChecker' => __DIR__ . '/..' . '/psy/psysh/src/Psy/VersionUpdater/NoopChecker.php',
'React\\Promise\\CancellablePromiseInterface' => __DIR__ . '/..' . '/react/promise/src/CancellablePromiseInterface.php',
'React\\Promise\\CancellationQueue' => __DIR__ . '/..' . '/react/promise/src/CancellationQueue.php',
'React\\Promise\\Deferred' => __DIR__ . '/..' . '/react/promise/src/Deferred.php',
@@ -2224,6 +977,11 @@ class ComposerStaticInit_mediawiki_vendor
'RemexHtml\\TreeBuilder\\TreeMutationTracer' => __DIR__ . '/..' . '/wikimedia/remex-html/RemexHtml/TreeBuilder/TreeMutationTracer.php',
'RunningStat\\PSquare' => __DIR__ . '/..' . '/wikimedia/running-stat/src/PSquare.php',
'RunningStat\\RunningStat' => __DIR__ . '/..' . '/wikimedia/running-stat/src/RunningStat.php',
+ 'SFS\\ApiSemanticFormsSelect' => __DIR__ . '/../..' . '/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelect.php',
+ 'SFS\\ApiSemanticFormsSelectRequestProcessor' => __DIR__ . '/../..' . '/extensions/SemanticFormsSelect/src/ApiSemanticFormsSelectRequestProcessor.php',
+ 'SFS\\Output' => __DIR__ . '/../..' . '/extensions/SemanticFormsSelect/src/Output.php',
+ 'SFS\\SelectField' => __DIR__ . '/../..' . '/extensions/SemanticFormsSelect/src/SelectField.php',
+ 'SFS\\SemanticFormsSelectInput' => __DIR__ . '/../..' . '/extensions/SemanticFormsSelect/src/SemanticFormsSelectInput.php',
'SMWCategoryResultPrinter' => __DIR__ . '/../..' . '/extensions/SemanticMediaWiki/includes/IdeAliases.php',
'SMWConceptValue' => __DIR__ . '/../..' . '/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Concept.php',
'SMWDIBlob' => __DIR__ . '/../..' . '/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Blob.php',
@@ -3013,47 +1771,6 @@ class ComposerStaticInit_mediawiki_vendor
'SMW\\Utils\\Timer' => __DIR__ . '/../..' . '/extensions/SemanticMediaWiki/src/Utils/Timer.php',
'SMW\\Utils\\Tokenizer' => __DIR__ . '/../..' . '/extensions/SemanticMediaWiki/src/Utils/Tokenizer.php',
'SMW\\WantedPropertiesQueryPage' => __DIR__ . '/../..' . '/extensions/SemanticMediaWiki/includes/querypages/WantedPropertiesQueryPage.php',
- 'SebastianBergmann\\Comparator\\ArrayComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/ArrayComparator.php',
- 'SebastianBergmann\\Comparator\\Comparator' => __DIR__ . '/..' . '/sebastian/comparator/src/Comparator.php',
- 'SebastianBergmann\\Comparator\\ComparisonFailure' => __DIR__ . '/..' . '/sebastian/comparator/src/ComparisonFailure.php',
- 'SebastianBergmann\\Comparator\\DOMNodeComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/DOMNodeComparator.php',
- 'SebastianBergmann\\Comparator\\DateTimeComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/DateTimeComparator.php',
- 'SebastianBergmann\\Comparator\\DoubleComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/DoubleComparator.php',
- 'SebastianBergmann\\Comparator\\ExceptionComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/ExceptionComparator.php',
- 'SebastianBergmann\\Comparator\\Factory' => __DIR__ . '/..' . '/sebastian/comparator/src/Factory.php',
- 'SebastianBergmann\\Comparator\\MockObjectComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/MockObjectComparator.php',
- 'SebastianBergmann\\Comparator\\NumericComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/NumericComparator.php',
- 'SebastianBergmann\\Comparator\\ObjectComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/ObjectComparator.php',
- 'SebastianBergmann\\Comparator\\ResourceComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/ResourceComparator.php',
- 'SebastianBergmann\\Comparator\\ScalarComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/ScalarComparator.php',
- 'SebastianBergmann\\Comparator\\SplObjectStorageComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/SplObjectStorageComparator.php',
- 'SebastianBergmann\\Comparator\\TypeComparator' => __DIR__ . '/..' . '/sebastian/comparator/src/TypeComparator.php',
- 'SebastianBergmann\\Diff\\Chunk' => __DIR__ . '/..' . '/sebastian/diff/src/Chunk.php',
- 'SebastianBergmann\\Diff\\Diff' => __DIR__ . '/..' . '/sebastian/diff/src/Diff.php',
- 'SebastianBergmann\\Diff\\Differ' => __DIR__ . '/..' . '/sebastian/diff/src/Differ.php',
- 'SebastianBergmann\\Diff\\LCS\\LongestCommonSubsequence' => __DIR__ . '/..' . '/sebastian/diff/src/LCS/LongestCommonSubsequence.php',
- 'SebastianBergmann\\Diff\\LCS\\MemoryEfficientImplementation' => __DIR__ . '/..' . '/sebastian/diff/src/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php',
- 'SebastianBergmann\\Diff\\LCS\\TimeEfficientImplementation' => __DIR__ . '/..' . '/sebastian/diff/src/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php',
- 'SebastianBergmann\\Diff\\Line' => __DIR__ . '/..' . '/sebastian/diff/src/Line.php',
- 'SebastianBergmann\\Diff\\Parser' => __DIR__ . '/..' . '/sebastian/diff/src/Parser.php',
- 'SebastianBergmann\\Environment\\Console' => __DIR__ . '/..' . '/sebastian/environment/src/Console.php',
- 'SebastianBergmann\\Environment\\Runtime' => __DIR__ . '/..' . '/sebastian/environment/src/Runtime.php',
- 'SebastianBergmann\\Exporter\\Exporter' => __DIR__ . '/..' . '/sebastian/exporter/src/Exporter.php',
- 'SebastianBergmann\\GlobalState\\Blacklist' => __DIR__ . '/..' . '/sebastian/global-state/src/Blacklist.php',
- 'SebastianBergmann\\GlobalState\\CodeExporter' => __DIR__ . '/..' . '/sebastian/global-state/src/CodeExporter.php',
- 'SebastianBergmann\\GlobalState\\Exception' => __DIR__ . '/..' . '/sebastian/global-state/src/Exception.php',
- 'SebastianBergmann\\GlobalState\\Restorer' => __DIR__ . '/..' . '/sebastian/global-state/src/Restorer.php',
- 'SebastianBergmann\\GlobalState\\RuntimeException' => __DIR__ . '/..' . '/sebastian/global-state/src/RuntimeException.php',
- 'SebastianBergmann\\GlobalState\\Snapshot' => __DIR__ . '/..' . '/sebastian/global-state/src/Snapshot.php',
- 'SebastianBergmann\\RecursionContext\\Context' => __DIR__ . '/..' . '/sebastian/recursion-context/src/Context.php',
- 'SebastianBergmann\\RecursionContext\\Exception' => __DIR__ . '/..' . '/sebastian/recursion-context/src/Exception.php',
- 'SebastianBergmann\\RecursionContext\\InvalidArgumentException' => __DIR__ . '/..' . '/sebastian/recursion-context/src/InvalidArgumentException.php',
- 'SebastianBergmann\\Version' => __DIR__ . '/..' . '/sebastian/version/src/Version.php',
- 'Seld\\JsonLint\\DuplicateKeyException' => __DIR__ . '/..' . '/seld/jsonlint/src/Seld/JsonLint/DuplicateKeyException.php',
- 'Seld\\JsonLint\\JsonParser' => __DIR__ . '/..' . '/seld/jsonlint/src/Seld/JsonLint/JsonParser.php',
- 'Seld\\JsonLint\\Lexer' => __DIR__ . '/..' . '/seld/jsonlint/src/Seld/JsonLint/Lexer.php',
- 'Seld\\JsonLint\\ParsingException' => __DIR__ . '/..' . '/seld/jsonlint/src/Seld/JsonLint/ParsingException.php',
- 'Seld\\JsonLint\\Undefined' => __DIR__ . '/..' . '/seld/jsonlint/src/Seld/JsonLint/Undefined.php',
'Serializers\\DispatchableSerializer' => __DIR__ . '/..' . '/serialization/serialization/src/Serializers/DispatchableSerializer.php',
'Serializers\\DispatchingSerializer' => __DIR__ . '/..' . '/serialization/serialization/src/Serializers/DispatchingSerializer.php',
'Serializers\\Exceptions\\SerializationException' => __DIR__ . '/..' . '/serialization/serialization/src/Serializers/Exceptions/SerializationException.php',
@@ -3064,6 +1781,8 @@ class ComposerStaticInit_mediawiki_vendor
'Skins\\Chameleon\\Components\\Cell' => __DIR__ . '/../..' . '/skins/chameleon/src/Components/Cell.php',
'Skins\\Chameleon\\Components\\Component' => __DIR__ . '/../..' . '/skins/chameleon/src/Components/Component.php',
'Skins\\Chameleon\\Components\\Container' => __DIR__ . '/../..' . '/skins/chameleon/src/Components/Container.php',
+ 'Skins\\Chameleon\\Components\\ContentBody' => __DIR__ . '/../..' . '/skins/chameleon/src/Components/ContentBody.php',
+ 'Skins\\Chameleon\\Components\\ContentHeader' => __DIR__ . '/../..' . '/skins/chameleon/src/Components/ContentHeader.php',
'Skins\\Chameleon\\Components\\FooterIcons' => __DIR__ . '/../..' . '/skins/chameleon/src/Components/FooterIcons.php',
'Skins\\Chameleon\\Components\\FooterInfo' => __DIR__ . '/../..' . '/skins/chameleon/src/Components/FooterInfo.php',
'Skins\\Chameleon\\Components\\FooterPlaces' => __DIR__ . '/../..' . '/skins/chameleon/src/Components/FooterPlaces.php',
@@ -3137,83 +1856,6 @@ class ComposerStaticInit_mediawiki_vendor
'Skins\\Chameleon\\Tests\\Util\\DocumentElementFinder' => __DIR__ . '/../..' . '/skins/chameleon/tests/phpunit/Util/DocumentElementFinder.php',
'Skins\\Chameleon\\Tests\\Util\\MockupFactory' => __DIR__ . '/../..' . '/skins/chameleon/tests/phpunit/Util/MockupFactory.php',
'Skins\\Chameleon\\Tests\\Util\\XmlFileProvider' => __DIR__ . '/../..' . '/skins/chameleon/tests/phpunit/Util/XmlFileProvider.php',
- 'Symfony\\Component\\Console\\Application' => __DIR__ . '/..' . '/symfony/console/Application.php',
- 'Symfony\\Component\\Console\\CommandLoader\\CommandLoaderInterface' => __DIR__ . '/..' . '/symfony/console/CommandLoader/CommandLoaderInterface.php',
- 'Symfony\\Component\\Console\\CommandLoader\\ContainerCommandLoader' => __DIR__ . '/..' . '/symfony/console/CommandLoader/ContainerCommandLoader.php',
- 'Symfony\\Component\\Console\\CommandLoader\\FactoryCommandLoader' => __DIR__ . '/..' . '/symfony/console/CommandLoader/FactoryCommandLoader.php',
- 'Symfony\\Component\\Console\\Command\\Command' => __DIR__ . '/..' . '/symfony/console/Command/Command.php',
- 'Symfony\\Component\\Console\\Command\\HelpCommand' => __DIR__ . '/..' . '/symfony/console/Command/HelpCommand.php',
- 'Symfony\\Component\\Console\\Command\\ListCommand' => __DIR__ . '/..' . '/symfony/console/Command/ListCommand.php',
- 'Symfony\\Component\\Console\\Command\\LockableTrait' => __DIR__ . '/..' . '/symfony/console/Command/LockableTrait.php',
- 'Symfony\\Component\\Console\\ConsoleEvents' => __DIR__ . '/..' . '/symfony/console/ConsoleEvents.php',
- 'Symfony\\Component\\Console\\DependencyInjection\\AddConsoleCommandPass' => __DIR__ . '/..' . '/symfony/console/DependencyInjection/AddConsoleCommandPass.php',
- 'Symfony\\Component\\Console\\Descriptor\\ApplicationDescription' => __DIR__ . '/..' . '/symfony/console/Descriptor/ApplicationDescription.php',
- 'Symfony\\Component\\Console\\Descriptor\\Descriptor' => __DIR__ . '/..' . '/symfony/console/Descriptor/Descriptor.php',
- 'Symfony\\Component\\Console\\Descriptor\\DescriptorInterface' => __DIR__ . '/..' . '/symfony/console/Descriptor/DescriptorInterface.php',
- 'Symfony\\Component\\Console\\Descriptor\\JsonDescriptor' => __DIR__ . '/..' . '/symfony/console/Descriptor/JsonDescriptor.php',
- 'Symfony\\Component\\Console\\Descriptor\\MarkdownDescriptor' => __DIR__ . '/..' . '/symfony/console/Descriptor/MarkdownDescriptor.php',
- 'Symfony\\Component\\Console\\Descriptor\\TextDescriptor' => __DIR__ . '/..' . '/symfony/console/Descriptor/TextDescriptor.php',
- 'Symfony\\Component\\Console\\Descriptor\\XmlDescriptor' => __DIR__ . '/..' . '/symfony/console/Descriptor/XmlDescriptor.php',
- 'Symfony\\Component\\Console\\EventListener\\ErrorListener' => __DIR__ . '/..' . '/symfony/console/EventListener/ErrorListener.php',
- 'Symfony\\Component\\Console\\Event\\ConsoleCommandEvent' => __DIR__ . '/..' . '/symfony/console/Event/ConsoleCommandEvent.php',
- 'Symfony\\Component\\Console\\Event\\ConsoleErrorEvent' => __DIR__ . '/..' . '/symfony/console/Event/ConsoleErrorEvent.php',
- 'Symfony\\Component\\Console\\Event\\ConsoleEvent' => __DIR__ . '/..' . '/symfony/console/Event/ConsoleEvent.php',
- 'Symfony\\Component\\Console\\Event\\ConsoleExceptionEvent' => __DIR__ . '/..' . '/symfony/console/Event/ConsoleExceptionEvent.php',
- 'Symfony\\Component\\Console\\Event\\ConsoleTerminateEvent' => __DIR__ . '/..' . '/symfony/console/Event/ConsoleTerminateEvent.php',
- 'Symfony\\Component\\Console\\Exception\\CommandNotFoundException' => __DIR__ . '/..' . '/symfony/console/Exception/CommandNotFoundException.php',
- 'Symfony\\Component\\Console\\Exception\\ExceptionInterface' => __DIR__ . '/..' . '/symfony/console/Exception/ExceptionInterface.php',
- 'Symfony\\Component\\Console\\Exception\\InvalidArgumentException' => __DIR__ . '/..' . '/symfony/console/Exception/InvalidArgumentException.php',
- 'Symfony\\Component\\Console\\Exception\\InvalidOptionException' => __DIR__ . '/..' . '/symfony/console/Exception/InvalidOptionException.php',
- 'Symfony\\Component\\Console\\Exception\\LogicException' => __DIR__ . '/..' . '/symfony/console/Exception/LogicException.php',
- 'Symfony\\Component\\Console\\Exception\\RuntimeException' => __DIR__ . '/..' . '/symfony/console/Exception/RuntimeException.php',
- 'Symfony\\Component\\Console\\Formatter\\OutputFormatter' => __DIR__ . '/..' . '/symfony/console/Formatter/OutputFormatter.php',
- 'Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface' => __DIR__ . '/..' . '/symfony/console/Formatter/OutputFormatterInterface.php',
- 'Symfony\\Component\\Console\\Formatter\\OutputFormatterStyle' => __DIR__ . '/..' . '/symfony/console/Formatter/OutputFormatterStyle.php',
- 'Symfony\\Component\\Console\\Formatter\\OutputFormatterStyleInterface' => __DIR__ . '/..' . '/symfony/console/Formatter/OutputFormatterStyleInterface.php',
- 'Symfony\\Component\\Console\\Formatter\\OutputFormatterStyleStack' => __DIR__ . '/..' . '/symfony/console/Formatter/OutputFormatterStyleStack.php',
- 'Symfony\\Component\\Console\\Helper\\DebugFormatterHelper' => __DIR__ . '/..' . '/symfony/console/Helper/DebugFormatterHelper.php',
- 'Symfony\\Component\\Console\\Helper\\DescriptorHelper' => __DIR__ . '/..' . '/symfony/console/Helper/DescriptorHelper.php',
- 'Symfony\\Component\\Console\\Helper\\FormatterHelper' => __DIR__ . '/..' . '/symfony/console/Helper/FormatterHelper.php',
- 'Symfony\\Component\\Console\\Helper\\Helper' => __DIR__ . '/..' . '/symfony/console/Helper/Helper.php',
- 'Symfony\\Component\\Console\\Helper\\HelperInterface' => __DIR__ . '/..' . '/symfony/console/Helper/HelperInterface.php',
- 'Symfony\\Component\\Console\\Helper\\HelperSet' => __DIR__ . '/..' . '/symfony/console/Helper/HelperSet.php',
- 'Symfony\\Component\\Console\\Helper\\InputAwareHelper' => __DIR__ . '/..' . '/symfony/console/Helper/InputAwareHelper.php',
- 'Symfony\\Component\\Console\\Helper\\ProcessHelper' => __DIR__ . '/..' . '/symfony/console/Helper/ProcessHelper.php',
- 'Symfony\\Component\\Console\\Helper\\ProgressBar' => __DIR__ . '/..' . '/symfony/console/Helper/ProgressBar.php',
- 'Symfony\\Component\\Console\\Helper\\ProgressIndicator' => __DIR__ . '/..' . '/symfony/console/Helper/ProgressIndicator.php',
- 'Symfony\\Component\\Console\\Helper\\QuestionHelper' => __DIR__ . '/..' . '/symfony/console/Helper/QuestionHelper.php',
- 'Symfony\\Component\\Console\\Helper\\SymfonyQuestionHelper' => __DIR__ . '/..' . '/symfony/console/Helper/SymfonyQuestionHelper.php',
- 'Symfony\\Component\\Console\\Helper\\Table' => __DIR__ . '/..' . '/symfony/console/Helper/Table.php',
- 'Symfony\\Component\\Console\\Helper\\TableCell' => __DIR__ . '/..' . '/symfony/console/Helper/TableCell.php',
- 'Symfony\\Component\\Console\\Helper\\TableSeparator' => __DIR__ . '/..' . '/symfony/console/Helper/TableSeparator.php',
- 'Symfony\\Component\\Console\\Helper\\TableStyle' => __DIR__ . '/..' . '/symfony/console/Helper/TableStyle.php',
- 'Symfony\\Component\\Console\\Input\\ArgvInput' => __DIR__ . '/..' . '/symfony/console/Input/ArgvInput.php',
- 'Symfony\\Component\\Console\\Input\\ArrayInput' => __DIR__ . '/..' . '/symfony/console/Input/ArrayInput.php',
- 'Symfony\\Component\\Console\\Input\\Input' => __DIR__ . '/..' . '/symfony/console/Input/Input.php',
- 'Symfony\\Component\\Console\\Input\\InputArgument' => __DIR__ . '/..' . '/symfony/console/Input/InputArgument.php',
- 'Symfony\\Component\\Console\\Input\\InputAwareInterface' => __DIR__ . '/..' . '/symfony/console/Input/InputAwareInterface.php',
- 'Symfony\\Component\\Console\\Input\\InputDefinition' => __DIR__ . '/..' . '/symfony/console/Input/InputDefinition.php',
- 'Symfony\\Component\\Console\\Input\\InputInterface' => __DIR__ . '/..' . '/symfony/console/Input/InputInterface.php',
- 'Symfony\\Component\\Console\\Input\\InputOption' => __DIR__ . '/..' . '/symfony/console/Input/InputOption.php',
- 'Symfony\\Component\\Console\\Input\\StreamableInputInterface' => __DIR__ . '/..' . '/symfony/console/Input/StreamableInputInterface.php',
- 'Symfony\\Component\\Console\\Input\\StringInput' => __DIR__ . '/..' . '/symfony/console/Input/StringInput.php',
- 'Symfony\\Component\\Console\\Logger\\ConsoleLogger' => __DIR__ . '/..' . '/symfony/console/Logger/ConsoleLogger.php',
- 'Symfony\\Component\\Console\\Output\\BufferedOutput' => __DIR__ . '/..' . '/symfony/console/Output/BufferedOutput.php',
- 'Symfony\\Component\\Console\\Output\\ConsoleOutput' => __DIR__ . '/..' . '/symfony/console/Output/ConsoleOutput.php',
- 'Symfony\\Component\\Console\\Output\\ConsoleOutputInterface' => __DIR__ . '/..' . '/symfony/console/Output/ConsoleOutputInterface.php',
- 'Symfony\\Component\\Console\\Output\\NullOutput' => __DIR__ . '/..' . '/symfony/console/Output/NullOutput.php',
- 'Symfony\\Component\\Console\\Output\\Output' => __DIR__ . '/..' . '/symfony/console/Output/Output.php',
- 'Symfony\\Component\\Console\\Output\\OutputInterface' => __DIR__ . '/..' . '/symfony/console/Output/OutputInterface.php',
- 'Symfony\\Component\\Console\\Output\\StreamOutput' => __DIR__ . '/..' . '/symfony/console/Output/StreamOutput.php',
- 'Symfony\\Component\\Console\\Question\\ChoiceQuestion' => __DIR__ . '/..' . '/symfony/console/Question/ChoiceQuestion.php',
- 'Symfony\\Component\\Console\\Question\\ConfirmationQuestion' => __DIR__ . '/..' . '/symfony/console/Question/ConfirmationQuestion.php',
- 'Symfony\\Component\\Console\\Question\\Question' => __DIR__ . '/..' . '/symfony/console/Question/Question.php',
- 'Symfony\\Component\\Console\\Style\\OutputStyle' => __DIR__ . '/..' . '/symfony/console/Style/OutputStyle.php',
- 'Symfony\\Component\\Console\\Style\\StyleInterface' => __DIR__ . '/..' . '/symfony/console/Style/StyleInterface.php',
- 'Symfony\\Component\\Console\\Style\\SymfonyStyle' => __DIR__ . '/..' . '/symfony/console/Style/SymfonyStyle.php',
- 'Symfony\\Component\\Console\\Terminal' => __DIR__ . '/..' . '/symfony/console/Terminal.php',
- 'Symfony\\Component\\Console\\Tester\\ApplicationTester' => __DIR__ . '/..' . '/symfony/console/Tester/ApplicationTester.php',
- 'Symfony\\Component\\Console\\Tester\\CommandTester' => __DIR__ . '/..' . '/symfony/console/Tester/CommandTester.php',
'Symfony\\Component\\CssSelector\\CssSelectorConverter' => __DIR__ . '/..' . '/symfony/css-selector/CssSelectorConverter.php',
'Symfony\\Component\\CssSelector\\Exception\\ExceptionInterface' => __DIR__ . '/..' . '/symfony/css-selector/Exception/ExceptionInterface.php',
'Symfony\\Component\\CssSelector\\Exception\\ExpressionErrorException' => __DIR__ . '/..' . '/symfony/css-selector/Exception/ExpressionErrorException.php',
@@ -3262,80 +1904,7 @@ class ComposerStaticInit_mediawiki_vendor
'Symfony\\Component\\CssSelector\\XPath\\Translator' => __DIR__ . '/..' . '/symfony/css-selector/XPath/Translator.php',
'Symfony\\Component\\CssSelector\\XPath\\TranslatorInterface' => __DIR__ . '/..' . '/symfony/css-selector/XPath/TranslatorInterface.php',
'Symfony\\Component\\CssSelector\\XPath\\XPathExpr' => __DIR__ . '/..' . '/symfony/css-selector/XPath/XPathExpr.php',
- 'Symfony\\Component\\Debug\\BufferingLogger' => __DIR__ . '/..' . '/symfony/debug/BufferingLogger.php',
- 'Symfony\\Component\\Debug\\Debug' => __DIR__ . '/..' . '/symfony/debug/Debug.php',
- 'Symfony\\Component\\Debug\\DebugClassLoader' => __DIR__ . '/..' . '/symfony/debug/DebugClassLoader.php',
- 'Symfony\\Component\\Debug\\ErrorHandler' => __DIR__ . '/..' . '/symfony/debug/ErrorHandler.php',
- 'Symfony\\Component\\Debug\\ExceptionHandler' => __DIR__ . '/..' . '/symfony/debug/ExceptionHandler.php',
- 'Symfony\\Component\\Debug\\Exception\\ClassNotFoundException' => __DIR__ . '/..' . '/symfony/debug/Exception/ClassNotFoundException.php',
- 'Symfony\\Component\\Debug\\Exception\\ContextErrorException' => __DIR__ . '/..' . '/symfony/debug/Exception/ContextErrorException.php',
- 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' => __DIR__ . '/..' . '/symfony/debug/Exception/FatalErrorException.php',
- 'Symfony\\Component\\Debug\\Exception\\FatalThrowableError' => __DIR__ . '/..' . '/symfony/debug/Exception/FatalThrowableError.php',
- 'Symfony\\Component\\Debug\\Exception\\FlattenException' => __DIR__ . '/..' . '/symfony/debug/Exception/FlattenException.php',
- 'Symfony\\Component\\Debug\\Exception\\OutOfMemoryException' => __DIR__ . '/..' . '/symfony/debug/Exception/OutOfMemoryException.php',
- 'Symfony\\Component\\Debug\\Exception\\SilencedErrorContext' => __DIR__ . '/..' . '/symfony/debug/Exception/SilencedErrorContext.php',
- 'Symfony\\Component\\Debug\\Exception\\UndefinedFunctionException' => __DIR__ . '/..' . '/symfony/debug/Exception/UndefinedFunctionException.php',
- 'Symfony\\Component\\Debug\\Exception\\UndefinedMethodException' => __DIR__ . '/..' . '/symfony/debug/Exception/UndefinedMethodException.php',
- 'Symfony\\Component\\Debug\\FatalErrorHandler\\ClassNotFoundFatalErrorHandler' => __DIR__ . '/..' . '/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php',
- 'Symfony\\Component\\Debug\\FatalErrorHandler\\FatalErrorHandlerInterface' => __DIR__ . '/..' . '/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.php',
- 'Symfony\\Component\\Debug\\FatalErrorHandler\\UndefinedFunctionFatalErrorHandler' => __DIR__ . '/..' . '/symfony/debug/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php',
- 'Symfony\\Component\\Debug\\FatalErrorHandler\\UndefinedMethodFatalErrorHandler' => __DIR__ . '/..' . '/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php',
- 'Symfony\\Component\\VarDumper\\Caster\\AmqpCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/AmqpCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ArgsStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ArgsStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\Caster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/Caster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ClassStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ClassStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ConstStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\CutArrayStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/CutArrayStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\CutStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/CutStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\DOMCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/DOMCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\DateCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/DateCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\DoctrineCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/DoctrineCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\EnumStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/EnumStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ExceptionCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ExceptionCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\FrameStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/FrameStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\LinkStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/LinkStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\MongoCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/MongoCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\PdoCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/PdoCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\PgSqlCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/PgSqlCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\RedisCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/RedisCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ReflectionCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ReflectionCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\ResourceCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ResourceCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\SplCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/SplCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\StubCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/StubCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\SymfonyCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/SymfonyCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\TraceStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/TraceStub.php',
- 'Symfony\\Component\\VarDumper\\Caster\\XmlReaderCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/XmlReaderCaster.php',
- 'Symfony\\Component\\VarDumper\\Caster\\XmlResourceCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/XmlResourceCaster.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\AbstractCloner' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/AbstractCloner.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/ClonerInterface.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\Cursor' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/Cursor.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\Data' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/Data.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\DumperInterface' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/DumperInterface.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\Stub' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/Stub.php',
- 'Symfony\\Component\\VarDumper\\Cloner\\VarCloner' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/VarCloner.php',
- 'Symfony\\Component\\VarDumper\\Dumper\\AbstractDumper' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/AbstractDumper.php',
- 'Symfony\\Component\\VarDumper\\Dumper\\CliDumper' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/CliDumper.php',
- 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/DataDumperInterface.php',
- 'Symfony\\Component\\VarDumper\\Dumper\\HtmlDumper' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/HtmlDumper.php',
- 'Symfony\\Component\\VarDumper\\Exception\\ThrowingCasterException' => __DIR__ . '/..' . '/symfony/var-dumper/Exception/ThrowingCasterException.php',
- 'Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait' => __DIR__ . '/..' . '/symfony/var-dumper/Test/VarDumperTestTrait.php',
- 'Symfony\\Component\\VarDumper\\VarDumper' => __DIR__ . '/..' . '/symfony/var-dumper/VarDumper.php',
- 'Symfony\\Component\\Yaml\\Command\\LintCommand' => __DIR__ . '/..' . '/symfony/yaml/Command/LintCommand.php',
- 'Symfony\\Component\\Yaml\\Dumper' => __DIR__ . '/..' . '/symfony/yaml/Dumper.php',
- 'Symfony\\Component\\Yaml\\Escaper' => __DIR__ . '/..' . '/symfony/yaml/Escaper.php',
- 'Symfony\\Component\\Yaml\\Exception\\DumpException' => __DIR__ . '/..' . '/symfony/yaml/Exception/DumpException.php',
- 'Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' => __DIR__ . '/..' . '/symfony/yaml/Exception/ExceptionInterface.php',
- 'Symfony\\Component\\Yaml\\Exception\\ParseException' => __DIR__ . '/..' . '/symfony/yaml/Exception/ParseException.php',
- 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' => __DIR__ . '/..' . '/symfony/yaml/Exception/RuntimeException.php',
- 'Symfony\\Component\\Yaml\\Inline' => __DIR__ . '/..' . '/symfony/yaml/Inline.php',
- 'Symfony\\Component\\Yaml\\Parser' => __DIR__ . '/..' . '/symfony/yaml/Parser.php',
- 'Symfony\\Component\\Yaml\\Tag\\TaggedValue' => __DIR__ . '/..' . '/symfony/yaml/Tag/TaggedValue.php',
- 'Symfony\\Component\\Yaml\\Unescaper' => __DIR__ . '/..' . '/symfony/yaml/Unescaper.php',
- 'Symfony\\Component\\Yaml\\Yaml' => __DIR__ . '/..' . '/symfony/yaml/Yaml.php',
- 'Symfony\\Polyfill\\Ctype\\Ctype' => __DIR__ . '/..' . '/symfony/polyfill-ctype/Ctype.php',
- 'Symfony\\Polyfill\\Mbstring\\Mbstring' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/Mbstring.php',
'TextCat' => __DIR__ . '/..' . '/wikimedia/textcat/TextCat.php',
- 'Text_Template' => __DIR__ . '/..' . '/phpunit/php-text-template/src/Template.php',
'UtfNormal\\Constants' => __DIR__ . '/..' . '/wikimedia/utfnormal/src/Constants.php',
'UtfNormal\\Utils' => __DIR__ . '/..' . '/wikimedia/utfnormal/src/Util.php',
'UtfNormal\\Validator' => __DIR__ . '/..' . '/wikimedia/utfnormal/src/Validator.php',
@@ -3377,18 +1946,6 @@ class ComposerStaticInit_mediawiki_vendor
'ValueValidators\\TitleValidator' => __DIR__ . '/..' . '/data-values/validators/src/TitleValidator.php',
'ValueValidators\\ValueValidator' => __DIR__ . '/..' . '/data-values/interfaces/src/ValueValidators/ValueValidator.php',
'ValueValidators\\ValueValidatorObject' => __DIR__ . '/..' . '/data-values/interfaces/src/ValueValidators/ValueValidatorObject.php',
- 'WMDE\\HamcrestHtml\\AttributeMatcher' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/AttributeMatcher.php',
- 'WMDE\\HamcrestHtml\\ChildElementMatcher' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/ChildElementMatcher.php',
- 'WMDE\\HamcrestHtml\\ClassMatcher' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/ClassMatcher.php',
- 'WMDE\\HamcrestHtml\\ComplexTagMatcher' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/ComplexTagMatcher.php',
- 'WMDE\\HamcrestHtml\\DirectChildElementMatcher' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/DirectChildElementMatcher.php',
- 'WMDE\\HamcrestHtml\\HtmlMatcher' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/HtmlMatcher.php',
- 'WMDE\\HamcrestHtml\\RootElementMatcher' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/RootElementMatcher.php',
- 'WMDE\\HamcrestHtml\\TagMatcher' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/TagMatcher.php',
- 'WMDE\\HamcrestHtml\\TagNameMatcher' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/TagNameMatcher.php',
- 'WMDE\\HamcrestHtml\\TextContentsMatcher' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/TextContentsMatcher.php',
- 'WMDE\\HamcrestHtml\\XmlNodeRecursiveIterator' => __DIR__ . '/..' . '/wmde/hamcrest-html-matchers/src/XmlNodeRecursiveIterator.php',
- 'Webmozart\\Assert\\Assert' => __DIR__ . '/..' . '/webmozart/assert/src/Assert.php',
'Wikimedia\\Assert\\Assert' => __DIR__ . '/..' . '/wikimedia/assert/src/Assert.php',
'Wikimedia\\Assert\\AssertionException' => __DIR__ . '/..' . '/wikimedia/assert/src/AssertionException.php',
'Wikimedia\\Assert\\InvariantException' => __DIR__ . '/..' . '/wikimedia/assert/src/InvariantException.php',
@@ -3425,82 +1982,12 @@ class ComposerStaticInit_mediawiki_vendor
'Wikimedia\\Purtle\\UnicodeEscaper' => __DIR__ . '/..' . '/wikimedia/purtle/src/UnicodeEscaper.php',
'Wikimedia\\Purtle\\XmlRdfWriter' => __DIR__ . '/..' . '/wikimedia/purtle/src/XmlRdfWriter.php',
'Wikimedia\\ScopedCallback' => __DIR__ . '/..' . '/wikimedia/scoped-callback/src/ScopedCallback.php',
- 'Wikimedia\\TestingAccessWrapper' => __DIR__ . '/..' . '/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php',
'Wikimedia\\Timestamp\\ConvertibleTimestamp' => __DIR__ . '/..' . '/wikimedia/timestamp/src/ConvertibleTimestamp.php',
'Wikimedia\\Timestamp\\TimestampException' => __DIR__ . '/..' . '/wikimedia/timestamp/src/TimestampException.php',
'Wikimedia\\WaitConditionLoop' => __DIR__ . '/..' . '/wikimedia/wait-condition-loop/src/WaitConditionLoop.php',
'WrappedString\\WrappedString' => __DIR__ . '/..' . '/wikimedia/wrappedstring/src/WrappedString.php',
'WrappedString\\WrappedStringList' => __DIR__ . '/..' . '/wikimedia/wrappedstring/src/WrappedStringList.php',
- 'XdgBaseDir\\Xdg' => __DIR__ . '/..' . '/dnoegel/php-xdg-base-dir/src/Xdg.php',
'lessc' => __DIR__ . '/..' . '/oyejorge/less.php/lessc.inc.php',
- 'phpDocumentor\\Reflection\\DocBlock' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock.php',
- 'phpDocumentor\\Reflection\\DocBlockFactory' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlockFactory.php',
- 'phpDocumentor\\Reflection\\DocBlockFactoryInterface' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlockFactoryInterface.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Description' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Description.php',
- 'phpDocumentor\\Reflection\\DocBlock\\DescriptionFactory' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/DescriptionFactory.php',
- 'phpDocumentor\\Reflection\\DocBlock\\ExampleFinder' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/ExampleFinder.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Serializer' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Serializer.php',
- 'phpDocumentor\\Reflection\\DocBlock\\StandardTagFactory' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/StandardTagFactory.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tag' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tag.php',
- 'phpDocumentor\\Reflection\\DocBlock\\TagFactory' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/TagFactory.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Author' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Author.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\BaseTag' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/BaseTag.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Covers' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Covers.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Deprecated' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Deprecated.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Example' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Example.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Factory\\StaticMethod' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Factory\\Strategy' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/Strategy.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Formatter' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Formatter\\AlignFormatter' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/AlignFormatter.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Formatter\\PassthroughFormatter' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/PassthroughFormatter.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Generic' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Generic.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Link' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Method' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Param' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Param.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Property' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\PropertyRead' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\PropertyWrite' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyWrite.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Reference\\Fqsen' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Fqsen.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Reference\\Reference' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Reference.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Reference\\Url' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Url.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Return_' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\See' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/See.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Since' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Since.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Source' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Source.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Throws' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Throws.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Uses' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Uses.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Var_' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Var_.php',
- 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Version' => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Version.php',
- 'phpDocumentor\\Reflection\\Element' => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src/Element.php',
- 'phpDocumentor\\Reflection\\File' => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src/File.php',
- 'phpDocumentor\\Reflection\\Fqsen' => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src/Fqsen.php',
- 'phpDocumentor\\Reflection\\FqsenResolver' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/FqsenResolver.php',
- 'phpDocumentor\\Reflection\\Location' => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src/Location.php',
- 'phpDocumentor\\Reflection\\Project' => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src/Project.php',
- 'phpDocumentor\\Reflection\\ProjectFactory' => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src/ProjectFactory.php',
- 'phpDocumentor\\Reflection\\Type' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Type.php',
- 'phpDocumentor\\Reflection\\TypeResolver' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/TypeResolver.php',
- 'phpDocumentor\\Reflection\\Types\\Array_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Array_.php',
- 'phpDocumentor\\Reflection\\Types\\Boolean' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Boolean.php',
- 'phpDocumentor\\Reflection\\Types\\Callable_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Callable_.php',
- 'phpDocumentor\\Reflection\\Types\\Compound' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Compound.php',
- 'phpDocumentor\\Reflection\\Types\\Context' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Context.php',
- 'phpDocumentor\\Reflection\\Types\\ContextFactory' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/ContextFactory.php',
- 'phpDocumentor\\Reflection\\Types\\Float_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Float_.php',
- 'phpDocumentor\\Reflection\\Types\\Integer' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Integer.php',
- 'phpDocumentor\\Reflection\\Types\\Iterable_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Iterable_.php',
- 'phpDocumentor\\Reflection\\Types\\Mixed_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Mixed_.php',
- 'phpDocumentor\\Reflection\\Types\\Null_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Null_.php',
- 'phpDocumentor\\Reflection\\Types\\Nullable' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Nullable.php',
- 'phpDocumentor\\Reflection\\Types\\Object_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Object_.php',
- 'phpDocumentor\\Reflection\\Types\\Parent_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Parent_.php',
- 'phpDocumentor\\Reflection\\Types\\Resource_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Resource_.php',
- 'phpDocumentor\\Reflection\\Types\\Scalar' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Scalar.php',
- 'phpDocumentor\\Reflection\\Types\\Self_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Self_.php',
- 'phpDocumentor\\Reflection\\Types\\Static_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Static_.php',
- 'phpDocumentor\\Reflection\\Types\\String_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/String_.php',
- 'phpDocumentor\\Reflection\\Types\\This' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/This.php',
- 'phpDocumentor\\Reflection\\Types\\Void_' => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src/Types/Void_.php',
);
public static function getInitializer(ClassLoader $loader)
diff --git a/www/wiki/vendor/composer/installed.json b/www/wiki/vendor/composer/installed.json
index dbe3f46d..72fa78f2 100644
--- a/www/wiki/vendor/composer/installed.json
+++ b/www/wiki/vendor/composer/installed.json
@@ -2712,1927 +2712,100 @@
]
},
{
- "name": "symfony/css-selector",
- "version": "v3.4.23",
- "version_normalized": "3.4.23.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/css-selector.git",
- "reference": "8ca29297c29b64fb3a1a135e71cb25f67f9fdccf"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/css-selector/zipball/8ca29297c29b64fb3a1a135e71cb25f67f9fdccf",
- "reference": "8ca29297c29b64fb3a1a135e71cb25f67f9fdccf",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "time": "2019-01-16T09:39:14+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\CssSelector\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jean-François Simon",
- "email": "jeanfrancois.simon@sensiolabs.com"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony CssSelector Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "composer/spdx-licenses",
- "version": "1.3.0",
- "version_normalized": "1.3.0.0",
+ "name": "mediawiki/semantic-forms-select",
+ "version": "3.0.0",
+ "version_normalized": "3.0.0.0",
"source": {
"type": "git",
- "url": "https://github.com/composer/spdx-licenses.git",
- "reference": "7e111c50db92fa2ced140f5ba23b4e261bc77a30"
+ "url": "https://github.com/SemanticMediaWiki/SemanticFormsSelect.git",
+ "reference": "a8a2653cf8cac5c33338eeb6eda37f318845a2b9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/7e111c50db92fa2ced140f5ba23b4e261bc77a30",
- "reference": "7e111c50db92fa2ced140f5ba23b4e261bc77a30",
+ "url": "https://api.github.com/repos/SemanticMediaWiki/SemanticFormsSelect/zipball/a8a2653cf8cac5c33338eeb6eda37f318845a2b9",
+ "reference": "a8a2653cf8cac5c33338eeb6eda37f318845a2b9",
"shasum": ""
},
"require": {
- "php": "^5.3.2 || ^7.0"
+ "composer/installers": "1.*,>=1.0.1",
+ "mediawiki/page-forms": ">=4.0.2",
+ "mediawiki/semantic-media-wiki": "~2.5|~3.0",
+ "php": ">=5.6"
},
"require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5",
- "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
+ "mediawiki/semantic-media-wiki": "@dev"
},
- "time": "2018-01-31T13:17:27+00:00",
- "type": "library",
+ "time": "2018-10-05T11:14:35+00:00",
+ "type": "mediawiki-extension",
"extra": {
"branch-alias": {
- "dev-master": "1.x-dev"
+ "dev-master": "3.0.x-dev"
}
},
"installation-source": "dist",
"autoload": {
"psr-4": {
- "Composer\\Spdx\\": "src"
+ "SFS\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "GPL-2.0-or-later"
],
"authors": [
{
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
+ "name": "Toni Hermoso Pulido",
+ "role": "Developer"
},
{
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
+ "name": "Jason Zhang",
+ "role": "Creator"
},
{
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com",
- "homepage": "http://robbast.nl"
- }
- ],
- "description": "SPDX licenses list and validation library.",
- "keywords": [
- "license",
- "spdx",
- "validator"
- ]
- },
- {
- "name": "jakub-onderka/php-parallel-lint",
- "version": "v0.9.2",
- "version_normalized": "0.9.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/JakubOnderka/PHP-Parallel-Lint.git",
- "reference": "2ead2e4043ab125bee9554f356e0a86742c2d4fa"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/JakubOnderka/PHP-Parallel-Lint/zipball/2ead2e4043ab125bee9554f356e0a86742c2d4fa",
- "reference": "2ead2e4043ab125bee9554f356e0a86742c2d4fa",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "jakub-onderka/php-console-highlighter": "~0.3",
- "nette/tester": "~1.3"
- },
- "suggest": {
- "jakub-onderka/php-console-highlighter": "Highlight syntax in code snippet"
- },
- "time": "2015-12-15T10:42:16+00:00",
- "bin": [
- "parallel-lint"
- ],
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "./"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-2-Clause"
- ],
- "authors": [
- {
- "name": "Jakub Onderka",
- "email": "jakub.onderka@gmail.com"
- }
- ],
- "description": "This tool check syntax of PHP files about 20x faster than serial check.",
- "homepage": "https://github.com/JakubOnderka/PHP-Parallel-Lint"
- },
- {
- "name": "jetbrains/phpstorm-stubs",
- "version": "dev-master",
- "version_normalized": "9999999-dev",
- "source": {
- "type": "git",
- "url": "https://github.com/JetBrains/phpstorm-stubs.git",
- "reference": "1b9906084d6635456fcf3f3a01f0d7d5b99a578a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/JetBrains/phpstorm-stubs/zipball/1b9906084d6635456fcf3f3a01f0d7d5b99a578a",
- "reference": "1b9906084d6635456fcf3f3a01f0d7d5b99a578a",
- "shasum": ""
- },
- "require-dev": {
- "nikic/php-parser": "v4.0.1",
- "php": "^7.1",
- "phpdocumentor/reflection-docblock": "^4.3",
- "phpunit/phpunit": "7.1.4"
- },
- "time": "2019-02-28T12:27:25+00:00",
- "type": "library",
- "installation-source": "source",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "Apache-2.0"
- ],
- "description": "PHP runtime & extensions header files for PhpStorm",
- "homepage": "https://www.jetbrains.com/phpstorm",
- "keywords": [
- "autocomplete",
- "code",
- "inference",
- "inspection",
- "jetbrains",
- "phpstorm",
- "stubs",
- "type"
- ]
- },
- {
- "name": "justinrainbow/json-schema",
- "version": "5.2.8",
- "version_normalized": "5.2.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/justinrainbow/json-schema.git",
- "reference": "dcb6e1006bb5fd1e392b4daa68932880f37550d4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/dcb6e1006bb5fd1e392b4daa68932880f37550d4",
- "reference": "dcb6e1006bb5fd1e392b4daa68932880f37550d4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "friendsofphp/php-cs-fixer": "~2.2.20",
- "json-schema/json-schema-test-suite": "1.2.0",
- "phpunit/phpunit": "^4.8.35"
- },
- "time": "2019-01-14T23:55:14+00:00",
- "bin": [
- "bin/validate-json"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "JsonSchema\\": "src/JsonSchema/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bruno Prieto Reis",
- "email": "bruno.p.reis@gmail.com"
+ "name": "James Hong Kong",
+ "role": "Developer"
},
{
- "name": "Justin Rainbow",
- "email": "justin.rainbow@gmail.com"
+ "name": "Thomas Mulhall",
+ "role": "Developer"
},
{
- "name": "Igor Wiedler",
- "email": "igor@wiedler.ch"
+ "name": "Alexander Gesinn",
+ "role": "Developer"
},
{
- "name": "Robert Schönthal",
- "email": "seroscho@googlemail.com"
- }
- ],
- "description": "A library to validate a json schema.",
- "homepage": "https://github.com/justinrainbow/json-schema",
- "keywords": [
- "json",
- "schema"
- ]
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "3.0.2",
- "version_normalized": "3.0.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "c7594a88ae75401e8f8d0bd4deb8431b39045c51"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/c7594a88ae75401e8f8d0bd4deb8431b39045c51",
- "reference": "c7594a88ae75401e8f8d0bd4deb8431b39045c51",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "time": "2017-07-18T01:12:32+00:00",
- "bin": [
- "bin/phpcs",
- "bin/phpcbf"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "installation-source": "dist",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
+ "name": "Felix Ashu",
+ "role": "Developer"
}
],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
+ "description": "Allows to generate a select field in a form whose values are retrieved from a query",
+ "homepage": "https://www.mediawiki.org/wiki/Extension:SemanticFormsSelect",
"keywords": [
- "phpcs",
- "standards"
- ]
- },
- {
- "name": "mediawiki/mediawiki-codesniffer",
- "version": "v0.12.0",
- "version_normalized": "0.12.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/wikimedia/mediawiki-tools-codesniffer.git",
- "reference": "ca7d4d1c54c28e3a25072e6455f4c56ddf47eaf8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/wikimedia/mediawiki-tools-codesniffer/zipball/ca7d4d1c54c28e3a25072e6455f4c56ddf47eaf8",
- "reference": "ca7d4d1c54c28e3a25072e6455f4c56ddf47eaf8",
- "shasum": ""
- },
- "require": {
- "php": ">= 5.5.9",
- "squizlabs/php_codesniffer": "3.0.2"
- },
- "require-dev": {
- "jakub-onderka/php-console-highlighter": "0.3.2",
- "jakub-onderka/php-parallel-lint": "0.9.2",
- "phpunit/phpunit": "~4.1"
- },
- "time": "2017-08-30T06:01:51+00:00",
- "type": "library",
- "installation-source": "dist",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0+"
- ],
- "description": "MediaWiki CodeSniffer Standards",
- "homepage": "https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP",
- "keywords": [
- "codesniffer",
+ "Page Forms",
+ "SMW",
+ "Semantic MediaWiki",
"mediawiki"
]
},
{
- "name": "monolog/monolog",
- "version": "1.22.1",
- "version_normalized": "1.22.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/monolog.git",
- "reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/monolog/zipball/1e044bc4b34e91743943479f1be7a1d5eb93add0",
- "reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0",
- "psr/log": "~1.0"
- },
- "provide": {
- "psr/log-implementation": "1.0.0"
- },
- "require-dev": {
- "aws/aws-sdk-php": "^2.4.9 || ^3.0",
- "doctrine/couchdb": "~1.0@dev",
- "graylog2/gelf-php": "~1.0",
- "jakub-onderka/php-parallel-lint": "0.9",
- "php-amqplib/php-amqplib": "~2.4",
- "php-console/php-console": "^3.1.3",
- "phpunit/phpunit": "~4.5",
- "phpunit/phpunit-mock-objects": "2.3.0",
- "ruflin/elastica": ">=0.90 <3.0",
- "sentry/sentry": "^0.13",
- "swiftmailer/swiftmailer": "~5.3"
- },
- "suggest": {
- "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB",
- "doctrine/couchdb": "Allow sending log messages to a CouchDB server",
- "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
- "ext-mongo": "Allow sending log messages to a MongoDB server",
- "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
- "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver",
- "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib",
- "php-console/php-console": "Allow sending log messages to Google Chrome",
- "rollbar/rollbar": "Allow sending log messages to Rollbar",
- "ruflin/elastica": "Allow sending log messages to an Elastic Search server",
- "sentry/sentry": "Allow sending log messages to a Sentry server"
- },
- "time": "2017-03-13T07:08:03+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Monolog\\": "src/Monolog"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "Sends your logs to files, sockets, inboxes, databases and various web services",
- "homepage": "http://github.com/Seldaek/monolog",
- "keywords": [
- "log",
- "logging",
- "psr-3"
- ]
- },
- {
- "name": "seld/jsonlint",
- "version": "1.7.1",
- "version_normalized": "1.7.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/jsonlint.git",
- "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/d15f59a67ff805a44c50ea0516d2341740f81a38",
- "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38",
- "shasum": ""
- },
- "require": {
- "php": "^5.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "time": "2018-01-24T12:46:19+00:00",
- "bin": [
- "bin/jsonlint"
- ],
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Seld\\JsonLint\\": "src/Seld/JsonLint/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "JSON Linter",
- "keywords": [
- "json",
- "linter",
- "parser",
- "validator"
- ]
- },
- {
- "name": "nmred/kafka-php",
- "version": "v0.1.5",
- "version_normalized": "0.1.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/weiboad/kafka-php.git",
- "reference": "317ad8c208684db8b9e6d2f5bf7f471e89a8b4eb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/weiboad/kafka-php/zipball/317ad8c208684db8b9e6d2f5bf7f471e89a8b4eb",
- "reference": "317ad8c208684db8b9e6d2f5bf7f471e89a8b4eb",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpcov": "*",
- "phpunit/phpunit": "~4.0",
- "satooshi/php-coveralls": "dev-master"
- },
- "time": "2015-12-02T12:06:23+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "Kafka\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "description": "Kafka client for php",
- "homepage": "http://www.swanlinux.net",
- "keywords": [
- "client",
- "kafka"
- ]
- },
- {
- "name": "symfony/polyfill-ctype",
- "version": "v1.10.0",
- "version_normalized": "1.10.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
- "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "time": "2018-08-06T14:22:27+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- }
- ],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
- ]
- },
- {
- "name": "symfony/yaml",
- "version": "v3.4.23",
- "version_normalized": "3.4.23.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "57f1ce82c997f5a8701b89ef970e36bb657fd09c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/57f1ce82c997f5a8701b89ef970e36bb657fd09c",
- "reference": "57f1ce82c997f5a8701b89ef970e36bb657fd09c",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "time": "2019-02-23T15:06:07+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "sebastian/version",
- "version": "1.0.6",
- "version_normalized": "1.0.6.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "shasum": ""
- },
- "time": "2015-06-21T13:59:46+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "version_normalized": "1.1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "time": "2015-10-12T03:26:01+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ]
- },
- {
- "name": "sebastian/recursion-context",
- "version": "1.0.5",
- "version_normalized": "1.0.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "time": "2016-10-03T07:41:43+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context"
- },
- {
- "name": "sebastian/exporter",
- "version": "1.2.2",
- "version_normalized": "1.2.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4",
- "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~1.0"
- },
- "require-dev": {
- "ext-mbstring": "*",
- "phpunit/phpunit": "~4.4"
- },
- "time": "2016-06-17T09:04:28+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ]
- },
- {
- "name": "sebastian/environment",
- "version": "1.3.8",
- "version_normalized": "1.3.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8 || ^5.0"
- },
- "time": "2016-08-18T05:49:44+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ]
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.3",
- "version_normalized": "1.4.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "time": "2017-05-22T07:24:03+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ]
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.4",
- "version_normalized": "1.2.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "time": "2017-01-29T09:50:25+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ]
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "version_normalized": "1.2.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "time": "2015-06-21T13:50:34+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ]
- },
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "version_normalized": "1.0.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "time": "2015-06-14T21:17:01+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ]
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "2.3.8",
- "version_normalized": "2.3.8.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "time": "2015-10-02T06:51:40+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.3.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "abandoned": true
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.9",
- "version_normalized": "1.0.9.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "time": "2017-02-26T11:10:40+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ]
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.4.5",
- "version_normalized": "1.4.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "time": "2017-11-27T13:52:08+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "keywords": [
- "filesystem",
- "iterator"
- ]
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.12",
- "version_normalized": "1.4.12.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "time": "2017-12-04T08:55:13+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ]
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "2.2.4",
- "version_normalized": "2.2.4.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-token-stream": "~1.3",
- "sebastian/environment": "^1.3.2",
- "sebastian/version": "~1.0"
- },
- "require-dev": {
- "ext-xdebug": ">=2.1.4",
- "phpunit/phpunit": "~4"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.2.1",
- "ext-xmlwriter": "*"
- },
- "time": "2015-10-06T15:47:00+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ]
- },
- {
- "name": "webmozart/assert",
- "version": "1.4.0",
- "version_normalized": "1.4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9",
- "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9",
- "shasum": ""
- },
- "require": {
- "php": "^5.3.3 || ^7.0",
- "symfony/polyfill-ctype": "^1.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "time": "2018-12-25T11:19:39+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ]
- },
- {
- "name": "phpdocumentor/reflection-common",
- "version": "1.0.1",
- "version_normalized": "1.0.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "time": "2017-09-11T18:02:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "homepage": "http://www.phpdoc.org",
- "keywords": [
- "FQSEN",
- "phpDocumentor",
- "phpdoc",
- "reflection",
- "static analysis"
- ]
- },
- {
- "name": "phpdocumentor/type-resolver",
- "version": "0.4.0",
- "version_normalized": "0.4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
- "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
- "shasum": ""
- },
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
- },
- "time": "2017-07-14T14:27:02+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ]
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "3.3.2",
- "version_normalized": "3.3.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2",
- "shasum": ""
- },
- "require": {
- "php": "^5.6 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^4.4"
- },
- "time": "2017-11-10T14:09:06+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock."
- },
- {
- "name": "phpspec/prophecy",
- "version": "1.8.0",
- "version_normalized": "1.8.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
- "time": "2018-08-05T17:53:17+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ]
- },
- {
- "name": "phpunit/phpunit",
- "version": "4.8.36",
- "version_normalized": "4.8.36.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "46023de9a91eec7dfb06cc56cb4e260017298517"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517",
- "reference": "46023de9a91eec7dfb06cc56cb4e260017298517",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*",
- "php": ">=5.3.3",
- "phpspec/prophecy": "^1.3.1",
- "phpunit/php-code-coverage": "~2.1",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "~2.3",
- "sebastian/comparator": "~1.2.2",
- "sebastian/diff": "~1.2",
- "sebastian/environment": "~1.3",
- "sebastian/exporter": "~1.2",
- "sebastian/global-state": "~1.0",
- "sebastian/version": "~1.0",
- "symfony/yaml": "~2.1|~3.0"
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "time": "2017-06-21T08:07:12+00:00",
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.8.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ]
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.10.0",
- "version_normalized": "1.10.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
- "reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "time": "2018-09-21T13:07:52+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ]
- },
- {
- "name": "symfony/var-dumper",
- "version": "v3.4.23",
- "version_normalized": "3.4.23.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/var-dumper.git",
- "reference": "d34d10236300876d14291e9df85c6ef3d3bb9066"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/d34d10236300876d14291e9df85c6ef3d3bb9066",
- "reference": "d34d10236300876d14291e9df85c6ef3d3bb9066",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0"
- },
- "require-dev": {
- "ext-iconv": "*",
- "twig/twig": "~1.34|~2.4"
- },
- "suggest": {
- "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).",
- "ext-intl": "To show region name in time zone dump",
- "ext-symfony_debug": ""
- },
- "time": "2019-02-23T15:06:07+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "Resources/functions/dump.php"
- ],
- "psr-4": {
- "Symfony\\Component\\VarDumper\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony mechanism for exploring and dumping PHP variables",
- "homepage": "https://symfony.com",
- "keywords": [
- "debug",
- "dump"
- ]
- },
- {
- "name": "symfony/debug",
- "version": "v3.4.23",
- "version_normalized": "3.4.23.0",
+ "name": "symfony/css-selector",
+ "version": "v3.4.28",
+ "version_normalized": "3.4.28.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "8d8a9e877b3fcdc50ddecf8dcea146059753f782"
+ "url": "https://github.com/symfony/css-selector.git",
+ "reference": "8ca29297c29b64fb3a1a135e71cb25f67f9fdccf"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/8d8a9e877b3fcdc50ddecf8dcea146059753f782",
- "reference": "8d8a9e877b3fcdc50ddecf8dcea146059753f782",
+ "url": "https://api.github.com/repos/symfony/css-selector/zipball/8ca29297c29b64fb3a1a135e71cb25f67f9fdccf",
+ "reference": "8ca29297c29b64fb3a1a135e71cb25f67f9fdccf",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
+ "php": "^5.5.9|>=7.0.8"
},
- "time": "2019-02-24T15:45:11+00:00",
+ "time": "2019-01-16T09:39:14+00:00",
"type": "library",
"extra": {
"branch-alias": {
@@ -4642,7 +2815,7 @@
"installation-source": "dist",
"autoload": {
"psr-4": {
- "Symfony\\Component\\Debug\\": ""
+ "Symfony\\Component\\CssSelector\\": ""
},
"exclude-from-classmap": [
"/Tests/"
@@ -4654,79 +2827,9 @@
],
"authors": [
{
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com"
- },
- {
- "name": "symfony/console",
- "version": "v3.4.23",
- "version_normalized": "3.4.23.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "71ce77f37af0c5ffb9590e43cc4f70e426945c5e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/71ce77f37af0c5ffb9590e43cc4f70e426945c5e",
- "reference": "71ce77f37af0c5ffb9590e43cc4f70e426945c5e",
- "shasum": ""
- },
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "provide": {
- "psr/log-implementation": "1.0"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
- "time": "2019-02-23T15:06:07+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
+ "name": "Jean-François Simon",
+ "email": "jeanfrancois.simon@sensiolabs.com"
},
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
@@ -4736,478 +2839,7 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Symfony Console Component",
+ "description": "Symfony CssSelector Component",
"homepage": "https://symfony.com"
- },
- {
- "name": "nikic/php-parser",
- "version": "v2.1.0",
- "version_normalized": "2.1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "47b254ea51f1d6d5dc04b9b299e88346bf2369e3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/47b254ea51f1d6d5dc04b9b299e88346bf2369e3",
- "reference": "47b254ea51f1d6d5dc04b9b299e88346bf2369e3",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.4"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "time": "2016-04-19T13:41:41+00:00",
- "bin": [
- "bin/php-parse"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.1-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "PhpParser\\": "lib/PhpParser"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Nikita Popov"
- }
- ],
- "description": "A PHP parser written in PHP",
- "keywords": [
- "parser",
- "php"
- ]
- },
- {
- "name": "jakub-onderka/php-console-color",
- "version": "v0.2",
- "version_normalized": "0.2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/JakubOnderka/PHP-Console-Color.git",
- "reference": "d5deaecff52a0d61ccb613bb3804088da0307191"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/d5deaecff52a0d61ccb613bb3804088da0307191",
- "reference": "d5deaecff52a0d61ccb613bb3804088da0307191",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0"
- },
- "require-dev": {
- "jakub-onderka/php-code-style": "1.0",
- "jakub-onderka/php-parallel-lint": "1.0",
- "jakub-onderka/php-var-dump-check": "0.*",
- "phpunit/phpunit": "~4.3",
- "squizlabs/php_codesniffer": "1.*"
- },
- "time": "2018-09-29T17:23:10+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "JakubOnderka\\PhpConsoleColor\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-2-Clause"
- ],
- "authors": [
- {
- "name": "Jakub Onderka",
- "email": "jakub.onderka@gmail.com"
- }
- ]
- },
- {
- "name": "jakub-onderka/php-console-highlighter",
- "version": "v0.3.2",
- "version_normalized": "0.3.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/JakubOnderka/PHP-Console-Highlighter.git",
- "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/7daa75df45242c8d5b75a22c00a201e7954e4fb5",
- "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5",
- "shasum": ""
- },
- "require": {
- "jakub-onderka/php-console-color": "~0.1",
- "php": ">=5.3.0"
- },
- "require-dev": {
- "jakub-onderka/php-code-style": "~1.0",
- "jakub-onderka/php-parallel-lint": "~0.5",
- "jakub-onderka/php-var-dump-check": "~0.1",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~1.5"
- },
- "time": "2015-04-20T18:58:01+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-0": {
- "JakubOnderka\\PhpConsoleHighlighter": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jakub Onderka",
- "email": "acci@acci.cz",
- "homepage": "http://www.acci.cz/"
- }
- ]
- },
- {
- "name": "dnoegel/php-xdg-base-dir",
- "version": "0.1",
- "version_normalized": "0.1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/dnoegel/php-xdg-base-dir.git",
- "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/265b8593498b997dc2d31e75b89f053b5cc9621a",
- "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "require-dev": {
- "phpunit/phpunit": "@stable"
- },
- "time": "2014-10-24T07:27:01+00:00",
- "type": "project",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "XdgBaseDir\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "implementation of xdg base directory specification for php"
- },
- {
- "name": "psy/psysh",
- "version": "v0.8.5",
- "version_normalized": "0.8.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/bobthecow/psysh.git",
- "reference": "38a9d21406597a0440690eafbcb0222f528c8ac6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/bobthecow/psysh/zipball/38a9d21406597a0440690eafbcb0222f528c8ac6",
- "reference": "38a9d21406597a0440690eafbcb0222f528c8ac6",
- "shasum": ""
- },
- "require": {
- "dnoegel/php-xdg-base-dir": "0.1",
- "jakub-onderka/php-console-highlighter": "0.3.*",
- "nikic/php-parser": "~1.3|~2.0|~3.0",
- "php": ">=5.3.9",
- "symfony/console": "~2.3.10|^2.4.2|~3.0",
- "symfony/var-dumper": "~2.7|~3.0"
- },
- "require-dev": {
- "friendsofphp/php-cs-fixer": "~1.11",
- "hoa/console": "~3.16|~1.14",
- "phpunit/phpunit": "~4.4|~5.0",
- "symfony/finder": "~2.1|~3.0"
- },
- "suggest": {
- "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)",
- "ext-pdo-sqlite": "The doc command requires SQLite to work.",
- "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.",
- "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history.",
- "hoa/console": "A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit."
- },
- "time": "2017-05-17T06:49:19+00:00",
- "bin": [
- "bin/psysh"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-develop": "0.9.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "src/Psy/functions.php"
- ],
- "psr-4": {
- "Psy\\": "src/Psy/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Justin Hileman",
- "email": "justin@justinhileman.info",
- "homepage": "http://justinhileman.com"
- }
- ],
- "description": "An interactive shell for modern PHP.",
- "homepage": "http://psysh.org",
- "keywords": [
- "REPL",
- "console",
- "interactive",
- "shell"
- ]
- },
- {
- "name": "wikimedia/avro",
- "version": "v1.7.7",
- "version_normalized": "1.7.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/wikimedia/avro-php.git",
- "reference": "b642da9fd895aab7cb3261a22624228115471f47"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/wikimedia/avro-php/zipball/b642da9fd895aab7cb3261a22624228115471f47",
- "reference": "b642da9fd895aab7cb3261a22624228115471f47",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "jakub-onderka/php-parallel-lint": "^0.9",
- "phpunit/phpunit": "^4.0.0"
- },
- "suggest": {
- "ext-gmp": "Large integer support for 32-bit platforms."
- },
- "time": "2015-09-05T18:49:27+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "lib/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "Apache-2.0"
- ],
- "authors": [
- {
- "name": "Michael Glaesemann",
- "email": "grzm@seespotcode.net"
- },
- {
- "name": "Andy Wick",
- "email": "awick@purple.org"
- },
- {
- "name": "Saleem Shafi",
- "email": "saleemshafi@gmail.com"
- },
- {
- "name": "A B",
- "email": "abawany@x.com"
- },
- {
- "name": "Doug Cutting",
- "email": "cutting@apache.org"
- },
- {
- "name": "Tom White",
- "email": "tom@cloudera.com"
- }
- ],
- "description": "A library for using Apache Avro with PHP.",
- "homepage": "https://avro.apache.org/",
- "keywords": [
- "serialization"
- ]
- },
- {
- "name": "wikimedia/testing-access-wrapper",
- "version": "1.0.0",
- "version_normalized": "1.0.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/wikimedia/testing-access-wrapper.git",
- "reference": "e18b87c86739733506bd184a70852c30cdb30699"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/wikimedia/testing-access-wrapper/zipball/e18b87c86739733506bd184a70852c30cdb30699",
- "reference": "e18b87c86739733506bd184a70852c30cdb30699",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "require-dev": {
- "jakub-onderka/php-parallel-lint": "0.9.2",
- "mediawiki/mediawiki-codesniffer": "0.7.2",
- "phpunit/phpunit": "4.8.31"
- },
- "time": "2017-04-19T16:43:33+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "GPL-2.0+"
- ],
- "authors": [
- {
- "name": "Adam Roses Wight",
- "email": "awight@wikimedia.org"
- },
- {
- "name": "Brad Jorsch",
- "email": "bjorsch@wikimedia.org"
- },
- {
- "name": "Gergő Tisza",
- "email": "gtisza@wikimedia.org"
- }
- ],
- "description": "A simple helper class to access non-public elements of a class when testing.",
- "homepage": "https://www.mediawiki.org/wiki/Testing-access-wrapper"
- },
- {
- "name": "hamcrest/hamcrest-php",
- "version": "v2.0.0",
- "version_normalized": "2.0.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/hamcrest/hamcrest-php.git",
- "reference": "776503d3a8e85d4f9a1148614f95b7a608b046ad"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/776503d3a8e85d4f9a1148614f95b7a608b046ad",
- "reference": "776503d3a8e85d4f9a1148614f95b7a608b046ad",
- "shasum": ""
- },
- "require": {
- "php": "^5.3|^7.0"
- },
- "replace": {
- "cordoval/hamcrest-php": "*",
- "davedevelopment/hamcrest-php": "*",
- "kodova/hamcrest-php": "*"
- },
- "require-dev": {
- "phpunit/php-file-iterator": "1.3.3",
- "phpunit/phpunit": "~4.0",
- "satooshi/php-coveralls": "^1.0"
- },
- "time": "2016-01-20T08:20:44+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "hamcrest"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD"
- ],
- "description": "This is the PHP port of Hamcrest Matchers",
- "keywords": [
- "test"
- ]
- },
- {
- "name": "wmde/hamcrest-html-matchers",
- "version": "v0.1.1",
- "version_normalized": "0.1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/wmde/hamcrest-html-matchers.git",
- "reference": "89e15f78c22535891318a4dd7580c63d83c766c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/wmde/hamcrest-html-matchers/zipball/89e15f78c22535891318a4dd7580c63d83c766c6",
- "reference": "89e15f78c22535891318a4dd7580c63d83c766c6",
- "shasum": ""
- },
- "require": {
- "ext-mbstring": "*",
- "hamcrest/hamcrest-php": "^1.1.1||^2.0",
- "php": ">=5.5"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8"
- },
- "time": "2017-07-05T07:12:27+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "0.1.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "WMDE\\HamcrestHtml\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "LGPL-2.1"
- ],
- "authors": [
- {
- "name": "Aleksey Bekh-Ivanov"
- }
- ],
- "description": "Set of Hamcrest matchers for HTML assertrions "
}
]
diff --git a/www/wiki/vendor/composer/spdx-licenses/.php_cs.dist b/www/wiki/vendor/composer/spdx-licenses/.php_cs.dist
deleted file mode 100644
index 6c05540e..00000000
--- a/www/wiki/vendor/composer/spdx-licenses/.php_cs.dist
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-$header = <<<EOF
-This file is part of composer/spdx-licenses.
-
-(c) Composer <https://github.com/composer>
-
-For the full copyright and license information, please view
-the LICENSE file that was distributed with this source code.
-EOF;
-
-$finder = PhpCsFixer\Finder::create()
- ->files()
- ->name('*.php')
- ->in(__DIR__.'/src')
- ->in(__DIR__.'/tests')
-;
-
-/* fabpot/php-cs-fixer:^2.0-dev */
-return PhpCsFixer\Config::create()
- ->setUsingCache(true)
- //->setUsingLinter(false)
- ->setRiskyAllowed(true)
- ->setRules(array(
- '@PSR2' => true,
- 'binary_operator_spaces' => true,
- 'blank_line_before_return' => true,
- 'cast_spaces' => true,
- 'header_comment' => array('header' => $header),
- 'include' => true,
- 'long_array_syntax' => true,
- 'method_separation' => true,
- 'no_blank_lines_after_class_opening' => true,
- 'no_blank_lines_after_phpdoc' => true,
- 'no_blank_lines_between_uses' => true,
- 'no_duplicate_semicolons' => true,
- 'no_extra_consecutive_blank_lines' => true,
- 'no_leading_import_slash' => true,
- 'no_leading_namespace_whitespace' => true,
- 'no_trailing_comma_in_singleline_array' => true,
- 'no_unused_imports' => true,
- 'no_whitespace_in_blank_lines' => true,
- 'object_operator_without_whitespace' => true,
- 'phpdoc_align' => true,
- 'phpdoc_indent' => true,
- 'phpdoc_no_access' => true,
- 'phpdoc_no_package' => true,
- 'phpdoc_order' => true,
- 'phpdoc_scalar' => true,
- 'phpdoc_trim' => true,
- 'phpdoc_type_to_var' => true,
- 'psr0' => true,
- 'single_blank_line_before_namespace' => true,
- 'standardize_not_equals' => true,
- 'ternary_operator_spaces' => true,
- 'trailing_comma_in_multiline_array' => true,
- ))
- ->finder($finder)
-;
diff --git a/www/wiki/vendor/composer/spdx-licenses/CHANGELOG.md b/www/wiki/vendor/composer/spdx-licenses/CHANGELOG.md
deleted file mode 100644
index abc3d7c9..00000000
--- a/www/wiki/vendor/composer/spdx-licenses/CHANGELOG.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file.
-This project adheres to [Semantic Versioning](http://semver.org/).
-
-## [1.3.0] 2018-01-31
-
- * Added: `SpdxLicenses::getLicenses` to get the whole list of methods.
- * Changed: license identifiers are now case insensitive.
-
-## [1.2.0] 2018-01-03
-
- * Added: deprecation status for all licenses and a `SpdxLicenses::isDeprecatedByIdentifier` method.
- * Changed: updated licenses list to SPDX 3.0.
-
-## [1.1.6] 2017-04-03
-
- * Changed: updated licenses list.
-
-## [1.1.5] 2016-09-28
-
- * Changed: updated licenses list.
-
-## [1.1.4] 2016-05-04
-
- * Changed: updated licenses list.
-
-## [1.1.3] 2016-03-25
-
- * Changed: updated licenses list.
- * Changed: dropped `test` namespace.
- * Changed: tedious small things.
-
-## [1.1.2] 2015-10-05
-
- * Changed: updated licenses list.
-
-## [1.1.1] 2015-09-07
-
- * Changed: improved performance when looking up just one license.
- * Changed: updated licenses list.
-
-## [1.1.0] 2015-07-17
-
- * Changed: updater now sorts licenses and exceptions by key.
- * Changed: filenames now class constants of SpdxLicenses (`LICENSES_FILE` and `EXCEPTIONS_FILE`).
- * Changed: resources directory now available via static method `SpdxLicenses::getResourcesDir()`.
- * Changed: updated licenses list.
- * Changed: removed json-schema requirement.
-
-## [1.0.0] 2015-07-15
-
- * Break: the following classes and namespaces were renamed:
- - Namespace: `Composer\Util` -> `Composer\Spdx`
- - Classname: `SpdxLicense` -> `SpdxLicenses`
- - Classname: `SpdxLicenseTest` -> `SpdxLicensesTest`
- - Classname: `Updater` -> `SpdxLicensesUpdater`
- * Changed: validation via regex implementation instead of lexer.
-
-[1.3.0]: https://github.com/composer/spdx-licenses/compare/1.2.0...1.3.0
-[1.2.0]: https://github.com/composer/spdx-licenses/compare/1.1.6...1.2.0
-[1.1.6]: https://github.com/composer/spdx-licenses/compare/1.1.5...1.1.6
-[1.1.5]: https://github.com/composer/spdx-licenses/compare/1.1.4...1.1.5
-[1.1.4]: https://github.com/composer/spdx-licenses/compare/1.1.3...1.1.4
-[1.1.3]: https://github.com/composer/spdx-licenses/compare/1.1.2...1.1.3
-[1.1.2]: https://github.com/composer/spdx-licenses/compare/1.1.1...1.1.2
-[1.1.1]: https://github.com/composer/spdx-licenses/compare/1.1.0...1.1.1
-[1.1.0]: https://github.com/composer/spdx-licenses/compare/1.0.0...1.1.0
-[1.0.0]: https://github.com/composer/spdx-licenses/compare/0281a7fe7820c990db3058844e7d448d7b70e3ac...1.0.0
diff --git a/www/wiki/vendor/composer/spdx-licenses/LICENSE b/www/wiki/vendor/composer/spdx-licenses/LICENSE
deleted file mode 100644
index 46697586..00000000
--- a/www/wiki/vendor/composer/spdx-licenses/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (C) 2015 Composer
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/www/wiki/vendor/composer/spdx-licenses/README.md b/www/wiki/vendor/composer/spdx-licenses/README.md
deleted file mode 100644
index 51bba137..00000000
--- a/www/wiki/vendor/composer/spdx-licenses/README.md
+++ /dev/null
@@ -1,69 +0,0 @@
-composer/spdx-licenses
-======================
-
-SPDX licenses list and validation library.
-
-Originally written as part of [composer/composer](https://github.com/composer/composer),
-now extracted and made available as a stand-alone library.
-
-[![Build Status](https://travis-ci.org/composer/spdx-licenses.svg?branch=master)](https://travis-ci.org/composer/spdx-licenses)
-
-Installation
-------------
-
-Install the latest version with:
-
-```bash
-$ composer require composer/spdx-licenses
-```
-
-Basic Usage
------------
-
-```php
-<?php
-
-use Composer\Spdx\SpdxLicenses;
-
-$licenses = new SpdxLicenses();
-
-// get a license by identifier
-$licenses->getLicenseByIdentifier('MIT');
-
-// get a license exception by identifier
-$licenses->getExceptionByIdentifier('Autoconf-exception-3.0');
-
-// get a license identifier by name
-$licenses->getIdentifierByName('MIT License');
-
-// check if a license is OSI approved by identifier
-$licenses->isOsiApprovedByIdentifier('MIT');
-
-// check if a license identifier is deprecated
-$licenses->isDeprecatedByIdentifier('MIT');
-
-// check if input is a valid SPDX license expression
-$licenses->validate($input);
-```
-
-> Read the [specifications](https://spdx.org/specifications)
-> to find out more about valid license expressions.
-
-Requirements
-------------
-
-* PHP 5.3.2 is required but using the latest version of PHP is highly recommended.
-
-License
--------
-
-composer/spdx-licenses is licensed under the MIT License, see the LICENSE file for details.
-
-Source
-------
-
-License information is curated by [SPDX](https://spdx.org/). The data is pulled from the
-[License List Data](https://github.com/spdx/license-list-data) repository.
-
-* [Licenses](https://spdx.org/licenses/index.html)
-* [License Exceptions](https://spdx.org/licenses/exceptions-index.html)
diff --git a/www/wiki/vendor/composer/spdx-licenses/composer.json b/www/wiki/vendor/composer/spdx-licenses/composer.json
deleted file mode 100644
index 50b57634..00000000
--- a/www/wiki/vendor/composer/spdx-licenses/composer.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "name": "composer/spdx-licenses",
- "description": "SPDX licenses list and validation library.",
- "type": "library",
- "license": "MIT",
- "keywords": [
- "spdx",
- "license",
- "validator"
- ],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- },
- {
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com",
- "homepage": "http://robbast.nl"
- }
- ],
- "support": {
- "irc": "irc://irc.freenode.org/composer",
- "issues": "https://github.com/composer/spdx-licenses/issues"
- },
- "require": {
- "php": "^5.3.2 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5",
- "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
- },
- "autoload": {
- "psr-4": {
- "Composer\\Spdx\\": "src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Composer\\Spdx\\": "tests"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "scripts": {
- "test": "phpunit"
- }
-}
diff --git a/www/wiki/vendor/composer/spdx-licenses/res/spdx-exceptions.json b/www/wiki/vendor/composer/spdx-licenses/res/spdx-exceptions.json
deleted file mode 100644
index a8af90ab..00000000
--- a/www/wiki/vendor/composer/spdx-licenses/res/spdx-exceptions.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "389-exception": [
- "389 Directory Server Exception"
- ],
- "Autoconf-exception-2.0": [
- "Autoconf exception 2.0"
- ],
- "Autoconf-exception-3.0": [
- "Autoconf exception 3.0"
- ],
- "Bison-exception-2.2": [
- "Bison exception 2.2"
- ],
- "Bootloader-exception": [
- "Bootloader Distribution Exception"
- ],
- "Classpath-exception-2.0": [
- "Classpath exception 2.0"
- ],
- "CLISP-exception-2.0": [
- "CLISP exception 2.0"
- ],
- "DigiRule-FOSS-exception": [
- "DigiRule FOSS License Exception"
- ],
- "eCos-exception-2.0": [
- "eCos exception 2.0"
- ],
- "Fawkes-Runtime-exception": [
- "Fawkes Runtime Exception"
- ],
- "FLTK-exception": [
- "FLTK exception"
- ],
- "Font-exception-2.0": [
- "Font exception 2.0"
- ],
- "freertos-exception-2.0": [
- "FreeRTOS Exception 2.0"
- ],
- "GCC-exception-2.0": [
- "GCC Runtime Library exception 2.0"
- ],
- "GCC-exception-3.1": [
- "GCC Runtime Library exception 3.1"
- ],
- "gnu-javamail-exception": [
- "GNU JavaMail exception"
- ],
- "i2p-gpl-java-exception": [
- "i2p GPL+Java Exception"
- ],
- "Libtool-exception": [
- "Libtool Exception"
- ],
- "Linux-syscall-note": [
- "Linux Syscall Note"
- ],
- "LZMA-exception": [
- "LZMA exception"
- ],
- "mif-exception": [
- "Macros and Inline Functions Exception"
- ],
- "Nokia-Qt-exception-1.1": [
- "Nokia Qt LGPL exception 1.1"
- ],
- "OCCT-exception-1.0": [
- "Open CASCADE Exception 1.0"
- ],
- "openvpn-openssl-exception": [
- "OpenVPN OpenSSL Exception"
- ],
- "Qwt-exception-1.0": [
- "Qwt exception 1.0"
- ],
- "u-boot-exception-2.0": [
- "U-Boot exception 2.0"
- ],
- "WxWindows-exception-3.1": [
- "WxWindows Library Exception 3.1"
- ]
-} \ No newline at end of file
diff --git a/www/wiki/vendor/composer/spdx-licenses/res/spdx-licenses.json b/www/wiki/vendor/composer/spdx-licenses/res/spdx-licenses.json
deleted file mode 100644
index 2233588b..00000000
--- a/www/wiki/vendor/composer/spdx-licenses/res/spdx-licenses.json
+++ /dev/null
@@ -1,1847 +0,0 @@
-{
- "0BSD": [
- "BSD Zero Clause License",
- false,
- false
- ],
- "AAL": [
- "Attribution Assurance License",
- true,
- false
- ],
- "Abstyles": [
- "Abstyles License",
- false,
- false
- ],
- "Adobe-2006": [
- "Adobe Systems Incorporated Source Code License Agreement",
- false,
- false
- ],
- "Adobe-Glyph": [
- "Adobe Glyph List License",
- false,
- false
- ],
- "ADSL": [
- "Amazon Digital Services License",
- false,
- false
- ],
- "AFL-1.1": [
- "Academic Free License v1.1",
- true,
- false
- ],
- "AFL-1.2": [
- "Academic Free License v1.2",
- true,
- false
- ],
- "AFL-2.0": [
- "Academic Free License v2.0",
- true,
- false
- ],
- "AFL-2.1": [
- "Academic Free License v2.1",
- true,
- false
- ],
- "AFL-3.0": [
- "Academic Free License v3.0",
- true,
- false
- ],
- "Afmparse": [
- "Afmparse License",
- false,
- false
- ],
- "AGPL-1.0": [
- "Affero General Public License v1.0",
- false,
- false
- ],
- "AGPL-3.0": [
- "GNU Affero General Public License v3.0",
- true,
- true
- ],
- "AGPL-3.0-only": [
- "GNU Affero General Public License v3.0 only",
- true,
- false
- ],
- "AGPL-3.0-or-later": [
- "GNU Affero General Public License v3.0 or later",
- true,
- false
- ],
- "Aladdin": [
- "Aladdin Free Public License",
- false,
- false
- ],
- "AMDPLPA": [
- "AMD's plpa_map.c License",
- false,
- false
- ],
- "AML": [
- "Apple MIT License",
- false,
- false
- ],
- "AMPAS": [
- "Academy of Motion Picture Arts and Sciences BSD",
- false,
- false
- ],
- "ANTLR-PD": [
- "ANTLR Software Rights Notice",
- false,
- false
- ],
- "Apache-1.0": [
- "Apache License 1.0",
- false,
- false
- ],
- "Apache-1.1": [
- "Apache License 1.1",
- true,
- false
- ],
- "Apache-2.0": [
- "Apache License 2.0",
- true,
- false
- ],
- "APAFML": [
- "Adobe Postscript AFM License",
- false,
- false
- ],
- "APL-1.0": [
- "Adaptive Public License 1.0",
- true,
- false
- ],
- "APSL-1.0": [
- "Apple Public Source License 1.0",
- true,
- false
- ],
- "APSL-1.1": [
- "Apple Public Source License 1.1",
- true,
- false
- ],
- "APSL-1.2": [
- "Apple Public Source License 1.2",
- true,
- false
- ],
- "APSL-2.0": [
- "Apple Public Source License 2.0",
- true,
- false
- ],
- "Artistic-1.0": [
- "Artistic License 1.0",
- true,
- false
- ],
- "Artistic-1.0-cl8": [
- "Artistic License 1.0 w/clause 8",
- true,
- false
- ],
- "Artistic-1.0-Perl": [
- "Artistic License 1.0 (Perl)",
- true,
- false
- ],
- "Artistic-2.0": [
- "Artistic License 2.0",
- true,
- false
- ],
- "Bahyph": [
- "Bahyph License",
- false,
- false
- ],
- "Barr": [
- "Barr License",
- false,
- false
- ],
- "Beerware": [
- "Beerware License",
- false,
- false
- ],
- "BitTorrent-1.0": [
- "BitTorrent Open Source License v1.0",
- false,
- false
- ],
- "BitTorrent-1.1": [
- "BitTorrent Open Source License v1.1",
- false,
- false
- ],
- "Borceux": [
- "Borceux license",
- false,
- false
- ],
- "BSD-1-Clause": [
- "BSD 1-Clause License",
- false,
- false
- ],
- "BSD-2-Clause": [
- "BSD 2-Clause \"Simplified\" License",
- true,
- false
- ],
- "BSD-2-Clause-FreeBSD": [
- "BSD 2-Clause FreeBSD License",
- false,
- false
- ],
- "BSD-2-Clause-NetBSD": [
- "BSD 2-Clause NetBSD License",
- false,
- false
- ],
- "BSD-2-Clause-Patent": [
- "BSD-2-Clause Plus Patent License",
- true,
- false
- ],
- "BSD-3-Clause": [
- "BSD 3-Clause \"New\" or \"Revised\" License",
- true,
- false
- ],
- "BSD-3-Clause-Attribution": [
- "BSD with attribution",
- false,
- false
- ],
- "BSD-3-Clause-Clear": [
- "BSD 3-Clause Clear License",
- false,
- false
- ],
- "BSD-3-Clause-LBNL": [
- "Lawrence Berkeley National Labs BSD variant license",
- false,
- false
- ],
- "BSD-3-Clause-No-Nuclear-License": [
- "BSD 3-Clause No Nuclear License",
- false,
- false
- ],
- "BSD-3-Clause-No-Nuclear-License-2014": [
- "BSD 3-Clause No Nuclear License 2014",
- false,
- false
- ],
- "BSD-3-Clause-No-Nuclear-Warranty": [
- "BSD 3-Clause No Nuclear Warranty",
- false,
- false
- ],
- "BSD-4-Clause": [
- "BSD 4-Clause \"Original\" or \"Old\" License",
- false,
- false
- ],
- "BSD-4-Clause-UC": [
- "BSD-4-Clause (University of California-Specific)",
- false,
- false
- ],
- "BSD-Protection": [
- "BSD Protection License",
- false,
- false
- ],
- "BSD-Source-Code": [
- "BSD Source Code Attribution",
- false,
- false
- ],
- "BSL-1.0": [
- "Boost Software License 1.0",
- true,
- false
- ],
- "bzip2-1.0.5": [
- "bzip2 and libbzip2 License v1.0.5",
- false,
- false
- ],
- "bzip2-1.0.6": [
- "bzip2 and libbzip2 License v1.0.6",
- false,
- false
- ],
- "Caldera": [
- "Caldera License",
- false,
- false
- ],
- "CATOSL-1.1": [
- "Computer Associates Trusted Open Source License 1.1",
- true,
- false
- ],
- "CC-BY-1.0": [
- "Creative Commons Attribution 1.0",
- false,
- false
- ],
- "CC-BY-2.0": [
- "Creative Commons Attribution 2.0",
- false,
- false
- ],
- "CC-BY-2.5": [
- "Creative Commons Attribution 2.5",
- false,
- false
- ],
- "CC-BY-3.0": [
- "Creative Commons Attribution 3.0",
- false,
- false
- ],
- "CC-BY-4.0": [
- "Creative Commons Attribution 4.0",
- false,
- false
- ],
- "CC-BY-NC-1.0": [
- "Creative Commons Attribution Non Commercial 1.0",
- false,
- false
- ],
- "CC-BY-NC-2.0": [
- "Creative Commons Attribution Non Commercial 2.0",
- false,
- false
- ],
- "CC-BY-NC-2.5": [
- "Creative Commons Attribution Non Commercial 2.5",
- false,
- false
- ],
- "CC-BY-NC-3.0": [
- "Creative Commons Attribution Non Commercial 3.0",
- false,
- false
- ],
- "CC-BY-NC-4.0": [
- "Creative Commons Attribution Non Commercial 4.0",
- false,
- false
- ],
- "CC-BY-NC-ND-1.0": [
- "Creative Commons Attribution Non Commercial No Derivatives 1.0",
- false,
- false
- ],
- "CC-BY-NC-ND-2.0": [
- "Creative Commons Attribution Non Commercial No Derivatives 2.0",
- false,
- false
- ],
- "CC-BY-NC-ND-2.5": [
- "Creative Commons Attribution Non Commercial No Derivatives 2.5",
- false,
- false
- ],
- "CC-BY-NC-ND-3.0": [
- "Creative Commons Attribution Non Commercial No Derivatives 3.0",
- false,
- false
- ],
- "CC-BY-NC-ND-4.0": [
- "Creative Commons Attribution Non Commercial No Derivatives 4.0",
- false,
- false
- ],
- "CC-BY-NC-SA-1.0": [
- "Creative Commons Attribution Non Commercial Share Alike 1.0",
- false,
- false
- ],
- "CC-BY-NC-SA-2.0": [
- "Creative Commons Attribution Non Commercial Share Alike 2.0",
- false,
- false
- ],
- "CC-BY-NC-SA-2.5": [
- "Creative Commons Attribution Non Commercial Share Alike 2.5",
- false,
- false
- ],
- "CC-BY-NC-SA-3.0": [
- "Creative Commons Attribution Non Commercial Share Alike 3.0",
- false,
- false
- ],
- "CC-BY-NC-SA-4.0": [
- "Creative Commons Attribution Non Commercial Share Alike 4.0",
- false,
- false
- ],
- "CC-BY-ND-1.0": [
- "Creative Commons Attribution No Derivatives 1.0",
- false,
- false
- ],
- "CC-BY-ND-2.0": [
- "Creative Commons Attribution No Derivatives 2.0",
- false,
- false
- ],
- "CC-BY-ND-2.5": [
- "Creative Commons Attribution No Derivatives 2.5",
- false,
- false
- ],
- "CC-BY-ND-3.0": [
- "Creative Commons Attribution No Derivatives 3.0",
- false,
- false
- ],
- "CC-BY-ND-4.0": [
- "Creative Commons Attribution No Derivatives 4.0",
- false,
- false
- ],
- "CC-BY-SA-1.0": [
- "Creative Commons Attribution Share Alike 1.0",
- false,
- false
- ],
- "CC-BY-SA-2.0": [
- "Creative Commons Attribution Share Alike 2.0",
- false,
- false
- ],
- "CC-BY-SA-2.5": [
- "Creative Commons Attribution Share Alike 2.5",
- false,
- false
- ],
- "CC-BY-SA-3.0": [
- "Creative Commons Attribution Share Alike 3.0",
- false,
- false
- ],
- "CC-BY-SA-4.0": [
- "Creative Commons Attribution Share Alike 4.0",
- false,
- false
- ],
- "CC0-1.0": [
- "Creative Commons Zero v1.0 Universal",
- false,
- false
- ],
- "CDDL-1.0": [
- "Common Development and Distribution License 1.0",
- true,
- false
- ],
- "CDDL-1.1": [
- "Common Development and Distribution License 1.1",
- false,
- false
- ],
- "CDLA-Permissive-1.0": [
- "Community Data License Agreement Permissive 1.0",
- false,
- false
- ],
- "CDLA-Sharing-1.0": [
- "Community Data License Agreement Sharing 1.0",
- false,
- false
- ],
- "CECILL-1.0": [
- "CeCILL Free Software License Agreement v1.0",
- false,
- false
- ],
- "CECILL-1.1": [
- "CeCILL Free Software License Agreement v1.1",
- false,
- false
- ],
- "CECILL-2.0": [
- "CeCILL Free Software License Agreement v2.0",
- false,
- false
- ],
- "CECILL-2.1": [
- "CeCILL Free Software License Agreement v2.1",
- true,
- false
- ],
- "CECILL-B": [
- "CeCILL-B Free Software License Agreement",
- false,
- false
- ],
- "CECILL-C": [
- "CeCILL-C Free Software License Agreement",
- false,
- false
- ],
- "ClArtistic": [
- "Clarified Artistic License",
- false,
- false
- ],
- "CNRI-Jython": [
- "CNRI Jython License",
- false,
- false
- ],
- "CNRI-Python": [
- "CNRI Python License",
- true,
- false
- ],
- "CNRI-Python-GPL-Compatible": [
- "CNRI Python Open Source GPL Compatible License Agreement",
- false,
- false
- ],
- "Condor-1.1": [
- "Condor Public License v1.1",
- false,
- false
- ],
- "CPAL-1.0": [
- "Common Public Attribution License 1.0",
- true,
- false
- ],
- "CPL-1.0": [
- "Common Public License 1.0",
- true,
- false
- ],
- "CPOL-1.02": [
- "Code Project Open License 1.02",
- false,
- false
- ],
- "Crossword": [
- "Crossword License",
- false,
- false
- ],
- "CrystalStacker": [
- "CrystalStacker License",
- false,
- false
- ],
- "CUA-OPL-1.0": [
- "CUA Office Public License v1.0",
- true,
- false
- ],
- "Cube": [
- "Cube License",
- false,
- false
- ],
- "curl": [
- "curl License",
- false,
- false
- ],
- "D-FSL-1.0": [
- "Deutsche Freie Software Lizenz",
- false,
- false
- ],
- "diffmark": [
- "diffmark license",
- false,
- false
- ],
- "DOC": [
- "DOC License",
- false,
- false
- ],
- "Dotseqn": [
- "Dotseqn License",
- false,
- false
- ],
- "DSDP": [
- "DSDP License",
- false,
- false
- ],
- "dvipdfm": [
- "dvipdfm License",
- false,
- false
- ],
- "ECL-1.0": [
- "Educational Community License v1.0",
- true,
- false
- ],
- "ECL-2.0": [
- "Educational Community License v2.0",
- true,
- false
- ],
- "eCos-2.0": [
- "eCos license version 2.0",
- false,
- true
- ],
- "EFL-1.0": [
- "Eiffel Forum License v1.0",
- true,
- false
- ],
- "EFL-2.0": [
- "Eiffel Forum License v2.0",
- true,
- false
- ],
- "eGenix": [
- "eGenix.com Public License 1.1.0",
- false,
- false
- ],
- "Entessa": [
- "Entessa Public License v1.0",
- true,
- false
- ],
- "EPL-1.0": [
- "Eclipse Public License 1.0",
- true,
- false
- ],
- "EPL-2.0": [
- "Eclipse Public License 2.0",
- true,
- false
- ],
- "ErlPL-1.1": [
- "Erlang Public License v1.1",
- false,
- false
- ],
- "EUDatagrid": [
- "EU DataGrid Software License",
- true,
- false
- ],
- "EUPL-1.0": [
- "European Union Public License 1.0",
- false,
- false
- ],
- "EUPL-1.1": [
- "European Union Public License 1.1",
- true,
- false
- ],
- "EUPL-1.2": [
- "European Union Public License 1.2",
- true,
- false
- ],
- "Eurosym": [
- "Eurosym License",
- false,
- false
- ],
- "Fair": [
- "Fair License",
- true,
- false
- ],
- "Frameworx-1.0": [
- "Frameworx Open License 1.0",
- true,
- false
- ],
- "FreeImage": [
- "FreeImage Public License v1.0",
- false,
- false
- ],
- "FSFAP": [
- "FSF All Permissive License",
- false,
- false
- ],
- "FSFUL": [
- "FSF Unlimited License",
- false,
- false
- ],
- "FSFULLR": [
- "FSF Unlimited License (with License Retention)",
- false,
- false
- ],
- "FTL": [
- "Freetype Project License",
- false,
- false
- ],
- "GFDL-1.1": [
- "GNU Free Documentation License v1.1",
- false,
- true
- ],
- "GFDL-1.1-only": [
- "GNU Free Documentation License v1.1 only",
- false,
- false
- ],
- "GFDL-1.1-or-later": [
- "GNU Free Documentation License v1.1 or later",
- false,
- false
- ],
- "GFDL-1.2": [
- "GNU Free Documentation License v1.2",
- false,
- true
- ],
- "GFDL-1.2-only": [
- "GNU Free Documentation License v1.2 only",
- false,
- false
- ],
- "GFDL-1.2-or-later": [
- "GNU Free Documentation License v1.2 or later",
- false,
- false
- ],
- "GFDL-1.3": [
- "GNU Free Documentation License v1.3",
- false,
- true
- ],
- "GFDL-1.3-only": [
- "GNU Free Documentation License v1.3 only",
- false,
- false
- ],
- "GFDL-1.3-or-later": [
- "GNU Free Documentation License v1.3 or later",
- false,
- false
- ],
- "Giftware": [
- "Giftware License",
- false,
- false
- ],
- "GL2PS": [
- "GL2PS License",
- false,
- false
- ],
- "Glide": [
- "3dfx Glide License",
- false,
- false
- ],
- "Glulxe": [
- "Glulxe License",
- false,
- false
- ],
- "gnuplot": [
- "gnuplot License",
- false,
- false
- ],
- "GPL-1.0": [
- "GNU General Public License v1.0 only",
- false,
- true
- ],
- "GPL-1.0+": [
- "GNU General Public License v1.0 or later",
- false,
- true
- ],
- "GPL-1.0-only": [
- "GNU General Public License v1.0 only",
- false,
- false
- ],
- "GPL-1.0-or-later": [
- "GNU General Public License v1.0 or later",
- false,
- false
- ],
- "GPL-2.0": [
- "GNU General Public License v2.0 only",
- true,
- true
- ],
- "GPL-2.0+": [
- "GNU General Public License v2.0 or later",
- true,
- true
- ],
- "GPL-2.0-only": [
- "GNU General Public License v2.0 only",
- true,
- false
- ],
- "GPL-2.0-or-later": [
- "GNU General Public License v2.0 or later",
- true,
- false
- ],
- "GPL-2.0-with-autoconf-exception": [
- "GNU General Public License v2.0 w/Autoconf exception",
- false,
- true
- ],
- "GPL-2.0-with-bison-exception": [
- "GNU General Public License v2.0 w/Bison exception",
- false,
- true
- ],
- "GPL-2.0-with-classpath-exception": [
- "GNU General Public License v2.0 w/Classpath exception",
- false,
- true
- ],
- "GPL-2.0-with-font-exception": [
- "GNU General Public License v2.0 w/Font exception",
- false,
- true
- ],
- "GPL-2.0-with-GCC-exception": [
- "GNU General Public License v2.0 w/GCC Runtime Library exception",
- false,
- true
- ],
- "GPL-3.0": [
- "GNU General Public License v3.0 only",
- true,
- true
- ],
- "GPL-3.0+": [
- "GNU General Public License v3.0 or later",
- true,
- true
- ],
- "GPL-3.0-only": [
- "GNU General Public License v3.0 only",
- true,
- false
- ],
- "GPL-3.0-or-later": [
- "GNU General Public License v3.0 or later",
- true,
- false
- ],
- "GPL-3.0-with-autoconf-exception": [
- "GNU General Public License v3.0 w/Autoconf exception",
- false,
- true
- ],
- "GPL-3.0-with-GCC-exception": [
- "GNU General Public License v3.0 w/GCC Runtime Library exception",
- true,
- true
- ],
- "gSOAP-1.3b": [
- "gSOAP Public License v1.3b",
- false,
- false
- ],
- "HaskellReport": [
- "Haskell Language Report License",
- false,
- false
- ],
- "HPND": [
- "Historical Permission Notice and Disclaimer",
- true,
- false
- ],
- "IBM-pibs": [
- "IBM PowerPC Initialization and Boot Software",
- false,
- false
- ],
- "ICU": [
- "ICU License",
- false,
- false
- ],
- "IJG": [
- "Independent JPEG Group License",
- false,
- false
- ],
- "ImageMagick": [
- "ImageMagick License",
- false,
- false
- ],
- "iMatix": [
- "iMatix Standard Function Library Agreement",
- false,
- false
- ],
- "Imlib2": [
- "Imlib2 License",
- false,
- false
- ],
- "Info-ZIP": [
- "Info-ZIP License",
- false,
- false
- ],
- "Intel": [
- "Intel Open Source License",
- true,
- false
- ],
- "Intel-ACPI": [
- "Intel ACPI Software License Agreement",
- false,
- false
- ],
- "Interbase-1.0": [
- "Interbase Public License v1.0",
- false,
- false
- ],
- "IPA": [
- "IPA Font License",
- true,
- false
- ],
- "IPL-1.0": [
- "IBM Public License v1.0",
- true,
- false
- ],
- "ISC": [
- "ISC License",
- true,
- false
- ],
- "JasPer-2.0": [
- "JasPer License",
- false,
- false
- ],
- "JSON": [
- "JSON License",
- false,
- false
- ],
- "LAL-1.2": [
- "Licence Art Libre 1.2",
- false,
- false
- ],
- "LAL-1.3": [
- "Licence Art Libre 1.3",
- false,
- false
- ],
- "Latex2e": [
- "Latex2e License",
- false,
- false
- ],
- "Leptonica": [
- "Leptonica License",
- false,
- false
- ],
- "LGPL-2.0": [
- "GNU Library General Public License v2 only",
- true,
- true
- ],
- "LGPL-2.0+": [
- "GNU Library General Public License v2 or later",
- true,
- true
- ],
- "LGPL-2.0-only": [
- "GNU Library General Public License v2 only",
- true,
- false
- ],
- "LGPL-2.0-or-later": [
- "GNU Library General Public License v2 or later",
- true,
- false
- ],
- "LGPL-2.1": [
- "GNU Lesser General Public License v2.1 only",
- true,
- true
- ],
- "LGPL-2.1+": [
- "GNU Library General Public License v2 or later",
- true,
- true
- ],
- "LGPL-2.1-only": [
- "GNU Lesser General Public License v2.1 only",
- true,
- false
- ],
- "LGPL-2.1-or-later": [
- "GNU Lesser General Public License v2.1 or later",
- true,
- false
- ],
- "LGPL-3.0": [
- "GNU Lesser General Public License v3.0 only",
- true,
- true
- ],
- "LGPL-3.0+": [
- "GNU Lesser General Public License v3.0 or later",
- true,
- true
- ],
- "LGPL-3.0-only": [
- "GNU Lesser General Public License v3.0 only",
- true,
- false
- ],
- "LGPL-3.0-or-later": [
- "GNU Lesser General Public License v3.0 or later",
- true,
- false
- ],
- "LGPLLR": [
- "Lesser General Public License For Linguistic Resources",
- false,
- false
- ],
- "Libpng": [
- "libpng License",
- false,
- false
- ],
- "libtiff": [
- "libtiff License",
- false,
- false
- ],
- "LiLiQ-P-1.1": [
- "Licence Libre du Qu\u00e9bec \u2013 Permissive version 1.1",
- true,
- false
- ],
- "LiLiQ-R-1.1": [
- "Licence Libre du Qu\u00e9bec \u2013 R\u00e9ciprocit\u00e9 version 1.1",
- true,
- false
- ],
- "LiLiQ-Rplus-1.1": [
- "Licence Libre du Qu\u00e9bec \u2013 R\u00e9ciprocit\u00e9 forte version 1.1",
- true,
- false
- ],
- "LPL-1.0": [
- "Lucent Public License Version 1.0",
- true,
- false
- ],
- "LPL-1.02": [
- "Lucent Public License v1.02",
- true,
- false
- ],
- "LPPL-1.0": [
- "LaTeX Project Public License v1.0",
- false,
- false
- ],
- "LPPL-1.1": [
- "LaTeX Project Public License v1.1",
- false,
- false
- ],
- "LPPL-1.2": [
- "LaTeX Project Public License v1.2",
- false,
- false
- ],
- "LPPL-1.3a": [
- "LaTeX Project Public License v1.3a",
- false,
- false
- ],
- "LPPL-1.3c": [
- "LaTeX Project Public License v1.3c",
- true,
- false
- ],
- "MakeIndex": [
- "MakeIndex License",
- false,
- false
- ],
- "MirOS": [
- "MirOS License",
- true,
- false
- ],
- "MIT": [
- "MIT License",
- true,
- false
- ],
- "MIT-advertising": [
- "Enlightenment License (e16)",
- false,
- false
- ],
- "MIT-CMU": [
- "CMU License",
- false,
- false
- ],
- "MIT-enna": [
- "enna License",
- false,
- false
- ],
- "MIT-feh": [
- "feh License",
- false,
- false
- ],
- "MITNFA": [
- "MIT +no-false-attribs license",
- false,
- false
- ],
- "Motosoto": [
- "Motosoto License",
- true,
- false
- ],
- "mpich2": [
- "mpich2 License",
- false,
- false
- ],
- "MPL-1.0": [
- "Mozilla Public License 1.0",
- true,
- false
- ],
- "MPL-1.1": [
- "Mozilla Public License 1.1",
- true,
- false
- ],
- "MPL-2.0": [
- "Mozilla Public License 2.0",
- true,
- false
- ],
- "MPL-2.0-no-copyleft-exception": [
- "Mozilla Public License 2.0 (no copyleft exception)",
- true,
- false
- ],
- "MS-PL": [
- "Microsoft Public License",
- true,
- false
- ],
- "MS-RL": [
- "Microsoft Reciprocal License",
- true,
- false
- ],
- "MTLL": [
- "Matrix Template Library License",
- false,
- false
- ],
- "Multics": [
- "Multics License",
- true,
- false
- ],
- "Mup": [
- "Mup License",
- false,
- false
- ],
- "NASA-1.3": [
- "NASA Open Source Agreement 1.3",
- true,
- false
- ],
- "Naumen": [
- "Naumen Public License",
- true,
- false
- ],
- "NBPL-1.0": [
- "Net Boolean Public License v1",
- false,
- false
- ],
- "NCSA": [
- "University of Illinois/NCSA Open Source License",
- true,
- false
- ],
- "Net-SNMP": [
- "Net-SNMP License",
- false,
- false
- ],
- "NetCDF": [
- "NetCDF license",
- false,
- false
- ],
- "Newsletr": [
- "Newsletr License",
- false,
- false
- ],
- "NGPL": [
- "Nethack General Public License",
- true,
- false
- ],
- "NLOD-1.0": [
- "Norwegian Licence for Open Government Data",
- false,
- false
- ],
- "NLPL": [
- "No Limit Public License",
- false,
- false
- ],
- "Nokia": [
- "Nokia Open Source License",
- true,
- false
- ],
- "NOSL": [
- "Netizen Open Source License",
- false,
- false
- ],
- "Noweb": [
- "Noweb License",
- false,
- false
- ],
- "NPL-1.0": [
- "Netscape Public License v1.0",
- false,
- false
- ],
- "NPL-1.1": [
- "Netscape Public License v1.1",
- false,
- false
- ],
- "NPOSL-3.0": [
- "Non-Profit Open Software License 3.0",
- true,
- false
- ],
- "NRL": [
- "NRL License",
- false,
- false
- ],
- "NTP": [
- "NTP License",
- true,
- false
- ],
- "Nunit": [
- "Nunit License",
- false,
- true
- ],
- "OCCT-PL": [
- "Open CASCADE Technology Public License",
- false,
- false
- ],
- "OCLC-2.0": [
- "OCLC Research Public License 2.0",
- true,
- false
- ],
- "ODbL-1.0": [
- "ODC Open Database License v1.0",
- false,
- false
- ],
- "OFL-1.0": [
- "SIL Open Font License 1.0",
- false,
- false
- ],
- "OFL-1.1": [
- "SIL Open Font License 1.1",
- true,
- false
- ],
- "OGTSL": [
- "Open Group Test Suite License",
- true,
- false
- ],
- "OLDAP-1.1": [
- "Open LDAP Public License v1.1",
- false,
- false
- ],
- "OLDAP-1.2": [
- "Open LDAP Public License v1.2",
- false,
- false
- ],
- "OLDAP-1.3": [
- "Open LDAP Public License v1.3",
- false,
- false
- ],
- "OLDAP-1.4": [
- "Open LDAP Public License v1.4",
- false,
- false
- ],
- "OLDAP-2.0": [
- "Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B)",
- false,
- false
- ],
- "OLDAP-2.0.1": [
- "Open LDAP Public License v2.0.1",
- false,
- false
- ],
- "OLDAP-2.1": [
- "Open LDAP Public License v2.1",
- false,
- false
- ],
- "OLDAP-2.2": [
- "Open LDAP Public License v2.2",
- false,
- false
- ],
- "OLDAP-2.2.1": [
- "Open LDAP Public License v2.2.1",
- false,
- false
- ],
- "OLDAP-2.2.2": [
- "Open LDAP Public License 2.2.2",
- false,
- false
- ],
- "OLDAP-2.3": [
- "Open LDAP Public License v2.3",
- false,
- false
- ],
- "OLDAP-2.4": [
- "Open LDAP Public License v2.4",
- false,
- false
- ],
- "OLDAP-2.5": [
- "Open LDAP Public License v2.5",
- false,
- false
- ],
- "OLDAP-2.6": [
- "Open LDAP Public License v2.6",
- false,
- false
- ],
- "OLDAP-2.7": [
- "Open LDAP Public License v2.7",
- false,
- false
- ],
- "OLDAP-2.8": [
- "Open LDAP Public License v2.8",
- false,
- false
- ],
- "OML": [
- "Open Market License",
- false,
- false
- ],
- "OpenSSL": [
- "OpenSSL License",
- false,
- false
- ],
- "OPL-1.0": [
- "Open Public License v1.0",
- false,
- false
- ],
- "OSET-PL-2.1": [
- "OSET Public License version 2.1",
- true,
- false
- ],
- "OSL-1.0": [
- "Open Software License 1.0",
- true,
- false
- ],
- "OSL-1.1": [
- "Open Software License 1.1",
- false,
- false
- ],
- "OSL-2.0": [
- "Open Software License 2.0",
- true,
- false
- ],
- "OSL-2.1": [
- "Open Software License 2.1",
- true,
- false
- ],
- "OSL-3.0": [
- "Open Software License 3.0",
- true,
- false
- ],
- "PDDL-1.0": [
- "ODC Public Domain Dedication & License 1.0",
- false,
- false
- ],
- "PHP-3.0": [
- "PHP License v3.0",
- true,
- false
- ],
- "PHP-3.01": [
- "PHP License v3.01",
- false,
- false
- ],
- "Plexus": [
- "Plexus Classworlds License",
- false,
- false
- ],
- "PostgreSQL": [
- "PostgreSQL License",
- true,
- false
- ],
- "psfrag": [
- "psfrag License",
- false,
- false
- ],
- "psutils": [
- "psutils License",
- false,
- false
- ],
- "Python-2.0": [
- "Python License 2.0",
- true,
- false
- ],
- "Qhull": [
- "Qhull License",
- false,
- false
- ],
- "QPL-1.0": [
- "Q Public License 1.0",
- true,
- false
- ],
- "Rdisc": [
- "Rdisc License",
- false,
- false
- ],
- "RHeCos-1.1": [
- "Red Hat eCos Public License v1.1",
- false,
- false
- ],
- "RPL-1.1": [
- "Reciprocal Public License 1.1",
- true,
- false
- ],
- "RPL-1.5": [
- "Reciprocal Public License 1.5",
- true,
- false
- ],
- "RPSL-1.0": [
- "RealNetworks Public Source License v1.0",
- true,
- false
- ],
- "RSA-MD": [
- "RSA Message-Digest License",
- false,
- false
- ],
- "RSCPL": [
- "Ricoh Source Code Public License",
- true,
- false
- ],
- "Ruby": [
- "Ruby License",
- false,
- false
- ],
- "SAX-PD": [
- "Sax Public Domain Notice",
- false,
- false
- ],
- "Saxpath": [
- "Saxpath License",
- false,
- false
- ],
- "SCEA": [
- "SCEA Shared Source License",
- false,
- false
- ],
- "Sendmail": [
- "Sendmail License",
- false,
- false
- ],
- "SGI-B-1.0": [
- "SGI Free Software License B v1.0",
- false,
- false
- ],
- "SGI-B-1.1": [
- "SGI Free Software License B v1.1",
- false,
- false
- ],
- "SGI-B-2.0": [
- "SGI Free Software License B v2.0",
- false,
- false
- ],
- "SimPL-2.0": [
- "Simple Public License 2.0",
- true,
- false
- ],
- "SISSL": [
- "Sun Industry Standards Source License v1.1",
- true,
- false
- ],
- "SISSL-1.2": [
- "Sun Industry Standards Source License v1.2",
- false,
- false
- ],
- "Sleepycat": [
- "Sleepycat License",
- true,
- false
- ],
- "SMLNJ": [
- "Standard ML of New Jersey License",
- false,
- false
- ],
- "SMPPL": [
- "Secure Messaging Protocol Public License",
- false,
- false
- ],
- "SNIA": [
- "SNIA Public License 1.1",
- false,
- false
- ],
- "Spencer-86": [
- "Spencer License 86",
- false,
- false
- ],
- "Spencer-94": [
- "Spencer License 94",
- false,
- false
- ],
- "Spencer-99": [
- "Spencer License 99",
- false,
- false
- ],
- "SPL-1.0": [
- "Sun Public License v1.0",
- true,
- false
- ],
- "StandardML-NJ": [
- "Standard ML of New Jersey License",
- false,
- true
- ],
- "SugarCRM-1.1.3": [
- "SugarCRM Public License v1.1.3",
- false,
- false
- ],
- "SWL": [
- "Scheme Widget Library (SWL) Software License Agreement",
- false,
- false
- ],
- "TCL": [
- "TCL/TK License",
- false,
- false
- ],
- "TCP-wrappers": [
- "TCP Wrappers License",
- false,
- false
- ],
- "TMate": [
- "TMate Open Source License",
- false,
- false
- ],
- "TORQUE-1.1": [
- "TORQUE v2.5+ Software License v1.1",
- false,
- false
- ],
- "TOSL": [
- "Trusster Open Source License",
- false,
- false
- ],
- "Unicode-DFS-2015": [
- "Unicode License Agreement - Data Files and Software (2015)",
- false,
- false
- ],
- "Unicode-DFS-2016": [
- "Unicode License Agreement - Data Files and Software (2016)",
- false,
- false
- ],
- "Unicode-TOU": [
- "Unicode Terms of Use",
- false,
- false
- ],
- "Unlicense": [
- "The Unlicense",
- false,
- false
- ],
- "UPL-1.0": [
- "Universal Permissive License v1.0",
- true,
- false
- ],
- "Vim": [
- "Vim License",
- false,
- false
- ],
- "VOSTROM": [
- "VOSTROM Public License for Open Source",
- false,
- false
- ],
- "VSL-1.0": [
- "Vovida Software License v1.0",
- true,
- false
- ],
- "W3C": [
- "W3C Software Notice and License (2002-12-31)",
- true,
- false
- ],
- "W3C-19980720": [
- "W3C Software Notice and License (1998-07-20)",
- false,
- false
- ],
- "W3C-20150513": [
- "W3C Software Notice and Document License (2015-05-13)",
- false,
- false
- ],
- "Watcom-1.0": [
- "Sybase Open Watcom Public License 1.0",
- true,
- false
- ],
- "Wsuipa": [
- "Wsuipa License",
- false,
- false
- ],
- "WTFPL": [
- "Do What The F*ck You Want To Public License",
- false,
- false
- ],
- "wxWindows": [
- "wxWindows Library License",
- false,
- true
- ],
- "X11": [
- "X11 License",
- false,
- false
- ],
- "Xerox": [
- "Xerox License",
- false,
- false
- ],
- "XFree86-1.1": [
- "XFree86 License 1.1",
- false,
- false
- ],
- "xinetd": [
- "xinetd License",
- false,
- false
- ],
- "Xnet": [
- "X.Net License",
- true,
- false
- ],
- "xpp": [
- "XPP License",
- false,
- false
- ],
- "XSkat": [
- "XSkat License",
- false,
- false
- ],
- "YPL-1.0": [
- "Yahoo! Public License v1.0",
- false,
- false
- ],
- "YPL-1.1": [
- "Yahoo! Public License v1.1",
- false,
- false
- ],
- "Zed": [
- "Zed License",
- false,
- false
- ],
- "Zend-2.0": [
- "Zend License v2.0",
- false,
- false
- ],
- "Zimbra-1.3": [
- "Zimbra Public License v1.3",
- false,
- false
- ],
- "Zimbra-1.4": [
- "Zimbra Public License v1.4",
- false,
- false
- ],
- "Zlib": [
- "zlib License",
- true,
- false
- ],
- "zlib-acknowledgement": [
- "zlib/libpng License with Acknowledgement",
- false,
- false
- ],
- "ZPL-1.1": [
- "Zope Public License 1.1",
- false,
- false
- ],
- "ZPL-2.0": [
- "Zope Public License 2.0",
- true,
- false
- ],
- "ZPL-2.1": [
- "Zope Public License 2.1",
- false,
- false
- ]
-} \ No newline at end of file
diff --git a/www/wiki/vendor/composer/spdx-licenses/src/SpdxLicenses.php b/www/wiki/vendor/composer/spdx-licenses/src/SpdxLicenses.php
deleted file mode 100644
index db6f7ef2..00000000
--- a/www/wiki/vendor/composer/spdx-licenses/src/SpdxLicenses.php
+++ /dev/null
@@ -1,343 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/spdx-licenses.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Spdx;
-
-class SpdxLicenses
-{
- /** @var string */
- const LICENSES_FILE = 'spdx-licenses.json';
-
- /** @var string */
- const EXCEPTIONS_FILE = 'spdx-exceptions.json';
-
- /**
- * Contains all the licenses.
- *
- * The array is indexed by license identifiers, which contain
- * a numerically indexed array with license details.
- *
- * [ lowercased license identifier =>
- * [ 0 => identifier (string), 1 => full name (string), 2 => osi certified (bool), 3 => deprecated (bool) ]
- * , ...
- * ]
- *
- * @var array
- */
- private $licenses;
-
- /**
- * @var string
- */
- private $licensesExpression;
-
- /**
- * Contains all the license exceptions.
- *
- * The array is indexed by license exception identifiers, which contain
- * a numerically indexed array with license exception details.
- *
- * [ lowercased exception identifier =>
- * [ 0 => exception identifier (string), 1 => full name (string) ]
- * , ...
- * ]
- *
- * @var array
- */
- private $exceptions;
-
- /**
- * @var string
- */
- private $exceptionsExpression;
-
- public function __construct()
- {
- $this->loadLicenses();
- $this->loadExceptions();
- }
-
- /**
- * Returns license metadata by license identifier.
- *
- * This function adds a link to the full license text to the license metadata.
- * The array returned is in the form of:
- *
- * [ 0 => full name (string), 1 => osi certified, 2 => link to license text (string), 3 => deprecation status (bool) ]
- *
- * @param string $identifier
- *
- * @return array|null
- */
- public function getLicenseByIdentifier($identifier)
- {
- $key = strtolower($identifier);
-
- if (!isset($this->licenses[$key])) {
- return;
- }
-
- list($identifier, $name, $isOsiApproved, $isDeprecatedLicenseId) = $this->licenses[$key];
-
- return array(
- $name,
- $isOsiApproved,
- 'https://spdx.org/licenses/' . $identifier . '.html#licenseText',
- $isDeprecatedLicenseId,
- );
- }
-
- /**
- * Returns all licenses information, keyed by the lowercased license identifier.
- *
- * @return array[] Each item is [ 0 => identifier (string), 1 => full name (string), 2 => osi certified (bool), 3 => deprecated (bool) ]
- */
- public function getLicenses()
- {
- return $this->licenses;
- }
-
- /**
- * Returns license exception metadata by license exception identifier.
- *
- * This function adds a link to the full license exception text to the license exception metadata.
- * The array returned is in the form of:
- *
- * [ 0 => full name (string), 1 => link to license text (string) ]
- *
- * @param string $identifier
- *
- * @return array|null
- */
- public function getExceptionByIdentifier($identifier)
- {
- $key = strtolower($identifier);
-
- if (!isset($this->exceptions[$key])) {
- return;
- }
-
- list($identifier, $name) = $this->exceptions[$key];
-
- return array(
- $name,
- 'https://spdx.org/licenses/' . $identifier . '.html#licenseExceptionText',
- );
- }
-
- /**
- * Returns the short identifier of a license (or license exception) by full name.
- *
- * @param string $name
- *
- * @return string|null
- */
- public function getIdentifierByName($name)
- {
- foreach ($this->licenses as $licenseData) {
- if ($licenseData[1] === $name) {
- return $licenseData[0];
- }
- }
-
- foreach ($this->exceptions as $licenseData) {
- if ($licenseData[1] === $name) {
- return $licenseData[0];
- }
- }
- }
-
- /**
- * Returns the OSI Approved status for a license by identifier.
- *
- * @param string $identifier
- *
- * @return bool
- */
- public function isOsiApprovedByIdentifier($identifier)
- {
- return $this->licenses[strtolower($identifier)][2];
- }
-
- /**
- * Returns the deprecation status for a license by identifier.
- *
- * @param string $identifier
- *
- * @return bool
- */
- public function isDeprecatedByIdentifier($identifier)
- {
- return $this->licenses[strtolower($identifier)][3];
- }
-
- /**
- * @param array|string $license
- *
- * @throws \InvalidArgumentException
- *
- * @return bool
- */
- public function validate($license)
- {
- if (is_array($license)) {
- $count = count($license);
- if ($count !== count(array_filter($license, 'is_string'))) {
- throw new \InvalidArgumentException('Array of strings expected.');
- }
- $license = $count > 1 ? '(' . implode(' OR ', $license) . ')' : (string) reset($license);
- }
-
- if (!is_string($license)) {
- throw new \InvalidArgumentException(sprintf(
- 'Array or String expected, %s given.',
- gettype($license)
- ));
- }
-
- return $this->isValidLicenseString($license);
- }
-
- /**
- * @return string
- */
- public static function getResourcesDir()
- {
- return dirname(__DIR__) . '/res';
- }
-
- private function loadLicenses()
- {
- if (null !== $this->licenses) {
- return;
- }
-
- $json = file_get_contents(self::getResourcesDir() . '/' . self::LICENSES_FILE);
- $this->licenses = array();
-
- foreach (json_decode($json, true) as $identifier => $license) {
- $this->licenses[strtolower($identifier)] = array($identifier, $license[0], $license[1], $license[2]);
- }
- }
-
- private function loadExceptions()
- {
- if (null !== $this->exceptions) {
- return;
- }
-
- $json = file_get_contents(self::getResourcesDir() . '/' . self::EXCEPTIONS_FILE);
- $this->exceptions = array();
-
- foreach (json_decode($json, true) as $identifier => $exception) {
- $this->exceptions[strtolower($identifier)] = array($identifier, $exception[0]);
- }
- }
-
- /**
- * @return string
- */
- private function getLicensesExpression()
- {
- if (null === $this->licensesExpression) {
- $licenses = array_map('preg_quote', array_keys($this->licenses));
- rsort($licenses);
- $licenses = implode('|', $licenses);
- $this->licensesExpression = $licenses;
- }
-
- return $this->licensesExpression;
- }
-
- /**
- * @return string
- */
- private function getExceptionsExpression()
- {
- if (null === $this->exceptionsExpression) {
- $exceptions = array_map('preg_quote', array_keys($this->exceptions));
- rsort($exceptions);
- $exceptions = implode('|', $exceptions);
- $this->exceptionsExpression = $exceptions;
- }
-
- return $this->exceptionsExpression;
- }
-
- /**
- * @param string $license
- *
- * @throws \RuntimeException
- *
- * @return bool
- */
- private function isValidLicenseString($license)
- {
- if (isset($this->licenses[strtolower($license)])) {
- return true;
- }
-
- $licenses = $this->getLicensesExpression();
- $exceptions = $this->getExceptionsExpression();
-
- $regex = <<<REGEX
-{
-(?(DEFINE)
- # idstring: 1*( ALPHA / DIGIT / - / . )
- (?<idstring>[\pL\pN.-]{1,})
-
- # license-id: taken from list
- (?<licenseid>${licenses})
-
- # license-exception-id: taken from list
- (?<licenseexceptionid>${exceptions})
-
- # license-ref: [DocumentRef-1*(idstring):]LicenseRef-1*(idstring)
- (?<licenseref>(?:DocumentRef-(?&idstring):)?LicenseRef-(?&idstring))
-
- # simple-expresssion: license-id / license-id+ / license-ref
- (?<simple_expression>(?&licenseid)\+? | (?&licenseid) | (?&licenseref))
-
- # compound-expression: 1*(
- # simple-expression /
- # simple-expression WITH license-exception-id /
- # compound-expression AND compound-expression /
- # compound-expression OR compound-expression
- # ) / ( compound-expression ) )
- (?<compound_head>
- (?&simple_expression) ( \s+ WITH \s+ (?&licenseexceptionid))?
- | \( \s* (?&compound_expression) \s* \)
- )
- (?<compound_expression>
- (?&compound_head) (?: \s+ (?:AND|OR) \s+ (?&compound_expression))?
- )
-
- # license-expression: 1*1(simple-expression / compound-expression)
- (?<license_expression>(?&compound_expression) | (?&simple_expression))
-) # end of define
-
-^(NONE | NOASSERTION | (?&license_expression))$
-}xi
-REGEX;
-
- $match = preg_match($regex, $license);
-
- if (0 === $match) {
- return false;
- }
-
- if (false === $match) {
- throw new \RuntimeException('Regex failed to compile/run.');
- }
-
- return true;
- }
-}
diff --git a/www/wiki/vendor/dnoegel/php-xdg-base-dir/.gitignore b/www/wiki/vendor/dnoegel/php-xdg-base-dir/.gitignore
deleted file mode 100644
index 57872d0f..00000000
--- a/www/wiki/vendor/dnoegel/php-xdg-base-dir/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/vendor/
diff --git a/www/wiki/vendor/dnoegel/php-xdg-base-dir/LICENSE b/www/wiki/vendor/dnoegel/php-xdg-base-dir/LICENSE
deleted file mode 100644
index 029a00ab..00000000
--- a/www/wiki/vendor/dnoegel/php-xdg-base-dir/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2014 Daniel Nögel
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/dnoegel/php-xdg-base-dir/README.md b/www/wiki/vendor/dnoegel/php-xdg-base-dir/README.md
deleted file mode 100644
index 9e51bbb5..00000000
--- a/www/wiki/vendor/dnoegel/php-xdg-base-dir/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# XDG Base Directory
-
-[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
-
-Implementation of XDG Base Directory specification for php
-
-## Install
-
-Via Composer
-
-``` bash
-$ composer require dnoegel/php-xdg-base-dir
-```
-
-## Usage
-
-``` php
-$xdg = \XdgBaseDir\Xdg();
-
-echo $xdg->getHomeDir();
-echo $xdg->getHomeConfigDir()
-echo $xdg->getHomeDataDir()
-echo $xdg->getHomeCacheDir()
-echo $xdg->getRuntimeDir()
-
-$xdg->getDataDirs() // returns array
-$xdg->getConfigDirs() // returns array
-```
-
-## Testing
-
-``` bash
-$ phpunit
-```
-
-## License
-
-The MIT License (MIT). Please see [License File](https://github.com/dnoegel/php-xdg-base-dir/blob/master/LICENSE) for more information.
diff --git a/www/wiki/vendor/dnoegel/php-xdg-base-dir/composer.json b/www/wiki/vendor/dnoegel/php-xdg-base-dir/composer.json
deleted file mode 100644
index f6caf31a..00000000
--- a/www/wiki/vendor/dnoegel/php-xdg-base-dir/composer.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "name": "dnoegel/php-xdg-base-dir",
- "description": "implementation of xdg base directory specification for php",
- "type": "project",
- "license": "MIT",
- "require": {
- "php": ">=5.3.2"
- },
- "require-dev": {
- "phpunit/phpunit": "@stable"
- },
- "autoload": {
- "psr-4": {
- "XdgBaseDir\\": "src/"
- }
- }
-}
diff --git a/www/wiki/vendor/dnoegel/php-xdg-base-dir/phpunit.xml.dist b/www/wiki/vendor/dnoegel/php-xdg-base-dir/phpunit.xml.dist
deleted file mode 100644
index 4000c012..00000000
--- a/www/wiki/vendor/dnoegel/php-xdg-base-dir/phpunit.xml.dist
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit colors="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- processIsolation="false"
- stopOnFailure="false"
- syntaxCheck="false"
- bootstrap="vendor/autoload.php"
- >
-
- <testsuites>
- <testsuite name="php-xdg-base-dir unit tests">
- <directory>./tests/</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist>
- <directory>./src/</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/dnoegel/php-xdg-base-dir/src/Xdg.php b/www/wiki/vendor/dnoegel/php-xdg-base-dir/src/Xdg.php
deleted file mode 100644
index e2acda19..00000000
--- a/www/wiki/vendor/dnoegel/php-xdg-base-dir/src/Xdg.php
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-
-namespace XdgBaseDir;
-
-/**
- * Simple implementation of the XDG standard http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
- *
- * Based on the python implementation https://github.com/takluyver/pyxdg/blob/master/xdg/BaseDirectory.py
- *
- * Class Xdg
- * @package ShopwareCli\Application
- */
-class Xdg
-{
- const S_IFDIR = 040000; // directory
- const S_IRWXO = 00007; // rwx other
- const S_IRWXG = 00056; // rwx group
- const RUNTIME_DIR_FALLBACK = 'php-xdg-runtime-dir-fallback-';
-
- /**
- * @return string
- */
- public function getHomeDir()
- {
- return getenv('HOME') ?: (getenv('HOMEDRIVE') . DIRECTORY_SEPARATOR . getenv('HOMEPATH'));
- }
-
- /**
- * @return string
- */
- public function getHomeConfigDir()
- {
- $path = getenv('XDG_CONFIG_HOME') ?: $this->getHomeDir() . DIRECTORY_SEPARATOR . '.config';
-
- return $path;
- }
-
- /**
- * @return string
- */
- public function getHomeDataDir()
- {
- $path = getenv('XDG_DATA_HOME') ?: $this->getHomeDir() . DIRECTORY_SEPARATOR . '.local' . DIRECTORY_SEPARATOR . 'share';
-
- return $path;
- }
-
- /**
- * @return array
- */
- public function getConfigDirs()
- {
- $configDirs = getenv('XDG_CONFIG_DIRS') ? explode(':', getenv('XDG_CONFIG_DIRS')) : array('/etc/xdg');
-
- $paths = array_merge(array($this->getHomeConfigDir()), $configDirs);
-
- return $paths;
- }
-
- /**
- * @return array
- */
- public function getDataDirs()
- {
- $dataDirs = getenv('XDG_DATA_DIRS') ? explode(':', getenv('XDG_DATA_DIRS')) : array('/usr/local/share', '/usr/share');
-
- $paths = array_merge(array($this->getHomeDataDir()), $dataDirs);
-
- return $paths;
- }
-
- /**
- * @return string
- */
- public function getHomeCacheDir()
- {
- $path = getenv('XDG_CACHE_HOME') ?: $this->getHomeDir() . DIRECTORY_SEPARATOR . '.cache';
-
- return $path;
-
- }
-
- public function getRuntimeDir($strict=true)
- {
- if ($runtimeDir = getenv('XDG_RUNTIME_DIR')) {
- return $runtimeDir;
- }
-
- if ($strict) {
- throw new \RuntimeException('XDG_RUNTIME_DIR was not set');
- }
-
- $fallback = sys_get_temp_dir() . DIRECTORY_SEPARATOR . self::RUNTIME_DIR_FALLBACK . getenv('USER');
-
- $create = false;
-
- if (!is_dir($fallback)) {
- mkdir($fallback, 0700, true);
- }
-
- $st = lstat($fallback);
-
- # The fallback must be a directory
- if (!$st['mode'] & self::S_IFDIR) {
- rmdir($fallback);
- $create = true;
- } elseif ($st['uid'] != getmyuid() ||
- $st['mode'] & (self::S_IRWXG | self::S_IRWXO)
- ) {
- rmdir($fallback);
- $create = true;
- }
-
- if ($create) {
- mkdir($fallback, 0700, true);
- }
-
- return $fallback;
- }
-
-}
diff --git a/www/wiki/vendor/dnoegel/php-xdg-base-dir/tests/XdgTest.php b/www/wiki/vendor/dnoegel/php-xdg-base-dir/tests/XdgTest.php
deleted file mode 100644
index 92c2e07e..00000000
--- a/www/wiki/vendor/dnoegel/php-xdg-base-dir/tests/XdgTest.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-
-class XdgTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @return \XdgBaseDir\Xdg
- */
- public function getXdg()
- {
- return new \XdgBaseDir\Xdg();
- }
-
- public function testGetHomeDir()
- {
- putenv('HOME=/fake-dir');
- $this->assertEquals('/fake-dir', $this->getXdg()->getHomeDir());
- }
-
- public function testGetFallbackHomeDir()
- {
- putenv('HOME=');
- putenv('HOMEDRIVE=C:');
- putenv('HOMEPATH=fake-dir');
- $this->assertEquals('C:/fake-dir', $this->getXdg()->getHomeDir());
- }
-
- public function testXdgPutCache()
- {
- putenv('XDG_DATA_HOME=tmp/');
- putenv('XDG_CONFIG_HOME=tmp/');
- putenv('XDG_CACHE_HOME=tmp/');
- $this->assertEquals('tmp/', $this->getXdg()->getHomeCacheDir());
- }
-
- public function testXdgPutData()
- {
- putenv('XDG_DATA_HOME=tmp/');
- $this->assertEquals('tmp/', $this->getXdg()->getHomeDataDir());
- }
-
- public function testXdgPutConfig()
- {
- putenv('XDG_CONFIG_HOME=tmp/');
- $this->assertEquals('tmp/', $this->getXdg()->getHomeConfigDir());
- }
-
- public function testXdgDataDirsShouldIncludeHomeDataDir()
- {
- putenv('XDG_DATA_HOME=tmp/');
- putenv('XDG_CONFIG_HOME=tmp/');
-
- $this->assertArrayHasKey('tmp/', array_flip($this->getXdg()->getDataDirs()));
- }
-
- public function testXdgConfigDirsShouldIncludeHomeConfigDir()
- {
- putenv('XDG_CONFIG_HOME=tmp/');
-
- $this->assertArrayHasKey('tmp/', array_flip($this->getXdg()->getConfigDirs()));
- }
-
- /**
- * If XDG_RUNTIME_DIR is set, it should be returned
- */
- public function testGetRuntimeDir()
- {
- putenv('XDG_RUNTIME_DIR=/tmp/');
- $runtimeDir = $this->getXdg()->getRuntimeDir();
-
- $this->assertEquals(is_dir($runtimeDir), true);
- }
-
- /**
- * In strict mode, an exception should be shown if XDG_RUNTIME_DIR does not exist
- *
- * @expectedException \RuntimeException
- */
- public function testGetRuntimeDirShouldThrowException()
- {
- putenv('XDG_RUNTIME_DIR=');
- $this->getXdg()->getRuntimeDir(true);
- }
-
- /**
- * In fallback mode a directory should be created
- */
- public function testGetRuntimeDirShouldCreateDirectory()
- {
- putenv('XDG_RUNTIME_DIR=');
- $dir = $this->getXdg()->getRuntimeDir(false);
- $permission = decoct(fileperms($dir) & 0777);
- $this->assertEquals(700, $permission);
- }
-
- /**
- * Ensure, that the fallback directories are created with correct permission
- */
- public function testGetRuntimeShouldDeleteDirsWithWrongPermission()
- {
- $runtimeDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . XdgBaseDir\Xdg::RUNTIME_DIR_FALLBACK . getenv('USER');
-
- rmdir($runtimeDir);
- mkdir($runtimeDir, 0764, true);
-
- // Permission should be wrong now
- $permission = decoct(fileperms($runtimeDir) & 0777);
- $this->assertEquals(764, $permission);
-
- putenv('XDG_RUNTIME_DIR=');
- $dir = $this->getXdg()->getRuntimeDir(false);
-
- // Permission should be fixed
- $permission = decoct(fileperms($dir) & 0777);
- $this->assertEquals(700, $permission);
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/.gitignore b/www/wiki/vendor/doctrine/instantiator/.gitignore
deleted file mode 100644
index e3e368dd..00000000
--- a/www/wiki/vendor/doctrine/instantiator/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-phpunit.xml
-composer.lock
-build
-vendor
-coverage.clover
diff --git a/www/wiki/vendor/doctrine/instantiator/.scrutinizer.yml b/www/wiki/vendor/doctrine/instantiator/.scrutinizer.yml
deleted file mode 100644
index aad5e403..00000000
--- a/www/wiki/vendor/doctrine/instantiator/.scrutinizer.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-before_commands:
- - "composer install --prefer-source"
-
-tools:
- external_code_coverage:
- timeout: 600
- php_code_coverage:
- enabled: true
- test_command: ./vendor/bin/phpunit
- php_code_sniffer:
- enabled: true
- config:
- standard: PSR2
- filter:
- paths: ["src/*", "tests/*"]
- php_cpd:
- enabled: true
- excluded_dirs: ["build/*", "tests", "vendor"]
- php_cs_fixer:
- enabled: true
- config:
- level: all
- filter:
- paths: ["src/*", "tests/*"]
- php_loc:
- enabled: true
- excluded_dirs: ["build", "tests", "vendor"]
- php_mess_detector:
- enabled: true
- config:
- ruleset: phpmd.xml.dist
- design_rules: { eval_expression: false }
- filter:
- paths: ["src/*"]
- php_pdepend:
- enabled: true
- excluded_dirs: ["build", "tests", "vendor"]
- php_analyzer:
- enabled: true
- filter:
- paths: ["src/*", "tests/*"]
- php_hhvm:
- enabled: true
- filter:
- paths: ["src/*", "tests/*"]
- sensiolabs_security_checker: true
diff --git a/www/wiki/vendor/doctrine/instantiator/.travis.install.sh b/www/wiki/vendor/doctrine/instantiator/.travis.install.sh
deleted file mode 100755
index 2819188c..00000000
--- a/www/wiki/vendor/doctrine/instantiator/.travis.install.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-set -x
-if [ "$TRAVIS_PHP_VERSION" = 'hhvm' ] || [ "$TRAVIS_PHP_VERSION" = 'hhvm-nightly' ] ; then
- curl -sS https://getcomposer.org/installer > composer-installer.php
- hhvm composer-installer.php
- hhvm -v ResourceLimit.SocketDefaultTimeout=30 -v Http.SlowQueryThreshold=30000 composer.phar update --prefer-source
-elif [ "$TRAVIS_PHP_VERSION" = '5.3.3' ] ; then
- composer self-update
- composer update --prefer-source --no-dev
- composer dump-autoload
-else
- composer self-update
- composer update --prefer-source
-fi
diff --git a/www/wiki/vendor/doctrine/instantiator/.travis.yml b/www/wiki/vendor/doctrine/instantiator/.travis.yml
deleted file mode 100644
index 7f1ec5f9..00000000
--- a/www/wiki/vendor/doctrine/instantiator/.travis.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-language: php
-
-php:
- - 5.3.3
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - hhvm
-
-before_script:
- - ./.travis.install.sh
- - if [ $TRAVIS_PHP_VERSION = '5.6' ]; then PHPUNIT_FLAGS="--coverage-clover coverage.clover"; else PHPUNIT_FLAGS=""; fi
-
-script:
- - if [ $TRAVIS_PHP_VERSION = '5.3.3' ]; then phpunit; fi
- - if [ $TRAVIS_PHP_VERSION != '5.3.3' ]; then ./vendor/bin/phpunit $PHPUNIT_FLAGS; fi
- - if [ $TRAVIS_PHP_VERSION != '5.3.3' ]; then ./vendor/bin/phpcs --standard=PSR2 ./src/ ./tests/; fi
- - if [[ $TRAVIS_PHP_VERSION != '5.3.3' && $TRAVIS_PHP_VERSION != '5.4.29' && $TRAVIS_PHP_VERSION != '5.5.13' ]]; then php -n ./vendor/bin/athletic -p ./tests/DoctrineTest/InstantiatorPerformance/ -f GroupedFormatter; fi
-
-after_script:
- - if [ $TRAVIS_PHP_VERSION = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
diff --git a/www/wiki/vendor/doctrine/instantiator/CONTRIBUTING.md b/www/wiki/vendor/doctrine/instantiator/CONTRIBUTING.md
deleted file mode 100644
index 75b84b2a..00000000
--- a/www/wiki/vendor/doctrine/instantiator/CONTRIBUTING.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Contributing
-
- * Coding standard for the project is [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)
- * The project will follow strict [object calisthenics](http://www.slideshare.net/guilhermeblanco/object-calisthenics-applied-to-php)
- * Any contribution must provide tests for additional introduced conditions
- * Any un-confirmed issue needs a failing test case before being accepted
- * Pull requests must be sent from a new hotfix/feature branch, not from `master`.
-
-## Installation
-
-To install the project and run the tests, you need to clone it first:
-
-```sh
-$ git clone git://github.com/doctrine/instantiator.git
-```
-
-You will then need to run a composer installation:
-
-```sh
-$ cd Instantiator
-$ curl -s https://getcomposer.org/installer | php
-$ php composer.phar update
-```
-
-## Testing
-
-The PHPUnit version to be used is the one installed as a dev- dependency via composer:
-
-```sh
-$ ./vendor/bin/phpunit
-```
-
-Accepted coverage for new contributions is 80%. Any contribution not satisfying this requirement
-won't be merged.
-
diff --git a/www/wiki/vendor/doctrine/instantiator/LICENSE b/www/wiki/vendor/doctrine/instantiator/LICENSE
deleted file mode 100644
index 4d983d1a..00000000
--- a/www/wiki/vendor/doctrine/instantiator/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2014 Doctrine Project
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/www/wiki/vendor/doctrine/instantiator/README.md b/www/wiki/vendor/doctrine/instantiator/README.md
deleted file mode 100644
index 393ec7ca..00000000
--- a/www/wiki/vendor/doctrine/instantiator/README.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# Instantiator
-
-This library provides a way of avoiding usage of constructors when instantiating PHP classes.
-
-[![Build Status](https://travis-ci.org/doctrine/instantiator.svg?branch=master)](https://travis-ci.org/doctrine/instantiator)
-[![Code Coverage](https://scrutinizer-ci.com/g/doctrine/instantiator/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/doctrine/instantiator/?branch=master)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/doctrine/instantiator/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/doctrine/instantiator/?branch=master)
-[![Dependency Status](https://www.versioneye.com/package/php--doctrine--instantiator/badge.svg)](https://www.versioneye.com/package/php--doctrine--instantiator)
-[![HHVM Status](http://hhvm.h4cc.de/badge/doctrine/instantiator.png)](http://hhvm.h4cc.de/package/doctrine/instantiator)
-
-[![Latest Stable Version](https://poser.pugx.org/doctrine/instantiator/v/stable.png)](https://packagist.org/packages/doctrine/instantiator)
-[![Latest Unstable Version](https://poser.pugx.org/doctrine/instantiator/v/unstable.png)](https://packagist.org/packages/doctrine/instantiator)
-
-## Installation
-
-The suggested installation method is via [composer](https://getcomposer.org/):
-
-```sh
-php composer.phar require "doctrine/instantiator:~1.0.3"
-```
-
-## Usage
-
-The instantiator is able to create new instances of any class without using the constructor or any API of the class
-itself:
-
-```php
-$instantiator = new \Doctrine\Instantiator\Instantiator();
-
-$instance = $instantiator->instantiate('My\\ClassName\\Here');
-```
-
-## Contributing
-
-Please read the [CONTRIBUTING.md](CONTRIBUTING.md) contents if you wish to help out!
-
-## Credits
-
-This library was migrated from [ocramius/instantiator](https://github.com/Ocramius/Instantiator), which
-has been donated to the doctrine organization, and which is now deprecated in favour of this package.
diff --git a/www/wiki/vendor/doctrine/instantiator/composer.json b/www/wiki/vendor/doctrine/instantiator/composer.json
deleted file mode 100644
index 4823890b..00000000
--- a/www/wiki/vendor/doctrine/instantiator/composer.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "name": "doctrine/instantiator",
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "type": "library",
- "license": "MIT",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "instantiate",
- "constructor"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "ext-phar": "*",
- "ext-pdo": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0",
- "athletic/athletic": "~0.1.8"
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "autoload-dev": {
- "psr-0": {
- "DoctrineTest\\InstantiatorPerformance\\": "tests",
- "DoctrineTest\\InstantiatorTest\\": "tests",
- "DoctrineTest\\InstantiatorTestAsset\\": "tests"
- }
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/phpmd.xml.dist b/www/wiki/vendor/doctrine/instantiator/phpmd.xml.dist
deleted file mode 100644
index 82541056..00000000
--- a/www/wiki/vendor/doctrine/instantiator/phpmd.xml.dist
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<ruleset
- name="Instantiator rules"
- xmlns="http://pmd.sf.net/ruleset/1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
- xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
->
- <rule ref="rulesets/cleancode.xml">
- <!-- static access is used for caching purposes -->
- <exclude name="StaticAccess"/>
- </rule>
- <rule ref="rulesets/codesize.xml"/>
- <rule ref="rulesets/controversial.xml"/>
- <rule ref="rulesets/design.xml"/>
- <rule ref="rulesets/naming.xml"/>
- <rule ref="rulesets/unusedcode.xml"/>
- <rule
- name="NPathComplexity"
- message="The {0} {1}() has an NPath complexity of {2}. The configured NPath complexity threshold is {3}."
- class="PHP_PMD_Rule_Design_NpathComplexity"
- >
- <properties>
- <property name="minimum" description="The npath reporting threshold" value="10"/>
- </properties>
- </rule>
-</ruleset>
diff --git a/www/wiki/vendor/doctrine/instantiator/phpunit.xml.dist b/www/wiki/vendor/doctrine/instantiator/phpunit.xml.dist
deleted file mode 100644
index 0a8d5709..00000000
--- a/www/wiki/vendor/doctrine/instantiator/phpunit.xml.dist
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0"?>
-<phpunit
- bootstrap="./vendor/autoload.php"
- colors="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- verbose="true"
- stopOnFailure="false"
- processIsolation="false"
- backupGlobals="false"
- syntaxCheck="true"
->
- <testsuite name="Doctrine\Instantiator tests">
- <directory>./tests/DoctrineTest/InstantiatorTest</directory>
- </testsuite>
- <filter>
- <whitelist addUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">./src</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/ExceptionInterface.php b/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/ExceptionInterface.php
deleted file mode 100644
index 3065375a..00000000
--- a/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/ExceptionInterface.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace Doctrine\Instantiator\Exception;
-
-/**
- * Base exception marker interface for the instantiator component
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-interface ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/InvalidArgumentException.php b/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/InvalidArgumentException.php
deleted file mode 100644
index ea8d28c5..00000000
--- a/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/InvalidArgumentException.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace Doctrine\Instantiator\Exception;
-
-use InvalidArgumentException as BaseInvalidArgumentException;
-use ReflectionClass;
-
-/**
- * Exception for invalid arguments provided to the instantiator
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class InvalidArgumentException extends BaseInvalidArgumentException implements ExceptionInterface
-{
- /**
- * @param string $className
- *
- * @return self
- */
- public static function fromNonExistingClass($className)
- {
- if (interface_exists($className)) {
- return new self(sprintf('The provided type "%s" is an interface, and can not be instantiated', $className));
- }
-
- if (PHP_VERSION_ID >= 50400 && trait_exists($className)) {
- return new self(sprintf('The provided type "%s" is a trait, and can not be instantiated', $className));
- }
-
- return new self(sprintf('The provided class "%s" does not exist', $className));
- }
-
- /**
- * @param ReflectionClass $reflectionClass
- *
- * @return self
- */
- public static function fromAbstractClass(ReflectionClass $reflectionClass)
- {
- return new self(sprintf(
- 'The provided class "%s" is abstract, and can not be instantiated',
- $reflectionClass->getName()
- ));
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php b/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php
deleted file mode 100644
index 1681e56e..00000000
--- a/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace Doctrine\Instantiator\Exception;
-
-use Exception;
-use ReflectionClass;
-use UnexpectedValueException as BaseUnexpectedValueException;
-
-/**
- * Exception for given parameters causing invalid/unexpected state on instantiation
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class UnexpectedValueException extends BaseUnexpectedValueException implements ExceptionInterface
-{
- /**
- * @param ReflectionClass $reflectionClass
- * @param Exception $exception
- *
- * @return self
- */
- public static function fromSerializationTriggeredException(ReflectionClass $reflectionClass, Exception $exception)
- {
- return new self(
- sprintf(
- 'An exception was raised while trying to instantiate an instance of "%s" via un-serialization',
- $reflectionClass->getName()
- ),
- 0,
- $exception
- );
- }
-
- /**
- * @param ReflectionClass $reflectionClass
- * @param string $errorString
- * @param int $errorCode
- * @param string $errorFile
- * @param int $errorLine
- *
- * @return UnexpectedValueException
- */
- public static function fromUncleanUnSerialization(
- ReflectionClass $reflectionClass,
- $errorString,
- $errorCode,
- $errorFile,
- $errorLine
- ) {
- return new self(
- sprintf(
- 'Could not produce an instance of "%s" via un-serialization, since an error was triggered '
- . 'in file "%s" at line "%d"',
- $reflectionClass->getName(),
- $errorFile,
- $errorLine
- ),
- 0,
- new Exception($errorString, $errorCode)
- );
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php b/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php
deleted file mode 100644
index 6d5b3b65..00000000
--- a/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php
+++ /dev/null
@@ -1,273 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace Doctrine\Instantiator;
-
-use Closure;
-use Doctrine\Instantiator\Exception\InvalidArgumentException;
-use Doctrine\Instantiator\Exception\UnexpectedValueException;
-use Exception;
-use ReflectionClass;
-
-/**
- * {@inheritDoc}
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-final class Instantiator implements InstantiatorInterface
-{
- /**
- * Markers used internally by PHP to define whether {@see \unserialize} should invoke
- * the method {@see \Serializable::unserialize()} when dealing with classes implementing
- * the {@see \Serializable} interface.
- */
- const SERIALIZATION_FORMAT_USE_UNSERIALIZER = 'C';
- const SERIALIZATION_FORMAT_AVOID_UNSERIALIZER = 'O';
-
- /**
- * @var \Closure[] of {@see \Closure} instances used to instantiate specific classes
- */
- private static $cachedInstantiators = array();
-
- /**
- * @var object[] of objects that can directly be cloned
- */
- private static $cachedCloneables = array();
-
- /**
- * {@inheritDoc}
- */
- public function instantiate($className)
- {
- if (isset(self::$cachedCloneables[$className])) {
- return clone self::$cachedCloneables[$className];
- }
-
- if (isset(self::$cachedInstantiators[$className])) {
- $factory = self::$cachedInstantiators[$className];
-
- return $factory();
- }
-
- return $this->buildAndCacheFromFactory($className);
- }
-
- /**
- * Builds the requested object and caches it in static properties for performance
- *
- * @param string $className
- *
- * @return object
- */
- private function buildAndCacheFromFactory($className)
- {
- $factory = self::$cachedInstantiators[$className] = $this->buildFactory($className);
- $instance = $factory();
-
- if ($this->isSafeToClone(new ReflectionClass($instance))) {
- self::$cachedCloneables[$className] = clone $instance;
- }
-
- return $instance;
- }
-
- /**
- * Builds a {@see \Closure} capable of instantiating the given $className without
- * invoking its constructor.
- *
- * @param string $className
- *
- * @return Closure
- */
- private function buildFactory($className)
- {
- $reflectionClass = $this->getReflectionClass($className);
-
- if ($this->isInstantiableViaReflection($reflectionClass)) {
- return function () use ($reflectionClass) {
- return $reflectionClass->newInstanceWithoutConstructor();
- };
- }
-
- $serializedString = sprintf(
- '%s:%d:"%s":0:{}',
- $this->getSerializationFormat($reflectionClass),
- strlen($className),
- $className
- );
-
- $this->checkIfUnSerializationIsSupported($reflectionClass, $serializedString);
-
- return function () use ($serializedString) {
- return unserialize($serializedString);
- };
- }
-
- /**
- * @param string $className
- *
- * @return ReflectionClass
- *
- * @throws InvalidArgumentException
- */
- private function getReflectionClass($className)
- {
- if (! class_exists($className)) {
- throw InvalidArgumentException::fromNonExistingClass($className);
- }
-
- $reflection = new ReflectionClass($className);
-
- if ($reflection->isAbstract()) {
- throw InvalidArgumentException::fromAbstractClass($reflection);
- }
-
- return $reflection;
- }
-
- /**
- * @param ReflectionClass $reflectionClass
- * @param string $serializedString
- *
- * @throws UnexpectedValueException
- *
- * @return void
- */
- private function checkIfUnSerializationIsSupported(ReflectionClass $reflectionClass, $serializedString)
- {
- set_error_handler(function ($code, $message, $file, $line) use ($reflectionClass, & $error) {
- $error = UnexpectedValueException::fromUncleanUnSerialization(
- $reflectionClass,
- $message,
- $code,
- $file,
- $line
- );
- });
-
- $this->attemptInstantiationViaUnSerialization($reflectionClass, $serializedString);
-
- restore_error_handler();
-
- if ($error) {
- throw $error;
- }
- }
-
- /**
- * @param ReflectionClass $reflectionClass
- * @param string $serializedString
- *
- * @throws UnexpectedValueException
- *
- * @return void
- */
- private function attemptInstantiationViaUnSerialization(ReflectionClass $reflectionClass, $serializedString)
- {
- try {
- unserialize($serializedString);
- } catch (Exception $exception) {
- restore_error_handler();
-
- throw UnexpectedValueException::fromSerializationTriggeredException($reflectionClass, $exception);
- }
- }
-
- /**
- * @param ReflectionClass $reflectionClass
- *
- * @return bool
- */
- private function isInstantiableViaReflection(ReflectionClass $reflectionClass)
- {
- if (\PHP_VERSION_ID >= 50600) {
- return ! ($this->hasInternalAncestors($reflectionClass) && $reflectionClass->isFinal());
- }
-
- return \PHP_VERSION_ID >= 50400 && ! $this->hasInternalAncestors($reflectionClass);
- }
-
- /**
- * Verifies whether the given class is to be considered internal
- *
- * @param ReflectionClass $reflectionClass
- *
- * @return bool
- */
- private function hasInternalAncestors(ReflectionClass $reflectionClass)
- {
- do {
- if ($reflectionClass->isInternal()) {
- return true;
- }
- } while ($reflectionClass = $reflectionClass->getParentClass());
-
- return false;
- }
-
- /**
- * Verifies if the given PHP version implements the `Serializable` interface serialization
- * with an incompatible serialization format. If that's the case, use serialization marker
- * "C" instead of "O".
- *
- * @link http://news.php.net/php.internals/74654
- *
- * @param ReflectionClass $reflectionClass
- *
- * @return string the serialization format marker, either self::SERIALIZATION_FORMAT_USE_UNSERIALIZER
- * or self::SERIALIZATION_FORMAT_AVOID_UNSERIALIZER
- */
- private function getSerializationFormat(ReflectionClass $reflectionClass)
- {
- if ($this->isPhpVersionWithBrokenSerializationFormat()
- && $reflectionClass->implementsInterface('Serializable')
- ) {
- return self::SERIALIZATION_FORMAT_USE_UNSERIALIZER;
- }
-
- return self::SERIALIZATION_FORMAT_AVOID_UNSERIALIZER;
- }
-
- /**
- * Checks whether the current PHP runtime uses an incompatible serialization format
- *
- * @return bool
- */
- private function isPhpVersionWithBrokenSerializationFormat()
- {
- return PHP_VERSION_ID === 50429 || PHP_VERSION_ID === 50513;
- }
-
- /**
- * Checks if a class is cloneable
- *
- * @param ReflectionClass $reflection
- *
- * @return bool
- */
- private function isSafeToClone(ReflectionClass $reflection)
- {
- if (method_exists($reflection, 'isCloneable') && ! $reflection->isCloneable()) {
- return false;
- }
-
- // not cloneable if it implements `__clone`, as we want to avoid calling it
- return ! $reflection->hasMethod('__clone');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php b/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php
deleted file mode 100644
index b665bea8..00000000
--- a/www/wiki/vendor/doctrine/instantiator/src/Doctrine/Instantiator/InstantiatorInterface.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace Doctrine\Instantiator;
-
-/**
- * Instantiator provides utility methods to build objects without invoking their constructors
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-interface InstantiatorInterface
-{
- /**
- * @param string $className
- *
- * @return object
- *
- * @throws \Doctrine\Instantiator\Exception\ExceptionInterface
- */
- public function instantiate($className);
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorPerformance/InstantiatorPerformanceEvent.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorPerformance/InstantiatorPerformanceEvent.php
deleted file mode 100644
index 3e8fc6ff..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorPerformance/InstantiatorPerformanceEvent.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorPerformance;
-
-use Athletic\AthleticEvent;
-use Doctrine\Instantiator\Instantiator;
-
-/**
- * Performance tests for {@see \Doctrine\Instantiator\Instantiator}
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class InstantiatorPerformanceEvent extends AthleticEvent
-{
- /**
- * @var \Doctrine\Instantiator\Instantiator
- */
- private $instantiator;
-
- /**
- * {@inheritDoc}
- */
- protected function setUp()
- {
- $this->instantiator = new Instantiator();
-
- $this->instantiator->instantiate(__CLASS__);
- $this->instantiator->instantiate('ArrayObject');
- $this->instantiator->instantiate('DoctrineTest\\InstantiatorTestAsset\\SimpleSerializableAsset');
- $this->instantiator->instantiate('DoctrineTest\\InstantiatorTestAsset\\SerializableArrayObjectAsset');
- $this->instantiator->instantiate('DoctrineTest\\InstantiatorTestAsset\\UnCloneableAsset');
- }
-
- /**
- * @iterations 20000
- * @baseline
- * @group instantiation
- */
- public function testInstantiateSelf()
- {
- $this->instantiator->instantiate(__CLASS__);
- }
-
- /**
- * @iterations 20000
- * @group instantiation
- */
- public function testInstantiateInternalClass()
- {
- $this->instantiator->instantiate('ArrayObject');
- }
-
- /**
- * @iterations 20000
- * @group instantiation
- */
- public function testInstantiateSimpleSerializableAssetClass()
- {
- $this->instantiator->instantiate('DoctrineTest\\InstantiatorTestAsset\\SimpleSerializableAsset');
- }
-
- /**
- * @iterations 20000
- * @group instantiation
- */
- public function testInstantiateSerializableArrayObjectAsset()
- {
- $this->instantiator->instantiate('DoctrineTest\\InstantiatorTestAsset\\SerializableArrayObjectAsset');
- }
-
- /**
- * @iterations 20000
- * @group instantiation
- */
- public function testInstantiateUnCloneableAsset()
- {
- $this->instantiator->instantiate('DoctrineTest\\InstantiatorTestAsset\\UnCloneableAsset');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/InvalidArgumentExceptionTest.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/InvalidArgumentExceptionTest.php
deleted file mode 100644
index 39d9b94d..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/InvalidArgumentExceptionTest.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTest\Exception;
-
-use Doctrine\Instantiator\Exception\InvalidArgumentException;
-use PHPUnit_Framework_TestCase;
-use ReflectionClass;
-
-/**
- * Tests for {@see \Doctrine\Instantiator\Exception\InvalidArgumentException}
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- *
- * @covers \Doctrine\Instantiator\Exception\InvalidArgumentException
- */
-class InvalidArgumentExceptionTest extends PHPUnit_Framework_TestCase
-{
- public function testFromNonExistingTypeWithNonExistingClass()
- {
- $className = __CLASS__ . uniqid();
- $exception = InvalidArgumentException::fromNonExistingClass($className);
-
- $this->assertInstanceOf('Doctrine\\Instantiator\\Exception\\InvalidArgumentException', $exception);
- $this->assertSame('The provided class "' . $className . '" does not exist', $exception->getMessage());
- }
-
- public function testFromNonExistingTypeWithTrait()
- {
- if (PHP_VERSION_ID < 50400) {
- $this->markTestSkipped('Need at least PHP 5.4.0, as this test requires traits support to run');
- }
-
- $exception = InvalidArgumentException::fromNonExistingClass(
- 'DoctrineTest\\InstantiatorTestAsset\\SimpleTraitAsset'
- );
-
- $this->assertSame(
- 'The provided type "DoctrineTest\\InstantiatorTestAsset\\SimpleTraitAsset" is a trait, '
- . 'and can not be instantiated',
- $exception->getMessage()
- );
- }
-
- public function testFromNonExistingTypeWithInterface()
- {
- $exception = InvalidArgumentException::fromNonExistingClass('Doctrine\\Instantiator\\InstantiatorInterface');
-
- $this->assertSame(
- 'The provided type "Doctrine\\Instantiator\\InstantiatorInterface" is an interface, '
- . 'and can not be instantiated',
- $exception->getMessage()
- );
- }
-
- public function testFromAbstractClass()
- {
- $reflection = new ReflectionClass('DoctrineTest\\InstantiatorTestAsset\\AbstractClassAsset');
- $exception = InvalidArgumentException::fromAbstractClass($reflection);
-
- $this->assertSame(
- 'The provided class "DoctrineTest\\InstantiatorTestAsset\\AbstractClassAsset" is abstract, '
- . 'and can not be instantiated',
- $exception->getMessage()
- );
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/UnexpectedValueExceptionTest.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/UnexpectedValueExceptionTest.php
deleted file mode 100644
index 84154e73..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/UnexpectedValueExceptionTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTest\Exception;
-
-use Doctrine\Instantiator\Exception\UnexpectedValueException;
-use Exception;
-use PHPUnit_Framework_TestCase;
-use ReflectionClass;
-
-/**
- * Tests for {@see \Doctrine\Instantiator\Exception\UnexpectedValueException}
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- *
- * @covers \Doctrine\Instantiator\Exception\UnexpectedValueException
- */
-class UnexpectedValueExceptionTest extends PHPUnit_Framework_TestCase
-{
- public function testFromSerializationTriggeredException()
- {
- $reflectionClass = new ReflectionClass($this);
- $previous = new Exception();
- $exception = UnexpectedValueException::fromSerializationTriggeredException($reflectionClass, $previous);
-
- $this->assertInstanceOf('Doctrine\\Instantiator\\Exception\\UnexpectedValueException', $exception);
- $this->assertSame($previous, $exception->getPrevious());
- $this->assertSame(
- 'An exception was raised while trying to instantiate an instance of "'
- . __CLASS__ . '" via un-serialization',
- $exception->getMessage()
- );
- }
-
- public function testFromUncleanUnSerialization()
- {
- $reflection = new ReflectionClass('DoctrineTest\\InstantiatorTestAsset\\AbstractClassAsset');
- $exception = UnexpectedValueException::fromUncleanUnSerialization($reflection, 'foo', 123, 'bar', 456);
-
- $this->assertInstanceOf('Doctrine\\Instantiator\\Exception\\UnexpectedValueException', $exception);
- $this->assertSame(
- 'Could not produce an instance of "DoctrineTest\\InstantiatorTestAsset\\AbstractClassAsset" '
- . 'via un-serialization, since an error was triggered in file "bar" at line "456"',
- $exception->getMessage()
- );
-
- $previous = $exception->getPrevious();
-
- $this->assertInstanceOf('Exception', $previous);
- $this->assertSame('foo', $previous->getMessage());
- $this->assertSame(123, $previous->getCode());
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php
deleted file mode 100644
index 0a2cb931..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php
+++ /dev/null
@@ -1,219 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTest;
-
-use Doctrine\Instantiator\Exception\UnexpectedValueException;
-use Doctrine\Instantiator\Instantiator;
-use PHPUnit_Framework_TestCase;
-use ReflectionClass;
-
-/**
- * Tests for {@see \Doctrine\Instantiator\Instantiator}
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- *
- * @covers \Doctrine\Instantiator\Instantiator
- */
-class InstantiatorTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @var Instantiator
- */
- private $instantiator;
-
- /**
- * {@inheritDoc}
- */
- protected function setUp()
- {
- $this->instantiator = new Instantiator();
- }
-
- /**
- * @param string $className
- *
- * @dataProvider getInstantiableClasses
- */
- public function testCanInstantiate($className)
- {
- $this->assertInstanceOf($className, $this->instantiator->instantiate($className));
- }
-
- /**
- * @param string $className
- *
- * @dataProvider getInstantiableClasses
- */
- public function testInstantiatesSeparateInstances($className)
- {
- $instance1 = $this->instantiator->instantiate($className);
- $instance2 = $this->instantiator->instantiate($className);
-
- $this->assertEquals($instance1, $instance2);
- $this->assertNotSame($instance1, $instance2);
- }
-
- public function testExceptionOnUnSerializationException()
- {
- if (defined('HHVM_VERSION')) {
- $this->markTestSkipped(
- 'As of facebook/hhvm#3432, HHVM has no PDORow, and therefore '
- . ' no internal final classes that cannot be instantiated'
- );
- }
-
- $className = 'DoctrineTest\\InstantiatorTestAsset\\UnserializeExceptionArrayObjectAsset';
-
- if (\PHP_VERSION_ID >= 50600) {
- $className = 'PDORow';
- }
-
- if (\PHP_VERSION_ID === 50429 || \PHP_VERSION_ID === 50513) {
- $className = 'DoctrineTest\\InstantiatorTestAsset\\SerializableArrayObjectAsset';
- }
-
- $this->setExpectedException('Doctrine\\Instantiator\\Exception\\UnexpectedValueException');
-
- $this->instantiator->instantiate($className);
- }
-
- public function testNoticeOnUnSerializationException()
- {
- if (\PHP_VERSION_ID >= 50600) {
- $this->markTestSkipped(
- 'PHP 5.6 supports `ReflectionClass#newInstanceWithoutConstructor()` for some internal classes'
- );
- }
-
- try {
- $this->instantiator->instantiate('DoctrineTest\\InstantiatorTestAsset\\WakeUpNoticesAsset');
-
- $this->fail('No exception was raised');
- } catch (UnexpectedValueException $exception) {
- $wakeUpNoticesReflection = new ReflectionClass('DoctrineTest\\InstantiatorTestAsset\\WakeUpNoticesAsset');
- $previous = $exception->getPrevious();
-
- $this->assertInstanceOf('Exception', $previous);
-
- // in PHP 5.4.29 and PHP 5.5.13, this case is not a notice, but an exception being thrown
- if (! (\PHP_VERSION_ID === 50429 || \PHP_VERSION_ID === 50513)) {
- $this->assertSame(
- 'Could not produce an instance of "DoctrineTest\\InstantiatorTestAsset\WakeUpNoticesAsset" '
- . 'via un-serialization, since an error was triggered in file "'
- . $wakeUpNoticesReflection->getFileName() . '" at line "36"',
- $exception->getMessage()
- );
-
- $this->assertSame('Something went bananas while un-serializing this instance', $previous->getMessage());
- $this->assertSame(\E_USER_NOTICE, $previous->getCode());
- }
- }
- }
-
- /**
- * @param string $invalidClassName
- *
- * @dataProvider getInvalidClassNames
- */
- public function testInstantiationFromNonExistingClass($invalidClassName)
- {
- $this->setExpectedException('Doctrine\\Instantiator\\Exception\\InvalidArgumentException');
-
- $this->instantiator->instantiate($invalidClassName);
- }
-
- public function testInstancesAreNotCloned()
- {
- $className = 'TemporaryClass' . uniqid();
-
- eval('namespace ' . __NAMESPACE__ . '; class ' . $className . '{}');
-
- $instance = $this->instantiator->instantiate(__NAMESPACE__ . '\\' . $className);
-
- $instance->foo = 'bar';
-
- $instance2 = $this->instantiator->instantiate(__NAMESPACE__ . '\\' . $className);
-
- $this->assertObjectNotHasAttribute('foo', $instance2);
- }
-
- /**
- * Provides a list of instantiable classes (existing)
- *
- * @return string[][]
- */
- public function getInstantiableClasses()
- {
- $classes = array(
- array('stdClass'),
- array(__CLASS__),
- array('Doctrine\\Instantiator\\Instantiator'),
- array('Exception'),
- array('PharException'),
- array('DoctrineTest\\InstantiatorTestAsset\\SimpleSerializableAsset'),
- array('DoctrineTest\\InstantiatorTestAsset\\ExceptionAsset'),
- array('DoctrineTest\\InstantiatorTestAsset\\FinalExceptionAsset'),
- array('DoctrineTest\\InstantiatorTestAsset\\PharExceptionAsset'),
- array('DoctrineTest\\InstantiatorTestAsset\\UnCloneableAsset'),
- array('DoctrineTest\\InstantiatorTestAsset\\XMLReaderAsset'),
- );
-
- if (\PHP_VERSION_ID === 50429 || \PHP_VERSION_ID === 50513) {
- return $classes;
- }
-
- $classes = array_merge(
- $classes,
- array(
- array('PharException'),
- array('ArrayObject'),
- array('DoctrineTest\\InstantiatorTestAsset\\ArrayObjectAsset'),
- array('DoctrineTest\\InstantiatorTestAsset\\SerializableArrayObjectAsset'),
- )
- );
-
- if (\PHP_VERSION_ID >= 50600) {
- $classes[] = array('DoctrineTest\\InstantiatorTestAsset\\WakeUpNoticesAsset');
- $classes[] = array('DoctrineTest\\InstantiatorTestAsset\\UnserializeExceptionArrayObjectAsset');
- }
-
- return $classes;
- }
-
- /**
- * Provides a list of instantiable classes (existing)
- *
- * @return string[][]
- */
- public function getInvalidClassNames()
- {
- $classNames = array(
- array(__CLASS__ . uniqid()),
- array('Doctrine\\Instantiator\\InstantiatorInterface'),
- array('DoctrineTest\\InstantiatorTestAsset\\AbstractClassAsset'),
- );
-
- if (\PHP_VERSION_ID >= 50400) {
- $classNames[] = array('DoctrineTest\\InstantiatorTestAsset\\SimpleTraitAsset');
- }
-
- return $classNames;
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/AbstractClassAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/AbstractClassAsset.php
deleted file mode 100644
index fbe28ddd..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/AbstractClassAsset.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-/**
- * A simple asset for an abstract class
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-abstract class AbstractClassAsset
-{
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/ArrayObjectAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/ArrayObjectAsset.php
deleted file mode 100644
index 56146d70..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/ArrayObjectAsset.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use ArrayObject;
-use BadMethodCallException;
-
-/**
- * Test asset that extends an internal PHP class
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class ArrayObjectAsset extends ArrayObject
-{
- /**
- * Constructor - should not be called
- *
- * @throws BadMethodCallException
- */
- public function __construct()
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/ExceptionAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/ExceptionAsset.php
deleted file mode 100644
index 43bbe46b..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/ExceptionAsset.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use BadMethodCallException;
-use Exception;
-
-/**
- * Test asset that extends an internal PHP base exception
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class ExceptionAsset extends Exception
-{
- /**
- * Constructor - should not be called
- *
- * @throws BadMethodCallException
- */
- public function __construct()
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/FinalExceptionAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/FinalExceptionAsset.php
deleted file mode 100644
index 7d268f5b..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/FinalExceptionAsset.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use BadMethodCallException;
-use Exception;
-
-/**
- * Test asset that extends an internal PHP base exception
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-final class FinalExceptionAsset extends Exception
-{
- /**
- * Constructor - should not be called
- *
- * @throws BadMethodCallException
- */
- public function __construct()
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/PharAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/PharAsset.php
deleted file mode 100644
index 553fd561..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/PharAsset.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use BadMethodCallException;
-use Phar;
-
-/**
- * Test asset that extends an internal PHP class
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class PharAsset extends Phar
-{
- /**
- * Constructor - should not be called
- *
- * @throws BadMethodCallException
- */
- public function __construct()
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/PharExceptionAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/PharExceptionAsset.php
deleted file mode 100644
index 42bf73e7..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/PharExceptionAsset.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use BadMethodCallException;
-use PharException;
-
-/**
- * Test asset that extends an internal PHP class
- * This class should be serializable without problems
- * and without getting the "Erroneous data format for unserializing"
- * error
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class PharExceptionAsset extends PharException
-{
- /**
- * Constructor - should not be called
- *
- * @throws BadMethodCallException
- */
- public function __construct()
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SerializableArrayObjectAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SerializableArrayObjectAsset.php
deleted file mode 100644
index ba19aaf6..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SerializableArrayObjectAsset.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use ArrayObject;
-use BadMethodCallException;
-use Serializable;
-
-/**
- * Serializable test asset that also extends an internal class
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class SerializableArrayObjectAsset extends ArrayObject implements Serializable
-{
- /**
- * Constructor - should not be called
- *
- * @throws BadMethodCallException
- */
- public function __construct()
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-
- /**
- * {@inheritDoc}
- */
- public function serialize()
- {
- return '';
- }
-
- /**
- * {@inheritDoc}
- *
- * Should not be called
- *
- * @throws BadMethodCallException
- */
- public function unserialize($serialized)
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SimpleSerializableAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SimpleSerializableAsset.php
deleted file mode 100644
index 39f84a6c..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SimpleSerializableAsset.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use BadMethodCallException;
-use Serializable;
-
-/**
- * Base serializable test asset
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class SimpleSerializableAsset implements Serializable
-{
- /**
- * Constructor - should not be called
- *
- * @throws BadMethodCallException
- */
- public function __construct()
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-
- /**
- * {@inheritDoc}
- */
- public function serialize()
- {
- return '';
- }
-
- /**
- * {@inheritDoc}
- *
- * Should not be called
- *
- * @throws BadMethodCallException
- */
- public function unserialize($serialized)
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SimpleTraitAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SimpleTraitAsset.php
deleted file mode 100644
index 04e78069..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SimpleTraitAsset.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-/**
- * A simple trait with no attached logic
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-trait SimpleTraitAsset
-{
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnCloneableAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnCloneableAsset.php
deleted file mode 100644
index 7d03bdab..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnCloneableAsset.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use BadMethodCallException;
-
-/**
- * Base un-cloneable asset
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class UnCloneableAsset
-{
- /**
- * Constructor - should not be called
- *
- * @throws BadMethodCallException
- */
- public function __construct()
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-
- /**
- * Magic `__clone` - should not be invoked
- *
- * @throws BadMethodCallException
- */
- public function __clone()
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnserializeExceptionArrayObjectAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnserializeExceptionArrayObjectAsset.php
deleted file mode 100644
index b348a405..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnserializeExceptionArrayObjectAsset.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use ArrayObject;
-use BadMethodCallException;
-
-/**
- * A simple asset for an abstract class
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class UnserializeExceptionArrayObjectAsset extends ArrayObject
-{
- /**
- * {@inheritDoc}
- */
- public function __wakeup()
- {
- throw new BadMethodCallException();
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/WakeUpNoticesAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/WakeUpNoticesAsset.php
deleted file mode 100644
index 18dc6711..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/WakeUpNoticesAsset.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use ArrayObject;
-
-/**
- * A simple asset for an abstract class
- *
- * @author Marco Pivetta <ocramius@gmail.com>
- */
-class WakeUpNoticesAsset extends ArrayObject
-{
- /**
- * Wakeup method called after un-serialization
- */
- public function __wakeup()
- {
- trigger_error('Something went bananas while un-serializing this instance');
- }
-}
diff --git a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/XMLReaderAsset.php b/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/XMLReaderAsset.php
deleted file mode 100644
index 39ee6992..00000000
--- a/www/wiki/vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/XMLReaderAsset.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * This software consists of voluntary contributions made by many individuals
- * and is licensed under the MIT license. For more information, see
- * <http://www.doctrine-project.org>.
- */
-
-namespace DoctrineTest\InstantiatorTestAsset;
-
-use BadMethodCallException;
-use XMLReader;
-
-/**
- * Test asset that extends an internal PHP class
- *
- * @author Dave Marshall <dave@atst.io>
- */
-class XMLReaderAsset extends XMLReader
-{
- /**
- * Constructor - should not be called
- *
- * @throws BadMethodCallException
- */
- public function __construct()
- {
- throw new BadMethodCallException('Not supposed to be called!');
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/.coveralls.yml b/www/wiki/vendor/hamcrest/hamcrest-php/.coveralls.yml
deleted file mode 100644
index f2f9ed58..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/.coveralls.yml
+++ /dev/null
@@ -1 +0,0 @@
-src_dir: hamcrest
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/.gitignore b/www/wiki/vendor/hamcrest/hamcrest-php/.gitignore
deleted file mode 100644
index 22d0d82f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-vendor
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/.gush.yml b/www/wiki/vendor/hamcrest/hamcrest-php/.gush.yml
deleted file mode 100644
index b7c226d5..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/.gush.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-adapter: github
-issue_tracker: github
-meta-header: "Copyright (c) 2009-2015 hamcrest.org"
-table-pr:
- fixed_tickets: ['Fixed Tickets', '']
- license: ['License', MIT]
-base: master
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/.travis.yml b/www/wiki/vendor/hamcrest/hamcrest-php/.travis.yml
deleted file mode 100644
index 80b4ed09..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-language: php
-php:
- - 5.6
- - 5.5
- - 5.4
- - 5.3
- - hhvm
- - 7.0
-
-matrix:
- allow_failures:
- - php: hhvm
-
-install:
- - composer update --prefer-source
-
-script:
- - mkdir -p build/logs
- - php vendor/bin/phpunit --coverage-clover=build/logs/clover.xml -c tests/phpunit.xml.dist
-
-after_script:
- - php vendor/bin/coveralls -v
- - wget https://scrutinizer-ci.com/ocular.phar
- - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/CHANGES.txt b/www/wiki/vendor/hamcrest/hamcrest-php/CHANGES.txt
deleted file mode 100644
index 708193b0..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/CHANGES.txt
+++ /dev/null
@@ -1,167 +0,0 @@
-== Version 2.0: Released XXX XX 2016 ==
-
-* Removed automatic loading of global functions
-
-== Version 1.1.0: Released Feb 2 2012 ==
-
-Issues Fixed: 121, 138, 147
-
-* Added non-empty matchers to complement the emptiness-matching forms.
-
- - nonEmptyString()
- - nonEmptyArray()
- - nonEmptyTraversable()
-
-* Added ability to pass variable arguments to several array-based matcher
- factory methods so they work like allOf() et al.
-
- - anArray()
- - arrayContainingInAnyOrder(), containsInAnyOrder()
- - arrayContaining(), contains()
- - stringContainsInOrder()
-
-* Matchers that accept an array of matchers now also accept variable arguments.
- Any non-matcher arguments are wrapped by IsEqual.
-
-* Added noneOf() as a shortcut for not(anyOf()).
-
-
-== Version 1.0.0: Released Jan 20 2012 ==
-
-Issues Fixed: 119, 136, 139, 141, 148, 149, 172
-
-* Moved hamcrest.php into Hamcrest folder and renamed to Hamcrest.php.
- This is more in line with PEAR packaging standards.
-
-* Renamed callable() to callableValue() for compatibility with PHP 5.4.
-
-* Added Hamcrest_Text_StringContainsIgnoringCase to assert using stripos().
-
- assertThat('fOObAr', containsStringIgnoringCase('oba'));
- assertThat('fOObAr', containsString('oba')->ignoringCase());
-
-* Fixed Hamcrest_Core_IsInstanceOf to return false for native types.
-
-* Moved string-based matchers to Hamcrest_Text package.
- StringContains, StringEndsWith, StringStartsWith, and SubstringMatcher
-
-* Hamcrest.php and Hamcrest_Matchers.php are now built from @factory doctags.
- Added @factory doctag to every static factory method.
-
-* Hamcrest_Matchers and Hamcrest.php now import each matcher as-needed
- and Hamcrest.php calls the matchers directly instead of Hamcrest_Matchers.
-
-
-== Version 0.3.0: Released Jul 26 2010 ==
-
-* Added running count to Hamcrest_MatcherAssert with methods to get and reset it.
- This can be used by unit testing frameworks for reporting.
-
-* Added Hamcrest_Core_HasToString to assert return value of toString() or __toString().
-
- assertThat($anObject, hasToString('foo'));
-
-* Added Hamcrest_Type_IsScalar to assert is_scalar().
- Matches values of type bool, int, float, double, and string.
-
- assertThat($count, scalarValue());
- assertThat('foo', scalarValue());
-
-* Added Hamcrest_Collection package.
-
- - IsEmptyTraversable
- - IsTraversableWithSize
-
- assertThat($iterator, emptyTraversable());
- assertThat($iterator, traversableWithSize(5));
-
-* Added Hamcrest_Xml_HasXPath to assert XPath expressions or the content of nodes in an XML/HTML DOM.
-
- assertThat($dom, hasXPath('books/book/title'));
- assertThat($dom, hasXPath('books/book[contains(title, "Alice")]', 3));
- assertThat($dom, hasXPath('books/book/title', 'Alice in Wonderland'));
- assertThat($dom, hasXPath('count(books/book)', greaterThan(10)));
-
-* Added aliases to match the Java API.
-
- hasEntry() -> hasKeyValuePair()
- hasValue() -> hasItemInArray()
- contains() -> arrayContaining()
- containsInAnyOrder() -> arrayContainingInAnyOrder()
-
-* Added optional subtype to Hamcrest_TypeSafeMatcher to enforce object class or resource type.
-
-* Hamcrest_TypeSafeDiagnosingMatcher now extends Hamcrest_TypeSafeMatcher.
-
-
-== Version 0.2.0: Released Jul 14 2010 ==
-
-Issues Fixed: 109, 111, 114, 115
-
-* Description::appendValues() and appendValueList() accept Iterator and IteratorAggregate. [111]
- BaseDescription::appendValue() handles IteratorAggregate.
-
-* assertThat() accepts a single boolean parameter and
- wraps any non-Matcher third parameter with equalTo().
-
-* Removed null return value from assertThat(). [114]
-
-* Fixed wrong variable name in contains(). [109]
-
-* Added Hamcrest_Core_IsSet to assert isset().
-
- assertThat(array('foo' => 'bar'), set('foo'));
- assertThat(array('foo' => 'bar'), notSet('bar'));
-
-* Added Hamcrest_Core_IsTypeOf to assert built-in types with gettype(). [115]
- Types: array, boolean, double, integer, null, object, resource, and string.
- Note that gettype() returns "double" for float values.
-
- assertThat($count, typeOf('integer'));
- assertThat(3.14159, typeOf('double'));
- assertThat(array('foo', 'bar'), typeOf('array'));
- assertThat(new stdClass(), typeOf('object'));
-
-* Added type-specific matchers in new Hamcrest_Type package.
-
- - IsArray
- - IsBoolean
- - IsDouble (includes float values)
- - IsInteger
- - IsObject
- - IsResource
- - IsString
-
- assertThat($count, integerValue());
- assertThat(3.14159, floatValue());
- assertThat('foo', stringValue());
-
-* Added Hamcrest_Type_IsNumeric to assert is_numeric().
- Matches values of type int and float/double or strings that are formatted as numbers.
-
- assertThat(5, numericValue());
- assertThat('-5e+3', numericValue());
-
-* Added Hamcrest_Type_IsCallable to assert is_callable().
-
- assertThat('preg_match', callable());
- assertThat(array('SomeClass', 'SomeMethod'), callable());
- assertThat(array($object, 'SomeMethod'), callable());
- assertThat($object, callable());
- assertThat(function ($x, $y) { return $x + $y; }, callable());
-
-* Added Hamcrest_Text_MatchesPattern for regex matching with preg_match().
-
- assertThat('foobar', matchesPattern('/o+b/'));
-
-* Added aliases:
- - atLeast() for greaterThanOrEqualTo()
- - atMost() for lessThanOrEqualTo()
-
-
-== Version 0.1.0: Released Jul 7 2010 ==
-
-* Created PEAR package
-
-* Core matchers
-
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/LICENSE.txt b/www/wiki/vendor/hamcrest/hamcrest-php/LICENSE.txt
deleted file mode 100644
index 91cd329a..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/LICENSE.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-BSD License
-
-Copyright (c) 2000-2014, www.hamcrest.org
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-Redistributions of source code must retain the above copyright notice, this list of
-conditions and the following disclaimer. Redistributions in binary form must reproduce
-the above copyright notice, this list of conditions and the following disclaimer in
-the documentation and/or other materials provided with the distribution.
-
-Neither the name of Hamcrest nor the names of its contributors may be used to endorse
-or promote products derived from this software without specific prior written
-permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
-SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
-TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
-WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGE.
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/README.md b/www/wiki/vendor/hamcrest/hamcrest-php/README.md
deleted file mode 100644
index 0b07c71e..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/README.md
+++ /dev/null
@@ -1,53 +0,0 @@
-This is the PHP port of Hamcrest Matchers
-=========================================
-
-[![Build Status](https://travis-ci.org/hamcrest/hamcrest-php.png?branch=master)](https://travis-ci.org/hamcrest/hamcrest-php)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/hamcrest/hamcrest-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/hamcrest/hamcrest-php/?branch=master)
-[![Code Coverage](https://scrutinizer-ci.com/g/hamcrest/hamcrest-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/hamcrest/hamcrest-php/?branch=master)
-
-Hamcrest is a matching library originally written for Java, but
-subsequently ported to many other languages. hamcrest-php is the
-official PHP port of Hamcrest and essentially follows a literal
-translation of the original Java API for Hamcrest, with a few
-Exceptions, mostly down to PHP language barriers:
-
- 1. `instanceOf($theClass)` is actually `anInstanceOf($theClass)`
-
- 2. `both(containsString('a'))->and(containsString('b'))`
- is actually `both(containsString('a'))->andAlso(containsString('b'))`
-
- 3. `either(containsString('a'))->or(containsString('b'))`
- is actually `either(containsString('a'))->orElse(containsString('b'))`
-
- 4. Unless it would be non-semantic for a matcher to do so, hamcrest-php
- allows dynamic typing for it's input, in "the PHP way". Exception are
- where semantics surrounding the type itself would suggest otherwise,
- such as stringContains() and greaterThan().
-
- 5. Several official matchers have not been ported because they don't
- make sense or don't apply in PHP:
-
- - `typeCompatibleWith($theClass)`
- - `eventFrom($source)`
- - `hasProperty($name)` **
- - `samePropertyValuesAs($obj)` **
-
- 6. When most of the collections matchers are finally ported, PHP-specific
- aliases will probably be created due to a difference in naming
- conventions between Java's Arrays, Collections, Sets and Maps compared
- with PHP's Arrays.
-
----
-** [Unless we consider POPO's (Plain Old PHP Objects) akin to JavaBeans]
- - The POPO thing is a joke. Java devs coin the term POJO's (Plain Old
- Java Objects).
-
-
-Usage
------
-
-Hamcrest matchers are easy to use as:
-
-```php
-Hamcrest_MatcherAssert::assertThat('a', Hamcrest_Matchers::equalToIgnoringCase('A'));
-```
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/TODO.txt b/www/wiki/vendor/hamcrest/hamcrest-php/TODO.txt
deleted file mode 100644
index 92e1190d..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/TODO.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Still TODO Before Complete for PHP
-----------------------------------
-
-Port:
-
- - Hamcrest_Collection_*
- - IsCollectionWithSize
- - IsEmptyCollection
- - IsIn
- - IsTraversableContainingInAnyOrder
- - IsTraversableContainingInOrder
- - IsMapContaining (aliases)
-
-Aliasing/Deprecation (questionable):
-
- - Find and fix any factory methods that start with "is".
-
-Namespaces:
-
- - Investigate adding PHP 5.3+ namespace support in a way that still permits
- use in PHP 5.2.
- - Other than a parallel codebase, I don't see how this could be possible.
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/composer.json b/www/wiki/vendor/hamcrest/hamcrest-php/composer.json
deleted file mode 100644
index 5349f5fd..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/composer.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "name": "hamcrest/hamcrest-php",
- "type": "library",
- "description": "This is the PHP port of Hamcrest Matchers",
- "keywords": ["test"],
- "license": "BSD",
- "authors": [
- ],
-
- "autoload": {
- "classmap": ["hamcrest"]
- },
- "autoload-dev": {
- "classmap": ["tests", "generator"]
- },
-
- "require": {
- "php": "^5.3|^7.0"
- },
-
- "require-dev": {
- "satooshi/php-coveralls": "^1.0",
- "phpunit/php-file-iterator": "1.3.3",
- "phpunit/phpunit": "~4.0"
- },
-
- "replace": {
- "kodova/hamcrest-php": "*",
- "davedevelopment/hamcrest-php": "*",
- "cordoval/hamcrest-php": "*"
- },
-
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/composer.lock b/www/wiki/vendor/hamcrest/hamcrest-php/composer.lock
deleted file mode 100644
index 0581a4ed..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/composer.lock
+++ /dev/null
@@ -1,1493 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
- "This file is @generated automatically"
- ],
- "hash": "52d9e3c2e238bdc2aab7f6e1d322e31d",
- "content-hash": "ed113672807f01f40b4d9809b102dc31",
- "packages": [],
- "packages-dev": [
- {
- "name": "doctrine/instantiator",
- "version": "1.0.5",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
- "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2015-06-14 21:17:01"
- },
- {
- "name": "guzzle/guzzle",
- "version": "v3.9.3",
- "source": {
- "type": "git",
- "url": "https://github.com/guzzle/guzzle3.git",
- "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/0645b70d953bc1c067bbc8d5bc53194706b628d9",
- "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "php": ">=5.3.3",
- "symfony/event-dispatcher": "~2.1"
- },
- "replace": {
- "guzzle/batch": "self.version",
- "guzzle/cache": "self.version",
- "guzzle/common": "self.version",
- "guzzle/http": "self.version",
- "guzzle/inflection": "self.version",
- "guzzle/iterator": "self.version",
- "guzzle/log": "self.version",
- "guzzle/parser": "self.version",
- "guzzle/plugin": "self.version",
- "guzzle/plugin-async": "self.version",
- "guzzle/plugin-backoff": "self.version",
- "guzzle/plugin-cache": "self.version",
- "guzzle/plugin-cookie": "self.version",
- "guzzle/plugin-curlauth": "self.version",
- "guzzle/plugin-error-response": "self.version",
- "guzzle/plugin-history": "self.version",
- "guzzle/plugin-log": "self.version",
- "guzzle/plugin-md5": "self.version",
- "guzzle/plugin-mock": "self.version",
- "guzzle/plugin-oauth": "self.version",
- "guzzle/service": "self.version",
- "guzzle/stream": "self.version"
- },
- "require-dev": {
- "doctrine/cache": "~1.3",
- "monolog/monolog": "~1.0",
- "phpunit/phpunit": "3.7.*",
- "psr/log": "~1.0",
- "symfony/class-loader": "~2.1",
- "zendframework/zend-cache": "2.*,<2.3",
- "zendframework/zend-log": "2.*,<2.3"
- },
- "suggest": {
- "guzzlehttp/guzzle": "Guzzle 5 has moved to a new package name. The package you have installed, Guzzle 3, is deprecated."
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.9-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Guzzle": "src/",
- "Guzzle\\Tests": "tests/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Michael Dowling",
- "email": "mtdowling@gmail.com",
- "homepage": "https://github.com/mtdowling"
- },
- {
- "name": "Guzzle Community",
- "homepage": "https://github.com/guzzle/guzzle/contributors"
- }
- ],
- "description": "PHP HTTP client. This library is deprecated in favor of https://packagist.org/packages/guzzlehttp/guzzle",
- "homepage": "http://guzzlephp.org/",
- "keywords": [
- "client",
- "curl",
- "framework",
- "http",
- "http client",
- "rest",
- "web service"
- ],
- "time": "2015-03-18 18:23:50"
- },
- {
- "name": "phpdocumentor/reflection-docblock",
- "version": "2.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8",
- "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "suggest": {
- "dflydev/markdown": "~1.0",
- "erusev/parsedown": "~1.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "phpDocumentor": [
- "src/"
- ]
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "mike.vanriel@naenius.com"
- }
- ],
- "time": "2015-02-03 12:10:50"
- },
- {
- "name": "phpspec/prophecy",
- "version": "v1.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/prophecy.git",
- "reference": "4745ded9307786b730d7a60df5cb5a6c43cf95f7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4745ded9307786b730d7a60df5cb5a6c43cf95f7",
- "reference": "4745ded9307786b730d7a60df5cb5a6c43cf95f7",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "phpdocumentor/reflection-docblock": "~2.0",
- "sebastian/comparator": "~1.1"
- },
- "require-dev": {
- "phpspec/phpspec": "~2.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "homepage": "https://github.com/phpspec/prophecy",
- "keywords": [
- "Double",
- "Dummy",
- "fake",
- "mock",
- "spy",
- "stub"
- ],
- "time": "2015-08-13 10:07:40"
- },
- {
- "name": "phpunit/php-code-coverage",
- "version": "2.2.4",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-token-stream": "~1.3",
- "sebastian/environment": "^1.3.2",
- "sebastian/version": "~1.0"
- },
- "require-dev": {
- "ext-xdebug": ">=2.1.4",
- "phpunit/phpunit": "~4"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.2.1",
- "ext-xmlwriter": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "time": "2015-10-06 15:47:00"
- },
- {
- "name": "phpunit/php-file-iterator",
- "version": "1.3.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "16a78140ed2fc01b945cfa539665fadc6a038029"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/16a78140ed2fc01b945cfa539665fadc6a038029",
- "reference": "16a78140ed2fc01b945cfa539665fadc6a038029",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "File/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "include-path": [
- ""
- ],
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "homepage": "http://www.phpunit.de/",
- "keywords": [
- "filesystem",
- "iterator"
- ],
- "time": "2012-10-11 11:44:38"
- },
- {
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "keywords": [
- "template"
- ],
- "time": "2015-06-21 13:50:34"
- },
- {
- "name": "phpunit/php-timer",
- "version": "1.0.7",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b",
- "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "keywords": [
- "timer"
- ],
- "time": "2015-06-21 08:01:12"
- },
- {
- "name": "phpunit/php-token-stream",
- "version": "1.4.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
- "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
- "shasum": ""
- },
- "require": {
- "ext-tokenizer": "*",
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "keywords": [
- "tokenizer"
- ],
- "time": "2015-09-15 10:49:45"
- },
- {
- "name": "phpunit/phpunit",
- "version": "4.5.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "d6429b0995b24a2d9dfe5587ee3a7071c1161af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d6429b0995b24a2d9dfe5587ee3a7071c1161af4",
- "reference": "d6429b0995b24a2d9dfe5587ee3a7071c1161af4",
- "shasum": ""
- },
- "require": {
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*",
- "php": ">=5.3.3",
- "phpspec/prophecy": "~1.3,>=1.3.1",
- "phpunit/php-code-coverage": "~2.0,>=2.0.11",
- "phpunit/php-file-iterator": "~1.3.2",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-timer": "~1.0.2",
- "phpunit/phpunit-mock-objects": "~2.3",
- "sebastian/comparator": "~1.1",
- "sebastian/diff": "~1.1",
- "sebastian/environment": "~1.2",
- "sebastian/exporter": "~1.2",
- "sebastian/global-state": "~1.0",
- "sebastian/version": "~1.0",
- "symfony/yaml": "~2.0"
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "4.5.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "The PHP Unit Testing framework.",
- "homepage": "https://phpunit.de/",
- "keywords": [
- "phpunit",
- "testing",
- "xunit"
- ],
- "time": "2015-03-29 09:24:05"
- },
- {
- "name": "phpunit/phpunit-mock-objects",
- "version": "2.3.8",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
- "shasum": ""
- },
- "require": {
- "doctrine/instantiator": "^1.0.2",
- "php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "description": "Mock Object library for PHPUnit",
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "keywords": [
- "mock",
- "xunit"
- ],
- "time": "2015-10-02 06:51:40"
- },
- {
- "name": "psr/log",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b",
- "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Psr\\Log\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2012-12-21 11:40:51"
- },
- {
- "name": "satooshi/php-coveralls",
- "version": "v1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/satooshi/php-coveralls.git",
- "reference": "3edbdbdb4f4cfab5cb9ce83655ff81432f2221a6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/satooshi/php-coveralls/zipball/3edbdbdb4f4cfab5cb9ce83655ff81432f2221a6",
- "reference": "3edbdbdb4f4cfab5cb9ce83655ff81432f2221a6",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "ext-simplexml": "*",
- "guzzle/guzzle": "^2.8|^3.0",
- "php": ">=5.3.3",
- "psr/log": "^1.0",
- "symfony/config": "^2.4|^3.0",
- "symfony/console": "^2.1|^3.0",
- "symfony/stopwatch": "^2.2|^3.0",
- "symfony/yaml": "^2.1|^3.0"
- },
- "suggest": {
- "symfony/http-kernel": "Allows Symfony integration"
- },
- "bin": [
- "bin/coveralls"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "0.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Satooshi\\": "src/Satooshi/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kitamura Satoshi",
- "email": "with.no.parachute@gmail.com",
- "homepage": "https://www.facebook.com/satooshi.jp"
- }
- ],
- "description": "PHP client library for Coveralls API",
- "homepage": "https://github.com/satooshi/php-coveralls",
- "keywords": [
- "ci",
- "coverage",
- "github",
- "test"
- ],
- "time": "2015-12-28 09:07:32"
- },
- {
- "name": "sebastian/comparator",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "937efb279bd37a375bcadf584dec0726f84dbf22"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22",
- "reference": "937efb279bd37a375bcadf584dec0726f84dbf22",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides the functionality to compare PHP values for equality",
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "keywords": [
- "comparator",
- "compare",
- "equality"
- ],
- "time": "2015-07-26 15:48:44"
- },
- {
- "name": "sebastian/diff",
- "version": "1.4.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e",
- "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.8"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Diff implementation",
- "homepage": "https://github.com/sebastianbergmann/diff",
- "keywords": [
- "diff"
- ],
- "time": "2015-12-08 07:14:41"
- },
- {
- "name": "sebastian/environment",
- "version": "1.3.3",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "6e7133793a8e5a5714a551a8324337374be209df"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/6e7133793a8e5a5714a551a8324337374be209df",
- "reference": "6e7133793a8e5a5714a551a8324337374be209df",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Provides functionality to handle HHVM/PHP environments",
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "keywords": [
- "Xdebug",
- "environment",
- "hhvm"
- ],
- "time": "2015-12-02 08:37:27"
- },
- {
- "name": "sebastian/exporter",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "7ae5513327cb536431847bcc0c10edba2701064e"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/7ae5513327cb536431847bcc0c10edba2701064e",
- "reference": "7ae5513327cb536431847bcc0c10edba2701064e",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides the functionality to export PHP variables for visualization",
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "keywords": [
- "export",
- "exporter"
- ],
- "time": "2015-06-21 07:55:53"
- },
- {
- "name": "sebastian/global-state",
- "version": "1.1.1",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "description": "Snapshotting of global state",
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "keywords": [
- "global state"
- ],
- "time": "2015-10-12 03:26:01"
- },
- {
- "name": "sebastian/recursion-context",
- "version": "1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "913401df809e99e4f47b27cdd781f4a258d58791"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/913401df809e99e4f47b27cdd781f4a258d58791",
- "reference": "913401df809e99e4f47b27cdd781f4a258d58791",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2015-11-11 19:50:13"
- },
- {
- "name": "sebastian/version",
- "version": "1.0.6",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/version.git",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "time": "2015-06-21 13:59:46"
- },
- {
- "name": "symfony/config",
- "version": "v2.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/config.git",
- "reference": "17d4b2e64ce1c6ba7caa040f14469b3c44d7f7d2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/17d4b2e64ce1c6ba7caa040f14469b3c44d7f7d2",
- "reference": "17d4b2e64ce1c6ba7caa040f14469b3c44d7f7d2",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "symfony/filesystem": "~2.3|~3.0.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Config\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Config Component",
- "homepage": "https://symfony.com",
- "time": "2015-12-26 13:37:56"
- },
- {
- "name": "symfony/console",
- "version": "v2.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "2e06a5ccb19dcf9b89f1c6a677a39a8df773635a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/2e06a5ccb19dcf9b89f1c6a677a39a8df773635a",
- "reference": "2e06a5ccb19dcf9b89f1c6a677a39a8df773635a",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/event-dispatcher": "~2.1|~3.0.0",
- "symfony/process": "~2.1|~3.0.0"
- },
- "suggest": {
- "psr/log": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/process": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2015-12-22 10:25:57"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "v2.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "a5eb815363c0388e83247e7e9853e5dbc14999cc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a5eb815363c0388e83247e7e9853e5dbc14999cc",
- "reference": "a5eb815363c0388e83247e7e9853e5dbc14999cc",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~2.0,>=2.0.5|~3.0.0",
- "symfony/dependency-injection": "~2.6|~3.0.0",
- "symfony/expression-language": "~2.6|~3.0.0",
- "symfony/stopwatch": "~2.3|~3.0.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2015-10-30 20:15:42"
- },
- {
- "name": "symfony/filesystem",
- "version": "v2.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "a7ad724530a764d70c168d321ac226ba3d2f10fc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/a7ad724530a764d70c168d321ac226ba3d2f10fc",
- "reference": "a7ad724530a764d70c168d321ac226ba3d2f10fc",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2015-12-22 10:25:57"
- },
- {
- "name": "symfony/polyfill-mbstring",
- "version": "v1.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "49ff736bd5d41f45240cec77b44967d76e0c3d25"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/49ff736bd5d41f45240cec77b44967d76e0c3d25",
- "reference": "49ff736bd5d41f45240cec77b44967d76e0c3d25",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "time": "2015-11-20 09:19:13"
- },
- {
- "name": "symfony/stopwatch",
- "version": "v2.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "5f1e2ebd1044da542d2b9510527836e8be92b1cb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/5f1e2ebd1044da542d2b9510527836e8be92b1cb",
- "reference": "5f1e2ebd1044da542d2b9510527836e8be92b1cb",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2015-10-30 20:15:42"
- },
- {
- "name": "symfony/yaml",
- "version": "v2.8.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/yaml.git",
- "reference": "ac84cbb98b68a6abbc9f5149eb96ccc7b07b8966"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/ac84cbb98b68a6abbc9f5149eb96ccc7b07b8966",
- "reference": "ac84cbb98b68a6abbc9f5149eb96ccc7b07b8966",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.9"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.8-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Yaml Component",
- "homepage": "https://symfony.com",
- "time": "2015-12-26 13:37:56"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=5.3.2"
- },
- "platform-dev": []
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryCall.php b/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryCall.php
deleted file mode 100644
index 83965b2a..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryCall.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-class FactoryCall
-{
- /**
- * Hamcrest standard is two spaces for each level of indentation.
- *
- * @var string
- */
- const INDENT = ' ';
-
- /**
- * @var FactoryMethod
- */
- private $method;
-
- /**
- * @var string
- */
- private $name;
-
- public function __construct(FactoryMethod $method, $name)
- {
- $this->method = $method;
- $this->name = $name;
- }
-
- public function getMethod()
- {
- return $this->method;
- }
-
- public function getName()
- {
- return $this->name;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryClass.php b/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryClass.php
deleted file mode 100644
index 0c6bf78d..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryClass.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-class FactoryClass
-{
- /**
- * @var string
- */
- private $file;
-
- /**
- * @var ReflectionClass
- */
- private $reflector;
-
- /**
- * @var array
- */
- private $methods;
-
- public function __construct($file, ReflectionClass $class)
- {
- $this->file = $file;
- $this->reflector = $class;
- $this->extractFactoryMethods();
- }
-
- public function extractFactoryMethods()
- {
- $this->methods = array();
- foreach ($this->getPublicStaticMethods() as $method) {
- if ($method->isFactory()) {
-// echo $this->getName() . '::' . $method->getName() . ' : ' . count($method->getCalls()) . PHP_EOL;
- $this->methods[] = $method;
- }
- }
- }
-
- public function getPublicStaticMethods()
- {
- $methods = array();
- foreach ($this->reflector->getMethods(ReflectionMethod::IS_STATIC) as $method) {
- if ($method->isPublic() && $method->getDeclaringClass() == $this->reflector) {
- $methods[] = new FactoryMethod($this, $method);
- }
- }
- return $methods;
- }
-
- public function getFile()
- {
- return $this->file;
- }
-
- public function getName()
- {
- return $this->reflector->name;
- }
-
- public function isFactory()
- {
- return !empty($this->methods);
- }
-
- public function getMethods()
- {
- return $this->methods;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryFile.php b/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryFile.php
deleted file mode 100644
index ac3d6c7d..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryFile.php
+++ /dev/null
@@ -1,122 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-abstract class FactoryFile
-{
- /**
- * Hamcrest standard is two spaces for each level of indentation.
- *
- * @var string
- */
- const INDENT = ' ';
-
- private $indent;
-
- private $file;
-
- private $code;
-
- public function __construct($file, $indent)
- {
- $this->file = $file;
- $this->indent = $indent;
- }
-
- abstract public function addCall(FactoryCall $call);
-
- abstract public function build();
-
- public function addFileHeader()
- {
- $this->code = '';
- $this->addPart('file_header');
- }
-
- public function addPart($name)
- {
- $this->addCode($this->readPart($name));
- }
-
- public function addCode($code)
- {
- $this->code .= $code;
- }
-
- public function readPart($name)
- {
- return file_get_contents(__DIR__ . "/parts/$name.txt");
- }
-
- public function generateFactoryCall(FactoryCall $call)
- {
- $method = $call->getMethod();
- $code = $method->getComment($this->indent) . PHP_EOL;
- $code .= $this->generateDeclaration($call->getName(), $method);
- // $code .= $this->generateImport($method);
- $code .= $this->generateCall($method);
- $code .= $this->generateClosing();
- return $code;
- }
-
- public function generateDeclaration($name, FactoryMethod $method)
- {
- $code = $this->indent . $this->getDeclarationModifiers()
- . 'function ' . $name . '('
- . $this->generateDeclarationArguments($method)
- . ')' . PHP_EOL . $this->indent . '{' . PHP_EOL;
- return $code;
- }
-
- public function getDeclarationModifiers()
- {
- return '';
- }
-
- public function generateDeclarationArguments(FactoryMethod $method)
- {
- if ($method->acceptsVariableArguments()) {
- return '/* args... */';
- } else {
- return $method->getParameterDeclarations();
- }
- }
-
- public function generateImport(FactoryMethod $method)
- {
- return $this->indent . self::INDENT . "require_once '" . $method->getClass()->getFile() . "';" . PHP_EOL;
- }
-
- public function generateCall(FactoryMethod $method)
- {
- $code = '';
- if ($method->acceptsVariableArguments()) {
- $code .= $this->indent . self::INDENT . '$args = func_get_args();' . PHP_EOL;
- }
-
- $code .= $this->indent . self::INDENT . 'return ';
- if ($method->acceptsVariableArguments()) {
- $code .= 'call_user_func_array(array(\''
- . '\\' . $method->getClassName() . '\', \''
- . $method->getName() . '\'), $args);' . PHP_EOL;
- } else {
- $code .= '\\' . $method->getClassName() . '::'
- . $method->getName() . '('
- . $method->getParameterInvocations() . ');' . PHP_EOL;
- }
-
- return $code;
- }
-
- public function generateClosing()
- {
- return $this->indent . '}' . PHP_EOL;
- }
-
- public function write()
- {
- file_put_contents($this->file, $this->code);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryGenerator.php b/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryGenerator.php
deleted file mode 100644
index 37f80b6e..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryGenerator.php
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * Controls the process of extracting @factory doctags
- * and generating factory method files.
- *
- * Uses File_Iterator to scan for PHP files.
- */
-class FactoryGenerator
-{
- /**
- * Path to the Hamcrest PHP files to process.
- *
- * @var string
- */
- private $path;
-
- /**
- * @var array of FactoryFile
- */
- private $factoryFiles;
-
- public function __construct($path)
- {
- $this->path = $path;
- $this->factoryFiles = array();
- }
-
- public function addFactoryFile(FactoryFile $factoryFile)
- {
- $this->factoryFiles[] = $factoryFile;
- }
-
- public function generate()
- {
- $classes = $this->getClassesWithFactoryMethods();
- foreach ($classes as $class) {
- foreach ($class->getMethods() as $method) {
- foreach ($method->getCalls() as $call) {
- foreach ($this->factoryFiles as $file) {
- $file->addCall($call);
- }
- }
- }
- }
- }
-
- public function write()
- {
- foreach ($this->factoryFiles as $file) {
- $file->build();
- $file->write();
- }
- }
-
- public function getClassesWithFactoryMethods()
- {
- $classes = array();
- $files = $this->getSortedFiles();
- foreach ($files as $file) {
- $class = $this->getFactoryClass($file);
- if ($class !== null) {
- $classes[] = $class;
- }
- }
-
- return $classes;
- }
-
- public function getSortedFiles()
- {
- $iter = \File_Iterator_Factory::getFileIterator($this->path, '.php');
- $files = array();
- foreach ($iter as $file) {
- $files[] = $file;
- }
- sort($files, SORT_STRING);
-
- return $files;
- }
-
- public function getFactoryClass($file)
- {
- $name = $this->getFactoryClassName($file);
- if ($name !== null) {
- require_once $file;
-
- if (class_exists($name)) {
- $class = new FactoryClass(substr($file, strpos($file, 'Hamcrest/')), new ReflectionClass($name));
- if ($class->isFactory()) {
- return $class;
- }
- }
- }
-
- return null;
- }
-
- public function getFactoryClassName($file)
- {
- $content = file_get_contents($file);
- if (preg_match('/namespace\s+(.+);/', $content, $namespace)
- && preg_match('/\n\s*class\s+(\w+)\s+extends\b/', $content, $className)
- && preg_match('/@factory\b/', $content)
- ) {
- return $namespace[1] . '\\' . $className[1];
- }
-
- return null;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryMethod.php b/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryMethod.php
deleted file mode 100644
index 44f8dc51..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryMethod.php
+++ /dev/null
@@ -1,231 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * Represents a single static factory method from a {@link Matcher} class.
- *
- * @todo Search method in file contents for func_get_args() to replace factoryVarArgs.
- */
-class FactoryMethod
-{
- /**
- * @var FactoryClass
- */
- private $class;
-
- /**
- * @var ReflectionMethod
- */
- private $reflector;
-
- /**
- * @var array of string
- */
- private $comment;
-
- /**
- * @var bool
- */
- private $isVarArgs;
-
- /**
- * @var array of FactoryCall
- */
- private $calls;
-
- /**
- * @var array FactoryParameter
- */
- private $parameters;
-
- public function __construct(FactoryClass $class, ReflectionMethod $reflector)
- {
- $this->class = $class;
- $this->reflector = $reflector;
- $this->extractCommentWithoutLeadingShashesAndStars();
- $this->extractFactoryNamesFromComment();
- $this->extractParameters();
- }
-
- public function extractCommentWithoutLeadingShashesAndStars()
- {
- $this->comment = explode("\n", $this->reflector->getDocComment());
- foreach ($this->comment as &$line) {
- $line = preg_replace('#^\s*(/\\*+|\\*+/|\\*)\s?#', '', $line);
- }
- $this->trimLeadingBlankLinesFromComment();
- $this->trimTrailingBlankLinesFromComment();
- }
-
- public function trimLeadingBlankLinesFromComment()
- {
- while (count($this->comment) > 0) {
- $line = array_shift($this->comment);
- if (trim($line) != '') {
- array_unshift($this->comment, $line);
- break;
- }
- }
- }
-
- public function trimTrailingBlankLinesFromComment()
- {
- while (count($this->comment) > 0) {
- $line = array_pop($this->comment);
- if (trim($line) != '') {
- array_push($this->comment, $line);
- break;
- }
- }
- }
-
- public function extractFactoryNamesFromComment()
- {
- $this->calls = array();
- for ($i = 0; $i < count($this->comment); $i++) {
- if ($this->extractFactoryNamesFromLine($this->comment[$i])) {
- unset($this->comment[$i]);
- }
- }
- $this->trimTrailingBlankLinesFromComment();
- }
-
- public function extractFactoryNamesFromLine($line)
- {
- if (preg_match('/^\s*@factory(\s+(.+))?$/', $line, $match)) {
- $this->createCalls(
- $this->extractFactoryNamesFromAnnotation(
- isset($match[2]) ? trim($match[2]) : null
- )
- );
- return true;
- }
- return false;
- }
-
- public function extractFactoryNamesFromAnnotation($value)
- {
- $primaryName = $this->reflector->getName();
- if (empty($value)) {
- return array($primaryName);
- }
- preg_match_all('/(\.{3}|-|[a-zA-Z_][a-zA-Z_0-9]*)/', $value, $match);
- $names = $match[0];
- if (in_array('...', $names)) {
- $this->isVarArgs = true;
- }
- if (!in_array('-', $names) && !in_array($primaryName, $names)) {
- array_unshift($names, $primaryName);
- }
- return $names;
- }
-
- public function createCalls(array $names)
- {
- $names = array_unique($names);
- foreach ($names as $name) {
- if ($name != '-' && $name != '...') {
- $this->calls[] = new FactoryCall($this, $name);
- }
- }
- }
-
- public function extractParameters()
- {
- $this->parameters = array();
- if (!$this->isVarArgs) {
- foreach ($this->reflector->getParameters() as $parameter) {
- $this->parameters[] = new FactoryParameter($this, $parameter);
- }
- }
- }
-
- public function getParameterDeclarations()
- {
- if ($this->isVarArgs || !$this->hasParameters()) {
- return '';
- }
- $params = array();
- foreach ($this->parameters as /** @var $parameter FactoryParameter */
- $parameter) {
- $params[] = $parameter->getDeclaration();
- }
- return implode(', ', $params);
- }
-
- public function getParameterInvocations()
- {
- if ($this->isVarArgs) {
- return '';
- }
- $params = array();
- foreach ($this->parameters as $parameter) {
- $params[] = $parameter->getInvocation();
- }
- return implode(', ', $params);
- }
-
-
- public function getClass()
- {
- return $this->class;
- }
-
- public function getClassName()
- {
- return $this->class->getName();
- }
-
- public function getName()
- {
- return $this->reflector->name;
- }
-
- public function isFactory()
- {
- return count($this->calls) > 0;
- }
-
- public function getCalls()
- {
- return $this->calls;
- }
-
- public function acceptsVariableArguments()
- {
- return $this->isVarArgs;
- }
-
- public function hasParameters()
- {
- return !empty($this->parameters);
- }
-
- public function getParameters()
- {
- return $this->parameters;
- }
-
- public function getFullName()
- {
- return $this->getClassName() . '::' . $this->getName();
- }
-
- public function getCommentText()
- {
- return implode(PHP_EOL, $this->comment);
- }
-
- public function getComment($indent = '')
- {
- $comment = $indent . '/**';
- foreach ($this->comment as $line) {
- $comment .= PHP_EOL . rtrim($indent . ' * ' . $line);
- }
- $comment .= PHP_EOL . $indent . ' */';
- return $comment;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryParameter.php b/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryParameter.php
deleted file mode 100644
index 93a76b38..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/FactoryParameter.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-class FactoryParameter
-{
- /**
- * @var FactoryMethod
- */
- private $method;
-
- /**
- * @var ReflectionParameter
- */
- private $reflector;
-
- public function __construct(FactoryMethod $method, ReflectionParameter $reflector)
- {
- $this->method = $method;
- $this->reflector = $reflector;
- }
-
- public function getDeclaration()
- {
- if ($this->reflector->isArray()) {
- $code = 'array ';
- } else {
- $class = $this->reflector->getClass();
- if ($class !== null) {
- $code = '\\' . $class->name . ' ';
- } else {
- $code = '';
- }
- }
- $code .= '$' . $this->reflector->name;
- if ($this->reflector->isOptional()) {
- $default = $this->reflector->getDefaultValue();
- if (is_null($default)) {
- $default = 'null';
- } elseif (is_bool($default)) {
- $default = $default ? 'true' : 'false';
- } elseif (is_string($default)) {
- $default = "'" . $default . "'";
- } elseif (is_numeric($default)) {
- $default = strval($default);
- } elseif (is_array($default)) {
- $default = 'array()';
- } else {
- echo 'Warning: unknown default type for ' . $this->getMethod()->getFullName() . PHP_EOL;
- var_dump($default);
- $default = 'null';
- }
- $code .= ' = ' . $default;
- }
- return $code;
- }
-
- public function getInvocation()
- {
- return '$' . $this->reflector->name;
- }
-
- public function getMethod()
- {
- return $this->method;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/GlobalFunctionFile.php b/www/wiki/vendor/hamcrest/hamcrest-php/generator/GlobalFunctionFile.php
deleted file mode 100644
index 5ee1b69f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/GlobalFunctionFile.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-class GlobalFunctionFile extends FactoryFile
-{
- /**
- * @var string containing function definitions
- */
- private $functions;
-
- public function __construct($file)
- {
- parent::__construct($file, ' ');
- $this->functions = '';
- }
-
- public function addCall(FactoryCall $call)
- {
- $this->functions .= PHP_EOL . $this->generateFactoryCall($call);
- }
-
- public function build()
- {
- $this->addFileHeader();
- $this->addPart('functions_imports');
- $this->addPart('functions_header');
- $this->addCode($this->functions);
- $this->addPart('functions_footer');
- }
-
- public function generateFactoryCall(FactoryCall $call)
- {
- $code = "if (!function_exists('{$call->getName()}')) {";
- $code.= parent::generateFactoryCall($call);
- $code.= "}\n";
-
- return $code;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php b/www/wiki/vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php
deleted file mode 100644
index 44cec02f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/StaticMethodFile.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-class StaticMethodFile extends FactoryFile
-{
- /**
- * @var string containing method definitions
- */
- private $methods;
-
- public function __construct($file)
- {
- parent::__construct($file, ' ');
- $this->methods = '';
- }
-
- public function addCall(FactoryCall $call)
- {
- $this->methods .= PHP_EOL . $this->generateFactoryCall($call);
- }
-
- public function getDeclarationModifiers()
- {
- return 'public static ';
- }
-
- public function build()
- {
- $this->addFileHeader();
- $this->addPart('matchers_imports');
- $this->addPart('matchers_header');
- $this->addCode($this->methods);
- $this->addPart('matchers_footer');
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/file_header.txt b/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/file_header.txt
deleted file mode 100644
index 7b352e44..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/file_header.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009-2010 hamcrest.org
- */
-
-// This file is generated from the static method @factory doctags.
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_footer.txt b/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_footer.txt
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_footer.txt
+++ /dev/null
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_header.txt b/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_header.txt
deleted file mode 100644
index 50d23df8..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_header.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-
-if (!function_exists('assertThat')) {
- /**
- * Make an assertion and throw {@link Hamcrest_AssertionError} if it fails.
- *
- * Example:
- * <pre>
- * //With an identifier
- * assertThat("assertion identifier", $apple->flavour(), equalTo("tasty"));
- * //Without an identifier
- * assertThat($apple->flavour(), equalTo("tasty"));
- * //Evaluating a boolean expression
- * assertThat("some error", $a > $b);
- * </pre>
- */
- function assertThat()
- {
- $args = func_get_args();
- call_user_func_array(
- array('Hamcrest\MatcherAssert', 'assertThat'),
- $args
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_imports.txt b/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_imports.txt
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/functions_imports.txt
+++ /dev/null
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_footer.txt b/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_footer.txt
deleted file mode 100644
index 5c34318c..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_footer.txt
+++ /dev/null
@@ -1 +0,0 @@
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_header.txt b/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_header.txt
deleted file mode 100644
index 4f8bb2b7..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_header.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-/**
- * A series of static factories for all hamcrest matchers.
- */
-class Matchers
-{
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_imports.txt b/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_imports.txt
deleted file mode 100644
index 7dd68495..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/parts/matchers_imports.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-
-namespace Hamcrest; \ No newline at end of file
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/generator/run.php b/www/wiki/vendor/hamcrest/hamcrest-php/generator/run.php
deleted file mode 100644
index 924d752f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/generator/run.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-require __DIR__ . '/../vendor/autoload.php';
-
-/*
- * Generates the Hamcrest\Matchers factory class and factory functions
- * from the @factory doctags in the various matchers.
- */
-
-define('GENERATOR_BASE', __DIR__);
-define('HAMCREST_BASE', realpath(dirname(GENERATOR_BASE) . DIRECTORY_SEPARATOR . 'hamcrest'));
-
-define('GLOBAL_FUNCTIONS_FILE', HAMCREST_BASE . DIRECTORY_SEPARATOR . 'Hamcrest.php');
-define('STATIC_MATCHERS_FILE', HAMCREST_BASE . DIRECTORY_SEPARATOR . 'Hamcrest' . DIRECTORY_SEPARATOR . 'Matchers.php');
-
-set_include_path(
- implode(
- PATH_SEPARATOR,
- array(
- GENERATOR_BASE,
- HAMCREST_BASE,
- get_include_path()
- )
- )
-);
-
-@unlink(GLOBAL_FUNCTIONS_FILE);
-@unlink(STATIC_MATCHERS_FILE);
-
-$generator = new FactoryGenerator(HAMCREST_BASE . DIRECTORY_SEPARATOR . 'Hamcrest');
-$generator->addFactoryFile(new StaticMethodFile(STATIC_MATCHERS_FILE));
-$generator->addFactoryFile(new GlobalFunctionFile(GLOBAL_FUNCTIONS_FILE));
-$generator->generate();
-$generator->write();
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php
deleted file mode 100644
index 8a719eb3..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php
+++ /dev/null
@@ -1,805 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009-2010 hamcrest.org
- */
-
-// This file is generated from the static method @factory doctags.
-
-if (!function_exists('assertThat')) {
- /**
- * Make an assertion and throw {@link Hamcrest_AssertionError} if it fails.
- *
- * Example:
- * <pre>
- * //With an identifier
- * assertThat("assertion identifier", $apple->flavour(), equalTo("tasty"));
- * //Without an identifier
- * assertThat($apple->flavour(), equalTo("tasty"));
- * //Evaluating a boolean expression
- * assertThat("some error", $a > $b);
- * </pre>
- */
- function assertThat()
- {
- $args = func_get_args();
- call_user_func_array(
- array('Hamcrest\MatcherAssert', 'assertThat'),
- $args
- );
- }
-}
-
-if (!function_exists('anArray')) { /**
- * Evaluates to true only if each $matcher[$i] is satisfied by $array[$i].
- */
- function anArray(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArray', 'anArray'), $args);
- }
-}
-
-if (!function_exists('hasItemInArray')) { /**
- * Evaluates to true if any item in an array satisfies the given matcher.
- *
- * @param mixed $item as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContaining
- */
- function hasItemInArray($item)
- {
- return \Hamcrest\Arrays\IsArrayContaining::hasItemInArray($item);
- }
-}
-
-if (!function_exists('hasValue')) { /**
- * Evaluates to true if any item in an array satisfies the given matcher.
- *
- * @param mixed $item as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContaining
- */
- function hasValue($item)
- {
- return \Hamcrest\Arrays\IsArrayContaining::hasItemInArray($item);
- }
-}
-
-if (!function_exists('arrayContainingInAnyOrder')) { /**
- * An array with elements that match the given matchers.
- */
- function arrayContainingInAnyOrder(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInAnyOrder', 'arrayContainingInAnyOrder'), $args);
- }
-}
-
-if (!function_exists('containsInAnyOrder')) { /**
- * An array with elements that match the given matchers.
- */
- function containsInAnyOrder(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInAnyOrder', 'arrayContainingInAnyOrder'), $args);
- }
-}
-
-if (!function_exists('arrayContaining')) { /**
- * An array with elements that match the given matchers in the same order.
- */
- function arrayContaining(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInOrder', 'arrayContaining'), $args);
- }
-}
-
-if (!function_exists('contains')) { /**
- * An array with elements that match the given matchers in the same order.
- */
- function contains(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInOrder', 'arrayContaining'), $args);
- }
-}
-
-if (!function_exists('hasKeyInArray')) { /**
- * Evaluates to true if any key in an array matches the given matcher.
- *
- * @param mixed $key as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContainingKey
- */
- function hasKeyInArray($key)
- {
- return \Hamcrest\Arrays\IsArrayContainingKey::hasKeyInArray($key);
- }
-}
-
-if (!function_exists('hasKey')) { /**
- * Evaluates to true if any key in an array matches the given matcher.
- *
- * @param mixed $key as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContainingKey
- */
- function hasKey($key)
- {
- return \Hamcrest\Arrays\IsArrayContainingKey::hasKeyInArray($key);
- }
-}
-
-if (!function_exists('hasKeyValuePair')) { /**
- * Test if an array has both an key and value in parity with each other.
- */
- function hasKeyValuePair($key, $value)
- {
- return \Hamcrest\Arrays\IsArrayContainingKeyValuePair::hasKeyValuePair($key, $value);
- }
-}
-
-if (!function_exists('hasEntry')) { /**
- * Test if an array has both an key and value in parity with each other.
- */
- function hasEntry($key, $value)
- {
- return \Hamcrest\Arrays\IsArrayContainingKeyValuePair::hasKeyValuePair($key, $value);
- }
-}
-
-if (!function_exists('arrayWithSize')) { /**
- * Does array size satisfy a given matcher?
- *
- * @param \Hamcrest\Matcher|int $size as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayWithSize
- */
- function arrayWithSize($size)
- {
- return \Hamcrest\Arrays\IsArrayWithSize::arrayWithSize($size);
- }
-}
-
-if (!function_exists('emptyArray')) { /**
- * Matches an empty array.
- */
- function emptyArray()
- {
- return \Hamcrest\Arrays\IsArrayWithSize::emptyArray();
- }
-}
-
-if (!function_exists('nonEmptyArray')) { /**
- * Matches an empty array.
- */
- function nonEmptyArray()
- {
- return \Hamcrest\Arrays\IsArrayWithSize::nonEmptyArray();
- }
-}
-
-if (!function_exists('emptyTraversable')) { /**
- * Returns true if traversable is empty.
- */
- function emptyTraversable()
- {
- return \Hamcrest\Collection\IsEmptyTraversable::emptyTraversable();
- }
-}
-
-if (!function_exists('nonEmptyTraversable')) { /**
- * Returns true if traversable is not empty.
- */
- function nonEmptyTraversable()
- {
- return \Hamcrest\Collection\IsEmptyTraversable::nonEmptyTraversable();
- }
-}
-
-if (!function_exists('traversableWithSize')) { /**
- * Does traversable size satisfy a given matcher?
- */
- function traversableWithSize($size)
- {
- return \Hamcrest\Collection\IsTraversableWithSize::traversableWithSize($size);
- }
-}
-
-if (!function_exists('allOf')) { /**
- * Evaluates to true only if ALL of the passed in matchers evaluate to true.
- */
- function allOf(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\AllOf', 'allOf'), $args);
- }
-}
-
-if (!function_exists('anyOf')) { /**
- * Evaluates to true if ANY of the passed in matchers evaluate to true.
- */
- function anyOf(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\AnyOf', 'anyOf'), $args);
- }
-}
-
-if (!function_exists('noneOf')) { /**
- * Evaluates to false if ANY of the passed in matchers evaluate to true.
- */
- function noneOf(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\AnyOf', 'noneOf'), $args);
- }
-}
-
-if (!function_exists('both')) { /**
- * This is useful for fluently combining matchers that must both pass.
- * For example:
- * <pre>
- * assertThat($string, both(containsString("a"))->andAlso(containsString("b")));
- * </pre>
- */
- function both(\Hamcrest\Matcher $matcher)
- {
- return \Hamcrest\Core\CombinableMatcher::both($matcher);
- }
-}
-
-if (!function_exists('either')) { /**
- * This is useful for fluently combining matchers where either may pass,
- * for example:
- * <pre>
- * assertThat($string, either(containsString("a"))->orElse(containsString("b")));
- * </pre>
- */
- function either(\Hamcrest\Matcher $matcher)
- {
- return \Hamcrest\Core\CombinableMatcher::either($matcher);
- }
-}
-
-if (!function_exists('describedAs')) { /**
- * Wraps an existing matcher and overrides the description when it fails.
- */
- function describedAs(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\DescribedAs', 'describedAs'), $args);
- }
-}
-
-if (!function_exists('everyItem')) { /**
- * @param Matcher $itemMatcher
- * A matcher to apply to every element in an array.
- *
- * @return \Hamcrest\Core\Every
- * Evaluates to TRUE for a collection in which every item matches $itemMatcher
- */
- function everyItem(\Hamcrest\Matcher $itemMatcher)
- {
- return \Hamcrest\Core\Every::everyItem($itemMatcher);
- }
-}
-
-if (!function_exists('hasToString')) { /**
- * Does array size satisfy a given matcher?
- */
- function hasToString($matcher)
- {
- return \Hamcrest\Core\HasToString::hasToString($matcher);
- }
-}
-
-if (!function_exists('is')) { /**
- * Decorates another Matcher, retaining the behavior but allowing tests
- * to be slightly more expressive.
- *
- * For example: assertThat($cheese, equalTo($smelly))
- * vs. assertThat($cheese, is(equalTo($smelly)))
- */
- function is($value)
- {
- return \Hamcrest\Core\Is::is($value);
- }
-}
-
-if (!function_exists('anything')) { /**
- * This matcher always evaluates to true.
- *
- * @param string $description A meaningful string used when describing itself.
- *
- * @return \Hamcrest\Core\IsAnything
- */
- function anything($description = 'ANYTHING')
- {
- return \Hamcrest\Core\IsAnything::anything($description);
- }
-}
-
-if (!function_exists('hasItem')) { /**
- * Test if the value is an array containing this matcher.
- *
- * Example:
- * <pre>
- * assertThat(array('a', 'b'), hasItem(equalTo('b')));
- * //Convenience defaults to equalTo()
- * assertThat(array('a', 'b'), hasItem('b'));
- * </pre>
- */
- function hasItem(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\IsCollectionContaining', 'hasItem'), $args);
- }
-}
-
-if (!function_exists('hasItems')) { /**
- * Test if the value is an array containing elements that match all of these
- * matchers.
- *
- * Example:
- * <pre>
- * assertThat(array('a', 'b', 'c'), hasItems(equalTo('a'), equalTo('b')));
- * </pre>
- */
- function hasItems(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\IsCollectionContaining', 'hasItems'), $args);
- }
-}
-
-if (!function_exists('equalTo')) { /**
- * Is the value equal to another value, as tested by the use of the "=="
- * comparison operator?
- */
- function equalTo($item)
- {
- return \Hamcrest\Core\IsEqual::equalTo($item);
- }
-}
-
-if (!function_exists('identicalTo')) { /**
- * Tests of the value is identical to $value as tested by the "===" operator.
- */
- function identicalTo($value)
- {
- return \Hamcrest\Core\IsIdentical::identicalTo($value);
- }
-}
-
-if (!function_exists('anInstanceOf')) { /**
- * Is the value an instance of a particular type?
- * This version assumes no relationship between the required type and
- * the signature of the method that sets it up, for example in
- * <code>assertThat($anObject, anInstanceOf('Thing'));</code>
- */
- function anInstanceOf($theClass)
- {
- return \Hamcrest\Core\IsInstanceOf::anInstanceOf($theClass);
- }
-}
-
-if (!function_exists('any')) { /**
- * Is the value an instance of a particular type?
- * This version assumes no relationship between the required type and
- * the signature of the method that sets it up, for example in
- * <code>assertThat($anObject, anInstanceOf('Thing'));</code>
- */
- function any($theClass)
- {
- return \Hamcrest\Core\IsInstanceOf::anInstanceOf($theClass);
- }
-}
-
-if (!function_exists('not')) { /**
- * Matches if value does not match $value.
- */
- function not($value)
- {
- return \Hamcrest\Core\IsNot::not($value);
- }
-}
-
-if (!function_exists('nullValue')) { /**
- * Matches if value is null.
- */
- function nullValue()
- {
- return \Hamcrest\Core\IsNull::nullValue();
- }
-}
-
-if (!function_exists('notNullValue')) { /**
- * Matches if value is not null.
- */
- function notNullValue()
- {
- return \Hamcrest\Core\IsNull::notNullValue();
- }
-}
-
-if (!function_exists('sameInstance')) { /**
- * Creates a new instance of IsSame.
- *
- * @param mixed $object
- * The predicate evaluates to true only when the argument is
- * this object.
- *
- * @return \Hamcrest\Core\IsSame
- */
- function sameInstance($object)
- {
- return \Hamcrest\Core\IsSame::sameInstance($object);
- }
-}
-
-if (!function_exists('typeOf')) { /**
- * Is the value a particular built-in type?
- */
- function typeOf($theType)
- {
- return \Hamcrest\Core\IsTypeOf::typeOf($theType);
- }
-}
-
-if (!function_exists('set')) { /**
- * Matches if value (class, object, or array) has named $property.
- */
- function set($property)
- {
- return \Hamcrest\Core\Set::set($property);
- }
-}
-
-if (!function_exists('notSet')) { /**
- * Matches if value (class, object, or array) does not have named $property.
- */
- function notSet($property)
- {
- return \Hamcrest\Core\Set::notSet($property);
- }
-}
-
-if (!function_exists('closeTo')) { /**
- * Matches if value is a number equal to $value within some range of
- * acceptable error $delta.
- */
- function closeTo($value, $delta)
- {
- return \Hamcrest\Number\IsCloseTo::closeTo($value, $delta);
- }
-}
-
-if (!function_exists('comparesEqualTo')) { /**
- * The value is not > $value, nor < $value.
- */
- function comparesEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::comparesEqualTo($value);
- }
-}
-
-if (!function_exists('greaterThan')) { /**
- * The value is > $value.
- */
- function greaterThan($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThan($value);
- }
-}
-
-if (!function_exists('greaterThanOrEqualTo')) { /**
- * The value is >= $value.
- */
- function greaterThanOrEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThanOrEqualTo($value);
- }
-}
-
-if (!function_exists('atLeast')) { /**
- * The value is >= $value.
- */
- function atLeast($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThanOrEqualTo($value);
- }
-}
-
-if (!function_exists('lessThan')) { /**
- * The value is < $value.
- */
- function lessThan($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThan($value);
- }
-}
-
-if (!function_exists('lessThanOrEqualTo')) { /**
- * The value is <= $value.
- */
- function lessThanOrEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThanOrEqualTo($value);
- }
-}
-
-if (!function_exists('atMost')) { /**
- * The value is <= $value.
- */
- function atMost($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThanOrEqualTo($value);
- }
-}
-
-if (!function_exists('isEmptyString')) { /**
- * Matches if value is a zero-length string.
- */
- function isEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyString();
- }
-}
-
-if (!function_exists('emptyString')) { /**
- * Matches if value is a zero-length string.
- */
- function emptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyString();
- }
-}
-
-if (!function_exists('isEmptyOrNullString')) { /**
- * Matches if value is null or a zero-length string.
- */
- function isEmptyOrNullString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyOrNullString();
- }
-}
-
-if (!function_exists('nullOrEmptyString')) { /**
- * Matches if value is null or a zero-length string.
- */
- function nullOrEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyOrNullString();
- }
-}
-
-if (!function_exists('isNonEmptyString')) { /**
- * Matches if value is a non-zero-length string.
- */
- function isNonEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isNonEmptyString();
- }
-}
-
-if (!function_exists('nonEmptyString')) { /**
- * Matches if value is a non-zero-length string.
- */
- function nonEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isNonEmptyString();
- }
-}
-
-if (!function_exists('equalToIgnoringCase')) { /**
- * Matches if value is a string equal to $string, regardless of the case.
- */
- function equalToIgnoringCase($string)
- {
- return \Hamcrest\Text\IsEqualIgnoringCase::equalToIgnoringCase($string);
- }
-}
-
-if (!function_exists('equalToIgnoringWhiteSpace')) { /**
- * Matches if value is a string equal to $string, regardless of whitespace.
- */
- function equalToIgnoringWhiteSpace($string)
- {
- return \Hamcrest\Text\IsEqualIgnoringWhiteSpace::equalToIgnoringWhiteSpace($string);
- }
-}
-
-if (!function_exists('matchesPattern')) { /**
- * Matches if value is a string that matches regular expression $pattern.
- */
- function matchesPattern($pattern)
- {
- return \Hamcrest\Text\MatchesPattern::matchesPattern($pattern);
- }
-}
-
-if (!function_exists('containsString')) { /**
- * Matches if value is a string that contains $substring.
- */
- function containsString($substring)
- {
- return \Hamcrest\Text\StringContains::containsString($substring);
- }
-}
-
-if (!function_exists('containsStringIgnoringCase')) { /**
- * Matches if value is a string that contains $substring regardless of the case.
- */
- function containsStringIgnoringCase($substring)
- {
- return \Hamcrest\Text\StringContainsIgnoringCase::containsStringIgnoringCase($substring);
- }
-}
-
-if (!function_exists('stringContainsInOrder')) { /**
- * Matches if value contains $substrings in a constrained order.
- */
- function stringContainsInOrder(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Text\StringContainsInOrder', 'stringContainsInOrder'), $args);
- }
-}
-
-if (!function_exists('endsWith')) { /**
- * Matches if value is a string that ends with $substring.
- */
- function endsWith($substring)
- {
- return \Hamcrest\Text\StringEndsWith::endsWith($substring);
- }
-}
-
-if (!function_exists('startsWith')) { /**
- * Matches if value is a string that starts with $substring.
- */
- function startsWith($substring)
- {
- return \Hamcrest\Text\StringStartsWith::startsWith($substring);
- }
-}
-
-if (!function_exists('arrayValue')) { /**
- * Is the value an array?
- */
- function arrayValue()
- {
- return \Hamcrest\Type\IsArray::arrayValue();
- }
-}
-
-if (!function_exists('booleanValue')) { /**
- * Is the value a boolean?
- */
- function booleanValue()
- {
- return \Hamcrest\Type\IsBoolean::booleanValue();
- }
-}
-
-if (!function_exists('boolValue')) { /**
- * Is the value a boolean?
- */
- function boolValue()
- {
- return \Hamcrest\Type\IsBoolean::booleanValue();
- }
-}
-
-if (!function_exists('callableValue')) { /**
- * Is the value callable?
- */
- function callableValue()
- {
- return \Hamcrest\Type\IsCallable::callableValue();
- }
-}
-
-if (!function_exists('doubleValue')) { /**
- * Is the value a float/double?
- */
- function doubleValue()
- {
- return \Hamcrest\Type\IsDouble::doubleValue();
- }
-}
-
-if (!function_exists('floatValue')) { /**
- * Is the value a float/double?
- */
- function floatValue()
- {
- return \Hamcrest\Type\IsDouble::doubleValue();
- }
-}
-
-if (!function_exists('integerValue')) { /**
- * Is the value an integer?
- */
- function integerValue()
- {
- return \Hamcrest\Type\IsInteger::integerValue();
- }
-}
-
-if (!function_exists('intValue')) { /**
- * Is the value an integer?
- */
- function intValue()
- {
- return \Hamcrest\Type\IsInteger::integerValue();
- }
-}
-
-if (!function_exists('numericValue')) { /**
- * Is the value a numeric?
- */
- function numericValue()
- {
- return \Hamcrest\Type\IsNumeric::numericValue();
- }
-}
-
-if (!function_exists('objectValue')) { /**
- * Is the value an object?
- */
- function objectValue()
- {
- return \Hamcrest\Type\IsObject::objectValue();
- }
-}
-
-if (!function_exists('anObject')) { /**
- * Is the value an object?
- */
- function anObject()
- {
- return \Hamcrest\Type\IsObject::objectValue();
- }
-}
-
-if (!function_exists('resourceValue')) { /**
- * Is the value a resource?
- */
- function resourceValue()
- {
- return \Hamcrest\Type\IsResource::resourceValue();
- }
-}
-
-if (!function_exists('scalarValue')) { /**
- * Is the value a scalar (boolean, integer, double, or string)?
- */
- function scalarValue()
- {
- return \Hamcrest\Type\IsScalar::scalarValue();
- }
-}
-
-if (!function_exists('stringValue')) { /**
- * Is the value a string?
- */
- function stringValue()
- {
- return \Hamcrest\Type\IsString::stringValue();
- }
-}
-
-if (!function_exists('hasXPath')) { /**
- * Wraps <code>$matcher</code> with {@link Hamcrest\Core\IsEqual)
- * if it's not a matcher and the XPath in <code>count()</code>
- * if it's an integer.
- */
- function hasXPath($xpath, $matcher = null)
- {
- return \Hamcrest\Xml\HasXPath::hasXPath($xpath, $matcher);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php
deleted file mode 100644
index 9ea56970..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArray.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-// NOTE: This class is not exactly a direct port of Java's since Java handles
-// arrays quite differently than PHP
-
-// TODO: Allow this to take matchers or values within the array
-use Hamcrest\Description;
-use Hamcrest\TypeSafeMatcher;
-use Hamcrest\Util;
-
-/**
- * Matcher for array whose elements satisfy a sequence of matchers.
- * The array size must equal the number of element matchers.
- */
-class IsArray extends TypeSafeMatcher
-{
-
- private $_elementMatchers;
-
- public function __construct(array $elementMatchers)
- {
- parent::__construct(self::TYPE_ARRAY);
-
- Util::checkAllAreMatchers($elementMatchers);
-
- $this->_elementMatchers = $elementMatchers;
- }
-
- protected function matchesSafely($array)
- {
- if (array_keys($array) != array_keys($this->_elementMatchers)) {
- return false;
- }
-
- /** @var $matcher \Hamcrest\Matcher */
- foreach ($this->_elementMatchers as $k => $matcher) {
- if (!$matcher->matches($array[$k])) {
- return false;
- }
- }
-
- return true;
- }
-
- protected function describeMismatchSafely($actual, Description $mismatchDescription)
- {
- if (count($actual) != count($this->_elementMatchers)) {
- $mismatchDescription->appendText('array length was ' . count($actual));
-
- return;
- } elseif (array_keys($actual) != array_keys($this->_elementMatchers)) {
- $mismatchDescription->appendText('array keys were ')
- ->appendValueList(
- $this->descriptionStart(),
- $this->descriptionSeparator(),
- $this->descriptionEnd(),
- array_keys($actual)
- )
- ;
-
- return;
- }
-
- /** @var $matcher \Hamcrest\Matcher */
- foreach ($this->_elementMatchers as $k => $matcher) {
- if (!$matcher->matches($actual[$k])) {
- $mismatchDescription->appendText('element ')->appendValue($k)
- ->appendText(' was ')->appendValue($actual[$k]);
-
- return;
- }
- }
- }
-
- public function describeTo(Description $description)
- {
- $description->appendList(
- $this->descriptionStart(),
- $this->descriptionSeparator(),
- $this->descriptionEnd(),
- $this->_elementMatchers
- );
- }
-
- /**
- * Evaluates to true only if each $matcher[$i] is satisfied by $array[$i].
- *
- * @factory ...
- */
- public static function anArray(/* args... */)
- {
- $args = func_get_args();
-
- return new self(Util::createMatcherArray($args));
- }
-
- // -- Protected Methods
-
- protected function descriptionStart()
- {
- return '[';
- }
-
- protected function descriptionSeparator()
- {
- return ', ';
- }
-
- protected function descriptionEnd()
- {
- return ']';
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php
deleted file mode 100644
index 0e4a1eda..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContaining.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\TypeSafeMatcher;
-use Hamcrest\Util;
-
-/**
- * Matches if an array contains an item satisfying a nested matcher.
- */
-class IsArrayContaining extends TypeSafeMatcher
-{
-
- private $_elementMatcher;
-
- public function __construct(Matcher $elementMatcher)
- {
- parent::__construct(self::TYPE_ARRAY);
-
- $this->_elementMatcher = $elementMatcher;
- }
-
- protected function matchesSafely($array)
- {
- foreach ($array as $element) {
- if ($this->_elementMatcher->matches($element)) {
- return true;
- }
- }
-
- return false;
- }
-
- protected function describeMismatchSafely($array, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was ')->appendValue($array);
- }
-
- public function describeTo(Description $description)
- {
- $description
- ->appendText('an array containing ')
- ->appendDescriptionOf($this->_elementMatcher)
- ;
- }
-
- /**
- * Evaluates to true if any item in an array satisfies the given matcher.
- *
- * @param mixed $item as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContaining
- * @factory hasValue
- */
- public static function hasItemInArray($item)
- {
- return new self(Util::wrapValueWithIsEqual($item));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php
deleted file mode 100644
index 9009026b..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInAnyOrder.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\TypeSafeDiagnosingMatcher;
-use Hamcrest\Util;
-
-/**
- * Matches if an array contains a set of items satisfying nested matchers.
- */
-class IsArrayContainingInAnyOrder extends TypeSafeDiagnosingMatcher
-{
-
- private $_elementMatchers;
-
- public function __construct(array $elementMatchers)
- {
- parent::__construct(self::TYPE_ARRAY);
-
- Util::checkAllAreMatchers($elementMatchers);
-
- $this->_elementMatchers = $elementMatchers;
- }
-
- protected function matchesSafelyWithDiagnosticDescription($array, Description $mismatchDescription)
- {
- $matching = new MatchingOnce($this->_elementMatchers, $mismatchDescription);
-
- foreach ($array as $element) {
- if (!$matching->matches($element)) {
- return false;
- }
- }
-
- return $matching->isFinished($array);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendList('[', ', ', ']', $this->_elementMatchers)
- ->appendText(' in any order')
- ;
- }
-
- /**
- * An array with elements that match the given matchers.
- *
- * @factory containsInAnyOrder ...
- */
- public static function arrayContainingInAnyOrder(/* args... */)
- {
- $args = func_get_args();
-
- return new self(Util::createMatcherArray($args));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php
deleted file mode 100644
index 61157404..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingInOrder.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\TypeSafeDiagnosingMatcher;
-use Hamcrest\Util;
-
-/**
- * Matches if an array contains a set of items satisfying nested matchers.
- */
-class IsArrayContainingInOrder extends TypeSafeDiagnosingMatcher
-{
-
- private $_elementMatchers;
-
- public function __construct(array $elementMatchers)
- {
- parent::__construct(self::TYPE_ARRAY);
-
- Util::checkAllAreMatchers($elementMatchers);
-
- $this->_elementMatchers = $elementMatchers;
- }
-
- protected function matchesSafelyWithDiagnosticDescription($array, Description $mismatchDescription)
- {
- $series = new SeriesMatchingOnce($this->_elementMatchers, $mismatchDescription);
-
- foreach ($array as $element) {
- if (!$series->matches($element)) {
- return false;
- }
- }
-
- return $series->isFinished();
- }
-
- public function describeTo(Description $description)
- {
- $description->appendList('[', ', ', ']', $this->_elementMatchers);
- }
-
- /**
- * An array with elements that match the given matchers in the same order.
- *
- * @factory contains ...
- */
- public static function arrayContaining(/* args... */)
- {
- $args = func_get_args();
-
- return new self(Util::createMatcherArray($args));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php
deleted file mode 100644
index 523477e7..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKey.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\TypeSafeMatcher;
-use Hamcrest\Util;
-
-/**
- * Matches if an array contains the specified key.
- */
-class IsArrayContainingKey extends TypeSafeMatcher
-{
-
- private $_keyMatcher;
-
- public function __construct(Matcher $keyMatcher)
- {
- parent::__construct(self::TYPE_ARRAY);
-
- $this->_keyMatcher = $keyMatcher;
- }
-
- protected function matchesSafely($array)
- {
- foreach ($array as $key => $element) {
- if ($this->_keyMatcher->matches($key)) {
- return true;
- }
- }
-
- return false;
- }
-
- protected function describeMismatchSafely($array, Description $mismatchDescription)
- {
- //Not using appendValueList() so that keys can be shown
- $mismatchDescription->appendText('array was ')
- ->appendText('[')
- ;
- $loop = false;
- foreach ($array as $key => $value) {
- if ($loop) {
- $mismatchDescription->appendText(', ');
- }
- $mismatchDescription->appendValue($key)->appendText(' => ')->appendValue($value);
- $loop = true;
- }
- $mismatchDescription->appendText(']');
- }
-
- public function describeTo(Description $description)
- {
- $description
- ->appendText('array with key ')
- ->appendDescriptionOf($this->_keyMatcher)
- ;
- }
-
- /**
- * Evaluates to true if any key in an array matches the given matcher.
- *
- * @param mixed $key as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContainingKey
- * @factory hasKey
- */
- public static function hasKeyInArray($key)
- {
- return new self(Util::wrapValueWithIsEqual($key));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php
deleted file mode 100644
index 9ac3eba8..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayContainingKeyValuePair.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-/**
- * Tests for the presence of both a key and value inside an array.
- */
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\TypeSafeMatcher;
-use Hamcrest\Util;
-
-/**
- * @namespace
- */
-
-class IsArrayContainingKeyValuePair extends TypeSafeMatcher
-{
-
- private $_keyMatcher;
- private $_valueMatcher;
-
- public function __construct(Matcher $keyMatcher, Matcher $valueMatcher)
- {
- parent::__construct(self::TYPE_ARRAY);
-
- $this->_keyMatcher = $keyMatcher;
- $this->_valueMatcher = $valueMatcher;
- }
-
- protected function matchesSafely($array)
- {
- foreach ($array as $key => $value) {
- if ($this->_keyMatcher->matches($key) && $this->_valueMatcher->matches($value)) {
- return true;
- }
- }
-
- return false;
- }
-
- protected function describeMismatchSafely($array, Description $mismatchDescription)
- {
- //Not using appendValueList() so that keys can be shown
- $mismatchDescription->appendText('array was ')
- ->appendText('[')
- ;
- $loop = false;
- foreach ($array as $key => $value) {
- if ($loop) {
- $mismatchDescription->appendText(', ');
- }
- $mismatchDescription->appendValue($key)->appendText(' => ')->appendValue($value);
- $loop = true;
- }
- $mismatchDescription->appendText(']');
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('array containing [')
- ->appendDescriptionOf($this->_keyMatcher)
- ->appendText(' => ')
- ->appendDescriptionOf($this->_valueMatcher)
- ->appendText(']')
- ;
- }
-
- /**
- * Test if an array has both an key and value in parity with each other.
- *
- * @factory hasEntry
- */
- public static function hasKeyValuePair($key, $value)
- {
- return new self(
- Util::wrapValueWithIsEqual($key),
- Util::wrapValueWithIsEqual($value)
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php
deleted file mode 100644
index 074375ce..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/IsArrayWithSize.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Core\DescribedAs;
-use Hamcrest\Core\IsNot;
-use Hamcrest\FeatureMatcher;
-use Hamcrest\Matcher;
-use Hamcrest\Util;
-
-/**
- * Matches if array size satisfies a nested matcher.
- */
-class IsArrayWithSize extends FeatureMatcher
-{
-
- public function __construct(Matcher $sizeMatcher)
- {
- parent::__construct(
- self::TYPE_ARRAY,
- null,
- $sizeMatcher,
- 'an array with size',
- 'array size'
- );
- }
-
- protected function featureValueOf($array)
- {
- return count($array);
- }
-
- /**
- * Does array size satisfy a given matcher?
- *
- * @param \Hamcrest\Matcher|int $size as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayWithSize
- * @factory
- */
- public static function arrayWithSize($size)
- {
- return new self(Util::wrapValueWithIsEqual($size));
- }
-
- /**
- * Matches an empty array.
- *
- * @factory
- */
- public static function emptyArray()
- {
- return DescribedAs::describedAs(
- 'an empty array',
- self::arrayWithSize(0)
- );
- }
-
- /**
- * Matches an empty array.
- *
- * @factory
- */
- public static function nonEmptyArray()
- {
- return DescribedAs::describedAs(
- 'a non-empty array',
- self::arrayWithSize(IsNot::not(0))
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/MatchingOnce.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/MatchingOnce.php
deleted file mode 100644
index 324c7e08..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/MatchingOnce.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-use Hamcrest\Description;
-
-class MatchingOnce
-{
-
- private $_elementMatchers;
- private $_mismatchDescription;
-
- public function __construct(array $elementMatchers, Description $mismatchDescription)
- {
- $this->_elementMatchers = $elementMatchers;
- $this->_mismatchDescription = $mismatchDescription;
- }
-
- public function matches($item)
- {
- return $this->_isNotSurplus($item) && $this->_isMatched($item);
- }
-
- public function isFinished($items)
- {
- if (empty($this->_elementMatchers)) {
- return true;
- }
-
- $this->_mismatchDescription
- ->appendText('No item matches: ')->appendList('', ', ', '', $this->_elementMatchers)
- ->appendText(' in ')->appendValueList('[', ', ', ']', $items)
- ;
-
- return false;
- }
-
- // -- Private Methods
-
- private function _isNotSurplus($item)
- {
- if (empty($this->_elementMatchers)) {
- $this->_mismatchDescription->appendText('Not matched: ')->appendValue($item);
-
- return false;
- }
-
- return true;
- }
-
- private function _isMatched($item)
- {
- /** @var $matcher \Hamcrest\Matcher */
- foreach ($this->_elementMatchers as $i => $matcher) {
- if ($matcher->matches($item)) {
- unset($this->_elementMatchers[$i]);
-
- return true;
- }
- }
-
- $this->_mismatchDescription->appendText('Not matched: ')->appendValue($item);
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php
deleted file mode 100644
index 12a912d8..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-
-class SeriesMatchingOnce
-{
-
- private $_elementMatchers;
- private $_keys;
- private $_mismatchDescription;
- private $_nextMatchKey;
-
- public function __construct(array $elementMatchers, Description $mismatchDescription)
- {
- $this->_elementMatchers = $elementMatchers;
- $this->_keys = array_keys($elementMatchers);
- $this->_mismatchDescription = $mismatchDescription;
- }
-
- public function matches($item)
- {
- return $this->_isNotSurplus($item) && $this->_isMatched($item);
- }
-
- public function isFinished()
- {
- if (!empty($this->_elementMatchers)) {
- $nextMatcher = current($this->_elementMatchers);
- $this->_mismatchDescription->appendText('No item matched: ')->appendDescriptionOf($nextMatcher);
-
- return false;
- }
-
- return true;
- }
-
- // -- Private Methods
-
- private function _isNotSurplus($item)
- {
- if (empty($this->_elementMatchers)) {
- $this->_mismatchDescription->appendText('Not matched: ')->appendValue($item);
-
- return false;
- }
-
- return true;
- }
-
- private function _isMatched($item)
- {
- $this->_nextMatchKey = array_shift($this->_keys);
- $nextMatcher = array_shift($this->_elementMatchers);
-
- if (!$nextMatcher->matches($item)) {
- $this->_describeMismatch($nextMatcher, $item);
-
- return false;
- }
-
- return true;
- }
-
- private function _describeMismatch(Matcher $matcher, $item)
- {
- $this->_mismatchDescription->appendText('item with key ' . $this->_nextMatchKey . ': ');
- $matcher->describeMismatch($item, $this->_mismatchDescription);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php
deleted file mode 100644
index 3a2a0e7c..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/AssertionError.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-class AssertionError extends \RuntimeException
-{
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseDescription.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseDescription.php
deleted file mode 100644
index bcd4fef8..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseDescription.php
+++ /dev/null
@@ -1,132 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Internal\SelfDescribingValue;
-
-/**
- * A {@link Hamcrest\Description} that is stored as a string.
- */
-abstract class BaseDescription implements Description
-{
-
- public function appendText($text)
- {
- $this->append($text);
-
- return $this;
- }
-
- public function appendDescriptionOf(SelfDescribing $value)
- {
- $value->describeTo($this);
-
- return $this;
- }
-
- public function appendValue($value)
- {
- if (is_null($value)) {
- $this->append('null');
- } elseif (is_string($value)) {
- $this->_toPhpSyntax($value);
- } elseif (is_float($value)) {
- $this->append('<');
- $this->append($value);
- $this->append('F>');
- } elseif (is_bool($value)) {
- $this->append('<');
- $this->append($value ? 'true' : 'false');
- $this->append('>');
- } elseif (is_array($value) || $value instanceof \Iterator || $value instanceof \IteratorAggregate) {
- $this->appendValueList('[', ', ', ']', $value);
- } elseif (is_object($value) && !method_exists($value, '__toString')) {
- $this->append('<');
- $this->append(get_class($value));
- $this->append('>');
- } else {
- $this->append('<');
- $this->append($value);
- $this->append('>');
- }
-
- return $this;
- }
-
- public function appendValueList($start, $separator, $end, $values)
- {
- $list = array();
- foreach ($values as $v) {
- $list[] = new SelfDescribingValue($v);
- }
-
- $this->appendList($start, $separator, $end, $list);
-
- return $this;
- }
-
- public function appendList($start, $separator, $end, $values)
- {
- $this->append($start);
-
- $separate = false;
-
- foreach ($values as $value) {
- /*if (!($value instanceof Hamcrest\SelfDescribing)) {
- $value = new Hamcrest\Internal\SelfDescribingValue($value);
- }*/
-
- if ($separate) {
- $this->append($separator);
- }
-
- $this->appendDescriptionOf($value);
-
- $separate = true;
- }
-
- $this->append($end);
-
- return $this;
- }
-
- // -- Protected Methods
-
- /**
- * Append the String <var>$str</var> to the description.
- */
- abstract protected function append($str);
-
- // -- Private Methods
-
- private function _toPhpSyntax($value)
- {
- $str = '"';
- for ($i = 0, $len = strlen($value); $i < $len; ++$i) {
- switch ($value[$i]) {
- case '"':
- $str .= '\\"';
- break;
-
- case "\t":
- $str .= '\\t';
- break;
-
- case "\r":
- $str .= '\\r';
- break;
-
- case "\n":
- $str .= '\\n';
- break;
-
- default:
- $str .= $value[$i];
- }
- }
- $str .= '"';
- $this->append($str);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php
deleted file mode 100644
index 286db3e1..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * BaseClass for all Matcher implementations.
- *
- * @see Hamcrest\Matcher
- */
-abstract class BaseMatcher implements Matcher
-{
-
- public function describeMismatch($item, Description $description)
- {
- $description->appendText('was ')->appendValue($item);
- }
-
- public function __toString()
- {
- return StringDescription::toString($this);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php
deleted file mode 100644
index 8ab58ea5..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsEmptyTraversable.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-namespace Hamcrest\Collection;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-
-/**
- * Matches if traversable is empty or non-empty.
- */
-class IsEmptyTraversable extends BaseMatcher
-{
-
- private static $_INSTANCE;
- private static $_NOT_INSTANCE;
-
- private $_empty;
-
- public function __construct($empty = true)
- {
- $this->_empty = $empty;
- }
-
- public function matches($item)
- {
- if (!$item instanceof \Traversable) {
- return false;
- }
-
- foreach ($item as $value) {
- return !$this->_empty;
- }
-
- return $this->_empty;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText($this->_empty ? 'an empty traversable' : 'a non-empty traversable');
- }
-
- /**
- * Returns true if traversable is empty.
- *
- * @factory
- */
- public static function emptyTraversable()
- {
- if (!self::$_INSTANCE) {
- self::$_INSTANCE = new self;
- }
-
- return self::$_INSTANCE;
- }
-
- /**
- * Returns true if traversable is not empty.
- *
- * @factory
- */
- public static function nonEmptyTraversable()
- {
- if (!self::$_NOT_INSTANCE) {
- self::$_NOT_INSTANCE = new self(false);
- }
-
- return self::$_NOT_INSTANCE;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php
deleted file mode 100644
index c95edc5c..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Collection/IsTraversableWithSize.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-namespace Hamcrest\Collection;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\FeatureMatcher;
-use Hamcrest\Matcher;
-use Hamcrest\Util;
-
-/**
- * Matches if traversable size satisfies a nested matcher.
- */
-class IsTraversableWithSize extends FeatureMatcher
-{
-
- public function __construct(Matcher $sizeMatcher)
- {
- parent::__construct(
- self::TYPE_OBJECT,
- 'Traversable',
- $sizeMatcher,
- 'a traversable with size',
- 'traversable size'
- );
- }
-
- protected function featureValueOf($actual)
- {
- $size = 0;
- foreach ($actual as $value) {
- $size++;
- }
-
- return $size;
- }
-
- /**
- * Does traversable size satisfy a given matcher?
- *
- * @factory
- */
- public static function traversableWithSize($size)
- {
- return new self(Util::wrapValueWithIsEqual($size));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AllOf.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AllOf.php
deleted file mode 100644
index 7aefd538..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AllOf.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\DiagnosingMatcher;
-use Hamcrest\Util;
-
-/**
- * Calculates the logical conjunction of multiple matchers. Evaluation is
- * shortcut, so subsequent matchers are not called if an earlier matcher
- * returns <code>false</code>.
- */
-class AllOf extends DiagnosingMatcher
-{
-
- private $_matchers;
-
- public function __construct(array $matchers)
- {
- Util::checkAllAreMatchers($matchers);
-
- $this->_matchers = $matchers;
- }
-
- public function matchesWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- /** @var $matcher \Hamcrest\Matcher */
- foreach ($this->_matchers as $matcher) {
- if (!$matcher->matches($item)) {
- $mismatchDescription->appendDescriptionOf($matcher)->appendText(' ');
- $matcher->describeMismatch($item, $mismatchDescription);
-
- return false;
- }
- }
-
- return true;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendList('(', ' and ', ')', $this->_matchers);
- }
-
- /**
- * Evaluates to true only if ALL of the passed in matchers evaluate to true.
- *
- * @factory ...
- */
- public static function allOf(/* args... */)
- {
- $args = func_get_args();
-
- return new self(Util::createMatcherArray($args));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php
deleted file mode 100644
index 4504279f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/AnyOf.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\Util;
-
-/**
- * Calculates the logical disjunction of multiple matchers. Evaluation is
- * shortcut, so subsequent matchers are not called if an earlier matcher
- * returns <code>true</code>.
- */
-class AnyOf extends ShortcutCombination
-{
-
- public function __construct(array $matchers)
- {
- parent::__construct($matchers);
- }
-
- public function matches($item)
- {
- return $this->matchesWithShortcut($item, true);
- }
-
- public function describeTo(Description $description)
- {
- $this->describeToWithOperator($description, 'or');
- }
-
- /**
- * Evaluates to true if ANY of the passed in matchers evaluate to true.
- *
- * @factory ...
- */
- public static function anyOf(/* args... */)
- {
- $args = func_get_args();
-
- return new self(Util::createMatcherArray($args));
- }
-
- /**
- * Evaluates to false if ANY of the passed in matchers evaluate to true.
- *
- * @factory ...
- */
- public static function noneOf(/* args... */)
- {
- $args = func_get_args();
-
- return IsNot::not(
- new self(Util::createMatcherArray($args))
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php
deleted file mode 100644
index e3b4aa78..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/CombinableMatcher.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-
-class CombinableMatcher extends BaseMatcher
-{
-
- private $_matcher;
-
- public function __construct(Matcher $matcher)
- {
- $this->_matcher = $matcher;
- }
-
- public function matches($item)
- {
- return $this->_matcher->matches($item);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendDescriptionOf($this->_matcher);
- }
-
- /** Diversion from Hamcrest-Java... Logical "and" not permitted */
- public function andAlso(Matcher $other)
- {
- return new self(new AllOf($this->_templatedListWith($other)));
- }
-
- /** Diversion from Hamcrest-Java... Logical "or" not permitted */
- public function orElse(Matcher $other)
- {
- return new self(new AnyOf($this->_templatedListWith($other)));
- }
-
- /**
- * This is useful for fluently combining matchers that must both pass.
- * For example:
- * <pre>
- * assertThat($string, both(containsString("a"))->andAlso(containsString("b")));
- * </pre>
- *
- * @factory
- */
- public static function both(Matcher $matcher)
- {
- return new self($matcher);
- }
-
- /**
- * This is useful for fluently combining matchers where either may pass,
- * for example:
- * <pre>
- * assertThat($string, either(containsString("a"))->orElse(containsString("b")));
- * </pre>
- *
- * @factory
- */
- public static function either(Matcher $matcher)
- {
- return new self($matcher);
- }
-
- // -- Private Methods
-
- private function _templatedListWith(Matcher $other)
- {
- return array($this->_matcher, $other);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php
deleted file mode 100644
index 5b2583fa..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/DescribedAs.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-
-/**
- * Provides a custom description to another matcher.
- */
-class DescribedAs extends BaseMatcher
-{
-
- private $_descriptionTemplate;
- private $_matcher;
- private $_values;
-
- const ARG_PATTERN = '/%([0-9]+)/';
-
- public function __construct($descriptionTemplate, Matcher $matcher, array $values)
- {
- $this->_descriptionTemplate = $descriptionTemplate;
- $this->_matcher = $matcher;
- $this->_values = $values;
- }
-
- public function matches($item)
- {
- return $this->_matcher->matches($item);
- }
-
- public function describeTo(Description $description)
- {
- $textStart = 0;
- while (preg_match(self::ARG_PATTERN, $this->_descriptionTemplate, $matches, PREG_OFFSET_CAPTURE, $textStart)) {
- $text = $matches[0][0];
- $index = $matches[1][0];
- $offset = $matches[0][1];
-
- $description->appendText(substr($this->_descriptionTemplate, $textStart, $offset - $textStart));
- $description->appendValue($this->_values[$index]);
-
- $textStart = $offset + strlen($text);
- }
-
- if ($textStart < strlen($this->_descriptionTemplate)) {
- $description->appendText(substr($this->_descriptionTemplate, $textStart));
- }
- }
-
- /**
- * Wraps an existing matcher and overrides the description when it fails.
- *
- * @factory ...
- */
- public static function describedAs(/* $description, Hamcrest\Matcher $matcher, $values... */)
- {
- $args = func_get_args();
- $description = array_shift($args);
- $matcher = array_shift($args);
- $values = $args;
-
- return new self($description, $matcher, $values);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php
deleted file mode 100644
index d686f8da..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Every.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\TypeSafeDiagnosingMatcher;
-
-class Every extends TypeSafeDiagnosingMatcher
-{
-
- private $_matcher;
-
- public function __construct(Matcher $matcher)
- {
- parent::__construct(self::TYPE_ARRAY);
-
- $this->_matcher = $matcher;
- }
-
- protected function matchesSafelyWithDiagnosticDescription($items, Description $mismatchDescription)
- {
- foreach ($items as $item) {
- if (!$this->_matcher->matches($item)) {
- $mismatchDescription->appendText('an item ');
- $this->_matcher->describeMismatch($item, $mismatchDescription);
-
- return false;
- }
- }
-
- return true;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('every item is ')->appendDescriptionOf($this->_matcher);
- }
-
- /**
- * @param Matcher $itemMatcher
- * A matcher to apply to every element in an array.
- *
- * @return \Hamcrest\Core\Every
- * Evaluates to TRUE for a collection in which every item matches $itemMatcher
- *
- * @factory
- */
- public static function everyItem(Matcher $itemMatcher)
- {
- return new self($itemMatcher);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php
deleted file mode 100644
index 45bd9102..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/HasToString.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\FeatureMatcher;
-use Hamcrest\Matcher;
-use Hamcrest\Util;
-
-/**
- * Matches if array size satisfies a nested matcher.
- */
-class HasToString extends FeatureMatcher
-{
-
- public function __construct(Matcher $toStringMatcher)
- {
- parent::__construct(
- self::TYPE_OBJECT,
- null,
- $toStringMatcher,
- 'an object with toString()',
- 'toString()'
- );
- }
-
- public function matchesSafelyWithDiagnosticDescription($actual, Description $mismatchDescription)
- {
- if (method_exists($actual, 'toString') || method_exists($actual, '__toString')) {
- return parent::matchesSafelyWithDiagnosticDescription($actual, $mismatchDescription);
- }
-
- return false;
- }
-
- protected function featureValueOf($actual)
- {
- if (method_exists($actual, 'toString')) {
- return $actual->toString();
- }
-
- return (string) $actual;
- }
-
- /**
- * Does array size satisfy a given matcher?
- *
- * @factory
- */
- public static function hasToString($matcher)
- {
- return new self(Util::wrapValueWithIsEqual($matcher));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php
deleted file mode 100644
index 41266dc1..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Is.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\Util;
-
-/**
- * Decorates another Matcher, retaining the behavior but allowing tests
- * to be slightly more expressive.
- *
- * For example: assertThat($cheese, equalTo($smelly))
- * vs. assertThat($cheese, is(equalTo($smelly)))
- */
-class Is extends BaseMatcher
-{
-
- private $_matcher;
-
- public function __construct(Matcher $matcher)
- {
- $this->_matcher = $matcher;
- }
-
- public function matches($arg)
- {
- return $this->_matcher->matches($arg);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('is ')->appendDescriptionOf($this->_matcher);
- }
-
- public function describeMismatch($item, Description $mismatchDescription)
- {
- $this->_matcher->describeMismatch($item, $mismatchDescription);
- }
-
- /**
- * Decorates another Matcher, retaining the behavior but allowing tests
- * to be slightly more expressive.
- *
- * For example: assertThat($cheese, equalTo($smelly))
- * vs. assertThat($cheese, is(equalTo($smelly)))
- *
- * @factory
- */
- public static function is($value)
- {
- return new self(Util::wrapValueWithIsEqual($value));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php
deleted file mode 100644
index f20e6c0d..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsAnything.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-
-/**
- * A matcher that always returns <code>true</code>.
- */
-class IsAnything extends BaseMatcher
-{
-
- private $_message;
-
- public function __construct($message = 'ANYTHING')
- {
- $this->_message = $message;
- }
-
- public function matches($item)
- {
- return true;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText($this->_message);
- }
-
- /**
- * This matcher always evaluates to true.
- *
- * @param string $description A meaningful string used when describing itself.
- *
- * @return \Hamcrest\Core\IsAnything
- * @factory
- */
- public static function anything($description = 'ANYTHING')
- {
- return new self($description);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php
deleted file mode 100644
index 5e60426d..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsCollectionContaining.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\TypeSafeMatcher;
-use Hamcrest\Util;
-
-/**
- * Tests if an array contains values that match one or more Matchers.
- */
-class IsCollectionContaining extends TypeSafeMatcher
-{
-
- private $_elementMatcher;
-
- public function __construct(Matcher $elementMatcher)
- {
- parent::__construct(self::TYPE_ARRAY);
-
- $this->_elementMatcher = $elementMatcher;
- }
-
- protected function matchesSafely($items)
- {
- foreach ($items as $item) {
- if ($this->_elementMatcher->matches($item)) {
- return true;
- }
- }
-
- return false;
- }
-
- protected function describeMismatchSafely($items, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was ')->appendValue($items);
- }
-
- public function describeTo(Description $description)
- {
- $description
- ->appendText('a collection containing ')
- ->appendDescriptionOf($this->_elementMatcher)
- ;
- }
-
- /**
- * Test if the value is an array containing this matcher.
- *
- * Example:
- * <pre>
- * assertThat(array('a', 'b'), hasItem(equalTo('b')));
- * //Convenience defaults to equalTo()
- * assertThat(array('a', 'b'), hasItem('b'));
- * </pre>
- *
- * @factory ...
- */
- public static function hasItem()
- {
- $args = func_get_args();
- $firstArg = array_shift($args);
-
- return new self(Util::wrapValueWithIsEqual($firstArg));
- }
-
- /**
- * Test if the value is an array containing elements that match all of these
- * matchers.
- *
- * Example:
- * <pre>
- * assertThat(array('a', 'b', 'c'), hasItems(equalTo('a'), equalTo('b')));
- * </pre>
- *
- * @factory ...
- */
- public static function hasItems(/* args... */)
- {
- $args = func_get_args();
- $matchers = array();
-
- foreach ($args as $arg) {
- $matchers[] = self::hasItem($arg);
- }
-
- return AllOf::allOf($matchers);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php
deleted file mode 100644
index 523fba0b..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsEqual.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-
-/**
- * Is the value equal to another value, as tested by the use of the "=="
- * comparison operator?
- */
-class IsEqual extends BaseMatcher
-{
-
- private $_item;
-
- public function __construct($item)
- {
- $this->_item = $item;
- }
-
- public function matches($arg)
- {
- return (($arg == $this->_item) && ($this->_item == $arg));
- }
-
- public function describeTo(Description $description)
- {
- $description->appendValue($this->_item);
- }
-
- /**
- * Is the value equal to another value, as tested by the use of the "=="
- * comparison operator?
- *
- * @factory
- */
- public static function equalTo($item)
- {
- return new self($item);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php
deleted file mode 100644
index 28f7b36e..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsIdentical.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-
-/**
- * The same as {@link Hamcrest\Core\IsSame} but with slightly different
- * semantics.
- */
-class IsIdentical extends IsSame
-{
-
- private $_value;
-
- public function __construct($value)
- {
- parent::__construct($value);
- $this->_value = $value;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendValue($this->_value);
- }
-
- /**
- * Tests of the value is identical to $value as tested by the "===" operator.
- *
- * @factory
- */
- public static function identicalTo($value)
- {
- return new self($value);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php
deleted file mode 100644
index 7a5c92a6..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsInstanceOf.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\DiagnosingMatcher;
-
-/**
- * Tests whether the value is an instance of a class.
- */
-class IsInstanceOf extends DiagnosingMatcher
-{
-
- private $_theClass;
-
- /**
- * Creates a new instance of IsInstanceOf
- *
- * @param string $theClass
- * The predicate evaluates to true for instances of this class
- * or one of its subclasses.
- */
- public function __construct($theClass)
- {
- $this->_theClass = $theClass;
- }
-
- protected function matchesWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- if (!is_object($item)) {
- $mismatchDescription->appendText('was ')->appendValue($item);
-
- return false;
- }
-
- if (!($item instanceof $this->_theClass)) {
- $mismatchDescription->appendText('[' . get_class($item) . '] ')
- ->appendValue($item);
-
- return false;
- }
-
- return true;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('an instance of ')
- ->appendText($this->_theClass)
- ;
- }
-
- /**
- * Is the value an instance of a particular type?
- * This version assumes no relationship between the required type and
- * the signature of the method that sets it up, for example in
- * <code>assertThat($anObject, anInstanceOf('Thing'));</code>
- *
- * @factory any
- */
- public static function anInstanceOf($theClass)
- {
- return new self($theClass);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php
deleted file mode 100644
index 167f0d06..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNot.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\Util;
-
-/**
- * Calculates the logical negation of a matcher.
- */
-class IsNot extends BaseMatcher
-{
-
- private $_matcher;
-
- public function __construct(Matcher $matcher)
- {
- $this->_matcher = $matcher;
- }
-
- public function matches($arg)
- {
- return !$this->_matcher->matches($arg);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('not ')->appendDescriptionOf($this->_matcher);
- }
-
- /**
- * Matches if value does not match $value.
- *
- * @factory
- */
- public static function not($value)
- {
- return new self(Util::wrapValueWithIsEqual($value));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php
deleted file mode 100644
index 91a454c1..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-
-/**
- * Is the value null?
- */
-class IsNull extends BaseMatcher
-{
-
- private static $_INSTANCE;
- private static $_NOT_INSTANCE;
-
- public function matches($item)
- {
- return is_null($item);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('null');
- }
-
- /**
- * Matches if value is null.
- *
- * @factory
- */
- public static function nullValue()
- {
- if (!self::$_INSTANCE) {
- self::$_INSTANCE = new self();
- }
-
- return self::$_INSTANCE;
- }
-
- /**
- * Matches if value is not null.
- *
- * @factory
- */
- public static function notNullValue()
- {
- if (!self::$_NOT_INSTANCE) {
- self::$_NOT_INSTANCE = IsNot::not(self::nullValue());
- }
-
- return self::$_NOT_INSTANCE;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php
deleted file mode 100644
index 81078705..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsSame.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-
-/**
- * Is the value the same object as another value?
- * In PHP terms, does $a === $b?
- */
-class IsSame extends BaseMatcher
-{
-
- private $_object;
-
- public function __construct($object)
- {
- $this->_object = $object;
- }
-
- public function matches($object)
- {
- return ($object === $this->_object) && ($this->_object === $object);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('sameInstance(')
- ->appendValue($this->_object)
- ->appendText(')')
- ;
- }
-
- /**
- * Creates a new instance of IsSame.
- *
- * @param mixed $object
- * The predicate evaluates to true only when the argument is
- * this object.
- *
- * @return \Hamcrest\Core\IsSame
- * @factory
- */
- public static function sameInstance($object)
- {
- return new self($object);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php
deleted file mode 100644
index d24f0f94..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-
-/**
- * Tests whether the value has a built-in type.
- */
-class IsTypeOf extends BaseMatcher
-{
-
- private $_theType;
-
- /**
- * Creates a new instance of IsTypeOf
- *
- * @param string $theType
- * The predicate evaluates to true for values with this built-in type.
- */
- public function __construct($theType)
- {
- $this->_theType = strtolower($theType);
- }
-
- public function matches($item)
- {
- return strtolower(gettype($item)) == $this->_theType;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText(self::getTypeDescription($this->_theType));
- }
-
- public function describeMismatch($item, Description $description)
- {
- if ($item === null) {
- $description->appendText('was null');
- } else {
- $description->appendText('was ')
- ->appendText(self::getTypeDescription(strtolower(gettype($item))))
- ->appendText(' ')
- ->appendValue($item)
- ;
- }
- }
-
- public static function getTypeDescription($type)
- {
- if ($type == 'null') {
- return 'null';
- }
-
- return (strpos('aeiou', substr($type, 0, 1)) === false ? 'a ' : 'an ')
- . $type;
- }
-
- /**
- * Is the value a particular built-in type?
- *
- * @factory
- */
- public static function typeOf($theType)
- {
- return new self($theType);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php
deleted file mode 100644
index cdc45d53..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/Set.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-
-/**
- * Tests if a value (class, object, or array) has a named property.
- *
- * For example:
- * <pre>
- * assertThat(array('a', 'b'), set('b'));
- * assertThat($foo, set('bar'));
- * assertThat('Server', notSet('defaultPort'));
- * </pre>
- *
- * @todo Replace $property with a matcher and iterate all property names.
- */
-class Set extends BaseMatcher
-{
-
- private $_property;
- private $_not;
-
- public function __construct($property, $not = false)
- {
- $this->_property = $property;
- $this->_not = $not;
- }
-
- public function matches($item)
- {
- if ($item === null) {
- return false;
- }
- $property = $this->_property;
- if (is_array($item)) {
- $result = isset($item[$property]);
- } elseif (is_object($item)) {
- $result = isset($item->$property);
- } elseif (is_string($item)) {
- $result = isset($item::$$property);
- } else {
- throw new \InvalidArgumentException('Must pass an object, array, or class name');
- }
-
- return $this->_not ? !$result : $result;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText($this->_not ? 'unset property ' : 'set property ')->appendText($this->_property);
- }
-
- public function describeMismatch($item, Description $description)
- {
- $value = '';
- if (!$this->_not) {
- $description->appendText('was not set');
- } else {
- $property = $this->_property;
- if (is_array($item)) {
- $value = $item[$property];
- } elseif (is_object($item)) {
- $value = $item->$property;
- } elseif (is_string($item)) {
- $value = $item::$$property;
- }
- parent::describeMismatch($value, $description);
- }
- }
-
- /**
- * Matches if value (class, object, or array) has named $property.
- *
- * @factory
- */
- public static function set($property)
- {
- return new self($property);
- }
-
- /**
- * Matches if value (class, object, or array) does not have named $property.
- *
- * @factory
- */
- public static function notSet($property)
- {
- return new self($property, true);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php
deleted file mode 100644
index d93db74f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/ShortcutCombination.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-use Hamcrest\BaseMatcher;
-use Hamcrest\Description;
-use Hamcrest\Util;
-
-abstract class ShortcutCombination extends BaseMatcher
-{
-
- /**
- * @var array<\Hamcrest\Matcher>
- */
- private $_matchers;
-
- public function __construct(array $matchers)
- {
- Util::checkAllAreMatchers($matchers);
-
- $this->_matchers = $matchers;
- }
-
- protected function matchesWithShortcut($item, $shortcut)
- {
- /** @var $matcher \Hamcrest\Matcher */
- foreach ($this->_matchers as $matcher) {
- if ($matcher->matches($item) == $shortcut) {
- return $shortcut;
- }
- }
-
- return !$shortcut;
- }
-
- public function describeToWithOperator(Description $description, $operator)
- {
- $description->appendList('(', ' ' . $operator . ' ', ')', $this->_matchers);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php
deleted file mode 100644
index 9a482dbf..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Description.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * A description of a Matcher. A Matcher will describe itself to a description
- * which can later be used for reporting.
- *
- * @see Hamcrest\Matcher::describeTo()
- */
-interface Description
-{
-
- /**
- * Appends some plain text to the description.
- *
- * @param string $text
- *
- * @return \Hamcrest\Description
- */
- public function appendText($text);
-
- /**
- * Appends the description of a {@link Hamcrest\SelfDescribing} value to
- * this description.
- *
- * @param \Hamcrest\SelfDescribing $value
- *
- * @return \Hamcrest\Description
- */
- public function appendDescriptionOf(SelfDescribing $value);
-
- /**
- * Appends an arbitary value to the description.
- *
- * @param mixed $value
- *
- * @return \Hamcrest\Description
- */
- public function appendValue($value);
-
- /**
- * Appends a list of values to the description.
- *
- * @param string $start
- * @param string $separator
- * @param string $end
- * @param array|\IteratorAggregate|\Iterator $values
- *
- * @return \Hamcrest\Description
- */
- public function appendValueList($start, $separator, $end, $values);
-
- /**
- * Appends a list of {@link Hamcrest\SelfDescribing} objects to the
- * description.
- *
- * @param string $start
- * @param string $separator
- * @param string $end
- * @param array|\\IteratorAggregate|\\Iterator $values
- * must be instances of {@link Hamcrest\SelfDescribing}
- *
- * @return \Hamcrest\Description
- */
- public function appendList($start, $separator, $end, $values);
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/DiagnosingMatcher.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/DiagnosingMatcher.php
deleted file mode 100644
index 3e45395c..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/DiagnosingMatcher.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * Official documentation for this class is missing.
- */
-abstract class DiagnosingMatcher extends BaseMatcher
-{
-
- final public function matches($item)
- {
- return $this->matchesWithDiagnosticDescription($item, new NullDescription());
- }
-
- public function describeMismatch($item, Description $mismatchDescription)
- {
- $this->matchesWithDiagnosticDescription($item, $mismatchDescription);
- }
-
- abstract protected function matchesWithDiagnosticDescription($item, Description $mismatchDescription);
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php
deleted file mode 100644
index 59f6cc73..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/FeatureMatcher.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * Supporting class for matching a feature of an object. Implement
- * <code>featureValueOf()</code> in a subclass to pull out the feature to be
- * matched against.
- */
-abstract class FeatureMatcher extends TypeSafeDiagnosingMatcher
-{
-
- private $_subMatcher;
- private $_featureDescription;
- private $_featureName;
-
- /**
- * Constructor.
- *
- * @param string $type
- * @param string $subtype
- * @param \Hamcrest\Matcher $subMatcher The matcher to apply to the feature
- * @param string $featureDescription Descriptive text to use in describeTo
- * @param string $featureName Identifying text for mismatch message
- */
- public function __construct($type, $subtype, Matcher $subMatcher, $featureDescription, $featureName)
- {
- parent::__construct($type, $subtype);
-
- $this->_subMatcher = $subMatcher;
- $this->_featureDescription = $featureDescription;
- $this->_featureName = $featureName;
- }
-
- /**
- * Implement this to extract the interesting feature.
- *
- * @param mixed $actual the target object
- *
- * @return mixed the feature to be matched
- */
- abstract protected function featureValueOf($actual);
-
- public function matchesSafelyWithDiagnosticDescription($actual, Description $mismatchDescription)
- {
- $featureValue = $this->featureValueOf($actual);
-
- if (!$this->_subMatcher->matches($featureValue)) {
- $mismatchDescription->appendText($this->_featureName)
- ->appendText(' was ')->appendValue($featureValue);
-
- return false;
- }
-
- return true;
- }
-
- final public function describeTo(Description $description)
- {
- $description->appendText($this->_featureDescription)->appendText(' ')
- ->appendDescriptionOf($this->_subMatcher)
- ;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php
deleted file mode 100644
index 995da71d..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Internal/SelfDescribingValue.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-namespace Hamcrest\Internal;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\SelfDescribing;
-
-/**
- * A wrapper around any value so that it describes itself.
- */
-class SelfDescribingValue implements SelfDescribing
-{
-
- private $_value;
-
- public function __construct($value)
- {
- $this->_value = $value;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendValue($this->_value);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php
deleted file mode 100644
index e5dcf093..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matcher.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * A matcher over acceptable values.
- * A matcher is able to describe itself to give feedback when it fails.
- * <p/>
- * Matcher implementations should <b>NOT directly implement this interface</b>.
- * Instead, <b>extend</b> the {@link Hamcrest\BaseMatcher} abstract class,
- * which will ensure that the Matcher API can grow to support
- * new features and remain compatible with all Matcher implementations.
- * <p/>
- * For easy access to common Matcher implementations, use the static factory
- * methods in {@link Hamcrest\CoreMatchers}.
- *
- * @see Hamcrest\CoreMatchers
- * @see Hamcrest\BaseMatcher
- */
-interface Matcher extends SelfDescribing
-{
-
- /**
- * Evaluates the matcher for argument <var>$item</var>.
- *
- * @param mixed $item the object against which the matcher is evaluated.
- *
- * @return boolean <code>true</code> if <var>$item</var> matches,
- * otherwise <code>false</code>.
- *
- * @see Hamcrest\BaseMatcher
- */
- public function matches($item);
-
- /**
- * Generate a description of why the matcher has not accepted the item.
- * The description will be part of a larger description of why a matching
- * failed, so it should be concise.
- * This method assumes that <code>matches($item)</code> is false, but
- * will not check this.
- *
- * @param mixed $item The item that the Matcher has rejected.
- * @param Description $description
- * @return
- */
- public function describeMismatch($item, Description $description);
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php
deleted file mode 100644
index d546dbee..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/MatcherAssert.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-class MatcherAssert
-{
-
- /**
- * Number of assertions performed.
- *
- * @var int
- */
- private static $_count = 0;
-
- /**
- * Make an assertion and throw {@link Hamcrest\AssertionError} if it fails.
- *
- * The first parameter may optionally be a string identifying the assertion
- * to be included in the failure message.
- *
- * If the third parameter is not a matcher it is passed to
- * {@link Hamcrest\Core\IsEqual#equalTo} to create one.
- *
- * Example:
- * <pre>
- * // With an identifier
- * assertThat("apple flavour", $apple->flavour(), equalTo("tasty"));
- * // Without an identifier
- * assertThat($apple->flavour(), equalTo("tasty"));
- * // Evaluating a boolean expression
- * assertThat("some error", $a > $b);
- * assertThat($a > $b);
- * </pre>
- */
- public static function assertThat(/* $args ... */)
- {
- $args = func_get_args();
- switch (count($args)) {
- case 1:
- self::$_count++;
- if (!$args[0]) {
- throw new AssertionError();
- }
- break;
-
- case 2:
- self::$_count++;
- if ($args[1] instanceof Matcher) {
- self::doAssert('', $args[0], $args[1]);
- } elseif (!$args[1]) {
- throw new AssertionError($args[0]);
- }
- break;
-
- case 3:
- self::$_count++;
- self::doAssert(
- $args[0],
- $args[1],
- Util::wrapValueWithIsEqual($args[2])
- );
- break;
-
- default:
- throw new \InvalidArgumentException('assertThat() requires one to three arguments');
- }
- }
-
- /**
- * Returns the number of assertions performed.
- *
- * @return int
- */
- public static function getCount()
- {
- return self::$_count;
- }
-
- /**
- * Resets the number of assertions performed to zero.
- */
- public static function resetCount()
- {
- self::$_count = 0;
- }
-
- /**
- * Performs the actual assertion logic.
- *
- * If <code>$matcher</code> doesn't match <code>$actual</code>,
- * throws a {@link Hamcrest\AssertionError} with a description
- * of the failure along with the optional <code>$identifier</code>.
- *
- * @param string $identifier added to the message upon failure
- * @param mixed $actual value to compare against <code>$matcher</code>
- * @param \Hamcrest\Matcher $matcher applied to <code>$actual</code>
- * @throws AssertionError
- */
- private static function doAssert($identifier, $actual, Matcher $matcher)
- {
- if (!$matcher->matches($actual)) {
- $description = new StringDescription();
- if (!empty($identifier)) {
- $description->appendText($identifier . PHP_EOL);
- }
- $description->appendText('Expected: ')
- ->appendDescriptionOf($matcher)
- ->appendText(PHP_EOL . ' but: ');
-
- $matcher->describeMismatch($actual, $description);
-
- throw new AssertionError((string) $description);
- }
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php
deleted file mode 100644
index 23232e45..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Matchers.php
+++ /dev/null
@@ -1,713 +0,0 @@
-<?php
-
-/*
- Copyright (c) 2009-2010 hamcrest.org
- */
-
-// This file is generated from the static method @factory doctags.
-
-namespace Hamcrest;
-
-/**
- * A series of static factories for all hamcrest matchers.
- */
-class Matchers
-{
-
- /**
- * Evaluates to true only if each $matcher[$i] is satisfied by $array[$i].
- */
- public static function anArray(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArray', 'anArray'), $args);
- }
-
- /**
- * Evaluates to true if any item in an array satisfies the given matcher.
- *
- * @param mixed $item as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContaining
- */
- public static function hasItemInArray($item)
- {
- return \Hamcrest\Arrays\IsArrayContaining::hasItemInArray($item);
- }
-
- /**
- * Evaluates to true if any item in an array satisfies the given matcher.
- *
- * @param mixed $item as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContaining
- */
- public static function hasValue($item)
- {
- return \Hamcrest\Arrays\IsArrayContaining::hasItemInArray($item);
- }
-
- /**
- * An array with elements that match the given matchers.
- */
- public static function arrayContainingInAnyOrder(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInAnyOrder', 'arrayContainingInAnyOrder'), $args);
- }
-
- /**
- * An array with elements that match the given matchers.
- */
- public static function containsInAnyOrder(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInAnyOrder', 'arrayContainingInAnyOrder'), $args);
- }
-
- /**
- * An array with elements that match the given matchers in the same order.
- */
- public static function arrayContaining(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInOrder', 'arrayContaining'), $args);
- }
-
- /**
- * An array with elements that match the given matchers in the same order.
- */
- public static function contains(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Arrays\IsArrayContainingInOrder', 'arrayContaining'), $args);
- }
-
- /**
- * Evaluates to true if any key in an array matches the given matcher.
- *
- * @param mixed $key as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContainingKey
- */
- public static function hasKeyInArray($key)
- {
- return \Hamcrest\Arrays\IsArrayContainingKey::hasKeyInArray($key);
- }
-
- /**
- * Evaluates to true if any key in an array matches the given matcher.
- *
- * @param mixed $key as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayContainingKey
- */
- public static function hasKey($key)
- {
- return \Hamcrest\Arrays\IsArrayContainingKey::hasKeyInArray($key);
- }
-
- /**
- * Test if an array has both an key and value in parity with each other.
- */
- public static function hasKeyValuePair($key, $value)
- {
- return \Hamcrest\Arrays\IsArrayContainingKeyValuePair::hasKeyValuePair($key, $value);
- }
-
- /**
- * Test if an array has both an key and value in parity with each other.
- */
- public static function hasEntry($key, $value)
- {
- return \Hamcrest\Arrays\IsArrayContainingKeyValuePair::hasKeyValuePair($key, $value);
- }
-
- /**
- * Does array size satisfy a given matcher?
- *
- * @param \Hamcrest\Matcher|int $size as a {@link Hamcrest\Matcher} or a value.
- *
- * @return \Hamcrest\Arrays\IsArrayWithSize
- */
- public static function arrayWithSize($size)
- {
- return \Hamcrest\Arrays\IsArrayWithSize::arrayWithSize($size);
- }
-
- /**
- * Matches an empty array.
- */
- public static function emptyArray()
- {
- return \Hamcrest\Arrays\IsArrayWithSize::emptyArray();
- }
-
- /**
- * Matches an empty array.
- */
- public static function nonEmptyArray()
- {
- return \Hamcrest\Arrays\IsArrayWithSize::nonEmptyArray();
- }
-
- /**
- * Returns true if traversable is empty.
- */
- public static function emptyTraversable()
- {
- return \Hamcrest\Collection\IsEmptyTraversable::emptyTraversable();
- }
-
- /**
- * Returns true if traversable is not empty.
- */
- public static function nonEmptyTraversable()
- {
- return \Hamcrest\Collection\IsEmptyTraversable::nonEmptyTraversable();
- }
-
- /**
- * Does traversable size satisfy a given matcher?
- */
- public static function traversableWithSize($size)
- {
- return \Hamcrest\Collection\IsTraversableWithSize::traversableWithSize($size);
- }
-
- /**
- * Evaluates to true only if ALL of the passed in matchers evaluate to true.
- */
- public static function allOf(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\AllOf', 'allOf'), $args);
- }
-
- /**
- * Evaluates to true if ANY of the passed in matchers evaluate to true.
- */
- public static function anyOf(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\AnyOf', 'anyOf'), $args);
- }
-
- /**
- * Evaluates to false if ANY of the passed in matchers evaluate to true.
- */
- public static function noneOf(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\AnyOf', 'noneOf'), $args);
- }
-
- /**
- * This is useful for fluently combining matchers that must both pass.
- * For example:
- * <pre>
- * assertThat($string, both(containsString("a"))->andAlso(containsString("b")));
- * </pre>
- */
- public static function both(\Hamcrest\Matcher $matcher)
- {
- return \Hamcrest\Core\CombinableMatcher::both($matcher);
- }
-
- /**
- * This is useful for fluently combining matchers where either may pass,
- * for example:
- * <pre>
- * assertThat($string, either(containsString("a"))->orElse(containsString("b")));
- * </pre>
- */
- public static function either(\Hamcrest\Matcher $matcher)
- {
- return \Hamcrest\Core\CombinableMatcher::either($matcher);
- }
-
- /**
- * Wraps an existing matcher and overrides the description when it fails.
- */
- public static function describedAs(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\DescribedAs', 'describedAs'), $args);
- }
-
- /**
- * @param Matcher $itemMatcher
- * A matcher to apply to every element in an array.
- *
- * @return \Hamcrest\Core\Every
- * Evaluates to TRUE for a collection in which every item matches $itemMatcher
- */
- public static function everyItem(\Hamcrest\Matcher $itemMatcher)
- {
- return \Hamcrest\Core\Every::everyItem($itemMatcher);
- }
-
- /**
- * Does array size satisfy a given matcher?
- */
- public static function hasToString($matcher)
- {
- return \Hamcrest\Core\HasToString::hasToString($matcher);
- }
-
- /**
- * Decorates another Matcher, retaining the behavior but allowing tests
- * to be slightly more expressive.
- *
- * For example: assertThat($cheese, equalTo($smelly))
- * vs. assertThat($cheese, is(equalTo($smelly)))
- */
- public static function is($value)
- {
- return \Hamcrest\Core\Is::is($value);
- }
-
- /**
- * This matcher always evaluates to true.
- *
- * @param string $description A meaningful string used when describing itself.
- *
- * @return \Hamcrest\Core\IsAnything
- */
- public static function anything($description = 'ANYTHING')
- {
- return \Hamcrest\Core\IsAnything::anything($description);
- }
-
- /**
- * Test if the value is an array containing this matcher.
- *
- * Example:
- * <pre>
- * assertThat(array('a', 'b'), hasItem(equalTo('b')));
- * //Convenience defaults to equalTo()
- * assertThat(array('a', 'b'), hasItem('b'));
- * </pre>
- */
- public static function hasItem(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\IsCollectionContaining', 'hasItem'), $args);
- }
-
- /**
- * Test if the value is an array containing elements that match all of these
- * matchers.
- *
- * Example:
- * <pre>
- * assertThat(array('a', 'b', 'c'), hasItems(equalTo('a'), equalTo('b')));
- * </pre>
- */
- public static function hasItems(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Core\IsCollectionContaining', 'hasItems'), $args);
- }
-
- /**
- * Is the value equal to another value, as tested by the use of the "=="
- * comparison operator?
- */
- public static function equalTo($item)
- {
- return \Hamcrest\Core\IsEqual::equalTo($item);
- }
-
- /**
- * Tests of the value is identical to $value as tested by the "===" operator.
- */
- public static function identicalTo($value)
- {
- return \Hamcrest\Core\IsIdentical::identicalTo($value);
- }
-
- /**
- * Is the value an instance of a particular type?
- * This version assumes no relationship between the required type and
- * the signature of the method that sets it up, for example in
- * <code>assertThat($anObject, anInstanceOf('Thing'));</code>
- */
- public static function anInstanceOf($theClass)
- {
- return \Hamcrest\Core\IsInstanceOf::anInstanceOf($theClass);
- }
-
- /**
- * Is the value an instance of a particular type?
- * This version assumes no relationship between the required type and
- * the signature of the method that sets it up, for example in
- * <code>assertThat($anObject, anInstanceOf('Thing'));</code>
- */
- public static function any($theClass)
- {
- return \Hamcrest\Core\IsInstanceOf::anInstanceOf($theClass);
- }
-
- /**
- * Matches if value does not match $value.
- */
- public static function not($value)
- {
- return \Hamcrest\Core\IsNot::not($value);
- }
-
- /**
- * Matches if value is null.
- */
- public static function nullValue()
- {
- return \Hamcrest\Core\IsNull::nullValue();
- }
-
- /**
- * Matches if value is not null.
- */
- public static function notNullValue()
- {
- return \Hamcrest\Core\IsNull::notNullValue();
- }
-
- /**
- * Creates a new instance of IsSame.
- *
- * @param mixed $object
- * The predicate evaluates to true only when the argument is
- * this object.
- *
- * @return \Hamcrest\Core\IsSame
- */
- public static function sameInstance($object)
- {
- return \Hamcrest\Core\IsSame::sameInstance($object);
- }
-
- /**
- * Is the value a particular built-in type?
- */
- public static function typeOf($theType)
- {
- return \Hamcrest\Core\IsTypeOf::typeOf($theType);
- }
-
- /**
- * Matches if value (class, object, or array) has named $property.
- */
- public static function set($property)
- {
- return \Hamcrest\Core\Set::set($property);
- }
-
- /**
- * Matches if value (class, object, or array) does not have named $property.
- */
- public static function notSet($property)
- {
- return \Hamcrest\Core\Set::notSet($property);
- }
-
- /**
- * Matches if value is a number equal to $value within some range of
- * acceptable error $delta.
- */
- public static function closeTo($value, $delta)
- {
- return \Hamcrest\Number\IsCloseTo::closeTo($value, $delta);
- }
-
- /**
- * The value is not > $value, nor < $value.
- */
- public static function comparesEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::comparesEqualTo($value);
- }
-
- /**
- * The value is > $value.
- */
- public static function greaterThan($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThan($value);
- }
-
- /**
- * The value is >= $value.
- */
- public static function greaterThanOrEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThanOrEqualTo($value);
- }
-
- /**
- * The value is >= $value.
- */
- public static function atLeast($value)
- {
- return \Hamcrest\Number\OrderingComparison::greaterThanOrEqualTo($value);
- }
-
- /**
- * The value is < $value.
- */
- public static function lessThan($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThan($value);
- }
-
- /**
- * The value is <= $value.
- */
- public static function lessThanOrEqualTo($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThanOrEqualTo($value);
- }
-
- /**
- * The value is <= $value.
- */
- public static function atMost($value)
- {
- return \Hamcrest\Number\OrderingComparison::lessThanOrEqualTo($value);
- }
-
- /**
- * Matches if value is a zero-length string.
- */
- public static function isEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyString();
- }
-
- /**
- * Matches if value is a zero-length string.
- */
- public static function emptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyString();
- }
-
- /**
- * Matches if value is null or a zero-length string.
- */
- public static function isEmptyOrNullString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyOrNullString();
- }
-
- /**
- * Matches if value is null or a zero-length string.
- */
- public static function nullOrEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyOrNullString();
- }
-
- /**
- * Matches if value is a non-zero-length string.
- */
- public static function isNonEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isNonEmptyString();
- }
-
- /**
- * Matches if value is a non-zero-length string.
- */
- public static function nonEmptyString()
- {
- return \Hamcrest\Text\IsEmptyString::isNonEmptyString();
- }
-
- /**
- * Matches if value is a string equal to $string, regardless of the case.
- */
- public static function equalToIgnoringCase($string)
- {
- return \Hamcrest\Text\IsEqualIgnoringCase::equalToIgnoringCase($string);
- }
-
- /**
- * Matches if value is a string equal to $string, regardless of whitespace.
- */
- public static function equalToIgnoringWhiteSpace($string)
- {
- return \Hamcrest\Text\IsEqualIgnoringWhiteSpace::equalToIgnoringWhiteSpace($string);
- }
-
- /**
- * Matches if value is a string that matches regular expression $pattern.
- */
- public static function matchesPattern($pattern)
- {
- return \Hamcrest\Text\MatchesPattern::matchesPattern($pattern);
- }
-
- /**
- * Matches if value is a string that contains $substring.
- */
- public static function containsString($substring)
- {
- return \Hamcrest\Text\StringContains::containsString($substring);
- }
-
- /**
- * Matches if value is a string that contains $substring regardless of the case.
- */
- public static function containsStringIgnoringCase($substring)
- {
- return \Hamcrest\Text\StringContainsIgnoringCase::containsStringIgnoringCase($substring);
- }
-
- /**
- * Matches if value contains $substrings in a constrained order.
- */
- public static function stringContainsInOrder(/* args... */)
- {
- $args = func_get_args();
- return call_user_func_array(array('\Hamcrest\Text\StringContainsInOrder', 'stringContainsInOrder'), $args);
- }
-
- /**
- * Matches if value is a string that ends with $substring.
- */
- public static function endsWith($substring)
- {
- return \Hamcrest\Text\StringEndsWith::endsWith($substring);
- }
-
- /**
- * Matches if value is a string that starts with $substring.
- */
- public static function startsWith($substring)
- {
- return \Hamcrest\Text\StringStartsWith::startsWith($substring);
- }
-
- /**
- * Is the value an array?
- */
- public static function arrayValue()
- {
- return \Hamcrest\Type\IsArray::arrayValue();
- }
-
- /**
- * Is the value a boolean?
- */
- public static function booleanValue()
- {
- return \Hamcrest\Type\IsBoolean::booleanValue();
- }
-
- /**
- * Is the value a boolean?
- */
- public static function boolValue()
- {
- return \Hamcrest\Type\IsBoolean::booleanValue();
- }
-
- /**
- * Is the value callable?
- */
- public static function callableValue()
- {
- return \Hamcrest\Type\IsCallable::callableValue();
- }
-
- /**
- * Is the value a float/double?
- */
- public static function doubleValue()
- {
- return \Hamcrest\Type\IsDouble::doubleValue();
- }
-
- /**
- * Is the value a float/double?
- */
- public static function floatValue()
- {
- return \Hamcrest\Type\IsDouble::doubleValue();
- }
-
- /**
- * Is the value an integer?
- */
- public static function integerValue()
- {
- return \Hamcrest\Type\IsInteger::integerValue();
- }
-
- /**
- * Is the value an integer?
- */
- public static function intValue()
- {
- return \Hamcrest\Type\IsInteger::integerValue();
- }
-
- /**
- * Is the value a numeric?
- */
- public static function numericValue()
- {
- return \Hamcrest\Type\IsNumeric::numericValue();
- }
-
- /**
- * Is the value an object?
- */
- public static function objectValue()
- {
- return \Hamcrest\Type\IsObject::objectValue();
- }
-
- /**
- * Is the value an object?
- */
- public static function anObject()
- {
- return \Hamcrest\Type\IsObject::objectValue();
- }
-
- /**
- * Is the value a resource?
- */
- public static function resourceValue()
- {
- return \Hamcrest\Type\IsResource::resourceValue();
- }
-
- /**
- * Is the value a scalar (boolean, integer, double, or string)?
- */
- public static function scalarValue()
- {
- return \Hamcrest\Type\IsScalar::scalarValue();
- }
-
- /**
- * Is the value a string?
- */
- public static function stringValue()
- {
- return \Hamcrest\Type\IsString::stringValue();
- }
-
- /**
- * Wraps <code>$matcher</code> with {@link Hamcrest\Core\IsEqual)
- * if it's not a matcher and the XPath in <code>count()</code>
- * if it's an integer.
- */
- public static function hasXPath($xpath, $matcher = null)
- {
- return \Hamcrest\Xml\HasXPath::hasXPath($xpath, $matcher);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php
deleted file mode 100644
index aae8e461..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/NullDescription.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * Null implementation of {@link Hamcrest\Description}.
- */
-class NullDescription implements Description
-{
-
- public function appendText($text)
- {
- return $this;
- }
-
- public function appendDescriptionOf(SelfDescribing $value)
- {
- return $this;
- }
-
- public function appendValue($value)
- {
- return $this;
- }
-
- public function appendValueList($start, $separator, $end, $values)
- {
- return $this;
- }
-
- public function appendList($start, $separator, $end, $values)
- {
- return $this;
- }
-
- public function __toString()
- {
- return '';
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/IsCloseTo.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/IsCloseTo.php
deleted file mode 100644
index 15453e52..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/IsCloseTo.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-namespace Hamcrest\Number;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\TypeSafeMatcher;
-
-/**
- * Is the value a number equal to a value within some range of
- * acceptable error?
- */
-class IsCloseTo extends TypeSafeMatcher
-{
-
- private $_value;
- private $_delta;
-
- public function __construct($value, $delta)
- {
- parent::__construct(self::TYPE_NUMERIC);
-
- $this->_value = $value;
- $this->_delta = $delta;
- }
-
- protected function matchesSafely($item)
- {
- return $this->_actualDelta($item) <= 0.0;
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendValue($item)
- ->appendText(' differed by ')
- ->appendValue($this->_actualDelta($item))
- ;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('a numeric value within ')
- ->appendValue($this->_delta)
- ->appendText(' of ')
- ->appendValue($this->_value)
- ;
- }
-
- /**
- * Matches if value is a number equal to $value within some range of
- * acceptable error $delta.
- *
- * @factory
- */
- public static function closeTo($value, $delta)
- {
- return new self($value, $delta);
- }
-
- // -- Private Methods
-
- private function _actualDelta($item)
- {
- return (abs(($item - $this->_value)) - $this->_delta);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php
deleted file mode 100644
index 369d0cfa..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php
+++ /dev/null
@@ -1,132 +0,0 @@
-<?php
-namespace Hamcrest\Number;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-use Hamcrest\Description;
-use Hamcrest\TypeSafeMatcher;
-
-class OrderingComparison extends TypeSafeMatcher
-{
-
- private $_value;
- private $_minCompare;
- private $_maxCompare;
-
- public function __construct($value, $minCompare, $maxCompare)
- {
- parent::__construct(self::TYPE_NUMERIC);
-
- $this->_value = $value;
- $this->_minCompare = $minCompare;
- $this->_maxCompare = $maxCompare;
- }
-
- protected function matchesSafely($other)
- {
- $compare = $this->_compare($this->_value, $other);
-
- return ($this->_minCompare <= $compare) && ($compare <= $this->_maxCompare);
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription
- ->appendValue($item)->appendText(' was ')
- ->appendText($this->_comparison($this->_compare($this->_value, $item)))
- ->appendText(' ')->appendValue($this->_value)
- ;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('a value ')
- ->appendText($this->_comparison($this->_minCompare))
- ;
- if ($this->_minCompare != $this->_maxCompare) {
- $description->appendText(' or ')
- ->appendText($this->_comparison($this->_maxCompare))
- ;
- }
- $description->appendText(' ')->appendValue($this->_value);
- }
-
- /**
- * The value is not > $value, nor < $value.
- *
- * @factory
- */
- public static function comparesEqualTo($value)
- {
- return new self($value, 0, 0);
- }
-
- /**
- * The value is > $value.
- *
- * @factory
- */
- public static function greaterThan($value)
- {
- return new self($value, -1, -1);
- }
-
- /**
- * The value is >= $value.
- *
- * @factory atLeast
- */
- public static function greaterThanOrEqualTo($value)
- {
- return new self($value, -1, 0);
- }
-
- /**
- * The value is < $value.
- *
- * @factory
- */
- public static function lessThan($value)
- {
- return new self($value, 1, 1);
- }
-
- /**
- * The value is <= $value.
- *
- * @factory atMost
- */
- public static function lessThanOrEqualTo($value)
- {
- return new self($value, 0, 1);
- }
-
- // -- Private Methods
-
- private function _compare($left, $right)
- {
- $a = $left;
- $b = $right;
-
- if ($a < $b) {
- return -1;
- } elseif ($a == $b) {
- return 0;
- } else {
- return 1;
- }
- }
-
- private function _comparison($compare)
- {
- if ($compare > 0) {
- return 'less than';
- } elseif ($compare == 0) {
- return 'equal to';
- } else {
- return 'greater than';
- }
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php
deleted file mode 100644
index 872fdf9c..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/SelfDescribing.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * The ability of an object to describe itself.
- */
-interface SelfDescribing
-{
-
- /**
- * Generates a description of the object. The description may be part
- * of a description of a larger object of which this is just a component,
- * so it should be worded appropriately.
- *
- * @param \Hamcrest\Description $description
- * The description to be built or appended to.
- */
- public function describeTo(Description $description);
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/StringDescription.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/StringDescription.php
deleted file mode 100644
index 4b36fa2d..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/StringDescription.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * A {@link Hamcrest\Description} that is stored as a string.
- */
-class StringDescription extends BaseDescription
-{
-
- private $_out;
-
- public function __construct($out = '')
- {
- $this->_out = (string) $out;
- }
-
- public function __toString()
- {
- return $this->_out;
- }
-
- /**
- * Return the description of a {@link Hamcrest\SelfDescribing} object as a
- * String.
- *
- * @param \Hamcrest\SelfDescribing $selfDescribing
- * The object to be described.
- *
- * @return string
- * The description of the object.
- */
- public static function toString(SelfDescribing $selfDescribing)
- {
- $self = new self();
-
- return (string) $self->appendDescriptionOf($selfDescribing);
- }
-
- /**
- * Alias for {@link toString()}.
- */
- public static function asString(SelfDescribing $selfDescribing)
- {
- return self::toString($selfDescribing);
- }
-
- // -- Protected Methods
-
- protected function append($str)
- {
- $this->_out .= $str;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php
deleted file mode 100644
index 2ae61b96..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEmptyString.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\BaseMatcher;
-use Hamcrest\Core\AnyOf;
-use Hamcrest\Core\IsNull;
-use Hamcrest\Description;
-
-/**
- * Matches empty Strings (and null).
- */
-class IsEmptyString extends BaseMatcher
-{
-
- private static $_INSTANCE;
- private static $_NULL_OR_EMPTY_INSTANCE;
- private static $_NOT_INSTANCE;
-
- private $_empty;
-
- public function __construct($empty = true)
- {
- $this->_empty = $empty;
- }
-
- public function matches($item)
- {
- return $this->_empty
- ? ($item === '')
- : is_string($item) && $item !== '';
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText($this->_empty ? 'an empty string' : 'a non-empty string');
- }
-
- /**
- * Matches if value is a zero-length string.
- *
- * @factory emptyString
- */
- public static function isEmptyString()
- {
- if (!self::$_INSTANCE) {
- self::$_INSTANCE = new self(true);
- }
-
- return self::$_INSTANCE;
- }
-
- /**
- * Matches if value is null or a zero-length string.
- *
- * @factory nullOrEmptyString
- */
- public static function isEmptyOrNullString()
- {
- if (!self::$_NULL_OR_EMPTY_INSTANCE) {
- self::$_NULL_OR_EMPTY_INSTANCE = AnyOf::anyOf(
- IsNull::nullvalue(),
- self::isEmptyString()
- );
- }
-
- return self::$_NULL_OR_EMPTY_INSTANCE;
- }
-
- /**
- * Matches if value is a non-zero-length string.
- *
- * @factory nonEmptyString
- */
- public static function isNonEmptyString()
- {
- if (!self::$_NOT_INSTANCE) {
- self::$_NOT_INSTANCE = new self(false);
- }
-
- return self::$_NOT_INSTANCE;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php
deleted file mode 100644
index 3836a8c3..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringCase.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\TypeSafeMatcher;
-
-/**
- * Tests if a string is equal to another string, regardless of the case.
- */
-class IsEqualIgnoringCase extends TypeSafeMatcher
-{
-
- private $_string;
-
- public function __construct($string)
- {
- parent::__construct(self::TYPE_STRING);
-
- $this->_string = $string;
- }
-
- protected function matchesSafely($item)
- {
- return strtolower($this->_string) === strtolower($item);
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was ')->appendText($item);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('equalToIgnoringCase(')
- ->appendValue($this->_string)
- ->appendText(')')
- ;
- }
-
- /**
- * Matches if value is a string equal to $string, regardless of the case.
- *
- * @factory
- */
- public static function equalToIgnoringCase($string)
- {
- return new self($string);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php
deleted file mode 100644
index 853692b0..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/IsEqualIgnoringWhiteSpace.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\TypeSafeMatcher;
-
-/**
- * Tests if a string is equal to another string, ignoring any changes in
- * whitespace.
- */
-class IsEqualIgnoringWhiteSpace extends TypeSafeMatcher
-{
-
- private $_string;
-
- public function __construct($string)
- {
- parent::__construct(self::TYPE_STRING);
-
- $this->_string = $string;
- }
-
- protected function matchesSafely($item)
- {
- return (strtolower($this->_stripSpace($item))
- === strtolower($this->_stripSpace($this->_string)));
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was ')->appendText($item);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('equalToIgnoringWhiteSpace(')
- ->appendValue($this->_string)
- ->appendText(')')
- ;
- }
-
- /**
- * Matches if value is a string equal to $string, regardless of whitespace.
- *
- * @factory
- */
- public static function equalToIgnoringWhiteSpace($string)
- {
- return new self($string);
- }
-
- // -- Private Methods
-
- private function _stripSpace($string)
- {
- $parts = preg_split("/[\r\n\t ]+/", $string);
- foreach ($parts as $i => $part) {
- $parts[$i] = trim($part, " \r\n\t");
- }
-
- return trim(implode(' ', $parts), " \r\n\t");
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php
deleted file mode 100644
index fa0d68ee..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/MatchesPattern.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-
-/**
- * Tests if the argument is a string that matches a regular expression.
- */
-class MatchesPattern extends SubstringMatcher
-{
-
- public function __construct($pattern)
- {
- parent::__construct($pattern);
- }
-
- /**
- * Matches if value is a string that matches regular expression $pattern.
- *
- * @factory
- */
- public static function matchesPattern($pattern)
- {
- return new self($pattern);
- }
-
- // -- Protected Methods
-
- protected function evalSubstringOf($item)
- {
- return preg_match($this->_substring, (string) $item) >= 1;
- }
-
- protected function relationship()
- {
- return 'matching';
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php
deleted file mode 100644
index b92786b6..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContains.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * Tests if the argument is a string that contains a substring.
- */
-class StringContains extends SubstringMatcher
-{
-
- public function __construct($substring)
- {
- parent::__construct($substring);
- }
-
- public function ignoringCase()
- {
- return new StringContainsIgnoringCase($this->_substring);
- }
-
- /**
- * Matches if value is a string that contains $substring.
- *
- * @factory
- */
- public static function containsString($substring)
- {
- return new self($substring);
- }
-
- // -- Protected Methods
-
- protected function evalSubstringOf($item)
- {
- return (false !== strpos((string) $item, $this->_substring));
- }
-
- protected function relationship()
- {
- return 'containing';
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php
deleted file mode 100644
index 69f37c25..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsIgnoringCase.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-
-/**
- * Tests if the argument is a string that contains a substring ignoring case.
- */
-class StringContainsIgnoringCase extends SubstringMatcher
-{
-
- public function __construct($substring)
- {
- parent::__construct($substring);
- }
-
- /**
- * Matches if value is a string that contains $substring regardless of the case.
- *
- * @factory
- */
- public static function containsStringIgnoringCase($substring)
- {
- return new self($substring);
- }
-
- // -- Protected Methods
-
- protected function evalSubstringOf($item)
- {
- return (false !== stripos((string) $item, $this->_substring));
- }
-
- protected function relationship()
- {
- return 'containing in any case';
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php
deleted file mode 100644
index e75de65d..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringContainsInOrder.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Description;
-use Hamcrest\TypeSafeMatcher;
-
-/**
- * Tests if the value contains a series of substrings in a constrained order.
- */
-class StringContainsInOrder extends TypeSafeMatcher
-{
-
- private $_substrings;
-
- public function __construct(array $substrings)
- {
- parent::__construct(self::TYPE_STRING);
-
- $this->_substrings = $substrings;
- }
-
- protected function matchesSafely($item)
- {
- $fromIndex = 0;
-
- foreach ($this->_substrings as $substring) {
- if (false === $fromIndex = strpos($item, $substring, $fromIndex)) {
- return false;
- }
- }
-
- return true;
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was ')->appendText($item);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('a string containing ')
- ->appendValueList('', ', ', '', $this->_substrings)
- ->appendText(' in order')
- ;
- }
-
- /**
- * Matches if value contains $substrings in a constrained order.
- *
- * @factory ...
- */
- public static function stringContainsInOrder(/* args... */)
- {
- $args = func_get_args();
-
- if (isset($args[0]) && is_array($args[0])) {
- $args = $args[0];
- }
-
- return new self($args);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php
deleted file mode 100644
index f802ee4d..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringEndsWith.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * Tests if the argument is a string that ends with a substring.
- */
-class StringEndsWith extends SubstringMatcher
-{
-
- public function __construct($substring)
- {
- parent::__construct($substring);
- }
-
- /**
- * Matches if value is a string that ends with $substring.
- *
- * @factory
- */
- public static function endsWith($substring)
- {
- return new self($substring);
- }
-
- // -- Protected Methods
-
- protected function evalSubstringOf($string)
- {
- return (substr($string, (-1 * strlen($this->_substring))) === $this->_substring);
- }
-
- protected function relationship()
- {
- return 'ending with';
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php
deleted file mode 100644
index 79c95656..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/StringStartsWith.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-/**
- * Tests if the argument is a string that contains a substring.
- */
-class StringStartsWith extends SubstringMatcher
-{
-
- public function __construct($substring)
- {
- parent::__construct($substring);
- }
-
- /**
- * Matches if value is a string that starts with $substring.
- *
- * @factory
- */
- public static function startsWith($substring)
- {
- return new self($substring);
- }
-
- // -- Protected Methods
-
- protected function evalSubstringOf($string)
- {
- return (substr($string, 0, strlen($this->_substring)) === $this->_substring);
- }
-
- protected function relationship()
- {
- return 'starting with';
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php
deleted file mode 100644
index e560ad62..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Text/SubstringMatcher.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-
-use Hamcrest\Description;
-use Hamcrest\TypeSafeMatcher;
-
-abstract class SubstringMatcher extends TypeSafeMatcher
-{
-
- protected $_substring;
-
- public function __construct($substring)
- {
- parent::__construct(self::TYPE_STRING);
-
- $this->_substring = $substring;
- }
-
- protected function matchesSafely($item)
- {
- return $this->evalSubstringOf($item);
- }
-
- protected function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('was "')->appendText($item)->appendText('"');
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('a string ')
- ->appendText($this->relationship())
- ->appendText(' ')
- ->appendValue($this->_substring)
- ;
- }
-
- abstract protected function evalSubstringOf($string);
-
- abstract protected function relationship();
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php
deleted file mode 100644
index 9179102f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsArray.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\Core\IsTypeOf;
-
-/**
- * Tests whether the value is an array.
- */
-class IsArray extends IsTypeOf
-{
-
- /**
- * Creates a new instance of IsArray
- */
- public function __construct()
- {
- parent::__construct('array');
- }
-
- /**
- * Is the value an array?
- *
- * @factory
- */
- public static function arrayValue()
- {
- return new self;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsBoolean.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsBoolean.php
deleted file mode 100644
index 35b617cf..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsBoolean.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\Core\IsTypeOf;
-
-/**
- * Tests whether the value is a boolean.
- */
-class IsBoolean extends IsTypeOf
-{
-
- /**
- * Creates a new instance of IsBoolean
- */
- public function __construct()
- {
- parent::__construct('boolean');
- }
-
- /**
- * Is the value a boolean?
- *
- * @factory boolValue
- */
- public static function booleanValue()
- {
- return new self;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsCallable.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsCallable.php
deleted file mode 100644
index f2bcd35b..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsCallable.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\Core\IsTypeOf;
-
-/**
- * Tests whether the value is callable.
- */
-class IsCallable extends IsTypeOf
-{
-
- /**
- * Creates a new instance of IsCallable
- */
- public function __construct()
- {
- parent::__construct('callable');
- }
-
- public function matches($item)
- {
- return is_callable($item);
- }
-
- /**
- * Is the value callable?
- *
- * @factory
- */
- public static function callableValue()
- {
- return new self;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsDouble.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsDouble.php
deleted file mode 100644
index 3ddd8e85..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsDouble.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\Core\IsTypeOf;
-
-/**
- * Tests whether the value is a float/double.
- *
- * PHP returns "double" for values of type "float".
- */
-class IsDouble extends IsTypeOf
-{
-
- /**
- * Creates a new instance of IsDouble
- */
- public function __construct()
- {
- parent::__construct('double');
- }
-
- /**
- * Is the value a float/double?
- *
- * @factory floatValue
- */
- public static function doubleValue()
- {
- return new self;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsInteger.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsInteger.php
deleted file mode 100644
index 47c86bd6..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsInteger.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\Core\IsTypeOf;
-
-/**
- * Tests whether the value is an integer.
- */
-class IsInteger extends IsTypeOf
-{
-
- /**
- * Creates a new instance of IsInteger
- */
- public function __construct()
- {
- parent::__construct('integer');
- }
-
- /**
- * Is the value an integer?
- *
- * @factory intValue
- */
- public static function integerValue()
- {
- return new self;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsNumeric.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsNumeric.php
deleted file mode 100644
index bc744054..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsNumeric.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\Core\IsTypeOf;
-
-/**
- * Tests whether the value is numeric.
- */
-class IsNumeric extends IsTypeOf
-{
-
- public function __construct()
- {
- parent::__construct('number');
- }
-
- public function matches($item)
- {
- if ($this->isHexadecimal($item)) {
- return true;
- }
-
- return is_numeric($item);
- }
-
- /**
- * Return if the string passed is a valid hexadecimal number.
- * This check is necessary because PHP 7 doesn't recognize hexadecimal string as numeric anymore.
- *
- * @param mixed $item
- * @return boolean
- */
- private function isHexadecimal($item)
- {
- if (is_string($item) && preg_match('/^0x(.*)$/', $item, $matches)) {
- return ctype_xdigit($matches[1]);
- }
-
- return false;
- }
-
- /**
- * Is the value a numeric?
- *
- * @factory
- */
- public static function numericValue()
- {
- return new self;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php
deleted file mode 100644
index 65918fcf..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsObject.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\Core\IsTypeOf;
-
-/**
- * Tests whether the value is an object.
- */
-class IsObject extends IsTypeOf
-{
-
- /**
- * Creates a new instance of IsObject
- */
- public function __construct()
- {
- parent::__construct('object');
- }
-
- /**
- * Is the value an object?
- *
- * @factory anObject
- */
- public static function objectValue()
- {
- return new self;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsResource.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsResource.php
deleted file mode 100644
index 426cf77c..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsResource.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\Core\IsTypeOf;
-
-/**
- * Tests whether the value is a resource.
- */
-class IsResource extends IsTypeOf
-{
-
- /**
- * Creates a new instance of IsResource
- */
- public function __construct()
- {
- parent::__construct('resource');
- }
-
- /**
- * Is the value a resource?
- *
- * @factory
- */
- public static function resourceValue()
- {
- return new self;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsScalar.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsScalar.php
deleted file mode 100644
index 3f3b427f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsScalar.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\Core\IsTypeOf;
-
-/**
- * Tests whether the value is a scalar (boolean, integer, double, or string).
- */
-class IsScalar extends IsTypeOf
-{
-
- public function __construct()
- {
- parent::__construct('scalar');
- }
-
- public function matches($item)
- {
- return is_scalar($item);
- }
-
- /**
- * Is the value a scalar (boolean, integer, double, or string)?
- *
- * @factory
- */
- public static function scalarValue()
- {
- return new self;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsString.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsString.php
deleted file mode 100644
index d96d7db3..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsString.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-/*
- Copyright (c) 2010 hamcrest.org
- */
-use Hamcrest\Core\IsTypeOf;
-
-/**
- * Tests whether the value is a string.
- */
-class IsString extends IsTypeOf
-{
-
- /**
- * Creates a new instance of IsString
- */
- public function __construct()
- {
- parent::__construct('string');
- }
-
- /**
- * Is the value a string?
- *
- * @factory
- */
- public static function stringValue()
- {
- return new self;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeDiagnosingMatcher.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeDiagnosingMatcher.php
deleted file mode 100644
index af934e8a..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeDiagnosingMatcher.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/**
- * Convenient base class for Matchers that require a value of a specific type.
- * This simply checks the type and then casts.
- */
-
-abstract class TypeSafeDiagnosingMatcher extends TypeSafeMatcher
-{
-
- final public function matchesSafely($item)
- {
- return $this->matchesSafelyWithDiagnosticDescription($item, new NullDescription());
- }
-
- final public function describeMismatchSafely($item, Description $mismatchDescription)
- {
- $this->matchesSafelyWithDiagnosticDescription($item, $mismatchDescription);
- }
-
- // -- Protected Methods
-
- /**
- * Subclasses should implement these. The item will already have been checked for
- * the specific type.
- */
- abstract protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription);
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php
deleted file mode 100644
index 56e299a9..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/TypeSafeMatcher.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/**
- * Convenient base class for Matchers that require a value of a specific type.
- * This simply checks the type.
- *
- * While it may seem a useless exercise to have this in PHP, objects cannot
- * be cast to certain data types such as numerics (or even strings if
- * __toString() has not be defined).
- */
-
-abstract class TypeSafeMatcher extends BaseMatcher
-{
-
- /* Types that PHP can compare against */
- const TYPE_ANY = 0;
- const TYPE_STRING = 1;
- const TYPE_NUMERIC = 2;
- const TYPE_ARRAY = 3;
- const TYPE_OBJECT = 4;
- const TYPE_RESOURCE = 5;
- const TYPE_BOOLEAN = 6;
-
- /**
- * The type that is required for a safe comparison
- *
- * @var int
- */
- private $_expectedType;
-
- /**
- * The subtype (e.g. class for objects) that is required
- *
- * @var string
- */
- private $_expectedSubtype;
-
- public function __construct($expectedType, $expectedSubtype = null)
- {
- $this->_expectedType = $expectedType;
- $this->_expectedSubtype = $expectedSubtype;
- }
-
- final public function matches($item)
- {
- return $this->_isSafeType($item) && $this->matchesSafely($item);
- }
-
- final public function describeMismatch($item, Description $mismatchDescription)
- {
- if (!$this->_isSafeType($item)) {
- parent::describeMismatch($item, $mismatchDescription);
- } else {
- $this->describeMismatchSafely($item, $mismatchDescription);
- }
- }
-
- // -- Protected Methods
-
- /**
- * The item will already have been checked for the specific type and subtype.
- */
- abstract protected function matchesSafely($item);
-
- /**
- * The item will already have been checked for the specific type and subtype.
- */
- abstract protected function describeMismatchSafely($item, Description $mismatchDescription);
-
- // -- Private Methods
-
- private function _isSafeType($value)
- {
- switch ($this->_expectedType) {
-
- case self::TYPE_ANY:
- return true;
-
- case self::TYPE_STRING:
- return is_string($value) || is_numeric($value);
-
- case self::TYPE_NUMERIC:
- return is_numeric($value) || is_string($value);
-
- case self::TYPE_ARRAY:
- return is_array($value);
-
- case self::TYPE_OBJECT:
- return is_object($value)
- && ($this->_expectedSubtype === null
- || $value instanceof $this->_expectedSubtype);
-
- case self::TYPE_RESOURCE:
- return is_resource($value)
- && ($this->_expectedSubtype === null
- || get_resource_type($value) == $this->_expectedSubtype);
-
- case self::TYPE_BOOLEAN:
- return true;
-
- default:
- return true;
-
- }
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php
deleted file mode 100644
index 169b0366..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Util.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/*
- Copyright (c) 2012 hamcrest.org
- */
-
-/**
- * Contains utility methods for handling Hamcrest matchers.
- *
- * @see Hamcrest\Matcher
- */
-class Util
-{
- public static function registerGlobalFunctions()
- {
- require_once __DIR__.'/../Hamcrest.php';
- }
-
- /**
- * Wraps the item with an IsEqual matcher if it isn't a matcher already.
- *
- * @param mixed $item matcher or any value
- * @return \Hamcrest\Matcher
- */
- public static function wrapValueWithIsEqual($item)
- {
- return ($item instanceof Matcher)
- ? $item
- : Core\IsEqual::equalTo($item)
- ;
- }
-
- /**
- * Throws an exception if any item in $matchers is not a Hamcrest\Matcher.
- *
- * @param array $matchers expected to contain only matchers
- * @throws \InvalidArgumentException if any item is not a matcher
- */
- public static function checkAllAreMatchers(array $matchers)
- {
- foreach ($matchers as $m) {
- if (!($m instanceof Matcher)) {
- throw new \InvalidArgumentException(
- 'Each argument or element must be a Hamcrest matcher'
- );
- }
- }
- }
-
- /**
- * Returns a copy of $items where each non-Matcher item is replaced by
- * a Hamcrest\Core\IsEqual matcher for the item. If the first and only item
- * is an array, it is used as the $items array to support the old style
- * of passing an array as the sole argument to a matcher.
- *
- * @param array $items contains items and matchers
- * @return array<Matchers> all items are
- */
- public static function createMatcherArray(array $items)
- {
- //Extract single array item
- if (count($items) == 1 && is_array($items[0])) {
- $items = $items[0];
- }
-
- //Replace non-matchers
- foreach ($items as &$item) {
- if (!($item instanceof Matcher)) {
- $item = Core\IsEqual::equalTo($item);
- }
- }
-
- return $items;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php b/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php
deleted file mode 100644
index d9764e45..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Xml/HasXPath.php
+++ /dev/null
@@ -1,195 +0,0 @@
-<?php
-namespace Hamcrest\Xml;
-
-/*
- Copyright (c) 2009 hamcrest.org
- */
-use Hamcrest\Core\IsEqual;
-use Hamcrest\Description;
-use Hamcrest\DiagnosingMatcher;
-use Hamcrest\Matcher;
-
-/**
- * Matches if XPath applied to XML/HTML/XHTML document either
- * evaluates to result matching the matcher or returns at least
- * one node, matching the matcher if present.
- */
-class HasXPath extends DiagnosingMatcher
-{
-
- /**
- * XPath to apply to the DOM.
- *
- * @var string
- */
- private $_xpath;
-
- /**
- * Optional matcher to apply to the XPath expression result
- * or the content of the returned nodes.
- *
- * @var Matcher
- */
- private $_matcher;
-
- public function __construct($xpath, Matcher $matcher = null)
- {
- $this->_xpath = $xpath;
- $this->_matcher = $matcher;
- }
-
- /**
- * Matches if the XPath matches against the DOM node and the matcher.
- *
- * @param string|\DOMNode $actual
- * @param Description $mismatchDescription
- * @return bool
- */
- protected function matchesWithDiagnosticDescription($actual, Description $mismatchDescription)
- {
- if (is_string($actual)) {
- $actual = $this->createDocument($actual);
- } elseif (!$actual instanceof \DOMNode) {
- $mismatchDescription->appendText('was ')->appendValue($actual);
-
- return false;
- }
- $result = $this->evaluate($actual);
- if ($result instanceof \DOMNodeList) {
- return $this->matchesContent($result, $mismatchDescription);
- } else {
- return $this->matchesExpression($result, $mismatchDescription);
- }
- }
-
- /**
- * Creates and returns a <code>DOMDocument</code> from the given
- * XML or HTML string.
- *
- * @param string $text
- * @return \DOMDocument built from <code>$text</code>
- * @throws \InvalidArgumentException if the document is not valid
- */
- protected function createDocument($text)
- {
- $document = new \DOMDocument();
- if (preg_match('/^\s*<\?xml/', $text)) {
- if (!@$document->loadXML($text)) {
- throw new \InvalidArgumentException('Must pass a valid XML document');
- }
- } else {
- if (!@$document->loadHTML($text)) {
- throw new \InvalidArgumentException('Must pass a valid HTML or XHTML document');
- }
- }
-
- return $document;
- }
-
- /**
- * Applies the configured XPath to the DOM node and returns either
- * the result if it's an expression or the node list if it's a query.
- *
- * @param \DOMNode $node context from which to issue query
- * @return mixed result of expression or DOMNodeList from query
- */
- protected function evaluate(\DOMNode $node)
- {
- if ($node instanceof \DOMDocument) {
- $xpathDocument = new \DOMXPath($node);
-
- return $xpathDocument->evaluate($this->_xpath);
- } else {
- $xpathDocument = new \DOMXPath($node->ownerDocument);
-
- return $xpathDocument->evaluate($this->_xpath, $node);
- }
- }
-
- /**
- * Matches if the list of nodes is not empty and the content of at least
- * one node matches the configured matcher, if supplied.
- *
- * @param \DOMNodeList $nodes selected by the XPath query
- * @param Description $mismatchDescription
- * @return bool
- */
- protected function matchesContent(\DOMNodeList $nodes, Description $mismatchDescription)
- {
- if ($nodes->length == 0) {
- $mismatchDescription->appendText('XPath returned no results');
- } elseif ($this->_matcher === null) {
- return true;
- } else {
- foreach ($nodes as $node) {
- if ($this->_matcher->matches($node->textContent)) {
- return true;
- }
- }
- $content = array();
- foreach ($nodes as $node) {
- $content[] = $node->textContent;
- }
- $mismatchDescription->appendText('XPath returned ')
- ->appendValue($content);
- }
-
- return false;
- }
-
- /**
- * Matches if the result of the XPath expression matches the configured
- * matcher or evaluates to <code>true</code> if there is none.
- *
- * @param mixed $result result of the XPath expression
- * @param Description $mismatchDescription
- * @return bool
- */
- protected function matchesExpression($result, Description $mismatchDescription)
- {
- if ($this->_matcher === null) {
- if ($result) {
- return true;
- }
- $mismatchDescription->appendText('XPath expression result was ')
- ->appendValue($result);
- } else {
- if ($this->_matcher->matches($result)) {
- return true;
- }
- $mismatchDescription->appendText('XPath expression result ');
- $this->_matcher->describeMismatch($result, $mismatchDescription);
- }
-
- return false;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('XML or HTML document with XPath "')
- ->appendText($this->_xpath)
- ->appendText('"');
- if ($this->_matcher !== null) {
- $description->appendText(' ');
- $this->_matcher->describeTo($description);
- }
- }
-
- /**
- * Wraps <code>$matcher</code> with {@link Hamcrest\Core\IsEqual)
- * if it's not a matcher and the XPath in <code>count()</code>
- * if it's an integer.
- *
- * @factory
- */
- public static function hasXPath($xpath, $matcher = null)
- {
- if ($matcher === null || $matcher instanceof Matcher) {
- return new self($xpath, $matcher);
- } elseif (is_int($matcher) && strpos($xpath, 'count(') !== 0) {
- $xpath = 'count(' . $xpath . ')';
- }
-
- return new self($xpath, IsEqual::equalTo($matcher));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php
deleted file mode 100644
index 6c52c0e5..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/AbstractMatcherTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-namespace Hamcrest;
-
-class UnknownType {
-}
-
-abstract class AbstractMatcherTest extends \PHPUnit_Framework_TestCase
-{
-
- const ARGUMENT_IGNORED = "ignored";
- const ANY_NON_NULL_ARGUMENT = "notnull";
-
- abstract protected function createMatcher();
-
- public function assertMatches(\Hamcrest\Matcher $matcher, $arg, $message)
- {
- $this->assertTrue($matcher->matches($arg), $message);
- }
-
- public function assertDoesNotMatch(\Hamcrest\Matcher $matcher, $arg, $message)
- {
- $this->assertFalse($matcher->matches($arg), $message);
- }
-
- public function assertDescription($expected, \Hamcrest\Matcher $matcher)
- {
- $description = new \Hamcrest\StringDescription();
- $description->appendDescriptionOf($matcher);
- $this->assertEquals($expected, (string) $description, 'Expected description');
- }
-
- public function assertMismatchDescription($expected, \Hamcrest\Matcher $matcher, $arg)
- {
- $description = new \Hamcrest\StringDescription();
- $this->assertFalse(
- $matcher->matches($arg),
- 'Precondtion: Matcher should not match item'
- );
- $matcher->describeMismatch($arg, $description);
- $this->assertEquals(
- $expected,
- (string) $description,
- 'Expected mismatch description'
- );
- }
-
- public function testIsNullSafe()
- {
- //Should not generate any notices
- $this->createMatcher()->matches(null);
- $this->createMatcher()->describeMismatch(
- null,
- new \Hamcrest\NullDescription()
- );
- }
-
- public function testCopesWithUnknownTypes()
- {
- //Should not generate any notices
- $this->createMatcher()->matches(new UnknownType());
- $this->createMatcher()->describeMismatch(
- new UnknownType(),
- new NullDescription()
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php
deleted file mode 100644
index 45d9f138..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInAnyOrderTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-use Hamcrest\AbstractMatcherTest;
-
-class IsArrayContainingInAnyOrderTest extends AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return IsArrayContainingInAnyOrder::arrayContainingInAnyOrder(array(1, 2));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('[<1>, <2>] in any order', containsInAnyOrder(array(1, 2)));
- }
-
- public function testMatchesItemsInAnyOrder()
- {
- $this->assertMatches(containsInAnyOrder(array(1, 2, 3)), array(1, 2, 3), 'in order');
- $this->assertMatches(containsInAnyOrder(array(1, 2, 3)), array(3, 2, 1), 'out of order');
- $this->assertMatches(containsInAnyOrder(array(1)), array(1), 'single');
- }
-
- public function testAppliesMatchersInAnyOrder()
- {
- $this->assertMatches(
- containsInAnyOrder(array(1, 2, 3)),
- array(1, 2, 3),
- 'in order'
- );
- $this->assertMatches(
- containsInAnyOrder(array(1, 2, 3)),
- array(3, 2, 1),
- 'out of order'
- );
- $this->assertMatches(
- containsInAnyOrder(array(1)),
- array(1),
- 'single'
- );
- }
-
- public function testMismatchesItemsInAnyOrder()
- {
- $matcher = containsInAnyOrder(array(1, 2, 3));
-
- $this->assertMismatchDescription('was null', $matcher, null);
- $this->assertMismatchDescription('No item matches: <1>, <2>, <3> in []', $matcher, array());
- $this->assertMismatchDescription('No item matches: <2>, <3> in [<1>]', $matcher, array(1));
- $this->assertMismatchDescription('Not matched: <4>', $matcher, array(4, 3, 2, 1));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php
deleted file mode 100644
index 1868343f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingInOrderTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-use Hamcrest\AbstractMatcherTest;
-
-class IsArrayContainingInOrderTest extends AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return IsArrayContainingInOrder::arrayContaining(array(1, 2));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('[<1>, <2>]', arrayContaining(array(1, 2)));
- }
-
- public function testMatchesItemsInOrder()
- {
- $this->assertMatches(arrayContaining(array(1, 2, 3)), array(1, 2, 3), 'in order');
- $this->assertMatches(arrayContaining(array(1)), array(1), 'single');
- }
-
- public function testAppliesMatchersInOrder()
- {
- $this->assertMatches(
- arrayContaining(array(1, 2, 3)),
- array(1, 2, 3),
- 'in order'
- );
- $this->assertMatches(arrayContaining(array(1)), array(1), 'single');
- }
-
- public function testMismatchesItemsInAnyOrder()
- {
- $matcher = arrayContaining(array(1, 2, 3));
- $this->assertMismatchDescription('was null', $matcher, null);
- $this->assertMismatchDescription('No item matched: <1>', $matcher, array());
- $this->assertMismatchDescription('No item matched: <2>', $matcher, array(1));
- $this->assertMismatchDescription('item with key 0: was <4>', $matcher, array(4, 3, 2, 1));
- $this->assertMismatchDescription('item with key 2: was <4>', $matcher, array(1, 2, 4));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyTest.php
deleted file mode 100644
index 31770d8d..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-use Hamcrest\AbstractMatcherTest;
-
-class IsArrayContainingKeyTest extends AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return IsArrayContainingKey::hasKeyInArray('irrelevant');
- }
-
- public function testMatchesSingleElementArrayContainingKey()
- {
- $array = array('a'=>1);
-
- $this->assertMatches(hasKey('a'), $array, 'Matches single key');
- }
-
- public function testMatchesArrayContainingKey()
- {
- $array = array('a'=>1, 'b'=>2, 'c'=>3);
-
- $this->assertMatches(hasKey('a'), $array, 'Matches a');
- $this->assertMatches(hasKey('c'), $array, 'Matches c');
- }
-
- public function testMatchesArrayContainingKeyWithIntegerKeys()
- {
- $array = array(1=>'A', 2=>'B');
-
- assertThat($array, hasKey(1));
- }
-
- public function testMatchesArrayContainingKeyWithNumberKeys()
- {
- $array = array(1=>'A', 2=>'B');
-
- assertThat($array, hasKey(1));
-
- // very ugly version!
- assertThat($array, IsArrayContainingKey::hasKeyInArray(2));
- }
-
- public function testHasReadableDescription()
- {
- $this->assertDescription('array with key "a"', hasKey('a'));
- }
-
- public function testDoesNotMatchEmptyArray()
- {
- $this->assertMismatchDescription('array was []', hasKey('Foo'), array());
- }
-
- public function testDoesNotMatchArrayMissingKey()
- {
- $array = array('a'=>1, 'b'=>2, 'c'=>3);
-
- $this->assertMismatchDescription('array was ["a" => <1>, "b" => <2>, "c" => <3>]', hasKey('d'), $array);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php
deleted file mode 100644
index a415f9f7..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingKeyValuePairTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-use Hamcrest\AbstractMatcherTest;
-
-class IsArrayContainingKeyValuePairTest extends AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return IsArrayContainingKeyValuePair::hasKeyValuePair('irrelevant', 'irrelevant');
- }
-
- public function testMatchesArrayContainingMatchingKeyAndValue()
- {
- $array = array('a'=>1, 'b'=>2);
-
- $this->assertMatches(hasKeyValuePair(equalTo('a'), equalTo(1)), $array, 'matcherA');
- $this->assertMatches(hasKeyValuePair(equalTo('b'), equalTo(2)), $array, 'matcherB');
- $this->assertMismatchDescription(
- 'array was ["a" => <1>, "b" => <2>]',
- hasKeyValuePair(equalTo('c'), equalTo(3)),
- $array
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertMismatchDescription('was null', hasKeyValuePair(anything(), anything()), null);
- }
-
- public function testHasReadableDescription()
- {
- $this->assertDescription('array containing ["a" => <2>]', hasKeyValuePair(equalTo('a'), equalTo(2)));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingTest.php
deleted file mode 100644
index 8d5bd810..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayContainingTest.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-use Hamcrest\AbstractMatcherTest;
-
-class IsArrayContainingTest extends AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return IsArrayContaining::hasItemInArray('irrelevant');
- }
-
- public function testMatchesAnArrayThatContainsAnElementMatchingTheGivenMatcher()
- {
- $this->assertMatches(
- hasItemInArray('a'),
- array('a', 'b', 'c'),
- "should matches array that contains 'a'"
- );
- }
-
- public function testDoesNotMatchAnArrayThatDoesntContainAnElementMatchingTheGivenMatcher()
- {
- $this->assertDoesNotMatch(
- hasItemInArray('a'),
- array('b', 'c'),
- "should not matches array that doesn't contain 'a'"
- );
- $this->assertDoesNotMatch(
- hasItemInArray('a'),
- array(),
- 'should not match empty array'
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- hasItemInArray('a'),
- null,
- 'should not match null'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('an array containing "a"', hasItemInArray('a'));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayTest.php
deleted file mode 100644
index e4db53e7..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayTest.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-use Hamcrest\AbstractMatcherTest;
-
-class IsArrayTest extends AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return IsArray::anArray(array(equalTo('irrelevant')));
- }
-
- public function testMatchesAnArrayThatMatchesAllTheElementMatchers()
- {
- $this->assertMatches(
- anArray(array(equalTo('a'), equalTo('b'), equalTo('c'))),
- array('a', 'b', 'c'),
- 'should match array with matching elements'
- );
- }
-
- public function testDoesNotMatchAnArrayWhenElementsDoNotMatch()
- {
- $this->assertDoesNotMatch(
- anArray(array(equalTo('a'), equalTo('b'))),
- array('b', 'c'),
- 'should not match array with different elements'
- );
- }
-
- public function testDoesNotMatchAnArrayOfDifferentSize()
- {
- $this->assertDoesNotMatch(
- anArray(array(equalTo('a'), equalTo('b'))),
- array('a', 'b', 'c'),
- 'should not match larger array'
- );
- $this->assertDoesNotMatch(
- anArray(array(equalTo('a'), equalTo('b'))),
- array('a'),
- 'should not match smaller array'
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- anArray(array(equalTo('a'))),
- null,
- 'should not match null'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- '["a", "b"]',
- anArray(array(equalTo('a'), equalTo('b')))
- );
- }
-
- public function testHasAReadableMismatchDescriptionWhenKeysDontMatch()
- {
- $this->assertMismatchDescription(
- 'array keys were [<1>, <2>]',
- anArray(array(equalTo('a'), equalTo('b'))),
- array(1 => 'a', 2 => 'b')
- );
- }
-
- public function testSupportsMatchesAssociativeArrays()
- {
- $this->assertMatches(
- anArray(array('x'=>equalTo('a'), 'y'=>equalTo('b'), 'z'=>equalTo('c'))),
- array('x'=>'a', 'y'=>'b', 'z'=>'c'),
- 'should match associative array with matching elements'
- );
- }
-
- public function testDoesNotMatchAnAssociativeArrayWhenKeysDoNotMatch()
- {
- $this->assertDoesNotMatch(
- anArray(array('x'=>equalTo('a'), 'y'=>equalTo('b'))),
- array('x'=>'b', 'z'=>'c'),
- 'should not match array with different keys'
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayWithSizeTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayWithSizeTest.php
deleted file mode 100644
index 8413c896..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Array/IsArrayWithSizeTest.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-namespace Hamcrest\Arrays;
-
-use Hamcrest\AbstractMatcherTest;
-
-class IsArrayWithSizeTest extends AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return IsArrayWithSize::arrayWithSize(equalTo(2));
- }
-
- public function testMatchesWhenSizeIsCorrect()
- {
- $this->assertMatches(arrayWithSize(equalTo(3)), array(1, 2, 3), 'correct size');
- $this->assertDoesNotMatch(arrayWithSize(equalTo(2)), array(1, 2, 3), 'incorrect size');
- }
-
- public function testProvidesConvenientShortcutForArrayWithSizeEqualTo()
- {
- $this->assertMatches(arrayWithSize(3), array(1, 2, 3), 'correct size');
- $this->assertDoesNotMatch(arrayWithSize(2), array(1, 2, 3), 'incorrect size');
- }
-
- public function testEmptyArray()
- {
- $this->assertMatches(emptyArray(), array(), 'correct size');
- $this->assertDoesNotMatch(emptyArray(), array(1), 'incorrect size');
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('an array with size <3>', arrayWithSize(equalTo(3)));
- $this->assertDescription('an empty array', emptyArray());
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php
deleted file mode 100644
index 833e2c3e..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/BaseMatcherTest.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-namespace Hamcrest;
-
-/* Test-specific subclass only */
-class BaseMatcherTest extends \Hamcrest\BaseMatcher
-{
-
- public function matches($item)
- {
- throw new \RuntimeException();
- }
-
- public function describeTo(\Hamcrest\Description $description)
- {
- $description->appendText('SOME DESCRIPTION');
- }
-
- public function testDescribesItselfWithToStringMethod()
- {
- $someMatcher = new \Hamcrest\SomeMatcher();
- $this->assertEquals('SOME DESCRIPTION', (string) $someMatcher);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsEmptyTraversableTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsEmptyTraversableTest.php
deleted file mode 100644
index 2f15fb49..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsEmptyTraversableTest.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-namespace Hamcrest\Collection;
-
-use Hamcrest\AbstractMatcherTest;
-
-class IsEmptyTraversableTest extends AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return IsEmptyTraversable::emptyTraversable();
- }
-
- public function testEmptyMatcherMatchesWhenEmpty()
- {
- $this->assertMatches(
- emptyTraversable(),
- new \ArrayObject(array()),
- 'an empty traversable'
- );
- }
-
- public function testEmptyMatcherDoesNotMatchWhenNotEmpty()
- {
- $this->assertDoesNotMatch(
- emptyTraversable(),
- new \ArrayObject(array(1, 2, 3)),
- 'a non-empty traversable'
- );
- }
-
- public function testEmptyMatcherDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- emptyTraversable(),
- null,
- 'should not match null'
- );
- }
-
- public function testEmptyMatcherHasAReadableDescription()
- {
- $this->assertDescription('an empty traversable', emptyTraversable());
- }
-
- public function testNonEmptyDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- nonEmptyTraversable(),
- null,
- 'should not match null'
- );
- }
-
- public function testNonEmptyDoesNotMatchWhenEmpty()
- {
- $this->assertDoesNotMatch(
- nonEmptyTraversable(),
- new \ArrayObject(array()),
- 'an empty traversable'
- );
- }
-
- public function testNonEmptyMatchesWhenNotEmpty()
- {
- $this->assertMatches(
- nonEmptyTraversable(),
- new \ArrayObject(array(1, 2, 3)),
- 'a non-empty traversable'
- );
- }
-
- public function testNonEmptyNonEmptyMatcherHasAReadableDescription()
- {
- $this->assertDescription('a non-empty traversable', nonEmptyTraversable());
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php
deleted file mode 100644
index c1c67a7a..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Collection/IsTraversableWithSizeTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-namespace Hamcrest\Collection;
-
-class IsTraversableWithSizeTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Collection\IsTraversableWithSize::traversableWithSize(
- equalTo(2)
- );
- }
-
- public function testMatchesWhenSizeIsCorrect()
- {
- $this->assertMatches(
- traversableWithSize(equalTo(3)),
- new \ArrayObject(array(1, 2, 3)),
- 'correct size'
- );
- }
-
- public function testDoesNotMatchWhenSizeIsIncorrect()
- {
- $this->assertDoesNotMatch(
- traversableWithSize(equalTo(2)),
- new \ArrayObject(array(1, 2, 3)),
- 'incorrect size'
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- traversableWithSize(3),
- null,
- 'should not match null'
- );
- }
-
- public function testProvidesConvenientShortcutForTraversableWithSizeEqualTo()
- {
- $this->assertMatches(
- traversableWithSize(3),
- new \ArrayObject(array(1, 2, 3)),
- 'correct size'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'a traversable with size <3>',
- traversableWithSize(equalTo(3))
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AllOfTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AllOfTest.php
deleted file mode 100644
index 86b8c277..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AllOfTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class AllOfTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\AllOf::allOf('irrelevant');
- }
-
- public function testEvaluatesToTheLogicalConjunctionOfTwoOtherMatchers()
- {
- assertThat('good', allOf('good', 'good'));
-
- assertThat('good', not(allOf('bad', 'good')));
- assertThat('good', not(allOf('good', 'bad')));
- assertThat('good', not(allOf('bad', 'bad')));
- }
-
- public function testEvaluatesToTheLogicalConjunctionOfManyOtherMatchers()
- {
- assertThat('good', allOf('good', 'good', 'good', 'good', 'good'));
- assertThat('good', not(allOf('good', endsWith('d'), 'bad', 'good', 'good')));
- }
-
- public function testSupportsMixedTypes()
- {
- $all = allOf(
- equalTo(new \Hamcrest\Core\SampleBaseClass('good')),
- equalTo(new \Hamcrest\Core\SampleBaseClass('good')),
- equalTo(new \Hamcrest\Core\SampleSubClass('ugly'))
- );
-
- $negated = not($all);
-
- assertThat(new \Hamcrest\Core\SampleSubClass('good'), $negated);
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- '("good" and "bad" and "ugly")',
- allOf('good', 'bad', 'ugly')
- );
- }
-
- public function testMismatchDescriptionDescribesFirstFailingMatch()
- {
- $this->assertMismatchDescription(
- '"good" was "bad"',
- allOf('bad', 'good'),
- 'bad'
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AnyOfTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AnyOfTest.php
deleted file mode 100644
index 3d62b935..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/AnyOfTest.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class AnyOfTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\AnyOf::anyOf('irrelevant');
- }
-
- public function testAnyOfEvaluatesToTheLogicalDisjunctionOfTwoOtherMatchers()
- {
- assertThat('good', anyOf('bad', 'good'));
- assertThat('good', anyOf('good', 'good'));
- assertThat('good', anyOf('good', 'bad'));
-
- assertThat('good', not(anyOf('bad', startsWith('b'))));
- }
-
- public function testAnyOfEvaluatesToTheLogicalDisjunctionOfManyOtherMatchers()
- {
- assertThat('good', anyOf('bad', 'good', 'bad', 'bad', 'bad'));
- assertThat('good', not(anyOf('bad', 'bad', 'bad', 'bad', 'bad')));
- }
-
- public function testAnyOfSupportsMixedTypes()
- {
- $combined = anyOf(
- equalTo(new \Hamcrest\Core\SampleBaseClass('good')),
- equalTo(new \Hamcrest\Core\SampleBaseClass('ugly')),
- equalTo(new \Hamcrest\Core\SampleSubClass('good'))
- );
-
- assertThat(new \Hamcrest\Core\SampleSubClass('good'), $combined);
- }
-
- public function testAnyOfHasAReadableDescription()
- {
- $this->assertDescription(
- '("good" or "bad" or "ugly")',
- anyOf('good', 'bad', 'ugly')
- );
- }
-
- public function testNoneOfEvaluatesToTheLogicalDisjunctionOfTwoOtherMatchers()
- {
- assertThat('good', not(noneOf('bad', 'good')));
- assertThat('good', not(noneOf('good', 'good')));
- assertThat('good', not(noneOf('good', 'bad')));
-
- assertThat('good', noneOf('bad', startsWith('b')));
- }
-
- public function testNoneOfEvaluatesToTheLogicalDisjunctionOfManyOtherMatchers()
- {
- assertThat('good', not(noneOf('bad', 'good', 'bad', 'bad', 'bad')));
- assertThat('good', noneOf('bad', 'bad', 'bad', 'bad', 'bad'));
- }
-
- public function testNoneOfSupportsMixedTypes()
- {
- $combined = noneOf(
- equalTo(new \Hamcrest\Core\SampleBaseClass('good')),
- equalTo(new \Hamcrest\Core\SampleBaseClass('ugly')),
- equalTo(new \Hamcrest\Core\SampleSubClass('good'))
- );
-
- assertThat(new \Hamcrest\Core\SampleSubClass('bad'), $combined);
- }
-
- public function testNoneOfHasAReadableDescription()
- {
- $this->assertDescription(
- 'not ("good" or "bad" or "ugly")',
- noneOf('good', 'bad', 'ugly')
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php
deleted file mode 100644
index 4c226149..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/CombinableMatcherTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class CombinableMatcherTest extends \Hamcrest\AbstractMatcherTest
-{
-
- private $_either_3_or_4;
- private $_not_3_and_not_4;
-
- public function setUp()
- {
- $this->_either_3_or_4 = \Hamcrest\Core\CombinableMatcher::either(equalTo(3))->orElse(equalTo(4));
- $this->_not_3_and_not_4 = \Hamcrest\Core\CombinableMatcher::both(not(equalTo(3)))->andAlso(not(equalTo(4)));
- }
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\CombinableMatcher::either(equalTo('irrelevant'))->orElse(equalTo('ignored'));
- }
-
- public function testBothAcceptsAndRejects()
- {
- assertThat(2, $this->_not_3_and_not_4);
- assertThat(3, not($this->_not_3_and_not_4));
- }
-
- public function testAcceptsAndRejectsThreeAnds()
- {
- $tripleAnd = $this->_not_3_and_not_4->andAlso(equalTo(2));
- assertThat(2, $tripleAnd);
- assertThat(3, not($tripleAnd));
- }
-
- public function testBothDescribesItself()
- {
- $this->assertEquals('(not <3> and not <4>)', (string) $this->_not_3_and_not_4);
- $this->assertMismatchDescription('was <3>', $this->_not_3_and_not_4, 3);
- }
-
- public function testEitherAcceptsAndRejects()
- {
- assertThat(3, $this->_either_3_or_4);
- assertThat(6, not($this->_either_3_or_4));
- }
-
- public function testAcceptsAndRejectsThreeOrs()
- {
- $orTriple = $this->_either_3_or_4->orElse(greaterThan(10));
-
- assertThat(11, $orTriple);
- assertThat(9, not($orTriple));
- }
-
- public function testEitherDescribesItself()
- {
- $this->assertEquals('(<3> or <4>)', (string) $this->_either_3_or_4);
- $this->assertMismatchDescription('was <6>', $this->_either_3_or_4, 6);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/DescribedAsTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/DescribedAsTest.php
deleted file mode 100644
index 673ab41e..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/DescribedAsTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class DescribedAsTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\DescribedAs::describedAs('irrelevant', anything());
- }
-
- public function testOverridesDescriptionOfOtherMatcherWithThatPassedToConstructor()
- {
- $m1 = describedAs('m1 description', anything());
- $m2 = describedAs('m2 description', not(anything()));
-
- $this->assertDescription('m1 description', $m1);
- $this->assertDescription('m2 description', $m2);
- }
-
- public function testAppendsValuesToDescription()
- {
- $m = describedAs('value 1 = %0, value 2 = %1', anything(), 33, 97);
-
- $this->assertDescription('value 1 = <33>, value 2 = <97>', $m);
- }
-
- public function testDelegatesMatchingToAnotherMatcher()
- {
- $m1 = describedAs('irrelevant', anything());
- $m2 = describedAs('irrelevant', not(anything()));
-
- $this->assertTrue($m1->matches(new \stdClass()));
- $this->assertFalse($m2->matches('hi'));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/EveryTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/EveryTest.php
deleted file mode 100644
index 5eb153c5..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/EveryTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class EveryTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\Every::everyItem(anything());
- }
-
- public function testIsTrueWhenEveryValueMatches()
- {
- assertThat(array('AaA', 'BaB', 'CaC'), everyItem(containsString('a')));
- assertThat(array('AbA', 'BbB', 'CbC'), not(everyItem(containsString('a'))));
- }
-
- public function testIsAlwaysTrueForEmptyLists()
- {
- assertThat(array(), everyItem(containsString('a')));
- }
-
- public function testDescribesItself()
- {
- $each = everyItem(containsString('a'));
- $this->assertEquals('every item is a string containing "a"', (string) $each);
-
- $this->assertMismatchDescription('an item was "BbB"', $each, array('BbB'));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/HasToStringTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/HasToStringTest.php
deleted file mode 100644
index e2e136dc..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/HasToStringTest.php
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class PhpForm
-{
- public function __toString()
- {
- return 'php';
- }
-}
-
-class JavaForm
-{
- public function toString()
- {
- return 'java';
- }
-}
-
-class BothForms
-{
- public function __toString()
- {
- return 'php';
- }
-
- public function toString()
- {
- return 'java';
- }
-}
-
-class HasToStringTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\HasToString::hasToString('foo');
- }
-
- public function testMatchesWhenToStringMatches()
- {
- $this->assertMatches(
- hasToString(equalTo('php')),
- new \Hamcrest\Core\PhpForm(),
- 'correct __toString'
- );
- $this->assertMatches(
- hasToString(equalTo('java')),
- new \Hamcrest\Core\JavaForm(),
- 'correct toString'
- );
- }
-
- public function testPicksJavaOverPhpToString()
- {
- $this->assertMatches(
- hasToString(equalTo('java')),
- new \Hamcrest\Core\BothForms(),
- 'correct toString'
- );
- }
-
- public function testDoesNotMatchWhenToStringDoesNotMatch()
- {
- $this->assertDoesNotMatch(
- hasToString(equalTo('mismatch')),
- new \Hamcrest\Core\PhpForm(),
- 'incorrect __toString'
- );
- $this->assertDoesNotMatch(
- hasToString(equalTo('mismatch')),
- new \Hamcrest\Core\JavaForm(),
- 'incorrect toString'
- );
- $this->assertDoesNotMatch(
- hasToString(equalTo('mismatch')),
- new \Hamcrest\Core\BothForms(),
- 'incorrect __toString'
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- hasToString(equalTo('a')),
- null,
- 'should not match null'
- );
- }
-
- public function testProvidesConvenientShortcutForTraversableWithSizeEqualTo()
- {
- $this->assertMatches(
- hasToString(equalTo('php')),
- new \Hamcrest\Core\PhpForm(),
- 'correct __toString'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'an object with toString() "php"',
- hasToString(equalTo('php'))
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsAnythingTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsAnythingTest.php
deleted file mode 100644
index f68032e5..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsAnythingTest.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class IsAnythingTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsAnything::anything();
- }
-
- public function testAlwaysEvaluatesToTrue()
- {
- assertThat(null, anything());
- assertThat(new \stdClass(), anything());
- assertThat('hi', anything());
- }
-
- public function testHasUsefulDefaultDescription()
- {
- $this->assertDescription('ANYTHING', anything());
- }
-
- public function testCanOverrideDescription()
- {
- $description = 'description';
- $this->assertDescription($description, anything($description));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsCollectionContainingTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsCollectionContainingTest.php
deleted file mode 100644
index a3929b54..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsCollectionContainingTest.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class IsCollectionContainingTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsCollectionContaining::hasItem(equalTo('irrelevant'));
- }
-
- public function testMatchesACollectionThatContainsAnElementMatchingTheGivenMatcher()
- {
- $itemMatcher = hasItem(equalTo('a'));
-
- $this->assertMatches(
- $itemMatcher,
- array('a', 'b', 'c'),
- "should match list that contains 'a'"
- );
- }
-
- public function testDoesNotMatchCollectionThatDoesntContainAnElementMatchingTheGivenMatcher()
- {
- $matcher1 = hasItem(equalTo('a'));
- $this->assertDoesNotMatch(
- $matcher1,
- array('b', 'c'),
- "should not match list that doesn't contain 'a'"
- );
-
- $matcher2 = hasItem(equalTo('a'));
- $this->assertDoesNotMatch(
- $matcher2,
- array(),
- 'should not match the empty list'
- );
- }
-
- public function testDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(
- hasItem(equalTo('a')),
- null,
- 'should not match null'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a collection containing "a"', hasItem(equalTo('a')));
- }
-
- public function testMatchesAllItemsInCollection()
- {
- $matcher1 = hasItems(equalTo('a'), equalTo('b'), equalTo('c'));
- $this->assertMatches(
- $matcher1,
- array('a', 'b', 'c'),
- 'should match list containing all items'
- );
-
- $matcher2 = hasItems('a', 'b', 'c');
- $this->assertMatches(
- $matcher2,
- array('a', 'b', 'c'),
- 'should match list containing all items (without matchers)'
- );
-
- $matcher3 = hasItems(equalTo('a'), equalTo('b'), equalTo('c'));
- $this->assertMatches(
- $matcher3,
- array('c', 'b', 'a'),
- 'should match list containing all items in any order'
- );
-
- $matcher4 = hasItems(equalTo('a'), equalTo('b'), equalTo('c'));
- $this->assertMatches(
- $matcher4,
- array('e', 'c', 'b', 'a', 'd'),
- 'should match list containing all items plus others'
- );
-
- $matcher5 = hasItems(equalTo('a'), equalTo('b'), equalTo('c'));
- $this->assertDoesNotMatch(
- $matcher5,
- array('e', 'c', 'b', 'd'), // 'a' missing
- 'should not match list unless it contains all items'
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsEqualTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsEqualTest.php
deleted file mode 100644
index 73e3ff07..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsEqualTest.php
+++ /dev/null
@@ -1,102 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class DummyToStringClass
-{
- private $_arg;
-
- public function __construct($arg)
- {
- $this->_arg = $arg;
- }
-
- public function __toString()
- {
- return $this->_arg;
- }
-}
-
-class IsEqualTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsEqual::equalTo('irrelevant');
- }
-
- public function testComparesObjectsUsingEqualityOperator()
- {
- assertThat("hi", equalTo("hi"));
- assertThat("bye", not(equalTo("hi")));
-
- assertThat(1, equalTo(1));
- assertThat(1, not(equalTo(2)));
-
- assertThat("2", equalTo(2));
- }
-
- public function testCanCompareNullValues()
- {
- assertThat(null, equalTo(null));
-
- assertThat(null, not(equalTo('hi')));
- assertThat('hi', not(equalTo(null)));
- }
-
- public function testComparesTheElementsOfAnArray()
- {
- $s1 = array('a', 'b');
- $s2 = array('a', 'b');
- $s3 = array('c', 'd');
- $s4 = array('a', 'b', 'c', 'd');
-
- assertThat($s1, equalTo($s1));
- assertThat($s2, equalTo($s1));
- assertThat($s3, not(equalTo($s1)));
- assertThat($s4, not(equalTo($s1)));
- }
-
- public function testComparesTheElementsOfAnArrayOfPrimitiveTypes()
- {
- $i1 = array(1, 2);
- $i2 = array(1, 2);
- $i3 = array(3, 4);
- $i4 = array(1, 2, 3, 4);
-
- assertThat($i1, equalTo($i1));
- assertThat($i2, equalTo($i1));
- assertThat($i3, not(equalTo($i1)));
- assertThat($i4, not(equalTo($i1)));
- }
-
- public function testRecursivelyTestsElementsOfArrays()
- {
- $i1 = array(array(1, 2), array(3, 4));
- $i2 = array(array(1, 2), array(3, 4));
- $i3 = array(array(5, 6), array(7, 8));
- $i4 = array(array(1, 2, 3, 4), array(3, 4));
-
- assertThat($i1, equalTo($i1));
- assertThat($i2, equalTo($i1));
- assertThat($i3, not(equalTo($i1)));
- assertThat($i4, not(equalTo($i1)));
- }
-
- public function testIncludesTheResultOfCallingToStringOnItsArgumentInTheDescription()
- {
- $argumentDescription = 'ARGUMENT DESCRIPTION';
- $argument = new \Hamcrest\Core\DummyToStringClass($argumentDescription);
- $this->assertDescription('<' . $argumentDescription . '>', equalTo($argument));
- }
-
- public function testReturnsAnObviousDescriptionIfCreatedWithANestedMatcherByMistake()
- {
- $innerMatcher = equalTo('NestedMatcher');
- $this->assertDescription('<' . (string) $innerMatcher . '>', equalTo($innerMatcher));
- }
-
- public function testReturnsGoodDescriptionIfCreatedWithNullReference()
- {
- $this->assertDescription('null', equalTo(null));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsIdenticalTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsIdenticalTest.php
deleted file mode 100644
index 9cc27946..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsIdenticalTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class IsIdenticalTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsIdentical::identicalTo('irrelevant');
- }
-
- public function testEvaluatesToTrueIfArgumentIsReferenceToASpecifiedObject()
- {
- $o1 = new \stdClass();
- $o2 = new \stdClass();
-
- assertThat($o1, identicalTo($o1));
- assertThat($o2, not(identicalTo($o1)));
- }
-
- public function testReturnsReadableDescriptionFromToString()
- {
- $this->assertDescription('"ARG"', identicalTo('ARG'));
- }
-
- public function testReturnsReadableDescriptionFromToStringWhenInitialisedWithNull()
- {
- $this->assertDescription('null', identicalTo(null));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php
deleted file mode 100644
index 7a5f095a..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsInstanceOfTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class IsInstanceOfTest extends \Hamcrest\AbstractMatcherTest
-{
-
- private $_baseClassInstance;
- private $_subClassInstance;
-
- public function setUp()
- {
- $this->_baseClassInstance = new \Hamcrest\Core\SampleBaseClass('good');
- $this->_subClassInstance = new \Hamcrest\Core\SampleSubClass('good');
- }
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsInstanceOf::anInstanceOf('stdClass');
- }
-
- public function testEvaluatesToTrueIfArgumentIsInstanceOfASpecificClass()
- {
- assertThat($this->_baseClassInstance, anInstanceOf('Hamcrest\Core\SampleBaseClass'));
- assertThat($this->_subClassInstance, anInstanceOf('Hamcrest\Core\SampleSubClass'));
- assertThat(null, not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- assertThat(new \stdClass(), not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- }
-
- public function testEvaluatesToFalseIfArgumentIsNotAnObject()
- {
- assertThat(null, not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- assertThat(false, not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- assertThat(5, not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- assertThat('foo', not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- assertThat(array(1, 2, 3), not(anInstanceOf('Hamcrest\Core\SampleBaseClass')));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('an instance of stdClass', anInstanceOf('stdClass'));
- }
-
- public function testDecribesActualClassInMismatchMessage()
- {
- $this->assertMismatchDescription(
- '[Hamcrest\Core\SampleBaseClass] <good>',
- anInstanceOf('Hamcrest\Core\SampleSubClass'),
- $this->_baseClassInstance
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNotTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNotTest.php
deleted file mode 100644
index 09d4a652..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNotTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class IsNotTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsNot::not('something');
- }
-
- public function testEvaluatesToTheTheLogicalNegationOfAnotherMatcher()
- {
- $this->assertMatches(not(equalTo('A')), 'B', 'should match');
- $this->assertDoesNotMatch(not(equalTo('B')), 'B', 'should not match');
- }
-
- public function testProvidesConvenientShortcutForNotEqualTo()
- {
- $this->assertMatches(not('A'), 'B', 'should match');
- $this->assertMatches(not('B'), 'A', 'should match');
- $this->assertDoesNotMatch(not('A'), 'A', 'should not match');
- $this->assertDoesNotMatch(not('B'), 'B', 'should not match');
- }
-
- public function testUsesDescriptionOfNegatedMatcherWithPrefix()
- {
- $this->assertDescription('not a value greater than <2>', not(greaterThan(2)));
- $this->assertDescription('not "A"', not('A'));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNullTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNullTest.php
deleted file mode 100644
index bfa42554..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsNullTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class IsNullTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsNull::nullValue();
- }
-
- public function testEvaluatesToTrueIfArgumentIsNull()
- {
- assertThat(null, nullValue());
- assertThat(self::ANY_NON_NULL_ARGUMENT, not(nullValue()));
-
- assertThat(self::ANY_NON_NULL_ARGUMENT, notNullValue());
- assertThat(null, not(notNullValue()));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsSameTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsSameTest.php
deleted file mode 100644
index 910bb81f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsSameTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class IsSameTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsSame::sameInstance(new \stdClass());
- }
-
- public function testEvaluatesToTrueIfArgumentIsReferenceToASpecifiedObject()
- {
- $o1 = new \stdClass();
- $o2 = new \stdClass();
-
- assertThat($o1, sameInstance($o1));
- assertThat($o2, not(sameInstance($o1)));
- }
-
- public function testReturnsReadableDescriptionFromToString()
- {
- $this->assertDescription('sameInstance("ARG")', sameInstance('ARG'));
- }
-
- public function testReturnsReadableDescriptionFromToStringWhenInitialisedWithNull()
- {
- $this->assertDescription('sameInstance(null)', sameInstance(null));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTest.php
deleted file mode 100644
index bbd848b9..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class IsTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\Is::is('something');
- }
-
- public function testJustMatchesTheSameWayTheUnderylingMatcherDoes()
- {
- $this->assertMatches(is(equalTo(true)), true, 'should match');
- $this->assertMatches(is(equalTo(false)), false, 'should match');
- $this->assertDoesNotMatch(is(equalTo(true)), false, 'should not match');
- $this->assertDoesNotMatch(is(equalTo(false)), true, 'should not match');
- }
-
- public function testGeneratesIsPrefixInDescription()
- {
- $this->assertDescription('is <true>', is(equalTo(true)));
- }
-
- public function testProvidesConvenientShortcutForIsEqualTo()
- {
- $this->assertMatches(is('A'), 'A', 'should match');
- $this->assertMatches(is('B'), 'B', 'should match');
- $this->assertDoesNotMatch(is('A'), 'B', 'should not match');
- $this->assertDoesNotMatch(is('B'), 'A', 'should not match');
- $this->assertDescription('is "A"', is('A'));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTypeOfTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTypeOfTest.php
deleted file mode 100644
index 3f48dea7..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsTypeOfTest.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class IsTypeOfTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\IsTypeOf::typeOf('integer');
- }
-
- public function testEvaluatesToTrueIfArgumentMatchesType()
- {
- assertThat(array('5', 5), typeOf('array'));
- assertThat(false, typeOf('boolean'));
- assertThat(5, typeOf('integer'));
- assertThat(5.2, typeOf('double'));
- assertThat(null, typeOf('null'));
- assertThat(tmpfile(), typeOf('resource'));
- assertThat('a string', typeOf('string'));
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(false, not(typeOf('array')));
- assertThat(array('5', 5), not(typeOf('boolean')));
- assertThat(5.2, not(typeOf('integer')));
- assertThat(5, not(typeOf('double')));
- assertThat(false, not(typeOf('null')));
- assertThat('a string', not(typeOf('resource')));
- assertThat(tmpfile(), not(typeOf('string')));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a double', typeOf('double'));
- $this->assertDescription('an integer', typeOf('integer'));
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', typeOf('boolean'), null);
- $this->assertMismatchDescription('was an integer <5>', typeOf('float'), 5);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleBaseClass.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleBaseClass.php
deleted file mode 100644
index c953e7cd..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleBaseClass.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class SampleBaseClass
-{
-
- private $_arg;
-
- public function __construct($arg)
- {
- $this->_arg = $arg;
- }
-
- public function __toString()
- {
- return $this->_arg;
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleSubClass.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleSubClass.php
deleted file mode 100644
index 822f1b64..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SampleSubClass.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class SampleSubClass extends \Hamcrest\Core\SampleBaseClass
-{
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SetTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SetTest.php
deleted file mode 100644
index aa5e4e7b..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SetTest.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-namespace Hamcrest\Core;
-
-class SetTest extends \Hamcrest\AbstractMatcherTest
-{
-
- public static $_classProperty;
- public $_instanceProperty;
-
- protected function setUp()
- {
- self::$_classProperty = null;
- unset($this->_instanceProperty);
- }
-
- protected function createMatcher()
- {
- return \Hamcrest\Core\Set::set('property_name');
- }
-
- public function testEvaluatesToTrueIfArrayPropertyIsSet()
- {
- assertThat(array('foo' => 'bar'), set('foo'));
- }
-
- public function testNegatedEvaluatesToFalseIfArrayPropertyIsSet()
- {
- assertThat(array('foo' => 'bar'), not(notSet('foo')));
- }
-
- public function testEvaluatesToTrueIfClassPropertyIsSet()
- {
- self::$_classProperty = 'bar';
- assertThat('Hamcrest\Core\SetTest', set('_classProperty'));
- }
-
- public function testNegatedEvaluatesToFalseIfClassPropertyIsSet()
- {
- self::$_classProperty = 'bar';
- assertThat('Hamcrest\Core\SetTest', not(notSet('_classProperty')));
- }
-
- public function testEvaluatesToTrueIfObjectPropertyIsSet()
- {
- $this->_instanceProperty = 'bar';
- assertThat($this, set('_instanceProperty'));
- }
-
- public function testNegatedEvaluatesToFalseIfObjectPropertyIsSet()
- {
- $this->_instanceProperty = 'bar';
- assertThat($this, not(notSet('_instanceProperty')));
- }
-
- public function testEvaluatesToFalseIfArrayPropertyIsNotSet()
- {
- assertThat(array('foo' => 'bar'), not(set('baz')));
- }
-
- public function testNegatedEvaluatesToTrueIfArrayPropertyIsNotSet()
- {
- assertThat(array('foo' => 'bar'), notSet('baz'));
- }
-
- public function testEvaluatesToFalseIfClassPropertyIsNotSet()
- {
- assertThat('Hamcrest\Core\SetTest', not(set('_classProperty')));
- }
-
- public function testNegatedEvaluatesToTrueIfClassPropertyIsNotSet()
- {
- assertThat('Hamcrest\Core\SetTest', notSet('_classProperty'));
- }
-
- public function testEvaluatesToFalseIfObjectPropertyIsNotSet()
- {
- assertThat($this, not(set('_instanceProperty')));
- }
-
- public function testNegatedEvaluatesToTrueIfObjectPropertyIsNotSet()
- {
- assertThat($this, notSet('_instanceProperty'));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('set property foo', set('foo'));
- $this->assertDescription('unset property bar', notSet('bar'));
- }
-
- public function testDecribesPropertySettingInMismatchMessage()
- {
- $this->assertMismatchDescription(
- 'was not set',
- set('bar'),
- array('foo' => 'bar')
- );
- $this->assertMismatchDescription(
- 'was "bar"',
- notSet('foo'),
- array('foo' => 'bar')
- );
- self::$_classProperty = 'bar';
- $this->assertMismatchDescription(
- 'was "bar"',
- notSet('_classProperty'),
- 'Hamcrest\Core\SetTest'
- );
- $this->_instanceProperty = 'bar';
- $this->assertMismatchDescription(
- 'was "bar"',
- notSet('_instanceProperty'),
- $this
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php
deleted file mode 100644
index 7543294a..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/FeatureMatcherTest.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-namespace Hamcrest;
-
-class Thingy
-{
- private $_result;
- public function __construct($result)
- {
- $this->_result = $result;
- }
- public function getResult()
- {
- return $this->_result;
- }
-}
-
-/* Test-specific subclass only */
-class ResultMatcher extends \Hamcrest\FeatureMatcher
-{
- public function __construct()
- {
- parent::__construct(self::TYPE_ANY, null, equalTo('bar'), 'Thingy with result', 'result');
- }
- public function featureValueOf($actual)
- {
- if ($actual instanceof \Hamcrest\Thingy) {
- return $actual->getResult();
- }
- }
-}
-
-class FeatureMatcherTest extends \Hamcrest\AbstractMatcherTest
-{
-
- private $_resultMatcher;
-
- public function setUp()
- {
- $this->_resultMatcher = $this->_resultMatcher();
- }
-
- protected function createMatcher()
- {
- return $this->_resultMatcher();
- }
-
- public function testMatchesPartOfAnObject()
- {
- $this->assertMatches($this->_resultMatcher, new \Hamcrest\Thingy('bar'), 'feature');
- $this->assertDescription('Thingy with result "bar"', $this->_resultMatcher);
- }
-
- public function testMismatchesPartOfAnObject()
- {
- $this->assertMismatchDescription(
- 'result was "foo"',
- $this->_resultMatcher,
- new \Hamcrest\Thingy('foo')
- );
- }
-
- public function testDoesNotGenerateNoticesForNull()
- {
- $this->assertMismatchDescription('result was null', $this->_resultMatcher, null);
- }
-
- // -- Creation Methods
-
- private function _resultMatcher()
- {
- return new \Hamcrest\ResultMatcher();
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php
deleted file mode 100644
index 21837121..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/MatcherAssertTest.php
+++ /dev/null
@@ -1,190 +0,0 @@
-<?php
-namespace Hamcrest;
-
-class MatcherAssertTest extends \PhpUnit_Framework_TestCase
-{
-
- protected function setUp()
- {
- \Hamcrest\MatcherAssert::resetCount();
- }
-
- public function testResetCount()
- {
- \Hamcrest\MatcherAssert::assertThat(true);
- self::assertEquals(1, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- \Hamcrest\MatcherAssert::resetCount();
- self::assertEquals(0, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithTrueArgPasses()
- {
- \Hamcrest\MatcherAssert::assertThat(true);
- \Hamcrest\MatcherAssert::assertThat('non-empty');
- \Hamcrest\MatcherAssert::assertThat(1);
- \Hamcrest\MatcherAssert::assertThat(3.14159);
- \Hamcrest\MatcherAssert::assertThat(array(true));
- self::assertEquals(5, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithFalseArgFails()
- {
- try {
- \Hamcrest\MatcherAssert::assertThat(false);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat(null);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('');
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat(0);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat(0.0);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat(array());
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('', $ex->getMessage());
- }
- self::assertEquals(6, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithIdentifierAndTrueArgPasses()
- {
- \Hamcrest\MatcherAssert::assertThat('identifier', true);
- \Hamcrest\MatcherAssert::assertThat('identifier', 'non-empty');
- \Hamcrest\MatcherAssert::assertThat('identifier', 1);
- \Hamcrest\MatcherAssert::assertThat('identifier', 3.14159);
- \Hamcrest\MatcherAssert::assertThat('identifier', array(true));
- self::assertEquals(5, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithIdentifierAndFalseArgFails()
- {
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', false);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', null);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', '');
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', 0);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', 0.0);
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', array());
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals('identifier', $ex->getMessage());
- }
- self::assertEquals(6, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithActualValueAndMatcherArgsThatMatchPasses()
- {
- \Hamcrest\MatcherAssert::assertThat(true, is(true));
- self::assertEquals(1, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithActualValueAndMatcherArgsThatDontMatchFails()
- {
- $expected = 'expected';
- $actual = 'actual';
-
- $expectedMessage =
- 'Expected: "expected"' . PHP_EOL .
- ' but: was "actual"';
-
- try {
- \Hamcrest\MatcherAssert::assertThat($actual, equalTo($expected));
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals($expectedMessage, $ex->getMessage());
- self::assertEquals(1, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
- }
-
- public function testAssertThatWithIdentifierAndActualValueAndMatcherArgsThatMatchPasses()
- {
- \Hamcrest\MatcherAssert::assertThat('identifier', true, is(true));
- self::assertEquals(1, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
-
- public function testAssertThatWithIdentifierAndActualValueAndMatcherArgsThatDontMatchFails()
- {
- $expected = 'expected';
- $actual = 'actual';
-
- $expectedMessage =
- 'identifier' . PHP_EOL .
- 'Expected: "expected"' . PHP_EOL .
- ' but: was "actual"';
-
- try {
- \Hamcrest\MatcherAssert::assertThat('identifier', $actual, equalTo($expected));
- self::fail('expected assertion failure');
- } catch (\Hamcrest\AssertionError $ex) {
- self::assertEquals($expectedMessage, $ex->getMessage());
- self::assertEquals(1, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
- }
-
- public function testAssertThatWithNoArgsThrowsErrorAndDoesntIncrementCount()
- {
- try {
- \Hamcrest\MatcherAssert::assertThat();
- self::fail('expected invalid argument exception');
- } catch (\InvalidArgumentException $ex) {
- self::assertEquals(0, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
- }
-
- public function testAssertThatWithFourArgsThrowsErrorAndDoesntIncrementCount()
- {
- try {
- \Hamcrest\MatcherAssert::assertThat(1, 2, 3, 4);
- self::fail('expected invalid argument exception');
- } catch (\InvalidArgumentException $ex) {
- self::assertEquals(0, \Hamcrest\MatcherAssert::getCount(), 'assertion count');
- }
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/IsCloseToTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/IsCloseToTest.php
deleted file mode 100644
index 987d5526..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/IsCloseToTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-namespace Hamcrest\Number;
-
-class IsCloseToTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- $irrelevant = 0.1;
-
- return \Hamcrest\Number\IsCloseTo::closeTo($irrelevant, $irrelevant);
- }
-
- public function testEvaluatesToTrueIfArgumentIsEqualToADoubleValueWithinSomeError()
- {
- $p = closeTo(1.0, 0.5);
-
- $this->assertTrue($p->matches(1.0));
- $this->assertTrue($p->matches(0.5));
- $this->assertTrue($p->matches(1.5));
-
- $this->assertDoesNotMatch($p, 2.0, 'too large');
- $this->assertMismatchDescription('<2F> differed by <0.5F>', $p, 2.0);
- $this->assertDoesNotMatch($p, 0.0, 'number too small');
- $this->assertMismatchDescription('<0F> differed by <0.5F>', $p, 0.0);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/OrderingComparisonTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/OrderingComparisonTest.php
deleted file mode 100644
index a4c94d37..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Number/OrderingComparisonTest.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-namespace Hamcrest\Number;
-
-class OrderingComparisonTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Number\OrderingComparison::greaterThan(1);
- }
-
- public function testComparesValuesForGreaterThan()
- {
- assertThat(2, greaterThan(1));
- assertThat(0, not(greaterThan(1)));
- }
-
- public function testComparesValuesForLessThan()
- {
- assertThat(2, lessThan(3));
- assertThat(0, lessThan(1));
- }
-
- public function testComparesValuesForEquality()
- {
- assertThat(3, comparesEqualTo(3));
- assertThat('aa', comparesEqualTo('aa'));
- }
-
- public function testAllowsForInclusiveComparisons()
- {
- assertThat(1, lessThanOrEqualTo(1));
- assertThat(1, greaterThanOrEqualTo(1));
- }
-
- public function testSupportsDifferentTypesOfComparableValues()
- {
- assertThat(1.1, greaterThan(1.0));
- assertThat("cc", greaterThan("bb"));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/StringDescriptionTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/StringDescriptionTest.php
deleted file mode 100644
index e233a08c..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/StringDescriptionTest.php
+++ /dev/null
@@ -1,160 +0,0 @@
-<?php
-namespace Hamcrest;
-
-class SampleSelfDescriber implements \Hamcrest\SelfDescribing
-{
- private $_text;
-
- public function __construct($text)
- {
- $this->_text = $text;
- }
-
- public function describeTo(\Hamcrest\Description $description)
- {
- $description->appendText($this->_text);
- }
-}
-
-class StringDescriptionTest extends \PhpUnit_Framework_TestCase
-{
-
- private $_description;
-
- public function setUp()
- {
- $this->_description = new \Hamcrest\StringDescription();
- }
-
- public function testAppendTextAppendsTextInformation()
- {
- $this->_description->appendText('foo')->appendText('bar');
- $this->assertEquals('foobar', (string) $this->_description);
- }
-
- public function testAppendValueCanAppendTextTypes()
- {
- $this->_description->appendValue('foo');
- $this->assertEquals('"foo"', (string) $this->_description);
- }
-
- public function testSpecialCharactersAreEscapedForStringTypes()
- {
- $this->_description->appendValue("foo\\bar\"zip\r\n");
- $this->assertEquals('"foo\\bar\\"zip\r\n"', (string) $this->_description);
- }
-
- public function testIntegerValuesCanBeAppended()
- {
- $this->_description->appendValue(42);
- $this->assertEquals('<42>', (string) $this->_description);
- }
-
- public function testFloatValuesCanBeAppended()
- {
- $this->_description->appendValue(42.78);
- $this->assertEquals('<42.78F>', (string) $this->_description);
- }
-
- public function testNullValuesCanBeAppended()
- {
- $this->_description->appendValue(null);
- $this->assertEquals('null', (string) $this->_description);
- }
-
- public function testArraysCanBeAppended()
- {
- $this->_description->appendValue(array('foo', 42.78));
- $this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
- }
-
- public function testObjectsCanBeAppended()
- {
- $this->_description->appendValue(new \stdClass());
- $this->assertEquals('<stdClass>', (string) $this->_description);
- }
-
- public function testBooleanValuesCanBeAppended()
- {
- $this->_description->appendValue(false);
- $this->assertEquals('<false>', (string) $this->_description);
- }
-
- public function testListsOfvaluesCanBeAppended()
- {
- $this->_description->appendValue(array('foo', 42.78));
- $this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
- }
-
- public function testIterableOfvaluesCanBeAppended()
- {
- $items = new \ArrayObject(array('foo', 42.78));
- $this->_description->appendValue($items);
- $this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
- }
-
- public function testIteratorOfvaluesCanBeAppended()
- {
- $items = new \ArrayObject(array('foo', 42.78));
- $this->_description->appendValue($items->getIterator());
- $this->assertEquals('["foo", <42.78F>]', (string) $this->_description);
- }
-
- public function testListsOfvaluesCanBeAppendedManually()
- {
- $this->_description->appendValueList('@start@', '@sep@ ', '@end@', array('foo', 42.78));
- $this->assertEquals('@start@"foo"@sep@ <42.78F>@end@', (string) $this->_description);
- }
-
- public function testIterableOfvaluesCanBeAppendedManually()
- {
- $items = new \ArrayObject(array('foo', 42.78));
- $this->_description->appendValueList('@start@', '@sep@ ', '@end@', $items);
- $this->assertEquals('@start@"foo"@sep@ <42.78F>@end@', (string) $this->_description);
- }
-
- public function testIteratorOfvaluesCanBeAppendedManually()
- {
- $items = new \ArrayObject(array('foo', 42.78));
- $this->_description->appendValueList('@start@', '@sep@ ', '@end@', $items->getIterator());
- $this->assertEquals('@start@"foo"@sep@ <42.78F>@end@', (string) $this->_description);
- }
-
- public function testSelfDescribingObjectsCanBeAppended()
- {
- $this->_description
- ->appendDescriptionOf(new \Hamcrest\SampleSelfDescriber('foo'))
- ->appendDescriptionOf(new \Hamcrest\SampleSelfDescriber('bar'))
- ;
- $this->assertEquals('foobar', (string) $this->_description);
- }
-
- public function testSelfDescribingObjectsCanBeAppendedAsLists()
- {
- $this->_description->appendList('@start@', '@sep@ ', '@end@', array(
- new \Hamcrest\SampleSelfDescriber('foo'),
- new \Hamcrest\SampleSelfDescriber('bar')
- ));
- $this->assertEquals('@start@foo@sep@ bar@end@', (string) $this->_description);
- }
-
- public function testSelfDescribingObjectsCanBeAppendedAsIteratedLists()
- {
- $items = new \ArrayObject(array(
- new \Hamcrest\SampleSelfDescriber('foo'),
- new \Hamcrest\SampleSelfDescriber('bar')
- ));
- $this->_description->appendList('@start@', '@sep@ ', '@end@', $items);
- $this->assertEquals('@start@foo@sep@ bar@end@', (string) $this->_description);
- }
-
- public function testSelfDescribingObjectsCanBeAppendedAsIterators()
- {
- $items = new \ArrayObject(array(
- new \Hamcrest\SampleSelfDescriber('foo'),
- new \Hamcrest\SampleSelfDescriber('bar')
- ));
- $this->_description->appendList('@start@', '@sep@ ', '@end@', $items->getIterator());
- $this->assertEquals('@start@foo@sep@ bar@end@', (string) $this->_description);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEmptyStringTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEmptyStringTest.php
deleted file mode 100644
index 8d5c56be..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEmptyStringTest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-class IsEmptyStringTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Text\IsEmptyString::isEmptyOrNullString();
- }
-
- public function testEmptyDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(emptyString(), null, 'null');
- }
-
- public function testEmptyDoesNotMatchZero()
- {
- $this->assertDoesNotMatch(emptyString(), 0, 'zero');
- }
-
- public function testEmptyDoesNotMatchFalse()
- {
- $this->assertDoesNotMatch(emptyString(), false, 'false');
- }
-
- public function testEmptyDoesNotMatchEmptyArray()
- {
- $this->assertDoesNotMatch(emptyString(), array(), 'empty array');
- }
-
- public function testEmptyMatchesEmptyString()
- {
- $this->assertMatches(emptyString(), '', 'empty string');
- }
-
- public function testEmptyDoesNotMatchNonEmptyString()
- {
- $this->assertDoesNotMatch(emptyString(), 'foo', 'non-empty string');
- }
-
- public function testEmptyHasAReadableDescription()
- {
- $this->assertDescription('an empty string', emptyString());
- }
-
- public function testEmptyOrNullMatchesNull()
- {
- $this->assertMatches(nullOrEmptyString(), null, 'null');
- }
-
- public function testEmptyOrNullMatchesEmptyString()
- {
- $this->assertMatches(nullOrEmptyString(), '', 'empty string');
- }
-
- public function testEmptyOrNullDoesNotMatchNonEmptyString()
- {
- $this->assertDoesNotMatch(nullOrEmptyString(), 'foo', 'non-empty string');
- }
-
- public function testEmptyOrNullHasAReadableDescription()
- {
- $this->assertDescription('(null or an empty string)', nullOrEmptyString());
- }
-
- public function testNonEmptyDoesNotMatchNull()
- {
- $this->assertDoesNotMatch(nonEmptyString(), null, 'null');
- }
-
- public function testNonEmptyDoesNotMatchEmptyString()
- {
- $this->assertDoesNotMatch(nonEmptyString(), '', 'empty string');
- }
-
- public function testNonEmptyMatchesNonEmptyString()
- {
- $this->assertMatches(nonEmptyString(), 'foo', 'non-empty string');
- }
-
- public function testNonEmptyHasAReadableDescription()
- {
- $this->assertDescription('a non-empty string', nonEmptyString());
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php
deleted file mode 100644
index 0539fd5c..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringCaseTest.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-class IsEqualIgnoringCaseTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Text\IsEqualIgnoringCase::equalToIgnoringCase('irrelevant');
- }
-
- public function testIgnoresCaseOfCharsInString()
- {
- assertThat('HELLO', equalToIgnoringCase('heLLo'));
- assertThat('hello', equalToIgnoringCase('heLLo'));
- assertThat('HelLo', equalToIgnoringCase('heLLo'));
-
- assertThat('bye', not(equalToIgnoringCase('heLLo')));
- }
-
- public function testFailsIfAdditionalWhitespaceIsPresent()
- {
- assertThat('heLLo ', not(equalToIgnoringCase('heLLo')));
- assertThat(' heLLo', not(equalToIgnoringCase('heLLo')));
- assertThat('hello', not(equalToIgnoringCase(' heLLo')));
- }
-
- public function testFailsIfMatchingAgainstNull()
- {
- assertThat(null, not(equalToIgnoringCase('heLLo')));
- }
-
- public function testDescribesItselfAsCaseInsensitive()
- {
- $this->assertDescription(
- 'equalToIgnoringCase("heLLo")',
- equalToIgnoringCase('heLLo')
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php
deleted file mode 100644
index 6c2304f4..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/IsEqualIgnoringWhiteSpaceTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-class IsEqualIgnoringWhiteSpaceTest extends \Hamcrest\AbstractMatcherTest
-{
-
- private $_matcher;
-
- public function setUp()
- {
- $this->_matcher = \Hamcrest\Text\IsEqualIgnoringWhiteSpace::equalToIgnoringWhiteSpace(
- "Hello World how\n are we? "
- );
- }
-
- protected function createMatcher()
- {
- return $this->_matcher;
- }
-
- public function testPassesIfWordsAreSameButWhitespaceDiffers()
- {
- assertThat('Hello World how are we?', $this->_matcher);
- assertThat(" Hello \rWorld \t how are\nwe?", $this->_matcher);
- }
-
- public function testFailsIfTextOtherThanWhitespaceDiffers()
- {
- assertThat('Hello PLANET how are we?', not($this->_matcher));
- assertThat('Hello World how are we', not($this->_matcher));
- }
-
- public function testFailsIfWhitespaceIsAddedOrRemovedInMidWord()
- {
- assertThat('HelloWorld how are we?', not($this->_matcher));
- assertThat('Hello Wo rld how are we?', not($this->_matcher));
- }
-
- public function testFailsIfMatchingAgainstNull()
- {
- assertThat(null, not($this->_matcher));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- "equalToIgnoringWhiteSpace(\"Hello World how\\n are we? \")",
- $this->_matcher
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/MatchesPatternTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/MatchesPatternTest.php
deleted file mode 100644
index 4891598f..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/MatchesPatternTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-class MatchesPatternTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return matchesPattern('/o+b/');
- }
-
- public function testEvaluatesToTrueIfArgumentmatchesPattern()
- {
- assertThat('foobar', matchesPattern('/o+b/'));
- assertThat('foobar', matchesPattern('/^foo/'));
- assertThat('foobar', matchesPattern('/ba*r$/'));
- assertThat('foobar', matchesPattern('/^foobar$/'));
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchRegex()
- {
- assertThat('foobar', not(matchesPattern('/^foob$/')));
- assertThat('foobar', not(matchesPattern('/oobe/')));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a string matching "pattern"', matchesPattern('pattern'));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php
deleted file mode 100644
index 3b5b08e3..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsIgnoringCaseTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-class StringContainsIgnoringCaseTest extends \Hamcrest\AbstractMatcherTest
-{
-
- const EXCERPT = 'ExcErPt';
-
- private $_stringContains;
-
- public function setUp()
- {
- $this->_stringContains = \Hamcrest\Text\StringContainsIgnoringCase::containsStringIgnoringCase(
- strtolower(self::EXCERPT)
- );
- }
-
- protected function createMatcher()
- {
- return $this->_stringContains;
- }
-
- public function testEvaluatesToTrueIfArgumentContainsSpecifiedSubstring()
- {
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT . 'END'),
- 'should be true if excerpt at beginning'
- );
- $this->assertTrue(
- $this->_stringContains->matches('START' . self::EXCERPT),
- 'should be true if excerpt at end'
- );
- $this->assertTrue(
- $this->_stringContains->matches('START' . self::EXCERPT . 'END'),
- 'should be true if excerpt in middle'
- );
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT . self::EXCERPT),
- 'should be true if excerpt is repeated'
- );
-
- $this->assertFalse(
- $this->_stringContains->matches('Something else'),
- 'should not be true if excerpt is not in string'
- );
- $this->assertFalse(
- $this->_stringContains->matches(substr(self::EXCERPT, 1)),
- 'should not be true if part of excerpt is in string'
- );
- }
-
- public function testEvaluatesToTrueIfArgumentIsEqualToSubstring()
- {
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT),
- 'should be true if excerpt is entire string'
- );
- }
-
- public function testEvaluatesToTrueIfArgumentContainsExactSubstring()
- {
- $this->assertTrue(
- $this->_stringContains->matches(strtolower(self::EXCERPT)),
- 'should be false if excerpt is entire string ignoring case'
- );
- $this->assertTrue(
- $this->_stringContains->matches('START' . strtolower(self::EXCERPT) . 'END'),
- 'should be false if excerpt is contained in string ignoring case'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'a string containing in any case "'
- . strtolower(self::EXCERPT) . '"',
- $this->_stringContains
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php
deleted file mode 100644
index 0be70629..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsInOrderTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-class StringContainsInOrderTest extends \Hamcrest\AbstractMatcherTest
-{
-
- private $_m;
-
- public function setUp()
- {
- $this->_m = \Hamcrest\Text\StringContainsInOrder::stringContainsInOrder(array('a', 'b', 'c'));
- }
-
- protected function createMatcher()
- {
- return $this->_m;
- }
-
- public function testMatchesOnlyIfStringContainsGivenSubstringsInTheSameOrder()
- {
- $this->assertMatches($this->_m, 'abc', 'substrings in order');
- $this->assertMatches($this->_m, '1a2b3c4', 'substrings separated');
-
- $this->assertDoesNotMatch($this->_m, 'cab', 'substrings out of order');
- $this->assertDoesNotMatch($this->_m, 'xyz', 'no substrings in string');
- $this->assertDoesNotMatch($this->_m, 'ac', 'substring missing');
- $this->assertDoesNotMatch($this->_m, '', 'empty string');
- }
-
- public function testAcceptsVariableArguments()
- {
- $this->assertMatches(stringContainsInOrder('a', 'b', 'c'), 'abc', 'substrings as variable arguments');
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'a string containing "a", "b", "c" in order',
- $this->_m
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php
deleted file mode 100644
index 203fd918..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-class StringContainsTest extends \Hamcrest\AbstractMatcherTest
-{
-
- const EXCERPT = 'EXCERPT';
-
- private $_stringContains;
-
- public function setUp()
- {
- $this->_stringContains = \Hamcrest\Text\StringContains::containsString(self::EXCERPT);
- }
-
- protected function createMatcher()
- {
- return $this->_stringContains;
- }
-
- public function testEvaluatesToTrueIfArgumentContainsSubstring()
- {
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT . 'END'),
- 'should be true if excerpt at beginning'
- );
- $this->assertTrue(
- $this->_stringContains->matches('START' . self::EXCERPT),
- 'should be true if excerpt at end'
- );
- $this->assertTrue(
- $this->_stringContains->matches('START' . self::EXCERPT . 'END'),
- 'should be true if excerpt in middle'
- );
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT . self::EXCERPT),
- 'should be true if excerpt is repeated'
- );
-
- $this->assertFalse(
- $this->_stringContains->matches('Something else'),
- 'should not be true if excerpt is not in string'
- );
- $this->assertFalse(
- $this->_stringContains->matches(substr(self::EXCERPT, 1)),
- 'should not be true if part of excerpt is in string'
- );
- }
-
- public function testEvaluatesToTrueIfArgumentIsEqualToSubstring()
- {
- $this->assertTrue(
- $this->_stringContains->matches(self::EXCERPT),
- 'should be true if excerpt is entire string'
- );
- }
-
- public function testEvaluatesToFalseIfArgumentContainsSubstringIgnoringCase()
- {
- $this->assertFalse(
- $this->_stringContains->matches(strtolower(self::EXCERPT)),
- 'should be false if excerpt is entire string ignoring case'
- );
- $this->assertFalse(
- $this->_stringContains->matches('START' . strtolower(self::EXCERPT) . 'END'),
- 'should be false if excerpt is contained in string ignoring case'
- );
- }
-
- public function testIgnoringCaseReturnsCorrectMatcher()
- {
- $this->assertTrue(
- $this->_stringContains->ignoringCase()->matches('EXceRpT'),
- 'should be true if excerpt is entire string ignoring case'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'a string containing "'
- . self::EXCERPT . '"',
- $this->_stringContains
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php
deleted file mode 100644
index fffa3c9c..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringEndsWithTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-class StringEndsWithTest extends \Hamcrest\AbstractMatcherTest
-{
-
- const EXCERPT = 'EXCERPT';
-
- private $_stringEndsWith;
-
- public function setUp()
- {
- $this->_stringEndsWith = \Hamcrest\Text\StringEndsWith::endsWith(self::EXCERPT);
- }
-
- protected function createMatcher()
- {
- return $this->_stringEndsWith;
- }
-
- public function testEvaluatesToTrueIfArgumentContainsSpecifiedSubstring()
- {
- $this->assertFalse(
- $this->_stringEndsWith->matches(self::EXCERPT . 'END'),
- 'should be false if excerpt at beginning'
- );
- $this->assertTrue(
- $this->_stringEndsWith->matches('START' . self::EXCERPT),
- 'should be true if excerpt at end'
- );
- $this->assertFalse(
- $this->_stringEndsWith->matches('START' . self::EXCERPT . 'END'),
- 'should be false if excerpt in middle'
- );
- $this->assertTrue(
- $this->_stringEndsWith->matches(self::EXCERPT . self::EXCERPT),
- 'should be true if excerpt is at end and repeated'
- );
-
- $this->assertFalse(
- $this->_stringEndsWith->matches('Something else'),
- 'should be false if excerpt is not in string'
- );
- $this->assertFalse(
- $this->_stringEndsWith->matches(substr(self::EXCERPT, 0, strlen(self::EXCERPT) - 2)),
- 'should be false if part of excerpt is at end of string'
- );
- }
-
- public function testEvaluatesToTrueIfArgumentIsEqualToSubstring()
- {
- $this->assertTrue(
- $this->_stringEndsWith->matches(self::EXCERPT),
- 'should be true if excerpt is entire string'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a string ending with "EXCERPT"', $this->_stringEndsWith);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php
deleted file mode 100644
index fc3761bd..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringStartsWithTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-namespace Hamcrest\Text;
-
-class StringStartsWithTest extends \Hamcrest\AbstractMatcherTest
-{
-
- const EXCERPT = 'EXCERPT';
-
- private $_stringStartsWith;
-
- public function setUp()
- {
- $this->_stringStartsWith = \Hamcrest\Text\StringStartsWith::startsWith(self::EXCERPT);
- }
-
- protected function createMatcher()
- {
- return $this->_stringStartsWith;
- }
-
- public function testEvaluatesToTrueIfArgumentContainsSpecifiedSubstring()
- {
- $this->assertTrue(
- $this->_stringStartsWith->matches(self::EXCERPT . 'END'),
- 'should be true if excerpt at beginning'
- );
- $this->assertFalse(
- $this->_stringStartsWith->matches('START' . self::EXCERPT),
- 'should be false if excerpt at end'
- );
- $this->assertFalse(
- $this->_stringStartsWith->matches('START' . self::EXCERPT . 'END'),
- 'should be false if excerpt in middle'
- );
- $this->assertTrue(
- $this->_stringStartsWith->matches(self::EXCERPT . self::EXCERPT),
- 'should be true if excerpt is at beginning and repeated'
- );
-
- $this->assertFalse(
- $this->_stringStartsWith->matches('Something else'),
- 'should be false if excerpt is not in string'
- );
- $this->assertFalse(
- $this->_stringStartsWith->matches(substr(self::EXCERPT, 1)),
- 'should be false if part of excerpt is at start of string'
- );
- }
-
- public function testEvaluatesToTrueIfArgumentIsEqualToSubstring()
- {
- $this->assertTrue(
- $this->_stringStartsWith->matches(self::EXCERPT),
- 'should be true if excerpt is entire string'
- );
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a string starting with "EXCERPT"', $this->_stringStartsWith);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsArrayTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsArrayTest.php
deleted file mode 100644
index d13c24d2..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsArrayTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-class IsArrayTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Type\IsArray::arrayValue();
- }
-
- public function testEvaluatesToTrueIfArgumentMatchesType()
- {
- assertThat(array('5', 5), arrayValue());
- assertThat(array(), arrayValue());
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(false, not(arrayValue()));
- assertThat(5, not(arrayValue()));
- assertThat('foo', not(arrayValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('an array', arrayValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', arrayValue(), null);
- $this->assertMismatchDescription('was a string "foo"', arrayValue(), 'foo');
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsBooleanTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsBooleanTest.php
deleted file mode 100644
index 24309fc0..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsBooleanTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-class IsBooleanTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Type\IsBoolean::booleanValue();
- }
-
- public function testEvaluatesToTrueIfArgumentMatchesType()
- {
- assertThat(false, booleanValue());
- assertThat(true, booleanValue());
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(array(), not(booleanValue()));
- assertThat(5, not(booleanValue()));
- assertThat('foo', not(booleanValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a boolean', booleanValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', booleanValue(), null);
- $this->assertMismatchDescription('was a string "foo"', booleanValue(), 'foo');
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsCallableTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsCallableTest.php
deleted file mode 100644
index 5098e21b..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsCallableTest.php
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-class IsCallableTest extends \Hamcrest\AbstractMatcherTest
-{
-
- public static function callableFunction()
- {
- }
-
- public function __invoke()
- {
- }
-
- protected function createMatcher()
- {
- return \Hamcrest\Type\IsCallable::callableValue();
- }
-
- public function testEvaluatesToTrueIfArgumentIsFunctionName()
- {
- assertThat('preg_match', callableValue());
- }
-
- public function testEvaluatesToTrueIfArgumentIsStaticMethodCallback()
- {
- assertThat(
- array('Hamcrest\Type\IsCallableTest', 'callableFunction'),
- callableValue()
- );
- }
-
- public function testEvaluatesToTrueIfArgumentIsInstanceMethodCallback()
- {
- assertThat(
- array($this, 'testEvaluatesToTrueIfArgumentIsInstanceMethodCallback'),
- callableValue()
- );
- }
-
- public function testEvaluatesToTrueIfArgumentIsClosure()
- {
- if (!version_compare(PHP_VERSION, '5.3', '>=')) {
- $this->markTestSkipped('Closures require php 5.3');
- }
- eval('assertThat(function () {}, callableValue());');
- }
-
- public function testEvaluatesToTrueIfArgumentImplementsInvoke()
- {
- if (!version_compare(PHP_VERSION, '5.3', '>=')) {
- $this->markTestSkipped('Magic method __invoke() requires php 5.3');
- }
- assertThat($this, callableValue());
- }
-
- public function testEvaluatesToFalseIfArgumentIsInvalidFunctionName()
- {
- if (function_exists('not_a_Hamcrest_function')) {
- $this->markTestSkipped('Function "not_a_Hamcrest_function" must not exist');
- }
-
- assertThat('not_a_Hamcrest_function', not(callableValue()));
- }
-
- public function testEvaluatesToFalseIfArgumentIsInvalidStaticMethodCallback()
- {
- assertThat(
- array('Hamcrest\Type\IsCallableTest', 'noMethod'),
- not(callableValue())
- );
- }
-
- public function testEvaluatesToFalseIfArgumentIsInvalidInstanceMethodCallback()
- {
- assertThat(array($this, 'noMethod'), not(callableValue()));
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntImplementInvoke()
- {
- assertThat(new \stdClass(), not(callableValue()));
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(false, not(callableValue()));
- assertThat(5.2, not(callableValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a callable', callableValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription(
- 'was a string "invalid-function"',
- callableValue(),
- 'invalid-function'
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsDoubleTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsDoubleTest.php
deleted file mode 100644
index 85c2a963..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsDoubleTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-class IsDoubleTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Type\IsDouble::doubleValue();
- }
-
- public function testEvaluatesToTrueIfArgumentMatchesType()
- {
- assertThat((float) 5.2, floatValue());
- assertThat((double) 5.3, doubleValue());
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(false, not(doubleValue()));
- assertThat(5, not(doubleValue()));
- assertThat('foo', not(doubleValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a double', doubleValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', doubleValue(), null);
- $this->assertMismatchDescription('was a string "foo"', doubleValue(), 'foo');
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsIntegerTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsIntegerTest.php
deleted file mode 100644
index ce5a51a9..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsIntegerTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-class IsIntegerTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Type\IsInteger::integerValue();
- }
-
- public function testEvaluatesToTrueIfArgumentMatchesType()
- {
- assertThat(5, integerValue());
- assertThat(0, integerValue());
- assertThat(-5, integerValue());
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(false, not(integerValue()));
- assertThat(5.2, not(integerValue()));
- assertThat('foo', not(integerValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('an integer', integerValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', integerValue(), null);
- $this->assertMismatchDescription('was a string "foo"', integerValue(), 'foo');
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsNumericTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsNumericTest.php
deleted file mode 100644
index 1fd83efe..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsNumericTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-class IsNumericTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Type\IsNumeric::numericValue();
- }
-
- public function testEvaluatesToTrueIfArgumentMatchesType()
- {
- assertThat(5, numericValue());
- assertThat(0, numericValue());
- assertThat(-5, numericValue());
- assertThat(5.3, numericValue());
- assertThat(0.53, numericValue());
- assertThat(-5.3, numericValue());
- assertThat('5', numericValue());
- assertThat('0', numericValue());
- assertThat('-5', numericValue());
- assertThat('5.3', numericValue());
- assertThat('5e+3', numericValue());
- assertThat('0.053e-2', numericValue());
- assertThat('-53.253e+25', numericValue());
- assertThat('+53.253e+25', numericValue());
- assertThat(0x4F2a04, numericValue());
- assertThat('0x4F2a04', numericValue());
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(false, not(numericValue()));
- assertThat('foo', not(numericValue()));
- assertThat('foo5', not(numericValue()));
- assertThat('5foo', not(numericValue()));
- assertThat('0x42A04G', not(numericValue())); // G is not in the hexadecimal range.
- assertThat('1x42A04', not(numericValue())); // 1x is not a valid hexadecimal sequence.
- assertThat('0x', not(numericValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a number', numericValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', numericValue(), null);
- $this->assertMismatchDescription('was a string "foo"', numericValue(), 'foo');
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsObjectTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsObjectTest.php
deleted file mode 100644
index a3b617c2..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsObjectTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-class IsObjectTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Type\IsObject::objectValue();
- }
-
- public function testEvaluatesToTrueIfArgumentMatchesType()
- {
- assertThat(new \stdClass, objectValue());
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(false, not(objectValue()));
- assertThat(5, not(objectValue()));
- assertThat('foo', not(objectValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('an object', objectValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', objectValue(), null);
- $this->assertMismatchDescription('was a string "foo"', objectValue(), 'foo');
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsResourceTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsResourceTest.php
deleted file mode 100644
index d6ea5348..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsResourceTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-class IsResourceTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Type\IsResource::resourceValue();
- }
-
- public function testEvaluatesToTrueIfArgumentMatchesType()
- {
- assertThat(tmpfile(), resourceValue());
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(false, not(resourceValue()));
- assertThat(5, not(resourceValue()));
- assertThat('foo', not(resourceValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a resource', resourceValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', resourceValue(), null);
- $this->assertMismatchDescription('was a string "foo"', resourceValue(), 'foo');
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsScalarTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsScalarTest.php
deleted file mode 100644
index 72a188d6..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsScalarTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-class IsScalarTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Type\IsScalar::scalarValue();
- }
-
- public function testEvaluatesToTrueIfArgumentMatchesType()
- {
- assertThat(true, scalarValue());
- assertThat(5, scalarValue());
- assertThat(5.3, scalarValue());
- assertThat('5', scalarValue());
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(null, not(scalarValue()));
- assertThat(array(), not(scalarValue()));
- assertThat(array(5), not(scalarValue()));
- assertThat(tmpfile(), not(scalarValue()));
- assertThat(new \stdClass(), not(scalarValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a scalar', scalarValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', scalarValue(), null);
- $this->assertMismatchDescription('was an array ["foo"]', scalarValue(), array('foo'));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsStringTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsStringTest.php
deleted file mode 100644
index 557d5913..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Type/IsStringTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-namespace Hamcrest\Type;
-
-class IsStringTest extends \Hamcrest\AbstractMatcherTest
-{
-
- protected function createMatcher()
- {
- return \Hamcrest\Type\IsString::stringValue();
- }
-
- public function testEvaluatesToTrueIfArgumentMatchesType()
- {
- assertThat('', stringValue());
- assertThat("foo", stringValue());
- }
-
- public function testEvaluatesToFalseIfArgumentDoesntMatchType()
- {
- assertThat(false, not(stringValue()));
- assertThat(5, not(stringValue()));
- assertThat(array(1, 2, 3), not(stringValue()));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription('a string', stringValue());
- }
-
- public function testDecribesActualTypeInMismatchMessage()
- {
- $this->assertMismatchDescription('was null', stringValue(), null);
- $this->assertMismatchDescription('was a double <5.2F>', stringValue(), 5.2);
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php
deleted file mode 100644
index 0c2cd043..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/UtilTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-namespace Hamcrest;
-
-class UtilTest extends \PhpUnit_Framework_TestCase
-{
-
- public function testWrapValueWithIsEqualLeavesMatchersUntouched()
- {
- $matcher = new \Hamcrest\Text\MatchesPattern('/fo+/');
- $newMatcher = \Hamcrest\Util::wrapValueWithIsEqual($matcher);
- $this->assertSame($matcher, $newMatcher);
- }
-
- public function testWrapValueWithIsEqualWrapsPrimitive()
- {
- $matcher = \Hamcrest\Util::wrapValueWithIsEqual('foo');
- $this->assertInstanceOf('Hamcrest\Core\IsEqual', $matcher);
- $this->assertTrue($matcher->matches('foo'));
- }
-
- public function testCheckAllAreMatchersAcceptsMatchers()
- {
- \Hamcrest\Util::checkAllAreMatchers(array(
- new \Hamcrest\Text\MatchesPattern('/fo+/'),
- new \Hamcrest\Core\IsEqual('foo'),
- ));
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testCheckAllAreMatchersFailsForPrimitive()
- {
- \Hamcrest\Util::checkAllAreMatchers(array(
- new \Hamcrest\Text\MatchesPattern('/fo+/'),
- 'foo',
- ));
- }
-
- private function callAndAssertCreateMatcherArray($items)
- {
- $matchers = \Hamcrest\Util::createMatcherArray($items);
- $this->assertInternalType('array', $matchers);
- $this->assertSameSize($items, $matchers);
- foreach ($matchers as $matcher) {
- $this->assertInstanceOf('\Hamcrest\Matcher', $matcher);
- }
-
- return $matchers;
- }
-
- public function testCreateMatcherArrayLeavesMatchersUntouched()
- {
- $matcher = new \Hamcrest\Text\MatchesPattern('/fo+/');
- $items = array($matcher);
- $matchers = $this->callAndAssertCreateMatcherArray($items);
- $this->assertSame($matcher, $matchers[0]);
- }
-
- public function testCreateMatcherArrayWrapsPrimitiveWithIsEqualMatcher()
- {
- $matchers = $this->callAndAssertCreateMatcherArray(array('foo'));
- $this->assertInstanceOf('Hamcrest\Core\IsEqual', $matchers[0]);
- $this->assertTrue($matchers[0]->matches('foo'));
- }
-
- public function testCreateMatcherArrayDoesntModifyOriginalArray()
- {
- $items = array('foo');
- $this->callAndAssertCreateMatcherArray($items);
- $this->assertSame('foo', $items[0]);
- }
-
- public function testCreateMatcherArrayUnwrapsSingleArrayElement()
- {
- $matchers = $this->callAndAssertCreateMatcherArray(array(array('foo')));
- $this->assertInstanceOf('Hamcrest\Core\IsEqual', $matchers[0]);
- $this->assertTrue($matchers[0]->matches('foo'));
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Xml/HasXPathTest.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Xml/HasXPathTest.php
deleted file mode 100644
index 67748871..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Xml/HasXPathTest.php
+++ /dev/null
@@ -1,198 +0,0 @@
-<?php
-namespace Hamcrest\Xml;
-
-class HasXPathTest extends \Hamcrest\AbstractMatcherTest
-{
- protected static $xml;
- protected static $doc;
- protected static $html;
-
- public static function setUpBeforeClass()
- {
- self::$xml = <<<XML
-<?xml version="1.0"?>
-<users>
- <user>
- <id>alice</id>
- <name>Alice Frankel</name>
- <role>admin</role>
- </user>
- <user>
- <id>bob</id>
- <name>Bob Frankel</name>
- <role>user</role>
- </user>
- <user>
- <id>charlie</id>
- <name>Charlie Chan</name>
- <role>user</role>
- </user>
-</users>
-XML;
- self::$doc = new \DOMDocument();
- self::$doc->loadXML(self::$xml);
-
- self::$html = <<<HTML
-<html>
- <head>
- <title>Home Page</title>
- </head>
- <body>
- <h1>Heading</h1>
- <p>Some text</p>
- </body>
-</html>
-HTML;
- }
-
- protected function createMatcher()
- {
- return \Hamcrest\Xml\HasXPath::hasXPath('/users/user');
- }
-
- public function testMatchesWhenXPathIsFound()
- {
- assertThat('one match', self::$doc, hasXPath('user[id = "bob"]'));
- assertThat('two matches', self::$doc, hasXPath('user[role = "user"]'));
- }
-
- public function testDoesNotMatchWhenXPathIsNotFound()
- {
- assertThat(
- 'no match',
- self::$doc,
- not(hasXPath('user[contains(id, "frank")]'))
- );
- }
-
- public function testMatchesWhenExpressionWithoutMatcherEvaluatesToTrue()
- {
- assertThat(
- 'one match',
- self::$doc,
- hasXPath('count(user[id = "bob"])')
- );
- }
-
- public function testDoesNotMatchWhenExpressionWithoutMatcherEvaluatesToFalse()
- {
- assertThat(
- 'no matches',
- self::$doc,
- not(hasXPath('count(user[id = "frank"])'))
- );
- }
-
- public function testMatchesWhenExpressionIsEqual()
- {
- assertThat(
- 'one match',
- self::$doc,
- hasXPath('count(user[id = "bob"])', 1)
- );
- assertThat(
- 'two matches',
- self::$doc,
- hasXPath('count(user[role = "user"])', 2)
- );
- }
-
- public function testDoesNotMatchWhenExpressionIsNotEqual()
- {
- assertThat(
- 'no match',
- self::$doc,
- not(hasXPath('count(user[id = "frank"])', 2))
- );
- assertThat(
- 'one match',
- self::$doc,
- not(hasXPath('count(user[role = "admin"])', 2))
- );
- }
-
- public function testMatchesWhenContentMatches()
- {
- assertThat(
- 'one match',
- self::$doc,
- hasXPath('user/name', containsString('ice'))
- );
- assertThat(
- 'two matches',
- self::$doc,
- hasXPath('user/role', equalTo('user'))
- );
- }
-
- public function testDoesNotMatchWhenContentDoesNotMatch()
- {
- assertThat(
- 'no match',
- self::$doc,
- not(hasXPath('user/name', containsString('Bobby')))
- );
- assertThat(
- 'no matches',
- self::$doc,
- not(hasXPath('user/role', equalTo('owner')))
- );
- }
-
- public function testProvidesConvenientShortcutForHasXPathEqualTo()
- {
- assertThat('matches', self::$doc, hasXPath('count(user)', 3));
- assertThat('matches', self::$doc, hasXPath('user[2]/id', 'bob'));
- }
-
- public function testProvidesConvenientShortcutForHasXPathCountEqualTo()
- {
- assertThat('matches', self::$doc, hasXPath('user[id = "charlie"]', 1));
- }
-
- public function testMatchesAcceptsXmlString()
- {
- assertThat('accepts XML string', self::$xml, hasXPath('user'));
- }
-
- public function testMatchesAcceptsHtmlString()
- {
- assertThat('accepts HTML string', self::$html, hasXPath('body/h1', 'Heading'));
- }
-
- public function testHasAReadableDescription()
- {
- $this->assertDescription(
- 'XML or HTML document with XPath "/users/user"',
- hasXPath('/users/user')
- );
- $this->assertDescription(
- 'XML or HTML document with XPath "count(/users/user)" <2>',
- hasXPath('/users/user', 2)
- );
- $this->assertDescription(
- 'XML or HTML document with XPath "/users/user/name"'
- . ' a string starting with "Alice"',
- hasXPath('/users/user/name', startsWith('Alice'))
- );
- }
-
- public function testHasAReadableMismatchDescription()
- {
- $this->assertMismatchDescription(
- 'XPath returned no results',
- hasXPath('/users/name'),
- self::$doc
- );
- $this->assertMismatchDescription(
- 'XPath expression result was <3F>',
- hasXPath('/users/user', 2),
- self::$doc
- );
- $this->assertMismatchDescription(
- 'XPath returned ["alice", "bob", "charlie"]',
- hasXPath('/users/user/id', 'Frank'),
- self::$doc
- );
- }
-}
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/bootstrap.php b/www/wiki/vendor/hamcrest/hamcrest-php/tests/bootstrap.php
deleted file mode 100644
index bc4958d1..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/bootstrap.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-error_reporting(E_ALL | E_STRICT);
-
-require __DIR__ . '/../vendor/autoload.php';
-
-if (defined('E_DEPRECATED')) {
- error_reporting(error_reporting() | E_DEPRECATED);
-}
-
-Hamcrest\Util::registerGlobalFunctions();
diff --git a/www/wiki/vendor/hamcrest/hamcrest-php/tests/phpunit.xml.dist b/www/wiki/vendor/hamcrest/hamcrest-php/tests/phpunit.xml.dist
deleted file mode 100644
index 6afcb6e3..00000000
--- a/www/wiki/vendor/hamcrest/hamcrest-php/tests/phpunit.xml.dist
+++ /dev/null
@@ -1,22 +0,0 @@
-<phpunit backupGlobals="false"
- backupStaticAttributes="false"
- bootstrap="bootstrap.php"
- colors="false"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- processIsolation="false"
- stopOnFailure="false"
- syntaxCheck="false">
- <testsuites>
- <testsuite name="hamcrest-php">
- <directory suffix="Test.php">.</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist addUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">../hamcrest</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/.gitignore b/www/wiki/vendor/jakub-onderka/php-console-color/.gitignore
deleted file mode 100644
index 05ab16b8..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-build
-vendor
-composer.lock
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/.travis.yml b/www/wiki/vendor/jakub-onderka/php-console-color/.travis.yml
deleted file mode 100644
index 49175a99..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-language: php
-
-php:
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - 7.1
- - 7.2
-
-sudo: false
-
-cache:
- directories:
- - vendor
- - $HOME/.composer/cache
-
-before_script:
- - composer install --no-interaction --prefer-source
-
-script:
- - ant phplint
- - ant phpcs
- - ant phpunit
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/LICENSE b/www/wiki/vendor/jakub-onderka/php-console-color/LICENSE
deleted file mode 100644
index 0954fc94..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/LICENSE
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright (c) 2014-2018, Jakub Onderka
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/README.md b/www/wiki/vendor/jakub-onderka/php-console-color/README.md
deleted file mode 100644
index 39e55d92..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-PHP Console Color
-=================
-
-[![Build Status](https://travis-ci.org/JakubOnderka/PHP-Console-Color.svg?branch=master)](https://travis-ci.org/JakubOnderka/PHP-Console-Color)
-
-Simple library for creating colored console ouput.
-
-See `example.php` how to use this library.
-
-![Example from Windows 10](https://user-images.githubusercontent.com/89590/40762008-687f909a-646c-11e8-88d6-e268a064be4c.png) \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/build.xml b/www/wiki/vendor/jakub-onderka/php-console-color/build.xml
deleted file mode 100644
index bb4ba66d..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/build.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project default="build">
- <!-- Set executables according to OS -->
- <condition property="phpunit" value="${basedir}/vendor/bin/phpunit.bat" else="${basedir}/vendor/bin/phpunit">
- <os family="windows" />
- </condition>
-
- <condition property="phpcs" value="${basedir}/vendor/bin/phpcs.bat" else="${basedir}/vendor/bin/phpcs">
- <os family="windows" />
- </condition>
-
- <condition property="parallel-lint" value="${basedir}/vendor/bin/parallel-lint.bat" else="${basedir}/vendor/bin/parallel-lint">
- <os family="windows" />
- </condition>
-
- <condition property="var-dump-check" value="${basedir}/vendor/bin/var-dump-check.bat" else="${basedir}/vendor/bin/var-dump-check">
- <os family="windows"/>
- </condition>
-
- <!-- Use colors in output can be disabled when calling ant with -Duse-colors=false -->
- <property name="use-colors" value="true" />
-
- <condition property="colors-arg.color" value="--colors" else="">
- <equals arg1="${use-colors}" arg2="true" />
- </condition>
-
- <condition property="colors-arg.no-colors" value="" else="--no-colors">
- <equals arg1="${use-colors}" arg2="true" />
- </condition>
-
- <!-- Targets -->
- <target name="prepare" description="Create build directory">
- <mkdir dir="${basedir}/build/logs" />
- </target>
-
- <target name="phplint" description="Check syntax errors in PHP files">
- <exec executable="${parallel-lint}" failonerror="true">
- <arg line='--exclude ${basedir}/vendor/' />
- <arg line='${colors-arg.no-colors}' />
- <arg line='${basedir}' />
- </exec>
- </target>
-
- <target name="var-dump-check" description="Check PHP files for forgotten variable dumps">
- <exec executable="${var-dump-check}" failonerror="true">
- <arg line='--exclude ${basedir}/vendor/' />
- <arg line='${colors-arg.no-colors}' />
- <arg line='${basedir}' />
- </exec>
- </target>
-
- <target name="phpcs" depends="prepare" description="Check PHP code style">
- <delete file="${basedir}/build/logs/checkstyle.xml" quiet="true" />
-
- <exec executable="${phpcs}">
- <arg line='--extensions=php' />
- <arg line='--standard="${basedir}/vendor/jakub-onderka/php-code-style/ruleset.xml"' />
- <arg line='--report-checkstyle="${basedir}/build/logs/checkstyle.xml"' />
- <arg line='--report-full' />
- <arg line='"${basedir}/src"' />
- </exec>
- </target>
-
- <target name="phpunit" depends="prepare" description="PHP unit">
- <delete file="${basedir}/build/logs/phpunit.xml" quiet="true" />
-
- <exec executable="${phpunit}">
- <arg line='--configuration ${basedir}/phpunit.xml' />
- <arg line='-d memory_limit=256M' />
- <arg line='--log-junit "${basedir}/build/logs/phpunit.xml"' />
- <arg line='${colors-arg.color}' />
- </exec>
- </target>
-
- <target name="phpunit-coverage" depends="prepare" description="PHP unit with code coverage">
- <delete file="${basedir}/build/logs/phpunit.xml" quiet="true" />
- <delete file="${basedir}/build/logs/clover.xml" quiet="true" />
- <delete dir="${basedir}/build/coverage" quiet="true" />
- <mkdir dir="${basedir}/build/coverage" />
-
- <exec executable="${phpunit}">
- <arg line='--configuration ${basedir}/phpunit.xml' />
- <arg line='-d memory_limit=256M' />
- <arg line='--log-junit "${basedir}/build/logs/phpunit.xml"' />
- <arg line='--coverage-clover "${basedir}/build/logs/clover.xml"' />
- <arg line='--coverage-html "${basedir}/build/coverage/"' />
- <arg line='${colors-arg.color}' />
- </exec>
- </target>
-
- <target name="build" depends="phplint,var-dump-check,phpcs,phpunit" />
-
-</project> \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/composer.json b/www/wiki/vendor/jakub-onderka/php-console-color/composer.json
deleted file mode 100644
index 6481cb51..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/composer.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "jakub-onderka/php-console-color",
- "license": "BSD-2-Clause",
- "authors": [
- {
- "name": "Jakub Onderka",
- "email": "jakub.onderka@gmail.com"
- }
- ],
- "autoload": {
- "psr-4": {"JakubOnderka\\PhpConsoleColor\\": "src/"}
- },
- "require": {
- "php": ">=5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.3",
- "jakub-onderka/php-parallel-lint": "1.0",
- "jakub-onderka/php-var-dump-check": "0.*",
- "squizlabs/php_codesniffer": "1.*",
- "jakub-onderka/php-code-style": "1.0"
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/example.php b/www/wiki/vendor/jakub-onderka/php-console-color/example.php
deleted file mode 100644
index 5e698a24..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/example.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-$loader = require_once __DIR__ . '/vendor/autoload.php';
-
-$consoleColor = new JakubOnderka\PhpConsoleColor\ConsoleColor();
-
-echo "Colors are supported: " . ($consoleColor->isSupported() ? 'Yes' : 'No') . "\n";
-echo "256 colors are supported: " . ($consoleColor->are256ColorsSupported() ? 'Yes' : 'No') . "\n\n";
-
-if ($consoleColor->isSupported()) {
- foreach ($consoleColor->getPossibleStyles() as $style) {
- echo $consoleColor->apply($style, $style) . "\n";
- }
-}
-
-echo "\n";
-
-if ($consoleColor->are256ColorsSupported()) {
- echo "Foreground colors:\n";
- for ($i = 1; $i <= 255; $i++) {
- echo $consoleColor->apply("color_$i", str_pad($i, 6, ' ', STR_PAD_BOTH));
-
- if ($i % 15 === 0) {
- echo "\n";
- }
- }
-
- echo "\nBackground colors:\n";
-
- for ($i = 1; $i <= 255; $i++) {
- echo $consoleColor->apply("bg_color_$i", str_pad($i, 6, ' ', STR_PAD_BOTH));
-
- if ($i % 15 === 0) {
- echo "\n";
- }
- }
-
- echo "\n";
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/phpunit.xml b/www/wiki/vendor/jakub-onderka/php-console-color/phpunit.xml
deleted file mode 100644
index f1105cc4..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/phpunit.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit
- bootstrap="./vendor/autoload.php">
- <testsuites>
- <testsuite>
- <directory suffix="Test.php">tests</directory>
- </testsuite>
- </testsuites>
-
- <!-- Ignore vendor folder for code coverage -->
- <filter>
- <blacklist>
- <directory>vendor</directory>
- </blacklist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/src/ConsoleColor.php b/www/wiki/vendor/jakub-onderka/php-console-color/src/ConsoleColor.php
deleted file mode 100644
index 90fd1252..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/src/ConsoleColor.php
+++ /dev/null
@@ -1,287 +0,0 @@
-<?php
-namespace JakubOnderka\PhpConsoleColor;
-
-class ConsoleColor
-{
- const FOREGROUND = 38,
- BACKGROUND = 48;
-
- const COLOR256_REGEXP = '~^(bg_)?color_([0-9]{1,3})$~';
-
- const RESET_STYLE = 0;
-
- /** @var bool */
- private $isSupported;
-
- /** @var bool */
- private $forceStyle = false;
-
- /** @var array */
- private $styles = array(
- 'none' => null,
- 'bold' => '1',
- 'dark' => '2',
- 'italic' => '3',
- 'underline' => '4',
- 'blink' => '5',
- 'reverse' => '7',
- 'concealed' => '8',
-
- 'default' => '39',
- 'black' => '30',
- 'red' => '31',
- 'green' => '32',
- 'yellow' => '33',
- 'blue' => '34',
- 'magenta' => '35',
- 'cyan' => '36',
- 'light_gray' => '37',
-
- 'dark_gray' => '90',
- 'light_red' => '91',
- 'light_green' => '92',
- 'light_yellow' => '93',
- 'light_blue' => '94',
- 'light_magenta' => '95',
- 'light_cyan' => '96',
- 'white' => '97',
-
- 'bg_default' => '49',
- 'bg_black' => '40',
- 'bg_red' => '41',
- 'bg_green' => '42',
- 'bg_yellow' => '43',
- 'bg_blue' => '44',
- 'bg_magenta' => '45',
- 'bg_cyan' => '46',
- 'bg_light_gray' => '47',
-
- 'bg_dark_gray' => '100',
- 'bg_light_red' => '101',
- 'bg_light_green' => '102',
- 'bg_light_yellow' => '103',
- 'bg_light_blue' => '104',
- 'bg_light_magenta' => '105',
- 'bg_light_cyan' => '106',
- 'bg_white' => '107',
- );
-
- /** @var array */
- private $themes = array();
-
- public function __construct()
- {
- $this->isSupported = $this->isSupported();
- }
-
- /**
- * @param string|array $style
- * @param string $text
- * @return string
- * @throws InvalidStyleException
- * @throws \InvalidArgumentException
- */
- public function apply($style, $text)
- {
- if (!$this->isStyleForced() && !$this->isSupported()) {
- return $text;
- }
-
- if (is_string($style)) {
- $style = array($style);
- }
- if (!is_array($style)) {
- throw new \InvalidArgumentException("Style must be string or array.");
- }
-
- $sequences = array();
-
- foreach ($style as $s) {
- if (isset($this->themes[$s])) {
- $sequences = array_merge($sequences, $this->themeSequence($s));
- } else if ($this->isValidStyle($s)) {
- $sequences[] = $this->styleSequence($s);
- } else {
- throw new InvalidStyleException($s);
- }
- }
-
- $sequences = array_filter($sequences, function ($val) {
- return $val !== null;
- });
-
- if (empty($sequences)) {
- return $text;
- }
-
- return $this->escSequence(implode(';', $sequences)) . $text . $this->escSequence(self::RESET_STYLE);
- }
-
- /**
- * @param bool $forceStyle
- */
- public function setForceStyle($forceStyle)
- {
- $this->forceStyle = (bool) $forceStyle;
- }
-
- /**
- * @return bool
- */
- public function isStyleForced()
- {
- return $this->forceStyle;
- }
-
- /**
- * @param array $themes
- * @throws InvalidStyleException
- * @throws \InvalidArgumentException
- */
- public function setThemes(array $themes)
- {
- $this->themes = array();
- foreach ($themes as $name => $styles) {
- $this->addTheme($name, $styles);
- }
- }
-
- /**
- * @param string $name
- * @param array|string $styles
- * @throws \InvalidArgumentException
- * @throws InvalidStyleException
- */
- public function addTheme($name, $styles)
- {
- if (is_string($styles)) {
- $styles = array($styles);
- }
- if (!is_array($styles)) {
- throw new \InvalidArgumentException("Style must be string or array.");
- }
-
- foreach ($styles as $style) {
- if (!$this->isValidStyle($style)) {
- throw new InvalidStyleException($style);
- }
- }
-
- $this->themes[$name] = $styles;
- }
-
- /**
- * @return array
- */
- public function getThemes()
- {
- return $this->themes;
- }
-
- /**
- * @param string $name
- * @return bool
- */
- public function hasTheme($name)
- {
- return isset($this->themes[$name]);
- }
-
- /**
- * @param string $name
- */
- public function removeTheme($name)
- {
- unset($this->themes[$name]);
- }
-
- /**
- * @return bool
- */
- public function isSupported()
- {
- if (DIRECTORY_SEPARATOR === '\\') {
- if (function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(STDOUT)) {
- return true;
- } elseif (getenv('ANSICON') !== false || getenv('ConEmuANSI') === 'ON') {
- return true;
- }
- return false;
- } else {
- return function_exists('posix_isatty') && @posix_isatty(STDOUT);
- }
- }
-
- /**
- * @return bool
- */
- public function are256ColorsSupported()
- {
- if (DIRECTORY_SEPARATOR === '\\') {
- return function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(STDOUT);
- } else {
- return strpos(getenv('TERM'), '256color') !== false;
- }
- }
-
- /**
- * @return array
- */
- public function getPossibleStyles()
- {
- return array_keys($this->styles);
- }
-
- /**
- * @param string $name
- * @return string[]
- */
- private function themeSequence($name)
- {
- $sequences = array();
- foreach ($this->themes[$name] as $style) {
- $sequences[] = $this->styleSequence($style);
- }
- return $sequences;
- }
-
- /**
- * @param string $style
- * @return string
- */
- private function styleSequence($style)
- {
- if (array_key_exists($style, $this->styles)) {
- return $this->styles[$style];
- }
-
- if (!$this->are256ColorsSupported()) {
- return null;
- }
-
- preg_match(self::COLOR256_REGEXP, $style, $matches);
-
- $type = $matches[1] === 'bg_' ? self::BACKGROUND : self::FOREGROUND;
- $value = $matches[2];
-
- return "$type;5;$value";
- }
-
- /**
- * @param string $style
- * @return bool
- */
- private function isValidStyle($style)
- {
- return array_key_exists($style, $this->styles) || preg_match(self::COLOR256_REGEXP, $style);
- }
-
- /**
- * @param string|int $value
- * @return string
- */
- private function escSequence($value)
- {
- return "\033[{$value}m";
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/src/InvalidStyleException.php b/www/wiki/vendor/jakub-onderka/php-console-color/src/InvalidStyleException.php
deleted file mode 100644
index 6f1586f6..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/src/InvalidStyleException.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-namespace JakubOnderka\PhpConsoleColor;
-
-class InvalidStyleException extends \Exception
-{
- public function __construct($styleName)
- {
- parent::__construct("Invalid style $styleName.");
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-color/tests/ConsoleColorTest.php b/www/wiki/vendor/jakub-onderka/php-console-color/tests/ConsoleColorTest.php
deleted file mode 100644
index aaa1a224..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-color/tests/ConsoleColorTest.php
+++ /dev/null
@@ -1,184 +0,0 @@
-<?php
-use JakubOnderka\PhpConsoleColor\ConsoleColor;
-
-class ConsoleColorWithForceSupport extends ConsoleColor
-{
- private $isSupportedForce = true;
-
- private $are256ColorsSupportedForce = true;
-
- public function setIsSupported($isSupported)
- {
- $this->isSupportedForce = $isSupported;
- }
-
- public function isSupported()
- {
- return $this->isSupportedForce;
- }
-
- public function setAre256ColorsSupported($are256ColorsSupported)
- {
- $this->are256ColorsSupportedForce = $are256ColorsSupported;
- }
-
- public function are256ColorsSupported()
- {
- return $this->are256ColorsSupportedForce;
- }
-}
-
-class ConsoleColorTest extends \PHPUnit_Framework_TestCase
-{
- /** @var ConsoleColorWithForceSupport */
- private $uut;
-
- protected function setUp()
- {
- $this->uut = new ConsoleColorWithForceSupport();
- }
-
- public function testNone()
- {
- $output = $this->uut->apply('none', 'text');
- $this->assertEquals("text", $output);
- }
-
- public function testBold()
- {
- $output = $this->uut->apply('bold', 'text');
- $this->assertEquals("\033[1mtext\033[0m", $output);
- }
-
- public function testBoldColorsAreNotSupported()
- {
- $this->uut->setIsSupported(false);
-
- $output = $this->uut->apply('bold', 'text');
- $this->assertEquals("text", $output);
- }
-
- public function testBoldColorsAreNotSupportedButAreForced()
- {
- $this->uut->setIsSupported(false);
- $this->uut->setForceStyle(true);
-
- $output = $this->uut->apply('bold', 'text');
- $this->assertEquals("\033[1mtext\033[0m", $output);
- }
-
- public function testDark()
- {
- $output = $this->uut->apply('dark', 'text');
- $this->assertEquals("\033[2mtext\033[0m", $output);
- }
-
- public function testBoldAndDark()
- {
- $output = $this->uut->apply(array('bold', 'dark'), 'text');
- $this->assertEquals("\033[1;2mtext\033[0m", $output);
- }
-
- public function test256ColorForeground()
- {
- $output = $this->uut->apply('color_255', 'text');
- $this->assertEquals("\033[38;5;255mtext\033[0m", $output);
- }
-
- public function test256ColorWithoutSupport()
- {
- $this->uut->setAre256ColorsSupported(false);
-
- $output = $this->uut->apply('color_255', 'text');
- $this->assertEquals("text", $output);
- }
-
- public function test256ColorBackground()
- {
- $output = $this->uut->apply('bg_color_255', 'text');
- $this->assertEquals("\033[48;5;255mtext\033[0m", $output);
- }
-
- public function test256ColorForegroundAndBackground()
- {
- $output = $this->uut->apply(array('color_200', 'bg_color_255'), 'text');
- $this->assertEquals("\033[38;5;200;48;5;255mtext\033[0m", $output);
- }
-
- public function testSetOwnTheme()
- {
- $this->uut->setThemes(array('bold_dark' => array('bold', 'dark')));
- $output = $this->uut->apply(array('bold_dark'), 'text');
- $this->assertEquals("\033[1;2mtext\033[0m", $output);
- }
-
- public function testAddOwnTheme()
- {
- $this->uut->addTheme('bold_own', 'bold');
- $output = $this->uut->apply(array('bold_own'), 'text');
- $this->assertEquals("\033[1mtext\033[0m", $output);
- }
-
- public function testAddOwnThemeArray()
- {
- $this->uut->addTheme('bold_dark', array('bold', 'dark'));
- $output = $this->uut->apply(array('bold_dark'), 'text');
- $this->assertEquals("\033[1;2mtext\033[0m", $output);
- }
-
- public function testOwnWithStyle()
- {
- $this->uut->addTheme('bold_dark', array('bold', 'dark'));
- $output = $this->uut->apply(array('bold_dark', 'italic'), 'text');
- $this->assertEquals("\033[1;2;3mtext\033[0m", $output);
- }
-
- public function testHasAndRemoveTheme()
- {
- $this->assertFalse($this->uut->hasTheme('bold_dark'));
-
- $this->uut->addTheme('bold_dark', array('bold', 'dark'));
- $this->assertTrue($this->uut->hasTheme('bold_dark'));
-
- $this->uut->removeTheme('bold_dark');
- $this->assertFalse($this->uut->hasTheme('bold_dark'));
- }
-
- public function testApplyInvalidArgument()
- {
- $this->setExpectedException('\InvalidArgumentException');
- $this->uut->apply(new stdClass(), 'text');
- }
-
- public function testApplyInvalidStyleName()
- {
- $this->setExpectedException('\JakubOnderka\PhpConsoleColor\InvalidStyleException');
- $this->uut->apply('invalid', 'text');
- }
-
- public function testApplyInvalid256Color()
- {
- $this->setExpectedException('\JakubOnderka\PhpConsoleColor\InvalidStyleException');
- $this->uut->apply('color_2134', 'text');
- }
-
- public function testThemeInvalidStyle()
- {
- $this->setExpectedException('\JakubOnderka\PhpConsoleColor\InvalidStyleException');
- $this->uut->addTheme('invalid', array('invalid'));
- }
-
- public function testForceStyle()
- {
- $this->assertFalse($this->uut->isStyleForced());
- $this->uut->setForceStyle(true);
- $this->assertTrue($this->uut->isStyleForced());
- }
-
- public function testGetPossibleStyles()
- {
- $this->assertInternalType('array', $this->uut->getPossibleStyles());
- $this->assertNotEmpty($this->uut->getPossibleStyles());
- }
-}
-
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/.gitignore b/www/wiki/vendor/jakub-onderka/php-console-highlighter/.gitignore
deleted file mode 100644
index 70f6ec06..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/.idea/
-/build/
-/vendor/
-/composer.lock \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/.travis.yml b/www/wiki/vendor/jakub-onderka/php-console-highlighter/.travis.yml
deleted file mode 100644
index 2f7e8c89..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/.travis.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-language: php
-
-php:
- - 5.3.3
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - hhvm
- - hhvm-nightly
-
-matrix:
- allowed_failures:
- - php: 7.0
- - php: hhvm-nightly
-
-before_script:
- - composer install --no-interaction --prefer-source
-
-script:
- - ant \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/LICENSE b/www/wiki/vendor/jakub-onderka/php-console-highlighter/LICENSE
deleted file mode 100644
index 1a8317fa..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2013 Jakub Onderka
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE. \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/README.md b/www/wiki/vendor/jakub-onderka/php-console-highlighter/README.md
deleted file mode 100644
index 432ea0a7..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/README.md
+++ /dev/null
@@ -1,40 +0,0 @@
-PHP Console Highlighter
-=======================
-
-Highlight PHP code in console (terminal).
-
-Example
--------
-![Example](http://jakubonderka.github.io/php-console-highlight-example.png)
-
-Install
--------
-
-Just create a `composer.json` file and run the `php composer.phar install` command to install it:
-
-```json
-{
- "require": {
- "jakub-onderka/php-console-highlighter": "0.*"
- }
-}
-```
-
-Usage
--------
-```php
-<?php
-use JakubOnderka\PhpConsoleColor\ConsoleColor;
-use JakubOnderka\PhpConsoleHighlighter\Highlighter;
-
-require __DIR__ . '/vendor/autoload.php';
-
-$highlighter = new Highlighter(new ConsoleColor());
-
-$fileContent = file_get_contents(__FILE__);
-echo $highlighter->getWholeFile($fileContent);
-```
-
-------
-
-[![Build Status](https://travis-ci.org/JakubOnderka/PHP-Console-Highlighter.svg?branch=master)](https://travis-ci.org/JakubOnderka/PHP-Console-Highlighter)
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/build.xml b/www/wiki/vendor/jakub-onderka/php-console-highlighter/build.xml
deleted file mode 100644
index d656ea9d..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/build.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project default="build">
- <!-- Set executables according to OS -->
- <condition property="phpunit" value="${basedir}/vendor/bin/phpunit.bat" else="${basedir}/vendor/bin/phpunit">
- <os family="windows" />
- </condition>
-
- <condition property="phpcs" value="${basedir}/vendor/bin/phpcs.bat" else="${basedir}/vendor/bin/phpcs">
- <os family="windows" />
- </condition>
-
- <condition property="parallel-lint" value="${basedir}/vendor/bin/parallel-lint.bat" else="${basedir}/vendor/bin/parallel-lint">
- <os family="windows" />
- </condition>
-
- <condition property="var-dump-check" value="${basedir}/vendor/bin/var-dump-check.bat" else="${basedir}/vendor/bin/var-dump-check">
- <os family="windows"/>
- </condition>
-
- <!-- Use colors in output can be disabled when calling ant with -Duse-colors=false -->
- <property name="use-colors" value="true" />
-
- <condition property="colors-arg.color" value="--colors" else="">
- <equals arg1="${use-colors}" arg2="true" />
- </condition>
-
- <condition property="colors-arg.no-colors" value="" else="--no-colors">
- <equals arg1="${use-colors}" arg2="true" />
- </condition>
-
- <!-- Targets -->
- <target name="prepare" description="Create build directory">
- <mkdir dir="${basedir}/build/logs" />
- </target>
-
- <target name="phplint" description="Check syntax errors in PHP files">
- <exec executable="${parallel-lint}" failonerror="true">
- <arg line='--exclude ${basedir}/vendor/' />
- <arg line='${colors-arg.no-colors}' />
- <arg line='${basedir}' />
- </exec>
- </target>
-
- <target name="var-dump-check" description="Check PHP files for forgotten variable dumps">
- <exec executable="${var-dump-check}" failonerror="true">
- <arg line='--exclude ${basedir}/vendor/' />
- <arg line='${colors-arg.no-colors}' />
- <arg line='${basedir}' />
- </exec>
- </target>
-
- <target name="phpcs" depends="prepare" description="Check PHP code style">
- <delete file="${basedir}/build/logs/checkstyle.xml" quiet="true" />
-
- <exec executable="${phpcs}">
- <arg line='--extensions=php' />
- <arg line='--standard="${basedir}/vendor/jakub-onderka/php-code-style/ruleset.xml"' />
- <arg line='--report-checkstyle="${basedir}/build/logs/checkstyle.xml"' />
- <arg line='--report-full' />
- <arg line='"${basedir}/src"' />
- </exec>
- </target>
-
- <target name="phpunit" depends="prepare" description="PHP unit">
- <delete file="${basedir}/build/logs/phpunit.xml" quiet="true" />
-
- <exec executable="${phpunit}">
- <arg line='--configuration ${basedir}/phpunit.xml' />
- <arg line='-d memory_limit=256M' />
- <arg line='--log-junit "${basedir}/build/logs/phpunit.xml"' />
- <arg line='${colors-arg.color}' />
- </exec>
- </target>
-
- <target name="phpunit-coverage" depends="prepare" description="PHP unit with code coverage">
- <delete file="${basedir}/build/logs/phpunit.xml" quiet="true" />
- <delete file="${basedir}/build/logs/clover.xml" quiet="true" />
- <delete dir="${basedir}/build/coverage" quiet="true" />
- <mkdir dir="${basedir}/build/coverage" />
-
- <exec executable="${phpunit}" failonerror="true">
- <arg line='--configuration ${basedir}/phpunit.xml' />
- <arg line='-d memory_limit=256M' />
- <arg line='--log-junit "${basedir}/build/logs/phpunit.xml"' />
- <arg line='--coverage-clover "${basedir}/build/logs/clover.xml"' />
- <arg line='--coverage-html "${basedir}/build/coverage/"' />
- <arg line='${colors-arg.color}' />
- </exec>
- </target>
-
- <target name="build" depends="phplint,var-dump-check,phpcs,phpunit" />
-
-</project> \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/composer.json b/www/wiki/vendor/jakub-onderka/php-console-highlighter/composer.json
deleted file mode 100644
index bd2f47a2..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/composer.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "name": "jakub-onderka/php-console-highlighter",
- "type": "library",
- "license": "MIT",
- "authors": [
- {
- "name": "Jakub Onderka",
- "email": "acci@acci.cz",
- "homepage": "http://www.acci.cz/"
- }
- ],
- "autoload": {
- "psr-0": {"JakubOnderka\\PhpConsoleHighlighter": "src/"}
- },
- "require": {
- "php": ">=5.3.0",
- "jakub-onderka/php-console-color": "~0.1"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0",
- "jakub-onderka/php-parallel-lint": "~0.5",
- "jakub-onderka/php-var-dump-check": "~0.1",
- "squizlabs/php_codesniffer": "~1.5",
- "jakub-onderka/php-code-style": "~1.0"
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/snippet.php b/www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/snippet.php
deleted file mode 100644
index 1bf6ac3b..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/snippet.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-use JakubOnderka\PhpConsoleColor\ConsoleColor;
-use JakubOnderka\PhpConsoleHighlighter\Highlighter;
-
-require __DIR__ . '/../vendor/autoload.php';
-
-$highlighter = new Highlighter(new ConsoleColor());
-
-$fileContent = file_get_contents(__FILE__);
-echo $highlighter->getCodeSnippet($fileContent, 3); \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/whole_file.php b/www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/whole_file.php
deleted file mode 100644
index 2a023d80..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/whole_file.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-use JakubOnderka\PhpConsoleColor\ConsoleColor;
-use JakubOnderka\PhpConsoleHighlighter\Highlighter;
-
-require __DIR__ . '/../vendor/autoload.php';
-
-$highlighter = new Highlighter(new ConsoleColor());
-
-$fileContent = file_get_contents(__FILE__);
-echo $highlighter->getWholeFile($fileContent); \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/whole_file_line_numbers.php b/www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/whole_file_line_numbers.php
deleted file mode 100644
index f9178f2d..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/examples/whole_file_line_numbers.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-use JakubOnderka\PhpConsoleColor\ConsoleColor;
-use JakubOnderka\PhpConsoleHighlighter\Highlighter;
-
-require __DIR__ . '/../vendor/autoload.php';
-
-$highlighter = new Highlighter(new ConsoleColor());
-
-$fileContent = file_get_contents(__FILE__);
-echo $highlighter->getWholeFileWithLineNumbers($fileContent); \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/phpunit.xml b/www/wiki/vendor/jakub-onderka/php-console-highlighter/phpunit.xml
deleted file mode 100644
index 74011d9d..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/phpunit.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit bootstrap="tests/bootstrap.php">
- <testsuites>
- <testsuite>
- <directory>tests/*</directory>
- </testsuite>
- </testsuites>
-
- <!-- Ignore vendor folder for code coverage -->
- <filter>
- <blacklist>
- <directory>vendor</directory>
- </blacklist>
- </filter>
-</phpunit> \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/src/JakubOnderka/PhpConsoleHighlighter/Highlighter.php b/www/wiki/vendor/jakub-onderka/php-console-highlighter/src/JakubOnderka/PhpConsoleHighlighter/Highlighter.php
deleted file mode 100644
index b908e931..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/src/JakubOnderka/PhpConsoleHighlighter/Highlighter.php
+++ /dev/null
@@ -1,267 +0,0 @@
-<?php
-namespace JakubOnderka\PhpConsoleHighlighter;
-
-use JakubOnderka\PhpConsoleColor\ConsoleColor;
-
-class Highlighter
-{
- const TOKEN_DEFAULT = 'token_default',
- TOKEN_COMMENT = 'token_comment',
- TOKEN_STRING = 'token_string',
- TOKEN_HTML = 'token_html',
- TOKEN_KEYWORD = 'token_keyword';
-
- const ACTUAL_LINE_MARK = 'actual_line_mark',
- LINE_NUMBER = 'line_number';
-
- /** @var ConsoleColor */
- private $color;
-
- /** @var array */
- private $defaultTheme = array(
- self::TOKEN_STRING => 'red',
- self::TOKEN_COMMENT => 'yellow',
- self::TOKEN_KEYWORD => 'green',
- self::TOKEN_DEFAULT => 'default',
- self::TOKEN_HTML => 'cyan',
-
- self::ACTUAL_LINE_MARK => 'red',
- self::LINE_NUMBER => 'dark_gray',
- );
-
- /**
- * @param ConsoleColor $color
- */
- public function __construct(ConsoleColor $color)
- {
- $this->color = $color;
-
- foreach ($this->defaultTheme as $name => $styles) {
- if (!$this->color->hasTheme($name)) {
- $this->color->addTheme($name, $styles);
- }
- }
- }
-
- /**
- * @param string $source
- * @param int $lineNumber
- * @param int $linesBefore
- * @param int $linesAfter
- * @return string
- * @throws \JakubOnderka\PhpConsoleColor\InvalidStyleException
- * @throws \InvalidArgumentException
- */
- public function getCodeSnippet($source, $lineNumber, $linesBefore = 2, $linesAfter = 2)
- {
- $tokenLines = $this->getHighlightedLines($source);
-
- $offset = $lineNumber - $linesBefore - 1;
- $offset = max($offset, 0);
- $length = $linesAfter + $linesBefore + 1;
- $tokenLines = array_slice($tokenLines, $offset, $length, $preserveKeys = true);
-
- $lines = $this->colorLines($tokenLines);
-
- return $this->lineNumbers($lines, $lineNumber);
- }
-
- /**
- * @param string $source
- * @return string
- * @throws \JakubOnderka\PhpConsoleColor\InvalidStyleException
- * @throws \InvalidArgumentException
- */
- public function getWholeFile($source)
- {
- $tokenLines = $this->getHighlightedLines($source);
- $lines = $this->colorLines($tokenLines);
- return implode(PHP_EOL, $lines);
- }
-
- /**
- * @param string $source
- * @return string
- * @throws \JakubOnderka\PhpConsoleColor\InvalidStyleException
- * @throws \InvalidArgumentException
- */
- public function getWholeFileWithLineNumbers($source)
- {
- $tokenLines = $this->getHighlightedLines($source);
- $lines = $this->colorLines($tokenLines);
- return $this->lineNumbers($lines);
- }
-
- /**
- * @param string $source
- * @return array
- */
- private function getHighlightedLines($source)
- {
- $source = str_replace(array("\r\n", "\r"), "\n", $source);
- $tokens = $this->tokenize($source);
- return $this->splitToLines($tokens);
- }
-
- /**
- * @param string $source
- * @return array
- */
- private function tokenize($source)
- {
- $tokens = token_get_all($source);
-
- $output = array();
- $currentType = null;
- $buffer = '';
-
- foreach ($tokens as $token) {
- if (is_array($token)) {
- switch ($token[0]) {
- case T_INLINE_HTML:
- $newType = self::TOKEN_HTML;
- break;
-
- case T_COMMENT:
- case T_DOC_COMMENT:
- $newType = self::TOKEN_COMMENT;
- break;
-
- case T_ENCAPSED_AND_WHITESPACE:
- case T_CONSTANT_ENCAPSED_STRING:
- $newType = self::TOKEN_STRING;
- break;
-
- case T_WHITESPACE:
- break;
-
- case T_OPEN_TAG:
- case T_OPEN_TAG_WITH_ECHO:
- case T_CLOSE_TAG:
- case T_STRING:
- case T_VARIABLE:
-
- // Constants
- case T_DIR:
- case T_FILE:
- case T_METHOD_C:
- case T_DNUMBER:
- case T_LNUMBER:
- case T_NS_C:
- case T_LINE:
- case T_CLASS_C:
- case T_FUNC_C:
- //case T_TRAIT_C:
- $newType = self::TOKEN_DEFAULT;
- break;
-
- default:
- // Compatibility with PHP 5.3
- if (defined('T_TRAIT_C') && $token[0] === T_TRAIT_C) {
- $newType = self::TOKEN_DEFAULT;
- } else {
- $newType = self::TOKEN_KEYWORD;
- }
- }
- } else {
- $newType = $token === '"' ? self::TOKEN_STRING : self::TOKEN_KEYWORD;
- }
-
- if ($currentType === null) {
- $currentType = $newType;
- }
-
- if ($currentType != $newType) {
- $output[] = array($currentType, $buffer);
- $buffer = '';
- $currentType = $newType;
- }
-
- $buffer .= is_array($token) ? $token[1] : $token;
- }
-
- if (isset($newType)) {
- $output[] = array($newType, $buffer);
- }
-
- return $output;
- }
-
- /**
- * @param array $tokens
- * @return array
- */
- private function splitToLines(array $tokens)
- {
- $lines = array();
-
- $line = array();
- foreach ($tokens as $token) {
- foreach (explode("\n", $token[1]) as $count => $tokenLine) {
- if ($count > 0) {
- $lines[] = $line;
- $line = array();
- }
-
- if ($tokenLine === '') {
- continue;
- }
-
- $line[] = array($token[0], $tokenLine);
- }
- }
-
- $lines[] = $line;
-
- return $lines;
- }
-
- /**
- * @param array $tokenLines
- * @return array
- * @throws \JakubOnderka\PhpConsoleColor\InvalidStyleException
- * @throws \InvalidArgumentException
- */
- private function colorLines(array $tokenLines)
- {
- $lines = array();
- foreach ($tokenLines as $lineCount => $tokenLine) {
- $line = '';
- foreach ($tokenLine as $token) {
- list($tokenType, $tokenValue) = $token;
- if ($this->color->hasTheme($tokenType)) {
- $line .= $this->color->apply($tokenType, $tokenValue);
- } else {
- $line .= $tokenValue;
- }
- }
- $lines[$lineCount] = $line;
- }
-
- return $lines;
- }
-
- /**
- * @param array $lines
- * @param null|int $markLine
- * @return string
- * @throws \JakubOnderka\PhpConsoleColor\InvalidStyleException
- */
- private function lineNumbers(array $lines, $markLine = null)
- {
- end($lines);
- $lineStrlen = strlen(key($lines) + 1);
-
- $snippet = '';
- foreach ($lines as $i => $line) {
- if ($markLine !== null) {
- $snippet .= ($markLine === $i + 1 ? $this->color->apply(self::ACTUAL_LINE_MARK, ' > ') : ' ');
- }
-
- $snippet .= $this->color->apply(self::LINE_NUMBER, str_pad($i + 1, $lineStrlen, ' ', STR_PAD_LEFT) . '| ');
- $snippet .= $line . PHP_EOL;
- }
-
- return $snippet;
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/tests/JakubOnderka/PhpConsoleHighligter/HigligterTest.php b/www/wiki/vendor/jakub-onderka/php-console-highlighter/tests/JakubOnderka/PhpConsoleHighligter/HigligterTest.php
deleted file mode 100644
index 269d03da..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/tests/JakubOnderka/PhpConsoleHighligter/HigligterTest.php
+++ /dev/null
@@ -1,263 +0,0 @@
-<?php
-namespace JakubOnderka\PhpConsoleHighlighter;
-
-class HighlighterTest extends \PHPUnit_Framework_TestCase
-{
- /** @var Highlighter */
- private $uut;
-
- protected function getConsoleColorMock()
- {
- $mock = $this->getMock('\JakubOnderka\PhpConsoleColor\ConsoleColor');
-
- $mock->expects($this->any())
- ->method('apply')
- ->will($this->returnCallback(function ($style, $text) {
- return "<$style>$text</$style>";
- }));
-
- $mock->expects($this->any())
- ->method('hasTheme')
- ->will($this->returnValue(true));
-
- return $mock;
- }
-
- protected function setUp()
- {
- $this->uut = new Highlighter($this->getConsoleColorMock());
- }
-
- protected function compare($original, $expected)
- {
- $output = $this->uut->getWholeFile($original);
- $this->assertEquals($expected, $output);
- }
-
- public function testVariable()
- {
- $this->compare(
- <<<EOL
-<?php
-echo \$a;
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_keyword>echo </token_keyword><token_default>\$a</token_default><token_keyword>;</token_keyword>
-EOL
- );
- }
-
- public function testInteger()
- {
- $this->compare(
- <<<EOL
-<?php
-echo 43;
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_keyword>echo </token_keyword><token_default>43</token_default><token_keyword>;</token_keyword>
-EOL
- );
- }
-
- public function testFloat()
- {
- $this->compare(
- <<<EOL
-<?php
-echo 43.3;
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_keyword>echo </token_keyword><token_default>43.3</token_default><token_keyword>;</token_keyword>
-EOL
- );
- }
-
- public function testHex()
- {
- $this->compare(
- <<<EOL
-<?php
-echo 0x43;
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_keyword>echo </token_keyword><token_default>0x43</token_default><token_keyword>;</token_keyword>
-EOL
- );
- }
-
- public function testBasicFunction()
- {
- $this->compare(
- <<<EOL
-<?php
-function plus(\$a, \$b) {
- return \$a + \$b;
-}
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_keyword>function </token_keyword><token_default>plus</token_default><token_keyword>(</token_keyword><token_default>\$a</token_default><token_keyword>, </token_keyword><token_default>\$b</token_default><token_keyword>) {</token_keyword>
-<token_keyword> return </token_keyword><token_default>\$a </token_default><token_keyword>+ </token_keyword><token_default>\$b</token_default><token_keyword>;</token_keyword>
-<token_keyword>}</token_keyword>
-EOL
- );
- }
-
- public function testStringNormal()
- {
- $this->compare(
- <<<EOL
-<?php
-echo 'Ahoj světe';
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_keyword>echo </token_keyword><token_string>'Ahoj světe'</token_string><token_keyword>;</token_keyword>
-EOL
- );
- }
-
- public function testStringDouble()
- {
- $this->compare(
- <<<EOL
-<?php
-echo "Ahoj světe";
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_keyword>echo </token_keyword><token_string>"Ahoj světe"</token_string><token_keyword>;</token_keyword>
-EOL
- );
- }
-
- public function testInstanceof()
- {
- $this->compare(
- <<<EOL
-<?php
-\$a instanceof stdClass;
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_default>\$a </token_default><token_keyword>instanceof </token_keyword><token_default>stdClass</token_default><token_keyword>;</token_keyword>
-EOL
- );
- }
-
- /*
- * Constants
- */
- public function testConstant()
- {
- $constants = array(
- '__FILE__',
- '__LINE__',
- '__CLASS__',
- '__FUNCTION__',
- '__METHOD__',
- '__TRAIT__',
- '__DIR__',
- '__NAMESPACE__'
- );
-
- foreach ($constants as $constant) {
- $this->compare(
- <<<EOL
-<?php
-$constant;
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_default>$constant</token_default><token_keyword>;</token_keyword>
-EOL
- );
- }
- }
-
- /*
- * Comments
- */
- public function testComment()
- {
- $this->compare(
- <<<EOL
-<?php
-/* Ahoj */
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_comment>/* Ahoj */</token_comment>
-EOL
- );
- }
-
- public function testDocComment()
- {
- $this->compare(
- <<<EOL
-<?php
-/** Ahoj */
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_comment>/** Ahoj */</token_comment>
-EOL
- );
- }
-
- public function testInlineComment()
- {
- $this->compare(
- <<<EOL
-<?php
-// Ahoj
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_comment>// Ahoj</token_comment>
-EOL
- );
- }
-
- public function testHashComment()
- {
- $this->compare(
- <<<EOL
-<?php
-# Ahoj
-EOL
- ,
- <<<EOL
-<token_default><?php</token_default>
-<token_comment># Ahoj</token_comment>
-EOL
- );
- }
-
- public function testEmpty()
- {
- $this->compare(
- ''
- ,
- ''
- );
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-console-highlighter/tests/bootstrap.php b/www/wiki/vendor/jakub-onderka/php-console-highlighter/tests/bootstrap.php
deleted file mode 100644
index 7500417e..00000000
--- a/www/wiki/vendor/jakub-onderka/php-console-highlighter/tests/bootstrap.php
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-$loader = require_once __DIR__ . '/../vendor/autoload.php'; \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/.gitignore b/www/wiki/vendor/jakub-onderka/php-parallel-lint/.gitignore
deleted file mode 100644
index 8b7ef350..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/vendor
-composer.lock
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/.travis.yml b/www/wiki/vendor/jakub-onderka/php-parallel-lint/.travis.yml
deleted file mode 100644
index 72dac1c1..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/.travis.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-language: php
-
-php:
- - 5.3.3
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - hhvm
-
-sudo: false
-
-cache:
- directories:
- - vendor
- - $HOME/.composer/cache
-
-before_script:
- - composer self-update
- - composer install --no-interaction --prefer-source --dev
- - composer require jakub-onderka/php-console-highlighter 0.3
-
-script:
- - ./vendor/bin/tester -p php tests
- - ./parallel-lint --exclude vendor --exclude tests/examples --no-colors .
- - ./parallel-lint --exclude vendor --exclude tests/examples .
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/LICENSE b/www/wiki/vendor/jakub-onderka/php-parallel-lint/LICENSE
deleted file mode 100644
index 09429bbf..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/LICENSE
+++ /dev/null
@@ -1,26 +0,0 @@
-Copyright (c) 2012, Jakub Onderka
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
-either expressed or implied, of the FreeBSD Project.
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/README.md b/www/wiki/vendor/jakub-onderka/php-parallel-lint/README.md
deleted file mode 100644
index 821c2a10..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/README.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# PHP Parallel Lint
-This tool check syntax of PHP files faster then serial check with fancier output.
-
-Running parallel jobs in PHP inspired by Nette framework tests.
-
-
-## Install
-Just create a `composer.json` file and run the `php composer.phar install` command to install it:
-
-```json
-{
- "require-dev": {
- "jakub-onderka/php-parallel-lint": "0.*"
- }
-}
-```
-
-For colored output install suggested package `jakub-onderka/php-console-highlighter`. After a `composer.json` file include:
-
-```json
-{
- "require-dev": {
- "jakub-onderka/php-parallel-lint": "0.*",
- "jakub-onderka/php-console-highlighter": "0.*"
- }
-}
-```
-
-
-## Example output
-![Alt text](/tests/examples/example-images/use-error.png?raw=true "Example use of tool with error")
-
-
-## Options for run
-- `-p <php>` Specify PHP-CGI executable to run (default: 'php').
-- `-s, --short` Set short_open_tag to On (default: Off).
-- `-a, -asp` Set asp_tags to On (default: Off).
-- `-e <ext>` Check only files with selected extensions separated by comma. (default: php,php3,php4,php5,phtml)
-- `--exclude` Exclude directory. If you want exclude multiple directories, use multiple exclude parameters.
-- `-j <num>` Run <num> jobs in parallel (default: 10).
-- `--no-colors` Disable colors in console output.
-- `--json` Output results as JSON string (require PHP 5.4).
-- `--blame` Try to show git blame for row with error.
-- `--git <git>` Path to Git executable to show blame message (default: 'git').
-- `--stdin` Load files and folder to test from standard input.
-- `--ignore-fails` Ignore failed tests.
-- `-h, --help` Print this help.
-
-
-## Recommended setting for usage with Symfony framework
-For run from command line:
-
-```
-$ ./bin/parallel-lint --exclude app --exclude vendor .
-```
-
-or setting for ANT:
-
-```xml
-<condition property="parallel-lint" value="${basedir}/bin/parallel-lint.bat" else="${basedir}/bin/parallel-lint">
- <os family="windows"/>
-</condition>
-
-<target name="parallel-lint" description="Run PHP parallel lint">
- <exec executable="${parallel-lint}" failonerror="true">
- <arg line="--exclude" />
- <arg path="${basedir}/app/" />
- <arg line="--exclude" />
- <arg path="${basedir}/vendor/" />
- <arg path="${basedir}" />
- </exec>
-</target>
-```
-
-## Create Phar package
-PHP Parallel Lint supports [Box app](https://box-project.github.io/box2/) for creating Phar package. First, install box app:
-
-```
-curl -LSs https://box-project.github.io/box2/installer.php | php
-```
-
-and then run this command in parallel lint folder, which creates `parallel-lint.phar` file.
-
-```
-box build
-```
-
-------
-
-[![Downloads this Month](https://img.shields.io/packagist/dm/jakub-onderka/php-parallel-lint.svg)](https://packagist.org/packages/jakub-onderka/php-parallel-lint)
-[![Build Status](https://travis-ci.org/JakubOnderka/PHP-Parallel-Lint.svg?branch=master)](https://travis-ci.org/JakubOnderka/PHP-Parallel-Lint)
-[![Build status](https://ci.appveyor.com/api/projects/status/5n3qqa3r66aoghjo/branch/master?svg=true)](https://ci.appveyor.com/project/JakubOnderka/php-parallel-lint/branch/master)
-[![License](https://poser.pugx.org/jakub-onderka/php-parallel-lint/license.svg)](https://packagist.org/packages/jakub-onderka/php-parallel-lint)
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/appveyor.yml b/www/wiki/vendor/jakub-onderka/php-parallel-lint/appveyor.yml
deleted file mode 100644
index 2d558dc3..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/appveyor.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-build: off
-cache:
- - c:\php -> appveyor.yml
- - '%LOCALAPPDATA%\Composer\files -> appveyor.yml'
-
-clone_folder: c:\projects\php-parallel-lint
-
-init:
- - SET PATH=c:\php;%PATH%
- - SET INSTALL_PHP=1
- - SET ANSICON=121x90 (121x90)
-
-install:
- # Install PHP
- - IF EXIST c:\php (SET INSTALL_PHP=0) ELSE (mkdir c:\php)
- - IF %INSTALL_PHP%==1 cd c:\php
- - IF %INSTALL_PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.6.15-nts-Win32-VC11-x86.zip
- - IF %INSTALL_PHP%==1 7z x php-5.6.15-nts-Win32-VC11-x86.zip >nul
- - IF %INSTALL_PHP%==1 del /Q *.zip
- - cd c:\projects\php-parallel-lint
-
- # Install Composer dependencies
- - appveyor DownloadFile https://getcomposer.org/composer.phar
- - php composer.phar install --no-interaction --prefer-source --no-progress
-
-test_script:
- - vendor\bin\tester tests -p php
- - php parallel-lint.php --exclude vendor --exclude tests\examples --no-colors .
- - php parallel-lint.php --exclude vendor --exclude tests\examples .
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/bin/skip-linting.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/bin/skip-linting.php
deleted file mode 100644
index 91edff60..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/bin/skip-linting.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-$stdin = fopen('php://stdin', 'r');
-$input = stream_get_contents($stdin);
-fclose($stdin);
-
-foreach (explode(PHP_EOL, $input) as $file) {
- $skip = false;
- $f = @fopen($file, 'r');
- if ($f) {
- $firstLine = fgets($f);
- @fclose($f);
-
- if (!preg_match('~<?php\\s*\\/\\/\s*lint\s*([^\d\s]+)\s*([^\s]+)\s*~i', $firstLine, $m)) {
- $skip = false;
- }
-
- $skip = isset($m[2]) && !version_compare(PHP_VERSION, $m[2], $m[1]);
- }
-
- echo $file . ';' . ($skip ? '1' : '0') . PHP_EOL;
-}
-
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/box.json b/www/wiki/vendor/jakub-onderka/php-parallel-lint/box.json
deleted file mode 100644
index 951802d1..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/box.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "output": "parallel-lint.phar",
- "chmod": "0755",
- "compactors": [
- "Herrera\\Box\\Compactor\\Php"
- ],
- "extract": false,
- "main": "parallel-lint.php",
- "files": [
- "LICENSE"
- ],
- "finder": [
- {
- "name": ["*.php"],
- "exclude": ["Tests", "tests"],
- "in": "vendor"
- },
- {
- "exclude": ["Tests"],
- "in": "src"
- },
- {
- "in": "bin"
- }
- ],
- "stub": true,
- "web": false
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/composer.json b/www/wiki/vendor/jakub-onderka/php-parallel-lint/composer.json
deleted file mode 100644
index e60aff43..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/composer.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "jakub-onderka/php-parallel-lint",
- "description": "This tool check syntax of PHP files about 20x faster than serial check.",
- "homepage": "https://github.com/JakubOnderka/PHP-Parallel-Lint",
- "license": "BSD-2-Clause",
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "nette/tester": "~1.3",
- "jakub-onderka/php-console-highlighter": "~0.3"
- },
- "suggest": {
- "jakub-onderka/php-console-highlighter": "Highlight syntax in code snippet"
- },
- "authors": [
- {
- "name": "Jakub Onderka",
- "email": "jakub.onderka@gmail.com"
- }
- ],
- "autoload": {
- "classmap": [
- "./"
- ]
- },
- "bin": ["parallel-lint"]
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/parallel-lint b/www/wiki/vendor/jakub-onderka/php-parallel-lint/parallel-lint
deleted file mode 100755
index cb320718..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/parallel-lint
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-require __DIR__ . '/parallel-lint.php';
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/parallel-lint.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/parallel-lint.php
deleted file mode 100644
index b051499a..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/parallel-lint.php
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php
-use JakubOnderka\PhpParallelLint;
-
-if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50303) {
- echo "PHP Parallel Lint require PHP 5.3.3 or newer.\n";
- die(255);
-}
-const SUCCESS = 0,
- WITH_ERRORS = 1,
- FAILED = 255;
-
-function showOptions()
-{
-?>
-Options:
- -p <php> Specify PHP-CGI executable to run (default: 'php').
- -s, --short Set short_open_tag to On (default: Off).
- -a, -asp Set asp_tags to On (default: Off).
- -e <ext> Check only files with selected extensions separated by comma.
- (default: php,php3,php4,php5,phtml)
- --exclude Exclude directory. If you want exclude multiple directories, use
- multiple exclude parameters.
- -j <num> Run <num> jobs in parallel (default: 10).
- --no-colors Disable colors in console output.
- --json Output results as JSON string (require PHP 5.4).
- --blame Try to show git blame for row with error.
- --git <git> Path to Git executable to show blame message (default: 'git').
- --stdin Load files and folder to test from standard input.
- --ignore-fails Ignore failed tests.
- -h, --help Print this help.
-<?php
-}
-
-function showUsage()
-{
- ?>
-PHP Parallel Lint version 0.9.1
--------------------------------
-Usage:
- parallel-lint [sa] [-p php] [-e ext] [-j num] [--exclude dir] [files or directories]
-
-<?php
-showOptions();
-die();
-}
-
-if (in_array('-h', $_SERVER['argv']) || in_array('--help', $_SERVER['argv'])) {
- showUsage();
-}
-
-$files = array(
- __DIR__ . '/../../autoload.php',
- __DIR__ . '/vendor/autoload.php'
-);
-
-$autoloadFileFound = false;
-foreach ($files as $file) {
- if (file_exists($file)) {
- require $file;
- $autoloadFileFound = true;
- break;
- }
-}
-
-if (!$autoloadFileFound) {
- echo 'You need to set up the project dependencies using the following commands:' . PHP_EOL .
- 'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
- 'php composer.phar install' . PHP_EOL;
- die(FAILED);
-}
-
-try {
- $settings = PhpParallelLint\Settings::parseArguments($_SERVER['argv']);
-
- if ($settings->json && PHP_VERSION_ID < 50400) {
- throw new \Exception('JSON output require PHP version 5.4 and newer.');
- }
-
- if ($settings->stdin) {
- $settings->addPaths(PhpParallelLint\Settings::getPathsFromStdIn());
- }
-
- if (empty($settings->paths)) {
- showUsage();
- }
-
- $manager = new PhpParallelLint\Manager;
- $result = $manager->run($settings);
-
- if ($settings->ignoreFails) {
- die($result->hasSyntaxError() ? WITH_ERRORS : SUCCESS);
- } else {
- die($result->hasError() ? WITH_ERRORS : SUCCESS);
- }
-
-} catch (PhpParallelLint\InvalidArgumentException $e) {
- echo "Invalid option {$e->getArgument()}" . PHP_EOL . PHP_EOL;
- showOptions();
- die(FAILED);
-
-} catch (PhpParallelLint\Exception $e) {
- if ($settings->json) {
- echo json_encode($e);
- } else {
- echo $e->getMessage(), PHP_EOL;
- }
- die(FAILED);
-
-} catch (Exception $e) {
- echo $e->getMessage(), PHP_EOL;
- die(FAILED);
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/phpcs-ruleset.xml b/www/wiki/vendor/jakub-onderka/php-parallel-lint/phpcs-ruleset.xml
deleted file mode 100644
index 3aa686e8..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/phpcs-ruleset.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0"?>
-<ruleset name="PHP-Parallel-Lint">
- <description>PHP Parallel Lint coding standard.</description>
-
- <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
- <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
- <rule ref="PEAR.Functions.FunctionDeclaration"/>
- <rule ref="PEAR.Functions.FunctionCallSignature"/>
- <rule ref="PEAR.Functions.FunctionCallSignature.Indent">
- <severity>0</severity>
- </rule>
- <rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine">
- <severity>0</severity>
- </rule>
- <rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket">
- <severity>0</severity>
- </rule>
- <rule ref="PEAR.Functions.ValidDefaultValue"/>
- <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
-
- <rule ref="Generic.PHP.DisallowShortOpenTag"/>
- <rule ref="Generic.PHP.LowerCaseConstant"/>
- <rule ref="Generic.PHP.NoSilencedErrors"/>
- <rule ref="Squiz.PHP.GlobalKeyword"/>
- <rule ref="Squiz.PHP.LowercasePHPFunctions"/>
- <rule ref="Squiz.PHP.NonExecutableCode"/>
- <rule ref="Generic.PHP.ForbiddenFunctions"/>
- <rule ref="Generic.PHP.DeprecatedFunctions"/>
-
- <rule ref="Generic.Strings.UnnecessaryStringConcat"/>
-
- <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
- <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
-
- <rule ref="PEAR.Classes.ClassDeclaration"/>
-
- <rule ref="Generic.ControlStructures.InlineControlStructure"/>
- <rule ref="PEAR.ControlStructures.ControlSignature"/>
-
- <rule ref="Generic.Files.LineLength">
- <properties>
- <property name="lineLimit" value="125"/>
- <property name="absoluteLineLimit" value="200"/>
- </properties>
- </rule>
- <rule ref="Zend.Files.ClosingTag"/>
- <rule ref="Generic.Files.LineEndings"/>
-
- <rule ref="Generic.NamingConventions.ConstructorName"/>
- <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
-
- <rule ref="Generic.Metrics.NestingLevel"/>
- <rule ref="Generic.Metrics.CyclomaticComplexity"/>
-
- <rule ref="Generic.CodeAnalysis.EmptyStatement"/>
- <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
- <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
- <rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
- <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
- <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
-
- <rule ref="PEAR.Commenting.InlineComment"/>
-
- <rule ref="Generic.Formatting.SpaceAfterCast"/>
- <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
-
- <rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
- <rule ref="Squiz.ControlStructures.ElseIfDeclaration"/>
- <rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
-
-</ruleset>
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Error.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Error.php
deleted file mode 100644
index 56d44647..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Error.php
+++ /dev/null
@@ -1,244 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint;
-
-/*
-Copyright (c) 2012, Jakub Onderka
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
-either expressed or implied, of the FreeBSD Project.
- */
-
-class Error implements \JsonSerializable
-{
- /** @var string */
- protected $filePath;
-
- /** @var string */
- protected $message;
-
- /**
- * @param string $filePath
- * @param string $message
- */
- public function __construct($filePath, $message)
- {
- $this->filePath = $filePath;
- $this->message = rtrim($message);
- }
-
- /**
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * @return string
- */
- public function getFilePath()
- {
- return $this->filePath;
- }
-
- /**
- * @return string
- */
- public function getShortFilePath()
- {
- return str_replace(getcwd(), '', $this->filePath);
- }
-
- /**
- * (PHP 5 &gt;= 5.4.0)<br/>
- * Specify data which should be serialized to JSON
- * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
- * @return mixed data which can be serialized by <b>json_encode</b>,
- * which is a value of any type other than a resource.
- */
- public function jsonSerialize()
- {
- return array(
- 'type' => 'error',
- 'file' => $this->getFilePath(),
- 'message' => $this->getMessage(),
- );
- }
-}
-
-class Blame implements \JsonSerializable
-{
- public $name;
-
- public $email;
-
- /** @var \DateTime */
- public $datetime;
-
- public $commitHash;
-
- public $summary;
-
- /**
- * (PHP 5 &gt;= 5.4.0)<br/>
- * Specify data which should be serialized to JSON
- * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
- * @return mixed data which can be serialized by <b>json_encode</b>,
- * which is a value of any type other than a resource.
- */
- function jsonSerialize()
- {
- return array(
- 'name' => $this->name,
- 'email' => $this->email,
- 'datetime' => $this->datetime,
- 'commitHash' => $this->commitHash,
- 'summary' => $this->summary,
- );
- }
-
-
-}
-
-class SyntaxError extends Error
-{
- /** @var Blame */
- private $blame;
-
- /**
- * @return int|null
- */
- public function getLine()
- {
- preg_match('~on line ([0-9]*)~', $this->message, $matches);
-
- if ($matches && isset($matches[1])) {
- $onLine = (int) $matches[1];
- return $onLine;
- }
-
- return null;
- }
-
- /**
- * @param bool $translateTokens
- * @return mixed|string
- */
- public function getNormalizedMessage($translateTokens = false)
- {
- $message = preg_replace('~(Parse|Fatal) error: syntax error, ~', '', $this->message);
- $message = ucfirst($message);
- $message = preg_replace('~ in (.*) on line [0-9]*~', '', $message);
-
- if ($translateTokens) {
- $message = $this->translateTokens($message);
- }
-
- return $message;
- }
-
- /**
- * @param Blame $blame
- */
- public function setBlame(Blame $blame)
- {
- $this->blame = $blame;
- }
-
- /**
- * @return Blame
- */
- public function getBlame()
- {
- return $this->blame;
- }
-
- /**
- * @param string $message
- * @return string
- */
- protected function translateTokens($message)
- {
- static $translateTokens = array(
- 'T_FILE' => '__FILE__',
- 'T_FUNC_C' => '__FUNCTION__',
- 'T_HALT_COMPILER' => '__halt_compiler()',
- 'T_INC' => '++',
- 'T_IS_EQUAL' => '==',
- 'T_IS_GREATER_OR_EQUAL' => '>=',
- 'T_IS_IDENTICAL' => '===',
- 'T_IS_NOT_IDENTICAL' => '!==',
- 'T_IS_SMALLER_OR_EQUAL' => '<=',
- 'T_LINE' => '__LINE__',
- 'T_METHOD_C' => '__METHOD__',
- 'T_MINUS_EQUAL' => '-=',
- 'T_MOD_EQUAL' => '%=',
- 'T_MUL_EQUAL' => '*=',
- 'T_NS_C' => '__NAMESPACE__',
- 'T_NS_SEPARATOR' => '\\',
- 'T_OBJECT_OPERATOR' => '->',
- 'T_OR_EQUAL' => '|=',
- 'T_PAAMAYIM_NEKUDOTAYIM' => '::',
- 'T_PLUS_EQUAL' => '+=',
- 'T_SL' => '<<',
- 'T_SL_EQUAL' => '<<=',
- 'T_SR' => '>>',
- 'T_SR_EQUAL' => '>>=',
- 'T_START_HEREDOC' => '<<<',
- 'T_XOR_EQUAL' => '^=',
- 'T_ECHO' => 'echo'
- );
-
- return preg_replace_callback('~T_([A-Z_]*)~', function ($matches) use ($translateTokens) {
- list($tokenName) = $matches;
- if (isset($translateTokens[$tokenName])) {
- $operator = $translateTokens[$tokenName];
- return "$operator ($tokenName)";
- }
-
- return $tokenName;
- }, $message);
- }
-
- /**
- * (PHP 5 &gt;= 5.4.0)<br/>
- * Specify data which should be serialized to JSON
- * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
- * @return mixed data which can be serialized by <b>json_encode</b>,
- * which is a value of any type other than a resource.
- */
- public function jsonSerialize()
- {
- return array(
- 'type' => 'syntaxError',
- 'file' => $this->getFilePath(),
- 'line' => $this->getLine(),
- 'message' => $this->getMessage(),
- 'normalizeMessage' => $this->getNormalizedMessage(),
- 'blame' => $this->blame,
- );
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/ErrorFormatter.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/ErrorFormatter.php
deleted file mode 100644
index 863e8df3..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/ErrorFormatter.php
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint;
-
-/*
-Copyright (c) 2014, Jakub Onderka
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
-either expressed or implied, of the FreeBSD Project.
- */
-
-use JakubOnderka\PhpConsoleColor\ConsoleColor;
-use JakubOnderka\PhpConsoleHighlighter\Highlighter;
-
-class ErrorFormatter
-{
- /** @var bool */
- private $useColors;
-
- /** @var bool */
- private $translateTokens;
-
- public function __construct($useColors = false, $translateTokens = false)
- {
- $this->useColors = $useColors;
- $this->translateTokens = $translateTokens;
- }
-
- /**
- * @param Error $error
- * @return string
- */
- public function format(Error $error)
- {
- if ($error instanceof SyntaxError) {
- return $this->formatSyntaxErrorMessage($error);
- } else {
- if ($error->getMessage()) {
- return $error->getMessage();
- } else {
- return "Unknown error for file '{$error->getFilePath()}'.";
- }
- }
- }
-
- /**
- * @param SyntaxError $error
- * @param bool $withCodeSnipped
- * @return string
- */
- public function formatSyntaxErrorMessage(SyntaxError $error, $withCodeSnipped = true)
- {
- $string = "Parse error: {$error->getShortFilePath()}";
-
- if ($error->getLine()) {
- $onLine = $error->getLine();
- $string .= ":$onLine" . PHP_EOL;
-
- if ($withCodeSnipped) {
- if ($this->useColors) {
- $string .= $this->getColoredCodeSnippet($error->getFilePath(), $onLine);
- } else {
- $string .= $this->getCodeSnippet($error->getFilePath(), $onLine);
- }
- }
- }
-
- $string .= $error->getNormalizedMessage($this->translateTokens);
-
- if ($error->getBlame()) {
- $blame = $error->getBlame();
- $shortCommitHash = substr($blame->commitHash, 0, 8);
- $dateTime = $blame->datetime->format('c');
- $string .= PHP_EOL . "Blame {$blame->name} <{$blame->email}>, commit '$shortCommitHash' from $dateTime";
- }
-
- return $string;
- }
-
- /**
- * @param string $filePath
- * @param int $lineNumber
- * @param int $linesBefore
- * @param int $linesAfter
- * @return string
- */
- protected function getCodeSnippet($filePath, $lineNumber, $linesBefore = 2, $linesAfter = 2)
- {
- $lines = file($filePath);
-
- $offset = $lineNumber - $linesBefore - 1;
- $offset = max($offset, 0);
- $length = $linesAfter + $linesBefore + 1;
- $lines = array_slice($lines, $offset, $length, $preserveKeys = true);
-
- end($lines);
- $lineStrlen = strlen(key($lines) + 1);
-
- $snippet = '';
- foreach ($lines as $i => $line) {
- $snippet .= ($lineNumber === $i + 1 ? ' > ' : ' ');
- $snippet .= str_pad($i + 1, $lineStrlen, ' ', STR_PAD_LEFT) . '| ' . rtrim($line) . PHP_EOL;
- }
-
- return $snippet;
- }
-
- /**
- * @param string $filePath
- * @param int $lineNumber
- * @param int $linesBefore
- * @param int $linesAfter
- * @return string
- */
- protected function getColoredCodeSnippet($filePath, $lineNumber, $linesBefore = 2, $linesAfter = 2)
- {
- if (
- !class_exists('\JakubOnderka\PhpConsoleHighlighter\Highlighter') ||
- !class_exists('\JakubOnderka\PhpConsoleColor\ConsoleColor')
- ) {
- return $this->getCodeSnippet($filePath, $lineNumber, $linesBefore, $linesAfter);
- }
-
- $colors = new ConsoleColor();
- $colors->setForceStyle(true);
- $highlighter = new Highlighter($colors);
-
- $fileContent = file_get_contents($filePath);
- return $highlighter->getCodeSnippet($fileContent, $lineNumber, $linesBefore, $linesAfter);
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/JsonSerializable.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/JsonSerializable.php
deleted file mode 100644
index dde24f55..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/JsonSerializable.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-if (!interface_exists('JsonSerializable')) {
- interface JsonSerializable {
- public function jsonSerialize();
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Manager.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Manager.php
deleted file mode 100644
index 1f38e31b..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Manager.php
+++ /dev/null
@@ -1,272 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint;
-
-/*
-Copyright (c) 2012, Jakub Onderka
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
-either expressed or implied, of the FreeBSD Project.
- */
-
-use JakubOnderka\PhpParallelLint\Process\GitBlameProcess;
-use JakubOnderka\PhpParallelLint\Process\PhpExecutable;
-
-class Manager
-{
- /** @var Output */
- protected $output;
-
- /**
- * @param null|Settings $settings
- * @return Result
- * @throws \Exception
- */
- public function run(Settings $settings = null)
- {
- $settings = $settings ?: new Settings;
- $output = $this->output ?: $this->getDefaultOutput($settings);
-
- $phpExecutable = PhpExecutable::getPhpExecutable($settings->phpExecutable);
- $translateTokens = $phpExecutable->isIsHhvmType() || $phpExecutable->getVersionId() < 50400; // From PHP version 5.4 are tokens translated by default
-
- $output->writeHeader($phpExecutable->getVersionId(), $settings->parallelJobs, $phpExecutable->getHhvmVersion());
-
- $files = $this->getFilesFromPaths($settings->paths, $settings->extensions, $settings->excluded);
-
- if (empty($files)) {
- throw new Exception('No file found to check.');
- }
-
- $output->setTotalFileCount(count($files));
-
- $parallelLint = new ParallelLint($phpExecutable, $settings->parallelJobs);
- $parallelLint->setAspTagsEnabled($settings->aspTags);
- $parallelLint->setShortTagEnabled($settings->shortTag);
-
- $parallelLint->setProcessCallback(function ($status, $file) use ($output) {
- if ($status === ParallelLint::STATUS_OK) {
- $output->ok();
- } elseif ($status === ParallelLint::STATUS_SKIP) {
- $output->skip();
- } elseif ($status === ParallelLint::STATUS_ERROR) {
- $output->error();
- } else {
- $output->fail();
- }
- });
-
- $result = $parallelLint->lint($files);
-
- if ($settings->blame) {
- $this->gitBlame($result, $settings);
- }
-
- $output->writeResult($result, new ErrorFormatter($settings->colors, $translateTokens), $settings->ignoreFails);
-
- return $result;
- }
-
- /**
- * @param Output $output
- */
- public function setOutput(Output $output)
- {
- $this->output = $output;
- }
-
- /**
- * @param Settings $settings
- * @return Output
- */
- protected function getDefaultOutput(Settings $settings)
- {
- $writer = new ConsoleWriter;
- if ($settings->json) {
- return new JsonOutput($writer);
- } else {
- return ($settings->colors ? new TextOutputColored($writer) : new TextOutput($writer));
- }
- }
-
- /**
- * @param Result $result
- * @param Settings $settings
- * @throws Exception
- */
- protected function gitBlame(Result $result, Settings $settings)
- {
- if (!GitBlameProcess::gitExists($settings->gitExecutable)) {
- return;
- }
-
- foreach ($result->getErrors() as $error) {
- if ($error instanceof SyntaxError) {
- $process = new GitBlameProcess($settings->gitExecutable, $error->getFilePath(), $error->getLine());
- $process->waitForFinish();
-
- if ($process->isSuccess()) {
- $blame = new Blame;
- $blame->name = $process->getAuthor();
- $blame->email = $process->getAuthorEmail();
- $blame->datetime = $process->getAuthorTime();
- $blame->commitHash = $process->getCommitHash();
- $blame->summary = $process->getSummary();
-
- $error->setBlame($blame);
- }
- }
- }
- }
-
- /**
- * @param array $paths
- * @param array $extensions
- * @param array $excluded
- * @return array
- * @throws NotExistsPathException
- */
- protected function getFilesFromPaths(array $paths, array $extensions, array $excluded = array())
- {
- $extensions = array_flip($extensions);
- $files = array();
-
- foreach ($paths as $path) {
- if (is_file($path)) {
- $files[] = $path;
- } elseif (is_dir($path)) {
- $iterator = new \RecursiveDirectoryIterator($path, \FilesystemIterator::SKIP_DOTS);
- if (!empty($excluded)) {
- $iterator = new RecursiveDirectoryFilterIterator($iterator, $excluded);
- }
- $iterator = new \RecursiveIteratorIterator(
- $iterator,
- \RecursiveIteratorIterator::LEAVES_ONLY,
- \RecursiveIteratorIterator::CATCH_GET_CHILD
- );
-
- /** @var \SplFileInfo[] $iterator */
- foreach ($iterator as $directoryFile) {
- if (isset($extensions[pathinfo($directoryFile->getFilename(), PATHINFO_EXTENSION)])) {
- $files[] = (string) $directoryFile;
- }
- }
- } else {
- throw new NotExistsPathException($path);
- }
- }
-
- $files = array_unique($files);
-
- return $files;
- }
-}
-
-class RecursiveDirectoryFilterIterator extends \RecursiveFilterIterator
-{
- /** @var \RecursiveDirectoryIterator */
- private $iterator;
-
- /** @var array */
- private $excluded = array();
-
- /**
- * @param \RecursiveDirectoryIterator $iterator
- * @param array $excluded
- */
- public function __construct(\RecursiveDirectoryIterator $iterator, array $excluded)
- {
- parent::__construct($iterator);
- $this->iterator = $iterator;
- $this->excluded = array_map(array($this, 'getPathname'), $excluded);
- }
-
- /**
- * (PHP 5 &gt;= 5.1.0)<br/>
- * Check whether the current element of the iterator is acceptable
- *
- * @link http://php.net/manual/en/filteriterator.accept.php
- * @return bool true if the current element is acceptable, otherwise false.
- */
- public function accept()
- {
- $current = $this->current()->getPathname();
- $current = $this->normalizeDirectorySeparator($current);
-
- if ('.' . DIRECTORY_SEPARATOR !== $current[0] . $current[1]) {
- $current = '.' . DIRECTORY_SEPARATOR . $current;
- }
-
- return !in_array($current, $this->excluded);
- }
-
- /**
- * (PHP 5 &gt;= 5.1.0)<br/>
- * Check whether the inner iterator's current element has children
- *
- * @link http://php.net/manual/en/recursivefilteriterator.haschildren.php
- * @return bool true if the inner iterator has children, otherwise false
- */
- public function hasChildren()
- {
- return $this->iterator->hasChildren();
- }
-
- /**
- * (PHP 5 &gt;= 5.1.0)<br/>
- * Return the inner iterator's children contained in a RecursiveFilterIterator
- *
- * @link http://php.net/manual/en/recursivefilteriterator.getchildren.php
- * @return \RecursiveFilterIterator containing the inner iterator's children.
- */
- public function getChildren()
- {
- return new self($this->iterator->getChildren(), $this->excluded);
- }
-
- /**
- * @param string $file
- * @return string
- */
- private function getPathname($file)
- {
- $file = $this->normalizeDirectorySeparator($file);
-
- if ('.' . DIRECTORY_SEPARATOR !== $file[0] . $file[1]) {
- $file = '.' . DIRECTORY_SEPARATOR . $file;
- }
-
- $directoryFile = new \SplFileInfo($file);
- return $directoryFile->getPathname();
- }
-
- /**
- * @param string $file
- * @return string
- */
- private function normalizeDirectorySeparator($file)
- {
- return str_replace(array('\\', '/'), DIRECTORY_SEPARATOR, $file);
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Output.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Output.php
deleted file mode 100644
index bb64a82b..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Output.php
+++ /dev/null
@@ -1,449 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint;
-
-/*
-Copyright (c) 2012, Jakub Onderka
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
-either expressed or implied, of the FreeBSD Project.
- */
-
-interface Output
-{
- public function __construct(IWriter $writer);
-
- public function ok();
-
- public function skip();
-
- public function error();
-
- public function fail();
-
- public function setTotalFileCount($count);
-
- public function writeHeader($phpVersion, $parallelJobs, $hhvmVersion = null);
-
- public function writeResult(Result $result, ErrorFormatter $errorFormatter, $ignoreFails);
-}
-
-class JsonOutput implements Output
-{
- /** @var IWriter */
- protected $writer;
-
- /** @var int */
- protected $phpVersion;
-
- /** @var int */
- protected $parallelJobs;
-
- /** @var string */
- protected $hhvmVersion;
-
- /**
- * @param IWriter $writer
- */
- public function __construct(IWriter $writer)
- {
- $this->writer = $writer;
- }
-
- public function ok()
- {
-
- }
-
- public function skip()
- {
-
- }
-
- public function error()
- {
-
- }
-
- public function fail()
- {
-
- }
-
- public function setTotalFileCount($count)
- {
-
- }
-
- public function writeHeader($phpVersion, $parallelJobs, $hhvmVersion = null)
- {
- $this->phpVersion = $phpVersion;
- $this->parallelJobs = $parallelJobs;
- $this->hhvmVersion = $hhvmVersion;
- }
-
- public function writeResult(Result $result, ErrorFormatter $errorFormatter, $ignoreFails)
- {
- echo json_encode(array(
- 'phpVersion' => $this->phpVersion,
- 'hhvmVersion' => $this->hhvmVersion,
- 'parallelJobs' => $this->parallelJobs,
- 'results' => $result,
- ));
- }
-}
-
-class TextOutput implements Output
-{
- const TYPE_DEFAULT = 'default',
- TYPE_SKIP = 'skip',
- TYPE_ERROR = 'error',
- TYPE_OK = 'ok';
-
- /** @var int */
- public $filesPerLine = 60;
-
- /** @var int */
- protected $checkedFiles;
-
- /** @var int */
- protected $totalFileCount;
-
- /** @var IWriter */
- protected $writer;
-
- /**
- * @param IWriter $writer
- */
- public function __construct(IWriter $writer)
- {
- $this->writer = $writer;
- }
-
- public function ok()
- {
- $this->writer->write('.');
- $this->progress();
- }
-
- public function skip()
- {
- $this->write('S', self::TYPE_SKIP);
- $this->progress();
- }
-
- public function error()
- {
- $this->write('X', self::TYPE_ERROR);
- $this->progress();
- }
-
- public function fail()
- {
- $this->writer->write('-');
- $this->progress();
- }
-
- /**
- * @param string $string
- * @param string $type
- */
- public function write($string, $type = self::TYPE_DEFAULT)
- {
- $this->writer->write($string);
- }
-
- /**
- * @param string|null $line
- * @param string $type
- */
- public function writeLine($line = null, $type = self::TYPE_DEFAULT)
- {
- $this->write($line, $type);
- $this->writeNewLine();
- }
-
- /**
- * @param int $count
- */
- public function writeNewLine($count = 1)
- {
- $this->write(str_repeat(PHP_EOL, $count));
- }
-
- /**
- * @param int $count
- */
- public function setTotalFileCount($count)
- {
- $this->totalFileCount = $count;
- }
-
- /**
- * @param int $phpVersion
- * @param int $parallelJobs
- * @param string $hhvmVersion
- */
- public function writeHeader($phpVersion, $parallelJobs, $hhvmVersion = null)
- {
- $this->write("PHP {$this->phpVersionIdToString($phpVersion)} | ");
-
- if ($hhvmVersion) {
- $this->write("HHVM $hhvmVersion | ");
- }
-
- if ($parallelJobs === 1) {
- $this->writeLine("1 job");
- } else {
- $this->writeLine("{$parallelJobs} parallel jobs");
- }
- }
-
- /**
- * @param Result $result
- * @param ErrorFormatter $errorFormatter
- * @param bool $ignoreFails
- */
- public function writeResult(Result $result, ErrorFormatter $errorFormatter, $ignoreFails)
- {
- if ($this->checkedFiles % $this->filesPerLine !== 0) {
- $rest = $this->filesPerLine - ($this->checkedFiles % $this->filesPerLine);
- $this->write(str_repeat(' ', $rest));
- $this->writeProgress();
- }
-
- $this->writeNewLine(2);
-
- $testTime = round($result->getTestTime(), 1);
- $message = "Checked {$result->getCheckedFilesCount()} files in $testTime ";
- $message .= $testTime == 1 ? 'second' : 'seconds';
-
- if ($result->getSkippedFilesCount() > 0) {
- $message .= ", skipped {$result->getSkippedFilesCount()} ";
- $message .= ($result->getSkippedFilesCount() === 1 ? 'file' : 'files');
- }
-
- $this->writeLine($message);
-
- if (!$result->hasSyntaxError()) {
- $message = "No syntax error found";
- } else {
- $message = "Syntax error found in {$result->getFilesWithSyntaxErrorCount()} ";
- $message .= ($result->getFilesWithSyntaxErrorCount() === 1 ? 'file' : 'files');
- }
-
- if ($result->hasFilesWithFail()) {
- $message .= ", failed to check {$result->getFilesWithFailCount()} ";
- $message .= ($result->getFilesWithFailCount() === 1 ? 'file' : 'files');
-
- if ($ignoreFails) {
- $message .= ' (ignored)';
- }
- }
-
- $hasError = $ignoreFails ? $result->hasSyntaxError() : $result->hasError();
- $this->writeLine($message, $hasError ? self::TYPE_ERROR : self::TYPE_OK);
-
- if ($result->hasError()) {
- $this->writeNewLine();
- foreach ($result->getErrors() as $error) {
- $this->writeLine(str_repeat('-', 60));
- $this->writeLine($errorFormatter->format($error));
- }
- }
- }
-
- protected function progress()
- {
- ++$this->checkedFiles;
-
- if ($this->checkedFiles % $this->filesPerLine === 0) {
- $this->writeProgress();
- }
- }
-
- protected function writeProgress()
- {
- $percent = floor($this->checkedFiles / $this->totalFileCount * 100);
- $current = $this->stringWidth($this->checkedFiles, strlen($this->totalFileCount));
- $this->writeLine(" $current/$this->totalFileCount ($percent %)");
- }
-
- /**
- * @param string $input
- * @param int $width
- * @return string
- */
- protected function stringWidth($input, $width = 3)
- {
- $multiplier = $width - strlen($input);
- return str_repeat(' ', $multiplier > 0 ? $multiplier : 0) . $input;
- }
-
- /**
- * @param int $phpVersionId
- * @return string
- */
- protected function phpVersionIdToString($phpVersionId)
- {
- $releaseVersion = (int) substr($phpVersionId, -2, 2);
- $minorVersion = (int) substr($phpVersionId, -4, 2);
- $majorVersion = (int) substr($phpVersionId, 0, strlen($phpVersionId) - 4);
-
- return "$majorVersion.$minorVersion.$releaseVersion";
- }
-}
-
-class TextOutputColored extends TextOutput
-{
- /** @var \JakubOnderka\PhpConsoleColor\ConsoleColor */
- private $colors;
-
- public function __construct(IWriter $writer)
- {
- parent::__construct($writer);
-
- if (class_exists('\JakubOnderka\PhpConsoleColor\ConsoleColor')) {
- $this->colors = new \JakubOnderka\PhpConsoleColor\ConsoleColor();
- $this->colors->setForceStyle(true);
- }
- }
-
- /**
- * @param string $string
- * @param string $type
- * @throws \JakubOnderka\PhpConsoleColor\InvalidStyleException
- */
- public function write($string, $type = self::TYPE_DEFAULT)
- {
- if (!$this->colors instanceof \JakubOnderka\PhpConsoleColor\ConsoleColor) {
- parent::write($string, $type);
- } else {
- switch ($type) {
- case self::TYPE_OK:
- parent::write($this->colors->apply('bg_green', $string));
- break;
-
- case self::TYPE_SKIP:
- parent::write($this->colors->apply('bg_yellow', $string));
- break;
-
- case self::TYPE_ERROR:
- parent::write($this->colors->apply('bg_red', $string));
- break;
-
- default:
- parent::write($string);
- }
- }
- }
-}
-
-interface IWriter
-{
- /**
- * @param string $string
- */
- public function write($string);
-}
-
-class NullWriter implements IWriter
-{
- /**
- * @param string $string
- */
- public function write($string)
- {
-
- }
-}
-
-class ConsoleWriter implements IWriter
-{
- /**
- * @param string $string
- */
- public function write($string)
- {
- echo $string;
- }
-}
-
-class FileWriter implements IWriter
-{
- /** @var string */
- protected $logFile;
-
- /** @var string */
- protected $buffer;
-
- public function __construct($logFile)
- {
- $this->logFile = $logFile;
- }
-
- public function write($string)
- {
- $this->buffer .= $string;
- }
-
- public function __destruct()
- {
- file_put_contents($this->logFile, $this->buffer);
- }
-}
-
-class MultipleWriter implements IWriter
-{
- /** @var IWriter[] */
- protected $writers;
-
- /**
- * @param IWriter[] $writers
- */
- public function __construct(array $writers)
- {
- foreach ($writers as $writer) {
- $this->addWriter($writer);
- }
- }
-
- /**
- * @param IWriter $writer
- */
- public function addWriter(IWriter $writer)
- {
- $this->writers[] = $writer;
- }
-
- /**
- * @param $string
- */
- public function write($string)
- {
- foreach ($this->writers as $writer) {
- $writer->write($string);
- }
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/ParallelLint.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/ParallelLint.php
deleted file mode 100644
index d491d349..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/ParallelLint.php
+++ /dev/null
@@ -1,261 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint;
-
-/*
-Copyright (c) 2012, Jakub Onderka
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
-either expressed or implied, of the FreeBSD Project.
- */
-
-use JakubOnderka\PhpParallelLint\Process\LintProcess;
-use JakubOnderka\PhpParallelLint\Process\PhpExecutable;
-use JakubOnderka\PhpParallelLint\Process\SkipLintProcess;
-
-class ParallelLint
-{
- const STATUS_OK = 'ok',
- STATUS_SKIP = 'skip',
- STATUS_FAIL = 'fail',
- STATUS_ERROR = 'error';
-
- /** @var int */
- private $parallelJobs;
-
- /** @var PhpExecutable */
- private $phpExecutable;
-
- /** @var bool */
- private $aspTagsEnabled = false;
-
- /** @var bool */
- private $shortTagEnabled = false;
-
- /** @var callable */
- private $processCallback;
-
- public function __construct(PhpExecutable $phpExecutable, $parallelJobs = 10)
- {
- $this->phpExecutable = $phpExecutable;
- $this->parallelJobs = $parallelJobs;
- }
-
- /**
- * @param array $files
- * @return Result
- * @throws \Exception
- */
- public function lint(array $files)
- {
- $startTime = microtime(true);
-
- $skipLintProcess = new SkipLintProcess($this->phpExecutable, $files);
-
- $processCallback = is_callable($this->processCallback) ? $this->processCallback : function() {};
-
- /**
- * @var LintProcess[] $running
- * @var LintProcess[] $waiting
- */
- $errors = $running = $waiting = array();
- $skippedFiles = $checkedFiles = array();
-
- while ($files || $running) {
- for ($i = count($running); $files && $i < $this->parallelJobs; $i++) {
- $file = array_shift($files);
-
- if ($skipLintProcess->isSkipped($file) === true) {
- $skippedFiles[] = $file;
- $processCallback(self::STATUS_SKIP, $file);
- } else {
- $running[$file] = new LintProcess(
- $this->phpExecutable,
- $file,
- $this->aspTagsEnabled,
- $this->shortTagEnabled
- );
- }
- }
-
- $skipLintProcess->getChunk();
- usleep(100);
-
- foreach ($running as $file => $process) {
- if ($process->isFinished()) {
- unset($running[$file]);
-
- $skipStatus = $skipLintProcess->isSkipped($file);
- if ($skipStatus === null) {
- $waiting[$file] = $process;
-
- } elseif ($skipStatus === true) {
- $skippedFiles[] = $file;
- $processCallback(self::STATUS_SKIP, $file);
-
- } elseif ($process->isSuccess()) {
- $checkedFiles[] = $file;
- $processCallback(self::STATUS_OK, $file);
-
- } elseif ($process->hasSyntaxError()) {
- $checkedFiles[] = $file;
- $errors[] = new SyntaxError($file, $process->getSyntaxError());
- $processCallback(self::STATUS_ERROR, $file);
-
- } else {
- $errors[] = new Error($file, $process->getOutput());
- $processCallback(self::STATUS_FAIL, $file);
- }
- }
- }
- }
-
- if (!empty($waiting)) {
- $skipLintProcess->waitForFinish();
-
- foreach ($waiting as $file => $process) {
- $skipStatus = $skipLintProcess->isSkipped($file);
- if ($skipStatus === null) {
- throw new \Exception("File $file has empty skip status. Please contact PHP Parallel Lint author.");
-
- } elseif ($skipStatus === true) {
- $skippedFiles[] = $file;
- $processCallback(self::STATUS_SKIP, $file);
-
- } elseif ($process->isSuccess()) {
- $checkedFiles[] = $file;
- $processCallback(self::STATUS_OK, $file);
-
- } elseif ($process->hasSyntaxError()) {
- $checkedFiles[] = $file;
- $errors[] = new SyntaxError($file, $process->getSyntaxError());
- $processCallback(self::STATUS_ERROR, $file);
-
- } else {
- $errors[] = new Error($file, $process->getOutput());
- $processCallback(self::STATUS_FAIL, $file);
- }
- }
- }
-
- $testTime = microtime(true) - $startTime;
-
- return new Result($errors, $checkedFiles, $skippedFiles, $testTime);
- }
-
- /**
- * @return int
- */
- public function getParallelJobs()
- {
- return $this->parallelJobs;
- }
-
- /**
- * @param int $parallelJobs
- * @return ParallelLint
- */
- public function setParallelJobs($parallelJobs)
- {
- $this->parallelJobs = $parallelJobs;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getPhpExecutable()
- {
- return $this->phpExecutable;
- }
-
- /**
- * @param string $phpExecutable
- * @return ParallelLint
- */
- public function setPhpExecutable($phpExecutable)
- {
- $this->phpExecutable = $phpExecutable;
-
- return $this;
- }
-
- /**
- * @return callable
- */
- public function getProcessCallback()
- {
- return $this->processCallback;
- }
-
- /**
- * @param callable $processCallback
- * @return ParallelLint
- */
- public function setProcessCallback($processCallback)
- {
- $this->processCallback = $processCallback;
-
- return $this;
- }
-
- /**
- * @return boolean
- */
- public function isAspTagsEnabled()
- {
- return $this->aspTagsEnabled;
- }
-
- /**
- * @param boolean $aspTagsEnabled
- * @return ParallelLint
- */
- public function setAspTagsEnabled($aspTagsEnabled)
- {
- $this->aspTagsEnabled = $aspTagsEnabled;
-
- return $this;
- }
-
- /**
- * @return boolean
- */
- public function isShortTagEnabled()
- {
- return $this->shortTagEnabled;
- }
-
- /**
- * @param boolean $shortTagEnabled
- * @return ParallelLint
- */
- public function setShortTagEnabled($shortTagEnabled)
- {
- $this->shortTagEnabled = $shortTagEnabled;
-
- return $this;
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/GitBlameProcess.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/GitBlameProcess.php
deleted file mode 100644
index 640a83cd..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/GitBlameProcess.php
+++ /dev/null
@@ -1,143 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint\Process;
-
-use JakubOnderka\PhpParallelLint\RunTimeException;
-
-class GitBlameProcess extends Process
-{
- /**
- * @param string $gitExecutable
- * @param string $file
- * @param int $line
- */
- public function __construct($gitExecutable, $file, $line)
- {
- $cmd = escapeshellcmd($gitExecutable) . " blame -p -L $line,+1 " . escapeshellarg($file);
- parent::__construct($cmd);
- }
-
- /**
- * @return bool
- */
- public function isSuccess()
- {
- return $this->getStatusCode() === 0;
- }
-
- /**
- * @return string
- * @throws RunTimeException
- */
- public function getAuthor()
- {
- if (!$this->isSuccess()) {
- throw new RunTimeException("Author can be taken only for success process output.");
- }
-
- $output = $this->getOutput();
- preg_match('~^author (.*)~m', $output, $matches);
- return $matches[1];
- }
-
- /**
- * @return string
- * @throws RunTimeException
- */
- public function getAuthorEmail()
- {
- if (!$this->isSuccess()) {
- throw new RunTimeException("Author e-mail can be taken only for success process output.");
- }
-
- $output = $this->getOutput();
- preg_match('~^author-mail <(.*)>~m', $output, $matches);
- return $matches[1];
- }
-
- /**
- * @return \DateTime
- * @throws RunTimeException
- */
- public function getAuthorTime()
- {
- if (!$this->isSuccess()) {
- throw new RunTimeException("Author time can be taken only for success process output.");
- }
-
- $output = $this->getOutput();
-
- preg_match('~^author-time (.*)~m', $output, $matches);
- $time = $matches[1];
-
- preg_match('~^author-tz (.*)~m', $output, $matches);
- $zone = $matches[1];
-
- return $this->getDateTime($time, $zone);
- }
-
- /**
- * @return string
- * @throws RunTimeException
- */
- public function getCommitHash()
- {
- if (!$this->isSuccess()) {
- throw new RunTimeException("Commit hash can be taken only for success process output.");
- }
-
- return substr($this->getOutput(), 0, strpos($this->getOutput(), ' '));
- }
-
- /**
- * @return string
- * @throws RunTimeException
- */
- public function getSummary()
- {
- if (!$this->isSuccess()) {
- throw new RunTimeException("Commit summary can be taken only for success process output.");
- }
-
- $output = $this->getOutput();
- preg_match('~^summary (.*)~m', $output, $matches);
- return $matches[1];
- }
-
- /**
- * @param string $gitExecutable
- * @return bool
- */
- public static function gitExists($gitExecutable)
- {
- $process = new Process(escapeshellcmd($gitExecutable) . ' --version');
- $process->waitForFinish();
- return $process->getStatusCode() === 0;
- }
-
- /**
- * This harakiri method is required to correct support time zone in PHP 5.4
- *
- * @param int $time
- * @param string $zone
- * @return \DateTime
- */
- protected function getDateTime($time, $zone)
- {
- $utcTimeZone = new \DateTimeZone('UTC');
- $datetime = \DateTime::createFromFormat('U', $time, $utcTimeZone);
-
- $way = substr($zone, 0, 1);
- $hours = (int) substr($zone, 1, 2);
- $minutes = (int) substr($zone, 3, 2);
-
- $interval = new \DateInterval("PT{$hours}H{$minutes}M");
-
- if ($way === '+') {
- $datetime->add($interval);
- } else {
- $datetime->sub($interval);
- }
-
- return new \DateTime($datetime->format('Y-m-d\TH:i:s') . $zone, $utcTimeZone);
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/LintProcess.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/LintProcess.php
deleted file mode 100644
index a411d645..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/LintProcess.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint\Process;
-
-class LintProcess extends PhpProcess
-{
- /**
- * @param PhpExecutable $phpExecutable
- * @param string $fileToCheck Path to file to check
- * @param bool $aspTags
- * @param bool $shortTag
- */
- public function __construct(PhpExecutable $phpExecutable, $fileToCheck, $aspTags = false, $shortTag = false)
- {
- if (empty($fileToCheck)) {
- throw new \InvalidArgumentException("File to check must be set.");
- }
-
- $parameters = array(
- '-d asp_tags=' . ($aspTags ? 'On' : 'Off'),
- '-d short_open_tag=' . ($shortTag ? 'On' : 'Off'),
- '-d error_reporting=E_ALL',
- '-n',
- '-l',
- escapeshellarg($fileToCheck),
- );
-
- parent::__construct($phpExecutable, $parameters);
- }
-
- /**
- * @return bool
- */
- public function hasSyntaxError()
- {
- return strpos($this->getOutput(), 'Fatal error') !== false ||
- strpos($this->getOutput(), 'Parse error') !== false;
- }
-
- /**
- * @return bool|string
- */
- public function getSyntaxError()
- {
- if ($this->hasSyntaxError()) {
- list(, $out) = explode("\n", $this->getOutput());
- return $out;
- }
-
- return false;
- }
-
- /**
- * @return bool
- */
- public function isFail()
- {
- return defined('PHP_WINDOWS_VERSION_MAJOR') ? $this->getStatusCode() === 1 : parent::isFail();
- }
-
- /**
- * @return bool
- */
- public function isSuccess()
- {
- return $this->getStatusCode() === 0;
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/PhpExecutable.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/PhpExecutable.php
deleted file mode 100644
index 5593a911..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/PhpExecutable.php
+++ /dev/null
@@ -1,128 +0,0 @@
-<?php
-
-namespace JakubOnderka\PhpParallelLint\Process;
-
-use JakubOnderka\PhpParallelLint\RunTimeException;
-
-class PhpExecutable
-{
- /** @var string */
- private $path;
-
- /**
- * Version as PHP_VERSION_ID constant
- * @var int
- */
- private $versionId;
-
- /** @var string */
- private $hhvmVersion;
-
- /** @var bool */
- private $isHhvmType;
-
- /**
- * @param string $path
- * @param int $versionId
- * @param string $hhvmVersion
- * @param bool $isHhvmType
- */
- public function __construct($path, $versionId, $hhvmVersion, $isHhvmType)
- {
- $this->path = $path;
- $this->versionId = $versionId;
- $this->hhvmVersion = $hhvmVersion;
- $this->isHhvmType = $isHhvmType;
- }
-
- /**
- * @return string
- */
- public function getHhvmVersion()
- {
- return $this->hhvmVersion;
- }
-
- /**
- * @return boolean
- */
- public function isIsHhvmType()
- {
- return $this->isHhvmType;
- }
-
- /**
- * @return string
- */
- public function getPath()
- {
- return $this->path;
- }
-
- /**
- * @return int
- */
- public function getVersionId()
- {
- return $this->versionId;
- }
-
- /**
- * @param string $phpExecutable
- * @return PhpExecutable
- * @throws \Exception
- */
- public static function getPhpExecutable($phpExecutable)
- {
- $codeToExecute = <<<PHP
-echo 'PHP;', PHP_VERSION_ID, ';', defined('HPHP_VERSION') ? HPHP_VERSION : null;
-PHP;
-
- $process = new Process(escapeshellarg($phpExecutable) . ' -n -r ' . escapeshellarg($codeToExecute));
- $process->waitForFinish();
-
- try {
- if ($process->getStatusCode() !== 0 && $process->getStatusCode() !== 255) {
- throw new RunTimeException("Unable to execute '{$phpExecutable}'.");
- }
-
- return self::getPhpExecutableFromOutput($phpExecutable, $process->getOutput());
-
- } catch (RunTimeException $e) {
- // Try HHVM type
- $process = new Process(escapeshellarg($phpExecutable) . ' --php -r ' . escapeshellarg($codeToExecute));
- $process->waitForFinish();
-
- if ($process->getStatusCode() !== 0 && $process->getStatusCode() !== 255) {
- throw new RunTimeException("Unable to execute '{$phpExecutable}'.");
- }
-
- return self::getPhpExecutableFromOutput($phpExecutable, $process->getOutput(), $isHhvmType = true);
- }
- }
-
- /**
- * @param string $phpExecutable
- * @param string $output
- * @param bool $isHhvmType
- * @return PhpExecutable
- * @throws RunTimeException
- */
- private static function getPhpExecutableFromOutput($phpExecutable, $output, $isHhvmType = false)
- {
- $parts = explode(';', $output);
-
- if ($parts[0] !== 'PHP' || !preg_match('~([0-9]+)~', $parts[1], $matches)) {
- throw new RunTimeException("'{$phpExecutable}' is not valid PHP binary.");
- }
-
- $hhvmVersion = isset($parts[2]) ? $parts[2] : false;
-
- return new PhpExecutable(
- $phpExecutable,
- intval($matches[1]),
- $hhvmVersion,
- $isHhvmType
- );
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/PhpProcess.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/PhpProcess.php
deleted file mode 100644
index c627ce1c..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/PhpProcess.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-namespace JakubOnderka\PhpParallelLint\Process;
-
-class PhpProcess extends Process
-{
- /**
- * @param PhpExecutable $phpExecutable
- * @param array $parameters
- * @param string|null $stdIn
- */
- public function __construct(PhpExecutable $phpExecutable, array $parameters = array(), $stdIn = null)
- {
- $cmdLine = escapeshellcmd($phpExecutable->getPath()) . ' ' . $this->constructParameters($parameters, $phpExecutable->isIsHhvmType());
- parent::__construct($cmdLine, $stdIn);
- }
-
- /**
- * @param array $parameters
- * @param bool $isHhvm
- * @return string
- */
- private function constructParameters(array $parameters, $isHhvm)
- {
- return ($isHhvm ? '--php ' : '') . implode(' ', $parameters);
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/Process.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/Process.php
deleted file mode 100644
index 947aa8c6..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/Process.php
+++ /dev/null
@@ -1,150 +0,0 @@
-<?php
-
-namespace JakubOnderka\PhpParallelLint\Process;
-
-use JakubOnderka\PhpParallelLint\RunTimeException;
-
-class Process
-{
- const STDIN = 0,
- STDOUT = 1,
- STDERR = 2;
-
- const READ = 'r',
- WRITE = 'w';
-
- /** @var resource */
- protected $process;
-
- /** @var resource */
- protected $stdout;
-
- /** @var resource */
- protected $stderr;
-
- /** @var string */
- private $output;
-
- /** @var string */
- private $errorOutput;
-
- /** @var int */
- private $statusCode;
-
- /**
- * @param string $cmdLine
- * @param string $stdInInput
- * @throws RunTimeException
- */
- public function __construct($cmdLine, $stdInInput = null)
- {
- $descriptors = array(
- self::STDIN => array('pipe', self::READ),
- self::STDOUT => array('pipe', self::WRITE),
- self::STDERR => array('pipe', self::WRITE),
- );
-
- $this->process = proc_open($cmdLine, $descriptors, $pipes, null, null, array('bypass_shell' => true));
-
- if ($this->process === false) {
- throw new RunTimeException("Cannot create new process $cmdLine");
- }
-
- list($stdin, $this->stdout, $this->stderr) = $pipes;
-
- if ($stdInInput) {
- fwrite($stdin, $stdInInput);
- }
-
- fclose($stdin);
- }
-
- /**
- * @return bool
- */
- public function isFinished()
- {
- if ($this->statusCode !== NULL) {
- return true;
- }
-
- $status = proc_get_status($this->process);
-
- if ($status['running']) {
- return false;
- } elseif ($this->statusCode === null) {
- $this->statusCode = (int) $status['exitcode'];
- }
-
- // Process outputs
- $this->output = stream_get_contents($this->stdout);
- fclose($this->stdout);
-
- $this->errorOutput = stream_get_contents($this->stderr);
- fclose($this->stderr);
-
- $statusCode = proc_close($this->process);
-
- if ($this->statusCode === null) {
- $this->statusCode = $statusCode;
- }
-
- $this->process = null;
-
- return true;
- }
-
- public function waitForFinish()
- {
- while (!$this->isFinished()) {
- usleep(100);
- }
- }
-
- /**
- * @return string
- * @throws RunTimeException
- */
- public function getOutput()
- {
- if (!$this->isFinished()) {
- throw new RunTimeException("Cannot get output for running process");
- }
-
- return $this->output;
- }
-
- /**
- * @return string
- * @throws RunTimeException
- */
- public function getErrorOutput()
- {
- if (!$this->isFinished()) {
- throw new RunTimeException("Cannot get error output for running process");
- }
-
- return $this->errorOutput;
- }
-
- /**
- * @return int
- * @throws RunTimeException
- */
- public function getStatusCode()
- {
- if (!$this->isFinished()) {
- throw new RunTimeException("Cannot get status code for running process");
- }
-
- return $this->statusCode;
- }
-
- /**
- * @return bool
- */
- public function isFail()
- {
- return $this->getStatusCode() === 1;
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/SkipLintProcess.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/SkipLintProcess.php
deleted file mode 100644
index f66bf0d0..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Process/SkipLintProcess.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint\Process;
-
-use JakubOnderka\PhpParallelLint\RunTimeException;
-
-class SkipLintProcess extends PhpProcess
-{
- /** @var array */
- private $skipped = array();
-
- /** @var bool */
- private $done = false;
-
- /** @var string */
- private $endLastChunk = '';
-
- /**
- * @param PhpExecutable $phpExecutable
- * @param array $filesToCheck
- * @throws RunTimeException
- */
- public function __construct(PhpExecutable $phpExecutable, array $filesToCheck)
- {
- $scriptPath = __DIR__ . '/../../bin/skip-linting.php';
- $script = file_get_contents($scriptPath);
-
- if (!$script) {
- throw new RunTimeException("skip-linting.php script not found in '$scriptPath'.");
- }
-
- $script = str_replace('<?php', '', $script);
-
- $parameters = array('-n', '-r ' . escapeshellarg($script));
-
- parent::__construct($phpExecutable, $parameters, implode(PHP_EOL, $filesToCheck));
- }
-
- public function getChunk()
- {
- if (!$this->isFinished()) {
- $this->processLines(fread($this->stdout, 8192));
- }
- }
-
- /**
- * @return bool
- * @throws \JakubOnderka\PhpParallelLint\RunTimeException
- */
- public function isFinished()
- {
- $isFinished = parent::isFinished();
- if ($isFinished && !$this->done) {
- $this->done = true;
- $output = $this->getOutput();
- $this->processLines($output);
- }
-
- return $isFinished;
- }
-
- /**
- * @param string $file
- * @return bool|null
- */
- public function isSkipped($file)
- {
- if (isset($this->skipped[$file])) {
- return $this->skipped[$file];
- }
-
- return null;
- }
-
- /**
- * @param string $content
- */
- private function processLines($content)
- {
- if (!empty($content)) {
- $lines = explode(PHP_EOL, $this->endLastChunk . $content);
- $this->endLastChunk = array_pop($lines);
- foreach ($lines as $line) {
- $parts = explode(';', $line);
- list($file, $status) = $parts;
- $this->skipped[$file] = $status === '1' ? true : false;
- }
- }
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Result.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Result.php
deleted file mode 100644
index 6826de13..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Result.php
+++ /dev/null
@@ -1,197 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint;
-
-/*
-Copyright (c) 2012, Jakub Onderka
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
-either expressed or implied, of the FreeBSD Project.
- */
-
-class Result implements \JsonSerializable
-{
- /** @var Error[] */
- private $errors;
-
- /** @var array */
- private $checkedFiles;
-
- /** @var array */
- private $skippedFiles;
-
- /** @var float */
- private $testTime;
-
- /**
- * @param Error[] $errors
- * @param array $checkedFiles
- * @param array $skippedFiles
- * @param float $testTime
- */
- public function __construct(array $errors, array $checkedFiles, array $skippedFiles, $testTime)
- {
- $this->errors = $errors;
- $this->checkedFiles = $checkedFiles;
- $this->skippedFiles = $skippedFiles;
- $this->testTime = $testTime;
- }
-
- /**
- * @return array
- */
- public function getErrors()
- {
- return $this->errors;
- }
-
- /**
- * @return bool
- */
- public function hasError()
- {
- return !empty($this->errors);
- }
-
- /**
- * @return array
- */
- public function getFilesWithFail()
- {
- $filesWithFail = array();
- foreach ($this->errors as $error) {
- if (!$error instanceof SyntaxError) {
- $filesWithFail[] = $error->getFilePath();
- }
- }
-
- return $filesWithFail;
- }
-
- /**
- * @return int
- */
- public function getFilesWithFailCount()
- {
- return count($this->getFilesWithFail());
- }
-
- /**
- * @return bool
- */
- public function hasFilesWithFail()
- {
- return $this->getFilesWithFailCount() !== 0;
- }
-
- /**
- * @return array
- */
- public function getCheckedFiles()
- {
- return $this->checkedFiles;
- }
-
- /**
- * @return int
- */
- public function getCheckedFilesCount()
- {
- return count($this->checkedFiles);
- }
-
- /**
- * @return array
- */
- public function getSkippedFiles()
- {
- return $this->skippedFiles;
- }
-
- /**
- * @return int
- */
- public function getSkippedFilesCount()
- {
- return count($this->skippedFiles);
- }
-
- /**
- * @return array
- */
- public function getFilesWithSyntaxError()
- {
- $filesWithSyntaxError = array();
- foreach ($this->errors as $error) {
- if ($error instanceof SyntaxError) {
- $filesWithSyntaxError[] = $error->getFilePath();
- }
- }
-
- return $filesWithSyntaxError;
- }
-
- /**
- * @return int
- */
- public function getFilesWithSyntaxErrorCount()
- {
- return count($this->getFilesWithSyntaxError());
- }
-
- /**
- * @return bool
- */
- public function hasSyntaxError()
- {
- return $this->getFilesWithSyntaxErrorCount() !== 0;
- }
-
- /**
- * @return float
- */
- public function getTestTime()
- {
- return $this->testTime;
- }
-
- /**
- * (PHP 5 &gt;= 5.4.0)<br/>
- * Specify data which should be serialized to JSON
- * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
- * @return mixed data which can be serialized by <b>json_encode</b>,
- * which is a value of any type other than a resource.
- */
- function jsonSerialize()
- {
- return array(
- 'checkedFiles' => $this->getCheckedFiles(),
- 'filesWithSyntaxError' => $this->getFilesWithSyntaxError(),
- 'skippedFiles' => $this->getSkippedFiles(),
- 'errors' => $this->getErrors(),
- );
- }
-
-
-} \ No newline at end of file
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Settings.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Settings.php
deleted file mode 100644
index 0104417a..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/Settings.php
+++ /dev/null
@@ -1,217 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint;
-
-/*
-Copyright (c) 2012, Jakub Onderka
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
-either expressed or implied, of the FreeBSD Project.
- */
-
-class Settings
-{
- /**
- * Path to PHP executable
- * @var string
- */
- public $phpExecutable = 'php';
-
- /**
- * Check code inside PHP opening short tag <? or <?= in PHP 5.3
- * @var bool
- */
- public $shortTag = false;
-
- /**
- * Check PHP code inside ASP-style <% %> tags.
- * @var bool
- */
- public $aspTags = false;
-
- /**
- * Number of jobs running in same time
- * @var int
- */
- public $parallelJobs = 10;
-
- /**
- * If path contains directory, only file with these extensions are checked
- * @var array
- */
- public $extensions = array('php', 'phtml', 'php3', 'php4', 'php5');
-
- /**
- * Array of file or directories to check
- * @var array
- */
- public $paths = array();
-
- /**
- * Dont't check files or directories
- * @var array
- */
- public $excluded = array();
-
- /**
- * Print to console with colors
- * @var bool
- */
- public $colors = true;
-
- /**
- * Output results as JSON string
- * @var bool
- */
- public $json = false;
-
- /**
- * Read files and folder to tests from standard input (blocking)
- * @var bool
- */
- public $stdin = false;
-
- /**
- * Try to show git blame for row with error
- * @var bool
- */
- public $blame = false;
-
- /**
- * Path to git executable for blame
- * @var string
- */
- public $gitExecutable = 'git';
-
- /**
- * @var bool
- */
- public $ignoreFails = false;
-
- /**
- * @param array $paths
- */
- public function addPaths(array $paths)
- {
- $this->paths = array_merge($this->paths, $paths);
- }
-
- /**
- * @param array $arguments
- * @return Settings
- * @throws InvalidArgumentException
- */
- public static function parseArguments(array $arguments)
- {
- $arguments = new ArrayIterator(array_slice($arguments, 1));
- $settings = new self;
-
- foreach ($arguments as $argument) {
- if ($argument{0} !== '-') {
- $settings->paths[] = $argument;
- } else {
- switch ($argument) {
- case '-p':
- $settings->phpExecutable = $arguments->getNext();
- break;
-
- case '-s':
- case '--short':
- $settings->shortTag = true;
- break;
-
- case '-a':
- case '--asp':
- $settings->aspTags = true;
- break;
-
- case '--exclude':
- $settings->excluded[] = $arguments->getNext();
- break;
-
- case '-e':
- $settings->extensions = array_map('trim', explode(',', $arguments->getNext()));
- break;
-
- case '-j':
- $settings->parallelJobs = max((int) $arguments->getNext(), 1);
- break;
-
- case '--no-colors':
- $settings->colors = false;
- break;
-
- case '--json':
- $settings->json = true;
- break;
-
- case '--git':
- $settings->gitExecutable = $arguments->getNext();
- break;
-
- case '--stdin':
- $settings->stdin = true;
- break;
-
- case '--blame':
- $settings->blame = true;
- break;
-
- case '--ignore-fails':
- $settings->ignoreFails = true;
- break;
-
- default:
- throw new InvalidArgumentException($argument);
- }
- }
- }
-
- return $settings;
- }
-
- /**
- * @return array
- */
- public static function getPathsFromStdIn()
- {
- $content = stream_get_contents(STDIN);
-
- if (empty($content)) {
- return array();
- }
-
- $lines = explode("\n", rtrim($content));
- return array_map('rtrim', $lines);
- }
-}
-
-class ArrayIterator extends \ArrayIterator
-{
- public function getNext()
- {
- $this->next();
- return $this->current();
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/exceptions.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/exceptions.php
deleted file mode 100644
index 97f7d54a..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/src/exceptions.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-namespace JakubOnderka\PhpParallelLint;
-
-/*
-Copyright (c) 2012, Jakub Onderka
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
-either expressed or implied, of the FreeBSD Project.
- */
-
-class Exception extends \Exception implements \JsonSerializable
-{
- public function jsonSerialize()
- {
- return array(
- 'type' => get_class($this),
- 'message' => $this->getMessage(),
- 'code' => $this->getCode(),
- );
- }
-}
-
-class RunTimeException extends Exception
-{
-
-}
-
-class InvalidArgumentException extends Exception
-{
- protected $argument;
-
- public function __construct($argument)
- {
- $this->argument = $argument;
- $this->message = "Invalid argument $argument";
- }
-
- public function getArgument()
- {
- return $this->argument;
- }
-}
-
-class NotExistsPathException extends Exception
-{
- protected $path;
-
- public function __construct($path)
- {
- $this->path = $path;
- $this->message = "Path '$path' not found";
- }
-
- public function getPath()
- {
- return $this->path;
- }
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/Manager.run.phpt b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/Manager.run.phpt
deleted file mode 100644
index 169608c7..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/Manager.run.phpt
+++ /dev/null
@@ -1,122 +0,0 @@
-<?php
-
-/**
- * @testCase
- */
-
-require __DIR__ . '/../vendor/autoload.php';
-
-use JakubOnderka\PhpParallelLint\Manager;
-use JakubOnderka\PhpParallelLint\NullWriter;
-use JakubOnderka\PhpParallelLint\Settings;
-use JakubOnderka\PhpParallelLint\TextOutput;
-use Tester\Assert;
-
-class ManagerRunTest extends Tester\TestCase
-{
- public function testBadPath()
- {
- $settings = $this->prepareSettings();
- $settings->paths = array('path/for-not-found/');
- $manager = $this->getManager($settings);
- Assert::exception(function() use ($manager, $settings) {
- $manager->run($settings);
- }, 'JakubOnderka\PhpParallelLint\NotExistsPathException');
- }
-
- public function testFilesNotFound()
- {
- $settings = $this->prepareSettings();
- $settings->paths = array('examples/example-01/');
- $manager = $this->getManager($settings);
- Assert::exception(function() use ($manager, $settings) {
- $manager->run($settings);
- }, 'JakubOnderka\PhpParallelLint\Exception', 'No file found to check.');
- }
-
- public function testSuccess()
- {
- $settings = $this->prepareSettings();
- $settings->paths = array('examples/example-02/');
-
- $manager = $this->getManager($settings);
- $result = $manager->run($settings);
- Assert::false($result->hasError());
- }
-
- public function testError()
- {
- $settings = $this->prepareSettings();
- $settings->paths = array('examples/example-03/');
-
- $manager = $this->getManager($settings);
- $result = $manager->run($settings);
- Assert::true($result->hasError());
- }
-
- public function testExcludeRelativeSubdirectory()
- {
- $settings = $this->prepareSettings();
- $settings->paths = array('examples/example-04/');
-
- $manager = $this->getManager($settings);
- $result = $manager->run($settings);
- Assert::true($result->hasError());
-
- $settings->excluded = array('examples/example-04/dir1/dir2');
-
- $manager = $this->getManager($settings);
- $result = $manager->run($settings);
- Assert::false($result->hasError());
- }
-
- public function testExcludeAbsoluteSubdirectory()
- {
- $settings = $this->prepareSettings();
- $cwd = getcwd();
- $settings->paths = array($cwd . '/examples/example-04/');
- $settings->excluded = array();
-
- $manager = $this->getManager($settings);
- $result = $manager->run($settings);
- Assert::true($result->hasError());
-
- $settings->excluded = array($cwd . '/examples/example-04/dir1/dir2');
-
- $manager = $this->getManager($settings);
- $result = $manager->run($settings);
- Assert::false($result->hasError());
- }
-
- /**
- * @param Settings $settings
- * @return Manager
- */
- private function getManager(Settings $settings)
- {
- $manager = new Manager($settings);
- $manager->setOutput(new TextOutput(new NullWriter()));
- return $manager;
- }
-
- /**
- * @return JakubOnderka\PhpParallelLint\Settings
- */
- private function prepareSettings()
- {
- $settings = new Settings();
- $settings->phpExecutable = 'php';
- $settings->shortTag = false;
- $settings->aspTags = false;
- $settings->parallelJobs = 10;
- $settings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5');
- $settings->paths = array('FOR-SET');
- $settings->excluded = array();
- $settings->colors = false;
-
- return $settings;
- }
-}
-
-$testCase = new ManagerRunTest;
-$testCase->run();
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/ParallelLint.lint.phpt b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/ParallelLint.lint.phpt
deleted file mode 100644
index 2aecb127..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/ParallelLint.lint.phpt
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-
-/**
- * @testCase
- */
-
-require __DIR__ . '/../vendor/autoload.php';
-
-use JakubOnderka\PhpParallelLint\ParallelLint;
-use Tester\Assert;
-
-class ParallelLintLintTest extends Tester\TestCase
-{
- public function testSettersAndGetters()
- {
- $phpExecutable = $this->getPhpExecutable();
- $parallelLint = new ParallelLint($phpExecutable, 10);
- Assert::equal($phpExecutable, $parallelLint->getPhpExecutable());
- Assert::equal(10, $parallelLint->getParallelJobs());
-
- $phpExecutable2 = $this->getPhpExecutable();
- $parallelLint->setPhpExecutable($phpExecutable2);
- Assert::equal($phpExecutable2, $parallelLint->getPhpExecutable());
-
- $parallelLint->setParallelJobs(33);
- Assert::equal(33, $parallelLint->getParallelJobs());
-
- $parallelLint->setShortTagEnabled(true);
- Assert::true($parallelLint->isShortTagEnabled());
-
- $parallelLint->setAspTagsEnabled(true);
- Assert::true($parallelLint->isAspTagsEnabled());
-
- $parallelLint->setShortTagEnabled(false);
- Assert::false($parallelLint->isShortTagEnabled());
-
- $parallelLint->setAspTagsEnabled(false);
- Assert::false($parallelLint->isAspTagsEnabled());
- }
-
- public function testEmptyArray()
- {
- $parallelLint = new ParallelLint($this->getPhpExecutable());
- $result = $parallelLint->lint(array());
-
- Assert::equal(0, $result->getCheckedFilesCount());
- Assert::equal(0, $result->getFilesWithSyntaxErrorCount());
- Assert::false($result->hasSyntaxError());
- Assert::equal(0, count($result->getErrors()));
- }
-
- public function testNotExistsFile()
- {
- $parallelLint = new ParallelLint($this->getPhpExecutable());
- $result = $parallelLint->lint(array('path/for-not-found/'));
-
- Assert::equal(0, $result->getCheckedFilesCount());
- Assert::equal(0, $result->getFilesWithSyntaxErrorCount());
- Assert::false($result->hasSyntaxError());
- Assert::equal(1, count($result->getErrors()));
- }
-
- public function testEmptyFile()
- {
- $parallelLint = new ParallelLint($this->getPhpExecutable());
- $result = $parallelLint->lint(array(__DIR__ . '/examples/example-01/empty-file'));
-
- Assert::equal(1, $result->getCheckedFilesCount());
- Assert::equal(0, $result->getFilesWithSyntaxErrorCount());
- Assert::false($result->hasSyntaxError());
- Assert::equal(0, count($result->getErrors()));
- }
-
- public function testValidFile()
- {
- $parallelLint = new ParallelLint($this->getPhpExecutable());
- $result = $parallelLint->lint(array(__DIR__ . '/examples/example-02/example.php'));
-
- Assert::equal(1, $result->getCheckedFilesCount());
- Assert::equal(0, $result->getFilesWithSyntaxErrorCount());
- Assert::equal(0, count($result->getErrors()));
- }
-
- public function testInvalidFile()
- {
- $parallelLint = new ParallelLint($this->getPhpExecutable());
- $result = $parallelLint->lint(array(__DIR__ . '/examples/example-03/example.php'));
-
- Assert::equal(1, $result->getCheckedFilesCount());
- Assert::equal(1, $result->getFilesWithSyntaxErrorCount());
- Assert::true($result->hasSyntaxError());
- Assert::equal(1, count($result->getErrors()));
- }
-
- public function testValidAndInvalidFiles()
- {
- $parallelLint = new ParallelLint($this->getPhpExecutable());
- $result = $parallelLint->lint(array(
- __DIR__ . '/examples/example-02/example.php',
- __DIR__ . '/examples/example-03/example.php',
- ));
-
- Assert::equal(2, $result->getCheckedFilesCount());
- Assert::equal(1, $result->getFilesWithSyntaxErrorCount());
- Assert::true($result->hasSyntaxError());
- Assert::equal(1, count($result->getErrors()));
- }
-
- private function getPhpExecutable()
- {
- return \JakubOnderka\PhpParallelLint\Process\PhpExecutable::getPhpExecutable('php');
- }
-}
-
-$testCase = new ParallelLintLintTest;
-$testCase->run();
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/Settings.parseArguments.phpt b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/Settings.parseArguments.phpt
deleted file mode 100644
index 1c12c95a..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/Settings.parseArguments.phpt
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-/**
- * @testCase
- */
-
-require __DIR__ . '/../vendor/autoload.php';
-
-use JakubOnderka\PhpParallelLint\Settings;
-use Tester\Assert;
-
-class SettingsParseArgumentsTest extends Tester\TestCase
-{
- public function testNoneArguments()
- {
- $commandLine = "./parallel-lint .";
- $argv = explode(" ", $commandLine);
- $settings = Settings::parseArguments($argv);
-
- $expectedSettings = new Settings();
- $expectedSettings->phpExecutable = 'php';
- $expectedSettings->shortTag = false;
- $expectedSettings->aspTags = false;
- $expectedSettings->parallelJobs = 10;
- $expectedSettings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5');
- $expectedSettings->paths = array('.');
- $expectedSettings->excluded = array();
- $expectedSettings->colors = true;
- $expectedSettings->json = false;
-
- Assert::equal($expectedSettings->phpExecutable, $settings->phpExecutable);
- Assert::equal($expectedSettings->shortTag, $settings->shortTag);
- Assert::equal($expectedSettings->aspTags, $settings->aspTags);
- Assert::equal($expectedSettings->parallelJobs, $settings->parallelJobs);
- Assert::equal($expectedSettings->extensions, $settings->extensions);
- Assert::equal($expectedSettings->paths, $settings->paths);
- Assert::equal($expectedSettings->excluded, $settings->excluded);
- Assert::equal($expectedSettings->colors, $settings->colors);
- Assert::equal($expectedSettings->json, $settings->json);
- }
-
- public function testMoreArguments()
- {
- $commandLine = "./parallel-lint --exclude vendor --no-colors .";
- $argv = explode(" ", $commandLine);
- $settings = Settings::parseArguments($argv);
-
- $expectedSettings = new Settings();
- $expectedSettings->phpExecutable = 'php';
- $expectedSettings->shortTag = false;
- $expectedSettings->aspTags = false;
- $expectedSettings->parallelJobs = 10;
- $expectedSettings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5');
- $expectedSettings->paths = array('.');
- $expectedSettings->excluded = array('vendor');
- $expectedSettings->colors = false;
- $expectedSettings->json = false;
-
- Assert::equal($expectedSettings->phpExecutable, $settings->phpExecutable);
- Assert::equal($expectedSettings->shortTag, $settings->shortTag);
- Assert::equal($expectedSettings->aspTags, $settings->aspTags);
- Assert::equal($expectedSettings->parallelJobs, $settings->parallelJobs);
- Assert::equal($expectedSettings->extensions, $settings->extensions);
- Assert::equal($expectedSettings->paths, $settings->paths);
- Assert::equal($expectedSettings->excluded, $settings->excluded);
- Assert::equal($expectedSettings->colors, $settings->colors);
- Assert::equal($expectedSettings->json, $settings->json);
- }
-}
-
-$testCase = new SettingsParseArgumentsTest;
-$testCase->run();
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/SkipLintProcess.phpt b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/SkipLintProcess.phpt
deleted file mode 100644
index fa4fe854..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/SkipLintProcess.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-/**
- * @testCase
- */
-
-require __DIR__ . '/../vendor/autoload.php';
-
-use Tester\Assert;
-
-class SkipLintProcessTest extends Tester\TestCase
-{
- public function testLargeInput()
- {
- $filesToCheck = array(
- __DIR__ . '/skip-on-5.3/class.php',
- __DIR__ . '/skip-on-5.3/trait.php',
- );
-
- for ($i = 0; $i < 15; $i++) {
- $filesToCheck = array_merge($filesToCheck, $filesToCheck);
- }
-
- $phpExecutable = \JakubOnderka\PhpParallelLint\Process\PhpExecutable::getPhpExecutable('php');
- $process = new \JakubOnderka\PhpParallelLint\Process\SkipLintProcess($phpExecutable, $filesToCheck);
-
- while (!$process->isFinished()) {
- usleep(100);
- $process->getChunk();
- }
-
- foreach ($filesToCheck as $fileToCheck) {
- $status = $process->isSkipped($fileToCheck);
- Assert::notEqual(null, $status);
- }
- }
-}
-
-$skipLintProcessTest = new SkipLintProcessTest;
-$skipLintProcessTest->run();
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-01/empty-file b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-01/empty-file
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-01/empty-file
+++ /dev/null
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-02/example.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-02/example.php
deleted file mode 100644
index 2186cb4a..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-02/example.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-
-$myInteger = 100;
-echo $myInteger;
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-03/example.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-03/example.php
deleted file mode 100644
index 2b037450..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-03/example.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-
-$myInteger = 1;
-echo $;
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/dir1/dir2/index.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/dir1/dir2/index.php
deleted file mode 100644
index c50d1245..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/dir1/dir2/index.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$foo ='bar'
-echo $foo;
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/dir1/index.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/dir1/index.php
deleted file mode 100644
index 8644320d..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/dir1/index.php
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-$foo = 'bar';
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/index.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/index.php
deleted file mode 100644
index 8644320d..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-04/index.php
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-$foo = 'bar';
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-images/use-error.png b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-images/use-error.png
deleted file mode 100644
index 666b3d6c..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/examples/example-images/use-error.png
+++ /dev/null
Binary files differ
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/class.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/class.php
deleted file mode 100644
index e9166f3d..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/class.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-
-class ExampleClass
-{
-
-}
diff --git a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/trait.php b/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/trait.php
deleted file mode 100644
index 64fc31e3..00000000
--- a/www/wiki/vendor/jakub-onderka/php-parallel-lint/tests/skip-on-5.3/trait.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php // lint >= 5.4
-
-trait ExampleTrait
-{
-
-}
diff --git a/www/wiki/vendor/jetbrains/phpstorm-stubs b/www/wiki/vendor/jetbrains/phpstorm-stubs
deleted file mode 160000
-Subproject 1b9906084d6635456fcf3f3a01f0d7d5b99a578
diff --git a/www/wiki/vendor/justinrainbow/json-schema/.gitattributes b/www/wiki/vendor/justinrainbow/json-schema/.gitattributes
deleted file mode 100644
index beeff5b8..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/.gitattributes
+++ /dev/null
@@ -1,5 +0,0 @@
-/docs export-ignore
-/tests export-ignore
-.gitignore export-ignore
-.travis.yml export-ignore
-phpunit.dist.xml export-ignore
diff --git a/www/wiki/vendor/justinrainbow/json-schema/.php_cs.dist b/www/wiki/vendor/justinrainbow/json-schema/.php_cs.dist
deleted file mode 100644
index 0b5e2b2c..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/.php_cs.dist
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-$finder = new PhpCsFixer\Finder();
-$config = new PhpCsFixer\Config('json-schema');
-$finder->in(__DIR__);
-
-/* Based on ^2.1 of php-cs-fixer */
-$config
- ->setRules(array(
- // default
- '@PSR2' => true,
- '@Symfony' => true,
- // additionally
- 'array_syntax' => array('syntax' => 'long'),
- 'binary_operator_spaces' => false,
- 'concat_space' => array('spacing' => 'one'),
- 'no_useless_else' => true,
- 'no_useless_return' => true,
- 'ordered_imports' => true,
- 'phpdoc_no_package' => false,
- 'phpdoc_order' => true,
- 'phpdoc_summary' => false,
- 'pre_increment' => false,
- 'simplified_null_return' => false,
- 'trailing_comma_in_multiline_array' => false,
- ))
- ->setFinder($finder)
-;
-
-return $config;
diff --git a/www/wiki/vendor/justinrainbow/json-schema/LICENSE b/www/wiki/vendor/justinrainbow/json-schema/LICENSE
deleted file mode 100644
index fa020fce..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2016
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/www/wiki/vendor/justinrainbow/json-schema/README.md b/www/wiki/vendor/justinrainbow/json-schema/README.md
deleted file mode 100644
index 8df14db7..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/README.md
+++ /dev/null
@@ -1,206 +0,0 @@
-# JSON Schema for PHP
-
-[![Build Status](https://travis-ci.org/justinrainbow/json-schema.svg?branch=master)](https://travis-ci.org/justinrainbow/json-schema)
-[![Latest Stable Version](https://poser.pugx.org/justinrainbow/json-schema/v/stable.png)](https://packagist.org/packages/justinrainbow/json-schema)
-[![Total Downloads](https://poser.pugx.org/justinrainbow/json-schema/downloads.png)](https://packagist.org/packages/justinrainbow/json-schema)
-
-A PHP Implementation for validating `JSON` Structures against a given `Schema`.
-
-See [json-schema](http://json-schema.org/) for more details.
-
-## Installation
-
-### Library
-
-```bash
-git clone https://github.com/justinrainbow/json-schema.git
-```
-
-### Composer
-
-[Install PHP Composer](https://getcomposer.org/doc/00-intro.md)
-
-```bash
-composer require justinrainbow/json-schema
-```
-
-## Usage
-
-```php
-<?php
-
-$data = json_decode(file_get_contents('data.json'));
-
-// Validate
-$validator = new JsonSchema\Validator;
-$validator->validate($data, (object)['$ref' => 'file://' . realpath('schema.json')]);
-
-if ($validator->isValid()) {
- echo "The supplied JSON validates against the schema.\n";
-} else {
- echo "JSON does not validate. Violations:\n";
- foreach ($validator->getErrors() as $error) {
- echo sprintf("[%s] %s\n", $error['property'], $error['message']);
- }
-}
-```
-
-### Type coercion
-
-If you're validating data passed to your application via HTTP, you can cast strings and booleans to
-the expected types defined by your schema:
-
-```php
-<?php
-
-use JsonSchema\SchemaStorage;
-use JsonSchema\Validator;
-use JsonSchema\Constraints\Factory;
-use JsonSchema\Constraints\Constraint;
-
-$request = (object)[
- 'processRefund'=>"true",
- 'refundAmount'=>"17"
-];
-
-$validator->validate(
- $request, (object) [
- "type"=>"object",
- "properties"=>(object)[
- "processRefund"=>(object)[
- "type"=>"boolean"
- ],
- "refundAmount"=>(object)[
- "type"=>"number"
- ]
- ]
- ],
- Constraint::CHECK_MODE_COERCE_TYPES
-); // validates!
-
-is_bool($request->processRefund); // true
-is_int($request->refundAmount); // true
-```
-
-A shorthand method is also available:
-```PHP
-$validator->coerce($request, $schema);
-// equivalent to $validator->validate($data, $schema, Constraint::CHECK_MODE_COERCE_TYPES);
-```
-
-### Default values
-
-If your schema contains default values, you can have these automatically applied during validation:
-
-```php
-<?php
-
-use JsonSchema\Validator;
-use JsonSchema\Constraints\Constraint;
-
-$request = (object)[
- 'refundAmount'=>17
-];
-
-$validator = new Validator();
-
-$validator->validate(
- $request,
- (object)[
- "type"=>"object",
- "properties"=>(object)[
- "processRefund"=>(object)[
- "type"=>"boolean",
- "default"=>true
- ]
- ]
- ],
- Constraint::CHECK_MODE_APPLY_DEFAULTS
-); //validates, and sets defaults for missing properties
-
-is_bool($request->processRefund); // true
-$request->processRefund; // true
-```
-
-### With inline references
-
-```php
-<?php
-
-use JsonSchema\SchemaStorage;
-use JsonSchema\Validator;
-use JsonSchema\Constraints\Factory;
-
-$jsonSchema = <<<'JSON'
-{
- "type": "object",
- "properties": {
- "data": {
- "oneOf": [
- { "$ref": "#/definitions/integerData" },
- { "$ref": "#/definitions/stringData" }
- ]
- }
- },
- "required": ["data"],
- "definitions": {
- "integerData" : {
- "type": "integer",
- "minimum" : 0
- },
- "stringData" : {
- "type": "string"
- }
- }
-}
-JSON;
-
-// Schema must be decoded before it can be used for validation
-$jsonSchemaObject = json_decode($jsonSchema);
-
-// The SchemaStorage can resolve references, loading additional schemas from file as needed, etc.
-$schemaStorage = new SchemaStorage();
-
-// This does two things:
-// 1) Mutates $jsonSchemaObject to normalize the references (to file://mySchema#/definitions/integerData, etc)
-// 2) Tells $schemaStorage that references to file://mySchema... should be resolved by looking in $jsonSchemaObject
-$schemaStorage->addSchema('file://mySchema', $jsonSchemaObject);
-
-// Provide $schemaStorage to the Validator so that references can be resolved during validation
-$jsonValidator = new Validator( new Factory($schemaStorage));
-
-// JSON must be decoded before it can be validated
-$jsonToValidateObject = json_decode('{"data":123}');
-
-// Do validation (use isValid() and getErrors() to check the result)
-$jsonValidator->validate($jsonToValidateObject, $jsonSchemaObject);
-```
-
-### Configuration Options
-A number of flags are available to alter the behavior of the validator. These can be passed as the
-third argument to `Validator::validate()`, or can be provided as the third argument to
-`Factory::__construct()` if you wish to persist them across multiple `validate()` calls.
-
-| Flag | Description |
-|------|-------------|
-| `Constraint::CHECK_MODE_NORMAL` | Validate in 'normal' mode - this is the default |
-| `Constraint::CHECK_MODE_TYPE_CAST` | Enable fuzzy type checking for associative arrays and objects |
-| `Constraint::CHECK_MODE_COERCE_TYPES` | Convert data types to match the schema where possible |
-| `Constraint::CHECK_MODE_APPLY_DEFAULTS` | Apply default values from the schema if not set |
-| `Constraint::CHECK_MODE_ONLY_REQUIRED_DEFAULTS` | When applying defaults, only set values that are required |
-| `Constraint::CHECK_MODE_EXCEPTIONS` | Throw an exception immediately if validation fails |
-| `Constraint::CHECK_MODE_DISABLE_FORMAT` | Do not validate "format" constraints |
-| `Constraint::CHECK_MODE_VALIDATE_SCHEMA` | Validate the schema as well as the provided document |
-
-Please note that using `Constraint::CHECK_MODE_COERCE_TYPES` or `Constraint::CHECK_MODE_APPLY_DEFAULTS`
-will modify your original data.
-
-## Running the tests
-
-```bash
-composer test # run all unit tests
-composer testOnly TestClass # run specific unit test class
-composer testOnly TestClass::testMethod # run specific unit test method
-composer style-check # check code style for errors
-composer style-fix # automatically fix code style errors
-```
diff --git a/www/wiki/vendor/justinrainbow/json-schema/bin/validate-json b/www/wiki/vendor/justinrainbow/json-schema/bin/validate-json
deleted file mode 100755
index aeb818f0..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/bin/validate-json
+++ /dev/null
@@ -1,251 +0,0 @@
-#!/usr/bin/env php
-<?php
-/**
- * JSON schema validator
- *
- * @author Christian Weiske <christian.weiske@netresearch.de>
- */
-
-/**
- * Dead simple autoloader
- *
- * @param string $className Name of class to load
- *
- * @return void
- */
-function __autoload($className)
-{
- $className = ltrim($className, '\\');
- $fileName = '';
- if ($lastNsPos = strrpos($className, '\\')) {
- $namespace = substr($className, 0, $lastNsPos);
- $className = substr($className, $lastNsPos + 1);
- $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
- }
- $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
- if (stream_resolve_include_path($fileName)) {
- require_once $fileName;
- }
-}
-
-// support running this tool from git checkout
-if (is_dir(__DIR__ . '/../src/JsonSchema')) {
- set_include_path(__DIR__ . '/../src' . PATH_SEPARATOR . get_include_path());
-}
-
-$arOptions = array();
-$arArgs = array();
-array_shift($argv);//script itself
-foreach ($argv as $arg) {
- if ($arg{0} == '-') {
- $arOptions[$arg] = true;
- } else {
- $arArgs[] = $arg;
- }
-}
-
-if (count($arArgs) == 0
- || isset($arOptions['--help']) || isset($arOptions['-h'])
-) {
- echo <<<HLP
-Validate schema
-Usage: validate-json data.json
- or: validate-json data.json schema.json
-
-Options:
- --dump-schema Output full schema and exit
- --dump-schema-url Output URL of schema
- --verbose Show additional output
- --quiet Suppress all output
- -h --help Show this help
-
-HLP;
- exit(1);
-}
-
-if (count($arArgs) == 1) {
- $pathData = $arArgs[0];
- $pathSchema = null;
-} else {
- $pathData = $arArgs[0];
- $pathSchema = getUrlFromPath($arArgs[1]);
-}
-
-/**
- * Show the json parse error that happened last
- *
- * @return void
- */
-function showJsonError()
-{
- $constants = get_defined_constants(true);
- $json_errors = array();
- foreach ($constants['json'] as $name => $value) {
- if (!strncmp($name, 'JSON_ERROR_', 11)) {
- $json_errors[$value] = $name;
- }
- }
-
- output('JSON parse error: ' . $json_errors[json_last_error()] . "\n");
-}
-
-function getUrlFromPath($path)
-{
- if (parse_url($path, PHP_URL_SCHEME) !== null) {
- //already an URL
- return $path;
- }
- if ($path{0} == '/') {
- //absolute path
- return 'file://' . $path;
- }
-
- //relative path: make absolute
- return 'file://' . getcwd() . '/' . $path;
-}
-
-/**
- * Take a HTTP header value and split it up into parts.
- *
- * @param $headerValue
- * @return array Key "_value" contains the main value, all others
- * as given in the header value
- */
-function parseHeaderValue($headerValue)
-{
- if (strpos($headerValue, ';') === false) {
- return array('_value' => $headerValue);
- }
-
- $parts = explode(';', $headerValue);
- $arData = array('_value' => array_shift($parts));
- foreach ($parts as $part) {
- list($name, $value) = explode('=', $part);
- $arData[$name] = trim($value, ' "\'');
- }
- return $arData;
-}
-
-/**
- * Send a string to the output stream, but only if --quiet is not enabled
- *
- * @param $str string A string output
- */
-function output($str) {
- global $arOptions;
- if (!isset($arOptions['--quiet'])) {
- echo $str;
- }
-}
-
-$urlData = getUrlFromPath($pathData);
-
-$context = stream_context_create(
- array(
- 'http' => array(
- 'header' => array(
- 'Accept: */*',
- 'Connection: Close'
- ),
- 'max_redirects' => 5
- )
- )
-);
-$dataString = file_get_contents($pathData, false, $context);
-if ($dataString == '') {
- output("Data file is not readable or empty.\n");
- exit(3);
-}
-
-$data = json_decode($dataString);
-unset($dataString);
-if ($data === null) {
- output("Error loading JSON data file\n");
- showJsonError();
- exit(5);
-}
-
-if ($pathSchema === null) {
- if (isset($http_response_header)) {
- array_shift($http_response_header);//HTTP/1.0 line
- foreach ($http_response_header as $headerLine) {
- list($hName, $hValue) = explode(':', $headerLine, 2);
- $hName = strtolower($hName);
- if ($hName == 'link') {
- //Link: <http://example.org/schema#>; rel="describedBy"
- $hParts = parseHeaderValue($hValue);
- if (isset($hParts['rel']) && $hParts['rel'] == 'describedBy') {
- $pathSchema = trim($hParts['_value'], ' <>');
- }
- } else if ($hName == 'content-type') {
- //Content-Type: application/my-media-type+json;
- // profile=http://example.org/schema#
- $hParts = parseHeaderValue($hValue);
- if (isset($hParts['profile'])) {
- $pathSchema = $hParts['profile'];
- }
-
- }
- }
- }
- if (is_object($data) && property_exists($data, '$schema')) {
- $pathSchema = $data->{'$schema'};
- }
-
- //autodetect schema
- if ($pathSchema === null) {
- output("JSON data must be an object and have a \$schema property.\n");
- output("You can pass the schema file on the command line as well.\n");
- output("Schema autodetection failed.\n");
- exit(6);
- }
-}
-if ($pathSchema{0} == '/') {
- $pathSchema = 'file://' . $pathSchema;
-}
-
-$resolver = new JsonSchema\Uri\UriResolver();
-$retriever = new JsonSchema\Uri\UriRetriever();
-try {
- $urlSchema = $resolver->resolve($pathSchema, $urlData);
-
- if (isset($arOptions['--dump-schema-url'])) {
- echo $urlSchema . "\n";
- exit();
- }
-} catch (Exception $e) {
- output("Error loading JSON schema file\n");
- output($urlSchema . "\n");
- output($e->getMessage() . "\n");
- exit(2);
-}
-$refResolver = new JsonSchema\SchemaStorage($retriever, $resolver);
-$schema = $refResolver->resolveRef($urlSchema);
-
-if (isset($arOptions['--dump-schema'])) {
- $options = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0;
- echo json_encode($schema, $options) . "\n";
- exit();
-}
-
-try {
- $validator = new JsonSchema\Validator();
- $validator->check($data, $schema);
-
- if ($validator->isValid()) {
- if(isset($arOptions['--verbose'])) {
- output("OK. The supplied JSON validates against the schema.\n");
- }
- } else {
- output("JSON does not validate. Violations:\n");
- foreach ($validator->getErrors() as $error) {
- output(sprintf("[%s] %s\n", $error['property'], $error['message']));
- }
- exit(23);
- }
-} catch (Exception $e) {
- output("JSON does not validate. Error:\n");
- output($e->getMessage() . "\n");
- output("Error code: " . $e->getCode() . "\n");
- exit(24);
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/composer.json b/www/wiki/vendor/justinrainbow/json-schema/composer.json
deleted file mode 100644
index 20e85fc3..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/composer.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "name": "justinrainbow/json-schema",
- "type": "library",
- "description": "A library to validate a json schema.",
- "keywords": [
- "json",
- "schema"
- ],
- "homepage": "https://github.com/justinrainbow/json-schema",
- "license": "MIT",
- "authors": [
- {
- "name": "Bruno Prieto Reis",
- "email": "bruno.p.reis@gmail.com"
- },
- {
- "name": "Justin Rainbow",
- "email": "justin.rainbow@gmail.com"
- },
- {
- "name": "Igor Wiedler",
- "email": "igor@wiedler.ch"
- },
- {
- "name": "Robert Schönthal",
- "email": "seroscho@googlemail.com"
- }
- ],
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "friendsofphp/php-cs-fixer": "~2.2.20",
- "json-schema/JSON-Schema-Test-Suite": "1.2.0",
- "phpunit/phpunit": "^4.8.35"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "5.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "JsonSchema\\": "src/JsonSchema/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "JsonSchema\\Tests\\": "tests/"
- }
- },
- "repositories": [
- {
- "type": "package",
- "package": {
- "name": "json-schema/JSON-Schema-Test-Suite",
- "version": "1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/json-schema/JSON-Schema-Test-Suite",
- "reference": "1.2.0"
- }
- }
- }
- ],
- "bin": [
- "bin/validate-json"
- ],
- "scripts": {
- "coverage": "phpunit --coverage-text",
- "style-check": "php-cs-fixer fix --dry-run --verbose --diff",
- "style-fix": "php-cs-fixer fix --verbose",
- "test": "phpunit",
- "testOnly": "phpunit --colors --filter"
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/demo/README.md b/www/wiki/vendor/justinrainbow/json-schema/demo/README.md
deleted file mode 100644
index 0309ee89..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/demo/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-## JsonSchema\Validator Demo
-
-This demo script uses the example from the root README.md and provides sample JSON files for testing `JsonSchema\Validator`.
-
-To change or replace the JSON schema document, please edit `/path/to/json-schema/demo/schema.json`.
-
-To change or replace the JSON document that is validated, please edit `/path/to/json-schema/demo/data.json`.
-
-To run the demo, change the path in the following example and run it in your terminal.
-
-```
-cd /path/to/json-schema/demo
-php demo.php // The supplied JSON validates against the schema.
-```
diff --git a/www/wiki/vendor/justinrainbow/json-schema/demo/data.json b/www/wiki/vendor/justinrainbow/json-schema/demo/data.json
deleted file mode 100644
index 69591b71..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/demo/data.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "foo":"bar"
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/demo/demo.php b/www/wiki/vendor/justinrainbow/json-schema/demo/demo.php
deleted file mode 100644
index 98b518a7..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/demo/demo.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-require __DIR__ . '/../vendor/autoload.php';
-
-$data = json_decode(file_get_contents('data.json'));
-
-// Validate
-$validator = new JsonSchema\Validator();
-$validator->check($data, (object) array('$ref' => 'file://' . realpath('schema.json')));
-
-if ($validator->isValid()) {
- echo "The supplied JSON validates against the schema.\n";
-} else {
- echo "JSON does not validate. Violations:\n";
- foreach ($validator->getErrors() as $error) {
- echo sprintf("[%s] %s\n", $error['property'], $error['message']);
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/demo/schema.json b/www/wiki/vendor/justinrainbow/json-schema/demo/schema.json
deleted file mode 100644
index e6307dc1..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/demo/schema.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "object"
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/dist/schema/json-schema-draft-03.json b/www/wiki/vendor/justinrainbow/json-schema/dist/schema/json-schema-draft-03.json
deleted file mode 100644
index 7a1a2d38..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/dist/schema/json-schema-draft-03.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-03/schema#",
- "id": "http://json-schema.org/draft-03/schema#",
- "type": "object",
-
- "properties": {
- "type": {
- "type": [ "string", "array" ],
- "items": {
- "type": [ "string", { "$ref": "#" } ]
- },
- "uniqueItems": true,
- "default": "any"
- },
-
- "properties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
-
- "patternProperties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
-
- "additionalProperties": {
- "type": [ { "$ref": "#" }, "boolean" ],
- "default": {}
- },
-
- "items": {
- "type": [ { "$ref": "#" }, "array" ],
- "items": { "$ref": "#" },
- "default": {}
- },
-
- "additionalItems": {
- "type": [ { "$ref": "#" }, "boolean" ],
- "default": {}
- },
-
- "required": {
- "type": "boolean",
- "default": false
- },
-
- "dependencies": {
- "type": "object",
- "additionalProperties": {
- "type": [ "string", "array", { "$ref": "#" } ],
- "items": {
- "type": "string"
- }
- },
- "default": {}
- },
-
- "minimum": {
- "type": "number"
- },
-
- "maximum": {
- "type": "number"
- },
-
- "exclusiveMinimum": {
- "type": "boolean",
- "default": false
- },
-
- "exclusiveMaximum": {
- "type": "boolean",
- "default": false
- },
-
- "minItems": {
- "type": "integer",
- "minimum": 0,
- "default": 0
- },
-
- "maxItems": {
- "type": "integer",
- "minimum": 0
- },
-
- "uniqueItems": {
- "type": "boolean",
- "default": false
- },
-
- "pattern": {
- "type": "string",
- "format": "regex"
- },
-
- "minLength": {
- "type": "integer",
- "minimum": 0,
- "default": 0
- },
-
- "maxLength": {
- "type": "integer"
- },
-
- "enum": {
- "type": "array",
- "minItems": 1,
- "uniqueItems": true
- },
-
- "default": {
- "type": "any"
- },
-
- "title": {
- "type": "string"
- },
-
- "description": {
- "type": "string"
- },
-
- "format": {
- "type": "string"
- },
-
- "divisibleBy": {
- "type": "number",
- "minimum": 0,
- "exclusiveMinimum": true,
- "default": 1
- },
-
- "disallow": {
- "type": [ "string", "array" ],
- "items": {
- "type": [ "string", { "$ref": "#" } ]
- },
- "uniqueItems": true
- },
-
- "extends": {
- "type": [ { "$ref": "#" }, "array" ],
- "items": { "$ref": "#" },
- "default": {}
- },
-
- "id": {
- "type": "string",
- "format": "uri"
- },
-
- "$ref": {
- "type": "string",
- "format": "uri"
- },
-
- "$schema": {
- "type": "string",
- "format": "uri"
- }
- },
-
- "dependencies": {
- "exclusiveMinimum": "minimum",
- "exclusiveMaximum": "maximum"
- },
-
- "default": {}
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/dist/schema/json-schema-draft-04.json b/www/wiki/vendor/justinrainbow/json-schema/dist/schema/json-schema-draft-04.json
deleted file mode 100644
index 85eb502a..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/dist/schema/json-schema-draft-04.json
+++ /dev/null
@@ -1,150 +0,0 @@
-{
- "id": "http://json-schema.org/draft-04/schema#",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "description": "Core schema meta-schema",
- "definitions": {
- "schemaArray": {
- "type": "array",
- "minItems": 1,
- "items": { "$ref": "#" }
- },
- "positiveInteger": {
- "type": "integer",
- "minimum": 0
- },
- "positiveIntegerDefault0": {
- "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]
- },
- "simpleTypes": {
- "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]
- },
- "stringArray": {
- "type": "array",
- "items": { "type": "string" },
- "minItems": 1,
- "uniqueItems": true
- }
- },
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "format": "uri"
- },
- "$schema": {
- "type": "string",
- "format": "uri"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "default": {},
- "multipleOf": {
- "type": "number",
- "minimum": 0,
- "exclusiveMinimum": true
- },
- "maximum": {
- "type": "number"
- },
- "exclusiveMaximum": {
- "type": "boolean",
- "default": false
- },
- "minimum": {
- "type": "number"
- },
- "exclusiveMinimum": {
- "type": "boolean",
- "default": false
- },
- "maxLength": { "$ref": "#/definitions/positiveInteger" },
- "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },
- "pattern": {
- "type": "string",
- "format": "regex"
- },
- "additionalItems": {
- "anyOf": [
- { "type": "boolean" },
- { "$ref": "#" }
- ],
- "default": {}
- },
- "items": {
- "anyOf": [
- { "$ref": "#" },
- { "$ref": "#/definitions/schemaArray" }
- ],
- "default": {}
- },
- "maxItems": { "$ref": "#/definitions/positiveInteger" },
- "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },
- "uniqueItems": {
- "type": "boolean",
- "default": false
- },
- "maxProperties": { "$ref": "#/definitions/positiveInteger" },
- "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },
- "required": { "$ref": "#/definitions/stringArray" },
- "additionalProperties": {
- "anyOf": [
- { "type": "boolean" },
- { "$ref": "#" }
- ],
- "default": {}
- },
- "definitions": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "properties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "patternProperties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "dependencies": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- { "$ref": "#" },
- { "$ref": "#/definitions/stringArray" }
- ]
- }
- },
- "enum": {
- "type": "array",
- "minItems": 1,
- "uniqueItems": true
- },
- "type": {
- "anyOf": [
- { "$ref": "#/definitions/simpleTypes" },
- {
- "type": "array",
- "items": { "$ref": "#/definitions/simpleTypes" },
- "minItems": 1,
- "uniqueItems": true
- }
- ]
- },
- "allOf": { "$ref": "#/definitions/schemaArray" },
- "anyOf": { "$ref": "#/definitions/schemaArray" },
- "oneOf": { "$ref": "#/definitions/schemaArray" },
- "not": { "$ref": "#" }
- },
- "dependencies": {
- "exclusiveMaximum": [ "maximum" ],
- "exclusiveMinimum": [ "minimum" ]
- },
- "default": {}
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/phpunit.xml.dist b/www/wiki/vendor/justinrainbow/json-schema/phpunit.xml.dist
deleted file mode 100644
index 0136d8ed..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/phpunit.xml.dist
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit backupGlobals="false"
- backupStaticAttributes="false"
- colors="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- processIsolation="false"
- stopOnFailure="false"
- syntaxCheck="false"
- bootstrap="vendor/autoload.php"
- verbose="true"
->
- <testsuites>
- <testsuite name="JSON Schema Test Suite">
- <directory>tests</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist>
- <directory>./src/JsonSchema/</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php
deleted file mode 100644
index 63968213..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php
+++ /dev/null
@@ -1,148 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Exception\InvalidArgumentException;
-use JsonSchema\Exception\ValidationException;
-use JsonSchema\Validator;
-
-/**
- * A more basic constraint definition - used for the public
- * interface to avoid exposing library internals.
- */
-class BaseConstraint
-{
- /**
- * @var array Errors
- */
- protected $errors = array();
-
- /**
- * @var int All error types which have occurred
- */
- protected $errorMask = Validator::ERROR_NONE;
-
- /**
- * @var Factory
- */
- protected $factory;
-
- /**
- * @param Factory $factory
- */
- public function __construct(Factory $factory = null)
- {
- $this->factory = $factory ?: new Factory();
- }
-
- public function addError(JsonPointer $path = null, $message, $constraint = '', array $more = null)
- {
- $error = array(
- 'property' => $this->convertJsonPointerIntoPropertyPath($path ?: new JsonPointer('')),
- 'pointer' => ltrim(strval($path ?: new JsonPointer('')), '#'),
- 'message' => $message,
- 'constraint' => $constraint,
- 'context' => $this->factory->getErrorContext(),
- );
-
- if ($this->factory->getConfig(Constraint::CHECK_MODE_EXCEPTIONS)) {
- throw new ValidationException(sprintf('Error validating %s: %s', $error['pointer'], $error['message']));
- }
-
- if (is_array($more) && count($more) > 0) {
- $error += $more;
- }
-
- $this->errors[] = $error;
- $this->errorMask |= $error['context'];
- }
-
- public function addErrors(array $errors)
- {
- if ($errors) {
- $this->errors = array_merge($this->errors, $errors);
- $errorMask = &$this->errorMask;
- array_walk($errors, function ($error) use (&$errorMask) {
- if (isset($error['context'])) {
- $errorMask |= $error['context'];
- }
- });
- }
- }
-
- public function getErrors($errorContext = Validator::ERROR_ALL)
- {
- if ($errorContext === Validator::ERROR_ALL) {
- return $this->errors;
- }
-
- return array_filter($this->errors, function ($error) use ($errorContext) {
- if ($errorContext & $error['context']) {
- return true;
- }
- });
- }
-
- public function numErrors($errorContext = Validator::ERROR_ALL)
- {
- if ($errorContext === Validator::ERROR_ALL) {
- return count($this->errors);
- }
-
- return count($this->getErrors($errorContext));
- }
-
- public function isValid()
- {
- return !$this->getErrors();
- }
-
- /**
- * Clears any reported errors. Should be used between
- * multiple validation checks.
- */
- public function reset()
- {
- $this->errors = array();
- $this->errorMask = Validator::ERROR_NONE;
- }
-
- /**
- * Get the error mask
- *
- * @return int
- */
- public function getErrorMask()
- {
- return $this->errorMask;
- }
-
- /**
- * Recursively cast an associative array to an object
- *
- * @param array $array
- *
- * @return object
- */
- public static function arrayToObjectRecursive($array)
- {
- $json = json_encode($array);
- if (json_last_error() !== \JSON_ERROR_NONE) {
- $message = 'Unable to encode schema array as JSON';
- if (function_exists('json_last_error_msg')) {
- $message .= ': ' . json_last_error_msg();
- }
- throw new InvalidArgumentException($message);
- }
-
- return (object) json_decode($json);
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php
deleted file mode 100644
index d1384b88..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-/**
- * The CollectionConstraint Constraints, validates an array against a given schema
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Bruno Prieto Reis <bruno.p.reis@gmail.com>
- */
-class CollectionConstraint extends Constraint
-{
- /**
- * {@inheritdoc}
- */
- public function check(&$value, $schema = null, JsonPointer $path = null, $i = null)
- {
- // Verify minItems
- if (isset($schema->minItems) && count($value) < $schema->minItems) {
- $this->addError($path, 'There must be a minimum of ' . $schema->minItems . ' items in the array', 'minItems', array('minItems' => $schema->minItems));
- }
-
- // Verify maxItems
- if (isset($schema->maxItems) && count($value) > $schema->maxItems) {
- $this->addError($path, 'There must be a maximum of ' . $schema->maxItems . ' items in the array', 'maxItems', array('maxItems' => $schema->maxItems));
- }
-
- // Verify uniqueItems
- if (isset($schema->uniqueItems) && $schema->uniqueItems) {
- $unique = $value;
- if (is_array($value) && count($value)) {
- $unique = array_map(function ($e) {
- return var_export($e, true);
- }, $value);
- }
- if (count(array_unique($unique)) != count($value)) {
- $this->addError($path, 'There are no duplicates allowed in the array', 'uniqueItems');
- }
- }
-
- // Verify items
- if (isset($schema->items)) {
- $this->validateItems($value, $schema, $path, $i);
- }
- }
-
- /**
- * Validates the items
- *
- * @param array $value
- * @param \stdClass $schema
- * @param JsonPointer|null $path
- * @param string $i
- */
- protected function validateItems(&$value, $schema = null, JsonPointer $path = null, $i = null)
- {
- if (is_object($schema->items)) {
- // just one type definition for the whole array
- foreach ($value as $k => &$v) {
- $initErrors = $this->getErrors();
-
- // First check if its defined in "items"
- $this->checkUndefined($v, $schema->items, $path, $k);
-
- // Recheck with "additionalItems" if the first test fails
- if (count($initErrors) < count($this->getErrors()) && (isset($schema->additionalItems) && $schema->additionalItems !== false)) {
- $secondErrors = $this->getErrors();
- $this->checkUndefined($v, $schema->additionalItems, $path, $k);
- }
-
- // Reset errors if needed
- if (isset($secondErrors) && count($secondErrors) < count($this->getErrors())) {
- $this->errors = $secondErrors;
- } elseif (isset($secondErrors) && count($secondErrors) === count($this->getErrors())) {
- $this->errors = $initErrors;
- }
- }
- unset($v); /* remove dangling reference to prevent any future bugs
- * caused by accidentally using $v elsewhere */
- } else {
- // Defined item type definitions
- foreach ($value as $k => &$v) {
- if (array_key_exists($k, $schema->items)) {
- $this->checkUndefined($v, $schema->items[$k], $path, $k);
- } else {
- // Additional items
- if (property_exists($schema, 'additionalItems')) {
- if ($schema->additionalItems !== false) {
- $this->checkUndefined($v, $schema->additionalItems, $path, $k);
- } else {
- $this->addError(
- $path, 'The item ' . $i . '[' . $k . '] is not defined and the definition does not allow additional items', 'additionalItems', array('additionalItems' => $schema->additionalItems));
- }
- } else {
- // Should be valid against an empty schema
- $this->checkUndefined($v, new \stdClass(), $path, $k);
- }
- }
- }
- unset($v); /* remove dangling reference to prevent any future bugs
- * caused by accidentally using $v elsewhere */
-
- // Treat when we have more schema definitions than values, not for empty arrays
- if (count($value) > 0) {
- for ($k = count($value); $k < count($schema->items); $k++) {
- $undefinedInstance = $this->factory->createInstanceFor('undefined');
- $this->checkUndefined($undefinedInstance, $schema->items[$k], $path, $k);
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php
deleted file mode 100644
index a53130df..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php
+++ /dev/null
@@ -1,213 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-/**
- * The Base Constraints, all Validators should extend this class
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Bruno Prieto Reis <bruno.p.reis@gmail.com>
- */
-abstract class Constraint extends BaseConstraint implements ConstraintInterface
-{
- protected $inlineSchemaProperty = '$schema';
-
- const CHECK_MODE_NONE = 0x00000000;
- const CHECK_MODE_NORMAL = 0x00000001;
- const CHECK_MODE_TYPE_CAST = 0x00000002;
- const CHECK_MODE_COERCE_TYPES = 0x00000004;
- const CHECK_MODE_APPLY_DEFAULTS = 0x00000008;
- const CHECK_MODE_EXCEPTIONS = 0x00000010;
- const CHECK_MODE_DISABLE_FORMAT = 0x00000020;
- const CHECK_MODE_ONLY_REQUIRED_DEFAULTS = 0x00000080;
- const CHECK_MODE_VALIDATE_SCHEMA = 0x00000100;
-
- /**
- * Bubble down the path
- *
- * @param JsonPointer|null $path Current path
- * @param mixed $i What to append to the path
- *
- * @return JsonPointer;
- */
- protected function incrementPath(JsonPointer $path = null, $i)
- {
- $path = $path ?: new JsonPointer('');
- $path = $path->withPropertyPaths(
- array_merge(
- $path->getPropertyPaths(),
- array_filter(array($i), 'strlen')
- )
- );
-
- return $path;
- }
-
- /**
- * Validates an array
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
- */
- protected function checkArray(&$value, $schema = null, JsonPointer $path = null, $i = null)
- {
- $validator = $this->factory->createInstanceFor('collection');
- $validator->check($value, $schema, $path, $i);
-
- $this->addErrors($validator->getErrors());
- }
-
- /**
- * Validates an object
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $properties
- * @param mixed $additionalProperties
- * @param mixed $patternProperties
- */
- protected function checkObject(&$value, $schema = null, JsonPointer $path = null, $properties = null,
- $additionalProperties = null, $patternProperties = null, $appliedDefaults = array())
- {
- $validator = $this->factory->createInstanceFor('object');
- $validator->check($value, $schema, $path, $properties, $additionalProperties, $patternProperties, $appliedDefaults);
-
- $this->addErrors($validator->getErrors());
- }
-
- /**
- * Validates the type of a property
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
- */
- protected function checkType(&$value, $schema = null, JsonPointer $path = null, $i = null)
- {
- $validator = $this->factory->createInstanceFor('type');
- $validator->check($value, $schema, $path, $i);
-
- $this->addErrors($validator->getErrors());
- }
-
- /**
- * Checks a undefined element
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
- */
- protected function checkUndefined(&$value, $schema = null, JsonPointer $path = null, $i = null, $fromDefault = false)
- {
- $validator = $this->factory->createInstanceFor('undefined');
-
- $validator->check($value, $this->factory->getSchemaStorage()->resolveRefSchema($schema), $path, $i, $fromDefault);
-
- $this->addErrors($validator->getErrors());
- }
-
- /**
- * Checks a string element
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
- */
- protected function checkString($value, $schema = null, JsonPointer $path = null, $i = null)
- {
- $validator = $this->factory->createInstanceFor('string');
- $validator->check($value, $schema, $path, $i);
-
- $this->addErrors($validator->getErrors());
- }
-
- /**
- * Checks a number element
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer $path
- * @param mixed $i
- */
- protected function checkNumber($value, $schema = null, JsonPointer $path = null, $i = null)
- {
- $validator = $this->factory->createInstanceFor('number');
- $validator->check($value, $schema, $path, $i);
-
- $this->addErrors($validator->getErrors());
- }
-
- /**
- * Checks a enum element
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
- */
- protected function checkEnum($value, $schema = null, JsonPointer $path = null, $i = null)
- {
- $validator = $this->factory->createInstanceFor('enum');
- $validator->check($value, $schema, $path, $i);
-
- $this->addErrors($validator->getErrors());
- }
-
- /**
- * Checks format of an element
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
- */
- protected function checkFormat($value, $schema = null, JsonPointer $path = null, $i = null)
- {
- $validator = $this->factory->createInstanceFor('format');
- $validator->check($value, $schema, $path, $i);
-
- $this->addErrors($validator->getErrors());
- }
-
- /**
- * Get the type check based on the set check mode.
- *
- * @return TypeCheck\TypeCheckInterface
- */
- protected function getTypeCheck()
- {
- return $this->factory->getTypeCheck();
- }
-
- /**
- * @param JsonPointer $pointer
- *
- * @return string property path
- */
- protected function convertJsonPointerIntoPropertyPath(JsonPointer $pointer)
- {
- $result = array_map(
- function ($path) {
- return sprintf(is_numeric($path) ? '[%d]' : '.%s', $path);
- },
- $pointer->getPropertyPaths()
- );
-
- return trim(implode('', $result), '.');
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php
deleted file mode 100644
index 442268e6..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-/**
- * The Constraints Interface
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- */
-interface ConstraintInterface
-{
- /**
- * returns all collected errors
- *
- * @return array
- */
- public function getErrors();
-
- /**
- * adds errors to this validator
- *
- * @param array $errors
- */
- public function addErrors(array $errors);
-
- /**
- * adds an error
- *
- * @param JsonPointer|null $path
- * @param string $message
- * @param string $constraint the constraint/rule that is broken, e.g.: 'minLength'
- * @param array $more more array elements to add to the error
- */
- public function addError(JsonPointer $path = null, $message, $constraint='', array $more = null);
-
- /**
- * checks if the validator has not raised errors
- *
- * @return bool
- */
- public function isValid();
-
- /**
- * invokes the validation of an element
- *
- * @abstract
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer|null $path
- * @param mixed $i
- *
- * @throws \JsonSchema\Exception\ExceptionInterface
- */
- public function check(&$value, $schema = null, JsonPointer $path = null, $i = null);
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php
deleted file mode 100644
index 0fd2b6a0..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-/**
- * The EnumConstraint Constraints, validates an element against a given set of possibilities
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Bruno Prieto Reis <bruno.p.reis@gmail.com>
- */
-class EnumConstraint extends Constraint
-{
- /**
- * {@inheritdoc}
- */
- public function check(&$element, $schema = null, JsonPointer $path = null, $i = null)
- {
- // Only validate enum if the attribute exists
- if ($element instanceof UndefinedConstraint && (!isset($schema->required) || !$schema->required)) {
- return;
- }
- $type = gettype($element);
-
- foreach ($schema->enum as $enum) {
- $enumType = gettype($enum);
- if ($this->factory->getConfig(self::CHECK_MODE_TYPE_CAST) && $type == 'array' && $enumType == 'object') {
- if ((object) $element == $enum) {
- return;
- }
- }
-
- if ($type === gettype($enum)) {
- if ($type == 'object') {
- if ($element == $enum) {
- return;
- }
- } elseif ($element === $enum) {
- return;
- }
- }
- }
-
- $this->addError($path, 'Does not have a value in the enumeration ' . json_encode($schema->enum), 'enum', array('enum' => $schema->enum));
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php
deleted file mode 100644
index 4e771c19..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php
+++ /dev/null
@@ -1,220 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Exception\InvalidArgumentException;
-use JsonSchema\SchemaStorage;
-use JsonSchema\SchemaStorageInterface;
-use JsonSchema\Uri\UriRetriever;
-use JsonSchema\UriRetrieverInterface;
-use JsonSchema\Validator;
-
-/**
- * Factory for centralize constraint initialization.
- */
-class Factory
-{
- /**
- * @var SchemaStorage
- */
- protected $schemaStorage;
-
- /**
- * @var UriRetriever
- */
- protected $uriRetriever;
-
- /**
- * @var int
- */
- private $checkMode = Constraint::CHECK_MODE_NORMAL;
-
- /**
- * @var TypeCheck\TypeCheckInterface[]
- */
- private $typeCheck = array();
-
- /**
- * @var int Validation context
- */
- protected $errorContext = Validator::ERROR_DOCUMENT_VALIDATION;
-
- /**
- * @var array
- */
- protected $constraintMap = array(
- 'array' => 'JsonSchema\Constraints\CollectionConstraint',
- 'collection' => 'JsonSchema\Constraints\CollectionConstraint',
- 'object' => 'JsonSchema\Constraints\ObjectConstraint',
- 'type' => 'JsonSchema\Constraints\TypeConstraint',
- 'undefined' => 'JsonSchema\Constraints\UndefinedConstraint',
- 'string' => 'JsonSchema\Constraints\StringConstraint',
- 'number' => 'JsonSchema\Constraints\NumberConstraint',
- 'enum' => 'JsonSchema\Constraints\EnumConstraint',
- 'format' => 'JsonSchema\Constraints\FormatConstraint',
- 'schema' => 'JsonSchema\Constraints\SchemaConstraint',
- 'validator' => 'JsonSchema\Validator'
- );
-
- /**
- * @var array<ConstraintInterface>
- */
- private $instanceCache = array();
-
- /**
- * @param SchemaStorage $schemaStorage
- * @param UriRetrieverInterface $uriRetriever
- * @param int $checkMode
- */
- public function __construct(
- SchemaStorageInterface $schemaStorage = null,
- UriRetrieverInterface $uriRetriever = null,
- $checkMode = Constraint::CHECK_MODE_NORMAL
- ) {
- // set provided config options
- $this->setConfig($checkMode);
-
- $this->uriRetriever = $uriRetriever ?: new UriRetriever();
- $this->schemaStorage = $schemaStorage ?: new SchemaStorage($this->uriRetriever);
- }
-
- /**
- * Set config values
- *
- * @param int $checkMode Set checkMode options - does not preserve existing flags
- */
- public function setConfig($checkMode = Constraint::CHECK_MODE_NORMAL)
- {
- $this->checkMode = $checkMode;
- }
-
- /**
- * Enable checkMode flags
- *
- * @param int $options
- */
- public function addConfig($options)
- {
- $this->checkMode |= $options;
- }
-
- /**
- * Disable checkMode flags
- *
- * @param int $options
- */
- public function removeConfig($options)
- {
- $this->checkMode &= ~$options;
- }
-
- /**
- * Get checkMode option
- *
- * @param int $options Options to get, if null then return entire bitmask
- *
- * @return int
- */
- public function getConfig($options = null)
- {
- if ($options === null) {
- return $this->checkMode;
- }
-
- return $this->checkMode & $options;
- }
-
- /**
- * @return UriRetrieverInterface
- */
- public function getUriRetriever()
- {
- return $this->uriRetriever;
- }
-
- public function getSchemaStorage()
- {
- return $this->schemaStorage;
- }
-
- public function getTypeCheck()
- {
- if (!isset($this->typeCheck[$this->checkMode])) {
- $this->typeCheck[$this->checkMode] = ($this->checkMode & Constraint::CHECK_MODE_TYPE_CAST)
- ? new TypeCheck\LooseTypeCheck()
- : new TypeCheck\StrictTypeCheck();
- }
-
- return $this->typeCheck[$this->checkMode];
- }
-
- /**
- * @param string $name
- * @param string $class
- *
- * @return Factory
- */
- public function setConstraintClass($name, $class)
- {
- // Ensure class exists
- if (!class_exists($class)) {
- throw new InvalidArgumentException('Unknown constraint ' . $name);
- }
- // Ensure class is appropriate
- if (!in_array('JsonSchema\Constraints\ConstraintInterface', class_implements($class))) {
- throw new InvalidArgumentException('Invalid class ' . $name);
- }
- $this->constraintMap[$name] = $class;
-
- return $this;
- }
-
- /**
- * Create a constraint instance for the given constraint name.
- *
- * @param string $constraintName
- *
- * @throws InvalidArgumentException if is not possible create the constraint instance
- *
- * @return ConstraintInterface|ObjectConstraint
- */
- public function createInstanceFor($constraintName)
- {
- if (!isset($this->constraintMap[$constraintName])) {
- throw new InvalidArgumentException('Unknown constraint ' . $constraintName);
- }
-
- if (!isset($this->instanceCache[$constraintName])) {
- $this->instanceCache[$constraintName] = new $this->constraintMap[$constraintName]($this);
- }
-
- return clone $this->instanceCache[$constraintName];
- }
-
- /**
- * Get the error context
- *
- * @return string
- */
- public function getErrorContext()
- {
- return $this->errorContext;
- }
-
- /**
- * Set the error context
- *
- * @param string $validationContext
- */
- public function setErrorContext($errorContext)
- {
- $this->errorContext = $errorContext;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php
deleted file mode 100644
index 578cdb14..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php
+++ /dev/null
@@ -1,214 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Rfc3339;
-
-/**
- * Validates against the "format" property
- *
- * @author Justin Rainbow <justin.rainbow@gmail.com>
- *
- * @see http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23
- */
-class FormatConstraint extends Constraint
-{
- /**
- * {@inheritdoc}
- */
- public function check(&$element, $schema = null, JsonPointer $path = null, $i = null)
- {
- if (!isset($schema->format) || $this->factory->getConfig(self::CHECK_MODE_DISABLE_FORMAT)) {
- return;
- }
-
- switch ($schema->format) {
- case 'date':
- if (!$date = $this->validateDateTime($element, 'Y-m-d')) {
- $this->addError($path, sprintf('Invalid date %s, expected format YYYY-MM-DD', json_encode($element)), 'format', array('format' => $schema->format));
- }
- break;
-
- case 'time':
- if (!$this->validateDateTime($element, 'H:i:s')) {
- $this->addError($path, sprintf('Invalid time %s, expected format hh:mm:ss', json_encode($element)), 'format', array('format' => $schema->format));
- }
- break;
-
- case 'date-time':
- if (null === Rfc3339::createFromString($element)) {
- $this->addError($path, sprintf('Invalid date-time %s, expected format YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm', json_encode($element)), 'format', array('format' => $schema->format));
- }
- break;
-
- case 'utc-millisec':
- if (!$this->validateDateTime($element, 'U')) {
- $this->addError($path, sprintf('Invalid time %s, expected integer of milliseconds since Epoch', json_encode($element)), 'format', array('format' => $schema->format));
- }
- break;
-
- case 'regex':
- if (!$this->validateRegex($element)) {
- $this->addError($path, 'Invalid regex format ' . $element, 'format', array('format' => $schema->format));
- }
- break;
-
- case 'color':
- if (!$this->validateColor($element)) {
- $this->addError($path, 'Invalid color', 'format', array('format' => $schema->format));
- }
- break;
-
- case 'style':
- if (!$this->validateStyle($element)) {
- $this->addError($path, 'Invalid style', 'format', array('format' => $schema->format));
- }
- break;
-
- case 'phone':
- if (!$this->validatePhone($element)) {
- $this->addError($path, 'Invalid phone number', 'format', array('format' => $schema->format));
- }
- break;
-
- case 'uri':
- if (null === filter_var($element, FILTER_VALIDATE_URL, FILTER_NULL_ON_FAILURE)) {
- $this->addError($path, 'Invalid URL format', 'format', array('format' => $schema->format));
- }
- break;
-
- case 'uriref':
- case 'uri-reference':
- if (null === filter_var($element, FILTER_VALIDATE_URL, FILTER_NULL_ON_FAILURE)) {
- // FILTER_VALIDATE_URL does not conform to RFC-3986, and cannot handle relative URLs, but
- // the json-schema spec uses RFC-3986, so need a bit of hackery to properly validate them.
- // See https://tools.ietf.org/html/rfc3986#section-4.2 for additional information.
- if (substr($element, 0, 2) === '//') { // network-path reference
- $validURL = filter_var('scheme:' . $element, FILTER_VALIDATE_URL, FILTER_NULL_ON_FAILURE);
- } elseif (substr($element, 0, 1) === '/') { // absolute-path reference
- $validURL = filter_var('scheme://host' . $element, FILTER_VALIDATE_URL, FILTER_NULL_ON_FAILURE);
- } elseif (strlen($element)) { // relative-path reference
- $pathParts = explode('/', $element, 2);
- if (strpos($pathParts[0], ':') !== false) {
- $validURL = null;
- } else {
- $validURL = filter_var('scheme://host/' . $element, FILTER_VALIDATE_URL, FILTER_NULL_ON_FAILURE);
- }
- } else {
- $validURL = null;
- }
- if ($validURL === null) {
- $this->addError($path, 'Invalid URL format', 'format', array('format' => $schema->format));
- }
- }
- break;
-
- case 'email':
- $filterFlags = FILTER_NULL_ON_FAILURE;
- if (defined('FILTER_FLAG_EMAIL_UNICODE')) {
- // Only available from PHP >= 7.1.0, so ignore it for coverage checks
- $filterFlags |= constant('FILTER_FLAG_EMAIL_UNICODE'); // @codeCoverageIgnore
- }
- if (null === filter_var($element, FILTER_VALIDATE_EMAIL, $filterFlags)) {
- $this->addError($path, 'Invalid email', 'format', array('format' => $schema->format));
- }
- break;
-
- case 'ip-address':
- case 'ipv4':
- if (null === filter_var($element, FILTER_VALIDATE_IP, FILTER_NULL_ON_FAILURE | FILTER_FLAG_IPV4)) {
- $this->addError($path, 'Invalid IP address', 'format', array('format' => $schema->format));
- }
- break;
-
- case 'ipv6':
- if (null === filter_var($element, FILTER_VALIDATE_IP, FILTER_NULL_ON_FAILURE | FILTER_FLAG_IPV6)) {
- $this->addError($path, 'Invalid IP address', 'format', array('format' => $schema->format));
- }
- break;
-
- case 'host-name':
- case 'hostname':
- if (!$this->validateHostname($element)) {
- $this->addError($path, 'Invalid hostname', 'format', array('format' => $schema->format));
- }
- break;
-
- default:
- // Empty as it should be:
- // The value of this keyword is called a format attribute. It MUST be a string.
- // A format attribute can generally only validate a given set of instance types.
- // If the type of the instance to validate is not in this set, validation for
- // this format attribute and instance SHOULD succeed.
- // http://json-schema.org/latest/json-schema-validation.html#anchor105
- break;
- }
- }
-
- protected function validateDateTime($datetime, $format)
- {
- $dt = \DateTime::createFromFormat($format, $datetime);
-
- if (!$dt) {
- return false;
- }
-
- if ($datetime === $dt->format($format)) {
- return true;
- }
-
- // handles the case where a non-6 digit microsecond datetime is passed
- // which will fail the above string comparison because the passed
- // $datetime may be '2000-05-01T12:12:12.123Z' but format() will return
- // '2000-05-01T12:12:12.123000Z'
- if ((strpos('u', $format) !== -1) && (preg_match('/\.\d+Z$/', $datetime))) {
- return true;
- }
-
- return false;
- }
-
- protected function validateRegex($regex)
- {
- return false !== @preg_match('/' . $regex . '/u', '');
- }
-
- protected function validateColor($color)
- {
- if (in_array(strtolower($color), array('aqua', 'black', 'blue', 'fuchsia',
- 'gray', 'green', 'lime', 'maroon', 'navy', 'olive', 'orange', 'purple',
- 'red', 'silver', 'teal', 'white', 'yellow'))) {
- return true;
- }
-
- return preg_match('/^#([a-f0-9]{3}|[a-f0-9]{6})$/i', $color);
- }
-
- protected function validateStyle($style)
- {
- $properties = explode(';', rtrim($style, ';'));
- $invalidEntries = preg_grep('/^\s*[-a-z]+\s*:\s*.+$/i', $properties, PREG_GREP_INVERT);
-
- return empty($invalidEntries);
- }
-
- protected function validatePhone($phone)
- {
- return preg_match('/^\+?(\(\d{3}\)|\d{3}) \d{3} \d{4}$/', $phone);
- }
-
- protected function validateHostname($host)
- {
- $hostnameRegex = '/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/i';
-
- return preg_match($hostnameRegex, $host);
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/NumberConstraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/NumberConstraint.php
deleted file mode 100644
index d4c31a46..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/NumberConstraint.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-/**
- * The NumberConstraint Constraints, validates an number against a given schema
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Bruno Prieto Reis <bruno.p.reis@gmail.com>
- */
-class NumberConstraint extends Constraint
-{
- /**
- * {@inheritdoc}
- */
- public function check(&$element, $schema = null, JsonPointer $path = null, $i = null)
- {
- // Verify minimum
- if (isset($schema->exclusiveMinimum)) {
- if (isset($schema->minimum)) {
- if ($schema->exclusiveMinimum && $element <= $schema->minimum) {
- $this->addError($path, 'Must have a minimum value of ' . $schema->minimum, 'exclusiveMinimum', array('minimum' => $schema->minimum));
- } elseif ($element < $schema->minimum) {
- $this->addError($path, 'Must have a minimum value of ' . $schema->minimum, 'minimum', array('minimum' => $schema->minimum));
- }
- } else {
- $this->addError($path, 'Use of exclusiveMinimum requires presence of minimum', 'missingMinimum');
- }
- } elseif (isset($schema->minimum) && $element < $schema->minimum) {
- $this->addError($path, 'Must have a minimum value of ' . $schema->minimum, 'minimum', array('minimum' => $schema->minimum));
- }
-
- // Verify maximum
- if (isset($schema->exclusiveMaximum)) {
- if (isset($schema->maximum)) {
- if ($schema->exclusiveMaximum && $element >= $schema->maximum) {
- $this->addError($path, 'Must have a maximum value of ' . $schema->maximum, 'exclusiveMaximum', array('maximum' => $schema->maximum));
- } elseif ($element > $schema->maximum) {
- $this->addError($path, 'Must have a maximum value of ' . $schema->maximum, 'maximum', array('maximum' => $schema->maximum));
- }
- } else {
- $this->addError($path, 'Use of exclusiveMaximum requires presence of maximum', 'missingMaximum');
- }
- } elseif (isset($schema->maximum) && $element > $schema->maximum) {
- $this->addError($path, 'Must have a maximum value of ' . $schema->maximum, 'maximum', array('maximum' => $schema->maximum));
- }
-
- // Verify divisibleBy - Draft v3
- if (isset($schema->divisibleBy) && $this->fmod($element, $schema->divisibleBy) != 0) {
- $this->addError($path, 'Is not divisible by ' . $schema->divisibleBy, 'divisibleBy', array('divisibleBy' => $schema->divisibleBy));
- }
-
- // Verify multipleOf - Draft v4
- if (isset($schema->multipleOf) && $this->fmod($element, $schema->multipleOf) != 0) {
- $this->addError($path, 'Must be a multiple of ' . $schema->multipleOf, 'multipleOf', array('multipleOf' => $schema->multipleOf));
- }
-
- $this->checkFormat($element, $schema, $path, $i);
- }
-
- private function fmod($number1, $number2)
- {
- $modulus = ($number1 - round($number1 / $number2) * $number2);
- $precision = 0.0000000001;
-
- if (-$precision < $modulus && $modulus < $precision) {
- return 0.0;
- }
-
- return $modulus;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php
deleted file mode 100644
index 0010d294..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php
+++ /dev/null
@@ -1,192 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-/**
- * The ObjectConstraint Constraints, validates an object against a given schema
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Bruno Prieto Reis <bruno.p.reis@gmail.com>
- */
-class ObjectConstraint extends Constraint
-{
- /**
- * @var array List of properties to which a default value has been applied
- */
- protected $appliedDefaults = array();
-
- /**
- * {@inheritdoc}
- */
- public function check(&$element, $schema = null, JsonPointer $path = null, $properties = null,
- $additionalProp = null, $patternProperties = null, $appliedDefaults = array())
- {
- if ($element instanceof UndefinedConstraint) {
- return;
- }
-
- $this->appliedDefaults = $appliedDefaults;
-
- $matches = array();
- if ($patternProperties) {
- // validate the element pattern properties
- $matches = $this->validatePatternProperties($element, $path, $patternProperties);
- }
-
- if ($properties) {
- // validate the element properties
- $this->validateProperties($element, $properties, $path);
- }
-
- // validate additional element properties & constraints
- $this->validateElement($element, $matches, $schema, $path, $properties, $additionalProp);
- }
-
- public function validatePatternProperties($element, JsonPointer $path = null, $patternProperties)
- {
- $try = array('/', '#', '+', '~', '%');
- $matches = array();
- foreach ($patternProperties as $pregex => $schema) {
- $delimiter = '/';
- // Choose delimiter. Necessary for patterns like ^/ , otherwise you get error
- foreach ($try as $delimiter) {
- if (strpos($pregex, $delimiter) === false) { // safe to use
- break;
- }
- }
-
- // Validate the pattern before using it to test for matches
- if (@preg_match($delimiter . $pregex . $delimiter . 'u', '') === false) {
- $this->addError($path, 'The pattern "' . $pregex . '" is invalid', 'pregex', array('pregex' => $pregex));
- continue;
- }
- foreach ($element as $i => $value) {
- if (preg_match($delimiter . $pregex . $delimiter . 'u', $i)) {
- $matches[] = $i;
- $this->checkUndefined($value, $schema ?: new \stdClass(), $path, $i, in_array($i, $this->appliedDefaults));
- }
- }
- }
-
- return $matches;
- }
-
- /**
- * Validates the element properties
- *
- * @param \StdClass $element Element to validate
- * @param array $matches Matches from patternProperties (if any)
- * @param \StdClass $schema ObjectConstraint definition
- * @param JsonPointer|null $path Current test path
- * @param \StdClass $properties Properties
- * @param mixed $additionalProp Additional properties
- */
- public function validateElement($element, $matches, $schema = null, JsonPointer $path = null,
- $properties = null, $additionalProp = null)
- {
- $this->validateMinMaxConstraint($element, $schema, $path);
-
- foreach ($element as $i => $value) {
- $definition = $this->getProperty($properties, $i);
-
- // no additional properties allowed
- if (!in_array($i, $matches) && $additionalProp === false && $this->inlineSchemaProperty !== $i && !$definition) {
- $this->addError($path, 'The property ' . $i . ' is not defined and the definition does not allow additional properties', 'additionalProp');
- }
-
- // additional properties defined
- if (!in_array($i, $matches) && $additionalProp && !$definition) {
- if ($additionalProp === true) {
- $this->checkUndefined($value, null, $path, $i, in_array($i, $this->appliedDefaults));
- } else {
- $this->checkUndefined($value, $additionalProp, $path, $i, in_array($i, $this->appliedDefaults));
- }
- }
-
- // property requires presence of another
- $require = $this->getProperty($definition, 'requires');
- if ($require && !$this->getProperty($element, $require)) {
- $this->addError($path, 'The presence of the property ' . $i . ' requires that ' . $require . ' also be present', 'requires');
- }
-
- $property = $this->getProperty($element, $i, $this->factory->createInstanceFor('undefined'));
- if (is_object($property)) {
- $this->validateMinMaxConstraint(!($property instanceof UndefinedConstraint) ? $property : $element, $definition, $path);
- }
- }
- }
-
- /**
- * Validates the definition properties
- *
- * @param \stdClass $element Element to validate
- * @param \stdClass $properties Property definitions
- * @param JsonPointer|null $path Path?
- */
- public function validateProperties(&$element, $properties = null, JsonPointer $path = null)
- {
- $undefinedConstraint = $this->factory->createInstanceFor('undefined');
-
- foreach ($properties as $i => $value) {
- $property = &$this->getProperty($element, $i, $undefinedConstraint);
- $definition = $this->getProperty($properties, $i);
-
- if (is_object($definition)) {
- // Undefined constraint will check for is_object() and quit if is not - so why pass it?
- $this->checkUndefined($property, $definition, $path, $i, in_array($i, $this->appliedDefaults));
- }
- }
- }
-
- /**
- * retrieves a property from an object or array
- *
- * @param mixed $element Element to validate
- * @param string $property Property to retrieve
- * @param mixed $fallback Default value if property is not found
- *
- * @return mixed
- */
- protected function &getProperty(&$element, $property, $fallback = null)
- {
- if (is_array($element) && (isset($element[$property]) || array_key_exists($property, $element)) /*$this->checkMode == self::CHECK_MODE_TYPE_CAST*/) {
- return $element[$property];
- } elseif (is_object($element) && property_exists($element, $property)) {
- return $element->$property;
- }
-
- return $fallback;
- }
-
- /**
- * validating minimum and maximum property constraints (if present) against an element
- *
- * @param \stdClass $element Element to validate
- * @param \stdClass $objectDefinition ObjectConstraint definition
- * @param JsonPointer|null $path Path to test?
- */
- protected function validateMinMaxConstraint($element, $objectDefinition, JsonPointer $path = null)
- {
- // Verify minimum number of properties
- if (isset($objectDefinition->minProperties) && !is_object($objectDefinition->minProperties)) {
- if ($this->getTypeCheck()->propertyCount($element) < $objectDefinition->minProperties) {
- $this->addError($path, 'Must contain a minimum of ' . $objectDefinition->minProperties . ' properties', 'minProperties', array('minProperties' => $objectDefinition->minProperties));
- }
- }
- // Verify maximum number of properties
- if (isset($objectDefinition->maxProperties) && !is_object($objectDefinition->maxProperties)) {
- if ($this->getTypeCheck()->propertyCount($element) > $objectDefinition->maxProperties) {
- $this->addError($path, 'Must contain no more than ' . $objectDefinition->maxProperties . ' properties', 'maxProperties', array('maxProperties' => $objectDefinition->maxProperties));
- }
- }
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php
deleted file mode 100644
index db665ad3..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Exception\InvalidArgumentException;
-use JsonSchema\Exception\InvalidSchemaException;
-use JsonSchema\Exception\RuntimeException;
-use JsonSchema\Validator;
-
-/**
- * The SchemaConstraint Constraints, validates an element against a given schema
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Bruno Prieto Reis <bruno.p.reis@gmail.com>
- */
-class SchemaConstraint extends Constraint
-{
- const DEFAULT_SCHEMA_SPEC = 'http://json-schema.org/draft-04/schema#';
-
- /**
- * {@inheritdoc}
- */
- public function check(&$element, $schema = null, JsonPointer $path = null, $i = null)
- {
- if ($schema !== null) {
- // passed schema
- $validationSchema = $schema;
- } elseif ($this->getTypeCheck()->propertyExists($element, $this->inlineSchemaProperty)) {
- // inline schema
- $validationSchema = $this->getTypeCheck()->propertyGet($element, $this->inlineSchemaProperty);
- } else {
- throw new InvalidArgumentException('no schema found to verify against');
- }
-
- // cast array schemas to object
- if (is_array($validationSchema)) {
- $validationSchema = BaseConstraint::arrayToObjectRecursive($validationSchema);
- }
-
- // validate schema against whatever is defined in $validationSchema->$schema. If no
- // schema is defined, assume self::DEFAULT_SCHEMA_SPEC (currently draft-04).
- if ($this->factory->getConfig(self::CHECK_MODE_VALIDATE_SCHEMA)) {
- if (!$this->getTypeCheck()->isObject($validationSchema)) {
- throw new RuntimeException('Cannot validate the schema of a non-object');
- }
- if ($this->getTypeCheck()->propertyExists($validationSchema, '$schema')) {
- $schemaSpec = $this->getTypeCheck()->propertyGet($validationSchema, '$schema');
- } else {
- $schemaSpec = self::DEFAULT_SCHEMA_SPEC;
- }
-
- // get the spec schema
- $schemaStorage = $this->factory->getSchemaStorage();
- if (!$this->getTypeCheck()->isObject($schemaSpec)) {
- $schemaSpec = $schemaStorage->getSchema($schemaSpec);
- }
-
- // save error count, config & subtract CHECK_MODE_VALIDATE_SCHEMA
- $initialErrorCount = $this->numErrors();
- $initialConfig = $this->factory->getConfig();
- $initialContext = $this->factory->getErrorContext();
- $this->factory->removeConfig(self::CHECK_MODE_VALIDATE_SCHEMA | self::CHECK_MODE_APPLY_DEFAULTS);
- $this->factory->addConfig(self::CHECK_MODE_TYPE_CAST);
- $this->factory->setErrorContext(Validator::ERROR_SCHEMA_VALIDATION);
-
- // validate schema
- try {
- $this->check($validationSchema, $schemaSpec);
- } catch (\Exception $e) {
- if ($this->factory->getConfig(self::CHECK_MODE_EXCEPTIONS)) {
- throw new InvalidSchemaException('Schema did not pass validation', 0, $e);
- }
- }
- if ($this->numErrors() > $initialErrorCount) {
- $this->addError($path, 'Schema is not valid', 'schema');
- }
-
- // restore the initial config
- $this->factory->setConfig($initialConfig);
- $this->factory->setErrorContext($initialContext);
- }
-
- // validate element against $validationSchema
- $this->checkUndefined($element, $validationSchema, $path, $i);
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php
deleted file mode 100644
index c66af1ed..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-/**
- * The StringConstraint Constraints, validates an string against a given schema
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Bruno Prieto Reis <bruno.p.reis@gmail.com>
- */
-class StringConstraint extends Constraint
-{
- /**
- * {@inheritdoc}
- */
- public function check(&$element, $schema = null, JsonPointer $path = null, $i = null)
- {
- // Verify maxLength
- if (isset($schema->maxLength) && $this->strlen($element) > $schema->maxLength) {
- $this->addError($path, 'Must be at most ' . $schema->maxLength . ' characters long', 'maxLength', array(
- 'maxLength' => $schema->maxLength,
- ));
- }
-
- //verify minLength
- if (isset($schema->minLength) && $this->strlen($element) < $schema->minLength) {
- $this->addError($path, 'Must be at least ' . $schema->minLength . ' characters long', 'minLength', array(
- 'minLength' => $schema->minLength,
- ));
- }
-
- // Verify a regex pattern
- if (isset($schema->pattern) && !preg_match('#' . str_replace('#', '\\#', $schema->pattern) . '#u', $element)) {
- $this->addError($path, 'Does not match the regex pattern ' . $schema->pattern, 'pattern', array(
- 'pattern' => $schema->pattern,
- ));
- }
-
- $this->checkFormat($element, $schema, $path, $i);
- }
-
- private function strlen($string)
- {
- if (extension_loaded('mbstring')) {
- return mb_strlen($string, mb_detect_encoding($string));
- }
-
- // mbstring is present on all test platforms, so strlen() can be ignored for coverage
- return strlen($string); // @codeCoverageIgnore
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php
deleted file mode 100644
index 98428853..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-
-namespace JsonSchema\Constraints\TypeCheck;
-
-class LooseTypeCheck implements TypeCheckInterface
-{
- public static function isObject($value)
- {
- return
- is_object($value) ||
- (is_array($value) && (count($value) == 0 || self::isAssociativeArray($value)));
- }
-
- public static function isArray($value)
- {
- return
- is_array($value) &&
- (count($value) == 0 || !self::isAssociativeArray($value));
- }
-
- public static function propertyGet($value, $property)
- {
- if (is_object($value)) {
- return $value->{$property};
- }
-
- return $value[$property];
- }
-
- public static function propertySet(&$value, $property, $data)
- {
- if (is_object($value)) {
- $value->{$property} = $data;
- } else {
- $value[$property] = $data;
- }
- }
-
- public static function propertyExists($value, $property)
- {
- if (is_object($value)) {
- return property_exists($value, $property);
- }
-
- return array_key_exists($property, $value);
- }
-
- public static function propertyCount($value)
- {
- if (is_object($value)) {
- return count(get_object_vars($value));
- }
-
- return count($value);
- }
-
- /**
- * Check if the provided array is associative or not
- *
- * @param array $arr
- *
- * @return bool
- */
- private static function isAssociativeArray($arr)
- {
- return array_keys($arr) !== range(0, count($arr) - 1);
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php
deleted file mode 100644
index 59fa12be..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-namespace JsonSchema\Constraints\TypeCheck;
-
-class StrictTypeCheck implements TypeCheckInterface
-{
- public static function isObject($value)
- {
- return is_object($value);
- }
-
- public static function isArray($value)
- {
- return is_array($value);
- }
-
- public static function propertyGet($value, $property)
- {
- return $value->{$property};
- }
-
- public static function propertySet(&$value, $property, $data)
- {
- $value->{$property} = $data;
- }
-
- public static function propertyExists($value, $property)
- {
- return property_exists($value, $property);
- }
-
- public static function propertyCount($value)
- {
- if (!is_object($value)) {
- return 0;
- }
-
- return count(get_object_vars($value));
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/TypeCheckInterface.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/TypeCheckInterface.php
deleted file mode 100644
index 10b40ea0..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/TypeCheckInterface.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-namespace JsonSchema\Constraints\TypeCheck;
-
-interface TypeCheckInterface
-{
- public static function isObject($value);
-
- public static function isArray($value);
-
- public static function propertyGet($value, $property);
-
- public static function propertySet(&$value, $property, $data);
-
- public static function propertyExists($value, $property);
-
- public static function propertyCount($value);
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php
deleted file mode 100644
index 0ef32843..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php
+++ /dev/null
@@ -1,261 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Exception\InvalidArgumentException;
-use UnexpectedValueException as StandardUnexpectedValueException;
-
-/**
- * The TypeConstraint Constraints, validates an element against a given type
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Bruno Prieto Reis <bruno.p.reis@gmail.com>
- */
-class TypeConstraint extends Constraint
-{
- /**
- * @var array|string[] type wordings for validation error messages
- */
- public static $wording = array(
- 'integer' => 'an integer',
- 'number' => 'a number',
- 'boolean' => 'a boolean',
- 'object' => 'an object',
- 'array' => 'an array',
- 'string' => 'a string',
- 'null' => 'a null',
- 'any' => null, // validation of 'any' is always true so is not needed in message wording
- 0 => null, // validation of a false-y value is always true, so not needed as well
- );
-
- /**
- * {@inheritdoc}
- */
- public function check(&$value = null, $schema = null, JsonPointer $path = null, $i = null)
- {
- $type = isset($schema->type) ? $schema->type : null;
- $isValid = false;
- $wording = array();
-
- if (is_array($type)) {
- $this->validateTypesArray($value, $type, $wording, $isValid, $path);
- } elseif (is_object($type)) {
- $this->checkUndefined($value, $type, $path);
-
- return;
- } else {
- $isValid = $this->validateType($value, $type);
- }
-
- if ($isValid === false) {
- if (!is_array($type)) {
- $this->validateTypeNameWording($type);
- $wording[] = self::$wording[$type];
- }
- $this->addError($path, ucwords(gettype($value)) . ' value found, but ' .
- $this->implodeWith($wording, ', ', 'or') . ' is required', 'type');
- }
- }
-
- /**
- * Validates the given $value against the array of types in $type. Sets the value
- * of $isValid to true, if at least one $type mateches the type of $value or the value
- * passed as $isValid is already true.
- *
- * @param mixed $value Value to validate
- * @param array $type TypeConstraints to check agains
- * @param array $validTypesWording An array of wordings of the valid types of the array $type
- * @param bool $isValid The current validation value
- * @param $path
- */
- protected function validateTypesArray(&$value, array $type, &$validTypesWording, &$isValid, $path)
- {
- foreach ($type as $tp) {
- // $tp can be an object, if it's a schema instead of a simple type, validate it
- // with a new type constraint
- if (is_object($tp)) {
- if (!$isValid) {
- $validator = $this->factory->createInstanceFor('type');
- $subSchema = new \stdClass();
- $subSchema->type = $tp;
- $validator->check($value, $subSchema, $path, null);
- $error = $validator->getErrors();
- $isValid = !(bool) $error;
- $validTypesWording[] = self::$wording['object'];
- }
- } else {
- $this->validateTypeNameWording($tp);
- $validTypesWording[] = self::$wording[$tp];
- if (!$isValid) {
- $isValid = $this->validateType($value, $tp);
- }
- }
- }
- }
-
- /**
- * Implodes the given array like implode() with turned around parameters and with the
- * difference, that, if $listEnd isn't false, the last element delimiter is $listEnd instead of
- * $delimiter.
- *
- * @param array $elements The elements to implode
- * @param string $delimiter The delimiter to use
- * @param bool $listEnd The last delimiter to use (defaults to $delimiter)
- *
- * @return string
- */
- protected function implodeWith(array $elements, $delimiter = ', ', $listEnd = false)
- {
- if ($listEnd === false || !isset($elements[1])) {
- return implode($delimiter, $elements);
- }
- $lastElement = array_slice($elements, -1);
- $firsElements = join($delimiter, array_slice($elements, 0, -1));
- $implodedElements = array_merge(array($firsElements), $lastElement);
-
- return join(" $listEnd ", $implodedElements);
- }
-
- /**
- * Validates the given $type, if there's an associated self::$wording. If not, throws an
- * exception.
- *
- * @param string $type The type to validate
- *
- * @throws StandardUnexpectedValueException
- */
- protected function validateTypeNameWording($type)
- {
- if (!isset(self::$wording[$type])) {
- throw new StandardUnexpectedValueException(
- sprintf(
- 'No wording for %s available, expected wordings are: [%s]',
- var_export($type, true),
- implode(', ', array_filter(self::$wording)))
- );
- }
- }
-
- /**
- * Verifies that a given value is of a certain type
- *
- * @param mixed $value Value to validate
- * @param string $type TypeConstraint to check against
- *
- * @throws InvalidArgumentException
- *
- * @return bool
- */
- protected function validateType(&$value, $type)
- {
- //mostly the case for inline schema
- if (!$type) {
- return true;
- }
-
- if ('any' === $type) {
- return true;
- }
-
- if ('object' === $type) {
- return $this->getTypeCheck()->isObject($value);
- }
-
- if ('array' === $type) {
- return $this->getTypeCheck()->isArray($value);
- }
-
- $coerce = $this->factory->getConfig(Constraint::CHECK_MODE_COERCE_TYPES);
-
- if ('integer' === $type) {
- if ($coerce) {
- $value = $this->toInteger($value);
- }
-
- return is_int($value);
- }
-
- if ('number' === $type) {
- if ($coerce) {
- $value = $this->toNumber($value);
- }
-
- return is_numeric($value) && !is_string($value);
- }
-
- if ('boolean' === $type) {
- if ($coerce) {
- $value = $this->toBoolean($value);
- }
-
- return is_bool($value);
- }
-
- if ('string' === $type) {
- return is_string($value);
- }
-
- if ('email' === $type) {
- return is_string($value);
- }
-
- if ('null' === $type) {
- return is_null($value);
- }
-
- throw new InvalidArgumentException((is_object($value) ? 'object' : $value) . ' is an invalid type for ' . $type);
- }
-
- /**
- * Converts a value to boolean. For example, "true" becomes true.
- *
- * @param $value The value to convert to boolean
- *
- * @return bool|mixed
- */
- protected function toBoolean($value)
- {
- if ($value === 'true') {
- return true;
- }
-
- if ($value === 'false') {
- return false;
- }
-
- return $value;
- }
-
- /**
- * Converts a numeric string to a number. For example, "4" becomes 4.
- *
- * @param mixed $value the value to convert to a number
- *
- * @return int|float|mixed
- */
- protected function toNumber($value)
- {
- if (is_numeric($value)) {
- return $value + 0; // cast to number
- }
-
- return $value;
- }
-
- protected function toInteger($value)
- {
- if (is_numeric($value) && (int) $value == $value) {
- return (int) $value; // cast to number
- }
-
- return $value;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php
deleted file mode 100644
index 257db155..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php
+++ /dev/null
@@ -1,413 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Constraints\TypeCheck\LooseTypeCheck;
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Exception\ValidationException;
-use JsonSchema\Uri\UriResolver;
-
-/**
- * The UndefinedConstraint Constraints
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Bruno Prieto Reis <bruno.p.reis@gmail.com>
- */
-class UndefinedConstraint extends Constraint
-{
- /**
- * @var array List of properties to which a default value has been applied
- */
- protected $appliedDefaults = array();
-
- /**
- * {@inheritdoc}
- */
- public function check(&$value, $schema = null, JsonPointer $path = null, $i = null, $fromDefault = false)
- {
- if (is_null($schema) || !is_object($schema)) {
- return;
- }
-
- $path = $this->incrementPath($path ?: new JsonPointer(''), $i);
- if ($fromDefault) {
- $path->setFromDefault();
- }
-
- // check special properties
- $this->validateCommonProperties($value, $schema, $path, $i);
-
- // check allOf, anyOf, and oneOf properties
- $this->validateOfProperties($value, $schema, $path, '');
-
- // check known types
- $this->validateTypes($value, $schema, $path, $i);
- }
-
- /**
- * Validates the value against the types
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer $path
- * @param string $i
- */
- public function validateTypes(&$value, $schema = null, JsonPointer $path, $i = null)
- {
- // check array
- if ($this->getTypeCheck()->isArray($value)) {
- $this->checkArray($value, $schema, $path, $i);
- }
-
- // check object
- if (LooseTypeCheck::isObject($value)) { // object processing should always be run on assoc arrays,
- // so use LooseTypeCheck here even if CHECK_MODE_TYPE_CAST
- // is not set (i.e. don't use $this->getTypeCheck() here).
- $this->checkObject(
- $value,
- $schema,
- $path,
- isset($schema->properties) ? $schema->properties : null,
- isset($schema->additionalProperties) ? $schema->additionalProperties : null,
- isset($schema->patternProperties) ? $schema->patternProperties : null,
- $this->appliedDefaults
- );
- }
-
- // check string
- if (is_string($value)) {
- $this->checkString($value, $schema, $path, $i);
- }
-
- // check numeric
- if (is_numeric($value)) {
- $this->checkNumber($value, $schema, $path, $i);
- }
-
- // check enum
- if (isset($schema->enum)) {
- $this->checkEnum($value, $schema, $path, $i);
- }
- }
-
- /**
- * Validates common properties
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer $path
- * @param string $i
- */
- protected function validateCommonProperties(&$value, $schema = null, JsonPointer $path, $i = '')
- {
- // if it extends another schema, it must pass that schema as well
- if (isset($schema->extends)) {
- if (is_string($schema->extends)) {
- $schema->extends = $this->validateUri($schema, $schema->extends);
- }
- if (is_array($schema->extends)) {
- foreach ($schema->extends as $extends) {
- $this->checkUndefined($value, $extends, $path, $i);
- }
- } else {
- $this->checkUndefined($value, $schema->extends, $path, $i);
- }
- }
-
- // Apply default values from schema
- if (!$path->fromDefault()) {
- $this->applyDefaultValues($value, $schema, $path);
- }
-
- // Verify required values
- if ($this->getTypeCheck()->isObject($value)) {
- if (!($value instanceof self) && isset($schema->required) && is_array($schema->required)) {
- // Draft 4 - Required is an array of strings - e.g. "required": ["foo", ...]
- foreach ($schema->required as $required) {
- if (!$this->getTypeCheck()->propertyExists($value, $required)) {
- $this->addError(
- $this->incrementPath($path ?: new JsonPointer(''), $required),
- 'The property ' . $required . ' is required',
- 'required'
- );
- }
- }
- } elseif (isset($schema->required) && !is_array($schema->required)) {
- // Draft 3 - Required attribute - e.g. "foo": {"type": "string", "required": true}
- if ($schema->required && $value instanceof self) {
- $propertyPaths = $path->getPropertyPaths();
- $propertyName = end($propertyPaths);
- $this->addError(
- $path,
- 'The property ' . $propertyName . ' is required',
- 'required'
- );
- }
- }
- }
-
- // Verify type
- if (!($value instanceof self)) {
- $this->checkType($value, $schema, $path, $i);
- }
-
- // Verify disallowed items
- if (isset($schema->disallow)) {
- $initErrors = $this->getErrors();
-
- $typeSchema = new \stdClass();
- $typeSchema->type = $schema->disallow;
- $this->checkType($value, $typeSchema, $path);
-
- // if no new errors were raised it must be a disallowed value
- if (count($this->getErrors()) == count($initErrors)) {
- $this->addError($path, 'Disallowed value was matched', 'disallow');
- } else {
- $this->errors = $initErrors;
- }
- }
-
- if (isset($schema->not)) {
- $initErrors = $this->getErrors();
- $this->checkUndefined($value, $schema->not, $path, $i);
-
- // if no new errors were raised then the instance validated against the "not" schema
- if (count($this->getErrors()) == count($initErrors)) {
- $this->addError($path, 'Matched a schema which it should not', 'not');
- } else {
- $this->errors = $initErrors;
- }
- }
-
- // Verify that dependencies are met
- if (isset($schema->dependencies) && $this->getTypeCheck()->isObject($value)) {
- $this->validateDependencies($value, $schema->dependencies, $path);
- }
- }
-
- /**
- * Check whether a default should be applied for this value
- *
- * @param mixed $schema
- * @param mixed $parentSchema
- * @param bool $requiredOnly
- *
- * @return bool
- */
- private function shouldApplyDefaultValue($requiredOnly, $schema, $name = null, $parentSchema = null)
- {
- // required-only mode is off
- if (!$requiredOnly) {
- return true;
- }
- // draft-04 required is set
- if (
- $name !== null
- && isset($parentSchema->required)
- && is_array($parentSchema->required)
- && in_array($name, $parentSchema->required)
- ) {
- return true;
- }
- // draft-03 required is set
- if (isset($schema->required) && !is_array($schema->required) && $schema->required) {
- return true;
- }
- // default case
- return false;
- }
-
- /**
- * Apply default values
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer $path
- */
- protected function applyDefaultValues(&$value, $schema, $path)
- {
- // only apply defaults if feature is enabled
- if (!$this->factory->getConfig(self::CHECK_MODE_APPLY_DEFAULTS)) {
- return;
- }
-
- // apply defaults if appropriate
- $requiredOnly = $this->factory->getConfig(self::CHECK_MODE_ONLY_REQUIRED_DEFAULTS);
- if (isset($schema->properties) && LooseTypeCheck::isObject($value)) {
- // $value is an object or assoc array, and properties are defined - treat as an object
- foreach ($schema->properties as $currentProperty => $propertyDefinition) {
- $propertyDefinition = $this->factory->getSchemaStorage()->resolveRefSchema($propertyDefinition);
- if (
- !LooseTypeCheck::propertyExists($value, $currentProperty)
- && property_exists($propertyDefinition, 'default')
- && $this->shouldApplyDefaultValue($requiredOnly, $propertyDefinition, $currentProperty, $schema)
- ) {
- // assign default value
- if (is_object($propertyDefinition->default)) {
- LooseTypeCheck::propertySet($value, $currentProperty, clone $propertyDefinition->default);
- } else {
- LooseTypeCheck::propertySet($value, $currentProperty, $propertyDefinition->default);
- }
- $this->appliedDefaults[] = $currentProperty;
- }
- }
- } elseif (isset($schema->items) && LooseTypeCheck::isArray($value)) {
- $items = array();
- if (LooseTypeCheck::isArray($schema->items)) {
- $items = $schema->items;
- } elseif (isset($schema->minItems) && count($value) < $schema->minItems) {
- $items = array_fill(count($value), $schema->minItems - count($value), $schema->items);
- }
- // $value is an array, and items are defined - treat as plain array
- foreach ($items as $currentItem => $itemDefinition) {
- $itemDefinition = $this->factory->getSchemaStorage()->resolveRefSchema($itemDefinition);
- if (
- !array_key_exists($currentItem, $value)
- && property_exists($itemDefinition, 'default')
- && $this->shouldApplyDefaultValue($requiredOnly, $itemDefinition)) {
- if (is_object($itemDefinition->default)) {
- $value[$currentItem] = clone $itemDefinition->default;
- } else {
- $value[$currentItem] = $itemDefinition->default;
- }
- }
- $path->setFromDefault();
- }
- } elseif (
- $value instanceof self
- && property_exists($schema, 'default')
- && $this->shouldApplyDefaultValue($requiredOnly, $schema)) {
- // $value is a leaf, not a container - apply the default directly
- $value = is_object($schema->default) ? clone $schema->default : $schema->default;
- $path->setFromDefault();
- }
- }
-
- /**
- * Validate allOf, anyOf, and oneOf properties
- *
- * @param mixed $value
- * @param mixed $schema
- * @param JsonPointer $path
- * @param string $i
- */
- protected function validateOfProperties(&$value, $schema, JsonPointer $path, $i = '')
- {
- // Verify type
- if ($value instanceof self) {
- return;
- }
-
- if (isset($schema->allOf)) {
- $isValid = true;
- foreach ($schema->allOf as $allOf) {
- $initErrors = $this->getErrors();
- $this->checkUndefined($value, $allOf, $path, $i);
- $isValid = $isValid && (count($this->getErrors()) == count($initErrors));
- }
- if (!$isValid) {
- $this->addError($path, 'Failed to match all schemas', 'allOf');
- }
- }
-
- if (isset($schema->anyOf)) {
- $isValid = false;
- $startErrors = $this->getErrors();
- $caughtException = null;
- foreach ($schema->anyOf as $anyOf) {
- $initErrors = $this->getErrors();
- try {
- $this->checkUndefined($value, $anyOf, $path, $i);
- if ($isValid = (count($this->getErrors()) == count($initErrors))) {
- break;
- }
- } catch (ValidationException $e) {
- $isValid = false;
- }
- }
- if (!$isValid) {
- $this->addError($path, 'Failed to match at least one schema', 'anyOf');
- } else {
- $this->errors = $startErrors;
- }
- }
-
- if (isset($schema->oneOf)) {
- $allErrors = array();
- $matchedSchemas = 0;
- $startErrors = $this->getErrors();
- foreach ($schema->oneOf as $oneOf) {
- try {
- $this->errors = array();
- $this->checkUndefined($value, $oneOf, $path, $i);
- if (count($this->getErrors()) == 0) {
- $matchedSchemas++;
- }
- $allErrors = array_merge($allErrors, array_values($this->getErrors()));
- } catch (ValidationException $e) {
- // deliberately do nothing here - validation failed, but we want to check
- // other schema options in the OneOf field.
- }
- }
- if ($matchedSchemas !== 1) {
- $this->addErrors(array_merge($allErrors, $startErrors));
- $this->addError($path, 'Failed to match exactly one schema', 'oneOf');
- } else {
- $this->errors = $startErrors;
- }
- }
- }
-
- /**
- * Validate dependencies
- *
- * @param mixed $value
- * @param mixed $dependencies
- * @param JsonPointer $path
- * @param string $i
- */
- protected function validateDependencies($value, $dependencies, JsonPointer $path, $i = '')
- {
- foreach ($dependencies as $key => $dependency) {
- if ($this->getTypeCheck()->propertyExists($value, $key)) {
- if (is_string($dependency)) {
- // Draft 3 string is allowed - e.g. "dependencies": {"bar": "foo"}
- if (!$this->getTypeCheck()->propertyExists($value, $dependency)) {
- $this->addError($path, "$key depends on $dependency and $dependency is missing", 'dependencies');
- }
- } elseif (is_array($dependency)) {
- // Draft 4 must be an array - e.g. "dependencies": {"bar": ["foo"]}
- foreach ($dependency as $d) {
- if (!$this->getTypeCheck()->propertyExists($value, $d)) {
- $this->addError($path, "$key depends on $d and $d is missing", 'dependencies');
- }
- }
- } elseif (is_object($dependency)) {
- // Schema - e.g. "dependencies": {"bar": {"properties": {"foo": {...}}}}
- $this->checkUndefined($value, $dependency, $path, $i);
- }
- }
- }
- }
-
- protected function validateUri($schema, $schemaUri = null)
- {
- $resolver = new UriResolver();
- $retriever = $this->factory->getUriRetriever();
-
- $jsonSchema = null;
- if ($resolver->isValid($schemaUri)) {
- $schemaId = property_exists($schema, 'id') ? $schema->id : null;
- $jsonSchema = $retriever->retrieve($schemaId, $schemaUri);
- }
-
- return $jsonSchema;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.php
deleted file mode 100644
index fcaf5b8d..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.php
+++ /dev/null
@@ -1,161 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Entity;
-
-use JsonSchema\Exception\InvalidArgumentException;
-
-/**
- * @package JsonSchema\Entity
- *
- * @author Joost Nijhuis <jnijhuis81@gmail.com>
- */
-class JsonPointer
-{
- /** @var string */
- private $filename;
-
- /** @var string[] */
- private $propertyPaths = array();
-
- /**
- * @var bool Whether the value at this path was set from a schema default
- */
- private $fromDefault = false;
-
- /**
- * @param string $value
- *
- * @throws InvalidArgumentException when $value is not a string
- */
- public function __construct($value)
- {
- if (!is_string($value)) {
- throw new InvalidArgumentException('Ref value must be a string');
- }
-
- $splitRef = explode('#', $value, 2);
- $this->filename = $splitRef[0];
- if (array_key_exists(1, $splitRef)) {
- $this->propertyPaths = $this->decodePropertyPaths($splitRef[1]);
- }
- }
-
- /**
- * @param string $propertyPathString
- *
- * @return string[]
- */
- private function decodePropertyPaths($propertyPathString)
- {
- $paths = array();
- foreach (explode('/', trim($propertyPathString, '/')) as $path) {
- $path = $this->decodePath($path);
- if (is_string($path) && '' !== $path) {
- $paths[] = $path;
- }
- }
-
- return $paths;
- }
-
- /**
- * @return array
- */
- private function encodePropertyPaths()
- {
- return array_map(
- array($this, 'encodePath'),
- $this->getPropertyPaths()
- );
- }
-
- /**
- * @param string $path
- *
- * @return string
- */
- private function decodePath($path)
- {
- return strtr($path, array('~1' => '/', '~0' => '~', '%25' => '%'));
- }
-
- /**
- * @param string $path
- *
- * @return string
- */
- private function encodePath($path)
- {
- return strtr($path, array('/' => '~1', '~' => '~0', '%' => '%25'));
- }
-
- /**
- * @return string
- */
- public function getFilename()
- {
- return $this->filename;
- }
-
- /**
- * @return string[]
- */
- public function getPropertyPaths()
- {
- return $this->propertyPaths;
- }
-
- /**
- * @param array $propertyPaths
- *
- * @return JsonPointer
- */
- public function withPropertyPaths(array $propertyPaths)
- {
- $new = clone $this;
- $new->propertyPaths = $propertyPaths;
-
- return $new;
- }
-
- /**
- * @return string
- */
- public function getPropertyPathAsString()
- {
- return rtrim('#/' . implode('/', $this->encodePropertyPaths()), '/');
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- return $this->getFilename() . $this->getPropertyPathAsString();
- }
-
- /**
- * Mark the value at this path as being set from a schema default
- */
- public function setFromDefault()
- {
- $this->fromDefault = true;
- }
-
- /**
- * Check whether the value at this path was set from a schema default
- *
- * @return bool
- */
- public function fromDefault()
- {
- return $this->fromDefault;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ExceptionInterface.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ExceptionInterface.php
deleted file mode 100644
index 439bd277..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ExceptionInterface.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-namespace JsonSchema\Exception;
-
-interface ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidArgumentException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidArgumentException.php
deleted file mode 100644
index cabfa680..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidArgumentException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-/**
- * Wrapper for the InvalidArgumentException
- */
-class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidConfigException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidConfigException.php
deleted file mode 100644
index a48d6da0..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidConfigException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-/**
- * Wrapper for the ResourceNotFoundException
- */
-class InvalidConfigException extends RuntimeException
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaException.php
deleted file mode 100644
index c1209958..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-/**
- * Wrapper for the InvalidSchemaMediaType
- */
-class InvalidSchemaException extends RuntimeException
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.php
deleted file mode 100644
index bcac26f4..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-/**
- * Wrapper for the InvalidSchemaMediaType
- */
-class InvalidSchemaMediaTypeException extends RuntimeException
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSourceUriException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSourceUriException.php
deleted file mode 100644
index 37db1216..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSourceUriException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-/**
- * Wrapper for the InvalidSourceUriException
- */
-class InvalidSourceUriException extends InvalidArgumentException
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/JsonDecodingException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/JsonDecodingException.php
deleted file mode 100644
index c7719828..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/JsonDecodingException.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-/**
- * Wrapper for the JsonDecodingException
- */
-class JsonDecodingException extends RuntimeException
-{
- public function __construct($code = JSON_ERROR_NONE, \Exception $previous = null)
- {
- switch ($code) {
- case JSON_ERROR_DEPTH:
- $message = 'The maximum stack depth has been exceeded';
- break;
- case JSON_ERROR_STATE_MISMATCH:
- $message = 'Invalid or malformed JSON';
- break;
- case JSON_ERROR_CTRL_CHAR:
- $message = 'Control character error, possibly incorrectly encoded';
- break;
- case JSON_ERROR_UTF8:
- $message = 'Malformed UTF-8 characters, possibly incorrectly encoded';
- break;
- case JSON_ERROR_SYNTAX:
- $message = 'JSON syntax is malformed';
- break;
- default:
- $message = 'Syntax error';
- }
- parent::__construct($message, $code, $previous);
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ResourceNotFoundException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ResourceNotFoundException.php
deleted file mode 100644
index e639ba32..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ResourceNotFoundException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-/**
- * Wrapper for the ResourceNotFoundException
- */
-class ResourceNotFoundException extends RuntimeException
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/RuntimeException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/RuntimeException.php
deleted file mode 100644
index 8a2a9006..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/RuntimeException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-/**
- * Wrapper for the RuntimeException
- */
-class RuntimeException extends \RuntimeException implements ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UnresolvableJsonPointerException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UnresolvableJsonPointerException.php
deleted file mode 100644
index 5f49e2f0..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UnresolvableJsonPointerException.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-/**
- * @package JsonSchema\Exception
- *
- * @author Joost Nijhuis <jnijhuis81@gmail.com>
- */
-class UnresolvableJsonPointerException extends InvalidArgumentException
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UriResolverException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UriResolverException.php
deleted file mode 100644
index 13b73033..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UriResolverException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-/**
- * Wrapper for the UriResolverException
- */
-class UriResolverException extends RuntimeException
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ValidationException.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ValidationException.php
deleted file mode 100644
index 65d8849e..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ValidationException.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Exception;
-
-class ValidationException extends RuntimeException
-{
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php
deleted file mode 100644
index c459713b..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php
+++ /dev/null
@@ -1,149 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Iterator;
-
-/**
- * @package JsonSchema\Iterator
- *
- * @author Joost Nijhuis <jnijhuis81@gmail.com>
- */
-class ObjectIterator implements \Iterator, \Countable
-{
- /** @var object */
- private $object;
-
- /** @var int */
- private $position = 0;
-
- /** @var array */
- private $data = array();
-
- /** @var bool */
- private $initialized = false;
-
- /**
- * @param object $object
- */
- public function __construct($object)
- {
- $this->object = $object;
- }
-
- /**
- * {@inheritdoc}
- */
- public function current()
- {
- $this->initialize();
-
- return $this->data[$this->position];
- }
-
- /**
- * {@inheritdoc}
- */
- public function next()
- {
- $this->initialize();
- $this->position++;
- }
-
- /**
- * {@inheritdoc}
- */
- public function key()
- {
- $this->initialize();
-
- return $this->position;
- }
-
- /**
- * {@inheritdoc}
- */
- public function valid()
- {
- $this->initialize();
-
- return isset($this->data[$this->position]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function rewind()
- {
- $this->initialize();
- $this->position = 0;
- }
-
- /**
- * {@inheritdoc}
- */
- public function count()
- {
- $this->initialize();
-
- return count($this->data);
- }
-
- /**
- * Initializer
- */
- private function initialize()
- {
- if (!$this->initialized) {
- $this->data = $this->buildDataFromObject($this->object);
- $this->initialized = true;
- }
- }
-
- /**
- * @param object $object
- *
- * @return array
- */
- private function buildDataFromObject($object)
- {
- $result = array();
-
- $stack = new \SplStack();
- $stack->push($object);
-
- while (!$stack->isEmpty()) {
- $current = $stack->pop();
- if (is_object($current)) {
- array_push($result, $current);
- }
-
- foreach ($this->getDataFromItem($current) as $propertyName => $propertyValue) {
- if (is_object($propertyValue) || is_array($propertyValue)) {
- $stack->push($propertyValue);
- }
- }
- }
-
- return $result;
- }
-
- /**
- * @param object|array $item
- *
- * @return array
- */
- private function getDataFromItem($item)
- {
- if (!is_object($item) && !is_array($item)) {
- return array();
- }
-
- return is_object($item) ? get_object_vars($item) : $item;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Rfc3339.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Rfc3339.php
deleted file mode 100644
index adca581a..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Rfc3339.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace JsonSchema;
-
-class Rfc3339
-{
- const REGEX = '/^(\d{4}-\d{2}-\d{2}[T ]{1}\d{2}:\d{2}:\d{2})(\.\d+)?(Z|([+-]\d{2}):?(\d{2}))$/';
-
- /**
- * Try creating a DateTime instance
- *
- * @param string $string
- *
- * @return \DateTime|null
- */
- public static function createFromString($string)
- {
- if (!preg_match(self::REGEX, strtoupper($string), $matches)) {
- return null;
- }
-
- $dateAndTime = $matches[1];
- $microseconds = $matches[2] ?: '.000000';
- $timeZone = 'Z' !== $matches[3] ? $matches[4] . ':' . $matches[5] : '+00:00';
- $dateFormat = strpos($dateAndTime, 'T') === false ? 'Y-m-d H:i:s.uP' : 'Y-m-d\TH:i:s.uP';
- $dateTime = \DateTime::createFromFormat($dateFormat, $dateAndTime . $microseconds . $timeZone, new \DateTimeZone('UTC'));
-
- return $dateTime ?: null;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php
deleted file mode 100644
index 31da6685..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php
+++ /dev/null
@@ -1,169 +0,0 @@
-<?php
-
-namespace JsonSchema;
-
-use JsonSchema\Constraints\BaseConstraint;
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Exception\UnresolvableJsonPointerException;
-use JsonSchema\Uri\UriResolver;
-use JsonSchema\Uri\UriRetriever;
-
-class SchemaStorage implements SchemaStorageInterface
-{
- const INTERNAL_PROVIDED_SCHEMA_URI = 'internal://provided-schema/';
-
- protected $uriRetriever;
- protected $uriResolver;
- protected $schemas = array();
-
- public function __construct(
- UriRetrieverInterface $uriRetriever = null,
- UriResolverInterface $uriResolver = null
- ) {
- $this->uriRetriever = $uriRetriever ?: new UriRetriever();
- $this->uriResolver = $uriResolver ?: new UriResolver();
- }
-
- /**
- * @return UriRetrieverInterface
- */
- public function getUriRetriever()
- {
- return $this->uriRetriever;
- }
-
- /**
- * @return UriResolverInterface
- */
- public function getUriResolver()
- {
- return $this->uriResolver;
- }
-
- /**
- * {@inheritdoc}
- */
- public function addSchema($id, $schema = null)
- {
- if (is_null($schema) && $id !== self::INTERNAL_PROVIDED_SCHEMA_URI) {
- // if the schema was user-provided to Validator and is still null, then assume this is
- // what the user intended, as there's no way for us to retrieve anything else. User-supplied
- // schemas do not have an associated URI when passed via Validator::validate().
- $schema = $this->uriRetriever->retrieve($id);
- }
-
- // cast array schemas to object
- if (is_array($schema)) {
- $schema = BaseConstraint::arrayToObjectRecursive($schema);
- }
-
- // workaround for bug in draft-03 & draft-04 meta-schemas (id & $ref defined with incorrect format)
- // see https://github.com/json-schema-org/JSON-Schema-Test-Suite/issues/177#issuecomment-293051367
- if (is_object($schema) && property_exists($schema, 'id')) {
- if ($schema->id == 'http://json-schema.org/draft-04/schema#') {
- $schema->properties->id->format = 'uri-reference';
- } elseif ($schema->id == 'http://json-schema.org/draft-03/schema#') {
- $schema->properties->id->format = 'uri-reference';
- $schema->properties->{'$ref'}->format = 'uri-reference';
- }
- }
-
- // resolve references
- $this->expandRefs($schema, $id);
-
- $this->schemas[$id] = $schema;
- }
-
- /**
- * Recursively resolve all references against the provided base
- *
- * @param mixed $schema
- * @param string $base
- */
- private function expandRefs(&$schema, $base = null)
- {
- if (!is_object($schema)) {
- if (is_array($schema)) {
- foreach ($schema as &$member) {
- $this->expandRefs($member, $base);
- }
- }
-
- return;
- }
-
- if (property_exists($schema, 'id') && is_string($schema->id) && $base != $schema->id) {
- $base = $this->uriResolver->resolve($schema->id, $base);
- }
-
- if (property_exists($schema, '$ref') && is_string($schema->{'$ref'})) {
- $refPointer = new JsonPointer($this->uriResolver->resolve($schema->{'$ref'}, $base));
- $schema->{'$ref'} = (string) $refPointer;
- }
-
- foreach ($schema as &$member) {
- $this->expandRefs($member, $base);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function getSchema($id)
- {
- if (!array_key_exists($id, $this->schemas)) {
- $this->addSchema($id);
- }
-
- return $this->schemas[$id];
- }
-
- /**
- * {@inheritdoc}
- */
- public function resolveRef($ref)
- {
- $jsonPointer = new JsonPointer($ref);
-
- // resolve filename for pointer
- $fileName = $jsonPointer->getFilename();
- if (!strlen($fileName)) {
- throw new UnresolvableJsonPointerException(sprintf(
- "Could not resolve fragment '%s': no file is defined",
- $jsonPointer->getPropertyPathAsString()
- ));
- }
-
- // get & process the schema
- $refSchema = $this->getSchema($fileName);
- foreach ($jsonPointer->getPropertyPaths() as $path) {
- if (is_object($refSchema) && property_exists($refSchema, $path)) {
- $refSchema = $this->resolveRefSchema($refSchema->{$path});
- } elseif (is_array($refSchema) && array_key_exists($path, $refSchema)) {
- $refSchema = $this->resolveRefSchema($refSchema[$path]);
- } else {
- throw new UnresolvableJsonPointerException(sprintf(
- 'File: %s is found, but could not resolve fragment: %s',
- $jsonPointer->getFilename(),
- $jsonPointer->getPropertyPathAsString()
- ));
- }
- }
-
- return $refSchema;
- }
-
- /**
- * {@inheritdoc}
- */
- public function resolveRefSchema($refSchema)
- {
- if (is_object($refSchema) && property_exists($refSchema, '$ref') && is_string($refSchema->{'$ref'})) {
- $newSchema = $this->resolveRef($refSchema->{'$ref'});
- $refSchema = (object) (get_object_vars($refSchema) + get_object_vars($newSchema));
- unset($refSchema->{'$ref'});
- }
-
- return $refSchema;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorageInterface.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorageInterface.php
deleted file mode 100644
index ddaf6633..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorageInterface.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-namespace JsonSchema;
-
-interface SchemaStorageInterface
-{
- /**
- * Adds schema with given identifier
- *
- * @param string $id
- * @param object $schema
- */
- public function addSchema($id, $schema = null);
-
- /**
- * Returns schema for given identifier, or null if it does not exist
- *
- * @param string $id
- *
- * @return object
- */
- public function getSchema($id);
-
- /**
- * Returns schema for given reference with all sub-references resolved
- *
- * @param string $ref
- *
- * @return object
- */
- public function resolveRef($ref);
-
- /**
- * Returns schema referenced by '$ref' property
- *
- * @param mixed $refSchema
- *
- * @return object
- */
- public function resolveRefSchema($refSchema);
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/AbstractRetriever.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/AbstractRetriever.php
deleted file mode 100644
index 9ab24b95..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/AbstractRetriever.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/**
- * JsonSchema
- *
- * @filesource
- */
-
-namespace JsonSchema\Uri\Retrievers;
-
-/**
- * AbstractRetriever implements the default shared behavior
- * that all descendant Retrievers should inherit
- *
- * @author Steven Garcia <webwhammy@gmail.com>
- */
-abstract class AbstractRetriever implements UriRetrieverInterface
-{
- /**
- * Media content type
- *
- * @var string
- */
- protected $contentType;
-
- /**
- * {@inheritdoc}
- *
- * @see \JsonSchema\Uri\Retrievers\UriRetrieverInterface::getContentType()
- */
- public function getContentType()
- {
- return $this->contentType;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php
deleted file mode 100644
index 81c86037..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Uri\Retrievers;
-
-use JsonSchema\Exception\RuntimeException;
-use JsonSchema\Validator;
-
-/**
- * Tries to retrieve JSON schemas from a URI using cURL library
- *
- * @author Sander Coolen <sander@jibber.nl>
- */
-class Curl extends AbstractRetriever
-{
- protected $messageBody;
-
- public function __construct()
- {
- if (!function_exists('curl_init')) {
- // Cannot test this, because curl_init is present on all test platforms plus mock
- throw new RuntimeException('cURL not installed'); // @codeCoverageIgnore
- }
- }
-
- /**
- * {@inheritdoc}
- *
- * @see \JsonSchema\Uri\Retrievers\UriRetrieverInterface::retrieve()
- */
- public function retrieve($uri)
- {
- $ch = curl_init();
-
- curl_setopt($ch, CURLOPT_URL, $uri);
- curl_setopt($ch, CURLOPT_HEADER, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: ' . Validator::SCHEMA_MEDIA_TYPE));
-
- $response = curl_exec($ch);
- if (false === $response) {
- throw new \JsonSchema\Exception\ResourceNotFoundException('JSON schema not found');
- }
-
- $this->fetchMessageBody($response);
- $this->fetchContentType($response);
-
- curl_close($ch);
-
- return $this->messageBody;
- }
-
- /**
- * @param string $response cURL HTTP response
- */
- private function fetchMessageBody($response)
- {
- preg_match("/(?:\r\n){2}(.*)$/ms", $response, $match);
- $this->messageBody = $match[1];
- }
-
- /**
- * @param string $response cURL HTTP response
- *
- * @return bool Whether the Content-Type header was found or not
- */
- protected function fetchContentType($response)
- {
- if (0 < preg_match("/Content-Type:(\V*)/ims", $response, $match)) {
- $this->contentType = trim($match[1]);
-
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php
deleted file mode 100644
index 7019814f..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Uri\Retrievers;
-
-use JsonSchema\Exception\ResourceNotFoundException;
-
-/**
- * Tries to retrieve JSON schemas from a URI using file_get_contents()
- *
- * @author Sander Coolen <sander@jibber.nl>
- */
-class FileGetContents extends AbstractRetriever
-{
- protected $messageBody;
-
- /**
- * {@inheritdoc}
- *
- * @see \JsonSchema\Uri\Retrievers\UriRetrieverInterface::retrieve()
- */
- public function retrieve($uri)
- {
- $errorMessage = null;
- set_error_handler(function ($errno, $errstr) use (&$errorMessage) {
- $errorMessage = $errstr;
- });
- $response = file_get_contents($uri);
- restore_error_handler();
-
- if ($errorMessage) {
- throw new ResourceNotFoundException($errorMessage);
- }
-
- if (false === $response) {
- throw new ResourceNotFoundException('JSON schema not found at ' . $uri);
- }
-
- if ($response == ''
- && substr($uri, 0, 7) == 'file://' && substr($uri, -1) == '/'
- ) {
- throw new ResourceNotFoundException('JSON schema not found at ' . $uri);
- }
-
- $this->messageBody = $response;
- if (!empty($http_response_header)) {
- // $http_response_header cannot be tested, because it's defined in the method's local scope
- // See http://php.net/manual/en/reserved.variables.httpresponseheader.php for more info.
- $this->fetchContentType($http_response_header); // @codeCoverageIgnore
- } else { // @codeCoverageIgnore
- // Could be a "file://" url or something else - fake up the response
- $this->contentType = null;
- }
-
- return $this->messageBody;
- }
-
- /**
- * @param array $headers HTTP Response Headers
- *
- * @return bool Whether the Content-Type header was found or not
- */
- private function fetchContentType(array $headers)
- {
- foreach ($headers as $header) {
- if ($this->contentType = self::getContentTypeMatchInHeader($header)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * @param string $header
- *
- * @return string|null
- */
- protected static function getContentTypeMatchInHeader($header)
- {
- if (0 < preg_match("/Content-Type:(\V*)/ims", $header, $match)) {
- return trim($match[1]);
- }
-
- return null;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php
deleted file mode 100644
index a663d341..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-namespace JsonSchema\Uri\Retrievers;
-
-use JsonSchema\Validator;
-
-/**
- * URI retrieved based on a predefined array of schemas
- *
- * @example
- *
- * $retriever = new PredefinedArray(array(
- * 'http://acme.com/schemas/person#' => '{ ... }',
- * 'http://acme.com/schemas/address#' => '{ ... }',
- * ))
- *
- * $schema = $retriever->retrieve('http://acme.com/schemas/person#');
- */
-class PredefinedArray extends AbstractRetriever
-{
- /**
- * Contains schemas as URI => JSON
- *
- * @var array
- */
- private $schemas;
-
- /**
- * Constructor
- *
- * @param array $schemas
- * @param string $contentType
- */
- public function __construct(array $schemas, $contentType = Validator::SCHEMA_MEDIA_TYPE)
- {
- $this->schemas = $schemas;
- $this->contentType = $contentType;
- }
-
- /**
- * {@inheritdoc}
- *
- * @see \JsonSchema\Uri\Retrievers\UriRetrieverInterface::retrieve()
- */
- public function retrieve($uri)
- {
- if (!array_key_exists($uri, $this->schemas)) {
- throw new \JsonSchema\Exception\ResourceNotFoundException(sprintf(
- 'The JSON schema "%s" was not found.',
- $uri
- ));
- }
-
- return $this->schemas[$uri];
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php
deleted file mode 100644
index 2cc40cf2..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Uri\Retrievers;
-
-/**
- * Interface for URI retrievers
- *
- * @author Sander Coolen <sander@jibber.nl>
- */
-interface UriRetrieverInterface
-{
- /**
- * Retrieve a schema from the specified URI
- *
- * @param string $uri URI that resolves to a JSON schema
- *
- * @throws \JsonSchema\Exception\ResourceNotFoundException
- *
- * @return mixed string|null
- */
- public function retrieve($uri);
-
- /**
- * Get media content type
- *
- * @return string
- */
- public function getContentType();
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php
deleted file mode 100644
index 8ab6650e..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php
+++ /dev/null
@@ -1,175 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Uri;
-
-use JsonSchema\Exception\UriResolverException;
-use JsonSchema\UriResolverInterface;
-
-/**
- * Resolves JSON Schema URIs
- *
- * @author Sander Coolen <sander@jibber.nl>
- */
-class UriResolver implements UriResolverInterface
-{
- /**
- * Parses a URI into five main components
- *
- * @param string $uri
- *
- * @return array
- */
- public function parse($uri)
- {
- preg_match('|^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?|', $uri, $match);
-
- $components = array();
- if (5 < count($match)) {
- $components = array(
- 'scheme' => $match[2],
- 'authority' => $match[4],
- 'path' => $match[5]
- );
- }
- if (7 < count($match)) {
- $components['query'] = $match[7];
- }
- if (9 < count($match)) {
- $components['fragment'] = $match[9];
- }
-
- return $components;
- }
-
- /**
- * Builds a URI based on n array with the main components
- *
- * @param array $components
- *
- * @return string
- */
- public function generate(array $components)
- {
- $uri = $components['scheme'] . '://'
- . $components['authority']
- . $components['path'];
-
- if (array_key_exists('query', $components) && strlen($components['query'])) {
- $uri .= '?' . $components['query'];
- }
- if (array_key_exists('fragment', $components)) {
- $uri .= '#' . $components['fragment'];
- }
-
- return $uri;
- }
-
- /**
- * {@inheritdoc}
- */
- public function resolve($uri, $baseUri = null)
- {
- // treat non-uri base as local file path
- if (
- !is_null($baseUri) &&
- !filter_var($baseUri, \FILTER_VALIDATE_URL) &&
- !preg_match('|^[^/]+://|u', $baseUri)
- ) {
- if (is_file($baseUri)) {
- $baseUri = 'file://' . realpath($baseUri);
- } elseif (is_dir($baseUri)) {
- $baseUri = 'file://' . realpath($baseUri) . '/';
- } else {
- $baseUri = 'file://' . getcwd() . '/' . $baseUri;
- }
- }
-
- if ($uri == '') {
- return $baseUri;
- }
-
- $components = $this->parse($uri);
- $path = $components['path'];
-
- if (!empty($components['scheme'])) {
- return $uri;
- }
- $baseComponents = $this->parse($baseUri);
- $basePath = $baseComponents['path'];
-
- $baseComponents['path'] = self::combineRelativePathWithBasePath($path, $basePath);
- if (isset($components['fragment'])) {
- $baseComponents['fragment'] = $components['fragment'];
- }
-
- return $this->generate($baseComponents);
- }
-
- /**
- * Tries to glue a relative path onto an absolute one
- *
- * @param string $relativePath
- * @param string $basePath
- *
- * @throws UriResolverException
- *
- * @return string Merged path
- */
- public static function combineRelativePathWithBasePath($relativePath, $basePath)
- {
- $relativePath = self::normalizePath($relativePath);
- if ($relativePath == '') {
- return $basePath;
- }
- if ($relativePath[0] == '/') {
- return $relativePath;
- }
-
- $basePathSegments = explode('/', $basePath);
-
- preg_match('|^/?(\.\./(?:\./)*)*|', $relativePath, $match);
- $numLevelUp = strlen($match[0]) /3 + 1;
- if ($numLevelUp >= count($basePathSegments)) {
- throw new UriResolverException(sprintf("Unable to resolve URI '%s' from base '%s'", $relativePath, $basePath));
- }
-
- $basePathSegments = array_slice($basePathSegments, 0, -$numLevelUp);
- $path = preg_replace('|^/?(\.\./(\./)*)*|', '', $relativePath);
-
- return implode('/', $basePathSegments) . '/' . $path;
- }
-
- /**
- * Normalizes a URI path component by removing dot-slash and double slashes
- *
- * @param string $path
- *
- * @return string
- */
- private static function normalizePath($path)
- {
- $path = preg_replace('|((?<!\.)\./)*|', '', $path);
- $path = preg_replace('|//|', '/', $path);
-
- return $path;
- }
-
- /**
- * @param string $uri
- *
- * @return bool
- */
- public function isValid($uri)
- {
- $components = $this->parse($uri);
-
- return !empty($components);
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php
deleted file mode 100644
index 41147a2a..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php
+++ /dev/null
@@ -1,349 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema\Uri;
-
-use JsonSchema\Exception\InvalidSchemaMediaTypeException;
-use JsonSchema\Exception\JsonDecodingException;
-use JsonSchema\Exception\ResourceNotFoundException;
-use JsonSchema\Uri\Retrievers\FileGetContents;
-use JsonSchema\Uri\Retrievers\UriRetrieverInterface;
-use JsonSchema\UriRetrieverInterface as BaseUriRetrieverInterface;
-use JsonSchema\Validator;
-
-/**
- * Retrieves JSON Schema URIs
- *
- * @author Tyler Akins <fidian@rumkin.com>
- */
-class UriRetriever implements BaseUriRetrieverInterface
-{
- /**
- * @var array Map of URL translations
- */
- protected $translationMap = array(
- // use local copies of the spec schemas
- '|^https?://json-schema.org/draft-(0[34])/schema#?|' => 'package://dist/schema/json-schema-draft-$1.json'
- );
-
- /**
- * @var array A list of endpoints for media type check exclusion
- */
- protected $allowedInvalidContentTypeEndpoints = array(
- 'http://json-schema.org/',
- 'https://json-schema.org/'
- );
-
- /**
- * @var null|UriRetrieverInterface
- */
- protected $uriRetriever = null;
-
- /**
- * @var array|object[]
- *
- * @see loadSchema
- */
- private $schemaCache = array();
-
- /**
- * Adds an endpoint to the media type validation exclusion list
- *
- * @param string $endpoint
- */
- public function addInvalidContentTypeEndpoint($endpoint)
- {
- $this->allowedInvalidContentTypeEndpoints[] = $endpoint;
- }
-
- /**
- * Guarantee the correct media type was encountered
- *
- * @param UriRetrieverInterface $uriRetriever
- * @param string $uri
- *
- * @return bool|void
- */
- public function confirmMediaType($uriRetriever, $uri)
- {
- $contentType = $uriRetriever->getContentType();
-
- if (is_null($contentType)) {
- // Well, we didn't get an invalid one
- return;
- }
-
- if (in_array($contentType, array(Validator::SCHEMA_MEDIA_TYPE, 'application/json'))) {
- return;
- }
-
- foreach ($this->allowedInvalidContentTypeEndpoints as $endpoint) {
- if (strpos($uri, $endpoint) === 0) {
- return true;
- }
- }
-
- throw new InvalidSchemaMediaTypeException(sprintf('Media type %s expected', Validator::SCHEMA_MEDIA_TYPE));
- }
-
- /**
- * Get a URI Retriever
- *
- * If none is specified, sets a default FileGetContents retriever and
- * returns that object.
- *
- * @return UriRetrieverInterface
- */
- public function getUriRetriever()
- {
- if (is_null($this->uriRetriever)) {
- $this->setUriRetriever(new FileGetContents());
- }
-
- return $this->uriRetriever;
- }
-
- /**
- * Resolve a schema based on pointer
- *
- * URIs can have a fragment at the end in the format of
- * #/path/to/object and we are to look up the 'path' property of
- * the first object then the 'to' and 'object' properties.
- *
- * @param object $jsonSchema JSON Schema contents
- * @param string $uri JSON Schema URI
- *
- * @throws ResourceNotFoundException
- *
- * @return object JSON Schema after walking down the fragment pieces
- */
- public function resolvePointer($jsonSchema, $uri)
- {
- $resolver = new UriResolver();
- $parsed = $resolver->parse($uri);
- if (empty($parsed['fragment'])) {
- return $jsonSchema;
- }
-
- $path = explode('/', $parsed['fragment']);
- while ($path) {
- $pathElement = array_shift($path);
- if (!empty($pathElement)) {
- $pathElement = str_replace('~1', '/', $pathElement);
- $pathElement = str_replace('~0', '~', $pathElement);
- if (!empty($jsonSchema->$pathElement)) {
- $jsonSchema = $jsonSchema->$pathElement;
- } else {
- throw new ResourceNotFoundException(
- 'Fragment "' . $parsed['fragment'] . '" not found'
- . ' in ' . $uri
- );
- }
-
- if (!is_object($jsonSchema)) {
- throw new ResourceNotFoundException(
- 'Fragment part "' . $pathElement . '" is no object '
- . ' in ' . $uri
- );
- }
- }
- }
-
- return $jsonSchema;
- }
-
- /**
- * {@inheritdoc}
- */
- public function retrieve($uri, $baseUri = null, $translate = true)
- {
- $resolver = new UriResolver();
- $resolvedUri = $fetchUri = $resolver->resolve($uri, $baseUri);
-
- //fetch URL without #fragment
- $arParts = $resolver->parse($resolvedUri);
- if (isset($arParts['fragment'])) {
- unset($arParts['fragment']);
- $fetchUri = $resolver->generate($arParts);
- }
-
- // apply URI translations
- if ($translate) {
- $fetchUri = $this->translate($fetchUri);
- }
-
- $jsonSchema = $this->loadSchema($fetchUri);
-
- // Use the JSON pointer if specified
- $jsonSchema = $this->resolvePointer($jsonSchema, $resolvedUri);
-
- if ($jsonSchema instanceof \stdClass) {
- $jsonSchema->id = $resolvedUri;
- }
-
- return $jsonSchema;
- }
-
- /**
- * Fetch a schema from the given URI, json-decode it and return it.
- * Caches schema objects.
- *
- * @param string $fetchUri Absolute URI
- *
- * @return object JSON schema object
- */
- protected function loadSchema($fetchUri)
- {
- if (isset($this->schemaCache[$fetchUri])) {
- return $this->schemaCache[$fetchUri];
- }
-
- $uriRetriever = $this->getUriRetriever();
- $contents = $this->uriRetriever->retrieve($fetchUri);
- $this->confirmMediaType($uriRetriever, $fetchUri);
- $jsonSchema = json_decode($contents);
-
- if (JSON_ERROR_NONE < $error = json_last_error()) {
- throw new JsonDecodingException($error);
- }
-
- $this->schemaCache[$fetchUri] = $jsonSchema;
-
- return $jsonSchema;
- }
-
- /**
- * Set the URI Retriever
- *
- * @param UriRetrieverInterface $uriRetriever
- *
- * @return $this for chaining
- */
- public function setUriRetriever(UriRetrieverInterface $uriRetriever)
- {
- $this->uriRetriever = $uriRetriever;
-
- return $this;
- }
-
- /**
- * Parses a URI into five main components
- *
- * @param string $uri
- *
- * @return array
- */
- public function parse($uri)
- {
- preg_match('|^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?|', $uri, $match);
-
- $components = array();
- if (5 < count($match)) {
- $components = array(
- 'scheme' => $match[2],
- 'authority' => $match[4],
- 'path' => $match[5]
- );
- }
-
- if (7 < count($match)) {
- $components['query'] = $match[7];
- }
-
- if (9 < count($match)) {
- $components['fragment'] = $match[9];
- }
-
- return $components;
- }
-
- /**
- * Builds a URI based on n array with the main components
- *
- * @param array $components
- *
- * @return string
- */
- public function generate(array $components)
- {
- $uri = $components['scheme'] . '://'
- . $components['authority']
- . $components['path'];
-
- if (array_key_exists('query', $components)) {
- $uri .= $components['query'];
- }
-
- if (array_key_exists('fragment', $components)) {
- $uri .= $components['fragment'];
- }
-
- return $uri;
- }
-
- /**
- * Resolves a URI
- *
- * @param string $uri Absolute or relative
- * @param string $baseUri Optional base URI
- *
- * @return string
- */
- public function resolve($uri, $baseUri = null)
- {
- $components = $this->parse($uri);
- $path = $components['path'];
-
- if ((array_key_exists('scheme', $components)) && ('http' === $components['scheme'])) {
- return $uri;
- }
-
- $baseComponents = $this->parse($baseUri);
- $basePath = $baseComponents['path'];
-
- $baseComponents['path'] = UriResolver::combineRelativePathWithBasePath($path, $basePath);
-
- return $this->generate($baseComponents);
- }
-
- /**
- * @param string $uri
- *
- * @return bool
- */
- public function isValid($uri)
- {
- $components = $this->parse($uri);
-
- return !empty($components);
- }
-
- /**
- * Set a URL translation rule
- */
- public function setTranslation($from, $to)
- {
- $this->translationMap[$from] = $to;
- }
-
- /**
- * Apply URI translation rules
- */
- public function translate($uri)
- {
- foreach ($this->translationMap as $from => $to) {
- $uri = preg_replace($from, $to, $uri);
- }
-
- // translate references to local files within the json-schema package
- $uri = preg_replace('|^package://|', sprintf('file://%s/', realpath(__DIR__ . '/../../..')), $uri);
-
- return $uri;
- }
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php
deleted file mode 100644
index 4eb50c03..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema;
-
-/**
- * @package JsonSchema
- */
-interface UriResolverInterface
-{
- /**
- * Resolves a URI
- *
- * @param string $uri Absolute or relative
- * @param null|string $baseUri Optional base URI
- *
- * @return string Absolute URI
- */
- public function resolve($uri, $baseUri = null);
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php
deleted file mode 100644
index 94ad0cba..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema;
-
-/**
- * @package JsonSchema
- */
-interface UriRetrieverInterface
-{
- /**
- * Retrieve a URI
- *
- * @param string $uri JSON Schema URI
- * @param null|string $baseUri
- *
- * @return object JSON Schema contents
- */
- public function retrieve($uri, $baseUri = null);
-}
diff --git a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php b/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php
deleted file mode 100644
index 448091cd..00000000
--- a/www/wiki/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-
-/*
- * This file is part of the JsonSchema package.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace JsonSchema;
-
-use JsonSchema\Constraints\BaseConstraint;
-use JsonSchema\Constraints\Constraint;
-
-/**
- * A JsonSchema Constraint
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Bruno Prieto Reis <bruno.p.reis@gmail.com>
- *
- * @see README.md
- */
-class Validator extends BaseConstraint
-{
- const SCHEMA_MEDIA_TYPE = 'application/schema+json';
-
- const ERROR_NONE = 0x00000000;
- const ERROR_ALL = 0xFFFFFFFF;
- const ERROR_DOCUMENT_VALIDATION = 0x00000001;
- const ERROR_SCHEMA_VALIDATION = 0x00000002;
-
- /**
- * Validates the given data against the schema and returns an object containing the results
- * Both the php object and the schema are supposed to be a result of a json_decode call.
- * The validation works as defined by the schema proposal in http://json-schema.org.
- *
- * Note that the first argument is passwd by reference, so you must pass in a variable.
- *
- * {@inheritdoc}
- */
- public function validate(&$value, $schema = null, $checkMode = null)
- {
- // make sure $schema is an object
- if (is_array($schema)) {
- $schema = self::arrayToObjectRecursive($schema);
- }
-
- // set checkMode
- $initialCheckMode = $this->factory->getConfig();
- if ($checkMode !== null) {
- $this->factory->setConfig($checkMode);
- }
-
- // add provided schema to SchemaStorage with internal URI to allow internal $ref resolution
- if (is_object($schema) && property_exists($schema, 'id')) {
- $schemaURI = $schema->id;
- } else {
- $schemaURI = SchemaStorage::INTERNAL_PROVIDED_SCHEMA_URI;
- }
- $this->factory->getSchemaStorage()->addSchema($schemaURI, $schema);
-
- $validator = $this->factory->createInstanceFor('schema');
- $validator->check(
- $value,
- $this->factory->getSchemaStorage()->getSchema($schemaURI)
- );
-
- $this->factory->setConfig($initialCheckMode);
-
- $this->addErrors(array_unique($validator->getErrors(), SORT_REGULAR));
-
- return $validator->getErrorMask();
- }
-
- /**
- * Alias to validate(), to maintain backwards-compatibility with the previous API
- */
- public function check($value, $schema)
- {
- return $this->validate($value, $schema);
- }
-
- /**
- * Alias to validate(), to maintain backwards-compatibility with the previous API
- */
- public function coerce(&$value, $schema)
- {
- return $this->validate($value, $schema, Constraint::CHECK_MODE_COERCE_TYPES);
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/COPYRIGHT b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/COPYRIGHT
deleted file mode 100644
index 883318fa..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/COPYRIGHT
+++ /dev/null
@@ -1,9 +0,0 @@
-This code is copyrighted:
-
- Copyright (c) 2012-2013 Antoine "hashar Musso
- Copyirght (c) 2013 Wikimedia Foundation
-
-Code made by Antoine "hashar" Musso since October 2012 are under a joint
-copyright with the "Wikimedia Foundation".
-
-See LICENSE for the actual license.
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/HISTORY.md b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/HISTORY.md
deleted file mode 100644
index 979a4f5d..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/HISTORY.md
+++ /dev/null
@@ -1,183 +0,0 @@
-# MediaWiki-Codesniffer release history #
-
-## 0.12.0 / 2017-08-29 ##
-* Add sniff to ensure floats have a leading `0` if necessary (Kunal Mehta)
-* Add sniff to ensure the class name matches the filename (Kunal Mehta)
-* Change bootstrap-ci.php to match PHP CodeSniffer 3.0.0 (Umherirrender)
-* Check for unneeded punctation in @param and @return (Umherirrender)
-* Check spacing after type in @return (Umherirrender)
-* Check spacing before type in @param and @return (Umherirrender)
-* Clean up test helpers (Kunal Mehta)
-* Do not mess long function comments on composer fix (Umherirrender)
-* Enforce "short" type definitions in multi types in function comments (Umherirrender)
-* Make it easier to figure out which test failed (Kunal Mehta)
-* phpunit: replace deprecated strict=true (Umherirrender)
-* Remove GoatSniffer integration (Kunal Mehta)
-* Remove unmatched @codingStandardsIgnoreEnd (Umherirrender)
-* Rename OpeningKeywordBracketSniff to OpeningKeywordParenthesisSniff (Reedy)
-* Use local OneClassPerFile sniff for only one class/interface/trait (Kunal Mehta)
-
-## 0.11.1 / 2017-08-13 ##
-* Add GoatSniffer ASCII art (Kunal Mehta)
-
-## 0.11.0 / 2017-08-10 ##
-* Added OpeningKeywordBraceSniff (Umherirrender)
-* Add sniff to forbid PHP 7 scalar type hints (Kunal Mehta)
-* Enable Squiz.WhiteSpace.OperatorSpacing (Umherirrender)
-* Enforce "short" type definitions on @param in comments (Umherirrender)
-* Fix phpunit test on windows (Umherirrender)
-* Fix Undefined offset in FunctionCommentSniff (Umherirrender)
-
-## 0.10.1 / 2017-07-22 ##
-* Add .gitattributes (Umherirrender)
-* Add Squiz.Classes.SelfMemberReference to ruleset (Kunal Mehta)
-* build: Added php-console-highlighter (Umherirrender)
-* Don't ignore files or paths with "git" in them, only .git (Kunal Mehta)
-* Fix exclude of common folders (Umherirrender)
-* Fix "Undefined index: scope_opener" in SpaceBeforeClassBraceSniff (Reedy)
-* Forbid backtick operator (Matthew Flaschen)
-* Ignore returns in closures for MissingReturn sniff (Kunal Mehta)
-* PHP CodeSniffer on CI should only lint HEAD (Antoine Musso)
-* Reduce false positives in ReferenceThisSniff (Kunal Mehta)
-* Sniff that the short type form is used in @return tags (Kunal Mehta)
-* Swap isset() === false to !isset() (Reedy)
-* track=1 rather than defaultbranch (Reedy)
-* Update PHP_CodeSniffer to 3.0.2 (Kunal Mehta)
-
-## 0.10.0 / 2017-07-01 ##
-* Add sniff to prevent against using PHP 7's Unicode escape syntax (Kunal Mehta)
-* Add sniff to verify type-casts use the short form (bool, int) (Kunal Mehta)
-* Add sniff for `&$this` that causes warnings in PHP 7.1 (Kunal Mehta)
-* Clean up DbrQueryUsageSniff (Umherirrender)
-* Ensure all FunctionComment sniff codes are standard (Kunal Mehta)
-* Exclude common folders (Umherirrender)
-* Fix handling of nested parenthesis in ParenthesesAroundKeywordSniff (Kunal Mehta)
-* IllegalSingleLineCommentSniff: Check return value of strrpos strictly (Kunal Mehta)
-* Improve handling of multi-line class declarations (Kunal Mehta)
-* Include sniff warning/error codes in test output (Kunal Mehta)
-* Make DisallowEmptyLineFunctionsSniff apply to closures too (Kunal Mehta)
-* Use correct notation for UTF-8 (Umherirrender)
-
-## 0.9.0 / 2017-06-19 ##
-* Add sniff to enforce "function (" for closures (Kunal Mehta)
-* Add usage of && in generic_pass (addshore)
-* Disallow `and` and `or` (Kunal Mehta)
-* Don't require documentation for constructors without parameters (Kunal Mehta)
-* Don't require documentation for '__toString' (Kunal Mehta)
-* Don't require return/throws/param for doc blocks with @inheritDoc (Kunal Mehta)
-* Expand list of standard methods that don't need documentation (Kunal Mehta)
-* Fix FunctionComment.Missing sniff code (Kunal Mehta)
-* Fix indentation (Umherirrender)
-* Fix WhiteSpace/SpaceAfterClosureSniff (Antoine Musso)
-* Make sure all files end with a newline (Kunal Mehta)
-* test: ensure consistent report width (Antoine Musso)
-* Update for CodeSniffer 3.0 (Kunal Mehta)
-* Update squizlabs/PHP_CodeSniffer to 3.0.1 (Reedy)
-* Use upstream CharacterBeforePHPOpeningTag sniff (Kunal Mehta)
-
-## 0.8.0 / 2017-05-03 ##
-* Add sniff for cast operator spacing (Sam Wilson)
-* Allow filtering documentation requirements based on visibility (Kunal Mehta)
-* Don't require documentation for test cases (Kunal Mehta)
-* Don't require @return annotations for plain "return;" (Kunal Mehta)
-* Explicitly check for method structure before using (Sam Wilson)
-* Fix test result parsing, and correct new errors that were exposed (Sam Wilson)
-* Prevent abstract functions being marked eligible (Sam Wilson)
-* PHP_CodeSniffer to 2.9.0 (Paladox)
-
-## 0.8.0-alpha.1 / 2016-09-21 ##
-* Add detection for calling global functions in target classes. (Tao Xie)
-* Add function commenting sniff. (Lethexie)
-* Add .idea directory to .gitignore (Florian Schmidt)
-* Add sniff to confirm function name using lower camel case. (Lethexie)
-* Add test to verify SpaceBeforeClassBraceSniff handles extends (Kunal Mehta)
-* Add the SpaceBeforeClassBraceSniff (Lethe)
-* Add the SpaceBeforeControlStructureBraceSniff (Lethexie)
-* Add usage to forbid superglobals like $_GET,$_POST (Lethe)
-* Comments should start with new line. (Lethe)
-* Disallow parenthesis around keywords like clone or require (Florian)
-* Enable PSR2.Methods.FunctionClosingBrace sniff (Kunal Mehta)
-* Fix reference parameters warning and no return function need return tag (Lethe)
-* Fix single space expected on single line comment. (Lethexie)
-* Make sure no empty line at the begin of the function. (Lethexie)
-* Put failed examples and passed examples into a file. (Lethexie)
-* Report warnings when $dbr->query() is used instead of $dbr->select(). (Tao Xie)
-* Single Line comments no multiple '*'. (Lethe)
-* Update squizlabs/php_codesniffer to 2.7.0 (Paladox)
-
-## 0.7.2 / 2016-05-27 ##
-* SpaceyParenthesisSniff: Don't remove last argument or array element (Kevin Israel)
-* Expect specific output from sniffs (Erik Bernhardson)
-* Assert fixers do as intended (Erik Bernhardson)
-
-## 0.7.1 / 2016-05-06 ##
-* Fix typo in IfElseStructureSniff (addshore)
-
-## 0.7.0 / 2016-05-06 ##
-* Also check for space after elseif in SpaceAfterControlStructureSniff (Lethexie)
-* Factor our tokenIsNamespaced method (addshore)
-* Make IfElseStructureSniff can detect and fix multiple white spaces after else (Lethexie)
-* Make SpaceyParenthesisSniff can fix multiple white spaces between parentheses (Lethexie)
-* Make spacey parenthesis sniff work with short array syntax (Kunal Mehta)
-* Speed up PrefixedGlobalFunctionsSniff (addshore)
-* Update squizlabs/php_codesniffer to 2.6.0 (Paladox)
-
-## 0.6.0 / 2016-02-17 ##
-* Add Generic.Arrays.DisallowLongArraySyntax to ruleset, autofix this repo (Kunal Mehta)
-* Add sniff to detect consecutive empty lines in a file (Vivek Ghaisas)
-* Disable Generic.Functions.CallTimePassByReference.NotAllowed (Kunal Mehta)
-* Update squizlabs/php_codesniffer to 2.5.1 (Paladox)
-
-## 0.5.1 / 2015-12-28 ##
-* Avoid in_array for performance reasons (Thiemo Mättig)
-* build: Pass -s to phpcs for easier debugging (Kunal Mehta)
-* Remove dead code from SpaceBeforeSingleLineCommentSniff (Thiemo Mättig)
-* Revert "CharacterBeforePHPOpeningTagSniff: Support T_HASHBANG for HHVM >=3.5,<3.7" (Legoktm)
-* Simplify existing regular expressions (Thiemo Mättig)
-* build: Update phpunit to 4.8.18 (Paladox)
-* Update squizlabs/php_codesniffer to 2.5.0 (Paladox)
-
-## 0.5.0 / 2015-10-23 ##
-* Add Generic.ControlStructures.InlineControlStructure to ruleset (Kunal Mehta)
-* Add IfElseStructureSniff to handle else structures (TasneemLo)
-* Handle multiple # comments in Space Before Comment (TasneemLo)
-* Sniff to check assignment in while & if (TasneemLo)
-* Sniff to warn when using dirname(__FILE__) (TasneemLo)
-
-## 0.4.0 / 2015-09-26 ##
-* Use upstream codesniffer 2.3.4 (Kunal Mehta & Paladox)
-* Sniff to check for space in single line comments (Smriti.Singh)
-* Automatically fix warnings caught by SpaceyParenthesisSniff (Kunal Mehta)
-* Automatically fix warnings caught by SpaceAfterControlStructureSniff (Kunal Mehta)
-* Add ignore list to PrefixedGlobalFunctionsSniff (Vivek Ghaisas)
-* Add ignore list to ValidGlobalNameSniff (Vivek Ghaisas)
-* Update jakub-onderka/php-parallel-lint to 0.9.* (Paladox)
-* Automatically fix warnings caught by SpaceBeforeSingleLineCommentSniff (Kunal Mehta)
-
-## 0.3.0 / 2015-06-19 ##
-* Update README.md code formatting (Vivek Ghaisas)
-* Don't require "wf" prefix on functions that are namespaced (Kunal Mehta)
-* Simplify PHPUnit boostrap, require usage of composer for running tests (Kunal Mehta)
-* SpaceyParenthesis: Check for space before opening parenthesis (Vivek Ghaisas)
-* SpaceyParenthesesSniff: Search for extra/unnecessary space (Vivek Ghaisas)
-* CharacterBeforePHPOpeningTagSniff: Support T_HASHBANG for HHVM >=3.5,<3.7 (Kunal Mehta)
-
-## 0.2.0 / 2015-06-02 ##
-* Fixed sniff that checks globals have a "wg" prefix (Divya)
-* New sniff to detect unused global variables (Divya)
-* New sniff to detect text before first opening php tag (Sumit Asthana)
-* New sniff to detect alternative syntax such as "endif" (Vivek Ghaisas)
-* New sniff to detect unprefixed global functions (Vivek Ghaisas)
-* New sniff to detect "goto" usage (Harshit Harchani)
-* Update ignore with some emacs files. (Mark A. Hershberger)
-* Use upstream codesniffer 2.3.0 (Kunal Mehta)
-* Make mediawiki/tools/codesniffer pass phpcs (Vivek Ghaisas)
-* New sniff to check for spacey use of parentheses (Kunal Mehta)
-* Modify generic pass test with a case of not-spacey parentheses (Vivek Ghaisas)
-* Make failing tests fail only for specific respective reasons (Vivek Ghaisas)
-* Change certain errors to warnings (Vivek Ghaisas)
-* Update ExtraCharacters Sniff to allow shebang (Harshit Harchani)
-
-## 0.1.0 / 2015-01-05 ##
-
-* Initial tagged release
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/LICENSE b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/LICENSE
deleted file mode 100644
index d159169d..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/LICENSE
+++ /dev/null
@@ -1,339 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/AlternativeSyntaxSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/AlternativeSyntaxSniff.php
deleted file mode 100644
index c8201b90..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/AlternativeSyntaxSniff.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/**
- * Verify alternative syntax is not being used
- */
-
-namespace MediaWiki\Sniffs\AlternativeSyntax;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class AlternativeSyntaxSniff implements Sniff {
- /**
- * @return array
- */
- public function register() {
- // Per https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP
- // section on alternative syntax.
- return [
- T_ENDDECLARE,
- T_ENDFOR,
- T_ENDFOREACH,
- T_ENDIF,
- T_ENDSWITCH,
- T_ENDWHILE,
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $error = 'Alternative syntax such as "%s" should not be used';
- $data = [ $tokens[$stackPtr]['content'] ];
- $phpcsFile->addWarning( $error, $stackPtr, 'AlternativeSyntax', $data );
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/LeadingZeroInFloatSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/LeadingZeroInFloatSniff.php
deleted file mode 100644
index d90c0b05..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/LeadingZeroInFloatSniff.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/**
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- */
-
-namespace MediaWiki\Sniffs\AlternativeSyntax;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class LeadingZeroInFloatSniff implements Sniff {
-
- /**
- * T_DNUMBER is any floating point number
- *
- * @return array
- */
- public function register() {
- return [
- T_DNUMBER,
- ];
- }
-
- /**
- * If the float starts with a period, it needs
- * a zero in front
- *
- * @param File $phpcsFile File
- * @param int $stackPtr Location
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $content = $tokens[$stackPtr]['content'];
- if ( $content[0] == '.' ) {
- // Starts with a ., needs a leading 0.
- $fix = $phpcsFile->addFixableWarning(
- 'Floats should have a leading 0',
- $stackPtr,
- 'Found'
- );
- if ( $fix ) {
- $phpcsFile->fixer->replaceToken(
- $stackPtr,
- // Put a zero in front of the existing content
- '0' . $content
- );
- }
- }
- }
-
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/PHP7UnicodeSyntaxSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/PHP7UnicodeSyntaxSniff.php
deleted file mode 100644
index ed380206..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/PHP7UnicodeSyntaxSniff.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-/**
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- */
-
-namespace MediaWiki\Sniffs\AlternativeSyntax;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-/**
- * Prevent usage of the new PHP 7 unicode escape syntax
- *
- * @see https://wiki.php.net/rfc/unicode_escape
- */
-class PHP7UnicodeSyntaxSniff implements Sniff {
- /**
- * @return array
- */
- public function register() {
- return [
- T_CONSTANT_ENCAPSED_STRING,
- T_DOUBLE_QUOTED_STRING,
- T_HEREDOC
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $info = $tokens[$stackPtr];
- if ( $info['code'] == T_CONSTANT_ENCAPSED_STRING && $info['content'][0] === "'" ) {
- // Single quoted string
- return;
- }
-
- $matched = preg_match( '/\\\u\{[0-9A-Fa-f]*\}/', $info['content'] );
- if ( $matched ) {
- $phpcsFile->addError(
- 'PHP 7 Unicode escape syntax not allowed',
- $stackPtr,
- 'NotAllowed'
- );
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/ShortCastSyntaxSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/ShortCastSyntaxSniff.php
deleted file mode 100644
index 222defce..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/AlternativeSyntax/ShortCastSyntaxSniff.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-/**
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- */
-
-namespace MediaWiki\Sniffs\AlternativeSyntax;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class ShortCastSyntaxSniff implements Sniff {
- /**
- * @return array
- */
- public function register() {
- return [
- T_BOOL_CAST,
- T_INT_CAST,
- ];
- }
-
- /**
- * @param File $phpcsFile File object
- * @param int $stackPtr Position of error
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $token = $phpcsFile->getTokens()[$stackPtr];
-
- if ( $token['code'] === T_BOOL_CAST && $token['content'] !== '(bool)' ) {
- $fix = $phpcsFile->addFixableWarning(
- 'Type-cast should use short "bool" form',
- $stackPtr,
- 'NotShortBoolForm'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->replaceToken( $stackPtr, '(bool)' );
- }
- } elseif ( $token['code'] === T_INT_CAST && $token['content'] !== '(int)' ) {
- $fix = $phpcsFile->addFixableWarning(
- 'Type-cast should use short "int" form',
- $stackPtr,
- 'NotShortIntForm'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->replaceToken( $stackPtr, '(int)' );
- }
- }
- }
-
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Commenting/FunctionCommentSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Commenting/FunctionCommentSniff.php
deleted file mode 100644
index 90e8975f..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Commenting/FunctionCommentSniff.php
+++ /dev/null
@@ -1,612 +0,0 @@
-<?php
-/**
- * This file was copied from PHP_CodeSniffer before being modified
- * File: Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php
- * From repository: https://github.com/squizlabs/PHP_CodeSniffer
- *
- * Parses and verifies the doc comments for functions.
- *
- * PHP version 5
- *
- * @category PHP
- * @package PHP_CodeSniffer
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Marc McIntyre <mmcintyre@squiz.net>
- * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- * @link http://pear.php.net/package/PHP_CodeSniffer
- */
-
-namespace MediaWiki\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Util\Tokens;
-
-class FunctionCommentSniff implements Sniff {
-
- /**
- * Standard class methods that
- * don't require documentation
- *
- * @var array
- */
- private $skipStandardMethods = [
- '__toString', '__destruct',
- '__sleep', '__wakeup',
- '__clone'
- ];
-
- /**
- * Mapping for swap short types
- *
- * @var array
- */
- private static $shortTypeMapping = [
- 'boolean' => 'bool',
- 'boolean[]' => 'bool[]',
- 'integer' => 'int',
- 'integer[]' => 'int[]',
- ];
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register() {
- return [ T_FUNCTION ];
- }
- // end register()
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the stack passed in $tokens.
- *
- *
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- if ( substr( $phpcsFile->getFilename(), -8 ) === 'Test.php' ) {
- // Don't check documentation for test cases
- return;
- }
- $tokens = $phpcsFile->getTokens();
- $funcName = $tokens[$stackPtr + 2];
- if ( in_array( $funcName['content'], $this->skipStandardMethods ) ) {
- // Don't require documentation for an obvious method
- return;
- } elseif ( $funcName['content'] === '__construct'
- && !$phpcsFile->getMethodParameters( $stackPtr )
- ) {
- // Don't require documentation for constructors with no parameters
- return;
- }
- // Identify the visiblity of the function
- $visibility = $phpcsFile->findPrevious( [ T_PUBLIC, T_PROTECTED, T_PRIVATE ], $stackPtr - 1 );
- $visStr = 'Public';
- if ( $visibility ) {
- $visInfo = $tokens[$visibility];
- if ( $visInfo['line'] == $tokens[$stackPtr]['line'] ) {
- if ( $visInfo['code'] == T_PRIVATE ) {
- // Don't check documentation for private functions
- return;
- } elseif ( $visInfo['code'] == T_PROTECTED ) {
- $visStr = 'Protected';
- }
- }
- }
-
- $find = Tokens::$methodPrefixes;
- $find[] = T_WHITESPACE;
- $commentEnd = $phpcsFile->findPrevious( $find, ( $stackPtr - 1 ), null, true );
- if ( $tokens[$commentEnd]['code'] === T_COMMENT ) {
- // Inline comments might just be closing comments for
- // control structures or functions instead of function comments
- // using the wrong comment type. If there is other code on the line,
- // assume they relate to that code.
- $prev = $phpcsFile->findPrevious( $find, ( $commentEnd - 1 ), null, true );
- if ( $prev !== false && $tokens[$prev]['line'] === $tokens[$commentEnd]['line'] ) {
- $commentEnd = $prev;
- }
- }
- if ( $tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
- && $tokens[$commentEnd]['code'] !== T_COMMENT
- ) {
- $phpcsFile->addError(
- 'Missing function doc comment',
- $stackPtr,
- "MissingDocumentation$visStr"
- );
- $phpcsFile->recordMetric( $stackPtr, 'Function has doc comment', 'no' );
- return;
- } else {
- $phpcsFile->recordMetric( $stackPtr, 'Function has doc comment', 'yes' );
- }
- if ( $tokens[$commentEnd]['code'] === T_COMMENT ) {
- $phpcsFile->addError( 'You must use "/**" style comments for a function comment',
- $stackPtr, 'WrongStyle' );
- return;
- }
- if ( $tokens[$commentEnd]['line'] !== ( $tokens[$stackPtr]['line'] - 1 ) ) {
- $error = 'There must be no blank lines after the function comment';
- $phpcsFile->addError( $error, $commentEnd, 'SpacingAfter' );
- }
- $commentStart = $tokens[$commentEnd]['comment_opener'];
- $inheritDoc = false;
- foreach ( $tokens[$commentStart]['comment_tags'] as $tag ) {
- $tagText = $tokens[$tag]['content'];
- if ( $tagText === '@see' ) {
- // Make sure the tag isn't empty.
- $string = $phpcsFile->findNext( T_DOC_COMMENT_STRING, $tag, $commentEnd );
- if ( $string === false || $tokens[$string]['line'] !== $tokens[$tag]['line'] ) {
- $error = 'Content missing for @see tag in function comment';
- $phpcsFile->addError( $error, $tag, 'EmptySees' );
- }
- } elseif ( $tagText === '@inheritDoc' ) {
- $inheritDoc = true;
- }
- }
- if ( $inheritDoc ) {
- // Don't need to validate anything else
- return;
- }
-
- $this->processReturn( $phpcsFile, $stackPtr, $commentStart );
- $this->processThrows( $phpcsFile, $stackPtr, $commentStart );
- $this->processParams( $phpcsFile, $stackPtr, $commentStart );
- }
- // end process()
-
- /**
- * Process the return comment of this function comment.
- *
- * @param File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- *
- * @return void
- */
- protected function processReturn( File $phpcsFile, $stackPtr, $commentStart ) {
- $tokens = $phpcsFile->getTokens();
- // Return if no scope_opener.
- if ( !isset( $tokens[$stackPtr]['scope_opener'] ) ) {
- return;
- }
- $endFunction = $tokens[$stackPtr]['scope_closer'];
- $found = false;
- for ( $i = $stackPtr + 1; $i < $endFunction; $i++ ) {
- $token = $tokens[$i];
- if ( $token['code'] === T_CLOSURE ) {
- // Skip to the end of the closure and continue
- $i = $tokens[$i]['scope_closer'];
- continue;
- }
- if ( $token['code'] === T_RETURN ) {
- if ( isset( $tokens[$i + 1] ) && $tokens[$i + 1]['code'] === T_SEMICOLON ) {
- // This is a `return;` so it doesn't need documentation
- continue;
- }
- $found = true;
- break;
- }
- }
-
- if ( !$found ) {
- return;
- }
-
- $return = null;
- foreach ( $tokens[$commentStart]['comment_tags'] as $tag ) {
- if ( $tokens[$tag]['content'] === '@return' ) {
- if ( $return !== null ) {
- $error = 'Only 1 @return tag is allowed in a function comment';
- $phpcsFile->addError( $error, $tag, 'DuplicateReturn' );
- return;
- }
- $return = $tag;
- }
- }
- if ( $return !== null ) {
- $retTypeSpacing = $return + 1;
- if ( $tokens[$retTypeSpacing]['code'] === T_DOC_COMMENT_WHITESPACE ) {
- $expectedSpaces = 1;
- $currentSpaces = strlen( $tokens[$retTypeSpacing]['content'] );
- if ( $currentSpaces !== $expectedSpaces ) {
- $data = [
- $expectedSpaces,
- $currentSpaces,
- ];
- $fix = $phpcsFile->addFixableError(
- 'Expected %s spaces before return type; %s found',
- $retTypeSpacing,
- 'SpacingBeforeReturnType',
- $data
- );
- if ( $fix ) {
- $phpcsFile->fixer->replaceToken( $retTypeSpacing, ' ' );
- }
- }
- }
- $retType = $return + 2;
- $content = $tokens[$retType]['content'];
- if ( empty( $content ) === true || $tokens[$retType]['code'] !== T_DOC_COMMENT_STRING ) {
- $error = 'Return type missing for @return tag in function comment';
- $phpcsFile->addError( $error, $return, 'MissingReturnType' );
- }
- // The first word of the return type is the actual type
- $exploded = explode( ' ', $content, 2 );
- $type = $exploded[0];
- $comment = isset( $exploded[1] ) ? $exploded[1] : null;
- $fixType = false;
- // Check for unneeded punctation
- $matches = [];
- if ( preg_match( '/^(.*)((?:(?![\[\]_{}])\p{P})+)$/', $type, $matches ) ) {
- $fix = $phpcsFile->addFixableError(
- 'Return type should not end with punctuation "%s"',
- $retType,
- 'NotPunctuationReturn',
- [ $matches[2] ]
- );
- $type = $matches[1];
- if ( $fix ) {
- $fixType = true;
- }
- }
- // Check the type for short types
- $explodedType = explode( '|', $type );
- foreach ( $explodedType as $index => $singleType ) {
- if ( isset( self::$shortTypeMapping[$singleType] ) ) {
- $newType = self::$shortTypeMapping[$singleType];
- // grep: NotShortIntReturn, NotShortIntArrayReturn,
- // NotShortBoolReturn, NotShortBoolArrayReturn
- $code = 'NotShort' . ucfirst( str_replace( '[]', 'Array', $newType ) ) . 'Return';
- $fix = $phpcsFile->addFixableError(
- 'Short type of "%s" should be used for @return tag',
- $retType,
- $code,
- [ $newType ]
- );
- if ( $fix ) {
- $explodedType[$index] = $newType;
- $fixType = true;
- }
- }
- }
- // Check spacing after type
- if ( $comment !== null ) {
- $expectedSpaces = 1;
- $currentSpaces = strspn( $comment, ' ' ) + 1;
- if ( $currentSpaces !== $expectedSpaces ) {
- $data = [
- $expectedSpaces,
- $currentSpaces,
- ];
- $fix = $phpcsFile->addFixableError(
- 'Expected %s spaces after return type; %s found',
- $retType,
- 'SpacingAfterReturnType',
- $data
- );
- if ( $fix ) {
- $fixType = true;
- $comment = substr( $comment, $currentSpaces - 1 );
- }
- }
- }
- if ( $fixType ) {
- $phpcsFile->fixer->replaceToken(
- $retType,
- implode( '|', $explodedType ) . ( $comment !== null ? ' ' . $comment : '' )
- );
- }
- } else {
- $error = 'Missing @return tag in function comment';
- $phpcsFile->addError( $error, $tokens[$commentStart]['comment_closer'], 'MissingReturn' );
- }
- // end if
- }
- // end processReturn()
-
- /**
- * Process any throw tags that this function comment has.
- *
- * @param File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- *
- * @return void
- */
- protected function processThrows( File $phpcsFile, $stackPtr, $commentStart ) {
- $tokens = $phpcsFile->getTokens();
- $throws = [];
- foreach ( $tokens[$commentStart]['comment_tags'] as $tag ) {
- if ( $tokens[$tag]['content'] !== '@throws' ) {
- continue;
- }
- $exception = null;
- $comment = null;
- if ( $tokens[( $tag + 2 )]['code'] === T_DOC_COMMENT_STRING ) {
- $matches = [];
- preg_match( '/([^\s]+)(?:\s+(.*))?/', $tokens[( $tag + 2 )]['content'], $matches );
- $exception = $matches[1];
- if ( isset( $matches[2] ) === true ) {
- $comment = $matches[2];
- }
- }
- if ( $exception === null ) {
- $error = 'Exception type missing for @throws tag in function comment';
- $phpcsFile->addError( $error, $tag, 'InvalidThrows' );
- }
- }
- // end foreach
- }
- // end processThrows()
-
- /**
- * Process the function parameter comments.
- *
- * @param File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- *
- * @return void
- */
- protected function processParams( File $phpcsFile, $stackPtr, $commentStart ) {
- $tokens = $phpcsFile->getTokens();
- $params = [];
- $maxType = 0;
- $maxVar = 0;
- foreach ( $tokens[$commentStart]['comment_tags'] as $pos => $tag ) {
- if ( $tokens[$tag]['content'] !== '@param' ) {
- continue;
- }
- $paramSpace = 0;
- $type = '';
- $typeSpace = 0;
- $var = '';
- $varSpace = 0;
- $comment = '';
- $commentFirst = '';
- if ( $tokens[( $tag + 1 )]['code'] === T_DOC_COMMENT_WHITESPACE ) {
- $paramSpace = strlen( $tokens[( $tag + 1 )]['content'] );
- }
- if ( $tokens[( $tag + 2 )]['code'] === T_DOC_COMMENT_STRING ) {
- $matches = [];
- preg_match( '/([^$&.]+)(?:((?:\.\.\.)?(?:\$|&)[^\s]+)(?:(\s+)(.*))?)?/',
- $tokens[( $tag + 2 )]['content'], $matches );
- $typeLen = strlen( $matches[1] );
- $type = trim( $matches[1] );
- $typeSpace = ( $typeLen - strlen( $type ) );
- $typeLen = strlen( $type );
- if ( $typeLen > $maxType ) {
- $maxType = $typeLen;
- }
- if ( isset( $matches[2] ) === true ) {
- $var = $matches[2];
- $varLen = strlen( $var );
- if ( $varLen > $maxVar ) {
- $maxVar = $varLen;
- }
- if ( isset( $matches[4] ) === true ) {
- $varSpace = strlen( $matches[3] );
- $commentFirst = $matches[4];
- $comment = $commentFirst;
- // Any strings until the next tag belong to this comment.
- if ( isset( $tokens[$commentStart]['comment_tags'][( $pos + 1 )] ) === true ) {
- $end = $tokens[$commentStart]['comment_tags'][( $pos + 1 )];
- } else {
- $end = $tokens[$commentStart]['comment_closer'];
- }
- for ( $i = ( $tag + 3 ); $i < $end; $i++ ) {
- if ( $tokens[$i]['code'] === T_DOC_COMMENT_STRING ) {
- $comment .= ' '.$tokens[$i]['content'];
- }
- }
- } else {
- $error = 'Missing parameter comment';
- $phpcsFile->addError( $error, $tag, 'MissingParamComment' );
- }
- } else {
- $error = 'Missing parameter name';
- $phpcsFile->addError( $error, $tag, 'MissingParamName' );
- }
- // end if
- } else {
- $error = 'Missing parameter type';
- $phpcsFile->addError( $error, $tag, 'MissingParamType' );
- }
- // end if
- $params[] = [
- 'tag' => $tag,
- 'type' => $type,
- 'var' => $var,
- 'comment' => $comment,
- 'comment_first' => $commentFirst,
- 'param_space' => $paramSpace,
- 'type_space' => $typeSpace,
- 'var_space' => $varSpace,
- ];
- }
- // end foreach
- $realParams = $phpcsFile->getMethodParameters( $stackPtr );
- $foundParams = [];
- // We want to use ... for all variable length arguments, so added
- // this prefix to the variable name so comparisons are easier.
- foreach ( $realParams as $pos => $param ) {
- if ( $realParams[$pos]['pass_by_reference'] === true ) {
- $realParams[$pos]['name'] = '&'.$realParams[$pos]['name'];
- }
- if ( $param['variable_length'] === true ) {
- $realParams[$pos]['name'] = '...'.$realParams[$pos]['name'];
- }
- }
- foreach ( $params as $pos => $param ) {
- if ( $param['var'] === '' ) {
- continue;
- }
- // Check number of spaces before type (after @param)
- $spaces = 1;
- if ( $param['param_space'] !== $spaces ) {
- $error = 'Expected %s spaces before parameter type; %s found';
- $data = [
- $spaces,
- $param['param_space'],
- ];
- $fix = $phpcsFile->addFixableError( $error, $param['tag'], 'SpacingBeforeParamType', $data );
- if ( $fix === true ) {
- $phpcsFile->fixer->replaceToken( ( $param['tag'] + 1 ), str_repeat( ' ', $spaces ) );
- }
- }
- // Check number of spaces after the type.
- // $spaces = ( $maxType - strlen( $param['type'] ) + 1 );
- $spaces = 1;
- if ( $param['type_space'] !== $spaces ) {
- $error = 'Expected %s spaces after parameter type; %s found';
- $data = [
- $spaces,
- $param['type_space'],
- ];
- $fix = $phpcsFile->addFixableError( $error, $param['tag'], 'SpacingAfterParamType', $data );
- if ( $fix === true ) {
- $this->replaceParamComment(
- $phpcsFile,
- $param,
- [ 'type_space' => $spaces ]
- );
- }
- }
- $var = $param['var'];
- // Check for unneeded punctation
- $matches = [];
- if ( preg_match( '/^(.*?)((?:(?![\[\]_{}])\p{P})+)(?<!,\.\.\.)$/', $var, $matches ) ) {
- $fix = $phpcsFile->addFixableError(
- 'Param name should not end with punctuation "%s"',
- $param['tag'],
- 'NotPunctuationParam',
- [ $matches[2] ]
- );
- $var = $matches[1];
- if ( $fix ) {
- $this->replaceParamComment(
- $phpcsFile,
- $param,
- [ 'var' => $var ]
- );
- }
- }
- // Make sure the param name is correct.
- if ( isset( $realParams[$pos] ) === true ) {
- $realName = $realParams[$pos]['name'];
- if ( $realName !== $var ) {
- $code = 'ParamNameNoMatch';
- $data = [
- $var,
- $realName,
- ];
- $error = 'Doc comment for parameter %s does not match ';
- if ( strtolower( $var ) === strtolower( $realName ) ) {
- $error .= 'case of ';
- $code = 'ParamNameNoCaseMatch';
- }
- $error .= 'actual variable name %s';
- $phpcsFile->addError( $error, $param['tag'], $code, $data );
- }
- } elseif ( substr( $var, -4 ) !== ',...' ) {
- // We must have an extra parameter comment.
- $error = 'Superfluous parameter comment';
- $phpcsFile->addError( $error, $param['tag'], 'ExtraParamComment' );
- }
- $foundParams[] = $var;
- // end if
- // Check the short type of boolean and integer
- $explodedType = explode( '|', $param['type'] );
- $fixType = false;
- foreach ( $explodedType as $index => $singleType ) {
- if ( isset( self::$shortTypeMapping[$singleType] ) ) {
- $newType = self::$shortTypeMapping[$singleType];
- // grep: NotShortIntParam, NotShortIntArrayParam,
- // NotShortBoolParam, NotShortBoolArrayParam
- $code = 'NotShort' . ucfirst( str_replace( '[]', 'Array', $newType ) ) . 'Param';
- $fix = $phpcsFile->addFixableError(
- 'Short type of "%s" should be used for @param tag',
- $param['tag'],
- $code,
- [ $newType ]
- );
- if ( $fix ) {
- $explodedType[$index] = $newType;
- $fixType = true;
- }
- }
- }
- if ( $fixType ) {
- $this->replaceParamComment(
- $phpcsFile,
- $param,
- [ 'type' => implode( '|', $explodedType ) ]
- );
- }
- if ( $param['comment'] === '' ) {
- continue;
- }
- // Check number of spaces after the var name.
- // $spaces = ( $maxVar - strlen( $param['var'] ) + 1 );
- $spaces = 1;
- if ( $param['var_space'] !== $spaces &&
- ltrim( $param['comment'] ) !== '' ) {
- $error = 'Expected %s spaces after parameter name; %s found';
- $data = [
- $spaces,
- $param['var_space'],
- ];
- $fix = $phpcsFile->addFixableError( $error, $param['tag'], 'SpacingAfterParamName', $data );
- if ( $fix === true ) {
- $this->replaceParamComment(
- $phpcsFile,
- $param,
- [ 'var_space' => $spaces ]
- );
- }
- }
- }
- // end foreach
- $realNames = [];
- foreach ( $realParams as $realParam ) {
- $realNames[] = $realParam['name'];
- }
- // Report missing comments.
- $diff = array_diff( $realNames, $foundParams );
- foreach ( $diff as $neededParam ) {
- $error = 'Doc comment for parameter "%s" missing';
- $data = [ $neededParam ];
- $phpcsFile->addError( $error, $commentStart, 'MissingParamTag', $data );
- }
- }
- // end processParams()
-
- /**
- * Replace a @param comment
- *
- * @param File $phpcsFile The file being scanned.
- * @param array $param Array of the @param
- * @param array $fixParam Array with fixes to @param. Only provide keys to replace
- *
- * @return void
- */
- protected function replaceParamComment( File $phpcsFile, array $param, array $fixParam ) {
- // Use the old value for unchanged keys
- $fixParam += $param;
-
- // Build the new line
- $content = $fixParam['type'];
- $content .= str_repeat( ' ', $fixParam['type_space'] );
- $content .= $fixParam['var'];
- $content .= str_repeat( ' ', $fixParam['var_space'] );
- $content .= $fixParam['comment_first'];
- $phpcsFile->fixer->replaceToken( ( $fixParam['tag'] + 2 ), $content );
- }
-}
-// end class
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Commenting/IllegalSingleLineCommentSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Commenting/IllegalSingleLineCommentSniff.php
deleted file mode 100644
index 29a2df2a..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Commenting/IllegalSingleLineCommentSniff.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-/**
- * Detect and fix the inline comments start or end with multiple asterisks.
- * Fail: /*** Comment here *\/
- * Fail: /*** Comments here again ***\/
- * Pass: /* Your comments here *\/
- */
-
-namespace MediaWiki\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class IllegalSingleLineCommentSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- return [
- T_COMMENT
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The index of current token.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $currentToken = $tokens[$stackPtr];
-
- if ( substr( $currentToken['content'], 0, 2 ) === '/*' ) {
- // Possible inline comment
- if ( strrpos( $currentToken['content'], '*/' ) === false ) {
- // Whether it's a comment across multiple lines
- $numOfTokens = count( $tokens );
- for ( $i = $stackPtr + 1; $i < $numOfTokens; $i++ ) {
- $token = $tokens[$i];
- if ( strpos( $token['content'], '/*' ) === false &&
- strrpos( $token['content'], '*/' ) !== false
- ) {
- return;
- }
- }
- $fix = $phpcsFile->addFixableError(
- 'Missing proper ending of a single line comment',
- $stackPtr,
- 'MissingCommentEndding'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->replaceToken(
- $stackPtr,
- str_replace( '\n', ' */', rtrim( $currentToken['content'] ) )
- );
- }
- } else {
- // Determine whether multiple "*" appears right after the "/*"
- if ( preg_match( '/\/(\*){2,}/', $currentToken['content'] ) !== 0 ) {
- $fix = $phpcsFile->addFixableWarning(
- 'Invalid start of a single line comment',
- $stackPtr,
- 'IllegalSingleLineCommentStart'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->replaceToken(
- $stackPtr,
- preg_replace( '/\/(\*){2,}/', '/*', $currentToken['content'] )
- );
- }
- }
- // Determine whether multiple "*" appears right before the "*/"
- if ( preg_match( '/(\*){2,}\//', $currentToken['content'] ) !== 0 ) {
- $fix = $phpcsFile->addFixableWarning(
- 'Invalid end of a single line comment',
- $stackPtr,
- 'IllegalSingleLineCommentEnd'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->replaceToken(
- $stackPtr,
- preg_replace( '/(\*){2,}\//', '*/', $currentToken['content'] )
- );
- }
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ControlStructures/AssignmentInControlStructuresSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ControlStructures/AssignmentInControlStructuresSniff.php
deleted file mode 100644
index 31cdabc1..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ControlStructures/AssignmentInControlStructuresSniff.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * Sniff to suppress the use of:
- * Fail: if ( $a = 0 )
- * Fail: if ( $a *= foo() )
- * Fail: if ( $a += foo() )
- * Fail: while ( $a = foo() )
- * Pass: if ( $a == 0 )
- * Pass: if ( $a === 0 )
- * Pass: if ( $a === array( 1 => 0 ) )
- * Pass: while ( $a < 0 )
- */
-
-namespace MediaWiki\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Util\Tokens;
-
-class AssignmentInControlStructuresSniff implements Sniff {
- /**
- * @return array
- */
- public function register() {
- return [
- T_IF,
- T_WHILE,
- T_ELSEIF,
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- $next = $token['parenthesis_opener'] + 1;
- $end = $token['parenthesis_closer'];
- while ( $next < $end ) {
- $code = $tokens[$next]['code'];
- // Check if any assignment operator was used. Allow T_DOUBLE_ARROW as that can
- // be used in an array like `if ( $foo === array( 'foo' => 'bar' ) )`
- if ( in_array( $code, Tokens::$assignmentTokens, true )
- && $code !== T_DOUBLE_ARROW ) {
- $error = 'Assignment expression not allowed within "%s".';
- $phpcsFile->addError(
- $error,
- $stackPtr,
- 'AssignmentInControlStructures',
- $token['content']
- );
- break;
- }
- $next++;
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ControlStructures/IfElseStructureSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ControlStructures/IfElseStructureSniff.php
deleted file mode 100644
index db710d32..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ControlStructures/IfElseStructureSniff.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/**
- * Sniff to warn when else and elseif are formatted incorrectly:
- * Pass: } else {
- * Fail: } else {
- * Pass: } elseif ( $a == 1 ) {
- * Fail: }\nelseif ( $a == 1 ) {
- */
-
-namespace MediaWiki\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class IfElseStructureSniff implements Sniff {
- /**
- * @return array
- */
- public function register() {
- return [
- T_ELSE,
- T_ELSEIF,
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $prevToken = $tokens[$stackPtr - 1];
- $nextToken = $tokens[$stackPtr + 1];
-
- // single space expected before else and elseif structure
- if ( $prevToken['code'] !== T_WHITESPACE
- || $prevToken['content'] !== " " ) {
- $fix = $phpcsFile->addFixableWarning(
- 'Single space expected before "%s"',
- $stackPtr + 1,
- 'SpaceBeforeElse',
- [ $tokens[$stackPtr]['content'] ]
- );
- if ( $fix === true ) {
- if ( $prevToken['code'] === T_CLOSE_CURLY_BRACKET ) {
- $phpcsFile->fixer->addContentBefore( $stackPtr, ' ' );
- } else {
- // Replace all previous whitespace with a space
- $phpcsFile->fixer->replaceToken( $stackPtr - 1, ' ' );
- for ( $i = 2; $tokens[$stackPtr - $i]['code'] === T_WHITESPACE; $i++ ) {
- $phpcsFile->fixer->replaceToken( $stackPtr - $i, '' );
- }
- }
- }
- }
- // space after elseif structure be processed in SpaceAfterControlStructureSniff
- if ( $tokens[$stackPtr]['code'] === T_ELSEIF ) {
- return;
- }
- // single space expected after else structure
- if ( $nextToken['code'] !== T_WHITESPACE
- || $nextToken['content'] !== " " ) {
- $fix = $phpcsFile->addFixableWarning(
- 'Single space expected after "%s"',
- $stackPtr + 1,
- 'SpaceAfterElse',
- [ $tokens[$stackPtr]['content'] ]
- );
- if ( $fix === true ) {
- if ( $nextToken['code'] === T_OPEN_CURLY_BRACKET ) {
- $phpcsFile->fixer->addContent( $stackPtr, ' ' );
- } else {
- // Replace all after whitespace with a space
- $phpcsFile->fixer->replaceToken( $stackPtr + 1, ' ' );
- for ( $i = 2; $tokens[$stackPtr + $i]['code'] === T_WHITESPACE; $i++ ) {
- $phpcsFile->fixer->replaceToken( $stackPtr + $i, '' );
- }
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ExtraCharacters/ParenthesesAroundKeywordSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ExtraCharacters/ParenthesesAroundKeywordSniff.php
deleted file mode 100644
index 610db2aa..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ExtraCharacters/ParenthesesAroundKeywordSniff.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-/**
- * Sniff to warn when keywords are used as functions, such as:
- * Pass: clone $obj
- * Fail: clone( $obj )
- * Pass: require 'path/to/file.php';
- * Fail: require( 'path/to/file' );
- *
- * Covers:
- * * clone
- * * require
- * * require_once
- * * include
- * * include_once
- */
-
-namespace MediaWiki\Sniffs\ExtraCharacters;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class ParenthesesAroundKeywordSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- return [
- T_CLONE,
- T_REQUIRE,
- T_REQUIRE_ONCE,
- T_INCLUDE,
- T_INCLUDE_ONCE,
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $nextToken = $tokens[$stackPtr + 1];
- $nextSecondToken = $tokens[$stackPtr + 2];
-
- if (
- (
- $nextToken['code'] === T_WHITESPACE &&
- $nextSecondToken['code'] === T_OPEN_PARENTHESIS
- ) ||
- $nextToken['code'] === T_OPEN_PARENTHESIS
- ) {
- $fix = $phpcsFile->addFixableWarning(
- $tokens[$stackPtr]['content'] . ' keyword must not be used as a function.',
- $stackPtr + 1,
- 'ParenthesesAroundKeywords' );
-
- if ( $fix === true ) {
- if ( $nextToken['code'] === T_OPEN_PARENTHESIS ) {
- $phpcsFile->fixer->replaceToken( $stackPtr + 1, '' );
- $closer = $tokens[$stackPtr + 1]['parenthesis_closer'];
- $phpcsFile->fixer->replaceToken( $closer, '' );
- } else {
- $phpcsFile->fixer->replaceToken( $stackPtr + 2, '' );
- $closer = $tokens[$stackPtr + 2]['parenthesis_closer'];
- $phpcsFile->fixer->replaceToken( $closer, '' );
- if ( $tokens[$stackPtr + 3]['code'] === T_WHITESPACE ) {
- $phpcsFile->fixer->replaceToken( $stackPtr + 3, '' );
- }
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Files/ClassMatchesFilenameSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Files/ClassMatchesFilenameSniff.php
deleted file mode 100644
index dea4edf7..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Files/ClassMatchesFilenameSniff.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- */
-
-namespace MediaWiki\Sniffs\Files;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class ClassMatchesFilenameSniff implements Sniff {
-
- /**
- * Tokens to process
- *
- * @return array
- */
- public function register() {
- return [ T_CLASS, T_INTERFACE, T_TRAIT ];
- }
-
- /**
- * Check the class name against the filename
- *
- * @param File $phpcsFile File being checked
- * @param int $stackPtr Position
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $fname = $phpcsFile->getFilename();
- if ( $fname === 'STDIN' ) {
- return;
- }
- $exp = explode( DIRECTORY_SEPARATOR, $fname );
- $base = end( $exp );
- $name = $phpcsFile->getDeclarationName( $stackPtr );
- if ( $base !== "$name.php" ) {
- $wrongCase = strtolower( $base ) === strtolower( "$name.php" );
- $phpcsFile->addError(
- "Class name '$name' does not match filename '$base'",
- $stackPtr,
- $wrongCase ? 'WrongCase' : 'NotMatch'
- );
- }
- }
-
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Files/OneClassPerFileSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Files/OneClassPerFileSniff.php
deleted file mode 100644
index 9126f995..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Files/OneClassPerFileSniff.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/**
- * Checks that only one class, trait, and interface is declared per file.
- *
- * @author Andy Grunwald <andygrunwald@gmail.com>
- * @copyright 2010-2014 Andy Grunwald
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace MediaWiki\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class OneClassPerFileSniff implements Sniff {
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register() {
- return [ T_CLASS, T_INTERFACE, T_TRAIT ];
- }
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param File $phpcsFile File being scanned
- * @param int $stackPtr Position
- *
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $nextClass = $phpcsFile->findNext( $this->register(), ( $stackPtr + 1 ) );
- if ( $nextClass !== false ) {
- $error = 'Only one class is allowed in a file';
- $phpcsFile->addError( $error, $nextClass, 'MultipleFound' );
- }
- }
-
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/LowerCamelFunctionsNameSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/LowerCamelFunctionsNameSniff.php
deleted file mode 100644
index 2737c80b..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/LowerCamelFunctionsNameSniff.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-/**
- * Make sure lower camel function name.
- */
-
-namespace MediaWiki\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class LowerCamelFunctionsNameSniff implements Sniff {
-
- // Magic methods.
- private static $magicMethods = [
- '__construct' => true,
- '__destruct' => true,
- '__call' => true,
- '__callstatic' => true,
- '__get' => true,
- '__set' => true,
- '__isset' => true,
- '__unset' => true,
- '__sleep' => true,
- '__wakeup' => true,
- '__tostring' => true,
- '__set_state' => true,
- '__clone' => true,
- '__invoke' => true,
- '__debuginfo' => true
- ];
-
- // A list of non-magic methods with double underscore.
- private static $methodsDoubleUnderscore = [
- '__soapcall' => true,
- '__getlastrequest' => true,
- '__getlastresponse' => true,
- '__getlastrequestheaders' => true,
- '__getlastresponseheaders' => true,
- '__getfunctions' => true,
- '__gettypes' => true,
- '__dorequest' => true,
- '__setcookie' => true,
- '__setlocation' => true,
- '__setsoapheaders' => true
- ];
-
- // Scope list.
- private static $scopeList = [
- T_CLASS => true,
- T_INTERFACE => true,
- T_TRAIT => true
- ];
-
- /**
- * @return array
- */
- public function register() {
- return [ T_FUNCTION ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $functionContent = $tokens[$stackPtr + 2]['content'];
- $lowerFunctionName = strtolower( $functionContent );
- foreach ( $tokens[$stackPtr]['conditions'] as $scope => $code ) {
- if ( isset( self::$scopeList[$code] ) === true &&
- isset( self::$methodsDoubleUnderscore[$lowerFunctionName] ) !== true &&
- isset( self::$magicMethods[$lowerFunctionName] ) !== true
- ) {
- $pos = strpos( $functionContent, '_' );
- if ( $pos !== false ||
- $functionContent[0] !== $lowerFunctionName[0]
- ) {
- $error = 'Function name "%s" should use lower camel case.';
- $fix = $phpcsFile->addError(
- $error,
- $stackPtr,
- 'FunctionName',
- [ $functionContent ]
- );
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/PrefixedGlobalFunctionsSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/PrefixedGlobalFunctionsSniff.php
deleted file mode 100644
index 699e166f..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/PrefixedGlobalFunctionsSniff.php
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php
-/**
- * Verify MediaWiki global function naming convention.
- * A global function's name must be prefixed with 'wf' or 'ef'.
- * Per https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Naming
- */
-
-namespace MediaWiki\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class PrefixedGlobalFunctionsSniff implements Sniff {
-
- public $ignoreList = [];
-
- /**
- * @return array
- */
- public function register() {
- return [ T_FUNCTION ];
- }
-
- /**
- * @var int[] array containing the first locations of namespaces in files that we have seen so far.
- */
- private $firstNamespaceLocations = [];
-
- /**
- * @var string[] array containing a list of files that contain no namespace statements.
- */
- private $noNamespaceFiles = [];
-
- /**
- * @param File $phpcsFile File object.
- * @param int $ptr The current token index.
- *
- * @return bool Does a namespace statement exist before this position in the file?
- */
- private function tokenIsNamespaced( File $phpcsFile, $ptr ) {
- $fileName = $phpcsFile->getFilename();
- // Check if we already know if the token is namespaced or not and return early if possible.
- if (
- isset( $this->firstNamespaceLocations[$fileName] ) &&
- $ptr > $this->firstNamespaceLocations[$fileName]
- ) {
- return true;
- }
- if ( isset( $this->noNamespaceFiles[$fileName] ) ) {
- return false;
- }
-
- // If not scan the whole file at once looking for namespacing or lack of and set in the statics.
- $tokens = $phpcsFile->getTokens();
- $tokenIndex = max( array_keys( $tokens ) );
- while ( $tokenIndex > 0 ) {
- $token = $tokens[$tokenIndex];
- if ( $token['type'] === "T_NAMESPACE" && !isset( $token['scope_opener'] ) ) {
- // In the format of "namespace Foo;", which applies to everything below
- $this->firstNamespaceLocations[$fileName] = $tokenIndex;
- }
- $tokenIndex--;
- }
- if ( !isset( $this->firstNamespaceLocations[$fileName] ) ) {
- $this->noNamespaceFiles[$fileName] = true;
- }
-
- // Return if the token was namespaced.
- if (
- isset( $this->firstNamespaceLocations[$fileName] ) &&
- $ptr > $this->firstNamespaceLocations[$fileName]
- ) {
- return true;
- }
-
- return false;
- }
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- if ( $this->tokenIsNamespaced( $phpcsFile, $stackPtr ) ) {
- return;
- }
-
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- // Name of function
- $name = $tokens[$stackPtr + 2]['content'];
-
- if ( in_array( $name, $this->ignoreList ) ) {
- return;
- }
-
- // Check if function is global
- if ( $token['level'] == 0 ) {
- $prefix = substr( $name, 0, 2 );
-
- if ( $prefix !== 'wf' && $prefix !== 'ef' ) {
- // Forge a valid global function name
- $expected = 'wf' . ucfirst( $name );
-
- $error = 'Global function "%s" is lacking a \'wf\' prefix. Should be "%s".';
- $data = [ $name, $expected ];
- $phpcsFile->addError( $error, $stackPtr, 'wfPrefix', $data );
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/ValidGlobalNameSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/ValidGlobalNameSniff.php
deleted file mode 100644
index 894bf639..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/NamingConventions/ValidGlobalNameSniff.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-/**
- * Verify MediaWiki global variable naming convention.
- * A global name must be prefixed with 'wg'.
- */
-
-namespace MediaWiki\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class ValidGlobalNameSniff implements Sniff {
-
- /**
- * http://php.net/manual/en/reserved.variables.argv.php
- */
- private static $PHPReserved = [
- '$GLOBALS',
- '$_SERVER',
- '$_GET',
- '$_POST',
- '$_FILES',
- '$_REQUEST',
- '$_SESSION',
- '$_ENV',
- '$_COOKIE',
- '$php_errormsg',
- '$HTTP_RAW_POST_DATA',
- '$http_response_header',
- '$argc',
- '$argv'
- ];
-
- public $ignoreList = [];
-
- /**
- * @return array
- */
- public function register() {
- return [ T_GLOBAL ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
-
- $nameIndex = $phpcsFile->findNext( T_VARIABLE, $stackPtr + 1 );
- $semicolonIndex = $phpcsFile->findNext( T_SEMICOLON, $stackPtr + 1 );
-
- while ( $nameIndex < $semicolonIndex ) {
- if ( $tokens[ $nameIndex ][ 'code' ] !== T_WHITESPACE
- && $tokens[ $nameIndex ][ 'code' ] !== T_COMMA
- ) {
- $globalName = $tokens[$nameIndex]['content'];
-
- if ( in_array( $globalName, $this->ignoreList ) ||
- in_array( $globalName, self::$PHPReserved )
- ) {
- return;
- }
-
- // Skip '$' and forge a valid global variable name
- $expected = '$wg' . ucfirst( substr( $globalName, 1 ) );
-
- // Verify global is prefixed with wg
- if ( strpos( $globalName, '$wg' ) !== 0 ) {
- $phpcsFile->addError(
- 'Global variable "%s" is lacking \'wg\' prefix. Should be "%s".',
- $stackPtr,
- 'wgPrefix',
- [ $globalName, $expected ]
- );
- } else {
- // Verify global is probably CamelCase
- $val = ord( substr( $globalName, 3, 1 ) );
- if ( !( $val >= 65 && $val <= 90 ) ) {
- $phpcsFile->addError(
- 'Global variable "%s" should use CamelCase: "%s"',
- $stackPtr,
- 'CamelCase',
- [ $globalName, $expected ]
- );
- }
- }
- }
- $nameIndex++;
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/DbrQueryUsageSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/DbrQueryUsageSniff.php
deleted file mode 100644
index d5127770..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/DbrQueryUsageSniff.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/**
- * Report warnings when $dbr->query() is used instead of $dbr->select()
- *
- */
-
-namespace MediaWiki\Sniffs\Usage;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class DbrQueryUsageSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- return [ T_OBJECT_OPERATOR ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
-
- $dbrPtr = $phpcsFile->findPrevious( T_VARIABLE, $stackPtr );
- $methodPtr = $phpcsFile->findNext( T_STRING, $stackPtr );
-
- if ( $tokens[$dbrPtr]['content'] === '$dbr'
- && $tokens[$methodPtr]['content'] === 'query'
- ) {
- $phpcsFile->addWarning(
- 'Call $dbr->select() wrapper instead of $dbr->query()',
- $stackPtr,
- 'DbrQueryFound'
- );
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/DirUsageSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/DirUsageSniff.php
deleted file mode 100644
index b933eff2..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/DirUsageSniff.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-/**
- * Report error when dirname(__FILE__) is used instead of __DIR__
- *
- * Fail: dirname( __FILE__ )
- * Pass: dirname( __FILE__ . "/.." )
- * Pass: dirname( __FILE__, 2 )
- * Pass: dirname( joinpaths( __FILE__, ".." ) )
- * Pass: $abc->dirname( __FILE__ )
- * Pass: parent::dirname( __FILE__ )
- */
-
-namespace MediaWiki\Sniffs\Usage;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class DirUsageSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- // As per https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Other
- return [ T_STRING ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
-
- $ignore = [
- T_DOUBLE_COLON => true,
- T_OBJECT_OPERATOR => true,
- T_FUNCTION => true,
- T_CONST => true,
- ];
-
- // Check if the function is dirname()
- if ( strtolower( $tokens[$stackPtr]['content'] ) != "dirname" ) {
- return;
- }
-
- // Check if it's a PHP function
- $prevToken = $phpcsFile->findPrevious( T_WHITESPACE, ( $stackPtr - 1 ), null, true );
- if ( isset( $ignore[$tokens[$prevToken]['code']] ) === true ) {
- return;
- }
-
- // Find the paranthesis for the function
- $nextToken = $phpcsFile->findNext( T_WHITESPACE, ( $stackPtr + 1 ), null, true );
- if ( $tokens[$nextToken]['code'] !== T_OPEN_PARENTHESIS ) {
- return;
- }
-
- // Check if __FILE__ is inside it
- $nextToken = $phpcsFile->findNext( T_WHITESPACE, ( $nextToken + 1 ), null, true );
- if ( $tokens[$nextToken]['code'] !== T_FILE ) {
- return;
- }
-
- // Find close paranthesis
- $nextToken = $phpcsFile->findNext( T_WHITESPACE, ( $nextToken + 1 ), null, true );
- if ( $tokens[$nextToken]['code'] !== T_CLOSE_PARENTHESIS ) {
- return;
- }
-
- $fix = $phpcsFile->addFixableError(
- 'Use __DIR__ constant instead of calling dirname(__FILE__)',
- $stackPtr,
- 'FunctionFound'
- );
- if ( $fix === true ) {
- $curToken = $stackPtr;
- while ( $curToken <= $nextToken ) {
- if ( $tokens[$curToken]['code'] === T_FILE ) {
- $phpcsFile->fixer->replaceToken( $curToken, '__DIR__' );
- } else {
- $phpcsFile->fixer->replaceToken( $curToken, '' );
- }
- $curToken += 1;
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ExtendClassUsageSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ExtendClassUsageSniff.php
deleted file mode 100644
index 6881351c..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ExtendClassUsageSniff.php
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-/**
- * Report warnings when unexpected function or variable used like.
- * Should use $this->msg() rather than wfMessage() on ContextSource extend.
- * Should use $this->getUser() rather than $wgUser() on ContextSource extend.
- * Should use $this->getRequest() rather than $wgRequest on ContextSource extend.
- */
-
-namespace MediaWiki\Sniffs\Usage;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class ExtendClassUsageSniff implements Sniff {
-
- private $eligableCls = null;
-
- private $eligableFunc = null;
-
- public static $msgMap = [
- T_FUNCTION => 'function',
- T_VARIABLE => 'variable'
- ];
-
- public static $checkConfig = [
- // All extended class name.
- 'extendsCls' => [
- 'ContextSource' => true
- ],
- // All details of usage need to be check.
- 'checkList' => [
- // Extended class name.
- 'ContextSource' => [
- [
- // The check content.
- 'content' => 'wfMessage',
- // The content shows on report message.
- 'msg_content' => 'wfMessage()',
- // The check content code.
- 'code' => T_FUNCTION,
- // The expected content.
- 'expect_content' => '$this->msg()',
- // The expected content code.
- 'expect_code' => T_FUNCTION
- ],
- [
- 'content' => '$wgUser',
- 'msg_content' => '$wgUser',
- 'code' => T_VARIABLE,
- 'expect_content' => '$this->getUser()',
- 'expect_code' => T_FUNCTION
- ],
- [
- 'content' => '$wgRequest',
- 'msg_content' => '$wgRequest',
- 'code' => T_VARIABLE,
- 'expect_content' => '$this->getRequest()',
- 'expect_code' => T_FUNCTION
- ]
- ]
- ]
- ];
- /**
- * @return array
- */
- public function register() {
- return [
- T_CLASS,
- T_EXTENDS,
- T_FUNCTION,
- T_VARIABLE,
- T_STRING
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $currToken = $tokens[$stackPtr];
-
- if ( $currToken['code'] === T_CLASS ) {
- $extendsPtr = $phpcsFile->findNext( T_EXTENDS, $stackPtr );
- if ( $extendsPtr === false ) {
- // No extends token found
- return;
- }
- $baseClsPtr = $phpcsFile->findNext( T_STRING, $extendsPtr );
- $extClsContent = $tokens[$baseClsPtr]['content'];
- // Here should be replaced with a mechanism that check if
- // the base class is in the list of restricted classes
- if ( !isset( self::$checkConfig['extendsCls'][$extClsContent] ) ) {
- return;
- } else {
- // Retrieve class name.
- $classNamePtr = $phpcsFile->findNext( T_STRING, $stackPtr );
- $this->eligableCls = [
- 'name' => $tokens[$classNamePtr]['content'],
- 'extendsCls' => $extClsContent,
- 'scope_start' => $currToken['scope_opener'],
- 'scope_end' => $currToken['scope_closer']
- ];
- }
- }
-
- if ( !empty( $this->eligableCls )
- && $stackPtr > $this->eligableCls['scope_start']
- && $stackPtr < $this->eligableCls['scope_end']
- ) {
- if ( $currToken['code'] === T_FUNCTION ) {
- // If this is a function, make sure it's eligible
- // (i.e. not static or abstract, and has a body).
- $methodProps = $phpcsFile->getMethodProperties( $stackPtr );
- $isStaticOrAbstract = $methodProps['is_static'] || $methodProps['is_abstract'];
- $hasBody = isset( $currToken['scope_opener'] )
- && isset( $currToken['scope_closer'] );
- if ( !$isStaticOrAbstract && $hasBody ) {
- $funcNamePtr = $phpcsFile->findNext( T_STRING, $stackPtr );
- $this->eligableFunc = [
- 'name' => $tokens[$funcNamePtr]['content'],
- 'scope_start' => $currToken['scope_opener'],
- 'scope_end' => $currToken['scope_closer']
- ];
- }
- }
-
- if ( !empty( $this->eligableFunc )
- && $stackPtr > $this->eligableFunc['scope_start']
- && $stackPtr < $this->eligableFunc['scope_end']
- ) {
- // extend class name.
- $extClsContent = $this->eligableCls['extendsCls'];
- $extClsCheckList = self::$checkConfig['checkList'][ $extClsContent ];
- foreach ( $extClsCheckList as $key => $value ) {
- $condition = false;
- if ( $value['code'] === T_FUNCTION
- && strtolower( $currToken['content'] ) === strtolower( $value['content'] )
- ) {
- $condition = true;
- }
- if ( $value['code'] === T_VARIABLE
- && $currToken['content'] === $value['content']
- ) {
- $condition = true;
- }
- if ( $condition ) {
- $warning = 'Should use %s %s rather than %s %s .';
- $expectCodeMsg = self::$msgMap[ $value['expect_code'] ];
- $codeMsg = self::$msgMap[ $value['code'] ];
- $phpcsFile->addWarning(
- $warning,
- $stackPtr,
- 'FunctionVarUsage',
- [ $expectCodeMsg, $value['expect_content'], $codeMsg, $value['msg_content'] ]
- );
- return;
- }
- }
-
- // if reach the end of current function, clear function info
- $scopeEndPtr = $phpcsFile->findNext( T_STRING, $stackPtr );
- if ( $scopeEndPtr > $this->eligableFunc['scope_end'] ) {
- $this->eligableFunc = null;
- }
- }
-
- // if reach the end of current class, clear class information
- $scopeEndPtr = $phpcsFile->findNext( T_STRING, $stackPtr );
- if ( $scopeEndPtr > $this->eligableCls['scope_end'] ) {
- $this->eligableCls = null;
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/GotoUsageSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/GotoUsageSniff.php
deleted file mode 100644
index c8a7cd46..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/GotoUsageSniff.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-/**
- * Report error when `goto` is used
- */
-
-namespace MediaWiki\Sniffs\Usage;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class GotoUsageSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- // As per https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Other
- return [
- T_GOTO
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $error = 'Control statement "goto" must not be used.';
- $phpcsFile->addError( $error, $stackPtr, 'GotoUsage' );
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ReferenceThisSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ReferenceThisSniff.php
deleted file mode 100644
index 05267e1e..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ReferenceThisSniff.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- */
-
-namespace MediaWiki\Sniffs\Usage;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-/**
- * Disallows usage of &$this, which results in
- * warnings since PHP 7.1
- */
-class ReferenceThisSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- // As per https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Other
- return [
- T_BITWISE_AND
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $next = $tokens[$stackPtr + 1];
- if ( $next['code'] === T_VARIABLE && $next['content'] === '$this' ) {
- $after = $phpcsFile->findNext( T_WHITESPACE, $stackPtr + 2, null, true );
- if ( $after !== false &&
- in_array(
- $tokens[$after]['code'],
- [ T_OBJECT_OPERATOR, T_OPEN_SQUARE_BRACKET, T_DOUBLE_COLON ]
- )
- ) {
- return;
- }
- $phpcsFile->addError(
- 'Cannot use &$this, must set it to a different variable first',
- $stackPtr,
- 'Found'
- );
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ScalarTypeHintUsageSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ScalarTypeHintUsageSniff.php
deleted file mode 100644
index 2705621a..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/ScalarTypeHintUsageSniff.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- */
-
-namespace MediaWiki\Sniffs\Usage;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class ScalarTypeHintUsageSniff implements Sniff {
-
- private static $bad = [ 'string', 'int', 'float', 'bool' ];
-
- /**
- * Run on functions
- *
- * @return array
- */
- public function register() {
- return [
- T_FUNCTION
- ];
- }
-
- /**
- * If the type-hint is bad, raise an error
- *
- * @param File $phpcsFile File
- * @param int $stackPtr position
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $params = $phpcsFile->getMethodParameters( $stackPtr );
- foreach ( $params as $param ) {
- if ( $param['type_hint'] !== ''
- && in_array( $param['type_hint'], self::$bad )
- ) {
- $phpcsFile->addError(
- "Scalar type hint of '{$param['type_hint']}' cannot be used",
- $param['token'],
- 'Found'
- );
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/SuperGlobalsUsageSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/SuperGlobalsUsageSniff.php
deleted file mode 100644
index ace195cd..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/Usage/SuperGlobalsUsageSniff.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/**
- * Do not access php superglobals like $__GET,$__POST,$__SERVER.
- * Fail: $_GET['id']
- * Fail: $_POST['user']
- * Fail: $_SERVER['ip']
- */
-
-namespace MediaWiki\Sniffs\Usage;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class SuperGlobalsUsageSniff implements Sniff {
-
- // The list of forbidden superglobals
- // As per https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Global_objects
- public static $forbiddenList = [
- '$_POST' => true,
- '$_GET' => true
- ];
- /**
- * @return array
- */
- public function register() {
- return [ T_VARIABLE ];
- }
-
- /**
- * @param File $phpcsFile The File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $currentToken = $tokens[$stackPtr];
- if ( isset( self::$forbiddenList[$currentToken['content']] ) === true ) {
- $error = '"%s" superglobals should not be accessed.';
- $phpcsFile->addError( $error, $stackPtr, 'SuperGlobals', $currentToken['content'] );
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/VariableAnalysis/UnusedGlobalVariablesSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/VariableAnalysis/UnusedGlobalVariablesSniff.php
deleted file mode 100644
index 3d7978ed..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/VariableAnalysis/UnusedGlobalVariablesSniff.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/**
- * Detect unused MediaWiki global variable.
- * Unused global variables should be removed.
- */
-
-namespace MediaWiki\Sniffs\VariableAnalysis;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Util\Tokens;
-use RecursiveArrayIterator;
-use RecursiveIteratorIterator;
-
-class UnusedGlobalVariablesSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- return [ T_FUNCTION ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- if ( !isset( $tokens[$stackPtr]['scope_opener'] ) ) {
- // An interface or abstract function which doesn't have a body
- return;
- }
- $scopeOpener = ++$tokens[$stackPtr]['scope_opener'];
- $scopeCloser = $tokens[$stackPtr]['scope_closer'];
-
- $globalLine = 0;
- $globalVariables = [];
- $otherVariables = [];
- $matches = [];
- $strVariables = [];
-
- for ( $i = $scopeOpener; $i < $scopeCloser; $i++ ) {
- if ( array_key_exists( $tokens[$i]['type'], Tokens::$emptyTokens ) ) {
- continue;
- }
- if ( $tokens[$i]['type'] === 'T_GLOBAL' ) {
- $globalLine = $tokens[$i]['line'];
- }
- if ( $tokens[$i]['type'] === 'T_VARIABLE' && $tokens[$i]['line'] == $globalLine ) {
- $globalVariables[] = [ $tokens[$i]['content'], $i ];
- }
- if ( $tokens[$i]['type'] === 'T_VARIABLE' && $tokens[$i]['line'] != $globalLine ) {
- $otherVariables[$tokens[$i]['content']] = null;
- }
- if ( $tokens[$i]['type'] === 'T_DOUBLE_QUOTED_STRING'
- || $tokens[$i]['type'] === 'T_HEREDOC'
- ) {
- preg_match_all( '/\$\w+/', $tokens[$i]['content'], $matches );
- $strVariables = array_merge_recursive( $strVariables, $matches );
- }
- }
- $strVariables = iterator_to_array(
- new RecursiveIteratorIterator( new RecursiveArrayIterator( $strVariables ) ),
- false
- );
- foreach ( $globalVariables as $global ) {
- if ( !array_key_exists( $global[0], $otherVariables )
- && !in_array( $global[0], $strVariables )
- ) {
- $phpcsFile->addWarning(
- 'Global ' . $global[0] .' is never used.',
- $global[1],
- 'UnusedGlobal' . $global[0]
- );
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/DisallowEmptyLineFunctionsSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/DisallowEmptyLineFunctionsSniff.php
deleted file mode 100644
index ec0ea03f..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/DisallowEmptyLineFunctionsSniff.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/**
- * Disallow empty line at the begin of function.
- */
-
-namespace MediaWiki\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class DisallowEmptyLineFunctionsSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- return [
- T_FUNCTION,
- T_CLOSURE,
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $current = $tokens[$stackPtr];
- if ( !isset( $current['scope_opener'] ) ||
- !isset( $current['parenthesis_closer'] )
- ) {
- return;
- }
- $openBrace = $current['scope_opener'];
- $next = $phpcsFile->findNext( T_WHITESPACE, $openBrace + 1, null, true );
- if ( $next === false ) {
- return;
- }
- if ( $tokens[$next]['line'] > ( $tokens[$openBrace]['line'] + 1 ) ) {
- $error = 'Unexpected empty line at the begin of function.';
- $fix = $phpcsFile->addFixableError(
- $error,
- $stackPtr,
- 'NoEmptyLine'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->beginChangeset();
- $i = $openBrace + 1;
- while ( $tokens[$i]['line'] !== $tokens[$next]['line'] ) {
- $phpcsFile->fixer->replaceToken( $i, '' );
- $i++;
- }
- $phpcsFile->fixer->addNewlineBefore( $i );
- $phpcsFile->fixer->endChangeset();
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/MultipleEmptyLinesSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/MultipleEmptyLinesSniff.php
deleted file mode 100644
index f2a6d386..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/MultipleEmptyLinesSniff.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * Check multiple consecutive newlines in a file.
- */
-
-namespace MediaWiki\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class MultipleEmptyLinesSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- return [
- T_WHITESPACE
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
-
- if ( $stackPtr > 2
- && $tokens[$stackPtr - 1]['line'] < $tokens[$stackPtr]['line']
- && $tokens[$stackPtr - 2]['line'] === $tokens[$stackPtr - 1]['line']
- ) {
- // This is the first whitespace token on a line
- // and the line before this one is not empty,
- // so this could be the start of a multiple empty line block.
- $next = $phpcsFile->findNext( T_WHITESPACE, $stackPtr, null, true );
- $lines = ( $tokens[$next]['line'] - $tokens[$stackPtr]['line'] );
- if ( $lines > 1 ) {
- // If the next non T_WHITESPACE token is more than 1 line away,
- // then there were multiple empty lines.
- $error = 'Multiple empty lines should not exist in a row; found %s consecutive empty lines';
- $fix = $phpcsFile->addFixableError(
- $error,
- $stackPtr,
- 'MultipleEmptyLines',
- [ $lines ]
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->beginChangeset();
- $i = $stackPtr;
- while ( $tokens[$i]['line'] !== $tokens[$next]['line'] ) {
- $phpcsFile->fixer->replaceToken( $i, '' );
- $i++;
- }
- $phpcsFile->fixer->addNewlineBefore( $i );
- $phpcsFile->fixer->endChangeset();
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/OpeningKeywordParenthesisSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/OpeningKeywordParenthesisSniff.php
deleted file mode 100644
index 190a1c79..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/OpeningKeywordParenthesisSniff.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-/**
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- */
-
-namespace MediaWiki\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class OpeningKeywordParenthesisSniff implements Sniff {
- /**
- * @return array
- */
- public function register() {
- return [
- T_EMPTY,
- T_EVAL,
- T_EXIT,
- T_ISSET,
- T_LIST,
- T_UNSET,
- // also check for array(), when not replaced with short syntax
- T_ARRAY,
- ];
- }
-
- /**
- * @param File $phpcsFile File object
- * @param int $stackPtr Index of registered keywords
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $next = $stackPtr + 1;
-
- $openParenthesis = $phpcsFile->findNext( T_WHITESPACE, $next, null, true );
- if ( $openParenthesis === false ||
- $tokens[$openParenthesis]['code'] !== T_OPEN_PARENTHESIS
- ) {
- // no parenthesis found
- return;
- }
-
- if ( $next === $openParenthesis ) {
- // no whitespaces found
- return;
- }
-
- $whitespaces = $phpcsFile->getTokensAsString( $next, $openParenthesis - $next );
- $fix = $phpcsFile->addFixableError(
- 'Expected no space before opening parenthesis; found %s',
- $openParenthesis,
- 'WrongWhitespaceBeforeParenthesis',
- strlen( $whitespaces )
- );
- if ( $fix ) {
- $phpcsFile->fixer->beginChangeset();
- for ( $i = $next; $i < $openParenthesis; $i++ ) {
- $phpcsFile->fixer->replaceToken( $i, '' );
- }
- $phpcsFile->fixer->endChangeset();
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceAfterClosureSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceAfterClosureSniff.php
deleted file mode 100644
index 2b2e58a0..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceAfterClosureSniff.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/**
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- */
-
-namespace MediaWiki\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class SpaceAfterClosureSniff implements Sniff {
- /**
- * @return array
- */
- public function register() {
- return [
- T_CLOSURE,
- ];
- }
-
- /**
- * @param File $phpcsFile File object
- * @param int $stackPtr Index of "function" keyword
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $next = $tokens[$stackPtr + 1];
- if ( $next['code'] === T_WHITESPACE ) {
- if ( $next['content'] === ' ' ) {
- return;
- }
- // It's whitespace, but not a single space.
- $fix = $phpcsFile->addFixableError(
- 'A single space should be after the function keyword in closures',
- $stackPtr + 1,
- 'WrongWhitespaceAfterClosure'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->replaceToken( $stackPtr + 1, ' ' );
- }
- } elseif ( $next['code'] === T_OPEN_PARENTHESIS ) {
- $fix = $phpcsFile->addFixableError(
- 'A single space should be after the function keyword in closures',
- $stackPtr,
- 'NoWhitespaceAfterClosure'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->addContent( $stackPtr, ' ' );
- }
- }
- // else invalid syntax?
- }
-
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceAfterControlStructureSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceAfterControlStructureSniff.php
deleted file mode 100644
index 65fe3c66..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceAfterControlStructureSniff.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Verify specific control structures are followed by a single space.
- */
-
-namespace MediaWiki\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class SpaceAfterControlStructureSniff
- implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- // Per https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Spaces
- return [
- T_IF,
- T_ELSEIF,
- T_WHILE,
- T_FOR,
- T_FOREACH,
- T_SWITCH,
- T_CATCH,
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $nextToken = $tokens[$stackPtr + 1];
- if ( $nextToken['code'] !== T_WHITESPACE || $nextToken['content'] !== ' ' ) {
- $error = 'Control structure "%s" must be followed by a single space';
- $data = [ $tokens[$stackPtr]['content'] ];
- $fix = $phpcsFile->addFixableWarning( $error, $stackPtr, 'Incorrect', $data );
- if ( $fix === true ) {
- if ( $nextToken['code'] !== T_WHITESPACE ) {
- $phpcsFile->fixer->addContent( $stackPtr, ' ' );
- } else {
- // Too many spaces
- $phpcsFile->fixer->replaceToken( $stackPtr + 1, ' ' );
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeClassBraceSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeClassBraceSniff.php
deleted file mode 100644
index 52dd3dc5..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeClassBraceSniff.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/**
- * make sure a space before class open brace.
- * fail: class TestClass\t{
- * fail: class TestClass{
- * fail: class TestClass {
- * pass: class TestClass {
- */
-
-namespace MediaWiki\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class SpaceBeforeClassBraceSniff implements Sniff {
- /**
- * @return array
- */
- public function register() {
- return [
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The index of current token.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- if ( !isset( $tokens[$stackPtr]['scope_opener'] ) ) {
- return;
- }
- $openBrace = $tokens[$stackPtr]['scope_opener'];
- // Find previous non-whitespace token from the opening brace
- $pre = $phpcsFile->findPrevious( T_WHITESPACE, ( $openBrace - 1 ), null, true );
-
- if ( $tokens[$openBrace]['line'] - $tokens[$stackPtr]['line'] >= 2 ) {
- // If the class ... { statement is more than two lines, then
- // the { should be on a line by itself.
- if ( $tokens[$pre]['line'] === $tokens[$openBrace]['line'] ) {
- $fix = $phpcsFile->addFixableWarning(
- 'Expected class open brace to be on a new line',
- $openBrace,
- 'BraceNotOnOwnLine'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->addNewlineBefore( $openBrace );
- }
- }
- return;
- }
- $warning = 'Expected 1 space before class open brace and should be same line.find %s';
- $spaceCount = 0;
- for ( $start = $pre + 1; $start < $openBrace; $start++ ) {
- $content = $tokens[$start]['content'];
- $contentSize = strlen( $content );
- $spaceCount += $contentSize;
- }
-
- if ( $spaceCount !== 1 ||
- $tokens[$openBrace]['line'] !== $tokens[$pre]['line']
- ) {
- $fix = $phpcsFile->addFixableWarning(
- $warning,
- $openBrace,
- 'NoSpaceBeforeBrace',
- [ $spaceCount ]
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken( $openBrace, '' );
- $phpcsFile->fixer->addContent( $pre, ' {' );
- for ( $i = ( $pre + 1 ); $i < $openBrace; $i++ ) {
- $phpcsFile->fixer->replaceToken( $i, '' );
- }
- $phpcsFile->fixer->endChangeset();
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeControlStructureBraceSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeControlStructureBraceSniff.php
deleted file mode 100644
index 3cfddccc..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeControlStructureBraceSniff.php
+++ /dev/null
@@ -1,148 +0,0 @@
-<?php
-/**
- * make sure a space between closing parenthesis and opening brace
- * during if,while,for,foreach,switch,catch statement
- * fail: if ( $a == 1 ){
- * fail: if ( $a == 1 )\eol\t{
- * fail: switch ( $a ){
- * pass: if ( $a == 1 ) {
- * pass: switch ( $a ) {
- */
-
-namespace MediaWiki\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class SpaceBeforeControlStructureBraceSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- return [
- T_IF,
- T_ELSEIF,
- T_WHILE,
- T_FOR,
- T_FOREACH,
- T_SWITCH,
- T_CATCH,
- ];
- }
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The index of current token.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- if ( !isset( $tokens[$stackPtr]['scope_opener'] ) ) {
- return;
- }
- $openBrace = $tokens[$stackPtr]['scope_opener'];
- if ( $tokens[$openBrace]['content'] !== '{' ) {
- return;
- }
- if ( $tokens[$stackPtr + 1]['code'] !== T_WHITESPACE
- || $tokens[$stackPtr + 2]['code'] !== T_OPEN_PARENTHESIS
- || $tokens[$stackPtr + 2]['parenthesis_closer'] === null
- ) {
- return;
- }
-
- $closeBracket = $tokens[$stackPtr + 2]['parenthesis_closer'];
- $closeBracketLine = $tokens[$closeBracket]['line'];
- $openBraceLine = $tokens[$openBrace]['line'];
- $lineDifference = ( $openBraceLine - $closeBracketLine );
- if ( $lineDifference > 0 ) {
- // if brace on new line
- $this->processLineDiff( $phpcsFile, $openBrace, $closeBracket, $stackPtr );
- } else {
- // if brace on the same line as closing parenthesis
- $this->processLineSame( $phpcsFile, $openBrace, $closeBracket, $stackPtr );
- }
- $this->processEmptyLine( $phpcsFile, $closeBracket + 2, $stackPtr );
- }
-
- /**
- * Process The close parenthesis on the same line as open brace.
- *
- * @param File $phpcsFile File object.
- * @param int $openBrace The index of open brace.
- * @param int $closeBracket The index of close bracket.
- * @param int $stackPtr The index of current token.
- * @return void
- */
- protected function processLineDiff( File $phpcsFile, $openBrace,
- $closeBracket, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $phpcsFile->recordMetric( $stackPtr, 'Control Structs opening brace placement', 'new line' );
- $error = 'Opening brace should be on the same line as the declaration';
- $fix = $phpcsFile->addFixableError( $error, $openBrace, 'BraceOnNewLine' );
- if ( $fix === true ) {
- $phpcsFile->fixer->beginChangeset();
- $i = $closeBracket + 1;
- for ( $i; $i < $openBrace; $i++ ) {
- $phpcsFile->fixer->replaceToken( $i, '' );
- }
- $phpcsFile->fixer->addContent( $closeBracket, ' {' );
- $phpcsFile->fixer->replaceToken( $openBrace, '' );
- $phpcsFile->fixer->addNewLine( $closeBracket + 2 );
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- /**
- * Process The close parenthesis on the different line with open brace.
- *
- * @param File $phpcsFile File object.
- * @param int $openBrace The index of open brace.
- * @param int $closeBracket The index of close bracket.
- * @param int $stackPtr The index of current token.
- * @return void
- */
- protected function processLineSame( File $phpcsFile, $openBrace,
- $closeBracket, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $content = $phpcsFile->getTokensAsString( $closeBracket + 1, $openBrace - $closeBracket - 1 );
- $length = strlen( $content );
- if ( $length === 1 && $tokens[$closeBracket + 1]['content'] === ' ' ) {
- return;
- } else {
- $warning = 'Expected 1 space between closing parenthesis and opening brace; find %s characters';
- $fix = $phpcsFile->addFixableWarning( $warning, $openBrace, 'SpaceBeforeControl', [ $length ] );
- if ( $fix === true ) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken( $openBrace, '' );
- $phpcsFile->fixer->addContent( $closeBracket, ' {' );
- $next = $phpcsFile->findNext( T_WHITESPACE, $closeBracket + 1, null, true );
- for ( $i = ( $closeBracket + 1 ); $i < $next; $i++ ) {
- $phpcsFile->fixer->replaceToken( $i, '' );
- }
- $phpcsFile->fixer->endChangeset();
- }
- }
- }
- /**
- * Process empty line after the open brace.
- *
- * @param File $phpcsFile File object.
- * @param int $openBrace The index of open brace.
- * @param int $stackPtr The index of current token.
- * @return void
- */
- protected function processEmptyLine( File $phpcsFile, $openBrace, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $next = $phpcsFile->findNext( T_WHITESPACE, $openBrace + 2, null, false );
- $found = strpos( $tokens[$next]['content'], $phpcsFile->eolChar );
- if ( $tokens[$next]['code'] === T_WHITESPACE && $found !== false ) {
- $warning = 'empty lines should not exist after brace of "%s"';
- $content = $tokens[$stackPtr]['content'];
- $fix = $phpcsFile->addFixableWarning( $warning, $openBrace, 'EmptyLines', [ $content ] );
- if ( $fix === true ) {
- $phpcsFile->fixer->replaceToken( $next, '' );
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeSingleLineCommentSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeSingleLineCommentSniff.php
deleted file mode 100644
index 68b1a498..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceBeforeSingleLineCommentSniff.php
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-/**
-* Verify comments are preceeded by a single space.
-*/
-
-namespace MediaWiki\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class SpaceBeforeSingleLineCommentSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- return [
- T_COMMENT
- ];
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $currToken = $tokens[$stackPtr];
- $preToken = $phpcsFile->findPrevious( T_WHITESPACE, $stackPtr - 1, null, true );
- if ( $preToken !== false &&
- $tokens[$preToken]['line'] === $tokens[$stackPtr]['line']
- ) {
- $phpcsFile->addWarning(
- 'Comments should start on new line.',
- $stackPtr,
- 'NewLineComment'
- );
- }
- if ( $currToken['code'] === T_COMMENT ) {
- // Accounting for multiple line comments, as single line comments
- // use only '//' and '#'
- // Also ignoring phpdoc comments starting with '///',
- // as there are no coding standards documented for these
- if ( substr( $currToken['content'], 0, 2 ) === '/*'
- || substr( $currToken['content'], 0, 3 ) === '///'
- ) {
- return;
- }
-
- // Checking whether the comment is an empty one
- if ( ( substr( $currToken['content'], 0, 2 ) === '//' &&
- rtrim( $currToken['content'] ) === '//' ) ||
- ( $currToken['content'][0] === '#' &&
- rtrim( $currToken['content'] ) === '#' )
- ) {
- $phpcsFile->addWarning( 'Unnecessary empty comment found',
- $stackPtr,
- 'EmptyComment'
- );
- // Checking whether there is a space between the comment delimiter
- // and the comment
- } elseif ( substr( $currToken['content'], 0, 2 ) === '//' ) {
- $commentContent = substr( $currToken['content'], 2 );
- $commentTrim = ltrim( $commentContent );
- if ( strlen( $commentContent ) !== ( strlen( $commentTrim ) + 1 ) ||
- $currToken['content'][2] !== ' '
- ) {
- $error = 'Single space expected between "//" and comment';
- $fix = $phpcsFile->addFixableWarning( $error, $stackPtr,
- 'SingleSpaceBeforeSingleLineComment'
- );
- if ( $fix === true ) {
- $newContent = '// ';
- $newContent .= $commentTrim;
- $phpcsFile->fixer->replaceToken( $stackPtr, $newContent );
- }
- }
- // Finding what the comment delimiter is and checking whether there is a space
- // between the comment delimiter and the comment.
- } elseif ( $currToken['content'][0] === '#' ) {
- // Find number of `#` used.
- $startComment = 0;
- while ( $currToken['content'][$startComment] === '#' ) {
- $startComment += 1;
- }
- if ( $currToken['content'][$startComment] !== ' ' ) {
- $error = 'Single space expected between "#" and comment';
- $fix = $phpcsFile->addFixableWarning( $error, $stackPtr,
- 'SingleSpaceBeforeSingleLineComment'
- );
- if ( $fix === true ) {
- $content = $currToken['content'];
- $newContent = '# ';
- $tmpContent = substr( $content, 1 );
- $newContent .= ltrim( $tmpContent );
- $phpcsFile->fixer->replaceToken( $stackPtr, $newContent );
- }
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceyParenthesisSniff.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceyParenthesisSniff.php
deleted file mode 100644
index ce1a7041..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/WhiteSpace/SpaceyParenthesisSniff.php
+++ /dev/null
@@ -1,201 +0,0 @@
-<?php
-/**
- * Make sure calling functions is spacey:
- * $this->foo( $arg, $arg2 );
- * wfFoo( $arg, $arg2 );
- *
- * But, wfFoo() is ok.
- *
- * Also disallow wfFoo( ) and wfFoo( $param )
- */
-
-namespace MediaWiki\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Sniffs\Sniff;
-
-class SpaceyParenthesisSniff implements Sniff {
-
- /**
- * @return array
- */
- public function register() {
- return [
- T_OPEN_PARENTHESIS,
- T_CLOSE_PARENTHESIS,
- T_OPEN_SHORT_ARRAY,
- T_CLOSE_SHORT_ARRAY
- ];
- }
-
- /**
- * @param int $token PHPCS token code.
- * @return boolean Whether the token code is open.
- */
- private function isOpen( $token ) {
- return $token === T_OPEN_PARENTHESIS
- || $token === T_OPEN_SHORT_ARRAY;
- }
-
- /**
- * @param int $token PHPCS token code.
- * @return boolean Whether the token code is closed.
- */
- private function isClosed( $token ) {
- return $token === T_CLOSE_PARENTHESIS
- || $token === T_CLOSE_SHORT_ARRAY;
- }
-
- /**
- * @param int $token PHPCS token code.
- * @return boolean Whether the token code is parenthesis.
- */
- private function isParenthesis( $token ) {
- return $token === T_OPEN_PARENTHESIS
- || $token === T_CLOSE_PARENTHESIS;
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- public function process( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
-
- $currentToken = $tokens[$stackPtr];
-
- if ( $this->isOpen( $currentToken['code'] )
- && $tokens[$stackPtr - 1]['code'] === T_WHITESPACE
- && ( $tokens[$stackPtr - 2]['code'] === T_STRING
- || $tokens[$stackPtr - 2]['code'] === T_ARRAY ) ) {
- // String (or 'array') followed by whitespace followed by
- // opening brace is probably a function call.
- if ( $this->isParenthesis( $currentToken['code'] ) ) {
- $msg = 'opening parenthesis of function call';
- } else {
- $msg = 'opening bracket of array';
- }
- $fix = $phpcsFile->addFixableWarning(
- 'Space found before ' . $msg,
- $stackPtr - 1,
- 'SpaceBeforeOpeningParenthesis'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->replaceToken( $stackPtr - 1, '' );
- }
- }
-
- // Check for space between parentheses without any arguments
- if ( $this->isOpen( $currentToken['code'] )
- && $tokens[$stackPtr + 1]['code'] === T_WHITESPACE
- && $this->isClosed( $tokens[$stackPtr + 2]['code'] ) ) {
- if ( $this->isParenthesis( $currentToken['code'] ) ) {
- $msg = 'parentheses';
- } else {
- $msg = 'brackets';
- }
- $fix = $phpcsFile->addFixableWarning(
- 'Unnecessary space found within ' . $msg,
- $stackPtr + 1,
- 'UnnecessarySpaceBetweenParentheses'
- );
- if ( $fix === true ) {
- $phpcsFile->fixer->replaceToken( $stackPtr + 1, '' );
- }
- return;
- }
-
- // Same check as above, but ignore since it was already processed
- if ( $this->isClosed( $currentToken['code'] )
- && $tokens[$stackPtr - 1]['code'] === T_WHITESPACE
- && $this->isOpen( $tokens[$stackPtr - 2]['code'] ) ) {
- return;
- }
-
- if ( $this->isOpen( $currentToken['code'] ) ) {
- $this->processOpenParenthesis( $phpcsFile, $stackPtr );
- } else {
- // T_CLOSE_PARENTHESIS
- $this->processCloseParenthesis( $phpcsFile, $stackPtr );
- }
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- protected function processOpenParenthesis( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $nextToken = $tokens[$stackPtr + 1];
- // No space or not single space
- if ( ( $nextToken['code'] === T_WHITESPACE &&
- strpos( $nextToken['content'], "\n" ) === false
- && $nextToken['content'] != ' ' )
- || ( !$this->isClosed( $nextToken['code'] ) && $nextToken['code'] !== T_WHITESPACE ) ) {
- $fix = $phpcsFile->addFixableWarning(
- 'Single space expected after opening parenthesis',
- $stackPtr + 1,
- 'SingleSpaceAfterOpenParenthesis'
- );
- if ( $fix === true ) {
- if ( $nextToken['code'] === T_WHITESPACE
- && strpos( $nextToken['content'], "\n" ) === false
- && $nextToken['content'] != ' ' ) {
- $phpcsFile->fixer->replaceToken( $stackPtr + 1, ' ' );
- } else {
- $phpcsFile->fixer->addContent( $stackPtr, ' ' );
- }
- }
- }
- }
-
- /**
- * @param File $phpcsFile File object.
- * @param int $stackPtr The current token index.
- * @return void
- */
- protected function processCloseParenthesis( File $phpcsFile, $stackPtr ) {
- $tokens = $phpcsFile->getTokens();
- $previousToken = $tokens[$stackPtr - 1];
-
- if ( $this->isOpen( $previousToken['code'] )
- || ( $previousToken['code'] === T_WHITESPACE
- && $previousToken['content'] === ' ' )
- || ( $previousToken['code'] === T_COMMENT
- && substr( $previousToken['content'], -1, 1 ) === "\n" ) ) {
- // If previous token was
- // '(' or ' ' or a comment ending with a newline
- return;
- }
-
- // If any of the whitespace tokens immediately before this token have a newline
- $ptr = $stackPtr - 1;
- while ( $tokens[$ptr]['code'] === T_WHITESPACE ) {
- if ( strpos( $tokens[$ptr]['content'], "\n" ) !== false ) {
- return;
- }
- $ptr--;
- }
-
- // If the comment before all the whitespaces immediately preceding the ')' ends with a newline
- if ( $tokens[$ptr]['code'] === T_COMMENT
- && substr( $tokens[$ptr]['content'], -1, 1 ) === "\n" ) {
- return;
- }
-
- $fix = $phpcsFile->addFixableWarning(
- 'Single space expected before closing parenthesis',
- $stackPtr,
- 'SingleSpaceBeforeCloseParenthesis'
- );
- if ( $fix === true ) {
- if ( $previousToken['code'] === T_WHITESPACE ) {
- $phpcsFile->fixer->replaceToken( $stackPtr - 1, ' ' );
- } else {
- $phpcsFile->fixer->addContentBefore( $stackPtr, ' ' );
- }
- }
- }
-}
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/ruleset.xml b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/ruleset.xml
deleted file mode 100644
index b12a7da1..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/ruleset.xml
+++ /dev/null
@@ -1,125 +0,0 @@
-<?xml version="1.0"?>
-<!--
- See:
- - https://www.mediawiki.org/wiki/Manual:Coding_conventions
- - http://pear.php.net/manual/en/package.php.php-codesniffer.annotated-ruleset.php
- - https://github.com/squizlabs/PHP_CodeSniffer/tree/master/CodeSniffer/Standards
--->
-<ruleset name="MediaWiki">
-
- <description>A coding standard for MediaWiki.</description>
-
- <rule ref="Generic.Arrays.DisallowLongArraySyntax" />
-
- <rule ref="Generic.Classes.DuplicateClassName" />
- <!-- Some people likes else { /** comment */ }
- <rule ref="Generic.CodeAnalysis.EmptyStatement" />
- -->
- <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
- <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall" />
- <rule ref="Generic.CodeAnalysis.JumbledIncrementer" />
- <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement" />
- <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier" />
- <!--
- https://pear.php.net/bugs/bug.php?id=19950
- <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" />
- -->
- <!--
- Useless rule. Test is naïve and flags perfectly legit reasons to override
- <rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
- -->
- <rule ref="Generic.Files.ByteOrderMark" />
- <rule ref="Generic.Files.EndFileNewline" />
- <rule ref="Generic.Files.LineEndings" />
- <rule ref="Generic.Files.LineLength">
- <properties>
- <!-- More than 100 will throw a warning ... -->
- <property name="lineLimit" value="100" />
- <!-- ... but we will most probably never throw an error -->
- <property name="absoluteLineLimit" value="9999" />
- </properties>
- </rule>
- <!-- <rule ref="Generic.Files.OneClassPerFile" /> -->
- <rule ref="Generic.Formatting.DisallowMultipleStatements" />
- <rule ref="Generic.Formatting.MultipleStatementAlignment" />
- <rule ref="Generic.Formatting.MultipleStatementAlignment.NotSameWarning">
- <severity>0</severity>
- </rule>
-
- <!-- When type casting, do not use a space within or after the cast operator parentheses. -->
- <rule ref="Squiz.WhiteSpace.CastSpacing" />
- <rule ref="Generic.Formatting.NoSpaceAfterCast" />
-
- <rule ref="Generic.Functions.CallTimePassByReference" />
- <rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
- <rule ref="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma">
- <!--
- We alignement certain function calls like this
- define( 'FOO', 1 );
- define( 'A_BIT_LONGER', 2 );
- -->
- <severity>0</severity>
- </rule>
- <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
- <!-- <rule ref="Generic.NamingConventions.CamelCapsFunctionName" /> -->
- <rule ref="Generic.NamingConventions.ConstructorName" />
- <rule ref="Generic.NamingConventions.UpperCaseConstantName" />
- <rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" />
- <rule ref="Generic.PHP.DeprecatedFunctions" />
- <rule ref="Generic.PHP.DisallowShortOpenTag" />
- <rule ref="Generic.PHP.ForbiddenFunctions" />
- <rule ref="Generic.PHP.LowerCaseConstant" />
- <rule ref="Generic.PHP.LowerCaseKeyword" />
- <rule ref="Generic.PHP.NoSilencedErrors" />
- <rule ref="Generic.PHP.SAPIUsage" />
- <rule ref="Generic.WhiteSpace.DisallowSpaceIndent" />
-
- <rule ref="PSR2.Classes.PropertyDeclaration" />
- <rule ref="PSR2.Classes.PropertyDeclaration.Multiple">
- <!-- We tends to declare multiple properties with one statement -->
- <severity>0</severity>
- </rule>
- <rule ref="Generic.ControlStructures.InlineControlStructure" />
- <rule ref="PSR2.Files.EndFileNewline" />
- <rule ref="PSR2.ControlStructures.ElseIfDeclaration" />
- <rule ref="PSR2.Methods.MethodDeclaration" />
- <rule ref="PSR2.Namespaces.NamespaceDeclaration" />
- <rule ref="PSR2.Namespaces.UseDeclaration" />
- <rule ref="PSR2.Methods.FunctionClosingBrace" />
-
- <rule ref="Squiz.CSS.SemicolonSpacing" />
- <rule ref="Squiz.Classes.SelfMemberReference" />
- <rule ref="Squiz.Classes.ValidClassName" />
- <rule ref="Squiz.Operators.ValidLogicalOperators" />
- <rule ref="Squiz.Scope.StaticThisUsage" />
- <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing" />
- <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing" />
- <!-- <rule ref="Squiz.WhiteSpace.MemberVarSpacing" /> -->
- <!--
- `$foo -> bar()` is bad. But we do allow:
- $foo
- ->bar()
- ->quux();
- <rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing" />
- -->
- <rule ref="Squiz.WhiteSpace.OperatorSpacing">
- <properties>
- <property name="ignoreNewlines" value="true" />
- </properties>
- </rule>
- <rule ref="Squiz.WhiteSpace.ScopeClosingBrace" />
- <rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing" />
- <rule ref="Squiz.WhiteSpace.SemicolonSpacing" />
- <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
- <!-- Implemented as MediaWiki.WhiteSpace.MultipleEmptyLines -->
- <exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" />
- </rule>
-
- <rule ref="Zend.Files.ClosingTag" />
- <rule ref="Generic.PHP.BacktickOperator" />
-
- <!-- exclude common folders from version control or build tools -->
- <exclude-pattern type="relative">^\.git</exclude-pattern>
- <exclude-pattern type="relative">^vendor</exclude-pattern>
- <exclude-pattern type="relative">^node_modules</exclude-pattern>
-</ruleset>
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/README.md b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/README.md
deleted file mode 100644
index c9691a58..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/README.md
+++ /dev/null
@@ -1,56 +0,0 @@
-MediaWiki coding conventions
-============================
-
-Abstract
---------
-This project implements a set of rules for use with [PHP CodeSniffer][0].
-
-See [MediaWiki conventions][1] on our wiki for a detailed description of the
-coding conventions that are validated by these rules. :-)
-
-How to install
---------------
-1. Create a composer.json which adds this project as a dependency:
-
- ```
- {
- "require-dev": {
- "mediawiki/mediawiki-codesniffer": "0.12.0"
- },
- "scripts": {
- "test": [
- "phpcs -p -s"
- ],
- "fix": "phpcbf"
- }
- }
- ```
-2. Create a phpcs.xml with our configuration:
-
- ```
- <?xml version="1.0"?>
- <ruleset>
- <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
- <file>.</file>
- <arg name="bootstrap" value="vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php"/>
- <arg name="extensions" value="php,php5,inc"/>
- <arg name="encoding" value="UTF-8"/>
- </ruleset>
- ```
-3. Install: `composer update`
-4. Run: `composer test`
-5. Run: `composer fix` to auto-fix some of the errors, others might need
- manual intervention.
-6. Commit!
-
-Note that for most MediaWiki projects, we'd also recommend adding a PHP linter
-to your `composer.json` – see the [full documentation][2] for more details.
-
-TODO
-----
-* Migrate the old code-utils/check-vars.php
-
----
-[0]: https://pear.php.net/package/PHP_CodeSniffer
-[1]: https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP
-[2]: https://www.mediawiki.org/wiki/Continuous_integration/Entry_points#PHP
diff --git a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php b/www/wiki/vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php
deleted file mode 100644
index e2fdd6cc..00000000
--- a/www/wiki/vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-/**
- * Change PHP CodeSniffer to only lint files changed in HEAD.
- * Needed PHP CodeSniffer version 3.0.0 or higher
- *
- * Copyright © 2017 Antoine Musso <hashar@free.fr>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- * @file
- * @author Antoine Musso
- */
-
-# Only filter when running from cli and using Jenkins
-if ( ! ( PHP_SAPI === 'cli' && getenv( 'JENKINS_URL' ) !== false ) ) {
- return;
-}
-
-# From integration/jenkins.git bin/git-changed-in-head
-$_head_files = [];
-exec(
- 'git show HEAD --name-only --diff-filter=ACM -m --first-parent --format=format:',
- $_head_files, $_return
-);
-if ( $_return !== 0 ) {
- unset( $_head_files );
- unset( $_return );
- return;
-}
-
-# Changes to phpcs.xml affect all files
-if ( in_array( 'phpcs.xml', $_head_files ) ) {
- unset( $_head_files );
- unset( $_return );
- return;
-}
-# composer.json might affect mediawiki/mediawiki-codesniffer version
-if ( in_array( 'composer.json', $_head_files ) ) {
- exec( 'git show HEAD^:composer.json', $_prev_composer, $_return );
- if ( $_return !== 0 ) {
- unset( $_head_files );
- unset( $_return );
- return;
- }
- exec( 'git show HEAD:composer.json', $_cur_composer, $_return );
- if ( $_return !== 0 ) {
- unset( $_head_files );
- unset( $_return );
- return;
- }
- $_prev_composer = json_decode( join( '', $_prev_composer ), true );
- $_cur_composer = json_decode( join( '', $_cur_composer ), true );
- if ( $_prev_composer['require-dev']['mediawiki/mediawiki-codesniffer']
- !== $_cur_composer['require-dev']['mediawiki/mediawiki-codesniffer']
- ) {
- unset( $_head_files );
- unset( $_return );
- return;
- }
-}
-
-# Only keep files out of git head that matches phpcs.xml extensions.
-$_extensions = array_keys( $this->config->extensions );
-$this->config->files = array_filter(
- $_head_files,
- function ( $file ) use ( $_extensions ) {
- $pinfo = pathinfo( $file );
- return in_array( strtolower( $pinfo['extension'] ), $_extensions );
- }
-);
-unset( $_extensions );
-unset( $_head_files );
-unset( $_return );
-if ( empty( $this->config->files ) ) {
- echo "No files to process. Skipping run\n";
- exit( 0 );
-}
diff --git a/www/wiki/vendor/monolog/monolog/.php_cs b/www/wiki/vendor/monolog/monolog/.php_cs
deleted file mode 100644
index 366ccd08..00000000
--- a/www/wiki/vendor/monolog/monolog/.php_cs
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-$header = <<<EOF
-This file is part of the Monolog package.
-
-(c) Jordi Boggiano <j.boggiano@seld.be>
-
-For the full copyright and license information, please view the LICENSE
-file that was distributed with this source code.
-EOF;
-
-$finder = Symfony\CS\Finder::create()
- ->files()
- ->name('*.php')
- ->exclude('Fixtures')
- ->in(__DIR__.'/src')
- ->in(__DIR__.'/tests')
-;
-
-return Symfony\CS\Config::create()
- ->setUsingCache(true)
- //->setUsingLinter(false)
- ->setRiskyAllowed(true)
- ->setRules(array(
- '@PSR2' => true,
- 'binary_operator_spaces' => true,
- 'blank_line_before_return' => true,
- 'header_comment' => array('header' => $header),
- 'include' => true,
- 'long_array_syntax' => true,
- 'method_separation' => true,
- 'no_blank_lines_after_class_opening' => true,
- 'no_blank_lines_after_phpdoc' => true,
- 'no_blank_lines_between_uses' => true,
- 'no_duplicate_semicolons' => true,
- 'no_extra_consecutive_blank_lines' => true,
- 'no_leading_import_slash' => true,
- 'no_leading_namespace_whitespace' => true,
- 'no_trailing_comma_in_singleline_array' => true,
- 'no_unused_imports' => true,
- 'object_operator_without_whitespace' => true,
- 'phpdoc_align' => true,
- 'phpdoc_indent' => true,
- 'phpdoc_no_access' => true,
- 'phpdoc_no_package' => true,
- 'phpdoc_order' => true,
- 'phpdoc_scalar' => true,
- 'phpdoc_trim' => true,
- 'phpdoc_type_to_var' => true,
- 'psr0' => true,
- 'single_blank_line_before_namespace' => true,
- 'spaces_cast' => true,
- 'standardize_not_equals' => true,
- 'ternary_operator_spaces' => true,
- 'trailing_comma_in_multiline_array' => true,
- 'whitespacy_lines' => true,
- ))
- ->finder($finder)
-;
diff --git a/www/wiki/vendor/monolog/monolog/CHANGELOG.md b/www/wiki/vendor/monolog/monolog/CHANGELOG.md
deleted file mode 100644
index 1153c62c..00000000
--- a/www/wiki/vendor/monolog/monolog/CHANGELOG.md
+++ /dev/null
@@ -1,333 +0,0 @@
-### 1.22.1 (2017-03-13)
-
- * Fixed lots of minor issues in the new Slack integrations
- * Fixed support for allowInlineLineBreaks in LineFormatter when formatting exception backtraces
-
-### 1.22.0 (2016-11-26)
-
- * Added SlackbotHandler and SlackWebhookHandler to set up Slack integration more easily
- * Added MercurialProcessor to add mercurial revision and branch names to log records
- * Added support for AWS SDK v3 in DynamoDbHandler
- * Fixed fatal errors occuring when normalizing generators that have been fully consumed
- * Fixed RollbarHandler to include a level (rollbar level), monolog_level (original name), channel and datetime (unix)
- * Fixed RollbarHandler not flushing records automatically, calling close() explicitly is not necessary anymore
- * Fixed SyslogUdpHandler to avoid sending empty frames
- * Fixed a few PHP 7.0 and 7.1 compatibility issues
-
-### 1.21.0 (2016-07-29)
-
- * Break: Reverted the addition of $context when the ErrorHandler handles regular php errors from 1.20.0 as it was causing issues
- * Added support for more formats in RotatingFileHandler::setFilenameFormat as long as they have Y, m and d in order
- * Added ability to format the main line of text the SlackHandler sends by explictly setting a formatter on the handler
- * Added information about SoapFault instances in NormalizerFormatter
- * Added $handleOnlyReportedErrors option on ErrorHandler::registerErrorHandler (default true) to allow logging of all errors no matter the error_reporting level
-
-### 1.20.0 (2016-07-02)
-
- * Added FingersCrossedHandler::activate() to manually trigger the handler regardless of the activation policy
- * Added StreamHandler::getUrl to retrieve the stream's URL
- * Added ability to override addRow/addTitle in HtmlFormatter
- * Added the $context to context information when the ErrorHandler handles a regular php error
- * Deprecated RotatingFileHandler::setFilenameFormat to only support 3 formats: Y, Y-m and Y-m-d
- * Fixed WhatFailureGroupHandler to work with PHP7 throwables
- * Fixed a few minor bugs
-
-### 1.19.0 (2016-04-12)
-
- * Break: StreamHandler will not close streams automatically that it does not own. If you pass in a stream (not a path/url), then it will not close it for you. You can retrieve those using getStream() if needed
- * Added DeduplicationHandler to remove duplicate records from notifications across multiple requests, useful for email or other notifications on errors
- * Added ability to use `%message%` and other LineFormatter replacements in the subject line of emails sent with NativeMailHandler and SwiftMailerHandler
- * Fixed HipChatHandler handling of long messages
-
-### 1.18.2 (2016-04-02)
-
- * Fixed ElasticaFormatter to use more precise dates
- * Fixed GelfMessageFormatter sending too long messages
-
-### 1.18.1 (2016-03-13)
-
- * Fixed SlackHandler bug where slack dropped messages randomly
- * Fixed RedisHandler issue when using with the PHPRedis extension
- * Fixed AmqpHandler content-type being incorrectly set when using with the AMQP extension
- * Fixed BrowserConsoleHandler regression
-
-### 1.18.0 (2016-03-01)
-
- * Added optional reduction of timestamp precision via `Logger->useMicrosecondTimestamps(false)`, disabling it gets you a bit of performance boost but reduces the precision to the second instead of microsecond
- * Added possibility to skip some extra stack frames in IntrospectionProcessor if you have some library wrapping Monolog that is always adding frames
- * Added `Logger->withName` to clone a logger (keeping all handlers) with a new name
- * Added FluentdFormatter for the Fluentd unix socket protocol
- * Added HandlerWrapper base class to ease the creation of handler wrappers, just extend it and override as needed
- * Added support for replacing context sub-keys using `%context.*%` in LineFormatter
- * Added support for `payload` context value in RollbarHandler
- * Added setRelease to RavenHandler to describe the application version, sent with every log
- * Added support for `fingerprint` context value in RavenHandler
- * Fixed JSON encoding errors that would gobble up the whole log record, we now handle those more gracefully by dropping chars as needed
- * Fixed write timeouts in SocketHandler and derivatives, set to 10sec by default, lower it with `setWritingTimeout()`
- * Fixed PHP7 compatibility with regard to Exception/Throwable handling in a few places
-
-### 1.17.2 (2015-10-14)
-
- * Fixed ErrorHandler compatibility with non-Monolog PSR-3 loggers
- * Fixed SlackHandler handling to use slack functionalities better
- * Fixed SwiftMailerHandler bug when sending multiple emails they all had the same id
- * Fixed 5.3 compatibility regression
-
-### 1.17.1 (2015-08-31)
-
- * Fixed RollbarHandler triggering PHP notices
-
-### 1.17.0 (2015-08-30)
-
- * Added support for `checksum` and `release` context/extra values in RavenHandler
- * Added better support for exceptions in RollbarHandler
- * Added UidProcessor::getUid
- * Added support for showing the resource type in NormalizedFormatter
- * Fixed IntrospectionProcessor triggering PHP notices
-
-### 1.16.0 (2015-08-09)
-
- * Added IFTTTHandler to notify ifttt.com triggers
- * Added Logger::setHandlers() to allow setting/replacing all handlers
- * Added $capSize in RedisHandler to cap the log size
- * Fixed StreamHandler creation of directory to only trigger when the first log write happens
- * Fixed bug in the handling of curl failures
- * Fixed duplicate logging of fatal errors when both error and fatal error handlers are registered in monolog's ErrorHandler
- * Fixed missing fatal errors records with handlers that need to be closed to flush log records
- * Fixed TagProcessor::addTags support for associative arrays
-
-### 1.15.0 (2015-07-12)
-
- * Added addTags and setTags methods to change a TagProcessor
- * Added automatic creation of directories if they are missing for a StreamHandler to open a log file
- * Added retry functionality to Loggly, Cube and Mandrill handlers so they retry up to 5 times in case of network failure
- * Fixed process exit code being incorrectly reset to 0 if ErrorHandler::registerExceptionHandler was used
- * Fixed HTML/JS escaping in BrowserConsoleHandler
- * Fixed JSON encoding errors being silently suppressed (PHP 5.5+ only)
-
-### 1.14.0 (2015-06-19)
-
- * Added PHPConsoleHandler to send record to Chrome's PHP Console extension and library
- * Added support for objects implementing __toString in the NormalizerFormatter
- * Added support for HipChat's v2 API in HipChatHandler
- * Added Logger::setTimezone() to initialize the timezone monolog should use in case date.timezone isn't correct for your app
- * Added an option to send formatted message instead of the raw record on PushoverHandler via ->useFormattedMessage(true)
- * Fixed curl errors being silently suppressed
-
-### 1.13.1 (2015-03-09)
-
- * Fixed regression in HipChat requiring a new token to be created
-
-### 1.13.0 (2015-03-05)
-
- * Added Registry::hasLogger to check for the presence of a logger instance
- * Added context.user support to RavenHandler
- * Added HipChat API v2 support in the HipChatHandler
- * Added NativeMailerHandler::addParameter to pass params to the mail() process
- * Added context data to SlackHandler when $includeContextAndExtra is true
- * Added ability to customize the Swift_Message per-email in SwiftMailerHandler
- * Fixed SwiftMailerHandler to lazily create message instances if a callback is provided
- * Fixed serialization of INF and NaN values in Normalizer and LineFormatter
-
-### 1.12.0 (2014-12-29)
-
- * Break: HandlerInterface::isHandling now receives a partial record containing only a level key. This was always the intent and does not break any Monolog handler but is strictly speaking a BC break and you should check if you relied on any other field in your own handlers.
- * Added PsrHandler to forward records to another PSR-3 logger
- * Added SamplingHandler to wrap around a handler and include only every Nth record
- * Added MongoDBFormatter to support better storage with MongoDBHandler (it must be enabled manually for now)
- * Added exception codes in the output of most formatters
- * Added LineFormatter::includeStacktraces to enable exception stack traces in logs (uses more than one line)
- * Added $useShortAttachment to SlackHandler to minify attachment size and $includeExtra to append extra data
- * Added $host to HipChatHandler for users of private instances
- * Added $transactionName to NewRelicHandler and support for a transaction_name context value
- * Fixed MandrillHandler to avoid outputing API call responses
- * Fixed some non-standard behaviors in SyslogUdpHandler
-
-### 1.11.0 (2014-09-30)
-
- * Break: The NewRelicHandler extra and context data are now prefixed with extra_ and context_ to avoid clashes. Watch out if you have scripts reading those from the API and rely on names
- * Added WhatFailureGroupHandler to suppress any exception coming from the wrapped handlers and avoid chain failures if a logging service fails
- * Added MandrillHandler to send emails via the Mandrillapp.com API
- * Added SlackHandler to log records to a Slack.com account
- * Added FleepHookHandler to log records to a Fleep.io account
- * Added LogglyHandler::addTag to allow adding tags to an existing handler
- * Added $ignoreEmptyContextAndExtra to LineFormatter to avoid empty [] at the end
- * Added $useLocking to StreamHandler and RotatingFileHandler to enable flock() while writing
- * Added support for PhpAmqpLib in the AmqpHandler
- * Added FingersCrossedHandler::clear and BufferHandler::clear to reset them between batches in long running jobs
- * Added support for adding extra fields from $_SERVER in the WebProcessor
- * Fixed support for non-string values in PrsLogMessageProcessor
- * Fixed SwiftMailer messages being sent with the wrong date in long running scripts
- * Fixed minor PHP 5.6 compatibility issues
- * Fixed BufferHandler::close being called twice
-
-### 1.10.0 (2014-06-04)
-
- * Added Logger::getHandlers() and Logger::getProcessors() methods
- * Added $passthruLevel argument to FingersCrossedHandler to let it always pass some records through even if the trigger level is not reached
- * Added support for extra data in NewRelicHandler
- * Added $expandNewlines flag to the ErrorLogHandler to create multiple log entries when a message has multiple lines
-
-### 1.9.1 (2014-04-24)
-
- * Fixed regression in RotatingFileHandler file permissions
- * Fixed initialization of the BufferHandler to make sure it gets flushed after receiving records
- * Fixed ChromePHPHandler and FirePHPHandler's activation strategies to be more conservative
-
-### 1.9.0 (2014-04-20)
-
- * Added LogEntriesHandler to send logs to a LogEntries account
- * Added $filePermissions to tweak file mode on StreamHandler and RotatingFileHandler
- * Added $useFormatting flag to MemoryProcessor to make it send raw data in bytes
- * Added support for table formatting in FirePHPHandler via the table context key
- * Added a TagProcessor to add tags to records, and support for tags in RavenHandler
- * Added $appendNewline flag to the JsonFormatter to enable using it when logging to files
- * Added sound support to the PushoverHandler
- * Fixed multi-threading support in StreamHandler
- * Fixed empty headers issue when ChromePHPHandler received no records
- * Fixed default format of the ErrorLogHandler
-
-### 1.8.0 (2014-03-23)
-
- * Break: the LineFormatter now strips newlines by default because this was a bug, set $allowInlineLineBreaks to true if you need them
- * Added BrowserConsoleHandler to send logs to any browser's console via console.log() injection in the output
- * Added FilterHandler to filter records and only allow those of a given list of levels through to the wrapped handler
- * Added FlowdockHandler to send logs to a Flowdock account
- * Added RollbarHandler to send logs to a Rollbar account
- * Added HtmlFormatter to send prettier log emails with colors for each log level
- * Added GitProcessor to add the current branch/commit to extra record data
- * Added a Monolog\Registry class to allow easier global access to pre-configured loggers
- * Added support for the new official graylog2/gelf-php lib for GelfHandler, upgrade if you can by replacing the mlehner/gelf-php requirement
- * Added support for HHVM
- * Added support for Loggly batch uploads
- * Added support for tweaking the content type and encoding in NativeMailerHandler
- * Added $skipClassesPartials to tweak the ignored classes in the IntrospectionProcessor
- * Fixed batch request support in GelfHandler
-
-### 1.7.0 (2013-11-14)
-
- * Added ElasticSearchHandler to send logs to an Elastic Search server
- * Added DynamoDbHandler and ScalarFormatter to send logs to Amazon's Dynamo DB
- * Added SyslogUdpHandler to send logs to a remote syslogd server
- * Added LogglyHandler to send logs to a Loggly account
- * Added $level to IntrospectionProcessor so it only adds backtraces when needed
- * Added $version to LogstashFormatter to allow using the new v1 Logstash format
- * Added $appName to NewRelicHandler
- * Added configuration of Pushover notification retries/expiry
- * Added $maxColumnWidth to NativeMailerHandler to change the 70 chars default
- * Added chainability to most setters for all handlers
- * Fixed RavenHandler batch processing so it takes the message from the record with highest priority
- * Fixed HipChatHandler batch processing so it sends all messages at once
- * Fixed issues with eAccelerator
- * Fixed and improved many small things
-
-### 1.6.0 (2013-07-29)
-
- * Added HipChatHandler to send logs to a HipChat chat room
- * Added ErrorLogHandler to send logs to PHP's error_log function
- * Added NewRelicHandler to send logs to NewRelic's service
- * Added Monolog\ErrorHandler helper class to register a Logger as exception/error/fatal handler
- * Added ChannelLevelActivationStrategy for the FingersCrossedHandler to customize levels by channel
- * Added stack traces output when normalizing exceptions (json output & co)
- * Added Monolog\Logger::API constant (currently 1)
- * Added support for ChromePHP's v4.0 extension
- * Added support for message priorities in PushoverHandler, see $highPriorityLevel and $emergencyLevel
- * Added support for sending messages to multiple users at once with the PushoverHandler
- * Fixed RavenHandler's support for batch sending of messages (when behind a Buffer or FingersCrossedHandler)
- * Fixed normalization of Traversables with very large data sets, only the first 1000 items are shown now
- * Fixed issue in RotatingFileHandler when an open_basedir restriction is active
- * Fixed minor issues in RavenHandler and bumped the API to Raven 0.5.0
- * Fixed SyslogHandler issue when many were used concurrently with different facilities
-
-### 1.5.0 (2013-04-23)
-
- * Added ProcessIdProcessor to inject the PID in log records
- * Added UidProcessor to inject a unique identifier to all log records of one request/run
- * Added support for previous exceptions in the LineFormatter exception serialization
- * Added Monolog\Logger::getLevels() to get all available levels
- * Fixed ChromePHPHandler so it avoids sending headers larger than Chrome can handle
-
-### 1.4.1 (2013-04-01)
-
- * Fixed exception formatting in the LineFormatter to be more minimalistic
- * Fixed RavenHandler's handling of context/extra data, requires Raven client >0.1.0
- * Fixed log rotation in RotatingFileHandler to work with long running scripts spanning multiple days
- * Fixed WebProcessor array access so it checks for data presence
- * Fixed Buffer, Group and FingersCrossed handlers to make use of their processors
-
-### 1.4.0 (2013-02-13)
-
- * Added RedisHandler to log to Redis via the Predis library or the phpredis extension
- * Added ZendMonitorHandler to log to the Zend Server monitor
- * Added the possibility to pass arrays of handlers and processors directly in the Logger constructor
- * Added `$useSSL` option to the PushoverHandler which is enabled by default
- * Fixed ChromePHPHandler and FirePHPHandler issue when multiple instances are used simultaneously
- * Fixed header injection capability in the NativeMailHandler
-
-### 1.3.1 (2013-01-11)
-
- * Fixed LogstashFormatter to be usable with stream handlers
- * Fixed GelfMessageFormatter levels on Windows
-
-### 1.3.0 (2013-01-08)
-
- * Added PSR-3 compliance, the `Monolog\Logger` class is now an instance of `Psr\Log\LoggerInterface`
- * Added PsrLogMessageProcessor that you can selectively enable for full PSR-3 compliance
- * Added LogstashFormatter (combine with SocketHandler or StreamHandler to send logs to Logstash)
- * Added PushoverHandler to send mobile notifications
- * Added CouchDBHandler and DoctrineCouchDBHandler
- * Added RavenHandler to send data to Sentry servers
- * Added support for the new MongoClient class in MongoDBHandler
- * Added microsecond precision to log records' timestamps
- * Added `$flushOnOverflow` param to BufferHandler to flush by batches instead of losing
- the oldest entries
- * Fixed normalization of objects with cyclic references
-
-### 1.2.1 (2012-08-29)
-
- * Added new $logopts arg to SyslogHandler to provide custom openlog options
- * Fixed fatal error in SyslogHandler
-
-### 1.2.0 (2012-08-18)
-
- * Added AmqpHandler (for use with AMQP servers)
- * Added CubeHandler
- * Added NativeMailerHandler::addHeader() to send custom headers in mails
- * Added the possibility to specify more than one recipient in NativeMailerHandler
- * Added the possibility to specify float timeouts in SocketHandler
- * Added NOTICE and EMERGENCY levels to conform with RFC 5424
- * Fixed the log records to use the php default timezone instead of UTC
- * Fixed BufferHandler not being flushed properly on PHP fatal errors
- * Fixed normalization of exotic resource types
- * Fixed the default format of the SyslogHandler to avoid duplicating datetimes in syslog
-
-### 1.1.0 (2012-04-23)
-
- * Added Monolog\Logger::isHandling() to check if a handler will
- handle the given log level
- * Added ChromePHPHandler
- * Added MongoDBHandler
- * Added GelfHandler (for use with Graylog2 servers)
- * Added SocketHandler (for use with syslog-ng for example)
- * Added NormalizerFormatter
- * Added the possibility to change the activation strategy of the FingersCrossedHandler
- * Added possibility to show microseconds in logs
- * Added `server` and `referer` to WebProcessor output
-
-### 1.0.2 (2011-10-24)
-
- * Fixed bug in IE with large response headers and FirePHPHandler
-
-### 1.0.1 (2011-08-25)
-
- * Added MemoryPeakUsageProcessor and MemoryUsageProcessor
- * Added Monolog\Logger::getName() to get a logger's channel name
-
-### 1.0.0 (2011-07-06)
-
- * Added IntrospectionProcessor to get info from where the logger was called
- * Fixed WebProcessor in CLI
-
-### 1.0.0-RC1 (2011-07-01)
-
- * Initial release
diff --git a/www/wiki/vendor/monolog/monolog/LICENSE b/www/wiki/vendor/monolog/monolog/LICENSE
deleted file mode 100644
index 16473219..00000000
--- a/www/wiki/vendor/monolog/monolog/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2011-2016 Jordi Boggiano
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/monolog/monolog/README.md b/www/wiki/vendor/monolog/monolog/README.md
deleted file mode 100644
index 7d8ade52..00000000
--- a/www/wiki/vendor/monolog/monolog/README.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# Monolog - Logging for PHP [![Build Status](https://img.shields.io/travis/Seldaek/monolog.svg)](https://travis-ci.org/Seldaek/monolog)
-
-[![Total Downloads](https://img.shields.io/packagist/dt/monolog/monolog.svg)](https://packagist.org/packages/monolog/monolog)
-[![Latest Stable Version](https://img.shields.io/packagist/v/monolog/monolog.svg)](https://packagist.org/packages/monolog/monolog)
-[![Reference Status](https://www.versioneye.com/php/monolog:monolog/reference_badge.svg)](https://www.versioneye.com/php/monolog:monolog/references)
-
-
-Monolog sends your logs to files, sockets, inboxes, databases and various
-web services. See the complete list of handlers below. Special handlers
-allow you to build advanced logging strategies.
-
-This library implements the [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)
-interface that you can type-hint against in your own libraries to keep
-a maximum of interoperability. You can also use it in your applications to
-make sure you can always use another compatible logger at a later time.
-As of 1.11.0 Monolog public APIs will also accept PSR-3 log levels.
-Internally Monolog still uses its own level scheme since it predates PSR-3.
-
-## Installation
-
-Install the latest version with
-
-```bash
-$ composer require monolog/monolog
-```
-
-## Basic Usage
-
-```php
-<?php
-
-use Monolog\Logger;
-use Monolog\Handler\StreamHandler;
-
-// create a log channel
-$log = new Logger('name');
-$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));
-
-// add records to the log
-$log->addWarning('Foo');
-$log->addError('Bar');
-```
-
-## Documentation
-
-- [Usage Instructions](doc/01-usage.md)
-- [Handlers, Formatters and Processors](doc/02-handlers-formatters-processors.md)
-- [Utility classes](doc/03-utilities.md)
-- [Extending Monolog](doc/04-extending.md)
-
-## Third Party Packages
-
-Third party handlers, formatters and processors are
-[listed in the wiki](https://github.com/Seldaek/monolog/wiki/Third-Party-Packages). You
-can also add your own there if you publish one.
-
-## About
-
-### Requirements
-
-- Monolog works with PHP 5.3 or above, and is also tested to work with HHVM.
-
-### Submitting bugs and feature requests
-
-Bugs and feature request are tracked on [GitHub](https://github.com/Seldaek/monolog/issues)
-
-### Framework Integrations
-
-- Frameworks and libraries using [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)
- can be used very easily with Monolog since it implements the interface.
-- [Symfony2](http://symfony.com) comes out of the box with Monolog.
-- [Silex](http://silex.sensiolabs.org/) comes out of the box with Monolog.
-- [Laravel 4 & 5](http://laravel.com/) come out of the box with Monolog.
-- [Lumen](http://lumen.laravel.com/) comes out of the box with Monolog.
-- [PPI](http://www.ppi.io/) comes out of the box with Monolog.
-- [CakePHP](http://cakephp.org/) is usable with Monolog via the [cakephp-monolog](https://github.com/jadb/cakephp-monolog) plugin.
-- [Slim](http://www.slimframework.com/) is usable with Monolog via the [Slim-Monolog](https://github.com/Flynsarmy/Slim-Monolog) log writer.
-- [XOOPS 2.6](http://xoops.org/) comes out of the box with Monolog.
-- [Aura.Web_Project](https://github.com/auraphp/Aura.Web_Project) comes out of the box with Monolog.
-- [Nette Framework](http://nette.org/en/) can be used with Monolog via [Kdyby/Monolog](https://github.com/Kdyby/Monolog) extension.
-- [Proton Micro Framework](https://github.com/alexbilbie/Proton) comes out of the box with Monolog.
-
-### Author
-
-Jordi Boggiano - <j.boggiano@seld.be> - <http://twitter.com/seldaek><br />
-See also the list of [contributors](https://github.com/Seldaek/monolog/contributors) which participated in this project.
-
-### License
-
-Monolog is licensed under the MIT License - see the `LICENSE` file for details
-
-### Acknowledgements
-
-This library is heavily inspired by Python's [Logbook](http://packages.python.org/Logbook/)
-library, although most concepts have been adjusted to fit to the PHP world.
diff --git a/www/wiki/vendor/monolog/monolog/composer.json b/www/wiki/vendor/monolog/monolog/composer.json
deleted file mode 100644
index f74b7b97..00000000
--- a/www/wiki/vendor/monolog/monolog/composer.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "name": "monolog/monolog",
- "description": "Sends your logs to files, sockets, inboxes, databases and various web services",
- "keywords": ["log", "logging", "psr-3"],
- "homepage": "http://github.com/Seldaek/monolog",
- "type": "library",
- "license": "MIT",
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "require": {
- "php": ">=5.3.0",
- "psr/log": "~1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.5",
- "graylog2/gelf-php": "~1.0",
- "sentry/sentry": "^0.13",
- "ruflin/elastica": ">=0.90 <3.0",
- "doctrine/couchdb": "~1.0@dev",
- "aws/aws-sdk-php": "^2.4.9 || ^3.0",
- "php-amqplib/php-amqplib": "~2.4",
- "swiftmailer/swiftmailer": "~5.3",
- "php-console/php-console": "^3.1.3",
- "phpunit/phpunit-mock-objects": "2.3.0",
- "jakub-onderka/php-parallel-lint": "0.9"
- },
- "_": "phpunit/phpunit-mock-objects required in 2.3.0 due to https://github.com/sebastianbergmann/phpunit-mock-objects/issues/223 - needs hhvm 3.8+ on travis",
- "suggest": {
- "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
- "sentry/sentry": "Allow sending log messages to a Sentry server",
- "doctrine/couchdb": "Allow sending log messages to a CouchDB server",
- "ruflin/elastica": "Allow sending log messages to an Elastic Search server",
- "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib",
- "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
- "ext-mongo": "Allow sending log messages to a MongoDB server",
- "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver",
- "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB",
- "rollbar/rollbar": "Allow sending log messages to Rollbar",
- "php-console/php-console": "Allow sending log messages to Google Chrome"
- },
- "autoload": {
- "psr-4": {"Monolog\\": "src/Monolog"}
- },
- "autoload-dev": {
- "psr-4": {"Monolog\\": "tests/Monolog"}
- },
- "provide": {
- "psr/log-implementation": "1.0.0"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
- "scripts": {
- "test": [
- "parallel-lint . --exclude vendor",
- "phpunit"
- ]
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/doc/01-usage.md b/www/wiki/vendor/monolog/monolog/doc/01-usage.md
deleted file mode 100644
index 8e2551f3..00000000
--- a/www/wiki/vendor/monolog/monolog/doc/01-usage.md
+++ /dev/null
@@ -1,231 +0,0 @@
-# Using Monolog
-
-- [Installation](#installation)
-- [Core Concepts](#core-concepts)
-- [Log Levels](#log-levels)
-- [Configuring a logger](#configuring-a-logger)
-- [Adding extra data in the records](#adding-extra-data-in-the-records)
-- [Leveraging channels](#leveraging-channels)
-- [Customizing the log format](#customizing-the-log-format)
-
-## Installation
-
-Monolog is available on Packagist ([monolog/monolog](http://packagist.org/packages/monolog/monolog))
-and as such installable via [Composer](http://getcomposer.org/).
-
-```bash
-composer require monolog/monolog
-```
-
-If you do not use Composer, you can grab the code from GitHub, and use any
-PSR-0 compatible autoloader (e.g. the [Symfony2 ClassLoader component](https://github.com/symfony/ClassLoader))
-to load Monolog classes.
-
-## Core Concepts
-
-Every `Logger` instance has a channel (name) and a stack of handlers. Whenever
-you add a record to the logger, it traverses the handler stack. Each handler
-decides whether it fully handled the record, and if so, the propagation of the
-record ends there.
-
-This allows for flexible logging setups, for example having a `StreamHandler` at
-the bottom of the stack that will log anything to disk, and on top of that add
-a `MailHandler` that will send emails only when an error message is logged.
-Handlers also have a `$bubble` property which defines whether they block the
-record or not if they handled it. In this example, setting the `MailHandler`'s
-`$bubble` argument to false means that records handled by the `MailHandler` will
-not propagate to the `StreamHandler` anymore.
-
-You can create many `Logger`s, each defining a channel (e.g.: db, request,
-router, ..) and each of them combining various handlers, which can be shared
-or not. The channel is reflected in the logs and allows you to easily see or
-filter records.
-
-Each Handler also has a Formatter, a default one with settings that make sense
-will be created if you don't set one. The formatters normalize and format
-incoming records so that they can be used by the handlers to output useful
-information.
-
-Custom severity levels are not available. Only the eight
-[RFC 5424](http://tools.ietf.org/html/rfc5424) levels (debug, info, notice,
-warning, error, critical, alert, emergency) are present for basic filtering
-purposes, but for sorting and other use cases that would require
-flexibility, you should add Processors to the Logger that can add extra
-information (tags, user ip, ..) to the records before they are handled.
-
-## Log Levels
-
-Monolog supports the logging levels described by [RFC 5424](http://tools.ietf.org/html/rfc5424).
-
-- **DEBUG** (100): Detailed debug information.
-
-- **INFO** (200): Interesting events. Examples: User logs in, SQL logs.
-
-- **NOTICE** (250): Normal but significant events.
-
-- **WARNING** (300): Exceptional occurrences that are not errors. Examples:
- Use of deprecated APIs, poor use of an API, undesirable things that are not
- necessarily wrong.
-
-- **ERROR** (400): Runtime errors that do not require immediate action but
- should typically be logged and monitored.
-
-- **CRITICAL** (500): Critical conditions. Example: Application component
- unavailable, unexpected exception.
-
-- **ALERT** (550): Action must be taken immediately. Example: Entire website
- down, database unavailable, etc. This should trigger the SMS alerts and wake
- you up.
-
-- **EMERGENCY** (600): Emergency: system is unusable.
-
-## Configuring a logger
-
-Here is a basic setup to log to a file and to firephp on the DEBUG level:
-
-```php
-<?php
-
-use Monolog\Logger;
-use Monolog\Handler\StreamHandler;
-use Monolog\Handler\FirePHPHandler;
-
-// Create the logger
-$logger = new Logger('my_logger');
-// Now add some handlers
-$logger->pushHandler(new StreamHandler(__DIR__.'/my_app.log', Logger::DEBUG));
-$logger->pushHandler(new FirePHPHandler());
-
-// You can now use your logger
-$logger->addInfo('My logger is now ready');
-```
-
-Let's explain it. The first step is to create the logger instance which will
-be used in your code. The argument is a channel name, which is useful when
-you use several loggers (see below for more details about it).
-
-The logger itself does not know how to handle a record. It delegates it to
-some handlers. The code above registers two handlers in the stack to allow
-handling records in two different ways.
-
-Note that the FirePHPHandler is called first as it is added on top of the
-stack. This allows you to temporarily add a logger with bubbling disabled if
-you want to override other configured loggers.
-
-> If you use Monolog standalone and are looking for an easy way to
-> configure many handlers, the [theorchard/monolog-cascade](https://github.com/theorchard/monolog-cascade)
-> can help you build complex logging configs via PHP arrays, yaml or json configs.
-
-## Adding extra data in the records
-
-Monolog provides two different ways to add extra informations along the simple
-textual message.
-
-### Using the logging context
-
-The first way is the context, allowing to pass an array of data along the
-record:
-
-```php
-<?php
-
-$logger->addInfo('Adding a new user', array('username' => 'Seldaek'));
-```
-
-Simple handlers (like the StreamHandler for instance) will simply format
-the array to a string but richer handlers can take advantage of the context
-(FirePHP is able to display arrays in pretty way for instance).
-
-### Using processors
-
-The second way is to add extra data for all records by using a processor.
-Processors can be any callable. They will get the record as parameter and
-must return it after having eventually changed the `extra` part of it. Let's
-write a processor adding some dummy data in the record:
-
-```php
-<?php
-
-$logger->pushProcessor(function ($record) {
- $record['extra']['dummy'] = 'Hello world!';
-
- return $record;
-});
-```
-
-Monolog provides some built-in processors that can be used in your project.
-Look at the [dedicated chapter](https://github.com/Seldaek/monolog/blob/master/doc/02-handlers-formatters-processors.md#processors) for the list.
-
-> Tip: processors can also be registered on a specific handler instead of
- the logger to apply only for this handler.
-
-## Leveraging channels
-
-Channels are a great way to identify to which part of the application a record
-is related. This is useful in big applications (and is leveraged by
-MonologBundle in Symfony2).
-
-Picture two loggers sharing a handler that writes to a single log file.
-Channels would allow you to identify the logger that issued every record.
-You can easily grep through the log files filtering this or that channel.
-
-```php
-<?php
-
-use Monolog\Logger;
-use Monolog\Handler\StreamHandler;
-use Monolog\Handler\FirePHPHandler;
-
-// Create some handlers
-$stream = new StreamHandler(__DIR__.'/my_app.log', Logger::DEBUG);
-$firephp = new FirePHPHandler();
-
-// Create the main logger of the app
-$logger = new Logger('my_logger');
-$logger->pushHandler($stream);
-$logger->pushHandler($firephp);
-
-// Create a logger for the security-related stuff with a different channel
-$securityLogger = new Logger('security');
-$securityLogger->pushHandler($stream);
-$securityLogger->pushHandler($firephp);
-
-// Or clone the first one to only change the channel
-$securityLogger = $logger->withName('security');
-```
-
-## Customizing the log format
-
-In Monolog it's easy to customize the format of the logs written into files,
-sockets, mails, databases and other handlers. Most of the handlers use the
-
-```php
-$record['formatted']
-```
-
-value to be automatically put into the log device. This value depends on the
-formatter settings. You can choose between predefined formatter classes or
-write your own (e.g. a multiline text file for human-readable output).
-
-To configure a predefined formatter class, just set it as the handler's field:
-
-```php
-// the default date format is "Y-m-d H:i:s"
-$dateFormat = "Y n j, g:i a";
-// the default output format is "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n"
-$output = "%datetime% > %level_name% > %message% %context% %extra%\n";
-// finally, create a formatter
-$formatter = new LineFormatter($output, $dateFormat);
-
-// Create a handler
-$stream = new StreamHandler(__DIR__.'/my_app.log', Logger::DEBUG);
-$stream->setFormatter($formatter);
-// bind it to a logger object
-$securityLogger = new Logger('security');
-$securityLogger->pushHandler($stream);
-```
-
-You may also reuse the same formatter between multiple handlers and share those
-handlers between multiple loggers.
-
-[Handlers, Formatters and Processors](02-handlers-formatters-processors.md) &rarr;
diff --git a/www/wiki/vendor/monolog/monolog/doc/02-handlers-formatters-processors.md b/www/wiki/vendor/monolog/monolog/doc/02-handlers-formatters-processors.md
deleted file mode 100644
index bea968ac..00000000
--- a/www/wiki/vendor/monolog/monolog/doc/02-handlers-formatters-processors.md
+++ /dev/null
@@ -1,157 +0,0 @@
-# Handlers, Formatters and Processors
-
-- [Handlers](#handlers)
- - [Log to files and syslog](#log-to-files-and-syslog)
- - [Send alerts and emails](#send-alerts-and-emails)
- - [Log specific servers and networked logging](#log-specific-servers-and-networked-logging)
- - [Logging in development](#logging-in-development)
- - [Log to databases](#log-to-databases)
- - [Wrappers / Special Handlers](#wrappers--special-handlers)
-- [Formatters](#formatters)
-- [Processors](#processors)
-- [Third Party Packages](#third-party-packages)
-
-## Handlers
-
-### Log to files and syslog
-
-- _StreamHandler_: Logs records into any PHP stream, use this for log files.
-- _RotatingFileHandler_: Logs records to a file and creates one logfile per day.
- It will also delete files older than `$maxFiles`. You should use
- [logrotate](http://linuxcommand.org/man_pages/logrotate8.html) for high profile
- setups though, this is just meant as a quick and dirty solution.
-- _SyslogHandler_: Logs records to the syslog.
-- _ErrorLogHandler_: Logs records to PHP's
- [`error_log()`](http://docs.php.net/manual/en/function.error-log.php) function.
-
-### Send alerts and emails
-
-- _NativeMailerHandler_: Sends emails using PHP's
- [`mail()`](http://php.net/manual/en/function.mail.php) function.
-- _SwiftMailerHandler_: Sends emails using a [`Swift_Mailer`](http://swiftmailer.org/) instance.
-- _PushoverHandler_: Sends mobile notifications via the [Pushover](https://www.pushover.net/) API.
-- _HipChatHandler_: Logs records to a [HipChat](http://hipchat.com) chat room using its API.
-- _FlowdockHandler_: Logs records to a [Flowdock](https://www.flowdock.com/) account.
-- _SlackHandler_: Logs records to a [Slack](https://www.slack.com/) account using the Slack API.
-- _SlackbotHandler_: Logs records to a [Slack](https://www.slack.com/) account using the Slackbot incoming hook.
-- _SlackWebhookHandler_: Logs records to a [Slack](https://www.slack.com/) account using Slack Webhooks.
-- _MandrillHandler_: Sends emails via the Mandrill API using a [`Swift_Message`](http://swiftmailer.org/) instance.
-- _FleepHookHandler_: Logs records to a [Fleep](https://fleep.io/) conversation using Webhooks.
-- _IFTTTHandler_: Notifies an [IFTTT](https://ifttt.com/maker) trigger with the log channel, level name and message.
-
-### Log specific servers and networked logging
-
-- _SocketHandler_: Logs records to [sockets](http://php.net/fsockopen), use this
- for UNIX and TCP sockets. See an [example](sockets.md).
-- _AmqpHandler_: Logs records to an [amqp](http://www.amqp.org/) compatible
- server. Requires the [php-amqp](http://pecl.php.net/package/amqp) extension (1.0+).
-- _GelfHandler_: Logs records to a [Graylog2](http://www.graylog2.org) server.
-- _CubeHandler_: Logs records to a [Cube](http://square.github.com/cube/) server.
-- _RavenHandler_: Logs records to a [Sentry](http://getsentry.com/) server using
- [raven](https://packagist.org/packages/raven/raven).
-- _ZendMonitorHandler_: Logs records to the Zend Monitor present in Zend Server.
-- _NewRelicHandler_: Logs records to a [NewRelic](http://newrelic.com/) application.
-- _LogglyHandler_: Logs records to a [Loggly](http://www.loggly.com/) account.
-- _RollbarHandler_: Logs records to a [Rollbar](https://rollbar.com/) account.
-- _SyslogUdpHandler_: Logs records to a remote [Syslogd](http://www.rsyslog.com/) server.
-- _LogEntriesHandler_: Logs records to a [LogEntries](http://logentries.com/) account.
-
-### Logging in development
-
-- _FirePHPHandler_: Handler for [FirePHP](http://www.firephp.org/), providing
- inline `console` messages within [FireBug](http://getfirebug.com/).
-- _ChromePHPHandler_: Handler for [ChromePHP](http://www.chromephp.com/), providing
- inline `console` messages within Chrome.
-- _BrowserConsoleHandler_: Handler to send logs to browser's Javascript `console` with
- no browser extension required. Most browsers supporting `console` API are supported.
-- _PHPConsoleHandler_: Handler for [PHP Console](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef), providing
- inline `console` and notification popup messages within Chrome.
-
-### Log to databases
-
-- _RedisHandler_: Logs records to a [redis](http://redis.io) server.
-- _MongoDBHandler_: Handler to write records in MongoDB via a
- [Mongo](http://pecl.php.net/package/mongo) extension connection.
-- _CouchDBHandler_: Logs records to a CouchDB server.
-- _DoctrineCouchDBHandler_: Logs records to a CouchDB server via the Doctrine CouchDB ODM.
-- _ElasticSearchHandler_: Logs records to an Elastic Search server.
-- _DynamoDbHandler_: Logs records to a DynamoDB table with the [AWS SDK](https://github.com/aws/aws-sdk-php).
-
-### Wrappers / Special Handlers
-
-- _FingersCrossedHandler_: A very interesting wrapper. It takes a logger as
- parameter and will accumulate log records of all levels until a record
- exceeds the defined severity level. At which point it delivers all records,
- including those of lower severity, to the handler it wraps. This means that
- until an error actually happens you will not see anything in your logs, but
- when it happens you will have the full information, including debug and info
- records. This provides you with all the information you need, but only when
- you need it.
-- _DeduplicationHandler_: Useful if you are sending notifications or emails
- when critical errors occur. It takes a logger as parameter and will
- accumulate log records of all levels until the end of the request (or
- `flush()` is called). At that point it delivers all records to the handler
- it wraps, but only if the records are unique over a given time period
- (60seconds by default). If the records are duplicates they are simply
- discarded. The main use of this is in case of critical failure like if your
- database is unreachable for example all your requests will fail and that
- can result in a lot of notifications being sent. Adding this handler reduces
- the amount of notifications to a manageable level.
-- _WhatFailureGroupHandler_: This handler extends the _GroupHandler_ ignoring
- exceptions raised by each child handler. This allows you to ignore issues
- where a remote tcp connection may have died but you do not want your entire
- application to crash and may wish to continue to log to other handlers.
-- _BufferHandler_: This handler will buffer all the log records it receives
- until `close()` is called at which point it will call `handleBatch()` on the
- handler it wraps with all the log messages at once. This is very useful to
- send an email with all records at once for example instead of having one mail
- for every log record.
-- _GroupHandler_: This handler groups other handlers. Every record received is
- sent to all the handlers it is configured with.
-- _FilterHandler_: This handler only lets records of the given levels through
- to the wrapped handler.
-- _SamplingHandler_: Wraps around another handler and lets you sample records
- if you only want to store some of them.
-- _NullHandler_: Any record it can handle will be thrown away. This can be used
- to put on top of an existing handler stack to disable it temporarily.
-- _PsrHandler_: Can be used to forward log records to an existing PSR-3 logger
-- _TestHandler_: Used for testing, it records everything that is sent to it and
- has accessors to read out the information.
-- _HandlerWrapper_: A simple handler wrapper you can inherit from to create
- your own wrappers easily.
-
-## Formatters
-
-- _LineFormatter_: Formats a log record into a one-line string.
-- _HtmlFormatter_: Used to format log records into a human readable html table, mainly suitable for emails.
-- _NormalizerFormatter_: Normalizes objects/resources down to strings so a record can easily be serialized/encoded.
-- _ScalarFormatter_: Used to format log records into an associative array of scalar values.
-- _JsonFormatter_: Encodes a log record into json.
-- _WildfireFormatter_: Used to format log records into the Wildfire/FirePHP protocol, only useful for the FirePHPHandler.
-- _ChromePHPFormatter_: Used to format log records into the ChromePHP format, only useful for the ChromePHPHandler.
-- _GelfMessageFormatter_: Used to format log records into Gelf message instances, only useful for the GelfHandler.
-- _LogstashFormatter_: Used to format log records into [logstash](http://logstash.net/) event json, useful for any handler listed under inputs [here](http://logstash.net/docs/latest).
-- _ElasticaFormatter_: Used to format log records into an Elastica\Document object, only useful for the ElasticSearchHandler.
-- _LogglyFormatter_: Used to format log records into Loggly messages, only useful for the LogglyHandler.
-- _FlowdockFormatter_: Used to format log records into Flowdock messages, only useful for the FlowdockHandler.
-- _MongoDBFormatter_: Converts \DateTime instances to \MongoDate and objects recursively to arrays, only useful with the MongoDBHandler.
-
-## Processors
-
-- _PsrLogMessageProcessor_: Processes a log record's message according to PSR-3 rules, replacing `{foo}` with the value from `$context['foo']`.
-- _IntrospectionProcessor_: Adds the line/file/class/method from which the log call originated.
-- _WebProcessor_: Adds the current request URI, request method and client IP to a log record.
-- _MemoryUsageProcessor_: Adds the current memory usage to a log record.
-- _MemoryPeakUsageProcessor_: Adds the peak memory usage to a log record.
-- _ProcessIdProcessor_: Adds the process id to a log record.
-- _UidProcessor_: Adds a unique identifier to a log record.
-- _GitProcessor_: Adds the current git branch and commit to a log record.
-- _TagProcessor_: Adds an array of predefined tags to a log record.
-
-## Third Party Packages
-
-Third party handlers, formatters and processors are
-[listed in the wiki](https://github.com/Seldaek/monolog/wiki/Third-Party-Packages). You
-can also add your own there if you publish one.
-
-&larr; [Usage](01-usage.md) | [Utility classes](03-utilities.md) &rarr;
diff --git a/www/wiki/vendor/monolog/monolog/doc/03-utilities.md b/www/wiki/vendor/monolog/monolog/doc/03-utilities.md
deleted file mode 100644
index c62aa416..00000000
--- a/www/wiki/vendor/monolog/monolog/doc/03-utilities.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Utilities
-
-- _Registry_: The `Monolog\Registry` class lets you configure global loggers that you
- can then statically access from anywhere. It is not really a best practice but can
- help in some older codebases or for ease of use.
-- _ErrorHandler_: The `Monolog\ErrorHandler` class allows you to easily register
- a Logger instance as an exception handler, error handler or fatal error handler.
-- _ErrorLevelActivationStrategy_: Activates a FingersCrossedHandler when a certain log
- level is reached.
-- _ChannelLevelActivationStrategy_: Activates a FingersCrossedHandler when a certain
- log level is reached, depending on which channel received the log record.
-
-&larr; [Handlers, Formatters and Processors](02-handlers-formatters-processors.md) | [Extending Monolog](04-extending.md) &rarr;
diff --git a/www/wiki/vendor/monolog/monolog/doc/04-extending.md b/www/wiki/vendor/monolog/monolog/doc/04-extending.md
deleted file mode 100644
index ebd9104d..00000000
--- a/www/wiki/vendor/monolog/monolog/doc/04-extending.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# Extending Monolog
-
-Monolog is fully extensible, allowing you to adapt your logger to your needs.
-
-## Writing your own handler
-
-Monolog provides many built-in handlers. But if the one you need does not
-exist, you can write it and use it in your logger. The only requirement is
-to implement `Monolog\Handler\HandlerInterface`.
-
-Let's write a PDOHandler to log records to a database. We will extend the
-abstract class provided by Monolog to keep things DRY.
-
-```php
-<?php
-
-use Monolog\Logger;
-use Monolog\Handler\AbstractProcessingHandler;
-
-class PDOHandler extends AbstractProcessingHandler
-{
- private $initialized = false;
- private $pdo;
- private $statement;
-
- public function __construct(PDO $pdo, $level = Logger::DEBUG, $bubble = true)
- {
- $this->pdo = $pdo;
- parent::__construct($level, $bubble);
- }
-
- protected function write(array $record)
- {
- if (!$this->initialized) {
- $this->initialize();
- }
-
- $this->statement->execute(array(
- 'channel' => $record['channel'],
- 'level' => $record['level'],
- 'message' => $record['formatted'],
- 'time' => $record['datetime']->format('U'),
- ));
- }
-
- private function initialize()
- {
- $this->pdo->exec(
- 'CREATE TABLE IF NOT EXISTS monolog '
- .'(channel VARCHAR(255), level INTEGER, message LONGTEXT, time INTEGER UNSIGNED)'
- );
- $this->statement = $this->pdo->prepare(
- 'INSERT INTO monolog (channel, level, message, time) VALUES (:channel, :level, :message, :time)'
- );
-
- $this->initialized = true;
- }
-}
-```
-
-You can now use this handler in your logger:
-
-```php
-<?php
-
-$logger->pushHandler(new PDOHandler(new PDO('sqlite:logs.sqlite')));
-
-// You can now use your logger
-$logger->addInfo('My logger is now ready');
-```
-
-The `Monolog\Handler\AbstractProcessingHandler` class provides most of the
-logic needed for the handler, including the use of processors and the formatting
-of the record (which is why we use ``$record['formatted']`` instead of ``$record['message']``).
-
-&larr; [Utility classes](03-utilities.md)
diff --git a/www/wiki/vendor/monolog/monolog/doc/sockets.md b/www/wiki/vendor/monolog/monolog/doc/sockets.md
deleted file mode 100644
index ea9cf0ea..00000000
--- a/www/wiki/vendor/monolog/monolog/doc/sockets.md
+++ /dev/null
@@ -1,39 +0,0 @@
-Sockets Handler
-===============
-
-This handler allows you to write your logs to sockets using [fsockopen](http://php.net/fsockopen)
-or [pfsockopen](http://php.net/pfsockopen).
-
-Persistent sockets are mainly useful in web environments where you gain some performance not closing/opening
-the connections between requests.
-
-You can use a `unix://` prefix to access unix sockets and `udp://` to open UDP sockets instead of the default TCP.
-
-Basic Example
--------------
-
-```php
-<?php
-
-use Monolog\Logger;
-use Monolog\Handler\SocketHandler;
-
-// Create the logger
-$logger = new Logger('my_logger');
-
-// Create the handler
-$handler = new SocketHandler('unix:///var/log/httpd_app_log.socket');
-$handler->setPersistent(true);
-
-// Now add the handler
-$logger->pushHandler($handler, Logger::DEBUG);
-
-// You can now use your logger
-$logger->addInfo('My logger is now ready');
-
-```
-
-In this example, using syslog-ng, you should see the log on the log server:
-
- cweb1 [2012-02-26 00:12:03] my_logger.INFO: My logger is now ready [] []
-
diff --git a/www/wiki/vendor/monolog/monolog/phpunit.xml.dist b/www/wiki/vendor/monolog/monolog/phpunit.xml.dist
deleted file mode 100644
index 20d82b63..00000000
--- a/www/wiki/vendor/monolog/monolog/phpunit.xml.dist
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit bootstrap="vendor/autoload.php" colors="true">
- <testsuites>
- <testsuite name="Monolog Test Suite">
- <directory>tests/Monolog/</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist>
- <directory suffix=".php">src/Monolog/</directory>
- </whitelist>
- </filter>
-
- <php>
- <ini name="date.timezone" value="UTC"/>
- </php>
-</phpunit>
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/ErrorHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/ErrorHandler.php
deleted file mode 100644
index 7bfcd833..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/ErrorHandler.php
+++ /dev/null
@@ -1,230 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-use Psr\Log\LoggerInterface;
-use Psr\Log\LogLevel;
-use Monolog\Handler\AbstractHandler;
-
-/**
- * Monolog error handler
- *
- * A facility to enable logging of runtime errors, exceptions and fatal errors.
- *
- * Quick setup: <code>ErrorHandler::register($logger);</code>
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class ErrorHandler
-{
- private $logger;
-
- private $previousExceptionHandler;
- private $uncaughtExceptionLevel;
-
- private $previousErrorHandler;
- private $errorLevelMap;
- private $handleOnlyReportedErrors;
-
- private $hasFatalErrorHandler;
- private $fatalLevel;
- private $reservedMemory;
- private static $fatalErrors = array(E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR);
-
- public function __construct(LoggerInterface $logger)
- {
- $this->logger = $logger;
- }
-
- /**
- * Registers a new ErrorHandler for a given Logger
- *
- * By default it will handle errors, exceptions and fatal errors
- *
- * @param LoggerInterface $logger
- * @param array|false $errorLevelMap an array of E_* constant to LogLevel::* constant mapping, or false to disable error handling
- * @param int|false $exceptionLevel a LogLevel::* constant, or false to disable exception handling
- * @param int|false $fatalLevel a LogLevel::* constant, or false to disable fatal error handling
- * @return ErrorHandler
- */
- public static function register(LoggerInterface $logger, $errorLevelMap = array(), $exceptionLevel = null, $fatalLevel = null)
- {
- //Forces the autoloader to run for LogLevel. Fixes an autoload issue at compile-time on PHP5.3. See https://github.com/Seldaek/monolog/pull/929
- class_exists('\\Psr\\Log\\LogLevel', true);
-
- $handler = new static($logger);
- if ($errorLevelMap !== false) {
- $handler->registerErrorHandler($errorLevelMap);
- }
- if ($exceptionLevel !== false) {
- $handler->registerExceptionHandler($exceptionLevel);
- }
- if ($fatalLevel !== false) {
- $handler->registerFatalHandler($fatalLevel);
- }
-
- return $handler;
- }
-
- public function registerExceptionHandler($level = null, $callPrevious = true)
- {
- $prev = set_exception_handler(array($this, 'handleException'));
- $this->uncaughtExceptionLevel = $level;
- if ($callPrevious && $prev) {
- $this->previousExceptionHandler = $prev;
- }
- }
-
- public function registerErrorHandler(array $levelMap = array(), $callPrevious = true, $errorTypes = -1, $handleOnlyReportedErrors = true)
- {
- $prev = set_error_handler(array($this, 'handleError'), $errorTypes);
- $this->errorLevelMap = array_replace($this->defaultErrorLevelMap(), $levelMap);
- if ($callPrevious) {
- $this->previousErrorHandler = $prev ?: true;
- }
-
- $this->handleOnlyReportedErrors = $handleOnlyReportedErrors;
- }
-
- public function registerFatalHandler($level = null, $reservedMemorySize = 20)
- {
- register_shutdown_function(array($this, 'handleFatalError'));
-
- $this->reservedMemory = str_repeat(' ', 1024 * $reservedMemorySize);
- $this->fatalLevel = $level;
- $this->hasFatalErrorHandler = true;
- }
-
- protected function defaultErrorLevelMap()
- {
- return array(
- E_ERROR => LogLevel::CRITICAL,
- E_WARNING => LogLevel::WARNING,
- E_PARSE => LogLevel::ALERT,
- E_NOTICE => LogLevel::NOTICE,
- E_CORE_ERROR => LogLevel::CRITICAL,
- E_CORE_WARNING => LogLevel::WARNING,
- E_COMPILE_ERROR => LogLevel::ALERT,
- E_COMPILE_WARNING => LogLevel::WARNING,
- E_USER_ERROR => LogLevel::ERROR,
- E_USER_WARNING => LogLevel::WARNING,
- E_USER_NOTICE => LogLevel::NOTICE,
- E_STRICT => LogLevel::NOTICE,
- E_RECOVERABLE_ERROR => LogLevel::ERROR,
- E_DEPRECATED => LogLevel::NOTICE,
- E_USER_DEPRECATED => LogLevel::NOTICE,
- );
- }
-
- /**
- * @private
- */
- public function handleException($e)
- {
- $this->logger->log(
- $this->uncaughtExceptionLevel === null ? LogLevel::ERROR : $this->uncaughtExceptionLevel,
- sprintf('Uncaught Exception %s: "%s" at %s line %s', get_class($e), $e->getMessage(), $e->getFile(), $e->getLine()),
- array('exception' => $e)
- );
-
- if ($this->previousExceptionHandler) {
- call_user_func($this->previousExceptionHandler, $e);
- }
-
- exit(255);
- }
-
- /**
- * @private
- */
- public function handleError($code, $message, $file = '', $line = 0, $context = array())
- {
- if ($this->handleOnlyReportedErrors && !(error_reporting() & $code)) {
- return;
- }
-
- // fatal error codes are ignored if a fatal error handler is present as well to avoid duplicate log entries
- if (!$this->hasFatalErrorHandler || !in_array($code, self::$fatalErrors, true)) {
- $level = isset($this->errorLevelMap[$code]) ? $this->errorLevelMap[$code] : LogLevel::CRITICAL;
- $this->logger->log($level, self::codeToString($code).': '.$message, array('code' => $code, 'message' => $message, 'file' => $file, 'line' => $line));
- }
-
- if ($this->previousErrorHandler === true) {
- return false;
- } elseif ($this->previousErrorHandler) {
- return call_user_func($this->previousErrorHandler, $code, $message, $file, $line, $context);
- }
- }
-
- /**
- * @private
- */
- public function handleFatalError()
- {
- $this->reservedMemory = null;
-
- $lastError = error_get_last();
- if ($lastError && in_array($lastError['type'], self::$fatalErrors, true)) {
- $this->logger->log(
- $this->fatalLevel === null ? LogLevel::ALERT : $this->fatalLevel,
- 'Fatal Error ('.self::codeToString($lastError['type']).'): '.$lastError['message'],
- array('code' => $lastError['type'], 'message' => $lastError['message'], 'file' => $lastError['file'], 'line' => $lastError['line'])
- );
-
- if ($this->logger instanceof Logger) {
- foreach ($this->logger->getHandlers() as $handler) {
- if ($handler instanceof AbstractHandler) {
- $handler->close();
- }
- }
- }
- }
- }
-
- private static function codeToString($code)
- {
- switch ($code) {
- case E_ERROR:
- return 'E_ERROR';
- case E_WARNING:
- return 'E_WARNING';
- case E_PARSE:
- return 'E_PARSE';
- case E_NOTICE:
- return 'E_NOTICE';
- case E_CORE_ERROR:
- return 'E_CORE_ERROR';
- case E_CORE_WARNING:
- return 'E_CORE_WARNING';
- case E_COMPILE_ERROR:
- return 'E_COMPILE_ERROR';
- case E_COMPILE_WARNING:
- return 'E_COMPILE_WARNING';
- case E_USER_ERROR:
- return 'E_USER_ERROR';
- case E_USER_WARNING:
- return 'E_USER_WARNING';
- case E_USER_NOTICE:
- return 'E_USER_NOTICE';
- case E_STRICT:
- return 'E_STRICT';
- case E_RECOVERABLE_ERROR:
- return 'E_RECOVERABLE_ERROR';
- case E_DEPRECATED:
- return 'E_DEPRECATED';
- case E_USER_DEPRECATED:
- return 'E_USER_DEPRECATED';
- }
-
- return 'Unknown PHP error';
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php
deleted file mode 100644
index 9beda1e7..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-
-/**
- * Formats a log message according to the ChromePHP array format
- *
- * @author Christophe Coevoet <stof@notk.org>
- */
-class ChromePHPFormatter implements FormatterInterface
-{
- /**
- * Translates Monolog log levels to Wildfire levels.
- */
- private $logLevels = array(
- Logger::DEBUG => 'log',
- Logger::INFO => 'info',
- Logger::NOTICE => 'info',
- Logger::WARNING => 'warn',
- Logger::ERROR => 'error',
- Logger::CRITICAL => 'error',
- Logger::ALERT => 'error',
- Logger::EMERGENCY => 'error',
- );
-
- /**
- * {@inheritdoc}
- */
- public function format(array $record)
- {
- // Retrieve the line and file if set and remove them from the formatted extra
- $backtrace = 'unknown';
- if (isset($record['extra']['file'], $record['extra']['line'])) {
- $backtrace = $record['extra']['file'].' : '.$record['extra']['line'];
- unset($record['extra']['file'], $record['extra']['line']);
- }
-
- $message = array('message' => $record['message']);
- if ($record['context']) {
- $message['context'] = $record['context'];
- }
- if ($record['extra']) {
- $message['extra'] = $record['extra'];
- }
- if (count($message) === 1) {
- $message = reset($message);
- }
-
- return array(
- $record['channel'],
- $message,
- $backtrace,
- $this->logLevels[$record['level']],
- );
- }
-
- public function formatBatch(array $records)
- {
- $formatted = array();
-
- foreach ($records as $record) {
- $formatted[] = $this->format($record);
- }
-
- return $formatted;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php
deleted file mode 100644
index 4c556cf1..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Elastica\Document;
-
-/**
- * Format a log message into an Elastica Document
- *
- * @author Jelle Vink <jelle.vink@gmail.com>
- */
-class ElasticaFormatter extends NormalizerFormatter
-{
- /**
- * @var string Elastic search index name
- */
- protected $index;
-
- /**
- * @var string Elastic search document type
- */
- protected $type;
-
- /**
- * @param string $index Elastic Search index name
- * @param string $type Elastic Search document type
- */
- public function __construct($index, $type)
- {
- // elasticsearch requires a ISO 8601 format date with optional millisecond precision.
- parent::__construct('Y-m-d\TH:i:s.uP');
-
- $this->index = $index;
- $this->type = $type;
- }
-
- /**
- * {@inheritdoc}
- */
- public function format(array $record)
- {
- $record = parent::format($record);
-
- return $this->getDocument($record);
- }
-
- /**
- * Getter index
- * @return string
- */
- public function getIndex()
- {
- return $this->index;
- }
-
- /**
- * Getter type
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Convert a log message into an Elastica Document
- *
- * @param array $record Log message
- * @return Document
- */
- protected function getDocument($record)
- {
- $document = new Document();
- $document->setData($record);
- $document->setType($this->type);
- $document->setIndex($this->index);
-
- return $document;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php
deleted file mode 100644
index 5094af3c..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * formats the record to be used in the FlowdockHandler
- *
- * @author Dominik Liebler <liebler.dominik@gmail.com>
- */
-class FlowdockFormatter implements FormatterInterface
-{
- /**
- * @var string
- */
- private $source;
-
- /**
- * @var string
- */
- private $sourceEmail;
-
- /**
- * @param string $source
- * @param string $sourceEmail
- */
- public function __construct($source, $sourceEmail)
- {
- $this->source = $source;
- $this->sourceEmail = $sourceEmail;
- }
-
- /**
- * {@inheritdoc}
- */
- public function format(array $record)
- {
- $tags = array(
- '#logs',
- '#' . strtolower($record['level_name']),
- '#' . $record['channel'],
- );
-
- foreach ($record['extra'] as $value) {
- $tags[] = '#' . $value;
- }
-
- $subject = sprintf(
- 'in %s: %s - %s',
- $this->source,
- $record['level_name'],
- $this->getShortMessage($record['message'])
- );
-
- $record['flowdock'] = array(
- 'source' => $this->source,
- 'from_address' => $this->sourceEmail,
- 'subject' => $subject,
- 'content' => $record['message'],
- 'tags' => $tags,
- 'project' => $this->source,
- );
-
- return $record;
- }
-
- /**
- * {@inheritdoc}
- */
- public function formatBatch(array $records)
- {
- $formatted = array();
-
- foreach ($records as $record) {
- $formatted[] = $this->format($record);
- }
-
- return $formatted;
- }
-
- /**
- * @param string $message
- *
- * @return string
- */
- public function getShortMessage($message)
- {
- static $hasMbString;
-
- if (null === $hasMbString) {
- $hasMbString = function_exists('mb_strlen');
- }
-
- $maxLength = 45;
-
- if ($hasMbString) {
- if (mb_strlen($message, 'UTF-8') > $maxLength) {
- $message = mb_substr($message, 0, $maxLength - 4, 'UTF-8') . ' ...';
- }
- } else {
- if (strlen($message) > $maxLength) {
- $message = substr($message, 0, $maxLength - 4) . ' ...';
- }
- }
-
- return $message;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php
deleted file mode 100644
index 02632bb5..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * Class FluentdFormatter
- *
- * Serializes a log message to Fluentd unix socket protocol
- *
- * Fluentd config:
- *
- * <source>
- * type unix
- * path /var/run/td-agent/td-agent.sock
- * </source>
- *
- * Monolog setup:
- *
- * $logger = new Monolog\Logger('fluent.tag');
- * $fluentHandler = new Monolog\Handler\SocketHandler('unix:///var/run/td-agent/td-agent.sock');
- * $fluentHandler->setFormatter(new Monolog\Formatter\FluentdFormatter());
- * $logger->pushHandler($fluentHandler);
- *
- * @author Andrius Putna <fordnox@gmail.com>
- */
-class FluentdFormatter implements FormatterInterface
-{
- /**
- * @var bool $levelTag should message level be a part of the fluentd tag
- */
- protected $levelTag = false;
-
- public function __construct($levelTag = false)
- {
- if (!function_exists('json_encode')) {
- throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s FluentdUnixFormatter');
- }
-
- $this->levelTag = (bool) $levelTag;
- }
-
- public function isUsingLevelsInTag()
- {
- return $this->levelTag;
- }
-
- public function format(array $record)
- {
- $tag = $record['channel'];
- if ($this->levelTag) {
- $tag .= '.' . strtolower($record['level_name']);
- }
-
- $message = array(
- 'message' => $record['message'],
- 'extra' => $record['extra'],
- );
-
- if (!$this->levelTag) {
- $message['level'] = $record['level'];
- $message['level_name'] = $record['level_name'];
- }
-
- return json_encode(array($tag, $record['datetime']->getTimestamp(), $message));
- }
-
- public function formatBatch(array $records)
- {
- $message = '';
- foreach ($records as $record) {
- $message .= $this->format($record);
- }
-
- return $message;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php
deleted file mode 100644
index b5de7511..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * Interface for formatters
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-interface FormatterInterface
-{
- /**
- * Formats a log record.
- *
- * @param array $record A record to format
- * @return mixed The formatted record
- */
- public function format(array $record);
-
- /**
- * Formats a set of log records.
- *
- * @param array $records A set of records to format
- * @return mixed The formatted set of records
- */
- public function formatBatch(array $records);
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php
deleted file mode 100644
index 64e76652..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php
+++ /dev/null
@@ -1,137 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-use Gelf\Message;
-
-/**
- * Serializes a log message to GELF
- * @see http://www.graylog2.org/about/gelf
- *
- * @author Matt Lehner <mlehner@gmail.com>
- */
-class GelfMessageFormatter extends NormalizerFormatter
-{
- const MAX_LENGTH = 32766;
-
- /**
- * @var string the name of the system for the Gelf log message
- */
- protected $systemName;
-
- /**
- * @var string a prefix for 'extra' fields from the Monolog record (optional)
- */
- protected $extraPrefix;
-
- /**
- * @var string a prefix for 'context' fields from the Monolog record (optional)
- */
- protected $contextPrefix;
-
- /**
- * Translates Monolog log levels to Graylog2 log priorities.
- */
- private $logLevels = array(
- Logger::DEBUG => 7,
- Logger::INFO => 6,
- Logger::NOTICE => 5,
- Logger::WARNING => 4,
- Logger::ERROR => 3,
- Logger::CRITICAL => 2,
- Logger::ALERT => 1,
- Logger::EMERGENCY => 0,
- );
-
- public function __construct($systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_')
- {
- parent::__construct('U.u');
-
- $this->systemName = $systemName ?: gethostname();
-
- $this->extraPrefix = $extraPrefix;
- $this->contextPrefix = $contextPrefix;
- }
-
- /**
- * {@inheritdoc}
- */
- public function format(array $record)
- {
- $record = parent::format($record);
-
- if (!isset($record['datetime'], $record['message'], $record['level'])) {
- throw new \InvalidArgumentException('The record should at least contain datetime, message and level keys, '.var_export($record, true).' given');
- }
-
- $message = new Message();
- $message
- ->setTimestamp($record['datetime'])
- ->setShortMessage((string) $record['message'])
- ->setHost($this->systemName)
- ->setLevel($this->logLevels[$record['level']]);
-
- // start count with message length + system name length + 200 for padding / metadata
- $len = 200 + strlen((string) $record['message']) + strlen($this->systemName);
-
- if ($len > self::MAX_LENGTH) {
- $message->setShortMessage(substr($record['message'], 0, self::MAX_LENGTH - 200));
-
- return $message;
- }
-
- if (isset($record['channel'])) {
- $message->setFacility($record['channel']);
- $len += strlen($record['channel']);
- }
- if (isset($record['extra']['line'])) {
- $message->setLine($record['extra']['line']);
- $len += 10;
- unset($record['extra']['line']);
- }
- if (isset($record['extra']['file'])) {
- $message->setFile($record['extra']['file']);
- $len += strlen($record['extra']['file']);
- unset($record['extra']['file']);
- }
-
- foreach ($record['extra'] as $key => $val) {
- $val = is_scalar($val) || null === $val ? $val : $this->toJson($val);
- $len += strlen($this->extraPrefix . $key . $val);
- if ($len > self::MAX_LENGTH) {
- $message->setAdditional($this->extraPrefix . $key, substr($val, 0, self::MAX_LENGTH - $len));
- break;
- }
- $message->setAdditional($this->extraPrefix . $key, $val);
- }
-
- foreach ($record['context'] as $key => $val) {
- $val = is_scalar($val) || null === $val ? $val : $this->toJson($val);
- $len += strlen($this->contextPrefix . $key . $val);
- if ($len > self::MAX_LENGTH) {
- $message->setAdditional($this->contextPrefix . $key, substr($val, 0, self::MAX_LENGTH - $len));
- break;
- }
- $message->setAdditional($this->contextPrefix . $key, $val);
- }
-
- if (null === $message->getFile() && isset($record['context']['exception']['file'])) {
- if (preg_match("/^(.+):([0-9]+)$/", $record['context']['exception']['file'], $matches)) {
- $message->setFile($matches[1]);
- $message->setLine($matches[2]);
- }
- }
-
- return $message;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php
deleted file mode 100644
index 3eec95f6..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php
+++ /dev/null
@@ -1,141 +0,0 @@
-<?php
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-
-/**
- * Formats incoming records into an HTML table
- *
- * This is especially useful for html email logging
- *
- * @author Tiago Brito <tlfbrito@gmail.com>
- */
-class HtmlFormatter extends NormalizerFormatter
-{
- /**
- * Translates Monolog log levels to html color priorities.
- */
- protected $logLevels = array(
- Logger::DEBUG => '#cccccc',
- Logger::INFO => '#468847',
- Logger::NOTICE => '#3a87ad',
- Logger::WARNING => '#c09853',
- Logger::ERROR => '#f0ad4e',
- Logger::CRITICAL => '#FF7708',
- Logger::ALERT => '#C12A19',
- Logger::EMERGENCY => '#000000',
- );
-
- /**
- * @param string $dateFormat The format of the timestamp: one supported by DateTime::format
- */
- public function __construct($dateFormat = null)
- {
- parent::__construct($dateFormat);
- }
-
- /**
- * Creates an HTML table row
- *
- * @param string $th Row header content
- * @param string $td Row standard cell content
- * @param bool $escapeTd false if td content must not be html escaped
- * @return string
- */
- protected function addRow($th, $td = ' ', $escapeTd = true)
- {
- $th = htmlspecialchars($th, ENT_NOQUOTES, 'UTF-8');
- if ($escapeTd) {
- $td = '<pre>'.htmlspecialchars($td, ENT_NOQUOTES, 'UTF-8').'</pre>';
- }
-
- return "<tr style=\"padding: 4px;spacing: 0;text-align: left;\">\n<th style=\"background: #cccccc\" width=\"100px\">$th:</th>\n<td style=\"padding: 4px;spacing: 0;text-align: left;background: #eeeeee\">".$td."</td>\n</tr>";
- }
-
- /**
- * Create a HTML h1 tag
- *
- * @param string $title Text to be in the h1
- * @param int $level Error level
- * @return string
- */
- protected function addTitle($title, $level)
- {
- $title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8');
-
- return '<h1 style="background: '.$this->logLevels[$level].';color: #ffffff;padding: 5px;" class="monolog-output">'.$title.'</h1>';
- }
-
- /**
- * Formats a log record.
- *
- * @param array $record A record to format
- * @return mixed The formatted record
- */
- public function format(array $record)
- {
- $output = $this->addTitle($record['level_name'], $record['level']);
- $output .= '<table cellspacing="1" width="100%" class="monolog-output">';
-
- $output .= $this->addRow('Message', (string) $record['message']);
- $output .= $this->addRow('Time', $record['datetime']->format($this->dateFormat));
- $output .= $this->addRow('Channel', $record['channel']);
- if ($record['context']) {
- $embeddedTable = '<table cellspacing="1" width="100%">';
- foreach ($record['context'] as $key => $value) {
- $embeddedTable .= $this->addRow($key, $this->convertToString($value));
- }
- $embeddedTable .= '</table>';
- $output .= $this->addRow('Context', $embeddedTable, false);
- }
- if ($record['extra']) {
- $embeddedTable = '<table cellspacing="1" width="100%">';
- foreach ($record['extra'] as $key => $value) {
- $embeddedTable .= $this->addRow($key, $this->convertToString($value));
- }
- $embeddedTable .= '</table>';
- $output .= $this->addRow('Extra', $embeddedTable, false);
- }
-
- return $output.'</table>';
- }
-
- /**
- * Formats a set of log records.
- *
- * @param array $records A set of records to format
- * @return mixed The formatted set of records
- */
- public function formatBatch(array $records)
- {
- $message = '';
- foreach ($records as $record) {
- $message .= $this->format($record);
- }
-
- return $message;
- }
-
- protected function convertToString($data)
- {
- if (null === $data || is_scalar($data)) {
- return (string) $data;
- }
-
- $data = $this->normalize($data);
- if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
- return json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
- }
-
- return str_replace('\\/', '/', json_encode($data));
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php
deleted file mode 100644
index 4b2be77d..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php
+++ /dev/null
@@ -1,206 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Exception;
-use Throwable;
-
-/**
- * Encodes whatever record data is passed to it as json
- *
- * This can be useful to log to databases or remote APIs
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class JsonFormatter extends NormalizerFormatter
-{
- const BATCH_MODE_JSON = 1;
- const BATCH_MODE_NEWLINES = 2;
-
- protected $batchMode;
- protected $appendNewline;
- /**
- * @var bool
- */
- protected $includeStacktraces = false;
-
- /**
- * @param int $batchMode
- */
- public function __construct($batchMode = self::BATCH_MODE_JSON, $appendNewline = true)
- {
- $this->batchMode = $batchMode;
- $this->appendNewline = $appendNewline;
- }
-
- /**
- * The batch mode option configures the formatting style for
- * multiple records. By default, multiple records will be
- * formatted as a JSON-encoded array. However, for
- * compatibility with some API endpoints, alternative styles
- * are available.
- *
- * @return int
- */
- public function getBatchMode()
- {
- return $this->batchMode;
- }
-
- /**
- * True if newlines are appended to every formatted record
- *
- * @return bool
- */
- public function isAppendingNewlines()
- {
- return $this->appendNewline;
- }
-
- /**
- * {@inheritdoc}
- */
- public function format(array $record)
- {
- return $this->toJson($this->normalize($record), true) . ($this->appendNewline ? "\n" : '');
- }
-
- /**
- * {@inheritdoc}
- */
- public function formatBatch(array $records)
- {
- switch ($this->batchMode) {
- case static::BATCH_MODE_NEWLINES:
- return $this->formatBatchNewlines($records);
-
- case static::BATCH_MODE_JSON:
- default:
- return $this->formatBatchJson($records);
- }
- }
-
- /**
- * @param bool $include
- */
- public function includeStacktraces($include = true)
- {
- $this->includeStacktraces = $include;
- }
-
- /**
- * Return a JSON-encoded array of records.
- *
- * @param array $records
- * @return string
- */
- protected function formatBatchJson(array $records)
- {
- return $this->toJson($this->normalize($records), true);
- }
-
- /**
- * Use new lines to separate records instead of a
- * JSON-encoded array.
- *
- * @param array $records
- * @return string
- */
- protected function formatBatchNewlines(array $records)
- {
- $instance = $this;
-
- $oldNewline = $this->appendNewline;
- $this->appendNewline = false;
- array_walk($records, function (&$value, $key) use ($instance) {
- $value = $instance->format($value);
- });
- $this->appendNewline = $oldNewline;
-
- return implode("\n", $records);
- }
-
- /**
- * Normalizes given $data.
- *
- * @param mixed $data
- *
- * @return mixed
- */
- protected function normalize($data)
- {
- if (is_array($data) || $data instanceof \Traversable) {
- $normalized = array();
-
- $count = 1;
- foreach ($data as $key => $value) {
- if ($count++ >= 1000) {
- $normalized['...'] = 'Over 1000 items, aborting normalization';
- break;
- }
- $normalized[$key] = $this->normalize($value);
- }
-
- return $normalized;
- }
-
- if ($data instanceof Exception || $data instanceof Throwable) {
- return $this->normalizeException($data);
- }
-
- return $data;
- }
-
- /**
- * Normalizes given exception with or without its own stack trace based on
- * `includeStacktraces` property.
- *
- * @param Exception|Throwable $e
- *
- * @return array
- */
- protected function normalizeException($e)
- {
- // TODO 2.0 only check for Throwable
- if (!$e instanceof Exception && !$e instanceof Throwable) {
- throw new \InvalidArgumentException('Exception/Throwable expected, got '.gettype($e).' / '.get_class($e));
- }
-
- $data = array(
- 'class' => get_class($e),
- 'message' => $e->getMessage(),
- 'code' => $e->getCode(),
- 'file' => $e->getFile().':'.$e->getLine(),
- );
-
- if ($this->includeStacktraces) {
- $trace = $e->getTrace();
- foreach ($trace as $frame) {
- if (isset($frame['file'])) {
- $data['trace'][] = $frame['file'].':'.$frame['line'];
- } elseif (isset($frame['function']) && $frame['function'] === '{closure}') {
- // We should again normalize the frames, because it might contain invalid items
- $data['trace'][] = $frame['function'];
- } else {
- // We should again normalize the frames, because it might contain invalid items
- $data['trace'][] = $this->normalize($frame);
- }
- }
- }
-
- if ($previous = $e->getPrevious()) {
- $data['previous'] = $this->normalizeException($previous);
- }
-
- return $data;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php
deleted file mode 100644
index d3e209e6..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php
+++ /dev/null
@@ -1,179 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * Formats incoming records into a one-line string
- *
- * This is especially useful for logging to files
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- * @author Christophe Coevoet <stof@notk.org>
- */
-class LineFormatter extends NormalizerFormatter
-{
- const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n";
-
- protected $format;
- protected $allowInlineLineBreaks;
- protected $ignoreEmptyContextAndExtra;
- protected $includeStacktraces;
-
- /**
- * @param string $format The format of the message
- * @param string $dateFormat The format of the timestamp: one supported by DateTime::format
- * @param bool $allowInlineLineBreaks Whether to allow inline line breaks in log entries
- * @param bool $ignoreEmptyContextAndExtra
- */
- public function __construct($format = null, $dateFormat = null, $allowInlineLineBreaks = false, $ignoreEmptyContextAndExtra = false)
- {
- $this->format = $format ?: static::SIMPLE_FORMAT;
- $this->allowInlineLineBreaks = $allowInlineLineBreaks;
- $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra;
- parent::__construct($dateFormat);
- }
-
- public function includeStacktraces($include = true)
- {
- $this->includeStacktraces = $include;
- if ($this->includeStacktraces) {
- $this->allowInlineLineBreaks = true;
- }
- }
-
- public function allowInlineLineBreaks($allow = true)
- {
- $this->allowInlineLineBreaks = $allow;
- }
-
- public function ignoreEmptyContextAndExtra($ignore = true)
- {
- $this->ignoreEmptyContextAndExtra = $ignore;
- }
-
- /**
- * {@inheritdoc}
- */
- public function format(array $record)
- {
- $vars = parent::format($record);
-
- $output = $this->format;
-
- foreach ($vars['extra'] as $var => $val) {
- if (false !== strpos($output, '%extra.'.$var.'%')) {
- $output = str_replace('%extra.'.$var.'%', $this->stringify($val), $output);
- unset($vars['extra'][$var]);
- }
- }
-
-
- foreach ($vars['context'] as $var => $val) {
- if (false !== strpos($output, '%context.'.$var.'%')) {
- $output = str_replace('%context.'.$var.'%', $this->stringify($val), $output);
- unset($vars['context'][$var]);
- }
- }
-
- if ($this->ignoreEmptyContextAndExtra) {
- if (empty($vars['context'])) {
- unset($vars['context']);
- $output = str_replace('%context%', '', $output);
- }
-
- if (empty($vars['extra'])) {
- unset($vars['extra']);
- $output = str_replace('%extra%', '', $output);
- }
- }
-
- foreach ($vars as $var => $val) {
- if (false !== strpos($output, '%'.$var.'%')) {
- $output = str_replace('%'.$var.'%', $this->stringify($val), $output);
- }
- }
-
- // remove leftover %extra.xxx% and %context.xxx% if any
- if (false !== strpos($output, '%')) {
- $output = preg_replace('/%(?:extra|context)\..+?%/', '', $output);
- }
-
- return $output;
- }
-
- public function formatBatch(array $records)
- {
- $message = '';
- foreach ($records as $record) {
- $message .= $this->format($record);
- }
-
- return $message;
- }
-
- public function stringify($value)
- {
- return $this->replaceNewlines($this->convertToString($value));
- }
-
- protected function normalizeException($e)
- {
- // TODO 2.0 only check for Throwable
- if (!$e instanceof \Exception && !$e instanceof \Throwable) {
- throw new \InvalidArgumentException('Exception/Throwable expected, got '.gettype($e).' / '.get_class($e));
- }
-
- $previousText = '';
- if ($previous = $e->getPrevious()) {
- do {
- $previousText .= ', '.get_class($previous).'(code: '.$previous->getCode().'): '.$previous->getMessage().' at '.$previous->getFile().':'.$previous->getLine();
- } while ($previous = $previous->getPrevious());
- }
-
- $str = '[object] ('.get_class($e).'(code: '.$e->getCode().'): '.$e->getMessage().' at '.$e->getFile().':'.$e->getLine().$previousText.')';
- if ($this->includeStacktraces) {
- $str .= "\n[stacktrace]\n".$e->getTraceAsString()."\n";
- }
-
- return $str;
- }
-
- protected function convertToString($data)
- {
- if (null === $data || is_bool($data)) {
- return var_export($data, true);
- }
-
- if (is_scalar($data)) {
- return (string) $data;
- }
-
- if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
- return $this->toJson($data, true);
- }
-
- return str_replace('\\/', '/', @json_encode($data));
- }
-
- protected function replaceNewlines($str)
- {
- if ($this->allowInlineLineBreaks) {
- if (0 === strpos($str, '{')) {
- return str_replace(array('\r', '\n'), array("\r", "\n"), $str);
- }
-
- return $str;
- }
-
- return str_replace(array("\r\n", "\r", "\n"), ' ', $str);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php
deleted file mode 100644
index 401859bb..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * Encodes message information into JSON in a format compatible with Loggly.
- *
- * @author Adam Pancutt <adam@pancutt.com>
- */
-class LogglyFormatter extends JsonFormatter
-{
- /**
- * Overrides the default batch mode to new lines for compatibility with the
- * Loggly bulk API.
- *
- * @param int $batchMode
- */
- public function __construct($batchMode = self::BATCH_MODE_NEWLINES, $appendNewline = false)
- {
- parent::__construct($batchMode, $appendNewline);
- }
-
- /**
- * Appends the 'timestamp' parameter for indexing by Loggly.
- *
- * @see https://www.loggly.com/docs/automated-parsing/#json
- * @see \Monolog\Formatter\JsonFormatter::format()
- */
- public function format(array $record)
- {
- if (isset($record["datetime"]) && ($record["datetime"] instanceof \DateTime)) {
- $record["timestamp"] = $record["datetime"]->format("Y-m-d\TH:i:s.uO");
- // TODO 2.0 unset the 'datetime' parameter, retained for BC
- }
-
- return parent::format($record);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php
deleted file mode 100644
index 8f83bec0..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php
+++ /dev/null
@@ -1,166 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * Serializes a log message to Logstash Event Format
- *
- * @see http://logstash.net/
- * @see https://github.com/logstash/logstash/blob/master/lib/logstash/event.rb
- *
- * @author Tim Mower <timothy.mower@gmail.com>
- */
-class LogstashFormatter extends NormalizerFormatter
-{
- const V0 = 0;
- const V1 = 1;
-
- /**
- * @var string the name of the system for the Logstash log message, used to fill the @source field
- */
- protected $systemName;
-
- /**
- * @var string an application name for the Logstash log message, used to fill the @type field
- */
- protected $applicationName;
-
- /**
- * @var string a prefix for 'extra' fields from the Monolog record (optional)
- */
- protected $extraPrefix;
-
- /**
- * @var string a prefix for 'context' fields from the Monolog record (optional)
- */
- protected $contextPrefix;
-
- /**
- * @var int logstash format version to use
- */
- protected $version;
-
- /**
- * @param string $applicationName the application that sends the data, used as the "type" field of logstash
- * @param string $systemName the system/machine name, used as the "source" field of logstash, defaults to the hostname of the machine
- * @param string $extraPrefix prefix for extra keys inside logstash "fields"
- * @param string $contextPrefix prefix for context keys inside logstash "fields", defaults to ctxt_
- * @param int $version the logstash format version to use, defaults to 0
- */
- public function __construct($applicationName, $systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_', $version = self::V0)
- {
- // logstash requires a ISO 8601 format date with optional millisecond precision.
- parent::__construct('Y-m-d\TH:i:s.uP');
-
- $this->systemName = $systemName ?: gethostname();
- $this->applicationName = $applicationName;
- $this->extraPrefix = $extraPrefix;
- $this->contextPrefix = $contextPrefix;
- $this->version = $version;
- }
-
- /**
- * {@inheritdoc}
- */
- public function format(array $record)
- {
- $record = parent::format($record);
-
- if ($this->version === self::V1) {
- $message = $this->formatV1($record);
- } else {
- $message = $this->formatV0($record);
- }
-
- return $this->toJson($message) . "\n";
- }
-
- protected function formatV0(array $record)
- {
- if (empty($record['datetime'])) {
- $record['datetime'] = gmdate('c');
- }
- $message = array(
- '@timestamp' => $record['datetime'],
- '@source' => $this->systemName,
- '@fields' => array(),
- );
- if (isset($record['message'])) {
- $message['@message'] = $record['message'];
- }
- if (isset($record['channel'])) {
- $message['@tags'] = array($record['channel']);
- $message['@fields']['channel'] = $record['channel'];
- }
- if (isset($record['level'])) {
- $message['@fields']['level'] = $record['level'];
- }
- if ($this->applicationName) {
- $message['@type'] = $this->applicationName;
- }
- if (isset($record['extra']['server'])) {
- $message['@source_host'] = $record['extra']['server'];
- }
- if (isset($record['extra']['url'])) {
- $message['@source_path'] = $record['extra']['url'];
- }
- if (!empty($record['extra'])) {
- foreach ($record['extra'] as $key => $val) {
- $message['@fields'][$this->extraPrefix . $key] = $val;
- }
- }
- if (!empty($record['context'])) {
- foreach ($record['context'] as $key => $val) {
- $message['@fields'][$this->contextPrefix . $key] = $val;
- }
- }
-
- return $message;
- }
-
- protected function formatV1(array $record)
- {
- if (empty($record['datetime'])) {
- $record['datetime'] = gmdate('c');
- }
- $message = array(
- '@timestamp' => $record['datetime'],
- '@version' => 1,
- 'host' => $this->systemName,
- );
- if (isset($record['message'])) {
- $message['message'] = $record['message'];
- }
- if (isset($record['channel'])) {
- $message['type'] = $record['channel'];
- $message['channel'] = $record['channel'];
- }
- if (isset($record['level_name'])) {
- $message['level'] = $record['level_name'];
- }
- if ($this->applicationName) {
- $message['type'] = $this->applicationName;
- }
- if (!empty($record['extra'])) {
- foreach ($record['extra'] as $key => $val) {
- $message[$this->extraPrefix . $key] = $val;
- }
- }
- if (!empty($record['context'])) {
- foreach ($record['context'] as $key => $val) {
- $message[$this->contextPrefix . $key] = $val;
- }
- }
-
- return $message;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php
deleted file mode 100644
index eb067bb7..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * Formats a record for use with the MongoDBHandler.
- *
- * @author Florian Plattner <me@florianplattner.de>
- */
-class MongoDBFormatter implements FormatterInterface
-{
- private $exceptionTraceAsString;
- private $maxNestingLevel;
-
- /**
- * @param int $maxNestingLevel 0 means infinite nesting, the $record itself is level 1, $record['context'] is 2
- * @param bool $exceptionTraceAsString set to false to log exception traces as a sub documents instead of strings
- */
- public function __construct($maxNestingLevel = 3, $exceptionTraceAsString = true)
- {
- $this->maxNestingLevel = max($maxNestingLevel, 0);
- $this->exceptionTraceAsString = (bool) $exceptionTraceAsString;
- }
-
- /**
- * {@inheritDoc}
- */
- public function format(array $record)
- {
- return $this->formatArray($record);
- }
-
- /**
- * {@inheritDoc}
- */
- public function formatBatch(array $records)
- {
- foreach ($records as $key => $record) {
- $records[$key] = $this->format($record);
- }
-
- return $records;
- }
-
- protected function formatArray(array $record, $nestingLevel = 0)
- {
- if ($this->maxNestingLevel == 0 || $nestingLevel <= $this->maxNestingLevel) {
- foreach ($record as $name => $value) {
- if ($value instanceof \DateTime) {
- $record[$name] = $this->formatDate($value, $nestingLevel + 1);
- } elseif ($value instanceof \Exception) {
- $record[$name] = $this->formatException($value, $nestingLevel + 1);
- } elseif (is_array($value)) {
- $record[$name] = $this->formatArray($value, $nestingLevel + 1);
- } elseif (is_object($value)) {
- $record[$name] = $this->formatObject($value, $nestingLevel + 1);
- }
- }
- } else {
- $record = '[...]';
- }
-
- return $record;
- }
-
- protected function formatObject($value, $nestingLevel)
- {
- $objectVars = get_object_vars($value);
- $objectVars['class'] = get_class($value);
-
- return $this->formatArray($objectVars, $nestingLevel);
- }
-
- protected function formatException(\Exception $exception, $nestingLevel)
- {
- $formattedException = array(
- 'class' => get_class($exception),
- 'message' => $exception->getMessage(),
- 'code' => $exception->getCode(),
- 'file' => $exception->getFile() . ':' . $exception->getLine(),
- );
-
- if ($this->exceptionTraceAsString === true) {
- $formattedException['trace'] = $exception->getTraceAsString();
- } else {
- $formattedException['trace'] = $exception->getTrace();
- }
-
- return $this->formatArray($formattedException, $nestingLevel);
- }
-
- protected function formatDate(\DateTime $value, $nestingLevel)
- {
- return new \MongoDate($value->getTimestamp());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php
deleted file mode 100644
index d4414882..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php
+++ /dev/null
@@ -1,297 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Exception;
-
-/**
- * Normalizes incoming records to remove objects/resources so it's easier to dump to various targets
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class NormalizerFormatter implements FormatterInterface
-{
- const SIMPLE_DATE = "Y-m-d H:i:s";
-
- protected $dateFormat;
-
- /**
- * @param string $dateFormat The format of the timestamp: one supported by DateTime::format
- */
- public function __construct($dateFormat = null)
- {
- $this->dateFormat = $dateFormat ?: static::SIMPLE_DATE;
- if (!function_exists('json_encode')) {
- throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s NormalizerFormatter');
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function format(array $record)
- {
- return $this->normalize($record);
- }
-
- /**
- * {@inheritdoc}
- */
- public function formatBatch(array $records)
- {
- foreach ($records as $key => $record) {
- $records[$key] = $this->format($record);
- }
-
- return $records;
- }
-
- protected function normalize($data)
- {
- if (null === $data || is_scalar($data)) {
- if (is_float($data)) {
- if (is_infinite($data)) {
- return ($data > 0 ? '' : '-') . 'INF';
- }
- if (is_nan($data)) {
- return 'NaN';
- }
- }
-
- return $data;
- }
-
- if (is_array($data)) {
- $normalized = array();
-
- $count = 1;
- foreach ($data as $key => $value) {
- if ($count++ >= 1000) {
- $normalized['...'] = 'Over 1000 items ('.count($data).' total), aborting normalization';
- break;
- }
- $normalized[$key] = $this->normalize($value);
- }
-
- return $normalized;
- }
-
- if ($data instanceof \DateTime) {
- return $data->format($this->dateFormat);
- }
-
- if (is_object($data)) {
- // TODO 2.0 only check for Throwable
- if ($data instanceof Exception || (PHP_VERSION_ID > 70000 && $data instanceof \Throwable)) {
- return $this->normalizeException($data);
- }
-
- // non-serializable objects that implement __toString stringified
- if (method_exists($data, '__toString') && !$data instanceof \JsonSerializable) {
- $value = $data->__toString();
- } else {
- // the rest is json-serialized in some way
- $value = $this->toJson($data, true);
- }
-
- return sprintf("[object] (%s: %s)", get_class($data), $value);
- }
-
- if (is_resource($data)) {
- return sprintf('[resource] (%s)', get_resource_type($data));
- }
-
- return '[unknown('.gettype($data).')]';
- }
-
- protected function normalizeException($e)
- {
- // TODO 2.0 only check for Throwable
- if (!$e instanceof Exception && !$e instanceof \Throwable) {
- throw new \InvalidArgumentException('Exception/Throwable expected, got '.gettype($e).' / '.get_class($e));
- }
-
- $data = array(
- 'class' => get_class($e),
- 'message' => $e->getMessage(),
- 'code' => $e->getCode(),
- 'file' => $e->getFile().':'.$e->getLine(),
- );
-
- if ($e instanceof \SoapFault) {
- if (isset($e->faultcode)) {
- $data['faultcode'] = $e->faultcode;
- }
-
- if (isset($e->faultactor)) {
- $data['faultactor'] = $e->faultactor;
- }
-
- if (isset($e->detail)) {
- $data['detail'] = $e->detail;
- }
- }
-
- $trace = $e->getTrace();
- foreach ($trace as $frame) {
- if (isset($frame['file'])) {
- $data['trace'][] = $frame['file'].':'.$frame['line'];
- } elseif (isset($frame['function']) && $frame['function'] === '{closure}') {
- // We should again normalize the frames, because it might contain invalid items
- $data['trace'][] = $frame['function'];
- } else {
- // We should again normalize the frames, because it might contain invalid items
- $data['trace'][] = $this->toJson($this->normalize($frame), true);
- }
- }
-
- if ($previous = $e->getPrevious()) {
- $data['previous'] = $this->normalizeException($previous);
- }
-
- return $data;
- }
-
- /**
- * Return the JSON representation of a value
- *
- * @param mixed $data
- * @param bool $ignoreErrors
- * @throws \RuntimeException if encoding fails and errors are not ignored
- * @return string
- */
- protected function toJson($data, $ignoreErrors = false)
- {
- // suppress json_encode errors since it's twitchy with some inputs
- if ($ignoreErrors) {
- return @$this->jsonEncode($data);
- }
-
- $json = $this->jsonEncode($data);
-
- if ($json === false) {
- $json = $this->handleJsonError(json_last_error(), $data);
- }
-
- return $json;
- }
-
- /**
- * @param mixed $data
- * @return string JSON encoded data or null on failure
- */
- private function jsonEncode($data)
- {
- if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
- return json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
- }
-
- return json_encode($data);
- }
-
- /**
- * Handle a json_encode failure.
- *
- * If the failure is due to invalid string encoding, try to clean the
- * input and encode again. If the second encoding attempt fails, the
- * inital error is not encoding related or the input can't be cleaned then
- * raise a descriptive exception.
- *
- * @param int $code return code of json_last_error function
- * @param mixed $data data that was meant to be encoded
- * @throws \RuntimeException if failure can't be corrected
- * @return string JSON encoded data after error correction
- */
- private function handleJsonError($code, $data)
- {
- if ($code !== JSON_ERROR_UTF8) {
- $this->throwEncodeError($code, $data);
- }
-
- if (is_string($data)) {
- $this->detectAndCleanUtf8($data);
- } elseif (is_array($data)) {
- array_walk_recursive($data, array($this, 'detectAndCleanUtf8'));
- } else {
- $this->throwEncodeError($code, $data);
- }
-
- $json = $this->jsonEncode($data);
-
- if ($json === false) {
- $this->throwEncodeError(json_last_error(), $data);
- }
-
- return $json;
- }
-
- /**
- * Throws an exception according to a given code with a customized message
- *
- * @param int $code return code of json_last_error function
- * @param mixed $data data that was meant to be encoded
- * @throws \RuntimeException
- */
- private function throwEncodeError($code, $data)
- {
- switch ($code) {
- case JSON_ERROR_DEPTH:
- $msg = 'Maximum stack depth exceeded';
- break;
- case JSON_ERROR_STATE_MISMATCH:
- $msg = 'Underflow or the modes mismatch';
- break;
- case JSON_ERROR_CTRL_CHAR:
- $msg = 'Unexpected control character found';
- break;
- case JSON_ERROR_UTF8:
- $msg = 'Malformed UTF-8 characters, possibly incorrectly encoded';
- break;
- default:
- $msg = 'Unknown error';
- }
-
- throw new \RuntimeException('JSON encoding failed: '.$msg.'. Encoding: '.var_export($data, true));
- }
-
- /**
- * Detect invalid UTF-8 string characters and convert to valid UTF-8.
- *
- * Valid UTF-8 input will be left unmodified, but strings containing
- * invalid UTF-8 codepoints will be reencoded as UTF-8 with an assumed
- * original encoding of ISO-8859-15. This conversion may result in
- * incorrect output if the actual encoding was not ISO-8859-15, but it
- * will be clean UTF-8 output and will not rely on expensive and fragile
- * detection algorithms.
- *
- * Function converts the input in place in the passed variable so that it
- * can be used as a callback for array_walk_recursive.
- *
- * @param mixed &$data Input to check and convert if needed
- * @private
- */
- public function detectAndCleanUtf8(&$data)
- {
- if (is_string($data) && !preg_match('//u', $data)) {
- $data = preg_replace_callback(
- '/[\x80-\xFF]+/',
- function ($m) { return utf8_encode($m[0]); },
- $data
- );
- $data = str_replace(
- array('¤', '¦', '¨', '´', '¸', '¼', '½', '¾'),
- array('€', 'Š', 'š', 'Ž', 'ž', 'Œ', 'œ', 'Ÿ'),
- $data
- );
- }
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php
deleted file mode 100644
index 5d345d53..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * Formats data into an associative array of scalar values.
- * Objects and arrays will be JSON encoded.
- *
- * @author Andrew Lawson <adlawson@gmail.com>
- */
-class ScalarFormatter extends NormalizerFormatter
-{
- /**
- * {@inheritdoc}
- */
- public function format(array $record)
- {
- foreach ($record as $key => $value) {
- $record[$key] = $this->normalizeValue($value);
- }
-
- return $record;
- }
-
- /**
- * @param mixed $value
- * @return mixed
- */
- protected function normalizeValue($value)
- {
- $normalized = $this->normalize($value);
-
- if (is_array($normalized) || is_object($normalized)) {
- return $this->toJson($normalized, true);
- }
-
- return $normalized;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php
deleted file mode 100644
index 654710a8..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-
-/**
- * Serializes a log message according to Wildfire's header requirements
- *
- * @author Eric Clemmons (@ericclemmons) <eric@uxdriven.com>
- * @author Christophe Coevoet <stof@notk.org>
- * @author Kirill chEbba Chebunin <iam@chebba.org>
- */
-class WildfireFormatter extends NormalizerFormatter
-{
- const TABLE = 'table';
-
- /**
- * Translates Monolog log levels to Wildfire levels.
- */
- private $logLevels = array(
- Logger::DEBUG => 'LOG',
- Logger::INFO => 'INFO',
- Logger::NOTICE => 'INFO',
- Logger::WARNING => 'WARN',
- Logger::ERROR => 'ERROR',
- Logger::CRITICAL => 'ERROR',
- Logger::ALERT => 'ERROR',
- Logger::EMERGENCY => 'ERROR',
- );
-
- /**
- * {@inheritdoc}
- */
- public function format(array $record)
- {
- // Retrieve the line and file if set and remove them from the formatted extra
- $file = $line = '';
- if (isset($record['extra']['file'])) {
- $file = $record['extra']['file'];
- unset($record['extra']['file']);
- }
- if (isset($record['extra']['line'])) {
- $line = $record['extra']['line'];
- unset($record['extra']['line']);
- }
-
- $record = $this->normalize($record);
- $message = array('message' => $record['message']);
- $handleError = false;
- if ($record['context']) {
- $message['context'] = $record['context'];
- $handleError = true;
- }
- if ($record['extra']) {
- $message['extra'] = $record['extra'];
- $handleError = true;
- }
- if (count($message) === 1) {
- $message = reset($message);
- }
-
- if (isset($record['context'][self::TABLE])) {
- $type = 'TABLE';
- $label = $record['channel'] .': '. $record['message'];
- $message = $record['context'][self::TABLE];
- } else {
- $type = $this->logLevels[$record['level']];
- $label = $record['channel'];
- }
-
- // Create JSON object describing the appearance of the message in the console
- $json = $this->toJson(array(
- array(
- 'Type' => $type,
- 'File' => $file,
- 'Line' => $line,
- 'Label' => $label,
- ),
- $message,
- ), $handleError);
-
- // The message itself is a serialization of the above JSON object + it's length
- return sprintf(
- '%s|%s|',
- strlen($json),
- $json
- );
- }
-
- public function formatBatch(array $records)
- {
- throw new \BadMethodCallException('Batch formatting does not make sense for the WildfireFormatter');
- }
-
- protected function normalize($data)
- {
- if (is_object($data) && !$data instanceof \DateTime) {
- return $data;
- }
-
- return parent::normalize($data);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php
deleted file mode 100644
index 758a425c..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php
+++ /dev/null
@@ -1,186 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Formatter\FormatterInterface;
-use Monolog\Formatter\LineFormatter;
-
-/**
- * Base Handler class providing the Handler structure
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-abstract class AbstractHandler implements HandlerInterface
-{
- protected $level = Logger::DEBUG;
- protected $bubble = true;
-
- /**
- * @var FormatterInterface
- */
- protected $formatter;
- protected $processors = array();
-
- /**
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($level = Logger::DEBUG, $bubble = true)
- {
- $this->setLevel($level);
- $this->bubble = $bubble;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isHandling(array $record)
- {
- return $record['level'] >= $this->level;
- }
-
- /**
- * {@inheritdoc}
- */
- public function handleBatch(array $records)
- {
- foreach ($records as $record) {
- $this->handle($record);
- }
- }
-
- /**
- * Closes the handler.
- *
- * This will be called automatically when the object is destroyed
- */
- public function close()
- {
- }
-
- /**
- * {@inheritdoc}
- */
- public function pushProcessor($callback)
- {
- if (!is_callable($callback)) {
- throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), '.var_export($callback, true).' given');
- }
- array_unshift($this->processors, $callback);
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function popProcessor()
- {
- if (!$this->processors) {
- throw new \LogicException('You tried to pop from an empty processor stack.');
- }
-
- return array_shift($this->processors);
- }
-
- /**
- * {@inheritdoc}
- */
- public function setFormatter(FormatterInterface $formatter)
- {
- $this->formatter = $formatter;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFormatter()
- {
- if (!$this->formatter) {
- $this->formatter = $this->getDefaultFormatter();
- }
-
- return $this->formatter;
- }
-
- /**
- * Sets minimum logging level at which this handler will be triggered.
- *
- * @param int|string $level Level or level name
- * @return self
- */
- public function setLevel($level)
- {
- $this->level = Logger::toMonologLevel($level);
-
- return $this;
- }
-
- /**
- * Gets minimum logging level at which this handler will be triggered.
- *
- * @return int
- */
- public function getLevel()
- {
- return $this->level;
- }
-
- /**
- * Sets the bubbling behavior.
- *
- * @param Boolean $bubble true means that this handler allows bubbling.
- * false means that bubbling is not permitted.
- * @return self
- */
- public function setBubble($bubble)
- {
- $this->bubble = $bubble;
-
- return $this;
- }
-
- /**
- * Gets the bubbling behavior.
- *
- * @return Boolean true means that this handler allows bubbling.
- * false means that bubbling is not permitted.
- */
- public function getBubble()
- {
- return $this->bubble;
- }
-
- public function __destruct()
- {
- try {
- $this->close();
- } catch (\Exception $e) {
- // do nothing
- } catch (\Throwable $e) {
- // do nothing
- }
- }
-
- /**
- * Gets the default formatter.
- *
- * @return FormatterInterface
- */
- protected function getDefaultFormatter()
- {
- return new LineFormatter();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
deleted file mode 100644
index 6f18f72e..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-/**
- * Base Handler class providing the Handler structure
- *
- * Classes extending it should (in most cases) only implement write($record)
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- * @author Christophe Coevoet <stof@notk.org>
- */
-abstract class AbstractProcessingHandler extends AbstractHandler
-{
- /**
- * {@inheritdoc}
- */
- public function handle(array $record)
- {
- if (!$this->isHandling($record)) {
- return false;
- }
-
- $record = $this->processRecord($record);
-
- $record['formatted'] = $this->getFormatter()->format($record);
-
- $this->write($record);
-
- return false === $this->bubble;
- }
-
- /**
- * Writes the record down to the log of the implementing handler
- *
- * @param array $record
- * @return void
- */
- abstract protected function write(array $record);
-
- /**
- * Processes a record.
- *
- * @param array $record
- * @return array
- */
- protected function processRecord(array $record)
- {
- if ($this->processors) {
- foreach ($this->processors as $processor) {
- $record = call_user_func($processor, $record);
- }
- }
-
- return $record;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php
deleted file mode 100644
index e2b2832d..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-
-/**
- * Common syslog functionality
- */
-abstract class AbstractSyslogHandler extends AbstractProcessingHandler
-{
- protected $facility;
-
- /**
- * Translates Monolog log levels to syslog log priorities.
- */
- protected $logLevels = array(
- Logger::DEBUG => LOG_DEBUG,
- Logger::INFO => LOG_INFO,
- Logger::NOTICE => LOG_NOTICE,
- Logger::WARNING => LOG_WARNING,
- Logger::ERROR => LOG_ERR,
- Logger::CRITICAL => LOG_CRIT,
- Logger::ALERT => LOG_ALERT,
- Logger::EMERGENCY => LOG_EMERG,
- );
-
- /**
- * List of valid log facility names.
- */
- protected $facilities = array(
- 'auth' => LOG_AUTH,
- 'authpriv' => LOG_AUTHPRIV,
- 'cron' => LOG_CRON,
- 'daemon' => LOG_DAEMON,
- 'kern' => LOG_KERN,
- 'lpr' => LOG_LPR,
- 'mail' => LOG_MAIL,
- 'news' => LOG_NEWS,
- 'syslog' => LOG_SYSLOG,
- 'user' => LOG_USER,
- 'uucp' => LOG_UUCP,
- );
-
- /**
- * @param mixed $facility
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($facility = LOG_USER, $level = Logger::DEBUG, $bubble = true)
- {
- parent::__construct($level, $bubble);
-
- if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
- $this->facilities['local0'] = LOG_LOCAL0;
- $this->facilities['local1'] = LOG_LOCAL1;
- $this->facilities['local2'] = LOG_LOCAL2;
- $this->facilities['local3'] = LOG_LOCAL3;
- $this->facilities['local4'] = LOG_LOCAL4;
- $this->facilities['local5'] = LOG_LOCAL5;
- $this->facilities['local6'] = LOG_LOCAL6;
- $this->facilities['local7'] = LOG_LOCAL7;
- } else {
- $this->facilities['local0'] = 128; // LOG_LOCAL0
- $this->facilities['local1'] = 136; // LOG_LOCAL1
- $this->facilities['local2'] = 144; // LOG_LOCAL2
- $this->facilities['local3'] = 152; // LOG_LOCAL3
- $this->facilities['local4'] = 160; // LOG_LOCAL4
- $this->facilities['local5'] = 168; // LOG_LOCAL5
- $this->facilities['local6'] = 176; // LOG_LOCAL6
- $this->facilities['local7'] = 184; // LOG_LOCAL7
- }
-
- // convert textual description of facility to syslog constant
- if (array_key_exists(strtolower($facility), $this->facilities)) {
- $facility = $this->facilities[strtolower($facility)];
- } elseif (!in_array($facility, array_values($this->facilities), true)) {
- throw new \UnexpectedValueException('Unknown facility value "'.$facility.'" given');
- }
-
- $this->facility = $facility;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getDefaultFormatter()
- {
- return new LineFormatter('%channel%.%level_name%: %message% %context% %extra%');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php
deleted file mode 100644
index e5a46bc0..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php
+++ /dev/null
@@ -1,148 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Formatter\JsonFormatter;
-use PhpAmqpLib\Message\AMQPMessage;
-use PhpAmqpLib\Channel\AMQPChannel;
-use AMQPExchange;
-
-class AmqpHandler extends AbstractProcessingHandler
-{
- /**
- * @var AMQPExchange|AMQPChannel $exchange
- */
- protected $exchange;
-
- /**
- * @var string
- */
- protected $exchangeName;
-
- /**
- * @param AMQPExchange|AMQPChannel $exchange AMQPExchange (php AMQP ext) or PHP AMQP lib channel, ready for use
- * @param string $exchangeName
- * @param int $level
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($exchange, $exchangeName = 'log', $level = Logger::DEBUG, $bubble = true)
- {
- if ($exchange instanceof AMQPExchange) {
- $exchange->setName($exchangeName);
- } elseif ($exchange instanceof AMQPChannel) {
- $this->exchangeName = $exchangeName;
- } else {
- throw new \InvalidArgumentException('PhpAmqpLib\Channel\AMQPChannel or AMQPExchange instance required');
- }
- $this->exchange = $exchange;
-
- parent::__construct($level, $bubble);
- }
-
- /**
- * {@inheritDoc}
- */
- protected function write(array $record)
- {
- $data = $record["formatted"];
- $routingKey = $this->getRoutingKey($record);
-
- if ($this->exchange instanceof AMQPExchange) {
- $this->exchange->publish(
- $data,
- $routingKey,
- 0,
- array(
- 'delivery_mode' => 2,
- 'content_type' => 'application/json',
- )
- );
- } else {
- $this->exchange->basic_publish(
- $this->createAmqpMessage($data),
- $this->exchangeName,
- $routingKey
- );
- }
- }
-
- /**
- * {@inheritDoc}
- */
- public function handleBatch(array $records)
- {
- if ($this->exchange instanceof AMQPExchange) {
- parent::handleBatch($records);
-
- return;
- }
-
- foreach ($records as $record) {
- if (!$this->isHandling($record)) {
- continue;
- }
-
- $record = $this->processRecord($record);
- $data = $this->getFormatter()->format($record);
-
- $this->exchange->batch_basic_publish(
- $this->createAmqpMessage($data),
- $this->exchangeName,
- $this->getRoutingKey($record)
- );
- }
-
- $this->exchange->publish_batch();
- }
-
- /**
- * Gets the routing key for the AMQP exchange
- *
- * @param array $record
- * @return string
- */
- protected function getRoutingKey(array $record)
- {
- $routingKey = sprintf(
- '%s.%s',
- // TODO 2.0 remove substr call
- substr($record['level_name'], 0, 4),
- $record['channel']
- );
-
- return strtolower($routingKey);
- }
-
- /**
- * @param string $data
- * @return AMQPMessage
- */
- private function createAmqpMessage($data)
- {
- return new AMQPMessage(
- (string) $data,
- array(
- 'delivery_mode' => 2,
- 'content_type' => 'application/json',
- )
- );
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php
deleted file mode 100644
index b3a21bd4..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php
+++ /dev/null
@@ -1,230 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\LineFormatter;
-
-/**
- * Handler sending logs to browser's javascript console with no browser extension required
- *
- * @author Olivier Poitrey <rs@dailymotion.com>
- */
-class BrowserConsoleHandler extends AbstractProcessingHandler
-{
- protected static $initialized = false;
- protected static $records = array();
-
- /**
- * {@inheritDoc}
- *
- * Formatted output may contain some formatting markers to be transferred to `console.log` using the %c format.
- *
- * Example of formatted string:
- *
- * You can do [[blue text]]{color: blue} or [[green background]]{background-color: green; color: white}
- */
- protected function getDefaultFormatter()
- {
- return new LineFormatter('[[%channel%]]{macro: autolabel} [[%level_name%]]{font-weight: bold} %message%');
- }
-
- /**
- * {@inheritDoc}
- */
- protected function write(array $record)
- {
- // Accumulate records
- self::$records[] = $record;
-
- // Register shutdown handler if not already done
- if (!self::$initialized) {
- self::$initialized = true;
- $this->registerShutdownFunction();
- }
- }
-
- /**
- * Convert records to javascript console commands and send it to the browser.
- * This method is automatically called on PHP shutdown if output is HTML or Javascript.
- */
- public static function send()
- {
- $format = self::getResponseFormat();
- if ($format === 'unknown') {
- return;
- }
-
- if (count(self::$records)) {
- if ($format === 'html') {
- self::writeOutput('<script>' . self::generateScript() . '</script>');
- } elseif ($format === 'js') {
- self::writeOutput(self::generateScript());
- }
- self::reset();
- }
- }
-
- /**
- * Forget all logged records
- */
- public static function reset()
- {
- self::$records = array();
- }
-
- /**
- * Wrapper for register_shutdown_function to allow overriding
- */
- protected function registerShutdownFunction()
- {
- if (PHP_SAPI !== 'cli') {
- register_shutdown_function(array('Monolog\Handler\BrowserConsoleHandler', 'send'));
- }
- }
-
- /**
- * Wrapper for echo to allow overriding
- *
- * @param string $str
- */
- protected static function writeOutput($str)
- {
- echo $str;
- }
-
- /**
- * Checks the format of the response
- *
- * If Content-Type is set to application/javascript or text/javascript -> js
- * If Content-Type is set to text/html, or is unset -> html
- * If Content-Type is anything else -> unknown
- *
- * @return string One of 'js', 'html' or 'unknown'
- */
- protected static function getResponseFormat()
- {
- // Check content type
- foreach (headers_list() as $header) {
- if (stripos($header, 'content-type:') === 0) {
- // This handler only works with HTML and javascript outputs
- // text/javascript is obsolete in favour of application/javascript, but still used
- if (stripos($header, 'application/javascript') !== false || stripos($header, 'text/javascript') !== false) {
- return 'js';
- }
- if (stripos($header, 'text/html') === false) {
- return 'unknown';
- }
- break;
- }
- }
-
- return 'html';
- }
-
- private static function generateScript()
- {
- $script = array();
- foreach (self::$records as $record) {
- $context = self::dump('Context', $record['context']);
- $extra = self::dump('Extra', $record['extra']);
-
- if (empty($context) && empty($extra)) {
- $script[] = self::call_array('log', self::handleStyles($record['formatted']));
- } else {
- $script = array_merge($script,
- array(self::call_array('groupCollapsed', self::handleStyles($record['formatted']))),
- $context,
- $extra,
- array(self::call('groupEnd'))
- );
- }
- }
-
- return "(function (c) {if (c && c.groupCollapsed) {\n" . implode("\n", $script) . "\n}})(console);";
- }
-
- private static function handleStyles($formatted)
- {
- $args = array(self::quote('font-weight: normal'));
- $format = '%c' . $formatted;
- preg_match_all('/\[\[(.*?)\]\]\{([^}]*)\}/s', $format, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER);
-
- foreach (array_reverse($matches) as $match) {
- $args[] = self::quote(self::handleCustomStyles($match[2][0], $match[1][0]));
- $args[] = '"font-weight: normal"';
-
- $pos = $match[0][1];
- $format = substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . substr($format, $pos + strlen($match[0][0]));
- }
-
- array_unshift($args, self::quote($format));
-
- return $args;
- }
-
- private static function handleCustomStyles($style, $string)
- {
- static $colors = array('blue', 'green', 'red', 'magenta', 'orange', 'black', 'grey');
- static $labels = array();
-
- return preg_replace_callback('/macro\s*:(.*?)(?:;|$)/', function ($m) use ($string, &$colors, &$labels) {
- if (trim($m[1]) === 'autolabel') {
- // Format the string as a label with consistent auto assigned background color
- if (!isset($labels[$string])) {
- $labels[$string] = $colors[count($labels) % count($colors)];
- }
- $color = $labels[$string];
-
- return "background-color: $color; color: white; border-radius: 3px; padding: 0 2px 0 2px";
- }
-
- return $m[1];
- }, $style);
- }
-
- private static function dump($title, array $dict)
- {
- $script = array();
- $dict = array_filter($dict);
- if (empty($dict)) {
- return $script;
- }
- $script[] = self::call('log', self::quote('%c%s'), self::quote('font-weight: bold'), self::quote($title));
- foreach ($dict as $key => $value) {
- $value = json_encode($value);
- if (empty($value)) {
- $value = self::quote('');
- }
- $script[] = self::call('log', self::quote('%s: %o'), self::quote($key), $value);
- }
-
- return $script;
- }
-
- private static function quote($arg)
- {
- return '"' . addcslashes($arg, "\"\n\\") . '"';
- }
-
- private static function call()
- {
- $args = func_get_args();
- $method = array_shift($args);
-
- return self::call_array($method, $args);
- }
-
- private static function call_array($method, array $args)
- {
- return 'c.' . $method . '(' . implode(', ', $args) . ');';
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php
deleted file mode 100644
index 72f89535..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Buffers all records until closing the handler and then pass them as batch.
- *
- * This is useful for a MailHandler to send only one mail per request instead of
- * sending one per log message.
- *
- * @author Christophe Coevoet <stof@notk.org>
- */
-class BufferHandler extends AbstractHandler
-{
- protected $handler;
- protected $bufferSize = 0;
- protected $bufferLimit;
- protected $flushOnOverflow;
- protected $buffer = array();
- protected $initialized = false;
-
- /**
- * @param HandlerInterface $handler Handler.
- * @param int $bufferLimit How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- * @param Boolean $flushOnOverflow If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded
- */
- public function __construct(HandlerInterface $handler, $bufferLimit = 0, $level = Logger::DEBUG, $bubble = true, $flushOnOverflow = false)
- {
- parent::__construct($level, $bubble);
- $this->handler = $handler;
- $this->bufferLimit = (int) $bufferLimit;
- $this->flushOnOverflow = $flushOnOverflow;
- }
-
- /**
- * {@inheritdoc}
- */
- public function handle(array $record)
- {
- if ($record['level'] < $this->level) {
- return false;
- }
-
- if (!$this->initialized) {
- // __destructor() doesn't get called on Fatal errors
- register_shutdown_function(array($this, 'close'));
- $this->initialized = true;
- }
-
- if ($this->bufferLimit > 0 && $this->bufferSize === $this->bufferLimit) {
- if ($this->flushOnOverflow) {
- $this->flush();
- } else {
- array_shift($this->buffer);
- $this->bufferSize--;
- }
- }
-
- if ($this->processors) {
- foreach ($this->processors as $processor) {
- $record = call_user_func($processor, $record);
- }
- }
-
- $this->buffer[] = $record;
- $this->bufferSize++;
-
- return false === $this->bubble;
- }
-
- public function flush()
- {
- if ($this->bufferSize === 0) {
- return;
- }
-
- $this->handler->handleBatch($this->buffer);
- $this->clear();
- }
-
- public function __destruct()
- {
- // suppress the parent behavior since we already have register_shutdown_function()
- // to call close(), and the reference contained there will prevent this from being
- // GC'd until the end of the request
- }
-
- /**
- * {@inheritdoc}
- */
- public function close()
- {
- $this->flush();
- }
-
- /**
- * Clears the buffer without flushing any messages down to the wrapped handler.
- */
- public function clear()
- {
- $this->bufferSize = 0;
- $this->buffer = array();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php
deleted file mode 100644
index b00fa844..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php
+++ /dev/null
@@ -1,211 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\ChromePHPFormatter;
-use Monolog\Logger;
-
-/**
- * Handler sending logs to the ChromePHP extension (http://www.chromephp.com/)
- *
- * This also works out of the box with Firefox 43+
- *
- * @author Christophe Coevoet <stof@notk.org>
- */
-class ChromePHPHandler extends AbstractProcessingHandler
-{
- /**
- * Version of the extension
- */
- const VERSION = '4.0';
-
- /**
- * Header name
- */
- const HEADER_NAME = 'X-ChromeLogger-Data';
-
- /**
- * Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+)
- */
- const USER_AGENT_REGEX = '{\b(?:Chrome/\d+(?:\.\d+)*|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}';
-
- protected static $initialized = false;
-
- /**
- * Tracks whether we sent too much data
- *
- * Chrome limits the headers to 256KB, so when we sent 240KB we stop sending
- *
- * @var Boolean
- */
- protected static $overflowed = false;
-
- protected static $json = array(
- 'version' => self::VERSION,
- 'columns' => array('label', 'log', 'backtrace', 'type'),
- 'rows' => array(),
- );
-
- protected static $sendHeaders = true;
-
- /**
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($level = Logger::DEBUG, $bubble = true)
- {
- parent::__construct($level, $bubble);
- if (!function_exists('json_encode')) {
- throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s ChromePHPHandler');
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function handleBatch(array $records)
- {
- $messages = array();
-
- foreach ($records as $record) {
- if ($record['level'] < $this->level) {
- continue;
- }
- $messages[] = $this->processRecord($record);
- }
-
- if (!empty($messages)) {
- $messages = $this->getFormatter()->formatBatch($messages);
- self::$json['rows'] = array_merge(self::$json['rows'], $messages);
- $this->send();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new ChromePHPFormatter();
- }
-
- /**
- * Creates & sends header for a record
- *
- * @see sendHeader()
- * @see send()
- * @param array $record
- */
- protected function write(array $record)
- {
- self::$json['rows'][] = $record['formatted'];
-
- $this->send();
- }
-
- /**
- * Sends the log header
- *
- * @see sendHeader()
- */
- protected function send()
- {
- if (self::$overflowed || !self::$sendHeaders) {
- return;
- }
-
- if (!self::$initialized) {
- self::$initialized = true;
-
- self::$sendHeaders = $this->headersAccepted();
- if (!self::$sendHeaders) {
- return;
- }
-
- self::$json['request_uri'] = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
- }
-
- $json = @json_encode(self::$json);
- $data = base64_encode(utf8_encode($json));
- if (strlen($data) > 240 * 1024) {
- self::$overflowed = true;
-
- $record = array(
- 'message' => 'Incomplete logs, chrome header size limit reached',
- 'context' => array(),
- 'level' => Logger::WARNING,
- 'level_name' => Logger::getLevelName(Logger::WARNING),
- 'channel' => 'monolog',
- 'datetime' => new \DateTime(),
- 'extra' => array(),
- );
- self::$json['rows'][count(self::$json['rows']) - 1] = $this->getFormatter()->format($record);
- $json = @json_encode(self::$json);
- $data = base64_encode(utf8_encode($json));
- }
-
- if (trim($data) !== '') {
- $this->sendHeader(self::HEADER_NAME, $data);
- }
- }
-
- /**
- * Send header string to the client
- *
- * @param string $header
- * @param string $content
- */
- protected function sendHeader($header, $content)
- {
- if (!headers_sent() && self::$sendHeaders) {
- header(sprintf('%s: %s', $header, $content));
- }
- }
-
- /**
- * Verifies if the headers are accepted by the current user agent
- *
- * @return Boolean
- */
- protected function headersAccepted()
- {
- if (empty($_SERVER['HTTP_USER_AGENT'])) {
- return false;
- }
-
- return preg_match(self::USER_AGENT_REGEX, $_SERVER['HTTP_USER_AGENT']);
- }
-
- /**
- * BC getter for the sendHeaders property that has been made static
- */
- public function __get($property)
- {
- if ('sendHeaders' !== $property) {
- throw new \InvalidArgumentException('Undefined property '.$property);
- }
-
- return static::$sendHeaders;
- }
-
- /**
- * BC setter for the sendHeaders property that has been made static
- */
- public function __set($property, $value)
- {
- if ('sendHeaders' !== $property) {
- throw new \InvalidArgumentException('Undefined property '.$property);
- }
-
- static::$sendHeaders = $value;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php
deleted file mode 100644
index cc986971..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\JsonFormatter;
-use Monolog\Logger;
-
-/**
- * CouchDB handler
- *
- * @author Markus Bachmann <markus.bachmann@bachi.biz>
- */
-class CouchDBHandler extends AbstractProcessingHandler
-{
- private $options;
-
- public function __construct(array $options = array(), $level = Logger::DEBUG, $bubble = true)
- {
- $this->options = array_merge(array(
- 'host' => 'localhost',
- 'port' => 5984,
- 'dbname' => 'logger',
- 'username' => null,
- 'password' => null,
- ), $options);
-
- parent::__construct($level, $bubble);
- }
-
- /**
- * {@inheritDoc}
- */
- protected function write(array $record)
- {
- $basicAuth = null;
- if ($this->options['username']) {
- $basicAuth = sprintf('%s:%s@', $this->options['username'], $this->options['password']);
- }
-
- $url = 'http://'.$basicAuth.$this->options['host'].':'.$this->options['port'].'/'.$this->options['dbname'];
- $context = stream_context_create(array(
- 'http' => array(
- 'method' => 'POST',
- 'content' => $record['formatted'],
- 'ignore_errors' => true,
- 'max_redirects' => 0,
- 'header' => 'Content-type: application/json',
- ),
- ));
-
- if (false === @file_get_contents($url, null, $context)) {
- throw new \RuntimeException(sprintf('Could not connect to %s', $url));
- }
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php
deleted file mode 100644
index 96b3ca0c..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php
+++ /dev/null
@@ -1,151 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Logs to Cube.
- *
- * @link http://square.github.com/cube/
- * @author Wan Chen <kami@kamisama.me>
- */
-class CubeHandler extends AbstractProcessingHandler
-{
- private $udpConnection;
- private $httpConnection;
- private $scheme;
- private $host;
- private $port;
- private $acceptedSchemes = array('http', 'udp');
-
- /**
- * Create a Cube handler
- *
- * @throws \UnexpectedValueException when given url is not a valid url.
- * A valid url must consist of three parts : protocol://host:port
- * Only valid protocols used by Cube are http and udp
- */
- public function __construct($url, $level = Logger::DEBUG, $bubble = true)
- {
- $urlInfo = parse_url($url);
-
- if (!isset($urlInfo['scheme'], $urlInfo['host'], $urlInfo['port'])) {
- throw new \UnexpectedValueException('URL "'.$url.'" is not valid');
- }
-
- if (!in_array($urlInfo['scheme'], $this->acceptedSchemes)) {
- throw new \UnexpectedValueException(
- 'Invalid protocol (' . $urlInfo['scheme'] . ').'
- . ' Valid options are ' . implode(', ', $this->acceptedSchemes));
- }
-
- $this->scheme = $urlInfo['scheme'];
- $this->host = $urlInfo['host'];
- $this->port = $urlInfo['port'];
-
- parent::__construct($level, $bubble);
- }
-
- /**
- * Establish a connection to an UDP socket
- *
- * @throws \LogicException when unable to connect to the socket
- * @throws MissingExtensionException when there is no socket extension
- */
- protected function connectUdp()
- {
- if (!extension_loaded('sockets')) {
- throw new MissingExtensionException('The sockets extension is required to use udp URLs with the CubeHandler');
- }
-
- $this->udpConnection = socket_create(AF_INET, SOCK_DGRAM, 0);
- if (!$this->udpConnection) {
- throw new \LogicException('Unable to create a socket');
- }
-
- if (!socket_connect($this->udpConnection, $this->host, $this->port)) {
- throw new \LogicException('Unable to connect to the socket at ' . $this->host . ':' . $this->port);
- }
- }
-
- /**
- * Establish a connection to a http server
- * @throws \LogicException when no curl extension
- */
- protected function connectHttp()
- {
- if (!extension_loaded('curl')) {
- throw new \LogicException('The curl extension is needed to use http URLs with the CubeHandler');
- }
-
- $this->httpConnection = curl_init('http://'.$this->host.':'.$this->port.'/1.0/event/put');
-
- if (!$this->httpConnection) {
- throw new \LogicException('Unable to connect to ' . $this->host . ':' . $this->port);
- }
-
- curl_setopt($this->httpConnection, CURLOPT_CUSTOMREQUEST, "POST");
- curl_setopt($this->httpConnection, CURLOPT_RETURNTRANSFER, true);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- $date = $record['datetime'];
-
- $data = array('time' => $date->format('Y-m-d\TH:i:s.uO'));
- unset($record['datetime']);
-
- if (isset($record['context']['type'])) {
- $data['type'] = $record['context']['type'];
- unset($record['context']['type']);
- } else {
- $data['type'] = $record['channel'];
- }
-
- $data['data'] = $record['context'];
- $data['data']['level'] = $record['level'];
-
- if ($this->scheme === 'http') {
- $this->writeHttp(json_encode($data));
- } else {
- $this->writeUdp(json_encode($data));
- }
- }
-
- private function writeUdp($data)
- {
- if (!$this->udpConnection) {
- $this->connectUdp();
- }
-
- socket_send($this->udpConnection, $data, strlen($data), 0);
- }
-
- private function writeHttp($data)
- {
- if (!$this->httpConnection) {
- $this->connectHttp();
- }
-
- curl_setopt($this->httpConnection, CURLOPT_POSTFIELDS, '['.$data.']');
- curl_setopt($this->httpConnection, CURLOPT_HTTPHEADER, array(
- 'Content-Type: application/json',
- 'Content-Length: ' . strlen('['.$data.']'),
- ));
-
- Curl\Util::execute($this->httpConnection, 5, false);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php
deleted file mode 100644
index 48d30b35..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler\Curl;
-
-class Util
-{
- private static $retriableErrorCodes = array(
- CURLE_COULDNT_RESOLVE_HOST,
- CURLE_COULDNT_CONNECT,
- CURLE_HTTP_NOT_FOUND,
- CURLE_READ_ERROR,
- CURLE_OPERATION_TIMEOUTED,
- CURLE_HTTP_POST_ERROR,
- CURLE_SSL_CONNECT_ERROR,
- );
-
- /**
- * Executes a CURL request with optional retries and exception on failure
- *
- * @param resource $ch curl handler
- * @throws \RuntimeException
- */
- public static function execute($ch, $retries = 5, $closeAfterDone = true)
- {
- while ($retries--) {
- if (curl_exec($ch) === false) {
- $curlErrno = curl_errno($ch);
-
- if (false === in_array($curlErrno, self::$retriableErrorCodes, true) || !$retries) {
- $curlError = curl_error($ch);
-
- if ($closeAfterDone) {
- curl_close($ch);
- }
-
- throw new \RuntimeException(sprintf('Curl error (code %s): %s', $curlErrno, $curlError));
- }
-
- continue;
- }
-
- if ($closeAfterDone) {
- curl_close($ch);
- }
- break;
- }
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php
deleted file mode 100644
index 7778c22a..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php
+++ /dev/null
@@ -1,169 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Simple handler wrapper that deduplicates log records across multiple requests
- *
- * It also includes the BufferHandler functionality and will buffer
- * all messages until the end of the request or flush() is called.
- *
- * This works by storing all log records' messages above $deduplicationLevel
- * to the file specified by $deduplicationStore. When further logs come in at the end of the
- * request (or when flush() is called), all those above $deduplicationLevel are checked
- * against the existing stored logs. If they match and the timestamps in the stored log is
- * not older than $time seconds, the new log record is discarded. If no log record is new, the
- * whole data set is discarded.
- *
- * This is mainly useful in combination with Mail handlers or things like Slack or HipChat handlers
- * that send messages to people, to avoid spamming with the same message over and over in case of
- * a major component failure like a database server being down which makes all requests fail in the
- * same way.
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class DeduplicationHandler extends BufferHandler
-{
- /**
- * @var string
- */
- protected $deduplicationStore;
-
- /**
- * @var int
- */
- protected $deduplicationLevel;
-
- /**
- * @var int
- */
- protected $time;
-
- /**
- * @var bool
- */
- private $gc = false;
-
- /**
- * @param HandlerInterface $handler Handler.
- * @param string $deduplicationStore The file/path where the deduplication log should be kept
- * @param int $deduplicationLevel The minimum logging level for log records to be looked at for deduplication purposes
- * @param int $time The period (in seconds) during which duplicate entries should be suppressed after a given log is sent through
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct(HandlerInterface $handler, $deduplicationStore = null, $deduplicationLevel = Logger::ERROR, $time = 60, $bubble = true)
- {
- parent::__construct($handler, 0, Logger::DEBUG, $bubble, false);
-
- $this->deduplicationStore = $deduplicationStore === null ? sys_get_temp_dir() . '/monolog-dedup-' . substr(md5(__FILE__), 0, 20) .'.log' : $deduplicationStore;
- $this->deduplicationLevel = Logger::toMonologLevel($deduplicationLevel);
- $this->time = $time;
- }
-
- public function flush()
- {
- if ($this->bufferSize === 0) {
- return;
- }
-
- $passthru = null;
-
- foreach ($this->buffer as $record) {
- if ($record['level'] >= $this->deduplicationLevel) {
-
- $passthru = $passthru || !$this->isDuplicate($record);
- if ($passthru) {
- $this->appendRecord($record);
- }
- }
- }
-
- // default of null is valid as well as if no record matches duplicationLevel we just pass through
- if ($passthru === true || $passthru === null) {
- $this->handler->handleBatch($this->buffer);
- }
-
- $this->clear();
-
- if ($this->gc) {
- $this->collectLogs();
- }
- }
-
- private function isDuplicate(array $record)
- {
- if (!file_exists($this->deduplicationStore)) {
- return false;
- }
-
- $store = file($this->deduplicationStore, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
- if (!is_array($store)) {
- return false;
- }
-
- $yesterday = time() - 86400;
- $timestampValidity = $record['datetime']->getTimestamp() - $this->time;
- $expectedMessage = preg_replace('{[\r\n].*}', '', $record['message']);
-
- for ($i = count($store) - 1; $i >= 0; $i--) {
- list($timestamp, $level, $message) = explode(':', $store[$i], 3);
-
- if ($level === $record['level_name'] && $message === $expectedMessage && $timestamp > $timestampValidity) {
- return true;
- }
-
- if ($timestamp < $yesterday) {
- $this->gc = true;
- }
- }
-
- return false;
- }
-
- private function collectLogs()
- {
- if (!file_exists($this->deduplicationStore)) {
- return false;
- }
-
- $handle = fopen($this->deduplicationStore, 'rw+');
- flock($handle, LOCK_EX);
- $validLogs = array();
-
- $timestampValidity = time() - $this->time;
-
- while (!feof($handle)) {
- $log = fgets($handle);
- if (substr($log, 0, 10) >= $timestampValidity) {
- $validLogs[] = $log;
- }
- }
-
- ftruncate($handle, 0);
- rewind($handle);
- foreach ($validLogs as $log) {
- fwrite($handle, $log);
- }
-
- flock($handle, LOCK_UN);
- fclose($handle);
-
- $this->gc = false;
- }
-
- private function appendRecord(array $record)
- {
- file_put_contents($this->deduplicationStore, $record['datetime']->getTimestamp() . ':' . $record['level_name'] . ':' . preg_replace('{[\r\n].*}', '', $record['message']) . "\n", FILE_APPEND);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php
deleted file mode 100644
index b91ffec9..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Formatter\NormalizerFormatter;
-use Doctrine\CouchDB\CouchDBClient;
-
-/**
- * CouchDB handler for Doctrine CouchDB ODM
- *
- * @author Markus Bachmann <markus.bachmann@bachi.biz>
- */
-class DoctrineCouchDBHandler extends AbstractProcessingHandler
-{
- private $client;
-
- public function __construct(CouchDBClient $client, $level = Logger::DEBUG, $bubble = true)
- {
- $this->client = $client;
- parent::__construct($level, $bubble);
- }
-
- /**
- * {@inheritDoc}
- */
- protected function write(array $record)
- {
- $this->client->postDocument($record['formatted']);
- }
-
- protected function getDefaultFormatter()
- {
- return new NormalizerFormatter;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php
deleted file mode 100644
index ad1011d3..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Aws\Common\Aws;
-use Aws\DynamoDb\DynamoDbClient;
-use Aws\DynamoDb\Marshaler;
-use Monolog\Formatter\ScalarFormatter;
-use Monolog\Logger;
-
-/**
- * Amazon DynamoDB handler (http://aws.amazon.com/dynamodb/)
- *
- * @link https://github.com/aws/aws-sdk-php/
- * @author Andrew Lawson <adlawson@gmail.com>
- */
-class DynamoDbHandler extends AbstractProcessingHandler
-{
- const DATE_FORMAT = 'Y-m-d\TH:i:s.uO';
-
- /**
- * @var DynamoDbClient
- */
- protected $client;
-
- /**
- * @var string
- */
- protected $table;
-
- /**
- * @var int
- */
- protected $version;
-
- /**
- * @var Marshaler
- */
- protected $marshaler;
-
- /**
- * @param DynamoDbClient $client
- * @param string $table
- * @param int $level
- * @param bool $bubble
- */
- public function __construct(DynamoDbClient $client, $table, $level = Logger::DEBUG, $bubble = true)
- {
- if (defined('Aws\Common\Aws::VERSION') && version_compare(Aws::VERSION, '3.0', '>=')) {
- $this->version = 3;
- $this->marshaler = new Marshaler;
- } else {
- $this->version = 2;
- }
-
- $this->client = $client;
- $this->table = $table;
-
- parent::__construct($level, $bubble);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- $filtered = $this->filterEmptyFields($record['formatted']);
- if ($this->version === 3) {
- $formatted = $this->marshaler->marshalItem($filtered);
- } else {
- $formatted = $this->client->formatAttributes($filtered);
- }
-
- $this->client->putItem(array(
- 'TableName' => $this->table,
- 'Item' => $formatted,
- ));
- }
-
- /**
- * @param array $record
- * @return array
- */
- protected function filterEmptyFields(array $record)
- {
- return array_filter($record, function ($value) {
- return !empty($value) || false === $value || 0 === $value;
- });
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getDefaultFormatter()
- {
- return new ScalarFormatter(self::DATE_FORMAT);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php
deleted file mode 100644
index 81967406..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php
+++ /dev/null
@@ -1,128 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\FormatterInterface;
-use Monolog\Formatter\ElasticaFormatter;
-use Monolog\Logger;
-use Elastica\Client;
-use Elastica\Exception\ExceptionInterface;
-
-/**
- * Elastic Search handler
- *
- * Usage example:
- *
- * $client = new \Elastica\Client();
- * $options = array(
- * 'index' => 'elastic_index_name',
- * 'type' => 'elastic_doc_type',
- * );
- * $handler = new ElasticSearchHandler($client, $options);
- * $log = new Logger('application');
- * $log->pushHandler($handler);
- *
- * @author Jelle Vink <jelle.vink@gmail.com>
- */
-class ElasticSearchHandler extends AbstractProcessingHandler
-{
- /**
- * @var Client
- */
- protected $client;
-
- /**
- * @var array Handler config options
- */
- protected $options = array();
-
- /**
- * @param Client $client Elastica Client object
- * @param array $options Handler configuration
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct(Client $client, array $options = array(), $level = Logger::DEBUG, $bubble = true)
- {
- parent::__construct($level, $bubble);
- $this->client = $client;
- $this->options = array_merge(
- array(
- 'index' => 'monolog', // Elastic index name
- 'type' => 'record', // Elastic document type
- 'ignore_error' => false, // Suppress Elastica exceptions
- ),
- $options
- );
- }
-
- /**
- * {@inheritDoc}
- */
- protected function write(array $record)
- {
- $this->bulkSend(array($record['formatted']));
- }
-
- /**
- * {@inheritdoc}
- */
- public function setFormatter(FormatterInterface $formatter)
- {
- if ($formatter instanceof ElasticaFormatter) {
- return parent::setFormatter($formatter);
- }
- throw new \InvalidArgumentException('ElasticSearchHandler is only compatible with ElasticaFormatter');
- }
-
- /**
- * Getter options
- * @return array
- */
- public function getOptions()
- {
- return $this->options;
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new ElasticaFormatter($this->options['index'], $this->options['type']);
- }
-
- /**
- * {@inheritdoc}
- */
- public function handleBatch(array $records)
- {
- $documents = $this->getFormatter()->formatBatch($records);
- $this->bulkSend($documents);
- }
-
- /**
- * Use Elasticsearch bulk API to send list of documents
- * @param array $documents
- * @throws \RuntimeException
- */
- protected function bulkSend(array $documents)
- {
- try {
- $this->client->addDocuments($documents);
- } catch (ExceptionInterface $e) {
- if (!$this->options['ignore_error']) {
- throw new \RuntimeException("Error sending messages to Elasticsearch", 0, $e);
- }
- }
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php
deleted file mode 100644
index 1447a584..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\LineFormatter;
-use Monolog\Logger;
-
-/**
- * Stores to PHP error_log() handler.
- *
- * @author Elan Ruusamäe <glen@delfi.ee>
- */
-class ErrorLogHandler extends AbstractProcessingHandler
-{
- const OPERATING_SYSTEM = 0;
- const SAPI = 4;
-
- protected $messageType;
- protected $expandNewlines;
-
- /**
- * @param int $messageType Says where the error should go.
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- * @param Boolean $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries
- */
- public function __construct($messageType = self::OPERATING_SYSTEM, $level = Logger::DEBUG, $bubble = true, $expandNewlines = false)
- {
- parent::__construct($level, $bubble);
-
- if (false === in_array($messageType, self::getAvailableTypes())) {
- $message = sprintf('The given message type "%s" is not supported', print_r($messageType, true));
- throw new \InvalidArgumentException($message);
- }
-
- $this->messageType = $messageType;
- $this->expandNewlines = $expandNewlines;
- }
-
- /**
- * @return array With all available types
- */
- public static function getAvailableTypes()
- {
- return array(
- self::OPERATING_SYSTEM,
- self::SAPI,
- );
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%');
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- if ($this->expandNewlines) {
- $lines = preg_split('{[\r\n]+}', (string) $record['formatted']);
- foreach ($lines as $line) {
- error_log($line, $this->messageType);
- }
- } else {
- error_log((string) $record['formatted'], $this->messageType);
- }
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php
deleted file mode 100644
index 2a0f7fd1..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php
+++ /dev/null
@@ -1,140 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Simple handler wrapper that filters records based on a list of levels
- *
- * It can be configured with an exact list of levels to allow, or a min/max level.
- *
- * @author Hennadiy Verkh
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class FilterHandler extends AbstractHandler
-{
- /**
- * Handler or factory callable($record, $this)
- *
- * @var callable|\Monolog\Handler\HandlerInterface
- */
- protected $handler;
-
- /**
- * Minimum level for logs that are passed to handler
- *
- * @var int[]
- */
- protected $acceptedLevels;
-
- /**
- * Whether the messages that are handled can bubble up the stack or not
- *
- * @var Boolean
- */
- protected $bubble;
-
- /**
- * @param callable|HandlerInterface $handler Handler or factory callable($record, $this).
- * @param int|array $minLevelOrList A list of levels to accept or a minimum level if maxLevel is provided
- * @param int $maxLevel Maximum level to accept, only used if $minLevelOrList is not an array
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($handler, $minLevelOrList = Logger::DEBUG, $maxLevel = Logger::EMERGENCY, $bubble = true)
- {
- $this->handler = $handler;
- $this->bubble = $bubble;
- $this->setAcceptedLevels($minLevelOrList, $maxLevel);
-
- if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) {
- throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable nor a Monolog\Handler\HandlerInterface object");
- }
- }
-
- /**
- * @return array
- */
- public function getAcceptedLevels()
- {
- return array_flip($this->acceptedLevels);
- }
-
- /**
- * @param int|string|array $minLevelOrList A list of levels to accept or a minimum level or level name if maxLevel is provided
- * @param int|string $maxLevel Maximum level or level name to accept, only used if $minLevelOrList is not an array
- */
- public function setAcceptedLevels($minLevelOrList = Logger::DEBUG, $maxLevel = Logger::EMERGENCY)
- {
- if (is_array($minLevelOrList)) {
- $acceptedLevels = array_map('Monolog\Logger::toMonologLevel', $minLevelOrList);
- } else {
- $minLevelOrList = Logger::toMonologLevel($minLevelOrList);
- $maxLevel = Logger::toMonologLevel($maxLevel);
- $acceptedLevels = array_values(array_filter(Logger::getLevels(), function ($level) use ($minLevelOrList, $maxLevel) {
- return $level >= $minLevelOrList && $level <= $maxLevel;
- }));
- }
- $this->acceptedLevels = array_flip($acceptedLevels);
- }
-
- /**
- * {@inheritdoc}
- */
- public function isHandling(array $record)
- {
- return isset($this->acceptedLevels[$record['level']]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function handle(array $record)
- {
- if (!$this->isHandling($record)) {
- return false;
- }
-
- // The same logic as in FingersCrossedHandler
- if (!$this->handler instanceof HandlerInterface) {
- $this->handler = call_user_func($this->handler, $record, $this);
- if (!$this->handler instanceof HandlerInterface) {
- throw new \RuntimeException("The factory callable should return a HandlerInterface");
- }
- }
-
- if ($this->processors) {
- foreach ($this->processors as $processor) {
- $record = call_user_func($processor, $record);
- }
- }
-
- $this->handler->handle($record);
-
- return false === $this->bubble;
- }
-
- /**
- * {@inheritdoc}
- */
- public function handleBatch(array $records)
- {
- $filtered = array();
- foreach ($records as $record) {
- if ($this->isHandling($record)) {
- $filtered[] = $record;
- }
- }
-
- $this->handler->handleBatch($filtered);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php
deleted file mode 100644
index c3e42efe..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler\FingersCrossed;
-
-/**
- * Interface for activation strategies for the FingersCrossedHandler.
- *
- * @author Johannes M. Schmitt <schmittjoh@gmail.com>
- */
-interface ActivationStrategyInterface
-{
- /**
- * Returns whether the given record activates the handler.
- *
- * @param array $record
- * @return Boolean
- */
- public function isHandlerActivated(array $record);
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php
deleted file mode 100644
index 2a2a64d9..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler\FingersCrossed;
-
-use Monolog\Logger;
-
-/**
- * Channel and Error level based monolog activation strategy. Allows to trigger activation
- * based on level per channel. e.g. trigger activation on level 'ERROR' by default, except
- * for records of the 'sql' channel; those should trigger activation on level 'WARN'.
- *
- * Example:
- *
- * <code>
- * $activationStrategy = new ChannelLevelActivationStrategy(
- * Logger::CRITICAL,
- * array(
- * 'request' => Logger::ALERT,
- * 'sensitive' => Logger::ERROR,
- * )
- * );
- * $handler = new FingersCrossedHandler(new StreamHandler('php://stderr'), $activationStrategy);
- * </code>
- *
- * @author Mike Meessen <netmikey@gmail.com>
- */
-class ChannelLevelActivationStrategy implements ActivationStrategyInterface
-{
- private $defaultActionLevel;
- private $channelToActionLevel;
-
- /**
- * @param int $defaultActionLevel The default action level to be used if the record's category doesn't match any
- * @param array $channelToActionLevel An array that maps channel names to action levels.
- */
- public function __construct($defaultActionLevel, $channelToActionLevel = array())
- {
- $this->defaultActionLevel = Logger::toMonologLevel($defaultActionLevel);
- $this->channelToActionLevel = array_map('Monolog\Logger::toMonologLevel', $channelToActionLevel);
- }
-
- public function isHandlerActivated(array $record)
- {
- if (isset($this->channelToActionLevel[$record['channel']])) {
- return $record['level'] >= $this->channelToActionLevel[$record['channel']];
- }
-
- return $record['level'] >= $this->defaultActionLevel;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php
deleted file mode 100644
index 6e630852..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler\FingersCrossed;
-
-use Monolog\Logger;
-
-/**
- * Error level based activation strategy.
- *
- * @author Johannes M. Schmitt <schmittjoh@gmail.com>
- */
-class ErrorLevelActivationStrategy implements ActivationStrategyInterface
-{
- private $actionLevel;
-
- public function __construct($actionLevel)
- {
- $this->actionLevel = Logger::toMonologLevel($actionLevel);
- }
-
- public function isHandlerActivated(array $record)
- {
- return $record['level'] >= $this->actionLevel;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php
deleted file mode 100644
index d1dcaacf..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
-use Monolog\Handler\FingersCrossed\ActivationStrategyInterface;
-use Monolog\Logger;
-
-/**
- * Buffers all records until a certain level is reached
- *
- * The advantage of this approach is that you don't get any clutter in your log files.
- * Only requests which actually trigger an error (or whatever your actionLevel is) will be
- * in the logs, but they will contain all records, not only those above the level threshold.
- *
- * You can find the various activation strategies in the
- * Monolog\Handler\FingersCrossed\ namespace.
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class FingersCrossedHandler extends AbstractHandler
-{
- protected $handler;
- protected $activationStrategy;
- protected $buffering = true;
- protected $bufferSize;
- protected $buffer = array();
- protected $stopBuffering;
- protected $passthruLevel;
-
- /**
- * @param callable|HandlerInterface $handler Handler or factory callable($record, $fingersCrossedHandler).
- * @param int|ActivationStrategyInterface $activationStrategy Strategy which determines when this handler takes action
- * @param int $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- * @param Boolean $stopBuffering Whether the handler should stop buffering after being triggered (default true)
- * @param int $passthruLevel Minimum level to always flush to handler on close, even if strategy not triggered
- */
- public function __construct($handler, $activationStrategy = null, $bufferSize = 0, $bubble = true, $stopBuffering = true, $passthruLevel = null)
- {
- if (null === $activationStrategy) {
- $activationStrategy = new ErrorLevelActivationStrategy(Logger::WARNING);
- }
-
- // convert simple int activationStrategy to an object
- if (!$activationStrategy instanceof ActivationStrategyInterface) {
- $activationStrategy = new ErrorLevelActivationStrategy($activationStrategy);
- }
-
- $this->handler = $handler;
- $this->activationStrategy = $activationStrategy;
- $this->bufferSize = $bufferSize;
- $this->bubble = $bubble;
- $this->stopBuffering = $stopBuffering;
-
- if ($passthruLevel !== null) {
- $this->passthruLevel = Logger::toMonologLevel($passthruLevel);
- }
-
- if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) {
- throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable nor a Monolog\Handler\HandlerInterface object");
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function isHandling(array $record)
- {
- return true;
- }
-
- /**
- * Manually activate this logger regardless of the activation strategy
- */
- public function activate()
- {
- if ($this->stopBuffering) {
- $this->buffering = false;
- }
- if (!$this->handler instanceof HandlerInterface) {
- $record = end($this->buffer) ?: null;
-
- $this->handler = call_user_func($this->handler, $record, $this);
- if (!$this->handler instanceof HandlerInterface) {
- throw new \RuntimeException("The factory callable should return a HandlerInterface");
- }
- }
- $this->handler->handleBatch($this->buffer);
- $this->buffer = array();
- }
-
- /**
- * {@inheritdoc}
- */
- public function handle(array $record)
- {
- if ($this->processors) {
- foreach ($this->processors as $processor) {
- $record = call_user_func($processor, $record);
- }
- }
-
- if ($this->buffering) {
- $this->buffer[] = $record;
- if ($this->bufferSize > 0 && count($this->buffer) > $this->bufferSize) {
- array_shift($this->buffer);
- }
- if ($this->activationStrategy->isHandlerActivated($record)) {
- $this->activate();
- }
- } else {
- $this->handler->handle($record);
- }
-
- return false === $this->bubble;
- }
-
- /**
- * {@inheritdoc}
- */
- public function close()
- {
- if (null !== $this->passthruLevel) {
- $level = $this->passthruLevel;
- $this->buffer = array_filter($this->buffer, function ($record) use ($level) {
- return $record['level'] >= $level;
- });
- if (count($this->buffer) > 0) {
- $this->handler->handleBatch($this->buffer);
- $this->buffer = array();
- }
- }
- }
-
- /**
- * Resets the state of the handler. Stops forwarding records to the wrapped handler.
- */
- public function reset()
- {
- $this->buffering = true;
- }
-
- /**
- * Clears the buffer without flushing any messages down to the wrapped handler.
- *
- * It also resets the handler to its initial buffering state.
- */
- public function clear()
- {
- $this->buffer = array();
- $this->reset();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php
deleted file mode 100644
index fee47950..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php
+++ /dev/null
@@ -1,195 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\WildfireFormatter;
-
-/**
- * Simple FirePHP Handler (http://www.firephp.org/), which uses the Wildfire protocol.
- *
- * @author Eric Clemmons (@ericclemmons) <eric@uxdriven.com>
- */
-class FirePHPHandler extends AbstractProcessingHandler
-{
- /**
- * WildFire JSON header message format
- */
- const PROTOCOL_URI = 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2';
-
- /**
- * FirePHP structure for parsing messages & their presentation
- */
- const STRUCTURE_URI = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1';
-
- /**
- * Must reference a "known" plugin, otherwise headers won't display in FirePHP
- */
- const PLUGIN_URI = 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3';
-
- /**
- * Header prefix for Wildfire to recognize & parse headers
- */
- const HEADER_PREFIX = 'X-Wf';
-
- /**
- * Whether or not Wildfire vendor-specific headers have been generated & sent yet
- */
- protected static $initialized = false;
-
- /**
- * Shared static message index between potentially multiple handlers
- * @var int
- */
- protected static $messageIndex = 1;
-
- protected static $sendHeaders = true;
-
- /**
- * Base header creation function used by init headers & record headers
- *
- * @param array $meta Wildfire Plugin, Protocol & Structure Indexes
- * @param string $message Log message
- * @return array Complete header string ready for the client as key and message as value
- */
- protected function createHeader(array $meta, $message)
- {
- $header = sprintf('%s-%s', self::HEADER_PREFIX, join('-', $meta));
-
- return array($header => $message);
- }
-
- /**
- * Creates message header from record
- *
- * @see createHeader()
- * @param array $record
- * @return string
- */
- protected function createRecordHeader(array $record)
- {
- // Wildfire is extensible to support multiple protocols & plugins in a single request,
- // but we're not taking advantage of that (yet), so we're using "1" for simplicity's sake.
- return $this->createHeader(
- array(1, 1, 1, self::$messageIndex++),
- $record['formatted']
- );
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new WildfireFormatter();
- }
-
- /**
- * Wildfire initialization headers to enable message parsing
- *
- * @see createHeader()
- * @see sendHeader()
- * @return array
- */
- protected function getInitHeaders()
- {
- // Initial payload consists of required headers for Wildfire
- return array_merge(
- $this->createHeader(array('Protocol', 1), self::PROTOCOL_URI),
- $this->createHeader(array(1, 'Structure', 1), self::STRUCTURE_URI),
- $this->createHeader(array(1, 'Plugin', 1), self::PLUGIN_URI)
- );
- }
-
- /**
- * Send header string to the client
- *
- * @param string $header
- * @param string $content
- */
- protected function sendHeader($header, $content)
- {
- if (!headers_sent() && self::$sendHeaders) {
- header(sprintf('%s: %s', $header, $content));
- }
- }
-
- /**
- * Creates & sends header for a record, ensuring init headers have been sent prior
- *
- * @see sendHeader()
- * @see sendInitHeaders()
- * @param array $record
- */
- protected function write(array $record)
- {
- if (!self::$sendHeaders) {
- return;
- }
-
- // WildFire-specific headers must be sent prior to any messages
- if (!self::$initialized) {
- self::$initialized = true;
-
- self::$sendHeaders = $this->headersAccepted();
- if (!self::$sendHeaders) {
- return;
- }
-
- foreach ($this->getInitHeaders() as $header => $content) {
- $this->sendHeader($header, $content);
- }
- }
-
- $header = $this->createRecordHeader($record);
- if (trim(current($header)) !== '') {
- $this->sendHeader(key($header), current($header));
- }
- }
-
- /**
- * Verifies if the headers are accepted by the current user agent
- *
- * @return Boolean
- */
- protected function headersAccepted()
- {
- if (!empty($_SERVER['HTTP_USER_AGENT']) && preg_match('{\bFirePHP/\d+\.\d+\b}', $_SERVER['HTTP_USER_AGENT'])) {
- return true;
- }
-
- return isset($_SERVER['HTTP_X_FIREPHP_VERSION']);
- }
-
- /**
- * BC getter for the sendHeaders property that has been made static
- */
- public function __get($property)
- {
- if ('sendHeaders' !== $property) {
- throw new \InvalidArgumentException('Undefined property '.$property);
- }
-
- return static::$sendHeaders;
- }
-
- /**
- * BC setter for the sendHeaders property that has been made static
- */
- public function __set($property, $value)
- {
- if ('sendHeaders' !== $property) {
- throw new \InvalidArgumentException('Undefined property '.$property);
- }
-
- static::$sendHeaders = $value;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php
deleted file mode 100644
index c43c0134..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php
+++ /dev/null
@@ -1,126 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\LineFormatter;
-use Monolog\Logger;
-
-/**
- * Sends logs to Fleep.io using Webhook integrations
- *
- * You'll need a Fleep.io account to use this handler.
- *
- * @see https://fleep.io/integrations/webhooks/ Fleep Webhooks Documentation
- * @author Ando Roots <ando@sqroot.eu>
- */
-class FleepHookHandler extends SocketHandler
-{
- const FLEEP_HOST = 'fleep.io';
-
- const FLEEP_HOOK_URI = '/hook/';
-
- /**
- * @var string Webhook token (specifies the conversation where logs are sent)
- */
- protected $token;
-
- /**
- * Construct a new Fleep.io Handler.
- *
- * For instructions on how to create a new web hook in your conversations
- * see https://fleep.io/integrations/webhooks/
- *
- * @param string $token Webhook token
- * @param bool|int $level The minimum logging level at which this handler will be triggered
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- * @throws MissingExtensionException
- */
- public function __construct($token, $level = Logger::DEBUG, $bubble = true)
- {
- if (!extension_loaded('openssl')) {
- throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FleepHookHandler');
- }
-
- $this->token = $token;
-
- $connectionString = 'ssl://' . self::FLEEP_HOST . ':443';
- parent::__construct($connectionString, $level, $bubble);
- }
-
- /**
- * Returns the default formatter to use with this handler
- *
- * Overloaded to remove empty context and extra arrays from the end of the log message.
- *
- * @return LineFormatter
- */
- protected function getDefaultFormatter()
- {
- return new LineFormatter(null, null, true, true);
- }
-
- /**
- * Handles a log record
- *
- * @param array $record
- */
- public function write(array $record)
- {
- parent::write($record);
- $this->closeSocket();
- }
-
- /**
- * {@inheritdoc}
- *
- * @param array $record
- * @return string
- */
- protected function generateDataStream($record)
- {
- $content = $this->buildContent($record);
-
- return $this->buildHeader($content) . $content;
- }
-
- /**
- * Builds the header of the API Call
- *
- * @param string $content
- * @return string
- */
- private function buildHeader($content)
- {
- $header = "POST " . self::FLEEP_HOOK_URI . $this->token . " HTTP/1.1\r\n";
- $header .= "Host: " . self::FLEEP_HOST . "\r\n";
- $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
- $header .= "Content-Length: " . strlen($content) . "\r\n";
- $header .= "\r\n";
-
- return $header;
- }
-
- /**
- * Builds the body of API call
- *
- * @param array $record
- * @return string
- */
- private function buildContent($record)
- {
- $dataArray = array(
- 'message' => $record['formatted'],
- );
-
- return http_build_query($dataArray);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php
deleted file mode 100644
index dd9a361c..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php
+++ /dev/null
@@ -1,127 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Formatter\FlowdockFormatter;
-use Monolog\Formatter\FormatterInterface;
-
-/**
- * Sends notifications through the Flowdock push API
- *
- * This must be configured with a FlowdockFormatter instance via setFormatter()
- *
- * Notes:
- * API token - Flowdock API token
- *
- * @author Dominik Liebler <liebler.dominik@gmail.com>
- * @see https://www.flowdock.com/api/push
- */
-class FlowdockHandler extends SocketHandler
-{
- /**
- * @var string
- */
- protected $apiToken;
-
- /**
- * @param string $apiToken
- * @param bool|int $level The minimum logging level at which this handler will be triggered
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- *
- * @throws MissingExtensionException if OpenSSL is missing
- */
- public function __construct($apiToken, $level = Logger::DEBUG, $bubble = true)
- {
- if (!extension_loaded('openssl')) {
- throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FlowdockHandler');
- }
-
- parent::__construct('ssl://api.flowdock.com:443', $level, $bubble);
- $this->apiToken = $apiToken;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setFormatter(FormatterInterface $formatter)
- {
- if (!$formatter instanceof FlowdockFormatter) {
- throw new \InvalidArgumentException('The FlowdockHandler requires an instance of Monolog\Formatter\FlowdockFormatter to function correctly');
- }
-
- return parent::setFormatter($formatter);
- }
-
- /**
- * Gets the default formatter.
- *
- * @return FormatterInterface
- */
- protected function getDefaultFormatter()
- {
- throw new \InvalidArgumentException('The FlowdockHandler must be configured (via setFormatter) with an instance of Monolog\Formatter\FlowdockFormatter to function correctly');
- }
-
- /**
- * {@inheritdoc}
- *
- * @param array $record
- */
- protected function write(array $record)
- {
- parent::write($record);
-
- $this->closeSocket();
- }
-
- /**
- * {@inheritdoc}
- *
- * @param array $record
- * @return string
- */
- protected function generateDataStream($record)
- {
- $content = $this->buildContent($record);
-
- return $this->buildHeader($content) . $content;
- }
-
- /**
- * Builds the body of API call
- *
- * @param array $record
- * @return string
- */
- private function buildContent($record)
- {
- return json_encode($record['formatted']['flowdock']);
- }
-
- /**
- * Builds the header of the API Call
- *
- * @param string $content
- * @return string
- */
- private function buildHeader($content)
- {
- $header = "POST /v1/messages/team_inbox/" . $this->apiToken . " HTTP/1.1\r\n";
- $header .= "Host: api.flowdock.com\r\n";
- $header .= "Content-Type: application/json\r\n";
- $header .= "Content-Length: " . strlen($content) . "\r\n";
- $header .= "\r\n";
-
- return $header;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php
deleted file mode 100644
index d3847d82..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Gelf\IMessagePublisher;
-use Gelf\PublisherInterface;
-use Gelf\Publisher;
-use InvalidArgumentException;
-use Monolog\Logger;
-use Monolog\Formatter\GelfMessageFormatter;
-
-/**
- * Handler to send messages to a Graylog2 (http://www.graylog2.org) server
- *
- * @author Matt Lehner <mlehner@gmail.com>
- * @author Benjamin Zikarsky <benjamin@zikarsky.de>
- */
-class GelfHandler extends AbstractProcessingHandler
-{
- /**
- * @var Publisher the publisher object that sends the message to the server
- */
- protected $publisher;
-
- /**
- * @param PublisherInterface|IMessagePublisher|Publisher $publisher a publisher object
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($publisher, $level = Logger::DEBUG, $bubble = true)
- {
- parent::__construct($level, $bubble);
-
- if (!$publisher instanceof Publisher && !$publisher instanceof IMessagePublisher && !$publisher instanceof PublisherInterface) {
- throw new InvalidArgumentException('Invalid publisher, expected a Gelf\Publisher, Gelf\IMessagePublisher or Gelf\PublisherInterface instance');
- }
-
- $this->publisher = $publisher;
- }
-
- /**
- * {@inheritdoc}
- */
- public function close()
- {
- $this->publisher = null;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- $this->publisher->publish($record['formatted']);
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new GelfMessageFormatter();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php
deleted file mode 100644
index 663f5a92..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php
+++ /dev/null
@@ -1,104 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\FormatterInterface;
-
-/**
- * Forwards records to multiple handlers
- *
- * @author Lenar Lõhmus <lenar@city.ee>
- */
-class GroupHandler extends AbstractHandler
-{
- protected $handlers;
-
- /**
- * @param array $handlers Array of Handlers.
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct(array $handlers, $bubble = true)
- {
- foreach ($handlers as $handler) {
- if (!$handler instanceof HandlerInterface) {
- throw new \InvalidArgumentException('The first argument of the GroupHandler must be an array of HandlerInterface instances.');
- }
- }
-
- $this->handlers = $handlers;
- $this->bubble = $bubble;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isHandling(array $record)
- {
- foreach ($this->handlers as $handler) {
- if ($handler->isHandling($record)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function handle(array $record)
- {
- if ($this->processors) {
- foreach ($this->processors as $processor) {
- $record = call_user_func($processor, $record);
- }
- }
-
- foreach ($this->handlers as $handler) {
- $handler->handle($record);
- }
-
- return false === $this->bubble;
- }
-
- /**
- * {@inheritdoc}
- */
- public function handleBatch(array $records)
- {
- if ($this->processors) {
- $processed = array();
- foreach ($records as $record) {
- foreach ($this->processors as $processor) {
- $processed[] = call_user_func($processor, $record);
- }
- }
- $records = $processed;
- }
-
- foreach ($this->handlers as $handler) {
- $handler->handleBatch($records);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function setFormatter(FormatterInterface $formatter)
- {
- foreach ($this->handlers as $handler) {
- $handler->setFormatter($formatter);
- }
-
- return $this;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php
deleted file mode 100644
index d920c4ba..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\FormatterInterface;
-
-/**
- * Interface that all Monolog Handlers must implement
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-interface HandlerInterface
-{
- /**
- * Checks whether the given record will be handled by this handler.
- *
- * This is mostly done for performance reasons, to avoid calling processors for nothing.
- *
- * Handlers should still check the record levels within handle(), returning false in isHandling()
- * is no guarantee that handle() will not be called, and isHandling() might not be called
- * for a given record.
- *
- * @param array $record Partial log record containing only a level key
- *
- * @return Boolean
- */
- public function isHandling(array $record);
-
- /**
- * Handles a record.
- *
- * All records may be passed to this method, and the handler should discard
- * those that it does not want to handle.
- *
- * The return value of this function controls the bubbling process of the handler stack.
- * Unless the bubbling is interrupted (by returning true), the Logger class will keep on
- * calling further handlers in the stack with a given log record.
- *
- * @param array $record The record to handle
- * @return Boolean true means that this handler handled the record, and that bubbling is not permitted.
- * false means the record was either not processed or that this handler allows bubbling.
- */
- public function handle(array $record);
-
- /**
- * Handles a set of records at once.
- *
- * @param array $records The records to handle (an array of record arrays)
- */
- public function handleBatch(array $records);
-
- /**
- * Adds a processor in the stack.
- *
- * @param callable $callback
- * @return self
- */
- public function pushProcessor($callback);
-
- /**
- * Removes the processor on top of the stack and returns it.
- *
- * @return callable
- */
- public function popProcessor();
-
- /**
- * Sets the formatter.
- *
- * @param FormatterInterface $formatter
- * @return self
- */
- public function setFormatter(FormatterInterface $formatter);
-
- /**
- * Gets the formatter.
- *
- * @return FormatterInterface
- */
- public function getFormatter();
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php
deleted file mode 100644
index 56bc2704..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\FormatterInterface;
-
-/**
- * This simple wrapper class can be used to extend handlers functionality.
- *
- * Example: A filtering handle. Inherit from this class, override isHandling() like this
- *
- * public function isHandling(array $record)
- * {
- * if ($record meets certain conditions) {
- * return false;
- * }
- * return $this->handler->isHandling($record);
- * }
- *
- * @author Alexey Karapetov <alexey@karapetov.com>
- */
-class HandlerWrapper implements HandlerInterface
-{
- /**
- * @var HandlerInterface
- */
- protected $handler;
-
- /**
- * HandlerWrapper constructor.
- * @param HandlerInterface $handler
- */
- public function __construct(HandlerInterface $handler)
- {
- $this->handler = $handler;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isHandling(array $record)
- {
- return $this->handler->isHandling($record);
- }
-
- /**
- * {@inheritdoc}
- */
- public function handle(array $record)
- {
- return $this->handler->handle($record);
- }
-
- /**
- * {@inheritdoc}
- */
- public function handleBatch(array $records)
- {
- return $this->handler->handleBatch($records);
- }
-
- /**
- * {@inheritdoc}
- */
- public function pushProcessor($callback)
- {
- $this->handler->pushProcessor($callback);
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function popProcessor()
- {
- return $this->handler->popProcessor();
- }
-
- /**
- * {@inheritdoc}
- */
- public function setFormatter(FormatterInterface $formatter)
- {
- $this->handler->setFormatter($formatter);
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFormatter()
- {
- return $this->handler->getFormatter();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php
deleted file mode 100644
index 73049f36..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php
+++ /dev/null
@@ -1,350 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Sends notifications through the hipchat api to a hipchat room
- *
- * Notes:
- * API token - HipChat API token
- * Room - HipChat Room Id or name, where messages are sent
- * Name - Name used to send the message (from)
- * notify - Should the message trigger a notification in the clients
- * version - The API version to use (HipChatHandler::API_V1 | HipChatHandler::API_V2)
- *
- * @author Rafael Dohms <rafael@doh.ms>
- * @see https://www.hipchat.com/docs/api
- */
-class HipChatHandler extends SocketHandler
-{
- /**
- * Use API version 1
- */
- const API_V1 = 'v1';
-
- /**
- * Use API version v2
- */
- const API_V2 = 'v2';
-
- /**
- * The maximum allowed length for the name used in the "from" field.
- */
- const MAXIMUM_NAME_LENGTH = 15;
-
- /**
- * The maximum allowed length for the message.
- */
- const MAXIMUM_MESSAGE_LENGTH = 9500;
-
- /**
- * @var string
- */
- private $token;
-
- /**
- * @var string
- */
- private $room;
-
- /**
- * @var string
- */
- private $name;
-
- /**
- * @var bool
- */
- private $notify;
-
- /**
- * @var string
- */
- private $format;
-
- /**
- * @var string
- */
- private $host;
-
- /**
- * @var string
- */
- private $version;
-
- /**
- * @param string $token HipChat API Token
- * @param string $room The room that should be alerted of the message (Id or Name)
- * @param string $name Name used in the "from" field.
- * @param bool $notify Trigger a notification in clients or not
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- * @param bool $useSSL Whether to connect via SSL.
- * @param string $format The format of the messages (default to text, can be set to html if you have html in the messages)
- * @param string $host The HipChat server hostname.
- * @param string $version The HipChat API version (default HipChatHandler::API_V1)
- */
- public function __construct($token, $room, $name = 'Monolog', $notify = false, $level = Logger::CRITICAL, $bubble = true, $useSSL = true, $format = 'text', $host = 'api.hipchat.com', $version = self::API_V1)
- {
- if ($version == self::API_V1 && !$this->validateStringLength($name, static::MAXIMUM_NAME_LENGTH)) {
- throw new \InvalidArgumentException('The supplied name is too long. HipChat\'s v1 API supports names up to 15 UTF-8 characters.');
- }
-
- $connectionString = $useSSL ? 'ssl://'.$host.':443' : $host.':80';
- parent::__construct($connectionString, $level, $bubble);
-
- $this->token = $token;
- $this->name = $name;
- $this->notify = $notify;
- $this->room = $room;
- $this->format = $format;
- $this->host = $host;
- $this->version = $version;
- }
-
- /**
- * {@inheritdoc}
- *
- * @param array $record
- * @return string
- */
- protected function generateDataStream($record)
- {
- $content = $this->buildContent($record);
-
- return $this->buildHeader($content) . $content;
- }
-
- /**
- * Builds the body of API call
- *
- * @param array $record
- * @return string
- */
- private function buildContent($record)
- {
- $dataArray = array(
- 'notify' => $this->version == self::API_V1 ?
- ($this->notify ? 1 : 0) :
- ($this->notify ? 'true' : 'false'),
- 'message' => $record['formatted'],
- 'message_format' => $this->format,
- 'color' => $this->getAlertColor($record['level']),
- );
-
- if (!$this->validateStringLength($dataArray['message'], static::MAXIMUM_MESSAGE_LENGTH)) {
- if (function_exists('mb_substr')) {
- $dataArray['message'] = mb_substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH).' [truncated]';
- } else {
- $dataArray['message'] = substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH).' [truncated]';
- }
- }
-
- // if we are using the legacy API then we need to send some additional information
- if ($this->version == self::API_V1) {
- $dataArray['room_id'] = $this->room;
- }
-
- // append the sender name if it is set
- // always append it if we use the v1 api (it is required in v1)
- if ($this->version == self::API_V1 || $this->name !== null) {
- $dataArray['from'] = (string) $this->name;
- }
-
- return http_build_query($dataArray);
- }
-
- /**
- * Builds the header of the API Call
- *
- * @param string $content
- * @return string
- */
- private function buildHeader($content)
- {
- if ($this->version == self::API_V1) {
- $header = "POST /v1/rooms/message?format=json&auth_token={$this->token} HTTP/1.1\r\n";
- } else {
- // needed for rooms with special (spaces, etc) characters in the name
- $room = rawurlencode($this->room);
- $header = "POST /v2/room/{$room}/notification?auth_token={$this->token} HTTP/1.1\r\n";
- }
-
- $header .= "Host: {$this->host}\r\n";
- $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
- $header .= "Content-Length: " . strlen($content) . "\r\n";
- $header .= "\r\n";
-
- return $header;
- }
-
- /**
- * Assigns a color to each level of log records.
- *
- * @param int $level
- * @return string
- */
- protected function getAlertColor($level)
- {
- switch (true) {
- case $level >= Logger::ERROR:
- return 'red';
- case $level >= Logger::WARNING:
- return 'yellow';
- case $level >= Logger::INFO:
- return 'green';
- case $level == Logger::DEBUG:
- return 'gray';
- default:
- return 'yellow';
- }
- }
-
- /**
- * {@inheritdoc}
- *
- * @param array $record
- */
- protected function write(array $record)
- {
- parent::write($record);
- $this->closeSocket();
- }
-
- /**
- * {@inheritdoc}
- */
- public function handleBatch(array $records)
- {
- if (count($records) == 0) {
- return true;
- }
-
- $batchRecords = $this->combineRecords($records);
-
- $handled = false;
- foreach ($batchRecords as $batchRecord) {
- if ($this->isHandling($batchRecord)) {
- $this->write($batchRecord);
- $handled = true;
- }
- }
-
- if (!$handled) {
- return false;
- }
-
- return false === $this->bubble;
- }
-
- /**
- * Combines multiple records into one. Error level of the combined record
- * will be the highest level from the given records. Datetime will be taken
- * from the first record.
- *
- * @param $records
- * @return array
- */
- private function combineRecords($records)
- {
- $batchRecord = null;
- $batchRecords = array();
- $messages = array();
- $formattedMessages = array();
- $level = 0;
- $levelName = null;
- $datetime = null;
-
- foreach ($records as $record) {
- $record = $this->processRecord($record);
-
- if ($record['level'] > $level) {
- $level = $record['level'];
- $levelName = $record['level_name'];
- }
-
- if (null === $datetime) {
- $datetime = $record['datetime'];
- }
-
- $messages[] = $record['message'];
- $messageStr = implode(PHP_EOL, $messages);
- $formattedMessages[] = $this->getFormatter()->format($record);
- $formattedMessageStr = implode('', $formattedMessages);
-
- $batchRecord = array(
- 'message' => $messageStr,
- 'formatted' => $formattedMessageStr,
- 'context' => array(),
- 'extra' => array(),
- );
-
- if (!$this->validateStringLength($batchRecord['formatted'], static::MAXIMUM_MESSAGE_LENGTH)) {
- // Pop the last message and implode the remaining messages
- $lastMessage = array_pop($messages);
- $lastFormattedMessage = array_pop($formattedMessages);
- $batchRecord['message'] = implode(PHP_EOL, $messages);
- $batchRecord['formatted'] = implode('', $formattedMessages);
-
- $batchRecords[] = $batchRecord;
- $messages = array($lastMessage);
- $formattedMessages = array($lastFormattedMessage);
-
- $batchRecord = null;
- }
- }
-
- if (null !== $batchRecord) {
- $batchRecords[] = $batchRecord;
- }
-
- // Set the max level and datetime for all records
- foreach ($batchRecords as &$batchRecord) {
- $batchRecord = array_merge(
- $batchRecord,
- array(
- 'level' => $level,
- 'level_name' => $levelName,
- 'datetime' => $datetime,
- )
- );
- }
-
- return $batchRecords;
- }
-
- /**
- * Validates the length of a string.
- *
- * If the `mb_strlen()` function is available, it will use that, as HipChat
- * allows UTF-8 characters. Otherwise, it will fall back to `strlen()`.
- *
- * Note that this might cause false failures in the specific case of using
- * a valid name with less than 16 characters, but 16 or more bytes, on a
- * system where `mb_strlen()` is unavailable.
- *
- * @param string $str
- * @param int $length
- *
- * @return bool
- */
- private function validateStringLength($str, $length)
- {
- if (function_exists('mb_strlen')) {
- return (mb_strlen($str) <= $length);
- }
-
- return (strlen($str) <= $length);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php
deleted file mode 100644
index d60a3c82..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * IFTTTHandler uses cURL to trigger IFTTT Maker actions
- *
- * Register a secret key and trigger/event name at https://ifttt.com/maker
- *
- * value1 will be the channel from monolog's Logger constructor,
- * value2 will be the level name (ERROR, WARNING, ..)
- * value3 will be the log record's message
- *
- * @author Nehal Patel <nehal@nehalpatel.me>
- */
-class IFTTTHandler extends AbstractProcessingHandler
-{
- private $eventName;
- private $secretKey;
-
- /**
- * @param string $eventName The name of the IFTTT Maker event that should be triggered
- * @param string $secretKey A valid IFTTT secret key
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($eventName, $secretKey, $level = Logger::ERROR, $bubble = true)
- {
- $this->eventName = $eventName;
- $this->secretKey = $secretKey;
-
- parent::__construct($level, $bubble);
- }
-
- /**
- * {@inheritdoc}
- */
- public function write(array $record)
- {
- $postData = array(
- "value1" => $record["channel"],
- "value2" => $record["level_name"],
- "value3" => $record["message"],
- );
- $postString = json_encode($postData);
-
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://maker.ifttt.com/trigger/" . $this->eventName . "/with/key/" . $this->secretKey);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postString);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- "Content-Type: application/json",
- ));
-
- Curl\Util::execute($ch);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php
deleted file mode 100644
index 494c605b..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * @author Robert Kaufmann III <rok3@rok3.me>
- */
-class LogEntriesHandler extends SocketHandler
-{
- /**
- * @var string
- */
- protected $logToken;
-
- /**
- * @param string $token Log token supplied by LogEntries
- * @param bool $useSSL Whether or not SSL encryption should be used.
- * @param int $level The minimum logging level to trigger this handler
- * @param bool $bubble Whether or not messages that are handled should bubble up the stack.
- *
- * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing
- */
- public function __construct($token, $useSSL = true, $level = Logger::DEBUG, $bubble = true)
- {
- if ($useSSL && !extension_loaded('openssl')) {
- throw new MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for LogEntriesHandler');
- }
-
- $endpoint = $useSSL ? 'ssl://data.logentries.com:443' : 'data.logentries.com:80';
- parent::__construct($endpoint, $level, $bubble);
- $this->logToken = $token;
- }
-
- /**
- * {@inheritdoc}
- *
- * @param array $record
- * @return string
- */
- protected function generateDataStream($record)
- {
- return $this->logToken . ' ' . $record['formatted'];
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php
deleted file mode 100644
index bcd62e1c..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php
+++ /dev/null
@@ -1,102 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Formatter\LogglyFormatter;
-
-/**
- * Sends errors to Loggly.
- *
- * @author Przemek Sobstel <przemek@sobstel.org>
- * @author Adam Pancutt <adam@pancutt.com>
- * @author Gregory Barchard <gregory@barchard.net>
- */
-class LogglyHandler extends AbstractProcessingHandler
-{
- const HOST = 'logs-01.loggly.com';
- const ENDPOINT_SINGLE = 'inputs';
- const ENDPOINT_BATCH = 'bulk';
-
- protected $token;
-
- protected $tag = array();
-
- public function __construct($token, $level = Logger::DEBUG, $bubble = true)
- {
- if (!extension_loaded('curl')) {
- throw new \LogicException('The curl extension is needed to use the LogglyHandler');
- }
-
- $this->token = $token;
-
- parent::__construct($level, $bubble);
- }
-
- public function setTag($tag)
- {
- $tag = !empty($tag) ? $tag : array();
- $this->tag = is_array($tag) ? $tag : array($tag);
- }
-
- public function addTag($tag)
- {
- if (!empty($tag)) {
- $tag = is_array($tag) ? $tag : array($tag);
- $this->tag = array_unique(array_merge($this->tag, $tag));
- }
- }
-
- protected function write(array $record)
- {
- $this->send($record["formatted"], self::ENDPOINT_SINGLE);
- }
-
- public function handleBatch(array $records)
- {
- $level = $this->level;
-
- $records = array_filter($records, function ($record) use ($level) {
- return ($record['level'] >= $level);
- });
-
- if ($records) {
- $this->send($this->getFormatter()->formatBatch($records), self::ENDPOINT_BATCH);
- }
- }
-
- protected function send($data, $endpoint)
- {
- $url = sprintf("https://%s/%s/%s/", self::HOST, $endpoint, $this->token);
-
- $headers = array('Content-Type: application/json');
-
- if (!empty($this->tag)) {
- $headers[] = 'X-LOGGLY-TAG: '.implode(',', $this->tag);
- }
-
- $ch = curl_init();
-
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
-
- Curl\Util::execute($ch);
- }
-
- protected function getDefaultFormatter()
- {
- return new LogglyFormatter();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php
deleted file mode 100644
index 9e232838..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-/**
- * Base class for all mail handlers
- *
- * @author Gyula Sallai
- */
-abstract class MailHandler extends AbstractProcessingHandler
-{
- /**
- * {@inheritdoc}
- */
- public function handleBatch(array $records)
- {
- $messages = array();
-
- foreach ($records as $record) {
- if ($record['level'] < $this->level) {
- continue;
- }
- $messages[] = $this->processRecord($record);
- }
-
- if (!empty($messages)) {
- $this->send((string) $this->getFormatter()->formatBatch($messages), $messages);
- }
- }
-
- /**
- * Send a mail with the given content
- *
- * @param string $content formatted email body to be sent
- * @param array $records the array of log records that formed this content
- */
- abstract protected function send($content, array $records);
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- $this->send((string) $record['formatted'], array($record));
- }
-
- protected function getHighestRecord(array $records)
- {
- $highestRecord = null;
- foreach ($records as $record) {
- if ($highestRecord === null || $highestRecord['level'] < $record['level']) {
- $highestRecord = $record;
- }
- }
-
- return $highestRecord;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php
deleted file mode 100644
index ab95924f..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * MandrillHandler uses cURL to send the emails to the Mandrill API
- *
- * @author Adam Nicholson <adamnicholson10@gmail.com>
- */
-class MandrillHandler extends MailHandler
-{
- protected $message;
- protected $apiKey;
-
- /**
- * @param string $apiKey A valid Mandrill API key
- * @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($apiKey, $message, $level = Logger::ERROR, $bubble = true)
- {
- parent::__construct($level, $bubble);
-
- if (!$message instanceof \Swift_Message && is_callable($message)) {
- $message = call_user_func($message);
- }
- if (!$message instanceof \Swift_Message) {
- throw new \InvalidArgumentException('You must provide either a Swift_Message instance or a callable returning it');
- }
- $this->message = $message;
- $this->apiKey = $apiKey;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function send($content, array $records)
- {
- $message = clone $this->message;
- $message->setBody($content);
- $message->setDate(time());
-
- $ch = curl_init();
-
- curl_setopt($ch, CURLOPT_URL, 'https://mandrillapp.com/api/1.0/messages/send-raw.json');
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(
- 'key' => $this->apiKey,
- 'raw_message' => (string) $message,
- 'async' => false,
- )));
-
- Curl\Util::execute($ch);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php
deleted file mode 100644
index 4724a7e2..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-/**
- * Exception can be thrown if an extension for an handler is missing
- *
- * @author Christian Bergau <cbergau86@gmail.com>
- */
-class MissingExtensionException extends \Exception
-{
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php
deleted file mode 100644
index 56fe755b..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Formatter\NormalizerFormatter;
-
-/**
- * Logs to a MongoDB database.
- *
- * usage example:
- *
- * $log = new Logger('application');
- * $mongodb = new MongoDBHandler(new \Mongo("mongodb://localhost:27017"), "logs", "prod");
- * $log->pushHandler($mongodb);
- *
- * @author Thomas Tourlourat <thomas@tourlourat.com>
- */
-class MongoDBHandler extends AbstractProcessingHandler
-{
- protected $mongoCollection;
-
- public function __construct($mongo, $database, $collection, $level = Logger::DEBUG, $bubble = true)
- {
- if (!($mongo instanceof \MongoClient || $mongo instanceof \Mongo || $mongo instanceof \MongoDB\Client)) {
- throw new \InvalidArgumentException('MongoClient, Mongo or MongoDB\Client instance required');
- }
-
- $this->mongoCollection = $mongo->selectCollection($database, $collection);
-
- parent::__construct($level, $bubble);
- }
-
- protected function write(array $record)
- {
- if ($this->mongoCollection instanceof \MongoDB\Collection) {
- $this->mongoCollection->insertOne($record["formatted"]);
- } else {
- $this->mongoCollection->save($record["formatted"]);
- }
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new NormalizerFormatter();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php
deleted file mode 100644
index d7807fd1..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php
+++ /dev/null
@@ -1,185 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-
-/**
- * NativeMailerHandler uses the mail() function to send the emails
- *
- * @author Christophe Coevoet <stof@notk.org>
- * @author Mark Garrett <mark@moderndeveloperllc.com>
- */
-class NativeMailerHandler extends MailHandler
-{
- /**
- * The email addresses to which the message will be sent
- * @var array
- */
- protected $to;
-
- /**
- * The subject of the email
- * @var string
- */
- protected $subject;
-
- /**
- * Optional headers for the message
- * @var array
- */
- protected $headers = array();
-
- /**
- * Optional parameters for the message
- * @var array
- */
- protected $parameters = array();
-
- /**
- * The wordwrap length for the message
- * @var int
- */
- protected $maxColumnWidth;
-
- /**
- * The Content-type for the message
- * @var string
- */
- protected $contentType = 'text/plain';
-
- /**
- * The encoding for the message
- * @var string
- */
- protected $encoding = 'utf-8';
-
- /**
- * @param string|array $to The receiver of the mail
- * @param string $subject The subject of the mail
- * @param string $from The sender of the mail
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- * @param int $maxColumnWidth The maximum column width that the message lines will have
- */
- public function __construct($to, $subject, $from, $level = Logger::ERROR, $bubble = true, $maxColumnWidth = 70)
- {
- parent::__construct($level, $bubble);
- $this->to = is_array($to) ? $to : array($to);
- $this->subject = $subject;
- $this->addHeader(sprintf('From: %s', $from));
- $this->maxColumnWidth = $maxColumnWidth;
- }
-
- /**
- * Add headers to the message
- *
- * @param string|array $headers Custom added headers
- * @return self
- */
- public function addHeader($headers)
- {
- foreach ((array) $headers as $header) {
- if (strpos($header, "\n") !== false || strpos($header, "\r") !== false) {
- throw new \InvalidArgumentException('Headers can not contain newline characters for security reasons');
- }
- $this->headers[] = $header;
- }
-
- return $this;
- }
-
- /**
- * Add parameters to the message
- *
- * @param string|array $parameters Custom added parameters
- * @return self
- */
- public function addParameter($parameters)
- {
- $this->parameters = array_merge($this->parameters, (array) $parameters);
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function send($content, array $records)
- {
- $content = wordwrap($content, $this->maxColumnWidth);
- $headers = ltrim(implode("\r\n", $this->headers) . "\r\n", "\r\n");
- $headers .= 'Content-type: ' . $this->getContentType() . '; charset=' . $this->getEncoding() . "\r\n";
- if ($this->getContentType() == 'text/html' && false === strpos($headers, 'MIME-Version:')) {
- $headers .= 'MIME-Version: 1.0' . "\r\n";
- }
-
- $subject = $this->subject;
- if ($records) {
- $subjectFormatter = new LineFormatter($this->subject);
- $subject = $subjectFormatter->format($this->getHighestRecord($records));
- }
-
- $parameters = implode(' ', $this->parameters);
- foreach ($this->to as $to) {
- mail($to, $subject, $content, $headers, $parameters);
- }
- }
-
- /**
- * @return string $contentType
- */
- public function getContentType()
- {
- return $this->contentType;
- }
-
- /**
- * @return string $encoding
- */
- public function getEncoding()
- {
- return $this->encoding;
- }
-
- /**
- * @param string $contentType The content type of the email - Defaults to text/plain. Use text/html for HTML
- * messages.
- * @return self
- */
- public function setContentType($contentType)
- {
- if (strpos($contentType, "\n") !== false || strpos($contentType, "\r") !== false) {
- throw new \InvalidArgumentException('The content type can not contain newline characters to prevent email header injection');
- }
-
- $this->contentType = $contentType;
-
- return $this;
- }
-
- /**
- * @param string $encoding
- * @return self
- */
- public function setEncoding($encoding)
- {
- if (strpos($encoding, "\n") !== false || strpos($encoding, "\r") !== false) {
- throw new \InvalidArgumentException('The encoding can not contain newline characters to prevent email header injection');
- }
-
- $this->encoding = $encoding;
-
- return $this;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php
deleted file mode 100644
index 6718e9e0..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php
+++ /dev/null
@@ -1,202 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Formatter\NormalizerFormatter;
-
-/**
- * Class to record a log on a NewRelic application.
- * Enabling New Relic High Security mode may prevent capture of useful information.
- *
- * @see https://docs.newrelic.com/docs/agents/php-agent
- * @see https://docs.newrelic.com/docs/accounts-partnerships/accounts/security/high-security
- */
-class NewRelicHandler extends AbstractProcessingHandler
-{
- /**
- * Name of the New Relic application that will receive logs from this handler.
- *
- * @var string
- */
- protected $appName;
-
- /**
- * Name of the current transaction
- *
- * @var string
- */
- protected $transactionName;
-
- /**
- * Some context and extra data is passed into the handler as arrays of values. Do we send them as is
- * (useful if we are using the API), or explode them for display on the NewRelic RPM website?
- *
- * @var bool
- */
- protected $explodeArrays;
-
- /**
- * {@inheritDoc}
- *
- * @param string $appName
- * @param bool $explodeArrays
- * @param string $transactionName
- */
- public function __construct(
- $level = Logger::ERROR,
- $bubble = true,
- $appName = null,
- $explodeArrays = false,
- $transactionName = null
- ) {
- parent::__construct($level, $bubble);
-
- $this->appName = $appName;
- $this->explodeArrays = $explodeArrays;
- $this->transactionName = $transactionName;
- }
-
- /**
- * {@inheritDoc}
- */
- protected function write(array $record)
- {
- if (!$this->isNewRelicEnabled()) {
- throw new MissingExtensionException('The newrelic PHP extension is required to use the NewRelicHandler');
- }
-
- if ($appName = $this->getAppName($record['context'])) {
- $this->setNewRelicAppName($appName);
- }
-
- if ($transactionName = $this->getTransactionName($record['context'])) {
- $this->setNewRelicTransactionName($transactionName);
- unset($record['formatted']['context']['transaction_name']);
- }
-
- if (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Exception) {
- newrelic_notice_error($record['message'], $record['context']['exception']);
- unset($record['formatted']['context']['exception']);
- } else {
- newrelic_notice_error($record['message']);
- }
-
- if (isset($record['formatted']['context']) && is_array($record['formatted']['context'])) {
- foreach ($record['formatted']['context'] as $key => $parameter) {
- if (is_array($parameter) && $this->explodeArrays) {
- foreach ($parameter as $paramKey => $paramValue) {
- $this->setNewRelicParameter('context_' . $key . '_' . $paramKey, $paramValue);
- }
- } else {
- $this->setNewRelicParameter('context_' . $key, $parameter);
- }
- }
- }
-
- if (isset($record['formatted']['extra']) && is_array($record['formatted']['extra'])) {
- foreach ($record['formatted']['extra'] as $key => $parameter) {
- if (is_array($parameter) && $this->explodeArrays) {
- foreach ($parameter as $paramKey => $paramValue) {
- $this->setNewRelicParameter('extra_' . $key . '_' . $paramKey, $paramValue);
- }
- } else {
- $this->setNewRelicParameter('extra_' . $key, $parameter);
- }
- }
- }
- }
-
- /**
- * Checks whether the NewRelic extension is enabled in the system.
- *
- * @return bool
- */
- protected function isNewRelicEnabled()
- {
- return extension_loaded('newrelic');
- }
-
- /**
- * Returns the appname where this log should be sent. Each log can override the default appname, set in this
- * handler's constructor, by providing the appname in it's context.
- *
- * @param array $context
- * @return null|string
- */
- protected function getAppName(array $context)
- {
- if (isset($context['appname'])) {
- return $context['appname'];
- }
-
- return $this->appName;
- }
-
- /**
- * Returns the name of the current transaction. Each log can override the default transaction name, set in this
- * handler's constructor, by providing the transaction_name in it's context
- *
- * @param array $context
- *
- * @return null|string
- */
- protected function getTransactionName(array $context)
- {
- if (isset($context['transaction_name'])) {
- return $context['transaction_name'];
- }
-
- return $this->transactionName;
- }
-
- /**
- * Sets the NewRelic application that should receive this log.
- *
- * @param string $appName
- */
- protected function setNewRelicAppName($appName)
- {
- newrelic_set_appname($appName);
- }
-
- /**
- * Overwrites the name of the current transaction
- *
- * @param string $transactionName
- */
- protected function setNewRelicTransactionName($transactionName)
- {
- newrelic_name_transaction($transactionName);
- }
-
- /**
- * @param string $key
- * @param mixed $value
- */
- protected function setNewRelicParameter($key, $value)
- {
- if (null === $value || is_scalar($value)) {
- newrelic_add_custom_parameter($key, $value);
- } else {
- newrelic_add_custom_parameter($key, @json_encode($value));
- }
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new NormalizerFormatter();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php
deleted file mode 100644
index 4b845883..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Blackhole
- *
- * Any record it can handle will be thrown away. This can be used
- * to put on top of an existing stack to override it temporarily.
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class NullHandler extends AbstractHandler
-{
- /**
- * @param int $level The minimum logging level at which this handler will be triggered
- */
- public function __construct($level = Logger::DEBUG)
- {
- parent::__construct($level, false);
- }
-
- /**
- * {@inheritdoc}
- */
- public function handle(array $record)
- {
- if ($record['level'] < $this->level) {
- return false;
- }
-
- return true;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php
deleted file mode 100644
index 1f2076a4..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php
+++ /dev/null
@@ -1,242 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Exception;
-use Monolog\Formatter\LineFormatter;
-use Monolog\Logger;
-use PhpConsole\Connector;
-use PhpConsole\Handler;
-use PhpConsole\Helper;
-
-/**
- * Monolog handler for Google Chrome extension "PHP Console"
- *
- * Display PHP error/debug log messages in Google Chrome console and notification popups, executes PHP code remotely
- *
- * Usage:
- * 1. Install Google Chrome extension https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef
- * 2. See overview https://github.com/barbushin/php-console#overview
- * 3. Install PHP Console library https://github.com/barbushin/php-console#installation
- * 4. Example (result will looks like http://i.hizliresim.com/vg3Pz4.png)
- *
- * $logger = new \Monolog\Logger('all', array(new \Monolog\Handler\PHPConsoleHandler()));
- * \Monolog\ErrorHandler::register($logger);
- * echo $undefinedVar;
- * $logger->addDebug('SELECT * FROM users', array('db', 'time' => 0.012));
- * PC::debug($_SERVER); // PHP Console debugger for any type of vars
- *
- * @author Sergey Barbushin https://www.linkedin.com/in/barbushin
- */
-class PHPConsoleHandler extends AbstractProcessingHandler
-{
- private $options = array(
- 'enabled' => true, // bool Is PHP Console server enabled
- 'classesPartialsTraceIgnore' => array('Monolog\\'), // array Hide calls of classes started with...
- 'debugTagsKeysInContext' => array(0, 'tag'), // bool Is PHP Console server enabled
- 'useOwnErrorsHandler' => false, // bool Enable errors handling
- 'useOwnExceptionsHandler' => false, // bool Enable exceptions handling
- 'sourcesBasePath' => null, // string Base path of all project sources to strip in errors source paths
- 'registerHelper' => true, // bool Register PhpConsole\Helper that allows short debug calls like PC::debug($var, 'ta.g.s')
- 'serverEncoding' => null, // string|null Server internal encoding
- 'headersLimit' => null, // int|null Set headers size limit for your web-server
- 'password' => null, // string|null Protect PHP Console connection by password
- 'enableSslOnlyMode' => false, // bool Force connection by SSL for clients with PHP Console installed
- 'ipMasks' => array(), // array Set IP masks of clients that will be allowed to connect to PHP Console: array('192.168.*.*', '127.0.0.1')
- 'enableEvalListener' => false, // bool Enable eval request to be handled by eval dispatcher(if enabled, 'password' option is also required)
- 'dumperDetectCallbacks' => false, // bool Convert callback items in dumper vars to (callback SomeClass::someMethod) strings
- 'dumperLevelLimit' => 5, // int Maximum dumped vars array or object nested dump level
- 'dumperItemsCountLimit' => 100, // int Maximum dumped var same level array items or object properties number
- 'dumperItemSizeLimit' => 5000, // int Maximum length of any string or dumped array item
- 'dumperDumpSizeLimit' => 500000, // int Maximum approximate size of dumped vars result formatted in JSON
- 'detectDumpTraceAndSource' => false, // bool Autodetect and append trace data to debug
- 'dataStorage' => null, // PhpConsole\Storage|null Fixes problem with custom $_SESSION handler(see http://goo.gl/Ne8juJ)
- );
-
- /** @var Connector */
- private $connector;
-
- /**
- * @param array $options See \Monolog\Handler\PHPConsoleHandler::$options for more details
- * @param Connector|null $connector Instance of \PhpConsole\Connector class (optional)
- * @param int $level
- * @param bool $bubble
- * @throws Exception
- */
- public function __construct(array $options = array(), Connector $connector = null, $level = Logger::DEBUG, $bubble = true)
- {
- if (!class_exists('PhpConsole\Connector')) {
- throw new Exception('PHP Console library not found. See https://github.com/barbushin/php-console#installation');
- }
- parent::__construct($level, $bubble);
- $this->options = $this->initOptions($options);
- $this->connector = $this->initConnector($connector);
- }
-
- private function initOptions(array $options)
- {
- $wrongOptions = array_diff(array_keys($options), array_keys($this->options));
- if ($wrongOptions) {
- throw new Exception('Unknown options: ' . implode(', ', $wrongOptions));
- }
-
- return array_replace($this->options, $options);
- }
-
- private function initConnector(Connector $connector = null)
- {
- if (!$connector) {
- if ($this->options['dataStorage']) {
- Connector::setPostponeStorage($this->options['dataStorage']);
- }
- $connector = Connector::getInstance();
- }
-
- if ($this->options['registerHelper'] && !Helper::isRegistered()) {
- Helper::register();
- }
-
- if ($this->options['enabled'] && $connector->isActiveClient()) {
- if ($this->options['useOwnErrorsHandler'] || $this->options['useOwnExceptionsHandler']) {
- $handler = Handler::getInstance();
- $handler->setHandleErrors($this->options['useOwnErrorsHandler']);
- $handler->setHandleExceptions($this->options['useOwnExceptionsHandler']);
- $handler->start();
- }
- if ($this->options['sourcesBasePath']) {
- $connector->setSourcesBasePath($this->options['sourcesBasePath']);
- }
- if ($this->options['serverEncoding']) {
- $connector->setServerEncoding($this->options['serverEncoding']);
- }
- if ($this->options['password']) {
- $connector->setPassword($this->options['password']);
- }
- if ($this->options['enableSslOnlyMode']) {
- $connector->enableSslOnlyMode();
- }
- if ($this->options['ipMasks']) {
- $connector->setAllowedIpMasks($this->options['ipMasks']);
- }
- if ($this->options['headersLimit']) {
- $connector->setHeadersLimit($this->options['headersLimit']);
- }
- if ($this->options['detectDumpTraceAndSource']) {
- $connector->getDebugDispatcher()->detectTraceAndSource = true;
- }
- $dumper = $connector->getDumper();
- $dumper->levelLimit = $this->options['dumperLevelLimit'];
- $dumper->itemsCountLimit = $this->options['dumperItemsCountLimit'];
- $dumper->itemSizeLimit = $this->options['dumperItemSizeLimit'];
- $dumper->dumpSizeLimit = $this->options['dumperDumpSizeLimit'];
- $dumper->detectCallbacks = $this->options['dumperDetectCallbacks'];
- if ($this->options['enableEvalListener']) {
- $connector->startEvalRequestsListener();
- }
- }
-
- return $connector;
- }
-
- public function getConnector()
- {
- return $this->connector;
- }
-
- public function getOptions()
- {
- return $this->options;
- }
-
- public function handle(array $record)
- {
- if ($this->options['enabled'] && $this->connector->isActiveClient()) {
- return parent::handle($record);
- }
-
- return !$this->bubble;
- }
-
- /**
- * Writes the record down to the log of the implementing handler
- *
- * @param array $record
- * @return void
- */
- protected function write(array $record)
- {
- if ($record['level'] < Logger::NOTICE) {
- $this->handleDebugRecord($record);
- } elseif (isset($record['context']['exception']) && $record['context']['exception'] instanceof Exception) {
- $this->handleExceptionRecord($record);
- } else {
- $this->handleErrorRecord($record);
- }
- }
-
- private function handleDebugRecord(array $record)
- {
- $tags = $this->getRecordTags($record);
- $message = $record['message'];
- if ($record['context']) {
- $message .= ' ' . json_encode($this->connector->getDumper()->dump(array_filter($record['context'])));
- }
- $this->connector->getDebugDispatcher()->dispatchDebug($message, $tags, $this->options['classesPartialsTraceIgnore']);
- }
-
- private function handleExceptionRecord(array $record)
- {
- $this->connector->getErrorsDispatcher()->dispatchException($record['context']['exception']);
- }
-
- private function handleErrorRecord(array $record)
- {
- $context = $record['context'];
-
- $this->connector->getErrorsDispatcher()->dispatchError(
- isset($context['code']) ? $context['code'] : null,
- isset($context['message']) ? $context['message'] : $record['message'],
- isset($context['file']) ? $context['file'] : null,
- isset($context['line']) ? $context['line'] : null,
- $this->options['classesPartialsTraceIgnore']
- );
- }
-
- private function getRecordTags(array &$record)
- {
- $tags = null;
- if (!empty($record['context'])) {
- $context = & $record['context'];
- foreach ($this->options['debugTagsKeysInContext'] as $key) {
- if (!empty($context[$key])) {
- $tags = $context[$key];
- if ($key === 0) {
- array_shift($context);
- } else {
- unset($context[$key]);
- }
- break;
- }
- }
- }
-
- return $tags ?: strtolower($record['level_name']);
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new LineFormatter('%message%');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php
deleted file mode 100644
index 1ae85845..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Psr\Log\LoggerInterface;
-
-/**
- * Proxies log messages to an existing PSR-3 compliant logger.
- *
- * @author Michael Moussa <michael.moussa@gmail.com>
- */
-class PsrHandler extends AbstractHandler
-{
- /**
- * PSR-3 compliant logger
- *
- * @var LoggerInterface
- */
- protected $logger;
-
- /**
- * @param LoggerInterface $logger The underlying PSR-3 compliant logger to which messages will be proxied
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct(LoggerInterface $logger, $level = Logger::DEBUG, $bubble = true)
- {
- parent::__construct($level, $bubble);
-
- $this->logger = $logger;
- }
-
- /**
- * {@inheritDoc}
- */
- public function handle(array $record)
- {
- if (!$this->isHandling($record)) {
- return false;
- }
-
- $this->logger->log(strtolower($record['level_name']), $record['message'], $record['context']);
-
- return false === $this->bubble;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php
deleted file mode 100644
index bba72005..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php
+++ /dev/null
@@ -1,185 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Sends notifications through the pushover api to mobile phones
- *
- * @author Sebastian Göttschkes <sebastian.goettschkes@googlemail.com>
- * @see https://www.pushover.net/api
- */
-class PushoverHandler extends SocketHandler
-{
- private $token;
- private $users;
- private $title;
- private $user;
- private $retry;
- private $expire;
-
- private $highPriorityLevel;
- private $emergencyLevel;
- private $useFormattedMessage = false;
-
- /**
- * All parameters that can be sent to Pushover
- * @see https://pushover.net/api
- * @var array
- */
- private $parameterNames = array(
- 'token' => true,
- 'user' => true,
- 'message' => true,
- 'device' => true,
- 'title' => true,
- 'url' => true,
- 'url_title' => true,
- 'priority' => true,
- 'timestamp' => true,
- 'sound' => true,
- 'retry' => true,
- 'expire' => true,
- 'callback' => true,
- );
-
- /**
- * Sounds the api supports by default
- * @see https://pushover.net/api#sounds
- * @var array
- */
- private $sounds = array(
- 'pushover', 'bike', 'bugle', 'cashregister', 'classical', 'cosmic', 'falling', 'gamelan', 'incoming',
- 'intermission', 'magic', 'mechanical', 'pianobar', 'siren', 'spacealarm', 'tugboat', 'alien', 'climb',
- 'persistent', 'echo', 'updown', 'none',
- );
-
- /**
- * @param string $token Pushover api token
- * @param string|array $users Pushover user id or array of ids the message will be sent to
- * @param string $title Title sent to the Pushover API
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- * @param Boolean $useSSL Whether to connect via SSL. Required when pushing messages to users that are not
- * the pushover.net app owner. OpenSSL is required for this option.
- * @param int $highPriorityLevel The minimum logging level at which this handler will start
- * sending "high priority" requests to the Pushover API
- * @param int $emergencyLevel The minimum logging level at which this handler will start
- * sending "emergency" requests to the Pushover API
- * @param int $retry The retry parameter specifies how often (in seconds) the Pushover servers will send the same notification to the user.
- * @param int $expire The expire parameter specifies how many seconds your notification will continue to be retried for (every retry seconds).
- */
- public function __construct($token, $users, $title = null, $level = Logger::CRITICAL, $bubble = true, $useSSL = true, $highPriorityLevel = Logger::CRITICAL, $emergencyLevel = Logger::EMERGENCY, $retry = 30, $expire = 25200)
- {
- $connectionString = $useSSL ? 'ssl://api.pushover.net:443' : 'api.pushover.net:80';
- parent::__construct($connectionString, $level, $bubble);
-
- $this->token = $token;
- $this->users = (array) $users;
- $this->title = $title ?: gethostname();
- $this->highPriorityLevel = Logger::toMonologLevel($highPriorityLevel);
- $this->emergencyLevel = Logger::toMonologLevel($emergencyLevel);
- $this->retry = $retry;
- $this->expire = $expire;
- }
-
- protected function generateDataStream($record)
- {
- $content = $this->buildContent($record);
-
- return $this->buildHeader($content) . $content;
- }
-
- private function buildContent($record)
- {
- // Pushover has a limit of 512 characters on title and message combined.
- $maxMessageLength = 512 - strlen($this->title);
-
- $message = ($this->useFormattedMessage) ? $record['formatted'] : $record['message'];
- $message = substr($message, 0, $maxMessageLength);
-
- $timestamp = $record['datetime']->getTimestamp();
-
- $dataArray = array(
- 'token' => $this->token,
- 'user' => $this->user,
- 'message' => $message,
- 'title' => $this->title,
- 'timestamp' => $timestamp,
- );
-
- if (isset($record['level']) && $record['level'] >= $this->emergencyLevel) {
- $dataArray['priority'] = 2;
- $dataArray['retry'] = $this->retry;
- $dataArray['expire'] = $this->expire;
- } elseif (isset($record['level']) && $record['level'] >= $this->highPriorityLevel) {
- $dataArray['priority'] = 1;
- }
-
- // First determine the available parameters
- $context = array_intersect_key($record['context'], $this->parameterNames);
- $extra = array_intersect_key($record['extra'], $this->parameterNames);
-
- // Least important info should be merged with subsequent info
- $dataArray = array_merge($extra, $context, $dataArray);
-
- // Only pass sounds that are supported by the API
- if (isset($dataArray['sound']) && !in_array($dataArray['sound'], $this->sounds)) {
- unset($dataArray['sound']);
- }
-
- return http_build_query($dataArray);
- }
-
- private function buildHeader($content)
- {
- $header = "POST /1/messages.json HTTP/1.1\r\n";
- $header .= "Host: api.pushover.net\r\n";
- $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
- $header .= "Content-Length: " . strlen($content) . "\r\n";
- $header .= "\r\n";
-
- return $header;
- }
-
- protected function write(array $record)
- {
- foreach ($this->users as $user) {
- $this->user = $user;
-
- parent::write($record);
- $this->closeSocket();
- }
-
- $this->user = null;
- }
-
- public function setHighPriorityLevel($value)
- {
- $this->highPriorityLevel = $value;
- }
-
- public function setEmergencyLevel($value)
- {
- $this->emergencyLevel = $value;
- }
-
- /**
- * Use the formatted message?
- * @param bool $value
- */
- public function useFormattedMessage($value)
- {
- $this->useFormattedMessage = (boolean) $value;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php
deleted file mode 100644
index 53a8b391..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php
+++ /dev/null
@@ -1,232 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\LineFormatter;
-use Monolog\Formatter\FormatterInterface;
-use Monolog\Logger;
-use Raven_Client;
-
-/**
- * Handler to send messages to a Sentry (https://github.com/getsentry/sentry) server
- * using raven-php (https://github.com/getsentry/raven-php)
- *
- * @author Marc Abramowitz <marc@marc-abramowitz.com>
- */
-class RavenHandler extends AbstractProcessingHandler
-{
- /**
- * Translates Monolog log levels to Raven log levels.
- */
- private $logLevels = array(
- Logger::DEBUG => Raven_Client::DEBUG,
- Logger::INFO => Raven_Client::INFO,
- Logger::NOTICE => Raven_Client::INFO,
- Logger::WARNING => Raven_Client::WARNING,
- Logger::ERROR => Raven_Client::ERROR,
- Logger::CRITICAL => Raven_Client::FATAL,
- Logger::ALERT => Raven_Client::FATAL,
- Logger::EMERGENCY => Raven_Client::FATAL,
- );
-
- /**
- * @var string should represent the current version of the calling
- * software. Can be any string (git commit, version number)
- */
- private $release;
-
- /**
- * @var Raven_Client the client object that sends the message to the server
- */
- protected $ravenClient;
-
- /**
- * @var LineFormatter The formatter to use for the logs generated via handleBatch()
- */
- protected $batchFormatter;
-
- /**
- * @param Raven_Client $ravenClient
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct(Raven_Client $ravenClient, $level = Logger::DEBUG, $bubble = true)
- {
- parent::__construct($level, $bubble);
-
- $this->ravenClient = $ravenClient;
- }
-
- /**
- * {@inheritdoc}
- */
- public function handleBatch(array $records)
- {
- $level = $this->level;
-
- // filter records based on their level
- $records = array_filter($records, function ($record) use ($level) {
- return $record['level'] >= $level;
- });
-
- if (!$records) {
- return;
- }
-
- // the record with the highest severity is the "main" one
- $record = array_reduce($records, function ($highest, $record) {
- if ($record['level'] > $highest['level']) {
- return $record;
- }
-
- return $highest;
- });
-
- // the other ones are added as a context item
- $logs = array();
- foreach ($records as $r) {
- $logs[] = $this->processRecord($r);
- }
-
- if ($logs) {
- $record['context']['logs'] = (string) $this->getBatchFormatter()->formatBatch($logs);
- }
-
- $this->handle($record);
- }
-
- /**
- * Sets the formatter for the logs generated by handleBatch().
- *
- * @param FormatterInterface $formatter
- */
- public function setBatchFormatter(FormatterInterface $formatter)
- {
- $this->batchFormatter = $formatter;
- }
-
- /**
- * Gets the formatter for the logs generated by handleBatch().
- *
- * @return FormatterInterface
- */
- public function getBatchFormatter()
- {
- if (!$this->batchFormatter) {
- $this->batchFormatter = $this->getDefaultBatchFormatter();
- }
-
- return $this->batchFormatter;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- $previousUserContext = false;
- $options = array();
- $options['level'] = $this->logLevels[$record['level']];
- $options['tags'] = array();
- if (!empty($record['extra']['tags'])) {
- $options['tags'] = array_merge($options['tags'], $record['extra']['tags']);
- unset($record['extra']['tags']);
- }
- if (!empty($record['context']['tags'])) {
- $options['tags'] = array_merge($options['tags'], $record['context']['tags']);
- unset($record['context']['tags']);
- }
- if (!empty($record['context']['fingerprint'])) {
- $options['fingerprint'] = $record['context']['fingerprint'];
- unset($record['context']['fingerprint']);
- }
- if (!empty($record['context']['logger'])) {
- $options['logger'] = $record['context']['logger'];
- unset($record['context']['logger']);
- } else {
- $options['logger'] = $record['channel'];
- }
- foreach ($this->getExtraParameters() as $key) {
- foreach (array('extra', 'context') as $source) {
- if (!empty($record[$source][$key])) {
- $options[$key] = $record[$source][$key];
- unset($record[$source][$key]);
- }
- }
- }
- if (!empty($record['context'])) {
- $options['extra']['context'] = $record['context'];
- if (!empty($record['context']['user'])) {
- $previousUserContext = $this->ravenClient->context->user;
- $this->ravenClient->user_context($record['context']['user']);
- unset($options['extra']['context']['user']);
- }
- }
- if (!empty($record['extra'])) {
- $options['extra']['extra'] = $record['extra'];
- }
-
- if (!empty($this->release) && !isset($options['release'])) {
- $options['release'] = $this->release;
- }
-
- if (isset($record['context']['exception']) && ($record['context']['exception'] instanceof \Exception || (PHP_VERSION_ID >= 70000 && $record['context']['exception'] instanceof \Throwable))) {
- $options['extra']['message'] = $record['formatted'];
- $this->ravenClient->captureException($record['context']['exception'], $options);
- } else {
- $this->ravenClient->captureMessage($record['formatted'], array(), $options);
- }
-
- if ($previousUserContext !== false) {
- $this->ravenClient->user_context($previousUserContext);
- }
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new LineFormatter('[%channel%] %message%');
- }
-
- /**
- * Gets the default formatter for the logs generated by handleBatch().
- *
- * @return FormatterInterface
- */
- protected function getDefaultBatchFormatter()
- {
- return new LineFormatter();
- }
-
- /**
- * Gets extra parameters supported by Raven that can be found in "extra" and "context"
- *
- * @return array
- */
- protected function getExtraParameters()
- {
- return array('checksum', 'release', 'event_id');
- }
-
- /**
- * @param string $value
- * @return self
- */
- public function setRelease($value)
- {
- $this->release = $value;
-
- return $this;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php
deleted file mode 100644
index 590f9965..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\LineFormatter;
-use Monolog\Logger;
-
-/**
- * Logs to a Redis key using rpush
- *
- * usage example:
- *
- * $log = new Logger('application');
- * $redis = new RedisHandler(new Predis\Client("tcp://localhost:6379"), "logs", "prod");
- * $log->pushHandler($redis);
- *
- * @author Thomas Tourlourat <thomas@tourlourat.com>
- */
-class RedisHandler extends AbstractProcessingHandler
-{
- private $redisClient;
- private $redisKey;
- protected $capSize;
-
- /**
- * @param \Predis\Client|\Redis $redis The redis instance
- * @param string $key The key name to push records to
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- * @param int $capSize Number of entries to limit list size to
- */
- public function __construct($redis, $key, $level = Logger::DEBUG, $bubble = true, $capSize = false)
- {
- if (!(($redis instanceof \Predis\Client) || ($redis instanceof \Redis))) {
- throw new \InvalidArgumentException('Predis\Client or Redis instance required');
- }
-
- $this->redisClient = $redis;
- $this->redisKey = $key;
- $this->capSize = $capSize;
-
- parent::__construct($level, $bubble);
- }
-
- /**
- * {@inheritDoc}
- */
- protected function write(array $record)
- {
- if ($this->capSize) {
- $this->writeCapped($record);
- } else {
- $this->redisClient->rpush($this->redisKey, $record["formatted"]);
- }
- }
-
- /**
- * Write and cap the collection
- * Writes the record to the redis list and caps its
- *
- * @param array $record associative record array
- * @return void
- */
- protected function writeCapped(array $record)
- {
- if ($this->redisClient instanceof \Redis) {
- $this->redisClient->multi()
- ->rpush($this->redisKey, $record["formatted"])
- ->ltrim($this->redisKey, -$this->capSize, -1)
- ->exec();
- } else {
- $redisKey = $this->redisKey;
- $capSize = $this->capSize;
- $this->redisClient->transaction(function ($tx) use ($record, $redisKey, $capSize) {
- $tx->rpush($redisKey, $record["formatted"]);
- $tx->ltrim($redisKey, -$capSize, -1);
- });
- }
- }
-
- /**
- * {@inheritDoc}
- */
- protected function getDefaultFormatter()
- {
- return new LineFormatter();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php
deleted file mode 100644
index 0d9de1a2..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php
+++ /dev/null
@@ -1,131 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use RollbarNotifier;
-use Exception;
-use Monolog\Logger;
-
-/**
- * Sends errors to Rollbar
- *
- * If the context data contains a `payload` key, that is used as an array
- * of payload options to RollbarNotifier's report_message/report_exception methods.
- *
- * Rollbar's context info will contain the context + extra keys from the log record
- * merged, and then on top of that a few keys:
- *
- * - level (rollbar level name)
- * - monolog_level (monolog level name, raw level, as rollbar only has 5 but monolog 8)
- * - channel
- * - datetime (unix timestamp)
- *
- * @author Paul Statezny <paulstatezny@gmail.com>
- */
-class RollbarHandler extends AbstractProcessingHandler
-{
- /**
- * Rollbar notifier
- *
- * @var RollbarNotifier
- */
- protected $rollbarNotifier;
-
- protected $levelMap = array(
- Logger::DEBUG => 'debug',
- Logger::INFO => 'info',
- Logger::NOTICE => 'info',
- Logger::WARNING => 'warning',
- Logger::ERROR => 'error',
- Logger::CRITICAL => 'critical',
- Logger::ALERT => 'critical',
- Logger::EMERGENCY => 'critical',
- );
-
- /**
- * Records whether any log records have been added since the last flush of the rollbar notifier
- *
- * @var bool
- */
- private $hasRecords = false;
-
- protected $initialized = false;
-
- /**
- * @param RollbarNotifier $rollbarNotifier RollbarNotifier object constructed with valid token
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct(RollbarNotifier $rollbarNotifier, $level = Logger::ERROR, $bubble = true)
- {
- $this->rollbarNotifier = $rollbarNotifier;
-
- parent::__construct($level, $bubble);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- if (!$this->initialized) {
- // __destructor() doesn't get called on Fatal errors
- register_shutdown_function(array($this, 'close'));
- $this->initialized = true;
- }
-
- $context = $record['context'];
- $payload = array();
- if (isset($context['payload'])) {
- $payload = $context['payload'];
- unset($context['payload']);
- }
- $context = array_merge($context, $record['extra'], array(
- 'level' => $this->levelMap[$record['level']],
- 'monolog_level' => $record['level_name'],
- 'channel' => $record['channel'],
- 'datetime' => $record['datetime']->format('U'),
- ));
-
- if (isset($context['exception']) && $context['exception'] instanceof Exception) {
- $exception = $context['exception'];
- unset($context['exception']);
-
- $this->rollbarNotifier->report_exception($exception, $context, $payload);
- } else {
- $this->rollbarNotifier->report_message(
- $record['message'],
- $context['level'],
- $context,
- $payload
- );
- }
-
- $this->hasRecords = true;
- }
-
- public function flush()
- {
- if ($this->hasRecords) {
- $this->rollbarNotifier->flush();
- $this->hasRecords = false;
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function close()
- {
- $this->flush();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
deleted file mode 100644
index 3b60b3d1..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
+++ /dev/null
@@ -1,178 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Stores logs to files that are rotated every day and a limited number of files are kept.
- *
- * This rotation is only intended to be used as a workaround. Using logrotate to
- * handle the rotation is strongly encouraged when you can use it.
- *
- * @author Christophe Coevoet <stof@notk.org>
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class RotatingFileHandler extends StreamHandler
-{
- const FILE_PER_DAY = 'Y-m-d';
- const FILE_PER_MONTH = 'Y-m';
- const FILE_PER_YEAR = 'Y';
-
- protected $filename;
- protected $maxFiles;
- protected $mustRotate;
- protected $nextRotation;
- protected $filenameFormat;
- protected $dateFormat;
-
- /**
- * @param string $filename
- * @param int $maxFiles The maximal amount of files to keep (0 means unlimited)
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write)
- * @param Boolean $useLocking Try to lock log file before doing any writes
- */
- public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = null, $useLocking = false)
- {
- $this->filename = $filename;
- $this->maxFiles = (int) $maxFiles;
- $this->nextRotation = new \DateTime('tomorrow');
- $this->filenameFormat = '{filename}-{date}';
- $this->dateFormat = 'Y-m-d';
-
- parent::__construct($this->getTimedFilename(), $level, $bubble, $filePermission, $useLocking);
- }
-
- /**
- * {@inheritdoc}
- */
- public function close()
- {
- parent::close();
-
- if (true === $this->mustRotate) {
- $this->rotate();
- }
- }
-
- public function setFilenameFormat($filenameFormat, $dateFormat)
- {
- if (!preg_match('{^Y(([/_.-]?m)([/_.-]?d)?)?$}', $dateFormat)) {
- trigger_error(
- 'Invalid date format - format must be one of '.
- 'RotatingFileHandler::FILE_PER_DAY ("Y-m-d"), RotatingFileHandler::FILE_PER_MONTH ("Y-m") '.
- 'or RotatingFileHandler::FILE_PER_YEAR ("Y"), or you can set one of the '.
- 'date formats using slashes, underscores and/or dots instead of dashes.',
- E_USER_DEPRECATED
- );
- }
- if (substr_count($filenameFormat, '{date}') === 0) {
- trigger_error(
- 'Invalid filename format - format should contain at least `{date}`, because otherwise rotating is impossible.',
- E_USER_DEPRECATED
- );
- }
- $this->filenameFormat = $filenameFormat;
- $this->dateFormat = $dateFormat;
- $this->url = $this->getTimedFilename();
- $this->close();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- // on the first record written, if the log is new, we should rotate (once per day)
- if (null === $this->mustRotate) {
- $this->mustRotate = !file_exists($this->url);
- }
-
- if ($this->nextRotation < $record['datetime']) {
- $this->mustRotate = true;
- $this->close();
- }
-
- parent::write($record);
- }
-
- /**
- * Rotates the files.
- */
- protected function rotate()
- {
- // update filename
- $this->url = $this->getTimedFilename();
- $this->nextRotation = new \DateTime('tomorrow');
-
- // skip GC of old logs if files are unlimited
- if (0 === $this->maxFiles) {
- return;
- }
-
- $logFiles = glob($this->getGlobPattern());
- if ($this->maxFiles >= count($logFiles)) {
- // no files to remove
- return;
- }
-
- // Sorting the files by name to remove the older ones
- usort($logFiles, function ($a, $b) {
- return strcmp($b, $a);
- });
-
- foreach (array_slice($logFiles, $this->maxFiles) as $file) {
- if (is_writable($file)) {
- // suppress errors here as unlink() might fail if two processes
- // are cleaning up/rotating at the same time
- set_error_handler(function ($errno, $errstr, $errfile, $errline) {});
- unlink($file);
- restore_error_handler();
- }
- }
-
- $this->mustRotate = false;
- }
-
- protected function getTimedFilename()
- {
- $fileInfo = pathinfo($this->filename);
- $timedFilename = str_replace(
- array('{filename}', '{date}'),
- array($fileInfo['filename'], date($this->dateFormat)),
- $fileInfo['dirname'] . '/' . $this->filenameFormat
- );
-
- if (!empty($fileInfo['extension'])) {
- $timedFilename .= '.'.$fileInfo['extension'];
- }
-
- return $timedFilename;
- }
-
- protected function getGlobPattern()
- {
- $fileInfo = pathinfo($this->filename);
- $glob = str_replace(
- array('{filename}', '{date}'),
- array($fileInfo['filename'], '*'),
- $fileInfo['dirname'] . '/' . $this->filenameFormat
- );
- if (!empty($fileInfo['extension'])) {
- $glob .= '.'.$fileInfo['extension'];
- }
-
- return $glob;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php
deleted file mode 100644
index 9509ae37..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-/**
- * Sampling handler
- *
- * A sampled event stream can be useful for logging high frequency events in
- * a production environment where you only need an idea of what is happening
- * and are not concerned with capturing every occurrence. Since the decision to
- * handle or not handle a particular event is determined randomly, the
- * resulting sampled log is not guaranteed to contain 1/N of the events that
- * occurred in the application, but based on the Law of large numbers, it will
- * tend to be close to this ratio with a large number of attempts.
- *
- * @author Bryan Davis <bd808@wikimedia.org>
- * @author Kunal Mehta <legoktm@gmail.com>
- */
-class SamplingHandler extends AbstractHandler
-{
- /**
- * @var callable|HandlerInterface $handler
- */
- protected $handler;
-
- /**
- * @var int $factor
- */
- protected $factor;
-
- /**
- * @param callable|HandlerInterface $handler Handler or factory callable($record, $fingersCrossedHandler).
- * @param int $factor Sample factor
- */
- public function __construct($handler, $factor)
- {
- parent::__construct();
- $this->handler = $handler;
- $this->factor = $factor;
-
- if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) {
- throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable nor a Monolog\Handler\HandlerInterface object");
- }
- }
-
- public function isHandling(array $record)
- {
- return $this->handler->isHandling($record);
- }
-
- public function handle(array $record)
- {
- if ($this->isHandling($record) && mt_rand(1, $this->factor) === 1) {
- // The same logic as in FingersCrossedHandler
- if (!$this->handler instanceof HandlerInterface) {
- $this->handler = call_user_func($this->handler, $record, $this);
- if (!$this->handler instanceof HandlerInterface) {
- throw new \RuntimeException("The factory callable should return a HandlerInterface");
- }
- }
-
- if ($this->processors) {
- foreach ($this->processors as $processor) {
- $record = call_user_func($processor, $record);
- }
- }
-
- $this->handler->handle($record);
- }
-
- return false === $this->bubble;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php
deleted file mode 100644
index 38bc838a..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php
+++ /dev/null
@@ -1,294 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler\Slack;
-
-use Monolog\Logger;
-use Monolog\Formatter\NormalizerFormatter;
-use Monolog\Formatter\FormatterInterface;
-
-/**
- * Slack record utility helping to log to Slack webhooks or API.
- *
- * @author Greg Kedzierski <greg@gregkedzierski.com>
- * @author Haralan Dobrev <hkdobrev@gmail.com>
- * @see https://api.slack.com/incoming-webhooks
- * @see https://api.slack.com/docs/message-attachments
- */
-class SlackRecord
-{
- const COLOR_DANGER = 'danger';
-
- const COLOR_WARNING = 'warning';
-
- const COLOR_GOOD = 'good';
-
- const COLOR_DEFAULT = '#e3e4e6';
-
- /**
- * Slack channel (encoded ID or name)
- * @var string|null
- */
- private $channel;
-
- /**
- * Name of a bot
- * @var string|null
- */
- private $username;
-
- /**
- * User icon e.g. 'ghost', 'http://example.com/user.png'
- * @var string
- */
- private $userIcon;
-
- /**
- * Whether the message should be added to Slack as attachment (plain text otherwise)
- * @var bool
- */
- private $useAttachment;
-
- /**
- * Whether the the context/extra messages added to Slack as attachments are in a short style
- * @var bool
- */
- private $useShortAttachment;
-
- /**
- * Whether the attachment should include context and extra data
- * @var bool
- */
- private $includeContextAndExtra;
-
- /**
- * Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2']
- * @var array
- */
- private $excludeFields;
-
- /**
- * @var FormatterInterface
- */
- private $formatter;
-
- /**
- * @var NormalizerFormatter
- */
- private $normalizerFormatter;
-
- public function __construct($channel = null, $username = null, $useAttachment = true, $userIcon = null, $useShortAttachment = false, $includeContextAndExtra = false, array $excludeFields = array(), FormatterInterface $formatter = null)
- {
- $this->channel = $channel;
- $this->username = $username;
- $this->userIcon = trim($userIcon, ':');
- $this->useAttachment = $useAttachment;
- $this->useShortAttachment = $useShortAttachment;
- $this->includeContextAndExtra = $includeContextAndExtra;
- $this->excludeFields = $excludeFields;
- $this->formatter = $formatter;
-
- if ($this->includeContextAndExtra) {
- $this->normalizerFormatter = new NormalizerFormatter();
- }
- }
-
- public function getSlackData(array $record)
- {
- $dataArray = array();
- $record = $this->excludeFields($record);
-
- if ($this->username) {
- $dataArray['username'] = $this->username;
- }
-
- if ($this->channel) {
- $dataArray['channel'] = $this->channel;
- }
-
- if ($this->formatter && !$this->useAttachment) {
- $message = $this->formatter->format($record);
- } else {
- $message = $record['message'];
- }
-
- if ($this->useAttachment) {
- $attachment = array(
- 'fallback' => $message,
- 'text' => $message,
- 'color' => $this->getAttachmentColor($record['level']),
- 'fields' => array(),
- 'mrkdwn_in' => array('fields'),
- 'ts' => $record['datetime']->getTimestamp()
- );
-
- if ($this->useShortAttachment) {
- $attachment['title'] = $record['level_name'];
- } else {
- $attachment['title'] = 'Message';
- $attachment['fields'][] = $this->generateAttachmentField('Level', $record['level_name']);
- }
-
-
- if ($this->includeContextAndExtra) {
- foreach (array('extra', 'context') as $key) {
- if (empty($record[$key])) {
- continue;
- }
-
- if ($this->useShortAttachment) {
- $attachment['fields'][] = $this->generateAttachmentField(
- ucfirst($key),
- $record[$key]
- );
- } else {
- // Add all extra fields as individual fields in attachment
- $attachment['fields'] = array_merge(
- $attachment['fields'],
- $this->generateAttachmentFields($record[$key])
- );
- }
- }
- }
-
- $dataArray['attachments'] = array($attachment);
- } else {
- $dataArray['text'] = $message;
- }
-
- if ($this->userIcon) {
- if (filter_var($this->userIcon, FILTER_VALIDATE_URL)) {
- $dataArray['icon_url'] = $this->userIcon;
- } else {
- $dataArray['icon_emoji'] = ":{$this->userIcon}:";
- }
- }
-
- return $dataArray;
- }
-
- /**
- * Returned a Slack message attachment color associated with
- * provided level.
- *
- * @param int $level
- * @return string
- */
- public function getAttachmentColor($level)
- {
- switch (true) {
- case $level >= Logger::ERROR:
- return self::COLOR_DANGER;
- case $level >= Logger::WARNING:
- return self::COLOR_WARNING;
- case $level >= Logger::INFO:
- return self::COLOR_GOOD;
- default:
- return self::COLOR_DEFAULT;
- }
- }
-
- /**
- * Stringifies an array of key/value pairs to be used in attachment fields
- *
- * @param array $fields
- *
- * @return string
- */
- public function stringify($fields)
- {
- $normalized = $this->normalizerFormatter->format($fields);
- $prettyPrintFlag = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 128;
-
- $hasSecondDimension = count(array_filter($normalized, 'is_array'));
- $hasNonNumericKeys = !count(array_filter(array_keys($normalized), 'is_numeric'));
-
- return $hasSecondDimension || $hasNonNumericKeys
- ? json_encode($normalized, $prettyPrintFlag)
- : json_encode($normalized);
- }
-
- /**
- * Sets the formatter
- *
- * @param FormatterInterface $formatter
- */
- public function setFormatter(FormatterInterface $formatter)
- {
- $this->formatter = $formatter;
- }
-
- /**
- * Generates attachment field
- *
- * @param string $title
- * @param string|array $value\
- *
- * @return array
- */
- private function generateAttachmentField($title, $value)
- {
- $value = is_array($value)
- ? sprintf('```%s```', $this->stringify($value))
- : $value;
-
- return array(
- 'title' => $title,
- 'value' => $value,
- 'short' => false
- );
- }
-
- /**
- * Generates a collection of attachment fields from array
- *
- * @param array $data
- *
- * @return array
- */
- private function generateAttachmentFields(array $data)
- {
- $fields = array();
- foreach ($data as $key => $value) {
- $fields[] = $this->generateAttachmentField($key, $value);
- }
-
- return $fields;
- }
-
- /**
- * Get a copy of record with fields excluded according to $this->excludeFields
- *
- * @param array $record
- *
- * @return array
- */
- private function excludeFields(array $record)
- {
- foreach ($this->excludeFields as $field) {
- $keys = explode('.', $field);
- $node = &$record;
- $lastKey = end($keys);
- foreach ($keys as $key) {
- if (!isset($node[$key])) {
- break;
- }
- if ($lastKey === $key) {
- unset($node[$key]);
- break;
- }
- $node = &$node[$key];
- }
- }
-
- return $record;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php
deleted file mode 100644
index 9324fc9a..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php
+++ /dev/null
@@ -1,204 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\FormatterInterface;
-use Monolog\Logger;
-use Monolog\Handler\Slack\SlackRecord;
-
-/**
- * Sends notifications through Slack API
- *
- * @author Greg Kedzierski <greg@gregkedzierski.com>
- * @see https://api.slack.com/
- */
-class SlackHandler extends SocketHandler
-{
- /**
- * Slack API token
- * @var string
- */
- private $token;
-
- /**
- * Instance of the SlackRecord util class preparing data for Slack API.
- * @var SlackRecord
- */
- private $slackRecord;
-
- /**
- * @param string $token Slack API token
- * @param string $channel Slack channel (encoded ID or name)
- * @param string|null $username Name of a bot
- * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise)
- * @param string|null $iconEmoji The emoji name to use (or null)
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- * @param bool $useShortAttachment Whether the the context/extra messages added to Slack as attachments are in a short style
- * @param bool $includeContextAndExtra Whether the attachment should include context and extra data
- * @param array $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2']
- * @throws MissingExtensionException If no OpenSSL PHP extension configured
- */
- public function __construct($token, $channel, $username = null, $useAttachment = true, $iconEmoji = null, $level = Logger::CRITICAL, $bubble = true, $useShortAttachment = false, $includeContextAndExtra = false, array $excludeFields = array())
- {
- if (!extension_loaded('openssl')) {
- throw new MissingExtensionException('The OpenSSL PHP extension is required to use the SlackHandler');
- }
-
- parent::__construct('ssl://slack.com:443', $level, $bubble);
-
- $this->slackRecord = new SlackRecord(
- $channel,
- $username,
- $useAttachment,
- $iconEmoji,
- $useShortAttachment,
- $includeContextAndExtra,
- $excludeFields,
- $this->formatter
- );
-
- $this->token = $token;
- }
-
- public function getSlackRecord()
- {
- return $this->slackRecord;
- }
-
- /**
- * {@inheritdoc}
- *
- * @param array $record
- * @return string
- */
- protected function generateDataStream($record)
- {
- $content = $this->buildContent($record);
-
- return $this->buildHeader($content) . $content;
- }
-
- /**
- * Builds the body of API call
- *
- * @param array $record
- * @return string
- */
- private function buildContent($record)
- {
- $dataArray = $this->prepareContentData($record);
-
- return http_build_query($dataArray);
- }
-
- /**
- * Prepares content data
- *
- * @param array $record
- * @return array
- */
- protected function prepareContentData($record)
- {
- $dataArray = $this->slackRecord->getSlackData($record);
- $dataArray['token'] = $this->token;
-
- if (!empty($dataArray['attachments'])) {
- $dataArray['attachments'] = json_encode($dataArray['attachments']);
- }
-
- return $dataArray;
- }
-
- /**
- * Builds the header of the API Call
- *
- * @param string $content
- * @return string
- */
- private function buildHeader($content)
- {
- $header = "POST /api/chat.postMessage HTTP/1.1\r\n";
- $header .= "Host: slack.com\r\n";
- $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
- $header .= "Content-Length: " . strlen($content) . "\r\n";
- $header .= "\r\n";
-
- return $header;
- }
-
- /**
- * {@inheritdoc}
- *
- * @param array $record
- */
- protected function write(array $record)
- {
- parent::write($record);
- $res = $this->getResource();
- if (is_resource($res)) {
- @fread($res, 2048);
- }
- $this->closeSocket();
- }
-
- /**
- * Returned a Slack message attachment color associated with
- * provided level.
- *
- * @param int $level
- * @return string
- * @deprecated Use underlying SlackRecord instead
- */
- protected function getAttachmentColor($level)
- {
- trigger_error(
- 'SlackHandler::getAttachmentColor() is deprecated. Use underlying SlackRecord instead.',
- E_USER_DEPRECATED
- );
-
- return $this->slackRecord->getAttachmentColor($level);
- }
-
- /**
- * Stringifies an array of key/value pairs to be used in attachment fields
- *
- * @param array $fields
- * @return string
- * @deprecated Use underlying SlackRecord instead
- */
- protected function stringify($fields)
- {
- trigger_error(
- 'SlackHandler::stringify() is deprecated. Use underlying SlackRecord instead.',
- E_USER_DEPRECATED
- );
-
- return $this->slackRecord->stringify($fields);
- }
-
- public function setFormatter(FormatterInterface $formatter)
- {
- parent::setFormatter($formatter);
- $this->slackRecord->setFormatter($formatter);
-
- return $this;
- }
-
- public function getFormatter()
- {
- $formatter = parent::getFormatter();
- $this->slackRecord->setFormatter($formatter);
-
- return $formatter;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php
deleted file mode 100644
index 0d3e3ea1..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\FormatterInterface;
-use Monolog\Logger;
-use Monolog\Handler\Slack\SlackRecord;
-
-/**
- * Sends notifications through Slack Webhooks
- *
- * @author Haralan Dobrev <hkdobrev@gmail.com>
- * @see https://api.slack.com/incoming-webhooks
- */
-class SlackWebhookHandler extends AbstractProcessingHandler
-{
- /**
- * Slack Webhook token
- * @var string
- */
- private $webhookUrl;
-
- /**
- * Instance of the SlackRecord util class preparing data for Slack API.
- * @var SlackRecord
- */
- private $slackRecord;
-
- /**
- * @param string $webhookUrl Slack Webhook URL
- * @param string|null $channel Slack channel (encoded ID or name)
- * @param string|null $username Name of a bot
- * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise)
- * @param string|null $iconEmoji The emoji name to use (or null)
- * @param bool $useShortAttachment Whether the the context/extra messages added to Slack as attachments are in a short style
- * @param bool $includeContextAndExtra Whether the attachment should include context and extra data
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- * @param array $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2']
- */
- public function __construct($webhookUrl, $channel = null, $username = null, $useAttachment = true, $iconEmoji = null, $useShortAttachment = false, $includeContextAndExtra = false, $level = Logger::CRITICAL, $bubble = true, array $excludeFields = array())
- {
- parent::__construct($level, $bubble);
-
- $this->webhookUrl = $webhookUrl;
-
- $this->slackRecord = new SlackRecord(
- $channel,
- $username,
- $useAttachment,
- $iconEmoji,
- $useShortAttachment,
- $includeContextAndExtra,
- $excludeFields,
- $this->formatter
- );
- }
-
- public function getSlackRecord()
- {
- return $this->slackRecord;
- }
-
- /**
- * {@inheritdoc}
- *
- * @param array $record
- */
- protected function write(array $record)
- {
- $postData = $this->slackRecord->getSlackData($record);
- $postString = json_encode($postData);
-
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $this->webhookUrl);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- if (defined('CURLOPT_SAFE_UPLOAD')) {
- curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true);
- }
- curl_setopt($ch, CURLOPT_POSTFIELDS, array('payload' => $postString));
-
- Curl\Util::execute($ch);
- }
-
- public function setFormatter(FormatterInterface $formatter)
- {
- parent::setFormatter($formatter);
- $this->slackRecord->setFormatter($formatter);
-
- return $this;
- }
-
- public function getFormatter()
- {
- $formatter = parent::getFormatter();
- $this->slackRecord->setFormatter($formatter);
-
- return $formatter;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php
deleted file mode 100644
index baead525..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Sends notifications through Slack's Slackbot
- *
- * @author Haralan Dobrev <hkdobrev@gmail.com>
- * @see https://slack.com/apps/A0F81R8ET-slackbot
- */
-class SlackbotHandler extends AbstractProcessingHandler
-{
- /**
- * The slug of the Slack team
- * @var string
- */
- private $slackTeam;
-
- /**
- * Slackbot token
- * @var string
- */
- private $token;
-
- /**
- * Slack channel name
- * @var string
- */
- private $channel;
-
- /**
- * @param string $slackTeam Slack team slug
- * @param string $token Slackbot token
- * @param string $channel Slack channel (encoded ID or name)
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($slackTeam, $token, $channel, $level = Logger::CRITICAL, $bubble = true)
- {
- parent::__construct($level, $bubble);
-
- $this->slackTeam = $slackTeam;
- $this->token = $token;
- $this->channel = $channel;
- }
-
- /**
- * {@inheritdoc}
- *
- * @param array $record
- */
- protected function write(array $record)
- {
- $slackbotUrl = sprintf(
- 'https://%s.slack.com/services/hooks/slackbot?token=%s&channel=%s',
- $this->slackTeam,
- $this->token,
- $this->channel
- );
-
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $slackbotUrl);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $record['message']);
-
- Curl\Util::execute($ch);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php
deleted file mode 100644
index 7a61bf4e..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php
+++ /dev/null
@@ -1,346 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Stores to any socket - uses fsockopen() or pfsockopen().
- *
- * @author Pablo de Leon Belloc <pablolb@gmail.com>
- * @see http://php.net/manual/en/function.fsockopen.php
- */
-class SocketHandler extends AbstractProcessingHandler
-{
- private $connectionString;
- private $connectionTimeout;
- private $resource;
- private $timeout = 0;
- private $writingTimeout = 10;
- private $lastSentBytes = null;
- private $persistent = false;
- private $errno;
- private $errstr;
- private $lastWritingAt;
-
- /**
- * @param string $connectionString Socket connection string
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($connectionString, $level = Logger::DEBUG, $bubble = true)
- {
- parent::__construct($level, $bubble);
- $this->connectionString = $connectionString;
- $this->connectionTimeout = (float) ini_get('default_socket_timeout');
- }
-
- /**
- * Connect (if necessary) and write to the socket
- *
- * @param array $record
- *
- * @throws \UnexpectedValueException
- * @throws \RuntimeException
- */
- protected function write(array $record)
- {
- $this->connectIfNotConnected();
- $data = $this->generateDataStream($record);
- $this->writeToSocket($data);
- }
-
- /**
- * We will not close a PersistentSocket instance so it can be reused in other requests.
- */
- public function close()
- {
- if (!$this->isPersistent()) {
- $this->closeSocket();
- }
- }
-
- /**
- * Close socket, if open
- */
- public function closeSocket()
- {
- if (is_resource($this->resource)) {
- fclose($this->resource);
- $this->resource = null;
- }
- }
-
- /**
- * Set socket connection to nbe persistent. It only has effect before the connection is initiated.
- *
- * @param bool $persistent
- */
- public function setPersistent($persistent)
- {
- $this->persistent = (boolean) $persistent;
- }
-
- /**
- * Set connection timeout. Only has effect before we connect.
- *
- * @param float $seconds
- *
- * @see http://php.net/manual/en/function.fsockopen.php
- */
- public function setConnectionTimeout($seconds)
- {
- $this->validateTimeout($seconds);
- $this->connectionTimeout = (float) $seconds;
- }
-
- /**
- * Set write timeout. Only has effect before we connect.
- *
- * @param float $seconds
- *
- * @see http://php.net/manual/en/function.stream-set-timeout.php
- */
- public function setTimeout($seconds)
- {
- $this->validateTimeout($seconds);
- $this->timeout = (float) $seconds;
- }
-
- /**
- * Set writing timeout. Only has effect during connection in the writing cycle.
- *
- * @param float $seconds 0 for no timeout
- */
- public function setWritingTimeout($seconds)
- {
- $this->validateTimeout($seconds);
- $this->writingTimeout = (float) $seconds;
- }
-
- /**
- * Get current connection string
- *
- * @return string
- */
- public function getConnectionString()
- {
- return $this->connectionString;
- }
-
- /**
- * Get persistent setting
- *
- * @return bool
- */
- public function isPersistent()
- {
- return $this->persistent;
- }
-
- /**
- * Get current connection timeout setting
- *
- * @return float
- */
- public function getConnectionTimeout()
- {
- return $this->connectionTimeout;
- }
-
- /**
- * Get current in-transfer timeout
- *
- * @return float
- */
- public function getTimeout()
- {
- return $this->timeout;
- }
-
- /**
- * Get current local writing timeout
- *
- * @return float
- */
- public function getWritingTimeout()
- {
- return $this->writingTimeout;
- }
-
- /**
- * Check to see if the socket is currently available.
- *
- * UDP might appear to be connected but might fail when writing. See http://php.net/fsockopen for details.
- *
- * @return bool
- */
- public function isConnected()
- {
- return is_resource($this->resource)
- && !feof($this->resource); // on TCP - other party can close connection.
- }
-
- /**
- * Wrapper to allow mocking
- */
- protected function pfsockopen()
- {
- return @pfsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout);
- }
-
- /**
- * Wrapper to allow mocking
- */
- protected function fsockopen()
- {
- return @fsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout);
- }
-
- /**
- * Wrapper to allow mocking
- *
- * @see http://php.net/manual/en/function.stream-set-timeout.php
- */
- protected function streamSetTimeout()
- {
- $seconds = floor($this->timeout);
- $microseconds = round(($this->timeout - $seconds) * 1e6);
-
- return stream_set_timeout($this->resource, $seconds, $microseconds);
- }
-
- /**
- * Wrapper to allow mocking
- */
- protected function fwrite($data)
- {
- return @fwrite($this->resource, $data);
- }
-
- /**
- * Wrapper to allow mocking
- */
- protected function streamGetMetadata()
- {
- return stream_get_meta_data($this->resource);
- }
-
- private function validateTimeout($value)
- {
- $ok = filter_var($value, FILTER_VALIDATE_FLOAT);
- if ($ok === false || $value < 0) {
- throw new \InvalidArgumentException("Timeout must be 0 or a positive float (got $value)");
- }
- }
-
- private function connectIfNotConnected()
- {
- if ($this->isConnected()) {
- return;
- }
- $this->connect();
- }
-
- protected function generateDataStream($record)
- {
- return (string) $record['formatted'];
- }
-
- /**
- * @return resource|null
- */
- protected function getResource()
- {
- return $this->resource;
- }
-
- private function connect()
- {
- $this->createSocketResource();
- $this->setSocketTimeout();
- }
-
- private function createSocketResource()
- {
- if ($this->isPersistent()) {
- $resource = $this->pfsockopen();
- } else {
- $resource = $this->fsockopen();
- }
- if (!$resource) {
- throw new \UnexpectedValueException("Failed connecting to $this->connectionString ($this->errno: $this->errstr)");
- }
- $this->resource = $resource;
- }
-
- private function setSocketTimeout()
- {
- if (!$this->streamSetTimeout()) {
- throw new \UnexpectedValueException("Failed setting timeout with stream_set_timeout()");
- }
- }
-
- private function writeToSocket($data)
- {
- $length = strlen($data);
- $sent = 0;
- $this->lastSentBytes = $sent;
- while ($this->isConnected() && $sent < $length) {
- if (0 == $sent) {
- $chunk = $this->fwrite($data);
- } else {
- $chunk = $this->fwrite(substr($data, $sent));
- }
- if ($chunk === false) {
- throw new \RuntimeException("Could not write to socket");
- }
- $sent += $chunk;
- $socketInfo = $this->streamGetMetadata();
- if ($socketInfo['timed_out']) {
- throw new \RuntimeException("Write timed-out");
- }
-
- if ($this->writingIsTimedOut($sent)) {
- throw new \RuntimeException("Write timed-out, no data sent for `{$this->writingTimeout}` seconds, probably we got disconnected (sent $sent of $length)");
- }
- }
- if (!$this->isConnected() && $sent < $length) {
- throw new \RuntimeException("End-of-file reached, probably we got disconnected (sent $sent of $length)");
- }
- }
-
- private function writingIsTimedOut($sent)
- {
- $writingTimeout = (int) floor($this->writingTimeout);
- if (0 === $writingTimeout) {
- return false;
- }
-
- if ($sent !== $this->lastSentBytes) {
- $this->lastWritingAt = time();
- $this->lastSentBytes = $sent;
-
- return false;
- } else {
- usleep(100);
- }
-
- if ((time() - $this->lastWritingAt) >= $writingTimeout) {
- $this->closeSocket();
-
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
deleted file mode 100644
index 09a15738..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
+++ /dev/null
@@ -1,176 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Stores to any stream resource
- *
- * Can be used to store into php://stderr, remote and local files, etc.
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class StreamHandler extends AbstractProcessingHandler
-{
- protected $stream;
- protected $url;
- private $errorMessage;
- protected $filePermission;
- protected $useLocking;
- private $dirCreated;
-
- /**
- * @param resource|string $stream
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write)
- * @param Boolean $useLocking Try to lock log file before doing any writes
- *
- * @throws \Exception If a missing directory is not buildable
- * @throws \InvalidArgumentException If stream is not a resource or string
- */
- public function __construct($stream, $level = Logger::DEBUG, $bubble = true, $filePermission = null, $useLocking = false)
- {
- parent::__construct($level, $bubble);
- if (is_resource($stream)) {
- $this->stream = $stream;
- } elseif (is_string($stream)) {
- $this->url = $stream;
- } else {
- throw new \InvalidArgumentException('A stream must either be a resource or a string.');
- }
-
- $this->filePermission = $filePermission;
- $this->useLocking = $useLocking;
- }
-
- /**
- * {@inheritdoc}
- */
- public function close()
- {
- if ($this->url && is_resource($this->stream)) {
- fclose($this->stream);
- }
- $this->stream = null;
- }
-
- /**
- * Return the currently active stream if it is open
- *
- * @return resource|null
- */
- public function getStream()
- {
- return $this->stream;
- }
-
- /**
- * Return the stream URL if it was configured with a URL and not an active resource
- *
- * @return string|null
- */
- public function getUrl()
- {
- return $this->url;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- if (!is_resource($this->stream)) {
- if (null === $this->url || '' === $this->url) {
- throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
- }
- $this->createDir();
- $this->errorMessage = null;
- set_error_handler(array($this, 'customErrorHandler'));
- $this->stream = fopen($this->url, 'a');
- if ($this->filePermission !== null) {
- @chmod($this->url, $this->filePermission);
- }
- restore_error_handler();
- if (!is_resource($this->stream)) {
- $this->stream = null;
- throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened: '.$this->errorMessage, $this->url));
- }
- }
-
- if ($this->useLocking) {
- // ignoring errors here, there's not much we can do about them
- flock($this->stream, LOCK_EX);
- }
-
- $this->streamWrite($this->stream, $record);
-
- if ($this->useLocking) {
- flock($this->stream, LOCK_UN);
- }
- }
-
- /**
- * Write to stream
- * @param resource $stream
- * @param array $record
- */
- protected function streamWrite($stream, array $record)
- {
- fwrite($stream, (string) $record['formatted']);
- }
-
- private function customErrorHandler($code, $msg)
- {
- $this->errorMessage = preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg);
- }
-
- /**
- * @param string $stream
- *
- * @return null|string
- */
- private function getDirFromStream($stream)
- {
- $pos = strpos($stream, '://');
- if ($pos === false) {
- return dirname($stream);
- }
-
- if ('file://' === substr($stream, 0, 7)) {
- return dirname(substr($stream, 7));
- }
-
- return;
- }
-
- private function createDir()
- {
- // Do not try to create dir if it has already been tried.
- if ($this->dirCreated) {
- return;
- }
-
- $dir = $this->getDirFromStream($this->url);
- if (null !== $dir && !is_dir($dir)) {
- $this->errorMessage = null;
- set_error_handler(array($this, 'customErrorHandler'));
- $status = mkdir($dir, 0777, true);
- restore_error_handler();
- if (false === $status) {
- throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and its not buildable: '.$this->errorMessage, $dir));
- }
- }
- $this->dirCreated = true;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php
deleted file mode 100644
index aba13967..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-
-/**
- * SwiftMailerHandler uses Swift_Mailer to send the emails
- *
- * @author Gyula Sallai
- */
-class SwiftMailerHandler extends MailHandler
-{
- protected $mailer;
- private $messageTemplate;
-
- /**
- * @param \Swift_Mailer $mailer The mailer to use
- * @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct(\Swift_Mailer $mailer, $message, $level = Logger::ERROR, $bubble = true)
- {
- parent::__construct($level, $bubble);
-
- $this->mailer = $mailer;
- $this->messageTemplate = $message;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function send($content, array $records)
- {
- $this->mailer->send($this->buildMessage($content, $records));
- }
-
- /**
- * Creates instance of Swift_Message to be sent
- *
- * @param string $content formatted email body to be sent
- * @param array $records Log records that formed the content
- * @return \Swift_Message
- */
- protected function buildMessage($content, array $records)
- {
- $message = null;
- if ($this->messageTemplate instanceof \Swift_Message) {
- $message = clone $this->messageTemplate;
- $message->generateId();
- } elseif (is_callable($this->messageTemplate)) {
- $message = call_user_func($this->messageTemplate, $content, $records);
- }
-
- if (!$message instanceof \Swift_Message) {
- throw new \InvalidArgumentException('Could not resolve message as instance of Swift_Message or a callable returning it');
- }
-
- if ($records) {
- $subjectFormatter = new LineFormatter($message->getSubject());
- $message->setSubject($subjectFormatter->format($this->getHighestRecord($records)));
- }
-
- $message->setBody($content);
- $message->setDate(time());
-
- return $message;
- }
-
- /**
- * BC getter, to be removed in 2.0
- */
- public function __get($name)
- {
- if ($name === 'message') {
- trigger_error('SwiftMailerHandler->message is deprecated, use ->buildMessage() instead to retrieve the message', E_USER_DEPRECATED);
-
- return $this->buildMessage(null, array());
- }
-
- throw new \InvalidArgumentException('Invalid property '.$name);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php
deleted file mode 100644
index 376bc3b2..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-/**
- * Logs to syslog service.
- *
- * usage example:
- *
- * $log = new Logger('application');
- * $syslog = new SyslogHandler('myfacility', 'local6');
- * $formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%");
- * $syslog->setFormatter($formatter);
- * $log->pushHandler($syslog);
- *
- * @author Sven Paulus <sven@karlsruhe.org>
- */
-class SyslogHandler extends AbstractSyslogHandler
-{
- protected $ident;
- protected $logopts;
-
- /**
- * @param string $ident
- * @param mixed $facility
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- * @param int $logopts Option flags for the openlog() call, defaults to LOG_PID
- */
- public function __construct($ident, $facility = LOG_USER, $level = Logger::DEBUG, $bubble = true, $logopts = LOG_PID)
- {
- parent::__construct($facility, $level, $bubble);
-
- $this->ident = $ident;
- $this->logopts = $logopts;
- }
-
- /**
- * {@inheritdoc}
- */
- public function close()
- {
- closelog();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- if (!openlog($this->ident, $this->logopts, $this->facility)) {
- throw new \LogicException('Can\'t open syslog for ident "'.$this->ident.'" and facility "'.$this->facility.'"');
- }
- syslog($this->logLevels[$record['level']], (string) $record['formatted']);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php
deleted file mode 100644
index 3bff085b..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler\SyslogUdp;
-
-class UdpSocket
-{
- const DATAGRAM_MAX_LENGTH = 65023;
-
- protected $ip;
- protected $port;
- protected $socket;
-
- public function __construct($ip, $port = 514)
- {
- $this->ip = $ip;
- $this->port = $port;
- $this->socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
- }
-
- public function write($line, $header = "")
- {
- $this->send($this->assembleMessage($line, $header));
- }
-
- public function close()
- {
- if (is_resource($this->socket)) {
- socket_close($this->socket);
- $this->socket = null;
- }
- }
-
- protected function send($chunk)
- {
- if (!is_resource($this->socket)) {
- throw new \LogicException('The UdpSocket to '.$this->ip.':'.$this->port.' has been closed and can not be written to anymore');
- }
- socket_sendto($this->socket, $chunk, strlen($chunk), $flags = 0, $this->ip, $this->port);
- }
-
- protected function assembleMessage($line, $header)
- {
- $chunkSize = self::DATAGRAM_MAX_LENGTH - strlen($header);
-
- return $header . substr($line, 0, $chunkSize);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php
deleted file mode 100644
index 74d946a5..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\Handler\SyslogUdp\UdpSocket;
-
-/**
- * A Handler for logging to a remote syslogd server.
- *
- * @author Jesper Skovgaard Nielsen <nulpunkt@gmail.com>
- */
-class SyslogUdpHandler extends AbstractSyslogHandler
-{
- protected $socket;
-
- /**
- * @param string $host
- * @param int $port
- * @param mixed $facility
- * @param int $level The minimum logging level at which this handler will be triggered
- * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
- */
- public function __construct($host, $port = 514, $facility = LOG_USER, $level = Logger::DEBUG, $bubble = true)
- {
- parent::__construct($facility, $level, $bubble);
-
- $this->socket = new UdpSocket($host, $port ?: 514);
- }
-
- protected function write(array $record)
- {
- $lines = $this->splitMessageIntoLines($record['formatted']);
-
- $header = $this->makeCommonSyslogHeader($this->logLevels[$record['level']]);
-
- foreach ($lines as $line) {
- $this->socket->write($line, $header);
- }
- }
-
- public function close()
- {
- $this->socket->close();
- }
-
- private function splitMessageIntoLines($message)
- {
- if (is_array($message)) {
- $message = implode("\n", $message);
- }
-
- return preg_split('/$\R?^/m', $message, -1, PREG_SPLIT_NO_EMPTY);
- }
-
- /**
- * Make common syslog header (see rfc5424)
- */
- protected function makeCommonSyslogHeader($severity)
- {
- $priority = $severity + $this->facility;
-
- return "<$priority>1 ";
- }
-
- /**
- * Inject your own socket, mainly used for testing
- */
- public function setSocket($socket)
- {
- $this->socket = $socket;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php
deleted file mode 100644
index e39cfc66..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php
+++ /dev/null
@@ -1,154 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-/**
- * Used for testing purposes.
- *
- * It records all records and gives you access to them for verification.
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- *
- * @method bool hasEmergency($record)
- * @method bool hasAlert($record)
- * @method bool hasCritical($record)
- * @method bool hasError($record)
- * @method bool hasWarning($record)
- * @method bool hasNotice($record)
- * @method bool hasInfo($record)
- * @method bool hasDebug($record)
- *
- * @method bool hasEmergencyRecords()
- * @method bool hasAlertRecords()
- * @method bool hasCriticalRecords()
- * @method bool hasErrorRecords()
- * @method bool hasWarningRecords()
- * @method bool hasNoticeRecords()
- * @method bool hasInfoRecords()
- * @method bool hasDebugRecords()
- *
- * @method bool hasEmergencyThatContains($message)
- * @method bool hasAlertThatContains($message)
- * @method bool hasCriticalThatContains($message)
- * @method bool hasErrorThatContains($message)
- * @method bool hasWarningThatContains($message)
- * @method bool hasNoticeThatContains($message)
- * @method bool hasInfoThatContains($message)
- * @method bool hasDebugThatContains($message)
- *
- * @method bool hasEmergencyThatMatches($message)
- * @method bool hasAlertThatMatches($message)
- * @method bool hasCriticalThatMatches($message)
- * @method bool hasErrorThatMatches($message)
- * @method bool hasWarningThatMatches($message)
- * @method bool hasNoticeThatMatches($message)
- * @method bool hasInfoThatMatches($message)
- * @method bool hasDebugThatMatches($message)
- *
- * @method bool hasEmergencyThatPasses($message)
- * @method bool hasAlertThatPasses($message)
- * @method bool hasCriticalThatPasses($message)
- * @method bool hasErrorThatPasses($message)
- * @method bool hasWarningThatPasses($message)
- * @method bool hasNoticeThatPasses($message)
- * @method bool hasInfoThatPasses($message)
- * @method bool hasDebugThatPasses($message)
- */
-class TestHandler extends AbstractProcessingHandler
-{
- protected $records = array();
- protected $recordsByLevel = array();
-
- public function getRecords()
- {
- return $this->records;
- }
-
- public function clear()
- {
- $this->records = array();
- $this->recordsByLevel = array();
- }
-
- public function hasRecords($level)
- {
- return isset($this->recordsByLevel[$level]);
- }
-
- public function hasRecord($record, $level)
- {
- if (is_array($record)) {
- $record = $record['message'];
- }
-
- return $this->hasRecordThatPasses(function ($rec) use ($record) {
- return $rec['message'] === $record;
- }, $level);
- }
-
- public function hasRecordThatContains($message, $level)
- {
- return $this->hasRecordThatPasses(function ($rec) use ($message) {
- return strpos($rec['message'], $message) !== false;
- }, $level);
- }
-
- public function hasRecordThatMatches($regex, $level)
- {
- return $this->hasRecordThatPasses(function ($rec) use ($regex) {
- return preg_match($regex, $rec['message']) > 0;
- }, $level);
- }
-
- public function hasRecordThatPasses($predicate, $level)
- {
- if (!is_callable($predicate)) {
- throw new \InvalidArgumentException("Expected a callable for hasRecordThatSucceeds");
- }
-
- if (!isset($this->recordsByLevel[$level])) {
- return false;
- }
-
- foreach ($this->recordsByLevel[$level] as $i => $rec) {
- if (call_user_func($predicate, $rec, $i)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- $this->recordsByLevel[$record['level']][] = $record;
- $this->records[] = $record;
- }
-
- public function __call($method, $args)
- {
- if (preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) {
- $genericMethod = $matches[1] . ('Records' !== $matches[3] ? 'Record' : '') . $matches[3];
- $level = constant('Monolog\Logger::' . strtoupper($matches[2]));
- if (method_exists($this, $genericMethod)) {
- $args[] = $level;
-
- return call_user_func_array(array($this, $genericMethod), $args);
- }
- }
-
- throw new \BadMethodCallException('Call to undefined method ' . get_class($this) . '::' . $method . '()');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php
deleted file mode 100644
index 2732ba3d..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-/**
- * Forwards records to multiple handlers suppressing failures of each handler
- * and continuing through to give every handler a chance to succeed.
- *
- * @author Craig D'Amelio <craig@damelio.ca>
- */
-class WhatFailureGroupHandler extends GroupHandler
-{
- /**
- * {@inheritdoc}
- */
- public function handle(array $record)
- {
- if ($this->processors) {
- foreach ($this->processors as $processor) {
- $record = call_user_func($processor, $record);
- }
- }
-
- foreach ($this->handlers as $handler) {
- try {
- $handler->handle($record);
- } catch (\Exception $e) {
- // What failure?
- } catch (\Throwable $e) {
- // What failure?
- }
- }
-
- return false === $this->bubble;
- }
-
- /**
- * {@inheritdoc}
- */
- public function handleBatch(array $records)
- {
- foreach ($this->handlers as $handler) {
- try {
- $handler->handleBatch($records);
- } catch (\Exception $e) {
- // What failure?
- } catch (\Throwable $e) {
- // What failure?
- }
- }
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php
deleted file mode 100644
index f22cf218..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\NormalizerFormatter;
-use Monolog\Logger;
-
-/**
- * Handler sending logs to Zend Monitor
- *
- * @author Christian Bergau <cbergau86@gmail.com>
- */
-class ZendMonitorHandler extends AbstractProcessingHandler
-{
- /**
- * Monolog level / ZendMonitor Custom Event priority map
- *
- * @var array
- */
- protected $levelMap = array(
- Logger::DEBUG => 1,
- Logger::INFO => 2,
- Logger::NOTICE => 3,
- Logger::WARNING => 4,
- Logger::ERROR => 5,
- Logger::CRITICAL => 6,
- Logger::ALERT => 7,
- Logger::EMERGENCY => 0,
- );
-
- /**
- * Construct
- *
- * @param int $level
- * @param bool $bubble
- * @throws MissingExtensionException
- */
- public function __construct($level = Logger::DEBUG, $bubble = true)
- {
- if (!function_exists('zend_monitor_custom_event')) {
- throw new MissingExtensionException('You must have Zend Server installed in order to use this handler');
- }
- parent::__construct($level, $bubble);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write(array $record)
- {
- $this->writeZendMonitorCustomEvent(
- $this->levelMap[$record['level']],
- $record['message'],
- $record['formatted']
- );
- }
-
- /**
- * Write a record to Zend Monitor
- *
- * @param int $level
- * @param string $message
- * @param array $formatted
- */
- protected function writeZendMonitorCustomEvent($level, $message, $formatted)
- {
- zend_monitor_custom_event($level, $message, $formatted);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getDefaultFormatter()
- {
- return new NormalizerFormatter();
- }
-
- /**
- * Get the level map
- *
- * @return array
- */
- public function getLevelMap()
- {
- return $this->levelMap;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Logger.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Logger.php
deleted file mode 100644
index 49d00af1..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Logger.php
+++ /dev/null
@@ -1,700 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-use Monolog\Handler\HandlerInterface;
-use Monolog\Handler\StreamHandler;
-use Psr\Log\LoggerInterface;
-use Psr\Log\InvalidArgumentException;
-
-/**
- * Monolog log channel
- *
- * It contains a stack of Handlers and a stack of Processors,
- * and uses them to store records that are added to it.
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class Logger implements LoggerInterface
-{
- /**
- * Detailed debug information
- */
- const DEBUG = 100;
-
- /**
- * Interesting events
- *
- * Examples: User logs in, SQL logs.
- */
- const INFO = 200;
-
- /**
- * Uncommon events
- */
- const NOTICE = 250;
-
- /**
- * Exceptional occurrences that are not errors
- *
- * Examples: Use of deprecated APIs, poor use of an API,
- * undesirable things that are not necessarily wrong.
- */
- const WARNING = 300;
-
- /**
- * Runtime errors
- */
- const ERROR = 400;
-
- /**
- * Critical conditions
- *
- * Example: Application component unavailable, unexpected exception.
- */
- const CRITICAL = 500;
-
- /**
- * Action must be taken immediately
- *
- * Example: Entire website down, database unavailable, etc.
- * This should trigger the SMS alerts and wake you up.
- */
- const ALERT = 550;
-
- /**
- * Urgent alert.
- */
- const EMERGENCY = 600;
-
- /**
- * Monolog API version
- *
- * This is only bumped when API breaks are done and should
- * follow the major version of the library
- *
- * @var int
- */
- const API = 1;
-
- /**
- * Logging levels from syslog protocol defined in RFC 5424
- *
- * @var array $levels Logging levels
- */
- protected static $levels = array(
- self::DEBUG => 'DEBUG',
- self::INFO => 'INFO',
- self::NOTICE => 'NOTICE',
- self::WARNING => 'WARNING',
- self::ERROR => 'ERROR',
- self::CRITICAL => 'CRITICAL',
- self::ALERT => 'ALERT',
- self::EMERGENCY => 'EMERGENCY',
- );
-
- /**
- * @var \DateTimeZone
- */
- protected static $timezone;
-
- /**
- * @var string
- */
- protected $name;
-
- /**
- * The handler stack
- *
- * @var HandlerInterface[]
- */
- protected $handlers;
-
- /**
- * Processors that will process all log records
- *
- * To process records of a single handler instead, add the processor on that specific handler
- *
- * @var callable[]
- */
- protected $processors;
-
- /**
- * @var bool
- */
- protected $microsecondTimestamps = true;
-
- /**
- * @param string $name The logging channel
- * @param HandlerInterface[] $handlers Optional stack of handlers, the first one in the array is called first, etc.
- * @param callable[] $processors Optional array of processors
- */
- public function __construct($name, array $handlers = array(), array $processors = array())
- {
- $this->name = $name;
- $this->handlers = $handlers;
- $this->processors = $processors;
- }
-
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Return a new cloned instance with the name changed
- *
- * @return static
- */
- public function withName($name)
- {
- $new = clone $this;
- $new->name = $name;
-
- return $new;
- }
-
- /**
- * Pushes a handler on to the stack.
- *
- * @param HandlerInterface $handler
- * @return $this
- */
- public function pushHandler(HandlerInterface $handler)
- {
- array_unshift($this->handlers, $handler);
-
- return $this;
- }
-
- /**
- * Pops a handler from the stack
- *
- * @return HandlerInterface
- */
- public function popHandler()
- {
- if (!$this->handlers) {
- throw new \LogicException('You tried to pop from an empty handler stack.');
- }
-
- return array_shift($this->handlers);
- }
-
- /**
- * Set handlers, replacing all existing ones.
- *
- * If a map is passed, keys will be ignored.
- *
- * @param HandlerInterface[] $handlers
- * @return $this
- */
- public function setHandlers(array $handlers)
- {
- $this->handlers = array();
- foreach (array_reverse($handlers) as $handler) {
- $this->pushHandler($handler);
- }
-
- return $this;
- }
-
- /**
- * @return HandlerInterface[]
- */
- public function getHandlers()
- {
- return $this->handlers;
- }
-
- /**
- * Adds a processor on to the stack.
- *
- * @param callable $callback
- * @return $this
- */
- public function pushProcessor($callback)
- {
- if (!is_callable($callback)) {
- throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), '.var_export($callback, true).' given');
- }
- array_unshift($this->processors, $callback);
-
- return $this;
- }
-
- /**
- * Removes the processor on top of the stack and returns it.
- *
- * @return callable
- */
- public function popProcessor()
- {
- if (!$this->processors) {
- throw new \LogicException('You tried to pop from an empty processor stack.');
- }
-
- return array_shift($this->processors);
- }
-
- /**
- * @return callable[]
- */
- public function getProcessors()
- {
- return $this->processors;
- }
-
- /**
- * Control the use of microsecond resolution timestamps in the 'datetime'
- * member of new records.
- *
- * Generating microsecond resolution timestamps by calling
- * microtime(true), formatting the result via sprintf() and then parsing
- * the resulting string via \DateTime::createFromFormat() can incur
- * a measurable runtime overhead vs simple usage of DateTime to capture
- * a second resolution timestamp in systems which generate a large number
- * of log events.
- *
- * @param bool $micro True to use microtime() to create timestamps
- */
- public function useMicrosecondTimestamps($micro)
- {
- $this->microsecondTimestamps = (bool) $micro;
- }
-
- /**
- * Adds a log record.
- *
- * @param int $level The logging level
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function addRecord($level, $message, array $context = array())
- {
- if (!$this->handlers) {
- $this->pushHandler(new StreamHandler('php://stderr', static::DEBUG));
- }
-
- $levelName = static::getLevelName($level);
-
- // check if any handler will handle this message so we can return early and save cycles
- $handlerKey = null;
- reset($this->handlers);
- while ($handler = current($this->handlers)) {
- if ($handler->isHandling(array('level' => $level))) {
- $handlerKey = key($this->handlers);
- break;
- }
-
- next($this->handlers);
- }
-
- if (null === $handlerKey) {
- return false;
- }
-
- if (!static::$timezone) {
- static::$timezone = new \DateTimeZone(date_default_timezone_get() ?: 'UTC');
- }
-
- // php7.1+ always has microseconds enabled, so we do not need this hack
- if ($this->microsecondTimestamps && PHP_VERSION_ID < 70100) {
- $ts = \DateTime::createFromFormat('U.u', sprintf('%.6F', microtime(true)), static::$timezone);
- } else {
- $ts = new \DateTime(null, static::$timezone);
- }
- $ts->setTimezone(static::$timezone);
-
- $record = array(
- 'message' => (string) $message,
- 'context' => $context,
- 'level' => $level,
- 'level_name' => $levelName,
- 'channel' => $this->name,
- 'datetime' => $ts,
- 'extra' => array(),
- );
-
- foreach ($this->processors as $processor) {
- $record = call_user_func($processor, $record);
- }
-
- while ($handler = current($this->handlers)) {
- if (true === $handler->handle($record)) {
- break;
- }
-
- next($this->handlers);
- }
-
- return true;
- }
-
- /**
- * Adds a log record at the DEBUG level.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function addDebug($message, array $context = array())
- {
- return $this->addRecord(static::DEBUG, $message, $context);
- }
-
- /**
- * Adds a log record at the INFO level.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function addInfo($message, array $context = array())
- {
- return $this->addRecord(static::INFO, $message, $context);
- }
-
- /**
- * Adds a log record at the NOTICE level.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function addNotice($message, array $context = array())
- {
- return $this->addRecord(static::NOTICE, $message, $context);
- }
-
- /**
- * Adds a log record at the WARNING level.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function addWarning($message, array $context = array())
- {
- return $this->addRecord(static::WARNING, $message, $context);
- }
-
- /**
- * Adds a log record at the ERROR level.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function addError($message, array $context = array())
- {
- return $this->addRecord(static::ERROR, $message, $context);
- }
-
- /**
- * Adds a log record at the CRITICAL level.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function addCritical($message, array $context = array())
- {
- return $this->addRecord(static::CRITICAL, $message, $context);
- }
-
- /**
- * Adds a log record at the ALERT level.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function addAlert($message, array $context = array())
- {
- return $this->addRecord(static::ALERT, $message, $context);
- }
-
- /**
- * Adds a log record at the EMERGENCY level.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function addEmergency($message, array $context = array())
- {
- return $this->addRecord(static::EMERGENCY, $message, $context);
- }
-
- /**
- * Gets all supported logging levels.
- *
- * @return array Assoc array with human-readable level names => level codes.
- */
- public static function getLevels()
- {
- return array_flip(static::$levels);
- }
-
- /**
- * Gets the name of the logging level.
- *
- * @param int $level
- * @return string
- */
- public static function getLevelName($level)
- {
- if (!isset(static::$levels[$level])) {
- throw new InvalidArgumentException('Level "'.$level.'" is not defined, use one of: '.implode(', ', array_keys(static::$levels)));
- }
-
- return static::$levels[$level];
- }
-
- /**
- * Converts PSR-3 levels to Monolog ones if necessary
- *
- * @param string|int Level number (monolog) or name (PSR-3)
- * @return int
- */
- public static function toMonologLevel($level)
- {
- if (is_string($level) && defined(__CLASS__.'::'.strtoupper($level))) {
- return constant(__CLASS__.'::'.strtoupper($level));
- }
-
- return $level;
- }
-
- /**
- * Checks whether the Logger has a handler that listens on the given level
- *
- * @param int $level
- * @return Boolean
- */
- public function isHandling($level)
- {
- $record = array(
- 'level' => $level,
- );
-
- foreach ($this->handlers as $handler) {
- if ($handler->isHandling($record)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * Adds a log record at an arbitrary level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param mixed $level The log level
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function log($level, $message, array $context = array())
- {
- $level = static::toMonologLevel($level);
-
- return $this->addRecord($level, $message, $context);
- }
-
- /**
- * Adds a log record at the DEBUG level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function debug($message, array $context = array())
- {
- return $this->addRecord(static::DEBUG, $message, $context);
- }
-
- /**
- * Adds a log record at the INFO level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function info($message, array $context = array())
- {
- return $this->addRecord(static::INFO, $message, $context);
- }
-
- /**
- * Adds a log record at the NOTICE level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function notice($message, array $context = array())
- {
- return $this->addRecord(static::NOTICE, $message, $context);
- }
-
- /**
- * Adds a log record at the WARNING level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function warn($message, array $context = array())
- {
- return $this->addRecord(static::WARNING, $message, $context);
- }
-
- /**
- * Adds a log record at the WARNING level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function warning($message, array $context = array())
- {
- return $this->addRecord(static::WARNING, $message, $context);
- }
-
- /**
- * Adds a log record at the ERROR level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function err($message, array $context = array())
- {
- return $this->addRecord(static::ERROR, $message, $context);
- }
-
- /**
- * Adds a log record at the ERROR level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function error($message, array $context = array())
- {
- return $this->addRecord(static::ERROR, $message, $context);
- }
-
- /**
- * Adds a log record at the CRITICAL level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function crit($message, array $context = array())
- {
- return $this->addRecord(static::CRITICAL, $message, $context);
- }
-
- /**
- * Adds a log record at the CRITICAL level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function critical($message, array $context = array())
- {
- return $this->addRecord(static::CRITICAL, $message, $context);
- }
-
- /**
- * Adds a log record at the ALERT level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function alert($message, array $context = array())
- {
- return $this->addRecord(static::ALERT, $message, $context);
- }
-
- /**
- * Adds a log record at the EMERGENCY level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function emerg($message, array $context = array())
- {
- return $this->addRecord(static::EMERGENCY, $message, $context);
- }
-
- /**
- * Adds a log record at the EMERGENCY level.
- *
- * This method allows for compatibility with common interfaces.
- *
- * @param string $message The log message
- * @param array $context The log context
- * @return Boolean Whether the record has been processed
- */
- public function emergency($message, array $context = array())
- {
- return $this->addRecord(static::EMERGENCY, $message, $context);
- }
-
- /**
- * Set the timezone to be used for the timestamp of log records.
- *
- * This is stored globally for all Logger instances
- *
- * @param \DateTimeZone $tz Timezone object
- */
- public static function setTimezone(\DateTimeZone $tz)
- {
- self::$timezone = $tz;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php
deleted file mode 100644
index 1899400d..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\Logger;
-
-/**
- * Injects Git branch and Git commit SHA in all records
- *
- * @author Nick Otter
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class GitProcessor
-{
- private $level;
- private static $cache;
-
- public function __construct($level = Logger::DEBUG)
- {
- $this->level = Logger::toMonologLevel($level);
- }
-
- /**
- * @param array $record
- * @return array
- */
- public function __invoke(array $record)
- {
- // return if the level is not high enough
- if ($record['level'] < $this->level) {
- return $record;
- }
-
- $record['extra']['git'] = self::getGitInfo();
-
- return $record;
- }
-
- private static function getGitInfo()
- {
- if (self::$cache) {
- return self::$cache;
- }
-
- $branches = `git branch -v --no-abbrev`;
- if (preg_match('{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) {
- return self::$cache = array(
- 'branch' => $matches[1],
- 'commit' => $matches[2],
- );
- }
-
- return self::$cache = array();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php
deleted file mode 100644
index 2691630a..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\Logger;
-
-/**
- * Injects line/file:class/function where the log message came from
- *
- * Warning: This only works if the handler processes the logs directly.
- * If you put the processor on a handler that is behind a FingersCrossedHandler
- * for example, the processor will only be called once the trigger level is reached,
- * and all the log records will have the same file/line/.. data from the call that
- * triggered the FingersCrossedHandler.
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class IntrospectionProcessor
-{
- private $level;
-
- private $skipClassesPartials;
-
- private $skipStackFramesCount;
-
- private $skipFunctions = array(
- 'call_user_func',
- 'call_user_func_array',
- );
-
- public function __construct($level = Logger::DEBUG, array $skipClassesPartials = array(), $skipStackFramesCount = 0)
- {
- $this->level = Logger::toMonologLevel($level);
- $this->skipClassesPartials = array_merge(array('Monolog\\'), $skipClassesPartials);
- $this->skipStackFramesCount = $skipStackFramesCount;
- }
-
- /**
- * @param array $record
- * @return array
- */
- public function __invoke(array $record)
- {
- // return if the level is not high enough
- if ($record['level'] < $this->level) {
- return $record;
- }
-
- $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
-
- // skip first since it's always the current method
- array_shift($trace);
- // the call_user_func call is also skipped
- array_shift($trace);
-
- $i = 0;
-
- while ($this->isTraceClassOrSkippedFunction($trace, $i)) {
- if (isset($trace[$i]['class'])) {
- foreach ($this->skipClassesPartials as $part) {
- if (strpos($trace[$i]['class'], $part) !== false) {
- $i++;
- continue 2;
- }
- }
- } elseif (in_array($trace[$i]['function'], $this->skipFunctions)) {
- $i++;
- continue;
- }
-
- break;
- }
-
- $i += $this->skipStackFramesCount;
-
- // we should have the call source now
- $record['extra'] = array_merge(
- $record['extra'],
- array(
- 'file' => isset($trace[$i - 1]['file']) ? $trace[$i - 1]['file'] : null,
- 'line' => isset($trace[$i - 1]['line']) ? $trace[$i - 1]['line'] : null,
- 'class' => isset($trace[$i]['class']) ? $trace[$i]['class'] : null,
- 'function' => isset($trace[$i]['function']) ? $trace[$i]['function'] : null,
- )
- );
-
- return $record;
- }
-
- private function isTraceClassOrSkippedFunction(array $trace, $index)
- {
- if (!isset($trace[$index])) {
- return false;
- }
-
- return isset($trace[$index]['class']) || in_array($trace[$index]['function'], $this->skipFunctions);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php
deleted file mode 100644
index 0543e929..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-/**
- * Injects memory_get_peak_usage in all records
- *
- * @see Monolog\Processor\MemoryProcessor::__construct() for options
- * @author Rob Jensen
- */
-class MemoryPeakUsageProcessor extends MemoryProcessor
-{
- /**
- * @param array $record
- * @return array
- */
- public function __invoke(array $record)
- {
- $bytes = memory_get_peak_usage($this->realUsage);
- $formatted = $this->formatBytes($bytes);
-
- $record['extra']['memory_peak_usage'] = $formatted;
-
- return $record;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php
deleted file mode 100644
index 85f9dc5e..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-/**
- * Some methods that are common for all memory processors
- *
- * @author Rob Jensen
- */
-abstract class MemoryProcessor
-{
- /**
- * @var bool If true, get the real size of memory allocated from system. Else, only the memory used by emalloc() is reported.
- */
- protected $realUsage;
-
- /**
- * @var bool If true, then format memory size to human readable string (MB, KB, B depending on size)
- */
- protected $useFormatting;
-
- /**
- * @param bool $realUsage Set this to true to get the real size of memory allocated from system.
- * @param bool $useFormatting If true, then format memory size to human readable string (MB, KB, B depending on size)
- */
- public function __construct($realUsage = true, $useFormatting = true)
- {
- $this->realUsage = (boolean) $realUsage;
- $this->useFormatting = (boolean) $useFormatting;
- }
-
- /**
- * Formats bytes into a human readable string if $this->useFormatting is true, otherwise return $bytes as is
- *
- * @param int $bytes
- * @return string|int Formatted string if $this->useFormatting is true, otherwise return $bytes as is
- */
- protected function formatBytes($bytes)
- {
- $bytes = (int) $bytes;
-
- if (!$this->useFormatting) {
- return $bytes;
- }
-
- if ($bytes > 1024 * 1024) {
- return round($bytes / 1024 / 1024, 2).' MB';
- } elseif ($bytes > 1024) {
- return round($bytes / 1024, 2).' KB';
- }
-
- return $bytes . ' B';
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php
deleted file mode 100644
index 2783d656..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-/**
- * Injects memory_get_usage in all records
- *
- * @see Monolog\Processor\MemoryProcessor::__construct() for options
- * @author Rob Jensen
- */
-class MemoryUsageProcessor extends MemoryProcessor
-{
- /**
- * @param array $record
- * @return array
- */
- public function __invoke(array $record)
- {
- $bytes = memory_get_usage($this->realUsage);
- $formatted = $this->formatBytes($bytes);
-
- $record['extra']['memory_usage'] = $formatted;
-
- return $record;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php
deleted file mode 100644
index 7c07a7e9..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jonathan A. Schweder <jonathanschweder@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\Logger;
-
-/**
- * Injects Hg branch and Hg revision number in all records
- *
- * @author Jonathan A. Schweder <jonathanschweder@gmail.com>
- */
-class MercurialProcessor
-{
- private $level;
- private static $cache;
-
- public function __construct($level = Logger::DEBUG)
- {
- $this->level = Logger::toMonologLevel($level);
- }
-
- /**
- * @param array $record
- * @return array
- */
- public function __invoke(array $record)
- {
- // return if the level is not high enough
- if ($record['level'] < $this->level) {
- return $record;
- }
-
- $record['extra']['hg'] = self::getMercurialInfo();
-
- return $record;
- }
-
- private static function getMercurialInfo()
- {
- if (self::$cache) {
- return self::$cache;
- }
-
- $result = explode(' ', trim(`hg id -nb`));
- if (count($result) >= 3) {
- return self::$cache = array(
- 'branch' => $result[1],
- 'revision' => $result[2],
- );
- }
-
- return self::$cache = array();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php
deleted file mode 100644
index 9d3f5590..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-/**
- * Adds value of getmypid into records
- *
- * @author Andreas Hörnicke
- */
-class ProcessIdProcessor
-{
- /**
- * @param array $record
- * @return array
- */
- public function __invoke(array $record)
- {
- $record['extra']['process_id'] = getmypid();
-
- return $record;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php
deleted file mode 100644
index c2686ce5..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-/**
- * Processes a record's message according to PSR-3 rules
- *
- * It replaces {foo} with the value from $context['foo']
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class PsrLogMessageProcessor
-{
- /**
- * @param array $record
- * @return array
- */
- public function __invoke(array $record)
- {
- if (false === strpos($record['message'], '{')) {
- return $record;
- }
-
- $replacements = array();
- foreach ($record['context'] as $key => $val) {
- if (is_null($val) || is_scalar($val) || (is_object($val) && method_exists($val, "__toString"))) {
- $replacements['{'.$key.'}'] = $val;
- } elseif (is_object($val)) {
- $replacements['{'.$key.'}'] = '[object '.get_class($val).']';
- } else {
- $replacements['{'.$key.'}'] = '['.gettype($val).']';
- }
- }
-
- $record['message'] = strtr($record['message'], $replacements);
-
- return $record;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php
deleted file mode 100644
index 7e2df2ac..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-/**
- * Adds a tags array into record
- *
- * @author Martijn Riemers
- */
-class TagProcessor
-{
- private $tags;
-
- public function __construct(array $tags = array())
- {
- $this->setTags($tags);
- }
-
- public function addTags(array $tags = array())
- {
- $this->tags = array_merge($this->tags, $tags);
- }
-
- public function setTags(array $tags = array())
- {
- $this->tags = $tags;
- }
-
- public function __invoke(array $record)
- {
- $record['extra']['tags'] = $this->tags;
-
- return $record;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php
deleted file mode 100644
index 812707cd..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-/**
- * Adds a unique identifier into records
- *
- * @author Simon Mönch <sm@webfactory.de>
- */
-class UidProcessor
-{
- private $uid;
-
- public function __construct($length = 7)
- {
- if (!is_int($length) || $length > 32 || $length < 1) {
- throw new \InvalidArgumentException('The uid length must be an integer between 1 and 32');
- }
-
- $this->uid = substr(hash('md5', uniqid('', true)), 0, $length);
- }
-
- public function __invoke(array $record)
- {
- $record['extra']['uid'] = $this->uid;
-
- return $record;
- }
-
- /**
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php
deleted file mode 100644
index ea1d8978..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-/**
- * Injects url/method and remote IP of the current web request in all records
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class WebProcessor
-{
- /**
- * @var array|\ArrayAccess
- */
- protected $serverData;
-
- /**
- * Default fields
- *
- * Array is structured as [key in record.extra => key in $serverData]
- *
- * @var array
- */
- protected $extraFields = array(
- 'url' => 'REQUEST_URI',
- 'ip' => 'REMOTE_ADDR',
- 'http_method' => 'REQUEST_METHOD',
- 'server' => 'SERVER_NAME',
- 'referrer' => 'HTTP_REFERER',
- );
-
- /**
- * @param array|\ArrayAccess $serverData Array or object w/ ArrayAccess that provides access to the $_SERVER data
- * @param array|null $extraFields Field names and the related key inside $serverData to be added. If not provided it defaults to: url, ip, http_method, server, referrer
- */
- public function __construct($serverData = null, array $extraFields = null)
- {
- if (null === $serverData) {
- $this->serverData = &$_SERVER;
- } elseif (is_array($serverData) || $serverData instanceof \ArrayAccess) {
- $this->serverData = $serverData;
- } else {
- throw new \UnexpectedValueException('$serverData must be an array or object implementing ArrayAccess.');
- }
-
- if (null !== $extraFields) {
- if (isset($extraFields[0])) {
- foreach (array_keys($this->extraFields) as $fieldName) {
- if (!in_array($fieldName, $extraFields)) {
- unset($this->extraFields[$fieldName]);
- }
- }
- } else {
- $this->extraFields = $extraFields;
- }
- }
- }
-
- /**
- * @param array $record
- * @return array
- */
- public function __invoke(array $record)
- {
- // skip processing if for some reason request data
- // is not present (CLI or wonky SAPIs)
- if (!isset($this->serverData['REQUEST_URI'])) {
- return $record;
- }
-
- $record['extra'] = $this->appendExtraFields($record['extra']);
-
- return $record;
- }
-
- /**
- * @param string $extraName
- * @param string $serverName
- * @return $this
- */
- public function addExtraField($extraName, $serverName)
- {
- $this->extraFields[$extraName] = $serverName;
-
- return $this;
- }
-
- /**
- * @param array $extra
- * @return array
- */
- private function appendExtraFields(array $extra)
- {
- foreach ($this->extraFields as $extraName => $serverName) {
- $extra[$extraName] = isset($this->serverData[$serverName]) ? $this->serverData[$serverName] : null;
- }
-
- if (isset($this->serverData['UNIQUE_ID'])) {
- $extra['unique_id'] = $this->serverData['UNIQUE_ID'];
- }
-
- return $extra;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/src/Monolog/Registry.php b/www/wiki/vendor/monolog/monolog/src/Monolog/Registry.php
deleted file mode 100644
index 159b751c..00000000
--- a/www/wiki/vendor/monolog/monolog/src/Monolog/Registry.php
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-use InvalidArgumentException;
-
-/**
- * Monolog log registry
- *
- * Allows to get `Logger` instances in the global scope
- * via static method calls on this class.
- *
- * <code>
- * $application = new Monolog\Logger('application');
- * $api = new Monolog\Logger('api');
- *
- * Monolog\Registry::addLogger($application);
- * Monolog\Registry::addLogger($api);
- *
- * function testLogger()
- * {
- * Monolog\Registry::api()->addError('Sent to $api Logger instance');
- * Monolog\Registry::application()->addError('Sent to $application Logger instance');
- * }
- * </code>
- *
- * @author Tomas Tatarko <tomas@tatarko.sk>
- */
-class Registry
-{
- /**
- * List of all loggers in the registry (by named indexes)
- *
- * @var Logger[]
- */
- private static $loggers = array();
-
- /**
- * Adds new logging channel to the registry
- *
- * @param Logger $logger Instance of the logging channel
- * @param string|null $name Name of the logging channel ($logger->getName() by default)
- * @param bool $overwrite Overwrite instance in the registry if the given name already exists?
- * @throws \InvalidArgumentException If $overwrite set to false and named Logger instance already exists
- */
- public static function addLogger(Logger $logger, $name = null, $overwrite = false)
- {
- $name = $name ?: $logger->getName();
-
- if (isset(self::$loggers[$name]) && !$overwrite) {
- throw new InvalidArgumentException('Logger with the given name already exists');
- }
-
- self::$loggers[$name] = $logger;
- }
-
- /**
- * Checks if such logging channel exists by name or instance
- *
- * @param string|Logger $logger Name or logger instance
- */
- public static function hasLogger($logger)
- {
- if ($logger instanceof Logger) {
- $index = array_search($logger, self::$loggers, true);
-
- return false !== $index;
- } else {
- return isset(self::$loggers[$logger]);
- }
- }
-
- /**
- * Removes instance from registry by name or instance
- *
- * @param string|Logger $logger Name or logger instance
- */
- public static function removeLogger($logger)
- {
- if ($logger instanceof Logger) {
- if (false !== ($idx = array_search($logger, self::$loggers, true))) {
- unset(self::$loggers[$idx]);
- }
- } else {
- unset(self::$loggers[$logger]);
- }
- }
-
- /**
- * Clears the registry
- */
- public static function clear()
- {
- self::$loggers = array();
- }
-
- /**
- * Gets Logger instance from the registry
- *
- * @param string $name Name of the requested Logger instance
- * @throws \InvalidArgumentException If named Logger instance is not in the registry
- * @return Logger Requested instance of Logger
- */
- public static function getInstance($name)
- {
- if (!isset(self::$loggers[$name])) {
- throw new InvalidArgumentException(sprintf('Requested "%s" logger instance is not in the registry', $name));
- }
-
- return self::$loggers[$name];
- }
-
- /**
- * Gets Logger instance from the registry via static method call
- *
- * @param string $name Name of the requested Logger instance
- * @param array $arguments Arguments passed to static method call
- * @throws \InvalidArgumentException If named Logger instance is not in the registry
- * @return Logger Requested instance of Logger
- */
- public static function __callStatic($name, $arguments)
- {
- return self::getInstance($name);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/ErrorHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/ErrorHandlerTest.php
deleted file mode 100644
index a9a3f301..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/ErrorHandlerTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-use Monolog\Handler\TestHandler;
-
-class ErrorHandlerTest extends \PHPUnit_Framework_TestCase
-{
- public function testHandleError()
- {
- $logger = new Logger('test', array($handler = new TestHandler));
- $errHandler = new ErrorHandler($logger);
-
- $errHandler->registerErrorHandler(array(E_USER_NOTICE => Logger::EMERGENCY), false);
- trigger_error('Foo', E_USER_ERROR);
- $this->assertCount(1, $handler->getRecords());
- $this->assertTrue($handler->hasErrorRecords());
- trigger_error('Foo', E_USER_NOTICE);
- $this->assertCount(2, $handler->getRecords());
- $this->assertTrue($handler->hasEmergencyRecords());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ChromePHPFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ChromePHPFormatterTest.php
deleted file mode 100644
index 71c42046..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ChromePHPFormatterTest.php
+++ /dev/null
@@ -1,158 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-
-class ChromePHPFormatterTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @covers Monolog\Formatter\ChromePHPFormatter::format
- */
- public function testDefaultFormat()
- {
- $formatter = new ChromePHPFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('ip' => '127.0.0.1'),
- 'message' => 'log',
- );
-
- $message = $formatter->format($record);
-
- $this->assertEquals(
- array(
- 'meh',
- array(
- 'message' => 'log',
- 'context' => array('from' => 'logger'),
- 'extra' => array('ip' => '127.0.0.1'),
- ),
- 'unknown',
- 'error',
- ),
- $message
- );
- }
-
- /**
- * @covers Monolog\Formatter\ChromePHPFormatter::format
- */
- public function testFormatWithFileAndLine()
- {
- $formatter = new ChromePHPFormatter();
- $record = array(
- 'level' => Logger::CRITICAL,
- 'level_name' => 'CRITICAL',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('ip' => '127.0.0.1', 'file' => 'test', 'line' => 14),
- 'message' => 'log',
- );
-
- $message = $formatter->format($record);
-
- $this->assertEquals(
- array(
- 'meh',
- array(
- 'message' => 'log',
- 'context' => array('from' => 'logger'),
- 'extra' => array('ip' => '127.0.0.1'),
- ),
- 'test : 14',
- 'error',
- ),
- $message
- );
- }
-
- /**
- * @covers Monolog\Formatter\ChromePHPFormatter::format
- */
- public function testFormatWithoutContext()
- {
- $formatter = new ChromePHPFormatter();
- $record = array(
- 'level' => Logger::DEBUG,
- 'level_name' => 'DEBUG',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- );
-
- $message = $formatter->format($record);
-
- $this->assertEquals(
- array(
- 'meh',
- 'log',
- 'unknown',
- 'log',
- ),
- $message
- );
- }
-
- /**
- * @covers Monolog\Formatter\ChromePHPFormatter::formatBatch
- */
- public function testBatchFormatThrowException()
- {
- $formatter = new ChromePHPFormatter();
- $records = array(
- array(
- 'level' => Logger::INFO,
- 'level_name' => 'INFO',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- ),
- array(
- 'level' => Logger::WARNING,
- 'level_name' => 'WARNING',
- 'channel' => 'foo',
- 'context' => array(),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log2',
- ),
- );
-
- $this->assertEquals(
- array(
- array(
- 'meh',
- 'log',
- 'unknown',
- 'info',
- ),
- array(
- 'foo',
- 'log2',
- 'unknown',
- 'warn',
- ),
- ),
- $formatter->formatBatch($records)
- );
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ElasticaFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ElasticaFormatterTest.php
deleted file mode 100644
index 90cc48dd..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ElasticaFormatterTest.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-
-class ElasticaFormatterTest extends \PHPUnit_Framework_TestCase
-{
- public function setUp()
- {
- if (!class_exists("Elastica\Document")) {
- $this->markTestSkipped("ruflin/elastica not installed");
- }
- }
-
- /**
- * @covers Monolog\Formatter\ElasticaFormatter::__construct
- * @covers Monolog\Formatter\ElasticaFormatter::format
- * @covers Monolog\Formatter\ElasticaFormatter::getDocument
- */
- public function testFormat()
- {
- // test log message
- $msg = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('foo' => 7, 'bar', 'class' => new \stdClass),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- );
-
- // expected values
- $expected = $msg;
- $expected['datetime'] = '1970-01-01T00:00:00.000000+00:00';
- $expected['context'] = array(
- 'class' => '[object] (stdClass: {})',
- 'foo' => 7,
- 0 => 'bar',
- );
-
- // format log message
- $formatter = new ElasticaFormatter('my_index', 'doc_type');
- $doc = $formatter->format($msg);
- $this->assertInstanceOf('Elastica\Document', $doc);
-
- // Document parameters
- $params = $doc->getParams();
- $this->assertEquals('my_index', $params['_index']);
- $this->assertEquals('doc_type', $params['_type']);
-
- // Document data values
- $data = $doc->getData();
- foreach (array_keys($expected) as $key) {
- $this->assertEquals($expected[$key], $data[$key]);
- }
- }
-
- /**
- * @covers Monolog\Formatter\ElasticaFormatter::getIndex
- * @covers Monolog\Formatter\ElasticaFormatter::getType
- */
- public function testGetters()
- {
- $formatter = new ElasticaFormatter('my_index', 'doc_type');
- $this->assertEquals('my_index', $formatter->getIndex());
- $this->assertEquals('doc_type', $formatter->getType());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/FlowdockFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/FlowdockFormatterTest.php
deleted file mode 100644
index 1b2fd97a..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/FlowdockFormatterTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-use Monolog\TestCase;
-
-class FlowdockFormatterTest extends TestCase
-{
- /**
- * @covers Monolog\Formatter\FlowdockFormatter::format
- */
- public function testFormat()
- {
- $formatter = new FlowdockFormatter('test_source', 'source@test.com');
- $record = $this->getRecord();
-
- $expected = array(
- 'source' => 'test_source',
- 'from_address' => 'source@test.com',
- 'subject' => 'in test_source: WARNING - test',
- 'content' => 'test',
- 'tags' => array('#logs', '#warning', '#test'),
- 'project' => 'test_source',
- );
- $formatted = $formatter->format($record);
-
- $this->assertEquals($expected, $formatted['flowdock']);
- }
-
- /**
- * @ covers Monolog\Formatter\FlowdockFormatter::formatBatch
- */
- public function testFormatBatch()
- {
- $formatter = new FlowdockFormatter('test_source', 'source@test.com');
- $records = array(
- $this->getRecord(Logger::WARNING),
- $this->getRecord(Logger::DEBUG),
- );
- $formatted = $formatter->formatBatch($records);
-
- $this->assertArrayHasKey('flowdock', $formatted[0]);
- $this->assertArrayHasKey('flowdock', $formatted[1]);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/FluentdFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/FluentdFormatterTest.php
deleted file mode 100644
index 622b2bae..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/FluentdFormatterTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-use Monolog\TestCase;
-
-class FluentdFormatterTest extends TestCase
-{
- /**
- * @covers Monolog\Formatter\FluentdFormatter::__construct
- * @covers Monolog\Formatter\FluentdFormatter::isUsingLevelsInTag
- */
- public function testConstruct()
- {
- $formatter = new FluentdFormatter();
- $this->assertEquals(false, $formatter->isUsingLevelsInTag());
- $formatter = new FluentdFormatter(false);
- $this->assertEquals(false, $formatter->isUsingLevelsInTag());
- $formatter = new FluentdFormatter(true);
- $this->assertEquals(true, $formatter->isUsingLevelsInTag());
- }
-
- /**
- * @covers Monolog\Formatter\FluentdFormatter::format
- */
- public function testFormat()
- {
- $record = $this->getRecord(Logger::WARNING);
- $record['datetime'] = new \DateTime("@0");
-
- $formatter = new FluentdFormatter();
- $this->assertEquals(
- '["test",0,{"message":"test","extra":[],"level":300,"level_name":"WARNING"}]',
- $formatter->format($record)
- );
- }
-
- /**
- * @covers Monolog\Formatter\FluentdFormatter::format
- */
- public function testFormatWithTag()
- {
- $record = $this->getRecord(Logger::ERROR);
- $record['datetime'] = new \DateTime("@0");
-
- $formatter = new FluentdFormatter(true);
- $this->assertEquals(
- '["test.error",0,{"message":"test","extra":[]}]',
- $formatter->format($record)
- );
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/GelfMessageFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/GelfMessageFormatterTest.php
deleted file mode 100644
index e6bd3098..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/GelfMessageFormatterTest.php
+++ /dev/null
@@ -1,234 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-
-class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
-{
- public function setUp()
- {
- if (!class_exists('\Gelf\Message')) {
- $this->markTestSkipped("graylog2/gelf-php or mlehner/gelf-php is not installed");
- }
- }
-
- /**
- * @covers Monolog\Formatter\GelfMessageFormatter::format
- */
- public function testDefaultFormatter()
- {
- $formatter = new GelfMessageFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- );
-
- $message = $formatter->format($record);
-
- $this->assertInstanceOf('Gelf\Message', $message);
- $this->assertEquals(0, $message->getTimestamp());
- $this->assertEquals('log', $message->getShortMessage());
- $this->assertEquals('meh', $message->getFacility());
- $this->assertEquals(null, $message->getLine());
- $this->assertEquals(null, $message->getFile());
- $this->assertEquals($this->isLegacy() ? 3 : 'error', $message->getLevel());
- $this->assertNotEmpty($message->getHost());
-
- $formatter = new GelfMessageFormatter('mysystem');
-
- $message = $formatter->format($record);
-
- $this->assertInstanceOf('Gelf\Message', $message);
- $this->assertEquals('mysystem', $message->getHost());
- }
-
- /**
- * @covers Monolog\Formatter\GelfMessageFormatter::format
- */
- public function testFormatWithFileAndLine()
- {
- $formatter = new GelfMessageFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('file' => 'test', 'line' => 14),
- 'message' => 'log',
- );
-
- $message = $formatter->format($record);
-
- $this->assertInstanceOf('Gelf\Message', $message);
- $this->assertEquals('test', $message->getFile());
- $this->assertEquals(14, $message->getLine());
- }
-
- /**
- * @covers Monolog\Formatter\GelfMessageFormatter::format
- * @expectedException InvalidArgumentException
- */
- public function testFormatInvalidFails()
- {
- $formatter = new GelfMessageFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- );
-
- $formatter->format($record);
- }
-
- /**
- * @covers Monolog\Formatter\GelfMessageFormatter::format
- */
- public function testFormatWithContext()
- {
- $formatter = new GelfMessageFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('key' => 'pair'),
- 'message' => 'log',
- );
-
- $message = $formatter->format($record);
-
- $this->assertInstanceOf('Gelf\Message', $message);
-
- $message_array = $message->toArray();
-
- $this->assertArrayHasKey('_ctxt_from', $message_array);
- $this->assertEquals('logger', $message_array['_ctxt_from']);
-
- // Test with extraPrefix
- $formatter = new GelfMessageFormatter(null, null, 'CTX');
- $message = $formatter->format($record);
-
- $this->assertInstanceOf('Gelf\Message', $message);
-
- $message_array = $message->toArray();
-
- $this->assertArrayHasKey('_CTXfrom', $message_array);
- $this->assertEquals('logger', $message_array['_CTXfrom']);
- }
-
- /**
- * @covers Monolog\Formatter\GelfMessageFormatter::format
- */
- public function testFormatWithContextContainingException()
- {
- $formatter = new GelfMessageFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger', 'exception' => array(
- 'class' => '\Exception',
- 'file' => '/some/file/in/dir.php:56',
- 'trace' => array('/some/file/1.php:23', '/some/file/2.php:3'),
- )),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- );
-
- $message = $formatter->format($record);
-
- $this->assertInstanceOf('Gelf\Message', $message);
-
- $this->assertEquals("/some/file/in/dir.php", $message->getFile());
- $this->assertEquals("56", $message->getLine());
- }
-
- /**
- * @covers Monolog\Formatter\GelfMessageFormatter::format
- */
- public function testFormatWithExtra()
- {
- $formatter = new GelfMessageFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('key' => 'pair'),
- 'message' => 'log',
- );
-
- $message = $formatter->format($record);
-
- $this->assertInstanceOf('Gelf\Message', $message);
-
- $message_array = $message->toArray();
-
- $this->assertArrayHasKey('_key', $message_array);
- $this->assertEquals('pair', $message_array['_key']);
-
- // Test with extraPrefix
- $formatter = new GelfMessageFormatter(null, 'EXT');
- $message = $formatter->format($record);
-
- $this->assertInstanceOf('Gelf\Message', $message);
-
- $message_array = $message->toArray();
-
- $this->assertArrayHasKey('_EXTkey', $message_array);
- $this->assertEquals('pair', $message_array['_EXTkey']);
- }
-
- public function testFormatWithLargeData()
- {
- $formatter = new GelfMessageFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('exception' => str_repeat(' ', 32767)),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('key' => str_repeat(' ', 32767)),
- 'message' => 'log'
- );
- $message = $formatter->format($record);
- $messageArray = $message->toArray();
-
- // 200 for padding + metadata
- $length = 200;
-
- foreach ($messageArray as $key => $value) {
- if (!in_array($key, array('level', 'timestamp'))) {
- $length += strlen($value);
- }
- }
-
- // in graylog2/gelf-php before 1.4.1 empty strings are filtered and won't be included in the message
- // though it should be sufficient to ensure that the entire message length does not exceed the maximum
- // length being allowed
- $this->assertLessThanOrEqual(32766, $length, 'The message length is no longer than the maximum allowed length');
- }
-
- private function isLegacy()
- {
- return interface_exists('\Gelf\IMessagePublisher');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/JsonFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/JsonFormatterTest.php
deleted file mode 100644
index c9445f36..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/JsonFormatterTest.php
+++ /dev/null
@@ -1,183 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-use Monolog\TestCase;
-
-class JsonFormatterTest extends TestCase
-{
- /**
- * @covers Monolog\Formatter\JsonFormatter::__construct
- * @covers Monolog\Formatter\JsonFormatter::getBatchMode
- * @covers Monolog\Formatter\JsonFormatter::isAppendingNewlines
- */
- public function testConstruct()
- {
- $formatter = new JsonFormatter();
- $this->assertEquals(JsonFormatter::BATCH_MODE_JSON, $formatter->getBatchMode());
- $this->assertEquals(true, $formatter->isAppendingNewlines());
- $formatter = new JsonFormatter(JsonFormatter::BATCH_MODE_NEWLINES, false);
- $this->assertEquals(JsonFormatter::BATCH_MODE_NEWLINES, $formatter->getBatchMode());
- $this->assertEquals(false, $formatter->isAppendingNewlines());
- }
-
- /**
- * @covers Monolog\Formatter\JsonFormatter::format
- */
- public function testFormat()
- {
- $formatter = new JsonFormatter();
- $record = $this->getRecord();
- $this->assertEquals(json_encode($record)."\n", $formatter->format($record));
-
- $formatter = new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false);
- $record = $this->getRecord();
- $this->assertEquals(json_encode($record), $formatter->format($record));
- }
-
- /**
- * @covers Monolog\Formatter\JsonFormatter::formatBatch
- * @covers Monolog\Formatter\JsonFormatter::formatBatchJson
- */
- public function testFormatBatch()
- {
- $formatter = new JsonFormatter();
- $records = array(
- $this->getRecord(Logger::WARNING),
- $this->getRecord(Logger::DEBUG),
- );
- $this->assertEquals(json_encode($records), $formatter->formatBatch($records));
- }
-
- /**
- * @covers Monolog\Formatter\JsonFormatter::formatBatch
- * @covers Monolog\Formatter\JsonFormatter::formatBatchNewlines
- */
- public function testFormatBatchNewlines()
- {
- $formatter = new JsonFormatter(JsonFormatter::BATCH_MODE_NEWLINES);
- $records = $expected = array(
- $this->getRecord(Logger::WARNING),
- $this->getRecord(Logger::DEBUG),
- );
- array_walk($expected, function (&$value, $key) {
- $value = json_encode($value);
- });
- $this->assertEquals(implode("\n", $expected), $formatter->formatBatch($records));
- }
-
- public function testDefFormatWithException()
- {
- $formatter = new JsonFormatter();
- $exception = new \RuntimeException('Foo');
- $formattedException = $this->formatException($exception);
-
- $message = $this->formatRecordWithExceptionInContext($formatter, $exception);
-
- $this->assertContextContainsFormattedException($formattedException, $message);
- }
-
- public function testDefFormatWithPreviousException()
- {
- $formatter = new JsonFormatter();
- $exception = new \RuntimeException('Foo', 0, new \LogicException('Wut?'));
- $formattedPrevException = $this->formatException($exception->getPrevious());
- $formattedException = $this->formatException($exception, $formattedPrevException);
-
- $message = $this->formatRecordWithExceptionInContext($formatter, $exception);
-
- $this->assertContextContainsFormattedException($formattedException, $message);
- }
-
- public function testDefFormatWithThrowable()
- {
- if (!class_exists('Error') || !is_subclass_of('Error', 'Throwable')) {
- $this->markTestSkipped('Requires PHP >=7');
- }
-
- $formatter = new JsonFormatter();
- $throwable = new \Error('Foo');
- $formattedThrowable = $this->formatException($throwable);
-
- $message = $this->formatRecordWithExceptionInContext($formatter, $throwable);
-
- $this->assertContextContainsFormattedException($formattedThrowable, $message);
- }
-
- /**
- * @param string $expected
- * @param string $actual
- *
- * @internal param string $exception
- */
- private function assertContextContainsFormattedException($expected, $actual)
- {
- $this->assertEquals(
- '{"level_name":"CRITICAL","channel":"core","context":{"exception":'.$expected.'},"datetime":null,"extra":[],"message":"foobar"}'."\n",
- $actual
- );
- }
-
- /**
- * @param JsonFormatter $formatter
- * @param \Exception|\Throwable $exception
- *
- * @return string
- */
- private function formatRecordWithExceptionInContext(JsonFormatter $formatter, $exception)
- {
- $message = $formatter->format(array(
- 'level_name' => 'CRITICAL',
- 'channel' => 'core',
- 'context' => array('exception' => $exception),
- 'datetime' => null,
- 'extra' => array(),
- 'message' => 'foobar',
- ));
- return $message;
- }
-
- /**
- * @param \Exception|\Throwable $exception
- *
- * @return string
- */
- private function formatExceptionFilePathWithLine($exception)
- {
- $options = 0;
- if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
- $options = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
- }
- $path = substr(json_encode($exception->getFile(), $options), 1, -1);
- return $path . ':' . $exception->getLine();
- }
-
- /**
- * @param \Exception|\Throwable $exception
- *
- * @param null|string $previous
- *
- * @return string
- */
- private function formatException($exception, $previous = null)
- {
- $formattedException =
- '{"class":"' . get_class($exception) .
- '","message":"' . $exception->getMessage() .
- '","code":' . $exception->getCode() .
- ',"file":"' . $this->formatExceptionFilePathWithLine($exception) .
- ($previous ? '","previous":' . $previous : '"') .
- '}';
- return $formattedException;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LineFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LineFormatterTest.php
deleted file mode 100644
index 310d93ca..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LineFormatterTest.php
+++ /dev/null
@@ -1,222 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * @covers Monolog\Formatter\LineFormatter
- */
-class LineFormatterTest extends \PHPUnit_Framework_TestCase
-{
- public function testDefFormatWithString()
- {
- $formatter = new LineFormatter(null, 'Y-m-d');
- $message = $formatter->format(array(
- 'level_name' => 'WARNING',
- 'channel' => 'log',
- 'context' => array(),
- 'message' => 'foo',
- 'datetime' => new \DateTime,
- 'extra' => array(),
- ));
- $this->assertEquals('['.date('Y-m-d').'] log.WARNING: foo [] []'."\n", $message);
- }
-
- public function testDefFormatWithArrayContext()
- {
- $formatter = new LineFormatter(null, 'Y-m-d');
- $message = $formatter->format(array(
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'message' => 'foo',
- 'datetime' => new \DateTime,
- 'extra' => array(),
- 'context' => array(
- 'foo' => 'bar',
- 'baz' => 'qux',
- 'bool' => false,
- 'null' => null,
- ),
- ));
- $this->assertEquals('['.date('Y-m-d').'] meh.ERROR: foo {"foo":"bar","baz":"qux","bool":false,"null":null} []'."\n", $message);
- }
-
- public function testDefFormatExtras()
- {
- $formatter = new LineFormatter(null, 'Y-m-d');
- $message = $formatter->format(array(
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime,
- 'extra' => array('ip' => '127.0.0.1'),
- 'message' => 'log',
- ));
- $this->assertEquals('['.date('Y-m-d').'] meh.ERROR: log [] {"ip":"127.0.0.1"}'."\n", $message);
- }
-
- public function testFormatExtras()
- {
- $formatter = new LineFormatter("[%datetime%] %channel%.%level_name%: %message% %context% %extra.file% %extra%\n", 'Y-m-d');
- $message = $formatter->format(array(
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime,
- 'extra' => array('ip' => '127.0.0.1', 'file' => 'test'),
- 'message' => 'log',
- ));
- $this->assertEquals('['.date('Y-m-d').'] meh.ERROR: log [] test {"ip":"127.0.0.1"}'."\n", $message);
- }
-
- public function testContextAndExtraOptionallyNotShownIfEmpty()
- {
- $formatter = new LineFormatter(null, 'Y-m-d', false, true);
- $message = $formatter->format(array(
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime,
- 'extra' => array(),
- 'message' => 'log',
- ));
- $this->assertEquals('['.date('Y-m-d').'] meh.ERROR: log '."\n", $message);
- }
-
- public function testContextAndExtraReplacement()
- {
- $formatter = new LineFormatter('%context.foo% => %extra.foo%');
- $message = $formatter->format(array(
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('foo' => 'bar'),
- 'datetime' => new \DateTime,
- 'extra' => array('foo' => 'xbar'),
- 'message' => 'log',
- ));
- $this->assertEquals('bar => xbar', $message);
- }
-
- public function testDefFormatWithObject()
- {
- $formatter = new LineFormatter(null, 'Y-m-d');
- $message = $formatter->format(array(
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime,
- 'extra' => array('foo' => new TestFoo, 'bar' => new TestBar, 'baz' => array(), 'res' => fopen('php://memory', 'rb')),
- 'message' => 'foobar',
- ));
-
- $this->assertEquals('['.date('Y-m-d').'] meh.ERROR: foobar [] {"foo":"[object] (Monolog\\\\Formatter\\\\TestFoo: {\\"foo\\":\\"foo\\"})","bar":"[object] (Monolog\\\\Formatter\\\\TestBar: bar)","baz":[],"res":"[resource] (stream)"}'."\n", $message);
- }
-
- public function testDefFormatWithException()
- {
- $formatter = new LineFormatter(null, 'Y-m-d');
- $message = $formatter->format(array(
- 'level_name' => 'CRITICAL',
- 'channel' => 'core',
- 'context' => array('exception' => new \RuntimeException('Foo')),
- 'datetime' => new \DateTime,
- 'extra' => array(),
- 'message' => 'foobar',
- ));
-
- $path = str_replace('\\/', '/', json_encode(__FILE__));
-
- $this->assertEquals('['.date('Y-m-d').'] core.CRITICAL: foobar {"exception":"[object] (RuntimeException(code: 0): Foo at '.substr($path, 1, -1).':'.(__LINE__ - 8).')"} []'."\n", $message);
- }
-
- public function testDefFormatWithPreviousException()
- {
- $formatter = new LineFormatter(null, 'Y-m-d');
- $previous = new \LogicException('Wut?');
- $message = $formatter->format(array(
- 'level_name' => 'CRITICAL',
- 'channel' => 'core',
- 'context' => array('exception' => new \RuntimeException('Foo', 0, $previous)),
- 'datetime' => new \DateTime,
- 'extra' => array(),
- 'message' => 'foobar',
- ));
-
- $path = str_replace('\\/', '/', json_encode(__FILE__));
-
- $this->assertEquals('['.date('Y-m-d').'] core.CRITICAL: foobar {"exception":"[object] (RuntimeException(code: 0): Foo at '.substr($path, 1, -1).':'.(__LINE__ - 8).', LogicException(code: 0): Wut? at '.substr($path, 1, -1).':'.(__LINE__ - 12).')"} []'."\n", $message);
- }
-
- public function testBatchFormat()
- {
- $formatter = new LineFormatter(null, 'Y-m-d');
- $message = $formatter->formatBatch(array(
- array(
- 'level_name' => 'CRITICAL',
- 'channel' => 'test',
- 'message' => 'bar',
- 'context' => array(),
- 'datetime' => new \DateTime,
- 'extra' => array(),
- ),
- array(
- 'level_name' => 'WARNING',
- 'channel' => 'log',
- 'message' => 'foo',
- 'context' => array(),
- 'datetime' => new \DateTime,
- 'extra' => array(),
- ),
- ));
- $this->assertEquals('['.date('Y-m-d').'] test.CRITICAL: bar [] []'."\n".'['.date('Y-m-d').'] log.WARNING: foo [] []'."\n", $message);
- }
-
- public function testFormatShouldStripInlineLineBreaks()
- {
- $formatter = new LineFormatter(null, 'Y-m-d');
- $message = $formatter->format(
- array(
- 'message' => "foo\nbar",
- 'context' => array(),
- 'extra' => array(),
- )
- );
-
- $this->assertRegExp('/foo bar/', $message);
- }
-
- public function testFormatShouldNotStripInlineLineBreaksWhenFlagIsSet()
- {
- $formatter = new LineFormatter(null, 'Y-m-d', true);
- $message = $formatter->format(
- array(
- 'message' => "foo\nbar",
- 'context' => array(),
- 'extra' => array(),
- )
- );
-
- $this->assertRegExp('/foo\nbar/', $message);
- }
-}
-
-class TestFoo
-{
- public $foo = 'foo';
-}
-
-class TestBar
-{
- public function __toString()
- {
- return 'bar';
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LogglyFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LogglyFormatterTest.php
deleted file mode 100644
index 6d59b3f3..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LogglyFormatterTest.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\TestCase;
-
-class LogglyFormatterTest extends TestCase
-{
- /**
- * @covers Monolog\Formatter\LogglyFormatter::__construct
- */
- public function testConstruct()
- {
- $formatter = new LogglyFormatter();
- $this->assertEquals(LogglyFormatter::BATCH_MODE_NEWLINES, $formatter->getBatchMode());
- $formatter = new LogglyFormatter(LogglyFormatter::BATCH_MODE_JSON);
- $this->assertEquals(LogglyFormatter::BATCH_MODE_JSON, $formatter->getBatchMode());
- }
-
- /**
- * @covers Monolog\Formatter\LogglyFormatter::format
- */
- public function testFormat()
- {
- $formatter = new LogglyFormatter();
- $record = $this->getRecord();
- $formatted_decoded = json_decode($formatter->format($record), true);
- $this->assertArrayHasKey("timestamp", $formatted_decoded);
- $this->assertEquals(new \DateTime($formatted_decoded["timestamp"]), $record["datetime"]);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LogstashFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LogstashFormatterTest.php
deleted file mode 100644
index 9f6b1cc4..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/LogstashFormatterTest.php
+++ /dev/null
@@ -1,333 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-
-class LogstashFormatterTest extends \PHPUnit_Framework_TestCase
-{
- public function tearDown()
- {
- \PHPUnit_Framework_Error_Warning::$enabled = true;
-
- return parent::tearDown();
- }
-
- /**
- * @covers Monolog\Formatter\LogstashFormatter::format
- */
- public function testDefaultFormatter()
- {
- $formatter = new LogstashFormatter('test', 'hostname');
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertEquals("1970-01-01T00:00:00.000000+00:00", $message['@timestamp']);
- $this->assertEquals('log', $message['@message']);
- $this->assertEquals('meh', $message['@fields']['channel']);
- $this->assertContains('meh', $message['@tags']);
- $this->assertEquals(Logger::ERROR, $message['@fields']['level']);
- $this->assertEquals('test', $message['@type']);
- $this->assertEquals('hostname', $message['@source']);
-
- $formatter = new LogstashFormatter('mysystem');
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertEquals('mysystem', $message['@type']);
- }
-
- /**
- * @covers Monolog\Formatter\LogstashFormatter::format
- */
- public function testFormatWithFileAndLine()
- {
- $formatter = new LogstashFormatter('test');
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('file' => 'test', 'line' => 14),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertEquals('test', $message['@fields']['file']);
- $this->assertEquals(14, $message['@fields']['line']);
- }
-
- /**
- * @covers Monolog\Formatter\LogstashFormatter::format
- */
- public function testFormatWithContext()
- {
- $formatter = new LogstashFormatter('test');
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('key' => 'pair'),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $message_array = $message['@fields'];
-
- $this->assertArrayHasKey('ctxt_from', $message_array);
- $this->assertEquals('logger', $message_array['ctxt_from']);
-
- // Test with extraPrefix
- $formatter = new LogstashFormatter('test', null, null, 'CTX');
- $message = json_decode($formatter->format($record), true);
-
- $message_array = $message['@fields'];
-
- $this->assertArrayHasKey('CTXfrom', $message_array);
- $this->assertEquals('logger', $message_array['CTXfrom']);
- }
-
- /**
- * @covers Monolog\Formatter\LogstashFormatter::format
- */
- public function testFormatWithExtra()
- {
- $formatter = new LogstashFormatter('test');
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('key' => 'pair'),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $message_array = $message['@fields'];
-
- $this->assertArrayHasKey('key', $message_array);
- $this->assertEquals('pair', $message_array['key']);
-
- // Test with extraPrefix
- $formatter = new LogstashFormatter('test', null, 'EXT');
- $message = json_decode($formatter->format($record), true);
-
- $message_array = $message['@fields'];
-
- $this->assertArrayHasKey('EXTkey', $message_array);
- $this->assertEquals('pair', $message_array['EXTkey']);
- }
-
- public function testFormatWithApplicationName()
- {
- $formatter = new LogstashFormatter('app', 'test');
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('key' => 'pair'),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertArrayHasKey('@type', $message);
- $this->assertEquals('app', $message['@type']);
- }
-
- /**
- * @covers Monolog\Formatter\LogstashFormatter::format
- */
- public function testDefaultFormatterV1()
- {
- $formatter = new LogstashFormatter('test', 'hostname', null, 'ctxt_', LogstashFormatter::V1);
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertEquals("1970-01-01T00:00:00.000000+00:00", $message['@timestamp']);
- $this->assertEquals("1", $message['@version']);
- $this->assertEquals('log', $message['message']);
- $this->assertEquals('meh', $message['channel']);
- $this->assertEquals('ERROR', $message['level']);
- $this->assertEquals('test', $message['type']);
- $this->assertEquals('hostname', $message['host']);
-
- $formatter = new LogstashFormatter('mysystem', null, null, 'ctxt_', LogstashFormatter::V1);
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertEquals('mysystem', $message['type']);
- }
-
- /**
- * @covers Monolog\Formatter\LogstashFormatter::format
- */
- public function testFormatWithFileAndLineV1()
- {
- $formatter = new LogstashFormatter('test', null, null, 'ctxt_', LogstashFormatter::V1);
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('file' => 'test', 'line' => 14),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertEquals('test', $message['file']);
- $this->assertEquals(14, $message['line']);
- }
-
- /**
- * @covers Monolog\Formatter\LogstashFormatter::format
- */
- public function testFormatWithContextV1()
- {
- $formatter = new LogstashFormatter('test', null, null, 'ctxt_', LogstashFormatter::V1);
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('key' => 'pair'),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertArrayHasKey('ctxt_from', $message);
- $this->assertEquals('logger', $message['ctxt_from']);
-
- // Test with extraPrefix
- $formatter = new LogstashFormatter('test', null, null, 'CTX', LogstashFormatter::V1);
- $message = json_decode($formatter->format($record), true);
-
- $this->assertArrayHasKey('CTXfrom', $message);
- $this->assertEquals('logger', $message['CTXfrom']);
- }
-
- /**
- * @covers Monolog\Formatter\LogstashFormatter::format
- */
- public function testFormatWithExtraV1()
- {
- $formatter = new LogstashFormatter('test', null, null, 'ctxt_', LogstashFormatter::V1);
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('key' => 'pair'),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertArrayHasKey('key', $message);
- $this->assertEquals('pair', $message['key']);
-
- // Test with extraPrefix
- $formatter = new LogstashFormatter('test', null, 'EXT', 'ctxt_', LogstashFormatter::V1);
- $message = json_decode($formatter->format($record), true);
-
- $this->assertArrayHasKey('EXTkey', $message);
- $this->assertEquals('pair', $message['EXTkey']);
- }
-
- public function testFormatWithApplicationNameV1()
- {
- $formatter = new LogstashFormatter('app', 'test', null, 'ctxt_', LogstashFormatter::V1);
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('key' => 'pair'),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertArrayHasKey('type', $message);
- $this->assertEquals('app', $message['type']);
- }
-
- public function testFormatWithLatin9Data()
- {
- if (version_compare(PHP_VERSION, '5.5.0', '<')) {
- // Ignore the warning that will be emitted by PHP <5.5.0
- \PHPUnit_Framework_Error_Warning::$enabled = false;
- }
- $formatter = new LogstashFormatter('test', 'hostname');
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => '¯\_(ツ)_/¯',
- 'context' => array(),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(
- 'user_agent' => "\xD6WN; FBCR/OrangeEspa\xF1a; Vers\xE3o/4.0; F\xE4rist",
- ),
- 'message' => 'log',
- );
-
- $message = json_decode($formatter->format($record), true);
-
- $this->assertEquals("1970-01-01T00:00:00.000000+00:00", $message['@timestamp']);
- $this->assertEquals('log', $message['@message']);
- $this->assertEquals('¯\_(ツ)_/¯', $message['@fields']['channel']);
- $this->assertContains('¯\_(ツ)_/¯', $message['@tags']);
- $this->assertEquals(Logger::ERROR, $message['@fields']['level']);
- $this->assertEquals('test', $message['@type']);
- $this->assertEquals('hostname', $message['@source']);
- if (version_compare(PHP_VERSION, '5.5.0', '>=')) {
- $this->assertEquals('ÖWN; FBCR/OrangeEspaña; Versão/4.0; Färist', $message['@fields']['user_agent']);
- } else {
- // PHP <5.5 does not return false for an element encoding failure,
- // instead it emits a warning (possibly) and nulls the value.
- $this->assertEquals(null, $message['@fields']['user_agent']);
- }
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/MongoDBFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/MongoDBFormatterTest.php
deleted file mode 100644
index 52e699e0..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/MongoDBFormatterTest.php
+++ /dev/null
@@ -1,262 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-
-/**
- * @author Florian Plattner <me@florianplattner.de>
- */
-class MongoDBFormatterTest extends \PHPUnit_Framework_TestCase
-{
- public function setUp()
- {
- if (!class_exists('MongoDate')) {
- $this->markTestSkipped('mongo extension not installed');
- }
- }
-
- public function constructArgumentProvider()
- {
- return array(
- array(1, true, 1, true),
- array(0, false, 0, false),
- );
- }
-
- /**
- * @param $traceDepth
- * @param $traceAsString
- * @param $expectedTraceDepth
- * @param $expectedTraceAsString
- *
- * @dataProvider constructArgumentProvider
- */
- public function testConstruct($traceDepth, $traceAsString, $expectedTraceDepth, $expectedTraceAsString)
- {
- $formatter = new MongoDBFormatter($traceDepth, $traceAsString);
-
- $reflTrace = new \ReflectionProperty($formatter, 'exceptionTraceAsString');
- $reflTrace->setAccessible(true);
- $this->assertEquals($expectedTraceAsString, $reflTrace->getValue($formatter));
-
- $reflDepth = new\ReflectionProperty($formatter, 'maxNestingLevel');
- $reflDepth->setAccessible(true);
- $this->assertEquals($expectedTraceDepth, $reflDepth->getValue($formatter));
- }
-
- public function testSimpleFormat()
- {
- $record = array(
- 'message' => 'some log message',
- 'context' => array(),
- 'level' => Logger::WARNING,
- 'level_name' => Logger::getLevelName(Logger::WARNING),
- 'channel' => 'test',
- 'datetime' => new \DateTime('2014-02-01 00:00:00'),
- 'extra' => array(),
- );
-
- $formatter = new MongoDBFormatter();
- $formattedRecord = $formatter->format($record);
-
- $this->assertCount(7, $formattedRecord);
- $this->assertEquals('some log message', $formattedRecord['message']);
- $this->assertEquals(array(), $formattedRecord['context']);
- $this->assertEquals(Logger::WARNING, $formattedRecord['level']);
- $this->assertEquals(Logger::getLevelName(Logger::WARNING), $formattedRecord['level_name']);
- $this->assertEquals('test', $formattedRecord['channel']);
- $this->assertInstanceOf('\MongoDate', $formattedRecord['datetime']);
- $this->assertEquals('0.00000000 1391212800', $formattedRecord['datetime']->__toString());
- $this->assertEquals(array(), $formattedRecord['extra']);
- }
-
- public function testRecursiveFormat()
- {
- $someObject = new \stdClass();
- $someObject->foo = 'something';
- $someObject->bar = 'stuff';
-
- $record = array(
- 'message' => 'some log message',
- 'context' => array(
- 'stuff' => new \DateTime('2014-02-01 02:31:33'),
- 'some_object' => $someObject,
- 'context_string' => 'some string',
- 'context_int' => 123456,
- 'except' => new \Exception('exception message', 987),
- ),
- 'level' => Logger::WARNING,
- 'level_name' => Logger::getLevelName(Logger::WARNING),
- 'channel' => 'test',
- 'datetime' => new \DateTime('2014-02-01 00:00:00'),
- 'extra' => array(),
- );
-
- $formatter = new MongoDBFormatter();
- $formattedRecord = $formatter->format($record);
-
- $this->assertCount(5, $formattedRecord['context']);
- $this->assertInstanceOf('\MongoDate', $formattedRecord['context']['stuff']);
- $this->assertEquals('0.00000000 1391221893', $formattedRecord['context']['stuff']->__toString());
- $this->assertEquals(
- array(
- 'foo' => 'something',
- 'bar' => 'stuff',
- 'class' => 'stdClass',
- ),
- $formattedRecord['context']['some_object']
- );
- $this->assertEquals('some string', $formattedRecord['context']['context_string']);
- $this->assertEquals(123456, $formattedRecord['context']['context_int']);
-
- $this->assertCount(5, $formattedRecord['context']['except']);
- $this->assertEquals('exception message', $formattedRecord['context']['except']['message']);
- $this->assertEquals(987, $formattedRecord['context']['except']['code']);
- $this->assertInternalType('string', $formattedRecord['context']['except']['file']);
- $this->assertInternalType('integer', $formattedRecord['context']['except']['code']);
- $this->assertInternalType('string', $formattedRecord['context']['except']['trace']);
- $this->assertEquals('Exception', $formattedRecord['context']['except']['class']);
- }
-
- public function testFormatDepthArray()
- {
- $record = array(
- 'message' => 'some log message',
- 'context' => array(
- 'nest2' => array(
- 'property' => 'anything',
- 'nest3' => array(
- 'nest4' => 'value',
- 'property' => 'nothing',
- ),
- ),
- ),
- 'level' => Logger::WARNING,
- 'level_name' => Logger::getLevelName(Logger::WARNING),
- 'channel' => 'test',
- 'datetime' => new \DateTime('2014-02-01 00:00:00'),
- 'extra' => array(),
- );
-
- $formatter = new MongoDBFormatter(2);
- $formattedResult = $formatter->format($record);
-
- $this->assertEquals(
- array(
- 'nest2' => array(
- 'property' => 'anything',
- 'nest3' => '[...]',
- ),
- ),
- $formattedResult['context']
- );
- }
-
- public function testFormatDepthArrayInfiniteNesting()
- {
- $record = array(
- 'message' => 'some log message',
- 'context' => array(
- 'nest2' => array(
- 'property' => 'something',
- 'nest3' => array(
- 'property' => 'anything',
- 'nest4' => array(
- 'property' => 'nothing',
- ),
- ),
- ),
- ),
- 'level' => Logger::WARNING,
- 'level_name' => Logger::getLevelName(Logger::WARNING),
- 'channel' => 'test',
- 'datetime' => new \DateTime('2014-02-01 00:00:00'),
- 'extra' => array(),
- );
-
- $formatter = new MongoDBFormatter(0);
- $formattedResult = $formatter->format($record);
-
- $this->assertEquals(
- array(
- 'nest2' => array(
- 'property' => 'something',
- 'nest3' => array(
- 'property' => 'anything',
- 'nest4' => array(
- 'property' => 'nothing',
- ),
- ),
- ),
- ),
- $formattedResult['context']
- );
- }
-
- public function testFormatDepthObjects()
- {
- $someObject = new \stdClass();
- $someObject->property = 'anything';
- $someObject->nest3 = new \stdClass();
- $someObject->nest3->property = 'nothing';
- $someObject->nest3->nest4 = 'invisible';
-
- $record = array(
- 'message' => 'some log message',
- 'context' => array(
- 'nest2' => $someObject,
- ),
- 'level' => Logger::WARNING,
- 'level_name' => Logger::getLevelName(Logger::WARNING),
- 'channel' => 'test',
- 'datetime' => new \DateTime('2014-02-01 00:00:00'),
- 'extra' => array(),
- );
-
- $formatter = new MongoDBFormatter(2, true);
- $formattedResult = $formatter->format($record);
-
- $this->assertEquals(
- array(
- 'nest2' => array(
- 'property' => 'anything',
- 'nest3' => '[...]',
- 'class' => 'stdClass',
- ),
- ),
- $formattedResult['context']
- );
- }
-
- public function testFormatDepthException()
- {
- $record = array(
- 'message' => 'some log message',
- 'context' => array(
- 'nest2' => new \Exception('exception message', 987),
- ),
- 'level' => Logger::WARNING,
- 'level_name' => Logger::getLevelName(Logger::WARNING),
- 'channel' => 'test',
- 'datetime' => new \DateTime('2014-02-01 00:00:00'),
- 'extra' => array(),
- );
-
- $formatter = new MongoDBFormatter(2, false);
- $formattedRecord = $formatter->format($record);
-
- $this->assertEquals('exception message', $formattedRecord['context']['nest2']['message']);
- $this->assertEquals(987, $formattedRecord['context']['nest2']['code']);
- $this->assertEquals('[...]', $formattedRecord['context']['nest2']['trace']);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/NormalizerFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/NormalizerFormatterTest.php
deleted file mode 100644
index 57bcdf98..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/NormalizerFormatterTest.php
+++ /dev/null
@@ -1,423 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-/**
- * @covers Monolog\Formatter\NormalizerFormatter
- */
-class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
-{
- public function tearDown()
- {
- \PHPUnit_Framework_Error_Warning::$enabled = true;
-
- return parent::tearDown();
- }
-
- public function testFormat()
- {
- $formatter = new NormalizerFormatter('Y-m-d');
- $formatted = $formatter->format(array(
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'message' => 'foo',
- 'datetime' => new \DateTime,
- 'extra' => array('foo' => new TestFooNorm, 'bar' => new TestBarNorm, 'baz' => array(), 'res' => fopen('php://memory', 'rb')),
- 'context' => array(
- 'foo' => 'bar',
- 'baz' => 'qux',
- 'inf' => INF,
- '-inf' => -INF,
- 'nan' => acos(4),
- ),
- ));
-
- $this->assertEquals(array(
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'message' => 'foo',
- 'datetime' => date('Y-m-d'),
- 'extra' => array(
- 'foo' => '[object] (Monolog\\Formatter\\TestFooNorm: {"foo":"foo"})',
- 'bar' => '[object] (Monolog\\Formatter\\TestBarNorm: bar)',
- 'baz' => array(),
- 'res' => '[resource] (stream)',
- ),
- 'context' => array(
- 'foo' => 'bar',
- 'baz' => 'qux',
- 'inf' => 'INF',
- '-inf' => '-INF',
- 'nan' => 'NaN',
- ),
- ), $formatted);
- }
-
- public function testFormatExceptions()
- {
- $formatter = new NormalizerFormatter('Y-m-d');
- $e = new \LogicException('bar');
- $e2 = new \RuntimeException('foo', 0, $e);
- $formatted = $formatter->format(array(
- 'exception' => $e2,
- ));
-
- $this->assertGreaterThan(5, count($formatted['exception']['trace']));
- $this->assertTrue(isset($formatted['exception']['previous']));
- unset($formatted['exception']['trace'], $formatted['exception']['previous']);
-
- $this->assertEquals(array(
- 'exception' => array(
- 'class' => get_class($e2),
- 'message' => $e2->getMessage(),
- 'code' => $e2->getCode(),
- 'file' => $e2->getFile().':'.$e2->getLine(),
- ),
- ), $formatted);
- }
-
- public function testFormatSoapFaultException()
- {
- if (!class_exists('SoapFault')) {
- $this->markTestSkipped('Requires the soap extension');
- }
-
- $formatter = new NormalizerFormatter('Y-m-d');
- $e = new \SoapFault('foo', 'bar', 'hello', 'world');
- $formatted = $formatter->format(array(
- 'exception' => $e,
- ));
-
- unset($formatted['exception']['trace']);
-
- $this->assertEquals(array(
- 'exception' => array(
- 'class' => 'SoapFault',
- 'message' => 'bar',
- 'code' => 0,
- 'file' => $e->getFile().':'.$e->getLine(),
- 'faultcode' => 'foo',
- 'faultactor' => 'hello',
- 'detail' => 'world',
- ),
- ), $formatted);
- }
-
- public function testFormatToStringExceptionHandle()
- {
- $formatter = new NormalizerFormatter('Y-m-d');
- $this->setExpectedException('RuntimeException', 'Could not convert to string');
- $formatter->format(array(
- 'myObject' => new TestToStringError(),
- ));
- }
-
- public function testBatchFormat()
- {
- $formatter = new NormalizerFormatter('Y-m-d');
- $formatted = $formatter->formatBatch(array(
- array(
- 'level_name' => 'CRITICAL',
- 'channel' => 'test',
- 'message' => 'bar',
- 'context' => array(),
- 'datetime' => new \DateTime,
- 'extra' => array(),
- ),
- array(
- 'level_name' => 'WARNING',
- 'channel' => 'log',
- 'message' => 'foo',
- 'context' => array(),
- 'datetime' => new \DateTime,
- 'extra' => array(),
- ),
- ));
- $this->assertEquals(array(
- array(
- 'level_name' => 'CRITICAL',
- 'channel' => 'test',
- 'message' => 'bar',
- 'context' => array(),
- 'datetime' => date('Y-m-d'),
- 'extra' => array(),
- ),
- array(
- 'level_name' => 'WARNING',
- 'channel' => 'log',
- 'message' => 'foo',
- 'context' => array(),
- 'datetime' => date('Y-m-d'),
- 'extra' => array(),
- ),
- ), $formatted);
- }
-
- /**
- * Test issue #137
- */
- public function testIgnoresRecursiveObjectReferences()
- {
- // set up the recursion
- $foo = new \stdClass();
- $bar = new \stdClass();
-
- $foo->bar = $bar;
- $bar->foo = $foo;
-
- // set an error handler to assert that the error is not raised anymore
- $that = $this;
- set_error_handler(function ($level, $message, $file, $line, $context) use ($that) {
- if (error_reporting() & $level) {
- restore_error_handler();
- $that->fail("$message should not be raised");
- }
- });
-
- $formatter = new NormalizerFormatter();
- $reflMethod = new \ReflectionMethod($formatter, 'toJson');
- $reflMethod->setAccessible(true);
- $res = $reflMethod->invoke($formatter, array($foo, $bar), true);
-
- restore_error_handler();
-
- $this->assertEquals(@json_encode(array($foo, $bar)), $res);
- }
-
- public function testIgnoresInvalidTypes()
- {
- // set up the recursion
- $resource = fopen(__FILE__, 'r');
-
- // set an error handler to assert that the error is not raised anymore
- $that = $this;
- set_error_handler(function ($level, $message, $file, $line, $context) use ($that) {
- if (error_reporting() & $level) {
- restore_error_handler();
- $that->fail("$message should not be raised");
- }
- });
-
- $formatter = new NormalizerFormatter();
- $reflMethod = new \ReflectionMethod($formatter, 'toJson');
- $reflMethod->setAccessible(true);
- $res = $reflMethod->invoke($formatter, array($resource), true);
-
- restore_error_handler();
-
- $this->assertEquals(@json_encode(array($resource)), $res);
- }
-
- public function testNormalizeHandleLargeArrays()
- {
- $formatter = new NormalizerFormatter();
- $largeArray = range(1, 2000);
-
- $res = $formatter->format(array(
- 'level_name' => 'CRITICAL',
- 'channel' => 'test',
- 'message' => 'bar',
- 'context' => array($largeArray),
- 'datetime' => new \DateTime,
- 'extra' => array(),
- ));
-
- $this->assertCount(1000, $res['context'][0]);
- $this->assertEquals('Over 1000 items (2000 total), aborting normalization', $res['context'][0]['...']);
- }
-
- /**
- * @expectedException RuntimeException
- */
- public function testThrowsOnInvalidEncoding()
- {
- if (version_compare(PHP_VERSION, '5.5.0', '<')) {
- // Ignore the warning that will be emitted by PHP <5.5.0
- \PHPUnit_Framework_Error_Warning::$enabled = false;
- }
- $formatter = new NormalizerFormatter();
- $reflMethod = new \ReflectionMethod($formatter, 'toJson');
- $reflMethod->setAccessible(true);
-
- // send an invalid unicode sequence as a object that can't be cleaned
- $record = new \stdClass;
- $record->message = "\xB1\x31";
- $res = $reflMethod->invoke($formatter, $record);
- if (PHP_VERSION_ID < 50500 && $res === '{"message":null}') {
- throw new \RuntimeException('PHP 5.3/5.4 throw a warning and null the value instead of returning false entirely');
- }
- }
-
- public function testConvertsInvalidEncodingAsLatin9()
- {
- if (version_compare(PHP_VERSION, '5.5.0', '<')) {
- // Ignore the warning that will be emitted by PHP <5.5.0
- \PHPUnit_Framework_Error_Warning::$enabled = false;
- }
- $formatter = new NormalizerFormatter();
- $reflMethod = new \ReflectionMethod($formatter, 'toJson');
- $reflMethod->setAccessible(true);
-
- $res = $reflMethod->invoke($formatter, array('message' => "\xA4\xA6\xA8\xB4\xB8\xBC\xBD\xBE"));
-
- if (version_compare(PHP_VERSION, '5.5.0', '>=')) {
- $this->assertSame('{"message":"€ŠšŽžŒœŸ"}', $res);
- } else {
- // PHP <5.5 does not return false for an element encoding failure,
- // instead it emits a warning (possibly) and nulls the value.
- $this->assertSame('{"message":null}', $res);
- }
- }
-
- /**
- * @param mixed $in Input
- * @param mixed $expect Expected output
- * @covers Monolog\Formatter\NormalizerFormatter::detectAndCleanUtf8
- * @dataProvider providesDetectAndCleanUtf8
- */
- public function testDetectAndCleanUtf8($in, $expect)
- {
- $formatter = new NormalizerFormatter();
- $formatter->detectAndCleanUtf8($in);
- $this->assertSame($expect, $in);
- }
-
- public function providesDetectAndCleanUtf8()
- {
- $obj = new \stdClass;
-
- return array(
- 'null' => array(null, null),
- 'int' => array(123, 123),
- 'float' => array(123.45, 123.45),
- 'bool false' => array(false, false),
- 'bool true' => array(true, true),
- 'ascii string' => array('abcdef', 'abcdef'),
- 'latin9 string' => array("\xB1\x31\xA4\xA6\xA8\xB4\xB8\xBC\xBD\xBE\xFF", '±1€ŠšŽžŒœŸÿ'),
- 'unicode string' => array('¤¦¨´¸¼½¾€ŠšŽžŒœŸ', '¤¦¨´¸¼½¾€ŠšŽžŒœŸ'),
- 'empty array' => array(array(), array()),
- 'array' => array(array('abcdef'), array('abcdef')),
- 'object' => array($obj, $obj),
- );
- }
-
- /**
- * @param int $code
- * @param string $msg
- * @dataProvider providesHandleJsonErrorFailure
- */
- public function testHandleJsonErrorFailure($code, $msg)
- {
- $formatter = new NormalizerFormatter();
- $reflMethod = new \ReflectionMethod($formatter, 'handleJsonError');
- $reflMethod->setAccessible(true);
-
- $this->setExpectedException('RuntimeException', $msg);
- $reflMethod->invoke($formatter, $code, 'faked');
- }
-
- public function providesHandleJsonErrorFailure()
- {
- return array(
- 'depth' => array(JSON_ERROR_DEPTH, 'Maximum stack depth exceeded'),
- 'state' => array(JSON_ERROR_STATE_MISMATCH, 'Underflow or the modes mismatch'),
- 'ctrl' => array(JSON_ERROR_CTRL_CHAR, 'Unexpected control character found'),
- 'default' => array(-1, 'Unknown error'),
- );
- }
-
- public function testExceptionTraceWithArgs()
- {
- if (defined('HHVM_VERSION')) {
- $this->markTestSkipped('Not supported in HHVM since it detects errors differently');
- }
-
- // This happens i.e. in React promises or Guzzle streams where stream wrappers are registered
- // and no file or line are included in the trace because it's treated as internal function
- set_error_handler(function ($errno, $errstr, $errfile, $errline) {
- throw new \ErrorException($errstr, 0, $errno, $errfile, $errline);
- });
-
- try {
- // This will contain $resource and $wrappedResource as arguments in the trace item
- $resource = fopen('php://memory', 'rw+');
- fwrite($resource, 'test_resource');
- $wrappedResource = new TestFooNorm;
- $wrappedResource->foo = $resource;
- // Just do something stupid with a resource/wrapped resource as argument
- array_keys($wrappedResource);
- } catch (\Exception $e) {
- restore_error_handler();
- }
-
- $formatter = new NormalizerFormatter();
- $record = array('context' => array('exception' => $e));
- $result = $formatter->format($record);
-
- $this->assertRegExp(
- '%"resource":"\[resource\] \(stream\)"%',
- $result['context']['exception']['trace'][0]
- );
-
- if (version_compare(PHP_VERSION, '5.5.0', '>=')) {
- $pattern = '%"wrappedResource":"\[object\] \(Monolog\\\\\\\\Formatter\\\\\\\\TestFooNorm: \)"%';
- } else {
- $pattern = '%\\\\"foo\\\\":null%';
- }
-
- // Tests that the wrapped resource is ignored while encoding, only works for PHP <= 5.4
- $this->assertRegExp(
- $pattern,
- $result['context']['exception']['trace'][0]
- );
- }
-}
-
-class TestFooNorm
-{
- public $foo = 'foo';
-}
-
-class TestBarNorm
-{
- public function __toString()
- {
- return 'bar';
- }
-}
-
-class TestStreamFoo
-{
- public $foo;
- public $resource;
-
- public function __construct($resource)
- {
- $this->resource = $resource;
- $this->foo = 'BAR';
- }
-
- public function __toString()
- {
- fseek($this->resource, 0);
-
- return $this->foo . ' - ' . (string) stream_get_contents($this->resource);
- }
-}
-
-class TestToStringError
-{
- public function __toString()
- {
- throw new \RuntimeException('Could not convert to string');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php
deleted file mode 100644
index b1c8fd49..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
-{
- private $formatter;
-
- public function setUp()
- {
- $this->formatter = new ScalarFormatter();
- }
-
- public function buildTrace(\Exception $e)
- {
- $data = array();
- $trace = $e->getTrace();
- foreach ($trace as $frame) {
- if (isset($frame['file'])) {
- $data[] = $frame['file'].':'.$frame['line'];
- } else {
- $data[] = json_encode($frame);
- }
- }
-
- return $data;
- }
-
- public function encodeJson($data)
- {
- if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
- return json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
- }
-
- return json_encode($data);
- }
-
- public function testFormat()
- {
- $exception = new \Exception('foo');
- $formatted = $this->formatter->format(array(
- 'foo' => 'string',
- 'bar' => 1,
- 'baz' => false,
- 'bam' => array(1, 2, 3),
- 'bat' => array('foo' => 'bar'),
- 'bap' => \DateTime::createFromFormat(\DateTime::ISO8601, '1970-01-01T00:00:00+0000'),
- 'ban' => $exception,
- ));
-
- $this->assertSame(array(
- 'foo' => 'string',
- 'bar' => 1,
- 'baz' => false,
- 'bam' => $this->encodeJson(array(1, 2, 3)),
- 'bat' => $this->encodeJson(array('foo' => 'bar')),
- 'bap' => '1970-01-01 00:00:00',
- 'ban' => $this->encodeJson(array(
- 'class' => get_class($exception),
- 'message' => $exception->getMessage(),
- 'code' => $exception->getCode(),
- 'file' => $exception->getFile() . ':' . $exception->getLine(),
- 'trace' => $this->buildTrace($exception),
- )),
- ), $formatted);
- }
-
- public function testFormatWithErrorContext()
- {
- $context = array('file' => 'foo', 'line' => 1);
- $formatted = $this->formatter->format(array(
- 'context' => $context,
- ));
-
- $this->assertSame(array(
- 'context' => $this->encodeJson($context),
- ), $formatted);
- }
-
- public function testFormatWithExceptionContext()
- {
- $exception = new \Exception('foo');
- $formatted = $this->formatter->format(array(
- 'context' => array(
- 'exception' => $exception,
- ),
- ));
-
- $this->assertSame(array(
- 'context' => $this->encodeJson(array(
- 'exception' => array(
- 'class' => get_class($exception),
- 'message' => $exception->getMessage(),
- 'code' => $exception->getCode(),
- 'file' => $exception->getFile() . ':' . $exception->getLine(),
- 'trace' => $this->buildTrace($exception),
- ),
- )),
- ), $formatted);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/WildfireFormatterTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/WildfireFormatterTest.php
deleted file mode 100644
index 52f15a36..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Formatter/WildfireFormatterTest.php
+++ /dev/null
@@ -1,142 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Formatter;
-
-use Monolog\Logger;
-
-class WildfireFormatterTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @covers Monolog\Formatter\WildfireFormatter::format
- */
- public function testDefaultFormat()
- {
- $wildfire = new WildfireFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('ip' => '127.0.0.1'),
- 'message' => 'log',
- );
-
- $message = $wildfire->format($record);
-
- $this->assertEquals(
- '125|[{"Type":"ERROR","File":"","Line":"","Label":"meh"},'
- .'{"message":"log","context":{"from":"logger"},"extra":{"ip":"127.0.0.1"}}]|',
- $message
- );
- }
-
- /**
- * @covers Monolog\Formatter\WildfireFormatter::format
- */
- public function testFormatWithFileAndLine()
- {
- $wildfire = new WildfireFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array('ip' => '127.0.0.1', 'file' => 'test', 'line' => 14),
- 'message' => 'log',
- );
-
- $message = $wildfire->format($record);
-
- $this->assertEquals(
- '129|[{"Type":"ERROR","File":"test","Line":14,"Label":"meh"},'
- .'{"message":"log","context":{"from":"logger"},"extra":{"ip":"127.0.0.1"}}]|',
- $message
- );
- }
-
- /**
- * @covers Monolog\Formatter\WildfireFormatter::format
- */
- public function testFormatWithoutContext()
- {
- $wildfire = new WildfireFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- );
-
- $message = $wildfire->format($record);
-
- $this->assertEquals(
- '58|[{"Type":"ERROR","File":"","Line":"","Label":"meh"},"log"]|',
- $message
- );
- }
-
- /**
- * @covers Monolog\Formatter\WildfireFormatter::formatBatch
- * @expectedException BadMethodCallException
- */
- public function testBatchFormatThrowException()
- {
- $wildfire = new WildfireFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array(),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- );
-
- $wildfire->formatBatch(array($record));
- }
-
- /**
- * @covers Monolog\Formatter\WildfireFormatter::format
- */
- public function testTableFormat()
- {
- $wildfire = new WildfireFormatter();
- $record = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'table-channel',
- 'context' => array(
- WildfireFormatter::TABLE => array(
- array('col1', 'col2', 'col3'),
- array('val1', 'val2', 'val3'),
- array('foo1', 'foo2', 'foo3'),
- array('bar1', 'bar2', 'bar3'),
- ),
- ),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'table-message',
- );
-
- $message = $wildfire->format($record);
-
- $this->assertEquals(
- '171|[{"Type":"TABLE","File":"","Line":"","Label":"table-channel: table-message"},[["col1","col2","col3"],["val1","val2","val3"],["foo1","foo2","foo3"],["bar1","bar2","bar3"]]]|',
- $message
- );
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AbstractHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AbstractHandlerTest.php
deleted file mode 100644
index 568eb9da..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AbstractHandlerTest.php
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-use Monolog\Processor\WebProcessor;
-
-class AbstractHandlerTest extends TestCase
-{
- /**
- * @covers Monolog\Handler\AbstractHandler::__construct
- * @covers Monolog\Handler\AbstractHandler::getLevel
- * @covers Monolog\Handler\AbstractHandler::setLevel
- * @covers Monolog\Handler\AbstractHandler::getBubble
- * @covers Monolog\Handler\AbstractHandler::setBubble
- * @covers Monolog\Handler\AbstractHandler::getFormatter
- * @covers Monolog\Handler\AbstractHandler::setFormatter
- */
- public function testConstructAndGetSet()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler', array(Logger::WARNING, false));
- $this->assertEquals(Logger::WARNING, $handler->getLevel());
- $this->assertEquals(false, $handler->getBubble());
-
- $handler->setLevel(Logger::ERROR);
- $handler->setBubble(true);
- $handler->setFormatter($formatter = new LineFormatter);
- $this->assertEquals(Logger::ERROR, $handler->getLevel());
- $this->assertEquals(true, $handler->getBubble());
- $this->assertSame($formatter, $handler->getFormatter());
- }
-
- /**
- * @covers Monolog\Handler\AbstractHandler::handleBatch
- */
- public function testHandleBatch()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler');
- $handler->expects($this->exactly(2))
- ->method('handle');
- $handler->handleBatch(array($this->getRecord(), $this->getRecord()));
- }
-
- /**
- * @covers Monolog\Handler\AbstractHandler::isHandling
- */
- public function testIsHandling()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler', array(Logger::WARNING, false));
- $this->assertTrue($handler->isHandling($this->getRecord()));
- $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
- }
-
- /**
- * @covers Monolog\Handler\AbstractHandler::__construct
- */
- public function testHandlesPsrStyleLevels()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler', array('warning', false));
- $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
- $handler->setLevel('debug');
- $this->assertTrue($handler->isHandling($this->getRecord(Logger::DEBUG)));
- }
-
- /**
- * @covers Monolog\Handler\AbstractHandler::getFormatter
- * @covers Monolog\Handler\AbstractHandler::getDefaultFormatter
- */
- public function testGetFormatterInitializesDefault()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler');
- $this->assertInstanceOf('Monolog\Formatter\LineFormatter', $handler->getFormatter());
- }
-
- /**
- * @covers Monolog\Handler\AbstractHandler::pushProcessor
- * @covers Monolog\Handler\AbstractHandler::popProcessor
- * @expectedException LogicException
- */
- public function testPushPopProcessor()
- {
- $logger = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler');
- $processor1 = new WebProcessor;
- $processor2 = new WebProcessor;
-
- $logger->pushProcessor($processor1);
- $logger->pushProcessor($processor2);
-
- $this->assertEquals($processor2, $logger->popProcessor());
- $this->assertEquals($processor1, $logger->popProcessor());
- $logger->popProcessor();
- }
-
- /**
- * @covers Monolog\Handler\AbstractHandler::pushProcessor
- * @expectedException InvalidArgumentException
- */
- public function testPushProcessorWithNonCallable()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler');
-
- $handler->pushProcessor(new \stdClass());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AbstractProcessingHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AbstractProcessingHandlerTest.php
deleted file mode 100644
index 24d4f63c..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AbstractProcessingHandlerTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Processor\WebProcessor;
-
-class AbstractProcessingHandlerTest extends TestCase
-{
- /**
- * @covers Monolog\Handler\AbstractProcessingHandler::handle
- */
- public function testHandleLowerLevelMessage()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler', array(Logger::WARNING, true));
- $this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG)));
- }
-
- /**
- * @covers Monolog\Handler\AbstractProcessingHandler::handle
- */
- public function testHandleBubbling()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler', array(Logger::DEBUG, true));
- $this->assertFalse($handler->handle($this->getRecord()));
- }
-
- /**
- * @covers Monolog\Handler\AbstractProcessingHandler::handle
- */
- public function testHandleNotBubbling()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler', array(Logger::DEBUG, false));
- $this->assertTrue($handler->handle($this->getRecord()));
- }
-
- /**
- * @covers Monolog\Handler\AbstractProcessingHandler::handle
- */
- public function testHandleIsFalseWhenNotHandled()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler', array(Logger::WARNING, false));
- $this->assertTrue($handler->handle($this->getRecord()));
- $this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG)));
- }
-
- /**
- * @covers Monolog\Handler\AbstractProcessingHandler::processRecord
- */
- public function testProcessRecord()
- {
- $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler');
- $handler->pushProcessor(new WebProcessor(array(
- 'REQUEST_URI' => '',
- 'REQUEST_METHOD' => '',
- 'REMOTE_ADDR' => '',
- 'SERVER_NAME' => '',
- 'UNIQUE_ID' => '',
- )));
- $handledRecord = null;
- $handler->expects($this->once())
- ->method('write')
- ->will($this->returnCallback(function ($record) use (&$handledRecord) {
- $handledRecord = $record;
- }))
- ;
- $handler->handle($this->getRecord());
- $this->assertEquals(6, count($handledRecord['extra']));
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AmqpHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AmqpHandlerTest.php
deleted file mode 100644
index 8e0e7237..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/AmqpHandlerTest.php
+++ /dev/null
@@ -1,136 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use PhpAmqpLib\Message\AMQPMessage;
-use PhpAmqpLib\Connection\AMQPConnection;
-
-/**
- * @covers Monolog\Handler\RotatingFileHandler
- */
-class AmqpHandlerTest extends TestCase
-{
- public function testHandleAmqpExt()
- {
- if (!class_exists('AMQPConnection') || !class_exists('AMQPExchange')) {
- $this->markTestSkipped("amqp-php not installed");
- }
-
- if (!class_exists('AMQPChannel')) {
- $this->markTestSkipped("Please update AMQP to version >= 1.0");
- }
-
- $messages = array();
-
- $exchange = $this->getMock('AMQPExchange', array('publish', 'setName'), array(), '', false);
- $exchange->expects($this->once())
- ->method('setName')
- ->with('log')
- ;
- $exchange->expects($this->any())
- ->method('publish')
- ->will($this->returnCallback(function ($message, $routing_key, $flags = 0, $attributes = array()) use (&$messages) {
- $messages[] = array($message, $routing_key, $flags, $attributes);
- }))
- ;
-
- $handler = new AmqpHandler($exchange, 'log');
-
- $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
- $expected = array(
- array(
- 'message' => 'test',
- 'context' => array(
- 'data' => array(),
- 'foo' => 34,
- ),
- 'level' => 300,
- 'level_name' => 'WARNING',
- 'channel' => 'test',
- 'extra' => array(),
- ),
- 'warn.test',
- 0,
- array(
- 'delivery_mode' => 2,
- 'content_type' => 'application/json',
- ),
- );
-
- $handler->handle($record);
-
- $this->assertCount(1, $messages);
- $messages[0][0] = json_decode($messages[0][0], true);
- unset($messages[0][0]['datetime']);
- $this->assertEquals($expected, $messages[0]);
- }
-
- public function testHandlePhpAmqpLib()
- {
- if (!class_exists('PhpAmqpLib\Connection\AMQPConnection')) {
- $this->markTestSkipped("php-amqplib not installed");
- }
-
- $messages = array();
-
- $exchange = $this->getMock('PhpAmqpLib\Channel\AMQPChannel', array('basic_publish', '__destruct'), array(), '', false);
-
- $exchange->expects($this->any())
- ->method('basic_publish')
- ->will($this->returnCallback(function (AMQPMessage $msg, $exchange = "", $routing_key = "", $mandatory = false, $immediate = false, $ticket = null) use (&$messages) {
- $messages[] = array($msg, $exchange, $routing_key, $mandatory, $immediate, $ticket);
- }))
- ;
-
- $handler = new AmqpHandler($exchange, 'log');
-
- $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
- $expected = array(
- array(
- 'message' => 'test',
- 'context' => array(
- 'data' => array(),
- 'foo' => 34,
- ),
- 'level' => 300,
- 'level_name' => 'WARNING',
- 'channel' => 'test',
- 'extra' => array(),
- ),
- 'log',
- 'warn.test',
- false,
- false,
- null,
- array(
- 'delivery_mode' => 2,
- 'content_type' => 'application/json',
- ),
- );
-
- $handler->handle($record);
-
- $this->assertCount(1, $messages);
-
- /* @var $msg AMQPMessage */
- $msg = $messages[0][0];
- $messages[0][0] = json_decode($msg->body, true);
- $messages[0][] = $msg->get_properties();
- unset($messages[0][0]['datetime']);
-
- $this->assertEquals($expected, $messages[0]);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/BrowserConsoleHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/BrowserConsoleHandlerTest.php
deleted file mode 100644
index ffb1d746..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/BrowserConsoleHandlerTest.php
+++ /dev/null
@@ -1,130 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @covers Monolog\Handler\BrowserConsoleHandlerTest
- */
-class BrowserConsoleHandlerTest extends TestCase
-{
- protected function setUp()
- {
- BrowserConsoleHandler::reset();
- }
-
- protected function generateScript()
- {
- $reflMethod = new \ReflectionMethod('Monolog\Handler\BrowserConsoleHandler', 'generateScript');
- $reflMethod->setAccessible(true);
-
- return $reflMethod->invoke(null);
- }
-
- public function testStyling()
- {
- $handler = new BrowserConsoleHandler();
- $handler->setFormatter($this->getIdentityFormatter());
-
- $handler->handle($this->getRecord(Logger::DEBUG, 'foo[[bar]]{color: red}'));
-
- $expected = <<<EOF
-(function (c) {if (c && c.groupCollapsed) {
-c.log("%cfoo%cbar%c", "font-weight: normal", "color: red", "font-weight: normal");
-}})(console);
-EOF;
-
- $this->assertEquals($expected, $this->generateScript());
- }
-
- public function testEscaping()
- {
- $handler = new BrowserConsoleHandler();
- $handler->setFormatter($this->getIdentityFormatter());
-
- $handler->handle($this->getRecord(Logger::DEBUG, "[foo] [[\"bar\n[baz]\"]]{color: red}"));
-
- $expected = <<<EOF
-(function (c) {if (c && c.groupCollapsed) {
-c.log("%c[foo] %c\"bar\\n[baz]\"%c", "font-weight: normal", "color: red", "font-weight: normal");
-}})(console);
-EOF;
-
- $this->assertEquals($expected, $this->generateScript());
- }
-
- public function testAutolabel()
- {
- $handler = new BrowserConsoleHandler();
- $handler->setFormatter($this->getIdentityFormatter());
-
- $handler->handle($this->getRecord(Logger::DEBUG, '[[foo]]{macro: autolabel}'));
- $handler->handle($this->getRecord(Logger::DEBUG, '[[bar]]{macro: autolabel}'));
- $handler->handle($this->getRecord(Logger::DEBUG, '[[foo]]{macro: autolabel}'));
-
- $expected = <<<EOF
-(function (c) {if (c && c.groupCollapsed) {
-c.log("%c%cfoo%c", "font-weight: normal", "background-color: blue; color: white; border-radius: 3px; padding: 0 2px 0 2px", "font-weight: normal");
-c.log("%c%cbar%c", "font-weight: normal", "background-color: green; color: white; border-radius: 3px; padding: 0 2px 0 2px", "font-weight: normal");
-c.log("%c%cfoo%c", "font-weight: normal", "background-color: blue; color: white; border-radius: 3px; padding: 0 2px 0 2px", "font-weight: normal");
-}})(console);
-EOF;
-
- $this->assertEquals($expected, $this->generateScript());
- }
-
- public function testContext()
- {
- $handler = new BrowserConsoleHandler();
- $handler->setFormatter($this->getIdentityFormatter());
-
- $handler->handle($this->getRecord(Logger::DEBUG, 'test', array('foo' => 'bar')));
-
- $expected = <<<EOF
-(function (c) {if (c && c.groupCollapsed) {
-c.groupCollapsed("%ctest", "font-weight: normal");
-c.log("%c%s", "font-weight: bold", "Context");
-c.log("%s: %o", "foo", "bar");
-c.groupEnd();
-}})(console);
-EOF;
-
- $this->assertEquals($expected, $this->generateScript());
- }
-
- public function testConcurrentHandlers()
- {
- $handler1 = new BrowserConsoleHandler();
- $handler1->setFormatter($this->getIdentityFormatter());
-
- $handler2 = new BrowserConsoleHandler();
- $handler2->setFormatter($this->getIdentityFormatter());
-
- $handler1->handle($this->getRecord(Logger::DEBUG, 'test1'));
- $handler2->handle($this->getRecord(Logger::DEBUG, 'test2'));
- $handler1->handle($this->getRecord(Logger::DEBUG, 'test3'));
- $handler2->handle($this->getRecord(Logger::DEBUG, 'test4'));
-
- $expected = <<<EOF
-(function (c) {if (c && c.groupCollapsed) {
-c.log("%ctest1", "font-weight: normal");
-c.log("%ctest2", "font-weight: normal");
-c.log("%ctest3", "font-weight: normal");
-c.log("%ctest4", "font-weight: normal");
-}})(console);
-EOF;
-
- $this->assertEquals($expected, $this->generateScript());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/BufferHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/BufferHandlerTest.php
deleted file mode 100644
index da8b3c39..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/BufferHandlerTest.php
+++ /dev/null
@@ -1,158 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class BufferHandlerTest extends TestCase
-{
- private $shutdownCheckHandler;
-
- /**
- * @covers Monolog\Handler\BufferHandler::__construct
- * @covers Monolog\Handler\BufferHandler::handle
- * @covers Monolog\Handler\BufferHandler::close
- */
- public function testHandleBuffers()
- {
- $test = new TestHandler();
- $handler = new BufferHandler($test);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- $this->assertFalse($test->hasDebugRecords());
- $this->assertFalse($test->hasInfoRecords());
- $handler->close();
- $this->assertTrue($test->hasInfoRecords());
- $this->assertTrue(count($test->getRecords()) === 2);
- }
-
- /**
- * @covers Monolog\Handler\BufferHandler::close
- * @covers Monolog\Handler\BufferHandler::flush
- */
- public function testPropagatesRecordsAtEndOfRequest()
- {
- $test = new TestHandler();
- $handler = new BufferHandler($test);
- $handler->handle($this->getRecord(Logger::WARNING));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $this->shutdownCheckHandler = $test;
- register_shutdown_function(array($this, 'checkPropagation'));
- }
-
- public function checkPropagation()
- {
- if (!$this->shutdownCheckHandler->hasWarningRecords() || !$this->shutdownCheckHandler->hasDebugRecords()) {
- echo '!!! BufferHandlerTest::testPropagatesRecordsAtEndOfRequest failed to verify that the messages have been propagated' . PHP_EOL;
- exit(1);
- }
- }
-
- /**
- * @covers Monolog\Handler\BufferHandler::handle
- */
- public function testHandleBufferLimit()
- {
- $test = new TestHandler();
- $handler = new BufferHandler($test, 2);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- $handler->handle($this->getRecord(Logger::WARNING));
- $handler->close();
- $this->assertTrue($test->hasWarningRecords());
- $this->assertTrue($test->hasInfoRecords());
- $this->assertFalse($test->hasDebugRecords());
- }
-
- /**
- * @covers Monolog\Handler\BufferHandler::handle
- */
- public function testHandleBufferLimitWithFlushOnOverflow()
- {
- $test = new TestHandler();
- $handler = new BufferHandler($test, 3, Logger::DEBUG, true, true);
-
- // send two records
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $this->assertFalse($test->hasDebugRecords());
- $this->assertCount(0, $test->getRecords());
-
- // overflow
- $handler->handle($this->getRecord(Logger::INFO));
- $this->assertTrue($test->hasDebugRecords());
- $this->assertCount(3, $test->getRecords());
-
- // should buffer again
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertCount(3, $test->getRecords());
-
- $handler->close();
- $this->assertCount(5, $test->getRecords());
- $this->assertTrue($test->hasWarningRecords());
- $this->assertTrue($test->hasInfoRecords());
- }
-
- /**
- * @covers Monolog\Handler\BufferHandler::handle
- */
- public function testHandleLevel()
- {
- $test = new TestHandler();
- $handler = new BufferHandler($test, 0, Logger::INFO);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- $handler->handle($this->getRecord(Logger::WARNING));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->close();
- $this->assertTrue($test->hasWarningRecords());
- $this->assertTrue($test->hasInfoRecords());
- $this->assertFalse($test->hasDebugRecords());
- }
-
- /**
- * @covers Monolog\Handler\BufferHandler::flush
- */
- public function testFlush()
- {
- $test = new TestHandler();
- $handler = new BufferHandler($test, 0);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- $handler->flush();
- $this->assertTrue($test->hasInfoRecords());
- $this->assertTrue($test->hasDebugRecords());
- $this->assertFalse($test->hasWarningRecords());
- }
-
- /**
- * @covers Monolog\Handler\BufferHandler::handle
- */
- public function testHandleUsesProcessors()
- {
- $test = new TestHandler();
- $handler = new BufferHandler($test);
- $handler->pushProcessor(function ($record) {
- $record['extra']['foo'] = true;
-
- return $record;
- });
- $handler->handle($this->getRecord(Logger::WARNING));
- $handler->flush();
- $this->assertTrue($test->hasWarningRecords());
- $records = $test->getRecords();
- $this->assertTrue($records[0]['extra']['foo']);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ChromePHPHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ChromePHPHandlerTest.php
deleted file mode 100644
index ef3cd1cb..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ChromePHPHandlerTest.php
+++ /dev/null
@@ -1,141 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @covers Monolog\Handler\ChromePHPHandler
- */
-class ChromePHPHandlerTest extends TestCase
-{
- protected function setUp()
- {
- TestChromePHPHandler::reset();
- $_SERVER['HTTP_USER_AGENT'] = 'Monolog Test; Chrome/1.0';
- }
-
- public function testHeaders()
- {
- $handler = new TestChromePHPHandler();
- $handler->setFormatter($this->getIdentityFormatter());
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::WARNING));
-
- $expected = array(
- 'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
- 'version' => ChromePHPHandler::VERSION,
- 'columns' => array('label', 'log', 'backtrace', 'type'),
- 'rows' => array(
- 'test',
- 'test',
- ),
- 'request_uri' => '',
- )))),
- );
-
- $this->assertEquals($expected, $handler->getHeaders());
- }
-
- public function testHeadersOverflow()
- {
- $handler = new TestChromePHPHandler();
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::WARNING, str_repeat('a', 150 * 1024)));
-
- // overflow chrome headers limit
- $handler->handle($this->getRecord(Logger::WARNING, str_repeat('a', 100 * 1024)));
-
- $expected = array(
- 'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
- 'version' => ChromePHPHandler::VERSION,
- 'columns' => array('label', 'log', 'backtrace', 'type'),
- 'rows' => array(
- array(
- 'test',
- 'test',
- 'unknown',
- 'log',
- ),
- array(
- 'test',
- str_repeat('a', 150 * 1024),
- 'unknown',
- 'warn',
- ),
- array(
- 'monolog',
- 'Incomplete logs, chrome header size limit reached',
- 'unknown',
- 'warn',
- ),
- ),
- 'request_uri' => '',
- )))),
- );
-
- $this->assertEquals($expected, $handler->getHeaders());
- }
-
- public function testConcurrentHandlers()
- {
- $handler = new TestChromePHPHandler();
- $handler->setFormatter($this->getIdentityFormatter());
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::WARNING));
-
- $handler2 = new TestChromePHPHandler();
- $handler2->setFormatter($this->getIdentityFormatter());
- $handler2->handle($this->getRecord(Logger::DEBUG));
- $handler2->handle($this->getRecord(Logger::WARNING));
-
- $expected = array(
- 'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
- 'version' => ChromePHPHandler::VERSION,
- 'columns' => array('label', 'log', 'backtrace', 'type'),
- 'rows' => array(
- 'test',
- 'test',
- 'test',
- 'test',
- ),
- 'request_uri' => '',
- )))),
- );
-
- $this->assertEquals($expected, $handler2->getHeaders());
- }
-}
-
-class TestChromePHPHandler extends ChromePHPHandler
-{
- protected $headers = array();
-
- public static function reset()
- {
- self::$initialized = false;
- self::$overflowed = false;
- self::$sendHeaders = true;
- self::$json['rows'] = array();
- }
-
- protected function sendHeader($header, $content)
- {
- $this->headers[$header] = $content;
- }
-
- public function getHeaders()
- {
- return $this->headers;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.php
deleted file mode 100644
index 9fc4b388..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class CouchDBHandlerTest extends TestCase
-{
- public function testHandle()
- {
- $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
- $handler = new CouchDBHandler();
-
- try {
- $handler->handle($record);
- } catch (\RuntimeException $e) {
- $this->markTestSkipped('Could not connect to couchdb server on http://localhost:5984');
- }
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DeduplicationHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DeduplicationHandlerTest.php
deleted file mode 100644
index e2aff868..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DeduplicationHandlerTest.php
+++ /dev/null
@@ -1,165 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class DeduplicationHandlerTest extends TestCase
-{
- /**
- * @covers Monolog\Handler\DeduplicationHandler::flush
- */
- public function testFlushPassthruIfAllRecordsUnderTrigger()
- {
- $test = new TestHandler();
- @unlink(sys_get_temp_dir().'/monolog_dedup.log');
- $handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
-
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
-
- $handler->flush();
-
- $this->assertTrue($test->hasInfoRecords());
- $this->assertTrue($test->hasDebugRecords());
- $this->assertFalse($test->hasWarningRecords());
- }
-
- /**
- * @covers Monolog\Handler\DeduplicationHandler::flush
- * @covers Monolog\Handler\DeduplicationHandler::appendRecord
- */
- public function testFlushPassthruIfEmptyLog()
- {
- $test = new TestHandler();
- @unlink(sys_get_temp_dir().'/monolog_dedup.log');
- $handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
-
- $handler->handle($this->getRecord(Logger::ERROR, 'Foo:bar'));
- $handler->handle($this->getRecord(Logger::CRITICAL, "Foo\nbar"));
-
- $handler->flush();
-
- $this->assertTrue($test->hasErrorRecords());
- $this->assertTrue($test->hasCriticalRecords());
- $this->assertFalse($test->hasWarningRecords());
- }
-
- /**
- * @covers Monolog\Handler\DeduplicationHandler::flush
- * @covers Monolog\Handler\DeduplicationHandler::appendRecord
- * @covers Monolog\Handler\DeduplicationHandler::isDuplicate
- * @depends testFlushPassthruIfEmptyLog
- */
- public function testFlushSkipsIfLogExists()
- {
- $test = new TestHandler();
- $handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
-
- $handler->handle($this->getRecord(Logger::ERROR, 'Foo:bar'));
- $handler->handle($this->getRecord(Logger::CRITICAL, "Foo\nbar"));
-
- $handler->flush();
-
- $this->assertFalse($test->hasErrorRecords());
- $this->assertFalse($test->hasCriticalRecords());
- $this->assertFalse($test->hasWarningRecords());
- }
-
- /**
- * @covers Monolog\Handler\DeduplicationHandler::flush
- * @covers Monolog\Handler\DeduplicationHandler::appendRecord
- * @covers Monolog\Handler\DeduplicationHandler::isDuplicate
- * @depends testFlushPassthruIfEmptyLog
- */
- public function testFlushPassthruIfLogTooOld()
- {
- $test = new TestHandler();
- $handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
-
- $record = $this->getRecord(Logger::ERROR);
- $record['datetime']->modify('+62seconds');
- $handler->handle($record);
- $record = $this->getRecord(Logger::CRITICAL);
- $record['datetime']->modify('+62seconds');
- $handler->handle($record);
-
- $handler->flush();
-
- $this->assertTrue($test->hasErrorRecords());
- $this->assertTrue($test->hasCriticalRecords());
- $this->assertFalse($test->hasWarningRecords());
- }
-
- /**
- * @covers Monolog\Handler\DeduplicationHandler::flush
- * @covers Monolog\Handler\DeduplicationHandler::appendRecord
- * @covers Monolog\Handler\DeduplicationHandler::isDuplicate
- * @covers Monolog\Handler\DeduplicationHandler::collectLogs
- */
- public function testGcOldLogs()
- {
- $test = new TestHandler();
- @unlink(sys_get_temp_dir().'/monolog_dedup.log');
- $handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
-
- // handle two records from yesterday, and one recent
- $record = $this->getRecord(Logger::ERROR);
- $record['datetime']->modify('-1day -10seconds');
- $handler->handle($record);
- $record2 = $this->getRecord(Logger::CRITICAL);
- $record2['datetime']->modify('-1day -10seconds');
- $handler->handle($record2);
- $record3 = $this->getRecord(Logger::CRITICAL);
- $record3['datetime']->modify('-30seconds');
- $handler->handle($record3);
-
- // log is written as none of them are duplicate
- $handler->flush();
- $this->assertSame(
- $record['datetime']->getTimestamp() . ":ERROR:test\n" .
- $record2['datetime']->getTimestamp() . ":CRITICAL:test\n" .
- $record3['datetime']->getTimestamp() . ":CRITICAL:test\n",
- file_get_contents(sys_get_temp_dir() . '/monolog_dedup.log')
- );
- $this->assertTrue($test->hasErrorRecords());
- $this->assertTrue($test->hasCriticalRecords());
- $this->assertFalse($test->hasWarningRecords());
-
- // clear test handler
- $test->clear();
- $this->assertFalse($test->hasErrorRecords());
- $this->assertFalse($test->hasCriticalRecords());
-
- // log new records, duplicate log gets GC'd at the end of this flush call
- $handler->handle($record = $this->getRecord(Logger::ERROR));
- $handler->handle($record2 = $this->getRecord(Logger::CRITICAL));
- $handler->flush();
-
- // log should now contain the new errors and the previous one that was recent enough
- $this->assertSame(
- $record3['datetime']->getTimestamp() . ":CRITICAL:test\n" .
- $record['datetime']->getTimestamp() . ":ERROR:test\n" .
- $record2['datetime']->getTimestamp() . ":CRITICAL:test\n",
- file_get_contents(sys_get_temp_dir() . '/monolog_dedup.log')
- );
- $this->assertTrue($test->hasErrorRecords());
- $this->assertTrue($test->hasCriticalRecords());
- $this->assertFalse($test->hasWarningRecords());
- }
-
- public static function tearDownAfterClass()
- {
- @unlink(sys_get_temp_dir().'/monolog_dedup.log');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php
deleted file mode 100644
index d67da90a..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class DoctrineCouchDBHandlerTest extends TestCase
-{
- protected function setup()
- {
- if (!class_exists('Doctrine\CouchDB\CouchDBClient')) {
- $this->markTestSkipped('The "doctrine/couchdb" package is not installed');
- }
- }
-
- public function testHandle()
- {
- $client = $this->getMockBuilder('Doctrine\\CouchDB\\CouchDBClient')
- ->setMethods(array('postDocument'))
- ->disableOriginalConstructor()
- ->getMock();
-
- $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
- $expected = array(
- 'message' => 'test',
- 'context' => array('data' => '[object] (stdClass: {})', 'foo' => 34),
- 'level' => Logger::WARNING,
- 'level_name' => 'WARNING',
- 'channel' => 'test',
- 'datetime' => $record['datetime']->format('Y-m-d H:i:s'),
- 'extra' => array(),
- );
-
- $client->expects($this->once())
- ->method('postDocument')
- ->with($expected);
-
- $handler = new DoctrineCouchDBHandler($client);
- $handler->handle($record);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DynamoDbHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DynamoDbHandlerTest.php
deleted file mode 100644
index f3a69680..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/DynamoDbHandlerTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-
-class DynamoDbHandlerTest extends TestCase
-{
- private $client;
-
- public function setUp()
- {
- if (!class_exists('Aws\DynamoDb\DynamoDbClient')) {
- $this->markTestSkipped('aws/aws-sdk-php not installed');
- }
-
- $this->client = $this->getMockBuilder('Aws\DynamoDb\DynamoDbClient')
- ->setMethods(array('formatAttributes', '__call'))
- ->disableOriginalConstructor()->getMock();
- }
-
- public function testConstruct()
- {
- $this->assertInstanceOf('Monolog\Handler\DynamoDbHandler', new DynamoDbHandler($this->client, 'foo'));
- }
-
- public function testInterface()
- {
- $this->assertInstanceOf('Monolog\Handler\HandlerInterface', new DynamoDbHandler($this->client, 'foo'));
- }
-
- public function testGetFormatter()
- {
- $handler = new DynamoDbHandler($this->client, 'foo');
- $this->assertInstanceOf('Monolog\Formatter\ScalarFormatter', $handler->getFormatter());
- }
-
- public function testHandle()
- {
- $record = $this->getRecord();
- $formatter = $this->getMock('Monolog\Formatter\FormatterInterface');
- $formatted = array('foo' => 1, 'bar' => 2);
- $handler = new DynamoDbHandler($this->client, 'foo');
- $handler->setFormatter($formatter);
-
- $formatter
- ->expects($this->once())
- ->method('format')
- ->with($record)
- ->will($this->returnValue($formatted));
- $this->client
- ->expects($this->once())
- ->method('formatAttributes')
- ->with($this->isType('array'))
- ->will($this->returnValue($formatted));
- $this->client
- ->expects($this->once())
- ->method('__call')
- ->with('putItem', array(array(
- 'TableName' => 'foo',
- 'Item' => $formatted,
- )));
-
- $handler->handle($record);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ElasticSearchHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ElasticSearchHandlerTest.php
deleted file mode 100644
index 1687074b..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ElasticSearchHandlerTest.php
+++ /dev/null
@@ -1,239 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\ElasticaFormatter;
-use Monolog\Formatter\NormalizerFormatter;
-use Monolog\TestCase;
-use Monolog\Logger;
-use Elastica\Client;
-use Elastica\Request;
-use Elastica\Response;
-
-class ElasticSearchHandlerTest extends TestCase
-{
- /**
- * @var Client mock
- */
- protected $client;
-
- /**
- * @var array Default handler options
- */
- protected $options = array(
- 'index' => 'my_index',
- 'type' => 'doc_type',
- );
-
- public function setUp()
- {
- // Elastica lib required
- if (!class_exists("Elastica\Client")) {
- $this->markTestSkipped("ruflin/elastica not installed");
- }
-
- // base mock Elastica Client object
- $this->client = $this->getMockBuilder('Elastica\Client')
- ->setMethods(array('addDocuments'))
- ->disableOriginalConstructor()
- ->getMock();
- }
-
- /**
- * @covers Monolog\Handler\ElasticSearchHandler::write
- * @covers Monolog\Handler\ElasticSearchHandler::handleBatch
- * @covers Monolog\Handler\ElasticSearchHandler::bulkSend
- * @covers Monolog\Handler\ElasticSearchHandler::getDefaultFormatter
- */
- public function testHandle()
- {
- // log message
- $msg = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('foo' => 7, 'bar', 'class' => new \stdClass),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- );
-
- // format expected result
- $formatter = new ElasticaFormatter($this->options['index'], $this->options['type']);
- $expected = array($formatter->format($msg));
-
- // setup ES client mock
- $this->client->expects($this->any())
- ->method('addDocuments')
- ->with($expected);
-
- // perform tests
- $handler = new ElasticSearchHandler($this->client, $this->options);
- $handler->handle($msg);
- $handler->handleBatch(array($msg));
- }
-
- /**
- * @covers Monolog\Handler\ElasticSearchHandler::setFormatter
- */
- public function testSetFormatter()
- {
- $handler = new ElasticSearchHandler($this->client);
- $formatter = new ElasticaFormatter('index_new', 'type_new');
- $handler->setFormatter($formatter);
- $this->assertInstanceOf('Monolog\Formatter\ElasticaFormatter', $handler->getFormatter());
- $this->assertEquals('index_new', $handler->getFormatter()->getIndex());
- $this->assertEquals('type_new', $handler->getFormatter()->getType());
- }
-
- /**
- * @covers Monolog\Handler\ElasticSearchHandler::setFormatter
- * @expectedException InvalidArgumentException
- * @expectedExceptionMessage ElasticSearchHandler is only compatible with ElasticaFormatter
- */
- public function testSetFormatterInvalid()
- {
- $handler = new ElasticSearchHandler($this->client);
- $formatter = new NormalizerFormatter();
- $handler->setFormatter($formatter);
- }
-
- /**
- * @covers Monolog\Handler\ElasticSearchHandler::__construct
- * @covers Monolog\Handler\ElasticSearchHandler::getOptions
- */
- public function testOptions()
- {
- $expected = array(
- 'index' => $this->options['index'],
- 'type' => $this->options['type'],
- 'ignore_error' => false,
- );
- $handler = new ElasticSearchHandler($this->client, $this->options);
- $this->assertEquals($expected, $handler->getOptions());
- }
-
- /**
- * @covers Monolog\Handler\ElasticSearchHandler::bulkSend
- * @dataProvider providerTestConnectionErrors
- */
- public function testConnectionErrors($ignore, $expectedError)
- {
- $clientOpts = array('host' => '127.0.0.1', 'port' => 1);
- $client = new Client($clientOpts);
- $handlerOpts = array('ignore_error' => $ignore);
- $handler = new ElasticSearchHandler($client, $handlerOpts);
-
- if ($expectedError) {
- $this->setExpectedException($expectedError[0], $expectedError[1]);
- $handler->handle($this->getRecord());
- } else {
- $this->assertFalse($handler->handle($this->getRecord()));
- }
- }
-
- /**
- * @return array
- */
- public function providerTestConnectionErrors()
- {
- return array(
- array(false, array('RuntimeException', 'Error sending messages to Elasticsearch')),
- array(true, false),
- );
- }
-
- /**
- * Integration test using localhost Elastic Search server
- *
- * @covers Monolog\Handler\ElasticSearchHandler::__construct
- * @covers Monolog\Handler\ElasticSearchHandler::handleBatch
- * @covers Monolog\Handler\ElasticSearchHandler::bulkSend
- * @covers Monolog\Handler\ElasticSearchHandler::getDefaultFormatter
- */
- public function testHandleIntegration()
- {
- $msg = array(
- 'level' => Logger::ERROR,
- 'level_name' => 'ERROR',
- 'channel' => 'meh',
- 'context' => array('foo' => 7, 'bar', 'class' => new \stdClass),
- 'datetime' => new \DateTime("@0"),
- 'extra' => array(),
- 'message' => 'log',
- );
-
- $expected = $msg;
- $expected['datetime'] = $msg['datetime']->format(\DateTime::ISO8601);
- $expected['context'] = array(
- 'class' => '[object] (stdClass: {})',
- 'foo' => 7,
- 0 => 'bar',
- );
-
- $client = new Client();
- $handler = new ElasticSearchHandler($client, $this->options);
- try {
- $handler->handleBatch(array($msg));
- } catch (\RuntimeException $e) {
- $this->markTestSkipped("Cannot connect to Elastic Search server on localhost");
- }
-
- // check document id from ES server response
- $documentId = $this->getCreatedDocId($client->getLastResponse());
- $this->assertNotEmpty($documentId, 'No elastic document id received');
-
- // retrieve document source from ES and validate
- $document = $this->getDocSourceFromElastic(
- $client,
- $this->options['index'],
- $this->options['type'],
- $documentId
- );
- $this->assertEquals($expected, $document);
-
- // remove test index from ES
- $client->request("/{$this->options['index']}", Request::DELETE);
- }
-
- /**
- * Return last created document id from ES response
- * @param Response $response Elastica Response object
- * @return string|null
- */
- protected function getCreatedDocId(Response $response)
- {
- $data = $response->getData();
- if (!empty($data['items'][0]['create']['_id'])) {
- return $data['items'][0]['create']['_id'];
- }
- }
-
- /**
- * Retrieve document by id from Elasticsearch
- * @param Client $client Elastica client
- * @param string $index
- * @param string $type
- * @param string $documentId
- * @return array
- */
- protected function getDocSourceFromElastic(Client $client, $index, $type, $documentId)
- {
- $resp = $client->request("/{$index}/{$type}/{$documentId}", Request::GET);
- $data = $resp->getData();
- if (!empty($data['_source'])) {
- return $data['_source'];
- }
-
- return array();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php
deleted file mode 100644
index 99785cbb..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-
-function error_log()
-{
- $GLOBALS['error_log'][] = func_get_args();
-}
-
-class ErrorLogHandlerTest extends TestCase
-{
- protected function setUp()
- {
- $GLOBALS['error_log'] = array();
- }
-
- /**
- * @covers Monolog\Handler\ErrorLogHandler::__construct
- * @expectedException InvalidArgumentException
- * @expectedExceptionMessage The given message type "42" is not supported
- */
- public function testShouldNotAcceptAnInvalidTypeOnContructor()
- {
- new ErrorLogHandler(42);
- }
-
- /**
- * @covers Monolog\Handler\ErrorLogHandler::write
- */
- public function testShouldLogMessagesUsingErrorLogFuncion()
- {
- $type = ErrorLogHandler::OPERATING_SYSTEM;
- $handler = new ErrorLogHandler($type);
- $handler->setFormatter(new LineFormatter('%channel%.%level_name%: %message% %context% %extra%', null, true));
- $handler->handle($this->getRecord(Logger::ERROR, "Foo\nBar\r\n\r\nBaz"));
-
- $this->assertSame("test.ERROR: Foo\nBar\r\n\r\nBaz [] []", $GLOBALS['error_log'][0][0]);
- $this->assertSame($GLOBALS['error_log'][0][1], $type);
-
- $handler = new ErrorLogHandler($type, Logger::DEBUG, true, true);
- $handler->setFormatter(new LineFormatter(null, null, true));
- $handler->handle($this->getRecord(Logger::ERROR, "Foo\nBar\r\n\r\nBaz"));
-
- $this->assertStringMatchesFormat('[%s] test.ERROR: Foo', $GLOBALS['error_log'][1][0]);
- $this->assertSame($GLOBALS['error_log'][1][1], $type);
-
- $this->assertStringMatchesFormat('Bar', $GLOBALS['error_log'][2][0]);
- $this->assertSame($GLOBALS['error_log'][2][1], $type);
-
- $this->assertStringMatchesFormat('Baz [] []', $GLOBALS['error_log'][3][0]);
- $this->assertSame($GLOBALS['error_log'][3][1], $type);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FilterHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FilterHandlerTest.php
deleted file mode 100644
index 31b7686a..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FilterHandlerTest.php
+++ /dev/null
@@ -1,170 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\TestCase;
-
-class FilterHandlerTest extends TestCase
-{
- /**
- * @covers Monolog\Handler\FilterHandler::isHandling
- */
- public function testIsHandling()
- {
- $test = new TestHandler();
- $handler = new FilterHandler($test, Logger::INFO, Logger::NOTICE);
- $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
- $this->assertTrue($handler->isHandling($this->getRecord(Logger::INFO)));
- $this->assertTrue($handler->isHandling($this->getRecord(Logger::NOTICE)));
- $this->assertFalse($handler->isHandling($this->getRecord(Logger::WARNING)));
- $this->assertFalse($handler->isHandling($this->getRecord(Logger::ERROR)));
- $this->assertFalse($handler->isHandling($this->getRecord(Logger::CRITICAL)));
- $this->assertFalse($handler->isHandling($this->getRecord(Logger::ALERT)));
- $this->assertFalse($handler->isHandling($this->getRecord(Logger::EMERGENCY)));
- }
-
- /**
- * @covers Monolog\Handler\FilterHandler::handle
- * @covers Monolog\Handler\FilterHandler::setAcceptedLevels
- * @covers Monolog\Handler\FilterHandler::isHandling
- */
- public function testHandleProcessOnlyNeededLevels()
- {
- $test = new TestHandler();
- $handler = new FilterHandler($test, Logger::INFO, Logger::NOTICE);
-
- $handler->handle($this->getRecord(Logger::DEBUG));
- $this->assertFalse($test->hasDebugRecords());
-
- $handler->handle($this->getRecord(Logger::INFO));
- $this->assertTrue($test->hasInfoRecords());
- $handler->handle($this->getRecord(Logger::NOTICE));
- $this->assertTrue($test->hasNoticeRecords());
-
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertFalse($test->hasWarningRecords());
- $handler->handle($this->getRecord(Logger::ERROR));
- $this->assertFalse($test->hasErrorRecords());
- $handler->handle($this->getRecord(Logger::CRITICAL));
- $this->assertFalse($test->hasCriticalRecords());
- $handler->handle($this->getRecord(Logger::ALERT));
- $this->assertFalse($test->hasAlertRecords());
- $handler->handle($this->getRecord(Logger::EMERGENCY));
- $this->assertFalse($test->hasEmergencyRecords());
-
- $test = new TestHandler();
- $handler = new FilterHandler($test, array(Logger::INFO, Logger::ERROR));
-
- $handler->handle($this->getRecord(Logger::DEBUG));
- $this->assertFalse($test->hasDebugRecords());
- $handler->handle($this->getRecord(Logger::INFO));
- $this->assertTrue($test->hasInfoRecords());
- $handler->handle($this->getRecord(Logger::NOTICE));
- $this->assertFalse($test->hasNoticeRecords());
- $handler->handle($this->getRecord(Logger::ERROR));
- $this->assertTrue($test->hasErrorRecords());
- $handler->handle($this->getRecord(Logger::CRITICAL));
- $this->assertFalse($test->hasCriticalRecords());
- }
-
- /**
- * @covers Monolog\Handler\FilterHandler::setAcceptedLevels
- * @covers Monolog\Handler\FilterHandler::getAcceptedLevels
- */
- public function testAcceptedLevelApi()
- {
- $test = new TestHandler();
- $handler = new FilterHandler($test);
-
- $levels = array(Logger::INFO, Logger::ERROR);
- $handler->setAcceptedLevels($levels);
- $this->assertSame($levels, $handler->getAcceptedLevels());
-
- $handler->setAcceptedLevels(array('info', 'error'));
- $this->assertSame($levels, $handler->getAcceptedLevels());
-
- $levels = array(Logger::CRITICAL, Logger::ALERT, Logger::EMERGENCY);
- $handler->setAcceptedLevels(Logger::CRITICAL, Logger::EMERGENCY);
- $this->assertSame($levels, $handler->getAcceptedLevels());
-
- $handler->setAcceptedLevels('critical', 'emergency');
- $this->assertSame($levels, $handler->getAcceptedLevels());
- }
-
- /**
- * @covers Monolog\Handler\FilterHandler::handle
- */
- public function testHandleUsesProcessors()
- {
- $test = new TestHandler();
- $handler = new FilterHandler($test, Logger::DEBUG, Logger::EMERGENCY);
- $handler->pushProcessor(
- function ($record) {
- $record['extra']['foo'] = true;
-
- return $record;
- }
- );
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertTrue($test->hasWarningRecords());
- $records = $test->getRecords();
- $this->assertTrue($records[0]['extra']['foo']);
- }
-
- /**
- * @covers Monolog\Handler\FilterHandler::handle
- */
- public function testHandleRespectsBubble()
- {
- $test = new TestHandler();
-
- $handler = new FilterHandler($test, Logger::INFO, Logger::NOTICE, false);
- $this->assertTrue($handler->handle($this->getRecord(Logger::INFO)));
- $this->assertFalse($handler->handle($this->getRecord(Logger::WARNING)));
-
- $handler = new FilterHandler($test, Logger::INFO, Logger::NOTICE, true);
- $this->assertFalse($handler->handle($this->getRecord(Logger::INFO)));
- $this->assertFalse($handler->handle($this->getRecord(Logger::WARNING)));
- }
-
- /**
- * @covers Monolog\Handler\FilterHandler::handle
- */
- public function testHandleWithCallback()
- {
- $test = new TestHandler();
- $handler = new FilterHandler(
- function ($record, $handler) use ($test) {
- return $test;
- }, Logger::INFO, Logger::NOTICE, false
- );
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- $this->assertFalse($test->hasDebugRecords());
- $this->assertTrue($test->hasInfoRecords());
- }
-
- /**
- * @covers Monolog\Handler\FilterHandler::handle
- * @expectedException \RuntimeException
- */
- public function testHandleWithBadCallbackThrowsException()
- {
- $handler = new FilterHandler(
- function ($record, $handler) {
- return 'foo';
- }
- );
- $handler->handle($this->getRecord(Logger::WARNING));
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FingersCrossedHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FingersCrossedHandlerTest.php
deleted file mode 100644
index b92bf437..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FingersCrossedHandlerTest.php
+++ /dev/null
@@ -1,279 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
-use Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy;
-use Psr\Log\LogLevel;
-
-class FingersCrossedHandlerTest extends TestCase
-{
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::__construct
- * @covers Monolog\Handler\FingersCrossedHandler::handle
- * @covers Monolog\Handler\FingersCrossedHandler::activate
- */
- public function testHandleBuffers()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- $this->assertFalse($test->hasDebugRecords());
- $this->assertFalse($test->hasInfoRecords());
- $handler->handle($this->getRecord(Logger::WARNING));
- $handler->close();
- $this->assertTrue($test->hasInfoRecords());
- $this->assertTrue(count($test->getRecords()) === 3);
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::handle
- * @covers Monolog\Handler\FingersCrossedHandler::activate
- */
- public function testHandleStopsBufferingAfterTrigger()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test);
- $handler->handle($this->getRecord(Logger::WARNING));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->close();
- $this->assertTrue($test->hasWarningRecords());
- $this->assertTrue($test->hasDebugRecords());
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::handle
- * @covers Monolog\Handler\FingersCrossedHandler::activate
- * @covers Monolog\Handler\FingersCrossedHandler::reset
- */
- public function testHandleRestartBufferingAfterReset()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test);
- $handler->handle($this->getRecord(Logger::WARNING));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->reset();
- $handler->handle($this->getRecord(Logger::INFO));
- $handler->close();
- $this->assertTrue($test->hasWarningRecords());
- $this->assertTrue($test->hasDebugRecords());
- $this->assertFalse($test->hasInfoRecords());
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::handle
- * @covers Monolog\Handler\FingersCrossedHandler::activate
- */
- public function testHandleRestartBufferingAfterBeingTriggeredWhenStopBufferingIsDisabled()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, Logger::WARNING, 0, false, false);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::WARNING));
- $handler->handle($this->getRecord(Logger::INFO));
- $handler->close();
- $this->assertTrue($test->hasWarningRecords());
- $this->assertTrue($test->hasDebugRecords());
- $this->assertFalse($test->hasInfoRecords());
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::handle
- * @covers Monolog\Handler\FingersCrossedHandler::activate
- */
- public function testHandleBufferLimit()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, Logger::WARNING, 2);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertTrue($test->hasWarningRecords());
- $this->assertTrue($test->hasInfoRecords());
- $this->assertFalse($test->hasDebugRecords());
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::handle
- * @covers Monolog\Handler\FingersCrossedHandler::activate
- */
- public function testHandleWithCallback()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler(function ($record, $handler) use ($test) {
- return $test;
- });
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- $this->assertFalse($test->hasDebugRecords());
- $this->assertFalse($test->hasInfoRecords());
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertTrue($test->hasInfoRecords());
- $this->assertTrue(count($test->getRecords()) === 3);
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::handle
- * @covers Monolog\Handler\FingersCrossedHandler::activate
- * @expectedException RuntimeException
- */
- public function testHandleWithBadCallbackThrowsException()
- {
- $handler = new FingersCrossedHandler(function ($record, $handler) {
- return 'foo';
- });
- $handler->handle($this->getRecord(Logger::WARNING));
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::isHandling
- */
- public function testIsHandlingAlways()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, Logger::ERROR);
- $this->assertTrue($handler->isHandling($this->getRecord(Logger::DEBUG)));
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::__construct
- * @covers Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy::__construct
- * @covers Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy::isHandlerActivated
- */
- public function testErrorLevelActivationStrategy()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, new ErrorLevelActivationStrategy(Logger::WARNING));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $this->assertFalse($test->hasDebugRecords());
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertTrue($test->hasDebugRecords());
- $this->assertTrue($test->hasWarningRecords());
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::__construct
- * @covers Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy::__construct
- * @covers Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy::isHandlerActivated
- */
- public function testErrorLevelActivationStrategyWithPsrLevel()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, new ErrorLevelActivationStrategy('warning'));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $this->assertFalse($test->hasDebugRecords());
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertTrue($test->hasDebugRecords());
- $this->assertTrue($test->hasWarningRecords());
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::__construct
- * @covers Monolog\Handler\FingersCrossedHandler::activate
- */
- public function testOverrideActivationStrategy()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, new ErrorLevelActivationStrategy('warning'));
- $handler->handle($this->getRecord(Logger::DEBUG));
- $this->assertFalse($test->hasDebugRecords());
- $handler->activate();
- $this->assertTrue($test->hasDebugRecords());
- $handler->handle($this->getRecord(Logger::INFO));
- $this->assertTrue($test->hasInfoRecords());
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy::__construct
- * @covers Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy::isHandlerActivated
- */
- public function testChannelLevelActivationStrategy()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, new ChannelLevelActivationStrategy(Logger::ERROR, array('othertest' => Logger::DEBUG)));
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertFalse($test->hasWarningRecords());
- $record = $this->getRecord(Logger::DEBUG);
- $record['channel'] = 'othertest';
- $handler->handle($record);
- $this->assertTrue($test->hasDebugRecords());
- $this->assertTrue($test->hasWarningRecords());
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy::__construct
- * @covers Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy::isHandlerActivated
- */
- public function testChannelLevelActivationStrategyWithPsrLevels()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, new ChannelLevelActivationStrategy('error', array('othertest' => 'debug')));
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertFalse($test->hasWarningRecords());
- $record = $this->getRecord(Logger::DEBUG);
- $record['channel'] = 'othertest';
- $handler->handle($record);
- $this->assertTrue($test->hasDebugRecords());
- $this->assertTrue($test->hasWarningRecords());
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::handle
- * @covers Monolog\Handler\FingersCrossedHandler::activate
- */
- public function testHandleUsesProcessors()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, Logger::INFO);
- $handler->pushProcessor(function ($record) {
- $record['extra']['foo'] = true;
-
- return $record;
- });
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertTrue($test->hasWarningRecords());
- $records = $test->getRecords();
- $this->assertTrue($records[0]['extra']['foo']);
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::close
- */
- public function testPassthruOnClose()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, new ErrorLevelActivationStrategy(Logger::WARNING), 0, true, true, Logger::INFO);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- $handler->close();
- $this->assertFalse($test->hasDebugRecords());
- $this->assertTrue($test->hasInfoRecords());
- }
-
- /**
- * @covers Monolog\Handler\FingersCrossedHandler::close
- */
- public function testPsrLevelPassthruOnClose()
- {
- $test = new TestHandler();
- $handler = new FingersCrossedHandler($test, new ErrorLevelActivationStrategy(Logger::WARNING), 0, true, true, LogLevel::INFO);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- $handler->close();
- $this->assertFalse($test->hasDebugRecords());
- $this->assertTrue($test->hasInfoRecords());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FirePHPHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FirePHPHandlerTest.php
deleted file mode 100644
index 0eb10a63..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FirePHPHandlerTest.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @covers Monolog\Handler\FirePHPHandler
- */
-class FirePHPHandlerTest extends TestCase
-{
- public function setUp()
- {
- TestFirePHPHandler::reset();
- $_SERVER['HTTP_USER_AGENT'] = 'Monolog Test; FirePHP/1.0';
- }
-
- public function testHeaders()
- {
- $handler = new TestFirePHPHandler;
- $handler->setFormatter($this->getIdentityFormatter());
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::WARNING));
-
- $expected = array(
- 'X-Wf-Protocol-1' => 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2',
- 'X-Wf-1-Structure-1' => 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1',
- 'X-Wf-1-Plugin-1' => 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3',
- 'X-Wf-1-1-1-1' => 'test',
- 'X-Wf-1-1-1-2' => 'test',
- );
-
- $this->assertEquals($expected, $handler->getHeaders());
- }
-
- public function testConcurrentHandlers()
- {
- $handler = new TestFirePHPHandler;
- $handler->setFormatter($this->getIdentityFormatter());
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::WARNING));
-
- $handler2 = new TestFirePHPHandler;
- $handler2->setFormatter($this->getIdentityFormatter());
- $handler2->handle($this->getRecord(Logger::DEBUG));
- $handler2->handle($this->getRecord(Logger::WARNING));
-
- $expected = array(
- 'X-Wf-Protocol-1' => 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2',
- 'X-Wf-1-Structure-1' => 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1',
- 'X-Wf-1-Plugin-1' => 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3',
- 'X-Wf-1-1-1-1' => 'test',
- 'X-Wf-1-1-1-2' => 'test',
- );
-
- $expected2 = array(
- 'X-Wf-1-1-1-3' => 'test',
- 'X-Wf-1-1-1-4' => 'test',
- );
-
- $this->assertEquals($expected, $handler->getHeaders());
- $this->assertEquals($expected2, $handler2->getHeaders());
- }
-}
-
-class TestFirePHPHandler extends FirePHPHandler
-{
- protected $headers = array();
-
- public static function reset()
- {
- self::$initialized = false;
- self::$sendHeaders = true;
- self::$messageIndex = 1;
- }
-
- protected function sendHeader($header, $content)
- {
- $this->headers[$header] = $content;
- }
-
- public function getHeaders()
- {
- return $this->headers;
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep
+++ /dev/null
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FleepHookHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FleepHookHandlerTest.php
deleted file mode 100644
index 91cdd312..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FleepHookHandlerTest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\LineFormatter;
-use Monolog\Logger;
-use Monolog\TestCase;
-
-/**
- * @coversDefaultClass \Monolog\Handler\FleepHookHandler
- */
-class FleepHookHandlerTest extends TestCase
-{
- /**
- * Default token to use in tests
- */
- const TOKEN = '123abc';
-
- /**
- * @var FleepHookHandler
- */
- private $handler;
-
- public function setUp()
- {
- parent::setUp();
-
- if (!extension_loaded('openssl')) {
- $this->markTestSkipped('This test requires openssl extension to run');
- }
-
- // Create instances of the handler and logger for convenience
- $this->handler = new FleepHookHandler(self::TOKEN);
- }
-
- /**
- * @covers ::__construct
- */
- public function testConstructorSetsExpectedDefaults()
- {
- $this->assertEquals(Logger::DEBUG, $this->handler->getLevel());
- $this->assertEquals(true, $this->handler->getBubble());
- }
-
- /**
- * @covers ::getDefaultFormatter
- */
- public function testHandlerUsesLineFormatterWhichIgnoresEmptyArrays()
- {
- $record = array(
- 'message' => 'msg',
- 'context' => array(),
- 'level' => Logger::DEBUG,
- 'level_name' => Logger::getLevelName(Logger::DEBUG),
- 'channel' => 'channel',
- 'datetime' => new \DateTime(),
- 'extra' => array(),
- );
-
- $expectedFormatter = new LineFormatter(null, null, true, true);
- $expected = $expectedFormatter->format($record);
-
- $handlerFormatter = $this->handler->getFormatter();
- $actual = $handlerFormatter->format($record);
-
- $this->assertEquals($expected, $actual, 'Empty context and extra arrays should not be rendered');
- }
-
- /**
- * @covers ::__construct
- */
- public function testConnectionStringisConstructedCorrectly()
- {
- $this->assertEquals('ssl://' . FleepHookHandler::FLEEP_HOST . ':443', $this->handler->getConnectionString());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FlowdockHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FlowdockHandlerTest.php
deleted file mode 100644
index 4b120d51..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/FlowdockHandlerTest.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\FlowdockFormatter;
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @author Dominik Liebler <liebler.dominik@gmail.com>
- * @see https://www.hipchat.com/docs/api
- */
-class FlowdockHandlerTest extends TestCase
-{
- /**
- * @var resource
- */
- private $res;
-
- /**
- * @var FlowdockHandler
- */
- private $handler;
-
- public function setUp()
- {
- if (!extension_loaded('openssl')) {
- $this->markTestSkipped('This test requires openssl to run');
- }
- }
-
- public function testWriteHeader()
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/POST \/v1\/messages\/team_inbox\/.* HTTP\/1.1\\r\\nHost: api.flowdock.com\\r\\nContent-Type: application\/json\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
-
- return $content;
- }
-
- /**
- * @depends testWriteHeader
- */
- public function testWriteContent($content)
- {
- $this->assertRegexp('/"source":"test_source"/', $content);
- $this->assertRegexp('/"from_address":"source@test\.com"/', $content);
- }
-
- private function createHandler($token = 'myToken')
- {
- $constructorArgs = array($token, Logger::DEBUG);
- $this->res = fopen('php://memory', 'a');
- $this->handler = $this->getMock(
- '\Monolog\Handler\FlowdockHandler',
- array('fsockopen', 'streamSetTimeout', 'closeSocket'),
- $constructorArgs
- );
-
- $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
- $reflectionProperty->setAccessible(true);
- $reflectionProperty->setValue($this->handler, 'localhost:1234');
-
- $this->handler->expects($this->any())
- ->method('fsockopen')
- ->will($this->returnValue($this->res));
- $this->handler->expects($this->any())
- ->method('streamSetTimeout')
- ->will($this->returnValue(true));
- $this->handler->expects($this->any())
- ->method('closeSocket')
- ->will($this->returnValue(true));
-
- $this->handler->setFormatter(new FlowdockFormatter('test_source', 'source@test.com'));
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerLegacyTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerLegacyTest.php
deleted file mode 100644
index 9d007b13..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerLegacyTest.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Gelf\Message;
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Formatter\GelfMessageFormatter;
-
-class GelfHandlerLegacyTest extends TestCase
-{
- public function setUp()
- {
- if (!class_exists('Gelf\MessagePublisher') || !class_exists('Gelf\Message')) {
- $this->markTestSkipped("mlehner/gelf-php not installed");
- }
-
- require_once __DIR__ . '/GelfMockMessagePublisher.php';
- }
-
- /**
- * @covers Monolog\Handler\GelfHandler::__construct
- */
- public function testConstruct()
- {
- $handler = new GelfHandler($this->getMessagePublisher());
- $this->assertInstanceOf('Monolog\Handler\GelfHandler', $handler);
- }
-
- protected function getHandler($messagePublisher)
- {
- $handler = new GelfHandler($messagePublisher);
-
- return $handler;
- }
-
- protected function getMessagePublisher()
- {
- return new GelfMockMessagePublisher('localhost');
- }
-
- public function testDebug()
- {
- $messagePublisher = $this->getMessagePublisher();
- $handler = $this->getHandler($messagePublisher);
-
- $record = $this->getRecord(Logger::DEBUG, "A test debug message");
- $handler->handle($record);
-
- $this->assertEquals(7, $messagePublisher->lastMessage->getLevel());
- $this->assertEquals('test', $messagePublisher->lastMessage->getFacility());
- $this->assertEquals($record['message'], $messagePublisher->lastMessage->getShortMessage());
- $this->assertEquals(null, $messagePublisher->lastMessage->getFullMessage());
- }
-
- public function testWarning()
- {
- $messagePublisher = $this->getMessagePublisher();
- $handler = $this->getHandler($messagePublisher);
-
- $record = $this->getRecord(Logger::WARNING, "A test warning message");
- $handler->handle($record);
-
- $this->assertEquals(4, $messagePublisher->lastMessage->getLevel());
- $this->assertEquals('test', $messagePublisher->lastMessage->getFacility());
- $this->assertEquals($record['message'], $messagePublisher->lastMessage->getShortMessage());
- $this->assertEquals(null, $messagePublisher->lastMessage->getFullMessage());
- }
-
- public function testInjectedGelfMessageFormatter()
- {
- $messagePublisher = $this->getMessagePublisher();
- $handler = $this->getHandler($messagePublisher);
-
- $handler->setFormatter(new GelfMessageFormatter('mysystem', 'EXT', 'CTX'));
-
- $record = $this->getRecord(Logger::WARNING, "A test warning message");
- $record['extra']['blarg'] = 'yep';
- $record['context']['from'] = 'logger';
- $handler->handle($record);
-
- $this->assertEquals('mysystem', $messagePublisher->lastMessage->getHost());
- $this->assertArrayHasKey('_EXTblarg', $messagePublisher->lastMessage->toArray());
- $this->assertArrayHasKey('_CTXfrom', $messagePublisher->lastMessage->toArray());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerTest.php
deleted file mode 100644
index 8cdd64f4..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerTest.php
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Gelf\Message;
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Formatter\GelfMessageFormatter;
-
-class GelfHandlerTest extends TestCase
-{
- public function setUp()
- {
- if (!class_exists('Gelf\Publisher') || !class_exists('Gelf\Message')) {
- $this->markTestSkipped("graylog2/gelf-php not installed");
- }
- }
-
- /**
- * @covers Monolog\Handler\GelfHandler::__construct
- */
- public function testConstruct()
- {
- $handler = new GelfHandler($this->getMessagePublisher());
- $this->assertInstanceOf('Monolog\Handler\GelfHandler', $handler);
- }
-
- protected function getHandler($messagePublisher)
- {
- $handler = new GelfHandler($messagePublisher);
-
- return $handler;
- }
-
- protected function getMessagePublisher()
- {
- return $this->getMock('Gelf\Publisher', array('publish'), array(), '', false);
- }
-
- public function testDebug()
- {
- $record = $this->getRecord(Logger::DEBUG, "A test debug message");
- $expectedMessage = new Message();
- $expectedMessage
- ->setLevel(7)
- ->setFacility("test")
- ->setShortMessage($record['message'])
- ->setTimestamp($record['datetime'])
- ;
-
- $messagePublisher = $this->getMessagePublisher();
- $messagePublisher->expects($this->once())
- ->method('publish')
- ->with($expectedMessage);
-
- $handler = $this->getHandler($messagePublisher);
-
- $handler->handle($record);
- }
-
- public function testWarning()
- {
- $record = $this->getRecord(Logger::WARNING, "A test warning message");
- $expectedMessage = new Message();
- $expectedMessage
- ->setLevel(4)
- ->setFacility("test")
- ->setShortMessage($record['message'])
- ->setTimestamp($record['datetime'])
- ;
-
- $messagePublisher = $this->getMessagePublisher();
- $messagePublisher->expects($this->once())
- ->method('publish')
- ->with($expectedMessage);
-
- $handler = $this->getHandler($messagePublisher);
-
- $handler->handle($record);
- }
-
- public function testInjectedGelfMessageFormatter()
- {
- $record = $this->getRecord(Logger::WARNING, "A test warning message");
- $record['extra']['blarg'] = 'yep';
- $record['context']['from'] = 'logger';
-
- $expectedMessage = new Message();
- $expectedMessage
- ->setLevel(4)
- ->setFacility("test")
- ->setHost("mysystem")
- ->setShortMessage($record['message'])
- ->setTimestamp($record['datetime'])
- ->setAdditional("EXTblarg", 'yep')
- ->setAdditional("CTXfrom", 'logger')
- ;
-
- $messagePublisher = $this->getMessagePublisher();
- $messagePublisher->expects($this->once())
- ->method('publish')
- ->with($expectedMessage);
-
- $handler = $this->getHandler($messagePublisher);
- $handler->setFormatter(new GelfMessageFormatter('mysystem', 'EXT', 'CTX'));
- $handler->handle($record);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfMockMessagePublisher.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfMockMessagePublisher.php
deleted file mode 100644
index 873d92fb..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GelfMockMessagePublisher.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Gelf\MessagePublisher;
-use Gelf\Message;
-
-class GelfMockMessagePublisher extends MessagePublisher
-{
- public function publish(Message $message)
- {
- $this->lastMessage = $message;
- }
-
- public $lastMessage = null;
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GroupHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GroupHandlerTest.php
deleted file mode 100644
index a1b86176..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/GroupHandlerTest.php
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class GroupHandlerTest extends TestCase
-{
- /**
- * @covers Monolog\Handler\GroupHandler::__construct
- * @expectedException InvalidArgumentException
- */
- public function testConstructorOnlyTakesHandler()
- {
- new GroupHandler(array(new TestHandler(), "foo"));
- }
-
- /**
- * @covers Monolog\Handler\GroupHandler::__construct
- * @covers Monolog\Handler\GroupHandler::handle
- */
- public function testHandle()
- {
- $testHandlers = array(new TestHandler(), new TestHandler());
- $handler = new GroupHandler($testHandlers);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- foreach ($testHandlers as $test) {
- $this->assertTrue($test->hasDebugRecords());
- $this->assertTrue($test->hasInfoRecords());
- $this->assertTrue(count($test->getRecords()) === 2);
- }
- }
-
- /**
- * @covers Monolog\Handler\GroupHandler::handleBatch
- */
- public function testHandleBatch()
- {
- $testHandlers = array(new TestHandler(), new TestHandler());
- $handler = new GroupHandler($testHandlers);
- $handler->handleBatch(array($this->getRecord(Logger::DEBUG), $this->getRecord(Logger::INFO)));
- foreach ($testHandlers as $test) {
- $this->assertTrue($test->hasDebugRecords());
- $this->assertTrue($test->hasInfoRecords());
- $this->assertTrue(count($test->getRecords()) === 2);
- }
- }
-
- /**
- * @covers Monolog\Handler\GroupHandler::isHandling
- */
- public function testIsHandling()
- {
- $testHandlers = array(new TestHandler(Logger::ERROR), new TestHandler(Logger::WARNING));
- $handler = new GroupHandler($testHandlers);
- $this->assertTrue($handler->isHandling($this->getRecord(Logger::ERROR)));
- $this->assertTrue($handler->isHandling($this->getRecord(Logger::WARNING)));
- $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
- }
-
- /**
- * @covers Monolog\Handler\GroupHandler::handle
- */
- public function testHandleUsesProcessors()
- {
- $test = new TestHandler();
- $handler = new GroupHandler(array($test));
- $handler->pushProcessor(function ($record) {
- $record['extra']['foo'] = true;
-
- return $record;
- });
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertTrue($test->hasWarningRecords());
- $records = $test->getRecords();
- $this->assertTrue($records[0]['extra']['foo']);
- }
-
- /**
- * @covers Monolog\Handler\GroupHandler::handle
- */
- public function testHandleBatchUsesProcessors()
- {
- $testHandlers = array(new TestHandler(), new TestHandler());
- $handler = new GroupHandler($testHandlers);
- $handler->pushProcessor(function ($record) {
- $record['extra']['foo'] = true;
-
- return $record;
- });
- $handler->handleBatch(array($this->getRecord(Logger::DEBUG), $this->getRecord(Logger::INFO)));
- foreach ($testHandlers as $test) {
- $this->assertTrue($test->hasDebugRecords());
- $this->assertTrue($test->hasInfoRecords());
- $this->assertTrue(count($test->getRecords()) === 2);
- $records = $test->getRecords();
- $this->assertTrue($records[0]['extra']['foo']);
- $this->assertTrue($records[1]['extra']['foo']);
- }
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/HandlerWrapperTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/HandlerWrapperTest.php
deleted file mode 100644
index d8d0452c..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/HandlerWrapperTest.php
+++ /dev/null
@@ -1,130 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-
-/**
- * @author Alexey Karapetov <alexey@karapetov.com>
- */
-class HandlerWrapperTest extends TestCase
-{
- /**
- * @var HandlerWrapper
- */
- private $wrapper;
-
- private $handler;
-
- public function setUp()
- {
- parent::setUp();
- $this->handler = $this->getMock('Monolog\\Handler\\HandlerInterface');
- $this->wrapper = new HandlerWrapper($this->handler);
- }
-
- /**
- * @return array
- */
- public function trueFalseDataProvider()
- {
- return array(
- array(true),
- array(false),
- );
- }
-
- /**
- * @param $result
- * @dataProvider trueFalseDataProvider
- */
- public function testIsHandling($result)
- {
- $record = $this->getRecord();
- $this->handler->expects($this->once())
- ->method('isHandling')
- ->with($record)
- ->willReturn($result);
-
- $this->assertEquals($result, $this->wrapper->isHandling($record));
- }
-
- /**
- * @param $result
- * @dataProvider trueFalseDataProvider
- */
- public function testHandle($result)
- {
- $record = $this->getRecord();
- $this->handler->expects($this->once())
- ->method('handle')
- ->with($record)
- ->willReturn($result);
-
- $this->assertEquals($result, $this->wrapper->handle($record));
- }
-
- /**
- * @param $result
- * @dataProvider trueFalseDataProvider
- */
- public function testHandleBatch($result)
- {
- $records = $this->getMultipleRecords();
- $this->handler->expects($this->once())
- ->method('handleBatch')
- ->with($records)
- ->willReturn($result);
-
- $this->assertEquals($result, $this->wrapper->handleBatch($records));
- }
-
- public function testPushProcessor()
- {
- $processor = function () {};
- $this->handler->expects($this->once())
- ->method('pushProcessor')
- ->with($processor);
-
- $this->assertEquals($this->wrapper, $this->wrapper->pushProcessor($processor));
- }
-
- public function testPopProcessor()
- {
- $processor = function () {};
- $this->handler->expects($this->once())
- ->method('popProcessor')
- ->willReturn($processor);
-
- $this->assertEquals($processor, $this->wrapper->popProcessor());
- }
-
- public function testSetFormatter()
- {
- $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
- $this->handler->expects($this->once())
- ->method('setFormatter')
- ->with($formatter);
-
- $this->assertEquals($this->wrapper, $this->wrapper->setFormatter($formatter));
- }
-
- public function testGetFormatter()
- {
- $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
- $this->handler->expects($this->once())
- ->method('getFormatter')
- ->willReturn($formatter);
-
- $this->assertEquals($formatter, $this->wrapper->getFormatter());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/HipChatHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/HipChatHandlerTest.php
deleted file mode 100644
index 52dc9dac..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/HipChatHandlerTest.php
+++ /dev/null
@@ -1,279 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @author Rafael Dohms <rafael@doh.ms>
- * @see https://www.hipchat.com/docs/api
- */
-class HipChatHandlerTest extends TestCase
-{
- private $res;
- /** @var HipChatHandler */
- private $handler;
-
- public function testWriteHeader()
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/POST \/v1\/rooms\/message\?format=json&auth_token=.* HTTP\/1.1\\r\\nHost: api.hipchat.com\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
-
- return $content;
- }
-
- public function testWriteCustomHostHeader()
- {
- $this->createHandler('myToken', 'room1', 'Monolog', true, 'hipchat.foo.bar');
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/POST \/v1\/rooms\/message\?format=json&auth_token=.* HTTP\/1.1\\r\\nHost: hipchat.foo.bar\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
-
- return $content;
- }
-
- public function testWriteV2()
- {
- $this->createHandler('myToken', 'room1', 'Monolog', false, 'hipchat.foo.bar', 'v2');
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/POST \/v2\/room\/room1\/notification\?auth_token=.* HTTP\/1.1\\r\\nHost: hipchat.foo.bar\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
-
- return $content;
- }
-
- public function testWriteV2Notify()
- {
- $this->createHandler('myToken', 'room1', 'Monolog', true, 'hipchat.foo.bar', 'v2');
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/POST \/v2\/room\/room1\/notification\?auth_token=.* HTTP\/1.1\\r\\nHost: hipchat.foo.bar\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
-
- return $content;
- }
-
- public function testRoomSpaces()
- {
- $this->createHandler('myToken', 'room name', 'Monolog', false, 'hipchat.foo.bar', 'v2');
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/POST \/v2\/room\/room%20name\/notification\?auth_token=.* HTTP\/1.1\\r\\nHost: hipchat.foo.bar\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
-
- return $content;
- }
-
- /**
- * @depends testWriteHeader
- */
- public function testWriteContent($content)
- {
- $this->assertRegexp('/notify=0&message=test1&message_format=text&color=red&room_id=room1&from=Monolog$/', $content);
- }
-
- public function testWriteContentV1WithoutName()
- {
- $this->createHandler('myToken', 'room1', null, false, 'hipchat.foo.bar', 'v1');
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/notify=0&message=test1&message_format=text&color=red&room_id=room1&from=$/', $content);
-
- return $content;
- }
-
- /**
- * @depends testWriteCustomHostHeader
- */
- public function testWriteContentNotify($content)
- {
- $this->assertRegexp('/notify=1&message=test1&message_format=text&color=red&room_id=room1&from=Monolog$/', $content);
- }
-
- /**
- * @depends testWriteV2
- */
- public function testWriteContentV2($content)
- {
- $this->assertRegexp('/notify=false&message=test1&message_format=text&color=red&from=Monolog$/', $content);
- }
-
- /**
- * @depends testWriteV2Notify
- */
- public function testWriteContentV2Notify($content)
- {
- $this->assertRegexp('/notify=true&message=test1&message_format=text&color=red&from=Monolog$/', $content);
- }
-
- public function testWriteContentV2WithoutName()
- {
- $this->createHandler('myToken', 'room1', null, false, 'hipchat.foo.bar', 'v2');
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/notify=false&message=test1&message_format=text&color=red$/', $content);
-
- return $content;
- }
-
- public function testWriteWithComplexMessage()
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'Backup of database "example" finished in 16 minutes.'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/message=Backup\+of\+database\+%22example%22\+finished\+in\+16\+minutes\./', $content);
- }
-
- public function testWriteTruncatesLongMessage()
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord(Logger::CRITICAL, str_repeat('abcde', 2000)));
- fseek($this->res, 0);
- $content = fread($this->res, 12000);
-
- $this->assertRegexp('/message='.str_repeat('abcde', 1900).'\+%5Btruncated%5D/', $content);
- }
-
- /**
- * @dataProvider provideLevelColors
- */
- public function testWriteWithErrorLevelsAndColors($level, $expectedColor)
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord($level, 'Backup of database "example" finished in 16 minutes.'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/color='.$expectedColor.'/', $content);
- }
-
- public function provideLevelColors()
- {
- return array(
- array(Logger::DEBUG, 'gray'),
- array(Logger::INFO, 'green'),
- array(Logger::WARNING, 'yellow'),
- array(Logger::ERROR, 'red'),
- array(Logger::CRITICAL, 'red'),
- array(Logger::ALERT, 'red'),
- array(Logger::EMERGENCY,'red'),
- array(Logger::NOTICE, 'green'),
- );
- }
-
- /**
- * @dataProvider provideBatchRecords
- */
- public function testHandleBatch($records, $expectedColor)
- {
- $this->createHandler();
-
- $this->handler->handleBatch($records);
-
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/color='.$expectedColor.'/', $content);
- }
-
- public function provideBatchRecords()
- {
- return array(
- array(
- array(
- array('level' => Logger::WARNING, 'message' => 'Oh bugger!', 'level_name' => 'warning', 'datetime' => new \DateTime()),
- array('level' => Logger::NOTICE, 'message' => 'Something noticeable happened.', 'level_name' => 'notice', 'datetime' => new \DateTime()),
- array('level' => Logger::CRITICAL, 'message' => 'Everything is broken!', 'level_name' => 'critical', 'datetime' => new \DateTime()),
- ),
- 'red',
- ),
- array(
- array(
- array('level' => Logger::WARNING, 'message' => 'Oh bugger!', 'level_name' => 'warning', 'datetime' => new \DateTime()),
- array('level' => Logger::NOTICE, 'message' => 'Something noticeable happened.', 'level_name' => 'notice', 'datetime' => new \DateTime()),
- ),
- 'yellow',
- ),
- array(
- array(
- array('level' => Logger::DEBUG, 'message' => 'Just debugging.', 'level_name' => 'debug', 'datetime' => new \DateTime()),
- array('level' => Logger::NOTICE, 'message' => 'Something noticeable happened.', 'level_name' => 'notice', 'datetime' => new \DateTime()),
- ),
- 'green',
- ),
- array(
- array(
- array('level' => Logger::DEBUG, 'message' => 'Just debugging.', 'level_name' => 'debug', 'datetime' => new \DateTime()),
- ),
- 'gray',
- ),
- );
- }
-
- private function createHandler($token = 'myToken', $room = 'room1', $name = 'Monolog', $notify = false, $host = 'api.hipchat.com', $version = 'v1')
- {
- $constructorArgs = array($token, $room, $name, $notify, Logger::DEBUG, true, true, 'text', $host, $version);
- $this->res = fopen('php://memory', 'a');
- $this->handler = $this->getMock(
- '\Monolog\Handler\HipChatHandler',
- array('fsockopen', 'streamSetTimeout', 'closeSocket'),
- $constructorArgs
- );
-
- $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
- $reflectionProperty->setAccessible(true);
- $reflectionProperty->setValue($this->handler, 'localhost:1234');
-
- $this->handler->expects($this->any())
- ->method('fsockopen')
- ->will($this->returnValue($this->res));
- $this->handler->expects($this->any())
- ->method('streamSetTimeout')
- ->will($this->returnValue(true));
- $this->handler->expects($this->any())
- ->method('closeSocket')
- ->will($this->returnValue(true));
-
- $this->handler->setFormatter($this->getIdentityFormatter());
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testCreateWithTooLongName()
- {
- $hipChatHandler = new HipChatHandler('token', 'room', 'SixteenCharsHere');
- }
-
- public function testCreateWithTooLongNameV2()
- {
- // creating a handler with too long of a name but using the v2 api doesn't matter.
- $hipChatHandler = new HipChatHandler('token', 'room', 'SixteenCharsHere', false, Logger::CRITICAL, true, true, 'test', 'api.hipchat.com', 'v2');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/LogEntriesHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/LogEntriesHandlerTest.php
deleted file mode 100644
index b2deb40a..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/LogEntriesHandlerTest.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @author Robert Kaufmann III <rok3@rok3.me>
- */
-class LogEntriesHandlerTest extends TestCase
-{
- /**
- * @var resource
- */
- private $res;
-
- /**
- * @var LogEntriesHandler
- */
- private $handler;
-
- public function testWriteContent()
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'Critical write test'));
-
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/testToken \[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\] test.CRITICAL: Critical write test/', $content);
- }
-
- public function testWriteBatchContent()
- {
- $records = array(
- $this->getRecord(),
- $this->getRecord(),
- $this->getRecord(),
- );
- $this->createHandler();
- $this->handler->handleBatch($records);
-
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/(testToken \[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\] .* \[\] \[\]\n){3}/', $content);
- }
-
- private function createHandler()
- {
- $useSSL = extension_loaded('openssl');
- $args = array('testToken', $useSSL, Logger::DEBUG, true);
- $this->res = fopen('php://memory', 'a');
- $this->handler = $this->getMock(
- '\Monolog\Handler\LogEntriesHandler',
- array('fsockopen', 'streamSetTimeout', 'closeSocket'),
- $args
- );
-
- $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
- $reflectionProperty->setAccessible(true);
- $reflectionProperty->setValue($this->handler, 'localhost:1234');
-
- $this->handler->expects($this->any())
- ->method('fsockopen')
- ->will($this->returnValue($this->res));
- $this->handler->expects($this->any())
- ->method('streamSetTimeout')
- ->will($this->returnValue(true));
- $this->handler->expects($this->any())
- ->method('closeSocket')
- ->will($this->returnValue(true));
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MailHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MailHandlerTest.php
deleted file mode 100644
index 6754f3d6..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MailHandlerTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\TestCase;
-
-class MailHandlerTest extends TestCase
-{
- /**
- * @covers Monolog\Handler\MailHandler::handleBatch
- */
- public function testHandleBatch()
- {
- $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
- $formatter->expects($this->once())
- ->method('formatBatch'); // Each record is formatted
-
- $handler = $this->getMockForAbstractClass('Monolog\\Handler\\MailHandler');
- $handler->expects($this->once())
- ->method('send');
- $handler->expects($this->never())
- ->method('write'); // write is for individual records
-
- $handler->setFormatter($formatter);
-
- $handler->handleBatch($this->getMultipleRecords());
- }
-
- /**
- * @covers Monolog\Handler\MailHandler::handleBatch
- */
- public function testHandleBatchNotSendsMailIfMessagesAreBelowLevel()
- {
- $records = array(
- $this->getRecord(Logger::DEBUG, 'debug message 1'),
- $this->getRecord(Logger::DEBUG, 'debug message 2'),
- $this->getRecord(Logger::INFO, 'information'),
- );
-
- $handler = $this->getMockForAbstractClass('Monolog\\Handler\\MailHandler');
- $handler->expects($this->never())
- ->method('send');
- $handler->setLevel(Logger::ERROR);
-
- $handler->handleBatch($records);
- }
-
- /**
- * @covers Monolog\Handler\MailHandler::write
- */
- public function testHandle()
- {
- $handler = $this->getMockForAbstractClass('Monolog\\Handler\\MailHandler');
-
- $record = $this->getRecord();
- $records = array($record);
- $records[0]['formatted'] = '['.$record['datetime']->format('Y-m-d H:i:s').'] test.WARNING: test [] []'."\n";
-
- $handler->expects($this->once())
- ->method('send')
- ->with($records[0]['formatted'], $records);
-
- $handler->handle($record);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MockRavenClient.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MockRavenClient.php
deleted file mode 100644
index a0833225..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MockRavenClient.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Raven_Client;
-
-class MockRavenClient extends Raven_Client
-{
- public function capture($data, $stack, $vars = null)
- {
- $data = array_merge($this->get_user_data(), $data);
- $this->lastData = $data;
- $this->lastStack = $stack;
- }
-
- public $lastData;
- public $lastStack;
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MongoDBHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MongoDBHandlerTest.php
deleted file mode 100644
index 0fdef63a..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/MongoDBHandlerTest.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class MongoDBHandlerTest extends TestCase
-{
- /**
- * @expectedException InvalidArgumentException
- */
- public function testConstructorShouldThrowExceptionForInvalidMongo()
- {
- new MongoDBHandler(new \stdClass(), 'DB', 'Collection');
- }
-
- public function testHandle()
- {
- $mongo = $this->getMock('Mongo', array('selectCollection'), array(), '', false);
- $collection = $this->getMock('stdClass', array('save'));
-
- $mongo->expects($this->once())
- ->method('selectCollection')
- ->with('DB', 'Collection')
- ->will($this->returnValue($collection));
-
- $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
- $expected = array(
- 'message' => 'test',
- 'context' => array('data' => '[object] (stdClass: {})', 'foo' => 34),
- 'level' => Logger::WARNING,
- 'level_name' => 'WARNING',
- 'channel' => 'test',
- 'datetime' => $record['datetime']->format('Y-m-d H:i:s'),
- 'extra' => array(),
- );
-
- $collection->expects($this->once())
- ->method('save')
- ->with($expected);
-
- $handler = new MongoDBHandler($mongo, 'DB', 'Collection');
- $handler->handle($record);
- }
-}
-
-if (!class_exists('Mongo')) {
- class Mongo
- {
- public function selectCollection()
- {
- }
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php
deleted file mode 100644
index ddf545db..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php
+++ /dev/null
@@ -1,111 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use InvalidArgumentException;
-
-function mail($to, $subject, $message, $additional_headers = null, $additional_parameters = null)
-{
- $GLOBALS['mail'][] = func_get_args();
-}
-
-class NativeMailerHandlerTest extends TestCase
-{
- protected function setUp()
- {
- $GLOBALS['mail'] = array();
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testConstructorHeaderInjection()
- {
- $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', "receiver@example.org\r\nFrom: faked@attacker.org");
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testSetterHeaderInjection()
- {
- $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
- $mailer->addHeader("Content-Type: text/html\r\nFrom: faked@attacker.org");
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testSetterArrayHeaderInjection()
- {
- $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
- $mailer->addHeader(array("Content-Type: text/html\r\nFrom: faked@attacker.org"));
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testSetterContentTypeInjection()
- {
- $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
- $mailer->setContentType("text/html\r\nFrom: faked@attacker.org");
- }
-
- /**
- * @expectedException InvalidArgumentException
- */
- public function testSetterEncodingInjection()
- {
- $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
- $mailer->setEncoding("utf-8\r\nFrom: faked@attacker.org");
- }
-
- public function testSend()
- {
- $to = 'spammer@example.org';
- $subject = 'dear victim';
- $from = 'receiver@example.org';
-
- $mailer = new NativeMailerHandler($to, $subject, $from);
- $mailer->handleBatch(array());
-
- // batch is empty, nothing sent
- $this->assertEmpty($GLOBALS['mail']);
-
- // non-empty batch
- $mailer->handle($this->getRecord(Logger::ERROR, "Foo\nBar\r\n\r\nBaz"));
- $this->assertNotEmpty($GLOBALS['mail']);
- $this->assertInternalType('array', $GLOBALS['mail']);
- $this->assertArrayHasKey('0', $GLOBALS['mail']);
- $params = $GLOBALS['mail'][0];
- $this->assertCount(5, $params);
- $this->assertSame($to, $params[0]);
- $this->assertSame($subject, $params[1]);
- $this->assertStringEndsWith(" test.ERROR: Foo Bar Baz [] []\n", $params[2]);
- $this->assertSame("From: $from\r\nContent-type: text/plain; charset=utf-8\r\n", $params[3]);
- $this->assertSame('', $params[4]);
- }
-
- public function testMessageSubjectFormatting()
- {
- $mailer = new NativeMailerHandler('to@example.org', 'Alert: %level_name% %message%', 'from@example.org');
- $mailer->handle($this->getRecord(Logger::ERROR, "Foo\nBar\r\n\r\nBaz"));
- $this->assertNotEmpty($GLOBALS['mail']);
- $this->assertInternalType('array', $GLOBALS['mail']);
- $this->assertArrayHasKey('0', $GLOBALS['mail']);
- $params = $GLOBALS['mail'][0];
- $this->assertCount(5, $params);
- $this->assertSame('Alert: ERROR Foo Bar Baz', $params[1]);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php
deleted file mode 100644
index 4d3a615f..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php
+++ /dev/null
@@ -1,200 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Formatter\LineFormatter;
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class NewRelicHandlerTest extends TestCase
-{
- public static $appname;
- public static $customParameters;
- public static $transactionName;
-
- public function setUp()
- {
- self::$appname = null;
- self::$customParameters = array();
- self::$transactionName = null;
- }
-
- /**
- * @expectedException Monolog\Handler\MissingExtensionException
- */
- public function testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded()
- {
- $handler = new StubNewRelicHandlerWithoutExtension();
- $handler->handle($this->getRecord(Logger::ERROR));
- }
-
- public function testThehandlerCanHandleTheRecord()
- {
- $handler = new StubNewRelicHandler();
- $handler->handle($this->getRecord(Logger::ERROR));
- }
-
- public function testThehandlerCanAddContextParamsToTheNewRelicTrace()
- {
- $handler = new StubNewRelicHandler();
- $handler->handle($this->getRecord(Logger::ERROR, 'log message', array('a' => 'b')));
- $this->assertEquals(array('context_a' => 'b'), self::$customParameters);
- }
-
- public function testThehandlerCanAddExplodedContextParamsToTheNewRelicTrace()
- {
- $handler = new StubNewRelicHandler(Logger::ERROR, true, self::$appname, true);
- $handler->handle($this->getRecord(
- Logger::ERROR,
- 'log message',
- array('a' => array('key1' => 'value1', 'key2' => 'value2'))
- ));
- $this->assertEquals(
- array('context_a_key1' => 'value1', 'context_a_key2' => 'value2'),
- self::$customParameters
- );
- }
-
- public function testThehandlerCanAddExtraParamsToTheNewRelicTrace()
- {
- $record = $this->getRecord(Logger::ERROR, 'log message');
- $record['extra'] = array('c' => 'd');
-
- $handler = new StubNewRelicHandler();
- $handler->handle($record);
-
- $this->assertEquals(array('extra_c' => 'd'), self::$customParameters);
- }
-
- public function testThehandlerCanAddExplodedExtraParamsToTheNewRelicTrace()
- {
- $record = $this->getRecord(Logger::ERROR, 'log message');
- $record['extra'] = array('c' => array('key1' => 'value1', 'key2' => 'value2'));
-
- $handler = new StubNewRelicHandler(Logger::ERROR, true, self::$appname, true);
- $handler->handle($record);
-
- $this->assertEquals(
- array('extra_c_key1' => 'value1', 'extra_c_key2' => 'value2'),
- self::$customParameters
- );
- }
-
- public function testThehandlerCanAddExtraContextAndParamsToTheNewRelicTrace()
- {
- $record = $this->getRecord(Logger::ERROR, 'log message', array('a' => 'b'));
- $record['extra'] = array('c' => 'd');
-
- $handler = new StubNewRelicHandler();
- $handler->handle($record);
-
- $expected = array(
- 'context_a' => 'b',
- 'extra_c' => 'd',
- );
-
- $this->assertEquals($expected, self::$customParameters);
- }
-
- public function testThehandlerCanHandleTheRecordsFormattedUsingTheLineFormatter()
- {
- $handler = new StubNewRelicHandler();
- $handler->setFormatter(new LineFormatter());
- $handler->handle($this->getRecord(Logger::ERROR));
- }
-
- public function testTheAppNameIsNullByDefault()
- {
- $handler = new StubNewRelicHandler();
- $handler->handle($this->getRecord(Logger::ERROR, 'log message'));
-
- $this->assertEquals(null, self::$appname);
- }
-
- public function testTheAppNameCanBeInjectedFromtheConstructor()
- {
- $handler = new StubNewRelicHandler(Logger::DEBUG, false, 'myAppName');
- $handler->handle($this->getRecord(Logger::ERROR, 'log message'));
-
- $this->assertEquals('myAppName', self::$appname);
- }
-
- public function testTheAppNameCanBeOverriddenFromEachLog()
- {
- $handler = new StubNewRelicHandler(Logger::DEBUG, false, 'myAppName');
- $handler->handle($this->getRecord(Logger::ERROR, 'log message', array('appname' => 'logAppName')));
-
- $this->assertEquals('logAppName', self::$appname);
- }
-
- public function testTheTransactionNameIsNullByDefault()
- {
- $handler = new StubNewRelicHandler();
- $handler->handle($this->getRecord(Logger::ERROR, 'log message'));
-
- $this->assertEquals(null, self::$transactionName);
- }
-
- public function testTheTransactionNameCanBeInjectedFromTheConstructor()
- {
- $handler = new StubNewRelicHandler(Logger::DEBUG, false, null, false, 'myTransaction');
- $handler->handle($this->getRecord(Logger::ERROR, 'log message'));
-
- $this->assertEquals('myTransaction', self::$transactionName);
- }
-
- public function testTheTransactionNameCanBeOverriddenFromEachLog()
- {
- $handler = new StubNewRelicHandler(Logger::DEBUG, false, null, false, 'myTransaction');
- $handler->handle($this->getRecord(Logger::ERROR, 'log message', array('transaction_name' => 'logTransactName')));
-
- $this->assertEquals('logTransactName', self::$transactionName);
- }
-}
-
-class StubNewRelicHandlerWithoutExtension extends NewRelicHandler
-{
- protected function isNewRelicEnabled()
- {
- return false;
- }
-}
-
-class StubNewRelicHandler extends NewRelicHandler
-{
- protected function isNewRelicEnabled()
- {
- return true;
- }
-}
-
-function newrelic_notice_error()
-{
- return true;
-}
-
-function newrelic_set_appname($appname)
-{
- return NewRelicHandlerTest::$appname = $appname;
-}
-
-function newrelic_name_transaction($transactionName)
-{
- return NewRelicHandlerTest::$transactionName = $transactionName;
-}
-
-function newrelic_add_custom_parameter($key, $value)
-{
- NewRelicHandlerTest::$customParameters[$key] = $value;
-
- return true;
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.php
deleted file mode 100644
index 292df78c..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @covers Monolog\Handler\NullHandler::handle
- */
-class NullHandlerTest extends TestCase
-{
- public function testHandle()
- {
- $handler = new NullHandler();
- $this->assertTrue($handler->handle($this->getRecord()));
- }
-
- public function testHandleLowerLevelRecord()
- {
- $handler = new NullHandler(Logger::WARNING);
- $this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG)));
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PHPConsoleHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PHPConsoleHandlerTest.php
deleted file mode 100644
index 152573ef..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PHPConsoleHandlerTest.php
+++ /dev/null
@@ -1,273 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Exception;
-use Monolog\ErrorHandler;
-use Monolog\Logger;
-use Monolog\TestCase;
-use PhpConsole\Connector;
-use PhpConsole\Dispatcher\Debug as DebugDispatcher;
-use PhpConsole\Dispatcher\Errors as ErrorDispatcher;
-use PhpConsole\Handler;
-use PHPUnit_Framework_MockObject_MockObject;
-
-/**
- * @covers Monolog\Handler\PHPConsoleHandler
- * @author Sergey Barbushin https://www.linkedin.com/in/barbushin
- */
-class PHPConsoleHandlerTest extends TestCase
-{
- /** @var Connector|PHPUnit_Framework_MockObject_MockObject */
- protected $connector;
- /** @var DebugDispatcher|PHPUnit_Framework_MockObject_MockObject */
- protected $debugDispatcher;
- /** @var ErrorDispatcher|PHPUnit_Framework_MockObject_MockObject */
- protected $errorDispatcher;
-
- protected function setUp()
- {
- if (!class_exists('PhpConsole\Connector')) {
- $this->markTestSkipped('PHP Console library not found. See https://github.com/barbushin/php-console#installation');
- }
- $this->connector = $this->initConnectorMock();
-
- $this->debugDispatcher = $this->initDebugDispatcherMock($this->connector);
- $this->connector->setDebugDispatcher($this->debugDispatcher);
-
- $this->errorDispatcher = $this->initErrorDispatcherMock($this->connector);
- $this->connector->setErrorsDispatcher($this->errorDispatcher);
- }
-
- protected function initDebugDispatcherMock(Connector $connector)
- {
- return $this->getMockBuilder('PhpConsole\Dispatcher\Debug')
- ->disableOriginalConstructor()
- ->setMethods(array('dispatchDebug'))
- ->setConstructorArgs(array($connector, $connector->getDumper()))
- ->getMock();
- }
-
- protected function initErrorDispatcherMock(Connector $connector)
- {
- return $this->getMockBuilder('PhpConsole\Dispatcher\Errors')
- ->disableOriginalConstructor()
- ->setMethods(array('dispatchError', 'dispatchException'))
- ->setConstructorArgs(array($connector, $connector->getDumper()))
- ->getMock();
- }
-
- protected function initConnectorMock()
- {
- $connector = $this->getMockBuilder('PhpConsole\Connector')
- ->disableOriginalConstructor()
- ->setMethods(array(
- 'sendMessage',
- 'onShutDown',
- 'isActiveClient',
- 'setSourcesBasePath',
- 'setServerEncoding',
- 'setPassword',
- 'enableSslOnlyMode',
- 'setAllowedIpMasks',
- 'setHeadersLimit',
- 'startEvalRequestsListener',
- ))
- ->getMock();
-
- $connector->expects($this->any())
- ->method('isActiveClient')
- ->will($this->returnValue(true));
-
- return $connector;
- }
-
- protected function getHandlerDefaultOption($name)
- {
- $handler = new PHPConsoleHandler(array(), $this->connector);
- $options = $handler->getOptions();
-
- return $options[$name];
- }
-
- protected function initLogger($handlerOptions = array(), $level = Logger::DEBUG)
- {
- return new Logger('test', array(
- new PHPConsoleHandler($handlerOptions, $this->connector, $level),
- ));
- }
-
- public function testInitWithDefaultConnector()
- {
- $handler = new PHPConsoleHandler();
- $this->assertEquals(spl_object_hash(Connector::getInstance()), spl_object_hash($handler->getConnector()));
- }
-
- public function testInitWithCustomConnector()
- {
- $handler = new PHPConsoleHandler(array(), $this->connector);
- $this->assertEquals(spl_object_hash($this->connector), spl_object_hash($handler->getConnector()));
- }
-
- public function testDebug()
- {
- $this->debugDispatcher->expects($this->once())->method('dispatchDebug')->with($this->equalTo('test'));
- $this->initLogger()->addDebug('test');
- }
-
- public function testDebugContextInMessage()
- {
- $message = 'test';
- $tag = 'tag';
- $context = array($tag, 'custom' => mt_rand());
- $expectedMessage = $message . ' ' . json_encode(array_slice($context, 1));
- $this->debugDispatcher->expects($this->once())->method('dispatchDebug')->with(
- $this->equalTo($expectedMessage),
- $this->equalTo($tag)
- );
- $this->initLogger()->addDebug($message, $context);
- }
-
- public function testDebugTags($tagsContextKeys = null)
- {
- $expectedTags = mt_rand();
- $logger = $this->initLogger($tagsContextKeys ? array('debugTagsKeysInContext' => $tagsContextKeys) : array());
- if (!$tagsContextKeys) {
- $tagsContextKeys = $this->getHandlerDefaultOption('debugTagsKeysInContext');
- }
- foreach ($tagsContextKeys as $key) {
- $debugDispatcher = $this->initDebugDispatcherMock($this->connector);
- $debugDispatcher->expects($this->once())->method('dispatchDebug')->with(
- $this->anything(),
- $this->equalTo($expectedTags)
- );
- $this->connector->setDebugDispatcher($debugDispatcher);
- $logger->addDebug('test', array($key => $expectedTags));
- }
- }
-
- public function testError($classesPartialsTraceIgnore = null)
- {
- $code = E_USER_NOTICE;
- $message = 'message';
- $file = __FILE__;
- $line = __LINE__;
- $this->errorDispatcher->expects($this->once())->method('dispatchError')->with(
- $this->equalTo($code),
- $this->equalTo($message),
- $this->equalTo($file),
- $this->equalTo($line),
- $classesPartialsTraceIgnore ?: $this->equalTo($this->getHandlerDefaultOption('classesPartialsTraceIgnore'))
- );
- $errorHandler = ErrorHandler::register($this->initLogger($classesPartialsTraceIgnore ? array('classesPartialsTraceIgnore' => $classesPartialsTraceIgnore) : array()), false);
- $errorHandler->registerErrorHandler(array(), false, E_USER_WARNING);
- $errorHandler->handleError($code, $message, $file, $line);
- }
-
- public function testException()
- {
- $e = new Exception();
- $this->errorDispatcher->expects($this->once())->method('dispatchException')->with(
- $this->equalTo($e)
- );
- $handler = $this->initLogger();
- $handler->log(
- \Psr\Log\LogLevel::ERROR,
- sprintf('Uncaught Exception %s: "%s" at %s line %s', get_class($e), $e->getMessage(), $e->getFile(), $e->getLine()),
- array('exception' => $e)
- );
- }
-
- /**
- * @expectedException Exception
- */
- public function testWrongOptionsThrowsException()
- {
- new PHPConsoleHandler(array('xxx' => 1));
- }
-
- public function testOptionEnabled()
- {
- $this->debugDispatcher->expects($this->never())->method('dispatchDebug');
- $this->initLogger(array('enabled' => false))->addDebug('test');
- }
-
- public function testOptionClassesPartialsTraceIgnore()
- {
- $this->testError(array('Class', 'Namespace\\'));
- }
-
- public function testOptionDebugTagsKeysInContext()
- {
- $this->testDebugTags(array('key1', 'key2'));
- }
-
- public function testOptionUseOwnErrorsAndExceptionsHandler()
- {
- $this->initLogger(array('useOwnErrorsHandler' => true, 'useOwnExceptionsHandler' => true));
- $this->assertEquals(array(Handler::getInstance(), 'handleError'), set_error_handler(function () {
- }));
- $this->assertEquals(array(Handler::getInstance(), 'handleException'), set_exception_handler(function () {
- }));
- }
-
- public static function provideConnectorMethodsOptionsSets()
- {
- return array(
- array('sourcesBasePath', 'setSourcesBasePath', __DIR__),
- array('serverEncoding', 'setServerEncoding', 'cp1251'),
- array('password', 'setPassword', '******'),
- array('enableSslOnlyMode', 'enableSslOnlyMode', true, false),
- array('ipMasks', 'setAllowedIpMasks', array('127.0.0.*')),
- array('headersLimit', 'setHeadersLimit', 2500),
- array('enableEvalListener', 'startEvalRequestsListener', true, false),
- );
- }
-
- /**
- * @dataProvider provideConnectorMethodsOptionsSets
- */
- public function testOptionCallsConnectorMethod($option, $method, $value, $isArgument = true)
- {
- $expectCall = $this->connector->expects($this->once())->method($method);
- if ($isArgument) {
- $expectCall->with($value);
- }
- new PHPConsoleHandler(array($option => $value), $this->connector);
- }
-
- public function testOptionDetectDumpTraceAndSource()
- {
- new PHPConsoleHandler(array('detectDumpTraceAndSource' => true), $this->connector);
- $this->assertTrue($this->connector->getDebugDispatcher()->detectTraceAndSource);
- }
-
- public static function provideDumperOptionsValues()
- {
- return array(
- array('dumperLevelLimit', 'levelLimit', 1001),
- array('dumperItemsCountLimit', 'itemsCountLimit', 1002),
- array('dumperItemSizeLimit', 'itemSizeLimit', 1003),
- array('dumperDumpSizeLimit', 'dumpSizeLimit', 1004),
- array('dumperDetectCallbacks', 'detectCallbacks', true),
- );
- }
-
- /**
- * @dataProvider provideDumperOptionsValues
- */
- public function testDumperOptions($option, $dumperProperty, $value)
- {
- new PHPConsoleHandler(array($option => $value), $this->connector);
- $this->assertEquals($value, $this->connector->getDumper()->$dumperProperty);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PsrHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PsrHandlerTest.php
deleted file mode 100644
index 64eaab16..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PsrHandlerTest.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @covers Monolog\Handler\PsrHandler::handle
- */
-class PsrHandlerTest extends TestCase
-{
- public function logLevelProvider()
- {
- $levels = array();
- $monologLogger = new Logger('');
-
- foreach ($monologLogger->getLevels() as $levelName => $level) {
- $levels[] = array($levelName, $level);
- }
-
- return $levels;
- }
-
- /**
- * @dataProvider logLevelProvider
- */
- public function testHandlesAllLevels($levelName, $level)
- {
- $message = 'Hello, world! ' . $level;
- $context = array('foo' => 'bar', 'level' => $level);
-
- $psrLogger = $this->getMock('Psr\Log\NullLogger');
- $psrLogger->expects($this->once())
- ->method('log')
- ->with(strtolower($levelName), $message, $context);
-
- $handler = new PsrHandler($psrLogger);
- $handler->handle(array('level' => $level, 'level_name' => $levelName, 'message' => $message, 'context' => $context));
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PushoverHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PushoverHandlerTest.php
deleted file mode 100644
index 56df474a..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/PushoverHandlerTest.php
+++ /dev/null
@@ -1,141 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * Almost all examples (expected header, titles, messages) taken from
- * https://www.pushover.net/api
- * @author Sebastian Göttschkes <sebastian.goettschkes@googlemail.com>
- * @see https://www.pushover.net/api
- */
-class PushoverHandlerTest extends TestCase
-{
- private $res;
- private $handler;
-
- public function testWriteHeader()
- {
- $this->createHandler();
- $this->handler->setHighPriorityLevel(Logger::EMERGENCY); // skip priority notifications
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/POST \/1\/messages.json HTTP\/1.1\\r\\nHost: api.pushover.net\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
-
- return $content;
- }
-
- /**
- * @depends testWriteHeader
- */
- public function testWriteContent($content)
- {
- $this->assertRegexp('/token=myToken&user=myUser&message=test1&title=Monolog&timestamp=\d{10}$/', $content);
- }
-
- public function testWriteWithComplexTitle()
- {
- $this->createHandler('myToken', 'myUser', 'Backup finished - SQL1');
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/title=Backup\+finished\+-\+SQL1/', $content);
- }
-
- public function testWriteWithComplexMessage()
- {
- $this->createHandler();
- $this->handler->setHighPriorityLevel(Logger::EMERGENCY); // skip priority notifications
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'Backup of database "example" finished in 16 minutes.'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/message=Backup\+of\+database\+%22example%22\+finished\+in\+16\+minutes\./', $content);
- }
-
- public function testWriteWithTooLongMessage()
- {
- $message = str_pad('test', 520, 'a');
- $this->createHandler();
- $this->handler->setHighPriorityLevel(Logger::EMERGENCY); // skip priority notifications
- $this->handler->handle($this->getRecord(Logger::CRITICAL, $message));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $expectedMessage = substr($message, 0, 505);
-
- $this->assertRegexp('/message=' . $expectedMessage . '&title/', $content);
- }
-
- public function testWriteWithHighPriority()
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/token=myToken&user=myUser&message=test1&title=Monolog&timestamp=\d{10}&priority=1$/', $content);
- }
-
- public function testWriteWithEmergencyPriority()
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord(Logger::EMERGENCY, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/token=myToken&user=myUser&message=test1&title=Monolog&timestamp=\d{10}&priority=2&retry=30&expire=25200$/', $content);
- }
-
- public function testWriteToMultipleUsers()
- {
- $this->createHandler('myToken', array('userA', 'userB'));
- $this->handler->handle($this->getRecord(Logger::EMERGENCY, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/token=myToken&user=userA&message=test1&title=Monolog&timestamp=\d{10}&priority=2&retry=30&expire=25200POST/', $content);
- $this->assertRegexp('/token=myToken&user=userB&message=test1&title=Monolog&timestamp=\d{10}&priority=2&retry=30&expire=25200$/', $content);
- }
-
- private function createHandler($token = 'myToken', $user = 'myUser', $title = 'Monolog')
- {
- $constructorArgs = array($token, $user, $title);
- $this->res = fopen('php://memory', 'a');
- $this->handler = $this->getMock(
- '\Monolog\Handler\PushoverHandler',
- array('fsockopen', 'streamSetTimeout', 'closeSocket'),
- $constructorArgs
- );
-
- $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
- $reflectionProperty->setAccessible(true);
- $reflectionProperty->setValue($this->handler, 'localhost:1234');
-
- $this->handler->expects($this->any())
- ->method('fsockopen')
- ->will($this->returnValue($this->res));
- $this->handler->expects($this->any())
- ->method('streamSetTimeout')
- ->will($this->returnValue(true));
- $this->handler->expects($this->any())
- ->method('closeSocket')
- ->will($this->returnValue(true));
-
- $this->handler->setFormatter($this->getIdentityFormatter());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php
deleted file mode 100644
index 26d212b9..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php
+++ /dev/null
@@ -1,255 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-
-class RavenHandlerTest extends TestCase
-{
- public function setUp()
- {
- if (!class_exists('Raven_Client')) {
- $this->markTestSkipped('raven/raven not installed');
- }
-
- require_once __DIR__ . '/MockRavenClient.php';
- }
-
- /**
- * @covers Monolog\Handler\RavenHandler::__construct
- */
- public function testConstruct()
- {
- $handler = new RavenHandler($this->getRavenClient());
- $this->assertInstanceOf('Monolog\Handler\RavenHandler', $handler);
- }
-
- protected function getHandler($ravenClient)
- {
- $handler = new RavenHandler($ravenClient);
-
- return $handler;
- }
-
- protected function getRavenClient()
- {
- $dsn = 'http://43f6017361224d098402974103bfc53d:a6a0538fc2934ba2bed32e08741b2cd3@marca.python.live.cheggnet.com:9000/1';
-
- return new MockRavenClient($dsn);
- }
-
- public function testDebug()
- {
- $ravenClient = $this->getRavenClient();
- $handler = $this->getHandler($ravenClient);
-
- $record = $this->getRecord(Logger::DEBUG, 'A test debug message');
- $handler->handle($record);
-
- $this->assertEquals($ravenClient::DEBUG, $ravenClient->lastData['level']);
- $this->assertContains($record['message'], $ravenClient->lastData['message']);
- }
-
- public function testWarning()
- {
- $ravenClient = $this->getRavenClient();
- $handler = $this->getHandler($ravenClient);
-
- $record = $this->getRecord(Logger::WARNING, 'A test warning message');
- $handler->handle($record);
-
- $this->assertEquals($ravenClient::WARNING, $ravenClient->lastData['level']);
- $this->assertContains($record['message'], $ravenClient->lastData['message']);
- }
-
- public function testTag()
- {
- $ravenClient = $this->getRavenClient();
- $handler = $this->getHandler($ravenClient);
-
- $tags = array(1, 2, 'foo');
- $record = $this->getRecord(Logger::INFO, 'test', array('tags' => $tags));
- $handler->handle($record);
-
- $this->assertEquals($tags, $ravenClient->lastData['tags']);
- }
-
- public function testExtraParameters()
- {
- $ravenClient = $this->getRavenClient();
- $handler = $this->getHandler($ravenClient);
-
- $checksum = '098f6bcd4621d373cade4e832627b4f6';
- $release = '05a671c66aefea124cc08b76ea6d30bb';
- $eventId = '31423';
- $record = $this->getRecord(Logger::INFO, 'test', array('checksum' => $checksum, 'release' => $release, 'event_id' => $eventId));
- $handler->handle($record);
-
- $this->assertEquals($checksum, $ravenClient->lastData['checksum']);
- $this->assertEquals($release, $ravenClient->lastData['release']);
- $this->assertEquals($eventId, $ravenClient->lastData['event_id']);
- }
-
- public function testFingerprint()
- {
- $ravenClient = $this->getRavenClient();
- $handler = $this->getHandler($ravenClient);
-
- $fingerprint = array('{{ default }}', 'other value');
- $record = $this->getRecord(Logger::INFO, 'test', array('fingerprint' => $fingerprint));
- $handler->handle($record);
-
- $this->assertEquals($fingerprint, $ravenClient->lastData['fingerprint']);
- }
-
- public function testUserContext()
- {
- $ravenClient = $this->getRavenClient();
- $handler = $this->getHandler($ravenClient);
-
- $recordWithNoContext = $this->getRecord(Logger::INFO, 'test with default user context');
- // set user context 'externally'
-
- $user = array(
- 'id' => '123',
- 'email' => 'test@test.com',
- );
-
- $recordWithContext = $this->getRecord(Logger::INFO, 'test', array('user' => $user));
-
- $ravenClient->user_context(array('id' => 'test_user_id'));
- // handle context
- $handler->handle($recordWithContext);
- $this->assertEquals($user, $ravenClient->lastData['user']);
-
- // check to see if its reset
- $handler->handle($recordWithNoContext);
- $this->assertInternalType('array', $ravenClient->context->user);
- $this->assertSame('test_user_id', $ravenClient->context->user['id']);
-
- // handle with null context
- $ravenClient->user_context(null);
- $handler->handle($recordWithContext);
- $this->assertEquals($user, $ravenClient->lastData['user']);
-
- // check to see if its reset
- $handler->handle($recordWithNoContext);
- $this->assertNull($ravenClient->context->user);
- }
-
- public function testException()
- {
- $ravenClient = $this->getRavenClient();
- $handler = $this->getHandler($ravenClient);
-
- try {
- $this->methodThatThrowsAnException();
- } catch (\Exception $e) {
- $record = $this->getRecord(Logger::ERROR, $e->getMessage(), array('exception' => $e));
- $handler->handle($record);
- }
-
- $this->assertEquals($record['message'], $ravenClient->lastData['message']);
- }
-
- public function testHandleBatch()
- {
- $records = $this->getMultipleRecords();
- $records[] = $this->getRecord(Logger::WARNING, 'warning');
- $records[] = $this->getRecord(Logger::WARNING, 'warning');
-
- $logFormatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
- $logFormatter->expects($this->once())->method('formatBatch');
-
- $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
- $formatter->expects($this->once())->method('format')->with($this->callback(function ($record) {
- return $record['level'] == 400;
- }));
-
- $handler = $this->getHandler($this->getRavenClient());
- $handler->setBatchFormatter($logFormatter);
- $handler->setFormatter($formatter);
- $handler->handleBatch($records);
- }
-
- public function testHandleBatchDoNothingIfRecordsAreBelowLevel()
- {
- $records = array(
- $this->getRecord(Logger::DEBUG, 'debug message 1'),
- $this->getRecord(Logger::DEBUG, 'debug message 2'),
- $this->getRecord(Logger::INFO, 'information'),
- );
-
- $handler = $this->getMock('Monolog\Handler\RavenHandler', null, array($this->getRavenClient()));
- $handler->expects($this->never())->method('handle');
- $handler->setLevel(Logger::ERROR);
- $handler->handleBatch($records);
- }
-
- public function testHandleBatchPicksProperMessage()
- {
- $records = array(
- $this->getRecord(Logger::DEBUG, 'debug message 1'),
- $this->getRecord(Logger::DEBUG, 'debug message 2'),
- $this->getRecord(Logger::INFO, 'information 1'),
- $this->getRecord(Logger::ERROR, 'error 1'),
- $this->getRecord(Logger::WARNING, 'warning'),
- $this->getRecord(Logger::ERROR, 'error 2'),
- $this->getRecord(Logger::INFO, 'information 2'),
- );
-
- $logFormatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
- $logFormatter->expects($this->once())->method('formatBatch');
-
- $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
- $formatter->expects($this->once())->method('format')->with($this->callback(function ($record) use ($records) {
- return $record['message'] == 'error 1';
- }));
-
- $handler = $this->getHandler($this->getRavenClient());
- $handler->setBatchFormatter($logFormatter);
- $handler->setFormatter($formatter);
- $handler->handleBatch($records);
- }
-
- public function testGetSetBatchFormatter()
- {
- $ravenClient = $this->getRavenClient();
- $handler = $this->getHandler($ravenClient);
-
- $handler->setBatchFormatter($formatter = new LineFormatter());
- $this->assertSame($formatter, $handler->getBatchFormatter());
- }
-
- public function testRelease()
- {
- $ravenClient = $this->getRavenClient();
- $handler = $this->getHandler($ravenClient);
- $release = 'v42.42.42';
- $handler->setRelease($release);
- $record = $this->getRecord(Logger::INFO, 'test');
- $handler->handle($record);
- $this->assertEquals($release, $ravenClient->lastData['release']);
-
- $localRelease = 'v41.41.41';
- $record = $this->getRecord(Logger::INFO, 'test', array('release' => $localRelease));
- $handler->handle($record);
- $this->assertEquals($localRelease, $ravenClient->lastData['release']);
- }
-
- private function methodThatThrowsAnException()
- {
- throw new \Exception('This is an exception');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php
deleted file mode 100644
index 689d5278..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php
+++ /dev/null
@@ -1,127 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-
-class RedisHandlerTest extends TestCase
-{
- /**
- * @expectedException InvalidArgumentException
- */
- public function testConstructorShouldThrowExceptionForInvalidRedis()
- {
- new RedisHandler(new \stdClass(), 'key');
- }
-
- public function testConstructorShouldWorkWithPredis()
- {
- $redis = $this->getMock('Predis\Client');
- $this->assertInstanceof('Monolog\Handler\RedisHandler', new RedisHandler($redis, 'key'));
- }
-
- public function testConstructorShouldWorkWithRedis()
- {
- $redis = $this->getMock('Redis');
- $this->assertInstanceof('Monolog\Handler\RedisHandler', new RedisHandler($redis, 'key'));
- }
-
- public function testPredisHandle()
- {
- $redis = $this->getMock('Predis\Client', array('rpush'));
-
- // Predis\Client uses rpush
- $redis->expects($this->once())
- ->method('rpush')
- ->with('key', 'test');
-
- $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
- $handler = new RedisHandler($redis, 'key');
- $handler->setFormatter(new LineFormatter("%message%"));
- $handler->handle($record);
- }
-
- public function testRedisHandle()
- {
- $redis = $this->getMock('Redis', array('rpush'));
-
- // Redis uses rPush
- $redis->expects($this->once())
- ->method('rPush')
- ->with('key', 'test');
-
- $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
- $handler = new RedisHandler($redis, 'key');
- $handler->setFormatter(new LineFormatter("%message%"));
- $handler->handle($record);
- }
-
- public function testRedisHandleCapped()
- {
- $redis = $this->getMock('Redis', array('multi', 'rpush', 'ltrim', 'exec'));
-
- // Redis uses multi
- $redis->expects($this->once())
- ->method('multi')
- ->will($this->returnSelf());
-
- $redis->expects($this->once())
- ->method('rpush')
- ->will($this->returnSelf());
-
- $redis->expects($this->once())
- ->method('ltrim')
- ->will($this->returnSelf());
-
- $redis->expects($this->once())
- ->method('exec')
- ->will($this->returnSelf());
-
- $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
- $handler = new RedisHandler($redis, 'key', Logger::DEBUG, true, 10);
- $handler->setFormatter(new LineFormatter("%message%"));
- $handler->handle($record);
- }
-
- public function testPredisHandleCapped()
- {
- $redis = $this->getMock('Predis\Client', array('transaction'));
-
- $redisTransaction = $this->getMock('Predis\Client', array('rpush', 'ltrim'));
-
- $redisTransaction->expects($this->once())
- ->method('rpush')
- ->will($this->returnSelf());
-
- $redisTransaction->expects($this->once())
- ->method('ltrim')
- ->will($this->returnSelf());
-
- // Redis uses multi
- $redis->expects($this->once())
- ->method('transaction')
- ->will($this->returnCallback(function ($cb) use ($redisTransaction) {
- $cb($redisTransaction);
- }));
-
- $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
-
- $handler = new RedisHandler($redis, 'key', Logger::DEBUG, true, 10);
- $handler->setFormatter(new LineFormatter("%message%"));
- $handler->handle($record);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php
deleted file mode 100644
index c5106175..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php
+++ /dev/null
@@ -1,211 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use PHPUnit_Framework_Error_Deprecated;
-
-/**
- * @covers Monolog\Handler\RotatingFileHandler
- */
-class RotatingFileHandlerTest extends TestCase
-{
- /**
- * This var should be private but then the anonymous function
- * in the `setUp` method won't be able to set it. `$this` cant't
- * be used in the anonymous function in `setUp` because PHP 5.3
- * does not support it.
- */
- public $lastError;
-
- public function setUp()
- {
- $dir = __DIR__.'/Fixtures';
- chmod($dir, 0777);
- if (!is_writable($dir)) {
- $this->markTestSkipped($dir.' must be writable to test the RotatingFileHandler.');
- }
- $this->lastError = null;
- $self = $this;
- // workaround with &$self used for PHP 5.3
- set_error_handler(function($code, $message) use (&$self) {
- $self->lastError = array(
- 'code' => $code,
- 'message' => $message,
- );
- });
- }
-
- private function assertErrorWasTriggered($code, $message)
- {
- if (empty($this->lastError)) {
- $this->fail(
- sprintf(
- 'Failed asserting that error with code `%d` and message `%s` was triggered',
- $code,
- $message
- )
- );
- }
- $this->assertEquals($code, $this->lastError['code'], sprintf('Expected an error with code %d to be triggered, got `%s` instead', $code, $this->lastError['code']));
- $this->assertEquals($message, $this->lastError['message'], sprintf('Expected an error with message `%d` to be triggered, got `%s` instead', $message, $this->lastError['message']));
- }
-
- public function testRotationCreatesNewFile()
- {
- touch(__DIR__.'/Fixtures/foo-'.date('Y-m-d', time() - 86400).'.rot');
-
- $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot');
- $handler->setFormatter($this->getIdentityFormatter());
- $handler->handle($this->getRecord());
-
- $log = __DIR__.'/Fixtures/foo-'.date('Y-m-d').'.rot';
- $this->assertTrue(file_exists($log));
- $this->assertEquals('test', file_get_contents($log));
- }
-
- /**
- * @dataProvider rotationTests
- */
- public function testRotation($createFile, $dateFormat, $timeCallback)
- {
- touch($old1 = __DIR__.'/Fixtures/foo-'.date($dateFormat, $timeCallback(-1)).'.rot');
- touch($old2 = __DIR__.'/Fixtures/foo-'.date($dateFormat, $timeCallback(-2)).'.rot');
- touch($old3 = __DIR__.'/Fixtures/foo-'.date($dateFormat, $timeCallback(-3)).'.rot');
- touch($old4 = __DIR__.'/Fixtures/foo-'.date($dateFormat, $timeCallback(-4)).'.rot');
-
- $log = __DIR__.'/Fixtures/foo-'.date($dateFormat).'.rot';
-
- if ($createFile) {
- touch($log);
- }
-
- $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot', 2);
- $handler->setFormatter($this->getIdentityFormatter());
- $handler->setFilenameFormat('{filename}-{date}', $dateFormat);
- $handler->handle($this->getRecord());
-
- $handler->close();
-
- $this->assertTrue(file_exists($log));
- $this->assertTrue(file_exists($old1));
- $this->assertEquals($createFile, file_exists($old2));
- $this->assertEquals($createFile, file_exists($old3));
- $this->assertEquals($createFile, file_exists($old4));
- $this->assertEquals('test', file_get_contents($log));
- }
-
- public function rotationTests()
- {
- $now = time();
- $dayCallback = function($ago) use ($now) {
- return $now + 86400 * $ago;
- };
- $monthCallback = function($ago) {
- return gmmktime(0, 0, 0, date('n') + $ago, date('d'), date('Y'));
- };
- $yearCallback = function($ago) {
- return gmmktime(0, 0, 0, date('n'), date('d'), date('Y') + $ago);
- };
-
- return array(
- 'Rotation is triggered when the file of the current day is not present'
- => array(true, RotatingFileHandler::FILE_PER_DAY, $dayCallback),
- 'Rotation is not triggered when the file of the current day is already present'
- => array(false, RotatingFileHandler::FILE_PER_DAY, $dayCallback),
-
- 'Rotation is triggered when the file of the current month is not present'
- => array(true, RotatingFileHandler::FILE_PER_MONTH, $monthCallback),
- 'Rotation is not triggered when the file of the current month is already present'
- => array(false, RotatingFileHandler::FILE_PER_MONTH, $monthCallback),
-
- 'Rotation is triggered when the file of the current year is not present'
- => array(true, RotatingFileHandler::FILE_PER_YEAR, $yearCallback),
- 'Rotation is not triggered when the file of the current year is already present'
- => array(false, RotatingFileHandler::FILE_PER_YEAR, $yearCallback),
- );
- }
-
- /**
- * @dataProvider dateFormatProvider
- */
- public function testAllowOnlyFixedDefinedDateFormats($dateFormat, $valid)
- {
- $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot', 2);
- $handler->setFilenameFormat('{filename}-{date}', $dateFormat);
- if (!$valid) {
- $this->assertErrorWasTriggered(
- E_USER_DEPRECATED,
- 'Invalid date format - format must be one of RotatingFileHandler::FILE_PER_DAY ("Y-m-d"), '.
- 'RotatingFileHandler::FILE_PER_MONTH ("Y-m") or RotatingFileHandler::FILE_PER_YEAR ("Y"), '.
- 'or you can set one of the date formats using slashes, underscores and/or dots instead of dashes.'
- );
- }
- }
-
- public function dateFormatProvider()
- {
- return array(
- array(RotatingFileHandler::FILE_PER_DAY, true),
- array(RotatingFileHandler::FILE_PER_MONTH, true),
- array(RotatingFileHandler::FILE_PER_YEAR, true),
- array('m-d-Y', false),
- array('Y-m-d-h-i', false)
- );
- }
-
- /**
- * @dataProvider filenameFormatProvider
- */
- public function testDisallowFilenameFormatsWithoutDate($filenameFormat, $valid)
- {
- $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot', 2);
- $handler->setFilenameFormat($filenameFormat, RotatingFileHandler::FILE_PER_DAY);
- if (!$valid) {
- $this->assertErrorWasTriggered(
- E_USER_DEPRECATED,
- 'Invalid filename format - format should contain at least `{date}`, because otherwise rotating is impossible.'
- );
- }
- }
-
- public function filenameFormatProvider()
- {
- return array(
- array('{filename}', false),
- array('{filename}-{date}', true),
- array('{date}', true),
- array('foobar-{date}', true),
- array('foo-{date}-bar', true),
- array('{date}-foobar', true),
- array('foobar', false),
- );
- }
-
- public function testReuseCurrentFile()
- {
- $log = __DIR__.'/Fixtures/foo-'.date('Y-m-d').'.rot';
- file_put_contents($log, "foo");
- $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot');
- $handler->setFormatter($this->getIdentityFormatter());
- $handler->handle($this->getRecord());
- $this->assertEquals('footest', file_get_contents($log));
- }
-
- public function tearDown()
- {
- foreach (glob(__DIR__.'/Fixtures/*.rot') as $file) {
- unlink($file);
- }
- restore_error_handler();
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php
deleted file mode 100644
index b354cee1..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-
-/**
- * @covers Monolog\Handler\SamplingHandler::handle
- */
-class SamplingHandlerTest extends TestCase
-{
- public function testHandle()
- {
- $testHandler = new TestHandler();
- $handler = new SamplingHandler($testHandler, 2);
- for ($i = 0; $i < 10000; $i++) {
- $handler->handle($this->getRecord());
- }
- $count = count($testHandler->getRecords());
- // $count should be half of 10k, so between 4k and 6k
- $this->assertLessThan(6000, $count);
- $this->assertGreaterThan(4000, $count);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/Slack/SlackRecordTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/Slack/SlackRecordTest.php
deleted file mode 100644
index e1aa96d7..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/Slack/SlackRecordTest.php
+++ /dev/null
@@ -1,387 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler\Slack;
-
-use Monolog\Logger;
-use Monolog\TestCase;
-
-/**
- * @coversDefaultClass Monolog\Handler\Slack\SlackRecord
- */
-class SlackRecordTest extends TestCase
-{
- private $jsonPrettyPrintFlag;
-
- protected function setUp()
- {
- $this->jsonPrettyPrintFlag = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 128;
- }
-
- public function dataGetAttachmentColor()
- {
- return array(
- array(Logger::DEBUG, SlackRecord::COLOR_DEFAULT),
- array(Logger::INFO, SlackRecord::COLOR_GOOD),
- array(Logger::NOTICE, SlackRecord::COLOR_GOOD),
- array(Logger::WARNING, SlackRecord::COLOR_WARNING),
- array(Logger::ERROR, SlackRecord::COLOR_DANGER),
- array(Logger::CRITICAL, SlackRecord::COLOR_DANGER),
- array(Logger::ALERT, SlackRecord::COLOR_DANGER),
- array(Logger::EMERGENCY, SlackRecord::COLOR_DANGER),
- );
- }
-
- /**
- * @dataProvider dataGetAttachmentColor
- * @param int $logLevel
- * @param string $expectedColour RGB hex color or name of Slack color
- * @covers ::getAttachmentColor
- */
- public function testGetAttachmentColor($logLevel, $expectedColour)
- {
- $slackRecord = new SlackRecord();
- $this->assertSame(
- $expectedColour,
- $slackRecord->getAttachmentColor($logLevel)
- );
- }
-
- public function testAddsChannel()
- {
- $channel = '#test';
- $record = new SlackRecord($channel);
- $data = $record->getSlackData($this->getRecord());
-
- $this->assertArrayHasKey('channel', $data);
- $this->assertSame($channel, $data['channel']);
- }
-
- public function testNoUsernameByDefault()
- {
- $record = new SlackRecord();
- $data = $record->getSlackData($this->getRecord());
-
- $this->assertArrayNotHasKey('username', $data);
- }
-
- /**
- * @return array
- */
- public function dataStringify()
- {
- $jsonPrettyPrintFlag = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 128;
-
- $multipleDimensions = array(array(1, 2));
- $numericKeys = array('library' => 'monolog');
- $singleDimension = array(1, 'Hello', 'Jordi');
-
- return array(
- array(array(), '[]'),
- array($multipleDimensions, json_encode($multipleDimensions, $jsonPrettyPrintFlag)),
- array($numericKeys, json_encode($numericKeys, $jsonPrettyPrintFlag)),
- array($singleDimension, json_encode($singleDimension))
- );
- }
-
- /**
- * @dataProvider dataStringify
- */
- public function testStringify($fields, $expectedResult)
- {
- $slackRecord = new SlackRecord(
- '#test',
- 'test',
- true,
- null,
- true,
- true
- );
-
- $this->assertSame($expectedResult, $slackRecord->stringify($fields));
- }
-
- public function testAddsCustomUsername()
- {
- $username = 'Monolog bot';
- $record = new SlackRecord(null, $username);
- $data = $record->getSlackData($this->getRecord());
-
- $this->assertArrayHasKey('username', $data);
- $this->assertSame($username, $data['username']);
- }
-
- public function testNoIcon()
- {
- $record = new SlackRecord();
- $data = $record->getSlackData($this->getRecord());
-
- $this->assertArrayNotHasKey('icon_emoji', $data);
- }
-
- public function testAddsIcon()
- {
- $record = $this->getRecord();
- $slackRecord = new SlackRecord(null, null, false, 'ghost');
- $data = $slackRecord->getSlackData($record);
-
- $slackRecord2 = new SlackRecord(null, null, false, 'http://github.com/Seldaek/monolog');
- $data2 = $slackRecord2->getSlackData($record);
-
- $this->assertArrayHasKey('icon_emoji', $data);
- $this->assertSame(':ghost:', $data['icon_emoji']);
- $this->assertArrayHasKey('icon_url', $data2);
- $this->assertSame('http://github.com/Seldaek/monolog', $data2['icon_url']);
- }
-
- public function testAttachmentsNotPresentIfNoAttachment()
- {
- $record = new SlackRecord(null, null, false);
- $data = $record->getSlackData($this->getRecord());
-
- $this->assertArrayNotHasKey('attachments', $data);
- }
-
- public function testAddsOneAttachment()
- {
- $record = new SlackRecord();
- $data = $record->getSlackData($this->getRecord());
-
- $this->assertArrayHasKey('attachments', $data);
- $this->assertArrayHasKey(0, $data['attachments']);
- $this->assertInternalType('array', $data['attachments'][0]);
- }
-
- public function testTextEqualsMessageIfNoAttachment()
- {
- $message = 'Test message';
- $record = new SlackRecord(null, null, false);
- $data = $record->getSlackData($this->getRecord(Logger::WARNING, $message));
-
- $this->assertArrayHasKey('text', $data);
- $this->assertSame($message, $data['text']);
- }
-
- public function testTextEqualsFormatterOutput()
- {
- $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
- $formatter
- ->expects($this->any())
- ->method('format')
- ->will($this->returnCallback(function ($record) { return $record['message'] . 'test'; }));
-
- $formatter2 = $this->getMock('Monolog\\Formatter\\FormatterInterface');
- $formatter2
- ->expects($this->any())
- ->method('format')
- ->will($this->returnCallback(function ($record) { return $record['message'] . 'test1'; }));
-
- $message = 'Test message';
- $record = new SlackRecord(null, null, false, null, false, false, array(), $formatter);
- $data = $record->getSlackData($this->getRecord(Logger::WARNING, $message));
-
- $this->assertArrayHasKey('text', $data);
- $this->assertSame($message . 'test', $data['text']);
-
- $record->setFormatter($formatter2);
- $data = $record->getSlackData($this->getRecord(Logger::WARNING, $message));
-
- $this->assertArrayHasKey('text', $data);
- $this->assertSame($message . 'test1', $data['text']);
- }
-
- public function testAddsFallbackAndTextToAttachment()
- {
- $message = 'Test message';
- $record = new SlackRecord(null);
- $data = $record->getSlackData($this->getRecord(Logger::WARNING, $message));
-
- $this->assertSame($message, $data['attachments'][0]['text']);
- $this->assertSame($message, $data['attachments'][0]['fallback']);
- }
-
- public function testMapsLevelToColorAttachmentColor()
- {
- $record = new SlackRecord(null);
- $errorLoggerRecord = $this->getRecord(Logger::ERROR);
- $emergencyLoggerRecord = $this->getRecord(Logger::EMERGENCY);
- $warningLoggerRecord = $this->getRecord(Logger::WARNING);
- $infoLoggerRecord = $this->getRecord(Logger::INFO);
- $debugLoggerRecord = $this->getRecord(Logger::DEBUG);
-
- $data = $record->getSlackData($errorLoggerRecord);
- $this->assertSame(SlackRecord::COLOR_DANGER, $data['attachments'][0]['color']);
-
- $data = $record->getSlackData($emergencyLoggerRecord);
- $this->assertSame(SlackRecord::COLOR_DANGER, $data['attachments'][0]['color']);
-
- $data = $record->getSlackData($warningLoggerRecord);
- $this->assertSame(SlackRecord::COLOR_WARNING, $data['attachments'][0]['color']);
-
- $data = $record->getSlackData($infoLoggerRecord);
- $this->assertSame(SlackRecord::COLOR_GOOD, $data['attachments'][0]['color']);
-
- $data = $record->getSlackData($debugLoggerRecord);
- $this->assertSame(SlackRecord::COLOR_DEFAULT, $data['attachments'][0]['color']);
- }
-
- public function testAddsShortAttachmentWithoutContextAndExtra()
- {
- $level = Logger::ERROR;
- $levelName = Logger::getLevelName($level);
- $record = new SlackRecord(null, null, true, null, true);
- $data = $record->getSlackData($this->getRecord($level, 'test', array('test' => 1)));
-
- $attachment = $data['attachments'][0];
- $this->assertArrayHasKey('title', $attachment);
- $this->assertArrayHasKey('fields', $attachment);
- $this->assertSame($levelName, $attachment['title']);
- $this->assertSame(array(), $attachment['fields']);
- }
-
- public function testAddsShortAttachmentWithContextAndExtra()
- {
- $level = Logger::ERROR;
- $levelName = Logger::getLevelName($level);
- $context = array('test' => 1);
- $extra = array('tags' => array('web'));
- $record = new SlackRecord(null, null, true, null, true, true);
- $loggerRecord = $this->getRecord($level, 'test', $context);
- $loggerRecord['extra'] = $extra;
- $data = $record->getSlackData($loggerRecord);
-
- $attachment = $data['attachments'][0];
- $this->assertArrayHasKey('title', $attachment);
- $this->assertArrayHasKey('fields', $attachment);
- $this->assertCount(2, $attachment['fields']);
- $this->assertSame($levelName, $attachment['title']);
- $this->assertSame(
- array(
- array(
- 'title' => 'Extra',
- 'value' => sprintf('```%s```', json_encode($extra, $this->jsonPrettyPrintFlag)),
- 'short' => false
- ),
- array(
- 'title' => 'Context',
- 'value' => sprintf('```%s```', json_encode($context, $this->jsonPrettyPrintFlag)),
- 'short' => false
- )
- ),
- $attachment['fields']
- );
- }
-
- public function testAddsLongAttachmentWithoutContextAndExtra()
- {
- $level = Logger::ERROR;
- $levelName = Logger::getLevelName($level);
- $record = new SlackRecord(null, null, true, null);
- $data = $record->getSlackData($this->getRecord($level, 'test', array('test' => 1)));
-
- $attachment = $data['attachments'][0];
- $this->assertArrayHasKey('title', $attachment);
- $this->assertArrayHasKey('fields', $attachment);
- $this->assertCount(1, $attachment['fields']);
- $this->assertSame('Message', $attachment['title']);
- $this->assertSame(
- array(array(
- 'title' => 'Level',
- 'value' => $levelName,
- 'short' => false
- )),
- $attachment['fields']
- );
- }
-
- public function testAddsLongAttachmentWithContextAndExtra()
- {
- $level = Logger::ERROR;
- $levelName = Logger::getLevelName($level);
- $context = array('test' => 1);
- $extra = array('tags' => array('web'));
- $record = new SlackRecord(null, null, true, null, false, true);
- $loggerRecord = $this->getRecord($level, 'test', $context);
- $loggerRecord['extra'] = $extra;
- $data = $record->getSlackData($loggerRecord);
-
- $expectedFields = array(
- array(
- 'title' => 'Level',
- 'value' => $levelName,
- 'short' => false,
- ),
- array(
- 'title' => 'tags',
- 'value' => sprintf('```%s```', json_encode($extra['tags'])),
- 'short' => false
- ),
- array(
- 'title' => 'test',
- 'value' => $context['test'],
- 'short' => false
- )
- );
-
- $attachment = $data['attachments'][0];
- $this->assertArrayHasKey('title', $attachment);
- $this->assertArrayHasKey('fields', $attachment);
- $this->assertCount(3, $attachment['fields']);
- $this->assertSame('Message', $attachment['title']);
- $this->assertSame(
- $expectedFields,
- $attachment['fields']
- );
- }
-
- public function testAddsTimestampToAttachment()
- {
- $record = $this->getRecord();
- $slackRecord = new SlackRecord();
- $data = $slackRecord->getSlackData($this->getRecord());
-
- $attachment = $data['attachments'][0];
- $this->assertArrayHasKey('ts', $attachment);
- $this->assertSame($record['datetime']->getTimestamp(), $attachment['ts']);
- }
-
- public function testExcludeExtraAndContextFields()
- {
- $record = $this->getRecord(
- Logger::WARNING,
- 'test',
- array('info' => array('library' => 'monolog', 'author' => 'Jordi'))
- );
- $record['extra'] = array('tags' => array('web', 'cli'));
-
- $slackRecord = new SlackRecord(null, null, true, null, false, true, array('context.info.library', 'extra.tags.1'));
- $data = $slackRecord->getSlackData($record);
- $attachment = $data['attachments'][0];
-
- $expected = array(
- array(
- 'title' => 'info',
- 'value' => sprintf('```%s```', json_encode(array('author' => 'Jordi'), $this->jsonPrettyPrintFlag)),
- 'short' => false
- ),
- array(
- 'title' => 'tags',
- 'value' => sprintf('```%s```', json_encode(array('web'))),
- 'short' => false
- ),
- );
-
- foreach ($expected as $field) {
- $this->assertNotFalse(array_search($field, $attachment['fields']));
- break;
- }
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php
deleted file mode 100644
index b12b01f4..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php
+++ /dev/null
@@ -1,155 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-use Monolog\Handler\Slack\SlackRecord;
-
-/**
- * @author Greg Kedzierski <greg@gregkedzierski.com>
- * @see https://api.slack.com/
- */
-class SlackHandlerTest extends TestCase
-{
- /**
- * @var resource
- */
- private $res;
-
- /**
- * @var SlackHandler
- */
- private $handler;
-
- public function setUp()
- {
- if (!extension_loaded('openssl')) {
- $this->markTestSkipped('This test requires openssl to run');
- }
- }
-
- public function testWriteHeader()
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/POST \/api\/chat.postMessage HTTP\/1.1\\r\\nHost: slack.com\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
- }
-
- public function testWriteContent()
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegExp('/username=Monolog/', $content);
- $this->assertRegExp('/channel=channel1/', $content);
- $this->assertRegExp('/token=myToken/', $content);
- $this->assertRegExp('/attachments/', $content);
- }
-
- public function testWriteContentUsesFormatterIfProvided()
- {
- $this->createHandler('myToken', 'channel1', 'Monolog', false);
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->createHandler('myToken', 'channel1', 'Monolog', false);
- $this->handler->setFormatter(new LineFormatter('foo--%message%'));
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test2'));
- fseek($this->res, 0);
- $content2 = fread($this->res, 1024);
-
- $this->assertRegexp('/text=test1/', $content);
- $this->assertRegexp('/text=foo--test2/', $content2);
- }
-
- public function testWriteContentWithEmoji()
- {
- $this->createHandler('myToken', 'channel1', 'Monolog', true, 'alien');
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/icon_emoji=%3Aalien%3A/', $content);
- }
-
- /**
- * @dataProvider provideLevelColors
- */
- public function testWriteContentWithColors($level, $expectedColor)
- {
- $this->createHandler();
- $this->handler->handle($this->getRecord($level, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/%22color%22%3A%22'.$expectedColor.'/', $content);
- }
-
- public function testWriteContentWithPlainTextMessage()
- {
- $this->createHandler('myToken', 'channel1', 'Monolog', false);
- $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
- fseek($this->res, 0);
- $content = fread($this->res, 1024);
-
- $this->assertRegexp('/text=test1/', $content);
- }
-
- public function provideLevelColors()
- {
- return array(
- array(Logger::DEBUG, urlencode(SlackRecord::COLOR_DEFAULT)),
- array(Logger::INFO, SlackRecord::COLOR_GOOD),
- array(Logger::NOTICE, SlackRecord::COLOR_GOOD),
- array(Logger::WARNING, SlackRecord::COLOR_WARNING),
- array(Logger::ERROR, SlackRecord::COLOR_DANGER),
- array(Logger::CRITICAL, SlackRecord::COLOR_DANGER),
- array(Logger::ALERT, SlackRecord::COLOR_DANGER),
- array(Logger::EMERGENCY,SlackRecord::COLOR_DANGER),
- );
- }
-
- private function createHandler($token = 'myToken', $channel = 'channel1', $username = 'Monolog', $useAttachment = true, $iconEmoji = null, $useShortAttachment = false, $includeExtra = false)
- {
- $constructorArgs = array($token, $channel, $username, $useAttachment, $iconEmoji, Logger::DEBUG, true, $useShortAttachment, $includeExtra);
- $this->res = fopen('php://memory', 'a');
- $this->handler = $this->getMock(
- '\Monolog\Handler\SlackHandler',
- array('fsockopen', 'streamSetTimeout', 'closeSocket'),
- $constructorArgs
- );
-
- $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
- $reflectionProperty->setAccessible(true);
- $reflectionProperty->setValue($this->handler, 'localhost:1234');
-
- $this->handler->expects($this->any())
- ->method('fsockopen')
- ->will($this->returnValue($this->res));
- $this->handler->expects($this->any())
- ->method('streamSetTimeout')
- ->will($this->returnValue(true));
- $this->handler->expects($this->any())
- ->method('closeSocket')
- ->will($this->returnValue(true));
-
- $this->handler->setFormatter($this->getIdentityFormatter());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackWebhookHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackWebhookHandlerTest.php
deleted file mode 100644
index c9229e26..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackWebhookHandlerTest.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-use Monolog\Formatter\LineFormatter;
-use Monolog\Handler\Slack\SlackRecord;
-
-/**
- * @author Haralan Dobrev <hkdobrev@gmail.com>
- * @see https://api.slack.com/incoming-webhooks
- * @coversDefaultClass Monolog\Handler\SlackWebhookHandler
- */
-class SlackWebhookHandlerTest extends TestCase
-{
- const WEBHOOK_URL = 'https://hooks.slack.com/services/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E';
-
- /**
- * @covers ::__construct
- * @covers ::getSlackRecord
- */
- public function testConstructorMinimal()
- {
- $handler = new SlackWebhookHandler(self::WEBHOOK_URL);
- $record = $this->getRecord();
- $slackRecord = $handler->getSlackRecord();
- $this->assertInstanceOf('Monolog\Handler\Slack\SlackRecord', $slackRecord);
- $this->assertEquals(array(
- 'attachments' => array(
- array(
- 'fallback' => 'test',
- 'text' => 'test',
- 'color' => SlackRecord::COLOR_WARNING,
- 'fields' => array(
- array(
- 'title' => 'Level',
- 'value' => 'WARNING',
- 'short' => false,
- ),
- ),
- 'title' => 'Message',
- 'mrkdwn_in' => array('fields'),
- 'ts' => $record['datetime']->getTimestamp(),
- ),
- ),
- ), $slackRecord->getSlackData($record));
- }
-
- /**
- * @covers ::__construct
- * @covers ::getSlackRecord
- */
- public function testConstructorFull()
- {
- $handler = new SlackWebhookHandler(
- self::WEBHOOK_URL,
- 'test-channel',
- 'test-username',
- false,
- ':ghost:',
- false,
- false,
- Logger::DEBUG,
- false
- );
-
- $slackRecord = $handler->getSlackRecord();
- $this->assertInstanceOf('Monolog\Handler\Slack\SlackRecord', $slackRecord);
- $this->assertEquals(array(
- 'username' => 'test-username',
- 'text' => 'test',
- 'channel' => 'test-channel',
- 'icon_emoji' => ':ghost:',
- ), $slackRecord->getSlackData($this->getRecord()));
- }
-
- /**
- * @covers ::getFormatter
- */
- public function testGetFormatter()
- {
- $handler = new SlackWebhookHandler(self::WEBHOOK_URL);
- $formatter = $handler->getFormatter();
- $this->assertInstanceOf('Monolog\Formatter\FormatterInterface', $formatter);
- }
-
- /**
- * @covers ::setFormatter
- */
- public function testSetFormatter()
- {
- $handler = new SlackWebhookHandler(self::WEBHOOK_URL);
- $formatter = new LineFormatter();
- $handler->setFormatter($formatter);
- $this->assertSame($formatter, $handler->getFormatter());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackbotHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackbotHandlerTest.php
deleted file mode 100644
index b1b02bde..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SlackbotHandlerTest.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @author Haralan Dobrev <hkdobrev@gmail.com>
- * @see https://slack.com/apps/A0F81R8ET-slackbot
- * @coversDefaultClass Monolog\Handler\SlackbotHandler
- */
-class SlackbotHandlerTest extends TestCase
-{
- /**
- * @covers ::__construct
- */
- public function testConstructorMinimal()
- {
- $handler = new SlackbotHandler('test-team', 'test-token', 'test-channel');
- $this->assertInstanceOf('Monolog\Handler\AbstractProcessingHandler', $handler);
- }
-
- /**
- * @covers ::__construct
- */
- public function testConstructorFull()
- {
- $handler = new SlackbotHandler(
- 'test-team',
- 'test-token',
- 'test-channel',
- Logger::DEBUG,
- false
- );
- $this->assertInstanceOf('Monolog\Handler\AbstractProcessingHandler', $handler);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php
deleted file mode 100644
index 1f9c1f28..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php
+++ /dev/null
@@ -1,309 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @author Pablo de Leon Belloc <pablolb@gmail.com>
- */
-class SocketHandlerTest extends TestCase
-{
- /**
- * @var Monolog\Handler\SocketHandler
- */
- private $handler;
-
- /**
- * @var resource
- */
- private $res;
-
- /**
- * @expectedException UnexpectedValueException
- */
- public function testInvalidHostname()
- {
- $this->createHandler('garbage://here');
- $this->writeRecord('data');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testBadConnectionTimeout()
- {
- $this->createHandler('localhost:1234');
- $this->handler->setConnectionTimeout(-1);
- }
-
- public function testSetConnectionTimeout()
- {
- $this->createHandler('localhost:1234');
- $this->handler->setConnectionTimeout(10.1);
- $this->assertEquals(10.1, $this->handler->getConnectionTimeout());
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testBadTimeout()
- {
- $this->createHandler('localhost:1234');
- $this->handler->setTimeout(-1);
- }
-
- public function testSetTimeout()
- {
- $this->createHandler('localhost:1234');
- $this->handler->setTimeout(10.25);
- $this->assertEquals(10.25, $this->handler->getTimeout());
- }
-
- public function testSetWritingTimeout()
- {
- $this->createHandler('localhost:1234');
- $this->handler->setWritingTimeout(10.25);
- $this->assertEquals(10.25, $this->handler->getWritingTimeout());
- }
-
- public function testSetConnectionString()
- {
- $this->createHandler('tcp://localhost:9090');
- $this->assertEquals('tcp://localhost:9090', $this->handler->getConnectionString());
- }
-
- /**
- * @expectedException UnexpectedValueException
- */
- public function testExceptionIsThrownOnFsockopenError()
- {
- $this->setMockHandler(array('fsockopen'));
- $this->handler->expects($this->once())
- ->method('fsockopen')
- ->will($this->returnValue(false));
- $this->writeRecord('Hello world');
- }
-
- /**
- * @expectedException UnexpectedValueException
- */
- public function testExceptionIsThrownOnPfsockopenError()
- {
- $this->setMockHandler(array('pfsockopen'));
- $this->handler->expects($this->once())
- ->method('pfsockopen')
- ->will($this->returnValue(false));
- $this->handler->setPersistent(true);
- $this->writeRecord('Hello world');
- }
-
- /**
- * @expectedException UnexpectedValueException
- */
- public function testExceptionIsThrownIfCannotSetTimeout()
- {
- $this->setMockHandler(array('streamSetTimeout'));
- $this->handler->expects($this->once())
- ->method('streamSetTimeout')
- ->will($this->returnValue(false));
- $this->writeRecord('Hello world');
- }
-
- /**
- * @expectedException RuntimeException
- */
- public function testWriteFailsOnIfFwriteReturnsFalse()
- {
- $this->setMockHandler(array('fwrite'));
-
- $callback = function ($arg) {
- $map = array(
- 'Hello world' => 6,
- 'world' => false,
- );
-
- return $map[$arg];
- };
-
- $this->handler->expects($this->exactly(2))
- ->method('fwrite')
- ->will($this->returnCallback($callback));
-
- $this->writeRecord('Hello world');
- }
-
- /**
- * @expectedException RuntimeException
- */
- public function testWriteFailsIfStreamTimesOut()
- {
- $this->setMockHandler(array('fwrite', 'streamGetMetadata'));
-
- $callback = function ($arg) {
- $map = array(
- 'Hello world' => 6,
- 'world' => 5,
- );
-
- return $map[$arg];
- };
-
- $this->handler->expects($this->exactly(1))
- ->method('fwrite')
- ->will($this->returnCallback($callback));
- $this->handler->expects($this->exactly(1))
- ->method('streamGetMetadata')
- ->will($this->returnValue(array('timed_out' => true)));
-
- $this->writeRecord('Hello world');
- }
-
- /**
- * @expectedException RuntimeException
- */
- public function testWriteFailsOnIncompleteWrite()
- {
- $this->setMockHandler(array('fwrite', 'streamGetMetadata'));
-
- $res = $this->res;
- $callback = function ($string) use ($res) {
- fclose($res);
-
- return strlen('Hello');
- };
-
- $this->handler->expects($this->exactly(1))
- ->method('fwrite')
- ->will($this->returnCallback($callback));
- $this->handler->expects($this->exactly(1))
- ->method('streamGetMetadata')
- ->will($this->returnValue(array('timed_out' => false)));
-
- $this->writeRecord('Hello world');
- }
-
- public function testWriteWithMemoryFile()
- {
- $this->setMockHandler();
- $this->writeRecord('test1');
- $this->writeRecord('test2');
- $this->writeRecord('test3');
- fseek($this->res, 0);
- $this->assertEquals('test1test2test3', fread($this->res, 1024));
- }
-
- public function testWriteWithMock()
- {
- $this->setMockHandler(array('fwrite'));
-
- $callback = function ($arg) {
- $map = array(
- 'Hello world' => 6,
- 'world' => 5,
- );
-
- return $map[$arg];
- };
-
- $this->handler->expects($this->exactly(2))
- ->method('fwrite')
- ->will($this->returnCallback($callback));
-
- $this->writeRecord('Hello world');
- }
-
- public function testClose()
- {
- $this->setMockHandler();
- $this->writeRecord('Hello world');
- $this->assertInternalType('resource', $this->res);
- $this->handler->close();
- $this->assertFalse(is_resource($this->res), "Expected resource to be closed after closing handler");
- }
-
- public function testCloseDoesNotClosePersistentSocket()
- {
- $this->setMockHandler();
- $this->handler->setPersistent(true);
- $this->writeRecord('Hello world');
- $this->assertTrue(is_resource($this->res));
- $this->handler->close();
- $this->assertTrue(is_resource($this->res));
- }
-
- /**
- * @expectedException \RuntimeException
- */
- public function testAvoidInfiniteLoopWhenNoDataIsWrittenForAWritingTimeoutSeconds()
- {
- $this->setMockHandler(array('fwrite', 'streamGetMetadata'));
-
- $this->handler->expects($this->any())
- ->method('fwrite')
- ->will($this->returnValue(0));
-
- $this->handler->expects($this->any())
- ->method('streamGetMetadata')
- ->will($this->returnValue(array('timed_out' => false)));
-
- $this->handler->setWritingTimeout(1);
-
- $this->writeRecord('Hello world');
- }
-
- private function createHandler($connectionString)
- {
- $this->handler = new SocketHandler($connectionString);
- $this->handler->setFormatter($this->getIdentityFormatter());
- }
-
- private function writeRecord($string)
- {
- $this->handler->handle($this->getRecord(Logger::WARNING, $string));
- }
-
- private function setMockHandler(array $methods = array())
- {
- $this->res = fopen('php://memory', 'a');
-
- $defaultMethods = array('fsockopen', 'pfsockopen', 'streamSetTimeout');
- $newMethods = array_diff($methods, $defaultMethods);
-
- $finalMethods = array_merge($defaultMethods, $newMethods);
-
- $this->handler = $this->getMock(
- '\Monolog\Handler\SocketHandler', $finalMethods, array('localhost:1234')
- );
-
- if (!in_array('fsockopen', $methods)) {
- $this->handler->expects($this->any())
- ->method('fsockopen')
- ->will($this->returnValue($this->res));
- }
-
- if (!in_array('pfsockopen', $methods)) {
- $this->handler->expects($this->any())
- ->method('pfsockopen')
- ->will($this->returnValue($this->res));
- }
-
- if (!in_array('streamSetTimeout', $methods)) {
- $this->handler->expects($this->any())
- ->method('streamSetTimeout')
- ->will($this->returnValue(true));
- }
-
- $this->handler->setFormatter($this->getIdentityFormatter());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php
deleted file mode 100644
index 487030fe..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php
+++ /dev/null
@@ -1,184 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class StreamHandlerTest extends TestCase
-{
- /**
- * @covers Monolog\Handler\StreamHandler::__construct
- * @covers Monolog\Handler\StreamHandler::write
- */
- public function testWrite()
- {
- $handle = fopen('php://memory', 'a+');
- $handler = new StreamHandler($handle);
- $handler->setFormatter($this->getIdentityFormatter());
- $handler->handle($this->getRecord(Logger::WARNING, 'test'));
- $handler->handle($this->getRecord(Logger::WARNING, 'test2'));
- $handler->handle($this->getRecord(Logger::WARNING, 'test3'));
- fseek($handle, 0);
- $this->assertEquals('testtest2test3', fread($handle, 100));
- }
-
- /**
- * @covers Monolog\Handler\StreamHandler::close
- */
- public function testCloseKeepsExternalHandlersOpen()
- {
- $handle = fopen('php://memory', 'a+');
- $handler = new StreamHandler($handle);
- $this->assertTrue(is_resource($handle));
- $handler->close();
- $this->assertTrue(is_resource($handle));
- }
-
- /**
- * @covers Monolog\Handler\StreamHandler::close
- */
- public function testClose()
- {
- $handler = new StreamHandler('php://memory');
- $handler->handle($this->getRecord(Logger::WARNING, 'test'));
- $streamProp = new \ReflectionProperty('Monolog\Handler\StreamHandler', 'stream');
- $streamProp->setAccessible(true);
- $handle = $streamProp->getValue($handler);
-
- $this->assertTrue(is_resource($handle));
- $handler->close();
- $this->assertFalse(is_resource($handle));
- }
-
- /**
- * @covers Monolog\Handler\StreamHandler::write
- */
- public function testWriteCreatesTheStreamResource()
- {
- $handler = new StreamHandler('php://memory');
- $handler->handle($this->getRecord());
- }
-
- /**
- * @covers Monolog\Handler\StreamHandler::__construct
- * @covers Monolog\Handler\StreamHandler::write
- */
- public function testWriteLocking()
- {
- $temp = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'monolog_locked_log';
- $handler = new StreamHandler($temp, Logger::DEBUG, true, null, true);
- $handler->handle($this->getRecord());
- }
-
- /**
- * @expectedException LogicException
- * @covers Monolog\Handler\StreamHandler::__construct
- * @covers Monolog\Handler\StreamHandler::write
- */
- public function testWriteMissingResource()
- {
- $handler = new StreamHandler(null);
- $handler->handle($this->getRecord());
- }
-
- public function invalidArgumentProvider()
- {
- return array(
- array(1),
- array(array()),
- array(array('bogus://url')),
- );
- }
-
- /**
- * @dataProvider invalidArgumentProvider
- * @expectedException InvalidArgumentException
- * @covers Monolog\Handler\StreamHandler::__construct
- */
- public function testWriteInvalidArgument($invalidArgument)
- {
- $handler = new StreamHandler($invalidArgument);
- }
-
- /**
- * @expectedException UnexpectedValueException
- * @covers Monolog\Handler\StreamHandler::__construct
- * @covers Monolog\Handler\StreamHandler::write
- */
- public function testWriteInvalidResource()
- {
- $handler = new StreamHandler('bogus://url');
- $handler->handle($this->getRecord());
- }
-
- /**
- * @expectedException UnexpectedValueException
- * @covers Monolog\Handler\StreamHandler::__construct
- * @covers Monolog\Handler\StreamHandler::write
- */
- public function testWriteNonExistingResource()
- {
- $handler = new StreamHandler('ftp://foo/bar/baz/'.rand(0, 10000));
- $handler->handle($this->getRecord());
- }
-
- /**
- * @covers Monolog\Handler\StreamHandler::__construct
- * @covers Monolog\Handler\StreamHandler::write
- */
- public function testWriteNonExistingPath()
- {
- $handler = new StreamHandler(sys_get_temp_dir().'/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
- $handler->handle($this->getRecord());
- }
-
- /**
- * @covers Monolog\Handler\StreamHandler::__construct
- * @covers Monolog\Handler\StreamHandler::write
- */
- public function testWriteNonExistingFileResource()
- {
- $handler = new StreamHandler('file://'.sys_get_temp_dir().'/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
- $handler->handle($this->getRecord());
- }
-
- /**
- * @expectedException Exception
- * @expectedExceptionMessageRegExp /There is no existing directory at/
- * @covers Monolog\Handler\StreamHandler::__construct
- * @covers Monolog\Handler\StreamHandler::write
- */
- public function testWriteNonExistingAndNotCreatablePath()
- {
- if (defined('PHP_WINDOWS_VERSION_BUILD')) {
- $this->markTestSkipped('Permissions checks can not run on windows');
- }
- $handler = new StreamHandler('/foo/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
- $handler->handle($this->getRecord());
- }
-
- /**
- * @expectedException Exception
- * @expectedExceptionMessageRegExp /There is no existing directory at/
- * @covers Monolog\Handler\StreamHandler::__construct
- * @covers Monolog\Handler\StreamHandler::write
- */
- public function testWriteNonExistingAndNotCreatableFileResource()
- {
- if (defined('PHP_WINDOWS_VERSION_BUILD')) {
- $this->markTestSkipped('Permissions checks can not run on windows');
- }
- $handler = new StreamHandler('file:///foo/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
- $handler->handle($this->getRecord());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php
deleted file mode 100644
index 85886910..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-use Monolog\TestCase;
-
-class SwiftMailerHandlerTest extends TestCase
-{
- /** @var \Swift_Mailer|\PHPUnit_Framework_MockObject_MockObject */
- private $mailer;
-
- public function setUp()
- {
- $this->mailer = $this
- ->getMockBuilder('Swift_Mailer')
- ->disableOriginalConstructor()
- ->getMock();
- }
-
- public function testMessageCreationIsLazyWhenUsingCallback()
- {
- $this->mailer->expects($this->never())
- ->method('send');
-
- $callback = function () {
- throw new \RuntimeException('Swift_Message creation callback should not have been called in this test');
- };
- $handler = new SwiftMailerHandler($this->mailer, $callback);
-
- $records = array(
- $this->getRecord(Logger::DEBUG),
- $this->getRecord(Logger::INFO),
- );
- $handler->handleBatch($records);
- }
-
- public function testMessageCanBeCustomizedGivenLoggedData()
- {
- // Wire Mailer to expect a specific Swift_Message with a customized Subject
- $expectedMessage = new \Swift_Message();
- $this->mailer->expects($this->once())
- ->method('send')
- ->with($this->callback(function ($value) use ($expectedMessage) {
- return $value instanceof \Swift_Message
- && $value->getSubject() === 'Emergency'
- && $value === $expectedMessage;
- }));
-
- // Callback dynamically changes subject based on number of logged records
- $callback = function ($content, array $records) use ($expectedMessage) {
- $subject = count($records) > 0 ? 'Emergency' : 'Normal';
- $expectedMessage->setSubject($subject);
-
- return $expectedMessage;
- };
- $handler = new SwiftMailerHandler($this->mailer, $callback);
-
- // Logging 1 record makes this an Emergency
- $records = array(
- $this->getRecord(Logger::EMERGENCY),
- );
- $handler->handleBatch($records);
- }
-
- public function testMessageSubjectFormatting()
- {
- // Wire Mailer to expect a specific Swift_Message with a customized Subject
- $messageTemplate = new \Swift_Message();
- $messageTemplate->setSubject('Alert: %level_name% %message%');
- $receivedMessage = null;
-
- $this->mailer->expects($this->once())
- ->method('send')
- ->with($this->callback(function ($value) use (&$receivedMessage) {
- $receivedMessage = $value;
- return true;
- }));
-
- $handler = new SwiftMailerHandler($this->mailer, $messageTemplate);
-
- $records = array(
- $this->getRecord(Logger::EMERGENCY),
- );
- $handler->handleBatch($records);
-
- $this->assertEquals('Alert: EMERGENCY test', $receivedMessage->getSubject());
- }
-
- public function testMessageHaveUniqueId()
- {
- $messageTemplate = \Swift_Message::newInstance();
- $handler = new SwiftMailerHandler($this->mailer, $messageTemplate);
-
- $method = new \ReflectionMethod('Monolog\Handler\SwiftMailerHandler', 'buildMessage');
- $method->setAccessible(true);
- $method->invokeArgs($handler, array($messageTemplate, array()));
-
- $builtMessage1 = $method->invoke($handler, $messageTemplate, array());
- $builtMessage2 = $method->invoke($handler, $messageTemplate, array());
-
- $this->assertFalse($builtMessage1->getId() === $builtMessage2->getId(), 'Two different messages have the same id');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php
deleted file mode 100644
index 8f9e46bf..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\Logger;
-
-class SyslogHandlerTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @covers Monolog\Handler\SyslogHandler::__construct
- */
- public function testConstruct()
- {
- $handler = new SyslogHandler('test');
- $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
-
- $handler = new SyslogHandler('test', LOG_USER);
- $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
-
- $handler = new SyslogHandler('test', 'user');
- $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
-
- $handler = new SyslogHandler('test', LOG_USER, Logger::DEBUG, true, LOG_PERROR);
- $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
- }
-
- /**
- * @covers Monolog\Handler\SyslogHandler::__construct
- */
- public function testConstructInvalidFacility()
- {
- $this->setExpectedException('UnexpectedValueException');
- $handler = new SyslogHandler('test', 'unknown');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php
deleted file mode 100644
index aa4a3341..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-
-/**
- * @requires extension sockets
- */
-class SyslogUdpHandlerTest extends TestCase
-{
- /**
- * @expectedException UnexpectedValueException
- */
- public function testWeValidateFacilities()
- {
- $handler = new SyslogUdpHandler("ip", null, "invalidFacility");
- }
-
- public function testWeSplitIntoLines()
- {
- $handler = new SyslogUdpHandler("127.0.0.1", 514, "authpriv");
- $handler->setFormatter(new \Monolog\Formatter\ChromePHPFormatter());
-
- $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('write'), array('lol', 'lol'));
- $socket->expects($this->at(0))
- ->method('write')
- ->with("lol", "<".(LOG_AUTHPRIV + LOG_WARNING).">1 ");
- $socket->expects($this->at(1))
- ->method('write')
- ->with("hej", "<".(LOG_AUTHPRIV + LOG_WARNING).">1 ");
-
- $handler->setSocket($socket);
-
- $handler->handle($this->getRecordWithMessage("hej\nlol"));
- }
-
- public function testSplitWorksOnEmptyMsg()
- {
- $handler = new SyslogUdpHandler("127.0.0.1", 514, "authpriv");
- $handler->setFormatter($this->getIdentityFormatter());
-
- $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('write'), array('lol', 'lol'));
- $socket->expects($this->never())
- ->method('write');
-
- $handler->setSocket($socket);
-
- $handler->handle($this->getRecordWithMessage(null));
- }
-
- protected function getRecordWithMessage($msg)
- {
- return array('message' => $msg, 'level' => \Monolog\Logger::WARNING, 'context' => null, 'extra' => array(), 'channel' => 'lol');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php
deleted file mode 100644
index bfb8d3df..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-/**
- * @covers Monolog\Handler\TestHandler
- */
-class TestHandlerTest extends TestCase
-{
- /**
- * @dataProvider methodProvider
- */
- public function testHandler($method, $level)
- {
- $handler = new TestHandler;
- $record = $this->getRecord($level, 'test'.$method);
- $this->assertFalse($handler->hasRecords($level));
- $this->assertFalse($handler->hasRecord($record, $level));
- $this->assertFalse($handler->{'has'.$method}($record), 'has'.$method);
- $this->assertFalse($handler->{'has'.$method.'ThatContains'}('test'), 'has'.$method.'ThatContains');
- $this->assertFalse($handler->{'has'.$method.'ThatPasses'}(function ($rec) {
- return true;
- }), 'has'.$method.'ThatPasses');
- $this->assertFalse($handler->{'has'.$method.'ThatMatches'}('/test\w+/'));
- $this->assertFalse($handler->{'has'.$method.'Records'}(), 'has'.$method.'Records');
- $handler->handle($record);
-
- $this->assertFalse($handler->{'has'.$method}('bar'), 'has'.$method);
- $this->assertTrue($handler->hasRecords($level));
- $this->assertTrue($handler->hasRecord($record, $level));
- $this->assertTrue($handler->{'has'.$method}($record), 'has'.$method);
- $this->assertTrue($handler->{'has'.$method}('test'.$method), 'has'.$method);
- $this->assertTrue($handler->{'has'.$method.'ThatContains'}('test'), 'has'.$method.'ThatContains');
- $this->assertTrue($handler->{'has'.$method.'ThatPasses'}(function ($rec) {
- return true;
- }), 'has'.$method.'ThatPasses');
- $this->assertTrue($handler->{'has'.$method.'ThatMatches'}('/test\w+/'));
- $this->assertTrue($handler->{'has'.$method.'Records'}(), 'has'.$method.'Records');
-
- $records = $handler->getRecords();
- unset($records[0]['formatted']);
- $this->assertEquals(array($record), $records);
- }
-
- public function methodProvider()
- {
- return array(
- array('Emergency', Logger::EMERGENCY),
- array('Alert' , Logger::ALERT),
- array('Critical' , Logger::CRITICAL),
- array('Error' , Logger::ERROR),
- array('Warning' , Logger::WARNING),
- array('Info' , Logger::INFO),
- array('Notice' , Logger::NOTICE),
- array('Debug' , Logger::DEBUG),
- );
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php
deleted file mode 100644
index fa524d00..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Handler\SyslogUdp\UdpSocket;
-
-/**
- * @requires extension sockets
- */
-class UdpSocketTest extends TestCase
-{
- public function testWeDoNotTruncateShortMessages()
- {
- $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol'));
-
- $socket->expects($this->at(0))
- ->method('send')
- ->with("HEADER: The quick brown fox jumps over the lazy dog");
-
- $socket->write("The quick brown fox jumps over the lazy dog", "HEADER: ");
- }
-
- public function testLongMessagesAreTruncated()
- {
- $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol'));
-
- $truncatedString = str_repeat("derp", 16254).'d';
-
- $socket->expects($this->exactly(1))
- ->method('send')
- ->with("HEADER" . $truncatedString);
-
- $longString = str_repeat("derp", 20000);
-
- $socket->write($longString, "HEADER");
- }
-
- public function testDoubleCloseDoesNotError()
- {
- $socket = new UdpSocket('127.0.0.1', 514);
- $socket->close();
- $socket->close();
- }
-
- /**
- * @expectedException LogicException
- */
- public function testWriteAfterCloseErrors()
- {
- $socket = new UdpSocket('127.0.0.1', 514);
- $socket->close();
- $socket->write('foo', "HEADER");
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php
deleted file mode 100644
index 8d37a1fc..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-use Monolog\Logger;
-
-class WhatFailureGroupHandlerTest extends TestCase
-{
- /**
- * @covers Monolog\Handler\WhatFailureGroupHandler::__construct
- * @expectedException InvalidArgumentException
- */
- public function testConstructorOnlyTakesHandler()
- {
- new WhatFailureGroupHandler(array(new TestHandler(), "foo"));
- }
-
- /**
- * @covers Monolog\Handler\WhatFailureGroupHandler::__construct
- * @covers Monolog\Handler\WhatFailureGroupHandler::handle
- */
- public function testHandle()
- {
- $testHandlers = array(new TestHandler(), new TestHandler());
- $handler = new WhatFailureGroupHandler($testHandlers);
- $handler->handle($this->getRecord(Logger::DEBUG));
- $handler->handle($this->getRecord(Logger::INFO));
- foreach ($testHandlers as $test) {
- $this->assertTrue($test->hasDebugRecords());
- $this->assertTrue($test->hasInfoRecords());
- $this->assertTrue(count($test->getRecords()) === 2);
- }
- }
-
- /**
- * @covers Monolog\Handler\WhatFailureGroupHandler::handleBatch
- */
- public function testHandleBatch()
- {
- $testHandlers = array(new TestHandler(), new TestHandler());
- $handler = new WhatFailureGroupHandler($testHandlers);
- $handler->handleBatch(array($this->getRecord(Logger::DEBUG), $this->getRecord(Logger::INFO)));
- foreach ($testHandlers as $test) {
- $this->assertTrue($test->hasDebugRecords());
- $this->assertTrue($test->hasInfoRecords());
- $this->assertTrue(count($test->getRecords()) === 2);
- }
- }
-
- /**
- * @covers Monolog\Handler\WhatFailureGroupHandler::isHandling
- */
- public function testIsHandling()
- {
- $testHandlers = array(new TestHandler(Logger::ERROR), new TestHandler(Logger::WARNING));
- $handler = new WhatFailureGroupHandler($testHandlers);
- $this->assertTrue($handler->isHandling($this->getRecord(Logger::ERROR)));
- $this->assertTrue($handler->isHandling($this->getRecord(Logger::WARNING)));
- $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
- }
-
- /**
- * @covers Monolog\Handler\WhatFailureGroupHandler::handle
- */
- public function testHandleUsesProcessors()
- {
- $test = new TestHandler();
- $handler = new WhatFailureGroupHandler(array($test));
- $handler->pushProcessor(function ($record) {
- $record['extra']['foo'] = true;
-
- return $record;
- });
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertTrue($test->hasWarningRecords());
- $records = $test->getRecords();
- $this->assertTrue($records[0]['extra']['foo']);
- }
-
- /**
- * @covers Monolog\Handler\WhatFailureGroupHandler::handle
- */
- public function testHandleException()
- {
- $test = new TestHandler();
- $exception = new ExceptionTestHandler();
- $handler = new WhatFailureGroupHandler(array($exception, $test, $exception));
- $handler->pushProcessor(function ($record) {
- $record['extra']['foo'] = true;
-
- return $record;
- });
- $handler->handle($this->getRecord(Logger::WARNING));
- $this->assertTrue($test->hasWarningRecords());
- $records = $test->getRecords();
- $this->assertTrue($records[0]['extra']['foo']);
- }
-}
-
-class ExceptionTestHandler extends TestHandler
-{
- /**
- * {@inheritdoc}
- */
- public function handle(array $record)
- {
- parent::handle($record);
-
- throw new \Exception("ExceptionTestHandler::handle");
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php
deleted file mode 100644
index 69b001ea..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Handler;
-
-use Monolog\TestCase;
-
-class ZendMonitorHandlerTest extends TestCase
-{
- protected $zendMonitorHandler;
-
- public function setUp()
- {
- if (!function_exists('zend_monitor_custom_event')) {
- $this->markTestSkipped('ZendServer is not installed');
- }
- }
-
- /**
- * @covers Monolog\Handler\ZendMonitorHandler::write
- */
- public function testWrite()
- {
- $record = $this->getRecord();
- $formatterResult = array(
- 'message' => $record['message'],
- );
-
- $zendMonitor = $this->getMockBuilder('Monolog\Handler\ZendMonitorHandler')
- ->setMethods(array('writeZendMonitorCustomEvent', 'getDefaultFormatter'))
- ->getMock();
-
- $formatterMock = $this->getMockBuilder('Monolog\Formatter\NormalizerFormatter')
- ->disableOriginalConstructor()
- ->getMock();
-
- $formatterMock->expects($this->once())
- ->method('format')
- ->will($this->returnValue($formatterResult));
-
- $zendMonitor->expects($this->once())
- ->method('getDefaultFormatter')
- ->will($this->returnValue($formatterMock));
-
- $levelMap = $zendMonitor->getLevelMap();
-
- $zendMonitor->expects($this->once())
- ->method('writeZendMonitorCustomEvent')
- ->with($levelMap[$record['level']], $record['message'], $formatterResult);
-
- $zendMonitor->handle($record);
- }
-
- /**
- * @covers Monolog\Handler\ZendMonitorHandler::getDefaultFormatter
- */
- public function testGetDefaultFormatterReturnsNormalizerFormatter()
- {
- $zendMonitor = new ZendMonitorHandler();
- $this->assertInstanceOf('Monolog\Formatter\NormalizerFormatter', $zendMonitor->getDefaultFormatter());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/LoggerTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/LoggerTest.php
deleted file mode 100644
index 1ecc34a0..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/LoggerTest.php
+++ /dev/null
@@ -1,548 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-use Monolog\Processor\WebProcessor;
-use Monolog\Handler\TestHandler;
-
-class LoggerTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @covers Monolog\Logger::getName
- */
- public function testGetName()
- {
- $logger = new Logger('foo');
- $this->assertEquals('foo', $logger->getName());
- }
-
- /**
- * @covers Monolog\Logger::getLevelName
- */
- public function testGetLevelName()
- {
- $this->assertEquals('ERROR', Logger::getLevelName(Logger::ERROR));
- }
-
- /**
- * @covers Monolog\Logger::withName
- */
- public function testWithName()
- {
- $first = new Logger('first', array($handler = new TestHandler()));
- $second = $first->withName('second');
-
- $this->assertSame('first', $first->getName());
- $this->assertSame('second', $second->getName());
- $this->assertSame($handler, $second->popHandler());
- }
-
- /**
- * @covers Monolog\Logger::toMonologLevel
- */
- public function testConvertPSR3ToMonologLevel()
- {
- $this->assertEquals(Logger::toMonologLevel('debug'), 100);
- $this->assertEquals(Logger::toMonologLevel('info'), 200);
- $this->assertEquals(Logger::toMonologLevel('notice'), 250);
- $this->assertEquals(Logger::toMonologLevel('warning'), 300);
- $this->assertEquals(Logger::toMonologLevel('error'), 400);
- $this->assertEquals(Logger::toMonologLevel('critical'), 500);
- $this->assertEquals(Logger::toMonologLevel('alert'), 550);
- $this->assertEquals(Logger::toMonologLevel('emergency'), 600);
- }
-
- /**
- * @covers Monolog\Logger::getLevelName
- * @expectedException InvalidArgumentException
- */
- public function testGetLevelNameThrows()
- {
- Logger::getLevelName(5);
- }
-
- /**
- * @covers Monolog\Logger::__construct
- */
- public function testChannel()
- {
- $logger = new Logger('foo');
- $handler = new TestHandler;
- $logger->pushHandler($handler);
- $logger->addWarning('test');
- list($record) = $handler->getRecords();
- $this->assertEquals('foo', $record['channel']);
- }
-
- /**
- * @covers Monolog\Logger::addRecord
- */
- public function testLog()
- {
- $logger = new Logger(__METHOD__);
-
- $handler = $this->getMock('Monolog\Handler\NullHandler', array('handle'));
- $handler->expects($this->once())
- ->method('handle');
- $logger->pushHandler($handler);
-
- $this->assertTrue($logger->addWarning('test'));
- }
-
- /**
- * @covers Monolog\Logger::addRecord
- */
- public function testLogNotHandled()
- {
- $logger = new Logger(__METHOD__);
-
- $handler = $this->getMock('Monolog\Handler\NullHandler', array('handle'), array(Logger::ERROR));
- $handler->expects($this->never())
- ->method('handle');
- $logger->pushHandler($handler);
-
- $this->assertFalse($logger->addWarning('test'));
- }
-
- public function testHandlersInCtor()
- {
- $handler1 = new TestHandler;
- $handler2 = new TestHandler;
- $logger = new Logger(__METHOD__, array($handler1, $handler2));
-
- $this->assertEquals($handler1, $logger->popHandler());
- $this->assertEquals($handler2, $logger->popHandler());
- }
-
- public function testProcessorsInCtor()
- {
- $processor1 = new WebProcessor;
- $processor2 = new WebProcessor;
- $logger = new Logger(__METHOD__, array(), array($processor1, $processor2));
-
- $this->assertEquals($processor1, $logger->popProcessor());
- $this->assertEquals($processor2, $logger->popProcessor());
- }
-
- /**
- * @covers Monolog\Logger::pushHandler
- * @covers Monolog\Logger::popHandler
- * @expectedException LogicException
- */
- public function testPushPopHandler()
- {
- $logger = new Logger(__METHOD__);
- $handler1 = new TestHandler;
- $handler2 = new TestHandler;
-
- $logger->pushHandler($handler1);
- $logger->pushHandler($handler2);
-
- $this->assertEquals($handler2, $logger->popHandler());
- $this->assertEquals($handler1, $logger->popHandler());
- $logger->popHandler();
- }
-
- /**
- * @covers Monolog\Logger::setHandlers
- */
- public function testSetHandlers()
- {
- $logger = new Logger(__METHOD__);
- $handler1 = new TestHandler;
- $handler2 = new TestHandler;
-
- $logger->pushHandler($handler1);
- $logger->setHandlers(array($handler2));
-
- // handler1 has been removed
- $this->assertEquals(array($handler2), $logger->getHandlers());
-
- $logger->setHandlers(array(
- "AMapKey" => $handler1,
- "Woop" => $handler2,
- ));
-
- // Keys have been scrubbed
- $this->assertEquals(array($handler1, $handler2), $logger->getHandlers());
- }
-
- /**
- * @covers Monolog\Logger::pushProcessor
- * @covers Monolog\Logger::popProcessor
- * @expectedException LogicException
- */
- public function testPushPopProcessor()
- {
- $logger = new Logger(__METHOD__);
- $processor1 = new WebProcessor;
- $processor2 = new WebProcessor;
-
- $logger->pushProcessor($processor1);
- $logger->pushProcessor($processor2);
-
- $this->assertEquals($processor2, $logger->popProcessor());
- $this->assertEquals($processor1, $logger->popProcessor());
- $logger->popProcessor();
- }
-
- /**
- * @covers Monolog\Logger::pushProcessor
- * @expectedException InvalidArgumentException
- */
- public function testPushProcessorWithNonCallable()
- {
- $logger = new Logger(__METHOD__);
-
- $logger->pushProcessor(new \stdClass());
- }
-
- /**
- * @covers Monolog\Logger::addRecord
- */
- public function testProcessorsAreExecuted()
- {
- $logger = new Logger(__METHOD__);
- $handler = new TestHandler;
- $logger->pushHandler($handler);
- $logger->pushProcessor(function ($record) {
- $record['extra']['win'] = true;
-
- return $record;
- });
- $logger->addError('test');
- list($record) = $handler->getRecords();
- $this->assertTrue($record['extra']['win']);
- }
-
- /**
- * @covers Monolog\Logger::addRecord
- */
- public function testProcessorsAreCalledOnlyOnce()
- {
- $logger = new Logger(__METHOD__);
- $handler = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler->expects($this->any())
- ->method('isHandling')
- ->will($this->returnValue(true))
- ;
- $handler->expects($this->any())
- ->method('handle')
- ->will($this->returnValue(true))
- ;
- $logger->pushHandler($handler);
-
- $processor = $this->getMockBuilder('Monolog\Processor\WebProcessor')
- ->disableOriginalConstructor()
- ->setMethods(array('__invoke'))
- ->getMock()
- ;
- $processor->expects($this->once())
- ->method('__invoke')
- ->will($this->returnArgument(0))
- ;
- $logger->pushProcessor($processor);
-
- $logger->addError('test');
- }
-
- /**
- * @covers Monolog\Logger::addRecord
- */
- public function testProcessorsNotCalledWhenNotHandled()
- {
- $logger = new Logger(__METHOD__);
- $handler = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler->expects($this->once())
- ->method('isHandling')
- ->will($this->returnValue(false))
- ;
- $logger->pushHandler($handler);
- $that = $this;
- $logger->pushProcessor(function ($record) use ($that) {
- $that->fail('The processor should not be called');
- });
- $logger->addAlert('test');
- }
-
- /**
- * @covers Monolog\Logger::addRecord
- */
- public function testHandlersNotCalledBeforeFirstHandling()
- {
- $logger = new Logger(__METHOD__);
-
- $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler1->expects($this->never())
- ->method('isHandling')
- ->will($this->returnValue(false))
- ;
- $handler1->expects($this->once())
- ->method('handle')
- ->will($this->returnValue(false))
- ;
- $logger->pushHandler($handler1);
-
- $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler2->expects($this->once())
- ->method('isHandling')
- ->will($this->returnValue(true))
- ;
- $handler2->expects($this->once())
- ->method('handle')
- ->will($this->returnValue(false))
- ;
- $logger->pushHandler($handler2);
-
- $handler3 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler3->expects($this->once())
- ->method('isHandling')
- ->will($this->returnValue(false))
- ;
- $handler3->expects($this->never())
- ->method('handle')
- ;
- $logger->pushHandler($handler3);
-
- $logger->debug('test');
- }
-
- /**
- * @covers Monolog\Logger::addRecord
- */
- public function testHandlersNotCalledBeforeFirstHandlingWithAssocArray()
- {
- $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler1->expects($this->never())
- ->method('isHandling')
- ->will($this->returnValue(false))
- ;
- $handler1->expects($this->once())
- ->method('handle')
- ->will($this->returnValue(false))
- ;
-
- $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler2->expects($this->once())
- ->method('isHandling')
- ->will($this->returnValue(true))
- ;
- $handler2->expects($this->once())
- ->method('handle')
- ->will($this->returnValue(false))
- ;
-
- $handler3 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler3->expects($this->once())
- ->method('isHandling')
- ->will($this->returnValue(false))
- ;
- $handler3->expects($this->never())
- ->method('handle')
- ;
-
- $logger = new Logger(__METHOD__, array('last' => $handler3, 'second' => $handler2, 'first' => $handler1));
-
- $logger->debug('test');
- }
-
- /**
- * @covers Monolog\Logger::addRecord
- */
- public function testBubblingWhenTheHandlerReturnsFalse()
- {
- $logger = new Logger(__METHOD__);
-
- $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler1->expects($this->any())
- ->method('isHandling')
- ->will($this->returnValue(true))
- ;
- $handler1->expects($this->once())
- ->method('handle')
- ->will($this->returnValue(false))
- ;
- $logger->pushHandler($handler1);
-
- $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler2->expects($this->any())
- ->method('isHandling')
- ->will($this->returnValue(true))
- ;
- $handler2->expects($this->once())
- ->method('handle')
- ->will($this->returnValue(false))
- ;
- $logger->pushHandler($handler2);
-
- $logger->debug('test');
- }
-
- /**
- * @covers Monolog\Logger::addRecord
- */
- public function testNotBubblingWhenTheHandlerReturnsTrue()
- {
- $logger = new Logger(__METHOD__);
-
- $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler1->expects($this->any())
- ->method('isHandling')
- ->will($this->returnValue(true))
- ;
- $handler1->expects($this->never())
- ->method('handle')
- ;
- $logger->pushHandler($handler1);
-
- $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler2->expects($this->any())
- ->method('isHandling')
- ->will($this->returnValue(true))
- ;
- $handler2->expects($this->once())
- ->method('handle')
- ->will($this->returnValue(true))
- ;
- $logger->pushHandler($handler2);
-
- $logger->debug('test');
- }
-
- /**
- * @covers Monolog\Logger::isHandling
- */
- public function testIsHandling()
- {
- $logger = new Logger(__METHOD__);
-
- $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler1->expects($this->any())
- ->method('isHandling')
- ->will($this->returnValue(false))
- ;
-
- $logger->pushHandler($handler1);
- $this->assertFalse($logger->isHandling(Logger::DEBUG));
-
- $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
- $handler2->expects($this->any())
- ->method('isHandling')
- ->will($this->returnValue(true))
- ;
-
- $logger->pushHandler($handler2);
- $this->assertTrue($logger->isHandling(Logger::DEBUG));
- }
-
- /**
- * @dataProvider logMethodProvider
- * @covers Monolog\Logger::addDebug
- * @covers Monolog\Logger::addInfo
- * @covers Monolog\Logger::addNotice
- * @covers Monolog\Logger::addWarning
- * @covers Monolog\Logger::addError
- * @covers Monolog\Logger::addCritical
- * @covers Monolog\Logger::addAlert
- * @covers Monolog\Logger::addEmergency
- * @covers Monolog\Logger::debug
- * @covers Monolog\Logger::info
- * @covers Monolog\Logger::notice
- * @covers Monolog\Logger::warn
- * @covers Monolog\Logger::err
- * @covers Monolog\Logger::crit
- * @covers Monolog\Logger::alert
- * @covers Monolog\Logger::emerg
- */
- public function testLogMethods($method, $expectedLevel)
- {
- $logger = new Logger('foo');
- $handler = new TestHandler;
- $logger->pushHandler($handler);
- $logger->{$method}('test');
- list($record) = $handler->getRecords();
- $this->assertEquals($expectedLevel, $record['level']);
- }
-
- public function logMethodProvider()
- {
- return array(
- // monolog methods
- array('addDebug', Logger::DEBUG),
- array('addInfo', Logger::INFO),
- array('addNotice', Logger::NOTICE),
- array('addWarning', Logger::WARNING),
- array('addError', Logger::ERROR),
- array('addCritical', Logger::CRITICAL),
- array('addAlert', Logger::ALERT),
- array('addEmergency', Logger::EMERGENCY),
-
- // ZF/Sf2 compat methods
- array('debug', Logger::DEBUG),
- array('info', Logger::INFO),
- array('notice', Logger::NOTICE),
- array('warn', Logger::WARNING),
- array('err', Logger::ERROR),
- array('crit', Logger::CRITICAL),
- array('alert', Logger::ALERT),
- array('emerg', Logger::EMERGENCY),
- );
- }
-
- /**
- * @dataProvider setTimezoneProvider
- * @covers Monolog\Logger::setTimezone
- */
- public function testSetTimezone($tz)
- {
- Logger::setTimezone($tz);
- $logger = new Logger('foo');
- $handler = new TestHandler;
- $logger->pushHandler($handler);
- $logger->info('test');
- list($record) = $handler->getRecords();
- $this->assertEquals($tz, $record['datetime']->getTimezone());
- }
-
- public function setTimezoneProvider()
- {
- return array_map(
- function ($tz) { return array(new \DateTimeZone($tz)); },
- \DateTimeZone::listIdentifiers()
- );
- }
-
- /**
- * @dataProvider useMicrosecondTimestampsProvider
- * @covers Monolog\Logger::useMicrosecondTimestamps
- * @covers Monolog\Logger::addRecord
- */
- public function testUseMicrosecondTimestamps($micro, $assert)
- {
- $logger = new Logger('foo');
- $logger->useMicrosecondTimestamps($micro);
- $handler = new TestHandler;
- $logger->pushHandler($handler);
- $logger->info('test');
- list($record) = $handler->getRecords();
- $this->{$assert}('000000', $record['datetime']->format('u'));
- }
-
- public function useMicrosecondTimestampsProvider()
- {
- return array(
- // this has a very small chance of a false negative (1/10^6)
- 'with microseconds' => array(true, 'assertNotSame'),
- 'without microseconds' => array(false, PHP_VERSION_ID >= 70100 ? 'assertNotSame' : 'assertSame'),
- );
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php
deleted file mode 100644
index 5adb505d..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class GitProcessorTest extends TestCase
-{
- /**
- * @covers Monolog\Processor\GitProcessor::__invoke
- */
- public function testProcessor()
- {
- $processor = new GitProcessor();
- $record = $processor($this->getRecord());
-
- $this->assertArrayHasKey('git', $record['extra']);
- $this->assertTrue(!is_array($record['extra']['git']['branch']));
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php
deleted file mode 100644
index 0dd411d7..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Acme;
-
-class Tester
-{
- public function test($handler, $record)
- {
- $handler->handle($record);
- }
-}
-
-function tester($handler, $record)
-{
- $handler->handle($record);
-}
-
-namespace Monolog\Processor;
-
-use Monolog\Logger;
-use Monolog\TestCase;
-use Monolog\Handler\TestHandler;
-
-class IntrospectionProcessorTest extends TestCase
-{
- public function getHandler()
- {
- $processor = new IntrospectionProcessor();
- $handler = new TestHandler();
- $handler->pushProcessor($processor);
-
- return $handler;
- }
-
- public function testProcessorFromClass()
- {
- $handler = $this->getHandler();
- $tester = new \Acme\Tester;
- $tester->test($handler, $this->getRecord());
- list($record) = $handler->getRecords();
- $this->assertEquals(__FILE__, $record['extra']['file']);
- $this->assertEquals(18, $record['extra']['line']);
- $this->assertEquals('Acme\Tester', $record['extra']['class']);
- $this->assertEquals('test', $record['extra']['function']);
- }
-
- public function testProcessorFromFunc()
- {
- $handler = $this->getHandler();
- \Acme\tester($handler, $this->getRecord());
- list($record) = $handler->getRecords();
- $this->assertEquals(__FILE__, $record['extra']['file']);
- $this->assertEquals(24, $record['extra']['line']);
- $this->assertEquals(null, $record['extra']['class']);
- $this->assertEquals('Acme\tester', $record['extra']['function']);
- }
-
- public function testLevelTooLow()
- {
- $input = array(
- 'level' => Logger::DEBUG,
- 'extra' => array(),
- );
-
- $expected = $input;
-
- $processor = new IntrospectionProcessor(Logger::CRITICAL);
- $actual = $processor($input);
-
- $this->assertEquals($expected, $actual);
- }
-
- public function testLevelEqual()
- {
- $input = array(
- 'level' => Logger::CRITICAL,
- 'extra' => array(),
- );
-
- $expected = $input;
- $expected['extra'] = array(
- 'file' => null,
- 'line' => null,
- 'class' => 'ReflectionMethod',
- 'function' => 'invokeArgs',
- );
-
- $processor = new IntrospectionProcessor(Logger::CRITICAL);
- $actual = $processor($input);
-
- $this->assertEquals($expected, $actual);
- }
-
- public function testLevelHigher()
- {
- $input = array(
- 'level' => Logger::EMERGENCY,
- 'extra' => array(),
- );
-
- $expected = $input;
- $expected['extra'] = array(
- 'file' => null,
- 'line' => null,
- 'class' => 'ReflectionMethod',
- 'function' => 'invokeArgs',
- );
-
- $processor = new IntrospectionProcessor(Logger::CRITICAL);
- $actual = $processor($input);
-
- $this->assertEquals($expected, $actual);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php
deleted file mode 100644
index eb666144..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class MemoryPeakUsageProcessorTest extends TestCase
-{
- /**
- * @covers Monolog\Processor\MemoryPeakUsageProcessor::__invoke
- * @covers Monolog\Processor\MemoryProcessor::formatBytes
- */
- public function testProcessor()
- {
- $processor = new MemoryPeakUsageProcessor();
- $record = $processor($this->getRecord());
- $this->assertArrayHasKey('memory_peak_usage', $record['extra']);
- $this->assertRegExp('#[0-9.]+ (M|K)?B$#', $record['extra']['memory_peak_usage']);
- }
-
- /**
- * @covers Monolog\Processor\MemoryPeakUsageProcessor::__invoke
- * @covers Monolog\Processor\MemoryProcessor::formatBytes
- */
- public function testProcessorWithoutFormatting()
- {
- $processor = new MemoryPeakUsageProcessor(true, false);
- $record = $processor($this->getRecord());
- $this->assertArrayHasKey('memory_peak_usage', $record['extra']);
- $this->assertInternalType('int', $record['extra']['memory_peak_usage']);
- $this->assertGreaterThan(0, $record['extra']['memory_peak_usage']);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php
deleted file mode 100644
index 4692dbfc..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class MemoryUsageProcessorTest extends TestCase
-{
- /**
- * @covers Monolog\Processor\MemoryUsageProcessor::__invoke
- * @covers Monolog\Processor\MemoryProcessor::formatBytes
- */
- public function testProcessor()
- {
- $processor = new MemoryUsageProcessor();
- $record = $processor($this->getRecord());
- $this->assertArrayHasKey('memory_usage', $record['extra']);
- $this->assertRegExp('#[0-9.]+ (M|K)?B$#', $record['extra']['memory_usage']);
- }
-
- /**
- * @covers Monolog\Processor\MemoryUsageProcessor::__invoke
- * @covers Monolog\Processor\MemoryProcessor::formatBytes
- */
- public function testProcessorWithoutFormatting()
- {
- $processor = new MemoryUsageProcessor(true, false);
- $record = $processor($this->getRecord());
- $this->assertArrayHasKey('memory_usage', $record['extra']);
- $this->assertInternalType('int', $record['extra']['memory_usage']);
- $this->assertGreaterThan(0, $record['extra']['memory_usage']);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MercurialProcessorTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MercurialProcessorTest.php
deleted file mode 100644
index 11f2b35a..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/MercurialProcessorTest.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jonathan A. Schweder <jonathanschweder@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class MercurialProcessorTest extends TestCase
-{
- /**
- * @covers Monolog\Processor\MercurialProcessor::__invoke
- */
- public function testProcessor()
- {
- if (defined('PHP_WINDOWS_VERSION_BUILD')) {
- exec("where hg 2>NUL", $output, $result);
- } else {
- exec("which hg 2>/dev/null >/dev/null", $output, $result);
- }
- if ($result != 0) {
- $this->markTestSkipped('hg is missing');
- return;
- }
-
- `hg init`;
- $processor = new MercurialProcessor();
- $record = $processor($this->getRecord());
-
- $this->assertArrayHasKey('hg', $record['extra']);
- $this->assertTrue(!is_array($record['extra']['hg']['branch']));
- $this->assertTrue(!is_array($record['extra']['hg']['revision']));
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php
deleted file mode 100644
index 458d2a33..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class ProcessIdProcessorTest extends TestCase
-{
- /**
- * @covers Monolog\Processor\ProcessIdProcessor::__invoke
- */
- public function testProcessor()
- {
- $processor = new ProcessIdProcessor();
- $record = $processor($this->getRecord());
- $this->assertArrayHasKey('process_id', $record['extra']);
- $this->assertInternalType('int', $record['extra']['process_id']);
- $this->assertGreaterThan(0, $record['extra']['process_id']);
- $this->assertEquals(getmypid(), $record['extra']['process_id']);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php
deleted file mode 100644
index 029a0c02..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-class PsrLogMessageProcessorTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider getPairs
- */
- public function testReplacement($val, $expected)
- {
- $proc = new PsrLogMessageProcessor;
-
- $message = $proc(array(
- 'message' => '{foo}',
- 'context' => array('foo' => $val),
- ));
- $this->assertEquals($expected, $message['message']);
- }
-
- public function getPairs()
- {
- return array(
- array('foo', 'foo'),
- array('3', '3'),
- array(3, '3'),
- array(null, ''),
- array(true, '1'),
- array(false, ''),
- array(new \stdClass, '[object stdClass]'),
- array(array(), '[array]'),
- );
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php
deleted file mode 100644
index 0d860c61..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class TagProcessorTest extends TestCase
-{
- /**
- * @covers Monolog\Processor\TagProcessor::__invoke
- */
- public function testProcessor()
- {
- $tags = array(1, 2, 3);
- $processor = new TagProcessor($tags);
- $record = $processor($this->getRecord());
-
- $this->assertEquals($tags, $record['extra']['tags']);
- }
-
- /**
- * @covers Monolog\Processor\TagProcessor::__invoke
- */
- public function testProcessorTagModification()
- {
- $tags = array(1, 2, 3);
- $processor = new TagProcessor($tags);
-
- $record = $processor($this->getRecord());
- $this->assertEquals($tags, $record['extra']['tags']);
-
- $processor->setTags(array('a', 'b'));
- $record = $processor($this->getRecord());
- $this->assertEquals(array('a', 'b'), $record['extra']['tags']);
-
- $processor->addTags(array('a', 'c', 'foo' => 'bar'));
- $record = $processor($this->getRecord());
- $this->assertEquals(array('a', 'b', 'a', 'c', 'foo' => 'bar'), $record['extra']['tags']);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php
deleted file mode 100644
index 5d13058f..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class UidProcessorTest extends TestCase
-{
- /**
- * @covers Monolog\Processor\UidProcessor::__invoke
- */
- public function testProcessor()
- {
- $processor = new UidProcessor();
- $record = $processor($this->getRecord());
- $this->assertArrayHasKey('uid', $record['extra']);
- }
-
- public function testGetUid()
- {
- $processor = new UidProcessor(10);
- $this->assertEquals(10, strlen($processor->getUid()));
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php
deleted file mode 100644
index 4105baf7..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog\Processor;
-
-use Monolog\TestCase;
-
-class WebProcessorTest extends TestCase
-{
- public function testProcessor()
- {
- $server = array(
- 'REQUEST_URI' => 'A',
- 'REMOTE_ADDR' => 'B',
- 'REQUEST_METHOD' => 'C',
- 'HTTP_REFERER' => 'D',
- 'SERVER_NAME' => 'F',
- 'UNIQUE_ID' => 'G',
- );
-
- $processor = new WebProcessor($server);
- $record = $processor($this->getRecord());
- $this->assertEquals($server['REQUEST_URI'], $record['extra']['url']);
- $this->assertEquals($server['REMOTE_ADDR'], $record['extra']['ip']);
- $this->assertEquals($server['REQUEST_METHOD'], $record['extra']['http_method']);
- $this->assertEquals($server['HTTP_REFERER'], $record['extra']['referrer']);
- $this->assertEquals($server['SERVER_NAME'], $record['extra']['server']);
- $this->assertEquals($server['UNIQUE_ID'], $record['extra']['unique_id']);
- }
-
- public function testProcessorDoNothingIfNoRequestUri()
- {
- $server = array(
- 'REMOTE_ADDR' => 'B',
- 'REQUEST_METHOD' => 'C',
- );
- $processor = new WebProcessor($server);
- $record = $processor($this->getRecord());
- $this->assertEmpty($record['extra']);
- }
-
- public function testProcessorReturnNullIfNoHttpReferer()
- {
- $server = array(
- 'REQUEST_URI' => 'A',
- 'REMOTE_ADDR' => 'B',
- 'REQUEST_METHOD' => 'C',
- 'SERVER_NAME' => 'F',
- );
- $processor = new WebProcessor($server);
- $record = $processor($this->getRecord());
- $this->assertNull($record['extra']['referrer']);
- }
-
- public function testProcessorDoesNotAddUniqueIdIfNotPresent()
- {
- $server = array(
- 'REQUEST_URI' => 'A',
- 'REMOTE_ADDR' => 'B',
- 'REQUEST_METHOD' => 'C',
- 'SERVER_NAME' => 'F',
- );
- $processor = new WebProcessor($server);
- $record = $processor($this->getRecord());
- $this->assertFalse(isset($record['extra']['unique_id']));
- }
-
- public function testProcessorAddsOnlyRequestedExtraFields()
- {
- $server = array(
- 'REQUEST_URI' => 'A',
- 'REMOTE_ADDR' => 'B',
- 'REQUEST_METHOD' => 'C',
- 'SERVER_NAME' => 'F',
- );
-
- $processor = new WebProcessor($server, array('url', 'http_method'));
- $record = $processor($this->getRecord());
-
- $this->assertSame(array('url' => 'A', 'http_method' => 'C'), $record['extra']);
- }
-
- public function testProcessorConfiguringOfExtraFields()
- {
- $server = array(
- 'REQUEST_URI' => 'A',
- 'REMOTE_ADDR' => 'B',
- 'REQUEST_METHOD' => 'C',
- 'SERVER_NAME' => 'F',
- );
-
- $processor = new WebProcessor($server, array('url' => 'REMOTE_ADDR'));
- $record = $processor($this->getRecord());
-
- $this->assertSame(array('url' => 'B'), $record['extra']);
- }
-
- /**
- * @expectedException UnexpectedValueException
- */
- public function testInvalidData()
- {
- new WebProcessor(new \stdClass);
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/PsrLogCompatTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/PsrLogCompatTest.php
deleted file mode 100644
index ab899449..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/PsrLogCompatTest.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-use Monolog\Handler\TestHandler;
-use Monolog\Formatter\LineFormatter;
-use Monolog\Processor\PsrLogMessageProcessor;
-use Psr\Log\Test\LoggerInterfaceTest;
-
-class PsrLogCompatTest extends LoggerInterfaceTest
-{
- private $handler;
-
- public function getLogger()
- {
- $logger = new Logger('foo');
- $logger->pushHandler($handler = new TestHandler);
- $logger->pushProcessor(new PsrLogMessageProcessor);
- $handler->setFormatter(new LineFormatter('%level_name% %message%'));
-
- $this->handler = $handler;
-
- return $logger;
- }
-
- public function getLogs()
- {
- $convert = function ($record) {
- $lower = function ($match) {
- return strtolower($match[0]);
- };
-
- return preg_replace_callback('{^[A-Z]+}', $lower, $record['formatted']);
- };
-
- return array_map($convert, $this->handler->getRecords());
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/RegistryTest.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/RegistryTest.php
deleted file mode 100644
index 15fdfbd2..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/RegistryTest.php
+++ /dev/null
@@ -1,153 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-class RegistryTest extends \PHPUnit_Framework_TestCase
-{
- protected function setUp()
- {
- Registry::clear();
- }
-
- /**
- * @dataProvider hasLoggerProvider
- * @covers Monolog\Registry::hasLogger
- */
- public function testHasLogger(array $loggersToAdd, array $loggersToCheck, array $expectedResult)
- {
- foreach ($loggersToAdd as $loggerToAdd) {
- Registry::addLogger($loggerToAdd);
- }
- foreach ($loggersToCheck as $index => $loggerToCheck) {
- $this->assertSame($expectedResult[$index], Registry::hasLogger($loggerToCheck));
- }
- }
-
- public function hasLoggerProvider()
- {
- $logger1 = new Logger('test1');
- $logger2 = new Logger('test2');
- $logger3 = new Logger('test3');
-
- return array(
- // only instances
- array(
- array($logger1),
- array($logger1, $logger2),
- array(true, false),
- ),
- // only names
- array(
- array($logger1),
- array('test1', 'test2'),
- array(true, false),
- ),
- // mixed case
- array(
- array($logger1, $logger2),
- array('test1', $logger2, 'test3', $logger3),
- array(true, true, false, false),
- ),
- );
- }
-
- /**
- * @covers Monolog\Registry::clear
- */
- public function testClearClears()
- {
- Registry::addLogger(new Logger('test1'), 'log');
- Registry::clear();
-
- $this->setExpectedException('\InvalidArgumentException');
- Registry::getInstance('log');
- }
-
- /**
- * @dataProvider removedLoggerProvider
- * @covers Monolog\Registry::addLogger
- * @covers Monolog\Registry::removeLogger
- */
- public function testRemovesLogger($loggerToAdd, $remove)
- {
- Registry::addLogger($loggerToAdd);
- Registry::removeLogger($remove);
-
- $this->setExpectedException('\InvalidArgumentException');
- Registry::getInstance($loggerToAdd->getName());
- }
-
- public function removedLoggerProvider()
- {
- $logger1 = new Logger('test1');
-
- return array(
- array($logger1, $logger1),
- array($logger1, 'test1'),
- );
- }
-
- /**
- * @covers Monolog\Registry::addLogger
- * @covers Monolog\Registry::getInstance
- * @covers Monolog\Registry::__callStatic
- */
- public function testGetsSameLogger()
- {
- $logger1 = new Logger('test1');
- $logger2 = new Logger('test2');
-
- Registry::addLogger($logger1, 'test1');
- Registry::addLogger($logger2);
-
- $this->assertSame($logger1, Registry::getInstance('test1'));
- $this->assertSame($logger2, Registry::test2());
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @covers Monolog\Registry::getInstance
- */
- public function testFailsOnNonExistantLogger()
- {
- Registry::getInstance('test1');
- }
-
- /**
- * @covers Monolog\Registry::addLogger
- */
- public function testReplacesLogger()
- {
- $log1 = new Logger('test1');
- $log2 = new Logger('test2');
-
- Registry::addLogger($log1, 'log');
-
- Registry::addLogger($log2, 'log', true);
-
- $this->assertSame($log2, Registry::getInstance('log'));
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @covers Monolog\Registry::addLogger
- */
- public function testFailsOnUnspecifiedReplacement()
- {
- $log1 = new Logger('test1');
- $log2 = new Logger('test2');
-
- Registry::addLogger($log1, 'log');
-
- Registry::addLogger($log2, 'log');
- }
-}
diff --git a/www/wiki/vendor/monolog/monolog/tests/Monolog/TestCase.php b/www/wiki/vendor/monolog/monolog/tests/Monolog/TestCase.php
deleted file mode 100644
index 4eb7b4c9..00000000
--- a/www/wiki/vendor/monolog/monolog/tests/Monolog/TestCase.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-
-/*
- * This file is part of the Monolog package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Monolog;
-
-class TestCase extends \PHPUnit_Framework_TestCase
-{
- /**
- * @return array Record
- */
- protected function getRecord($level = Logger::WARNING, $message = 'test', $context = array())
- {
- return array(
- 'message' => $message,
- 'context' => $context,
- 'level' => $level,
- 'level_name' => Logger::getLevelName($level),
- 'channel' => 'test',
- 'datetime' => \DateTime::createFromFormat('U.u', sprintf('%.6F', microtime(true))),
- 'extra' => array(),
- );
- }
-
- /**
- * @return array
- */
- protected function getMultipleRecords()
- {
- return array(
- $this->getRecord(Logger::DEBUG, 'debug message 1'),
- $this->getRecord(Logger::DEBUG, 'debug message 2'),
- $this->getRecord(Logger::INFO, 'information'),
- $this->getRecord(Logger::WARNING, 'warning'),
- $this->getRecord(Logger::ERROR, 'error'),
- );
- }
-
- /**
- * @return Monolog\Formatter\FormatterInterface
- */
- protected function getIdentityFormatter()
- {
- $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
- $formatter->expects($this->any())
- ->method('format')
- ->will($this->returnCallback(function ($record) { return $record['message']; }));
-
- return $formatter;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/.gitignore b/www/wiki/vendor/nikic/php-parser/.gitignore
deleted file mode 100644
index 8c7db2a6..00000000
--- a/www/wiki/vendor/nikic/php-parser/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-vendor/
-composer.lock
-grammar/kmyacc.exe
-grammar/y.output
diff --git a/www/wiki/vendor/nikic/php-parser/.travis.yml b/www/wiki/vendor/nikic/php-parser/.travis.yml
deleted file mode 100644
index 47169154..00000000
--- a/www/wiki/vendor/nikic/php-parser/.travis.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-language: php
-
-sudo: false
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-php:
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - nightly
- - hhvm
-
-install:
- - if [ $TRAVIS_PHP_VERSION = '5.6' ]; then composer require satooshi/php-coveralls '~1.0'; fi
- - composer install --prefer-dist
-
-matrix:
- allow_failures:
- - php: nightly
- fast_finish: true
-
-script:
- - if [ $TRAVIS_PHP_VERSION = '5.6' ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; else vendor/bin/phpunit; fi
- - if [ $TRAVIS_PHP_VERSION = '7.0' ]; then test_old/run-php-src.sh; fi
-
-after_success:
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then php vendor/bin/coveralls; fi
-
diff --git a/www/wiki/vendor/nikic/php-parser/CHANGELOG.md b/www/wiki/vendor/nikic/php-parser/CHANGELOG.md
deleted file mode 100644
index 737e9fe0..00000000
--- a/www/wiki/vendor/nikic/php-parser/CHANGELOG.md
+++ /dev/null
@@ -1,138 +0,0 @@
-Version 2.1.1-dev
------------------
-
-Nothing yet.
-
-Version 2.1.0 (2016-04-19)
---------------------------
-
-### Fixed
-
-* Properly support `B""` strings (with uppercase `B`) in a number of places.
-* Fixed reformatting of indented parts in a certain non-standard comment style.
-
-### Added
-
-* Added `dumpComments` option to node dumper, to enable dumping of comments associated with nodes.
-* Added `Stmt\Nop` node, that is used to collect comments located at the end of a block or at the
- end of a file (without a following node with which they could otherwise be associated).
-* Added `kind` attribute to `Expr\Exit` to distinguish between `exit` and `die`.
-* Added `kind` attribute to `Scalar\LNumber` to distinguish between decimal, binary, octal and
- hexadecimal numbers.
-* Added `kind` attribtue to `Expr\Array` to distinguish between `array()` and `[]`.
-* Added `kind` attribute to `Scalar\String` and `Scalar\Encapsed` to distinguish between
- single-quoted, double-quoted, heredoc and nowdoc string.
-* Added `docLabel` attribute to `Scalar\String` and `Scalar\Encapsed`, if it is a heredoc or
- nowdoc string.
-* Added start file offset information to `Comment` nodes.
-* Added `setReturnType()` method to function and method builders.
-* Added `-h` and `--help` options to `php-parse` script.
-
-### Changed
-
-* Invalid octal literals now throw a parse error in PHP 7 mode.
-* The pretty printer takes all the new attributes mentioned in the previous section into account.
-* The protected `AbstractPrettyPrinter::pComments()` method no longer returns a trailing newline.
-* The bundled autoloader supports library files being stored in a different directory than
- `PhpParser` for easier downstream distribution.
-
-### Deprecated
-
-* The `Comment::setLine()` and `Comment::setText()` methods have been deprecated. Construct new
- objects instead.
-
-### Removed
-
-* The internal (but public) method `Scalar\LNumber::parse()` has been removed. A non-internal
- `LNumber::fromString()` method has been added instead.
-
-Version 2.0.1 (2016-02-28)
---------------------------
-
-### Fixed
-
-* `declare() {}` and `declare();` are not semantically equivalent and will now result in different
- ASTs. The format case will have an empty `stmts` array, while the latter will set `stmts` to
- `null`.
-* Magic constants are now supported as semi-reserved keywords.
-* A shebang line like `#!/usr/bin/env php` is now allowed at the start of a namespaced file.
- Previously this generated an exception.
-* The `prettyPrintFile()` method will not strip a trailing `?>` from the raw data that follows a
- `__halt_compiler()` statement.
-* The `prettyPrintFile()` method will not strip an opening `<?php` if the file starts with a
- comment followed by InlineHTML.
-
-Version 2.0.0 (2015-12-04)
---------------------------
-
-### Changed
-
-* String parts of encapsed strings are now represented using `Scalar\EncapsStringPart` nodes.
- Previously raw strings were used. This affects the `parts` child of `Scalar\Encaps` and
- `Expr\ShellExec`. The change has been done to allow assignment of attributes to encapsed string
- parts.
-
-Version 2.0.0-beta1 (2015-10-21)
---------------------------------
-
-### Fixed
-
-* Fixed issue with too many newlines being stripped at the end of heredoc/nowdoc strings in some
- cases. (#227)
-
-### Changed
-
-* Update group use support to be in line with recent PHP 7.0 builds.
-* Renamed `php-parse.php` to `php-parse` and registered it as a composer bin.
-* Use composer PSR-4 autoloader instead of custom autoloader.
-* Specify phpunit as a dev dependency.
-
-### Added
-
-* Added `shortArraySyntax` option to pretty printer, to print all arrays using short syntax.
-
-Version 2.0.0-alpha1 (2015-07-14)
----------------------------------
-
-A more detailed description of backwards incompatible changes can be found in the
-[upgrading guide](UPGRADE-2.0.md).
-
-### Removed
-
-* Removed support for running on PHP 5.4. It is however still possible to parse PHP 5.2 and PHP 5.3
- code while running on a newer version.
-* Removed legacy class name aliases. This includes the old non-namespaced class names and the old
- names for classes that were renamed for PHP 7 compatibility.
-* Removed support for legacy node format. All nodes must have a `getSubNodeNames()` method now.
-
-### Added
-
-* Added support for remaining PHP 7 features that were not present in 1.x:
- * Group use declarations. These are represented using `Stmt\GroupUse` nodes. Furthermore a `type`
- attribute was added to `Stmt\UseUse` to handle mixed group use declarations.
- * Uniform variable syntax.
- * Generalized yield operator.
- * Scalar type declarations. These are presented using `'bool'`, `'int'`, `'float'` and `'string'`
- as the type. The PHP 5 parser also accepts these, however they'll be `Name` instances there.
- * Unicode escape sequences.
-* Added `PhpParser\ParserFactory` class, which should be used to create parser instances.
-* Added `Name::concat()` which concatenates two names.
-* Added `Name->slice()` which takes a subslice of a name.
-
-### Changed
-
-* `PhpParser\Parser` is now an interface, implemented by `Parser\Php5`, `Parser\Php7` and
- `Parser\Multiple`. The `Multiple` parser will try multiple parsers, until one succeeds.
-* Token constants are now defined on `PhpParser\Parser\Tokens` rather than `PhpParser\Parser`.
-* The `Name->set()`, `Name->append()`, `Name->prepend()` and `Name->setFirst()` methods are
- deprecated in favor of `Name::concat()` and `Name->slice()`.
-* The `NodeTraverser` no longer clones nodes by default. The old behavior can be restored by
- passing `true` to the constructor.
-* The constructor for `Scalar` nodes no longer has a default value. E.g. `new LNumber()` should now
- be written as `new LNumber(0)`.
-
----
-
-**This changelog only includes changes from the 2.0 series. For older changes see the
-[1.x series changelog](https://github.com/nikic/PHP-Parser/blob/1.x/CHANGELOG.md) and the
-[0.9 series changelog](https://github.com/nikic/PHP-Parser/blob/0.9/CHANGELOG.md).** \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/LICENSE b/www/wiki/vendor/nikic/php-parser/LICENSE
deleted file mode 100644
index 443210b4..00000000
--- a/www/wiki/vendor/nikic/php-parser/LICENSE
+++ /dev/null
@@ -1,31 +0,0 @@
-Copyright (c) 2011 by Nikita Popov.
-
-Some rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
-
- * The names of the contributors may not be used to endorse or
- promote products derived from this software without specific
- prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/README.md b/www/wiki/vendor/nikic/php-parser/README.md
deleted file mode 100644
index 28c565c0..00000000
--- a/www/wiki/vendor/nikic/php-parser/README.md
+++ /dev/null
@@ -1,96 +0,0 @@
-PHP Parser
-==========
-
-[![Build Status](https://travis-ci.org/nikic/PHP-Parser.svg?branch=master)](https://travis-ci.org/nikic/PHP-Parser) [![Coverage Status](https://coveralls.io/repos/github/nikic/PHP-Parser/badge.svg?branch=master)](https://coveralls.io/github/nikic/PHP-Parser?branch=master)
-
-This is a PHP 5.2 to PHP 7.0 parser written in PHP. Its purpose is to simplify static code analysis and
-manipulation.
-
-[**Documentation for version 2.x**][doc_master] (stable; for running on PHP >= 5.4; for parsing PHP 5.2 to PHP 7.0).
-
-[Documentation for version 1.x][doc_1_x] (unsupported; for running on PHP >= 5.3; for parsing PHP 5.2 to PHP 5.6).
-
-In a Nutshell
--------------
-
-The parser turns PHP source code into an abstract syntax tree. For example, if you pass the following code into the
-parser:
-
-```php
-<?php
-echo 'Hi', 'World';
-hello\world('foo', 'bar' . 'baz');
-```
-
-You'll get a syntax tree looking roughly like this:
-
-```php
-array(
- 0: Stmt_Echo(
- exprs: array(
- 0: Scalar_String(
- value: Hi
- )
- 1: Scalar_String(
- value: World
- )
- )
- )
- 1: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: hello
- 1: world
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: foo
- )
- byRef: false
- )
- 1: Arg(
- value: Expr_Concat(
- left: Scalar_String(
- value: bar
- )
- right: Scalar_String(
- value: baz
- )
- )
- byRef: false
- )
- )
- )
-)
-```
-
-You can then work with this syntax tree, for example to statically analyze the code (e.g. to find
-programming errors or security issues).
-
-Additionally, you can convert a syntax tree back to PHP code. This allows you to do code preprocessing
-(like automatedly porting code to older PHP versions).
-
-Installation
-------------
-
-The preferred installation method is [composer](https://getcomposer.org):
-
- php composer.phar require nikic/php-parser
-
-Documentation
--------------
-
- 1. [Introduction](doc/0_Introduction.markdown)
- 2. [Usage of basic components](doc/2_Usage_of_basic_components.markdown)
- 3. [Other node tree representations](doc/3_Other_node_tree_representations.markdown)
- 4. [Code generation](doc/4_Code_generation.markdown)
-
-Component documentation:
-
- 1. [Error](doc/component/Error.markdown)
- 2. [Lexer](doc/component/Lexer.markdown)
-
- [doc_1_x]: https://github.com/nikic/PHP-Parser/tree/1.x/doc
- [doc_master]: https://github.com/nikic/PHP-Parser/tree/master/doc
diff --git a/www/wiki/vendor/nikic/php-parser/UPGRADE-1.0.md b/www/wiki/vendor/nikic/php-parser/UPGRADE-1.0.md
deleted file mode 100644
index 6a9ee262..00000000
--- a/www/wiki/vendor/nikic/php-parser/UPGRADE-1.0.md
+++ /dev/null
@@ -1,121 +0,0 @@
-Upgrading from PHP-Parser 0.9 to 1.0
-====================================
-
-### PHP version requirements
-
-PHP-Parser now requires PHP 5.3 or newer to run. It is however still possible to *parse* PHP 5.2 source code, while
-running on a newer version.
-
-### Move to namespaced names
-
-The library has been moved to use namespaces with the `PhpParser` vendor prefix. However, the old names using
-underscores are still available as aliases, as such most code should continue running on the new version without
-further changes.
-
-Old (still works, but discouraged):
-
-```php
-$parser = new \PHPParser_Parser(new \PHPParser_Lexer_Emulative);
-$prettyPrinter = new \PHPParser_PrettyPrinter_Default;
-```
-
-New:
-
-```php
-$parser = new \PhpParser\Parser(new PhpParser\Lexer\Emulative);
-$prettyPrinter = new \PhpParser\PrettyPrinter\Standard;
-```
-
-Note that the `PHPParser` prefix was changed to `PhpParser`. While PHP class names are technically case-insensitive,
-the autoloader will not be able to load `PHPParser\Parser` or other case variants.
-
-Due to conflicts with reserved keywords, some class names now end with an underscore, e.g. `PHPParser_Node_Stmt_Class`
-is now `PhpParser\Node\Stmt\Class_`. (But as usual, the old name is still available.)
-
-### Changes to `Node::getType()`
-
-The `Node::getType()` method continues to return names using underscores instead of namespace separators and also does
-not contain the trailing underscore that may be present in the class name. As such its output will not change in many
-cases.
-
-However, some node classes have been moved to a different namespace or renamed, which will result in a different
-`Node::getType()` output:
-
-```
-Expr_AssignBitwiseAnd => Expr_AssignOp_BitwiseAnd
-Expr_AssignBitwiseOr => Expr_AssignOp_BitwiseOr
-Expr_AssignBitwiseXor => Expr_AssignOp_BitwiseXor
-Expr_AssignConcat => Expr_AssignOp_Concat
-Expr_AssignDiv => Expr_AssignOp_Div
-Expr_AssignMinus => Expr_AssignOp_Minus
-Expr_AssignMod => Expr_AssignOp_Mod
-Expr_AssignMul => Expr_AssignOp_Mul
-Expr_AssignPlus => Expr_AssignOp_Plus
-Expr_AssignShiftLeft => Expr_AssignOp_ShiftLeft
-Expr_AssignShiftRight => Expr_AssignOp_ShiftRight
-
-Expr_BitwiseAnd => Expr_BinaryOp_BitwiseAnd
-Expr_BitwiseOr => Expr_BinaryOp_BitwiseOr
-Expr_BitwiseXor => Expr_BinaryOp_BitwiseXor
-Expr_BooleanAnd => Expr_BinaryOp_BooleanAnd
-Expr_BooleanOr => Expr_BinaryOp_BooleanOr
-Expr_Concat => Expr_BinaryOp_Concat
-Expr_Div => Expr_BinaryOp_Div
-Expr_Equal => Expr_BinaryOp_Equal
-Expr_Greater => Expr_BinaryOp_Greater
-Expr_GreaterOrEqual => Expr_BinaryOp_GreaterOrEqual
-Expr_Identical => Expr_BinaryOp_Identical
-Expr_LogicalAnd => Expr_BinaryOp_LogicalAnd
-Expr_LogicalOr => Expr_BinaryOp_LogicalOr
-Expr_LogicalXor => Expr_BinaryOp_LogicalXor
-Expr_Minus => Expr_BinaryOp_Minus
-Expr_Mod => Expr_BinaryOp_Mod
-Expr_Mul => Expr_BinaryOp_Mul
-Expr_NotEqual => Expr_BinaryOp_NotEqual
-Expr_NotIdentical => Expr_BinaryOp_NotIdentical
-Expr_Plus => Expr_BinaryOp_Plus
-Expr_ShiftLeft => Expr_BinaryOp_ShiftLeft
-Expr_ShiftRight => Expr_BinaryOp_ShiftRight
-Expr_Smaller => Expr_BinaryOp_Smaller
-Expr_SmallerOrEqual => Expr_BinaryOp_SmallerOrEqual
-
-Scalar_ClassConst => Scalar_MagicConst_Class
-Scalar_DirConst => Scalar_MagicConst_Dir
-Scalar_FileConst => Scalar_MagicConst_File
-Scalar_FuncConst => Scalar_MagicConst_Function
-Scalar_LineConst => Scalar_MagicConst_Line
-Scalar_MethodConst => Scalar_MagicConst_Method
-Scalar_NSConst => Scalar_MagicConst_Namespace
-Scalar_TraitConst => Scalar_MagicConst_Trait
-```
-
-These changes may affect custom pretty printers and code comparing the return value of `Node::getType()` to specific
-strings.
-
-### Miscellaneous
-
- * The classes `Template` and `TemplateLoader` have been removed. You should use some other [code generation][code_gen]
- project built on top of PHP-Parser instead.
-
- * The `PrettyPrinterAbstract::pStmts()` method now emits a leading newline if the statement list is not empty.
- Custom pretty printers should remove the explicit newline before `pStmts()` calls.
-
- Old:
-
- ```php
- public function pStmt_Trait(PHPParser_Node_Stmt_Trait $node) {
- return 'trait ' . $node->name
- . "\n" . '{' . "\n" . $this->pStmts($node->stmts) . "\n" . '}';
- }
- ```
-
- New:
-
- ```php
- public function pStmt_Trait(Stmt\Trait_ $node) {
- return 'trait ' . $node->name
- . "\n" . '{' . $this->pStmts($node->stmts) . "\n" . '}';
- }
- ```
-
- [code_gen]: https://github.com/nikic/PHP-Parser/wiki/Projects-using-the-PHP-Parser#code-generation \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/UPGRADE-2.0.md b/www/wiki/vendor/nikic/php-parser/UPGRADE-2.0.md
deleted file mode 100644
index 1c61de54..00000000
--- a/www/wiki/vendor/nikic/php-parser/UPGRADE-2.0.md
+++ /dev/null
@@ -1,74 +0,0 @@
-Upgrading from PHP-Parser 1.x to 2.0
-====================================
-
-### PHP version requirements
-
-PHP-Parser now requires PHP 5.4 or newer to run. It is however still possible to *parse* PHP 5.2 and
-PHP 5.3 source code, while running on a newer version.
-
-### Creating a parser instance
-
-Parser instances should now be created through the `ParserFactory`. Old direct instantiation code
-will not work, because the parser class was renamed.
-
-Old:
-
-```php
-use PhpParser\Parser, PhpParser\Lexer;
-$parser = new Parser(new Lexer\Emulative);
-```
-
-New:
-
-```php
-use PhpParser\ParserFactory;
-$parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
-```
-
-The first argument to `ParserFactory` determines how different PHP versions are handled. The
-possible values are:
-
- * `ParserFactory::PREFER_PHP7`: Try to parse code as PHP 7. If this fails, try to parse it as PHP 5.
- * `ParserFactory::PREFER_PHP5`: Try to parse code as PHP 5. If this fails, try to parse it as PHP 7.
- * `ParserFactory::ONLY_PHP7`: Parse code as PHP 7.
- * `ParserFactory::ONLY_PHP5`: Parse code as PHP 5.
-
-For most practical purposes the difference between `PREFER_PHP7` and `PREFER_PHP5` is mainly whether
-a scalar type hint like `string` will be stored as `'string'` (PHP 7) or as `new Name('string')`
-(PHP 5).
-
-To use a custom lexer, pass it as the second argument to the `create()` method:
-
-```php
-use PhpParser\ParserFactory;
-$lexer = new MyLexer;
-$parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7, $lexer);
-```
-
-### Rename of the `PhpParser\Parser` class
-
-`PhpParser\Parser` is now an interface, which is implemented by `Parser\Php5`, `Parser\Php7` and
-`Parser\Multiple`. Parser tokens are now defined in `Parser\Tokens`. If you use the `ParserFactory`
-described above to create your parser instance, these changes should have no further impact on you.
-
-### Removal of legacy aliases
-
-All legacy aliases for classes have been removed. This includes the old non-namespaced `PHPParser_`
-classes, as well as the classes that had to be renamed for PHP 7 support.
-
-### Deprecations
-
-The `set()`, `setFirst()`, `append()` and `prepend()` methods of the `Node\Name` class have been
-deprecated. Instead `Name::concat()` and `Name->slice()` should be used.
-
-### Miscellaneous
-
-* The `NodeTraverser` no longer clones nodes by default. If you want to restore the old behavior,
- pass `true` to the constructor.
-* The legacy node format has been removed. If you use custom nodes, they are now expected to
- implement a `getSubNodeNames()` method.
-* The default value for `Scalar` node constructors was removed. This means that something like
- `new LNumber()` should be replaced by `new LNumber(0)`.
-* String parts of encapsed strings are now represented using `Scalar\EncapsStringPart` nodes, while
- previously raw strings were used. This affects the `parts` child of `Scalar\Encaps` and
- `Expr\ShellExec`. \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/bin/php-parse b/www/wiki/vendor/nikic/php-parser/bin/php-parse
deleted file mode 100755
index 974eb1ae..00000000
--- a/www/wiki/vendor/nikic/php-parser/bin/php-parse
+++ /dev/null
@@ -1,173 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
- if (file_exists($file)) {
- require $file;
- break;
- }
-}
-
-ini_set('xdebug.max_nesting_level', 3000);
-
-// Disable XDebug var_dump() output truncation
-ini_set('xdebug.var_display_max_children', -1);
-ini_set('xdebug.var_display_max_data', -1);
-ini_set('xdebug.var_display_max_depth', -1);
-
-list($operations, $files, $attributes) = parseArgs($argv);
-
-/* Dump nodes by default */
-if (empty($operations)) {
- $operations[] = 'dump';
-}
-
-if (empty($files)) {
- showHelp("Must specify at least one file.");
-}
-
-$lexer = new PhpParser\Lexer\Emulative(array('usedAttributes' => array(
- 'startLine', 'endLine', 'startFilePos', 'endFilePos', 'comments'
-)));
-$parser = (new PhpParser\ParserFactory)->create(PhpParser\ParserFactory::PREFER_PHP7, $lexer);
-$dumper = new PhpParser\NodeDumper(['dumpComments' => true]);
-$prettyPrinter = new PhpParser\PrettyPrinter\Standard;
-$serializer = new PhpParser\Serializer\XML;
-
-$traverser = new PhpParser\NodeTraverser();
-$traverser->addVisitor(new PhpParser\NodeVisitor\NameResolver);
-
-foreach ($files as $file) {
- if (strpos($file, '<?php') === 0) {
- $code = $file;
- echo "====> Code $code\n";
- } else {
- if (!file_exists($file)) {
- die("File $file does not exist.\n");
- }
-
- $code = file_get_contents($file);
- echo "====> File $file:\n";
- }
-
- try {
- $stmts = $parser->parse($code);
- } catch (PhpParser\Error $e) {
- if ($attributes['with-column-info'] && $e->hasColumnInfo()) {
- $startLine = $e->getStartLine();
- $endLine = $e->getEndLine();
- $startColumn = $e->getStartColumn($code);
- $endColumn = $e->getEndColumn($code);
- $message .= $e->getRawMessage() . " from $startLine:$startColumn to $endLine:$endColumn";
- } else {
- $message = $e->getMessage();
- }
-
- die($message . "\n");
- }
-
- foreach ($operations as $operation) {
- if ('dump' === $operation) {
- echo "==> Node dump:\n";
- echo $dumper->dump($stmts), "\n";
- } elseif ('pretty-print' === $operation) {
- echo "==> Pretty print:\n";
- echo $prettyPrinter->prettyPrintFile($stmts), "\n";
- } elseif ('serialize-xml' === $operation) {
- echo "==> Serialized XML:\n";
- echo $serializer->serialize($stmts), "\n";
- } elseif ('var-dump' === $operation) {
- echo "==> var_dump():\n";
- var_dump($stmts);
- } elseif ('resolve-names' === $operation) {
- echo "==> Resolved names.\n";
- $stmts = $traverser->traverse($stmts);
- }
- }
-}
-
-function showHelp($error = '') {
- if ($error) {
- echo $error . "\n\n";
- }
- die(<<<OUTPUT
-Usage: php-parse [operations] file1.php [file2.php ...]
- or: php-parse [operations] "<?php code"
-Turn PHP source code into an abstract syntax tree.
-
-Operations is a list of the following options (--dump by default):
-
- -d, --dump Dump nodes using NodeDumper
- -p, --pretty-print Pretty print file using PrettyPrinter\Standard
- --serialize-xml Serialize nodes using Serializer\XML
- --var-dump var_dump() nodes (for exact structure)
- -N, --resolve-names Resolve names using NodeVisitor\NameResolver
- -c, --with-column-info Show column-numbers for errors (if available)
- -h, --help Display this page
-
-Example:
- php-parse -d -p -N -d file.php
-
- Dumps nodes, pretty prints them, then resolves names and dumps them again.
-
-
-OUTPUT
- );
-}
-
-function parseArgs($args) {
- $operations = array();
- $files = array();
- $attributes = array(
- 'with-column-info' => false,
- );
-
- array_shift($args);
- $parseOptions = true;
- foreach ($args as $arg) {
- if (!$parseOptions) {
- $files[] = $arg;
- continue;
- }
-
- switch ($arg) {
- case '--dump':
- case '-d':
- $operations[] = 'dump';
- break;
- case '--pretty-print':
- case '-p':
- $operations[] = 'pretty-print';
- break;
- case '--serialize-xml':
- $operations[] = 'serialize-xml';
- break;
- case '--var-dump':
- $operations[] = 'var-dump';
- break;
- case '--resolve-names':
- case '-N';
- $operations[] = 'resolve-names';
- break;
- case '--with-column-info':
- case '-c';
- $attributes['with-column-info'] = true;
- break;
- case '--help':
- case '-h';
- showHelp();
- break;
- case '--':
- $parseOptions = false;
- break;
- default:
- if ($arg[0] === '-') {
- showHelp("Invalid operation $arg.");
- } else {
- $files[] = $arg;
- }
- }
- }
-
- return array($operations, $files, $attributes);
-}
diff --git a/www/wiki/vendor/nikic/php-parser/composer.json b/www/wiki/vendor/nikic/php-parser/composer.json
deleted file mode 100644
index 080d76a2..00000000
--- a/www/wiki/vendor/nikic/php-parser/composer.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "name": "nikic/php-parser",
- "description": "A PHP parser written in PHP",
- "keywords": ["php", "parser"],
- "type": "library",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Nikita Popov"
- }
- ],
- "require": {
- "php": ">=5.4",
- "ext-tokenizer": "*"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "autoload": {
- "psr-4": {
- "PhpParser\\": "lib/PhpParser"
- }
- },
- "bin": ["bin/php-parse"],
- "extra": {
- "branch-alias": {
- "dev-master": "2.1-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/doc/0_Introduction.markdown b/www/wiki/vendor/nikic/php-parser/doc/0_Introduction.markdown
deleted file mode 100644
index fc2c0389..00000000
--- a/www/wiki/vendor/nikic/php-parser/doc/0_Introduction.markdown
+++ /dev/null
@@ -1,80 +0,0 @@
-Introduction
-============
-
-This project is a PHP 5.2 to PHP 7.0 parser **written in PHP itself**.
-
-What is this for?
------------------
-
-A parser is useful for [static analysis][0], manipulation of code and basically any other
-application dealing with code programmatically. A parser constructs an [Abstract Syntax Tree][1]
-(AST) of the code and thus allows dealing with it in an abstract and robust way.
-
-There are other ways of processing source code. One that PHP supports natively is using the
-token stream generated by [`token_get_all`][2]. The token stream is much more low level than
-the AST and thus has different applications: It allows to also analyze the exact formatting of
-a file. On the other hand the token stream is much harder to deal with for more complex analysis.
-For example an AST abstracts away the fact that in PHP variables can be written as `$foo`, but also
-as `$$bar`, `${'foobar'}` or even `${!${''}=barfoo()}`. You don't have to worry about recognizing
-all the different syntaxes from a stream of tokens.
-
-Another question is: Why would I want to have a PHP parser *written in PHP*? Well, PHP might not be
-a language especially suited for fast parsing, but processing the AST is much easier in PHP than it
-would be in other, faster languages like C. Furthermore the people most probably wanting to do
-programmatic PHP code analysis are incidentally PHP developers, not C developers.
-
-What can it parse?
-------------------
-
-The parser supports parsing PHP 5.2-5.6 and PHP 7.
-
-As the parser is based on the tokens returned by `token_get_all` (which is only able to lex the PHP
-version it runs on), additionally a wrapper for emulating new tokens from 5.5, 5.6 and 7.0 is
-provided. This allows to parse PHP 7.0 source code running on PHP 5.4, for example. This emulation
-is somewhat hacky and not perfect, but it should work well on any sane code.
-
-What output does it produce?
-----------------------------
-
-The parser produces an [Abstract Syntax Tree][1] (AST) also known as a node tree. How this looks like
-can best be seen in an example. The program `<?php echo 'Hi', 'World';` will give you a node tree
-roughly looking like this:
-
-```
-array(
- 0: Stmt_Echo(
- exprs: array(
- 0: Scalar_String(
- value: Hi
- )
- 1: Scalar_String(
- value: World
- )
- )
- )
-)
-```
-
-This matches the structure of the code: An echo statement, which takes two strings as expressions,
-with the values `Hi` and `World!`.
-
-You can also see that the AST does not contain any whitespace information (but most comments are saved).
-So using it for formatting analysis is not possible.
-
-What else can it do?
---------------------
-
-Apart from the parser itself this package also bundles support for some other, related features:
-
- * Support for pretty printing, which is the act of converting an AST into PHP code. Please note
- that "pretty printing" does not imply that the output is especially pretty. It's just how it's
- called ;)
- * Support for serializing and unserializing the node tree to XML
- * Support for dumping the node tree in a human readable form (see the section above for an
- example of how the output looks like)
- * Infrastructure for traversing and changing the AST (node traverser and node visitors)
- * A node visitor for resolving namespaced names
-
- [0]: http://en.wikipedia.org/wiki/Static_program_analysis
- [1]: http://en.wikipedia.org/wiki/Abstract_syntax_tree
- [2]: http://php.net/token_get_all
diff --git a/www/wiki/vendor/nikic/php-parser/doc/2_Usage_of_basic_components.markdown b/www/wiki/vendor/nikic/php-parser/doc/2_Usage_of_basic_components.markdown
deleted file mode 100644
index f91a5bb2..00000000
--- a/www/wiki/vendor/nikic/php-parser/doc/2_Usage_of_basic_components.markdown
+++ /dev/null
@@ -1,438 +0,0 @@
-Usage of basic components
-=========================
-
-This document explains how to use the parser, the pretty printer and the node traverser.
-
-Bootstrapping
--------------
-
-To bootstrap the library, include the autoloader generated by composer:
-
-```php
-require 'path/to/vendor/autoload.php';
-```
-
-Additionally you may want to set the `xdebug.max_nesting_level` ini option to a higher value:
-
-```php
-ini_set('xdebug.max_nesting_level', 3000);
-```
-
-This ensures that there will be no errors when traversing highly nested node trees. However, it is
-preferable to disable XDebug completely, as it can easily make this library more than five times
-slower.
-
-Parsing
--------
-
-In order to parse code, you first have to create a parser instance:
-
-```php
-use PhpParser\ParserFactory;
-$parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
-```
-
-The factory accepts a kind argument, that determines how different PHP versions are treated:
-
-Kind | Behavior
------|---------
-`ParserFactory::PREFER_PHP7` | Try to parse code as PHP 7. If this fails, try to parse it as PHP 5.
-`ParserFactory::PREFER_PHP5` | Try to parse code as PHP 5. If this fails, try to parse it as PHP 7.
-`ParserFactory::ONLY_PHP7` | Parse code as PHP 7.
-`ParserFactory::ONLY_PHP5` | Parse code as PHP 5.
-
-Unless you have strong reason to use something else, `PREFER_PHP7` is a reasonable default.
-
-The `create()` method optionally accepts a `Lexer` instance as the second argument. Some use cases
-that require customized lexers are discussed in the [lexer documentation](component/Lexer.markdown).
-
-Subsequently you can pass PHP code (including the opening `<?php` tag) to the `parse` method in order to
-create a syntax tree. If a syntax error is encountered, an `PhpParser\Error` exception will be thrown:
-
-```php
-use PhpParser\Error;
-use PhpParser\ParserFactory;
-
-$code = '<?php // some code';
-$parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
-
-try {
- $stmts = $parser->parse($code);
- // $stmts is an array of statement nodes
-} catch (Error $e) {
- echo 'Parse Error: ', $e->getMessage();
-}
-```
-
-A parser instance can be reused to parse multiple files.
-
-Node tree
----------
-
-If you use the above code with `$code = "<?php echo 'Hi ', hi\\getTarget();"` the parser will
-generate a node tree looking like this:
-
-```
-array(
- 0: Stmt_Echo(
- exprs: array(
- 0: Scalar_String(
- value: Hi
- )
- 1: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: hi
- 1: getTarget
- )
- )
- args: array(
- )
- )
- )
- )
-)
-```
-
-Thus `$stmts` will contain an array with only one node, with this node being an instance of
-`PhpParser\Node\Stmt\Echo_`.
-
-As PHP is a large language there are approximately 140 different nodes. In order to make work
-with them easier they are grouped into three categories:
-
- * `PhpParser\Node\Stmt`s are statement nodes, i.e. language constructs that do not return
- a value and can not occur in an expression. For example a class definition is a statement.
- It doesn't return a value and you can't write something like `func(class A {});`.
- * `PhpParser\Node\Expr`s are expression nodes, i.e. language constructs that return a value
- and thus can occur in other expressions. Examples of expressions are `$var`
- (`PhpParser\Node\Expr\Variable`) and `func()` (`PhpParser\Node\Expr\FuncCall`).
- * `PhpParser\Node\Scalar`s are nodes representing scalar values, like `'string'`
- (`PhpParser\Node\Scalar\String_`), `0` (`PhpParser\Node\Scalar\LNumber`) or magic constants
- like `__FILE__` (`PhpParser\Node\Scalar\MagicConst\File`). All `PhpParser\Node\Scalar`s extend
- `PhpParser\Node\Expr`, as scalars are expressions, too.
- * There are some nodes not in either of these groups, for example names (`PhpParser\Node\Name`)
- and call arguments (`PhpParser\Node\Arg`).
-
-Some node class names have a trailing `_`. This is used whenever the class name would otherwise clash
-with a PHP keyword.
-
-Every node has a (possibly zero) number of subnodes. You can access subnodes by writing
-`$node->subNodeName`. The `Stmt\Echo_` node has only one subnode `exprs`. So in order to access it
-in the above example you would write `$stmts[0]->exprs`. If you wanted to access the name of the function
-call, you would write `$stmts[0]->exprs[1]->name`.
-
-All nodes also define a `getType()` method that returns the node type. The type is the class name
-without the `PhpParser\Node\` prefix and `\` replaced with `_`. It also does not contain a trailing
-`_` for reserved-keyword class names.
-
-It is possible to associate custom metadata with a node using the `setAttribute()` method. This data
-can then be retrieved using `hasAttribute()`, `getAttribute()` and `getAttributes()`.
-
-By default the lexer adds the `startLine`, `endLine` and `comments` attributes. `comments` is an array
-of `PhpParser\Comment[\Doc]` instances.
-
-The start line can also be accessed using `getLine()`/`setLine()` (instead of `getAttribute('startLine')`).
-The last doc comment from the `comments` attribute can be obtained using `getDocComment()`.
-
-Pretty printer
---------------
-
-The pretty printer component compiles the AST back to PHP code. As the parser does not retain formatting
-information the formatting is done using a specified scheme. Currently there is only one scheme available,
-namely `PhpParser\PrettyPrinter\Standard`.
-
-```php
-use PhpParser\Error;
-use PhpParser\ParserFactory;
-use PhpParser\PrettyPrinter;
-
-$code = "<?php echo 'Hi ', hi\\getTarget();";
-
-$parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
-$prettyPrinter = new PrettyPrinter\Standard;
-
-try {
- // parse
- $stmts = $parser->parse($code);
-
- // change
- $stmts[0] // the echo statement
- ->exprs // sub expressions
- [0] // the first of them (the string node)
- ->value // it's value, i.e. 'Hi '
- = 'Hello '; // change to 'Hello '
-
- // pretty print
- $code = $prettyPrinter->prettyPrint($stmts);
-
- echo $code;
-} catch (Error $e) {
- echo 'Parse Error: ', $e->getMessage();
-}
-```
-
-The above code will output:
-
- <?php echo 'Hello ', hi\getTarget();
-
-As you can see the source code was first parsed using `PhpParser\Parser->parse()`, then changed and then
-again converted to code using `PhpParser\PrettyPrinter\Standard->prettyPrint()`.
-
-The `prettyPrint()` method pretty prints a statements array. It is also possible to pretty print only a
-single expression using `prettyPrintExpr()`.
-
-The `prettyPrintFile()` method can be used to print an entire file. This will include the opening `<?php` tag
-and handle inline HTML as the first/last statement more gracefully.
-
-Node traversation
------------------
-
-The above pretty printing example used the fact that the source code was known and thus it was easy to
-write code that accesses a certain part of a node tree and changes it. Normally this is not the case.
-Usually you want to change / analyze code in a generic way, where you don't know how the node tree is
-going to look like.
-
-For this purpose the parser provides a component for traversing and visiting the node tree. The basic
-structure of a program using this `PhpParser\NodeTraverser` looks like this:
-
-```php
-use PhpParser\NodeTraverser;
-use PhpParser\ParserFactory;
-use PhpParser\PrettyPrinter;
-
-$parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
-$traverser = new NodeTraverser;
-$prettyPrinter = new PrettyPrinter\Standard;
-
-// add your visitor
-$traverser->addVisitor(new MyNodeVisitor);
-
-try {
- $code = file_get_contents($fileName);
-
- // parse
- $stmts = $parser->parse($code);
-
- // traverse
- $stmts = $traverser->traverse($stmts);
-
- // pretty print
- $code = $prettyPrinter->prettyPrintFile($stmts);
-
- echo $code;
-} catch (PhpParser\Error $e) {
- echo 'Parse Error: ', $e->getMessage();
-}
-```
-
-The corresponding node visitor might look like this:
-
-```php
-use PhpParser\Node;
-use PhpParser\NodeVisitorAbstract;
-
-class MyNodeVisitor extends NodeVisitorAbstract
-{
- public function leaveNode(Node $node) {
- if ($node instanceof Node\Scalar\String_) {
- $node->value = 'foo';
- }
- }
-}
-```
-
-The above node visitor would change all string literals in the program to `'foo'`.
-
-All visitors must implement the `PhpParser\NodeVisitor` interface, which defines the following four
-methods:
-
-```php
-public function beforeTraverse(array $nodes);
-public function enterNode(\PhpParser\Node $node);
-public function leaveNode(\PhpParser\Node $node);
-public function afterTraverse(array $nodes);
-```
-
-The `beforeTraverse()` method is called once before the traversal begins and is passed the nodes the
-traverser was called with. This method can be used for resetting values before traversation or
-preparing the tree for traversal.
-
-The `afterTraverse()` method is similar to the `beforeTraverse()` method, with the only difference that
-it is called once after the traversal.
-
-The `enterNode()` and `leaveNode()` methods are called on every node, the former when it is entered,
-i.e. before its subnodes are traversed, the latter when it is left.
-
-All four methods can either return the changed node or not return at all (i.e. `null`) in which
-case the current node is not changed.
-
-The `enterNode()` method can additionally return the value `NodeTraverser::DONT_TRAVERSE_CHILDREN`,
-which instructs the traverser to skip all children of the current node.
-
-The `leaveNode()` method can additionally return the value `NodeTraverser::REMOVE_NODE`, in which
-case the current node will be removed from the parent array. Furthermore it is possible to return
-an array of nodes, which will be merged into the parent array at the offset of the current node.
-I.e. if in `array(A, B, C)` the node `B` should be replaced with `array(X, Y, Z)` the result will
-be `array(A, X, Y, Z, C)`.
-
-Instead of manually implementing the `NodeVisitor` interface you can also extend the `NodeVisitorAbstract`
-class, which will define empty default implementations for all the above methods.
-
-The NameResolver node visitor
------------------------------
-
-One visitor is already bundled with the package: `PhpParser\NodeVisitor\NameResolver`. This visitor
-helps you work with namespaced code by trying to resolve most names to fully qualified ones.
-
-For example, consider the following code:
-
- use A as B;
- new B\C();
-
-In order to know that `B\C` really is `A\C` you would need to track aliases and namespaces yourself.
-The `NameResolver` takes care of that and resolves names as far as possible.
-
-After running it most names will be fully qualified. The only names that will stay unqualified are
-unqualified function and constant names. These are resolved at runtime and thus the visitor can't
-know which function they are referring to. In most cases this is a non-issue as the global functions
-are meant.
-
-Also the `NameResolver` adds a `namespacedName` subnode to class, function and constant declarations
-that contains the namespaced name instead of only the shortname that is available via `name`.
-
-Example: Converting namespaced code to pseudo namespaces
---------------------------------------------------------
-
-A small example to understand the concept: We want to convert namespaced code to pseudo namespaces
-so it works on 5.2, i.e. names like `A\\B` should be converted to `A_B`. Note that such conversions
-are fairly complicated if you take PHP's dynamic features into account, so our conversion will
-assume that no dynamic features are used.
-
-We start off with the following base code:
-
-```php
-use PhpParser\ParserFactory;
-use PhpParser\PrettyPrinter;
-use PhpParser\NodeTraverser;
-use PhpParser\NodeVisitor\NameResolver;
-
-$inDir = '/some/path';
-$outDir = '/some/other/path';
-
-$parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
-$traverser = new NodeTraverser;
-$prettyPrinter = new PrettyPrinter\Standard;
-
-$traverser->addVisitor(new NameResolver); // we will need resolved names
-$traverser->addVisitor(new NamespaceConverter); // our own node visitor
-
-// iterate over all .php files in the directory
-$files = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($inDir));
-$files = new \RegexIterator($files, '/\.php$/');
-
-foreach ($files as $file) {
- try {
- // read the file that should be converted
- $code = file_get_contents($file);
-
- // parse
- $stmts = $parser->parse($code);
-
- // traverse
- $stmts = $traverser->traverse($stmts);
-
- // pretty print
- $code = $prettyPrinter->prettyPrintFile($stmts);
-
- // write the converted file to the target directory
- file_put_contents(
- substr_replace($file->getPathname(), $outDir, 0, strlen($inDir)),
- $code
- );
- } catch (PhpParser\Error $e) {
- echo 'Parse Error: ', $e->getMessage();
- }
-}
-```
-
-Now lets start with the main code, the `NodeVisitor\NamespaceConverter`. One thing it needs to do
-is convert `A\\B` style names to `A_B` style ones.
-
-```php
-use PhpParser\Node;
-
-class NamespaceConverter extends \PhpParser\NodeVisitorAbstract
-{
- public function leaveNode(Node $node) {
- if ($node instanceof Node\Name) {
- return new Node\Name($node->toString('_'));
- }
- }
-}
-```
-
-The above code profits from the fact that the `NameResolver` already resolved all names as far as
-possible, so we don't need to do that. We only need to create a string with the name parts separated
-by underscores instead of backslashes. This is what `$node->toString('_')` does. (If you want to
-create a name with backslashes either write `$node->toString()` or `(string) $node`.) Then we create
-a new name from the string and return it. Returning a new node replaces the old node.
-
-Another thing we need to do is change the class/function/const declarations. Currently they contain
-only the shortname (i.e. the last part of the name), but they need to contain the complete name including
-the namespace prefix:
-
-```php
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-
-class NodeVisitor_NamespaceConverter extends \PhpParser\NodeVisitorAbstract
-{
- public function leaveNode(Node $node) {
- if ($node instanceof Node\Name) {
- return new Node\Name($node->toString('_'));
- } elseif ($node instanceof Stmt\Class_
- || $node instanceof Stmt\Interface_
- || $node instanceof Stmt\Function_) {
- $node->name = $node->namespacedName->toString('_');
- } elseif ($node instanceof Stmt\Const_) {
- foreach ($node->consts as $const) {
- $const->name = $const->namespacedName->toString('_');
- }
- }
- }
-}
-```
-
-There is not much more to it than converting the namespaced name to string with `_` as separator.
-
-The last thing we need to do is remove the `namespace` and `use` statements:
-
-```php
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-
-class NodeVisitor_NamespaceConverter extends \PhpParser\NodeVisitorAbstract
-{
- public function leaveNode(Node $node) {
- if ($node instanceof Node\Name) {
- return new Node\Name($node->toString('_'));
- } elseif ($node instanceof Stmt\Class_
- || $node instanceof Stmt\Interface_
- || $node instanceof Stmt\Function_) {
- $node->name = $node->namespacedName->toString('_');
- } elseif ($node instanceof Stmt\Const_) {
- foreach ($node->consts as $const) {
- $const->name = $const->namespacedName->toString('_');
- }
- } elseif ($node instanceof Stmt\Namespace_) {
- // returning an array merges is into the parent array
- return $node->stmts;
- } elseif ($node instanceof Stmt\Use_) {
- // returning false removed the node altogether
- return false;
- }
- }
-}
-```
-
-That's all.
diff --git a/www/wiki/vendor/nikic/php-parser/doc/3_Other_node_tree_representations.markdown b/www/wiki/vendor/nikic/php-parser/doc/3_Other_node_tree_representations.markdown
deleted file mode 100644
index 691640e6..00000000
--- a/www/wiki/vendor/nikic/php-parser/doc/3_Other_node_tree_representations.markdown
+++ /dev/null
@@ -1,202 +0,0 @@
-Other node tree representations
-===============================
-
-It is possible to convert the AST into several textual representations, which serve different uses.
-
-Simple serialization
---------------------
-
-It is possible to serialize the node tree using `serialize()` and also unserialize it using
-`unserialize()`. The output is not human readable and not easily processable from anything
-but PHP, but it is compact and generates fast. The main application thus is in caching.
-
-Human readable dumping
-----------------------
-
-Furthermore it is possible to dump nodes into a human readable format using the `dump` method of
-`PhpParser\NodeDumper`. This can be used for debugging.
-
-```php
-$code = <<<'CODE'
-<?php
-
-function printLine($msg) {
- echo $msg, "\n";
-}
-
-printLine('Hello World!!!');
-CODE;
-
-$parser = (new PhpParser\ParserFactory)->create(PhpParser\ParserFactory::PREFER_PHP7);
-$nodeDumper = new PhpParser\NodeDumper;
-
-try {
- $stmts = $parser->parse($code);
-
- echo $nodeDumper->dump($stmts), "\n";
-} catch (PhpParser\Error $e) {
- echo 'Parse Error: ', $e->getMessage();
-}
-```
-
-The above script will have an output looking roughly like this:
-
-```
-array(
- 0: Stmt_Function(
- byRef: false
- params: array(
- 0: Param(
- name: msg
- default: null
- type: null
- byRef: false
- )
- )
- stmts: array(
- 0: Stmt_Echo(
- exprs: array(
- 0: Expr_Variable(
- name: msg
- )
- 1: Scalar_String(
- value:
-
- )
- )
- )
- )
- name: printLine
- )
- 1: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: printLine
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: Hello World!!!
- )
- byRef: false
- )
- )
- )
-)
-```
-
-Serialization to XML
---------------------
-
-It is also possible to serialize the node tree to XML using `PhpParser\Serializer\XML->serialize()`
-and to unserialize it using `PhpParser\Unserializer\XML->unserialize()`. This is useful for
-interfacing with other languages and applications or for doing transformation using XSLT.
-
-```php
-<?php
-$code = <<<'CODE'
-<?php
-
-function printLine($msg) {
- echo $msg, "\n";
-}
-
-printLine('Hello World!!!');
-CODE;
-
-$parser = (new PhpParser\ParserFactory)->create(PhpParser\ParserFactory::PREFER_PHP7);
-$serializer = new PhpParser\Serializer\XML;
-
-try {
- $stmts = $parser->parse($code);
-
- echo $serializer->serialize($stmts);
-} catch (PhpParser\Error $e) {
- echo 'Parse Error: ', $e->getMessage();
-}
-```
-
-Produces:
-
-```xml
-<?xml version="1.0" encoding="UTF-8"?>
-<AST xmlns:node="http://nikic.github.com/PHPParser/XML/node" xmlns:subNode="http://nikic.github.com/PHPParser/XML/subNode" xmlns:scalar="http://nikic.github.com/PHPParser/XML/scalar">
- <scalar:array>
- <node:Stmt_Function line="2">
- <subNode:byRef>
- <scalar:false/>
- </subNode:byRef>
- <subNode:params>
- <scalar:array>
- <node:Param line="2">
- <subNode:name>
- <scalar:string>msg</scalar:string>
- </subNode:name>
- <subNode:default>
- <scalar:null/>
- </subNode:default>
- <subNode:type>
- <scalar:null/>
- </subNode:type>
- <subNode:byRef>
- <scalar:false/>
- </subNode:byRef>
- </node:Param>
- </scalar:array>
- </subNode:params>
- <subNode:stmts>
- <scalar:array>
- <node:Stmt_Echo line="3">
- <subNode:exprs>
- <scalar:array>
- <node:Expr_Variable line="3">
- <subNode:name>
- <scalar:string>msg</scalar:string>
- </subNode:name>
- </node:Expr_Variable>
- <node:Scalar_String line="3">
- <subNode:value>
- <scalar:string>
-</scalar:string>
- </subNode:value>
- </node:Scalar_String>
- </scalar:array>
- </subNode:exprs>
- </node:Stmt_Echo>
- </scalar:array>
- </subNode:stmts>
- <subNode:name>
- <scalar:string>printLine</scalar:string>
- </subNode:name>
- </node:Stmt_Function>
- <node:Expr_FuncCall line="6">
- <subNode:name>
- <node:Name line="6">
- <subNode:parts>
- <scalar:array>
- <scalar:string>printLine</scalar:string>
- </scalar:array>
- </subNode:parts>
- </node:Name>
- </subNode:name>
- <subNode:args>
- <scalar:array>
- <node:Arg line="6">
- <subNode:value>
- <node:Scalar_String line="6">
- <subNode:value>
- <scalar:string>Hello World!!!</scalar:string>
- </subNode:value>
- </node:Scalar_String>
- </subNode:value>
- <subNode:byRef>
- <scalar:false/>
- </subNode:byRef>
- </node:Arg>
- </scalar:array>
- </subNode:args>
- </node:Expr_FuncCall>
- </scalar:array>
-</AST>
-``` \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/doc/4_Code_generation.markdown b/www/wiki/vendor/nikic/php-parser/doc/4_Code_generation.markdown
deleted file mode 100644
index 2c0aa0ed..00000000
--- a/www/wiki/vendor/nikic/php-parser/doc/4_Code_generation.markdown
+++ /dev/null
@@ -1,84 +0,0 @@
-Code generation
-===============
-
-It is also possible to generate code using the parser, by first creating an Abstract Syntax Tree and then using the
-pretty printer to convert it to PHP code. To simplify code generation, the project comes with builders which allow
-creating node trees using a fluid interface, instead of instantiating all nodes manually. Builders are available for
-the following syntactic elements:
-
- * namespaces and use statements
- * classes, interfaces and traits
- * methods, functions and parameters
- * properties
-
-Here is an example:
-
-```php
-use PhpParser\BuilderFactory;
-use PhpParser\PrettyPrinter;
-use PhpParser\Node;
-
-$factory = new BuilderFactory;
-$node = $factory->namespace('Name\Space')
- ->addStmt($factory->use('Some\Other\Thingy')->as('SomeOtherClass'))
- ->addStmt($factory->class('SomeClass')
- ->extend('SomeOtherClass')
- ->implement('A\Few', '\Interfaces')
- ->makeAbstract() // ->makeFinal()
-
- ->addStmt($factory->method('someMethod')
- ->makePublic()
- ->makeAbstract() // ->makeFinal()
- ->setReturnType('bool')
- ->addParam($factory->param('someParam')->setTypeHint('SomeClass'))
- ->setDocComment('/**
- * This method does something.
- *
- * @param SomeClass And takes a parameter
- */')
- )
-
- ->addStmt($factory->method('anotherMethod')
- ->makeProtected() // ->makePublic() [default], ->makePrivate()
- ->addParam($factory->param('someParam')->setDefault('test'))
- // it is possible to add manually created nodes
- ->addStmt(new Node\Expr\Print_(new Node\Expr\Variable('someParam')))
- )
-
- // properties will be correctly reordered above the methods
- ->addStmt($factory->property('someProperty')->makeProtected())
- ->addStmt($factory->property('anotherProperty')->makePrivate()->setDefault(array(1, 2, 3)))
- )
-
- ->getNode()
-;
-
-$stmts = array($node);
-$prettyPrinter = new PrettyPrinter\Standard();
-echo $prettyPrinter->prettyPrintFile($stmts);
-```
-
-This will produce the following output with the standard pretty printer:
-
-```php
-<?php
-
-namespace Name\Space;
-
-use Some\Other\Thingy as SomeClass;
-abstract class SomeClass extends SomeOtherClass implements A\Few, \Interfaces
-{
- protected $someProperty;
- private $anotherProperty = array(1, 2, 3);
- /**
- * This method does something.
- *
- * @param SomeClass And takes a parameter
- */
- public abstract function someMethod(SomeClass $someParam) : bool;
- protected function anotherMethod($someParam = 'test')
- {
- print $someParam;
- }
-}
-```
diff --git a/www/wiki/vendor/nikic/php-parser/doc/component/Error.markdown b/www/wiki/vendor/nikic/php-parser/doc/component/Error.markdown
deleted file mode 100644
index eed81776..00000000
--- a/www/wiki/vendor/nikic/php-parser/doc/component/Error.markdown
+++ /dev/null
@@ -1,77 +0,0 @@
-Error handling
-==============
-
-Errors during parsing or analysis are represented using the `PhpParser\Error` exception class. In addition to an error
-message, an error can also store additional information about the location the error occurred at.
-
-How much location information is available depends on the origin of the error and how many lexer attributes have been
-enabled. At a minimum the start line of the error is usually available.
-
-Column information
-------------------
-
-In order to receive information about not only the line, but also the column span an error occurred at, the file
-position attributes in the lexer need to be enabled:
-
-```php
-$lexer = new PhpParser\Lexer(array(
- 'usedAttributes' => array('comments', 'startLine', 'endLine', 'startFilePos', 'endFilePos'),
-));
-$parser = (new PhpParser\ParserFactory)->create(PhpParser\ParserFactory::PREFER_PHP7, $lexer);
-
-try {
- $stmts = $parser->parse($code);
- // ...
-} catch (PhpParser\Error $e) {
- // ...
-}
-```
-
-Before using column information its availability needs to be checked with `$e->hasColumnInfo()`, as the precise
-location of an error cannot always be determined. The methods for retrieving column information also have to be passed
-the source code of the parsed file. An example for printing an error:
-
-```php
-if ($e->hasColumnInfo()) {
- echo $e->getRawMessage() . ' from ' . $e->getStartLine() . ':' . $e->getStartColumn($code)
- . ' to ' . $e->getEndLine() . ':' . $e->getEndColumn($code);
-} else {
- echo $e->getMessage();
-}
-```
-
-Both line numbers and column numbers are 1-based. EOF errors will be located at the position one past the end of the
-file.
-
-Error recovery
---------------
-
-> **EXPERIMENTAL**
-
-By default the parser will throw an exception upon encountering the first error during parsing. An alternative mode is
-also supported, in which the parser will remember the error, but try to continue parsing the rest of the source code.
-
-To enable this mode the `throwOnError` parser option needs to be disabled. Any errors that occurred during parsing can
-then be retrieved using `$parser->getErrors()`. The `$parser->parse()` method will either return a partial syntax tree
-or `null` if recovery fails.
-
-A usage example:
-
-```php
-$parser = (new PhpParser\ParserFactory)->create(PhpParser\ParserFactory::PREFER_PHP7, null, array(
- 'throwOnError' => false,
-));
-
-$stmts = $parser->parse($code);
-$errors = $parser->getErrors();
-
-foreach ($errors as $error) {
- // $error is an ordinary PhpParser\Error
-}
-
-if (null !== $stmts) {
- // $stmts is a best-effort partial AST
-}
-```
-
-The error recovery implementation is experimental -- it currently won't be able to recover from many types of errors.
diff --git a/www/wiki/vendor/nikic/php-parser/doc/component/Lexer.markdown b/www/wiki/vendor/nikic/php-parser/doc/component/Lexer.markdown
deleted file mode 100644
index 422dd378..00000000
--- a/www/wiki/vendor/nikic/php-parser/doc/component/Lexer.markdown
+++ /dev/null
@@ -1,149 +0,0 @@
-Lexer component documentation
-=============================
-
-The lexer is responsible for providing tokens to the parser. The project comes with two lexers: `PhpParser\Lexer` and
-`PhpParser\Lexer\Emulative`. The latter is an extension of the former, which adds the ability to emulate tokens of
-newer PHP versions and thus allows parsing of new code on older versions.
-
-This documentation discusses options available for the default lexers and explains how lexers can be extended.
-
-Lexer options
--------------
-
-The two default lexers accept an `$options` array in the constructor. Currently only the `'usedAttributes'` option is
-supported, which allows you to specify which attributes will be added to the AST nodes. The attributes can then be
-accessed using `$node->getAttribute()`, `$node->setAttribute()`, `$node->hasAttribute()` and `$node->getAttributes()`
-methods. A sample options array:
-
-```php
-$lexer = new PhpParser\Lexer(array(
- 'usedAttributes' => array(
- 'comments', 'startLine', 'endLine'
- )
-));
-```
-
-The attributes used in this example match the default behavior of the lexer. The following attributes are supported:
-
- * `comments`: Array of `PhpParser\Comment` or `PhpParser\Comment\Doc` instances, representing all comments that occurred
- between the previous non-discarded token and the current one. Use of this attribute is required for the
- `$node->getDocComment()` method to work. The attribute is also needed if you wish the pretty printer to retain
- comments present in the original code.
- * `startLine`: Line in which the node starts. This attribute is required for the `$node->getLine()` to work. It is also
- required if syntax errors should contain line number information.
- * `endLine`: Line in which the node ends.
- * `startTokenPos`: Offset into the token array of the first token in the node.
- * `endTokenPos`: Offset into the token array of the last token in the node.
- * `startFilePos`: Offset into the code string of the first character that is part of the node.
- * `endFilePos`: Offset into the code string of the last character that is part of the node.
-
-### Using token positions
-
-The token offset information is useful if you wish to examine the exact formatting used for a node. For example the AST
-does not distinguish whether a property was declared using `public` or using `var`, but you can retrieve this
-information based on the token position:
-
-```php
-function isDeclaredUsingVar(array $tokens, PhpParser\Node\Stmt\Property $prop) {
- $i = $prop->getAttribute('startTokenPos');
- return $tokens[$i][0] === T_VAR;
-}
-```
-
-In order to make use of this function, you will have to provide the tokens from the lexer to your node visitor using
-code similar to the following:
-
-```php
-class MyNodeVisitor extends PhpParser\NodeVisitorAbstract {
- private $tokens;
- public function setTokens(array $tokens) {
- $this->tokens = $tokens;
- }
-
- public function leaveNode(PhpParser\Node $node) {
- if ($node instanceof PhpParser\Node\Stmt\Property) {
- var_dump(isDeclaredUsingVar($this->tokens, $node));
- }
- }
-}
-
-$lexer = new PhpParser\Lexer(array(
- 'usedAttributes' => array(
- 'comments', 'startLine', 'endLine', 'startTokenPos', 'endTokenPos'
- )
-));
-$parser = (new PhpParser\ParserFactory)->create(PhpParser\ParserFactory::PREFER_PHP7, $lexer);
-
-$visitor = new MyNodeVisitor();
-$traverser = new PhpParser\NodeTraverser();
-$traverser->addVisitor($visitor);
-
-try {
- $stmts = $parser->parse($code);
- $visitor->setTokens($lexer->getTokens());
- $stmts = $traverser->traverse($stmts);
-} catch (PhpParser\Error $e) {
- echo 'Parse Error: ', $e->getMessage();
-}
-```
-
-The same approach can also be used to perform specific modifications in the code, without changing the formatting in
-other places (which is the case when using the pretty printer).
-
-Lexer extension
----------------
-
-A lexer has to define the following public interface:
-
- void startLexing(string $code);
- array getTokens();
- string handleHaltCompiler();
- int getNextToken(string &$value = null, array &$startAttributes = null, array &$endAttributes = null);
-
-The `startLexing()` method is invoked with the source code that is to be lexed (including the opening tag) whenever the
-`parse()` method of the parser is called. It can be used to reset state or preprocess the source code or tokens.
-
-The `getTokens()` method returns the current token array, in the usual `token_get_all()` format. This method is not
-used by the parser (which uses `getNextToken()`), but is useful in combination with the token position attributes.
-
-The `handleHaltCompiler()` method is called whenever a `T_HALT_COMPILER` token is encountered. It has to return the
-remaining string after the construct (not including `();`).
-
-The `getNextToken()` method returns the ID of the next token (as defined by the `Parser::T_*` constants). If no more
-tokens are available it must return `0`, which is the ID of the `EOF` token. Furthermore the string content of the
-token should be written into the by-reference `$value` parameter (which will then be available as `$n` in the parser).
-
-### Attribute handling
-
-The other two by-ref variables `$startAttributes` and `$endAttributes` define which attributes will eventually be
-assigned to the generated nodes: The parser will take the `$startAttributes` from the first token which is part of the
-node and the `$endAttributes` from the last token that is part of the node.
-
-E.g. if the tokens `T_FUNCTION T_STRING ... '{' ... '}'` constitute a node, then the `$startAttributes` from the
-`T_FUNCTION` token will be taken and the `$endAttributes` from the `'}'` token.
-
-An application of custom attributes is storing the original formatting of literals: The parser does not retain
-information about the formatting of integers (like decimal vs. hexadecimal) or strings (like used quote type or used
-escape sequences). This can be remedied by storing the original value in an attribute:
-
-```php
-use PhpParser\Lexer;
-use PhpParser\Parser\Tokens;
-
-class KeepOriginalValueLexer extends Lexer // or Lexer\Emulative
-{
- public function getNextToken(&$value = null, &$startAttributes = null, &$endAttributes = null) {
- $tokenId = parent::getNextToken($value, $startAttributes, $endAttributes);
-
- if ($tokenId == Tokens::T_CONSTANT_ENCAPSED_STRING // non-interpolated string
- || $tokenId == Tokens::T_LNUMBER // integer
- || $tokenId == Tokens::T_DNUMBER // floating point number
- ) {
- // could also use $startAttributes, doesn't really matter here
- $endAttributes['originalValue'] = $value;
- }
-
- return $tokenId;
- }
-}
-```
diff --git a/www/wiki/vendor/nikic/php-parser/grammar/README.md b/www/wiki/vendor/nikic/php-parser/grammar/README.md
deleted file mode 100644
index 93206a8f..00000000
--- a/www/wiki/vendor/nikic/php-parser/grammar/README.md
+++ /dev/null
@@ -1,29 +0,0 @@
-What do all those files mean?
-=============================
-
- * `php5.y`: PHP 5 grammar written in a pseudo language
- * `php7.y`: PHP 7 grammar written in a pseudo language
- * `tokens.y`: Tokens definition shared between PHP 5 and PHP 7 grammars
- * `parser.template`: A `kmyacc` parser prototype file for PHP
- * `tokens.template`: A `kmyacc` prototype file for the `Tokens` class
- * `analyze.php`: Analyzes the grammer and outputs some info about it
- * `rebuildParser.php`: Preprocesses the grammar and builds the parser using `kmyacc`
-
-.phpy pseudo language
-=====================
-
-The `.y` file is a normal grammer in `kmyacc` (`yacc`) style, with some transformations
-applied to it:
-
- * Nodes are created using the syntax `Name[..., ...]`. This is transformed into
- `new Name(..., ..., attributes())`
- * Some function-like constructs are resolved (see `rebuildParser.php` for a list)
-
-Building the parser
-===================
-
-In order to rebuild the parser, you need [moriyoshi's fork of kmyacc](https://github.com/moriyoshi/kmyacc-forked).
-After you compiled/installed it, run the `rebuildParser.php` script.
-
-By default only the `Parser.php` is built. If you want to additionally emit debug symbols and create `y.output`, run the
-script with `--debug`. If you want to retain the preprocessed grammar pass `--keep-tmp-grammar`.
diff --git a/www/wiki/vendor/nikic/php-parser/grammar/analyze.php b/www/wiki/vendor/nikic/php-parser/grammar/analyze.php
deleted file mode 100644
index cd30b3c9..00000000
--- a/www/wiki/vendor/nikic/php-parser/grammar/analyze.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<?php
-
-const GRAMMAR_FILE = './php5.y';
-
-const LIB = '(?(DEFINE)
- (?<singleQuotedString>\'[^\\\\\']*+(?:\\\\.[^\\\\\']*+)*+\')
- (?<doubleQuotedString>"[^\\\\"]*+(?:\\\\.[^\\\\"]*+)*+")
- (?<string>(?&singleQuotedString)|(?&doubleQuotedString))
- (?<comment>/\*[^*]*+(?:\*(?!/)[^*]*+)*+\*/)
- (?<code>\{[^\'"/{}]*+(?:(?:(?&string)|(?&comment)|(?&code)|/)[^\'"/{}]*+)*+})
-)';
-
-const RULE_BLOCK = '(?<name>[a-z_]++):(?<rules>[^\'"/{};]*+(?:(?:(?&string)|(?&comment)|(?&code)|/|})[^\'"/{};]*+)*+);';
-
-$usedTerminals = array_flip(array(
- 'T_VARIABLE', 'T_STRING', 'T_INLINE_HTML', 'T_ENCAPSED_AND_WHITESPACE',
- 'T_LNUMBER', 'T_DNUMBER', 'T_CONSTANT_ENCAPSED_STRING', 'T_STRING_VARNAME', 'T_NUM_STRING'
-));
-$unusedNonterminals = array_flip(array(
- 'case_separator', 'optional_comma'
-));
-
-function regex($regex) {
- return '~' . LIB . '(?:' . str_replace('~', '\~', $regex) . ')~';
-}
-
-function magicSplit($regex, $string) {
- $pieces = preg_split(regex('(?:(?&string)|(?&comment)|(?&code))(*SKIP)(*FAIL)|' . $regex), $string);
-
- foreach ($pieces as &$piece) {
- $piece = trim($piece);
- }
-
- return array_filter($pieces);
-}
-
-echo '<pre>';
-
-////////////////////
-////////////////////
-////////////////////
-
-list($defs, $ruleBlocks) = magicSplit('%%', file_get_contents(GRAMMAR_FILE));
-
-if ('' !== trim(preg_replace(regex(RULE_BLOCK), '', $ruleBlocks))) {
- die('Not all rule blocks were properly recognized!');
-}
-
-preg_match_all(regex(RULE_BLOCK), $ruleBlocks, $ruleBlocksMatches, PREG_SET_ORDER);
-foreach ($ruleBlocksMatches as $match) {
- $ruleBlockName = $match['name'];
- $rules = magicSplit('\|', $match['rules']);
-
- foreach ($rules as &$rule) {
- $parts = magicSplit('\s+', $rule);
- $usedParts = array();
-
- foreach ($parts as $part) {
- if ('{' === $part[0]) {
- preg_match_all('~\$([0-9]+)~', $part, $backReferencesMatches, PREG_SET_ORDER);
- foreach ($backReferencesMatches as $match) {
- $usedParts[$match[1]] = true;
- }
- }
- }
-
- $i = 1;
- foreach ($parts as &$part) {
- if ('/' === $part[0]) {
- continue;
- }
-
- if (isset($usedParts[$i])) {
- if ('\'' === $part[0] || '{' === $part[0]
- || (ctype_upper($part[0]) && !isset($usedTerminals[$part]))
- || (ctype_lower($part[0]) && isset($unusedNonterminals[$part]))
- ) {
- $part = '<span style="background-color: red; color: white;">' . $part . '</span>';
- } else {
- $part = '<strong><em>' . $part . '</em></strong>';
- }
- } elseif ((ctype_upper($part[0]) && isset($usedTerminals[$part]))
- || (ctype_lower($part[0]) && !isset($unusedNonterminals[$part]))
-
- ) {
- $part = '<span style="background-color: blue; color: white;">' . $part . '</span>';
- }
-
- ++$i;
- }
-
- $rule = implode(' ', $parts);
- }
-
- echo $ruleBlockName, ':', "\n", ' ', implode("\n" . ' | ', $rules), "\n", ';', "\n\n";
-}
diff --git a/www/wiki/vendor/nikic/php-parser/grammar/parser.template b/www/wiki/vendor/nikic/php-parser/grammar/parser.template
deleted file mode 100644
index fff893ff..00000000
--- a/www/wiki/vendor/nikic/php-parser/grammar/parser.template
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-$meta #
-#semval($) $this->semValue
-#semval($,%t) $this->semValue
-#semval(%n) $this->stackPos-(%l-%n)
-#semval(%n,%t) $this->stackPos-(%l-%n)
-
-namespace PhpParser\Parser;
-
-use PhpParser\Error;
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Name;
-use PhpParser\Node\Scalar;
-use PhpParser\Node\Stmt;
-#include;
-
-/* This is an automatically GENERATED file, which should not be manually edited.
- * Instead edit one of the following:
- * * the grammar files grammar/php5.y or grammar/php7.y
- * * the skeleton file grammar/parser.template
- * * the preprocessing script grammar/rebuildParsers.php
- */
-class #(-p) extends \PhpParser\ParserAbstract
-{
- protected $tokenToSymbolMapSize = #(YYMAXLEX);
- protected $actionTableSize = #(YYLAST);
- protected $gotoTableSize = #(YYGLAST);
-
- protected $invalidSymbol = #(YYBADCH);
- protected $errorSymbol = #(YYINTERRTOK);
- protected $defaultAction = #(YYDEFAULT);
- protected $unexpectedTokenRule = #(YYUNEXPECTED);
-
- protected $YY2TBLSTATE = #(YY2TBLSTATE);
- protected $YYNLSTATES = #(YYNLSTATES);
-
- protected $symbolToName = array(
- #listvar terminals
- );
-
- protected $tokenToSymbol = array(
- #listvar yytranslate
- );
-
- protected $action = array(
- #listvar yyaction
- );
-
- protected $actionCheck = array(
- #listvar yycheck
- );
-
- protected $actionBase = array(
- #listvar yybase
- );
-
- protected $actionDefault = array(
- #listvar yydefault
- );
-
- protected $goto = array(
- #listvar yygoto
- );
-
- protected $gotoCheck = array(
- #listvar yygcheck
- );
-
- protected $gotoBase = array(
- #listvar yygbase
- );
-
- protected $gotoDefault = array(
- #listvar yygdefault
- );
-
- protected $ruleToNonTerminal = array(
- #listvar yylhs
- );
-
- protected $ruleToLength = array(
- #listvar yylen
- );
-#if -t
-
- protected $productions = array(
- #production-strings;
- );
-#endif
-#reduce
-
- protected function reduceRule%n() {
- %b
- }
-#noact
-
- protected function reduceRule%n() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-#endreduce
-}
-#tailcode;
diff --git a/www/wiki/vendor/nikic/php-parser/grammar/php5.y b/www/wiki/vendor/nikic/php-parser/grammar/php5.y
deleted file mode 100644
index f6776e29..00000000
--- a/www/wiki/vendor/nikic/php-parser/grammar/php5.y
+++ /dev/null
@@ -1,979 +0,0 @@
-%pure_parser
-%expect 6
-
-%tokens
-
-%%
-
-start:
- top_statement_list { $$ = $this->handleNamespaces($1); }
-;
-
-top_statement_list_ex:
- top_statement_list_ex top_statement { pushNormalizing($1, $2); }
- | /* empty */ { init(); }
-;
-
-top_statement_list:
- top_statement_list_ex
- { makeNop($nop, $this->lookaheadStartAttributes);
- if ($nop !== null) { $1[] = $nop; } $$ = $1; }
-;
-
-reserved_non_modifiers:
- T_INCLUDE | T_INCLUDE_ONCE | T_EVAL | T_REQUIRE | T_REQUIRE_ONCE | T_LOGICAL_OR | T_LOGICAL_XOR | T_LOGICAL_AND
- | T_INSTANCEOF | T_NEW | T_CLONE | T_EXIT | T_IF | T_ELSEIF | T_ELSE | T_ENDIF | T_ECHO | T_DO | T_WHILE
- | T_ENDWHILE | T_FOR | T_ENDFOR | T_FOREACH | T_ENDFOREACH | T_DECLARE | T_ENDDECLARE | T_AS | T_TRY | T_CATCH
- | T_FINALLY | T_THROW | T_USE | T_INSTEADOF | T_GLOBAL | T_VAR | T_UNSET | T_ISSET | T_EMPTY | T_CONTINUE | T_GOTO
- | T_FUNCTION | T_CONST | T_RETURN | T_PRINT | T_YIELD | T_LIST | T_SWITCH | T_ENDSWITCH | T_CASE | T_DEFAULT
- | T_BREAK | T_ARRAY | T_CALLABLE | T_EXTENDS | T_IMPLEMENTS | T_NAMESPACE | T_TRAIT | T_INTERFACE | T_CLASS
- | T_CLASS_C | T_TRAIT_C | T_FUNC_C | T_METHOD_C | T_LINE | T_FILE | T_DIR | T_NS_C | T_HALT_COMPILER
-;
-
-semi_reserved:
- reserved_non_modifiers
- | T_STATIC | T_ABSTRACT | T_FINAL | T_PRIVATE | T_PROTECTED | T_PUBLIC
-;
-
-identifier:
- T_STRING { $$ = $1; }
- | semi_reserved { $$ = $1; }
-;
-
-namespace_name_parts:
- T_STRING { init($1); }
- | namespace_name_parts T_NS_SEPARATOR T_STRING { push($1, $3); }
-;
-
-namespace_name:
- namespace_name_parts { $$ = Name[$1]; }
-;
-
-top_statement:
- statement { $$ = $1; }
- | function_declaration_statement { $$ = $1; }
- | class_declaration_statement { $$ = $1; }
- | T_HALT_COMPILER
- { $$ = Stmt\HaltCompiler[$this->lexer->handleHaltCompiler()]; }
- | T_NAMESPACE namespace_name ';' { $$ = Stmt\Namespace_[$2, null]; }
- | T_NAMESPACE namespace_name '{' top_statement_list '}' { $$ = Stmt\Namespace_[$2, $4]; }
- | T_NAMESPACE '{' top_statement_list '}' { $$ = Stmt\Namespace_[null, $3]; }
- | T_USE use_declarations ';' { $$ = Stmt\Use_[$2, Stmt\Use_::TYPE_NORMAL]; }
- | T_USE use_type use_declarations ';' { $$ = Stmt\Use_[$3, $2]; }
- | group_use_declaration ';' { $$ = $1; }
- | T_CONST constant_declaration_list ';' { $$ = Stmt\Const_[$2]; }
-;
-
-use_type:
- T_FUNCTION { $$ = Stmt\Use_::TYPE_FUNCTION; }
- | T_CONST { $$ = Stmt\Use_::TYPE_CONSTANT; }
-;
-
-/* Using namespace_name_parts here to avoid s/r conflict on T_NS_SEPARATOR */
-group_use_declaration:
- T_USE use_type namespace_name_parts T_NS_SEPARATOR '{' unprefixed_use_declarations '}'
- { $$ = Stmt\GroupUse[Name[$3], $6, $2]; }
- | T_USE use_type T_NS_SEPARATOR namespace_name_parts T_NS_SEPARATOR '{' unprefixed_use_declarations '}'
- { $$ = Stmt\GroupUse[Name[$4], $7, $2]; }
- | T_USE namespace_name_parts T_NS_SEPARATOR '{' inline_use_declarations '}'
- { $$ = Stmt\GroupUse[Name[$2], $5, Stmt\Use_::TYPE_UNKNOWN]; }
- | T_USE T_NS_SEPARATOR namespace_name_parts T_NS_SEPARATOR '{' inline_use_declarations '}'
- { $$ = Stmt\GroupUse[Name[$3], $6, Stmt\Use_::TYPE_UNKNOWN]; }
-;
-
-unprefixed_use_declarations:
- unprefixed_use_declarations ',' unprefixed_use_declaration
- { push($1, $3); }
- | unprefixed_use_declaration { init($1); }
-;
-
-use_declarations:
- use_declarations ',' use_declaration { push($1, $3); }
- | use_declaration { init($1); }
-;
-
-inline_use_declarations:
- inline_use_declarations ',' inline_use_declaration { push($1, $3); }
- | inline_use_declaration { init($1); }
-;
-
-unprefixed_use_declaration:
- namespace_name { $$ = Stmt\UseUse[$1, null, Stmt\Use_::TYPE_UNKNOWN]; }
- | namespace_name T_AS T_STRING { $$ = Stmt\UseUse[$1, $3, Stmt\Use_::TYPE_UNKNOWN]; }
-;
-
-use_declaration:
- unprefixed_use_declaration { $$ = $1; }
- | T_NS_SEPARATOR unprefixed_use_declaration { $$ = $2; }
-;
-
-inline_use_declaration:
- unprefixed_use_declaration { $$ = $1; $$->type = Stmt\Use_::TYPE_NORMAL; }
- | use_type unprefixed_use_declaration { $$ = $2; $$->type = $1; }
-;
-
-constant_declaration_list:
- constant_declaration_list ',' constant_declaration { push($1, $3); }
- | constant_declaration { init($1); }
-;
-
-constant_declaration:
- T_STRING '=' static_scalar { $$ = Node\Const_[$1, $3]; }
-;
-
-class_const_list:
- class_const_list ',' class_const { push($1, $3); }
- | class_const { init($1); }
-;
-
-class_const:
- identifier '=' static_scalar { $$ = Node\Const_[$1, $3]; }
-;
-
-inner_statement_list_ex:
- inner_statement_list_ex inner_statement { pushNormalizing($1, $2); }
- | /* empty */ { init(); }
-;
-
-inner_statement_list:
- inner_statement_list_ex
- { makeNop($nop, $this->lookaheadStartAttributes);
- if ($nop !== null) { $1[] = $nop; } $$ = $1; }
-;
-
-inner_statement:
- statement { $$ = $1; }
- | function_declaration_statement { $$ = $1; }
- | class_declaration_statement { $$ = $1; }
- | T_HALT_COMPILER
- { throw new Error('__HALT_COMPILER() can only be used from the outermost scope', attributes()); }
-;
-
-non_empty_statement:
- '{' inner_statement_list '}' { $$ = $2; }
- | T_IF parentheses_expr statement elseif_list else_single
- { $$ = Stmt\If_[$2, ['stmts' => toArray($3), 'elseifs' => $4, 'else' => $5]]; }
- | T_IF parentheses_expr ':' inner_statement_list new_elseif_list new_else_single T_ENDIF ';'
- { $$ = Stmt\If_[$2, ['stmts' => $4, 'elseifs' => $5, 'else' => $6]]; }
- | T_WHILE parentheses_expr while_statement { $$ = Stmt\While_[$2, $3]; }
- | T_DO statement T_WHILE parentheses_expr ';' { $$ = Stmt\Do_ [$4, toArray($2)]; }
- | T_FOR '(' for_expr ';' for_expr ';' for_expr ')' for_statement
- { $$ = Stmt\For_[['init' => $3, 'cond' => $5, 'loop' => $7, 'stmts' => $9]]; }
- | T_SWITCH parentheses_expr switch_case_list { $$ = Stmt\Switch_[$2, $3]; }
- | T_BREAK ';' { $$ = Stmt\Break_[null]; }
- | T_BREAK expr ';' { $$ = Stmt\Break_[$2]; }
- | T_CONTINUE ';' { $$ = Stmt\Continue_[null]; }
- | T_CONTINUE expr ';' { $$ = Stmt\Continue_[$2]; }
- | T_RETURN ';' { $$ = Stmt\Return_[null]; }
- | T_RETURN expr ';' { $$ = Stmt\Return_[$2]; }
- | yield_expr ';' { $$ = $1; }
- | T_GLOBAL global_var_list ';' { $$ = Stmt\Global_[$2]; }
- | T_STATIC static_var_list ';' { $$ = Stmt\Static_[$2]; }
- | T_ECHO expr_list ';' { $$ = Stmt\Echo_[$2]; }
- | T_INLINE_HTML { $$ = Stmt\InlineHTML[$1]; }
- | expr ';' { $$ = $1; }
- | T_UNSET '(' variables_list ')' ';' { $$ = Stmt\Unset_[$3]; }
- | T_FOREACH '(' expr T_AS foreach_variable ')' foreach_statement
- { $$ = Stmt\Foreach_[$3, $5[0], ['keyVar' => null, 'byRef' => $5[1], 'stmts' => $7]]; }
- | T_FOREACH '(' expr T_AS variable T_DOUBLE_ARROW foreach_variable ')' foreach_statement
- { $$ = Stmt\Foreach_[$3, $7[0], ['keyVar' => $5, 'byRef' => $7[1], 'stmts' => $9]]; }
- | T_DECLARE '(' declare_list ')' declare_statement { $$ = Stmt\Declare_[$3, $5]; }
- | T_TRY '{' inner_statement_list '}' catches optional_finally
- { $$ = Stmt\TryCatch[$3, $5, $6]; }
- | T_THROW expr ';' { $$ = Stmt\Throw_[$2]; }
- | T_GOTO T_STRING ';' { $$ = Stmt\Goto_[$2]; }
- | T_STRING ':' { $$ = Stmt\Label[$1]; }
- | error { $$ = array(); /* means: no statement */ }
-;
-
-statement:
- non_empty_statement { $$ = $1; }
- | ';'
- { makeNop($$, $this->startAttributeStack[#1]);
- if ($$ === null) $$ = array(); /* means: no statement */ }
-;
-
-catches:
- /* empty */ { init(); }
- | catches catch { push($1, $2); }
-;
-
-catch:
- T_CATCH '(' name T_VARIABLE ')' '{' inner_statement_list '}'
- { $$ = Stmt\Catch_[$3, parseVar($4), $7]; }
-;
-
-optional_finally:
- /* empty */ { $$ = null; }
- | T_FINALLY '{' inner_statement_list '}' { $$ = $3; }
-;
-
-variables_list:
- variable { init($1); }
- | variables_list ',' variable { push($1, $3); }
-;
-
-optional_ref:
- /* empty */ { $$ = false; }
- | '&' { $$ = true; }
-;
-
-optional_ellipsis:
- /* empty */ { $$ = false; }
- | T_ELLIPSIS { $$ = true; }
-;
-
-function_declaration_statement:
- T_FUNCTION optional_ref T_STRING '(' parameter_list ')' optional_return_type '{' inner_statement_list '}'
- { $$ = Stmt\Function_[$3, ['byRef' => $2, 'params' => $5, 'returnType' => $7, 'stmts' => $9]]; }
-;
-
-class_declaration_statement:
- class_entry_type T_STRING extends_from implements_list '{' class_statement_list '}'
- { $$ = Stmt\Class_[$2, ['type' => $1, 'extends' => $3, 'implements' => $4, 'stmts' => $6]]; }
- | T_INTERFACE T_STRING interface_extends_list '{' class_statement_list '}'
- { $$ = Stmt\Interface_[$2, ['extends' => $3, 'stmts' => $5]]; }
- | T_TRAIT T_STRING '{' class_statement_list '}'
- { $$ = Stmt\Trait_[$2, $4]; }
-;
-
-class_entry_type:
- T_CLASS { $$ = 0; }
- | T_ABSTRACT T_CLASS { $$ = Stmt\Class_::MODIFIER_ABSTRACT; }
- | T_FINAL T_CLASS { $$ = Stmt\Class_::MODIFIER_FINAL; }
-;
-
-extends_from:
- /* empty */ { $$ = null; }
- | T_EXTENDS name { $$ = $2; }
-;
-
-interface_extends_list:
- /* empty */ { $$ = array(); }
- | T_EXTENDS name_list { $$ = $2; }
-;
-
-implements_list:
- /* empty */ { $$ = array(); }
- | T_IMPLEMENTS name_list { $$ = $2; }
-;
-
-name_list:
- name { init($1); }
- | name_list ',' name { push($1, $3); }
-;
-
-for_statement:
- statement { $$ = toArray($1); }
- | ':' inner_statement_list T_ENDFOR ';' { $$ = $2; }
-;
-
-foreach_statement:
- statement { $$ = toArray($1); }
- | ':' inner_statement_list T_ENDFOREACH ';' { $$ = $2; }
-;
-
-declare_statement:
- non_empty_statement { $$ = toArray($1); }
- | ';' { $$ = null; }
- | ':' inner_statement_list T_ENDDECLARE ';' { $$ = $2; }
-;
-
-declare_list:
- declare_list_element { init($1); }
- | declare_list ',' declare_list_element { push($1, $3); }
-;
-
-declare_list_element:
- T_STRING '=' static_scalar { $$ = Stmt\DeclareDeclare[$1, $3]; }
-;
-
-switch_case_list:
- '{' case_list '}' { $$ = $2; }
- | '{' ';' case_list '}' { $$ = $3; }
- | ':' case_list T_ENDSWITCH ';' { $$ = $2; }
- | ':' ';' case_list T_ENDSWITCH ';' { $$ = $3; }
-;
-
-case_list:
- /* empty */ { init(); }
- | case_list case { push($1, $2); }
-;
-
-case:
- T_CASE expr case_separator inner_statement_list { $$ = Stmt\Case_[$2, $4]; }
- | T_DEFAULT case_separator inner_statement_list { $$ = Stmt\Case_[null, $3]; }
-;
-
-case_separator:
- ':'
- | ';'
-;
-
-while_statement:
- statement { $$ = toArray($1); }
- | ':' inner_statement_list T_ENDWHILE ';' { $$ = $2; }
-;
-
-elseif_list:
- /* empty */ { init(); }
- | elseif_list elseif { push($1, $2); }
-;
-
-elseif:
- T_ELSEIF parentheses_expr statement { $$ = Stmt\ElseIf_[$2, toArray($3)]; }
-;
-
-new_elseif_list:
- /* empty */ { init(); }
- | new_elseif_list new_elseif { push($1, $2); }
-;
-
-new_elseif:
- T_ELSEIF parentheses_expr ':' inner_statement_list { $$ = Stmt\ElseIf_[$2, $4]; }
-;
-
-else_single:
- /* empty */ { $$ = null; }
- | T_ELSE statement { $$ = Stmt\Else_[toArray($2)]; }
-;
-
-new_else_single:
- /* empty */ { $$ = null; }
- | T_ELSE ':' inner_statement_list { $$ = Stmt\Else_[$3]; }
-;
-
-foreach_variable:
- variable { $$ = array($1, false); }
- | '&' variable { $$ = array($2, true); }
- | list_expr { $$ = array($1, false); }
-;
-
-parameter_list:
- non_empty_parameter_list { $$ = $1; }
- | /* empty */ { $$ = array(); }
-;
-
-non_empty_parameter_list:
- parameter { init($1); }
- | non_empty_parameter_list ',' parameter { push($1, $3); }
-;
-
-parameter:
- optional_param_type optional_ref optional_ellipsis T_VARIABLE
- { $$ = Node\Param[parseVar($4), null, $1, $2, $3]; }
- | optional_param_type optional_ref optional_ellipsis T_VARIABLE '=' static_scalar
- { $$ = Node\Param[parseVar($4), $6, $1, $2, $3]; }
-;
-
-type:
- name { $$ = $1; }
- | T_ARRAY { $$ = 'array'; }
- | T_CALLABLE { $$ = 'callable'; }
-;
-
-optional_param_type:
- /* empty */ { $$ = null; }
- | type { $$ = $1; }
-;
-
-optional_return_type:
- /* empty */ { $$ = null; }
- | ':' type { $$ = $2; }
-;
-
-argument_list:
- '(' ')' { $$ = array(); }
- | '(' non_empty_argument_list ')' { $$ = $2; }
- | '(' yield_expr ')' { $$ = array(Node\Arg[$2, false, false]); }
-;
-
-non_empty_argument_list:
- argument { init($1); }
- | non_empty_argument_list ',' argument { push($1, $3); }
-;
-
-argument:
- expr { $$ = Node\Arg[$1, false, false]; }
- | '&' variable { $$ = Node\Arg[$2, true, false]; }
- | T_ELLIPSIS expr { $$ = Node\Arg[$2, false, true]; }
-;
-
-global_var_list:
- global_var_list ',' global_var { push($1, $3); }
- | global_var { init($1); }
-;
-
-global_var:
- T_VARIABLE { $$ = Expr\Variable[parseVar($1)]; }
- | '$' variable { $$ = Expr\Variable[$2]; }
- | '$' '{' expr '}' { $$ = Expr\Variable[$3]; }
-;
-
-static_var_list:
- static_var_list ',' static_var { push($1, $3); }
- | static_var { init($1); }
-;
-
-static_var:
- T_VARIABLE { $$ = Stmt\StaticVar[parseVar($1), null]; }
- | T_VARIABLE '=' static_scalar { $$ = Stmt\StaticVar[parseVar($1), $3]; }
-;
-
-class_statement_list:
- class_statement_list class_statement { push($1, $2); }
- | /* empty */ { init(); }
-;
-
-class_statement:
- variable_modifiers property_declaration_list ';' { $$ = Stmt\Property[$1, $2]; }
- | T_CONST class_const_list ';' { $$ = Stmt\ClassConst[$2]; }
- | method_modifiers T_FUNCTION optional_ref identifier '(' parameter_list ')' optional_return_type method_body
- { $$ = Stmt\ClassMethod[$4, ['type' => $1, 'byRef' => $3, 'params' => $6, 'returnType' => $8, 'stmts' => $9]]; }
- | T_USE name_list trait_adaptations { $$ = Stmt\TraitUse[$2, $3]; }
-;
-
-trait_adaptations:
- ';' { $$ = array(); }
- | '{' trait_adaptation_list '}' { $$ = $2; }
-;
-
-trait_adaptation_list:
- /* empty */ { init(); }
- | trait_adaptation_list trait_adaptation { push($1, $2); }
-;
-
-trait_adaptation:
- trait_method_reference_fully_qualified T_INSTEADOF name_list ';'
- { $$ = Stmt\TraitUseAdaptation\Precedence[$1[0], $1[1], $3]; }
- | trait_method_reference T_AS member_modifier identifier ';'
- { $$ = Stmt\TraitUseAdaptation\Alias[$1[0], $1[1], $3, $4]; }
- | trait_method_reference T_AS member_modifier ';'
- { $$ = Stmt\TraitUseAdaptation\Alias[$1[0], $1[1], $3, null]; }
- | trait_method_reference T_AS T_STRING ';'
- { $$ = Stmt\TraitUseAdaptation\Alias[$1[0], $1[1], null, $3]; }
- | trait_method_reference T_AS reserved_non_modifiers ';'
- { $$ = Stmt\TraitUseAdaptation\Alias[$1[0], $1[1], null, $3]; }
-;
-
-trait_method_reference_fully_qualified:
- name T_PAAMAYIM_NEKUDOTAYIM identifier { $$ = array($1, $3); }
-;
-trait_method_reference:
- trait_method_reference_fully_qualified { $$ = $1; }
- | identifier { $$ = array(null, $1); }
-;
-
-method_body:
- ';' /* abstract method */ { $$ = null; }
- | '{' inner_statement_list '}' { $$ = $2; }
-;
-
-variable_modifiers:
- non_empty_member_modifiers { $$ = $1; }
- | T_VAR { $$ = 0; }
-;
-
-method_modifiers:
- /* empty */ { $$ = 0; }
- | non_empty_member_modifiers { $$ = $1; }
-;
-
-non_empty_member_modifiers:
- member_modifier { $$ = $1; }
- | non_empty_member_modifiers member_modifier { Stmt\Class_::verifyModifier($1, $2); $$ = $1 | $2; }
-;
-
-member_modifier:
- T_PUBLIC { $$ = Stmt\Class_::MODIFIER_PUBLIC; }
- | T_PROTECTED { $$ = Stmt\Class_::MODIFIER_PROTECTED; }
- | T_PRIVATE { $$ = Stmt\Class_::MODIFIER_PRIVATE; }
- | T_STATIC { $$ = Stmt\Class_::MODIFIER_STATIC; }
- | T_ABSTRACT { $$ = Stmt\Class_::MODIFIER_ABSTRACT; }
- | T_FINAL { $$ = Stmt\Class_::MODIFIER_FINAL; }
-;
-
-property_declaration_list:
- property_declaration { init($1); }
- | property_declaration_list ',' property_declaration { push($1, $3); }
-;
-
-property_declaration:
- T_VARIABLE { $$ = Stmt\PropertyProperty[parseVar($1), null]; }
- | T_VARIABLE '=' static_scalar { $$ = Stmt\PropertyProperty[parseVar($1), $3]; }
-;
-
-expr_list:
- expr_list ',' expr { push($1, $3); }
- | expr { init($1); }
-;
-
-for_expr:
- /* empty */ { $$ = array(); }
- | expr_list { $$ = $1; }
-;
-
-expr:
- variable { $$ = $1; }
- | list_expr '=' expr { $$ = Expr\Assign[$1, $3]; }
- | variable '=' expr { $$ = Expr\Assign[$1, $3]; }
- | variable '=' '&' variable { $$ = Expr\AssignRef[$1, $4]; }
- | variable '=' '&' new_expr { $$ = Expr\AssignRef[$1, $4]; }
- | new_expr { $$ = $1; }
- | T_CLONE expr { $$ = Expr\Clone_[$2]; }
- | variable T_PLUS_EQUAL expr { $$ = Expr\AssignOp\Plus [$1, $3]; }
- | variable T_MINUS_EQUAL expr { $$ = Expr\AssignOp\Minus [$1, $3]; }
- | variable T_MUL_EQUAL expr { $$ = Expr\AssignOp\Mul [$1, $3]; }
- | variable T_DIV_EQUAL expr { $$ = Expr\AssignOp\Div [$1, $3]; }
- | variable T_CONCAT_EQUAL expr { $$ = Expr\AssignOp\Concat [$1, $3]; }
- | variable T_MOD_EQUAL expr { $$ = Expr\AssignOp\Mod [$1, $3]; }
- | variable T_AND_EQUAL expr { $$ = Expr\AssignOp\BitwiseAnd[$1, $3]; }
- | variable T_OR_EQUAL expr { $$ = Expr\AssignOp\BitwiseOr [$1, $3]; }
- | variable T_XOR_EQUAL expr { $$ = Expr\AssignOp\BitwiseXor[$1, $3]; }
- | variable T_SL_EQUAL expr { $$ = Expr\AssignOp\ShiftLeft [$1, $3]; }
- | variable T_SR_EQUAL expr { $$ = Expr\AssignOp\ShiftRight[$1, $3]; }
- | variable T_POW_EQUAL expr { $$ = Expr\AssignOp\Pow [$1, $3]; }
- | variable T_INC { $$ = Expr\PostInc[$1]; }
- | T_INC variable { $$ = Expr\PreInc [$2]; }
- | variable T_DEC { $$ = Expr\PostDec[$1]; }
- | T_DEC variable { $$ = Expr\PreDec [$2]; }
- | expr T_BOOLEAN_OR expr { $$ = Expr\BinaryOp\BooleanOr [$1, $3]; }
- | expr T_BOOLEAN_AND expr { $$ = Expr\BinaryOp\BooleanAnd[$1, $3]; }
- | expr T_LOGICAL_OR expr { $$ = Expr\BinaryOp\LogicalOr [$1, $3]; }
- | expr T_LOGICAL_AND expr { $$ = Expr\BinaryOp\LogicalAnd[$1, $3]; }
- | expr T_LOGICAL_XOR expr { $$ = Expr\BinaryOp\LogicalXor[$1, $3]; }
- | expr '|' expr { $$ = Expr\BinaryOp\BitwiseOr [$1, $3]; }
- | expr '&' expr { $$ = Expr\BinaryOp\BitwiseAnd[$1, $3]; }
- | expr '^' expr { $$ = Expr\BinaryOp\BitwiseXor[$1, $3]; }
- | expr '.' expr { $$ = Expr\BinaryOp\Concat [$1, $3]; }
- | expr '+' expr { $$ = Expr\BinaryOp\Plus [$1, $3]; }
- | expr '-' expr { $$ = Expr\BinaryOp\Minus [$1, $3]; }
- | expr '*' expr { $$ = Expr\BinaryOp\Mul [$1, $3]; }
- | expr '/' expr { $$ = Expr\BinaryOp\Div [$1, $3]; }
- | expr '%' expr { $$ = Expr\BinaryOp\Mod [$1, $3]; }
- | expr T_SL expr { $$ = Expr\BinaryOp\ShiftLeft [$1, $3]; }
- | expr T_SR expr { $$ = Expr\BinaryOp\ShiftRight[$1, $3]; }
- | expr T_POW expr { $$ = Expr\BinaryOp\Pow [$1, $3]; }
- | '+' expr %prec T_INC { $$ = Expr\UnaryPlus [$2]; }
- | '-' expr %prec T_INC { $$ = Expr\UnaryMinus[$2]; }
- | '!' expr { $$ = Expr\BooleanNot[$2]; }
- | '~' expr { $$ = Expr\BitwiseNot[$2]; }
- | expr T_IS_IDENTICAL expr { $$ = Expr\BinaryOp\Identical [$1, $3]; }
- | expr T_IS_NOT_IDENTICAL expr { $$ = Expr\BinaryOp\NotIdentical [$1, $3]; }
- | expr T_IS_EQUAL expr { $$ = Expr\BinaryOp\Equal [$1, $3]; }
- | expr T_IS_NOT_EQUAL expr { $$ = Expr\BinaryOp\NotEqual [$1, $3]; }
- | expr T_SPACESHIP expr { $$ = Expr\BinaryOp\Spaceship [$1, $3]; }
- | expr '<' expr { $$ = Expr\BinaryOp\Smaller [$1, $3]; }
- | expr T_IS_SMALLER_OR_EQUAL expr { $$ = Expr\BinaryOp\SmallerOrEqual[$1, $3]; }
- | expr '>' expr { $$ = Expr\BinaryOp\Greater [$1, $3]; }
- | expr T_IS_GREATER_OR_EQUAL expr { $$ = Expr\BinaryOp\GreaterOrEqual[$1, $3]; }
- | expr T_INSTANCEOF class_name_reference { $$ = Expr\Instanceof_[$1, $3]; }
- | parentheses_expr { $$ = $1; }
- /* we need a separate '(' new_expr ')' rule to avoid problems caused by a s/r conflict */
- | '(' new_expr ')' { $$ = $2; }
- | expr '?' expr ':' expr { $$ = Expr\Ternary[$1, $3, $5]; }
- | expr '?' ':' expr { $$ = Expr\Ternary[$1, null, $4]; }
- | expr T_COALESCE expr { $$ = Expr\BinaryOp\Coalesce[$1, $3]; }
- | T_ISSET '(' variables_list ')' { $$ = Expr\Isset_[$3]; }
- | T_EMPTY '(' expr ')' { $$ = Expr\Empty_[$3]; }
- | T_INCLUDE expr { $$ = Expr\Include_[$2, Expr\Include_::TYPE_INCLUDE]; }
- | T_INCLUDE_ONCE expr { $$ = Expr\Include_[$2, Expr\Include_::TYPE_INCLUDE_ONCE]; }
- | T_EVAL parentheses_expr { $$ = Expr\Eval_[$2]; }
- | T_REQUIRE expr { $$ = Expr\Include_[$2, Expr\Include_::TYPE_REQUIRE]; }
- | T_REQUIRE_ONCE expr { $$ = Expr\Include_[$2, Expr\Include_::TYPE_REQUIRE_ONCE]; }
- | T_INT_CAST expr { $$ = Expr\Cast\Int_ [$2]; }
- | T_DOUBLE_CAST expr { $$ = Expr\Cast\Double [$2]; }
- | T_STRING_CAST expr { $$ = Expr\Cast\String_ [$2]; }
- | T_ARRAY_CAST expr { $$ = Expr\Cast\Array_ [$2]; }
- | T_OBJECT_CAST expr { $$ = Expr\Cast\Object_ [$2]; }
- | T_BOOL_CAST expr { $$ = Expr\Cast\Bool_ [$2]; }
- | T_UNSET_CAST expr { $$ = Expr\Cast\Unset_ [$2]; }
- | T_EXIT exit_expr
- { $attrs = attributes();
- $attrs['kind'] = strtolower($1) === 'exit' ? Expr\Exit_::KIND_EXIT : Expr\Exit_::KIND_DIE;
- $$ = new Expr\Exit_($2, $attrs); }
- | '@' expr { $$ = Expr\ErrorSuppress[$2]; }
- | scalar { $$ = $1; }
- | array_expr { $$ = $1; }
- | scalar_dereference { $$ = $1; }
- | '`' backticks_expr '`' { $$ = Expr\ShellExec[$2]; }
- | T_PRINT expr { $$ = Expr\Print_[$2]; }
- | T_YIELD { $$ = Expr\Yield_[null, null]; }
- | T_YIELD_FROM expr { $$ = Expr\YieldFrom[$2]; }
- | T_FUNCTION optional_ref '(' parameter_list ')' lexical_vars optional_return_type
- '{' inner_statement_list '}'
- { $$ = Expr\Closure[['static' => false, 'byRef' => $2, 'params' => $4, 'uses' => $6, 'returnType' => $7, 'stmts' => $9]]; }
- | T_STATIC T_FUNCTION optional_ref '(' parameter_list ')' lexical_vars optional_return_type
- '{' inner_statement_list '}'
- { $$ = Expr\Closure[['static' => true, 'byRef' => $3, 'params' => $5, 'uses' => $7, 'returnType' => $8, 'stmts' => $10]]; }
-;
-
-parentheses_expr:
- '(' expr ')' { $$ = $2; }
- | '(' yield_expr ')' { $$ = $2; }
-;
-
-yield_expr:
- T_YIELD expr { $$ = Expr\Yield_[$2, null]; }
- | T_YIELD expr T_DOUBLE_ARROW expr { $$ = Expr\Yield_[$4, $2]; }
-;
-
-array_expr:
- T_ARRAY '(' array_pair_list ')'
- { $attrs = attributes(); $attrs['kind'] = Expr\Array_::KIND_LONG;
- $$ = new Expr\Array_($3, $attrs); }
- | '[' array_pair_list ']'
- { $attrs = attributes(); $attrs['kind'] = Expr\Array_::KIND_SHORT;
- $$ = new Expr\Array_($2, $attrs); }
-;
-
-scalar_dereference:
- array_expr '[' dim_offset ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | T_CONSTANT_ENCAPSED_STRING '[' dim_offset ']'
- { $attrs = attributes(); $attrs['kind'] = strKind($1);
- $$ = Expr\ArrayDimFetch[new Scalar\String_(Scalar\String_::parse($1), $attrs), $3]; }
- | constant '[' dim_offset ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | scalar_dereference '[' dim_offset ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- /* alternative array syntax missing intentionally */
-;
-
-anonymous_class:
- T_CLASS ctor_arguments extends_from implements_list '{' class_statement_list '}'
- { $$ = array(Stmt\Class_[null, ['type' => 0, 'extends' => $3, 'implements' => $4, 'stmts' => $6]], $2); }
-
-new_expr:
- T_NEW class_name_reference ctor_arguments { $$ = Expr\New_[$2, $3]; }
- | T_NEW anonymous_class
- { list($class, $ctorArgs) = $2; $$ = Expr\New_[$class, $ctorArgs]; }
-;
-
-lexical_vars:
- /* empty */ { $$ = array(); }
- | T_USE '(' lexical_var_list ')' { $$ = $3; }
-;
-
-lexical_var_list:
- lexical_var { init($1); }
- | lexical_var_list ',' lexical_var { push($1, $3); }
-;
-
-lexical_var:
- optional_ref T_VARIABLE { $$ = Expr\ClosureUse[parseVar($2), $1]; }
-;
-
-function_call:
- name argument_list { $$ = Expr\FuncCall[$1, $2]; }
- | class_name_or_var T_PAAMAYIM_NEKUDOTAYIM identifier argument_list
- { $$ = Expr\StaticCall[$1, $3, $4]; }
- | class_name_or_var T_PAAMAYIM_NEKUDOTAYIM '{' expr '}' argument_list
- { $$ = Expr\StaticCall[$1, $4, $6]; }
- | static_property argument_list {
- if ($1 instanceof Node\Expr\StaticPropertyFetch) {
- $$ = Expr\StaticCall[$1->class, Expr\Variable[$1->name], $2];
- } elseif ($1 instanceof Node\Expr\ArrayDimFetch) {
- $tmp = $1;
- while ($tmp->var instanceof Node\Expr\ArrayDimFetch) {
- $tmp = $tmp->var;
- }
-
- $$ = Expr\StaticCall[$tmp->var->class, $1, $2];
- $tmp->var = Expr\Variable[$tmp->var->name];
- } else {
- throw new \Exception;
- }
- }
- | variable_without_objects argument_list
- { $$ = Expr\FuncCall[$1, $2]; }
- | function_call '[' dim_offset ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- /* alternative array syntax missing intentionally */
-;
-
-class_name:
- T_STATIC { $$ = Name[$1]; }
- | name { $$ = $1; }
-;
-
-name:
- namespace_name_parts { $$ = Name[$1]; }
- | T_NS_SEPARATOR namespace_name_parts { $$ = Name\FullyQualified[$2]; }
- | T_NAMESPACE T_NS_SEPARATOR namespace_name_parts { $$ = Name\Relative[$3]; }
-;
-
-class_name_reference:
- class_name { $$ = $1; }
- | dynamic_class_name_reference { $$ = $1; }
-;
-
-dynamic_class_name_reference:
- object_access_for_dcnr { $$ = $1; }
- | base_variable { $$ = $1; }
-;
-
-class_name_or_var:
- class_name { $$ = $1; }
- | reference_variable { $$ = $1; }
-;
-
-object_access_for_dcnr:
- base_variable T_OBJECT_OPERATOR object_property
- { $$ = Expr\PropertyFetch[$1, $3]; }
- | object_access_for_dcnr T_OBJECT_OPERATOR object_property
- { $$ = Expr\PropertyFetch[$1, $3]; }
- | object_access_for_dcnr '[' dim_offset ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | object_access_for_dcnr '{' expr '}' { $$ = Expr\ArrayDimFetch[$1, $3]; }
-;
-
-exit_expr:
- /* empty */ { $$ = null; }
- | '(' ')' { $$ = null; }
- | parentheses_expr { $$ = $1; }
-;
-
-backticks_expr:
- /* empty */ { $$ = array(); }
- | T_ENCAPSED_AND_WHITESPACE
- { $$ = array(Scalar\EncapsedStringPart[Scalar\String_::parseEscapeSequences($1, '`', false)]); }
- | encaps_list { parseEncapsed($1, '`', false); $$ = $1; }
-;
-
-ctor_arguments:
- /* empty */ { $$ = array(); }
- | argument_list { $$ = $1; }
-;
-
-common_scalar:
- T_LNUMBER { $$ = Scalar\LNumber::fromString($1, attributes(), true); }
- | T_DNUMBER { $$ = Scalar\DNumber[Scalar\DNumber::parse($1)]; }
- | T_CONSTANT_ENCAPSED_STRING
- { $attrs = attributes(); $attrs['kind'] = strKind($1);
- $$ = new Scalar\String_(Scalar\String_::parse($1, false), $attrs); }
- | T_LINE { $$ = Scalar\MagicConst\Line[]; }
- | T_FILE { $$ = Scalar\MagicConst\File[]; }
- | T_DIR { $$ = Scalar\MagicConst\Dir[]; }
- | T_CLASS_C { $$ = Scalar\MagicConst\Class_[]; }
- | T_TRAIT_C { $$ = Scalar\MagicConst\Trait_[]; }
- | T_METHOD_C { $$ = Scalar\MagicConst\Method[]; }
- | T_FUNC_C { $$ = Scalar\MagicConst\Function_[]; }
- | T_NS_C { $$ = Scalar\MagicConst\Namespace_[]; }
- | T_START_HEREDOC T_ENCAPSED_AND_WHITESPACE T_END_HEREDOC
- { $attrs = attributes(); setDocStringAttrs($attrs, $1);
- $$ = new Scalar\String_(Scalar\String_::parseDocString($1, $2, false), $attrs); }
- | T_START_HEREDOC T_END_HEREDOC
- { $attrs = attributes(); setDocStringAttrs($attrs, $1);
- $$ = new Scalar\String_('', $attrs); }
-;
-
-static_scalar:
- common_scalar { $$ = $1; }
- | class_name T_PAAMAYIM_NEKUDOTAYIM identifier { $$ = Expr\ClassConstFetch[$1, $3]; }
- | name { $$ = Expr\ConstFetch[$1]; }
- | T_ARRAY '(' static_array_pair_list ')' { $$ = Expr\Array_[$3]; }
- | '[' static_array_pair_list ']' { $$ = Expr\Array_[$2]; }
- | static_operation { $$ = $1; }
-;
-
-static_operation:
- static_scalar T_BOOLEAN_OR static_scalar { $$ = Expr\BinaryOp\BooleanOr [$1, $3]; }
- | static_scalar T_BOOLEAN_AND static_scalar { $$ = Expr\BinaryOp\BooleanAnd[$1, $3]; }
- | static_scalar T_LOGICAL_OR static_scalar { $$ = Expr\BinaryOp\LogicalOr [$1, $3]; }
- | static_scalar T_LOGICAL_AND static_scalar { $$ = Expr\BinaryOp\LogicalAnd[$1, $3]; }
- | static_scalar T_LOGICAL_XOR static_scalar { $$ = Expr\BinaryOp\LogicalXor[$1, $3]; }
- | static_scalar '|' static_scalar { $$ = Expr\BinaryOp\BitwiseOr [$1, $3]; }
- | static_scalar '&' static_scalar { $$ = Expr\BinaryOp\BitwiseAnd[$1, $3]; }
- | static_scalar '^' static_scalar { $$ = Expr\BinaryOp\BitwiseXor[$1, $3]; }
- | static_scalar '.' static_scalar { $$ = Expr\BinaryOp\Concat [$1, $3]; }
- | static_scalar '+' static_scalar { $$ = Expr\BinaryOp\Plus [$1, $3]; }
- | static_scalar '-' static_scalar { $$ = Expr\BinaryOp\Minus [$1, $3]; }
- | static_scalar '*' static_scalar { $$ = Expr\BinaryOp\Mul [$1, $3]; }
- | static_scalar '/' static_scalar { $$ = Expr\BinaryOp\Div [$1, $3]; }
- | static_scalar '%' static_scalar { $$ = Expr\BinaryOp\Mod [$1, $3]; }
- | static_scalar T_SL static_scalar { $$ = Expr\BinaryOp\ShiftLeft [$1, $3]; }
- | static_scalar T_SR static_scalar { $$ = Expr\BinaryOp\ShiftRight[$1, $3]; }
- | static_scalar T_POW static_scalar { $$ = Expr\BinaryOp\Pow [$1, $3]; }
- | '+' static_scalar %prec T_INC { $$ = Expr\UnaryPlus [$2]; }
- | '-' static_scalar %prec T_INC { $$ = Expr\UnaryMinus[$2]; }
- | '!' static_scalar { $$ = Expr\BooleanNot[$2]; }
- | '~' static_scalar { $$ = Expr\BitwiseNot[$2]; }
- | static_scalar T_IS_IDENTICAL static_scalar { $$ = Expr\BinaryOp\Identical [$1, $3]; }
- | static_scalar T_IS_NOT_IDENTICAL static_scalar { $$ = Expr\BinaryOp\NotIdentical [$1, $3]; }
- | static_scalar T_IS_EQUAL static_scalar { $$ = Expr\BinaryOp\Equal [$1, $3]; }
- | static_scalar T_IS_NOT_EQUAL static_scalar { $$ = Expr\BinaryOp\NotEqual [$1, $3]; }
- | static_scalar '<' static_scalar { $$ = Expr\BinaryOp\Smaller [$1, $3]; }
- | static_scalar T_IS_SMALLER_OR_EQUAL static_scalar { $$ = Expr\BinaryOp\SmallerOrEqual[$1, $3]; }
- | static_scalar '>' static_scalar { $$ = Expr\BinaryOp\Greater [$1, $3]; }
- | static_scalar T_IS_GREATER_OR_EQUAL static_scalar { $$ = Expr\BinaryOp\GreaterOrEqual[$1, $3]; }
- | static_scalar '?' static_scalar ':' static_scalar { $$ = Expr\Ternary[$1, $3, $5]; }
- | static_scalar '?' ':' static_scalar { $$ = Expr\Ternary[$1, null, $4]; }
- | static_scalar '[' static_scalar ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | '(' static_scalar ')' { $$ = $2; }
-;
-
-constant:
- name { $$ = Expr\ConstFetch[$1]; }
- | class_name_or_var T_PAAMAYIM_NEKUDOTAYIM identifier
- { $$ = Expr\ClassConstFetch[$1, $3]; }
-;
-
-scalar:
- common_scalar { $$ = $1; }
- | constant { $$ = $1; }
- | '"' encaps_list '"'
- { $attrs = attributes(); $attrs['kind'] = Scalar\String_::KIND_DOUBLE_QUOTED;
- parseEncapsed($2, '"', true); $$ = new Scalar\Encapsed($2, $attrs); }
- | T_START_HEREDOC encaps_list T_END_HEREDOC
- { $attrs = attributes(); setDocStringAttrs($attrs, $1);
- parseEncapsedDoc($2, true); $$ = new Scalar\Encapsed($2, $attrs); }
-;
-
-static_array_pair_list:
- /* empty */ { $$ = array(); }
- | non_empty_static_array_pair_list optional_comma { $$ = $1; }
-;
-
-optional_comma:
- /* empty */
- | ','
-;
-
-non_empty_static_array_pair_list:
- non_empty_static_array_pair_list ',' static_array_pair { push($1, $3); }
- | static_array_pair { init($1); }
-;
-
-static_array_pair:
- static_scalar T_DOUBLE_ARROW static_scalar { $$ = Expr\ArrayItem[$3, $1, false]; }
- | static_scalar { $$ = Expr\ArrayItem[$1, null, false]; }
-;
-
-variable:
- object_access { $$ = $1; }
- | base_variable { $$ = $1; }
- | function_call { $$ = $1; }
- | new_expr_array_deref { $$ = $1; }
-;
-
-new_expr_array_deref:
- '(' new_expr ')' '[' dim_offset ']' { $$ = Expr\ArrayDimFetch[$2, $5]; }
- | new_expr_array_deref '[' dim_offset ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- /* alternative array syntax missing intentionally */
-;
-
-object_access:
- variable_or_new_expr T_OBJECT_OPERATOR object_property
- { $$ = Expr\PropertyFetch[$1, $3]; }
- | variable_or_new_expr T_OBJECT_OPERATOR object_property argument_list
- { $$ = Expr\MethodCall[$1, $3, $4]; }
- | object_access argument_list { $$ = Expr\FuncCall[$1, $2]; }
- | object_access '[' dim_offset ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | object_access '{' expr '}' { $$ = Expr\ArrayDimFetch[$1, $3]; }
-;
-
-variable_or_new_expr:
- variable { $$ = $1; }
- | '(' new_expr ')' { $$ = $2; }
-;
-
-variable_without_objects:
- reference_variable { $$ = $1; }
- | '$' variable_without_objects { $$ = Expr\Variable[$2]; }
-;
-
-base_variable:
- variable_without_objects { $$ = $1; }
- | static_property { $$ = $1; }
-;
-
-static_property:
- class_name_or_var T_PAAMAYIM_NEKUDOTAYIM '$' reference_variable
- { $$ = Expr\StaticPropertyFetch[$1, $4]; }
- | static_property_with_arrays { $$ = $1; }
-;
-
-static_property_with_arrays:
- class_name_or_var T_PAAMAYIM_NEKUDOTAYIM T_VARIABLE
- { $$ = Expr\StaticPropertyFetch[$1, parseVar($3)]; }
- | class_name_or_var T_PAAMAYIM_NEKUDOTAYIM '$' '{' expr '}'
- { $$ = Expr\StaticPropertyFetch[$1, $5]; }
- | static_property_with_arrays '[' dim_offset ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | static_property_with_arrays '{' expr '}' { $$ = Expr\ArrayDimFetch[$1, $3]; }
-;
-
-reference_variable:
- reference_variable '[' dim_offset ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | reference_variable '{' expr '}' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | T_VARIABLE { $$ = Expr\Variable[parseVar($1)]; }
- | '$' '{' expr '}' { $$ = Expr\Variable[$3]; }
-;
-
-dim_offset:
- /* empty */ { $$ = null; }
- | expr { $$ = $1; }
-;
-
-object_property:
- T_STRING { $$ = $1; }
- | '{' expr '}' { $$ = $2; }
- | variable_without_objects { $$ = $1; }
-;
-
-list_expr:
- T_LIST '(' list_expr_elements ')' { $$ = Expr\List_[$3]; }
-;
-
-list_expr_elements:
- list_expr_elements ',' list_expr_element { push($1, $3); }
- | list_expr_element { init($1); }
-;
-
-list_expr_element:
- variable { $$ = $1; }
- | list_expr { $$ = $1; }
- | /* empty */ { $$ = null; }
-;
-
-array_pair_list:
- /* empty */ { $$ = array(); }
- | non_empty_array_pair_list optional_comma { $$ = $1; }
-;
-
-non_empty_array_pair_list:
- non_empty_array_pair_list ',' array_pair { push($1, $3); }
- | array_pair { init($1); }
-;
-
-array_pair:
- expr T_DOUBLE_ARROW expr { $$ = Expr\ArrayItem[$3, $1, false]; }
- | expr { $$ = Expr\ArrayItem[$1, null, false]; }
- | expr T_DOUBLE_ARROW '&' variable { $$ = Expr\ArrayItem[$4, $1, true]; }
- | '&' variable { $$ = Expr\ArrayItem[$2, null, true]; }
-;
-
-encaps_list:
- encaps_list encaps_var { push($1, $2); }
- | encaps_list encaps_string_part { push($1, $2); }
- | encaps_var { init($1); }
- | encaps_string_part encaps_var { init($1, $2); }
-;
-
-encaps_string_part:
- T_ENCAPSED_AND_WHITESPACE { $$ = Scalar\EncapsedStringPart[$1]; }
-;
-
-encaps_var:
- T_VARIABLE { $$ = Expr\Variable[parseVar($1)]; }
- | T_VARIABLE '[' encaps_var_offset ']' { $$ = Expr\ArrayDimFetch[Expr\Variable[parseVar($1)], $3]; }
- | T_VARIABLE T_OBJECT_OPERATOR T_STRING { $$ = Expr\PropertyFetch[Expr\Variable[parseVar($1)], $3]; }
- | T_DOLLAR_OPEN_CURLY_BRACES expr '}' { $$ = Expr\Variable[$2]; }
- | T_DOLLAR_OPEN_CURLY_BRACES T_STRING_VARNAME '}' { $$ = Expr\Variable[$2]; }
- | T_DOLLAR_OPEN_CURLY_BRACES T_STRING_VARNAME '[' expr ']' '}'
- { $$ = Expr\ArrayDimFetch[Expr\Variable[$2], $4]; }
- | T_CURLY_OPEN variable '}' { $$ = $2; }
-;
-
-encaps_var_offset:
- T_STRING { $$ = Scalar\String_[$1]; }
- | T_NUM_STRING { $$ = Scalar\String_[$1]; }
- | T_VARIABLE { $$ = Expr\Variable[parseVar($1)]; }
-;
-
-%%
diff --git a/www/wiki/vendor/nikic/php-parser/grammar/php7.y b/www/wiki/vendor/nikic/php-parser/grammar/php7.y
deleted file mode 100644
index 357da5e2..00000000
--- a/www/wiki/vendor/nikic/php-parser/grammar/php7.y
+++ /dev/null
@@ -1,846 +0,0 @@
-%pure_parser
-%expect 2
-
-%tokens
-
-%%
-
-start:
- top_statement_list { $$ = $this->handleNamespaces($1); }
-;
-
-top_statement_list_ex:
- top_statement_list_ex top_statement { pushNormalizing($1, $2); }
- | /* empty */ { init(); }
-;
-
-top_statement_list:
- top_statement_list_ex
- { makeNop($nop, $this->lookaheadStartAttributes);
- if ($nop !== null) { $1[] = $nop; } $$ = $1; }
-;
-
-reserved_non_modifiers:
- T_INCLUDE | T_INCLUDE_ONCE | T_EVAL | T_REQUIRE | T_REQUIRE_ONCE | T_LOGICAL_OR | T_LOGICAL_XOR | T_LOGICAL_AND
- | T_INSTANCEOF | T_NEW | T_CLONE | T_EXIT | T_IF | T_ELSEIF | T_ELSE | T_ENDIF | T_ECHO | T_DO | T_WHILE
- | T_ENDWHILE | T_FOR | T_ENDFOR | T_FOREACH | T_ENDFOREACH | T_DECLARE | T_ENDDECLARE | T_AS | T_TRY | T_CATCH
- | T_FINALLY | T_THROW | T_USE | T_INSTEADOF | T_GLOBAL | T_VAR | T_UNSET | T_ISSET | T_EMPTY | T_CONTINUE | T_GOTO
- | T_FUNCTION | T_CONST | T_RETURN | T_PRINT | T_YIELD | T_LIST | T_SWITCH | T_ENDSWITCH | T_CASE | T_DEFAULT
- | T_BREAK | T_ARRAY | T_CALLABLE | T_EXTENDS | T_IMPLEMENTS | T_NAMESPACE | T_TRAIT | T_INTERFACE | T_CLASS
- | T_CLASS_C | T_TRAIT_C | T_FUNC_C | T_METHOD_C | T_LINE | T_FILE | T_DIR | T_NS_C | T_HALT_COMPILER
-;
-
-semi_reserved:
- reserved_non_modifiers
- | T_STATIC | T_ABSTRACT | T_FINAL | T_PRIVATE | T_PROTECTED | T_PUBLIC
-;
-
-identifier:
- T_STRING { $$ = $1; }
- | semi_reserved { $$ = $1; }
-;
-
-namespace_name_parts:
- T_STRING { init($1); }
- | namespace_name_parts T_NS_SEPARATOR T_STRING { push($1, $3); }
-;
-
-namespace_name:
- namespace_name_parts { $$ = Name[$1]; }
-;
-
-top_statement:
- statement { $$ = $1; }
- | function_declaration_statement { $$ = $1; }
- | class_declaration_statement { $$ = $1; }
- | T_HALT_COMPILER
- { $$ = Stmt\HaltCompiler[$this->lexer->handleHaltCompiler()]; }
- | T_NAMESPACE namespace_name ';' { $$ = Stmt\Namespace_[$2, null]; }
- | T_NAMESPACE namespace_name '{' top_statement_list '}' { $$ = Stmt\Namespace_[$2, $4]; }
- | T_NAMESPACE '{' top_statement_list '}' { $$ = Stmt\Namespace_[null, $3]; }
- | T_USE use_declarations ';' { $$ = Stmt\Use_[$2, Stmt\Use_::TYPE_NORMAL]; }
- | T_USE use_type use_declarations ';' { $$ = Stmt\Use_[$3, $2]; }
- | group_use_declaration ';' { $$ = $1; }
- | T_CONST constant_declaration_list ';' { $$ = Stmt\Const_[$2]; }
-;
-
-use_type:
- T_FUNCTION { $$ = Stmt\Use_::TYPE_FUNCTION; }
- | T_CONST { $$ = Stmt\Use_::TYPE_CONSTANT; }
-;
-
-/* Using namespace_name_parts here to avoid s/r conflict on T_NS_SEPARATOR */
-group_use_declaration:
- T_USE use_type namespace_name_parts T_NS_SEPARATOR '{' unprefixed_use_declarations '}'
- { $$ = Stmt\GroupUse[Name[$3], $6, $2]; }
- | T_USE use_type T_NS_SEPARATOR namespace_name_parts T_NS_SEPARATOR '{' unprefixed_use_declarations '}'
- { $$ = Stmt\GroupUse[Name[$4], $7, $2]; }
- | T_USE namespace_name_parts T_NS_SEPARATOR '{' inline_use_declarations '}'
- { $$ = Stmt\GroupUse[Name[$2], $5, Stmt\Use_::TYPE_UNKNOWN]; }
- | T_USE T_NS_SEPARATOR namespace_name_parts T_NS_SEPARATOR '{' inline_use_declarations '}'
- { $$ = Stmt\GroupUse[Name[$3], $6, Stmt\Use_::TYPE_UNKNOWN]; }
-;
-
-unprefixed_use_declarations:
- unprefixed_use_declarations ',' unprefixed_use_declaration
- { push($1, $3); }
- | unprefixed_use_declaration { init($1); }
-;
-
-use_declarations:
- use_declarations ',' use_declaration { push($1, $3); }
- | use_declaration { init($1); }
-;
-
-inline_use_declarations:
- inline_use_declarations ',' inline_use_declaration { push($1, $3); }
- | inline_use_declaration { init($1); }
-;
-
-unprefixed_use_declaration:
- namespace_name { $$ = Stmt\UseUse[$1, null, Stmt\Use_::TYPE_UNKNOWN]; }
- | namespace_name T_AS T_STRING { $$ = Stmt\UseUse[$1, $3, Stmt\Use_::TYPE_UNKNOWN]; }
-;
-
-use_declaration:
- unprefixed_use_declaration { $$ = $1; }
- | T_NS_SEPARATOR unprefixed_use_declaration { $$ = $2; }
-;
-
-inline_use_declaration:
- unprefixed_use_declaration { $$ = $1; $$->type = Stmt\Use_::TYPE_NORMAL; }
- | use_type unprefixed_use_declaration { $$ = $2; $$->type = $1; }
-;
-
-constant_declaration_list:
- constant_declaration_list ',' constant_declaration { push($1, $3); }
- | constant_declaration { init($1); }
-;
-
-constant_declaration:
- T_STRING '=' expr { $$ = Node\Const_[$1, $3]; }
-;
-
-class_const_list:
- class_const_list ',' class_const { push($1, $3); }
- | class_const { init($1); }
-;
-
-class_const:
- identifier '=' expr { $$ = Node\Const_[$1, $3]; }
-;
-
-inner_statement_list_ex:
- inner_statement_list_ex inner_statement { pushNormalizing($1, $2); }
- | /* empty */ { init(); }
-;
-
-inner_statement_list:
- inner_statement_list_ex
- { makeNop($nop, $this->lookaheadStartAttributes);
- if ($nop !== null) { $1[] = $nop; } $$ = $1; }
-;
-
-inner_statement:
- statement { $$ = $1; }
- | function_declaration_statement { $$ = $1; }
- | class_declaration_statement { $$ = $1; }
- | T_HALT_COMPILER
- { throw new Error('__HALT_COMPILER() can only be used from the outermost scope', attributes()); }
-;
-
-non_empty_statement:
- '{' inner_statement_list '}' { $$ = $2; }
- | T_IF '(' expr ')' statement elseif_list else_single
- { $$ = Stmt\If_[$3, ['stmts' => toArray($5), 'elseifs' => $6, 'else' => $7]]; }
- | T_IF '(' expr ')' ':' inner_statement_list new_elseif_list new_else_single T_ENDIF ';'
- { $$ = Stmt\If_[$3, ['stmts' => $6, 'elseifs' => $7, 'else' => $8]]; }
- | T_WHILE '(' expr ')' while_statement { $$ = Stmt\While_[$3, $5]; }
- | T_DO statement T_WHILE '(' expr ')' ';' { $$ = Stmt\Do_ [$5, toArray($2)]; }
- | T_FOR '(' for_expr ';' for_expr ';' for_expr ')' for_statement
- { $$ = Stmt\For_[['init' => $3, 'cond' => $5, 'loop' => $7, 'stmts' => $9]]; }
- | T_SWITCH '(' expr ')' switch_case_list { $$ = Stmt\Switch_[$3, $5]; }
- | T_BREAK optional_expr ';' { $$ = Stmt\Break_[$2]; }
- | T_CONTINUE optional_expr ';' { $$ = Stmt\Continue_[$2]; }
- | T_RETURN optional_expr ';' { $$ = Stmt\Return_[$2]; }
- | T_GLOBAL global_var_list ';' { $$ = Stmt\Global_[$2]; }
- | T_STATIC static_var_list ';' { $$ = Stmt\Static_[$2]; }
- | T_ECHO expr_list ';' { $$ = Stmt\Echo_[$2]; }
- | T_INLINE_HTML { $$ = Stmt\InlineHTML[$1]; }
- | expr ';' { $$ = $1; }
- | T_UNSET '(' variables_list ')' ';' { $$ = Stmt\Unset_[$3]; }
- | T_FOREACH '(' expr T_AS foreach_variable ')' foreach_statement
- { $$ = Stmt\Foreach_[$3, $5[0], ['keyVar' => null, 'byRef' => $5[1], 'stmts' => $7]]; }
- | T_FOREACH '(' expr T_AS variable T_DOUBLE_ARROW foreach_variable ')' foreach_statement
- { $$ = Stmt\Foreach_[$3, $7[0], ['keyVar' => $5, 'byRef' => $7[1], 'stmts' => $9]]; }
- | T_DECLARE '(' declare_list ')' declare_statement { $$ = Stmt\Declare_[$3, $5]; }
- | T_TRY '{' inner_statement_list '}' catches optional_finally
- { $$ = Stmt\TryCatch[$3, $5, $6]; }
- | T_THROW expr ';' { $$ = Stmt\Throw_[$2]; }
- | T_GOTO T_STRING ';' { $$ = Stmt\Goto_[$2]; }
- | T_STRING ':' { $$ = Stmt\Label[$1]; }
- | error { $$ = array(); /* means: no statement */ }
-;
-
-statement:
- non_empty_statement { $$ = $1; }
- | ';'
- { makeNop($$, $this->startAttributeStack[#1]);
- if ($$ === null) $$ = array(); /* means: no statement */ }
-;
-
-catches:
- /* empty */ { init(); }
- | catches catch { push($1, $2); }
-;
-
-catch:
- T_CATCH '(' name T_VARIABLE ')' '{' inner_statement_list '}'
- { $$ = Stmt\Catch_[$3, parseVar($4), $7]; }
-;
-
-optional_finally:
- /* empty */ { $$ = null; }
- | T_FINALLY '{' inner_statement_list '}' { $$ = $3; }
-;
-
-variables_list:
- variable { init($1); }
- | variables_list ',' variable { push($1, $3); }
-;
-
-optional_ref:
- /* empty */ { $$ = false; }
- | '&' { $$ = true; }
-;
-
-optional_ellipsis:
- /* empty */ { $$ = false; }
- | T_ELLIPSIS { $$ = true; }
-;
-
-function_declaration_statement:
- T_FUNCTION optional_ref T_STRING '(' parameter_list ')' optional_return_type '{' inner_statement_list '}'
- { $$ = Stmt\Function_[$3, ['byRef' => $2, 'params' => $5, 'returnType' => $7, 'stmts' => $9]]; }
-;
-
-class_declaration_statement:
- class_entry_type T_STRING extends_from implements_list '{' class_statement_list '}'
- { $$ = Stmt\Class_[$2, ['type' => $1, 'extends' => $3, 'implements' => $4, 'stmts' => $6]]; }
- | T_INTERFACE T_STRING interface_extends_list '{' class_statement_list '}'
- { $$ = Stmt\Interface_[$2, ['extends' => $3, 'stmts' => $5]]; }
- | T_TRAIT T_STRING '{' class_statement_list '}'
- { $$ = Stmt\Trait_[$2, $4]; }
-;
-
-class_entry_type:
- T_CLASS { $$ = 0; }
- | T_ABSTRACT T_CLASS { $$ = Stmt\Class_::MODIFIER_ABSTRACT; }
- | T_FINAL T_CLASS { $$ = Stmt\Class_::MODIFIER_FINAL; }
-;
-
-extends_from:
- /* empty */ { $$ = null; }
- | T_EXTENDS name { $$ = $2; }
-;
-
-interface_extends_list:
- /* empty */ { $$ = array(); }
- | T_EXTENDS name_list { $$ = $2; }
-;
-
-implements_list:
- /* empty */ { $$ = array(); }
- | T_IMPLEMENTS name_list { $$ = $2; }
-;
-
-name_list:
- name { init($1); }
- | name_list ',' name { push($1, $3); }
-;
-
-for_statement:
- statement { $$ = toArray($1); }
- | ':' inner_statement_list T_ENDFOR ';' { $$ = $2; }
-;
-
-foreach_statement:
- statement { $$ = toArray($1); }
- | ':' inner_statement_list T_ENDFOREACH ';' { $$ = $2; }
-;
-
-declare_statement:
- non_empty_statement { $$ = toArray($1); }
- | ';' { $$ = null; }
- | ':' inner_statement_list T_ENDDECLARE ';' { $$ = $2; }
-;
-
-declare_list:
- declare_list_element { init($1); }
- | declare_list ',' declare_list_element { push($1, $3); }
-;
-
-declare_list_element:
- T_STRING '=' expr { $$ = Stmt\DeclareDeclare[$1, $3]; }
-;
-
-switch_case_list:
- '{' case_list '}' { $$ = $2; }
- | '{' ';' case_list '}' { $$ = $3; }
- | ':' case_list T_ENDSWITCH ';' { $$ = $2; }
- | ':' ';' case_list T_ENDSWITCH ';' { $$ = $3; }
-;
-
-case_list:
- /* empty */ { init(); }
- | case_list case { push($1, $2); }
-;
-
-case:
- T_CASE expr case_separator inner_statement_list { $$ = Stmt\Case_[$2, $4]; }
- | T_DEFAULT case_separator inner_statement_list { $$ = Stmt\Case_[null, $3]; }
-;
-
-case_separator:
- ':'
- | ';'
-;
-
-while_statement:
- statement { $$ = toArray($1); }
- | ':' inner_statement_list T_ENDWHILE ';' { $$ = $2; }
-;
-
-elseif_list:
- /* empty */ { init(); }
- | elseif_list elseif { push($1, $2); }
-;
-
-elseif:
- T_ELSEIF '(' expr ')' statement { $$ = Stmt\ElseIf_[$3, toArray($5)]; }
-;
-
-new_elseif_list:
- /* empty */ { init(); }
- | new_elseif_list new_elseif { push($1, $2); }
-;
-
-new_elseif:
- T_ELSEIF '(' expr ')' ':' inner_statement_list { $$ = Stmt\ElseIf_[$3, $6]; }
-;
-
-else_single:
- /* empty */ { $$ = null; }
- | T_ELSE statement { $$ = Stmt\Else_[toArray($2)]; }
-;
-
-new_else_single:
- /* empty */ { $$ = null; }
- | T_ELSE ':' inner_statement_list { $$ = Stmt\Else_[$3]; }
-;
-
-foreach_variable:
- variable { $$ = array($1, false); }
- | '&' variable { $$ = array($2, true); }
- | list_expr { $$ = array($1, false); }
-;
-
-parameter_list:
- non_empty_parameter_list { $$ = $1; }
- | /* empty */ { $$ = array(); }
-;
-
-non_empty_parameter_list:
- parameter { init($1); }
- | non_empty_parameter_list ',' parameter { push($1, $3); }
-;
-
-parameter:
- optional_param_type optional_ref optional_ellipsis T_VARIABLE
- { $$ = Node\Param[parseVar($4), null, $1, $2, $3]; }
- | optional_param_type optional_ref optional_ellipsis T_VARIABLE '=' expr
- { $$ = Node\Param[parseVar($4), $6, $1, $2, $3]; }
-;
-
-type:
- name { $$ = $this->handleScalarTypes($1); }
- | T_ARRAY { $$ = 'array'; }
- | T_CALLABLE { $$ = 'callable'; }
-;
-
-optional_param_type:
- /* empty */ { $$ = null; }
- | type { $$ = $1; }
-;
-
-optional_return_type:
- /* empty */ { $$ = null; }
- | ':' type { $$ = $2; }
-;
-
-argument_list:
- '(' ')' { $$ = array(); }
- | '(' non_empty_argument_list ')' { $$ = $2; }
-;
-
-non_empty_argument_list:
- argument { init($1); }
- | non_empty_argument_list ',' argument { push($1, $3); }
-;
-
-argument:
- expr { $$ = Node\Arg[$1, false, false]; }
- | '&' variable { $$ = Node\Arg[$2, true, false]; }
- | T_ELLIPSIS expr { $$ = Node\Arg[$2, false, true]; }
-;
-
-global_var_list:
- global_var_list ',' global_var { push($1, $3); }
- | global_var { init($1); }
-;
-
-global_var:
- simple_variable { $$ = Expr\Variable[$1]; }
-;
-
-static_var_list:
- static_var_list ',' static_var { push($1, $3); }
- | static_var { init($1); }
-;
-
-static_var:
- T_VARIABLE { $$ = Stmt\StaticVar[parseVar($1), null]; }
- | T_VARIABLE '=' expr { $$ = Stmt\StaticVar[parseVar($1), $3]; }
-;
-
-class_statement_list:
- class_statement_list class_statement { push($1, $2); }
- | /* empty */ { init(); }
-;
-
-class_statement:
- variable_modifiers property_declaration_list ';' { $$ = Stmt\Property[$1, $2]; }
- | T_CONST class_const_list ';' { $$ = Stmt\ClassConst[$2]; }
- | method_modifiers T_FUNCTION optional_ref identifier '(' parameter_list ')' optional_return_type method_body
- { $$ = Stmt\ClassMethod[$4, ['type' => $1, 'byRef' => $3, 'params' => $6, 'returnType' => $8, 'stmts' => $9]]; }
- | T_USE name_list trait_adaptations { $$ = Stmt\TraitUse[$2, $3]; }
-;
-
-trait_adaptations:
- ';' { $$ = array(); }
- | '{' trait_adaptation_list '}' { $$ = $2; }
-;
-
-trait_adaptation_list:
- /* empty */ { init(); }
- | trait_adaptation_list trait_adaptation { push($1, $2); }
-;
-
-trait_adaptation:
- trait_method_reference_fully_qualified T_INSTEADOF name_list ';'
- { $$ = Stmt\TraitUseAdaptation\Precedence[$1[0], $1[1], $3]; }
- | trait_method_reference T_AS member_modifier identifier ';'
- { $$ = Stmt\TraitUseAdaptation\Alias[$1[0], $1[1], $3, $4]; }
- | trait_method_reference T_AS member_modifier ';'
- { $$ = Stmt\TraitUseAdaptation\Alias[$1[0], $1[1], $3, null]; }
- | trait_method_reference T_AS T_STRING ';'
- { $$ = Stmt\TraitUseAdaptation\Alias[$1[0], $1[1], null, $3]; }
- | trait_method_reference T_AS reserved_non_modifiers ';'
- { $$ = Stmt\TraitUseAdaptation\Alias[$1[0], $1[1], null, $3]; }
-;
-
-trait_method_reference_fully_qualified:
- name T_PAAMAYIM_NEKUDOTAYIM identifier { $$ = array($1, $3); }
-;
-trait_method_reference:
- trait_method_reference_fully_qualified { $$ = $1; }
- | identifier { $$ = array(null, $1); }
-;
-
-method_body:
- ';' /* abstract method */ { $$ = null; }
- | '{' inner_statement_list '}' { $$ = $2; }
-;
-
-variable_modifiers:
- non_empty_member_modifiers { $$ = $1; }
- | T_VAR { $$ = 0; }
-;
-
-method_modifiers:
- /* empty */ { $$ = 0; }
- | non_empty_member_modifiers { $$ = $1; }
-;
-
-non_empty_member_modifiers:
- member_modifier { $$ = $1; }
- | non_empty_member_modifiers member_modifier { Stmt\Class_::verifyModifier($1, $2); $$ = $1 | $2; }
-;
-
-member_modifier:
- T_PUBLIC { $$ = Stmt\Class_::MODIFIER_PUBLIC; }
- | T_PROTECTED { $$ = Stmt\Class_::MODIFIER_PROTECTED; }
- | T_PRIVATE { $$ = Stmt\Class_::MODIFIER_PRIVATE; }
- | T_STATIC { $$ = Stmt\Class_::MODIFIER_STATIC; }
- | T_ABSTRACT { $$ = Stmt\Class_::MODIFIER_ABSTRACT; }
- | T_FINAL { $$ = Stmt\Class_::MODIFIER_FINAL; }
-;
-
-property_declaration_list:
- property_declaration { init($1); }
- | property_declaration_list ',' property_declaration { push($1, $3); }
-;
-
-property_declaration:
- T_VARIABLE { $$ = Stmt\PropertyProperty[parseVar($1), null]; }
- | T_VARIABLE '=' expr { $$ = Stmt\PropertyProperty[parseVar($1), $3]; }
-;
-
-expr_list:
- expr_list ',' expr { push($1, $3); }
- | expr { init($1); }
-;
-
-for_expr:
- /* empty */ { $$ = array(); }
- | expr_list { $$ = $1; }
-;
-
-expr:
- variable { $$ = $1; }
- | list_expr '=' expr { $$ = Expr\Assign[$1, $3]; }
- | variable '=' expr { $$ = Expr\Assign[$1, $3]; }
- | variable '=' '&' variable { $$ = Expr\AssignRef[$1, $4]; }
- | variable '=' '&' new_expr { $$ = Expr\AssignRef[$1, $4]; }
- | new_expr { $$ = $1; }
- | T_CLONE expr { $$ = Expr\Clone_[$2]; }
- | variable T_PLUS_EQUAL expr { $$ = Expr\AssignOp\Plus [$1, $3]; }
- | variable T_MINUS_EQUAL expr { $$ = Expr\AssignOp\Minus [$1, $3]; }
- | variable T_MUL_EQUAL expr { $$ = Expr\AssignOp\Mul [$1, $3]; }
- | variable T_DIV_EQUAL expr { $$ = Expr\AssignOp\Div [$1, $3]; }
- | variable T_CONCAT_EQUAL expr { $$ = Expr\AssignOp\Concat [$1, $3]; }
- | variable T_MOD_EQUAL expr { $$ = Expr\AssignOp\Mod [$1, $3]; }
- | variable T_AND_EQUAL expr { $$ = Expr\AssignOp\BitwiseAnd[$1, $3]; }
- | variable T_OR_EQUAL expr { $$ = Expr\AssignOp\BitwiseOr [$1, $3]; }
- | variable T_XOR_EQUAL expr { $$ = Expr\AssignOp\BitwiseXor[$1, $3]; }
- | variable T_SL_EQUAL expr { $$ = Expr\AssignOp\ShiftLeft [$1, $3]; }
- | variable T_SR_EQUAL expr { $$ = Expr\AssignOp\ShiftRight[$1, $3]; }
- | variable T_POW_EQUAL expr { $$ = Expr\AssignOp\Pow [$1, $3]; }
- | variable T_INC { $$ = Expr\PostInc[$1]; }
- | T_INC variable { $$ = Expr\PreInc [$2]; }
- | variable T_DEC { $$ = Expr\PostDec[$1]; }
- | T_DEC variable { $$ = Expr\PreDec [$2]; }
- | expr T_BOOLEAN_OR expr { $$ = Expr\BinaryOp\BooleanOr [$1, $3]; }
- | expr T_BOOLEAN_AND expr { $$ = Expr\BinaryOp\BooleanAnd[$1, $3]; }
- | expr T_LOGICAL_OR expr { $$ = Expr\BinaryOp\LogicalOr [$1, $3]; }
- | expr T_LOGICAL_AND expr { $$ = Expr\BinaryOp\LogicalAnd[$1, $3]; }
- | expr T_LOGICAL_XOR expr { $$ = Expr\BinaryOp\LogicalXor[$1, $3]; }
- | expr '|' expr { $$ = Expr\BinaryOp\BitwiseOr [$1, $3]; }
- | expr '&' expr { $$ = Expr\BinaryOp\BitwiseAnd[$1, $3]; }
- | expr '^' expr { $$ = Expr\BinaryOp\BitwiseXor[$1, $3]; }
- | expr '.' expr { $$ = Expr\BinaryOp\Concat [$1, $3]; }
- | expr '+' expr { $$ = Expr\BinaryOp\Plus [$1, $3]; }
- | expr '-' expr { $$ = Expr\BinaryOp\Minus [$1, $3]; }
- | expr '*' expr { $$ = Expr\BinaryOp\Mul [$1, $3]; }
- | expr '/' expr { $$ = Expr\BinaryOp\Div [$1, $3]; }
- | expr '%' expr { $$ = Expr\BinaryOp\Mod [$1, $3]; }
- | expr T_SL expr { $$ = Expr\BinaryOp\ShiftLeft [$1, $3]; }
- | expr T_SR expr { $$ = Expr\BinaryOp\ShiftRight[$1, $3]; }
- | expr T_POW expr { $$ = Expr\BinaryOp\Pow [$1, $3]; }
- | '+' expr %prec T_INC { $$ = Expr\UnaryPlus [$2]; }
- | '-' expr %prec T_INC { $$ = Expr\UnaryMinus[$2]; }
- | '!' expr { $$ = Expr\BooleanNot[$2]; }
- | '~' expr { $$ = Expr\BitwiseNot[$2]; }
- | expr T_IS_IDENTICAL expr { $$ = Expr\BinaryOp\Identical [$1, $3]; }
- | expr T_IS_NOT_IDENTICAL expr { $$ = Expr\BinaryOp\NotIdentical [$1, $3]; }
- | expr T_IS_EQUAL expr { $$ = Expr\BinaryOp\Equal [$1, $3]; }
- | expr T_IS_NOT_EQUAL expr { $$ = Expr\BinaryOp\NotEqual [$1, $3]; }
- | expr T_SPACESHIP expr { $$ = Expr\BinaryOp\Spaceship [$1, $3]; }
- | expr '<' expr { $$ = Expr\BinaryOp\Smaller [$1, $3]; }
- | expr T_IS_SMALLER_OR_EQUAL expr { $$ = Expr\BinaryOp\SmallerOrEqual[$1, $3]; }
- | expr '>' expr { $$ = Expr\BinaryOp\Greater [$1, $3]; }
- | expr T_IS_GREATER_OR_EQUAL expr { $$ = Expr\BinaryOp\GreaterOrEqual[$1, $3]; }
- | expr T_INSTANCEOF class_name_reference { $$ = Expr\Instanceof_[$1, $3]; }
- | '(' expr ')' { $$ = $2; }
- | expr '?' expr ':' expr { $$ = Expr\Ternary[$1, $3, $5]; }
- | expr '?' ':' expr { $$ = Expr\Ternary[$1, null, $4]; }
- | expr T_COALESCE expr { $$ = Expr\BinaryOp\Coalesce[$1, $3]; }
- | T_ISSET '(' variables_list ')' { $$ = Expr\Isset_[$3]; }
- | T_EMPTY '(' expr ')' { $$ = Expr\Empty_[$3]; }
- | T_INCLUDE expr { $$ = Expr\Include_[$2, Expr\Include_::TYPE_INCLUDE]; }
- | T_INCLUDE_ONCE expr { $$ = Expr\Include_[$2, Expr\Include_::TYPE_INCLUDE_ONCE]; }
- | T_EVAL '(' expr ')' { $$ = Expr\Eval_[$3]; }
- | T_REQUIRE expr { $$ = Expr\Include_[$2, Expr\Include_::TYPE_REQUIRE]; }
- | T_REQUIRE_ONCE expr { $$ = Expr\Include_[$2, Expr\Include_::TYPE_REQUIRE_ONCE]; }
- | T_INT_CAST expr { $$ = Expr\Cast\Int_ [$2]; }
- | T_DOUBLE_CAST expr { $$ = Expr\Cast\Double [$2]; }
- | T_STRING_CAST expr { $$ = Expr\Cast\String_ [$2]; }
- | T_ARRAY_CAST expr { $$ = Expr\Cast\Array_ [$2]; }
- | T_OBJECT_CAST expr { $$ = Expr\Cast\Object_ [$2]; }
- | T_BOOL_CAST expr { $$ = Expr\Cast\Bool_ [$2]; }
- | T_UNSET_CAST expr { $$ = Expr\Cast\Unset_ [$2]; }
- | T_EXIT exit_expr
- { $attrs = attributes();
- $attrs['kind'] = strtolower($1) === 'exit' ? Expr\Exit_::KIND_EXIT : Expr\Exit_::KIND_DIE;
- $$ = new Expr\Exit_($2, $attrs); }
- | '@' expr { $$ = Expr\ErrorSuppress[$2]; }
- | scalar { $$ = $1; }
- | '`' backticks_expr '`' { $$ = Expr\ShellExec[$2]; }
- | T_PRINT expr { $$ = Expr\Print_[$2]; }
- | T_YIELD { $$ = Expr\Yield_[null, null]; }
- | T_YIELD expr { $$ = Expr\Yield_[$2, null]; }
- | T_YIELD expr T_DOUBLE_ARROW expr { $$ = Expr\Yield_[$4, $2]; }
- | T_YIELD_FROM expr { $$ = Expr\YieldFrom[$2]; }
- | T_FUNCTION optional_ref '(' parameter_list ')' lexical_vars optional_return_type
- '{' inner_statement_list '}'
- { $$ = Expr\Closure[['static' => false, 'byRef' => $2, 'params' => $4, 'uses' => $6, 'returnType' => $7, 'stmts' => $9]]; }
- | T_STATIC T_FUNCTION optional_ref '(' parameter_list ')' lexical_vars optional_return_type
- '{' inner_statement_list '}'
- { $$ = Expr\Closure[['static' => true, 'byRef' => $3, 'params' => $5, 'uses' => $7, 'returnType' => $8, 'stmts' => $10]]; }
-;
-
-anonymous_class:
- T_CLASS ctor_arguments extends_from implements_list '{' class_statement_list '}'
- { $$ = array(Stmt\Class_[null, ['type' => 0, 'extends' => $3, 'implements' => $4, 'stmts' => $6]], $2); }
-
-new_expr:
- T_NEW class_name_reference ctor_arguments { $$ = Expr\New_[$2, $3]; }
- | T_NEW anonymous_class
- { list($class, $ctorArgs) = $2; $$ = Expr\New_[$class, $ctorArgs]; }
-;
-
-lexical_vars:
- /* empty */ { $$ = array(); }
- | T_USE '(' lexical_var_list ')' { $$ = $3; }
-;
-
-lexical_var_list:
- lexical_var { init($1); }
- | lexical_var_list ',' lexical_var { push($1, $3); }
-;
-
-lexical_var:
- optional_ref T_VARIABLE { $$ = Expr\ClosureUse[parseVar($2), $1]; }
-;
-
-function_call:
- name argument_list { $$ = Expr\FuncCall[$1, $2]; }
- | callable_expr argument_list { $$ = Expr\FuncCall[$1, $2]; }
- | class_name_or_var T_PAAMAYIM_NEKUDOTAYIM member_name argument_list
- { $$ = Expr\StaticCall[$1, $3, $4]; }
-;
-
-class_name:
- T_STATIC { $$ = Name[$1]; }
- | name { $$ = $1; }
-;
-
-name:
- namespace_name_parts { $$ = Name[$1]; }
- | T_NS_SEPARATOR namespace_name_parts { $$ = Name\FullyQualified[$2]; }
- | T_NAMESPACE T_NS_SEPARATOR namespace_name_parts { $$ = Name\Relative[$3]; }
-;
-
-class_name_reference:
- class_name { $$ = $1; }
- | new_variable { $$ = $1; }
-;
-
-class_name_or_var:
- class_name { $$ = $1; }
- | dereferencable { $$ = $1; }
-;
-
-exit_expr:
- /* empty */ { $$ = null; }
- | '(' optional_expr ')' { $$ = $2; }
-;
-
-backticks_expr:
- /* empty */ { $$ = array(); }
- | T_ENCAPSED_AND_WHITESPACE
- { $$ = array(Scalar\EncapsedStringPart[Scalar\String_::parseEscapeSequences($1, '`')]); }
- | encaps_list { parseEncapsed($1, '`', true); $$ = $1; }
-;
-
-ctor_arguments:
- /* empty */ { $$ = array(); }
- | argument_list { $$ = $1; }
-;
-
-constant:
- name { $$ = Expr\ConstFetch[$1]; }
- | class_name_or_var T_PAAMAYIM_NEKUDOTAYIM identifier
- { $$ = Expr\ClassConstFetch[$1, $3]; }
-;
-
-dereferencable_scalar:
- T_ARRAY '(' array_pair_list ')'
- { $attrs = attributes(); $attrs['kind'] = Expr\Array_::KIND_LONG;
- $$ = new Expr\Array_($3, $attrs); }
- | '[' array_pair_list ']'
- { $attrs = attributes(); $attrs['kind'] = Expr\Array_::KIND_SHORT;
- $$ = new Expr\Array_($2, $attrs); }
- | T_CONSTANT_ENCAPSED_STRING
- { $attrs = attributes(); $attrs['kind'] = strKind($1);
- $$ = new Scalar\String_(Scalar\String_::parse($1), $attrs); }
-;
-
-scalar:
- T_LNUMBER { $$ = Scalar\LNumber::fromString($1, attributes()); }
- | T_DNUMBER { $$ = Scalar\DNumber[Scalar\DNumber::parse($1)]; }
- | T_LINE { $$ = Scalar\MagicConst\Line[]; }
- | T_FILE { $$ = Scalar\MagicConst\File[]; }
- | T_DIR { $$ = Scalar\MagicConst\Dir[]; }
- | T_CLASS_C { $$ = Scalar\MagicConst\Class_[]; }
- | T_TRAIT_C { $$ = Scalar\MagicConst\Trait_[]; }
- | T_METHOD_C { $$ = Scalar\MagicConst\Method[]; }
- | T_FUNC_C { $$ = Scalar\MagicConst\Function_[]; }
- | T_NS_C { $$ = Scalar\MagicConst\Namespace_[]; }
- | dereferencable_scalar { $$ = $1; }
- | constant { $$ = $1; }
- | T_START_HEREDOC T_ENCAPSED_AND_WHITESPACE T_END_HEREDOC
- { $attrs = attributes(); setDocStringAttrs($attrs, $1);
- $$ = new Scalar\String_(Scalar\String_::parseDocString($1, $2), $attrs); }
- | T_START_HEREDOC T_END_HEREDOC
- { $attrs = attributes(); setDocStringAttrs($attrs, $1);
- $$ = new Scalar\String_('', $attrs); }
- | '"' encaps_list '"'
- { $attrs = attributes(); $attrs['kind'] = Scalar\String_::KIND_DOUBLE_QUOTED;
- parseEncapsed($2, '"', true); $$ = new Scalar\Encapsed($2, $attrs); }
- | T_START_HEREDOC encaps_list T_END_HEREDOC
- { $attrs = attributes(); setDocStringAttrs($attrs, $1);
- parseEncapsedDoc($2, true); $$ = new Scalar\Encapsed($2, $attrs); }
-;
-
-optional_comma:
- /* empty */
- | ','
-;
-
-optional_expr:
- /* empty */ { $$ = null; }
- | expr { $$ = $1; }
-;
-
-dereferencable:
- variable { $$ = $1; }
- | '(' expr ')' { $$ = $2; }
- | dereferencable_scalar { $$ = $1; }
-;
-
-callable_expr:
- callable_variable { $$ = $1; }
- | '(' expr ')' { $$ = $2; }
- | dereferencable_scalar { $$ = $1; }
-;
-
-callable_variable:
- simple_variable { $$ = Expr\Variable[$1]; }
- | dereferencable '[' optional_expr ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | constant '[' optional_expr ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | dereferencable '{' expr '}' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | function_call { $$ = $1; }
- | dereferencable T_OBJECT_OPERATOR property_name argument_list
- { $$ = Expr\MethodCall[$1, $3, $4]; }
-;
-
-variable:
- callable_variable { $$ = $1; }
- | static_member { $$ = $1; }
- | dereferencable T_OBJECT_OPERATOR property_name { $$ = Expr\PropertyFetch[$1, $3]; }
-;
-
-simple_variable:
- T_VARIABLE { $$ = parseVar($1); }
- | '$' '{' expr '}' { $$ = $3; }
- | '$' simple_variable { $$ = Expr\Variable[$2]; }
-;
-
-static_member:
- class_name_or_var T_PAAMAYIM_NEKUDOTAYIM simple_variable
- { $$ = Expr\StaticPropertyFetch[$1, $3]; }
-;
-
-new_variable:
- simple_variable { $$ = Expr\Variable[$1]; }
- | new_variable '[' optional_expr ']' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | new_variable '{' expr '}' { $$ = Expr\ArrayDimFetch[$1, $3]; }
- | new_variable T_OBJECT_OPERATOR property_name { $$ = Expr\PropertyFetch[$1, $3]; }
- | class_name T_PAAMAYIM_NEKUDOTAYIM simple_variable { $$ = Expr\StaticPropertyFetch[$1, $3]; }
- | new_variable T_PAAMAYIM_NEKUDOTAYIM simple_variable { $$ = Expr\StaticPropertyFetch[$1, $3]; }
-;
-
-member_name:
- identifier { $$ = $1; }
- | '{' expr '}' { $$ = $2; }
- | simple_variable { $$ = Expr\Variable[$1]; }
-;
-
-property_name:
- T_STRING { $$ = $1; }
- | '{' expr '}' { $$ = $2; }
- | simple_variable { $$ = Expr\Variable[$1]; }
-;
-
-list_expr:
- T_LIST '(' list_expr_elements ')' { $$ = Expr\List_[$3]; }
-;
-
-list_expr_elements:
- list_expr_elements ',' list_expr_element { push($1, $3); }
- | list_expr_element { init($1); }
-;
-
-list_expr_element:
- variable { $$ = $1; }
- | list_expr { $$ = $1; }
- | /* empty */ { $$ = null; }
-;
-
-array_pair_list:
- /* empty */ { $$ = array(); }
- | non_empty_array_pair_list optional_comma { $$ = $1; }
-;
-
-non_empty_array_pair_list:
- non_empty_array_pair_list ',' array_pair { push($1, $3); }
- | array_pair { init($1); }
-;
-
-array_pair:
- expr T_DOUBLE_ARROW expr { $$ = Expr\ArrayItem[$3, $1, false]; }
- | expr { $$ = Expr\ArrayItem[$1, null, false]; }
- | expr T_DOUBLE_ARROW '&' variable { $$ = Expr\ArrayItem[$4, $1, true]; }
- | '&' variable { $$ = Expr\ArrayItem[$2, null, true]; }
-;
-
-encaps_list:
- encaps_list encaps_var { push($1, $2); }
- | encaps_list encaps_string_part { push($1, $2); }
- | encaps_var { init($1); }
- | encaps_string_part encaps_var { init($1, $2); }
-;
-
-encaps_string_part:
- T_ENCAPSED_AND_WHITESPACE { $$ = Scalar\EncapsedStringPart[$1]; }
-;
-
-encaps_var:
- T_VARIABLE { $$ = Expr\Variable[parseVar($1)]; }
- | T_VARIABLE '[' encaps_var_offset ']' { $$ = Expr\ArrayDimFetch[Expr\Variable[parseVar($1)], $3]; }
- | T_VARIABLE T_OBJECT_OPERATOR T_STRING { $$ = Expr\PropertyFetch[Expr\Variable[parseVar($1)], $3]; }
- | T_DOLLAR_OPEN_CURLY_BRACES expr '}' { $$ = Expr\Variable[$2]; }
- | T_DOLLAR_OPEN_CURLY_BRACES T_STRING_VARNAME '}' { $$ = Expr\Variable[$2]; }
- | T_DOLLAR_OPEN_CURLY_BRACES T_STRING_VARNAME '[' expr ']' '}'
- { $$ = Expr\ArrayDimFetch[Expr\Variable[$2], $4]; }
- | T_CURLY_OPEN variable '}' { $$ = $2; }
-;
-
-encaps_var_offset:
- T_STRING { $$ = Scalar\String_[$1]; }
- | T_NUM_STRING { $$ = Scalar\String_[$1]; }
- | T_VARIABLE { $$ = Expr\Variable[parseVar($1)]; }
-;
-
-%%
diff --git a/www/wiki/vendor/nikic/php-parser/grammar/rebuildParsers.php b/www/wiki/vendor/nikic/php-parser/grammar/rebuildParsers.php
deleted file mode 100644
index d7ecbe46..00000000
--- a/www/wiki/vendor/nikic/php-parser/grammar/rebuildParsers.php
+++ /dev/null
@@ -1,248 +0,0 @@
-<?php
-
-$grammarFileToName = [
- __DIR__ . '/php5.y' => 'Php5',
- __DIR__ . '/php7.y' => 'Php7',
-];
-
-$tokensFile = __DIR__ . '/tokens.y';
-$tokensTemplate = __DIR__ . '/tokens.template';
-$skeletonFile = __DIR__ . '/parser.template';
-$tmpGrammarFile = __DIR__ . '/tmp_parser.phpy';
-$tmpResultFile = __DIR__ . '/tmp_parser.php';
-$resultDir = __DIR__ . '/../lib/PhpParser/Parser';
-$tokensResultsFile = $resultDir . '/Tokens.php';
-
-// check for kmyacc.exe binary in this directory, otherwise fall back to global name
-$kmyacc = __DIR__ . '/kmyacc.exe';
-if (!file_exists($kmyacc)) {
- $kmyacc = 'kmyacc';
-}
-
-$options = array_flip($argv);
-$optionDebug = isset($options['--debug']);
-$optionKeepTmpGrammar = isset($options['--keep-tmp-grammar']);
-
-///////////////////////////////
-/// Utility regex constants ///
-///////////////////////////////
-
-const LIB = '(?(DEFINE)
- (?<singleQuotedString>\'[^\\\\\']*+(?:\\\\.[^\\\\\']*+)*+\')
- (?<doubleQuotedString>"[^\\\\"]*+(?:\\\\.[^\\\\"]*+)*+")
- (?<string>(?&singleQuotedString)|(?&doubleQuotedString))
- (?<comment>/\*[^*]*+(?:\*(?!/)[^*]*+)*+\*/)
- (?<code>\{[^\'"/{}]*+(?:(?:(?&string)|(?&comment)|(?&code)|/)[^\'"/{}]*+)*+})
-)';
-
-const PARAMS = '\[(?<params>[^[\]]*+(?:\[(?&params)\][^[\]]*+)*+)\]';
-const ARGS = '\((?<args>[^()]*+(?:\((?&args)\)[^()]*+)*+)\)';
-
-///////////////////
-/// Main script ///
-///////////////////
-
-$tokens = file_get_contents($tokensFile);
-
-foreach ($grammarFileToName as $grammarFile => $name) {
- echo "Building temporary $name grammar file.\n";
-
- $grammarCode = file_get_contents($grammarFile);
- $grammarCode = str_replace('%tokens', $tokens, $grammarCode);
-
- $grammarCode = resolveNodes($grammarCode);
- $grammarCode = resolveMacros($grammarCode);
- $grammarCode = resolveStackAccess($grammarCode);
-
- file_put_contents($tmpGrammarFile, $grammarCode);
-
- $additionalArgs = $optionDebug ? '-t -v' : '';
-
- echo "Building $name parser.\n";
- $output = trim(shell_exec("$kmyacc $additionalArgs -l -m $skeletonFile -p $name $tmpGrammarFile 2>&1"));
- echo "Output: \"$output\"\n";
-
- $resultCode = file_get_contents($tmpResultFile);
- $resultCode = removeTrailingWhitespace($resultCode);
-
- ensureDirExists($resultDir);
- file_put_contents("$resultDir/$name.php", $resultCode);
- unlink($tmpResultFile);
-
- echo "Building token definition.\n";
- $output = trim(shell_exec("$kmyacc -l -m $tokensTemplate $tmpGrammarFile 2>&1"));
- assert($output === '');
- rename($tmpResultFile, $tokensResultsFile);
-
- if (!$optionKeepTmpGrammar) {
- unlink($tmpGrammarFile);
- }
-}
-
-///////////////////////////////
-/// Preprocessing functions ///
-///////////////////////////////
-
-function resolveNodes($code) {
- return preg_replace_callback(
- '~\b(?<name>[A-Z][a-zA-Z_\\\\]++)\s*' . PARAMS . '~',
- function($matches) {
- // recurse
- $matches['params'] = resolveNodes($matches['params']);
-
- $params = magicSplit(
- '(?:' . PARAMS . '|' . ARGS . ')(*SKIP)(*FAIL)|,',
- $matches['params']
- );
-
- $paramCode = '';
- foreach ($params as $param) {
- $paramCode .= $param . ', ';
- }
-
- return 'new ' . $matches['name'] . '(' . $paramCode . 'attributes())';
- },
- $code
- );
-}
-
-function resolveMacros($code) {
- return preg_replace_callback(
- '~\b(?<!::|->)(?!array\()(?<name>[a-z][A-Za-z]++)' . ARGS . '~',
- function($matches) {
- // recurse
- $matches['args'] = resolveMacros($matches['args']);
-
- $name = $matches['name'];
- $args = magicSplit(
- '(?:' . PARAMS . '|' . ARGS . ')(*SKIP)(*FAIL)|,',
- $matches['args']
- );
-
- if ('attributes' == $name) {
- assertArgs(0, $args, $name);
- return '$this->startAttributeStack[#1] + $this->endAttributes';
- }
-
- if ('init' == $name) {
- return '$$ = array(' . implode(', ', $args) . ')';
- }
-
- if ('push' == $name) {
- assertArgs(2, $args, $name);
-
- return $args[0] . '[] = ' . $args[1] . '; $$ = ' . $args[0];
- }
-
- if ('pushNormalizing' == $name) {
- assertArgs(2, $args, $name);
-
- return 'if (is_array(' . $args[1] . ')) { $$ = array_merge(' . $args[0] . ', ' . $args[1] . '); }'
- . ' else { ' . $args[0] . '[] = ' . $args[1] . '; $$ = ' . $args[0] . '; }';
- }
-
- if ('toArray' == $name) {
- assertArgs(1, $args, $name);
-
- return 'is_array(' . $args[0] . ') ? ' . $args[0] . ' : array(' . $args[0] . ')';
- }
-
- if ('parseVar' == $name) {
- assertArgs(1, $args, $name);
-
- return 'substr(' . $args[0] . ', 1)';
- }
-
- if ('parseEncapsed' == $name) {
- assertArgs(3, $args, $name);
-
- return 'foreach (' . $args[0] . ' as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) {'
- . ' $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, ' . $args[1] . ', ' . $args[2] . '); } }';
- }
-
- if ('parseEncapsedDoc' == $name) {
- assertArgs(2, $args, $name);
-
- return 'foreach (' . $args[0] . ' as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) {'
- . ' $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, ' . $args[1] . '); } }'
- . ' $s->value = preg_replace(\'~(\r\n|\n|\r)\z~\', \'\', $s->value);'
- . ' if (\'\' === $s->value) array_pop(' . $args[0] . ');';
- }
-
- if ('makeNop' == $name) {
- assertArgs(2, $args, $name);
-
- return '$startAttributes = ' . $args[1] . ';'
- . ' if (isset($startAttributes[\'comments\']))'
- . ' { ' . $args[0] . ' = new Stmt\Nop([\'comments\' => $startAttributes[\'comments\']]); }'
- . ' else { ' . $args[0] . ' = null; }';
- }
-
- if ('strKind' == $name) {
- assertArgs(1, $args, $name);
-
- return '(' . $args[0] . '[0] === "\'" || (' . $args[0] . '[1] === "\'" && '
- . '(' . $args[0] . '[0] === \'b\' || ' . $args[0] . '[0] === \'B\')) '
- . '? Scalar\String_::KIND_SINGLE_QUOTED : Scalar\String_::KIND_DOUBLE_QUOTED)';
- }
-
- if ('setDocStringAttrs' == $name) {
- assertArgs(2, $args, $name);
-
- return $args[0] . '[\'kind\'] = strpos(' . $args[1] . ', "\'") === false '
- . '? Scalar\String_::KIND_HEREDOC : Scalar\String_::KIND_NOWDOC; '
- . 'preg_match(\'/\A[bB]?<<<[ \t]*[\\\'"]?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\\\'"]?(?:\r\n|\n|\r)\z/\', ' . $args[1] . ', $matches); '
- . $args[0] . '[\'docLabel\'] = $matches[1];';
- }
-
- return $matches[0];
- },
- $code
- );
-}
-
-function assertArgs($num, $args, $name) {
- if ($num != count($args)) {
- die('Wrong argument count for ' . $name . '().');
- }
-}
-
-function resolveStackAccess($code) {
- $code = preg_replace('/\$\d+/', '$this->semStack[$0]', $code);
- $code = preg_replace('/#(\d+)/', '$$1', $code);
- return $code;
-}
-
-function removeTrailingWhitespace($code) {
- $lines = explode("\n", $code);
- $lines = array_map('rtrim', $lines);
- return implode("\n", $lines);
-}
-
-function ensureDirExists($dir) {
- if (!is_dir($dir)) {
- mkdir($dir, 0777, true);
- }
-}
-
-//////////////////////////////
-/// Regex helper functions ///
-//////////////////////////////
-
-function regex($regex) {
- return '~' . LIB . '(?:' . str_replace('~', '\~', $regex) . ')~';
-}
-
-function magicSplit($regex, $string) {
- $pieces = preg_split(regex('(?:(?&string)|(?&comment)|(?&code))(*SKIP)(*FAIL)|' . $regex), $string);
-
- foreach ($pieces as &$piece) {
- $piece = trim($piece);
- }
-
- if ($pieces === ['']) {
- return [];
- }
-
- return $pieces;
-}
diff --git a/www/wiki/vendor/nikic/php-parser/grammar/tokens.template b/www/wiki/vendor/nikic/php-parser/grammar/tokens.template
deleted file mode 100644
index ba4e4901..00000000
--- a/www/wiki/vendor/nikic/php-parser/grammar/tokens.template
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-$meta #
-#semval($) $this->semValue
-#semval($,%t) $this->semValue
-#semval(%n) $this->stackPos-(%l-%n)
-#semval(%n,%t) $this->stackPos-(%l-%n)
-
-namespace PhpParser\Parser;
-#include;
-
-/* GENERATED file based on grammar/tokens.y */
-final class Tokens
-{
-#tokenval
- const %s = %n;
-#endtokenval
-}
diff --git a/www/wiki/vendor/nikic/php-parser/grammar/tokens.y b/www/wiki/vendor/nikic/php-parser/grammar/tokens.y
deleted file mode 100644
index 2b54f80b..00000000
--- a/www/wiki/vendor/nikic/php-parser/grammar/tokens.y
+++ /dev/null
@@ -1,113 +0,0 @@
-/* We currently rely on the token ID mapping to be the same between PHP 5 and PHP 7 - so the same lexer can be used for
- * both. This is enforced by sharing this token file. */
-
-%left T_INCLUDE T_INCLUDE_ONCE T_EVAL T_REQUIRE T_REQUIRE_ONCE
-%left ','
-%left T_LOGICAL_OR
-%left T_LOGICAL_XOR
-%left T_LOGICAL_AND
-%right T_PRINT
-%right T_YIELD
-%right T_DOUBLE_ARROW
-%right T_YIELD_FROM
-%left '=' T_PLUS_EQUAL T_MINUS_EQUAL T_MUL_EQUAL T_DIV_EQUAL T_CONCAT_EQUAL T_MOD_EQUAL T_AND_EQUAL T_OR_EQUAL T_XOR_EQUAL T_SL_EQUAL T_SR_EQUAL T_POW_EQUAL
-%left '?' ':'
-%right T_COALESCE
-%left T_BOOLEAN_OR
-%left T_BOOLEAN_AND
-%left '|'
-%left '^'
-%left '&'
-%nonassoc T_IS_EQUAL T_IS_NOT_EQUAL T_IS_IDENTICAL T_IS_NOT_IDENTICAL T_SPACESHIP
-%nonassoc '<' T_IS_SMALLER_OR_EQUAL '>' T_IS_GREATER_OR_EQUAL
-%left T_SL T_SR
-%left '+' '-' '.'
-%left '*' '/' '%'
-%right '!'
-%nonassoc T_INSTANCEOF
-%right '~' T_INC T_DEC T_INT_CAST T_DOUBLE_CAST T_STRING_CAST T_ARRAY_CAST T_OBJECT_CAST T_BOOL_CAST T_UNSET_CAST '@'
-%right T_POW
-%right '['
-%nonassoc T_NEW T_CLONE
-%token T_EXIT
-%token T_IF
-%left T_ELSEIF
-%left T_ELSE
-%left T_ENDIF
-%token T_LNUMBER
-%token T_DNUMBER
-%token T_STRING
-%token T_STRING_VARNAME
-%token T_VARIABLE
-%token T_NUM_STRING
-%token T_INLINE_HTML
-%token T_CHARACTER
-%token T_BAD_CHARACTER
-%token T_ENCAPSED_AND_WHITESPACE
-%token T_CONSTANT_ENCAPSED_STRING
-%token T_ECHO
-%token T_DO
-%token T_WHILE
-%token T_ENDWHILE
-%token T_FOR
-%token T_ENDFOR
-%token T_FOREACH
-%token T_ENDFOREACH
-%token T_DECLARE
-%token T_ENDDECLARE
-%token T_AS
-%token T_SWITCH
-%token T_ENDSWITCH
-%token T_CASE
-%token T_DEFAULT
-%token T_BREAK
-%token T_CONTINUE
-%token T_GOTO
-%token T_FUNCTION
-%token T_CONST
-%token T_RETURN
-%token T_TRY
-%token T_CATCH
-%token T_FINALLY
-%token T_THROW
-%token T_USE
-%token T_INSTEADOF
-%token T_GLOBAL
-%right T_STATIC T_ABSTRACT T_FINAL T_PRIVATE T_PROTECTED T_PUBLIC
-%token T_VAR
-%token T_UNSET
-%token T_ISSET
-%token T_EMPTY
-%token T_HALT_COMPILER
-%token T_CLASS
-%token T_TRAIT
-%token T_INTERFACE
-%token T_EXTENDS
-%token T_IMPLEMENTS
-%token T_OBJECT_OPERATOR
-%token T_DOUBLE_ARROW
-%token T_LIST
-%token T_ARRAY
-%token T_CALLABLE
-%token T_CLASS_C
-%token T_TRAIT_C
-%token T_METHOD_C
-%token T_FUNC_C
-%token T_LINE
-%token T_FILE
-%token T_COMMENT
-%token T_DOC_COMMENT
-%token T_OPEN_TAG
-%token T_OPEN_TAG_WITH_ECHO
-%token T_CLOSE_TAG
-%token T_WHITESPACE
-%token T_START_HEREDOC
-%token T_END_HEREDOC
-%token T_DOLLAR_OPEN_CURLY_BRACES
-%token T_CURLY_OPEN
-%token T_PAAMAYIM_NEKUDOTAYIM
-%token T_NAMESPACE
-%token T_NS_C
-%token T_DIR
-%token T_NS_SEPARATOR
-%token T_ELLIPSIS
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Autoloader.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Autoloader.php
deleted file mode 100644
index 809a06ed..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Autoloader.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-/**
- * @codeCoverageIgnore
- */
-class Autoloader
-{
- /** @var bool Whether the autoloader has been registered. */
- private static $registered = false;
-
- /**
- * Registers PhpParser\Autoloader as an SPL autoloader.
- *
- * @param bool $prepend Whether to prepend the autoloader instead of appending
- */
- static public function register($prepend = false) {
- if (self::$registered === true) {
- return;
- }
-
- spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend);
- self::$registered = true;
- }
-
- /**
- * Handles autoloading of classes.
- *
- * @param string $class A class name.
- */
- static public function autoload($class) {
- if (0 === strpos($class, 'PhpParser\\')) {
- $fileName = __DIR__ . strtr(substr($class, 9), '\\', '/') . '.php';
- if (file_exists($fileName)) {
- require $fileName;
- }
- }
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder.php
deleted file mode 100644
index 95655e82..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-interface Builder
-{
- /**
- * Returns the built node.
- *
- * @return Node The built node
- */
- public function getNode();
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Class_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Class_.php
deleted file mode 100644
index ca48287c..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Class_.php
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser;
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt;
-
-class Class_ extends Declaration
-{
- protected $name;
-
- protected $extends = null;
- protected $implements = array();
- protected $type = 0;
-
- protected $uses = array();
- protected $constants = array();
- protected $properties = array();
- protected $methods = array();
-
- /**
- * Creates a class builder.
- *
- * @param string $name Name of the class
- */
- public function __construct($name) {
- $this->name = $name;
- }
-
- /**
- * Extends a class.
- *
- * @param Name|string $class Name of class to extend
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function extend($class) {
- $this->extends = $this->normalizeName($class);
-
- return $this;
- }
-
- /**
- * Implements one or more interfaces.
- *
- * @param Name|string ...$interfaces Names of interfaces to implement
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function implement() {
- foreach (func_get_args() as $interface) {
- $this->implements[] = $this->normalizeName($interface);
- }
-
- return $this;
- }
-
- /**
- * Makes the class abstract.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeAbstract() {
- $this->setModifier(Stmt\Class_::MODIFIER_ABSTRACT);
-
- return $this;
- }
-
- /**
- * Makes the class final.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeFinal() {
- $this->setModifier(Stmt\Class_::MODIFIER_FINAL);
-
- return $this;
- }
-
- /**
- * Adds a statement.
- *
- * @param Stmt|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $stmt = $this->normalizeNode($stmt);
-
- $targets = array(
- 'Stmt_TraitUse' => &$this->uses,
- 'Stmt_ClassConst' => &$this->constants,
- 'Stmt_Property' => &$this->properties,
- 'Stmt_ClassMethod' => &$this->methods,
- );
-
- $type = $stmt->getType();
- if (!isset($targets[$type])) {
- throw new \LogicException(sprintf('Unexpected node of type "%s"', $type));
- }
-
- $targets[$type][] = $stmt;
-
- return $this;
- }
-
- /**
- * Returns the built class node.
- *
- * @return Stmt\Class_ The built class node
- */
- public function getNode() {
- return new Stmt\Class_($this->name, array(
- 'type' => $this->type,
- 'extends' => $this->extends,
- 'implements' => $this->implements,
- 'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
- ), $this->attributes);
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php
deleted file mode 100644
index f6a322c5..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser;
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-
-abstract class Declaration extends PhpParser\BuilderAbstract
-{
- protected $attributes = array();
-
- abstract public function addStmt($stmt);
-
- /**
- * Adds multiple statements.
- *
- * @param array $stmts The statements to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmts(array $stmts) {
- foreach ($stmts as $stmt) {
- $this->addStmt($stmt);
- }
-
- return $this;
- }
-
- /**
- * Sets doc comment for the declaration.
- *
- * @param PhpParser\Comment\Doc|string $docComment Doc comment to set
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setDocComment($docComment) {
- $this->attributes['comments'] = array(
- $this->normalizeDocComment($docComment)
- );
-
- return $this;
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php
deleted file mode 100644
index f7b1d2c8..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser;
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-
-abstract class FunctionLike extends Declaration
-{
- protected $returnByRef = false;
- protected $params = array();
- protected $returnType = null;
-
- /**
- * Make the function return by reference.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeReturnByRef() {
- $this->returnByRef = true;
-
- return $this;
- }
-
- /**
- * Adds a parameter.
- *
- * @param Node\Param|Param $param The parameter to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addParam($param) {
- $param = $this->normalizeNode($param);
-
- if (!$param instanceof Node\Param) {
- throw new \LogicException(sprintf('Expected parameter node, got "%s"', $param->getType()));
- }
-
- $this->params[] = $param;
-
- return $this;
- }
-
- /**
- * Adds multiple parameters.
- *
- * @param array $params The parameters to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addParams(array $params) {
- foreach ($params as $param) {
- $this->addParam($param);
- }
-
- return $this;
- }
-
- /**
- * Sets the return type for PHP 7.
- *
- * @param string|Node\Name $type One of array, callable, string, int, float, bool,
- * or a class/interface name.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setReturnType($type)
- {
- if (in_array($type, array('array', 'callable', 'string', 'int', 'float', 'bool'))) {
- $this->returnType = $type;
- } else {
- $this->returnType = $this->normalizeName($type);
- }
-
- return $this;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Function_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Function_.php
deleted file mode 100644
index 228bdfaa..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Function_.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser;
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-
-class Function_ extends FunctionLike
-{
- protected $name;
- protected $stmts = array();
-
- /**
- * Creates a function builder.
- *
- * @param string $name Name of the function
- */
- public function __construct($name) {
- $this->name = $name;
- }
-
- /**
- * Adds a statement.
- *
- * @param Node|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $this->stmts[] = $this->normalizeNode($stmt);
-
- return $this;
- }
-
- /**
- * Returns the built function node.
- *
- * @return Stmt\Function_ The built function node
- */
- public function getNode() {
- return new Stmt\Function_($this->name, array(
- 'byRef' => $this->returnByRef,
- 'params' => $this->params,
- 'returnType' => $this->returnType,
- 'stmts' => $this->stmts,
- ), $this->attributes);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Interface_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Interface_.php
deleted file mode 100644
index 8ebb292a..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Interface_.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser;
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt;
-
-class Interface_ extends Declaration
-{
- protected $name;
- protected $extends = array();
- protected $constants = array();
- protected $methods = array();
-
- /**
- * Creates an interface builder.
- *
- * @param string $name Name of the interface
- */
- public function __construct($name) {
- $this->name = $name;
- }
-
- /**
- * Extends one or more interfaces.
- *
- * @param Name|string ...$interfaces Names of interfaces to extend
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function extend() {
- foreach (func_get_args() as $interface) {
- $this->extends[] = $this->normalizeName($interface);
- }
-
- return $this;
- }
-
- /**
- * Adds a statement.
- *
- * @param Stmt|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $stmt = $this->normalizeNode($stmt);
-
- $type = $stmt->getType();
- switch ($type) {
- case 'Stmt_ClassConst':
- $this->constants[] = $stmt;
- break;
-
- case 'Stmt_ClassMethod':
- // we erase all statements in the body of an interface method
- $stmt->stmts = null;
- $this->methods[] = $stmt;
- break;
-
- default:
- throw new \LogicException(sprintf('Unexpected node of type "%s"', $type));
- }
-
- return $this;
- }
-
- /**
- * Returns the built interface node.
- *
- * @return Stmt\Interface_ The built interface node
- */
- public function getNode() {
- return new Stmt\Interface_($this->name, array(
- 'extends' => $this->extends,
- 'stmts' => array_merge($this->constants, $this->methods),
- ), $this->attributes);
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php
deleted file mode 100644
index 21698f1d..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php
+++ /dev/null
@@ -1,126 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser;
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-
-class Method extends FunctionLike
-{
- protected $name;
- protected $type = 0;
- protected $stmts = array();
-
- /**
- * Creates a method builder.
- *
- * @param string $name Name of the method
- */
- public function __construct($name) {
- $this->name = $name;
- }
-
- /**
- * Makes the method public.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePublic() {
- $this->setModifier(Stmt\Class_::MODIFIER_PUBLIC);
-
- return $this;
- }
-
- /**
- * Makes the method protected.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeProtected() {
- $this->setModifier(Stmt\Class_::MODIFIER_PROTECTED);
-
- return $this;
- }
-
- /**
- * Makes the method private.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePrivate() {
- $this->setModifier(Stmt\Class_::MODIFIER_PRIVATE);
-
- return $this;
- }
-
- /**
- * Makes the method static.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeStatic() {
- $this->setModifier(Stmt\Class_::MODIFIER_STATIC);
-
- return $this;
- }
-
- /**
- * Makes the method abstract.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeAbstract() {
- if (!empty($this->stmts)) {
- throw new \LogicException('Cannot make method with statements abstract');
- }
-
- $this->setModifier(Stmt\Class_::MODIFIER_ABSTRACT);
- $this->stmts = null; // abstract methods don't have statements
-
- return $this;
- }
-
- /**
- * Makes the method final.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeFinal() {
- $this->setModifier(Stmt\Class_::MODIFIER_FINAL);
-
- return $this;
- }
-
- /**
- * Adds a statement.
- *
- * @param Node|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- if (null === $this->stmts) {
- throw new \LogicException('Cannot add statements to an abstract method');
- }
-
- $this->stmts[] = $this->normalizeNode($stmt);
-
- return $this;
- }
-
- /**
- * Returns the built method node.
- *
- * @return Stmt\ClassMethod The built method node
- */
- public function getNode() {
- return new Stmt\ClassMethod($this->name, array(
- 'type' => $this->type,
- 'byRef' => $this->returnByRef,
- 'params' => $this->params,
- 'returnType' => $this->returnType,
- 'stmts' => $this->stmts,
- ), $this->attributes);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php
deleted file mode 100644
index 432fcc7f..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser;
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-
-class Namespace_ extends PhpParser\BuilderAbstract
-{
- private $name;
- private $stmts = array();
-
- /**
- * Creates a namespace builder.
- *
- * @param Node\Name|string|null $name Name of the namespace
- */
- public function __construct($name) {
- $this->name = null !== $name ? $this->normalizeName($name) : null;
- }
-
- /**
- * Adds a statement.
- *
- * @param Node|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $this->stmts[] = $this->normalizeNode($stmt);
-
- return $this;
- }
-
- /**
- * Adds multiple statements.
- *
- * @param array $stmts The statements to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmts(array $stmts) {
- foreach ($stmts as $stmt) {
- $this->addStmt($stmt);
- }
-
- return $this;
- }
-
- /**
- * Returns the built node.
- *
- * @return Node The built node
- */
- public function getNode() {
- return new Stmt\Namespace_($this->name, $this->stmts);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Param.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Param.php
deleted file mode 100644
index c9efc978..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Param.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser;
-use PhpParser\Node;
-
-class Param extends PhpParser\BuilderAbstract
-{
- protected $name;
-
- protected $default = null;
- protected $type = null;
- protected $byRef = false;
-
- /**
- * Creates a parameter builder.
- *
- * @param string $name Name of the parameter
- */
- public function __construct($name) {
- $this->name = $name;
- }
-
- /**
- * Sets default value for the parameter.
- *
- * @param mixed $value Default value to use
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setDefault($value) {
- $this->default = $this->normalizeValue($value);
-
- return $this;
- }
-
- /**
- * Sets type hint for the parameter.
- *
- * @param string|Node\Name $type Type hint to use
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setTypeHint($type) {
- if (in_array($type, array('array', 'callable', 'string', 'int', 'float', 'bool'))) {
- $this->type = $type;
- } else {
- $this->type = $this->normalizeName($type);
- }
-
- return $this;
- }
-
- /**
- * Make the parameter accept the value by reference.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeByRef() {
- $this->byRef = true;
-
- return $this;
- }
-
- /**
- * Returns the built parameter node.
- *
- * @return Node\Param The built parameter node
- */
- public function getNode() {
- return new Node\Param(
- $this->name, $this->default, $this->type, $this->byRef
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php
deleted file mode 100644
index 2d59d4c3..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Property.php
+++ /dev/null
@@ -1,111 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser;
-use PhpParser\Node\Stmt;
-
-class Property extends PhpParser\BuilderAbstract
-{
- protected $name;
-
- protected $type = 0;
- protected $default = null;
- protected $attributes = array();
-
- /**
- * Creates a property builder.
- *
- * @param string $name Name of the property
- */
- public function __construct($name) {
- $this->name = $name;
- }
-
- /**
- * Makes the property public.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePublic() {
- $this->setModifier(Stmt\Class_::MODIFIER_PUBLIC);
-
- return $this;
- }
-
- /**
- * Makes the property protected.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeProtected() {
- $this->setModifier(Stmt\Class_::MODIFIER_PROTECTED);
-
- return $this;
- }
-
- /**
- * Makes the property private.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makePrivate() {
- $this->setModifier(Stmt\Class_::MODIFIER_PRIVATE);
-
- return $this;
- }
-
- /**
- * Makes the property static.
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function makeStatic() {
- $this->setModifier(Stmt\Class_::MODIFIER_STATIC);
-
- return $this;
- }
-
- /**
- * Sets default value for the property.
- *
- * @param mixed $value Default value to use
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setDefault($value) {
- $this->default = $this->normalizeValue($value);
-
- return $this;
- }
-
- /**
- * Sets doc comment for the property.
- *
- * @param PhpParser\Comment\Doc|string $docComment Doc comment to set
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function setDocComment($docComment) {
- $this->attributes = array(
- 'comments' => array($this->normalizeDocComment($docComment))
- );
-
- return $this;
- }
-
- /**
- * Returns the built class node.
- *
- * @return Stmt\Property The built property node
- */
- public function getNode() {
- return new Stmt\Property(
- $this->type !== 0 ? $this->type : Stmt\Class_::MODIFIER_PUBLIC,
- array(
- new Stmt\PropertyProperty($this->name, $this->default)
- ),
- $this->attributes
- );
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Trait_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Trait_.php
deleted file mode 100644
index 9722e357..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Trait_.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser;
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt;
-
-class Trait_ extends Declaration
-{
- protected $name;
- protected $properties = array();
- protected $methods = array();
-
- /**
- * Creates an interface builder.
- *
- * @param string $name Name of the interface
- */
- public function __construct($name) {
- $this->name = $name;
- }
-
- /**
- * Adds a statement.
- *
- * @param Stmt|PhpParser\Builder $stmt The statement to add
- *
- * @return $this The builder instance (for fluid interface)
- */
- public function addStmt($stmt) {
- $stmt = $this->normalizeNode($stmt);
-
- if ($stmt instanceof Stmt\Property) {
- $this->properties[] = $stmt;
- } else if ($stmt instanceof Stmt\ClassMethod) {
- $this->methods[] = $stmt;
- } else {
- throw new \LogicException(sprintf('Unexpected node of type "%s"', $stmt->getType()));
- }
-
- return $this;
- }
-
- /**
- * Returns the built trait node.
- *
- * @return Stmt\Trait_ The built interface node
- */
- public function getNode() {
- return new Stmt\Trait_(
- $this->name, array_merge($this->properties, $this->methods), $this->attributes
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Use_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Use_.php
deleted file mode 100644
index f6d3a856..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Builder/Use_.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser\BuilderAbstract;
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-
-/**
- * @method $this as(string $alias) Sets alias for used name.
- */
-class Use_ extends BuilderAbstract {
- protected $name;
- protected $type;
- protected $alias = null;
-
- /**
- * Creates a name use (alias) builder.
- *
- * @param Node\Name|string $name Name of the entity (namespace, class, function, constant) to alias
- * @param int $type One of the Stmt\Use_::TYPE_* constants
- */
- public function __construct($name, $type) {
- $this->name = $this->normalizeName($name);
- $this->type = $type;
- }
-
- /**
- * Sets alias for used name.
- *
- * @param string $alias Alias to use (last component of full name by default)
- *
- * @return $this The builder instance (for fluid interface)
- */
- protected function as_($alias) {
- $this->alias = $alias;
- return $this;
- }
- public function __call($name, $args) {
- if (method_exists($this, $name . '_')) {
- return call_user_func_array(array($this, $name . '_'), $args);
- }
-
- throw new \LogicException(sprintf('Method "%s" does not exist', $name));
- }
-
- /**
- * Returns the built node.
- *
- * @return Node The built node
- */
- public function getNode() {
- $alias = null !== $this->alias ? $this->alias : $this->name->getLast();
- return new Stmt\Use_(array(
- new Stmt\UseUse($this->name, $alias)
- ), $this->type);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/BuilderAbstract.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/BuilderAbstract.php
deleted file mode 100644
index 626bedd1..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/BuilderAbstract.php
+++ /dev/null
@@ -1,131 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Node\Name;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Stmt;
-use PhpParser\Node\Scalar;
-use PhpParser\Comment;
-
-abstract class BuilderAbstract implements Builder {
- /**
- * Normalizes a node: Converts builder objects to nodes.
- *
- * @param Node|Builder $node The node to normalize
- *
- * @return Node The normalized node
- */
- protected function normalizeNode($node) {
- if ($node instanceof Builder) {
- return $node->getNode();
- } elseif ($node instanceof Node) {
- return $node;
- }
-
- throw new \LogicException('Expected node or builder object');
- }
-
- /**
- * Normalizes a name: Converts plain string names to PhpParser\Node\Name.
- *
- * @param Name|string $name The name to normalize
- *
- * @return Name The normalized name
- */
- protected function normalizeName($name) {
- if ($name instanceof Name) {
- return $name;
- } elseif (is_string($name)) {
- if (!$name) {
- throw new \LogicException('Name cannot be empty');
- }
-
- if ($name[0] == '\\') {
- return new Name\FullyQualified(substr($name, 1));
- } elseif (0 === strpos($name, 'namespace\\')) {
- return new Name\Relative(substr($name, strlen('namespace\\')));
- } else {
- return new Name($name);
- }
- }
-
- throw new \LogicException('Name must be a string or an instance of PhpParser\Node\Name');
- }
-
- /**
- * Normalizes a value: Converts nulls, booleans, integers,
- * floats, strings and arrays into their respective nodes
- *
- * @param mixed $value The value to normalize
- *
- * @return Expr The normalized value
- */
- protected function normalizeValue($value) {
- if ($value instanceof Node) {
- return $value;
- } elseif (is_null($value)) {
- return new Expr\ConstFetch(
- new Name('null')
- );
- } elseif (is_bool($value)) {
- return new Expr\ConstFetch(
- new Name($value ? 'true' : 'false')
- );
- } elseif (is_int($value)) {
- return new Scalar\LNumber($value);
- } elseif (is_float($value)) {
- return new Scalar\DNumber($value);
- } elseif (is_string($value)) {
- return new Scalar\String_($value);
- } elseif (is_array($value)) {
- $items = array();
- $lastKey = -1;
- foreach ($value as $itemKey => $itemValue) {
- // for consecutive, numeric keys don't generate keys
- if (null !== $lastKey && ++$lastKey === $itemKey) {
- $items[] = new Expr\ArrayItem(
- $this->normalizeValue($itemValue)
- );
- } else {
- $lastKey = null;
- $items[] = new Expr\ArrayItem(
- $this->normalizeValue($itemValue),
- $this->normalizeValue($itemKey)
- );
- }
- }
-
- return new Expr\Array_($items);
- } else {
- throw new \LogicException('Invalid value');
- }
- }
-
- /**
- * Normalizes a doc comment: Converts plain strings to PhpParser\Comment\Doc.
- *
- * @param Comment\Doc|string $docComment The doc comment to normalize
- *
- * @return Comment\Doc The normalized doc comment
- */
- protected function normalizeDocComment($docComment) {
- if ($docComment instanceof Comment\Doc) {
- return $docComment;
- } else if (is_string($docComment)) {
- return new Comment\Doc($docComment);
- } else {
- throw new \LogicException('Doc comment must be a string or an instance of PhpParser\Comment\Doc');
- }
- }
-
- /**
- * Sets a modifier in the $this->type property.
- *
- * @param int $modifier Modifier to set
- */
- protected function setModifier($modifier) {
- Stmt\Class_::verifyModifier($this->type, $modifier);
- $this->type |= $modifier;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/BuilderFactory.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/BuilderFactory.php
deleted file mode 100644
index 42c7f612..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/BuilderFactory.php
+++ /dev/null
@@ -1,127 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Builder;
-use PhpParser\Node\Stmt\Use_;
-
-/**
- * The following methods use reserved keywords, so their implementation is defined with an underscore and made available
- * with the reserved name through __call() magic.
- *
- * @method Builder\Namespace_ namespace(string $name) Creates a namespace builder.
- * @method Builder\Class_ class(string $name) Creates a class builder.
- * @method Builder\Interface_ interface(string $name) Creates an interface builder.
- * @method Builder\Trait_ trait(string $name) Creates a trait builder.
- * @method Builder\Function_ function(string $name) Creates a function builder.
- * @method Builder\Use_ use(string $name) Creates a namespace/class use builder.
- */
-class BuilderFactory
-{
- /**
- * Creates a namespace builder.
- *
- * @param null|string|Node\Name $name Name of the namespace
- *
- * @return Builder\Namespace_ The created namespace builder
- */
- protected function _namespace($name) {
- return new Builder\Namespace_($name);
- }
-
- /**
- * Creates a class builder.
- *
- * @param string $name Name of the class
- *
- * @return Builder\Class_ The created class builder
- */
- protected function _class($name) {
- return new Builder\Class_($name);
- }
-
- /**
- * Creates an interface builder.
- *
- * @param string $name Name of the interface
- *
- * @return Builder\Interface_ The created interface builder
- */
- protected function _interface($name) {
- return new Builder\Interface_($name);
- }
-
- /**
- * Creates a trait builder.
- *
- * @param string $name Name of the trait
- *
- * @return Builder\Trait_ The created trait builder
- */
- protected function _trait($name) {
- return new Builder\Trait_($name);
- }
-
- /**
- * Creates a method builder.
- *
- * @param string $name Name of the method
- *
- * @return Builder\Method The created method builder
- */
- public function method($name) {
- return new Builder\Method($name);
- }
-
- /**
- * Creates a parameter builder.
- *
- * @param string $name Name of the parameter
- *
- * @return Builder\Param The created parameter builder
- */
- public function param($name) {
- return new Builder\Param($name);
- }
-
- /**
- * Creates a property builder.
- *
- * @param string $name Name of the property
- *
- * @return Builder\Property The created property builder
- */
- public function property($name) {
- return new Builder\Property($name);
- }
-
- /**
- * Creates a function builder.
- *
- * @param string $name Name of the function
- *
- * @return Builder\Function_ The created function builder
- */
- protected function _function($name) {
- return new Builder\Function_($name);
- }
-
- /**
- * Creates a namespace/class use builder.
- *
- * @param string|Node\Name Name to alias
- *
- * @return Builder\Use_ The create use builder
- */
- protected function _use($name) {
- return new Builder\Use_($name, Use_::TYPE_NORMAL);
- }
-
- public function __call($name, array $args) {
- if (method_exists($this, '_' . $name)) {
- return call_user_func_array(array($this, '_' . $name), $args);
- }
-
- throw new \LogicException(sprintf('Method "%s" does not exist', $name));
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Comment.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Comment.php
deleted file mode 100644
index b0b31a7d..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Comment.php
+++ /dev/null
@@ -1,151 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-class Comment
-{
- protected $text;
- protected $line;
- protected $filePos;
-
- /**
- * Constructs a comment node.
- *
- * @param string $text Comment text (including comment delimiters like /*)
- * @param int $startLine Line number the comment started on
- * @param int $startFilePos File offset the comment started on
- */
- public function __construct($text, $startLine = -1, $startFilePos = -1) {
- $this->text = $text;
- $this->line = $startLine;
- $this->filePos = $startFilePos;
- }
-
- /**
- * Gets the comment text.
- *
- * @return string The comment text (including comment delimiters like /*)
- */
- public function getText() {
- return $this->text;
- }
-
- /**
- * Sets the comment text.
- *
- * @param string $text The comment text (including comment delimiters like /*)
- *
- * @deprecated Construct a new comment instead
- */
- public function setText($text) {
- $this->text = $text;
- }
-
- /**
- * Gets the line number the comment started on.
- *
- * @return int Line number
- */
- public function getLine() {
- return $this->line;
- }
-
- /**
- * Sets the line number the comment started on.
- *
- * @param int $line Line number
- *
- * @deprecated Construct a new comment instead
- */
- public function setLine($line) {
- $this->line = $line;
- }
-
- /**
- * Gets the file offset the comment started on.
- *
- * @return int File offset
- */
- public function getFilePos() {
- return $this->filePos;
- }
-
- /**
- * Gets the comment text.
- *
- * @return string The comment text (including comment delimiters like /*)
- */
- public function __toString() {
- return $this->text;
- }
-
- /**
- * Gets the reformatted comment text.
- *
- * "Reformatted" here means that we try to clean up the whitespace at the
- * starts of the lines. This is necessary because we receive the comments
- * without trailing whitespace on the first line, but with trailing whitespace
- * on all subsequent lines.
- *
- * @return mixed|string
- */
- public function getReformattedText() {
- $text = trim($this->text);
- $newlinePos = strpos($text, "\n");
- if (false === $newlinePos) {
- // Single line comments don't need further processing
- return $text;
- } elseif (preg_match('((*BSR_ANYCRLF)(*ANYCRLF)^.*(?:\R\s+\*.*)+$)', $text)) {
- // Multi line comment of the type
- //
- // /*
- // * Some text.
- // * Some more text.
- // */
- //
- // is handled by replacing the whitespace sequences before the * by a single space
- return preg_replace('(^\s+\*)m', ' *', $this->text);
- } elseif (preg_match('(^/\*\*?\s*[\r\n])', $text) && preg_match('(\n(\s*)\*/$)', $text, $matches)) {
- // Multi line comment of the type
- //
- // /*
- // Some text.
- // Some more text.
- // */
- //
- // is handled by removing the whitespace sequence on the line before the closing
- // */ on all lines. So if the last line is " */", then " " is removed at the
- // start of all lines.
- return preg_replace('(^' . preg_quote($matches[1]) . ')m', '', $text);
- } elseif (preg_match('(^/\*\*?\s*(?!\s))', $text, $matches)) {
- // Multi line comment of the type
- //
- // /* Some text.
- // Some more text.
- // Indented text.
- // Even more text. */
- //
- // is handled by removing the difference between the shortest whitespace prefix on all
- // lines and the length of the "/* " opening sequence.
- $prefixLen = $this->getShortestWhitespacePrefixLen(substr($text, $newlinePos + 1));
- $removeLen = $prefixLen - strlen($matches[0]);
- return preg_replace('(^\s{' . $removeLen . '})m', '', $text);
- }
-
- // No idea how to format this comment, so simply return as is
- return $text;
- }
-
- private function getShortestWhitespacePrefixLen($str) {
- $lines = explode("\n", $str);
- $shortestPrefixLen = INF;
- foreach ($lines as $line) {
- preg_match('(^\s*)', $line, $matches);
- $prefixLen = strlen($matches[0]);
- if ($prefixLen < $shortestPrefixLen) {
- $shortestPrefixLen = $prefixLen;
- }
- }
- return $shortestPrefixLen;
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Comment/Doc.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Comment/Doc.php
deleted file mode 100644
index 24fc6c9e..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Comment/Doc.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-namespace PhpParser\Comment;
-
-class Doc extends \PhpParser\Comment
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Error.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Error.php
deleted file mode 100644
index 58d1dd6c..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Error.php
+++ /dev/null
@@ -1,158 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-class Error extends \RuntimeException
-{
- protected $rawMessage;
- protected $attributes;
-
- /**
- * Creates an Exception signifying a parse error.
- *
- * @param string $message Error message
- * @param array|int $attributes Attributes of node/token where error occurred
- * (or start line of error -- deprecated)
- */
- public function __construct($message, $attributes = array()) {
- $this->rawMessage = (string) $message;
- if (is_array($attributes)) {
- $this->attributes = $attributes;
- } else {
- $this->attributes = array('startLine' => $attributes);
- }
- $this->updateMessage();
- }
-
- /**
- * Gets the error message
- *
- * @return string Error message
- */
- public function getRawMessage() {
- return $this->rawMessage;
- }
-
- /**
- * Gets the line the error starts in.
- *
- * @return int Error start line
- */
- public function getStartLine() {
- return isset($this->attributes['startLine']) ? $this->attributes['startLine'] : -1;
- }
-
- /**
- * Gets the line the error ends in.
- *
- * @return int Error end line
- */
- public function getEndLine() {
- return isset($this->attributes['endLine']) ? $this->attributes['endLine'] : -1;
- }
-
-
- /**
- * Gets the attributes of the node/token the error occurred at.
- *
- * @return array
- */
- public function getAttributes() {
- return $this->attributes;
- }
-
- /**
- * Sets the line of the PHP file the error occurred in.
- *
- * @param string $message Error message
- */
- public function setRawMessage($message) {
- $this->rawMessage = (string) $message;
- $this->updateMessage();
- }
-
- /**
- * Sets the line the error starts in.
- *
- * @param int $line Error start line
- */
- public function setStartLine($line) {
- $this->attributes['startLine'] = (int) $line;
- $this->updateMessage();
- }
-
- /**
- * Returns whether the error has start and end column information.
- *
- * For column information enable the startFilePos and endFilePos in the lexer options.
- *
- * @return bool
- */
- public function hasColumnInfo() {
- return isset($this->attributes['startFilePos']) && isset($this->attributes['endFilePos']);
- }
-
- /**
- * Gets the start column (1-based) into the line where the error started.
- *
- * @param string $code Source code of the file
- * @return int
- */
- public function getStartColumn($code) {
- if (!$this->hasColumnInfo()) {
- throw new \RuntimeException('Error does not have column information');
- }
-
- return $this->toColumn($code, $this->attributes['startFilePos']);
- }
-
- /**
- * Gets the end column (1-based) into the line where the error ended.
- *
- * @param string $code Source code of the file
- * @return int
- */
- public function getEndColumn($code) {
- if (!$this->hasColumnInfo()) {
- throw new \RuntimeException('Error does not have column information');
- }
-
- return $this->toColumn($code, $this->attributes['endFilePos']);
- }
-
- private function toColumn($code, $pos) {
- if ($pos > strlen($code)) {
- throw new \RuntimeException('Invalid position information');
- }
-
- $lineStartPos = strrpos($code, "\n", $pos - strlen($code));
- if (false === $lineStartPos) {
- $lineStartPos = -1;
- }
-
- return $pos - $lineStartPos;
- }
-
- /**
- * Updates the exception message after a change to rawMessage or rawLine.
- */
- protected function updateMessage() {
- $this->message = $this->rawMessage;
-
- if (-1 === $this->getStartLine()) {
- $this->message .= ' on unknown line';
- } else {
- $this->message .= ' on line ' . $this->getStartLine();
- }
- }
-
- /** @deprecated Use getStartLine() instead */
- public function getRawLine() {
- return $this->getStartLine();
- }
-
- /** @deprecated Use setStartLine() instead */
- public function setRawLine($line) {
- $this->setStartLine($line);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Lexer.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Lexer.php
deleted file mode 100644
index cf7bf56f..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Lexer.php
+++ /dev/null
@@ -1,286 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Node\Scalar\LNumber;
-use PhpParser\Parser\Tokens;
-
-class Lexer
-{
- protected $code;
- protected $tokens;
- protected $pos;
- protected $line;
- protected $filePos;
-
- protected $tokenMap;
- protected $dropTokens;
-
- protected $usedAttributes;
-
- /**
- * Creates a Lexer.
- *
- * @param array $options Options array. Currently only the 'usedAttributes' option is supported,
- * which is an array of attributes to add to the AST nodes. Possible
- * attributes are: 'comments', 'startLine', 'endLine', 'startTokenPos',
- * 'endTokenPos', 'startFilePos', 'endFilePos'. The option defaults to the
- * first three. For more info see getNextToken() docs.
- */
- public function __construct(array $options = array()) {
- // map from internal tokens to PhpParser tokens
- $this->tokenMap = $this->createTokenMap();
-
- // map of tokens to drop while lexing (the map is only used for isset lookup,
- // that's why the value is simply set to 1; the value is never actually used.)
- $this->dropTokens = array_fill_keys(
- array(T_WHITESPACE, T_OPEN_TAG, T_COMMENT, T_DOC_COMMENT), 1
- );
-
- // the usedAttributes member is a map of the used attribute names to a dummy
- // value (here "true")
- $options += array(
- 'usedAttributes' => array('comments', 'startLine', 'endLine'),
- );
- $this->usedAttributes = array_fill_keys($options['usedAttributes'], true);
- }
-
- /**
- * Initializes the lexer for lexing the provided source code.
- *
- * @param string $code The source code to lex
- *
- * @throws Error on lexing errors (unterminated comment or unexpected character)
- */
- public function startLexing($code) {
- $scream = ini_set('xdebug.scream', '0');
-
- $this->resetErrors();
- $this->tokens = @token_get_all($code);
- $this->handleErrors();
-
- if (false !== $scream) {
- ini_set('xdebug.scream', $scream);
- }
-
- $this->code = $code; // keep the code around for __halt_compiler() handling
- $this->pos = -1;
- $this->line = 1;
- $this->filePos = 0;
- }
-
- protected function resetErrors() {
- if (function_exists('error_clear_last')) {
- error_clear_last();
- } else {
- // set error_get_last() to defined state by forcing an undefined variable error
- set_error_handler(function() { return false; }, 0);
- @$undefinedVariable;
- restore_error_handler();
- }
- }
-
- protected function handleErrors() {
- $error = error_get_last();
- if (null === $error) {
- return;
- }
-
- if (preg_match(
- '~^Unterminated comment starting line ([0-9]+)$~',
- $error['message'], $matches
- )) {
- throw new Error('Unterminated comment', (int) $matches[1]);
- }
-
- if (preg_match(
- '~^Unexpected character in input: \'(.)\' \(ASCII=([0-9]+)\)~s',
- $error['message'], $matches
- )) {
- throw new Error(sprintf(
- 'Unexpected character "%s" (ASCII %d)',
- $matches[1], $matches[2]
- ));
- }
-
- // PHP cuts error message after null byte, so need special case
- if (preg_match('~^Unexpected character in input: \'$~', $error['message'])) {
- throw new Error('Unexpected null byte');
- }
- }
-
- /**
- * Fetches the next token.
- *
- * The available attributes are determined by the 'usedAttributes' option, which can
- * be specified in the constructor. The following attributes are supported:
- *
- * * 'comments' => Array of PhpParser\Comment or PhpParser\Comment\Doc instances,
- * representing all comments that occurred between the previous
- * non-discarded token and the current one.
- * * 'startLine' => Line in which the node starts.
- * * 'endLine' => Line in which the node ends.
- * * 'startTokenPos' => Offset into the token array of the first token in the node.
- * * 'endTokenPos' => Offset into the token array of the last token in the node.
- * * 'startFilePos' => Offset into the code string of the first character that is part of the node.
- * * 'endFilePos' => Offset into the code string of the last character that is part of the node.
- *
- * @param mixed $value Variable to store token content in
- * @param mixed $startAttributes Variable to store start attributes in
- * @param mixed $endAttributes Variable to store end attributes in
- *
- * @return int Token id
- */
- public function getNextToken(&$value = null, &$startAttributes = null, &$endAttributes = null) {
- $startAttributes = array();
- $endAttributes = array();
-
- while (1) {
- if (isset($this->tokens[++$this->pos])) {
- $token = $this->tokens[$this->pos];
- } else {
- // EOF token with ID 0
- $token = "\0";
- }
-
- if (isset($this->usedAttributes['startLine'])) {
- $startAttributes['startLine'] = $this->line;
- }
- if (isset($this->usedAttributes['startTokenPos'])) {
- $startAttributes['startTokenPos'] = $this->pos;
- }
- if (isset($this->usedAttributes['startFilePos'])) {
- $startAttributes['startFilePos'] = $this->filePos;
- }
-
- if (\is_string($token)) {
- $value = $token;
- if (isset($token[1])) {
- // bug in token_get_all
- $this->filePos += 2;
- $id = ord('"');
- } else {
- $this->filePos += 1;
- $id = ord($token);
- }
- } elseif (!isset($this->dropTokens[$token[0]])) {
- $value = $token[1];
- $id = $this->tokenMap[$token[0]];
-
- $this->line += substr_count($value, "\n");
- $this->filePos += \strlen($value);
- } else {
- if (T_COMMENT === $token[0] || T_DOC_COMMENT === $token[0]) {
- if (isset($this->usedAttributes['comments'])) {
- $comment = T_DOC_COMMENT === $token[0]
- ? new Comment\Doc($token[1], $this->line, $this->filePos)
- : new Comment($token[1], $this->line, $this->filePos);
- $startAttributes['comments'][] = $comment;
- }
- }
-
- $this->line += substr_count($token[1], "\n");
- $this->filePos += \strlen($token[1]);
- continue;
- }
-
- if (isset($this->usedAttributes['endLine'])) {
- $endAttributes['endLine'] = $this->line;
- }
- if (isset($this->usedAttributes['endTokenPos'])) {
- $endAttributes['endTokenPos'] = $this->pos;
- }
- if (isset($this->usedAttributes['endFilePos'])) {
- $endAttributes['endFilePos'] = $this->filePos - 1;
- }
-
- return $id;
- }
-
- throw new \RuntimeException('Reached end of lexer loop');
- }
-
- /**
- * Returns the token array for current code.
- *
- * The token array is in the same format as provided by the
- * token_get_all() function and does not discard tokens (i.e.
- * whitespace and comments are included). The token position
- * attributes are against this token array.
- *
- * @return array Array of tokens in token_get_all() format
- */
- public function getTokens() {
- return $this->tokens;
- }
-
- /**
- * Handles __halt_compiler() by returning the text after it.
- *
- * @return string Remaining text
- */
- public function handleHaltCompiler() {
- // text after T_HALT_COMPILER, still including ();
- $textAfter = substr($this->code, $this->filePos);
-
- // ensure that it is followed by ();
- // this simplifies the situation, by not allowing any comments
- // in between of the tokens.
- if (!preg_match('~^\s*\(\s*\)\s*(?:;|\?>\r?\n?)~', $textAfter, $matches)) {
- throw new Error('__HALT_COMPILER must be followed by "();"');
- }
-
- // prevent the lexer from returning any further tokens
- $this->pos = count($this->tokens);
-
- // return with (); removed
- return (string) substr($textAfter, strlen($matches[0])); // (string) converts false to ''
- }
-
- /**
- * Creates the token map.
- *
- * The token map maps the PHP internal token identifiers
- * to the identifiers used by the Parser. Additionally it
- * maps T_OPEN_TAG_WITH_ECHO to T_ECHO and T_CLOSE_TAG to ';'.
- *
- * @return array The token map
- */
- protected function createTokenMap() {
- $tokenMap = array();
-
- // 256 is the minimum possible token number, as everything below
- // it is an ASCII value
- for ($i = 256; $i < 1000; ++$i) {
- if (T_DOUBLE_COLON === $i) {
- // T_DOUBLE_COLON is equivalent to T_PAAMAYIM_NEKUDOTAYIM
- $tokenMap[$i] = Tokens::T_PAAMAYIM_NEKUDOTAYIM;
- } elseif(T_OPEN_TAG_WITH_ECHO === $i) {
- // T_OPEN_TAG_WITH_ECHO with dropped T_OPEN_TAG results in T_ECHO
- $tokenMap[$i] = Tokens::T_ECHO;
- } elseif(T_CLOSE_TAG === $i) {
- // T_CLOSE_TAG is equivalent to ';'
- $tokenMap[$i] = ord(';');
- } elseif ('UNKNOWN' !== $name = token_name($i)) {
- if ('T_HASHBANG' === $name) {
- // HHVM uses a special token for #! hashbang lines
- $tokenMap[$i] = Tokens::T_INLINE_HTML;
- } else if (defined($name = 'PhpParser\Parser\Tokens::' . $name)) {
- // Other tokens can be mapped directly
- $tokenMap[$i] = constant($name);
- }
- }
- }
-
- // HHVM uses a special token for numbers that overflow to double
- if (defined('T_ONUMBER')) {
- $tokenMap[T_ONUMBER] = Tokens::T_DNUMBER;
- }
- // HHVM also has a separate token for the __COMPILER_HALT_OFFSET__ constant
- if (defined('T_COMPILER_HALT_OFFSET')) {
- $tokenMap[T_COMPILER_HALT_OFFSET] = Tokens::T_STRING;
- }
-
- return $tokenMap;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php
deleted file mode 100644
index 257f0868..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php
+++ /dev/null
@@ -1,205 +0,0 @@
-<?php
-
-namespace PhpParser\Lexer;
-
-use PhpParser\Parser\Tokens;
-
-/**
- * ATTENTION: This code is WRITE-ONLY. Do not try to read it.
- */
-class Emulative extends \PhpParser\Lexer
-{
- protected $newKeywords;
- protected $inObjectAccess;
-
- const T_ELLIPSIS = 1001;
- const T_POW = 1002;
- const T_POW_EQUAL = 1003;
- const T_COALESCE = 1004;
- const T_SPACESHIP = 1005;
- const T_YIELD_FROM = 1006;
-
- const PHP_7_0 = '7.0.0dev';
- const PHP_5_6 = '5.6.0rc1';
- const PHP_5_5 = '5.5.0beta1';
-
- public function __construct(array $options = array()) {
- parent::__construct($options);
-
- $newKeywordsPerVersion = array(
- self::PHP_5_5 => array(
- 'finally' => Tokens::T_FINALLY,
- 'yield' => Tokens::T_YIELD,
- ),
- );
-
- $this->newKeywords = array();
- foreach ($newKeywordsPerVersion as $version => $newKeywords) {
- if (version_compare(PHP_VERSION, $version, '>=')) {
- break;
- }
-
- $this->newKeywords += $newKeywords;
- }
-
- if (version_compare(PHP_VERSION, self::PHP_7_0, '>=')) {
- return;
- }
- $this->tokenMap[self::T_COALESCE] = Tokens::T_COALESCE;
- $this->tokenMap[self::T_SPACESHIP] = Tokens::T_SPACESHIP;
- $this->tokenMap[self::T_YIELD_FROM] = Tokens::T_YIELD_FROM;
-
- if (version_compare(PHP_VERSION, self::PHP_5_6, '>=')) {
- return;
- }
- $this->tokenMap[self::T_ELLIPSIS] = Tokens::T_ELLIPSIS;
- $this->tokenMap[self::T_POW] = Tokens::T_POW;
- $this->tokenMap[self::T_POW_EQUAL] = Tokens::T_POW_EQUAL;
- }
-
- public function startLexing($code) {
- $this->inObjectAccess = false;
-
- $preprocessedCode = $this->preprocessCode($code);
- parent::startLexing($preprocessedCode);
- if ($preprocessedCode !== $code) {
- $this->postprocessTokens();
- }
-
- // Set code property back to the original code, so __halt_compiler()
- // handling and (start|end)FilePos attributes use the correct offsets
- $this->code = $code;
- }
-
- /*
- * Replaces new features in the code by ~__EMU__{NAME}__{DATA}__~ sequences.
- * ~LABEL~ is never valid PHP code, that's why we can (to some degree) safely
- * use it here.
- * Later when preprocessing the tokens these sequences will either be replaced
- * by real tokens or replaced with their original content (e.g. if they occurred
- * inside a string, i.e. a place where they don't have a special meaning).
- */
- protected function preprocessCode($code) {
- if (version_compare(PHP_VERSION, self::PHP_7_0, '>=')) {
- return $code;
- }
-
- $code = str_replace('??', '~__EMU__COALESCE__~', $code);
- $code = str_replace('<=>', '~__EMU__SPACESHIP__~', $code);
- $code = preg_replace_callback('(yield[ \n\r\t]+from)', function($matches) {
- // Encoding $0 in order to preserve exact whitespace
- return '~__EMU__YIELDFROM__' . bin2hex($matches[0]) . '__~';
- }, $code);
-
- if (version_compare(PHP_VERSION, self::PHP_5_6, '>=')) {
- return $code;
- }
-
- $code = str_replace('...', '~__EMU__ELLIPSIS__~', $code);
- $code = preg_replace('((?<!/)\*\*=)', '~__EMU__POWEQUAL__~', $code);
- $code = preg_replace('((?<!/)\*\*(?!/))', '~__EMU__POW__~', $code);
-
- return $code;
- }
-
- /*
- * Replaces the ~__EMU__...~ sequences with real tokens or their original
- * value.
- */
- protected function postprocessTokens() {
- // we need to manually iterate and manage a count because we'll change
- // the tokens array on the way
- for ($i = 0, $c = count($this->tokens); $i < $c; ++$i) {
- // first check that the following tokens are of form ~LABEL~,
- // then match the __EMU__... sequence.
- if ('~' === $this->tokens[$i]
- && isset($this->tokens[$i + 2])
- && '~' === $this->tokens[$i + 2]
- && T_STRING === $this->tokens[$i + 1][0]
- && preg_match('(^__EMU__([A-Z]++)__(?:([A-Za-z0-9]++)__)?$)', $this->tokens[$i + 1][1], $matches)
- ) {
- if ('ELLIPSIS' === $matches[1]) {
- $replace = array(
- array(self::T_ELLIPSIS, '...', $this->tokens[$i + 1][2])
- );
- } else if ('POW' === $matches[1]) {
- $replace = array(
- array(self::T_POW, '**', $this->tokens[$i + 1][2])
- );
- } else if ('POWEQUAL' === $matches[1]) {
- $replace = array(
- array(self::T_POW_EQUAL, '**=', $this->tokens[$i + 1][2])
- );
- } else if ('COALESCE' === $matches[1]) {
- $replace = array(
- array(self::T_COALESCE, '??', $this->tokens[$i + 1][2])
- );
- } else if ('SPACESHIP' === $matches[1]) {
- $replace = array(
- array(self::T_SPACESHIP, '<=>', $this->tokens[$i + 1][2]),
- );
- } else if ('YIELDFROM' === $matches[1]) {
- $content = hex2bin($matches[2]);
- $replace = array(
- array(self::T_YIELD_FROM, $content, $this->tokens[$i + 1][2] - substr_count($content, "\n"))
- );
- } else {
- throw new \RuntimeException('Invalid __EMU__ sequence');
- }
-
- array_splice($this->tokens, $i, 3, $replace);
- $c -= 3 - count($replace);
- // for multichar tokens (e.g. strings) replace any ~__EMU__...~ sequences
- // in their content with the original character sequence
- } elseif (is_array($this->tokens[$i])
- && 0 !== strpos($this->tokens[$i][1], '__EMU__')
- ) {
- $this->tokens[$i][1] = preg_replace_callback(
- '(~__EMU__([A-Z]++)__(?:([A-Za-z0-9]++)__)?~)',
- array($this, 'restoreContentCallback'),
- $this->tokens[$i][1]
- );
- }
- }
- }
-
- /*
- * This method is a callback for restoring EMU sequences in
- * multichar tokens (like strings) to their original value.
- */
- public function restoreContentCallback(array $matches) {
- if ('ELLIPSIS' === $matches[1]) {
- return '...';
- } else if ('POW' === $matches[1]) {
- return '**';
- } else if ('POWEQUAL' === $matches[1]) {
- return '**=';
- } else if ('COALESCE' === $matches[1]) {
- return '??';
- } else if ('SPACESHIP' === $matches[1]) {
- return '<=>';
- } else if ('YIELDFROM' === $matches[1]) {
- return hex2bin($matches[2]);
- } else {
- return $matches[0];
- }
- }
-
- public function getNextToken(&$value = null, &$startAttributes = null, &$endAttributes = null) {
- $token = parent::getNextToken($value, $startAttributes, $endAttributes);
-
- // replace new keywords by their respective tokens. This is not done
- // if we currently are in an object access (e.g. in $obj->namespace
- // "namespace" stays a T_STRING tokens and isn't converted to T_NAMESPACE)
- if (Tokens::T_STRING === $token && !$this->inObjectAccess) {
- if (isset($this->newKeywords[strtolower($value)])) {
- return $this->newKeywords[strtolower($value)];
- }
- } else {
- // keep track of whether we currently are in an object access (after ->)
- $this->inObjectAccess = Tokens::T_OBJECT_OPERATOR === $token;
- }
-
- return $token;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node.php
deleted file mode 100644
index a28ccc19..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-interface Node
-{
- /**
- * Gets the type of the node.
- *
- * @return string Type of the node
- */
- public function getType();
-
- /**
- * Gets the names of the sub nodes.
- *
- * @return array Names of sub nodes
- */
- public function getSubNodeNames();
-
- /**
- * Gets line the node started in.
- *
- * @return int Line
- */
- public function getLine();
-
- /**
- * Sets line the node started in.
- *
- * @param int $line Line
- */
- public function setLine($line);
-
- /**
- * Gets the doc comment of the node.
- *
- * The doc comment has to be the last comment associated with the node.
- *
- * @return null|Comment\Doc Doc comment object or null
- */
- public function getDocComment();
-
- /**
- * Sets an attribute on a node.
- *
- * @param string $key
- * @param mixed $value
- */
- public function setAttribute($key, $value);
-
- /**
- * Returns whether an attribute exists.
- *
- * @param string $key
- *
- * @return bool
- */
- public function hasAttribute($key);
-
- /**
- * Returns the value of an attribute.
- *
- * @param string $key
- * @param mixed $default
- *
- * @return mixed
- */
- public function &getAttribute($key, $default = null);
-
- /**
- * Returns all attributes for the given node.
- *
- * @return array
- */
- public function getAttributes();
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php
deleted file mode 100644
index 08876694..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace PhpParser\Node;
-
-use PhpParser\NodeAbstract;
-
-class Arg extends NodeAbstract
-{
- /** @var Expr Value to pass */
- public $value;
- /** @var bool Whether to pass by ref */
- public $byRef;
- /** @var bool Whether to unpack the argument */
- public $unpack;
-
- /**
- * Constructs a function call argument node.
- *
- * @param Expr $value Value to pass
- * @param bool $byRef Whether to pass by ref
- * @param bool $unpack Whether to unpack the argument
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $value, $byRef = false, $unpack = false, array $attributes = array()) {
- parent::__construct($attributes);
- $this->value = $value;
- $this->byRef = $byRef;
- $this->unpack = $unpack;
- }
-
- public function getSubNodeNames() {
- return array('value', 'byRef', 'unpack');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Const_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Const_.php
deleted file mode 100644
index 26322d49..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Const_.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node;
-
-use PhpParser\NodeAbstract;
-
-class Const_ extends NodeAbstract
-{
- /** @var string Name */
- public $name;
- /** @var Expr Value */
- public $value;
-
- /**
- * Constructs a const node for use in class const and const statements.
- *
- * @param string $name Name
- * @param Expr $value Value
- * @param array $attributes Additional attributes
- */
- public function __construct($name, Expr $value, array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- $this->value = $value;
- }
-
- public function getSubNodeNames() {
- return array('name', 'value');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr.php
deleted file mode 100644
index 2dae5bfc..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node;
-
-use PhpParser\NodeAbstract;
-
-abstract class Expr extends NodeAbstract
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php
deleted file mode 100644
index b2e58f66..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class ArrayDimFetch extends Expr
-{
- /** @var Expr Variable */
- public $var;
- /** @var null|Expr Array index / dim */
- public $dim;
-
- /**
- * Constructs an array index fetch node.
- *
- * @param Expr $var Variable
- * @param null|Expr $dim Array index / dim
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, Expr $dim = null, array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- $this->dim = $dim;
- }
-
- public function getSubnodeNames() {
- return array('var', 'dim');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php
deleted file mode 100644
index de73ef46..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class ArrayItem extends Expr
-{
- /** @var null|Expr Key */
- public $key;
- /** @var Expr Value */
- public $value;
- /** @var bool Whether to assign by reference */
- public $byRef;
-
- /**
- * Constructs an array item node.
- *
- * @param Expr $value Value
- * @param null|Expr $key Key
- * @param bool $byRef Whether to assign by reference
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $value, Expr $key = null, $byRef = false, array $attributes = array()) {
- parent::__construct($attributes);
- $this->key = $key;
- $this->value = $value;
- $this->byRef = $byRef;
- }
-
- public function getSubNodeNames() {
- return array('key', 'value', 'byRef');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php
deleted file mode 100644
index 9151f27d..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Array_ extends Expr
-{
- // For use in "kind" attribute
- const KIND_LONG = 1; // array() syntax
- const KIND_SHORT = 2; // [] syntax
-
- /** @var ArrayItem[] Items */
- public $items;
-
- /**
- * Constructs an array node.
- *
- * @param ArrayItem[] $items Items of the array
- * @param array $attributes Additional attributes
- */
- public function __construct(array $items = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->items = $items;
- }
-
- public function getSubNodeNames() {
- return array('items');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php
deleted file mode 100644
index 1f280ff0..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Assign extends Expr
-{
- /** @var Expr Variable */
- public $var;
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs an assignment node.
- *
- * @param Expr $var Variable
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('var', 'expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php
deleted file mode 100644
index 83540a07..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-abstract class AssignOp extends Expr
-{
- /** @var Expr Variable */
- public $var;
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs a compound assignment operation node.
- *
- * @param Expr $var Variable
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('var', 'expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php
deleted file mode 100644
index 9e3ed822..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class BitwiseAnd extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseOr.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseOr.php
deleted file mode 100644
index a9fd4e9b..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseOr.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class BitwiseOr extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseXor.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseXor.php
deleted file mode 100644
index aabe5523..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseXor.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class BitwiseXor extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php
deleted file mode 100644
index 215445d2..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class Concat extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php
deleted file mode 100644
index 87893bbb..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class Div extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Minus.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Minus.php
deleted file mode 100644
index 32cad523..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Minus.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class Minus extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php
deleted file mode 100644
index a0a1571a..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class Mod extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mul.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mul.php
deleted file mode 100644
index 88c582b9..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mul.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class Mul extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php
deleted file mode 100644
index bd4d77e7..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class Plus extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php
deleted file mode 100644
index b5e5d98f..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class Pow extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftLeft.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftLeft.php
deleted file mode 100644
index 84b2d56b..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftLeft.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class ShiftLeft extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftRight.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftRight.php
deleted file mode 100644
index 0c8e237e..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftRight.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\AssignOp;
-
-use PhpParser\Node\Expr\AssignOp;
-
-class ShiftRight extends AssignOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php
deleted file mode 100644
index 7578df3f..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class AssignRef extends Expr
-{
- /** @var Expr Variable reference is assigned to */
- public $var;
- /** @var Expr Variable which is referenced */
- public $expr;
-
- /**
- * Constructs an assignment node.
- *
- * @param Expr $var Variable
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('var', 'expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php
deleted file mode 100644
index 6f87e235..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-abstract class BinaryOp extends Expr
-{
- /** @var Expr The left hand side expression */
- public $left;
- /** @var Expr The right hand side expression */
- public $right;
-
- /**
- * Constructs a bitwise and node.
- *
- * @param Expr $left The left hand side expression
- * @param Expr $right The right hand side expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $left, Expr $right, array $attributes = array()) {
- parent::__construct($attributes);
- $this->left = $left;
- $this->right = $right;
- }
-
- public function getSubNodeNames() {
- return array('left', 'right');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php
deleted file mode 100644
index bd6c5c1f..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class BitwiseAnd extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php
deleted file mode 100644
index aa0f1141..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class BitwiseOr extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseXor.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseXor.php
deleted file mode 100644
index ce951d0b..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseXor.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class BitwiseXor extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php
deleted file mode 100644
index 0671f33d..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class BooleanAnd extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php
deleted file mode 100644
index 22d743fb..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class BooleanOr extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php
deleted file mode 100644
index 55c2379e..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Coalesce extends BinaryOp
-{
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Concat.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Concat.php
deleted file mode 100644
index f65dfa55..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Concat.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Concat extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Div.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Div.php
deleted file mode 100644
index 78d7f44f..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Div.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Div extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Equal.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Equal.php
deleted file mode 100644
index d9cb204b..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Equal.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Equal extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Greater.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Greater.php
deleted file mode 100644
index 2f53a990..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Greater.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Greater extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php
deleted file mode 100644
index 9bd93a15..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class GreaterOrEqual extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php
deleted file mode 100644
index 9562680e..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Identical extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalAnd.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalAnd.php
deleted file mode 100644
index 5e8bae01..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalAnd.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class LogicalAnd extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalOr.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalOr.php
deleted file mode 100644
index da92f80e..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalOr.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class LogicalOr extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalXor.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalXor.php
deleted file mode 100644
index 5fa96523..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalXor.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class LogicalXor extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Minus.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Minus.php
deleted file mode 100644
index 4a3b1177..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Minus.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Minus extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php
deleted file mode 100644
index 0b106691..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Mod extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php
deleted file mode 100644
index 2338d0b1..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Mul extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php
deleted file mode 100644
index c205ee24..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class NotEqual extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php
deleted file mode 100644
index b7682d75..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class NotIdentical extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php
deleted file mode 100644
index 4025e63b..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Plus extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php
deleted file mode 100644
index 007b6cb9..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Pow extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftLeft.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftLeft.php
deleted file mode 100644
index 398ec0bc..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftLeft.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class ShiftLeft extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php
deleted file mode 100644
index 6f98db82..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class ShiftRight extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php
deleted file mode 100644
index ba2c28b8..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Smaller extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php
deleted file mode 100644
index ebb19111..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class SmallerOrEqual extends BinaryOp
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Spaceship.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Spaceship.php
deleted file mode 100644
index f6a97caf..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Spaceship.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\BinaryOp;
-
-use PhpParser\Node\Expr\BinaryOp;
-
-class Spaceship extends BinaryOp
-{
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php
deleted file mode 100644
index 1d922641..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class BitwiseNot extends Expr
-{
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs a bitwise not node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php
deleted file mode 100644
index 8f543b82..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class BooleanNot extends Expr
-{
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs a boolean not node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php
deleted file mode 100644
index bf850dc5..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-abstract class Cast extends Expr
-{
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs a cast node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php
deleted file mode 100644
index 08b3a384..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\Cast;
-
-use PhpParser\Node\Expr\Cast;
-
-class Array_ extends Cast
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php
deleted file mode 100644
index 4a1bd8fc..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\Cast;
-
-use PhpParser\Node\Expr\Cast;
-
-class Bool_ extends Cast
-{
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php
deleted file mode 100644
index eede472d..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\Cast;
-
-use PhpParser\Node\Expr\Cast;
-
-class Double extends Cast
-{
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Int_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Int_.php
deleted file mode 100644
index 02a73274..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Int_.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\Cast;
-
-use PhpParser\Node\Expr\Cast;
-
-class Int_ extends Cast
-{
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Object_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Object_.php
deleted file mode 100644
index 4e9d74fe..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Object_.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\Cast;
-
-use PhpParser\Node\Expr\Cast;
-
-class Object_ extends Cast
-{
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/String_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/String_.php
deleted file mode 100644
index 7c648db9..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/String_.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\Cast;
-
-use PhpParser\Node\Expr\Cast;
-
-class String_ extends Cast
-{
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php
deleted file mode 100644
index 5cfd3efb..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr\Cast;
-
-use PhpParser\Node\Expr\Cast;
-
-class Unset_ extends Cast
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php
deleted file mode 100644
index c0cc26f5..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Name;
-use PhpParser\Node\Expr;
-
-class ClassConstFetch extends Expr
-{
- /** @var Name|Expr Class name */
- public $class;
- /** @var string Constant name */
- public $name;
-
- /**
- * Constructs a class const fetch node.
- *
- * @param Name|Expr $class Class name
- * @param string $name Constant name
- * @param array $attributes Additional attributes
- */
- public function __construct($class, $name, array $attributes = array()) {
- parent::__construct($attributes);
- $this->class = $class;
- $this->name = $name;
- }
-
- public function getSubNodeNames() {
- return array('class', 'name');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php
deleted file mode 100644
index 198ec4d8..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Clone_ extends Expr
-{
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs a clone node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php
deleted file mode 100644
index 2686086e..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-use PhpParser\Node\FunctionLike;
-
-class Closure extends Expr implements FunctionLike
-{
- /** @var bool Whether the closure is static */
- public $static;
- /** @var bool Whether to return by reference */
- public $byRef;
- /** @var Node\Param[] Parameters */
- public $params;
- /** @var ClosureUse[] use()s */
- public $uses;
- /** @var null|string|Node\Name Return type */
- public $returnType;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs a lambda function node.
- *
- * @param array $subNodes Array of the following optional subnodes:
- * 'static' => false : Whether the closure is static
- * 'byRef' => false : Whether to return by reference
- * 'params' => array(): Parameters
- * 'uses' => array(): use()s
- * 'returnType' => null : Return type
- * 'stmts' => array(): Statements
- * @param array $attributes Additional attributes
- */
- public function __construct(array $subNodes = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->static = isset($subNodes['static']) ? $subNodes['static'] : false;
- $this->byRef = isset($subNodes['byRef']) ? $subNodes['byRef'] : false;
- $this->params = isset($subNodes['params']) ? $subNodes['params'] : array();
- $this->uses = isset($subNodes['uses']) ? $subNodes['uses'] : array();
- $this->returnType = isset($subNodes['returnType']) ? $subNodes['returnType'] : null;
- $this->stmts = isset($subNodes['stmts']) ? $subNodes['stmts'] : array();
- }
-
- public function getSubNodeNames() {
- return array('static', 'byRef', 'params', 'uses', 'returnType', 'stmts');
- }
-
- public function returnsByRef() {
- return $this->byRef;
- }
-
- public function getParams() {
- return $this->params;
- }
-
- public function getReturnType() {
- return $this->returnType;
- }
-
- public function getStmts() {
- return $this->stmts;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php
deleted file mode 100644
index f4d02023..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class ClosureUse extends Expr
-{
- /** @var string Name of variable */
- public $var;
- /** @var bool Whether to use by reference */
- public $byRef;
-
- /**
- * Constructs a closure use node.
- *
- * @param string $var Name of variable
- * @param bool $byRef Whether to use by reference
- * @param array $attributes Additional attributes
- */
- public function __construct($var, $byRef = false, array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- $this->byRef = $byRef;
- }
-
- public function getSubNodeNames() {
- return array('var', 'byRef');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.php
deleted file mode 100644
index 5f1a92d8..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Name;
-use PhpParser\Node\Expr;
-
-class ConstFetch extends Expr
-{
- /** @var Name Constant name */
- public $name;
-
- /**
- * Constructs a const fetch node.
- *
- * @param Name $name Constant name
- * @param array $attributes Additional attributes
- */
- public function __construct(Name $name, array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- }
-
- public function getSubNodeNames() {
- return array('name');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php
deleted file mode 100644
index 0c0509ef..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Empty_ extends Expr
-{
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs an empty() node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php
deleted file mode 100644
index 750c814c..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class ErrorSuppress extends Expr
-{
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs an error suppress node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php
deleted file mode 100644
index eadffd00..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Eval_ extends Expr
-{
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs an eval() node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php
deleted file mode 100644
index b0b94cf7..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Exit_ extends Expr
-{
- /* For use in "kind" attribute */
- const KIND_EXIT = 1;
- const KIND_DIE = 2;
-
- /** @var null|Expr Expression */
- public $expr;
-
- /**
- * Constructs an exit() node.
- *
- * @param null|Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr = null, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php
deleted file mode 100644
index 60d00507..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-
-class FuncCall extends Expr
-{
- /** @var Node\Name|Expr Function name */
- public $name;
- /** @var Node\Arg[] Arguments */
- public $args;
-
- /**
- * Constructs a function call node.
- *
- * @param Node\Name|Expr $name Function name
- * @param Node\Arg[] $args Arguments
- * @param array $attributes Additional attributes
- */
- public function __construct($name, array $args = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- $this->args = $args;
- }
-
- public function getSubNodeNames() {
- return array('name', 'args');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php
deleted file mode 100644
index b27f3af1..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Include_ extends Expr
-{
- const TYPE_INCLUDE = 1;
- const TYPE_INCLUDE_ONCE = 2;
- const TYPE_REQUIRE = 3;
- const TYPE_REQUIRE_ONCE = 4;
-
- /** @var Expr Expression */
- public $expr;
- /** @var int Type of include */
- public $type;
-
- /**
- * Constructs an include node.
- *
- * @param Expr $expr Expression
- * @param int $type Type of include
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, $type, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- $this->type = $type;
- }
-
- public function getSubNodeNames() {
- return array('expr', 'type');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php
deleted file mode 100644
index 3ef8ad11..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Name;
-use PhpParser\Node\Expr;
-
-class Instanceof_ extends Expr
-{
- /** @var Expr Expression */
- public $expr;
- /** @var Name|Expr Class name */
- public $class;
-
- /**
- * Constructs an instanceof check node.
- *
- * @param Expr $expr Expression
- * @param Name|Expr $class Class name
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, $class, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- $this->class = $class;
- }
-
- public function getSubNodeNames() {
- return array('expr', 'class');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php
deleted file mode 100644
index 4ec1d025..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Isset_ extends Expr
-{
- /** @var Expr[] Variables */
- public $vars;
-
- /**
- * Constructs an array node.
- *
- * @param Expr[] $vars Variables
- * @param array $attributes Additional attributes
- */
- public function __construct(array $vars, array $attributes = array()) {
- parent::__construct($attributes);
- $this->vars = $vars;
- }
-
- public function getSubNodeNames() {
- return array('vars');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php
deleted file mode 100644
index 28ba6121..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class List_ extends Expr
-{
- /** @var Expr[] List of variables to assign to */
- public $vars;
-
- /**
- * Constructs a list() destructuring node.
- *
- * @param Expr[] $vars List of variables to assign to
- * @param array $attributes Additional attributes
- */
- public function __construct(array $vars, array $attributes = array()) {
- parent::__construct($attributes);
- $this->vars = $vars;
- }
-
- public function getSubNodeNames() {
- return array('vars');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php
deleted file mode 100644
index a6cdd07c..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Arg;
-use PhpParser\Node\Expr;
-
-class MethodCall extends Expr
-{
- /** @var Expr Variable holding object */
- public $var;
- /** @var string|Expr Method name */
- public $name;
- /** @var Arg[] Arguments */
- public $args;
-
- /**
- * Constructs a function call node.
- *
- * @param Expr $var Variable holding object
- * @param string|Expr $name Method name
- * @param Arg[] $args Arguments
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, $name, array $args = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- $this->name = $name;
- $this->args = $args;
- }
-
- public function getSubNodeNames() {
- return array('var', 'name', 'args');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php
deleted file mode 100644
index a8c87794..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-
-class New_ extends Expr
-{
- /** @var Node\Name|Expr|Node\Stmt\Class_ Class name */
- public $class;
- /** @var Node\Arg[] Arguments */
- public $args;
-
- /**
- * Constructs a function call node.
- *
- * @param Node\Name|Expr|Node\Stmt\Class_ $class Class name (or class node for anonymous classes)
- * @param Node\Arg[] $args Arguments
- * @param array $attributes Additional attributes
- */
- public function __construct($class, array $args = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->class = $class;
- $this->args = $args;
- }
-
- public function getSubNodeNames() {
- return array('class', 'args');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php
deleted file mode 100644
index 06ce5470..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class PostDec extends Expr
-{
- /** @var Expr Variable */
- public $var;
-
- /**
- * Constructs a post decrement node.
- *
- * @param Expr $var Variable
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- }
-
- public function getSubNodeNames() {
- return array('var');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php
deleted file mode 100644
index 54865ba1..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class PostInc extends Expr
-{
- /** @var Expr Variable */
- public $var;
-
- /**
- * Constructs a post increment node.
- *
- * @param Expr $var Variable
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- }
-
- public function getSubNodeNames() {
- return array('var');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php
deleted file mode 100644
index db30f510..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class PreDec extends Expr
-{
- /** @var Expr Variable */
- public $var;
-
- /**
- * Constructs a pre decrement node.
- *
- * @param Expr $var Variable
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- }
-
- public function getSubNodeNames() {
- return array('var');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php
deleted file mode 100644
index 06356028..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class PreInc extends Expr
-{
- /** @var Expr Variable */
- public $var;
-
- /**
- * Constructs a pre increment node.
- *
- * @param Expr $var Variable
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- }
-
- public function getSubNodeNames() {
- return array('var');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php
deleted file mode 100644
index 0666ab84..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Print_ extends Expr
-{
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs an print() node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php
deleted file mode 100644
index adcf21ce..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class PropertyFetch extends Expr
-{
- /** @var Expr Variable holding object */
- public $var;
- /** @var string|Expr Property name */
- public $name;
-
- /**
- * Constructs a function call node.
- *
- * @param Expr $var Variable holding object
- * @param string|Expr $name Property name
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $var, $name, array $attributes = array()) {
- parent::__construct($attributes);
- $this->var = $var;
- $this->name = $name;
- }
-
- public function getSubNodeNames() {
- return array('var', 'name');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php
deleted file mode 100644
index 9516a32f..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class ShellExec extends Expr
-{
- /** @var array Encapsed string array */
- public $parts;
-
- /**
- * Constructs a shell exec (backtick) node.
- *
- * @param array $parts Encapsed string array
- * @param array $attributes Additional attributes
- */
- public function __construct(array $parts, array $attributes = array()) {
- parent::__construct($attributes);
- $this->parts = $parts;
- }
-
- public function getSubNodeNames() {
- return array('parts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php
deleted file mode 100644
index 5118f34a..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-
-class StaticCall extends Expr
-{
- /** @var Node\Name|Expr Class name */
- public $class;
- /** @var string|Expr Method name */
- public $name;
- /** @var Node\Arg[] Arguments */
- public $args;
-
- /**
- * Constructs a static method call node.
- *
- * @param Node\Name|Expr $class Class name
- * @param string|Expr $name Method name
- * @param Node\Arg[] $args Arguments
- * @param array $attributes Additional attributes
- */
- public function __construct($class, $name, array $args = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->class = $class;
- $this->name = $name;
- $this->args = $args;
- }
-
- public function getSubNodeNames() {
- return array('class', 'name', 'args');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php
deleted file mode 100644
index 5126bda5..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Name;
-use PhpParser\Node\Expr;
-
-class StaticPropertyFetch extends Expr
-{
- /** @var Name|Expr Class name */
- public $class;
- /** @var string|Expr Property name */
- public $name;
-
- /**
- * Constructs a static property fetch node.
- *
- * @param Name|Expr $class Class name
- * @param string|Expr $name Property name
- * @param array $attributes Additional attributes
- */
- public function __construct($class, $name, array $attributes = array()) {
- parent::__construct($attributes);
- $this->class = $class;
- $this->name = $name;
- }
-
- public function getSubNodeNames() {
- return array('class', 'name');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php
deleted file mode 100644
index 57301390..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Ternary extends Expr
-{
- /** @var Expr Condition */
- public $cond;
- /** @var null|Expr Expression for true */
- public $if;
- /** @var Expr Expression for false */
- public $else;
-
- /**
- * Constructs a ternary operator node.
- *
- * @param Expr $cond Condition
- * @param null|Expr $if Expression for true
- * @param Expr $else Expression for false
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $cond, $if, Expr $else, array $attributes = array()) {
- parent::__construct($attributes);
- $this->cond = $cond;
- $this->if = $if;
- $this->else = $else;
- }
-
- public function getSubNodeNames() {
- return array('cond', 'if', 'else');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php
deleted file mode 100644
index 94635d63..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class UnaryMinus extends Expr
-{
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs a unary minus node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php
deleted file mode 100644
index 65141200..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class UnaryPlus extends Expr
-{
- /** @var Expr Expression */
- public $expr;
-
- /**
- * Constructs a unary plus node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php
deleted file mode 100644
index 3ae3ecd9..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Variable extends Expr
-{
- /** @var string|Expr Name */
- public $name;
-
- /**
- * Constructs a variable node.
- *
- * @param string|Expr $name Name
- * @param array $attributes Additional attributes
- */
- public function __construct($name, array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- }
-
- public function getSubNodeNames() {
- return array('name');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php
deleted file mode 100644
index 993c82c2..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class YieldFrom extends Expr
-{
- /** @var Expr Expression to yield from */
- public $expr;
-
- /**
- * Constructs an "yield from" node.
- *
- * @param Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php
deleted file mode 100644
index f3ca88e0..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Expr;
-
-use PhpParser\Node\Expr;
-
-class Yield_ extends Expr
-{
- /** @var null|Expr Key expression */
- public $key;
- /** @var null|Expr Value expression */
- public $value;
-
- /**
- * Constructs a yield expression node.
- *
- * @param null|Expr $value Value expression
- * @param null|Expr $key Key expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Expr $value = null, Expr $key = null, array $attributes = array()) {
- parent::__construct($attributes);
- $this->key = $key;
- $this->value = $value;
- }
-
- public function getSubNodeNames() {
- return array('key', 'value');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php
deleted file mode 100644
index efe43333..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-namespace PhpParser\Node;
-
-use PhpParser\Node;
-
-interface FunctionLike extends Node
-{
- /**
- * Whether to return by reference
- *
- * @return bool
- */
- public function returnsByRef();
-
- /**
- * List of parameters
- *
- * @return Node\Param[]
- */
- public function getParams();
-
- /**
- * Get the declared return type or null
- *
- * @return null|string|Node\Name
- */
- public function getReturnType();
-
- /**
- * The function body
- *
- * @return Node\Stmt[]
- */
- public function getStmts();
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name.php
deleted file mode 100644
index ba6a20c9..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name.php
+++ /dev/null
@@ -1,220 +0,0 @@
-<?php
-
-namespace PhpParser\Node;
-
-use PhpParser\NodeAbstract;
-
-class Name extends NodeAbstract
-{
- /** @var string[] Parts of the name */
- public $parts;
-
- /**
- * Constructs a name node.
- *
- * @param string|array $parts Parts of the name (or name as string)
- * @param array $attributes Additional attributes
- */
- public function __construct($parts, array $attributes = array()) {
- if (!is_array($parts)) {
- $parts = explode('\\', $parts);
- }
-
- parent::__construct($attributes);
- $this->parts = $parts;
- }
-
- public function getSubNodeNames() {
- return array('parts');
- }
-
- /**
- * Gets the first part of the name, i.e. everything before the first namespace separator.
- *
- * @return string First part of the name
- */
- public function getFirst() {
- return $this->parts[0];
- }
-
- /**
- * Gets the last part of the name, i.e. everything after the last namespace separator.
- *
- * @return string Last part of the name
- */
- public function getLast() {
- return $this->parts[count($this->parts) - 1];
- }
-
- /**
- * Checks whether the name is unqualified. (E.g. Name)
- *
- * @return bool Whether the name is unqualified
- */
- public function isUnqualified() {
- return 1 == count($this->parts);
- }
-
- /**
- * Checks whether the name is qualified. (E.g. Name\Name)
- *
- * @return bool Whether the name is qualified
- */
- public function isQualified() {
- return 1 < count($this->parts);
- }
-
- /**
- * Checks whether the name is fully qualified. (E.g. \Name)
- *
- * @return bool Whether the name is fully qualified
- */
- public function isFullyQualified() {
- return false;
- }
-
- /**
- * Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name)
- *
- * @return bool Whether the name is relative
- */
- public function isRelative() {
- return false;
- }
-
- /**
- * Returns a string representation of the name by imploding the namespace parts with a separator.
- *
- * @param string $separator The separator to use (defaults to the namespace separator \)
- *
- * @return string String representation
- */
- public function toString($separator = '\\') {
- return implode($separator, $this->parts);
- }
-
- /**
- * Returns a string representation of the name by imploding the namespace parts with the
- * namespace separator.
- *
- * @return string String representation
- */
- public function __toString() {
- return implode('\\', $this->parts);
- }
-
- /**
- * Sets the whole name.
- *
- * @deprecated Create a new Name instead, or manually modify the $parts property
- *
- * @param string|array|self $name The name to set the whole name to
- */
- public function set($name) {
- $this->parts = self::prepareName($name);
- }
-
- /**
- * Prepends a name to this name.
- *
- * @deprecated Use Name::concat($name1, $name2) instead
- *
- * @param string|array|self $name Name to prepend
- */
- public function prepend($name) {
- $this->parts = array_merge(self::prepareName($name), $this->parts);
- }
-
- /**
- * Appends a name to this name.
- *
- * @deprecated Use Name::concat($name1, $name2) instead
- *
- * @param string|array|self $name Name to append
- */
- public function append($name) {
- $this->parts = array_merge($this->parts, self::prepareName($name));
- }
-
- /**
- * Sets the first part of the name.
- *
- * @deprecated Use concat($first, $name->slice(1)) instead
- *
- * @param string|array|self $name The name to set the first part to
- */
- public function setFirst($name) {
- array_splice($this->parts, 0, 1, self::prepareName($name));
- }
-
- /**
- * Sets the last part of the name.
- *
- * @param string|array|self $name The name to set the last part to
- */
- public function setLast($name) {
- array_splice($this->parts, -1, 1, self::prepareName($name));
- }
-
- /**
- * Gets a slice of a name (similar to array_slice).
- *
- * This method returns a new instance of the same type as the original and with the same
- * attributes.
- *
- * If the slice is empty, a Name with an empty parts array is returned. While this is
- * meaningless in itself, it works correctly in conjunction with concat().
- *
- * @param int $offset Offset to start the slice at
- *
- * @return static Sliced name
- */
- public function slice($offset) {
- // TODO negative offset and length
- if ($offset < 0 || $offset > count($this->parts)) {
- throw new \OutOfBoundsException(sprintf('Offset %d is out of bounds', $offset));
- }
-
- return new static(array_slice($this->parts, $offset), $this->attributes);
- }
-
- /**
- * Concatenate two names, yielding a new Name instance.
- *
- * The type of the generated instance depends on which class this method is called on, for
- * example Name\FullyQualified::concat() will yield a Name\FullyQualified instance.
- *
- * @param string|array|self $name1 The first name
- * @param string|array|self $name2 The second name
- * @param array $attributes Attributes to assign to concatenated name
- *
- * @return static Concatenated name
- */
- public static function concat($name1, $name2, array $attributes = []) {
- return new static(
- array_merge(self::prepareName($name1), self::prepareName($name2)), $attributes
- );
- }
-
- /**
- * Prepares a (string, array or Name node) name for use in name changing methods by converting
- * it to an array.
- *
- * @param string|array|self $name Name to prepare
- *
- * @return array Prepared name
- */
- private static function prepareName($name) {
- if (is_string($name)) {
- return explode('\\', $name);
- } elseif (is_array($name)) {
- return $name;
- } elseif ($name instanceof self) {
- return $name->parts;
- }
-
- throw new \InvalidArgumentException(
- 'When changing a name you need to pass either a string, an array or a Name node'
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php
deleted file mode 100644
index 97cc1113..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Name;
-
-class FullyQualified extends \PhpParser\Node\Name
-{
- /**
- * Checks whether the name is unqualified. (E.g. Name)
- *
- * @return bool Whether the name is unqualified
- */
- public function isUnqualified() {
- return false;
- }
-
- /**
- * Checks whether the name is qualified. (E.g. Name\Name)
- *
- * @return bool Whether the name is qualified
- */
- public function isQualified() {
- return false;
- }
-
- /**
- * Checks whether the name is fully qualified. (E.g. \Name)
- *
- * @return bool Whether the name is fully qualified
- */
- public function isFullyQualified() {
- return true;
- }
-
- /**
- * Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name)
- *
- * @return bool Whether the name is relative
- */
- public function isRelative() {
- return false;
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php
deleted file mode 100644
index 25676ce6..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Name;
-
-class Relative extends \PhpParser\Node\Name
-{
- /**
- * Checks whether the name is unqualified. (E.g. Name)
- *
- * @return bool Whether the name is unqualified
- */
- public function isUnqualified() {
- return false;
- }
-
- /**
- * Checks whether the name is qualified. (E.g. Name\Name)
- *
- * @return bool Whether the name is qualified
- */
- public function isQualified() {
- return false;
- }
-
- /**
- * Checks whether the name is fully qualified. (E.g. \Name)
- *
- * @return bool Whether the name is fully qualified
- */
- public function isFullyQualified() {
- return false;
- }
-
- /**
- * Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name)
- *
- * @return bool Whether the name is relative
- */
- public function isRelative() {
- return true;
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Param.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Param.php
deleted file mode 100644
index ada197b7..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Param.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-namespace PhpParser\Node;
-
-use PhpParser\Error;
-use PhpParser\NodeAbstract;
-
-class Param extends NodeAbstract
-{
- /** @var null|string|Name Typehint */
- public $type;
- /** @var bool Whether parameter is passed by reference */
- public $byRef;
- /** @var bool Whether this is a variadic argument */
- public $variadic;
- /** @var string Name */
- public $name;
- /** @var null|Expr Default value */
- public $default;
-
- /**
- * Constructs a parameter node.
- *
- * @param string $name Name
- * @param null|Expr $default Default value
- * @param null|string|Name $type Typehint
- * @param bool $byRef Whether is passed by reference
- * @param bool $variadic Whether this is a variadic argument
- * @param array $attributes Additional attributes
- */
- public function __construct($name, Expr $default = null, $type = null, $byRef = false, $variadic = false, array $attributes = array()) {
- parent::__construct($attributes);
- $this->type = $type;
- $this->byRef = $byRef;
- $this->variadic = $variadic;
- $this->name = $name;
- $this->default = $default;
-
- if ($variadic && null !== $default) {
- throw new Error('Variadic parameter cannot have a default value', $default->getAttributes());
- }
- }
-
- public function getSubNodeNames() {
- return array('type', 'byRef', 'variadic', 'name', 'default');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar.php
deleted file mode 100644
index 01177532..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-namespace PhpParser\Node;
-
-abstract class Scalar extends Expr
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php
deleted file mode 100644
index 84ef75d3..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar;
-
-use PhpParser\Node\Scalar;
-
-class DNumber extends Scalar
-{
- /** @var float Number value */
- public $value;
-
- /**
- * Constructs a float number scalar node.
- *
- * @param float $value Value of the number
- * @param array $attributes Additional attributes
- */
- public function __construct($value, array $attributes = array()) {
- parent::__construct($attributes);
- $this->value = $value;
- }
-
- public function getSubNodeNames() {
- return array('value');
- }
-
- /**
- * @internal
- *
- * Parses a DNUMBER token like PHP would.
- *
- * @param string $str A string number
- *
- * @return float The parsed number
- */
- public static function parse($str) {
- // if string contains any of .eE just cast it to float
- if (false !== strpbrk($str, '.eE')) {
- return (float) $str;
- }
-
- // otherwise it's an integer notation that overflowed into a float
- // if it starts with 0 it's one of the special integer notations
- if ('0' === $str[0]) {
- // hex
- if ('x' === $str[1] || 'X' === $str[1]) {
- return hexdec($str);
- }
-
- // bin
- if ('b' === $str[1] || 'B' === $str[1]) {
- return bindec($str);
- }
-
- // oct
- // substr($str, 0, strcspn($str, '89')) cuts the string at the first invalid digit (8 or 9)
- // so that only the digits before that are used
- return octdec(substr($str, 0, strcspn($str, '89')));
- }
-
- // dec
- return (float) $str;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php
deleted file mode 100644
index ec3e9712..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar;
-
-use PhpParser\Node\Scalar;
-
-class Encapsed extends Scalar
-{
- /** @var array Encaps list */
- public $parts;
-
- /**
- * Constructs an encapsed string node.
- *
- * @param array $parts Encaps list
- * @param array $attributes Additional attributes
- */
- public function __construct(array $parts, array $attributes = array()) {
- parent::__construct($attributes);
- $this->parts = $parts;
- }
-
- public function getSubNodeNames() {
- return array('parts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php
deleted file mode 100644
index 50cb1afe..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar;
-
-use PhpParser\Node\Scalar;
-
-class EncapsedStringPart extends Scalar
-{
- /** @var string String value */
- public $value;
-
- /**
- * Constructs a node representing a string part of an encapsed string.
- *
- * @param string $value String value
- * @param array $attributes Additional attributes
- */
- public function __construct($value, array $attributes = array()) {
- parent::__construct($attributes);
- $this->value = $value;
- }
-
- public function getSubNodeNames() {
- return array('value');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php
deleted file mode 100644
index 3559b982..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar;
-
-use PhpParser\Error;
-use PhpParser\Node\Scalar;
-
-class LNumber extends Scalar
-{
- /* For use in "kind" attribute */
- const KIND_BIN = 2;
- const KIND_OCT = 8;
- const KIND_DEC = 10;
- const KIND_HEX = 16;
-
- /** @var int Number value */
- public $value;
-
- /**
- * Constructs an integer number scalar node.
- *
- * @param int $value Value of the number
- * @param array $attributes Additional attributes
- */
- public function __construct($value, array $attributes = array()) {
- parent::__construct($attributes);
- $this->value = $value;
- }
-
- public function getSubNodeNames() {
- return array('value');
- }
-
- /**
- * Constructs an LNumber node from a string number literal.
- *
- * @param string $str String number literal (decimal, octal, hex or binary)
- * @param array $attributes Additional attributes
- * @param bool $allowInvalidOctal Whether to allow invalid octal numbers (PHP 5)
- *
- * @return LNumber The constructed LNumber, including kind attribute
- */
- public static function fromString($str, array $attributes = array(), $allowInvalidOctal = false) {
- if ('0' !== $str[0] || '0' === $str) {
- $attributes['kind'] = LNumber::KIND_DEC;
- return new LNumber((int) $str, $attributes);
- }
-
- if ('x' === $str[1] || 'X' === $str[1]) {
- $attributes['kind'] = LNumber::KIND_HEX;
- return new LNumber(hexdec($str), $attributes);
- }
-
- if ('b' === $str[1] || 'B' === $str[1]) {
- $attributes['kind'] = LNumber::KIND_BIN;
- return new LNumber(bindec($str), $attributes);
- }
-
- if (!$allowInvalidOctal && strpbrk($str, '89')) {
- throw new Error('Invalid numeric literal', $attributes);
- }
-
- // use intval instead of octdec to get proper cutting behavior with malformed numbers
- $attributes['kind'] = LNumber::KIND_OCT;
- return new LNumber(intval($str, 8), $attributes);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php
deleted file mode 100644
index a50d68f3..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar;
-
-use PhpParser\Node\Scalar;
-
-abstract class MagicConst extends Scalar
-{
- /**
- * Constructs a magic constant node.
- *
- * @param array $attributes Additional attributes
- */
- public function __construct(array $attributes = array()) {
- parent::__construct($attributes);
- }
-
- public function getSubNodeNames() {
- return array();
- }
-
- /**
- * Get name of magic constant.
- *
- * @return string Name of magic constant
- */
- abstract public function getName();
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php
deleted file mode 100644
index 3466b21a..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar\MagicConst;
-
-use PhpParser\Node\Scalar\MagicConst;
-
-class Class_ extends MagicConst
-{
- public function getName() {
- return '__CLASS__';
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php
deleted file mode 100644
index 9a86ae9c..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar\MagicConst;
-
-use PhpParser\Node\Scalar\MagicConst;
-
-class Dir extends MagicConst
-{
- public function getName() {
- return '__DIR__';
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php
deleted file mode 100644
index db293ef5..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar\MagicConst;
-
-use PhpParser\Node\Scalar\MagicConst;
-
-class File extends MagicConst
-{
- public function getName() {
- return '__FILE__';
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Function_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Function_.php
deleted file mode 100644
index 435a8aec..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Function_.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar\MagicConst;
-
-use PhpParser\Node\Scalar\MagicConst;
-
-class Function_ extends MagicConst
-{
- public function getName() {
- return '__FUNCTION__';
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php
deleted file mode 100644
index 35f89bc7..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar\MagicConst;
-
-use PhpParser\Node\Scalar\MagicConst;
-
-class Line extends MagicConst
-{
- public function getName() {
- return '__LINE__';
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php
deleted file mode 100644
index 7791b9d6..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar\MagicConst;
-
-use PhpParser\Node\Scalar\MagicConst;
-
-class Method extends MagicConst
-{
- public function getName() {
- return '__METHOD__';
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php
deleted file mode 100644
index 07f5affb..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar\MagicConst;
-
-use PhpParser\Node\Scalar\MagicConst;
-
-class Namespace_ extends MagicConst
-{
- public function getName() {
- return '__NAMESPACE__';
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php
deleted file mode 100644
index 1ac3f784..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar\MagicConst;
-
-use PhpParser\Node\Scalar\MagicConst;
-
-class Trait_ extends MagicConst
-{
- public function getName() {
- return '__TRAIT__';
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php
deleted file mode 100644
index d7bbf83e..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php
+++ /dev/null
@@ -1,153 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar;
-
-use PhpParser\Error;
-use PhpParser\Node\Scalar;
-
-class String_ extends Scalar
-{
- /* For use in "kind" attribute */
- const KIND_SINGLE_QUOTED = 1;
- const KIND_DOUBLE_QUOTED = 2;
- const KIND_HEREDOC = 3;
- const KIND_NOWDOC = 4;
-
- /** @var string String value */
- public $value;
-
- protected static $replacements = array(
- '\\' => '\\',
- '$' => '$',
- 'n' => "\n",
- 'r' => "\r",
- 't' => "\t",
- 'f' => "\f",
- 'v' => "\v",
- 'e' => "\x1B",
- );
-
- /**
- * Constructs a string scalar node.
- *
- * @param string $value Value of the string
- * @param array $attributes Additional attributes
- */
- public function __construct($value, array $attributes = array()) {
- parent::__construct($attributes);
- $this->value = $value;
- }
-
- public function getSubNodeNames() {
- return array('value');
- }
-
- /**
- * @internal
- *
- * Parses a string token.
- *
- * @param string $str String token content
- * @param bool $parseUnicodeEscape Whether to parse PHP 7 \u escapes
- *
- * @return string The parsed string
- */
- public static function parse($str, $parseUnicodeEscape = true) {
- $bLength = 0;
- if ('b' === $str[0] || 'B' === $str[0]) {
- $bLength = 1;
- }
-
- if ('\'' === $str[$bLength]) {
- return str_replace(
- array('\\\\', '\\\''),
- array( '\\', '\''),
- substr($str, $bLength + 1, -1)
- );
- } else {
- return self::parseEscapeSequences(
- substr($str, $bLength + 1, -1), '"', $parseUnicodeEscape
- );
- }
- }
-
- /**
- * @internal
- *
- * Parses escape sequences in strings (all string types apart from single quoted).
- *
- * @param string $str String without quotes
- * @param null|string $quote Quote type
- * @param bool $parseUnicodeEscape Whether to parse PHP 7 \u escapes
- *
- * @return string String with escape sequences parsed
- */
- public static function parseEscapeSequences($str, $quote, $parseUnicodeEscape = true) {
- if (null !== $quote) {
- $str = str_replace('\\' . $quote, $quote, $str);
- }
-
- $extra = '';
- if ($parseUnicodeEscape) {
- $extra = '|u\{([0-9a-fA-F]+)\}';
- }
-
- return preg_replace_callback(
- '~\\\\([\\\\$nrtfve]|[xX][0-9a-fA-F]{1,2}|[0-7]{1,3}' . $extra . ')~',
- function($matches) {
- $str = $matches[1];
-
- if (isset(self::$replacements[$str])) {
- return self::$replacements[$str];
- } elseif ('x' === $str[0] || 'X' === $str[0]) {
- return chr(hexdec($str));
- } elseif ('u' === $str[0]) {
- return self::codePointToUtf8(hexdec($matches[2]));
- } else {
- return chr(octdec($str));
- }
- },
- $str
- );
- }
-
- private static function codePointToUtf8($num) {
- if ($num <= 0x7F) {
- return chr($num);
- }
- if ($num <= 0x7FF) {
- return chr(($num>>6) + 0xC0) . chr(($num&0x3F) + 0x80);
- }
- if ($num <= 0xFFFF) {
- return chr(($num>>12) + 0xE0) . chr((($num>>6)&0x3F) + 0x80) . chr(($num&0x3F) + 0x80);
- }
- if ($num <= 0x1FFFFF) {
- return chr(($num>>18) + 0xF0) . chr((($num>>12)&0x3F) + 0x80)
- . chr((($num>>6)&0x3F) + 0x80) . chr(($num&0x3F) + 0x80);
- }
- throw new Error('Invalid UTF-8 codepoint escape sequence: Codepoint too large');
- }
-
- /**
- * @internal
- *
- * Parses a constant doc string.
- *
- * @param string $startToken Doc string start token content (<<<SMTHG)
- * @param string $str String token content
- * @param bool $parseUnicodeEscape Whether to parse PHP 7 \u escapes
- *
- * @return string Parsed string
- */
- public static function parseDocString($startToken, $str, $parseUnicodeEscape = true) {
- // strip last newline (thanks tokenizer for sticking it into the string!)
- $str = preg_replace('~(\r\n|\n|\r)\z~', '', $str);
-
- // nowdoc string
- if (false !== strpos($startToken, '\'')) {
- return $str;
- }
-
- return self::parseEscapeSequences($str, null, $parseUnicodeEscape);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt.php
deleted file mode 100644
index baa2f3e1..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-namespace PhpParser\Node;
-
-use PhpParser\NodeAbstract;
-
-abstract class Stmt extends NodeAbstract
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php
deleted file mode 100644
index c177c9a0..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Break_ extends Node\Stmt
-{
- /** @var null|Node\Expr Number of loops to break */
- public $num;
-
- /**
- * Constructs a break node.
- *
- * @param null|Node\Expr $num Number of loops to break
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Expr $num = null, array $attributes = array()) {
- parent::__construct($attributes);
- $this->num = $num;
- }
-
- public function getSubNodeNames() {
- return array('num');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php
deleted file mode 100644
index 03f892c7..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Case_ extends Node\Stmt
-{
- /** @var null|Node\Expr $cond Condition (null for default) */
- public $cond;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs a case node.
- *
- * @param null|Node\Expr $cond Condition (null for default)
- * @param Node[] $stmts Statements
- * @param array $attributes Additional attributes
- */
- public function __construct($cond, array $stmts = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->cond = $cond;
- $this->stmts = $stmts;
- }
-
- public function getSubNodeNames() {
- return array('cond', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php
deleted file mode 100644
index 2656afdd..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Catch_ extends Node\Stmt
-{
- /** @var Node\Name Class of exception */
- public $type;
- /** @var string Variable for exception */
- public $var;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs a catch node.
- *
- * @param Node\Name $type Class of exception
- * @param string $var Variable for exception
- * @param Node[] $stmts Statements
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Name $type, $var, array $stmts = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->type = $type;
- $this->var = $var;
- $this->stmts = $stmts;
- }
-
- public function getSubNodeNames() {
- return array('type', 'var', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php
deleted file mode 100644
index e8e2d6f1..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class ClassConst extends Node\Stmt
-{
- /** @var Node\Const_[] Constant declarations */
- public $consts;
-
- /**
- * Constructs a class const list node.
- *
- * @param Node\Const_[] $consts Constant declarations
- * @param array $attributes Additional attributes
- */
- public function __construct(array $consts, array $attributes = array()) {
- parent::__construct($attributes);
- $this->consts = $consts;
- }
-
- public function getSubNodeNames() {
- return array('consts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php
deleted file mode 100644
index f6831a61..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-abstract class ClassLike extends Node\Stmt {
- /** @var string Name */
- public $name;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Gets all methods defined directly in this class/interface/trait
- *
- * @return ClassMethod[]
- */
- public function getMethods() {
- $methods = array();
- foreach ($this->stmts as $stmt) {
- if ($stmt instanceof ClassMethod) {
- $methods[] = $stmt;
- }
- }
- return $methods;
- }
-
- /**
- * Gets method with the given name defined directly in this class/interface/trait.
- *
- * @param string $name Name of the method (compared case-insensitively)
- *
- * @return ClassMethod|null Method node or null if the method does not exist
- */
- public function getMethod($name) {
- $lowerName = strtolower($name);
- foreach ($this->stmts as $stmt) {
- if ($stmt instanceof ClassMethod && $lowerName === strtolower($stmt->name)) {
- return $stmt;
- }
- }
- return null;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php
deleted file mode 100644
index dfdd8aba..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-use PhpParser\Node\FunctionLike;
-use PhpParser\Error;
-
-class ClassMethod extends Node\Stmt implements FunctionLike
-{
- /** @var int Type */
- public $type;
- /** @var bool Whether to return by reference */
- public $byRef;
- /** @var string Name */
- public $name;
- /** @var Node\Param[] Parameters */
- public $params;
- /** @var null|string|Node\Name Return type */
- public $returnType;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs a class method node.
- *
- * @param string $name Name
- * @param array $subNodes Array of the following optional subnodes:
- * 'type' => MODIFIER_PUBLIC: Type
- * 'byRef' => false : Whether to return by reference
- * 'params' => array() : Parameters
- * 'returnType' => null : Return type
- * 'stmts' => array() : Statements
- * @param array $attributes Additional attributes
- */
- public function __construct($name, array $subNodes = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->type = isset($subNodes['type']) ? $subNodes['type'] : 0;
- $this->byRef = isset($subNodes['byRef']) ? $subNodes['byRef'] : false;
- $this->name = $name;
- $this->params = isset($subNodes['params']) ? $subNodes['params'] : array();
- $this->returnType = isset($subNodes['returnType']) ? $subNodes['returnType'] : null;
- $this->stmts = array_key_exists('stmts', $subNodes) ? $subNodes['stmts'] : array();
-
- if ($this->type & Class_::MODIFIER_STATIC) {
- switch (strtolower($this->name)) {
- case '__construct':
- throw new Error(sprintf('Constructor %s() cannot be static', $this->name));
- case '__destruct':
- throw new Error(sprintf('Destructor %s() cannot be static', $this->name));
- case '__clone':
- throw new Error(sprintf('Clone method %s() cannot be static', $this->name));
- }
- }
- }
-
- public function getSubNodeNames() {
- return array('type', 'byRef', 'name', 'params', 'returnType', 'stmts');
- }
-
- public function returnsByRef() {
- return $this->byRef;
- }
-
- public function getParams() {
- return $this->params;
- }
-
- public function getReturnType() {
- return $this->returnType;
- }
-
- public function getStmts() {
- return $this->stmts;
- }
-
- public function isPublic() {
- return ($this->type & Class_::MODIFIER_PUBLIC) !== 0
- || ($this->type & Class_::VISIBILITY_MODIFER_MASK) === 0;
- }
-
- public function isProtected() {
- return (bool) ($this->type & Class_::MODIFIER_PROTECTED);
- }
-
- public function isPrivate() {
- return (bool) ($this->type & Class_::MODIFIER_PRIVATE);
- }
-
- public function isAbstract() {
- return (bool) ($this->type & Class_::MODIFIER_ABSTRACT);
- }
-
- public function isFinal() {
- return (bool) ($this->type & Class_::MODIFIER_FINAL);
- }
-
- public function isStatic() {
- return (bool) ($this->type & Class_::MODIFIER_STATIC);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php
deleted file mode 100644
index 6ef093dc..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-use PhpParser\Error;
-
-class Class_ extends ClassLike
-{
- const MODIFIER_PUBLIC = 1;
- const MODIFIER_PROTECTED = 2;
- const MODIFIER_PRIVATE = 4;
- const MODIFIER_STATIC = 8;
- const MODIFIER_ABSTRACT = 16;
- const MODIFIER_FINAL = 32;
-
- const VISIBILITY_MODIFER_MASK = 7; // 1 | 2 | 4
-
- /** @var int Type */
- public $type;
- /** @var null|Node\Name Name of extended class */
- public $extends;
- /** @var Node\Name[] Names of implemented interfaces */
- public $implements;
-
- protected static $specialNames = array(
- 'self' => true,
- 'parent' => true,
- 'static' => true,
- );
-
- /**
- * Constructs a class node.
- *
- * @param string|null $name Name
- * @param array $subNodes Array of the following optional subnodes:
- * 'type' => 0 : Type
- * 'extends' => null : Name of extended class
- * 'implements' => array(): Names of implemented interfaces
- * 'stmts' => array(): Statements
- * @param array $attributes Additional attributes
- */
- public function __construct($name, array $subNodes = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->type = isset($subNodes['type']) ? $subNodes['type'] : 0;
- $this->name = $name;
- $this->extends = isset($subNodes['extends']) ? $subNodes['extends'] : null;
- $this->implements = isset($subNodes['implements']) ? $subNodes['implements'] : array();
- $this->stmts = isset($subNodes['stmts']) ? $subNodes['stmts'] : array();
-
- if (null !== $this->name && isset(self::$specialNames[strtolower($this->name)])) {
- throw new Error(sprintf('Cannot use \'%s\' as class name as it is reserved', $this->name));
- }
-
- if (isset(self::$specialNames[strtolower($this->extends)])) {
- throw new Error(
- sprintf('Cannot use \'%s\' as class name as it is reserved', $this->extends),
- $this->extends->getAttributes()
- );
- }
-
- foreach ($this->implements as $interface) {
- if (isset(self::$specialNames[strtolower($interface)])) {
- throw new Error(
- sprintf('Cannot use \'%s\' as interface name as it is reserved', $interface),
- $interface->getAttributes()
- );
- }
- }
- }
-
- public function getSubNodeNames() {
- return array('type', 'name', 'extends', 'implements', 'stmts');
- }
-
- public function isAbstract() {
- return (bool) ($this->type & self::MODIFIER_ABSTRACT);
- }
-
- public function isFinal() {
- return (bool) ($this->type & self::MODIFIER_FINAL);
- }
-
- public function isAnonymous() {
- return null === $this->name;
- }
-
- /**
- * @internal
- */
- public static function verifyModifier($a, $b) {
- if ($a & self::VISIBILITY_MODIFER_MASK && $b & self::VISIBILITY_MODIFER_MASK) {
- throw new Error('Multiple access type modifiers are not allowed');
- }
-
- if ($a & self::MODIFIER_ABSTRACT && $b & self::MODIFIER_ABSTRACT) {
- throw new Error('Multiple abstract modifiers are not allowed');
- }
-
- if ($a & self::MODIFIER_STATIC && $b & self::MODIFIER_STATIC) {
- throw new Error('Multiple static modifiers are not allowed');
- }
-
- if ($a & self::MODIFIER_FINAL && $b & self::MODIFIER_FINAL) {
- throw new Error('Multiple final modifiers are not allowed');
- }
-
- if ($a & 48 && $b & 48) {
- throw new Error('Cannot use the final modifier on an abstract class member');
- }
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php
deleted file mode 100644
index 8b2eecd5..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Const_ extends Node\Stmt
-{
- /** @var Node\Const_[] Constant declarations */
- public $consts;
-
- /**
- * Constructs a const list node.
- *
- * @param Node\Const_[] $consts Constant declarations
- * @param array $attributes Additional attributes
- */
- public function __construct(array $consts, array $attributes = array()) {
- parent::__construct($attributes);
- $this->consts = $consts;
- }
-
- public function getSubNodeNames() {
- return array('consts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php
deleted file mode 100644
index f78e19a2..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Continue_ extends Node\Stmt
-{
- /** @var null|Node\Expr Number of loops to continue */
- public $num;
-
- /**
- * Constructs a continue node.
- *
- * @param null|Node\Expr $num Number of loops to continue
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Expr $num = null, array $attributes = array()) {
- parent::__construct($attributes);
- $this->num = $num;
- }
-
- public function getSubNodeNames() {
- return array('num');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php
deleted file mode 100644
index 829dbaf2..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class DeclareDeclare extends Node\Stmt
-{
- /** @var string Key */
- public $key;
- /** @var Node\Expr Value */
- public $value;
-
- /**
- * Constructs a declare key=>value pair node.
- *
- * @param string $key Key
- * @param Node\Expr $value Value
- * @param array $attributes Additional attributes
- */
- public function __construct($key, Node\Expr $value, array $attributes = array()) {
- parent::__construct($attributes);
- $this->key = $key;
- $this->value = $value;
- }
-
- public function getSubNodeNames() {
- return array('key', 'value');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php
deleted file mode 100644
index 64b9efc3..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-class Declare_ extends Node\Stmt
-{
- /** @var DeclareDeclare[] List of declares */
- public $declares;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs a declare node.
- *
- * @param DeclareDeclare[] $declares List of declares
- * @param Node[]|null $stmts Statements
- * @param array $attributes Additional attributes
- */
- public function __construct(array $declares, array $stmts = null, array $attributes = array()) {
- parent::__construct($attributes);
- $this->declares = $declares;
- $this->stmts = $stmts;
- }
-
- public function getSubNodeNames() {
- return array('declares', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php
deleted file mode 100644
index dd4c6c84..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Do_ extends Node\Stmt
-{
- /** @var Node\Expr Condition */
- public $cond;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs a do while node.
- *
- * @param Node\Expr $cond Condition
- * @param Node[] $stmts Statements
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Expr $cond, array $stmts = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->cond = $cond;
- $this->stmts = $stmts;
- }
-
- public function getSubNodeNames() {
- return array('cond', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php
deleted file mode 100644
index 11e10707..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Echo_ extends Node\Stmt
-{
- /** @var Node\Expr[] Expressions */
- public $exprs;
-
- /**
- * Constructs an echo node.
- *
- * @param Node\Expr[] $exprs Expressions
- * @param array $attributes Additional attributes
- */
- public function __construct(array $exprs, array $attributes = array()) {
- parent::__construct($attributes);
- $this->exprs = $exprs;
- }
-
- public function getSubNodeNames() {
- return array('exprs');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php
deleted file mode 100644
index 608878f6..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class ElseIf_ extends Node\Stmt
-{
- /** @var Node\Expr Condition */
- public $cond;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs an elseif node.
- *
- * @param Node\Expr $cond Condition
- * @param Node[] $stmts Statements
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Expr $cond, array $stmts = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->cond = $cond;
- $this->stmts = $stmts;
- }
-
- public function getSubNodeNames() {
- return array('cond', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php
deleted file mode 100644
index c91a1484..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Else_ extends Node\Stmt
-{
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs an else node.
- *
- * @param Node[] $stmts Statements
- * @param array $attributes Additional attributes
- */
- public function __construct(array $stmts = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->stmts = $stmts;
- }
-
- public function getSubNodeNames() {
- return array('stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php
deleted file mode 100644
index 2ca88a33..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class For_ extends Node\Stmt
-{
- /** @var Node\Expr[] Init expressions */
- public $init;
- /** @var Node\Expr[] Loop conditions */
- public $cond;
- /** @var Node\Expr[] Loop expressions */
- public $loop;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs a for loop node.
- *
- * @param array $subNodes Array of the following optional subnodes:
- * 'init' => array(): Init expressions
- * 'cond' => array(): Loop conditions
- * 'loop' => array(): Loop expressions
- * 'stmts' => array(): Statements
- * @param array $attributes Additional attributes
- */
- public function __construct(array $subNodes = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->init = isset($subNodes['init']) ? $subNodes['init'] : array();
- $this->cond = isset($subNodes['cond']) ? $subNodes['cond'] : array();
- $this->loop = isset($subNodes['loop']) ? $subNodes['loop'] : array();
- $this->stmts = isset($subNodes['stmts']) ? $subNodes['stmts'] : array();
- }
-
- public function getSubNodeNames() {
- return array('init', 'cond', 'loop', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Foreach_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Foreach_.php
deleted file mode 100644
index d2c64320..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Foreach_.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Foreach_ extends Node\Stmt
-{
- /** @var Node\Expr Expression to iterate */
- public $expr;
- /** @var null|Node\Expr Variable to assign key to */
- public $keyVar;
- /** @var bool Whether to assign value by reference */
- public $byRef;
- /** @var Node\Expr Variable to assign value to */
- public $valueVar;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs a foreach node.
- *
- * @param Node\Expr $expr Expression to iterate
- * @param Node\Expr $valueVar Variable to assign value to
- * @param array $subNodes Array of the following optional subnodes:
- * 'keyVar' => null : Variable to assign key to
- * 'byRef' => false : Whether to assign value by reference
- * 'stmts' => array(): Statements
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Expr $expr, Node\Expr $valueVar, array $subNodes = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- $this->keyVar = isset($subNodes['keyVar']) ? $subNodes['keyVar'] : null;
- $this->byRef = isset($subNodes['byRef']) ? $subNodes['byRef'] : false;
- $this->valueVar = $valueVar;
- $this->stmts = isset($subNodes['stmts']) ? $subNodes['stmts'] : array();
- }
-
- public function getSubNodeNames() {
- return array('expr', 'keyVar', 'byRef', 'valueVar', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php
deleted file mode 100644
index 2df68e5b..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-use PhpParser\Node\FunctionLike;
-
-class Function_ extends Node\Stmt implements FunctionLike
-{
- /** @var bool Whether function returns by reference */
- public $byRef;
- /** @var string Name */
- public $name;
- /** @var Node\Param[] Parameters */
- public $params;
- /** @var null|string|Node\Name Return type */
- public $returnType;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs a function node.
- *
- * @param string $name Name
- * @param array $subNodes Array of the following optional subnodes:
- * 'byRef' => false : Whether to return by reference
- * 'params' => array(): Parameters
- * 'returnType' => null : Return type
- * 'stmts' => array(): Statements
- * @param array $attributes Additional attributes
- */
- public function __construct($name, array $subNodes = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->byRef = isset($subNodes['byRef']) ? $subNodes['byRef'] : false;
- $this->name = $name;
- $this->params = isset($subNodes['params']) ? $subNodes['params'] : array();
- $this->returnType = isset($subNodes['returnType']) ? $subNodes['returnType'] : null;
- $this->stmts = isset($subNodes['stmts']) ? $subNodes['stmts'] : array();
- }
-
- public function getSubNodeNames() {
- return array('byRef', 'name', 'params', 'returnType', 'stmts');
- }
-
- public function returnsByRef() {
- return $this->byRef;
- }
-
- public function getParams() {
- return $this->params;
- }
-
- public function getReturnType() {
- return $this->returnType;
- }
-
- public function getStmts() {
- return $this->stmts;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php
deleted file mode 100644
index 29fbc488..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Global_ extends Node\Stmt
-{
- /** @var Node\Expr[] Variables */
- public $vars;
-
- /**
- * Constructs a global variables list node.
- *
- * @param Node\Expr[] $vars Variables to unset
- * @param array $attributes Additional attributes
- */
- public function __construct(array $vars, array $attributes = array()) {
- parent::__construct($attributes);
- $this->vars = $vars;
- }
-
- public function getSubNodeNames() {
- return array('vars');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php
deleted file mode 100644
index b087fe02..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node\Stmt;
-
-class Goto_ extends Stmt
-{
- /** @var string Name of label to jump to */
- public $name;
-
- /**
- * Constructs a goto node.
- *
- * @param string $name Name of label to jump to
- * @param array $attributes Additional attributes
- */
- public function __construct($name, array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- }
-
- public function getSubNodeNames() {
- return array('name');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php
deleted file mode 100644
index d5f46d02..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node\Stmt;
-use PhpParser\Node\Name;
-
-class GroupUse extends Stmt
-{
- /** @var int Type of group use */
- public $type;
- /** @var Name Prefix for uses */
- public $prefix;
- /** @var UseUse[] Uses */
- public $uses;
-
- /**
- * Constructs a group use node.
- *
- * @param Name $prefix Prefix for uses
- * @param UseUse[] $uses Uses
- * @param int $type Type of group use
- * @param array $attributes Additional attributes
- */
- public function __construct(Name $prefix, array $uses, $type = Use_::TYPE_NORMAL, array $attributes = array()) {
- parent::__construct($attributes);
- $this->type = $type;
- $this->prefix = $prefix;
- $this->uses = $uses;
- }
-
- public function getSubNodeNames() {
- return array('type', 'prefix', 'uses');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php
deleted file mode 100644
index c33ec9f1..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node\Stmt;
-
-class HaltCompiler extends Stmt
-{
- /** @var string Remaining text after halt compiler statement. */
- public $remaining;
-
- /**
- * Constructs a __halt_compiler node.
- *
- * @param string $remaining Remaining text after halt compiler statement.
- * @param array $attributes Additional attributes
- */
- public function __construct($remaining, array $attributes = array()) {
- parent::__construct($attributes);
- $this->remaining = $remaining;
- }
-
- public function getSubNodeNames() {
- return array('remaining');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/If_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/If_.php
deleted file mode 100644
index 98bda356..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/If_.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class If_ extends Node\Stmt
-{
- /** @var Node\Expr Condition expression */
- public $cond;
- /** @var Node[] Statements */
- public $stmts;
- /** @var ElseIf_[] Elseif clauses */
- public $elseifs;
- /** @var null|Else_ Else clause */
- public $else;
-
- /**
- * Constructs an if node.
- *
- * @param Node\Expr $cond Condition
- * @param array $subNodes Array of the following optional subnodes:
- * 'stmts' => array(): Statements
- * 'elseifs' => array(): Elseif clauses
- * 'else' => null : Else clause
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Expr $cond, array $subNodes = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->cond = $cond;
- $this->stmts = isset($subNodes['stmts']) ? $subNodes['stmts'] : array();
- $this->elseifs = isset($subNodes['elseifs']) ? $subNodes['elseifs'] : array();
- $this->else = isset($subNodes['else']) ? $subNodes['else'] : null;
- }
-
- public function getSubNodeNames() {
- return array('cond', 'stmts', 'elseifs', 'else');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php
deleted file mode 100644
index accebe61..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node\Stmt;
-
-class InlineHTML extends Stmt
-{
- /** @var string String */
- public $value;
-
- /**
- * Constructs an inline HTML node.
- *
- * @param string $value String
- * @param array $attributes Additional attributes
- */
- public function __construct($value, array $attributes = array()) {
- parent::__construct($attributes);
- $this->value = $value;
- }
-
- public function getSubNodeNames() {
- return array('value');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Interface_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Interface_.php
deleted file mode 100644
index cb82480d..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Interface_.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-use PhpParser\Error;
-
-class Interface_ extends ClassLike
-{
- /** @var Node\Name[] Extended interfaces */
- public $extends;
-
- protected static $specialNames = array(
- 'self' => true,
- 'parent' => true,
- 'static' => true,
- );
-
- /**
- * Constructs a class node.
- *
- * @param string $name Name
- * @param array $subNodes Array of the following optional subnodes:
- * 'extends' => array(): Name of extended interfaces
- * 'stmts' => array(): Statements
- * @param array $attributes Additional attributes
- */
- public function __construct($name, array $subNodes = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- $this->extends = isset($subNodes['extends']) ? $subNodes['extends'] : array();
- $this->stmts = isset($subNodes['stmts']) ? $subNodes['stmts'] : array();
-
- if (isset(self::$specialNames[strtolower($this->name)])) {
- throw new Error(sprintf('Cannot use \'%s\' as class name as it is reserved', $this->name));
- }
-
- foreach ($this->extends as $interface) {
- if (isset(self::$specialNames[strtolower($interface)])) {
- throw new Error(
- sprintf('Cannot use \'%s\' as interface name as it is reserved', $interface),
- $interface->getAttributes()
- );
- }
- }
- }
-
- public function getSubNodeNames() {
- return array('name', 'extends', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php
deleted file mode 100644
index edd0ee9a..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node\Stmt;
-
-class Label extends Stmt
-{
- /** @var string Name */
- public $name;
-
- /**
- * Constructs a label node.
- *
- * @param string $name Name
- * @param array $attributes Additional attributes
- */
- public function __construct($name, array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- }
-
- public function getSubNodeNames() {
- return array('name');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php
deleted file mode 100644
index fa231214..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-use PhpParser\Error;
-
-class Namespace_ extends Node\Stmt
-{
- /** @var null|Node\Name Name */
- public $name;
- /** @var Node[] Statements */
- public $stmts;
-
- protected static $specialNames = array(
- 'self' => true,
- 'parent' => true,
- 'static' => true,
- );
-
- /**
- * Constructs a namespace node.
- *
- * @param null|Node\Name $name Name
- * @param null|Node[] $stmts Statements
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Name $name = null, $stmts = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- $this->stmts = $stmts;
-
- if (isset(self::$specialNames[strtolower($this->name)])) {
- throw new Error(
- sprintf('Cannot use \'%s\' as namespace name', $this->name),
- $this->name->getAttributes()
- );
- }
-
- if (null !== $this->stmts) {
- foreach ($this->stmts as $stmt) {
- if ($stmt instanceof self) {
- throw new Error('Namespace declarations cannot be nested', $stmt->getAttributes());
- }
- }
- }
- }
-
- public function getSubNodeNames() {
- return array('name', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php
deleted file mode 100644
index 270dd099..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-/** Nop/empty statement (;). */
-class Nop extends Node\Stmt
-{
- public function getSubNodeNames() {
- return array();
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php
deleted file mode 100644
index a206cc4c..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-use PhpParser\Error;
-
-class Property extends Node\Stmt
-{
- /** @var int Modifiers */
- public $type;
- /** @var PropertyProperty[] Properties */
- public $props;
-
- /**
- * Constructs a class property list node.
- *
- * @param int $type Modifiers
- * @param PropertyProperty[] $props Properties
- * @param array $attributes Additional attributes
- */
- public function __construct($type, array $props, array $attributes = array()) {
- if ($type & Class_::MODIFIER_ABSTRACT) {
- throw new Error('Properties cannot be declared abstract');
- }
-
- if ($type & Class_::MODIFIER_FINAL) {
- throw new Error('Properties cannot be declared final');
- }
-
- parent::__construct($attributes);
- $this->type = $type;
- $this->props = $props;
- }
-
- public function getSubNodeNames() {
- return array('type', 'props');
- }
-
- public function isPublic() {
- return ($this->type & Class_::MODIFIER_PUBLIC) !== 0
- || ($this->type & Class_::VISIBILITY_MODIFER_MASK) === 0;
- }
-
- public function isProtected() {
- return (bool) ($this->type & Class_::MODIFIER_PROTECTED);
- }
-
- public function isPrivate() {
- return (bool) ($this->type & Class_::MODIFIER_PRIVATE);
- }
-
- public function isStatic() {
- return (bool) ($this->type & Class_::MODIFIER_STATIC);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php
deleted file mode 100644
index b2d29dc7..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class PropertyProperty extends Node\Stmt
-{
- /** @var string Name */
- public $name;
- /** @var null|Node\Expr Default */
- public $default;
-
- /**
- * Constructs a class property node.
- *
- * @param string $name Name
- * @param null|Node\Expr $default Default value
- * @param array $attributes Additional attributes
- */
- public function __construct($name, Node\Expr $default = null, array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- $this->default = $default;
- }
-
- public function getSubNodeNames() {
- return array('name', 'default');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php
deleted file mode 100644
index b6428411..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Return_ extends Node\Stmt
-{
- /** @var null|Node\Expr Expression */
- public $expr;
-
- /**
- * Constructs a return node.
- *
- * @param null|Node\Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Expr $expr = null, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php
deleted file mode 100644
index 4bc5dd25..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class StaticVar extends Node\Stmt
-{
- /** @var string Name */
- public $name;
- /** @var null|Node\Expr Default value */
- public $default;
-
- /**
- * Constructs a static variable node.
- *
- * @param string $name Name
- * @param null|Node\Expr $default Default value
- * @param array $attributes Additional attributes
- */
- public function __construct($name, Node\Expr $default = null, array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- $this->default = $default;
- }
-
- public function getSubNodeNames() {
- return array('name', 'default');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php
deleted file mode 100644
index 37cc0b36..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node\Stmt;
-
-class Static_ extends Stmt
-{
- /** @var StaticVar[] Variable definitions */
- public $vars;
-
- /**
- * Constructs a static variables list node.
- *
- * @param StaticVar[] $vars Variable definitions
- * @param array $attributes Additional attributes
- */
- public function __construct(array $vars, array $attributes = array()) {
- parent::__construct($attributes);
- $this->vars = $vars;
- }
-
- public function getSubNodeNames() {
- return array('vars');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php
deleted file mode 100644
index 72d667b1..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Switch_ extends Node\Stmt
-{
- /** @var Node\Expr Condition */
- public $cond;
- /** @var Case_[] Case list */
- public $cases;
-
- /**
- * Constructs a case node.
- *
- * @param Node\Expr $cond Condition
- * @param Case_[] $cases Case list
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Expr $cond, array $cases, array $attributes = array()) {
- parent::__construct($attributes);
- $this->cond = $cond;
- $this->cases = $cases;
- }
-
- public function getSubNodeNames() {
- return array('cond', 'cases');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php
deleted file mode 100644
index f8ff6aa3..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Throw_ extends Node\Stmt
-{
- /** @var Node\Expr Expression */
- public $expr;
-
- /**
- * Constructs a throw node.
- *
- * @param Node\Expr $expr Expression
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Expr $expr, array $attributes = array()) {
- parent::__construct($attributes);
- $this->expr = $expr;
- }
-
- public function getSubNodeNames() {
- return array('expr');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php
deleted file mode 100644
index a29874be..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-
-class TraitUse extends Node\Stmt
-{
- /** @var Node\Name[] Traits */
- public $traits;
- /** @var TraitUseAdaptation[] Adaptations */
- public $adaptations;
-
- /**
- * Constructs a trait use node.
- *
- * @param Node\Name[] $traits Traits
- * @param TraitUseAdaptation[] $adaptations Adaptations
- * @param array $attributes Additional attributes
- */
- public function __construct(array $traits, array $adaptations = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->traits = $traits;
- $this->adaptations = $adaptations;
- }
-
- public function getSubNodeNames() {
- return array('traits', 'adaptations');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php
deleted file mode 100644
index c6038c8c..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-abstract class TraitUseAdaptation extends Node\Stmt
-{
- /** @var Node\Name Trait name */
- public $trait;
- /** @var string Method name */
- public $method;
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php
deleted file mode 100644
index e9b50654..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt\TraitUseAdaptation;
-
-use PhpParser\Node;
-
-class Alias extends Node\Stmt\TraitUseAdaptation
-{
- /** @var null|int New modifier */
- public $newModifier;
- /** @var null|string New name */
- public $newName;
-
- /**
- * Constructs a trait use precedence adaptation node.
- *
- * @param null|Node\Name $trait Trait name
- * @param string $method Method name
- * @param null|int $newModifier New modifier
- * @param null|string $newName New name
- * @param array $attributes Additional attributes
- */
- public function __construct($trait, $method, $newModifier, $newName, array $attributes = array()) {
- parent::__construct($attributes);
- $this->trait = $trait;
- $this->method = $method;
- $this->newModifier = $newModifier;
- $this->newName = $newName;
- }
-
- public function getSubNodeNames() {
- return array('trait', 'method', 'newModifier', 'newName');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php
deleted file mode 100644
index 1f6bc1f9..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt\TraitUseAdaptation;
-
-use PhpParser\Node;
-
-class Precedence extends Node\Stmt\TraitUseAdaptation
-{
- /** @var Node\Name[] Overwritten traits */
- public $insteadof;
-
- /**
- * Constructs a trait use precedence adaptation node.
- *
- * @param Node\Name $trait Trait name
- * @param string $method Method name
- * @param Node\Name[] $insteadof Overwritten traits
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Name $trait, $method, array $insteadof, array $attributes = array()) {
- parent::__construct($attributes);
- $this->trait = $trait;
- $this->method = $method;
- $this->insteadof = $insteadof;
- }
-
- public function getSubNodeNames() {
- return array('trait', 'method', 'insteadof');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php
deleted file mode 100644
index 356039f3..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Trait_ extends ClassLike
-{
- /**
- * Constructs a trait node.
- *
- * @param string $name Name
- * @param Node[] $stmts Statements
- * @param array $attributes Additional attributes
- */
- public function __construct($name, array $stmts = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->name = $name;
- $this->stmts = $stmts;
- }
-
- public function getSubNodeNames() {
- return array('name', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php
deleted file mode 100644
index f6d2c84e..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-use PhpParser\Error;
-
-class TryCatch extends Node\Stmt
-{
- /** @var Node[] Statements */
- public $stmts;
- /** @var Catch_[] Catches */
- public $catches;
- /** @var null|Node[] Finally statements */
- public $finallyStmts;
-
- /**
- * Constructs a try catch node.
- *
- * @param Node[] $stmts Statements
- * @param Catch_[] $catches Catches
- * @param null|Node[] $finallyStmts Finally statements (null means no finally clause)
- * @param array|null $attributes Additional attributes
- */
- public function __construct(array $stmts, array $catches, array $finallyStmts = null, array $attributes = array()) {
- if (empty($catches) && null === $finallyStmts) {
- throw new Error('Cannot use try without catch or finally');
- }
-
- parent::__construct($attributes);
- $this->stmts = $stmts;
- $this->catches = $catches;
- $this->finallyStmts = $finallyStmts;
- }
-
- public function getSubNodeNames() {
- return array('stmts', 'catches', 'finallyStmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php
deleted file mode 100644
index 0f00fe94..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class Unset_ extends Node\Stmt
-{
- /** @var Node\Expr[] Variables to unset */
- public $vars;
-
- /**
- * Constructs an unset node.
- *
- * @param Node\Expr[] $vars Variables to unset
- * @param array $attributes Additional attributes
- */
- public function __construct(array $vars, array $attributes = array()) {
- parent::__construct($attributes);
- $this->vars = $vars;
- }
-
- public function getSubNodeNames() {
- return array('vars');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php
deleted file mode 100644
index 2508f182..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-use PhpParser\Error;
-
-class UseUse extends Node\Stmt
-{
- /** @var int One of the Stmt\Use_::TYPE_* constants. Will only differ from TYPE_UNKNOWN for mixed group uses */
- public $type;
- /** @var Node\Name Namespace, class, function or constant to alias */
- public $name;
- /** @var string Alias */
- public $alias;
-
- /**
- * Constructs an alias (use) node.
- *
- * @param Node\Name $name Namespace/Class to alias
- * @param null|string $alias Alias
- * @param int $type Type of the use element (for mixed group use declarations only)
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Name $name, $alias = null, $type = Use_::TYPE_UNKNOWN, array $attributes = array()) {
- if (null === $alias) {
- $alias = $name->getLast();
- }
-
- if ('self' == strtolower($alias) || 'parent' == strtolower($alias)) {
- throw new Error(sprintf(
- 'Cannot use %s as %s because \'%2$s\' is a special class name',
- $name, $alias
- ));
- }
-
- parent::__construct($attributes);
- $this->type = $type;
- $this->name = $name;
- $this->alias = $alias;
- }
-
- public function getSubNodeNames() {
- return array('type', 'name', 'alias');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php
deleted file mode 100644
index 6c89ebb1..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node\Stmt;
-
-class Use_ extends Stmt
-{
- /**
- * Unknown type. Both Stmt\Use_ / Stmt\GroupUse and Stmt\UseUse have a $type property, one of them will always be
- * TYPE_UNKNOWN while the other has one of the three other possible types. For normal use statements the type on the
- * Stmt\UseUse is unknown. It's only the other way around for mixed group use declarations.
- */
- const TYPE_UNKNOWN = 0;
- /** Class or namespace import */
- const TYPE_NORMAL = 1;
- /** Function import */
- const TYPE_FUNCTION = 2;
- /** Constant import */
- const TYPE_CONSTANT = 3;
-
- /** @var int Type of alias */
- public $type;
- /** @var UseUse[] Aliases */
- public $uses;
-
- /**
- * Constructs an alias (use) list node.
- *
- * @param UseUse[] $uses Aliases
- * @param int $type Type of alias
- * @param array $attributes Additional attributes
- */
- public function __construct(array $uses, $type = self::TYPE_NORMAL, array $attributes = array()) {
- parent::__construct($attributes);
- $this->type = $type;
- $this->uses = $uses;
- }
-
- public function getSubNodeNames() {
- return array('type', 'uses');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php
deleted file mode 100644
index afad1b25..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class While_ extends Node\Stmt
-{
- /** @var Node\Expr Condition */
- public $cond;
- /** @var Node[] Statements */
- public $stmts;
-
- /**
- * Constructs a while node.
- *
- * @param Node\Expr $cond Condition
- * @param Node[] $stmts Statements
- * @param array $attributes Additional attributes
- */
- public function __construct(Node\Expr $cond, array $stmts = array(), array $attributes = array()) {
- parent::__construct($attributes);
- $this->cond = $cond;
- $this->stmts = $stmts;
- }
-
- public function getSubNodeNames() {
- return array('cond', 'stmts');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php
deleted file mode 100644
index ab09bf99..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-abstract class NodeAbstract implements Node
-{
- protected $attributes;
-
- /**
- * Creates a Node.
- *
- * @param array $attributes Array of attributes
- */
- public function __construct(array $attributes = array()) {
- $this->attributes = $attributes;
- }
-
- /**
- * Gets the type of the node.
- *
- * @return string Type of the node
- */
- public function getType() {
- return strtr(substr(rtrim(get_class($this), '_'), 15), '\\', '_');
- }
-
- /**
- * Gets line the node started in.
- *
- * @return int Line
- */
- public function getLine() {
- return $this->getAttribute('startLine', -1);
- }
-
- /**
- * Sets line the node started in.
- *
- * @param int $line Line
- */
- public function setLine($line) {
- $this->setAttribute('startLine', (int) $line);
- }
-
- /**
- * Gets the doc comment of the node.
- *
- * The doc comment has to be the last comment associated with the node.
- *
- * @return null|Comment\Doc Doc comment object or null
- */
- public function getDocComment() {
- $comments = $this->getAttribute('comments');
- if (!$comments) {
- return null;
- }
-
- $lastComment = $comments[count($comments) - 1];
- if (!$lastComment instanceof Comment\Doc) {
- return null;
- }
-
- return $lastComment;
- }
-
- public function setAttribute($key, $value) {
- $this->attributes[$key] = $value;
- }
-
- public function hasAttribute($key) {
- return array_key_exists($key, $this->attributes);
- }
-
- public function &getAttribute($key, $default = null) {
- if (!array_key_exists($key, $this->attributes)) {
- return $default;
- } else {
- return $this->attributes[$key];
- }
- }
-
- public function getAttributes() {
- return $this->attributes;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeDumper.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeDumper.php
deleted file mode 100644
index b931adaa..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeDumper.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-class NodeDumper
-{
- private $dumpComments;
-
- /**
- * Constructs a NodeDumper.
- *
- * @param array $options Boolean option 'dumpComments' controls whether comments should be
- * dumped
- */
- public function __construct(array $options = []) {
- $this->dumpComments = !empty($options['dumpComments']);
- }
-
- /**
- * Dumps a node or array.
- *
- * @param array|Node $node Node or array to dump
- *
- * @return string Dumped value
- */
- public function dump($node) {
- if ($node instanceof Node) {
- $r = $node->getType() . '(';
-
- foreach ($node->getSubNodeNames() as $key) {
- $r .= "\n " . $key . ': ';
-
- $value = $node->$key;
- if (null === $value) {
- $r .= 'null';
- } elseif (false === $value) {
- $r .= 'false';
- } elseif (true === $value) {
- $r .= 'true';
- } elseif (is_scalar($value)) {
- $r .= $value;
- } else {
- $r .= str_replace("\n", "\n ", $this->dump($value));
- }
- }
-
- if ($this->dumpComments && $comments = $node->getAttribute('comments')) {
- $r .= "\n comments: " . str_replace("\n", "\n ", $this->dump($comments));
- }
- } elseif (is_array($node)) {
- $r = 'array(';
-
- foreach ($node as $key => $value) {
- $r .= "\n " . $key . ': ';
-
- if (null === $value) {
- $r .= 'null';
- } elseif (false === $value) {
- $r .= 'false';
- } elseif (true === $value) {
- $r .= 'true';
- } elseif (is_scalar($value)) {
- $r .= $value;
- } else {
- $r .= str_replace("\n", "\n ", $this->dump($value));
- }
- }
- } elseif ($node instanceof Comment) {
- return $node->getReformattedText();
- } else {
- throw new \InvalidArgumentException('Can only dump nodes and arrays.');
- }
-
- return $r . "\n)";
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php
deleted file mode 100644
index 1523e312..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php
+++ /dev/null
@@ -1,162 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-class NodeTraverser implements NodeTraverserInterface
-{
- /**
- * @var NodeVisitor[] Visitors
- */
- protected $visitors;
-
- /**
- * @var bool
- */
- private $cloneNodes;
-
- /**
- * Constructs a node traverser.
- *
- * @param bool $cloneNodes Should the traverser clone the nodes when traversing the AST
- */
- public function __construct($cloneNodes = false) {
- $this->visitors = array();
- $this->cloneNodes = $cloneNodes;
- }
-
- /**
- * Adds a visitor.
- *
- * @param NodeVisitor $visitor Visitor to add
- */
- public function addVisitor(NodeVisitor $visitor) {
- $this->visitors[] = $visitor;
- }
-
- /**
- * Removes an added visitor.
- *
- * @param NodeVisitor $visitor
- */
- public function removeVisitor(NodeVisitor $visitor) {
- foreach ($this->visitors as $index => $storedVisitor) {
- if ($storedVisitor === $visitor) {
- unset($this->visitors[$index]);
- break;
- }
- }
- }
-
- /**
- * Traverses an array of nodes using the registered visitors.
- *
- * @param Node[] $nodes Array of nodes
- *
- * @return Node[] Traversed array of nodes
- */
- public function traverse(array $nodes) {
- foreach ($this->visitors as $visitor) {
- if (null !== $return = $visitor->beforeTraverse($nodes)) {
- $nodes = $return;
- }
- }
-
- $nodes = $this->traverseArray($nodes);
-
- foreach ($this->visitors as $visitor) {
- if (null !== $return = $visitor->afterTraverse($nodes)) {
- $nodes = $return;
- }
- }
-
- return $nodes;
- }
-
- protected function traverseNode(Node $node) {
- if ($this->cloneNodes) {
- $node = clone $node;
- }
-
- foreach ($node->getSubNodeNames() as $name) {
- $subNode =& $node->$name;
-
- if (is_array($subNode)) {
- $subNode = $this->traverseArray($subNode);
- } elseif ($subNode instanceof Node) {
- $traverseChildren = true;
- foreach ($this->visitors as $visitor) {
- $return = $visitor->enterNode($subNode);
- if (self::DONT_TRAVERSE_CHILDREN === $return) {
- $traverseChildren = false;
- } else if (null !== $return) {
- $subNode = $return;
- }
- }
-
- if ($traverseChildren) {
- $subNode = $this->traverseNode($subNode);
- }
-
- foreach ($this->visitors as $visitor) {
- if (null !== $return = $visitor->leaveNode($subNode)) {
- if (is_array($return)) {
- throw new \LogicException(
- 'leaveNode() may only return an array ' .
- 'if the parent structure is an array'
- );
- }
- $subNode = $return;
- }
- }
- }
- }
-
- return $node;
- }
-
- protected function traverseArray(array $nodes) {
- $doNodes = array();
-
- foreach ($nodes as $i => &$node) {
- if (is_array($node)) {
- $node = $this->traverseArray($node);
- } elseif ($node instanceof Node) {
- $traverseChildren = true;
- foreach ($this->visitors as $visitor) {
- $return = $visitor->enterNode($node);
- if (self::DONT_TRAVERSE_CHILDREN === $return) {
- $traverseChildren = false;
- } else if (null !== $return) {
- $node = $return;
- }
- }
-
- if ($traverseChildren) {
- $node = $this->traverseNode($node);
- }
-
- foreach ($this->visitors as $visitor) {
- $return = $visitor->leaveNode($node);
-
- if (self::REMOVE_NODE === $return) {
- $doNodes[] = array($i, array());
- break;
- } elseif (is_array($return)) {
- $doNodes[] = array($i, $return);
- break;
- } elseif (null !== $return) {
- $node = $return;
- }
- }
- }
- }
-
- if (!empty($doNodes)) {
- while (list($i, $replace) = array_pop($doNodes)) {
- array_splice($nodes, $i, 1, $replace);
- }
- }
-
- return $nodes;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php
deleted file mode 100644
index 0752de28..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-interface NodeTraverserInterface
-{
- /**
- * If NodeVisitor::enterNode() returns DONT_TRAVERSE_CHILDREN, child nodes
- * of the current node will not be traversed for any visitors.
- *
- * For subsequent visitors enterNode() will still be called on the current
- * node and leaveNode() will also be invoked for the current node.
- */
- const DONT_TRAVERSE_CHILDREN = 1;
-
- /**
- * If NodeVisitor::leaveNode() returns REMOVE_NODE for a node that occurs
- * in an array, it will be removed from the array.
- *
- * For subsequent visitors leaveNode() will still be invoked for the
- * removed node.
- */
- const REMOVE_NODE = false;
-
- /**
- * Adds a visitor.
- *
- * @param NodeVisitor $visitor Visitor to add
- */
- function addVisitor(NodeVisitor $visitor);
-
- /**
- * Removes an added visitor.
- *
- * @param NodeVisitor $visitor
- */
- function removeVisitor(NodeVisitor $visitor);
-
- /**
- * Traverses an array of nodes using the registered visitors.
- *
- * @param Node[] $nodes Array of nodes
- *
- * @return Node[] Traversed array of nodes
- */
- function traverse(array $nodes);
-}
-
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor.php
deleted file mode 100644
index 706a5d23..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-interface NodeVisitor
-{
- /**
- * Called once before traversal.
- *
- * Return value semantics:
- * * null: $nodes stays as-is
- * * otherwise: $nodes is set to the return value
- *
- * @param Node[] $nodes Array of nodes
- *
- * @return null|Node[] Array of nodes
- */
- public function beforeTraverse(array $nodes);
-
- /**
- * Called when entering a node.
- *
- * Return value semantics:
- * * null: $node stays as-is
- * * otherwise: $node is set to the return value
- *
- * @param Node $node Node
- *
- * @return null|Node Node
- */
- public function enterNode(Node $node);
-
- /**
- * Called when leaving a node.
- *
- * Return value semantics:
- * * null: $node stays as-is
- * * false: $node is removed from the parent array
- * * array: The return value is merged into the parent array (at the position of the $node)
- * * otherwise: $node is set to the return value
- *
- * @param Node $node Node
- *
- * @return null|Node|false|Node[] Node
- */
- public function leaveNode(Node $node);
-
- /**
- * Called once after traversal.
- *
- * Return value semantics:
- * * null: $nodes stays as-is
- * * otherwise: $nodes is set to the return value
- *
- * @param Node[] $nodes Array of nodes
- *
- * @return null|Node[] Array of nodes
- */
- public function afterTraverse(array $nodes);
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php
deleted file mode 100644
index b381d9f0..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php
+++ /dev/null
@@ -1,233 +0,0 @@
-<?php
-
-namespace PhpParser\NodeVisitor;
-
-use PhpParser\NodeVisitorAbstract;
-use PhpParser\Error;
-use PhpParser\Node;
-use PhpParser\Node\Name;
-use PhpParser\Node\Name\FullyQualified;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Stmt;
-
-class NameResolver extends NodeVisitorAbstract
-{
- /** @var null|Name Current namespace */
- protected $namespace;
-
- /** @var array Map of format [aliasType => [aliasName => originalName]] */
- protected $aliases;
-
- public function beforeTraverse(array $nodes) {
- $this->resetState();
- }
-
- public function enterNode(Node $node) {
- if ($node instanceof Stmt\Namespace_) {
- $this->resetState($node->name);
- } elseif ($node instanceof Stmt\Use_) {
- foreach ($node->uses as $use) {
- $this->addAlias($use, $node->type, null);
- }
- } elseif ($node instanceof Stmt\GroupUse) {
- foreach ($node->uses as $use) {
- $this->addAlias($use, $node->type, $node->prefix);
- }
- } elseif ($node instanceof Stmt\Class_) {
- if (null !== $node->extends) {
- $node->extends = $this->resolveClassName($node->extends);
- }
-
- foreach ($node->implements as &$interface) {
- $interface = $this->resolveClassName($interface);
- }
-
- if (null !== $node->name) {
- $this->addNamespacedName($node);
- }
- } elseif ($node instanceof Stmt\Interface_) {
- foreach ($node->extends as &$interface) {
- $interface = $this->resolveClassName($interface);
- }
-
- $this->addNamespacedName($node);
- } elseif ($node instanceof Stmt\Trait_) {
- $this->addNamespacedName($node);
- } elseif ($node instanceof Stmt\Function_) {
- $this->addNamespacedName($node);
- $this->resolveSignature($node);
- } elseif ($node instanceof Stmt\ClassMethod
- || $node instanceof Expr\Closure
- ) {
- $this->resolveSignature($node);
- } elseif ($node instanceof Stmt\Const_) {
- foreach ($node->consts as $const) {
- $this->addNamespacedName($const);
- }
- } elseif ($node instanceof Expr\StaticCall
- || $node instanceof Expr\StaticPropertyFetch
- || $node instanceof Expr\ClassConstFetch
- || $node instanceof Expr\New_
- || $node instanceof Expr\Instanceof_
- ) {
- if ($node->class instanceof Name) {
- $node->class = $this->resolveClassName($node->class);
- }
- } elseif ($node instanceof Stmt\Catch_) {
- $node->type = $this->resolveClassName($node->type);
- } elseif ($node instanceof Expr\FuncCall) {
- if ($node->name instanceof Name) {
- $node->name = $this->resolveOtherName($node->name, Stmt\Use_::TYPE_FUNCTION);
- }
- } elseif ($node instanceof Expr\ConstFetch) {
- $node->name = $this->resolveOtherName($node->name, Stmt\Use_::TYPE_CONSTANT);
- } elseif ($node instanceof Stmt\TraitUse) {
- foreach ($node->traits as &$trait) {
- $trait = $this->resolveClassName($trait);
- }
-
- foreach ($node->adaptations as $adaptation) {
- if (null !== $adaptation->trait) {
- $adaptation->trait = $this->resolveClassName($adaptation->trait);
- }
-
- if ($adaptation instanceof Stmt\TraitUseAdaptation\Precedence) {
- foreach ($adaptation->insteadof as &$insteadof) {
- $insteadof = $this->resolveClassName($insteadof);
- }
- }
- }
-
- }
- }
-
- protected function resetState(Name $namespace = null) {
- $this->namespace = $namespace;
- $this->aliases = array(
- Stmt\Use_::TYPE_NORMAL => array(),
- Stmt\Use_::TYPE_FUNCTION => array(),
- Stmt\Use_::TYPE_CONSTANT => array(),
- );
- }
-
- protected function addAlias(Stmt\UseUse $use, $type, Name $prefix = null) {
- // Add prefix for group uses
- $name = $prefix ? Name::concat($prefix, $use->name) : $use->name;
- // Type is determined either by individual element or whole use declaration
- $type |= $use->type;
-
- // Constant names are case sensitive, everything else case insensitive
- if ($type === Stmt\Use_::TYPE_CONSTANT) {
- $aliasName = $use->alias;
- } else {
- $aliasName = strtolower($use->alias);
- }
-
- if (isset($this->aliases[$type][$aliasName])) {
- $typeStringMap = array(
- Stmt\Use_::TYPE_NORMAL => '',
- Stmt\Use_::TYPE_FUNCTION => 'function ',
- Stmt\Use_::TYPE_CONSTANT => 'const ',
- );
-
- throw new Error(
- sprintf(
- 'Cannot use %s%s as %s because the name is already in use',
- $typeStringMap[$type], $name, $use->alias
- ),
- $use->getLine()
- );
- }
-
- $this->aliases[$type][$aliasName] = $name;
- }
-
- /** @param Stmt\Function_|Stmt\ClassMethod|Expr\Closure $node */
- private function resolveSignature($node) {
- foreach ($node->params as $param) {
- if ($param->type instanceof Name) {
- $param->type = $this->resolveClassName($param->type);
- }
- }
- if ($node->returnType instanceof Name) {
- $node->returnType = $this->resolveClassName($node->returnType);
- }
- }
-
- protected function resolveClassName(Name $name) {
- // don't resolve special class names
- if (in_array(strtolower($name->toString()), array('self', 'parent', 'static'))) {
- if (!$name->isUnqualified()) {
- throw new Error(
- sprintf("'\\%s' is an invalid class name", $name->toString()),
- $name->getLine()
- );
- }
-
- return $name;
- }
-
- // fully qualified names are already resolved
- if ($name->isFullyQualified()) {
- return $name;
- }
-
- $aliasName = strtolower($name->getFirst());
- if (!$name->isRelative() && isset($this->aliases[Stmt\Use_::TYPE_NORMAL][$aliasName])) {
- // resolve aliases (for non-relative names)
- $alias = $this->aliases[Stmt\Use_::TYPE_NORMAL][$aliasName];
- return FullyQualified::concat($alias, $name->slice(1), $name->getAttributes());
- }
-
- if (null !== $this->namespace) {
- // if no alias exists prepend current namespace
- return FullyQualified::concat($this->namespace, $name, $name->getAttributes());
- }
-
- return new FullyQualified($name->parts, $name->getAttributes());
- }
-
- protected function resolveOtherName(Name $name, $type) {
- // fully qualified names are already resolved
- if ($name->isFullyQualified()) {
- return $name;
- }
-
- // resolve aliases for qualified names
- $aliasName = strtolower($name->getFirst());
- if ($name->isQualified() && isset($this->aliases[Stmt\Use_::TYPE_NORMAL][$aliasName])) {
- $alias = $this->aliases[Stmt\Use_::TYPE_NORMAL][$aliasName];
- return FullyQualified::concat($alias, $name->slice(1), $name->getAttributes());
- }
-
- if ($name->isUnqualified()) {
- if ($type === Stmt\Use_::TYPE_CONSTANT) {
- // constant aliases are case-sensitive, function aliases case-insensitive
- $aliasName = $name->getFirst();
- }
-
- if (!isset($this->aliases[$type][$aliasName])) {
- // unqualified, unaliased names cannot be resolved at compile-time
- return $name;
- }
-
- // resolve unqualified aliases
- return new FullyQualified($this->aliases[$type][$aliasName], $name->getAttributes());
- }
-
- if (null !== $this->namespace) {
- // if no alias exists prepend current namespace
- return FullyQualified::concat($this->namespace, $name, $name->getAttributes());
- }
-
- return new FullyQualified($name->parts, $name->getAttributes());
- }
-
- protected function addNamespacedName(Node $node) {
- if (null !== $this->namespace) {
- $node->namespacedName = Name::concat($this->namespace, $node->name);
- } else {
- $node->namespacedName = new Name($node->name);
- }
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php
deleted file mode 100644
index 3e1743a7..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-/**
- * @codeCoverageIgnore
- */
-class NodeVisitorAbstract implements NodeVisitor
-{
- public function beforeTraverse(array $nodes) { }
- public function enterNode(Node $node) { }
- public function leaveNode(Node $node) { }
- public function afterTraverse(array $nodes) { }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser.php
deleted file mode 100644
index 67913c9a..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-interface Parser {
- /**
- * Parses PHP code into a node tree.
- *
- * @param string $code The source code to parse
- *
- * @return Node[]|null Array of statements (or null if the 'throwOnError' option is disabled and the parser was
- * unable to recover from an error).
- */
- public function parse($code);
-
- /**
- * Get array of errors that occurred during the last parse.
- *
- * This method may only return multiple errors if the 'throwOnError' option is disabled.
- *
- * @return Error[]
- */
- public function getErrors();
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Multiple.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Multiple.php
deleted file mode 100644
index 95446e2d..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Multiple.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-namespace PhpParser\Parser;
-
-use PhpParser\Error;
-use PhpParser\Parser;
-
-class Multiple implements Parser {
- /** @var Parser[] List of parsers to try, in order of preference */
- private $parsers;
- /** @var Error[] Errors collected during last parse */
- private $errors;
-
- /**
- * Create a parser which will try multiple parsers in an order of preference.
- *
- * Parsers will be invoked in the order they're provided to the constructor. If one of the
- * parsers runs without errors, it's output is returned. Otherwise the errors (and
- * PhpParser\Error exception) of the first parser are used.
- *
- * @param Parser[] $parsers
- */
- public function __construct(array $parsers) {
- $this->parsers = $parsers;
- $this->errors = [];
- }
-
- public function parse($code) {
- list($firstStmts, $firstErrors, $firstError) = $this->tryParse($this->parsers[0], $code);
- if ($firstErrors === []) {
- $this->errors = [];
- return $firstStmts;
- }
-
- for ($i = 1, $c = count($this->parsers); $i < $c; ++$i) {
- list($stmts, $errors) = $this->tryParse($this->parsers[$i], $code);
- if ($errors === []) {
- $this->errors = [];
- return $stmts;
- }
- }
-
- $this->errors = $firstErrors;
- if ($firstError) {
- throw $firstError;
- }
- return $firstStmts;
- }
-
- public function getErrors() {
- return $this->errors;
- }
-
- private function tryParse(Parser $parser, $code) {
- $stmts = null;
- $error = null;
- try {
- $stmts = $parser->parse($code);
- } catch (Error $error) {}
- $errors = $parser->getErrors();
- return [$stmts, $errors, $error];
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Php5.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Php5.php
deleted file mode 100644
index d410724c..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Php5.php
+++ /dev/null
@@ -1,3120 +0,0 @@
-<?php
-
-namespace PhpParser\Parser;
-
-use PhpParser\Error;
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Name;
-use PhpParser\Node\Scalar;
-use PhpParser\Node\Stmt;
-
-/* This is an automatically GENERATED file, which should not be manually edited.
- * Instead edit one of the following:
- * * the grammar files grammar/php5.y or grammar/php7.y
- * * the skeleton file grammar/parser.template
- * * the preprocessing script grammar/rebuildParsers.php
- */
-class Php5 extends \PhpParser\ParserAbstract
-{
- protected $tokenToSymbolMapSize = 392;
- protected $actionTableSize = 1010;
- protected $gotoTableSize = 649;
-
- protected $invalidSymbol = 157;
- protected $errorSymbol = 1;
- protected $defaultAction = -32766;
- protected $unexpectedTokenRule = 32767;
-
- protected $YY2TBLSTATE = 405;
- protected $YYNLSTATES = 667;
-
- protected $symbolToName = array(
- "EOF",
- "error",
- "T_INCLUDE",
- "T_INCLUDE_ONCE",
- "T_EVAL",
- "T_REQUIRE",
- "T_REQUIRE_ONCE",
- "','",
- "T_LOGICAL_OR",
- "T_LOGICAL_XOR",
- "T_LOGICAL_AND",
- "T_PRINT",
- "T_YIELD",
- "T_DOUBLE_ARROW",
- "T_YIELD_FROM",
- "'='",
- "T_PLUS_EQUAL",
- "T_MINUS_EQUAL",
- "T_MUL_EQUAL",
- "T_DIV_EQUAL",
- "T_CONCAT_EQUAL",
- "T_MOD_EQUAL",
- "T_AND_EQUAL",
- "T_OR_EQUAL",
- "T_XOR_EQUAL",
- "T_SL_EQUAL",
- "T_SR_EQUAL",
- "T_POW_EQUAL",
- "'?'",
- "':'",
- "T_COALESCE",
- "T_BOOLEAN_OR",
- "T_BOOLEAN_AND",
- "'|'",
- "'^'",
- "'&'",
- "T_IS_EQUAL",
- "T_IS_NOT_EQUAL",
- "T_IS_IDENTICAL",
- "T_IS_NOT_IDENTICAL",
- "T_SPACESHIP",
- "'<'",
- "T_IS_SMALLER_OR_EQUAL",
- "'>'",
- "T_IS_GREATER_OR_EQUAL",
- "T_SL",
- "T_SR",
- "'+'",
- "'-'",
- "'.'",
- "'*'",
- "'/'",
- "'%'",
- "'!'",
- "T_INSTANCEOF",
- "'~'",
- "T_INC",
- "T_DEC",
- "T_INT_CAST",
- "T_DOUBLE_CAST",
- "T_STRING_CAST",
- "T_ARRAY_CAST",
- "T_OBJECT_CAST",
- "T_BOOL_CAST",
- "T_UNSET_CAST",
- "'@'",
- "T_POW",
- "'['",
- "T_NEW",
- "T_CLONE",
- "T_EXIT",
- "T_IF",
- "T_ELSEIF",
- "T_ELSE",
- "T_ENDIF",
- "T_LNUMBER",
- "T_DNUMBER",
- "T_STRING",
- "T_STRING_VARNAME",
- "T_VARIABLE",
- "T_NUM_STRING",
- "T_INLINE_HTML",
- "T_ENCAPSED_AND_WHITESPACE",
- "T_CONSTANT_ENCAPSED_STRING",
- "T_ECHO",
- "T_DO",
- "T_WHILE",
- "T_ENDWHILE",
- "T_FOR",
- "T_ENDFOR",
- "T_FOREACH",
- "T_ENDFOREACH",
- "T_DECLARE",
- "T_ENDDECLARE",
- "T_AS",
- "T_SWITCH",
- "T_ENDSWITCH",
- "T_CASE",
- "T_DEFAULT",
- "T_BREAK",
- "T_CONTINUE",
- "T_GOTO",
- "T_FUNCTION",
- "T_CONST",
- "T_RETURN",
- "T_TRY",
- "T_CATCH",
- "T_FINALLY",
- "T_THROW",
- "T_USE",
- "T_INSTEADOF",
- "T_GLOBAL",
- "T_STATIC",
- "T_ABSTRACT",
- "T_FINAL",
- "T_PRIVATE",
- "T_PROTECTED",
- "T_PUBLIC",
- "T_VAR",
- "T_UNSET",
- "T_ISSET",
- "T_EMPTY",
- "T_HALT_COMPILER",
- "T_CLASS",
- "T_TRAIT",
- "T_INTERFACE",
- "T_EXTENDS",
- "T_IMPLEMENTS",
- "T_OBJECT_OPERATOR",
- "T_LIST",
- "T_ARRAY",
- "T_CALLABLE",
- "T_CLASS_C",
- "T_TRAIT_C",
- "T_METHOD_C",
- "T_FUNC_C",
- "T_LINE",
- "T_FILE",
- "T_START_HEREDOC",
- "T_END_HEREDOC",
- "T_DOLLAR_OPEN_CURLY_BRACES",
- "T_CURLY_OPEN",
- "T_PAAMAYIM_NEKUDOTAYIM",
- "T_NAMESPACE",
- "T_NS_C",
- "T_DIR",
- "T_NS_SEPARATOR",
- "T_ELLIPSIS",
- "';'",
- "'{'",
- "'}'",
- "'('",
- "')'",
- "'$'",
- "'`'",
- "']'",
- "'\"'"
- );
-
- protected $tokenToSymbol = array(
- 0, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 53, 156, 157, 153, 52, 35, 157,
- 151, 152, 50, 47, 7, 48, 49, 51, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 29, 148,
- 41, 15, 43, 28, 65, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 67, 157, 155, 34, 157, 154, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 149, 33, 150, 55, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 1, 2, 3, 4,
- 5, 6, 8, 9, 10, 11, 12, 13, 14, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
- 27, 30, 31, 32, 36, 37, 38, 39, 40, 42,
- 44, 45, 46, 54, 56, 57, 58, 59, 60, 61,
- 62, 63, 64, 66, 68, 69, 70, 71, 72, 73,
- 74, 75, 76, 77, 78, 79, 80, 81, 157, 157,
- 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
- 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
- 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
- 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
- 122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
- 132, 133, 134, 135, 136, 137, 157, 157, 157, 157,
- 157, 157, 138, 139, 140, 141, 142, 143, 144, 145,
- 146, 147
- );
-
- protected $action = array(
- 672, 673, 674, 675, 676,-32766, 677, 678, 679, 715,
- 716, 216, 217, 218, 219, 220, 221, 222, 223, 224,
- 447, 225, 226, 227, 228, 229, 230, 231, 232, 233,
- 234, 235, 236,-32766,-32766,-32766,-32766,-32766,-32766,-32766,
- -32766,-32767,-32767,-32767,-32767, 441, 237, 238,-32766,-32766,
- -32766,-32766, 680,-32766, 0,-32766,-32766,-32766,-32766,-32766,
- -32766,-32767,-32767,-32767,-32767,-32767, 681, 682, 683, 684,
- 685, 686, 687, 1177, 204, 747,-32766,-32766,-32766,-32766,
- -32766, 282, 688, 689, 690, 691, 692, 693, 694, 695,
- 696, 697, 698, 718, 719, 720, 721, 722, 710, 711,
- 712, 713, 714, 699, 700, 701, 702, 703, 704, 705,
- 741, 742, 743, 744, 745, 746, 706, 707, 708, 709,
- 739, 730, 728, 729, 725, 726, 49, 717, 723, 724,
- 731, 732, 734, 733, 735, 736, 52, 53, 420, 54,
- 55, 727, 738, 737, 419, 56, 57, 332, 58,-32766,
- -32766,-32766,-32766,-32766,-32766,-32766,-32766,-32766, 7,-32767,
- -32767,-32767,-32767, 50, 329, 18, 518, 944, 945, 946,
- 943, 942, 941, 936, 1210, 306, 1212, 1211, 763, 764,
- 585, 59, 60,-32766,-32766,-32766, 809, 61, 1171, 62,
- 291, 292, 63, 64, 65, 66, 67, 68, 69, 70,
- 440, 24, 299, 71, 413,-32766,-32766,-32766, 118, 1086,
- 1087, 749, 633, 1177, 213, 214, 215, 464,-32766,-32766,
- -32766, 821, 407, 1098, 321,-32766, 1184,-32766,-32766,-32766,
- -32766,-32766,-32766, 1035, 200, -268, 428, 1098,-32766, 23,
- -32766,-32766,-32766,-32766,-32766, 120, 491, 944, 945, 946,
- 943, 942, 941, 27, 473, 474, 293, 623, 125,-32766,
- 892, 893, 339, 477, 478,-32766, 1092, 1093, 1094, 1095,
- 1089, 1090, 307, 492,-32766, 356, 425, 492, 1096, 1091,
- 425, 297, -219, 868, 8, 39, 121, 332, 318, 1053,
- 319, 421, -122, -122, -122, -4, 821, 463, 99, 100,
- 101, 811, 301, 1035, 38, 19, 422, -122, 465, -122,
- 466, -122, 467, -122, 102, 423, -122, -122, -122, 28,
- 29, 468, 424, 624, 30, 469, 425, 438, 72, 412,
- 922, 349, 350, 470, 471,-32766,-32766,-32766, 298, 472,
- 1035, 762, 793, 839, 475, 476,-32767,-32767,-32767,-32767,
- 94, 95, 96, 97, 98,-32766, 460,-32766,-32766,-32766,
- -32766, 1136, 213, 214, 215, 295, 421, 239, 823, 638,
- -122, 280, 463, 892, 893, 367, 811, 1035, 1202, 38,
- 19, 422, 200, 465, 899, 466, 492, 467, 127, 425,
- 423, 213, 214, 215, 28, 29, 468, 424, 414, 30,
- 469, 1035, 869, 72, 317, 821, 349, 350, 470, 471,
- 1035, 200, 214, 215, 472, 1181, 808, 755, 839, 475,
- 476, 213, 214, 215, 295, 918, 76, 77, 78, 47,
- 338, 200, 477, 641,-32766,-32766, 31, 294, 331, 805,
- 908, 200, 241, 823, 638, -4, 32, 439, 79, 80,
- 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
- 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
- 101, 1207, 301, 46, 821, 421, 803, 124,-32766,-32766,
- -32766, 463, 898, 243, 102, 811, 1171, 126, 38, 19,
- 422, 545, 465, 348, 466, 326, 467, 917,-32766, 423,
- -32766,-32766, 642, 28, 29, 468, 821, 1035, 30, 469,
- -215, 117, 72, 801, 284, 349, 350,-32766,-32766,-32766,
- -32766,-32766,-32766, 472, 123, 1035, 234, 235, 236,-32766,
- -32766,-32766, 1035, 334, 653, 1137, 124,-32766, 215,-32766,
- -32766,-32766, 237, 238, 421, 231, 232, 233, 283,-32766,
- 463, 415, 823, 638, 811, 116, 200, 38, 19, 422,
- 339, 465, 119, 466, 749, 467, 1177, 34, 423, 96,
- 97, 98, 28, 29, 468, 821, 421, 30, 469,-32766,
- 242, 72, 463, 129, 349, 350, 811, 576, 1035, 38,
- 19, 422, 472, 465, 206, 466, 115, 467, 377, 1063,
- 423,-32766,-32766, 647, 28, 29, 468, 821, 205, 30,
- 469, 296, 492, 72, 244, 425, 349, 350, 237, 238,
- 434, 823, 638, 640, 472, 207, 213, 214, 215, 200,
- 492, 449, 20, 425, 650, 644, 454, 591, 429,-32766,
- 332, 130, 357, 763, 764, 421, 200, 832, 599, 600,
- 128, 463, 308, 823, 638, 811, 921, 666, 38, 19,
- 422, 820, 465, 646, 466, 301, 467, 756, 643, 423,
- 102, 933, 656, 28, 29, 468, 821, 421, 30, 469,
- 44, 51, 72, 463, 48, 349, 350, 811, 299, 41,
- 38, 19, 422, 472, 465, 42, 466, 43, 467, 605,
- 45, 423, 437, 749, 512, 28, 29, 468, 750, 279,
- 30, 469, 534, 533, 72, 435, 776, 349, 350, 433,
- 513, 1205, 823, 638, 517, 472, 632, 33, 103, 104,
- 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
- 622, 516, 612, 1056, 602, 579, 421, 619, 524,-32766,
- 609, 595, 463, 537, 855, 638, 811, 596, 477, 38,
- 19, 422, 12, 465, -80, 466, 240, 467, 974, 976,
- 423, 432, 582, 458, 28, 29, 468, 841, 333, 30,
- 469, 320, 330, 72, 208, 209, 349, 350, -496, 1143,
- 210, 11, 211, 370, 472, 75, 840, 1014, 0, 0,
- 327, 0, 0, 0, 202, 328, 0, 322, -497, 208,
- 209, 0, 1086, 1087, 0, 210,-32766, 211, 0, 9,
- 1088, 1097, 0, 823, 638, -397, 4, -405, -406, 202,
- 3, 758, 0, 408, 0, 384, 409, 1086, 1087, 393,
- -496,-32766, 385, 372, 434, 1088, 526, 862, 834, 1033,
- 759, 871, 796, 813, 798, 819, 807, 761, 856, 660,
- 0, 37, 36, 925, 810, 760, 927, 565, 802, 1092,
- 1093, 1094, 1095, 1089, 1090, 383, 853, 928, 804, 806,
- 929, 1096, 1091, 812, 851, 303, 818, 863, 212, 661,
- -32766, 926, 565, 639, 1092, 1093, 1094, 1095, 1089, 1090,
- 383, 649, 651, 652, 654, 655, 1096, 1091, 658, 663,
- 664, -415, 665, 212, 122,-32766, 324, 325, 406, 405,
- 1142, 757, 1209, 794, 838, 837, 836, 453, 1206, 1178,
- 1176, 1162, 1174, 1077, 910, 1182, 1172, 1208, 828, 835,
- 1037, 1038, 826, 934, 662, 765, 1049, 860, 768, 767,
- 766, 861, 0, 302, 290, 289, 304, 281, 203, 26,
- 305, 74, 335, 411, 73, 40, 417, 25, 22, 35,
- -32766, 0, 569, -216, 1015, 1102, 900, 1043, 1079, 1040,
- 1039, 629, 559, 461, 457, 455, 450, 378, 16, 15,
- 14, -215, 0, 0, 0, 603, 1157, 1156, 1103, 1204,
- 1076, 1173, 1044, 1161, 1175, 1062, 1047, 1048, 1045, 1046
- );
-
- protected $actionCheck = array(
- 2, 3, 4, 5, 6, 8, 8, 9, 10, 11,
- 12, 31, 32, 33, 34, 35, 36, 37, 38, 39,
- 7, 41, 42, 43, 44, 45, 46, 47, 48, 49,
- 50, 51, 52, 8, 9, 10, 31, 32, 33, 34,
- 35, 36, 37, 38, 39, 7, 66, 67, 31, 32,
- 33, 34, 54, 28, 0, 30, 31, 32, 33, 34,
- 35, 36, 37, 38, 39, 40, 68, 69, 70, 71,
- 72, 73, 74, 79, 7, 77, 31, 32, 33, 34,
- 35, 7, 84, 85, 86, 87, 88, 89, 90, 91,
- 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
- 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
- 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
- 122, 123, 124, 125, 126, 127, 67, 129, 130, 131,
- 132, 133, 134, 135, 136, 137, 2, 3, 4, 5,
- 6, 143, 144, 145, 7, 11, 12, 153, 14, 31,
- 32, 33, 34, 35, 36, 37, 38, 39, 103, 41,
- 42, 43, 44, 67, 109, 152, 82, 112, 113, 114,
- 115, 116, 117, 118, 77, 7, 79, 80, 102, 103,
- 82, 47, 48, 8, 9, 10, 148, 53, 79, 55,
- 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
- 7, 67, 68, 69, 70, 8, 9, 10, 149, 75,
- 76, 77, 77, 79, 8, 9, 10, 83, 8, 9,
- 10, 1, 146, 139, 128, 28, 152, 30, 31, 32,
- 33, 34, 35, 12, 28, 79, 102, 139, 28, 7,
- 30, 31, 32, 33, 34, 149, 112, 112, 113, 114,
- 115, 116, 117, 7, 120, 121, 35, 77, 149, 103,
- 130, 131, 153, 129, 130, 109, 132, 133, 134, 135,
- 136, 137, 138, 143, 118, 7, 146, 143, 144, 145,
- 146, 7, 152, 29, 7, 151, 7, 153, 154, 152,
- 156, 71, 72, 73, 74, 0, 1, 77, 50, 51,
- 52, 81, 54, 12, 84, 85, 86, 87, 88, 89,
- 90, 91, 92, 93, 66, 95, 96, 97, 98, 99,
- 100, 101, 102, 143, 104, 105, 146, 29, 108, 7,
- 150, 111, 112, 113, 114, 8, 9, 10, 35, 119,
- 12, 148, 122, 123, 124, 125, 41, 42, 43, 44,
- 45, 46, 47, 48, 49, 28, 7, 30, 31, 32,
- 33, 155, 8, 9, 10, 35, 71, 13, 148, 149,
- 150, 13, 77, 130, 131, 79, 81, 12, 82, 84,
- 85, 86, 28, 88, 152, 90, 143, 92, 67, 146,
- 95, 8, 9, 10, 99, 100, 101, 102, 103, 104,
- 105, 12, 148, 108, 109, 1, 111, 112, 113, 114,
- 12, 28, 9, 10, 119, 77, 148, 122, 123, 124,
- 125, 8, 9, 10, 35, 148, 8, 9, 10, 67,
- 67, 28, 129, 29, 8, 9, 140, 141, 143, 148,
- 79, 28, 29, 148, 149, 150, 28, 149, 30, 31,
- 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
- 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
- 52, 150, 54, 67, 1, 71, 148, 147, 8, 9,
- 10, 77, 152, 15, 66, 81, 79, 149, 84, 85,
- 86, 128, 88, 7, 90, 7, 92, 148, 28, 95,
- 30, 31, 29, 99, 100, 101, 1, 12, 104, 105,
- 152, 149, 108, 148, 153, 111, 112, 8, 9, 10,
- 31, 32, 33, 119, 29, 12, 50, 51, 52, 8,
- 9, 10, 12, 7, 29, 152, 147, 28, 10, 30,
- 31, 32, 66, 67, 71, 47, 48, 49, 35, 28,
- 77, 123, 148, 149, 81, 149, 28, 84, 85, 86,
- 153, 88, 13, 90, 77, 92, 79, 13, 95, 47,
- 48, 49, 99, 100, 101, 1, 71, 104, 105, 151,
- 15, 108, 77, 149, 111, 112, 81, 153, 12, 84,
- 85, 86, 119, 88, 15, 90, 15, 92, 78, 112,
- 95, 31, 32, 29, 99, 100, 101, 1, 15, 104,
- 105, 35, 143, 108, 15, 146, 111, 112, 66, 67,
- 146, 148, 149, 149, 119, 15, 8, 9, 10, 28,
- 143, 72, 73, 146, 29, 29, 72, 73, 151, 31,
- 153, 97, 98, 102, 103, 71, 28, 35, 106, 107,
- 29, 77, 29, 148, 149, 81, 148, 149, 84, 85,
- 86, 29, 88, 29, 90, 54, 92, 148, 149, 95,
- 66, 148, 149, 99, 100, 101, 1, 71, 104, 105,
- 67, 67, 108, 77, 67, 111, 112, 81, 68, 67,
- 84, 85, 86, 119, 88, 67, 90, 67, 92, 74,
- 67, 95, 86, 77, 77, 99, 100, 101, 77, 94,
- 104, 105, 77, 77, 108, 77, 77, 111, 112, 77,
- 77, 77, 148, 149, 77, 119, 89, 15, 16, 17,
- 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
- 79, 79, 79, 79, 79, 87, 71, 91, 82, 82,
- 93, 96, 77, 94, 148, 149, 81, 109, 129, 84,
- 85, 86, 94, 88, 94, 90, 29, 92, 56, 57,
- 95, 102, 96, 102, 99, 100, 101, 123, 126, 104,
- 105, 128, 110, 108, 47, 48, 111, 112, 128, 139,
- 53, 142, 55, 142, 119, 149, 123, 152, -1, -1,
- 126, -1, -1, -1, 67, 127, -1, 128, 128, 47,
- 48, -1, 75, 76, -1, 53, 79, 55, -1, 142,
- 83, 139, -1, 148, 149, 142, 142, 142, 142, 67,
- 142, 150, -1, 146, -1, 146, 146, 75, 76, 146,
- 128, 79, 146, 146, 146, 83, 146, 148, 147, 154,
- 148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
- -1, 148, 148, 148, 148, 148, 148, 130, 148, 132,
- 133, 134, 135, 136, 137, 138, 148, 148, 148, 148,
- 148, 144, 145, 148, 148, 151, 148, 148, 151, 148,
- 153, 148, 130, 149, 132, 133, 134, 135, 136, 137,
- 138, 149, 149, 149, 149, 149, 144, 145, 149, 149,
- 149, 154, 149, 151, 149, 153, 149, 149, 149, 149,
- 156, 150, 150, 150, 150, 150, 150, 150, 150, 150,
- 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
- 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
- 150, 150, -1, 151, 151, 151, 151, 151, 151, 151,
- 151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
- 151, -1, 152, 152, 152, 152, 152, 152, 152, 152,
- 152, 152, 152, 152, 152, 152, 152, 152, 152, 152,
- 152, 152, -1, -1, -1, 155, 155, 155, 155, 155,
- 155, 155, 155, 155, 155, 155, 155, 155, 155, 155
- );
-
- protected $actionBase = array(
- 0, 220, 295, 109, 109, 180, 718, -2, -2, -2,
- -2, -2, 135, 473, 574, 505, 574, 404, 606, 675,
- 675, 675, 330, 389, 221, 221, 826, 221, 365, 328,
- 291, 520, 495, 513, 576, 398, 398, 398, 398, 134,
- 134, 398, 398, 398, 398, 398, 398, 398, 398, 398,
- 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
- 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
- 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
- 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
- 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
- 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
- 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
- 398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
- 398, 254, 735, 549, 554, 720, 730, 731, 738, 828,
- 615, 822, 778, 779, 621, 780, 781, 782, 783, 784,
- 777, 785, 840, 786, 418, 418, 418, 418, 418, 418,
- 418, 418, 418, 418, 418, -3, 354, 383, 413, 206,
- 426, 618, 618, 618, 618, 618, 618, 618, 175, 175,
- 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
- 175, 175, 175, 175, 175, 403, 521, 521, 521, 528,
- 737, 601, 762, 762, 762, 762, 762, 762, 762, 762,
- 762, 762, 762, 762, 762, 762, 762, 762, 762, 762,
- 762, 762, 762, 762, 762, 762, 762, 762, 762, 762,
- 762, 762, 762, 762, 762, 762, 762, 762, 762, 762,
- 762, 762, 762, 762, 762, 470, -20, -20, 509, 608,
- 327, 570, 210, 489, 197, 25, 25, 25, 25, 25,
- 17, 45, 5, 5, 5, 5, 712, 305, 305, 305,
- 305, 118, 118, 118, 118, 774, 775, 776, 796, 303,
- 303, 629, 629, 620, 765, 522, 522, 498, 498, 487,
- 487, 487, 487, 487, 487, 487, 487, 487, 487, 428,
- 156, 819, 130, 130, 130, 130, 243, 84, 243, 650,
- 764, 248, 248, 248, 476, 476, 476, 76, 666, 296,
- 338, 338, 338, 296, 541, 541, 541, 469, 469, 469,
- 469, 474, 646, 469, 469, 469, 362, 667, 97, 434,
- 676, 797, 655, 801, 508, 686, 96, 687, 690, 361,
- 669, 559, 564, 542, 683, 298, 361, 254, 523, 59,
- 611, 716, 635, 193, 702, 268, 38, 363, 519, 406,
- 407, 13, 767, 717, 820, 645, 74, 321, 680, 611,
- 611, 611, 232, 98, 768, 770, 406, 358, 552, 552,
- 552, 552, 799, 769, 552, 552, 552, 552, 798, 795,
- 277, 349, 800, 137, 715, 626, 626, 626, 626, 626,
- 626, 612, 626, 808, 643, 817, 817, 636, 665, 612,
- 814, 814, 814, 814, 612, 626, 817, 817, 612, 620,
- 817, 246, 612, 674, 626, 652, 652, 814, 711, 741,
- 643, 662, 678, 817, 817, 817, 678, 636, 612, 814,
- 648, 701, 67, 817, 814, 623, 623, 648, 612, 623,
- 665, 623, 54, 632, 622, 818, 813, 815, 627, 744,
- 673, 654, 804, 803, 810, 647, 642, 806, 816, 700,
- 709, 708, 638, 581, 628, 630, 613, 633, 688, 617,
- 653, 669, 698, 604, 604, 604, 660, 684, 660, 604,
- 604, 604, 604, 604, 604, 604, 604, 847, 651, 685,
- 679, 616, 707, 593, 697, 659, 579, 759, 682, 700,
- 700, 773, 827, 835, 757, 695, 631, 802, 830, 660,
- 854, 714, 279, 610, 734, 794, 689, 639, 696, 660,
- 805, 660, 760, 660, 825, 644, 772, 700, 681, 604,
- 824, 853, 852, 851, 850, 849, 848, 841, 846, 614,
- 845, 706, 658, 834, 168, 807, 683, 677, 693, 705,
- 526, 844, 771, 660, 660, 761, 646, 660, 763, 703,
- 713, 838, 699, 833, 843, 682, 832, 660, 671, 842,
- 526, 634, 625, 821, 657, 739, 812, 663, 823, 811,
- 752, 565, 468, 787, 605, 704, 837, 836, 839, 710,
- 753, 754, 599, 656, 664, 661, 788, 755, 809, 728,
- 789, 790, 829, 670, 698, 649, 672, 668, 637, 756,
- 791, 831, 736, 729, 732, 792, 743, 793, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 134, 134,
- -2, -2, -2, -2, 0, 0, 0, 0, 0, -2,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 0, 0, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 418, 418,
- 418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
- 418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
- 418, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 418, -20, -20, -20, -20, 418, -20, -20,
- -20, -20, -20, -20, -20, 418, 418, 418, 418, 418,
- 418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
- 418, 418, -20, 418, 418, 418, -20, 487, -20, 487,
- 487, 487, 487, 487, 487, 487, 487, 487, 487, 487,
- 487, 487, 487, 487, 487, 487, 487, 487, 487, 487,
- 487, 487, 487, 487, 487, 487, 487, 487, 487, 487,
- 487, 487, 487, 487, 487, 487, 487, 487, 487, 487,
- 487, 487, 418, 0, 0, 418, -20, 418, -20, 418,
- -20, 418, 418, 418, 418, 418, 418, -20, -20, -20,
- -20, -20, -20, 0, 248, 248, 248, 248, -20, -20,
- -20, -20, 55, 55, 55, 55, 487, 487, 487, 487,
- 487, 487, 248, 248, 476, 476, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 487, 55, 487, 626,
- 626, 626, 626, 626, 296, 626, 296, 296, 0, 0,
- 0, 0, 0, 0, 626, 296, 0, -6, -6, -6,
- 0, 626, 626, 626, 626, 626, 626, 626, 626, -6,
- 626, 626, 626, 817, 296, 0, -6, 544, 544, 544,
- 544, 526, 406, 0, 626, 626, 0, 662, 0, 0,
- 0, 817, 0, 0, 0, 0, 0, 604, 279, 802,
- 0, 486, 0, 0, 0, 0, 0, 0, 0, 631,
- 486, 274, 274, 0, 0, 614, 604, 604, 604, 0,
- 0, 631, 631, 0, 0, 0, 0, 0, 0, 488,
- 631, 0, 0, 0, 0, 488, 322, 0, 0, 322,
- 0, 526
- );
-
- protected $actionDefault = array(
- 3,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767, 523, 523,32767, 480,32767,32767,
- 32767,32767,32767,32767,32767, 286, 286, 286,32767,32767,
- 32767, 512, 512, 512, 512, 512, 512, 512, 512, 512,
- 512, 512,32767,32767,32767,32767,32767, 368,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767, 374, 528,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767, 349, 350, 352, 353, 285, 513,
- 236, 375, 527, 284, 238, 313, 484,32767,32767,32767,
- 315, 116, 247, 192, 483, 119, 283, 223, 367, 369,
- 314, 290, 295, 296, 297, 298, 299, 300, 301, 302,
- 303, 304, 305, 306, 289, 440, 346, 345, 344, 442,
- 32767, 441, 477, 477, 480,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767, 311, 468, 467, 312, 438,
- 316, 439, 318, 443, 317, 334, 335, 332, 333, 336,
- 445, 444, 461, 462, 459, 460, 288, 337, 338, 339,
- 340, 463, 464, 465, 466, 270, 270, 270, 270,32767,
- 32767, 522, 522,32767,32767, 325, 326, 452, 453,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 271,32767, 227, 227, 227, 227, 227,32767,32767,32767,
- 32767, 320, 321, 319, 447, 448, 446,32767, 414,32767,
- 32767,32767,32767, 416,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767, 485,32767,32767,32767,
- 32767,32767,32767,32767,32767, 498, 403,32767,32767,32767,
- 396, 211, 213, 160, 471,32767,32767,32767,32767, 503,
- 330,32767,32767,32767,32767,32767,32767, 536,32767, 498,
- 32767,32767,32767,32767,32767,32767,32767,32767, 343, 322,
- 323, 324,32767,32767,32767,32767, 502, 496, 455, 456,
- 457, 458,32767,32767, 449, 450, 451, 454,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767, 164,32767, 411,32767, 417, 417,32767,32767, 164,
- 32767,32767,32767,32767, 164,32767, 501, 500, 164,32767,
- 397, 479, 164, 177,32767, 175, 175,32767, 197, 197,
- 32767,32767, 179, 472, 491,32767, 179,32767, 164,32767,
- 385, 166, 479,32767,32767, 229, 229, 385, 164, 229,
- 32767, 229,32767, 82, 421,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767, 398,
- 32767,32767,32767,32767, 364, 365, 474, 487,32767, 488,
- 32767, 396,32767, 328, 329, 331, 308,32767, 310, 354,
- 355, 356, 357, 358, 359, 360, 362,32767,32767, 401,
- 404,32767,32767,32767, 84, 108, 246,32767, 535, 84,
- 399,32767,32767, 293, 535,32767,32767,32767,32767, 530,
- 32767,32767, 287,32767,32767,32767, 84,32767, 84, 242,
- 32767, 162,32767, 520,32767,32767, 496, 400,32767, 327,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767, 497,
- 32767,32767,32767,32767, 218,32767, 434,32767, 84,32767,
- 178,32767,32767, 291, 237,32767,32767, 529,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767, 163,32767,32767,
- 180,32767,32767, 496,32767,32767,32767,32767,32767,32767,
- 32767,32767, 282,32767,32767,32767,32767,32767, 496,32767,
- 32767,32767, 222,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767, 82, 60,32767, 264,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767, 121, 121,
- 3, 121, 121, 3, 121, 121, 121, 121, 121, 121,
- 121, 121, 121, 121, 121, 121, 121, 205, 249, 208,
- 197, 197, 157, 249, 249, 249, 256
- );
-
- protected $goto = array(
- 160, 160, 134, 134, 139, 134, 135, 136, 137, 142,
- 144, 181, 162, 158, 158, 158, 158, 139, 139, 159,
- 159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
- 154, 155, 156, 157, 178, 133, 179, 493, 494, 360,
- 495, 499, 500, 501, 502, 503, 504, 505, 506, 961,
- 138, 140, 141, 143, 165, 170, 180, 196, 245, 248,
- 250, 252, 254, 255, 256, 257, 258, 259, 267, 268,
- 269, 270, 285, 286, 311, 312, 313, 379, 380, 381,
- 549, 182, 183, 184, 185, 186, 187, 188, 189, 190,
- 191, 192, 193, 194, 145, 146, 147, 161, 148, 163,
- 149, 197, 164, 150, 151, 152, 198, 153, 131, 625,
- 567, 753, 567, 567, 567, 567, 567, 567, 567, 567,
- 567, 567, 567, 567, 567, 567, 567, 567, 567, 567,
- 567, 567, 567, 567, 567, 567, 567, 567, 567, 567,
- 567, 567, 567, 567, 567, 567, 567, 567, 567, 567,
- 567, 567, 567, 567, 567, 1099, 6, 1099, 1099, 1099,
- 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099,
- 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099,
- 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099,
- 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1099,
- 884, 884, 1188, 1188, 583, 586, 631, 168, 341, 509,
- 754, 509, 171, 172, 173, 388, 389, 390, 391, 167,
- 195, 199, 201, 249, 251, 253, 260, 261, 262, 263,
- 264, 265, 271, 272, 273, 274, 287, 288, 314, 315,
- 316, 394, 395, 396, 397, 169, 174, 246, 247, 175,
- 176, 177, 497, 497, 497, 497, 497, 497, 523, 1199,
- 1199, 784, 497, 497, 497, 497, 497, 497, 497, 497,
- 497, 497, 508, 1199, 508, 387, 608, 543, 543, 573,
- 539, 580, 606, 790, 752, 541, 541, 496, 498, 529,
- 546, 574, 577, 587, 593, 870, 1168, 850, 1168, 657,
- 634, 511, 879, 874, 566, 815, 566, 566, 566, 566,
- 566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
- 566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
- 566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
- 566, 566, 566, 566, 566, 566, 566, 566, 566, 551,
- 552, 553, 554, 555, 556, 557, 558, 560, 589, 514,
- 854, 550, 590, 344, 404, 522, 519, 519, 519, 443,
- 445, 932, 636, 519, 1160, 1100, 618, 930, 522, 522,
- 276, 277, 278, 430, 430, 430, 430, 430, 430, 538,
- 519, 902, 1057, 430, 430, 430, 430, 430, 430, 430,
- 430, 430, 430, 1064, 544, 1064, 891, 891, 891, 891,
- 891, 535, 891, 659, 562, 777, 594, 867, 881, 613,
- 866, 616, 877, 620, 621, 628, 630, 635, 637, 342,
- 343, 848, 848, 848, 848, 323, 310, 843, 849, 615,
- 548, 1198, 1198, 572, 940, 777, 777, 519, 519, 536,
- 568, 519, 519, 1080, 519, 1198, 510, 1167, 510, 1167,
- 1018, 17, 13, 355, 1060, 1061, 1192, 520, 1057, 1201,
- 611, 1075, 1074, 617, 361, 358, 547, 561, 1183, 1183,
- 1183, 1058, 1159, 1058, 598, 607, 1185, 1148, 362, 21,
- 1166, 1059, 527, 375, 604, 1008, 540, 369, 369, 369,
- 897, 888, 959, 770, 770, 778, 778, 778, 780, 369,
- 769, 398, 451, 347, 773, 368, 386, 373, 906, 771,
- 645, 402, 10, 1050, 1055, 446, 781, 578, 911, 858,
- 1145, 459, 948, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 528
- );
-
- protected $gotoCheck = array(
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 53,
- 112, 11, 112, 112, 112, 112, 112, 112, 112, 112,
- 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
- 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
- 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
- 112, 112, 112, 112, 112, 119, 90, 119, 119, 119,
- 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
- 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
- 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
- 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
- 70, 70, 70, 70, 56, 56, 56, 23, 65, 112,
- 12, 112, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 109, 109, 109, 109, 109, 109, 93, 134,
- 134, 25, 109, 109, 109, 109, 109, 109, 109, 109,
- 109, 109, 109, 134, 109, 47, 47, 47, 47, 47,
- 47, 36, 36, 10, 10, 47, 47, 47, 47, 47,
- 47, 47, 47, 47, 47, 10, 110, 10, 110, 10,
- 5, 10, 10, 10, 53, 46, 53, 53, 53, 53,
- 53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
- 53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
- 53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
- 53, 53, 53, 53, 53, 53, 53, 53, 53, 102,
- 102, 102, 102, 102, 102, 102, 102, 102, 102, 8,
- 29, 40, 63, 63, 63, 40, 8, 8, 8, 7,
- 7, 7, 7, 8, 75, 7, 7, 7, 40, 40,
- 61, 61, 61, 53, 53, 53, 53, 53, 53, 8,
- 8, 77, 75, 53, 53, 53, 53, 53, 53, 53,
- 53, 53, 53, 53, 101, 53, 53, 53, 53, 53,
- 53, 28, 53, 28, 28, 19, 28, 28, 28, 28,
- 28, 28, 28, 28, 28, 28, 28, 28, 28, 65,
- 65, 53, 53, 53, 53, 118, 118, 53, 53, 53,
- 2, 133, 133, 2, 90, 19, 19, 8, 8, 8,
- 8, 8, 8, 30, 8, 133, 115, 111, 115, 111,
- 30, 30, 30, 30, 75, 75, 132, 8, 75, 133,
- 57, 117, 117, 57, 43, 57, 8, 30, 111, 111,
- 111, 75, 75, 75, 120, 45, 130, 124, 54, 30,
- 111, 75, 54, 44, 30, 94, 54, 116, 116, 116,
- 74, 72, 93, 19, 19, 19, 19, 19, 19, 116,
- 19, 18, 54, 14, 21, 9, 116, 13, 78, 20,
- 67, 17, 54, 105, 107, 59, 22, 60, 79, 64,
- 123, 100, 92, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, 93
- );
-
- protected $gotoBase = array(
- 0, 0, -200, 0, 0, 288, 0, 366, 42, 184,
- 282, 109, 208, 170, 196, 0, 0, 115, 186, 98,
- 171, 188, 86, 7, 0, 253, 0, 0, -228, 342,
- 40, 0, 0, 0, 0, 0, 245, 0, 0, -22,
- 339, 0, 0, 436, 203, 205, 289, -4, 0, 0,
- 0, 0, 0, 104, 64, 0, -99, 14, 0, 89,
- 81, -283, 0, 34, 82, -231, 0, 163, 0, 0,
- -79, 0, 195, 0, 192, 38, 0, 368, 162, 87,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 144, 0, 72, 219, 194, 0, 0, 0, 0, 0,
- 74, 379, 307, 0, 0, 107, 0, 105, 0, -27,
- -3, 158, -90, 0, 0, 157, 177, 150, 117, -45,
- 281, 0, 0, 78, 283, 0, 0, 0, 0, 0,
- 204, 0, 439, 132, -50, 0
- );
-
- protected $gotoDefault = array(
- -32768, 462, 668, 2, 669, 740, 748, 601, 479, 515,
- 852, 791, 792, 364, 410, 480, 363, 399, 392, 779,
- 772, 774, 782, 166, 400, 785, 1, 787, 521, 822,
- 1009, 351, 795, 352, 592, 797, 531, 799, 800, 132,
- 481, 365, 366, 532, 374, 581, 814, 266, 371, 816,
- 353, 817, 825, 354, 614, 597, 563, 610, 482, 442,
- 575, 275, 542, 570, 857, 340, 865, 648, 873, 876,
- 483, 564, 887, 448, 895, 1085, 382, 901, 907, 912,
- 915, 418, 401, 588, 919, 920, 5, 924, 626, 627,
- 939, 300, 947, 960, 416, 1028, 1030, 484, 485, 525,
- 456, 507, 530, 486, 1051, 436, 403, 1054, 487, 488,
- 426, 427, 1072, 1069, 346, 1153, 345, 444, 309, 1140,
- 584, 1104, 452, 1191, 1149, 336, 489, 490, 359, 376,
- 1186, 431, 1193, 1200, 337, 571
- );
-
- protected $ruleToNonTerminal = array(
- 0, 1, 3, 3, 2, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 6, 6, 6, 6, 6, 6, 6,
- 7, 7, 8, 8, 9, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 14, 14, 15, 15,
- 15, 15, 17, 17, 13, 13, 18, 18, 19, 19,
- 20, 20, 21, 21, 16, 16, 22, 24, 24, 25,
- 26, 26, 28, 27, 27, 27, 27, 29, 29, 29,
- 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
- 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
- 29, 29, 29, 29, 29, 10, 10, 50, 50, 52,
- 51, 51, 44, 44, 54, 54, 55, 55, 11, 12,
- 12, 12, 58, 58, 58, 59, 59, 62, 62, 60,
- 60, 63, 63, 37, 37, 46, 46, 49, 49, 49,
- 48, 48, 64, 38, 38, 38, 38, 65, 65, 66,
- 66, 67, 67, 35, 35, 31, 31, 68, 33, 33,
- 69, 32, 32, 34, 34, 45, 45, 45, 56, 56,
- 71, 71, 72, 72, 74, 74, 74, 73, 73, 57,
- 57, 75, 75, 75, 76, 76, 77, 77, 77, 41,
- 41, 78, 78, 78, 42, 42, 79, 79, 61, 61,
- 80, 80, 80, 80, 85, 85, 86, 86, 87, 87,
- 87, 87, 87, 88, 89, 89, 84, 84, 81, 81,
- 83, 83, 91, 91, 90, 90, 90, 90, 90, 90,
- 82, 82, 92, 92, 43, 43, 36, 36, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,
- 39, 39, 30, 30, 40, 40, 97, 97, 98, 98,
- 98, 98, 104, 93, 93, 100, 100, 106, 106, 107,
- 108, 108, 108, 108, 108, 108, 112, 112, 53, 53,
- 53, 94, 94, 113, 113, 109, 109, 114, 114, 114,
- 114, 95, 95, 95, 99, 99, 99, 105, 105, 119,
- 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
- 119, 119, 23, 23, 23, 23, 23, 23, 121, 121,
- 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
- 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
- 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
- 121, 103, 103, 96, 96, 96, 96, 120, 120, 123,
- 123, 122, 122, 124, 124, 47, 47, 47, 47, 126,
- 126, 125, 125, 125, 125, 125, 127, 127, 111, 111,
- 115, 115, 110, 110, 128, 128, 128, 128, 116, 116,
- 116, 116, 102, 102, 117, 117, 117, 70, 129, 129,
- 130, 130, 130, 101, 101, 131, 131, 132, 132, 132,
- 132, 118, 118, 118, 118, 134, 133, 133, 133, 133,
- 133, 133, 133, 135, 135, 135
- );
-
- protected $ruleToLength = array(
- 1, 1, 2, 0, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 3, 1, 1, 1, 1, 1, 3,
- 5, 4, 3, 4, 2, 3, 1, 1, 7, 8,
- 6, 7, 3, 1, 3, 1, 3, 1, 1, 3,
- 1, 2, 1, 2, 3, 1, 3, 3, 1, 3,
- 2, 0, 1, 1, 1, 1, 1, 3, 5, 8,
- 3, 5, 9, 3, 2, 3, 2, 3, 2, 3,
- 2, 3, 3, 3, 1, 2, 5, 7, 9, 5,
- 6, 3, 3, 2, 1, 1, 1, 0, 2, 8,
- 0, 4, 1, 3, 0, 1, 0, 1, 10, 7,
- 6, 5, 1, 2, 2, 0, 2, 0, 2, 0,
- 2, 1, 3, 1, 4, 1, 4, 1, 1, 4,
- 1, 3, 3, 3, 4, 4, 5, 0, 2, 4,
- 3, 1, 1, 1, 4, 0, 2, 3, 0, 2,
- 4, 0, 2, 0, 3, 1, 2, 1, 1, 0,
- 1, 3, 4, 6, 1, 1, 1, 0, 1, 0,
- 2, 2, 3, 3, 1, 3, 1, 2, 2, 3,
- 1, 1, 2, 4, 3, 1, 1, 3, 2, 0,
- 3, 3, 9, 3, 1, 3, 0, 2, 4, 5,
- 4, 4, 4, 3, 1, 1, 1, 3, 1, 1,
- 0, 1, 1, 2, 1, 1, 1, 1, 1, 1,
- 1, 3, 1, 3, 3, 1, 0, 1, 1, 3,
- 3, 4, 4, 1, 2, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 2, 2, 2,
- 2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 2, 2,
- 2, 2, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 1, 3, 5, 4, 3, 4, 4, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 1, 1, 1, 3, 2, 1, 2,
- 10, 11, 3, 3, 2, 4, 4, 3, 4, 4,
- 4, 4, 7, 3, 2, 0, 4, 1, 3, 2,
- 2, 4, 6, 2, 2, 4, 1, 1, 1, 2,
- 3, 1, 1, 1, 1, 1, 1, 3, 3, 4,
- 4, 0, 2, 1, 0, 1, 1, 0, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 3, 2, 1, 3, 1, 4, 3, 1, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 2, 2, 2, 2, 3,
- 3, 3, 3, 3, 3, 3, 3, 5, 4, 4,
- 3, 1, 3, 1, 1, 3, 3, 0, 2, 0,
- 1, 3, 1, 3, 1, 1, 1, 1, 1, 6,
- 4, 3, 4, 2, 4, 4, 1, 3, 1, 2,
- 1, 1, 4, 1, 3, 6, 4, 4, 4, 4,
- 1, 4, 0, 1, 1, 3, 1, 4, 3, 1,
- 1, 1, 0, 0, 2, 3, 1, 3, 1, 4,
- 2, 2, 2, 1, 2, 1, 1, 4, 3, 3,
- 3, 6, 3, 1, 1, 1
- );
-
- protected function reduceRule0() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule1() {
- $this->semValue = $this->handleNamespaces($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule2() {
- if (is_array($this->semStack[$this->stackPos-(2-2)])) { $this->semValue = array_merge($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)]); } else { $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)]; };
- }
-
- protected function reduceRule3() {
- $this->semValue = array();
- }
-
- protected function reduceRule4() {
- $startAttributes = $this->lookaheadStartAttributes; if (isset($startAttributes['comments'])) { $nop = new Stmt\Nop(['comments' => $startAttributes['comments']]); } else { $nop = null; };
- if ($nop !== null) { $this->semStack[$this->stackPos-(1-1)][] = $nop; } $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule5() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule6() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule7() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule8() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule9() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule10() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule11() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule12() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule13() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule14() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule15() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule16() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule17() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule18() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule19() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule20() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule21() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule22() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule23() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule24() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule25() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule26() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule27() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule28() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule29() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule30() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule31() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule32() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule33() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule34() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule35() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule36() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule37() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule38() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule39() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule40() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule41() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule42() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule43() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule44() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule45() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule46() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule47() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule48() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule49() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule50() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule51() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule52() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule53() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule54() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule55() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule56() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule57() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule58() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule59() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule60() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule61() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule62() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule63() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule64() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule65() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule66() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule67() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule68() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule69() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule70() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule71() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule72() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule73() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule74() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule75() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule76() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule77() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule78() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule79() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule80() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule81() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule82() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule83() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule84() {
- $this->semValue = new Name($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule85() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule86() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule87() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule88() {
- $this->semValue = new Stmt\HaltCompiler($this->lexer->handleHaltCompiler(), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule89() {
- $this->semValue = new Stmt\Namespace_($this->semStack[$this->stackPos-(3-2)], null, $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule90() {
- $this->semValue = new Stmt\Namespace_($this->semStack[$this->stackPos-(5-2)], $this->semStack[$this->stackPos-(5-4)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule91() {
- $this->semValue = new Stmt\Namespace_(null, $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule92() {
- $this->semValue = new Stmt\Use_($this->semStack[$this->stackPos-(3-2)], Stmt\Use_::TYPE_NORMAL, $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule93() {
- $this->semValue = new Stmt\Use_($this->semStack[$this->stackPos-(4-3)], $this->semStack[$this->stackPos-(4-2)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule94() {
- $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule95() {
- $this->semValue = new Stmt\Const_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule96() {
- $this->semValue = Stmt\Use_::TYPE_FUNCTION;
- }
-
- protected function reduceRule97() {
- $this->semValue = Stmt\Use_::TYPE_CONSTANT;
- }
-
- protected function reduceRule98() {
- $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$this->stackPos-(7-3)], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(7-6)], $this->semStack[$this->stackPos-(7-2)], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes);
- }
-
- protected function reduceRule99() {
- $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$this->stackPos-(8-4)], $this->startAttributeStack[$this->stackPos-(8-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(8-7)], $this->semStack[$this->stackPos-(8-2)], $this->startAttributeStack[$this->stackPos-(8-1)] + $this->endAttributes);
- }
-
- protected function reduceRule100() {
- $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$this->stackPos-(6-2)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(6-5)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule101() {
- $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$this->stackPos-(7-3)], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(7-6)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes);
- }
-
- protected function reduceRule102() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule103() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule104() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule105() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule106() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule107() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule108() {
- $this->semValue = new Stmt\UseUse($this->semStack[$this->stackPos-(1-1)], null, Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule109() {
- $this->semValue = new Stmt\UseUse($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule110() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule111() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule112() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)]; $this->semValue->type = Stmt\Use_::TYPE_NORMAL;
- }
-
- protected function reduceRule113() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)]; $this->semValue->type = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule114() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule115() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule116() {
- $this->semValue = new Node\Const_($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule117() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule118() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule119() {
- $this->semValue = new Node\Const_($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule120() {
- if (is_array($this->semStack[$this->stackPos-(2-2)])) { $this->semValue = array_merge($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)]); } else { $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)]; };
- }
-
- protected function reduceRule121() {
- $this->semValue = array();
- }
-
- protected function reduceRule122() {
- $startAttributes = $this->lookaheadStartAttributes; if (isset($startAttributes['comments'])) { $nop = new Stmt\Nop(['comments' => $startAttributes['comments']]); } else { $nop = null; };
- if ($nop !== null) { $this->semStack[$this->stackPos-(1-1)][] = $nop; } $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule123() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule124() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule125() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule126() {
- throw new Error('__HALT_COMPILER() can only be used from the outermost scope', $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule127() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule128() {
- $this->semValue = new Stmt\If_($this->semStack[$this->stackPos-(5-2)], ['stmts' => is_array($this->semStack[$this->stackPos-(5-3)]) ? $this->semStack[$this->stackPos-(5-3)] : array($this->semStack[$this->stackPos-(5-3)]), 'elseifs' => $this->semStack[$this->stackPos-(5-4)], 'else' => $this->semStack[$this->stackPos-(5-5)]], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule129() {
- $this->semValue = new Stmt\If_($this->semStack[$this->stackPos-(8-2)], ['stmts' => $this->semStack[$this->stackPos-(8-4)], 'elseifs' => $this->semStack[$this->stackPos-(8-5)], 'else' => $this->semStack[$this->stackPos-(8-6)]], $this->startAttributeStack[$this->stackPos-(8-1)] + $this->endAttributes);
- }
-
- protected function reduceRule130() {
- $this->semValue = new Stmt\While_($this->semStack[$this->stackPos-(3-2)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule131() {
- $this->semValue = new Stmt\Do_($this->semStack[$this->stackPos-(5-4)], is_array($this->semStack[$this->stackPos-(5-2)]) ? $this->semStack[$this->stackPos-(5-2)] : array($this->semStack[$this->stackPos-(5-2)]), $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule132() {
- $this->semValue = new Stmt\For_(['init' => $this->semStack[$this->stackPos-(9-3)], 'cond' => $this->semStack[$this->stackPos-(9-5)], 'loop' => $this->semStack[$this->stackPos-(9-7)], 'stmts' => $this->semStack[$this->stackPos-(9-9)]], $this->startAttributeStack[$this->stackPos-(9-1)] + $this->endAttributes);
- }
-
- protected function reduceRule133() {
- $this->semValue = new Stmt\Switch_($this->semStack[$this->stackPos-(3-2)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule134() {
- $this->semValue = new Stmt\Break_(null, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule135() {
- $this->semValue = new Stmt\Break_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule136() {
- $this->semValue = new Stmt\Continue_(null, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule137() {
- $this->semValue = new Stmt\Continue_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule138() {
- $this->semValue = new Stmt\Return_(null, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule139() {
- $this->semValue = new Stmt\Return_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule140() {
- $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule141() {
- $this->semValue = new Stmt\Global_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule142() {
- $this->semValue = new Stmt\Static_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule143() {
- $this->semValue = new Stmt\Echo_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule144() {
- $this->semValue = new Stmt\InlineHTML($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule145() {
- $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule146() {
- $this->semValue = new Stmt\Unset_($this->semStack[$this->stackPos-(5-3)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule147() {
- $this->semValue = new Stmt\Foreach_($this->semStack[$this->stackPos-(7-3)], $this->semStack[$this->stackPos-(7-5)][0], ['keyVar' => null, 'byRef' => $this->semStack[$this->stackPos-(7-5)][1], 'stmts' => $this->semStack[$this->stackPos-(7-7)]], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes);
- }
-
- protected function reduceRule148() {
- $this->semValue = new Stmt\Foreach_($this->semStack[$this->stackPos-(9-3)], $this->semStack[$this->stackPos-(9-7)][0], ['keyVar' => $this->semStack[$this->stackPos-(9-5)], 'byRef' => $this->semStack[$this->stackPos-(9-7)][1], 'stmts' => $this->semStack[$this->stackPos-(9-9)]], $this->startAttributeStack[$this->stackPos-(9-1)] + $this->endAttributes);
- }
-
- protected function reduceRule149() {
- $this->semValue = new Stmt\Declare_($this->semStack[$this->stackPos-(5-3)], $this->semStack[$this->stackPos-(5-5)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule150() {
- $this->semValue = new Stmt\TryCatch($this->semStack[$this->stackPos-(6-3)], $this->semStack[$this->stackPos-(6-5)], $this->semStack[$this->stackPos-(6-6)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule151() {
- $this->semValue = new Stmt\Throw_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule152() {
- $this->semValue = new Stmt\Goto_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule153() {
- $this->semValue = new Stmt\Label($this->semStack[$this->stackPos-(2-1)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule154() {
- $this->semValue = array(); /* means: no statement */
- }
-
- protected function reduceRule155() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule156() {
- $startAttributes = $this->startAttributeStack[$this->stackPos-(1-1)]; if (isset($startAttributes['comments'])) { $this->semValue = new Stmt\Nop(['comments' => $startAttributes['comments']]); } else { $this->semValue = null; };
- if ($this->semValue === null) $this->semValue = array(); /* means: no statement */
- }
-
- protected function reduceRule157() {
- $this->semValue = array();
- }
-
- protected function reduceRule158() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule159() {
- $this->semValue = new Stmt\Catch_($this->semStack[$this->stackPos-(8-3)], substr($this->semStack[$this->stackPos-(8-4)], 1), $this->semStack[$this->stackPos-(8-7)], $this->startAttributeStack[$this->stackPos-(8-1)] + $this->endAttributes);
- }
-
- protected function reduceRule160() {
- $this->semValue = null;
- }
-
- protected function reduceRule161() {
- $this->semValue = $this->semStack[$this->stackPos-(4-3)];
- }
-
- protected function reduceRule162() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule163() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule164() {
- $this->semValue = false;
- }
-
- protected function reduceRule165() {
- $this->semValue = true;
- }
-
- protected function reduceRule166() {
- $this->semValue = false;
- }
-
- protected function reduceRule167() {
- $this->semValue = true;
- }
-
- protected function reduceRule168() {
- $this->semValue = new Stmt\Function_($this->semStack[$this->stackPos-(10-3)], ['byRef' => $this->semStack[$this->stackPos-(10-2)], 'params' => $this->semStack[$this->stackPos-(10-5)], 'returnType' => $this->semStack[$this->stackPos-(10-7)], 'stmts' => $this->semStack[$this->stackPos-(10-9)]], $this->startAttributeStack[$this->stackPos-(10-1)] + $this->endAttributes);
- }
-
- protected function reduceRule169() {
- $this->semValue = new Stmt\Class_($this->semStack[$this->stackPos-(7-2)], ['type' => $this->semStack[$this->stackPos-(7-1)], 'extends' => $this->semStack[$this->stackPos-(7-3)], 'implements' => $this->semStack[$this->stackPos-(7-4)], 'stmts' => $this->semStack[$this->stackPos-(7-6)]], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes);
- }
-
- protected function reduceRule170() {
- $this->semValue = new Stmt\Interface_($this->semStack[$this->stackPos-(6-2)], ['extends' => $this->semStack[$this->stackPos-(6-3)], 'stmts' => $this->semStack[$this->stackPos-(6-5)]], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule171() {
- $this->semValue = new Stmt\Trait_($this->semStack[$this->stackPos-(5-2)], $this->semStack[$this->stackPos-(5-4)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule172() {
- $this->semValue = 0;
- }
-
- protected function reduceRule173() {
- $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT;
- }
-
- protected function reduceRule174() {
- $this->semValue = Stmt\Class_::MODIFIER_FINAL;
- }
-
- protected function reduceRule175() {
- $this->semValue = null;
- }
-
- protected function reduceRule176() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule177() {
- $this->semValue = array();
- }
-
- protected function reduceRule178() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule179() {
- $this->semValue = array();
- }
-
- protected function reduceRule180() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule181() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule182() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule183() {
- $this->semValue = is_array($this->semStack[$this->stackPos-(1-1)]) ? $this->semStack[$this->stackPos-(1-1)] : array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule184() {
- $this->semValue = $this->semStack[$this->stackPos-(4-2)];
- }
-
- protected function reduceRule185() {
- $this->semValue = is_array($this->semStack[$this->stackPos-(1-1)]) ? $this->semStack[$this->stackPos-(1-1)] : array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule186() {
- $this->semValue = $this->semStack[$this->stackPos-(4-2)];
- }
-
- protected function reduceRule187() {
- $this->semValue = is_array($this->semStack[$this->stackPos-(1-1)]) ? $this->semStack[$this->stackPos-(1-1)] : array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule188() {
- $this->semValue = null;
- }
-
- protected function reduceRule189() {
- $this->semValue = $this->semStack[$this->stackPos-(4-2)];
- }
-
- protected function reduceRule190() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule191() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule192() {
- $this->semValue = new Stmt\DeclareDeclare($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule193() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule194() {
- $this->semValue = $this->semStack[$this->stackPos-(4-3)];
- }
-
- protected function reduceRule195() {
- $this->semValue = $this->semStack[$this->stackPos-(4-2)];
- }
-
- protected function reduceRule196() {
- $this->semValue = $this->semStack[$this->stackPos-(5-3)];
- }
-
- protected function reduceRule197() {
- $this->semValue = array();
- }
-
- protected function reduceRule198() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule199() {
- $this->semValue = new Stmt\Case_($this->semStack[$this->stackPos-(4-2)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule200() {
- $this->semValue = new Stmt\Case_(null, $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule201() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule202() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule203() {
- $this->semValue = is_array($this->semStack[$this->stackPos-(1-1)]) ? $this->semStack[$this->stackPos-(1-1)] : array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule204() {
- $this->semValue = $this->semStack[$this->stackPos-(4-2)];
- }
-
- protected function reduceRule205() {
- $this->semValue = array();
- }
-
- protected function reduceRule206() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule207() {
- $this->semValue = new Stmt\ElseIf_($this->semStack[$this->stackPos-(3-2)], is_array($this->semStack[$this->stackPos-(3-3)]) ? $this->semStack[$this->stackPos-(3-3)] : array($this->semStack[$this->stackPos-(3-3)]), $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule208() {
- $this->semValue = array();
- }
-
- protected function reduceRule209() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule210() {
- $this->semValue = new Stmt\ElseIf_($this->semStack[$this->stackPos-(4-2)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule211() {
- $this->semValue = null;
- }
-
- protected function reduceRule212() {
- $this->semValue = new Stmt\Else_(is_array($this->semStack[$this->stackPos-(2-2)]) ? $this->semStack[$this->stackPos-(2-2)] : array($this->semStack[$this->stackPos-(2-2)]), $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule213() {
- $this->semValue = null;
- }
-
- protected function reduceRule214() {
- $this->semValue = new Stmt\Else_($this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule215() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)], false);
- }
-
- protected function reduceRule216() {
- $this->semValue = array($this->semStack[$this->stackPos-(2-2)], true);
- }
-
- protected function reduceRule217() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)], false);
- }
-
- protected function reduceRule218() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule219() {
- $this->semValue = array();
- }
-
- protected function reduceRule220() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule221() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule222() {
- $this->semValue = new Node\Param(substr($this->semStack[$this->stackPos-(4-4)], 1), null, $this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-2)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule223() {
- $this->semValue = new Node\Param(substr($this->semStack[$this->stackPos-(6-4)], 1), $this->semStack[$this->stackPos-(6-6)], $this->semStack[$this->stackPos-(6-1)], $this->semStack[$this->stackPos-(6-2)], $this->semStack[$this->stackPos-(6-3)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule224() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule225() {
- $this->semValue = 'array';
- }
-
- protected function reduceRule226() {
- $this->semValue = 'callable';
- }
-
- protected function reduceRule227() {
- $this->semValue = null;
- }
-
- protected function reduceRule228() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule229() {
- $this->semValue = null;
- }
-
- protected function reduceRule230() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule231() {
- $this->semValue = array();
- }
-
- protected function reduceRule232() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule233() {
- $this->semValue = array(new Node\Arg($this->semStack[$this->stackPos-(3-2)], false, false, $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes));
- }
-
- protected function reduceRule234() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule235() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule236() {
- $this->semValue = new Node\Arg($this->semStack[$this->stackPos-(1-1)], false, false, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule237() {
- $this->semValue = new Node\Arg($this->semStack[$this->stackPos-(2-2)], true, false, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule238() {
- $this->semValue = new Node\Arg($this->semStack[$this->stackPos-(2-2)], false, true, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule239() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule240() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule241() {
- $this->semValue = new Expr\Variable(substr($this->semStack[$this->stackPos-(1-1)], 1), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule242() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule243() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule244() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule245() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule246() {
- $this->semValue = new Stmt\StaticVar(substr($this->semStack[$this->stackPos-(1-1)], 1), null, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule247() {
- $this->semValue = new Stmt\StaticVar(substr($this->semStack[$this->stackPos-(3-1)], 1), $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule248() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule249() {
- $this->semValue = array();
- }
-
- protected function reduceRule250() {
- $this->semValue = new Stmt\Property($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule251() {
- $this->semValue = new Stmt\ClassConst($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule252() {
- $this->semValue = new Stmt\ClassMethod($this->semStack[$this->stackPos-(9-4)], ['type' => $this->semStack[$this->stackPos-(9-1)], 'byRef' => $this->semStack[$this->stackPos-(9-3)], 'params' => $this->semStack[$this->stackPos-(9-6)], 'returnType' => $this->semStack[$this->stackPos-(9-8)], 'stmts' => $this->semStack[$this->stackPos-(9-9)]], $this->startAttributeStack[$this->stackPos-(9-1)] + $this->endAttributes);
- }
-
- protected function reduceRule253() {
- $this->semValue = new Stmt\TraitUse($this->semStack[$this->stackPos-(3-2)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule254() {
- $this->semValue = array();
- }
-
- protected function reduceRule255() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule256() {
- $this->semValue = array();
- }
-
- protected function reduceRule257() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule258() {
- $this->semValue = new Stmt\TraitUseAdaptation\Precedence($this->semStack[$this->stackPos-(4-1)][0], $this->semStack[$this->stackPos-(4-1)][1], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule259() {
- $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$this->stackPos-(5-1)][0], $this->semStack[$this->stackPos-(5-1)][1], $this->semStack[$this->stackPos-(5-3)], $this->semStack[$this->stackPos-(5-4)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule260() {
- $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$this->stackPos-(4-1)][0], $this->semStack[$this->stackPos-(4-1)][1], $this->semStack[$this->stackPos-(4-3)], null, $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule261() {
- $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$this->stackPos-(4-1)][0], $this->semStack[$this->stackPos-(4-1)][1], null, $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule262() {
- $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$this->stackPos-(4-1)][0], $this->semStack[$this->stackPos-(4-1)][1], null, $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule263() {
- $this->semValue = array($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)]);
- }
-
- protected function reduceRule264() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule265() {
- $this->semValue = array(null, $this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule266() {
- $this->semValue = null;
- }
-
- protected function reduceRule267() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule268() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule269() {
- $this->semValue = 0;
- }
-
- protected function reduceRule270() {
- $this->semValue = 0;
- }
-
- protected function reduceRule271() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule272() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule273() {
- Stmt\Class_::verifyModifier($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)]); $this->semValue = $this->semStack[$this->stackPos-(2-1)] | $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule274() {
- $this->semValue = Stmt\Class_::MODIFIER_PUBLIC;
- }
-
- protected function reduceRule275() {
- $this->semValue = Stmt\Class_::MODIFIER_PROTECTED;
- }
-
- protected function reduceRule276() {
- $this->semValue = Stmt\Class_::MODIFIER_PRIVATE;
- }
-
- protected function reduceRule277() {
- $this->semValue = Stmt\Class_::MODIFIER_STATIC;
- }
-
- protected function reduceRule278() {
- $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT;
- }
-
- protected function reduceRule279() {
- $this->semValue = Stmt\Class_::MODIFIER_FINAL;
- }
-
- protected function reduceRule280() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule281() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule282() {
- $this->semValue = new Stmt\PropertyProperty(substr($this->semStack[$this->stackPos-(1-1)], 1), null, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule283() {
- $this->semValue = new Stmt\PropertyProperty(substr($this->semStack[$this->stackPos-(3-1)], 1), $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule284() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule285() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule286() {
- $this->semValue = array();
- }
-
- protected function reduceRule287() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule288() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule289() {
- $this->semValue = new Expr\Assign($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule290() {
- $this->semValue = new Expr\Assign($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule291() {
- $this->semValue = new Expr\AssignRef($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule292() {
- $this->semValue = new Expr\AssignRef($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule293() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule294() {
- $this->semValue = new Expr\Clone_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule295() {
- $this->semValue = new Expr\AssignOp\Plus($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule296() {
- $this->semValue = new Expr\AssignOp\Minus($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule297() {
- $this->semValue = new Expr\AssignOp\Mul($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule298() {
- $this->semValue = new Expr\AssignOp\Div($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule299() {
- $this->semValue = new Expr\AssignOp\Concat($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule300() {
- $this->semValue = new Expr\AssignOp\Mod($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule301() {
- $this->semValue = new Expr\AssignOp\BitwiseAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule302() {
- $this->semValue = new Expr\AssignOp\BitwiseOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule303() {
- $this->semValue = new Expr\AssignOp\BitwiseXor($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule304() {
- $this->semValue = new Expr\AssignOp\ShiftLeft($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule305() {
- $this->semValue = new Expr\AssignOp\ShiftRight($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule306() {
- $this->semValue = new Expr\AssignOp\Pow($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule307() {
- $this->semValue = new Expr\PostInc($this->semStack[$this->stackPos-(2-1)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule308() {
- $this->semValue = new Expr\PreInc($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule309() {
- $this->semValue = new Expr\PostDec($this->semStack[$this->stackPos-(2-1)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule310() {
- $this->semValue = new Expr\PreDec($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule311() {
- $this->semValue = new Expr\BinaryOp\BooleanOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule312() {
- $this->semValue = new Expr\BinaryOp\BooleanAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule313() {
- $this->semValue = new Expr\BinaryOp\LogicalOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule314() {
- $this->semValue = new Expr\BinaryOp\LogicalAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule315() {
- $this->semValue = new Expr\BinaryOp\LogicalXor($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule316() {
- $this->semValue = new Expr\BinaryOp\BitwiseOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule317() {
- $this->semValue = new Expr\BinaryOp\BitwiseAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule318() {
- $this->semValue = new Expr\BinaryOp\BitwiseXor($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule319() {
- $this->semValue = new Expr\BinaryOp\Concat($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule320() {
- $this->semValue = new Expr\BinaryOp\Plus($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule321() {
- $this->semValue = new Expr\BinaryOp\Minus($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule322() {
- $this->semValue = new Expr\BinaryOp\Mul($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule323() {
- $this->semValue = new Expr\BinaryOp\Div($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule324() {
- $this->semValue = new Expr\BinaryOp\Mod($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule325() {
- $this->semValue = new Expr\BinaryOp\ShiftLeft($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule326() {
- $this->semValue = new Expr\BinaryOp\ShiftRight($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule327() {
- $this->semValue = new Expr\BinaryOp\Pow($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule328() {
- $this->semValue = new Expr\UnaryPlus($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule329() {
- $this->semValue = new Expr\UnaryMinus($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule330() {
- $this->semValue = new Expr\BooleanNot($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule331() {
- $this->semValue = new Expr\BitwiseNot($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule332() {
- $this->semValue = new Expr\BinaryOp\Identical($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule333() {
- $this->semValue = new Expr\BinaryOp\NotIdentical($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule334() {
- $this->semValue = new Expr\BinaryOp\Equal($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule335() {
- $this->semValue = new Expr\BinaryOp\NotEqual($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule336() {
- $this->semValue = new Expr\BinaryOp\Spaceship($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule337() {
- $this->semValue = new Expr\BinaryOp\Smaller($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule338() {
- $this->semValue = new Expr\BinaryOp\SmallerOrEqual($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule339() {
- $this->semValue = new Expr\BinaryOp\Greater($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule340() {
- $this->semValue = new Expr\BinaryOp\GreaterOrEqual($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule341() {
- $this->semValue = new Expr\Instanceof_($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule342() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule343() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule344() {
- $this->semValue = new Expr\Ternary($this->semStack[$this->stackPos-(5-1)], $this->semStack[$this->stackPos-(5-3)], $this->semStack[$this->stackPos-(5-5)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule345() {
- $this->semValue = new Expr\Ternary($this->semStack[$this->stackPos-(4-1)], null, $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule346() {
- $this->semValue = new Expr\BinaryOp\Coalesce($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule347() {
- $this->semValue = new Expr\Isset_($this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule348() {
- $this->semValue = new Expr\Empty_($this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule349() {
- $this->semValue = new Expr\Include_($this->semStack[$this->stackPos-(2-2)], Expr\Include_::TYPE_INCLUDE, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule350() {
- $this->semValue = new Expr\Include_($this->semStack[$this->stackPos-(2-2)], Expr\Include_::TYPE_INCLUDE_ONCE, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule351() {
- $this->semValue = new Expr\Eval_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule352() {
- $this->semValue = new Expr\Include_($this->semStack[$this->stackPos-(2-2)], Expr\Include_::TYPE_REQUIRE, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule353() {
- $this->semValue = new Expr\Include_($this->semStack[$this->stackPos-(2-2)], Expr\Include_::TYPE_REQUIRE_ONCE, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule354() {
- $this->semValue = new Expr\Cast\Int_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule355() {
- $this->semValue = new Expr\Cast\Double($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule356() {
- $this->semValue = new Expr\Cast\String_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule357() {
- $this->semValue = new Expr\Cast\Array_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule358() {
- $this->semValue = new Expr\Cast\Object_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule359() {
- $this->semValue = new Expr\Cast\Bool_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule360() {
- $this->semValue = new Expr\Cast\Unset_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule361() {
- $attrs = $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes;
- $attrs['kind'] = strtolower($this->semStack[$this->stackPos-(2-1)]) === 'exit' ? Expr\Exit_::KIND_EXIT : Expr\Exit_::KIND_DIE;
- $this->semValue = new Expr\Exit_($this->semStack[$this->stackPos-(2-2)], $attrs);
- }
-
- protected function reduceRule362() {
- $this->semValue = new Expr\ErrorSuppress($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule363() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule364() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule365() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule366() {
- $this->semValue = new Expr\ShellExec($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule367() {
- $this->semValue = new Expr\Print_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule368() {
- $this->semValue = new Expr\Yield_(null, null, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule369() {
- $this->semValue = new Expr\YieldFrom($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule370() {
- $this->semValue = new Expr\Closure(['static' => false, 'byRef' => $this->semStack[$this->stackPos-(10-2)], 'params' => $this->semStack[$this->stackPos-(10-4)], 'uses' => $this->semStack[$this->stackPos-(10-6)], 'returnType' => $this->semStack[$this->stackPos-(10-7)], 'stmts' => $this->semStack[$this->stackPos-(10-9)]], $this->startAttributeStack[$this->stackPos-(10-1)] + $this->endAttributes);
- }
-
- protected function reduceRule371() {
- $this->semValue = new Expr\Closure(['static' => true, 'byRef' => $this->semStack[$this->stackPos-(11-3)], 'params' => $this->semStack[$this->stackPos-(11-5)], 'uses' => $this->semStack[$this->stackPos-(11-7)], 'returnType' => $this->semStack[$this->stackPos-(11-8)], 'stmts' => $this->semStack[$this->stackPos-(11-10)]], $this->startAttributeStack[$this->stackPos-(11-1)] + $this->endAttributes);
- }
-
- protected function reduceRule372() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule373() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule374() {
- $this->semValue = new Expr\Yield_($this->semStack[$this->stackPos-(2-2)], null, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule375() {
- $this->semValue = new Expr\Yield_($this->semStack[$this->stackPos-(4-4)], $this->semStack[$this->stackPos-(4-2)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule376() {
- $attrs = $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes; $attrs['kind'] = Expr\Array_::KIND_LONG;
- $this->semValue = new Expr\Array_($this->semStack[$this->stackPos-(4-3)], $attrs);
- }
-
- protected function reduceRule377() {
- $attrs = $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes; $attrs['kind'] = Expr\Array_::KIND_SHORT;
- $this->semValue = new Expr\Array_($this->semStack[$this->stackPos-(3-2)], $attrs);
- }
-
- protected function reduceRule378() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule379() {
- $attrs = $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes; $attrs['kind'] = ($this->semStack[$this->stackPos-(4-1)][0] === "'" || ($this->semStack[$this->stackPos-(4-1)][1] === "'" && ($this->semStack[$this->stackPos-(4-1)][0] === 'b' || $this->semStack[$this->stackPos-(4-1)][0] === 'B')) ? Scalar\String_::KIND_SINGLE_QUOTED : Scalar\String_::KIND_DOUBLE_QUOTED);
- $this->semValue = new Expr\ArrayDimFetch(new Scalar\String_(Scalar\String_::parse($this->semStack[$this->stackPos-(4-1)]), $attrs), $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule380() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule381() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule382() {
- $this->semValue = array(new Stmt\Class_(null, ['type' => 0, 'extends' => $this->semStack[$this->stackPos-(7-3)], 'implements' => $this->semStack[$this->stackPos-(7-4)], 'stmts' => $this->semStack[$this->stackPos-(7-6)]], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(7-2)]);
- }
-
- protected function reduceRule383() {
- $this->semValue = new Expr\New_($this->semStack[$this->stackPos-(3-2)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule384() {
- list($class, $ctorArgs) = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = new Expr\New_($class, $ctorArgs, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule385() {
- $this->semValue = array();
- }
-
- protected function reduceRule386() {
- $this->semValue = $this->semStack[$this->stackPos-(4-3)];
- }
-
- protected function reduceRule387() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule388() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule389() {
- $this->semValue = new Expr\ClosureUse(substr($this->semStack[$this->stackPos-(2-2)], 1), $this->semStack[$this->stackPos-(2-1)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule390() {
- $this->semValue = new Expr\FuncCall($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule391() {
- $this->semValue = new Expr\StaticCall($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule392() {
- $this->semValue = new Expr\StaticCall($this->semStack[$this->stackPos-(6-1)], $this->semStack[$this->stackPos-(6-4)], $this->semStack[$this->stackPos-(6-6)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule393() {
-
- if ($this->semStack[$this->stackPos-(2-1)] instanceof Node\Expr\StaticPropertyFetch) {
- $this->semValue = new Expr\StaticCall($this->semStack[$this->stackPos-(2-1)]->class, new Expr\Variable($this->semStack[$this->stackPos-(2-1)]->name, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- } elseif ($this->semStack[$this->stackPos-(2-1)] instanceof Node\Expr\ArrayDimFetch) {
- $tmp = $this->semStack[$this->stackPos-(2-1)];
- while ($tmp->var instanceof Node\Expr\ArrayDimFetch) {
- $tmp = $tmp->var;
- }
-
- $this->semValue = new Expr\StaticCall($tmp->var->class, $this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- $tmp->var = new Expr\Variable($tmp->var->name, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- } else {
- throw new \Exception;
- }
-
- }
-
- protected function reduceRule394() {
- $this->semValue = new Expr\FuncCall($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule395() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule396() {
- $this->semValue = new Name($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule397() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule398() {
- $this->semValue = new Name($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule399() {
- $this->semValue = new Name\FullyQualified($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule400() {
- $this->semValue = new Name\Relative($this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule401() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule402() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule403() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule404() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule405() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule406() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule407() {
- $this->semValue = new Expr\PropertyFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule408() {
- $this->semValue = new Expr\PropertyFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule409() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule410() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule411() {
- $this->semValue = null;
- }
-
- protected function reduceRule412() {
- $this->semValue = null;
- }
-
- protected function reduceRule413() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule414() {
- $this->semValue = array();
- }
-
- protected function reduceRule415() {
- $this->semValue = array(new Scalar\EncapsedStringPart(Scalar\String_::parseEscapeSequences($this->semStack[$this->stackPos-(1-1)], '`', false), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes));
- }
-
- protected function reduceRule416() {
- foreach ($this->semStack[$this->stackPos-(1-1)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, '`', false); } }; $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule417() {
- $this->semValue = array();
- }
-
- protected function reduceRule418() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule419() {
- $this->semValue = Scalar\LNumber::fromString($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes, true);
- }
-
- protected function reduceRule420() {
- $this->semValue = new Scalar\DNumber(Scalar\DNumber::parse($this->semStack[$this->stackPos-(1-1)]), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule421() {
- $attrs = $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes; $attrs['kind'] = ($this->semStack[$this->stackPos-(1-1)][0] === "'" || ($this->semStack[$this->stackPos-(1-1)][1] === "'" && ($this->semStack[$this->stackPos-(1-1)][0] === 'b' || $this->semStack[$this->stackPos-(1-1)][0] === 'B')) ? Scalar\String_::KIND_SINGLE_QUOTED : Scalar\String_::KIND_DOUBLE_QUOTED);
- $this->semValue = new Scalar\String_(Scalar\String_::parse($this->semStack[$this->stackPos-(1-1)], false), $attrs);
- }
-
- protected function reduceRule422() {
- $this->semValue = new Scalar\MagicConst\Line($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule423() {
- $this->semValue = new Scalar\MagicConst\File($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule424() {
- $this->semValue = new Scalar\MagicConst\Dir($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule425() {
- $this->semValue = new Scalar\MagicConst\Class_($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule426() {
- $this->semValue = new Scalar\MagicConst\Trait_($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule427() {
- $this->semValue = new Scalar\MagicConst\Method($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule428() {
- $this->semValue = new Scalar\MagicConst\Function_($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule429() {
- $this->semValue = new Scalar\MagicConst\Namespace_($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule430() {
- $attrs = $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes; $attrs['kind'] = strpos($this->semStack[$this->stackPos-(3-1)], "'") === false ? Scalar\String_::KIND_HEREDOC : Scalar\String_::KIND_NOWDOC; preg_match('/\A[bB]?<<<[ \t]*[\'"]?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\'"]?(?:\r\n|\n|\r)\z/', $this->semStack[$this->stackPos-(3-1)], $matches); $attrs['docLabel'] = $matches[1];;
- $this->semValue = new Scalar\String_(Scalar\String_::parseDocString($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-2)], false), $attrs);
- }
-
- protected function reduceRule431() {
- $attrs = $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes; $attrs['kind'] = strpos($this->semStack[$this->stackPos-(2-1)], "'") === false ? Scalar\String_::KIND_HEREDOC : Scalar\String_::KIND_NOWDOC; preg_match('/\A[bB]?<<<[ \t]*[\'"]?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\'"]?(?:\r\n|\n|\r)\z/', $this->semStack[$this->stackPos-(2-1)], $matches); $attrs['docLabel'] = $matches[1];;
- $this->semValue = new Scalar\String_('', $attrs);
- }
-
- protected function reduceRule432() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule433() {
- $this->semValue = new Expr\ClassConstFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule434() {
- $this->semValue = new Expr\ConstFetch($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule435() {
- $this->semValue = new Expr\Array_($this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule436() {
- $this->semValue = new Expr\Array_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule437() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule438() {
- $this->semValue = new Expr\BinaryOp\BooleanOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule439() {
- $this->semValue = new Expr\BinaryOp\BooleanAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule440() {
- $this->semValue = new Expr\BinaryOp\LogicalOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule441() {
- $this->semValue = new Expr\BinaryOp\LogicalAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule442() {
- $this->semValue = new Expr\BinaryOp\LogicalXor($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule443() {
- $this->semValue = new Expr\BinaryOp\BitwiseOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule444() {
- $this->semValue = new Expr\BinaryOp\BitwiseAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule445() {
- $this->semValue = new Expr\BinaryOp\BitwiseXor($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule446() {
- $this->semValue = new Expr\BinaryOp\Concat($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule447() {
- $this->semValue = new Expr\BinaryOp\Plus($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule448() {
- $this->semValue = new Expr\BinaryOp\Minus($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule449() {
- $this->semValue = new Expr\BinaryOp\Mul($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule450() {
- $this->semValue = new Expr\BinaryOp\Div($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule451() {
- $this->semValue = new Expr\BinaryOp\Mod($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule452() {
- $this->semValue = new Expr\BinaryOp\ShiftLeft($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule453() {
- $this->semValue = new Expr\BinaryOp\ShiftRight($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule454() {
- $this->semValue = new Expr\BinaryOp\Pow($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule455() {
- $this->semValue = new Expr\UnaryPlus($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule456() {
- $this->semValue = new Expr\UnaryMinus($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule457() {
- $this->semValue = new Expr\BooleanNot($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule458() {
- $this->semValue = new Expr\BitwiseNot($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule459() {
- $this->semValue = new Expr\BinaryOp\Identical($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule460() {
- $this->semValue = new Expr\BinaryOp\NotIdentical($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule461() {
- $this->semValue = new Expr\BinaryOp\Equal($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule462() {
- $this->semValue = new Expr\BinaryOp\NotEqual($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule463() {
- $this->semValue = new Expr\BinaryOp\Smaller($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule464() {
- $this->semValue = new Expr\BinaryOp\SmallerOrEqual($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule465() {
- $this->semValue = new Expr\BinaryOp\Greater($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule466() {
- $this->semValue = new Expr\BinaryOp\GreaterOrEqual($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule467() {
- $this->semValue = new Expr\Ternary($this->semStack[$this->stackPos-(5-1)], $this->semStack[$this->stackPos-(5-3)], $this->semStack[$this->stackPos-(5-5)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule468() {
- $this->semValue = new Expr\Ternary($this->semStack[$this->stackPos-(4-1)], null, $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule469() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule470() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule471() {
- $this->semValue = new Expr\ConstFetch($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule472() {
- $this->semValue = new Expr\ClassConstFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule473() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule474() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule475() {
- $attrs = $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes; $attrs['kind'] = Scalar\String_::KIND_DOUBLE_QUOTED;
- foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, '"', true); } }; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $attrs);
- }
-
- protected function reduceRule476() {
- $attrs = $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes; $attrs['kind'] = strpos($this->semStack[$this->stackPos-(3-1)], "'") === false ? Scalar\String_::KIND_HEREDOC : Scalar\String_::KIND_NOWDOC; preg_match('/\A[bB]?<<<[ \t]*[\'"]?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\'"]?(?:\r\n|\n|\r)\z/', $this->semStack[$this->stackPos-(3-1)], $matches); $attrs['docLabel'] = $matches[1];;
- foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, true); } } $s->value = preg_replace('~(\r\n|\n|\r)\z~', '', $s->value); if ('' === $s->value) array_pop($this->semStack[$this->stackPos-(3-2)]);; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $attrs);
- }
-
- protected function reduceRule477() {
- $this->semValue = array();
- }
-
- protected function reduceRule478() {
- $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule479() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule480() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule481() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule482() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule483() {
- $this->semValue = new Expr\ArrayItem($this->semStack[$this->stackPos-(3-3)], $this->semStack[$this->stackPos-(3-1)], false, $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule484() {
- $this->semValue = new Expr\ArrayItem($this->semStack[$this->stackPos-(1-1)], null, false, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule485() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule486() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule487() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule488() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule489() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(6-2)], $this->semStack[$this->stackPos-(6-5)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule490() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule491() {
- $this->semValue = new Expr\PropertyFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule492() {
- $this->semValue = new Expr\MethodCall($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule493() {
- $this->semValue = new Expr\FuncCall($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule494() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule495() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule496() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule497() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule498() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule499() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule500() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule501() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule502() {
- $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule503() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule504() {
- $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$this->stackPos-(3-1)], substr($this->semStack[$this->stackPos-(3-3)], 1), $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule505() {
- $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$this->stackPos-(6-1)], $this->semStack[$this->stackPos-(6-5)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule506() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule507() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule508() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule509() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule510() {
- $this->semValue = new Expr\Variable(substr($this->semStack[$this->stackPos-(1-1)], 1), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule511() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule512() {
- $this->semValue = null;
- }
-
- protected function reduceRule513() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule514() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule515() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule516() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule517() {
- $this->semValue = new Expr\List_($this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule518() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule519() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule520() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule521() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule522() {
- $this->semValue = null;
- }
-
- protected function reduceRule523() {
- $this->semValue = array();
- }
-
- protected function reduceRule524() {
- $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule525() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule526() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule527() {
- $this->semValue = new Expr\ArrayItem($this->semStack[$this->stackPos-(3-3)], $this->semStack[$this->stackPos-(3-1)], false, $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule528() {
- $this->semValue = new Expr\ArrayItem($this->semStack[$this->stackPos-(1-1)], null, false, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule529() {
- $this->semValue = new Expr\ArrayItem($this->semStack[$this->stackPos-(4-4)], $this->semStack[$this->stackPos-(4-1)], true, $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule530() {
- $this->semValue = new Expr\ArrayItem($this->semStack[$this->stackPos-(2-2)], null, true, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule531() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule532() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule533() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule534() {
- $this->semValue = array($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)]);
- }
-
- protected function reduceRule535() {
- $this->semValue = new Scalar\EncapsedStringPart($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule536() {
- $this->semValue = new Expr\Variable(substr($this->semStack[$this->stackPos-(1-1)], 1), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule537() {
- $this->semValue = new Expr\ArrayDimFetch(new Expr\Variable(substr($this->semStack[$this->stackPos-(4-1)], 1), $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule538() {
- $this->semValue = new Expr\PropertyFetch(new Expr\Variable(substr($this->semStack[$this->stackPos-(3-1)], 1), $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule539() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule540() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule541() {
- $this->semValue = new Expr\ArrayDimFetch(new Expr\Variable($this->semStack[$this->stackPos-(6-2)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(6-4)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule542() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule543() {
- $this->semValue = new Scalar\String_($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule544() {
- $this->semValue = new Scalar\String_($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule545() {
- $this->semValue = new Expr\Variable(substr($this->semStack[$this->stackPos-(1-1)], 1), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Php7.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Php7.php
deleted file mode 100644
index 8a8e3c34..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Php7.php
+++ /dev/null
@@ -1,2707 +0,0 @@
-<?php
-
-namespace PhpParser\Parser;
-
-use PhpParser\Error;
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Name;
-use PhpParser\Node\Scalar;
-use PhpParser\Node\Stmt;
-
-/* This is an automatically GENERATED file, which should not be manually edited.
- * Instead edit one of the following:
- * * the grammar files grammar/php5.y or grammar/php7.y
- * * the skeleton file grammar/parser.template
- * * the preprocessing script grammar/rebuildParsers.php
- */
-class Php7 extends \PhpParser\ParserAbstract
-{
- protected $tokenToSymbolMapSize = 392;
- protected $actionTableSize = 880;
- protected $gotoTableSize = 412;
-
- protected $invalidSymbol = 157;
- protected $errorSymbol = 1;
- protected $defaultAction = -32766;
- protected $unexpectedTokenRule = 32767;
-
- protected $YY2TBLSTATE = 328;
- protected $YYNLSTATES = 554;
-
- protected $symbolToName = array(
- "EOF",
- "error",
- "T_INCLUDE",
- "T_INCLUDE_ONCE",
- "T_EVAL",
- "T_REQUIRE",
- "T_REQUIRE_ONCE",
- "','",
- "T_LOGICAL_OR",
- "T_LOGICAL_XOR",
- "T_LOGICAL_AND",
- "T_PRINT",
- "T_YIELD",
- "T_DOUBLE_ARROW",
- "T_YIELD_FROM",
- "'='",
- "T_PLUS_EQUAL",
- "T_MINUS_EQUAL",
- "T_MUL_EQUAL",
- "T_DIV_EQUAL",
- "T_CONCAT_EQUAL",
- "T_MOD_EQUAL",
- "T_AND_EQUAL",
- "T_OR_EQUAL",
- "T_XOR_EQUAL",
- "T_SL_EQUAL",
- "T_SR_EQUAL",
- "T_POW_EQUAL",
- "'?'",
- "':'",
- "T_COALESCE",
- "T_BOOLEAN_OR",
- "T_BOOLEAN_AND",
- "'|'",
- "'^'",
- "'&'",
- "T_IS_EQUAL",
- "T_IS_NOT_EQUAL",
- "T_IS_IDENTICAL",
- "T_IS_NOT_IDENTICAL",
- "T_SPACESHIP",
- "'<'",
- "T_IS_SMALLER_OR_EQUAL",
- "'>'",
- "T_IS_GREATER_OR_EQUAL",
- "T_SL",
- "T_SR",
- "'+'",
- "'-'",
- "'.'",
- "'*'",
- "'/'",
- "'%'",
- "'!'",
- "T_INSTANCEOF",
- "'~'",
- "T_INC",
- "T_DEC",
- "T_INT_CAST",
- "T_DOUBLE_CAST",
- "T_STRING_CAST",
- "T_ARRAY_CAST",
- "T_OBJECT_CAST",
- "T_BOOL_CAST",
- "T_UNSET_CAST",
- "'@'",
- "T_POW",
- "'['",
- "T_NEW",
- "T_CLONE",
- "T_EXIT",
- "T_IF",
- "T_ELSEIF",
- "T_ELSE",
- "T_ENDIF",
- "T_LNUMBER",
- "T_DNUMBER",
- "T_STRING",
- "T_STRING_VARNAME",
- "T_VARIABLE",
- "T_NUM_STRING",
- "T_INLINE_HTML",
- "T_ENCAPSED_AND_WHITESPACE",
- "T_CONSTANT_ENCAPSED_STRING",
- "T_ECHO",
- "T_DO",
- "T_WHILE",
- "T_ENDWHILE",
- "T_FOR",
- "T_ENDFOR",
- "T_FOREACH",
- "T_ENDFOREACH",
- "T_DECLARE",
- "T_ENDDECLARE",
- "T_AS",
- "T_SWITCH",
- "T_ENDSWITCH",
- "T_CASE",
- "T_DEFAULT",
- "T_BREAK",
- "T_CONTINUE",
- "T_GOTO",
- "T_FUNCTION",
- "T_CONST",
- "T_RETURN",
- "T_TRY",
- "T_CATCH",
- "T_FINALLY",
- "T_THROW",
- "T_USE",
- "T_INSTEADOF",
- "T_GLOBAL",
- "T_STATIC",
- "T_ABSTRACT",
- "T_FINAL",
- "T_PRIVATE",
- "T_PROTECTED",
- "T_PUBLIC",
- "T_VAR",
- "T_UNSET",
- "T_ISSET",
- "T_EMPTY",
- "T_HALT_COMPILER",
- "T_CLASS",
- "T_TRAIT",
- "T_INTERFACE",
- "T_EXTENDS",
- "T_IMPLEMENTS",
- "T_OBJECT_OPERATOR",
- "T_LIST",
- "T_ARRAY",
- "T_CALLABLE",
- "T_CLASS_C",
- "T_TRAIT_C",
- "T_METHOD_C",
- "T_FUNC_C",
- "T_LINE",
- "T_FILE",
- "T_START_HEREDOC",
- "T_END_HEREDOC",
- "T_DOLLAR_OPEN_CURLY_BRACES",
- "T_CURLY_OPEN",
- "T_PAAMAYIM_NEKUDOTAYIM",
- "T_NAMESPACE",
- "T_NS_C",
- "T_DIR",
- "T_NS_SEPARATOR",
- "T_ELLIPSIS",
- "';'",
- "'{'",
- "'}'",
- "'('",
- "')'",
- "'`'",
- "']'",
- "'\"'",
- "'$'"
- );
-
- protected $tokenToSymbol = array(
- 0, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 53, 155, 157, 156, 52, 35, 157,
- 151, 152, 50, 47, 7, 48, 49, 51, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 29, 148,
- 41, 15, 43, 28, 65, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 67, 157, 154, 34, 157, 153, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 149, 33, 150, 55, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,
- 157, 157, 157, 157, 157, 157, 1, 2, 3, 4,
- 5, 6, 8, 9, 10, 11, 12, 13, 14, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
- 27, 30, 31, 32, 36, 37, 38, 39, 40, 42,
- 44, 45, 46, 54, 56, 57, 58, 59, 60, 61,
- 62, 63, 64, 66, 68, 69, 70, 71, 72, 73,
- 74, 75, 76, 77, 78, 79, 80, 81, 157, 157,
- 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
- 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
- 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
- 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
- 122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
- 132, 133, 134, 135, 136, 137, 157, 157, 157, 157,
- 157, 157, 138, 139, 140, 141, 142, 143, 144, 145,
- 146, 147
- );
-
- protected $action = array(
- 559, 560, 561, 562, 563, 209, 564, 565, 566, 602,
- 603,-32766,-32766,-32766,-32767,-32767,-32767,-32767, 88, 89,
- 90, 91, 92, 520,-32766,-32766,-32766,-32766,-32766,-32766,
- 751,-32766, 111,-32766,-32766,-32766,-32766,-32766,-32766,-32767,
- -32767,-32767,-32767,-32767,-32766, 0,-32766,-32766,-32766,-32766,
- -32766,-32766, 567, 28,-32766,-32766,-32766, 113, 824, 825,
- 826, 823, 822, 821,-32766,-32766, 568, 569, 570, 571,
- 572, 573, 574, 265,-32766, 634,-32766,-32766,-32766,-32766,
- -32766, 7, 575, 576, 577, 578, 579, 580, 581, 582,
- 583, 584, 585, 605, 606, 607, 608, 609, 597, 598,
- 599, 600, 601, 586, 587, 588, 589, 590, 591, 592,
- 628, 629, 630, 631, 632, 633, 593, 594, 595, 596,
- 626, 617, 615, 616, 612, 613,-32766, 604, 610, 611,
- 618, 619, 621, 620, 622, 623, 40, 41, 373, 42,
- 43, 614, 625, 624, -211, 44, 45, 6, 46, 752,
- -32766,-32766,-32766, 261, -232, 22, 824, 825, 826, 823,
- 822, 821, 816,-32766, 335, 636, 361, 985, 998,-32766,
- -32766, 949,-32766,-32766,-32766,-32766, -417, -418, 211,-32766,
- 400, 47, 48, 344, -261,-32766, 219, 49, 354, 50,
- 215, 216, 51, 52, 53, 54, 55, 56, 57, 58,
- 929, 22, 229, 59, 342,-32766,-32766,-32766,-32766, 950,
- 951, 636, 221, 985,-32766, 509, 258, 949, 391, 337,
- 341, 704, 798,-32766, 279,-32766,-32766,-32766,-32766,-32766,
- 24, 400,-32766, 21, 344, 236, 346, -417, -418, 63,
- 119, 93, 94, 95, 267, 235, 399,-32766, -159, 775,
- 776, -417, -418,-32766, 386, 387, 359, 96, -417, -418,
- -420, -421, 400, 390, 391, 344, 955, 956, 957, 958,
- 952, 953, 237,-32766,-32766,-32766, -460, 400, 959, 954,
- 344, 510, 985, 353, 344, 61, 362, 247, 802, 248,
- 267, 374, -122, -122, -122, -4, 704, 375, 117, -232,
- 39, 694, -416, 781, 32, 17, 376, -122, 377, -122,
- 378, -122, 379, -122, 114, 380, -122, -122, -122, 33,
- 34, 381, 343, 1001, 35, 382, -459, 299, 60, 692,
- 1019, 280, 281, 383, 384,-32766,-32766,-32766, -158, 385,
- 775, 776, 680, 722, 388, 389, 222,-32766,-32766,-32766,
- 37, 122, 118, 400, 282,-32766, 344,-32766,-32766, 267,
- 370, 251, -215, -416, 219, 922, 374,-32766, 706, 525,
- -122, 1027, 375, 1029, 1028, 288, 694, -416, 782, 32,
- 17, 376, 112, 377, -416, 378, -450, 379, 25, 218,
- 380, 650, 651, -159, 33, 34, 381, 343, 336, 35,
- 382, 16, 985, 60, 246, 704, 280, 281, 383, 384,
- 350, 250, 109, 527, 385, 128, 269, 642, 722, 388,
- 389, -460, 537, -460, 649, 426, 70, 71, 72, 90,
- 91, 92, 110, 530, 1024, 330, 494, 495, 263, 126,
- 390, 484, 18, 706, 525, -4, 26, 125, 73, 74,
- 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
- 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
- 95, -459, 235, -459, 704, 374, 117, 447, 121, 267,
- 115, 375, 963, -158, 96, 694, 124, 290, 32, 17,
- 376, 238, 377, 542, 378, 691, 379, 650, 651, 380,
- 123, 797, 529, 33, 34, 381, 704, 703, 35, 382,
- 801, 553, 60, 479, 480, 280, 281, 116, 813, 543,
- 643, 528, 217, 385, 220, 212, 715, 96, 235, 504,
- 439, -450, 309, 38, 538, 229, 438, 425, 430,-32766,
- 519, 505, 489, 490, 374, 636, 419, 351, 498, 349,
- 375, 477, 706, 525, 694, 493, 1022, 32, 17, 376,
- 663, 377, 637, 378, 485, 379, 435, 724, 380, 420,
- 260, 723, 33, 34, 381, 704, 374, 35, 382, 424,
- 508, 60, 375, 925, 280, 281, 694, 482, 208, 32,
- 17, 376, 385, 377, 262, 378, 442, 379, 368, 348,
- 380, -80, 0, 531, 33, 34, 381, 704, 10, 35,
- 382, 390, 259, 60, 962, 0, 280, 281, 0, 264,
- 965, 706, 525, 0, 385, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 532, 0, 3, 0, 0,
- 9, 287, 0, 0, 0, 374, 0, 0, -376, 319,
- 0, 375, 0, 706, 525, 694, 331, 315, 32, 17,
- 376, 314, 377, 332, 378, 350, 379, 432, 302, 380,
- 717, 36, 552, 33, 34, 381, 704, 374, 35, 382,
- 551, 31, 60, 375, 695, 280, 281, 694, 807, 693,
- 32, 17, 376, 385, 377, 805, 378, 646, 379, 30,
- 806, 380, 809, 647, 808, 33, 34, 381, 734, 736,
- 35, 382, 683, 746, 60, 745, 739, 280, 281, 754,
- 685, 696, 738, 525, 690, 385, 702, 689, 688, 648,
- 27, 97, 98, 99, 100, 101, 102, 103, 104, 105,
- 106, 107, 108, 701, 917, 328, 374, 257, 256, 549,
- 548, 546, 375, 544, 706, 525, 694, 541, 540, 32,
- 17, 376, 536, 377, 535, 378, 533, 379, 526, 69,
- 380, 854, 856, 329, 33, 34, 381, 916, 718, 35,
- 382, 711, -416, 60, 1025, 644, 280, 281, 709, 1026,
- 681, 721, 653, 652, 385, 720, 719, 918, 655, 654,
- 743, 545, 814, 1023, 986, 979, 991, 996, 999, 744,
- 645, 0, -441, 339, 334, 266, 234, 233, 232, 231,
- 214, 213, 210, 706, 525, 129, 910, 127, -421, 120,
- -420, -419, 68, 20, -443, 67, 66, 23, 29, 62,
- 65, 64, 0, -416, 11, 15, 19, 894, 242, 289,
- 473, -212, 893, 461, 518, 897, 456, -416, 947, 939,
- 515, 371, -211, 367, -416, 365, 363, 964, 14, 13,
- 12, 0, -387, 0, 483, 990, 1021, 977, 978, 948
- );
-
- protected $actionCheck = array(
- 2, 3, 4, 5, 6, 13, 8, 9, 10, 11,
- 12, 8, 9, 10, 41, 42, 43, 44, 45, 46,
- 47, 48, 49, 77, 8, 9, 10, 8, 9, 10,
- 29, 28, 13, 30, 31, 32, 33, 34, 35, 36,
- 37, 38, 39, 40, 28, 0, 30, 31, 32, 33,
- 34, 35, 54, 13, 8, 9, 10, 7, 112, 113,
- 114, 115, 116, 117, 8, 9, 68, 69, 70, 71,
- 72, 73, 74, 7, 28, 77, 30, 31, 32, 33,
- 34, 7, 84, 85, 86, 87, 88, 89, 90, 91,
- 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
- 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
- 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
- 122, 123, 124, 125, 126, 127, 8, 129, 130, 131,
- 132, 133, 134, 135, 136, 137, 2, 3, 4, 5,
- 6, 143, 144, 145, 152, 11, 12, 103, 14, 148,
- 8, 9, 10, 109, 7, 67, 112, 113, 114, 115,
- 116, 117, 118, 67, 7, 77, 29, 79, 77, 67,
- 28, 83, 30, 31, 32, 33, 67, 67, 7, 83,
- 143, 47, 48, 146, 79, 83, 35, 53, 7, 55,
- 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
- 112, 67, 68, 69, 70, 8, 9, 10, 103, 75,
- 76, 77, 7, 79, 109, 77, 7, 83, 130, 123,
- 7, 1, 148, 118, 7, 28, 130, 30, 31, 32,
- 7, 143, 130, 7, 146, 7, 102, 128, 128, 151,
- 149, 50, 51, 52, 156, 54, 112, 151, 7, 130,
- 131, 142, 142, 151, 120, 121, 7, 66, 149, 149,
- 151, 151, 143, 129, 130, 146, 132, 133, 134, 135,
- 136, 137, 138, 8, 9, 10, 7, 143, 144, 145,
- 146, 143, 79, 7, 146, 151, 149, 153, 150, 155,
- 156, 71, 72, 73, 74, 0, 1, 77, 147, 152,
- 67, 81, 67, 152, 84, 85, 86, 87, 88, 89,
- 90, 91, 92, 93, 15, 95, 96, 97, 98, 99,
- 100, 101, 102, 152, 104, 105, 7, 79, 108, 148,
- 82, 111, 112, 113, 114, 8, 9, 10, 7, 119,
- 130, 131, 122, 123, 124, 125, 35, 8, 9, 10,
- 67, 67, 149, 143, 7, 28, 146, 30, 31, 156,
- 7, 128, 152, 128, 35, 152, 71, 28, 148, 149,
- 150, 77, 77, 79, 80, 142, 81, 142, 152, 84,
- 85, 86, 149, 88, 149, 90, 7, 92, 140, 141,
- 95, 102, 103, 152, 99, 100, 101, 102, 103, 104,
- 105, 152, 79, 108, 109, 1, 111, 112, 113, 114,
- 146, 128, 15, 149, 119, 15, 67, 122, 123, 124,
- 125, 152, 29, 154, 148, 82, 8, 9, 10, 47,
- 48, 49, 149, 29, 150, 146, 72, 73, 143, 15,
- 129, 72, 73, 148, 149, 150, 28, 15, 30, 31,
- 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
- 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
- 52, 152, 54, 154, 1, 71, 147, 128, 15, 156,
- 15, 77, 139, 152, 66, 81, 97, 98, 84, 85,
- 86, 29, 88, 29, 90, 148, 92, 102, 103, 95,
- 29, 148, 29, 99, 100, 101, 1, 29, 104, 105,
- 148, 149, 108, 106, 107, 111, 112, 29, 148, 149,
- 148, 149, 35, 119, 35, 35, 35, 66, 54, 74,
- 77, 152, 78, 67, 29, 68, 77, 77, 82, 82,
- 89, 91, 93, 96, 71, 77, 77, 77, 96, 77,
- 77, 109, 148, 149, 81, 79, 77, 84, 85, 86,
- 77, 88, 77, 90, 87, 92, 86, 123, 95, 77,
- 127, 123, 99, 100, 101, 1, 71, 104, 105, 79,
- 79, 108, 77, 79, 111, 112, 81, 79, 94, 84,
- 85, 86, 119, 88, 110, 90, 94, 92, 102, 102,
- 95, 94, -1, 29, 99, 100, 101, 1, 94, 104,
- 105, 129, 126, 108, 139, -1, 111, 112, -1, 126,
- 139, 148, 149, -1, 119, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, 29, -1, 142, -1, -1,
- 142, 142, -1, -1, -1, 71, -1, -1, 142, 146,
- -1, 77, -1, 148, 149, 81, 146, 146, 84, 85,
- 86, 146, 88, 146, 90, 146, 92, 146, 146, 95,
- 147, 151, 148, 99, 100, 101, 1, 71, 104, 105,
- 148, 148, 108, 77, 148, 111, 112, 81, 148, 148,
- 84, 85, 86, 119, 88, 148, 90, 148, 92, 148,
- 148, 95, 148, 148, 148, 99, 100, 101, 148, 148,
- 104, 105, 148, 148, 108, 148, 148, 111, 112, 148,
- 148, 148, 148, 149, 148, 119, 148, 148, 148, 148,
- 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
- 25, 26, 27, 148, 150, 149, 71, 149, 149, 149,
- 149, 149, 77, 149, 148, 149, 81, 149, 149, 84,
- 85, 86, 149, 88, 149, 90, 149, 92, 149, 149,
- 95, 56, 57, 149, 99, 100, 101, 150, 150, 104,
- 105, 150, 67, 108, 150, 150, 111, 112, 150, 150,
- 150, 150, 150, 150, 119, 150, 150, 150, 150, 150,
- 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
- 150, -1, 151, 151, 151, 151, 151, 151, 151, 151,
- 151, 151, 151, 148, 149, 151, 153, 151, 151, 151,
- 151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
- 151, 151, -1, 128, 152, 152, 152, 152, 152, 152,
- 152, 152, 152, 152, 152, 152, 152, 142, 152, 152,
- 152, 152, 152, 152, 149, 152, 152, 155, 152, 152,
- 152, -1, 153, -1, 154, 154, 154, 154, 154, 154
- );
-
- protected $actionBase = array(
- 0, 220, 295, 203, 138, 540, -2, -2, -2, -2,
- -54, 404, 606, 505, 606, 473, 574, 675, 675, 675,
- 151, 329, 487, 487, 487, 454, 488, 490, 489, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 1, 536, 40, 595, 696, 703, 704, 693, 692, 494,
- 697, 695, 653, 654, 471, 655, 656, 657, 658, 698,
- 720, 694, 702, 418, 418, 418, 418, 418, 418, 418,
- 418, 418, 418, 418, 418, 418, 418, 418, 418, 118,
- 19, 56, 265, 265, 265, 265, 265, 265, 265, 265,
- 265, 265, 265, 265, 265, 265, 265, 265, 265, 265,
- 339, 339, 339, 327, 197, 142, 46, 715, 16, 3,
- 3, 3, 3, 3, -27, -27, -27, -27, 311, 311,
- 482, 482, 467, 88, 88, 88, 88, 88, 88, 88,
- 88, 88, 88, 641, 645, 646, 647, 382, 382, 96,
- 105, 210, 210, 210, 210, 102, 119, 343, 119, 481,
- 712, 110, 109, 191, 191, 191, 289, 456, 248, 248,
- 91, 91, 235, 235, 233, 235, 395, 395, 395, 37,
- 37, 37, 37, 264, 37, 37, 37, 620, 457, 294,
- 447, 650, 362, 452, 659, 283, 269, 319, 510, 517,
- 323, 497, 323, 407, 369, 364, 506, 323, 323, 137,
- 1, 370, 474, 541, 453, 276, 549, 347, 181, 349,
- 372, 249, 599, 555, 701, 331, 700, 379, 171, 284,
- 474, 474, 474, 226, 598, 596, 147, -8, 649, 624,
- 241, 648, 643, 74, 353, 642, 213, 547, 468, 468,
- 468, 468, 468, 468, 491, 468, 492, 682, 682, 459,
- 508, 491, 520, 491, 468, 682, 491, 223, 491, 486,
- 468, 493, 493, 492, 500, 443, 682, 682, 443, 459,
- 491, 532, 524, 442, 523, 462, 462, 442, 491, 462,
- 508, 462, 45, 688, 690, 478, 689, 687, 685, 662,
- 684, 469, 619, 448, 444, 670, 669, 681, 460, 472,
- 671, 686, 521, 581, 470, 397, 495, 466, 680, 497,
- 519, 461, 461, 461, 466, 677, 461, 461, 461, 461,
- 461, 461, 461, 461, 725, 499, 480, 580, 579, 578,
- 299, 576, 522, 502, 465, 604, 475, 521, 521, 640,
- 719, 673, 485, 668, 707, 678, 551, 50, 463, 667,
- 651, 515, 483, 511, 666, 602, 706, 479, 639, 521,
- 660, 461, 661, 683, 723, 724, 679, 721, 714, 228,
- 503, 573, 66, 722, 635, 601, 600, 533, 718, 713,
- 711, 496, 66, 572, 477, 699, 449, 663, 476, 664,
- 617, 432, 424, 634, 676, 571, 717, 716, 710, 568,
- 567, 615, 613, 400, 674, 393, 455, 450, 565, 504,
- 501, 631, 609, 665, 564, 561, 628, 627, 708, 507,
- 519, 498, 484, 514, 451, 608, 594, 709, 464, 560,
- 556, 554, 638, 552, 652, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 134, 134, -2, -2, -2,
- 0, 0, 0, 0, -2, 134, 134, 134, 134, 134,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 418, 418, 418, 418, 418, 418,
- 418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
- 418, 418, 418, 418, 418, 418, 418, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 418, 418, 418, 418, 418, 418, 418,
- 418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
- 418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
- 418, 0, 418, 418, 418, 418, 418, 418, 191, 191,
- 191, 191, 88, 88, 88, 88, 88, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 44, 44, 44,
- 44, 191, 191, 88, 44, 468, 468, 468, 468, 88,
- 468, 248, 468, 248, 248, 0, 0, 0, 0, 0,
- 468, 248, 0, 0, 323, 323, 0, 0, 0, 0,
- 468, 468, 468, 468, 468, 468, 468, 468, 468, 468,
- 468, 323, 248, 0, 389, 389, 66, 389, 389, 0,
- 0, 0, 468, 468, 0, 500, 0, 0, 0, 0,
- 682, 0, 0, 0, 0, 0, 461, 50, 668, 0,
- 217, 0, 0, 0, 0, 0, 485, 217, 205, 0,
- 205, 0, 0, 0, 461, 461, 461, 0, 485, 485,
- 0, 0, 209, 485, 0, 209, 157, 0, 0, 157,
- 0, 66
- );
-
- protected $actionDefault = array(
- 3,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767, 453, 453, 413,32767,32767,32767,32767, 279,
- 279, 279,32767, 414, 414, 414, 414, 414, 414, 414,
- 32767,32767,32767,32767,32767, 358,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767, 458,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767, 341, 342, 344, 345, 278, 415, 231,
- 457, 277, 116, 240, 233, 188, 119, 276, 219, 306,
- 359, 308, 357, 361, 307, 283, 288, 289, 290, 291,
- 292, 293, 294, 295, 296, 297, 298, 299, 282, 360,
- 338, 337, 336, 304, 305, 309, 311, 281, 310, 327,
- 328, 325, 326, 329, 330, 331, 332, 333,32767,32767,
- 452, 452,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767, 263, 263, 263, 263, 318, 319,32767,
- 264, 223, 223, 223, 223,32767, 223,32767,32767,32767,
- 32767, 406, 335, 313, 314, 312,32767, 386,32767, 388,
- 32767,32767, 301, 303, 381, 284,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767, 383, 416, 416,32767,32767,
- 32767, 375,32767, 156, 207, 209, 391,32767,32767,32767,
- 32767,32767, 323,32767,32767,32767,32767,32767,32767, 466,
- 32767,32767,32767,32767,32767, 416,32767, 416,32767,32767,
- 315, 316, 317,32767,32767,32767, 416, 416,32767,32767,
- 416,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767, 160,32767,32767, 389, 389,32767,
- 32767, 160, 384, 160,32767,32767, 160, 412, 160, 173,
- 32767, 171, 171,32767,32767, 175,32767, 430, 175,32767,
- 160, 193, 193, 367, 162, 225, 225, 367, 160, 225,
- 32767, 225,32767,32767,32767, 82,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767, 377,32767,32767,32767,32767, 407, 428, 375,
- 32767, 321, 322, 324,32767, 418, 346, 347, 348, 349,
- 350, 351, 352, 354,32767, 380,32767,32767,32767,32767,
- 32767,32767, 84, 108, 239,32767, 465, 84, 378,32767,
- 465,32767,32767,32767,32767,32767,32767, 280,32767,32767,
- 32767, 84,32767, 84,32767,32767,32767,32767, 416, 379,
- 32767, 320, 392, 434,32767,32767, 417,32767,32767, 214,
- 84,32767, 174,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767, 176,32767,32767, 416,32767,32767,32767,32767,
- 32767,32767, 275,32767,32767,32767,32767,32767, 416,32767,
- 32767,32767,32767, 218,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767,32767,32767,32767,32767, 82,
- 60,32767, 257,32767,32767,32767,32767,32767,32767,32767,
- 32767,32767,32767,32767,32767, 121, 121, 3, 3, 121,
- 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
- 121, 121, 121, 121, 242, 153, 242, 201, 242, 242,
- 204, 193, 193, 249
- );
-
- protected $goto = array(
- 159, 159, 132, 132, 132, 142, 144, 175, 160, 157,
- 157, 157, 157, 158, 158, 158, 158, 158, 158, 158,
- 153, 154, 155, 156, 172, 170, 173, 401, 402, 292,
- 403, 406, 407, 408, 409, 410, 411, 412, 413, 841,
- 133, 134, 135, 136, 137, 138, 139, 140, 141, 143,
- 169, 171, 174, 190, 193, 194, 195, 196, 198, 199,
- 200, 201, 202, 203, 204, 205, 206, 207, 227, 228,
- 243, 244, 245, 310, 311, 312, 451, 176, 177, 178,
- 179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
- 145, 189, 146, 161, 162, 163, 191, 164, 147, 148,
- 149, 165, 150, 192, 130, 166, 167, 151, 168, 152,
- 511, 422, 452, 812, 523, 677, 639, 503, 810, 271,
- 640, 427, 427, 427, 641, 753, 453, 733, 427, 547,
- 5, 416, 762, 757, 418, 421, 434, 454, 455, 457,
- 467, 486, 440, 443, 427, 550, 474, 476, 497, 501,
- 750, 506, 507, 764, 514, 749, 516, 522, 760, 524,
- 317, 488, 307, 307, 255, 305, 305, 252, 253, 276,
- 448, 316, 277, 320, 475, 404, 404, 404, 404, 404,
- 404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
- 926, 249, 240, 427, 427, 441, 460, 427, 427, 664,
- 427, 767, 767, 1005, 1005, 492, 415, 671, 502, 428,
- 291, 224, 415, 225, 226, 449, 405, 405, 405, 405,
- 405, 405, 405, 405, 405, 405, 405, 405, 405, 405,
- 405, 664, 664, 294, 1015, 1015, 433, 521, 444, 450,
- 464, 1016, 1016, 698, 1015, 469, 470, 517, 737, 927,
- 364, 1016, 472, 272, 327, 784, 446, 293, 8, 1009,
- 928, 981, 487, 1018, 839, 1002, 888, 780, 771, 306,
- 278, 992, 321, 300, 660, 303, 788, 658, 534, 325,
- 919, 657, 657, 665, 665, 665, 667, 924, 656, 358,
- 791, 668, 466, 369, 741, 828, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 273, 274,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 930, 0, 774, 774, 774,
- 774, 930, 774, 0, 774, 0, 0, 0, 0, 0,
- 820, 0, 989, 0, 0, 0, 0, 0, 989, 0,
- 0, 0, 0, 0, 0, 731, 731, 731, 731, 0,
- 726, 732, 500, 1000, 1000, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 987, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 790, 0, 790, 0, 0, 0, 0,
- 993, 994
- );
-
- protected $gotoCheck = array(
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 51, 8, 7, 7, 7, 10, 10, 7, 7, 63,
- 11, 8, 8, 8, 12, 10, 77, 10, 8, 10,
- 89, 10, 10, 10, 38, 38, 38, 38, 38, 38,
- 35, 35, 28, 8, 8, 28, 28, 28, 28, 28,
- 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
- 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
- 45, 45, 45, 45, 45, 110, 110, 110, 110, 110,
- 110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
- 73, 109, 109, 8, 8, 8, 8, 8, 8, 19,
- 8, 68, 68, 68, 68, 55, 106, 25, 55, 8,
- 55, 59, 106, 59, 59, 8, 111, 111, 111, 111,
- 111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
- 111, 19, 19, 52, 121, 121, 52, 5, 52, 2,
- 2, 122, 122, 44, 121, 54, 54, 54, 29, 73,
- 52, 122, 61, 61, 61, 75, 112, 41, 52, 120,
- 73, 73, 43, 121, 92, 118, 93, 72, 70, 42,
- 14, 115, 18, 9, 21, 13, 76, 20, 65, 17,
- 99, 19, 19, 19, 19, 19, 19, 101, 19, 57,
- 78, 22, 58, 97, 62, 91, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, 63, 63,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, 51, -1, 51, 51, 51,
- 51, 51, 51, -1, 51, -1, -1, -1, -1, -1,
- 89, -1, 77, -1, -1, -1, -1, -1, 77, -1,
- -1, -1, -1, -1, -1, 51, 51, 51, 51, -1,
- 51, 51, 51, 77, 77, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 77, -1, 77, -1, -1, -1, -1,
- 77, 77
- );
-
- protected $gotoBase = array(
- 0, 0, -288, 0, 0, 227, 0, 109, -135, 10,
- 114, 118, 122, -3, 24, 0, 0, -50, 15, -47,
- -2, 16, -62, -20, 0, 200, 0, 0, -384, 232,
- 0, 0, 0, 0, 0, 110, 0, 0, 100, 0,
- 0, 225, 55, 53, 229, -48, 0, 0, 0, 0,
- 0, 106, -110, 0, 13, -161, 0, -63, -66, -335,
- 0, -8, -65, -243, 0, -12, 0, 0, -7, 0,
- 32, 0, 29, -96, 0, 234, -6, 123, -64, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 120,
- 0, -75, 52, 31, 0, 0, 0, -74, 0, -58,
- 0, -54, 0, 0, 0, 0, -23, 0, 0, -56,
- -33, 8, 233, 0, 0, 20, 0, 0, 54, 0,
- 235, -5, 2, 0
- );
-
- protected $gotoDefault = array(
- -32768, 372, 555, 2, 556, 627, 635, 481, 392, 423,
- 735, 678, 679, 296, 333, 393, 295, 322, 318, 666,
- 659, 661, 669, 131, 323, 672, 1, 674, 429, 705,
- 284, 682, 285, 496, 684, 436, 686, 687, 417, 297,
- 298, 437, 304, 468, 697, 197, 301, 699, 283, 700,
- 708, 286, 499, 478, 458, 491, 394, 355, 465, 223,
- 445, 462, 740, 270, 748, 539, 756, 759, 395, 459,
- 770, 360, 778, 944, 313, 783, 789, 976, 792, 795,
- 340, 324, 471, 799, 800, 4, 804, 512, 513, 819,
- 230, 827, 840, 338, 907, 909, 431, 366, 920, 352,
- 326, 923, 980, 345, 396, 356, 936, 254, 275, 239,
- 397, 241, 414, 1008, 398, 357, 983, 308, 1003, 347,
- 1010, 1017, 268, 463
- );
-
- protected $ruleToNonTerminal = array(
- 0, 1, 3, 3, 2, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 6, 6, 6, 6, 6, 6, 6,
- 7, 7, 8, 8, 9, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 14, 14, 15, 15,
- 15, 15, 17, 17, 13, 13, 18, 18, 19, 19,
- 20, 20, 21, 21, 16, 16, 22, 24, 24, 25,
- 26, 26, 28, 27, 27, 27, 27, 29, 29, 29,
- 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
- 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
- 29, 10, 10, 48, 48, 50, 49, 49, 42, 42,
- 52, 52, 53, 53, 11, 12, 12, 12, 56, 56,
- 56, 57, 57, 60, 60, 58, 58, 61, 61, 36,
- 36, 44, 44, 47, 47, 47, 46, 46, 62, 37,
- 37, 37, 37, 63, 63, 64, 64, 65, 65, 34,
- 34, 30, 30, 66, 32, 32, 67, 31, 31, 33,
- 33, 43, 43, 43, 54, 54, 69, 69, 70, 70,
- 72, 72, 72, 71, 71, 55, 55, 73, 73, 74,
- 74, 75, 75, 75, 39, 39, 76, 40, 40, 78,
- 78, 59, 59, 79, 79, 79, 79, 84, 84, 85,
- 85, 86, 86, 86, 86, 86, 87, 88, 88, 83,
- 83, 80, 80, 82, 82, 90, 90, 89, 89, 89,
- 89, 89, 89, 81, 81, 91, 91, 41, 41, 35,
- 35, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
- 23, 23, 23, 23, 98, 92, 92, 97, 97, 100,
- 100, 101, 102, 102, 102, 106, 106, 51, 51, 51,
- 93, 93, 104, 104, 94, 94, 96, 96, 96, 99,
- 99, 110, 110, 111, 111, 111, 95, 95, 95, 95,
- 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
- 95, 95, 113, 113, 38, 38, 108, 108, 108, 103,
- 103, 103, 114, 114, 114, 114, 114, 114, 45, 45,
- 45, 77, 77, 77, 116, 107, 107, 107, 107, 107,
- 107, 105, 105, 105, 115, 115, 115, 68, 117, 117,
- 118, 118, 118, 112, 112, 119, 119, 120, 120, 120,
- 120, 109, 109, 109, 109, 122, 121, 121, 121, 121,
- 121, 121, 121, 123, 123, 123
- );
-
- protected $ruleToLength = array(
- 1, 1, 2, 0, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 3, 1, 1, 1, 1, 1, 3,
- 5, 4, 3, 4, 2, 3, 1, 1, 7, 8,
- 6, 7, 3, 1, 3, 1, 3, 1, 1, 3,
- 1, 2, 1, 2, 3, 1, 3, 3, 1, 3,
- 2, 0, 1, 1, 1, 1, 1, 3, 7, 10,
- 5, 7, 9, 5, 3, 3, 3, 3, 3, 3,
- 1, 2, 5, 7, 9, 5, 6, 3, 3, 2,
- 1, 1, 1, 0, 2, 8, 0, 4, 1, 3,
- 0, 1, 0, 1, 10, 7, 6, 5, 1, 2,
- 2, 0, 2, 0, 2, 0, 2, 1, 3, 1,
- 4, 1, 4, 1, 1, 4, 1, 3, 3, 3,
- 4, 4, 5, 0, 2, 4, 3, 1, 1, 1,
- 4, 0, 2, 5, 0, 2, 6, 0, 2, 0,
- 3, 1, 2, 1, 1, 0, 1, 3, 4, 6,
- 1, 1, 1, 0, 1, 0, 2, 2, 3, 1,
- 3, 1, 2, 2, 3, 1, 1, 3, 1, 1,
- 3, 2, 0, 3, 3, 9, 3, 1, 3, 0,
- 2, 4, 5, 4, 4, 4, 3, 1, 1, 1,
- 3, 1, 1, 0, 1, 1, 2, 1, 1, 1,
- 1, 1, 1, 1, 3, 1, 3, 3, 1, 0,
- 1, 1, 3, 3, 4, 4, 1, 2, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 2, 2, 2, 2, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 2, 2, 2, 2, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 5, 4, 3, 4,
- 4, 2, 2, 4, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 1, 3, 2, 1, 2,
- 4, 2, 10, 11, 7, 3, 2, 0, 4, 1,
- 3, 2, 2, 2, 4, 1, 1, 1, 2, 3,
- 1, 1, 1, 1, 0, 3, 0, 1, 1, 0,
- 1, 1, 3, 4, 3, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 3, 2,
- 3, 3, 0, 1, 0, 1, 1, 3, 1, 1,
- 3, 1, 1, 4, 4, 4, 1, 4, 1, 1,
- 3, 1, 4, 2, 3, 1, 4, 4, 3, 3,
- 3, 1, 3, 1, 1, 3, 1, 4, 3, 1,
- 1, 1, 0, 0, 2, 3, 1, 3, 1, 4,
- 2, 2, 2, 1, 2, 1, 1, 4, 3, 3,
- 3, 6, 3, 1, 1, 1
- );
-
- protected function reduceRule0() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule1() {
- $this->semValue = $this->handleNamespaces($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule2() {
- if (is_array($this->semStack[$this->stackPos-(2-2)])) { $this->semValue = array_merge($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)]); } else { $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)]; };
- }
-
- protected function reduceRule3() {
- $this->semValue = array();
- }
-
- protected function reduceRule4() {
- $startAttributes = $this->lookaheadStartAttributes; if (isset($startAttributes['comments'])) { $nop = new Stmt\Nop(['comments' => $startAttributes['comments']]); } else { $nop = null; };
- if ($nop !== null) { $this->semStack[$this->stackPos-(1-1)][] = $nop; } $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule5() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule6() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule7() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule8() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule9() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule10() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule11() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule12() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule13() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule14() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule15() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule16() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule17() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule18() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule19() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule20() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule21() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule22() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule23() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule24() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule25() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule26() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule27() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule28() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule29() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule30() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule31() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule32() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule33() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule34() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule35() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule36() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule37() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule38() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule39() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule40() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule41() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule42() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule43() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule44() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule45() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule46() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule47() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule48() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule49() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule50() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule51() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule52() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule53() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule54() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule55() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule56() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule57() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule58() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule59() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule60() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule61() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule62() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule63() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule64() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule65() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule66() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule67() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule68() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule69() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule70() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule71() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule72() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule73() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule74() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule75() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule76() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule77() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule78() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule79() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule80() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule81() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule82() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule83() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule84() {
- $this->semValue = new Name($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule85() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule86() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule87() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule88() {
- $this->semValue = new Stmt\HaltCompiler($this->lexer->handleHaltCompiler(), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule89() {
- $this->semValue = new Stmt\Namespace_($this->semStack[$this->stackPos-(3-2)], null, $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule90() {
- $this->semValue = new Stmt\Namespace_($this->semStack[$this->stackPos-(5-2)], $this->semStack[$this->stackPos-(5-4)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule91() {
- $this->semValue = new Stmt\Namespace_(null, $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule92() {
- $this->semValue = new Stmt\Use_($this->semStack[$this->stackPos-(3-2)], Stmt\Use_::TYPE_NORMAL, $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule93() {
- $this->semValue = new Stmt\Use_($this->semStack[$this->stackPos-(4-3)], $this->semStack[$this->stackPos-(4-2)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule94() {
- $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule95() {
- $this->semValue = new Stmt\Const_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule96() {
- $this->semValue = Stmt\Use_::TYPE_FUNCTION;
- }
-
- protected function reduceRule97() {
- $this->semValue = Stmt\Use_::TYPE_CONSTANT;
- }
-
- protected function reduceRule98() {
- $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$this->stackPos-(7-3)], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(7-6)], $this->semStack[$this->stackPos-(7-2)], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes);
- }
-
- protected function reduceRule99() {
- $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$this->stackPos-(8-4)], $this->startAttributeStack[$this->stackPos-(8-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(8-7)], $this->semStack[$this->stackPos-(8-2)], $this->startAttributeStack[$this->stackPos-(8-1)] + $this->endAttributes);
- }
-
- protected function reduceRule100() {
- $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$this->stackPos-(6-2)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(6-5)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule101() {
- $this->semValue = new Stmt\GroupUse(new Name($this->semStack[$this->stackPos-(7-3)], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(7-6)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes);
- }
-
- protected function reduceRule102() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule103() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule104() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule105() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule106() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule107() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule108() {
- $this->semValue = new Stmt\UseUse($this->semStack[$this->stackPos-(1-1)], null, Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule109() {
- $this->semValue = new Stmt\UseUse($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], Stmt\Use_::TYPE_UNKNOWN, $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule110() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule111() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule112() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)]; $this->semValue->type = Stmt\Use_::TYPE_NORMAL;
- }
-
- protected function reduceRule113() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)]; $this->semValue->type = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule114() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule115() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule116() {
- $this->semValue = new Node\Const_($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule117() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule118() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule119() {
- $this->semValue = new Node\Const_($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule120() {
- if (is_array($this->semStack[$this->stackPos-(2-2)])) { $this->semValue = array_merge($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)]); } else { $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)]; };
- }
-
- protected function reduceRule121() {
- $this->semValue = array();
- }
-
- protected function reduceRule122() {
- $startAttributes = $this->lookaheadStartAttributes; if (isset($startAttributes['comments'])) { $nop = new Stmt\Nop(['comments' => $startAttributes['comments']]); } else { $nop = null; };
- if ($nop !== null) { $this->semStack[$this->stackPos-(1-1)][] = $nop; } $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule123() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule124() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule125() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule126() {
- throw new Error('__HALT_COMPILER() can only be used from the outermost scope', $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule127() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule128() {
- $this->semValue = new Stmt\If_($this->semStack[$this->stackPos-(7-3)], ['stmts' => is_array($this->semStack[$this->stackPos-(7-5)]) ? $this->semStack[$this->stackPos-(7-5)] : array($this->semStack[$this->stackPos-(7-5)]), 'elseifs' => $this->semStack[$this->stackPos-(7-6)], 'else' => $this->semStack[$this->stackPos-(7-7)]], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes);
- }
-
- protected function reduceRule129() {
- $this->semValue = new Stmt\If_($this->semStack[$this->stackPos-(10-3)], ['stmts' => $this->semStack[$this->stackPos-(10-6)], 'elseifs' => $this->semStack[$this->stackPos-(10-7)], 'else' => $this->semStack[$this->stackPos-(10-8)]], $this->startAttributeStack[$this->stackPos-(10-1)] + $this->endAttributes);
- }
-
- protected function reduceRule130() {
- $this->semValue = new Stmt\While_($this->semStack[$this->stackPos-(5-3)], $this->semStack[$this->stackPos-(5-5)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule131() {
- $this->semValue = new Stmt\Do_($this->semStack[$this->stackPos-(7-5)], is_array($this->semStack[$this->stackPos-(7-2)]) ? $this->semStack[$this->stackPos-(7-2)] : array($this->semStack[$this->stackPos-(7-2)]), $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes);
- }
-
- protected function reduceRule132() {
- $this->semValue = new Stmt\For_(['init' => $this->semStack[$this->stackPos-(9-3)], 'cond' => $this->semStack[$this->stackPos-(9-5)], 'loop' => $this->semStack[$this->stackPos-(9-7)], 'stmts' => $this->semStack[$this->stackPos-(9-9)]], $this->startAttributeStack[$this->stackPos-(9-1)] + $this->endAttributes);
- }
-
- protected function reduceRule133() {
- $this->semValue = new Stmt\Switch_($this->semStack[$this->stackPos-(5-3)], $this->semStack[$this->stackPos-(5-5)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule134() {
- $this->semValue = new Stmt\Break_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule135() {
- $this->semValue = new Stmt\Continue_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule136() {
- $this->semValue = new Stmt\Return_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule137() {
- $this->semValue = new Stmt\Global_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule138() {
- $this->semValue = new Stmt\Static_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule139() {
- $this->semValue = new Stmt\Echo_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule140() {
- $this->semValue = new Stmt\InlineHTML($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule141() {
- $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule142() {
- $this->semValue = new Stmt\Unset_($this->semStack[$this->stackPos-(5-3)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule143() {
- $this->semValue = new Stmt\Foreach_($this->semStack[$this->stackPos-(7-3)], $this->semStack[$this->stackPos-(7-5)][0], ['keyVar' => null, 'byRef' => $this->semStack[$this->stackPos-(7-5)][1], 'stmts' => $this->semStack[$this->stackPos-(7-7)]], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes);
- }
-
- protected function reduceRule144() {
- $this->semValue = new Stmt\Foreach_($this->semStack[$this->stackPos-(9-3)], $this->semStack[$this->stackPos-(9-7)][0], ['keyVar' => $this->semStack[$this->stackPos-(9-5)], 'byRef' => $this->semStack[$this->stackPos-(9-7)][1], 'stmts' => $this->semStack[$this->stackPos-(9-9)]], $this->startAttributeStack[$this->stackPos-(9-1)] + $this->endAttributes);
- }
-
- protected function reduceRule145() {
- $this->semValue = new Stmt\Declare_($this->semStack[$this->stackPos-(5-3)], $this->semStack[$this->stackPos-(5-5)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule146() {
- $this->semValue = new Stmt\TryCatch($this->semStack[$this->stackPos-(6-3)], $this->semStack[$this->stackPos-(6-5)], $this->semStack[$this->stackPos-(6-6)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule147() {
- $this->semValue = new Stmt\Throw_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule148() {
- $this->semValue = new Stmt\Goto_($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule149() {
- $this->semValue = new Stmt\Label($this->semStack[$this->stackPos-(2-1)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule150() {
- $this->semValue = array(); /* means: no statement */
- }
-
- protected function reduceRule151() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule152() {
- $startAttributes = $this->startAttributeStack[$this->stackPos-(1-1)]; if (isset($startAttributes['comments'])) { $this->semValue = new Stmt\Nop(['comments' => $startAttributes['comments']]); } else { $this->semValue = null; };
- if ($this->semValue === null) $this->semValue = array(); /* means: no statement */
- }
-
- protected function reduceRule153() {
- $this->semValue = array();
- }
-
- protected function reduceRule154() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule155() {
- $this->semValue = new Stmt\Catch_($this->semStack[$this->stackPos-(8-3)], substr($this->semStack[$this->stackPos-(8-4)], 1), $this->semStack[$this->stackPos-(8-7)], $this->startAttributeStack[$this->stackPos-(8-1)] + $this->endAttributes);
- }
-
- protected function reduceRule156() {
- $this->semValue = null;
- }
-
- protected function reduceRule157() {
- $this->semValue = $this->semStack[$this->stackPos-(4-3)];
- }
-
- protected function reduceRule158() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule159() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule160() {
- $this->semValue = false;
- }
-
- protected function reduceRule161() {
- $this->semValue = true;
- }
-
- protected function reduceRule162() {
- $this->semValue = false;
- }
-
- protected function reduceRule163() {
- $this->semValue = true;
- }
-
- protected function reduceRule164() {
- $this->semValue = new Stmt\Function_($this->semStack[$this->stackPos-(10-3)], ['byRef' => $this->semStack[$this->stackPos-(10-2)], 'params' => $this->semStack[$this->stackPos-(10-5)], 'returnType' => $this->semStack[$this->stackPos-(10-7)], 'stmts' => $this->semStack[$this->stackPos-(10-9)]], $this->startAttributeStack[$this->stackPos-(10-1)] + $this->endAttributes);
- }
-
- protected function reduceRule165() {
- $this->semValue = new Stmt\Class_($this->semStack[$this->stackPos-(7-2)], ['type' => $this->semStack[$this->stackPos-(7-1)], 'extends' => $this->semStack[$this->stackPos-(7-3)], 'implements' => $this->semStack[$this->stackPos-(7-4)], 'stmts' => $this->semStack[$this->stackPos-(7-6)]], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes);
- }
-
- protected function reduceRule166() {
- $this->semValue = new Stmt\Interface_($this->semStack[$this->stackPos-(6-2)], ['extends' => $this->semStack[$this->stackPos-(6-3)], 'stmts' => $this->semStack[$this->stackPos-(6-5)]], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule167() {
- $this->semValue = new Stmt\Trait_($this->semStack[$this->stackPos-(5-2)], $this->semStack[$this->stackPos-(5-4)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule168() {
- $this->semValue = 0;
- }
-
- protected function reduceRule169() {
- $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT;
- }
-
- protected function reduceRule170() {
- $this->semValue = Stmt\Class_::MODIFIER_FINAL;
- }
-
- protected function reduceRule171() {
- $this->semValue = null;
- }
-
- protected function reduceRule172() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule173() {
- $this->semValue = array();
- }
-
- protected function reduceRule174() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule175() {
- $this->semValue = array();
- }
-
- protected function reduceRule176() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule177() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule178() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule179() {
- $this->semValue = is_array($this->semStack[$this->stackPos-(1-1)]) ? $this->semStack[$this->stackPos-(1-1)] : array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule180() {
- $this->semValue = $this->semStack[$this->stackPos-(4-2)];
- }
-
- protected function reduceRule181() {
- $this->semValue = is_array($this->semStack[$this->stackPos-(1-1)]) ? $this->semStack[$this->stackPos-(1-1)] : array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule182() {
- $this->semValue = $this->semStack[$this->stackPos-(4-2)];
- }
-
- protected function reduceRule183() {
- $this->semValue = is_array($this->semStack[$this->stackPos-(1-1)]) ? $this->semStack[$this->stackPos-(1-1)] : array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule184() {
- $this->semValue = null;
- }
-
- protected function reduceRule185() {
- $this->semValue = $this->semStack[$this->stackPos-(4-2)];
- }
-
- protected function reduceRule186() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule187() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule188() {
- $this->semValue = new Stmt\DeclareDeclare($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule189() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule190() {
- $this->semValue = $this->semStack[$this->stackPos-(4-3)];
- }
-
- protected function reduceRule191() {
- $this->semValue = $this->semStack[$this->stackPos-(4-2)];
- }
-
- protected function reduceRule192() {
- $this->semValue = $this->semStack[$this->stackPos-(5-3)];
- }
-
- protected function reduceRule193() {
- $this->semValue = array();
- }
-
- protected function reduceRule194() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule195() {
- $this->semValue = new Stmt\Case_($this->semStack[$this->stackPos-(4-2)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule196() {
- $this->semValue = new Stmt\Case_(null, $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule197() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule198() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule199() {
- $this->semValue = is_array($this->semStack[$this->stackPos-(1-1)]) ? $this->semStack[$this->stackPos-(1-1)] : array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule200() {
- $this->semValue = $this->semStack[$this->stackPos-(4-2)];
- }
-
- protected function reduceRule201() {
- $this->semValue = array();
- }
-
- protected function reduceRule202() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule203() {
- $this->semValue = new Stmt\ElseIf_($this->semStack[$this->stackPos-(5-3)], is_array($this->semStack[$this->stackPos-(5-5)]) ? $this->semStack[$this->stackPos-(5-5)] : array($this->semStack[$this->stackPos-(5-5)]), $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule204() {
- $this->semValue = array();
- }
-
- protected function reduceRule205() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule206() {
- $this->semValue = new Stmt\ElseIf_($this->semStack[$this->stackPos-(6-3)], $this->semStack[$this->stackPos-(6-6)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule207() {
- $this->semValue = null;
- }
-
- protected function reduceRule208() {
- $this->semValue = new Stmt\Else_(is_array($this->semStack[$this->stackPos-(2-2)]) ? $this->semStack[$this->stackPos-(2-2)] : array($this->semStack[$this->stackPos-(2-2)]), $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule209() {
- $this->semValue = null;
- }
-
- protected function reduceRule210() {
- $this->semValue = new Stmt\Else_($this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule211() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)], false);
- }
-
- protected function reduceRule212() {
- $this->semValue = array($this->semStack[$this->stackPos-(2-2)], true);
- }
-
- protected function reduceRule213() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)], false);
- }
-
- protected function reduceRule214() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule215() {
- $this->semValue = array();
- }
-
- protected function reduceRule216() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule217() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule218() {
- $this->semValue = new Node\Param(substr($this->semStack[$this->stackPos-(4-4)], 1), null, $this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-2)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule219() {
- $this->semValue = new Node\Param(substr($this->semStack[$this->stackPos-(6-4)], 1), $this->semStack[$this->stackPos-(6-6)], $this->semStack[$this->stackPos-(6-1)], $this->semStack[$this->stackPos-(6-2)], $this->semStack[$this->stackPos-(6-3)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule220() {
- $this->semValue = $this->handleScalarTypes($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule221() {
- $this->semValue = 'array';
- }
-
- protected function reduceRule222() {
- $this->semValue = 'callable';
- }
-
- protected function reduceRule223() {
- $this->semValue = null;
- }
-
- protected function reduceRule224() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule225() {
- $this->semValue = null;
- }
-
- protected function reduceRule226() {
- $this->semValue = $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule227() {
- $this->semValue = array();
- }
-
- protected function reduceRule228() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule229() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule230() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule231() {
- $this->semValue = new Node\Arg($this->semStack[$this->stackPos-(1-1)], false, false, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule232() {
- $this->semValue = new Node\Arg($this->semStack[$this->stackPos-(2-2)], true, false, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule233() {
- $this->semValue = new Node\Arg($this->semStack[$this->stackPos-(2-2)], false, true, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule234() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule235() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule236() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule237() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule238() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule239() {
- $this->semValue = new Stmt\StaticVar(substr($this->semStack[$this->stackPos-(1-1)], 1), null, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule240() {
- $this->semValue = new Stmt\StaticVar(substr($this->semStack[$this->stackPos-(3-1)], 1), $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule241() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule242() {
- $this->semValue = array();
- }
-
- protected function reduceRule243() {
- $this->semValue = new Stmt\Property($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule244() {
- $this->semValue = new Stmt\ClassConst($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule245() {
- $this->semValue = new Stmt\ClassMethod($this->semStack[$this->stackPos-(9-4)], ['type' => $this->semStack[$this->stackPos-(9-1)], 'byRef' => $this->semStack[$this->stackPos-(9-3)], 'params' => $this->semStack[$this->stackPos-(9-6)], 'returnType' => $this->semStack[$this->stackPos-(9-8)], 'stmts' => $this->semStack[$this->stackPos-(9-9)]], $this->startAttributeStack[$this->stackPos-(9-1)] + $this->endAttributes);
- }
-
- protected function reduceRule246() {
- $this->semValue = new Stmt\TraitUse($this->semStack[$this->stackPos-(3-2)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule247() {
- $this->semValue = array();
- }
-
- protected function reduceRule248() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule249() {
- $this->semValue = array();
- }
-
- protected function reduceRule250() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule251() {
- $this->semValue = new Stmt\TraitUseAdaptation\Precedence($this->semStack[$this->stackPos-(4-1)][0], $this->semStack[$this->stackPos-(4-1)][1], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule252() {
- $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$this->stackPos-(5-1)][0], $this->semStack[$this->stackPos-(5-1)][1], $this->semStack[$this->stackPos-(5-3)], $this->semStack[$this->stackPos-(5-4)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule253() {
- $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$this->stackPos-(4-1)][0], $this->semStack[$this->stackPos-(4-1)][1], $this->semStack[$this->stackPos-(4-3)], null, $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule254() {
- $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$this->stackPos-(4-1)][0], $this->semStack[$this->stackPos-(4-1)][1], null, $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule255() {
- $this->semValue = new Stmt\TraitUseAdaptation\Alias($this->semStack[$this->stackPos-(4-1)][0], $this->semStack[$this->stackPos-(4-1)][1], null, $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule256() {
- $this->semValue = array($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)]);
- }
-
- protected function reduceRule257() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule258() {
- $this->semValue = array(null, $this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule259() {
- $this->semValue = null;
- }
-
- protected function reduceRule260() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule261() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule262() {
- $this->semValue = 0;
- }
-
- protected function reduceRule263() {
- $this->semValue = 0;
- }
-
- protected function reduceRule264() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule265() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule266() {
- Stmt\Class_::verifyModifier($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)]); $this->semValue = $this->semStack[$this->stackPos-(2-1)] | $this->semStack[$this->stackPos-(2-2)];
- }
-
- protected function reduceRule267() {
- $this->semValue = Stmt\Class_::MODIFIER_PUBLIC;
- }
-
- protected function reduceRule268() {
- $this->semValue = Stmt\Class_::MODIFIER_PROTECTED;
- }
-
- protected function reduceRule269() {
- $this->semValue = Stmt\Class_::MODIFIER_PRIVATE;
- }
-
- protected function reduceRule270() {
- $this->semValue = Stmt\Class_::MODIFIER_STATIC;
- }
-
- protected function reduceRule271() {
- $this->semValue = Stmt\Class_::MODIFIER_ABSTRACT;
- }
-
- protected function reduceRule272() {
- $this->semValue = Stmt\Class_::MODIFIER_FINAL;
- }
-
- protected function reduceRule273() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule274() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule275() {
- $this->semValue = new Stmt\PropertyProperty(substr($this->semStack[$this->stackPos-(1-1)], 1), null, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule276() {
- $this->semValue = new Stmt\PropertyProperty(substr($this->semStack[$this->stackPos-(3-1)], 1), $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule277() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule278() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule279() {
- $this->semValue = array();
- }
-
- protected function reduceRule280() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule281() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule282() {
- $this->semValue = new Expr\Assign($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule283() {
- $this->semValue = new Expr\Assign($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule284() {
- $this->semValue = new Expr\AssignRef($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule285() {
- $this->semValue = new Expr\AssignRef($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule286() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule287() {
- $this->semValue = new Expr\Clone_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule288() {
- $this->semValue = new Expr\AssignOp\Plus($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule289() {
- $this->semValue = new Expr\AssignOp\Minus($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule290() {
- $this->semValue = new Expr\AssignOp\Mul($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule291() {
- $this->semValue = new Expr\AssignOp\Div($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule292() {
- $this->semValue = new Expr\AssignOp\Concat($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule293() {
- $this->semValue = new Expr\AssignOp\Mod($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule294() {
- $this->semValue = new Expr\AssignOp\BitwiseAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule295() {
- $this->semValue = new Expr\AssignOp\BitwiseOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule296() {
- $this->semValue = new Expr\AssignOp\BitwiseXor($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule297() {
- $this->semValue = new Expr\AssignOp\ShiftLeft($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule298() {
- $this->semValue = new Expr\AssignOp\ShiftRight($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule299() {
- $this->semValue = new Expr\AssignOp\Pow($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule300() {
- $this->semValue = new Expr\PostInc($this->semStack[$this->stackPos-(2-1)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule301() {
- $this->semValue = new Expr\PreInc($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule302() {
- $this->semValue = new Expr\PostDec($this->semStack[$this->stackPos-(2-1)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule303() {
- $this->semValue = new Expr\PreDec($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule304() {
- $this->semValue = new Expr\BinaryOp\BooleanOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule305() {
- $this->semValue = new Expr\BinaryOp\BooleanAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule306() {
- $this->semValue = new Expr\BinaryOp\LogicalOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule307() {
- $this->semValue = new Expr\BinaryOp\LogicalAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule308() {
- $this->semValue = new Expr\BinaryOp\LogicalXor($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule309() {
- $this->semValue = new Expr\BinaryOp\BitwiseOr($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule310() {
- $this->semValue = new Expr\BinaryOp\BitwiseAnd($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule311() {
- $this->semValue = new Expr\BinaryOp\BitwiseXor($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule312() {
- $this->semValue = new Expr\BinaryOp\Concat($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule313() {
- $this->semValue = new Expr\BinaryOp\Plus($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule314() {
- $this->semValue = new Expr\BinaryOp\Minus($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule315() {
- $this->semValue = new Expr\BinaryOp\Mul($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule316() {
- $this->semValue = new Expr\BinaryOp\Div($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule317() {
- $this->semValue = new Expr\BinaryOp\Mod($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule318() {
- $this->semValue = new Expr\BinaryOp\ShiftLeft($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule319() {
- $this->semValue = new Expr\BinaryOp\ShiftRight($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule320() {
- $this->semValue = new Expr\BinaryOp\Pow($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule321() {
- $this->semValue = new Expr\UnaryPlus($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule322() {
- $this->semValue = new Expr\UnaryMinus($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule323() {
- $this->semValue = new Expr\BooleanNot($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule324() {
- $this->semValue = new Expr\BitwiseNot($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule325() {
- $this->semValue = new Expr\BinaryOp\Identical($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule326() {
- $this->semValue = new Expr\BinaryOp\NotIdentical($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule327() {
- $this->semValue = new Expr\BinaryOp\Equal($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule328() {
- $this->semValue = new Expr\BinaryOp\NotEqual($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule329() {
- $this->semValue = new Expr\BinaryOp\Spaceship($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule330() {
- $this->semValue = new Expr\BinaryOp\Smaller($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule331() {
- $this->semValue = new Expr\BinaryOp\SmallerOrEqual($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule332() {
- $this->semValue = new Expr\BinaryOp\Greater($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule333() {
- $this->semValue = new Expr\BinaryOp\GreaterOrEqual($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule334() {
- $this->semValue = new Expr\Instanceof_($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule335() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule336() {
- $this->semValue = new Expr\Ternary($this->semStack[$this->stackPos-(5-1)], $this->semStack[$this->stackPos-(5-3)], $this->semStack[$this->stackPos-(5-5)], $this->startAttributeStack[$this->stackPos-(5-1)] + $this->endAttributes);
- }
-
- protected function reduceRule337() {
- $this->semValue = new Expr\Ternary($this->semStack[$this->stackPos-(4-1)], null, $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule338() {
- $this->semValue = new Expr\BinaryOp\Coalesce($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule339() {
- $this->semValue = new Expr\Isset_($this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule340() {
- $this->semValue = new Expr\Empty_($this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule341() {
- $this->semValue = new Expr\Include_($this->semStack[$this->stackPos-(2-2)], Expr\Include_::TYPE_INCLUDE, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule342() {
- $this->semValue = new Expr\Include_($this->semStack[$this->stackPos-(2-2)], Expr\Include_::TYPE_INCLUDE_ONCE, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule343() {
- $this->semValue = new Expr\Eval_($this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule344() {
- $this->semValue = new Expr\Include_($this->semStack[$this->stackPos-(2-2)], Expr\Include_::TYPE_REQUIRE, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule345() {
- $this->semValue = new Expr\Include_($this->semStack[$this->stackPos-(2-2)], Expr\Include_::TYPE_REQUIRE_ONCE, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule346() {
- $this->semValue = new Expr\Cast\Int_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule347() {
- $this->semValue = new Expr\Cast\Double($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule348() {
- $this->semValue = new Expr\Cast\String_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule349() {
- $this->semValue = new Expr\Cast\Array_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule350() {
- $this->semValue = new Expr\Cast\Object_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule351() {
- $this->semValue = new Expr\Cast\Bool_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule352() {
- $this->semValue = new Expr\Cast\Unset_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule353() {
- $attrs = $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes;
- $attrs['kind'] = strtolower($this->semStack[$this->stackPos-(2-1)]) === 'exit' ? Expr\Exit_::KIND_EXIT : Expr\Exit_::KIND_DIE;
- $this->semValue = new Expr\Exit_($this->semStack[$this->stackPos-(2-2)], $attrs);
- }
-
- protected function reduceRule354() {
- $this->semValue = new Expr\ErrorSuppress($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule355() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule356() {
- $this->semValue = new Expr\ShellExec($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule357() {
- $this->semValue = new Expr\Print_($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule358() {
- $this->semValue = new Expr\Yield_(null, null, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule359() {
- $this->semValue = new Expr\Yield_($this->semStack[$this->stackPos-(2-2)], null, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule360() {
- $this->semValue = new Expr\Yield_($this->semStack[$this->stackPos-(4-4)], $this->semStack[$this->stackPos-(4-2)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule361() {
- $this->semValue = new Expr\YieldFrom($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule362() {
- $this->semValue = new Expr\Closure(['static' => false, 'byRef' => $this->semStack[$this->stackPos-(10-2)], 'params' => $this->semStack[$this->stackPos-(10-4)], 'uses' => $this->semStack[$this->stackPos-(10-6)], 'returnType' => $this->semStack[$this->stackPos-(10-7)], 'stmts' => $this->semStack[$this->stackPos-(10-9)]], $this->startAttributeStack[$this->stackPos-(10-1)] + $this->endAttributes);
- }
-
- protected function reduceRule363() {
- $this->semValue = new Expr\Closure(['static' => true, 'byRef' => $this->semStack[$this->stackPos-(11-3)], 'params' => $this->semStack[$this->stackPos-(11-5)], 'uses' => $this->semStack[$this->stackPos-(11-7)], 'returnType' => $this->semStack[$this->stackPos-(11-8)], 'stmts' => $this->semStack[$this->stackPos-(11-10)]], $this->startAttributeStack[$this->stackPos-(11-1)] + $this->endAttributes);
- }
-
- protected function reduceRule364() {
- $this->semValue = array(new Stmt\Class_(null, ['type' => 0, 'extends' => $this->semStack[$this->stackPos-(7-3)], 'implements' => $this->semStack[$this->stackPos-(7-4)], 'stmts' => $this->semStack[$this->stackPos-(7-6)]], $this->startAttributeStack[$this->stackPos-(7-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(7-2)]);
- }
-
- protected function reduceRule365() {
- $this->semValue = new Expr\New_($this->semStack[$this->stackPos-(3-2)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule366() {
- list($class, $ctorArgs) = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = new Expr\New_($class, $ctorArgs, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule367() {
- $this->semValue = array();
- }
-
- protected function reduceRule368() {
- $this->semValue = $this->semStack[$this->stackPos-(4-3)];
- }
-
- protected function reduceRule369() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule370() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule371() {
- $this->semValue = new Expr\ClosureUse(substr($this->semStack[$this->stackPos-(2-2)], 1), $this->semStack[$this->stackPos-(2-1)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule372() {
- $this->semValue = new Expr\FuncCall($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule373() {
- $this->semValue = new Expr\FuncCall($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule374() {
- $this->semValue = new Expr\StaticCall($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule375() {
- $this->semValue = new Name($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule376() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule377() {
- $this->semValue = new Name($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule378() {
- $this->semValue = new Name\FullyQualified($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule379() {
- $this->semValue = new Name\Relative($this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule380() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule381() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule382() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule383() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule384() {
- $this->semValue = null;
- }
-
- protected function reduceRule385() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule386() {
- $this->semValue = array();
- }
-
- protected function reduceRule387() {
- $this->semValue = array(new Scalar\EncapsedStringPart(Scalar\String_::parseEscapeSequences($this->semStack[$this->stackPos-(1-1)], '`'), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes));
- }
-
- protected function reduceRule388() {
- foreach ($this->semStack[$this->stackPos-(1-1)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, '`', true); } }; $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule389() {
- $this->semValue = array();
- }
-
- protected function reduceRule390() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule391() {
- $this->semValue = new Expr\ConstFetch($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule392() {
- $this->semValue = new Expr\ClassConstFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule393() {
- $attrs = $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes; $attrs['kind'] = Expr\Array_::KIND_LONG;
- $this->semValue = new Expr\Array_($this->semStack[$this->stackPos-(4-3)], $attrs);
- }
-
- protected function reduceRule394() {
- $attrs = $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes; $attrs['kind'] = Expr\Array_::KIND_SHORT;
- $this->semValue = new Expr\Array_($this->semStack[$this->stackPos-(3-2)], $attrs);
- }
-
- protected function reduceRule395() {
- $attrs = $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes; $attrs['kind'] = ($this->semStack[$this->stackPos-(1-1)][0] === "'" || ($this->semStack[$this->stackPos-(1-1)][1] === "'" && ($this->semStack[$this->stackPos-(1-1)][0] === 'b' || $this->semStack[$this->stackPos-(1-1)][0] === 'B')) ? Scalar\String_::KIND_SINGLE_QUOTED : Scalar\String_::KIND_DOUBLE_QUOTED);
- $this->semValue = new Scalar\String_(Scalar\String_::parse($this->semStack[$this->stackPos-(1-1)]), $attrs);
- }
-
- protected function reduceRule396() {
- $this->semValue = Scalar\LNumber::fromString($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule397() {
- $this->semValue = new Scalar\DNumber(Scalar\DNumber::parse($this->semStack[$this->stackPos-(1-1)]), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule398() {
- $this->semValue = new Scalar\MagicConst\Line($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule399() {
- $this->semValue = new Scalar\MagicConst\File($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule400() {
- $this->semValue = new Scalar\MagicConst\Dir($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule401() {
- $this->semValue = new Scalar\MagicConst\Class_($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule402() {
- $this->semValue = new Scalar\MagicConst\Trait_($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule403() {
- $this->semValue = new Scalar\MagicConst\Method($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule404() {
- $this->semValue = new Scalar\MagicConst\Function_($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule405() {
- $this->semValue = new Scalar\MagicConst\Namespace_($this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule406() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule407() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule408() {
- $attrs = $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes; $attrs['kind'] = strpos($this->semStack[$this->stackPos-(3-1)], "'") === false ? Scalar\String_::KIND_HEREDOC : Scalar\String_::KIND_NOWDOC; preg_match('/\A[bB]?<<<[ \t]*[\'"]?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\'"]?(?:\r\n|\n|\r)\z/', $this->semStack[$this->stackPos-(3-1)], $matches); $attrs['docLabel'] = $matches[1];;
- $this->semValue = new Scalar\String_(Scalar\String_::parseDocString($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-2)]), $attrs);
- }
-
- protected function reduceRule409() {
- $attrs = $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes; $attrs['kind'] = strpos($this->semStack[$this->stackPos-(2-1)], "'") === false ? Scalar\String_::KIND_HEREDOC : Scalar\String_::KIND_NOWDOC; preg_match('/\A[bB]?<<<[ \t]*[\'"]?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\'"]?(?:\r\n|\n|\r)\z/', $this->semStack[$this->stackPos-(2-1)], $matches); $attrs['docLabel'] = $matches[1];;
- $this->semValue = new Scalar\String_('', $attrs);
- }
-
- protected function reduceRule410() {
- $attrs = $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes; $attrs['kind'] = Scalar\String_::KIND_DOUBLE_QUOTED;
- foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, '"', true); } }; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $attrs);
- }
-
- protected function reduceRule411() {
- $attrs = $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes; $attrs['kind'] = strpos($this->semStack[$this->stackPos-(3-1)], "'") === false ? Scalar\String_::KIND_HEREDOC : Scalar\String_::KIND_NOWDOC; preg_match('/\A[bB]?<<<[ \t]*[\'"]?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\'"]?(?:\r\n|\n|\r)\z/', $this->semStack[$this->stackPos-(3-1)], $matches); $attrs['docLabel'] = $matches[1];;
- foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, true); } } $s->value = preg_replace('~(\r\n|\n|\r)\z~', '', $s->value); if ('' === $s->value) array_pop($this->semStack[$this->stackPos-(3-2)]);; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $attrs);
- }
-
- protected function reduceRule412() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule413() {
- $this->semValue = $this->semStack[$this->stackPos];
- }
-
- protected function reduceRule414() {
- $this->semValue = null;
- }
-
- protected function reduceRule415() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule416() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule417() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule418() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule419() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule420() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule421() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule422() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule423() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule424() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule425() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule426() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule427() {
- $this->semValue = new Expr\MethodCall($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->semStack[$this->stackPos-(4-4)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule428() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule429() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule430() {
- $this->semValue = new Expr\PropertyFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule431() {
- $this->semValue = substr($this->semStack[$this->stackPos-(1-1)], 1);
- }
-
- protected function reduceRule432() {
- $this->semValue = $this->semStack[$this->stackPos-(4-3)];
- }
-
- protected function reduceRule433() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(2-2)], $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule434() {
- $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule435() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule436() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule437() {
- $this->semValue = new Expr\ArrayDimFetch($this->semStack[$this->stackPos-(4-1)], $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule438() {
- $this->semValue = new Expr\PropertyFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule439() {
- $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule440() {
- $this->semValue = new Expr\StaticPropertyFetch($this->semStack[$this->stackPos-(3-1)], $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule441() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule442() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule443() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule444() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule445() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule446() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule447() {
- $this->semValue = new Expr\List_($this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule448() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule449() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule450() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule451() {
- $this->semValue = $this->semStack[$this->stackPos-(1-1)];
- }
-
- protected function reduceRule452() {
- $this->semValue = null;
- }
-
- protected function reduceRule453() {
- $this->semValue = array();
- }
-
- protected function reduceRule454() {
- $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule455() {
- $this->semStack[$this->stackPos-(3-1)][] = $this->semStack[$this->stackPos-(3-3)]; $this->semValue = $this->semStack[$this->stackPos-(3-1)];
- }
-
- protected function reduceRule456() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule457() {
- $this->semValue = new Expr\ArrayItem($this->semStack[$this->stackPos-(3-3)], $this->semStack[$this->stackPos-(3-1)], false, $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule458() {
- $this->semValue = new Expr\ArrayItem($this->semStack[$this->stackPos-(1-1)], null, false, $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule459() {
- $this->semValue = new Expr\ArrayItem($this->semStack[$this->stackPos-(4-4)], $this->semStack[$this->stackPos-(4-1)], true, $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule460() {
- $this->semValue = new Expr\ArrayItem($this->semStack[$this->stackPos-(2-2)], null, true, $this->startAttributeStack[$this->stackPos-(2-1)] + $this->endAttributes);
- }
-
- protected function reduceRule461() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule462() {
- $this->semStack[$this->stackPos-(2-1)][] = $this->semStack[$this->stackPos-(2-2)]; $this->semValue = $this->semStack[$this->stackPos-(2-1)];
- }
-
- protected function reduceRule463() {
- $this->semValue = array($this->semStack[$this->stackPos-(1-1)]);
- }
-
- protected function reduceRule464() {
- $this->semValue = array($this->semStack[$this->stackPos-(2-1)], $this->semStack[$this->stackPos-(2-2)]);
- }
-
- protected function reduceRule465() {
- $this->semValue = new Scalar\EncapsedStringPart($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule466() {
- $this->semValue = new Expr\Variable(substr($this->semStack[$this->stackPos-(1-1)], 1), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule467() {
- $this->semValue = new Expr\ArrayDimFetch(new Expr\Variable(substr($this->semStack[$this->stackPos-(4-1)], 1), $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(4-3)], $this->startAttributeStack[$this->stackPos-(4-1)] + $this->endAttributes);
- }
-
- protected function reduceRule468() {
- $this->semValue = new Expr\PropertyFetch(new Expr\Variable(substr($this->semStack[$this->stackPos-(3-1)], 1), $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(3-3)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule469() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule470() {
- $this->semValue = new Expr\Variable($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
- }
-
- protected function reduceRule471() {
- $this->semValue = new Expr\ArrayDimFetch(new Expr\Variable($this->semStack[$this->stackPos-(6-2)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes), $this->semStack[$this->stackPos-(6-4)], $this->startAttributeStack[$this->stackPos-(6-1)] + $this->endAttributes);
- }
-
- protected function reduceRule472() {
- $this->semValue = $this->semStack[$this->stackPos-(3-2)];
- }
-
- protected function reduceRule473() {
- $this->semValue = new Scalar\String_($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule474() {
- $this->semValue = new Scalar\String_($this->semStack[$this->stackPos-(1-1)], $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-
- protected function reduceRule475() {
- $this->semValue = new Expr\Variable(substr($this->semStack[$this->stackPos-(1-1)], 1), $this->startAttributeStack[$this->stackPos-(1-1)] + $this->endAttributes);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Tokens.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Tokens.php
deleted file mode 100644
index 861663fa..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Parser/Tokens.php
+++ /dev/null
@@ -1,144 +0,0 @@
-<?php
-
-namespace PhpParser\Parser;
-
-/* GENERATED file based on grammar/tokens.y */
-final class Tokens
-{
- const YYERRTOK = 256;
- const T_INCLUDE = 257;
- const T_INCLUDE_ONCE = 258;
- const T_EVAL = 259;
- const T_REQUIRE = 260;
- const T_REQUIRE_ONCE = 261;
- const T_LOGICAL_OR = 262;
- const T_LOGICAL_XOR = 263;
- const T_LOGICAL_AND = 264;
- const T_PRINT = 265;
- const T_YIELD = 266;
- const T_DOUBLE_ARROW = 267;
- const T_YIELD_FROM = 268;
- const T_PLUS_EQUAL = 269;
- const T_MINUS_EQUAL = 270;
- const T_MUL_EQUAL = 271;
- const T_DIV_EQUAL = 272;
- const T_CONCAT_EQUAL = 273;
- const T_MOD_EQUAL = 274;
- const T_AND_EQUAL = 275;
- const T_OR_EQUAL = 276;
- const T_XOR_EQUAL = 277;
- const T_SL_EQUAL = 278;
- const T_SR_EQUAL = 279;
- const T_POW_EQUAL = 280;
- const T_COALESCE = 281;
- const T_BOOLEAN_OR = 282;
- const T_BOOLEAN_AND = 283;
- const T_IS_EQUAL = 284;
- const T_IS_NOT_EQUAL = 285;
- const T_IS_IDENTICAL = 286;
- const T_IS_NOT_IDENTICAL = 287;
- const T_SPACESHIP = 288;
- const T_IS_SMALLER_OR_EQUAL = 289;
- const T_IS_GREATER_OR_EQUAL = 290;
- const T_SL = 291;
- const T_SR = 292;
- const T_INSTANCEOF = 293;
- const T_INC = 294;
- const T_DEC = 295;
- const T_INT_CAST = 296;
- const T_DOUBLE_CAST = 297;
- const T_STRING_CAST = 298;
- const T_ARRAY_CAST = 299;
- const T_OBJECT_CAST = 300;
- const T_BOOL_CAST = 301;
- const T_UNSET_CAST = 302;
- const T_POW = 303;
- const T_NEW = 304;
- const T_CLONE = 305;
- const T_EXIT = 306;
- const T_IF = 307;
- const T_ELSEIF = 308;
- const T_ELSE = 309;
- const T_ENDIF = 310;
- const T_LNUMBER = 311;
- const T_DNUMBER = 312;
- const T_STRING = 313;
- const T_STRING_VARNAME = 314;
- const T_VARIABLE = 315;
- const T_NUM_STRING = 316;
- const T_INLINE_HTML = 317;
- const T_CHARACTER = 318;
- const T_BAD_CHARACTER = 319;
- const T_ENCAPSED_AND_WHITESPACE = 320;
- const T_CONSTANT_ENCAPSED_STRING = 321;
- const T_ECHO = 322;
- const T_DO = 323;
- const T_WHILE = 324;
- const T_ENDWHILE = 325;
- const T_FOR = 326;
- const T_ENDFOR = 327;
- const T_FOREACH = 328;
- const T_ENDFOREACH = 329;
- const T_DECLARE = 330;
- const T_ENDDECLARE = 331;
- const T_AS = 332;
- const T_SWITCH = 333;
- const T_ENDSWITCH = 334;
- const T_CASE = 335;
- const T_DEFAULT = 336;
- const T_BREAK = 337;
- const T_CONTINUE = 338;
- const T_GOTO = 339;
- const T_FUNCTION = 340;
- const T_CONST = 341;
- const T_RETURN = 342;
- const T_TRY = 343;
- const T_CATCH = 344;
- const T_FINALLY = 345;
- const T_THROW = 346;
- const T_USE = 347;
- const T_INSTEADOF = 348;
- const T_GLOBAL = 349;
- const T_STATIC = 350;
- const T_ABSTRACT = 351;
- const T_FINAL = 352;
- const T_PRIVATE = 353;
- const T_PROTECTED = 354;
- const T_PUBLIC = 355;
- const T_VAR = 356;
- const T_UNSET = 357;
- const T_ISSET = 358;
- const T_EMPTY = 359;
- const T_HALT_COMPILER = 360;
- const T_CLASS = 361;
- const T_TRAIT = 362;
- const T_INTERFACE = 363;
- const T_EXTENDS = 364;
- const T_IMPLEMENTS = 365;
- const T_OBJECT_OPERATOR = 366;
- const T_LIST = 367;
- const T_ARRAY = 368;
- const T_CALLABLE = 369;
- const T_CLASS_C = 370;
- const T_TRAIT_C = 371;
- const T_METHOD_C = 372;
- const T_FUNC_C = 373;
- const T_LINE = 374;
- const T_FILE = 375;
- const T_COMMENT = 376;
- const T_DOC_COMMENT = 377;
- const T_OPEN_TAG = 378;
- const T_OPEN_TAG_WITH_ECHO = 379;
- const T_CLOSE_TAG = 380;
- const T_WHITESPACE = 381;
- const T_START_HEREDOC = 382;
- const T_END_HEREDOC = 383;
- const T_DOLLAR_OPEN_CURLY_BRACES = 384;
- const T_CURLY_OPEN = 385;
- const T_PAAMAYIM_NEKUDOTAYIM = 386;
- const T_NAMESPACE = 387;
- const T_NS_C = 388;
- const T_DIR = 389;
- const T_NS_SEPARATOR = 390;
- const T_ELLIPSIS = 391;
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php
deleted file mode 100644
index b0fcda90..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php
+++ /dev/null
@@ -1,499 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-/*
- * This parser is based on a skeleton written by Moriyoshi Koizumi, which in
- * turn is based on work by Masato Bito.
- */
-use PhpParser\Node\Name;
-
-abstract class ParserAbstract implements Parser
-{
- const SYMBOL_NONE = -1;
-
- /*
- * The following members will be filled with generated parsing data:
- */
-
- /** @var int Size of $tokenToSymbol map */
- protected $tokenToSymbolMapSize;
- /** @var int Size of $action table */
- protected $actionTableSize;
- /** @var int Size of $goto table */
- protected $gotoTableSize;
-
- /** @var int Symbol number signifying an invalid token */
- protected $invalidSymbol;
- /** @var int Symbol number of error recovery token */
- protected $errorSymbol;
- /** @var int Action number signifying default action */
- protected $defaultAction;
- /** @var int Rule number signifying that an unexpected token was encountered */
- protected $unexpectedTokenRule;
-
- protected $YY2TBLSTATE;
- protected $YYNLSTATES;
-
- /** @var array Map of lexer tokens to internal symbols */
- protected $tokenToSymbol;
- /** @var array Map of symbols to their names */
- protected $symbolToName;
- /** @var array Names of the production rules (only necessary for debugging) */
- protected $productions;
-
- /** @var array Map of states to a displacement into the $action table. The corresponding action for this
- * state/symbol pair is $action[$actionBase[$state] + $symbol]. If $actionBase[$state] is 0, the
- action is defaulted, i.e. $actionDefault[$state] should be used instead. */
- protected $actionBase;
- /** @var array Table of actions. Indexed according to $actionBase comment. */
- protected $action;
- /** @var array Table indexed analogously to $action. If $actionCheck[$actionBase[$state] + $symbol] != $symbol
- * then the action is defaulted, i.e. $actionDefault[$state] should be used instead. */
- protected $actionCheck;
- /** @var array Map of states to their default action */
- protected $actionDefault;
-
- /** @var array Map of non-terminals to a displacement into the $goto table. The corresponding goto state for this
- * non-terminal/state pair is $goto[$gotoBase[$nonTerminal] + $state] (unless defaulted) */
- protected $gotoBase;
- /** @var array Table of states to goto after reduction. Indexed according to $gotoBase comment. */
- protected $goto;
- /** @var array Table indexed analogously to $goto. If $gotoCheck[$gotoBase[$nonTerminal] + $state] != $nonTerminal
- * then the goto state is defaulted, i.e. $gotoDefault[$nonTerminal] should be used. */
- protected $gotoCheck;
- /** @var array Map of non-terminals to the default state to goto after their reduction */
- protected $gotoDefault;
-
- /** @var array Map of rules to the non-terminal on their left-hand side, i.e. the non-terminal to use for
- * determining the state to goto after reduction. */
- protected $ruleToNonTerminal;
- /** @var array Map of rules to the length of their right-hand side, which is the number of elements that have to
- * be popped from the stack(s) on reduction. */
- protected $ruleToLength;
-
- /*
- * The following members are part of the parser state:
- */
-
- /** @var Lexer Lexer that is used when parsing */
- protected $lexer;
- /** @var mixed Temporary value containing the result of last semantic action (reduction) */
- protected $semValue;
- /** @var int Position in stacks (state stack, semantic value stack, attribute stack) */
- protected $stackPos;
- /** @var array Semantic value stack (contains values of tokens and semantic action results) */
- protected $semStack;
- /** @var array[] Start attribute stack */
- protected $startAttributeStack;
- /** @var array End attributes of last *shifted* token */
- protected $endAttributes;
- /** @var array Start attributes of last *read* token */
- protected $lookaheadStartAttributes;
-
- /** @var bool Whether to throw on first error */
- protected $throwOnError;
- /** @var Error[] Errors collected during last parse */
- protected $errors;
-
- /**
- * Creates a parser instance.
- *
- * @param Lexer $lexer A lexer
- * @param array $options Options array. The boolean 'throwOnError' option determines whether an exception should be
- * thrown on first error, or if the parser should try to continue parsing the remaining code
- * and build a partial AST.
- */
- public function __construct(Lexer $lexer, array $options = array()) {
- $this->lexer = $lexer;
- $this->errors = array();
- $this->throwOnError = isset($options['throwOnError']) ? $options['throwOnError'] : true;
- }
-
- /**
- * Get array of errors that occurred during the last parse.
- *
- * This method may only return multiple errors if the 'throwOnError' option is disabled.
- *
- * @return Error[]
- */
- public function getErrors() {
- return $this->errors;
- }
-
- /**
- * Parses PHP code into a node tree.
- *
- * @param string $code The source code to parse
- *
- * @return Node[]|null Array of statements (or null if the 'throwOnError' option is disabled and the parser was
- * unable to recover from an error).
- */
- public function parse($code) {
- $this->lexer->startLexing($code);
- $this->errors = array();
-
- // We start off with no lookahead-token
- $symbol = self::SYMBOL_NONE;
-
- // The attributes for a node are taken from the first and last token of the node.
- // From the first token only the startAttributes are taken and from the last only
- // the endAttributes. Both are merged using the array union operator (+).
- $startAttributes = '*POISON';
- $endAttributes = '*POISON';
- $this->endAttributes = $endAttributes;
-
- // In order to figure out the attributes for the starting token, we have to keep
- // them in a stack
- $this->startAttributeStack = array();
-
- // Start off in the initial state and keep a stack of previous states
- $state = 0;
- $stateStack = array($state);
-
- // Semantic value stack (contains values of tokens and semantic action results)
- $this->semStack = array();
-
- // Current position in the stack(s)
- $this->stackPos = 0;
-
- $errorState = 0;
-
- for (;;) {
- //$this->traceNewState($state, $symbol);
-
- if ($this->actionBase[$state] == 0) {
- $rule = $this->actionDefault[$state];
- } else {
- if ($symbol === self::SYMBOL_NONE) {
- // Fetch the next token id from the lexer and fetch additional info by-ref.
- // The end attributes are fetched into a temporary variable and only set once the token is really
- // shifted (not during read). Otherwise you would sometimes get off-by-one errors, when a rule is
- // reduced after a token was read but not yet shifted.
- $tokenId = $this->lexer->getNextToken($tokenValue, $startAttributes, $endAttributes);
-
- // map the lexer token id to the internally used symbols
- $symbol = $tokenId >= 0 && $tokenId < $this->tokenToSymbolMapSize
- ? $this->tokenToSymbol[$tokenId]
- : $this->invalidSymbol;
-
- if ($symbol === $this->invalidSymbol) {
- throw new \RangeException(sprintf(
- 'The lexer returned an invalid token (id=%d, value=%s)',
- $tokenId, $tokenValue
- ));
- }
-
- // This is necessary to assign some meaningful attributes to /* empty */ productions. They'll get
- // the attributes of the next token, even though they don't contain it themselves.
- $this->startAttributeStack[$this->stackPos+1] = $startAttributes;
- $this->lookaheadStartAttributes = $startAttributes;
-
- //$this->traceRead($symbol);
- }
-
- $idx = $this->actionBase[$state] + $symbol;
- if ((($idx >= 0 && $idx < $this->actionTableSize && $this->actionCheck[$idx] == $symbol)
- || ($state < $this->YY2TBLSTATE
- && ($idx = $this->actionBase[$state + $this->YYNLSTATES] + $symbol) >= 0
- && $idx < $this->actionTableSize && $this->actionCheck[$idx] == $symbol))
- && ($action = $this->action[$idx]) != $this->defaultAction) {
- /*
- * >= YYNLSTATES: shift and reduce
- * > 0: shift
- * = 0: accept
- * < 0: reduce
- * = -YYUNEXPECTED: error
- */
- if ($action > 0) {
- /* shift */
- //$this->traceShift($symbol);
-
- ++$this->stackPos;
- $stateStack[$this->stackPos] = $state = $action;
- $this->semStack[$this->stackPos] = $tokenValue;
- $this->startAttributeStack[$this->stackPos] = $startAttributes;
- $this->endAttributes = $endAttributes;
- $symbol = self::SYMBOL_NONE;
-
- if ($errorState) {
- --$errorState;
- }
-
- if ($action < $this->YYNLSTATES) {
- continue;
- }
-
- /* $yyn >= YYNLSTATES means shift-and-reduce */
- $rule = $action - $this->YYNLSTATES;
- } else {
- $rule = -$action;
- }
- } else {
- $rule = $this->actionDefault[$state];
- }
- }
-
- for (;;) {
- if ($rule === 0) {
- /* accept */
- //$this->traceAccept();
- return $this->semValue;
- } elseif ($rule !== $this->unexpectedTokenRule) {
- /* reduce */
- //$this->traceReduce($rule);
-
- try {
- $this->{'reduceRule' . $rule}();
- } catch (Error $e) {
- if (-1 === $e->getStartLine() && isset($startAttributes['startLine'])) {
- $e->setStartLine($startAttributes['startLine']);
- }
-
- $this->errors[] = $e;
- if ($this->throwOnError) {
- throw $e;
- } else {
- // Currently can't recover from "special" errors
- return null;
- }
- }
-
- /* Goto - shift nonterminal */
- $this->stackPos -= $this->ruleToLength[$rule];
- $nonTerminal = $this->ruleToNonTerminal[$rule];
- $idx = $this->gotoBase[$nonTerminal] + $stateStack[$this->stackPos];
- if ($idx >= 0 && $idx < $this->gotoTableSize && $this->gotoCheck[$idx] == $nonTerminal) {
- $state = $this->goto[$idx];
- } else {
- $state = $this->gotoDefault[$nonTerminal];
- }
-
- ++$this->stackPos;
- $stateStack[$this->stackPos] = $state;
- $this->semStack[$this->stackPos] = $this->semValue;
- } else {
- /* error */
- switch ($errorState) {
- case 0:
- $msg = $this->getErrorMessage($symbol, $state);
- $error = new Error($msg, $startAttributes + $endAttributes);
- $this->errors[] = $error;
- if ($this->throwOnError) {
- throw $error;
- }
- // Break missing intentionally
- case 1:
- case 2:
- $errorState = 3;
-
- // Pop until error-expecting state uncovered
- while (!(
- (($idx = $this->actionBase[$state] + $this->errorSymbol) >= 0
- && $idx < $this->actionTableSize && $this->actionCheck[$idx] == $this->errorSymbol)
- || ($state < $this->YY2TBLSTATE
- && ($idx = $this->actionBase[$state + $this->YYNLSTATES] + $this->errorSymbol) >= 0
- && $idx < $this->actionTableSize && $this->actionCheck[$idx] == $this->errorSymbol)
- ) || ($action = $this->action[$idx]) == $this->defaultAction) { // Not totally sure about this
- if ($this->stackPos <= 0) {
- // Could not recover from error
- return null;
- }
- $state = $stateStack[--$this->stackPos];
- //$this->tracePop($state);
- }
-
- //$this->traceShift($this->errorSymbol);
- $stateStack[++$this->stackPos] = $state = $action;
- break;
-
- case 3:
- if ($symbol === 0) {
- // Reached EOF without recovering from error
- return null;
- }
-
- //$this->traceDiscard($symbol);
- $symbol = self::SYMBOL_NONE;
- break 2;
- }
- }
-
- if ($state < $this->YYNLSTATES) {
- break;
- }
-
- /* >= YYNLSTATES means shift-and-reduce */
- $rule = $state - $this->YYNLSTATES;
- }
- }
-
- throw new \RuntimeException('Reached end of parser loop');
- }
-
- protected function getErrorMessage($symbol, $state) {
- $expectedString = '';
- if ($expected = $this->getExpectedTokens($state)) {
- $expectedString = ', expecting ' . implode(' or ', $expected);
- }
-
- return 'Syntax error, unexpected ' . $this->symbolToName[$symbol] . $expectedString;
- }
-
- protected function getExpectedTokens($state) {
- $expected = array();
-
- $base = $this->actionBase[$state];
- foreach ($this->symbolToName as $symbol => $name) {
- $idx = $base + $symbol;
- if ($idx >= 0 && $idx < $this->actionTableSize && $this->actionCheck[$idx] === $symbol
- || $state < $this->YY2TBLSTATE
- && ($idx = $this->actionBase[$state + $this->YYNLSTATES] + $symbol) >= 0
- && $idx < $this->actionTableSize && $this->actionCheck[$idx] === $symbol
- ) {
- if ($this->action[$idx] != $this->unexpectedTokenRule) {
- if (count($expected) == 4) {
- /* Too many expected tokens */
- return array();
- }
-
- $expected[] = $name;
- }
- }
- }
-
- return $expected;
- }
-
- /*
- * Tracing functions used for debugging the parser.
- */
-
- /*
- protected function traceNewState($state, $symbol) {
- echo '% State ' . $state
- . ', Lookahead ' . ($symbol == self::SYMBOL_NONE ? '--none--' : $this->symbolToName[$symbol]) . "\n";
- }
-
- protected function traceRead($symbol) {
- echo '% Reading ' . $this->symbolToName[$symbol] . "\n";
- }
-
- protected function traceShift($symbol) {
- echo '% Shift ' . $this->symbolToName[$symbol] . "\n";
- }
-
- protected function traceAccept() {
- echo "% Accepted.\n";
- }
-
- protected function traceReduce($n) {
- echo '% Reduce by (' . $n . ') ' . $this->productions[$n] . "\n";
- }
-
- protected function tracePop($state) {
- echo '% Recovering, uncovered state ' . $state . "\n";
- }
-
- protected function traceDiscard($symbol) {
- echo '% Discard ' . $this->symbolToName[$symbol] . "\n";
- }
- */
-
- /*
- * Helper functions invoked by semantic actions
- */
-
- /**
- * Moves statements of semicolon-style namespaces into $ns->stmts and checks various error conditions.
- *
- * @param Node[] $stmts
- * @return Node[]
- */
- protected function handleNamespaces(array $stmts) {
- $style = $this->getNamespacingStyle($stmts);
- if (null === $style) {
- // not namespaced, nothing to do
- return $stmts;
- } elseif ('brace' === $style) {
- // For braced namespaces we only have to check that there are no invalid statements between the namespaces
- $afterFirstNamespace = false;
- foreach ($stmts as $stmt) {
- if ($stmt instanceof Node\Stmt\Namespace_) {
- $afterFirstNamespace = true;
- } elseif (!$stmt instanceof Node\Stmt\HaltCompiler && $afterFirstNamespace) {
- throw new Error('No code may exist outside of namespace {}', $stmt->getLine());
- }
- }
- return $stmts;
- } else {
- // For semicolon namespaces we have to move the statements after a namespace declaration into ->stmts
- $resultStmts = array();
- $targetStmts =& $resultStmts;
- foreach ($stmts as $stmt) {
- if ($stmt instanceof Node\Stmt\Namespace_) {
- $stmt->stmts = array();
- $targetStmts =& $stmt->stmts;
- $resultStmts[] = $stmt;
- } elseif ($stmt instanceof Node\Stmt\HaltCompiler) {
- // __halt_compiler() is not moved into the namespace
- $resultStmts[] = $stmt;
- } else {
- $targetStmts[] = $stmt;
- }
- }
- return $resultStmts;
- }
- }
-
- private function getNamespacingStyle(array $stmts) {
- $style = null;
- $hasNotAllowedStmts = false;
- foreach ($stmts as $i => $stmt) {
- if ($stmt instanceof Node\Stmt\Namespace_) {
- $currentStyle = null === $stmt->stmts ? 'semicolon' : 'brace';
- if (null === $style) {
- $style = $currentStyle;
- if ($hasNotAllowedStmts) {
- throw new Error('Namespace declaration statement has to be the very first statement in the script', $stmt->getLine());
- }
- } elseif ($style !== $currentStyle) {
- throw new Error('Cannot mix bracketed namespace declarations with unbracketed namespace declarations', $stmt->getLine());
- }
- continue;
- }
-
- /* declare(), __halt_compiler() and nops can be used before a namespace declaration */
- if ($stmt instanceof Node\Stmt\Declare_
- || $stmt instanceof Node\Stmt\HaltCompiler
- || $stmt instanceof Node\Stmt\Nop) {
- continue;
- }
-
- /* There may be a hashbang line at the very start of the file */
- if ($i == 0 && $stmt instanceof Node\Stmt\InlineHTML && preg_match('/\A#!.*\r?\n\z/', $stmt->value)) {
- continue;
- }
-
- /* Everything else if forbidden before namespace declarations */
- $hasNotAllowedStmts = true;
- }
- return $style;
- }
-
- protected function handleScalarTypes(Name $name) {
- $scalarTypes = [
- 'bool' => true,
- 'int' => true,
- 'float' => true,
- 'string' => true,
- ];
-
- if (!$name->isUnqualified()) {
- return $name;
- }
-
- $lowerName = strtolower($name->toString());
- return isset($scalarTypes[$lowerName]) ? $lowerName : $name;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/ParserFactory.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/ParserFactory.php
deleted file mode 100644
index 28b9070d..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/ParserFactory.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-class ParserFactory {
- const PREFER_PHP7 = 1;
- const PREFER_PHP5 = 2;
- const ONLY_PHP7 = 3;
- const ONLY_PHP5 = 4;
-
- /**
- * Creates a Parser instance, according to the provided kind.
- *
- * @param int $kind One of ::PREFER_PHP7, ::PREFER_PHP5, ::ONLY_PHP7 or ::ONLY_PHP5
- * @param Lexer|null $lexer Lexer to use. Defaults to emulative lexer when not specified
- * @param array $parserOptions Parser options. See ParserAbstract::__construct() argument
- *
- * @return Parser The parser instance
- */
- public function create($kind, Lexer $lexer = null, array $parserOptions = array()) {
- if (null === $lexer) {
- $lexer = new Lexer\Emulative();
- }
- switch ($kind) {
- case self::PREFER_PHP7:
- return new Parser\Multiple([
- new Parser\Php7($lexer, $parserOptions), new Parser\Php5($lexer, $parserOptions)
- ]);
- case self::PREFER_PHP5:
- return new Parser\Multiple([
- new Parser\Php5($lexer, $parserOptions), new Parser\Php7($lexer, $parserOptions)
- ]);
- case self::ONLY_PHP7:
- return new Parser\Php7($lexer, $parserOptions);
- case self::ONLY_PHP5:
- return new Parser\Php5($lexer, $parserOptions);
- default:
- throw new \LogicException(
- 'Kind must be one of ::PREFER_PHP7, ::PREFER_PHP5, ::ONLY_PHP7 or ::ONLY_PHP5'
- );
- }
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php
deleted file mode 100644
index 1aac4590..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php
+++ /dev/null
@@ -1,911 +0,0 @@
-<?php
-
-namespace PhpParser\PrettyPrinter;
-
-use PhpParser\PrettyPrinterAbstract;
-use PhpParser\Node;
-use PhpParser\Node\Scalar;
-use PhpParser\Node\Scalar\MagicConst;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Expr\AssignOp;
-use PhpParser\Node\Expr\BinaryOp;
-use PhpParser\Node\Expr\Cast;
-use PhpParser\Node\Stmt;
-use PhpParser\Node\Name;
-
-class Standard extends PrettyPrinterAbstract
-{
- // Special nodes
-
- public function pParam(Node\Param $node) {
- return ($node->type ? $this->pType($node->type) . ' ' : '')
- . ($node->byRef ? '&' : '')
- . ($node->variadic ? '...' : '')
- . '$' . $node->name
- . ($node->default ? ' = ' . $this->p($node->default) : '');
- }
-
- public function pArg(Node\Arg $node) {
- return ($node->byRef ? '&' : '') . ($node->unpack ? '...' : '') . $this->p($node->value);
- }
-
- public function pConst(Node\Const_ $node) {
- return $node->name . ' = ' . $this->p($node->value);
- }
-
- // Names
-
- public function pName(Name $node) {
- return implode('\\', $node->parts);
- }
-
- public function pName_FullyQualified(Name\FullyQualified $node) {
- return '\\' . implode('\\', $node->parts);
- }
-
- public function pName_Relative(Name\Relative $node) {
- return 'namespace\\' . implode('\\', $node->parts);
- }
-
- // Magic Constants
-
- public function pScalar_MagicConst_Class(MagicConst\Class_ $node) {
- return '__CLASS__';
- }
-
- public function pScalar_MagicConst_Dir(MagicConst\Dir $node) {
- return '__DIR__';
- }
-
- public function pScalar_MagicConst_File(MagicConst\File $node) {
- return '__FILE__';
- }
-
- public function pScalar_MagicConst_Function(MagicConst\Function_ $node) {
- return '__FUNCTION__';
- }
-
- public function pScalar_MagicConst_Line(MagicConst\Line $node) {
- return '__LINE__';
- }
-
- public function pScalar_MagicConst_Method(MagicConst\Method $node) {
- return '__METHOD__';
- }
-
- public function pScalar_MagicConst_Namespace(MagicConst\Namespace_ $node) {
- return '__NAMESPACE__';
- }
-
- public function pScalar_MagicConst_Trait(MagicConst\Trait_ $node) {
- return '__TRAIT__';
- }
-
- // Scalars
-
- public function pScalar_String(Scalar\String_ $node) {
- $kind = $node->getAttribute('kind', Scalar\String_::KIND_SINGLE_QUOTED);
- switch ($kind) {
- case Scalar\String_::KIND_NOWDOC:
- $label = $node->getAttribute('docLabel');
- if ($label && !$this->containsEndLabel($node->value, $label)) {
- if ($node->value === '') {
- return $this->pNoIndent("<<<'$label'\n$label") . $this->docStringEndToken;
- }
-
- return $this->pNoIndent("<<<'$label'\n$node->value\n$label")
- . $this->docStringEndToken;
- }
- /* break missing intentionally */
- case Scalar\String_::KIND_SINGLE_QUOTED:
- return '\'' . $this->pNoIndent(addcslashes($node->value, '\'\\')) . '\'';
- case Scalar\String_::KIND_HEREDOC:
- $label = $node->getAttribute('docLabel');
- if ($label && !$this->containsEndLabel($node->value, $label)) {
- if ($node->value === '') {
- return $this->pNoIndent("<<<$label\n$label") . $this->docStringEndToken;
- }
-
- $escaped = $this->escapeString($node->value, null);
- return $this->pNoIndent("<<<$label\n" . $escaped ."\n$label")
- . $this->docStringEndToken;
- }
- /* break missing intentionally */
- case Scalar\String_::KIND_DOUBLE_QUOTED:
- return '"' . $this->escapeString($node->value, '"') . '"';
- }
- throw new \Exception('Invalid string kind');
- }
-
- public function pScalar_Encapsed(Scalar\Encapsed $node) {
- if ($node->getAttribute('kind') === Scalar\String_::KIND_HEREDOC) {
- $label = $node->getAttribute('docLabel');
- if ($label && !$this->encapsedContainsEndLabel($node->parts, $label)) {
- if (count($node->parts) === 1
- && $node->parts[0] instanceof Scalar\EncapsedStringPart
- && $node->parts[0]->value === ''
- ) {
- return $this->pNoIndent("<<<$label\n$label") . $this->docStringEndToken;
- }
-
- return $this->pNoIndent(
- "<<<$label\n" . $this->pEncapsList($node->parts, null) . "\n$label"
- ) . $this->docStringEndToken;
- }
- }
- return '"' . $this->pEncapsList($node->parts, '"') . '"';
- }
-
- public function pScalar_LNumber(Scalar\LNumber $node) {
- $str = (string) $node->value;
- switch ($node->getAttribute('kind', Scalar\LNumber::KIND_DEC)) {
- case Scalar\LNumber::KIND_BIN:
- return '0b' . base_convert($str, 10, 2);
- case Scalar\LNumber::KIND_OCT:
- return '0' . base_convert($str, 10, 8);
- case Scalar\LNumber::KIND_DEC:
- return $str;
- case Scalar\LNumber::KIND_HEX:
- return '0x' . base_convert($str, 10, 16);
- }
- throw new \Exception('Invalid number kind');
- }
-
- public function pScalar_DNumber(Scalar\DNumber $node) {
- $stringValue = sprintf('%.16G', $node->value);
- if ($node->value !== (double) $stringValue) {
- $stringValue = sprintf('%.17G', $node->value);
- }
-
- // ensure that number is really printed as float
- return preg_match('/^-?[0-9]+$/', $stringValue) ? $stringValue . '.0' : $stringValue;
- }
-
- // Assignments
-
- public function pExpr_Assign(Expr\Assign $node) {
- return $this->pInfixOp('Expr_Assign', $node->var, ' = ', $node->expr);
- }
-
- public function pExpr_AssignRef(Expr\AssignRef $node) {
- return $this->pInfixOp('Expr_AssignRef', $node->var, ' =& ', $node->expr);
- }
-
- public function pExpr_AssignOp_Plus(AssignOp\Plus $node) {
- return $this->pInfixOp('Expr_AssignOp_Plus', $node->var, ' += ', $node->expr);
- }
-
- public function pExpr_AssignOp_Minus(AssignOp\Minus $node) {
- return $this->pInfixOp('Expr_AssignOp_Minus', $node->var, ' -= ', $node->expr);
- }
-
- public function pExpr_AssignOp_Mul(AssignOp\Mul $node) {
- return $this->pInfixOp('Expr_AssignOp_Mul', $node->var, ' *= ', $node->expr);
- }
-
- public function pExpr_AssignOp_Div(AssignOp\Div $node) {
- return $this->pInfixOp('Expr_AssignOp_Div', $node->var, ' /= ', $node->expr);
- }
-
- public function pExpr_AssignOp_Concat(AssignOp\Concat $node) {
- return $this->pInfixOp('Expr_AssignOp_Concat', $node->var, ' .= ', $node->expr);
- }
-
- public function pExpr_AssignOp_Mod(AssignOp\Mod $node) {
- return $this->pInfixOp('Expr_AssignOp_Mod', $node->var, ' %= ', $node->expr);
- }
-
- public function pExpr_AssignOp_BitwiseAnd(AssignOp\BitwiseAnd $node) {
- return $this->pInfixOp('Expr_AssignOp_BitwiseAnd', $node->var, ' &= ', $node->expr);
- }
-
- public function pExpr_AssignOp_BitwiseOr(AssignOp\BitwiseOr $node) {
- return $this->pInfixOp('Expr_AssignOp_BitwiseOr', $node->var, ' |= ', $node->expr);
- }
-
- public function pExpr_AssignOp_BitwiseXor(AssignOp\BitwiseXor $node) {
- return $this->pInfixOp('Expr_AssignOp_BitwiseXor', $node->var, ' ^= ', $node->expr);
- }
-
- public function pExpr_AssignOp_ShiftLeft(AssignOp\ShiftLeft $node) {
- return $this->pInfixOp('Expr_AssignOp_ShiftLeft', $node->var, ' <<= ', $node->expr);
- }
-
- public function pExpr_AssignOp_ShiftRight(AssignOp\ShiftRight $node) {
- return $this->pInfixOp('Expr_AssignOp_ShiftRight', $node->var, ' >>= ', $node->expr);
- }
-
- public function pExpr_AssignOp_Pow(AssignOp\Pow $node) {
- return $this->pInfixOp('Expr_AssignOp_Pow', $node->var, ' **= ', $node->expr);
- }
-
- // Binary expressions
-
- public function pExpr_BinaryOp_Plus(BinaryOp\Plus $node) {
- return $this->pInfixOp('Expr_BinaryOp_Plus', $node->left, ' + ', $node->right);
- }
-
- public function pExpr_BinaryOp_Minus(BinaryOp\Minus $node) {
- return $this->pInfixOp('Expr_BinaryOp_Minus', $node->left, ' - ', $node->right);
- }
-
- public function pExpr_BinaryOp_Mul(BinaryOp\Mul $node) {
- return $this->pInfixOp('Expr_BinaryOp_Mul', $node->left, ' * ', $node->right);
- }
-
- public function pExpr_BinaryOp_Div(BinaryOp\Div $node) {
- return $this->pInfixOp('Expr_BinaryOp_Div', $node->left, ' / ', $node->right);
- }
-
- public function pExpr_BinaryOp_Concat(BinaryOp\Concat $node) {
- return $this->pInfixOp('Expr_BinaryOp_Concat', $node->left, ' . ', $node->right);
- }
-
- public function pExpr_BinaryOp_Mod(BinaryOp\Mod $node) {
- return $this->pInfixOp('Expr_BinaryOp_Mod', $node->left, ' % ', $node->right);
- }
-
- public function pExpr_BinaryOp_BooleanAnd(BinaryOp\BooleanAnd $node) {
- return $this->pInfixOp('Expr_BinaryOp_BooleanAnd', $node->left, ' && ', $node->right);
- }
-
- public function pExpr_BinaryOp_BooleanOr(BinaryOp\BooleanOr $node) {
- return $this->pInfixOp('Expr_BinaryOp_BooleanOr', $node->left, ' || ', $node->right);
- }
-
- public function pExpr_BinaryOp_BitwiseAnd(BinaryOp\BitwiseAnd $node) {
- return $this->pInfixOp('Expr_BinaryOp_BitwiseAnd', $node->left, ' & ', $node->right);
- }
-
- public function pExpr_BinaryOp_BitwiseOr(BinaryOp\BitwiseOr $node) {
- return $this->pInfixOp('Expr_BinaryOp_BitwiseOr', $node->left, ' | ', $node->right);
- }
-
- public function pExpr_BinaryOp_BitwiseXor(BinaryOp\BitwiseXor $node) {
- return $this->pInfixOp('Expr_BinaryOp_BitwiseXor', $node->left, ' ^ ', $node->right);
- }
-
- public function pExpr_BinaryOp_ShiftLeft(BinaryOp\ShiftLeft $node) {
- return $this->pInfixOp('Expr_BinaryOp_ShiftLeft', $node->left, ' << ', $node->right);
- }
-
- public function pExpr_BinaryOp_ShiftRight(BinaryOp\ShiftRight $node) {
- return $this->pInfixOp('Expr_BinaryOp_ShiftRight', $node->left, ' >> ', $node->right);
- }
-
- public function pExpr_BinaryOp_Pow(BinaryOp\Pow $node) {
- return $this->pInfixOp('Expr_BinaryOp_Pow', $node->left, ' ** ', $node->right);
- }
-
- public function pExpr_BinaryOp_LogicalAnd(BinaryOp\LogicalAnd $node) {
- return $this->pInfixOp('Expr_BinaryOp_LogicalAnd', $node->left, ' and ', $node->right);
- }
-
- public function pExpr_BinaryOp_LogicalOr(BinaryOp\LogicalOr $node) {
- return $this->pInfixOp('Expr_BinaryOp_LogicalOr', $node->left, ' or ', $node->right);
- }
-
- public function pExpr_BinaryOp_LogicalXor(BinaryOp\LogicalXor $node) {
- return $this->pInfixOp('Expr_BinaryOp_LogicalXor', $node->left, ' xor ', $node->right);
- }
-
- public function pExpr_BinaryOp_Equal(BinaryOp\Equal $node) {
- return $this->pInfixOp('Expr_BinaryOp_Equal', $node->left, ' == ', $node->right);
- }
-
- public function pExpr_BinaryOp_NotEqual(BinaryOp\NotEqual $node) {
- return $this->pInfixOp('Expr_BinaryOp_NotEqual', $node->left, ' != ', $node->right);
- }
-
- public function pExpr_BinaryOp_Identical(BinaryOp\Identical $node) {
- return $this->pInfixOp('Expr_BinaryOp_Identical', $node->left, ' === ', $node->right);
- }
-
- public function pExpr_BinaryOp_NotIdentical(BinaryOp\NotIdentical $node) {
- return $this->pInfixOp('Expr_BinaryOp_NotIdentical', $node->left, ' !== ', $node->right);
- }
-
- public function pExpr_BinaryOp_Spaceship(BinaryOp\Spaceship $node) {
- return $this->pInfixOp('Expr_BinaryOp_Spaceship', $node->left, ' <=> ', $node->right);
- }
-
- public function pExpr_BinaryOp_Greater(BinaryOp\Greater $node) {
- return $this->pInfixOp('Expr_BinaryOp_Greater', $node->left, ' > ', $node->right);
- }
-
- public function pExpr_BinaryOp_GreaterOrEqual(BinaryOp\GreaterOrEqual $node) {
- return $this->pInfixOp('Expr_BinaryOp_GreaterOrEqual', $node->left, ' >= ', $node->right);
- }
-
- public function pExpr_BinaryOp_Smaller(BinaryOp\Smaller $node) {
- return $this->pInfixOp('Expr_BinaryOp_Smaller', $node->left, ' < ', $node->right);
- }
-
- public function pExpr_BinaryOp_SmallerOrEqual(BinaryOp\SmallerOrEqual $node) {
- return $this->pInfixOp('Expr_BinaryOp_SmallerOrEqual', $node->left, ' <= ', $node->right);
- }
-
- public function pExpr_BinaryOp_Coalesce(BinaryOp\Coalesce $node) {
- return $this->pInfixOp('Expr_BinaryOp_Coalesce', $node->left, ' ?? ', $node->right);
- }
-
- public function pExpr_Instanceof(Expr\Instanceof_ $node) {
- return $this->pInfixOp('Expr_Instanceof', $node->expr, ' instanceof ', $node->class);
- }
-
- // Unary expressions
-
- public function pExpr_BooleanNot(Expr\BooleanNot $node) {
- return $this->pPrefixOp('Expr_BooleanNot', '!', $node->expr);
- }
-
- public function pExpr_BitwiseNot(Expr\BitwiseNot $node) {
- return $this->pPrefixOp('Expr_BitwiseNot', '~', $node->expr);
- }
-
- public function pExpr_UnaryMinus(Expr\UnaryMinus $node) {
- return $this->pPrefixOp('Expr_UnaryMinus', '-', $node->expr);
- }
-
- public function pExpr_UnaryPlus(Expr\UnaryPlus $node) {
- return $this->pPrefixOp('Expr_UnaryPlus', '+', $node->expr);
- }
-
- public function pExpr_PreInc(Expr\PreInc $node) {
- return $this->pPrefixOp('Expr_PreInc', '++', $node->var);
- }
-
- public function pExpr_PreDec(Expr\PreDec $node) {
- return $this->pPrefixOp('Expr_PreDec', '--', $node->var);
- }
-
- public function pExpr_PostInc(Expr\PostInc $node) {
- return $this->pPostfixOp('Expr_PostInc', $node->var, '++');
- }
-
- public function pExpr_PostDec(Expr\PostDec $node) {
- return $this->pPostfixOp('Expr_PostDec', $node->var, '--');
- }
-
- public function pExpr_ErrorSuppress(Expr\ErrorSuppress $node) {
- return $this->pPrefixOp('Expr_ErrorSuppress', '@', $node->expr);
- }
-
- public function pExpr_YieldFrom(Expr\YieldFrom $node) {
- return $this->pPrefixOp('Expr_YieldFrom', 'yield from ', $node->expr);
- }
-
- public function pExpr_Print(Expr\Print_ $node) {
- return $this->pPrefixOp('Expr_Print', 'print ', $node->expr);
- }
-
- // Casts
-
- public function pExpr_Cast_Int(Cast\Int_ $node) {
- return $this->pPrefixOp('Expr_Cast_Int', '(int) ', $node->expr);
- }
-
- public function pExpr_Cast_Double(Cast\Double $node) {
- return $this->pPrefixOp('Expr_Cast_Double', '(double) ', $node->expr);
- }
-
- public function pExpr_Cast_String(Cast\String_ $node) {
- return $this->pPrefixOp('Expr_Cast_String', '(string) ', $node->expr);
- }
-
- public function pExpr_Cast_Array(Cast\Array_ $node) {
- return $this->pPrefixOp('Expr_Cast_Array', '(array) ', $node->expr);
- }
-
- public function pExpr_Cast_Object(Cast\Object_ $node) {
- return $this->pPrefixOp('Expr_Cast_Object', '(object) ', $node->expr);
- }
-
- public function pExpr_Cast_Bool(Cast\Bool_ $node) {
- return $this->pPrefixOp('Expr_Cast_Bool', '(bool) ', $node->expr);
- }
-
- public function pExpr_Cast_Unset(Cast\Unset_ $node) {
- return $this->pPrefixOp('Expr_Cast_Unset', '(unset) ', $node->expr);
- }
-
- // Function calls and similar constructs
-
- public function pExpr_FuncCall(Expr\FuncCall $node) {
- return $this->pCallLhs($node->name)
- . '(' . $this->pCommaSeparated($node->args) . ')';
- }
-
- public function pExpr_MethodCall(Expr\MethodCall $node) {
- return $this->pDereferenceLhs($node->var) . '->' . $this->pObjectProperty($node->name)
- . '(' . $this->pCommaSeparated($node->args) . ')';
- }
-
- public function pExpr_StaticCall(Expr\StaticCall $node) {
- return $this->pDereferenceLhs($node->class) . '::'
- . ($node->name instanceof Expr
- ? ($node->name instanceof Expr\Variable
- ? $this->p($node->name)
- : '{' . $this->p($node->name) . '}')
- : $node->name)
- . '(' . $this->pCommaSeparated($node->args) . ')';
- }
-
- public function pExpr_Empty(Expr\Empty_ $node) {
- return 'empty(' . $this->p($node->expr) . ')';
- }
-
- public function pExpr_Isset(Expr\Isset_ $node) {
- return 'isset(' . $this->pCommaSeparated($node->vars) . ')';
- }
-
- public function pExpr_Eval(Expr\Eval_ $node) {
- return 'eval(' . $this->p($node->expr) . ')';
- }
-
- public function pExpr_Include(Expr\Include_ $node) {
- static $map = array(
- Expr\Include_::TYPE_INCLUDE => 'include',
- Expr\Include_::TYPE_INCLUDE_ONCE => 'include_once',
- Expr\Include_::TYPE_REQUIRE => 'require',
- Expr\Include_::TYPE_REQUIRE_ONCE => 'require_once',
- );
-
- return $map[$node->type] . ' ' . $this->p($node->expr);
- }
-
- public function pExpr_List(Expr\List_ $node) {
- $pList = array();
- foreach ($node->vars as $var) {
- if (null === $var) {
- $pList[] = '';
- } else {
- $pList[] = $this->p($var);
- }
- }
-
- return 'list(' . implode(', ', $pList) . ')';
- }
-
- // Other
-
- public function pExpr_Variable(Expr\Variable $node) {
- if ($node->name instanceof Expr) {
- return '${' . $this->p($node->name) . '}';
- } else {
- return '$' . $node->name;
- }
- }
-
- public function pExpr_Array(Expr\Array_ $node) {
- $syntax = $node->getAttribute('kind',
- $this->options['shortArraySyntax'] ? Expr\Array_::KIND_SHORT : Expr\Array_::KIND_LONG);
- if ($syntax === Expr\Array_::KIND_SHORT) {
- return '[' . $this->pCommaSeparated($node->items) . ']';
- } else {
- return 'array(' . $this->pCommaSeparated($node->items) . ')';
- }
- }
-
- public function pExpr_ArrayItem(Expr\ArrayItem $node) {
- return (null !== $node->key ? $this->p($node->key) . ' => ' : '')
- . ($node->byRef ? '&' : '') . $this->p($node->value);
- }
-
- public function pExpr_ArrayDimFetch(Expr\ArrayDimFetch $node) {
- return $this->pDereferenceLhs($node->var)
- . '[' . (null !== $node->dim ? $this->p($node->dim) : '') . ']';
- }
-
- public function pExpr_ConstFetch(Expr\ConstFetch $node) {
- return $this->p($node->name);
- }
-
- public function pExpr_ClassConstFetch(Expr\ClassConstFetch $node) {
- return $this->p($node->class) . '::' . $node->name;
- }
-
- public function pExpr_PropertyFetch(Expr\PropertyFetch $node) {
- return $this->pDereferenceLhs($node->var) . '->' . $this->pObjectProperty($node->name);
- }
-
- public function pExpr_StaticPropertyFetch(Expr\StaticPropertyFetch $node) {
- return $this->pDereferenceLhs($node->class) . '::$' . $this->pObjectProperty($node->name);
- }
-
- public function pExpr_ShellExec(Expr\ShellExec $node) {
- return '`' . $this->pEncapsList($node->parts, '`') . '`';
- }
-
- public function pExpr_Closure(Expr\Closure $node) {
- return ($node->static ? 'static ' : '')
- . 'function ' . ($node->byRef ? '&' : '')
- . '(' . $this->pCommaSeparated($node->params) . ')'
- . (!empty($node->uses) ? ' use(' . $this->pCommaSeparated($node->uses) . ')': '')
- . (null !== $node->returnType ? ' : ' . $this->pType($node->returnType) : '')
- . ' {' . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- public function pExpr_ClosureUse(Expr\ClosureUse $node) {
- return ($node->byRef ? '&' : '') . '$' . $node->var;
- }
-
- public function pExpr_New(Expr\New_ $node) {
- if ($node->class instanceof Stmt\Class_) {
- $args = $node->args ? '(' . $this->pCommaSeparated($node->args) . ')' : '';
- return 'new ' . $this->pClassCommon($node->class, $args);
- }
- return 'new ' . $this->p($node->class) . '(' . $this->pCommaSeparated($node->args) . ')';
- }
-
- public function pExpr_Clone(Expr\Clone_ $node) {
- return 'clone ' . $this->p($node->expr);
- }
-
- public function pExpr_Ternary(Expr\Ternary $node) {
- // a bit of cheating: we treat the ternary as a binary op where the ?...: part is the operator.
- // this is okay because the part between ? and : never needs parentheses.
- return $this->pInfixOp('Expr_Ternary',
- $node->cond, ' ?' . (null !== $node->if ? ' ' . $this->p($node->if) . ' ' : '') . ': ', $node->else
- );
- }
-
- public function pExpr_Exit(Expr\Exit_ $node) {
- $kind = $node->getAttribute('kind', Expr\Exit_::KIND_DIE);
- return ($kind === Expr\Exit_::KIND_EXIT ? 'exit' : 'die')
- . (null !== $node->expr ? '(' . $this->p($node->expr) . ')' : '');
- }
-
- public function pExpr_Yield(Expr\Yield_ $node) {
- if ($node->value === null) {
- return 'yield';
- } else {
- // this is a bit ugly, but currently there is no way to detect whether the parentheses are necessary
- return '(yield '
- . ($node->key !== null ? $this->p($node->key) . ' => ' : '')
- . $this->p($node->value)
- . ')';
- }
- }
-
- // Declarations
-
- public function pStmt_Namespace(Stmt\Namespace_ $node) {
- if ($this->canUseSemicolonNamespaces) {
- return 'namespace ' . $this->p($node->name) . ';' . "\n" . $this->pStmts($node->stmts, false);
- } else {
- return 'namespace' . (null !== $node->name ? ' ' . $this->p($node->name) : '')
- . ' {' . $this->pStmts($node->stmts) . "\n" . '}';
- }
- }
-
- public function pStmt_Use(Stmt\Use_ $node) {
- return 'use ' . $this->pUseType($node->type)
- . $this->pCommaSeparated($node->uses) . ';';
- }
-
- public function pStmt_GroupUse(Stmt\GroupUse $node) {
- return 'use ' . $this->pUseType($node->type) . $this->pName($node->prefix)
- . '\{' . $this->pCommaSeparated($node->uses) . '};';
- }
-
- public function pStmt_UseUse(Stmt\UseUse $node) {
- return $this->pUseType($node->type) . $this->p($node->name)
- . ($node->name->getLast() !== $node->alias ? ' as ' . $node->alias : '');
- }
-
- private function pUseType($type) {
- return $type === Stmt\Use_::TYPE_FUNCTION ? 'function '
- : ($type === Stmt\Use_::TYPE_CONSTANT ? 'const ' : '');
- }
-
- public function pStmt_Interface(Stmt\Interface_ $node) {
- return 'interface ' . $node->name
- . (!empty($node->extends) ? ' extends ' . $this->pCommaSeparated($node->extends) : '')
- . "\n" . '{' . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- public function pStmt_Class(Stmt\Class_ $node) {
- return $this->pClassCommon($node, ' ' . $node->name);
- }
-
- public function pStmt_Trait(Stmt\Trait_ $node) {
- return 'trait ' . $node->name
- . "\n" . '{' . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- public function pStmt_TraitUse(Stmt\TraitUse $node) {
- return 'use ' . $this->pCommaSeparated($node->traits)
- . (empty($node->adaptations)
- ? ';'
- : ' {' . $this->pStmts($node->adaptations) . "\n" . '}');
- }
-
- public function pStmt_TraitUseAdaptation_Precedence(Stmt\TraitUseAdaptation\Precedence $node) {
- return $this->p($node->trait) . '::' . $node->method
- . ' insteadof ' . $this->pCommaSeparated($node->insteadof) . ';';
- }
-
- public function pStmt_TraitUseAdaptation_Alias(Stmt\TraitUseAdaptation\Alias $node) {
- return (null !== $node->trait ? $this->p($node->trait) . '::' : '')
- . $node->method . ' as'
- . (null !== $node->newModifier ? ' ' . rtrim($this->pModifiers($node->newModifier), ' ') : '')
- . (null !== $node->newName ? ' ' . $node->newName : '')
- . ';';
- }
-
- public function pStmt_Property(Stmt\Property $node) {
- return (0 === $node->type ? 'var ' : $this->pModifiers($node->type)) . $this->pCommaSeparated($node->props) . ';';
- }
-
- public function pStmt_PropertyProperty(Stmt\PropertyProperty $node) {
- return '$' . $node->name
- . (null !== $node->default ? ' = ' . $this->p($node->default) : '');
- }
-
- public function pStmt_ClassMethod(Stmt\ClassMethod $node) {
- return $this->pModifiers($node->type)
- . 'function ' . ($node->byRef ? '&' : '') . $node->name
- . '(' . $this->pCommaSeparated($node->params) . ')'
- . (null !== $node->returnType ? ' : ' . $this->pType($node->returnType) : '')
- . (null !== $node->stmts
- ? "\n" . '{' . $this->pStmts($node->stmts) . "\n" . '}'
- : ';');
- }
-
- public function pStmt_ClassConst(Stmt\ClassConst $node) {
- return 'const ' . $this->pCommaSeparated($node->consts) . ';';
- }
-
- public function pStmt_Function(Stmt\Function_ $node) {
- return 'function ' . ($node->byRef ? '&' : '') . $node->name
- . '(' . $this->pCommaSeparated($node->params) . ')'
- . (null !== $node->returnType ? ' : ' . $this->pType($node->returnType) : '')
- . "\n" . '{' . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- public function pStmt_Const(Stmt\Const_ $node) {
- return 'const ' . $this->pCommaSeparated($node->consts) . ';';
- }
-
- public function pStmt_Declare(Stmt\Declare_ $node) {
- return 'declare (' . $this->pCommaSeparated($node->declares) . ')'
- . (null !== $node->stmts ? ' {' . $this->pStmts($node->stmts) . "\n" . '}' : ';');
- }
-
- public function pStmt_DeclareDeclare(Stmt\DeclareDeclare $node) {
- return $node->key . '=' . $this->p($node->value);
- }
-
- // Control flow
-
- public function pStmt_If(Stmt\If_ $node) {
- return 'if (' . $this->p($node->cond) . ') {'
- . $this->pStmts($node->stmts) . "\n" . '}'
- . $this->pImplode($node->elseifs)
- . (null !== $node->else ? $this->p($node->else) : '');
- }
-
- public function pStmt_ElseIf(Stmt\ElseIf_ $node) {
- return ' elseif (' . $this->p($node->cond) . ') {'
- . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- public function pStmt_Else(Stmt\Else_ $node) {
- return ' else {' . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- public function pStmt_For(Stmt\For_ $node) {
- return 'for ('
- . $this->pCommaSeparated($node->init) . ';' . (!empty($node->cond) ? ' ' : '')
- . $this->pCommaSeparated($node->cond) . ';' . (!empty($node->loop) ? ' ' : '')
- . $this->pCommaSeparated($node->loop)
- . ') {' . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- public function pStmt_Foreach(Stmt\Foreach_ $node) {
- return 'foreach (' . $this->p($node->expr) . ' as '
- . (null !== $node->keyVar ? $this->p($node->keyVar) . ' => ' : '')
- . ($node->byRef ? '&' : '') . $this->p($node->valueVar) . ') {'
- . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- public function pStmt_While(Stmt\While_ $node) {
- return 'while (' . $this->p($node->cond) . ') {'
- . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- public function pStmt_Do(Stmt\Do_ $node) {
- return 'do {' . $this->pStmts($node->stmts) . "\n"
- . '} while (' . $this->p($node->cond) . ');';
- }
-
- public function pStmt_Switch(Stmt\Switch_ $node) {
- return 'switch (' . $this->p($node->cond) . ') {'
- . $this->pStmts($node->cases) . "\n" . '}';
- }
-
- public function pStmt_Case(Stmt\Case_ $node) {
- return (null !== $node->cond ? 'case ' . $this->p($node->cond) : 'default') . ':'
- . $this->pStmts($node->stmts);
- }
-
- public function pStmt_TryCatch(Stmt\TryCatch $node) {
- return 'try {' . $this->pStmts($node->stmts) . "\n" . '}'
- . $this->pImplode($node->catches)
- . ($node->finallyStmts !== null
- ? ' finally {' . $this->pStmts($node->finallyStmts) . "\n" . '}'
- : '');
- }
-
- public function pStmt_Catch(Stmt\Catch_ $node) {
- return ' catch (' . $this->p($node->type) . ' $' . $node->var . ') {'
- . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- public function pStmt_Break(Stmt\Break_ $node) {
- return 'break' . ($node->num !== null ? ' ' . $this->p($node->num) : '') . ';';
- }
-
- public function pStmt_Continue(Stmt\Continue_ $node) {
- return 'continue' . ($node->num !== null ? ' ' . $this->p($node->num) : '') . ';';
- }
-
- public function pStmt_Return(Stmt\Return_ $node) {
- return 'return' . (null !== $node->expr ? ' ' . $this->p($node->expr) : '') . ';';
- }
-
- public function pStmt_Throw(Stmt\Throw_ $node) {
- return 'throw ' . $this->p($node->expr) . ';';
- }
-
- public function pStmt_Label(Stmt\Label $node) {
- return $node->name . ':';
- }
-
- public function pStmt_Goto(Stmt\Goto_ $node) {
- return 'goto ' . $node->name . ';';
- }
-
- // Other
-
- public function pStmt_Echo(Stmt\Echo_ $node) {
- return 'echo ' . $this->pCommaSeparated($node->exprs) . ';';
- }
-
- public function pStmt_Static(Stmt\Static_ $node) {
- return 'static ' . $this->pCommaSeparated($node->vars) . ';';
- }
-
- public function pStmt_Global(Stmt\Global_ $node) {
- return 'global ' . $this->pCommaSeparated($node->vars) . ';';
- }
-
- public function pStmt_StaticVar(Stmt\StaticVar $node) {
- return '$' . $node->name
- . (null !== $node->default ? ' = ' . $this->p($node->default) : '');
- }
-
- public function pStmt_Unset(Stmt\Unset_ $node) {
- return 'unset(' . $this->pCommaSeparated($node->vars) . ');';
- }
-
- public function pStmt_InlineHTML(Stmt\InlineHTML $node) {
- return '?>' . $this->pNoIndent("\n" . $node->value) . '<?php ';
- }
-
- public function pStmt_HaltCompiler(Stmt\HaltCompiler $node) {
- return '__halt_compiler();' . $node->remaining;
- }
-
- public function pStmt_Nop(Stmt\Nop $node) {
- return '';
- }
-
- // Helpers
-
- protected function pType($node) {
- return is_string($node) ? $node : $this->p($node);
- }
-
- protected function pClassCommon(Stmt\Class_ $node, $afterClassToken) {
- return $this->pModifiers($node->type)
- . 'class' . $afterClassToken
- . (null !== $node->extends ? ' extends ' . $this->p($node->extends) : '')
- . (!empty($node->implements) ? ' implements ' . $this->pCommaSeparated($node->implements) : '')
- . "\n" . '{' . $this->pStmts($node->stmts) . "\n" . '}';
- }
-
- protected function pObjectProperty($node) {
- if ($node instanceof Expr) {
- return '{' . $this->p($node) . '}';
- } else {
- return $node;
- }
- }
-
- protected function pModifiers($modifiers) {
- return ($modifiers & Stmt\Class_::MODIFIER_PUBLIC ? 'public ' : '')
- . ($modifiers & Stmt\Class_::MODIFIER_PROTECTED ? 'protected ' : '')
- . ($modifiers & Stmt\Class_::MODIFIER_PRIVATE ? 'private ' : '')
- . ($modifiers & Stmt\Class_::MODIFIER_STATIC ? 'static ' : '')
- . ($modifiers & Stmt\Class_::MODIFIER_ABSTRACT ? 'abstract ' : '')
- . ($modifiers & Stmt\Class_::MODIFIER_FINAL ? 'final ' : '');
- }
-
- protected function pEncapsList(array $encapsList, $quote) {
- $return = '';
- foreach ($encapsList as $element) {
- if ($element instanceof Scalar\EncapsedStringPart) {
- $return .= $this->escapeString($element->value, $quote);
- } else {
- $return .= '{' . $this->p($element) . '}';
- }
- }
-
- return $return;
- }
-
- protected function escapeString($string, $quote) {
- if (null === $quote) {
- // For doc strings, don't escape newlines
- return addcslashes($string, "\t\f\v$\\");
- }
- return addcslashes($string, "\n\r\t\f\v$" . $quote . "\\");
- }
-
- protected function containsEndLabel($string, $label, $atStart = true, $atEnd = true) {
- $start = $atStart ? '(?:^|[\r\n])' : '[\r\n]';
- $end = $atEnd ? '(?:$|[;\r\n])' : '[;\r\n]';
- return false !== strpos($string, $label)
- && preg_match('/' . $start . $label . $end . '/', $string);
- }
-
- protected function encapsedContainsEndLabel(array $parts, $label) {
- foreach ($parts as $i => $part) {
- $atStart = $i === 0;
- $atEnd = $i === count($parts) - 1;
- if ($part instanceof Scalar\EncapsedStringPart
- && $this->containsEndLabel($part->value, $label, $atStart, $atEnd)
- ) {
- return true;
- }
- }
- return false;
- }
-
- protected function pDereferenceLhs(Node $node) {
- if ($node instanceof Expr\Variable
- || $node instanceof Name
- || $node instanceof Expr\ArrayDimFetch
- || $node instanceof Expr\PropertyFetch
- || $node instanceof Expr\StaticPropertyFetch
- || $node instanceof Expr\FuncCall
- || $node instanceof Expr\MethodCall
- || $node instanceof Expr\StaticCall
- || $node instanceof Expr\Array_
- || $node instanceof Scalar\String_
- || $node instanceof Expr\ConstFetch
- || $node instanceof Expr\ClassConstFetch
- ) {
- return $this->p($node);
- } else {
- return '(' . $this->p($node) . ')';
- }
- }
-
- protected function pCallLhs(Node $node) {
- if ($node instanceof Name
- || $node instanceof Expr\Variable
- || $node instanceof Expr\ArrayDimFetch
- || $node instanceof Expr\FuncCall
- || $node instanceof Expr\MethodCall
- || $node instanceof Expr\StaticCall
- || $node instanceof Expr\Array_
- ) {
- return $this->p($node);
- } else {
- return '(' . $this->p($node) . ')';
- }
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php
deleted file mode 100644
index d984d279..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php
+++ /dev/null
@@ -1,312 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Node\Expr;
-use PhpParser\Node\Stmt;
-
-abstract class PrettyPrinterAbstract
-{
- protected $precedenceMap = array(
- // [precedence, associativity] where for the latter -1 is %left, 0 is %nonassoc and 1 is %right
- 'Expr_BinaryOp_Pow' => array( 0, 1),
- 'Expr_BitwiseNot' => array( 10, 1),
- 'Expr_PreInc' => array( 10, 1),
- 'Expr_PreDec' => array( 10, 1),
- 'Expr_PostInc' => array( 10, -1),
- 'Expr_PostDec' => array( 10, -1),
- 'Expr_UnaryPlus' => array( 10, 1),
- 'Expr_UnaryMinus' => array( 10, 1),
- 'Expr_Cast_Int' => array( 10, 1),
- 'Expr_Cast_Double' => array( 10, 1),
- 'Expr_Cast_String' => array( 10, 1),
- 'Expr_Cast_Array' => array( 10, 1),
- 'Expr_Cast_Object' => array( 10, 1),
- 'Expr_Cast_Bool' => array( 10, 1),
- 'Expr_Cast_Unset' => array( 10, 1),
- 'Expr_ErrorSuppress' => array( 10, 1),
- 'Expr_Instanceof' => array( 20, 0),
- 'Expr_BooleanNot' => array( 30, 1),
- 'Expr_BinaryOp_Mul' => array( 40, -1),
- 'Expr_BinaryOp_Div' => array( 40, -1),
- 'Expr_BinaryOp_Mod' => array( 40, -1),
- 'Expr_BinaryOp_Plus' => array( 50, -1),
- 'Expr_BinaryOp_Minus' => array( 50, -1),
- 'Expr_BinaryOp_Concat' => array( 50, -1),
- 'Expr_BinaryOp_ShiftLeft' => array( 60, -1),
- 'Expr_BinaryOp_ShiftRight' => array( 60, -1),
- 'Expr_BinaryOp_Smaller' => array( 70, 0),
- 'Expr_BinaryOp_SmallerOrEqual' => array( 70, 0),
- 'Expr_BinaryOp_Greater' => array( 70, 0),
- 'Expr_BinaryOp_GreaterOrEqual' => array( 70, 0),
- 'Expr_BinaryOp_Equal' => array( 80, 0),
- 'Expr_BinaryOp_NotEqual' => array( 80, 0),
- 'Expr_BinaryOp_Identical' => array( 80, 0),
- 'Expr_BinaryOp_NotIdentical' => array( 80, 0),
- 'Expr_BinaryOp_Spaceship' => array( 80, 0),
- 'Expr_BinaryOp_BitwiseAnd' => array( 90, -1),
- 'Expr_BinaryOp_BitwiseXor' => array(100, -1),
- 'Expr_BinaryOp_BitwiseOr' => array(110, -1),
- 'Expr_BinaryOp_BooleanAnd' => array(120, -1),
- 'Expr_BinaryOp_BooleanOr' => array(130, -1),
- 'Expr_BinaryOp_Coalesce' => array(140, 1),
- 'Expr_Ternary' => array(150, -1),
- // parser uses %left for assignments, but they really behave as %right
- 'Expr_Assign' => array(160, 1),
- 'Expr_AssignRef' => array(160, 1),
- 'Expr_AssignOp_Plus' => array(160, 1),
- 'Expr_AssignOp_Minus' => array(160, 1),
- 'Expr_AssignOp_Mul' => array(160, 1),
- 'Expr_AssignOp_Div' => array(160, 1),
- 'Expr_AssignOp_Concat' => array(160, 1),
- 'Expr_AssignOp_Mod' => array(160, 1),
- 'Expr_AssignOp_BitwiseAnd' => array(160, 1),
- 'Expr_AssignOp_BitwiseOr' => array(160, 1),
- 'Expr_AssignOp_BitwiseXor' => array(160, 1),
- 'Expr_AssignOp_ShiftLeft' => array(160, 1),
- 'Expr_AssignOp_ShiftRight' => array(160, 1),
- 'Expr_AssignOp_Pow' => array(160, 1),
- 'Expr_YieldFrom' => array(165, 1),
- 'Expr_Print' => array(168, 1),
- 'Expr_BinaryOp_LogicalAnd' => array(170, -1),
- 'Expr_BinaryOp_LogicalXor' => array(180, -1),
- 'Expr_BinaryOp_LogicalOr' => array(190, -1),
- 'Expr_Include' => array(200, -1),
- );
-
- protected $noIndentToken;
- protected $docStringEndToken;
- protected $canUseSemicolonNamespaces;
- protected $options;
-
- /**
- * Creates a pretty printer instance using the given options.
- *
- * Supported options:
- * * bool $shortArraySyntax = false: Whether to use [] instead of array() as the default array
- * syntax, if the node does not specify a format.
- *
- * @param array $options Dictionary of formatting options
- */
- public function __construct(array $options = []) {
- $this->noIndentToken = '_NO_INDENT_' . mt_rand();
- $this->docStringEndToken = '_DOC_STRING_END_' . mt_rand();
-
- $defaultOptions = ['shortArraySyntax' => false];
- $this->options = $options + $defaultOptions;
- }
-
- /**
- * Pretty prints an array of statements.
- *
- * @param Node[] $stmts Array of statements
- *
- * @return string Pretty printed statements
- */
- public function prettyPrint(array $stmts) {
- $this->preprocessNodes($stmts);
-
- return ltrim($this->handleMagicTokens($this->pStmts($stmts, false)));
- }
-
- /**
- * Pretty prints an expression.
- *
- * @param Expr $node Expression node
- *
- * @return string Pretty printed node
- */
- public function prettyPrintExpr(Expr $node) {
- return $this->handleMagicTokens($this->p($node));
- }
-
- /**
- * Pretty prints a file of statements (includes the opening <?php tag if it is required).
- *
- * @param Node[] $stmts Array of statements
- *
- * @return string Pretty printed statements
- */
- public function prettyPrintFile(array $stmts) {
- if (!$stmts) {
- return "<?php\n\n";
- }
-
- $p = "<?php\n\n" . $this->prettyPrint($stmts);
-
- if ($stmts[0] instanceof Stmt\InlineHTML) {
- $p = preg_replace('/^<\?php\s+\?>\n?/', '', $p);
- }
- if ($stmts[count($stmts) - 1] instanceof Stmt\InlineHTML) {
- $p = preg_replace('/<\?php$/', '', rtrim($p));
- }
-
- return $p;
- }
-
- /**
- * Preprocesses the top-level nodes to initialize pretty printer state.
- *
- * @param Node[] $nodes Array of nodes
- */
- protected function preprocessNodes(array $nodes) {
- /* We can use semicolon-namespaces unless there is a global namespace declaration */
- $this->canUseSemicolonNamespaces = true;
- foreach ($nodes as $node) {
- if ($node instanceof Stmt\Namespace_ && null === $node->name) {
- $this->canUseSemicolonNamespaces = false;
- }
- }
- }
-
- protected function handleMagicTokens($str) {
- // Drop no-indent tokens
- $str = str_replace($this->noIndentToken, '', $str);
-
- // Replace doc-string-end tokens with nothing or a newline
- $str = str_replace($this->docStringEndToken . ";\n", ";\n", $str);
- $str = str_replace($this->docStringEndToken, "\n", $str);
-
- return $str;
- }
-
- /**
- * Pretty prints an array of nodes (statements) and indents them optionally.
- *
- * @param Node[] $nodes Array of nodes
- * @param bool $indent Whether to indent the printed nodes
- *
- * @return string Pretty printed statements
- */
- protected function pStmts(array $nodes, $indent = true) {
- $result = '';
- foreach ($nodes as $node) {
- $comments = $node->getAttribute('comments', array());
- if ($comments) {
- $result .= "\n" . $this->pComments($comments);
- if ($node instanceof Stmt\Nop) {
- continue;
- }
- }
-
- $result .= "\n" . $this->p($node) . ($node instanceof Expr ? ';' : '');
- }
-
- if ($indent) {
- return preg_replace('~\n(?!$|' . $this->noIndentToken . ')~', "\n ", $result);
- } else {
- return $result;
- }
- }
-
- /**
- * Pretty prints a node.
- *
- * @param Node $node Node to be pretty printed
- *
- * @return string Pretty printed node
- */
- protected function p(Node $node) {
- return $this->{'p' . $node->getType()}($node);
- }
-
- protected function pInfixOp($type, Node $leftNode, $operatorString, Node $rightNode) {
- list($precedence, $associativity) = $this->precedenceMap[$type];
-
- return $this->pPrec($leftNode, $precedence, $associativity, -1)
- . $operatorString
- . $this->pPrec($rightNode, $precedence, $associativity, 1);
- }
-
- protected function pPrefixOp($type, $operatorString, Node $node) {
- list($precedence, $associativity) = $this->precedenceMap[$type];
- return $operatorString . $this->pPrec($node, $precedence, $associativity, 1);
- }
-
- protected function pPostfixOp($type, Node $node, $operatorString) {
- list($precedence, $associativity) = $this->precedenceMap[$type];
- return $this->pPrec($node, $precedence, $associativity, -1) . $operatorString;
- }
-
- /**
- * Prints an expression node with the least amount of parentheses necessary to preserve the meaning.
- *
- * @param Node $node Node to pretty print
- * @param int $parentPrecedence Precedence of the parent operator
- * @param int $parentAssociativity Associativity of parent operator
- * (-1 is left, 0 is nonassoc, 1 is right)
- * @param int $childPosition Position of the node relative to the operator
- * (-1 is left, 1 is right)
- *
- * @return string The pretty printed node
- */
- protected function pPrec(Node $node, $parentPrecedence, $parentAssociativity, $childPosition) {
- $type = $node->getType();
- if (isset($this->precedenceMap[$type])) {
- $childPrecedence = $this->precedenceMap[$type][0];
- if ($childPrecedence > $parentPrecedence
- || ($parentPrecedence == $childPrecedence && $parentAssociativity != $childPosition)
- ) {
- return '(' . $this->{'p' . $type}($node) . ')';
- }
- }
-
- return $this->{'p' . $type}($node);
- }
-
- /**
- * Pretty prints an array of nodes and implodes the printed values.
- *
- * @param Node[] $nodes Array of Nodes to be printed
- * @param string $glue Character to implode with
- *
- * @return string Imploded pretty printed nodes
- */
- protected function pImplode(array $nodes, $glue = '') {
- $pNodes = array();
- foreach ($nodes as $node) {
- $pNodes[] = $this->p($node);
- }
-
- return implode($glue, $pNodes);
- }
-
- /**
- * Pretty prints an array of nodes and implodes the printed values with commas.
- *
- * @param Node[] $nodes Array of Nodes to be printed
- *
- * @return string Comma separated pretty printed nodes
- */
- protected function pCommaSeparated(array $nodes) {
- return $this->pImplode($nodes, ', ');
- }
-
- /**
- * Signals the pretty printer that a string shall not be indented.
- *
- * @param string $string Not to be indented string
- *
- * @return string String marked with $this->noIndentToken's.
- */
- protected function pNoIndent($string) {
- return str_replace("\n", "\n" . $this->noIndentToken, $string);
- }
-
- /**
- * Prints reformatted text of the passed comments.
- *
- * @param Comment[] $comments List of comments
- *
- * @return string Reformatted text of comments
- */
- protected function pComments(array $comments) {
- $formattedComments = [];
-
- foreach ($comments as $comment) {
- $formattedComments[] = $comment->getReformattedText();
- }
-
- return implode("\n", $formattedComments);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Serializer.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Serializer.php
deleted file mode 100644
index 7c173cda..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Serializer.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-interface Serializer
-{
- /**
- * Serializes statements into some string format.
- *
- * @param array $nodes Statements
- *
- * @return string Serialized string
- */
- public function serialize(array $nodes);
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Serializer/XML.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Serializer/XML.php
deleted file mode 100644
index a21b1ee0..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Serializer/XML.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-
-namespace PhpParser\Serializer;
-
-use XMLWriter;
-use PhpParser\Node;
-use PhpParser\Comment;
-use PhpParser\Serializer;
-
-class XML implements Serializer
-{
- protected $writer;
-
- /**
- * Constructs a XML serializer.
- */
- public function __construct() {
- $this->writer = new XMLWriter;
- $this->writer->openMemory();
- $this->writer->setIndent(true);
- }
-
- public function serialize(array $nodes) {
- $this->writer->flush();
- $this->writer->startDocument('1.0', 'UTF-8');
-
- $this->writer->startElement('AST');
- $this->writer->writeAttribute('xmlns:node', 'http://nikic.github.com/PHPParser/XML/node');
- $this->writer->writeAttribute('xmlns:subNode', 'http://nikic.github.com/PHPParser/XML/subNode');
- $this->writer->writeAttribute('xmlns:attribute', 'http://nikic.github.com/PHPParser/XML/attribute');
- $this->writer->writeAttribute('xmlns:scalar', 'http://nikic.github.com/PHPParser/XML/scalar');
-
- $this->_serialize($nodes);
-
- $this->writer->endElement();
-
- return $this->writer->outputMemory();
- }
-
- protected function _serialize($node) {
- if ($node instanceof Node) {
- $this->writer->startElement('node:' . $node->getType());
-
- foreach ($node->getAttributes() as $name => $value) {
- $this->writer->startElement('attribute:' . $name);
- $this->_serialize($value);
- $this->writer->endElement();
- }
-
- foreach ($node as $name => $subNode) {
- $this->writer->startElement('subNode:' . $name);
- $this->_serialize($subNode);
- $this->writer->endElement();
- }
-
- $this->writer->endElement();
- } elseif ($node instanceof Comment) {
- $this->writer->startElement('comment');
- $this->writer->writeAttribute('isDocComment', $node instanceof Comment\Doc ? 'true' : 'false');
- $this->writer->writeAttribute('line', (string) $node->getLine());
- $this->writer->text($node->getText());
- $this->writer->endElement();
- } elseif (is_array($node)) {
- $this->writer->startElement('scalar:array');
- foreach ($node as $subNode) {
- $this->_serialize($subNode);
- }
- $this->writer->endElement();
- } elseif (is_string($node)) {
- $this->writer->writeElement('scalar:string', $node);
- } elseif (is_int($node)) {
- $this->writer->writeElement('scalar:int', (string) $node);
- } elseif (is_float($node)) {
- // TODO Higher precision conversion?
- $this->writer->writeElement('scalar:float', (string) $node);
- } elseif (true === $node) {
- $this->writer->writeElement('scalar:true');
- } elseif (false === $node) {
- $this->writer->writeElement('scalar:false');
- } elseif (null === $node) {
- $this->writer->writeElement('scalar:null');
- } else {
- throw new \InvalidArgumentException('Unexpected node type');
- }
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Unserializer.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Unserializer.php
deleted file mode 100644
index bfa6da0c..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Unserializer.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-interface Unserializer
-{
- /**
- * Unserializes a string in some format into a node tree.
- *
- * @param string $string Serialized string
- *
- * @return mixed Node tree
- */
- public function unserialize($string);
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Unserializer/XML.php b/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Unserializer/XML.php
deleted file mode 100644
index 1d8405f5..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/PhpParser/Unserializer/XML.php
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-
-namespace PhpParser\Unserializer;
-
-use XMLReader;
-use DomainException;
-use PhpParser\Unserializer;
-
-class XML implements Unserializer
-{
- protected $reader;
-
- public function __construct() {
- $this->reader = new XMLReader;
- }
-
- public function unserialize($string) {
- $this->reader->XML($string);
-
- $this->reader->read();
- if ('AST' !== $this->reader->name) {
- throw new DomainException('AST root element not found');
- }
-
- return $this->read($this->reader->depth);
- }
-
- protected function read($depthLimit, $throw = true, &$nodeFound = null) {
- $nodeFound = true;
- while ($this->reader->read() && $depthLimit < $this->reader->depth) {
- if (XMLReader::ELEMENT !== $this->reader->nodeType) {
- continue;
- }
-
- if ('node' === $this->reader->prefix) {
- return $this->readNode();
- } elseif ('scalar' === $this->reader->prefix) {
- return $this->readScalar();
- } elseif ('comment' === $this->reader->name) {
- return $this->readComment();
- } else {
- throw new DomainException(sprintf('Unexpected node of type "%s"', $this->reader->name));
- }
- }
-
- $nodeFound = false;
- if ($throw) {
- throw new DomainException('Expected node or scalar');
- }
- }
-
- protected function readNode() {
- $className = $this->getClassNameFromType($this->reader->localName);
-
- // create the node without calling it's constructor
- $node = unserialize(
- sprintf(
- "O:%d:\"%s\":1:{s:13:\"\0*\0attributes\";a:0:{}}",
- strlen($className), $className
- )
- );
-
- $depthLimit = $this->reader->depth;
- while ($this->reader->read() && $depthLimit < $this->reader->depth) {
- if (XMLReader::ELEMENT !== $this->reader->nodeType) {
- continue;
- }
-
- $type = $this->reader->prefix;
- if ('subNode' !== $type && 'attribute' !== $type) {
- throw new DomainException(
- sprintf('Expected sub node or attribute, got node of type "%s"', $this->reader->name)
- );
- }
-
- $name = $this->reader->localName;
- $value = $this->read($this->reader->depth);
-
- if ('subNode' === $type) {
- $node->$name = $value;
- } else {
- $node->setAttribute($name, $value);
- }
- }
-
- return $node;
- }
-
- protected function readScalar() {
- switch ($name = $this->reader->localName) {
- case 'array':
- $depth = $this->reader->depth;
- $array = array();
- while (true) {
- $node = $this->read($depth, false, $nodeFound);
- if (!$nodeFound) {
- break;
- }
- $array[] = $node;
- }
- return $array;
- case 'string':
- return $this->reader->readString();
- case 'int':
- return $this->parseInt($this->reader->readString());
- case 'float':
- $text = $this->reader->readString();
- if (false === $float = filter_var($text, FILTER_VALIDATE_FLOAT)) {
- throw new DomainException(sprintf('"%s" is not a valid float', $text));
- }
- return $float;
- case 'true':
- case 'false':
- case 'null':
- if (!$this->reader->isEmptyElement) {
- throw new DomainException(sprintf('"%s" scalar must be empty', $name));
- }
- return constant($name);
- default:
- throw new DomainException(sprintf('Unknown scalar type "%s"', $name));
- }
- }
-
- private function parseInt($text) {
- if (false === $int = filter_var($text, FILTER_VALIDATE_INT)) {
- throw new DomainException(sprintf('"%s" is not a valid integer', $text));
- }
- return $int;
- }
-
- protected function readComment() {
- $className = $this->reader->getAttribute('isDocComment') === 'true'
- ? 'PhpParser\Comment\Doc'
- : 'PhpParser\Comment'
- ;
- return new $className(
- $this->reader->readString(),
- $this->parseInt($this->reader->getAttribute('line'))
- );
- }
-
- protected function getClassNameFromType($type) {
- $className = 'PhpParser\\Node\\' . strtr($type, '_', '\\');
- if (!class_exists($className)) {
- $className .= '_';
- }
- if (!class_exists($className)) {
- throw new DomainException(sprintf('Unknown node type "%s"', $type));
- }
- return $className;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/lib/bootstrap.php b/www/wiki/vendor/nikic/php-parser/lib/bootstrap.php
deleted file mode 100644
index b0f51782..00000000
--- a/www/wiki/vendor/nikic/php-parser/lib/bootstrap.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-
-if (!class_exists('PhpParser\Autoloader')) {
- require __DIR__ . '/PhpParser/Autoloader.php';
-}
-PhpParser\Autoloader::register();
diff --git a/www/wiki/vendor/nikic/php-parser/phpunit.xml.dist b/www/wiki/vendor/nikic/php-parser/phpunit.xml.dist
deleted file mode 100644
index 8c2d0f22..00000000
--- a/www/wiki/vendor/nikic/php-parser/phpunit.xml.dist
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit backupGlobals="false"
- backupStaticAttributes="false"
- colors="false"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- processIsolation="false"
- stopOnFailure="false"
- syntaxCheck="false"
- bootstrap="./test/bootstrap.php">
- <testsuites>
- <testsuite name="PHPParser Test Suite">
- <directory>./test/</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist>
- <directory suffix=".php">./lib/PhpParser/</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/AutoloaderTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/AutoloaderTest.php
deleted file mode 100644
index e16b9f21..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/AutoloaderTest.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Node\Expr;
-use PhpParser\Node\Scalar;
-
-/* The autoloader is already active at this point, so we only check effects here. */
-
-class AutoloaderTest extends \PHPUnit_Framework_TestCase {
- public function testClassExists() {
- $this->assertTrue(class_exists('PhpParser\NodeVisitorAbstract'));
- $this->assertFalse(class_exists('PHPParser_NodeVisitor_NameResolver'));
-
- $this->assertFalse(class_exists('PhpParser\FooBar'));
- $this->assertFalse(class_exists('PHPParser_FooBar'));
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/ClassTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/ClassTest.php
deleted file mode 100644
index 94ce67af..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/ClassTest.php
+++ /dev/null
@@ -1,161 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser\Comment;
-use PhpParser\Node;
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt;
-
-class ClassTest extends \PHPUnit_Framework_TestCase
-{
- protected function createClassBuilder($class) {
- return new Class_($class);
- }
-
- public function testExtendsImplements() {
- $node = $this->createClassBuilder('SomeLogger')
- ->extend('BaseLogger')
- ->implement('Namespaced\Logger', new Name('SomeInterface'))
- ->implement('\Fully\Qualified', 'namespace\NamespaceRelative')
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\Class_('SomeLogger', array(
- 'extends' => new Name('BaseLogger'),
- 'implements' => array(
- new Name('Namespaced\Logger'),
- new Name('SomeInterface'),
- new Name\FullyQualified('Fully\Qualified'),
- new Name\Relative('NamespaceRelative'),
- ),
- )),
- $node
- );
- }
-
- public function testAbstract() {
- $node = $this->createClassBuilder('Test')
- ->makeAbstract()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\Class_('Test', array(
- 'type' => Stmt\Class_::MODIFIER_ABSTRACT
- )),
- $node
- );
- }
-
- public function testFinal() {
- $node = $this->createClassBuilder('Test')
- ->makeFinal()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\Class_('Test', array(
- 'type' => Stmt\Class_::MODIFIER_FINAL
- )),
- $node
- );
- }
-
- public function testStatementOrder() {
- $method = new Stmt\ClassMethod('testMethod');
- $property = new Stmt\Property(
- Stmt\Class_::MODIFIER_PUBLIC,
- array(new Stmt\PropertyProperty('testProperty'))
- );
- $const = new Stmt\ClassConst(array(
- new Node\Const_('TEST_CONST', new Node\Scalar\String_('ABC'))
- ));
- $use = new Stmt\TraitUse(array(new Name('SomeTrait')));
-
- $node = $this->createClassBuilder('Test')
- ->addStmt($method)
- ->addStmt($property)
- ->addStmts(array($const, $use))
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\Class_('Test', array(
- 'stmts' => array($use, $const, $property, $method)
- )),
- $node
- );
- }
-
- public function testDocComment() {
- $docComment = <<<'DOC'
-/**
- * Test
- */
-DOC;
- $class = $this->createClassBuilder('Test')
- ->setDocComment($docComment)
- ->getNode();
-
- $this->assertEquals(
- new Stmt\Class_('Test', array(), array(
- 'comments' => array(
- new Comment\Doc($docComment)
- )
- )),
- $class
- );
-
- $class = $this->createClassBuilder('Test')
- ->setDocComment(new Comment\Doc($docComment))
- ->getNode();
-
- $this->assertEquals(
- new Stmt\Class_('Test', array(), array(
- 'comments' => array(
- new Comment\Doc($docComment)
- )
- )),
- $class
- );
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Unexpected node of type "Stmt_Echo"
- */
- public function testInvalidStmtError() {
- $this->createClassBuilder('Test')
- ->addStmt(new Stmt\Echo_(array()))
- ;
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Doc comment must be a string or an instance of PhpParser\Comment\Doc
- */
- public function testInvalidDocComment() {
- $this->createClassBuilder('Test')
- ->setDocComment(new Comment('Test'));
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Name cannot be empty
- */
- public function testEmptyName() {
- $this->createClassBuilder('Test')
- ->extend('');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Name must be a string or an instance of PhpParser\Node\Name
- */
- public function testInvalidName() {
- $this->createClassBuilder('Test')
- ->extend(array('Foo'));
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/FunctionTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/FunctionTest.php
deleted file mode 100644
index 7b397fe3..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/FunctionTest.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser\Comment;
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-use PhpParser\Node\Expr\Print_;
-use PhpParser\Node\Scalar\String_;
-
-class FunctionTest extends \PHPUnit_Framework_TestCase
-{
- public function createFunctionBuilder($name) {
- return new Function_($name);
- }
-
- public function testReturnByRef() {
- $node = $this->createFunctionBuilder('test')
- ->makeReturnByRef()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\Function_('test', array(
- 'byRef' => true
- )),
- $node
- );
- }
-
- public function testParams() {
- $param1 = new Node\Param('test1');
- $param2 = new Node\Param('test2');
- $param3 = new Node\Param('test3');
-
- $node = $this->createFunctionBuilder('test')
- ->addParam($param1)
- ->addParams(array($param2, $param3))
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\Function_('test', array(
- 'params' => array($param1, $param2, $param3)
- )),
- $node
- );
- }
-
- public function testStmts() {
- $stmt1 = new Print_(new String_('test1'));
- $stmt2 = new Print_(new String_('test2'));
- $stmt3 = new Print_(new String_('test3'));
-
- $node = $this->createFunctionBuilder('test')
- ->addStmt($stmt1)
- ->addStmts(array($stmt2, $stmt3))
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\Function_('test', array(
- 'stmts' => array($stmt1, $stmt2, $stmt3)
- )),
- $node
- );
- }
-
- public function testDocComment() {
- $node = $this->createFunctionBuilder('test')
- ->setDocComment('/** Test */')
- ->getNode();
-
- $this->assertEquals(new Stmt\Function_('test', array(), array(
- 'comments' => array(new Comment\Doc('/** Test */'))
- )), $node);
- }
-
- public function testReturnType() {
- $node = $this->createFunctionBuilder('test')
- ->setReturnType('bool')
- ->getNode();
-
- $this->assertEquals(new Stmt\Function_('test', array(
- 'returnType' => 'bool'
- ), array()), $node);
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Expected parameter node, got "Name"
- */
- public function testInvalidParamError() {
- $this->createFunctionBuilder('test')
- ->addParam(new Node\Name('foo'))
- ;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/InterfaceTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/InterfaceTest.php
deleted file mode 100644
index c0d2fe37..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/InterfaceTest.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-use PhpParser\Node\Scalar\DNumber;
-use PhpParser\Comment;
-
-class InterfaceTest extends \PHPUnit_Framework_TestCase
-{
- /** @var Interface_ */
- protected $builder;
-
- protected function setUp() {
- $this->builder = new Interface_('Contract');
- }
-
- private function dump($node) {
- $pp = new \PhpParser\PrettyPrinter\Standard;
- return $pp->prettyPrint(array($node));
- }
-
- public function testEmpty() {
- $contract = $this->builder->getNode();
- $this->assertInstanceOf('PhpParser\Node\Stmt\Interface_', $contract);
- $this->assertSame('Contract', $contract->name);
- }
-
- public function testExtending() {
- $contract = $this->builder->extend('Space\Root1', 'Root2')->getNode();
- $this->assertEquals(
- new Stmt\Interface_('Contract', array(
- 'extends' => array(
- new Node\Name('Space\Root1'),
- new Node\Name('Root2')
- ),
- )), $contract
- );
- }
-
- public function testAddMethod() {
- $method = new Stmt\ClassMethod('doSomething');
- $contract = $this->builder->addStmt($method)->getNode();
- $this->assertSame(array($method), $contract->stmts);
- }
-
- public function testAddConst() {
- $const = new Stmt\ClassConst(array(
- new Node\Const_('SPEED_OF_LIGHT', new DNumber(299792458.0))
- ));
- $contract = $this->builder->addStmt($const)->getNode();
- $this->assertSame(299792458.0, $contract->stmts[0]->consts[0]->value->value);
- }
-
- public function testOrder() {
- $const = new Stmt\ClassConst(array(
- new Node\Const_('SPEED_OF_LIGHT', new DNumber(299792458))
- ));
- $method = new Stmt\ClassMethod('doSomething');
- $contract = $this->builder
- ->addStmt($method)
- ->addStmt($const)
- ->getNode()
- ;
-
- $this->assertInstanceOf('PhpParser\Node\Stmt\ClassConst', $contract->stmts[0]);
- $this->assertInstanceOf('PhpParser\Node\Stmt\ClassMethod', $contract->stmts[1]);
- }
-
- public function testDocComment() {
- $node = $this->builder
- ->setDocComment('/** Test */')
- ->getNode();
-
- $this->assertEquals(new Stmt\Interface_('Contract', array(), array(
- 'comments' => array(new Comment\Doc('/** Test */'))
- )), $node);
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Unexpected node of type "Stmt_PropertyProperty"
- */
- public function testInvalidStmtError() {
- $this->builder->addStmt(new Stmt\PropertyProperty('invalid'));
- }
-
- public function testFullFunctional() {
- $const = new Stmt\ClassConst(array(
- new Node\Const_('SPEED_OF_LIGHT', new DNumber(299792458))
- ));
- $method = new Stmt\ClassMethod('doSomething');
- $contract = $this->builder
- ->addStmt($method)
- ->addStmt($const)
- ->getNode()
- ;
-
- eval($this->dump($contract));
-
- $this->assertTrue(interface_exists('Contract', false));
- }
-}
-
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/MethodTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/MethodTest.php
deleted file mode 100644
index aa8e976a..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/MethodTest.php
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr\Print_;
-use PhpParser\Node\Scalar\String_;
-use PhpParser\Node\Stmt;
-use PhpParser\Comment;
-
-class MethodTest extends \PHPUnit_Framework_TestCase
-{
- public function createMethodBuilder($name) {
- return new Method($name);
- }
-
- public function testModifiers() {
- $node = $this->createMethodBuilder('test')
- ->makePublic()
- ->makeAbstract()
- ->makeStatic()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\ClassMethod('test', array(
- 'type' => Stmt\Class_::MODIFIER_PUBLIC
- | Stmt\Class_::MODIFIER_ABSTRACT
- | Stmt\Class_::MODIFIER_STATIC,
- 'stmts' => null,
- )),
- $node
- );
-
- $node = $this->createMethodBuilder('test')
- ->makeProtected()
- ->makeFinal()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\ClassMethod('test', array(
- 'type' => Stmt\Class_::MODIFIER_PROTECTED
- | Stmt\Class_::MODIFIER_FINAL
- )),
- $node
- );
-
- $node = $this->createMethodBuilder('test')
- ->makePrivate()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\ClassMethod('test', array(
- 'type' => Stmt\Class_::MODIFIER_PRIVATE
- )),
- $node
- );
- }
-
- public function testReturnByRef() {
- $node = $this->createMethodBuilder('test')
- ->makeReturnByRef()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\ClassMethod('test', array(
- 'byRef' => true
- )),
- $node
- );
- }
-
- public function testParams() {
- $param1 = new Node\Param('test1');
- $param2 = new Node\Param('test2');
- $param3 = new Node\Param('test3');
-
- $node = $this->createMethodBuilder('test')
- ->addParam($param1)
- ->addParams(array($param2, $param3))
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\ClassMethod('test', array(
- 'params' => array($param1, $param2, $param3)
- )),
- $node
- );
- }
-
- public function testStmts() {
- $stmt1 = new Print_(new String_('test1'));
- $stmt2 = new Print_(new String_('test2'));
- $stmt3 = new Print_(new String_('test3'));
-
- $node = $this->createMethodBuilder('test')
- ->addStmt($stmt1)
- ->addStmts(array($stmt2, $stmt3))
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\ClassMethod('test', array(
- 'stmts' => array($stmt1, $stmt2, $stmt3)
- )),
- $node
- );
- }
- public function testDocComment() {
- $node = $this->createMethodBuilder('test')
- ->setDocComment('/** Test */')
- ->getNode();
-
- $this->assertEquals(new Stmt\ClassMethod('test', array(), array(
- 'comments' => array(new Comment\Doc('/** Test */'))
- )), $node);
- }
-
- public function testReturnType() {
- $node = $this->createMethodBuilder('test')
- ->setReturnType('bool')
- ->getNode();
- $this->assertEquals(new Stmt\ClassMethod('test', array(
- 'returnType' => 'bool'
- ), array()), $node);
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Cannot add statements to an abstract method
- */
- public function testAddStmtToAbstractMethodError() {
- $this->createMethodBuilder('test')
- ->makeAbstract()
- ->addStmt(new Print_(new String_('test')))
- ;
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Cannot make method with statements abstract
- */
- public function testMakeMethodWithStmtsAbstractError() {
- $this->createMethodBuilder('test')
- ->addStmt(new Print_(new String_('test')))
- ->makeAbstract()
- ;
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Expected parameter node, got "Name"
- */
- public function testInvalidParamError() {
- $this->createMethodBuilder('test')
- ->addParam(new Node\Name('foo'))
- ;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/NamespaceTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/NamespaceTest.php
deleted file mode 100644
index 54e8c93d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/NamespaceTest.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser\Node;
-use PhpParser\Node\Stmt;
-
-class NamespaceTest extends \PHPUnit_Framework_TestCase
-{
- protected function createNamespaceBuilder($fqn) {
- return new Namespace_($fqn);
- }
-
- public function testCreation() {
- $stmt1 = new Stmt\Class_('SomeClass');
- $stmt2 = new Stmt\Interface_('SomeInterface');
- $stmt3 = new Stmt\Function_('someFunction');
- $expected = new Stmt\Namespace_(
- new Node\Name('Name\Space'),
- array($stmt1, $stmt2, $stmt3)
- );
-
- $node = $this->createNamespaceBuilder('Name\Space')
- ->addStmt($stmt1)
- ->addStmts(array($stmt2, $stmt3))
- ->getNode()
- ;
- $this->assertEquals($expected, $node);
-
- $node = $this->createNamespaceBuilder(new Node\Name(array('Name', 'Space')))
- ->addStmts(array($stmt1, $stmt2))
- ->addStmt($stmt3)
- ->getNode()
- ;
- $this->assertEquals($expected, $node);
-
- $node = $this->createNamespaceBuilder(null)->getNode();
- $this->assertNull($node->name);
- $this->assertEmpty($node->stmts);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/ParamTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/ParamTest.php
deleted file mode 100644
index f71a10c2..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/ParamTest.php
+++ /dev/null
@@ -1,124 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Scalar;
-
-class ParamTest extends \PHPUnit_Framework_TestCase
-{
- public function createParamBuilder($name) {
- return new Param($name);
- }
-
- /**
- * @dataProvider provideTestDefaultValues
- */
- public function testDefaultValues($value, $expectedValueNode) {
- $node = $this->createParamBuilder('test')
- ->setDefault($value)
- ->getNode()
- ;
-
- $this->assertEquals($expectedValueNode, $node->default);
- }
-
- public function provideTestDefaultValues() {
- return array(
- array(
- null,
- new Expr\ConstFetch(new Node\Name('null'))
- ),
- array(
- true,
- new Expr\ConstFetch(new Node\Name('true'))
- ),
- array(
- false,
- new Expr\ConstFetch(new Node\Name('false'))
- ),
- array(
- 31415,
- new Scalar\LNumber(31415)
- ),
- array(
- 3.1415,
- new Scalar\DNumber(3.1415)
- ),
- array(
- 'Hallo World',
- new Scalar\String_('Hallo World')
- ),
- array(
- array(1, 2, 3),
- new Expr\Array_(array(
- new Expr\ArrayItem(new Scalar\LNumber(1)),
- new Expr\ArrayItem(new Scalar\LNumber(2)),
- new Expr\ArrayItem(new Scalar\LNumber(3)),
- ))
- ),
- array(
- array('foo' => 'bar', 'bar' => 'foo'),
- new Expr\Array_(array(
- new Expr\ArrayItem(
- new Scalar\String_('bar'),
- new Scalar\String_('foo')
- ),
- new Expr\ArrayItem(
- new Scalar\String_('foo'),
- new Scalar\String_('bar')
- ),
- ))
- ),
- array(
- new Scalar\MagicConst\Dir,
- new Scalar\MagicConst\Dir
- )
- );
- }
-
- public function testTypeHints() {
- $node = $this->createParamBuilder('test')
- ->setTypeHint('array')
- ->getNode()
- ;
-
- $this->assertEquals(
- new Node\Param('test', null, 'array'),
- $node
- );
-
- $node = $this->createParamBuilder('test')
- ->setTypeHint('callable')
- ->getNode()
- ;
-
- $this->assertEquals(
- new Node\Param('test', null, 'callable'),
- $node
- );
-
- $node = $this->createParamBuilder('test')
- ->setTypeHint('Some\Class')
- ->getNode()
- ;
-
- $this->assertEquals(
- new Node\Param('test', null, new Node\Name('Some\Class')),
- $node
- );
- }
-
- public function testByRef() {
- $node = $this->createParamBuilder('test')
- ->makeByRef()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Node\Param('test', null, null, true),
- $node
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/PropertyTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/PropertyTest.php
deleted file mode 100644
index 1e62173d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/PropertyTest.php
+++ /dev/null
@@ -1,147 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Scalar;
-use PhpParser\Comment;
-
-class PropertyTest extends \PHPUnit_Framework_TestCase
-{
- public function createPropertyBuilder($name) {
- return new Property($name);
- }
-
- public function testModifiers() {
- $node = $this->createPropertyBuilder('test')
- ->makePrivate()
- ->makeStatic()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\Property(
- Stmt\Class_::MODIFIER_PRIVATE
- | Stmt\Class_::MODIFIER_STATIC,
- array(
- new Stmt\PropertyProperty('test')
- )
- ),
- $node
- );
-
- $node = $this->createPropertyBuilder('test')
- ->makeProtected()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\Property(
- Stmt\Class_::MODIFIER_PROTECTED,
- array(
- new Stmt\PropertyProperty('test')
- )
- ),
- $node
- );
-
- $node = $this->createPropertyBuilder('test')
- ->makePublic()
- ->getNode()
- ;
-
- $this->assertEquals(
- new Stmt\Property(
- Stmt\Class_::MODIFIER_PUBLIC,
- array(
- new Stmt\PropertyProperty('test')
- )
- ),
- $node
- );
- }
-
- public function testDocComment() {
- $node = $this->createPropertyBuilder('test')
- ->setDocComment('/** Test */')
- ->getNode();
-
- $this->assertEquals(new Stmt\Property(
- Stmt\Class_::MODIFIER_PUBLIC,
- array(
- new Stmt\PropertyProperty('test')
- ),
- array(
- 'comments' => array(new Comment\Doc('/** Test */'))
- )
- ), $node);
- }
-
- /**
- * @dataProvider provideTestDefaultValues
- */
- public function testDefaultValues($value, $expectedValueNode) {
- $node = $this->createPropertyBuilder('test')
- ->setDefault($value)
- ->getNode()
- ;
-
- $this->assertEquals($expectedValueNode, $node->props[0]->default);
- }
-
- public function provideTestDefaultValues() {
- return array(
- array(
- null,
- new Expr\ConstFetch(new Name('null'))
- ),
- array(
- true,
- new Expr\ConstFetch(new Name('true'))
- ),
- array(
- false,
- new Expr\ConstFetch(new Name('false'))
- ),
- array(
- 31415,
- new Scalar\LNumber(31415)
- ),
- array(
- 3.1415,
- new Scalar\DNumber(3.1415)
- ),
- array(
- 'Hallo World',
- new Scalar\String_('Hallo World')
- ),
- array(
- array(1, 2, 3),
- new Expr\Array_(array(
- new Expr\ArrayItem(new Scalar\LNumber(1)),
- new Expr\ArrayItem(new Scalar\LNumber(2)),
- new Expr\ArrayItem(new Scalar\LNumber(3)),
- ))
- ),
- array(
- array('foo' => 'bar', 'bar' => 'foo'),
- new Expr\Array_(array(
- new Expr\ArrayItem(
- new Scalar\String_('bar'),
- new Scalar\String_('foo')
- ),
- new Expr\ArrayItem(
- new Scalar\String_('foo'),
- new Scalar\String_('bar')
- ),
- ))
- ),
- array(
- new Scalar\MagicConst\Dir,
- new Scalar\MagicConst\Dir
- )
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/TraitTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/TraitTest.php
deleted file mode 100644
index a6d69ada..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/TraitTest.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-namespace PhpParser\Builder;
-
-use PhpParser\Comment;
-use PhpParser\Node;
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt;
-
-class TraitTest extends \PHPUnit_Framework_TestCase
-{
- protected function createTraitBuilder($class) {
- return new Trait_($class);
- }
-
- public function testStmtAddition() {
- $method1 = new Stmt\ClassMethod('test1');
- $method2 = new Stmt\ClassMethod('test2');
- $method3 = new Stmt\ClassMethod('test3');
- $prop = new Stmt\Property(Stmt\Class_::MODIFIER_PUBLIC, array(
- new Stmt\PropertyProperty('test')
- ));
- $trait = $this->createTraitBuilder('TestTrait')
- ->setDocComment('/** Nice trait */')
- ->addStmt($method1)
- ->addStmts(array($method2, $method3))
- ->addStmt($prop)
- ->getNode();
- $this->assertEquals(new Stmt\Trait_('TestTrait', array(
- $prop, $method1, $method2, $method3
- ), array(
- 'comments' => array(
- new Comment\Doc('/** Nice trait */')
- )
- )), $trait);
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Unexpected node of type "Stmt_Echo"
- */
- public function testInvalidStmtError() {
- $this->createTraitBuilder('Test')
- ->addStmt(new Stmt\Echo_(array()))
- ;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/UseTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/UseTest.php
deleted file mode 100644
index adaeb3a5..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Builder/UseTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-use PhpParser\Builder;
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt;
-
-class UseTest extends \PHPUnit_Framework_TestCase
-{
- protected function createUseBuilder($name, $type = Stmt\Use_::TYPE_NORMAL) {
- return new Builder\Use_($name, $type);
- }
-
- public function testCreation() {
- $node = $this->createUseBuilder('Foo\Bar')->getNode();
- $this->assertEquals(new Stmt\Use_(array(
- new Stmt\UseUse(new Name('Foo\Bar'), 'Bar')
- )), $node);
-
- $node = $this->createUseBuilder(new Name('Foo\Bar'))->as('XYZ')->getNode();
- $this->assertEquals(new Stmt\Use_(array(
- new Stmt\UseUse(new Name('Foo\Bar'), 'XYZ')
- )), $node);
-
- $node = $this->createUseBuilder('foo\bar', Stmt\Use_::TYPE_FUNCTION)->as('foo')->getNode();
- $this->assertEquals(new Stmt\Use_(array(
- new Stmt\UseUse(new Name('foo\bar'), 'foo')
- ), Stmt\Use_::TYPE_FUNCTION), $node);
- }
-
- public function testNonExistingMethod() {
- $this->setExpectedException('LogicException', 'Method "foo" does not exist');
- $builder = $this->createUseBuilder('Test');
- $builder->foo();
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/BuilderFactoryTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/BuilderFactoryTest.php
deleted file mode 100644
index 1c3ef18d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/BuilderFactoryTest.php
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Node\Expr;
-
-class BuilderFactoryTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider provideTestFactory
- */
- public function testFactory($methodName, $className) {
- $factory = new BuilderFactory;
- $this->assertInstanceOf($className, $factory->$methodName('test'));
- }
-
- public function provideTestFactory() {
- return array(
- array('namespace', 'PhpParser\Builder\Namespace_'),
- array('class', 'PhpParser\Builder\Class_'),
- array('interface', 'PhpParser\Builder\Interface_'),
- array('trait', 'PhpParser\Builder\Trait_'),
- array('method', 'PhpParser\Builder\Method'),
- array('function', 'PhpParser\Builder\Function_'),
- array('property', 'PhpParser\Builder\Property'),
- array('param', 'PhpParser\Builder\Param'),
- array('use', 'PhpParser\Builder\Use_'),
- );
- }
-
- public function testNonExistingMethod() {
- $this->setExpectedException('LogicException', 'Method "foo" does not exist');
- $factory = new BuilderFactory();
- $factory->foo();
- }
-
- public function testIntegration() {
- $factory = new BuilderFactory;
- $node = $factory->namespace('Name\Space')
- ->addStmt($factory->use('Foo\Bar\SomeOtherClass'))
- ->addStmt($factory->use('Foo\Bar')->as('A'))
- ->addStmt($factory
- ->class('SomeClass')
- ->extend('SomeOtherClass')
- ->implement('A\Few', '\Interfaces')
- ->makeAbstract()
-
- ->addStmt($factory->method('firstMethod'))
-
- ->addStmt($factory->method('someMethod')
- ->makePublic()
- ->makeAbstract()
- ->addParam($factory->param('someParam')->setTypeHint('SomeClass'))
- ->setDocComment('/**
- * This method does something.
- *
- * @param SomeClass And takes a parameter
- */'))
-
- ->addStmt($factory->method('anotherMethod')
- ->makeProtected()
- ->addParam($factory->param('someParam')->setDefault('test'))
- ->addStmt(new Expr\Print_(new Expr\Variable('someParam'))))
-
- ->addStmt($factory->property('someProperty')->makeProtected())
- ->addStmt($factory->property('anotherProperty')
- ->makePrivate()
- ->setDefault(array(1, 2, 3))))
- ->getNode()
- ;
-
- $expected = <<<'EOC'
-<?php
-
-namespace Name\Space;
-
-use Foo\Bar\SomeOtherClass;
-use Foo\Bar as A;
-abstract class SomeClass extends SomeOtherClass implements A\Few, \Interfaces
-{
- protected $someProperty;
- private $anotherProperty = array(1, 2, 3);
- function firstMethod()
- {
- }
- /**
- * This method does something.
- *
- * @param SomeClass And takes a parameter
- */
- public abstract function someMethod(SomeClass $someParam);
- protected function anotherMethod($someParam = 'test')
- {
- print $someParam;
- }
-}
-EOC;
-
- $stmts = array($node);
- $prettyPrinter = new PrettyPrinter\Standard();
- $generated = $prettyPrinter->prettyPrintFile($stmts);
-
- $this->assertEquals(
- str_replace("\r\n", "\n", $expected),
- str_replace("\r\n", "\n", $generated)
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/CodeParsingTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/CodeParsingTest.php
deleted file mode 100644
index 5eb695ea..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/CodeParsingTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Comment;
-
-require_once __DIR__ . '/CodeTestAbstract.php';
-
-class CodeParsingTest extends CodeTestAbstract
-{
- /**
- * @dataProvider provideTestParse
- */
- public function testParse($name, $code, $expected, $mode) {
- $lexer = new Lexer\Emulative(array('usedAttributes' => array(
- 'startLine', 'endLine', 'startFilePos', 'endFilePos', 'comments'
- )));
- $parser5 = new Parser\Php5($lexer, array(
- 'throwOnError' => false,
- ));
- $parser7 = new Parser\Php7($lexer, array(
- 'throwOnError' => false,
- ));
-
- $output5 = $this->getParseOutput($parser5, $code);
- $output7 = $this->getParseOutput($parser7, $code);
-
- if ($mode === 'php5') {
- $this->assertSame($expected, $output5, $name);
- $this->assertNotSame($expected, $output7, $name);
- } else if ($mode === 'php7') {
- $this->assertNotSame($expected, $output5, $name);
- $this->assertSame($expected, $output7, $name);
- } else {
- $this->assertSame($expected, $output5, $name);
- $this->assertSame($expected, $output7, $name);
- }
- }
-
- private function getParseOutput(Parser $parser, $code) {
- $stmts = $parser->parse($code);
- $errors = $parser->getErrors();
-
- $output = '';
- foreach ($errors as $error) {
- $output .= $this->formatErrorMessage($error, $code) . "\n";
- }
-
- if (null !== $stmts) {
- $dumper = new NodeDumper(['dumpComments' => true]);
- $output .= $dumper->dump($stmts);
- }
-
- return canonicalize($output);
- }
-
- public function provideTestParse() {
- return $this->getTests(__DIR__ . '/../code/parser', 'test');
- }
-
- private function formatErrorMessage(Error $e, $code) {
- if ($e->hasColumnInfo()) {
- return $e->getRawMessage() . ' from ' . $e->getStartLine() . ':' . $e->getStartColumn($code)
- . ' to ' . $e->getEndLine() . ':' . $e->getEndColumn($code);
- } else {
- return $e->getMessage();
- }
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/CodeTestAbstract.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/CodeTestAbstract.php
deleted file mode 100644
index 4395ad37..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/CodeTestAbstract.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-abstract class CodeTestAbstract extends \PHPUnit_Framework_TestCase
-{
- protected function getTests($directory, $fileExtension) {
- $it = new \RecursiveDirectoryIterator($directory);
- $it = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::LEAVES_ONLY);
- $it = new \RegexIterator($it, '(\.' . preg_quote($fileExtension) . '$)');
-
- $tests = array();
- foreach ($it as $file) {
- $fileName = realpath($file->getPathname());
- $fileContents = file_get_contents($fileName);
- $fileContents = canonicalize($fileContents);
-
- // evaluate @@{expr}@@ expressions
- $fileContents = preg_replace_callback(
- '/@@\{(.*?)\}@@/',
- function($matches) {
- return eval('return ' . $matches[1] . ';');
- },
- $fileContents
- );
-
- // parse sections
- $parts = preg_split("/\n-----(?:\n|$)/", $fileContents);
-
- // first part is the name
- $name = array_shift($parts) . ' (' . $fileName . ')';
- $shortName = basename($fileName, '.test');
-
- // multiple sections possible with always two forming a pair
- $chunks = array_chunk($parts, 2);
- foreach ($chunks as $i => $chunk) {
- $dataSetName = $shortName . (count($chunks) > 1 ? '#' . $i : '');
- list($expected, $mode) = $this->extractMode($chunk[1]);
- $tests[$dataSetName] = array($name, $chunk[0], $expected, $mode);
- }
- }
-
- return $tests;
- }
-
- private function extractMode($expected) {
- $firstNewLine = strpos($expected, "\n");
- if (false === $firstNewLine) {
- $firstNewLine = strlen($expected);
- }
-
- $firstLine = substr($expected, 0, $firstNewLine);
- if (0 !== strpos($firstLine, '!!')) {
- return [$expected, null];
- }
-
- $expected = (string) substr($expected, $firstNewLine + 1);
- return [$expected, substr($firstLine, 2)];
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/CommentTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/CommentTest.php
deleted file mode 100644
index fb20557b..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/CommentTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-class CommentTest extends \PHPUnit_Framework_TestCase
-{
- public function testGetSet() {
- $comment = new Comment('/* Some comment */', 1, 10);
-
- $this->assertSame('/* Some comment */', $comment->getText());
- $this->assertSame('/* Some comment */', (string) $comment);
- $this->assertSame(1, $comment->getLine());
- $this->assertSame(10, $comment->getFilePos());
-
- $comment->setText('/* Some other comment */');
- $comment->setLine(10);
-
- $this->assertSame('/* Some other comment */', $comment->getText());
- $this->assertSame('/* Some other comment */', (string) $comment);
- $this->assertSame(10, $comment->getLine());
- }
-
- /**
- * @dataProvider provideTestReformatting
- */
- public function testReformatting($commentText, $reformattedText) {
- $comment = new Comment($commentText);
- $this->assertSame($reformattedText, $comment->getReformattedText());
- }
-
- public function provideTestReformatting() {
- return array(
- array('// Some text' . "\n", '// Some text'),
- array('/* Some text */', '/* Some text */'),
- array(
- '/**
- * Some text.
- * Some more text.
- */',
- '/**
- * Some text.
- * Some more text.
- */'
- ),
- array(
- '/*
- Some text.
- Some more text.
- */',
- '/*
- Some text.
- Some more text.
-*/'
- ),
- array(
- '/* Some text.
- More text.
- Even more text. */',
- '/* Some text.
- More text.
- Even more text. */'
- ),
- array(
- '/* Some text.
- More text.
- Indented text. */',
- '/* Some text.
- More text.
- Indented text. */',
- ),
- // invalid comment -> no reformatting
- array(
- 'hallo
- world',
- 'hallo
- world',
- ),
- );
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/ErrorTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/ErrorTest.php
deleted file mode 100644
index 021a7f89..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/ErrorTest.php
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-class ErrorTest extends \PHPUnit_Framework_TestCase
-{
- public function testConstruct() {
- $attributes = array(
- 'startLine' => 10,
- 'endLine' => 11,
- );
- $error = new Error('Some error', $attributes);
-
- $this->assertSame('Some error', $error->getRawMessage());
- $this->assertSame($attributes, $error->getAttributes());
- $this->assertSame(10, $error->getStartLine());
- $this->assertSame(11, $error->getEndLine());
- $this->assertSame(10, $error->getRawLine());
- $this->assertSame('Some error on line 10', $error->getMessage());
-
- return $error;
- }
-
- /**
- * @depends testConstruct
- */
- public function testSetMessageAndLine(Error $error) {
- $error->setRawMessage('Some other error');
- $this->assertSame('Some other error', $error->getRawMessage());
-
- $error->setStartLine(15);
- $this->assertSame(15, $error->getStartLine());
- $this->assertSame('Some other error on line 15', $error->getMessage());
-
- $error->setRawLine(17);
- $this->assertSame(17, $error->getRawLine());
- $this->assertSame('Some other error on line 17', $error->getMessage());
- }
-
- public function testUnknownLine() {
- $error = new Error('Some error');
-
- $this->assertSame(-1, $error->getStartLine());
- $this->assertSame(-1, $error->getEndLine());
- $this->assertSame(-1, $error->getRawLine());
- $this->assertSame('Some error on unknown line', $error->getMessage());
- }
-
- /** @dataProvider provideTestColumnInfo */
- public function testColumnInfo($code, $startPos, $endPos, $startColumn, $endColumn) {
- $error = new Error('Some error', array(
- 'startFilePos' => $startPos,
- 'endFilePos' => $endPos,
- ));
-
- $this->assertSame(true, $error->hasColumnInfo());
- $this->assertSame($startColumn, $error->getStartColumn($code));
- $this->assertSame($endColumn, $error->getEndColumn($code));
-
- }
-
- public function provideTestColumnInfo() {
- return array(
- // Error at "bar"
- array("<?php foo bar baz", 10, 12, 11, 13),
- array("<?php\nfoo bar baz", 10, 12, 5, 7),
- array("<?php foo\nbar baz", 10, 12, 1, 3),
- array("<?php foo bar\nbaz", 10, 12, 11, 13),
- array("<?php\r\nfoo bar baz", 11, 13, 5, 7),
- // Error at "baz"
- array("<?php foo bar baz", 14, 16, 15, 17),
- array("<?php foo bar\nbaz", 14, 16, 1, 3),
- // Error at string literal
- array("<?php foo 'bar\nbaz' xyz", 10, 18, 11, 4),
- array("<?php\nfoo 'bar\nbaz' xyz", 10, 18, 5, 4),
- array("<?php foo\n'\nbarbaz\n'\nxyz", 10, 19, 1, 1),
- // Error over full string
- array("<?php", 0, 4, 1, 5),
- array("<?\nphp", 0, 5, 1, 3),
- );
- }
-
- public function testNoColumnInfo() {
- $error = new Error('Some error', 3);
-
- $this->assertSame(false, $error->hasColumnInfo());
- try {
- $error->getStartColumn('');
- $this->fail('Expected RuntimeException');
- } catch (\RuntimeException $e) {
- $this->assertSame('Error does not have column information', $e->getMessage());
- }
- try {
- $error->getEndColumn('');
- $this->fail('Expected RuntimeException');
- } catch (\RuntimeException $e) {
- $this->assertSame('Error does not have column information', $e->getMessage());
- }
- }
-
- /**
- * @expectedException \RuntimeException
- * @expectedExceptionMessage Invalid position information
- */
- public function testInvalidPosInfo() {
- $error = new Error('Some error', array(
- 'startFilePos' => 10,
- 'endFilePos' => 11,
- ));
- $error->getStartColumn('code');
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Lexer/EmulativeTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Lexer/EmulativeTest.php
deleted file mode 100644
index f1fe6183..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Lexer/EmulativeTest.php
+++ /dev/null
@@ -1,133 +0,0 @@
-<?php
-
-namespace PhpParser\Lexer;
-
-use PhpParser\LexerTest;
-use PhpParser\Parser\Tokens;
-
-require_once __DIR__ . '/../LexerTest.php';
-
-class EmulativeTest extends LexerTest
-{
- protected function getLexer(array $options = array()) {
- return new Emulative($options);
- }
-
- /**
- * @dataProvider provideTestReplaceKeywords
- */
- public function testReplaceKeywords($keyword, $expectedToken) {
- $lexer = $this->getLexer();
- $lexer->startLexing('<?php ' . $keyword);
-
- $this->assertSame($expectedToken, $lexer->getNextToken());
- $this->assertSame(0, $lexer->getNextToken());
- }
-
- /**
- * @dataProvider provideTestReplaceKeywords
- */
- public function testNoReplaceKeywordsAfterObjectOperator($keyword) {
- $lexer = $this->getLexer();
- $lexer->startLexing('<?php ->' . $keyword);
-
- $this->assertSame(Tokens::T_OBJECT_OPERATOR, $lexer->getNextToken());
- $this->assertSame(Tokens::T_STRING, $lexer->getNextToken());
- $this->assertSame(0, $lexer->getNextToken());
- }
-
- public function provideTestReplaceKeywords() {
- return array(
- // PHP 5.5
- array('finally', Tokens::T_FINALLY),
- array('yield', Tokens::T_YIELD),
-
- // PHP 5.4
- array('callable', Tokens::T_CALLABLE),
- array('insteadof', Tokens::T_INSTEADOF),
- array('trait', Tokens::T_TRAIT),
- array('__TRAIT__', Tokens::T_TRAIT_C),
-
- // PHP 5.3
- array('__DIR__', Tokens::T_DIR),
- array('goto', Tokens::T_GOTO),
- array('namespace', Tokens::T_NAMESPACE),
- array('__NAMESPACE__', Tokens::T_NS_C),
- );
- }
-
- /**
- * @dataProvider provideTestLexNewFeatures
- */
- public function testLexNewFeatures($code, array $expectedTokens) {
- $lexer = $this->getLexer();
- $lexer->startLexing('<?php ' . $code);
-
- foreach ($expectedTokens as $expectedToken) {
- list($expectedTokenType, $expectedTokenText) = $expectedToken;
- $this->assertSame($expectedTokenType, $lexer->getNextToken($text));
- $this->assertSame($expectedTokenText, $text);
- }
- $this->assertSame(0, $lexer->getNextToken());
- }
-
- /**
- * @dataProvider provideTestLexNewFeatures
- */
- public function testLeaveStuffAloneInStrings($code) {
- $stringifiedToken = '"' . addcslashes($code, '"\\') . '"';
-
- $lexer = $this->getLexer();
- $lexer->startLexing('<?php ' . $stringifiedToken);
-
- $this->assertSame(Tokens::T_CONSTANT_ENCAPSED_STRING, $lexer->getNextToken($text));
- $this->assertSame($stringifiedToken, $text);
- $this->assertSame(0, $lexer->getNextToken());
- }
-
- public function provideTestLexNewFeatures() {
- return array(
- array('yield from', array(
- array(Tokens::T_YIELD_FROM, 'yield from'),
- )),
- array("yield\r\nfrom", array(
- array(Tokens::T_YIELD_FROM, "yield\r\nfrom"),
- )),
- array('...', array(
- array(Tokens::T_ELLIPSIS, '...'),
- )),
- array('**', array(
- array(Tokens::T_POW, '**'),
- )),
- array('**=', array(
- array(Tokens::T_POW_EQUAL, '**='),
- )),
- array('??', array(
- array(Tokens::T_COALESCE, '??'),
- )),
- array('<=>', array(
- array(Tokens::T_SPACESHIP, '<=>'),
- )),
- array('0b1010110', array(
- array(Tokens::T_LNUMBER, '0b1010110'),
- )),
- array('0b1011010101001010110101010010101011010101010101101011001110111100', array(
- array(Tokens::T_DNUMBER, '0b1011010101001010110101010010101011010101010101101011001110111100'),
- )),
- array('\\', array(
- array(Tokens::T_NS_SEPARATOR, '\\'),
- )),
- array("<<<'NOWDOC'\nNOWDOC;\n", array(
- array(Tokens::T_START_HEREDOC, "<<<'NOWDOC'\n"),
- array(Tokens::T_END_HEREDOC, 'NOWDOC'),
- array(ord(';'), ';'),
- )),
- array("<<<'NOWDOC'\nFoobar\nNOWDOC;\n", array(
- array(Tokens::T_START_HEREDOC, "<<<'NOWDOC'\n"),
- array(Tokens::T_ENCAPSED_AND_WHITESPACE, "Foobar\n"),
- array(Tokens::T_END_HEREDOC, 'NOWDOC'),
- array(ord(';'), ';'),
- )),
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/LexerTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/LexerTest.php
deleted file mode 100644
index d180e765..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/LexerTest.php
+++ /dev/null
@@ -1,250 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Parser\Tokens;
-
-class LexerTest extends \PHPUnit_Framework_TestCase
-{
- /* To allow overwriting in parent class */
- protected function getLexer(array $options = array()) {
- return new Lexer($options);
- }
-
- /**
- * @dataProvider provideTestError
- */
- public function testError($code, $message) {
- if (defined('HHVM_VERSION')) {
- $this->markTestSkipped('HHVM does not throw warnings from token_get_all()');
- }
-
- $lexer = $this->getLexer();
- try {
- $lexer->startLexing($code);
- } catch (Error $e) {
- $this->assertSame($message, $e->getMessage());
-
- return;
- }
-
- $this->fail('Expected PhpParser\Error');
- }
-
- public function provideTestError() {
- return array(
- array('<?php /*', 'Unterminated comment on line 1'),
- array('<?php ' . "\1", 'Unexpected character "' . "\1" . '" (ASCII 1) on unknown line'),
- array('<?php ' . "\0", 'Unexpected null byte on unknown line'),
- );
- }
-
- /**
- * @dataProvider provideTestLex
- */
- public function testLex($code, $options, $tokens) {
- $lexer = $this->getLexer($options);
- $lexer->startLexing($code);
- while ($id = $lexer->getNextToken($value, $startAttributes, $endAttributes)) {
- $token = array_shift($tokens);
-
- $this->assertSame($token[0], $id);
- $this->assertSame($token[1], $value);
- $this->assertEquals($token[2], $startAttributes);
- $this->assertEquals($token[3], $endAttributes);
- }
- }
-
- public function provideTestLex() {
- return array(
- // tests conversion of closing PHP tag and drop of whitespace and opening tags
- array(
- '<?php tokens ?>plaintext',
- array(),
- array(
- array(
- Tokens::T_STRING, 'tokens',
- array('startLine' => 1), array('endLine' => 1)
- ),
- array(
- ord(';'), '?>',
- array('startLine' => 1), array('endLine' => 1)
- ),
- array(
- Tokens::T_INLINE_HTML, 'plaintext',
- array('startLine' => 1), array('endLine' => 1)
- ),
- )
- ),
- // tests line numbers
- array(
- '<?php' . "\n" . '$ token /** doc' . "\n" . 'comment */ $',
- array(),
- array(
- array(
- ord('$'), '$',
- array('startLine' => 2), array('endLine' => 2)
- ),
- array(
- Tokens::T_STRING, 'token',
- array('startLine' => 2), array('endLine' => 2)
- ),
- array(
- ord('$'), '$',
- array(
- 'startLine' => 3,
- 'comments' => array(
- new Comment\Doc('/** doc' . "\n" . 'comment */', 2, 14),
- )
- ),
- array('endLine' => 3)
- ),
- )
- ),
- // tests comment extraction
- array(
- '<?php /* comment */ // comment' . "\n" . '/** docComment 1 *//** docComment 2 */ token',
- array(),
- array(
- array(
- Tokens::T_STRING, 'token',
- array(
- 'startLine' => 2,
- 'comments' => array(
- new Comment('/* comment */', 1, 6),
- new Comment('// comment' . "\n", 1, 20),
- new Comment\Doc('/** docComment 1 */', 2, 31),
- new Comment\Doc('/** docComment 2 */', 2, 50),
- ),
- ),
- array('endLine' => 2)
- ),
- )
- ),
- // tests differing start and end line
- array(
- '<?php "foo' . "\n" . 'bar"',
- array(),
- array(
- array(
- Tokens::T_CONSTANT_ENCAPSED_STRING, '"foo' . "\n" . 'bar"',
- array('startLine' => 1), array('endLine' => 2)
- ),
- )
- ),
- // tests exact file offsets
- array(
- '<?php "a";' . "\n" . '// foo' . "\n" . '"b";',
- array('usedAttributes' => array('startFilePos', 'endFilePos')),
- array(
- array(
- Tokens::T_CONSTANT_ENCAPSED_STRING, '"a"',
- array('startFilePos' => 6), array('endFilePos' => 8)
- ),
- array(
- ord(';'), ';',
- array('startFilePos' => 9), array('endFilePos' => 9)
- ),
- array(
- Tokens::T_CONSTANT_ENCAPSED_STRING, '"b"',
- array('startFilePos' => 18), array('endFilePos' => 20)
- ),
- array(
- ord(';'), ';',
- array('startFilePos' => 21), array('endFilePos' => 21)
- ),
- )
- ),
- // tests token offsets
- array(
- '<?php "a";' . "\n" . '// foo' . "\n" . '"b";',
- array('usedAttributes' => array('startTokenPos', 'endTokenPos')),
- array(
- array(
- Tokens::T_CONSTANT_ENCAPSED_STRING, '"a"',
- array('startTokenPos' => 1), array('endTokenPos' => 1)
- ),
- array(
- ord(';'), ';',
- array('startTokenPos' => 2), array('endTokenPos' => 2)
- ),
- array(
- Tokens::T_CONSTANT_ENCAPSED_STRING, '"b"',
- array('startTokenPos' => 5), array('endTokenPos' => 5)
- ),
- array(
- ord(';'), ';',
- array('startTokenPos' => 6), array('endTokenPos' => 6)
- ),
- )
- ),
- // tests all attributes being disabled
- array(
- '<?php /* foo */ $bar;',
- array('usedAttributes' => array()),
- array(
- array(
- Tokens::T_VARIABLE, '$bar',
- array(), array()
- ),
- array(
- ord(';'), ';',
- array(), array()
- )
- )
- )
- );
- }
-
- /**
- * @dataProvider provideTestHaltCompiler
- */
- public function testHandleHaltCompiler($code, $remaining) {
- $lexer = $this->getLexer();
- $lexer->startLexing($code);
-
- while (Tokens::T_HALT_COMPILER !== $lexer->getNextToken());
-
- $this->assertSame($remaining, $lexer->handleHaltCompiler());
- $this->assertSame(0, $lexer->getNextToken());
- }
-
- public function provideTestHaltCompiler() {
- return array(
- array('<?php ... __halt_compiler();Remaining Text', 'Remaining Text'),
- array('<?php ... __halt_compiler ( ) ;Remaining Text', 'Remaining Text'),
- array('<?php ... __halt_compiler() ?>Remaining Text', 'Remaining Text'),
- //array('<?php ... __halt_compiler();' . "\0", "\0"),
- //array('<?php ... __halt_compiler /* */ ( ) ;Remaining Text', 'Remaining Text'),
- );
- }
-
- /**
- * @expectedException \PhpParser\Error
- * @expectedExceptionMessage __HALT_COMPILER must be followed by "();"
- */
- public function testHandleHaltCompilerError() {
- $lexer = $this->getLexer();
- $lexer->startLexing('<?php ... __halt_compiler invalid ();');
-
- while (Tokens::T_HALT_COMPILER !== $lexer->getNextToken());
- $lexer->handleHaltCompiler();
- }
-
- public function testGetTokens() {
- $code = '<?php "a";' . "\n" . '// foo' . "\n" . '"b";';
- $expectedTokens = array(
- array(T_OPEN_TAG, '<?php ', 1),
- array(T_CONSTANT_ENCAPSED_STRING, '"a"', 1),
- ';',
- array(T_WHITESPACE, "\n", 1),
- array(T_COMMENT, '// foo' . "\n", 2),
- array(T_CONSTANT_ENCAPSED_STRING, '"b"', 3),
- ';',
- );
-
- $lexer = $this->getLexer();
- $lexer->startLexing($code);
- $this->assertSame($expectedTokens, $lexer->getTokens());
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/NameTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/NameTest.php
deleted file mode 100644
index 33785511..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/NameTest.php
+++ /dev/null
@@ -1,164 +0,0 @@
-<?php
-
-namespace PhpParser\Node;
-
-class NameTest extends \PHPUnit_Framework_TestCase
-{
- public function testConstruct() {
- $name = new Name(array('foo', 'bar'));
- $this->assertSame(array('foo', 'bar'), $name->parts);
-
- $name = new Name('foo\bar');
- $this->assertSame(array('foo', 'bar'), $name->parts);
- }
-
- public function testGet() {
- $name = new Name('foo');
- $this->assertSame('foo', $name->getFirst());
- $this->assertSame('foo', $name->getLast());
-
- $name = new Name('foo\bar');
- $this->assertSame('foo', $name->getFirst());
- $this->assertSame('bar', $name->getLast());
- }
-
- public function testToString() {
- $name = new Name('foo\bar');
-
- $this->assertSame('foo\bar', (string) $name);
- $this->assertSame('foo\bar', $name->toString());
- $this->assertSame('foo_bar', $name->toString('_'));
- }
-
- public function testSet() {
- $name = new Name('foo');
-
- $name->set('foo\bar');
- $this->assertSame('foo\bar', $name->toString());
-
- $name->set(array('foo', 'bar'));
- $this->assertSame('foo\bar', $name->toString());
-
- $name->set(new Name('foo\bar'));
- $this->assertSame('foo\bar', $name->toString());
- }
-
- public function testSetFirst() {
- $name = new Name('foo');
-
- $name->setFirst('bar');
- $this->assertSame('bar', $name->toString());
-
- $name->setFirst('A\B');
- $this->assertSame('A\B', $name->toString());
-
- $name->setFirst('C');
- $this->assertSame('C\B', $name->toString());
-
- $name->setFirst('D\E');
- $this->assertSame('D\E\B', $name->toString());
- }
-
- public function testSetLast() {
- $name = new Name('foo');
-
- $name->setLast('bar');
- $this->assertSame('bar', $name->toString());
-
- $name->setLast('A\B');
- $this->assertSame('A\B', $name->toString());
-
- $name->setLast('C');
- $this->assertSame('A\C', $name->toString());
-
- $name->setLast('D\E');
- $this->assertSame('A\D\E', $name->toString());
- }
-
- public function testAppend() {
- $name = new Name('foo');
-
- $name->append('bar');
- $this->assertSame('foo\bar', $name->toString());
-
- $name->append('bar\foo');
- $this->assertSame('foo\bar\bar\foo', $name->toString());
- }
-
- public function testPrepend() {
- $name = new Name('foo');
-
- $name->prepend('bar');
- $this->assertSame('bar\foo', $name->toString());
-
- $name->prepend('foo\bar');
- $this->assertSame('foo\bar\bar\foo', $name->toString());
- }
-
- public function testSlice() {
- $name = new Name('foo\bar');
- $this->assertEquals(new Name('foo\bar'), $name->slice(0));
- $this->assertEquals(new Name('bar'), $name->slice(1));
- $this->assertEquals(new Name([]), $name->slice(2));
- }
-
- /**
- * @expectedException \OutOfBoundsException
- * @expectedExceptionMessage Offset 4 is out of bounds
- */
- public function testSliceException() {
- (new Name('foo\bar\baz'))->slice(4);
- }
-
- public function testConcat() {
- $this->assertEquals(new Name('foo\bar\baz'), Name::concat('foo', 'bar\baz'));
- $this->assertEquals(
- new Name\FullyQualified('foo\bar'),
- Name\FullyQualified::concat(['foo'], new Name('bar'))
- );
-
- $attributes = ['foo' => 'bar'];
- $this->assertEquals(
- new Name\Relative('foo\bar\baz', $attributes),
- Name\Relative::concat(new Name\FullyQualified('foo\bar'), 'baz', $attributes)
- );
-
- $this->assertEquals(new Name('foo'), Name::concat([], 'foo'));
- $this->assertEquals(new Name([]), Name::concat([], []));
- }
-
- public function testIs() {
- $name = new Name('foo');
- $this->assertTrue ($name->isUnqualified());
- $this->assertFalse($name->isQualified());
- $this->assertFalse($name->isFullyQualified());
- $this->assertFalse($name->isRelative());
-
- $name = new Name('foo\bar');
- $this->assertFalse($name->isUnqualified());
- $this->assertTrue ($name->isQualified());
- $this->assertFalse($name->isFullyQualified());
- $this->assertFalse($name->isRelative());
-
- $name = new Name\FullyQualified('foo');
- $this->assertFalse($name->isUnqualified());
- $this->assertFalse($name->isQualified());
- $this->assertTrue ($name->isFullyQualified());
- $this->assertFalse($name->isRelative());
-
- $name = new Name\Relative('foo');
- $this->assertFalse($name->isUnqualified());
- $this->assertFalse($name->isQualified());
- $this->assertFalse($name->isFullyQualified());
- $this->assertTrue ($name->isRelative());
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage When changing a name you need to pass either a string, an array or a Name node
- */
- public function testInvalidArg() {
- $name = new Name('foo');
- $name->set(new \stdClass);
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/MagicConstTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/MagicConstTest.php
deleted file mode 100644
index 3141f563..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/MagicConstTest.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar;
-
-class MagicConstTest extends \PHPUnit_Framework_TestCase {
- /**
- * @dataProvider provideTestGetName
- */
- public function testGetName(MagicConst $magicConst, $name) {
- $this->assertSame($name, $magicConst->getName());
- }
-
- public function provideTestGetName() {
- return array(
- array(new MagicConst\Class_, '__CLASS__'),
- array(new MagicConst\Dir, '__DIR__'),
- array(new MagicConst\File, '__FILE__'),
- array(new MagicConst\Function_, '__FUNCTION__'),
- array(new MagicConst\Line, '__LINE__'),
- array(new MagicConst\Method, '__METHOD__'),
- array(new MagicConst\Namespace_, '__NAMESPACE__'),
- array(new MagicConst\Trait_, '__TRAIT__'),
- );
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/StringTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/StringTest.php
deleted file mode 100644
index be390357..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Scalar/StringTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Scalar;
-
-class StringTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider provideTestParseEscapeSequences
- */
- public function testParseEscapeSequences($expected, $string, $quote) {
- $this->assertSame(
- $expected,
- String_::parseEscapeSequences($string, $quote)
- );
- }
-
- /**
- * @dataProvider provideTestParse
- */
- public function testCreate($expected, $string) {
- $this->assertSame(
- $expected,
- String_::parse($string)
- );
- }
-
- public function provideTestParseEscapeSequences() {
- return array(
- array('"', '\\"', '"'),
- array('\\"', '\\"', '`'),
- array('\\"\\`', '\\"\\`', null),
- array("\\\$\n\r\t\f\v", '\\\\\$\n\r\t\f\v', null),
- array("\x1B", '\e', null),
- array(chr(255), '\xFF', null),
- array(chr(255), '\377', null),
- array(chr(0), '\400', null),
- array("\0", '\0', null),
- array('\xFF', '\\\\xFF', null),
- );
- }
-
- public function provideTestParse() {
- $tests = array(
- array('A', '\'A\''),
- array('A', 'b\'A\''),
- array('A', '"A"'),
- array('A', 'b"A"'),
- array('\\', '\'\\\\\''),
- array('\'', '\'\\\'\''),
- );
-
- foreach ($this->provideTestParseEscapeSequences() as $i => $test) {
- // skip second and third tests, they aren't for double quotes
- if ($i != 1 && $i != 2) {
- $tests[] = array($test[0], '"' . $test[1] . '"');
- }
- }
-
- return $tests;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassMethodTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassMethodTest.php
deleted file mode 100644
index fa8aed80..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassMethodTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-class ClassMethodTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider provideModifiers
- */
- public function testModifiers($modifier) {
- $node = new ClassMethod('foo', array(
- 'type' => constant('PhpParser\Node\Stmt\Class_::MODIFIER_' . strtoupper($modifier))
- ));
-
- $this->assertTrue($node->{'is' . $modifier}());
- }
-
- public function testNoModifiers() {
- $node = new ClassMethod('foo', array('type' => 0));
-
- $this->assertTrue($node->isPublic());
- $this->assertFalse($node->isProtected());
- $this->assertFalse($node->isPrivate());
- $this->assertFalse($node->isAbstract());
- $this->assertFalse($node->isFinal());
- $this->assertFalse($node->isStatic());
- }
-
- public function provideModifiers() {
- return array(
- array('public'),
- array('protected'),
- array('private'),
- array('abstract'),
- array('final'),
- array('static'),
- );
- }
-
- /**
- * Checks that implicit public modifier detection for method is working
- *
- * @dataProvider implicitPublicModifiers
- *
- * @param integer $modifier Node type modifier
- */
- public function testImplicitPublic($modifier)
- {
- $node = new ClassMethod('foo', array(
- 'type' => constant('PhpParser\Node\Stmt\Class_::MODIFIER_' . strtoupper($modifier))
- ));
-
- $this->assertTrue($node->isPublic(), 'Node should be implicitly public');
- }
-
- public function implicitPublicModifiers() {
- return array(
- array('abstract'),
- array('final'),
- array('static'),
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassTest.php
deleted file mode 100644
index 643b15cb..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-class ClassTest extends \PHPUnit_Framework_TestCase
-{
- public function testIsAbstract() {
- $class = new Class_('Foo', array('type' => Class_::MODIFIER_ABSTRACT));
- $this->assertTrue($class->isAbstract());
-
- $class = new Class_('Foo');
- $this->assertFalse($class->isAbstract());
- }
-
- public function testIsFinal() {
- $class = new Class_('Foo', array('type' => Class_::MODIFIER_FINAL));
- $this->assertTrue($class->isFinal());
-
- $class = new Class_('Foo');
- $this->assertFalse($class->isFinal());
- }
-
- public function testGetMethods() {
- $methods = array(
- new ClassMethod('foo'),
- new ClassMethod('bar'),
- new ClassMethod('fooBar'),
- );
- $class = new Class_('Foo', array(
- 'stmts' => array(
- new TraitUse(array()),
- $methods[0],
- new ClassConst(array()),
- $methods[1],
- new Property(0, array()),
- $methods[2],
- )
- ));
-
- $this->assertSame($methods, $class->getMethods());
- }
-
- public function testGetMethod() {
- $methodConstruct = new ClassMethod('__CONSTRUCT');
- $methodTest = new ClassMethod('test');
- $class = new Class_('Foo', array(
- 'stmts' => array(
- new ClassConst(array()),
- $methodConstruct,
- new Property(0, array()),
- $methodTest,
- )
- ));
-
- $this->assertSame($methodConstruct, $class->getMethod('__construct'));
- $this->assertSame($methodTest, $class->getMethod('test'));
- $this->assertNull($class->getMethod('nonExisting'));
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/InterfaceTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/InterfaceTest.php
deleted file mode 100644
index c4990582..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/InterfaceTest.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-use PhpParser\Node;
-
-class InterfaceTest extends \PHPUnit_Framework_TestCase
-{
- public function testGetMethods() {
- $methods = array(
- new ClassMethod('foo'),
- new ClassMethod('bar'),
- );
- $interface = new Class_('Foo', array(
- 'stmts' => array(
- new Node\Stmt\ClassConst(array(new Node\Const_('C1', new Node\Scalar\String_('C1')))),
- $methods[0],
- new Node\Stmt\ClassConst(array(new Node\Const_('C2', new Node\Scalar\String_('C2')))),
- $methods[1],
- new Node\Stmt\ClassConst(array(new Node\Const_('C3', new Node\Scalar\String_('C3')))),
- )
- ));
-
- $this->assertSame($methods, $interface->getMethods());
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/PropertyTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/PropertyTest.php
deleted file mode 100644
index bcfc0c6b..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Node/Stmt/PropertyTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-namespace PhpParser\Node\Stmt;
-
-class PropertyTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider provideModifiers
- */
- public function testModifiers($modifier) {
- $node = new Property(
- constant('PhpParser\Node\Stmt\Class_::MODIFIER_' . strtoupper($modifier)),
- array() // invalid
- );
-
- $this->assertTrue($node->{'is' . $modifier}());
- }
-
- public function testNoModifiers() {
- $node = new Property(0, array());
-
- $this->assertTrue($node->isPublic());
- $this->assertFalse($node->isProtected());
- $this->assertFalse($node->isPrivate());
- $this->assertFalse($node->isStatic());
- }
-
- public function testStaticImplicitlyPublic() {
- $node = new Property(Class_::MODIFIER_STATIC, array());
- $this->assertTrue($node->isPublic());
- $this->assertFalse($node->isProtected());
- $this->assertFalse($node->isPrivate());
- $this->assertTrue($node->isStatic());
- }
-
- public function provideModifiers() {
- return array(
- array('public'),
- array('protected'),
- array('private'),
- array('static'),
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeAbstractTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeAbstractTest.php
deleted file mode 100644
index 40e0bb88..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeAbstractTest.php
+++ /dev/null
@@ -1,147 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-class DummyNode extends NodeAbstract {
- public $subNode1;
- public $subNode2;
-
- public function __construct($subNode1, $subNode2, $attributes) {
- parent::__construct($attributes);
- $this->subNode1 = $subNode1;
- $this->subNode2 = $subNode2;
- }
-
- public function getSubNodeNames() {
- return array('subNode1', 'subNode2');
- }
-
- // This method is only overwritten because the node is located in an unusual namespace
- public function getType() {
- return 'Dummy';
- }
-}
-
-class NodeAbstractTest extends \PHPUnit_Framework_TestCase
-{
- public function provideNodes() {
- $attributes = array(
- 'startLine' => 10,
- 'comments' => array(
- new Comment('// Comment' . "\n"),
- new Comment\Doc('/** doc comment */'),
- ),
- );
-
- $node = new DummyNode('value1', 'value2', $attributes);
- $node->notSubNode = 'value3';
-
- return array(
- array($attributes, $node),
- );
- }
-
- /**
- * @dataProvider provideNodes
- */
- public function testConstruct(array $attributes, Node $node) {
- $this->assertSame('Dummy', $node->getType());
- $this->assertSame(array('subNode1', 'subNode2'), $node->getSubNodeNames());
- $this->assertSame(10, $node->getLine());
- $this->assertSame('/** doc comment */', $node->getDocComment()->getText());
- $this->assertSame('value1', $node->subNode1);
- $this->assertSame('value2', $node->subNode2);
- $this->assertTrue(isset($node->subNode1));
- $this->assertTrue(isset($node->subNode2));
- $this->assertFalse(isset($node->subNode3));
- $this->assertSame($attributes, $node->getAttributes());
-
- return $node;
- }
-
- /**
- * @dataProvider provideNodes
- */
- public function testGetDocComment(array $attributes, Node $node) {
- $this->assertSame('/** doc comment */', $node->getDocComment()->getText());
- array_pop($node->getAttribute('comments')); // remove doc comment
- $this->assertNull($node->getDocComment());
- array_pop($node->getAttribute('comments')); // remove comment
- $this->assertNull($node->getDocComment());
- }
-
- /**
- * @dataProvider provideNodes
- */
- public function testChange(array $attributes, Node $node) {
- // change of line
- $node->setLine(15);
- $this->assertSame(15, $node->getLine());
-
- // direct modification
- $node->subNode = 'newValue';
- $this->assertSame('newValue', $node->subNode);
-
- // indirect modification
- $subNode =& $node->subNode;
- $subNode = 'newNewValue';
- $this->assertSame('newNewValue', $node->subNode);
-
- // removal
- unset($node->subNode);
- $this->assertFalse(isset($node->subNode));
- }
-
- /**
- * @dataProvider provideNodes
- */
- public function testIteration(array $attributes, Node $node) {
- // Iteration is simple object iteration over properties,
- // not over subnodes
- $i = 0;
- foreach ($node as $key => $value) {
- if ($i === 0) {
- $this->assertSame('subNode1', $key);
- $this->assertSame('value1', $value);
- } else if ($i === 1) {
- $this->assertSame('subNode2', $key);
- $this->assertSame('value2', $value);
- } else if ($i === 2) {
- $this->assertSame('notSubNode', $key);
- $this->assertSame('value3', $value);
- } else {
- throw new \Exception;
- }
- $i++;
- }
- $this->assertSame(3, $i);
- }
-
- public function testAttributes() {
- /** @var $node Node */
- $node = $this->getMockForAbstractClass('PhpParser\NodeAbstract');
-
- $this->assertEmpty($node->getAttributes());
-
- $node->setAttribute('key', 'value');
- $this->assertTrue($node->hasAttribute('key'));
- $this->assertSame('value', $node->getAttribute('key'));
-
- $this->assertFalse($node->hasAttribute('doesNotExist'));
- $this->assertNull($node->getAttribute('doesNotExist'));
- $this->assertSame('default', $node->getAttribute('doesNotExist', 'default'));
-
- $node->setAttribute('null', null);
- $this->assertTrue($node->hasAttribute('null'));
- $this->assertNull($node->getAttribute('null'));
- $this->assertNull($node->getAttribute('null', 'default'));
-
- $this->assertSame(
- array(
- 'key' => 'value',
- 'null' => null,
- ),
- $node->getAttributes()
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeDumperTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeDumperTest.php
deleted file mode 100644
index 306bc20d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeDumperTest.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-class NodeDumperTest extends \PHPUnit_Framework_TestCase
-{
- private function canonicalize($string) {
- return str_replace("\r\n", "\n", $string);
- }
-
- /**
- * @dataProvider provideTestDump
- * @covers PhpParser\NodeDumper::dump
- */
- public function testDump($node, $dump) {
- $dumper = new NodeDumper;
-
- $this->assertSame($this->canonicalize($dump), $this->canonicalize($dumper->dump($node)));
- }
-
- public function provideTestDump() {
- return array(
- array(
- array(),
-'array(
-)'
- ),
- array(
- array('Foo', 'Bar', 'Key' => 'FooBar'),
-'array(
- 0: Foo
- 1: Bar
- Key: FooBar
-)'
- ),
- array(
- new Node\Name(array('Hallo', 'World')),
-'Name(
- parts: array(
- 0: Hallo
- 1: World
- )
-)'
- ),
- array(
- new Node\Expr\Array_(array(
- new Node\Expr\ArrayItem(new Node\Scalar\String_('Foo'))
- )),
-'Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: Foo
- )
- byRef: false
- )
- )
-)'
- ),
- );
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage Can only dump nodes and arrays.
- */
- public function testError() {
- $dumper = new NodeDumper;
- $dumper->dump(new \stdClass);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeTraverserTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeTraverserTest.php
deleted file mode 100644
index d750e14c..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeTraverserTest.php
+++ /dev/null
@@ -1,218 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Node\Scalar\String_;
-use PhpParser\Node\Expr;
-
-class NodeTraverserTest extends \PHPUnit_Framework_TestCase
-{
- public function testNonModifying() {
- $str1Node = new String_('Foo');
- $str2Node = new String_('Bar');
- $echoNode = new Node\Stmt\Echo_(array($str1Node, $str2Node));
- $stmts = array($echoNode);
-
- $visitor = $this->getMock('PhpParser\NodeVisitor');
-
- $visitor->expects($this->at(0))->method('beforeTraverse')->with($stmts);
- $visitor->expects($this->at(1))->method('enterNode')->with($echoNode);
- $visitor->expects($this->at(2))->method('enterNode')->with($str1Node);
- $visitor->expects($this->at(3))->method('leaveNode')->with($str1Node);
- $visitor->expects($this->at(4))->method('enterNode')->with($str2Node);
- $visitor->expects($this->at(5))->method('leaveNode')->with($str2Node);
- $visitor->expects($this->at(6))->method('leaveNode')->with($echoNode);
- $visitor->expects($this->at(7))->method('afterTraverse')->with($stmts);
-
- $traverser = new NodeTraverser;
- $traverser->addVisitor($visitor);
-
- $this->assertEquals($stmts, $traverser->traverse($stmts));
- }
-
- public function testModifying() {
- $str1Node = new String_('Foo');
- $str2Node = new String_('Bar');
- $printNode = new Expr\Print_($str1Node);
-
- // first visitor changes the node, second verifies the change
- $visitor1 = $this->getMock('PhpParser\NodeVisitor');
- $visitor2 = $this->getMock('PhpParser\NodeVisitor');
-
- // replace empty statements with string1 node
- $visitor1->expects($this->at(0))->method('beforeTraverse')->with(array())
- ->will($this->returnValue(array($str1Node)));
- $visitor2->expects($this->at(0))->method('beforeTraverse')->with(array($str1Node));
-
- // replace string1 node with print node
- $visitor1->expects($this->at(1))->method('enterNode')->with($str1Node)
- ->will($this->returnValue($printNode));
- $visitor2->expects($this->at(1))->method('enterNode')->with($printNode);
-
- // replace string1 node with string2 node
- $visitor1->expects($this->at(2))->method('enterNode')->with($str1Node)
- ->will($this->returnValue($str2Node));
- $visitor2->expects($this->at(2))->method('enterNode')->with($str2Node);
-
- // replace string2 node with string1 node again
- $visitor1->expects($this->at(3))->method('leaveNode')->with($str2Node)
- ->will($this->returnValue($str1Node));
- $visitor2->expects($this->at(3))->method('leaveNode')->with($str1Node);
-
- // replace print node with string1 node again
- $visitor1->expects($this->at(4))->method('leaveNode')->with($printNode)
- ->will($this->returnValue($str1Node));
- $visitor2->expects($this->at(4))->method('leaveNode')->with($str1Node);
-
- // replace string1 node with empty statements again
- $visitor1->expects($this->at(5))->method('afterTraverse')->with(array($str1Node))
- ->will($this->returnValue(array()));
- $visitor2->expects($this->at(5))->method('afterTraverse')->with(array());
-
- $traverser = new NodeTraverser;
- $traverser->addVisitor($visitor1);
- $traverser->addVisitor($visitor2);
-
- // as all operations are reversed we end where we start
- $this->assertEquals(array(), $traverser->traverse(array()));
- }
-
- public function testRemove() {
- $str1Node = new String_('Foo');
- $str2Node = new String_('Bar');
-
- $visitor = $this->getMock('PhpParser\NodeVisitor');
-
- // remove the string1 node, leave the string2 node
- $visitor->expects($this->at(2))->method('leaveNode')->with($str1Node)
- ->will($this->returnValue(false));
-
- $traverser = new NodeTraverser;
- $traverser->addVisitor($visitor);
-
- $this->assertEquals(array($str2Node), $traverser->traverse(array($str1Node, $str2Node)));
- }
-
- public function testMerge() {
- $strStart = new String_('Start');
- $strMiddle = new String_('End');
- $strEnd = new String_('Middle');
- $strR1 = new String_('Replacement 1');
- $strR2 = new String_('Replacement 2');
-
- $visitor = $this->getMock('PhpParser\NodeVisitor');
-
- // replace strMiddle with strR1 and strR2 by merge
- $visitor->expects($this->at(4))->method('leaveNode')->with($strMiddle)
- ->will($this->returnValue(array($strR1, $strR2)));
-
- $traverser = new NodeTraverser;
- $traverser->addVisitor($visitor);
-
- $this->assertEquals(
- array($strStart, $strR1, $strR2, $strEnd),
- $traverser->traverse(array($strStart, $strMiddle, $strEnd))
- );
- }
-
- public function testDeepArray() {
- $strNode = new String_('Foo');
- $stmts = array(array(array($strNode)));
-
- $visitor = $this->getMock('PhpParser\NodeVisitor');
- $visitor->expects($this->at(1))->method('enterNode')->with($strNode);
-
- $traverser = new NodeTraverser;
- $traverser->addVisitor($visitor);
-
- $this->assertEquals($stmts, $traverser->traverse($stmts));
- }
-
- public function testDontTraverseChildren() {
- $strNode = new String_('str');
- $printNode = new Expr\Print_($strNode);
- $varNode = new Expr\Variable('foo');
- $mulNode = new Expr\BinaryOp\Mul($varNode, $varNode);
- $negNode = new Expr\UnaryMinus($mulNode);
- $stmts = array($printNode, $negNode);
-
- $visitor1 = $this->getMock('PhpParser\NodeVisitor');
- $visitor2 = $this->getMock('PhpParser\NodeVisitor');
-
- $visitor1->expects($this->at(1))->method('enterNode')->with($printNode)
- ->will($this->returnValue(NodeTraverser::DONT_TRAVERSE_CHILDREN));
- $visitor2->expects($this->at(1))->method('enterNode')->with($printNode);
-
- $visitor1->expects($this->at(2))->method('leaveNode')->with($printNode);
- $visitor2->expects($this->at(2))->method('leaveNode')->with($printNode);
-
- $visitor1->expects($this->at(3))->method('enterNode')->with($negNode);
- $visitor2->expects($this->at(3))->method('enterNode')->with($negNode);
-
- $visitor1->expects($this->at(4))->method('enterNode')->with($mulNode);
- $visitor2->expects($this->at(4))->method('enterNode')->with($mulNode)
- ->will($this->returnValue(NodeTraverser::DONT_TRAVERSE_CHILDREN));
-
- $visitor1->expects($this->at(5))->method('leaveNode')->with($mulNode);
- $visitor2->expects($this->at(5))->method('leaveNode')->with($mulNode);
-
- $visitor1->expects($this->at(6))->method('leaveNode')->with($negNode);
- $visitor2->expects($this->at(6))->method('leaveNode')->with($negNode);
-
- $traverser = new NodeTraverser;
- $traverser->addVisitor($visitor1);
- $traverser->addVisitor($visitor2);
-
- $this->assertEquals($stmts, $traverser->traverse($stmts));
- }
-
- public function testRemovingVisitor() {
- $visitor1 = $this->getMock('PhpParser\NodeVisitor');
- $visitor2 = $this->getMock('PhpParser\NodeVisitor');
- $visitor3 = $this->getMock('PhpParser\NodeVisitor');
-
- $traverser = new NodeTraverser;
- $traverser->addVisitor($visitor1);
- $traverser->addVisitor($visitor2);
- $traverser->addVisitor($visitor3);
-
- $preExpected = array($visitor1, $visitor2, $visitor3);
- $this->assertAttributeSame($preExpected, 'visitors', $traverser, 'The appropriate visitors have not been added');
-
- $traverser->removeVisitor($visitor2);
-
- $postExpected = array(0 => $visitor1, 2 => $visitor3);
- $this->assertAttributeSame($postExpected, 'visitors', $traverser, 'The appropriate visitors are not present after removal');
- }
-
- public function testCloneNodes() {
- $stmts = array(new Node\Stmt\Echo_(array(new String_('Foo'), new String_('Bar'))));
-
- $traverser = new NodeTraverser(true);
-
- $this->assertNotSame($stmts, $traverser->traverse($stmts));
- }
-
- public function testNoCloneNodesByDefault() {
- $stmts = array(new Node\Stmt\Echo_(array(new String_('Foo'), new String_('Bar'))));
-
- $traverser = new NodeTraverser;
-
- $this->assertSame($stmts, $traverser->traverse($stmts));
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage leaveNode() may only return an array if the parent structure is an array
- */
- public function testReplaceByArrayOnlyAllowedIfParentIsArray() {
- $stmts = array(new Node\Expr\UnaryMinus(new Node\Scalar\LNumber(42)));
-
- $visitor = $this->getMock('PhpParser\NodeVisitor');
- $visitor->method('leaveNode')->willReturn(array(new Node\Scalar\DNumber(42.0)));
-
- $traverser = new NodeTraverser();
- $traverser->addVisitor($visitor);
- $traverser->traverse($stmts);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeVisitor/NameResolverTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeVisitor/NameResolverTest.php
deleted file mode 100644
index ecc443f8..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/NodeVisitor/NameResolverTest.php
+++ /dev/null
@@ -1,417 +0,0 @@
-<?php
-
-namespace PhpParser\NodeVisitor;
-
-use PhpParser;
-use PhpParser\Node;
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt;
-use PhpParser\Node\Expr;
-
-class NameResolverTest extends \PHPUnit_Framework_TestCase
-{
- private function canonicalize($string) {
- return str_replace("\r\n", "\n", $string);
- }
-
- /**
- * @covers PhpParser\NodeVisitor\NameResolver
- */
- public function testResolveNames() {
- $code = <<<'EOC'
-<?php
-
-namespace Foo {
- use Hallo as Hi;
-
- new Bar();
- new Hi();
- new Hi\Bar();
- new \Bar();
- new namespace\Bar();
-
- bar();
- hi();
- Hi\bar();
- foo\bar();
- \bar();
- namespace\bar();
-}
-namespace {
- use Hallo as Hi;
-
- new Bar();
- new Hi();
- new Hi\Bar();
- new \Bar();
- new namespace\Bar();
-
- bar();
- hi();
- Hi\bar();
- foo\bar();
- \bar();
- namespace\bar();
-}
-namespace Bar {
- use function foo\bar as baz;
- use const foo\BAR as BAZ;
- use foo as bar;
-
- bar();
- baz();
- bar\foo();
- baz\foo();
- BAR();
- BAZ();
- BAR\FOO();
- BAZ\FOO();
-
- bar;
- baz;
- bar\foo;
- baz\foo;
- BAR;
- BAZ;
- BAR\FOO;
- BAZ\FOO;
-}
-namespace Baz {
- use A\T\{B\C, D\E};
- use function X\T\{b\c, d\e};
- use const Y\T\{B\C, D\E};
- use Z\T\{G, function f, const K};
-
- new C;
- new E;
- new C\D;
- new E\F;
- new G;
-
- c();
- e();
- f();
- C;
- E;
- K;
-}
-EOC;
- $expectedCode = <<<'EOC'
-namespace Foo {
- use Hallo as Hi;
- new \Foo\Bar();
- new \Hallo();
- new \Hallo\Bar();
- new \Bar();
- new \Foo\Bar();
- bar();
- hi();
- \Hallo\bar();
- \Foo\foo\bar();
- \bar();
- \Foo\bar();
-}
-namespace {
- use Hallo as Hi;
- new \Bar();
- new \Hallo();
- new \Hallo\Bar();
- new \Bar();
- new \Bar();
- bar();
- hi();
- \Hallo\bar();
- \foo\bar();
- \bar();
- \bar();
-}
-namespace Bar {
- use function foo\bar as baz;
- use const foo\BAR as BAZ;
- use foo as bar;
- bar();
- \foo\bar();
- \foo\foo();
- \Bar\baz\foo();
- BAR();
- \foo\bar();
- \foo\FOO();
- \Bar\BAZ\FOO();
- bar;
- baz;
- \foo\foo;
- \Bar\baz\foo;
- BAR;
- \foo\BAR;
- \foo\FOO;
- \Bar\BAZ\FOO;
-}
-namespace Baz {
- use A\T\{B\C, D\E};
- use function X\T\{b\c, d\e};
- use const Y\T\{B\C, D\E};
- use Z\T\{G, function f, const K};
- new \A\T\B\C();
- new \A\T\D\E();
- new \A\T\B\C\D();
- new \A\T\D\E\F();
- new \Z\T\G();
- \X\T\b\c();
- \X\T\d\e();
- \Z\T\f();
- \Y\T\B\C;
- \Y\T\D\E;
- \Z\T\K;
-}
-EOC;
-
- $parser = new PhpParser\Parser\Php7(new PhpParser\Lexer\Emulative);
- $prettyPrinter = new PhpParser\PrettyPrinter\Standard;
- $traverser = new PhpParser\NodeTraverser;
- $traverser->addVisitor(new NameResolver);
-
- $stmts = $parser->parse($code);
- $stmts = $traverser->traverse($stmts);
-
- $this->assertSame(
- $this->canonicalize($expectedCode),
- $prettyPrinter->prettyPrint($stmts)
- );
- }
-
- /**
- * @covers PhpParser\NodeVisitor\NameResolver
- */
- public function testResolveLocations() {
- $code = <<<'EOC'
-<?php
-namespace NS;
-
-class A extends B implements C, D {
- use E, F, G {
- f as private g;
- E::h as i;
- E::j insteadof F, G;
- }
-}
-
-interface A extends C, D {
- public function a(A $a) : A;
-}
-
-function fn() : A {}
-function fn2() : array {}
-function() : A {};
-
-A::b();
-A::$b;
-A::B;
-new A;
-$a instanceof A;
-
-namespace\a();
-namespace\A;
-
-try {
- $someThing;
-} catch (A $a) {
- $someThingElse;
-}
-EOC;
- $expectedCode = <<<'EOC'
-namespace NS;
-
-class A extends \NS\B implements \NS\C, \NS\D
-{
- use \NS\E, \NS\F, \NS\G {
- f as private g;
- \NS\E::h as i;
- \NS\E::j insteadof \NS\F, \NS\G;
- }
-}
-interface A extends \NS\C, \NS\D
-{
- public function a(\NS\A $a) : \NS\A;
-}
-function fn() : \NS\A
-{
-}
-function fn2() : array
-{
-}
-function () : \NS\A {
-};
-\NS\A::b();
-\NS\A::$b;
-\NS\A::B;
-new \NS\A();
-$a instanceof \NS\A;
-\NS\a();
-\NS\A;
-try {
- $someThing;
-} catch (\NS\A $a) {
- $someThingElse;
-}
-EOC;
-
- $parser = new PhpParser\Parser\Php7(new PhpParser\Lexer\Emulative);
- $prettyPrinter = new PhpParser\PrettyPrinter\Standard;
- $traverser = new PhpParser\NodeTraverser;
- $traverser->addVisitor(new NameResolver);
-
- $stmts = $parser->parse($code);
- $stmts = $traverser->traverse($stmts);
-
- $this->assertSame(
- $this->canonicalize($expectedCode),
- $prettyPrinter->prettyPrint($stmts)
- );
- }
-
- public function testNoResolveSpecialName() {
- $stmts = array(new Node\Expr\New_(new Name('self')));
-
- $traverser = new PhpParser\NodeTraverser;
- $traverser->addVisitor(new NameResolver);
-
- $this->assertEquals($stmts, $traverser->traverse($stmts));
- }
-
- public function testAddNamespacedName() {
- $nsStmts = array(
- new Stmt\Class_('A'),
- new Stmt\Interface_('B'),
- new Stmt\Function_('C'),
- new Stmt\Const_(array(
- new Node\Const_('D', new Node\Scalar\LNumber(42))
- )),
- new Stmt\Trait_('E'),
- new Expr\New_(new Stmt\Class_(null)),
- );
-
- $traverser = new PhpParser\NodeTraverser;
- $traverser->addVisitor(new NameResolver);
-
- $stmts = $traverser->traverse([new Stmt\Namespace_(new Name('NS'), $nsStmts)]);
- $this->assertSame('NS\\A', (string) $stmts[0]->stmts[0]->namespacedName);
- $this->assertSame('NS\\B', (string) $stmts[0]->stmts[1]->namespacedName);
- $this->assertSame('NS\\C', (string) $stmts[0]->stmts[2]->namespacedName);
- $this->assertSame('NS\\D', (string) $stmts[0]->stmts[3]->consts[0]->namespacedName);
- $this->assertSame('NS\\E', (string) $stmts[0]->stmts[4]->namespacedName);
- $this->assertObjectNotHasAttribute('namespacedName', $stmts[0]->stmts[5]->class);
-
- $stmts = $traverser->traverse([new Stmt\Namespace_(null, $nsStmts)]);
- $this->assertSame('A', (string) $stmts[0]->stmts[0]->namespacedName);
- $this->assertSame('B', (string) $stmts[0]->stmts[1]->namespacedName);
- $this->assertSame('C', (string) $stmts[0]->stmts[2]->namespacedName);
- $this->assertSame('D', (string) $stmts[0]->stmts[3]->consts[0]->namespacedName);
- $this->assertSame('E', (string) $stmts[0]->stmts[4]->namespacedName);
- $this->assertObjectNotHasAttribute('namespacedName', $stmts[0]->stmts[5]->class);
- }
-
- /**
- * @dataProvider provideTestError
- */
- public function testError(Node $stmt, $errorMsg) {
- $this->setExpectedException('PhpParser\Error', $errorMsg);
-
- $traverser = new PhpParser\NodeTraverser;
- $traverser->addVisitor(new NameResolver);
- $traverser->traverse(array($stmt));
- }
-
- public function provideTestError() {
- return array(
- array(
- new Stmt\Use_(array(
- new Stmt\UseUse(new Name('A\B'), 'B', 0, array('startLine' => 1)),
- new Stmt\UseUse(new Name('C\D'), 'B', 0, array('startLine' => 2)),
- ), Stmt\Use_::TYPE_NORMAL),
- 'Cannot use C\D as B because the name is already in use on line 2'
- ),
- array(
- new Stmt\Use_(array(
- new Stmt\UseUse(new Name('a\b'), 'b', 0, array('startLine' => 1)),
- new Stmt\UseUse(new Name('c\d'), 'B', 0, array('startLine' => 2)),
- ), Stmt\Use_::TYPE_FUNCTION),
- 'Cannot use function c\d as B because the name is already in use on line 2'
- ),
- array(
- new Stmt\Use_(array(
- new Stmt\UseUse(new Name('A\B'), 'B', 0, array('startLine' => 1)),
- new Stmt\UseUse(new Name('C\D'), 'B', 0, array('startLine' => 2)),
- ), Stmt\Use_::TYPE_CONSTANT),
- 'Cannot use const C\D as B because the name is already in use on line 2'
- ),
- array(
- new Expr\New_(new Name\FullyQualified('self', array('startLine' => 3))),
- "'\\self' is an invalid class name on line 3"
- ),
- array(
- new Expr\New_(new Name\Relative('self', array('startLine' => 3))),
- "'\\self' is an invalid class name on line 3"
- ),
- array(
- new Expr\New_(new Name\FullyQualified('PARENT', array('startLine' => 3))),
- "'\\PARENT' is an invalid class name on line 3"
- ),
- array(
- new Expr\New_(new Name\Relative('STATIC', array('startLine' => 3))),
- "'\\STATIC' is an invalid class name on line 3"
- ),
- );
- }
-
- public function testClassNameIsCaseInsensitive()
- {
- $source = <<<'EOC'
-<?php
-namespace Foo;
-use Bar\Baz;
-$test = new baz();
-EOC;
-
- $parser = new PhpParser\Parser\Php7(new PhpParser\Lexer\Emulative);
- $stmts = $parser->parse($source);
-
- $traverser = new PhpParser\NodeTraverser;
- $traverser->addVisitor(new NameResolver);
-
- $stmts = $traverser->traverse($stmts);
- $stmt = $stmts[0];
-
- $this->assertSame(array('Bar', 'Baz'), $stmt->stmts[1]->expr->class->parts);
- }
-
- public function testSpecialClassNamesAreCaseInsensitive() {
- $source = <<<'EOC'
-<?php
-namespace Foo;
-
-class Bar
-{
- public static function method()
- {
- SELF::method();
- PARENT::method();
- STATIC::method();
- }
-}
-EOC;
-
- $parser = new PhpParser\Parser\Php7(new PhpParser\Lexer\Emulative);
- $stmts = $parser->parse($source);
-
- $traverser = new PhpParser\NodeTraverser;
- $traverser->addVisitor(new NameResolver);
-
- $stmts = $traverser->traverse($stmts);
- $classStmt = $stmts[0];
- $methodStmt = $classStmt->stmts[0]->stmts[0];
-
- $this->assertSame('SELF', (string)$methodStmt->stmts[0]->class);
- $this->assertSame('PARENT', (string)$methodStmt->stmts[1]->class);
- $this->assertSame('STATIC', (string)$methodStmt->stmts[2]->class);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/MultipleTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/MultipleTest.php
deleted file mode 100644
index e2722c3f..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/MultipleTest.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-
-namespace PhpParser\Parser;
-
-use PhpParser\Error;
-use PhpParser\Lexer;
-use PhpParser\Node\Scalar\LNumber;
-use PhpParser\ParserTest;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Stmt;
-
-require_once __DIR__ . '/../ParserTest.php';
-
-class MultipleTest extends ParserTest {
- // This provider is for the generic parser tests, just pick an arbitrary order here
- protected function getParser(Lexer $lexer) {
- return new Multiple([new Php5($lexer), new Php7($lexer)]);
- }
-
- private function getPrefer7() {
- $lexer = new Lexer(['usedAttributes' => []]);
- return new Multiple([new Php7($lexer), new Php5($lexer)]);
- }
-
- private function getPrefer5() {
- $lexer = new Lexer(['usedAttributes' => []]);
- return new Multiple([new Php5($lexer), new Php7($lexer)]);
- }
-
- /** @dataProvider provideTestParse */
- public function testParse($code, Multiple $parser, $expected) {
- $this->assertEquals($expected, $parser->parse($code));
- $this->assertSame([], $parser->getErrors());
- }
-
- public function provideTestParse() {
- return [
- [
- // PHP 7 only code
- '<?php class Test { function function() {} }',
- $this->getPrefer5(),
- [
- new Stmt\Class_('Test', ['stmts' => [
- new Stmt\ClassMethod('function')
- ]]),
- ]
- ],
- [
- // PHP 5 only code
- '<?php global $$a->b;',
- $this->getPrefer7(),
- [
- new Stmt\Global_([
- new Expr\Variable(new Expr\PropertyFetch(new Expr\Variable('a'), 'b'))
- ])
- ]
- ],
- [
- // Different meaning (PHP 5)
- '<?php $$a[0];',
- $this->getPrefer5(),
- [
- new Expr\Variable(
- new Expr\ArrayDimFetch(new Expr\Variable('a'), LNumber::fromString('0'))
- )
- ]
- ],
- [
- // Different meaning (PHP 7)
- '<?php $$a[0];',
- $this->getPrefer7(),
- [
- new Expr\ArrayDimFetch(
- new Expr\Variable(new Expr\Variable('a')), LNumber::fromString('0')
- )
- ]
- ],
- ];
- }
-
- public function testThrownError() {
- $this->setExpectedException('PhpParser\Error', 'FAIL A');
-
- $parserA = $this->getMockBuilder('PhpParser\Parser')->getMock();
- $parserA->expects($this->at(0))
- ->method('parse')->will($this->throwException(new Error('FAIL A')));
-
- $parserB = $this->getMockBuilder('PhpParser\Parser')->getMock();
- $parserB->expects($this->at(0))
- ->method('parse')->will($this->throwException(new Error('FAIL B')));
-
- $parser = new Multiple([$parserA, $parserB]);
- $parser->parse('dummy');
- }
-
- public function testGetErrors() {
- $errorsA = [new Error('A1'), new Error('A2')];
- $parserA = $this->getMockBuilder('PhpParser\Parser')->getMock();
- $parserA->expects($this->at(0))->method('parse');
- $parserA->expects($this->at(1))
- ->method('getErrors')->will($this->returnValue($errorsA));
-
- $errorsB = [new Error('B1'), new Error('B2')];
- $parserB = $this->getMockBuilder('PhpParser\Parser')->getMock();
- $parserB->expects($this->at(0))->method('parse');
- $parserB->expects($this->at(1))
- ->method('getErrors')->will($this->returnValue($errorsB));
-
- $parser = new Multiple([$parserA, $parserB]);
- $parser->parse('dummy');
- $this->assertSame($errorsA, $parser->getErrors());
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/Php5Test.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/Php5Test.php
deleted file mode 100644
index 58c4e617..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/Php5Test.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-
-namespace PhpParser\Parser;
-
-use PhpParser\Lexer;
-use PhpParser\ParserTest;
-
-require_once __DIR__ . '/../ParserTest.php';
-
-class Php5Test extends ParserTest {
- protected function getParser(Lexer $lexer) {
- return new Php5($lexer);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/Php7Test.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/Php7Test.php
deleted file mode 100644
index d6ab9e19..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Parser/Php7Test.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-
-namespace PhpParser\Parser;
-
-use PhpParser\Lexer;
-use PhpParser\ParserTest;
-
-require_once __DIR__ . '/../ParserTest.php';
-
-class Php7Test extends ParserTest {
- protected function getParser(Lexer $lexer) {
- return new Php7($lexer);
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/ParserFactoryTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/ParserFactoryTest.php
deleted file mode 100644
index 49c01115..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/ParserFactoryTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-/* This test is very weak, because PHPUnit's assertEquals assertion is way too slow dealing with the
- * large objects involved here. So we just do some basic instanceof tests instead. */
-class ParserFactoryTest extends \PHPUnit_Framework_TestCase {
- /** @dataProvider provideTestCreate */
- public function testCreate($kind, $lexer, $expected) {
- $this->assertInstanceOf($expected, (new ParserFactory)->create($kind, $lexer));
- }
-
- public function provideTestCreate() {
- $lexer = new Lexer();
- return [
- [
- ParserFactory::PREFER_PHP7, $lexer,
- 'PhpParser\Parser\Multiple'
- ],
- [
- ParserFactory::PREFER_PHP5, null,
- 'PhpParser\Parser\Multiple'
- ],
- [
- ParserFactory::ONLY_PHP7, null,
- 'PhpParser\Parser\Php7'
- ],
- [
- ParserFactory::ONLY_PHP5, $lexer,
- 'PhpParser\Parser\Php5'
- ]
- ];
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/ParserTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/ParserTest.php
deleted file mode 100644
index 1318d8b4..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/ParserTest.php
+++ /dev/null
@@ -1,170 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Comment;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Scalar;
-use PhpParser\Node\Scalar\String_;
-
-abstract class ParserTest extends \PHPUnit_Framework_TestCase
-{
- /** @returns Parser */
- abstract protected function getParser(Lexer $lexer);
-
- /**
- * @expectedException \PhpParser\Error
- * @expectedExceptionMessage Syntax error, unexpected EOF on line 1
- */
- public function testParserThrowsSyntaxError() {
- $parser = $this->getParser(new Lexer());
- $parser->parse('<?php foo');
- }
-
- /**
- * @expectedException \PhpParser\Error
- * @expectedExceptionMessage Cannot use foo as self because 'self' is a special class name on line 1
- */
- public function testParserThrowsSpecialError() {
- $parser = $this->getParser(new Lexer());
- $parser->parse('<?php use foo as self;');
- }
-
- public function testAttributeAssignment() {
- $lexer = new Lexer(array(
- 'usedAttributes' => array(
- 'comments', 'startLine', 'endLine',
- 'startTokenPos', 'endTokenPos',
- )
- ));
-
- $code = <<<'EOC'
-<?php
-/** Doc comment */
-function test($a) {
- // Line
- // Comments
- echo $a;
-}
-EOC;
- $code = canonicalize($code);
-
- $parser = $this->getParser($lexer);
- $stmts = $parser->parse($code);
-
- /** @var \PhpParser\Node\Stmt\Function_ $fn */
- $fn = $stmts[0];
- $this->assertInstanceOf('PhpParser\Node\Stmt\Function_', $fn);
- $this->assertEquals(array(
- 'comments' => array(
- new Comment\Doc('/** Doc comment */', 2, 6),
- ),
- 'startLine' => 3,
- 'endLine' => 7,
- 'startTokenPos' => 3,
- 'endTokenPos' => 21,
- ), $fn->getAttributes());
-
- $param = $fn->params[0];
- $this->assertInstanceOf('PhpParser\Node\Param', $param);
- $this->assertEquals(array(
- 'startLine' => 3,
- 'endLine' => 3,
- 'startTokenPos' => 7,
- 'endTokenPos' => 7,
- ), $param->getAttributes());
-
- /** @var \PhpParser\Node\Stmt\Echo_ $echo */
- $echo = $fn->stmts[0];
- $this->assertInstanceOf('PhpParser\Node\Stmt\Echo_', $echo);
- $this->assertEquals(array(
- 'comments' => array(
- new Comment("// Line\n", 4, 49),
- new Comment("// Comments\n", 5, 61),
- ),
- 'startLine' => 6,
- 'endLine' => 6,
- 'startTokenPos' => 16,
- 'endTokenPos' => 19,
- ), $echo->getAttributes());
-
- /** @var \PhpParser\Node\Expr\Variable $var */
- $var = $echo->exprs[0];
- $this->assertInstanceOf('PhpParser\Node\Expr\Variable', $var);
- $this->assertEquals(array(
- 'startLine' => 6,
- 'endLine' => 6,
- 'startTokenPos' => 18,
- 'endTokenPos' => 18,
- ), $var->getAttributes());
- }
-
- /**
- * @expectedException \RangeException
- * @expectedExceptionMessage The lexer returned an invalid token (id=999, value=foobar)
- */
- public function testInvalidToken() {
- $lexer = new InvalidTokenLexer;
- $parser = $this->getParser($lexer);
- $parser->parse('dummy');
- }
-
- /**
- * @dataProvider provideTestKindAttributes
- */
- public function testKindAttributes($code, $expectedAttributes) {
- $parser = $this->getParser(new Lexer);
- $stmts = $parser->parse("<?php $code;");
- $attributes = $stmts[0]->getAttributes();
- foreach ($expectedAttributes as $name => $value) {
- $this->assertSame($value, $attributes[$name]);
- }
- }
-
- public function provideTestKindAttributes() {
- return array(
- array('0', ['kind' => Scalar\LNumber::KIND_DEC]),
- array('9', ['kind' => Scalar\LNumber::KIND_DEC]),
- array('07', ['kind' => Scalar\LNumber::KIND_OCT]),
- array('0xf', ['kind' => Scalar\LNumber::KIND_HEX]),
- array('0XF', ['kind' => Scalar\LNumber::KIND_HEX]),
- array('0b1', ['kind' => Scalar\LNumber::KIND_BIN]),
- array('0B1', ['kind' => Scalar\LNumber::KIND_BIN]),
- array('[]', ['kind' => Expr\Array_::KIND_SHORT]),
- array('array()', ['kind' => Expr\Array_::KIND_LONG]),
- array("'foo'", ['kind' => String_::KIND_SINGLE_QUOTED]),
- array("b'foo'", ['kind' => String_::KIND_SINGLE_QUOTED]),
- array("B'foo'", ['kind' => String_::KIND_SINGLE_QUOTED]),
- array('"foo"', ['kind' => String_::KIND_DOUBLE_QUOTED]),
- array('b"foo"', ['kind' => String_::KIND_DOUBLE_QUOTED]),
- array('B"foo"', ['kind' => String_::KIND_DOUBLE_QUOTED]),
- array('"foo$bar"', ['kind' => String_::KIND_DOUBLE_QUOTED]),
- array('b"foo$bar"', ['kind' => String_::KIND_DOUBLE_QUOTED]),
- array('B"foo$bar"', ['kind' => String_::KIND_DOUBLE_QUOTED]),
- array("<<<'STR'\nSTR\n", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'STR']),
- array("<<<STR\nSTR\n", ['kind' => String_::KIND_HEREDOC, 'docLabel' => 'STR']),
- array("<<<\"STR\"\nSTR\n", ['kind' => String_::KIND_HEREDOC, 'docLabel' => 'STR']),
- array("b<<<'STR'\nSTR\n", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'STR']),
- array("B<<<'STR'\nSTR\n", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'STR']),
- array("<<< \t 'STR'\nSTR\n", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'STR']),
- // HHVM doesn't support this due to a lexer bug
- // (https://github.com/facebook/hhvm/issues/6970)
- // array("<<<'\xff'\n\xff\n", ['kind' => String_::KIND_NOWDOC, 'docLabel' => "\xff"]),
- array("<<<\"STR\"\n\$a\nSTR\n", ['kind' => String_::KIND_HEREDOC, 'docLabel' => 'STR']),
- array("b<<<\"STR\"\n\$a\nSTR\n", ['kind' => String_::KIND_HEREDOC, 'docLabel' => 'STR']),
- array("B<<<\"STR\"\n\$a\nSTR\n", ['kind' => String_::KIND_HEREDOC, 'docLabel' => 'STR']),
- array("<<< \t \"STR\"\n\$a\nSTR\n", ['kind' => String_::KIND_HEREDOC, 'docLabel' => 'STR']),
- array("die", ['kind' => Expr\Exit_::KIND_DIE]),
- array("die('done')", ['kind' => Expr\Exit_::KIND_DIE]),
- array("exit", ['kind' => Expr\Exit_::KIND_EXIT]),
- array("exit(1)", ['kind' => Expr\Exit_::KIND_EXIT]),
- );
- }
-}
-
-class InvalidTokenLexer extends Lexer {
- public function getNextToken(&$value = null, &$startAttributes = null, &$endAttributes = null) {
- $value = 'foobar';
- return 999;
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/PrettyPrinterTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/PrettyPrinterTest.php
deleted file mode 100644
index 9dbd3d30..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/PrettyPrinterTest.php
+++ /dev/null
@@ -1,164 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-use PhpParser\Comment;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Scalar\Encapsed;
-use PhpParser\Node\Scalar\EncapsedStringPart;
-use PhpParser\Node\Scalar\String_;
-use PhpParser\Node\Stmt;
-use PhpParser\PrettyPrinter\Standard;
-
-require_once __DIR__ . '/CodeTestAbstract.php';
-
-class PrettyPrinterTest extends CodeTestAbstract
-{
- protected function doTestPrettyPrintMethod($method, $name, $code, $expected, $modeLine) {
- $lexer = new Lexer\Emulative;
- $parser5 = new Parser\Php5($lexer);
- $parser7 = new Parser\Php7($lexer);
-
- list($version, $options) = $this->parseModeLine($modeLine);
- $prettyPrinter = new Standard($options);
-
- try {
- $output5 = canonicalize($prettyPrinter->$method($parser5->parse($code)));
- } catch (Error $e) {
- $output5 = null;
- if ('php7' !== $version) {
- throw $e;
- }
- }
-
- try {
- $output7 = canonicalize($prettyPrinter->$method($parser7->parse($code)));
- } catch (Error $e) {
- $output7 = null;
- if ('php5' !== $version) {
- throw $e;
- }
- }
-
- if ('php5' === $version) {
- $this->assertSame($expected, $output5, $name);
- $this->assertNotSame($expected, $output7, $name);
- } else if ('php7' === $version) {
- $this->assertSame($expected, $output7, $name);
- $this->assertNotSame($expected, $output5, $name);
- } else {
- $this->assertSame($expected, $output5, $name);
- $this->assertSame($expected, $output7, $name);
- }
- }
-
- /**
- * @dataProvider provideTestPrettyPrint
- * @covers PhpParser\PrettyPrinter\Standard<extended>
- */
- public function testPrettyPrint($name, $code, $expected, $mode) {
- $this->doTestPrettyPrintMethod('prettyPrint', $name, $code, $expected, $mode);
- }
-
- /**
- * @dataProvider provideTestPrettyPrintFile
- * @covers PhpParser\PrettyPrinter\Standard<extended>
- */
- public function testPrettyPrintFile($name, $code, $expected, $mode) {
- $this->doTestPrettyPrintMethod('prettyPrintFile', $name, $code, $expected, $mode);
- }
-
- public function provideTestPrettyPrint() {
- return $this->getTests(__DIR__ . '/../code/prettyPrinter', 'test');
- }
-
- public function provideTestPrettyPrintFile() {
- return $this->getTests(__DIR__ . '/../code/prettyPrinter', 'file-test');
- }
-
- public function testPrettyPrintExpr() {
- $prettyPrinter = new Standard;
- $expr = new Expr\BinaryOp\Mul(
- new Expr\BinaryOp\Plus(new Expr\Variable('a'), new Expr\Variable('b')),
- new Expr\Variable('c')
- );
- $this->assertEquals('($a + $b) * $c', $prettyPrinter->prettyPrintExpr($expr));
-
- $expr = new Expr\Closure(array(
- 'stmts' => array(new Stmt\Return_(new String_("a\nb")))
- ));
- $this->assertEquals("function () {\n return 'a\nb';\n}", $prettyPrinter->prettyPrintExpr($expr));
- }
-
- public function testCommentBeforeInlineHTML() {
- $prettyPrinter = new PrettyPrinter\Standard;
- $comment = new Comment\Doc("/**\n * This is a comment\n */");
- $stmts = [new Stmt\InlineHTML('Hello World!', ['comments' => [$comment]])];
- $expected = "<?php\n\n/**\n * This is a comment\n */\n?>\nHello World!";
- $this->assertSame($expected, $prettyPrinter->prettyPrintFile($stmts));
- }
-
- private function parseModeLine($modeLine) {
- $parts = explode(' ', $modeLine, 2);
- $version = isset($parts[0]) ? $parts[0] : 'both';
- $options = isset($parts[1]) ? json_decode($parts[1], true) : [];
- return [$version, $options];
- }
-
- public function testArraySyntaxDefault() {
- $prettyPrinter = new Standard(['shortArraySyntax' => true]);
- $expr = new Expr\Array_([
- new Expr\ArrayItem(new String_('val'), new String_('key'))
- ]);
- $expected = "['key' => 'val']";
- $this->assertSame($expected, $prettyPrinter->prettyPrintExpr($expr));
- }
-
- /**
- * @dataProvider provideTestKindAttributes
- */
- public function testKindAttributes($node, $expected) {
- $prttyPrinter = new PrettyPrinter\Standard;
- $result = $prttyPrinter->prettyPrintExpr($node);
- $this->assertSame($expected, $result);
- }
-
- public function provideTestKindAttributes() {
- $nowdoc = ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'STR'];
- $heredoc = ['kind' => String_::KIND_HEREDOC, 'docLabel' => 'STR'];
- return [
- // Defaults to single quoted
- [new String_('foo'), "'foo'"],
- // Explicit single/double quoted
- [new String_('foo', ['kind' => String_::KIND_SINGLE_QUOTED]), "'foo'"],
- [new String_('foo', ['kind' => String_::KIND_DOUBLE_QUOTED]), '"foo"'],
- // Fallback from doc string if no label
- [new String_('foo', ['kind' => String_::KIND_NOWDOC]), "'foo'"],
- [new String_('foo', ['kind' => String_::KIND_HEREDOC]), '"foo"'],
- // Fallback if string contains label
- [new String_("A\nB\nC", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'A']), "'A\nB\nC'"],
- [new String_("A\nB\nC", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'B']), "'A\nB\nC'"],
- [new String_("A\nB\nC", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'C']), "'A\nB\nC'"],
- [new String_("STR;", ['kind' => String_::KIND_NOWDOC, 'docLabel' => 'STR']), "'STR;'"],
- // Doc string if label not contained (or not in ending position)
- [new String_("foo", $nowdoc), "<<<'STR'\nfoo\nSTR\n"],
- [new String_("foo", $heredoc), "<<<STR\nfoo\nSTR\n"],
- [new String_("STRx", $nowdoc), "<<<'STR'\nSTRx\nSTR\n"],
- [new String_("xSTR", $nowdoc), "<<<'STR'\nxSTR\nSTR\n"],
- // Empty doc string variations (encapsed variant does not occur naturally)
- [new String_("", $nowdoc), "<<<'STR'\nSTR\n"],
- [new String_("", $heredoc), "<<<STR\nSTR\n"],
- [new Encapsed([new EncapsedStringPart('')], $heredoc), "<<<STR\nSTR\n"],
- // Encapsed doc string variations
- [new Encapsed([new EncapsedStringPart('foo')], $heredoc), "<<<STR\nfoo\nSTR\n"],
- [new Encapsed([new EncapsedStringPart('foo'), new Expr\Variable('y')], $heredoc), "<<<STR\nfoo{\$y}\nSTR\n"],
- [new Encapsed([new EncapsedStringPart("\nSTR"), new Expr\Variable('y')], $heredoc), "<<<STR\n\nSTR{\$y}\nSTR\n"],
- [new Encapsed([new EncapsedStringPart("\nSTR"), new Expr\Variable('y')], $heredoc), "<<<STR\n\nSTR{\$y}\nSTR\n"],
- [new Encapsed([new Expr\Variable('y'), new EncapsedStringPart("STR\n")], $heredoc), "<<<STR\n{\$y}STR\n\nSTR\n"],
- // Encapsed doc string fallback
- [new Encapsed([new Expr\Variable('y'), new EncapsedStringPart("\nSTR")], $heredoc), '"{$y}\\nSTR"'],
- [new Encapsed([new EncapsedStringPart("STR\n"), new Expr\Variable('y')], $heredoc), '"STR\\n{$y}"'],
- [new Encapsed([new EncapsedStringPart("STR")], $heredoc), '"STR"'],
- ];
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Serializer/XMLTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Serializer/XMLTest.php
deleted file mode 100644
index e1186f4d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Serializer/XMLTest.php
+++ /dev/null
@@ -1,172 +0,0 @@
-<?php
-
-namespace PhpParser\Serializer;
-
-use PhpParser;
-
-class XMLTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @covers PhpParser\Serializer\XML<extended>
- */
- public function testSerialize() {
- $code = <<<CODE
-<?php
-// comment
-/** doc comment */
-function functionName(&\$a = 0, \$b = 1.0) {
- echo 'Foo';
-}
-CODE;
- $xml = <<<XML
-<?xml version="1.0" encoding="UTF-8"?>
-<AST xmlns:node="http://nikic.github.com/PHPParser/XML/node" xmlns:subNode="http://nikic.github.com/PHPParser/XML/subNode" xmlns:attribute="http://nikic.github.com/PHPParser/XML/attribute" xmlns:scalar="http://nikic.github.com/PHPParser/XML/scalar">
- <scalar:array>
- <node:Stmt_Function>
- <attribute:startLine>
- <scalar:int>4</scalar:int>
- </attribute:startLine>
- <attribute:comments>
- <scalar:array>
- <comment isDocComment="false" line="2">// comment
-</comment>
- <comment isDocComment="true" line="3">/** doc comment */</comment>
- </scalar:array>
- </attribute:comments>
- <attribute:endLine>
- <scalar:int>6</scalar:int>
- </attribute:endLine>
- <subNode:byRef>
- <scalar:false/>
- </subNode:byRef>
- <subNode:name>
- <scalar:string>functionName</scalar:string>
- </subNode:name>
- <subNode:params>
- <scalar:array>
- <node:Param>
- <attribute:startLine>
- <scalar:int>4</scalar:int>
- </attribute:startLine>
- <attribute:endLine>
- <scalar:int>4</scalar:int>
- </attribute:endLine>
- <subNode:type>
- <scalar:null/>
- </subNode:type>
- <subNode:byRef>
- <scalar:true/>
- </subNode:byRef>
- <subNode:variadic>
- <scalar:false/>
- </subNode:variadic>
- <subNode:name>
- <scalar:string>a</scalar:string>
- </subNode:name>
- <subNode:default>
- <node:Scalar_LNumber>
- <attribute:startLine>
- <scalar:int>4</scalar:int>
- </attribute:startLine>
- <attribute:endLine>
- <scalar:int>4</scalar:int>
- </attribute:endLine>
- <attribute:kind>
- <scalar:int>10</scalar:int>
- </attribute:kind>
- <subNode:value>
- <scalar:int>0</scalar:int>
- </subNode:value>
- </node:Scalar_LNumber>
- </subNode:default>
- </node:Param>
- <node:Param>
- <attribute:startLine>
- <scalar:int>4</scalar:int>
- </attribute:startLine>
- <attribute:endLine>
- <scalar:int>4</scalar:int>
- </attribute:endLine>
- <subNode:type>
- <scalar:null/>
- </subNode:type>
- <subNode:byRef>
- <scalar:false/>
- </subNode:byRef>
- <subNode:variadic>
- <scalar:false/>
- </subNode:variadic>
- <subNode:name>
- <scalar:string>b</scalar:string>
- </subNode:name>
- <subNode:default>
- <node:Scalar_DNumber>
- <attribute:startLine>
- <scalar:int>4</scalar:int>
- </attribute:startLine>
- <attribute:endLine>
- <scalar:int>4</scalar:int>
- </attribute:endLine>
- <subNode:value>
- <scalar:float>1</scalar:float>
- </subNode:value>
- </node:Scalar_DNumber>
- </subNode:default>
- </node:Param>
- </scalar:array>
- </subNode:params>
- <subNode:returnType>
- <scalar:null/>
- </subNode:returnType>
- <subNode:stmts>
- <scalar:array>
- <node:Stmt_Echo>
- <attribute:startLine>
- <scalar:int>5</scalar:int>
- </attribute:startLine>
- <attribute:endLine>
- <scalar:int>5</scalar:int>
- </attribute:endLine>
- <subNode:exprs>
- <scalar:array>
- <node:Scalar_String>
- <attribute:startLine>
- <scalar:int>5</scalar:int>
- </attribute:startLine>
- <attribute:endLine>
- <scalar:int>5</scalar:int>
- </attribute:endLine>
- <attribute:kind>
- <scalar:int>1</scalar:int>
- </attribute:kind>
- <subNode:value>
- <scalar:string>Foo</scalar:string>
- </subNode:value>
- </node:Scalar_String>
- </scalar:array>
- </subNode:exprs>
- </node:Stmt_Echo>
- </scalar:array>
- </subNode:stmts>
- </node:Stmt_Function>
- </scalar:array>
-</AST>
-XML;
-
- $parser = new PhpParser\Parser\Php7(new PhpParser\Lexer);
- $serializer = new XML;
-
- $code = str_replace("\r\n", "\n", $code);
- $stmts = $parser->parse($code);
- $this->assertXmlStringEqualsXmlString($xml, $serializer->serialize($stmts));
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage Unexpected node type
- */
- public function testError() {
- $serializer = new XML;
- $serializer->serialize(array(new \stdClass));
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Unserializer/XMLTest.php b/www/wiki/vendor/nikic/php-parser/test/PhpParser/Unserializer/XMLTest.php
deleted file mode 100644
index 8ee5d7b5..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/PhpParser/Unserializer/XMLTest.php
+++ /dev/null
@@ -1,150 +0,0 @@
-<?php
-
-namespace PhpParser\Unserializer;
-
-use PhpParser\Node\Scalar;
-use PhpParser\Comment;
-
-class XMLTest extends \PHPUnit_Framework_TestCase
-{
- public function testNode() {
- $xml = <<<XML
-<?xml version="1.0" encoding="UTF-8"?>
-<AST xmlns:node="http://nikic.github.com/PHPParser/XML/node" xmlns:subNode="http://nikic.github.com/PHPParser/XML/subNode" xmlns:attribute="http://nikic.github.com/PHPParser/XML/attribute" xmlns:scalar="http://nikic.github.com/PHPParser/XML/scalar">
- <node:Scalar_String line="1" docComment="/** doc comment */">
- <attribute:startLine>
- <scalar:int>1</scalar:int>
- </attribute:startLine>
- <attribute:comments>
- <scalar:array>
- <comment isDocComment="false" line="2">// comment
-</comment>
- <comment isDocComment="true" line="3">/** doc comment */</comment>
- </scalar:array>
- </attribute:comments>
- <subNode:value>
- <scalar:string>Test</scalar:string>
- </subNode:value>
- </node:Scalar_String>
-</AST>
-XML;
-
- $unserializer = new XML;
- $this->assertEquals(
- new Scalar\String_('Test', array(
- 'startLine' => 1,
- 'comments' => array(
- new Comment('// comment' . "\n", 2),
- new Comment\Doc('/** doc comment */', 3),
- ),
- )),
- $unserializer->unserialize($xml)
- );
- }
-
- public function testEmptyNode() {
- $xml = <<<XML
-<?xml version="1.0" encoding="UTF-8"?>
-<AST xmlns:node="http://nikic.github.com/PHPParser/XML/node">
- <node:Scalar_MagicConst_Class />
-</AST>
-XML;
-
- $unserializer = new XML;
-
- $this->assertEquals(
- new Scalar\MagicConst\Class_,
- $unserializer->unserialize($xml)
- );
- }
-
- public function testScalars() {
- $xml = <<<XML
-<?xml version="1.0" encoding="UTF-8"?>
-<AST xmlns:scalar="http://nikic.github.com/PHPParser/XML/scalar">
- <scalar:array>
- <scalar:array></scalar:array>
- <scalar:array/>
- <scalar:string>test</scalar:string>
- <scalar:string></scalar:string>
- <scalar:string/>
- <scalar:int>1</scalar:int>
- <scalar:float>1</scalar:float>
- <scalar:float>1.5</scalar:float>
- <scalar:true/>
- <scalar:false/>
- <scalar:null/>
- </scalar:array>
-</AST>
-XML;
- $result = array(
- array(), array(),
- 'test', '', '',
- 1,
- 1, 1.5,
- true, false, null
- );
-
- $unserializer = new XML;
- $this->assertEquals($result, $unserializer->unserialize($xml));
- }
-
- /**
- * @expectedException \DomainException
- * @expectedExceptionMessage AST root element not found
- */
- public function testWrongRootElementError() {
- $xml = <<<XML
-<?xml version="1.0" encoding="UTF-8"?>
-<notAST/>
-XML;
-
- $unserializer = new XML;
- $unserializer->unserialize($xml);
- }
-
- /**
- * @dataProvider provideTestErrors
- */
- public function testErrors($xml, $errorMsg) {
- $this->setExpectedException('DomainException', $errorMsg);
-
- $xml = <<<XML
-<?xml version="1.0" encoding="UTF-8"?>
-<AST xmlns:scalar="http://nikic.github.com/PHPParser/XML/scalar"
- xmlns:node="http://nikic.github.com/PHPParser/XML/node"
- xmlns:subNode="http://nikic.github.com/PHPParser/XML/subNode"
- xmlns:foo="http://nikic.github.com/PHPParser/XML/foo">
- $xml
-</AST>
-XML;
-
- $unserializer = new XML;
- $unserializer->unserialize($xml);
- }
-
- public function provideTestErrors() {
- return array(
- array('<scalar:true>test</scalar:true>', '"true" scalar must be empty'),
- array('<scalar:false>test</scalar:false>', '"false" scalar must be empty'),
- array('<scalar:null>test</scalar:null>', '"null" scalar must be empty'),
- array('<scalar:foo>bar</scalar:foo>', 'Unknown scalar type "foo"'),
- array('<scalar:int>x</scalar:int>', '"x" is not a valid int'),
- array('<scalar:float>x</scalar:float>', '"x" is not a valid float'),
- array('', 'Expected node or scalar'),
- array('<foo:bar>test</foo:bar>', 'Unexpected node of type "foo:bar"'),
- array(
- '<node:Scalar_String><foo:bar>test</foo:bar></node:Scalar_String>',
- 'Expected sub node or attribute, got node of type "foo:bar"'
- ),
- array(
- '<node:Scalar_String><subNode:value/></node:Scalar_String>',
- 'Expected node or scalar'
- ),
- array(
- '<node:Foo><subNode:value/></node:Foo>',
- 'Unknown node type "Foo"'
- ),
- );
- }
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/bootstrap.php b/www/wiki/vendor/nikic/php-parser/test/bootstrap.php
deleted file mode 100644
index 9526b648..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/bootstrap.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
-namespace PhpParser;
-
-require __DIR__ . '/../vendor/autoload.php';
-
-function canonicalize($str) {
- // normalize EOL style
- $str = str_replace("\r\n", "\n", $str);
-
- // trim newlines at end
- $str = rtrim($str, "\n");
-
- // remove trailing whitespace on all lines
- $lines = explode("\n", $str);
- $lines = array_map(function($line) {
- return rtrim($line, " \t");
- }, $lines);
- return implode("\n", $lines);
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/comments.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/comments.test
deleted file mode 100644
index e15b969d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/comments.test
+++ /dev/null
@@ -1,100 +0,0 @@
-Comments
------
-<?php
-
-/** doc 1 */
-/* foobar 1 */
-// foo 1
-// bar 1
-$var;
-
-if ($cond) {
- /** doc 2 */
- /* foobar 2 */
- // foo 2
- // bar 2
-}
-
-/** doc 3 */
-/* foobar 3 */
-// foo 3
-// bar 3
------
-array(
- 0: Expr_Variable(
- name: var
- comments: array(
- 0: /** doc 1 */
- 1: /* foobar 1 */
- 2: // foo 1
- 3: // bar 1
- )
- )
- 1: Stmt_If(
- cond: Expr_Variable(
- name: cond
- )
- stmts: array(
- 0: Stmt_Nop(
- comments: array(
- 0: /** doc 2 */
- 1: /* foobar 2 */
- 2: // foo 2
- 3: // bar 2
- )
- )
- )
- elseifs: array(
- )
- else: null
- )
- 2: Stmt_Nop(
- comments: array(
- 0: /** doc 3 */
- 1: /* foobar 3 */
- 2: // foo 3
- 3: // bar 3
- )
- )
-)
------
-<?php
-
-/** doc */
-/* foobar */
-// foo
-// bar
-
-?>
------
-array(
- 0: Stmt_Nop(
- comments: array(
- 0: /** doc */
- 1: /* foobar */
- 2: // foo
- 3: // bar
- )
- )
-)
------
-<?php
-
-// comment
-if (42) {}
------
-array(
- 0: Stmt_If(
- cond: Scalar_LNumber(
- value: 42
- )
- stmts: array(
- )
- elseifs: array(
- )
- else: null
- comments: array(
- 0: // comment
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/errorHandling/eofError.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/errorHandling/eofError.test
deleted file mode 100644
index 0d7e0754..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/errorHandling/eofError.test
+++ /dev/null
@@ -1,18 +0,0 @@
-Error positions
------
-<?php foo
------
-Syntax error, unexpected EOF from 1:10 to 1:10
-array(
-)
------
-<?php foo /* bar */
------
-Syntax error, unexpected EOF from 1:20 to 1:20
-array(
- 0: Stmt_Nop(
- comments: array(
- 0: /* bar */
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/errorHandling/recovery.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/errorHandling/recovery.test
deleted file mode 100644
index 598465e0..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/errorHandling/recovery.test
+++ /dev/null
@@ -1,191 +0,0 @@
-Error recovery
------
-<?php
-
-foo()
-bar()
-baz()
------
-Syntax error, unexpected T_STRING from 4:1 to 4:3
-Syntax error, unexpected T_STRING from 5:1 to 5:3
-Syntax error, unexpected EOF from 5:6 to 5:6
-array(
-)
------
-<?php
-
-foo()
-bar();
-baz();
------
-Syntax error, unexpected T_STRING from 4:1 to 4:3
-array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: bar
- )
- )
- args: array(
- )
- )
- 1: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: baz
- )
- )
- args: array(
- )
- )
-)
------
-<?php
-
-foo();
-bar()
-baz();
------
-Syntax error, unexpected T_STRING from 5:1 to 5:3
-array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: foo
- )
- )
- args: array(
- )
- )
- 1: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: baz
- )
- )
- args: array(
- )
- )
-)
------
-<?php
-abc;
-1 + ;
------
-Syntax error, unexpected ';' from 3:5 to 3:5
-array(
- 0: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: abc
- )
- )
- )
-)
------
-<?php
-function test() {
- 1 +
-}
------
-Syntax error, unexpected '}' from 4:1 to 4:1
-array(
- 0: Stmt_Function(
- byRef: false
- name: test
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
-)
------
-<?php
-
-$i = 0;
-while
-
-$j = 1;
-$k = 2;
------
-Syntax error, unexpected T_VARIABLE, expecting '(' from 6:1 to 6:2
-array(
- 0: Expr_Assign(
- var: Expr_Variable(
- name: i
- )
- expr: Scalar_LNumber(
- value: 0
- )
- )
- 1: Expr_Assign(
- var: Expr_Variable(
- name: j
- )
- expr: Scalar_LNumber(
- value: 1
- )
- )
- 2: Expr_Assign(
- var: Expr_Variable(
- name: k
- )
- expr: Scalar_LNumber(
- value: 2
- )
- )
-)
------
-<?php
-
-$i = 0;
-while () {
- $j = 1;
-}
-$k = 2;
-// The output here drops the loop - would require Error node to handle this
------
-Syntax error, unexpected ')' from 4:8 to 4:8
-array(
- 0: Expr_Assign(
- var: Expr_Variable(
- name: i
- )
- expr: Scalar_LNumber(
- value: 0
- )
- )
- 1: Expr_Assign(
- var: Expr_Variable(
- name: j
- )
- expr: Scalar_LNumber(
- value: 1
- )
- )
- 2: Expr_Assign(
- var: Expr_Variable(
- name: k
- )
- expr: Scalar_LNumber(
- value: 2
- )
- )
- 3: Stmt_Nop(
- comments: array(
- 0: // The output here drops the loop - would require Error node to handle this
- )
- )
-)
------
-<?php
-// Can't recover this yet, as the '}' for the inner_statement_list
-// is always required.
-
-$i = 0;
-while (true) {
- $i = 1;
- $i = 2;
------
-Syntax error, unexpected EOF from 8:12 to 8:12
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/arrayDef.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/arrayDef.test
deleted file mode 100644
index 28baf266..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/arrayDef.test
+++ /dev/null
@@ -1,142 +0,0 @@
-Array definitions
------
-<?php
-
-array();
-array('a');
-array('a', );
-array('a', 'b');
-array('a', &$b, 'c' => 'd', 'e' => &$f);
-
-// short array syntax
-[];
-[1, 2, 3];
-['a' => 'b'];
------
-array(
- 0: Expr_Array(
- items: array(
- )
- )
- 1: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: a
- )
- byRef: false
- )
- )
- )
- 2: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: a
- )
- byRef: false
- )
- )
- )
- 3: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: a
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: b
- )
- byRef: false
- )
- )
- )
- 4: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: a
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Expr_Variable(
- name: b
- )
- byRef: true
- )
- 2: Expr_ArrayItem(
- key: Scalar_String(
- value: c
- )
- value: Scalar_String(
- value: d
- )
- byRef: false
- )
- 3: Expr_ArrayItem(
- key: Scalar_String(
- value: e
- )
- value: Expr_Variable(
- name: f
- )
- byRef: true
- )
- )
- )
- 5: Expr_Array(
- items: array(
- )
- comments: array(
- 0: // short array syntax
- )
- )
- 6: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 2
- )
- byRef: false
- )
- 2: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 3
- )
- byRef: false
- )
- )
- )
- 7: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: Scalar_String(
- value: a
- )
- value: Scalar_String(
- value: b
- )
- byRef: false
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/assign.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/assign.test
deleted file mode 100644
index c2b18572..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/assign.test
+++ /dev/null
@@ -1,288 +0,0 @@
-Assignments
------
-<?php
-// simple assign
-$a = $b;
-
-// combined assign
-$a &= $b;
-$a |= $b;
-$a ^= $b;
-$a .= $b;
-$a /= $b;
-$a -= $b;
-$a %= $b;
-$a *= $b;
-$a += $b;
-$a <<= $b;
-$a >>= $b;
-$a **= $b;
-
-// chained assign
-$a = $b *= $c **= $d;
-
-// by ref assign
-$a =& $b;
-$a =& new B;
-
-// list() assign
-list($a) = $b;
-list($a, , $b) = $c;
-list($a, list(, $c), $d) = $e;
-
-// inc/dec
-++$a;
-$a++;
---$a;
-$a--;
------
-array(
- 0: Expr_Assign(
- var: Expr_Variable(
- name: a
- comments: array(
- 0: // simple assign
- )
- )
- expr: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // simple assign
- )
- )
- 1: Expr_AssignOp_BitwiseAnd(
- var: Expr_Variable(
- name: a
- comments: array(
- 0: // combined assign
- )
- )
- expr: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // combined assign
- )
- )
- 2: Expr_AssignOp_BitwiseOr(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 3: Expr_AssignOp_BitwiseXor(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 4: Expr_AssignOp_Concat(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 5: Expr_AssignOp_Div(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 6: Expr_AssignOp_Minus(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 7: Expr_AssignOp_Mod(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 8: Expr_AssignOp_Mul(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 9: Expr_AssignOp_Plus(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 10: Expr_AssignOp_ShiftLeft(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 11: Expr_AssignOp_ShiftRight(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 12: Expr_AssignOp_Pow(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 13: Expr_Assign(
- var: Expr_Variable(
- name: a
- comments: array(
- 0: // chained assign
- )
- )
- expr: Expr_AssignOp_Mul(
- var: Expr_Variable(
- name: b
- )
- expr: Expr_AssignOp_Pow(
- var: Expr_Variable(
- name: c
- )
- expr: Expr_Variable(
- name: d
- )
- )
- )
- comments: array(
- 0: // chained assign
- )
- )
- 14: Expr_AssignRef(
- var: Expr_Variable(
- name: a
- comments: array(
- 0: // by ref assign
- )
- )
- expr: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // by ref assign
- )
- )
- 15: Expr_AssignRef(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_New(
- class: Name(
- parts: array(
- 0: B
- )
- )
- args: array(
- )
- )
- )
- 16: Expr_Assign(
- var: Expr_List(
- vars: array(
- 0: Expr_Variable(
- name: a
- )
- )
- comments: array(
- 0: // list() assign
- )
- )
- expr: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // list() assign
- )
- )
- 17: Expr_Assign(
- var: Expr_List(
- vars: array(
- 0: Expr_Variable(
- name: a
- )
- 1: null
- 2: Expr_Variable(
- name: b
- )
- )
- )
- expr: Expr_Variable(
- name: c
- )
- )
- 18: Expr_Assign(
- var: Expr_List(
- vars: array(
- 0: Expr_Variable(
- name: a
- )
- 1: Expr_List(
- vars: array(
- 0: null
- 1: Expr_Variable(
- name: c
- )
- )
- )
- 2: Expr_Variable(
- name: d
- )
- )
- )
- expr: Expr_Variable(
- name: e
- )
- )
- 19: Expr_PreInc(
- var: Expr_Variable(
- name: a
- )
- comments: array(
- 0: // inc/dec
- )
- )
- 20: Expr_PostInc(
- var: Expr_Variable(
- name: a
- )
- )
- 21: Expr_PreDec(
- var: Expr_Variable(
- name: a
- )
- )
- 22: Expr_PostDec(
- var: Expr_Variable(
- name: a
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/cast.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/cast.test
deleted file mode 100644
index 3c54ba72..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/cast.test
+++ /dev/null
@@ -1,72 +0,0 @@
-Casts
------
-<?php
-(array) $a;
-(bool) $a;
-(boolean) $a;
-(real) $a;
-(double) $a;
-(float) $a;
-(int) $a;
-(integer) $a;
-(object) $a;
-(string) $a;
-(unset) $a;
------
-array(
- 0: Expr_Cast_Array(
- expr: Expr_Variable(
- name: a
- )
- )
- 1: Expr_Cast_Bool(
- expr: Expr_Variable(
- name: a
- )
- )
- 2: Expr_Cast_Bool(
- expr: Expr_Variable(
- name: a
- )
- )
- 3: Expr_Cast_Double(
- expr: Expr_Variable(
- name: a
- )
- )
- 4: Expr_Cast_Double(
- expr: Expr_Variable(
- name: a
- )
- )
- 5: Expr_Cast_Double(
- expr: Expr_Variable(
- name: a
- )
- )
- 6: Expr_Cast_Int(
- expr: Expr_Variable(
- name: a
- )
- )
- 7: Expr_Cast_Int(
- expr: Expr_Variable(
- name: a
- )
- )
- 8: Expr_Cast_Object(
- expr: Expr_Variable(
- name: a
- )
- )
- 9: Expr_Cast_String(
- expr: Expr_Variable(
- name: a
- )
- )
- 10: Expr_Cast_Unset(
- expr: Expr_Variable(
- name: a
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/clone.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/clone.test
deleted file mode 100644
index 64015660..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/clone.test
+++ /dev/null
@@ -1,13 +0,0 @@
-Clone
------
-<?php
-
-clone $a;
------
-array(
- 0: Expr_Clone(
- expr: Expr_Variable(
- name: a
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/closure.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/closure.test
deleted file mode 100644
index f459b602..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/closure.test
+++ /dev/null
@@ -1,142 +0,0 @@
-Closures
------
-<?php
-function($a) { $a; };
-function($a) use($b) {};
-function() use($a, &$b) {};
-function &($a) {};
-static function() {};
-function($a) : array {};
-function() use($a) : \Foo\Bar {};
------
-array(
- 0: Expr_Closure(
- static: false
- byRef: false
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: a
- default: null
- )
- )
- uses: array(
- )
- returnType: null
- stmts: array(
- 0: Expr_Variable(
- name: a
- )
- )
- )
- 1: Expr_Closure(
- static: false
- byRef: false
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: a
- default: null
- )
- )
- uses: array(
- 0: Expr_ClosureUse(
- var: b
- byRef: false
- )
- )
- returnType: null
- stmts: array(
- )
- )
- 2: Expr_Closure(
- static: false
- byRef: false
- params: array(
- )
- uses: array(
- 0: Expr_ClosureUse(
- var: a
- byRef: false
- )
- 1: Expr_ClosureUse(
- var: b
- byRef: true
- )
- )
- returnType: null
- stmts: array(
- )
- )
- 3: Expr_Closure(
- static: false
- byRef: true
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: a
- default: null
- )
- )
- uses: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 4: Expr_Closure(
- static: true
- byRef: false
- params: array(
- )
- uses: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 5: Expr_Closure(
- static: false
- byRef: false
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: a
- default: null
- )
- )
- uses: array(
- )
- returnType: array
- stmts: array(
- )
- )
- 6: Expr_Closure(
- static: false
- byRef: false
- params: array(
- )
- uses: array(
- 0: Expr_ClosureUse(
- var: a
- byRef: false
- )
- )
- returnType: Name_FullyQualified(
- parts: array(
- 0: Foo
- 1: Bar
- )
- )
- stmts: array(
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/comparison.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/comparison.test
deleted file mode 100644
index d5b1e354..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/comparison.test
+++ /dev/null
@@ -1,107 +0,0 @@
-Comparison operators
------
-<?php
-$a < $b;
-$a <= $b;
-$a > $b;
-$a >= $b;
-$a == $b;
-$a === $b;
-$a != $b;
-$a !== $b;
-$a <=> $b;
-$a instanceof B;
-$a instanceof $b;
------
-array(
- 0: Expr_BinaryOp_Smaller(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 1: Expr_BinaryOp_SmallerOrEqual(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 2: Expr_BinaryOp_Greater(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 3: Expr_BinaryOp_GreaterOrEqual(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 4: Expr_BinaryOp_Equal(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 5: Expr_BinaryOp_Identical(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 6: Expr_BinaryOp_NotEqual(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 7: Expr_BinaryOp_NotIdentical(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 8: Expr_BinaryOp_Spaceship(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 9: Expr_Instanceof(
- expr: Expr_Variable(
- name: a
- )
- class: Name(
- parts: array(
- 0: B
- )
- )
- )
- 10: Expr_Instanceof(
- expr: Expr_Variable(
- name: a
- )
- class: Expr_Variable(
- name: b
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/constant_expr.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/constant_expr.test
deleted file mode 100644
index 3e7a23ef..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/constant_expr.test
+++ /dev/null
@@ -1,621 +0,0 @@
-Expressions in static scalar context
------
-<?php
-
-const T_1 = 1 << 1;
-const T_2 = 1 / 2;
-const T_3 = 1.5 + 1.5;
-const T_4 = "foo" . "bar";
-const T_5 = (1.5 + 1.5) * 2;
-const T_6 = "foo" . 2 . 3 . 4.0;
-const T_7 = __LINE__;
-const T_8 = <<<ENDOFSTRING
-This is a test string
-ENDOFSTRING;
-const T_9 = ~-1;
-const T_10 = (-1?:1) + (0?2:3);
-const T_11 = 1 && 0;
-const T_12 = 1 and 1;
-const T_13 = 0 || 0;
-const T_14 = 1 or 0;
-const T_15 = 1 xor 1;
-const T_16 = 1 xor 0;
-const T_17 = 1 < 0;
-const T_18 = 0 <= 0;
-const T_19 = 1 > 0;
-const T_20 = 1 >= 0;
-const T_21 = 1 === 1;
-const T_22 = 1 !== 1;
-const T_23 = 0 != "0";
-const T_24 = 1 == "1";
-const T_25 = 1 + 2 * 3;
-const T_26 = "1" + 2 + "3";
-const T_27 = 2 ** 3;
-const T_28 = [1, 2, 3][1];
-const T_29 = 12 - 13;
-const T_30 = 12 ^ 13;
-const T_31 = 12 & 13;
-const T_32 = 12 | 13;
-const T_33 = 12 % 3;
-const T_34 = 100 >> 4;
-const T_35 = !false;
------
-array(
- 0: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_1
- value: Expr_BinaryOp_ShiftLeft(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 1
- )
- )
- )
- )
- )
- 1: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_2
- value: Expr_BinaryOp_Div(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 2
- )
- )
- )
- )
- )
- 2: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_3
- value: Expr_BinaryOp_Plus(
- left: Scalar_DNumber(
- value: 1.5
- )
- right: Scalar_DNumber(
- value: 1.5
- )
- )
- )
- )
- )
- 3: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_4
- value: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: foo
- )
- right: Scalar_String(
- value: bar
- )
- )
- )
- )
- )
- 4: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_5
- value: Expr_BinaryOp_Mul(
- left: Expr_BinaryOp_Plus(
- left: Scalar_DNumber(
- value: 1.5
- )
- right: Scalar_DNumber(
- value: 1.5
- )
- )
- right: Scalar_LNumber(
- value: 2
- )
- )
- )
- )
- )
- 5: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_6
- value: Expr_BinaryOp_Concat(
- left: Expr_BinaryOp_Concat(
- left: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: foo
- )
- right: Scalar_LNumber(
- value: 2
- )
- )
- right: Scalar_LNumber(
- value: 3
- )
- )
- right: Scalar_DNumber(
- value: 4
- )
- )
- )
- )
- )
- 6: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_7
- value: Scalar_MagicConst_Line(
- )
- )
- )
- )
- 7: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_8
- value: Scalar_String(
- value: This is a test string
- )
- )
- )
- )
- 8: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_9
- value: Expr_BitwiseNot(
- expr: Expr_UnaryMinus(
- expr: Scalar_LNumber(
- value: 1
- )
- )
- )
- )
- )
- )
- 9: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_10
- value: Expr_BinaryOp_Plus(
- left: Expr_Ternary(
- cond: Expr_UnaryMinus(
- expr: Scalar_LNumber(
- value: 1
- )
- )
- if: null
- else: Scalar_LNumber(
- value: 1
- )
- )
- right: Expr_Ternary(
- cond: Scalar_LNumber(
- value: 0
- )
- if: Scalar_LNumber(
- value: 2
- )
- else: Scalar_LNumber(
- value: 3
- )
- )
- )
- )
- )
- )
- 10: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_11
- value: Expr_BinaryOp_BooleanAnd(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 0
- )
- )
- )
- )
- )
- 11: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_12
- value: Expr_BinaryOp_LogicalAnd(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 1
- )
- )
- )
- )
- )
- 12: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_13
- value: Expr_BinaryOp_BooleanOr(
- left: Scalar_LNumber(
- value: 0
- )
- right: Scalar_LNumber(
- value: 0
- )
- )
- )
- )
- )
- 13: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_14
- value: Expr_BinaryOp_LogicalOr(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 0
- )
- )
- )
- )
- )
- 14: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_15
- value: Expr_BinaryOp_LogicalXor(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 1
- )
- )
- )
- )
- )
- 15: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_16
- value: Expr_BinaryOp_LogicalXor(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 0
- )
- )
- )
- )
- )
- 16: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_17
- value: Expr_BinaryOp_Smaller(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 0
- )
- )
- )
- )
- )
- 17: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_18
- value: Expr_BinaryOp_SmallerOrEqual(
- left: Scalar_LNumber(
- value: 0
- )
- right: Scalar_LNumber(
- value: 0
- )
- )
- )
- )
- )
- 18: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_19
- value: Expr_BinaryOp_Greater(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 0
- )
- )
- )
- )
- )
- 19: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_20
- value: Expr_BinaryOp_GreaterOrEqual(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 0
- )
- )
- )
- )
- )
- 20: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_21
- value: Expr_BinaryOp_Identical(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 1
- )
- )
- )
- )
- )
- 21: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_22
- value: Expr_BinaryOp_NotIdentical(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_LNumber(
- value: 1
- )
- )
- )
- )
- )
- 22: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_23
- value: Expr_BinaryOp_NotEqual(
- left: Scalar_LNumber(
- value: 0
- )
- right: Scalar_String(
- value: 0
- )
- )
- )
- )
- )
- 23: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_24
- value: Expr_BinaryOp_Equal(
- left: Scalar_LNumber(
- value: 1
- )
- right: Scalar_String(
- value: 1
- )
- )
- )
- )
- )
- 24: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_25
- value: Expr_BinaryOp_Plus(
- left: Scalar_LNumber(
- value: 1
- )
- right: Expr_BinaryOp_Mul(
- left: Scalar_LNumber(
- value: 2
- )
- right: Scalar_LNumber(
- value: 3
- )
- )
- )
- )
- )
- )
- 25: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_26
- value: Expr_BinaryOp_Plus(
- left: Expr_BinaryOp_Plus(
- left: Scalar_String(
- value: 1
- )
- right: Scalar_LNumber(
- value: 2
- )
- )
- right: Scalar_String(
- value: 3
- )
- )
- )
- )
- )
- 26: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_27
- value: Expr_BinaryOp_Pow(
- left: Scalar_LNumber(
- value: 2
- )
- right: Scalar_LNumber(
- value: 3
- )
- )
- )
- )
- )
- 27: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_28
- value: Expr_ArrayDimFetch(
- var: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 2
- )
- byRef: false
- )
- 2: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 3
- )
- byRef: false
- )
- )
- )
- dim: Scalar_LNumber(
- value: 1
- )
- )
- )
- )
- )
- 28: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_29
- value: Expr_BinaryOp_Minus(
- left: Scalar_LNumber(
- value: 12
- )
- right: Scalar_LNumber(
- value: 13
- )
- )
- )
- )
- )
- 29: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_30
- value: Expr_BinaryOp_BitwiseXor(
- left: Scalar_LNumber(
- value: 12
- )
- right: Scalar_LNumber(
- value: 13
- )
- )
- )
- )
- )
- 30: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_31
- value: Expr_BinaryOp_BitwiseAnd(
- left: Scalar_LNumber(
- value: 12
- )
- right: Scalar_LNumber(
- value: 13
- )
- )
- )
- )
- )
- 31: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_32
- value: Expr_BinaryOp_BitwiseOr(
- left: Scalar_LNumber(
- value: 12
- )
- right: Scalar_LNumber(
- value: 13
- )
- )
- )
- )
- )
- 32: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_33
- value: Expr_BinaryOp_Mod(
- left: Scalar_LNumber(
- value: 12
- )
- right: Scalar_LNumber(
- value: 3
- )
- )
- )
- )
- )
- 33: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_34
- value: Expr_BinaryOp_ShiftRight(
- left: Scalar_LNumber(
- value: 100
- )
- right: Scalar_LNumber(
- value: 4
- )
- )
- )
- )
- )
- 34: Stmt_Const(
- consts: array(
- 0: Const(
- name: T_35
- value: Expr_BooleanNot(
- expr: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: false
- )
- )
- )
- )
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/errorSuppress.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/errorSuppress.test
deleted file mode 100644
index ce3fce96..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/errorSuppress.test
+++ /dev/null
@@ -1,12 +0,0 @@
-Error suppression
------
-<?php
-@$a;
------
-array(
- 0: Expr_ErrorSuppress(
- expr: Expr_Variable(
- name: a
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/exit.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/exit.test
deleted file mode 100644
index 8f21e5ba..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/exit.test
+++ /dev/null
@@ -1,34 +0,0 @@
-Exit
------
-<?php
-exit;
-exit();
-exit('Die!');
-die;
-die();
-die('Exit!');
------
-array(
- 0: Expr_Exit(
- expr: null
- )
- 1: Expr_Exit(
- expr: null
- )
- 2: Expr_Exit(
- expr: Scalar_String(
- value: Die!
- )
- )
- 3: Expr_Exit(
- expr: null
- )
- 4: Expr_Exit(
- expr: null
- )
- 5: Expr_Exit(
- expr: Scalar_String(
- value: Exit!
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/args.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/args.test
deleted file mode 100644
index 6d735209..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/args.test
+++ /dev/null
@@ -1,99 +0,0 @@
-Arguments
------
-<?php
-
-f();
-f($a);
-f($a, $b);
-f(&$a);
-f($a, ...$b);
------
-array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: f
- )
- )
- args: array(
- )
- )
- 1: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: f
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: a
- )
- byRef: false
- unpack: false
- )
- )
- )
- 2: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: f
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: a
- )
- byRef: false
- unpack: false
- )
- 1: Arg(
- value: Expr_Variable(
- name: b
- )
- byRef: false
- unpack: false
- )
- )
- )
- 3: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: f
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: a
- )
- byRef: true
- unpack: false
- )
- )
- )
- 4: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: f
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: a
- )
- byRef: false
- unpack: false
- )
- 1: Arg(
- value: Expr_Variable(
- name: b
- )
- byRef: false
- unpack: true
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constFetch.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constFetch.test
deleted file mode 100644
index 7686d2d9..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constFetch.test
+++ /dev/null
@@ -1,33 +0,0 @@
-Constant fetches
------
-<?php
-
-A;
-A::B;
-A::class;
------
-array(
- 0: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: A
- )
- )
- )
- 1: Expr_ClassConstFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: B
- )
- 2: Expr_ClassConstFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: class
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constantDeref.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constantDeref.test
deleted file mode 100644
index 682f7808..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constantDeref.test
+++ /dev/null
@@ -1,231 +0,0 @@
-Array/string dereferencing
------
-<?php
-
-"abc"[2];
-"abc"[2][0][0];
-
-[1, 2, 3][2];
-[1, 2, 3][2][0][0];
-
-array(1, 2, 3)[2];
-array(1, 2, 3)[2][0][0];
-
-FOO[0];
-Foo::BAR[1];
-$foo::BAR[2][1][0];
------
-array(
- 0: Expr_ArrayDimFetch(
- var: Scalar_String(
- value: abc
- )
- dim: Scalar_LNumber(
- value: 2
- )
- )
- 1: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Scalar_String(
- value: abc
- )
- dim: Scalar_LNumber(
- value: 2
- )
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- 2: Expr_ArrayDimFetch(
- var: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 2
- )
- byRef: false
- )
- 2: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 3
- )
- byRef: false
- )
- )
- )
- dim: Scalar_LNumber(
- value: 2
- )
- )
- 3: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 2
- )
- byRef: false
- )
- 2: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 3
- )
- byRef: false
- )
- )
- )
- dim: Scalar_LNumber(
- value: 2
- )
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- 4: Expr_ArrayDimFetch(
- var: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 2
- )
- byRef: false
- )
- 2: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 3
- )
- byRef: false
- )
- )
- )
- dim: Scalar_LNumber(
- value: 2
- )
- )
- 5: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 2
- )
- byRef: false
- )
- 2: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 3
- )
- byRef: false
- )
- )
- )
- dim: Scalar_LNumber(
- value: 2
- )
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- 6: Expr_ArrayDimFetch(
- var: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: FOO
- )
- )
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- 7: Expr_ArrayDimFetch(
- var: Expr_ClassConstFetch(
- class: Name(
- parts: array(
- 0: Foo
- )
- )
- name: BAR
- )
- dim: Scalar_LNumber(
- value: 1
- )
- )
- 8: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_ClassConstFetch(
- class: Expr_Variable(
- name: foo
- )
- name: BAR
- )
- dim: Scalar_LNumber(
- value: 2
- )
- )
- dim: Scalar_LNumber(
- value: 1
- )
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/funcCall.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/funcCall.test
deleted file mode 100644
index 62f69e34..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/funcCall.test
+++ /dev/null
@@ -1,132 +0,0 @@
-Function calls
------
-<?php
-
-// function name variations
-a();
-$a();
-${'a'}();
-$$a();
-$$$a();
-$a['b']();
-$a{'b'}();
-$a->b['c']();
-
-// array dereferencing
-a()['b'];
------
-array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: a
- )
- comments: array(
- 0: // function name variations
- )
- )
- args: array(
- )
- comments: array(
- 0: // function name variations
- )
- )
- 1: Expr_FuncCall(
- name: Expr_Variable(
- name: a
- )
- args: array(
- )
- )
- 2: Expr_FuncCall(
- name: Expr_Variable(
- name: Scalar_String(
- value: a
- )
- )
- args: array(
- )
- )
- 3: Expr_FuncCall(
- name: Expr_Variable(
- name: Expr_Variable(
- name: a
- )
- )
- args: array(
- )
- )
- 4: Expr_FuncCall(
- name: Expr_Variable(
- name: Expr_Variable(
- name: Expr_Variable(
- name: a
- )
- )
- )
- args: array(
- )
- )
- 5: Expr_FuncCall(
- name: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: b
- )
- )
- args: array(
- )
- )
- 6: Expr_FuncCall(
- name: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: b
- )
- )
- args: array(
- )
- )
- 7: Expr_FuncCall(
- name: Expr_ArrayDimFetch(
- var: Expr_PropertyFetch(
- var: Expr_Variable(
- name: a
- )
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- args: array(
- )
- )
- 8: Expr_ArrayDimFetch(
- var: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: a
- )
- comments: array(
- 0: // array dereferencing
- )
- )
- args: array(
- )
- comments: array(
- 0: // array dereferencing
- )
- )
- dim: Scalar_String(
- value: b
- )
- comments: array(
- 0: // array dereferencing
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/newDeref.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/newDeref.test
deleted file mode 100644
index 5e36ff81..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/newDeref.test
+++ /dev/null
@@ -1,70 +0,0 @@
-New expression dereferencing
------
-<?php
-
-(new A)->b;
-(new A)->b();
-(new A)['b'];
-(new A)['b']['c'];
------
-array(
- 0: Expr_PropertyFetch(
- var: Expr_New(
- class: Name(
- parts: array(
- 0: A
- )
- )
- args: array(
- )
- )
- name: b
- )
- 1: Expr_MethodCall(
- var: Expr_New(
- class: Name(
- parts: array(
- 0: A
- )
- )
- args: array(
- )
- )
- name: b
- args: array(
- )
- )
- 2: Expr_ArrayDimFetch(
- var: Expr_New(
- class: Name(
- parts: array(
- 0: A
- )
- )
- args: array(
- )
- )
- dim: Scalar_String(
- value: b
- )
- )
- 3: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_New(
- class: Name(
- parts: array(
- 0: A
- )
- )
- args: array(
- )
- )
- dim: Scalar_String(
- value: b
- )
- )
- dim: Scalar_String(
- value: c
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/objectAccess.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/objectAccess.test
deleted file mode 100644
index 584461bd..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/objectAccess.test
+++ /dev/null
@@ -1,145 +0,0 @@
-Object access
------
-<?php
-
-// property fetch variations
-$a->b;
-$a->b['c'];
-$a->b{'c'};
-
-// method call variations
-$a->b();
-$a->{'b'}();
-$a->$b();
-$a->$b['c']();
-
-// array dereferencing
-$a->b()['c'];
-$a->b(){'c'}; // invalid PHP: drop Support?
------
-!!php5
-array(
- 0: Expr_PropertyFetch(
- var: Expr_Variable(
- name: a
- comments: array(
- 0: // property fetch variations
- )
- )
- name: b
- comments: array(
- 0: // property fetch variations
- )
- )
- 1: Expr_ArrayDimFetch(
- var: Expr_PropertyFetch(
- var: Expr_Variable(
- name: a
- )
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- 2: Expr_ArrayDimFetch(
- var: Expr_PropertyFetch(
- var: Expr_Variable(
- name: a
- )
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- 3: Expr_MethodCall(
- var: Expr_Variable(
- name: a
- comments: array(
- 0: // method call variations
- )
- )
- name: b
- args: array(
- )
- comments: array(
- 0: // method call variations
- )
- )
- 4: Expr_MethodCall(
- var: Expr_Variable(
- name: a
- )
- name: Scalar_String(
- value: b
- )
- args: array(
- )
- )
- 5: Expr_MethodCall(
- var: Expr_Variable(
- name: a
- )
- name: Expr_Variable(
- name: b
- )
- args: array(
- )
- )
- 6: Expr_MethodCall(
- var: Expr_Variable(
- name: a
- )
- name: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- args: array(
- )
- )
- 7: Expr_ArrayDimFetch(
- var: Expr_MethodCall(
- var: Expr_Variable(
- name: a
- comments: array(
- 0: // array dereferencing
- )
- )
- name: b
- args: array(
- )
- comments: array(
- 0: // array dereferencing
- )
- )
- dim: Scalar_String(
- value: c
- )
- comments: array(
- 0: // array dereferencing
- )
- )
- 8: Expr_ArrayDimFetch(
- var: Expr_MethodCall(
- var: Expr_Variable(
- name: a
- )
- name: b
- args: array(
- )
- )
- dim: Scalar_String(
- value: c
- )
- )
- 9: Stmt_Nop(
- comments: array(
- 0: // invalid PHP: drop Support?
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/simpleArrayAccess.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/simpleArrayAccess.test
deleted file mode 100644
index ea3f9ef4..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/simpleArrayAccess.test
+++ /dev/null
@@ -1,62 +0,0 @@
-Simple array access
------
-<?php
-
-$a['b'];
-$a['b']['c'];
-$a[] = $b;
-$a{'b'};
-${$a}['b'];
------
-array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: b
- )
- )
- 1: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: b
- )
- )
- dim: Scalar_String(
- value: c
- )
- )
- 2: Expr_Assign(
- var: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: null
- )
- expr: Expr_Variable(
- name: b
- )
- )
- 3: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: b
- )
- )
- 4: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: Expr_Variable(
- name: a
- )
- )
- dim: Scalar_String(
- value: b
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticCall.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticCall.test
deleted file mode 100644
index b806f7de..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticCall.test
+++ /dev/null
@@ -1,173 +0,0 @@
-Static calls
------
-<?php
-
-// method name variations
-A::b();
-A::{'b'}();
-A::$b();
-A::$b['c']();
-A::$b['c']['d']();
-
-// array dereferencing
-A::b()['c'];
-
-// class name variations
-static::b();
-$a::b();
-${'a'}::b();
-$a['b']::c();
------
-!!php5
-array(
- 0: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- comments: array(
- 0: // method name variations
- )
- )
- name: b
- args: array(
- )
- comments: array(
- 0: // method name variations
- )
- )
- 1: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Scalar_String(
- value: b
- )
- args: array(
- )
- )
- 2: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Expr_Variable(
- name: b
- )
- args: array(
- )
- )
- 3: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- args: array(
- )
- )
- 4: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- dim: Scalar_String(
- value: d
- )
- )
- args: array(
- )
- )
- 5: Expr_ArrayDimFetch(
- var: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: A
- )
- comments: array(
- 0: // array dereferencing
- )
- )
- name: b
- args: array(
- )
- comments: array(
- 0: // array dereferencing
- )
- )
- dim: Scalar_String(
- value: c
- )
- comments: array(
- 0: // array dereferencing
- )
- )
- 6: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: static
- )
- comments: array(
- 0: // class name variations
- )
- )
- name: b
- args: array(
- )
- comments: array(
- 0: // class name variations
- )
- )
- 7: Expr_StaticCall(
- class: Expr_Variable(
- name: a
- )
- name: b
- args: array(
- )
- )
- 8: Expr_StaticCall(
- class: Expr_Variable(
- name: Scalar_String(
- value: a
- )
- )
- name: b
- args: array(
- )
- )
- 9: Expr_StaticCall(
- class: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: b
- )
- )
- name: c
- args: array(
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticPropertyFetch.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticPropertyFetch.test
deleted file mode 100644
index 3d3cde51..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticPropertyFetch.test
+++ /dev/null
@@ -1,91 +0,0 @@
-Static property fetches
------
-<?php
-
-// property name variations
-A::$b;
-A::$$b;
-A::${'b'};
-
-// array access
-A::$b['c'];
-A::$b{'c'};
-
-// class name variations can be found in staticCall.test
------
-array(
- 0: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- comments: array(
- 0: // property name variations
- )
- )
- name: b
- comments: array(
- 0: // property name variations
- )
- )
- 1: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Expr_Variable(
- name: b
- )
- )
- 2: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Scalar_String(
- value: b
- )
- )
- 3: Expr_ArrayDimFetch(
- var: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- comments: array(
- 0: // array access
- )
- )
- name: b
- comments: array(
- 0: // array access
- )
- )
- dim: Scalar_String(
- value: c
- )
- comments: array(
- 0: // array access
- )
- )
- 4: Expr_ArrayDimFetch(
- var: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- 5: Stmt_Nop(
- comments: array(
- 0: // class name variations can be found in staticCall.test
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/includeAndEval.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/includeAndEval.test
deleted file mode 100644
index 69458a48..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/includeAndEval.test
+++ /dev/null
@@ -1,40 +0,0 @@
-Include and eval
------
-<?php
-include 'A.php';
-include_once 'A.php';
-require 'A.php';
-require_once 'A.php';
-eval('A');
------
-array(
- 0: Expr_Include(
- expr: Scalar_String(
- value: A.php
- )
- type: 1
- )
- 1: Expr_Include(
- expr: Scalar_String(
- value: A.php
- )
- type: 2
- )
- 2: Expr_Include(
- expr: Scalar_String(
- value: A.php
- )
- type: 3
- )
- 3: Expr_Include(
- expr: Scalar_String(
- value: A.php
- )
- type: 4
- )
- 4: Expr_Eval(
- expr: Scalar_String(
- value: A
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/issetAndEmpty.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/issetAndEmpty.test
deleted file mode 100644
index 3a43d0d4..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/issetAndEmpty.test
+++ /dev/null
@@ -1,75 +0,0 @@
-isset() and empty()
------
-<?php
-isset($a);
-isset($a, $b, $c);
-
-empty($a);
-empty(foo());
-empty(array(1, 2, 3));
------
-array(
- 0: Expr_Isset(
- vars: array(
- 0: Expr_Variable(
- name: a
- )
- )
- )
- 1: Expr_Isset(
- vars: array(
- 0: Expr_Variable(
- name: a
- )
- 1: Expr_Variable(
- name: b
- )
- 2: Expr_Variable(
- name: c
- )
- )
- )
- 2: Expr_Empty(
- expr: Expr_Variable(
- name: a
- )
- )
- 3: Expr_Empty(
- expr: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: foo
- )
- )
- args: array(
- )
- )
- )
- 4: Expr_Empty(
- expr: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 2
- )
- byRef: false
- )
- 2: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 3
- )
- byRef: false
- )
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/logic.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/logic.test
deleted file mode 100644
index b3634e91..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/logic.test
+++ /dev/null
@@ -1,159 +0,0 @@
-Logical operators
------
-<?php
-
-// boolean ops
-$a && $b;
-$a || $b;
-!$a;
-!!$a;
-
-// logical ops
-$a and $b;
-$a or $b;
-$a xor $b;
-
-// precedence
-$a && $b || $c && $d;
-$a && ($b || $c) && $d;
-
-$a = $b || $c;
-$a = $b or $c;
------
-array(
- 0: Expr_BinaryOp_BooleanAnd(
- left: Expr_Variable(
- name: a
- comments: array(
- 0: // boolean ops
- )
- )
- right: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // boolean ops
- )
- )
- 1: Expr_BinaryOp_BooleanOr(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 2: Expr_BooleanNot(
- expr: Expr_Variable(
- name: a
- )
- )
- 3: Expr_BooleanNot(
- expr: Expr_BooleanNot(
- expr: Expr_Variable(
- name: a
- )
- )
- )
- 4: Expr_BinaryOp_LogicalAnd(
- left: Expr_Variable(
- name: a
- comments: array(
- 0: // logical ops
- )
- )
- right: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // logical ops
- )
- )
- 5: Expr_BinaryOp_LogicalOr(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 6: Expr_BinaryOp_LogicalXor(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 7: Expr_BinaryOp_BooleanOr(
- left: Expr_BinaryOp_BooleanAnd(
- left: Expr_Variable(
- name: a
- comments: array(
- 0: // precedence
- )
- )
- right: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // precedence
- )
- )
- right: Expr_BinaryOp_BooleanAnd(
- left: Expr_Variable(
- name: c
- )
- right: Expr_Variable(
- name: d
- )
- )
- comments: array(
- 0: // precedence
- )
- )
- 8: Expr_BinaryOp_BooleanAnd(
- left: Expr_BinaryOp_BooleanAnd(
- left: Expr_Variable(
- name: a
- )
- right: Expr_BinaryOp_BooleanOr(
- left: Expr_Variable(
- name: b
- )
- right: Expr_Variable(
- name: c
- )
- )
- )
- right: Expr_Variable(
- name: d
- )
- )
- 9: Expr_Assign(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_BinaryOp_BooleanOr(
- left: Expr_Variable(
- name: b
- )
- right: Expr_Variable(
- name: c
- )
- )
- )
- 10: Expr_BinaryOp_LogicalOr(
- left: Expr_Assign(
- var: Expr_Variable(
- name: a
- )
- expr: Expr_Variable(
- name: b
- )
- )
- right: Expr_Variable(
- name: c
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/math.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/math.test
deleted file mode 100644
index 3c00ebc7..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/math.test
+++ /dev/null
@@ -1,256 +0,0 @@
-Mathematical operators
------
-<?php
-
-// unary ops
-~$a;
-+$a;
--$a;
-
-// binary ops
-$a & $b;
-$a | $b;
-$a ^ $b;
-$a . $b;
-$a / $b;
-$a - $b;
-$a % $b;
-$a * $b;
-$a + $b;
-$a << $b;
-$a >> $b;
-$a ** $b;
-
-// associativity
-$a * $b * $c;
-$a * ($b * $c);
-
-// precedence
-$a + $b * $c;
-($a + $b) * $c;
-
-// pow is special
-$a ** $b ** $c;
-($a ** $b) ** $c;
------
-array(
- 0: Expr_BitwiseNot(
- expr: Expr_Variable(
- name: a
- )
- comments: array(
- 0: // unary ops
- )
- )
- 1: Expr_UnaryPlus(
- expr: Expr_Variable(
- name: a
- )
- )
- 2: Expr_UnaryMinus(
- expr: Expr_Variable(
- name: a
- )
- )
- 3: Expr_BinaryOp_BitwiseAnd(
- left: Expr_Variable(
- name: a
- comments: array(
- 0: // binary ops
- )
- )
- right: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // binary ops
- )
- )
- 4: Expr_BinaryOp_BitwiseOr(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 5: Expr_BinaryOp_BitwiseXor(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 6: Expr_BinaryOp_Concat(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 7: Expr_BinaryOp_Div(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 8: Expr_BinaryOp_Minus(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 9: Expr_BinaryOp_Mod(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 10: Expr_BinaryOp_Mul(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 11: Expr_BinaryOp_Plus(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 12: Expr_BinaryOp_ShiftLeft(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 13: Expr_BinaryOp_ShiftRight(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 14: Expr_BinaryOp_Pow(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- 15: Expr_BinaryOp_Mul(
- left: Expr_BinaryOp_Mul(
- left: Expr_Variable(
- name: a
- comments: array(
- 0: // associativity
- )
- )
- right: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // associativity
- )
- )
- right: Expr_Variable(
- name: c
- )
- comments: array(
- 0: // associativity
- )
- )
- 16: Expr_BinaryOp_Mul(
- left: Expr_Variable(
- name: a
- )
- right: Expr_BinaryOp_Mul(
- left: Expr_Variable(
- name: b
- )
- right: Expr_Variable(
- name: c
- )
- )
- )
- 17: Expr_BinaryOp_Plus(
- left: Expr_Variable(
- name: a
- comments: array(
- 0: // precedence
- )
- )
- right: Expr_BinaryOp_Mul(
- left: Expr_Variable(
- name: b
- )
- right: Expr_Variable(
- name: c
- )
- )
- comments: array(
- 0: // precedence
- )
- )
- 18: Expr_BinaryOp_Mul(
- left: Expr_BinaryOp_Plus(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- right: Expr_Variable(
- name: c
- )
- )
- 19: Expr_BinaryOp_Pow(
- left: Expr_Variable(
- name: a
- comments: array(
- 0: // pow is special
- )
- )
- right: Expr_BinaryOp_Pow(
- left: Expr_Variable(
- name: b
- )
- right: Expr_Variable(
- name: c
- )
- )
- comments: array(
- 0: // pow is special
- )
- )
- 20: Expr_BinaryOp_Pow(
- left: Expr_BinaryOp_Pow(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- right: Expr_Variable(
- name: c
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/new.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/new.test
deleted file mode 100644
index b7ce7a9d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/new.test
+++ /dev/null
@@ -1,140 +0,0 @@
-New
------
-<?php
-
-new A;
-new A($b);
-
-// class name variations
-new $a();
-new $a['b']();
-new A::$b();
-// DNCR object access
-new $a->b();
-new $a->b->c();
-new $a->b['c']();
-new $a->b{'c'}();
-
-// test regression introduces by new dereferencing syntax
-(new A);
------
-array(
- 0: Expr_New(
- class: Name(
- parts: array(
- 0: A
- )
- )
- args: array(
- )
- )
- 1: Expr_New(
- class: Name(
- parts: array(
- 0: A
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: b
- )
- byRef: false
- unpack: false
- )
- )
- )
- 2: Expr_New(
- class: Expr_Variable(
- name: a
- )
- args: array(
- )
- )
- 3: Expr_New(
- class: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: b
- )
- )
- args: array(
- )
- )
- 4: Expr_New(
- class: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: b
- )
- args: array(
- )
- )
- 5: Expr_New(
- class: Expr_PropertyFetch(
- var: Expr_Variable(
- name: a
- )
- name: b
- )
- args: array(
- )
- )
- 6: Expr_New(
- class: Expr_PropertyFetch(
- var: Expr_PropertyFetch(
- var: Expr_Variable(
- name: a
- )
- name: b
- )
- name: c
- )
- args: array(
- )
- )
- 7: Expr_New(
- class: Expr_ArrayDimFetch(
- var: Expr_PropertyFetch(
- var: Expr_Variable(
- name: a
- )
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- args: array(
- )
- )
- 8: Expr_New(
- class: Expr_ArrayDimFetch(
- var: Expr_PropertyFetch(
- var: Expr_Variable(
- name: a
- )
- name: b
- )
- dim: Scalar_String(
- value: c
- )
- )
- args: array(
- )
- )
- 9: Expr_New(
- class: Name(
- parts: array(
- 0: A
- )
- )
- args: array(
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/newWithoutClass.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/newWithoutClass.test
deleted file mode 100644
index 84ec7b17..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/newWithoutClass.test
+++ /dev/null
@@ -1,8 +0,0 @@
-New without a class
------
-<?php
-new;
------
-Syntax error, unexpected ';' from 2:4 to 2:4
-array(
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/print.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/print.test
deleted file mode 100644
index d07afda0..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/print.test
+++ /dev/null
@@ -1,12 +0,0 @@
-Print
------
-<?php
-print $a;
------
-array(
- 0: Expr_Print(
- expr: Expr_Variable(
- name: a
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/shellExec.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/shellExec.test
deleted file mode 100644
index 2304fd98..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/shellExec.test
+++ /dev/null
@@ -1,46 +0,0 @@
-Shell execution
------
-<?php
-``;
-`test`;
-`test $A`;
-`test \``;
-`test \"`;
------
-array(
- 0: Expr_ShellExec(
- parts: array(
- )
- )
- 1: Expr_ShellExec(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: test
- )
- )
- )
- 2: Expr_ShellExec(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: test
- )
- 1: Expr_Variable(
- name: A
- )
- )
- )
- 3: Expr_ShellExec(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: test `
- )
- )
- )
- 4: Expr_ShellExec(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: test \"
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/ternaryAndCoalesce.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/ternaryAndCoalesce.test
deleted file mode 100644
index 268935db..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/ternaryAndCoalesce.test
+++ /dev/null
@@ -1,149 +0,0 @@
-Ternary operator
------
-<?php
-
-// ternary
-$a ? $b : $c;
-$a ?: $c;
-
-// precedence
-$a ? $b : $c ? $d : $e;
-$a ? $b : ($c ? $d : $e);
-
-// null coalesce
-$a ?? $b;
-$a ?? $b ?? $c;
-$a ?? $b ? $c : $d;
-$a && $b ?? $c;
------
-array(
- 0: Expr_Ternary(
- cond: Expr_Variable(
- name: a
- comments: array(
- 0: // ternary
- )
- )
- if: Expr_Variable(
- name: b
- )
- else: Expr_Variable(
- name: c
- )
- comments: array(
- 0: // ternary
- )
- )
- 1: Expr_Ternary(
- cond: Expr_Variable(
- name: a
- )
- if: null
- else: Expr_Variable(
- name: c
- )
- )
- 2: Expr_Ternary(
- cond: Expr_Ternary(
- cond: Expr_Variable(
- name: a
- comments: array(
- 0: // precedence
- )
- )
- if: Expr_Variable(
- name: b
- )
- else: Expr_Variable(
- name: c
- )
- comments: array(
- 0: // precedence
- )
- )
- if: Expr_Variable(
- name: d
- )
- else: Expr_Variable(
- name: e
- )
- comments: array(
- 0: // precedence
- )
- )
- 3: Expr_Ternary(
- cond: Expr_Variable(
- name: a
- )
- if: Expr_Variable(
- name: b
- )
- else: Expr_Ternary(
- cond: Expr_Variable(
- name: c
- )
- if: Expr_Variable(
- name: d
- )
- else: Expr_Variable(
- name: e
- )
- )
- )
- 4: Expr_BinaryOp_Coalesce(
- left: Expr_Variable(
- name: a
- comments: array(
- 0: // null coalesce
- )
- )
- right: Expr_Variable(
- name: b
- )
- comments: array(
- 0: // null coalesce
- )
- )
- 5: Expr_BinaryOp_Coalesce(
- left: Expr_Variable(
- name: a
- )
- right: Expr_BinaryOp_Coalesce(
- left: Expr_Variable(
- name: b
- )
- right: Expr_Variable(
- name: c
- )
- )
- )
- 6: Expr_Ternary(
- cond: Expr_BinaryOp_Coalesce(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- if: Expr_Variable(
- name: c
- )
- else: Expr_Variable(
- name: d
- )
- )
- 7: Expr_BinaryOp_Coalesce(
- left: Expr_BinaryOp_BooleanAnd(
- left: Expr_Variable(
- name: a
- )
- right: Expr_Variable(
- name: b
- )
- )
- right: Expr_Variable(
- name: c
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/globalNonSimpleVarError.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/globalNonSimpleVarError.test
deleted file mode 100644
index c4e4a48e..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/globalNonSimpleVarError.test
+++ /dev/null
@@ -1,16 +0,0 @@
-Non-simple variables are forbidden in PHP 7
------
-<?php
-global $$foo->bar;
------
-!!php7
-Syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' from 2:13 to 2:14
-array(
- 0: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: bar
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/indirectCall.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/indirectCall.test
deleted file mode 100644
index bb3e7fbe..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/indirectCall.test
+++ /dev/null
@@ -1,481 +0,0 @@
-UVS indirect calls
------
-<?php
-
-id('var_dump')(1);
-id('id')('var_dump')(2);
-id()()('var_dump')(4);
-id(['udef', 'id'])[1]()('var_dump')(5);
-(function($x) { return $x; })('id')('var_dump')(8);
-($f = function($x = null) use (&$f) {
- return $x ?: $f;
-})()()()('var_dump')(9);
-[$obj, 'id']()('id')($id)('var_dump')(10);
-'id'()('id')('var_dump')(12);
-('i' . 'd')()('var_dump')(13);
-'\id'('var_dump')(14);
------
-!!php7
-array(
- 0: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: id
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: var_dump
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- unpack: false
- )
- )
- )
- 1: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: id
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: id
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: var_dump
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 2
- )
- byRef: false
- unpack: false
- )
- )
- )
- 2: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: id
- )
- )
- args: array(
- )
- )
- args: array(
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: var_dump
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 4
- )
- byRef: false
- unpack: false
- )
- )
- )
- 3: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_ArrayDimFetch(
- var: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: id
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: udef
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: id
- )
- byRef: false
- )
- )
- )
- byRef: false
- unpack: false
- )
- )
- )
- dim: Scalar_LNumber(
- value: 1
- )
- )
- args: array(
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: var_dump
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 5
- )
- byRef: false
- unpack: false
- )
- )
- )
- 4: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_Closure(
- static: false
- byRef: false
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: x
- default: null
- )
- )
- uses: array(
- )
- returnType: null
- stmts: array(
- 0: Stmt_Return(
- expr: Expr_Variable(
- name: x
- )
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: id
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: var_dump
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 8
- )
- byRef: false
- unpack: false
- )
- )
- )
- 5: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_Assign(
- var: Expr_Variable(
- name: f
- )
- expr: Expr_Closure(
- static: false
- byRef: false
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: x
- default: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: null
- )
- )
- )
- )
- )
- uses: array(
- 0: Expr_ClosureUse(
- var: f
- byRef: true
- )
- )
- returnType: null
- stmts: array(
- 0: Stmt_Return(
- expr: Expr_Ternary(
- cond: Expr_Variable(
- name: x
- )
- if: null
- else: Expr_Variable(
- name: f
- )
- )
- )
- )
- )
- )
- args: array(
- )
- )
- args: array(
- )
- )
- args: array(
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: var_dump
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 9
- )
- byRef: false
- unpack: false
- )
- )
- )
- 6: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Expr_Variable(
- name: obj
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: id
- )
- byRef: false
- )
- )
- )
- args: array(
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: id
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: id
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: var_dump
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 10
- )
- byRef: false
- unpack: false
- )
- )
- )
- 7: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Scalar_String(
- value: id
- )
- args: array(
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: id
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: var_dump
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 12
- )
- byRef: false
- unpack: false
- )
- )
- )
- 8: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: i
- )
- right: Scalar_String(
- value: d
- )
- )
- args: array(
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: var_dump
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 13
- )
- byRef: false
- unpack: false
- )
- )
- )
- 9: Expr_FuncCall(
- name: Expr_FuncCall(
- name: Scalar_String(
- value: \id
- )
- args: array(
- 0: Arg(
- value: Scalar_String(
- value: var_dump
- )
- byRef: false
- unpack: false
- )
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 14
- )
- byRef: false
- unpack: false
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/isset.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/isset.test
deleted file mode 100644
index 35bc8ed1..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/isset.test
+++ /dev/null
@@ -1,74 +0,0 @@
-UVS isset() on temporaries
------
-<?php
-
-isset(([0, 1] + [])[0]);
-isset(['a' => 'b']->a);
-isset("str"->a);
------
-!!php7
-array(
- 0: Expr_Isset(
- vars: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_BinaryOp_Plus(
- left: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 0
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- )
- )
- )
- right: Expr_Array(
- items: array(
- )
- )
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- )
- )
- 1: Expr_Isset(
- vars: array(
- 0: Expr_PropertyFetch(
- var: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: Scalar_String(
- value: a
- )
- value: Scalar_String(
- value: b
- )
- byRef: false
- )
- )
- )
- name: a
- )
- )
- )
- 2: Expr_Isset(
- vars: array(
- 0: Expr_PropertyFetch(
- var: Scalar_String(
- value: str
- )
- name: a
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/misc.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/misc.test
deleted file mode 100644
index 2c5ba900..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/misc.test
+++ /dev/null
@@ -1,109 +0,0 @@
-Uniform variable syntax in PHP 7 (misc)
------
-<?php
-
-A::A[0];
-A::A[0][1][2];
-"string"->length();
-(clone $obj)->b[0](1);
-[0, 1][0] = 1;
------
-!!php7
-array(
- 0: Expr_ArrayDimFetch(
- var: Expr_ClassConstFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: A
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- 1: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_ClassConstFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: A
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- dim: Scalar_LNumber(
- value: 1
- )
- )
- dim: Scalar_LNumber(
- value: 2
- )
- )
- 2: Expr_MethodCall(
- var: Scalar_String(
- value: string
- )
- name: length
- args: array(
- )
- )
- 3: Expr_FuncCall(
- name: Expr_ArrayDimFetch(
- var: Expr_PropertyFetch(
- var: Expr_Clone(
- expr: Expr_Variable(
- name: obj
- )
- )
- name: b
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- args: array(
- 0: Arg(
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- unpack: false
- )
- )
- )
- 4: Expr_Assign(
- var: Expr_ArrayDimFetch(
- var: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 0
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: null
- value: Scalar_LNumber(
- value: 1
- )
- byRef: false
- )
- )
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- expr: Scalar_LNumber(
- value: 1
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/new.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/new.test
deleted file mode 100644
index e5f92f97..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/new.test
+++ /dev/null
@@ -1,95 +0,0 @@
-UVS new expressions
------
-<?php
-new $className;
-new $array['className'];
-new $array{'className'};
-new $obj->className;
-new Test::$className;
-new $test::$className;
-new $weird[0]->foo::$className;
------
-!!php7
-array(
- 0: Expr_New(
- class: Expr_Variable(
- name: className
- )
- args: array(
- )
- )
- 1: Expr_New(
- class: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: array
- )
- dim: Scalar_String(
- value: className
- )
- )
- args: array(
- )
- )
- 2: Expr_New(
- class: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: array
- )
- dim: Scalar_String(
- value: className
- )
- )
- args: array(
- )
- )
- 3: Expr_New(
- class: Expr_PropertyFetch(
- var: Expr_Variable(
- name: obj
- )
- name: className
- )
- args: array(
- )
- )
- 4: Expr_New(
- class: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: Test
- )
- )
- name: className
- )
- args: array(
- )
- )
- 5: Expr_New(
- class: Expr_StaticPropertyFetch(
- class: Expr_Variable(
- name: test
- )
- name: className
- )
- args: array(
- )
- )
- 6: Expr_New(
- class: Expr_StaticPropertyFetch(
- class: Expr_PropertyFetch(
- var: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: weird
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- name: foo
- )
- name: className
- )
- args: array(
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/staticProperty.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/staticProperty.test
deleted file mode 100644
index 5fadfc48..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/uvs/staticProperty.test
+++ /dev/null
@@ -1,93 +0,0 @@
-UVS static access
------
-<?php
-A::$b;
-$A::$b;
-'A'::$b;
-('A' . '')::$b;
-'A'[0]::$b;
-A::$$b;
-A::$$c[1];
-A::$A::$b;
------
-!!php7
-array(
- 0: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: b
- )
- 1: Expr_StaticPropertyFetch(
- class: Expr_Variable(
- name: A
- )
- name: b
- )
- 2: Expr_StaticPropertyFetch(
- class: Scalar_String(
- value: A
- )
- name: b
- )
- 3: Expr_StaticPropertyFetch(
- class: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: A
- )
- right: Scalar_String(
- value:
- )
- )
- name: b
- )
- 4: Expr_StaticPropertyFetch(
- class: Expr_ArrayDimFetch(
- var: Scalar_String(
- value: A
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- name: b
- )
- 5: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Expr_Variable(
- name: b
- )
- )
- 6: Expr_ArrayDimFetch(
- var: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Expr_Variable(
- name: c
- )
- )
- dim: Scalar_LNumber(
- value: 1
- )
- )
- 7: Expr_StaticPropertyFetch(
- class: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: A
- )
- name: b
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/variable.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/variable.test
deleted file mode 100644
index 3a709f99..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/expr/variable.test
+++ /dev/null
@@ -1,55 +0,0 @@
-Variable syntaxes
------
-<?php
-
-$a;
-${'a'};
-${foo()};
-$$a;
-$$$a;
-$$a['b'];
------
-!!php5
-array(
- 0: Expr_Variable(
- name: a
- )
- 1: Expr_Variable(
- name: Scalar_String(
- value: a
- )
- )
- 2: Expr_Variable(
- name: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: foo
- )
- )
- args: array(
- )
- )
- )
- 3: Expr_Variable(
- name: Expr_Variable(
- name: a
- )
- )
- 4: Expr_Variable(
- name: Expr_Variable(
- name: Expr_Variable(
- name: a
- )
- )
- )
- 5: Expr_Variable(
- name: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: b
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/constantString.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/constantString.test
deleted file mode 100644
index 3f80df4c..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/constantString.test
+++ /dev/null
@@ -1,60 +0,0 @@
-Constant string syntaxes
------
-<?php
-
-'';
-"";
-b'';
-b"";
-'Hi';
-b'Hi';
-B'Hi';
-"Hi";
-b"Hi";
-B"Hi";
-'!\'!\\!\a!';
-"!\"!\\!\$!\n!\r!\t!\f!\v!\e!\a";
-"!\xFF!\377!\400!\0!";
------
-array(
- 0: Scalar_String(
- value:
- )
- 1: Scalar_String(
- value:
- )
- 2: Scalar_String(
- value:
- )
- 3: Scalar_String(
- value:
- )
- 4: Scalar_String(
- value: Hi
- )
- 5: Scalar_String(
- value: Hi
- )
- 6: Scalar_String(
- value: Hi
- )
- 7: Scalar_String(
- value: Hi
- )
- 8: Scalar_String(
- value: Hi
- )
- 9: Scalar_String(
- value: Hi
- )
- 10: Scalar_String(
- value: !'!\!\a!
- )
- 11: Scalar_String(
- value: !"!\!$!
- !@@{ "\r" }@@!@@{ "\t" }@@!@@{ "\f" }@@!@@{ "\v" }@@!@@{ chr(27) /* "\e" */ }@@!\a
- )
- 12: Scalar_String(
- value: !@@{ chr(255) }@@!@@{ chr(255) }@@!@@{ chr(0) }@@!@@{ chr(0) }@@!
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/docString.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/docString.test
deleted file mode 100644
index e1b14208..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/docString.test
+++ /dev/null
@@ -1,90 +0,0 @@
-Nowdoc and heredoc strings
------
-<?php
-
-// empty strings
-<<<'EOS'
-EOS;
-<<<EOS
-EOS;
-
-// constant encapsed strings
-<<<'EOS'
-Test '" $a \n
-EOS;
-<<<EOS
-Test '" \$a \n
-EOS;
-
-// encapsed strings
-<<<EOS
-Test $a
-EOS;
-<<<EOS
-Test $a and $b->c test
-EOS;
-
-b<<<EOS
-Binary
-EOS;
-
------
-array(
- 0: Scalar_String(
- value:
- comments: array(
- 0: // empty strings
- )
- )
- 1: Scalar_String(
- value:
- )
- 2: Scalar_String(
- value: Test '" $a \n
- comments: array(
- 0: // constant encapsed strings
- )
- )
- 3: Scalar_String(
- value: Test '" $a
-
- )
- 4: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: Test
- )
- 1: Expr_Variable(
- name: a
- )
- )
- comments: array(
- 0: // encapsed strings
- )
- )
- 5: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: Test
- )
- 1: Expr_Variable(
- name: a
- )
- 2: Scalar_EncapsedStringPart(
- value: and
- )
- 3: Expr_PropertyFetch(
- var: Expr_Variable(
- name: b
- )
- name: c
- )
- 4: Scalar_EncapsedStringPart(
- value: test
- )
- )
- )
- 6: Scalar_String(
- value: Binary
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/docStringNewlines.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/docStringNewlines.test
deleted file mode 100644
index 28b920f1..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/docStringNewlines.test
+++ /dev/null
@@ -1,61 +0,0 @@
-Trailing newlines in doc strings
------
-<?php
-
-<<<'EOF'@@{ "\n\n" }@@EOF;
-<<<'EOF'@@{ "\n\n\n" }@@EOF;
-<<<'EOF'@@{ "\nFoo\n\n" }@@EOF;
-<<<EOF@@{ "\n\$var\n\n" }@@EOF;
-
-<<<'EOF'@@{ "\r\n\r\n" }@@EOF;
-<<<'EOF'@@{ "\r\n\r\n\r\n" }@@EOF;
-<<<'EOF'@@{ "\r\nFoo\r\n\r\n" }@@EOF;
-<<<EOF@@{ "\r\n\$var\r\n\r\n" }@@EOF;
-
------
-array(
- 0: Scalar_String(
- value:
- )
- 1: Scalar_String(
- value:
-
- )
- 2: Scalar_String(
- value: Foo
-
- )
- 3: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: var
- )
- 1: Scalar_EncapsedStringPart(
- value:
-
- )
- )
- )
- 4: Scalar_String(
- value:
- )
- 5: Scalar_String(
- value:
-
- )
- 6: Scalar_String(
- value: Foo
-
- )
- 7: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: var
- )
- 1: Scalar_EncapsedStringPart(
- value:
-
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/encapsedString.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/encapsedString.test
deleted file mode 100644
index af05567e..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/encapsedString.test
+++ /dev/null
@@ -1,242 +0,0 @@
-Encapsed strings
------
-<?php
-
-"$A";
-"$A->B";
-"$A[B]";
-"$A[0]";
-"$A[0x0]";
-"$A[$B]";
-"{$A}";
-"{$A['B']}";
-"${A}";
-"${A['B']}";
-"${$A}";
-"\{$A}";
-"\{ $A }";
-"\\{$A}";
-"\\{ $A }";
-"{$$A}[B]";
-"$$A[B]";
-"A $B C";
-b"$A";
-B"$A";
------
-array(
- 0: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- 1: Scalar_Encapsed(
- parts: array(
- 0: Expr_PropertyFetch(
- var: Expr_Variable(
- name: A
- )
- name: B
- )
- )
- )
- 2: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: B
- )
- )
- )
- )
- 3: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: 0
- )
- )
- )
- )
- 4: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: 0x0
- )
- )
- )
- )
- 5: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Expr_Variable(
- name: B
- )
- )
- )
- )
- 6: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- 7: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: B
- )
- )
- )
- )
- 8: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- 9: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: B
- )
- )
- )
- )
- 10: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: Expr_Variable(
- name: A
- )
- )
- )
- )
- 11: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: \{
- )
- 1: Expr_Variable(
- name: A
- )
- 2: Scalar_EncapsedStringPart(
- value: }
- )
- )
- )
- 12: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: \{
- )
- 1: Expr_Variable(
- name: A
- )
- 2: Scalar_EncapsedStringPart(
- value: }
- )
- )
- )
- 13: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: \
- )
- 1: Expr_Variable(
- name: A
- )
- )
- )
- 14: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: \{
- )
- 1: Expr_Variable(
- name: A
- )
- 2: Scalar_EncapsedStringPart(
- value: }
- )
- )
- )
- 15: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: Expr_Variable(
- name: A
- )
- )
- 1: Scalar_EncapsedStringPart(
- value: [B]
- )
- )
- )
- 16: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: $
- )
- 1: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: B
- )
- )
- )
- )
- 17: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: A
- )
- 1: Expr_Variable(
- name: B
- )
- 2: Scalar_EncapsedStringPart(
- value: C
- )
- )
- )
- 18: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- 19: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/float.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/float.test
deleted file mode 100644
index a16028e2..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/float.test
+++ /dev/null
@@ -1,74 +0,0 @@
-Different float syntaxes
------
-<?php
-
-0.0;
-0.;
-.0;
-0e0;
-0E0;
-0e+0;
-0e-0;
-30.20e10;
-300.200e100;
-1e10000;
-
-// various integer -> float overflows
-// (all are actually the same number, just in different representations)
-18446744073709551615;
-0xFFFFFFFFFFFFFFFF;
-01777777777777777777777;
-0177777777777777777777787;
-0b1111111111111111111111111111111111111111111111111111111111111111;
------
-array(
- 0: Scalar_DNumber(
- value: 0
- )
- 1: Scalar_DNumber(
- value: 0
- )
- 2: Scalar_DNumber(
- value: 0
- )
- 3: Scalar_DNumber(
- value: 0
- )
- 4: Scalar_DNumber(
- value: 0
- )
- 5: Scalar_DNumber(
- value: 0
- )
- 6: Scalar_DNumber(
- value: 0
- )
- 7: Scalar_DNumber(
- value: 302000000000
- )
- 8: Scalar_DNumber(
- value: 3.002E+102
- )
- 9: Scalar_DNumber(
- value: INF
- )
- 10: Scalar_DNumber(
- value: 1.844674407371E+19
- comments: array(
- 0: // various integer -> float overflows
- 1: // (all are actually the same number, just in different representations)
- )
- )
- 11: Scalar_DNumber(
- value: 1.844674407371E+19
- )
- 12: Scalar_DNumber(
- value: 1.844674407371E+19
- )
- 13: Scalar_DNumber(
- value: 1.844674407371E+19
- )
- 14: Scalar_DNumber(
- value: 1.844674407371E+19
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/int.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/int.test
deleted file mode 100644
index 5a212677..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/int.test
+++ /dev/null
@@ -1,43 +0,0 @@
-Different integer syntaxes
------
-<?php
-
-0;
-1;
-@@{ PHP_INT_MAX }@@;
-@@{ PHP_INT_MAX + 1 }@@;
-0xFFF;
-0xfff;
-0XfFf;
-0777;
-0b111000111000;
------
-array(
- 0: Scalar_LNumber(
- value: 0
- )
- 1: Scalar_LNumber(
- value: 1
- )
- 2: Scalar_LNumber(
- value: @@{ PHP_INT_MAX }@@
- )
- 3: Scalar_DNumber(
- value: @@{ PHP_INT_MAX + 1 }@@
- )
- 4: Scalar_LNumber(
- value: 4095
- )
- 5: Scalar_LNumber(
- value: 4095
- )
- 6: Scalar_LNumber(
- value: 4095
- )
- 7: Scalar_LNumber(
- value: 511
- )
- 8: Scalar_LNumber(
- value: 3640
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/invalidOctal.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/invalidOctal.test
deleted file mode 100644
index eedae747..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/invalidOctal.test
+++ /dev/null
@@ -1,17 +0,0 @@
-Invalid octal literals
------
-<?php
-0787;
------
-!!php7
-Invalid numeric literal from 2:1 to 2:4
------
-<?php
-0787;
------
-!!php5
-array(
- 0: Scalar_LNumber(
- value: 7
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/magicConst.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/magicConst.test
deleted file mode 100644
index 9b981eb6..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/magicConst.test
+++ /dev/null
@@ -1,31 +0,0 @@
-Magic constants
------
-<?php
-
-__CLASS__;
-__DIR__;
-__FILE__;
-__FUNCTION__;
-__LINE__;
-__METHOD__;
-__NAMESPACE__;
-__TRAIT__;
------
-array(
- 0: Scalar_MagicConst_Class(
- )
- 1: Scalar_MagicConst_Dir(
- )
- 2: Scalar_MagicConst_File(
- )
- 3: Scalar_MagicConst_Function(
- )
- 4: Scalar_MagicConst_Line(
- )
- 5: Scalar_MagicConst_Method(
- )
- 6: Scalar_MagicConst_Namespace(
- )
- 7: Scalar_MagicConst_Trait(
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/unicodeEscape.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/unicodeEscape.test
deleted file mode 100644
index 33a96119..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/scalar/unicodeEscape.test
+++ /dev/null
@@ -1,20 +0,0 @@
-Unicode escape sequence
------
-<?php
-
-"\u{0}";
-"\u{114}";
-"\u{1F602}";
------
-!!php7
-array(
- 0: Scalar_String(
- value: @@{"\0"}@@
- )
- 1: Scalar_String(
- value: Ĕ
- )
- 2: Scalar_String(
- value: @@{"\xF0\x9F\x98\x82"}@@
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/semiReserved.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/semiReserved.test
deleted file mode 100644
index ea975971..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/semiReserved.test
+++ /dev/null
@@ -1,380 +0,0 @@
-Valid usages of reserved keywords as identifiers
------
-<?php
-
-class Test {
- function array() {}
- function public() {}
-
- static function list() {}
- static function protected() {}
-
- public $class;
- public $private;
-
- const TRAIT = 3, FINAL = 4;
-
- const __CLASS__ = 1, __TRAIT__ = 2, __FUNCTION__ = 3, __METHOD__ = 4, __LINE__ = 5,
- __FILE__ = 6, __DIR__ = 7, __NAMESPACE__ = 8;
- // __halt_compiler does not work
-}
-
-$t = new Test;
-$t->array();
-$t->public();
-
-Test::list();
-Test::protected();
-
-$t->class;
-$t->private;
-
-Test::TRAIT;
-Test::FINAL;
-
-class Foo {
- use TraitA, TraitB {
- TraitA::catch insteadof namespace\TraitB;
- TraitA::list as foreach;
- TraitB::throw as protected public;
- TraitB::self as protected;
- exit as die;
- \TraitC::exit as bye;
- namespace\TraitC::exit as byebye;
- TraitA::
- //
- /** doc comment */
- #
- catch /* comment */
- // comment
- # comment
- insteadof TraitB;
- }
-}
------
-array(
- 0: Stmt_Class(
- type: 0
- name: Test
- extends: null
- implements: array(
- )
- stmts: array(
- 0: Stmt_ClassMethod(
- type: 0
- byRef: false
- name: array
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 1: Stmt_ClassMethod(
- type: 0
- byRef: false
- name: public
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 2: Stmt_ClassMethod(
- type: 8
- byRef: false
- name: list
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 3: Stmt_ClassMethod(
- type: 8
- byRef: false
- name: protected
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 4: Stmt_Property(
- type: 1
- props: array(
- 0: Stmt_PropertyProperty(
- name: class
- default: null
- )
- )
- )
- 5: Stmt_Property(
- type: 1
- props: array(
- 0: Stmt_PropertyProperty(
- name: private
- default: null
- )
- )
- )
- 6: Stmt_ClassConst(
- consts: array(
- 0: Const(
- name: TRAIT
- value: Scalar_LNumber(
- value: 3
- )
- )
- 1: Const(
- name: FINAL
- value: Scalar_LNumber(
- value: 4
- )
- )
- )
- )
- 7: Stmt_ClassConst(
- consts: array(
- 0: Const(
- name: __CLASS__
- value: Scalar_LNumber(
- value: 1
- )
- )
- 1: Const(
- name: __TRAIT__
- value: Scalar_LNumber(
- value: 2
- )
- )
- 2: Const(
- name: __FUNCTION__
- value: Scalar_LNumber(
- value: 3
- )
- )
- 3: Const(
- name: __METHOD__
- value: Scalar_LNumber(
- value: 4
- )
- )
- 4: Const(
- name: __LINE__
- value: Scalar_LNumber(
- value: 5
- )
- )
- 5: Const(
- name: __FILE__
- value: Scalar_LNumber(
- value: 6
- )
- )
- 6: Const(
- name: __DIR__
- value: Scalar_LNumber(
- value: 7
- )
- )
- 7: Const(
- name: __NAMESPACE__
- value: Scalar_LNumber(
- value: 8
- )
- )
- )
- )
- )
- )
- 1: Expr_Assign(
- var: Expr_Variable(
- name: t
- )
- expr: Expr_New(
- class: Name(
- parts: array(
- 0: Test
- )
- )
- args: array(
- )
- )
- )
- 2: Expr_MethodCall(
- var: Expr_Variable(
- name: t
- )
- name: array
- args: array(
- )
- )
- 3: Expr_MethodCall(
- var: Expr_Variable(
- name: t
- )
- name: public
- args: array(
- )
- )
- 4: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: Test
- )
- )
- name: list
- args: array(
- )
- )
- 5: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: Test
- )
- )
- name: protected
- args: array(
- )
- )
- 6: Expr_PropertyFetch(
- var: Expr_Variable(
- name: t
- )
- name: class
- )
- 7: Expr_PropertyFetch(
- var: Expr_Variable(
- name: t
- )
- name: private
- )
- 8: Expr_ClassConstFetch(
- class: Name(
- parts: array(
- 0: Test
- )
- )
- name: TRAIT
- )
- 9: Expr_ClassConstFetch(
- class: Name(
- parts: array(
- 0: Test
- )
- )
- name: FINAL
- )
- 10: Stmt_Class(
- type: 0
- name: Foo
- extends: null
- implements: array(
- )
- stmts: array(
- 0: Stmt_TraitUse(
- traits: array(
- 0: Name(
- parts: array(
- 0: TraitA
- )
- )
- 1: Name(
- parts: array(
- 0: TraitB
- )
- )
- )
- adaptations: array(
- 0: Stmt_TraitUseAdaptation_Precedence(
- trait: Name(
- parts: array(
- 0: TraitA
- )
- )
- method: catch
- insteadof: array(
- 0: Name_Relative(
- parts: array(
- 0: TraitB
- )
- )
- )
- )
- 1: Stmt_TraitUseAdaptation_Alias(
- trait: Name(
- parts: array(
- 0: TraitA
- )
- )
- method: list
- newModifier: null
- newName: foreach
- )
- 2: Stmt_TraitUseAdaptation_Alias(
- trait: Name(
- parts: array(
- 0: TraitB
- )
- )
- method: throw
- newModifier: 2
- newName: public
- )
- 3: Stmt_TraitUseAdaptation_Alias(
- trait: Name(
- parts: array(
- 0: TraitB
- )
- )
- method: self
- newModifier: 2
- newName: null
- )
- 4: Stmt_TraitUseAdaptation_Alias(
- trait: null
- method: exit
- newModifier: null
- newName: die
- )
- 5: Stmt_TraitUseAdaptation_Alias(
- trait: Name_FullyQualified(
- parts: array(
- 0: TraitC
- )
- )
- method: exit
- newModifier: null
- newName: bye
- )
- 6: Stmt_TraitUseAdaptation_Alias(
- trait: Name_Relative(
- parts: array(
- 0: TraitC
- )
- )
- method: exit
- newModifier: null
- newName: byebye
- )
- 7: Stmt_TraitUseAdaptation_Precedence(
- trait: Name(
- parts: array(
- 0: TraitA
- )
- )
- method: catch
- insteadof: array(
- 0: Name(
- parts: array(
- 0: TraitB
- )
- )
- )
- )
- )
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/blocklessStatement.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/blocklessStatement.test
deleted file mode 100644
index ae83dabb..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/blocklessStatement.test
+++ /dev/null
@@ -1,112 +0,0 @@
-Blockless statements for if/for/etc
------
-<?php
-
-if ($a) $A;
-elseif ($b) $B;
-else $C;
-
-for (;;) $foo;
-
-foreach ($a as $b) $AB;
-
-while ($a) $A;
-
-do $A; while ($a);
-
-declare (a='b') $C;
------
-array(
- 0: Stmt_If(
- cond: Expr_Variable(
- name: a
- )
- stmts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- elseifs: array(
- 0: Stmt_ElseIf(
- cond: Expr_Variable(
- name: b
- )
- stmts: array(
- 0: Expr_Variable(
- name: B
- )
- )
- )
- )
- else: Stmt_Else(
- stmts: array(
- 0: Expr_Variable(
- name: C
- )
- )
- )
- )
- 1: Stmt_For(
- init: array(
- )
- cond: array(
- )
- loop: array(
- )
- stmts: array(
- 0: Expr_Variable(
- name: foo
- )
- )
- )
- 2: Stmt_Foreach(
- expr: Expr_Variable(
- name: a
- )
- keyVar: null
- byRef: false
- valueVar: Expr_Variable(
- name: b
- )
- stmts: array(
- 0: Expr_Variable(
- name: AB
- )
- )
- )
- 3: Stmt_While(
- cond: Expr_Variable(
- name: a
- )
- stmts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- 4: Stmt_Do(
- cond: Expr_Variable(
- name: a
- )
- stmts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- 5: Stmt_Declare(
- declares: array(
- 0: Stmt_DeclareDeclare(
- key: a
- value: Scalar_String(
- value: b
- )
- )
- )
- stmts: array(
- 0: Expr_Variable(
- name: C
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/abstract.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/abstract.test
deleted file mode 100644
index 9dd5f732..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/abstract.test
+++ /dev/null
@@ -1,39 +0,0 @@
-Abstract class
------
-<?php
-
-abstract class A {
- public function a() {}
- abstract public function b();
-}
------
-array(
- 0: Stmt_Class(
- type: 16
- name: A
- extends: null
- implements: array(
- )
- stmts: array(
- 0: Stmt_ClassMethod(
- type: 1
- byRef: false
- name: a
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 1: Stmt_ClassMethod(
- type: 17
- byRef: false
- name: b
- params: array(
- )
- returnType: null
- stmts: null
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/anonymous.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/anonymous.test
deleted file mode 100644
index b1e911fd..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/anonymous.test
+++ /dev/null
@@ -1,194 +0,0 @@
-Anonymous classes
------
-<?php
-
-new class {
- public function test() {}
-};
-new class extends A implements B, C {};
-new class() {
- public $foo;
-};
-new class($a, $b) extends A {
- use T;
-};
-
-class A {
- public function test() {
- return new class($this) extends A {
- const A = 'B';
- };
- }
-}
------
-array(
- 0: Expr_New(
- class: Stmt_Class(
- type: 0
- name: null
- extends: null
- implements: array(
- )
- stmts: array(
- 0: Stmt_ClassMethod(
- type: 1
- byRef: false
- name: test
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- )
- )
- args: array(
- )
- )
- 1: Expr_New(
- class: Stmt_Class(
- type: 0
- name: null
- extends: Name(
- parts: array(
- 0: A
- )
- )
- implements: array(
- 0: Name(
- parts: array(
- 0: B
- )
- )
- 1: Name(
- parts: array(
- 0: C
- )
- )
- )
- stmts: array(
- )
- )
- args: array(
- )
- )
- 2: Expr_New(
- class: Stmt_Class(
- type: 0
- name: null
- extends: null
- implements: array(
- )
- stmts: array(
- 0: Stmt_Property(
- type: 1
- props: array(
- 0: Stmt_PropertyProperty(
- name: foo
- default: null
- )
- )
- )
- )
- )
- args: array(
- )
- )
- 3: Expr_New(
- class: Stmt_Class(
- type: 0
- name: null
- extends: Name(
- parts: array(
- 0: A
- )
- )
- implements: array(
- )
- stmts: array(
- 0: Stmt_TraitUse(
- traits: array(
- 0: Name(
- parts: array(
- 0: T
- )
- )
- )
- adaptations: array(
- )
- )
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: a
- )
- byRef: false
- unpack: false
- )
- 1: Arg(
- value: Expr_Variable(
- name: b
- )
- byRef: false
- unpack: false
- )
- )
- )
- 4: Stmt_Class(
- type: 0
- name: A
- extends: null
- implements: array(
- )
- stmts: array(
- 0: Stmt_ClassMethod(
- type: 1
- byRef: false
- name: test
- params: array(
- )
- returnType: null
- stmts: array(
- 0: Stmt_Return(
- expr: Expr_New(
- class: Stmt_Class(
- type: 0
- name: null
- extends: Name(
- parts: array(
- 0: A
- )
- )
- implements: array(
- )
- stmts: array(
- 0: Stmt_ClassConst(
- consts: array(
- 0: Const(
- name: A
- value: Scalar_String(
- value: B
- )
- )
- )
- )
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: this
- )
- byRef: false
- unpack: false
- )
- )
- )
- )
- )
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/conditional.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/conditional.test
deleted file mode 100644
index 2fbcc1ea..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/conditional.test
+++ /dev/null
@@ -1,33 +0,0 @@
-Conditional class definition
------
-<?php
-
-if (true) {
- class A {}
-}
------
-array(
- 0: Stmt_If(
- cond: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: true
- )
- )
- )
- stmts: array(
- 0: Stmt_Class(
- type: 0
- name: A
- extends: null
- implements: array(
- )
- stmts: array(
- )
- )
- )
- elseifs: array(
- )
- else: null
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/final.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/final.test
deleted file mode 100644
index a8532994..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/final.test
+++ /dev/null
@@ -1,17 +0,0 @@
-Final class
------
-<?php
-
-final class A {}
------
-array(
- 0: Stmt_Class(
- type: 32
- name: A
- extends: null
- implements: array(
- )
- stmts: array(
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/implicitPublic.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/implicitPublic.test
deleted file mode 100644
index 336f778e..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/implicitPublic.test
+++ /dev/null
@@ -1,92 +0,0 @@
-Implicitly public properties and methods
------
-<?php
-
-abstract class A {
- var $a;
- static $b;
- abstract function c();
- final function d() {}
- static function e() {}
- final static function f() {}
- function g() {}
-}
------
-array(
- 0: Stmt_Class(
- type: 16
- name: A
- extends: null
- implements: array(
- )
- stmts: array(
- 0: Stmt_Property(
- type: 0
- props: array(
- 0: Stmt_PropertyProperty(
- name: a
- default: null
- )
- )
- )
- 1: Stmt_Property(
- type: 8
- props: array(
- 0: Stmt_PropertyProperty(
- name: b
- default: null
- )
- )
- )
- 2: Stmt_ClassMethod(
- type: 16
- byRef: false
- name: c
- params: array(
- )
- returnType: null
- stmts: null
- )
- 3: Stmt_ClassMethod(
- type: 32
- byRef: false
- name: d
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 4: Stmt_ClassMethod(
- type: 8
- byRef: false
- name: e
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 5: Stmt_ClassMethod(
- type: 40
- byRef: false
- name: f
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 6: Stmt_ClassMethod(
- type: 0
- byRef: false
- name: g
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/interface.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/interface.test
deleted file mode 100644
index 5c782e22..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/interface.test
+++ /dev/null
@@ -1,36 +0,0 @@
-Interface
------
-<?php
-
-interface A extends C, D {
- public function a();
-}
------
-array(
- 0: Stmt_Interface(
- name: A
- extends: array(
- 0: Name(
- parts: array(
- 0: C
- )
- )
- 1: Name(
- parts: array(
- 0: D
- )
- )
- )
- stmts: array(
- 0: Stmt_ClassMethod(
- type: 1
- byRef: false
- name: a
- params: array(
- )
- returnType: null
- stmts: null
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/modifier.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/modifier.test
deleted file mode 100644
index 6e47a5b1..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/modifier.test
+++ /dev/null
@@ -1,54 +0,0 @@
-Invalid modifier combination
------
-<?php class A { public public $a; }
------
-Multiple access type modifiers are not allowed on line 1
------
-<?php class A { public protected $a; }
------
-Multiple access type modifiers are not allowed on line 1
------
-<?php class A { abstract abstract a(); }
------
-Multiple abstract modifiers are not allowed on line 1
------
-<?php class A { static static $a; }
------
-Multiple static modifiers are not allowed on line 1
------
-<?php class A { final final a() {} }
------
-Multiple final modifiers are not allowed on line 1
------
-<?php class A { abstract final a(); }
------
-Cannot use the final modifier on an abstract class member on line 1
------
-<?php abstract final class A { }
-// Type in the partial parse could conceivably be any of 0, 16 or 32
------
-Syntax error, unexpected T_FINAL, expecting T_CLASS from 1:16 to 1:20
-array(
- 0: Stmt_Class(
- type: 32
- name: A
- extends: null
- implements: array(
- )
- stmts: array(
- )
- )
- 1: Stmt_Nop(
- comments: array(
- 0: // Type in the partial parse could conceivably be any of 0, 16 or 32
- )
- )
-)
------
-<?php class A { abstract $a; }
------
-Properties cannot be declared abstract on line 1
------
-<?php class A { final $a; }
------
-Properties cannot be declared final on line 1
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/name.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/name.test
deleted file mode 100644
index 9118471d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/name.test
+++ /dev/null
@@ -1,71 +0,0 @@
-Invalid class name
------
-<?php class self {}
------
-Cannot use 'self' as class name as it is reserved on line 1
------
-<?php class PARENT {}
------
-Cannot use 'PARENT' as class name as it is reserved on line 1
------
-<?php class static {}
------
-Syntax error, unexpected T_STATIC, expecting T_STRING from 1:13 to 1:18
-array(
-)
------
-<?php class A extends self {}
------
-Cannot use 'self' as class name as it is reserved from 1:23 to 1:26
------
-<?php class A extends PARENT {}
------
-Cannot use 'PARENT' as class name as it is reserved from 1:23 to 1:28
------
-<?php class A extends static {}
------
-Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR from 1:23 to 1:28
-array(
-)
------
-<?php class A implements self {}
------
-Cannot use 'self' as interface name as it is reserved from 1:26 to 1:29
------
-<?php class A implements PARENT {}
------
-Cannot use 'PARENT' as interface name as it is reserved from 1:26 to 1:31
------
-<?php class A implements static {}
------
-Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR from 1:26 to 1:31
-array(
-)
------
-<?php interface self {}
------
-Cannot use 'self' as class name as it is reserved on line 1
------
-<?php interface PARENT {}
------
-Cannot use 'PARENT' as class name as it is reserved on line 1
------
-<?php interface static {}
------
-Syntax error, unexpected T_STATIC, expecting T_STRING from 1:17 to 1:22
-array(
-)
------
-<?php interface A extends self {}
------
-Cannot use 'self' as interface name as it is reserved from 1:27 to 1:30
------
-<?php interface A extends PARENT {}
------
-Cannot use 'PARENT' as interface name as it is reserved from 1:27 to 1:32
------
-<?php interface A extends static {}
------
-Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR from 1:27 to 1:32
-array(
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/php4Style.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/php4Style.test
deleted file mode 100644
index a2f8cb1d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/php4Style.test
+++ /dev/null
@@ -1,50 +0,0 @@
-PHP 4 style declarations
------
-<?php
-
-class A {
- var $foo;
- function bar() {}
- static abstract function baz() {}
-}
------
-array(
- 0: Stmt_Class(
- type: 0
- name: A
- extends: null
- implements: array(
- )
- stmts: array(
- 0: Stmt_Property(
- type: 0
- props: array(
- 0: Stmt_PropertyProperty(
- name: foo
- default: null
- )
- )
- )
- 1: Stmt_ClassMethod(
- type: 0
- byRef: false
- name: bar
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 2: Stmt_ClassMethod(
- type: 24
- byRef: false
- name: baz
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/simple.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/simple.test
deleted file mode 100644
index b5f3961b..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/simple.test
+++ /dev/null
@@ -1,155 +0,0 @@
-Class declaration
------
-<?php
-
-class A extends B implements C, D {
- const A = 'B', C = 'D';
-
- public $a = 'b', $c = 'd';
- protected $e;
- private $f;
-
- public function a() {}
- public static function b($a) {}
- public final function c() : B {}
- protected function d() {}
- private function e() {}
-}
------
-array(
- 0: Stmt_Class(
- type: 0
- name: A
- extends: Name(
- parts: array(
- 0: B
- )
- )
- implements: array(
- 0: Name(
- parts: array(
- 0: C
- )
- )
- 1: Name(
- parts: array(
- 0: D
- )
- )
- )
- stmts: array(
- 0: Stmt_ClassConst(
- consts: array(
- 0: Const(
- name: A
- value: Scalar_String(
- value: B
- )
- )
- 1: Const(
- name: C
- value: Scalar_String(
- value: D
- )
- )
- )
- )
- 1: Stmt_Property(
- type: 1
- props: array(
- 0: Stmt_PropertyProperty(
- name: a
- default: Scalar_String(
- value: b
- )
- )
- 1: Stmt_PropertyProperty(
- name: c
- default: Scalar_String(
- value: d
- )
- )
- )
- )
- 2: Stmt_Property(
- type: 2
- props: array(
- 0: Stmt_PropertyProperty(
- name: e
- default: null
- )
- )
- )
- 3: Stmt_Property(
- type: 4
- props: array(
- 0: Stmt_PropertyProperty(
- name: f
- default: null
- )
- )
- )
- 4: Stmt_ClassMethod(
- type: 1
- byRef: false
- name: a
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 5: Stmt_ClassMethod(
- type: 9
- byRef: false
- name: b
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: a
- default: null
- )
- )
- returnType: null
- stmts: array(
- )
- )
- 6: Stmt_ClassMethod(
- type: 33
- byRef: false
- name: c
- params: array(
- )
- returnType: Name(
- parts: array(
- 0: B
- )
- )
- stmts: array(
- )
- )
- 7: Stmt_ClassMethod(
- type: 2
- byRef: false
- name: d
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 8: Stmt_ClassMethod(
- type: 4
- byRef: false
- name: e
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/staticMethod.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/staticMethod.test
deleted file mode 100644
index 7de9e033..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/staticMethod.test
+++ /dev/null
@@ -1,25 +0,0 @@
-Some special methods cannot be static
------
-<?php class A { static function __construct() {} }
------
-Constructor __construct() cannot be static on line 1
------
-<?php class A { static function __destruct() {} }
------
-Destructor __destruct() cannot be static on line 1
------
-<?php class A { static function __clone() {} }
------
-Clone method __clone() cannot be static on line 1
------
-<?php class A { static function __CONSTRUCT() {} }
------
-Constructor __CONSTRUCT() cannot be static on line 1
------
-<?php class A { static function __Destruct() {} }
------
-Destructor __Destruct() cannot be static on line 1
------
-<?php class A { static function __cLoNe() {} }
------
-Clone method __cLoNe() cannot be static on line 1
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/trait.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/trait.test
deleted file mode 100644
index 333199e3..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/class/trait.test
+++ /dev/null
@@ -1,160 +0,0 @@
-Traits
------
-<?php
-
-trait A {
- public function a() {}
-}
-
-class B {
- use C;
- use D {
- a as protected b;
- c as d;
- e as private;
- }
- use E, F, G {
- E::a insteadof F, G;
- E::b as protected c;
- E::d as e;
- E::f as private;
- }
-}
------
-array(
- 0: Stmt_Trait(
- name: A
- stmts: array(
- 0: Stmt_ClassMethod(
- type: 1
- byRef: false
- name: a
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- )
- )
- 1: Stmt_Class(
- type: 0
- name: B
- extends: null
- implements: array(
- )
- stmts: array(
- 0: Stmt_TraitUse(
- traits: array(
- 0: Name(
- parts: array(
- 0: C
- )
- )
- )
- adaptations: array(
- )
- )
- 1: Stmt_TraitUse(
- traits: array(
- 0: Name(
- parts: array(
- 0: D
- )
- )
- )
- adaptations: array(
- 0: Stmt_TraitUseAdaptation_Alias(
- trait: null
- method: a
- newModifier: 2
- newName: b
- )
- 1: Stmt_TraitUseAdaptation_Alias(
- trait: null
- method: c
- newModifier: null
- newName: d
- )
- 2: Stmt_TraitUseAdaptation_Alias(
- trait: null
- method: e
- newModifier: 4
- newName: null
- )
- )
- )
- 2: Stmt_TraitUse(
- traits: array(
- 0: Name(
- parts: array(
- 0: E
- )
- )
- 1: Name(
- parts: array(
- 0: F
- )
- )
- 2: Name(
- parts: array(
- 0: G
- )
- )
- )
- adaptations: array(
- 0: Stmt_TraitUseAdaptation_Precedence(
- trait: Name(
- parts: array(
- 0: E
- )
- )
- method: a
- insteadof: array(
- 0: Name(
- parts: array(
- 0: F
- )
- )
- 1: Name(
- parts: array(
- 0: G
- )
- )
- )
- )
- 1: Stmt_TraitUseAdaptation_Alias(
- trait: Name(
- parts: array(
- 0: E
- )
- )
- method: b
- newModifier: 2
- newName: c
- )
- 2: Stmt_TraitUseAdaptation_Alias(
- trait: Name(
- parts: array(
- 0: E
- )
- )
- method: d
- newModifier: null
- newName: e
- )
- 3: Stmt_TraitUseAdaptation_Alias(
- trait: Name(
- parts: array(
- 0: E
- )
- )
- method: f
- newModifier: 4
- newName: null
- )
- )
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/const.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/const.test
deleted file mode 100644
index da21f416..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/const.test
+++ /dev/null
@@ -1,40 +0,0 @@
-Global constants
------
-<?php
-
-const A = 0, B = 1.0, C = 'A', D = E;
------
-array(
- 0: Stmt_Const(
- consts: array(
- 0: Const(
- name: A
- value: Scalar_LNumber(
- value: 0
- )
- )
- 1: Const(
- name: B
- value: Scalar_DNumber(
- value: 1
- )
- )
- 2: Const(
- name: C
- value: Scalar_String(
- value: A
- )
- )
- 3: Const(
- name: D
- value: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: E
- )
- )
- )
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/controlFlow.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/controlFlow.test
deleted file mode 100644
index 2de1c4f2..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/controlFlow.test
+++ /dev/null
@@ -1,55 +0,0 @@
-Control flow statements
------
-<?php
-
-break;
-break 2;
-
-continue;
-continue 2;
-
-return;
-return $a;
-
-throw $e;
-
-label:
-goto label;
------
-array(
- 0: Stmt_Break(
- num: null
- )
- 1: Stmt_Break(
- num: Scalar_LNumber(
- value: 2
- )
- )
- 2: Stmt_Continue(
- num: null
- )
- 3: Stmt_Continue(
- num: Scalar_LNumber(
- value: 2
- )
- )
- 4: Stmt_Return(
- expr: null
- )
- 5: Stmt_Return(
- expr: Expr_Variable(
- name: a
- )
- )
- 6: Stmt_Throw(
- expr: Expr_Variable(
- name: e
- )
- )
- 7: Stmt_Label(
- name: label
- )
- 8: Stmt_Goto(
- name: label
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/declare.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/declare.test
deleted file mode 100644
index 93afe67b..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/declare.test
+++ /dev/null
@@ -1,60 +0,0 @@
-Declare
------
-<?php
-
-declare (X='Y');
-
-declare (A='B', C='D') {}
-
-declare (A='B', C='D'):
-enddeclare;
------
-array(
- 0: Stmt_Declare(
- declares: array(
- 0: Stmt_DeclareDeclare(
- key: X
- value: Scalar_String(
- value: Y
- )
- )
- )
- stmts: null
- )
- 1: Stmt_Declare(
- declares: array(
- 0: Stmt_DeclareDeclare(
- key: A
- value: Scalar_String(
- value: B
- )
- )
- 1: Stmt_DeclareDeclare(
- key: C
- value: Scalar_String(
- value: D
- )
- )
- )
- stmts: array(
- )
- )
- 2: Stmt_Declare(
- declares: array(
- 0: Stmt_DeclareDeclare(
- key: A
- value: Scalar_String(
- value: B
- )
- )
- 1: Stmt_DeclareDeclare(
- key: C
- value: Scalar_String(
- value: D
- )
- )
- )
- stmts: array(
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/echo.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/echo.test
deleted file mode 100644
index 1d03eae5..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/echo.test
+++ /dev/null
@@ -1,32 +0,0 @@
-Echo
------
-<?php
-
-echo 'Hallo World!';
-echo 'Hallo', ' ', 'World', '!';
------
-array(
- 0: Stmt_Echo(
- exprs: array(
- 0: Scalar_String(
- value: Hallo World!
- )
- )
- )
- 1: Stmt_Echo(
- exprs: array(
- 0: Scalar_String(
- value: Hallo
- )
- 1: Scalar_String(
- value:
- )
- 2: Scalar_String(
- value: World
- )
- 3: Scalar_String(
- value: !
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/byRef.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/byRef.test
deleted file mode 100644
index 1c1669c1..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/byRef.test
+++ /dev/null
@@ -1,41 +0,0 @@
-Return and pass by ref
------
-<?php
-
-function a(&$b) {}
-function &a($b) {}
------
-array(
- 0: Stmt_Function(
- byRef: false
- name: a
- params: array(
- 0: Param(
- type: null
- byRef: true
- variadic: false
- name: b
- default: null
- )
- )
- returnType: null
- stmts: array(
- )
- )
- 1: Stmt_Function(
- byRef: true
- name: a
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: b
- default: null
- )
- )
- returnType: null
- stmts: array(
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/conditional.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/conditional.test
deleted file mode 100644
index d9c886ed..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/conditional.test
+++ /dev/null
@@ -1,33 +0,0 @@
-Conditional function definition
------
-<?php
-
-if (true) {
- function A() {}
-}
------
-array(
- 0: Stmt_If(
- cond: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: true
- )
- )
- )
- stmts: array(
- 0: Stmt_Function(
- byRef: false
- name: A
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- )
- elseifs: array(
- )
- else: null
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/defaultValues.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/defaultValues.test
deleted file mode 100644
index d77d4f35..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/defaultValues.test
+++ /dev/null
@@ -1,148 +0,0 @@
-Default values (static scalar tests)
------
-<?php
-
-function a(
- $b = null,
- $c = 'foo',
- $d = A::B,
- $f = +1,
- $g = -1.0,
- $h = array(),
- $i = [],
- $j = ['foo'],
- $k = ['foo', 'bar' => 'baz']
-) {}
------
-array(
- 0: Stmt_Function(
- byRef: false
- name: a
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: b
- default: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: null
- )
- )
- )
- )
- 1: Param(
- type: null
- byRef: false
- variadic: false
- name: c
- default: Scalar_String(
- value: foo
- )
- )
- 2: Param(
- type: null
- byRef: false
- variadic: false
- name: d
- default: Expr_ClassConstFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: B
- )
- )
- 3: Param(
- type: null
- byRef: false
- variadic: false
- name: f
- default: Expr_UnaryPlus(
- expr: Scalar_LNumber(
- value: 1
- )
- )
- )
- 4: Param(
- type: null
- byRef: false
- variadic: false
- name: g
- default: Expr_UnaryMinus(
- expr: Scalar_DNumber(
- value: 1
- )
- )
- )
- 5: Param(
- type: null
- byRef: false
- variadic: false
- name: h
- default: Expr_Array(
- items: array(
- )
- )
- )
- 6: Param(
- type: null
- byRef: false
- variadic: false
- name: i
- default: Expr_Array(
- items: array(
- )
- )
- )
- 7: Param(
- type: null
- byRef: false
- variadic: false
- name: j
- default: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: foo
- )
- byRef: false
- )
- )
- )
- )
- 8: Param(
- type: null
- byRef: false
- variadic: false
- name: k
- default: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Scalar_String(
- value: foo
- )
- byRef: false
- )
- 1: Expr_ArrayItem(
- key: Scalar_String(
- value: bar
- )
- value: Scalar_String(
- value: baz
- )
- byRef: false
- )
- )
- )
- )
- )
- returnType: null
- stmts: array(
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/returnTypes.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/returnTypes.test
deleted file mode 100644
index ca6c3106..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/returnTypes.test
+++ /dev/null
@@ -1,52 +0,0 @@
-Return type declarations
------
-<?php
-
-function test1() {}
-function test2() : array {}
-function test3() : callable {}
-function test4() : Foo\Bar {}
------
-array(
- 0: Stmt_Function(
- byRef: false
- name: test1
- params: array(
- )
- returnType: null
- stmts: array(
- )
- )
- 1: Stmt_Function(
- byRef: false
- name: test2
- params: array(
- )
- returnType: array
- stmts: array(
- )
- )
- 2: Stmt_Function(
- byRef: false
- name: test3
- params: array(
- )
- returnType: callable
- stmts: array(
- )
- )
- 3: Stmt_Function(
- byRef: false
- name: test4
- params: array(
- )
- returnType: Name(
- parts: array(
- 0: Foo
- 1: Bar
- )
- )
- stmts: array(
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/scalarTypeDeclarations.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/scalarTypeDeclarations.test
deleted file mode 100644
index aacaf1ca..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/scalarTypeDeclarations.test
+++ /dev/null
@@ -1,45 +0,0 @@
-Scalar type declarations
------
-<?php
-function test(bool $a, Int $b, FLOAT $c, StRiNg $d) {}
------
-!!php7
-array(
- 0: Stmt_Function(
- byRef: false
- name: test
- params: array(
- 0: Param(
- type: bool
- byRef: false
- variadic: false
- name: a
- default: null
- )
- 1: Param(
- type: int
- byRef: false
- variadic: false
- name: b
- default: null
- )
- 2: Param(
- type: float
- byRef: false
- variadic: false
- name: c
- default: null
- )
- 3: Param(
- type: string
- byRef: false
- variadic: false
- name: d
- default: null
- )
- )
- returnType: null
- stmts: array(
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/specialVars.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/specialVars.test
deleted file mode 100644
index f2f35acf..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/specialVars.test
+++ /dev/null
@@ -1,51 +0,0 @@
-Special function variables
------
-<?php
-
-function a() {
- global $a, ${'b'}, $$c;
- static $c, $d = 'e';
-}
------
-array(
- 0: Stmt_Function(
- byRef: false
- name: a
- params: array(
- )
- returnType: null
- stmts: array(
- 0: Stmt_Global(
- vars: array(
- 0: Expr_Variable(
- name: a
- )
- 1: Expr_Variable(
- name: Scalar_String(
- value: b
- )
- )
- 2: Expr_Variable(
- name: Expr_Variable(
- name: c
- )
- )
- )
- )
- 1: Stmt_Static(
- vars: array(
- 0: Stmt_StaticVar(
- name: c
- default: null
- )
- 1: Stmt_StaticVar(
- name: d
- default: Scalar_String(
- value: e
- )
- )
- )
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/typeDeclarations.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/typeDeclarations.test
deleted file mode 100644
index 53c462c5..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/typeDeclarations.test
+++ /dev/null
@@ -1,49 +0,0 @@
-Type hints
------
-<?php
-
-function a($b, array $c, callable $d, E $f) {}
------
-array(
- 0: Stmt_Function(
- byRef: false
- name: a
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: b
- default: null
- )
- 1: Param(
- type: array
- byRef: false
- variadic: false
- name: c
- default: null
- )
- 2: Param(
- type: callable
- byRef: false
- variadic: false
- name: d
- default: null
- )
- 3: Param(
- type: Name(
- parts: array(
- 0: E
- )
- )
- byRef: false
- variadic: false
- name: f
- default: null
- )
- )
- returnType: null
- stmts: array(
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/variadic.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/variadic.test
deleted file mode 100644
index f9d848c7..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/variadic.test
+++ /dev/null
@@ -1,110 +0,0 @@
-Variadic functions
------
-<?php
-function test($a, ... $b) {}
-function test($a, &... $b) {}
-function test($a, Type ... $b) {}
-function test($a, Type &... $b) {}
------
-array(
- 0: Stmt_Function(
- byRef: false
- name: test
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: a
- default: null
- )
- 1: Param(
- type: null
- byRef: false
- variadic: true
- name: b
- default: null
- )
- )
- returnType: null
- stmts: array(
- )
- )
- 1: Stmt_Function(
- byRef: false
- name: test
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: a
- default: null
- )
- 1: Param(
- type: null
- byRef: true
- variadic: true
- name: b
- default: null
- )
- )
- returnType: null
- stmts: array(
- )
- )
- 2: Stmt_Function(
- byRef: false
- name: test
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: a
- default: null
- )
- 1: Param(
- type: Name(
- parts: array(
- 0: Type
- )
- )
- byRef: false
- variadic: true
- name: b
- default: null
- )
- )
- returnType: null
- stmts: array(
- )
- )
- 3: Stmt_Function(
- byRef: false
- name: test
- params: array(
- 0: Param(
- type: null
- byRef: false
- variadic: false
- name: a
- default: null
- )
- 1: Param(
- type: Name(
- parts: array(
- 0: Type
- )
- )
- byRef: true
- variadic: true
- name: b
- default: null
- )
- )
- returnType: null
- stmts: array(
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/variadicDefaultValue.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/variadicDefaultValue.test
deleted file mode 100644
index a8a60013..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/function/variadicDefaultValue.test
+++ /dev/null
@@ -1,6 +0,0 @@
-Invalid variadic function
------
-<?php
-function foo(...$foo = []) {}
------
-Variadic parameter cannot have a default value from 2:24 to 2:25
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/basic.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/basic.test
deleted file mode 100644
index 8a184aaf..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/basic.test
+++ /dev/null
@@ -1,280 +0,0 @@
-Generators (yield expression)
------
-<?php
-
-function gen() {
- // statements
- yield;
- yield $value;
- yield $key => $value;
-
- // expressions
- $data = yield;
- $data = (yield $value);
- $data = (yield $key => $value);
-
- // yield in language constructs with their own parentheses
- if (yield $foo); elseif (yield $foo);
- if (yield $foo): elseif (yield $foo): endif;
- while (yield $foo);
- do {} while (yield $foo);
- switch (yield $foo) {}
- die(yield $foo);
-
- // yield in function calls
- func(yield $foo);
- $foo->func(yield $foo);
- new Foo(yield $foo);
-
- yield from $foo;
- yield from $foo and yield from $bar;
- yield from $foo + $bar;
-}
------
-array(
- 0: Stmt_Function(
- byRef: false
- name: gen
- params: array(
- )
- returnType: null
- stmts: array(
- 0: Expr_Yield(
- key: null
- value: null
- comments: array(
- 0: // statements
- )
- )
- 1: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: value
- )
- )
- 2: Expr_Yield(
- key: Expr_Variable(
- name: key
- )
- value: Expr_Variable(
- name: value
- )
- )
- 3: Expr_Assign(
- var: Expr_Variable(
- name: data
- comments: array(
- 0: // expressions
- )
- )
- expr: Expr_Yield(
- key: null
- value: null
- )
- comments: array(
- 0: // expressions
- )
- )
- 4: Expr_Assign(
- var: Expr_Variable(
- name: data
- )
- expr: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: value
- )
- )
- )
- 5: Expr_Assign(
- var: Expr_Variable(
- name: data
- )
- expr: Expr_Yield(
- key: Expr_Variable(
- name: key
- )
- value: Expr_Variable(
- name: value
- )
- )
- )
- 6: Stmt_If(
- cond: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- stmts: array(
- )
- elseifs: array(
- 0: Stmt_ElseIf(
- cond: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- stmts: array(
- )
- )
- )
- else: null
- comments: array(
- 0: // yield in language constructs with their own parentheses
- )
- )
- 7: Stmt_If(
- cond: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- stmts: array(
- )
- elseifs: array(
- 0: Stmt_ElseIf(
- cond: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- stmts: array(
- )
- )
- )
- else: null
- )
- 8: Stmt_While(
- cond: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- stmts: array(
- )
- )
- 9: Stmt_Do(
- cond: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- stmts: array(
- )
- )
- 10: Stmt_Switch(
- cond: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- cases: array(
- )
- )
- 11: Expr_Exit(
- expr: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- )
- 12: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: func
- )
- comments: array(
- 0: // yield in function calls
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- byRef: false
- unpack: false
- )
- )
- comments: array(
- 0: // yield in function calls
- )
- )
- 13: Expr_MethodCall(
- var: Expr_Variable(
- name: foo
- )
- name: func
- args: array(
- 0: Arg(
- value: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- byRef: false
- unpack: false
- )
- )
- )
- 14: Expr_New(
- class: Name(
- parts: array(
- 0: Foo
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Yield(
- key: null
- value: Expr_Variable(
- name: foo
- )
- )
- byRef: false
- unpack: false
- )
- )
- )
- 15: Expr_YieldFrom(
- expr: Expr_Variable(
- name: foo
- )
- )
- 16: Expr_BinaryOp_LogicalAnd(
- left: Expr_YieldFrom(
- expr: Expr_Variable(
- name: foo
- )
- )
- right: Expr_YieldFrom(
- expr: Expr_Variable(
- name: bar
- )
- )
- )
- 17: Expr_YieldFrom(
- expr: Expr_BinaryOp_Plus(
- left: Expr_Variable(
- name: foo
- )
- right: Expr_Variable(
- name: bar
- )
- )
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/yieldPrecedence.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/yieldPrecedence.test
deleted file mode 100644
index ff0d4df0..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/yieldPrecedence.test
+++ /dev/null
@@ -1,230 +0,0 @@
-Yield operator precedence
------
-<?php
-
-function gen() {
- yield "a" . "b";
- yield "a" or die;
- yield "k" => "a" . "b";
- yield "k" => "a" or die;
- var_dump([yield "k" => "a" . "b"]);
- yield yield "k1" => yield "k2" => "a" . "b";
- yield yield "k1" => (yield "k2") => "a" . "b";
- var_dump([yield "k1" => yield "k2" => "a" . "b"]);
- var_dump([yield "k1" => (yield "k2") => "a" . "b"]);
-}
------
-!!php7
-array(
- 0: Stmt_Function(
- byRef: false
- name: gen
- params: array(
- )
- returnType: null
- stmts: array(
- 0: Expr_Yield(
- key: null
- value: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: a
- )
- right: Scalar_String(
- value: b
- )
- )
- )
- 1: Expr_BinaryOp_LogicalOr(
- left: Expr_Yield(
- key: null
- value: Scalar_String(
- value: a
- )
- )
- right: Expr_Exit(
- expr: null
- )
- )
- 2: Expr_Yield(
- key: Scalar_String(
- value: k
- )
- value: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: a
- )
- right: Scalar_String(
- value: b
- )
- )
- )
- 3: Expr_BinaryOp_LogicalOr(
- left: Expr_Yield(
- key: Scalar_String(
- value: k
- )
- value: Scalar_String(
- value: a
- )
- )
- right: Expr_Exit(
- expr: null
- )
- )
- 4: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: var_dump
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Expr_Yield(
- key: Scalar_String(
- value: k
- )
- value: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: a
- )
- right: Scalar_String(
- value: b
- )
- )
- )
- byRef: false
- )
- )
- )
- byRef: false
- unpack: false
- )
- )
- )
- 5: Expr_Yield(
- key: null
- value: Expr_Yield(
- key: Scalar_String(
- value: k1
- )
- value: Expr_Yield(
- key: Scalar_String(
- value: k2
- )
- value: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: a
- )
- right: Scalar_String(
- value: b
- )
- )
- )
- )
- )
- 6: Expr_Yield(
- key: Expr_Yield(
- key: Scalar_String(
- value: k1
- )
- value: Expr_Yield(
- key: null
- value: Scalar_String(
- value: k2
- )
- )
- )
- value: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: a
- )
- right: Scalar_String(
- value: b
- )
- )
- )
- 7: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: var_dump
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: null
- value: Expr_Yield(
- key: Scalar_String(
- value: k1
- )
- value: Expr_Yield(
- key: Scalar_String(
- value: k2
- )
- value: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: a
- )
- right: Scalar_String(
- value: b
- )
- )
- )
- )
- byRef: false
- )
- )
- )
- byRef: false
- unpack: false
- )
- )
- )
- 8: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: var_dump
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Array(
- items: array(
- 0: Expr_ArrayItem(
- key: Expr_Yield(
- key: Scalar_String(
- value: k1
- )
- value: Expr_Yield(
- key: null
- value: Scalar_String(
- value: k2
- )
- )
- )
- value: Expr_BinaryOp_Concat(
- left: Scalar_String(
- value: a
- )
- right: Scalar_String(
- value: b
- )
- )
- byRef: false
- )
- )
- )
- byRef: false
- unpack: false
- )
- )
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/yieldUnaryPrecedence.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/yieldUnaryPrecedence.test
deleted file mode 100644
index 13f96602..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/generator/yieldUnaryPrecedence.test
+++ /dev/null
@@ -1,48 +0,0 @@
-Yield with unary operator argument
------
-<?php
-
-function gen() {
- yield +1;
- yield -1;
- yield * -1;
-}
------
-array(
- 0: Stmt_Function(
- byRef: false
- name: gen
- params: array(
- )
- returnType: null
- stmts: array(
- 0: Expr_Yield(
- key: null
- value: Expr_UnaryPlus(
- expr: Scalar_LNumber(
- value: 1
- )
- )
- )
- 1: Expr_Yield(
- key: null
- value: Expr_UnaryMinus(
- expr: Scalar_LNumber(
- value: 1
- )
- )
- )
- 2: Expr_BinaryOp_Mul(
- left: Expr_Yield(
- key: null
- value: null
- )
- right: Expr_UnaryMinus(
- expr: Scalar_LNumber(
- value: 1
- )
- )
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompiler.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompiler.test
deleted file mode 100644
index 67133ba7..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompiler.test
+++ /dev/null
@@ -1,55 +0,0 @@
-__halt_compiler
------
-<?php
-
-$a;
-__halt_compiler()
-?>
-Hallo World!
------
-array(
- 0: Expr_Variable(
- name: a
- )
- 1: Stmt_HaltCompiler(
- remaining: Hallo World!
- )
-)
------
-<?php
-
-$a;
-__halt_compiler();Hallo World!
------
-array(
- 0: Expr_Variable(
- name: a
- )
- 1: Stmt_HaltCompiler(
- remaining: Hallo World!
- )
-)
------
-<?php
-
-namespace A;
-$a;
-__halt_compiler();
------
-array(
- 0: Stmt_Namespace(
- name: Name(
- parts: array(
- 0: A
- )
- )
- stmts: array(
- 0: Expr_Variable(
- name: a
- )
- )
- )
- 1: Stmt_HaltCompiler(
- remaining:
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerInvalidSyntax.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerInvalidSyntax.test
deleted file mode 100644
index 597710f2..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerInvalidSyntax.test
+++ /dev/null
@@ -1,6 +0,0 @@
-Invalid __halt_compiler() syntax
------
-<?php
-__halt_compiler()
------
-__HALT_COMPILER must be followed by "();" on line 2
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerOffset.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerOffset.test
deleted file mode 100644
index 6b475485..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerOffset.test
+++ /dev/null
@@ -1,34 +0,0 @@
-Use of __HALT_COMPILER_OFFSET__ constant
------
-<?php
-
-var_dump(__HALT_COMPILER_OFFSET__);
-__halt_compiler();
-Foo
------
-array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: var_dump
- )
- )
- args: array(
- 0: Arg(
- value: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: __HALT_COMPILER_OFFSET__
- )
- )
- )
- byRef: false
- unpack: false
- )
- )
- )
- 1: Stmt_HaltCompiler(
- remaining:
- Foo
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerOutermostScope.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerOutermostScope.test
deleted file mode 100644
index 2f8a3f19..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/haltCompilerOutermostScope.test
+++ /dev/null
@@ -1,8 +0,0 @@
-__halt_compiler can only be used from outermost scope
------
-<?php
-if (true) {
- __halt_compiler();
-}
------
-__HALT_COMPILER() can only be used from the outermost scope from 3:5 to 3:19
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/hashbang.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/hashbang.test
deleted file mode 100644
index 11c45da6..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/hashbang.test
+++ /dev/null
@@ -1,26 +0,0 @@
-Hashbang line
------
-#!/usr/bin/env php
-<?php
-
-echo "foobar";
-
-?>
-#!/usr/bin/env php
------
-array(
- 0: Stmt_InlineHTML(
- value: #!/usr/bin/env php
-
- )
- 1: Stmt_Echo(
- exprs: array(
- 0: Scalar_String(
- value: foobar
- )
- )
- )
- 2: Stmt_InlineHTML(
- value: #!/usr/bin/env php
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/if.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/if.test
deleted file mode 100644
index e054c897..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/if.test
+++ /dev/null
@@ -1,103 +0,0 @@
-If/Elseif/Else
------
-<?php
-
-if ($a) {}
-elseif ($b) {}
-elseif ($c) {}
-else {}
-
-if ($a) {} // without else
-
-if ($a):
-elseif ($b):
-elseif ($c):
-else :
-endif;
-
-if ($a): endif; // without else
------
-array(
- 0: Stmt_If(
- cond: Expr_Variable(
- name: a
- )
- stmts: array(
- )
- elseifs: array(
- 0: Stmt_ElseIf(
- cond: Expr_Variable(
- name: b
- )
- stmts: array(
- )
- )
- 1: Stmt_ElseIf(
- cond: Expr_Variable(
- name: c
- )
- stmts: array(
- )
- )
- )
- else: Stmt_Else(
- stmts: array(
- )
- )
- )
- 1: Stmt_If(
- cond: Expr_Variable(
- name: a
- )
- stmts: array(
- )
- elseifs: array(
- )
- else: null
- )
- 2: Stmt_If(
- cond: Expr_Variable(
- name: a
- )
- stmts: array(
- )
- elseifs: array(
- 0: Stmt_ElseIf(
- cond: Expr_Variable(
- name: b
- )
- stmts: array(
- )
- )
- 1: Stmt_ElseIf(
- cond: Expr_Variable(
- name: c
- )
- stmts: array(
- )
- )
- )
- else: Stmt_Else(
- stmts: array(
- )
- )
- comments: array(
- 0: // without else
- )
- )
- 3: Stmt_If(
- cond: Expr_Variable(
- name: a
- )
- stmts: array(
- )
- elseifs: array(
- )
- else: null
- )
- 4: Stmt_Nop(
- comments: array(
- 0: // without else
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/inlineHTML.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/inlineHTML.test
deleted file mode 100644
index 9b1b71d8..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/inlineHTML.test
+++ /dev/null
@@ -1,27 +0,0 @@
-Inline HTML
------
-<?php
-$a;
-?>
-B
-<?php
-$c;
-?>
-<?php
-$d;
------
-array(
- 0: Expr_Variable(
- name: a
- )
- 1: Stmt_InlineHTML(
- value: B
-
- )
- 2: Expr_Variable(
- name: c
- )
- 3: Expr_Variable(
- name: d
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/do.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/do.test
deleted file mode 100644
index 2799e26f..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/do.test
+++ /dev/null
@@ -1,17 +0,0 @@
-Do loop
------
-<?php
-
-do {
-
-} while ($a);
------
-array(
- 0: Stmt_Do(
- cond: Expr_Variable(
- name: a
- )
- stmts: array(
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/for.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/for.test
deleted file mode 100644
index c942d311..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/for.test
+++ /dev/null
@@ -1,110 +0,0 @@
-For loop
------
-<?php
-
-// "classical" loop
-for ($i = 0; $i < $c; ++$i) {}
-
-// multiple expressions
-for ($a, $b; $c, $d; $e, $f) {}
-
-// infinite loop
-for (;;) {}
-
-// alternative syntax
-for (;;):
-endfor;
------
-array(
- 0: Stmt_For(
- init: array(
- 0: Expr_Assign(
- var: Expr_Variable(
- name: i
- )
- expr: Scalar_LNumber(
- value: 0
- )
- )
- )
- cond: array(
- 0: Expr_BinaryOp_Smaller(
- left: Expr_Variable(
- name: i
- )
- right: Expr_Variable(
- name: c
- )
- )
- )
- loop: array(
- 0: Expr_PreInc(
- var: Expr_Variable(
- name: i
- )
- )
- )
- stmts: array(
- )
- comments: array(
- 0: // "classical" loop
- )
- )
- 1: Stmt_For(
- init: array(
- 0: Expr_Variable(
- name: a
- )
- 1: Expr_Variable(
- name: b
- )
- )
- cond: array(
- 0: Expr_Variable(
- name: c
- )
- 1: Expr_Variable(
- name: d
- )
- )
- loop: array(
- 0: Expr_Variable(
- name: e
- )
- 1: Expr_Variable(
- name: f
- )
- )
- stmts: array(
- )
- comments: array(
- 0: // multiple expressions
- )
- )
- 2: Stmt_For(
- init: array(
- )
- cond: array(
- )
- loop: array(
- )
- stmts: array(
- )
- comments: array(
- 0: // infinite loop
- )
- )
- 3: Stmt_For(
- init: array(
- )
- cond: array(
- )
- loop: array(
- )
- stmts: array(
- )
- comments: array(
- 0: // alternative syntax
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/foreach.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/foreach.test
deleted file mode 100644
index 166b5fda..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/foreach.test
+++ /dev/null
@@ -1,148 +0,0 @@
-Foreach loop
------
-<?php
-
-// foreach on variable
-foreach ($a as $b) {}
-foreach ($a as &$b) {}
-foreach ($a as $b => $c) {}
-foreach ($a as $b => &$c) {}
-foreach ($a as list($a, $b)) {}
-foreach ($a as $a => list($b, , $c)) {}
-
-// foreach on expression
-foreach (array() as $b) {}
-
-// alternative syntax
-foreach ($a as $b):
-endforeach;
------
-array(
- 0: Stmt_Foreach(
- expr: Expr_Variable(
- name: a
- )
- keyVar: null
- byRef: false
- valueVar: Expr_Variable(
- name: b
- )
- stmts: array(
- )
- comments: array(
- 0: // foreach on variable
- )
- )
- 1: Stmt_Foreach(
- expr: Expr_Variable(
- name: a
- )
- keyVar: null
- byRef: true
- valueVar: Expr_Variable(
- name: b
- )
- stmts: array(
- )
- )
- 2: Stmt_Foreach(
- expr: Expr_Variable(
- name: a
- )
- keyVar: Expr_Variable(
- name: b
- )
- byRef: false
- valueVar: Expr_Variable(
- name: c
- )
- stmts: array(
- )
- )
- 3: Stmt_Foreach(
- expr: Expr_Variable(
- name: a
- )
- keyVar: Expr_Variable(
- name: b
- )
- byRef: true
- valueVar: Expr_Variable(
- name: c
- )
- stmts: array(
- )
- )
- 4: Stmt_Foreach(
- expr: Expr_Variable(
- name: a
- )
- keyVar: null
- byRef: false
- valueVar: Expr_List(
- vars: array(
- 0: Expr_Variable(
- name: a
- )
- 1: Expr_Variable(
- name: b
- )
- )
- )
- stmts: array(
- )
- )
- 5: Stmt_Foreach(
- expr: Expr_Variable(
- name: a
- )
- keyVar: Expr_Variable(
- name: a
- )
- byRef: false
- valueVar: Expr_List(
- vars: array(
- 0: Expr_Variable(
- name: b
- )
- 1: null
- 2: Expr_Variable(
- name: c
- )
- )
- )
- stmts: array(
- )
- )
- 6: Stmt_Foreach(
- expr: Expr_Array(
- items: array(
- )
- )
- keyVar: null
- byRef: false
- valueVar: Expr_Variable(
- name: b
- )
- stmts: array(
- )
- comments: array(
- 0: // foreach on expression
- )
- )
- 7: Stmt_Foreach(
- expr: Expr_Variable(
- name: a
- )
- keyVar: null
- byRef: false
- valueVar: Expr_Variable(
- name: b
- )
- stmts: array(
- )
- comments: array(
- 0: // alternative syntax
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/while.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/while.test
deleted file mode 100644
index 65f6b233..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/loop/while.test
+++ /dev/null
@@ -1,25 +0,0 @@
-While loop
------
-<?php
-
-while ($a) {}
-
-while ($a):
-endwhile;
------
-array(
- 0: Stmt_While(
- cond: Expr_Variable(
- name: a
- )
- stmts: array(
- )
- )
- 1: Stmt_While(
- cond: Expr_Variable(
- name: a
- )
- stmts: array(
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/alias.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/alias.test
deleted file mode 100644
index 1a1b623d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/alias.test
+++ /dev/null
@@ -1,168 +0,0 @@
-Aliases (use)
------
-<?php
-
-use A\B;
-use C\D as E;
-use F\G as H, J;
-
-// evil alias notation - Do Not Use!
-use \A;
-use \A as B;
-
-// function and constant aliases
-use function foo\bar;
-use function foo\bar as baz;
-use const foo\BAR;
-use const foo\BAR as BAZ;
------
-array(
- 0: Stmt_Use(
- type: 1
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: A
- 1: B
- )
- )
- alias: B
- )
- )
- )
- 1: Stmt_Use(
- type: 1
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: C
- 1: D
- )
- )
- alias: E
- )
- )
- )
- 2: Stmt_Use(
- type: 1
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: F
- 1: G
- )
- )
- alias: H
- )
- 1: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: J
- )
- )
- alias: J
- )
- )
- )
- 3: Stmt_Use(
- type: 1
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: A
- )
- )
- alias: A
- )
- )
- comments: array(
- 0: // evil alias notation - Do Not Use!
- )
- )
- 4: Stmt_Use(
- type: 1
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: A
- )
- )
- alias: B
- )
- )
- )
- 5: Stmt_Use(
- type: 2
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: foo
- 1: bar
- )
- )
- alias: bar
- )
- )
- comments: array(
- 0: // function and constant aliases
- )
- )
- 6: Stmt_Use(
- type: 2
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: foo
- 1: bar
- )
- )
- alias: baz
- )
- )
- )
- 7: Stmt_Use(
- type: 3
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: foo
- 1: BAR
- )
- )
- alias: BAR
- )
- )
- )
- 8: Stmt_Use(
- type: 3
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: foo
- 1: BAR
- )
- )
- alias: BAZ
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/braced.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/braced.test
deleted file mode 100644
index 1fefc1d3..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/braced.test
+++ /dev/null
@@ -1,42 +0,0 @@
-Braced namespaces
------
-<?php
-
-namespace Foo\Bar {
- foo;
-}
-namespace {
- bar;
-}
------
-array(
- 0: Stmt_Namespace(
- name: Name(
- parts: array(
- 0: Foo
- 1: Bar
- )
- )
- stmts: array(
- 0: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: foo
- )
- )
- )
- )
- )
- 1: Stmt_Namespace(
- name: null
- stmts: array(
- 0: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: bar
- )
- )
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUse.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUse.test
deleted file mode 100644
index 58834de1..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUse.test
+++ /dev/null
@@ -1,188 +0,0 @@
-Group use declarations
------
-<?php
-use A\{B};
-use A\{B\C, D};
-use \A\B\{C\D, E};
-use function A\{b\c, d};
-use const \A\{B\C, D};
-use A\B\{C\D, function b\c, const D};
------
-array(
- 0: Stmt_GroupUse(
- type: 0
- prefix: Name(
- parts: array(
- 0: A
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: 1
- name: Name(
- parts: array(
- 0: B
- )
- )
- alias: B
- )
- )
- )
- 1: Stmt_GroupUse(
- type: 0
- prefix: Name(
- parts: array(
- 0: A
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: 1
- name: Name(
- parts: array(
- 0: B
- 1: C
- )
- )
- alias: C
- )
- 1: Stmt_UseUse(
- type: 1
- name: Name(
- parts: array(
- 0: D
- )
- )
- alias: D
- )
- )
- )
- 2: Stmt_GroupUse(
- type: 0
- prefix: Name(
- parts: array(
- 0: A
- 1: B
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: 1
- name: Name(
- parts: array(
- 0: C
- 1: D
- )
- )
- alias: D
- )
- 1: Stmt_UseUse(
- type: 1
- name: Name(
- parts: array(
- 0: E
- )
- )
- alias: E
- )
- )
- )
- 3: Stmt_GroupUse(
- type: 2
- prefix: Name(
- parts: array(
- 0: A
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: b
- 1: c
- )
- )
- alias: c
- )
- 1: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: d
- )
- )
- alias: d
- )
- )
- )
- 4: Stmt_GroupUse(
- type: 3
- prefix: Name(
- parts: array(
- 0: A
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: B
- 1: C
- )
- )
- alias: C
- )
- 1: Stmt_UseUse(
- type: 0
- name: Name(
- parts: array(
- 0: D
- )
- )
- alias: D
- )
- )
- )
- 5: Stmt_GroupUse(
- type: 0
- prefix: Name(
- parts: array(
- 0: A
- 1: B
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: 1
- name: Name(
- parts: array(
- 0: C
- 1: D
- )
- )
- alias: D
- )
- 1: Stmt_UseUse(
- type: 2
- name: Name(
- parts: array(
- 0: b
- 1: c
- )
- )
- alias: c
- )
- 2: Stmt_UseUse(
- type: 3
- name: Name(
- parts: array(
- 0: D
- )
- )
- alias: D
- )
- )
- )
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUseErrors.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUseErrors.test
deleted file mode 100644
index 167046ba..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUseErrors.test
+++ /dev/null
@@ -1,45 +0,0 @@
-Invalid group use syntax
------
-<?php
-// Missing semicolon
-use Foo\{Bar}
-use Bar\{Foo};
------
-Syntax error, unexpected T_USE, expecting ';' from 4:1 to 4:3
-array(
- 0: Stmt_GroupUse(
- type: 0
- prefix: Name(
- parts: array(
- 0: Bar
- )
- )
- uses: array(
- 0: Stmt_UseUse(
- type: 1
- name: Name(
- parts: array(
- 0: Foo
- )
- )
- alias: Foo
- )
- )
- )
-)
------
-<?php
-// Missing NS separator
-use Foo {Bar, Baz};
------
-Syntax error, unexpected '{', expecting ',' or ';' from 3:9 to 3:9
-array(
-)
------
-<?php
-// Extra NS separator
-use Foo\{\Bar};
------
-Syntax error, unexpected T_NS_SEPARATOR, expecting T_STRING or T_FUNCTION or T_CONST from 3:10 to 3:10
-array(
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/invalidName.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/invalidName.test
deleted file mode 100644
index 144e2756..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/invalidName.test
+++ /dev/null
@@ -1,29 +0,0 @@
-Invalid namespace names
------
-<?php namespace self;
------
-Cannot use 'self' as namespace name from 1:17 to 1:20
------
-<?php namespace PARENT;
------
-Cannot use 'PARENT' as namespace name from 1:17 to 1:22
------
-<?php namespace static;
------
-Syntax error, unexpected T_STATIC, expecting T_STRING or T_NS_SEPARATOR or '{' from 1:17 to 1:22
-array(
-)
------
-<?php use A as self;
------
-Cannot use A as self because 'self' is a special class name on line 1
------
-<?php use B as PARENT;
------
-Cannot use B as PARENT because 'PARENT' is a special class name on line 1
------
-<?php use C as static;
------
-Syntax error, unexpected T_STATIC, expecting T_STRING from 1:16 to 1:21
-array(
-)
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/mix.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/mix.test
deleted file mode 100644
index 77d65c41..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/mix.test
+++ /dev/null
@@ -1,13 +0,0 @@
-Namespace types cannot be mixed
------
-<?php
-namespace A;
-namespace B {}
------
-Cannot mix bracketed namespace declarations with unbracketed namespace declarations on line 3
------
-<?php
-namespace A {}
-namespace B;
------
-Cannot mix bracketed namespace declarations with unbracketed namespace declarations on line 3 \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/name.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/name.test
deleted file mode 100644
index 922d26cb..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/name.test
+++ /dev/null
@@ -1,42 +0,0 @@
-Different name types
------
-<?php
-
-A;
-A\B;
-\A\B;
-namespace\A\B;
------
-array(
- 0: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: A
- )
- )
- )
- 1: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: A
- 1: B
- )
- )
- )
- 2: Expr_ConstFetch(
- name: Name_FullyQualified(
- parts: array(
- 0: A
- 1: B
- )
- )
- )
- 3: Expr_ConstFetch(
- name: Name_Relative(
- parts: array(
- 0: A
- 1: B
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test
deleted file mode 100644
index 69576a5a..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test
+++ /dev/null
@@ -1,10 +0,0 @@
-Nested namespaces are not allowed
------
-<?php
-namespace A {
- namespace B {
-
- }
-}
------
-Namespace declarations cannot be nested from 3:5 to 5:5
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/notBraced.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/notBraced.test
deleted file mode 100644
index d4d1017b..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/notBraced.test
+++ /dev/null
@@ -1,45 +0,0 @@
-Semicolon style namespaces
------
-<?php
-
-namespace Foo\Bar;
-foo;
-
-namespace Bar;
-bar;
------
-array(
- 0: Stmt_Namespace(
- name: Name(
- parts: array(
- 0: Foo
- 1: Bar
- )
- )
- stmts: array(
- 0: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: foo
- )
- )
- )
- )
- )
- 1: Stmt_Namespace(
- name: Name(
- parts: array(
- 0: Bar
- )
- )
- stmts: array(
- 0: Expr_ConstFetch(
- name: Name(
- parts: array(
- 0: bar
- )
- )
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nsAfterHashbang.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nsAfterHashbang.test
deleted file mode 100644
index 6d452538..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nsAfterHashbang.test
+++ /dev/null
@@ -1,22 +0,0 @@
-Hashbang followed by namespace declaration
------
-#!/usr/bin/env php
-<?php
-
-namespace A;
------
-array(
- 0: Stmt_InlineHTML(
- value: #!/usr/bin/env php
-
- )
- 1: Stmt_Namespace(
- name: Name(
- parts: array(
- 0: A
- )
- )
- stmts: array(
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/outsideStmt.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/outsideStmt.test
deleted file mode 100644
index 198daa48..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/outsideStmt.test
+++ /dev/null
@@ -1,58 +0,0 @@
-Some statements may occur outside of namespaces
------
-<?php
-declare(A='B');
-namespace B {
-
-}
-__halt_compiler()
-?>
-Hi!
------
-array(
- 0: Stmt_Declare(
- declares: array(
- 0: Stmt_DeclareDeclare(
- key: A
- value: Scalar_String(
- value: B
- )
- )
- )
- stmts: null
- )
- 1: Stmt_Namespace(
- name: Name(
- parts: array(
- 0: B
- )
- )
- stmts: array(
- )
- )
- 2: Stmt_HaltCompiler(
- remaining: Hi!
- )
-)
------
-<?php
-/* Comment */
-;
-namespace Foo;
------
-array(
- 0: Stmt_Nop(
- comments: array(
- 0: /* Comment */
- )
- )
- 1: Stmt_Namespace(
- name: Name(
- parts: array(
- 0: Foo
- )
- )
- stmts: array(
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/outsideStmtInvalid.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/outsideStmtInvalid.test
deleted file mode 100644
index 52e88432..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/namespace/outsideStmtInvalid.test
+++ /dev/null
@@ -1,20 +0,0 @@
-There (mostly) can't be statements outside of namespaces
------
-<?php
-echo 1;
-namespace A;
------
-Namespace declaration statement has to be the very first statement in the script on line 3
------
-<?php
-namespace A {}
-echo 1;
------
-No code may exist outside of namespace {} on line 3
------
-<?php
-namespace A {}
-declare(ticks=1);
-namespace B {}
------
-No code may exist outside of namespace {} on line 3 \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/switch.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/switch.test
deleted file mode 100644
index 4e094013..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/switch.test
+++ /dev/null
@@ -1,73 +0,0 @@
-Switch
------
-<?php
-
-switch ($a) {
- case 0:
- case 1;
- default:
-}
-
-// alternative syntax
-switch ($a):
-endswitch;
-
-// leading semicolon
-switch ($a) { ; }
-switch ($a): ; endswitch;
------
-array(
- 0: Stmt_Switch(
- cond: Expr_Variable(
- name: a
- )
- cases: array(
- 0: Stmt_Case(
- cond: Scalar_LNumber(
- value: 0
- )
- stmts: array(
- )
- )
- 1: Stmt_Case(
- cond: Scalar_LNumber(
- value: 1
- )
- stmts: array(
- )
- )
- 2: Stmt_Case(
- cond: null
- stmts: array(
- )
- )
- )
- )
- 1: Stmt_Switch(
- cond: Expr_Variable(
- name: a
- )
- cases: array(
- )
- comments: array(
- 0: // alternative syntax
- )
- )
- 2: Stmt_Switch(
- cond: Expr_Variable(
- name: a
- )
- cases: array(
- )
- comments: array(
- 0: // leading semicolon
- )
- )
- 3: Stmt_Switch(
- cond: Expr_Variable(
- name: a
- )
- cases: array(
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/tryCatch.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/tryCatch.test
deleted file mode 100644
index 5945414b..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/tryCatch.test
+++ /dev/null
@@ -1,120 +0,0 @@
-Try/catch
------
-<?php
-
-try {
- doTry();
-} catch (A $b) {
- doCatchA();
-} catch (B $c) {
- doCatchB();
-} finally {
- doFinally();
-}
-
-// no finally
-try { }
-catch (A $b) { }
-
-// no catch
-try { }
-finally { }
-
------
-array(
- 0: Stmt_TryCatch(
- stmts: array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: doTry
- )
- )
- args: array(
- )
- )
- )
- catches: array(
- 0: Stmt_Catch(
- type: Name(
- parts: array(
- 0: A
- )
- )
- var: b
- stmts: array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: doCatchA
- )
- )
- args: array(
- )
- )
- )
- )
- 1: Stmt_Catch(
- type: Name(
- parts: array(
- 0: B
- )
- )
- var: c
- stmts: array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: doCatchB
- )
- )
- args: array(
- )
- )
- )
- )
- )
- finallyStmts: array(
- 0: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: doFinally
- )
- )
- args: array(
- )
- )
- )
- )
- 1: Stmt_TryCatch(
- stmts: array(
- )
- catches: array(
- 0: Stmt_Catch(
- type: Name(
- parts: array(
- 0: A
- )
- )
- var: b
- stmts: array(
- )
- )
- )
- finallyStmts: null
- comments: array(
- 0: // no finally
- )
- )
- 2: Stmt_TryCatch(
- stmts: array(
- )
- catches: array(
- )
- finallyStmts: array(
- )
- comments: array(
- 0: // no catch
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/tryWithoutCatch.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/tryWithoutCatch.test
deleted file mode 100644
index 0d91ce27..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/tryWithoutCatch.test
+++ /dev/null
@@ -1,7 +0,0 @@
-Cannot use try without catch or finally
------
-<?php
-
-try { }
------
-Cannot use try without catch or finally on line 3 \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/unset.test b/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/unset.test
deleted file mode 100644
index c69679ef..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/parser/stmt/unset.test
+++ /dev/null
@@ -1,26 +0,0 @@
-Unset
------
-<?php
-
-unset($a);
-unset($b, $c);
------
-array(
- 0: Stmt_Unset(
- vars: array(
- 0: Expr_Variable(
- name: a
- )
- )
- )
- 1: Stmt_Unset(
- vars: array(
- 0: Expr_Variable(
- name: b
- )
- 1: Expr_Variable(
- name: c
- )
- )
- )
-) \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/comments.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/comments.test
deleted file mode 100644
index 34a9f93d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/comments.test
+++ /dev/null
@@ -1,67 +0,0 @@
-Comments
------
-<?php
-
-function justForIndentation()
-{
- // Some text
- # Some text
- /* Some text */
- /** Some text */
- /**
- * Some text.
- * Some more text.
- */
- /*
- * Some text.
- * Some more text.
- */
- /*
- Some text.
- Some more text.
- */
- /* Some text.
- More text. */
- /* Some text.
- More text.
- Even more text. */
- $foo;
-}
------
-function justForIndentation()
-{
- // Some text
- # Some text
- /* Some text */
- /** Some text */
- /**
- * Some text.
- * Some more text.
- */
- /*
- * Some text.
- * Some more text.
- */
- /*
- Some text.
- Some more text.
- */
- /* Some text.
- More text. */
- /* Some text.
- More text.
- Even more text. */
- $foo;
-}
------
-<?php
-
-function test()
-{
- // empty
-}
------
-function test()
-{
- // empty
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/anonymousClass.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/anonymousClass.test
deleted file mode 100644
index 1f245171..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/anonymousClass.test
+++ /dev/null
@@ -1,27 +0,0 @@
-Anonymous classes
------
-<?php
-
-new class {};
-new class extends A implements B, C {};
-new class($a) extends A {
- private $a;
- public function __construct($a) {
- $this->a = $a;
- }
-};
------
-new class
-{
-};
-new class extends A implements B, C
-{
-};
-new class($a) extends A
-{
- private $a;
- public function __construct($a)
- {
- $this->a = $a;
- }
-};
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/call.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/call.test
deleted file mode 100644
index 0ec8925c..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/call.test
+++ /dev/null
@@ -1,13 +0,0 @@
-Calls
------
-<?php
-
-f($a);
-f(&$a);
-f(...$a);
-f($a, &$b, ...$c);
------
-f($a);
-f(&$a);
-f(...$a);
-f($a, &$b, ...$c); \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test
deleted file mode 100644
index 7e4fcfd0..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test
+++ /dev/null
@@ -1,18 +0,0 @@
-Closures
------
-<?php
-
-$closureWithArgs = function ($arg1, $arg2) {
- $comment = 'closure body';
-};
-
-$closureWithArgsAndVars = function ($arg1, $arg2) use($var1, $var2) {
- $comment = 'closure body';
-};
------
-$closureWithArgs = function ($arg1, $arg2) {
- $comment = 'closure body';
-};
-$closureWithArgsAndVars = function ($arg1, $arg2) use($var1, $var2) {
- $comment = 'closure body';
-}; \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/constant_deref.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/constant_deref.test
deleted file mode 100644
index 1371d422..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/constant_deref.test
+++ /dev/null
@@ -1,13 +0,0 @@
-Constant/literal dereferencing
------
-<?php
-
-FOO[0];
-FOO::BAR[0];
-'FOO'[0];
-array(FOO)[0];
------
-FOO[0];
-FOO::BAR[0];
-'FOO'[0];
-array(FOO)[0];
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/docStrings.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/docStrings.test
deleted file mode 100644
index a4a60ace..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/docStrings.test
+++ /dev/null
@@ -1,86 +0,0 @@
-Literals
------
-<?php
-
-<<<'STR'
-STR;
-<<<STR
-STR;
-
-<<<'STR'
-A
-B
-STR;
-<<<STR
-A
-B
-STR;
-
-<<<'STR'
-a\nb$c
-STR;
-<<<STR
-a\\nb\$c
-STR;
-
-<<<STR
-a$b
-{$c->d}
-STR;
-
-call(
- <<<STR
-A
-STR
- , <<<STR
-B
-STR
-);
-
-function test() {
- <<<STR
-Foo
-STR;
- <<<STR
- Bar
-STR;
-}
------
-<<<'STR'
-STR;
-<<<STR
-STR;
-<<<'STR'
-A
-B
-STR;
-<<<STR
-A
-B
-STR;
-<<<'STR'
-a\nb$c
-STR;
-<<<STR
-a\\nb\$c
-STR;
-<<<STR
-a{$b}
-{$c->d}
-STR;
-call(<<<STR
-A
-STR
-, <<<STR
-B
-STR
-);
-function test()
-{
- <<<STR
-Foo
-STR;
- <<<STR
- Bar
-STR;
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/include.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/include.test
deleted file mode 100644
index 3c407798..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/include.test
+++ /dev/null
@@ -1,7 +0,0 @@
-Include
------
-<?php
-
-(include $foo) && (include $bar);
------
-(include $foo) && (include $bar); \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/intrinsics.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/intrinsics.test
deleted file mode 100644
index f1a1adcd..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/intrinsics.test
+++ /dev/null
@@ -1,29 +0,0 @@
-isset, empty, unset, exit, die, clone, eval
------
-<?php
-
-isset($a, $a[$b]);
-empty($a);
-empty('foo');
-unset($a, $a[$b]);
-exit;
-exit();
-exit(1);
-die;
-die();
-die('foo');
-clone $foo;
-eval('str');
------
-isset($a, $a[$b]);
-empty($a);
-empty('foo');
-unset($a, $a[$b]);
-exit;
-exit;
-exit(1);
-die;
-die;
-die('foo');
-clone $foo;
-eval('str'); \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/list.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/list.test
deleted file mode 100644
index 608ced6a..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/list.test
+++ /dev/null
@@ -1,19 +0,0 @@
-list()
------
-<?php
-
-list() = $a;
-list($a) = $b;
-list($a, $b, $c) = $d;
-list(, $a) = $b;
-list(, , $a, , $b) = $c;
-list(list($a)) = $b;
-list(, list(, list(, $a), $b)) = $c;
------
-list() = $a;
-list($a) = $b;
-list($a, $b, $c) = $d;
-list(, $a) = $b;
-list(, , $a, , $b) = $c;
-list(list($a)) = $b;
-list(, list(, list(, $a), $b)) = $c;
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/literals.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/literals.test
deleted file mode 100644
index ffa139cd..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/literals.test
+++ /dev/null
@@ -1,154 +0,0 @@
-Literals
------
-<?php
-
-// magic constants
-__LINE__;
-__FILE__;
-__DIR__;
-__FUNCTION__;
-__CLASS__;
-__TRAIT__;
-__METHOD__;
-__NAMESPACE__;
-
-// not actually literals, but close
-null;
-true;
-false;
-NULL;
-TRUE;
-FALSE;
-
-// integers (normalized to decimal)
-0;
-11;
-011;
-0x11;
-0b11;
-
-// floats (normalized to ... something)
-0.;
-.0;
-0.0;
-0e1000;
-1.0;
-1e100;
-1e1000;
-1E-100;
-1000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
-378282246310005.0;
-10000000000000002.0;
-
-// strings (single quoted)
-'a';
-'a
-b';
-"a";
-"a\nb";
-'a\'b';
-
-// strings (double quoted)
-"a'b";
-"a\b";
-"$a";
-"a$b";
-"$a$b";
-"$a $b";
-"a${b}c";
-"a{$b}c";
-"a$a[b]c";
-"\{$A}";
-"\{ $A }";
-"\\{$A}";
-"\\{ $A }";
-"{$$A}[B]";
-"$$A[B]";
-
-// make sure indentation doesn't mess anything up
-function foo()
-{
- "a\nb";
- 'a
-b';
- 'a
- b';
-}
-
-// shell exec (similar to double quoted string)
-`foo`;
-`foo$a`;
-`foo{$a}bar`;
-`\`\'\"`;
------
-// magic constants
-__LINE__;
-__FILE__;
-__DIR__;
-__FUNCTION__;
-__CLASS__;
-__TRAIT__;
-__METHOD__;
-__NAMESPACE__;
-// not actually literals, but close
-null;
-true;
-false;
-NULL;
-TRUE;
-FALSE;
-// integers (normalized to decimal)
-0;
-11;
-011;
-0x11;
-0b11;
-// floats (normalized to ... something)
-0.0;
-0.0;
-0.0;
-0.0;
-1.0;
-1.0E+100;
-INF;
-1.0E-100;
-1.0E+84;
-378282246310005.0;
-10000000000000002.0;
-// strings (single quoted)
-'a';
-'a
-b';
-"a";
-"a\nb";
-'a\'b';
-// strings (double quoted)
-"a'b";
-"a\\b";
-"{$a}";
-"a{$b}";
-"{$a}{$b}";
-"{$a} {$b}";
-"a{$b}c";
-"a{$b}c";
-"a{$a['b']}c";
-"\\{{$A}}";
-"\\{ {$A} }";
-"\\{$A}";
-"\\{ {$A} }";
-"{${$A}}[B]";
-"\${$A['B']}";
-// make sure indentation doesn't mess anything up
-function foo()
-{
- "a\nb";
- 'a
-b';
- 'a
- b';
-}
-// shell exec (similar to double quoted string)
-`foo`;
-`foo{$a}`;
-`foo{$a}bar`;
-`\`\\'\\"`; \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/numbers.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/numbers.test
deleted file mode 100644
index 292919b1..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/numbers.test
+++ /dev/null
@@ -1,35 +0,0 @@
-Number literals
------
-<?php
-
-0;
-+0;
--0;
-0.0;
--0.0;
-42;
--42;
-42.0;
--42.0;
-42.5;
--42.5;
-1e42;
--1e42;
-1e1000;
--1e1000;
------
-0;
-+0;
--0;
-0.0;
--0.0;
-42;
--42;
-42.0;
--42.0;
-42.5;
--42.5;
-1.0E+42;
--1.0E+42;
-INF;
--INF; \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/operators.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/operators.test
deleted file mode 100644
index 72b68418..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/operators.test
+++ /dev/null
@@ -1,144 +0,0 @@
-Basic operators
------
-<?php
-
-$a ** $b;
-
-++$a;
---$a;
-$a++;
-$a--;
-
-@$a;
-~$a;
--$a;
-+$a;
-
-(int) $a;
-(integer) $a;
-(float) $a;
-(double) $a;
-(real) $a;
-(string) $a;
-(binary) $a;
-(array) $a;
-(object) $a;
-(bool) $a;
-(boolean) $a;
-(unset) $a;
-
-$a * $b;
-$a / $b;
-$a % $b;
-$a + $b;
-$a - $b;
-$a . $b;
-$a << $b;
-$a >> $b;
-$a < $b;
-$a <= $b;
-$a > $b;
-$a >= $b;
-$a == $b;
-$a != $b;
-$a <> $b;
-$a === $b;
-$a !== $b;
-$a <=> $b;
-$a & $b;
-$a ^ $b;
-$a | $b;
-$a && $b;
-$a || $b;
-$a ? $b : $c;
-$a ?: $c;
-$a ?? $c;
-
-$a = $b;
-$a **= $b;
-$a *= $b;
-$a /= $b;
-$a %= $b;
-$a += $b;
-$a -= $b;
-$a .= $b;
-$a <<= $b;
-$a >>= $b;
-$a &= $b;
-$a ^= $b;
-$a |= $b;
-$a =& $b;
-
-$a and $b;
-$a xor $b;
-$a or $b;
-
-$a instanceof Foo;
-$a instanceof $b;
------
-$a ** $b;
-++$a;
---$a;
-$a++;
-$a--;
-@$a;
-~$a;
--$a;
-+$a;
-(int) $a;
-(int) $a;
-(double) $a;
-(double) $a;
-(double) $a;
-(string) $a;
-(string) $a;
-(array) $a;
-(object) $a;
-(bool) $a;
-(bool) $a;
-(unset) $a;
-$a * $b;
-$a / $b;
-$a % $b;
-$a + $b;
-$a - $b;
-$a . $b;
-$a << $b;
-$a >> $b;
-$a < $b;
-$a <= $b;
-$a > $b;
-$a >= $b;
-$a == $b;
-$a != $b;
-$a != $b;
-$a === $b;
-$a !== $b;
-$a <=> $b;
-$a & $b;
-$a ^ $b;
-$a | $b;
-$a && $b;
-$a || $b;
-$a ? $b : $c;
-$a ?: $c;
-$a ?? $c;
-$a = $b;
-$a **= $b;
-$a *= $b;
-$a /= $b;
-$a %= $b;
-$a += $b;
-$a -= $b;
-$a .= $b;
-$a <<= $b;
-$a >>= $b;
-$a &= $b;
-$a ^= $b;
-$a |= $b;
-$a =& $b;
-$a and $b;
-$a xor $b;
-$a or $b;
-$a instanceof Foo;
-$a instanceof $b;
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/parentheses.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/parentheses.test
deleted file mode 100644
index 1f18b659..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/parentheses.test
+++ /dev/null
@@ -1,77 +0,0 @@
-Pretty printer generates least-parentheses output
------
-<?php
-
-echo 'abc' . 'cde' . 'fgh';
-echo 'abc' . ('cde' . 'fgh');
-
-echo 'abc' . 1 + 2 . 'fgh';
-echo 'abc' . (1 + 2) . 'fgh';
-
-echo 1 * 2 + 3 / 4 % 5 . 6;
-echo 1 * (2 + 3) / (4 % (5 . 6));
-
-$a = $b = $c = $d = $f && true;
-($a = $b = $c = $d = $f) && true;
-$a = $b = $c = $d = $f and true;
-$a = $b = $c = $d = ($f and true);
-
-$a ? $b : $c ? $d : $e ? $f : $g;
-$a ? $b : ($c ? $d : ($e ? $f : $g));
-$a ? $b ? $c : $d : $f;
-
-$a ?? $b ?? $c;
-($a ?? $b) ?? $c;
-$a ?? ($b ? $c : $d);
-$a || ($b ?? $c);
-
-(1 > 0) > (1 < 0);
-++$a + $b;
-$a + $b++;
-
-$a ** $b ** $c;
-($a ** $b) ** $c;
--1 ** 2;
-
-yield from $a and yield from $b;
-yield from ($a and yield from $b);
-
-print ($a and print $b);
-
-// The following will currently add unnecessary parentheses, because the pretty printer is not aware that assignment
-// and incdec only work on variables.
-!$a = $b;
-++$a ** $b;
-$a ** $b++;
------
-echo 'abc' . 'cde' . 'fgh';
-echo 'abc' . ('cde' . 'fgh');
-echo 'abc' . 1 + 2 . 'fgh';
-echo 'abc' . (1 + 2) . 'fgh';
-echo 1 * 2 + 3 / 4 % 5 . 6;
-echo 1 * (2 + 3) / (4 % (5 . 6));
-$a = $b = $c = $d = $f && true;
-($a = $b = $c = $d = $f) && true;
-$a = $b = $c = $d = $f and true;
-$a = $b = $c = $d = ($f and true);
-$a ? $b : $c ? $d : $e ? $f : $g;
-$a ? $b : ($c ? $d : ($e ? $f : $g));
-$a ? $b ? $c : $d : $f;
-$a ?? $b ?? $c;
-($a ?? $b) ?? $c;
-$a ?? ($b ? $c : $d);
-$a || ($b ?? $c);
-(1 > 0) > (1 < 0);
-++$a + $b;
-$a + $b++;
-$a ** $b ** $c;
-($a ** $b) ** $c;
--1 ** 2;
-yield from $a and yield from $b;
-yield from ($a and yield from $b);
-print ($a and print $b);
-// The following will currently add unnecessary parentheses, because the pretty printer is not aware that assignment
-// and incdec only work on variables.
-!($a = $b);
-(++$a) ** $b;
-$a ** ($b++);
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/shortArraySyntax.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/shortArraySyntax.test
deleted file mode 100644
index 082c2e04..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/shortArraySyntax.test
+++ /dev/null
@@ -1,11 +0,0 @@
-Short array syntax
------
-<?php
-
-[];
-array(1, 2, 3);
-['a' => 'b', 'c' => 'd'];
------
-[];
-array(1, 2, 3);
-['a' => 'b', 'c' => 'd']; \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/uvs.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/uvs.test
deleted file mode 100644
index e336fb57..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/uvs.test
+++ /dev/null
@@ -1,23 +0,0 @@
-Uniform variable syntax
------
-<?php
-
-(function() {})();
-array('a', 'b')()();
-A::$b::$c;
-$A::$b[$c]();
-$A::{$b[$c]}();
-A::$$b[$c]();
-($a->b)();
-(A::$b)();
------
-!!php7
-(function () {
-})();
-array('a', 'b')()();
-A::$b::$c;
-$A::$b[$c]();
-$A::{$b[$c]}();
-A::${$b}[$c]();
-($a->b)();
-(A::$b)();
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/variables.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/variables.test
deleted file mode 100644
index 4e0fa2e1..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/variables.test
+++ /dev/null
@@ -1,73 +0,0 @@
-Variables
------
-<?php
-
-$a;
-$$a;
-${$a};
-$a->b;
-$a->b();
-$a->b($c);
-$a->$b();
-$a->{$b}();
-$a->$b[$c]();
-$$a->b;
-$a[$b];
-$a[$b]();
-$$a[$b];
-$a::B;
-$a::$b;
-$a::b();
-$a::b($c);
-$a::$b();
-$a::$b[$c];
-$a::$b[$c]($d);
-$a::{$b[$c]}($d);
-$a::{$b->c}();
-A::$$b[$c]();
-a();
-$a();
-$a()[$b];
-$a->b()[$c];
-$a::$b()[$c];
-(new A)->b;
-(new A())->b();
-(new $$a)[$b];
-(new $a->b)->c;
-
-global $a, $$a, $$a[$b], $$a->b;
------
-!!php5
-$a;
-${$a};
-${$a};
-$a->b;
-$a->b();
-$a->b($c);
-$a->{$b}();
-$a->{$b}();
-$a->{$b[$c]}();
-${$a}->b;
-$a[$b];
-$a[$b]();
-${$a[$b]};
-$a::B;
-$a::$b;
-$a::b();
-$a::b($c);
-$a::$b();
-$a::$b[$c];
-$a::{$b[$c]}($d);
-$a::{$b[$c]}($d);
-$a::{$b->c}();
-A::${$b[$c]}();
-a();
-$a();
-$a()[$b];
-$a->b()[$c];
-$a::$b()[$c];
-(new A())->b;
-(new A())->b();
-(new ${$a}())[$b];
-(new $a->b())->c;
-global $a, ${$a}, ${$a[$b]}, ${$a->b};
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/yield.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/yield.test
deleted file mode 100644
index 12ab7dec..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/expr/yield.test
+++ /dev/null
@@ -1,46 +0,0 @@
-Yield
------
-<?php
-
-function gen()
-{
- yield;
- yield $a;
- yield $a => $b;
- $a = yield;
- $a = (yield $b);
- $a = (yield $b => $c);
-}
-// TODO Get rid of parens for cases 2 and 3
------
-function gen()
-{
- yield;
- (yield $a);
- (yield $a => $b);
- $a = yield;
- $a = (yield $b);
- $a = (yield $b => $c);
-}
-// TODO Get rid of parens for cases 2 and 3
------
-<?php
-
-function gen()
-{
- $a = yield $b;
- $a = yield $b => $c;
- yield from $a;
- $a = yield from $b;
-}
-// TODO Get rid of parens for last case
------
-!!php7
-function gen()
-{
- $a = (yield $b);
- $a = (yield $b => $c);
- yield from $a;
- $a = (yield from $b);
-}
-// TODO Get rid of parens for last case \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/inlineHTMLandPHPtest.file-test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/inlineHTMLandPHPtest.file-test
deleted file mode 100644
index 74a26850..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/inlineHTMLandPHPtest.file-test
+++ /dev/null
@@ -1,52 +0,0 @@
-File containing both inline HTML and PHP
------
-HTML
-<?php
-echo 'PHP';
------
-HTML
-<?php
-echo 'PHP';
------
-<?php
-echo 'PHP';
-?>
-HTML
------
-<?php
-
-echo 'PHP';
-?>
-HTML
------
-HTML
-<?php
-echo 'PHP';
-?>
-HTML
------
-HTML
-<?php
-echo 'PHP';
-?>
-HTML
------
-HTML
-<?php
-echo 'PHP';
-?>
-HTML
-<?php
-echo 'PHP';
-?>
-HTML
------
-HTML
-<?php
-echo 'PHP';
-?>
-HTML
-<?php
-echo 'PHP';
-?>
-HTML \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/onlyInlineHTML.file-test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/onlyInlineHTML.file-test
deleted file mode 100644
index 0e2d4f77..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/onlyInlineHTML.file-test
+++ /dev/null
@@ -1,11 +0,0 @@
-File containing only inline HTML
------
-Hallo World
-Foo Bar
-Bar Foo
-World Hallo
------
-Hallo World
-Foo Bar
-Bar Foo
-World Hallo \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/onlyPHP.file-test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/onlyPHP.file-test
deleted file mode 100644
index 9550b107..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/onlyPHP.file-test
+++ /dev/null
@@ -1,16 +0,0 @@
-File containing only PHP
------
-<?php
-
-echo 'Foo Bar';
-echo 'Bar Foo';
------
-<?php
-
-echo 'Foo Bar';
-echo 'Bar Foo';
------
-<?php
-
------
-<?php
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/alias.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/alias.test
deleted file mode 100644
index ef5695d8..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/alias.test
+++ /dev/null
@@ -1,20 +0,0 @@
-Aliases (namespacing)
------
-<?php
-
-use A\B;
-use C\D as E;
-use F\G as H, J;
-
-use function foo\bar;
-use function foo\bar as baz;
-use const foo\BAR;
-use const foo\BAR as BAZ;
------
-use A\B;
-use C\D as E;
-use F\G as H, J;
-use function foo\bar;
-use function foo\bar as baz;
-use const foo\BAR;
-use const foo\BAR as BAZ; \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/break_continue.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/break_continue.test
deleted file mode 100644
index 4773df1d..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/break_continue.test
+++ /dev/null
@@ -1,13 +0,0 @@
-break/continue
------
-<?php
-
-continue;
-continue 2;
-break;
-break 2;
------
-continue;
-continue 2;
-break;
-break 2; \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class.test
deleted file mode 100644
index 5225d2a6..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class.test
+++ /dev/null
@@ -1,53 +0,0 @@
-Class
------
-<?php
-
-class Foo extends Bar implements ABC, \DEF, namespace\GHI
-{
- var $a = 'foo';
- private $b = 'bar';
- static $c = 'baz';
- function test()
- {
- $this->a = 'bar';
- echo 'test';
- }
-
- protected function baz() {}
- public function foo() {}
- abstract static function bar() {}
-}
-
-trait Bar
-{
- function test()
- {
- }
-}
------
-class Foo extends Bar implements ABC, \DEF, namespace\GHI
-{
- var $a = 'foo';
- private $b = 'bar';
- static $c = 'baz';
- function test()
- {
- $this->a = 'bar';
- echo 'test';
- }
- protected function baz()
- {
- }
- public function foo()
- {
- }
- static abstract function bar()
- {
- }
-}
-trait Bar
-{
- function test()
- {
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/const.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/const.test
deleted file mode 100644
index 6b176420..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/const.test
+++ /dev/null
@@ -1,11 +0,0 @@
-Constant declarations
------
-<?php
-
-const FOO = 'BAR';
-const FOO = 1 + 1;
-const FOO = BAR, BAR = FOO;
------
-const FOO = 'BAR';
-const FOO = 1 + 1;
-const FOO = BAR, BAR = FOO; \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/declare.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/declare.test
deleted file mode 100644
index fd48e695..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/declare.test
+++ /dev/null
@@ -1,17 +0,0 @@
-declare
------
-<?php
-
-declare (strict_types=1);
-declare (ticks=1) {
- foo();
-}
-declare (ticks=2) {
-}
------
-declare (strict_types=1);
-declare (ticks=1) {
- foo();
-}
-declare (ticks=2) {
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/do_while.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/do_while.test
deleted file mode 100644
index 532d475a..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/do_while.test
+++ /dev/null
@@ -1,10 +0,0 @@
-doWhile
------
-<?php
-
-do {
-
-} while (true);
------
-do {
-} while (true); \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/for.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/for.test
deleted file mode 100644
index ef7ac4a9..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/for.test
+++ /dev/null
@@ -1,28 +0,0 @@
-for
------
-<?php
-
-for ($i = 0; $i < 10; $i++) {
-
-}
-
-for ($i = 0,$j = 0; $i < 10; $i++) {
-
-}
-
-for ($i = 0; $i < 10;) {
-
-}
-
-for (;;) {
-
-}
------
-for ($i = 0; $i < 10; $i++) {
-}
-for ($i = 0, $j = 0; $i < 10; $i++) {
-}
-for ($i = 0; $i < 10;) {
-}
-for (;;) {
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/foreach.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/foreach.test
deleted file mode 100644
index 44c3a1ac..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/foreach.test
+++ /dev/null
@@ -1,28 +0,0 @@
-foreach
------
-<?php
-
-foreach ($arr as $val) {
-
-}
-
-foreach ($arr as &$val) {
-
-}
-
-foreach ($arr as $key => $val) {
-
-}
-
-foreach ($arr as $key => &$val) {
-
-}
------
-foreach ($arr as $val) {
-}
-foreach ($arr as &$val) {
-}
-foreach ($arr as $key => $val) {
-}
-foreach ($arr as $key => &$val) {
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/function_signatures.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/function_signatures.test
deleted file mode 100644
index af1088a0..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/function_signatures.test
+++ /dev/null
@@ -1,43 +0,0 @@
-Function signatures
------
-<?php
-
-interface A
-{
- function f1();
- function f2($a, $b);
- function f3(&$a);
- function f4(A\B $a);
- function f4(array $a);
- function f5(callable $a);
- function f6(&$a);
- function f7(...$a);
- function f8(&...$a);
- function f9(A &$a);
- function f10(A ...$a);
- function f11(A &$a);
- function f12(A &...$a);
- function f13($a) : array;
- function f14($a) : callable;
- function f15($a) : B\C;
-}
------
-interface A
-{
- function f1();
- function f2($a, $b);
- function f3(&$a);
- function f4(A\B $a);
- function f4(array $a);
- function f5(callable $a);
- function f6(&$a);
- function f7(...$a);
- function f8(&...$a);
- function f9(A &$a);
- function f10(A ...$a);
- function f11(A &$a);
- function f12(A &...$a);
- function f13($a) : array;
- function f14($a) : callable;
- function f15($a) : B\C;
-}
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/global_static_variables.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/global_static_variables.test
deleted file mode 100644
index eea776a5..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/global_static_variables.test
+++ /dev/null
@@ -1,11 +0,0 @@
-Global and static variables
------
-<?php
-
-global $a, $$a, ${$a[$a]};
-static $a, $b;
-static $a = 'foo', $b = 'bar';
------
-global $a, ${$a}, ${$a[$a]};
-static $a, $b;
-static $a = 'foo', $b = 'bar'; \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/goto.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/goto.test
deleted file mode 100644
index 61c78120..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/goto.test
+++ /dev/null
@@ -1,9 +0,0 @@
-goto
------
-<?php
-
-marker:
-goto marker;
------
-marker:
-goto marker; \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/groupUse.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/groupUse.test
deleted file mode 100644
index de086c87..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/groupUse.test
+++ /dev/null
@@ -1,16 +0,0 @@
-Group use declaration
------
-<?php
-use A\{B};
-use A\{B\C, D};
-use A\B\{C\D, E};
-use function A\{b\c, d};
-use const A\{B\C, D};
-use A\B\{C\D, function b\c, const D};
------
-use A\{B};
-use A\{B\C, D};
-use A\B\{C\D, E};
-use function A\{b\c, d};
-use const A\{B\C, D};
-use A\B\{C\D, function b\c, const D};
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/haltCompiler.file-test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/haltCompiler.file-test
deleted file mode 100644
index a427a64c..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/haltCompiler.file-test
+++ /dev/null
@@ -1,27 +0,0 @@
-__halt_compiler
------
-<?php
-
-echo 'foo';
-__halt_compiler();
-!!!
-???
------
-<?php
-
-echo 'foo';
-__halt_compiler();
-!!!
-???
------
-<?php
-
-echo 'foo';
-__halt_compiler();
-<?php
------
-<?php
-
-echo 'foo';
-__halt_compiler();
-<?php \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/if.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/if.test
deleted file mode 100644
index 8debb2ec..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/if.test
+++ /dev/null
@@ -1,16 +0,0 @@
-if/elseif/else
------
-<?php
-
-if ($expr) {
-
-} elseif ($expr2) {
-
-} else {
-
-}
------
-if ($expr) {
-} elseif ($expr2) {
-} else {
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/namespaces.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/namespaces.test
deleted file mode 100644
index 939470b5..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/namespaces.test
+++ /dev/null
@@ -1,50 +0,0 @@
-Namespaces
------
-<?php
-
-namespace Foo;
-
-function foo()
-{
-}
-
-namespace Bar;
-
-function bar()
-{
-}
------
-namespace Foo;
-
-function foo()
-{
-}
-namespace Bar;
-
-function bar()
-{
-}
------
-<?php
-
-namespace Foo {
- function foo()
- {
- }
-}
-
-namespace {
- function glob() {
- }
-}
------
-namespace Foo {
- function foo()
- {
- }
-}
-namespace {
- function glob()
- {
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/switch.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/switch.test
deleted file mode 100644
index 0733a48b..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/switch.test
+++ /dev/null
@@ -1,35 +0,0 @@
-switch/case/default
------
-<?php
-
-switch ($expr) {
- case 0:
- echo 'First case, with a break';
- break;
- case 1:
- echo 'Second case, which falls through';
- case 2:
- case 3:
- case 4:
- echo 'Third case, return instead of break';
- return;
- default:
- echo 'Default case';
- break;
-}
------
-switch ($expr) {
- case 0:
- echo 'First case, with a break';
- break;
- case 1:
- echo 'Second case, which falls through';
- case 2:
- case 3:
- case 4:
- echo 'Third case, return instead of break';
- return;
- default:
- echo 'Default case';
- break;
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/throw.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/throw.test
deleted file mode 100644
index 23408936..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/throw.test
+++ /dev/null
@@ -1,7 +0,0 @@
-throw
------
-<?php
-
-throw $e;
------
-throw $e; \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/traitUse.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/traitUse.test
deleted file mode 100644
index 7455ea00..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/traitUse.test
+++ /dev/null
@@ -1,25 +0,0 @@
-Trait uses and adaptations
------
-<?php
-
-class A
-{
- use B, C, D {
- f as g;
- f as private;
- f as private g;
- B::f as g;
- B::f insteadof C, D;
- }
-}
------
-class A
-{
- use B, C, D {
- f as g;
- f as private;
- f as private g;
- B::f as g;
- B::f insteadof C, D;
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/tryCatch.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/tryCatch.test
deleted file mode 100644
index 044934de..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/tryCatch.test
+++ /dev/null
@@ -1,24 +0,0 @@
-tryCatch
------
-<?php
-
-try {
-
-} catch (Exception $e) {
-
-}
-
-try {
-} catch (Exception $e) {
-
-} finally {
-
-}
------
-try {
-} catch (Exception $e) {
-}
-try {
-} catch (Exception $e) {
-} finally {
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/while.test b/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/while.test
deleted file mode 100644
index 4e6dadae..00000000
--- a/www/wiki/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/while.test
+++ /dev/null
@@ -1,10 +0,0 @@
-while
------
-<?php
-
-while (true) {
-
-}
------
-while (true) {
-} \ No newline at end of file
diff --git a/www/wiki/vendor/nikic/php-parser/test_old/run-php-src.sh b/www/wiki/vendor/nikic/php-parser/test_old/run-php-src.sh
deleted file mode 100755
index 45e93443..00000000
--- a/www/wiki/vendor/nikic/php-parser/test_old/run-php-src.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-wget -q https://github.com/php/php-src/archive/php-7.0.5.tar.gz
-mkdir -p ./data/php-src
-tar -xzf ./php-7.0.5.tar.gz -C ./data/php-src --strip-components=1
-php -n test_old/run.php --verbose --no-progress PHP7 ./data/php-src
diff --git a/www/wiki/vendor/nikic/php-parser/test_old/run.php b/www/wiki/vendor/nikic/php-parser/test_old/run.php
deleted file mode 100644
index c493f2e0..00000000
--- a/www/wiki/vendor/nikic/php-parser/test_old/run.php
+++ /dev/null
@@ -1,223 +0,0 @@
-<?php
-
-error_reporting(E_ALL | E_STRICT);
-ini_set('short_open_tag', false);
-
-if ('cli' !== php_sapi_name()) {
- die('This script is designed for running on the command line.');
-}
-
-function showHelp($error) {
- die($error . "\n\n" .
-<<<OUTPUT
-This script has to be called with the following signature:
-
- php run.php [--no-progress] testType pathToTestFiles
-
-The test type must be one of: PHP5, PHP7 or Symfony.
-
-The following options are available:
-
- --no-progress Disables showing which file is currently tested.
-
-OUTPUT
- );
-}
-
-$options = array();
-$arguments = array();
-
-// remove script name from argv
-array_shift($argv);
-
-foreach ($argv as $arg) {
- if ('-' === $arg[0]) {
- $options[] = $arg;
- } else {
- $arguments[] = $arg;
- }
-}
-
-if (count($arguments) !== 2) {
- showHelp('Too little arguments passed!');
-}
-
-$showProgress = true;
-$verbose = false;
-foreach ($options as $option) {
- if ($option === '--no-progress') {
- $showProgress = false;
- } elseif ($option === '--verbose') {
- $verbose = true;
- } else {
- showHelp('Invalid option passed!');
- }
-}
-
-$testType = $arguments[0];
-$dir = $arguments[1];
-
-switch ($testType) {
- case 'Symfony':
- $version = 'Php5';
- $fileFilter = function($path) {
- return preg_match('~\.php(?:\.cache)?$~', $path) && false === strpos($path, 'skeleton');
- };
- $codeExtractor = function($file, $code) {
- return $code;
- };
- break;
- case 'PHP5':
- case 'PHP7':
- $version = $testType === 'PHP5' ? 'Php5' : 'Php7';
- $fileFilter = function($path) {
- return preg_match('~\.phpt$~', $path);
- };
- $codeExtractor = function($file, $code) {
- if (preg_match('~(?:
-# skeleton files
- ext.gmp.tests.001
-| ext.skeleton.tests.001
-# multibyte encoded files
-| ext.mbstring.tests.zend_multibyte-01
-| Zend.tests.multibyte.multibyte_encoding_001
-| Zend.tests.multibyte.multibyte_encoding_004
-| Zend.tests.multibyte.multibyte_encoding_005
-# token_get_all bug (https://bugs.php.net/bug.php?id=60097)
-| Zend.tests.bug47516
-# pretty print difference due to INF vs 1e1000
-| ext.standard.tests.general_functions.bug27678
-| tests.lang.bug24640
-# pretty print difference due to nop statements
-| ext.mbstring.tests.htmlent
-| ext.standard.tests.file.fread_basic
-# tests using __halt_compiler as semi reserved keyword
-| Zend.tests.grammar.semi_reserved_001
-| Zend.tests.grammar.semi_reserved_002
-| Zend.tests.grammar.semi_reserved_005
-)\.phpt$~x', $file)) {
- return null;
- }
-
- if (!preg_match('~--FILE--\s*(.*?)--[A-Z]+--~s', $code, $matches)) {
- return null;
- }
- if (preg_match('~--EXPECT(?:F|REGEX)?--\s*(?:Parse|Fatal) error~', $code)) {
- return null;
- }
-
- return $matches[1];
- };
- break;
- default:
- showHelp('Test type must be one of: PHP5, PHP7 or Symfony');
-}
-
-require_once dirname(__FILE__) . '/../lib/PhpParser/Autoloader.php';
-PhpParser\Autoloader::register();
-
-$parserName = 'PhpParser\Parser\\' . $version;
-$parser = new $parserName(new PhpParser\Lexer\Emulative);
-$prettyPrinter = new PhpParser\PrettyPrinter\Standard;
-$nodeDumper = new PhpParser\NodeDumper;
-
-$parseFail = $ppFail = $compareFail = $count = 0;
-
-$readTime = $parseTime = $ppTime = $reparseTime = $compareTime = 0;
-$totalStartTime = microtime(true);
-
-foreach (new RecursiveIteratorIterator(
- new RecursiveDirectoryIterator($dir),
- RecursiveIteratorIterator::LEAVES_ONLY)
- as $file) {
- if (!$fileFilter($file)) {
- continue;
- }
-
- $startTime = microtime(true);
- $code = file_get_contents($file);
- $readTime += microtime(true) - $startTime;
-
- if (null === $code = $codeExtractor($file, $code)) {
- continue;
- }
-
- set_time_limit(10);
-
- ++$count;
-
- if ($showProgress) {
- echo substr(str_pad('Testing file ' . $count . ': ' . substr($file, strlen($dir)), 79), 0, 79), "\r";
- }
-
- try {
- $startTime = microtime(true);
- $stmts = $parser->parse($code);
- $parseTime += microtime(true) - $startTime;
-
- $startTime = microtime(true);
- $code = '<?php' . "\n" . $prettyPrinter->prettyPrint($stmts);
- $ppTime += microtime(true) - $startTime;
-
- try {
- $startTime = microtime(true);
- $ppStmts = $parser->parse($code);
- $reparseTime += microtime(true) - $startTime;
-
- $startTime = microtime(true);
- $same = $nodeDumper->dump($stmts) == $nodeDumper->dump($ppStmts);
- $compareTime += microtime(true) - $startTime;
-
- if (!$same) {
- echo $file, ":\n Result of initial parse and parse after pretty print differ\n";
- if ($verbose) {
- echo "Pretty printer output:\n=====\n$code\n=====\n\n";
- }
-
- ++$compareFail;
- }
- } catch (PhpParser\Error $e) {
- echo $file, ":\n Parse of pretty print failed with message: {$e->getMessage()}\n";
- if ($verbose) {
- echo "Pretty printer output:\n=====\n$code\n=====\n\n";
- }
-
- ++$ppFail;
- }
- } catch (PhpParser\Error $e) {
- echo $file, ":\n Parse failed with message: {$e->getMessage()}\n";
-
- ++$parseFail;
- }
-}
-
-if (0 === $parseFail && 0 === $ppFail && 0 === $compareFail) {
- $exit = 0;
- echo "\n\n", 'All tests passed.', "\n";
-} else {
- $exit = 1;
- echo "\n\n", '==========', "\n\n", 'There were: ', "\n";
- if (0 !== $parseFail) {
- echo ' ', $parseFail, ' parse failures.', "\n";
- }
- if (0 !== $ppFail) {
- echo ' ', $ppFail, ' pretty print failures.', "\n";
- }
- if (0 !== $compareFail) {
- echo ' ', $compareFail, ' compare failures.', "\n";
- }
-}
-
-echo "\n",
- 'Tested files: ', $count, "\n",
- "\n",
- 'Reading files took: ', $readTime, "\n",
- 'Parsing took: ', $parseTime, "\n",
- 'Pretty printing took: ', $ppTime, "\n",
- 'Reparsing took: ', $reparseTime, "\n",
- 'Comparing took: ', $compareTime, "\n",
- "\n",
- 'Total time: ', microtime(true) - $totalStartTime, "\n",
- 'Maximum memory usage: ', memory_get_peak_usage(true), "\n";
-
-exit($exit);
diff --git a/www/wiki/vendor/nmred/kafka-php/LICENSE b/www/wiki/vendor/nmred/kafka-php/LICENSE
deleted file mode 100644
index 96d08492..00000000
--- a/www/wiki/vendor/nmred/kafka-php/LICENSE
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright (c) 2014, SWANSOFT
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the {organization} nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/nmred/kafka-php/README.md b/www/wiki/vendor/nmred/kafka-php/README.md
deleted file mode 100644
index 5ed12e23..00000000
--- a/www/wiki/vendor/nmred/kafka-php/README.md
+++ /dev/null
@@ -1,496 +0,0 @@
-Kafka-php
-==========
-
-[![Build Status](https://travis-ci.org/nmred/kafka-php.svg?branch=master)](https://travis-ci.org/nmred/Kafka-php)
-
-Kafka-php is a php client with Zookeeper integration for apache Kafka. It only supports the latest version of Kafka 0.8 which is still under development, so this module is _not production ready_ so far.
-
-The Zookeeper integration does the following jobs:
-
-* Loads broker metadata from Zookeeper before we can communicate with the Kafka server
-* Watches broker state, if broker changes, the client will refresh broker and topic metadata stored in the client
-
-## Requirements
-
-* Minimum PHP version: 5.3.3.
-* Apache Kafka 0.8.x
-* You need to have access to your Kafka instance and be able to connect through TCP. You can obtain a copy and instructions on how to setup kafka at https://github.com/kafka-dev/kafka [kafka-08-quick-start](https://cwiki.apache.org/KAFKA/kafka-08-quick-start.html)
-* The [PHP Zookeeper extension](https://github.com/andreiz/php-zookeeper) is required if you want to use the Zookeeper-based consumer.
-* Productor can not dependency zookeeper
-
-## Installation
-Add the lib directory to the PHP include_path and use an autoloader like the one in the examples directory (the code follows the PEAR/Zend one-class-per-file convention).
-
-## Composer Install
-
-Simply add a dependency on nmred/kafka-php to your project's composer.json file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file :
-
-```
-{
- "require": {
- "nmred/kafka-php": "0.1.*"
- }
-}
-```
-
-## Produce
-
-### \Kafka\Produce::getInstance($hostList, $timeout)
-
-* `hostList` : zookeeper host list , example 127.0.0.1:2181,192.168.1.114:2181
-* `timeout` : zookeeper timeout
-
-### \Kafka\Produce::setRequireAck($ack = -1)
-
-* `ack`: This field indicates how many acknowledgements the servers should receive before responding to the request.
-
-### \Kafka\Produce::setMessages($topicName, $partitionId, $messages)
-
-* `topicName` : The topic that data is being published to.
-* `partitionId` : The partition that data is being published to.
-* `messages` : [Array] publish message.
-
-### \Kafka\Produce::send()
-
-send message sets to the server.
-
-### Example
-
-``` php
-$produce = \Kafka\Produce::getInstance('localhost:2181', 3000);
-
-$produce->setRequireAck(-1);
-$produce->setMessages('test', 0, array('test1111111'));
-$produce->setMessages('test6', 0, array('test1111111'));
-$produce->setMessages('test6', 2, array('test1111111'));
-$produce->setMessages('test6', 1, array('test111111111133'));
-$result = $produce->send();
-var_dump($result);
-
-```
-
-## Consumer
-
-### \Kafka\Consumer::getInstance($hostList, $timeout)
-
-* `hostList` : zookeeper host list , example 127.0.0.1:2181,192.168.1.114:2181
-* `timeout` : zookeeper timeout
-
-### \Kafka\Consumer::setGroup($groupName)
-
-* `groupName` : Specify consumer group.
-
-### \Kafka\Consumer::setPartition($topicName, $partitionId, $offset = 0)
-
-* `topicName` : The topic that data is being fetch to.
-* `partitionId` : The partition that data is being fetch to.
-* `offset`: set fetch offset. default `0`.
-
-### \Kafka\Consumer::fetch()
-
-return fetch message Iterator. `\Kafka\Protocol\Fetch\Topic`
-
-### \Kafka\Protocol\Fetch\Topic
-
-this object is iterator
-
-`key` : topic name
-`value`: `\Kafka\Protocol\Fetch\Partition`
-
-### \Kafka\Protocol\Fetch\Partition
-
-this object is iterator.
-
-`key`: partition id
-`value`: messageSet object
-
-#### \Kafka\Protocol\Fetch\Partition::getErrCode()
-
-return partition fetch errcode.
-
-#### \Kafka\Protocol\Fetch\Partition::getHighOffset()
-
-return partition fetch offset.
-
-### \Kafka\Protocol\Fetch\MessageSet
-
-this object is iterator. `\Kafka\Protocol\Fetch\Message`
-
-### Example
-
-``` php
-$consumer = \Kafka\Consumer::getInstance('localhost:2181');
-
-$consumer->setGroup('testgroup');
-$consumer->setPartition('test', 0);
-$consumer->setPartition('test6', 2, 10);
-$result = $consumer->fetch();
-foreach ($result as $topicName => $topic) {
- foreach ($topic as $partId => $partition) {
- var_dump($partition->getHighOffset());
- foreach ($partition as $message) {
- var_dump((string)$message);
- }
- }
-}
-```
-
-## Basic Protocol
-### Produce API
-
-The produce API is used to send message sets to the server. For efficiency it allows sending message sets intended for many topic partitions in a single request.
-
-\Kafka\Protocol\Encoder::produceRequest
-
-#### Param struct
-``` php
-array(
- 'required_ack' => 1,
- // This field indicates how many acknowledgements the servers should receive before responding to the request. default `0`
- // If it is 0 the server will not send any response
- // If it is -1 the server will block until the message is committed by all in sync replicas before sending a response
- // For any number > 1 the server will block waiting for this number of acknowledgements to occur
- 'timeout' => 1000,
- // This provides a maximum time in milliseconds the server can await the receipt of the number of acknowledgements in RequiredAcks.
- 'data' => array(
- array(
- 'topic_name' => 'testtopic',
- // The topic that data is being published to.[String]
- 'partitions' => array(
- array(
- 'partition_id' => 0,
- // The partition that data is being published to.
- 'messages' => array(
- 'message1',
- // [String] message
- ),
- ),
- ),
- ),
- ),
-);
-```
-
-#### Return
-
-Array
-
-#### Example
-
-``` php
-
-$data = array(
- 'required_ack' => 1,
- 'timeout' => 1000,
- 'data' => array(
- array(
- 'topic_name' => 'test',
- 'partitions' => array(
- array(
- 'partition_id' => 0,
- 'messages' => array(
- 'message1',
- 'message2',
- ),
- ),
- ),
- ),
- ),
-);
-
-$conn = new \Kafka\Socket('localhost', '9092');
-$conn->connect();
-$encoder = new \Kafka\Protocol\Encoder($conn);
-$encoder->produceRequest($data);
-
-$decoder = new \Kafka\Protocol\Decoder($conn);
-$result = $decoder->produceResponse();
-var_dump($result);
-
-```
-### Fetch API
-
-The fetch API is used to fetch a chunk of one or more logs for some topic-partitions. Logically one specifies the topics, partitions, and starting offset at which to begin the fetch and gets back a chunk of messages
-
-\Kafka\Protocol\Encoder::fetchRequest
-
-#### Param struct
-``` php
-array(
- 'replica_id' => -1,
- // The replica id indicates the node id of the replica initiating this request. default `-1`
- 'max_wait_time' => 100,
- // The max wait time is the maximum amount of time in milliseconds to block waiting if insufficient data is available at the time the request is issued. default 100 ms.
- 'min_bytes' => 64 * 1024 // 64k
- // This is the minimum number of bytes of messages that must be available to give a response. default 64k.
- 'data' => array(
- array(
- 'topic_name' => 'testtopic',
- // The topic that data is being published to.[String]
- 'partitions' => array(
- array(
- 'partition_id' => 0,
- // The partition that data is being published to.
- 'offset' => 0,
- // The offset to begin this fetch from. default 0
- 'max_bytes' => 100 * 1024 * 1024,
- // This is the minimum number of bytes of messages that must be available to give a response. default 100Mb
- ),
- ),
- ),
- ),
-);
-```
-
-#### Return
-
-\Kafka\Protocol\Fetch\Topic iterator
-
-#### Example
-``` php
-
-$data = array(
- 'data' => array(
- array(
- 'topic_name' => 'test',
- 'partitions' => array(
- array(
- 'partition_id' => 0,
- 'offset' => 0,
- ),
- ),
- ),
- ),
-);
-
-$conn = new \Kafka\Socket('localhost', '9092');
-$conn->connect();
-$encoder = new \Kafka\Protocol\Encoder($conn);
-$encoder->fetchRequest($data);
-
-$decoder = new \Kafka\Protocol\Decoder($conn);
-$result = $decoder->fetchResponse();
-var_dump($result);
-
-```
-### Offset API
-
-This API describes the valid offset range available for a set of topic-partitions. As with the produce and fetch APIs requests must be directed to the broker that is currently the leader for the partitions in question. This can be determined using the metadata API.
-
-\Kafka\Protocol\Encoder::offsetRequest
-
-####param struct
-``` php
-array(
- 'replica_id' => -1,
- // The replica id indicates the node id of the replica initiating this request. default `-1`
- 'data' => array(
- array(
- 'topic_name' => 'testtopic',
- // The topic that data is being published to.[String]
- 'partitions' => array(
- array(
- 'partition_id' => 0,
- // The partition that get offset .
- 'time' => -1,
- // Used to ask for all messages before a certain time (ms).
- // Specify -1 to receive the latest offsets
- // Specify -2 to receive the earliest available offset.
- 'max_offset' => 1,
- // max return offset element. default 10000.
- ),
- ),
- ),
- ),
-);
-```
-
-#### Return
-
-Array.
-
-#### Example
-
-``` php
-
-$data = array(
- 'data' => array(
- array(
- 'topic_name' => 'test',
- 'partitions' => array(
- array(
- 'partition_id' => 0,
- 'max_offset' => 10,
- 'time' => -1,
- ),
- ),
- ),
- ),
-);
-
-$conn = new \Kafka\Socket('localhost', '9092');
-$conn->connect();
-$encoder = new \Kafka\Protocol\Encoder($conn);
-$encoder->offsetRequest($data);
-
-$decoder = new \Kafka\Protocol\Decoder($conn);
-$result = $decoder->offsetResponse();
-var_dump($result);
-
-```
-### Metadata API
-
-The metdata returned is at the partition level, but grouped together by topic for convenience and to avoid redundancy. For each partition the metadata contains the information for the leader as well as for all the replicas and the list of replicas that are currently in-sync.
-
-\Kafka\Protocol\Encoder::metadataRequest
-
-####param struct
-``` php
-array(
- 'topic_name1', // topic name
-);
-```
-
-#### Return
-
-Array.
-
-#### Example
-
-``` php
-
-$data = array(
- 'test'
-);
-
-$conn = new \Kafka\Socket('localhost', '9092');
-$conn->connect();
-$encoder = new \Kafka\Protocol\Encoder($conn);
-$encoder->metadataRequest($data);
-
-$decoder = new \Kafka\Protocol\Decoder($conn);
-$result = $decoder->metadataResponse();
-var_dump($result);
-
-```
-### Offset Commit API
-
-These APIs allow for centralized management of offsets.
-
-\Kafka\Protocol\Encoder::commitOffsetRequest
-
-####param struct
-``` php
-array(
- 'group_id' => 'testgroup',
- // consumer group
- 'data' => array(
- array(
- 'topic_name' => 'testtopic',
- // The topic that data is being published to.[String]
- 'partitions' => array(
- array(
- 'partition_id' => 0,
- // The partition that get offset .
- 'offset' => 0,
- // The offset to begin this fetch from.
- 'time' => -1,
- // If the time stamp field is set to -1, then the broker sets the time stamp to the receive time before committing the offset.
- ),
- ),
- ),
- ),
-);
-```
-
-#### Return
-
-Array.
-
-#### Example
-
-``` php
-$data = array(
- 'group_id' => 'testgroup',
- 'data' => array(
- array(
- 'topic_name' => 'test',
- 'partitions' => array(
- array(
- 'partition_id' => 0,
- 'offset' => 2,
- ),
- ),
- ),
- ),
-);
-
-
-$conn = new \Kafka\Socket('localhost', '9092');
-$conn->connect();
-$encoder = new \Kafka\Protocol\Encoder($conn);
-$encoder->commitOffsetRequest($data);
-
-$decoder = new \Kafka\Protocol\Decoder($conn);
-$result = $decoder->commitOffsetResponse();
-var_dump($result);
-
-```
-### Offset Fetch API
-
-These APIs allow for centralized management of offsets.
-
-\Kafka\Protocol\Encoder::fetchOffsetRequest
-
-####param struct
-``` php
-array(
- 'group_id' => 'testgroup',
- // consumer group
- 'data' => array(
- array(
- 'topic_name' => 'testtopic',
- // The topic that data is being published to.[String]
- 'partitions' => array(
- array(
- 'partition_id' => 0,
- // The partition that get offset .
- ),
- ),
- ),
- ),
-);
-```
-
-#### Return
-
-Array.
-
-#### Example
-
-``` php
-$data = array(
- 'group_id' => 'testgroup',
- 'data' => array(
- array(
- 'topic_name' => 'test',
- 'partitions' => array(
- array(
- 'partition_id' => 0,
- ),
- ),
- ),
- ),
-);
-
-
-$conn = new \Kafka\Socket('localhost', '9092');
-$conn->connect();
-$encoder = new \Kafka\Protocol\Encoder($conn);
-$encoder->fetchOffsetRequest($data);
-
-$decoder = new \Kafka\Protocol\Decoder($conn);
-$result = $decoder->fetchOffsetResponse();
-var_dump($result);
-
-```
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Client.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Client.php
deleted file mode 100644
index 06249d9d..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Client.php
+++ /dev/null
@@ -1,291 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Client
-{
- // {{{ consts
- // }}}
- // {{{ members
-
- /**
- * cluster metadata
- *
- * @var \Kafka\ClusterMetaData
- * @access private
- */
- private $metadata = null;
-
- /**
- * broker host list
- *
- * @var array
- * @access private
- */
- private $hostList = array();
-
- /**
- * save broker connection
- *
- * @var array
- * @access private
- */
- private static $stream = array();
-
- /**
- * default stream options
- *
- * @var array
- * @access private
- */
- private $streamOptions = array(
- 'RecvTimeoutSec' => 0,
- 'RecvTimeoutUsec' => 750000,
- 'SendTimeoutSec' => 0,
- 'SendTimeoutUsec' => 100000,
- );
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @access public
- * @param ClusterMetaData $metadata
- */
- public function __construct(ClusterMetaData $metadata)
- {
- $this->metadata = $metadata;
- if (method_exists($metadata, 'setClient')) {
- $this->metadata->setClient($this);
- }
- }
-
- /**
- * update stream options
- *
- * @param array $options
- */
- public function setStreamOptions($options = array())
- {
- // Merge the arrays
- $this->streamOptions = array_merge($this->streamOptions, $options);
- $this->updateStreamOptions();
- }
-
- /**
- * @access public
- * @param $name - name of stream option
- * @param $value - value for option
- */
- public function setStreamOption($name, $value)
- {
- $this->streamOptions[$name] = $value;
- $this->updateStreamOptions();
- }
-
- /**
- * @access public
- * @param $name - name of option
- * @return mixed
- */
- public function getStreamOption($name)
- {
- if (array_key_exists($name, $this->streamOptions)) {
- return $this->streamOptions[$name];
- }
- return null;
- }
-
- /**
- * @access private
- */
- private function updateStreamOptions()
- {
- // Loop thru each stream
- foreach (self::$stream as $host => $streams) {
- foreach ($streams as $key => $info) {
- // Update options
- if (isset($info['stream'])) {
- /** @var \Kafka\Socket $stream */
- $stream = $info['stream'];
- $stream->setRecvTimeoutSec($this->streamOptions['RecvTimeoutSec']);
- $stream->setRecvTimeoutUsec($this->streamOptions['SendTimeoutUsec']);
- $stream->setSendTimeoutSec($this->streamOptions['SendTimeoutSec']);
- $stream->setSendTimeoutUsec($this->streamOptions['SendTimeoutUsec']);
- }
- }
- }
- }
-
- // }}}
- // {{{ public function getBrokers()
-
- /**
- * get broker server
- *
- * @access public
- * @return array
- */
- public function getBrokers()
- {
- if (empty($this->hostList)) {
- $brokerList = $this->metadata->listBrokers();
- foreach ($brokerList as $brokerId => $info) {
- if (!isset($info['host']) || !isset($info['port'])) {
- continue;
- }
- $this->hostList[$brokerId] = $info['host'] . ':' . $info['port'];
- }
- }
-
- return $this->hostList;
- }
-
- // }}}
- // {{{ public function getHostByPartition()
-
- /**
- * get broker host by topic partition
- *
- * @param string $topicName
- * @param int $partitionId
- * @access public
- * @return string
- */
- public function getHostByPartition($topicName, $partitionId = 0)
- {
- $partitionInfo = $this->metadata->getPartitionState($topicName, $partitionId);
- if (!$partitionInfo) {
- throw new \Kafka\Exception('topic:' . $topicName . ', partition id: ' . $partitionId . ' is not exists.');
- }
-
- $hostList = $this->getBrokers();
- if (isset($partitionInfo['leader']) && isset($hostList[$partitionInfo['leader']])) {
- return $hostList[$partitionInfo['leader']];
- } else {
- throw new \Kafka\Exception('can\'t find broker host.');
- }
- }
-
- // }}}
- // {{{ public function getZooKeeper()
-
- /**
- * get kafka zookeeper object
- *
- * @access public
- * @return \Kafka\ZooKeeper
- */
- public function getZooKeeper()
- {
- if ($this->metadata instanceof \Kafka\ZooKeeper) {
- return $this->metadata;
- } else {
- throw new \Kafka\Exception( 'ZooKeeper was not provided' );
- }
- }
-
- // }}}
- // {{{ public function getStream()
-
- /**
- * get broker broker connect
- *
- * @param string $host
- * @param null $lockKey
- * @return array
- * @access private
- */
- public function getStream($host, $lockKey = null)
- {
- if (!$lockKey) {
- $lockKey = uniqid($host);
- }
-
- list($hostname, $port) = explode(':', $host);
- // find unlock stream
- if (isset(self::$stream[$host])) {
- foreach (self::$stream[$host] as $key => $info) {
- if ($info['locked']) {
- continue;
- } else {
- self::$stream[$host][$key]['locked'] = true;
- $info['stream']->connect();
- return array('key' => $key, 'stream' => $info['stream']);
- }
- }
- }
-
- // no idle stream
- $stream = new \Kafka\Socket($hostname, $port, $this->getStreamOption('RecvTimeoutSec'), $this->getStreamOption('RecvTimeoutUsec'), $this->getStreamOption('SendTimeoutSec'), $this->getStreamOption('SendTimeoutUsec'));
- $stream->connect();
- self::$stream[$host][$lockKey] = array(
- 'locked' => true,
- 'stream' => $stream,
- );
- return array('key' => $lockKey, 'stream' => $stream);
- }
-
- // }}}
- // {{{ public function freeStream()
-
- /**
- * free stream pool
- *
- * @param string $key
- * @access public
- * @return void
- */
- public function freeStream($key)
- {
- foreach (self::$stream as $host => $values) {
- if (isset($values[$key])) {
- self::$stream[$host][$key]['locked'] = false;
- }
- }
- }
-
- // }}}
- // {{{ public function getTopicDetail()
-
- /**
- * get topic detail info
- *
- * @param string $topicName
- * @return array
- */
- public function getTopicDetail($topicName)
- {
- return $this->metadata->getTopicDetail($topicName);
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/ClusterMetaData.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/ClusterMetaData.php
deleted file mode 100644
index e9b3d064..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/ClusterMetaData.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka;
-
-/**
-+------------------------------------------------------------------------------
-* Metadata about the kafka cluster
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author ebernhardson@wikimedia.org
-+------------------------------------------------------------------------------
-*/
-
-interface ClusterMetaData
-{
- /**
- * get broker list from kafka metadata
- *
- * @access public
- * @return array
- */
- public function listBrokers();
-
- /**
- * @param string $topicName
- * @param integer $partitionId
- * @access public
- * @return array
- */
- public function getPartitionState($topicName, $partitionId = 0);
-
- /**
- * @param string $topicName
- * @access public
- * @return array
- */
- public function getTopicDetail($topicName);
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Consumer.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Consumer.php
deleted file mode 100644
index 1b9d42c9..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Consumer.php
+++ /dev/null
@@ -1,369 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Consumer
-{
- // {{{ consts
- // }}}
- // {{{ members
-
- /**
- * client
- *
- * @var Client
- * @access private
- */
- private $client = null;
-
- /**
- * send message options cache
- *
- * @var array
- * @access private
- */
- private $payload = array();
-
- /**
- * consumer group
- *
- * @var string
- * @access private
- */
- private $group = '';
-
- /**
- * from offset
- *
- * @var mixed
- * @access private
- */
- private $fromOffset = true;
-
- /**
- * produce instance
- *
- * @var \Kafka\Produce
- * @access private
- */
- private static $instance = null;
-
- /**
- * maxSize
- *
- * @var integer
- */
- private $maxSize = 1048576;
-
- /**
- * offsetStrategy
- * @var integer
- */
- private $offsetStrategy = \Kafka\Offset::DEFAULT_EARLY;
-
- // }}}
- // {{{ functions
- // {{{ public function static getInstance()
-
- /**
- * set send messages
- *
- * @access public
- * @param $hostList
- * @param null $timeout
- * @return Consumer
- */
- public static function getInstance($hostList, $timeout = null)
- {
- if (is_null(self::$instance)) {
- self::$instance = new self($hostList, $timeout);
- }
-
- return self::$instance;
- }
-
- // }}}
- // {{{ private function __construct()
-
- /**
- * __construct
- *
- * @access public
- * @param $hostList
- * @param null $timeout
- */
- private function __construct($hostList, $timeout = null)
- {
- $zookeeper = new \Kafka\ZooKeeper($hostList, $timeout);
- $this->client = new \Kafka\Client($zookeeper);
- }
-
- // }}}
- // {{{ public function clearPayload()
-
- /**
- * clearPayload
- *
- * @access public
- * @return void
- */
- public function clearPayload()
- {
- $this->payload = array();
- }
-
- // }}}
- // {{{ public function setTopic()
-
- /**
- * set topic name
- *
- * @access public
- * @param $topicName
- * @param null $defaultOffset
- * @return Consumer
- */
- public function setTopic($topicName, $defaultOffset = null)
- {
- $parts = $this->client->getTopicDetail($topicName);
- if (!isset($parts['partitions']) || empty($parts['partitions'])) {
- // set topic fail.
- return $this;
- }
-
- foreach ($parts['partitions'] as $partId => $info) {
- $this->setPartition($topicName, $partId, $defaultOffset);
- }
-
- return $this;
- }
-
- // }}}
- // {{{ public function setPartition()
-
- /**
- * set topic partition
- *
- * @access public
- * @param $topicName
- * @param int $partitionId
- * @param null $offset
- * @return Consumer
- */
- public function setPartition($topicName, $partitionId = 0, $offset = null)
- {
- if (is_null($offset)) {
- if ($this->fromOffset) {
- $offsetObject = new \Kafka\Offset($this->client, $this->group, $topicName, $partitionId);
- $offset = $offsetObject->getOffset($this->offsetStrategy);
- \Kafka\Log::log('topic name:' . $topicName . ', part:' . $partitionId . 'get offset from kafka server, offet:' . $offset, LOG_DEBUG);
- } else {
- $offset = 0;
- }
- }
- $this->payload[$topicName][$partitionId] = $offset;
-
- return $this;
- }
-
- // }}}
- // {{{ public function setFromOffset()
-
- /**
- * set whether starting offset fetch
- *
- * @param boolean $fromOffset
- * @access public
- * @return void
- */
- public function setFromOffset($fromOffset)
- {
- $this->fromOffset = (boolean) $fromOffset;
- }
-
- // }}}
- // {{{ public function setMaxBytes()
-
- /**
- * set fetch message max bytes
- *
- * @param int $maxSize
- * @access public
- * @return void
- */
- public function setMaxBytes($maxSize)
- {
- $this->maxSize = $maxSize;
- }
-
- // }}}
- // {{{ public function setGroup()
-
- /**
- * set consumer group
- *
- * @param string $group
- * @access public
- * @return Consumer
- */
- public function setGroup($group)
- {
- $this->group = (string) $group;
- return $this;
- }
-
- // }}}
- // {{{ public function fetch()
-
- /**
- * fetch message to broker
- *
- * @access public
- * @return \Kafka\Protocol\Fetch\Topic|bool
- */
- public function fetch()
- {
- $data = $this->_formatPayload();
- if (empty($data)) {
- return false;
- }
-
- $streams = array();
- foreach ($data as $host => $requestData) {
- $connArr = $this->client->getStream($host);
- $conn = $connArr['stream'];
- $encoder = new \Kafka\Protocol\Encoder($conn);
- $encoder->fetchRequest($requestData);
- $streams[$connArr['key']] = $conn;
- }
-
- $fetch = new \Kafka\Protocol\Fetch\Topic($streams, $data);
-
- // register fetch helper
- $freeStream = new \Kafka\Protocol\Fetch\Helper\FreeStream($this->client);
- $freeStream->setStreams($streams);
- \Kafka\Protocol\Fetch\Helper\Helper::registerHelper('freeStream', $freeStream);
-
- // register partition commit offset
- $commitOffset = new \Kafka\Protocol\Fetch\Helper\CommitOffset($this->client);
- $commitOffset->setGroup($this->group);
- \Kafka\Protocol\Fetch\Helper\Helper::registerHelper('commitOffset', $commitOffset);
-
- $updateConsumer = new \Kafka\Protocol\Fetch\Helper\Consumer($this);
- \Kafka\Protocol\Fetch\Helper\Helper::registerHelper('updateConsumer', $updateConsumer);
-
- return $fetch;
- }
-
- // }}}
- // {{{ public function getClient()
-
- /**
- * get client object
- *
- * @access public
- * @return Client
- */
- public function getClient()
- {
- return $this->client;
- }
-
- /**
- * passthru method to client for setting stream options
- *
- * @param array $options
- */
- public function setStreamOptions($options = array())
- {
- $this->client->setStreamOptions($options);
- }
-
- // }}}
- // {{{ private function _formatPayload()
-
- /**
- * format payload array
- *
- * @access private
- * @return array
- */
- private function _formatPayload()
- {
- if (empty($this->payload)) {
- return array();
- }
-
- $data = array();
- foreach ($this->payload as $topicName => $partitions) {
- foreach ($partitions as $partitionId => $offset) {
- $host = $this->client->getHostByPartition($topicName, $partitionId);
- $data[$host][$topicName][$partitionId] = $offset;
- }
- }
-
- $requestData = array();
- foreach ($data as $host => $info) {
- $topicData = array();
- foreach ($info as $topicName => $partitions) {
- $partitionData = array();
- foreach ($partitions as $partitionId => $offset) {
- $partitionData[] = array(
- 'partition_id' => $partitionId,
- 'offset' => $offset,
- 'max_bytes' => $this->maxSize,
- );
- }
- $topicData[] = array(
- 'topic_name' => $topicName,
- 'partitions' => $partitionData,
- );
- }
-
- $requestData[$host] = array(
- 'data' => $topicData,
- );
- }
-
- return $requestData;
- }
-
- /**
- * const LAST_OFFSET = -1;
- * const EARLIEST_OFFSET = -2;
- * const DEFAULT_LAST = -2;
- * const DEFAULT_EARLY = -1;
- * @param int $offsetStrategy
- */
- public function setOffsetStrategy($offsetStrategy)
- {
- $this->offsetStrategy = $offsetStrategy;
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception.php
deleted file mode 100644
index f336f1c3..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Exception extends \RuntimeException
-{
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/NotSupported.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/NotSupported.php
deleted file mode 100644
index cb6d23c5..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/NotSupported.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Exception;
-
-use \Kafka\Exception;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka php client exception
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class NotSupported extends Exception
-{
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/OutOfRange.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/OutOfRange.php
deleted file mode 100644
index 374d1538..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/OutOfRange.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Exception;
-
-use \Kafka\Exception;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka php client exception
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class OutOfRange extends Exception
-{
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/Protocol.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/Protocol.php
deleted file mode 100644
index d7fa2517..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/Protocol.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Exception;
-
-use \Kafka\Exception;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka php client exception
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Protocol extends Exception
-{
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/Socket.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/Socket.php
deleted file mode 100644
index 59ab5aaa..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/Socket.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Exception;
-
-use \Kafka\Exception;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka php client exception
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Socket extends Exception
-{
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketConnect.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketConnect.php
deleted file mode 100644
index 476b2a48..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketConnect.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Exception;
-
-use \Kafka\Exception;
-
-/**
-+------------------------------------------------------------------------------
- * Kafka php client exception
-+------------------------------------------------------------------------------
- *
- * @package
- * @version $_SWANBR_VERSION_$
- * @copyright Copyleft
- * @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
- */
-
-class SocketConnect extends Socket
-{
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketEOF.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketEOF.php
deleted file mode 100644
index 35e34e07..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketEOF.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Exception;
-
-use \Kafka\Exception;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka php client exception
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class SocketEOF extends Exception
-{
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketTimeout.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketTimeout.php
deleted file mode 100644
index b0d38c2c..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Exception/SocketTimeout.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Exception;
-
-use \Kafka\Exception;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka php client exception
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class SocketTimeout extends Exception
-{
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Log.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Log.php
deleted file mode 100644
index efa54763..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Log.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Log
-{
- // {{{ consts
- // }}}
- // {{{ members
-
- /**
- * log
- *
- * @var mixed
- * @access private
- */
- private static $log = null;
-
- // }}}
- // {{{ functions
- // {{{ public static function setLog()
-
- /**
- * setLog
- *
- * @access public
- * @param $log
- */
- public static function setLog($log)
- {
- if ($log) {
- self::$log = $log;
- }
- }
-
- // }}}
- // {{{ public static function log()
-
- /**
- * log
- *
- * @access public
- * @param $message
- * @param int $level
- */
- public static function log($message, $level = LOG_DEBUG)
- {
- if (self::$log && method_exists(self::$log, 'log')) {
- self::$log->log($message, $level);
- }
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/MetaDataFromKafka.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/MetaDataFromKafka.php
deleted file mode 100644
index e61e0963..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/MetaDataFromKafka.php
+++ /dev/null
@@ -1,208 +0,0 @@
-<?php
-
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka;
-
-/**
-+------------------------------------------------------------------------------
-* Cluster metadata provided by kafka
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author ebernhardson@wikimedia.org
-+------------------------------------------------------------------------------
-*/
-
-class MetaDataFromKafka implements ClusterMetaData
-{
- // {{{ consts
- // }}}
- // {{{ members
-
- /**
- * client
- *
- * @var \Kafka\Client
- * @access private
- */
- private $client;
-
- /**
- * list of kafka brokers to get metadata from
- *
- * @var array
- * @access private
- */
- private $hostList;
-
- /**
- * List of all kafka brokers
- *
- * @var array
- * @access private
- */
- private $brokers = array();
-
- /**
- * List of all loaded topic metadata
- *
- * @var array
- * @access private
- */
- private $topics = array();
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * @var string|array $hostList List of kafka brokers to get metadata from
- * @access public
- */
- public function __construct($hostList)
- {
- if (is_string($hostList)) { // support host list 127.0.0.1:9092,192.168.2.11:9092 form
- $this->hostList = explode(',', $hostList);
- } else {
- $this->hostList = (array)$hostList;
- }
- // randomize the order of servers we collect metadata from
- shuffle($this->hostList);
- }
-
- // }}}
- // {{{ public function setClient()
-
- /**
- * @var \Kafka\Client $client
- * @access public
- * @return void
- */
- public function setClient(\Kafka\Client $client)
- {
- $this->client = $client;
- }
-
- // }}}
- // {{{ public function listBrokers()
-
- /**
- * get broker list from kafka metadata
- *
- * @access public
- * @return array
- */
- public function listBrokers()
- {
- if ($this->brokers === null) {
- $this->loadBrokers();
- }
- return $this->brokers;
- }
-
- // }}}
- // {{{ public function getPartitionState()
-
- /**
- * @param string $topicName
- * @param int $partitionId
- * @return null
- */
- public function getPartitionState($topicName, $partitionId = 0)
- {
- if (!isset( $this->topics[$topicName] ) ) {
- $this->loadTopicDetail(array($topicName));
- }
- if ( isset( $this->topics[$topicName]['partitions'][$partitionId] ) ) {
- return $this->topics[$topicName]['partitions'][$partitionId];
- } else {
- return null;
- }
- }
-
- // }}}
- // {{{ public function getTopicDetail()
-
- /**
- *
- * @param string $topicName
- * @access public
- * @return array
- */
- public function getTopicDetail($topicName)
- {
- if (!isset( $this->topics[$topicName] ) ) {
- $this->loadTopicDetail(array($topicName));
- }
- if (isset( $this->topics[$topicName] ) ) {
- return $this->topics[$topicName];
- } else {
- return array();
- }
- }
-
- // }}}
- // {{{ private function loadBrokers()
-
- private function loadBrokers()
- {
- $this->brokers = array();
- // not sure how to ask for only the brokers without a topic...
- // just ask for a topic we don't care about
- $this->loadTopicDetail(array('test'));
- }
-
- // }}}
- // {{{ private function loadTopicDetail()
-
- /**
- * @param array $topics
- */
- private function loadTopicDetail(array $topics)
- {
- if ($this->client === null) {
- throw new \Kafka\Exception('client was not provided');
- }
- $response = null;
- foreach ($this->hostList as $host) {
- try {
- $response = null;
- $stream = $this->client->getStream($host);
- $conn = $stream['stream'];
- $encoder = new \Kafka\Protocol\Encoder($conn);
- $encoder->metadataRequest($topics);
- $decoder = new \Kafka\Protocol\Decoder($conn);
- $response = $decoder->metadataResponse();
- $this->client->freeStream($stream['key']);
- break;
- } catch (\Kafka\Exception $e) {
- // keep trying
- }
- }
- if ($response) {
- // Merge arrays using "+" operator to preserve key (which are broker IDs)
- // instead of array_merge (which reindex numeric keys)
- $this->brokers = $response['brokers'] + $this->brokers;
- $this->topics = array_merge($response['topics'], $this->topics);
- } else {
- throw new \Kafka\Exception('Could not connect to any kafka brokers');
- }
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Offset.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Offset.php
deleted file mode 100644
index 744d2087..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Offset.php
+++ /dev/null
@@ -1,301 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Offset
-{
- // {{{ consts
-
- /**
- * receive the latest offset
- */
- const LAST_OFFSET = -1;
-
- /**
- * receive the earliest available offset.
- */
- const EARLIEST_OFFSET = -2;
-
- /**
- * function getOffset if read invalid value use latest offset instead of
- */
- const DEFAULT_LAST = -2;
-
- /**
- * function getOffset if read invalid value use earliest offset instead of
- */
- const DEFAULT_EARLY = -1;
-
- // }}}
- // {{{ members
-
- /**
- * client
- *
- * @var mixed
- * @access private
- */
- private $client = null;
-
- /**
- * consumer group
- *
- * @var string
- * @access private
- */
- private $groupId = '';
-
- /**
- * topic name
- *
- * @var string
- * @access private
- */
- private $topicName = '';
-
- /**
- * topic partition id, default 0
- *
- * @var float
- * @access private
- */
- private $partitionId = 0;
-
- /**
- * encoder
- *
- * @var mixed
- * @access private
- */
- private $encoder = null;
-
- /**
- * decoder
- *
- * @var mixed
- * @access private
- */
- private $decoder = null;
-
- /**
- * streamKey
- *
- * @var string
- * @access private
- */
- private $streamKey = '';
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @access public
- * @param $client
- * @param $groupId
- * @param $topicName
- * @param int $partitionId
- */
- public function __construct($client, $groupId, $topicName, $partitionId = 0)
- {
- $this->client = $client;
- $this->groupId = $groupId;
- $this->topicName = $topicName;
- $this->partitionId = $partitionId;
-
- $host = $this->client->getHostByPartition($topicName, $partitionId);
- $stream = $this->client->getStream($host);
- $conn = $stream['stream'];
- $this->streamKey = $stream['key'];
- $this->encoder = new \Kafka\Protocol\Encoder($conn);
- $this->decoder = new \Kafka\Protocol\Decoder($conn);
- }
-
- // }}}
- // {{{ public function setOffset()
-
- /**
- * set consumer offset
- *
- * @param integer $offset
- * @access public
- * @return void
- */
- public function setOffset($offset)
- {
- $maxOffset = $this->getProduceOffset();
- if ($offset > $maxOffset) {
- throw new \Kafka\Exception('this offset is invalid. must less than max offset:' . $maxOffset);
- }
-
- $data = array(
- 'group_id' => $this->groupId,
- 'data' => array(
- array(
- 'topic_name' => $this->topicName,
- 'partitions' => array(
- array(
- 'partition_id' => $this->partitionId,
- 'offset' => $offset,
- ),
- ),
- ),
- ),
- );
-
- $topicName = $this->topicName;
- $partitionId = $this->partitionId;
-
- $this->encoder->commitOffsetRequest($data);
- $result = $this->decoder->commitOffsetResponse();
- $this->client->freeStream($this->streamKey);
- if (!isset($result[$topicName][$partitionId]['errCode'])) {
- throw new \Kafka\Exception('commit topic offset failed.');
- }
- if ($result[$topicName][$partitionId]['errCode'] != 0) {
- throw new \Kafka\Exception(\Kafka\Protocol\Decoder::getError($result[$topicName][$partitionId]['errCode']));
- }
- }
-
- // }}}
- // {{{ public function getOffset()
-
- /**
- * get consumer offset
- *
- * @param integer $defaultOffset
- * if defaultOffset -1 instead of early offset
- * if defaultOffset -2 instead of last offset
- * @access public
- * @return int
- */
- public function getOffset($defaultOffset = self::DEFAULT_LAST)
- {
- $maxOffset = $this->getProduceOffset(self::LAST_OFFSET);
- $minOffset = $this->getProduceOffset(self::EARLIEST_OFFSET);
- $data = array(
- 'group_id' => $this->groupId,
- 'data' => array(
- array(
- 'topic_name' => $this->topicName,
- 'partitions' => array(
- array(
- 'partition_id' => $this->partitionId,
- ),
- ),
- ),
- ),
- );
-
- $this->encoder->fetchOffsetRequest($data);
- $result = $this->decoder->fetchOffsetResponse();
- $this->client->freeStream($this->streamKey);
-
- $topicName = $this->topicName;
- $partitionId = $this->partitionId;
- if (!isset($result[$topicName][$partitionId]['errCode'])) {
- throw new \Kafka\Exception('fetch topic offset failed.');
- }
- if ($result[$topicName][$partitionId]['errCode'] == 3) {
- switch ($defaultOffset) {
- case self::DEFAULT_LAST:
- Log::log("topic name: $topicName, partitionId: $partitionId, get offset value is default last.", LOG_INFO);
- return $maxOffset;
- case self::DEFAULT_EARLY:
- Log::log("topic name: $topicName, partitionId: $partitionId, get offset value is default early.", LOG_INFO);
- return $minOffset;
- default:
- $this->setOffset($defaultOffset);
- Log::log("topic name: $topicName, partitionId: $partitionId, get offset value is default $defaultOffset.", LOG_INFO);
- return $defaultOffset;
- }
- } elseif ($result[$topicName][$partitionId]['errCode'] == 0) {
- $offset = $result[$topicName][$partitionId]['offset'];
- if ($offset > $maxOffset || $offset < $minOffset) {
- if ($defaultOffset == self::DEFAULT_EARLY) {
- $offset = $minOffset;
- } else {
- $offset = $maxOffset;
- }
- }
- Log::log("topic name: $topicName, partitionId: $partitionId, get offset value is $offset.", LOG_INFO);
-
- return $offset;
- } else {
- throw new \Kafka\Exception(\Kafka\Protocol\Decoder::getError($result[$topicName][$partitionId]['errCode']));
- }
- }
-
- // }}}
- // {{{ public function getProduceOffset()
-
- /**
- * get produce server offset
- *
- * @param integer $timeLine
- * @access public
- * @return int
- */
- public function getProduceOffset($timeLine = self::LAST_OFFSET)
- {
- $topicName = $this->topicName;
- $partitionId = $this->partitionId;
-
- $requestData = array(
- 'data' => array(
- array(
- 'topic_name' => $this->topicName,
- 'partitions' => array(
- array(
- 'partition_id' => $this->partitionId,
- 'time' => $timeLine,
- 'max_offset' => 1,
- ),
- ),
- ),
- ),
- );
- $this->encoder->offsetRequest($requestData);
- $result = $this->decoder->offsetResponse();
- $this->client->freeStream($this->streamKey);
-
- if (!isset($result[$topicName][$partitionId]['offset'])) {
- if (isset($result[$topicName][$partitionId]['errCode'])) {
- throw new \Kafka\Exception(\Kafka\Protocol\Decoder::getError($result[$topicName][$partitionId]['errCode']));
- } else {
- throw new \Kafka\Exception('get offset failed. topic name:' . $this->topicName . ' partitionId: ' . $this->partitionId);
- }
- }
-
- return array_shift($result[$topicName][$partitionId]['offset']);
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Produce.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Produce.php
deleted file mode 100644
index 8e735e84..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Produce.php
+++ /dev/null
@@ -1,330 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Produce
-{
- // {{{ consts
- // }}}
- // {{{ members
-
- /**
- * client
- *
- * @var mixed
- * @access private
- */
- private $client = null;
-
- /**
- * send message options cache
- *
- * @var array
- * @access private
- */
- private $payload = array();
-
- /**
- * default the server will not send any response
- *
- * @var float
- * @access private
- */
- private $requiredAck = 0;
-
- /**
- * default timeout is 100ms
- *
- * @var float
- * @access private
- */
- private $timeout = 100;
-
- /**
- * produce instance
- *
- * @var \Kafka\Produce
- * @access private
- */
- private static $instance = null;
-
- // }}}
- // {{{ functions
- // {{{ public function static getInstance()
-
- /**
- * set send messages
- *
- * @access public
- * @param $hostList
- * @param $timeout
- * @param null $kafkaHostList
- * @return Produce
- */
- public static function getInstance($hostList, $timeout, $kafkaHostList = null)
- {
- if (is_null(self::$instance)) {
- self::$instance = new self($hostList, $timeout, $kafkaHostList);
- }
-
- return self::$instance;
- }
-
- // }}}
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @access public
- * @param $hostList
- * @param null $timeout
- * @param null $kafkaHostList
- */
- public function __construct($hostList, $timeout = null, $kafkaHostList = null)
- {
- if ($hostList instanceof \Kafka\ClusterMetaData) {
- $metadata = $hostList;
- } elseif ( $kafkaHostList !== null ) {
- $metadata = new \Kafka\MetaDataFromKafka($kafkaHostList);
- } else {
- $metadata = new \Kafka\ZooKeeper($hostList, $timeout);
- }
- $this->client = new \Kafka\Client($metadata);
- }
-
- // }}}
- // {{{ public function setMessages()
-
- /**
- * set send messages
- *
- * @access public
- * @param $topicName
- * @param int $partitionId
- * @param array $messages
- * @return Produce
- */
- public function setMessages($topicName, $partitionId = 0, $messages = array())
- {
- if (isset($this->payload[$topicName][$partitionId])) {
- $this->payload[$topicName][$partitionId] =
- array_merge($this->payload[$topicName][$partitionId], $messages);
- } else {
- $this->payload[$topicName][$partitionId] = $messages;
- }
-
- return $this;
- }
-
- // }}}
- // {{{ public function setRequireAck()
-
- /**
- * set request mode
- * This field indicates how many acknowledgements the servers should receive
- * before responding to the request. If it is 0 the server will not send any
- * response (this is the only case where the server will not reply to a
- * request). If it is 1, the server will wait the data is written to the
- * local log before sending a response. If it is -1 the server will block
- * until the message is committed by all in sync replicas before sending a
- * response. For any number > 1 the server will block waiting for this
- * number of acknowledgements to occur (but the server will never wait for
- * more acknowledgements than there are in-sync replicas).
- *
- * @param int $ack
- * @access public
- * @return Produce
- */
- public function setRequireAck($ack = 0)
- {
- if ($ack >= -1) {
- $this->requiredAck = (int) $ack;
- }
-
- return $this;
- }
-
- // }}}
- // {{{ public function setTimeOut()
-
- /**
- * set request timeout
- *
- * @param int $timeout
- * @access public
- * @return Produce
- */
- public function setTimeOut($timeout = 100)
- {
- if ((int) $timeout) {
- $this->timeout = (int) $timeout;
- }
- return $this;
- }
-
- // }}}
- // {{{ public function send()
-
- /**
- * send message to broker
- *
- * @access public
- * @return bool|array
- */
- public function send()
- {
- $data = $this->_formatPayload();
- if (empty($data)) {
- return false;
- }
-
- $responseData = array();
- foreach ($data as $host => $requestData) {
- $stream = $this->client->getStream($host);
- $conn = $stream['stream'];
- $encoder = new \Kafka\Protocol\Encoder($conn);
- $encoder->produceRequest($requestData);
- if ((int) $this->requiredAck !== 0) { // get broker response
- $decoder = new \Kafka\Protocol\Decoder($conn);
- $response = $decoder->produceResponse();
- foreach ($response as $topicName => $info) {
- if (!isset($responseData[$topicName])) {
- $responseData[$topicName] = $info;
- } else {
- $responseData[$topicName] = array_merge($info, $responseData[$topicName]);
- }
- }
- }
-
- $this->client->freeStream($stream['key']);
- }
-
- $this->payload = array();
- return $responseData;
- }
-
- // }}}
- // {{{ public function getClient()
-
- /**
- * get client object
- *
- * @access public
- * @return Client
- */
- public function getClient()
- {
- return $this->client;
- }
-
- /**
- * passthru method to client for setting stream options
- *
- * @access public
- * @param array $options
- */
- public function setStreamOptions($options = array())
- {
- $this->client->setStreamOptions($options);
- }
-
- // }}}
- // {{{ public function getAvailablePartitions()
-
- /**
- * get available partition
- *
- * @access public
- * @param $topicName
- * @return array
- */
- public function getAvailablePartitions($topicName)
- {
- $topicDetail = $this->client->getTopicDetail($topicName);
- if (is_array($topicDetail) && isset($topicDetail['partitions'])) {
- $topicPartitiions = array_keys($topicDetail['partitions']);
- } else {
- $topicPartitiions = array();
- }
-
- return $topicPartitiions;
- }
-
- // }}}
- // {{{ private function _formatPayload()
-
- /**
- * format payload array
- *
- * @access private
- * @return array
- */
- private function _formatPayload()
- {
- if (empty($this->payload)) {
- return array();
- }
-
- $data = array();
- foreach ($this->payload as $topicName => $partitions) {
- foreach ($partitions as $partitionId => $messages) {
- $host = $this->client->getHostByPartition($topicName, $partitionId);
- $data[$host][$topicName][$partitionId] = $messages;
- }
- }
-
- $requestData = array();
- foreach ($data as $host => $info) {
- $topicData = array();
- foreach ($info as $topicName => $partitions) {
- $partitionData = array();
- foreach ($partitions as $partitionId => $messages) {
- $partitionData[] = array(
- 'partition_id' => $partitionId,
- 'messages' => $messages,
- );
- }
- $topicData[] = array(
- 'topic_name' => $topicName,
- 'partitions' => $partitionData,
- );
- }
-
- $requestData[$host] = array(
- 'required_ack' => $this->requiredAck,
- 'timeout' => $this->timeout,
- 'data' => $topicData,
- );
- }
-
- return $requestData;
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Decoder.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Decoder.php
deleted file mode 100644
index 261906e6..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Decoder.php
+++ /dev/null
@@ -1,422 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Decoder extends Protocol
-{
- // {{{ functions
- // {{{ public function produceResponse()
-
- /**
- * decode produce response
- *
- * @access public
- * @return array
- */
- public function produceResponse()
- {
- $result = array();
- $dataLen = self::unpack(self::BIT_B32, $this->stream->read(4, true));
- $dataLen = array_shift($dataLen);
- if (!$dataLen) {
- throw new \Kafka\Exception\Protocol('produce response invalid.');
- }
- $data = $this->stream->read($dataLen, true);
-
- // parse data struct
- $offset = 4;
- $topicCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $topicCount = array_shift($topicCount);
- $offset += 4;
- for ($i = 0; $i < $topicCount; $i++) {
- $topicLen = self::unpack(self::BIT_B16, substr($data, $offset, 2)); // int16 topic name length
- $topicLen = isset($topicLen[1]) ? $topicLen[1] : 0;
- $offset += 2;
- $topicName = substr($data, $offset, $topicLen);
- $offset += $topicLen;
- $partitionCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $partitionCount = isset($partitionCount[1]) ? $partitionCount[1] : 0;
- $offset += 4;
- $result[$topicName] = array();
- for ($j = 0; $j < $partitionCount; $j++) {
- $partitionId = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $errCode = self::unpack(self::BIT_B16_SIGNED, substr($data, $offset, 2));
- $offset += 2;
- $partitionOffset = self::unpack(self::BIT_B64, substr($data, $offset, 8));
- $offset += 8;
- $result[$topicName][$partitionId[1]] = array(
- 'errCode' => $errCode[1],
- 'offset' => $partitionOffset
- );
- }
- }
-
- return $result;
- }
-
- // }}}
- // {{{ public function fetchResponse()
-
- /**
- * decode fetch response
- *
- * @access public
- * @return \Iterator
- */
- public function fetchResponse()
- {
- return new \Kafka\Protocol\Fetch\Topic($this->stream);
- }
-
- // }}}
- // {{{ public function metadataResponse()
-
- /**
- * decode metadata response
- *
- * @access public
- * @return array
- */
- public function metadataResponse()
- {
- $broker = array();
- $topic = array();
- $dataLen = self::unpack(self::BIT_B32, $this->stream->read(4, true));
- $dataLen = array_shift($dataLen);
- if (!$dataLen) {
- throw new \Kafka\Exception\Protocol('metaData response invalid.');
- }
- $data = $this->stream->read($dataLen, true);
- $offset = 4;
- $brokerCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $brokerCount = isset($brokerCount[1]) ? $brokerCount[1] : 0;
- for ($i = 0; $i < $brokerCount; $i++) {
- $nodeId = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $nodeId = $nodeId[1];
- $offset += 4;
- $hostNameLen = self::unpack(self::BIT_B16, substr($data, $offset, 2)); // int16 host name length
- $hostNameLen = isset($hostNameLen[1]) ? $hostNameLen[1] : 0;
- $offset += 2;
- $hostName = substr($data, $offset, $hostNameLen);
- $offset += $hostNameLen;
- $port = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $broker[$nodeId] = array(
- 'host' => $hostName,
- 'port' => $port[1],
- );
- }
-
- $topicMetaCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $topicMetaCount = isset($topicMetaCount[1]) ? $topicMetaCount[1] : 0;
- for ($i = 0; $i < $topicMetaCount; $i++) {
- $topicErrCode = self::unpack(self::BIT_B16, substr($data, $offset, 2));
- $offset += 2;
- $topicLen = self::unpack(self::BIT_B16, substr($data, $offset, 2));
- $offset += 2;
- $topicName = substr($data, $offset, $topicLen[1]);
- $offset += $topicLen[1];
- $partitionCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $partitionCount = isset($partitionCount[1]) ? $partitionCount[1] : 0;
- $topic[$topicName]['errCode'] = $topicErrCode[1];
- $partitions = array();
- for ($j = 0; $j < $partitionCount; $j++) {
- $partitionErrCode = self::unpack(self::BIT_B16, substr($data, $offset, 2));
- $offset += 2;
- $partitionId = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $partitionId = isset($partitionId[1]) ? $partitionId[1] : 0;
- $offset += 4;
- $leaderId = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $repliasCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $repliasCount = isset($repliasCount[1]) ? $repliasCount[1] : 0;
- $replias = array();
- for ($z = 0; $z < $repliasCount; $z++) {
- $repliaId = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $replias[] = $repliaId[1];
- }
- $isrCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $isrCount = isset($isrCount[1]) ? $isrCount[1] : 0;
- $isrs = array();
- for ($z = 0; $z < $isrCount; $z++) {
- $isrId = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $isrs[] = $isrId[1];
- }
-
- $partitions[$partitionId] = array(
- 'errCode' => $partitionErrCode[1],
- 'leader' => $leaderId[1],
- 'replicas' => $replias,
- 'isr' => $isrs,
- );
- }
- $topic[$topicName]['partitions'] = $partitions;
- }
-
- $result = array(
- 'brokers' => $broker,
- 'topics' => $topic,
- );
- return $result;
- }
-
- // }}}
- // {{{ public function offsetResponse()
-
- /**
- * decode offset response
- *
- * @access public
- * @return array
- */
- public function offsetResponse()
- {
- $result = array();
- $dataLen = self::unpack(self::BIT_B32, $this->stream->read(4, true));
- $dataLen = array_shift($dataLen);
- if (!$dataLen) {
- throw new \Kafka\Exception\Protocol('offset response invalid.');
- }
- $data = $this->stream->read($dataLen, true);
- $offset = 4;
- $topicCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $topicCount = array_shift($topicCount);
- for ($i = 0; $i < $topicCount; $i++) {
- $topicLen = self::unpack(self::BIT_B16, substr($data, $offset, 2)); // int16 topic name length
- $topicLen = isset($topicLen[1]) ? $topicLen[1] : 0;
- $offset += 2;
- $topicName = substr($data, $offset, $topicLen);
- $offset += $topicLen;
- $partitionCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $partitionCount = isset($partitionCount[1]) ? $partitionCount[1] : 0;
- $offset += 4;
- $result[$topicName] = array();
- for ($j = 0; $j < $partitionCount; $j++) {
- $partitionId = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $errCode = self::unpack(self::BIT_B16, substr($data, $offset, 2));
- $offset += 2;
- $offsetCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $offsetCount = array_shift($offsetCount);
- $offsetArr = array();
- for ($z = 0; $z < $offsetCount; $z++) {
- $offsetArr[] = self::unpack(self::BIT_B64, substr($data, $offset, 8));
- $offset += 8;
- }
- $result[$topicName][$partitionId[1]] = array(
- 'errCode' => $errCode[1],
- 'offset' => $offsetArr
- );
- }
- }
- return $result;
- }
-
- // }}}
- // {{{ public function commitOffsetResponse()
-
- /**
- * decode commit offset response
- *
- * @access public
- * @return array
- */
- public function commitOffsetResponse()
- {
- $result = array();
- $dataLen = self::unpack(self::BIT_B32, $this->stream->read(4, true));
- $dataLen = array_shift($dataLen);
- if (!$dataLen) {
- throw new \Kafka\Exception\Protocol('commit offset response invalid.');
- }
- $data = $this->stream->read($dataLen, true);
- $offset = 4;
- $topicCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $topicCount = array_shift($topicCount);
- for ($i = 0; $i < $topicCount; $i++) {
- $topicLen = self::unpack(self::BIT_B16, substr($data, $offset, 2)); // int16 topic name length
- $topicLen = isset($topicLen[1]) ? $topicLen[1] : 0;
- $offset += 2;
- $topicName = substr($data, $offset, $topicLen);
- $offset += $topicLen;
- $partitionCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $partitionCount = isset($partitionCount[1]) ? $partitionCount[1] : 0;
- $offset += 4;
- $result[$topicName] = array();
- for ($j = 0; $j < $partitionCount; $j++) {
- $partitionId = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $errCode = self::unpack(self::BIT_B16, substr($data, $offset, 2));
- $offset += 2;
- $result[$topicName][$partitionId[1]] = array(
- 'errCode' => $errCode[1],
- );
- }
- }
- return $result;
- }
-
- // }}}
- // {{{ public function fetchOffsetResponse()
-
- /**
- * decode fetch offset response
- *
- * @access public
- * @return array
- */
- public function fetchOffsetResponse()
- {
- $result = array();
- $dataLen = self::unpack(self::BIT_B32, $this->stream->read(4, true));
- $dataLen = array_shift($dataLen);
- if (!$dataLen) {
- throw new \Kafka\Exception\Protocol('fetch offset response invalid.');
- }
- $data = $this->stream->read($dataLen, true);
- $offset = 4;
- $topicCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $topicCount = array_shift($topicCount);
- for ($i = 0; $i < $topicCount; $i++) {
- $topicLen = self::unpack(self::BIT_B16, substr($data, $offset, 2)); // int16 topic name length
- $topicLen = isset($topicLen[1]) ? $topicLen[1] : 0;
- $offset += 2;
- $topicName = substr($data, $offset, $topicLen);
- $offset += $topicLen;
- $partitionCount = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $partitionCount = isset($partitionCount[1]) ? $partitionCount[1] : 0;
- $offset += 4;
- $result[$topicName] = array();
- for ($j = 0; $j < $partitionCount; $j++) {
- $partitionId = self::unpack(self::BIT_B32, substr($data, $offset, 4));
- $offset += 4;
- $partitionOffset = self::unpack(self::BIT_B64, substr($data, $offset, 8));
- $offset += 8;
- $metaLen = self::unpack(self::BIT_B16, substr($data, $offset, 2));
- $metaLen = array_shift($metaLen);
- $offset += 2;
- $metaData = '';
- if ($metaLen) {
- $metaData = substr($data, $offset, $metaLen);
- $offset += $metaLen;
- }
- $errCode = self::unpack(self::BIT_B16_SIGNED, substr($data, $offset, 2));
- $offset += 2;
- $result[$topicName][$partitionId[1]] = array(
- 'offset' => $partitionOffset,
- 'metadata' => $metaData,
- 'errCode' => $errCode[1],
- );
- }
- }
- return $result;
- }
-
- // }}}
- // {{{ public static function getError()
-
- /**
- * get error
- *
- * @param integer $errCode
- * @static
- * @access public
- * @return string
- */
- public static function getError($errCode)
- {
- switch($errCode) {
- case 0:
- $error = 'No error--it worked!';
- break;
- case -1:
- $error = 'An unexpected server error';
- break;
- case 1:
- $error = 'The requested offset is outside the range of offsets maintained by the server for the given topic/partition.';
- break;
- case 2:
- $error = 'This indicates that a message contents does not match its CRC';
- break;
- case 3:
- $error = 'This request is for a topic or partition that does not exist on this broker.';
- break;
- case 4:
- $error = 'The message has a negative size';
- break;
- case 5:
- $error = 'This error is thrown if we are in the middle of a leadership election and there is currently no leader for this partition and hence it is unavailable for writes';
- break;
- case 6:
- $error = 'This error is thrown if the client attempts to send messages to a replica that is not the leader for some partition. It indicates that the clients metadata is out of date.';
- break;
- case 7:
- $error = 'This error is thrown if the request exceeds the user-specified time limit in the request.';
- break;
- case 8:
- $error = 'This is not a client facing error and is used only internally by intra-cluster broker communication.';
- break;
- case 10:
- $error = 'The server has a configurable maximum message size to avoid unbounded memory allocation. This error is thrown if the client attempt to produce a message larger than this maximum.';
- break;
- case 11:
- $error = 'Internal error code for broker-to-broker communication.';
- break;
- case 12:
- $error = 'If you specify a string larger than configured maximum for offset metadata';
- break;
- case 14:
- $error = 'The broker returns this error code for an offset fetch request if it is still loading offsets (after a leader change for that offsets topic partition).';
- break;
- case 15:
- $error = 'The broker returns this error code for consumer metadata requests or offset commit requests if the offsets topic has not yet been created.';
- break;
- case 16:
- $error = 'The broker returns this error code if it receives an offset fetch or commit request for a consumer group that it is not a coordinator for.';
- break;
- default:
- $error = 'Unknown error';
- }
-
- return $error;
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Encoder.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Encoder.php
deleted file mode 100644
index 8f5e27bb..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Encoder.php
+++ /dev/null
@@ -1,660 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Encoder extends Protocol
-{
- // {{{ functions
- // {{{ public function produceRequest()
-
- /**
- * produce request
- *
- * @param array $payloads
- * @param int $compression
- * @return int
- * @access public
- */
- public function produceRequest($payloads, $compression = self::COMPRESSION_NONE)
- {
- if (!isset($payloads['data'])) {
- throw new \Kafka\Exception\Protocol('given procude data invalid. `data` is undefined.');
- }
-
- if (!isset($payloads['required_ack'])) {
- // default server will not send any response
- // (this is the only case where the server will not reply to a request)
- $payloads['required_ack'] = 0;
- }
-
- if (!isset($payloads['timeout'])) {
- $payloads['timeout'] = 100; // default timeout 100ms
- }
-
- $header = self::requestHeader('kafka-php', 0, self::PRODUCE_REQUEST);
- $data = self::pack(self::BIT_B16, $payloads['required_ack']);
- $data .= self::pack(self::BIT_B32, $payloads['timeout']);
- $data .= self::encodeArray($payloads['data'], array(__CLASS__, '_encodeProcudeTopic'), $compression);
- $data = self::encodeString($header . $data, self::PACK_INT32);
-
- return $this->stream->write($data);
- }
-
- // }}}
- // {{{ public function metadataRequest()
-
- /**
- * build metadata request protocol
- *
- * @param array $topics
- * @access public
- * @return string
- */
- public function metadataRequest($topics)
- {
- if (!is_array($topics)) {
- $topics = array($topics);
- }
-
- foreach ($topics as $topic) {
- if (!is_string($topic)) {
- throw new \Kafka\Exception\Protocol('request metadata topic array have invalid value. ');
- }
- }
-
- $header = self::requestHeader('kafka-php', 0, self::METADATA_REQUEST);
- $data = self::encodeArray($topics, array(__CLASS__, 'encodeString'), self::PACK_INT16);
- $data = self::encodeString($header . $data, self::PACK_INT32);
-
- return $this->stream->write($data);
- }
-
- // }}}
- // {{{ public function fetchRequest()
-
- /**
- * build fetch request
- *
- * @param array $payloads
- * @access public
- * @return string
- */
- public function fetchRequest($payloads)
- {
- if (!isset($payloads['data'])) {
- throw new \Kafka\Exception\Protocol('given fetch kafka data invalid. `data` is undefined.');
- }
-
- if (!isset($payloads['replica_id'])) {
- $payloads['replica_id'] = -1;
- }
-
- if (!isset($payloads['max_wait_time'])) {
- $payloads['max_wait_time'] = 100; // default timeout 100ms
- }
-
- if (!isset($payloads['min_bytes'])) {
- $payloads['min_bytes'] = 64 * 1024; // 64k
- }
-
- $header = self::requestHeader('kafka-php', 0, self::FETCH_REQUEST);
- $data = self::pack(self::BIT_B32, $payloads['replica_id']);
- $data .= self::pack(self::BIT_B32, $payloads['max_wait_time']);
- $data .= self::pack(self::BIT_B32, $payloads['min_bytes']);
- $data .= self::encodeArray($payloads['data'], array(__CLASS__, '_encodeFetchTopic'));
- $data = self::encodeString($header . $data, self::PACK_INT32);
-
- return $this->stream->write($data);
- }
-
- // }}}
- // {{{ public function offsetRequest()
-
- /**
- * build offset request
- *
- * @param array $payloads
- * @access public
- * @return string
- */
- public function offsetRequest($payloads)
- {
- if (!isset($payloads['data'])) {
- throw new \Kafka\Exception\Protocol('given offset data invalid. `data` is undefined.');
- }
-
- if (!isset($payloads['replica_id'])) {
- $payloads['replica_id'] = -1;
- }
-
- $header = self::requestHeader('kafka-php', 0, self::OFFSET_REQUEST);
- $data = self::pack(self::BIT_B32, $payloads['replica_id']);
- $data .= self::encodeArray($payloads['data'], array(__CLASS__, '_encodeOffsetTopic'));
- $data = self::encodeString($header . $data, self::PACK_INT32);
-
- return $this->stream->write($data);
- }
-
- // }}}
- // {{{ public function commitOffsetRequest()
-
- /**
- * build consumer commit offset request
- *
- * @param array $payloads
- * @access public
- * @return string
- */
- public function commitOffsetRequest($payloads)
- {
- if (!isset($payloads['data'])) {
- throw new \Kafka\Exception\Protocol('given commit offset data invalid. `data` is undefined.');
- }
-
- if (!isset($payloads['group_id'])) {
- throw new \Kafka\Exception\Protocol('given commit offset data invalid. `group_id` is undefined.');
- }
-
- $header = self::requestHeader('kafka-php', 0, self::OFFSET_COMMIT_REQUEST);
- $data = self::encodeString($payloads['group_id'], self::PACK_INT16);
- $data .= self::encodeArray($payloads['data'], array(__CLASS__, '_encodeCommitOffset'));
- $data = self::encodeString($header . $data, self::PACK_INT32);
-
- return $this->stream->write($data);
- }
-
- // }}}
- // {{{ public function fetchOffsetRequest()
-
- /**
- * build consumer fetch offset request
- *
- * @param array $payloads
- * @access public
- * @return string
- */
- public function fetchOffsetRequest($payloads)
- {
- if (!isset($payloads['data'])) {
- throw new \Kafka\Exception\Protocol('given fetch offset data invalid. `data` is undefined.');
- }
-
- if (!isset($payloads['group_id'])) {
- throw new \Kafka\Exception\Protocol('given fetch offset data invalid. `group_id` is undefined.');
- }
-
- $header = self::requestHeader('kafka-php', 0, self::OFFSET_FETCH_REQUEST);
- $data = self::encodeString($payloads['group_id'], self::PACK_INT16);
- $data .= self::encodeArray($payloads['data'], array(__CLASS__, '_encodeFetchOffset'));
- $data = self::encodeString($header . $data, self::PACK_INT32);
-
- return $this->stream->write($data);
- }
-
- // }}}
- // {{{ public static function encodeString()
-
- /**
- * encode pack string type
- *
- * @param string $string
- * @param int $bytes self::PACK_INT32: int32 big endian order. self::PACK_INT16: int16 big endian order.
- * @param int $compression
- * @return string
- * @static
- * @access public
- */
- public static function encodeString($string, $bytes, $compression = self::COMPRESSION_NONE)
- {
- $packLen = ($bytes == self::PACK_INT32) ? self::BIT_B32 : self::BIT_B16;
- switch ($compression) {
- case self::COMPRESSION_NONE:
- break;
- case self::COMPRESSION_GZIP:
- $string = gzencode($string);
- break;
- case self::COMPRESSION_SNAPPY:
- throw new \Kafka\Exception\NotSupported('SNAPPY compression not yet implemented');
- default:
- throw new \Kafka\Exception\NotSupported('Unknown compression flag: ' . $compression);
- }
- return self::pack($packLen, strlen($string)) . $string;
- }
-
- // }}}
- // {{{ public static function encodeArray()
-
- /**
- * encode key array
- *
- * @param array $array
- * @param Callable $func
- * @param null $options
- * @return string
- * @static
- * @access public
- */
- public static function encodeArray(array $array, $func, $options = null)
- {
- if (!is_callable($func, false)) {
- throw new \Kafka\Exception\Protocol('Encode array failed, given function is not callable.');
- }
-
- $arrayCount = count($array);
-
- $body = '';
- foreach ($array as $value) {
- if (!is_null($options)) {
- $body .= call_user_func($func, $value, $options);
- } else {
- $body .= call_user_func($func, $value);
- }
- }
-
- return self::pack(self::BIT_B32, $arrayCount) . $body;
- }
-
- // }}}
- // {{{ public static function encodeMessageSet()
-
- /**
- * encode message set
- * N.B., MessageSets are not preceded by an int32 like other array elements
- * in the protocol.
- *
- * @param array $messages
- * @param int $compression
- * @return string
- * @static
- * @access public
- */
- public static function encodeMessageSet($messages, $compression = self::COMPRESSION_NONE)
- {
- if (!is_array($messages)) {
- $messages = array($messages);
- }
-
- $data = '';
- foreach ($messages as $message) {
- $tmpMessage = self::_encodeMessage($message, $compression);
-
- // int64 -- message offset Message
- $data .= self::pack(self::BIT_B64, 0) . self::encodeString($tmpMessage, self::PACK_INT32);
- }
- return $data;
- }
-
- // }}}
- // {{{ public static function requestHeader()
-
- /**
- * get request header
- *
- * @param string $clientId
- * @param integer $correlationId
- * @param integer $apiKey
- * @static
- * @access public
- * @return string
- */
- public static function requestHeader($clientId, $correlationId, $apiKey)
- {
- // int16 -- apiKey int16 -- apiVersion int32 correlationId
- $binData = self::pack(self::BIT_B16, $apiKey);
- $binData .= self::pack(self::BIT_B16, self::API_VERSION);
- $binData .= self::pack(self::BIT_B32, $correlationId);
-
- // concat client id
- $binData .= self::encodeString($clientId, self::PACK_INT16);
-
- return $binData;
- }
-
- // }}}
- // {{{ protected static function _encodeMessage()
-
- /**
- * encode signal message
- *
- * @param string $message
- * @param int $compression
- * @return string
- * @static
- * @access protected
- */
- protected static function _encodeMessage($message, $compression = self::COMPRESSION_NONE)
- {
- // int8 -- magic int8 -- attribute
- $data = self::pack(self::BIT_B8, self::MESSAGE_MAGIC);
- $data .= self::pack(self::BIT_B8, $compression);
-
- // message key
- $data .= self::encodeString('', self::PACK_INT32);
-
- // message value
- $data .= self::encodeString($message, self::PACK_INT32, $compression);
-
- $crc = crc32($data);
-
- // int32 -- crc code string data
- $message = self::pack(self::BIT_B32, $crc) . $data;
-
- return $message;
- }
-
- // }}}
- // {{{ protected static function _encodeProcudePartion()
-
- /**
- * encode signal part
- *
- * @param $values
- * @param $compression
- * @return string
- * @internal param $partions
- * @static
- * @access protected
- */
- protected static function _encodeProcudePartion($values, $compression)
- {
- if (!isset($values['partition_id'])) {
- throw new \Kafka\Exception\Protocol('given produce data invalid. `partition_id` is undefined.');
- }
-
- if (!isset($values['messages']) || empty($values['messages'])) {
- throw new \Kafka\Exception\Protocol('given produce data invalid. `messages` is undefined.');
- }
-
- $data = self::pack(self::BIT_B32, $values['partition_id']);
- $data .= self::encodeString(self::encodeMessageSet($values['messages'], $compression), self::PACK_INT32);
-
- return $data;
- }
-
- // }}}
- // {{{ protected static function _encodeProcudeTopic()
-
- /**
- * encode signal topic
- *
- * @param $values
- * @param $compression
- * @return string
- * @internal param $partions
- * @static
- * @access protected
- */
- protected static function _encodeProcudeTopic($values, $compression)
- {
- if (!isset($values['topic_name'])) {
- throw new \Kafka\Exception\Protocol('given produce data invalid. `topic_name` is undefined.');
- }
-
- if (!isset($values['partitions']) || empty($values['partitions'])) {
- throw new \Kafka\Exception\Protocol('given produce data invalid. `partitions` is undefined.');
- }
-
- $topic = self::encodeString($values['topic_name'], self::PACK_INT16);
- $partitions = self::encodeArray($values['partitions'], array(__CLASS__, '_encodeProcudePartion'), $compression);
-
- return $topic . $partitions;
- }
-
- // }}}
- // {{{ protected static function _encodeFetchPartion()
-
- /**
- * encode signal part
- *
- * @param partions
- * @static
- * @access protected
- * @return string
- */
- protected static function _encodeFetchPartion($values)
- {
- if (!isset($values['partition_id'])) {
- throw new \Kafka\Exception\Protocol('given fetch data invalid. `partition_id` is undefined.');
- }
-
- if (!isset($values['offset'])) {
- $values['offset'] = 0;
- }
-
- if (!isset($values['max_bytes'])) {
- $values['max_bytes'] = 100 * 1024 * 1024;
- }
-
- $data = self::pack(self::BIT_B32, $values['partition_id']);
- $data .= self::pack(self::BIT_B64, $values['offset']);
- $data .= self::pack(self::BIT_B32, $values['max_bytes']);
-
- return $data;
- }
-
- // }}}
- // {{{ protected static function _encodeFetchTopic()
-
- /**
- * encode signal topic
- *
- * @param partions
- * @static
- * @access protected
- * @return string
- */
- protected static function _encodeFetchTopic($values)
- {
- if (!isset($values['topic_name'])) {
- throw new \Kafka\Exception\Protocol('given fetch data invalid. `topic_name` is undefined.');
- }
-
- if (!isset($values['partitions']) || empty($values['partitions'])) {
- throw new \Kafka\Exception\Protocol('given fetch data invalid. `partitions` is undefined.');
- }
-
- $topic = self::encodeString($values['topic_name'], self::PACK_INT16);
- $partitions = self::encodeArray($values['partitions'], array(__CLASS__, '_encodeFetchPartion'));
-
- return $topic . $partitions;
- }
-
- // }}}
- // {{{ protected static function _encodeOffsetPartion()
-
- /**
- * encode signal part
- *
- * @param partions
- * @static
- * @access protected
- * @return string
- */
- protected static function _encodeOffsetPartion($values)
- {
- if (!isset($values['partition_id'])) {
- throw new \Kafka\Exception\Protocol('given offset data invalid. `partition_id` is undefined.');
- }
-
- if (!isset($values['time'])) {
- $values['time'] = -1; // -1
- }
-
- if (!isset($values['max_offset'])) {
- $values['max_offset'] = 100000;
- }
-
- $data = self::pack(self::BIT_B32, $values['partition_id']);
- $data .= self::pack(self::BIT_B64, $values['time']);
- $data .= self::pack(self::BIT_B32, $values['max_offset']);
-
- return $data;
- }
-
- // }}}
- // {{{ protected static function _encodeOffsetTopic()
-
- /**
- * encode signal topic
- *
- * @param partions
- * @static
- * @access protected
- * @return string
- */
- protected static function _encodeOffsetTopic($values)
- {
- if (!isset($values['topic_name'])) {
- throw new \Kafka\Exception\Protocol('given offset data invalid. `topic_name` is undefined.');
- }
-
- if (!isset($values['partitions']) || empty($values['partitions'])) {
- throw new \Kafka\Exception\Protocol('given offset data invalid. `partitions` is undefined.');
- }
-
- $topic = self::encodeString($values['topic_name'], self::PACK_INT16);
- $partitions = self::encodeArray($values['partitions'], array(__CLASS__, '_encodeOffsetPartion'));
-
- return $topic . $partitions;
- }
-
- // }}}
- // {{{ protected static function _encodeCommitOffsetPartion()
-
- /**
- * encode signal part
- *
- * @param partions
- * @static
- * @access protected
- * @return string
- */
- protected static function _encodeCommitOffsetPartion($values)
- {
- if (!isset($values['partition_id'])) {
- throw new \Kafka\Exception\Protocol('given commit offset data invalid. `partition_id` is undefined.');
- }
-
- if (!isset($values['offset'])) {
- throw new \Kafka\Exception\Protocol('given commit offset data invalid. `offset` is undefined.');
- }
-
- if (!isset($values['time'])) {
- $values['time'] = -1;
- }
-
- if (!isset($values['metadata'])) {
- $values['metadata'] = 'm';
- }
-
- $data = self::pack(self::BIT_B32, $values['partition_id']);
- $data .= self::pack(self::BIT_B64, $values['offset']);
- $data .= self::pack(self::BIT_B64, $values['time']);
- $data .= self::encodeString($values['metadata'], self::PACK_INT16);
-
- return $data;
- }
-
- // }}}
- // {{{ protected static function _encodeCommitOffset()
-
- /**
- * encode signal topic
- *
- * @param partions
- * @static
- * @access protected
- * @return string
- */
- protected static function _encodeCommitOffset($values)
- {
- if (!isset($values['topic_name'])) {
- throw new \Kafka\Exception\Protocol('given commit offset data invalid. `topic_name` is undefined.');
- }
-
- if (!isset($values['partitions']) || empty($values['partitions'])) {
- throw new \Kafka\Exception\Protocol('given commit offset data invalid. `partitions` is undefined.');
- }
-
- $topic = self::encodeString($values['topic_name'], self::PACK_INT16);
- $partitions = self::encodeArray($values['partitions'], array(__CLASS__, '_encodeCommitOffsetPartion'));
-
- return $topic . $partitions;
- }
-
- // }}}
- // {{{ protected static function _encodeFetchOffsetPartion()
-
- /**
- * encode signal part
- *
- * @param partions
- * @static
- * @access protected
- * @return string
- */
- protected static function _encodeFetchOffsetPartion($values)
- {
- if (!isset($values['partition_id'])) {
- throw new \Kafka\Exception\Protocol('given fetch offset data invalid. `partition_id` is undefined.');
- }
-
- $data = self::pack(self::BIT_B32, $values['partition_id']);
-
- return $data;
- }
-
- // }}}
- // {{{ protected static function _encodeFetchOffset()
-
- /**
- * encode signal topic
- *
- * @param partions
- * @static
- * @access protected
- * @return string
- */
- protected static function _encodeFetchOffset($values)
- {
- if (!isset($values['topic_name'])) {
- throw new \Kafka\Exception\Protocol('given fetch offset data invalid. `topic_name` is undefined.');
- }
-
- if (!isset($values['partitions']) || empty($values['partitions'])) {
- throw new \Kafka\Exception\Protocol('given fetch offset data invalid. `partitions` is undefined.');
- }
-
- $topic = self::encodeString($values['topic_name'], self::PACK_INT16);
- $partitions = self::encodeArray($values['partitions'], array(__CLASS__, '_encodeFetchOffsetPartion'));
-
- return $topic . $partitions;
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/CommitOffset.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/CommitOffset.php
deleted file mode 100644
index 9fadb568..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/CommitOffset.php
+++ /dev/null
@@ -1,119 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol\Fetch\Helper;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class CommitOffset extends HelperAbstract
-{
- // {{{ members
-
- /**
- * consumer group
- *
- * @var string
- * @access protected
- */
- protected $group = '';
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @access public
- * @param $client
- */
- public function __construct($client)
- {
- $this->client = $client;
- }
-
- // }}}
- // {{{ public function setGroup()
-
- /**
- * set consumer group
- *
- * @access public
- * @param $group
- */
- public function setGroup($group)
- {
- $this->group = $group;
- }
-
- // }}}
- // {{{ public function onStreamEof()
-
- /**
- * on stream eof call
- *
- * @param string $streamKey
- * @access public
- * @return void
- */
- public function onStreamEof($streamKey)
- {
- }
-
- // }}}
- // {{{ public function onTopicEof()
-
- /**
- * on topic eof call
- *
- * @param string $topicName
- * @access public
- * @return void
- */
- public function onTopicEof($topicName)
- {
- }
-
- // }}}
- // {{{ public function onPartitionEof()
-
- /**
- * on partition eof call
- *
- * @param \Kafka\Protocol\Fetch\Partition $partition
- * @access public
- * @return void
- */
- public function onPartitionEof($partition)
- {
- $partitionId = $partition->key();
- $topicName = $partition->getTopicName();
- $offset = $partition->getMessageOffset();
- $offsetObject = new \Kafka\Offset($this->client, $this->group, $topicName, $partitionId);
- $offsetObject->setOffset($offset + 1);
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Consumer.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Consumer.php
deleted file mode 100644
index 49560b9b..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Consumer.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-namespace Kafka\Protocol\Fetch\Helper;
-/**
- * Description of Consumer
- *
- * @author daniel
- */
-class Consumer extends HelperAbstract
-{
- protected $consumer;
-
- protected $offsetStrategy;
-
- /**
- * Consumer constructor.
- * @param \Kafka\Consumer $consumer
- */
- public function __construct(\Kafka\Consumer $consumer)
- {
- $this->consumer = $consumer;
- }
-
- /**
- * @param \Kafka\Protocol\Fetch\Partition $partition
- */
- public function onPartitionEof($partition)
- {
- $partitionId = $partition->key();
- $topicName = $partition->getTopicName();
- $offset = $partition->getMessageOffset();
- $this->consumer->setFromOffset(true);
- $this->consumer->setPartition($topicName, $partitionId, ($offset +1));
- }
-
- /**
- * @param string $streamKey
- */
- public function onStreamEof($streamKey)
- {
-
- }
-
- /**
- * @param string $topicName
- */
- public function onTopicEof($topicName)
- {
-
- }
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/FreeStream.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/FreeStream.php
deleted file mode 100644
index b82ca3c9..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/FreeStream.php
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol\Fetch\Helper;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class FreeStream extends HelperAbstract
-{
- // {{{ members
-
- /**
- * streams
- *
- * @var array
- * @access protected
- */
- protected $streams = array();
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @access public
- * @param $client
- */
- public function __construct($client)
- {
- $this->client = $client;
- }
-
- // }}}
- // {{{ public function setStreams()
-
- /**
- * set streams
- *
- * @access public
- * @param $streams
- */
- public function setStreams($streams)
- {
- $this->streams = $streams;
- }
-
- // }}}
- // {{{ public function onStreamEof()
-
- /**
- * on stream eof call
- *
- * @param string $streamKey
- * @access public
- * @return void
- */
- public function onStreamEof($streamKey)
- {
- if (isset($this->streams[$streamKey])) {
- $this->client->freeStream($streamKey);
- }
- }
-
- // }}}
- // {{{ public function onTopicEof()
-
- /**
- * on topic eof call
- *
- * @param string $topicName
- * @access public
- * @return void
- */
- public function onTopicEof($topicName)
- {
- }
-
- // }}}
- // {{{ public function onPartitionEof()
-
- /**
- * on partition eof call
- *
- * @param \Kafka\Protocol\Fetch\Partition $partition
- * @access public
- * @return void
- */
- public function onPartitionEof($partition)
- {
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Helper.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Helper.php
deleted file mode 100644
index 33ba7d29..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/Helper.php
+++ /dev/null
@@ -1,160 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol\Fetch\Helper;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Helper
-{
- // {{{ members
-
- /**
- * helper object
- */
- private static $helpers = array();
-
- // }}}
- // {{{ functions
- // {{{ public staitc function registerHelper()
-
- /**
- * register helper
- *
- * @param string $key
- * @param \Kafka\Protocol\Fetch\Helper\HelperAbstract $helper
- * @static
- * @access public
- * @return void
- */
- public static function registerHelper($key, $helper = null)
- {
- if (is_null($helper)) {
- $className = '\\Kafka\\Protocol\\Fetch\\Helper\\' . $key;
- if (!class_exists($className)) {
- throw new \Kafka\Exception('helper is not exists.');
- }
- $helper = new $className();
- }
-
- if ($helper instanceof \Kafka\Protocol\Fetch\Helper\HelperAbstract) {
- self::$helpers[$key] = $helper;
- } else {
- throw new \Kafka\Exception('this helper not instance of `\Kafka\Protocol\Fetch\Helper\HelperAbstract`');
- }
- }
-
- // }}}
- // {{{ public staitc function unRegisterHelper()
-
- /**
- * unregister helper
- *
- * @param string $key
- * @static
- * @access public
- * @return void
- */
- public static function unRegisterHelper($key)
- {
- if (isset(self::$helpers[$key])) {
- unset(self::$helpers[$key]);
- }
- }
-
- // }}}
- // {{{ public static function onStreamEof()
-
- /**
- * on stream eof call
- *
- * @param string $streamKey
- * @static
- * @access public
- * @return void
- */
- public static function onStreamEof($streamKey)
- {
- if (empty(self::$helpers)) {
- return;
- }
-
- foreach (self::$helpers as $key => $helper) {
- if (method_exists($helper, 'onStreamEof')) {
- $helper->onStreamEof($streamKey);
- }
- }
- }
-
- // }}}
- // {{{ public static function onTopicEof()
-
- /**
- * on topic eof call
- *
- * @param string $topicName
- * @static
- * @access public
- * @return void
- */
- public static function onTopicEof($topicName)
- {
- if (empty(self::$helpers)) {
- return;
- }
-
- foreach (self::$helpers as $key => $helper) {
- if (method_exists($helper, 'onTopicEof')) {
- $helper->onStreamEof($topicName);
- }
- }
- }
-
- // }}}
- // {{{ public static function onPartitionEof()
-
- /**
- * on partition eof call
- *
- * @param \Kafka\Protocol\Fetch\Partition $partition
- * @static
- * @access public
- * @return void
- */
- public static function onPartitionEof($partition)
- {
- if (empty(self::$helpers)) {
- return;
- }
-
- foreach (self::$helpers as $key => $helper) {
- if (method_exists($helper, 'onPartitionEof')) {
- $helper->onPartitionEof($partition);
- }
- }
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/HelperAbstract.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/HelperAbstract.php
deleted file mode 100644
index 476f3da1..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Helper/HelperAbstract.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol\Fetch\Helper;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-abstract class HelperAbstract
-{
- // {{{ members
- // }}}
- // {{{ functions
- // {{{ abstract public function onStreamEof()
-
- /**
- * on stream eof
- *
- * @param string $streamKey
- * @access public
- * @return void
- */
- abstract public function onStreamEof($streamKey);
-
- // }}}
- // {{{ abstract public function onTopicEof()
-
- /**
- * on topic eof
- *
- * @param string $topicName
- * @access public
- * @return void
- */
- abstract public function onTopicEof($topicName);
-
- // }}}
- // {{{ abstract public function onPartitionEof()
-
- /**
- * on partition eof
- *
- * @param \Kafka\Protocol\Fetch\Partition $partition
- * @access public
- * @return void
- */
- abstract public function onPartitionEof($partition);
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Message.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Message.php
deleted file mode 100644
index bedb1653..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Message.php
+++ /dev/null
@@ -1,158 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol\Fetch;
-
-use \Kafka\Protocol\Decoder;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Message
-{
- // {{{ members
-
- /**
- * crc32 code
- *
- * @var float
- * @access private
- */
- private $crc = 0;
-
- /**
- * This is a version id used to allow backwards compatible evolution of the
- * message binary format.
- *
- * @var float
- * @access private
- */
- private $magic = 0;
-
- /**
- * The lowest 2 bits contain the compression codec used for the message. The
- * other bits should be set to 0.
- *
- * @var float
- * @access private
- */
- private $attribute = 0;
-
- /**
- * message key
- *
- * @var string
- * @access private
- */
- private $key = '';
-
- /**
- * message value
- *
- * @var string
- * @access private
- */
- private $value = '';
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @param string(raw) $msg
- * @access public
- */
- public function __construct($msg)
- {
- $offset = 0;
- $crc = Decoder::unpack(Decoder::BIT_B32, substr($msg, $offset, 4));
- $offset += 4;
- $this->crc = array_shift($crc);
- $magic = Decoder::unpack(Decoder::BIT_B8, substr($msg, $offset, 1));
- $this->magic = array_shift($magic);
- $offset += 1;
- $attr = Decoder::unpack(Decoder::BIT_B8, substr($msg, $offset, 1));
- $this->attribute = array_shift($attr);
- $offset += 1;
- $keyLen = Decoder::unpack(Decoder::BIT_B32, substr($msg, $offset, 4));
- $keyLen = array_shift($keyLen);
- $offset += 4;
- if ($keyLen > 0 && $keyLen != 0xFFFFFFFF) {
- $this->key = substr($msg, $offset, $keyLen);
- $offset += $keyLen;
- }
- $messageSize = Decoder::unpack(Decoder::BIT_B32, substr($msg, $offset, 4));
- $messageSize = array_shift($messageSize);
- $offset += 4;
- if ($messageSize) {
- $this->value = substr($msg, $offset, $messageSize);
- }
- }
-
- // }}}
- // {{{ public function getMessage()
-
- /**
- * get message data
- *
- * @access public
- * @return string (raw)
- */
- public function getMessage()
- {
- return $this->value;
- }
-
- // }}}
- // {{{ public function getMessageKey()
-
- /**
- * get message key
- *
- * @access public
- * @return string (raw)
- */
- public function getMessageKey()
- {
- return $this->key;
- }
-
- // }}}
- // {{{ public function __toString()
-
- /**
- * __toString
- *
- * @access public
- * @return string (raw)
- */
- public function __toString()
- {
- return $this->value;
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/MessageSet.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/MessageSet.php
deleted file mode 100644
index 13c7aac1..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/MessageSet.php
+++ /dev/null
@@ -1,273 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol\Fetch;
-
-use \Kafka\Protocol\Decoder;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class MessageSet implements \Iterator
-{
- // {{{ members
-
- /**
- * kafka socket object
- *
- * @var mixed
- * @access private
- */
- private $stream = null;
-
- /**
- * messageSet size
- *
- * @var float
- * @access private
- */
- private $messageSetSize = 0;
-
- /**
- * validByteCount
- *
- * @var float
- * @access private
- */
- private $validByteCount = 0;
-
- /**
- * messageSet offset
- *
- * @var float
- * @access private
- */
- private $offset = 0;
-
- /**
- * valid
- *
- * @var mixed
- * @access private
- */
- private $valid = false;
-
- /**
- * partition object
- *
- * @var \Kafka\Protocol\Fetch\Partition
- * @access private
- */
- private $partition = null;
-
- /**
- * request fetch context
- *
- * @var array
- */
- private $context = array();
-
- /**
- * @var Message
- */
- private $current = null;
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @param Partition $partition
- * @param array $context
- * @access public
- */
- public function __construct(\Kafka\Protocol\Fetch\Partition $partition, $context = array())
- {
- $this->stream = $partition->getStream();
- $this->partition = $partition;
- $this->context = $context;
- $this->messageSetSize = $this->getMessageSetSize();
- \Kafka\Log::log("messageSetSize: {$this->messageSetSize}", LOG_INFO);
- }
-
- // }}}
- // {{{ public function current()
-
- /**
- * current
- *
- * @access public
- * @return Message
- */
- public function current()
- {
- return $this->current;
- }
-
- // }}}
- // {{{ public function key()
-
- /**
- * key
- *
- * @access public
- * @return float
- */
- public function key()
- {
- return $this->validByteCount;
- }
-
- // }}}
- // {{{ public function rewind()
-
- /**
- * implements Iterator function
- *
- * @access public
- * @return integer
- */
- public function rewind()
- {
- $this->valid = $this->loadNextMessage();
- }
-
- // }}}
- // {{{ public function valid()
-
- /**
- * implements Iterator function
- *
- * @access public
- * @return integer
- */
- public function valid()
- {
- if (!$this->valid) {
- $this->partition->setMessageOffset($this->offset);
-
- // one partition iterator end
- \Kafka\Protocol\Fetch\Helper\Helper::onPartitionEof($this->partition);
- }
-
- return $this->valid;
- }
-
- // }}}
- // {{{ public function next()
-
- /**
- * implements Iterator function
- *
- * @access public
- * @return void
- */
- public function next()
- {
- $this->valid = $this->loadNextMessage();
- }
-
- // }}}
- // {{{ protected function getMessageSetSize()
-
- /**
- * get message set size
- *
- * @access protected
- * @return integer
- */
- protected function getMessageSetSize()
- {
- // read message size
- $data = $this->stream->read(4, true);
- $data = Decoder::unpack(Decoder::BIT_B32, $data);
- $size = array_shift($data);
- if ($size <= 0) {
- throw new \Kafka\Exception\OutOfRange($size . ' is not a valid message size');
- }
-
- return $size;
- }
-
- // }}}
- // {{{ public function loadNextMessage()
-
- /**
- * load next message
- *
- * @access public
- * @return bool
- */
- public function loadNextMessage()
- {
- if ($this->validByteCount >= $this->messageSetSize) {
- return false;
- }
-
- try {
- if ($this->validByteCount + 12 > $this->messageSetSize) {
- // read socket buffer dirty data
- $this->stream->read($this->messageSetSize - $this->validByteCount);
- return false;
- }
- $offset = $this->stream->read(8, true);
- $this->offset = \Kafka\Protocol\Decoder::unpack(Decoder::BIT_B64, $offset);
- $messageSize = $this->stream->read(4, true);
- $messageSize = Decoder::unpack(Decoder::BIT_B32, $messageSize);
- $messageSize = array_shift($messageSize);
- $this->validByteCount += 12;
- if (($this->validByteCount + $messageSize) > $this->messageSetSize) {
- // read socket buffer dirty data
- $this->stream->read($this->messageSetSize - $this->validByteCount);
- return false;
- }
- $msg = $this->stream->read($messageSize, true);
- $this->current = new Message($msg);
- } catch (\Kafka\Exception $e) {
- \Kafka\Log::log("already fetch: {$this->validByteCount}, {$e->getMessage()}", LOG_INFO);
- return false;
- }
-
- $this->validByteCount += $messageSize;
-
- return true;
- }
-
- // }}}
- // {{{ public function messageOffset()
-
- /**
- * current message offset in producer
- *
- * @return float
- */
- public function messageOffset()
- {
- return $this->offset;
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Partition.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Partition.php
deleted file mode 100644
index 7baa3bcb..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Partition.php
+++ /dev/null
@@ -1,374 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol\Fetch;
-
-use \Kafka\Protocol\Decoder;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Partition implements \Iterator, \Countable
-{
- // {{{ members
-
- /**
- * kafka socket object
- *
- * @var mixed
- * @access private
- */
- private $stream = null;
-
- /**
- * validCount
- *
- * @var float
- * @access private
- */
- private $validCount = 0;
-
- /**
- * partitions count
- *
- * @var float
- * @access private
- */
- private $partitionCount = false;
-
- /**
- * current topic
- *
- * @var mixed
- * @access private
- */
- private $current = null;
-
- /**
- * current iterator key
- * partition id
- *
- * @var string
- * @access private
- */
- private $key = null;
-
- /**
- * partition errCode
- *
- * @var float
- * @access private
- */
- private $errCode = 0;
-
- /**
- * partition offset
- *
- * @var float
- * @access private
- */
- private $offset = 0;
-
- /**
- * partition current fetch offset
- *
- * @var float
- * @access private
- */
- private $currentOffset = 0;
-
- /**
- * valid
- *
- * @var mixed
- * @access private
- */
- private $valid = false;
-
- /**
- * current topic name
- *
- * @var string
- * @access private
- */
- private $topicName = '';
-
- /**
- * request fetch context
- *
- * @var array
- */
- private $context = array();
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @param \Kafka\Protocol\Fetch\Topic $topic
- * @param array $context
- * @access public
- */
- public function __construct(\Kafka\Protocol\Fetch\Topic $topic, $context = array())
- {
- $this->stream = $topic->getStream();
- $this->topicName = $topic->key();
- $this->context = $context;
- $this->partitionCount = $this->getPartitionCount();
- }
-
- // }}}
- // {{{ public function current()
-
- /**
- * current
- *
- * @access public
- * @return mixed
- */
- public function current()
- {
- return $this->current;
- }
-
- // }}}
- // {{{ public function key()
-
- /**
- * key
- *
- * @access public
- * @return string
- */
- public function key()
- {
- return $this->key;
- }
-
- // }}}
- // {{{ public function rewind()
-
- /**
- * implements Iterator function
- *
- * @access public
- * @return integer
- */
- public function rewind()
- {
- $this->valid = $this->loadNextPartition();
- }
-
- // }}}
- // {{{ public function valid()
-
- /**
- * implements Iterator function
- *
- * @access public
- * @return integer
- */
- public function valid()
- {
- return $this->valid && $this->validCount <= $this->partitionCount;
- }
-
- // }}}
- // {{{ public function next()
-
- /**
- * implements Iterator function
- *
- * @access public
- * @return void
- */
- public function next()
- {
- $this->valid = $this->loadNextPartition();
- }
-
- // }}}
- // {{{ public function count()
-
- /**
- * implements Countable function
- *
- * @access public
- * @return integer
- */
- public function count()
- {
- return $this->partitionCount;
- }
-
- // }}}
- // {{{ public function getErrCode()
-
- /**
- * get partition errcode
- *
- * @access public
- * @return float
- */
- public function getErrCode()
- {
- return $this->errCode;
- }
-
- // }}}
- // {{{ public function getHighOffset()
-
- /**
- * get partition high offset
- *
- * @access public
- * @return float
- */
- public function getHighOffset()
- {
- return $this->offset;
- }
-
- // }}}
- // {{{ public function getTopicName()
-
- /**
- * get partition topic name
- *
- * @access public
- * @return string
- */
- public function getTopicName()
- {
- return $this->topicName;
- }
-
- // }}}
- // {{{ public function getStream()
-
- /**
- * get current stream
- *
- * @access public
- * @return \Kafka\Socket
- */
- public function getStream()
- {
- return $this->stream;
- }
-
- // }}}
- // {{{ protected function getPartitionCount()
-
- /**
- * get message size
- * only use to object init
- *
- * @access protected
- * @return integer
- */
- protected function getPartitionCount()
- {
- // read topic count
- $data = $this->stream->read(4, true);
- $data = Decoder::unpack(Decoder::BIT_B32, $data);
- $count = array_shift($data);
- if ($count <= 0) {
- throw new \Kafka\Exception\OutOfRange($count . ' is not a valid partition count');
- }
-
- return $count;
- }
-
- // }}}
- // {{{ public function loadNextPartition()
-
- /**
- * load next partition
- *
- * @access public
- * @return bool
- */
- public function loadNextPartition()
- {
- if ($this->validCount >= $this->partitionCount) {
- return false;
- }
-
- try {
- $partitionId = $this->stream->read(4, true);
- $partitionId = Decoder::unpack(Decoder::BIT_B32, $partitionId);
- $partitionId = array_shift($partitionId);
- \Kafka\Log::log("kafka client:fetch partition:" . $partitionId, LOG_INFO);
-
- $errCode = $this->stream->read(2, true);
- $errCode = Decoder::unpack(Decoder::BIT_B16, $errCode);
- $this->errCode = array_shift($errCode);
- if ($this->errCode != 0) {
- throw new \Kafka\Exception(\Kafka\Protocol\Decoder::getError($this->errCode));
- }
- $offset = $this->stream->read(8, true);
- $this->offset = \Kafka\Protocol\Decoder::unpack(Decoder::BIT_B64, $offset);
-
- $this->key = $partitionId;
- $this->current = new MessageSet($this, $this->context);
- } catch (\Kafka\Exception $e) {
- return false;
- }
-
- $this->validCount++;
- return true;
- }
-
- // }}}
- // {{{ public function setMessageOffset()
-
- /**
- * set messageSet fetch offset current
- *
- * @param int $offset
- * @return void
- */
- public function setMessageOffset($offset)
- {
- $this->currentOffset = $offset;
- }
-
- // }}}
- // {{{ public function getMessageOffset()
-
- /**
- * get messageSet fetch offset current
- *
- * @return int
- */
- public function getMessageOffset()
- {
- return $this->currentOffset;
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Topic.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Topic.php
deleted file mode 100644
index 64f60f26..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Fetch/Topic.php
+++ /dev/null
@@ -1,344 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol\Fetch;
-
-use \Kafka\Protocol\Decoder;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Topic implements \Iterator, \Countable
-{
- // {{{ members
-
- /**
- * kafka socket object
- *
- * @var array
- * @access private
- */
- private $streams = array();
-
- /**
- * each topic count
- *
- * @var array
- * @access private
- */
- private $topicCounts = array();
-
- /**
- * current iterator stream
- *
- * @var mixed
- * @access private
- */
- private $currentStreamKey = 0;
-
- /**
- * current lock key
- *
- * @var string
- * @access private
- */
- private $currentStreamLockKey = '';
-
- /**
- * currentStreamCount
- *
- * @var float
- * @access private
- */
- private $currentStreamCount = 0;
-
- /**
- * validCount
- *
- * @var float
- * @access private
- */
- private $validCount = 0;
-
- /**
- * topic count
- *
- * @var float
- * @access private
- */
- private $topicCount = false;
-
- /**
- * current topic
- *
- * @var mixed
- * @access private
- */
- private $current = null;
-
- /**
- * current iterator key
- * topic name
- *
- * @var string
- * @access private
- */
- private $key = null;
-
- /**
- * valid
- *
- * @var mixed
- * @access private
- */
- private $valid = false;
-
- /**
- * request fetch context
- *
- * @var array
- */
- private $context = array();
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @param \Kafka\Socket|array $streams
- * @param array $context
- * @access public
- */
- public function __construct($streams, $context = array())
- {
- if (!is_array($streams)) {
- $streams = array($streams);
- }
- $this->streams = $streams;
- $topicInfos = array();
- foreach ($context as $values) {
- if (!isset($values['data'])) {
- continue;
- }
-
- foreach ($values['data'] as $value) {
- if (!isset($value['topic_name']) || !isset($value['partitions'])) {
- continue;
- }
-
- $topicName = $value['topic_name'];
- foreach ($value['partitions'] as $part) {
- $topicInfos[$topicName][$part['partition_id']] = array(
- 'offset' => $part['offset'],
- );
- }
- }
- }
- $this->context = $topicInfos;
- $this->topicCount = $this->getTopicCount();
- }
-
- // }}}
- // {{{ public function current()
-
- /**
- * current
- *
- * @access public
- * @return mixed
- */
- public function current()
- {
- return $this->current;
- }
-
- // }}}
- // {{{ public function key()
-
- /**
- * key
- *
- * @access public
- * @return string
- */
- public function key()
- {
- return $this->key;
- }
-
- // }}}
- // {{{ public function rewind()
-
- /**
- * implements Iterator function
- *
- * @access public
- * @return void
- */
- public function rewind()
- {
- $this->valid = $this->loadNextTopic();
- }
-
- // }}}
- // {{{ public function valid()
-
- /**
- * implements Iterator function
- *
- * @access public
- * @return integer
- */
- public function valid()
- {
- return $this->valid;
- }
-
- // }}}
- // {{{ public function next()
-
- /**
- * implements Iterator function
- *
- * @access public
- * @return void
- */
- public function next()
- {
- $this->valid = $this->loadNextTopic();
- }
-
- // }}}
- // {{{ public function count()
-
- /**
- * implements Countable function
- *
- * @access public
- * @return integer
- */
- public function count()
- {
- return $this->topicCount;
- }
-
- // }}}
- // {{{ protected function getTopicCount()
-
- /**
- * get message size
- * only use to object init
- *
- * @access protected
- * @return integer
- */
- protected function getTopicCount()
- {
- $count = 0;
- foreach (array_values($this->streams) as $key => $stream) {
- // read topic count
- $stream->read(8, true);
- $data = $stream->read(4, true);
- $data = Decoder::unpack(Decoder::BIT_B32, $data);
- $topicCount = array_shift($data);
- $count += $topicCount;
- $this->topicCounts[$key] = $topicCount;
- if ($count <= 0) {
- throw new \Kafka\Exception\OutOfRange($count . ' is not a valid topic count');
- }
- }
-
- return $count;
- }
-
- // }}}
- // {{{ public function loadNextTopic()
-
- /**
- * load next topic
- *
- * @access public
- * @return bool
- */
- public function loadNextTopic()
- {
- if ($this->validCount >= $this->topicCount) {
- \Kafka\Protocol\Fetch\Helper\Helper::onStreamEof($this->currentStreamLockKey);
- return false;
- }
-
- if ($this->currentStreamCount >= $this->topicCounts[$this->currentStreamKey]) {
- \Kafka\Protocol\Fetch\Helper\Helper::onStreamEof($this->currentStreamLockKey);
- $this->currentStreamKey++;
- }
-
- $lockKeys = array_keys($this->streams);
- $streams = array_values($this->streams);
- if (!isset($streams[$this->currentStreamKey])) {
- return false;
- }
-
- $stream = $streams[$this->currentStreamKey];
- $this->currentStreamLockKey = $lockKeys[$this->currentStreamKey];
-
- try {
- $topicLen = $stream->read(2, true);
- $topicLen = Decoder::unpack(Decoder::BIT_B16, $topicLen);
- $topicLen = array_shift($topicLen);
- if ($topicLen <= 0) {
- return false;
- }
-
- // topic name
- $this->key = $stream->read($topicLen, true);
- $this->current = new Partition($this, $this->context);
- } catch (\Kafka\Exception $e) {
- return false;
- }
-
- $this->validCount++;
- $this->currentStreamCount++;
-
- return true;
- }
-
- // }}}
- // {{{ public function getStream()
-
- /**
- * get current stream
- *
- * @access public
- * @return \Kafka\Socket
- */
- public function getStream()
- {
- $streams = array_values($this->streams);
- return $streams[$this->currentStreamKey];
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Protocol.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Protocol.php
deleted file mode 100644
index f9fed577..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Protocol/Protocol.php
+++ /dev/null
@@ -1,317 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka\Protocol;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-abstract class Protocol
-{
- // {{{ consts
-
- /**
- * Kafka server protocol version
- */
- const API_VERSION = 0;
-
- /**
- * use encode message, This is a version id used to allow backwards
- * compatible evolution of the message binary format.
- */
- const MESSAGE_MAGIC = 0;
-
- /**
- * message no compression
- */
- const COMPRESSION_NONE = 0;
-
- /**
- * Message using gzip compression
- */
- const COMPRESSION_GZIP = 1;
-
- /**
- * Message using Snappy compression
- */
- const COMPRESSION_SNAPPY = 2;
-
- /**
- * pack int32 type
- */
- const PACK_INT32 = 0;
-
- /**
- * pack int16 type
- */
- const PACK_INT16 = 1;
-
- /**
- * protocol request code
- */
- const PRODUCE_REQUEST = 0;
- const FETCH_REQUEST = 1;
- const OFFSET_REQUEST = 2;
- const METADATA_REQUEST = 3;
- const OFFSET_COMMIT_REQUEST = 8;
- const OFFSET_FETCH_REQUEST = 9;
- const CONSUMER_METADATA_REQUEST = 10;
-
- // unpack/pack bit
- const BIT_B64 = 'N2';
- const BIT_B32 = 'N';
- const BIT_B16 = 'n';
- const BIT_B16_SIGNED = 's';
- const BIT_B8 = 'C';
-
- // }}}
- // {{{ members
-
- /**
- * stream
- *
- * @var mixed
- * @access protected
- */
- protected $stream = null;
-
- /**
- * isBigEndianSystem
- *
- * gets set to true if the computer this code is running is little endian,
- * gets set to false if the computer this code is running on is big endian.
- *
- * @var null|bool
- * @access private
- */
- private static $isLittleEndianSystem = null;
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @param \Kafka\Socket $stream
- * @access public
- */
- public function __construct(\Kafka\Socket $stream)
- {
- $this->stream = $stream;
- }
-
- // }}}
- // {{{ public static function Khex2bin()
-
- /**
- * hex to bin
- *
- * @param string $string
- * @static
- * @access protected
- * @return string (raw)
- */
- public static function Khex2bin($string)
- {
- if (function_exists('\hex2bin')) {
- return \hex2bin($string);
- } else {
- $bin = '';
- $len = strlen($string);
- for ($i = 0; $i < $len; $i += 2) {
- $bin .= pack('H*', substr($string, $i, 2));
- }
-
- return $bin;
- }
- }
-
- // }}}
- // {{{ public static function unpack()
-
- /**
- * Unpack a bit integer as big endian long
- *
- * @static
- * @access public
- * @param $type
- * @param $bytes
- * @return int
- */
- public static function unpack($type, $bytes)
- {
- self::checkLen($type, $bytes);
- if ($type == self::BIT_B64) {
- $set = unpack($type, $bytes);
- $original = ($set[1] & 0xFFFFFFFF) << 32 | ($set[2] & 0xFFFFFFFF);
- return $original;
- } elseif ($type == self::BIT_B16_SIGNED) {
- // According to PHP docs: 's' = signed short (always 16 bit, machine byte order)
- // So lets unpack it..
- $set = unpack($type, $bytes);
-
- // But if our system is little endian
- if (self::isSystemLittleEndian()) {
- // We need to flip the endianess because coming from kafka it is big endian
- $set = self::convertSignedShortFromLittleEndianToBigEndian($set);
- }
- return $set;
- } else {
- return unpack($type, $bytes);
- }
- }
-
- // }}}
- // {{{ public static function pack()
-
- /**
- * pack a bit integer as big endian long
- *
- * @static
- * @access public
- * @param $type
- * @param $data
- * @return int
- */
- public static function pack($type, $data)
- {
- if ($type == self::BIT_B64) {
- if ($data == -1) { // -1L
- $data = self::Khex2bin('ffffffffffffffff');
- } elseif ($data == -2) { // -2L
- $data = self::Khex2bin('fffffffffffffffe');
- } else {
- $left = 0xffffffff00000000;
- $right = 0x00000000ffffffff;
-
- $l = ($data & $left) >> 32;
- $r = $data & $right;
- $data = pack($type, $l, $r);
- }
- } else {
- $data = pack($type, $data);
- }
-
- return $data;
- }
-
- // }}}
- // {{{ protected static function checkLen()
-
- /**
- * check unpack bit is valid
- *
- * @param string $type
- * @param string(raw) $bytes
- * @static
- * @access protected
- * @return void
- */
- protected static function checkLen($type, $bytes)
- {
- $len = 0;
- switch($type) {
- case self::BIT_B64:
- $len = 8;
- break;
- case self::BIT_B32:
- $len = 4;
- break;
- case self::BIT_B16:
- $len = 2;
- break;
- case self::BIT_B16_SIGNED:
- $len = 2;
- break;
- case self::BIT_B8:
- $len = 1;
- break;
- }
-
- if (strlen($bytes) != $len) {
- throw new \Kafka\Exception\Protocol('unpack failed. string(raw) length is ' . strlen($bytes) . ' , TO ' . $type);
- }
- }
-
- // }}}
- // {{{ public static function isSystemLittleEndian()
-
- /**
- * Determines if the computer currently running this code is big endian or little endian.
- *
- * @access public
- * @return bool - false if big endian, true if little endian
- */
- public static function isSystemLittleEndian()
- {
- // If we don't know if our system is big endian or not yet...
- if (is_null(self::$isLittleEndianSystem)) {
- // Lets find out
- list ($endiantest) = array_values(unpack('L1L', pack('V', 1)));
- if ($endiantest != 1) {
- // This is a big endian system
- self::$isLittleEndianSystem = false;
- } else {
- // This is a little endian system
- self::$isLittleEndianSystem = true;
- }
- }
-
- return self::$isLittleEndianSystem;
- }
-
- // }}}
- // {{{ public static function convertSignedShortFromLittleEndianToBigEndian()
-
- /**
- * Converts a signed short (16 bits) from little endian to big endian.
- *
- * @param int[] $bits
- * @access public
- * @return array
- */
- public static function convertSignedShortFromLittleEndianToBigEndian($bits)
- {
- foreach ($bits as $index => $bit) {
-
- // get LSB
- $lsb = $bit & 0xff;
-
- // get MSB
- $msb = $bit >> 8 & 0xff;
-
- // swap bytes
- $bit = $lsb <<8 | $msb;
-
- if ($bit >= 32768) {
- $bit -= 65536;
- }
- $bits[$index] = $bit;
- }
- return $bits;
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Socket.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/Socket.php
deleted file mode 100644
index d0902c2d..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/Socket.php
+++ /dev/null
@@ -1,383 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class Socket
-{
- // {{{ consts
-
- const READ_MAX_LEN = 5242880; // read socket max length 5MB
-
- /**
- * max write socket buffer
- * fixed:send of 8192 bytes failed with errno=11 Resource temporarily
- * unavailable error info
- */
- const MAX_WRITE_BUFFER = 4096;
-
- // }}}
- // {{{ members
-
- /**
- * Send timeout in seconds.
- *
- * @var float
- * @access private
- */
- private $sendTimeoutSec = 0;
-
- /**
- * Send timeout in microseconds.
- *
- * @var float
- * @access private
- */
- private $sendTimeoutUsec = 100000;
-
- /**
- * Recv timeout in seconds
- *
- * @var float
- * @access private
- */
- private $recvTimeoutSec = 0;
-
- /**
- * Recv timeout in microseconds
- *
- * @var float
- * @access private
- */
- private $recvTimeoutUsec = 750000;
-
- /**
- * Stream resource
- *
- * @var mixed
- * @access private
- */
- private $stream = null;
-
- /**
- * Socket host
- *
- * @var mixed
- * @access private
- */
- private $host = null;
-
- /**
- * Socket port
- *
- * @var mixed
- * @access private
- */
- private $port = -1;
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @access public
- * @param $host
- * @param $port
- * @param int $recvTimeoutSec
- * @param int $recvTimeoutUsec
- * @param int $sendTimeoutSec
- * @param int $sendTimeoutUsec
- */
- public function __construct($host, $port, $recvTimeoutSec = 0, $recvTimeoutUsec = 750000, $sendTimeoutSec = 0, $sendTimeoutUsec = 100000)
- {
- $this->host = $host;
- $this->port = $port;
- $this->setRecvTimeoutSec($recvTimeoutSec);
- $this->setRecvTimeoutUsec($recvTimeoutUsec);
- $this->setSendTimeoutSec($sendTimeoutSec);
- $this->setSendTimeoutUsec($sendTimeoutUsec);
- }
-
- /**
- * @param float $sendTimeoutSec
- */
- public function setSendTimeoutSec($sendTimeoutSec)
- {
- $this->sendTimeoutSec = $sendTimeoutSec;
- }
-
- /**
- * @param float $sendTimeoutUsec
- */
- public function setSendTimeoutUsec($sendTimeoutUsec)
- {
- $this->sendTimeoutUsec = $sendTimeoutUsec;
- }
-
- /**
- * @param float $recvTimeoutSec
- */
- public function setRecvTimeoutSec($recvTimeoutSec)
- {
- $this->recvTimeoutSec = $recvTimeoutSec;
- }
-
- /**
- * @param float $recvTimeoutUsec
- */
- public function setRecvTimeoutUsec($recvTimeoutUsec)
- {
- $this->recvTimeoutUsec = $recvTimeoutUsec;
- }
-
-
-
- // }}}
- // {{{ public static function createFromStream()
-
- /**
- * Optional method to set the internal stream handle
- *
- * @static
- * @access public
- * @param $stream
- * @return Socket
- */
- public static function createFromStream($stream)
- {
- $socket = new self('localhost', 0);
- $socket->setStream($stream);
- return $socket;
- }
-
- // }}}
- // {{{ public function setStream()
-
- /**
- * Optional method to set the internal stream handle
- *
- * @param mixed $stream
- * @access public
- * @return void
- */
- public function setStream($stream)
- {
- $this->stream = $stream;
- }
-
- // }}}
- // {{{ public function connect()
-
- /**
- * Connects the socket
- *
- * @access public
- * @return void
- */
- public function connect()
- {
- if (is_resource($this->stream)) {
- return;
- }
-
- if (empty($this->host)) {
- throw new \Kafka\Exception('Cannot open null host.');
- }
- if ($this->port <= 0) {
- throw new \Kafka\Exception('Cannot open without port.');
- }
-
- $this->stream = @fsockopen(
- $this->host,
- $this->port,
- $errno,
- $errstr,
- $this->sendTimeoutSec + ($this->sendTimeoutUsec / 1000000)
- );
-
- if ($this->stream == false) {
- $error = 'Could not connect to '
- . $this->host . ':' . $this->port
- . ' ('.$errstr.' ['.$errno.'])';
- throw new \Kafka\Exception\SocketConnect($error);
- }
-
- stream_set_blocking($this->stream, 0);
- }
-
- // }}}
- // {{{ public function close()
-
- /**
- * close the socket
- *
- * @access public
- * @return void
- */
- public function close()
- {
- if (is_resource($this->stream)) {
- fclose($this->stream);
- }
- }
-
- // }}}
- // {{{ public function read()
-
- /**
- * Read from the socket at most $len bytes.
- *
- * This method will not wait for all the requested data, it will return as
- * soon as any data is received.
- *
- * @param integer $len Maximum number of bytes to read.
- * @param boolean $verifyExactLength Throw an exception if the number of read bytes is less than $len
- *
- * @return string Binary data
- * @throws \Kafka\Exception\SocketEOF
- */
- public function read($len, $verifyExactLength = false)
- {
- if ($len > self::READ_MAX_LEN) {
- throw new \Kafka\Exception\SocketEOF('Could not read '.$len.' bytes from stream, length too longer.');
- }
-
- $null = null;
- $read = array($this->stream);
- $readable = @stream_select($read, $null, $null, $this->recvTimeoutSec, $this->recvTimeoutUsec);
- if ($readable > 0) {
- $remainingBytes = $len;
- $data = $chunk = '';
- while ($remainingBytes > 0) {
- $chunk = fread($this->stream, $remainingBytes);
- if ($chunk === false) {
- $this->close();
- throw new \Kafka\Exception\SocketEOF('Could not read '.$len.' bytes from stream (no data)');
- }
- if (strlen($chunk) === 0) {
- // Zero bytes because of EOF?
- if (feof($this->stream)) {
- $this->close();
- throw new \Kafka\Exception\SocketEOF('Unexpected EOF while reading '.$len.' bytes from stream (no data)');
- }
- // Otherwise wait for bytes
- $readable = @stream_select($read, $null, $null, $this->recvTimeoutSec, $this->recvTimeoutUsec);
- if ($readable !== 1) {
- throw new \Kafka\Exception\SocketTimeout('Timed out reading socket while reading ' . $len . ' bytes with ' . $remainingBytes . ' bytes to go');
- }
- continue; // attempt another read
- }
- $data .= $chunk;
- $remainingBytes -= strlen($chunk);
- }
- if ($len === $remainingBytes || ($verifyExactLength && $len !== strlen($data))) {
- // couldn't read anything at all OR reached EOF sooner than expected
- $this->close();
- throw new \Kafka\Exception\SocketEOF('Read ' . strlen($data) . ' bytes instead of the requested ' . $len . ' bytes');
- }
-
- return $data;
- }
- if (false !== $readable) {
- $res = stream_get_meta_data($this->stream);
- if (!empty($res['timed_out'])) {
- $this->close();
- throw new \Kafka\Exception\SocketTimeout('Timed out reading '.$len.' bytes from stream');
- }
- }
- $this->close();
- throw new \Kafka\Exception\SocketEOF('Could not read '.$len.' bytes from stream (not readable)');
-
- }
-
- // }}}
- // {{{ public function write()
-
- /**
- * Write to the socket.
- *
- * @param string $buf The data to write
- *
- * @return integer
- * @throws \Kafka\Exception\SocketEOF
- */
- public function write($buf)
- {
- $null = null;
- $write = array($this->stream);
-
- // fwrite to a socket may be partial, so loop until we
- // are done with the entire buffer
- $written = 0;
- $buflen = strlen($buf);
- while ( $written < $buflen ) {
- // wait for stream to become available for writing
- $writable = stream_select($null, $write, $null, $this->sendTimeoutSec, $this->sendTimeoutUsec);
- if ($writable > 0) {
- if ($buflen - $written > self::MAX_WRITE_BUFFER) {
- // write max buffer size
- $wrote = fwrite($this->stream, substr($buf, $written, self::MAX_WRITE_BUFFER));
- } else {
- // write remaining buffer bytes to stream
- $wrote = fwrite($this->stream, substr($buf, $written));
- }
- if ($wrote === -1 || $wrote === false) {
- throw new \Kafka\Exception\Socket('Could not write ' . strlen($buf) . ' bytes to stream, completed writing only ' . $written . ' bytes');
- }
- $written += $wrote;
- continue;
- }
- if (false !== $writable) {
- $res = stream_get_meta_data($this->stream);
- if (!empty($res['timed_out'])) {
- throw new \Kafka\Exception\SocketTimeout('Timed out writing ' . strlen($buf) . ' bytes to stream after writing ' . $written . ' bytes');
- }
- }
- throw new \Kafka\Exception\Socket('Could not write ' . strlen($buf) . ' bytes to stream');
- }
- return $written;
- }
-
- // }}}
- // {{{ public function rewind()
-
- /**
- * Rewind the stream
- *
- * @return void
- */
- public function rewind()
- {
- if (is_resource($this->stream)) {
- rewind($this->stream);
- }
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/nmred/kafka-php/src/Kafka/ZooKeeper.php b/www/wiki/vendor/nmred/kafka-php/src/Kafka/ZooKeeper.php
deleted file mode 100644
index d141dded..00000000
--- a/www/wiki/vendor/nmred/kafka-php/src/Kafka/ZooKeeper.php
+++ /dev/null
@@ -1,365 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
-// +---------------------------------------------------------------------------
-// | SWAN [ $_SWANBR_SLOGAN_$ ]
-// +---------------------------------------------------------------------------
-// | Copyright $_SWANBR_COPYRIGHT_$
-// +---------------------------------------------------------------------------
-// | Version $_SWANBR_VERSION_$
-// +---------------------------------------------------------------------------
-// | Licensed ( $_SWANBR_LICENSED_URL_$ )
-// +---------------------------------------------------------------------------
-// | $_SWANBR_WEB_DOMAIN_$
-// +---------------------------------------------------------------------------
-
-namespace Kafka;
-
-/**
-+------------------------------------------------------------------------------
-* Kafka protocol since Kafka v0.8
-+------------------------------------------------------------------------------
-*
-* @package
-* @version $_SWANBR_VERSION_$
-* @copyright Copyleft
-* @author $_SWANBR_AUTHOR_$
-+------------------------------------------------------------------------------
-*/
-
-class ZooKeeper implements \Kafka\ClusterMetaData
-{
- // {{{ consts
-
- /**
- * get all broker
- */
- const BROKER_PATH = '/brokers/ids';
-
- /**
- * get broker detail
- */
- const BROKER_DETAIL_PATH = '/brokers/ids/%d';
-
- /**
- * get topic detail
- */
- const TOPIC_PATCH = '/brokers/topics/%s';
-
- /**
- * get partition state
- */
- const PARTITION_STATE = '/brokers/topics/%s/partitions/%d/state';
-
- /**
- * register consumer
- */
- const REG_CONSUMER = '/consumers/%s/ids/%s';
-
- /**
- * list consumer
- */
- const LIST_CONSUMER = '/consumers/%s/ids';
-
- /**
- * partition owner
- */
- const PARTITION_OWNER = '/consumers/%s/owners/%s/%d';
-
- // }}}
- // {{{ members
-
- /**
- * zookeeper
- *
- * @var mixed
- * @access private
- */
- private $zookeeper = null;
-
- // }}}
- // {{{ functions
- // {{{ public function __construct()
-
- /**
- * __construct
- *
- * @access public
- * @param $hostList
- * @param null $timeout
- */
- public function __construct($hostList, $timeout = null)
- {
- if (!is_null($timeout) && is_numeric($timeout)) {
- $this->zookeeper = new \ZooKeeper($hostList, null, $timeout);
- } else {
- $this->zookeeper = new \ZooKeeper($hostList);
- }
- }
-
- // }}}
- // {{{ public function listBrokers()
-
- /**
- * get broker list using zookeeper
- *
- * @access public
- * @return array
- */
- public function listBrokers()
- {
- $result = array();
- $lists = $this->zookeeper->getChildren(self::BROKER_PATH);
- if (!empty($lists)) {
- foreach ($lists as $brokerId) {
- $brokerDetail = $this->getBrokerDetail($brokerId);
- if (!$brokerDetail) {
- continue;
- }
- $result[$brokerId] = $brokerDetail;
- }
- }
-
- return $result;
- }
-
- // }}}
- // {{{ public function getBrokerDetail()
-
- /**
- * get broker detail
- *
- * @param integer $brokerId
- * @access public
- * @return string|bool
- */
- public function getBrokerDetail($brokerId)
- {
- $result = array();
- $path = sprintf(self::BROKER_DETAIL_PATH, (int) $brokerId);
- if ($this->zookeeper->exists($path)) {
- $result = $this->zookeeper->get($path);
- if (!$result) {
- return false;
- }
-
- $result = json_decode($result, true);
- }
-
- return $result;
- }
-
- // }}}
- // {{{ public function getTopicDetail()
-
- /**
- * get topic detail
- *
- * @param string $topicName
- * @access public
- * @return string|bool
- */
- public function getTopicDetail($topicName)
- {
- $result = array();
- $path = sprintf(self::TOPIC_PATCH, (string) $topicName);
- if ($this->zookeeper->exists($path)) {
- $result = $this->zookeeper->get($path);
- if (!$result) {
- return false;
- }
- $result = json_decode($result, true);
- }
-
- return $result;
- }
-
- // }}}
- // {{{ public function getPartitionState()
-
- /**
- * get partition state
- *
- * @param string $topicName
- * @param integer $partitionId
- * @access public
- * @return string|bool
- */
- public function getPartitionState($topicName, $partitionId = 0)
- {
- $result = array();
- $path = sprintf(self::PARTITION_STATE, (string) $topicName, (int) $partitionId);
- if ($this->zookeeper->exists($path)) {
- $result = $this->zookeeper->get($path);
- if (!$result) {
- return false;
- }
- $result = json_decode($result, true);
- }
-
- return $result;
- }
-
- // }}}
- // {{{ public function registerConsumer()
-
- /**
- * register consumer
- *
- * @param $groupId
- * @param integer $consumerId
- * @param array $topics
- * @access public
- */
- public function registerConsumer($groupId, $consumerId, $topics = array())
- {
- if (empty($topics)) {
- return;
- }
-
- $path = sprintf(self::REG_CONSUMER, (string) $groupId, (string) $consumerId);
- $subData = array();
- foreach ($topics as $topic) {
- $subData[$topic] = 1;
- }
- $data = array(
- 'version' => '1',
- 'pattern' => 'white_list',
- 'subscription' => $subData,
- );
- if (!$this->zookeeper->exists($path)) {
- $this->makeZkPath($path);
- $this->makeZkNode($path, json_encode($data));
- } else {
- $this->zookeeper->set($path, json_encode($data));
- }
- }
-
- // }}}
- // {{{ public function listConsumer()
-
- /**
- * list consumer
- *
- * @param string $groupId
- * @access public
- * @return array
- */
- public function listConsumer($groupId)
- {
- $path = sprintf(self::LIST_CONSUMER, (string) $groupId);
- if (!$this->zookeeper->exists($path)) {
- return array();
- } else {
- return $this->zookeeper->getChildren($path);
- }
- }
-
- // }}}
- // {{{ public function getConsumersPerTopic()
-
- /**
- * get consumer per topic
- *
- * @param string $groupId
- * @access public
- * @return array
- */
- public function getConsumersPerTopic($groupId)
- {
- $consumers = $this->listConsumer($groupId);
- if (empty($consumers)) {
- return array();
- }
-
- $topics = array();
- foreach ($consumers as $consumerId) {
- $path = sprintf(self::REG_CONSUMER, (string) $groupId, (string) $consumerId);
- if (!$this->zookeeper->exists($path)) {
- continue;
- }
-
- $info = $this->zookeeper->get($path);
- $info = json_decode($info, true);
- $subTopic = isset($info['subscription']) ? $info['subscription'] : array();
- foreach ($subTopic as $topic => $num) {
- $topics[$topic] = $consumerId;
- }
- }
-
- return $topics;
- }
-
- // }}}
- // {{{ public function addPartitionOwner()
-
- /**
- * add partition owner
- *
- * @param string $groupId
- * @param string $topicName
- * @param integer $partitionId
- * @param string $consumerId
- * @access public
- * @return void
- */
- public function addPartitionOwner($groupId, $topicName, $partitionId, $consumerId)
- {
- $path = sprintf(self::PARTITION_OWNER, (string) $groupId, $topicName, (string) $partitionId);
- if (!$this->zookeeper->exists($path)) {
- $this->makeZkPath($path);
- $this->makeZkNode($path, $consumerId);
- } else {
- $this->zookeeper->set($path, $consumerId);
- }
- }
-
- // }}}
- // {{{ protected function makeZkPath()
-
- /**
- * Equivalent of "mkdir -p" on ZooKeeper
- *
- * @param string $path The path to the node
- * @param mixed $value The value to assign to each new node along the path
- *
- * @return bool
- */
- protected function makeZkPath($path, $value = 0)
- {
- $parts = explode('/', $path);
- $parts = array_filter($parts);
- $subpath = '';
- while (count($parts) > 1) {
- $subpath .= '/' . array_shift($parts);
- if (!$this->zookeeper->exists($subpath)) {
- $this->makeZkNode($subpath, $value);
- }
- }
- }
-
- // }}}
- // {{{ protected function makeZkNode()
-
- /**
- * Create a node on ZooKeeper at the given path
- *
- * @param string $path The path to the node
- * @param mixed $value The value to assign to the new node
- *
- * @return bool
- */
- protected function makeZkNode($path, $value)
- {
- $params = array(
- array(
- 'perms' => \Zookeeper::PERM_ALL,
- 'scheme' => 'world',
- 'id' => 'anyone',
- )
- );
- return $this->zookeeper->create($path, $value, $params);
- }
-
- // }}}
- // }}}
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-common/.travis.yml b/www/wiki/vendor/phpdocumentor/reflection-common/.travis.yml
deleted file mode 100644
index 958ecf86..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-common/.travis.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-language: php
-php:
- - 5.5
- - 5.6
- - 7.0
- - 7.1
- - hhvm
- - nightly
-
-matrix:
- allow_failures:
- - php:
- - hhvm
- - nightly
-
-cache:
- directories:
- - $HOME/.composer/cache
-
-script:
- - vendor/bin/phpunit --coverage-clover=coverage.clover -v
- - composer update --no-interaction --prefer-source
- - vendor/bin/phpunit -v
-
-before_script:
- - composer install --no-interaction
-
-after_script:
- - if [ $TRAVIS_PHP_VERSION = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
-
-notifications:
- irc: "irc.freenode.org#phpdocumentor"
- email:
- - me@mikevanriel.com
- - ashnazg@php.net
diff --git a/www/wiki/vendor/phpdocumentor/reflection-common/LICENSE b/www/wiki/vendor/phpdocumentor/reflection-common/LICENSE
deleted file mode 100644
index ed6926c1..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-common/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 phpDocumentor
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
diff --git a/www/wiki/vendor/phpdocumentor/reflection-common/README.md b/www/wiki/vendor/phpdocumentor/reflection-common/README.md
deleted file mode 100644
index 68a80c82..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-common/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# ReflectionCommon
-[![Build Status](https://travis-ci.org/phpDocumentor/ReflectionCommon.svg?branch=master)](https://travis-ci.org/phpDocumentor/ReflectionCommon)
diff --git a/www/wiki/vendor/phpdocumentor/reflection-common/composer.json b/www/wiki/vendor/phpdocumentor/reflection-common/composer.json
deleted file mode 100644
index 90eee0f0..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-common/composer.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "phpdocumentor/reflection-common",
- "keywords": ["phpdoc", "phpDocumentor", "reflection", "static analysis", "FQSEN"],
- "homepage": "http://www.phpdoc.org",
- "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
- "license": "MIT",
- "authors": [
- {
- "name": "Jaap van Otterdijk",
- "email": "opensource@ijaap.nl"
- }
- ],
- "require": {
- "php": ">=5.5"
- },
- "autoload" : {
- "psr-4" : {
- "phpDocumentor\\Reflection\\": ["src"]
- }
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-common/src/Element.php b/www/wiki/vendor/phpdocumentor/reflection-common/src/Element.php
deleted file mode 100644
index 712e30e8..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-common/src/Element.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-/**
- * phpDocumentor
- *
- * PHP Version 5.5
- *
- * @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com)
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection;
-
-/**
- * Interface for Api Elements
- */
-interface Element
-{
- /**
- * Returns the Fqsen of the element.
- *
- * @return Fqsen
- */
- public function getFqsen();
-
- /**
- * Returns the name of the element.
- *
- * @return string
- */
- public function getName();
-} \ No newline at end of file
diff --git a/www/wiki/vendor/phpdocumentor/reflection-common/src/File.php b/www/wiki/vendor/phpdocumentor/reflection-common/src/File.php
deleted file mode 100644
index 01875945..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-common/src/File.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection;
-
-/**
- * Interface for files processed by the ProjectFactory
- */
-interface File
-{
- /**
- * Returns the content of the file as a string.
- *
- * @return string
- */
- public function getContents();
-
- /**
- * Returns md5 hash of the file.
- *
- * @return string
- */
- public function md5();
-
- /**
- * Returns an relative path to the file.
- *
- * @return string
- */
- public function path();
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-common/src/Fqsen.php b/www/wiki/vendor/phpdocumentor/reflection-common/src/Fqsen.php
deleted file mode 100644
index ce88d03f..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-common/src/Fqsen.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-/**
- * phpDocumentor
- *
- * PHP Version 5.5
- *
- * @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com)
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection;
-
-/**
- * Value Object for Fqsen.
- *
- * @link https://github.com/phpDocumentor/fig-standards/blob/master/proposed/phpdoc-meta.md
- */
-final class Fqsen
-{
- /**
- * @var string full quallified class name
- */
- private $fqsen;
-
- /**
- * @var string name of the element without path.
- */
- private $name;
-
- /**
- * Initializes the object.
- *
- * @param string $fqsen
- *
- * @throws \InvalidArgumentException when $fqsen is not matching the format.
- */
- public function __construct($fqsen)
- {
- $matches = array();
- $result = preg_match(
- '/^\\\\([a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff\\\\]*)?(?:[:]{2}\\$?([a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*))?(?:\\(\\))?$/',
- $fqsen,
- $matches
- );
-
- if ($result === 0) {
- throw new \InvalidArgumentException(
- sprintf('"%s" is not a valid Fqsen.', $fqsen)
- );
- }
-
- $this->fqsen = $fqsen;
-
- if (isset($matches[2])) {
- $this->name = $matches[2];
- } else {
- $matches = explode('\\', $fqsen);
- $this->name = trim(end($matches), '()');
- }
- }
-
- /**
- * converts this class to string.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->fqsen;
- }
-
- /**
- * Returns the name of the element without path.
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-common/src/Location.php b/www/wiki/vendor/phpdocumentor/reflection-common/src/Location.php
deleted file mode 100644
index 57603219..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-common/src/Location.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection;
-
-/**
- * The location where an element occurs within a file.
- */
-final class Location
-{
- /** @var int */
- private $lineNumber = 0;
-
- /** @var int */
- private $columnNumber = 0;
-
- /**
- * Initializes the location for an element using its line number in the file and optionally the column number.
- *
- * @param int $lineNumber
- * @param int $columnNumber
- */
- public function __construct($lineNumber, $columnNumber = 0)
- {
- $this->lineNumber = $lineNumber;
- $this->columnNumber = $columnNumber;
- }
-
- /**
- * Returns the line number that is covered by this location.
- *
- * @return integer
- */
- public function getLineNumber()
- {
- return $this->lineNumber;
- }
-
- /**
- * Returns the column number (character position on a line) for this location object.
- *
- * @return integer
- */
- public function getColumnNumber()
- {
- return $this->columnNumber;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-common/src/Project.php b/www/wiki/vendor/phpdocumentor/reflection-common/src/Project.php
deleted file mode 100644
index 3ed1e393..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-common/src/Project.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-/**
- * phpDocumentor
- *
- * PHP Version 5.5
- *
- * @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com)
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection;
-
-/**
- * Interface for project. Since the definition of a project can be different per factory this interface will be small.
- */
-interface Project
-{
- /**
- * Returns the name of the project.
- *
- * @return string
- */
- public function getName();
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-common/src/ProjectFactory.php b/www/wiki/vendor/phpdocumentor/reflection-common/src/ProjectFactory.php
deleted file mode 100644
index 5602f845..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-common/src/ProjectFactory.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * phpDocumentor
- *
- * PHP Version 5.5
- *
- * @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com)
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-namespace phpDocumentor\Reflection;
-
-/**
- * Interface for project factories. A project factory shall convert a set of files
- * into an object implementing the Project interface.
- */
-interface ProjectFactory
-{
- /**
- * Creates a project from the set of files.
- *
- * @param string $name
- * @param File[] $files
- * @return Project
- */
- public function create($name, array $files);
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/LICENSE b/www/wiki/vendor/phpdocumentor/reflection-docblock/LICENSE
deleted file mode 100644
index 792e4040..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2010 Mike van Riel
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/README.md b/www/wiki/vendor/phpdocumentor/reflection-docblock/README.md
deleted file mode 100644
index a1984a15..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/README.md
+++ /dev/null
@@ -1,69 +0,0 @@
-The ReflectionDocBlock Component [![Build Status](https://secure.travis-ci.org/phpDocumentor/ReflectionDocBlock.png)](https://travis-ci.org/phpDocumentor/ReflectionDocBlock)
-================================
-
-Introduction
-------------
-
-The ReflectionDocBlock component of phpDocumentor provides a DocBlock parser
-that is 100% compatible with the [PHPDoc standard](http://phpdoc.org/docs/latest).
-
-With this component, a library can provide support for annotations via DocBlocks
-or otherwise retrieve information that is embedded in a DocBlock.
-
-> **Note**: *this is a core component of phpDocumentor and is constantly being
-> optimized for performance.*
-
-Installation
-------------
-
-You can install the component in the following ways:
-
-* Use the official Github repository (https://github.com/phpDocumentor/ReflectionDocBlock)
-* Via Composer (http://packagist.org/packages/phpdocumentor/reflection-docblock)
-
-Usage
------
-
-In order to parse the DocBlock one needs a DocBlockFactory that can be
-instantiated using its `createInstance` factory method like this:
-
-```php
-$factory = \phpDocumentor\Reflection\DocBlockFactory::createInstance();
-```
-
-Then we can use the `create` method of the factory to interpret the DocBlock.
-Please note that it is also possible to provide a class that has the
-`getDocComment()` method, such as an object of type `ReflectionClass`, the
-create method will read that if it exists.
-
-```php
-$docComment = <<<DOCCOMMENT
-/**
- * This is an example of a summary.
- *
- * This is a Description. A Summary and Description are separated by either
- * two subsequent newlines (thus a whiteline in between as can be seen in this
- * example), or when the Summary ends with a dot (`.`) and some form of
- * whitespace.
- */
-DOCCOMMENT;
-
-$docblock = $factory->create($docComment);
-```
-
-The `create` method will yield an object of type `\phpDocumentor\Reflection\DocBlock`
-whose methods can be queried as shown in the following example.
-
-```php
-// Should contain the summary for this DocBlock
-$summary = $docblock->getSummary();
-
-// Contains an object of type \phpDocumentor\Reflection\DocBlock\Description;
-// you can either cast it to string or use the render method to get a string
-// representation of the Description.
-$description = $docblock->getDescription();
-```
-
-> For more examples it would be best to review the scripts in the `/examples`
-> folder.
-
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/composer.json b/www/wiki/vendor/phpdocumentor/reflection-docblock/composer.json
deleted file mode 100644
index 78c68517..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/composer.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "phpdocumentor/reflection-docblock",
- "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "type": "library",
- "license": "MIT",
- "authors": [
- {
- "name": "Mike van Riel",
- "email": "me@mikevanriel.com"
- }
- ],
- "require": {
- "php": "^5.6 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0.0",
- "phpdocumentor/type-resolver": "^0.4.0",
- "webmozart/assert": "^1.0"
- },
- "autoload": {
- "psr-4": {"phpDocumentor\\Reflection\\": ["src/"]}
- },
- "autoload-dev": {
- "psr-4": {"phpDocumentor\\Reflection\\": ["tests/unit"]}
- },
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^4.4"
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock.php
deleted file mode 100644
index 39911406..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock.php
+++ /dev/null
@@ -1,220 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection;
-
-use phpDocumentor\Reflection\DocBlock\Tag;
-use Webmozart\Assert\Assert;
-
-final class DocBlock
-{
- /** @var string The opening line for this docblock. */
- private $summary = '';
-
- /** @var DocBlock\Description The actual description for this docblock. */
- private $description = null;
-
- /** @var Tag[] An array containing all the tags in this docblock; except inline. */
- private $tags = array();
-
- /** @var Types\Context Information about the context of this DocBlock. */
- private $context = null;
-
- /** @var Location Information about the location of this DocBlock. */
- private $location = null;
-
- /** @var bool Is this DocBlock (the start of) a template? */
- private $isTemplateStart = false;
-
- /** @var bool Does this DocBlock signify the end of a DocBlock template? */
- private $isTemplateEnd = false;
-
- /**
- * @param string $summary
- * @param DocBlock\Description $description
- * @param DocBlock\Tag[] $tags
- * @param Types\Context $context The context in which the DocBlock occurs.
- * @param Location $location The location within the file that this DocBlock occurs in.
- * @param bool $isTemplateStart
- * @param bool $isTemplateEnd
- */
- public function __construct(
- $summary = '',
- DocBlock\Description $description = null,
- array $tags = [],
- Types\Context $context = null,
- Location $location = null,
- $isTemplateStart = false,
- $isTemplateEnd = false
- )
- {
- Assert::string($summary);
- Assert::boolean($isTemplateStart);
- Assert::boolean($isTemplateEnd);
- Assert::allIsInstanceOf($tags, Tag::class);
-
- $this->summary = $summary;
- $this->description = $description ?: new DocBlock\Description('');
- foreach ($tags as $tag) {
- $this->addTag($tag);
- }
-
- $this->context = $context;
- $this->location = $location;
-
- $this->isTemplateEnd = $isTemplateEnd;
- $this->isTemplateStart = $isTemplateStart;
- }
-
- /**
- * @return string
- */
- public function getSummary()
- {
- return $this->summary;
- }
-
- /**
- * @return DocBlock\Description
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Returns the current context.
- *
- * @return Types\Context
- */
- public function getContext()
- {
- return $this->context;
- }
-
- /**
- * Returns the current location.
- *
- * @return Location
- */
- public function getLocation()
- {
- return $this->location;
- }
-
- /**
- * Returns whether this DocBlock is the start of a Template section.
- *
- * A Docblock may serve as template for a series of subsequent DocBlocks. This is indicated by a special marker
- * (`#@+`) that is appended directly after the opening `/**` of a DocBlock.
- *
- * An example of such an opening is:
- *
- * ```
- * /**#@+
- * * My DocBlock
- * * /
- * ```
- *
- * The description and tags (not the summary!) are copied onto all subsequent DocBlocks and also applied to all
- * elements that follow until another DocBlock is found that contains the closing marker (`#@-`).
- *
- * @see self::isTemplateEnd() for the check whether a closing marker was provided.
- *
- * @return boolean
- */
- public function isTemplateStart()
- {
- return $this->isTemplateStart;
- }
-
- /**
- * Returns whether this DocBlock is the end of a Template section.
- *
- * @see self::isTemplateStart() for a more complete description of the Docblock Template functionality.
- *
- * @return boolean
- */
- public function isTemplateEnd()
- {
- return $this->isTemplateEnd;
- }
-
- /**
- * Returns the tags for this DocBlock.
- *
- * @return Tag[]
- */
- public function getTags()
- {
- return $this->tags;
- }
-
- /**
- * Returns an array of tags matching the given name. If no tags are found
- * an empty array is returned.
- *
- * @param string $name String to search by.
- *
- * @return Tag[]
- */
- public function getTagsByName($name)
- {
- Assert::string($name);
-
- $result = array();
-
- /** @var Tag $tag */
- foreach ($this->getTags() as $tag) {
- if ($tag->getName() != $name) {
- continue;
- }
-
- $result[] = $tag;
- }
-
- return $result;
- }
-
- /**
- * Checks if a tag of a certain type is present in this DocBlock.
- *
- * @param string $name Tag name to check for.
- *
- * @return bool
- */
- public function hasTag($name)
- {
- Assert::string($name);
-
- /** @var Tag $tag */
- foreach ($this->getTags() as $tag) {
- if ($tag->getName() == $name) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * Adds a tag to this DocBlock.
- *
- * @param Tag $tag The tag to add.
- *
- * @return void
- */
- private function addTag(Tag $tag)
- {
- $this->tags[] = $tag;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Description.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Description.php
deleted file mode 100644
index c63cae5a..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Description.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock;
-
-use phpDocumentor\Reflection\DocBlock\Tags\Formatter;
-use phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter;
-use Webmozart\Assert\Assert;
-
-/**
- * Object representing to description for a DocBlock.
- *
- * A Description object can consist of plain text but can also include tags. A Description Formatter can then combine
- * a body template with sprintf-style placeholders together with formatted tags in order to reconstitute a complete
- * description text using the format that you would prefer.
- *
- * Because parsing a Description text can be a verbose process this is handled by the {@see DescriptionFactory}. It is
- * thus recommended to use that to create a Description object, like this:
- *
- * $description = $descriptionFactory->create('This is a {@see Description}', $context);
- *
- * The description factory will interpret the given body and create a body template and list of tags from them, and pass
- * that onto the constructor if this class.
- *
- * > The $context variable is a class of type {@see \phpDocumentor\Reflection\Types\Context} and contains the namespace
- * > and the namespace aliases that apply to this DocBlock. These are used by the Factory to resolve and expand partial
- * > type names and FQSENs.
- *
- * If you do not want to use the DescriptionFactory you can pass a body template and tag listing like this:
- *
- * $description = new Description(
- * 'This is a %1$s',
- * [ new See(new Fqsen('\phpDocumentor\Reflection\DocBlock\Description')) ]
- * );
- *
- * It is generally recommended to use the Factory as that will also apply escaping rules, while the Description object
- * is mainly responsible for rendering.
- *
- * @see DescriptionFactory to create a new Description.
- * @see Description\Formatter for the formatting of the body and tags.
- */
-class Description
-{
- /** @var string */
- private $bodyTemplate;
-
- /** @var Tag[] */
- private $tags;
-
- /**
- * Initializes a Description with its body (template) and a listing of the tags used in the body template.
- *
- * @param string $bodyTemplate
- * @param Tag[] $tags
- */
- public function __construct($bodyTemplate, array $tags = [])
- {
- Assert::string($bodyTemplate);
-
- $this->bodyTemplate = $bodyTemplate;
- $this->tags = $tags;
- }
-
- /**
- * Returns the tags for this DocBlock.
- *
- * @return Tag[]
- */
- public function getTags()
- {
- return $this->tags;
- }
-
- /**
- * Renders this description as a string where the provided formatter will format the tags in the expected string
- * format.
- *
- * @param Formatter|null $formatter
- *
- * @return string
- */
- public function render(Formatter $formatter = null)
- {
- if ($formatter === null) {
- $formatter = new PassthroughFormatter();
- }
-
- $tags = [];
- foreach ($this->tags as $tag) {
- $tags[] = '{' . $formatter->format($tag) . '}';
- }
- return vsprintf($this->bodyTemplate, $tags);
- }
-
- /**
- * Returns a plain string representation of this description.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->render();
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/DescriptionFactory.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/DescriptionFactory.php
deleted file mode 100644
index f34d0f7e..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/DescriptionFactory.php
+++ /dev/null
@@ -1,192 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock;
-
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-
-/**
- * Creates a new Description object given a body of text.
- *
- * Descriptions in phpDocumentor are somewhat complex entities as they can contain one or more tags inside their
- * body that can be replaced with a readable output. The replacing is done by passing a Formatter object to the
- * Description object's `render` method.
- *
- * In addition to the above does a Description support two types of escape sequences:
- *
- * 1. `{@}` to escape the `@` character to prevent it from being interpreted as part of a tag, i.e. `{{@}link}`
- * 2. `{}` to escape the `}` character, this can be used if you want to use the `}` character in the description
- * of an inline tag.
- *
- * If a body consists of multiple lines then this factory will also remove any superfluous whitespace at the beginning
- * of each line while maintaining any indentation that is used. This will prevent formatting parsers from tripping
- * over unexpected spaces as can be observed with tag descriptions.
- */
-class DescriptionFactory
-{
- /** @var TagFactory */
- private $tagFactory;
-
- /**
- * Initializes this factory with the means to construct (inline) tags.
- *
- * @param TagFactory $tagFactory
- */
- public function __construct(TagFactory $tagFactory)
- {
- $this->tagFactory = $tagFactory;
- }
-
- /**
- * Returns the parsed text of this description.
- *
- * @param string $contents
- * @param TypeContext $context
- *
- * @return Description
- */
- public function create($contents, TypeContext $context = null)
- {
- list($text, $tags) = $this->parse($this->lex($contents), $context);
-
- return new Description($text, $tags);
- }
-
- /**
- * Strips the contents from superfluous whitespace and splits the description into a series of tokens.
- *
- * @param string $contents
- *
- * @return string[] A series of tokens of which the description text is composed.
- */
- private function lex($contents)
- {
- $contents = $this->removeSuperfluousStartingWhitespace($contents);
-
- // performance optimalization; if there is no inline tag, don't bother splitting it up.
- if (strpos($contents, '{@') === false) {
- return [$contents];
- }
-
- return preg_split(
- '/\{
- # "{@}" is not a valid inline tag. This ensures that we do not treat it as one, but treat it literally.
- (?!@\})
- # We want to capture the whole tag line, but without the inline tag delimiters.
- (\@
- # Match everything up to the next delimiter.
- [^{}]*
- # Nested inline tag content should not be captured, or it will appear in the result separately.
- (?:
- # Match nested inline tags.
- (?:
- # Because we did not catch the tag delimiters earlier, we must be explicit with them here.
- # Notice that this also matches "{}", as a way to later introduce it as an escape sequence.
- \{(?1)?\}
- |
- # Make sure we match hanging "{".
- \{
- )
- # Match content after the nested inline tag.
- [^{}]*
- )* # If there are more inline tags, match them as well. We use "*" since there may not be any
- # nested inline tags.
- )
- \}/Sux',
- $contents,
- null,
- PREG_SPLIT_DELIM_CAPTURE
- );
- }
-
- /**
- * Parses the stream of tokens in to a new set of tokens containing Tags.
- *
- * @param string[] $tokens
- * @param TypeContext $context
- *
- * @return string[]|Tag[]
- */
- private function parse($tokens, TypeContext $context)
- {
- $count = count($tokens);
- $tagCount = 0;
- $tags = [];
-
- for ($i = 1; $i < $count; $i += 2) {
- $tags[] = $this->tagFactory->create($tokens[$i], $context);
- $tokens[$i] = '%' . ++$tagCount . '$s';
- }
-
- //In order to allow "literal" inline tags, the otherwise invalid
- //sequence "{@}" is changed to "@", and "{}" is changed to "}".
- //"%" is escaped to "%%" because of vsprintf.
- //See unit tests for examples.
- for ($i = 0; $i < $count; $i += 2) {
- $tokens[$i] = str_replace(['{@}', '{}', '%'], ['@', '}', '%%'], $tokens[$i]);
- }
-
- return [implode('', $tokens), $tags];
- }
-
- /**
- * Removes the superfluous from a multi-line description.
- *
- * When a description has more than one line then it can happen that the second and subsequent lines have an
- * additional indentation. This is commonly in use with tags like this:
- *
- * {@}since 1.1.0 This is an example
- * description where we have an
- * indentation in the second and
- * subsequent lines.
- *
- * If we do not normalize the indentation then we have superfluous whitespace on the second and subsequent
- * lines and this may cause rendering issues when, for example, using a Markdown converter.
- *
- * @param string $contents
- *
- * @return string
- */
- private function removeSuperfluousStartingWhitespace($contents)
- {
- $lines = explode("\n", $contents);
-
- // if there is only one line then we don't have lines with superfluous whitespace and
- // can use the contents as-is
- if (count($lines) <= 1) {
- return $contents;
- }
-
- // determine how many whitespace characters need to be stripped
- $startingSpaceCount = 9999999;
- for ($i = 1; $i < count($lines); $i++) {
- // lines with a no length do not count as they are not indented at all
- if (strlen(trim($lines[$i])) === 0) {
- continue;
- }
-
- // determine the number of prefixing spaces by checking the difference in line length before and after
- // an ltrim
- $startingSpaceCount = min($startingSpaceCount, strlen($lines[$i]) - strlen(ltrim($lines[$i])));
- }
-
- // strip the number of spaces from each line
- if ($startingSpaceCount > 0) {
- for ($i = 1; $i < count($lines); $i++) {
- $lines[$i] = substr($lines[$i], $startingSpaceCount);
- }
- }
-
- return implode("\n", $lines);
- }
-
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/ExampleFinder.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/ExampleFinder.php
deleted file mode 100644
index ea79f7cb..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/ExampleFinder.php
+++ /dev/null
@@ -1,170 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock;
-
-use phpDocumentor\Reflection\DocBlock\Tags\Example;
-
-/**
- * Class used to find an example file's location based on a given ExampleDescriptor.
- */
-class ExampleFinder
-{
- /** @var string */
- private $sourceDirectory = '';
-
- /** @var string[] */
- private $exampleDirectories = array();
-
- /**
- * Attempts to find the example contents for the given descriptor.
- *
- * @param Example $example
- *
- * @return string
- */
- public function find(Example $example)
- {
- $filename = $example->getFilePath();
-
- $file = $this->getExampleFileContents($filename);
- if (!$file) {
- return "** File not found : {$filename} **";
- }
-
- return implode('', array_slice($file, $example->getStartingLine() - 1, $example->getLineCount()));
- }
-
- /**
- * Registers the project's root directory where an 'examples' folder can be expected.
- *
- * @param string $directory
- *
- * @return void
- */
- public function setSourceDirectory($directory = '')
- {
- $this->sourceDirectory = $directory;
- }
-
- /**
- * Returns the project's root directory where an 'examples' folder can be expected.
- *
- * @return string
- */
- public function getSourceDirectory()
- {
- return $this->sourceDirectory;
- }
-
- /**
- * Registers a series of directories that may contain examples.
- *
- * @param string[] $directories
- */
- public function setExampleDirectories(array $directories)
- {
- $this->exampleDirectories = $directories;
- }
-
- /**
- * Returns a series of directories that may contain examples.
- *
- * @return string[]
- */
- public function getExampleDirectories()
- {
- return $this->exampleDirectories;
- }
-
- /**
- * Attempts to find the requested example file and returns its contents or null if no file was found.
- *
- * This method will try several methods in search of the given example file, the first one it encounters is
- * returned:
- *
- * 1. Iterates through all examples folders for the given filename
- * 2. Checks the source folder for the given filename
- * 3. Checks the 'examples' folder in the current working directory for examples
- * 4. Checks the path relative to the current working directory for the given filename
- *
- * @param string $filename
- *
- * @return string|null
- */
- private function getExampleFileContents($filename)
- {
- $normalizedPath = null;
-
- foreach ($this->exampleDirectories as $directory) {
- $exampleFileFromConfig = $this->constructExamplePath($directory, $filename);
- if (is_readable($exampleFileFromConfig)) {
- $normalizedPath = $exampleFileFromConfig;
- break;
- }
- }
-
- if (!$normalizedPath) {
- if (is_readable($this->getExamplePathFromSource($filename))) {
- $normalizedPath = $this->getExamplePathFromSource($filename);
- } elseif (is_readable($this->getExamplePathFromExampleDirectory($filename))) {
- $normalizedPath = $this->getExamplePathFromExampleDirectory($filename);
- } elseif (is_readable($filename)) {
- $normalizedPath = $filename;
- }
- }
-
- return $normalizedPath && is_readable($normalizedPath) ? file($normalizedPath) : null;
- }
-
- /**
- * Get example filepath based on the example directory inside your project.
- *
- * @param string $file
- *
- * @return string
- */
- private function getExamplePathFromExampleDirectory($file)
- {
- return getcwd() . DIRECTORY_SEPARATOR . 'examples' . DIRECTORY_SEPARATOR . $file;
- }
-
- /**
- * Returns a path to the example file in the given directory..
- *
- * @param string $directory
- * @param string $file
- *
- * @return string
- */
- private function constructExamplePath($directory, $file)
- {
- return rtrim($directory, '\\/') . DIRECTORY_SEPARATOR . $file;
- }
-
- /**
- * Get example filepath based on sourcecode.
- *
- * @param string $file
- *
- * @return string
- */
- private function getExamplePathFromSource($file)
- {
- return sprintf(
- '%s%s%s',
- trim($this->getSourceDirectory(), '\\/'),
- DIRECTORY_SEPARATOR,
- trim($file, '"')
- );
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Serializer.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Serializer.php
deleted file mode 100644
index e0faacb7..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Serializer.php
+++ /dev/null
@@ -1,148 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock;
-
-use phpDocumentor\Reflection\DocBlock;
-use Webmozart\Assert\Assert;
-
-/**
- * Converts a DocBlock back from an object to a complete DocComment including Asterisks.
- */
-class Serializer
-{
- /** @var string The string to indent the comment with. */
- protected $indentString = ' ';
-
- /** @var int The number of times the indent string is repeated. */
- protected $indent = 0;
-
- /** @var bool Whether to indent the first line with the given indent amount and string. */
- protected $isFirstLineIndented = true;
-
- /** @var int|null The max length of a line. */
- protected $lineLength = null;
-
- /** @var DocBlock\Tags\Formatter A custom tag formatter. */
- protected $tagFormatter = null;
-
- /**
- * Create a Serializer instance.
- *
- * @param int $indent The number of times the indent string is repeated.
- * @param string $indentString The string to indent the comment with.
- * @param bool $indentFirstLine Whether to indent the first line.
- * @param int|null $lineLength The max length of a line or NULL to disable line wrapping.
- * @param DocBlock\Tags\Formatter $tagFormatter A custom tag formatter, defaults to PassthroughFormatter.
- */
- public function __construct($indent = 0, $indentString = ' ', $indentFirstLine = true, $lineLength = null, $tagFormatter = null)
- {
- Assert::integer($indent);
- Assert::string($indentString);
- Assert::boolean($indentFirstLine);
- Assert::nullOrInteger($lineLength);
- Assert::nullOrIsInstanceOf($tagFormatter, 'phpDocumentor\Reflection\DocBlock\Tags\Formatter');
-
- $this->indent = $indent;
- $this->indentString = $indentString;
- $this->isFirstLineIndented = $indentFirstLine;
- $this->lineLength = $lineLength;
- $this->tagFormatter = $tagFormatter ?: new DocBlock\Tags\Formatter\PassthroughFormatter();
- }
-
- /**
- * Generate a DocBlock comment.
- *
- * @param DocBlock $docblock The DocBlock to serialize.
- *
- * @return string The serialized doc block.
- */
- public function getDocComment(DocBlock $docblock)
- {
- $indent = str_repeat($this->indentString, $this->indent);
- $firstIndent = $this->isFirstLineIndented ? $indent : '';
- // 3 === strlen(' * ')
- $wrapLength = $this->lineLength ? $this->lineLength - strlen($indent) - 3 : null;
-
- $text = $this->removeTrailingSpaces(
- $indent,
- $this->addAsterisksForEachLine(
- $indent,
- $this->getSummaryAndDescriptionTextBlock($docblock, $wrapLength)
- )
- );
-
- $comment = "{$firstIndent}/**\n{$indent} * {$text}\n{$indent} *\n";
- $comment = $this->addTagBlock($docblock, $wrapLength, $indent, $comment);
- $comment .= $indent . ' */';
-
- return $comment;
- }
-
- /**
- * @param $indent
- * @param $text
- * @return mixed
- */
- private function removeTrailingSpaces($indent, $text)
- {
- return str_replace("\n{$indent} * \n", "\n{$indent} *\n", $text);
- }
-
- /**
- * @param $indent
- * @param $text
- * @return mixed
- */
- private function addAsterisksForEachLine($indent, $text)
- {
- return str_replace("\n", "\n{$indent} * ", $text);
- }
-
- /**
- * @param DocBlock $docblock
- * @param $wrapLength
- * @return string
- */
- private function getSummaryAndDescriptionTextBlock(DocBlock $docblock, $wrapLength)
- {
- $text = $docblock->getSummary() . ((string)$docblock->getDescription() ? "\n\n" . $docblock->getDescription()
- : '');
- if ($wrapLength !== null) {
- $text = wordwrap($text, $wrapLength);
- return $text;
- }
- return $text;
- }
-
- /**
- * @param DocBlock $docblock
- * @param $wrapLength
- * @param $indent
- * @param $comment
- * @return string
- */
- private function addTagBlock(DocBlock $docblock, $wrapLength, $indent, $comment)
- {
- foreach ($docblock->getTags() as $tag) {
- $tagText = $this->tagFormatter->format($tag);
- if ($wrapLength !== null) {
- $tagText = wordwrap($tagText, $wrapLength);
- }
- $tagText = str_replace("\n", "\n{$indent} * ", $tagText);
-
- $comment .= "{$indent} * {$tagText}\n";
- }
-
- return $comment;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/StandardTagFactory.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/StandardTagFactory.php
deleted file mode 100644
index 8efd84e2..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/StandardTagFactory.php
+++ /dev/null
@@ -1,320 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock;
-
-use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod;
-use phpDocumentor\Reflection\DocBlock\Tags\Generic;
-use phpDocumentor\Reflection\FqsenResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Creates a Tag object given the contents of a tag.
- *
- * This Factory is capable of determining the appropriate class for a tag and instantiate it using its `create`
- * factory method. The `create` factory method of a Tag can have a variable number of arguments; this way you can
- * pass the dependencies that you need to construct a tag object.
- *
- * > Important: each parameter in addition to the body variable for the `create` method must default to null, otherwise
- * > it violates the constraint with the interface; it is recommended to use the {@see Assert::notNull()} method to
- * > verify that a dependency is actually passed.
- *
- * This Factory also features a Service Locator component that is used to pass the right dependencies to the
- * `create` method of a tag; each dependency should be registered as a service or as a parameter.
- *
- * When you want to use a Tag of your own with custom handling you need to call the `registerTagHandler` method, pass
- * the name of the tag and a Fully Qualified Class Name pointing to a class that implements the Tag interface.
- */
-final class StandardTagFactory implements TagFactory
-{
- /** PCRE regular expression matching a tag name. */
- const REGEX_TAGNAME = '[\w\-\_\\\\]+';
-
- /**
- * @var string[] An array with a tag as a key, and an FQCN to a class that handles it as an array value.
- */
- private $tagHandlerMappings = [
- 'author' => '\phpDocumentor\Reflection\DocBlock\Tags\Author',
- 'covers' => '\phpDocumentor\Reflection\DocBlock\Tags\Covers',
- 'deprecated' => '\phpDocumentor\Reflection\DocBlock\Tags\Deprecated',
- // 'example' => '\phpDocumentor\Reflection\DocBlock\Tags\Example',
- 'link' => '\phpDocumentor\Reflection\DocBlock\Tags\Link',
- 'method' => '\phpDocumentor\Reflection\DocBlock\Tags\Method',
- 'param' => '\phpDocumentor\Reflection\DocBlock\Tags\Param',
- 'property-read' => '\phpDocumentor\Reflection\DocBlock\Tags\PropertyRead',
- 'property' => '\phpDocumentor\Reflection\DocBlock\Tags\Property',
- 'property-write' => '\phpDocumentor\Reflection\DocBlock\Tags\PropertyWrite',
- 'return' => '\phpDocumentor\Reflection\DocBlock\Tags\Return_',
- 'see' => '\phpDocumentor\Reflection\DocBlock\Tags\See',
- 'since' => '\phpDocumentor\Reflection\DocBlock\Tags\Since',
- 'source' => '\phpDocumentor\Reflection\DocBlock\Tags\Source',
- 'throw' => '\phpDocumentor\Reflection\DocBlock\Tags\Throws',
- 'throws' => '\phpDocumentor\Reflection\DocBlock\Tags\Throws',
- 'uses' => '\phpDocumentor\Reflection\DocBlock\Tags\Uses',
- 'var' => '\phpDocumentor\Reflection\DocBlock\Tags\Var_',
- 'version' => '\phpDocumentor\Reflection\DocBlock\Tags\Version'
- ];
-
- /**
- * @var \ReflectionParameter[][] a lazy-loading cache containing parameters for each tagHandler that has been used.
- */
- private $tagHandlerParameterCache = [];
-
- /**
- * @var FqsenResolver
- */
- private $fqsenResolver;
-
- /**
- * @var mixed[] an array representing a simple Service Locator where we can store parameters and
- * services that can be inserted into the Factory Methods of Tag Handlers.
- */
- private $serviceLocator = [];
-
- /**
- * Initialize this tag factory with the means to resolve an FQSEN and optionally a list of tag handlers.
- *
- * If no tag handlers are provided than the default list in the {@see self::$tagHandlerMappings} property
- * is used.
- *
- * @param FqsenResolver $fqsenResolver
- * @param string[] $tagHandlers
- *
- * @see self::registerTagHandler() to add a new tag handler to the existing default list.
- */
- public function __construct(FqsenResolver $fqsenResolver, array $tagHandlers = null)
- {
- $this->fqsenResolver = $fqsenResolver;
- if ($tagHandlers !== null) {
- $this->tagHandlerMappings = $tagHandlers;
- }
-
- $this->addService($fqsenResolver, FqsenResolver::class);
- }
-
- /**
- * {@inheritDoc}
- */
- public function create($tagLine, TypeContext $context = null)
- {
- if (! $context) {
- $context = new TypeContext('');
- }
-
- list($tagName, $tagBody) = $this->extractTagParts($tagLine);
-
- if ($tagBody !== '' && $tagBody[0] === '[') {
- throw new \InvalidArgumentException(
- 'The tag "' . $tagLine . '" does not seem to be wellformed, please check it for errors'
- );
- }
-
- return $this->createTag($tagBody, $tagName, $context);
- }
-
- /**
- * {@inheritDoc}
- */
- public function addParameter($name, $value)
- {
- $this->serviceLocator[$name] = $value;
- }
-
- /**
- * {@inheritDoc}
- */
- public function addService($service, $alias = null)
- {
- $this->serviceLocator[$alias ?: get_class($service)] = $service;
- }
-
- /**
- * {@inheritDoc}
- */
- public function registerTagHandler($tagName, $handler)
- {
- Assert::stringNotEmpty($tagName);
- Assert::stringNotEmpty($handler);
- Assert::classExists($handler);
- Assert::implementsInterface($handler, StaticMethod::class);
-
- if (strpos($tagName, '\\') && $tagName[0] !== '\\') {
- throw new \InvalidArgumentException(
- 'A namespaced tag must have a leading backslash as it must be fully qualified'
- );
- }
-
- $this->tagHandlerMappings[$tagName] = $handler;
- }
-
- /**
- * Extracts all components for a tag.
- *
- * @param string $tagLine
- *
- * @return string[]
- */
- private function extractTagParts($tagLine)
- {
- $matches = array();
- if (! preg_match('/^@(' . self::REGEX_TAGNAME . ')(?:\s*([^\s].*)|$)/us', $tagLine, $matches)) {
- throw new \InvalidArgumentException(
- 'The tag "' . $tagLine . '" does not seem to be wellformed, please check it for errors'
- );
- }
-
- if (count($matches) < 3) {
- $matches[] = '';
- }
-
- return array_slice($matches, 1);
- }
-
- /**
- * Creates a new tag object with the given name and body or returns null if the tag name was recognized but the
- * body was invalid.
- *
- * @param string $body
- * @param string $name
- * @param TypeContext $context
- *
- * @return Tag|null
- */
- private function createTag($body, $name, TypeContext $context)
- {
- $handlerClassName = $this->findHandlerClassName($name, $context);
- $arguments = $this->getArgumentsForParametersFromWiring(
- $this->fetchParametersForHandlerFactoryMethod($handlerClassName),
- $this->getServiceLocatorWithDynamicParameters($context, $name, $body)
- )
- ;
-
- return call_user_func_array([$handlerClassName, 'create'], $arguments);
- }
-
- /**
- * Determines the Fully Qualified Class Name of the Factory or Tag (containing a Factory Method `create`).
- *
- * @param string $tagName
- * @param TypeContext $context
- *
- * @return string
- */
- private function findHandlerClassName($tagName, TypeContext $context)
- {
- $handlerClassName = Generic::class;
- if (isset($this->tagHandlerMappings[$tagName])) {
- $handlerClassName = $this->tagHandlerMappings[$tagName];
- } elseif ($this->isAnnotation($tagName)) {
- // TODO: Annotation support is planned for a later stage and as such is disabled for now
- // $tagName = (string)$this->fqsenResolver->resolve($tagName, $context);
- // if (isset($this->annotationMappings[$tagName])) {
- // $handlerClassName = $this->annotationMappings[$tagName];
- // }
- }
-
- return $handlerClassName;
- }
-
- /**
- * Retrieves the arguments that need to be passed to the Factory Method with the given Parameters.
- *
- * @param \ReflectionParameter[] $parameters
- * @param mixed[] $locator
- *
- * @return mixed[] A series of values that can be passed to the Factory Method of the tag whose parameters
- * is provided with this method.
- */
- private function getArgumentsForParametersFromWiring($parameters, $locator)
- {
- $arguments = [];
- foreach ($parameters as $index => $parameter) {
- $typeHint = $parameter->getClass() ? $parameter->getClass()->getName() : null;
- if (isset($locator[$typeHint])) {
- $arguments[] = $locator[$typeHint];
- continue;
- }
-
- $parameterName = $parameter->getName();
- if (isset($locator[$parameterName])) {
- $arguments[] = $locator[$parameterName];
- continue;
- }
-
- $arguments[] = null;
- }
-
- return $arguments;
- }
-
- /**
- * Retrieves a series of ReflectionParameter objects for the static 'create' method of the given
- * tag handler class name.
- *
- * @param string $handlerClassName
- *
- * @return \ReflectionParameter[]
- */
- private function fetchParametersForHandlerFactoryMethod($handlerClassName)
- {
- if (! isset($this->tagHandlerParameterCache[$handlerClassName])) {
- $methodReflection = new \ReflectionMethod($handlerClassName, 'create');
- $this->tagHandlerParameterCache[$handlerClassName] = $methodReflection->getParameters();
- }
-
- return $this->tagHandlerParameterCache[$handlerClassName];
- }
-
- /**
- * Returns a copy of this class' Service Locator with added dynamic parameters, such as the tag's name, body and
- * Context.
- *
- * @param TypeContext $context The Context (namespace and aliasses) that may be passed and is used to resolve FQSENs.
- * @param string $tagName The name of the tag that may be passed onto the factory method of the Tag class.
- * @param string $tagBody The body of the tag that may be passed onto the factory method of the Tag class.
- *
- * @return mixed[]
- */
- private function getServiceLocatorWithDynamicParameters(TypeContext $context, $tagName, $tagBody)
- {
- $locator = array_merge(
- $this->serviceLocator,
- [
- 'name' => $tagName,
- 'body' => $tagBody,
- TypeContext::class => $context
- ]
- );
-
- return $locator;
- }
-
- /**
- * Returns whether the given tag belongs to an annotation.
- *
- * @param string $tagContent
- *
- * @todo this method should be populated once we implement Annotation notation support.
- *
- * @return bool
- */
- private function isAnnotation($tagContent)
- {
- // 1. Contains a namespace separator
- // 2. Contains parenthesis
- // 3. Is present in a list of known annotations (make the algorithm smart by first checking is the last part
- // of the annotation class name matches the found tag name
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tag.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tag.php
deleted file mode 100644
index e7653678..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tag.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock;
-
-use phpDocumentor\Reflection\DocBlock\Tags\Formatter;
-
-interface Tag
-{
- public function getName();
-
- public static function create($body);
-
- public function render(Formatter $formatter = null);
-
- public function __toString();
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/TagFactory.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/TagFactory.php
deleted file mode 100644
index 3c1d1132..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/TagFactory.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock;
-
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-
-interface TagFactory
-{
- /**
- * Adds a parameter to the service locator that can be injected in a tag's factory method.
- *
- * When calling a tag's "create" method we always check the signature for dependencies to inject. One way is to
- * typehint a parameter in the signature so that we can use that interface or class name to inject a dependency
- * (see {@see addService()} for more information on that).
- *
- * Another way is to check the name of the argument against the names in the Service Locator. With this method
- * you can add a variable that will be inserted when a tag's create method is not typehinted and has a matching
- * name.
- *
- * Be aware that there are two reserved names:
- *
- * - name, representing the name of the tag.
- * - body, representing the complete body of the tag.
- *
- * These parameters are injected at the last moment and will override any existing parameter with those names.
- *
- * @param string $name
- * @param mixed $value
- *
- * @return void
- */
- public function addParameter($name, $value);
-
- /**
- * Registers a service with the Service Locator using the FQCN of the class or the alias, if provided.
- *
- * When calling a tag's "create" method we always check the signature for dependencies to inject. If a parameter
- * has a typehint then the ServiceLocator is queried to see if a Service is registered for that typehint.
- *
- * Because interfaces are regularly used as type-hints this method provides an alias parameter; if the FQCN of the
- * interface is passed as alias then every time that interface is requested the provided service will be returned.
- *
- * @param object $service
- * @param string $alias
- *
- * @return void
- */
- public function addService($service);
-
- /**
- * Factory method responsible for instantiating the correct sub type.
- *
- * @param string $tagLine The text for this tag, including description.
- * @param TypeContext $context
- *
- * @throws \InvalidArgumentException if an invalid tag line was presented.
- *
- * @return Tag A new tag object.
- */
- public function create($tagLine, TypeContext $context = null);
-
- /**
- * Registers a handler for tags.
- *
- * If you want to use your own tags then you can use this method to instruct the TagFactory to register the name
- * of a tag with the FQCN of a 'Tag Handler'. The Tag handler should implement the {@see Tag} interface (and thus
- * the create method).
- *
- * @param string $tagName Name of tag to register a handler for. When registering a namespaced tag, the full
- * name, along with a prefixing slash MUST be provided.
- * @param string $handler FQCN of handler.
- *
- * @throws \InvalidArgumentException if the tag name is not a string
- * @throws \InvalidArgumentException if the tag name is namespaced (contains backslashes) but does not start with
- * a backslash
- * @throws \InvalidArgumentException if the handler is not a string
- * @throws \InvalidArgumentException if the handler is not an existing class
- * @throws \InvalidArgumentException if the handler does not implement the {@see Tag} interface
- *
- * @return void
- */
- public function registerTagHandler($tagName, $handler);
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Author.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Author.php
deleted file mode 100644
index 29d7f1de..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Author.php
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for an {@}author tag in a Docblock.
- */
-final class Author extends BaseTag implements Factory\StaticMethod
-{
- /** @var string register that this is the author tag. */
- protected $name = 'author';
-
- /** @var string The name of the author */
- private $authorName = '';
-
- /** @var string The email of the author */
- private $authorEmail = '';
-
- /**
- * Initializes this tag with the author name and e-mail.
- *
- * @param string $authorName
- * @param string $authorEmail
- */
- public function __construct($authorName, $authorEmail)
- {
- Assert::string($authorName);
- Assert::string($authorEmail);
- if ($authorEmail && !filter_var($authorEmail, FILTER_VALIDATE_EMAIL)) {
- throw new \InvalidArgumentException('The author tag does not have a valid e-mail address');
- }
-
- $this->authorName = $authorName;
- $this->authorEmail = $authorEmail;
- }
-
- /**
- * Gets the author's name.
- *
- * @return string The author's name.
- */
- public function getAuthorName()
- {
- return $this->authorName;
- }
-
- /**
- * Returns the author's email.
- *
- * @return string The author's email.
- */
- public function getEmail()
- {
- return $this->authorEmail;
- }
-
- /**
- * Returns this tag in string form.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->authorName . (strlen($this->authorEmail) ? ' <' . $this->authorEmail . '>' : '');
- }
-
- /**
- * Attempts to create a new Author object based on †he tag body.
- *
- * @param string $body
- *
- * @return static
- */
- public static function create($body)
- {
- Assert::string($body);
-
- $splitTagContent = preg_match('/^([^\<]*)(?:\<([^\>]*)\>)?$/u', $body, $matches);
- if (!$splitTagContent) {
- return null;
- }
-
- $authorName = trim($matches[1]);
- $email = isset($matches[2]) ? trim($matches[2]) : '';
-
- return new static($authorName, $email);
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/BaseTag.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/BaseTag.php
deleted file mode 100644
index 14bb7177..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/BaseTag.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock;
-use phpDocumentor\Reflection\DocBlock\Description;
-
-/**
- * Parses a tag definition for a DocBlock.
- */
-abstract class BaseTag implements DocBlock\Tag
-{
- /** @var string Name of the tag */
- protected $name = '';
-
- /** @var Description|null Description of the tag. */
- protected $description;
-
- /**
- * Gets the name of this tag.
- *
- * @return string The name of this tag.
- */
- public function getName()
- {
- return $this->name;
- }
-
- public function getDescription()
- {
- return $this->description;
- }
-
- public function render(Formatter $formatter = null)
- {
- if ($formatter === null) {
- $formatter = new Formatter\PassthroughFormatter();
- }
-
- return $formatter->format($this);
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Covers.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Covers.php
deleted file mode 100644
index 31b4f82c..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Covers.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Fqsen;
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use phpDocumentor\Reflection\FqsenResolver;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a @covers tag in a Docblock.
- */
-final class Covers extends BaseTag implements Factory\StaticMethod
-{
- protected $name = 'covers';
-
- /** @var Fqsen */
- private $refers = null;
-
- /**
- * Initializes this tag.
- *
- * @param Fqsen $refers
- * @param Description $description
- */
- public function __construct(Fqsen $refers, Description $description = null)
- {
- $this->refers = $refers;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- DescriptionFactory $descriptionFactory = null,
- FqsenResolver $resolver = null,
- TypeContext $context = null
- )
- {
- Assert::string($body);
- Assert::notEmpty($body);
-
- $parts = preg_split('/\s+/Su', $body, 2);
-
- return new static(
- $resolver->resolve($parts[0], $context),
- $descriptionFactory->create(isset($parts[1]) ? $parts[1] : '', $context)
- );
- }
-
- /**
- * Returns the structural element this tag refers to.
- *
- * @return Fqsen
- */
- public function getReference()
- {
- return $this->refers;
- }
-
- /**
- * Returns a string representation of this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->refers . ($this->description ? ' ' . $this->description->render() : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Deprecated.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Deprecated.php
deleted file mode 100644
index 7c1039fa..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Deprecated.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}deprecated tag in a Docblock.
- */
-final class Deprecated extends BaseTag implements Factory\StaticMethod
-{
- protected $name = 'deprecated';
-
- /**
- * PCRE regular expression matching a version vector.
- * Assumes the "x" modifier.
- */
- const REGEX_VECTOR = '(?:
- # Normal release vectors.
- \d\S*
- |
- # VCS version vectors. Per PHPCS, they are expected to
- # follow the form of the VCS name, followed by ":", followed
- # by the version vector itself.
- # By convention, popular VCSes like CVS, SVN and GIT use "$"
- # around the actual version vector.
- [^\s\:]+\:\s*\$[^\$]+\$
- )';
-
- /** @var string The version vector. */
- private $version = '';
-
- public function __construct($version = null, Description $description = null)
- {
- Assert::nullOrStringNotEmpty($version);
-
- $this->version = $version;
- $this->description = $description;
- }
-
- /**
- * @return static
- */
- public static function create($body, DescriptionFactory $descriptionFactory = null, TypeContext $context = null)
- {
- Assert::nullOrString($body);
- if (empty($body)) {
- return new static();
- }
-
- $matches = [];
- if (!preg_match('/^(' . self::REGEX_VECTOR . ')\s*(.+)?$/sux', $body, $matches)) {
- return new static(
- null,
- null !== $descriptionFactory ? $descriptionFactory->create($body, $context) : null
- );
- }
-
- return new static(
- $matches[1],
- $descriptionFactory->create(isset($matches[2]) ? $matches[2] : '', $context)
- );
- }
-
- /**
- * Gets the version section of the tag.
- *
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Returns a string representation for this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->version . ($this->description ? ' ' . $this->description->render() : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Example.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Example.php
deleted file mode 100644
index b77a934e..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Example.php
+++ /dev/null
@@ -1,176 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\Tag;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}example tag in a Docblock.
- */
-final class Example extends BaseTag
-{
- /**
- * @var string Path to a file to use as an example. May also be an absolute URI.
- */
- private $filePath;
-
- /**
- * @var bool Whether the file path component represents an URI. This determines how the file portion
- * appears at {@link getContent()}.
- */
- private $isURI = false;
-
- /**
- * @var
- */
- private $startingLine;
-
- /**
- * @var
- */
- private $lineCount;
-
- public function __construct($filePath, $isURI, $startingLine, $lineCount, $description)
- {
- Assert::notEmpty($filePath);
- Assert::integer($startingLine);
- Assert::greaterThanEq($startingLine, 0);
-
- $this->filePath = $filePath;
- $this->startingLine = $startingLine;
- $this->lineCount = $lineCount;
- $this->name = 'example';
- if ($description !== null) {
- $this->description = trim($description);
- }
-
- $this->isURI = $isURI;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getContent()
- {
- if (null === $this->description) {
- $filePath = '"' . $this->filePath . '"';
- if ($this->isURI) {
- $filePath = $this->isUriRelative($this->filePath)
- ? str_replace('%2F', '/', rawurlencode($this->filePath))
- :$this->filePath;
- }
-
- return trim($filePath . ' ' . parent::getDescription());
- }
-
- return $this->description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create($body)
- {
- // File component: File path in quotes or File URI / Source information
- if (! preg_match('/^(?:\"([^\"]+)\"|(\S+))(?:\s+(.*))?$/sux', $body, $matches)) {
- return null;
- }
-
- $filePath = null;
- $fileUri = null;
- if ('' !== $matches[1]) {
- $filePath = $matches[1];
- } else {
- $fileUri = $matches[2];
- }
-
- $startingLine = 1;
- $lineCount = null;
- $description = null;
-
- if (array_key_exists(3, $matches)) {
- $description = $matches[3];
-
- // Starting line / Number of lines / Description
- if (preg_match('/^([1-9]\d*)(?:\s+((?1))\s*)?(.*)$/sux', $matches[3], $contentMatches)) {
- $startingLine = (int)$contentMatches[1];
- if (isset($contentMatches[2]) && $contentMatches[2] !== '') {
- $lineCount = (int)$contentMatches[2];
- }
-
- if (array_key_exists(3, $contentMatches)) {
- $description = $contentMatches[3];
- }
- }
- }
-
- return new static(
- $filePath !== null?$filePath:$fileUri,
- $fileUri !== null,
- $startingLine,
- $lineCount,
- $description
- );
- }
-
- /**
- * Returns the file path.
- *
- * @return string Path to a file to use as an example.
- * May also be an absolute URI.
- */
- public function getFilePath()
- {
- return $this->filePath;
- }
-
- /**
- * Returns a string representation for this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->filePath . ($this->description ? ' ' . $this->description : '');
- }
-
- /**
- * Returns true if the provided URI is relative or contains a complete scheme (and thus is absolute).
- *
- * @param string $uri
- *
- * @return bool
- */
- private function isUriRelative($uri)
- {
- return false === strpos($uri, ':');
- }
-
- /**
- * @return int
- */
- public function getStartingLine()
- {
- return $this->startingLine;
- }
-
- /**
- * @return int
- */
- public function getLineCount()
- {
- return $this->lineCount;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php
deleted file mode 100644
index 98aea455..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags\Factory;
-
-interface StaticMethod
-{
- public static function create($body);
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/Strategy.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/Strategy.php
deleted file mode 100644
index b9ca0b8a..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/Strategy.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags\Factory;
-
-interface Strategy
-{
- public function create($body);
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter.php
deleted file mode 100644
index 64b2c603..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Tag;
-
-interface Formatter
-{
- /**
- * Formats a tag into a string representation according to a specific format, such as Markdown.
- *
- * @param Tag $tag
- *
- * @return string
- */
- public function format(Tag $tag);
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/AlignFormatter.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/AlignFormatter.php
deleted file mode 100644
index ceb40cc3..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/AlignFormatter.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @author Jan Schneider <jan@horde.org>
- * @copyright 2017 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags\Formatter;
-
-use phpDocumentor\Reflection\DocBlock\Tag;
-use phpDocumentor\Reflection\DocBlock\Tags\Formatter;
-
-class AlignFormatter implements Formatter
-{
- /** @var int The maximum tag name length. */
- protected $maxLen = 0;
-
- /**
- * Constructor.
- *
- * @param Tag[] $tags All tags that should later be aligned with the formatter.
- */
- public function __construct(array $tags)
- {
- foreach ($tags as $tag) {
- $this->maxLen = max($this->maxLen, strlen($tag->getName()));
- }
- }
-
- /**
- * Formats the given tag to return a simple plain text version.
- *
- * @param Tag $tag
- *
- * @return string
- */
- public function format(Tag $tag)
- {
- return '@' . $tag->getName() . str_repeat(' ', $this->maxLen - strlen($tag->getName()) + 1) . (string)$tag;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/PassthroughFormatter.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/PassthroughFormatter.php
deleted file mode 100644
index 4e2c5762..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/PassthroughFormatter.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags\Formatter;
-
-use phpDocumentor\Reflection\DocBlock\Tag;
-use phpDocumentor\Reflection\DocBlock\Tags\Formatter;
-
-class PassthroughFormatter implements Formatter
-{
- /**
- * Formats the given tag to return a simple plain text version.
- *
- * @param Tag $tag
- *
- * @return string
- */
- public function format(Tag $tag)
- {
- return trim('@' . $tag->getName() . ' ' . (string)$tag);
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Generic.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Generic.php
deleted file mode 100644
index e4c53e00..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Generic.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\DocBlock\StandardTagFactory;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Parses a tag definition for a DocBlock.
- */
-class Generic extends BaseTag implements Factory\StaticMethod
-{
- /**
- * Parses a tag and populates the member variables.
- *
- * @param string $name Name of the tag.
- * @param Description $description The contents of the given tag.
- */
- public function __construct($name, Description $description = null)
- {
- $this->validateTagName($name);
-
- $this->name = $name;
- $this->description = $description;
- }
-
- /**
- * Creates a new tag that represents any unknown tag type.
- *
- * @param string $body
- * @param string $name
- * @param DescriptionFactory $descriptionFactory
- * @param TypeContext $context
- *
- * @return static
- */
- public static function create(
- $body,
- $name = '',
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- ) {
- Assert::string($body);
- Assert::stringNotEmpty($name);
- Assert::notNull($descriptionFactory);
-
- $description = $descriptionFactory && $body ? $descriptionFactory->create($body, $context) : null;
-
- return new static($name, $description);
- }
-
- /**
- * Returns the tag as a serialized string
- *
- * @return string
- */
- public function __toString()
- {
- return ($this->description ? $this->description->render() : '');
- }
-
- /**
- * Validates if the tag name matches the expected format, otherwise throws an exception.
- *
- * @param string $name
- *
- * @return void
- */
- private function validateTagName($name)
- {
- if (! preg_match('/^' . StandardTagFactory::REGEX_TAGNAME . '$/u', $name)) {
- throw new \InvalidArgumentException(
- 'The tag name "' . $name . '" is not wellformed. Tags may only consist of letters, underscores, '
- . 'hyphens and backslashes.'
- );
- }
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php
deleted file mode 100644
index 9c0e367e..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/**
- * phpDocumentor
- *
- * PHP Version 5.3
- *
- * @author Ben Selby <benmatselby@gmail.com>
- * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com)
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a @link tag in a Docblock.
- */
-final class Link extends BaseTag implements Factory\StaticMethod
-{
- protected $name = 'link';
-
- /** @var string */
- private $link = '';
-
- /**
- * Initializes a link to a URL.
- *
- * @param string $link
- * @param Description $description
- */
- public function __construct($link, Description $description = null)
- {
- Assert::string($link);
-
- $this->link = $link;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create($body, DescriptionFactory $descriptionFactory = null, TypeContext $context = null)
- {
- Assert::string($body);
- Assert::notNull($descriptionFactory);
-
- $parts = preg_split('/\s+/Su', $body, 2);
- $description = isset($parts[1]) ? $descriptionFactory->create($parts[1], $context) : null;
-
- return new static($parts[0], $description);
- }
-
- /**
- * Gets the link
- *
- * @return string
- */
- public function getLink()
- {
- return $this->link;
- }
-
- /**
- * Returns a string representation for this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->link . ($this->description ? ' ' . $this->description->render() : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php
deleted file mode 100644
index d3c1cd11..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php
+++ /dev/null
@@ -1,239 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Type;
-use phpDocumentor\Reflection\TypeResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use phpDocumentor\Reflection\Types\Void_;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for an {@}method in a Docblock.
- */
-final class Method extends BaseTag implements Factory\StaticMethod
-{
- protected $name = 'method';
-
- /** @var string */
- private $methodName = '';
-
- /** @var string[] */
- private $arguments = [];
-
- /** @var bool */
- private $isStatic = false;
-
- /** @var Type */
- private $returnType;
-
- public function __construct(
- $methodName,
- array $arguments = [],
- Type $returnType = null,
- $static = false,
- Description $description = null
- ) {
- Assert::stringNotEmpty($methodName);
- Assert::boolean($static);
-
- if ($returnType === null) {
- $returnType = new Void_();
- }
-
- $this->methodName = $methodName;
- $this->arguments = $this->filterArguments($arguments);
- $this->returnType = $returnType;
- $this->isStatic = $static;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- TypeResolver $typeResolver = null,
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- ) {
- Assert::stringNotEmpty($body);
- Assert::allNotNull([ $typeResolver, $descriptionFactory ]);
-
- // 1. none or more whitespace
- // 2. optionally the keyword "static" followed by whitespace
- // 3. optionally a word with underscores followed by whitespace : as
- // type for the return value
- // 4. then optionally a word with underscores followed by () and
- // whitespace : as method name as used by phpDocumentor
- // 5. then a word with underscores, followed by ( and any character
- // until a ) and whitespace : as method name with signature
- // 6. any remaining text : as description
- if (!preg_match(
- '/^
- # Static keyword
- # Declares a static method ONLY if type is also present
- (?:
- (static)
- \s+
- )?
- # Return type
- (?:
- (
- (?:[\w\|_\\\\]*\$this[\w\|_\\\\]*)
- |
- (?:
- (?:[\w\|_\\\\]+)
- # array notation
- (?:\[\])*
- )*
- )
- \s+
- )?
- # Legacy method name (not captured)
- (?:
- [\w_]+\(\)\s+
- )?
- # Method name
- ([\w\|_\\\\]+)
- # Arguments
- (?:
- \(([^\)]*)\)
- )?
- \s*
- # Description
- (.*)
- $/sux',
- $body,
- $matches
- )) {
- return null;
- }
-
- list(, $static, $returnType, $methodName, $arguments, $description) = $matches;
-
- $static = $static === 'static';
-
- if ($returnType === '') {
- $returnType = 'void';
- }
-
- $returnType = $typeResolver->resolve($returnType, $context);
- $description = $descriptionFactory->create($description, $context);
-
- if (is_string($arguments) && strlen($arguments) > 0) {
- $arguments = explode(',', $arguments);
- foreach($arguments as &$argument) {
- $argument = explode(' ', self::stripRestArg(trim($argument)), 2);
- if ($argument[0][0] === '$') {
- $argumentName = substr($argument[0], 1);
- $argumentType = new Void_();
- } else {
- $argumentType = $typeResolver->resolve($argument[0], $context);
- $argumentName = '';
- if (isset($argument[1])) {
- $argument[1] = self::stripRestArg($argument[1]);
- $argumentName = substr($argument[1], 1);
- }
- }
-
- $argument = [ 'name' => $argumentName, 'type' => $argumentType];
- }
- } else {
- $arguments = [];
- }
-
- return new static($methodName, $arguments, $returnType, $static, $description);
- }
-
- /**
- * Retrieves the method name.
- *
- * @return string
- */
- public function getMethodName()
- {
- return $this->methodName;
- }
-
- /**
- * @return string[]
- */
- public function getArguments()
- {
- return $this->arguments;
- }
-
- /**
- * Checks whether the method tag describes a static method or not.
- *
- * @return bool TRUE if the method declaration is for a static method, FALSE otherwise.
- */
- public function isStatic()
- {
- return $this->isStatic;
- }
-
- /**
- * @return Type
- */
- public function getReturnType()
- {
- return $this->returnType;
- }
-
- public function __toString()
- {
- $arguments = [];
- foreach ($this->arguments as $argument) {
- $arguments[] = $argument['type'] . ' $' . $argument['name'];
- }
-
- return trim(($this->isStatic() ? 'static ' : '')
- . (string)$this->returnType . ' '
- . $this->methodName
- . '(' . implode(', ', $arguments) . ')'
- . ($this->description ? ' ' . $this->description->render() : ''));
- }
-
- private function filterArguments($arguments)
- {
- foreach ($arguments as &$argument) {
- if (is_string($argument)) {
- $argument = [ 'name' => $argument ];
- }
- if (! isset($argument['type'])) {
- $argument['type'] = new Void_();
- }
- $keys = array_keys($argument);
- if ($keys !== [ 'name', 'type' ]) {
- throw new \InvalidArgumentException(
- 'Arguments can only have the "name" and "type" fields, found: ' . var_export($keys, true)
- );
- }
- }
-
- return $arguments;
- }
-
- private static function stripRestArg($argument)
- {
- if (strpos($argument, '...') === 0) {
- $argument = trim(substr($argument, 3));
- }
-
- return $argument;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Param.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Param.php
deleted file mode 100644
index 1a51dc0d..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Param.php
+++ /dev/null
@@ -1,141 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Type;
-use phpDocumentor\Reflection\TypeResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for the {@}param tag in a Docblock.
- */
-final class Param extends BaseTag implements Factory\StaticMethod
-{
- /** @var string */
- protected $name = 'param';
-
- /** @var Type */
- private $type;
-
- /** @var string */
- private $variableName = '';
-
- /** @var bool determines whether this is a variadic argument */
- private $isVariadic = false;
-
- /**
- * @param string $variableName
- * @param Type $type
- * @param bool $isVariadic
- * @param Description $description
- */
- public function __construct($variableName, Type $type = null, $isVariadic = false, Description $description = null)
- {
- Assert::string($variableName);
- Assert::boolean($isVariadic);
-
- $this->variableName = $variableName;
- $this->type = $type;
- $this->isVariadic = $isVariadic;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- TypeResolver $typeResolver = null,
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- ) {
- Assert::stringNotEmpty($body);
- Assert::allNotNull([$typeResolver, $descriptionFactory]);
-
- $parts = preg_split('/(\s+)/Su', $body, 3, PREG_SPLIT_DELIM_CAPTURE);
- $type = null;
- $variableName = '';
- $isVariadic = false;
-
- // if the first item that is encountered is not a variable; it is a type
- if (isset($parts[0]) && (strlen($parts[0]) > 0) && ($parts[0][0] !== '$')) {
- $type = $typeResolver->resolve(array_shift($parts), $context);
- array_shift($parts);
- }
-
- // if the next item starts with a $ or ...$ it must be the variable name
- if (isset($parts[0]) && (strlen($parts[0]) > 0) && ($parts[0][0] == '$' || substr($parts[0], 0, 4) === '...$')) {
- $variableName = array_shift($parts);
- array_shift($parts);
-
- if (substr($variableName, 0, 3) === '...') {
- $isVariadic = true;
- $variableName = substr($variableName, 3);
- }
-
- if (substr($variableName, 0, 1) === '$') {
- $variableName = substr($variableName, 1);
- }
- }
-
- $description = $descriptionFactory->create(implode('', $parts), $context);
-
- return new static($variableName, $type, $isVariadic, $description);
- }
-
- /**
- * Returns the variable's name.
- *
- * @return string
- */
- public function getVariableName()
- {
- return $this->variableName;
- }
-
- /**
- * Returns the variable's type or null if unknown.
- *
- * @return Type|null
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Returns whether this tag is variadic.
- *
- * @return boolean
- */
- public function isVariadic()
- {
- return $this->isVariadic;
- }
-
- /**
- * Returns a string representation for this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return ($this->type ? $this->type . ' ' : '')
- . ($this->isVariadic() ? '...' : '')
- . '$' . $this->variableName
- . ($this->description ? ' ' . $this->description : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php
deleted file mode 100644
index 3c597133..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Type;
-use phpDocumentor\Reflection\TypeResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}property tag in a Docblock.
- */
-class Property extends BaseTag implements Factory\StaticMethod
-{
- /** @var string */
- protected $name = 'property';
-
- /** @var Type */
- private $type;
-
- /** @var string */
- protected $variableName = '';
-
- /**
- * @param string $variableName
- * @param Type $type
- * @param Description $description
- */
- public function __construct($variableName, Type $type = null, Description $description = null)
- {
- Assert::string($variableName);
-
- $this->variableName = $variableName;
- $this->type = $type;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- TypeResolver $typeResolver = null,
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- ) {
- Assert::stringNotEmpty($body);
- Assert::allNotNull([$typeResolver, $descriptionFactory]);
-
- $parts = preg_split('/(\s+)/Su', $body, 3, PREG_SPLIT_DELIM_CAPTURE);
- $type = null;
- $variableName = '';
-
- // if the first item that is encountered is not a variable; it is a type
- if (isset($parts[0]) && (strlen($parts[0]) > 0) && ($parts[0][0] !== '$')) {
- $type = $typeResolver->resolve(array_shift($parts), $context);
- array_shift($parts);
- }
-
- // if the next item starts with a $ or ...$ it must be the variable name
- if (isset($parts[0]) && (strlen($parts[0]) > 0) && ($parts[0][0] == '$')) {
- $variableName = array_shift($parts);
- array_shift($parts);
-
- if (substr($variableName, 0, 1) === '$') {
- $variableName = substr($variableName, 1);
- }
- }
-
- $description = $descriptionFactory->create(implode('', $parts), $context);
-
- return new static($variableName, $type, $description);
- }
-
- /**
- * Returns the variable's name.
- *
- * @return string
- */
- public function getVariableName()
- {
- return $this->variableName;
- }
-
- /**
- * Returns the variable's type or null if unknown.
- *
- * @return Type|null
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Returns a string representation for this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return ($this->type ? $this->type . ' ' : '')
- . '$' . $this->variableName
- . ($this->description ? ' ' . $this->description : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php
deleted file mode 100644
index bf2b8056..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Type;
-use phpDocumentor\Reflection\TypeResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}property-read tag in a Docblock.
- */
-class PropertyRead extends BaseTag implements Factory\StaticMethod
-{
- /** @var string */
- protected $name = 'property-read';
-
- /** @var Type */
- private $type;
-
- /** @var string */
- protected $variableName = '';
-
- /**
- * @param string $variableName
- * @param Type $type
- * @param Description $description
- */
- public function __construct($variableName, Type $type = null, Description $description = null)
- {
- Assert::string($variableName);
-
- $this->variableName = $variableName;
- $this->type = $type;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- TypeResolver $typeResolver = null,
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- ) {
- Assert::stringNotEmpty($body);
- Assert::allNotNull([$typeResolver, $descriptionFactory]);
-
- $parts = preg_split('/(\s+)/Su', $body, 3, PREG_SPLIT_DELIM_CAPTURE);
- $type = null;
- $variableName = '';
-
- // if the first item that is encountered is not a variable; it is a type
- if (isset($parts[0]) && (strlen($parts[0]) > 0) && ($parts[0][0] !== '$')) {
- $type = $typeResolver->resolve(array_shift($parts), $context);
- array_shift($parts);
- }
-
- // if the next item starts with a $ or ...$ it must be the variable name
- if (isset($parts[0]) && (strlen($parts[0]) > 0) && ($parts[0][0] == '$')) {
- $variableName = array_shift($parts);
- array_shift($parts);
-
- if (substr($variableName, 0, 1) === '$') {
- $variableName = substr($variableName, 1);
- }
- }
-
- $description = $descriptionFactory->create(implode('', $parts), $context);
-
- return new static($variableName, $type, $description);
- }
-
- /**
- * Returns the variable's name.
- *
- * @return string
- */
- public function getVariableName()
- {
- return $this->variableName;
- }
-
- /**
- * Returns the variable's type or null if unknown.
- *
- * @return Type|null
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Returns a string representation for this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return ($this->type ? $this->type . ' ' : '')
- . '$' . $this->variableName
- . ($this->description ? ' ' . $this->description : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyWrite.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyWrite.php
deleted file mode 100644
index db37e0fb..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyWrite.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Type;
-use phpDocumentor\Reflection\TypeResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}property-write tag in a Docblock.
- */
-class PropertyWrite extends BaseTag implements Factory\StaticMethod
-{
- /** @var string */
- protected $name = 'property-write';
-
- /** @var Type */
- private $type;
-
- /** @var string */
- protected $variableName = '';
-
- /**
- * @param string $variableName
- * @param Type $type
- * @param Description $description
- */
- public function __construct($variableName, Type $type = null, Description $description = null)
- {
- Assert::string($variableName);
-
- $this->variableName = $variableName;
- $this->type = $type;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- TypeResolver $typeResolver = null,
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- ) {
- Assert::stringNotEmpty($body);
- Assert::allNotNull([$typeResolver, $descriptionFactory]);
-
- $parts = preg_split('/(\s+)/Su', $body, 3, PREG_SPLIT_DELIM_CAPTURE);
- $type = null;
- $variableName = '';
-
- // if the first item that is encountered is not a variable; it is a type
- if (isset($parts[0]) && (strlen($parts[0]) > 0) && ($parts[0][0] !== '$')) {
- $type = $typeResolver->resolve(array_shift($parts), $context);
- array_shift($parts);
- }
-
- // if the next item starts with a $ or ...$ it must be the variable name
- if (isset($parts[0]) && (strlen($parts[0]) > 0) && ($parts[0][0] == '$')) {
- $variableName = array_shift($parts);
- array_shift($parts);
-
- if (substr($variableName, 0, 1) === '$') {
- $variableName = substr($variableName, 1);
- }
- }
-
- $description = $descriptionFactory->create(implode('', $parts), $context);
-
- return new static($variableName, $type, $description);
- }
-
- /**
- * Returns the variable's name.
- *
- * @return string
- */
- public function getVariableName()
- {
- return $this->variableName;
- }
-
- /**
- * Returns the variable's type or null if unknown.
- *
- * @return Type|null
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Returns a string representation for this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return ($this->type ? $this->type . ' ' : '')
- . '$' . $this->variableName
- . ($this->description ? ' ' . $this->description : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Fqsen.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Fqsen.php
deleted file mode 100644
index dc7b8b6d..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Fqsen.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2017 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags\Reference;
-
-use phpDocumentor\Reflection\Fqsen as RealFqsen;
-
-/**
- * Fqsen reference used by {@see phpDocumentor\Reflection\DocBlock\Tags\See}
- */
-final class Fqsen implements Reference
-{
- /**
- * @var RealFqsen
- */
- private $fqsen;
-
- /**
- * Fqsen constructor.
- */
- public function __construct(RealFqsen $fqsen)
- {
- $this->fqsen = $fqsen;
- }
-
- /**
- * @return string string representation of the referenced fqsen
- */
- public function __toString()
- {
- return (string)$this->fqsen;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Reference.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Reference.php
deleted file mode 100644
index 5bf27d37..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Reference.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2017 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags\Reference;
-
-/**
- * Interface for references in {@see phpDocumentor\Reflection\DocBlock\Tags\See}
- */
-interface Reference
-{
- public function __toString();
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Url.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Url.php
deleted file mode 100644
index 2671d5e1..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Url.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2017 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags\Reference;
-
-use Webmozart\Assert\Assert;
-
-/**
- * Url reference used by {@see phpDocumentor\Reflection\DocBlock\Tags\See}
- */
-final class Url implements Reference
-{
- /**
- * @var string
- */
- private $uri;
-
- /**
- * Url constructor.
- */
- public function __construct($uri)
- {
- Assert::stringNotEmpty($uri);
- $this->uri = $uri;
- }
-
- public function __toString()
- {
- return $this->uri;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php
deleted file mode 100644
index 09a5870e..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Type;
-use phpDocumentor\Reflection\TypeResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}return tag in a Docblock.
- */
-final class Return_ extends BaseTag implements Factory\StaticMethod
-{
- protected $name = 'return';
-
- /** @var Type */
- private $type;
-
- public function __construct(Type $type, Description $description = null)
- {
- $this->type = $type;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- TypeResolver $typeResolver = null,
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- )
- {
- Assert::string($body);
- Assert::allNotNull([$typeResolver, $descriptionFactory]);
-
- $parts = preg_split('/\s+/Su', $body, 2);
-
- $type = $typeResolver->resolve(isset($parts[0]) ? $parts[0] : '', $context);
- $description = $descriptionFactory->create(isset($parts[1]) ? $parts[1] : '', $context);
-
- return new static($type, $description);
- }
-
- /**
- * Returns the type section of the variable.
- *
- * @return Type
- */
- public function getType()
- {
- return $this->type;
- }
-
- public function __toString()
- {
- return $this->type . ' ' . $this->description;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/See.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/See.php
deleted file mode 100644
index 3774b491..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/See.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\DocBlock\Tags\Reference\Fqsen as FqsenRef;
-use phpDocumentor\Reflection\DocBlock\Tags\Reference\Reference;
-use phpDocumentor\Reflection\DocBlock\Tags\Reference\Url;
-use phpDocumentor\Reflection\Fqsen;
-use phpDocumentor\Reflection\FqsenResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use phpDocumentor\Reflection\DocBlock\Description;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for an {@}see tag in a Docblock.
- */
-class See extends BaseTag implements Factory\StaticMethod
-{
- protected $name = 'see';
-
- /** @var Reference */
- protected $refers = null;
-
- /**
- * Initializes this tag.
- *
- * @param Reference $refers
- * @param Description $description
- */
- public function __construct(Reference $refers, Description $description = null)
- {
- $this->refers = $refers;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- FqsenResolver $resolver = null,
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- ) {
- Assert::string($body);
- Assert::allNotNull([$resolver, $descriptionFactory]);
-
- $parts = preg_split('/\s+/Su', $body, 2);
- $description = isset($parts[1]) ? $descriptionFactory->create($parts[1], $context) : null;
-
- // https://tools.ietf.org/html/rfc2396#section-3
- if (preg_match('/\w:\/\/\w/i', $parts[0])) {
- return new static(new Url($parts[0]), $description);
- }
-
- return new static(new FqsenRef($resolver->resolve($parts[0], $context)), $description);
- }
-
- /**
- * Returns the ref of this tag.
- *
- * @return Reference
- */
- public function getReference()
- {
- return $this->refers;
- }
-
- /**
- * Returns a string representation of this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->refers . ($this->description ? ' ' . $this->description->render() : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Since.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Since.php
deleted file mode 100644
index 3d002ed3..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Since.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}since tag in a Docblock.
- */
-final class Since extends BaseTag implements Factory\StaticMethod
-{
- protected $name = 'since';
-
- /**
- * PCRE regular expression matching a version vector.
- * Assumes the "x" modifier.
- */
- const REGEX_VECTOR = '(?:
- # Normal release vectors.
- \d\S*
- |
- # VCS version vectors. Per PHPCS, they are expected to
- # follow the form of the VCS name, followed by ":", followed
- # by the version vector itself.
- # By convention, popular VCSes like CVS, SVN and GIT use "$"
- # around the actual version vector.
- [^\s\:]+\:\s*\$[^\$]+\$
- )';
-
- /** @var string The version vector. */
- private $version = '';
-
- public function __construct($version = null, Description $description = null)
- {
- Assert::nullOrStringNotEmpty($version);
-
- $this->version = $version;
- $this->description = $description;
- }
-
- /**
- * @return static
- */
- public static function create($body, DescriptionFactory $descriptionFactory = null, TypeContext $context = null)
- {
- Assert::nullOrString($body);
- if (empty($body)) {
- return new static();
- }
-
- $matches = [];
- if (! preg_match('/^(' . self::REGEX_VECTOR . ')\s*(.+)?$/sux', $body, $matches)) {
- return null;
- }
-
- return new static(
- $matches[1],
- $descriptionFactory->create(isset($matches[2]) ? $matches[2] : '', $context)
- );
- }
-
- /**
- * Gets the version section of the tag.
- *
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Returns a string representation for this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->version . ($this->description ? ' ' . $this->description->render() : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Source.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Source.php
deleted file mode 100644
index b0646b96..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Source.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}source tag in a Docblock.
- */
-final class Source extends BaseTag implements Factory\StaticMethod
-{
- /** @var string */
- protected $name = 'source';
-
- /** @var int The starting line, relative to the structural element's location. */
- private $startingLine = 1;
-
- /** @var int|null The number of lines, relative to the starting line. NULL means "to the end". */
- private $lineCount = null;
-
- public function __construct($startingLine, $lineCount = null, Description $description = null)
- {
- Assert::integerish($startingLine);
- Assert::nullOrIntegerish($lineCount);
-
- $this->startingLine = (int)$startingLine;
- $this->lineCount = $lineCount !== null ? (int)$lineCount : null;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create($body, DescriptionFactory $descriptionFactory = null, TypeContext $context = null)
- {
- Assert::stringNotEmpty($body);
- Assert::notNull($descriptionFactory);
-
- $startingLine = 1;
- $lineCount = null;
- $description = null;
-
- // Starting line / Number of lines / Description
- if (preg_match('/^([1-9]\d*)\s*(?:((?1))\s+)?(.*)$/sux', $body, $matches)) {
- $startingLine = (int)$matches[1];
- if (isset($matches[2]) && $matches[2] !== '') {
- $lineCount = (int)$matches[2];
- }
- $description = $matches[3];
- }
-
- return new static($startingLine, $lineCount, $descriptionFactory->create($description, $context));
- }
-
- /**
- * Gets the starting line.
- *
- * @return int The starting line, relative to the structural element's
- * location.
- */
- public function getStartingLine()
- {
- return $this->startingLine;
- }
-
- /**
- * Returns the number of lines.
- *
- * @return int|null The number of lines, relative to the starting line. NULL
- * means "to the end".
- */
- public function getLineCount()
- {
- return $this->lineCount;
- }
-
- public function __toString()
- {
- return $this->startingLine
- . ($this->lineCount !== null ? ' ' . $this->lineCount : '')
- . ($this->description ? ' ' . $this->description->render() : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Throws.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Throws.php
deleted file mode 100644
index 349e773b..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Throws.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Type;
-use phpDocumentor\Reflection\TypeResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}throws tag in a Docblock.
- */
-final class Throws extends BaseTag implements Factory\StaticMethod
-{
- protected $name = 'throws';
-
- /** @var Type */
- private $type;
-
- public function __construct(Type $type, Description $description = null)
- {
- $this->type = $type;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- TypeResolver $typeResolver = null,
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- ) {
- Assert::string($body);
- Assert::allNotNull([$typeResolver, $descriptionFactory]);
-
- $parts = preg_split('/\s+/Su', $body, 2);
-
- $type = $typeResolver->resolve(isset($parts[0]) ? $parts[0] : '', $context);
- $description = $descriptionFactory->create(isset($parts[1]) ? $parts[1] : '', $context);
-
- return new static($type, $description);
- }
-
- /**
- * Returns the type section of the variable.
- *
- * @return Type
- */
- public function getType()
- {
- return $this->type;
- }
-
- public function __toString()
- {
- return $this->type . ' ' . $this->description;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Uses.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Uses.php
deleted file mode 100644
index 00dc3e3b..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Uses.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Fqsen;
-use phpDocumentor\Reflection\FqsenResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}uses tag in a Docblock.
- */
-final class Uses extends BaseTag implements Factory\StaticMethod
-{
- protected $name = 'uses';
-
- /** @var Fqsen */
- protected $refers = null;
-
- /**
- * Initializes this tag.
- *
- * @param Fqsen $refers
- * @param Description $description
- */
- public function __construct(Fqsen $refers, Description $description = null)
- {
- $this->refers = $refers;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- FqsenResolver $resolver = null,
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- ) {
- Assert::string($body);
- Assert::allNotNull([$resolver, $descriptionFactory]);
-
- $parts = preg_split('/\s+/Su', $body, 2);
-
- return new static(
- $resolver->resolve($parts[0], $context),
- $descriptionFactory->create(isset($parts[1]) ? $parts[1] : '', $context)
- );
- }
-
- /**
- * Returns the structural element this tag refers to.
- *
- * @return Fqsen
- */
- public function getReference()
- {
- return $this->refers;
- }
-
- /**
- * Returns a string representation of this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->refers . ' ' . $this->description->render();
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Var_.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Var_.php
deleted file mode 100644
index f431a865..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Var_.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\Type;
-use phpDocumentor\Reflection\TypeResolver;
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}var tag in a Docblock.
- */
-class Var_ extends BaseTag implements Factory\StaticMethod
-{
- /** @var string */
- protected $name = 'var';
-
- /** @var Type */
- private $type;
-
- /** @var string */
- protected $variableName = '';
-
- /**
- * @param string $variableName
- * @param Type $type
- * @param Description $description
- */
- public function __construct($variableName, Type $type = null, Description $description = null)
- {
- Assert::string($variableName);
-
- $this->variableName = $variableName;
- $this->type = $type;
- $this->description = $description;
- }
-
- /**
- * {@inheritdoc}
- */
- public static function create(
- $body,
- TypeResolver $typeResolver = null,
- DescriptionFactory $descriptionFactory = null,
- TypeContext $context = null
- ) {
- Assert::stringNotEmpty($body);
- Assert::allNotNull([$typeResolver, $descriptionFactory]);
-
- $parts = preg_split('/(\s+)/Su', $body, 3, PREG_SPLIT_DELIM_CAPTURE);
- $type = null;
- $variableName = '';
-
- // if the first item that is encountered is not a variable; it is a type
- if (isset($parts[0]) && (strlen($parts[0]) > 0) && ($parts[0][0] !== '$')) {
- $type = $typeResolver->resolve(array_shift($parts), $context);
- array_shift($parts);
- }
-
- // if the next item starts with a $ or ...$ it must be the variable name
- if (isset($parts[0]) && (strlen($parts[0]) > 0) && ($parts[0][0] == '$')) {
- $variableName = array_shift($parts);
- array_shift($parts);
-
- if (substr($variableName, 0, 1) === '$') {
- $variableName = substr($variableName, 1);
- }
- }
-
- $description = $descriptionFactory->create(implode('', $parts), $context);
-
- return new static($variableName, $type, $description);
- }
-
- /**
- * Returns the variable's name.
- *
- * @return string
- */
- public function getVariableName()
- {
- return $this->variableName;
- }
-
- /**
- * Returns the variable's type or null if unknown.
- *
- * @return Type|null
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Returns a string representation for this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return ($this->type ? $this->type.' ' : '')
- .(empty($this->variableName) ? null : ('$'.$this->variableName))
- .($this->description ? ' '.$this->description : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Version.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Version.php
deleted file mode 100644
index 3e0e5bef..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Version.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-/**
- * phpDocumentor
- *
- * PHP Version 5.3
- *
- * @author Vasil Rangelov <boen.robot@gmail.com>
- * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com)
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\DocBlock\Tags;
-
-use phpDocumentor\Reflection\Types\Context as TypeContext;
-use phpDocumentor\Reflection\DocBlock\Description;
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use Webmozart\Assert\Assert;
-
-/**
- * Reflection class for a {@}version tag in a Docblock.
- */
-final class Version extends BaseTag implements Factory\StaticMethod
-{
- protected $name = 'version';
-
- /**
- * PCRE regular expression matching a version vector.
- * Assumes the "x" modifier.
- */
- const REGEX_VECTOR = '(?:
- # Normal release vectors.
- \d\S*
- |
- # VCS version vectors. Per PHPCS, they are expected to
- # follow the form of the VCS name, followed by ":", followed
- # by the version vector itself.
- # By convention, popular VCSes like CVS, SVN and GIT use "$"
- # around the actual version vector.
- [^\s\:]+\:\s*\$[^\$]+\$
- )';
-
- /** @var string The version vector. */
- private $version = '';
-
- public function __construct($version = null, Description $description = null)
- {
- Assert::nullOrStringNotEmpty($version);
-
- $this->version = $version;
- $this->description = $description;
- }
-
- /**
- * @return static
- */
- public static function create($body, DescriptionFactory $descriptionFactory = null, TypeContext $context = null)
- {
- Assert::nullOrString($body);
- if (empty($body)) {
- return new static();
- }
-
- $matches = [];
- if (!preg_match('/^(' . self::REGEX_VECTOR . ')\s*(.+)?$/sux', $body, $matches)) {
- return null;
- }
-
- return new static(
- $matches[1],
- $descriptionFactory->create(isset($matches[2]) ? $matches[2] : '', $context)
- );
- }
-
- /**
- * Gets the version section of the tag.
- *
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Returns a string representation for this tag.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->version . ($this->description ? ' ' . $this->description->render() : '');
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlockFactory.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlockFactory.php
deleted file mode 100644
index 9ec2455d..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlockFactory.php
+++ /dev/null
@@ -1,277 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection;
-
-use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
-use phpDocumentor\Reflection\DocBlock\StandardTagFactory;
-use phpDocumentor\Reflection\DocBlock\Tag;
-use phpDocumentor\Reflection\DocBlock\TagFactory;
-use Webmozart\Assert\Assert;
-
-final class DocBlockFactory implements DocBlockFactoryInterface
-{
- /** @var DocBlock\DescriptionFactory */
- private $descriptionFactory;
-
- /** @var DocBlock\TagFactory */
- private $tagFactory;
-
- /**
- * Initializes this factory with the required subcontractors.
- *
- * @param DescriptionFactory $descriptionFactory
- * @param TagFactory $tagFactory
- */
- public function __construct(DescriptionFactory $descriptionFactory, TagFactory $tagFactory)
- {
- $this->descriptionFactory = $descriptionFactory;
- $this->tagFactory = $tagFactory;
- }
-
- /**
- * Factory method for easy instantiation.
- *
- * @param string[] $additionalTags
- *
- * @return DocBlockFactory
- */
- public static function createInstance(array $additionalTags = [])
- {
- $fqsenResolver = new FqsenResolver();
- $tagFactory = new StandardTagFactory($fqsenResolver);
- $descriptionFactory = new DescriptionFactory($tagFactory);
-
- $tagFactory->addService($descriptionFactory);
- $tagFactory->addService(new TypeResolver($fqsenResolver));
-
- $docBlockFactory = new self($descriptionFactory, $tagFactory);
- foreach ($additionalTags as $tagName => $tagHandler) {
- $docBlockFactory->registerTagHandler($tagName, $tagHandler);
- }
-
- return $docBlockFactory;
- }
-
- /**
- * @param object|string $docblock A string containing the DocBlock to parse or an object supporting the
- * getDocComment method (such as a ReflectionClass object).
- * @param Types\Context $context
- * @param Location $location
- *
- * @return DocBlock
- */
- public function create($docblock, Types\Context $context = null, Location $location = null)
- {
- if (is_object($docblock)) {
- if (!method_exists($docblock, 'getDocComment')) {
- $exceptionMessage = 'Invalid object passed; the given object must support the getDocComment method';
- throw new \InvalidArgumentException($exceptionMessage);
- }
-
- $docblock = $docblock->getDocComment();
- }
-
- Assert::stringNotEmpty($docblock);
-
- if ($context === null) {
- $context = new Types\Context('');
- }
-
- $parts = $this->splitDocBlock($this->stripDocComment($docblock));
- list($templateMarker, $summary, $description, $tags) = $parts;
-
- return new DocBlock(
- $summary,
- $description ? $this->descriptionFactory->create($description, $context) : null,
- array_filter($this->parseTagBlock($tags, $context), function($tag) {
- return $tag instanceof Tag;
- }),
- $context,
- $location,
- $templateMarker === '#@+',
- $templateMarker === '#@-'
- );
- }
-
- public function registerTagHandler($tagName, $handler)
- {
- $this->tagFactory->registerTagHandler($tagName, $handler);
- }
-
- /**
- * Strips the asterisks from the DocBlock comment.
- *
- * @param string $comment String containing the comment text.
- *
- * @return string
- */
- private function stripDocComment($comment)
- {
- $comment = trim(preg_replace('#[ \t]*(?:\/\*\*|\*\/|\*)?[ \t]{0,1}(.*)?#u', '$1', $comment));
-
- // reg ex above is not able to remove */ from a single line docblock
- if (substr($comment, -2) == '*/') {
- $comment = trim(substr($comment, 0, -2));
- }
-
- return str_replace(array("\r\n", "\r"), "\n", $comment);
- }
-
- /**
- * Splits the DocBlock into a template marker, summary, description and block of tags.
- *
- * @param string $comment Comment to split into the sub-parts.
- *
- * @author Richard van Velzen (@_richardJ) Special thanks to Richard for the regex responsible for the split.
- * @author Mike van Riel <me@mikevanriel.com> for extending the regex with template marker support.
- *
- * @return string[] containing the template marker (if any), summary, description and a string containing the tags.
- */
- private function splitDocBlock($comment)
- {
- // Performance improvement cheat: if the first character is an @ then only tags are in this DocBlock. This
- // method does not split tags so we return this verbatim as the fourth result (tags). This saves us the
- // performance impact of running a regular expression
- if (strpos($comment, '@') === 0) {
- return array('', '', '', $comment);
- }
-
- // clears all extra horizontal whitespace from the line endings to prevent parsing issues
- $comment = preg_replace('/\h*$/Sum', '', $comment);
-
- /*
- * Splits the docblock into a template marker, summary, description and tags section.
- *
- * - The template marker is empty, #@+ or #@- if the DocBlock starts with either of those (a newline may
- * occur after it and will be stripped).
- * - The short description is started from the first character until a dot is encountered followed by a
- * newline OR two consecutive newlines (horizontal whitespace is taken into account to consider spacing
- * errors). This is optional.
- * - The long description, any character until a new line is encountered followed by an @ and word
- * characters (a tag). This is optional.
- * - Tags; the remaining characters
- *
- * Big thanks to RichardJ for contributing this Regular Expression
- */
- preg_match(
- '/
- \A
- # 1. Extract the template marker
- (?:(\#\@\+|\#\@\-)\n?)?
-
- # 2. Extract the summary
- (?:
- (?! @\pL ) # The summary may not start with an @
- (
- [^\n.]+
- (?:
- (?! \. \n | \n{2} ) # End summary upon a dot followed by newline or two newlines
- [\n.] (?! [ \t]* @\pL ) # End summary when an @ is found as first character on a new line
- [^\n.]+ # Include anything else
- )*
- \.?
- )?
- )
-
- # 3. Extract the description
- (?:
- \s* # Some form of whitespace _must_ precede a description because a summary must be there
- (?! @\pL ) # The description may not start with an @
- (
- [^\n]+
- (?: \n+
- (?! [ \t]* @\pL ) # End description when an @ is found as first character on a new line
- [^\n]+ # Include anything else
- )*
- )
- )?
-
- # 4. Extract the tags (anything that follows)
- (\s+ [\s\S]*)? # everything that follows
- /ux',
- $comment,
- $matches
- );
- array_shift($matches);
-
- while (count($matches) < 4) {
- $matches[] = '';
- }
-
- return $matches;
- }
-
- /**
- * Creates the tag objects.
- *
- * @param string $tags Tag block to parse.
- * @param Types\Context $context Context of the parsed Tag
- *
- * @return DocBlock\Tag[]
- */
- private function parseTagBlock($tags, Types\Context $context)
- {
- $tags = $this->filterTagBlock($tags);
- if (!$tags) {
- return [];
- }
-
- $result = $this->splitTagBlockIntoTagLines($tags);
- foreach ($result as $key => $tagLine) {
- $result[$key] = $this->tagFactory->create(trim($tagLine), $context);
- }
-
- return $result;
- }
-
- /**
- * @param string $tags
- *
- * @return string[]
- */
- private function splitTagBlockIntoTagLines($tags)
- {
- $result = array();
- foreach (explode("\n", $tags) as $tag_line) {
- if (isset($tag_line[0]) && ($tag_line[0] === '@')) {
- $result[] = $tag_line;
- } else {
- $result[count($result) - 1] .= "\n" . $tag_line;
- }
- }
-
- return $result;
- }
-
- /**
- * @param $tags
- * @return string
- */
- private function filterTagBlock($tags)
- {
- $tags = trim($tags);
- if (!$tags) {
- return null;
- }
-
- if ('@' !== $tags[0]) {
- // @codeCoverageIgnoreStart
- // Can't simulate this; this only happens if there is an error with the parsing of the DocBlock that
- // we didn't foresee.
- throw new \LogicException('A tag block started with text instead of an at-sign(@): ' . $tags);
- // @codeCoverageIgnoreEnd
- }
-
- return $tags;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlockFactoryInterface.php b/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlockFactoryInterface.php
deleted file mode 100644
index b3533429..00000000
--- a/www/wiki/vendor/phpdocumentor/reflection-docblock/src/DocBlockFactoryInterface.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-namespace phpDocumentor\Reflection;
-
-interface DocBlockFactoryInterface
-{
- /**
- * Factory method for easy instantiation.
- *
- * @param string[] $additionalTags
- *
- * @return DocBlockFactory
- */
- public static function createInstance(array $additionalTags = []);
-
- /**
- * @param string $docblock
- * @param Types\Context $context
- * @param Location $location
- *
- * @return DocBlock
- */
- public function create($docblock, Types\Context $context = null, Location $location = null);
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/LICENSE b/www/wiki/vendor/phpdocumentor/type-resolver/LICENSE
deleted file mode 100644
index 792e4040..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2010 Mike van Riel
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/README.md b/www/wiki/vendor/phpdocumentor/type-resolver/README.md
deleted file mode 100644
index fad34006..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/README.md
+++ /dev/null
@@ -1,182 +0,0 @@
-TypeResolver and FqsenResolver
-==============================
-
-The specification on types in DocBlocks (PSR-5) describes various keywords and special constructs
-but also how to statically resolve the partial name of a Class into a Fully Qualified Class Name (FQCN).
-
-PSR-5 also introduces an additional way to describe deeper elements than Classes, Interfaces and Traits
-called the Fully Qualified Structural Element Name (FQSEN). Using this it is possible to refer to methods,
-properties and class constants but also functions and global constants.
-
-This package provides two Resolvers that are capable of
-
-1. Returning a series of Value Object for given expression while resolving any partial class names, and
-2. Returning an FQSEN object after resolving any partial Structural Element Names into Fully Qualified Structural
- Element names.
-
-## Installing
-
-The easiest way to install this library is with [Composer](https://getcomposer.org) using the following command:
-
- $ composer require phpdocumentor/type-resolver
-
-## Examples
-
-Ready to dive in and don't want to read through all that text below? Just consult the [examples](examples) folder and
-check which type of action that your want to accomplish.
-
-## On Types and Element Names
-
-This component can be used in one of two ways
-
-1. To resolve a Type or
-2. To resolve a Fully Qualified Structural Element Name
-
-The big difference between these two is in the number of things it can resolve.
-
-The TypeResolver can resolve:
-
-- a php primitive or pseudo-primitive such as a string or void (`@var string` or `@return void`).
-- a composite such as an array of string (`@var string[]`).
-- a compound such as a string or integer (`@var string|integer`).
-- an object or interface such as the TypeResolver class (`@var TypeResolver`
- or `@var \phpDocumentor\Reflection\TypeResolver`)
-
- > please note that if you want to pass partial class names that additional steps are necessary, see the
- > chapter `Resolving partial classes and FQSENs` for more information.
-
-Where the FqsenResolver can resolve:
-
-- Constant expressions (i.e. `@see \MyNamespace\MY_CONSTANT`)
-- Function expressions (i.e. `@see \MyNamespace\myFunction()`)
-- Class expressions (i.e. `@see \MyNamespace\MyClass`)
-- Interface expressions (i.e. `@see \MyNamespace\MyInterface`)
-- Trait expressions (i.e. `@see \MyNamespace\MyTrait`)
-- Class constant expressions (i.e. `@see \MyNamespace\MyClass::MY_CONSTANT`)
-- Property expressions (i.e. `@see \MyNamespace\MyClass::$myProperty`)
-- Method expressions (i.e. `@see \MyNamespace\MyClass::myMethod()`)
-
-## Resolving a type
-
-In order to resolve a type you will have to instantiate the class `\phpDocumentor\Reflection\TypeResolver`
-and call its `resolve` method like this:
-
-```php
-$typeResolver = new \phpDocumentor\Reflection\TypeResolver();
-$type = $typeResolver->resolve('string|integer');
-```
-
-In this example you will receive a Value Object of class `\phpDocumentor\Reflection\Types\Compound` that has two
-elements, one of type `\phpDocumentor\Reflection\Types\String_` and one of type
-`\phpDocumentor\Reflection\Types\Integer`.
-
-The real power of this resolver is in its capability to expand partial class names into fully qualified class names; but
-in order to do that we need an additional `\phpDocumentor\Reflection\Types\Context` class that will inform the resolver
-in which namespace the given expression occurs and which namespace aliases (or imports) apply.
-
-## Resolving an FQSEN
-
-A Fully Qualified Structural Element Name is a reference to another element in your code bases and can be resolved using
-the `\phpDocumentor\Reflection\FqsenResolver` class' `resolve` method, like this:
-
-```php
-$fqsenResolver = new \phpDocumentor\Reflection\FqsenResolver();
-$fqsen = $fqsenResolver->resolve('\phpDocumentor\Reflection\FqsenResolver::resolve()');
-```
-
-In this example we resolve a Fully Qualified Structural Element Name (meaning that it includes the full namespace, class
-name and element name) and receive a Value Object of type `\phpDocumentor\Reflection\Fqsen`.
-
-The real power of this resolver is in its capability to expand partial element names into Fully Qualified Structural
-Element Names; but in order to do that we need an additional `\phpDocumentor\Reflection\Types\Context` class that will
-inform the resolver in which namespace the given expression occurs and which namespace aliases (or imports) apply.
-
-## Resolving partial Classes and Structural Element Names
-
-Perhaps the best feature of this library is that it knows how to resolve partial class names into fully qualified class
-names.
-
-For example, you have this file:
-
-```php
-namespace My\Example;
-
-use phpDocumentor\Reflection\Types;
-
-class Classy
-{
- /**
- * @var Types\Context
- * @see Classy::otherFunction()
- */
- public function __construct($context) {}
-
- public function otherFunction(){}
-}
-```
-
-Suppose that you would want to resolve (and expand) the type in the `@var` tag and the element name in the `@see` tag.
-For the resolvers to know how to expand partial names you have to provide a bit of _Context_ for them by instantiating
-a new class named `\phpDocumentor\Reflection\Types\Context` with the name of the namespace and the aliases that are in
-play.
-
-### Creating a Context
-
-You can do this by manually creating a Context like this:
-
-```php
-$context = new \phpDocumentor\Reflection\Types\Context(
- '\My\Example',
- [ 'Types' => '\phpDocumentor\Reflection\Types']
-);
-```
-
-Or by using the `\phpDocumentor\Reflection\Types\ContextFactory` to instantiate a new context based on a Reflector
-object or by providing the namespace that you'd like to extract and the source code of the file in which the given
-type expression occurs.
-
-```php
-$contextFactory = new \phpDocumentor\Reflection\Types\ContextFactory();
-$context = $contextFactory->createFromReflector(new ReflectionMethod('\My\Example\Classy', '__construct'));
-```
-
-or
-
-```php
-$contextFactory = new \phpDocumentor\Reflection\Types\ContextFactory();
-$context = $contextFactory->createForNamespace('\My\Example', file_get_contents('My/Example/Classy.php'));
-```
-
-### Using the Context
-
-After you have obtained a Context it is just a matter of passing it along with the `resolve` method of either Resolver
-class as second argument and the Resolvers will take this into account when resolving partial names.
-
-To obtain the resolved class name for the `@var` tag in the example above you can do:
-
-```php
-$typeResolver = new \phpDocumentor\Reflection\TypeResolver();
-$type = $typeResolver->resolve('Types\Context', $context);
-```
-
-When you do this you will receive an object of class `\phpDocumentor\Reflection\Types\Object_` for which you can call
-the `getFqsen` method to receive a Value Object that represents the complete FQSEN. So that would be
-`phpDocumentor\Reflection\Types\Context`.
-
-> Why is the FQSEN wrapped in another object `Object_`?
->
-> The resolve method of the TypeResolver only returns object with the interface `Type` and the FQSEN is a common
-> type that does not represent a Type. Also: in some cases a type can represent an "Untyped Object", meaning that it
-> is an object (signified by the `object` keyword) but does not refer to a specific element using an FQSEN.
-
-Another example is on how to resolve the FQSEN of a method as can be seen with the `@see` tag in the example above. To
-resolve that you can do the following:
-
-```php
-$fqsenResolver = new \phpDocumentor\Reflection\FqsenResolver();
-$type = $fqsenResolver->resolve('Classy::otherFunction()', $context);
-```
-
-Because Classy is a Class in the current namespace its FQSEN will have the `My\Example` namespace and by calling the
-`resolve` method of the FQSEN Resolver you will receive an `Fqsen` object that refers to
-`\My\Example\Classy::otherFunction()`.
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/composer.json b/www/wiki/vendor/phpdocumentor/type-resolver/composer.json
deleted file mode 100644
index 82ead156..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/composer.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "name": "phpdocumentor/type-resolver",
- "type": "library",
- "license": "MIT",
- "authors": [
- {"name": "Mike van Riel", "email": "me@mikevanriel.com"}
- ],
- "require": {
- "php": "^5.5 || ^7.0",
- "phpdocumentor/reflection-common": "^1.0"
- },
- "autoload": {
- "psr-4": {"phpDocumentor\\Reflection\\": ["src/"]}
- },
- "autoload-dev": {
- "psr-4": {"phpDocumentor\\Reflection\\": ["tests/unit"]}
- },
- "require-dev": {
- "phpunit/phpunit": "^5.2||^4.8.24",
- "mockery/mockery": "^0.9.4"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/FqsenResolver.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/FqsenResolver.php
deleted file mode 100644
index 9aa6ba30..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/FqsenResolver.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection;
-
-use phpDocumentor\Reflection\Types\Context;
-
-class FqsenResolver
-{
- /** @var string Definition of the NAMESPACE operator in PHP */
- const OPERATOR_NAMESPACE = '\\';
-
- public function resolve($fqsen, Context $context = null)
- {
- if ($context === null) {
- $context = new Context('');
- }
-
- if ($this->isFqsen($fqsen)) {
- return new Fqsen($fqsen);
- }
-
- return $this->resolvePartialStructuralElementName($fqsen, $context);
- }
-
- /**
- * Tests whether the given type is a Fully Qualified Structural Element Name.
- *
- * @param string $type
- *
- * @return bool
- */
- private function isFqsen($type)
- {
- return strpos($type, self::OPERATOR_NAMESPACE) === 0;
- }
-
- /**
- * Resolves a partial Structural Element Name (i.e. `Reflection\DocBlock`) to its FQSEN representation
- * (i.e. `\phpDocumentor\Reflection\DocBlock`) based on the Namespace and aliases mentioned in the Context.
- *
- * @param string $type
- * @param Context $context
- *
- * @return Fqsen
- * @throws \InvalidArgumentException when type is not a valid FQSEN.
- */
- private function resolvePartialStructuralElementName($type, Context $context)
- {
- $typeParts = explode(self::OPERATOR_NAMESPACE, $type, 2);
-
- $namespaceAliases = $context->getNamespaceAliases();
-
- // if the first segment is not an alias; prepend namespace name and return
- if (!isset($namespaceAliases[$typeParts[0]])) {
- $namespace = $context->getNamespace();
- if ('' !== $namespace) {
- $namespace .= self::OPERATOR_NAMESPACE;
- }
-
- return new Fqsen(self::OPERATOR_NAMESPACE . $namespace . $type);
- }
-
- $typeParts[0] = $namespaceAliases[$typeParts[0]];
-
- return new Fqsen(self::OPERATOR_NAMESPACE . implode(self::OPERATOR_NAMESPACE, $typeParts));
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Type.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Type.php
deleted file mode 100644
index 33ca5595..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Type.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection;
-
-interface Type
-{
- public function __toString();
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/TypeResolver.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/TypeResolver.php
deleted file mode 100644
index 08b2a5f8..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/TypeResolver.php
+++ /dev/null
@@ -1,298 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection;
-
-use phpDocumentor\Reflection\Types\Array_;
-use phpDocumentor\Reflection\Types\Compound;
-use phpDocumentor\Reflection\Types\Context;
-use phpDocumentor\Reflection\Types\Iterable_;
-use phpDocumentor\Reflection\Types\Nullable;
-use phpDocumentor\Reflection\Types\Object_;
-
-final class TypeResolver
-{
- /** @var string Definition of the ARRAY operator for types */
- const OPERATOR_ARRAY = '[]';
-
- /** @var string Definition of the NAMESPACE operator in PHP */
- const OPERATOR_NAMESPACE = '\\';
-
- /** @var string[] List of recognized keywords and unto which Value Object they map */
- private $keywords = array(
- 'string' => Types\String_::class,
- 'int' => Types\Integer::class,
- 'integer' => Types\Integer::class,
- 'bool' => Types\Boolean::class,
- 'boolean' => Types\Boolean::class,
- 'float' => Types\Float_::class,
- 'double' => Types\Float_::class,
- 'object' => Object_::class,
- 'mixed' => Types\Mixed_::class,
- 'array' => Array_::class,
- 'resource' => Types\Resource_::class,
- 'void' => Types\Void_::class,
- 'null' => Types\Null_::class,
- 'scalar' => Types\Scalar::class,
- 'callback' => Types\Callable_::class,
- 'callable' => Types\Callable_::class,
- 'false' => Types\Boolean::class,
- 'true' => Types\Boolean::class,
- 'self' => Types\Self_::class,
- '$this' => Types\This::class,
- 'static' => Types\Static_::class,
- 'parent' => Types\Parent_::class,
- 'iterable' => Iterable_::class,
- );
-
- /** @var FqsenResolver */
- private $fqsenResolver;
-
- /**
- * Initializes this TypeResolver with the means to create and resolve Fqsen objects.
- *
- * @param FqsenResolver $fqsenResolver
- */
- public function __construct(FqsenResolver $fqsenResolver = null)
- {
- $this->fqsenResolver = $fqsenResolver ?: new FqsenResolver();
- }
-
- /**
- * Analyzes the given type and returns the FQCN variant.
- *
- * When a type is provided this method checks whether it is not a keyword or
- * Fully Qualified Class Name. If so it will use the given namespace and
- * aliases to expand the type to a FQCN representation.
- *
- * This method only works as expected if the namespace and aliases are set;
- * no dynamic reflection is being performed here.
- *
- * @param string $type The relative or absolute type.
- * @param Context $context
- *
- * @uses Context::getNamespace() to determine with what to prefix the type name.
- * @uses Context::getNamespaceAliases() to check whether the first part of the relative type name should not be
- * replaced with another namespace.
- *
- * @return Type|null
- */
- public function resolve($type, Context $context = null)
- {
- if (!is_string($type)) {
- throw new \InvalidArgumentException(
- 'Attempted to resolve type but it appeared not to be a string, received: ' . var_export($type, true)
- );
- }
-
- $type = trim($type);
- if (!$type) {
- throw new \InvalidArgumentException('Attempted to resolve "' . $type . '" but it appears to be empty');
- }
-
- if ($context === null) {
- $context = new Context('');
- }
-
- switch (true) {
- case $this->isNullableType($type):
- return $this->resolveNullableType($type, $context);
- case $this->isKeyword($type):
- return $this->resolveKeyword($type);
- case ($this->isCompoundType($type)):
- return $this->resolveCompoundType($type, $context);
- case $this->isTypedArray($type):
- return $this->resolveTypedArray($type, $context);
- case $this->isFqsen($type):
- return $this->resolveTypedObject($type);
- case $this->isPartialStructuralElementName($type):
- return $this->resolveTypedObject($type, $context);
- // @codeCoverageIgnoreStart
- default:
- // I haven't got the foggiest how the logic would come here but added this as a defense.
- throw new \RuntimeException(
- 'Unable to resolve type "' . $type . '", there is no known method to resolve it'
- );
- }
- // @codeCoverageIgnoreEnd
- }
-
- /**
- * Adds a keyword to the list of Keywords and associates it with a specific Value Object.
- *
- * @param string $keyword
- * @param string $typeClassName
- *
- * @return void
- */
- public function addKeyword($keyword, $typeClassName)
- {
- if (!class_exists($typeClassName)) {
- throw new \InvalidArgumentException(
- 'The Value Object that needs to be created with a keyword "' . $keyword . '" must be an existing class'
- . ' but we could not find the class ' . $typeClassName
- );
- }
-
- if (!in_array(Type::class, class_implements($typeClassName))) {
- throw new \InvalidArgumentException(
- 'The class "' . $typeClassName . '" must implement the interface "phpDocumentor\Reflection\Type"'
- );
- }
-
- $this->keywords[$keyword] = $typeClassName;
- }
-
- /**
- * Detects whether the given type represents an array.
- *
- * @param string $type A relative or absolute type as defined in the phpDocumentor documentation.
- *
- * @return bool
- */
- private function isTypedArray($type)
- {
- return substr($type, -2) === self::OPERATOR_ARRAY;
- }
-
- /**
- * Detects whether the given type represents a PHPDoc keyword.
- *
- * @param string $type A relative or absolute type as defined in the phpDocumentor documentation.
- *
- * @return bool
- */
- private function isKeyword($type)
- {
- return in_array(strtolower($type), array_keys($this->keywords), true);
- }
-
- /**
- * Detects whether the given type represents a relative structural element name.
- *
- * @param string $type A relative or absolute type as defined in the phpDocumentor documentation.
- *
- * @return bool
- */
- private function isPartialStructuralElementName($type)
- {
- return ($type[0] !== self::OPERATOR_NAMESPACE) && !$this->isKeyword($type);
- }
-
- /**
- * Tests whether the given type is a Fully Qualified Structural Element Name.
- *
- * @param string $type
- *
- * @return bool
- */
- private function isFqsen($type)
- {
- return strpos($type, self::OPERATOR_NAMESPACE) === 0;
- }
-
- /**
- * Tests whether the given type is a compound type (i.e. `string|int`).
- *
- * @param string $type
- *
- * @return bool
- */
- private function isCompoundType($type)
- {
- return strpos($type, '|') !== false;
- }
-
- /**
- * Test whether the given type is a nullable type (i.e. `?string`)
- *
- * @param string $type
- *
- * @return bool
- */
- private function isNullableType($type)
- {
- return $type[0] === '?';
- }
-
- /**
- * Resolves the given typed array string (i.e. `string[]`) into an Array object with the right types set.
- *
- * @param string $type
- * @param Context $context
- *
- * @return Array_
- */
- private function resolveTypedArray($type, Context $context)
- {
- return new Array_($this->resolve(substr($type, 0, -2), $context));
- }
-
- /**
- * Resolves the given keyword (such as `string`) into a Type object representing that keyword.
- *
- * @param string $type
- *
- * @return Type
- */
- private function resolveKeyword($type)
- {
- $className = $this->keywords[strtolower($type)];
-
- return new $className();
- }
-
- /**
- * Resolves the given FQSEN string into an FQSEN object.
- *
- * @param string $type
- * @param Context|null $context
- *
- * @return Object_
- */
- private function resolveTypedObject($type, Context $context = null)
- {
- return new Object_($this->fqsenResolver->resolve($type, $context));
- }
-
- /**
- * Resolves a compound type (i.e. `string|int`) into the appropriate Type objects or FQSEN.
- *
- * @param string $type
- * @param Context $context
- *
- * @return Compound
- */
- private function resolveCompoundType($type, Context $context)
- {
- $types = [];
-
- foreach (explode('|', $type) as $part) {
- $types[] = $this->resolve($part, $context);
- }
-
- return new Compound($types);
- }
-
- /**
- * Resolve nullable types (i.e. `?string`) into a Nullable type wrapper
- *
- * @param string $type
- * @param Context $context
- *
- * @return Nullable
- */
- private function resolveNullableType($type, Context $context)
- {
- return new Nullable($this->resolve(ltrim($type, '?'), $context));
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Array_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Array_.php
deleted file mode 100644
index 49b7c6ea..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Array_.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Represents an array type as described in the PSR-5, the PHPDoc Standard.
- *
- * An array can be represented in two forms:
- *
- * 1. Untyped (`array`), where the key and value type is unknown and hence classified as 'Mixed_'.
- * 2. Types (`string[]`), where the value type is provided by preceding an opening and closing square bracket with a
- * type name.
- */
-final class Array_ implements Type
-{
- /** @var Type */
- private $valueType;
-
- /** @var Type */
- private $keyType;
-
- /**
- * Initializes this representation of an array with the given Type or Fqsen.
- *
- * @param Type $valueType
- * @param Type $keyType
- */
- public function __construct(Type $valueType = null, Type $keyType = null)
- {
- if ($keyType === null) {
- $keyType = new Compound([ new String_(), new Integer() ]);
- }
- if ($valueType === null) {
- $valueType = new Mixed_();
- }
-
- $this->valueType = $valueType;
- $this->keyType = $keyType;
- }
-
- /**
- * Returns the type for the keys of this array.
- *
- * @return Type
- */
- public function getKeyType()
- {
- return $this->keyType;
- }
-
- /**
- * Returns the value for the keys of this array.
- *
- * @return Type
- */
- public function getValueType()
- {
- return $this->valueType;
- }
-
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- if ($this->valueType instanceof Mixed_) {
- return 'array';
- }
-
- return $this->valueType . '[]';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Boolean.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Boolean.php
deleted file mode 100644
index f82b19e5..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Boolean.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing a Boolean type.
- */
-final class Boolean implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'bool';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Callable_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Callable_.php
deleted file mode 100644
index 68ebfbd0..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Callable_.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing a Callable type.
- */
-final class Callable_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'callable';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Compound.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Compound.php
deleted file mode 100644
index be986c31..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Compound.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use ArrayIterator;
-use IteratorAggregate;
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing a Compound Type.
- *
- * A Compound Type is not so much a special keyword or object reference but is a series of Types that are separated
- * using an OR operator (`|`). This combination of types signifies that whatever is associated with this compound type
- * may contain a value with any of the given types.
- */
-final class Compound implements Type, IteratorAggregate
-{
- /** @var Type[] */
- private $types;
-
- /**
- * Initializes a compound type (i.e. `string|int`) and tests if the provided types all implement the Type interface.
- *
- * @param Type[] $types
- * @throws \InvalidArgumentException when types are not all instance of Type
- */
- public function __construct(array $types)
- {
- foreach ($types as $type) {
- if (!$type instanceof Type) {
- throw new \InvalidArgumentException('A compound type can only have other types as elements');
- }
- }
-
- $this->types = $types;
- }
-
- /**
- * Returns the type at the given index.
- *
- * @param integer $index
- *
- * @return Type|null
- */
- public function get($index)
- {
- if (!$this->has($index)) {
- return null;
- }
-
- return $this->types[$index];
- }
-
- /**
- * Tests if this compound type has a type with the given index.
- *
- * @param integer $index
- *
- * @return bool
- */
- public function has($index)
- {
- return isset($this->types[$index]);
- }
-
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return implode('|', $this->types);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getIterator()
- {
- return new ArrayIterator($this->types);
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Context.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Context.php
deleted file mode 100644
index 4e9ce5a0..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Context.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-/**
- * Provides information about the Context in which the DocBlock occurs that receives this context.
- *
- * A DocBlock does not know of its own accord in which namespace it occurs and which namespace aliases are applicable
- * for the block of code in which it is in. This information is however necessary to resolve Class names in tags since
- * you can provide a short form or make use of namespace aliases.
- *
- * The phpDocumentor Reflection component knows how to create this class but if you use the DocBlock parser from your
- * own application it is possible to generate a Context class using the ContextFactory; this will analyze the file in
- * which an associated class resides for its namespace and imports.
- *
- * @see ContextFactory::createFromClassReflector()
- * @see ContextFactory::createForNamespace()
- */
-final class Context
-{
- /** @var string The current namespace. */
- private $namespace;
-
- /** @var array List of namespace aliases => Fully Qualified Namespace. */
- private $namespaceAliases;
-
- /**
- * Initializes the new context and normalizes all passed namespaces to be in Qualified Namespace Name (QNN)
- * format (without a preceding `\`).
- *
- * @param string $namespace The namespace where this DocBlock resides in.
- * @param array $namespaceAliases List of namespace aliases => Fully Qualified Namespace.
- */
- public function __construct($namespace, array $namespaceAliases = [])
- {
- $this->namespace = ('global' !== $namespace && 'default' !== $namespace)
- ? trim((string)$namespace, '\\')
- : '';
-
- foreach ($namespaceAliases as $alias => $fqnn) {
- if ($fqnn[0] === '\\') {
- $fqnn = substr($fqnn, 1);
- }
- if ($fqnn[strlen($fqnn) - 1] === '\\') {
- $fqnn = substr($fqnn, 0, -1);
- }
-
- $namespaceAliases[$alias] = $fqnn;
- }
-
- $this->namespaceAliases = $namespaceAliases;
- }
-
- /**
- * Returns the Qualified Namespace Name (thus without `\` in front) where the associated element is in.
- *
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Returns a list of Qualified Namespace Names (thus without `\` in front) that are imported, the keys represent
- * the alias for the imported Namespace.
- *
- * @return string[]
- */
- public function getNamespaceAliases()
- {
- return $this->namespaceAliases;
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/ContextFactory.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/ContextFactory.php
deleted file mode 100644
index 30936a30..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/ContextFactory.php
+++ /dev/null
@@ -1,210 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-/**
- * Convenience class to create a Context for DocBlocks when not using the Reflection Component of phpDocumentor.
- *
- * For a DocBlock to be able to resolve types that use partial namespace names or rely on namespace imports we need to
- * provide a bit of context so that the DocBlock can read that and based on it decide how to resolve the types to
- * Fully Qualified names.
- *
- * @see Context for more information.
- */
-final class ContextFactory
-{
- /** The literal used at the end of a use statement. */
- const T_LITERAL_END_OF_USE = ';';
-
- /** The literal used between sets of use statements */
- const T_LITERAL_USE_SEPARATOR = ',';
-
- /**
- * Build a Context given a Class Reflection.
- *
- * @param \Reflector $reflector
- *
- * @see Context for more information on Contexts.
- *
- * @return Context
- */
- public function createFromReflector(\Reflector $reflector)
- {
- if (method_exists($reflector, 'getDeclaringClass')) {
- $reflector = $reflector->getDeclaringClass();
- }
-
- $fileName = $reflector->getFileName();
- $namespace = $reflector->getNamespaceName();
-
- if (file_exists($fileName)) {
- return $this->createForNamespace($namespace, file_get_contents($fileName));
- }
-
- return new Context($namespace, []);
- }
-
- /**
- * Build a Context for a namespace in the provided file contents.
- *
- * @param string $namespace It does not matter if a `\` precedes the namespace name, this method first normalizes.
- * @param string $fileContents the file's contents to retrieve the aliases from with the given namespace.
- *
- * @see Context for more information on Contexts.
- *
- * @return Context
- */
- public function createForNamespace($namespace, $fileContents)
- {
- $namespace = trim($namespace, '\\');
- $useStatements = [];
- $currentNamespace = '';
- $tokens = new \ArrayIterator(token_get_all($fileContents));
-
- while ($tokens->valid()) {
- switch ($tokens->current()[0]) {
- case T_NAMESPACE:
- $currentNamespace = $this->parseNamespace($tokens);
- break;
- case T_CLASS:
- // Fast-forward the iterator through the class so that any
- // T_USE tokens found within are skipped - these are not
- // valid namespace use statements so should be ignored.
- $braceLevel = 0;
- $firstBraceFound = false;
- while ($tokens->valid() && ($braceLevel > 0 || !$firstBraceFound)) {
- if ($tokens->current() === '{'
- || $tokens->current()[0] === T_CURLY_OPEN
- || $tokens->current()[0] === T_DOLLAR_OPEN_CURLY_BRACES) {
- if (!$firstBraceFound) {
- $firstBraceFound = true;
- }
- $braceLevel++;
- }
-
- if ($tokens->current() === '}') {
- $braceLevel--;
- }
- $tokens->next();
- }
- break;
- case T_USE:
- if ($currentNamespace === $namespace) {
- $useStatements = array_merge($useStatements, $this->parseUseStatement($tokens));
- }
- break;
- }
- $tokens->next();
- }
-
- return new Context($namespace, $useStatements);
- }
-
- /**
- * Deduce the name from tokens when we are at the T_NAMESPACE token.
- *
- * @param \ArrayIterator $tokens
- *
- * @return string
- */
- private function parseNamespace(\ArrayIterator $tokens)
- {
- // skip to the first string or namespace separator
- $this->skipToNextStringOrNamespaceSeparator($tokens);
-
- $name = '';
- while ($tokens->valid() && ($tokens->current()[0] === T_STRING || $tokens->current()[0] === T_NS_SEPARATOR)
- ) {
- $name .= $tokens->current()[1];
- $tokens->next();
- }
-
- return $name;
- }
-
- /**
- * Deduce the names of all imports when we are at the T_USE token.
- *
- * @param \ArrayIterator $tokens
- *
- * @return string[]
- */
- private function parseUseStatement(\ArrayIterator $tokens)
- {
- $uses = [];
- $continue = true;
-
- while ($continue) {
- $this->skipToNextStringOrNamespaceSeparator($tokens);
-
- list($alias, $fqnn) = $this->extractUseStatement($tokens);
- $uses[$alias] = $fqnn;
- if ($tokens->current()[0] === self::T_LITERAL_END_OF_USE) {
- $continue = false;
- }
- }
-
- return $uses;
- }
-
- /**
- * Fast-forwards the iterator as longs as we don't encounter a T_STRING or T_NS_SEPARATOR token.
- *
- * @param \ArrayIterator $tokens
- *
- * @return void
- */
- private function skipToNextStringOrNamespaceSeparator(\ArrayIterator $tokens)
- {
- while ($tokens->valid() && ($tokens->current()[0] !== T_STRING) && ($tokens->current()[0] !== T_NS_SEPARATOR)) {
- $tokens->next();
- }
- }
-
- /**
- * Deduce the namespace name and alias of an import when we are at the T_USE token or have not reached the end of
- * a USE statement yet.
- *
- * @param \ArrayIterator $tokens
- *
- * @return string
- */
- private function extractUseStatement(\ArrayIterator $tokens)
- {
- $result = [''];
- while ($tokens->valid()
- && ($tokens->current()[0] !== self::T_LITERAL_USE_SEPARATOR)
- && ($tokens->current()[0] !== self::T_LITERAL_END_OF_USE)
- ) {
- if ($tokens->current()[0] === T_AS) {
- $result[] = '';
- }
- if ($tokens->current()[0] === T_STRING || $tokens->current()[0] === T_NS_SEPARATOR) {
- $result[count($result) - 1] .= $tokens->current()[1];
- }
- $tokens->next();
- }
-
- if (count($result) == 1) {
- $backslashPos = strrpos($result[0], '\\');
-
- if (false !== $backslashPos) {
- $result[] = substr($result[0], $backslashPos + 1);
- } else {
- $result[] = $result[0];
- }
- }
-
- return array_reverse($result);
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Float_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Float_.php
deleted file mode 100644
index e58d8966..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Float_.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing a Float.
- */
-final class Float_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'float';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Integer.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Integer.php
deleted file mode 100644
index be4555ef..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Integer.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-final class Integer implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'int';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Iterable_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Iterable_.php
deleted file mode 100644
index 0cbf48f7..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Iterable_.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2017 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing iterable type
- */
-final class Iterable_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'iterable';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Mixed_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Mixed_.php
deleted file mode 100644
index c1c165f4..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Mixed_.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing an unknown, or mixed, type.
- */
-final class Mixed_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'mixed';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Null_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Null_.php
deleted file mode 100644
index 203b4227..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Null_.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing a null value or type.
- */
-final class Null_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'null';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Nullable.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Nullable.php
deleted file mode 100644
index 3c6d1b13..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Nullable.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2017 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing a nullable type. The real type is wrapped.
- */
-final class Nullable implements Type
-{
- /**
- * @var Type
- */
- private $realType;
-
- /**
- * Initialises this nullable type using the real type embedded
- *
- * @param Type $realType
- */
- public function __construct(Type $realType)
- {
- $this->realType = $realType;
- }
-
- /**
- * Provide access to the actual type directly, if needed.
- *
- * @return Type
- */
- public function getActualType()
- {
- return $this->realType;
- }
-
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return '?' . $this->realType->__toString();
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Object_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Object_.php
deleted file mode 100644
index 389f7c70..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Object_.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Fqsen;
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing an object.
- *
- * An object can be either typed or untyped. When an object is typed it means that it has an identifier, the FQSEN,
- * pointing to an element in PHP. Object types that are untyped do not refer to a specific class but represent objects
- * in general.
- */
-final class Object_ implements Type
-{
- /** @var Fqsen|null */
- private $fqsen;
-
- /**
- * Initializes this object with an optional FQSEN, if not provided this object is considered 'untyped'.
- *
- * @param Fqsen $fqsen
- * @throws \InvalidArgumentException when provided $fqsen is not a valid type.
- */
- public function __construct(Fqsen $fqsen = null)
- {
- if (strpos((string)$fqsen, '::') !== false || strpos((string)$fqsen, '()') !== false) {
- throw new \InvalidArgumentException(
- 'Object types can only refer to a class, interface or trait but a method, function, constant or '
- . 'property was received: ' . (string)$fqsen
- );
- }
-
- $this->fqsen = $fqsen;
- }
-
- /**
- * Returns the FQSEN associated with this object.
- *
- * @return Fqsen|null
- */
- public function getFqsen()
- {
- return $this->fqsen;
- }
-
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- if ($this->fqsen) {
- return (string)$this->fqsen;
- }
-
- return 'object';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Parent_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Parent_.php
deleted file mode 100644
index aabdbfb3..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Parent_.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing the 'parent' type.
- *
- * Parent, as a Type, represents the parent class of class in which the associated element was defined.
- */
-final class Parent_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'parent';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Resource_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Resource_.php
deleted file mode 100644
index a1b613dc..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Resource_.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing the 'resource' Type.
- */
-final class Resource_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'resource';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Scalar.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Scalar.php
deleted file mode 100644
index 1e2a6602..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Scalar.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing the 'scalar' pseudo-type, which is either a string, integer, float or boolean.
- */
-final class Scalar implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'scalar';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Self_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Self_.php
deleted file mode 100644
index 1ba3fc5a..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Self_.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing the 'self' type.
- *
- * Self, as a Type, represents the class in which the associated element was defined.
- */
-final class Self_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'self';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Static_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Static_.php
deleted file mode 100644
index 9eb67299..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Static_.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing the 'static' type.
- *
- * Self, as a Type, represents the class in which the associated element was called. This differs from self as self does
- * not take inheritance into account but static means that the return type is always that of the class of the called
- * element.
- *
- * See the documentation on late static binding in the PHP Documentation for more information on the difference between
- * static and self.
- */
-final class Static_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'static';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/String_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/String_.php
deleted file mode 100644
index 8db59685..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/String_.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing the type 'string'.
- */
-final class String_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'string';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/This.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/This.php
deleted file mode 100644
index c098a939..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/This.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing the '$this' pseudo-type.
- *
- * $this, as a Type, represents the instance of the class associated with the element as it was called. $this is
- * commonly used when documenting fluent interfaces since it represents that the same object is returned.
- */
-final class This implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return '$this';
- }
-}
diff --git a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Void_.php b/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Void_.php
deleted file mode 100644
index 3d1be272..00000000
--- a/www/wiki/vendor/phpdocumentor/type-resolver/src/Types/Void_.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/**
- * This file is part of phpDocumentor.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link http://phpdoc.org
- */
-
-namespace phpDocumentor\Reflection\Types;
-
-use phpDocumentor\Reflection\Type;
-
-/**
- * Value Object representing the pseudo-type 'void'.
- *
- * Void is generally only used when working with return types as it signifies that the method intentionally does not
- * return any value.
- */
-final class Void_ implements Type
-{
- /**
- * Returns a rendered output of the Type as it would be used in a DocBlock.
- *
- * @return string
- */
- public function __toString()
- {
- return 'void';
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/CHANGES.md b/www/wiki/vendor/phpspec/prophecy/CHANGES.md
deleted file mode 100644
index fddfc412..00000000
--- a/www/wiki/vendor/phpspec/prophecy/CHANGES.md
+++ /dev/null
@@ -1,213 +0,0 @@
-1.8.0 / 2018/08/05
-==================
-
-* Support for void return types without explicit will (@crellbar)
-* Clearer error message for unexpected method calls (@meridius)
-* Clearer error message for aggregate exceptions (@meridius)
-* More verbose `shouldBeCalledOnce` expectation (@olvlvl)
-* Ability to double Throwable, or methods that extend it (@ciaranmcnulty)
-* [fixed] Doubling methods where class has additional arguments to interface (@webimpress)
-* [fixed] Doubling methods where arguments are nullable but default is not null (@webimpress)
-* [fixed] Doubling magic methods on parent class (@dsnopek)
-* [fixed] Check method predictions only once (@dontub)
-* [fixed] Argument::containingString throwing error when called with non-string (@dcabrejas)
-
-1.7.6 / 2018/04/18
-==================
-
-* Allow sebastian/comparator ^3.0 (@sebastianbergmann)
-
-1.7.5 / 2018/02/11
-==================
-
-* Support for object return type hints (thanks @greg0ire)
-
-1.7.4 / 2018/02/11
-==================
-
-* Fix issues with PHP 7.2 (thanks @greg0ire)
-* Support object type hints in PHP 7.2 (thanks @@jansvoboda11)
-
-1.7.3 / 2017/11/24
-==================
-
-* Fix SplInfo ClassPatch to work with Symfony 4 (Thanks @gnugat)
-
-1.7.2 / 2017-10-04
-==================
-
-* Reverted "check method predictions only once" due to it breaking Spies
-
-1.7.1 / 2017-10-03
-==================
-
-* Allow PHP5 keywords methods generation on PHP7 (thanks @bycosta)
-* Allow reflection-docblock v4 (thanks @GrahamCampbell)
-* Check method predictions only once (thanks @dontub)
-* Escape file path sent to \SplFileObjectConstructor when running on Windows (thanks @danmartin-epiphany)
-
-1.7.0 / 2017-03-02
-==================
-
-* Add full PHP 7.1 Support (thanks @prolic)
-* Allow `sebastian/comparator ^2.0` (thanks @sebastianbergmann)
-* Allow `sebastian/recursion-context ^3.0` (thanks @sebastianbergmann)
-* Allow `\Error` instances in `ThrowPromise` (thanks @jameshalsall)
-* Support `phpspec/phpspect ^3.2` (thanks @Sam-Burns)
-* Fix failing builds (thanks @Sam-Burns)
-
-1.6.2 / 2016-11-21
-==================
-
-* Added support for detecting @method on interfaces that the class itself implements, or when the stubbed class is an interface itself (thanks @Seldaek)
-* Added support for sebastian/recursion-context 2 (thanks @sebastianbergmann)
-* Added testing on PHP 7.1 on Travis (thanks @danizord)
-* Fixed the usage of the phpunit comparator (thanks @Anyqax)
-
-1.6.1 / 2016-06-07
-==================
-
- * Ignored empty method names in invalid `@method` phpdoc
- * Fixed the mocking of SplFileObject
- * Added compatibility with phpdocumentor/reflection-docblock 3
-
-1.6.0 / 2016-02-15
-==================
-
- * Add Variadics support (thanks @pamil)
- * Add ProphecyComparator for comparing objects that need revealing (thanks @jon-acker)
- * Add ApproximateValueToken (thanks @dantleech)
- * Add support for 'self' and 'parent' return type (thanks @bendavies)
- * Add __invoke to allowed reflectable methods list (thanks @ftrrtf)
- * Updated ExportUtil to reflect the latest changes by Sebastian (thanks @jakari)
- * Specify the required php version for composer (thanks @jakzal)
- * Exclude 'args' in the generated backtrace (thanks @oradwell)
- * Fix code generation for scalar parameters (thanks @trowski)
- * Fix missing sprintf in InvalidArgumentException __construct call (thanks @emmanuelballery)
- * Fix phpdoc for magic methods (thanks @Tobion)
- * Fix PhpDoc for interfaces usage (thanks @ImmRanneft)
- * Prevent final methods from being manually extended (thanks @kamioftea)
- * Enhance exception for invalid argument to ThrowPromise (thanks @Tobion)
-
-1.5.0 / 2015-04-27
-==================
-
- * Add support for PHP7 scalar type hints (thanks @trowski)
- * Add support for PHP7 return types (thanks @trowski)
- * Update internal test suite to support PHP7
-
-1.4.1 / 2015-04-27
-==================
-
- * Fixed bug in closure-based argument tokens (#181)
-
-1.4.0 / 2015-03-27
-==================
-
- * Fixed errors in return type phpdocs (thanks @sobit)
- * Fixed stringifying of hash containing one value (thanks @avant1)
- * Improved clarity of method call expectation exception (thanks @dantleech)
- * Add ability to specify which argument is returned in willReturnArgument (thanks @coderbyheart)
- * Add more information to MethodNotFound exceptions (thanks @ciaranmcnulty)
- * Support for mocking classes with methods that return references (thanks @edsonmedina)
- * Improved object comparison (thanks @whatthejeff)
- * Adopted '^' in composer dependencies (thanks @GrahamCampbell)
- * Fixed non-typehinted arguments being treated as optional (thanks @whatthejeff)
- * Magic methods are now filtered for keywords (thanks @seagoj)
- * More readable errors for failure when expecting single calls (thanks @dantleech)
-
-1.3.1 / 2014-11-17
-==================
-
- * Fix the edge case when failed predictions weren't recorded for `getCheckedPredictions()`
-
-1.3.0 / 2014-11-14
-==================
-
- * Add a way to get checked predictions with `MethodProphecy::getCheckedPredictions()`
- * Fix HHVM compatibility
- * Remove dead code (thanks @stof)
- * Add support for DirectoryIterators (thanks @shanethehat)
-
-1.2.0 / 2014-07-18
-==================
-
- * Added support for doubling magic methods documented in the class phpdoc (thanks @armetiz)
- * Fixed a segfault appearing in some cases (thanks @dmoreaulf)
- * Fixed the doubling of methods with typehints on non-existent classes (thanks @gquemener)
- * Added support for internal classes using keywords as method names (thanks @milan)
- * Added IdenticalValueToken and Argument::is (thanks @florianv)
- * Removed the usage of scalar typehints in HHVM as HHVM 3 does not support them anymore in PHP code (thanks @whatthejeff)
-
-1.1.2 / 2014-01-24
-==================
-
- * Spy automatically promotes spied method call to an expected one
-
-1.1.1 / 2014-01-15
-==================
-
- * Added support for HHVM
-
-1.1.0 / 2014-01-01
-==================
-
- * Changed the generated class names to use a static counter instead of a random number
- * Added a clss patch for ReflectionClass::newInstance to make its argument optional consistently (thanks @docteurklein)
- * Fixed mirroring of classes with typehints on non-existent classes (thanks @docteurklein)
- * Fixed the support of array callables in CallbackPromise and CallbackPrediction (thanks @ciaranmcnulty)
- * Added support for properties in ObjectStateToken (thanks @adrienbrault)
- * Added support for mocking classes with a final constructor (thanks @ciaranmcnulty)
- * Added ArrayEveryEntryToken and Argument::withEveryEntry() (thanks @adrienbrault)
- * Added an exception when trying to prophesize on a final method instead of ignoring silently (thanks @docteurklein)
- * Added StringContainToken and Argument::containingString() (thanks @peterjmit)
- * Added ``shouldNotHaveBeenCalled`` on the MethodProphecy (thanks @ciaranmcnulty)
- * Fixed the comparison of objects in ExactValuetoken (thanks @sstok)
- * Deprecated ``shouldNotBeenCalled`` in favor of ``shouldNotHaveBeenCalled``
-
-1.0.4 / 2013-08-10
-==================
-
- * Better randomness for generated class names (thanks @sstok)
- * Add support for interfaces into TypeToken and Argument::type() (thanks @sstok)
- * Add support for old-style (method name === class name) constructors (thanks @l310 for report)
-
-1.0.3 / 2013-07-04
-==================
-
- * Support callable typehints (thanks @stof)
- * Do not attempt to autoload arrays when generating code (thanks @MarcoDeBortoli)
- * New ArrayEntryToken (thanks @kagux)
-
-1.0.2 / 2013-05-19
-==================
-
- * Logical `AND` token added (thanks @kagux)
- * Logical `NOT` token added (thanks @kagux)
- * Add support for setting custom constructor arguments
- * Properly stringify hashes
- * Record calls that throw exceptions
- * Migrate spec suite to PhpSpec 2.0
-
-1.0.1 / 2013-04-30
-==================
-
- * Fix broken UnexpectedCallException message
- * Trim AggregateException message
-
-1.0.0 / 2013-04-29
-==================
-
- * Improve exception messages
-
-1.0.0-BETA2 / 2013-04-03
-========================
-
- * Add more debug information to CallTimes and Call prediction exception messages
- * Fix MethodNotFoundException wrong namespace (thanks @gunnarlium)
- * Fix some typos in the exception messages (thanks @pborreli)
-
-1.0.0-BETA1 / 2013-03-25
-========================
-
- * Initial release
diff --git a/www/wiki/vendor/phpspec/prophecy/LICENSE b/www/wiki/vendor/phpspec/prophecy/LICENSE
deleted file mode 100644
index c8b36471..00000000
--- a/www/wiki/vendor/phpspec/prophecy/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-Copyright (c) 2013 Konstantin Kudryashov <ever.zet@gmail.com>
- Marcello Duarte <marcello.duarte@gmail.com>
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/www/wiki/vendor/phpspec/prophecy/README.md b/www/wiki/vendor/phpspec/prophecy/README.md
deleted file mode 100644
index b190d43e..00000000
--- a/www/wiki/vendor/phpspec/prophecy/README.md
+++ /dev/null
@@ -1,391 +0,0 @@
-# Prophecy
-
-[![Stable release](https://poser.pugx.org/phpspec/prophecy/version.svg)](https://packagist.org/packages/phpspec/prophecy)
-[![Build Status](https://travis-ci.org/phpspec/prophecy.svg?branch=master)](https://travis-ci.org/phpspec/prophecy)
-
-Prophecy is a highly opinionated yet very powerful and flexible PHP object mocking
-framework. Though initially it was created to fulfil phpspec2 needs, it is flexible
-enough to be used inside any testing framework out there with minimal effort.
-
-## A simple example
-
-```php
-<?php
-
-class UserTest extends PHPUnit_Framework_TestCase
-{
- private $prophet;
-
- public function testPasswordHashing()
- {
- $hasher = $this->prophet->prophesize('App\Security\Hasher');
- $user = new App\Entity\User($hasher->reveal());
-
- $hasher->generateHash($user, 'qwerty')->willReturn('hashed_pass');
-
- $user->setPassword('qwerty');
-
- $this->assertEquals('hashed_pass', $user->getPassword());
- }
-
- protected function setup()
- {
- $this->prophet = new \Prophecy\Prophet;
- }
-
- protected function tearDown()
- {
- $this->prophet->checkPredictions();
- }
-}
-```
-
-## Installation
-
-### Prerequisites
-
-Prophecy requires PHP 5.3.3 or greater.
-
-### Setup through composer
-
-First, add Prophecy to the list of dependencies inside your `composer.json`:
-
-```json
-{
- "require-dev": {
- "phpspec/prophecy": "~1.0"
- }
-}
-```
-
-Then simply install it with composer:
-
-```bash
-$> composer install --prefer-dist
-```
-
-You can read more about Composer on its [official webpage](http://getcomposer.org).
-
-## How to use it
-
-First of all, in Prophecy every word has a logical meaning, even the name of the library
-itself (Prophecy). When you start feeling that, you'll become very fluid with this
-tool.
-
-For example, Prophecy has been named that way because it concentrates on describing the future
-behavior of objects with very limited knowledge about them. But as with any other prophecy,
-those object prophecies can't create themselves - there should be a Prophet:
-
-```php
-$prophet = new Prophecy\Prophet;
-```
-
-The Prophet creates prophecies by *prophesizing* them:
-
-```php
-$prophecy = $prophet->prophesize();
-```
-
-The result of the `prophesize()` method call is a new object of class `ObjectProphecy`. Yes,
-that's your specific object prophecy, which describes how your object would behave
-in the near future. But first, you need to specify which object you're talking about,
-right?
-
-```php
-$prophecy->willExtend('stdClass');
-$prophecy->willImplement('SessionHandlerInterface');
-```
-
-There are 2 interesting calls - `willExtend` and `willImplement`. The first one tells
-object prophecy that our object should extend specific class, the second one says that
-it should implement some interface. Obviously, objects in PHP can implement multiple
-interfaces, but extend only one parent class.
-
-### Dummies
-
-Ok, now we have our object prophecy. What can we do with it? First of all, we can get
-our object *dummy* by revealing its prophecy:
-
-```php
-$dummy = $prophecy->reveal();
-```
-
-The `$dummy` variable now holds a special dummy object. Dummy objects are objects that extend
-and/or implement preset classes/interfaces by overriding all their public methods. The key
-point about dummies is that they do not hold any logic - they just do nothing. Any method
-of the dummy will always return `null` and the dummy will never throw any exceptions.
-Dummy is your friend if you don't care about the actual behavior of this double and just need
-a token object to satisfy a method typehint.
-
-You need to understand one thing - a dummy is not a prophecy. Your object prophecy is still
-assigned to `$prophecy` variable and in order to manipulate with your expectations, you
-should work with it. `$dummy` is a dummy - a simple php object that tries to fulfil your
-prophecy.
-
-### Stubs
-
-Ok, now we know how to create basic prophecies and reveal dummies from them. That's
-awesome if we don't care about our _doubles_ (objects that reflect originals)
-interactions. If we do, we need to use *stubs* or *mocks*.
-
-A stub is an object double, which doesn't have any expectations about the object behavior,
-but when put in specific environment, behaves in specific way. Ok, I know, it's cryptic,
-but bear with me for a minute. Simply put, a stub is a dummy, which depending on the called
-method signature does different things (has logic). To create stubs in Prophecy:
-
-```php
-$prophecy->read('123')->willReturn('value');
-```
-
-Oh wow. We've just made an arbitrary call on the object prophecy? Yes, we did. And this
-call returned us a new object instance of class `MethodProphecy`. Yep, that's a specific
-method with arguments prophecy. Method prophecies give you the ability to create method
-promises or predictions. We'll talk about method predictions later in the _Mocks_ section.
-
-#### Promises
-
-Promises are logical blocks, that represent your fictional methods in prophecy terms
-and they are handled by the `MethodProphecy::will(PromiseInterface $promise)` method.
-As a matter of fact, the call that we made earlier (`willReturn('value')`) is a simple
-shortcut to:
-
-```php
-$prophecy->read('123')->will(new Prophecy\Promise\ReturnPromise(array('value')));
-```
-
-This promise will cause any call to our double's `read()` method with exactly one
-argument - `'123'` to always return `'value'`. But that's only for this
-promise, there's plenty others you can use:
-
-- `ReturnPromise` or `->willReturn(1)` - returns a value from a method call
-- `ReturnArgumentPromise` or `->willReturnArgument($index)` - returns the nth method argument from call
-- `ThrowPromise` or `->willThrow($exception)` - causes the method to throw specific exception
-- `CallbackPromise` or `->will($callback)` - gives you a quick way to define your own custom logic
-
-Keep in mind, that you can always add even more promises by implementing
-`Prophecy\Promise\PromiseInterface`.
-
-#### Method prophecies idempotency
-
-Prophecy enforces same method prophecies and, as a consequence, same promises and
-predictions for the same method calls with the same arguments. This means:
-
-```php
-$methodProphecy1 = $prophecy->read('123');
-$methodProphecy2 = $prophecy->read('123');
-$methodProphecy3 = $prophecy->read('321');
-
-$methodProphecy1 === $methodProphecy2;
-$methodProphecy1 !== $methodProphecy3;
-```
-
-That's interesting, right? Now you might ask me how would you define more complex
-behaviors where some method call changes behavior of others. In PHPUnit or Mockery
-you do that by predicting how many times your method will be called. In Prophecy,
-you'll use promises for that:
-
-```php
-$user->getName()->willReturn(null);
-
-// For PHP 5.4
-$user->setName('everzet')->will(function () {
- $this->getName()->willReturn('everzet');
-});
-
-// For PHP 5.3
-$user->setName('everzet')->will(function ($args, $user) {
- $user->getName()->willReturn('everzet');
-});
-
-// Or
-$user->setName('everzet')->will(function ($args) use ($user) {
- $user->getName()->willReturn('everzet');
-});
-```
-
-And now it doesn't matter how many times or in which order your methods are called.
-What matters is their behaviors and how well you faked it.
-
-#### Arguments wildcarding
-
-The previous example is awesome (at least I hope it is for you), but that's not
-optimal enough. We hardcoded `'everzet'` in our expectation. Isn't there a better
-way? In fact there is, but it involves understanding what this `'everzet'`
-actually is.
-
-You see, even if method arguments used during method prophecy creation look
-like simple method arguments, in reality they are not. They are argument token
-wildcards. As a matter of fact, `->setName('everzet')` looks like a simple call just
-because Prophecy automatically transforms it under the hood into:
-
-```php
-$user->setName(new Prophecy\Argument\Token\ExactValueToken('everzet'));
-```
-
-Those argument tokens are simple PHP classes, that implement
-`Prophecy\Argument\Token\TokenInterface` and tell Prophecy how to compare real arguments
-with your expectations. And yes, those classnames are damn big. That's why there's a
-shortcut class `Prophecy\Argument`, which you can use to create tokens like that:
-
-```php
-use Prophecy\Argument;
-
-$user->setName(Argument::exact('everzet'));
-```
-
-`ExactValueToken` is not very useful in our case as it forced us to hardcode the username.
-That's why Prophecy comes bundled with a bunch of other tokens:
-
-- `IdenticalValueToken` or `Argument::is($value)` - checks that the argument is identical to a specific value
-- `ExactValueToken` or `Argument::exact($value)` - checks that the argument matches a specific value
-- `TypeToken` or `Argument::type($typeOrClass)` - checks that the argument matches a specific type or
- classname
-- `ObjectStateToken` or `Argument::which($method, $value)` - checks that the argument method returns
- a specific value
-- `CallbackToken` or `Argument::that(callback)` - checks that the argument matches a custom callback
-- `AnyValueToken` or `Argument::any()` - matches any argument
-- `AnyValuesToken` or `Argument::cetera()` - matches any arguments to the rest of the signature
-- `StringContainsToken` or `Argument::containingString($value)` - checks that the argument contains a specific string value
-
-And you can add even more by implementing `TokenInterface` with your own custom classes.
-
-So, let's refactor our initial `{set,get}Name()` logic with argument tokens:
-
-```php
-use Prophecy\Argument;
-
-$user->getName()->willReturn(null);
-
-// For PHP 5.4
-$user->setName(Argument::type('string'))->will(function ($args) {
- $this->getName()->willReturn($args[0]);
-});
-
-// For PHP 5.3
-$user->setName(Argument::type('string'))->will(function ($args, $user) {
- $user->getName()->willReturn($args[0]);
-});
-
-// Or
-$user->setName(Argument::type('string'))->will(function ($args) use ($user) {
- $user->getName()->willReturn($args[0]);
-});
-```
-
-That's it. Now our `{set,get}Name()` prophecy will work with any string argument provided to it.
-We've just described how our stub object should behave, even though the original object could have
-no behavior whatsoever.
-
-One last bit about arguments now. You might ask, what happens in case of:
-
-```php
-use Prophecy\Argument;
-
-$user->getName()->willReturn(null);
-
-// For PHP 5.4
-$user->setName(Argument::type('string'))->will(function ($args) {
- $this->getName()->willReturn($args[0]);
-});
-
-// For PHP 5.3
-$user->setName(Argument::type('string'))->will(function ($args, $user) {
- $user->getName()->willReturn($args[0]);
-});
-
-// Or
-$user->setName(Argument::type('string'))->will(function ($args) use ($user) {
- $user->getName()->willReturn($args[0]);
-});
-
-$user->setName(Argument::any())->will(function () {
-});
-```
-
-Nothing. Your stub will continue behaving the way it did before. That's because of how
-arguments wildcarding works. Every argument token type has a different score level, which
-wildcard then uses to calculate the final arguments match score and use the method prophecy
-promise that has the highest score. In this case, `Argument::type()` in case of success
-scores `5` and `Argument::any()` scores `3`. So the type token wins, as does the first
-`setName()` method prophecy and its promise. The simple rule of thumb - more precise token
-always wins.
-
-#### Getting stub objects
-
-Ok, now we know how to define our prophecy method promises, let's get our stub from
-it:
-
-```php
-$stub = $prophecy->reveal();
-```
-
-As you might see, the only difference between how we get dummies and stubs is that with
-stubs we describe every object conversation instead of just agreeing with `null` returns
-(object being *dummy*). As a matter of fact, after you define your first promise
-(method call), Prophecy will force you to define all the communications - it throws
-the `UnexpectedCallException` for any call you didn't describe with object prophecy before
-calling it on a stub.
-
-### Mocks
-
-Now we know how to define doubles without behavior (dummies) and doubles with behavior, but
-no expectations (stubs). What's left is doubles for which we have some expectations. These
-are called mocks and in Prophecy they look almost exactly the same as stubs, except that
-they define *predictions* instead of *promises* on method prophecies:
-
-```php
-$entityManager->flush()->shouldBeCalled();
-```
-
-#### Predictions
-
-The `shouldBeCalled()` method here assigns `CallPrediction` to our method prophecy.
-Predictions are a delayed behavior check for your prophecies. You see, during the entire lifetime
-of your doubles, Prophecy records every single call you're making against it inside your
-code. After that, Prophecy can use this collected information to check if it matches defined
-predictions. You can assign predictions to method prophecies using the
-`MethodProphecy::should(PredictionInterface $prediction)` method. As a matter of fact,
-the `shouldBeCalled()` method we used earlier is just a shortcut to:
-
-```php
-$entityManager->flush()->should(new Prophecy\Prediction\CallPrediction());
-```
-
-It checks if your method of interest (that matches both the method name and the arguments wildcard)
-was called 1 or more times. If the prediction failed then it throws an exception. When does this
-check happen? Whenever you call `checkPredictions()` on the main Prophet object:
-
-```php
-$prophet->checkPredictions();
-```
-
-In PHPUnit, you would want to put this call into the `tearDown()` method. If no predictions
-are defined, it would do nothing. So it won't harm to call it after every test.
-
-There are plenty more predictions you can play with:
-
-- `CallPrediction` or `shouldBeCalled()` - checks that the method has been called 1 or more times
-- `NoCallsPrediction` or `shouldNotBeCalled()` - checks that the method has not been called
-- `CallTimesPrediction` or `shouldBeCalledTimes($count)` - checks that the method has been called
- `$count` times
-- `CallbackPrediction` or `should($callback)` - checks the method against your own custom callback
-
-Of course, you can always create your own custom prediction any time by implementing
-`PredictionInterface`.
-
-### Spies
-
-The last bit of awesomeness in Prophecy is out-of-the-box spies support. As I said in the previous
-section, Prophecy records every call made during the double's entire lifetime. This means
-you don't need to record predictions in order to check them. You can also do it
-manually by using the `MethodProphecy::shouldHave(PredictionInterface $prediction)` method:
-
-```php
-$em = $prophet->prophesize('Doctrine\ORM\EntityManager');
-
-$controller->createUser($em->reveal());
-
-$em->flush()->shouldHaveBeenCalled();
-```
-
-Such manipulation with doubles is called spying. And with Prophecy it just works.
diff --git a/www/wiki/vendor/phpspec/prophecy/composer.json b/www/wiki/vendor/phpspec/prophecy/composer.json
deleted file mode 100644
index 816f147e..00000000
--- a/www/wiki/vendor/phpspec/prophecy/composer.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "name": "phpspec/prophecy",
- "description": "Highly opinionated mocking framework for PHP 5.3+",
- "keywords": ["Mock", "Stub", "Dummy", "Double", "Fake", "Spy"],
- "homepage": "https://github.com/phpspec/prophecy",
- "type": "library",
- "license": "MIT",
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "email": "marcello.duarte@gmail.com"
- }
- ],
-
- "require": {
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
- "sebastian/comparator": "^1.1|^2.0|^3.0",
- "doctrine/instantiator": "^1.0.2",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0"
- },
-
- "require-dev": {
- "phpspec/phpspec": "^2.5|^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
- },
-
- "autoload": {
- "psr-0": {
- "Prophecy\\": "src/"
- }
- },
-
- "autoload-dev": {
- "psr-4": {
- "Fixtures\\Prophecy\\": "fixtures"
- }
- },
-
- "extra": {
- "branch-alias": {
- "dev-master": "1.8.x-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument.php
deleted file mode 100644
index fde6aa90..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument.php
+++ /dev/null
@@ -1,212 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy;
-
-use Prophecy\Argument\Token;
-
-/**
- * Argument tokens shortcuts.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class Argument
-{
- /**
- * Checks that argument is exact value or object.
- *
- * @param mixed $value
- *
- * @return Token\ExactValueToken
- */
- public static function exact($value)
- {
- return new Token\ExactValueToken($value);
- }
-
- /**
- * Checks that argument is of specific type or instance of specific class.
- *
- * @param string $type Type name (`integer`, `string`) or full class name
- *
- * @return Token\TypeToken
- */
- public static function type($type)
- {
- return new Token\TypeToken($type);
- }
-
- /**
- * Checks that argument object has specific state.
- *
- * @param string $methodName
- * @param mixed $value
- *
- * @return Token\ObjectStateToken
- */
- public static function which($methodName, $value)
- {
- return new Token\ObjectStateToken($methodName, $value);
- }
-
- /**
- * Checks that argument matches provided callback.
- *
- * @param callable $callback
- *
- * @return Token\CallbackToken
- */
- public static function that($callback)
- {
- return new Token\CallbackToken($callback);
- }
-
- /**
- * Matches any single value.
- *
- * @return Token\AnyValueToken
- */
- public static function any()
- {
- return new Token\AnyValueToken;
- }
-
- /**
- * Matches all values to the rest of the signature.
- *
- * @return Token\AnyValuesToken
- */
- public static function cetera()
- {
- return new Token\AnyValuesToken;
- }
-
- /**
- * Checks that argument matches all tokens
- *
- * @param mixed ... a list of tokens
- *
- * @return Token\LogicalAndToken
- */
- public static function allOf()
- {
- return new Token\LogicalAndToken(func_get_args());
- }
-
- /**
- * Checks that argument array or countable object has exact number of elements.
- *
- * @param integer $value array elements count
- *
- * @return Token\ArrayCountToken
- */
- public static function size($value)
- {
- return new Token\ArrayCountToken($value);
- }
-
- /**
- * Checks that argument array contains (key, value) pair
- *
- * @param mixed $key exact value or token
- * @param mixed $value exact value or token
- *
- * @return Token\ArrayEntryToken
- */
- public static function withEntry($key, $value)
- {
- return new Token\ArrayEntryToken($key, $value);
- }
-
- /**
- * Checks that arguments array entries all match value
- *
- * @param mixed $value
- *
- * @return Token\ArrayEveryEntryToken
- */
- public static function withEveryEntry($value)
- {
- return new Token\ArrayEveryEntryToken($value);
- }
-
- /**
- * Checks that argument array contains value
- *
- * @param mixed $value
- *
- * @return Token\ArrayEntryToken
- */
- public static function containing($value)
- {
- return new Token\ArrayEntryToken(self::any(), $value);
- }
-
- /**
- * Checks that argument array has key
- *
- * @param mixed $key exact value or token
- *
- * @return Token\ArrayEntryToken
- */
- public static function withKey($key)
- {
- return new Token\ArrayEntryToken($key, self::any());
- }
-
- /**
- * Checks that argument does not match the value|token.
- *
- * @param mixed $value either exact value or argument token
- *
- * @return Token\LogicalNotToken
- */
- public static function not($value)
- {
- return new Token\LogicalNotToken($value);
- }
-
- /**
- * @param string $value
- *
- * @return Token\StringContainsToken
- */
- public static function containingString($value)
- {
- return new Token\StringContainsToken($value);
- }
-
- /**
- * Checks that argument is identical value.
- *
- * @param mixed $value
- *
- * @return Token\IdenticalValueToken
- */
- public static function is($value)
- {
- return new Token\IdenticalValueToken($value);
- }
-
- /**
- * Check that argument is same value when rounding to the
- * given precision.
- *
- * @param float $value
- * @param float $precision
- *
- * @return Token\ApproximateValueToken
- */
- public static function approximate($value, $precision = 0)
- {
- return new Token\ApproximateValueToken($value, $precision);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php
deleted file mode 100644
index a088f21d..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument;
-
-/**
- * Arguments wildcarding.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ArgumentsWildcard
-{
- /**
- * @var Token\TokenInterface[]
- */
- private $tokens = array();
- private $string;
-
- /**
- * Initializes wildcard.
- *
- * @param array $arguments Array of argument tokens or values
- */
- public function __construct(array $arguments)
- {
- foreach ($arguments as $argument) {
- if (!$argument instanceof Token\TokenInterface) {
- $argument = new Token\ExactValueToken($argument);
- }
-
- $this->tokens[] = $argument;
- }
- }
-
- /**
- * Calculates wildcard match score for provided arguments.
- *
- * @param array $arguments
- *
- * @return false|int False OR integer score (higher - better)
- */
- public function scoreArguments(array $arguments)
- {
- if (0 == count($arguments) && 0 == count($this->tokens)) {
- return 1;
- }
-
- $arguments = array_values($arguments);
- $totalScore = 0;
- foreach ($this->tokens as $i => $token) {
- $argument = isset($arguments[$i]) ? $arguments[$i] : null;
- if (1 >= $score = $token->scoreArgument($argument)) {
- return false;
- }
-
- $totalScore += $score;
-
- if (true === $token->isLast()) {
- return $totalScore;
- }
- }
-
- if (count($arguments) > count($this->tokens)) {
- return false;
- }
-
- return $totalScore;
- }
-
- /**
- * Returns string representation for wildcard.
- *
- * @return string
- */
- public function __toString()
- {
- if (null === $this->string) {
- $this->string = implode(', ', array_map(function ($token) {
- return (string) $token;
- }, $this->tokens));
- }
-
- return $this->string;
- }
-
- /**
- * @return array
- */
- public function getTokens()
- {
- return $this->tokens;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php
deleted file mode 100644
index 50988112..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-/**
- * Any single value token.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class AnyValueToken implements TokenInterface
-{
- /**
- * Always scores 3 for any argument.
- *
- * @param $argument
- *
- * @return int
- */
- public function scoreArgument($argument)
- {
- return 3;
- }
-
- /**
- * Returns false.
- *
- * @return bool
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return '*';
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValuesToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValuesToken.php
deleted file mode 100644
index f76b17bc..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValuesToken.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-/**
- * Any values token.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class AnyValuesToken implements TokenInterface
-{
- /**
- * Always scores 2 for any argument.
- *
- * @param $argument
- *
- * @return int
- */
- public function scoreArgument($argument)
- {
- return 2;
- }
-
- /**
- * Returns true to stop wildcard from processing other tokens.
- *
- * @return bool
- */
- public function isLast()
- {
- return true;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return '* [, ...]';
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ApproximateValueToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ApproximateValueToken.php
deleted file mode 100644
index d4918b1a..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ApproximateValueToken.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-/**
- * Approximate value token
- *
- * @author Daniel Leech <daniel@dantleech.com>
- */
-class ApproximateValueToken implements TokenInterface
-{
- private $value;
- private $precision;
-
- public function __construct($value, $precision = 0)
- {
- $this->value = $value;
- $this->precision = $precision;
- }
-
- /**
- * {@inheritdoc}
- */
- public function scoreArgument($argument)
- {
- return round($argument, $this->precision) === round($this->value, $this->precision) ? 10 : false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return sprintf('≅%s', round($this->value, $this->precision));
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayCountToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayCountToken.php
deleted file mode 100644
index 96b4befd..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayCountToken.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-/**
- * Array elements count token.
- *
- * @author Boris Mikhaylov <kaguxmail@gmail.com>
- */
-
-class ArrayCountToken implements TokenInterface
-{
- private $count;
-
- /**
- * @param integer $value
- */
- public function __construct($value)
- {
- $this->count = $value;
- }
-
- /**
- * Scores 6 when argument has preset number of elements.
- *
- * @param $argument
- *
- * @return bool|int
- */
- public function scoreArgument($argument)
- {
- return $this->isCountable($argument) && $this->hasProperCount($argument) ? 6 : false;
- }
-
- /**
- * Returns false.
- *
- * @return boolean
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return sprintf('count(%s)', $this->count);
- }
-
- /**
- * Returns true if object is either array or instance of \Countable
- *
- * @param $argument
- * @return bool
- */
- private function isCountable($argument)
- {
- return (is_array($argument) || $argument instanceof \Countable);
- }
-
- /**
- * Returns true if $argument has expected number of elements
- *
- * @param array|\Countable $argument
- *
- * @return bool
- */
- private function hasProperCount($argument)
- {
- return $this->count === count($argument);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEntryToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEntryToken.php
deleted file mode 100644
index 0305fc72..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEntryToken.php
+++ /dev/null
@@ -1,143 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-use Prophecy\Exception\InvalidArgumentException;
-
-/**
- * Array entry token.
- *
- * @author Boris Mikhaylov <kaguxmail@gmail.com>
- */
-class ArrayEntryToken implements TokenInterface
-{
- /** @var \Prophecy\Argument\Token\TokenInterface */
- private $key;
- /** @var \Prophecy\Argument\Token\TokenInterface */
- private $value;
-
- /**
- * @param mixed $key exact value or token
- * @param mixed $value exact value or token
- */
- public function __construct($key, $value)
- {
- $this->key = $this->wrapIntoExactValueToken($key);
- $this->value = $this->wrapIntoExactValueToken($value);
- }
-
- /**
- * Scores half of combined scores from key and value tokens for same entry. Capped at 8.
- * If argument implements \ArrayAccess without \Traversable, then key token is restricted to ExactValueToken.
- *
- * @param array|\ArrayAccess|\Traversable $argument
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- * @return bool|int
- */
- public function scoreArgument($argument)
- {
- if ($argument instanceof \Traversable) {
- $argument = iterator_to_array($argument);
- }
-
- if ($argument instanceof \ArrayAccess) {
- $argument = $this->convertArrayAccessToEntry($argument);
- }
-
- if (!is_array($argument) || empty($argument)) {
- return false;
- }
-
- $keyScores = array_map(array($this->key,'scoreArgument'), array_keys($argument));
- $valueScores = array_map(array($this->value,'scoreArgument'), $argument);
- $scoreEntry = function ($value, $key) {
- return $value && $key ? min(8, ($key + $value) / 2) : false;
- };
-
- return max(array_map($scoreEntry, $valueScores, $keyScores));
- }
-
- /**
- * Returns false.
- *
- * @return boolean
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return sprintf('[..., %s => %s, ...]', $this->key, $this->value);
- }
-
- /**
- * Returns key
- *
- * @return TokenInterface
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Returns value
- *
- * @return TokenInterface
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Wraps non token $value into ExactValueToken
- *
- * @param $value
- * @return TokenInterface
- */
- private function wrapIntoExactValueToken($value)
- {
- return $value instanceof TokenInterface ? $value : new ExactValueToken($value);
- }
-
- /**
- * Converts instance of \ArrayAccess to key => value array entry
- *
- * @param \ArrayAccess $object
- *
- * @return array|null
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- private function convertArrayAccessToEntry(\ArrayAccess $object)
- {
- if (!$this->key instanceof ExactValueToken) {
- throw new InvalidArgumentException(sprintf(
- 'You can only use exact value tokens to match key of ArrayAccess object'.PHP_EOL.
- 'But you used `%s`.',
- $this->key
- ));
- }
-
- $key = $this->key->getValue();
-
- return $object->offsetExists($key) ? array($key => $object[$key]) : array();
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEveryEntryToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEveryEntryToken.php
deleted file mode 100644
index 5d41fa48..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEveryEntryToken.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-/**
- * Array every entry token.
- *
- * @author Adrien Brault <adrien.brault@gmail.com>
- */
-class ArrayEveryEntryToken implements TokenInterface
-{
- /**
- * @var TokenInterface
- */
- private $value;
-
- /**
- * @param mixed $value exact value or token
- */
- public function __construct($value)
- {
- if (!$value instanceof TokenInterface) {
- $value = new ExactValueToken($value);
- }
-
- $this->value = $value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function scoreArgument($argument)
- {
- if (!$argument instanceof \Traversable && !is_array($argument)) {
- return false;
- }
-
- $scores = array();
- foreach ($argument as $key => $argumentEntry) {
- $scores[] = $this->value->scoreArgument($argumentEntry);
- }
-
- if (empty($scores) || in_array(false, $scores, true)) {
- return false;
- }
-
- return array_sum($scores) / count($scores);
- }
-
- /**
- * {@inheritdoc}
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function __toString()
- {
- return sprintf('[%s, ..., %s]', $this->value, $this->value);
- }
-
- /**
- * @return TokenInterface
- */
- public function getValue()
- {
- return $this->value;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/CallbackToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/CallbackToken.php
deleted file mode 100644
index f45ba20b..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/CallbackToken.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-use Prophecy\Exception\InvalidArgumentException;
-
-/**
- * Callback-verified token.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class CallbackToken implements TokenInterface
-{
- private $callback;
-
- /**
- * Initializes token.
- *
- * @param callable $callback
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function __construct($callback)
- {
- if (!is_callable($callback)) {
- throw new InvalidArgumentException(sprintf(
- 'Callable expected as an argument to CallbackToken, but got %s.',
- gettype($callback)
- ));
- }
-
- $this->callback = $callback;
- }
-
- /**
- * Scores 7 if callback returns true, false otherwise.
- *
- * @param $argument
- *
- * @return bool|int
- */
- public function scoreArgument($argument)
- {
- return call_user_func($this->callback, $argument) ? 7 : false;
- }
-
- /**
- * Returns false.
- *
- * @return bool
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return 'callback()';
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ExactValueToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ExactValueToken.php
deleted file mode 100644
index aa960f3f..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ExactValueToken.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-use SebastianBergmann\Comparator\ComparisonFailure;
-use Prophecy\Comparator\Factory as ComparatorFactory;
-use Prophecy\Util\StringUtil;
-
-/**
- * Exact value token.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ExactValueToken implements TokenInterface
-{
- private $value;
- private $string;
- private $util;
- private $comparatorFactory;
-
- /**
- * Initializes token.
- *
- * @param mixed $value
- * @param StringUtil $util
- * @param ComparatorFactory $comparatorFactory
- */
- public function __construct($value, StringUtil $util = null, ComparatorFactory $comparatorFactory = null)
- {
- $this->value = $value;
- $this->util = $util ?: new StringUtil();
-
- $this->comparatorFactory = $comparatorFactory ?: ComparatorFactory::getInstance();
- }
-
- /**
- * Scores 10 if argument matches preset value.
- *
- * @param $argument
- *
- * @return bool|int
- */
- public function scoreArgument($argument)
- {
- if (is_object($argument) && is_object($this->value)) {
- $comparator = $this->comparatorFactory->getComparatorFor(
- $argument, $this->value
- );
-
- try {
- $comparator->assertEquals($argument, $this->value);
- return 10;
- } catch (ComparisonFailure $failure) {}
- }
-
- // If either one is an object it should be castable to a string
- if (is_object($argument) xor is_object($this->value)) {
- if (is_object($argument) && !method_exists($argument, '__toString')) {
- return false;
- }
-
- if (is_object($this->value) && !method_exists($this->value, '__toString')) {
- return false;
- }
- } elseif (is_numeric($argument) && is_numeric($this->value)) {
- // noop
- } elseif (gettype($argument) !== gettype($this->value)) {
- return false;
- }
-
- return $argument == $this->value ? 10 : false;
- }
-
- /**
- * Returns preset value against which token checks arguments.
- *
- * @return mixed
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Returns false.
- *
- * @return bool
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- if (null === $this->string) {
- $this->string = sprintf('exact(%s)', $this->util->stringify($this->value));
- }
-
- return $this->string;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/IdenticalValueToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/IdenticalValueToken.php
deleted file mode 100644
index 0b6d23ab..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/IdenticalValueToken.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-use Prophecy\Util\StringUtil;
-
-/**
- * Identical value token.
- *
- * @author Florian Voutzinos <florian@voutzinos.com>
- */
-class IdenticalValueToken implements TokenInterface
-{
- private $value;
- private $string;
- private $util;
-
- /**
- * Initializes token.
- *
- * @param mixed $value
- * @param StringUtil $util
- */
- public function __construct($value, StringUtil $util = null)
- {
- $this->value = $value;
- $this->util = $util ?: new StringUtil();
- }
-
- /**
- * Scores 11 if argument matches preset value.
- *
- * @param $argument
- *
- * @return bool|int
- */
- public function scoreArgument($argument)
- {
- return $argument === $this->value ? 11 : false;
- }
-
- /**
- * Returns false.
- *
- * @return bool
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- if (null === $this->string) {
- $this->string = sprintf('identical(%s)', $this->util->stringify($this->value));
- }
-
- return $this->string;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalAndToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalAndToken.php
deleted file mode 100644
index 4ee1b25e..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalAndToken.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-/**
- * Logical AND token.
- *
- * @author Boris Mikhaylov <kaguxmail@gmail.com>
- */
-class LogicalAndToken implements TokenInterface
-{
- private $tokens = array();
-
- /**
- * @param array $arguments exact values or tokens
- */
- public function __construct(array $arguments)
- {
- foreach ($arguments as $argument) {
- if (!$argument instanceof TokenInterface) {
- $argument = new ExactValueToken($argument);
- }
- $this->tokens[] = $argument;
- }
- }
-
- /**
- * Scores maximum score from scores returned by tokens for this argument if all of them score.
- *
- * @param $argument
- *
- * @return bool|int
- */
- public function scoreArgument($argument)
- {
- if (0 === count($this->tokens)) {
- return false;
- }
-
- $maxScore = 0;
- foreach ($this->tokens as $token) {
- $score = $token->scoreArgument($argument);
- if (false === $score) {
- return false;
- }
- $maxScore = max($score, $maxScore);
- }
-
- return $maxScore;
- }
-
- /**
- * Returns false.
- *
- * @return boolean
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return sprintf('bool(%s)', implode(' AND ', $this->tokens));
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalNotToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalNotToken.php
deleted file mode 100644
index 623efa57..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalNotToken.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-/**
- * Logical NOT token.
- *
- * @author Boris Mikhaylov <kaguxmail@gmail.com>
- */
-class LogicalNotToken implements TokenInterface
-{
- /** @var \Prophecy\Argument\Token\TokenInterface */
- private $token;
-
- /**
- * @param mixed $value exact value or token
- */
- public function __construct($value)
- {
- $this->token = $value instanceof TokenInterface? $value : new ExactValueToken($value);
- }
-
- /**
- * Scores 4 when preset token does not match the argument.
- *
- * @param $argument
- *
- * @return bool|int
- */
- public function scoreArgument($argument)
- {
- return false === $this->token->scoreArgument($argument) ? 4 : false;
- }
-
- /**
- * Returns true if preset token is last.
- *
- * @return bool|int
- */
- public function isLast()
- {
- return $this->token->isLast();
- }
-
- /**
- * Returns originating token.
- *
- * @return TokenInterface
- */
- public function getOriginatingToken()
- {
- return $this->token;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return sprintf('not(%s)', $this->token);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php
deleted file mode 100644
index d7710776..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php
+++ /dev/null
@@ -1,104 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-use SebastianBergmann\Comparator\ComparisonFailure;
-use Prophecy\Comparator\Factory as ComparatorFactory;
-use Prophecy\Util\StringUtil;
-
-/**
- * Object state-checker token.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ObjectStateToken implements TokenInterface
-{
- private $name;
- private $value;
- private $util;
- private $comparatorFactory;
-
- /**
- * Initializes token.
- *
- * @param string $methodName
- * @param mixed $value Expected return value
- * @param null|StringUtil $util
- * @param ComparatorFactory $comparatorFactory
- */
- public function __construct(
- $methodName,
- $value,
- StringUtil $util = null,
- ComparatorFactory $comparatorFactory = null
- ) {
- $this->name = $methodName;
- $this->value = $value;
- $this->util = $util ?: new StringUtil;
-
- $this->comparatorFactory = $comparatorFactory ?: ComparatorFactory::getInstance();
- }
-
- /**
- * Scores 8 if argument is an object, which method returns expected value.
- *
- * @param mixed $argument
- *
- * @return bool|int
- */
- public function scoreArgument($argument)
- {
- if (is_object($argument) && method_exists($argument, $this->name)) {
- $actual = call_user_func(array($argument, $this->name));
-
- $comparator = $this->comparatorFactory->getComparatorFor(
- $this->value, $actual
- );
-
- try {
- $comparator->assertEquals($this->value, $actual);
- return 8;
- } catch (ComparisonFailure $failure) {
- return false;
- }
- }
-
- if (is_object($argument) && property_exists($argument, $this->name)) {
- return $argument->{$this->name} === $this->value ? 8 : false;
- }
-
- return false;
- }
-
- /**
- * Returns false.
- *
- * @return bool
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return sprintf('state(%s(), %s)',
- $this->name,
- $this->util->stringify($this->value)
- );
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/StringContainsToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/StringContainsToken.php
deleted file mode 100644
index bd8d423f..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/StringContainsToken.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-/**
- * String contains token.
- *
- * @author Peter Mitchell <pete@peterjmit.com>
- */
-class StringContainsToken implements TokenInterface
-{
- private $value;
-
- /**
- * Initializes token.
- *
- * @param string $value
- */
- public function __construct($value)
- {
- $this->value = $value;
- }
-
- public function scoreArgument($argument)
- {
- return is_string($argument) && strpos($argument, $this->value) !== false ? 6 : false;
- }
-
- /**
- * Returns preset value against which token checks arguments.
- *
- * @return mixed
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Returns false.
- *
- * @return bool
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return sprintf('contains("%s")', $this->value);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TokenInterface.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TokenInterface.php
deleted file mode 100644
index 625d3bad..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TokenInterface.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-/**
- * Argument token interface.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface TokenInterface
-{
- /**
- * Calculates token match score for provided argument.
- *
- * @param $argument
- *
- * @return bool|int
- */
- public function scoreArgument($argument);
-
- /**
- * Returns true if this token prevents check of other tokens (is last one).
- *
- * @return bool|int
- */
- public function isLast();
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString();
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TypeToken.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TypeToken.php
deleted file mode 100644
index cb65132c..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TypeToken.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Argument\Token;
-
-use Prophecy\Exception\InvalidArgumentException;
-
-/**
- * Value type token.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class TypeToken implements TokenInterface
-{
- private $type;
-
- /**
- * @param string $type
- */
- public function __construct($type)
- {
- $checker = "is_{$type}";
- if (!function_exists($checker) && !interface_exists($type) && !class_exists($type)) {
- throw new InvalidArgumentException(sprintf(
- 'Type or class name expected as an argument to TypeToken, but got %s.', $type
- ));
- }
-
- $this->type = $type;
- }
-
- /**
- * Scores 5 if argument has the same type this token was constructed with.
- *
- * @param $argument
- *
- * @return bool|int
- */
- public function scoreArgument($argument)
- {
- $checker = "is_{$this->type}";
- if (function_exists($checker)) {
- return call_user_func($checker, $argument) ? 5 : false;
- }
-
- return $argument instanceof $this->type ? 5 : false;
- }
-
- /**
- * Returns false.
- *
- * @return bool
- */
- public function isLast()
- {
- return false;
- }
-
- /**
- * Returns string representation for token.
- *
- * @return string
- */
- public function __toString()
- {
- return sprintf('type(%s)', $this->type);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Call/Call.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Call/Call.php
deleted file mode 100644
index 26522354..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Call/Call.php
+++ /dev/null
@@ -1,162 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Call;
-
-use Exception;
-use Prophecy\Argument\ArgumentsWildcard;
-
-/**
- * Call object.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class Call
-{
- private $methodName;
- private $arguments;
- private $returnValue;
- private $exception;
- private $file;
- private $line;
- private $scores;
-
- /**
- * Initializes call.
- *
- * @param string $methodName
- * @param array $arguments
- * @param mixed $returnValue
- * @param Exception $exception
- * @param null|string $file
- * @param null|int $line
- */
- public function __construct($methodName, array $arguments, $returnValue,
- Exception $exception = null, $file, $line)
- {
- $this->methodName = $methodName;
- $this->arguments = $arguments;
- $this->returnValue = $returnValue;
- $this->exception = $exception;
- $this->scores = new \SplObjectStorage();
-
- if ($file) {
- $this->file = $file;
- $this->line = intval($line);
- }
- }
-
- /**
- * Returns called method name.
- *
- * @return string
- */
- public function getMethodName()
- {
- return $this->methodName;
- }
-
- /**
- * Returns called method arguments.
- *
- * @return array
- */
- public function getArguments()
- {
- return $this->arguments;
- }
-
- /**
- * Returns called method return value.
- *
- * @return null|mixed
- */
- public function getReturnValue()
- {
- return $this->returnValue;
- }
-
- /**
- * Returns exception that call thrown.
- *
- * @return null|Exception
- */
- public function getException()
- {
- return $this->exception;
- }
-
- /**
- * Returns callee filename.
- *
- * @return string
- */
- public function getFile()
- {
- return $this->file;
- }
-
- /**
- * Returns callee line number.
- *
- * @return int
- */
- public function getLine()
- {
- return $this->line;
- }
-
- /**
- * Returns short notation for callee place.
- *
- * @return string
- */
- public function getCallPlace()
- {
- if (null === $this->file) {
- return 'unknown';
- }
-
- return sprintf('%s:%d', $this->file, $this->line);
- }
-
- /**
- * Adds the wildcard match score for the provided wildcard.
- *
- * @param ArgumentsWildcard $wildcard
- * @param false|int $score
- *
- * @return $this
- */
- public function addScore(ArgumentsWildcard $wildcard, $score)
- {
- $this->scores[$wildcard] = $score;
-
- return $this;
- }
-
- /**
- * Returns wildcard match score for the provided wildcard. The score is
- * calculated if not already done.
- *
- * @param ArgumentsWildcard $wildcard
- *
- * @return false|int False OR integer score (higher - better)
- */
- public function getScore(ArgumentsWildcard $wildcard)
- {
- if (isset($this->scores[$wildcard])) {
- return $this->scores[$wildcard];
- }
-
- return $this->scores[$wildcard] = $wildcard->scoreArguments($this->getArguments());
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php
deleted file mode 100644
index bc936c8f..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php
+++ /dev/null
@@ -1,229 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Call;
-
-use Prophecy\Exception\Prophecy\MethodProphecyException;
-use Prophecy\Prophecy\MethodProphecy;
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Argument\ArgumentsWildcard;
-use Prophecy\Util\StringUtil;
-use Prophecy\Exception\Call\UnexpectedCallException;
-
-/**
- * Calls receiver & manager.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class CallCenter
-{
- private $util;
-
- /**
- * @var Call[]
- */
- private $recordedCalls = array();
-
- /**
- * Initializes call center.
- *
- * @param StringUtil $util
- */
- public function __construct(StringUtil $util = null)
- {
- $this->util = $util ?: new StringUtil;
- }
-
- /**
- * Makes and records specific method call for object prophecy.
- *
- * @param ObjectProphecy $prophecy
- * @param string $methodName
- * @param array $arguments
- *
- * @return mixed Returns null if no promise for prophecy found or promise return value.
- *
- * @throws \Prophecy\Exception\Call\UnexpectedCallException If no appropriate method prophecy found
- */
- public function makeCall(ObjectProphecy $prophecy, $methodName, array $arguments)
- {
- // For efficiency exclude 'args' from the generated backtrace
- if (PHP_VERSION_ID >= 50400) {
- // Limit backtrace to last 3 calls as we don't use the rest
- // Limit argument was introduced in PHP 5.4.0
- $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3);
- } elseif (defined('DEBUG_BACKTRACE_IGNORE_ARGS')) {
- // DEBUG_BACKTRACE_IGNORE_ARGS was introduced in PHP 5.3.6
- $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
- } else {
- $backtrace = debug_backtrace();
- }
-
- $file = $line = null;
- if (isset($backtrace[2]) && isset($backtrace[2]['file'])) {
- $file = $backtrace[2]['file'];
- $line = $backtrace[2]['line'];
- }
-
- // If no method prophecies defined, then it's a dummy, so we'll just return null
- if ('__destruct' === $methodName || 0 == count($prophecy->getMethodProphecies())) {
- $this->recordedCalls[] = new Call($methodName, $arguments, null, null, $file, $line);
-
- return null;
- }
-
- // There are method prophecies, so it's a fake/stub. Searching prophecy for this call
- $matches = array();
- foreach ($prophecy->getMethodProphecies($methodName) as $methodProphecy) {
- if (0 < $score = $methodProphecy->getArgumentsWildcard()->scoreArguments($arguments)) {
- $matches[] = array($score, $methodProphecy);
- }
- }
-
- // If fake/stub doesn't have method prophecy for this call - throw exception
- if (!count($matches)) {
- throw $this->createUnexpectedCallException($prophecy, $methodName, $arguments);
- }
-
- // Sort matches by their score value
- @usort($matches, function ($match1, $match2) { return $match2[0] - $match1[0]; });
-
- $score = $matches[0][0];
- // If Highest rated method prophecy has a promise - execute it or return null instead
- $methodProphecy = $matches[0][1];
- $returnValue = null;
- $exception = null;
- if ($promise = $methodProphecy->getPromise()) {
- try {
- $returnValue = $promise->execute($arguments, $prophecy, $methodProphecy);
- } catch (\Exception $e) {
- $exception = $e;
- }
- }
-
- if ($methodProphecy->hasReturnVoid() && $returnValue !== null) {
- throw new MethodProphecyException(
- "The method \"$methodName\" has a void return type, but the promise returned a value",
- $methodProphecy
- );
- }
-
- $this->recordedCalls[] = $call = new Call(
- $methodName, $arguments, $returnValue, $exception, $file, $line
- );
- $call->addScore($methodProphecy->getArgumentsWildcard(), $score);
-
- if (null !== $exception) {
- throw $exception;
- }
-
- return $returnValue;
- }
-
- /**
- * Searches for calls by method name & arguments wildcard.
- *
- * @param string $methodName
- * @param ArgumentsWildcard $wildcard
- *
- * @return Call[]
- */
- public function findCalls($methodName, ArgumentsWildcard $wildcard)
- {
- return array_values(
- array_filter($this->recordedCalls, function (Call $call) use ($methodName, $wildcard) {
- return $methodName === $call->getMethodName()
- && 0 < $call->getScore($wildcard)
- ;
- })
- );
- }
-
- private function createUnexpectedCallException(ObjectProphecy $prophecy, $methodName,
- array $arguments)
- {
- $classname = get_class($prophecy->reveal());
- $indentationLength = 8; // looks good
- $argstring = implode(
- ",\n",
- $this->indentArguments(
- array_map(array($this->util, 'stringify'), $arguments),
- $indentationLength
- )
- );
-
- $expected = array();
-
- foreach (call_user_func_array('array_merge', $prophecy->getMethodProphecies()) as $methodProphecy) {
- $expected[] = sprintf(
- " - %s(\n" .
- "%s\n" .
- " )",
- $methodProphecy->getMethodName(),
- implode(
- ",\n",
- $this->indentArguments(
- array_map('strval', $methodProphecy->getArgumentsWildcard()->getTokens()),
- $indentationLength
- )
- )
- );
- }
-
- return new UnexpectedCallException(
- sprintf(
- "Unexpected method call on %s:\n".
- " - %s(\n".
- "%s\n".
- " )\n".
- "expected calls were:\n".
- "%s",
-
- $classname, $methodName, $argstring, implode("\n", $expected)
- ),
- $prophecy, $methodName, $arguments
-
- );
- }
-
- private function formatExceptionMessage(MethodProphecy $methodProphecy)
- {
- return sprintf(
- " - %s(\n".
- "%s\n".
- " )",
- $methodProphecy->getMethodName(),
- implode(
- ",\n",
- $this->indentArguments(
- array_map(
- function ($token) {
- return (string) $token;
- },
- $methodProphecy->getArgumentsWildcard()->getTokens()
- ),
- $indentationLength
- )
- )
- );
- }
-
- private function indentArguments(array $arguments, $indentationLength)
- {
- return preg_replace_callback(
- '/^/m',
- function () use ($indentationLength) {
- return str_repeat(' ', $indentationLength);
- },
- $arguments
- );
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/ClosureComparator.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/ClosureComparator.php
deleted file mode 100644
index 874e474c..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/ClosureComparator.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Comparator;
-
-use SebastianBergmann\Comparator\Comparator;
-use SebastianBergmann\Comparator\ComparisonFailure;
-
-/**
- * Closure comparator.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-final class ClosureComparator extends Comparator
-{
- public function accepts($expected, $actual)
- {
- return is_object($expected) && $expected instanceof \Closure
- && is_object($actual) && $actual instanceof \Closure;
- }
-
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- throw new ComparisonFailure(
- $expected,
- $actual,
- // we don't need a diff
- '',
- '',
- false,
- 'all closures are born different'
- );
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php
deleted file mode 100644
index 2070db14..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Comparator;
-
-use SebastianBergmann\Comparator\Factory as BaseFactory;
-
-/**
- * Prophecy comparator factory.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-final class Factory extends BaseFactory
-{
- /**
- * @var Factory
- */
- private static $instance;
-
- public function __construct()
- {
- parent::__construct();
-
- $this->register(new ClosureComparator());
- $this->register(new ProphecyComparator());
- }
-
- /**
- * @return Factory
- */
- public static function getInstance()
- {
- if (self::$instance === null) {
- self::$instance = new Factory;
- }
-
- return self::$instance;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/ProphecyComparator.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/ProphecyComparator.php
deleted file mode 100644
index 298a8e35..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Comparator/ProphecyComparator.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Comparator;
-
-use Prophecy\Prophecy\ProphecyInterface;
-use SebastianBergmann\Comparator\ObjectComparator;
-
-class ProphecyComparator extends ObjectComparator
-{
- public function accepts($expected, $actual)
- {
- return is_object($expected) && is_object($actual) && $actual instanceof ProphecyInterface;
- }
-
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false, array &$processed = array())
- {
- parent::assertEquals($expected, $actual->reveal(), $delta, $canonicalize, $ignoreCase, $processed);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/CachedDoubler.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/CachedDoubler.php
deleted file mode 100644
index d6b6b1a9..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/CachedDoubler.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler;
-
-use ReflectionClass;
-
-/**
- * Cached class doubler.
- * Prevents mirroring/creation of the same structure twice.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class CachedDoubler extends Doubler
-{
- private $classes = array();
-
- /**
- * {@inheritdoc}
- */
- public function registerClassPatch(ClassPatch\ClassPatchInterface $patch)
- {
- $this->classes[] = array();
-
- parent::registerClassPatch($patch);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function createDoubleClass(ReflectionClass $class = null, array $interfaces)
- {
- $classId = $this->generateClassId($class, $interfaces);
- if (isset($this->classes[$classId])) {
- return $this->classes[$classId];
- }
-
- return $this->classes[$classId] = parent::createDoubleClass($class, $interfaces);
- }
-
- /**
- * @param ReflectionClass $class
- * @param ReflectionClass[] $interfaces
- *
- * @return string
- */
- private function generateClassId(ReflectionClass $class = null, array $interfaces)
- {
- $parts = array();
- if (null !== $class) {
- $parts[] = $class->getName();
- }
- foreach ($interfaces as $interface) {
- $parts[] = $interface->getName();
- }
- sort($parts);
-
- return md5(implode('', $parts));
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php
deleted file mode 100644
index d6d19685..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ClassPatchInterface.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\ClassPatch;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-
-/**
- * Class patch interface.
- * Class patches extend doubles functionality or help
- * Prophecy to avoid some internal PHP bugs.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface ClassPatchInterface
-{
- /**
- * Checks if patch supports specific class node.
- *
- * @param ClassNode $node
- *
- * @return bool
- */
- public function supports(ClassNode $node);
-
- /**
- * Applies patch to the specific class node.
- *
- * @param ClassNode $node
- * @return void
- */
- public function apply(ClassNode $node);
-
- /**
- * Returns patch priority, which determines when patch will be applied.
- *
- * @return int Priority number (higher - earlier)
- */
- public function getPriority();
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php
deleted file mode 100644
index 61998fc4..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\ClassPatch;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-use Prophecy\Doubler\Generator\Node\MethodNode;
-
-/**
- * Disable constructor.
- * Makes all constructor arguments optional.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class DisableConstructorPatch implements ClassPatchInterface
-{
- /**
- * Checks if class has `__construct` method.
- *
- * @param ClassNode $node
- *
- * @return bool
- */
- public function supports(ClassNode $node)
- {
- return true;
- }
-
- /**
- * Makes all class constructor arguments optional.
- *
- * @param ClassNode $node
- */
- public function apply(ClassNode $node)
- {
- if (!$node->hasMethod('__construct')) {
- $node->addMethod(new MethodNode('__construct', ''));
-
- return;
- }
-
- $constructor = $node->getMethod('__construct');
- foreach ($constructor->getArguments() as $argument) {
- $argument->setDefault(null);
- }
-
- $constructor->setCode(<<<PHP
-if (0 < func_num_args()) {
- call_user_func_array(array('parent', '__construct'), func_get_args());
-}
-PHP
- );
- }
-
- /**
- * Returns patch priority, which determines when patch will be applied.
- *
- * @return int Priority number (higher - earlier)
- */
- public function getPriority()
- {
- return 100;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php
deleted file mode 100644
index fa38fc0d..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/HhvmExceptionPatch.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\ClassPatch;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-
-/**
- * Exception patch for HHVM to remove the stubs from special methods
- *
- * @author Christophe Coevoet <stof@notk.org>
- */
-class HhvmExceptionPatch implements ClassPatchInterface
-{
- /**
- * Supports exceptions on HHVM.
- *
- * @param ClassNode $node
- *
- * @return bool
- */
- public function supports(ClassNode $node)
- {
- if (!defined('HHVM_VERSION')) {
- return false;
- }
-
- return 'Exception' === $node->getParentClass() || is_subclass_of($node->getParentClass(), 'Exception');
- }
-
- /**
- * Removes special exception static methods from the doubled methods.
- *
- * @param ClassNode $node
- *
- * @return void
- */
- public function apply(ClassNode $node)
- {
- if ($node->hasMethod('setTraceOptions')) {
- $node->getMethod('setTraceOptions')->useParentCode();
- }
- if ($node->hasMethod('getTraceOptions')) {
- $node->getMethod('getTraceOptions')->useParentCode();
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function getPriority()
- {
- return -50;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/KeywordPatch.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/KeywordPatch.php
deleted file mode 100644
index 41ea2fc1..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/KeywordPatch.php
+++ /dev/null
@@ -1,140 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\ClassPatch;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-
-/**
- * Remove method functionality from the double which will clash with php keywords.
- *
- * @author Milan Magudia <milan@magudia.com>
- */
-class KeywordPatch implements ClassPatchInterface
-{
- /**
- * Support any class
- *
- * @param ClassNode $node
- *
- * @return boolean
- */
- public function supports(ClassNode $node)
- {
- return true;
- }
-
- /**
- * Remove methods that clash with php keywords
- *
- * @param ClassNode $node
- */
- public function apply(ClassNode $node)
- {
- $methodNames = array_keys($node->getMethods());
- $methodsToRemove = array_intersect($methodNames, $this->getKeywords());
- foreach ($methodsToRemove as $methodName) {
- $node->removeMethod($methodName);
- }
- }
-
- /**
- * Returns patch priority, which determines when patch will be applied.
- *
- * @return int Priority number (higher - earlier)
- */
- public function getPriority()
- {
- return 49;
- }
-
- /**
- * Returns array of php keywords.
- *
- * @return array
- */
- private function getKeywords()
- {
- if (\PHP_VERSION_ID >= 70000) {
- return array('__halt_compiler');
- }
-
- return array(
- '__halt_compiler',
- 'abstract',
- 'and',
- 'array',
- 'as',
- 'break',
- 'callable',
- 'case',
- 'catch',
- 'class',
- 'clone',
- 'const',
- 'continue',
- 'declare',
- 'default',
- 'die',
- 'do',
- 'echo',
- 'else',
- 'elseif',
- 'empty',
- 'enddeclare',
- 'endfor',
- 'endforeach',
- 'endif',
- 'endswitch',
- 'endwhile',
- 'eval',
- 'exit',
- 'extends',
- 'final',
- 'finally',
- 'for',
- 'foreach',
- 'function',
- 'global',
- 'goto',
- 'if',
- 'implements',
- 'include',
- 'include_once',
- 'instanceof',
- 'insteadof',
- 'interface',
- 'isset',
- 'list',
- 'namespace',
- 'new',
- 'or',
- 'print',
- 'private',
- 'protected',
- 'public',
- 'require',
- 'require_once',
- 'return',
- 'static',
- 'switch',
- 'throw',
- 'trait',
- 'try',
- 'unset',
- 'use',
- 'var',
- 'while',
- 'xor',
- 'yield',
- );
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/MagicCallPatch.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/MagicCallPatch.php
deleted file mode 100644
index 9ff49cd7..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/MagicCallPatch.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\ClassPatch;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-use Prophecy\Doubler\Generator\Node\MethodNode;
-use Prophecy\PhpDocumentor\ClassAndInterfaceTagRetriever;
-use Prophecy\PhpDocumentor\MethodTagRetrieverInterface;
-
-/**
- * Discover Magical API using "@method" PHPDoc format.
- *
- * @author Thomas Tourlourat <thomas@tourlourat.com>
- * @author Kévin Dunglas <dunglas@gmail.com>
- * @author Théo FIDRY <theo.fidry@gmail.com>
- */
-class MagicCallPatch implements ClassPatchInterface
-{
- private $tagRetriever;
-
- public function __construct(MethodTagRetrieverInterface $tagRetriever = null)
- {
- $this->tagRetriever = null === $tagRetriever ? new ClassAndInterfaceTagRetriever() : $tagRetriever;
- }
-
- /**
- * Support any class
- *
- * @param ClassNode $node
- *
- * @return boolean
- */
- public function supports(ClassNode $node)
- {
- return true;
- }
-
- /**
- * Discover Magical API
- *
- * @param ClassNode $node
- */
- public function apply(ClassNode $node)
- {
- $types = array_filter($node->getInterfaces(), function ($interface) {
- return 0 !== strpos($interface, 'Prophecy\\');
- });
- $types[] = $node->getParentClass();
-
- foreach ($types as $type) {
- $reflectionClass = new \ReflectionClass($type);
-
- while ($reflectionClass) {
- $tagList = $this->tagRetriever->getTagList($reflectionClass);
-
- foreach ($tagList as $tag) {
- $methodName = $tag->getMethodName();
-
- if (empty($methodName)) {
- continue;
- }
-
- if (!$reflectionClass->hasMethod($methodName)) {
- $methodNode = new MethodNode($methodName);
- $methodNode->setStatic($tag->isStatic());
- $node->addMethod($methodNode);
- }
- }
-
- $reflectionClass = $reflectionClass->getParentClass();
- }
- }
- }
-
- /**
- * Returns patch priority, which determines when patch will be applied.
- *
- * @return integer Priority number (higher - earlier)
- */
- public function getPriority()
- {
- return 50;
- }
-}
-
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php
deleted file mode 100644
index 081dea82..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php
+++ /dev/null
@@ -1,104 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\ClassPatch;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-use Prophecy\Doubler\Generator\Node\MethodNode;
-use Prophecy\Doubler\Generator\Node\ArgumentNode;
-
-/**
- * Add Prophecy functionality to the double.
- * This is a core class patch for Prophecy.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ProphecySubjectPatch implements ClassPatchInterface
-{
- /**
- * Always returns true.
- *
- * @param ClassNode $node
- *
- * @return bool
- */
- public function supports(ClassNode $node)
- {
- return true;
- }
-
- /**
- * Apply Prophecy functionality to class node.
- *
- * @param ClassNode $node
- */
- public function apply(ClassNode $node)
- {
- $node->addInterface('Prophecy\Prophecy\ProphecySubjectInterface');
- $node->addProperty('objectProphecy', 'private');
-
- foreach ($node->getMethods() as $name => $method) {
- if ('__construct' === strtolower($name)) {
- continue;
- }
-
- if ($method->getReturnType() === 'void') {
- $method->setCode(
- '$this->getProphecy()->makeProphecyMethodCall(__FUNCTION__, func_get_args());'
- );
- } else {
- $method->setCode(
- 'return $this->getProphecy()->makeProphecyMethodCall(__FUNCTION__, func_get_args());'
- );
- }
- }
-
- $prophecySetter = new MethodNode('setProphecy');
- $prophecyArgument = new ArgumentNode('prophecy');
- $prophecyArgument->setTypeHint('Prophecy\Prophecy\ProphecyInterface');
- $prophecySetter->addArgument($prophecyArgument);
- $prophecySetter->setCode('$this->objectProphecy = $prophecy;');
-
- $prophecyGetter = new MethodNode('getProphecy');
- $prophecyGetter->setCode('return $this->objectProphecy;');
-
- if ($node->hasMethod('__call')) {
- $__call = $node->getMethod('__call');
- } else {
- $__call = new MethodNode('__call');
- $__call->addArgument(new ArgumentNode('name'));
- $__call->addArgument(new ArgumentNode('arguments'));
-
- $node->addMethod($__call, true);
- }
-
- $__call->setCode(<<<PHP
-throw new \Prophecy\Exception\Doubler\MethodNotFoundException(
- sprintf('Method `%s::%s()` not found.', get_class(\$this), func_get_arg(0)),
- \$this->getProphecy(), func_get_arg(0)
-);
-PHP
- );
-
- $node->addMethod($prophecySetter, true);
- $node->addMethod($prophecyGetter, true);
- }
-
- /**
- * Returns patch priority, which determines when patch will be applied.
- *
- * @return int Priority number (higher - earlier)
- */
- public function getPriority()
- {
- return 0;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php
deleted file mode 100644
index 9166aeef..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ReflectionClassNewInstancePatch.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\ClassPatch;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-
-/**
- * ReflectionClass::newInstance patch.
- * Makes first argument of newInstance optional, since it works but signature is misleading
- *
- * @author Florian Klein <florian.klein@free.fr>
- */
-class ReflectionClassNewInstancePatch implements ClassPatchInterface
-{
- /**
- * Supports ReflectionClass
- *
- * @param ClassNode $node
- *
- * @return bool
- */
- public function supports(ClassNode $node)
- {
- return 'ReflectionClass' === $node->getParentClass();
- }
-
- /**
- * Updates newInstance's first argument to make it optional
- *
- * @param ClassNode $node
- */
- public function apply(ClassNode $node)
- {
- foreach ($node->getMethod('newInstance')->getArguments() as $argument) {
- $argument->setDefault(null);
- }
- }
-
- /**
- * Returns patch priority, which determines when patch will be applied.
- *
- * @return int Priority number (higher = earlier)
- */
- public function getPriority()
- {
- return 50;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php
deleted file mode 100644
index ceee94a2..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\ClassPatch;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-use Prophecy\Doubler\Generator\Node\MethodNode;
-
-/**
- * SplFileInfo patch.
- * Makes SplFileInfo and derivative classes usable with Prophecy.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class SplFileInfoPatch implements ClassPatchInterface
-{
- /**
- * Supports everything that extends SplFileInfo.
- *
- * @param ClassNode $node
- *
- * @return bool
- */
- public function supports(ClassNode $node)
- {
- if (null === $node->getParentClass()) {
- return false;
- }
- return 'SplFileInfo' === $node->getParentClass()
- || is_subclass_of($node->getParentClass(), 'SplFileInfo')
- ;
- }
-
- /**
- * Updated constructor code to call parent one with dummy file argument.
- *
- * @param ClassNode $node
- */
- public function apply(ClassNode $node)
- {
- if ($node->hasMethod('__construct')) {
- $constructor = $node->getMethod('__construct');
- } else {
- $constructor = new MethodNode('__construct');
- $node->addMethod($constructor);
- }
-
- if ($this->nodeIsDirectoryIterator($node)) {
- $constructor->setCode('return parent::__construct("' . __DIR__ . '");');
-
- return;
- }
-
- if ($this->nodeIsSplFileObject($node)) {
- $filePath = str_replace('\\','\\\\',__FILE__);
- $constructor->setCode('return parent::__construct("' . $filePath .'");');
-
- return;
- }
-
- if ($this->nodeIsSymfonySplFileInfo($node)) {
- $filePath = str_replace('\\','\\\\',__FILE__);
- $constructor->setCode('return parent::__construct("' . $filePath .'", "", "");');
-
- return;
- }
-
- $constructor->useParentCode();
- }
-
- /**
- * Returns patch priority, which determines when patch will be applied.
- *
- * @return int Priority number (higher - earlier)
- */
- public function getPriority()
- {
- return 50;
- }
-
- /**
- * @param ClassNode $node
- * @return boolean
- */
- private function nodeIsDirectoryIterator(ClassNode $node)
- {
- $parent = $node->getParentClass();
-
- return 'DirectoryIterator' === $parent
- || is_subclass_of($parent, 'DirectoryIterator');
- }
-
- /**
- * @param ClassNode $node
- * @return boolean
- */
- private function nodeIsSplFileObject(ClassNode $node)
- {
- $parent = $node->getParentClass();
-
- return 'SplFileObject' === $parent
- || is_subclass_of($parent, 'SplFileObject');
- }
-
- /**
- * @param ClassNode $node
- * @return boolean
- */
- private function nodeIsSymfonySplFileInfo(ClassNode $node)
- {
- $parent = $node->getParentClass();
-
- return 'Symfony\\Component\\Finder\\SplFileInfo' === $parent;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ThrowablePatch.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ThrowablePatch.php
deleted file mode 100644
index b98e9432..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/ThrowablePatch.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-
-namespace Prophecy\Doubler\ClassPatch;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-use Prophecy\Exception\Doubler\ClassCreatorException;
-
-class ThrowablePatch implements ClassPatchInterface
-{
- /**
- * Checks if patch supports specific class node.
- *
- * @param ClassNode $node
- * @return bool
- */
- public function supports(ClassNode $node)
- {
- return $this->implementsAThrowableInterface($node) && $this->doesNotExtendAThrowableClass($node);
- }
-
- /**
- * @param ClassNode $node
- * @return bool
- */
- private function implementsAThrowableInterface(ClassNode $node)
- {
- foreach ($node->getInterfaces() as $type) {
- if (is_a($type, 'Throwable', true)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * @param ClassNode $node
- * @return bool
- */
- private function doesNotExtendAThrowableClass(ClassNode $node)
- {
- return !is_a($node->getParentClass(), 'Throwable', true);
- }
-
- /**
- * Applies patch to the specific class node.
- *
- * @param ClassNode $node
- *
- * @return void
- */
- public function apply(ClassNode $node)
- {
- $this->checkItCanBeDoubled($node);
- $this->setParentClassToException($node);
- }
-
- private function checkItCanBeDoubled(ClassNode $node)
- {
- $className = $node->getParentClass();
- if ($className !== 'stdClass') {
- throw new ClassCreatorException(
- sprintf(
- 'Cannot double concrete class %s as well as implement Traversable',
- $className
- ),
- $node
- );
- }
- }
-
- private function setParentClassToException(ClassNode $node)
- {
- $node->setParentClass('Exception');
-
- $node->removeMethod('getMessage');
- $node->removeMethod('getCode');
- $node->removeMethod('getFile');
- $node->removeMethod('getLine');
- $node->removeMethod('getTrace');
- $node->removeMethod('getPrevious');
- $node->removeMethod('getNext');
- $node->removeMethod('getTraceAsString');
- }
-
- /**
- * Returns patch priority, which determines when patch will be applied.
- *
- * @return int Priority number (higher - earlier)
- */
- public function getPriority()
- {
- return 100;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/TraversablePatch.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/TraversablePatch.php
deleted file mode 100644
index eea02028..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/TraversablePatch.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\ClassPatch;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-use Prophecy\Doubler\Generator\Node\MethodNode;
-
-/**
- * Traversable interface patch.
- * Forces classes that implement interfaces, that extend Traversable to also implement Iterator.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class TraversablePatch implements ClassPatchInterface
-{
- /**
- * Supports nodetree, that implement Traversable, but not Iterator or IteratorAggregate.
- *
- * @param ClassNode $node
- *
- * @return bool
- */
- public function supports(ClassNode $node)
- {
- if (in_array('Iterator', $node->getInterfaces())) {
- return false;
- }
- if (in_array('IteratorAggregate', $node->getInterfaces())) {
- return false;
- }
-
- foreach ($node->getInterfaces() as $interface) {
- if ('Traversable' !== $interface && !is_subclass_of($interface, 'Traversable')) {
- continue;
- }
- if ('Iterator' === $interface || is_subclass_of($interface, 'Iterator')) {
- continue;
- }
- if ('IteratorAggregate' === $interface || is_subclass_of($interface, 'IteratorAggregate')) {
- continue;
- }
-
- return true;
- }
-
- return false;
- }
-
- /**
- * Forces class to implement Iterator interface.
- *
- * @param ClassNode $node
- */
- public function apply(ClassNode $node)
- {
- $node->addInterface('Iterator');
-
- $node->addMethod(new MethodNode('current'));
- $node->addMethod(new MethodNode('key'));
- $node->addMethod(new MethodNode('next'));
- $node->addMethod(new MethodNode('rewind'));
- $node->addMethod(new MethodNode('valid'));
- }
-
- /**
- * Returns patch priority, which determines when patch will be applied.
- *
- * @return int Priority number (higher - earlier)
- */
- public function getPriority()
- {
- return 100;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/DoubleInterface.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/DoubleInterface.php
deleted file mode 100644
index 699be3a2..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/DoubleInterface.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler;
-
-/**
- * Core double interface.
- * All doubled classes will implement this one.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface DoubleInterface
-{
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Doubler.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Doubler.php
deleted file mode 100644
index a378ae27..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Doubler.php
+++ /dev/null
@@ -1,146 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler;
-
-use Doctrine\Instantiator\Instantiator;
-use Prophecy\Doubler\ClassPatch\ClassPatchInterface;
-use Prophecy\Doubler\Generator\ClassMirror;
-use Prophecy\Doubler\Generator\ClassCreator;
-use Prophecy\Exception\InvalidArgumentException;
-use ReflectionClass;
-
-/**
- * Cached class doubler.
- * Prevents mirroring/creation of the same structure twice.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class Doubler
-{
- private $mirror;
- private $creator;
- private $namer;
-
- /**
- * @var ClassPatchInterface[]
- */
- private $patches = array();
-
- /**
- * @var \Doctrine\Instantiator\Instantiator
- */
- private $instantiator;
-
- /**
- * Initializes doubler.
- *
- * @param ClassMirror $mirror
- * @param ClassCreator $creator
- * @param NameGenerator $namer
- */
- public function __construct(ClassMirror $mirror = null, ClassCreator $creator = null,
- NameGenerator $namer = null)
- {
- $this->mirror = $mirror ?: new ClassMirror;
- $this->creator = $creator ?: new ClassCreator;
- $this->namer = $namer ?: new NameGenerator;
- }
-
- /**
- * Returns list of registered class patches.
- *
- * @return ClassPatchInterface[]
- */
- public function getClassPatches()
- {
- return $this->patches;
- }
-
- /**
- * Registers new class patch.
- *
- * @param ClassPatchInterface $patch
- */
- public function registerClassPatch(ClassPatchInterface $patch)
- {
- $this->patches[] = $patch;
-
- @usort($this->patches, function (ClassPatchInterface $patch1, ClassPatchInterface $patch2) {
- return $patch2->getPriority() - $patch1->getPriority();
- });
- }
-
- /**
- * Creates double from specific class or/and list of interfaces.
- *
- * @param ReflectionClass $class
- * @param ReflectionClass[] $interfaces Array of ReflectionClass instances
- * @param array $args Constructor arguments
- *
- * @return DoubleInterface
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function double(ReflectionClass $class = null, array $interfaces, array $args = null)
- {
- foreach ($interfaces as $interface) {
- if (!$interface instanceof ReflectionClass) {
- throw new InvalidArgumentException(sprintf(
- "[ReflectionClass \$interface1 [, ReflectionClass \$interface2]] array expected as\n".
- "a second argument to `Doubler::double(...)`, but got %s.",
- is_object($interface) ? get_class($interface).' class' : gettype($interface)
- ));
- }
- }
-
- $classname = $this->createDoubleClass($class, $interfaces);
- $reflection = new ReflectionClass($classname);
-
- if (null !== $args) {
- return $reflection->newInstanceArgs($args);
- }
- if ((null === $constructor = $reflection->getConstructor())
- || ($constructor->isPublic() && !$constructor->isFinal())) {
- return $reflection->newInstance();
- }
-
- if (!$this->instantiator) {
- $this->instantiator = new Instantiator();
- }
-
- return $this->instantiator->instantiate($classname);
- }
-
- /**
- * Creates double class and returns its FQN.
- *
- * @param ReflectionClass $class
- * @param ReflectionClass[] $interfaces
- *
- * @return string
- */
- protected function createDoubleClass(ReflectionClass $class = null, array $interfaces)
- {
- $name = $this->namer->name($class, $interfaces);
- $node = $this->mirror->reflect($class, $interfaces);
-
- foreach ($this->patches as $patch) {
- if ($patch->supports($node)) {
- $patch->apply($node);
- }
- }
-
- $this->creator->create($name, $node);
-
- return $name;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCodeGenerator.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCodeGenerator.php
deleted file mode 100644
index 891faa8f..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCodeGenerator.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\Generator;
-
-/**
- * Class code creator.
- * Generates PHP code for specific class node tree.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ClassCodeGenerator
-{
- /**
- * @var TypeHintReference
- */
- private $typeHintReference;
-
- public function __construct(TypeHintReference $typeHintReference = null)
- {
- $this->typeHintReference = $typeHintReference ?: new TypeHintReference();
- }
-
- /**
- * Generates PHP code for class node.
- *
- * @param string $classname
- * @param Node\ClassNode $class
- *
- * @return string
- */
- public function generate($classname, Node\ClassNode $class)
- {
- $parts = explode('\\', $classname);
- $classname = array_pop($parts);
- $namespace = implode('\\', $parts);
-
- $code = sprintf("class %s extends \%s implements %s {\n",
- $classname, $class->getParentClass(), implode(', ',
- array_map(function ($interface) {return '\\'.$interface;}, $class->getInterfaces())
- )
- );
-
- foreach ($class->getProperties() as $name => $visibility) {
- $code .= sprintf("%s \$%s;\n", $visibility, $name);
- }
- $code .= "\n";
-
- foreach ($class->getMethods() as $method) {
- $code .= $this->generateMethod($method)."\n";
- }
- $code .= "\n}";
-
- return sprintf("namespace %s {\n%s\n}", $namespace, $code);
- }
-
- private function generateMethod(Node\MethodNode $method)
- {
- $php = sprintf("%s %s function %s%s(%s)%s {\n",
- $method->getVisibility(),
- $method->isStatic() ? 'static' : '',
- $method->returnsReference() ? '&':'',
- $method->getName(),
- implode(', ', $this->generateArguments($method->getArguments())),
- $this->getReturnType($method)
- );
- $php .= $method->getCode()."\n";
-
- return $php.'}';
- }
-
- /**
- * @return string
- */
- private function getReturnType(Node\MethodNode $method)
- {
- if (version_compare(PHP_VERSION, '7.1', '>=')) {
- if ($method->hasReturnType()) {
- return $method->hasNullableReturnType()
- ? sprintf(': ?%s', $method->getReturnType())
- : sprintf(': %s', $method->getReturnType());
- }
- }
-
- if (version_compare(PHP_VERSION, '7.0', '>=')) {
- return $method->hasReturnType() && $method->getReturnType() !== 'void'
- ? sprintf(': %s', $method->getReturnType())
- : '';
- }
-
- return '';
- }
-
- private function generateArguments(array $arguments)
- {
- $typeHintReference = $this->typeHintReference;
- return array_map(function (Node\ArgumentNode $argument) use ($typeHintReference) {
- $php = '';
-
- if (version_compare(PHP_VERSION, '7.1', '>=')) {
- $php .= $argument->isNullable() ? '?' : '';
- }
-
- if ($hint = $argument->getTypeHint()) {
- $php .= $typeHintReference->isBuiltInParamTypeHint($hint) ? $hint : '\\'.$hint;
- }
-
- $php .= ' '.($argument->isPassedByReference() ? '&' : '');
-
- $php .= $argument->isVariadic() ? '...' : '';
-
- $php .= '$'.$argument->getName();
-
- if ($argument->isOptional() && !$argument->isVariadic()) {
- $php .= ' = '.var_export($argument->getDefault(), true);
- }
-
- return $php;
- }, $arguments);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php
deleted file mode 100644
index 882a4a4b..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\Generator;
-
-use Prophecy\Exception\Doubler\ClassCreatorException;
-
-/**
- * Class creator.
- * Creates specific class in current environment.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ClassCreator
-{
- private $generator;
-
- /**
- * Initializes creator.
- *
- * @param ClassCodeGenerator $generator
- */
- public function __construct(ClassCodeGenerator $generator = null)
- {
- $this->generator = $generator ?: new ClassCodeGenerator;
- }
-
- /**
- * Creates class.
- *
- * @param string $classname
- * @param Node\ClassNode $class
- *
- * @return mixed
- *
- * @throws \Prophecy\Exception\Doubler\ClassCreatorException
- */
- public function create($classname, Node\ClassNode $class)
- {
- $code = $this->generator->generate($classname, $class);
- $return = eval($code);
-
- if (!class_exists($classname, false)) {
- if (count($class->getInterfaces())) {
- throw new ClassCreatorException(sprintf(
- 'Could not double `%s` and implement interfaces: [%s].',
- $class->getParentClass(), implode(', ', $class->getInterfaces())
- ), $class);
- }
-
- throw new ClassCreatorException(
- sprintf('Could not double `%s`.', $class->getParentClass()),
- $class
- );
- }
-
- return $return;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassMirror.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassMirror.php
deleted file mode 100644
index c5f9a5c7..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassMirror.php
+++ /dev/null
@@ -1,260 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\Generator;
-
-use Prophecy\Exception\InvalidArgumentException;
-use Prophecy\Exception\Doubler\ClassMirrorException;
-use ReflectionClass;
-use ReflectionMethod;
-use ReflectionParameter;
-
-/**
- * Class mirror.
- * Core doubler class. Mirrors specific class and/or interfaces into class node tree.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ClassMirror
-{
- private static $reflectableMethods = array(
- '__construct',
- '__destruct',
- '__sleep',
- '__wakeup',
- '__toString',
- '__call',
- '__invoke'
- );
-
- /**
- * Reflects provided arguments into class node.
- *
- * @param ReflectionClass $class
- * @param ReflectionClass[] $interfaces
- *
- * @return Node\ClassNode
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function reflect(ReflectionClass $class = null, array $interfaces)
- {
- $node = new Node\ClassNode;
-
- if (null !== $class) {
- if (true === $class->isInterface()) {
- throw new InvalidArgumentException(sprintf(
- "Could not reflect %s as a class, because it\n".
- "is interface - use the second argument instead.",
- $class->getName()
- ));
- }
-
- $this->reflectClassToNode($class, $node);
- }
-
- foreach ($interfaces as $interface) {
- if (!$interface instanceof ReflectionClass) {
- throw new InvalidArgumentException(sprintf(
- "[ReflectionClass \$interface1 [, ReflectionClass \$interface2]] array expected as\n".
- "a second argument to `ClassMirror::reflect(...)`, but got %s.",
- is_object($interface) ? get_class($interface).' class' : gettype($interface)
- ));
- }
- if (false === $interface->isInterface()) {
- throw new InvalidArgumentException(sprintf(
- "Could not reflect %s as an interface, because it\n".
- "is class - use the first argument instead.",
- $interface->getName()
- ));
- }
-
- $this->reflectInterfaceToNode($interface, $node);
- }
-
- $node->addInterface('Prophecy\Doubler\Generator\ReflectionInterface');
-
- return $node;
- }
-
- private function reflectClassToNode(ReflectionClass $class, Node\ClassNode $node)
- {
- if (true === $class->isFinal()) {
- throw new ClassMirrorException(sprintf(
- 'Could not reflect class %s as it is marked final.', $class->getName()
- ), $class);
- }
-
- $node->setParentClass($class->getName());
-
- foreach ($class->getMethods(ReflectionMethod::IS_ABSTRACT) as $method) {
- if (false === $method->isProtected()) {
- continue;
- }
-
- $this->reflectMethodToNode($method, $node);
- }
-
- foreach ($class->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
- if (0 === strpos($method->getName(), '_')
- && !in_array($method->getName(), self::$reflectableMethods)) {
- continue;
- }
-
- if (true === $method->isFinal()) {
- $node->addUnextendableMethod($method->getName());
- continue;
- }
-
- $this->reflectMethodToNode($method, $node);
- }
- }
-
- private function reflectInterfaceToNode(ReflectionClass $interface, Node\ClassNode $node)
- {
- $node->addInterface($interface->getName());
-
- foreach ($interface->getMethods() as $method) {
- $this->reflectMethodToNode($method, $node);
- }
- }
-
- private function reflectMethodToNode(ReflectionMethod $method, Node\ClassNode $classNode)
- {
- $node = new Node\MethodNode($method->getName());
-
- if (true === $method->isProtected()) {
- $node->setVisibility('protected');
- }
-
- if (true === $method->isStatic()) {
- $node->setStatic();
- }
-
- if (true === $method->returnsReference()) {
- $node->setReturnsReference();
- }
-
- if (version_compare(PHP_VERSION, '7.0', '>=') && $method->hasReturnType()) {
- $returnType = (string) $method->getReturnType();
- $returnTypeLower = strtolower($returnType);
-
- if ('self' === $returnTypeLower) {
- $returnType = $method->getDeclaringClass()->getName();
- }
- if ('parent' === $returnTypeLower) {
- $returnType = $method->getDeclaringClass()->getParentClass()->getName();
- }
-
- $node->setReturnType($returnType);
-
- if (version_compare(PHP_VERSION, '7.1', '>=') && $method->getReturnType()->allowsNull()) {
- $node->setNullableReturnType(true);
- }
- }
-
- if (is_array($params = $method->getParameters()) && count($params)) {
- foreach ($params as $param) {
- $this->reflectArgumentToNode($param, $node);
- }
- }
-
- $classNode->addMethod($node);
- }
-
- private function reflectArgumentToNode(ReflectionParameter $parameter, Node\MethodNode $methodNode)
- {
- $name = $parameter->getName() == '...' ? '__dot_dot_dot__' : $parameter->getName();
- $node = new Node\ArgumentNode($name);
-
- $node->setTypeHint($this->getTypeHint($parameter));
-
- if ($this->isVariadic($parameter)) {
- $node->setAsVariadic();
- }
-
- if ($this->hasDefaultValue($parameter)) {
- $node->setDefault($this->getDefaultValue($parameter));
- }
-
- if ($parameter->isPassedByReference()) {
- $node->setAsPassedByReference();
- }
-
- $node->setAsNullable($this->isNullable($parameter));
-
- $methodNode->addArgument($node);
- }
-
- private function hasDefaultValue(ReflectionParameter $parameter)
- {
- if ($this->isVariadic($parameter)) {
- return false;
- }
-
- if ($parameter->isDefaultValueAvailable()) {
- return true;
- }
-
- return $parameter->isOptional() || $this->isNullable($parameter);
- }
-
- private function getDefaultValue(ReflectionParameter $parameter)
- {
- if (!$parameter->isDefaultValueAvailable()) {
- return null;
- }
-
- return $parameter->getDefaultValue();
- }
-
- private function getTypeHint(ReflectionParameter $parameter)
- {
- if (null !== $className = $this->getParameterClassName($parameter)) {
- return $className;
- }
-
- if (true === $parameter->isArray()) {
- return 'array';
- }
-
- if (version_compare(PHP_VERSION, '5.4', '>=') && true === $parameter->isCallable()) {
- return 'callable';
- }
-
- if (version_compare(PHP_VERSION, '7.0', '>=') && true === $parameter->hasType()) {
- return (string) $parameter->getType();
- }
-
- return null;
- }
-
- private function isVariadic(ReflectionParameter $parameter)
- {
- return PHP_VERSION_ID >= 50600 && $parameter->isVariadic();
- }
-
- private function isNullable(ReflectionParameter $parameter)
- {
- return $parameter->allowsNull() && null !== $this->getTypeHint($parameter);
- }
-
- private function getParameterClassName(ReflectionParameter $parameter)
- {
- try {
- return $parameter->getClass() ? $parameter->getClass()->getName() : null;
- } catch (\ReflectionException $e) {
- preg_match('/\[\s\<\w+?>\s([\w,\\\]+)/s', $parameter, $matches);
-
- return isset($matches[1]) ? $matches[1] : null;
- }
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentNode.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentNode.php
deleted file mode 100644
index dd29b68f..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentNode.php
+++ /dev/null
@@ -1,102 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\Generator\Node;
-
-/**
- * Argument node.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ArgumentNode
-{
- private $name;
- private $typeHint;
- private $default;
- private $optional = false;
- private $byReference = false;
- private $isVariadic = false;
- private $isNullable = false;
-
- /**
- * @param string $name
- */
- public function __construct($name)
- {
- $this->name = $name;
- }
-
- public function getName()
- {
- return $this->name;
- }
-
- public function getTypeHint()
- {
- return $this->typeHint;
- }
-
- public function setTypeHint($typeHint = null)
- {
- $this->typeHint = $typeHint;
- }
-
- public function hasDefault()
- {
- return $this->isOptional() && !$this->isVariadic();
- }
-
- public function getDefault()
- {
- return $this->default;
- }
-
- public function setDefault($default = null)
- {
- $this->optional = true;
- $this->default = $default;
- }
-
- public function isOptional()
- {
- return $this->optional;
- }
-
- public function setAsPassedByReference($byReference = true)
- {
- $this->byReference = $byReference;
- }
-
- public function isPassedByReference()
- {
- return $this->byReference;
- }
-
- public function setAsVariadic($isVariadic = true)
- {
- $this->isVariadic = $isVariadic;
- }
-
- public function isVariadic()
- {
- return $this->isVariadic;
- }
-
- public function isNullable()
- {
- return $this->isNullable;
- }
-
- public function setAsNullable($isNullable = true)
- {
- $this->isNullable = $isNullable;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php
deleted file mode 100644
index f7bd2857..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ClassNode.php
+++ /dev/null
@@ -1,169 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\Generator\Node;
-
-use Prophecy\Exception\Doubler\MethodNotExtendableException;
-use Prophecy\Exception\InvalidArgumentException;
-
-/**
- * Class node.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ClassNode
-{
- private $parentClass = 'stdClass';
- private $interfaces = array();
- private $properties = array();
- private $unextendableMethods = array();
-
- /**
- * @var MethodNode[]
- */
- private $methods = array();
-
- public function getParentClass()
- {
- return $this->parentClass;
- }
-
- /**
- * @param string $class
- */
- public function setParentClass($class)
- {
- $this->parentClass = $class ?: 'stdClass';
- }
-
- /**
- * @return string[]
- */
- public function getInterfaces()
- {
- return $this->interfaces;
- }
-
- /**
- * @param string $interface
- */
- public function addInterface($interface)
- {
- if ($this->hasInterface($interface)) {
- return;
- }
-
- array_unshift($this->interfaces, $interface);
- }
-
- /**
- * @param string $interface
- *
- * @return bool
- */
- public function hasInterface($interface)
- {
- return in_array($interface, $this->interfaces);
- }
-
- public function getProperties()
- {
- return $this->properties;
- }
-
- public function addProperty($name, $visibility = 'public')
- {
- $visibility = strtolower($visibility);
-
- if (!in_array($visibility, array('public', 'private', 'protected'))) {
- throw new InvalidArgumentException(sprintf(
- '`%s` property visibility is not supported.', $visibility
- ));
- }
-
- $this->properties[$name] = $visibility;
- }
-
- /**
- * @return MethodNode[]
- */
- public function getMethods()
- {
- return $this->methods;
- }
-
- public function addMethod(MethodNode $method, $force = false)
- {
- if (!$this->isExtendable($method->getName())){
- $message = sprintf(
- 'Method `%s` is not extendable, so can not be added.', $method->getName()
- );
- throw new MethodNotExtendableException($message, $this->getParentClass(), $method->getName());
- }
-
- if ($force || !isset($this->methods[$method->getName()])) {
- $this->methods[$method->getName()] = $method;
- }
- }
-
- public function removeMethod($name)
- {
- unset($this->methods[$name]);
- }
-
- /**
- * @param string $name
- *
- * @return MethodNode|null
- */
- public function getMethod($name)
- {
- return $this->hasMethod($name) ? $this->methods[$name] : null;
- }
-
- /**
- * @param string $name
- *
- * @return bool
- */
- public function hasMethod($name)
- {
- return isset($this->methods[$name]);
- }
-
- /**
- * @return string[]
- */
- public function getUnextendableMethods()
- {
- return $this->unextendableMethods;
- }
-
- /**
- * @param string $unextendableMethod
- */
- public function addUnextendableMethod($unextendableMethod)
- {
- if (!$this->isExtendable($unextendableMethod)){
- return;
- }
- $this->unextendableMethods[] = $unextendableMethod;
- }
-
- /**
- * @param string $method
- * @return bool
- */
- public function isExtendable($method)
- {
- return !in_array($method, $this->unextendableMethods);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php
deleted file mode 100644
index c74b4831..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php
+++ /dev/null
@@ -1,198 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\Generator\Node;
-
-use Prophecy\Doubler\Generator\TypeHintReference;
-use Prophecy\Exception\InvalidArgumentException;
-
-/**
- * Method node.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class MethodNode
-{
- private $name;
- private $code;
- private $visibility = 'public';
- private $static = false;
- private $returnsReference = false;
- private $returnType;
- private $nullableReturnType = false;
-
- /**
- * @var ArgumentNode[]
- */
- private $arguments = array();
-
- /**
- * @var TypeHintReference
- */
- private $typeHintReference;
-
- /**
- * @param string $name
- * @param string $code
- */
- public function __construct($name, $code = null, TypeHintReference $typeHintReference = null)
- {
- $this->name = $name;
- $this->code = $code;
- $this->typeHintReference = $typeHintReference ?: new TypeHintReference();
- }
-
- public function getVisibility()
- {
- return $this->visibility;
- }
-
- /**
- * @param string $visibility
- */
- public function setVisibility($visibility)
- {
- $visibility = strtolower($visibility);
-
- if (!in_array($visibility, array('public', 'private', 'protected'))) {
- throw new InvalidArgumentException(sprintf(
- '`%s` method visibility is not supported.', $visibility
- ));
- }
-
- $this->visibility = $visibility;
- }
-
- public function isStatic()
- {
- return $this->static;
- }
-
- public function setStatic($static = true)
- {
- $this->static = (bool) $static;
- }
-
- public function returnsReference()
- {
- return $this->returnsReference;
- }
-
- public function setReturnsReference()
- {
- $this->returnsReference = true;
- }
-
- public function getName()
- {
- return $this->name;
- }
-
- public function addArgument(ArgumentNode $argument)
- {
- $this->arguments[] = $argument;
- }
-
- /**
- * @return ArgumentNode[]
- */
- public function getArguments()
- {
- return $this->arguments;
- }
-
- public function hasReturnType()
- {
- return null !== $this->returnType;
- }
-
- /**
- * @param string $type
- */
- public function setReturnType($type = null)
- {
- if ($type === '' || $type === null) {
- $this->returnType = null;
- return;
- }
- $typeMap = array(
- 'double' => 'float',
- 'real' => 'float',
- 'boolean' => 'bool',
- 'integer' => 'int',
- );
- if (isset($typeMap[$type])) {
- $type = $typeMap[$type];
- }
- $this->returnType = $this->typeHintReference->isBuiltInReturnTypeHint($type) ?
- $type :
- '\\' . ltrim($type, '\\');
- }
-
- public function getReturnType()
- {
- return $this->returnType;
- }
-
- /**
- * @param bool $bool
- */
- public function setNullableReturnType($bool = true)
- {
- $this->nullableReturnType = (bool) $bool;
- }
-
- /**
- * @return bool
- */
- public function hasNullableReturnType()
- {
- return $this->nullableReturnType;
- }
-
- /**
- * @param string $code
- */
- public function setCode($code)
- {
- $this->code = $code;
- }
-
- public function getCode()
- {
- if ($this->returnsReference)
- {
- return "throw new \Prophecy\Exception\Doubler\ReturnByReferenceException('Returning by reference not supported', get_class(\$this), '{$this->name}');";
- }
-
- return (string) $this->code;
- }
-
- public function useParentCode()
- {
- $this->code = sprintf(
- 'return parent::%s(%s);', $this->getName(), implode(', ',
- array_map(array($this, 'generateArgument'), $this->arguments)
- )
- );
- }
-
- private function generateArgument(ArgumentNode $arg)
- {
- $argument = '$'.$arg->getName();
-
- if ($arg->isVariadic()) {
- $argument = '...'.$argument;
- }
-
- return $argument;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ReflectionInterface.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ReflectionInterface.php
deleted file mode 100644
index d720b151..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ReflectionInterface.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler\Generator;
-
-/**
- * Reflection interface.
- * All reflected classes implement this interface.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface ReflectionInterface
-{
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/TypeHintReference.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/TypeHintReference.php
deleted file mode 100644
index ce952029..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/TypeHintReference.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-namespace Prophecy\Doubler\Generator;
-
-/**
- * Tells whether a keyword refers to a class or to a built-in type for the
- * current version of php
- */
-final class TypeHintReference
-{
- public function isBuiltInParamTypeHint($type)
- {
- switch ($type) {
- case 'self':
- case 'array':
- return true;
-
- case 'callable':
- return PHP_VERSION_ID >= 50400;
-
- case 'bool':
- case 'float':
- case 'int':
- case 'string':
- return PHP_VERSION_ID >= 70000;
-
- case 'iterable':
- return PHP_VERSION_ID >= 70100;
-
- case 'object':
- return PHP_VERSION_ID >= 70200;
-
- default:
- return false;
- }
- }
-
- public function isBuiltInReturnTypeHint($type)
- {
- if ($type === 'void') {
- return PHP_VERSION_ID >= 70100;
- }
-
- return $this->isBuiltInParamTypeHint($type);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/LazyDouble.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/LazyDouble.php
deleted file mode 100644
index 8a99c4ce..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/LazyDouble.php
+++ /dev/null
@@ -1,127 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler;
-
-use Prophecy\Exception\Doubler\DoubleException;
-use Prophecy\Exception\Doubler\ClassNotFoundException;
-use Prophecy\Exception\Doubler\InterfaceNotFoundException;
-use ReflectionClass;
-
-/**
- * Lazy double.
- * Gives simple interface to describe double before creating it.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class LazyDouble
-{
- private $doubler;
- private $class;
- private $interfaces = array();
- private $arguments = null;
- private $double;
-
- /**
- * Initializes lazy double.
- *
- * @param Doubler $doubler
- */
- public function __construct(Doubler $doubler)
- {
- $this->doubler = $doubler;
- }
-
- /**
- * Tells doubler to use specific class as parent one for double.
- *
- * @param string|ReflectionClass $class
- *
- * @throws \Prophecy\Exception\Doubler\ClassNotFoundException
- * @throws \Prophecy\Exception\Doubler\DoubleException
- */
- public function setParentClass($class)
- {
- if (null !== $this->double) {
- throw new DoubleException('Can not extend class with already instantiated double.');
- }
-
- if (!$class instanceof ReflectionClass) {
- if (!class_exists($class)) {
- throw new ClassNotFoundException(sprintf('Class %s not found.', $class), $class);
- }
-
- $class = new ReflectionClass($class);
- }
-
- $this->class = $class;
- }
-
- /**
- * Tells doubler to implement specific interface with double.
- *
- * @param string|ReflectionClass $interface
- *
- * @throws \Prophecy\Exception\Doubler\InterfaceNotFoundException
- * @throws \Prophecy\Exception\Doubler\DoubleException
- */
- public function addInterface($interface)
- {
- if (null !== $this->double) {
- throw new DoubleException(
- 'Can not implement interface with already instantiated double.'
- );
- }
-
- if (!$interface instanceof ReflectionClass) {
- if (!interface_exists($interface)) {
- throw new InterfaceNotFoundException(
- sprintf('Interface %s not found.', $interface),
- $interface
- );
- }
-
- $interface = new ReflectionClass($interface);
- }
-
- $this->interfaces[] = $interface;
- }
-
- /**
- * Sets constructor arguments.
- *
- * @param array $arguments
- */
- public function setArguments(array $arguments = null)
- {
- $this->arguments = $arguments;
- }
-
- /**
- * Creates double instance or returns already created one.
- *
- * @return DoubleInterface
- */
- public function getInstance()
- {
- if (null === $this->double) {
- if (null !== $this->arguments) {
- return $this->double = $this->doubler->double(
- $this->class, $this->interfaces, $this->arguments
- );
- }
-
- $this->double = $this->doubler->double($this->class, $this->interfaces);
- }
-
- return $this->double;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/NameGenerator.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/NameGenerator.php
deleted file mode 100644
index d67ec6a4..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Doubler/NameGenerator.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Doubler;
-
-use ReflectionClass;
-
-/**
- * Name generator.
- * Generates classname for double.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class NameGenerator
-{
- private static $counter = 1;
-
- /**
- * Generates name.
- *
- * @param ReflectionClass $class
- * @param ReflectionClass[] $interfaces
- *
- * @return string
- */
- public function name(ReflectionClass $class = null, array $interfaces)
- {
- $parts = array();
-
- if (null !== $class) {
- $parts[] = $class->getName();
- } else {
- foreach ($interfaces as $interface) {
- $parts[] = $interface->getShortName();
- }
- }
-
- if (!count($parts)) {
- $parts[] = 'stdClass';
- }
-
- return sprintf('Double\%s\P%d', implode('\\', $parts), self::$counter++);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Call/UnexpectedCallException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Call/UnexpectedCallException.php
deleted file mode 100644
index 48ed2254..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Call/UnexpectedCallException.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Call;
-
-use Prophecy\Exception\Prophecy\ObjectProphecyException;
-use Prophecy\Prophecy\ObjectProphecy;
-
-class UnexpectedCallException extends ObjectProphecyException
-{
- private $methodName;
- private $arguments;
-
- public function __construct($message, ObjectProphecy $objectProphecy,
- $methodName, array $arguments)
- {
- parent::__construct($message, $objectProphecy);
-
- $this->methodName = $methodName;
- $this->arguments = $arguments;
- }
-
- public function getMethodName()
- {
- return $this->methodName;
- }
-
- public function getArguments()
- {
- return $this->arguments;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassCreatorException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassCreatorException.php
deleted file mode 100644
index 822918a2..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassCreatorException.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Doubler;
-
-use Prophecy\Doubler\Generator\Node\ClassNode;
-
-class ClassCreatorException extends \RuntimeException implements DoublerException
-{
- private $node;
-
- public function __construct($message, ClassNode $node)
- {
- parent::__construct($message);
-
- $this->node = $node;
- }
-
- public function getClassNode()
- {
- return $this->node;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassMirrorException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassMirrorException.php
deleted file mode 100644
index 8fc53b8b..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassMirrorException.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Doubler;
-
-use ReflectionClass;
-
-class ClassMirrorException extends \RuntimeException implements DoublerException
-{
- private $class;
-
- public function __construct($message, ReflectionClass $class)
- {
- parent::__construct($message);
-
- $this->class = $class;
- }
-
- public function getReflectedClass()
- {
- return $this->class;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassNotFoundException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassNotFoundException.php
deleted file mode 100644
index 5bc826d7..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ClassNotFoundException.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Doubler;
-
-class ClassNotFoundException extends DoubleException
-{
- private $classname;
-
- /**
- * @param string $message
- * @param string $classname
- */
- public function __construct($message, $classname)
- {
- parent::__construct($message);
-
- $this->classname = $classname;
- }
-
- public function getClassname()
- {
- return $this->classname;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoubleException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoubleException.php
deleted file mode 100644
index 6642a58f..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoubleException.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Doubler;
-
-use RuntimeException;
-
-class DoubleException extends RuntimeException implements DoublerException
-{
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoublerException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoublerException.php
deleted file mode 100644
index 9d6be179..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/DoublerException.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Doubler;
-
-use Prophecy\Exception\Exception;
-
-interface DoublerException extends Exception
-{
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/InterfaceNotFoundException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/InterfaceNotFoundException.php
deleted file mode 100644
index e344dead..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/InterfaceNotFoundException.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Doubler;
-
-class InterfaceNotFoundException extends ClassNotFoundException
-{
- public function getInterfaceName()
- {
- return $this->getClassname();
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php
deleted file mode 100644
index 56f47b11..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotExtendableException.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
- namespace Prophecy\Exception\Doubler;
-
- class MethodNotExtendableException extends DoubleException
- {
- private $methodName;
-
- private $className;
-
- /**
- * @param string $message
- * @param string $className
- * @param string $methodName
- */
- public function __construct($message, $className, $methodName)
- {
- parent::__construct($message);
-
- $this->methodName = $methodName;
- $this->className = $className;
- }
-
-
- /**
- * @return string
- */
- public function getMethodName()
- {
- return $this->methodName;
- }
-
- /**
- * @return string
- */
- public function getClassName()
- {
- return $this->className;
- }
-
- }
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotFoundException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotFoundException.php
deleted file mode 100644
index a5383494..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/MethodNotFoundException.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Doubler;
-
-class MethodNotFoundException extends DoubleException
-{
- /**
- * @var string|object
- */
- private $classname;
-
- /**
- * @var string
- */
- private $methodName;
-
- /**
- * @var array
- */
- private $arguments;
-
- /**
- * @param string $message
- * @param string|object $classname
- * @param string $methodName
- * @param null|Argument\ArgumentsWildcard|array $arguments
- */
- public function __construct($message, $classname, $methodName, $arguments = null)
- {
- parent::__construct($message);
-
- $this->classname = $classname;
- $this->methodName = $methodName;
- $this->arguments = $arguments;
- }
-
- public function getClassname()
- {
- return $this->classname;
- }
-
- public function getMethodName()
- {
- return $this->methodName;
- }
-
- public function getArguments()
- {
- return $this->arguments;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ReturnByReferenceException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ReturnByReferenceException.php
deleted file mode 100644
index 63030497..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Doubler/ReturnByReferenceException.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Doubler;
-
-class ReturnByReferenceException extends DoubleException
-{
- private $classname;
- private $methodName;
-
- /**
- * @param string $message
- * @param string $classname
- * @param string $methodName
- */
- public function __construct($message, $classname, $methodName)
- {
- parent::__construct($message);
-
- $this->classname = $classname;
- $this->methodName = $methodName;
- }
-
- public function getClassname()
- {
- return $this->classname;
- }
-
- public function getMethodName()
- {
- return $this->methodName;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Exception.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Exception.php
deleted file mode 100644
index ac9fe4dd..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Exception.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception;
-
-/**
- * Core Prophecy exception interface.
- * All Prophecy exceptions implement it.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface Exception
-{
- /**
- * @return string
- */
- public function getMessage();
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/InvalidArgumentException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/InvalidArgumentException.php
deleted file mode 100644
index bc91c690..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/InvalidArgumentException.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception;
-
-class InvalidArgumentException extends \InvalidArgumentException implements Exception
-{
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php
deleted file mode 100644
index a00dfb03..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Prediction;
-
-use Prophecy\Prophecy\ObjectProphecy;
-
-class AggregateException extends \RuntimeException implements PredictionException
-{
- private $exceptions = array();
- private $objectProphecy;
-
- public function append(PredictionException $exception)
- {
- $message = $exception->getMessage();
- $message = strtr($message, array("\n" => "\n "))."\n";
- $message = empty($this->exceptions) ? $message : "\n" . $message;
-
- $this->message = rtrim($this->message.$message);
- $this->exceptions[] = $exception;
- }
-
- /**
- * @return PredictionException[]
- */
- public function getExceptions()
- {
- return $this->exceptions;
- }
-
- public function setObjectProphecy(ObjectProphecy $objectProphecy)
- {
- $this->objectProphecy = $objectProphecy;
- }
-
- /**
- * @return ObjectProphecy
- */
- public function getObjectProphecy()
- {
- return $this->objectProphecy;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/FailedPredictionException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/FailedPredictionException.php
deleted file mode 100644
index bbbbc3d9..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/FailedPredictionException.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Prediction;
-
-use RuntimeException;
-
-/**
- * Basic failed prediction exception.
- * Use it for custom prediction failures.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class FailedPredictionException extends RuntimeException implements PredictionException
-{
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/NoCallsException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/NoCallsException.php
deleted file mode 100644
index 05ea4aad..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/NoCallsException.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Prediction;
-
-use Prophecy\Exception\Prophecy\MethodProphecyException;
-
-class NoCallsException extends MethodProphecyException implements PredictionException
-{
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/PredictionException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/PredictionException.php
deleted file mode 100644
index 2596b1ef..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/PredictionException.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Prediction;
-
-use Prophecy\Exception\Exception;
-
-interface PredictionException extends Exception
-{
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php
deleted file mode 100644
index 9d905431..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Prediction;
-
-use Prophecy\Prophecy\MethodProphecy;
-
-class UnexpectedCallsCountException extends UnexpectedCallsException
-{
- private $expectedCount;
-
- public function __construct($message, MethodProphecy $methodProphecy, $count, array $calls)
- {
- parent::__construct($message, $methodProphecy, $calls);
-
- $this->expectedCount = intval($count);
- }
-
- public function getExpectedCount()
- {
- return $this->expectedCount;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsException.php
deleted file mode 100644
index 7a99c2d7..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsException.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Prediction;
-
-use Prophecy\Prophecy\MethodProphecy;
-use Prophecy\Exception\Prophecy\MethodProphecyException;
-
-class UnexpectedCallsException extends MethodProphecyException implements PredictionException
-{
- private $calls = array();
-
- public function __construct($message, MethodProphecy $methodProphecy, array $calls)
- {
- parent::__construct($message, $methodProphecy);
-
- $this->calls = $calls;
- }
-
- public function getCalls()
- {
- return $this->calls;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/MethodProphecyException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/MethodProphecyException.php
deleted file mode 100644
index 1b03eaf4..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/MethodProphecyException.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Prophecy;
-
-use Prophecy\Prophecy\MethodProphecy;
-
-class MethodProphecyException extends ObjectProphecyException
-{
- private $methodProphecy;
-
- public function __construct($message, MethodProphecy $methodProphecy)
- {
- parent::__construct($message, $methodProphecy->getObjectProphecy());
-
- $this->methodProphecy = $methodProphecy;
- }
-
- /**
- * @return MethodProphecy
- */
- public function getMethodProphecy()
- {
- return $this->methodProphecy;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ObjectProphecyException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ObjectProphecyException.php
deleted file mode 100644
index e345402e..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ObjectProphecyException.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Prophecy;
-
-use Prophecy\Prophecy\ObjectProphecy;
-
-class ObjectProphecyException extends \RuntimeException implements ProphecyException
-{
- private $objectProphecy;
-
- public function __construct($message, ObjectProphecy $objectProphecy)
- {
- parent::__construct($message);
-
- $this->objectProphecy = $objectProphecy;
- }
-
- /**
- * @return ObjectProphecy
- */
- public function getObjectProphecy()
- {
- return $this->objectProphecy;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ProphecyException.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ProphecyException.php
deleted file mode 100644
index 91573328..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Exception/Prophecy/ProphecyException.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Exception\Prophecy;
-
-use Prophecy\Exception\Exception;
-
-interface ProphecyException extends Exception
-{
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php
deleted file mode 100644
index 209821ce..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\PhpDocumentor;
-
-use phpDocumentor\Reflection\DocBlock\Tag\MethodTag as LegacyMethodTag;
-use phpDocumentor\Reflection\DocBlock\Tags\Method;
-
-/**
- * @author Théo FIDRY <theo.fidry@gmail.com>
- *
- * @internal
- */
-final class ClassAndInterfaceTagRetriever implements MethodTagRetrieverInterface
-{
- private $classRetriever;
-
- public function __construct(MethodTagRetrieverInterface $classRetriever = null)
- {
- if (null !== $classRetriever) {
- $this->classRetriever = $classRetriever;
-
- return;
- }
-
- $this->classRetriever = class_exists('phpDocumentor\Reflection\DocBlockFactory') && class_exists('phpDocumentor\Reflection\Types\ContextFactory')
- ? new ClassTagRetriever()
- : new LegacyClassTagRetriever()
- ;
- }
-
- /**
- * @param \ReflectionClass $reflectionClass
- *
- * @return LegacyMethodTag[]|Method[]
- */
- public function getTagList(\ReflectionClass $reflectionClass)
- {
- return array_merge(
- $this->classRetriever->getTagList($reflectionClass),
- $this->getInterfacesTagList($reflectionClass)
- );
- }
-
- /**
- * @param \ReflectionClass $reflectionClass
- *
- * @return LegacyMethodTag[]|Method[]
- */
- private function getInterfacesTagList(\ReflectionClass $reflectionClass)
- {
- $interfaces = $reflectionClass->getInterfaces();
- $tagList = array();
-
- foreach($interfaces as $interface) {
- $tagList = array_merge($tagList, $this->classRetriever->getTagList($interface));
- }
-
- return $tagList;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassTagRetriever.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassTagRetriever.php
deleted file mode 100644
index 1d2da8f0..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassTagRetriever.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\PhpDocumentor;
-
-use phpDocumentor\Reflection\DocBlock\Tags\Method;
-use phpDocumentor\Reflection\DocBlockFactory;
-use phpDocumentor\Reflection\Types\ContextFactory;
-
-/**
- * @author Théo FIDRY <theo.fidry@gmail.com>
- *
- * @internal
- */
-final class ClassTagRetriever implements MethodTagRetrieverInterface
-{
- private $docBlockFactory;
- private $contextFactory;
-
- public function __construct()
- {
- $this->docBlockFactory = DocBlockFactory::createInstance();
- $this->contextFactory = new ContextFactory();
- }
-
- /**
- * @param \ReflectionClass $reflectionClass
- *
- * @return Method[]
- */
- public function getTagList(\ReflectionClass $reflectionClass)
- {
- try {
- $phpdoc = $this->docBlockFactory->create(
- $reflectionClass,
- $this->contextFactory->createFromReflector($reflectionClass)
- );
-
- return $phpdoc->getTagsByName('method');
- } catch (\InvalidArgumentException $e) {
- return array();
- }
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/LegacyClassTagRetriever.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/LegacyClassTagRetriever.php
deleted file mode 100644
index c0dec3de..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/LegacyClassTagRetriever.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\PhpDocumentor;
-
-use phpDocumentor\Reflection\DocBlock;
-use phpDocumentor\Reflection\DocBlock\Tag\MethodTag as LegacyMethodTag;
-
-/**
- * @author Théo FIDRY <theo.fidry@gmail.com>
- *
- * @internal
- */
-final class LegacyClassTagRetriever implements MethodTagRetrieverInterface
-{
- /**
- * @param \ReflectionClass $reflectionClass
- *
- * @return LegacyMethodTag[]
- */
- public function getTagList(\ReflectionClass $reflectionClass)
- {
- $phpdoc = new DocBlock($reflectionClass->getDocComment());
-
- return $phpdoc->getTagsByName('method');
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/MethodTagRetrieverInterface.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/MethodTagRetrieverInterface.php
deleted file mode 100644
index d3989dad..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/MethodTagRetrieverInterface.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\PhpDocumentor;
-
-use phpDocumentor\Reflection\DocBlock\Tag\MethodTag as LegacyMethodTag;
-use phpDocumentor\Reflection\DocBlock\Tags\Method;
-
-/**
- * @author Théo FIDRY <theo.fidry@gmail.com>
- *
- * @internal
- */
-interface MethodTagRetrieverInterface
-{
- /**
- * @param \ReflectionClass $reflectionClass
- *
- * @return LegacyMethodTag[]|Method[]
- */
- public function getTagList(\ReflectionClass $reflectionClass);
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallPrediction.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallPrediction.php
deleted file mode 100644
index b4787366..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallPrediction.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prediction;
-
-use Prophecy\Call\Call;
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\MethodProphecy;
-use Prophecy\Argument\ArgumentsWildcard;
-use Prophecy\Argument\Token\AnyValuesToken;
-use Prophecy\Util\StringUtil;
-use Prophecy\Exception\Prediction\NoCallsException;
-
-/**
- * Call prediction.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class CallPrediction implements PredictionInterface
-{
- private $util;
-
- /**
- * Initializes prediction.
- *
- * @param StringUtil $util
- */
- public function __construct(StringUtil $util = null)
- {
- $this->util = $util ?: new StringUtil;
- }
-
- /**
- * Tests that there was at least one call.
- *
- * @param Call[] $calls
- * @param ObjectProphecy $object
- * @param MethodProphecy $method
- *
- * @throws \Prophecy\Exception\Prediction\NoCallsException
- */
- public function check(array $calls, ObjectProphecy $object, MethodProphecy $method)
- {
- if (count($calls)) {
- return;
- }
-
- $methodCalls = $object->findProphecyMethodCalls(
- $method->getMethodName(),
- new ArgumentsWildcard(array(new AnyValuesToken))
- );
-
- if (count($methodCalls)) {
- throw new NoCallsException(sprintf(
- "No calls have been made that match:\n".
- " %s->%s(%s)\n".
- "but expected at least one.\n".
- "Recorded `%s(...)` calls:\n%s",
-
- get_class($object->reveal()),
- $method->getMethodName(),
- $method->getArgumentsWildcard(),
- $method->getMethodName(),
- $this->util->stringifyCalls($methodCalls)
- ), $method);
- }
-
- throw new NoCallsException(sprintf(
- "No calls have been made that match:\n".
- " %s->%s(%s)\n".
- "but expected at least one.",
-
- get_class($object->reveal()),
- $method->getMethodName(),
- $method->getArgumentsWildcard()
- ), $method);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallTimesPrediction.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallTimesPrediction.php
deleted file mode 100644
index 31c6c575..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallTimesPrediction.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prediction;
-
-use Prophecy\Call\Call;
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\MethodProphecy;
-use Prophecy\Argument\ArgumentsWildcard;
-use Prophecy\Argument\Token\AnyValuesToken;
-use Prophecy\Util\StringUtil;
-use Prophecy\Exception\Prediction\UnexpectedCallsCountException;
-
-/**
- * Prediction interface.
- * Predictions are logical test blocks, tied to `should...` keyword.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class CallTimesPrediction implements PredictionInterface
-{
- private $times;
- private $util;
-
- /**
- * Initializes prediction.
- *
- * @param int $times
- * @param StringUtil $util
- */
- public function __construct($times, StringUtil $util = null)
- {
- $this->times = intval($times);
- $this->util = $util ?: new StringUtil;
- }
-
- /**
- * Tests that there was exact amount of calls made.
- *
- * @param Call[] $calls
- * @param ObjectProphecy $object
- * @param MethodProphecy $method
- *
- * @throws \Prophecy\Exception\Prediction\UnexpectedCallsCountException
- */
- public function check(array $calls, ObjectProphecy $object, MethodProphecy $method)
- {
- if ($this->times == count($calls)) {
- return;
- }
-
- $methodCalls = $object->findProphecyMethodCalls(
- $method->getMethodName(),
- new ArgumentsWildcard(array(new AnyValuesToken))
- );
-
- if (count($calls)) {
- $message = sprintf(
- "Expected exactly %d calls that match:\n".
- " %s->%s(%s)\n".
- "but %d were made:\n%s",
-
- $this->times,
- get_class($object->reveal()),
- $method->getMethodName(),
- $method->getArgumentsWildcard(),
- count($calls),
- $this->util->stringifyCalls($calls)
- );
- } elseif (count($methodCalls)) {
- $message = sprintf(
- "Expected exactly %d calls that match:\n".
- " %s->%s(%s)\n".
- "but none were made.\n".
- "Recorded `%s(...)` calls:\n%s",
-
- $this->times,
- get_class($object->reveal()),
- $method->getMethodName(),
- $method->getArgumentsWildcard(),
- $method->getMethodName(),
- $this->util->stringifyCalls($methodCalls)
- );
- } else {
- $message = sprintf(
- "Expected exactly %d calls that match:\n".
- " %s->%s(%s)\n".
- "but none were made.",
-
- $this->times,
- get_class($object->reveal()),
- $method->getMethodName(),
- $method->getArgumentsWildcard()
- );
- }
-
- throw new UnexpectedCallsCountException($message, $method, $this->times, $calls);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallbackPrediction.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallbackPrediction.php
deleted file mode 100644
index 44bc782c..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/CallbackPrediction.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prediction;
-
-use Prophecy\Call\Call;
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\MethodProphecy;
-use Prophecy\Exception\InvalidArgumentException;
-use Closure;
-
-/**
- * Callback prediction.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class CallbackPrediction implements PredictionInterface
-{
- private $callback;
-
- /**
- * Initializes callback prediction.
- *
- * @param callable $callback Custom callback
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function __construct($callback)
- {
- if (!is_callable($callback)) {
- throw new InvalidArgumentException(sprintf(
- 'Callable expected as an argument to CallbackPrediction, but got %s.',
- gettype($callback)
- ));
- }
-
- $this->callback = $callback;
- }
-
- /**
- * Executes preset callback.
- *
- * @param Call[] $calls
- * @param ObjectProphecy $object
- * @param MethodProphecy $method
- */
- public function check(array $calls, ObjectProphecy $object, MethodProphecy $method)
- {
- $callback = $this->callback;
-
- if ($callback instanceof Closure && method_exists('Closure', 'bind')) {
- $callback = Closure::bind($callback, $object);
- }
-
- call_user_func($callback, $calls, $object, $method);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/NoCallsPrediction.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/NoCallsPrediction.php
deleted file mode 100644
index 46ac5bfc..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/NoCallsPrediction.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prediction;
-
-use Prophecy\Call\Call;
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\MethodProphecy;
-use Prophecy\Util\StringUtil;
-use Prophecy\Exception\Prediction\UnexpectedCallsException;
-
-/**
- * No calls prediction.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class NoCallsPrediction implements PredictionInterface
-{
- private $util;
-
- /**
- * Initializes prediction.
- *
- * @param null|StringUtil $util
- */
- public function __construct(StringUtil $util = null)
- {
- $this->util = $util ?: new StringUtil;
- }
-
- /**
- * Tests that there were no calls made.
- *
- * @param Call[] $calls
- * @param ObjectProphecy $object
- * @param MethodProphecy $method
- *
- * @throws \Prophecy\Exception\Prediction\UnexpectedCallsException
- */
- public function check(array $calls, ObjectProphecy $object, MethodProphecy $method)
- {
- if (!count($calls)) {
- return;
- }
-
- $verb = count($calls) === 1 ? 'was' : 'were';
-
- throw new UnexpectedCallsException(sprintf(
- "No calls expected that match:\n".
- " %s->%s(%s)\n".
- "but %d %s made:\n%s",
- get_class($object->reveal()),
- $method->getMethodName(),
- $method->getArgumentsWildcard(),
- count($calls),
- $verb,
- $this->util->stringifyCalls($calls)
- ), $method, $calls);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/PredictionInterface.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/PredictionInterface.php
deleted file mode 100644
index f7fb06a9..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prediction/PredictionInterface.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prediction;
-
-use Prophecy\Call\Call;
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\MethodProphecy;
-
-/**
- * Prediction interface.
- * Predictions are logical test blocks, tied to `should...` keyword.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface PredictionInterface
-{
- /**
- * Tests that double fulfilled prediction.
- *
- * @param Call[] $calls
- * @param ObjectProphecy $object
- * @param MethodProphecy $method
- *
- * @throws object
- * @return void
- */
- public function check(array $calls, ObjectProphecy $object, MethodProphecy $method);
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/CallbackPromise.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/CallbackPromise.php
deleted file mode 100644
index 5f406bf7..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/CallbackPromise.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Promise;
-
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\MethodProphecy;
-use Prophecy\Exception\InvalidArgumentException;
-use Closure;
-
-/**
- * Callback promise.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class CallbackPromise implements PromiseInterface
-{
- private $callback;
-
- /**
- * Initializes callback promise.
- *
- * @param callable $callback Custom callback
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function __construct($callback)
- {
- if (!is_callable($callback)) {
- throw new InvalidArgumentException(sprintf(
- 'Callable expected as an argument to CallbackPromise, but got %s.',
- gettype($callback)
- ));
- }
-
- $this->callback = $callback;
- }
-
- /**
- * Evaluates promise callback.
- *
- * @param array $args
- * @param ObjectProphecy $object
- * @param MethodProphecy $method
- *
- * @return mixed
- */
- public function execute(array $args, ObjectProphecy $object, MethodProphecy $method)
- {
- $callback = $this->callback;
-
- if ($callback instanceof Closure && method_exists('Closure', 'bind')) {
- $callback = Closure::bind($callback, $object);
- }
-
- return call_user_func($callback, $args, $object, $method);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/PromiseInterface.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/PromiseInterface.php
deleted file mode 100644
index 382537b4..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/PromiseInterface.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Promise;
-
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\MethodProphecy;
-
-/**
- * Promise interface.
- * Promises are logical blocks, tied to `will...` keyword.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface PromiseInterface
-{
- /**
- * Evaluates promise.
- *
- * @param array $args
- * @param ObjectProphecy $object
- * @param MethodProphecy $method
- *
- * @return mixed
- */
- public function execute(array $args, ObjectProphecy $object, MethodProphecy $method);
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnArgumentPromise.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnArgumentPromise.php
deleted file mode 100644
index 39bfeea0..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnArgumentPromise.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Promise;
-
-use Prophecy\Exception\InvalidArgumentException;
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\MethodProphecy;
-
-/**
- * Return argument promise.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ReturnArgumentPromise implements PromiseInterface
-{
- /**
- * @var int
- */
- private $index;
-
- /**
- * Initializes callback promise.
- *
- * @param int $index The zero-indexed number of the argument to return
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function __construct($index = 0)
- {
- if (!is_int($index) || $index < 0) {
- throw new InvalidArgumentException(sprintf(
- 'Zero-based index expected as argument to ReturnArgumentPromise, but got %s.',
- $index
- ));
- }
- $this->index = $index;
- }
-
- /**
- * Returns nth argument if has one, null otherwise.
- *
- * @param array $args
- * @param ObjectProphecy $object
- * @param MethodProphecy $method
- *
- * @return null|mixed
- */
- public function execute(array $args, ObjectProphecy $object, MethodProphecy $method)
- {
- return count($args) > $this->index ? $args[$this->index] : null;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnPromise.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnPromise.php
deleted file mode 100644
index c7d5ac59..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnPromise.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Promise;
-
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\MethodProphecy;
-
-/**
- * Return promise.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ReturnPromise implements PromiseInterface
-{
- private $returnValues = array();
-
- /**
- * Initializes promise.
- *
- * @param array $returnValues Array of values
- */
- public function __construct(array $returnValues)
- {
- $this->returnValues = $returnValues;
- }
-
- /**
- * Returns saved values one by one until last one, then continuously returns last value.
- *
- * @param array $args
- * @param ObjectProphecy $object
- * @param MethodProphecy $method
- *
- * @return mixed
- */
- public function execute(array $args, ObjectProphecy $object, MethodProphecy $method)
- {
- $value = array_shift($this->returnValues);
-
- if (!count($this->returnValues)) {
- $this->returnValues[] = $value;
- }
-
- return $value;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ThrowPromise.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ThrowPromise.php
deleted file mode 100644
index 7250fa3c..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Promise/ThrowPromise.php
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Promise;
-
-use Doctrine\Instantiator\Instantiator;
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\MethodProphecy;
-use Prophecy\Exception\InvalidArgumentException;
-use ReflectionClass;
-
-/**
- * Throw promise.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ThrowPromise implements PromiseInterface
-{
- private $exception;
-
- /**
- * @var \Doctrine\Instantiator\Instantiator
- */
- private $instantiator;
-
- /**
- * Initializes promise.
- *
- * @param string|\Exception|\Throwable $exception Exception class name or instance
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function __construct($exception)
- {
- if (is_string($exception)) {
- if (!class_exists($exception) || !$this->isAValidThrowable($exception)) {
- throw new InvalidArgumentException(sprintf(
- 'Exception / Throwable class or instance expected as argument to ThrowPromise, but got %s.',
- $exception
- ));
- }
- } elseif (!$exception instanceof \Exception && !$exception instanceof \Throwable) {
- throw new InvalidArgumentException(sprintf(
- 'Exception / Throwable class or instance expected as argument to ThrowPromise, but got %s.',
- is_object($exception) ? get_class($exception) : gettype($exception)
- ));
- }
-
- $this->exception = $exception;
- }
-
- /**
- * Throws predefined exception.
- *
- * @param array $args
- * @param ObjectProphecy $object
- * @param MethodProphecy $method
- *
- * @throws object
- */
- public function execute(array $args, ObjectProphecy $object, MethodProphecy $method)
- {
- if (is_string($this->exception)) {
- $classname = $this->exception;
- $reflection = new ReflectionClass($classname);
- $constructor = $reflection->getConstructor();
-
- if ($constructor->isPublic() && 0 == $constructor->getNumberOfRequiredParameters()) {
- throw $reflection->newInstance();
- }
-
- if (!$this->instantiator) {
- $this->instantiator = new Instantiator();
- }
-
- throw $this->instantiator->instantiate($classname);
- }
-
- throw $this->exception;
- }
-
- /**
- * @param string $exception
- *
- * @return bool
- */
- private function isAValidThrowable($exception)
- {
- return is_a($exception, 'Exception', true) || is_subclass_of($exception, 'Throwable', true);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php
deleted file mode 100644
index 7084ed6f..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php
+++ /dev/null
@@ -1,488 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prophecy;
-
-use Prophecy\Argument;
-use Prophecy\Prophet;
-use Prophecy\Promise;
-use Prophecy\Prediction;
-use Prophecy\Exception\Doubler\MethodNotFoundException;
-use Prophecy\Exception\InvalidArgumentException;
-use Prophecy\Exception\Prophecy\MethodProphecyException;
-
-/**
- * Method prophecy.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class MethodProphecy
-{
- private $objectProphecy;
- private $methodName;
- private $argumentsWildcard;
- private $promise;
- private $prediction;
- private $checkedPredictions = array();
- private $bound = false;
- private $voidReturnType = false;
-
- /**
- * Initializes method prophecy.
- *
- * @param ObjectProphecy $objectProphecy
- * @param string $methodName
- * @param null|Argument\ArgumentsWildcard|array $arguments
- *
- * @throws \Prophecy\Exception\Doubler\MethodNotFoundException If method not found
- */
- public function __construct(ObjectProphecy $objectProphecy, $methodName, $arguments = null)
- {
- $double = $objectProphecy->reveal();
- if (!method_exists($double, $methodName)) {
- throw new MethodNotFoundException(sprintf(
- 'Method `%s::%s()` is not defined.', get_class($double), $methodName
- ), get_class($double), $methodName, $arguments);
- }
-
- $this->objectProphecy = $objectProphecy;
- $this->methodName = $methodName;
-
- $reflectedMethod = new \ReflectionMethod($double, $methodName);
- if ($reflectedMethod->isFinal()) {
- throw new MethodProphecyException(sprintf(
- "Can not add prophecy for a method `%s::%s()`\n".
- "as it is a final method.",
- get_class($double),
- $methodName
- ), $this);
- }
-
- if (null !== $arguments) {
- $this->withArguments($arguments);
- }
-
- if (version_compare(PHP_VERSION, '7.0', '>=') && true === $reflectedMethod->hasReturnType()) {
- $type = (string) $reflectedMethod->getReturnType();
-
- if ('void' === $type) {
- $this->voidReturnType = true;
- }
-
- $this->will(function () use ($type) {
- switch ($type) {
- case 'void': return;
- case 'string': return '';
- case 'float': return 0.0;
- case 'int': return 0;
- case 'bool': return false;
- case 'array': return array();
-
- case 'callable':
- case 'Closure':
- return function () {};
-
- case 'Traversable':
- case 'Generator':
- // Remove eval() when minimum version >=5.5
- /** @var callable $generator */
- $generator = eval('return function () { yield; };');
- return $generator();
-
- default:
- $prophet = new Prophet;
- return $prophet->prophesize($type)->reveal();
- }
- });
- }
- }
-
- /**
- * Sets argument wildcard.
- *
- * @param array|Argument\ArgumentsWildcard $arguments
- *
- * @return $this
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function withArguments($arguments)
- {
- if (is_array($arguments)) {
- $arguments = new Argument\ArgumentsWildcard($arguments);
- }
-
- if (!$arguments instanceof Argument\ArgumentsWildcard) {
- throw new InvalidArgumentException(sprintf(
- "Either an array or an instance of ArgumentsWildcard expected as\n".
- 'a `MethodProphecy::withArguments()` argument, but got %s.',
- gettype($arguments)
- ));
- }
-
- $this->argumentsWildcard = $arguments;
-
- return $this;
- }
-
- /**
- * Sets custom promise to the prophecy.
- *
- * @param callable|Promise\PromiseInterface $promise
- *
- * @return $this
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function will($promise)
- {
- if (is_callable($promise)) {
- $promise = new Promise\CallbackPromise($promise);
- }
-
- if (!$promise instanceof Promise\PromiseInterface) {
- throw new InvalidArgumentException(sprintf(
- 'Expected callable or instance of PromiseInterface, but got %s.',
- gettype($promise)
- ));
- }
-
- $this->bindToObjectProphecy();
- $this->promise = $promise;
-
- return $this;
- }
-
- /**
- * Sets return promise to the prophecy.
- *
- * @see \Prophecy\Promise\ReturnPromise
- *
- * @return $this
- */
- public function willReturn()
- {
- if ($this->voidReturnType) {
- throw new MethodProphecyException(
- "The method \"$this->methodName\" has a void return type, and so cannot return anything",
- $this
- );
- }
-
- return $this->will(new Promise\ReturnPromise(func_get_args()));
- }
-
- /**
- * Sets return argument promise to the prophecy.
- *
- * @param int $index The zero-indexed number of the argument to return
- *
- * @see \Prophecy\Promise\ReturnArgumentPromise
- *
- * @return $this
- */
- public function willReturnArgument($index = 0)
- {
- if ($this->voidReturnType) {
- throw new MethodProphecyException("The method \"$this->methodName\" has a void return type", $this);
- }
-
- return $this->will(new Promise\ReturnArgumentPromise($index));
- }
-
- /**
- * Sets throw promise to the prophecy.
- *
- * @see \Prophecy\Promise\ThrowPromise
- *
- * @param string|\Exception $exception Exception class or instance
- *
- * @return $this
- */
- public function willThrow($exception)
- {
- return $this->will(new Promise\ThrowPromise($exception));
- }
-
- /**
- * Sets custom prediction to the prophecy.
- *
- * @param callable|Prediction\PredictionInterface $prediction
- *
- * @return $this
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function should($prediction)
- {
- if (is_callable($prediction)) {
- $prediction = new Prediction\CallbackPrediction($prediction);
- }
-
- if (!$prediction instanceof Prediction\PredictionInterface) {
- throw new InvalidArgumentException(sprintf(
- 'Expected callable or instance of PredictionInterface, but got %s.',
- gettype($prediction)
- ));
- }
-
- $this->bindToObjectProphecy();
- $this->prediction = $prediction;
-
- return $this;
- }
-
- /**
- * Sets call prediction to the prophecy.
- *
- * @see \Prophecy\Prediction\CallPrediction
- *
- * @return $this
- */
- public function shouldBeCalled()
- {
- return $this->should(new Prediction\CallPrediction);
- }
-
- /**
- * Sets no calls prediction to the prophecy.
- *
- * @see \Prophecy\Prediction\NoCallsPrediction
- *
- * @return $this
- */
- public function shouldNotBeCalled()
- {
- return $this->should(new Prediction\NoCallsPrediction);
- }
-
- /**
- * Sets call times prediction to the prophecy.
- *
- * @see \Prophecy\Prediction\CallTimesPrediction
- *
- * @param $count
- *
- * @return $this
- */
- public function shouldBeCalledTimes($count)
- {
- return $this->should(new Prediction\CallTimesPrediction($count));
- }
-
- /**
- * Sets call times prediction to the prophecy.
- *
- * @see \Prophecy\Prediction\CallTimesPrediction
- *
- * @return $this
- */
- public function shouldBeCalledOnce()
- {
- return $this->shouldBeCalledTimes(1);
- }
-
- /**
- * Checks provided prediction immediately.
- *
- * @param callable|Prediction\PredictionInterface $prediction
- *
- * @return $this
- *
- * @throws \Prophecy\Exception\InvalidArgumentException
- */
- public function shouldHave($prediction)
- {
- if (is_callable($prediction)) {
- $prediction = new Prediction\CallbackPrediction($prediction);
- }
-
- if (!$prediction instanceof Prediction\PredictionInterface) {
- throw new InvalidArgumentException(sprintf(
- 'Expected callable or instance of PredictionInterface, but got %s.',
- gettype($prediction)
- ));
- }
-
- if (null === $this->promise && !$this->voidReturnType) {
- $this->willReturn();
- }
-
- $calls = $this->getObjectProphecy()->findProphecyMethodCalls(
- $this->getMethodName(),
- $this->getArgumentsWildcard()
- );
-
- try {
- $prediction->check($calls, $this->getObjectProphecy(), $this);
- $this->checkedPredictions[] = $prediction;
- } catch (\Exception $e) {
- $this->checkedPredictions[] = $prediction;
-
- throw $e;
- }
-
- return $this;
- }
-
- /**
- * Checks call prediction.
- *
- * @see \Prophecy\Prediction\CallPrediction
- *
- * @return $this
- */
- public function shouldHaveBeenCalled()
- {
- return $this->shouldHave(new Prediction\CallPrediction);
- }
-
- /**
- * Checks no calls prediction.
- *
- * @see \Prophecy\Prediction\NoCallsPrediction
- *
- * @return $this
- */
- public function shouldNotHaveBeenCalled()
- {
- return $this->shouldHave(new Prediction\NoCallsPrediction);
- }
-
- /**
- * Checks no calls prediction.
- *
- * @see \Prophecy\Prediction\NoCallsPrediction
- * @deprecated
- *
- * @return $this
- */
- public function shouldNotBeenCalled()
- {
- return $this->shouldNotHaveBeenCalled();
- }
-
- /**
- * Checks call times prediction.
- *
- * @see \Prophecy\Prediction\CallTimesPrediction
- *
- * @param int $count
- *
- * @return $this
- */
- public function shouldHaveBeenCalledTimes($count)
- {
- return $this->shouldHave(new Prediction\CallTimesPrediction($count));
- }
-
- /**
- * Checks call times prediction.
- *
- * @see \Prophecy\Prediction\CallTimesPrediction
- *
- * @return $this
- */
- public function shouldHaveBeenCalledOnce()
- {
- return $this->shouldHaveBeenCalledTimes(1);
- }
-
- /**
- * Checks currently registered [with should(...)] prediction.
- */
- public function checkPrediction()
- {
- if (null === $this->prediction) {
- return;
- }
-
- $this->shouldHave($this->prediction);
- }
-
- /**
- * Returns currently registered promise.
- *
- * @return null|Promise\PromiseInterface
- */
- public function getPromise()
- {
- return $this->promise;
- }
-
- /**
- * Returns currently registered prediction.
- *
- * @return null|Prediction\PredictionInterface
- */
- public function getPrediction()
- {
- return $this->prediction;
- }
-
- /**
- * Returns predictions that were checked on this object.
- *
- * @return Prediction\PredictionInterface[]
- */
- public function getCheckedPredictions()
- {
- return $this->checkedPredictions;
- }
-
- /**
- * Returns object prophecy this method prophecy is tied to.
- *
- * @return ObjectProphecy
- */
- public function getObjectProphecy()
- {
- return $this->objectProphecy;
- }
-
- /**
- * Returns method name.
- *
- * @return string
- */
- public function getMethodName()
- {
- return $this->methodName;
- }
-
- /**
- * Returns arguments wildcard.
- *
- * @return Argument\ArgumentsWildcard
- */
- public function getArgumentsWildcard()
- {
- return $this->argumentsWildcard;
- }
-
- /**
- * @return bool
- */
- public function hasReturnVoid()
- {
- return $this->voidReturnType;
- }
-
- private function bindToObjectProphecy()
- {
- if ($this->bound) {
- return;
- }
-
- $this->getObjectProphecy()->addMethodProphecy($this);
- $this->bound = true;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php
deleted file mode 100644
index 8d8f8a1b..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php
+++ /dev/null
@@ -1,281 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prophecy;
-
-use SebastianBergmann\Comparator\ComparisonFailure;
-use Prophecy\Comparator\Factory as ComparatorFactory;
-use Prophecy\Call\Call;
-use Prophecy\Doubler\LazyDouble;
-use Prophecy\Argument\ArgumentsWildcard;
-use Prophecy\Call\CallCenter;
-use Prophecy\Exception\Prophecy\ObjectProphecyException;
-use Prophecy\Exception\Prophecy\MethodProphecyException;
-use Prophecy\Exception\Prediction\AggregateException;
-use Prophecy\Exception\Prediction\PredictionException;
-
-/**
- * Object prophecy.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class ObjectProphecy implements ProphecyInterface
-{
- private $lazyDouble;
- private $callCenter;
- private $revealer;
- private $comparatorFactory;
-
- /**
- * @var MethodProphecy[][]
- */
- private $methodProphecies = array();
-
- /**
- * Initializes object prophecy.
- *
- * @param LazyDouble $lazyDouble
- * @param CallCenter $callCenter
- * @param RevealerInterface $revealer
- * @param ComparatorFactory $comparatorFactory
- */
- public function __construct(
- LazyDouble $lazyDouble,
- CallCenter $callCenter = null,
- RevealerInterface $revealer = null,
- ComparatorFactory $comparatorFactory = null
- ) {
- $this->lazyDouble = $lazyDouble;
- $this->callCenter = $callCenter ?: new CallCenter;
- $this->revealer = $revealer ?: new Revealer;
-
- $this->comparatorFactory = $comparatorFactory ?: ComparatorFactory::getInstance();
- }
-
- /**
- * Forces double to extend specific class.
- *
- * @param string $class
- *
- * @return $this
- */
- public function willExtend($class)
- {
- $this->lazyDouble->setParentClass($class);
-
- return $this;
- }
-
- /**
- * Forces double to implement specific interface.
- *
- * @param string $interface
- *
- * @return $this
- */
- public function willImplement($interface)
- {
- $this->lazyDouble->addInterface($interface);
-
- return $this;
- }
-
- /**
- * Sets constructor arguments.
- *
- * @param array $arguments
- *
- * @return $this
- */
- public function willBeConstructedWith(array $arguments = null)
- {
- $this->lazyDouble->setArguments($arguments);
-
- return $this;
- }
-
- /**
- * Reveals double.
- *
- * @return object
- *
- * @throws \Prophecy\Exception\Prophecy\ObjectProphecyException If double doesn't implement needed interface
- */
- public function reveal()
- {
- $double = $this->lazyDouble->getInstance();
-
- if (null === $double || !$double instanceof ProphecySubjectInterface) {
- throw new ObjectProphecyException(
- "Generated double must implement ProphecySubjectInterface, but it does not.\n".
- 'It seems you have wrongly configured doubler without required ClassPatch.',
- $this
- );
- }
-
- $double->setProphecy($this);
-
- return $double;
- }
-
- /**
- * Adds method prophecy to object prophecy.
- *
- * @param MethodProphecy $methodProphecy
- *
- * @throws \Prophecy\Exception\Prophecy\MethodProphecyException If method prophecy doesn't
- * have arguments wildcard
- */
- public function addMethodProphecy(MethodProphecy $methodProphecy)
- {
- $argumentsWildcard = $methodProphecy->getArgumentsWildcard();
- if (null === $argumentsWildcard) {
- throw new MethodProphecyException(sprintf(
- "Can not add prophecy for a method `%s::%s()`\n".
- "as you did not specify arguments wildcard for it.",
- get_class($this->reveal()),
- $methodProphecy->getMethodName()
- ), $methodProphecy);
- }
-
- $methodName = $methodProphecy->getMethodName();
-
- if (!isset($this->methodProphecies[$methodName])) {
- $this->methodProphecies[$methodName] = array();
- }
-
- $this->methodProphecies[$methodName][] = $methodProphecy;
- }
-
- /**
- * Returns either all or related to single method prophecies.
- *
- * @param null|string $methodName
- *
- * @return MethodProphecy[]
- */
- public function getMethodProphecies($methodName = null)
- {
- if (null === $methodName) {
- return $this->methodProphecies;
- }
-
- if (!isset($this->methodProphecies[$methodName])) {
- return array();
- }
-
- return $this->methodProphecies[$methodName];
- }
-
- /**
- * Makes specific method call.
- *
- * @param string $methodName
- * @param array $arguments
- *
- * @return mixed
- */
- public function makeProphecyMethodCall($methodName, array $arguments)
- {
- $arguments = $this->revealer->reveal($arguments);
- $return = $this->callCenter->makeCall($this, $methodName, $arguments);
-
- return $this->revealer->reveal($return);
- }
-
- /**
- * Finds calls by method name & arguments wildcard.
- *
- * @param string $methodName
- * @param ArgumentsWildcard $wildcard
- *
- * @return Call[]
- */
- public function findProphecyMethodCalls($methodName, ArgumentsWildcard $wildcard)
- {
- return $this->callCenter->findCalls($methodName, $wildcard);
- }
-
- /**
- * Checks that registered method predictions do not fail.
- *
- * @throws \Prophecy\Exception\Prediction\AggregateException If any of registered predictions fail
- */
- public function checkProphecyMethodsPredictions()
- {
- $exception = new AggregateException(sprintf("%s:\n", get_class($this->reveal())));
- $exception->setObjectProphecy($this);
-
- foreach ($this->methodProphecies as $prophecies) {
- foreach ($prophecies as $prophecy) {
- try {
- $prophecy->checkPrediction();
- } catch (PredictionException $e) {
- $exception->append($e);
- }
- }
- }
-
- if (count($exception->getExceptions())) {
- throw $exception;
- }
- }
-
- /**
- * Creates new method prophecy using specified method name and arguments.
- *
- * @param string $methodName
- * @param array $arguments
- *
- * @return MethodProphecy
- */
- public function __call($methodName, array $arguments)
- {
- $arguments = new ArgumentsWildcard($this->revealer->reveal($arguments));
-
- foreach ($this->getMethodProphecies($methodName) as $prophecy) {
- $argumentsWildcard = $prophecy->getArgumentsWildcard();
- $comparator = $this->comparatorFactory->getComparatorFor(
- $argumentsWildcard, $arguments
- );
-
- try {
- $comparator->assertEquals($argumentsWildcard, $arguments);
- return $prophecy;
- } catch (ComparisonFailure $failure) {}
- }
-
- return new MethodProphecy($this, $methodName, $arguments);
- }
-
- /**
- * Tries to get property value from double.
- *
- * @param string $name
- *
- * @return mixed
- */
- public function __get($name)
- {
- return $this->reveal()->$name;
- }
-
- /**
- * Tries to set property value to double.
- *
- * @param string $name
- * @param mixed $value
- */
- public function __set($name, $value)
- {
- $this->reveal()->$name = $this->revealer->reveal($value);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ProphecyInterface.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ProphecyInterface.php
deleted file mode 100644
index 462f15a9..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ProphecyInterface.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prophecy;
-
-/**
- * Core Prophecy interface.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface ProphecyInterface
-{
- /**
- * Reveals prophecy object (double) .
- *
- * @return object
- */
- public function reveal();
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ProphecySubjectInterface.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ProphecySubjectInterface.php
deleted file mode 100644
index 2d839585..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ProphecySubjectInterface.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prophecy;
-
-/**
- * Controllable doubles interface.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface ProphecySubjectInterface
-{
- /**
- * Sets subject prophecy.
- *
- * @param ProphecyInterface $prophecy
- */
- public function setProphecy(ProphecyInterface $prophecy);
-
- /**
- * Returns subject prophecy.
- *
- * @return ProphecyInterface
- */
- public function getProphecy();
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/Revealer.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/Revealer.php
deleted file mode 100644
index 60ecdac8..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/Revealer.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prophecy;
-
-/**
- * Basic prophecies revealer.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class Revealer implements RevealerInterface
-{
- /**
- * Unwraps value(s).
- *
- * @param mixed $value
- *
- * @return mixed
- */
- public function reveal($value)
- {
- if (is_array($value)) {
- return array_map(array($this, __FUNCTION__), $value);
- }
-
- if (!is_object($value)) {
- return $value;
- }
-
- if ($value instanceof ProphecyInterface) {
- $value = $value->reveal();
- }
-
- return $value;
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/RevealerInterface.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/RevealerInterface.php
deleted file mode 100644
index ffc82bb6..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophecy/RevealerInterface.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Prophecy;
-
-/**
- * Prophecies revealer interface.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface RevealerInterface
-{
- /**
- * Unwraps value(s).
- *
- * @param mixed $value
- *
- * @return mixed
- */
- public function reveal($value);
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophet.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophet.php
deleted file mode 100644
index a4fe4b0d..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Prophet.php
+++ /dev/null
@@ -1,135 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy;
-
-use Prophecy\Doubler\Doubler;
-use Prophecy\Doubler\LazyDouble;
-use Prophecy\Doubler\ClassPatch;
-use Prophecy\Prophecy\ObjectProphecy;
-use Prophecy\Prophecy\RevealerInterface;
-use Prophecy\Prophecy\Revealer;
-use Prophecy\Call\CallCenter;
-use Prophecy\Util\StringUtil;
-use Prophecy\Exception\Prediction\PredictionException;
-use Prophecy\Exception\Prediction\AggregateException;
-
-/**
- * Prophet creates prophecies.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class Prophet
-{
- private $doubler;
- private $revealer;
- private $util;
-
- /**
- * @var ObjectProphecy[]
- */
- private $prophecies = array();
-
- /**
- * Initializes Prophet.
- *
- * @param null|Doubler $doubler
- * @param null|RevealerInterface $revealer
- * @param null|StringUtil $util
- */
- public function __construct(Doubler $doubler = null, RevealerInterface $revealer = null,
- StringUtil $util = null)
- {
- if (null === $doubler) {
- $doubler = new Doubler;
- $doubler->registerClassPatch(new ClassPatch\SplFileInfoPatch);
- $doubler->registerClassPatch(new ClassPatch\TraversablePatch);
- $doubler->registerClassPatch(new ClassPatch\ThrowablePatch);
- $doubler->registerClassPatch(new ClassPatch\DisableConstructorPatch);
- $doubler->registerClassPatch(new ClassPatch\ProphecySubjectPatch);
- $doubler->registerClassPatch(new ClassPatch\ReflectionClassNewInstancePatch);
- $doubler->registerClassPatch(new ClassPatch\HhvmExceptionPatch());
- $doubler->registerClassPatch(new ClassPatch\MagicCallPatch);
- $doubler->registerClassPatch(new ClassPatch\KeywordPatch);
- }
-
- $this->doubler = $doubler;
- $this->revealer = $revealer ?: new Revealer;
- $this->util = $util ?: new StringUtil;
- }
-
- /**
- * Creates new object prophecy.
- *
- * @param null|string $classOrInterface Class or interface name
- *
- * @return ObjectProphecy
- */
- public function prophesize($classOrInterface = null)
- {
- $this->prophecies[] = $prophecy = new ObjectProphecy(
- new LazyDouble($this->doubler),
- new CallCenter($this->util),
- $this->revealer
- );
-
- if ($classOrInterface && class_exists($classOrInterface)) {
- return $prophecy->willExtend($classOrInterface);
- }
-
- if ($classOrInterface && interface_exists($classOrInterface)) {
- return $prophecy->willImplement($classOrInterface);
- }
-
- return $prophecy;
- }
-
- /**
- * Returns all created object prophecies.
- *
- * @return ObjectProphecy[]
- */
- public function getProphecies()
- {
- return $this->prophecies;
- }
-
- /**
- * Returns Doubler instance assigned to this Prophet.
- *
- * @return Doubler
- */
- public function getDoubler()
- {
- return $this->doubler;
- }
-
- /**
- * Checks all predictions defined by prophecies of this Prophet.
- *
- * @throws Exception\Prediction\AggregateException If any prediction fails
- */
- public function checkPredictions()
- {
- $exception = new AggregateException("Some predictions failed:\n");
- foreach ($this->prophecies as $prophecy) {
- try {
- $prophecy->checkProphecyMethodsPredictions();
- } catch (PredictionException $e) {
- $exception->append($e);
- }
- }
-
- if (count($exception->getExceptions())) {
- throw $exception;
- }
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Util/ExportUtil.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Util/ExportUtil.php
deleted file mode 100644
index 50dd3f32..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Util/ExportUtil.php
+++ /dev/null
@@ -1,212 +0,0 @@
-<?php
-
-namespace Prophecy\Util;
-
-use Prophecy\Prophecy\ProphecyInterface;
-use SebastianBergmann\RecursionContext\Context;
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * This class is a modification from sebastianbergmann/exporter
- * @see https://github.com/sebastianbergmann/exporter
- */
-class ExportUtil
-{
- /**
- * Exports a value as a string
- *
- * The output of this method is similar to the output of print_r(), but
- * improved in various aspects:
- *
- * - NULL is rendered as "null" (instead of "")
- * - TRUE is rendered as "true" (instead of "1")
- * - FALSE is rendered as "false" (instead of "")
- * - Strings are always quoted with single quotes
- * - Carriage returns and newlines are normalized to \n
- * - Recursion and repeated rendering is treated properly
- *
- * @param mixed $value
- * @param int $indentation The indentation level of the 2nd+ line
- * @return string
- */
- public static function export($value, $indentation = 0)
- {
- return self::recursiveExport($value, $indentation);
- }
-
- /**
- * Converts an object to an array containing all of its private, protected
- * and public properties.
- *
- * @param mixed $value
- * @return array
- */
- public static function toArray($value)
- {
- if (!is_object($value)) {
- return (array) $value;
- }
-
- $array = array();
-
- foreach ((array) $value as $key => $val) {
- // properties are transformed to keys in the following way:
- // private $property => "\0Classname\0property"
- // protected $property => "\0*\0property"
- // public $property => "property"
- if (preg_match('/^\0.+\0(.+)$/', $key, $matches)) {
- $key = $matches[1];
- }
-
- // See https://github.com/php/php-src/commit/5721132
- if ($key === "\0gcdata") {
- continue;
- }
-
- $array[$key] = $val;
- }
-
- // Some internal classes like SplObjectStorage don't work with the
- // above (fast) mechanism nor with reflection in Zend.
- // Format the output similarly to print_r() in this case
- if ($value instanceof \SplObjectStorage) {
- // However, the fast method does work in HHVM, and exposes the
- // internal implementation. Hide it again.
- if (property_exists('\SplObjectStorage', '__storage')) {
- unset($array['__storage']);
- } elseif (property_exists('\SplObjectStorage', 'storage')) {
- unset($array['storage']);
- }
-
- if (property_exists('\SplObjectStorage', '__key')) {
- unset($array['__key']);
- }
-
- foreach ($value as $key => $val) {
- $array[spl_object_hash($val)] = array(
- 'obj' => $val,
- 'inf' => $value->getInfo(),
- );
- }
- }
-
- return $array;
- }
-
- /**
- * Recursive implementation of export
- *
- * @param mixed $value The value to export
- * @param int $indentation The indentation level of the 2nd+ line
- * @param \SebastianBergmann\RecursionContext\Context $processed Previously processed objects
- * @return string
- * @see SebastianBergmann\Exporter\Exporter::export
- */
- protected static function recursiveExport(&$value, $indentation, $processed = null)
- {
- if ($value === null) {
- return 'null';
- }
-
- if ($value === true) {
- return 'true';
- }
-
- if ($value === false) {
- return 'false';
- }
-
- if (is_float($value) && floatval(intval($value)) === $value) {
- return "$value.0";
- }
-
- if (is_resource($value)) {
- return sprintf(
- 'resource(%d) of type (%s)',
- $value,
- get_resource_type($value)
- );
- }
-
- if (is_string($value)) {
- // Match for most non printable chars somewhat taking multibyte chars into account
- if (preg_match('/[^\x09-\x0d\x20-\xff]/', $value)) {
- return 'Binary String: 0x' . bin2hex($value);
- }
-
- return "'" .
- str_replace(array("\r\n", "\n\r", "\r"), array("\n", "\n", "\n"), $value) .
- "'";
- }
-
- $whitespace = str_repeat(' ', 4 * $indentation);
-
- if (!$processed) {
- $processed = new Context;
- }
-
- if (is_array($value)) {
- if (($key = $processed->contains($value)) !== false) {
- return 'Array &' . $key;
- }
-
- $array = $value;
- $key = $processed->add($value);
- $values = '';
-
- if (count($array) > 0) {
- foreach ($array as $k => $v) {
- $values .= sprintf(
- '%s %s => %s' . "\n",
- $whitespace,
- self::recursiveExport($k, $indentation),
- self::recursiveExport($value[$k], $indentation + 1, $processed)
- );
- }
-
- $values = "\n" . $values . $whitespace;
- }
-
- return sprintf('Array &%s (%s)', $key, $values);
- }
-
- if (is_object($value)) {
- $class = get_class($value);
-
- if ($value instanceof ProphecyInterface) {
- return sprintf('%s Object (*Prophecy*)', $class);
- } elseif ($hash = $processed->contains($value)) {
- return sprintf('%s:%s Object', $class, $hash);
- }
-
- $hash = $processed->add($value);
- $values = '';
- $array = self::toArray($value);
-
- if (count($array) > 0) {
- foreach ($array as $k => $v) {
- $values .= sprintf(
- '%s %s => %s' . "\n",
- $whitespace,
- self::recursiveExport($k, $indentation),
- self::recursiveExport($v, $indentation + 1, $processed)
- );
- }
-
- $values = "\n" . $values . $whitespace;
- }
-
- return sprintf('%s:%s Object (%s)', $class, $hash, $values);
- }
-
- return var_export($value, true);
- }
-}
diff --git a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Util/StringUtil.php b/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Util/StringUtil.php
deleted file mode 100644
index ba4faff5..00000000
--- a/www/wiki/vendor/phpspec/prophecy/src/Prophecy/Util/StringUtil.php
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-
-/*
- * This file is part of the Prophecy.
- * (c) Konstantin Kudryashov <ever.zet@gmail.com>
- * Marcello Duarte <marcello.duarte@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Prophecy\Util;
-
-use Prophecy\Call\Call;
-
-/**
- * String utility.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class StringUtil
-{
- private $verbose;
-
- /**
- * @param bool $verbose
- */
- public function __construct($verbose = true)
- {
- $this->verbose = $verbose;
- }
-
- /**
- * Stringifies any provided value.
- *
- * @param mixed $value
- * @param boolean $exportObject
- *
- * @return string
- */
- public function stringify($value, $exportObject = true)
- {
- if (is_array($value)) {
- if (range(0, count($value) - 1) === array_keys($value)) {
- return '['.implode(', ', array_map(array($this, __FUNCTION__), $value)).']';
- }
-
- $stringify = array($this, __FUNCTION__);
-
- return '['.implode(', ', array_map(function ($item, $key) use ($stringify) {
- return (is_integer($key) ? $key : '"'.$key.'"').
- ' => '.call_user_func($stringify, $item);
- }, $value, array_keys($value))).']';
- }
- if (is_resource($value)) {
- return get_resource_type($value).':'.$value;
- }
- if (is_object($value)) {
- return $exportObject ? ExportUtil::export($value) : sprintf('%s:%s', get_class($value), spl_object_hash($value));
- }
- if (true === $value || false === $value) {
- return $value ? 'true' : 'false';
- }
- if (is_string($value)) {
- $str = sprintf('"%s"', str_replace("\n", '\\n', $value));
-
- if (!$this->verbose && 50 <= strlen($str)) {
- return substr($str, 0, 50).'"...';
- }
-
- return $str;
- }
- if (null === $value) {
- return 'null';
- }
-
- return (string) $value;
- }
-
- /**
- * Stringifies provided array of calls.
- *
- * @param Call[] $calls Array of Call instances
- *
- * @return string
- */
- public function stringifyCalls(array $calls)
- {
- $self = $this;
-
- return implode(PHP_EOL, array_map(function (Call $call) use ($self) {
- return sprintf(' - %s(%s) @ %s',
- $call->getMethodName(),
- implode(', ', array_map(array($self, 'stringify'), $call->getArguments())),
- str_replace(GETCWD().DIRECTORY_SEPARATOR, '', $call->getCallPlace())
- );
- }, $calls));
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/.gitattributes b/www/wiki/vendor/phpunit/php-code-coverage/.gitattributes
deleted file mode 100644
index 461090b7..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-*.php diff=php
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/.gitignore b/www/wiki/vendor/phpunit/php-code-coverage/.gitignore
deleted file mode 100644
index b386531f..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/.gitignore
+++ /dev/null
@@ -1,11 +0,0 @@
-build/api
-build/code-browser
-build/coverage
-build/logs
-build/pdepend
-cache.properties
-phpunit.xml
-/vendor
-/composer.lock
-/composer.phar
-/.idea
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/.travis.yml b/www/wiki/vendor/phpunit/php-code-coverage/.travis.yml
deleted file mode 100644
index ad88a08d..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/.travis.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-language: php
-
-php:
- - 5.3.3
- - 5.3
- - 5.4
- - 5.5
- - 5.6
-
-before_script:
- - COMPOSER_ROOT_VERSION=dev-master composer install --prefer-source
-
-script: vendor/bin/phpunit --configuration ./build/travis-ci.xml
-
-notifications:
- email: false
- irc:
- channels:
- - "irc.freenode.org#phpunit"
- use_notice: true
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/CONTRIBUTING.md b/www/wiki/vendor/phpunit/php-code-coverage/CONTRIBUTING.md
deleted file mode 100644
index 40dbc25e..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/CONTRIBUTING.md
+++ /dev/null
@@ -1,5 +0,0 @@
-Pull Requests for bug fixes should be made against the current release branch (2.0).
-
-Pull Requests for new features should be made against master.
-
-For further notes please refer to [https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md)
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/ChangeLog-2.2.md b/www/wiki/vendor/phpunit/php-code-coverage/ChangeLog-2.2.md
deleted file mode 100644
index 353b6f65..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/ChangeLog-2.2.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# Changes in PHP_CodeCoverage 2.2
-
-All notable changes of the PHP_CodeCoverage 2.2 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
-
-## [2.2.4] - 2015-10-06
-
-### Fixed
-
-* Fixed [#391](https://github.com/sebastianbergmann/php-code-coverage/pull/391): Missing `</abbr>` tag
-
-## [2.2.3] - 2015-09-14
-
-### Fixed
-
-* Fixed [#368](https://github.com/sebastianbergmann/php-code-coverage/pull/368): Blacklists and whitelists are not merged when merging data sets
-* Fixed [#370](https://github.com/sebastianbergmann/php-code-coverage/issues/370): Confusing statistics for source file that declares a class without methods
-* Fixed [#372](https://github.com/sebastianbergmann/php-code-coverage/pull/372): Nested classes and functions are not handled correctly
-* Fixed [#382](https://github.com/sebastianbergmann/php-code-coverage/issues/382): Crap4J report generates incorrect XML logfile
-
-## [2.2.2] - 2015-08-04
-
-### Added
-
-* Reintroduced the `PHP_CodeCoverage_Driver_HHVM` driver as an extension of `PHP_CodeCoverage_Driver_Xdebug` that does not use `xdebug_start_code_coverage()` with options not supported by HHVM
-
-### Changed
-
-* Bumped required version of `sebastian/environment` to 1.3.2 for [#365](https://github.com/sebastianbergmann/php-code-coverage/issues/365)
-
-## [2.2.1] - 2015-08-02
-
-### Changed
-
-* Bumped required version of `sebastian/environment` to 1.3.1 for [#365](https://github.com/sebastianbergmann/php-code-coverage/issues/365)
-
-## [2.2.0] - 2015-08-01
-
-### Added
-
-* Added a driver for PHPDBG (requires PHP 7)
-* Added `PHP_CodeCoverage::setDisableIgnoredLines()` to disable the ignoring of lines using annotations such as `@codeCoverageIgnore`
-
-### Changed
-
-* Annotating a method with `@deprecated` now has the same effect as annotating it with `@codeCoverageIgnore`
-
-### Removed
-
-* The dedicated driver for HHVM, `PHP_CodeCoverage_Driver_HHVM` has been removed
-
-[2.2.4]: https://github.com/sebastianbergmann/php-code-coverage/compare/2.2.3...2.2.4
-[2.2.3]: https://github.com/sebastianbergmann/php-code-coverage/compare/2.2.2...2.2.3
-[2.2.2]: https://github.com/sebastianbergmann/php-code-coverage/compare/2.2.1...2.2.2
-[2.2.1]: https://github.com/sebastianbergmann/php-code-coverage/compare/2.2.0...2.2.1
-[2.2.0]: https://github.com/sebastianbergmann/php-code-coverage/compare/2.1...2.2.0
-
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/LICENSE b/www/wiki/vendor/phpunit/php-code-coverage/LICENSE
deleted file mode 100644
index fcfa37e8..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-PHP_CodeCoverage
-
-Copyright (c) 2009-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/README.md b/www/wiki/vendor/phpunit/php-code-coverage/README.md
deleted file mode 100644
index 4411d7fc..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/README.md
+++ /dev/null
@@ -1,50 +0,0 @@
-[![Latest Stable Version](https://poser.pugx.org/phpunit/php-code-coverage/v/stable.png)](https://packagist.org/packages/phpunit/php-code-coverage)
-[![Build Status](https://travis-ci.org/sebastianbergmann/php-code-coverage.svg?branch=master)](https://travis-ci.org/sebastianbergmann/php-code-coverage)
-
-# PHP_CodeCoverage
-
-**PHP_CodeCoverage** is a library that provides collection, processing, and rendering functionality for PHP code coverage information.
-
-## Requirements
-
-PHP 5.3.3 is required but using the latest version of PHP is highly recommended
-
-### PHP 5
-
-[Xdebug](http://xdebug.org/) is the only source of raw code coverage data supported for PHP 5. Version 2.1.3 of Xdebug is required but using the latest version is highly recommended.
-
-### PHP 7
-
-[phpdbg](http://phpdbg.com/docs) is currently the only source of raw code coverage data supported for PHP 7. Once Xdebug has been updated for PHP 7 it, too, will be supported.
-
-### HHVM
-
-A version of HHVM that implements the Xdebug API for code coverage (`xdebug_*_code_coverage()`) is required.
-
-## Installation
-
-To add PHP_CodeCoverage as a local, per-project dependency to your project, simply add a dependency on `phpunit/php-code-coverage` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on PHP_CodeCoverage 2.0:
-
- {
- "require": {
- "phpunit/php-code-coverage": "^2"
- }
- }
-
-## Using the PHP_CodeCoverage API
-
-```php
-<?php
-$coverage = new PHP_CodeCoverage;
-$coverage->start('<name of test>');
-
-// ...
-
-$coverage->stop();
-
-$writer = new PHP_CodeCoverage_Report_Clover;
-$writer->process($coverage, '/tmp/clover.xml');
-
-$writer = new PHP_CodeCoverage_Report_HTML;
-$writer->process($coverage, '/tmp/code-coverage-report');
-```
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/build.xml b/www/wiki/vendor/phpunit/php-code-coverage/build.xml
deleted file mode 100644
index c335d158..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/build.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="PHP_CodeCoverage">
- <target name="clean" description="Cleanup build artifacts">
- <delete dir="${basedir}/vendor"/>
- <delete file="${basedir}/composer.lock"/>
-
- <delete>
- <fileset dir="${basedir}/build">
- <include name="**/*.phar" />
- </fileset>
- </delete>
- </target>
-
- <target name="composer" depends="clean" description="Install dependencies with Composer">
- <tstamp>
- <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
- </tstamp>
- <delete>
- <fileset dir="${basedir}">
- <include name="composer.phar" />
- <date datetime="${thirty.days.ago}" when="before"/>
- </fileset>
- </delete>
-
- <get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" skipexisting="true"/>
-
- <exec executable="php">
- <arg value="composer.phar"/>
- <arg value="install"/>
- </exec>
- </target>
-
- <target name="phpcs" description="Find coding standard violations using PHP_CodeSniffer">
- <exec executable="phpcs">
- <arg value="--standard=PSR2" />
- <arg value="--extensions=php" />
- <arg path="${basedir}/src" />
- <arg path="${basedir}/tests" />
- </exec>
- </target>
-</project>
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/build/travis-ci.xml b/www/wiki/vendor/phpunit/php-code-coverage/build/travis-ci.xml
deleted file mode 100644
index 15e879fa..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/build/travis-ci.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit backupGlobals="false"
- backupStaticAttributes="false"
- colors="true">
- <testsuites>
- <testsuite name="PHP_CodeCoverage">
- <directory suffix="Test.php">../tests/PHP</directory>
- </testsuite>
- </testsuites>
-
- <logging>
- <log type="coverage-text" target="php://stdout"/>
- </logging>
-
- <filter>
- <whitelist addUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">../src</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/composer.json b/www/wiki/vendor/phpunit/php-code-coverage/composer.json
deleted file mode 100644
index 55f9fd07..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/composer.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "name": "phpunit/php-code-coverage",
- "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
- "type": "library",
- "keywords": [
- "coverage",
- "testing",
- "xunit"
- ],
- "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
- "irc": "irc://irc.freenode.net/phpunit"
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.3",
- "phpunit/php-token-stream": "~1.3",
- "phpunit/php-text-template": "~1.2",
- "sebastian/environment": "^1.3.2",
- "sebastian/version": "~1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4",
- "ext-xdebug": ">=2.1.4"
- },
- "suggest": {
- "ext-dom": "*",
- "ext-xdebug": ">=2.2.1",
- "ext-xmlwriter": "*"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "2.2.x-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/phpunit.xml.dist b/www/wiki/vendor/phpunit/php-code-coverage/phpunit.xml.dist
deleted file mode 100644
index f5fa606e..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/phpunit.xml.dist
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit backupGlobals="false"
- backupStaticAttributes="false"
- bootstrap="vendor/autoload.php">
- <testsuites>
- <testsuite name="PHP_CodeCoverage">
- <directory suffix="Test.php">tests/PHP</directory>
- </testsuite>
- </testsuites>
-
- <logging>
- <log type="coverage-html" target="build/coverage"/>
- <log type="coverage-clover" target="build/logs/clover.xml"/>
- <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
- </logging>
-
- <filter>
- <whitelist addUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">src</directory>
- </whitelist>
- </filter>
-</phpunit>
-
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/scripts/auto_append.php b/www/wiki/vendor/phpunit/php-code-coverage/scripts/auto_append.php
deleted file mode 100644
index 6cd768d3..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/scripts/auto_append.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-$coverage->stop();
-
-$writer = new PHP_CodeCoverage_Report_HTML;
-$writer->process($coverage, '/tmp/coverage');
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php b/www/wiki/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php
deleted file mode 100644
index 7a8887a5..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/scripts/auto_prepend.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-require_once 'PHP/CodeCoverage/Autoload.php';
-
-$coverage = new PHP_CodeCoverage;
-$filter = $coverage->filter();
-
-$filter->addFileToBlacklist(__FILE__);
-$filter->addFileToBlacklist(dirname(__FILE__) . '/auto_append.php');
-
-$coverage->start($_SERVER['SCRIPT_FILENAME']);
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage.php
deleted file mode 100644
index 88326f0b..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage.php
+++ /dev/null
@@ -1,920 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Environment\Runtime;
-
-/**
- * Provides collection functionality for PHP code coverage information.
- *
- * @since Class available since Release 1.0.0
- */
-class PHP_CodeCoverage
-{
- /**
- * @var PHP_CodeCoverage_Driver
- */
- private $driver;
-
- /**
- * @var PHP_CodeCoverage_Filter
- */
- private $filter;
-
- /**
- * @var bool
- */
- private $cacheTokens = false;
-
- /**
- * @var bool
- */
- private $checkForUnintentionallyCoveredCode = false;
-
- /**
- * @var bool
- */
- private $forceCoversAnnotation = false;
-
- /**
- * @var bool
- */
- private $mapTestClassNameToCoveredClassName = false;
-
- /**
- * @var bool
- */
- private $addUncoveredFilesFromWhitelist = true;
-
- /**
- * @var bool
- */
- private $processUncoveredFilesFromWhitelist = false;
-
- /**
- * @var mixed
- */
- private $currentId;
-
- /**
- * Code coverage data.
- *
- * @var array
- */
- private $data = array();
-
- /**
- * @var array
- */
- private $ignoredLines = array();
-
- /**
- * @var bool
- */
- private $disableIgnoredLines = false;
-
- /**
- * Test data.
- *
- * @var array
- */
- private $tests = array();
-
- /**
- * Constructor.
- *
- * @param PHP_CodeCoverage_Driver $driver
- * @param PHP_CodeCoverage_Filter $filter
- * @throws PHP_CodeCoverage_Exception
- */
- public function __construct(PHP_CodeCoverage_Driver $driver = null, PHP_CodeCoverage_Filter $filter = null)
- {
- if ($driver === null) {
- $driver = $this->selectDriver();
- }
-
- if ($filter === null) {
- $filter = new PHP_CodeCoverage_Filter;
- }
-
- $this->driver = $driver;
- $this->filter = $filter;
- }
-
- /**
- * Returns the PHP_CodeCoverage_Report_Node_* object graph
- * for this PHP_CodeCoverage object.
- *
- * @return PHP_CodeCoverage_Report_Node_Directory
- * @since Method available since Release 1.1.0
- */
- public function getReport()
- {
- $factory = new PHP_CodeCoverage_Report_Factory;
-
- return $factory->create($this);
- }
-
- /**
- * Clears collected code coverage data.
- */
- public function clear()
- {
- $this->currentId = null;
- $this->data = array();
- $this->tests = array();
- }
-
- /**
- * Returns the PHP_CodeCoverage_Filter used.
- *
- * @return PHP_CodeCoverage_Filter
- */
- public function filter()
- {
- return $this->filter;
- }
-
- /**
- * Returns the collected code coverage data.
- * Set $raw = true to bypass all filters.
- *
- * @param bool $raw
- * @return array
- * @since Method available since Release 1.1.0
- */
- public function getData($raw = false)
- {
- if (!$raw && $this->addUncoveredFilesFromWhitelist) {
- $this->addUncoveredFilesFromWhitelist();
- }
-
- // We need to apply the blacklist filter a second time
- // when no whitelist is used.
- if (!$raw && !$this->filter->hasWhitelist()) {
- $this->applyListsFilter($this->data);
- }
-
- return $this->data;
- }
-
- /**
- * Sets the coverage data.
- *
- * @param array $data
- * @since Method available since Release 2.0.0
- */
- public function setData(array $data)
- {
- $this->data = $data;
- }
-
- /**
- * Returns the test data.
- *
- * @return array
- * @since Method available since Release 1.1.0
- */
- public function getTests()
- {
- return $this->tests;
- }
-
- /**
- * Sets the test data.
- *
- * @param array $tests
- * @since Method available since Release 2.0.0
- */
- public function setTests(array $tests)
- {
- $this->tests = $tests;
- }
-
- /**
- * Start collection of code coverage information.
- *
- * @param mixed $id
- * @param bool $clear
- * @throws PHP_CodeCoverage_Exception
- */
- public function start($id, $clear = false)
- {
- if (!is_bool($clear)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'boolean'
- );
- }
-
- if ($clear) {
- $this->clear();
- }
-
- $this->currentId = $id;
-
- $this->driver->start();
- }
-
- /**
- * Stop collection of code coverage information.
- *
- * @param bool $append
- * @param mixed $linesToBeCovered
- * @param array $linesToBeUsed
- * @return array
- * @throws PHP_CodeCoverage_Exception
- */
- public function stop($append = true, $linesToBeCovered = array(), array $linesToBeUsed = array())
- {
- if (!is_bool($append)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'boolean'
- );
- }
-
- if (!is_array($linesToBeCovered) && $linesToBeCovered !== false) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 2,
- 'array or false'
- );
- }
-
- $data = $this->driver->stop();
- $this->append($data, null, $append, $linesToBeCovered, $linesToBeUsed);
-
- $this->currentId = null;
-
- return $data;
- }
-
- /**
- * Appends code coverage data.
- *
- * @param array $data
- * @param mixed $id
- * @param bool $append
- * @param mixed $linesToBeCovered
- * @param array $linesToBeUsed
- * @throws PHP_CodeCoverage_Exception
- */
- public function append(array $data, $id = null, $append = true, $linesToBeCovered = array(), array $linesToBeUsed = array())
- {
- if ($id === null) {
- $id = $this->currentId;
- }
-
- if ($id === null) {
- throw new PHP_CodeCoverage_Exception;
- }
-
- $this->applyListsFilter($data);
- $this->applyIgnoredLinesFilter($data);
- $this->initializeFilesThatAreSeenTheFirstTime($data);
-
- if (!$append) {
- return;
- }
-
- if ($id != 'UNCOVERED_FILES_FROM_WHITELIST') {
- $this->applyCoversAnnotationFilter(
- $data,
- $linesToBeCovered,
- $linesToBeUsed
- );
- }
-
- if (empty($data)) {
- return;
- }
-
- $size = 'unknown';
- $status = null;
-
- if ($id instanceof PHPUnit_Framework_TestCase) {
- $_size = $id->getSize();
-
- if ($_size == PHPUnit_Util_Test::SMALL) {
- $size = 'small';
- } elseif ($_size == PHPUnit_Util_Test::MEDIUM) {
- $size = 'medium';
- } elseif ($_size == PHPUnit_Util_Test::LARGE) {
- $size = 'large';
- }
-
- $status = $id->getStatus();
- $id = get_class($id) . '::' . $id->getName();
- } elseif ($id instanceof PHPUnit_Extensions_PhptTestCase) {
- $size = 'large';
- $id = $id->getName();
- }
-
- $this->tests[$id] = array('size' => $size, 'status' => $status);
-
- foreach ($data as $file => $lines) {
- if (!$this->filter->isFile($file)) {
- continue;
- }
-
- foreach ($lines as $k => $v) {
- if ($v == PHP_CodeCoverage_Driver::LINE_EXECUTED) {
- if (empty($this->data[$file][$k]) || !in_array($id, $this->data[$file][$k])) {
- $this->data[$file][$k][] = $id;
- }
- }
- }
- }
- }
-
- /**
- * Merges the data from another instance of PHP_CodeCoverage.
- *
- * @param PHP_CodeCoverage $that
- */
- public function merge(PHP_CodeCoverage $that)
- {
- $this->filter->setBlacklistedFiles(
- array_merge($this->filter->getBlacklistedFiles(), $that->filter()->getBlacklistedFiles())
- );
-
- $this->filter->setWhitelistedFiles(
- array_merge($this->filter->getWhitelistedFiles(), $that->filter()->getWhitelistedFiles())
- );
-
- foreach ($that->data as $file => $lines) {
- if (!isset($this->data[$file])) {
- if (!$this->filter->isFiltered($file)) {
- $this->data[$file] = $lines;
- }
-
- continue;
- }
-
- foreach ($lines as $line => $data) {
- if ($data !== null) {
- if (!isset($this->data[$file][$line])) {
- $this->data[$file][$line] = $data;
- } else {
- $this->data[$file][$line] = array_unique(
- array_merge($this->data[$file][$line], $data)
- );
- }
- }
- }
- }
-
- $this->tests = array_merge($this->tests, $that->getTests());
-
- }
-
- /**
- * @param bool $flag
- * @throws PHP_CodeCoverage_Exception
- * @since Method available since Release 1.1.0
- */
- public function setCacheTokens($flag)
- {
- if (!is_bool($flag)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'boolean'
- );
- }
-
- $this->cacheTokens = $flag;
- }
-
- /**
- * @since Method available since Release 1.1.0
- */
- public function getCacheTokens()
- {
- return $this->cacheTokens;
- }
-
- /**
- * @param bool $flag
- * @throws PHP_CodeCoverage_Exception
- * @since Method available since Release 2.0.0
- */
- public function setCheckForUnintentionallyCoveredCode($flag)
- {
- if (!is_bool($flag)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'boolean'
- );
- }
-
- $this->checkForUnintentionallyCoveredCode = $flag;
- }
-
- /**
- * @param bool $flag
- * @throws PHP_CodeCoverage_Exception
- */
- public function setForceCoversAnnotation($flag)
- {
- if (!is_bool($flag)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'boolean'
- );
- }
-
- $this->forceCoversAnnotation = $flag;
- }
-
- /**
- * @param bool $flag
- * @throws PHP_CodeCoverage_Exception
- */
- public function setMapTestClassNameToCoveredClassName($flag)
- {
- if (!is_bool($flag)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'boolean'
- );
- }
-
- $this->mapTestClassNameToCoveredClassName = $flag;
- }
-
- /**
- * @param bool $flag
- * @throws PHP_CodeCoverage_Exception
- */
- public function setAddUncoveredFilesFromWhitelist($flag)
- {
- if (!is_bool($flag)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'boolean'
- );
- }
-
- $this->addUncoveredFilesFromWhitelist = $flag;
- }
-
- /**
- * @param bool $flag
- * @throws PHP_CodeCoverage_Exception
- */
- public function setProcessUncoveredFilesFromWhitelist($flag)
- {
- if (!is_bool($flag)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'boolean'
- );
- }
-
- $this->processUncoveredFilesFromWhitelist = $flag;
- }
-
- /**
- * @param bool $flag
- * @throws PHP_CodeCoverage_Exception
- */
- public function setDisableIgnoredLines($flag)
- {
- if (!is_bool($flag)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'boolean'
- );
- }
-
- $this->disableIgnoredLines = $flag;
- }
-
- /**
- * Applies the @covers annotation filtering.
- *
- * @param array $data
- * @param mixed $linesToBeCovered
- * @param array $linesToBeUsed
- * @throws PHP_CodeCoverage_Exception_UnintentionallyCoveredCode
- */
- private function applyCoversAnnotationFilter(array &$data, $linesToBeCovered, array $linesToBeUsed)
- {
- if ($linesToBeCovered === false ||
- ($this->forceCoversAnnotation && empty($linesToBeCovered))) {
- $data = array();
-
- return;
- }
-
- if (empty($linesToBeCovered)) {
- return;
- }
-
- if ($this->checkForUnintentionallyCoveredCode) {
- $this->performUnintentionallyCoveredCodeCheck(
- $data,
- $linesToBeCovered,
- $linesToBeUsed
- );
- }
-
- $data = array_intersect_key($data, $linesToBeCovered);
-
- foreach (array_keys($data) as $filename) {
- $_linesToBeCovered = array_flip($linesToBeCovered[$filename]);
-
- $data[$filename] = array_intersect_key(
- $data[$filename],
- $_linesToBeCovered
- );
- }
- }
-
- /**
- * Applies the blacklist/whitelist filtering.
- *
- * @param array $data
- */
- private function applyListsFilter(array &$data)
- {
- foreach (array_keys($data) as $filename) {
- if ($this->filter->isFiltered($filename)) {
- unset($data[$filename]);
- }
- }
- }
-
- /**
- * Applies the "ignored lines" filtering.
- *
- * @param array $data
- */
- private function applyIgnoredLinesFilter(array &$data)
- {
- foreach (array_keys($data) as $filename) {
- if (!$this->filter->isFile($filename)) {
- continue;
- }
-
- foreach ($this->getLinesToBeIgnored($filename) as $line) {
- unset($data[$filename][$line]);
- }
- }
- }
-
- /**
- * @param array $data
- * @since Method available since Release 1.1.0
- */
- private function initializeFilesThatAreSeenTheFirstTime(array $data)
- {
- foreach ($data as $file => $lines) {
- if ($this->filter->isFile($file) && !isset($this->data[$file])) {
- $this->data[$file] = array();
-
- foreach ($lines as $k => $v) {
- $this->data[$file][$k] = $v == -2 ? null : array();
- }
- }
- }
- }
-
- /**
- * Processes whitelisted files that are not covered.
- */
- private function addUncoveredFilesFromWhitelist()
- {
- $data = array();
- $uncoveredFiles = array_diff(
- $this->filter->getWhitelist(),
- array_keys($this->data)
- );
-
- foreach ($uncoveredFiles as $uncoveredFile) {
- if (!file_exists($uncoveredFile)) {
- continue;
- }
-
- if ($this->processUncoveredFilesFromWhitelist) {
- $this->processUncoveredFileFromWhitelist(
- $uncoveredFile,
- $data,
- $uncoveredFiles
- );
- } else {
- $data[$uncoveredFile] = array();
-
- $lines = count(file($uncoveredFile));
-
- for ($i = 1; $i <= $lines; $i++) {
- $data[$uncoveredFile][$i] = PHP_CodeCoverage_Driver::LINE_NOT_EXECUTED;
- }
- }
- }
-
- $this->append($data, 'UNCOVERED_FILES_FROM_WHITELIST');
- }
-
- /**
- * @param string $uncoveredFile
- * @param array $data
- * @param array $uncoveredFiles
- */
- private function processUncoveredFileFromWhitelist($uncoveredFile, array &$data, array $uncoveredFiles)
- {
- $this->driver->start();
- include_once $uncoveredFile;
- $coverage = $this->driver->stop();
-
- foreach ($coverage as $file => $fileCoverage) {
- if (!isset($data[$file]) &&
- in_array($file, $uncoveredFiles)) {
- foreach (array_keys($fileCoverage) as $key) {
- if ($fileCoverage[$key] == PHP_CodeCoverage_Driver::LINE_EXECUTED) {
- $fileCoverage[$key] = PHP_CodeCoverage_Driver::LINE_NOT_EXECUTED;
- }
- }
-
- $data[$file] = $fileCoverage;
- }
- }
- }
-
- /**
- * Returns the lines of a source file that should be ignored.
- *
- * @param string $filename
- * @return array
- * @throws PHP_CodeCoverage_Exception
- * @since Method available since Release 2.0.0
- */
- private function getLinesToBeIgnored($filename)
- {
- if (!is_string($filename)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'string'
- );
- }
-
- if (!isset($this->ignoredLines[$filename])) {
- $this->ignoredLines[$filename] = array();
-
- if ($this->disableIgnoredLines) {
- return $this->ignoredLines[$filename];
- }
-
- $ignore = false;
- $stop = false;
- $lines = file($filename);
- $numLines = count($lines);
-
- foreach ($lines as $index => $line) {
- if (!trim($line)) {
- $this->ignoredLines[$filename][] = $index + 1;
- }
- }
-
- if ($this->cacheTokens) {
- $tokens = PHP_Token_Stream_CachingFactory::get($filename);
- } else {
- $tokens = new PHP_Token_Stream($filename);
- }
-
- $classes = array_merge($tokens->getClasses(), $tokens->getTraits());
- $tokens = $tokens->tokens();
-
- foreach ($tokens as $token) {
- switch (get_class($token)) {
- case 'PHP_Token_COMMENT':
- case 'PHP_Token_DOC_COMMENT':
- $_token = trim($token);
- $_line = trim($lines[$token->getLine() - 1]);
-
- if ($_token == '// @codeCoverageIgnore' ||
- $_token == '//@codeCoverageIgnore') {
- $ignore = true;
- $stop = true;
- } elseif ($_token == '// @codeCoverageIgnoreStart' ||
- $_token == '//@codeCoverageIgnoreStart') {
- $ignore = true;
- } elseif ($_token == '// @codeCoverageIgnoreEnd' ||
- $_token == '//@codeCoverageIgnoreEnd') {
- $stop = true;
- }
-
- if (!$ignore) {
- $start = $token->getLine();
- $end = $start + substr_count($token, "\n");
-
- // Do not ignore the first line when there is a token
- // before the comment
- if (0 !== strpos($_token, $_line)) {
- $start++;
- }
-
- for ($i = $start; $i < $end; $i++) {
- $this->ignoredLines[$filename][] = $i;
- }
-
- // A DOC_COMMENT token or a COMMENT token starting with "/*"
- // does not contain the final \n character in its text
- if (isset($lines[$i-1]) && 0 === strpos($_token, '/*') && '*/' === substr(trim($lines[$i-1]), -2)) {
- $this->ignoredLines[$filename][] = $i;
- }
- }
- break;
-
- case 'PHP_Token_INTERFACE':
- case 'PHP_Token_TRAIT':
- case 'PHP_Token_CLASS':
- case 'PHP_Token_FUNCTION':
- $docblock = $token->getDocblock();
-
- $this->ignoredLines[$filename][] = $token->getLine();
-
- if (strpos($docblock, '@codeCoverageIgnore') || strpos($docblock, '@deprecated')) {
- $endLine = $token->getEndLine();
-
- for ($i = $token->getLine(); $i <= $endLine; $i++) {
- $this->ignoredLines[$filename][] = $i;
- }
- } elseif ($token instanceof PHP_Token_INTERFACE ||
- $token instanceof PHP_Token_TRAIT ||
- $token instanceof PHP_Token_CLASS) {
- if (empty($classes[$token->getName()]['methods'])) {
- for ($i = $token->getLine();
- $i <= $token->getEndLine();
- $i++) {
- $this->ignoredLines[$filename][] = $i;
- }
- } else {
- $firstMethod = array_shift(
- $classes[$token->getName()]['methods']
- );
-
- do {
- $lastMethod = array_pop(
- $classes[$token->getName()]['methods']
- );
- } while ($lastMethod !== null &&
- substr($lastMethod['signature'], 0, 18) == 'anonymous function');
-
- if ($lastMethod === null) {
- $lastMethod = $firstMethod;
- }
-
- for ($i = $token->getLine();
- $i < $firstMethod['startLine'];
- $i++) {
- $this->ignoredLines[$filename][] = $i;
- }
-
- for ($i = $token->getEndLine();
- $i > $lastMethod['endLine'];
- $i--) {
- $this->ignoredLines[$filename][] = $i;
- }
- }
- }
- break;
-
- case 'PHP_Token_NAMESPACE':
- $this->ignoredLines[$filename][] = $token->getEndLine();
-
- // Intentional fallthrough
- case 'PHP_Token_OPEN_TAG':
- case 'PHP_Token_CLOSE_TAG':
- case 'PHP_Token_USE':
- $this->ignoredLines[$filename][] = $token->getLine();
- break;
- }
-
- if ($ignore) {
- $this->ignoredLines[$filename][] = $token->getLine();
-
- if ($stop) {
- $ignore = false;
- $stop = false;
- }
- }
- }
-
- $this->ignoredLines[$filename][] = $numLines + 1;
-
- $this->ignoredLines[$filename] = array_unique(
- $this->ignoredLines[$filename]
- );
-
- sort($this->ignoredLines[$filename]);
- }
-
- return $this->ignoredLines[$filename];
- }
-
- /**
- * @param array $data
- * @param array $linesToBeCovered
- * @param array $linesToBeUsed
- * @throws PHP_CodeCoverage_Exception_UnintentionallyCoveredCode
- * @since Method available since Release 2.0.0
- */
- private function performUnintentionallyCoveredCodeCheck(array &$data, array $linesToBeCovered, array $linesToBeUsed)
- {
- $allowedLines = $this->getAllowedLines(
- $linesToBeCovered,
- $linesToBeUsed
- );
-
- $message = '';
-
- foreach ($data as $file => $_data) {
- foreach ($_data as $line => $flag) {
- if ($flag == 1 &&
- (!isset($allowedLines[$file]) ||
- !isset($allowedLines[$file][$line]))) {
- $message .= sprintf(
- '- %s:%d' . PHP_EOL,
- $file,
- $line
- );
- }
- }
- }
-
- if (!empty($message)) {
- throw new PHP_CodeCoverage_Exception_UnintentionallyCoveredCode(
- $message
- );
- }
- }
-
- /**
- * @param array $linesToBeCovered
- * @param array $linesToBeUsed
- * @return array
- * @since Method available since Release 2.0.0
- */
- private function getAllowedLines(array $linesToBeCovered, array $linesToBeUsed)
- {
- $allowedLines = array();
-
- foreach (array_keys($linesToBeCovered) as $file) {
- if (!isset($allowedLines[$file])) {
- $allowedLines[$file] = array();
- }
-
- $allowedLines[$file] = array_merge(
- $allowedLines[$file],
- $linesToBeCovered[$file]
- );
- }
-
- foreach (array_keys($linesToBeUsed) as $file) {
- if (!isset($allowedLines[$file])) {
- $allowedLines[$file] = array();
- }
-
- $allowedLines[$file] = array_merge(
- $allowedLines[$file],
- $linesToBeUsed[$file]
- );
- }
-
- foreach (array_keys($allowedLines) as $file) {
- $allowedLines[$file] = array_flip(
- array_unique($allowedLines[$file])
- );
- }
-
- return $allowedLines;
- }
-
- /**
- * @return PHP_CodeCoverage_Driver
- * @throws PHP_CodeCoverage_Exception
- */
- private function selectDriver()
- {
- $runtime = new Runtime;
-
- if (!$runtime->canCollectCodeCoverage()) {
- throw new PHP_CodeCoverage_Exception('No code coverage driver available');
- }
-
- if ($runtime->isHHVM()) {
- return new PHP_CodeCoverage_Driver_HHVM;
- } elseif ($runtime->isPHPDBG()) {
- return new PHP_CodeCoverage_Driver_PHPDBG;
- } else {
- return new PHP_CodeCoverage_Driver_Xdebug;
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver.php
deleted file mode 100644
index 8635acef..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Interface for code coverage drivers.
- *
- * @since Class available since Release 1.0.0
- */
-interface PHP_CodeCoverage_Driver
-{
- /**
- * @var int
- * @see http://xdebug.org/docs/code_coverage
- */
- const LINE_EXECUTED = 1;
-
- /**
- * @var int
- * @see http://xdebug.org/docs/code_coverage
- */
- const LINE_NOT_EXECUTED = -1;
-
- /**
- * @var int
- * @see http://xdebug.org/docs/code_coverage
- */
- const LINE_NOT_EXECUTABLE = -2;
-
- /**
- * Start collection of code coverage information.
- */
- public function start();
-
- /**
- * Stop collection of code coverage information.
- *
- * @return array
- */
- public function stop();
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/HHVM.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/HHVM.php
deleted file mode 100644
index a9d8f0ce..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/HHVM.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Driver for HHVM's code coverage functionality.
- *
- * @since Class available since Release 2.2.2
- * @codeCoverageIgnore
- */
-class PHP_CodeCoverage_Driver_HHVM extends PHP_CodeCoverage_Driver_Xdebug
-{
- /**
- * Start collection of code coverage information.
- */
- public function start()
- {
- xdebug_start_code_coverage();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/PHPDBG.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/PHPDBG.php
deleted file mode 100644
index f3eb6214..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/PHPDBG.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Driver for PHPDBG's code coverage functionality.
- *
- * @since Class available since Release 2.2.0
- * @codeCoverageIgnore
- */
-class PHP_CodeCoverage_Driver_PHPDBG implements PHP_CodeCoverage_Driver
-{
- /**
- * Constructor.
- */
- public function __construct()
- {
- if (PHP_SAPI !== 'phpdbg') {
- throw new PHP_CodeCoverage_Exception(
- 'This driver requires the PHPDBG SAPI'
- );
- }
-
- if (!function_exists('phpdbg_start_oplog')) {
- throw new PHP_CodeCoverage_Exception(
- 'This build of PHPDBG does not support code coverage'
- );
- }
- }
-
- /**
- * Start collection of code coverage information.
- */
- public function start()
- {
- phpdbg_start_oplog();
- }
-
- /**
- * Stop collection of code coverage information.
- *
- * @return array
- */
- public function stop()
- {
- static $fetchedLines = array();
-
- $dbgData = phpdbg_end_oplog();
-
- if ($fetchedLines == array()) {
- $sourceLines = phpdbg_get_executable();
- } else {
- $newFiles = array_diff(
- get_included_files(),
- array_keys($fetchedLines)
- );
-
- if ($newFiles) {
- $sourceLines = phpdbg_get_executable(
- array('files' => $newFiles)
- );
- } else {
- $sourceLines = array();
- }
- }
-
- foreach ($sourceLines as $file => $lines) {
- foreach ($lines as $lineNo => $numExecuted) {
- $sourceLines[$file][$lineNo] = self::LINE_NOT_EXECUTED;
- }
- }
-
- $fetchedLines = array_merge($fetchedLines, $sourceLines);
-
- return $this->detectExecutedLines($fetchedLines, $dbgData);
- }
-
- /**
- * Convert phpdbg based data into the format CodeCoverage expects
- *
- * @param array $sourceLines
- * @param array $dbgData
- * @return array
- */
- private function detectExecutedLines(array $sourceLines, array $dbgData)
- {
- foreach ($dbgData as $file => $coveredLines) {
- foreach ($coveredLines as $lineNo => $numExecuted) {
- // phpdbg also reports $lineNo=0 when e.g. exceptions get thrown.
- // make sure we only mark lines executed which are actually executable.
- if (isset($sourceLines[$file][$lineNo])) {
- $sourceLines[$file][$lineNo] = self::LINE_EXECUTED;
- }
- }
- }
-
- return $sourceLines;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/Xdebug.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/Xdebug.php
deleted file mode 100644
index 0cd7b9ad..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/Xdebug.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Driver for Xdebug's code coverage functionality.
- *
- * @since Class available since Release 1.0.0
- * @codeCoverageIgnore
- */
-class PHP_CodeCoverage_Driver_Xdebug implements PHP_CodeCoverage_Driver
-{
- /**
- * Constructor.
- */
- public function __construct()
- {
- if (!extension_loaded('xdebug')) {
- throw new PHP_CodeCoverage_Exception('This driver requires Xdebug');
- }
-
- if (version_compare(phpversion('xdebug'), '2.2.0-dev', '>=') &&
- !ini_get('xdebug.coverage_enable')) {
- throw new PHP_CodeCoverage_Exception(
- 'xdebug.coverage_enable=On has to be set in php.ini'
- );
- }
- }
-
- /**
- * Start collection of code coverage information.
- */
- public function start()
- {
- xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
- }
-
- /**
- * Stop collection of code coverage information.
- *
- * @return array
- */
- public function stop()
- {
- $data = xdebug_get_code_coverage();
- xdebug_stop_code_coverage();
-
- return $this->cleanup($data);
- }
-
- /**
- * @param array $data
- * @return array
- * @since Method available since Release 2.0.0
- */
- private function cleanup(array $data)
- {
- foreach (array_keys($data) as $file) {
- unset($data[$file][0]);
-
- if ($file != 'xdebug://debug-eval' && file_exists($file)) {
- $numLines = $this->getNumberOfLinesInFile($file);
-
- foreach (array_keys($data[$file]) as $line) {
- if (isset($data[$file][$line]) && $line > $numLines) {
- unset($data[$file][$line]);
- }
- }
- }
- }
-
- return $data;
- }
-
- /**
- * @param string $file
- * @return int
- * @since Method available since Release 2.0.0
- */
- private function getNumberOfLinesInFile($file)
- {
- $buffer = file_get_contents($file);
- $lines = substr_count($buffer, "\n");
-
- if (substr($buffer, -1) !== "\n") {
- $lines++;
- }
-
- return $lines;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Exception.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Exception.php
deleted file mode 100644
index bded3c09..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Exception.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Exception class for PHP_CodeCoverage component.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Exception extends RuntimeException
-{
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Exception/UnintentionallyCoveredCode.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Exception/UnintentionallyCoveredCode.php
deleted file mode 100644
index 463785ef..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Exception/UnintentionallyCoveredCode.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Exception that is raised when code is unintentionally covered.
- *
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Exception_UnintentionallyCoveredCode extends PHP_CodeCoverage_Exception
-{
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Filter.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Filter.php
deleted file mode 100644
index bb4a2516..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Filter.php
+++ /dev/null
@@ -1,293 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Filter for blacklisting and whitelisting of code coverage information.
- *
- * @since Class available since Release 1.0.0
- */
-class PHP_CodeCoverage_Filter
-{
- /**
- * Source files that are blacklisted.
- *
- * @var array
- */
- private $blacklistedFiles = array();
-
- /**
- * Source files that are whitelisted.
- *
- * @var array
- */
- private $whitelistedFiles = array();
-
- /**
- * Adds a directory to the blacklist (recursively).
- *
- * @param string $directory
- * @param string $suffix
- * @param string $prefix
- */
- public function addDirectoryToBlacklist($directory, $suffix = '.php', $prefix = '')
- {
- $facade = new File_Iterator_Facade;
- $files = $facade->getFilesAsArray($directory, $suffix, $prefix);
-
- foreach ($files as $file) {
- $this->addFileToBlacklist($file);
- }
- }
-
- /**
- * Adds a file to the blacklist.
- *
- * @param string $filename
- */
- public function addFileToBlacklist($filename)
- {
- $this->blacklistedFiles[realpath($filename)] = true;
- }
-
- /**
- * Adds files to the blacklist.
- *
- * @param array $files
- */
- public function addFilesToBlacklist(array $files)
- {
- foreach ($files as $file) {
- $this->addFileToBlacklist($file);
- }
- }
-
- /**
- * Removes a directory from the blacklist (recursively).
- *
- * @param string $directory
- * @param string $suffix
- * @param string $prefix
- */
- public function removeDirectoryFromBlacklist($directory, $suffix = '.php', $prefix = '')
- {
- $facade = new File_Iterator_Facade;
- $files = $facade->getFilesAsArray($directory, $suffix, $prefix);
-
- foreach ($files as $file) {
- $this->removeFileFromBlacklist($file);
- }
- }
-
- /**
- * Removes a file from the blacklist.
- *
- * @param string $filename
- */
- public function removeFileFromBlacklist($filename)
- {
- $filename = realpath($filename);
-
- if (isset($this->blacklistedFiles[$filename])) {
- unset($this->blacklistedFiles[$filename]);
- }
- }
-
- /**
- * Adds a directory to the whitelist (recursively).
- *
- * @param string $directory
- * @param string $suffix
- * @param string $prefix
- */
- public function addDirectoryToWhitelist($directory, $suffix = '.php', $prefix = '')
- {
- $facade = new File_Iterator_Facade;
- $files = $facade->getFilesAsArray($directory, $suffix, $prefix);
-
- foreach ($files as $file) {
- $this->addFileToWhitelist($file);
- }
- }
-
- /**
- * Adds a file to the whitelist.
- *
- * @param string $filename
- */
- public function addFileToWhitelist($filename)
- {
- $this->whitelistedFiles[realpath($filename)] = true;
- }
-
- /**
- * Adds files to the whitelist.
- *
- * @param array $files
- */
- public function addFilesToWhitelist(array $files)
- {
- foreach ($files as $file) {
- $this->addFileToWhitelist($file);
- }
- }
-
- /**
- * Removes a directory from the whitelist (recursively).
- *
- * @param string $directory
- * @param string $suffix
- * @param string $prefix
- */
- public function removeDirectoryFromWhitelist($directory, $suffix = '.php', $prefix = '')
- {
- $facade = new File_Iterator_Facade;
- $files = $facade->getFilesAsArray($directory, $suffix, $prefix);
-
- foreach ($files as $file) {
- $this->removeFileFromWhitelist($file);
- }
- }
-
- /**
- * Removes a file from the whitelist.
- *
- * @param string $filename
- */
- public function removeFileFromWhitelist($filename)
- {
- $filename = realpath($filename);
-
- if (isset($this->whitelistedFiles[$filename])) {
- unset($this->whitelistedFiles[$filename]);
- }
- }
-
- /**
- * Checks whether a filename is a real filename.
- *
- * @param string $filename
- * @return bool
- */
- public function isFile($filename)
- {
- if ($filename == '-' ||
- strpos($filename, 'vfs://') === 0 ||
- strpos($filename, 'xdebug://debug-eval') !== false ||
- strpos($filename, 'eval()\'d code') !== false ||
- strpos($filename, 'runtime-created function') !== false ||
- strpos($filename, 'runkit created function') !== false ||
- strpos($filename, 'assert code') !== false ||
- strpos($filename, 'regexp code') !== false) {
- return false;
- }
-
- return file_exists($filename);
- }
-
- /**
- * Checks whether or not a file is filtered.
- *
- * When the whitelist is empty (default), blacklisting is used.
- * When the whitelist is not empty, whitelisting is used.
- *
- * @param string $filename
- * @return bool
- * @throws PHP_CodeCoverage_Exception
- */
- public function isFiltered($filename)
- {
- if (!$this->isFile($filename)) {
- return true;
- }
-
- $filename = realpath($filename);
-
- if (!empty($this->whitelistedFiles)) {
- return !isset($this->whitelistedFiles[$filename]);
- }
-
- return isset($this->blacklistedFiles[$filename]);
- }
-
- /**
- * Returns the list of blacklisted files.
- *
- * @return array
- */
- public function getBlacklist()
- {
- return array_keys($this->blacklistedFiles);
- }
-
- /**
- * Returns the list of whitelisted files.
- *
- * @return array
- */
- public function getWhitelist()
- {
- return array_keys($this->whitelistedFiles);
- }
-
- /**
- * Returns whether this filter has a whitelist.
- *
- * @return bool
- * @since Method available since Release 1.1.0
- */
- public function hasWhitelist()
- {
- return !empty($this->whitelistedFiles);
- }
-
- /**
- * Returns the blacklisted files.
- *
- * @return array
- * @since Method available since Release 2.0.0
- */
- public function getBlacklistedFiles()
- {
- return $this->blacklistedFiles;
- }
-
- /**
- * Sets the blacklisted files.
- *
- * @param array $blacklistedFiles
- * @since Method available since Release 2.0.0
- */
- public function setBlacklistedFiles($blacklistedFiles)
- {
- $this->blacklistedFiles = $blacklistedFiles;
- }
-
- /**
- * Returns the whitelisted files.
- *
- * @return array
- * @since Method available since Release 2.0.0
- */
- public function getWhitelistedFiles()
- {
- return $this->whitelistedFiles;
- }
-
- /**
- * Sets the whitelisted files.
- *
- * @param array $whitelistedFiles
- * @since Method available since Release 2.0.0
- */
- public function setWhitelistedFiles($whitelistedFiles)
- {
- $this->whitelistedFiles = $whitelistedFiles;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Clover.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Clover.php
deleted file mode 100644
index c0ea8d82..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Clover.php
+++ /dev/null
@@ -1,284 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Generates a Clover XML logfile from an PHP_CodeCoverage object.
- *
- * @since Class available since Release 1.0.0
- */
-class PHP_CodeCoverage_Report_Clover
-{
- /**
- * @param PHP_CodeCoverage $coverage
- * @param string $target
- * @param string $name
- * @return string
- */
- public function process(PHP_CodeCoverage $coverage, $target = null, $name = null)
- {
- $xmlDocument = new DOMDocument('1.0', 'UTF-8');
- $xmlDocument->formatOutput = true;
-
- $xmlCoverage = $xmlDocument->createElement('coverage');
- $xmlCoverage->setAttribute('generated', (int) $_SERVER['REQUEST_TIME']);
- $xmlDocument->appendChild($xmlCoverage);
-
- $xmlProject = $xmlDocument->createElement('project');
- $xmlProject->setAttribute('timestamp', (int) $_SERVER['REQUEST_TIME']);
-
- if (is_string($name)) {
- $xmlProject->setAttribute('name', $name);
- }
-
- $xmlCoverage->appendChild($xmlProject);
-
- $packages = array();
- $report = $coverage->getReport();
- unset($coverage);
-
- foreach ($report as $item) {
- $namespace = 'global';
-
- if (!$item instanceof PHP_CodeCoverage_Report_Node_File) {
- continue;
- }
-
- $xmlFile = $xmlDocument->createElement('file');
- $xmlFile->setAttribute('name', $item->getPath());
-
- $classes = $item->getClassesAndTraits();
- $coverage = $item->getCoverageData();
- $lines = array();
-
- foreach ($classes as $className => $class) {
- $classStatements = 0;
- $coveredClassStatements = 0;
- $coveredMethods = 0;
- $classMethods = 0;
-
- foreach ($class['methods'] as $methodName => $method) {
- if ($method['executableLines'] == 0) {
- continue;
- }
-
- $classMethods++;
- $classStatements += $method['executableLines'];
- $coveredClassStatements += $method['executedLines'];
- if ($method['coverage'] == 100) {
- $coveredMethods++;
- }
-
- $methodCount = 0;
- for ($i = $method['startLine'];
- $i <= $method['endLine'];
- $i++) {
- if (isset($coverage[$i]) && ($coverage[$i] !== null)) {
- $methodCount = max($methodCount, count($coverage[$i]));
- }
- }
-
- $lines[$method['startLine']] = array(
- 'count' => $methodCount,
- 'crap' => $method['crap'],
- 'type' => 'method',
- 'name' => $methodName
- );
- }
-
- if (!empty($class['package']['namespace'])) {
- $namespace = $class['package']['namespace'];
- }
-
- $xmlClass = $xmlDocument->createElement('class');
- $xmlClass->setAttribute('name', $className);
- $xmlClass->setAttribute('namespace', $namespace);
-
- if (!empty($class['package']['fullPackage'])) {
- $xmlClass->setAttribute(
- 'fullPackage',
- $class['package']['fullPackage']
- );
- }
-
- if (!empty($class['package']['category'])) {
- $xmlClass->setAttribute(
- 'category',
- $class['package']['category']
- );
- }
-
- if (!empty($class['package']['package'])) {
- $xmlClass->setAttribute(
- 'package',
- $class['package']['package']
- );
- }
-
- if (!empty($class['package']['subpackage'])) {
- $xmlClass->setAttribute(
- 'subpackage',
- $class['package']['subpackage']
- );
- }
-
- $xmlFile->appendChild($xmlClass);
-
- $xmlMetrics = $xmlDocument->createElement('metrics');
- $xmlMetrics->setAttribute('methods', $classMethods);
- $xmlMetrics->setAttribute('coveredmethods', $coveredMethods);
- $xmlMetrics->setAttribute('conditionals', 0);
- $xmlMetrics->setAttribute('coveredconditionals', 0);
- $xmlMetrics->setAttribute('statements', $classStatements);
- $xmlMetrics->setAttribute(
- 'coveredstatements',
- $coveredClassStatements
- );
- $xmlMetrics->setAttribute(
- 'elements',
- $classMethods +
- $classStatements
- /* + conditionals */
- );
- $xmlMetrics->setAttribute(
- 'coveredelements',
- $coveredMethods +
- $coveredClassStatements
- /* + coveredconditionals */
- );
- $xmlClass->appendChild($xmlMetrics);
- }
-
- foreach ($coverage as $line => $data) {
- if ($data === null || isset($lines[$line])) {
- continue;
- }
-
- $lines[$line] = array(
- 'count' => count($data), 'type' => 'stmt'
- );
- }
-
- ksort($lines);
-
- foreach ($lines as $line => $data) {
- $xmlLine = $xmlDocument->createElement('line');
- $xmlLine->setAttribute('num', $line);
- $xmlLine->setAttribute('type', $data['type']);
-
- if (isset($data['name'])) {
- $xmlLine->setAttribute('name', $data['name']);
- }
-
- if (isset($data['crap'])) {
- $xmlLine->setAttribute('crap', $data['crap']);
- }
-
- $xmlLine->setAttribute('count', $data['count']);
- $xmlFile->appendChild($xmlLine);
- }
-
- $linesOfCode = $item->getLinesOfCode();
-
- $xmlMetrics = $xmlDocument->createElement('metrics');
- $xmlMetrics->setAttribute('loc', $linesOfCode['loc']);
- $xmlMetrics->setAttribute('ncloc', $linesOfCode['ncloc']);
- $xmlMetrics->setAttribute('classes', $item->getNumClassesAndTraits());
- $xmlMetrics->setAttribute('methods', $item->getNumMethods());
- $xmlMetrics->setAttribute(
- 'coveredmethods',
- $item->getNumTestedMethods()
- );
- $xmlMetrics->setAttribute('conditionals', 0);
- $xmlMetrics->setAttribute('coveredconditionals', 0);
- $xmlMetrics->setAttribute(
- 'statements',
- $item->getNumExecutableLines()
- );
- $xmlMetrics->setAttribute(
- 'coveredstatements',
- $item->getNumExecutedLines()
- );
- $xmlMetrics->setAttribute(
- 'elements',
- $item->getNumMethods() + $item->getNumExecutableLines()
- /* + conditionals */
- );
- $xmlMetrics->setAttribute(
- 'coveredelements',
- $item->getNumTestedMethods() + $item->getNumExecutedLines()
- /* + coveredconditionals */
- );
- $xmlFile->appendChild($xmlMetrics);
-
- if ($namespace == 'global') {
- $xmlProject->appendChild($xmlFile);
- } else {
- if (!isset($packages[$namespace])) {
- $packages[$namespace] = $xmlDocument->createElement(
- 'package'
- );
-
- $packages[$namespace]->setAttribute('name', $namespace);
- $xmlProject->appendChild($packages[$namespace]);
- }
-
- $packages[$namespace]->appendChild($xmlFile);
- }
- }
-
- $linesOfCode = $report->getLinesOfCode();
-
- $xmlMetrics = $xmlDocument->createElement('metrics');
- $xmlMetrics->setAttribute('files', count($report));
- $xmlMetrics->setAttribute('loc', $linesOfCode['loc']);
- $xmlMetrics->setAttribute('ncloc', $linesOfCode['ncloc']);
- $xmlMetrics->setAttribute(
- 'classes',
- $report->getNumClassesAndTraits()
- );
- $xmlMetrics->setAttribute('methods', $report->getNumMethods());
- $xmlMetrics->setAttribute(
- 'coveredmethods',
- $report->getNumTestedMethods()
- );
- $xmlMetrics->setAttribute('conditionals', 0);
- $xmlMetrics->setAttribute('coveredconditionals', 0);
- $xmlMetrics->setAttribute(
- 'statements',
- $report->getNumExecutableLines()
- );
- $xmlMetrics->setAttribute(
- 'coveredstatements',
- $report->getNumExecutedLines()
- );
- $xmlMetrics->setAttribute(
- 'elements',
- $report->getNumMethods() + $report->getNumExecutableLines()
- /* + conditionals */
- );
- $xmlMetrics->setAttribute(
- 'coveredelements',
- $report->getNumTestedMethods() + $report->getNumExecutedLines()
- /* + coveredconditionals */
- );
-
- $xmlProject->appendChild($xmlMetrics);
-
- if ($target !== null) {
- if (!is_dir(dirname($target))) {
- mkdir(dirname($target), 0777, true);
- }
-
- return $xmlDocument->save($target);
- } else {
- return $xmlDocument->saveXML();
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Crap4j.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Crap4j.php
deleted file mode 100644
index c006ea61..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Crap4j.php
+++ /dev/null
@@ -1,164 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_Crap4j
-{
- /**
- * @var int
- */
- private $threshold;
-
- /**
- * @param int $threshold
- */
- public function __construct($threshold = 30)
- {
- if (!is_int($threshold)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'integer'
- );
- }
-
- $this->threshold = $threshold;
- }
-
- /**
- * @param PHP_CodeCoverage $coverage
- * @param string $target
- * @param string $name
- * @return string
- */
- public function process(PHP_CodeCoverage $coverage, $target = null, $name = null)
- {
- $document = new DOMDocument('1.0', 'UTF-8');
- $document->formatOutput = true;
-
- $root = $document->createElement('crap_result');
- $document->appendChild($root);
-
- $project = $document->createElement('project', is_string($name) ? $name : '');
- $root->appendChild($project);
- $root->appendChild($document->createElement('timestamp', date('Y-m-d H:i:s', (int) $_SERVER['REQUEST_TIME'])));
-
- $stats = $document->createElement('stats');
- $methodsNode = $document->createElement('methods');
-
- $report = $coverage->getReport();
- unset($coverage);
-
- $fullMethodCount = 0;
- $fullCrapMethodCount = 0;
- $fullCrapLoad = 0;
- $fullCrap = 0;
-
- foreach ($report as $item) {
- $namespace = 'global';
-
- if (!$item instanceof PHP_CodeCoverage_Report_Node_File) {
- continue;
- }
-
- $file = $document->createElement('file');
- $file->setAttribute('name', $item->getPath());
-
- $classes = $item->getClassesAndTraits();
-
- foreach ($classes as $className => $class) {
- foreach ($class['methods'] as $methodName => $method) {
- $crapLoad = $this->getCrapLoad($method['crap'], $method['ccn'], $method['coverage']);
-
- $fullCrap += $method['crap'];
- $fullCrapLoad += $crapLoad;
- $fullMethodCount++;
-
- if ($method['crap'] >= $this->threshold) {
- $fullCrapMethodCount++;
- }
-
- $methodNode = $document->createElement('method');
-
- if (!empty($class['package']['namespace'])) {
- $namespace = $class['package']['namespace'];
- }
-
- $methodNode->appendChild($document->createElement('package', $namespace));
- $methodNode->appendChild($document->createElement('className', $className));
- $methodNode->appendChild($document->createElement('methodName', $methodName));
- $methodNode->appendChild($document->createElement('methodSignature', htmlspecialchars($method['signature'])));
- $methodNode->appendChild($document->createElement('fullMethod', htmlspecialchars($method['signature'])));
- $methodNode->appendChild($document->createElement('crap', $this->roundValue($method['crap'])));
- $methodNode->appendChild($document->createElement('complexity', $method['ccn']));
- $methodNode->appendChild($document->createElement('coverage', $this->roundValue($method['coverage'])));
- $methodNode->appendChild($document->createElement('crapLoad', round($crapLoad)));
-
- $methodsNode->appendChild($methodNode);
- }
- }
- }
-
- $stats->appendChild($document->createElement('name', 'Method Crap Stats'));
- $stats->appendChild($document->createElement('methodCount', $fullMethodCount));
- $stats->appendChild($document->createElement('crapMethodCount', $fullCrapMethodCount));
- $stats->appendChild($document->createElement('crapLoad', round($fullCrapLoad)));
- $stats->appendChild($document->createElement('totalCrap', $fullCrap));
-
- if ($fullMethodCount > 0) {
- $crapMethodPercent = $this->roundValue((100 * $fullCrapMethodCount) / $fullMethodCount);
- } else {
- $crapMethodPercent = 0;
- }
-
- $stats->appendChild($document->createElement('crapMethodPercent', $crapMethodPercent));
-
- $root->appendChild($stats);
- $root->appendChild($methodsNode);
-
- if ($target !== null) {
- if (!is_dir(dirname($target))) {
- mkdir(dirname($target), 0777, true);
- }
-
- return $document->save($target);
- } else {
- return $document->saveXML();
- }
- }
-
- /**
- * @param float $crapValue
- * @param int $cyclomaticComplexity
- * @param float $coveragePercent
- * @return float
- */
- private function getCrapLoad($crapValue, $cyclomaticComplexity, $coveragePercent)
- {
- $crapLoad = 0;
-
- if ($crapValue >= $this->threshold) {
- $crapLoad += $cyclomaticComplexity * (1.0 - $coveragePercent / 100);
- $crapLoad += $cyclomaticComplexity / $this->threshold;
- }
-
- return $crapLoad;
- }
-
- /**
- * @param float $value
- * @return float
- */
- private function roundValue($value)
- {
- return round($value, 2);
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Factory.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Factory.php
deleted file mode 100644
index b28964e8..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Factory.php
+++ /dev/null
@@ -1,242 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Factory for PHP_CodeCoverage_Report_Node_* object graphs.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Report_Factory
-{
- /**
- * @param PHP_CodeCoverage $coverage
- * @return PHP_CodeCoverage_Report_Node_Directory
- */
- public function create(PHP_CodeCoverage $coverage)
- {
- $files = $coverage->getData();
- $commonPath = $this->reducePaths($files);
- $root = new PHP_CodeCoverage_Report_Node_Directory(
- $commonPath,
- null
- );
-
- $this->addItems(
- $root,
- $this->buildDirectoryStructure($files),
- $coverage->getTests(),
- $coverage->getCacheTokens()
- );
-
- return $root;
- }
-
- /**
- * @param PHP_CodeCoverage_Report_Node_Directory $root
- * @param array $items
- * @param array $tests
- * @param bool $cacheTokens
- */
- private function addItems(PHP_CodeCoverage_Report_Node_Directory $root, array $items, array $tests, $cacheTokens)
- {
- foreach ($items as $key => $value) {
- if (substr($key, -2) == '/f') {
- $key = substr($key, 0, -2);
-
- if (file_exists($root->getPath() . DIRECTORY_SEPARATOR . $key)) {
- $root->addFile($key, $value, $tests, $cacheTokens);
- }
- } else {
- $child = $root->addDirectory($key);
- $this->addItems($child, $value, $tests, $cacheTokens);
- }
- }
- }
-
- /**
- * Builds an array representation of the directory structure.
- *
- * For instance,
- *
- * <code>
- * Array
- * (
- * [Money.php] => Array
- * (
- * ...
- * )
- *
- * [MoneyBag.php] => Array
- * (
- * ...
- * )
- * )
- * </code>
- *
- * is transformed into
- *
- * <code>
- * Array
- * (
- * [.] => Array
- * (
- * [Money.php] => Array
- * (
- * ...
- * )
- *
- * [MoneyBag.php] => Array
- * (
- * ...
- * )
- * )
- * )
- * </code>
- *
- * @param array $files
- * @return array
- */
- private function buildDirectoryStructure($files)
- {
- $result = array();
-
- foreach ($files as $path => $file) {
- $path = explode('/', $path);
- $pointer = &$result;
- $max = count($path);
-
- for ($i = 0; $i < $max; $i++) {
- if ($i == ($max - 1)) {
- $type = '/f';
- } else {
- $type = '';
- }
-
- $pointer = &$pointer[$path[$i] . $type];
- }
-
- $pointer = $file;
- }
-
- return $result;
- }
-
- /**
- * Reduces the paths by cutting the longest common start path.
- *
- * For instance,
- *
- * <code>
- * Array
- * (
- * [/home/sb/Money/Money.php] => Array
- * (
- * ...
- * )
- *
- * [/home/sb/Money/MoneyBag.php] => Array
- * (
- * ...
- * )
- * )
- * </code>
- *
- * is reduced to
- *
- * <code>
- * Array
- * (
- * [Money.php] => Array
- * (
- * ...
- * )
- *
- * [MoneyBag.php] => Array
- * (
- * ...
- * )
- * )
- * </code>
- *
- * @param array $files
- * @return string
- */
- private function reducePaths(&$files)
- {
- if (empty($files)) {
- return '.';
- }
-
- $commonPath = '';
- $paths = array_keys($files);
-
- if (count($files) == 1) {
- $commonPath = dirname($paths[0]) . '/';
- $files[basename($paths[0])] = $files[$paths[0]];
-
- unset($files[$paths[0]]);
-
- return $commonPath;
- }
-
- $max = count($paths);
-
- for ($i = 0; $i < $max; $i++) {
- // strip phar:// prefixes
- if (strpos($paths[$i], 'phar://') === 0) {
- $paths[$i] = substr($paths[$i], 7);
- $paths[$i] = strtr($paths[$i], '/', DIRECTORY_SEPARATOR);
- }
- $paths[$i] = explode(DIRECTORY_SEPARATOR, $paths[$i]);
-
- if (empty($paths[$i][0])) {
- $paths[$i][0] = DIRECTORY_SEPARATOR;
- }
- }
-
- $done = false;
- $max = count($paths);
-
- while (!$done) {
- for ($i = 0; $i < $max - 1; $i++) {
- if (!isset($paths[$i][0]) ||
- !isset($paths[$i+1][0]) ||
- $paths[$i][0] != $paths[$i+1][0]) {
- $done = true;
- break;
- }
- }
-
- if (!$done) {
- $commonPath .= $paths[0][0];
-
- if ($paths[0][0] != DIRECTORY_SEPARATOR) {
- $commonPath .= DIRECTORY_SEPARATOR;
- }
-
- for ($i = 0; $i < $max; $i++) {
- array_shift($paths[$i]);
- }
- }
- }
-
- $original = array_keys($files);
- $max = count($original);
-
- for ($i = 0; $i < $max; $i++) {
- $files[implode('/', $paths[$i])] = $files[$original[$i]];
- unset($files[$original[$i]]);
- }
-
- ksort($files);
-
- return substr($commonPath, 0, -1);
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php
deleted file mode 100644
index 80916ef3..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php
+++ /dev/null
@@ -1,182 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Generates an HTML report from an PHP_CodeCoverage object.
- *
- * @since Class available since Release 1.0.0
- */
-class PHP_CodeCoverage_Report_HTML
-{
- /**
- * @var string
- */
- private $templatePath;
-
- /**
- * @var string
- */
- private $generator;
-
- /**
- * @var int
- */
- private $lowUpperBound;
-
- /**
- * @var int
- */
- private $highLowerBound;
-
- /**
- * Constructor.
- *
- * @param int $lowUpperBound
- * @param int $highLowerBound
- * @param string $generator
- */
- public function __construct($lowUpperBound = 50, $highLowerBound = 90, $generator = '')
- {
- $this->generator = $generator;
- $this->highLowerBound = $highLowerBound;
- $this->lowUpperBound = $lowUpperBound;
-
- $this->templatePath = sprintf(
- '%s%sHTML%sRenderer%sTemplate%s',
- dirname(__FILE__),
- DIRECTORY_SEPARATOR,
- DIRECTORY_SEPARATOR,
- DIRECTORY_SEPARATOR,
- DIRECTORY_SEPARATOR
- );
- }
-
- /**
- * @param PHP_CodeCoverage $coverage
- * @param string $target
- */
- public function process(PHP_CodeCoverage $coverage, $target)
- {
- $target = $this->getDirectory($target);
- $report = $coverage->getReport();
- unset($coverage);
-
- if (!isset($_SERVER['REQUEST_TIME'])) {
- $_SERVER['REQUEST_TIME'] = time();
- }
-
- $date = date('D M j G:i:s T Y', $_SERVER['REQUEST_TIME']);
-
- $dashboard = new PHP_CodeCoverage_Report_HTML_Renderer_Dashboard(
- $this->templatePath,
- $this->generator,
- $date,
- $this->lowUpperBound,
- $this->highLowerBound
- );
-
- $directory = new PHP_CodeCoverage_Report_HTML_Renderer_Directory(
- $this->templatePath,
- $this->generator,
- $date,
- $this->lowUpperBound,
- $this->highLowerBound
- );
-
- $file = new PHP_CodeCoverage_Report_HTML_Renderer_File(
- $this->templatePath,
- $this->generator,
- $date,
- $this->lowUpperBound,
- $this->highLowerBound
- );
-
- $directory->render($report, $target . 'index.html');
- $dashboard->render($report, $target . 'dashboard.html');
-
- foreach ($report as $node) {
- $id = $node->getId();
-
- if ($node instanceof PHP_CodeCoverage_Report_Node_Directory) {
- if (!file_exists($target . $id)) {
- mkdir($target . $id, 0777, true);
- }
-
- $directory->render($node, $target . $id . '/index.html');
- $dashboard->render($node, $target . $id . '/dashboard.html');
- } else {
- $dir = dirname($target . $id);
-
- if (!file_exists($dir)) {
- mkdir($dir, 0777, true);
- }
-
- $file->render($node, $target . $id . '.html');
- }
- }
-
- $this->copyFiles($target);
- }
-
- /**
- * @param string $target
- */
- private function copyFiles($target)
- {
- $dir = $this->getDirectory($target . 'css');
- copy($this->templatePath . 'css/bootstrap.min.css', $dir . 'bootstrap.min.css');
- copy($this->templatePath . 'css/nv.d3.min.css', $dir . 'nv.d3.min.css');
- copy($this->templatePath . 'css/style.css', $dir . 'style.css');
-
- $dir = $this->getDirectory($target . 'fonts');
- copy($this->templatePath . 'fonts/glyphicons-halflings-regular.eot', $dir . 'glyphicons-halflings-regular.eot');
- copy($this->templatePath . 'fonts/glyphicons-halflings-regular.svg', $dir . 'glyphicons-halflings-regular.svg');
- copy($this->templatePath . 'fonts/glyphicons-halflings-regular.ttf', $dir . 'glyphicons-halflings-regular.ttf');
- copy($this->templatePath . 'fonts/glyphicons-halflings-regular.woff', $dir . 'glyphicons-halflings-regular.woff');
- copy($this->templatePath . 'fonts/glyphicons-halflings-regular.woff2', $dir . 'glyphicons-halflings-regular.woff2');
-
- $dir = $this->getDirectory($target . 'js');
- copy($this->templatePath . 'js/bootstrap.min.js', $dir . 'bootstrap.min.js');
- copy($this->templatePath . 'js/d3.min.js', $dir . 'd3.min.js');
- copy($this->templatePath . 'js/holder.min.js', $dir . 'holder.min.js');
- copy($this->templatePath . 'js/html5shiv.min.js', $dir . 'html5shiv.min.js');
- copy($this->templatePath . 'js/jquery.min.js', $dir . 'jquery.min.js');
- copy($this->templatePath . 'js/nv.d3.min.js', $dir . 'nv.d3.min.js');
- copy($this->templatePath . 'js/respond.min.js', $dir . 'respond.min.js');
- }
-
- /**
- * @param string $directory
- * @return string
- * @throws PHP_CodeCoverage_Exception
- * @since Method available since Release 1.2.0
- */
- private function getDirectory($directory)
- {
- if (substr($directory, -1, 1) != DIRECTORY_SEPARATOR) {
- $directory .= DIRECTORY_SEPARATOR;
- }
-
- if (is_dir($directory)) {
- return $directory;
- }
-
- if (@mkdir($directory, 0777, true)) {
- return $directory;
- }
-
- throw new PHP_CodeCoverage_Exception(
- sprintf(
- 'Directory "%s" does not exist.',
- $directory
- )
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer.php
deleted file mode 100644
index 51aa15e6..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer.php
+++ /dev/null
@@ -1,271 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Environment\Runtime;
-
-/**
- * Base class for PHP_CodeCoverage_Report_Node renderers.
- *
- * @since Class available since Release 1.1.0
- */
-abstract class PHP_CodeCoverage_Report_HTML_Renderer
-{
- /**
- * @var string
- */
- protected $templatePath;
-
- /**
- * @var string
- */
- protected $generator;
-
- /**
- * @var string
- */
- protected $date;
-
- /**
- * @var int
- */
- protected $lowUpperBound;
-
- /**
- * @var int
- */
- protected $highLowerBound;
-
- /**
- * @var string
- */
- protected $version;
-
- /**
- * Constructor.
- *
- * @param string $templatePath
- * @param string $generator
- * @param string $date
- * @param int $lowUpperBound
- * @param int $highLowerBound
- */
- public function __construct($templatePath, $generator, $date, $lowUpperBound, $highLowerBound)
- {
- $version = new SebastianBergmann\Version('2.2.4', dirname(dirname(dirname(dirname(__DIR__)))));
-
- $this->templatePath = $templatePath;
- $this->generator = $generator;
- $this->date = $date;
- $this->lowUpperBound = $lowUpperBound;
- $this->highLowerBound = $highLowerBound;
- $this->version = $version->getVersion();
- }
-
- /**
- * @param Text_Template $template
- * @param array $data
- * @return string
- */
- protected function renderItemTemplate(Text_Template $template, array $data)
- {
- $numSeparator = '&nbsp;/&nbsp;';
-
- if (isset($data['numClasses']) && $data['numClasses'] > 0) {
- $classesLevel = $this->getColorLevel($data['testedClassesPercent']);
-
- $classesNumber = $data['numTestedClasses'] . $numSeparator .
- $data['numClasses'];
-
- $classesBar = $this->getCoverageBar(
- $data['testedClassesPercent']
- );
- } else {
- $classesLevel = 'success';
- $classesNumber = '0' . $numSeparator . '0';
- $classesBar = $this->getCoverageBar(100);
- }
-
- if ($data['numMethods'] > 0) {
- $methodsLevel = $this->getColorLevel($data['testedMethodsPercent']);
-
- $methodsNumber = $data['numTestedMethods'] . $numSeparator .
- $data['numMethods'];
-
- $methodsBar = $this->getCoverageBar(
- $data['testedMethodsPercent']
- );
- } else {
- $methodsLevel = 'success';
- $methodsNumber = '0' . $numSeparator . '0';
- $methodsBar = $this->getCoverageBar(100);
- $data['testedMethodsPercentAsString'] = '100.00%';
- }
-
- if ($data['numExecutableLines'] > 0) {
- $linesLevel = $this->getColorLevel($data['linesExecutedPercent']);
-
- $linesNumber = $data['numExecutedLines'] . $numSeparator .
- $data['numExecutableLines'];
-
- $linesBar = $this->getCoverageBar(
- $data['linesExecutedPercent']
- );
- } else {
- $linesLevel = 'success';
- $linesNumber = '0' . $numSeparator . '0';
- $linesBar = $this->getCoverageBar(100);
- $data['linesExecutedPercentAsString'] = '100.00%';
- }
-
- $template->setVar(
- array(
- 'icon' => isset($data['icon']) ? $data['icon'] : '',
- 'crap' => isset($data['crap']) ? $data['crap'] : '',
- 'name' => $data['name'],
- 'lines_bar' => $linesBar,
- 'lines_executed_percent' => $data['linesExecutedPercentAsString'],
- 'lines_level' => $linesLevel,
- 'lines_number' => $linesNumber,
- 'methods_bar' => $methodsBar,
- 'methods_tested_percent' => $data['testedMethodsPercentAsString'],
- 'methods_level' => $methodsLevel,
- 'methods_number' => $methodsNumber,
- 'classes_bar' => $classesBar,
- 'classes_tested_percent' => isset($data['testedClassesPercentAsString']) ? $data['testedClassesPercentAsString'] : '',
- 'classes_level' => $classesLevel,
- 'classes_number' => $classesNumber
- )
- );
-
- return $template->render();
- }
-
- /**
- * @param Text_Template $template
- * @param PHP_CodeCoverage_Report_Node $node
- */
- protected function setCommonTemplateVariables(Text_Template $template, PHP_CodeCoverage_Report_Node $node)
- {
- $runtime = new Runtime;
-
- $template->setVar(
- array(
- 'id' => $node->getId(),
- 'full_path' => $node->getPath(),
- 'path_to_root' => $this->getPathToRoot($node),
- 'breadcrumbs' => $this->getBreadcrumbs($node),
- 'date' => $this->date,
- 'version' => $this->version,
- 'runtime_name' => $runtime->getName(),
- 'runtime_version' => $runtime->getVersion(),
- 'runtime_link' => $runtime->getVendorUrl(),
- 'generator' => $this->generator,
- 'low_upper_bound' => $this->lowUpperBound,
- 'high_lower_bound' => $this->highLowerBound
- )
- );
- }
-
- protected function getBreadcrumbs(PHP_CodeCoverage_Report_Node $node)
- {
- $breadcrumbs = '';
- $path = $node->getPathAsArray();
- $pathToRoot = array();
- $max = count($path);
-
- if ($node instanceof PHP_CodeCoverage_Report_Node_File) {
- $max--;
- }
-
- for ($i = 0; $i < $max; $i++) {
- $pathToRoot[] = str_repeat('../', $i);
- }
-
- foreach ($path as $step) {
- if ($step !== $node) {
- $breadcrumbs .= $this->getInactiveBreadcrumb(
- $step,
- array_pop($pathToRoot)
- );
- } else {
- $breadcrumbs .= $this->getActiveBreadcrumb($step);
- }
- }
-
- return $breadcrumbs;
- }
-
- protected function getActiveBreadcrumb(PHP_CodeCoverage_Report_Node $node)
- {
- $buffer = sprintf(
- ' <li class="active">%s</li>' . "\n",
- $node->getName()
- );
-
- if ($node instanceof PHP_CodeCoverage_Report_Node_Directory) {
- $buffer .= ' <li>(<a href="dashboard.html">Dashboard</a>)</li>' . "\n";
- }
-
- return $buffer;
- }
-
- protected function getInactiveBreadcrumb(PHP_CodeCoverage_Report_Node $node, $pathToRoot)
- {
- return sprintf(
- ' <li><a href="%sindex.html">%s</a></li>' . "\n",
- $pathToRoot,
- $node->getName()
- );
- }
-
- protected function getPathToRoot(PHP_CodeCoverage_Report_Node $node)
- {
- $id = $node->getId();
- $depth = substr_count($id, '/');
-
- if ($id != 'index' &&
- $node instanceof PHP_CodeCoverage_Report_Node_Directory) {
- $depth++;
- }
-
- return str_repeat('../', $depth);
- }
-
- protected function getCoverageBar($percent)
- {
- $level = $this->getColorLevel($percent);
-
- $template = new Text_Template(
- $this->templatePath . 'coverage_bar.html',
- '{{',
- '}}'
- );
-
- $template->setVar(array('level' => $level, 'percent' => sprintf('%.2F', $percent)));
-
- return $template->render();
- }
-
- /**
- * @param int $percent
- * @return string
- */
- protected function getColorLevel($percent)
- {
- if ($percent <= $this->lowUpperBound) {
- return 'danger';
- } elseif ($percent > $this->lowUpperBound &&
- $percent < $this->highLowerBound) {
- return 'warning';
- } else {
- return 'success';
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Dashboard.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Dashboard.php
deleted file mode 100644
index f648097d..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Dashboard.php
+++ /dev/null
@@ -1,295 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Renders the dashboard for a PHP_CodeCoverage_Report_Node_Directory node.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Report_HTML_Renderer_Dashboard extends PHP_CodeCoverage_Report_HTML_Renderer
-{
- /**
- * @param PHP_CodeCoverage_Report_Node_Directory $node
- * @param string $file
- */
- public function render(PHP_CodeCoverage_Report_Node_Directory $node, $file)
- {
- $classes = $node->getClassesAndTraits();
- $template = new Text_Template(
- $this->templatePath . 'dashboard.html',
- '{{',
- '}}'
- );
-
- $this->setCommonTemplateVariables($template, $node);
-
- $baseLink = $node->getId() . '/';
- $complexity = $this->complexity($classes, $baseLink);
- $coverageDistribution = $this->coverageDistribution($classes);
- $insufficientCoverage = $this->insufficientCoverage($classes, $baseLink);
- $projectRisks = $this->projectRisks($classes, $baseLink);
-
- $template->setVar(
- array(
- 'insufficient_coverage_classes' => $insufficientCoverage['class'],
- 'insufficient_coverage_methods' => $insufficientCoverage['method'],
- 'project_risks_classes' => $projectRisks['class'],
- 'project_risks_methods' => $projectRisks['method'],
- 'complexity_class' => $complexity['class'],
- 'complexity_method' => $complexity['method'],
- 'class_coverage_distribution' => $coverageDistribution['class'],
- 'method_coverage_distribution' => $coverageDistribution['method']
- )
- );
-
- $template->renderTo($file);
- }
-
- /**
- * Returns the data for the Class/Method Complexity charts.
- *
- * @param array $classes
- * @param string $baseLink
- * @return array
- */
- protected function complexity(array $classes, $baseLink)
- {
- $result = array('class' => array(), 'method' => array());
-
- foreach ($classes as $className => $class) {
- foreach ($class['methods'] as $methodName => $method) {
- if ($className != '*') {
- $methodName = $className . '::' . $methodName;
- }
-
- $result['method'][] = array(
- $method['coverage'],
- $method['ccn'],
- sprintf(
- '<a href="%s">%s</a>',
- str_replace($baseLink, '', $method['link']),
- $methodName
- )
- );
- }
-
- $result['class'][] = array(
- $class['coverage'],
- $class['ccn'],
- sprintf(
- '<a href="%s">%s</a>',
- str_replace($baseLink, '', $class['link']),
- $className
- )
- );
- }
-
- return array(
- 'class' => json_encode($result['class']),
- 'method' => json_encode($result['method'])
- );
- }
-
- /**
- * Returns the data for the Class / Method Coverage Distribution chart.
- *
- * @param array $classes
- * @return array
- */
- protected function coverageDistribution(array $classes)
- {
- $result = array(
- 'class' => array(
- '0%' => 0,
- '0-10%' => 0,
- '10-20%' => 0,
- '20-30%' => 0,
- '30-40%' => 0,
- '40-50%' => 0,
- '50-60%' => 0,
- '60-70%' => 0,
- '70-80%' => 0,
- '80-90%' => 0,
- '90-100%' => 0,
- '100%' => 0
- ),
- 'method' => array(
- '0%' => 0,
- '0-10%' => 0,
- '10-20%' => 0,
- '20-30%' => 0,
- '30-40%' => 0,
- '40-50%' => 0,
- '50-60%' => 0,
- '60-70%' => 0,
- '70-80%' => 0,
- '80-90%' => 0,
- '90-100%' => 0,
- '100%' => 0
- )
- );
-
- foreach ($classes as $class) {
- foreach ($class['methods'] as $methodName => $method) {
- if ($method['coverage'] == 0) {
- $result['method']['0%']++;
- } elseif ($method['coverage'] == 100) {
- $result['method']['100%']++;
- } else {
- $key = floor($method['coverage'] / 10) * 10;
- $key = $key . '-' . ($key + 10) . '%';
- $result['method'][$key]++;
- }
- }
-
- if ($class['coverage'] == 0) {
- $result['class']['0%']++;
- } elseif ($class['coverage'] == 100) {
- $result['class']['100%']++;
- } else {
- $key = floor($class['coverage'] / 10) * 10;
- $key = $key . '-' . ($key + 10) . '%';
- $result['class'][$key]++;
- }
- }
-
- return array(
- 'class' => json_encode(array_values($result['class'])),
- 'method' => json_encode(array_values($result['method']))
- );
- }
-
- /**
- * Returns the classes / methods with insufficient coverage.
- *
- * @param array $classes
- * @param string $baseLink
- * @return array
- */
- protected function insufficientCoverage(array $classes, $baseLink)
- {
- $leastTestedClasses = array();
- $leastTestedMethods = array();
- $result = array('class' => '', 'method' => '');
-
- foreach ($classes as $className => $class) {
- foreach ($class['methods'] as $methodName => $method) {
- if ($method['coverage'] < $this->highLowerBound) {
- if ($className != '*') {
- $key = $className . '::' . $methodName;
- } else {
- $key = $methodName;
- }
-
- $leastTestedMethods[$key] = $method['coverage'];
- }
- }
-
- if ($class['coverage'] < $this->highLowerBound) {
- $leastTestedClasses[$className] = $class['coverage'];
- }
- }
-
- asort($leastTestedClasses);
- asort($leastTestedMethods);
-
- foreach ($leastTestedClasses as $className => $coverage) {
- $result['class'] .= sprintf(
- ' <tr><td><a href="%s">%s</a></td><td class="text-right">%d%%</td></tr>' . "\n",
- str_replace($baseLink, '', $classes[$className]['link']),
- $className,
- $coverage
- );
- }
-
- foreach ($leastTestedMethods as $methodName => $coverage) {
- list($class, $method) = explode('::', $methodName);
-
- $result['method'] .= sprintf(
- ' <tr><td><a href="%s"><abbr title="%s">%s</abbr></a></td><td class="text-right">%d%%</td></tr>' . "\n",
- str_replace($baseLink, '', $classes[$class]['methods'][$method]['link']),
- $methodName,
- $method,
- $coverage
- );
- }
-
- return $result;
- }
-
- /**
- * Returns the project risks according to the CRAP index.
- *
- * @param array $classes
- * @param string $baseLink
- * @return array
- */
- protected function projectRisks(array $classes, $baseLink)
- {
- $classRisks = array();
- $methodRisks = array();
- $result = array('class' => '', 'method' => '');
-
- foreach ($classes as $className => $class) {
- foreach ($class['methods'] as $methodName => $method) {
- if ($method['coverage'] < $this->highLowerBound &&
- $method['ccn'] > 1) {
- if ($className != '*') {
- $key = $className . '::' . $methodName;
- } else {
- $key = $methodName;
- }
-
- $methodRisks[$key] = $method['crap'];
- }
- }
-
- if ($class['coverage'] < $this->highLowerBound &&
- $class['ccn'] > count($class['methods'])) {
- $classRisks[$className] = $class['crap'];
- }
- }
-
- arsort($classRisks);
- arsort($methodRisks);
-
- foreach ($classRisks as $className => $crap) {
- $result['class'] .= sprintf(
- ' <tr><td><a href="%s">%s</a></td><td class="text-right">%d</td></tr>' . "\n",
- str_replace($baseLink, '', $classes[$className]['link']),
- $className,
- $crap
- );
- }
-
- foreach ($methodRisks as $methodName => $crap) {
- list($class, $method) = explode('::', $methodName);
-
- $result['method'] .= sprintf(
- ' <tr><td><a href="%s"><abbr title="%s">%s</abbr></a></td><td class="text-right">%d</td></tr>' . "\n",
- str_replace($baseLink, '', $classes[$class]['methods'][$method]['link']),
- $methodName,
- $method,
- $crap
- );
- }
-
- return $result;
- }
-
- protected function getActiveBreadcrumb(PHP_CodeCoverage_Report_Node $node)
- {
- return sprintf(
- ' <li><a href="index.html">%s</a></li>' . "\n" .
- ' <li class="active">(Dashboard)</li>' . "\n",
- $node->getName()
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Directory.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Directory.php
deleted file mode 100644
index 4415c520..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Directory.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Renders a PHP_CodeCoverage_Report_Node_Directory node.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Report_HTML_Renderer_Directory extends PHP_CodeCoverage_Report_HTML_Renderer
-{
- /**
- * @param PHP_CodeCoverage_Report_Node_Directory $node
- * @param string $file
- */
- public function render(PHP_CodeCoverage_Report_Node_Directory $node, $file)
- {
- $template = new Text_Template($this->templatePath . 'directory.html', '{{', '}}');
-
- $this->setCommonTemplateVariables($template, $node);
-
- $items = $this->renderItem($node, true);
-
- foreach ($node->getDirectories() as $item) {
- $items .= $this->renderItem($item);
- }
-
- foreach ($node->getFiles() as $item) {
- $items .= $this->renderItem($item);
- }
-
- $template->setVar(
- array(
- 'id' => $node->getId(),
- 'items' => $items
- )
- );
-
- $template->renderTo($file);
- }
-
- /**
- * @param PHP_CodeCoverage_Report_Node $item
- * @param bool $total
- * @return string
- */
- protected function renderItem(PHP_CodeCoverage_Report_Node $item, $total = false)
- {
- $data = array(
- 'numClasses' => $item->getNumClassesAndTraits(),
- 'numTestedClasses' => $item->getNumTestedClassesAndTraits(),
- 'numMethods' => $item->getNumMethods(),
- 'numTestedMethods' => $item->getNumTestedMethods(),
- 'linesExecutedPercent' => $item->getLineExecutedPercent(false),
- 'linesExecutedPercentAsString' => $item->getLineExecutedPercent(),
- 'numExecutedLines' => $item->getNumExecutedLines(),
- 'numExecutableLines' => $item->getNumExecutableLines(),
- 'testedMethodsPercent' => $item->getTestedMethodsPercent(false),
- 'testedMethodsPercentAsString' => $item->getTestedMethodsPercent(),
- 'testedClassesPercent' => $item->getTestedClassesAndTraitsPercent(false),
- 'testedClassesPercentAsString' => $item->getTestedClassesAndTraitsPercent()
- );
-
- if ($total) {
- $data['name'] = 'Total';
- } else {
- if ($item instanceof PHP_CodeCoverage_Report_Node_Directory) {
- $data['name'] = sprintf(
- '<a href="%s/index.html">%s</a>',
- $item->getName(),
- $item->getName()
- );
-
- $data['icon'] = '<span class="glyphicon glyphicon-folder-open"></span> ';
- } else {
- $data['name'] = sprintf(
- '<a href="%s.html">%s</a>',
- $item->getName(),
- $item->getName()
- );
-
- $data['icon'] = '<span class="glyphicon glyphicon-file"></span> ';
- }
- }
-
- return $this->renderItemTemplate(
- new Text_Template($this->templatePath . 'directory_item.html', '{{', '}}'),
- $data
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/File.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/File.php
deleted file mode 100644
index d52345d5..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/File.php
+++ /dev/null
@@ -1,556 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-// @codeCoverageIgnoreStart
-if (!defined('T_TRAIT')) {
- define('T_TRAIT', 1001);
-}
-
-if (!defined('T_INSTEADOF')) {
- define('T_INSTEADOF', 1002);
-}
-
-if (!defined('T_CALLABLE')) {
- define('T_CALLABLE', 1003);
-}
-
-if (!defined('T_FINALLY')) {
- define('T_FINALLY', 1004);
-}
-
-if (!defined('T_YIELD')) {
- define('T_YIELD', 1005);
-}
-// @codeCoverageIgnoreEnd
-
-/**
- * Renders a PHP_CodeCoverage_Report_Node_File node.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Report_HTML_Renderer_File extends PHP_CodeCoverage_Report_HTML_Renderer
-{
- /**
- * @var int
- */
- private $htmlspecialcharsFlags;
-
- /**
- * Constructor.
- *
- * @param string $templatePath
- * @param string $generator
- * @param string $date
- * @param int $lowUpperBound
- * @param int $highLowerBound
- */
- public function __construct($templatePath, $generator, $date, $lowUpperBound, $highLowerBound)
- {
- parent::__construct(
- $templatePath,
- $generator,
- $date,
- $lowUpperBound,
- $highLowerBound
- );
-
- $this->htmlspecialcharsFlags = ENT_COMPAT;
-
- if (PHP_VERSION_ID >= 50400 && defined('ENT_SUBSTITUTE')) {
- $this->htmlspecialcharsFlags = $this->htmlspecialcharsFlags | ENT_HTML401 | ENT_SUBSTITUTE;
- }
- }
-
- /**
- * @param PHP_CodeCoverage_Report_Node_File $node
- * @param string $file
- */
- public function render(PHP_CodeCoverage_Report_Node_File $node, $file)
- {
- $template = new Text_Template($this->templatePath . 'file.html', '{{', '}}');
-
- $template->setVar(
- array(
- 'items' => $this->renderItems($node),
- 'lines' => $this->renderSource($node)
- )
- );
-
- $this->setCommonTemplateVariables($template, $node);
-
- $template->renderTo($file);
- }
-
- /**
- * @param PHP_CodeCoverage_Report_Node_File $node
- * @return string
- */
- protected function renderItems(PHP_CodeCoverage_Report_Node_File $node)
- {
- $template = new Text_Template($this->templatePath . 'file_item.html', '{{', '}}');
-
- $methodItemTemplate = new Text_Template(
- $this->templatePath . 'method_item.html',
- '{{',
- '}}'
- );
-
- $items = $this->renderItemTemplate(
- $template,
- array(
- 'name' => 'Total',
- 'numClasses' => $node->getNumClassesAndTraits(),
- 'numTestedClasses' => $node->getNumTestedClassesAndTraits(),
- 'numMethods' => $node->getNumMethods(),
- 'numTestedMethods' => $node->getNumTestedMethods(),
- 'linesExecutedPercent' => $node->getLineExecutedPercent(false),
- 'linesExecutedPercentAsString' => $node->getLineExecutedPercent(),
- 'numExecutedLines' => $node->getNumExecutedLines(),
- 'numExecutableLines' => $node->getNumExecutableLines(),
- 'testedMethodsPercent' => $node->getTestedMethodsPercent(false),
- 'testedMethodsPercentAsString' => $node->getTestedMethodsPercent(),
- 'testedClassesPercent' => $node->getTestedClassesAndTraitsPercent(false),
- 'testedClassesPercentAsString' => $node->getTestedClassesAndTraitsPercent(),
- 'crap' => '<abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr>'
- )
- );
-
- $items .= $this->renderFunctionItems(
- $node->getFunctions(),
- $methodItemTemplate
- );
-
- $items .= $this->renderTraitOrClassItems(
- $node->getTraits(),
- $template,
- $methodItemTemplate
- );
-
- $items .= $this->renderTraitOrClassItems(
- $node->getClasses(),
- $template,
- $methodItemTemplate
- );
-
- return $items;
- }
-
- /**
- * @param array $items
- * @param Text_Template $template
- * @param Text_Template $methodItemTemplate
- * @return string
- */
- protected function renderTraitOrClassItems(array $items, Text_Template $template, Text_Template $methodItemTemplate)
- {
- if (empty($items)) {
- return '';
- }
-
- $buffer = '';
-
- foreach ($items as $name => $item) {
- $numMethods = count($item['methods']);
- $numTestedMethods = 0;
-
- foreach ($item['methods'] as $method) {
- if ($method['executedLines'] == $method['executableLines']) {
- $numTestedMethods++;
- }
- }
-
- $buffer .= $this->renderItemTemplate(
- $template,
- array(
- 'name' => $name,
- 'numClasses' => 1,
- 'numTestedClasses' => $numTestedMethods == $numMethods ? 1 : 0,
- 'numMethods' => $numMethods,
- 'numTestedMethods' => $numTestedMethods,
- 'linesExecutedPercent' => PHP_CodeCoverage_Util::percent(
- $item['executedLines'],
- $item['executableLines'],
- false
- ),
- 'linesExecutedPercentAsString' => PHP_CodeCoverage_Util::percent(
- $item['executedLines'],
- $item['executableLines'],
- true
- ),
- 'numExecutedLines' => $item['executedLines'],
- 'numExecutableLines' => $item['executableLines'],
- 'testedMethodsPercent' => PHP_CodeCoverage_Util::percent(
- $numTestedMethods,
- $numMethods,
- false
- ),
- 'testedMethodsPercentAsString' => PHP_CodeCoverage_Util::percent(
- $numTestedMethods,
- $numMethods,
- true
- ),
- 'testedClassesPercent' => PHP_CodeCoverage_Util::percent(
- $numTestedMethods == $numMethods ? 1 : 0,
- 1,
- false
- ),
- 'testedClassesPercentAsString' => PHP_CodeCoverage_Util::percent(
- $numTestedMethods == $numMethods ? 1 : 0,
- 1,
- true
- ),
- 'crap' => $item['crap']
- )
- );
-
- foreach ($item['methods'] as $method) {
- $buffer .= $this->renderFunctionOrMethodItem(
- $methodItemTemplate,
- $method,
- '&nbsp;'
- );
- }
- }
-
- return $buffer;
- }
-
- /**
- * @param array $functions
- * @param Text_Template $template
- * @return string
- */
- protected function renderFunctionItems(array $functions, Text_Template $template)
- {
- if (empty($functions)) {
- return '';
- }
-
- $buffer = '';
-
- foreach ($functions as $function) {
- $buffer .= $this->renderFunctionOrMethodItem(
- $template,
- $function
- );
- }
-
- return $buffer;
- }
-
- /**
- * @param Text_Template $template
- * @return string
- */
- protected function renderFunctionOrMethodItem(Text_Template $template, array $item, $indent = '')
- {
- $numTestedItems = $item['executedLines'] == $item['executableLines'] ? 1 : 0;
-
- return $this->renderItemTemplate(
- $template,
- array(
- 'name' => sprintf(
- '%s<a href="#%d"><abbr title="%s">%s</abbr></a>',
- $indent,
- $item['startLine'],
- htmlspecialchars($item['signature']),
- isset($item['functionName']) ? $item['functionName'] : $item['methodName']
- ),
- 'numMethods' => 1,
- 'numTestedMethods' => $numTestedItems,
- 'linesExecutedPercent' => PHP_CodeCoverage_Util::percent(
- $item['executedLines'],
- $item['executableLines'],
- false
- ),
- 'linesExecutedPercentAsString' => PHP_CodeCoverage_Util::percent(
- $item['executedLines'],
- $item['executableLines'],
- true
- ),
- 'numExecutedLines' => $item['executedLines'],
- 'numExecutableLines' => $item['executableLines'],
- 'testedMethodsPercent' => PHP_CodeCoverage_Util::percent(
- $numTestedItems,
- 1,
- false
- ),
- 'testedMethodsPercentAsString' => PHP_CodeCoverage_Util::percent(
- $numTestedItems,
- 1,
- true
- ),
- 'crap' => $item['crap']
- )
- );
- }
-
- /**
- * @param PHP_CodeCoverage_Report_Node_File $node
- * @return string
- */
- protected function renderSource(PHP_CodeCoverage_Report_Node_File $node)
- {
- $coverageData = $node->getCoverageData();
- $testData = $node->getTestData();
- $codeLines = $this->loadFile($node->getPath());
- $lines = '';
- $i = 1;
-
- foreach ($codeLines as $line) {
- $trClass = '';
- $popoverContent = '';
- $popoverTitle = '';
-
- if (array_key_exists($i, $coverageData)) {
- $numTests = count($coverageData[$i]);
-
- if ($coverageData[$i] === null) {
- $trClass = ' class="warning"';
- } elseif ($numTests == 0) {
- $trClass = ' class="danger"';
- } else {
- $lineCss = 'covered-by-large-tests';
- $popoverContent = '<ul>';
-
- if ($numTests > 1) {
- $popoverTitle = $numTests . ' tests cover line ' . $i;
- } else {
- $popoverTitle = '1 test covers line ' . $i;
- }
-
- foreach ($coverageData[$i] as $test) {
- if ($lineCss == 'covered-by-large-tests' && $testData[$test]['size'] == 'medium') {
- $lineCss = 'covered-by-medium-tests';
- } elseif ($testData[$test]['size'] == 'small') {
- $lineCss = 'covered-by-small-tests';
- }
-
- switch ($testData[$test]['status']) {
- case 0:
- switch ($testData[$test]['size']) {
- case 'small':
- $testCSS = ' class="covered-by-small-tests"';
- break;
-
- case 'medium':
- $testCSS = ' class="covered-by-medium-tests"';
- break;
-
- default:
- $testCSS = ' class="covered-by-large-tests"';
- break;
- }
- break;
-
- case 1:
- case 2:
- $testCSS = ' class="warning"';
- break;
-
- case 3:
- $testCSS = ' class="danger"';
- break;
-
- case 4:
- $testCSS = ' class="danger"';
- break;
-
- default:
- $testCSS = '';
- }
-
- $popoverContent .= sprintf(
- '<li%s>%s</li>',
- $testCSS,
- htmlspecialchars($test)
- );
- }
-
- $popoverContent .= '</ul>';
- $trClass = ' class="' . $lineCss . ' popin"';
- }
- }
-
- if (!empty($popoverTitle)) {
- $popover = sprintf(
- ' data-title="%s" data-content="%s" data-placement="bottom" data-html="true"',
- $popoverTitle,
- htmlspecialchars($popoverContent)
- );
- } else {
- $popover = '';
- }
-
- $lines .= sprintf(
- ' <tr%s%s><td><div align="right"><a name="%d"></a><a href="#%d">%d</a></div></td><td class="codeLine">%s</td></tr>' . "\n",
- $trClass,
- $popover,
- $i,
- $i,
- $i,
- $line
- );
-
- $i++;
- }
-
- return $lines;
- }
-
- /**
- * @param string $file
- * @return array
- */
- protected function loadFile($file)
- {
- $buffer = file_get_contents($file);
- $tokens = token_get_all($buffer);
- $result = array('');
- $i = 0;
- $stringFlag = false;
- $fileEndsWithNewLine = substr($buffer, -1) == "\n";
-
- unset($buffer);
-
- foreach ($tokens as $j => $token) {
- if (is_string($token)) {
- if ($token === '"' && $tokens[$j - 1] !== '\\') {
- $result[$i] .= sprintf(
- '<span class="string">%s</span>',
- htmlspecialchars($token)
- );
-
- $stringFlag = !$stringFlag;
- } else {
- $result[$i] .= sprintf(
- '<span class="keyword">%s</span>',
- htmlspecialchars($token)
- );
- }
-
- continue;
- }
-
- list($token, $value) = $token;
-
- $value = str_replace(
- array("\t", ' '),
- array('&nbsp;&nbsp;&nbsp;&nbsp;', '&nbsp;'),
- htmlspecialchars($value, $this->htmlspecialcharsFlags)
- );
-
- if ($value === "\n") {
- $result[++$i] = '';
- } else {
- $lines = explode("\n", $value);
-
- foreach ($lines as $jj => $line) {
- $line = trim($line);
-
- if ($line !== '') {
- if ($stringFlag) {
- $colour = 'string';
- } else {
- switch ($token) {
- case T_INLINE_HTML:
- $colour = 'html';
- break;
-
- case T_COMMENT:
- case T_DOC_COMMENT:
- $colour = 'comment';
- break;
-
- case T_ABSTRACT:
- case T_ARRAY:
- case T_AS:
- case T_BREAK:
- case T_CALLABLE:
- case T_CASE:
- case T_CATCH:
- case T_CLASS:
- case T_CLONE:
- case T_CONTINUE:
- case T_DEFAULT:
- case T_ECHO:
- case T_ELSE:
- case T_ELSEIF:
- case T_EMPTY:
- case T_ENDDECLARE:
- case T_ENDFOR:
- case T_ENDFOREACH:
- case T_ENDIF:
- case T_ENDSWITCH:
- case T_ENDWHILE:
- case T_EXIT:
- case T_EXTENDS:
- case T_FINAL:
- case T_FINALLY:
- case T_FOREACH:
- case T_FUNCTION:
- case T_GLOBAL:
- case T_IF:
- case T_IMPLEMENTS:
- case T_INCLUDE:
- case T_INCLUDE_ONCE:
- case T_INSTANCEOF:
- case T_INSTEADOF:
- case T_INTERFACE:
- case T_ISSET:
- case T_LOGICAL_AND:
- case T_LOGICAL_OR:
- case T_LOGICAL_XOR:
- case T_NAMESPACE:
- case T_NEW:
- case T_PRIVATE:
- case T_PROTECTED:
- case T_PUBLIC:
- case T_REQUIRE:
- case T_REQUIRE_ONCE:
- case T_RETURN:
- case T_STATIC:
- case T_THROW:
- case T_TRAIT:
- case T_TRY:
- case T_UNSET:
- case T_USE:
- case T_VAR:
- case T_WHILE:
- case T_YIELD:
- $colour = 'keyword';
- break;
-
- default:
- $colour = 'default';
- }
- }
-
- $result[$i] .= sprintf(
- '<span class="%s">%s</span>',
- $colour,
- $line
- );
- }
-
- if (isset($lines[$jj + 1])) {
- $result[++$i] = '';
- }
- }
- }
- }
-
- if ($fileEndsWithNewLine) {
- unset($result[count($result)-1]);
- }
-
- return $result;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist
deleted file mode 100644
index 5a09c354..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/coverage_bar.html.dist
+++ /dev/null
@@ -1,5 +0,0 @@
- <div class="progress">
- <div class="progress-bar progress-bar-{{level}}" role="progressbar" aria-valuenow="{{percent}}" aria-valuemin="0" aria-valuemax="100" style="width: {{percent}}%">
- <span class="sr-only">{{percent}}% covered ({{level}})</span>
- </div>
- </div>
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css
deleted file mode 100644
index cd1c616a..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/bootstrap.min.css
+++ /dev/null
@@ -1,5 +0,0 @@
-/*!
- * Bootstrap v3.3.4 (http://getbootstrap.com)
- * Copyright 2011-2015 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- *//*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date],input[type=time],input[type=datetime-local],input[type=month]{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px \9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.form-group-sm .form-control{height:30px;line-height:30px}select[multiple].form-group-sm .form-control,textarea.form-group-sm .form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:5px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.form-group-lg .form-control{height:46px;line-height:46px}select[multiple].form-group-lg .form-control,textarea.form-group-lg .form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:10px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.33px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px)and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px 15px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding:48px 0}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;line-height:1.4;filter:alpha(opacity=0);opacity:0}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-weight:400;line-height:1.42857143;text-align:left;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000;perspective:1000}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px)and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px)and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px)and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px)and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}} \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/nv.d3.min.css b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/nv.d3.min.css
deleted file mode 100644
index 7a6f7fe9..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/nv.d3.min.css
+++ /dev/null
@@ -1 +0,0 @@
-.nvd3 .nv-axis{pointer-events:none;opacity:1}.nvd3 .nv-axis path{fill:none;stroke:#000;stroke-opacity:.75;shape-rendering:crispEdges}.nvd3 .nv-axis path.domain{stroke-opacity:.75}.nvd3 .nv-axis.nv-x path.domain{stroke-opacity:0}.nvd3 .nv-axis line{fill:none;stroke:#e5e5e5;shape-rendering:crispEdges}.nvd3 .nv-axis .zero line,.nvd3 .nv-axis line.zero{stroke-opacity:.75}.nvd3 .nv-axis .nv-axisMaxMin text{font-weight:700}.nvd3 .x .nv-axis .nv-axisMaxMin text,.nvd3 .x2 .nv-axis .nv-axisMaxMin text,.nvd3 .x3 .nv-axis .nv-axisMaxMin text{text-anchor:middle}.nvd3 .nv-axis.nv-disabled{opacity:0}.nvd3 .nv-bars rect{fill-opacity:.75;transition:fill-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear}.nvd3 .nv-bars rect.hover{fill-opacity:1}.nvd3 .nv-bars .hover rect{fill:#add8e6}.nvd3 .nv-bars text{fill:rgba(0,0,0,0)}.nvd3 .nv-bars .hover text{fill:rgba(0,0,0,1)}.nvd3 .nv-multibar .nv-groups rect,.nvd3 .nv-multibarHorizontal .nv-groups rect,.nvd3 .nv-discretebar .nv-groups rect{stroke-opacity:0;transition:fill-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear}.nvd3 .nv-multibar .nv-groups rect:hover,.nvd3 .nv-multibarHorizontal .nv-groups rect:hover,.nvd3 .nv-candlestickBar .nv-ticks rect:hover,.nvd3 .nv-discretebar .nv-groups rect:hover{fill-opacity:1}.nvd3 .nv-discretebar .nv-groups text,.nvd3 .nv-multibarHorizontal .nv-groups text{font-weight:700;fill:rgba(0,0,0,1);stroke:rgba(0,0,0,0)}.nvd3 .nv-boxplot circle{fill-opacity:.5}.nvd3 .nv-boxplot circle:hover{fill-opacity:1}.nvd3 .nv-boxplot rect:hover{fill-opacity:1}.nvd3 line.nv-boxplot-median{stroke:#000}.nv-boxplot-tick:hover{stroke-width:2.5px}.nvd3.nv-bullet{font:10px sans-serif}.nvd3.nv-bullet .nv-measure{fill-opacity:.8}.nvd3.nv-bullet .nv-measure:hover{fill-opacity:1}.nvd3.nv-bullet .nv-marker{stroke:#000;stroke-width:2px}.nvd3.nv-bullet .nv-markerTriangle{stroke:#000;fill:#fff;stroke-width:1.5px}.nvd3.nv-bullet .nv-tick line{stroke:#666;stroke-width:.5px}.nvd3.nv-bullet .nv-range.nv-s0{fill:#eee}.nvd3.nv-bullet .nv-range.nv-s1{fill:#ddd}.nvd3.nv-bullet .nv-range.nv-s2{fill:#ccc}.nvd3.nv-bullet .nv-title{font-size:14px;font-weight:700}.nvd3.nv-bullet .nv-subtitle{fill:#999}.nvd3.nv-bullet .nv-range{fill:#bababa;fill-opacity:.4}.nvd3.nv-bullet .nv-range:hover{fill-opacity:.7}.nvd3.nv-candlestickBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.positive rect{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.negative rect{stroke:#d62728;fill:#d62728}.with-transitions .nv-candlestickBar .nv-ticks .nv-tick{transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-candlestickBar .nv-ticks line{stroke:#333}.nvd3 .nv-legend .nv-disabled rect{}.nvd3 .nv-check-box .nv-box{fill-opacity:0;stroke-width:2}.nvd3 .nv-check-box .nv-check{fill-opacity:0;stroke-width:4}.nvd3 .nv-series.nv-disabled .nv-check-box .nv-check{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-controlsWrap .nv-legend .nv-check-box .nv-check{opacity:0}.nvd3.nv-linePlusBar .nv-bar rect{fill-opacity:.75}.nvd3.nv-linePlusBar .nv-bar rect:hover{fill-opacity:1}.nvd3 .nv-groups path.nv-line{fill:none}.nvd3 .nv-groups path.nv-area{stroke:none}.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point{fill-opacity:0;stroke-opacity:0}.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point{fill-opacity:.5!important;stroke-opacity:.5!important}.with-transitions .nvd3 .nv-groups .nv-point{transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-scatter .nv-groups .nv-point.hover,.nvd3 .nv-groups .nv-point.hover{stroke-width:7px;fill-opacity:.95!important;stroke-opacity:.95!important}.nvd3 .nv-point-paths path{stroke:#aaa;stroke-opacity:0;fill:#eee;fill-opacity:0}.nvd3 .nv-indexLine{cursor:ew-resize}svg.nvd3-svg{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;display:block;width:100%;height:100%}.nvtooltip.with-3d-shadow,.with-3d-shadow .nvtooltip{-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.nvd3 text{font:400 12px Arial}.nvd3 .title{font:700 14px Arial}.nvd3 .nv-background{fill:#fff;fill-opacity:0}.nvd3.nv-noData{font-size:18px;font-weight:700}.nv-brush .extent{fill-opacity:.125;shape-rendering:crispEdges}.nv-brush .resize path{fill:#eee;stroke:#666}.nvd3 .nv-legend .nv-series{cursor:pointer}.nvd3 .nv-legend .nv-disabled circle{fill-opacity:0}.nvd3 .nv-brush .extent{fill-opacity:0!important}.nvd3 .nv-brushBackground rect{stroke:#000;stroke-width:.4;fill:#fff;fill-opacity:.7}.nvd3.nv-ohlcBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive{stroke:#2ca02c}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative{stroke:#d62728}.nvd3 .background path{fill:none;stroke:#EEE;stroke-opacity:.4;shape-rendering:crispEdges}.nvd3 .foreground path{fill:none;stroke-opacity:.7}.nvd3 .nv-parallelCoordinates-brush .extent{fill:#fff;fill-opacity:.6;stroke:gray;shape-rendering:crispEdges}.nvd3 .nv-parallelCoordinates .hover{fill-opacity:1;stroke-width:3px}.nvd3 .missingValuesline line{fill:none;stroke:#000;stroke-width:1;stroke-opacity:1;stroke-dasharray:5,5}.nvd3.nv-pie path{stroke-opacity:0;transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-pie .nv-pie-title{font-size:24px;fill:rgba(19,196,249,.59)}.nvd3.nv-pie .nv-slice text{stroke:#000;stroke-width:0}.nvd3.nv-pie path{stroke:#fff;stroke-width:1px;stroke-opacity:1}.nvd3.nv-pie .hover path{fill-opacity:.7}.nvd3.nv-pie .nv-label{pointer-events:none}.nvd3.nv-pie .nv-label rect{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-groups .nv-point.hover{stroke-width:20px;stroke-opacity:.5}.nvd3 .nv-scatter .nv-point.hover{fill-opacity:1}.nv-noninteractive{pointer-events:none}.nv-distx,.nv-disty{pointer-events:none}.nvd3.nv-sparkline path{fill:none}.nvd3.nv-sparklineplus g.nv-hoverValue{pointer-events:none}.nvd3.nv-sparklineplus .nv-hoverValue line{stroke:#333;stroke-width:1.5px}.nvd3.nv-sparklineplus,.nvd3.nv-sparklineplus g{pointer-events:all}.nvd3 .nv-hoverArea{fill-opacity:0;stroke-opacity:0}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-sparklineplus .nv-minValue{stroke:#d62728;fill:#d62728}.nvd3.nv-sparklineplus .nv-currentValue{font-weight:700;font-size:1.1em}.nvd3.nv-stackedarea path.nv-area{fill-opacity:.7;stroke-opacity:0;transition:fill-opacity 250ms linear,stroke-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear,stroke-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-stackedarea path.nv-area.hover{fill-opacity:.9}.nvd3.nv-stackedarea .nv-groups .nv-point{stroke-opacity:0;fill-opacity:0}.nvtooltip{position:absolute;background-color:rgba(255,255,255,1);color:rgba(0,0,0,1);padding:1px;border:1px solid rgba(0,0,0,.2);z-index:10000;display:block;font-family:Arial;font-size:13px;text-align:left;pointer-events:none;white-space:nowrap;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nvtooltip{background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.5);border-radius:4px}.nvtooltip.with-transitions,.with-transitions .nvtooltip{transition:opacity 50ms linear;-moz-transition:opacity 50ms linear;-webkit-transition:opacity 50ms linear;transition-delay:200ms;-moz-transition-delay:200ms;-webkit-transition-delay:200ms}.nvtooltip.x-nvtooltip,.nvtooltip.y-nvtooltip{padding:8px}.nvtooltip h3{margin:0;padding:4px 14px;line-height:18px;font-weight:400;background-color:rgba(247,247,247,.75);color:rgba(0,0,0,1);text-align:center;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.nvtooltip p{margin:0;padding:5px 14px;text-align:center}.nvtooltip span{display:inline-block;margin:2px 0}.nvtooltip table{margin:6px;border-spacing:0}.nvtooltip table td{padding:2px 9px 2px 0;vertical-align:middle}.nvtooltip table td.key{font-weight:400}.nvtooltip table td.value{text-align:right;font-weight:700}.nvtooltip table tr.highlight td{padding:1px 9px 1px 0;border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px}.nvtooltip table td.legend-color-guide div{width:8px;height:8px;vertical-align:middle}.nvtooltip table td.legend-color-guide div{width:12px;height:12px;border:1px solid #999}.nvtooltip .footer{padding:3px;text-align:center}.nvtooltip-pending-removal{pointer-events:none;display:none}.nvd3 .nv-interactiveGuideLine{pointer-events:none}.nvd3 line.nv-guideline{stroke:#ccc} \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/style.css b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/style.css
deleted file mode 100644
index 824fb317..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/css/style.css
+++ /dev/null
@@ -1,122 +0,0 @@
-body {
- padding-top: 10px;
-}
-
-.popover {
- max-width: none;
-}
-
-.glyphicon {
- margin-right:.25em;
-}
-
-.table-bordered>thead>tr>td {
- border-bottom-width: 1px;
-}
-
-.table tbody>tr>td, .table thead>tr>td {
- padding-top: 3px;
- padding-bottom: 3px;
-}
-
-.table-condensed tbody>tr>td {
- padding-top: 0;
- padding-bottom: 0;
-}
-
-.table .progress {
- margin-bottom: inherit;
-}
-
-.table-borderless th, .table-borderless td {
- border: 0 !important;
-}
-
-.table tbody tr.covered-by-large-tests, li.covered-by-large-tests, tr.success, td.success, li.success, span.success {
- background-color: #dff0d8;
-}
-
-.table tbody tr.covered-by-medium-tests, li.covered-by-medium-tests {
- background-color: #c3e3b5;
-}
-
-.table tbody tr.covered-by-small-tests, li.covered-by-small-tests {
- background-color: #99cb84;
-}
-
-.table tbody tr.danger, .table tbody td.danger, li.danger, span.danger {
- background-color: #f2dede;
-}
-
-.table tbody td.warning, li.warning, span.warning {
- background-color: #fcf8e3;
-}
-
-.table tbody td.info {
- background-color: #d9edf7;
-}
-
-td.big {
- width: 117px;
-}
-
-td.small {
-}
-
-td.codeLine {
- font-family: monospace;
- white-space: pre;
-}
-
-td span.comment {
- color: #888a85;
-}
-
-td span.default {
- color: #2e3436;
-}
-
-td span.html {
- color: #888a85;
-}
-
-td span.keyword {
- color: #2e3436;
- font-weight: bold;
-}
-
-pre span.string {
- color: #2e3436;
-}
-
-span.success, span.warning, span.danger {
- margin-right: 2px;
- padding-left: 10px;
- padding-right: 10px;
- text-align: center;
-}
-
-#classCoverageDistribution, #classComplexity {
- height: 200px;
- width: 475px;
-}
-
-#toplink {
- position: fixed;
- left: 5px;
- bottom: 5px;
- outline: 0;
-}
-
-svg text {
- font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
- font-size: 11px;
- color: #666;
- fill: #666;
-}
-
-.scrollbox {
- height:245px;
- overflow-x:hidden;
- overflow-y:scroll;
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.dist b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.dist
deleted file mode 100644
index ed189886..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/dashboard.html.dist
+++ /dev/null
@@ -1,284 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Dashboard for {{full_path}}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="{{path_to_root}}css/bootstrap.min.css" rel="stylesheet">
- <link href="{{path_to_root}}css/nv.d3.min.css" rel="stylesheet">
- <link href="{{path_to_root}}css/style.css" rel="stylesheet">
- <!--[if lt IE 9]>
- <script src="{{path_to_root}}js/html5shiv.min.js"></script>
- <script src="{{path_to_root}}js/respond.min.js"></script>
- <![endif]-->
- </head>
- <body>
- <header>
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <ol class="breadcrumb">
-{{breadcrumbs}}
- </ol>
- </div>
- </div>
- </div>
- </header>
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <h2>Classes</h2>
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <h3>Coverage Distribution</h3>
- <div id="classCoverageDistribution" style="height: 300px;">
- <svg></svg>
- </div>
- </div>
- <div class="col-md-6">
- <h3>Complexity</h3>
- <div id="classComplexity" style="height: 300px;">
- <svg></svg>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <h3>Insufficient Coverage</h3>
- <div class="scrollbox">
- <table class="table">
- <thead>
- <tr>
- <th>Class</th>
- <th class="text-right">Coverage</th>
- </tr>
- </thead>
- <tbody>
-{{insufficient_coverage_classes}}
- </tbody>
- </table>
- </div>
- </div>
- <div class="col-md-6">
- <h3>Project Risks</h3>
- <div class="scrollbox">
- <table class="table">
- <thead>
- <tr>
- <th>Class</th>
- <th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
- </tr>
- </thead>
- <tbody>
-{{project_risks_classes}}
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <h2>Methods</h2>
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <h3>Coverage Distribution</h3>
- <div id="methodCoverageDistribution" style="height: 300px;">
- <svg></svg>
- </div>
- </div>
- <div class="col-md-6">
- <h3>Complexity</h3>
- <div id="methodComplexity" style="height: 300px;">
- <svg></svg>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <h3>Insufficient Coverage</h3>
- <div class="scrollbox">
- <table class="table">
- <thead>
- <tr>
- <th>Method</th>
- <th class="text-right">Coverage</th>
- </tr>
- </thead>
- <tbody>
-{{insufficient_coverage_methods}}
- </tbody>
- </table>
- </div>
- </div>
- <div class="col-md-6">
- <h3>Project Risks</h3>
- <div class="scrollbox">
- <table class="table">
- <thead>
- <tr>
- <th>Method</th>
- <th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
- </tr>
- </thead>
- <tbody>
-{{project_risks_methods}}
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <footer>
- <hr/>
- <p>
- <small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage {{version}}</a> using <a href="{{runtime_link}}" target="_top">{{runtime_name}} {{runtime_version}}</a>{{generator}} at {{date}}.</small>
- </p>
- </footer>
- </div>
- <script src="{{path_to_root}}js/jquery.min.js" type="text/javascript"></script>
- <script src="{{path_to_root}}js/bootstrap.min.js" type="text/javascript"></script>
- <script src="{{path_to_root}}js/holder.min.js" type="text/javascript"></script>
- <script src="{{path_to_root}}js/d3.min.js" type="text/javascript"></script>
- <script src="{{path_to_root}}js/nv.d3.min.js" type="text/javascript"></script>
- <script type="text/javascript">
-$(document).ready(function() {
- nv.addGraph(function() {
- var chart = nv.models.multiBarChart();
- chart.tooltips(false)
- .showControls(false)
- .showLegend(false)
- .reduceXTicks(false)
- .staggerLabels(true)
- .yAxis.tickFormat(d3.format('d'));
-
- d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData({{class_coverage_distribution}}, "Class Coverage"))
- .transition().duration(500).call(chart);
-
- nv.utils.windowResize(chart.update);
-
- return chart;
- });
-
- nv.addGraph(function() {
- var chart = nv.models.multiBarChart();
- chart.tooltips(false)
- .showControls(false)
- .showLegend(false)
- .reduceXTicks(false)
- .staggerLabels(true)
- .yAxis.tickFormat(d3.format('d'));
-
- d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData({{method_coverage_distribution}}, "Method Coverage"))
- .transition().duration(500).call(chart);
-
- nv.utils.windowResize(chart.update);
-
- return chart;
- });
-
- function getCoverageDistributionData(data, label) {
- var labels = [
- '0%',
- '0-10%',
- '10-20%',
- '20-30%',
- '30-40%',
- '40-50%',
- '50-60%',
- '60-70%',
- '70-80%',
- '80-90%',
- '90-100%',
- '100%'
- ];
- var values = [];
- $.each(labels, function(key) {
- values.push({x: labels[key], y: data[key]});
- });
-
- return [
- {
- key: label,
- values: values,
- color: "#4572A7"
- }
- ];
- }
- nv.addGraph(function() {
- var chart = nv.models.scatterChart()
- .showDistX(true)
- .showDistY(true)
- .showLegend(false)
- .forceX([0, 100]);
- chart.tooltipContent(function(key, y, e, graph) {
- return '<p>' + graph.point.class + '</p>';
- });
-
- chart.xAxis.axisLabel('Code Coverage (in percent)');
- chart.yAxis.axisLabel('Cyclomatic Complexity');
-
- d3.select('#classComplexity svg')
- .datum(getComplexityData({{complexity_class}}, 'Class Complexity'))
- .transition()
- .duration(500)
- .call(chart);
-
- nv.utils.windowResize(chart.update);
-
- return chart;
- });
-
- nv.addGraph(function() {
- var chart = nv.models.scatterChart()
- .showDistX(true)
- .showDistY(true)
- .showLegend(false)
- .forceX([0, 100]);
- chart.tooltipContent(function(key, y, e, graph) {
- return '<p>' + graph.point.class + '</p>';
- });
-
- chart.xAxis.axisLabel('Code Coverage (in percent)');
- chart.yAxis.axisLabel('Method Complexity');
-
- d3.select('#methodComplexity svg')
- .datum(getComplexityData({{complexity_method}}, 'Method Complexity'))
- .transition()
- .duration(500)
- .call(chart);
-
- nv.utils.windowResize(chart.update);
-
- return chart;
- });
-
- function getComplexityData(data, label) {
- var values = [];
- $.each(data, function(key) {
- var value = Math.round(data[key][0]*100) / 100;
- values.push({
- x: value,
- y: data[key][1],
- class: data[key][2],
- size: 0.05,
- shape: 'diamond'
- });
- });
-
- return [
- {
- key: label,
- values: values,
- color: "#4572A7"
- }
- ];
- }
-});
- </script>
- </body>
-</html>
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/directory.html.dist b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/directory.html.dist
deleted file mode 100644
index efe743f5..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/directory.html.dist
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Code Coverage for {{full_path}}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="{{path_to_root}}css/bootstrap.min.css" rel="stylesheet">
- <link href="{{path_to_root}}css/style.css" rel="stylesheet">
- <!--[if lt IE 9]>
- <script src="{{path_to_root}}js/html5shiv.min.js"></script>
- <script src="{{path_to_root}}js/respond.min.js"></script>
- <![endif]-->
- </head>
- <body>
- <header>
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <ol class="breadcrumb">
-{{breadcrumbs}}
- </ol>
- </div>
- </div>
- </div>
- </header>
- <div class="container">
- <table class="table table-bordered">
- <thead>
- <tr>
- <td>&nbsp;</td>
- <td colspan="9"><div align="center"><strong>Code Coverage</strong></div></td>
- </tr>
- <tr>
- <td>&nbsp;</td>
- <td colspan="3"><div align="center"><strong>Lines</strong></div></td>
- <td colspan="3"><div align="center"><strong>Functions and Methods</strong></div></td>
- <td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
- </tr>
- </thead>
- <tbody>
-{{items}}
- </tbody>
- </table>
- <footer>
- <hr/>
- <h4>Legend</h4>
- <p>
- <span class="danger"><strong>Low</strong>: 0% to {{low_upper_bound}}%</span>
- <span class="warning"><strong>Medium</strong>: {{low_upper_bound}}% to {{high_lower_bound}}%</span>
- <span class="success"><strong>High</strong>: {{high_lower_bound}}% to 100%</span>
- </p>
- <p>
- <small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage {{version}}</a> using <a href="{{runtime_link}}" target="_top">{{runtime_name}} {{runtime_version}}</a>{{generator}} at {{date}}.</small>
- </p>
- </footer>
- </div>
- <script src="{{path_to_root}}js/jquery.min.js" type="text/javascript"></script>
- <script src="{{path_to_root}}js/bootstrap.min.js" type="text/javascript"></script>
- <script src="{{path_to_root}}js/holder.min.js" type="text/javascript"></script>
- </body>
-</html>
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist
deleted file mode 100644
index 78dbb356..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/directory_item.html.dist
+++ /dev/null
@@ -1,13 +0,0 @@
- <tr>
- <td class="{{lines_level}}">{{icon}}{{name}}</td>
- <td class="{{lines_level}} big">{{lines_bar}}</td>
- <td class="{{lines_level}} small"><div align="right">{{lines_executed_percent}}</div></td>
- <td class="{{lines_level}} small"><div align="right">{{lines_number}}</div></td>
- <td class="{{methods_level}} big">{{methods_bar}}</td>
- <td class="{{methods_level}} small"><div align="right">{{methods_tested_percent}}</div></td>
- <td class="{{methods_level}} small"><div align="right">{{methods_number}}</div></td>
- <td class="{{classes_level}} big">{{classes_bar}}</td>
- <td class="{{classes_level}} small"><div align="right">{{classes_tested_percent}}</div></td>
- <td class="{{classes_level}} small"><div align="right">{{classes_number}}</div></td>
- </tr>
-
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist
deleted file mode 100644
index 59a06843..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/file.html.dist
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Code Coverage for {{full_path}}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="{{path_to_root}}css/bootstrap.min.css" rel="stylesheet">
- <link href="{{path_to_root}}css/style.css" rel="stylesheet">
- <!--[if lt IE 9]>
- <script src="{{path_to_root}}js/html5shiv.min.js"></script>
- <script src="{{path_to_root}}js/respond.min.js"></script>
- <![endif]-->
- </head>
- <body>
- <header>
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <ol class="breadcrumb">
-{{breadcrumbs}}
- </ol>
- </div>
- </div>
- </div>
- </header>
- <div class="container">
- <table class="table table-bordered">
- <thead>
- <tr>
- <td>&nbsp;</td>
- <td colspan="10"><div align="center"><strong>Code Coverage</strong></div></td>
- </tr>
- <tr>
- <td>&nbsp;</td>
- <td colspan="3"><div align="center"><strong>Classes and Traits</strong></div></td>
- <td colspan="4"><div align="center"><strong>Functions and Methods</strong></div></td>
- <td colspan="3"><div align="center"><strong>Lines</strong></div></td>
- </tr>
- </thead>
- <tbody>
-{{items}}
- </tbody>
- </table>
- <table id="code" class="table table-borderless table-condensed">
- <tbody>
-{{lines}}
- </tbody>
- </table>
- <footer>
- <hr/>
- <h4>Legend</h4>
- <p>
- <span class="success"><strong>Executed</strong></span>
- <span class="danger"><strong>Not Executed</strong></span>
- <span class="warning"><strong>Dead Code</strong></span>
- </p>
- <p>
- <small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage {{version}}</a> using <a href="{{runtime_link}}" target="_top">{{runtime_name}} {{runtime_version}}</a>{{generator}} at {{date}}.</small>
- </p>
- <a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
- </footer>
- </div>
- <script src="{{path_to_root}}js/jquery.min.js" type="text/javascript"></script>
- <script src="{{path_to_root}}js/bootstrap.min.js" type="text/javascript"></script>
- <script src="{{path_to_root}}js/holder.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function() {
- var $window = $(window)
- , $top_link = $('#toplink')
- , $body = $('body, html')
- , offset = $('#code').offset().top;
-
- $top_link.hide().click(function(event) {
- event.preventDefault();
- $body.animate({scrollTop:0}, 800);
- });
-
- $window.scroll(function() {
- if($window.scrollTop() > offset) {
- $top_link.fadeIn();
- } else {
- $top_link.fadeOut();
- }
- }).scroll();
-
- $('.popin').popover({trigger: 'hover'});
- });
- </script>
- </body>
-</html>
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.dist b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.dist
deleted file mode 100644
index 756fdd69..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/file_item.html.dist
+++ /dev/null
@@ -1,14 +0,0 @@
- <tr>
- <td class="{{classes_level}}">{{name}}</td>
- <td class="{{classes_level}} big">{{classes_bar}}</td>
- <td class="{{classes_level}} small"><div align="right">{{classes_tested_percent}}</div></td>
- <td class="{{classes_level}} small"><div align="right">{{classes_number}}</div></td>
- <td class="{{methods_level}} big">{{methods_bar}}</td>
- <td class="{{methods_level}} small"><div align="right">{{methods_tested_percent}}</div></td>
- <td class="{{methods_level}} small"><div align="right">{{methods_number}}</div></td>
- <td class="{{methods_level}} small">{{crap}}</td>
- <td class="{{lines_level}} big">{{lines_bar}}</td>
- <td class="{{lines_level}} small"><div align="right">{{lines_executed_percent}}</div></td>
- <td class="{{lines_level}} small"><div align="right">{{lines_number}}</div></td>
- </tr>
-
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.eot b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.eot
deleted file mode 100644
index b93a4953..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.eot
+++ /dev/null
Binary files differ
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.svg b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.svg
deleted file mode 100644
index 94fb5490..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.svg
+++ /dev/null
@@ -1,288 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata></metadata>
-<defs>
-<font id="glyphicons_halflingsregular" horiz-adv-x="1200" >
-<font-face units-per-em="1200" ascent="960" descent="-240" />
-<missing-glyph horiz-adv-x="500" />
-<glyph horiz-adv-x="0" />
-<glyph horiz-adv-x="400" />
-<glyph unicode=" " />
-<glyph unicode="*" d="M600 1100q15 0 34 -1.5t30 -3.5l11 -1q10 -2 17.5 -10.5t7.5 -18.5v-224l158 158q7 7 18 8t19 -6l106 -106q7 -8 6 -19t-8 -18l-158 -158h224q10 0 18.5 -7.5t10.5 -17.5q6 -41 6 -75q0 -15 -1.5 -34t-3.5 -30l-1 -11q-2 -10 -10.5 -17.5t-18.5 -7.5h-224l158 -158 q7 -7 8 -18t-6 -19l-106 -106q-8 -7 -19 -6t-18 8l-158 158v-224q0 -10 -7.5 -18.5t-17.5 -10.5q-41 -6 -75 -6q-15 0 -34 1.5t-30 3.5l-11 1q-10 2 -17.5 10.5t-7.5 18.5v224l-158 -158q-7 -7 -18 -8t-19 6l-106 106q-7 8 -6 19t8 18l158 158h-224q-10 0 -18.5 7.5 t-10.5 17.5q-6 41 -6 75q0 15 1.5 34t3.5 30l1 11q2 10 10.5 17.5t18.5 7.5h224l-158 158q-7 7 -8 18t6 19l106 106q8 7 19 6t18 -8l158 -158v224q0 10 7.5 18.5t17.5 10.5q41 6 75 6z" />
-<glyph unicode="+" d="M450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-350h350q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-350v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v350h-350q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5 h350v350q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xa0;" />
-<glyph unicode="&#xa5;" d="M825 1100h250q10 0 12.5 -5t-5.5 -13l-364 -364q-6 -6 -11 -18h268q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-100h275q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-174q0 -11 -7.5 -18.5t-18.5 -7.5h-148q-11 0 -18.5 7.5t-7.5 18.5v174 h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h125v100h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h118q-5 12 -11 18l-364 364q-8 8 -5.5 13t12.5 5h250q25 0 43 -18l164 -164q8 -8 18 -8t18 8l164 164q18 18 43 18z" />
-<glyph unicode="&#x2000;" horiz-adv-x="650" />
-<glyph unicode="&#x2001;" horiz-adv-x="1300" />
-<glyph unicode="&#x2002;" horiz-adv-x="650" />
-<glyph unicode="&#x2003;" horiz-adv-x="1300" />
-<glyph unicode="&#x2004;" horiz-adv-x="433" />
-<glyph unicode="&#x2005;" horiz-adv-x="325" />
-<glyph unicode="&#x2006;" horiz-adv-x="216" />
-<glyph unicode="&#x2007;" horiz-adv-x="216" />
-<glyph unicode="&#x2008;" horiz-adv-x="162" />
-<glyph unicode="&#x2009;" horiz-adv-x="260" />
-<glyph unicode="&#x200a;" horiz-adv-x="72" />
-<glyph unicode="&#x202f;" horiz-adv-x="260" />
-<glyph unicode="&#x205f;" horiz-adv-x="325" />
-<glyph unicode="&#x20ac;" d="M744 1198q242 0 354 -189q60 -104 66 -209h-181q0 45 -17.5 82.5t-43.5 61.5t-58 40.5t-60.5 24t-51.5 7.5q-19 0 -40.5 -5.5t-49.5 -20.5t-53 -38t-49 -62.5t-39 -89.5h379l-100 -100h-300q-6 -50 -6 -100h406l-100 -100h-300q9 -74 33 -132t52.5 -91t61.5 -54.5t59 -29 t47 -7.5q22 0 50.5 7.5t60.5 24.5t58 41t43.5 61t17.5 80h174q-30 -171 -128 -278q-107 -117 -274 -117q-206 0 -324 158q-36 48 -69 133t-45 204h-217l100 100h112q1 47 6 100h-218l100 100h134q20 87 51 153.5t62 103.5q117 141 297 141z" />
-<glyph unicode="&#x20bd;" d="M428 1200h350q67 0 120 -13t86 -31t57 -49.5t35 -56.5t17 -64.5t6.5 -60.5t0.5 -57v-16.5v-16.5q0 -36 -0.5 -57t-6.5 -61t-17 -65t-35 -57t-57 -50.5t-86 -31.5t-120 -13h-178l-2 -100h288q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-138v-175q0 -11 -5.5 -18 t-15.5 -7h-149q-10 0 -17.5 7.5t-7.5 17.5v175h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v100h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v475q0 10 7.5 17.5t17.5 7.5zM600 1000v-300h203q64 0 86.5 33t22.5 119q0 84 -22.5 116t-86.5 32h-203z" />
-<glyph unicode="&#x2212;" d="M250 700h800q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#x231b;" d="M1000 1200v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-50v-100q0 -91 -49.5 -165.5t-130.5 -109.5q81 -35 130.5 -109.5t49.5 -165.5v-150h50q21 0 35.5 -14.5t14.5 -35.5v-150h-800v150q0 21 14.5 35.5t35.5 14.5h50v150q0 91 49.5 165.5t130.5 109.5q-81 35 -130.5 109.5 t-49.5 165.5v100h-50q-21 0 -35.5 14.5t-14.5 35.5v150h800zM400 1000v-100q0 -60 32.5 -109.5t87.5 -73.5q28 -12 44 -37t16 -55t-16 -55t-44 -37q-55 -24 -87.5 -73.5t-32.5 -109.5v-150h400v150q0 60 -32.5 109.5t-87.5 73.5q-28 12 -44 37t-16 55t16 55t44 37 q55 24 87.5 73.5t32.5 109.5v100h-400z" />
-<glyph unicode="&#x25fc;" horiz-adv-x="500" d="M0 0z" />
-<glyph unicode="&#x2601;" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -206.5q0 -121 -85 -207.5t-205 -86.5h-750q-79 0 -135.5 57t-56.5 137q0 69 42.5 122.5t108.5 67.5q-2 12 -2 37q0 153 108 260.5t260 107.5z" />
-<glyph unicode="&#x26fa;" d="M774 1193.5q16 -9.5 20.5 -27t-5.5 -33.5l-136 -187l467 -746h30q20 0 35 -18.5t15 -39.5v-42h-1200v42q0 21 15 39.5t35 18.5h30l468 746l-135 183q-10 16 -5.5 34t20.5 28t34 5.5t28 -20.5l111 -148l112 150q9 16 27 20.5t34 -5zM600 200h377l-182 112l-195 534v-646z " />
-<glyph unicode="&#x2709;" d="M25 1100h1150q10 0 12.5 -5t-5.5 -13l-564 -567q-8 -8 -18 -8t-18 8l-564 567q-8 8 -5.5 13t12.5 5zM18 882l264 -264q8 -8 8 -18t-8 -18l-264 -264q-8 -8 -13 -5.5t-5 12.5v550q0 10 5 12.5t13 -5.5zM918 618l264 264q8 8 13 5.5t5 -12.5v-550q0 -10 -5 -12.5t-13 5.5 l-264 264q-8 8 -8 18t8 18zM818 482l364 -364q8 -8 5.5 -13t-12.5 -5h-1150q-10 0 -12.5 5t5.5 13l364 364q8 8 18 8t18 -8l164 -164q8 -8 18 -8t18 8l164 164q8 8 18 8t18 -8z" />
-<glyph unicode="&#x270f;" d="M1011 1210q19 0 33 -13l153 -153q13 -14 13 -33t-13 -33l-99 -92l-214 214l95 96q13 14 32 14zM1013 800l-615 -614l-214 214l614 614zM317 96l-333 -112l110 335z" />
-<glyph unicode="&#xe001;" d="M700 650v-550h250q21 0 35.5 -14.5t14.5 -35.5v-50h-800v50q0 21 14.5 35.5t35.5 14.5h250v550l-500 550h1200z" />
-<glyph unicode="&#xe002;" d="M368 1017l645 163q39 15 63 0t24 -49v-831q0 -55 -41.5 -95.5t-111.5 -63.5q-79 -25 -147 -4.5t-86 75t25.5 111.5t122.5 82q72 24 138 8v521l-600 -155v-606q0 -42 -44 -90t-109 -69q-79 -26 -147 -5.5t-86 75.5t25.5 111.5t122.5 82.5q72 24 138 7v639q0 38 14.5 59 t53.5 34z" />
-<glyph unicode="&#xe003;" d="M500 1191q100 0 191 -39t156.5 -104.5t104.5 -156.5t39 -191l-1 -2l1 -5q0 -141 -78 -262l275 -274q23 -26 22.5 -44.5t-22.5 -42.5l-59 -58q-26 -20 -46.5 -20t-39.5 20l-275 274q-119 -77 -261 -77l-5 1l-2 -1q-100 0 -191 39t-156.5 104.5t-104.5 156.5t-39 191 t39 191t104.5 156.5t156.5 104.5t191 39zM500 1022q-88 0 -162 -43t-117 -117t-43 -162t43 -162t117 -117t162 -43t162 43t117 117t43 162t-43 162t-117 117t-162 43z" />
-<glyph unicode="&#xe005;" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104z" />
-<glyph unicode="&#xe006;" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429z" />
-<glyph unicode="&#xe007;" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429zM477 700h-240l197 -142l-74 -226 l193 139l195 -140l-74 229l192 140h-234l-78 211z" />
-<glyph unicode="&#xe008;" d="M600 1200q124 0 212 -88t88 -212v-250q0 -46 -31 -98t-69 -52v-75q0 -10 6 -21.5t15 -17.5l358 -230q9 -5 15 -16.5t6 -21.5v-93q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v93q0 10 6 21.5t15 16.5l358 230q9 6 15 17.5t6 21.5v75q-38 0 -69 52 t-31 98v250q0 124 88 212t212 88z" />
-<glyph unicode="&#xe009;" d="M25 1100h1150q10 0 17.5 -7.5t7.5 -17.5v-1050q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v1050q0 10 7.5 17.5t17.5 7.5zM100 1000v-100h100v100h-100zM875 1000h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5t17.5 -7.5h550 q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM1000 1000v-100h100v100h-100zM100 800v-100h100v100h-100zM1000 800v-100h100v100h-100zM100 600v-100h100v100h-100zM1000 600v-100h100v100h-100zM875 500h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5 t17.5 -7.5h550q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM100 400v-100h100v100h-100zM1000 400v-100h100v100h-100zM100 200v-100h100v100h-100zM1000 200v-100h100v100h-100z" />
-<glyph unicode="&#xe010;" d="M50 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM50 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe011;" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM850 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 700h200q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h200 q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5 t35.5 14.5z" />
-<glyph unicode="&#xe012;" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h700q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe013;" d="M465 477l571 571q8 8 18 8t17 -8l177 -177q8 -7 8 -17t-8 -18l-783 -784q-7 -8 -17.5 -8t-17.5 8l-384 384q-8 8 -8 18t8 17l177 177q7 8 17 8t18 -8l171 -171q7 -7 18 -7t18 7z" />
-<glyph unicode="&#xe014;" d="M904 1083l178 -179q8 -8 8 -18.5t-8 -17.5l-267 -268l267 -268q8 -7 8 -17.5t-8 -18.5l-178 -178q-8 -8 -18.5 -8t-17.5 8l-268 267l-268 -267q-7 -8 -17.5 -8t-18.5 8l-178 178q-8 8 -8 18.5t8 17.5l267 268l-267 268q-8 7 -8 17.5t8 18.5l178 178q8 8 18.5 8t17.5 -8 l268 -267l268 268q7 7 17.5 7t18.5 -7z" />
-<glyph unicode="&#xe015;" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM425 900h150q10 0 17.5 -7.5t7.5 -17.5v-75h75q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5 t-17.5 -7.5h-75v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-75q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v75q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe016;" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM325 800h350q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-350q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe017;" d="M550 1200h100q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM800 975v166q167 -62 272 -209.5t105 -331.5q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5 t-184.5 123t-123 184.5t-45.5 224q0 184 105 331.5t272 209.5v-166q-103 -55 -165 -155t-62 -220q0 -116 57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5q0 120 -62 220t-165 155z" />
-<glyph unicode="&#xe018;" d="M1025 1200h150q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM725 800h150q10 0 17.5 -7.5t7.5 -17.5v-750q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v750 q0 10 7.5 17.5t17.5 7.5zM425 500h150q10 0 17.5 -7.5t7.5 -17.5v-450q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v450q0 10 7.5 17.5t17.5 7.5zM125 300h150q10 0 17.5 -7.5t7.5 -17.5v-250q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5 v250q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe019;" d="M600 1174q33 0 74 -5l38 -152l5 -1q49 -14 94 -39l5 -2l134 80q61 -48 104 -105l-80 -134l3 -5q25 -44 39 -93l1 -6l152 -38q5 -43 5 -73q0 -34 -5 -74l-152 -38l-1 -6q-15 -49 -39 -93l-3 -5l80 -134q-48 -61 -104 -105l-134 81l-5 -3q-44 -25 -94 -39l-5 -2l-38 -151 q-43 -5 -74 -5q-33 0 -74 5l-38 151l-5 2q-49 14 -94 39l-5 3l-134 -81q-60 48 -104 105l80 134l-3 5q-25 45 -38 93l-2 6l-151 38q-6 42 -6 74q0 33 6 73l151 38l2 6q13 48 38 93l3 5l-80 134q47 61 105 105l133 -80l5 2q45 25 94 39l5 1l38 152q43 5 74 5zM600 815 q-89 0 -152 -63t-63 -151.5t63 -151.5t152 -63t152 63t63 151.5t-63 151.5t-152 63z" />
-<glyph unicode="&#xe020;" d="M500 1300h300q41 0 70.5 -29.5t29.5 -70.5v-100h275q10 0 17.5 -7.5t7.5 -17.5v-75h-1100v75q0 10 7.5 17.5t17.5 7.5h275v100q0 41 29.5 70.5t70.5 29.5zM500 1200v-100h300v100h-300zM1100 900v-800q0 -41 -29.5 -70.5t-70.5 -29.5h-700q-41 0 -70.5 29.5t-29.5 70.5 v800h900zM300 800v-700h100v700h-100zM500 800v-700h100v700h-100zM700 800v-700h100v700h-100zM900 800v-700h100v700h-100z" />
-<glyph unicode="&#xe021;" d="M18 618l620 608q8 7 18.5 7t17.5 -7l608 -608q8 -8 5.5 -13t-12.5 -5h-175v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v375h-300v-375q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v575h-175q-10 0 -12.5 5t5.5 13z" />
-<glyph unicode="&#xe022;" d="M600 1200v-400q0 -41 29.5 -70.5t70.5 -29.5h300v-650q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5h450zM1000 800h-250q-21 0 -35.5 14.5t-14.5 35.5v250z" />
-<glyph unicode="&#xe023;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h50q10 0 17.5 -7.5t7.5 -17.5v-275h175q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe024;" d="M1300 0h-538l-41 400h-242l-41 -400h-538l431 1200h209l-21 -300h162l-20 300h208zM515 800l-27 -300h224l-27 300h-170z" />
-<glyph unicode="&#xe025;" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-450h191q20 0 25.5 -11.5t-7.5 -27.5l-327 -400q-13 -16 -32 -16t-32 16l-327 400q-13 16 -7.5 27.5t25.5 11.5h191v450q0 21 14.5 35.5t35.5 14.5zM1125 400h50q10 0 17.5 -7.5t7.5 -17.5v-350q0 -10 -7.5 -17.5t-17.5 -7.5 h-1050q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h50q10 0 17.5 -7.5t7.5 -17.5v-175h900v175q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe026;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -275q-13 -16 -32 -16t-32 16l-223 275q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z " />
-<glyph unicode="&#xe027;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM632 914l223 -275q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5l223 275q13 16 32 16 t32 -16z" />
-<glyph unicode="&#xe028;" d="M225 1200h750q10 0 19.5 -7t12.5 -17l186 -652q7 -24 7 -49v-425q0 -12 -4 -27t-9 -17q-12 -6 -37 -6h-1100q-12 0 -27 4t-17 8q-6 13 -6 38l1 425q0 25 7 49l185 652q3 10 12.5 17t19.5 7zM878 1000h-556q-10 0 -19 -7t-11 -18l-87 -450q-2 -11 4 -18t16 -7h150 q10 0 19.5 -7t11.5 -17l38 -152q2 -10 11.5 -17t19.5 -7h250q10 0 19.5 7t11.5 17l38 152q2 10 11.5 17t19.5 7h150q10 0 16 7t4 18l-87 450q-2 11 -11 18t-19 7z" />
-<glyph unicode="&#xe029;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM540 820l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
-<glyph unicode="&#xe030;" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-362q0 -10 -7.5 -17.5t-17.5 -7.5h-362q-11 0 -13 5.5t5 12.5l133 133q-109 76 -238 76q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5h150q0 -117 -45.5 -224 t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117z" />
-<glyph unicode="&#xe031;" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-361q0 -11 -7.5 -18.5t-18.5 -7.5h-361q-11 0 -13 5.5t5 12.5l134 134q-110 75 -239 75q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5h-150q0 117 45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117zM1027 600h150 q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5q-192 0 -348 118l-134 -134q-7 -8 -12.5 -5.5t-5.5 12.5v360q0 11 7.5 18.5t18.5 7.5h360q10 0 12.5 -5.5t-5.5 -12.5l-133 -133q110 -76 240 -76q116 0 214.5 57t155.5 155.5t57 214.5z" />
-<glyph unicode="&#xe032;" d="M125 1200h1050q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-1050q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM1075 1000h-850q-10 0 -17.5 -7.5t-7.5 -17.5v-850q0 -10 7.5 -17.5t17.5 -7.5h850q10 0 17.5 7.5t7.5 17.5v850 q0 10 -7.5 17.5t-17.5 7.5zM325 900h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 900h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 700h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 700h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 500h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 500h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 300h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 300h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe033;" d="M900 800v200q0 83 -58.5 141.5t-141.5 58.5h-300q-82 0 -141 -59t-59 -141v-200h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h900q41 0 70.5 29.5t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5h-100zM400 800v150q0 21 15 35.5t35 14.5h200 q20 0 35 -14.5t15 -35.5v-150h-300z" />
-<glyph unicode="&#xe034;" d="M125 1100h50q10 0 17.5 -7.5t7.5 -17.5v-1075h-100v1075q0 10 7.5 17.5t17.5 7.5zM1075 1052q4 0 9 -2q16 -6 16 -23v-421q0 -6 -3 -12q-33 -59 -66.5 -99t-65.5 -58t-56.5 -24.5t-52.5 -6.5q-26 0 -57.5 6.5t-52.5 13.5t-60 21q-41 15 -63 22.5t-57.5 15t-65.5 7.5 q-85 0 -160 -57q-7 -5 -15 -5q-6 0 -11 3q-14 7 -14 22v438q22 55 82 98.5t119 46.5q23 2 43 0.5t43 -7t32.5 -8.5t38 -13t32.5 -11q41 -14 63.5 -21t57 -14t63.5 -7q103 0 183 87q7 8 18 8z" />
-<glyph unicode="&#xe035;" d="M600 1175q116 0 227 -49.5t192.5 -131t131 -192.5t49.5 -227v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v300q0 127 -70.5 231.5t-184.5 161.5t-245 57t-245 -57t-184.5 -161.5t-70.5 -231.5v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50 q-10 0 -17.5 7.5t-7.5 17.5v300q0 116 49.5 227t131 192.5t192.5 131t227 49.5zM220 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460q0 8 6 14t14 6zM820 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460 q0 8 6 14t14 6z" />
-<glyph unicode="&#xe036;" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM900 668l120 120q7 7 17 7t17 -7l34 -34q7 -7 7 -17t-7 -17l-120 -120l120 -120q7 -7 7 -17 t-7 -17l-34 -34q-7 -7 -17 -7t-17 7l-120 119l-120 -119q-7 -7 -17 -7t-17 7l-34 34q-7 7 -7 17t7 17l119 120l-119 120q-7 7 -7 17t7 17l34 34q7 8 17 8t17 -8z" />
-<glyph unicode="&#xe037;" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6 l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238q-6 8 -4.5 18t9.5 17l29 22q7 5 15 5z" />
-<glyph unicode="&#xe038;" d="M967 1004h3q11 -1 17 -10q135 -179 135 -396q0 -105 -34 -206.5t-98 -185.5q-7 -9 -17 -10h-3q-9 0 -16 6l-42 34q-8 6 -9 16t5 18q111 150 111 328q0 90 -29.5 176t-84.5 157q-6 9 -5 19t10 16l42 33q7 5 15 5zM321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5 t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238 q-6 8 -4.5 18.5t9.5 16.5l29 22q7 5 15 5z" />
-<glyph unicode="&#xe039;" d="M500 900h100v-100h-100v-100h-400v-100h-100v600h500v-300zM1200 700h-200v-100h200v-200h-300v300h-200v300h-100v200h600v-500zM100 1100v-300h300v300h-300zM800 1100v-300h300v300h-300zM300 900h-100v100h100v-100zM1000 900h-100v100h100v-100zM300 500h200v-500 h-500v500h200v100h100v-100zM800 300h200v-100h-100v-100h-200v100h-100v100h100v200h-200v100h300v-300zM100 400v-300h300v300h-300zM300 200h-100v100h100v-100zM1200 200h-100v100h100v-100zM700 0h-100v100h100v-100zM1200 0h-300v100h300v-100z" />
-<glyph unicode="&#xe040;" d="M100 200h-100v1000h100v-1000zM300 200h-100v1000h100v-1000zM700 200h-200v1000h200v-1000zM900 200h-100v1000h100v-1000zM1200 200h-200v1000h200v-1000zM400 0h-300v100h300v-100zM600 0h-100v91h100v-91zM800 0h-100v91h100v-91zM1100 0h-200v91h200v-91z" />
-<glyph unicode="&#xe041;" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
-<glyph unicode="&#xe042;" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM800 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-56 56l424 426l-700 700h150zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5 t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
-<glyph unicode="&#xe043;" d="M300 1200h825q75 0 75 -75v-900q0 -25 -18 -43l-64 -64q-8 -8 -13 -5.5t-5 12.5v950q0 10 -7.5 17.5t-17.5 7.5h-700q-25 0 -43 -18l-64 -64q-8 -8 -5.5 -13t12.5 -5h700q10 0 17.5 -7.5t7.5 -17.5v-950q0 -10 -7.5 -17.5t-17.5 -7.5h-850q-10 0 -17.5 7.5t-7.5 17.5v975 q0 25 18 43l139 139q18 18 43 18z" />
-<glyph unicode="&#xe044;" d="M250 1200h800q21 0 35.5 -14.5t14.5 -35.5v-1150l-450 444l-450 -445v1151q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe045;" d="M822 1200h-444q-11 0 -19 -7.5t-9 -17.5l-78 -301q-7 -24 7 -45l57 -108q6 -9 17.5 -15t21.5 -6h450q10 0 21.5 6t17.5 15l62 108q14 21 7 45l-83 301q-1 10 -9 17.5t-19 7.5zM1175 800h-150q-10 0 -21 -6.5t-15 -15.5l-78 -156q-4 -9 -15 -15.5t-21 -6.5h-550 q-10 0 -21 6.5t-15 15.5l-78 156q-4 9 -15 15.5t-21 6.5h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-650q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h750q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5 t7.5 17.5v650q0 10 -7.5 17.5t-17.5 7.5zM850 200h-500q-10 0 -19.5 -7t-11.5 -17l-38 -152q-2 -10 3.5 -17t15.5 -7h600q10 0 15.5 7t3.5 17l-38 152q-2 10 -11.5 17t-19.5 7z" />
-<glyph unicode="&#xe046;" d="M500 1100h200q56 0 102.5 -20.5t72.5 -50t44 -59t25 -50.5l6 -20h150q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5h150q2 8 6.5 21.5t24 48t45 61t72 48t102.5 21.5zM900 800v-100 h100v100h-100zM600 730q-95 0 -162.5 -67.5t-67.5 -162.5t67.5 -162.5t162.5 -67.5t162.5 67.5t67.5 162.5t-67.5 162.5t-162.5 67.5zM600 603q43 0 73 -30t30 -73t-30 -73t-73 -30t-73 30t-30 73t30 73t73 30z" />
-<glyph unicode="&#xe047;" d="M681 1199l385 -998q20 -50 60 -92q18 -19 36.5 -29.5t27.5 -11.5l10 -2v-66h-417v66q53 0 75 43.5t5 88.5l-82 222h-391q-58 -145 -92 -234q-11 -34 -6.5 -57t25.5 -37t46 -20t55 -6v-66h-365v66q56 24 84 52q12 12 25 30.5t20 31.5l7 13l399 1006h93zM416 521h340 l-162 457z" />
-<glyph unicode="&#xe048;" d="M753 641q5 -1 14.5 -4.5t36 -15.5t50.5 -26.5t53.5 -40t50.5 -54.5t35.5 -70t14.5 -87q0 -67 -27.5 -125.5t-71.5 -97.5t-98.5 -66.5t-108.5 -40.5t-102 -13h-500v89q41 7 70.5 32.5t29.5 65.5v827q0 24 -0.5 34t-3.5 24t-8.5 19.5t-17 13.5t-28 12.5t-42.5 11.5v71 l471 -1q57 0 115.5 -20.5t108 -57t80.5 -94t31 -124.5q0 -51 -15.5 -96.5t-38 -74.5t-45 -50.5t-38.5 -30.5zM400 700h139q78 0 130.5 48.5t52.5 122.5q0 41 -8.5 70.5t-29.5 55.5t-62.5 39.5t-103.5 13.5h-118v-350zM400 200h216q80 0 121 50.5t41 130.5q0 90 -62.5 154.5 t-156.5 64.5h-159v-400z" />
-<glyph unicode="&#xe049;" d="M877 1200l2 -57q-83 -19 -116 -45.5t-40 -66.5l-132 -839q-9 -49 13 -69t96 -26v-97h-500v97q186 16 200 98l173 832q3 17 3 30t-1.5 22.5t-9 17.5t-13.5 12.5t-21.5 10t-26 8.5t-33.5 10q-13 3 -19 5v57h425z" />
-<glyph unicode="&#xe050;" d="M1300 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM175 1000h-75v-800h75l-125 -167l-125 167h75v800h-75l125 167z" />
-<glyph unicode="&#xe051;" d="M1100 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-650q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v650h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM1167 50l-167 -125v75h-800v-75l-167 125l167 125v-75h800v75z" />
-<glyph unicode="&#xe052;" d="M50 1100h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe053;" d="M250 1100h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM250 500h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe054;" d="M500 950v100q0 21 14.5 35.5t35.5 14.5h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5zM100 650v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000 q-21 0 -35.5 14.5t-14.5 35.5zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5zM0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5z" />
-<glyph unicode="&#xe055;" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe056;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 1100h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 800h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 500h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 500h800q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 200h800 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe057;" d="M400 0h-100v1100h100v-1100zM550 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM267 550l-167 -125v75h-200v100h200v75zM550 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe058;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM900 0h-100v1100h100v-1100zM50 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM1100 600h200v-100h-200v-75l-167 125l167 125v-75zM50 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe059;" d="M75 1000h750q31 0 53 -22t22 -53v-650q0 -31 -22 -53t-53 -22h-750q-31 0 -53 22t-22 53v650q0 31 22 53t53 22zM1200 300l-300 300l300 300v-600z" />
-<glyph unicode="&#xe060;" d="M44 1100h1112q18 0 31 -13t13 -31v-1012q0 -18 -13 -31t-31 -13h-1112q-18 0 -31 13t-13 31v1012q0 18 13 31t31 13zM100 1000v-737l247 182l298 -131l-74 156l293 318l236 -288v500h-1000zM342 884q56 0 95 -39t39 -94.5t-39 -95t-95 -39.5t-95 39.5t-39 95t39 94.5 t95 39z" />
-<glyph unicode="&#xe062;" d="M648 1169q117 0 216 -60t156.5 -161t57.5 -218q0 -115 -70 -258q-69 -109 -158 -225.5t-143 -179.5l-54 -62q-9 8 -25.5 24.5t-63.5 67.5t-91 103t-98.5 128t-95.5 148q-60 132 -60 249q0 88 34 169.5t91.5 142t137 96.5t166.5 36zM652.5 974q-91.5 0 -156.5 -65 t-65 -157t65 -156.5t156.5 -64.5t156.5 64.5t65 156.5t-65 157t-156.5 65z" />
-<glyph unicode="&#xe063;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 173v854q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57z" />
-<glyph unicode="&#xe064;" d="M554 1295q21 -72 57.5 -143.5t76 -130t83 -118t82.5 -117t70 -116t49.5 -126t18.5 -136.5q0 -71 -25.5 -135t-68.5 -111t-99 -82t-118.5 -54t-125.5 -23q-84 5 -161.5 34t-139.5 78.5t-99 125t-37 164.5q0 69 18 136.5t49.5 126.5t69.5 116.5t81.5 117.5t83.5 119 t76.5 131t58.5 143zM344 710q-23 -33 -43.5 -70.5t-40.5 -102.5t-17 -123q1 -37 14.5 -69.5t30 -52t41 -37t38.5 -24.5t33 -15q21 -7 32 -1t13 22l6 34q2 10 -2.5 22t-13.5 19q-5 4 -14 12t-29.5 40.5t-32.5 73.5q-26 89 6 271q2 11 -6 11q-8 1 -15 -10z" />
-<glyph unicode="&#xe065;" d="M1000 1013l108 115q2 1 5 2t13 2t20.5 -1t25 -9.5t28.5 -21.5q22 -22 27 -43t0 -32l-6 -10l-108 -115zM350 1100h400q50 0 105 -13l-187 -187h-368q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v182l200 200v-332 q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM1009 803l-362 -362l-161 -50l55 170l355 355z" />
-<glyph unicode="&#xe066;" d="M350 1100h361q-164 -146 -216 -200h-195q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5l200 153v-103q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M824 1073l339 -301q8 -7 8 -17.5t-8 -17.5l-340 -306q-7 -6 -12.5 -4t-6.5 11v203q-26 1 -54.5 0t-78.5 -7.5t-92 -17.5t-86 -35t-70 -57q10 59 33 108t51.5 81.5t65 58.5t68.5 40.5t67 24.5t56 13.5t40 4.5v210q1 10 6.5 12.5t13.5 -4.5z" />
-<glyph unicode="&#xe067;" d="M350 1100h350q60 0 127 -23l-178 -177h-349q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v69l200 200v-219q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M643 639l395 395q7 7 17.5 7t17.5 -7l101 -101q7 -7 7 -17.5t-7 -17.5l-531 -532q-7 -7 -17.5 -7t-17.5 7l-248 248q-7 7 -7 17.5t7 17.5l101 101q7 7 17.5 7t17.5 -7l111 -111q8 -7 18 -7t18 7z" />
-<glyph unicode="&#xe068;" d="M318 918l264 264q8 8 18 8t18 -8l260 -264q7 -8 4.5 -13t-12.5 -5h-170v-200h200v173q0 10 5 12t13 -5l264 -260q8 -7 8 -17.5t-8 -17.5l-264 -265q-8 -7 -13 -5t-5 12v173h-200v-200h170q10 0 12.5 -5t-4.5 -13l-260 -264q-8 -8 -18 -8t-18 8l-264 264q-8 8 -5.5 13 t12.5 5h175v200h-200v-173q0 -10 -5 -12t-13 5l-264 265q-8 7 -8 17.5t8 17.5l264 260q8 7 13 5t5 -12v-173h200v200h-175q-10 0 -12.5 5t5.5 13z" />
-<glyph unicode="&#xe069;" d="M250 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe070;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5 t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe071;" d="M1200 1050v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-492 480q-15 14 -15 35t15 35l492 480q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25z" />
-<glyph unicode="&#xe072;" d="M243 1074l814 -498q18 -11 18 -26t-18 -26l-814 -498q-18 -11 -30.5 -4t-12.5 28v1000q0 21 12.5 28t30.5 -4z" />
-<glyph unicode="&#xe073;" d="M250 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM650 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800 q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe074;" d="M1100 950v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5z" />
-<glyph unicode="&#xe075;" d="M500 612v438q0 21 10.5 25t25.5 -10l492 -480q15 -14 15 -35t-15 -35l-492 -480q-15 -14 -25.5 -10t-10.5 25v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10z" />
-<glyph unicode="&#xe076;" d="M1048 1102l100 1q20 0 35 -14.5t15 -35.5l5 -1000q0 -21 -14.5 -35.5t-35.5 -14.5l-100 -1q-21 0 -35.5 14.5t-14.5 35.5l-2 437l-463 -454q-14 -15 -24.5 -10.5t-10.5 25.5l-2 437l-462 -455q-15 -14 -25.5 -9.5t-10.5 24.5l-5 1000q0 21 10.5 25.5t25.5 -10.5l466 -450 l-2 438q0 20 10.5 24.5t25.5 -9.5l466 -451l-2 438q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe077;" d="M850 1100h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10l464 -453v438q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe078;" d="M686 1081l501 -540q15 -15 10.5 -26t-26.5 -11h-1042q-22 0 -26.5 11t10.5 26l501 540q15 15 36 15t36 -15zM150 400h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe079;" d="M885 900l-352 -353l352 -353l-197 -198l-552 552l552 550z" />
-<glyph unicode="&#xe080;" d="M1064 547l-551 -551l-198 198l353 353l-353 353l198 198z" />
-<glyph unicode="&#xe081;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM650 900h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-150 q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5h150v-150q0 -21 14.5 -35.5t35.5 -14.5h100q21 0 35.5 14.5t14.5 35.5v150h150q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-150v150q0 21 -14.5 35.5t-35.5 14.5z" />
-<glyph unicode="&#xe082;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM850 700h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5 t35.5 -14.5h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5z" />
-<glyph unicode="&#xe083;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM741.5 913q-12.5 0 -21.5 -9l-120 -120l-120 120q-9 9 -21.5 9 t-21.5 -9l-141 -141q-9 -9 -9 -21.5t9 -21.5l120 -120l-120 -120q-9 -9 -9 -21.5t9 -21.5l141 -141q9 -9 21.5 -9t21.5 9l120 120l120 -120q9 -9 21.5 -9t21.5 9l141 141q9 9 9 21.5t-9 21.5l-120 120l120 120q9 9 9 21.5t-9 21.5l-141 141q-9 9 -21.5 9z" />
-<glyph unicode="&#xe084;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM546 623l-84 85q-7 7 -17.5 7t-18.5 -7l-139 -139q-7 -8 -7 -18t7 -18 l242 -241q7 -8 17.5 -8t17.5 8l375 375q7 7 7 17.5t-7 18.5l-139 139q-7 7 -17.5 7t-17.5 -7z" />
-<glyph unicode="&#xe085;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM588 941q-29 0 -59 -5.5t-63 -20.5t-58 -38.5t-41.5 -63t-16.5 -89.5 q0 -25 20 -25h131q30 -5 35 11q6 20 20.5 28t45.5 8q20 0 31.5 -10.5t11.5 -28.5q0 -23 -7 -34t-26 -18q-1 0 -13.5 -4t-19.5 -7.5t-20 -10.5t-22 -17t-18.5 -24t-15.5 -35t-8 -46q-1 -8 5.5 -16.5t20.5 -8.5h173q7 0 22 8t35 28t37.5 48t29.5 74t12 100q0 47 -17 83 t-42.5 57t-59.5 34.5t-64 18t-59 4.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe086;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM675 1000h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5 t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5zM675 700h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h75v-200h-75q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h350q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5 t-17.5 7.5h-75v275q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe087;" d="M525 1200h150q10 0 17.5 -7.5t7.5 -17.5v-194q103 -27 178.5 -102.5t102.5 -178.5h194q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-194q-27 -103 -102.5 -178.5t-178.5 -102.5v-194q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v194 q-103 27 -178.5 102.5t-102.5 178.5h-194q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h194q27 103 102.5 178.5t178.5 102.5v194q0 10 7.5 17.5t17.5 7.5zM700 893v-168q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v168q-68 -23 -119 -74 t-74 -119h168q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-168q23 -68 74 -119t119 -74v168q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-168q68 23 119 74t74 119h-168q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h168 q-23 68 -74 119t-119 74z" />
-<glyph unicode="&#xe088;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM759 823l64 -64q7 -7 7 -17.5t-7 -17.5l-124 -124l124 -124q7 -7 7 -17.5t-7 -17.5l-64 -64q-7 -7 -17.5 -7t-17.5 7l-124 124l-124 -124q-7 -7 -17.5 -7t-17.5 7l-64 64 q-7 7 -7 17.5t7 17.5l124 124l-124 124q-7 7 -7 17.5t7 17.5l64 64q7 7 17.5 7t17.5 -7l124 -124l124 124q7 7 17.5 7t17.5 -7z" />
-<glyph unicode="&#xe089;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM782 788l106 -106q7 -7 7 -17.5t-7 -17.5l-320 -321q-8 -7 -18 -7t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l197 197q7 7 17.5 7t17.5 -7z" />
-<glyph unicode="&#xe090;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5q0 -120 65 -225 l587 587q-105 65 -225 65zM965 819l-584 -584q104 -62 219 -62q116 0 214.5 57t155.5 155.5t57 214.5q0 115 -62 219z" />
-<glyph unicode="&#xe091;" d="M39 582l522 427q16 13 27.5 8t11.5 -26v-291h550q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-550v-291q0 -21 -11.5 -26t-27.5 8l-522 427q-16 13 -16 32t16 32z" />
-<glyph unicode="&#xe092;" d="M639 1009l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291h-550q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h550v291q0 21 11.5 26t27.5 -8z" />
-<glyph unicode="&#xe093;" d="M682 1161l427 -522q13 -16 8 -27.5t-26 -11.5h-291v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v550h-291q-21 0 -26 11.5t8 27.5l427 522q13 16 32 16t32 -16z" />
-<glyph unicode="&#xe094;" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-550h291q21 0 26 -11.5t-8 -27.5l-427 -522q-13 -16 -32 -16t-32 16l-427 522q-13 16 -8 27.5t26 11.5h291v550q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe095;" d="M639 1109l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291q-94 -2 -182 -20t-170.5 -52t-147 -92.5t-100.5 -135.5q5 105 27 193.5t67.5 167t113 135t167 91.5t225.5 42v262q0 21 11.5 26t27.5 -8z" />
-<glyph unicode="&#xe096;" d="M850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5zM350 0h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249 q8 7 18 7t18 -7l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5z" />
-<glyph unicode="&#xe097;" d="M1014 1120l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249q8 7 18 7t18 -7zM250 600h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5z" />
-<glyph unicode="&#xe101;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM704 900h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5 t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe102;" d="M260 1200q9 0 19 -2t15 -4l5 -2q22 -10 44 -23l196 -118q21 -13 36 -24q29 -21 37 -12q11 13 49 35l196 118q22 13 45 23q17 7 38 7q23 0 47 -16.5t37 -33.5l13 -16q14 -21 18 -45l25 -123l8 -44q1 -9 8.5 -14.5t17.5 -5.5h61q10 0 17.5 -7.5t7.5 -17.5v-50 q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 -7.5t-7.5 -17.5v-175h-400v300h-200v-300h-400v175q0 10 -7.5 17.5t-17.5 7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5h61q11 0 18 3t7 8q0 4 9 52l25 128q5 25 19 45q2 3 5 7t13.5 15t21.5 19.5t26.5 15.5 t29.5 7zM915 1079l-166 -162q-7 -7 -5 -12t12 -5h219q10 0 15 7t2 17l-51 149q-3 10 -11 12t-15 -6zM463 917l-177 157q-8 7 -16 5t-11 -12l-51 -143q-3 -10 2 -17t15 -7h231q11 0 12.5 5t-5.5 12zM500 0h-375q-10 0 -17.5 7.5t-7.5 17.5v375h400v-400zM1100 400v-375 q0 -10 -7.5 -17.5t-17.5 -7.5h-375v400h400z" />
-<glyph unicode="&#xe103;" d="M1165 1190q8 3 21 -6.5t13 -17.5q-2 -178 -24.5 -323.5t-55.5 -245.5t-87 -174.5t-102.5 -118.5t-118 -68.5t-118.5 -33t-120 -4.5t-105 9.5t-90 16.5q-61 12 -78 11q-4 1 -12.5 0t-34 -14.5t-52.5 -40.5l-153 -153q-26 -24 -37 -14.5t-11 43.5q0 64 42 102q8 8 50.5 45 t66.5 58q19 17 35 47t13 61q-9 55 -10 102.5t7 111t37 130t78 129.5q39 51 80 88t89.5 63.5t94.5 45t113.5 36t129 31t157.5 37t182 47.5zM1116 1098q-8 9 -22.5 -3t-45.5 -50q-38 -47 -119 -103.5t-142 -89.5l-62 -33q-56 -30 -102 -57t-104 -68t-102.5 -80.5t-85.5 -91 t-64 -104.5q-24 -56 -31 -86t2 -32t31.5 17.5t55.5 59.5q25 30 94 75.5t125.5 77.5t147.5 81q70 37 118.5 69t102 79.5t99 111t86.5 148.5q22 50 24 60t-6 19z" />
-<glyph unicode="&#xe104;" d="M653 1231q-39 -67 -54.5 -131t-10.5 -114.5t24.5 -96.5t47.5 -80t63.5 -62.5t68.5 -46.5t65 -30q-4 7 -17.5 35t-18.5 39.5t-17 39.5t-17 43t-13 42t-9.5 44.5t-2 42t4 43t13.5 39t23 38.5q96 -42 165 -107.5t105 -138t52 -156t13 -159t-19 -149.5q-13 -55 -44 -106.5 t-68 -87t-78.5 -64.5t-72.5 -45t-53 -22q-72 -22 -127 -11q-31 6 -13 19q6 3 17 7q13 5 32.5 21t41 44t38.5 63.5t21.5 81.5t-6.5 94.5t-50 107t-104 115.5q10 -104 -0.5 -189t-37 -140.5t-65 -93t-84 -52t-93.5 -11t-95 24.5q-80 36 -131.5 114t-53.5 171q-2 23 0 49.5 t4.5 52.5t13.5 56t27.5 60t46 64.5t69.5 68.5q-8 -53 -5 -102.5t17.5 -90t34 -68.5t44.5 -39t49 -2q31 13 38.5 36t-4.5 55t-29 64.5t-36 75t-26 75.5q-15 85 2 161.5t53.5 128.5t85.5 92.5t93.5 61t81.5 25.5z" />
-<glyph unicode="&#xe105;" d="M600 1094q82 0 160.5 -22.5t140 -59t116.5 -82.5t94.5 -95t68 -95t42.5 -82.5t14 -57.5t-14 -57.5t-43 -82.5t-68.5 -95t-94.5 -95t-116.5 -82.5t-140 -59t-159.5 -22.5t-159.5 22.5t-140 59t-116.5 82.5t-94.5 95t-68.5 95t-43 82.5t-14 57.5t14 57.5t42.5 82.5t68 95 t94.5 95t116.5 82.5t140 59t160.5 22.5zM888 829q-15 15 -18 12t5 -22q25 -57 25 -119q0 -124 -88 -212t-212 -88t-212 88t-88 212q0 59 23 114q8 19 4.5 22t-17.5 -12q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q22 -36 47 -71t70 -82t92.5 -81t113 -58.5t133.5 -24.5 t133.5 24t113 58.5t92.5 81.5t70 81.5t47 70.5q11 18 9 42.5t-14 41.5q-90 117 -163 189zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l35 34q14 15 12.5 33.5t-16.5 33.5q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
-<glyph unicode="&#xe106;" d="M592 0h-148l31 120q-91 20 -175.5 68.5t-143.5 106.5t-103.5 119t-66.5 110t-22 76q0 21 14 57.5t42.5 82.5t68 95t94.5 95t116.5 82.5t140 59t160.5 22.5q61 0 126 -15l32 121h148zM944 770l47 181q108 -85 176.5 -192t68.5 -159q0 -26 -19.5 -71t-59.5 -102t-93 -112 t-129 -104.5t-158 -75.5l46 173q77 49 136 117t97 131q11 18 9 42.5t-14 41.5q-54 70 -107 130zM310 824q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q18 -30 39 -60t57 -70.5t74 -73t90 -61t105 -41.5l41 154q-107 18 -178.5 101.5t-71.5 193.5q0 59 23 114q8 19 4.5 22 t-17.5 -12zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l12 11l22 86l-3 4q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
-<glyph unicode="&#xe107;" d="M-90 100l642 1066q20 31 48 28.5t48 -35.5l642 -1056q21 -32 7.5 -67.5t-50.5 -35.5h-1294q-37 0 -50.5 34t7.5 66zM155 200h345v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h345l-445 723zM496 700h208q20 0 32 -14.5t8 -34.5l-58 -252 q-4 -20 -21.5 -34.5t-37.5 -14.5h-54q-20 0 -37.5 14.5t-21.5 34.5l-58 252q-4 20 8 34.5t32 14.5z" />
-<glyph unicode="&#xe108;" d="M650 1200q62 0 106 -44t44 -106v-339l363 -325q15 -14 26 -38.5t11 -44.5v-41q0 -20 -12 -26.5t-29 5.5l-359 249v-263q100 -93 100 -113v-64q0 -21 -13 -29t-32 1l-205 128l-205 -128q-19 -9 -32 -1t-13 29v64q0 20 100 113v263l-359 -249q-17 -12 -29 -5.5t-12 26.5v41 q0 20 11 44.5t26 38.5l363 325v339q0 62 44 106t106 44z" />
-<glyph unicode="&#xe109;" d="M850 1200h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-150h-1100v150q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-50h500v50q0 21 14.5 35.5t35.5 14.5zM1100 800v-750q0 -21 -14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v750h1100zM100 600v-100h100v100h-100zM300 600v-100h100v100h-100zM500 600v-100h100v100h-100zM700 600v-100h100v100h-100zM900 600v-100h100v100h-100zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400 v-100h100v100h-100zM700 400v-100h100v100h-100zM900 400v-100h100v100h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100zM500 200v-100h100v100h-100zM700 200v-100h100v100h-100zM900 200v-100h100v100h-100z" />
-<glyph unicode="&#xe110;" d="M1135 1165l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-159l-600 -600h-291q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h209l600 600h241v150q0 21 10.5 25t24.5 -10zM522 819l-141 -141l-122 122h-209q-21 0 -35.5 14.5 t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h291zM1135 565l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-241l-181 181l141 141l122 -122h159v150q0 21 10.5 25t24.5 -10z" />
-<glyph unicode="&#xe111;" d="M100 1100h1000q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-596l-304 -300v300h-100q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5z" />
-<glyph unicode="&#xe112;" d="M150 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM850 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM1100 800v-300q0 -41 -3 -77.5t-15 -89.5t-32 -96t-58 -89t-89 -77t-129 -51t-174 -20t-174 20 t-129 51t-89 77t-58 89t-32 96t-15 89.5t-3 77.5v300h300v-250v-27v-42.5t1.5 -41t5 -38t10 -35t16.5 -30t25.5 -24.5t35 -19t46.5 -12t60 -4t60 4.5t46.5 12.5t35 19.5t25 25.5t17 30.5t10 35t5 38t2 40.5t-0.5 42v25v250h300z" />
-<glyph unicode="&#xe113;" d="M1100 411l-198 -199l-353 353l-353 -353l-197 199l551 551z" />
-<glyph unicode="&#xe114;" d="M1101 789l-550 -551l-551 551l198 199l353 -353l353 353z" />
-<glyph unicode="&#xe115;" d="M404 1000h746q21 0 35.5 -14.5t14.5 -35.5v-551h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v401h-381zM135 984l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-400h385l215 -200h-750q-21 0 -35.5 14.5 t-14.5 35.5v550h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe116;" d="M56 1200h94q17 0 31 -11t18 -27l38 -162h896q24 0 39 -18.5t10 -42.5l-100 -475q-5 -21 -27 -42.5t-55 -21.5h-633l48 -200h535q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-50q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-300v-50 q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-31q-18 0 -32.5 10t-20.5 19l-5 10l-201 961h-54q-20 0 -35 14.5t-15 35.5t15 35.5t35 14.5z" />
-<glyph unicode="&#xe117;" d="M1200 1000v-100h-1200v100h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500zM0 800h1200v-800h-1200v800z" />
-<glyph unicode="&#xe118;" d="M200 800l-200 -400v600h200q0 41 29.5 70.5t70.5 29.5h300q42 0 71 -29.5t29 -70.5h500v-200h-1000zM1500 700l-300 -700h-1200l300 700h1200z" />
-<glyph unicode="&#xe119;" d="M635 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-601h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v601h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe120;" d="M936 864l249 -229q14 -15 14 -35.5t-14 -35.5l-249 -229q-15 -15 -25.5 -10.5t-10.5 24.5v151h-600v-151q0 -20 -10.5 -24.5t-25.5 10.5l-249 229q-14 15 -14 35.5t14 35.5l249 229q15 15 25.5 10.5t10.5 -25.5v-149h600v149q0 21 10.5 25.5t25.5 -10.5z" />
-<glyph unicode="&#xe121;" d="M1169 400l-172 732q-5 23 -23 45.5t-38 22.5h-672q-20 0 -38 -20t-23 -41l-172 -739h1138zM1100 300h-1000q-41 0 -70.5 -29.5t-29.5 -70.5v-100q0 -41 29.5 -70.5t70.5 -29.5h1000q41 0 70.5 29.5t29.5 70.5v100q0 41 -29.5 70.5t-70.5 29.5zM800 100v100h100v-100h-100 zM1000 100v100h100v-100h-100z" />
-<glyph unicode="&#xe122;" d="M1150 1100q21 0 35.5 -14.5t14.5 -35.5v-850q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v850q0 21 14.5 35.5t35.5 14.5zM1000 200l-675 200h-38l47 -276q3 -16 -5.5 -20t-29.5 -4h-7h-84q-20 0 -34.5 14t-18.5 35q-55 337 -55 351v250v6q0 16 1 23.5t6.5 14 t17.5 6.5h200l675 250v-850zM0 750v-250q-4 0 -11 0.5t-24 6t-30 15t-24 30t-11 48.5v50q0 26 10.5 46t25 30t29 16t25.5 7z" />
-<glyph unicode="&#xe123;" d="M553 1200h94q20 0 29 -10.5t3 -29.5l-18 -37q83 -19 144 -82.5t76 -140.5l63 -327l118 -173h17q19 0 33 -14.5t14 -35t-13 -40.5t-31 -27q-8 -4 -23 -9.5t-65 -19.5t-103 -25t-132.5 -20t-158.5 -9q-57 0 -115 5t-104 12t-88.5 15.5t-73.5 17.5t-54.5 16t-35.5 12l-11 4 q-18 8 -31 28t-13 40.5t14 35t33 14.5h17l118 173l63 327q15 77 76 140t144 83l-18 32q-6 19 3.5 32t28.5 13zM498 110q50 -6 102 -6q53 0 102 6q-12 -49 -39.5 -79.5t-62.5 -30.5t-63 30.5t-39 79.5z" />
-<glyph unicode="&#xe124;" d="M800 946l224 78l-78 -224l234 -45l-180 -155l180 -155l-234 -45l78 -224l-224 78l-45 -234l-155 180l-155 -180l-45 234l-224 -78l78 224l-234 45l180 155l-180 155l234 45l-78 224l224 -78l45 234l155 -180l155 180z" />
-<glyph unicode="&#xe125;" d="M650 1200h50q40 0 70 -40.5t30 -84.5v-150l-28 -125h328q40 0 70 -40.5t30 -84.5v-100q0 -45 -29 -74l-238 -344q-16 -24 -38 -40.5t-45 -16.5h-250q-7 0 -42 25t-66 50l-31 25h-61q-45 0 -72.5 18t-27.5 57v400q0 36 20 63l145 196l96 198q13 28 37.5 48t51.5 20z M650 1100l-100 -212l-150 -213v-375h100l136 -100h214l250 375v125h-450l50 225v175h-50zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe126;" d="M600 1100h250q23 0 45 -16.5t38 -40.5l238 -344q29 -29 29 -74v-100q0 -44 -30 -84.5t-70 -40.5h-328q28 -118 28 -125v-150q0 -44 -30 -84.5t-70 -40.5h-50q-27 0 -51.5 20t-37.5 48l-96 198l-145 196q-20 27 -20 63v400q0 39 27.5 57t72.5 18h61q124 100 139 100z M50 1000h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM636 1000l-136 -100h-100v-375l150 -213l100 -212h50v175l-50 225h450v125l-250 375h-214z" />
-<glyph unicode="&#xe127;" d="M356 873l363 230q31 16 53 -6l110 -112q13 -13 13.5 -32t-11.5 -34l-84 -121h302q84 0 138 -38t54 -110t-55 -111t-139 -39h-106l-131 -339q-6 -21 -19.5 -41t-28.5 -20h-342q-7 0 -90 81t-83 94v525q0 17 14 35.5t28 28.5zM400 792v-503l100 -89h293l131 339 q6 21 19.5 41t28.5 20h203q21 0 30.5 25t0.5 50t-31 25h-456h-7h-6h-5.5t-6 0.5t-5 1.5t-5 2t-4 2.5t-4 4t-2.5 4.5q-12 25 5 47l146 183l-86 83zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500 q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe128;" d="M475 1103l366 -230q2 -1 6 -3.5t14 -10.5t18 -16.5t14.5 -20t6.5 -22.5v-525q0 -13 -86 -94t-93 -81h-342q-15 0 -28.5 20t-19.5 41l-131 339h-106q-85 0 -139.5 39t-54.5 111t54 110t138 38h302l-85 121q-11 15 -10.5 34t13.5 32l110 112q22 22 53 6zM370 945l146 -183 q17 -22 5 -47q-2 -2 -3.5 -4.5t-4 -4t-4 -2.5t-5 -2t-5 -1.5t-6 -0.5h-6h-6.5h-6h-475v-100h221q15 0 29 -20t20 -41l130 -339h294l106 89v503l-342 236zM1050 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5 v500q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe129;" d="M550 1294q72 0 111 -55t39 -139v-106l339 -131q21 -6 41 -19.5t20 -28.5v-342q0 -7 -81 -90t-94 -83h-525q-17 0 -35.5 14t-28.5 28l-9 14l-230 363q-16 31 6 53l112 110q13 13 32 13.5t34 -11.5l121 -84v302q0 84 38 138t110 54zM600 972v203q0 21 -25 30.5t-50 0.5 t-25 -31v-456v-7v-6v-5.5t-0.5 -6t-1.5 -5t-2 -5t-2.5 -4t-4 -4t-4.5 -2.5q-25 -12 -47 5l-183 146l-83 -86l236 -339h503l89 100v293l-339 131q-21 6 -41 19.5t-20 28.5zM450 200h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe130;" d="M350 1100h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5zM600 306v-106q0 -84 -39 -139t-111 -55t-110 54t-38 138v302l-121 -84q-15 -12 -34 -11.5t-32 13.5l-112 110 q-22 22 -6 53l230 363q1 2 3.5 6t10.5 13.5t16.5 17t20 13.5t22.5 6h525q13 0 94 -83t81 -90v-342q0 -15 -20 -28.5t-41 -19.5zM308 900l-236 -339l83 -86l183 146q22 17 47 5q2 -1 4.5 -2.5t4 -4t2.5 -4t2 -5t1.5 -5t0.5 -6v-5.5v-6v-7v-456q0 -22 25 -31t50 0.5t25 30.5 v203q0 15 20 28.5t41 19.5l339 131v293l-89 100h-503z" />
-<glyph unicode="&#xe131;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM914 632l-275 223q-16 13 -27.5 8t-11.5 -26v-137h-275 q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h275v-137q0 -21 11.5 -26t27.5 8l275 223q16 13 16 32t-16 32z" />
-<glyph unicode="&#xe132;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM561 855l-275 -223q-16 -13 -16 -32t16 -32l275 -223q16 -13 27.5 -8 t11.5 26v137h275q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5h-275v137q0 21 -11.5 26t-27.5 -8z" />
-<glyph unicode="&#xe133;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM855 639l-223 275q-13 16 -32 16t-32 -16l-223 -275q-13 -16 -8 -27.5 t26 -11.5h137v-275q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v275h137q21 0 26 11.5t-8 27.5z" />
-<glyph unicode="&#xe134;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM675 900h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-275h-137q-21 0 -26 -11.5 t8 -27.5l223 -275q13 -16 32 -16t32 16l223 275q13 16 8 27.5t-26 11.5h-137v275q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe135;" d="M600 1176q116 0 222.5 -46t184 -123.5t123.5 -184t46 -222.5t-46 -222.5t-123.5 -184t-184 -123.5t-222.5 -46t-222.5 46t-184 123.5t-123.5 184t-46 222.5t46 222.5t123.5 184t184 123.5t222.5 46zM627 1101q-15 -12 -36.5 -20.5t-35.5 -12t-43 -8t-39 -6.5 q-15 -3 -45.5 0t-45.5 -2q-20 -7 -51.5 -26.5t-34.5 -34.5q-3 -11 6.5 -22.5t8.5 -18.5q-3 -34 -27.5 -91t-29.5 -79q-9 -34 5 -93t8 -87q0 -9 17 -44.5t16 -59.5q12 0 23 -5t23.5 -15t19.5 -14q16 -8 33 -15t40.5 -15t34.5 -12q21 -9 52.5 -32t60 -38t57.5 -11 q7 -15 -3 -34t-22.5 -40t-9.5 -38q13 -21 23 -34.5t27.5 -27.5t36.5 -18q0 -7 -3.5 -16t-3.5 -14t5 -17q104 -2 221 112q30 29 46.5 47t34.5 49t21 63q-13 8 -37 8.5t-36 7.5q-15 7 -49.5 15t-51.5 19q-18 0 -41 -0.5t-43 -1.5t-42 -6.5t-38 -16.5q-51 -35 -66 -12 q-4 1 -3.5 25.5t0.5 25.5q-6 13 -26.5 17.5t-24.5 6.5q1 15 -0.5 30.5t-7 28t-18.5 11.5t-31 -21q-23 -25 -42 4q-19 28 -8 58q6 16 22 22q6 -1 26 -1.5t33.5 -4t19.5 -13.5q7 -12 18 -24t21.5 -20.5t20 -15t15.5 -10.5l5 -3q2 12 7.5 30.5t8 34.5t-0.5 32q-3 18 3.5 29 t18 22.5t15.5 24.5q6 14 10.5 35t8 31t15.5 22.5t34 22.5q-6 18 10 36q8 0 24 -1.5t24.5 -1.5t20 4.5t20.5 15.5q-10 23 -31 42.5t-37.5 29.5t-49 27t-43.5 23q0 1 2 8t3 11.5t1.5 10.5t-1 9.5t-4.5 4.5q31 -13 58.5 -14.5t38.5 2.5l12 5q5 28 -9.5 46t-36.5 24t-50 15 t-41 20q-18 -4 -37 0zM613 994q0 -17 8 -42t17 -45t9 -23q-8 1 -39.5 5.5t-52.5 10t-37 16.5q3 11 16 29.5t16 25.5q10 -10 19 -10t14 6t13.5 14.5t16.5 12.5z" />
-<glyph unicode="&#xe136;" d="M756 1157q164 92 306 -9l-259 -138l145 -232l251 126q6 -89 -34 -156.5t-117 -110.5q-60 -34 -127 -39.5t-126 16.5l-596 -596q-15 -16 -36.5 -16t-36.5 16l-111 110q-15 15 -15 36.5t15 37.5l600 599q-34 101 5.5 201.5t135.5 154.5z" />
-<glyph unicode="&#xe137;" horiz-adv-x="1220" d="M100 1196h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 1096h-200v-100h200v100zM100 796h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 696h-500v-100h500v100zM100 396h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 296h-300v-100h300v100z " />
-<glyph unicode="&#xe138;" d="M150 1200h900q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM700 500v-300l-200 -200v500l-350 500h900z" />
-<glyph unicode="&#xe139;" d="M500 1200h200q41 0 70.5 -29.5t29.5 -70.5v-100h300q41 0 70.5 -29.5t29.5 -70.5v-400h-500v100h-200v-100h-500v400q0 41 29.5 70.5t70.5 29.5h300v100q0 41 29.5 70.5t70.5 29.5zM500 1100v-100h200v100h-200zM1200 400v-200q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v200h1200z" />
-<glyph unicode="&#xe140;" d="M50 1200h300q21 0 25 -10.5t-10 -24.5l-94 -94l199 -199q7 -8 7 -18t-7 -18l-106 -106q-8 -7 -18 -7t-18 7l-199 199l-94 -94q-14 -14 -24.5 -10t-10.5 25v300q0 21 14.5 35.5t35.5 14.5zM850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-199 -199q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l199 199l-94 94q-14 14 -10 24.5t25 10.5zM364 470l106 -106q7 -8 7 -18t-7 -18l-199 -199l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l199 199 q8 7 18 7t18 -7zM1071 271l94 94q14 14 24.5 10t10.5 -25v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -25 10.5t10 24.5l94 94l-199 199q-7 8 -7 18t7 18l106 106q8 7 18 7t18 -7z" />
-<glyph unicode="&#xe141;" d="M596 1192q121 0 231.5 -47.5t190 -127t127 -190t47.5 -231.5t-47.5 -231.5t-127 -190.5t-190 -127t-231.5 -47t-231.5 47t-190.5 127t-127 190.5t-47 231.5t47 231.5t127 190t190.5 127t231.5 47.5zM596 1010q-112 0 -207.5 -55.5t-151 -151t-55.5 -207.5t55.5 -207.5 t151 -151t207.5 -55.5t207.5 55.5t151 151t55.5 207.5t-55.5 207.5t-151 151t-207.5 55.5zM454.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38.5 -16.5t-38.5 16.5t-16 39t16 38.5t38.5 16zM754.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38 -16.5q-14 0 -29 10l-55 -145 q17 -23 17 -51q0 -36 -25.5 -61.5t-61.5 -25.5t-61.5 25.5t-25.5 61.5q0 32 20.5 56.5t51.5 29.5l122 126l1 1q-9 14 -9 28q0 23 16 39t38.5 16zM345.5 709q22.5 0 38.5 -16t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16zM854.5 709q22.5 0 38.5 -16 t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16z" />
-<glyph unicode="&#xe142;" d="M546 173l469 470q91 91 99 192q7 98 -52 175.5t-154 94.5q-22 4 -47 4q-34 0 -66.5 -10t-56.5 -23t-55.5 -38t-48 -41.5t-48.5 -47.5q-376 -375 -391 -390q-30 -27 -45 -41.5t-37.5 -41t-32 -46.5t-16 -47.5t-1.5 -56.5q9 -62 53.5 -95t99.5 -33q74 0 125 51l548 548 q36 36 20 75q-7 16 -21.5 26t-32.5 10q-26 0 -50 -23q-13 -12 -39 -38l-341 -338q-15 -15 -35.5 -15.5t-34.5 13.5t-14 34.5t14 34.5q327 333 361 367q35 35 67.5 51.5t78.5 16.5q14 0 29 -1q44 -8 74.5 -35.5t43.5 -68.5q14 -47 2 -96.5t-47 -84.5q-12 -11 -32 -32 t-79.5 -81t-114.5 -115t-124.5 -123.5t-123 -119.5t-96.5 -89t-57 -45q-56 -27 -120 -27q-70 0 -129 32t-93 89q-48 78 -35 173t81 163l511 511q71 72 111 96q91 55 198 55q80 0 152 -33q78 -36 129.5 -103t66.5 -154q17 -93 -11 -183.5t-94 -156.5l-482 -476 q-15 -15 -36 -16t-37 14t-17.5 34t14.5 35z" />
-<glyph unicode="&#xe143;" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104zM896 972q-33 0 -64.5 -19t-56.5 -46t-47.5 -53.5t-43.5 -45.5t-37.5 -19t-36 19t-40 45.5t-43 53.5t-54 46t-65.5 19q-67 0 -122.5 -55.5t-55.5 -132.5q0 -23 13.5 -51t46 -65t57.5 -63t76 -75l22 -22q15 -14 44 -44t50.5 -51t46 -44t41 -35t23 -12 t23.5 12t42.5 36t46 44t52.5 52t44 43q4 4 12 13q43 41 63.5 62t52 55t46 55t26 46t11.5 44q0 79 -53 133.5t-120 54.5z" />
-<glyph unicode="&#xe144;" d="M776.5 1214q93.5 0 159.5 -66l141 -141q66 -66 66 -160q0 -42 -28 -95.5t-62 -87.5l-29 -29q-31 53 -77 99l-18 18l95 95l-247 248l-389 -389l212 -212l-105 -106l-19 18l-141 141q-66 66 -66 159t66 159l283 283q65 66 158.5 66zM600 706l105 105q10 -8 19 -17l141 -141 q66 -66 66 -159t-66 -159l-283 -283q-66 -66 -159 -66t-159 66l-141 141q-66 66 -66 159.5t66 159.5l55 55q29 -55 75 -102l18 -17l-95 -95l247 -248l389 389z" />
-<glyph unicode="&#xe145;" d="M603 1200q85 0 162 -15t127 -38t79 -48t29 -46v-953q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-41 0 -70.5 29.5t-29.5 70.5v953q0 21 30 46.5t81 48t129 37.5t163 15zM300 1000v-700h600v700h-600zM600 254q-43 0 -73.5 -30.5t-30.5 -73.5t30.5 -73.5t73.5 -30.5t73.5 30.5 t30.5 73.5t-30.5 73.5t-73.5 30.5z" />
-<glyph unicode="&#xe146;" d="M902 1185l283 -282q15 -15 15 -36t-14.5 -35.5t-35.5 -14.5t-35 15l-36 35l-279 -267v-300l-212 210l-308 -307l-280 -203l203 280l307 308l-210 212h300l267 279l-35 36q-15 14 -15 35t14.5 35.5t35.5 14.5t35 -15z" />
-<glyph unicode="&#xe148;" d="M700 1248v-78q38 -5 72.5 -14.5t75.5 -31.5t71 -53.5t52 -84t24 -118.5h-159q-4 36 -10.5 59t-21 45t-40 35.5t-64.5 20.5v-307l64 -13q34 -7 64 -16.5t70 -32t67.5 -52.5t47.5 -80t20 -112q0 -139 -89 -224t-244 -97v-77h-100v79q-150 16 -237 103q-40 40 -52.5 93.5 t-15.5 139.5h139q5 -77 48.5 -126t117.5 -65v335l-27 8q-46 14 -79 26.5t-72 36t-63 52t-40 72.5t-16 98q0 70 25 126t67.5 92t94.5 57t110 27v77h100zM600 754v274q-29 -4 -50 -11t-42 -21.5t-31.5 -41.5t-10.5 -65q0 -29 7 -50.5t16.5 -34t28.5 -22.5t31.5 -14t37.5 -10 q9 -3 13 -4zM700 547v-310q22 2 42.5 6.5t45 15.5t41.5 27t29 42t12 59.5t-12.5 59.5t-38 44.5t-53 31t-66.5 24.5z" />
-<glyph unicode="&#xe149;" d="M561 1197q84 0 160.5 -40t123.5 -109.5t47 -147.5h-153q0 40 -19.5 71.5t-49.5 48.5t-59.5 26t-55.5 9q-37 0 -79 -14.5t-62 -35.5q-41 -44 -41 -101q0 -26 13.5 -63t26.5 -61t37 -66q6 -9 9 -14h241v-100h-197q8 -50 -2.5 -115t-31.5 -95q-45 -62 -99 -112 q34 10 83 17.5t71 7.5q32 1 102 -16t104 -17q83 0 136 30l50 -147q-31 -19 -58 -30.5t-55 -15.5t-42 -4.5t-46 -0.5q-23 0 -76 17t-111 32.5t-96 11.5q-39 -3 -82 -16t-67 -25l-23 -11l-55 145q4 3 16 11t15.5 10.5t13 9t15.5 12t14.5 14t17.5 18.5q48 55 54 126.5 t-30 142.5h-221v100h166q-23 47 -44 104q-7 20 -12 41.5t-6 55.5t6 66.5t29.5 70.5t58.5 71q97 88 263 88z" />
-<glyph unicode="&#xe150;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM935 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-900h-200v900h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe151;" d="M1000 700h-100v100h-100v-100h-100v500h300v-500zM400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM801 1100v-200h100v200h-100zM1000 350l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150z " />
-<glyph unicode="&#xe152;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 1050l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150zM1000 0h-100v100h-100v-100h-100v500h300v-500zM801 400v-200h100v200h-100z " />
-<glyph unicode="&#xe153;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 700h-100v400h-100v100h200v-500zM1100 0h-100v100h-200v400h300v-500zM901 400v-200h100v200h-100z" />
-<glyph unicode="&#xe154;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1100 700h-100v100h-200v400h300v-500zM901 1100v-200h100v200h-100zM1000 0h-100v400h-100v100h200v-500z" />
-<glyph unicode="&#xe155;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM900 1000h-200v200h200v-200zM1000 700h-300v200h300v-200zM1100 400h-400v200h400v-200zM1200 100h-500v200h500v-200z" />
-<glyph unicode="&#xe156;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1200 1000h-500v200h500v-200zM1100 700h-400v200h400v-200zM1000 400h-300v200h300v-200zM900 100h-200v200h200v-200z" />
-<glyph unicode="&#xe157;" d="M350 1100h400q162 0 256 -93.5t94 -256.5v-400q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5z" />
-<glyph unicode="&#xe158;" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-163 0 -256.5 92.5t-93.5 257.5v400q0 163 94 256.5t256 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM440 770l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
-<glyph unicode="&#xe159;" d="M350 1100h400q163 0 256.5 -94t93.5 -256v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 163 92.5 256.5t257.5 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM350 700h400q21 0 26.5 -12t-6.5 -28l-190 -253q-12 -17 -30 -17t-30 17l-190 253q-12 16 -6.5 28t26.5 12z" />
-<glyph unicode="&#xe160;" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -163 -92.5 -256.5t-257.5 -93.5h-400q-163 0 -256.5 94t-93.5 256v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM580 693l190 -253q12 -16 6.5 -28t-26.5 -12h-400q-21 0 -26.5 12t6.5 28l190 253q12 17 30 17t30 -17z" />
-<glyph unicode="&#xe161;" d="M550 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h450q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-450q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM338 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
-<glyph unicode="&#xe162;" d="M793 1182l9 -9q8 -10 5 -27q-3 -11 -79 -225.5t-78 -221.5l300 1q24 0 32.5 -17.5t-5.5 -35.5q-1 0 -133.5 -155t-267 -312.5t-138.5 -162.5q-12 -15 -26 -15h-9l-9 8q-9 11 -4 32q2 9 42 123.5t79 224.5l39 110h-302q-23 0 -31 19q-10 21 6 41q75 86 209.5 237.5 t228 257t98.5 111.5q9 16 25 16h9z" />
-<glyph unicode="&#xe163;" d="M350 1100h400q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-450q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h450q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400 q0 165 92.5 257.5t257.5 92.5zM938 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
-<glyph unicode="&#xe164;" d="M750 1200h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -10.5 -25t-24.5 10l-109 109l-312 -312q-15 -15 -35.5 -15t-35.5 15l-141 141q-15 15 -15 35.5t15 35.5l312 312l-109 109q-14 14 -10 24.5t25 10.5zM456 900h-156q-41 0 -70.5 -29.5t-29.5 -70.5v-500 q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v148l200 200v-298q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5h300z" />
-<glyph unicode="&#xe165;" d="M600 1186q119 0 227.5 -46.5t187 -125t125 -187t46.5 -227.5t-46.5 -227.5t-125 -187t-187 -125t-227.5 -46.5t-227.5 46.5t-187 125t-125 187t-46.5 227.5t46.5 227.5t125 187t187 125t227.5 46.5zM600 1022q-115 0 -212 -56.5t-153.5 -153.5t-56.5 -212t56.5 -212 t153.5 -153.5t212 -56.5t212 56.5t153.5 153.5t56.5 212t-56.5 212t-153.5 153.5t-212 56.5zM600 794q80 0 137 -57t57 -137t-57 -137t-137 -57t-137 57t-57 137t57 137t137 57z" />
-<glyph unicode="&#xe166;" d="M450 1200h200q21 0 35.5 -14.5t14.5 -35.5v-350h245q20 0 25 -11t-9 -26l-383 -426q-14 -15 -33.5 -15t-32.5 15l-379 426q-13 15 -8.5 26t25.5 11h250v350q0 21 14.5 35.5t35.5 14.5zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe167;" d="M583 1182l378 -435q14 -15 9 -31t-26 -16h-244v-250q0 -20 -17 -35t-39 -15h-200q-20 0 -32 14.5t-12 35.5v250h-250q-20 0 -25.5 16.5t8.5 31.5l383 431q14 16 33.5 17t33.5 -14zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe168;" d="M396 723l369 369q7 7 17.5 7t17.5 -7l139 -139q7 -8 7 -18.5t-7 -17.5l-525 -525q-7 -8 -17.5 -8t-17.5 8l-292 291q-7 8 -7 18t7 18l139 139q8 7 18.5 7t17.5 -7zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50 h-100z" />
-<glyph unicode="&#xe169;" d="M135 1023l142 142q14 14 35 14t35 -14l77 -77l-212 -212l-77 76q-14 15 -14 36t14 35zM655 855l210 210q14 14 24.5 10t10.5 -25l-2 -599q-1 -20 -15.5 -35t-35.5 -15l-597 -1q-21 0 -25 10.5t10 24.5l208 208l-154 155l212 212zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5 v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe170;" d="M350 1200l599 -2q20 -1 35 -15.5t15 -35.5l1 -597q0 -21 -10.5 -25t-24.5 10l-208 208l-155 -154l-212 212l155 154l-210 210q-14 14 -10 24.5t25 10.5zM524 512l-76 -77q-15 -14 -36 -14t-35 14l-142 142q-14 14 -14 35t14 35l77 77zM50 300h1000q21 0 35.5 -14.5 t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe171;" d="M1200 103l-483 276l-314 -399v423h-399l1196 796v-1096zM483 424v-230l683 953z" />
-<glyph unicode="&#xe172;" d="M1100 1000v-850q0 -21 -14.5 -35.5t-35.5 -14.5h-150v400h-700v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200z" />
-<glyph unicode="&#xe173;" d="M1100 1000l-2 -149l-299 -299l-95 95q-9 9 -21.5 9t-21.5 -9l-149 -147h-312v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1132 638l106 -106q7 -7 7 -17.5t-7 -17.5l-420 -421q-8 -7 -18 -7 t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l297 297q7 7 17.5 7t17.5 -7z" />
-<glyph unicode="&#xe174;" d="M1100 1000v-269l-103 -103l-134 134q-15 15 -33.5 16.5t-34.5 -12.5l-266 -266h-329v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1202 572l70 -70q15 -15 15 -35.5t-15 -35.5l-131 -131 l131 -131q15 -15 15 -35.5t-15 -35.5l-70 -70q-15 -15 -35.5 -15t-35.5 15l-131 131l-131 -131q-15 -15 -35.5 -15t-35.5 15l-70 70q-15 15 -15 35.5t15 35.5l131 131l-131 131q-15 15 -15 35.5t15 35.5l70 70q15 15 35.5 15t35.5 -15l131 -131l131 131q15 15 35.5 15 t35.5 -15z" />
-<glyph unicode="&#xe175;" d="M1100 1000v-300h-350q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-500v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM850 600h100q21 0 35.5 -14.5t14.5 -35.5v-250h150q21 0 25 -10.5t-10 -24.5 l-230 -230q-14 -14 -35 -14t-35 14l-230 230q-14 14 -10 24.5t25 10.5h150v250q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe176;" d="M1100 1000v-400l-165 165q-14 15 -35 15t-35 -15l-263 -265h-402v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM935 565l230 -229q14 -15 10 -25.5t-25 -10.5h-150v-250q0 -20 -14.5 -35 t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35v250h-150q-21 0 -25 10.5t10 25.5l230 229q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe177;" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-150h-1200v150q0 21 14.5 35.5t35.5 14.5zM1200 800v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v550h1200zM100 500v-200h400v200h-400z" />
-<glyph unicode="&#xe178;" d="M935 1165l248 -230q14 -14 14 -35t-14 -35l-248 -230q-14 -14 -24.5 -10t-10.5 25v150h-400v200h400v150q0 21 10.5 25t24.5 -10zM200 800h-50q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v-200zM400 800h-100v200h100v-200zM18 435l247 230 q14 14 24.5 10t10.5 -25v-150h400v-200h-400v-150q0 -21 -10.5 -25t-24.5 10l-247 230q-15 14 -15 35t15 35zM900 300h-100v200h100v-200zM1000 500h51q20 0 34.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-34.5 -14.5h-51v200z" />
-<glyph unicode="&#xe179;" d="M862 1073l276 116q25 18 43.5 8t18.5 -41v-1106q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v397q-4 1 -11 5t-24 17.5t-30 29t-24 42t-11 56.5v359q0 31 18.5 65t43.5 52zM550 1200q22 0 34.5 -12.5t14.5 -24.5l1 -13v-450q0 -28 -10.5 -59.5 t-25 -56t-29 -45t-25.5 -31.5l-10 -11v-447q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v447q-4 4 -11 11.5t-24 30.5t-30 46t-24 55t-11 60v450q0 2 0.5 5.5t4 12t8.5 15t14.5 12t22.5 5.5q20 0 32.5 -12.5t14.5 -24.5l3 -13v-350h100v350v5.5t2.5 12 t7 15t15 12t25.5 5.5q23 0 35.5 -12.5t13.5 -24.5l1 -13v-350h100v350q0 2 0.5 5.5t3 12t7 15t15 12t24.5 5.5z" />
-<glyph unicode="&#xe180;" d="M1200 1100v-56q-4 0 -11 -0.5t-24 -3t-30 -7.5t-24 -15t-11 -24v-888q0 -22 25 -34.5t50 -13.5l25 -2v-56h-400v56q75 0 87.5 6.5t12.5 43.5v394h-500v-394q0 -37 12.5 -43.5t87.5 -6.5v-56h-400v56q4 0 11 0.5t24 3t30 7.5t24 15t11 24v888q0 22 -25 34.5t-50 13.5 l-25 2v56h400v-56q-75 0 -87.5 -6.5t-12.5 -43.5v-394h500v394q0 37 -12.5 43.5t-87.5 6.5v56h400z" />
-<glyph unicode="&#xe181;" d="M675 1000h375q21 0 35.5 -14.5t14.5 -35.5v-150h-105l-295 -98v98l-200 200h-400l100 100h375zM100 900h300q41 0 70.5 -29.5t29.5 -70.5v-500q0 -41 -29.5 -70.5t-70.5 -29.5h-300q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5zM100 800v-200h300v200 h-300zM1100 535l-400 -133v163l400 133v-163zM100 500v-200h300v200h-300zM1100 398v-248q0 -21 -14.5 -35.5t-35.5 -14.5h-375l-100 -100h-375l-100 100h400l200 200h105z" />
-<glyph unicode="&#xe182;" d="M17 1007l162 162q17 17 40 14t37 -22l139 -194q14 -20 11 -44.5t-20 -41.5l-119 -118q102 -142 228 -268t267 -227l119 118q17 17 42.5 19t44.5 -12l192 -136q19 -14 22.5 -37.5t-13.5 -40.5l-163 -162q-3 -1 -9.5 -1t-29.5 2t-47.5 6t-62.5 14.5t-77.5 26.5t-90 42.5 t-101.5 60t-111 83t-119 108.5q-74 74 -133.5 150.5t-94.5 138.5t-60 119.5t-34.5 100t-15 74.5t-4.5 48z" />
-<glyph unicode="&#xe183;" d="M600 1100q92 0 175 -10.5t141.5 -27t108.5 -36.5t81.5 -40t53.5 -37t31 -27l9 -10v-200q0 -21 -14.5 -33t-34.5 -9l-202 34q-20 3 -34.5 20t-14.5 38v146q-141 24 -300 24t-300 -24v-146q0 -21 -14.5 -38t-34.5 -20l-202 -34q-20 -3 -34.5 9t-14.5 33v200q3 4 9.5 10.5 t31 26t54 37.5t80.5 39.5t109 37.5t141 26.5t175 10.5zM600 795q56 0 97 -9.5t60 -23.5t30 -28t12 -24l1 -10v-50l365 -303q14 -15 24.5 -40t10.5 -45v-212q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v212q0 20 10.5 45t24.5 40l365 303v50 q0 4 1 10.5t12 23t30 29t60 22.5t97 10z" />
-<glyph unicode="&#xe184;" d="M1100 700l-200 -200h-600l-200 200v500h200v-200h200v200h200v-200h200v200h200v-500zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5 t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe185;" d="M700 1100h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-1000h300v1000q0 41 -29.5 70.5t-70.5 29.5zM1100 800h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-700h300v700q0 41 -29.5 70.5t-70.5 29.5zM400 0h-300v400q0 41 29.5 70.5t70.5 29.5h100q41 0 70.5 -29.5t29.5 -70.5v-400z " />
-<glyph unicode="&#xe186;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
-<glyph unicode="&#xe187;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 300h-100v200h-100v-200h-100v500h100v-200h100v200h100v-500zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
-<glyph unicode="&#xe188;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-300h200v-100h-300v500h300v-100zM900 700h-200v-300h200v-100h-300v500h300v-100z" />
-<glyph unicode="&#xe189;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 400l-300 150l300 150v-300zM900 550l-300 -150v300z" />
-<glyph unicode="&#xe190;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM900 300h-700v500h700v-500zM800 700h-130q-38 0 -66.5 -43t-28.5 -108t27 -107t68 -42h130v300zM300 700v-300 h130q41 0 68 42t27 107t-28.5 108t-66.5 43h-130z" />
-<glyph unicode="&#xe191;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 300h-100v400h-100v100h200v-500z M700 300h-100v100h100v-100z" />
-<glyph unicode="&#xe192;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM300 700h200v-400h-300v500h100v-100zM900 300h-100v400h-100v100h200v-500zM300 600v-200h100v200h-100z M700 300h-100v100h100v-100z" />
-<glyph unicode="&#xe193;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 500l-199 -200h-100v50l199 200v150h-200v100h300v-300zM900 300h-100v400h-100v100h200v-500zM701 300h-100 v100h100v-100z" />
-<glyph unicode="&#xe194;" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700h-300v-200h300v-100h-300l-100 100v200l100 100h300v-100z" />
-<glyph unicode="&#xe195;" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700v-100l-50 -50l100 -100v-50h-100l-100 100h-150v-100h-100v400h300zM500 700v-100h200v100h-200z" />
-<glyph unicode="&#xe197;" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -207t-85 -207t-205 -86.5h-128v250q0 21 -14.5 35.5t-35.5 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-250h-222q-80 0 -136 57.5t-56 136.5q0 69 43 122.5t108 67.5q-2 19 -2 37q0 100 49 185 t134 134t185 49zM525 500h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -244q-13 -16 -32 -16t-32 16l-223 244q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe198;" d="M502 1089q110 0 201 -59.5t135 -156.5q43 15 89 15q121 0 206 -86.5t86 -206.5q0 -99 -60 -181t-150 -110l-378 360q-13 16 -31.5 16t-31.5 -16l-381 -365h-9q-79 0 -135.5 57.5t-56.5 136.5q0 69 43 122.5t108 67.5q-2 19 -2 38q0 100 49 184.5t133.5 134t184.5 49.5z M632 467l223 -228q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5q199 204 223 228q19 19 31.5 19t32.5 -19z" />
-<glyph unicode="&#xe199;" d="M700 100v100h400l-270 300h170l-270 300h170l-300 333l-300 -333h170l-270 -300h170l-270 -300h400v-100h-50q-21 0 -35.5 -14.5t-14.5 -35.5v-50h400v50q0 21 -14.5 35.5t-35.5 14.5h-50z" />
-<glyph unicode="&#xe200;" d="M600 1179q94 0 167.5 -56.5t99.5 -145.5q89 -6 150.5 -71.5t61.5 -155.5q0 -61 -29.5 -112.5t-79.5 -82.5q9 -29 9 -55q0 -74 -52.5 -126.5t-126.5 -52.5q-55 0 -100 30v-251q21 0 35.5 -14.5t14.5 -35.5v-50h-300v50q0 21 14.5 35.5t35.5 14.5v251q-45 -30 -100 -30 q-74 0 -126.5 52.5t-52.5 126.5q0 18 4 38q-47 21 -75.5 65t-28.5 97q0 74 52.5 126.5t126.5 52.5q5 0 23 -2q0 2 -1 10t-1 13q0 116 81.5 197.5t197.5 81.5z" />
-<glyph unicode="&#xe201;" d="M1010 1010q111 -111 150.5 -260.5t0 -299t-150.5 -260.5q-83 -83 -191.5 -126.5t-218.5 -43.5t-218.5 43.5t-191.5 126.5q-111 111 -150.5 260.5t0 299t150.5 260.5q83 83 191.5 126.5t218.5 43.5t218.5 -43.5t191.5 -126.5zM476 1065q-4 0 -8 -1q-121 -34 -209.5 -122.5 t-122.5 -209.5q-4 -12 2.5 -23t18.5 -14l36 -9q3 -1 7 -1q23 0 29 22q27 96 98 166q70 71 166 98q11 3 17.5 13.5t3.5 22.5l-9 35q-3 13 -14 19q-7 4 -15 4zM512 920q-4 0 -9 -2q-80 -24 -138.5 -82.5t-82.5 -138.5q-4 -13 2 -24t19 -14l34 -9q4 -1 8 -1q22 0 28 21 q18 58 58.5 98.5t97.5 58.5q12 3 18 13.5t3 21.5l-9 35q-3 12 -14 19q-7 4 -15 4zM719.5 719.5q-49.5 49.5 -119.5 49.5t-119.5 -49.5t-49.5 -119.5t49.5 -119.5t119.5 -49.5t119.5 49.5t49.5 119.5t-49.5 119.5zM855 551q-22 0 -28 -21q-18 -58 -58.5 -98.5t-98.5 -57.5 q-11 -4 -17 -14.5t-3 -21.5l9 -35q3 -12 14 -19q7 -4 15 -4q4 0 9 2q80 24 138.5 82.5t82.5 138.5q4 13 -2.5 24t-18.5 14l-34 9q-4 1 -8 1zM1000 515q-23 0 -29 -22q-27 -96 -98 -166q-70 -71 -166 -98q-11 -3 -17.5 -13.5t-3.5 -22.5l9 -35q3 -13 14 -19q7 -4 15 -4 q4 0 8 1q121 34 209.5 122.5t122.5 209.5q4 12 -2.5 23t-18.5 14l-36 9q-3 1 -7 1z" />
-<glyph unicode="&#xe202;" d="M700 800h300v-380h-180v200h-340v-200h-380v755q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM700 300h162l-212 -212l-212 212h162v200h100v-200zM520 0h-395q-10 0 -17.5 7.5t-7.5 17.5v395zM1000 220v-195q0 -10 -7.5 -17.5t-17.5 -7.5h-195z" />
-<glyph unicode="&#xe203;" d="M700 800h300v-520l-350 350l-550 -550v1095q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM862 200h-162v-200h-100v200h-162l212 212zM480 0h-355q-10 0 -17.5 7.5t-7.5 17.5v55h380v-80zM1000 80v-55q0 -10 -7.5 -17.5t-17.5 -7.5h-155v80h180z" />
-<glyph unicode="&#xe204;" d="M1162 800h-162v-200h100l100 -100h-300v300h-162l212 212zM200 800h200q27 0 40 -2t29.5 -10.5t23.5 -30t7 -57.5h300v-100h-600l-200 -350v450h100q0 36 7 57.5t23.5 30t29.5 10.5t40 2zM800 400h240l-240 -400h-800l300 500h500v-100z" />
-<glyph unicode="&#xe205;" d="M650 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM1000 850v150q41 0 70.5 -29.5t29.5 -70.5v-800 q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-1 0 -20 4l246 246l-326 326v324q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM412 250l-212 -212v162h-200v100h200v162z" />
-<glyph unicode="&#xe206;" d="M450 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM800 850v150q41 0 70.5 -29.5t29.5 -70.5v-500 h-200v-300h200q0 -36 -7 -57.5t-23.5 -30t-29.5 -10.5t-40 -2h-600q-41 0 -70.5 29.5t-29.5 70.5v800q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM1212 250l-212 -212v162h-200v100h200v162z" />
-<glyph unicode="&#xe209;" d="M658 1197l637 -1104q23 -38 7 -65.5t-60 -27.5h-1276q-44 0 -60 27.5t7 65.5l637 1104q22 39 54 39t54 -39zM704 800h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM500 300v-100h200 v100h-200z" />
-<glyph unicode="&#xe210;" d="M425 1100h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM825 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM25 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5zM425 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5 v150q0 10 7.5 17.5t17.5 7.5zM25 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe211;" d="M700 1200h100v-200h-100v-100h350q62 0 86.5 -39.5t-3.5 -94.5l-66 -132q-41 -83 -81 -134h-772q-40 51 -81 134l-66 132q-28 55 -3.5 94.5t86.5 39.5h350v100h-100v200h100v100h200v-100zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100 h-950l138 100h-13q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe212;" d="M600 1300q40 0 68.5 -29.5t28.5 -70.5h-194q0 41 28.5 70.5t68.5 29.5zM443 1100h314q18 -37 18 -75q0 -8 -3 -25h328q41 0 44.5 -16.5t-30.5 -38.5l-175 -145h-678l-178 145q-34 22 -29 38.5t46 16.5h328q-3 17 -3 25q0 38 18 75zM250 700h700q21 0 35.5 -14.5 t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-150v-200l275 -200h-950l275 200v200h-150q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe213;" d="M600 1181q75 0 128 -53t53 -128t-53 -128t-128 -53t-128 53t-53 128t53 128t128 53zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13 l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe214;" d="M600 1300q47 0 92.5 -53.5t71 -123t25.5 -123.5q0 -78 -55.5 -133.5t-133.5 -55.5t-133.5 55.5t-55.5 133.5q0 62 34 143l144 -143l111 111l-163 163q34 26 63 26zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45 zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe215;" d="M600 1200l300 -161v-139h-300q0 -57 18.5 -108t50 -91.5t63 -72t70 -67.5t57.5 -61h-530q-60 83 -90.5 177.5t-30.5 178.5t33 164.5t87.5 139.5t126 96.5t145.5 41.5v-98zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100 h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe216;" d="M600 1300q41 0 70.5 -29.5t29.5 -70.5v-78q46 -26 73 -72t27 -100v-50h-400v50q0 54 27 100t73 72v78q0 41 29.5 70.5t70.5 29.5zM400 800h400q54 0 100 -27t72 -73h-172v-100h200v-100h-200v-100h200v-100h-200v-100h200q0 -83 -58.5 -141.5t-141.5 -58.5h-400 q-83 0 -141.5 58.5t-58.5 141.5v400q0 83 58.5 141.5t141.5 58.5z" />
-<glyph unicode="&#xe218;" d="M150 1100h900q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM125 400h950q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-283l224 -224q13 -13 13 -31.5t-13 -32 t-31.5 -13.5t-31.5 13l-88 88h-524l-87 -88q-13 -13 -32 -13t-32 13.5t-13 32t13 31.5l224 224h-289q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM541 300l-100 -100h324l-100 100h-124z" />
-<glyph unicode="&#xe219;" d="M200 1100h800q83 0 141.5 -58.5t58.5 -141.5v-200h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100v200q0 83 58.5 141.5t141.5 58.5zM100 600h1000q41 0 70.5 -29.5 t29.5 -70.5v-300h-1200v300q0 41 29.5 70.5t70.5 29.5zM300 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200zM1100 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200z" />
-<glyph unicode="&#xe221;" d="M480 1165l682 -683q31 -31 31 -75.5t-31 -75.5l-131 -131h-481l-517 518q-32 31 -32 75.5t32 75.5l295 296q31 31 75.5 31t76.5 -31zM108 794l342 -342l303 304l-341 341zM250 100h800q21 0 35.5 -14.5t14.5 -35.5v-50h-900v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe223;" d="M1057 647l-189 506q-8 19 -27.5 33t-40.5 14h-400q-21 0 -40.5 -14t-27.5 -33l-189 -506q-8 -19 1.5 -33t30.5 -14h625v-150q0 -21 14.5 -35.5t35.5 -14.5t35.5 14.5t14.5 35.5v150h125q21 0 30.5 14t1.5 33zM897 0h-595v50q0 21 14.5 35.5t35.5 14.5h50v50 q0 21 14.5 35.5t35.5 14.5h48v300h200v-300h47q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-50z" />
-<glyph unicode="&#xe224;" d="M900 800h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-375v591l-300 300v84q0 10 7.5 17.5t17.5 7.5h375v-400zM1200 900h-200v200zM400 600h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-650q-10 0 -17.5 7.5t-7.5 17.5v950q0 10 7.5 17.5t17.5 7.5h375v-400zM700 700h-200v200z " />
-<glyph unicode="&#xe225;" d="M484 1095h195q75 0 146 -32.5t124 -86t89.5 -122.5t48.5 -142q18 -14 35 -20q31 -10 64.5 6.5t43.5 48.5q10 34 -15 71q-19 27 -9 43q5 8 12.5 11t19 -1t23.5 -16q41 -44 39 -105q-3 -63 -46 -106.5t-104 -43.5h-62q-7 -55 -35 -117t-56 -100l-39 -234q-3 -20 -20 -34.5 t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l12 70q-49 -14 -91 -14h-195q-24 0 -65 8l-11 -64q-3 -20 -20 -34.5t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l26 157q-84 74 -128 175l-159 53q-19 7 -33 26t-14 40v50q0 21 14.5 35.5t35.5 14.5h124q11 87 56 166l-111 95 q-16 14 -12.5 23.5t24.5 9.5h203q116 101 250 101zM675 1000h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h250q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe226;" d="M641 900l423 247q19 8 42 2.5t37 -21.5l32 -38q14 -15 12.5 -36t-17.5 -34l-139 -120h-390zM50 1100h106q67 0 103 -17t66 -71l102 -212h823q21 0 35.5 -14.5t14.5 -35.5v-50q0 -21 -14 -40t-33 -26l-737 -132q-23 -4 -40 6t-26 25q-42 67 -100 67h-300q-62 0 -106 44 t-44 106v200q0 62 44 106t106 44zM173 928h-80q-19 0 -28 -14t-9 -35v-56q0 -51 42 -51h134q16 0 21.5 8t5.5 24q0 11 -16 45t-27 51q-18 28 -43 28zM550 727q-32 0 -54.5 -22.5t-22.5 -54.5t22.5 -54.5t54.5 -22.5t54.5 22.5t22.5 54.5t-22.5 54.5t-54.5 22.5zM130 389 l152 130q18 19 34 24t31 -3.5t24.5 -17.5t25.5 -28q28 -35 50.5 -51t48.5 -13l63 5l48 -179q13 -61 -3.5 -97.5t-67.5 -79.5l-80 -69q-47 -40 -109 -35.5t-103 51.5l-130 151q-40 47 -35.5 109.5t51.5 102.5zM380 377l-102 -88q-31 -27 2 -65l37 -43q13 -15 27.5 -19.5 t31.5 6.5l61 53q19 16 14 49q-2 20 -12 56t-17 45q-11 12 -19 14t-23 -8z" />
-<glyph unicode="&#xe227;" d="M625 1200h150q10 0 17.5 -7.5t7.5 -17.5v-109q79 -33 131 -87.5t53 -128.5q1 -46 -15 -84.5t-39 -61t-46 -38t-39 -21.5l-17 -6q6 0 15 -1.5t35 -9t50 -17.5t53 -30t50 -45t35.5 -64t14.5 -84q0 -59 -11.5 -105.5t-28.5 -76.5t-44 -51t-49.5 -31.5t-54.5 -16t-49.5 -6.5 t-43.5 -1v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-100v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-175q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v600h-75q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5h175v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h100v75q0 10 7.5 17.5t17.5 7.5zM400 900v-200h263q28 0 48.5 10.5t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-263zM400 500v-200h363q28 0 48.5 10.5 t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-363z" />
-<glyph unicode="&#xe230;" d="M212 1198h780q86 0 147 -61t61 -147v-416q0 -51 -18 -142.5t-36 -157.5l-18 -66q-29 -87 -93.5 -146.5t-146.5 -59.5h-572q-82 0 -147 59t-93 147q-8 28 -20 73t-32 143.5t-20 149.5v416q0 86 61 147t147 61zM600 1045q-70 0 -132.5 -11.5t-105.5 -30.5t-78.5 -41.5 t-57 -45t-36 -41t-20.5 -30.5l-6 -12l156 -243h560l156 243q-2 5 -6 12.5t-20 29.5t-36.5 42t-57 44.5t-79 42t-105 29.5t-132.5 12zM762 703h-157l195 261z" />
-<glyph unicode="&#xe231;" d="M475 1300h150q103 0 189 -86t86 -189v-500q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
-<glyph unicode="&#xe232;" d="M475 1300h96q0 -150 89.5 -239.5t239.5 -89.5v-446q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
-<glyph unicode="&#xe233;" d="M1294 767l-638 -283l-378 170l-78 -60v-224l100 -150v-199l-150 148l-150 -149v200l100 150v250q0 4 -0.5 10.5t0 9.5t1 8t3 8t6.5 6l47 40l-147 65l642 283zM1000 380l-350 -166l-350 166v147l350 -165l350 165v-147z" />
-<glyph unicode="&#xe234;" d="M250 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM650 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM1050 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
-<glyph unicode="&#xe235;" d="M550 1100q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 700q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 300q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
-<glyph unicode="&#xe236;" d="M125 1100h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM125 700h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM125 300h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe237;" d="M350 1200h500q162 0 256 -93.5t94 -256.5v-500q0 -165 -93.5 -257.5t-256.5 -92.5h-500q-165 0 -257.5 92.5t-92.5 257.5v500q0 165 92.5 257.5t257.5 92.5zM900 1000h-600q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h600q41 0 70.5 29.5 t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5zM350 900h500q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-500q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 14.5 35.5t35.5 14.5zM400 800v-200h400v200h-400z" />
-<glyph unicode="&#xe238;" d="M150 1100h1000q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe239;" d="M650 1187q87 -67 118.5 -156t0 -178t-118.5 -155q-87 66 -118.5 155t0 178t118.5 156zM300 800q124 0 212 -88t88 -212q-124 0 -212 88t-88 212zM1000 800q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM300 500q124 0 212 -88t88 -212q-124 0 -212 88t-88 212z M1000 500q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM700 199v-144q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v142q40 -4 43 -4q17 0 57 6z" />
-<glyph unicode="&#xe240;" d="M745 878l69 19q25 6 45 -12l298 -295q11 -11 15 -26.5t-2 -30.5q-5 -14 -18 -23.5t-28 -9.5h-8q1 0 1 -13q0 -29 -2 -56t-8.5 -62t-20 -63t-33 -53t-51 -39t-72.5 -14h-146q-184 0 -184 288q0 24 10 47q-20 4 -62 4t-63 -4q11 -24 11 -47q0 -288 -184 -288h-142 q-48 0 -84.5 21t-56 51t-32 71.5t-16 75t-3.5 68.5q0 13 2 13h-7q-15 0 -27.5 9.5t-18.5 23.5q-6 15 -2 30.5t15 25.5l298 296q20 18 46 11l76 -19q20 -5 30.5 -22.5t5.5 -37.5t-22.5 -31t-37.5 -5l-51 12l-182 -193h891l-182 193l-44 -12q-20 -5 -37.5 6t-22.5 31t6 37.5 t31 22.5z" />
-<glyph unicode="&#xe241;" d="M1200 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM500 450h-25q0 15 -4 24.5t-9 14.5t-17 7.5t-20 3t-25 0.5h-100v-425q0 -11 12.5 -17.5t25.5 -7.5h12v-50h-200v50q50 0 50 25v425h-100q-17 0 -25 -0.5t-20 -3t-17 -7.5t-9 -14.5t-4 -24.5h-25v150h500v-150z" />
-<glyph unicode="&#xe242;" d="M1000 300v50q-25 0 -55 32q-14 14 -25 31t-16 27l-4 11l-289 747h-69l-300 -754q-18 -35 -39 -56q-9 -9 -24.5 -18.5t-26.5 -14.5l-11 -5v-50h273v50q-49 0 -78.5 21.5t-11.5 67.5l69 176h293l61 -166q13 -34 -3.5 -66.5t-55.5 -32.5v-50h312zM412 691l134 342l121 -342 h-255zM1100 150v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5z" />
-<glyph unicode="&#xe243;" d="M50 1200h1100q21 0 35.5 -14.5t14.5 -35.5v-1100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5zM611 1118h-70q-13 0 -18 -12l-299 -753q-17 -32 -35 -51q-18 -18 -56 -34q-12 -5 -12 -18v-50q0 -8 5.5 -14t14.5 -6 h273q8 0 14 6t6 14v50q0 8 -6 14t-14 6q-55 0 -71 23q-10 14 0 39l63 163h266l57 -153q11 -31 -6 -55q-12 -17 -36 -17q-8 0 -14 -6t-6 -14v-50q0 -8 6 -14t14 -6h313q8 0 14 6t6 14v50q0 7 -5.5 13t-13.5 7q-17 0 -42 25q-25 27 -40 63h-1l-288 748q-5 12 -19 12zM639 611 h-197l103 264z" />
-<glyph unicode="&#xe244;" d="M1200 1100h-1200v100h1200v-100zM50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 1000h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM700 900v-300h300v300h-300z" />
-<glyph unicode="&#xe245;" d="M50 1200h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 700h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM700 600v-300h300v300h-300zM1200 0h-1200v100h1200v-100z" />
-<glyph unicode="&#xe246;" d="M50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-350h100v150q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-150h100v-100h-100v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v150h-100v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM700 700v-300h300v300h-300z" />
-<glyph unicode="&#xe247;" d="M100 0h-100v1200h100v-1200zM250 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM300 1000v-300h300v300h-300zM250 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe248;" d="M600 1100h150q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-100h450q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h350v100h-150q-21 0 -35.5 14.5 t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h150v100h100v-100zM400 1000v-300h300v300h-300z" />
-<glyph unicode="&#xe249;" d="M1200 0h-100v1200h100v-1200zM550 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM600 1000v-300h300v300h-300zM50 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe250;" d="M865 565l-494 -494q-23 -23 -41 -23q-14 0 -22 13.5t-8 38.5v1000q0 25 8 38.5t22 13.5q18 0 41 -23l494 -494q14 -14 14 -35t-14 -35z" />
-<glyph unicode="&#xe251;" d="M335 635l494 494q29 29 50 20.5t21 -49.5v-1000q0 -41 -21 -49.5t-50 20.5l-494 494q-14 14 -14 35t14 35z" />
-<glyph unicode="&#xe252;" d="M100 900h1000q41 0 49.5 -21t-20.5 -50l-494 -494q-14 -14 -35 -14t-35 14l-494 494q-29 29 -20.5 50t49.5 21z" />
-<glyph unicode="&#xe253;" d="M635 865l494 -494q29 -29 20.5 -50t-49.5 -21h-1000q-41 0 -49.5 21t20.5 50l494 494q14 14 35 14t35 -14z" />
-<glyph unicode="&#xe254;" d="M700 741v-182l-692 -323v221l413 193l-413 193v221zM1200 0h-800v200h800v-200z" />
-<glyph unicode="&#xe255;" d="M1200 900h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300zM0 700h50q0 21 4 37t9.5 26.5t18 17.5t22 11t28.5 5.5t31 2t37 0.5h100v-550q0 -22 -25 -34.5t-50 -13.5l-25 -2v-100h400v100q-4 0 -11 0.5t-24 3t-30 7t-24 15t-11 24.5v550h100q25 0 37 -0.5t31 -2 t28.5 -5.5t22 -11t18 -17.5t9.5 -26.5t4 -37h50v300h-800v-300z" />
-<glyph unicode="&#xe256;" d="M800 700h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-100v-550q0 -22 25 -34.5t50 -14.5l25 -1v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v550h-100q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h800v-300zM1100 200h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300z" />
-<glyph unicode="&#xe257;" d="M701 1098h160q16 0 21 -11t-7 -23l-464 -464l464 -464q12 -12 7 -23t-21 -11h-160q-13 0 -23 9l-471 471q-7 8 -7 18t7 18l471 471q10 9 23 9z" />
-<glyph unicode="&#xe258;" d="M339 1098h160q13 0 23 -9l471 -471q7 -8 7 -18t-7 -18l-471 -471q-10 -9 -23 -9h-160q-16 0 -21 11t7 23l464 464l-464 464q-12 12 -7 23t21 11z" />
-<glyph unicode="&#xe259;" d="M1087 882q11 -5 11 -21v-160q0 -13 -9 -23l-471 -471q-8 -7 -18 -7t-18 7l-471 471q-9 10 -9 23v160q0 16 11 21t23 -7l464 -464l464 464q12 12 23 7z" />
-<glyph unicode="&#xe260;" d="M618 993l471 -471q9 -10 9 -23v-160q0 -16 -11 -21t-23 7l-464 464l-464 -464q-12 -12 -23 -7t-11 21v160q0 13 9 23l471 471q8 7 18 7t18 -7z" />
-<glyph unicode="&#xf8ff;" d="M1000 1200q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM450 1000h100q21 0 40 -14t26 -33l79 -194q5 1 16 3q34 6 54 9.5t60 7t65.5 1t61 -10t56.5 -23t42.5 -42t29 -64t5 -92t-19.5 -121.5q-1 -7 -3 -19.5t-11 -50t-20.5 -73t-32.5 -81.5t-46.5 -83t-64 -70 t-82.5 -50q-13 -5 -42 -5t-65.5 2.5t-47.5 2.5q-14 0 -49.5 -3.5t-63 -3.5t-43.5 7q-57 25 -104.5 78.5t-75 111.5t-46.5 112t-26 90l-7 35q-15 63 -18 115t4.5 88.5t26 64t39.5 43.5t52 25.5t58.5 13t62.5 2t59.5 -4.5t55.5 -8l-147 192q-12 18 -5.5 30t27.5 12z" />
-<glyph unicode="&#x1f511;" d="M250 1200h600q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-500l-255 -178q-19 -9 -32 -1t-13 29v650h-150q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM400 1100v-100h300v100h-300z" />
-<glyph unicode="&#x1f6aa;" d="M250 1200h750q39 0 69.5 -40.5t30.5 -84.5v-933l-700 -117v950l600 125h-700v-1000h-100v1025q0 23 15.5 49t34.5 26zM500 525v-100l100 20v100z" />
-</font>
-</defs></svg> \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.ttf b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.ttf
deleted file mode 100644
index 1413fc60..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.ttf
+++ /dev/null
Binary files differ
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff
deleted file mode 100644
index 9e612858..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff
+++ /dev/null
Binary files differ
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff2 b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff2
deleted file mode 100644
index 64539b54..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/fonts/glyphicons-halflings-regular.woff2
+++ /dev/null
Binary files differ
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.js b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.js
deleted file mode 100644
index c8f82e59..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/bootstrap.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Bootstrap v3.3.4 (http://getbootstrap.com)
- * Copyright 2011-2015 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- */
-if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.4",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.4",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.4",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.4",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=c(d),f={relatedTarget:this};e.hasClass("open")&&(e.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.4",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",b);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(b){if(/(38|40|27|32)/.test(b.which)&&!/input|textarea/i.test(b.target.tagName)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var e=c(d),g=e.hasClass("open");if(!g&&27!=b.which||g&&27==b.which)return 27==b.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find('[role="menu"]'+h+', [role="listbox"]'+h);if(i.length){var j=i.index(b.target);38==b.which&&j>0&&j--,40==b.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",b).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',g.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.4",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in").attr("aria-hidden",!1),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a('<div class="modal-backdrop '+e+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",a,b)};c.VERSION="3.3.4",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c&&c.$tip&&c.$tip.is(":visible")?void(c.hoverState="in"):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.options.container?a(this.options.container):this.$element.parent(),p=this.getPosition(o);h="bottom"==h&&k.bottom+m>p.bottom?"top":"top"==h&&k.top-m<p.top?"bottom":"right"==h&&k.right+l>p.width?"left":"left"==h&&k.left-l<p.left?"right":h,f.removeClass(n).addClass(h)}var q=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(q,h);var r=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",r).emulateTransitionEnd(c.TRANSITION_DURATION):r()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top=b.top+g,b.left=b.left+h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);return this.$element.trigger(g),g.isDefaultPrevented()?void 0:(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=d?{top:0,left:0}:b.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,g,h,f)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type)})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.4",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.4",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.4",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){
-var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.4",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a(document.body).height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/d3.min.js b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/d3.min.js
deleted file mode 100644
index 34d5513e..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/d3.min.js
+++ /dev/null
@@ -1,5 +0,0 @@
-!function(){function n(n){return n&&(n.ownerDocument||n.document||n).documentElement}function t(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function e(n,t){return t>n?-1:n>t?1:n>=t?0:0/0}function r(n){return null===n?0/0:+n}function u(n){return!isNaN(n)}function i(n){return{left:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)<0?r=i+1:u=i}return r},right:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)>0?u=i:r=i+1}return r}}}function o(n){return n.length}function a(n){for(var t=1;n*t%1;)t*=10;return t}function c(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function l(){this._=Object.create(null)}function s(n){return(n+="")===pa||n[0]===va?va+n:n}function f(n){return(n+="")[0]===va?n.slice(1):n}function h(n){return s(n)in this._}function g(n){return(n=s(n))in this._&&delete this._[n]}function p(){var n=[];for(var t in this._)n.push(f(t));return n}function v(){var n=0;for(var t in this._)++n;return n}function d(){for(var n in this._)return!1;return!0}function m(){this._=Object.create(null)}function y(n){return n}function M(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function x(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=da.length;r>e;++e){var u=da[e]+t;if(u in n)return u}}function b(){}function _(){}function w(n){function t(){for(var t,r=e,u=-1,i=r.length;++u<i;)(t=r[u].on)&&t.apply(this,arguments);return n}var e=[],r=new l;return t.on=function(t,u){var i,o=r.get(t);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,i=e.indexOf(o)).concat(e.slice(i+1)),r.remove(t)),u&&e.push(r.set(t,{on:u})),n)},t}function S(){ta.event.preventDefault()}function k(){for(var n,t=ta.event;n=t.sourceEvent;)t=n;return t}function E(n){for(var t=new _,e=0,r=arguments.length;++e<r;)t[arguments[e]]=w(t);return t.of=function(e,r){return function(u){try{var i=u.sourceEvent=ta.event;u.target=n,ta.event=u,t[u.type].apply(e,r)}finally{ta.event=i}}},t}function A(n){return ya(n,_a),n}function N(n){return"function"==typeof n?n:function(){return Ma(n,this)}}function C(n){return"function"==typeof n?n:function(){return xa(n,this)}}function z(n,t){function e(){this.removeAttribute(n)}function r(){this.removeAttributeNS(n.space,n.local)}function u(){this.setAttribute(n,t)}function i(){this.setAttributeNS(n.space,n.local,t)}function o(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}function a(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}return n=ta.ns.qualify(n),null==t?n.local?r:e:"function"==typeof t?n.local?a:o:n.local?i:u}function q(n){return n.trim().replace(/\s+/g," ")}function L(n){return new RegExp("(?:^|\\s+)"+ta.requote(n)+"(?:\\s+|$)","g")}function T(n){return(n+"").trim().split(/^|\s+/)}function R(n,t){function e(){for(var e=-1;++e<u;)n[e](this,t)}function r(){for(var e=-1,r=t.apply(this,arguments);++e<u;)n[e](this,r)}n=T(n).map(D);var u=n.length;return"function"==typeof t?r:e}function D(n){var t=L(n);return function(e,r){if(u=e.classList)return r?u.add(n):u.remove(n);var u=e.getAttribute("class")||"";r?(t.lastIndex=0,t.test(u)||e.setAttribute("class",q(u+" "+n))):e.setAttribute("class",q(u.replace(t," ")))}}function P(n,t,e){function r(){this.style.removeProperty(n)}function u(){this.style.setProperty(n,t,e)}function i(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}return null==t?r:"function"==typeof t?i:u}function U(n,t){function e(){delete this[n]}function r(){this[n]=t}function u(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}return null==t?e:"function"==typeof t?u:r}function j(n){function t(){var t=this.ownerDocument,e=this.namespaceURI;return e?t.createElementNS(e,n):t.createElement(n)}function e(){return this.ownerDocument.createElementNS(n.space,n.local)}return"function"==typeof n?n:(n=ta.ns.qualify(n)).local?e:t}function F(){var n=this.parentNode;n&&n.removeChild(this)}function H(n){return{__data__:n}}function O(n){return function(){return ba(this,n)}}function I(n){return arguments.length||(n=e),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function Y(n,t){for(var e=0,r=n.length;r>e;e++)for(var u,i=n[e],o=0,a=i.length;a>o;o++)(u=i[o])&&t(u,o,e);return n}function Z(n){return ya(n,Sa),n}function V(n){var t,e;return function(r,u,i){var o,a=n[i].update,c=a.length;for(i!=e&&(e=i,t=0),u>=t&&(t=u+1);!(o=a[t])&&++t<c;);return o}}function X(n,t,e){function r(){var t=this[o];t&&(this.removeEventListener(n,t,t.$),delete this[o])}function u(){var u=c(t,ra(arguments));r.call(this),this.addEventListener(n,this[o]=u,u.$=e),u._=t}function i(){var t,e=new RegExp("^__on([^.]+)"+ta.requote(n)+"$");for(var r in this)if(t=r.match(e)){var u=this[r];this.removeEventListener(t[1],u,u.$),delete this[r]}}var o="__on"+n,a=n.indexOf("."),c=$;a>0&&(n=n.slice(0,a));var l=ka.get(n);return l&&(n=l,c=B),a?t?u:r:t?b:i}function $(n,t){return function(e){var r=ta.event;ta.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{ta.event=r}}}function B(n,t){var e=$(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function W(e){var r=".dragsuppress-"+ ++Aa,u="click"+r,i=ta.select(t(e)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==Ea&&(Ea="onselectstart"in e?!1:x(e.style,"userSelect")),Ea){var o=n(e).style,a=o[Ea];o[Ea]="none"}return function(n){if(i.on(r,null),Ea&&(o[Ea]=a),n){var t=function(){i.on(u,null)};i.on(u,function(){S(),t()},!0),setTimeout(t,0)}}}function J(n,e){e.changedTouches&&(e=e.changedTouches[0]);var r=n.ownerSVGElement||n;if(r.createSVGPoint){var u=r.createSVGPoint();if(0>Na){var i=t(n);if(i.scrollX||i.scrollY){r=ta.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();Na=!(o.f||o.e),r.remove()}}return Na?(u.x=e.pageX,u.y=e.pageY):(u.x=e.clientX,u.y=e.clientY),u=u.matrixTransform(n.getScreenCTM().inverse()),[u.x,u.y]}var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.clientTop]}function G(){return ta.event.changedTouches[0].identifier}function K(n){return n>0?1:0>n?-1:0}function Q(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function nt(n){return n>1?0:-1>n?qa:Math.acos(n)}function tt(n){return n>1?Ra:-1>n?-Ra:Math.asin(n)}function et(n){return((n=Math.exp(n))-1/n)/2}function rt(n){return((n=Math.exp(n))+1/n)/2}function ut(n){return((n=Math.exp(2*n))-1)/(n+1)}function it(n){return(n=Math.sin(n/2))*n}function ot(){}function at(n,t,e){return this instanceof at?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof at?new at(n.h,n.s,n.l):bt(""+n,_t,at):new at(n,t,e)}function ct(n,t,e){function r(n){return n>360?n-=360:0>n&&(n+=360),60>n?i+(o-i)*n/60:180>n?o:240>n?i+(o-i)*(240-n)/60:i}function u(n){return Math.round(255*r(n))}var i,o;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,e=0>e?0:e>1?1:e,o=.5>=e?e*(1+t):e+t-e*t,i=2*e-o,new mt(u(n+120),u(n),u(n-120))}function lt(n,t,e){return this instanceof lt?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof lt?new lt(n.h,n.c,n.l):n instanceof ft?gt(n.l,n.a,n.b):gt((n=wt((n=ta.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new lt(n,t,e)}function st(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new ft(e,Math.cos(n*=Da)*t,Math.sin(n)*t)}function ft(n,t,e){return this instanceof ft?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof ft?new ft(n.l,n.a,n.b):n instanceof lt?st(n.h,n.c,n.l):wt((n=mt(n)).r,n.g,n.b):new ft(n,t,e)}function ht(n,t,e){var r=(n+16)/116,u=r+t/500,i=r-e/200;return u=pt(u)*Xa,r=pt(r)*$a,i=pt(i)*Ba,new mt(dt(3.2404542*u-1.5371385*r-.4985314*i),dt(-.969266*u+1.8760108*r+.041556*i),dt(.0556434*u-.2040259*r+1.0572252*i))}function gt(n,t,e){return n>0?new lt(Math.atan2(e,t)*Pa,Math.sqrt(t*t+e*e),n):new lt(0/0,0/0,n)}function pt(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function vt(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function dt(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function mt(n,t,e){return this instanceof mt?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof mt?new mt(n.r,n.g,n.b):bt(""+n,mt,ct):new mt(n,t,e)}function yt(n){return new mt(n>>16,n>>8&255,255&n)}function Mt(n){return yt(n)+""}function xt(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function bt(n,t,e){var r,u,i,o=0,a=0,c=0;if(r=/([a-z]+)\((.*)\)/i.exec(n))switch(u=r[2].split(","),r[1]){case"hsl":return e(parseFloat(u[0]),parseFloat(u[1])/100,parseFloat(u[2])/100);case"rgb":return t(kt(u[0]),kt(u[1]),kt(u[2]))}return(i=Ga.get(n.toLowerCase()))?t(i.r,i.g,i.b):(null==n||"#"!==n.charAt(0)||isNaN(i=parseInt(n.slice(1),16))||(4===n.length?(o=(3840&i)>>4,o=o>>4|o,a=240&i,a=a>>4|a,c=15&i,c=c<<4|c):7===n.length&&(o=(16711680&i)>>16,a=(65280&i)>>8,c=255&i)),t(o,a,c))}function _t(n,t,e){var r,u,i=Math.min(n/=255,t/=255,e/=255),o=Math.max(n,t,e),a=o-i,c=(o+i)/2;return a?(u=.5>c?a/(o+i):a/(2-o-i),r=n==o?(t-e)/a+(e>t?6:0):t==o?(e-n)/a+2:(n-t)/a+4,r*=60):(r=0/0,u=c>0&&1>c?0:r),new at(r,u,c)}function wt(n,t,e){n=St(n),t=St(t),e=St(e);var r=vt((.4124564*n+.3575761*t+.1804375*e)/Xa),u=vt((.2126729*n+.7151522*t+.072175*e)/$a),i=vt((.0193339*n+.119192*t+.9503041*e)/Ba);return ft(116*u-16,500*(r-u),200*(u-i))}function St(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function kt(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function Et(n){return"function"==typeof n?n:function(){return n}}function At(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Nt(t,e,n,r)}}function Nt(n,t,e,r){function u(){var n,t=c.status;if(!t&&zt(c)||t>=200&&300>t||304===t){try{n=e.call(i,c)}catch(r){return void o.error.call(i,r)}o.load.call(i,n)}else o.error.call(i,c)}var i={},o=ta.dispatch("beforesend","progress","load","error"),a={},c=new XMLHttpRequest,l=null;return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(n)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=u:c.onreadystatechange=function(){c.readyState>3&&u()},c.onprogress=function(n){var t=ta.event;ta.event=n;try{o.progress.call(i,c)}finally{ta.event=t}},i.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?a[n]:(null==t?delete a[n]:a[n]=t+"",i)},i.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",i):t},i.responseType=function(n){return arguments.length?(l=n,i):l},i.response=function(n){return e=n,i},["get","post"].forEach(function(n){i[n]=function(){return i.send.apply(i,[n].concat(ra(arguments)))}}),i.send=function(e,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),c.open(e,n,!0),null==t||"accept"in a||(a.accept=t+",*/*"),c.setRequestHeader)for(var s in a)c.setRequestHeader(s,a[s]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=l&&(c.responseType=l),null!=u&&i.on("error",u).on("load",function(n){u(null,n)}),o.beforesend.call(i,c),c.send(null==r?null:r),i},i.abort=function(){return c.abort(),i},ta.rebind(i,o,"on"),null==r?i:i.get(Ct(r))}function Ct(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function zt(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function qt(){var n=Lt(),t=Tt()-n;t>24?(isFinite(t)&&(clearTimeout(tc),tc=setTimeout(qt,t)),nc=0):(nc=1,rc(qt))}function Lt(){var n=Date.now();for(ec=Ka;ec;)n>=ec.t&&(ec.f=ec.c(n-ec.t)),ec=ec.n;return n}function Tt(){for(var n,t=Ka,e=1/0;t;)t.f?t=n?n.n=t.n:Ka=t.n:(t.t<e&&(e=t.t),t=(n=t).n);return Qa=n,e}function Rt(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}function Dt(n,t){var e=Math.pow(10,3*ga(8-t));return{scale:t>8?function(n){return n/e}:function(n){return n*e},symbol:n}}function Pt(n){var t=n.decimal,e=n.thousands,r=n.grouping,u=n.currency,i=r&&e?function(n,t){for(var u=n.length,i=[],o=0,a=r[0],c=0;u>0&&a>0&&(c+a+1>t&&(a=Math.max(1,t-c)),i.push(n.substring(u-=a,u+a)),!((c+=a+1)>t));)a=r[o=(o+1)%r.length];return i.reverse().join(e)}:y;return function(n){var e=ic.exec(n),r=e[1]||" ",o=e[2]||">",a=e[3]||"-",c=e[4]||"",l=e[5],s=+e[6],f=e[7],h=e[8],g=e[9],p=1,v="",d="",m=!1,y=!0;switch(h&&(h=+h.substring(1)),(l||"0"===r&&"="===o)&&(l=r="0",o="="),g){case"n":f=!0,g="g";break;case"%":p=100,d="%",g="f";break;case"p":p=100,d="%",g="r";break;case"b":case"o":case"x":case"X":"#"===c&&(v="0"+g.toLowerCase());case"c":y=!1;case"d":m=!0,h=0;break;case"s":p=-1,g="r"}"$"===c&&(v=u[0],d=u[1]),"r"!=g||h||(g="g"),null!=h&&("g"==g?h=Math.max(1,Math.min(21,h)):("e"==g||"f"==g)&&(h=Math.max(0,Math.min(20,h)))),g=oc.get(g)||Ut;var M=l&&f;return function(n){var e=d;if(m&&n%1)return"";var u=0>n||0===n&&0>1/n?(n=-n,"-"):"-"===a?"":a;if(0>p){var c=ta.formatPrefix(n,h);n=c.scale(n),e=c.symbol+d}else n*=p;n=g(n,h);var x,b,_=n.lastIndexOf(".");if(0>_){var w=y?n.lastIndexOf("e"):-1;0>w?(x=n,b=""):(x=n.substring(0,w),b=n.substring(w))}else x=n.substring(0,_),b=t+n.substring(_+1);!l&&f&&(x=i(x,1/0));var S=v.length+x.length+b.length+(M?0:u.length),k=s>S?new Array(S=s-S+1).join(r):"";return M&&(x=i(k+x,k.length?s-b.length:1/0)),u+=v,n=x+b,("<"===o?u+n+k:">"===o?k+u+n:"^"===o?k.substring(0,S>>=1)+u+n+k.substring(S):u+(M?n:k+n))+e}}}function Ut(n){return n+""}function jt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ft(n,t,e){function r(t){var e=n(t),r=i(e,1);return r-t>t-e?e:r}function u(e){return t(e=n(new cc(e-1)),1),e}function i(n,e){return t(n=new cc(+n),e),n}function o(n,r,i){var o=u(n),a=[];if(i>1)for(;r>o;)e(o)%i||a.push(new Date(+o)),t(o,1);else for(;r>o;)a.push(new Date(+o)),t(o,1);return a}function a(n,t,e){try{cc=jt;var r=new jt;return r._=n,o(r,t,e)}finally{cc=Date}}n.floor=n,n.round=r,n.ceil=u,n.offset=i,n.range=o;var c=n.utc=Ht(n);return c.floor=c,c.round=Ht(r),c.ceil=Ht(u),c.offset=Ht(i),c.range=a,n}function Ht(n){return function(t,e){try{cc=jt;var r=new jt;return r._=t,n(r,e)._}finally{cc=Date}}}function Ot(n){function t(n){function t(t){for(var e,u,i,o=[],a=-1,c=0;++a<r;)37===n.charCodeAt(a)&&(o.push(n.slice(c,a)),null!=(u=sc[e=n.charAt(++a)])&&(e=n.charAt(++a)),(i=N[e])&&(e=i(t,null==u?"e"===e?" ":"0":u)),o.push(e),c=a+1);return o.push(n.slice(c,a)),o.join("")}var r=n.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},u=e(r,n,t,0);if(u!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&cc!==jt,o=new(i?jt:cc);return"j"in r?o.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(o.setFullYear(r.y,0,1),o.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(o.getDay()+5)%7:r.w+7*r.U-(o.getDay()+6)%7)):o.setFullYear(r.y,r.m,r.d),o.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),i?o._:o},t.toString=function(){return n},t}function e(n,t,e,r){for(var u,i,o,a=0,c=t.length,l=e.length;c>a;){if(r>=l)return-1;if(u=t.charCodeAt(a++),37===u){if(o=t.charAt(a++),i=C[o in sc?t.charAt(a++):o],!i||(r=i(n,e,r))<0)return-1}else if(u!=e.charCodeAt(r++))return-1}return r}function r(n,t,e){_.lastIndex=0;var r=_.exec(t.slice(e));return r?(n.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function u(n,t,e){x.lastIndex=0;var r=x.exec(t.slice(e));return r?(n.w=b.get(r[0].toLowerCase()),e+r[0].length):-1}function i(n,t,e){E.lastIndex=0;var r=E.exec(t.slice(e));return r?(n.m=A.get(r[0].toLowerCase()),e+r[0].length):-1}function o(n,t,e){S.lastIndex=0;var r=S.exec(t.slice(e));return r?(n.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function a(n,t,r){return e(n,N.c.toString(),t,r)}function c(n,t,r){return e(n,N.x.toString(),t,r)}function l(n,t,r){return e(n,N.X.toString(),t,r)}function s(n,t,e){var r=M.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}var f=n.dateTime,h=n.date,g=n.time,p=n.periods,v=n.days,d=n.shortDays,m=n.months,y=n.shortMonths;t.utc=function(n){function e(n){try{cc=jt;var t=new cc;return t._=n,r(t)}finally{cc=Date}}var r=t(n);return e.parse=function(n){try{cc=jt;var t=r.parse(n);return t&&t._}finally{cc=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ae;var M=ta.map(),x=Yt(v),b=Zt(v),_=Yt(d),w=Zt(d),S=Yt(m),k=Zt(m),E=Yt(y),A=Zt(y);p.forEach(function(n,t){M.set(n.toLowerCase(),t)});var N={a:function(n){return d[n.getDay()]},A:function(n){return v[n.getDay()]},b:function(n){return y[n.getMonth()]},B:function(n){return m[n.getMonth()]},c:t(f),d:function(n,t){return It(n.getDate(),t,2)},e:function(n,t){return It(n.getDate(),t,2)},H:function(n,t){return It(n.getHours(),t,2)},I:function(n,t){return It(n.getHours()%12||12,t,2)},j:function(n,t){return It(1+ac.dayOfYear(n),t,3)},L:function(n,t){return It(n.getMilliseconds(),t,3)},m:function(n,t){return It(n.getMonth()+1,t,2)},M:function(n,t){return It(n.getMinutes(),t,2)},p:function(n){return p[+(n.getHours()>=12)]},S:function(n,t){return It(n.getSeconds(),t,2)},U:function(n,t){return It(ac.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return It(ac.mondayOfYear(n),t,2)},x:t(h),X:t(g),y:function(n,t){return It(n.getFullYear()%100,t,2)},Y:function(n,t){return It(n.getFullYear()%1e4,t,4)},Z:ie,"%":function(){return"%"}},C={a:r,A:u,b:i,B:o,c:a,d:Qt,e:Qt,H:te,I:te,j:ne,L:ue,m:Kt,M:ee,p:s,S:re,U:Xt,w:Vt,W:$t,x:c,X:l,y:Wt,Y:Bt,Z:Jt,"%":oe};return t}function It(n,t,e){var r=0>n?"-":"",u=(r?-n:n)+"",i=u.length;return r+(e>i?new Array(e-i+1).join(t)+u:u)}function Yt(n){return new RegExp("^(?:"+n.map(ta.requote).join("|")+")","i")}function Zt(n){for(var t=new l,e=-1,r=n.length;++e<r;)t.set(n[e].toLowerCase(),e);return t}function Vt(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function Xt(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e));return r?(n.U=+r[0],e+r[0].length):-1}function $t(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e));return r?(n.W=+r[0],e+r[0].length):-1}function Bt(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function Wt(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.y=Gt(+r[0]),e+r[0].length):-1}function Jt(n,t,e){return/^[+-]\d{4}$/.test(t=t.slice(e,e+5))?(n.Z=-t,e+5):-1}function Gt(n){return n+(n>68?1900:2e3)}function Kt(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function Qt(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function ne(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function te(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function ee(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function re(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function ue(n,t,e){fc.lastIndex=0;var r=fc.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function ie(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=ga(t)/60|0,u=ga(t)%60;return e+It(r,"0",2)+It(u,"0",2)}function oe(n,t,e){hc.lastIndex=0;var r=hc.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ae(n){for(var t=n.length,e=-1;++e<t;)n[e][0]=this(n[e][0]);return function(t){for(var e=0,r=n[e];!r[1](t);)r=n[++e];return r[0](t)}}function ce(){}function le(n,t,e){var r=e.s=n+t,u=r-n,i=r-u;e.t=n-i+(t-u)}function se(n,t){n&&dc.hasOwnProperty(n.type)&&dc[n.type](n,t)}function fe(n,t,e){var r,u=-1,i=n.length-e;for(t.lineStart();++u<i;)r=n[u],t.point(r[0],r[1],r[2]);t.lineEnd()}function he(n,t){var e=-1,r=n.length;for(t.polygonStart();++e<r;)fe(n[e],t,1);t.polygonEnd()}function ge(){function n(n,t){n*=Da,t=t*Da/2+qa/4;var e=n-r,o=e>=0?1:-1,a=o*e,c=Math.cos(t),l=Math.sin(t),s=i*l,f=u*c+s*Math.cos(a),h=s*o*Math.sin(a);yc.add(Math.atan2(h,f)),r=n,u=c,i=l}var t,e,r,u,i;Mc.point=function(o,a){Mc.point=n,r=(t=o)*Da,u=Math.cos(a=(e=a)*Da/2+qa/4),i=Math.sin(a)},Mc.lineEnd=function(){n(t,e)}}function pe(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function ve(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function de(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function me(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function ye(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function Me(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function xe(n){return[Math.atan2(n[1],n[0]),tt(n[2])]}function be(n,t){return ga(n[0]-t[0])<Ca&&ga(n[1]-t[1])<Ca}function _e(n,t){n*=Da;var e=Math.cos(t*=Da);we(e*Math.cos(n),e*Math.sin(n),Math.sin(t))}function we(n,t,e){++xc,_c+=(n-_c)/xc,wc+=(t-wc)/xc,Sc+=(e-Sc)/xc}function Se(){function n(n,u){n*=Da;var i=Math.cos(u*=Da),o=i*Math.cos(n),a=i*Math.sin(n),c=Math.sin(u),l=Math.atan2(Math.sqrt((l=e*c-r*a)*l+(l=r*o-t*c)*l+(l=t*a-e*o)*l),t*o+e*a+r*c);bc+=l,kc+=l*(t+(t=o)),Ec+=l*(e+(e=a)),Ac+=l*(r+(r=c)),we(t,e,r)}var t,e,r;qc.point=function(u,i){u*=Da;var o=Math.cos(i*=Da);t=o*Math.cos(u),e=o*Math.sin(u),r=Math.sin(i),qc.point=n,we(t,e,r)}}function ke(){qc.point=_e}function Ee(){function n(n,t){n*=Da;var e=Math.cos(t*=Da),o=e*Math.cos(n),a=e*Math.sin(n),c=Math.sin(t),l=u*c-i*a,s=i*o-r*c,f=r*a-u*o,h=Math.sqrt(l*l+s*s+f*f),g=r*o+u*a+i*c,p=h&&-nt(g)/h,v=Math.atan2(h,g);Nc+=p*l,Cc+=p*s,zc+=p*f,bc+=v,kc+=v*(r+(r=o)),Ec+=v*(u+(u=a)),Ac+=v*(i+(i=c)),we(r,u,i)}var t,e,r,u,i;qc.point=function(o,a){t=o,e=a,qc.point=n,o*=Da;var c=Math.cos(a*=Da);r=c*Math.cos(o),u=c*Math.sin(o),i=Math.sin(a),we(r,u,i)},qc.lineEnd=function(){n(t,e),qc.lineEnd=ke,qc.point=_e}}function Ae(n,t){function e(e,r){return e=n(e,r),t(e[0],e[1])}return n.invert&&t.invert&&(e.invert=function(e,r){return e=t.invert(e,r),e&&n.invert(e[0],e[1])}),e}function Ne(){return!0}function Ce(n,t,e,r,u){var i=[],o=[];if(n.forEach(function(n){if(!((t=n.length-1)<=0)){var t,e=n[0],r=n[t];if(be(e,r)){u.lineStart();for(var a=0;t>a;++a)u.point((e=n[a])[0],e[1]);return void u.lineEnd()}var c=new qe(e,n,null,!0),l=new qe(e,null,c,!1);c.o=l,i.push(c),o.push(l),c=new qe(r,n,null,!1),l=new qe(r,null,c,!0),c.o=l,i.push(c),o.push(l)}}),o.sort(t),ze(i),ze(o),i.length){for(var a=0,c=e,l=o.length;l>a;++a)o[a].e=c=!c;for(var s,f,h=i[0];;){for(var g=h,p=!0;g.v;)if((g=g.n)===h)return;s=g.z,u.lineStart();do{if(g.v=g.o.v=!0,g.e){if(p)for(var a=0,l=s.length;l>a;++a)u.point((f=s[a])[0],f[1]);else r(g.x,g.n.x,1,u);g=g.n}else{if(p){s=g.p.z;for(var a=s.length-1;a>=0;--a)u.point((f=s[a])[0],f[1])}else r(g.x,g.p.x,-1,u);g=g.p}g=g.o,s=g.z,p=!p}while(!g.v);u.lineEnd()}}}function ze(n){if(t=n.length){for(var t,e,r=0,u=n[0];++r<t;)u.n=e=n[r],e.p=u,u=e;u.n=e=n[0],e.p=u}}function qe(n,t,e,r){this.x=n,this.z=t,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function Le(n,t,e,r){return function(u,i){function o(t,e){var r=u(t,e);n(t=r[0],e=r[1])&&i.point(t,e)}function a(n,t){var e=u(n,t);d.point(e[0],e[1])}function c(){y.point=a,d.lineStart()}function l(){y.point=o,d.lineEnd()}function s(n,t){v.push([n,t]);var e=u(n,t);x.point(e[0],e[1])}function f(){x.lineStart(),v=[]}function h(){s(v[0][0],v[0][1]),x.lineEnd();var n,t=x.clean(),e=M.buffer(),r=e.length;if(v.pop(),p.push(v),v=null,r)if(1&t){n=e[0];var u,r=n.length-1,o=-1;if(r>0){for(b||(i.polygonStart(),b=!0),i.lineStart();++o<r;)i.point((u=n[o])[0],u[1]);i.lineEnd()}}else r>1&&2&t&&e.push(e.pop().concat(e.shift())),g.push(e.filter(Te))}var g,p,v,d=t(i),m=u.invert(r[0],r[1]),y={point:o,lineStart:c,lineEnd:l,polygonStart:function(){y.point=s,y.lineStart=f,y.lineEnd=h,g=[],p=[]},polygonEnd:function(){y.point=o,y.lineStart=c,y.lineEnd=l,g=ta.merge(g);var n=Fe(m,p);g.length?(b||(i.polygonStart(),b=!0),Ce(g,De,n,e,i)):n&&(b||(i.polygonStart(),b=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),g=p=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}},M=Re(),x=t(M),b=!1;return y}}function Te(n){return n.length>1}function Re(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:b,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function De(n,t){return((n=n.x)[0]<0?n[1]-Ra-Ca:Ra-n[1])-((t=t.x)[0]<0?t[1]-Ra-Ca:Ra-t[1])}function Pe(n){var t,e=0/0,r=0/0,u=0/0;return{lineStart:function(){n.lineStart(),t=1},point:function(i,o){var a=i>0?qa:-qa,c=ga(i-e);ga(c-qa)<Ca?(n.point(e,r=(r+o)/2>0?Ra:-Ra),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(a,r),n.point(i,r),t=0):u!==a&&c>=qa&&(ga(e-u)<Ca&&(e-=u*Ca),ga(i-a)<Ca&&(i-=a*Ca),r=Ue(e,r,i,o),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(a,r),t=0),n.point(e=i,r=o),u=a},lineEnd:function(){n.lineEnd(),e=r=0/0},clean:function(){return 2-t}}}function Ue(n,t,e,r){var u,i,o=Math.sin(n-e);return ga(o)>Ca?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(e)-Math.sin(r)*(u=Math.cos(t))*Math.sin(n))/(u*i*o)):(t+r)/2}function je(n,t,e,r){var u;if(null==n)u=e*Ra,r.point(-qa,u),r.point(0,u),r.point(qa,u),r.point(qa,0),r.point(qa,-u),r.point(0,-u),r.point(-qa,-u),r.point(-qa,0),r.point(-qa,u);else if(ga(n[0]-t[0])>Ca){var i=n[0]<t[0]?qa:-qa;u=e*i/2,r.point(-i,u),r.point(0,u),r.point(i,u)}else r.point(t[0],t[1])}function Fe(n,t){var e=n[0],r=n[1],u=[Math.sin(e),-Math.cos(e),0],i=0,o=0;yc.reset();for(var a=0,c=t.length;c>a;++a){var l=t[a],s=l.length;if(s)for(var f=l[0],h=f[0],g=f[1]/2+qa/4,p=Math.sin(g),v=Math.cos(g),d=1;;){d===s&&(d=0),n=l[d];var m=n[0],y=n[1]/2+qa/4,M=Math.sin(y),x=Math.cos(y),b=m-h,_=b>=0?1:-1,w=_*b,S=w>qa,k=p*M;if(yc.add(Math.atan2(k*_*Math.sin(w),v*x+k*Math.cos(w))),i+=S?b+_*La:b,S^h>=e^m>=e){var E=de(pe(f),pe(n));Me(E);var A=de(u,E);Me(A);var N=(S^b>=0?-1:1)*tt(A[2]);(r>N||r===N&&(E[0]||E[1]))&&(o+=S^b>=0?1:-1)}if(!d++)break;h=m,p=M,v=x,f=n}}return(-Ca>i||Ca>i&&0>yc)^1&o}function He(n){function t(n,t){return Math.cos(n)*Math.cos(t)>i}function e(n){var e,i,c,l,s;return{lineStart:function(){l=c=!1,s=1},point:function(f,h){var g,p=[f,h],v=t(f,h),d=o?v?0:u(f,h):v?u(f+(0>f?qa:-qa),h):0;if(!e&&(l=c=v)&&n.lineStart(),v!==c&&(g=r(e,p),(be(e,g)||be(p,g))&&(p[0]+=Ca,p[1]+=Ca,v=t(p[0],p[1]))),v!==c)s=0,v?(n.lineStart(),g=r(p,e),n.point(g[0],g[1])):(g=r(e,p),n.point(g[0],g[1]),n.lineEnd()),e=g;else if(a&&e&&o^v){var m;d&i||!(m=r(p,e,!0))||(s=0,o?(n.lineStart(),n.point(m[0][0],m[0][1]),n.point(m[1][0],m[1][1]),n.lineEnd()):(n.point(m[1][0],m[1][1]),n.lineEnd(),n.lineStart(),n.point(m[0][0],m[0][1])))}!v||e&&be(e,p)||n.point(p[0],p[1]),e=p,c=v,i=d},lineEnd:function(){c&&n.lineEnd(),e=null},clean:function(){return s|(l&&c)<<1}}}function r(n,t,e){var r=pe(n),u=pe(t),o=[1,0,0],a=de(r,u),c=ve(a,a),l=a[0],s=c-l*l;if(!s)return!e&&n;var f=i*c/s,h=-i*l/s,g=de(o,a),p=ye(o,f),v=ye(a,h);me(p,v);var d=g,m=ve(p,d),y=ve(d,d),M=m*m-y*(ve(p,p)-1);if(!(0>M)){var x=Math.sqrt(M),b=ye(d,(-m-x)/y);if(me(b,p),b=xe(b),!e)return b;var _,w=n[0],S=t[0],k=n[1],E=t[1];w>S&&(_=w,w=S,S=_);var A=S-w,N=ga(A-qa)<Ca,C=N||Ca>A;if(!N&&k>E&&(_=k,k=E,E=_),C?N?k+E>0^b[1]<(ga(b[0]-w)<Ca?k:E):k<=b[1]&&b[1]<=E:A>qa^(w<=b[0]&&b[0]<=S)){var z=ye(d,(-m+x)/y);return me(z,p),[b,xe(z)]}}}function u(t,e){var r=o?n:qa-n,u=0;return-r>t?u|=1:t>r&&(u|=2),-r>e?u|=4:e>r&&(u|=8),u}var i=Math.cos(n),o=i>0,a=ga(i)>Ca,c=gr(n,6*Da);return Le(t,e,c,o?[0,-n]:[-qa,n-qa])}function Oe(n,t,e,r){return function(u){var i,o=u.a,a=u.b,c=o.x,l=o.y,s=a.x,f=a.y,h=0,g=1,p=s-c,v=f-l;if(i=n-c,p||!(i>0)){if(i/=p,0>p){if(h>i)return;g>i&&(g=i)}else if(p>0){if(i>g)return;i>h&&(h=i)}if(i=e-c,p||!(0>i)){if(i/=p,0>p){if(i>g)return;i>h&&(h=i)}else if(p>0){if(h>i)return;g>i&&(g=i)}if(i=t-l,v||!(i>0)){if(i/=v,0>v){if(h>i)return;g>i&&(g=i)}else if(v>0){if(i>g)return;i>h&&(h=i)}if(i=r-l,v||!(0>i)){if(i/=v,0>v){if(i>g)return;i>h&&(h=i)}else if(v>0){if(h>i)return;g>i&&(g=i)}return h>0&&(u.a={x:c+h*p,y:l+h*v}),1>g&&(u.b={x:c+g*p,y:l+g*v}),u}}}}}}function Ie(n,t,e,r){function u(r,u){return ga(r[0]-n)<Ca?u>0?0:3:ga(r[0]-e)<Ca?u>0?2:1:ga(r[1]-t)<Ca?u>0?1:0:u>0?3:2}function i(n,t){return o(n.x,t.x)}function o(n,t){var e=u(n,1),r=u(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(a){function c(n){for(var t=0,e=d.length,r=n[1],u=0;e>u;++u)for(var i,o=1,a=d[u],c=a.length,l=a[0];c>o;++o)i=a[o],l[1]<=r?i[1]>r&&Q(l,i,n)>0&&++t:i[1]<=r&&Q(l,i,n)<0&&--t,l=i;return 0!==t}function l(i,a,c,l){var s=0,f=0;if(null==i||(s=u(i,c))!==(f=u(a,c))||o(i,a)<0^c>0){do l.point(0===s||3===s?n:e,s>1?r:t);while((s=(s+c+4)%4)!==f)}else l.point(a[0],a[1])}function s(u,i){return u>=n&&e>=u&&i>=t&&r>=i}function f(n,t){s(n,t)&&a.point(n,t)}function h(){C.point=p,d&&d.push(m=[]),S=!0,w=!1,b=_=0/0}function g(){v&&(p(y,M),x&&w&&A.rejoin(),v.push(A.buffer())),C.point=f,w&&a.lineEnd()}function p(n,t){n=Math.max(-Tc,Math.min(Tc,n)),t=Math.max(-Tc,Math.min(Tc,t));var e=s(n,t);if(d&&m.push([n,t]),S)y=n,M=t,x=e,S=!1,e&&(a.lineStart(),a.point(n,t));else if(e&&w)a.point(n,t);else{var r={a:{x:b,y:_},b:{x:n,y:t}};N(r)?(w||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),k=!1):e&&(a.lineStart(),a.point(n,t),k=!1)}b=n,_=t,w=e}var v,d,m,y,M,x,b,_,w,S,k,E=a,A=Re(),N=Oe(n,t,e,r),C={point:f,lineStart:h,lineEnd:g,polygonStart:function(){a=A,v=[],d=[],k=!0},polygonEnd:function(){a=E,v=ta.merge(v);var t=c([n,r]),e=k&&t,u=v.length;(e||u)&&(a.polygonStart(),e&&(a.lineStart(),l(null,null,1,a),a.lineEnd()),u&&Ce(v,i,t,l,a),a.polygonEnd()),v=d=m=null}};return C}}function Ye(n){var t=0,e=qa/3,r=ir(n),u=r(t,e);return u.parallels=function(n){return arguments.length?r(t=n[0]*qa/180,e=n[1]*qa/180):[t/qa*180,e/qa*180]},u}function Ze(n,t){function e(n,t){var e=Math.sqrt(i-2*u*Math.sin(t))/u;return[e*Math.sin(n*=u),o-e*Math.cos(n)]}var r=Math.sin(n),u=(r+Math.sin(t))/2,i=1+r*(2*u-r),o=Math.sqrt(i)/u;return e.invert=function(n,t){var e=o-t;return[Math.atan2(n,e)/u,tt((i-(n*n+e*e)*u*u)/(2*u))]},e}function Ve(){function n(n,t){Dc+=u*n-r*t,r=n,u=t}var t,e,r,u;Hc.point=function(i,o){Hc.point=n,t=r=i,e=u=o},Hc.lineEnd=function(){n(t,e)}}function Xe(n,t){Pc>n&&(Pc=n),n>jc&&(jc=n),Uc>t&&(Uc=t),t>Fc&&(Fc=t)}function $e(){function n(n,t){o.push("M",n,",",t,i)}function t(n,t){o.push("M",n,",",t),a.point=e}function e(n,t){o.push("L",n,",",t)}function r(){a.point=n}function u(){o.push("Z")}var i=Be(4.5),o=[],a={point:n,lineStart:function(){a.point=t},lineEnd:r,polygonStart:function(){a.lineEnd=u},polygonEnd:function(){a.lineEnd=r,a.point=n},pointRadius:function(n){return i=Be(n),a},result:function(){if(o.length){var n=o.join("");return o=[],n}}};return a}function Be(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function We(n,t){_c+=n,wc+=t,++Sc}function Je(){function n(n,r){var u=n-t,i=r-e,o=Math.sqrt(u*u+i*i);kc+=o*(t+n)/2,Ec+=o*(e+r)/2,Ac+=o,We(t=n,e=r)}var t,e;Ic.point=function(r,u){Ic.point=n,We(t=r,e=u)}}function Ge(){Ic.point=We}function Ke(){function n(n,t){var e=n-r,i=t-u,o=Math.sqrt(e*e+i*i);kc+=o*(r+n)/2,Ec+=o*(u+t)/2,Ac+=o,o=u*n-r*t,Nc+=o*(r+n),Cc+=o*(u+t),zc+=3*o,We(r=n,u=t)}var t,e,r,u;Ic.point=function(i,o){Ic.point=n,We(t=r=i,e=u=o)},Ic.lineEnd=function(){n(t,e)}}function Qe(n){function t(t,e){n.moveTo(t+o,e),n.arc(t,e,o,0,La)}function e(t,e){n.moveTo(t,e),a.point=r}function r(t,e){n.lineTo(t,e)}function u(){a.point=t}function i(){n.closePath()}var o=4.5,a={point:t,lineStart:function(){a.point=e},lineEnd:u,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=u,a.point=t},pointRadius:function(n){return o=n,a},result:b};return a}function nr(n){function t(n){return(a?r:e)(n)}function e(t){return rr(t,function(e,r){e=n(e,r),t.point(e[0],e[1])})}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){M=0/0,S.point=i,t.lineStart()}function i(e,r){var i=pe([e,r]),o=n(e,r);u(M,x,y,b,_,w,M=o[0],x=o[1],y=e,b=i[0],_=i[1],w=i[2],a,t),t.point(M,x)}function o(){S.point=e,t.lineEnd()}function c(){r(),S.point=l,S.lineEnd=s}function l(n,t){i(f=n,h=t),g=M,p=x,v=b,d=_,m=w,S.point=i}function s(){u(M,x,y,b,_,w,g,p,f,v,d,m,a,t),S.lineEnd=o,o()}var f,h,g,p,v,d,m,y,M,x,b,_,w,S={point:e,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),S.lineStart=c
-},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function u(t,e,r,a,c,l,s,f,h,g,p,v,d,m){var y=s-t,M=f-e,x=y*y+M*M;if(x>4*i&&d--){var b=a+g,_=c+p,w=l+v,S=Math.sqrt(b*b+_*_+w*w),k=Math.asin(w/=S),E=ga(ga(w)-1)<Ca||ga(r-h)<Ca?(r+h)/2:Math.atan2(_,b),A=n(E,k),N=A[0],C=A[1],z=N-t,q=C-e,L=M*z-y*q;(L*L/x>i||ga((y*z+M*q)/x-.5)>.3||o>a*g+c*p+l*v)&&(u(t,e,r,a,c,l,N,C,E,b/=S,_/=S,w,d,m),m.point(N,C),u(N,C,E,b,_,w,s,f,h,g,p,v,d,m))}}var i=.5,o=Math.cos(30*Da),a=16;return t.precision=function(n){return arguments.length?(a=(i=n*n)>0&&16,t):Math.sqrt(i)},t}function tr(n){var t=nr(function(t,e){return n([t*Pa,e*Pa])});return function(n){return or(t(n))}}function er(n){this.stream=n}function rr(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function ur(n){return ir(function(){return n})()}function ir(n){function t(n){return n=a(n[0]*Da,n[1]*Da),[n[0]*h+c,l-n[1]*h]}function e(n){return n=a.invert((n[0]-c)/h,(l-n[1])/h),n&&[n[0]*Pa,n[1]*Pa]}function r(){a=Ae(o=lr(m,M,x),i);var n=i(v,d);return c=g-n[0]*h,l=p+n[1]*h,u()}function u(){return s&&(s.valid=!1,s=null),t}var i,o,a,c,l,s,f=nr(function(n,t){return n=i(n,t),[n[0]*h+c,l-n[1]*h]}),h=150,g=480,p=250,v=0,d=0,m=0,M=0,x=0,b=Lc,_=y,w=null,S=null;return t.stream=function(n){return s&&(s.valid=!1),s=or(b(o,f(_(n)))),s.valid=!0,s},t.clipAngle=function(n){return arguments.length?(b=null==n?(w=n,Lc):He((w=+n)*Da),u()):w},t.clipExtent=function(n){return arguments.length?(S=n,_=n?Ie(n[0][0],n[0][1],n[1][0],n[1][1]):y,u()):S},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(g=+n[0],p=+n[1],r()):[g,p]},t.center=function(n){return arguments.length?(v=n[0]%360*Da,d=n[1]%360*Da,r()):[v*Pa,d*Pa]},t.rotate=function(n){return arguments.length?(m=n[0]%360*Da,M=n[1]%360*Da,x=n.length>2?n[2]%360*Da:0,r()):[m*Pa,M*Pa,x*Pa]},ta.rebind(t,f,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&e,r()}}function or(n){return rr(n,function(t,e){n.point(t*Da,e*Da)})}function ar(n,t){return[n,t]}function cr(n,t){return[n>qa?n-La:-qa>n?n+La:n,t]}function lr(n,t,e){return n?t||e?Ae(fr(n),hr(t,e)):fr(n):t||e?hr(t,e):cr}function sr(n){return function(t,e){return t+=n,[t>qa?t-La:-qa>t?t+La:t,e]}}function fr(n){var t=sr(n);return t.invert=sr(-n),t}function hr(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,l=Math.sin(t),s=l*r+a*u;return[Math.atan2(c*i-s*o,a*r-l*u),tt(s*i+c*o)]}var r=Math.cos(n),u=Math.sin(n),i=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,l=Math.sin(t),s=l*i-c*o;return[Math.atan2(c*i+l*o,a*r+s*u),tt(s*r-a*u)]},e}function gr(n,t){var e=Math.cos(n),r=Math.sin(n);return function(u,i,o,a){var c=o*t;null!=u?(u=pr(e,u),i=pr(e,i),(o>0?i>u:u>i)&&(u+=o*La)):(u=n+o*La,i=n-.5*c);for(var l,s=u;o>0?s>i:i>s;s-=c)a.point((l=xe([e,-r*Math.cos(s),-r*Math.sin(s)]))[0],l[1])}}function pr(n,t){var e=pe(t);e[0]-=n,Me(e);var r=nt(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Ca)%(2*Math.PI)}function vr(n,t,e){var r=ta.range(n,t-Ca,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function dr(n,t,e){var r=ta.range(n,t-Ca,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function mr(n){return n.source}function yr(n){return n.target}function Mr(n,t,e,r){var u=Math.cos(t),i=Math.sin(t),o=Math.cos(r),a=Math.sin(r),c=u*Math.cos(n),l=u*Math.sin(n),s=o*Math.cos(e),f=o*Math.sin(e),h=2*Math.asin(Math.sqrt(it(r-t)+u*o*it(e-n))),g=1/Math.sin(h),p=h?function(n){var t=Math.sin(n*=h)*g,e=Math.sin(h-n)*g,r=e*c+t*s,u=e*l+t*f,o=e*i+t*a;return[Math.atan2(u,r)*Pa,Math.atan2(o,Math.sqrt(r*r+u*u))*Pa]}:function(){return[n*Pa,t*Pa]};return p.distance=h,p}function xr(){function n(n,u){var i=Math.sin(u*=Da),o=Math.cos(u),a=ga((n*=Da)-t),c=Math.cos(a);Yc+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*i-e*o*c)*a),e*i+r*o*c),t=n,e=i,r=o}var t,e,r;Zc.point=function(u,i){t=u*Da,e=Math.sin(i*=Da),r=Math.cos(i),Zc.point=n},Zc.lineEnd=function(){Zc.point=Zc.lineEnd=b}}function br(n,t){function e(t,e){var r=Math.cos(t),u=Math.cos(e),i=n(r*u);return[i*u*Math.sin(t),i*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),u=t(r),i=Math.sin(u),o=Math.cos(u);return[Math.atan2(n*i,r*o),Math.asin(r&&e*i/r)]},e}function _r(n,t){function e(n,t){o>0?-Ra+Ca>t&&(t=-Ra+Ca):t>Ra-Ca&&(t=Ra-Ca);var e=o/Math.pow(u(t),i);return[e*Math.sin(i*n),o-e*Math.cos(i*n)]}var r=Math.cos(n),u=function(n){return Math.tan(qa/4+n/2)},i=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(u(t)/u(n)),o=r*Math.pow(u(n),i)/i;return i?(e.invert=function(n,t){var e=o-t,r=K(i)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/i,2*Math.atan(Math.pow(o/r,1/i))-Ra]},e):Sr}function wr(n,t){function e(n,t){var e=i-t;return[e*Math.sin(u*n),i-e*Math.cos(u*n)]}var r=Math.cos(n),u=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),i=r/u+n;return ga(u)<Ca?ar:(e.invert=function(n,t){var e=i-t;return[Math.atan2(n,e)/u,i-K(u)*Math.sqrt(n*n+e*e)]},e)}function Sr(n,t){return[n,Math.log(Math.tan(qa/4+t/2))]}function kr(n){var t,e=ur(n),r=e.scale,u=e.translate,i=e.clipExtent;return e.scale=function(){var n=r.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.translate=function(){var n=u.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.clipExtent=function(n){var o=i.apply(e,arguments);if(o===e){if(t=null==n){var a=qa*r(),c=u();i([[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]])}}else t&&(o=null);return o},e.clipExtent(null)}function Er(n,t){return[Math.log(Math.tan(qa/4+t/2)),-n]}function Ar(n){return n[0]}function Nr(n){return n[1]}function Cr(n){for(var t=n.length,e=[0,1],r=2,u=2;t>u;u++){for(;r>1&&Q(n[e[r-2]],n[e[r-1]],n[u])<=0;)--r;e[r++]=u}return e.slice(0,r)}function zr(n,t){return n[0]-t[0]||n[1]-t[1]}function qr(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Lr(n,t,e,r){var u=n[0],i=e[0],o=t[0]-u,a=r[0]-i,c=n[1],l=e[1],s=t[1]-c,f=r[1]-l,h=(a*(c-l)-f*(u-i))/(f*o-a*s);return[u+h*o,c+h*s]}function Tr(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Rr(){tu(this),this.edge=this.site=this.circle=null}function Dr(n){var t=el.pop()||new Rr;return t.site=n,t}function Pr(n){Xr(n),Qc.remove(n),el.push(n),tu(n)}function Ur(n){var t=n.circle,e=t.x,r=t.cy,u={x:e,y:r},i=n.P,o=n.N,a=[n];Pr(n);for(var c=i;c.circle&&ga(e-c.circle.x)<Ca&&ga(r-c.circle.cy)<Ca;)i=c.P,a.unshift(c),Pr(c),c=i;a.unshift(c),Xr(c);for(var l=o;l.circle&&ga(e-l.circle.x)<Ca&&ga(r-l.circle.cy)<Ca;)o=l.N,a.push(l),Pr(l),l=o;a.push(l),Xr(l);var s,f=a.length;for(s=1;f>s;++s)l=a[s],c=a[s-1],Kr(l.edge,c.site,l.site,u);c=a[0],l=a[f-1],l.edge=Jr(c.site,l.site,null,u),Vr(c),Vr(l)}function jr(n){for(var t,e,r,u,i=n.x,o=n.y,a=Qc._;a;)if(r=Fr(a,o)-i,r>Ca)a=a.L;else{if(u=i-Hr(a,o),!(u>Ca)){r>-Ca?(t=a.P,e=a):u>-Ca?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var c=Dr(n);if(Qc.insert(t,c),t||e){if(t===e)return Xr(t),e=Dr(t.site),Qc.insert(c,e),c.edge=e.edge=Jr(t.site,c.site),Vr(t),void Vr(e);if(!e)return void(c.edge=Jr(t.site,c.site));Xr(t),Xr(e);var l=t.site,s=l.x,f=l.y,h=n.x-s,g=n.y-f,p=e.site,v=p.x-s,d=p.y-f,m=2*(h*d-g*v),y=h*h+g*g,M=v*v+d*d,x={x:(d*y-g*M)/m+s,y:(h*M-v*y)/m+f};Kr(e.edge,l,p,x),c.edge=Jr(l,n,null,x),e.edge=Jr(n,p,null,x),Vr(t),Vr(e)}}function Fr(n,t){var e=n.site,r=e.x,u=e.y,i=u-t;if(!i)return r;var o=n.P;if(!o)return-1/0;e=o.site;var a=e.x,c=e.y,l=c-t;if(!l)return a;var s=a-r,f=1/i-1/l,h=s/l;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*l)-c+l/2+u-i/2)))/f+r:(r+a)/2}function Hr(n,t){var e=n.N;if(e)return Fr(e,t);var r=n.site;return r.y===t?r.x:1/0}function Or(n){this.site=n,this.edges=[]}function Ir(n){for(var t,e,r,u,i,o,a,c,l,s,f=n[0][0],h=n[1][0],g=n[0][1],p=n[1][1],v=Kc,d=v.length;d--;)if(i=v[d],i&&i.prepare())for(a=i.edges,c=a.length,o=0;c>o;)s=a[o].end(),r=s.x,u=s.y,l=a[++o%c].start(),t=l.x,e=l.y,(ga(r-t)>Ca||ga(u-e)>Ca)&&(a.splice(o,0,new Qr(Gr(i.site,s,ga(r-f)<Ca&&p-u>Ca?{x:f,y:ga(t-f)<Ca?e:p}:ga(u-p)<Ca&&h-r>Ca?{x:ga(e-p)<Ca?t:h,y:p}:ga(r-h)<Ca&&u-g>Ca?{x:h,y:ga(t-h)<Ca?e:g}:ga(u-g)<Ca&&r-f>Ca?{x:ga(e-g)<Ca?t:f,y:g}:null),i.site,null)),++c)}function Yr(n,t){return t.angle-n.angle}function Zr(){tu(this),this.x=this.y=this.arc=this.site=this.cy=null}function Vr(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,u=n.site,i=e.site;if(r!==i){var o=u.x,a=u.y,c=r.x-o,l=r.y-a,s=i.x-o,f=i.y-a,h=2*(c*f-l*s);if(!(h>=-za)){var g=c*c+l*l,p=s*s+f*f,v=(f*g-l*p)/h,d=(c*p-s*g)/h,f=d+a,m=rl.pop()||new Zr;m.arc=n,m.site=u,m.x=v+o,m.y=f+Math.sqrt(v*v+d*d),m.cy=f,n.circle=m;for(var y=null,M=tl._;M;)if(m.y<M.y||m.y===M.y&&m.x<=M.x){if(!M.L){y=M.P;break}M=M.L}else{if(!M.R){y=M;break}M=M.R}tl.insert(y,m),y||(nl=m)}}}}function Xr(n){var t=n.circle;t&&(t.P||(nl=t.N),tl.remove(t),rl.push(t),tu(t),n.circle=null)}function $r(n){for(var t,e=Gc,r=Oe(n[0][0],n[0][1],n[1][0],n[1][1]),u=e.length;u--;)t=e[u],(!Br(t,n)||!r(t)||ga(t.a.x-t.b.x)<Ca&&ga(t.a.y-t.b.y)<Ca)&&(t.a=t.b=null,e.splice(u,1))}function Br(n,t){var e=n.b;if(e)return!0;var r,u,i=n.a,o=t[0][0],a=t[1][0],c=t[0][1],l=t[1][1],s=n.l,f=n.r,h=s.x,g=s.y,p=f.x,v=f.y,d=(h+p)/2,m=(g+v)/2;if(v===g){if(o>d||d>=a)return;if(h>p){if(i){if(i.y>=l)return}else i={x:d,y:c};e={x:d,y:l}}else{if(i){if(i.y<c)return}else i={x:d,y:l};e={x:d,y:c}}}else if(r=(h-p)/(v-g),u=m-r*d,-1>r||r>1)if(h>p){if(i){if(i.y>=l)return}else i={x:(c-u)/r,y:c};e={x:(l-u)/r,y:l}}else{if(i){if(i.y<c)return}else i={x:(l-u)/r,y:l};e={x:(c-u)/r,y:c}}else if(v>g){if(i){if(i.x>=a)return}else i={x:o,y:r*o+u};e={x:a,y:r*a+u}}else{if(i){if(i.x<o)return}else i={x:a,y:r*a+u};e={x:o,y:r*o+u}}return n.a=i,n.b=e,!0}function Wr(n,t){this.l=n,this.r=t,this.a=this.b=null}function Jr(n,t,e,r){var u=new Wr(n,t);return Gc.push(u),e&&Kr(u,n,t,e),r&&Kr(u,t,n,r),Kc[n.i].edges.push(new Qr(u,n,t)),Kc[t.i].edges.push(new Qr(u,t,n)),u}function Gr(n,t,e){var r=new Wr(n,null);return r.a=t,r.b=e,Gc.push(r),r}function Kr(n,t,e,r){n.a||n.b?n.l===e?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=e)}function Qr(n,t,e){var r=n.a,u=n.b;this.edge=n,this.site=t,this.angle=e?Math.atan2(e.y-t.y,e.x-t.x):n.l===t?Math.atan2(u.x-r.x,r.y-u.y):Math.atan2(r.x-u.x,u.y-r.y)}function nu(){this._=null}function tu(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function eu(n,t){var e=t,r=t.R,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ru(n,t){var e=t,r=t.L,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function uu(n){for(;n.L;)n=n.L;return n}function iu(n,t){var e,r,u,i=n.sort(ou).pop();for(Gc=[],Kc=new Array(n.length),Qc=new nu,tl=new nu;;)if(u=nl,i&&(!u||i.y<u.y||i.y===u.y&&i.x<u.x))(i.x!==e||i.y!==r)&&(Kc[i.i]=new Or(i),jr(i),e=i.x,r=i.y),i=n.pop();else{if(!u)break;Ur(u.arc)}t&&($r(t),Ir(t));var o={cells:Kc,edges:Gc};return Qc=tl=Gc=Kc=null,o}function ou(n,t){return t.y-n.y||t.x-n.x}function au(n,t,e){return(n.x-e.x)*(t.y-n.y)-(n.x-t.x)*(e.y-n.y)}function cu(n){return n.x}function lu(n){return n.y}function su(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function fu(n,t,e,r,u,i){if(!n(t,e,r,u,i)){var o=.5*(e+u),a=.5*(r+i),c=t.nodes;c[0]&&fu(n,c[0],e,r,o,a),c[1]&&fu(n,c[1],o,r,u,a),c[2]&&fu(n,c[2],e,a,o,i),c[3]&&fu(n,c[3],o,a,u,i)}}function hu(n,t,e,r,u,i,o){var a,c=1/0;return function l(n,s,f,h,g){if(!(s>i||f>o||r>h||u>g)){if(p=n.point){var p,v=t-n.x,d=e-n.y,m=v*v+d*d;if(c>m){var y=Math.sqrt(c=m);r=t-y,u=e-y,i=t+y,o=e+y,a=p}}for(var M=n.nodes,x=.5*(s+h),b=.5*(f+g),_=t>=x,w=e>=b,S=w<<1|_,k=S+4;k>S;++S)if(n=M[3&S])switch(3&S){case 0:l(n,s,f,x,b);break;case 1:l(n,x,f,h,b);break;case 2:l(n,s,b,x,g);break;case 3:l(n,x,b,h,g)}}}(n,r,u,i,o),a}function gu(n,t){n=ta.rgb(n),t=ta.rgb(t);var e=n.r,r=n.g,u=n.b,i=t.r-e,o=t.g-r,a=t.b-u;return function(n){return"#"+xt(Math.round(e+i*n))+xt(Math.round(r+o*n))+xt(Math.round(u+a*n))}}function pu(n,t){var e,r={},u={};for(e in n)e in t?r[e]=mu(n[e],t[e]):u[e]=n[e];for(e in t)e in n||(u[e]=t[e]);return function(n){for(e in r)u[e]=r[e](n);return u}}function vu(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function du(n,t){var e,r,u,i=il.lastIndex=ol.lastIndex=0,o=-1,a=[],c=[];for(n+="",t+="";(e=il.exec(n))&&(r=ol.exec(t));)(u=r.index)>i&&(u=t.slice(i,u),a[o]?a[o]+=u:a[++o]=u),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,c.push({i:o,x:vu(e,r)})),i=ol.lastIndex;return i<t.length&&(u=t.slice(i),a[o]?a[o]+=u:a[++o]=u),a.length<2?c[0]?(t=c[0].x,function(n){return t(n)+""}):function(){return t}:(t=c.length,function(n){for(var e,r=0;t>r;++r)a[(e=c[r]).i]=e.x(n);return a.join("")})}function mu(n,t){for(var e,r=ta.interpolators.length;--r>=0&&!(e=ta.interpolators[r](n,t)););return e}function yu(n,t){var e,r=[],u=[],i=n.length,o=t.length,a=Math.min(n.length,t.length);for(e=0;a>e;++e)r.push(mu(n[e],t[e]));for(;i>e;++e)u[e]=n[e];for(;o>e;++e)u[e]=t[e];return function(n){for(e=0;a>e;++e)u[e]=r[e](n);return u}}function Mu(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function xu(n){return function(t){return 1-n(1-t)}}function bu(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function _u(n){return n*n}function wu(n){return n*n*n}function Su(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function ku(n){return function(t){return Math.pow(t,n)}}function Eu(n){return 1-Math.cos(n*Ra)}function Au(n){return Math.pow(2,10*(n-1))}function Nu(n){return 1-Math.sqrt(1-n*n)}function Cu(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/La*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*La/t)}}function zu(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function qu(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Lu(n,t){n=ta.hcl(n),t=ta.hcl(t);var e=n.h,r=n.c,u=n.l,i=t.h-e,o=t.c-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return st(e+i*n,r+o*n,u+a*n)+""}}function Tu(n,t){n=ta.hsl(n),t=ta.hsl(t);var e=n.h,r=n.s,u=n.l,i=t.h-e,o=t.s-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return ct(e+i*n,r+o*n,u+a*n)+""}}function Ru(n,t){n=ta.lab(n),t=ta.lab(t);var e=n.l,r=n.a,u=n.b,i=t.l-e,o=t.a-r,a=t.b-u;return function(n){return ht(e+i*n,r+o*n,u+a*n)+""}}function Du(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function Pu(n){var t=[n.a,n.b],e=[n.c,n.d],r=ju(t),u=Uu(t,e),i=ju(Fu(e,t,-u))||0;t[0]*e[1]<e[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,u*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-e[0],e[1]))*Pa,this.translate=[n.e,n.f],this.scale=[r,i],this.skew=i?Math.atan2(u,i)*Pa:0}function Uu(n,t){return n[0]*t[0]+n[1]*t[1]}function ju(n){var t=Math.sqrt(Uu(n,n));return t&&(n[0]/=t,n[1]/=t),t}function Fu(n,t,e){return n[0]+=e*t[0],n[1]+=e*t[1],n}function Hu(n,t){var e,r=[],u=[],i=ta.transform(n),o=ta.transform(t),a=i.translate,c=o.translate,l=i.rotate,s=o.rotate,f=i.skew,h=o.skew,g=i.scale,p=o.scale;return a[0]!=c[0]||a[1]!=c[1]?(r.push("translate(",null,",",null,")"),u.push({i:1,x:vu(a[0],c[0])},{i:3,x:vu(a[1],c[1])})):r.push(c[0]||c[1]?"translate("+c+")":""),l!=s?(l-s>180?s+=360:s-l>180&&(l+=360),u.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:vu(l,s)})):s&&r.push(r.pop()+"rotate("+s+")"),f!=h?u.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:vu(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),g[0]!=p[0]||g[1]!=p[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),u.push({i:e-4,x:vu(g[0],p[0])},{i:e-2,x:vu(g[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),e=u.length,function(n){for(var t,i=-1;++i<e;)r[(t=u[i]).i]=t.x(n);return r.join("")}}function Ou(n,t){return t=(t-=n=+n)||1/t,function(e){return(e-n)/t}}function Iu(n,t){return t=(t-=n=+n)||1/t,function(e){return Math.max(0,Math.min(1,(e-n)/t))}}function Yu(n){for(var t=n.source,e=n.target,r=Vu(t,e),u=[t];t!==r;)t=t.parent,u.push(t);for(var i=u.length;e!==r;)u.splice(i,0,e),e=e.parent;return u}function Zu(n){for(var t=[],e=n.parent;null!=e;)t.push(n),n=e,e=e.parent;return t.push(n),t}function Vu(n,t){if(n===t)return n;for(var e=Zu(n),r=Zu(t),u=e.pop(),i=r.pop(),o=null;u===i;)o=u,u=e.pop(),i=r.pop();return o}function Xu(n){n.fixed|=2}function $u(n){n.fixed&=-7}function Bu(n){n.fixed|=4,n.px=n.x,n.py=n.y}function Wu(n){n.fixed&=-5}function Ju(n,t,e){var r=0,u=0;if(n.charge=0,!n.leaf)for(var i,o=n.nodes,a=o.length,c=-1;++c<a;)i=o[c],null!=i&&(Ju(i,t,e),n.charge+=i.charge,r+=i.charge*i.cx,u+=i.charge*i.cy);if(n.point){n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5);var l=t*e[n.point.index];n.charge+=n.pointCharge=l,r+=l*n.point.x,u+=l*n.point.y}n.cx=r/n.charge,n.cy=u/n.charge}function Gu(n,t){return ta.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=ri,n}function Ku(n,t){for(var e=[n];null!=(n=e.pop());)if(t(n),(u=n.children)&&(r=u.length))for(var r,u;--r>=0;)e.push(u[r])}function Qu(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(i=n.children)&&(u=i.length))for(var u,i,o=-1;++o<u;)e.push(i[o]);for(;null!=(n=r.pop());)t(n)}function ni(n){return n.children}function ti(n){return n.value}function ei(n,t){return t.value-n.value}function ri(n){return ta.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function ui(n){return n.x}function ii(n){return n.y}function oi(n,t,e){n.y0=t,n.y=e}function ai(n){return ta.range(n.length)}function ci(n){for(var t=-1,e=n[0].length,r=[];++t<e;)r[t]=0;return r}function li(n){for(var t,e=1,r=0,u=n[0][1],i=n.length;i>e;++e)(t=n[e][1])>u&&(r=e,u=t);return r}function si(n){return n.reduce(fi,0)}function fi(n,t){return n+t[1]}function hi(n,t){return gi(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function gi(n,t){for(var e=-1,r=+n[0],u=(n[1]-r)/t,i=[];++e<=t;)i[e]=u*e+r;return i}function pi(n){return[ta.min(n),ta.max(n)]}function vi(n,t){return n.value-t.value}function di(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function mi(n,t){n._pack_next=t,t._pack_prev=n}function yi(n,t){var e=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return.999*u*u>e*e+r*r}function Mi(n){function t(n){s=Math.min(n.x-n.r,s),f=Math.max(n.x+n.r,f),h=Math.min(n.y-n.r,h),g=Math.max(n.y+n.r,g)}if((e=n.children)&&(l=e.length)){var e,r,u,i,o,a,c,l,s=1/0,f=-1/0,h=1/0,g=-1/0;if(e.forEach(xi),r=e[0],r.x=-r.r,r.y=0,t(r),l>1&&(u=e[1],u.x=u.r,u.y=0,t(u),l>2))for(i=e[2],wi(r,u,i),t(i),di(r,i),r._pack_prev=i,di(i,u),u=r._pack_next,o=3;l>o;o++){wi(r,u,i=e[o]);var p=0,v=1,d=1;for(a=u._pack_next;a!==u;a=a._pack_next,v++)if(yi(a,i)){p=1;break}if(1==p)for(c=r._pack_prev;c!==a._pack_prev&&!yi(c,i);c=c._pack_prev,d++);p?(d>v||v==d&&u.r<r.r?mi(r,u=a):mi(r=c,u),o--):(di(r,i),u=i,t(i))}var m=(s+f)/2,y=(h+g)/2,M=0;for(o=0;l>o;o++)i=e[o],i.x-=m,i.y-=y,M=Math.max(M,i.r+Math.sqrt(i.x*i.x+i.y*i.y));n.r=M,e.forEach(bi)}}function xi(n){n._pack_next=n._pack_prev=n}function bi(n){delete n._pack_next,delete n._pack_prev}function _i(n,t,e,r){var u=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,u)for(var i=-1,o=u.length;++i<o;)_i(u[i],t,e,r)}function wi(n,t,e){var r=n.r+e.r,u=t.x-n.x,i=t.y-n.y;if(r&&(u||i)){var o=t.r+e.r,a=u*u+i*i;o*=o,r*=r;var c=.5+(r-o)/(2*a),l=Math.sqrt(Math.max(0,2*o*(r+a)-(r-=a)*r-o*o))/(2*a);e.x=n.x+c*u+l*i,e.y=n.y+c*i-l*u}else e.x=n.x+r,e.y=n.y}function Si(n,t){return n.parent==t.parent?1:2}function ki(n){var t=n.children;return t.length?t[0]:n.t}function Ei(n){var t,e=n.children;return(t=e.length)?e[t-1]:n.t}function Ai(n,t,e){var r=e/(t.i-n.i);t.c-=r,t.s+=e,n.c+=r,t.z+=e,t.m+=e}function Ni(n){for(var t,e=0,r=0,u=n.children,i=u.length;--i>=0;)t=u[i],t.z+=e,t.m+=e,e+=t.s+(r+=t.c)}function Ci(n,t,e){return n.a.parent===t.parent?n.a:e}function zi(n){return 1+ta.max(n,function(n){return n.y})}function qi(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Li(n){var t=n.children;return t&&t.length?Li(t[0]):n}function Ti(n){var t,e=n.children;return e&&(t=e.length)?Ti(e[t-1]):n}function Ri(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Di(n,t){var e=n.x+t[3],r=n.y+t[0],u=n.dx-t[1]-t[3],i=n.dy-t[0]-t[2];return 0>u&&(e+=u/2,u=0),0>i&&(r+=i/2,i=0),{x:e,y:r,dx:u,dy:i}}function Pi(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Ui(n){return n.rangeExtent?n.rangeExtent():Pi(n.range())}function ji(n,t,e,r){var u=e(n[0],n[1]),i=r(t[0],t[1]);return function(n){return i(u(n))}}function Fi(n,t){var e,r=0,u=n.length-1,i=n[r],o=n[u];return i>o&&(e=r,r=u,u=e,e=i,i=o,o=e),n[r]=t.floor(i),n[u]=t.ceil(o),n}function Hi(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:ml}function Oi(n,t,e,r){var u=[],i=[],o=0,a=Math.min(n.length,t.length)-1;for(n[a]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++o<=a;)u.push(e(n[o-1],n[o])),i.push(r(t[o-1],t[o]));return function(t){var e=ta.bisect(n,t,1,a)-1;return i[e](u[e](t))}}function Ii(n,t,e,r){function u(){var u=Math.min(n.length,t.length)>2?Oi:ji,c=r?Iu:Ou;return o=u(n,t,c,e),a=u(t,n,c,mu),i}function i(n){return o(n)}var o,a;return i.invert=function(n){return a(n)},i.domain=function(t){return arguments.length?(n=t.map(Number),u()):n},i.range=function(n){return arguments.length?(t=n,u()):t},i.rangeRound=function(n){return i.range(n).interpolate(Du)},i.clamp=function(n){return arguments.length?(r=n,u()):r},i.interpolate=function(n){return arguments.length?(e=n,u()):e},i.ticks=function(t){return Xi(n,t)},i.tickFormat=function(t,e){return $i(n,t,e)},i.nice=function(t){return Zi(n,t),u()},i.copy=function(){return Ii(n,t,e,r)},u()}function Yi(n,t){return ta.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Zi(n,t){return Fi(n,Hi(Vi(n,t)[2]))}function Vi(n,t){null==t&&(t=10);var e=Pi(n),r=e[1]-e[0],u=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*u;return.15>=i?u*=10:.35>=i?u*=5:.75>=i&&(u*=2),e[0]=Math.ceil(e[0]/u)*u,e[1]=Math.floor(e[1]/u)*u+.5*u,e[2]=u,e}function Xi(n,t){return ta.range.apply(ta,Vi(n,t))}function $i(n,t,e){var r=Vi(n,t);if(e){var u=ic.exec(e);if(u.shift(),"s"===u[8]){var i=ta.formatPrefix(Math.max(ga(r[0]),ga(r[1])));return u[7]||(u[7]="."+Bi(i.scale(r[2]))),u[8]="f",e=ta.format(u.join("")),function(n){return e(i.scale(n))+i.symbol}}u[7]||(u[7]="."+Wi(u[8],r)),e=u.join("")}else e=",."+Bi(r[2])+"f";return ta.format(e)}function Bi(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function Wi(n,t){var e=Bi(t[2]);return n in yl?Math.abs(e-Bi(Math.max(ga(t[0]),ga(t[1]))))+ +("e"!==n):e-2*("%"===n)}function Ji(n,t,e,r){function u(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function i(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function o(t){return n(u(t))}return o.invert=function(t){return i(n.invert(t))},o.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(u)),o):r},o.base=function(e){return arguments.length?(t=+e,n.domain(r.map(u)),o):t},o.nice=function(){var t=Fi(r.map(u),e?Math:xl);return n.domain(t),r=t.map(i),o},o.ticks=function(){var n=Pi(r),o=[],a=n[0],c=n[1],l=Math.floor(u(a)),s=Math.ceil(u(c)),f=t%1?2:t;if(isFinite(s-l)){if(e){for(;s>l;l++)for(var h=1;f>h;h++)o.push(i(l)*h);o.push(i(l))}else for(o.push(i(l));l++<s;)for(var h=f-1;h>0;h--)o.push(i(l)*h);for(l=0;o[l]<a;l++);for(s=o.length;o[s-1]>c;s--);o=o.slice(l,s)}return o},o.tickFormat=function(n,t){if(!arguments.length)return Ml;arguments.length<2?t=Ml:"function"!=typeof t&&(t=ta.format(t));var r,a=Math.max(.1,n/o.ticks().length),c=e?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(n){return n/i(c(u(n)+r))<=a?t(n):""}},o.copy=function(){return Ji(n.copy(),t,e,r)},Yi(o,n)}function Gi(n,t,e){function r(t){return n(u(t))}var u=Ki(t),i=Ki(1/t);return r.invert=function(t){return i(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(u)),r):e},r.ticks=function(n){return Xi(e,n)},r.tickFormat=function(n,t){return $i(e,n,t)},r.nice=function(n){return r.domain(Zi(e,n))},r.exponent=function(o){return arguments.length?(u=Ki(t=o),i=Ki(1/t),n.domain(e.map(u)),r):t},r.copy=function(){return Gi(n.copy(),t,e)},Yi(r,n)}function Ki(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function Qi(n,t){function e(e){return i[((u.get(e)||("range"===t.t?u.set(e,n.push(e)):0/0))-1)%i.length]}function r(t,e){return ta.range(n.length).map(function(n){return t+e*n})}var u,i,o;return e.domain=function(r){if(!arguments.length)return n;n=[],u=new l;for(var i,o=-1,a=r.length;++o<a;)u.has(i=r[o])||u.set(i,n.push(i));return e[t.t].apply(e,t.a)},e.range=function(n){return arguments.length?(i=n,o=0,t={t:"range",a:arguments},e):i},e.rangePoints=function(u,a){arguments.length<2&&(a=0);var c=u[0],l=u[1],s=n.length<2?(c=(c+l)/2,0):(l-c)/(n.length-1+a);return i=r(c+s*a/2,s),o=0,t={t:"rangePoints",a:arguments},e},e.rangeRoundPoints=function(u,a){arguments.length<2&&(a=0);var c=u[0],l=u[1],s=n.length<2?(c=l=Math.round((c+l)/2),0):(l-c)/(n.length-1+a)|0;return i=r(c+Math.round(s*a/2+(l-c-(n.length-1+a)*s)/2),s),o=0,t={t:"rangeRoundPoints",a:arguments},e},e.rangeBands=function(u,a,c){arguments.length<2&&(a=0),arguments.length<3&&(c=a);var l=u[1]<u[0],s=u[l-0],f=u[1-l],h=(f-s)/(n.length-a+2*c);return i=r(s+h*c,h),l&&i.reverse(),o=h*(1-a),t={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(u,a,c){arguments.length<2&&(a=0),arguments.length<3&&(c=a);var l=u[1]<u[0],s=u[l-0],f=u[1-l],h=Math.floor((f-s)/(n.length-a+2*c));return i=r(s+Math.round((f-s-(n.length-a)*h)/2),h),l&&i.reverse(),o=Math.round(h*(1-a)),t={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return o},e.rangeExtent=function(){return Pi(t.a[0])},e.copy=function(){return Qi(n,t)},e.domain(n)}function no(n,t){function i(){var e=0,r=t.length;for(a=[];++e<r;)a[e-1]=ta.quantile(n,e/r);return o}function o(n){return isNaN(n=+n)?void 0:t[ta.bisect(a,n)]}var a;return o.domain=function(t){return arguments.length?(n=t.map(r).filter(u).sort(e),i()):n},o.range=function(n){return arguments.length?(t=n,i()):t},o.quantiles=function(){return a},o.invertExtent=function(e){return e=t.indexOf(e),0>e?[0/0,0/0]:[e>0?a[e-1]:n[0],e<a.length?a[e]:n[n.length-1]]},o.copy=function(){return no(n,t)},i()}function to(n,t,e){function r(t){return e[Math.max(0,Math.min(o,Math.floor(i*(t-n))))]}function u(){return i=e.length/(t-n),o=e.length-1,r}var i,o;return r.domain=function(e){return arguments.length?(n=+e[0],t=+e[e.length-1],u()):[n,t]},r.range=function(n){return arguments.length?(e=n,u()):e},r.invertExtent=function(t){return t=e.indexOf(t),t=0>t?0/0:t/i+n,[t,t+1/i]},r.copy=function(){return to(n,t,e)},u()}function eo(n,t){function e(e){return e>=e?t[ta.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return eo(n,t)},e}function ro(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Xi(n,t)},t.tickFormat=function(t,e){return $i(n,t,e)},t.copy=function(){return ro(n)},t}function uo(){return 0}function io(n){return n.innerRadius}function oo(n){return n.outerRadius}function ao(n){return n.startAngle}function co(n){return n.endAngle}function lo(n){return n&&n.padAngle}function so(n,t,e,r){return(n-e)*t-(t-r)*n>0?0:1}function fo(n,t,e,r,u){var i=n[0]-t[0],o=n[1]-t[1],a=(u?r:-r)/Math.sqrt(i*i+o*o),c=a*o,l=-a*i,s=n[0]+c,f=n[1]+l,h=t[0]+c,g=t[1]+l,p=(s+h)/2,v=(f+g)/2,d=h-s,m=g-f,y=d*d+m*m,M=e-r,x=s*g-h*f,b=(0>m?-1:1)*Math.sqrt(M*M*y-x*x),_=(x*m-d*b)/y,w=(-x*d-m*b)/y,S=(x*m+d*b)/y,k=(-x*d+m*b)/y,E=_-p,A=w-v,N=S-p,C=k-v;return E*E+A*A>N*N+C*C&&(_=S,w=k),[[_-c,w-l],[_*e/M,w*e/M]]}function ho(n){function t(t){function o(){l.push("M",i(n(s),a))}for(var c,l=[],s=[],f=-1,h=t.length,g=Et(e),p=Et(r);++f<h;)u.call(this,c=t[f],f)?s.push([+g.call(this,c,f),+p.call(this,c,f)]):s.length&&(o(),s=[]);return s.length&&o(),l.length?l.join(""):null}var e=Ar,r=Nr,u=Ne,i=go,o=i.key,a=.7;return t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t.defined=function(n){return arguments.length?(u=n,t):u},t.interpolate=function(n){return arguments.length?(o="function"==typeof n?i=n:(i=El.get(n)||go).key,t):o},t.tension=function(n){return arguments.length?(a=n,t):a},t}function go(n){return n.join("L")}function po(n){return go(n)+"Z"}function vo(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r[0]+(r=n[t])[0])/2,"V",r[1]);return e>1&&u.push("H",r[0]),u.join("")}function mo(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("V",(r=n[t])[1],"H",r[0]);return u.join("")}function yo(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r=n[t])[0],"V",r[1]);return u.join("")}function Mo(n,t){return n.length<4?go(n):n[1]+_o(n.slice(1,-1),wo(n,t))}function xo(n,t){return n.length<3?go(n):n[0]+_o((n.push(n[0]),n),wo([n[n.length-2]].concat(n,[n[1]]),t))}function bo(n,t){return n.length<3?go(n):n[0]+_o(n,wo(n,t))}function _o(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return go(n);var e=n.length!=t.length,r="",u=n[0],i=n[1],o=t[0],a=o,c=1;if(e&&(r+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],u=n[1],c=2),t.length>1){a=t[1],i=n[c],c++,r+="C"+(u[0]+o[0])+","+(u[1]+o[1])+","+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1];for(var l=2;l<t.length;l++,c++)i=n[c],a=t[l],r+="S"+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1]}if(e){var s=n[c];r+="Q"+(i[0]+2*a[0]/3)+","+(i[1]+2*a[1]/3)+","+s[0]+","+s[1]}return r}function wo(n,t){for(var e,r=[],u=(1-t)/2,i=n[0],o=n[1],a=1,c=n.length;++a<c;)e=i,i=o,o=n[a],r.push([u*(o[0]-e[0]),u*(o[1]-e[1])]);return r}function So(n){if(n.length<3)return go(n);var t=1,e=n.length,r=n[0],u=r[0],i=r[1],o=[u,u,u,(r=n[1])[0]],a=[i,i,i,r[1]],c=[u,",",i,"L",No(Cl,o),",",No(Cl,a)];for(n.push(n[e-1]);++t<=e;)r=n[t],o.shift(),o.push(r[0]),a.shift(),a.push(r[1]),Co(c,o,a);return n.pop(),c.push("L",r),c.join("")}function ko(n){if(n.length<4)return go(n);for(var t,e=[],r=-1,u=n.length,i=[0],o=[0];++r<3;)t=n[r],i.push(t[0]),o.push(t[1]);for(e.push(No(Cl,i)+","+No(Cl,o)),--r;++r<u;)t=n[r],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),Co(e,i,o);return e.join("")}function Eo(n){for(var t,e,r=-1,u=n.length,i=u+4,o=[],a=[];++r<4;)e=n[r%u],o.push(e[0]),a.push(e[1]);for(t=[No(Cl,o),",",No(Cl,a)],--r;++r<i;)e=n[r%u],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),Co(t,o,a);return t.join("")}function Ao(n,t){var e=n.length-1;if(e)for(var r,u,i=n[0][0],o=n[0][1],a=n[e][0]-i,c=n[e][1]-o,l=-1;++l<=e;)r=n[l],u=l/e,r[0]=t*r[0]+(1-t)*(i+u*a),r[1]=t*r[1]+(1-t)*(o+u*c);return So(n)}function No(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function Co(n,t,e){n.push("C",No(Al,t),",",No(Al,e),",",No(Nl,t),",",No(Nl,e),",",No(Cl,t),",",No(Cl,e))}function zo(n,t){return(t[1]-n[1])/(t[0]-n[0])}function qo(n){for(var t=0,e=n.length-1,r=[],u=n[0],i=n[1],o=r[0]=zo(u,i);++t<e;)r[t]=(o+(o=zo(u=i,i=n[t+1])))/2;return r[t]=o,r}function Lo(n){for(var t,e,r,u,i=[],o=qo(n),a=-1,c=n.length-1;++a<c;)t=zo(n[a],n[a+1]),ga(t)<Ca?o[a]=o[a+1]=0:(e=o[a]/t,r=o[a+1]/t,u=e*e+r*r,u>9&&(u=3*t/Math.sqrt(u),o[a]=u*e,o[a+1]=u*r));for(a=-1;++a<=c;)u=(n[Math.min(c,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),i.push([u||0,o[a]*u||0]);return i}function To(n){return n.length<3?go(n):n[0]+_o(n,Lo(n))}function Ro(n){for(var t,e,r,u=-1,i=n.length;++u<i;)t=n[u],e=t[0],r=t[1]-Ra,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function Do(n){function t(t){function c(){v.push("M",a(n(m),f),s,l(n(d.reverse()),f),"Z")}for(var h,g,p,v=[],d=[],m=[],y=-1,M=t.length,x=Et(e),b=Et(u),_=e===r?function(){return g}:Et(r),w=u===i?function(){return p}:Et(i);++y<M;)o.call(this,h=t[y],y)?(d.push([g=+x.call(this,h,y),p=+b.call(this,h,y)]),m.push([+_.call(this,h,y),+w.call(this,h,y)])):d.length&&(c(),d=[],m=[]);return d.length&&c(),v.length?v.join(""):null}var e=Ar,r=Ar,u=0,i=Nr,o=Ne,a=go,c=a.key,l=a,s="L",f=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r
-},t.y=function(n){return arguments.length?(u=i=n,t):i},t.y0=function(n){return arguments.length?(u=n,t):u},t.y1=function(n){return arguments.length?(i=n,t):i},t.defined=function(n){return arguments.length?(o=n,t):o},t.interpolate=function(n){return arguments.length?(c="function"==typeof n?a=n:(a=El.get(n)||go).key,l=a.reverse||a,s=a.closed?"M":"L",t):c},t.tension=function(n){return arguments.length?(f=n,t):f},t}function Po(n){return n.radius}function Uo(n){return[n.x,n.y]}function jo(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]-Ra;return[e*Math.cos(r),e*Math.sin(r)]}}function Fo(){return 64}function Ho(){return"circle"}function Oo(n){var t=Math.sqrt(n/qa);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Io(n){return function(){var t,e;(t=this[n])&&(e=t[t.active])&&(--t.count?delete t[t.active]:delete this[n],t.active+=.5,e.event&&e.event.interrupt.call(this,this.__data__,e.index))}}function Yo(n,t,e){return ya(n,Pl),n.namespace=t,n.id=e,n}function Zo(n,t,e,r){var u=n.id,i=n.namespace;return Y(n,"function"==typeof e?function(n,o,a){n[i][u].tween.set(t,r(e.call(n,n.__data__,o,a)))}:(e=r(e),function(n){n[i][u].tween.set(t,e)}))}function Vo(n){return null==n&&(n=""),function(){this.textContent=n}}function Xo(n){return null==n?"__transition__":"__transition_"+n+"__"}function $o(n,t,e,r,u){var i=n[e]||(n[e]={active:0,count:0}),o=i[r];if(!o){var a=u.time;o=i[r]={tween:new l,time:a,delay:u.delay,duration:u.duration,ease:u.ease,index:t},u=null,++i.count,ta.timer(function(u){function c(e){if(i.active>r)return s();var u=i[i.active];u&&(--i.count,delete i[i.active],u.event&&u.event.interrupt.call(n,n.__data__,u.index)),i.active=r,o.event&&o.event.start.call(n,n.__data__,t),o.tween.forEach(function(e,r){(r=r.call(n,n.__data__,t))&&v.push(r)}),h=o.ease,f=o.duration,ta.timer(function(){return p.c=l(e||1)?Ne:l,1},0,a)}function l(e){if(i.active!==r)return 1;for(var u=e/f,a=h(u),c=v.length;c>0;)v[--c].call(n,a);return u>=1?(o.event&&o.event.end.call(n,n.__data__,t),s()):void 0}function s(){return--i.count?delete i[r]:delete n[e],1}var f,h,g=o.delay,p=ec,v=[];return p.t=g+a,u>=g?c(u-g):void(p.c=c)},0,a)}}function Bo(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function Wo(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function Jo(n){return n.toISOString()}function Go(n,t,e){function r(t){return n(t)}function u(n,e){var r=n[1]-n[0],u=r/e,i=ta.bisect(Vl,u);return i==Vl.length?[t.year,Vi(n.map(function(n){return n/31536e6}),e)[2]]:i?t[u/Vl[i-1]<Vl[i]/u?i-1:i]:[Bl,Vi(n,e)[2]]}return r.invert=function(t){return Ko(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(Ko)},r.nice=function(n,t){function e(e){return!isNaN(e)&&!n.range(e,Ko(+e+1),t).length}var i=r.domain(),o=Pi(i),a=null==n?u(o,10):"number"==typeof n&&u(o,n);return a&&(n=a[0],t=a[1]),r.domain(Fi(i,t>1?{floor:function(t){for(;e(t=n.floor(t));)t=Ko(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=Ko(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Pi(r.domain()),i=null==n?u(e,10):"number"==typeof n?u(e,n):!n.range&&[{range:n},t];return i&&(n=i[0],t=i[1]),n.range(e[0],Ko(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return Go(n.copy(),t,e)},Yi(r,n)}function Ko(n){return new Date(n)}function Qo(n){return JSON.parse(n.responseText)}function na(n){var t=ua.createRange();return t.selectNode(ua.body),t.createContextualFragment(n.responseText)}var ta={version:"3.5.5"},ea=[].slice,ra=function(n){return ea.call(n)},ua=this.document;if(ua)try{ra(ua.documentElement.childNodes)[0].nodeType}catch(ia){ra=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),ua)try{ua.createElement("DIV").style.setProperty("opacity",0,"")}catch(oa){var aa=this.Element.prototype,ca=aa.setAttribute,la=aa.setAttributeNS,sa=this.CSSStyleDeclaration.prototype,fa=sa.setProperty;aa.setAttribute=function(n,t){ca.call(this,n,t+"")},aa.setAttributeNS=function(n,t,e){la.call(this,n,t,e+"")},sa.setProperty=function(n,t,e){fa.call(this,n,t+"",e)}}ta.ascending=e,ta.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:0/0},ta.min=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=n[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=n[u])&&e>r&&(e=r)}else{for(;++u<i;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=t.call(n,n[u],u))&&e>r&&(e=r)}return e},ta.max=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=n[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=n[u])&&r>e&&(e=r)}else{for(;++u<i;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=t.call(n,n[u],u))&&r>e&&(e=r)}return e},ta.extent=function(n,t){var e,r,u,i=-1,o=n.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=n[i])&&r>=r){e=u=r;break}for(;++i<o;)null!=(r=n[i])&&(e>r&&(e=r),r>u&&(u=r))}else{for(;++i<o;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=u=r;break}for(;++i<o;)null!=(r=t.call(n,n[i],i))&&(e>r&&(e=r),r>u&&(u=r))}return[e,u]},ta.sum=function(n,t){var e,r=0,i=n.length,o=-1;if(1===arguments.length)for(;++o<i;)u(e=+n[o])&&(r+=e);else for(;++o<i;)u(e=+t.call(n,n[o],o))&&(r+=e);return r},ta.mean=function(n,t){var e,i=0,o=n.length,a=-1,c=o;if(1===arguments.length)for(;++a<o;)u(e=r(n[a]))?i+=e:--c;else for(;++a<o;)u(e=r(t.call(n,n[a],a)))?i+=e:--c;return c?i/c:void 0},ta.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),u=+n[r-1],i=e-r;return i?u+i*(n[r]-u):u},ta.median=function(n,t){var i,o=[],a=n.length,c=-1;if(1===arguments.length)for(;++c<a;)u(i=r(n[c]))&&o.push(i);else for(;++c<a;)u(i=r(t.call(n,n[c],c)))&&o.push(i);return o.length?ta.quantile(o.sort(e),.5):void 0},ta.variance=function(n,t){var e,i,o=n.length,a=0,c=0,l=-1,s=0;if(1===arguments.length)for(;++l<o;)u(e=r(n[l]))&&(i=e-a,a+=i/++s,c+=i*(e-a));else for(;++l<o;)u(e=r(t.call(n,n[l],l)))&&(i=e-a,a+=i/++s,c+=i*(e-a));return s>1?c/(s-1):void 0},ta.deviation=function(){var n=ta.variance.apply(this,arguments);return n?Math.sqrt(n):n};var ha=i(e);ta.bisectLeft=ha.left,ta.bisect=ta.bisectRight=ha.right,ta.bisector=function(n){return i(1===n.length?function(t,r){return e(n(t),r)}:n)},ta.shuffle=function(n,t,e){(i=arguments.length)<3&&(e=n.length,2>i&&(t=0));for(var r,u,i=e-t;i;)u=Math.random()*i--|0,r=n[i+t],n[i+t]=n[u+t],n[u+t]=r;return n},ta.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},ta.pairs=function(n){for(var t,e=0,r=n.length-1,u=n[0],i=new Array(0>r?0:r);r>e;)i[e]=[t=u,u=n[++e]];return i},ta.zip=function(){if(!(r=arguments.length))return[];for(var n=-1,t=ta.min(arguments,o),e=new Array(t);++n<t;)for(var r,u=-1,i=e[n]=new Array(r);++u<r;)i[u]=arguments[u][n];return e},ta.transpose=function(n){return ta.zip.apply(ta,n)},ta.keys=function(n){var t=[];for(var e in n)t.push(e);return t},ta.values=function(n){var t=[];for(var e in n)t.push(n[e]);return t},ta.entries=function(n){var t=[];for(var e in n)t.push({key:e,value:n[e]});return t},ta.merge=function(n){for(var t,e,r,u=n.length,i=-1,o=0;++i<u;)o+=n[i].length;for(e=new Array(o);--u>=0;)for(r=n[u],t=r.length;--t>=0;)e[--o]=r[t];return e};var ga=Math.abs;ta.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e===1/0)throw new Error("infinite range");var r,u=[],i=a(ga(e)),o=-1;if(n*=i,t*=i,e*=i,0>e)for(;(r=n+e*++o)>t;)u.push(r/i);else for(;(r=n+e*++o)<t;)u.push(r/i);return u},ta.map=function(n,t){var e=new l;if(n instanceof l)n.forEach(function(n,t){e.set(n,t)});else if(Array.isArray(n)){var r,u=-1,i=n.length;if(1===arguments.length)for(;++u<i;)e.set(u,n[u]);else for(;++u<i;)e.set(t.call(n,r=n[u],u),r)}else for(var o in n)e.set(o,n[o]);return e};var pa="__proto__",va="\x00";c(l,{has:h,get:function(n){return this._[s(n)]},set:function(n,t){return this._[s(n)]=t},remove:g,keys:p,values:function(){var n=[];for(var t in this._)n.push(this._[t]);return n},entries:function(){var n=[];for(var t in this._)n.push({key:f(t),value:this._[t]});return n},size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,f(t),this._[t])}}),ta.nest=function(){function n(t,o,a){if(a>=i.length)return r?r.call(u,o):e?o.sort(e):o;for(var c,s,f,h,g=-1,p=o.length,v=i[a++],d=new l;++g<p;)(h=d.get(c=v(s=o[g])))?h.push(s):d.set(c,[s]);return t?(s=t(),f=function(e,r){s.set(e,n(t,r,a))}):(s={},f=function(e,r){s[e]=n(t,r,a)}),d.forEach(f),s}function t(n,e){if(e>=i.length)return n;var r=[],u=o[e++];return n.forEach(function(n,u){r.push({key:n,values:t(u,e)})}),u?r.sort(function(n,t){return u(n.key,t.key)}):r}var e,r,u={},i=[],o=[];return u.map=function(t,e){return n(e,t,0)},u.entries=function(e){return t(n(ta.map,e,0),0)},u.key=function(n){return i.push(n),u},u.sortKeys=function(n){return o[i.length-1]=n,u},u.sortValues=function(n){return e=n,u},u.rollup=function(n){return r=n,u},u},ta.set=function(n){var t=new m;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},c(m,{has:h,add:function(n){return this._[s(n+="")]=!0,n},remove:g,values:p,size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,f(t))}}),ta.behavior={},ta.rebind=function(n,t){for(var e,r=1,u=arguments.length;++r<u;)n[e=arguments[r]]=M(n,t,t[e]);return n};var da=["webkit","ms","moz","Moz","o","O"];ta.dispatch=function(){for(var n=new _,t=-1,e=arguments.length;++t<e;)n[arguments[t]]=w(n);return n},_.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(e>=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},ta.event=null,ta.requote=function(n){return n.replace(ma,"\\$&")};var ma=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ya={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},Ma=function(n,t){return t.querySelector(n)},xa=function(n,t){return t.querySelectorAll(n)},ba=function(n,t){var e=n.matches||n[x(n,"matchesSelector")];return(ba=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(Ma=function(n,t){return Sizzle(n,t)[0]||null},xa=Sizzle,ba=Sizzle.matchesSelector),ta.selection=function(){return ta.select(ua.documentElement)};var _a=ta.selection.prototype=[];_a.select=function(n){var t,e,r,u,i=[];n=N(n);for(var o=-1,a=this.length;++o<a;){i.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var c=-1,l=r.length;++c<l;)(u=r[c])?(t.push(e=n.call(u,u.__data__,c,o)),e&&"__data__"in u&&(e.__data__=u.__data__)):t.push(null)}return A(i)},_a.selectAll=function(n){var t,e,r=[];n=C(n);for(var u=-1,i=this.length;++u<i;)for(var o=this[u],a=-1,c=o.length;++a<c;)(e=o[a])&&(r.push(t=ra(n.call(e,e.__data__,a,u))),t.parentNode=e);return A(r)};var wa={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};ta.ns={prefix:wa,qualify:function(n){var t=n.indexOf(":"),e=n;return t>=0&&(e=n.slice(0,t),n=n.slice(t+1)),wa.hasOwnProperty(e)?{space:wa[e],local:n}:n}},_a.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=ta.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(z(t,n[t]));return this}return this.each(z(n,t))},_a.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=T(n)).length,u=-1;if(t=e.classList){for(;++u<r;)if(!t.contains(n[u]))return!1}else for(t=e.getAttribute("class");++u<r;)if(!L(n[u]).test(t))return!1;return!0}for(t in n)this.each(R(t,n[t]));return this}return this.each(R(n,t))},_a.style=function(n,e,r){var u=arguments.length;if(3>u){if("string"!=typeof n){2>u&&(e="");for(r in n)this.each(P(r,n[r],e));return this}if(2>u){var i=this.node();return t(i).getComputedStyle(i,null).getPropertyValue(n)}r=""}return this.each(P(n,e,r))},_a.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(U(t,n[t]));return this}return this.each(U(n,t))},_a.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},_a.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},_a.append=function(n){return n=j(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},_a.insert=function(n,t){return n=j(n),t=N(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},_a.remove=function(){return this.each(F)},_a.data=function(n,t){function e(n,e){var r,u,i,o=n.length,f=e.length,h=Math.min(o,f),g=new Array(f),p=new Array(f),v=new Array(o);if(t){var d,m=new l,y=new Array(o);for(r=-1;++r<o;)m.has(d=t.call(u=n[r],u.__data__,r))?v[r]=u:m.set(d,u),y[r]=d;for(r=-1;++r<f;)(u=m.get(d=t.call(e,i=e[r],r)))?u!==!0&&(g[r]=u,u.__data__=i):p[r]=H(i),m.set(d,!0);for(r=-1;++r<o;)m.get(y[r])!==!0&&(v[r]=n[r])}else{for(r=-1;++r<h;)u=n[r],i=e[r],u?(u.__data__=i,g[r]=u):p[r]=H(i);for(;f>r;++r)p[r]=H(e[r]);for(;o>r;++r)v[r]=n[r]}p.update=g,p.parentNode=g.parentNode=v.parentNode=n.parentNode,a.push(p),c.push(g),s.push(v)}var r,u,i=-1,o=this.length;if(!arguments.length){for(n=new Array(o=(r=this[0]).length);++i<o;)(u=r[i])&&(n[i]=u.__data__);return n}var a=Z([]),c=A([]),s=A([]);if("function"==typeof n)for(;++i<o;)e(r=this[i],n.call(r,r.parentNode.__data__,i));else for(;++i<o;)e(r=this[i],n);return c.enter=function(){return a},c.exit=function(){return s},c},_a.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},_a.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=O(n));for(var i=0,o=this.length;o>i;i++){u.push(t=[]),t.parentNode=(e=this[i]).parentNode;for(var a=0,c=e.length;c>a;a++)(r=e[a])&&n.call(r,r.__data__,a,i)&&t.push(r)}return A(u)},_a.order=function(){for(var n=-1,t=this.length;++n<t;)for(var e,r=this[n],u=r.length-1,i=r[u];--u>=0;)(e=r[u])&&(i&&i!==e.nextSibling&&i.parentNode.insertBefore(e,i),i=e);return this},_a.sort=function(n){n=I.apply(this,arguments);for(var t=-1,e=this.length;++t<e;)this[t].sort(n);return this.order()},_a.each=function(n){return Y(this,function(t,e,r){n.call(t,t.__data__,e,r)})},_a.call=function(n){var t=ra(arguments);return n.apply(t[0]=this,t),this},_a.empty=function(){return!this.node()},_a.node=function(){for(var n=0,t=this.length;t>n;n++)for(var e=this[n],r=0,u=e.length;u>r;r++){var i=e[r];if(i)return i}return null},_a.size=function(){var n=0;return Y(this,function(){++n}),n};var Sa=[];ta.selection.enter=Z,ta.selection.enter.prototype=Sa,Sa.append=_a.append,Sa.empty=_a.empty,Sa.node=_a.node,Sa.call=_a.call,Sa.size=_a.size,Sa.select=function(n){for(var t,e,r,u,i,o=[],a=-1,c=this.length;++a<c;){r=(u=this[a]).update,o.push(t=[]),t.parentNode=u.parentNode;for(var l=-1,s=u.length;++l<s;)(i=u[l])?(t.push(r[l]=e=n.call(u.parentNode,i.__data__,l,a)),e.__data__=i.__data__):t.push(null)}return A(o)},Sa.insert=function(n,t){return arguments.length<2&&(t=V(this)),_a.insert.call(this,n,t)},ta.select=function(t){var e;return"string"==typeof t?(e=[Ma(t,ua)],e.parentNode=ua.documentElement):(e=[t],e.parentNode=n(t)),A([e])},ta.selectAll=function(n){var t;return"string"==typeof n?(t=ra(xa(n,ua)),t.parentNode=ua.documentElement):(t=n,t.parentNode=null),A([t])},_a.on=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(X(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(X(n,t,e))};var ka=ta.map({mouseenter:"mouseover",mouseleave:"mouseout"});ua&&ka.forEach(function(n){"on"+n in ua&&ka.remove(n)});var Ea,Aa=0;ta.mouse=function(n){return J(n,k())};var Na=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ta.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=k().changedTouches),t)for(var r,u=0,i=t.length;i>u;++u)if((r=t[u]).identifier===e)return J(n,r)},ta.behavior.drag=function(){function n(){this.on("mousedown.drag",i).on("touchstart.drag",o)}function e(n,t,e,i,o){return function(){function a(){var n,e,r=t(h,v);r&&(n=r[0]-M[0],e=r[1]-M[1],p|=n|e,M=r,g({type:"drag",x:r[0]+l[0],y:r[1]+l[1],dx:n,dy:e}))}function c(){t(h,v)&&(m.on(i+d,null).on(o+d,null),y(p&&ta.event.target===f),g({type:"dragend"}))}var l,s=this,f=ta.event.target,h=s.parentNode,g=r.of(s,arguments),p=0,v=n(),d=".drag"+(null==v?"":"-"+v),m=ta.select(e(f)).on(i+d,a).on(o+d,c),y=W(f),M=t(h,v);u?(l=u.apply(s,arguments),l=[l.x-M[0],l.y-M[1]]):l=[0,0],g({type:"dragstart"})}}var r=E(n,"drag","dragstart","dragend"),u=null,i=e(b,ta.mouse,t,"mousemove","mouseup"),o=e(G,ta.touch,y,"touchmove","touchend");return n.origin=function(t){return arguments.length?(u=t,n):u},ta.rebind(n,r,"on")},ta.touches=function(n,t){return arguments.length<2&&(t=k().touches),t?ra(t).map(function(t){var e=J(n,t);return e.identifier=t.identifier,e}):[]};var Ca=1e-6,za=Ca*Ca,qa=Math.PI,La=2*qa,Ta=La-Ca,Ra=qa/2,Da=qa/180,Pa=180/qa,Ua=Math.SQRT2,ja=2,Fa=4;ta.interpolateZoom=function(n,t){function e(n){var t=n*y;if(m){var e=rt(v),o=i/(ja*h)*(e*ut(Ua*t+v)-et(v));return[r+o*l,u+o*s,i*e/rt(Ua*t+v)]}return[r+n*l,u+n*s,i*Math.exp(Ua*t)]}var r=n[0],u=n[1],i=n[2],o=t[0],a=t[1],c=t[2],l=o-r,s=a-u,f=l*l+s*s,h=Math.sqrt(f),g=(c*c-i*i+Fa*f)/(2*i*ja*h),p=(c*c-i*i-Fa*f)/(2*c*ja*h),v=Math.log(Math.sqrt(g*g+1)-g),d=Math.log(Math.sqrt(p*p+1)-p),m=d-v,y=(m||Math.log(c/i))/Ua;return e.duration=1e3*y,e},ta.behavior.zoom=function(){function n(n){n.on(q,f).on(Oa+".zoom",g).on("dblclick.zoom",p).on(R,h)}function e(n){return[(n[0]-k.x)/k.k,(n[1]-k.y)/k.k]}function r(n){return[n[0]*k.k+k.x,n[1]*k.k+k.y]}function u(n){k.k=Math.max(N[0],Math.min(N[1],n))}function i(n,t){t=r(t),k.x+=n[0]-t[0],k.y+=n[1]-t[1]}function o(t,e,r,o){t.__chart__={x:k.x,y:k.y,k:k.k},u(Math.pow(2,o)),i(d=e,r),t=ta.select(t),C>0&&(t=t.transition().duration(C)),t.call(n.event)}function a(){b&&b.domain(x.range().map(function(n){return(n-k.x)/k.k}).map(x.invert)),w&&w.domain(_.range().map(function(n){return(n-k.y)/k.k}).map(_.invert))}function c(n){z++||n({type:"zoomstart"})}function l(n){a(),n({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function s(n){--z||n({type:"zoomend"}),d=null}function f(){function n(){f=1,i(ta.mouse(u),g),l(a)}function r(){h.on(L,null).on(T,null),p(f&&ta.event.target===o),s(a)}var u=this,o=ta.event.target,a=D.of(u,arguments),f=0,h=ta.select(t(u)).on(L,n).on(T,r),g=e(ta.mouse(u)),p=W(u);Dl.call(u),c(a)}function h(){function n(){var n=ta.touches(p);return g=k.k,n.forEach(function(n){n.identifier in d&&(d[n.identifier]=e(n))}),n}function t(){var t=ta.event.target;ta.select(t).on(x,r).on(b,a),_.push(t);for(var e=ta.event.changedTouches,u=0,i=e.length;i>u;++u)d[e[u].identifier]=null;var c=n(),l=Date.now();if(1===c.length){if(500>l-M){var s=c[0];o(p,s,d[s.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),S()}M=l}else if(c.length>1){var s=c[0],f=c[1],h=s[0]-f[0],g=s[1]-f[1];m=h*h+g*g}}function r(){var n,t,e,r,o=ta.touches(p);Dl.call(p);for(var a=0,c=o.length;c>a;++a,r=null)if(e=o[a],r=d[e.identifier]){if(t)break;n=e,t=r}if(r){var s=(s=e[0]-n[0])*s+(s=e[1]-n[1])*s,f=m&&Math.sqrt(s/m);n=[(n[0]+e[0])/2,(n[1]+e[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],u(f*g)}M=null,i(n,t),l(v)}function a(){if(ta.event.touches.length){for(var t=ta.event.changedTouches,e=0,r=t.length;r>e;++e)delete d[t[e].identifier];for(var u in d)return void n()}ta.selectAll(_).on(y,null),w.on(q,f).on(R,h),E(),s(v)}var g,p=this,v=D.of(p,arguments),d={},m=0,y=".zoom-"+ta.event.changedTouches[0].identifier,x="touchmove"+y,b="touchend"+y,_=[],w=ta.select(p),E=W(p);t(),c(v),w.on(q,null).on(R,t)}function g(){var n=D.of(this,arguments);y?clearTimeout(y):(v=e(d=m||ta.mouse(this)),Dl.call(this),c(n)),y=setTimeout(function(){y=null,s(n)},50),S(),u(Math.pow(2,.002*Ha())*k.k),i(d,v),l(n)}function p(){var n=ta.mouse(this),t=Math.log(k.k)/Math.LN2;o(this,n,e(n),ta.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var v,d,m,y,M,x,b,_,w,k={x:0,y:0,k:1},A=[960,500],N=Ia,C=250,z=0,q="mousedown.zoom",L="mousemove.zoom",T="mouseup.zoom",R="touchstart.zoom",D=E(n,"zoomstart","zoom","zoomend");return Oa||(Oa="onwheel"in ua?(Ha=function(){return-ta.event.deltaY*(ta.event.deltaMode?120:1)},"wheel"):"onmousewheel"in ua?(Ha=function(){return ta.event.wheelDelta},"mousewheel"):(Ha=function(){return-ta.event.detail},"MozMousePixelScroll")),n.event=function(n){n.each(function(){var n=D.of(this,arguments),t=k;Tl?ta.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},c(n)}).tween("zoom:zoom",function(){var e=A[0],r=A[1],u=d?d[0]:e/2,i=d?d[1]:r/2,o=ta.interpolateZoom([(u-k.x)/k.k,(i-k.y)/k.k,e/k.k],[(u-t.x)/t.k,(i-t.y)/t.k,e/t.k]);return function(t){var r=o(t),a=e/r[2];this.__chart__=k={x:u-r[0]*a,y:i-r[1]*a,k:a},l(n)}}).each("interrupt.zoom",function(){s(n)}).each("end.zoom",function(){s(n)}):(this.__chart__=k,c(n),l(n),s(n))})},n.translate=function(t){return arguments.length?(k={x:+t[0],y:+t[1],k:k.k},a(),n):[k.x,k.y]},n.scale=function(t){return arguments.length?(k={x:k.x,y:k.y,k:+t},a(),n):k.k},n.scaleExtent=function(t){return arguments.length?(N=null==t?Ia:[+t[0],+t[1]],n):N},n.center=function(t){return arguments.length?(m=t&&[+t[0],+t[1]],n):m},n.size=function(t){return arguments.length?(A=t&&[+t[0],+t[1]],n):A},n.duration=function(t){return arguments.length?(C=+t,n):C},n.x=function(t){return arguments.length?(b=t,x=t.copy(),k={x:0,y:0,k:1},n):b},n.y=function(t){return arguments.length?(w=t,_=t.copy(),k={x:0,y:0,k:1},n):w},ta.rebind(n,D,"on")};var Ha,Oa,Ia=[0,1/0];ta.color=ot,ot.prototype.toString=function(){return this.rgb()+""},ta.hsl=at;var Ya=at.prototype=new ot;Ya.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new at(this.h,this.s,this.l/n)},Ya.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new at(this.h,this.s,n*this.l)},Ya.rgb=function(){return ct(this.h,this.s,this.l)},ta.hcl=lt;var Za=lt.prototype=new ot;Za.brighter=function(n){return new lt(this.h,this.c,Math.min(100,this.l+Va*(arguments.length?n:1)))},Za.darker=function(n){return new lt(this.h,this.c,Math.max(0,this.l-Va*(arguments.length?n:1)))},Za.rgb=function(){return st(this.h,this.c,this.l).rgb()},ta.lab=ft;var Va=18,Xa=.95047,$a=1,Ba=1.08883,Wa=ft.prototype=new ot;Wa.brighter=function(n){return new ft(Math.min(100,this.l+Va*(arguments.length?n:1)),this.a,this.b)},Wa.darker=function(n){return new ft(Math.max(0,this.l-Va*(arguments.length?n:1)),this.a,this.b)},Wa.rgb=function(){return ht(this.l,this.a,this.b)},ta.rgb=mt;var Ja=mt.prototype=new ot;Ja.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,u=30;return t||e||r?(t&&u>t&&(t=u),e&&u>e&&(e=u),r&&u>r&&(r=u),new mt(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new mt(u,u,u)},Ja.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new mt(n*this.r,n*this.g,n*this.b)},Ja.hsl=function(){return _t(this.r,this.g,this.b)},Ja.toString=function(){return"#"+xt(this.r)+xt(this.g)+xt(this.b)};var Ga=ta.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Ga.forEach(function(n,t){Ga.set(n,yt(t))}),ta.functor=Et,ta.xhr=At(y),ta.dsv=function(n,t){function e(n,e,i){arguments.length<3&&(i=e,e=null);var o=Nt(n,t,null==e?r:u(e),i);return o.row=function(n){return arguments.length?o.response(null==(e=n)?r:u(n)):e},o}function r(n){return e.parse(n.responseText)}function u(n){return function(t){return e.parse(t.responseText,n)}}function i(t){return t.map(o).join(n)}function o(n){return a.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var a=new RegExp('["'+n+"\n]"),c=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var u=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(u(n),e)}:u})},e.parseRows=function(n,t){function e(){if(s>=l)return o;if(u)return u=!1,i;var t=s;if(34===n.charCodeAt(t)){for(var e=t;e++<l;)if(34===n.charCodeAt(e)){if(34!==n.charCodeAt(e+1))break;++e}s=e+2;var r=n.charCodeAt(e+1);return 13===r?(u=!0,10===n.charCodeAt(e+2)&&++s):10===r&&(u=!0),n.slice(t+1,e).replace(/""/g,'"')}for(;l>s;){var r=n.charCodeAt(s++),a=1;if(10===r)u=!0;else if(13===r)u=!0,10===n.charCodeAt(s)&&(++s,++a);else if(r!==c)continue;return n.slice(t,s-a)}return n.slice(t)}for(var r,u,i={},o={},a=[],l=n.length,s=0,f=0;(r=e())!==o;){for(var h=[];r!==i&&r!==o;)h.push(r),r=e();t&&null==(h=t(h,f++))||a.push(h)}return a},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new m,u=[];return t.forEach(function(n){for(var t in n)r.has(t)||u.push(r.add(t))}),[u.map(o).join(n)].concat(t.map(function(t){return u.map(function(n){return o(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(i).join("\n")},e},ta.csv=ta.dsv(",","text/csv"),ta.tsv=ta.dsv(" ","text/tab-separated-values");var Ka,Qa,nc,tc,ec,rc=this[x(this,"requestAnimationFrame")]||function(n){setTimeout(n,17)};ta.timer=function(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var u=e+t,i={c:n,t:u,f:!1,n:null};Qa?Qa.n=i:Ka=i,Qa=i,nc||(tc=clearTimeout(tc),nc=1,rc(qt))},ta.timer.flush=function(){Lt(),Tt()},ta.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var uc=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(Dt);ta.formatPrefix=function(n,t){var e=0;return n&&(0>n&&(n*=-1),t&&(n=ta.round(n,Rt(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),uc[8+e/3]};var ic=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,oc=ta.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=ta.round(n,Rt(n,t))).toFixed(Math.max(0,Math.min(20,Rt(n*(1+1e-15),t))))}}),ac=ta.time={},cc=Date;jt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){lc.setUTCDate.apply(this._,arguments)},setDay:function(){lc.setUTCDay.apply(this._,arguments)},setFullYear:function(){lc.setUTCFullYear.apply(this._,arguments)},setHours:function(){lc.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){lc.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){lc.setUTCMinutes.apply(this._,arguments)},setMonth:function(){lc.setUTCMonth.apply(this._,arguments)},setSeconds:function(){lc.setUTCSeconds.apply(this._,arguments)},setTime:function(){lc.setTime.apply(this._,arguments)}};var lc=Date.prototype;ac.year=Ft(function(n){return n=ac.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),ac.years=ac.year.range,ac.years.utc=ac.year.utc.range,ac.day=Ft(function(n){var t=new cc(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),ac.days=ac.day.range,ac.days.utc=ac.day.utc.range,ac.dayOfYear=function(n){var t=ac.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=ac[n]=Ft(function(n){return(n=ac.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=ac.year(n).getDay();return Math.floor((ac.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});ac[n+"s"]=e.range,ac[n+"s"].utc=e.utc.range,ac[n+"OfYear"]=function(n){var e=ac.year(n).getDay();return Math.floor((ac.dayOfYear(n)+(e+t)%7)/7)}}),ac.week=ac.sunday,ac.weeks=ac.sunday.range,ac.weeks.utc=ac.sunday.utc.range,ac.weekOfYear=ac.sundayOfYear;var sc={"-":"",_:" ",0:"0"},fc=/^\s*\d+/,hc=/^%/;ta.locale=function(n){return{numberFormat:Pt(n),timeFormat:Ot(n)}};var gc=ta.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ta.format=gc.numberFormat,ta.geo={},ce.prototype={s:0,t:0,add:function(n){le(n,this.t,pc),le(pc.s,this.s,this),this.s?this.t+=pc.t:this.s=pc.t
-},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var pc=new ce;ta.geo.stream=function(n,t){n&&vc.hasOwnProperty(n.type)?vc[n.type](n,t):se(n,t)};var vc={Feature:function(n,t){se(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,u=e.length;++r<u;)se(e[r].geometry,t)}},dc={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)n=e[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){fe(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)fe(e[r],t,0)},Polygon:function(n,t){he(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)he(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,u=e.length;++r<u;)se(e[r],t)}};ta.geo.area=function(n){return mc=0,ta.geo.stream(n,Mc),mc};var mc,yc=new ce,Mc={sphere:function(){mc+=4*qa},point:b,lineStart:b,lineEnd:b,polygonStart:function(){yc.reset(),Mc.lineStart=ge},polygonEnd:function(){var n=2*yc;mc+=0>n?4*qa+n:n,Mc.lineStart=Mc.lineEnd=Mc.point=b}};ta.geo.bounds=function(){function n(n,t){M.push(x=[s=n,h=n]),f>t&&(f=t),t>g&&(g=t)}function t(t,e){var r=pe([t*Da,e*Da]);if(m){var u=de(m,r),i=[u[1],-u[0],0],o=de(i,u);Me(o),o=xe(o);var c=t-p,l=c>0?1:-1,v=o[0]*Pa*l,d=ga(c)>180;if(d^(v>l*p&&l*t>v)){var y=o[1]*Pa;y>g&&(g=y)}else if(v=(v+360)%360-180,d^(v>l*p&&l*t>v)){var y=-o[1]*Pa;f>y&&(f=y)}else f>e&&(f=e),e>g&&(g=e);d?p>t?a(s,t)>a(s,h)&&(h=t):a(t,h)>a(s,h)&&(s=t):h>=s?(s>t&&(s=t),t>h&&(h=t)):t>p?a(s,t)>a(s,h)&&(h=t):a(t,h)>a(s,h)&&(s=t)}else n(t,e);m=r,p=t}function e(){b.point=t}function r(){x[0]=s,x[1]=h,b.point=n,m=null}function u(n,e){if(m){var r=n-p;y+=ga(r)>180?r+(r>0?360:-360):r}else v=n,d=e;Mc.point(n,e),t(n,e)}function i(){Mc.lineStart()}function o(){u(v,d),Mc.lineEnd(),ga(y)>Ca&&(s=-(h=180)),x[0]=s,x[1]=h,m=null}function a(n,t){return(t-=n)<0?t+360:t}function c(n,t){return n[0]-t[0]}function l(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var s,f,h,g,p,v,d,m,y,M,x,b={point:n,lineStart:e,lineEnd:r,polygonStart:function(){b.point=u,b.lineStart=i,b.lineEnd=o,y=0,Mc.polygonStart()},polygonEnd:function(){Mc.polygonEnd(),b.point=n,b.lineStart=e,b.lineEnd=r,0>yc?(s=-(h=180),f=-(g=90)):y>Ca?g=90:-Ca>y&&(f=-90),x[0]=s,x[1]=h}};return function(n){g=h=-(s=f=1/0),M=[],ta.geo.stream(n,b);var t=M.length;if(t){M.sort(c);for(var e,r=1,u=M[0],i=[u];t>r;++r)e=M[r],l(e[0],u)||l(e[1],u)?(a(u[0],e[1])>a(u[0],u[1])&&(u[1]=e[1]),a(e[0],u[1])>a(u[0],u[1])&&(u[0]=e[0])):i.push(u=e);for(var o,e,p=-1/0,t=i.length-1,r=0,u=i[t];t>=r;u=e,++r)e=i[r],(o=a(u[1],e[0]))>p&&(p=o,s=e[0],h=u[1])}return M=x=null,1/0===s||1/0===f?[[0/0,0/0],[0/0,0/0]]:[[s,f],[h,g]]}}(),ta.geo.centroid=function(n){xc=bc=_c=wc=Sc=kc=Ec=Ac=Nc=Cc=zc=0,ta.geo.stream(n,qc);var t=Nc,e=Cc,r=zc,u=t*t+e*e+r*r;return za>u&&(t=kc,e=Ec,r=Ac,Ca>bc&&(t=_c,e=wc,r=Sc),u=t*t+e*e+r*r,za>u)?[0/0,0/0]:[Math.atan2(e,t)*Pa,tt(r/Math.sqrt(u))*Pa]};var xc,bc,_c,wc,Sc,kc,Ec,Ac,Nc,Cc,zc,qc={sphere:b,point:_e,lineStart:Se,lineEnd:ke,polygonStart:function(){qc.lineStart=Ee},polygonEnd:function(){qc.lineStart=Se}},Lc=Le(Ne,Pe,je,[-qa,-qa/2]),Tc=1e9;ta.geo.clipExtent=function(){var n,t,e,r,u,i,o={stream:function(n){return u&&(u.valid=!1),u=i(n),u.valid=!0,u},extent:function(a){return arguments.length?(i=Ie(n=+a[0][0],t=+a[0][1],e=+a[1][0],r=+a[1][1]),u&&(u.valid=!1,u=null),o):[[n,t],[e,r]]}};return o.extent([[0,0],[960,500]])},(ta.geo.conicEqualArea=function(){return Ye(Ze)}).raw=Ze,ta.geo.albers=function(){return ta.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ta.geo.albersUsa=function(){function n(n){var i=n[0],o=n[1];return t=null,e(i,o),t||(r(i,o),t)||u(i,o),t}var t,e,r,u,i=ta.geo.albers(),o=ta.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=ta.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=i.scale(),e=i.translate(),r=(n[0]-e[0])/t,u=(n[1]-e[1])/t;return(u>=.12&&.234>u&&r>=-.425&&-.214>r?o:u>=.166&&.234>u&&r>=-.214&&-.115>r?a:i).invert(n)},n.stream=function(n){var t=i.stream(n),e=o.stream(n),r=a.stream(n);return{point:function(n,u){t.point(n,u),e.point(n,u),r.point(n,u)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(i.precision(t),o.precision(t),a.precision(t),n):i.precision()},n.scale=function(t){return arguments.length?(i.scale(t),o.scale(.35*t),a.scale(t),n.translate(i.translate())):i.scale()},n.translate=function(t){if(!arguments.length)return i.translate();var l=i.scale(),s=+t[0],f=+t[1];return e=i.translate(t).clipExtent([[s-.455*l,f-.238*l],[s+.455*l,f+.238*l]]).stream(c).point,r=o.translate([s-.307*l,f+.201*l]).clipExtent([[s-.425*l+Ca,f+.12*l+Ca],[s-.214*l-Ca,f+.234*l-Ca]]).stream(c).point,u=a.translate([s-.205*l,f+.212*l]).clipExtent([[s-.214*l+Ca,f+.166*l+Ca],[s-.115*l-Ca,f+.234*l-Ca]]).stream(c).point,n},n.scale(1070)};var Rc,Dc,Pc,Uc,jc,Fc,Hc={point:b,lineStart:b,lineEnd:b,polygonStart:function(){Dc=0,Hc.lineStart=Ve},polygonEnd:function(){Hc.lineStart=Hc.lineEnd=Hc.point=b,Rc+=ga(Dc/2)}},Oc={point:Xe,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},Ic={point:We,lineStart:Je,lineEnd:Ge,polygonStart:function(){Ic.lineStart=Ke},polygonEnd:function(){Ic.point=We,Ic.lineStart=Je,Ic.lineEnd=Ge}};ta.geo.path=function(){function n(n){return n&&("function"==typeof a&&i.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=u(i)),ta.geo.stream(n,o)),i.result()}function t(){return o=null,n}var e,r,u,i,o,a=4.5;return n.area=function(n){return Rc=0,ta.geo.stream(n,u(Hc)),Rc},n.centroid=function(n){return _c=wc=Sc=kc=Ec=Ac=Nc=Cc=zc=0,ta.geo.stream(n,u(Ic)),zc?[Nc/zc,Cc/zc]:Ac?[kc/Ac,Ec/Ac]:Sc?[_c/Sc,wc/Sc]:[0/0,0/0]},n.bounds=function(n){return jc=Fc=-(Pc=Uc=1/0),ta.geo.stream(n,u(Oc)),[[Pc,Uc],[jc,Fc]]},n.projection=function(n){return arguments.length?(u=(e=n)?n.stream||tr(n):y,t()):e},n.context=function(n){return arguments.length?(i=null==(r=n)?new $e:new Qe(n),"function"!=typeof a&&i.pointRadius(a),t()):r},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(i.pointRadius(+t),+t),n):a},n.projection(ta.geo.albersUsa()).context(null)},ta.geo.transform=function(n){return{stream:function(t){var e=new er(t);for(var r in n)e[r]=n[r];return e}}},er.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ta.geo.projection=ur,ta.geo.projectionMutator=ir,(ta.geo.equirectangular=function(){return ur(ar)}).raw=ar.invert=ar,ta.geo.rotation=function(n){function t(t){return t=n(t[0]*Da,t[1]*Da),t[0]*=Pa,t[1]*=Pa,t}return n=lr(n[0]%360*Da,n[1]*Da,n.length>2?n[2]*Da:0),t.invert=function(t){return t=n.invert(t[0]*Da,t[1]*Da),t[0]*=Pa,t[1]*=Pa,t},t},cr.invert=ar,ta.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=lr(-n[0]*Da,-n[1]*Da,0).invert,u=[];return e(null,null,1,{point:function(n,e){u.push(n=t(n,e)),n[0]*=Pa,n[1]*=Pa}}),{type:"Polygon",coordinates:[u]}}var t,e,r=[0,0],u=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=gr((t=+r)*Da,u*Da),n):t},n.precision=function(r){return arguments.length?(e=gr(t*Da,(u=+r)*Da),n):u},n.angle(90)},ta.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Da,u=n[1]*Da,i=t[1]*Da,o=Math.sin(r),a=Math.cos(r),c=Math.sin(u),l=Math.cos(u),s=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((e=f*o)*e+(e=l*s-c*f*a)*e),c*s+l*f*a)},ta.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return ta.range(Math.ceil(i/d)*d,u,d).map(h).concat(ta.range(Math.ceil(l/m)*m,c,m).map(g)).concat(ta.range(Math.ceil(r/p)*p,e,p).filter(function(n){return ga(n%d)>Ca}).map(s)).concat(ta.range(Math.ceil(a/v)*v,o,v).filter(function(n){return ga(n%m)>Ca}).map(f))}var e,r,u,i,o,a,c,l,s,f,h,g,p=10,v=p,d=90,m=360,y=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(g(c).slice(1),h(u).reverse().slice(1),g(l).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(i=+t[0][0],u=+t[1][0],l=+t[0][1],c=+t[1][1],i>u&&(t=i,i=u,u=t),l>c&&(t=l,l=c,c=t),n.precision(y)):[[i,l],[u,c]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),n.precision(y)):[[r,a],[e,o]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(d=+t[0],m=+t[1],n):[d,m]},n.minorStep=function(t){return arguments.length?(p=+t[0],v=+t[1],n):[p,v]},n.precision=function(t){return arguments.length?(y=+t,s=vr(a,o,90),f=dr(r,e,y),h=vr(l,c,90),g=dr(i,u,y),n):y},n.majorExtent([[-180,-90+Ca],[180,90-Ca]]).minorExtent([[-180,-80-Ca],[180,80+Ca]])},ta.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||u.apply(this,arguments)]}}var t,e,r=mr,u=yr;return n.distance=function(){return ta.geo.distance(t||r.apply(this,arguments),e||u.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(u=t,e="function"==typeof t?null:t,n):u},n.precision=function(){return arguments.length?n:0},n},ta.geo.interpolate=function(n,t){return Mr(n[0]*Da,n[1]*Da,t[0]*Da,t[1]*Da)},ta.geo.length=function(n){return Yc=0,ta.geo.stream(n,Zc),Yc};var Yc,Zc={sphere:b,point:b,lineStart:xr,lineEnd:b,polygonStart:b,polygonEnd:b},Vc=br(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(ta.geo.azimuthalEqualArea=function(){return ur(Vc)}).raw=Vc;var Xc=br(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},y);(ta.geo.azimuthalEquidistant=function(){return ur(Xc)}).raw=Xc,(ta.geo.conicConformal=function(){return Ye(_r)}).raw=_r,(ta.geo.conicEquidistant=function(){return Ye(wr)}).raw=wr;var $c=br(function(n){return 1/n},Math.atan);(ta.geo.gnomonic=function(){return ur($c)}).raw=$c,Sr.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Ra]},(ta.geo.mercator=function(){return kr(Sr)}).raw=Sr;var Bc=br(function(){return 1},Math.asin);(ta.geo.orthographic=function(){return ur(Bc)}).raw=Bc;var Wc=br(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(ta.geo.stereographic=function(){return ur(Wc)}).raw=Wc,Er.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Ra]},(ta.geo.transverseMercator=function(){var n=kr(Er),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},e([0,0,90])}).raw=Er,ta.geom={},ta.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,u=Et(e),i=Et(r),o=n.length,a=[],c=[];for(t=0;o>t;t++)a.push([+u.call(this,n[t],t),+i.call(this,n[t],t),t]);for(a.sort(zr),t=0;o>t;t++)c.push([a[t][0],-a[t][1]]);var l=Cr(a),s=Cr(c),f=s[0]===l[0],h=s[s.length-1]===l[l.length-1],g=[];for(t=l.length-1;t>=0;--t)g.push(n[a[l[t]][2]]);for(t=+f;t<s.length-h;++t)g.push(n[a[s[t]][2]]);return g}var e=Ar,r=Nr;return arguments.length?t(n):(t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t)},ta.geom.polygon=function(n){return ya(n,Jc),n};var Jc=ta.geom.polygon.prototype=[];Jc.area=function(){for(var n,t=-1,e=this.length,r=this[e-1],u=0;++t<e;)n=r,r=this[t],u+=n[1]*r[0]-n[0]*r[1];return.5*u},Jc.centroid=function(n){var t,e,r=-1,u=this.length,i=0,o=0,a=this[u-1];for(arguments.length||(n=-1/(6*this.area()));++r<u;)t=a,a=this[r],e=t[0]*a[1]-a[0]*t[1],i+=(t[0]+a[0])*e,o+=(t[1]+a[1])*e;return[i*n,o*n]},Jc.clip=function(n){for(var t,e,r,u,i,o,a=Tr(n),c=-1,l=this.length-Tr(this),s=this[l-1];++c<l;){for(t=n.slice(),n.length=0,u=this[c],i=t[(r=t.length-a)-1],e=-1;++e<r;)o=t[e],qr(o,s,u)?(qr(i,s,u)||n.push(Lr(i,o,s,u)),n.push(o)):qr(i,s,u)&&n.push(Lr(i,o,s,u)),i=o;a&&n.push(n[0]),s=u}return n};var Gc,Kc,Qc,nl,tl,el=[],rl=[];Or.prototype.prepare=function(){for(var n,t=this.edges,e=t.length;e--;)n=t[e].edge,n.b&&n.a||t.splice(e,1);return t.sort(Yr),t.length},Qr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},nu.prototype={insert:function(n,t){var e,r,u;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;e=n}else this._?(n=uu(this._),t.P=null,t.N=n,n.P=n.L=t,e=n):(t.P=t.N=null,this._=t,e=null);for(t.L=t.R=null,t.U=e,t.C=!0,n=t;e&&e.C;)r=e.U,e===r.L?(u=r.R,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.R&&(eu(this,e),n=e,e=n.U),e.C=!1,r.C=!0,ru(this,r))):(u=r.L,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.L&&(ru(this,e),n=e,e=n.U),e.C=!1,r.C=!0,eu(this,r))),e=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,e,r,u=n.U,i=n.L,o=n.R;if(e=i?o?uu(o):i:o,u?u.L===n?u.L=e:u.R=e:this._=e,i&&o?(r=e.C,e.C=n.C,e.L=i,i.U=e,e!==o?(u=e.U,e.U=n.U,n=e.R,u.L=n,e.R=o,o.U=e):(e.U=u,u=e,n=e.R)):(r=n.C,n=e),n&&(n.U=u),!r){if(n&&n.C)return void(n.C=!1);do{if(n===this._)break;if(n===u.L){if(t=u.R,t.C&&(t.C=!1,u.C=!0,eu(this,u),t=u.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ru(this,t),t=u.R),t.C=u.C,u.C=t.R.C=!1,eu(this,u),n=this._;break}}else if(t=u.L,t.C&&(t.C=!1,u.C=!0,ru(this,u),t=u.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,eu(this,t),t=u.L),t.C=u.C,u.C=t.L.C=!1,ru(this,u),n=this._;break}t.C=!0,n=u,u=u.U}while(!n.C);n&&(n.C=!1)}}},ta.geom.voronoi=function(n){function t(n){var t=new Array(n.length),r=a[0][0],u=a[0][1],i=a[1][0],o=a[1][1];return iu(e(n),a).cells.forEach(function(e,a){var c=e.edges,l=e.site,s=t[a]=c.length?c.map(function(n){var t=n.start();return[t.x,t.y]}):l.x>=r&&l.x<=i&&l.y>=u&&l.y<=o?[[r,o],[i,o],[i,u],[r,u]]:[];s.point=n[a]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(i(n,t)/Ca)*Ca,y:Math.round(o(n,t)/Ca)*Ca,i:t}})}var r=Ar,u=Nr,i=r,o=u,a=ul;return n?t(n):(t.links=function(n){return iu(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return iu(e(n)).cells.forEach(function(e,r){for(var u,i,o=e.site,a=e.edges.sort(Yr),c=-1,l=a.length,s=a[l-1].edge,f=s.l===o?s.r:s.l;++c<l;)u=s,i=f,s=a[c].edge,f=s.l===o?s.r:s.l,r<i.i&&r<f.i&&au(o,i,f)<0&&t.push([n[r],n[i.i],n[f.i]])}),t},t.x=function(n){return arguments.length?(i=Et(r=n),t):r},t.y=function(n){return arguments.length?(o=Et(u=n),t):u},t.clipExtent=function(n){return arguments.length?(a=null==n?ul:n,t):a===ul?null:a},t.size=function(n){return arguments.length?t.clipExtent(n&&[[0,0],n]):a===ul?null:a&&a[1]},t)};var ul=[[-1e6,-1e6],[1e6,1e6]];ta.geom.delaunay=function(n){return ta.geom.voronoi().triangles(n)},ta.geom.quadtree=function(n,t,e,r,u){function i(n){function i(n,t,e,r,u,i,o,a){if(!isNaN(e)&&!isNaN(r))if(n.leaf){var c=n.x,s=n.y;if(null!=c)if(ga(c-e)+ga(s-r)<.01)l(n,t,e,r,u,i,o,a);else{var f=n.point;n.x=n.y=n.point=null,l(n,f,c,s,u,i,o,a),l(n,t,e,r,u,i,o,a)}else n.x=e,n.y=r,n.point=t}else l(n,t,e,r,u,i,o,a)}function l(n,t,e,r,u,o,a,c){var l=.5*(u+a),s=.5*(o+c),f=e>=l,h=r>=s,g=h<<1|f;n.leaf=!1,n=n.nodes[g]||(n.nodes[g]=su()),f?u=l:a=l,h?o=s:c=s,i(n,t,e,r,u,o,a,c)}var s,f,h,g,p,v,d,m,y,M=Et(a),x=Et(c);if(null!=t)v=t,d=e,m=r,y=u;else if(m=y=-(v=d=1/0),f=[],h=[],p=n.length,o)for(g=0;p>g;++g)s=n[g],s.x<v&&(v=s.x),s.y<d&&(d=s.y),s.x>m&&(m=s.x),s.y>y&&(y=s.y),f.push(s.x),h.push(s.y);else for(g=0;p>g;++g){var b=+M(s=n[g],g),_=+x(s,g);v>b&&(v=b),d>_&&(d=_),b>m&&(m=b),_>y&&(y=_),f.push(b),h.push(_)}var w=m-v,S=y-d;w>S?y=d+w:m=v+S;var k=su();if(k.add=function(n){i(k,n,+M(n,++g),+x(n,g),v,d,m,y)},k.visit=function(n){fu(n,k,v,d,m,y)},k.find=function(n){return hu(k,n[0],n[1],v,d,m,y)},g=-1,null==t){for(;++g<p;)i(k,n[g],f[g],h[g],v,d,m,y);--g}else n.forEach(k.add);return f=h=n=s=null,k}var o,a=Ar,c=Nr;return(o=arguments.length)?(a=cu,c=lu,3===o&&(u=e,r=t,e=t=0),i(n)):(i.x=function(n){return arguments.length?(a=n,i):a},i.y=function(n){return arguments.length?(c=n,i):c},i.extent=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=+n[0][0],e=+n[0][1],r=+n[1][0],u=+n[1][1]),i):null==t?null:[[t,e],[r,u]]},i.size=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=e=0,r=+n[0],u=+n[1]),i):null==t?null:[r-t,u-e]},i)},ta.interpolateRgb=gu,ta.interpolateObject=pu,ta.interpolateNumber=vu,ta.interpolateString=du;var il=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ol=new RegExp(il.source,"g");ta.interpolate=mu,ta.interpolators=[function(n,t){var e=typeof t;return("string"===e?Ga.has(t)||/^(#|rgb\(|hsl\()/.test(t)?gu:du:t instanceof ot?gu:Array.isArray(t)?yu:"object"===e&&isNaN(t)?pu:vu)(n,t)}],ta.interpolateArray=yu;var al=function(){return y},cl=ta.map({linear:al,poly:ku,quad:function(){return _u},cubic:function(){return wu},sin:function(){return Eu},exp:function(){return Au},circle:function(){return Nu},elastic:Cu,back:zu,bounce:function(){return qu}}),ll=ta.map({"in":y,out:xu,"in-out":bu,"out-in":function(n){return bu(xu(n))}});ta.ease=function(n){var t=n.indexOf("-"),e=t>=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=cl.get(e)||al,r=ll.get(r)||y,Mu(r(e.apply(null,ea.call(arguments,1))))},ta.interpolateHcl=Lu,ta.interpolateHsl=Tu,ta.interpolateLab=Ru,ta.interpolateRound=Du,ta.transform=function(n){var t=ua.createElementNS(ta.ns.prefix.svg,"g");return(ta.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new Pu(e?e.matrix:sl)})(n)},Pu.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var sl={a:1,b:0,c:0,d:1,e:0,f:0};ta.interpolateTransform=Hu,ta.layout={},ta.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++e<r;)t.push(Yu(n[e]));return t}},ta.layout.chord=function(){function n(){var n,l,f,h,g,p={},v=[],d=ta.range(i),m=[];for(e=[],r=[],n=0,h=-1;++h<i;){for(l=0,g=-1;++g<i;)l+=u[h][g];v.push(l),m.push(ta.range(i)),n+=l}for(o&&d.sort(function(n,t){return o(v[n],v[t])}),a&&m.forEach(function(n,t){n.sort(function(n,e){return a(u[t][n],u[t][e])})}),n=(La-s*i)/n,l=0,h=-1;++h<i;){for(f=l,g=-1;++g<i;){var y=d[h],M=m[y][g],x=u[y][M],b=l,_=l+=x*n;p[y+"-"+M]={index:y,subindex:M,startAngle:b,endAngle:_,value:x}}r[y]={index:y,startAngle:f,endAngle:l,value:(l-f)/n},l+=s}for(h=-1;++h<i;)for(g=h-1;++g<i;){var w=p[h+"-"+g],S=p[g+"-"+h];(w.value||S.value)&&e.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}c&&t()}function t(){e.sort(function(n,t){return c((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var e,r,u,i,o,a,c,l={},s=0;return l.matrix=function(n){return arguments.length?(i=(u=n)&&u.length,e=r=null,l):u},l.padding=function(n){return arguments.length?(s=n,e=r=null,l):s},l.sortGroups=function(n){return arguments.length?(o=n,e=r=null,l):o},l.sortSubgroups=function(n){return arguments.length?(a=n,e=null,l):a},l.sortChords=function(n){return arguments.length?(c=n,e&&t(),l):c},l.chords=function(){return e||n(),e},l.groups=function(){return r||n(),r},l},ta.layout.force=function(){function n(n){return function(t,e,r,u){if(t.point!==n){var i=t.cx-n.x,o=t.cy-n.y,a=u-e,c=i*i+o*o;if(c>a*a/d){if(p>c){var l=t.charge/c;n.px-=i*l,n.py-=o*l}return!0}if(t.point&&c&&p>c){var l=t.pointCharge/c;n.px-=i*l,n.py-=o*l}}return!t.charge}}function t(n){n.px=ta.event.x,n.py=ta.event.y,a.resume()}var e,r,u,i,o,a={},c=ta.dispatch("start","tick","end"),l=[1,1],s=.9,f=fl,h=hl,g=-30,p=gl,v=.1,d=.64,m=[],M=[];return a.tick=function(){if((r*=.99)<.005)return c.end({type:"end",alpha:r=0}),!0;var t,e,a,f,h,p,d,y,x,b=m.length,_=M.length;for(e=0;_>e;++e)a=M[e],f=a.source,h=a.target,y=h.x-f.x,x=h.y-f.y,(p=y*y+x*x)&&(p=r*i[e]*((p=Math.sqrt(p))-u[e])/p,y*=p,x*=p,h.x-=y*(d=f.weight/(h.weight+f.weight)),h.y-=x*d,f.x+=y*(d=1-d),f.y+=x*d);if((d=r*v)&&(y=l[0]/2,x=l[1]/2,e=-1,d))for(;++e<b;)a=m[e],a.x+=(y-a.x)*d,a.y+=(x-a.y)*d;if(g)for(Ju(t=ta.geom.quadtree(m),r,o),e=-1;++e<b;)(a=m[e]).fixed||t.visit(n(a));for(e=-1;++e<b;)a=m[e],a.fixed?(a.x=a.px,a.y=a.py):(a.x-=(a.px-(a.px=a.x))*s,a.y-=(a.py-(a.py=a.y))*s);c.tick({type:"tick",alpha:r})},a.nodes=function(n){return arguments.length?(m=n,a):m},a.links=function(n){return arguments.length?(M=n,a):M},a.size=function(n){return arguments.length?(l=n,a):l},a.linkDistance=function(n){return arguments.length?(f="function"==typeof n?n:+n,a):f},a.distance=a.linkDistance,a.linkStrength=function(n){return arguments.length?(h="function"==typeof n?n:+n,a):h},a.friction=function(n){return arguments.length?(s=+n,a):s},a.charge=function(n){return arguments.length?(g="function"==typeof n?n:+n,a):g},a.chargeDistance=function(n){return arguments.length?(p=n*n,a):Math.sqrt(p)},a.gravity=function(n){return arguments.length?(v=+n,a):v},a.theta=function(n){return arguments.length?(d=n*n,a):Math.sqrt(d)},a.alpha=function(n){return arguments.length?(n=+n,r?r=n>0?n:0:n>0&&(c.start({type:"start",alpha:r=n}),ta.timer(a.tick)),a):r},a.start=function(){function n(n,r){if(!e){for(e=new Array(c),a=0;c>a;++a)e[a]=[];for(a=0;s>a;++a){var u=M[a];e[u.source.index].push(u.target),e[u.target.index].push(u.source)}}for(var i,o=e[t],a=-1,l=o.length;++a<l;)if(!isNaN(i=o[a][n]))return i;return Math.random()*r}var t,e,r,c=m.length,s=M.length,p=l[0],v=l[1];for(t=0;c>t;++t)(r=m[t]).index=t,r.weight=0;for(t=0;s>t;++t)r=M[t],"number"==typeof r.source&&(r.source=m[r.source]),"number"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(t=0;c>t;++t)r=m[t],isNaN(r.x)&&(r.x=n("x",p)),isNaN(r.y)&&(r.y=n("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(u=[],"function"==typeof f)for(t=0;s>t;++t)u[t]=+f.call(this,M[t],t);else for(t=0;s>t;++t)u[t]=f;if(i=[],"function"==typeof h)for(t=0;s>t;++t)i[t]=+h.call(this,M[t],t);else for(t=0;s>t;++t)i[t]=h;if(o=[],"function"==typeof g)for(t=0;c>t;++t)o[t]=+g.call(this,m[t],t);else for(t=0;c>t;++t)o[t]=g;return a.resume()},a.resume=function(){return a.alpha(.1)},a.stop=function(){return a.alpha(0)},a.drag=function(){return e||(e=ta.behavior.drag().origin(y).on("dragstart.force",Xu).on("drag.force",t).on("dragend.force",$u)),arguments.length?void this.on("mouseover.force",Bu).on("mouseout.force",Wu).call(e):e},ta.rebind(a,c,"on")};var fl=20,hl=1,gl=1/0;ta.layout.hierarchy=function(){function n(u){var i,o=[u],a=[];for(u.depth=0;null!=(i=o.pop());)if(a.push(i),(l=e.call(n,i,i.depth))&&(c=l.length)){for(var c,l,s;--c>=0;)o.push(s=l[c]),s.parent=i,s.depth=i.depth+1;r&&(i.value=0),i.children=l}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return Qu(u,function(n){var e,u;t&&(e=n.children)&&e.sort(t),r&&(u=n.parent)&&(u.value+=n.value)}),a}var t=ei,e=ni,r=ti;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(Ku(t,function(n){n.children&&(n.value=0)}),Qu(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},ta.layout.partition=function(){function n(t,e,r,u){var i=t.children;if(t.x=e,t.y=t.depth*u,t.dx=r,t.dy=u,i&&(o=i.length)){var o,a,c,l=-1;for(r=t.value?r/t.value:0;++l<o;)n(a=i[l],e,c=a.value*r,u),e+=c}}function t(n){var e=n.children,r=0;if(e&&(u=e.length))for(var u,i=-1;++i<u;)r=Math.max(r,t(e[i]));return 1+r}function e(e,i){var o=r.call(this,e,i);return n(o[0],0,u[0],u[1]/t(o[0])),o}var r=ta.layout.hierarchy(),u=[1,1];return e.size=function(n){return arguments.length?(u=n,e):u},Gu(e,r)},ta.layout.pie=function(){function n(o){var a,c=o.length,l=o.map(function(e,r){return+t.call(n,e,r)}),s=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof u?u.apply(this,arguments):u)-s,h=Math.min(Math.abs(f)/c,+("function"==typeof i?i.apply(this,arguments):i)),g=h*(0>f?-1:1),p=(f-c*g)/ta.sum(l),v=ta.range(c),d=[];return null!=e&&v.sort(e===pl?function(n,t){return l[t]-l[n]}:function(n,t){return e(o[n],o[t])}),v.forEach(function(n){d[n]={data:o[n],value:a=l[n],startAngle:s,endAngle:s+=a*p+g,padAngle:h}}),d}var t=Number,e=pl,r=0,u=La,i=0;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(u=t,n):u},n.padAngle=function(t){return arguments.length?(i=t,n):i},n};var pl={};ta.layout.stack=function(){function n(a,c){if(!(h=a.length))return a;var l=a.map(function(e,r){return t.call(n,e,r)}),s=l.map(function(t){return t.map(function(t,e){return[i.call(n,t,e),o.call(n,t,e)]})}),f=e.call(n,s,c);l=ta.permute(l,f),s=ta.permute(s,f);var h,g,p,v,d=r.call(n,s,c),m=l[0].length;for(p=0;m>p;++p)for(u.call(n,l[0][p],v=d[p],s[0][p][1]),g=1;h>g;++g)u.call(n,l[g][p],v+=s[g-1][p][1],s[g][p][1]);return a}var t=y,e=ai,r=ci,u=oi,i=ui,o=ii;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:vl.get(t)||ai,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:dl.get(t)||ci,n):r},n.x=function(t){return arguments.length?(i=t,n):i},n.y=function(t){return arguments.length?(o=t,n):o},n.out=function(t){return arguments.length?(u=t,n):u},n};var vl=ta.map({"inside-out":function(n){var t,e,r=n.length,u=n.map(li),i=n.map(si),o=ta.range(r).sort(function(n,t){return u[n]-u[t]}),a=0,c=0,l=[],s=[];for(t=0;r>t;++t)e=o[t],c>a?(a+=i[e],l.push(e)):(c+=i[e],s.push(e));return s.reverse().concat(l)},reverse:function(n){return ta.range(n.length).reverse()},"default":ai}),dl=ta.map({silhouette:function(n){var t,e,r,u=n.length,i=n[0].length,o=[],a=0,c=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];r>a&&(a=r),o.push(r)}for(e=0;i>e;++e)c[e]=(a-o[e])/2;return c},wiggle:function(n){var t,e,r,u,i,o,a,c,l,s=n.length,f=n[0],h=f.length,g=[];for(g[0]=c=l=0,e=1;h>e;++e){for(t=0,u=0;s>t;++t)u+=n[t][e][1];for(t=0,i=0,a=f[e][0]-f[e-1][0];s>t;++t){for(r=0,o=(n[t][e][1]-n[t][e-1][1])/(2*a);t>r;++r)o+=(n[r][e][1]-n[r][e-1][1])/a;i+=o*n[t][e][1]}g[e]=c-=u?i/u*a:0,l>c&&(l=c)}for(e=0;h>e;++e)g[e]-=l;return g},expand:function(n){var t,e,r,u=n.length,i=n[0].length,o=1/u,a=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];if(r)for(t=0;u>t;t++)n[t][e][1]/=r;else for(t=0;u>t;t++)n[t][e][1]=o}for(e=0;i>e;++e)a[e]=0;return a},zero:ci});ta.layout.histogram=function(){function n(n,i){for(var o,a,c=[],l=n.map(e,this),s=r.call(this,l,i),f=u.call(this,s,l,i),i=-1,h=l.length,g=f.length-1,p=t?1:1/h;++i<g;)o=c[i]=[],o.dx=f[i+1]-(o.x=f[i]),o.y=0;if(g>0)for(i=-1;++i<h;)a=l[i],a>=s[0]&&a<=s[1]&&(o=c[ta.bisect(f,a,1,g)-1],o.y+=p,o.push(n[i]));return c}var t=!0,e=Number,r=pi,u=hi;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=Et(t),n):r},n.bins=function(t){return arguments.length?(u="number"==typeof t?function(n){return gi(n,t)}:Et(t),n):u},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},ta.layout.pack=function(){function n(n,i){var o=e.call(this,n,i),a=o[0],c=u[0],l=u[1],s=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,Qu(a,function(n){n.r=+s(n.value)}),Qu(a,Mi),r){var f=r*(t?1:Math.max(2*a.r/c,2*a.r/l))/2;Qu(a,function(n){n.r+=f}),Qu(a,Mi),Qu(a,function(n){n.r-=f})}return _i(a,c/2,l/2,t?1:1/Math.max(2*a.r/c,2*a.r/l)),o}var t,e=ta.layout.hierarchy().sort(vi),r=0,u=[1,1];return n.size=function(t){return arguments.length?(u=t,n):u},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},Gu(n,e)},ta.layout.tree=function(){function n(n,u){var s=o.call(this,n,u),f=s[0],h=t(f);if(Qu(h,e),h.parent.m=-h.z,Ku(h,r),l)Ku(f,i);else{var g=f,p=f,v=f;Ku(f,function(n){n.x<g.x&&(g=n),n.x>p.x&&(p=n),n.depth>v.depth&&(v=n)});var d=a(g,p)/2-g.x,m=c[0]/(p.x+a(p,g)/2+d),y=c[1]/(v.depth||1);Ku(f,function(n){n.x=(n.x+d)*m,n.y=n.depth*y})}return s}function t(n){for(var t,e={A:null,children:[n]},r=[e];null!=(t=r.pop());)for(var u,i=t.children,o=0,a=i.length;a>o;++o)r.push((i[o]=u={_:i[o],parent:t,children:(u=i[o].children)&&u.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=u);return e.children[0]}function e(n){var t=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(t.length){Ni(n);var i=(t[0].z+t[t.length-1].z)/2;r?(n.z=r.z+a(n._,r._),n.m=n.z-i):n.z=i}else r&&(n.z=r.z+a(n._,r._));n.parent.A=u(n,r,n.parent.A||e[0])}function r(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function u(n,t,e){if(t){for(var r,u=n,i=n,o=t,c=u.parent.children[0],l=u.m,s=i.m,f=o.m,h=c.m;o=Ei(o),u=ki(u),o&&u;)c=ki(c),i=Ei(i),i.a=n,r=o.z+f-u.z-l+a(o._,u._),r>0&&(Ai(Ci(o,n,e),n,r),l+=r,s+=r),f+=o.m,l+=u.m,h+=c.m,s+=i.m;o&&!Ei(i)&&(i.t=o,i.m+=f-s),u&&!ki(c)&&(c.t=u,c.m+=l-h,e=n)}return e}function i(n){n.x*=c[0],n.y=n.depth*c[1]}var o=ta.layout.hierarchy().sort(null).value(null),a=Si,c=[1,1],l=null;return n.separation=function(t){return arguments.length?(a=t,n):a},n.size=function(t){return arguments.length?(l=null==(c=t)?i:null,n):l?null:c},n.nodeSize=function(t){return arguments.length?(l=null==(c=t)?null:i,n):l?c:null},Gu(n,o)},ta.layout.cluster=function(){function n(n,i){var o,a=t.call(this,n,i),c=a[0],l=0;Qu(c,function(n){var t=n.children;t&&t.length?(n.x=qi(t),n.y=zi(t)):(n.x=o?l+=e(n,o):0,n.y=0,o=n)});var s=Li(c),f=Ti(c),h=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return Qu(c,u?function(n){n.x=(n.x-c.x)*r[0],n.y=(c.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(g-h)*r[0],n.y=(1-(c.y?n.y/c.y:1))*r[1]}),a}var t=ta.layout.hierarchy().sort(null).value(null),e=Si,r=[1,1],u=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(u=null==(r=t),n):u?null:r},n.nodeSize=function(t){return arguments.length?(u=null!=(r=t),n):u?r:null},Gu(n,t)},ta.layout.treemap=function(){function n(n,t){for(var e,r,u=-1,i=n.length;++u<i;)r=(e=n[u]).value*(0>t?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var i=e.children;if(i&&i.length){var o,a,c,l=f(e),s=[],h=i.slice(),p=1/0,v="slice"===g?l.dx:"dice"===g?l.dy:"slice-dice"===g?1&e.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(n(h,l.dx*l.dy/e.value),s.area=0;(c=h.length)>0;)s.push(o=h[c-1]),s.area+=o.area,"squarify"!==g||(a=r(s,v))<=p?(h.pop(),p=a):(s.area-=s.pop().area,u(s,v,l,!1),v=Math.min(l.dx,l.dy),s.length=s.area=0,p=1/0);s.length&&(u(s,v,l,!0),s.length=s.area=0),i.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var i,o=f(t),a=r.slice(),c=[];for(n(a,o.dx*o.dy/t.value),c.area=0;i=a.pop();)c.push(i),c.area+=i.area,null!=i.z&&(u(c,i.z?o.dx:o.dy,o,!a.length),c.length=c.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,u=0,i=1/0,o=-1,a=n.length;++o<a;)(e=n[o].area)&&(i>e&&(i=e),e>u&&(u=e));return r*=r,t*=t,r?Math.max(t*u*p/r,r/(t*i*p)):1/0}function u(n,t,e,r){var u,i=-1,o=n.length,a=e.x,l=e.y,s=t?c(n.area/t):0;if(t==e.dx){for((r||s>e.dy)&&(s=e.dy);++i<o;)u=n[i],u.x=a,u.y=l,u.dy=s,a+=u.dx=Math.min(e.x+e.dx-a,s?c(u.area/s):0);u.z=!0,u.dx+=e.x+e.dx-a,e.y+=s,e.dy-=s}else{for((r||s>e.dx)&&(s=e.dx);++i<o;)u=n[i],u.x=a,u.y=l,u.dx=s,l+=u.dy=Math.min(e.y+e.dy-l,s?c(u.area/s):0);u.z=!1,u.dy+=e.y+e.dy-l,e.x+=s,e.dx-=s}}function i(r){var u=o||a(r),i=u[0];return i.x=0,i.y=0,i.dx=l[0],i.dy=l[1],o&&a.revalue(i),n([i],i.dx*i.dy/i.value),(o?e:t)(i),h&&(o=u),u}var o,a=ta.layout.hierarchy(),c=Math.round,l=[1,1],s=null,f=Ri,h=!1,g="squarify",p=.5*(1+Math.sqrt(5));
-return i.size=function(n){return arguments.length?(l=n,i):l},i.padding=function(n){function t(t){var e=n.call(i,t,t.depth);return null==e?Ri(t):Di(t,"number"==typeof e?[e,e,e,e]:e)}function e(t){return Di(t,n)}if(!arguments.length)return s;var r;return f=null==(s=n)?Ri:"function"==(r=typeof n)?t:"number"===r?(n=[n,n,n,n],e):e,i},i.round=function(n){return arguments.length?(c=n?Math.round:Number,i):c!=Number},i.sticky=function(n){return arguments.length?(h=n,o=null,i):h},i.ratio=function(n){return arguments.length?(p=n,i):p},i.mode=function(n){return arguments.length?(g=n+"",i):g},Gu(i,a)},ta.random={normal:function(n,t){var e=arguments.length;return 2>e&&(t=1),1>e&&(n=0),function(){var e,r,u;do e=2*Math.random()-1,r=2*Math.random()-1,u=e*e+r*r;while(!u||u>1);return n+t*e*Math.sqrt(-2*Math.log(u)/u)}},logNormal:function(){var n=ta.random.normal.apply(ta,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=ta.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},ta.scale={};var ml={floor:y,ceil:y};ta.scale.linear=function(){return Ii([0,1],[0,1],mu,!1)};var yl={s:1,g:1,p:1,r:1,e:1};ta.scale.log=function(){return Ji(ta.scale.linear().domain([0,1]),10,!0,[1,10])};var Ml=ta.format(".0e"),xl={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};ta.scale.pow=function(){return Gi(ta.scale.linear(),1,[0,1])},ta.scale.sqrt=function(){return ta.scale.pow().exponent(.5)},ta.scale.ordinal=function(){return Qi([],{t:"range",a:[[]]})},ta.scale.category10=function(){return ta.scale.ordinal().range(bl)},ta.scale.category20=function(){return ta.scale.ordinal().range(_l)},ta.scale.category20b=function(){return ta.scale.ordinal().range(wl)},ta.scale.category20c=function(){return ta.scale.ordinal().range(Sl)};var bl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Mt),_l=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Mt),wl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Mt),Sl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Mt);ta.scale.quantile=function(){return no([],[])},ta.scale.quantize=function(){return to(0,1,[0,1])},ta.scale.threshold=function(){return eo([.5],[0,1])},ta.scale.identity=function(){return ro([0,1])},ta.svg={},ta.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),l=Math.max(0,+r.apply(this,arguments)),s=o.apply(this,arguments)-Ra,f=a.apply(this,arguments)-Ra,h=Math.abs(f-s),g=s>f?0:1;if(n>l&&(p=l,l=n,n=p),h>=Ta)return t(l,g)+(n?t(n,1-g):"")+"Z";var p,v,d,m,y,M,x,b,_,w,S,k,E=0,A=0,N=[];if((m=(+c.apply(this,arguments)||0)/2)&&(d=i===kl?Math.sqrt(n*n+l*l):+i.apply(this,arguments),g||(A*=-1),l&&(A=tt(d/l*Math.sin(m))),n&&(E=tt(d/n*Math.sin(m)))),l){y=l*Math.cos(s+A),M=l*Math.sin(s+A),x=l*Math.cos(f-A),b=l*Math.sin(f-A);var C=Math.abs(f-s-2*A)<=qa?0:1;if(A&&so(y,M,x,b)===g^C){var z=(s+f)/2;y=l*Math.cos(z),M=l*Math.sin(z),x=b=null}}else y=M=0;if(n){_=n*Math.cos(f-E),w=n*Math.sin(f-E),S=n*Math.cos(s+E),k=n*Math.sin(s+E);var q=Math.abs(s-f+2*E)<=qa?0:1;if(E&&so(_,w,S,k)===1-g^q){var L=(s+f)/2;_=n*Math.cos(L),w=n*Math.sin(L),S=k=null}}else _=w=0;if((p=Math.min(Math.abs(l-n)/2,+u.apply(this,arguments)))>.001){v=l>n^g?0:1;var T=null==S?[_,w]:null==x?[y,M]:Lr([y,M],[S,k],[x,b],[_,w]),R=y-T[0],D=M-T[1],P=x-T[0],U=b-T[1],j=1/Math.sin(Math.acos((R*P+D*U)/(Math.sqrt(R*R+D*D)*Math.sqrt(P*P+U*U)))/2),F=Math.sqrt(T[0]*T[0]+T[1]*T[1]);if(null!=x){var H=Math.min(p,(l-F)/(j+1)),O=fo(null==S?[_,w]:[S,k],[y,M],l,H,g),I=fo([x,b],[_,w],l,H,g);p===H?N.push("M",O[0],"A",H,",",H," 0 0,",v," ",O[1],"A",l,",",l," 0 ",1-g^so(O[1][0],O[1][1],I[1][0],I[1][1]),",",g," ",I[1],"A",H,",",H," 0 0,",v," ",I[0]):N.push("M",O[0],"A",H,",",H," 0 1,",v," ",I[0])}else N.push("M",y,",",M);if(null!=S){var Y=Math.min(p,(n-F)/(j-1)),Z=fo([y,M],[S,k],n,-Y,g),V=fo([_,w],null==x?[y,M]:[x,b],n,-Y,g);p===Y?N.push("L",V[0],"A",Y,",",Y," 0 0,",v," ",V[1],"A",n,",",n," 0 ",g^so(V[1][0],V[1][1],Z[1][0],Z[1][1]),",",1-g," ",Z[1],"A",Y,",",Y," 0 0,",v," ",Z[0]):N.push("L",V[0],"A",Y,",",Y," 0 0,",v," ",Z[0])}else N.push("L",_,",",w)}else N.push("M",y,",",M),null!=x&&N.push("A",l,",",l," 0 ",C,",",g," ",x,",",b),N.push("L",_,",",w),null!=S&&N.push("A",n,",",n," 0 ",q,",",1-g," ",S,",",k);return N.push("Z"),N.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var e=io,r=oo,u=uo,i=kl,o=ao,a=co,c=lo;return n.innerRadius=function(t){return arguments.length?(e=Et(t),n):e},n.outerRadius=function(t){return arguments.length?(r=Et(t),n):r},n.cornerRadius=function(t){return arguments.length?(u=Et(t),n):u},n.padRadius=function(t){return arguments.length?(i=t==kl?kl:Et(t),n):i},n.startAngle=function(t){return arguments.length?(o=Et(t),n):o},n.endAngle=function(t){return arguments.length?(a=Et(t),n):a},n.padAngle=function(t){return arguments.length?(c=Et(t),n):c},n.centroid=function(){var n=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Ra;return[Math.cos(t)*n,Math.sin(t)*n]},n};var kl="auto";ta.svg.line=function(){return ho(y)};var El=ta.map({linear:go,"linear-closed":po,step:vo,"step-before":mo,"step-after":yo,basis:So,"basis-open":ko,"basis-closed":Eo,bundle:Ao,cardinal:bo,"cardinal-open":Mo,"cardinal-closed":xo,monotone:To});El.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var Al=[0,2/3,1/3,0],Nl=[0,1/3,2/3,0],Cl=[0,1/6,2/3,1/6];ta.svg.line.radial=function(){var n=ho(Ro);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},mo.reverse=yo,yo.reverse=mo,ta.svg.area=function(){return Do(y)},ta.svg.area.radial=function(){var n=Do(Ro);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},ta.svg.chord=function(){function n(n,a){var c=t(this,i,n,a),l=t(this,o,n,a);return"M"+c.p0+r(c.r,c.p1,c.a1-c.a0)+(e(c,l)?u(c.r,c.p1,c.r,c.p0):u(c.r,c.p1,l.r,l.p0)+r(l.r,l.p1,l.a1-l.a0)+u(l.r,l.p1,c.r,c.p0))+"Z"}function t(n,t,e,r){var u=t.call(n,e,r),i=a.call(n,u,r),o=c.call(n,u,r)-Ra,s=l.call(n,u,r)-Ra;return{r:i,a0:o,a1:s,p0:[i*Math.cos(o),i*Math.sin(o)],p1:[i*Math.cos(s),i*Math.sin(s)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>qa)+",1 "+t}function u(n,t,e,r){return"Q 0,0 "+r}var i=mr,o=yr,a=Po,c=ao,l=co;return n.radius=function(t){return arguments.length?(a=Et(t),n):a},n.source=function(t){return arguments.length?(i=Et(t),n):i},n.target=function(t){return arguments.length?(o=Et(t),n):o},n.startAngle=function(t){return arguments.length?(c=Et(t),n):c},n.endAngle=function(t){return arguments.length?(l=Et(t),n):l},n},ta.svg.diagonal=function(){function n(n,u){var i=t.call(this,n,u),o=e.call(this,n,u),a=(i.y+o.y)/2,c=[i,{x:i.x,y:a},{x:o.x,y:a},o];return c=c.map(r),"M"+c[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var t=mr,e=yr,r=Uo;return n.source=function(e){return arguments.length?(t=Et(e),n):t},n.target=function(t){return arguments.length?(e=Et(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},ta.svg.diagonal.radial=function(){var n=ta.svg.diagonal(),t=Uo,e=n.projection;return n.projection=function(n){return arguments.length?e(jo(t=n)):t},n},ta.svg.symbol=function(){function n(n,r){return(zl.get(t.call(this,n,r))||Oo)(e.call(this,n,r))}var t=Ho,e=Fo;return n.type=function(e){return arguments.length?(t=Et(e),n):t},n.size=function(t){return arguments.length?(e=Et(t),n):e},n};var zl=ta.map({circle:Oo,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Ll)),e=t*Ll;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/ql),e=t*ql/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/ql),e=t*ql/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});ta.svg.symbolTypes=zl.keys();var ql=Math.sqrt(3),Ll=Math.tan(30*Da);_a.transition=function(n){for(var t,e,r=Tl||++Ul,u=Xo(n),i=[],o=Rl||{time:Date.now(),ease:Su,delay:0,duration:250},a=-1,c=this.length;++a<c;){i.push(t=[]);for(var l=this[a],s=-1,f=l.length;++s<f;)(e=l[s])&&$o(e,s,u,r,o),t.push(e)}return Yo(i,u,r)},_a.interrupt=function(n){return this.each(null==n?Dl:Io(Xo(n)))};var Tl,Rl,Dl=Io(Xo()),Pl=[],Ul=0;Pl.call=_a.call,Pl.empty=_a.empty,Pl.node=_a.node,Pl.size=_a.size,ta.transition=function(n,t){return n&&n.transition?Tl?n.transition(t):n:ta.selection().transition(n)},ta.transition.prototype=Pl,Pl.select=function(n){var t,e,r,u=this.id,i=this.namespace,o=[];n=N(n);for(var a=-1,c=this.length;++a<c;){o.push(t=[]);for(var l=this[a],s=-1,f=l.length;++s<f;)(r=l[s])&&(e=n.call(r,r.__data__,s,a))?("__data__"in r&&(e.__data__=r.__data__),$o(e,s,i,u,r[i][u]),t.push(e)):t.push(null)}return Yo(o,i,u)},Pl.selectAll=function(n){var t,e,r,u,i,o=this.id,a=this.namespace,c=[];n=C(n);for(var l=-1,s=this.length;++l<s;)for(var f=this[l],h=-1,g=f.length;++h<g;)if(r=f[h]){i=r[a][o],e=n.call(r,r.__data__,h,l),c.push(t=[]);for(var p=-1,v=e.length;++p<v;)(u=e[p])&&$o(u,p,a,o,i),t.push(u)}return Yo(c,a,o)},Pl.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=O(n));for(var i=0,o=this.length;o>i;i++){u.push(t=[]);for(var e=this[i],a=0,c=e.length;c>a;a++)(r=e[a])&&n.call(r,r.__data__,a,i)&&t.push(r)}return Yo(u,this.namespace,this.id)},Pl.tween=function(n,t){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(n):Y(this,null==t?function(t){t[r][e].tween.remove(n)}:function(u){u[r][e].tween.set(n,t)})},Pl.attr=function(n,t){function e(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function u(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(a);return e!==n&&(t=o(e,n),function(n){this.setAttribute(a,t(n))})})}function i(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(a.space,a.local);return e!==n&&(t=o(e,n),function(n){this.setAttributeNS(a.space,a.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var o="transform"==n?Hu:mu,a=ta.ns.qualify(n);return Zo(this,"attr."+n,t,a.local?i:u)},Pl.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(u));return r&&function(n){this.setAttribute(u,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(u.space,u.local));return r&&function(n){this.setAttributeNS(u.space,u.local,r(n))}}var u=ta.ns.qualify(n);return this.tween("attr."+n,u.local?r:e)},Pl.style=function(n,e,r){function u(){this.style.removeProperty(n)}function i(e){return null==e?u:(e+="",function(){var u,i=t(this).getComputedStyle(this,null).getPropertyValue(n);return i!==e&&(u=mu(i,e),function(t){this.style.setProperty(n,u(t),r)})})}var o=arguments.length;if(3>o){if("string"!=typeof n){2>o&&(e="");for(r in n)this.style(r,n[r],e);return this}r=""}return Zo(this,"style."+n,e,i)},Pl.styleTween=function(n,e,r){function u(u,i){var o=e.call(this,u,i,t(this).getComputedStyle(this,null).getPropertyValue(n));return o&&function(t){this.style.setProperty(n,o(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+n,u)},Pl.text=function(n){return Zo(this,"text",n,Vo)},Pl.remove=function(){var n=this.namespace;return this.each("end.transition",function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Pl.ease=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].ease:("function"!=typeof n&&(n=ta.ease.apply(ta,arguments)),Y(this,function(r){r[e][t].ease=n}))},Pl.delay=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].delay:Y(this,"function"==typeof n?function(r,u,i){r[e][t].delay=+n.call(r,r.__data__,u,i)}:(n=+n,function(r){r[e][t].delay=n}))},Pl.duration=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].duration:Y(this,"function"==typeof n?function(r,u,i){r[e][t].duration=Math.max(1,n.call(r,r.__data__,u,i))}:(n=Math.max(1,n),function(r){r[e][t].duration=n}))},Pl.each=function(n,t){var e=this.id,r=this.namespace;if(arguments.length<2){var u=Rl,i=Tl;try{Tl=e,Y(this,function(t,u,i){Rl=t[r][e],n.call(t,t.__data__,u,i)})}finally{Rl=u,Tl=i}}else Y(this,function(u){var i=u[r][e];(i.event||(i.event=ta.dispatch("start","end","interrupt"))).on(n,t)});return this},Pl.transition=function(){for(var n,t,e,r,u=this.id,i=++Ul,o=this.namespace,a=[],c=0,l=this.length;l>c;c++){a.push(n=[]);for(var t=this[c],s=0,f=t.length;f>s;s++)(e=t[s])&&(r=e[o][u],$o(e,s,o,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),n.push(e)}return Yo(a,o,i)},ta.svg.axis=function(){function n(n){n.each(function(){var n,l=ta.select(this),s=this.__chart__||e,f=this.__chart__=e.copy(),h=null==c?f.ticks?f.ticks.apply(f,a):f.domain():c,g=null==t?f.tickFormat?f.tickFormat.apply(f,a):y:t,p=l.selectAll(".tick").data(h,f),v=p.enter().insert("g",".domain").attr("class","tick").style("opacity",Ca),d=ta.transition(p.exit()).style("opacity",Ca).remove(),m=ta.transition(p.order()).style("opacity",1),M=Math.max(u,0)+o,x=Ui(f),b=l.selectAll(".domain").data([0]),_=(b.enter().append("path").attr("class","domain"),ta.transition(b));v.append("line"),v.append("text");var w,S,k,E,A=v.select("line"),N=m.select("line"),C=p.select("text").text(g),z=v.select("text"),q=m.select("text"),L="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(n=Bo,w="x",k="y",S="x2",E="y2",C.attr("dy",0>L?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+L*i+"V0H"+x[1]+"V"+L*i)):(n=Wo,w="y",k="x",S="y2",E="x2",C.attr("dy",".32em").style("text-anchor",0>L?"end":"start"),_.attr("d","M"+L*i+","+x[0]+"H0V"+x[1]+"H"+L*i)),A.attr(E,L*u),z.attr(k,L*M),N.attr(S,0).attr(E,L*u),q.attr(w,0).attr(k,L*M),f.rangeBand){var T=f,R=T.rangeBand()/2;s=f=function(n){return T(n)+R}}else s.rangeBand?s=f:d.call(n,f,s);v.call(n,s,f),m.call(n,f,f)})}var t,e=ta.scale.linear(),r=jl,u=6,i=6,o=3,a=[10],c=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in Fl?t+"":jl,n):r},n.ticks=function(){return arguments.length?(a=arguments,n):a},n.tickValues=function(t){return arguments.length?(c=t,n):c},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(u=+t,i=+arguments[e-1],n):u},n.innerTickSize=function(t){return arguments.length?(u=+t,n):u},n.outerTickSize=function(t){return arguments.length?(i=+t,n):i},n.tickPadding=function(t){return arguments.length?(o=+t,n):o},n.tickSubdivide=function(){return arguments.length&&n},n};var jl="bottom",Fl={top:1,right:1,bottom:1,left:1};ta.svg.brush=function(){function n(t){t.each(function(){var t=ta.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),o=t.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=t.selectAll(".resize").data(v,y);a.exit().remove(),a.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return Hl[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",n.empty()?"none":null);var c,f=ta.transition(t),h=ta.transition(o);l&&(c=Ui(l),h.attr("x",c[0]).attr("width",c[1]-c[0]),r(f)),s&&(c=Ui(s),h.attr("y",c[0]).attr("height",c[1]-c[0]),u(f)),e(f)})}function e(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+f[+/e$/.test(n)]+","+h[+/^s/.test(n)]+")"})}function r(n){n.select(".extent").attr("x",f[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function u(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function i(){function i(){32==ta.event.keyCode&&(C||(M=null,q[0]-=f[1],q[1]-=h[1],C=2),S())}function v(){32==ta.event.keyCode&&2==C&&(q[0]+=f[1],q[1]+=h[1],C=0,S())}function d(){var n=ta.mouse(b),t=!1;x&&(n[0]+=x[0],n[1]+=x[1]),C||(ta.event.altKey?(M||(M=[(f[0]+f[1])/2,(h[0]+h[1])/2]),q[0]=f[+(n[0]<M[0])],q[1]=h[+(n[1]<M[1])]):M=null),A&&m(n,l,0)&&(r(k),t=!0),N&&m(n,s,1)&&(u(k),t=!0),t&&(e(k),w({type:"brush",mode:C?"move":"resize"}))}function m(n,t,e){var r,u,i=Ui(t),c=i[0],l=i[1],s=q[e],v=e?h:f,d=v[1]-v[0];return C&&(c-=s,l-=d+s),r=(e?p:g)?Math.max(c,Math.min(l,n[e])):n[e],C?u=(r+=s)+d:(M&&(s=Math.max(c,Math.min(l,2*M[e]-r))),r>s?(u=r,r=s):u=s),v[0]!=r||v[1]!=u?(e?a=null:o=null,v[0]=r,v[1]=u,!0):void 0}function y(){d(),k.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),ta.select("body").style("cursor",null),L.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),z(),w({type:"brushend"})}var M,x,b=this,_=ta.select(ta.event.target),w=c.of(b,arguments),k=ta.select(b),E=_.datum(),A=!/^(n|s)$/.test(E)&&l,N=!/^(e|w)$/.test(E)&&s,C=_.classed("extent"),z=W(b),q=ta.mouse(b),L=ta.select(t(b)).on("keydown.brush",i).on("keyup.brush",v);if(ta.event.changedTouches?L.on("touchmove.brush",d).on("touchend.brush",y):L.on("mousemove.brush",d).on("mouseup.brush",y),k.interrupt().selectAll("*").interrupt(),C)q[0]=f[0]-q[0],q[1]=h[0]-q[1];else if(E){var T=+/w$/.test(E),R=+/^n/.test(E);x=[f[1-T]-q[0],h[1-R]-q[1]],q[0]=f[T],q[1]=h[R]}else ta.event.altKey&&(M=q.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),ta.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),d()}var o,a,c=E(n,"brushstart","brush","brushend"),l=null,s=null,f=[0,0],h=[0,0],g=!0,p=!0,v=Ol[0];return n.event=function(n){n.each(function(){var n=c.of(this,arguments),t={x:f,y:h,i:o,j:a},e=this.__chart__||t;this.__chart__=t,Tl?ta.select(this).transition().each("start.brush",function(){o=e.i,a=e.j,f=e.x,h=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var e=yu(f,t.x),r=yu(h,t.y);return o=a=null,function(u){f=t.x=e(u),h=t.y=r(u),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=t.i,a=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(l=t,v=Ol[!l<<1|!s],n):l},n.y=function(t){return arguments.length?(s=t,v=Ol[!l<<1|!s],n):s},n.clamp=function(t){return arguments.length?(l&&s?(g=!!t[0],p=!!t[1]):l?g=!!t:s&&(p=!!t),n):l&&s?[g,p]:l?g:s?p:null},n.extent=function(t){var e,r,u,i,c;return arguments.length?(l&&(e=t[0],r=t[1],s&&(e=e[0],r=r[0]),o=[e,r],l.invert&&(e=l(e),r=l(r)),e>r&&(c=e,e=r,r=c),(e!=f[0]||r!=f[1])&&(f=[e,r])),s&&(u=t[0],i=t[1],l&&(u=u[1],i=i[1]),a=[u,i],s.invert&&(u=s(u),i=s(i)),u>i&&(c=u,u=i,i=c),(u!=h[0]||i!=h[1])&&(h=[u,i])),n):(l&&(o?(e=o[0],r=o[1]):(e=f[0],r=f[1],l.invert&&(e=l.invert(e),r=l.invert(r)),e>r&&(c=e,e=r,r=c))),s&&(a?(u=a[0],i=a[1]):(u=h[0],i=h[1],s.invert&&(u=s.invert(u),i=s.invert(i)),u>i&&(c=u,u=i,i=c))),l&&s?[[e,u],[r,i]]:l?[e,r]:s&&[u,i])},n.clear=function(){return n.empty()||(f=[0,0],h=[0,0],o=a=null),n},n.empty=function(){return!!l&&f[0]==f[1]||!!s&&h[0]==h[1]},ta.rebind(n,c,"on")};var Hl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ol=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Il=ac.format=gc.timeFormat,Yl=Il.utc,Zl=Yl("%Y-%m-%dT%H:%M:%S.%LZ");Il.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Jo:Zl,Jo.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},Jo.toString=Zl.toString,ac.second=Ft(function(n){return new cc(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),ac.seconds=ac.second.range,ac.seconds.utc=ac.second.utc.range,ac.minute=Ft(function(n){return new cc(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),ac.minutes=ac.minute.range,ac.minutes.utc=ac.minute.utc.range,ac.hour=Ft(function(n){var t=n.getTimezoneOffset()/60;return new cc(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),ac.hours=ac.hour.range,ac.hours.utc=ac.hour.utc.range,ac.month=Ft(function(n){return n=ac.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),ac.months=ac.month.range,ac.months.utc=ac.month.utc.range;var Vl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Xl=[[ac.second,1],[ac.second,5],[ac.second,15],[ac.second,30],[ac.minute,1],[ac.minute,5],[ac.minute,15],[ac.minute,30],[ac.hour,1],[ac.hour,3],[ac.hour,6],[ac.hour,12],[ac.day,1],[ac.day,2],[ac.week,1],[ac.month,1],[ac.month,3],[ac.year,1]],$l=Il.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",Ne]]),Bl={range:function(n,t,e){return ta.range(Math.ceil(n/e)*e,+t,e).map(Ko)},floor:y,ceil:y};Xl.year=ac.year,ac.scale=function(){return Go(ta.scale.linear(),Xl,$l)};var Wl=Xl.map(function(n){return[n[0].utc,n[1]]}),Jl=Yl.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",Ne]]);Wl.year=ac.year.utc,ac.scale.utc=function(){return Go(ta.scale.linear(),Wl,Jl)},ta.text=At(function(n){return n.responseText}),ta.json=function(n,t){return Nt(n,"application/json",Qo,t)},ta.html=function(n,t){return Nt(n,"text/html",na,t)},ta.xml=At(function(n){return n.responseXML}),"function"==typeof define&&define.amd?define(ta):"object"==typeof module&&module.exports&&(module.exports=ta),this.d3=ta}(); \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/holder.min.js b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/holder.min.js
deleted file mode 100644
index 6bfc844b..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/holder.min.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/*!
-
-Holder - client side image placeholders
-Version 2.7.1+6hydf
-© 2015 Ivan Malopinsky - http://imsky.co
-
-Site: http://holderjs.com
-Issues: https://github.com/imsky/holder/issues
-License: http://opensource.org/licenses/MIT
-
-*/
-!function(a){if(a.document){var b=a.document;b.querySelectorAll||(b.querySelectorAll=function(c){var d,e=b.createElement("style"),f=[];for(b.documentElement.firstChild.appendChild(e),b._qsa=[],e.styleSheet.cssText=c+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",a.scrollBy(0,0),e.parentNode.removeChild(e);b._qsa.length;)d=b._qsa.shift(),d.style.removeAttribute("x-qsa"),f.push(d);return b._qsa=null,f}),b.querySelector||(b.querySelector=function(a){var c=b.querySelectorAll(a);return c.length?c[0]:null}),b.getElementsByClassName||(b.getElementsByClassName=function(a){return a=String(a).replace(/^|\s+/g,"."),b.querySelectorAll(a)}),Object.keys||(Object.keys=function(a){if(a!==Object(a))throw TypeError("Object.keys called on non-object");var b,c=[];for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&c.push(b);return c}),function(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.atob=a.atob||function(a){a=String(a);var c,d=0,e=[],f=0,g=0;if(a=a.replace(/\s/g,""),a.length%4===0&&(a=a.replace(/=+$/,"")),a.length%4===1)throw Error("InvalidCharacterError");if(/[^+/0-9A-Za-z]/.test(a))throw Error("InvalidCharacterError");for(;d<a.length;)c=b.indexOf(a.charAt(d)),f=f<<6|c,g+=6,24===g&&(e.push(String.fromCharCode(f>>16&255)),e.push(String.fromCharCode(f>>8&255)),e.push(String.fromCharCode(255&f)),g=0,f=0),d+=1;return 12===g?(f>>=4,e.push(String.fromCharCode(255&f))):18===g&&(f>>=2,e.push(String.fromCharCode(f>>8&255)),e.push(String.fromCharCode(255&f))),e.join("")},a.btoa=a.btoa||function(a){a=String(a);var c,d,e,f,g,h,i,j=0,k=[];if(/[^\x00-\xFF]/.test(a))throw Error("InvalidCharacterError");for(;j<a.length;)c=a.charCodeAt(j++),d=a.charCodeAt(j++),e=a.charCodeAt(j++),f=c>>2,g=(3&c)<<4|d>>4,h=(15&d)<<2|e>>6,i=63&e,j===a.length+2?(h=64,i=64):j===a.length+1&&(i=64),k.push(b.charAt(f),b.charAt(g),b.charAt(h),b.charAt(i));return k.join("")}}(a),Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(a){var b=this.__proto__||this.constructor.prototype;return a in this&&(!(a in b)||b[a]!==this[a])}),function(){if("performance"in a==!1&&(a.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in a.performance==!1){var b=Date.now();performance.timing&&performance.timing.navigationStart&&(b=performance.timing.navigationStart),a.performance.now=function(){return Date.now()-b}}}(),a.requestAnimationFrame||(a.webkitRequestAnimationFrame?!function(a){a.requestAnimationFrame=function(b){return webkitRequestAnimationFrame(function(){b(a.performance.now())})},a.cancelAnimationFrame=webkitCancelAnimationFrame}(a):a.mozRequestAnimationFrame?!function(a){a.requestAnimationFrame=function(b){return mozRequestAnimationFrame(function(){b(a.performance.now())})},a.cancelAnimationFrame=mozCancelAnimationFrame}(a):!function(a){a.requestAnimationFrame=function(b){return a.setTimeout(b,1e3/60)},a.cancelAnimationFrame=a.clearTimeout}(a))}}(this),function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):"object"==typeof exports?exports.Holder=b():a.Holder=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){(function(b){function d(a,b,c,d){var f=e(c.substr(c.lastIndexOf(a.domain)),a);f&&h({mode:null,el:d,flags:f,engineSettings:b})}function e(a,b){var c={theme:B(J.settings.themes.gray,null),stylesheets:b.stylesheets,instanceOptions:b};return a.match(/([\d]+p?)x([\d]+p?)(?:\?|$)/)?f(a,c):g(a,c)}function f(a,b){var c=a.split("?"),d=c[0].split("/");b.holderURL=a;var e=d[1],f=e.match(/([\d]+p?)x([\d]+p?)/);if(!f)return!1;if(b.fluid=-1!==e.indexOf("p"),b.dimensions={width:f[1].replace("p","%"),height:f[2].replace("p","%")},2===c.length){var g=A.parse(c[1]);if(g.bg&&(b.theme.background=(-1===g.bg.indexOf("#")?"#":"")+g.bg),g.fg&&(b.theme.foreground=(-1===g.fg.indexOf("#")?"#":"")+g.fg),g.theme&&b.instanceOptions.themes.hasOwnProperty(g.theme)&&(b.theme=B(b.instanceOptions.themes[g.theme],null)),g.text&&(b.text=g.text),g.textmode&&(b.textmode=g.textmode),g.size&&(b.size=g.size),g.font&&(b.font=g.font),g.align&&(b.align=g.align),b.nowrap=z.truthy(g.nowrap),b.auto=z.truthy(g.auto),z.truthy(g.random)){J.vars.cache.themeKeys=J.vars.cache.themeKeys||Object.keys(b.instanceOptions.themes);var h=J.vars.cache.themeKeys[0|Math.random()*J.vars.cache.themeKeys.length];b.theme=B(b.instanceOptions.themes[h],null)}}return b}function g(a,b){var c=!1,d=String.fromCharCode(11),e=a.replace(/([^\\])\//g,"$1"+d).split(d),f=/%[0-9a-f]{2}/gi,g=b.instanceOptions;b.holderURL=[];for(var h=e.length,i=0;h>i;i++){var j=e[i];if(j.match(f))try{j=decodeURIComponent(j)}catch(k){j=e[i]}var l=!1;if(J.flags.dimensions.match(j))c=!0,b.dimensions=J.flags.dimensions.output(j),l=!0;else if(J.flags.fluid.match(j))c=!0,b.dimensions=J.flags.fluid.output(j),b.fluid=!0,l=!0;else if(J.flags.textmode.match(j))b.textmode=J.flags.textmode.output(j),l=!0;else if(J.flags.colors.match(j)){var m=J.flags.colors.output(j);b.theme=B(b.theme,m),l=!0}else if(g.themes[j])g.themes.hasOwnProperty(j)&&(b.theme=B(g.themes[j],null)),l=!0;else if(J.flags.font.match(j))b.font=J.flags.font.output(j),l=!0;else if(J.flags.auto.match(j))b.auto=!0,l=!0;else if(J.flags.text.match(j))b.text=J.flags.text.output(j),l=!0;else if(J.flags.size.match(j))b.size=J.flags.size.output(j),l=!0;else if(J.flags.random.match(j)){null==J.vars.cache.themeKeys&&(J.vars.cache.themeKeys=Object.keys(g.themes));var n=J.vars.cache.themeKeys[0|Math.random()*J.vars.cache.themeKeys.length];b.theme=B(g.themes[n],null),l=!0}l&&b.holderURL.push(j)}return b.holderURL.unshift(g.domain),b.holderURL=b.holderURL.join("/"),c?b:!1}function h(a){var b=a.mode,c=a.el,d=a.flags,e=a.engineSettings,f=d.dimensions,g=d.theme,h=f.width+"x"+f.height;if(b=null==b?d.fluid?"fluid":"image":b,null!=d.text&&(g.text=d.text,"object"===c.nodeName.toLowerCase())){for(var j=g.text.split("\\n"),k=0;k<j.length;k++)j[k]=z.encodeHtmlEntity(j[k]);g.text=j.join("\\n")}var n=d.holderURL,o=B(e,null);if(d.font&&(g.font=d.font,!o.noFontFallback&&"img"===c.nodeName.toLowerCase()&&J.setup.supportsCanvas&&"svg"===o.renderer&&(o=B(o,{renderer:"canvas"}))),d.font&&"canvas"==o.renderer&&(o.reRender=!0),"background"==b)null==c.getAttribute("data-background-src")&&r(c,{"data-background-src":n});else{var p={};p[J.vars.dataAttr]=n,r(c,p)}d.theme=g,c.holderData={flags:d,engineSettings:o},("image"==b||"fluid"==b)&&r(c,{alt:g.text?g.text+" ["+h+"]":h});var q={mode:b,el:c,holderSettings:{dimensions:f,theme:g,flags:d},engineSettings:o};"image"==b?("html"!=o.renderer&&d.auto||(c.style.width=f.width+"px",c.style.height=f.height+"px"),"html"==o.renderer?c.style.backgroundColor=g.background:(i(q),"exact"==d.textmode&&(c.holderData.resizeUpdate=!0,J.vars.resizableImages.push(c),l(c)))):"background"==b&&"html"!=o.renderer?i(q):"fluid"==b&&(c.holderData.resizeUpdate=!0,"%"==f.height.slice(-1)?c.style.height=f.height:null!=d.auto&&d.auto||(c.style.height=f.height+"px"),"%"==f.width.slice(-1)?c.style.width=f.width:null!=d.auto&&d.auto||(c.style.width=f.width+"px"),("inline"==c.style.display||""===c.style.display||"none"==c.style.display)&&(c.style.display="block"),m(c),"html"==o.renderer?c.style.backgroundColor=g.background:(J.vars.resizableImages.push(c),l(c)))}function i(a){function c(){var b=null;switch(h.renderer){case"canvas":b=L(k,a);break;case"svg":b=M(k,a);break;default:throw"Holder: invalid renderer: "+h.renderer}return b}var d=null,e=a.mode,f=a.holderSettings,g=a.el,h=a.engineSettings;switch(h.renderer){case"svg":if(!J.setup.supportsSVG)return;break;case"canvas":if(!J.setup.supportsCanvas)return;break;default:return}var i={width:f.dimensions.width,height:f.dimensions.height,theme:f.theme,flags:f.flags},k=j(i);if(d=c(),null==d)throw"Holder: couldn't render placeholder";"background"==e?(g.style.backgroundImage="url("+d+")",g.style.backgroundSize=i.width+"px "+i.height+"px"):("img"===g.nodeName.toLowerCase()?r(g,{src:d}):"object"===g.nodeName.toLowerCase()&&(r(g,{data:d}),r(g,{type:"image/svg+xml"})),h.reRender&&b.setTimeout(function(){var a=c();if(null==a)throw"Holder: couldn't render placeholder";"img"===g.nodeName.toLowerCase()?r(g,{src:a}):"object"===g.nodeName.toLowerCase()&&(r(g,{data:a}),r(g,{type:"image/svg+xml"}))},100)),r(g,{"data-holder-rendered":!0})}function j(a){function b(a,b,c,d){b.width=c,b.height=d,a.width=Math.max(a.width,b.width),a.height+=b.height}var c=J.defaults.size;switch(parseFloat(a.theme.size)?c=a.theme.size:parseFloat(a.flags.size)&&(c=a.flags.size),a.font={family:a.theme.font?a.theme.font:"Arial, Helvetica, Open Sans, sans-serif",size:k(a.width,a.height,c),units:a.theme.units?a.theme.units:J.defaults.units,weight:a.theme.fontweight?a.theme.fontweight:"bold"},a.text=a.theme.text||Math.floor(a.width)+"x"+Math.floor(a.height),a.noWrap=a.theme.nowrap||a.flags.nowrap,a.align=a.theme.align||a.flags.align||"center",a.flags.textmode){case"literal":a.text=a.flags.dimensions.width+"x"+a.flags.dimensions.height;break;case"exact":if(!a.flags.exactDimensions)break;a.text=Math.floor(a.flags.exactDimensions.width)+"x"+Math.floor(a.flags.exactDimensions.height)}var d=new y({width:a.width,height:a.height}),e=d.Shape,f=new e.Rect("holderBg",{fill:a.theme.background});f.resize(a.width,a.height),d.root.add(f);var g=new e.Group("holderTextGroup",{text:a.text,align:a.align,font:a.font,fill:a.theme.foreground});g.moveTo(null,null,1),d.root.add(g);var h=g.textPositionData=K(d);if(!h)throw"Holder: staging fallback not supported yet.";g.properties.leading=h.boundingBox.height;var i=null,j=null,l=a.width*J.setup.lineWrapRatio,m=l;if(h.lineCount>1){var n,o=0,p=0,q=0;j=new e.Group("line"+q),("left"===a.align||"right"===a.align)&&(m=a.width*(1-2*(1-J.setup.lineWrapRatio)));for(var r=0;r<h.words.length;r++){var s=h.words[r];i=new e.Text(s.text);var t="\\n"==s.text;!a.noWrap&&(o+s.width>=m||t===!0)&&(b(g,j,o,g.properties.leading),g.add(j),o=0,p+=g.properties.leading,q+=1,j=new e.Group("line"+q),j.y=p),t!==!0&&(i.moveTo(o,0),o+=h.spaceWidth+s.width,j.add(i))}if(b(g,j,o,g.properties.leading),g.add(j),"left"===a.align)g.moveTo(a.width-l,null,null);else if("right"===a.align){for(n in g.children)j=g.children[n],j.moveTo(a.width-j.width,null,null);g.moveTo(0-(a.width-l),null,null)}else{for(n in g.children)j=g.children[n],j.moveTo((g.width-j.width)/2,null,null);g.moveTo((a.width-g.width)/2,null,null)}g.moveTo(null,(a.height-g.height)/2,null),(a.height-g.height)/2<0&&g.moveTo(null,0,null)}else i=new e.Text(a.text),j=new e.Group("line0"),j.add(i),g.add(j),"left"===a.align?g.moveTo(a.width-l,null,null):"right"===a.align?g.moveTo(0-(a.width-l),null,null):g.moveTo((a.width-h.boundingBox.width)/2,null,null),g.moveTo(null,(a.height-h.boundingBox.height)/2,null);return d}function k(a,b,c){var d=parseInt(a,10),e=parseInt(b,10),f=Math.max(d,e),g=Math.min(d,e),h=.8*Math.min(g,f*J.defaults.scale);return Math.round(Math.max(c,h))}function l(a){var b;b=null==a||null==a.nodeType?J.vars.resizableImages:[a];for(var c=0,d=b.length;d>c;c++){var e=b[c];if(e.holderData){var f=e.holderData.flags,g=D(e);if(g){if(!e.holderData.resizeUpdate)continue;if(f.fluid&&f.auto){var h=e.holderData.fluidConfig;switch(h.mode){case"width":g.height=g.width/h.ratio;break;case"height":g.width=g.height*h.ratio}}var j={mode:"image",holderSettings:{dimensions:g,theme:f.theme,flags:f},el:e,engineSettings:e.holderData.engineSettings};"exact"==f.textmode&&(f.exactDimensions=g,j.holderSettings.dimensions=f.dimensions),i(j)}else p(e)}}}function m(a){if(a.holderData){var b=D(a);if(b){var c=a.holderData.flags,d={fluidHeight:"%"==c.dimensions.height.slice(-1),fluidWidth:"%"==c.dimensions.width.slice(-1),mode:null,initialDimensions:b};d.fluidWidth&&!d.fluidHeight?(d.mode="width",d.ratio=d.initialDimensions.width/parseFloat(c.dimensions.height)):!d.fluidWidth&&d.fluidHeight&&(d.mode="height",d.ratio=parseFloat(c.dimensions.width)/d.initialDimensions.height),a.holderData.fluidConfig=d}else p(a)}}function n(){for(var a,c=[],d=Object.keys(J.vars.invisibleImages),e=0,f=d.length;f>e;e++)a=J.vars.invisibleImages[d[e]],D(a)&&"img"==a.nodeName.toLowerCase()&&(c.push(a),delete J.vars.invisibleImages[d[e]]);c.length&&I.run({images:c}),b.requestAnimationFrame(n)}function o(){J.vars.visibilityCheckStarted||(b.requestAnimationFrame(n),J.vars.visibilityCheckStarted=!0)}function p(a){a.holderData.invisibleId||(J.vars.invisibleId+=1,J.vars.invisibleImages["i"+J.vars.invisibleId]=a,a.holderData.invisibleId=J.vars.invisibleId)}function q(a,b){return null==b?document.createElement(a):document.createElementNS(b,a)}function r(a,b){for(var c in b)a.setAttribute(c,b[c])}function s(a,b,c){var d,e;null==a?(a=q("svg",E),d=q("defs",E),e=q("style",E),r(e,{type:"text/css"}),d.appendChild(e),a.appendChild(d)):e=a.querySelector("style"),a.webkitMatchesSelector&&a.setAttribute("xmlns",E);for(var f=0;f<a.childNodes.length;f++)a.childNodes[f].nodeType===F&&a.removeChild(a.childNodes[f]);for(;e.childNodes.length;)e.removeChild(e.childNodes[0]);return r(a,{width:b,height:c,viewBox:"0 0 "+b+" "+c,preserveAspectRatio:"none"}),a}function t(a,c){if(b.XMLSerializer){var d=new XMLSerializer,e="",f=c.stylesheets;if(c.svgXMLStylesheet){for(var g=u(),h=f.length-1;h>=0;h--){var i=g.createProcessingInstruction("xml-stylesheet",'href="'+f[h]+'" rel="stylesheet"');g.insertBefore(i,g.firstChild)}g.removeChild(g.documentElement),e=d.serializeToString(g)}var j=d.serializeToString(a);return j=j.replace(/\&amp;(\#[0-9]{2,}\;)/g,"&$1"),e+j}}function u(){return b.DOMParser?(new DOMParser).parseFromString("<xml />","application/xml"):void 0}function v(a){J.vars.debounceTimer||a.call(this),J.vars.debounceTimer&&b.clearTimeout(J.vars.debounceTimer),J.vars.debounceTimer=b.setTimeout(function(){J.vars.debounceTimer=null,a.call(this)},J.setup.debounce)}function w(){v(function(){l(null)})}var x=c(1),y=c(2),z=c(3),A=c(4),B=z.extend,C=z.getNodeArray,D=z.dimensionCheck,E="http://www.w3.org/2000/svg",F=8,G="2.7.1",H="\nCreated with Holder.js "+G+".\nLearn more at http://holderjs.com\n(c) 2012-2015 Ivan Malopinsky - http://imsky.co\n",I={version:G,addTheme:function(a,b){return null!=a&&null!=b&&(J.settings.themes[a]=b),delete J.vars.cache.themeKeys,this},addImage:function(a,b){var c=document.querySelectorAll(b);if(c.length)for(var d=0,e=c.length;e>d;d++){var f=q("img"),g={};g[J.vars.dataAttr]=a,r(f,g),c[d].appendChild(f)}return this},setResizeUpdate:function(a,b){a.holderData&&(a.holderData.resizeUpdate=!!b,a.holderData.resizeUpdate&&l(a))},run:function(a){a=a||{};var c={},f=B(J.settings,a);J.vars.preempted=!0,J.vars.dataAttr=f.dataAttr||J.vars.dataAttr,c.renderer=f.renderer?f.renderer:J.setup.renderer,-1===J.setup.renderers.join(",").indexOf(c.renderer)&&(c.renderer=J.setup.supportsSVG?"svg":J.setup.supportsCanvas?"canvas":"html");var g=C(f.images),i=C(f.bgnodes),j=C(f.stylenodes),k=C(f.objects);c.stylesheets=[],c.svgXMLStylesheet=!0,c.noFontFallback=f.noFontFallback?f.noFontFallback:!1;for(var l=0;l<j.length;l++){var m=j[l];if(m.attributes.rel&&m.attributes.href&&"stylesheet"==m.attributes.rel.value){var n=m.attributes.href.value,o=q("a");o.href=n;var p=o.protocol+"//"+o.host+o.pathname+o.search;c.stylesheets.push(p)}}for(l=0;l<i.length;l++)if(b.getComputedStyle){var r=b.getComputedStyle(i[l],null).getPropertyValue("background-image"),s=i[l].getAttribute("data-background-src"),t=null;t=null==s?r:s;var u=null,v="?"+f.domain+"/";if(0===t.indexOf(v))u=t.slice(1);else if(-1!=t.indexOf(v)){var w=t.substr(t.indexOf(v)).slice(1),x=w.match(/([^\"]*)"?\)/);null!=x&&(u=x[1])}if(null!=u){var y=e(u,f);y&&h({mode:"background",el:i[l],flags:y,engineSettings:c})}}for(l=0;l<k.length;l++){var A=k[l],D={};try{D.data=A.getAttribute("data"),D.dataSrc=A.getAttribute(J.vars.dataAttr)}catch(E){}var F=null!=D.data&&0===D.data.indexOf(f.domain),G=null!=D.dataSrc&&0===D.dataSrc.indexOf(f.domain);F?d(f,c,D.data,A):G&&d(f,c,D.dataSrc,A)}for(l=0;l<g.length;l++){var H=g[l],I={};try{I.src=H.getAttribute("src"),I.dataSrc=H.getAttribute(J.vars.dataAttr),I.rendered=H.getAttribute("data-holder-rendered")}catch(E){}var K=null!=I.src,L=null!=I.dataSrc&&0===I.dataSrc.indexOf(f.domain),M=null!=I.rendered&&"true"==I.rendered;K?0===I.src.indexOf(f.domain)?d(f,c,I.src,H):L&&(M?d(f,c,I.dataSrc,H):!function(a,b,c,e,f){z.imageExists(a,function(a){a||d(b,c,e,f)})}(I.src,f,c,I.dataSrc,H)):L&&d(f,c,I.dataSrc,H)}return this}},J={settings:{domain:"holder.js",images:"img",objects:"object",bgnodes:"body .holderjs",stylenodes:"head link.holderjs",stylesheets:[],themes:{gray:{background:"#EEEEEE",foreground:"#AAAAAA"},social:{background:"#3a5a97",foreground:"#FFFFFF"},industrial:{background:"#434A52",foreground:"#C2F200"},sky:{background:"#0D8FDB",foreground:"#FFFFFF"},vine:{background:"#39DBAC",foreground:"#1E292C"},lava:{background:"#F8591A",foreground:"#1C2846"}}},defaults:{size:10,units:"pt",scale:1/16},flags:{dimensions:{regex:/^(\d+)x(\d+)$/,output:function(a){var b=this.regex.exec(a);return{width:+b[1],height:+b[2]}}},fluid:{regex:/^([0-9]+%?)x([0-9]+%?)$/,output:function(a){var b=this.regex.exec(a);return{width:b[1],height:b[2]}}},colors:{regex:/(?:#|\^)([0-9a-f]{3,})\:(?:#|\^)([0-9a-f]{3,})/i,output:function(a){var b=this.regex.exec(a);return{foreground:"#"+b[2],background:"#"+b[1]}}},text:{regex:/text\:(.*)/,output:function(a){return this.regex.exec(a)[1].replace("\\/","/")}},font:{regex:/font\:(.*)/,output:function(a){return this.regex.exec(a)[1]}},auto:{regex:/^auto$/},textmode:{regex:/textmode\:(.*)/,output:function(a){return this.regex.exec(a)[1]}},random:{regex:/^random$/},size:{regex:/size\:(\d+)/,output:function(a){return this.regex.exec(a)[1]}}}},K=function(){var a=null,b=null,c=null;return function(d){var e=d.root;if(J.setup.supportsSVG){var f=!1,g=function(a){return document.createTextNode(a)};(null==a||a.parentNode!==document.body)&&(f=!0),a=s(a,e.properties.width,e.properties.height),a.style.display="block",f&&(b=q("text",E),c=g(null),r(b,{x:0}),b.appendChild(c),a.appendChild(b),document.body.appendChild(a),a.style.visibility="hidden",a.style.position="absolute",a.style.top="-100%",a.style.left="-100%");var h=e.children.holderTextGroup,i=h.properties;r(b,{y:i.font.size,style:z.cssProps({"font-weight":i.font.weight,"font-size":i.font.size+i.font.units,"font-family":i.font.family})}),c.nodeValue=i.text;var j=b.getBBox(),k=Math.ceil(j.width/(e.properties.width*J.setup.lineWrapRatio)),l=i.text.split(" "),m=i.text.match(/\\n/g);k+=null==m?0:m.length,c.nodeValue=i.text.replace(/[ ]+/g,"");var n=b.getComputedTextLength(),o=j.width-n,p=Math.round(o/Math.max(1,l.length-1)),t=[];if(k>1){c.nodeValue="";for(var u=0;u<l.length;u++)if(0!==l[u].length){c.nodeValue=z.decodeHtmlEntity(l[u]);var v=b.getBBox();t.push({text:l[u],width:v.width})}}return a.style.display="none",{spaceWidth:p,lineCount:k,boundingBox:j,words:t}}return!1}}(),L=function(){var a=q("canvas"),b=null;return function(c){null==b&&(b=a.getContext("2d"));var d=c.root;a.width=J.dpr(d.properties.width),a.height=J.dpr(d.properties.height),b.textBaseline="middle",b.fillStyle=d.children.holderBg.properties.fill,b.fillRect(0,0,J.dpr(d.children.holderBg.width),J.dpr(d.children.holderBg.height));{var e=d.children.holderTextGroup;e.properties}b.font=e.properties.font.weight+" "+J.dpr(e.properties.font.size)+e.properties.font.units+" "+e.properties.font.family+", monospace",b.fillStyle=e.properties.fill;for(var f in e.children){var g=e.children[f];for(var h in g.children){var i=g.children[h],j=J.dpr(e.x+g.x+i.x),k=J.dpr(e.y+g.y+i.y+e.properties.leading/2);b.fillText(i.properties.text,j,k)}}return a.toDataURL("image/png")}}(),M=function(){if(b.XMLSerializer){var a=u(),c=s(null,0,0),d=q("rect",E);return c.appendChild(d),function(b,e){var f=b.root;s(c,f.properties.width,f.properties.height);for(var g=c.querySelectorAll("g"),h=0;h<g.length;h++)g[h].parentNode.removeChild(g[h]);var i=e.holderSettings.flags.holderURL,j="holder_"+(Number(new Date)+32768+(0|32768*Math.random())).toString(16),k=q("g",E),l=f.children.holderTextGroup,m=l.properties,n=q("g",E),o=l.textPositionData,p="#"+j+" text { "+z.cssProps({fill:m.fill,"font-weight":m.font.weight,"font-family":m.font.family+", monospace","font-size":m.font.size+m.font.units})+" } ",u=a.createComment("\nSource URL: "+i+H),v=a.createCDATASection(p),w=c.querySelector("style");r(k,{id:j}),c.insertBefore(u,c.firstChild),w.appendChild(v),k.appendChild(d),k.appendChild(n),c.appendChild(k),r(d,{width:f.children.holderBg.width,height:f.children.holderBg.height,fill:f.children.holderBg.properties.fill}),l.y+=.8*o.boundingBox.height;for(var x in l.children){var y=l.children[x];for(var A in y.children){var B=y.children[A],C=l.x+y.x+B.x,D=l.y+y.y+B.y,F=q("text",E),G=document.createTextNode(null);r(F,{x:C,y:D}),G.nodeValue=B.properties.text,F.appendChild(G),n.appendChild(F)}}var I=N(t(c,e.engineSettings),"background"===e.mode);return I}}}(),N=function(){var a="data:image/svg+xml;charset=UTF-8,",b="data:image/svg+xml;charset=UTF-8;base64,";return function(c,d){return d?b+btoa(unescape(encodeURIComponent(c))):a+encodeURIComponent(c)}}();for(var O in J.flags)J.flags.hasOwnProperty(O)&&(J.flags[O].match=function(a){return a.match(this.regex)});J.setup={renderer:"html",debounce:100,ratio:1,supportsCanvas:!1,supportsSVG:!1,lineWrapRatio:.9,renderers:["html","canvas","svg"]},J.dpr=function(a){return a*J.setup.ratio},J.vars={preempted:!1,resizableImages:[],invisibleImages:{},invisibleId:0,visibilityCheckStarted:!1,debounceTimer:null,cache:{},dataAttr:"data-src"},function(){var a=1,c=1,d=q("canvas"),e=null;d.getContext&&-1!=d.toDataURL("image/png").indexOf("data:image/png")&&(J.setup.renderer="canvas",e=d.getContext("2d"),J.setup.supportsCanvas=!0),J.setup.supportsCanvas&&(a=b.devicePixelRatio||1,c=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),J.setup.ratio=a/c,document.createElementNS&&document.createElementNS(E,"svg").createSVGRect&&(J.setup.renderer="svg",J.setup.supportsSVG=!0)}(),o(),x&&x(function(){J.vars.preempted||I.run(),b.addEventListener?(b.addEventListener("resize",w,!1),b.addEventListener("orientationchange",w,!1)):b.attachEvent("onresize",w),"object"==typeof b.Turbolinks&&b.document.addEventListener("page:change",function(){I.run()})}),a.exports=I}).call(b,function(){return this}())},function(a){function b(a){function b(a){if(!v){if(!g.body)return e(b);for(v=!0;a=w.shift();)e(a)}}function c(a){(t||a.type===i||g[m]===l)&&(d(),b())}function d(){t?(g[s](q,c,j),a[s](i,c,j)):(g[o](r,c),a[o](k,c))}function e(a,b){setTimeout(a,+b>=0?b:1)}function f(a){v?e(a):w.push(a)}null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",function y(){document.removeEventListener("DOMContentLoaded",y,!1),document.readyState="complete"},!1),document.readyState="loading");var g=a.document,h=g.documentElement,i="load",j=!1,k="on"+i,l="complete",m="readyState",n="attachEvent",o="detachEvent",p="addEventListener",q="DOMContentLoaded",r="onreadystatechange",s="removeEventListener",t=p in g,u=j,v=j,w=[];if(g[m]===l)e(b);else if(t)g[p](q,c,j),a[p](i,c,j);else{g[n](r,c),a[n](k,c);try{u=null==a.frameElement&&h}catch(x){}u&&u.doScroll&&!function z(){if(!v){try{u.doScroll("left")}catch(a){return e(z,50)}d(),b()}}()}return f.version="1.4.0",f.isReady=function(){return v},f}a.exports="undefined"!=typeof window&&b(window)},function(a,b,c){var d=c(5),e=function(a){function b(a,b){for(var c in b)a[c]=b[c];return a}var c=1,e=d.defclass({constructor:function(a){c++,this.parent=null,this.children={},this.id=c,this.name="n"+c,null!=a&&(this.name=a),this.x=0,this.y=0,this.z=0,this.width=0,this.height=0},resize:function(a,b){null!=a&&(this.width=a),null!=b&&(this.height=b)},moveTo:function(a,b,c){this.x=null!=a?a:this.x,this.y=null!=b?b:this.y,this.z=null!=c?c:this.z},add:function(a){var b=a.name;if(null!=this.children[b])throw"SceneGraph: child with that name already exists: "+b;this.children[b]=a,a.parent=this}}),f=d(e,function(b){this.constructor=function(){b.constructor.call(this,"root"),this.properties=a}}),g=d(e,function(a){function c(c,d){if(a.constructor.call(this,c),this.properties={fill:"#000"},null!=d)b(this.properties,d);else if(null!=c&&"string"!=typeof c)throw"SceneGraph: invalid node name"}this.Group=d.extend(this,{constructor:c,type:"group"}),this.Rect=d.extend(this,{constructor:c,type:"rect"}),this.Text=d.extend(this,{constructor:function(a){c.call(this),this.properties.text=a},type:"text"})}),h=new f;return this.Shape=g,this.root=h,this};a.exports=e},function(a,b){(function(a){b.extend=function(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);if(null!=b)for(var e in b)b.hasOwnProperty(e)&&(c[e]=b[e]);return c},b.cssProps=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c+":"+a[c]);return b.join(";")},b.encodeHtmlEntity=function(a){for(var b=[],c=0,d=a.length-1;d>=0;d--)c=a.charCodeAt(d),b.unshift(c>128?["&#",c,";"].join(""):a[d]);return b.join("")},b.getNodeArray=function(b){var c=null;return"string"==typeof b?c=document.querySelectorAll(b):a.NodeList&&b instanceof a.NodeList?c=b:a.Node&&b instanceof a.Node?c=[b]:a.HTMLCollection&&b instanceof a.HTMLCollection?c=b:b instanceof Array?c=b:null===b&&(c=[]),c},b.imageExists=function(a,b){var c=new Image;c.onerror=function(){b.call(this,!1)},c.onload=function(){b.call(this,!0)},c.src=a},b.decodeHtmlEntity=function(a){return a.replace(/&#(\d+);/g,function(a,b){return String.fromCharCode(b)})},b.dimensionCheck=function(a){var b={height:a.clientHeight,width:a.clientWidth};return b.height&&b.width?b:!1},b.truthy=function(a){return"string"==typeof a?"true"===a||"yes"===a||"1"===a||"on"===a||"✓"===a:!!a}}).call(b,function(){return this}())},function(a,b,c){var d=encodeURIComponent,e=decodeURIComponent,f=c(6),g=c(7),h=/(\w+)\[(\d+)\]/,i=/\w+\.\w+/;b.parse=function(a){if("string"!=typeof a)return{};if(a=f(a),""===a)return{};"?"===a.charAt(0)&&(a=a.slice(1));for(var b={},c=a.split("&"),d=0;d<c.length;d++){var g,j,k,l=c[d].split("="),m=e(l[0]);if(g=h.exec(m))b[g[1]]=b[g[1]]||[],b[g[1]][g[2]]=e(l[1]);else if(g=i.test(m)){for(g=m.split("."),j=b;g.length;)if(k=g.shift(),k.length){if(j[k]){if(j[k]&&"object"!=typeof j[k])break}else j[k]={};g.length||(j[k]=e(l[1])),j=j[k]}}else b[l[0]]=null==l[1]?"":e(l[1])}return b},b.stringify=function(a){if(!a)return"";var b=[];for(var c in a){var e=a[c];if("array"!=g(e))b.push(d(c)+"="+d(a[c]));else for(var f=0;f<e.length;++f)b.push(d(c+"["+f+"]")+"="+d(e[f]))}return b.join("&")}},function(a){var b=function(){},c=Array.prototype.slice,d=function(a,d){var e=b.prototype="function"==typeof a?a.prototype:a,f=new b,g=d.apply(f,c.call(arguments,2).concat(e));if("object"==typeof g)for(var h in g)f[h]=g[h];if(!f.hasOwnProperty("constructor"))return f;var i=f.constructor;return i.prototype=f,i};d.defclass=function(a){var b=a.constructor;return b.prototype=a,b},d.extend=function(a,b){return d(a,function(a){return this.uber=a,b})},a.exports=d},function(a,b){function c(a){return a.replace(/^\s*|\s*$/g,"")}b=a.exports=c,b.left=function(a){return a.replace(/^\s*/,"")},b.right=function(a){return a.replace(/\s*$/,"")}},function(a){var b=Object.prototype.toString;a.exports=function(a){switch(b.call(a)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===a?"null":void 0===a?"undefined":a!==a?"nan":a&&1===a.nodeType?"element":(a=a.valueOf?a.valueOf():Object.prototype.valueOf.apply(a),typeof a)}}])}),function(a,b){b&&(Holder=a.Holder)}(this,"undefined"!=typeof Meteor&&"undefined"!=typeof Package);
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/html5shiv.min.js b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/html5shiv.min.js
deleted file mode 100644
index d4c731ad..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/html5shiv.min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
-* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
-*/
-!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.2",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b)}(this,document); \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js
deleted file mode 100644
index 0f60b7bd..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
-!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;
-
-return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ca()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ca()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?aa:ba):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=aa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=aa,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=aa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=ba;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=ba),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:"+ea+")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1></$2>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?"<table>"!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ca[0].contentWindow||Ca[0].contentDocument).document,b.write(),b.close(),c=Ea(a,b),Ca.detach()),Da[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Ga=/^margin/,Ha=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Ha.test(g)&&Ga.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ia=function(a){return a.currentStyle},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ha.test(g)&&!Ka.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function La(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^("+S+")(.*)$","i"),Qa=new RegExp("^([+-])=("+S+")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ta.length;while(e--)if(b=Ta[e]+c,b in a)return b;return d}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fa(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Ya(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Ja(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ha.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xa(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ja(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ua(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qa.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ua(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ja(a,b,d)),"normal"===f&&b in Sa&&(f=Sa[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Oa.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d)}):Ya(a,b,d):void 0},set:function(a,c,d){var e=d&&Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Na.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Ma,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ma.test(f)?f.replace(Ma,e):f+" "+e)}}),m.cssHooks.marginRight=La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Ga.test(a)||(m.cssHooks[a+b].set=Wa)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ia(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Va(this,!0)},hide:function(){return Va(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Za(a,b,c,d,e){
-return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[c]=eb[c]||[],eb[c].unshift(b)},prefilter:function(a,b){b?db.unshift(a):db.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kb(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($a=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$a=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_a||(_a=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_a),_a=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lb=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lb,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nb:mb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rb&&qb||!pb.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qb?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nb={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rb&&qb||!pb.test(c)?a.setAttribute(!qb&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b]||m.find.attr;ob[b]=rb&&qb||!pb.test(b)?function(a,b,d){var e,f;return d||(f=ob[b],ob[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ob[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rb&&qb||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mb&&mb.set(a,b,c)}}),qb||(mb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},ob.id=ob.name=ob.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mb.set},m.attrHooks.contenteditable={set:function(a,b,c){mb.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0)return!0;return!1}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb=location.href}catch(Kb){zb=y.createElement("a"),zb.href="",zb=zb.href}yb=Gb.exec(zb.toLowerCase())||[];function Lb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mb(a,b,c,d){var e={},f=a===Ib;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a)},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cb.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zb)+"").replace(Ab,"").replace(Fb,yb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gb.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yb[1]&&c[2]===yb[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yb[3]||("http:"===yb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2===t)return v;h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Eb.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wb.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bb.test(e)?e.replace(Bb,"$1_="+vb++):e+(wb.test(e)?"&":"?")+"_="+vb++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jb+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mb(Ib,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Ob(k,v,c)),u=Pb(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rb.test(a)?d(a,e):Vb(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vb(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vb(c,a[c],b,e);return d.join("&").replace(Qb,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ub.test(this.nodeName)&&!Tb.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):{name:b.name,value:c.replace(Sb,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zb()||$b()}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xb)Xb[a](void 0,!0)}),k.cors=!!Yb&&"withCredentials"in Yb,Yb=k.ajax=!!Yb,Yb&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xb[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zb(){try{return new a.XMLHttpRequest}catch(b){}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_b.pop()||m.expando+"_"+vb++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ac.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ac.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ac,"$1"+e):b.jsonp!==!1&&(b.url+=(wb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_b.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bc=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bc)return bc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/nv.d3.min.js b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/nv.d3.min.js
deleted file mode 100644
index 61d35d34..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/nv.d3.min.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/* nvd3 version 1.8.1 (https://github.com/novus/nvd3) 2015-06-17 */
-!function(){var a={};a.dev=!1,a.tooltip=a.tooltip||{},a.utils=a.utils||{},a.models=a.models||{},a.charts={},a.logs={},a.dom={},a.dispatch=d3.dispatch("render_start","render_end"),Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice.call(arguments,1),c=this,d=function(){},e=function(){return c.apply(this instanceof d&&a?this:a,b.concat(Array.prototype.slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e}),a.dev&&(a.dispatch.on("render_start",function(){a.logs.startTime=+new Date}),a.dispatch.on("render_end",function(){a.logs.endTime=+new Date,a.logs.totalTime=a.logs.endTime-a.logs.startTime,a.log("total",a.logs.totalTime)})),a.log=function(){if(a.dev&&window.console&&console.log&&console.log.apply)console.log.apply(console,arguments);else if(a.dev&&window.console&&"function"==typeof console.log&&Function.prototype.bind){var b=Function.prototype.bind.call(console.log,console);b.apply(console,arguments)}return arguments[arguments.length-1]},a.deprecated=function(a,b){console&&console.warn&&console.warn("nvd3 warning: `"+a+"` has been deprecated. ",b||"")},a.render=function(b){b=b||1,a.render.active=!0,a.dispatch.render_start();var c=function(){for(var d,e,f=0;b>f&&(e=a.render.queue[f]);f++)d=e.generate(),typeof e.callback==typeof Function&&e.callback(d);a.render.queue.splice(0,f),a.render.queue.length?setTimeout(c):(a.dispatch.render_end(),a.render.active=!1)};setTimeout(c)},a.render.active=!1,a.render.queue=[],a.addGraph=function(b){typeof arguments[0]==typeof Function&&(b={generate:arguments[0],callback:arguments[1]}),a.render.queue.push(b),a.render.active||a.render()},"undefined"!=typeof module&&"undefined"!=typeof exports&&(module.exports=a),"undefined"!=typeof window&&(window.nv=a),a.dom.write=function(a){return void 0!==window.fastdom?fastdom.write(a):a()},a.dom.read=function(a){return void 0!==window.fastdom?fastdom.read(a):a()},a.interactiveGuideline=function(){"use strict";function b(l){l.each(function(l){function m(){var a=d3.mouse(this),d=a[0],e=a[1],i=!0,j=!1;if(k&&(d=d3.event.offsetX,e=d3.event.offsetY,"svg"!==d3.event.target.tagName&&(i=!1),d3.event.target.className.baseVal.match("nv-legend")&&(j=!0)),i&&(d-=f.left,e-=f.top),0>d||0>e||d>o||e>p||d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement||j){if(k&&d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement&&(void 0===d3.event.relatedTarget.className||d3.event.relatedTarget.className.match(c.nvPointerEventsClass)))return;return h.elementMouseout({mouseX:d,mouseY:e}),b.renderGuideLine(null),void c.hidden(!0)}c.hidden(!1);var l=g.invert(d);h.elementMousemove({mouseX:d,mouseY:e,pointXValue:l}),"dblclick"===d3.event.type&&h.elementDblclick({mouseX:d,mouseY:e,pointXValue:l}),"click"===d3.event.type&&h.elementClick({mouseX:d,mouseY:e,pointXValue:l})}var n=d3.select(this),o=d||960,p=e||400,q=n.selectAll("g.nv-wrap.nv-interactiveLineLayer").data([l]),r=q.enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer");r.append("g").attr("class","nv-interactiveGuideLine"),j&&(j.on("touchmove",m).on("mousemove",m,!0).on("mouseout",m,!0).on("dblclick",m).on("click",m),b.guideLine=null,b.renderGuideLine=function(c){i&&(b.guideLine&&b.guideLine.attr("x1")===c||a.dom.write(function(){var b=q.select(".nv-interactiveGuideLine").selectAll("line").data(null!=c?[a.utils.NaNtoZero(c)]:[],String);b.enter().append("line").attr("class","nv-guideline").attr("x1",function(a){return a}).attr("x2",function(a){return a}).attr("y1",p).attr("y2",0),b.exit().remove()}))})})}var c=a.models.tooltip();c.duration(0).hideDelay(0)._isInteractiveLayer(!0).hidden(!1);var d=null,e=null,f={left:0,top:0},g=d3.scale.linear(),h=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick"),i=!0,j=null,k="ActiveXObject"in window;return b.dispatch=h,b.tooltip=c,b.margin=function(a){return arguments.length?(f.top="undefined"!=typeof a.top?a.top:f.top,f.left="undefined"!=typeof a.left?a.left:f.left,b):f},b.width=function(a){return arguments.length?(d=a,b):d},b.height=function(a){return arguments.length?(e=a,b):e},b.xScale=function(a){return arguments.length?(g=a,b):g},b.showGuideLine=function(a){return arguments.length?(i=a,b):i},b.svgContainer=function(a){return arguments.length?(j=a,b):j},b},a.interactiveBisect=function(a,b,c){"use strict";if(!(a instanceof Array))return null;var d;d="function"!=typeof c?function(a){return a.x}:c;var e=function(a,b){return d(a)-b},f=d3.bisector(e).left,g=d3.max([0,f(a,b)-1]),h=d(a[g]);if("undefined"==typeof h&&(h=g),h===b)return g;var i=d3.min([g+1,a.length-1]),j=d(a[i]);return"undefined"==typeof j&&(j=i),Math.abs(j-b)>=Math.abs(h-b)?g:i},a.nearestValueIndex=function(a,b,c){"use strict";var d=1/0,e=null;return a.forEach(function(a,f){var g=Math.abs(b-a);null!=a&&d>=g&&c>g&&(d=g,e=f)}),e},function(){"use strict";a.models.tooltip=function(){function b(){if(k){var a=d3.select(k);"svg"!==a.node().tagName&&(a=a.select("svg"));var b=a.node()?a.attr("viewBox"):null;if(b){b=b.split(" ");var c=parseInt(a.style("width"),10)/b[2];p.left=p.left*c,p.top=p.top*c}}}function c(){if(!n){var a;a=k?k:document.body,n=d3.select(a).append("div").attr("class","nvtooltip "+(j?j:"xy-tooltip")).attr("id",v),n.style("top",0).style("left",0),n.style("opacity",0),n.selectAll("div, table, td, tr").classed(w,!0),n.classed(w,!0),o=n.node()}}function d(){if(r&&B(e)){b();var f=p.left,g=null!==i?i:p.top;return a.dom.write(function(){c();var b=A(e);b&&(o.innerHTML=b),k&&u?a.dom.read(function(){var a=k.getElementsByTagName("svg")[0],b={left:0,top:0};if(a){var c=a.getBoundingClientRect(),d=k.getBoundingClientRect(),e=c.top;if(0>e){var i=k.getBoundingClientRect();e=Math.abs(e)>i.height?0:e}b.top=Math.abs(e-d.top),b.left=Math.abs(c.left-d.left)}f+=k.offsetLeft+b.left-2*k.scrollLeft,g+=k.offsetTop+b.top-2*k.scrollTop,h&&h>0&&(g=Math.floor(g/h)*h),C([f,g])}):C([f,g])}),d}}var e=null,f="w",g=25,h=0,i=null,j=null,k=null,l=!0,m=400,n=null,o=null,p={left:null,top:null},q={left:0,top:0},r=!0,s=100,t=!0,u=!1,v="nvtooltip-"+Math.floor(1e5*Math.random()),w="nv-pointer-events-none",x=function(a){return a},y=function(a){return a},z=function(a){return a},A=function(a){if(null===a)return"";var b=d3.select(document.createElement("table"));if(t){var c=b.selectAll("thead").data([a]).enter().append("thead");c.append("tr").append("td").attr("colspan",3).append("strong").classed("x-value",!0).html(y(a.value))}var d=b.selectAll("tbody").data([a]).enter().append("tbody"),e=d.selectAll("tr").data(function(a){return a.series}).enter().append("tr").classed("highlight",function(a){return a.highlight});e.append("td").classed("legend-color-guide",!0).append("div").style("background-color",function(a){return a.color}),e.append("td").classed("key",!0).html(function(a,b){return z(a.key,b)}),e.append("td").classed("value",!0).html(function(a,b){return x(a.value,b)}),e.selectAll("td").each(function(a){if(a.highlight){var b=d3.scale.linear().domain([0,1]).range(["#fff",a.color]),c=.6;d3.select(this).style("border-bottom-color",b(c)).style("border-top-color",b(c))}});var f=b.node().outerHTML;return void 0!==a.footer&&(f+="<div class='footer'>"+a.footer+"</div>"),f},B=function(a){if(a&&a.series){if(a.series instanceof Array)return!!a.series.length;if(a.series instanceof Object)return a.series=[a.series],!0}return!1},C=function(b){o&&a.dom.read(function(){var c,d,e=parseInt(o.offsetHeight,10),h=parseInt(o.offsetWidth,10),i=a.utils.windowSize().width,j=a.utils.windowSize().height,k=window.pageYOffset,p=window.pageXOffset;j=window.innerWidth>=document.body.scrollWidth?j:j-16,i=window.innerHeight>=document.body.scrollHeight?i:i-16;var r,t,u=function(a){var b=d;do isNaN(a.offsetTop)||(b+=a.offsetTop),a=a.offsetParent;while(a);return b},v=function(a){var b=c;do isNaN(a.offsetLeft)||(b+=a.offsetLeft),a=a.offsetParent;while(a);return b};switch(f){case"e":c=b[0]-h-g,d=b[1]-e/2,r=v(o),t=u(o),p>r&&(c=b[0]+g>p?b[0]+g:p-r+c),k>t&&(d=k-t+d),t+e>k+j&&(d=k+j-t+d-e);break;case"w":c=b[0]+g,d=b[1]-e/2,r=v(o),t=u(o),r+h>i&&(c=b[0]-h-g),k>t&&(d=k+5),t+e>k+j&&(d=k+j-t+d-e);break;case"n":c=b[0]-h/2-5,d=b[1]+g,r=v(o),t=u(o),p>r&&(c=p+5),r+h>i&&(c=c-h/2+5),t+e>k+j&&(d=k+j-t+d-e);break;case"s":c=b[0]-h/2,d=b[1]-e-g,r=v(o),t=u(o),p>r&&(c=p+5),r+h>i&&(c=c-h/2+5),k>t&&(d=k);break;case"none":c=b[0],d=b[1]-g,r=v(o),t=u(o)}c-=q.left,d-=q.top;var w=o.getBoundingClientRect(),k=window.pageYOffset||document.documentElement.scrollTop,p=window.pageXOffset||document.documentElement.scrollLeft,x="translate("+(w.left+p)+"px, "+(w.top+k)+"px)",y="translate("+c+"px, "+d+"px)",z=d3.interpolateString(x,y),A=n.style("opacity")<.1;l?n.transition().delay(m).duration(0).style("opacity",0):n.interrupt().transition().duration(A?0:s).styleTween("transform",function(){return z},"important").style("-webkit-transform",y).style("opacity",1)})};return d.nvPointerEventsClass=w,d.options=a.utils.optionsFunc.bind(d),d._options=Object.create({},{duration:{get:function(){return s},set:function(a){s=a}},gravity:{get:function(){return f},set:function(a){f=a}},distance:{get:function(){return g},set:function(a){g=a}},snapDistance:{get:function(){return h},set:function(a){h=a}},classes:{get:function(){return j},set:function(a){j=a}},chartContainer:{get:function(){return k},set:function(a){k=a}},fixedTop:{get:function(){return i},set:function(a){i=a}},enabled:{get:function(){return r},set:function(a){r=a}},hideDelay:{get:function(){return m},set:function(a){m=a}},contentGenerator:{get:function(){return A},set:function(a){A=a}},valueFormatter:{get:function(){return x},set:function(a){x=a}},headerFormatter:{get:function(){return y},set:function(a){y=a}},keyFormatter:{get:function(){return z},set:function(a){z=a}},headerEnabled:{get:function(){return t},set:function(a){t=a}},_isInteractiveLayer:{get:function(){return u},set:function(a){u=!!a}},position:{get:function(){return p},set:function(a){p.left=void 0!==a.left?a.left:p.left,p.top=void 0!==a.top?a.top:p.top}},offset:{get:function(){return q},set:function(a){q.left=void 0!==a.left?a.left:q.left,q.top=void 0!==a.top?a.top:q.top}},hidden:{get:function(){return l},set:function(a){l!=a&&(l=!!a,d())}},data:{get:function(){return e},set:function(a){a.point&&(a.value=a.point.x,a.series=a.series||{},a.series.value=a.point.y,a.series.color=a.point.color||a.series.color),e=a}},tooltipElem:{get:function(){return o},set:function(){}},id:{get:function(){return v},set:function(){}}}),a.utils.initOptions(d),d}}(),a.utils.windowSize=function(){var a={width:640,height:480};return window.innerWidth&&window.innerHeight?(a.width=window.innerWidth,a.height=window.innerHeight,a):"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth?(a.width=document.documentElement.offsetWidth,a.height=document.documentElement.offsetHeight,a):document.body&&document.body.offsetWidth?(a.width=document.body.offsetWidth,a.height=document.body.offsetHeight,a):a},a.utils.windowResize=function(b){return window.addEventListener?window.addEventListener("resize",b):a.log("ERROR: Failed to bind to window.resize with: ",b),{callback:b,clear:function(){window.removeEventListener("resize",b)}}},a.utils.getColor=function(b){if(void 0===b)return a.utils.defaultColor();if(Array.isArray(b)){var c=d3.scale.ordinal().range(b);return function(a,b){var d=void 0===b?a:b;return a.color||c(d)}}return b},a.utils.defaultColor=function(){return a.utils.getColor(d3.scale.category20().range())},a.utils.customTheme=function(a,b,c){b=b||function(a){return a.key},c=c||d3.scale.category20().range();var d=c.length;return function(e){var f=b(e);return"function"==typeof a[f]?a[f]():void 0!==a[f]?a[f]:(d||(d=c.length),d-=1,c[d])}},a.utils.pjax=function(b,c){var d=function(d){d3.html(d,function(d){var e=d3.select(c).node();e.parentNode.replaceChild(d3.select(d).select(c).node(),e),a.utils.pjax(b,c)})};d3.selectAll(b).on("click",function(){history.pushState(this.href,this.textContent,this.href),d(this.href),d3.event.preventDefault()}),d3.select(window).on("popstate",function(){d3.event.state&&d(d3.event.state)})},a.utils.calcApproxTextWidth=function(a){if("function"==typeof a.style&&"function"==typeof a.text){var b=parseInt(a.style("font-size").replace("px",""),10),c=a.text().length;return c*b*.5}return 0},a.utils.NaNtoZero=function(a){return"number"!=typeof a||isNaN(a)||null===a||1/0===a||a===-1/0?0:a},d3.selection.prototype.watchTransition=function(a){var b=[this].concat([].slice.call(arguments,1));return a.transition.apply(a,b)},a.utils.renderWatch=function(b,c){if(!(this instanceof a.utils.renderWatch))return new a.utils.renderWatch(b,c);var d=void 0!==c?c:250,e=[],f=this;this.models=function(a){return a=[].slice.call(arguments,0),a.forEach(function(a){a.__rendered=!1,function(a){a.dispatch.on("renderEnd",function(){a.__rendered=!0,f.renderEnd("model")})}(a),e.indexOf(a)<0&&e.push(a)}),this},this.reset=function(a){void 0!==a&&(d=a),e=[]},this.transition=function(a,b,c){if(b=arguments.length>1?[].slice.call(arguments,1):[],c=b.length>1?b.pop():void 0!==d?d:250,a.__rendered=!1,e.indexOf(a)<0&&e.push(a),0===c)return a.__rendered=!0,a.delay=function(){return this},a.duration=function(){return this},a;a.__rendered=0===a.length?!0:a.every(function(a){return!a.length})?!0:!1;var g=0;return a.transition().duration(c).each(function(){++g}).each("end",function(){0===--g&&(a.__rendered=!0,f.renderEnd.apply(this,b))})},this.renderEnd=function(){e.every(function(a){return a.__rendered})&&(e.forEach(function(a){a.__rendered=!1}),b.renderEnd.apply(this,arguments))}},a.utils.deepExtend=function(b){var c=arguments.length>1?[].slice.call(arguments,1):[];c.forEach(function(c){for(var d in c){var e=b[d]instanceof Array,f="object"==typeof b[d],g="object"==typeof c[d];f&&!e&&g?a.utils.deepExtend(b[d],c[d]):b[d]=c[d]}})},a.utils.state=function(){if(!(this instanceof a.utils.state))return new a.utils.state;var b={},c=function(){},d=function(){return{}},e=null,f=null;this.dispatch=d3.dispatch("change","set"),this.dispatch.on("set",function(a){c(a,!0)}),this.getter=function(a){return d=a,this},this.setter=function(a,b){return b||(b=function(){}),c=function(c,d){a(c),d&&b()},this},this.init=function(b){e=e||{},a.utils.deepExtend(e,b)};var g=function(){var a=d();if(JSON.stringify(a)===JSON.stringify(b))return!1;for(var c in a)void 0===b[c]&&(b[c]={}),b[c]=a[c],f=!0;return!0};this.update=function(){e&&(c(e,!1),e=null),g.call(this)&&this.dispatch.change(b)}},a.utils.optionsFunc=function(a){return a&&d3.map(a).forEach(function(a,b){"function"==typeof this[a]&&this[a](b)}.bind(this)),this},a.utils.calcTicksX=function(b,c){var d=1,e=0;for(e;e<c.length;e+=1){var f=c[e]&&c[e].values?c[e].values.length:0;d=f>d?f:d}return a.log("Requested number of ticks: ",b),a.log("Calculated max values to be: ",d),b=b>d?b=d-1:b,b=1>b?1:b,b=Math.floor(b),a.log("Calculating tick count as: ",b),b},a.utils.calcTicksY=function(b,c){return a.utils.calcTicksX(b,c)},a.utils.initOption=function(a,b){a._calls&&a._calls[b]?a[b]=a._calls[b]:(a[b]=function(c){return arguments.length?(a._overrides[b]=!0,a._options[b]=c,a):a._options[b]},a["_"+b]=function(c){return arguments.length?(a._overrides[b]||(a._options[b]=c),a):a._options[b]})},a.utils.initOptions=function(b){b._overrides=b._overrides||{};var c=Object.getOwnPropertyNames(b._options||{}),d=Object.getOwnPropertyNames(b._calls||{});c=c.concat(d);for(var e in c)a.utils.initOption(b,c[e])},a.utils.inheritOptionsD3=function(a,b,c){a._d3options=c.concat(a._d3options||[]),c.unshift(b),c.unshift(a),d3.rebind.apply(this,c)},a.utils.arrayUnique=function(a){return a.sort().filter(function(b,c){return!c||b!=a[c-1]})},a.utils.symbolMap=d3.map(),a.utils.symbol=function(){function b(b,e){var f=c.call(this,b,e),g=d.call(this,b,e);return-1!==d3.svg.symbolTypes.indexOf(f)?d3.svg.symbol().type(f).size(g)():a.utils.symbolMap.get(f)(g)}var c,d=64;return b.type=function(a){return arguments.length?(c=d3.functor(a),b):c},b.size=function(a){return arguments.length?(d=d3.functor(a),b):d},b},a.utils.inheritOptions=function(b,c){var d=Object.getOwnPropertyNames(c._options||{}),e=Object.getOwnPropertyNames(c._calls||{}),f=c._inherited||[],g=c._d3options||[],h=d.concat(e).concat(f).concat(g);h.unshift(c),h.unshift(b),d3.rebind.apply(this,h),b._inherited=a.utils.arrayUnique(d.concat(e).concat(f).concat(d).concat(b._inherited||[])),b._d3options=a.utils.arrayUnique(g.concat(b._d3options||[]))},a.utils.initSVG=function(a){a.classed({"nvd3-svg":!0})},a.utils.sanitizeHeight=function(a,b){return a||parseInt(b.style("height"),10)||400},a.utils.sanitizeWidth=function(a,b){return a||parseInt(b.style("width"),10)||960},a.utils.availableHeight=function(b,c,d){return a.utils.sanitizeHeight(b,c)-d.top-d.bottom},a.utils.availableWidth=function(b,c,d){return a.utils.sanitizeWidth(b,c)-d.left-d.right},a.utils.noData=function(b,c){var d=b.options(),e=d.margin(),f=d.noData(),g=null==f?["No Data Available."]:[f],h=a.utils.availableHeight(d.height(),c,e),i=a.utils.availableWidth(d.width(),c,e),j=e.left+i/2,k=e.top+h/2;c.selectAll("g").remove();var l=c.selectAll(".nv-noData").data(g);l.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),l.attr("x",j).attr("y",k).text(function(a){return a})},a.models.axis=function(){"use strict";function b(g){return s.reset(),g.each(function(b){var g=d3.select(this);a.utils.initSVG(g);var p=g.selectAll("g.nv-wrap.nv-axis").data([b]),q=p.enter().append("g").attr("class","nvd3 nv-wrap nv-axis"),t=(q.append("g"),p.select("g"));null!==n?c.ticks(n):("top"==c.orient()||"bottom"==c.orient())&&c.ticks(Math.abs(d.range()[1]-d.range()[0])/100),t.watchTransition(s,"axis").call(c),r=r||c.scale();var u=c.tickFormat();null==u&&(u=r.tickFormat());var v=t.selectAll("text.nv-axislabel").data([h||null]);v.exit().remove();var w,x,y;switch(c.orient()){case"top":v.enter().append("text").attr("class","nv-axislabel"),y=d.range().length<2?0:2===d.range().length?d.range()[1]:d.range()[d.range().length-1]+(d.range()[1]-d.range()[0]),v.attr("text-anchor","middle").attr("y",0).attr("x",y/2),i&&(x=p.selectAll("g.nv-axisMaxMin").data(d.domain()),x.enter().append("g").attr("class",function(a,b){return["nv-axisMaxMin","nv-axisMaxMin-x",0==b?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),x.exit().remove(),x.attr("transform",function(b){return"translate("+a.utils.NaNtoZero(d(b))+",0)"}).select("text").attr("dy","-0.5em").attr("y",-c.tickPadding()).attr("text-anchor","middle").text(function(a){var b=u(a);return(""+b).match("NaN")?"":b}),x.watchTransition(s,"min-max top").attr("transform",function(b,c){return"translate("+a.utils.NaNtoZero(d.range()[c])+",0)"}));break;case"bottom":w=o+36;var z=30,A=0,B=t.selectAll("g").select("text"),C="";if(j%360){B.each(function(){var a=this.getBoundingClientRect(),b=a.width;A=a.height,b>z&&(z=b)}),C="rotate("+j+" 0,"+(A/2+c.tickPadding())+")";var D=Math.abs(Math.sin(j*Math.PI/180));w=(D?D*z:z)+30,B.attr("transform",C).style("text-anchor",j%360>0?"start":"end")}v.enter().append("text").attr("class","nv-axislabel"),y=d.range().length<2?0:2===d.range().length?d.range()[1]:d.range()[d.range().length-1]+(d.range()[1]-d.range()[0]),v.attr("text-anchor","middle").attr("y",w).attr("x",y/2),i&&(x=p.selectAll("g.nv-axisMaxMin").data([d.domain()[0],d.domain()[d.domain().length-1]]),x.enter().append("g").attr("class",function(a,b){return["nv-axisMaxMin","nv-axisMaxMin-x",0==b?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),x.exit().remove(),x.attr("transform",function(b){return"translate("+a.utils.NaNtoZero(d(b)+(m?d.rangeBand()/2:0))+",0)"}).select("text").attr("dy",".71em").attr("y",c.tickPadding()).attr("transform",C).style("text-anchor",j?j%360>0?"start":"end":"middle").text(function(a){var b=u(a);return(""+b).match("NaN")?"":b}),x.watchTransition(s,"min-max bottom").attr("transform",function(b){return"translate("+a.utils.NaNtoZero(d(b)+(m?d.rangeBand()/2:0))+",0)"})),l&&B.attr("transform",function(a,b){return"translate(0,"+(b%2==0?"0":"12")+")"});break;case"right":v.enter().append("text").attr("class","nv-axislabel"),v.style("text-anchor",k?"middle":"begin").attr("transform",k?"rotate(90)":"").attr("y",k?-Math.max(e.right,f)+12:-10).attr("x",k?d3.max(d.range())/2:c.tickPadding()),i&&(x=p.selectAll("g.nv-axisMaxMin").data(d.domain()),x.enter().append("g").attr("class",function(a,b){return["nv-axisMaxMin","nv-axisMaxMin-y",0==b?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),x.exit().remove(),x.attr("transform",function(b){return"translate(0,"+a.utils.NaNtoZero(d(b))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",c.tickPadding()).style("text-anchor","start").text(function(a){var b=u(a);return(""+b).match("NaN")?"":b}),x.watchTransition(s,"min-max right").attr("transform",function(b,c){return"translate(0,"+a.utils.NaNtoZero(d.range()[c])+")"}).select("text").style("opacity",1));break;case"left":v.enter().append("text").attr("class","nv-axislabel"),v.style("text-anchor",k?"middle":"end").attr("transform",k?"rotate(-90)":"").attr("y",k?-Math.max(e.left,f)+25-(o||0):-10).attr("x",k?-d3.max(d.range())/2:-c.tickPadding()),i&&(x=p.selectAll("g.nv-axisMaxMin").data(d.domain()),x.enter().append("g").attr("class",function(a,b){return["nv-axisMaxMin","nv-axisMaxMin-y",0==b?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),x.exit().remove(),x.attr("transform",function(b){return"translate(0,"+a.utils.NaNtoZero(r(b))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",-c.tickPadding()).attr("text-anchor","end").text(function(a){var b=u(a);return(""+b).match("NaN")?"":b}),x.watchTransition(s,"min-max right").attr("transform",function(b,c){return"translate(0,"+a.utils.NaNtoZero(d.range()[c])+")"}).select("text").style("opacity",1))}if(v.text(function(a){return a}),!i||"left"!==c.orient()&&"right"!==c.orient()||(t.selectAll("g").each(function(a){d3.select(this).select("text").attr("opacity",1),(d(a)<d.range()[1]+10||d(a)>d.range()[0]-10)&&((a>1e-10||-1e-10>a)&&d3.select(this).attr("opacity",0),d3.select(this).select("text").attr("opacity",0))}),d.domain()[0]==d.domain()[1]&&0==d.domain()[0]&&p.selectAll("g.nv-axisMaxMin").style("opacity",function(a,b){return b?0:1})),i&&("top"===c.orient()||"bottom"===c.orient())){var E=[];p.selectAll("g.nv-axisMaxMin").each(function(a,b){try{E.push(b?d(a)-this.getBoundingClientRect().width-4:d(a)+this.getBoundingClientRect().width+4)}catch(c){E.push(b?d(a)-4:d(a)+4)}}),t.selectAll("g").each(function(a){(d(a)<E[0]||d(a)>E[1])&&(a>1e-10||-1e-10>a?d3.select(this).remove():d3.select(this).select("text").remove())})}t.selectAll(".tick").filter(function(a){return!parseFloat(Math.round(1e5*a)/1e6)&&void 0!==a}).classed("zero",!0),r=d.copy()}),s.renderEnd("axis immediate"),b}var c=d3.svg.axis(),d=d3.scale.linear(),e={top:0,right:0,bottom:0,left:0},f=75,g=60,h=null,i=!0,j=0,k=!0,l=!1,m=!1,n=null,o=0,p=250,q=d3.dispatch("renderEnd");c.scale(d).orient("bottom").tickFormat(function(a){return a});var r,s=a.utils.renderWatch(q,p);return b.axis=c,b.dispatch=q,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{axisLabelDistance:{get:function(){return o},set:function(a){o=a}},staggerLabels:{get:function(){return l},set:function(a){l=a}},rotateLabels:{get:function(){return j},set:function(a){j=a}},rotateYLabel:{get:function(){return k},set:function(a){k=a}},showMaxMin:{get:function(){return i},set:function(a){i=a}},axisLabel:{get:function(){return h},set:function(a){h=a}},height:{get:function(){return g},set:function(a){g=a}},ticks:{get:function(){return n},set:function(a){n=a}},width:{get:function(){return f},set:function(a){f=a}},margin:{get:function(){return e},set:function(a){e.top=void 0!==a.top?a.top:e.top,e.right=void 0!==a.right?a.right:e.right,e.bottom=void 0!==a.bottom?a.bottom:e.bottom,e.left=void 0!==a.left?a.left:e.left}},duration:{get:function(){return p},set:function(a){p=a,s.reset(p)}},scale:{get:function(){return d},set:function(e){d=e,c.scale(d),m="function"==typeof d.rangeBands,a.utils.inheritOptionsD3(b,d,["domain","range","rangeBand","rangeBands"])}}}),a.utils.initOptions(b),a.utils.inheritOptionsD3(b,c,["orient","tickValues","tickSubdivide","tickSize","tickPadding","tickFormat"]),a.utils.inheritOptionsD3(b,d,["domain","range","rangeBand","rangeBands"]),b},a.models.boxPlot=function(){"use strict";function b(l){return v.reset(),l.each(function(b){var l=j-i.left-i.right,p=k-i.top-i.bottom;r=d3.select(this),a.utils.initSVG(r),m.domain(c||b.map(function(a,b){return o(a,b)})).rangeBands(e||[0,l],.1);var w=[];if(!d){var x=d3.min(b.map(function(a){var b=[];return b.push(a.values.Q1),a.values.hasOwnProperty("whisker_low")&&null!==a.values.whisker_low&&b.push(a.values.whisker_low),a.values.hasOwnProperty("outliers")&&null!==a.values.outliers&&(b=b.concat(a.values.outliers)),d3.min(b)})),y=d3.max(b.map(function(a){var b=[];return b.push(a.values.Q3),a.values.hasOwnProperty("whisker_high")&&null!==a.values.whisker_high&&b.push(a.values.whisker_high),a.values.hasOwnProperty("outliers")&&null!==a.values.outliers&&(b=b.concat(a.values.outliers)),d3.max(b)}));w=[x,y]}n.domain(d||w),n.range(f||[p,0]),g=g||m,h=h||n.copy().range([n(0),n(0)]);{var z=r.selectAll("g.nv-wrap").data([b]);z.enter().append("g").attr("class","nvd3 nv-wrap")}z.attr("transform","translate("+i.left+","+i.top+")");var A=z.selectAll(".nv-boxplot").data(function(a){return a}),B=A.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);A.attr("class","nv-boxplot").attr("transform",function(a,b){return"translate("+(m(o(a,b))+.05*m.rangeBand())+", 0)"}).classed("hover",function(a){return a.hover}),A.watchTransition(v,"nv-boxplot: boxplots").style("stroke-opacity",1).style("fill-opacity",.75).delay(function(a,c){return c*t/b.length}).attr("transform",function(a,b){return"translate("+(m(o(a,b))+.05*m.rangeBand())+", 0)"}),A.exit().remove(),B.each(function(a,b){var c=d3.select(this);["low","high"].forEach(function(d){a.values.hasOwnProperty("whisker_"+d)&&null!==a.values["whisker_"+d]&&(c.append("line").style("stroke",a.color?a.color:q(a,b)).attr("class","nv-boxplot-whisker nv-boxplot-"+d),c.append("line").style("stroke",a.color?a.color:q(a,b)).attr("class","nv-boxplot-tick nv-boxplot-"+d))})});var C=A.selectAll(".nv-boxplot-outlier").data(function(a){return a.values.hasOwnProperty("outliers")&&null!==a.values.outliers?a.values.outliers:[]});C.enter().append("circle").style("fill",function(a,b,c){return q(a,c)}).style("stroke",function(a,b,c){return q(a,c)}).on("mouseover",function(a,b,c){d3.select(this).classed("hover",!0),s.elementMouseover({series:{key:a,color:q(a,c)},e:d3.event})}).on("mouseout",function(a,b,c){d3.select(this).classed("hover",!1),s.elementMouseout({series:{key:a,color:q(a,c)},e:d3.event})}).on("mousemove",function(){s.elementMousemove({e:d3.event})}),C.attr("class","nv-boxplot-outlier"),C.watchTransition(v,"nv-boxplot: nv-boxplot-outlier").attr("cx",.45*m.rangeBand()).attr("cy",function(a){return n(a)}).attr("r","3"),C.exit().remove();var D=function(){return null===u?.9*m.rangeBand():Math.min(75,.9*m.rangeBand())},E=function(){return.45*m.rangeBand()-D()/2},F=function(){return.45*m.rangeBand()+D()/2};["low","high"].forEach(function(a){var b="low"===a?"Q1":"Q3";A.select("line.nv-boxplot-whisker.nv-boxplot-"+a).watchTransition(v,"nv-boxplot: boxplots").attr("x1",.45*m.rangeBand()).attr("y1",function(b){return n(b.values["whisker_"+a])}).attr("x2",.45*m.rangeBand()).attr("y2",function(a){return n(a.values[b])}),A.select("line.nv-boxplot-tick.nv-boxplot-"+a).watchTransition(v,"nv-boxplot: boxplots").attr("x1",E).attr("y1",function(b){return n(b.values["whisker_"+a])}).attr("x2",F).attr("y2",function(b){return n(b.values["whisker_"+a])})}),["low","high"].forEach(function(a){B.selectAll(".nv-boxplot-"+a).on("mouseover",function(b,c,d){d3.select(this).classed("hover",!0),s.elementMouseover({series:{key:b.values["whisker_"+a],color:q(b,d)},e:d3.event})}).on("mouseout",function(b,c,d){d3.select(this).classed("hover",!1),s.elementMouseout({series:{key:b.values["whisker_"+a],color:q(b,d)},e:d3.event})}).on("mousemove",function(){s.elementMousemove({e:d3.event})})}),B.append("rect").attr("class","nv-boxplot-box").on("mouseover",function(a,b){d3.select(this).classed("hover",!0),s.elementMouseover({key:a.label,value:a.label,series:[{key:"Q3",value:a.values.Q3,color:a.color||q(a,b)},{key:"Q2",value:a.values.Q2,color:a.color||q(a,b)},{key:"Q1",value:a.values.Q1,color:a.color||q(a,b)}],data:a,index:b,e:d3.event})}).on("mouseout",function(a,b){d3.select(this).classed("hover",!1),s.elementMouseout({key:a.label,value:a.label,series:[{key:"Q3",value:a.values.Q3,color:a.color||q(a,b)},{key:"Q2",value:a.values.Q2,color:a.color||q(a,b)},{key:"Q1",value:a.values.Q1,color:a.color||q(a,b)}],data:a,index:b,e:d3.event})}).on("mousemove",function(){s.elementMousemove({e:d3.event})}),A.select("rect.nv-boxplot-box").watchTransition(v,"nv-boxplot: boxes").attr("y",function(a){return n(a.values.Q3)}).attr("width",D).attr("x",E).attr("height",function(a){return Math.abs(n(a.values.Q3)-n(a.values.Q1))||1}).style("fill",function(a,b){return a.color||q(a,b)}).style("stroke",function(a,b){return a.color||q(a,b)}),B.append("line").attr("class","nv-boxplot-median"),A.select("line.nv-boxplot-median").watchTransition(v,"nv-boxplot: boxplots line").attr("x1",E).attr("y1",function(a){return n(a.values.Q2)}).attr("x2",F).attr("y2",function(a){return n(a.values.Q2)}),g=m.copy(),h=n.copy()}),v.renderEnd("nv-boxplot immediate"),b}var c,d,e,f,g,h,i={top:0,right:0,bottom:0,left:0},j=960,k=500,l=Math.floor(1e4*Math.random()),m=d3.scale.ordinal(),n=d3.scale.linear(),o=function(a){return a.x},p=function(a){return a.y},q=a.utils.defaultColor(),r=null,s=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),t=250,u=null,v=a.utils.renderWatch(s,t);return b.dispatch=s,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return j},set:function(a){j=a}},height:{get:function(){return k},set:function(a){k=a}},maxBoxWidth:{get:function(){return u},set:function(a){u=a}},x:{get:function(){return o},set:function(a){o=a}},y:{get:function(){return p},set:function(a){p=a}},xScale:{get:function(){return m},set:function(a){m=a}},yScale:{get:function(){return n},set:function(a){n=a}},xDomain:{get:function(){return c},set:function(a){c=a}},yDomain:{get:function(){return d},set:function(a){d=a}},xRange:{get:function(){return e},set:function(a){e=a}},yRange:{get:function(){return f},set:function(a){f=a}},id:{get:function(){return l},set:function(a){l=a}},margin:{get:function(){return i},set:function(a){i.top=void 0!==a.top?a.top:i.top,i.right=void 0!==a.right?a.right:i.right,i.bottom=void 0!==a.bottom?a.bottom:i.bottom,i.left=void 0!==a.left?a.left:i.left}},color:{get:function(){return q},set:function(b){q=a.utils.getColor(b)}},duration:{get:function(){return t},set:function(a){t=a,v.reset(t)}}}),a.utils.initOptions(b),b},a.models.boxPlotChart=function(){"use strict";function b(k){return t.reset(),t.models(e),l&&t.models(f),m&&t.models(g),k.each(function(k){var p=d3.select(this);a.utils.initSVG(p);var t=(i||parseInt(p.style("width"))||960)-h.left-h.right,u=(j||parseInt(p.style("height"))||400)-h.top-h.bottom;if(b.update=function(){r.beforeUpdate(),p.transition().duration(s).call(b)},b.container=this,!(k&&k.length&&k.filter(function(a){return a.values.hasOwnProperty("Q1")&&a.values.hasOwnProperty("Q2")&&a.values.hasOwnProperty("Q3")}).length)){var v=p.selectAll(".nv-noData").data([q]);return v.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),v.attr("x",h.left+t/2).attr("y",h.top+u/2).text(function(a){return a}),b}p.selectAll(".nv-noData").remove(),c=e.xScale(),d=e.yScale().clamp(!0);var w=p.selectAll("g.nv-wrap.nv-boxPlotWithAxes").data([k]),x=w.enter().append("g").attr("class","nvd3 nv-wrap nv-boxPlotWithAxes").append("g"),y=x.append("defs"),z=w.select("g");
-x.append("g").attr("class","nv-x nv-axis"),x.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),x.append("g").attr("class","nv-barsWrap"),z.attr("transform","translate("+h.left+","+h.top+")"),n&&z.select(".nv-y.nv-axis").attr("transform","translate("+t+",0)"),e.width(t).height(u);var A=z.select(".nv-barsWrap").datum(k.filter(function(a){return!a.disabled}));if(A.transition().call(e),y.append("clipPath").attr("id","nv-x-label-clip-"+e.id()).append("rect"),z.select("#nv-x-label-clip-"+e.id()+" rect").attr("width",c.rangeBand()*(o?2:1)).attr("height",16).attr("x",-c.rangeBand()/(o?1:2)),l){f.scale(c).ticks(a.utils.calcTicksX(t/100,k)).tickSize(-u,0),z.select(".nv-x.nv-axis").attr("transform","translate(0,"+d.range()[0]+")"),z.select(".nv-x.nv-axis").call(f);var B=z.select(".nv-x.nv-axis").selectAll("g");o&&B.selectAll("text").attr("transform",function(a,b,c){return"translate(0,"+(c%2==0?"5":"17")+")"})}m&&(g.scale(d).ticks(Math.floor(u/36)).tickSize(-t,0),z.select(".nv-y.nv-axis").call(g)),z.select(".nv-zeroLine line").attr("x1",0).attr("x2",t).attr("y1",d(0)).attr("y2",d(0))}),t.renderEnd("nv-boxplot chart immediate"),b}var c,d,e=a.models.boxPlot(),f=a.models.axis(),g=a.models.axis(),h={top:15,right:10,bottom:50,left:60},i=null,j=null,k=a.utils.getColor(),l=!0,m=!0,n=!1,o=!1,p=a.models.tooltip(),q="No Data Available.",r=d3.dispatch("tooltipShow","tooltipHide","beforeUpdate","renderEnd"),s=250;f.orient("bottom").showMaxMin(!1).tickFormat(function(a){return a}),g.orient(n?"right":"left").tickFormat(d3.format(",.1f")),p.duration(0);var t=a.utils.renderWatch(r,s);return e.dispatch.on("elementMouseover.tooltip",function(a){p.data(a).hidden(!1)}),e.dispatch.on("elementMouseout.tooltip",function(a){p.data(a).hidden(!0)}),e.dispatch.on("elementMousemove.tooltip",function(){p.position({top:d3.event.pageY,left:d3.event.pageX})()}),b.dispatch=r,b.boxplot=e,b.xAxis=f,b.yAxis=g,b.tooltip=p,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return i},set:function(a){i=a}},height:{get:function(){return j},set:function(a){j=a}},staggerLabels:{get:function(){return o},set:function(a){o=a}},showXAxis:{get:function(){return l},set:function(a){l=a}},showYAxis:{get:function(){return m},set:function(a){m=a}},tooltips:{get:function(){return tooltips},set:function(a){tooltips=a}},tooltipContent:{get:function(){return p},set:function(a){p=a}},noData:{get:function(){return q},set:function(a){q=a}},margin:{get:function(){return h},set:function(a){h.top=void 0!==a.top?a.top:h.top,h.right=void 0!==a.right?a.right:h.right,h.bottom=void 0!==a.bottom?a.bottom:h.bottom,h.left=void 0!==a.left?a.left:h.left}},duration:{get:function(){return s},set:function(a){s=a,t.reset(s),e.duration(s),f.duration(s),g.duration(s)}},color:{get:function(){return k},set:function(b){k=a.utils.getColor(b),e.color(k)}},rightAlignYAxis:{get:function(){return n},set:function(a){n=a,g.orient(a?"right":"left")}}}),a.utils.inheritOptions(b,e),a.utils.initOptions(b),b},a.models.bullet=function(){"use strict";function b(d){return d.each(function(b,d){var p=m-c.left-c.right,s=n-c.top-c.bottom;o=d3.select(this),a.utils.initSVG(o);{var t=f.call(this,b,d).slice().sort(d3.descending),u=g.call(this,b,d).slice().sort(d3.descending),v=h.call(this,b,d).slice().sort(d3.descending),w=i.call(this,b,d).slice(),x=j.call(this,b,d).slice(),y=k.call(this,b,d).slice(),z=d3.scale.linear().domain(d3.extent(d3.merge([l,t]))).range(e?[p,0]:[0,p]);this.__chart__||d3.scale.linear().domain([0,1/0]).range(z.range())}this.__chart__=z;var A=d3.min(t),B=d3.max(t),C=t[1],D=o.selectAll("g.nv-wrap.nv-bullet").data([b]),E=D.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet"),F=E.append("g"),G=D.select("g");F.append("rect").attr("class","nv-range nv-rangeMax"),F.append("rect").attr("class","nv-range nv-rangeAvg"),F.append("rect").attr("class","nv-range nv-rangeMin"),F.append("rect").attr("class","nv-measure"),D.attr("transform","translate("+c.left+","+c.top+")");var H=function(a){return Math.abs(z(a)-z(0))},I=function(a){return z(0>a?a:0)};G.select("rect.nv-rangeMax").attr("height",s).attr("width",H(B>0?B:A)).attr("x",I(B>0?B:A)).datum(B>0?B:A),G.select("rect.nv-rangeAvg").attr("height",s).attr("width",H(C)).attr("x",I(C)).datum(C),G.select("rect.nv-rangeMin").attr("height",s).attr("width",H(B)).attr("x",I(B)).attr("width",H(B>0?A:B)).attr("x",I(B>0?A:B)).datum(B>0?A:B),G.select("rect.nv-measure").style("fill",q).attr("height",s/3).attr("y",s/3).attr("width",0>v?z(0)-z(v[0]):z(v[0])-z(0)).attr("x",I(v)).on("mouseover",function(){r.elementMouseover({value:v[0],label:y[0]||"Current",color:d3.select(this).style("fill")})}).on("mousemove",function(){r.elementMousemove({value:v[0],label:y[0]||"Current",color:d3.select(this).style("fill")})}).on("mouseout",function(){r.elementMouseout({value:v[0],label:y[0]||"Current",color:d3.select(this).style("fill")})});var J=s/6,K=u.map(function(a,b){return{value:a,label:x[b]}});F.selectAll("path.nv-markerTriangle").data(K).enter().append("path").attr("class","nv-markerTriangle").attr("transform",function(a){return"translate("+z(a.value)+","+s/2+")"}).attr("d","M0,"+J+"L"+J+","+-J+" "+-J+","+-J+"Z").on("mouseover",function(a){r.elementMouseover({value:a.value,label:a.label||"Previous",color:d3.select(this).style("fill"),pos:[z(a.value),s/2]})}).on("mousemove",function(a){r.elementMousemove({value:a.value,label:a.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(a){r.elementMouseout({value:a.value,label:a.label||"Previous",color:d3.select(this).style("fill")})}),D.selectAll(".nv-range").on("mouseover",function(a,b){var c=w[b]||(b?1==b?"Mean":"Minimum":"Maximum");r.elementMouseover({value:a,label:c,color:d3.select(this).style("fill")})}).on("mousemove",function(){r.elementMousemove({value:v[0],label:y[0]||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(a,b){var c=w[b]||(b?1==b?"Mean":"Minimum":"Maximum");r.elementMouseout({value:a,label:c,color:d3.select(this).style("fill")})})}),b}var c={top:0,right:0,bottom:0,left:0},d="left",e=!1,f=function(a){return a.ranges},g=function(a){return a.markers?a.markers:[0]},h=function(a){return a.measures},i=function(a){return a.rangeLabels?a.rangeLabels:[]},j=function(a){return a.markerLabels?a.markerLabels:[]},k=function(a){return a.measureLabels?a.measureLabels:[]},l=[0],m=380,n=30,o=null,p=null,q=a.utils.getColor(["#1f77b4"]),r=d3.dispatch("elementMouseover","elementMouseout","elementMousemove");return b.dispatch=r,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{ranges:{get:function(){return f},set:function(a){f=a}},markers:{get:function(){return g},set:function(a){g=a}},measures:{get:function(){return h},set:function(a){h=a}},forceX:{get:function(){return l},set:function(a){l=a}},width:{get:function(){return m},set:function(a){m=a}},height:{get:function(){return n},set:function(a){n=a}},tickFormat:{get:function(){return p},set:function(a){p=a}},margin:{get:function(){return c},set:function(a){c.top=void 0!==a.top?a.top:c.top,c.right=void 0!==a.right?a.right:c.right,c.bottom=void 0!==a.bottom?a.bottom:c.bottom,c.left=void 0!==a.left?a.left:c.left}},orient:{get:function(){return d},set:function(a){d=a,e="right"==d||"bottom"==d}},color:{get:function(){return q},set:function(b){q=a.utils.getColor(b)}}}),a.utils.initOptions(b),b},a.models.bulletChart=function(){"use strict";function b(d){return d.each(function(e,o){var p=d3.select(this);a.utils.initSVG(p);var q=a.utils.availableWidth(k,p,g),r=l-g.top-g.bottom;if(b.update=function(){b(d)},b.container=this,!e||!h.call(this,e,o))return a.utils.noData(b,p),b;p.selectAll(".nv-noData").remove();var s=h.call(this,e,o).slice().sort(d3.descending),t=i.call(this,e,o).slice().sort(d3.descending),u=j.call(this,e,o).slice().sort(d3.descending),v=p.selectAll("g.nv-wrap.nv-bulletChart").data([e]),w=v.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart"),x=w.append("g"),y=v.select("g");x.append("g").attr("class","nv-bulletWrap"),x.append("g").attr("class","nv-titles"),v.attr("transform","translate("+g.left+","+g.top+")");var z=d3.scale.linear().domain([0,Math.max(s[0],t[0],u[0])]).range(f?[q,0]:[0,q]),A=this.__chart__||d3.scale.linear().domain([0,1/0]).range(z.range());this.__chart__=z;var B=x.select(".nv-titles").append("g").attr("text-anchor","end").attr("transform","translate(-6,"+(l-g.top-g.bottom)/2+")");B.append("text").attr("class","nv-title").text(function(a){return a.title}),B.append("text").attr("class","nv-subtitle").attr("dy","1em").text(function(a){return a.subtitle}),c.width(q).height(r);var C=y.select(".nv-bulletWrap");d3.transition(C).call(c);var D=m||z.tickFormat(q/100),E=y.selectAll("g.nv-tick").data(z.ticks(n?n:q/50),function(a){return this.textContent||D(a)}),F=E.enter().append("g").attr("class","nv-tick").attr("transform",function(a){return"translate("+A(a)+",0)"}).style("opacity",1e-6);F.append("line").attr("y1",r).attr("y2",7*r/6),F.append("text").attr("text-anchor","middle").attr("dy","1em").attr("y",7*r/6).text(D);var G=d3.transition(E).attr("transform",function(a){return"translate("+z(a)+",0)"}).style("opacity",1);G.select("line").attr("y1",r).attr("y2",7*r/6),G.select("text").attr("y",7*r/6),d3.transition(E.exit()).attr("transform",function(a){return"translate("+z(a)+",0)"}).style("opacity",1e-6).remove()}),d3.timer.flush(),b}var c=a.models.bullet(),d=a.models.tooltip(),e="left",f=!1,g={top:5,right:40,bottom:20,left:120},h=function(a){return a.ranges},i=function(a){return a.markers?a.markers:[0]},j=function(a){return a.measures},k=null,l=55,m=null,n=null,o=null,p=d3.dispatch("tooltipShow","tooltipHide");return d.duration(0).headerEnabled(!1),c.dispatch.on("elementMouseover.tooltip",function(a){a.series={key:a.label,value:a.value,color:a.color},d.data(a).hidden(!1)}),c.dispatch.on("elementMouseout.tooltip",function(){d.hidden(!0)}),c.dispatch.on("elementMousemove.tooltip",function(){d.position({top:d3.event.pageY,left:d3.event.pageX})()}),b.bullet=c,b.dispatch=p,b.tooltip=d,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{ranges:{get:function(){return h},set:function(a){h=a}},markers:{get:function(){return i},set:function(a){i=a}},measures:{get:function(){return j},set:function(a){j=a}},width:{get:function(){return k},set:function(a){k=a}},height:{get:function(){return l},set:function(a){l=a}},tickFormat:{get:function(){return m},set:function(a){m=a}},ticks:{get:function(){return n},set:function(a){n=a}},noData:{get:function(){return o},set:function(a){o=a}},tooltips:{get:function(){return d.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),d.enabled(!!b)}},tooltipContent:{get:function(){return d.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),d.contentGenerator(b)}},margin:{get:function(){return g},set:function(a){g.top=void 0!==a.top?a.top:g.top,g.right=void 0!==a.right?a.right:g.right,g.bottom=void 0!==a.bottom?a.bottom:g.bottom,g.left=void 0!==a.left?a.left:g.left}},orient:{get:function(){return e},set:function(a){e=a,f="right"==e||"bottom"==e}}}),a.utils.inheritOptions(b,c),a.utils.initOptions(b),b},a.models.candlestickBar=function(){"use strict";function b(x){return x.each(function(b){c=d3.select(this);var x=a.utils.availableWidth(i,c,h),y=a.utils.availableHeight(j,c,h);a.utils.initSVG(c);var A=x/b[0].values.length*.45;l.domain(d||d3.extent(b[0].values.map(n).concat(t))),l.range(v?f||[.5*x/b[0].values.length,x*(b[0].values.length-.5)/b[0].values.length]:f||[5+A/2,x-A/2-5]),m.domain(e||[d3.min(b[0].values.map(s).concat(u)),d3.max(b[0].values.map(r).concat(u))]).range(g||[y,0]),l.domain()[0]===l.domain()[1]&&l.domain(l.domain()[0]?[l.domain()[0]-.01*l.domain()[0],l.domain()[1]+.01*l.domain()[1]]:[-1,1]),m.domain()[0]===m.domain()[1]&&m.domain(m.domain()[0]?[m.domain()[0]+.01*m.domain()[0],m.domain()[1]-.01*m.domain()[1]]:[-1,1]);var B=d3.select(this).selectAll("g.nv-wrap.nv-candlestickBar").data([b[0].values]),C=B.enter().append("g").attr("class","nvd3 nv-wrap nv-candlestickBar"),D=C.append("defs"),E=C.append("g"),F=B.select("g");E.append("g").attr("class","nv-ticks"),B.attr("transform","translate("+h.left+","+h.top+")"),c.on("click",function(a,b){z.chartClick({data:a,index:b,pos:d3.event,id:k})}),D.append("clipPath").attr("id","nv-chart-clip-path-"+k).append("rect"),B.select("#nv-chart-clip-path-"+k+" rect").attr("width",x).attr("height",y),F.attr("clip-path",w?"url(#nv-chart-clip-path-"+k+")":"");var G=B.select(".nv-ticks").selectAll(".nv-tick").data(function(a){return a});G.exit().remove();{var H=G.enter().append("g").attr("class",function(a,b,c){return(p(a,b)>q(a,b)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+c+"-"+b});H.append("line").attr("class","nv-candlestick-lines").attr("transform",function(a,b){return"translate("+l(n(a,b))+",0)"}).attr("x1",0).attr("y1",function(a,b){return m(r(a,b))}).attr("x2",0).attr("y2",function(a,b){return m(s(a,b))}),H.append("rect").attr("class","nv-candlestick-rects nv-bars").attr("transform",function(a,b){return"translate("+(l(n(a,b))-A/2)+","+(m(o(a,b))-(p(a,b)>q(a,b)?m(q(a,b))-m(p(a,b)):0))+")"}).attr("x",0).attr("y",0).attr("width",A).attr("height",function(a,b){var c=p(a,b),d=q(a,b);return c>d?m(d)-m(c):m(c)-m(d)})}c.selectAll(".nv-candlestick-lines").transition().attr("transform",function(a,b){return"translate("+l(n(a,b))+",0)"}).attr("x1",0).attr("y1",function(a,b){return m(r(a,b))}).attr("x2",0).attr("y2",function(a,b){return m(s(a,b))}),c.selectAll(".nv-candlestick-rects").transition().attr("transform",function(a,b){return"translate("+(l(n(a,b))-A/2)+","+(m(o(a,b))-(p(a,b)>q(a,b)?m(q(a,b))-m(p(a,b)):0))+")"}).attr("x",0).attr("y",0).attr("width",A).attr("height",function(a,b){var c=p(a,b),d=q(a,b);return c>d?m(d)-m(c):m(c)-m(d)})}),b}var c,d,e,f,g,h={top:0,right:0,bottom:0,left:0},i=null,j=null,k=Math.floor(1e4*Math.random()),l=d3.scale.linear(),m=d3.scale.linear(),n=function(a){return a.x},o=function(a){return a.y},p=function(a){return a.open},q=function(a){return a.close},r=function(a){return a.high},s=function(a){return a.low},t=[],u=[],v=!1,w=!0,x=a.utils.defaultColor(),y=!1,z=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");return b.highlightPoint=function(a,d){b.clearHighlights(),c.select(".nv-candlestickBar .nv-tick-0-"+a).classed("hover",d)},b.clearHighlights=function(){c.select(".nv-candlestickBar .nv-tick.hover").classed("hover",!1)},b.dispatch=z,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return i},set:function(a){i=a}},height:{get:function(){return j},set:function(a){j=a}},xScale:{get:function(){return l},set:function(a){l=a}},yScale:{get:function(){return m},set:function(a){m=a}},xDomain:{get:function(){return d},set:function(a){d=a}},yDomain:{get:function(){return e},set:function(a){e=a}},xRange:{get:function(){return f},set:function(a){f=a}},yRange:{get:function(){return g},set:function(a){g=a}},forceX:{get:function(){return t},set:function(a){t=a}},forceY:{get:function(){return u},set:function(a){u=a}},padData:{get:function(){return v},set:function(a){v=a}},clipEdge:{get:function(){return w},set:function(a){w=a}},id:{get:function(){return k},set:function(a){k=a}},interactive:{get:function(){return y},set:function(a){y=a}},x:{get:function(){return n},set:function(a){n=a}},y:{get:function(){return o},set:function(a){o=a}},open:{get:function(){return p()},set:function(a){p=a}},close:{get:function(){return q()},set:function(a){q=a}},high:{get:function(){return r},set:function(a){r=a}},low:{get:function(){return s},set:function(a){s=a}},margin:{get:function(){return h},set:function(a){h.top=void 0!=a.top?a.top:h.top,h.right=void 0!=a.right?a.right:h.right,h.bottom=void 0!=a.bottom?a.bottom:h.bottom,h.left=void 0!=a.left?a.left:h.left}},color:{get:function(){return x},set:function(b){x=a.utils.getColor(b)}}}),a.utils.initOptions(b),b},a.models.cumulativeLineChart=function(){"use strict";function b(l){return H.reset(),H.models(f),r&&H.models(g),s&&H.models(h),l.each(function(l){function A(){d3.select(b.container).style("cursor","ew-resize")}function E(){G.x=d3.event.x,G.i=Math.round(F.invert(G.x)),K()}function H(){d3.select(b.container).style("cursor","auto"),y.index=G.i,C.stateChange(y)}function K(){bb.data([G]);var a=b.duration();b.duration(0),b.update(),b.duration(a)}var L=d3.select(this);a.utils.initSVG(L),L.classed("nv-chart-"+x,!0);var M=this,N=a.utils.availableWidth(o,L,m),O=a.utils.availableHeight(p,L,m);if(b.update=function(){0===D?L.call(b):L.transition().duration(D).call(b)},b.container=this,y.setter(J(l),b.update).getter(I(l)).update(),y.disabled=l.map(function(a){return!!a.disabled}),!z){var P;z={};for(P in y)z[P]=y[P]instanceof Array?y[P].slice(0):y[P]}var Q=d3.behavior.drag().on("dragstart",A).on("drag",E).on("dragend",H);if(!(l&&l.length&&l.filter(function(a){return a.values.length}).length))return a.utils.noData(b,L),b;if(L.selectAll(".nv-noData").remove(),d=f.xScale(),e=f.yScale(),w)f.yDomain(null);else{var R=l.filter(function(a){return!a.disabled}).map(function(a){var b=d3.extent(a.values,f.y());return b[0]<-.95&&(b[0]=-.95),[(b[0]-b[1])/(1+b[1]),(b[1]-b[0])/(1+b[0])]}),S=[d3.min(R,function(a){return a[0]}),d3.max(R,function(a){return a[1]})];f.yDomain(S)}F.domain([0,l[0].values.length-1]).range([0,N]).clamp(!0);var l=c(G.i,l),T=v?"none":"all",U=L.selectAll("g.nv-wrap.nv-cumulativeLine").data([l]),V=U.enter().append("g").attr("class","nvd3 nv-wrap nv-cumulativeLine").append("g"),W=U.select("g");if(V.append("g").attr("class","nv-interactive"),V.append("g").attr("class","nv-x nv-axis").style("pointer-events","none"),V.append("g").attr("class","nv-y nv-axis"),V.append("g").attr("class","nv-background"),V.append("g").attr("class","nv-linesWrap").style("pointer-events",T),V.append("g").attr("class","nv-avgLinesWrap").style("pointer-events","none"),V.append("g").attr("class","nv-legendWrap"),V.append("g").attr("class","nv-controlsWrap"),q&&(i.width(N),W.select(".nv-legendWrap").datum(l).call(i),m.top!=i.height()&&(m.top=i.height(),O=a.utils.availableHeight(p,L,m)),W.select(".nv-legendWrap").attr("transform","translate(0,"+-m.top+")")),u){var X=[{key:"Re-scale y-axis",disabled:!w}];j.width(140).color(["#444","#444","#444"]).rightAlign(!1).margin({top:5,right:0,bottom:5,left:20}),W.select(".nv-controlsWrap").datum(X).attr("transform","translate(0,"+-m.top+")").call(j)}U.attr("transform","translate("+m.left+","+m.top+")"),t&&W.select(".nv-y.nv-axis").attr("transform","translate("+N+",0)");var Y=l.filter(function(a){return a.tempDisabled});U.select(".tempDisabled").remove(),Y.length&&U.append("text").attr("class","tempDisabled").attr("x",N/2).attr("y","-.71em").style("text-anchor","end").text(Y.map(function(a){return a.key}).join(", ")+" values cannot be calculated for this time period."),v&&(k.width(N).height(O).margin({left:m.left,top:m.top}).svgContainer(L).xScale(d),U.select(".nv-interactive").call(k)),V.select(".nv-background").append("rect"),W.select(".nv-background rect").attr("width",N).attr("height",O),f.y(function(a){return a.display.y}).width(N).height(O).color(l.map(function(a,b){return a.color||n(a,b)}).filter(function(a,b){return!l[b].disabled&&!l[b].tempDisabled}));var Z=W.select(".nv-linesWrap").datum(l.filter(function(a){return!a.disabled&&!a.tempDisabled}));Z.call(f),l.forEach(function(a,b){a.seriesIndex=b});var $=l.filter(function(a){return!a.disabled&&!!B(a)}),_=W.select(".nv-avgLinesWrap").selectAll("line").data($,function(a){return a.key}),ab=function(a){var b=e(B(a));return 0>b?0:b>O?O:b};_.enter().append("line").style("stroke-width",2).style("stroke-dasharray","10,10").style("stroke",function(a){return f.color()(a,a.seriesIndex)}).attr("x1",0).attr("x2",N).attr("y1",ab).attr("y2",ab),_.style("stroke-opacity",function(a){var b=e(B(a));return 0>b||b>O?0:1}).attr("x1",0).attr("x2",N).attr("y1",ab).attr("y2",ab),_.exit().remove();var bb=Z.selectAll(".nv-indexLine").data([G]);bb.enter().append("rect").attr("class","nv-indexLine").attr("width",3).attr("x",-2).attr("fill","red").attr("fill-opacity",.5).style("pointer-events","all").call(Q),bb.attr("transform",function(a){return"translate("+F(a.i)+",0)"}).attr("height",O),r&&(g.scale(d)._ticks(a.utils.calcTicksX(N/70,l)).tickSize(-O,0),W.select(".nv-x.nv-axis").attr("transform","translate(0,"+e.range()[0]+")"),W.select(".nv-x.nv-axis").call(g)),s&&(h.scale(e)._ticks(a.utils.calcTicksY(O/36,l)).tickSize(-N,0),W.select(".nv-y.nv-axis").call(h)),W.select(".nv-background rect").on("click",function(){G.x=d3.mouse(this)[0],G.i=Math.round(F.invert(G.x)),y.index=G.i,C.stateChange(y),K()}),f.dispatch.on("elementClick",function(a){G.i=a.pointIndex,G.x=F(G.i),y.index=G.i,C.stateChange(y),K()}),j.dispatch.on("legendClick",function(a){a.disabled=!a.disabled,w=!a.disabled,y.rescaleY=w,C.stateChange(y),b.update()}),i.dispatch.on("stateChange",function(a){for(var c in a)y[c]=a[c];C.stateChange(y),b.update()}),k.dispatch.on("elementMousemove",function(c){f.clearHighlights();var d,e,i,j=[];if(l.filter(function(a,b){return a.seriesIndex=b,!a.disabled}).forEach(function(g,h){e=a.interactiveBisect(g.values,c.pointXValue,b.x()),f.highlightPoint(h,e,!0);var k=g.values[e];"undefined"!=typeof k&&("undefined"==typeof d&&(d=k),"undefined"==typeof i&&(i=b.xScale()(b.x()(k,e))),j.push({key:g.key,value:b.y()(k,e),color:n(g,g.seriesIndex)}))}),j.length>2){var o=b.yScale().invert(c.mouseY),p=Math.abs(b.yScale().domain()[0]-b.yScale().domain()[1]),q=.03*p,r=a.nearestValueIndex(j.map(function(a){return a.value}),o,q);null!==r&&(j[r].highlight=!0)}var s=g.tickFormat()(b.x()(d,e),e);k.tooltip.position({left:i+m.left,top:c.mouseY+m.top}).chartContainer(M.parentNode).valueFormatter(function(a){return h.tickFormat()(a)}).data({value:s,series:j})(),k.renderGuideLine(i)}),k.dispatch.on("elementMouseout",function(){f.clearHighlights()}),C.on("changeState",function(a){"undefined"!=typeof a.disabled&&(l.forEach(function(b,c){b.disabled=a.disabled[c]}),y.disabled=a.disabled),"undefined"!=typeof a.index&&(G.i=a.index,G.x=F(G.i),y.index=a.index,bb.data([G])),"undefined"!=typeof a.rescaleY&&(w=a.rescaleY),b.update()})}),H.renderEnd("cumulativeLineChart immediate"),b}function c(a,b){return K||(K=f.y()),b.map(function(b){if(!b.values)return b;var c=b.values[a];if(null==c)return b;var d=K(c,a);return-.95>d&&!E?(b.tempDisabled=!0,b):(b.tempDisabled=!1,b.values=b.values.map(function(a,b){return a.display={y:(K(a,b)-d)/(1+d)},a}),b)})}var d,e,f=a.models.line(),g=a.models.axis(),h=a.models.axis(),i=a.models.legend(),j=a.models.legend(),k=a.interactiveGuideline(),l=a.models.tooltip(),m={top:30,right:30,bottom:50,left:60},n=a.utils.defaultColor(),o=null,p=null,q=!0,r=!0,s=!0,t=!1,u=!0,v=!1,w=!0,x=f.id(),y=a.utils.state(),z=null,A=null,B=function(a){return a.average},C=d3.dispatch("stateChange","changeState","renderEnd"),D=250,E=!1;y.index=0,y.rescaleY=w,g.orient("bottom").tickPadding(7),h.orient(t?"right":"left"),l.valueFormatter(function(a,b){return h.tickFormat()(a,b)}).headerFormatter(function(a,b){return g.tickFormat()(a,b)}),j.updateState(!1);var F=d3.scale.linear(),G={i:0,x:0},H=a.utils.renderWatch(C,D),I=function(a){return function(){return{active:a.map(function(a){return!a.disabled}),index:G.i,rescaleY:w}}},J=function(a){return function(b){void 0!==b.index&&(G.i=b.index),void 0!==b.rescaleY&&(w=b.rescaleY),void 0!==b.active&&a.forEach(function(a,c){a.disabled=!b.active[c]})}};f.dispatch.on("elementMouseover.tooltip",function(a){var c={x:b.x()(a.point),y:b.y()(a.point),color:a.point.color};a.point=c,l.data(a).position(a.pos).hidden(!1)}),f.dispatch.on("elementMouseout.tooltip",function(){l.hidden(!0)});var K=null;return b.dispatch=C,b.lines=f,b.legend=i,b.controls=j,b.xAxis=g,b.yAxis=h,b.interactiveLayer=k,b.state=y,b.tooltip=l,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return o},set:function(a){o=a}},height:{get:function(){return p},set:function(a){p=a}},rescaleY:{get:function(){return w},set:function(a){w=a}},showControls:{get:function(){return u},set:function(a){u=a}},showLegend:{get:function(){return q},set:function(a){q=a}},average:{get:function(){return B},set:function(a){B=a}},defaultState:{get:function(){return z},set:function(a){z=a}},noData:{get:function(){return A},set:function(a){A=a}},showXAxis:{get:function(){return r},set:function(a){r=a}},showYAxis:{get:function(){return s},set:function(a){s=a}},noErrorCheck:{get:function(){return E},set:function(a){E=a}},tooltips:{get:function(){return l.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),l.enabled(!!b)}},tooltipContent:{get:function(){return l.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),l.contentGenerator(b)}},margin:{get:function(){return m},set:function(a){m.top=void 0!==a.top?a.top:m.top,m.right=void 0!==a.right?a.right:m.right,m.bottom=void 0!==a.bottom?a.bottom:m.bottom,m.left=void 0!==a.left?a.left:m.left}},color:{get:function(){return n},set:function(b){n=a.utils.getColor(b),i.color(n)}},useInteractiveGuideline:{get:function(){return v},set:function(a){v=a,a===!0&&(b.interactive(!1),b.useVoronoi(!1))}},rightAlignYAxis:{get:function(){return t},set:function(a){t=a,h.orient(a?"right":"left")}},duration:{get:function(){return D},set:function(a){D=a,f.duration(D),g.duration(D),h.duration(D),H.reset(D)}}}),a.utils.inheritOptions(b,f),a.utils.initOptions(b),b},a.models.discreteBar=function(){"use strict";function b(m){return y.reset(),m.each(function(b){var m=k-j.left-j.right,x=l-j.top-j.bottom;c=d3.select(this),a.utils.initSVG(c),b.forEach(function(a,b){a.values.forEach(function(a){a.series=b})});var z=d&&e?[]:b.map(function(a){return a.values.map(function(a,b){return{x:p(a,b),y:q(a,b),y0:a.y0}})});n.domain(d||d3.merge(z).map(function(a){return a.x})).rangeBands(f||[0,m],.1),o.domain(e||d3.extent(d3.merge(z).map(function(a){return a.y}).concat(r))),o.range(t?g||[x-(o.domain()[0]<0?12:0),o.domain()[1]>0?12:0]:g||[x,0]),h=h||n,i=i||o.copy().range([o(0),o(0)]);{var A=c.selectAll("g.nv-wrap.nv-discretebar").data([b]),B=A.enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar"),C=B.append("g");A.select("g")}C.append("g").attr("class","nv-groups"),A.attr("transform","translate("+j.left+","+j.top+")");var D=A.select(".nv-groups").selectAll(".nv-group").data(function(a){return a},function(a){return a.key});D.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),D.exit().watchTransition(y,"discreteBar: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),D.attr("class",function(a,b){return"nv-group nv-series-"+b}).classed("hover",function(a){return a.hover}),D.watchTransition(y,"discreteBar: groups").style("stroke-opacity",1).style("fill-opacity",.75);var E=D.selectAll("g.nv-bar").data(function(a){return a.values});E.exit().remove();var F=E.enter().append("g").attr("transform",function(a,b){return"translate("+(n(p(a,b))+.05*n.rangeBand())+", "+o(0)+")"}).on("mouseover",function(a,b){d3.select(this).classed("hover",!0),v.elementMouseover({data:a,index:b,color:d3.select(this).style("fill")})}).on("mouseout",function(a,b){d3.select(this).classed("hover",!1),v.elementMouseout({data:a,index:b,color:d3.select(this).style("fill")})}).on("mousemove",function(a,b){v.elementMousemove({data:a,index:b,color:d3.select(this).style("fill")})}).on("click",function(a,b){v.elementClick({data:a,index:b,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}).on("dblclick",function(a,b){v.elementDblClick({data:a,index:b,color:d3.select(this).style("fill")}),d3.event.stopPropagation()});F.append("rect").attr("height",0).attr("width",.9*n.rangeBand()/b.length),t?(F.append("text").attr("text-anchor","middle"),E.select("text").text(function(a,b){return u(q(a,b))}).watchTransition(y,"discreteBar: bars text").attr("x",.9*n.rangeBand()/2).attr("y",function(a,b){return q(a,b)<0?o(q(a,b))-o(0)+12:-4})):E.selectAll("text").remove(),E.attr("class",function(a,b){return q(a,b)<0?"nv-bar negative":"nv-bar positive"}).style("fill",function(a,b){return a.color||s(a,b)}).style("stroke",function(a,b){return a.color||s(a,b)}).select("rect").attr("class",w).watchTransition(y,"discreteBar: bars rect").attr("width",.9*n.rangeBand()/b.length),E.watchTransition(y,"discreteBar: bars").attr("transform",function(a,b){var c=n(p(a,b))+.05*n.rangeBand(),d=q(a,b)<0?o(0):o(0)-o(q(a,b))<1?o(0)-1:o(q(a,b));return"translate("+c+", "+d+")"}).select("rect").attr("height",function(a,b){return Math.max(Math.abs(o(q(a,b))-o(e&&e[0]||0))||1)}),h=n.copy(),i=o.copy()}),y.renderEnd("discreteBar immediate"),b}var c,d,e,f,g,h,i,j={top:0,right:0,bottom:0,left:0},k=960,l=500,m=Math.floor(1e4*Math.random()),n=d3.scale.ordinal(),o=d3.scale.linear(),p=function(a){return a.x},q=function(a){return a.y},r=[0],s=a.utils.defaultColor(),t=!1,u=d3.format(",.2f"),v=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),w="discreteBar",x=250,y=a.utils.renderWatch(v,x);return b.dispatch=v,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return k},set:function(a){k=a}},height:{get:function(){return l},set:function(a){l=a}},forceY:{get:function(){return r},set:function(a){r=a}},showValues:{get:function(){return t},set:function(a){t=a}},x:{get:function(){return p},set:function(a){p=a}},y:{get:function(){return q},set:function(a){q=a}},xScale:{get:function(){return n},set:function(a){n=a}},yScale:{get:function(){return o},set:function(a){o=a}},xDomain:{get:function(){return d},set:function(a){d=a}},yDomain:{get:function(){return e},set:function(a){e=a}},xRange:{get:function(){return f},set:function(a){f=a}},yRange:{get:function(){return g},set:function(a){g=a}},valueFormat:{get:function(){return u},set:function(a){u=a}},id:{get:function(){return m},set:function(a){m=a}},rectClass:{get:function(){return w},set:function(a){w=a}},margin:{get:function(){return j},set:function(a){j.top=void 0!==a.top?a.top:j.top,j.right=void 0!==a.right?a.right:j.right,j.bottom=void 0!==a.bottom?a.bottom:j.bottom,j.left=void 0!==a.left?a.left:j.left}},color:{get:function(){return s},set:function(b){s=a.utils.getColor(b)}},duration:{get:function(){return x},set:function(a){x=a,y.reset(x)}}}),a.utils.initOptions(b),b},a.models.discreteBarChart=function(){"use strict";function b(h){return t.reset(),t.models(e),m&&t.models(f),n&&t.models(g),h.each(function(h){var l=d3.select(this);a.utils.initSVG(l);var q=a.utils.availableWidth(j,l,i),t=a.utils.availableHeight(k,l,i);if(b.update=function(){r.beforeUpdate(),l.transition().duration(s).call(b)},b.container=this,!(h&&h.length&&h.filter(function(a){return a.values.length}).length))return a.utils.noData(b,l),b;l.selectAll(".nv-noData").remove(),c=e.xScale(),d=e.yScale().clamp(!0);var u=l.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([h]),v=u.enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g"),w=v.append("defs"),x=u.select("g");v.append("g").attr("class","nv-x nv-axis"),v.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),v.append("g").attr("class","nv-barsWrap"),x.attr("transform","translate("+i.left+","+i.top+")"),o&&x.select(".nv-y.nv-axis").attr("transform","translate("+q+",0)"),e.width(q).height(t);var y=x.select(".nv-barsWrap").datum(h.filter(function(a){return!a.disabled}));if(y.transition().call(e),w.append("clipPath").attr("id","nv-x-label-clip-"+e.id()).append("rect"),x.select("#nv-x-label-clip-"+e.id()+" rect").attr("width",c.rangeBand()*(p?2:1)).attr("height",16).attr("x",-c.rangeBand()/(p?1:2)),m){f.scale(c)._ticks(a.utils.calcTicksX(q/100,h)).tickSize(-t,0),x.select(".nv-x.nv-axis").attr("transform","translate(0,"+(d.range()[0]+(e.showValues()&&d.domain()[0]<0?16:0))+")"),x.select(".nv-x.nv-axis").call(f);
-var z=x.select(".nv-x.nv-axis").selectAll("g");p&&z.selectAll("text").attr("transform",function(a,b,c){return"translate(0,"+(c%2==0?"5":"17")+")"})}n&&(g.scale(d)._ticks(a.utils.calcTicksY(t/36,h)).tickSize(-q,0),x.select(".nv-y.nv-axis").call(g)),x.select(".nv-zeroLine line").attr("x1",0).attr("x2",q).attr("y1",d(0)).attr("y2",d(0))}),t.renderEnd("discreteBar chart immediate"),b}var c,d,e=a.models.discreteBar(),f=a.models.axis(),g=a.models.axis(),h=a.models.tooltip(),i={top:15,right:10,bottom:50,left:60},j=null,k=null,l=a.utils.getColor(),m=!0,n=!0,o=!1,p=!1,q=null,r=d3.dispatch("beforeUpdate","renderEnd"),s=250;f.orient("bottom").showMaxMin(!1).tickFormat(function(a){return a}),g.orient(o?"right":"left").tickFormat(d3.format(",.1f")),h.duration(0).headerEnabled(!1).valueFormatter(function(a,b){return g.tickFormat()(a,b)}).keyFormatter(function(a,b){return f.tickFormat()(a,b)});var t=a.utils.renderWatch(r,s);return e.dispatch.on("elementMouseover.tooltip",function(a){a.series={key:b.x()(a.data),value:b.y()(a.data),color:a.color},h.data(a).hidden(!1)}),e.dispatch.on("elementMouseout.tooltip",function(){h.hidden(!0)}),e.dispatch.on("elementMousemove.tooltip",function(){h.position({top:d3.event.pageY,left:d3.event.pageX})()}),b.dispatch=r,b.discretebar=e,b.xAxis=f,b.yAxis=g,b.tooltip=h,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return j},set:function(a){j=a}},height:{get:function(){return k},set:function(a){k=a}},staggerLabels:{get:function(){return p},set:function(a){p=a}},showXAxis:{get:function(){return m},set:function(a){m=a}},showYAxis:{get:function(){return n},set:function(a){n=a}},noData:{get:function(){return q},set:function(a){q=a}},tooltips:{get:function(){return h.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),h.enabled(!!b)}},tooltipContent:{get:function(){return h.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),h.contentGenerator(b)}},margin:{get:function(){return i},set:function(a){i.top=void 0!==a.top?a.top:i.top,i.right=void 0!==a.right?a.right:i.right,i.bottom=void 0!==a.bottom?a.bottom:i.bottom,i.left=void 0!==a.left?a.left:i.left}},duration:{get:function(){return s},set:function(a){s=a,t.reset(s),e.duration(s),f.duration(s),g.duration(s)}},color:{get:function(){return l},set:function(b){l=a.utils.getColor(b),e.color(l)}},rightAlignYAxis:{get:function(){return o},set:function(a){o=a,g.orient(a?"right":"left")}}}),a.utils.inheritOptions(b,e),a.utils.initOptions(b),b},a.models.distribution=function(){"use strict";function b(k){return m.reset(),k.each(function(b){var k=(e-("x"===g?d.left+d.right:d.top+d.bottom),"x"==g?"y":"x"),l=d3.select(this);a.utils.initSVG(l),c=c||j;var n=l.selectAll("g.nv-distribution").data([b]),o=n.enter().append("g").attr("class","nvd3 nv-distribution"),p=(o.append("g"),n.select("g"));n.attr("transform","translate("+d.left+","+d.top+")");var q=p.selectAll("g.nv-dist").data(function(a){return a},function(a){return a.key});q.enter().append("g"),q.attr("class",function(a,b){return"nv-dist nv-series-"+b}).style("stroke",function(a,b){return i(a,b)});var r=q.selectAll("line.nv-dist"+g).data(function(a){return a.values});r.enter().append("line").attr(g+"1",function(a,b){return c(h(a,b))}).attr(g+"2",function(a,b){return c(h(a,b))}),m.transition(q.exit().selectAll("line.nv-dist"+g),"dist exit").attr(g+"1",function(a,b){return j(h(a,b))}).attr(g+"2",function(a,b){return j(h(a,b))}).style("stroke-opacity",0).remove(),r.attr("class",function(a,b){return"nv-dist"+g+" nv-dist"+g+"-"+b}).attr(k+"1",0).attr(k+"2",f),m.transition(r,"dist").attr(g+"1",function(a,b){return j(h(a,b))}).attr(g+"2",function(a,b){return j(h(a,b))}),c=j.copy()}),m.renderEnd("distribution immediate"),b}var c,d={top:0,right:0,bottom:0,left:0},e=400,f=8,g="x",h=function(a){return a[g]},i=a.utils.defaultColor(),j=d3.scale.linear(),k=250,l=d3.dispatch("renderEnd"),m=a.utils.renderWatch(l,k);return b.options=a.utils.optionsFunc.bind(b),b.dispatch=l,b.margin=function(a){return arguments.length?(d.top="undefined"!=typeof a.top?a.top:d.top,d.right="undefined"!=typeof a.right?a.right:d.right,d.bottom="undefined"!=typeof a.bottom?a.bottom:d.bottom,d.left="undefined"!=typeof a.left?a.left:d.left,b):d},b.width=function(a){return arguments.length?(e=a,b):e},b.axis=function(a){return arguments.length?(g=a,b):g},b.size=function(a){return arguments.length?(f=a,b):f},b.getData=function(a){return arguments.length?(h=d3.functor(a),b):h},b.scale=function(a){return arguments.length?(j=a,b):j},b.color=function(c){return arguments.length?(i=a.utils.getColor(c),b):i},b.duration=function(a){return arguments.length?(k=a,m.reset(k),b):k},b},a.models.furiousLegend=function(){"use strict";function b(p){function q(a,b){return"furious"!=o?"#000":m?a.disengaged?g(a,b):"#fff":m?void 0:a.disabled?g(a,b):"#fff"}function r(a,b){return m&&"furious"==o?a.disengaged?"#fff":g(a,b):a.disabled?"#fff":g(a,b)}return p.each(function(b){var p=d-c.left-c.right,s=d3.select(this);a.utils.initSVG(s);var t=s.selectAll("g.nv-legend").data([b]),u=(t.enter().append("g").attr("class","nvd3 nv-legend").append("g"),t.select("g"));t.attr("transform","translate("+c.left+","+c.top+")");var v,w=u.selectAll(".nv-series").data(function(a){return"furious"!=o?a:a.filter(function(a){return m?!0:!a.disengaged})}),x=w.enter().append("g").attr("class","nv-series");if("classic"==o)x.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),v=w.select("circle");else if("furious"==o){x.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),v=w.select("rect"),x.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)");var y=w.select(".nv-check-box");y.each(function(a,b){d3.select(this).selectAll("path").attr("stroke",q(a,b))})}x.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var z=w.select("text.nv-legend-text");w.on("mouseover",function(a,b){n.legendMouseover(a,b)}).on("mouseout",function(a,b){n.legendMouseout(a,b)}).on("click",function(a,b){n.legendClick(a,b);var c=w.data();if(k){if("classic"==o)l?(c.forEach(function(a){a.disabled=!0}),a.disabled=!1):(a.disabled=!a.disabled,c.every(function(a){return a.disabled})&&c.forEach(function(a){a.disabled=!1}));else if("furious"==o)if(m)a.disengaged=!a.disengaged,a.userDisabled=void 0==a.userDisabled?!!a.disabled:a.userDisabled,a.disabled=a.disengaged||a.userDisabled;else if(!m){a.disabled=!a.disabled,a.userDisabled=a.disabled;var d=c.filter(function(a){return!a.disengaged});d.every(function(a){return a.userDisabled})&&c.forEach(function(a){a.disabled=a.userDisabled=!1})}n.stateChange({disabled:c.map(function(a){return!!a.disabled}),disengaged:c.map(function(a){return!!a.disengaged})})}}).on("dblclick",function(a,b){if(("furious"!=o||!m)&&(n.legendDblclick(a,b),k)){var c=w.data();c.forEach(function(a){a.disabled=!0,"furious"==o&&(a.userDisabled=a.disabled)}),a.disabled=!1,"furious"==o&&(a.userDisabled=a.disabled),n.stateChange({disabled:c.map(function(a){return!!a.disabled})})}}),w.classed("nv-disabled",function(a){return a.userDisabled}),w.exit().remove(),z.attr("fill",q).text(f);var A;switch(o){case"furious":A=23;break;case"classic":A=20}if(h){var B=[];w.each(function(){var b,c=d3.select(this).select("text");try{if(b=c.node().getComputedTextLength(),0>=b)throw Error()}catch(d){b=a.utils.calcApproxTextWidth(c)}B.push(b+i)});for(var C=0,D=0,E=[];p>D&&C<B.length;)E[C]=B[C],D+=B[C++];for(0===C&&(C=1);D>p&&C>1;){E=[],C--;for(var F=0;F<B.length;F++)B[F]>(E[F%C]||0)&&(E[F%C]=B[F]);D=E.reduce(function(a,b){return a+b})}for(var G=[],H=0,I=0;C>H;H++)G[H]=I,I+=E[H];w.attr("transform",function(a,b){return"translate("+G[b%C]+","+(5+Math.floor(b/C)*A)+")"}),j?u.attr("transform","translate("+(d-c.right-D)+","+c.top+")"):u.attr("transform","translate(0,"+c.top+")"),e=c.top+c.bottom+Math.ceil(B.length/C)*A}else{var J,K=5,L=5,M=0;w.attr("transform",function(){var a=d3.select(this).select("text").node().getComputedTextLength()+i;return J=L,d<c.left+c.right+J+a&&(L=J=5,K+=A),L+=a,L>M&&(M=L),"translate("+J+","+K+")"}),u.attr("transform","translate("+(d-c.right-M)+","+c.top+")"),e=c.top+c.bottom+K+15}"furious"==o&&v.attr("width",function(a,b){return z[0][b].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),v.style("fill",r).style("stroke",function(a,b){return a.color||g(a,b)})}),b}var c={top:5,right:0,bottom:5,left:0},d=400,e=20,f=function(a){return a.key},g=a.utils.getColor(),h=!0,i=28,j=!0,k=!0,l=!1,m=!1,n=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),o="classic";return b.dispatch=n,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return d},set:function(a){d=a}},height:{get:function(){return e},set:function(a){e=a}},key:{get:function(){return f},set:function(a){f=a}},align:{get:function(){return h},set:function(a){h=a}},rightAlign:{get:function(){return j},set:function(a){j=a}},padding:{get:function(){return i},set:function(a){i=a}},updateState:{get:function(){return k},set:function(a){k=a}},radioButtonMode:{get:function(){return l},set:function(a){l=a}},expanded:{get:function(){return m},set:function(a){m=a}},vers:{get:function(){return o},set:function(a){o=a}},margin:{get:function(){return c},set:function(a){c.top=void 0!==a.top?a.top:c.top,c.right=void 0!==a.right?a.right:c.right,c.bottom=void 0!==a.bottom?a.bottom:c.bottom,c.left=void 0!==a.left?a.left:c.left}},color:{get:function(){return g},set:function(b){g=a.utils.getColor(b)}}}),a.utils.initOptions(b),b},a.models.historicalBar=function(){"use strict";function b(x){return x.each(function(b){w.reset(),k=d3.select(this);var x=a.utils.availableWidth(h,k,g),y=a.utils.availableHeight(i,k,g);a.utils.initSVG(k),l.domain(c||d3.extent(b[0].values.map(n).concat(p))),l.range(r?e||[.5*x/b[0].values.length,x*(b[0].values.length-.5)/b[0].values.length]:e||[0,x]),m.domain(d||d3.extent(b[0].values.map(o).concat(q))).range(f||[y,0]),l.domain()[0]===l.domain()[1]&&l.domain(l.domain()[0]?[l.domain()[0]-.01*l.domain()[0],l.domain()[1]+.01*l.domain()[1]]:[-1,1]),m.domain()[0]===m.domain()[1]&&m.domain(m.domain()[0]?[m.domain()[0]+.01*m.domain()[0],m.domain()[1]-.01*m.domain()[1]]:[-1,1]);var z=k.selectAll("g.nv-wrap.nv-historicalBar-"+j).data([b[0].values]),A=z.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+j),B=A.append("defs"),C=A.append("g"),D=z.select("g");C.append("g").attr("class","nv-bars"),z.attr("transform","translate("+g.left+","+g.top+")"),k.on("click",function(a,b){u.chartClick({data:a,index:b,pos:d3.event,id:j})}),B.append("clipPath").attr("id","nv-chart-clip-path-"+j).append("rect"),z.select("#nv-chart-clip-path-"+j+" rect").attr("width",x).attr("height",y),D.attr("clip-path",s?"url(#nv-chart-clip-path-"+j+")":"");var E=z.select(".nv-bars").selectAll(".nv-bar").data(function(a){return a},function(a,b){return n(a,b)});E.exit().remove(),E.enter().append("rect").attr("x",0).attr("y",function(b,c){return a.utils.NaNtoZero(m(Math.max(0,o(b,c))))}).attr("height",function(b,c){return a.utils.NaNtoZero(Math.abs(m(o(b,c))-m(0)))}).attr("transform",function(a,c){return"translate("+(l(n(a,c))-x/b[0].values.length*.45)+",0)"}).on("mouseover",function(a,b){v&&(d3.select(this).classed("hover",!0),u.elementMouseover({data:a,index:b,color:d3.select(this).style("fill")}))}).on("mouseout",function(a,b){v&&(d3.select(this).classed("hover",!1),u.elementMouseout({data:a,index:b,color:d3.select(this).style("fill")}))}).on("mousemove",function(a,b){v&&u.elementMousemove({data:a,index:b,color:d3.select(this).style("fill")})}).on("click",function(a,b){v&&(u.elementClick({data:a,index:b,color:d3.select(this).style("fill")}),d3.event.stopPropagation())}).on("dblclick",function(a,b){v&&(u.elementDblClick({data:a,index:b,color:d3.select(this).style("fill")}),d3.event.stopPropagation())}),E.attr("fill",function(a,b){return t(a,b)}).attr("class",function(a,b,c){return(o(a,b)<0?"nv-bar negative":"nv-bar positive")+" nv-bar-"+c+"-"+b}).watchTransition(w,"bars").attr("transform",function(a,c){return"translate("+(l(n(a,c))-x/b[0].values.length*.45)+",0)"}).attr("width",x/b[0].values.length*.9),E.watchTransition(w,"bars").attr("y",function(b,c){var d=o(b,c)<0?m(0):m(0)-m(o(b,c))<1?m(0)-1:m(o(b,c));return a.utils.NaNtoZero(d)}).attr("height",function(b,c){return a.utils.NaNtoZero(Math.max(Math.abs(m(o(b,c))-m(0)),1))})}),w.renderEnd("historicalBar immediate"),b}var c,d,e,f,g={top:0,right:0,bottom:0,left:0},h=null,i=null,j=Math.floor(1e4*Math.random()),k=null,l=d3.scale.linear(),m=d3.scale.linear(),n=function(a){return a.x},o=function(a){return a.y},p=[],q=[0],r=!1,s=!0,t=a.utils.defaultColor(),u=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),v=!0,w=a.utils.renderWatch(u,0);return b.highlightPoint=function(a,b){k.select(".nv-bars .nv-bar-0-"+a).classed("hover",b)},b.clearHighlights=function(){k.select(".nv-bars .nv-bar.hover").classed("hover",!1)},b.dispatch=u,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return h},set:function(a){h=a}},height:{get:function(){return i},set:function(a){i=a}},forceX:{get:function(){return p},set:function(a){p=a}},forceY:{get:function(){return q},set:function(a){q=a}},padData:{get:function(){return r},set:function(a){r=a}},x:{get:function(){return n},set:function(a){n=a}},y:{get:function(){return o},set:function(a){o=a}},xScale:{get:function(){return l},set:function(a){l=a}},yScale:{get:function(){return m},set:function(a){m=a}},xDomain:{get:function(){return c},set:function(a){c=a}},yDomain:{get:function(){return d},set:function(a){d=a}},xRange:{get:function(){return e},set:function(a){e=a}},yRange:{get:function(){return f},set:function(a){f=a}},clipEdge:{get:function(){return s},set:function(a){s=a}},id:{get:function(){return j},set:function(a){j=a}},interactive:{get:function(){return v},set:function(a){v=a}},margin:{get:function(){return g},set:function(a){g.top=void 0!==a.top?a.top:g.top,g.right=void 0!==a.right?a.right:g.right,g.bottom=void 0!==a.bottom?a.bottom:g.bottom,g.left=void 0!==a.left?a.left:g.left}},color:{get:function(){return t},set:function(b){t=a.utils.getColor(b)}}}),a.utils.initOptions(b),b},a.models.historicalBarChart=function(b){"use strict";function c(b){return b.each(function(k){z.reset(),z.models(f),q&&z.models(g),r&&z.models(h);var w=d3.select(this),A=this;a.utils.initSVG(w);var B=a.utils.availableWidth(n,w,l),C=a.utils.availableHeight(o,w,l);if(c.update=function(){w.transition().duration(y).call(c)},c.container=this,u.disabled=k.map(function(a){return!!a.disabled}),!v){var D;v={};for(D in u)v[D]=u[D]instanceof Array?u[D].slice(0):u[D]}if(!(k&&k.length&&k.filter(function(a){return a.values.length}).length))return a.utils.noData(c,w),c;w.selectAll(".nv-noData").remove(),d=f.xScale(),e=f.yScale();var E=w.selectAll("g.nv-wrap.nv-historicalBarChart").data([k]),F=E.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart").append("g"),G=E.select("g");F.append("g").attr("class","nv-x nv-axis"),F.append("g").attr("class","nv-y nv-axis"),F.append("g").attr("class","nv-barsWrap"),F.append("g").attr("class","nv-legendWrap"),F.append("g").attr("class","nv-interactive"),p&&(i.width(B),G.select(".nv-legendWrap").datum(k).call(i),l.top!=i.height()&&(l.top=i.height(),C=a.utils.availableHeight(o,w,l)),E.select(".nv-legendWrap").attr("transform","translate(0,"+-l.top+")")),E.attr("transform","translate("+l.left+","+l.top+")"),s&&G.select(".nv-y.nv-axis").attr("transform","translate("+B+",0)"),t&&(j.width(B).height(C).margin({left:l.left,top:l.top}).svgContainer(w).xScale(d),E.select(".nv-interactive").call(j)),f.width(B).height(C).color(k.map(function(a,b){return a.color||m(a,b)}).filter(function(a,b){return!k[b].disabled}));var H=G.select(".nv-barsWrap").datum(k.filter(function(a){return!a.disabled}));H.transition().call(f),q&&(g.scale(d)._ticks(a.utils.calcTicksX(B/100,k)).tickSize(-C,0),G.select(".nv-x.nv-axis").attr("transform","translate(0,"+e.range()[0]+")"),G.select(".nv-x.nv-axis").transition().call(g)),r&&(h.scale(e)._ticks(a.utils.calcTicksY(C/36,k)).tickSize(-B,0),G.select(".nv-y.nv-axis").transition().call(h)),j.dispatch.on("elementMousemove",function(b){f.clearHighlights();var d,e,i,n=[];k.filter(function(a,b){return a.seriesIndex=b,!a.disabled}).forEach(function(g){e=a.interactiveBisect(g.values,b.pointXValue,c.x()),f.highlightPoint(e,!0);var h=g.values[e];void 0!==h&&(void 0===d&&(d=h),void 0===i&&(i=c.xScale()(c.x()(h,e))),n.push({key:g.key,value:c.y()(h,e),color:m(g,g.seriesIndex),data:g.values[e]}))});var o=g.tickFormat()(c.x()(d,e));j.tooltip.position({left:i+l.left,top:b.mouseY+l.top}).chartContainer(A.parentNode).valueFormatter(function(a){return h.tickFormat()(a)}).data({value:o,index:e,series:n})(),j.renderGuideLine(i)}),j.dispatch.on("elementMouseout",function(){x.tooltipHide(),f.clearHighlights()}),i.dispatch.on("legendClick",function(a){a.disabled=!a.disabled,k.filter(function(a){return!a.disabled}).length||k.map(function(a){return a.disabled=!1,E.selectAll(".nv-series").classed("disabled",!1),a}),u.disabled=k.map(function(a){return!!a.disabled}),x.stateChange(u),b.transition().call(c)}),i.dispatch.on("legendDblclick",function(a){k.forEach(function(a){a.disabled=!0}),a.disabled=!1,u.disabled=k.map(function(a){return!!a.disabled}),x.stateChange(u),c.update()}),x.on("changeState",function(a){"undefined"!=typeof a.disabled&&(k.forEach(function(b,c){b.disabled=a.disabled[c]}),u.disabled=a.disabled),c.update()})}),z.renderEnd("historicalBarChart immediate"),c}var d,e,f=b||a.models.historicalBar(),g=a.models.axis(),h=a.models.axis(),i=a.models.legend(),j=a.interactiveGuideline(),k=a.models.tooltip(),l={top:30,right:90,bottom:50,left:90},m=a.utils.defaultColor(),n=null,o=null,p=!1,q=!0,r=!0,s=!1,t=!1,u={},v=null,w=null,x=d3.dispatch("tooltipHide","stateChange","changeState","renderEnd"),y=250;g.orient("bottom").tickPadding(7),h.orient(s?"right":"left"),k.duration(0).headerEnabled(!1).valueFormatter(function(a,b){return h.tickFormat()(a,b)}).headerFormatter(function(a,b){return g.tickFormat()(a,b)});var z=a.utils.renderWatch(x,0);return f.dispatch.on("elementMouseover.tooltip",function(a){a.series={key:c.x()(a.data),value:c.y()(a.data),color:a.color},k.data(a).hidden(!1)}),f.dispatch.on("elementMouseout.tooltip",function(){k.hidden(!0)}),f.dispatch.on("elementMousemove.tooltip",function(){k.position({top:d3.event.pageY,left:d3.event.pageX})()}),c.dispatch=x,c.bars=f,c.legend=i,c.xAxis=g,c.yAxis=h,c.interactiveLayer=j,c.tooltip=k,c.options=a.utils.optionsFunc.bind(c),c._options=Object.create({},{width:{get:function(){return n},set:function(a){n=a}},height:{get:function(){return o},set:function(a){o=a}},showLegend:{get:function(){return p},set:function(a){p=a}},showXAxis:{get:function(){return q},set:function(a){q=a}},showYAxis:{get:function(){return r},set:function(a){r=a}},defaultState:{get:function(){return v},set:function(a){v=a}},noData:{get:function(){return w},set:function(a){w=a}},tooltips:{get:function(){return k.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),k.enabled(!!b)}},tooltipContent:{get:function(){return k.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),k.contentGenerator(b)}},margin:{get:function(){return l},set:function(a){l.top=void 0!==a.top?a.top:l.top,l.right=void 0!==a.right?a.right:l.right,l.bottom=void 0!==a.bottom?a.bottom:l.bottom,l.left=void 0!==a.left?a.left:l.left}},color:{get:function(){return m},set:function(b){m=a.utils.getColor(b),i.color(m),f.color(m)}},duration:{get:function(){return y},set:function(a){y=a,z.reset(y),h.duration(y),g.duration(y)}},rightAlignYAxis:{get:function(){return s},set:function(a){s=a,h.orient(a?"right":"left")}},useInteractiveGuideline:{get:function(){return t},set:function(a){t=a,a===!0&&c.interactive(!1)}}}),a.utils.inheritOptions(c,f),a.utils.initOptions(c),c},a.models.ohlcBarChart=function(){var b=a.models.historicalBarChart(a.models.ohlcBar());return b.useInteractiveGuideline(!0),b.interactiveLayer.tooltip.contentGenerator(function(a){var c=a.series[0].data,d=c.open<c.close?"2ca02c":"d62728";return'<h3 style="color: #'+d+'">'+a.value+"</h3><table><tr><td>open:</td><td>"+b.yAxis.tickFormat()(c.open)+"</td></tr><tr><td>close:</td><td>"+b.yAxis.tickFormat()(c.close)+"</td></tr><tr><td>high</td><td>"+b.yAxis.tickFormat()(c.high)+"</td></tr><tr><td>low:</td><td>"+b.yAxis.tickFormat()(c.low)+"</td></tr></table>"}),b},a.models.candlestickBarChart=function(){var b=a.models.historicalBarChart(a.models.candlestickBar());return b.useInteractiveGuideline(!0),b.interactiveLayer.tooltip.contentGenerator(function(a){var c=a.series[0].data,d=c.open<c.close?"2ca02c":"d62728";return'<h3 style="color: #'+d+'">'+a.value+"</h3><table><tr><td>open:</td><td>"+b.yAxis.tickFormat()(c.open)+"</td></tr><tr><td>close:</td><td>"+b.yAxis.tickFormat()(c.close)+"</td></tr><tr><td>high</td><td>"+b.yAxis.tickFormat()(c.high)+"</td></tr><tr><td>low:</td><td>"+b.yAxis.tickFormat()(c.low)+"</td></tr></table>"}),b},a.models.legend=function(){"use strict";function b(p){function q(a,b){return"furious"!=o?"#000":m?a.disengaged?"#000":"#fff":m?void 0:(a.color||(a.color=g(a,b)),a.disabled?a.color:"#fff")}function r(a,b){return m&&"furious"==o&&a.disengaged?"#eee":a.color||g(a,b)}function s(a){return m&&"furious"==o?1:a.disabled?0:1}return p.each(function(b){var g=d-c.left-c.right,p=d3.select(this);a.utils.initSVG(p);var t=p.selectAll("g.nv-legend").data([b]),u=t.enter().append("g").attr("class","nvd3 nv-legend").append("g"),v=t.select("g");t.attr("transform","translate("+c.left+","+c.top+")");var w,x,y=v.selectAll(".nv-series").data(function(a){return"furious"!=o?a:a.filter(function(a){return m?!0:!a.disengaged})}),z=y.enter().append("g").attr("class","nv-series");switch(o){case"furious":x=23;break;case"classic":x=20}if("classic"==o)z.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),w=y.select("circle");else if("furious"==o){z.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),w=y.select(".nv-legend-symbol"),z.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)");var A=y.select(".nv-check-box");A.each(function(a,b){d3.select(this).selectAll("path").attr("stroke",q(a,b))})}z.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var B=y.select("text.nv-legend-text");y.on("mouseover",function(a,b){n.legendMouseover(a,b)}).on("mouseout",function(a,b){n.legendMouseout(a,b)}).on("click",function(a,b){n.legendClick(a,b);var c=y.data();if(k){if("classic"==o)l?(c.forEach(function(a){a.disabled=!0}),a.disabled=!1):(a.disabled=!a.disabled,c.every(function(a){return a.disabled})&&c.forEach(function(a){a.disabled=!1}));else if("furious"==o)if(m)a.disengaged=!a.disengaged,a.userDisabled=void 0==a.userDisabled?!!a.disabled:a.userDisabled,a.disabled=a.disengaged||a.userDisabled;else if(!m){a.disabled=!a.disabled,a.userDisabled=a.disabled;var d=c.filter(function(a){return!a.disengaged});d.every(function(a){return a.userDisabled})&&c.forEach(function(a){a.disabled=a.userDisabled=!1})}n.stateChange({disabled:c.map(function(a){return!!a.disabled}),disengaged:c.map(function(a){return!!a.disengaged})})}}).on("dblclick",function(a,b){if(("furious"!=o||!m)&&(n.legendDblclick(a,b),k)){var c=y.data();c.forEach(function(a){a.disabled=!0,"furious"==o&&(a.userDisabled=a.disabled)}),a.disabled=!1,"furious"==o&&(a.userDisabled=a.disabled),n.stateChange({disabled:c.map(function(a){return!!a.disabled})})}}),y.classed("nv-disabled",function(a){return a.userDisabled}),y.exit().remove(),B.attr("fill",q).text(f);var C=0;if(h){var D=[];y.each(function(){var b,c=d3.select(this).select("text");try{if(b=c.node().getComputedTextLength(),0>=b)throw Error()}catch(d){b=a.utils.calcApproxTextWidth(c)}D.push(b+i)});var E=0,F=[];for(C=0;g>C&&E<D.length;)F[E]=D[E],C+=D[E++];for(0===E&&(E=1);C>g&&E>1;){F=[],E--;for(var G=0;G<D.length;G++)D[G]>(F[G%E]||0)&&(F[G%E]=D[G]);C=F.reduce(function(a,b){return a+b})}for(var H=[],I=0,J=0;E>I;I++)H[I]=J,J+=F[I];y.attr("transform",function(a,b){return"translate("+H[b%E]+","+(5+Math.floor(b/E)*x)+")"}),j?v.attr("transform","translate("+(d-c.right-C)+","+c.top+")"):v.attr("transform","translate(0,"+c.top+")"),e=c.top+c.bottom+Math.ceil(D.length/E)*x}else{var K,L=5,M=5,N=0;y.attr("transform",function(){var a=d3.select(this).select("text").node().getComputedTextLength()+i;return K=M,d<c.left+c.right+K+a&&(M=K=5,L+=x),M+=a,M>N&&(N=M),K+N>C&&(C=K+N),"translate("+K+","+L+")"}),v.attr("transform","translate("+(d-c.right-N)+","+c.top+")"),e=c.top+c.bottom+L+15}if("furious"==o){w.attr("width",function(a,b){return B[0][b].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),u.insert("rect",":first-child").attr("class","nv-legend-bg").attr("fill","#eee").attr("opacity",0);var O=v.select(".nv-legend-bg");O.transition().duration(300).attr("x",-x).attr("width",C+x-12).attr("height",e+10).attr("y",-c.top-10).attr("opacity",m?1:0)}w.style("fill",r).style("fill-opacity",s).style("stroke",r)}),b}var c={top:5,right:0,bottom:5,left:0},d=400,e=20,f=function(a){return a.key},g=a.utils.getColor(),h=!0,i=32,j=!0,k=!0,l=!1,m=!1,n=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),o="classic";return b.dispatch=n,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return d},set:function(a){d=a}},height:{get:function(){return e},set:function(a){e=a}},key:{get:function(){return f},set:function(a){f=a}},align:{get:function(){return h},set:function(a){h=a}},rightAlign:{get:function(){return j},set:function(a){j=a}},padding:{get:function(){return i},set:function(a){i=a}},updateState:{get:function(){return k},set:function(a){k=a}},radioButtonMode:{get:function(){return l},set:function(a){l=a}},expanded:{get:function(){return m},set:function(a){m=a}},vers:{get:function(){return o},set:function(a){o=a}},margin:{get:function(){return c},set:function(a){c.top=void 0!==a.top?a.top:c.top,c.right=void 0!==a.right?a.right:c.right,c.bottom=void 0!==a.bottom?a.bottom:c.bottom,c.left=void 0!==a.left?a.left:c.left}},color:{get:function(){return g},set:function(b){g=a.utils.getColor(b)}}}),a.utils.initOptions(b),b},a.models.line=function(){"use strict";function b(r){return v.reset(),v.models(e),r.each(function(b){i=d3.select(this);var r=a.utils.availableWidth(g,i,f),s=a.utils.availableHeight(h,i,f);a.utils.initSVG(i),c=e.xScale(),d=e.yScale(),t=t||c,u=u||d;var w=i.selectAll("g.nv-wrap.nv-line").data([b]),x=w.enter().append("g").attr("class","nvd3 nv-wrap nv-line"),y=x.append("defs"),z=x.append("g"),A=w.select("g");z.append("g").attr("class","nv-groups"),z.append("g").attr("class","nv-scatterWrap"),w.attr("transform","translate("+f.left+","+f.top+")"),e.width(r).height(s);var B=w.select(".nv-scatterWrap");B.call(e),y.append("clipPath").attr("id","nv-edge-clip-"+e.id()).append("rect"),w.select("#nv-edge-clip-"+e.id()+" rect").attr("width",r).attr("height",s>0?s:0),A.attr("clip-path",p?"url(#nv-edge-clip-"+e.id()+")":""),B.attr("clip-path",p?"url(#nv-edge-clip-"+e.id()+")":"");var C=w.select(".nv-groups").selectAll(".nv-group").data(function(a){return a},function(a){return a.key});C.enter().append("g").style("stroke-opacity",1e-6).style("stroke-width",function(a){return a.strokeWidth||j}).style("fill-opacity",1e-6),C.exit().remove(),C.attr("class",function(a,b){return(a.classed||"")+" nv-group nv-series-"+b}).classed("hover",function(a){return a.hover}).style("fill",function(a,b){return k(a,b)}).style("stroke",function(a,b){return k(a,b)}),C.watchTransition(v,"line: groups").style("stroke-opacity",1).style("fill-opacity",function(a){return a.fillOpacity||.5});var D=C.selectAll("path.nv-area").data(function(a){return o(a)?[a]:[]});D.enter().append("path").attr("class","nv-area").attr("d",function(b){return d3.svg.area().interpolate(q).defined(n).x(function(b,c){return a.utils.NaNtoZero(t(l(b,c)))}).y0(function(b,c){return a.utils.NaNtoZero(u(m(b,c)))}).y1(function(){return u(d.domain()[0]<=0?d.domain()[1]>=0?0:d.domain()[1]:d.domain()[0])}).apply(this,[b.values])}),C.exit().selectAll("path.nv-area").remove(),D.watchTransition(v,"line: areaPaths").attr("d",function(b){return d3.svg.area().interpolate(q).defined(n).x(function(b,d){return a.utils.NaNtoZero(c(l(b,d)))}).y0(function(b,c){return a.utils.NaNtoZero(d(m(b,c)))}).y1(function(){return d(d.domain()[0]<=0?d.domain()[1]>=0?0:d.domain()[1]:d.domain()[0])}).apply(this,[b.values])});var E=C.selectAll("path.nv-line").data(function(a){return[a.values]});E.enter().append("path").attr("class","nv-line").attr("d",d3.svg.line().interpolate(q).defined(n).x(function(b,c){return a.utils.NaNtoZero(t(l(b,c)))}).y(function(b,c){return a.utils.NaNtoZero(u(m(b,c)))})),E.watchTransition(v,"line: linePaths").attr("d",d3.svg.line().interpolate(q).defined(n).x(function(b,d){return a.utils.NaNtoZero(c(l(b,d)))}).y(function(b,c){return a.utils.NaNtoZero(d(m(b,c)))})),t=c.copy(),u=d.copy()}),v.renderEnd("line immediate"),b}var c,d,e=a.models.scatter(),f={top:0,right:0,bottom:0,left:0},g=960,h=500,i=null,j=1.5,k=a.utils.defaultColor(),l=function(a){return a.x},m=function(a){return a.y},n=function(a,b){return!isNaN(m(a,b))&&null!==m(a,b)},o=function(a){return a.area},p=!1,q="linear",r=250,s=d3.dispatch("elementClick","elementMouseover","elementMouseout","renderEnd");e.pointSize(16).pointDomain([16,256]);var t,u,v=a.utils.renderWatch(s,r);return b.dispatch=s,b.scatter=e,e.dispatch.on("elementClick",function(){s.elementClick.apply(this,arguments)}),e.dispatch.on("elementMouseover",function(){s.elementMouseover.apply(this,arguments)}),e.dispatch.on("elementMouseout",function(){s.elementMouseout.apply(this,arguments)}),b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return g},set:function(a){g=a}},height:{get:function(){return h},set:function(a){h=a}},defined:{get:function(){return n},set:function(a){n=a}},interpolate:{get:function(){return q},set:function(a){q=a}},clipEdge:{get:function(){return p},set:function(a){p=a}},margin:{get:function(){return f},set:function(a){f.top=void 0!==a.top?a.top:f.top,f.right=void 0!==a.right?a.right:f.right,f.bottom=void 0!==a.bottom?a.bottom:f.bottom,f.left=void 0!==a.left?a.left:f.left}},duration:{get:function(){return r},set:function(a){r=a,v.reset(r),e.duration(r)}},isArea:{get:function(){return o},set:function(a){o=d3.functor(a)}},x:{get:function(){return l},set:function(a){l=a,e.x(a)}},y:{get:function(){return m},set:function(a){m=a,e.y(a)}},color:{get:function(){return k},set:function(b){k=a.utils.getColor(b),e.color(k)}}}),a.utils.inheritOptions(b,e),a.utils.initOptions(b),b},a.models.lineChart=function(){"use strict";function b(j){return y.reset(),y.models(e),p&&y.models(f),q&&y.models(g),j.each(function(j){var v=d3.select(this),y=this;a.utils.initSVG(v);var B=a.utils.availableWidth(m,v,k),C=a.utils.availableHeight(n,v,k);if(b.update=function(){0===x?v.call(b):v.transition().duration(x).call(b)},b.container=this,t.setter(A(j),b.update).getter(z(j)).update(),t.disabled=j.map(function(a){return!!a.disabled}),!u){var D;u={};for(D in t)u[D]=t[D]instanceof Array?t[D].slice(0):t[D]
-}if(!(j&&j.length&&j.filter(function(a){return a.values.length}).length))return a.utils.noData(b,v),b;v.selectAll(".nv-noData").remove(),c=e.xScale(),d=e.yScale();var E=v.selectAll("g.nv-wrap.nv-lineChart").data([j]),F=E.enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart").append("g"),G=E.select("g");F.append("rect").style("opacity",0),F.append("g").attr("class","nv-x nv-axis"),F.append("g").attr("class","nv-y nv-axis"),F.append("g").attr("class","nv-linesWrap"),F.append("g").attr("class","nv-legendWrap"),F.append("g").attr("class","nv-interactive"),G.select("rect").attr("width",B).attr("height",C>0?C:0),o&&(h.width(B),G.select(".nv-legendWrap").datum(j).call(h),k.top!=h.height()&&(k.top=h.height(),C=a.utils.availableHeight(n,v,k)),E.select(".nv-legendWrap").attr("transform","translate(0,"+-k.top+")")),E.attr("transform","translate("+k.left+","+k.top+")"),r&&G.select(".nv-y.nv-axis").attr("transform","translate("+B+",0)"),s&&(i.width(B).height(C).margin({left:k.left,top:k.top}).svgContainer(v).xScale(c),E.select(".nv-interactive").call(i)),e.width(B).height(C).color(j.map(function(a,b){return a.color||l(a,b)}).filter(function(a,b){return!j[b].disabled}));var H=G.select(".nv-linesWrap").datum(j.filter(function(a){return!a.disabled}));H.call(e),p&&(f.scale(c)._ticks(a.utils.calcTicksX(B/100,j)).tickSize(-C,0),G.select(".nv-x.nv-axis").attr("transform","translate(0,"+d.range()[0]+")"),G.select(".nv-x.nv-axis").call(f)),q&&(g.scale(d)._ticks(a.utils.calcTicksY(C/36,j)).tickSize(-B,0),G.select(".nv-y.nv-axis").call(g)),h.dispatch.on("stateChange",function(a){for(var c in a)t[c]=a[c];w.stateChange(t),b.update()}),i.dispatch.on("elementMousemove",function(c){e.clearHighlights();var d,h,m,n=[];if(j.filter(function(a,b){return a.seriesIndex=b,!a.disabled}).forEach(function(f,g){h=a.interactiveBisect(f.values,c.pointXValue,b.x());var i=f.values[h],j=b.y()(i,h);null!=j&&e.highlightPoint(g,h,!0),void 0!==i&&(void 0===d&&(d=i),void 0===m&&(m=b.xScale()(b.x()(i,h))),n.push({key:f.key,value:j,color:l(f,f.seriesIndex)}))}),n.length>2){var o=b.yScale().invert(c.mouseY),p=Math.abs(b.yScale().domain()[0]-b.yScale().domain()[1]),q=.03*p,r=a.nearestValueIndex(n.map(function(a){return a.value}),o,q);null!==r&&(n[r].highlight=!0)}var s=f.tickFormat()(b.x()(d,h));i.tooltip.position({left:c.mouseX+k.left,top:c.mouseY+k.top}).chartContainer(y.parentNode).valueFormatter(function(a){return null==a?"N/A":g.tickFormat()(a)}).data({value:s,index:h,series:n})(),i.renderGuideLine(m)}),i.dispatch.on("elementClick",function(c){var d,f=[];j.filter(function(a,b){return a.seriesIndex=b,!a.disabled}).forEach(function(e){var g=a.interactiveBisect(e.values,c.pointXValue,b.x()),h=e.values[g];if("undefined"!=typeof h){"undefined"==typeof d&&(d=b.xScale()(b.x()(h,g)));var i=b.yScale()(b.y()(h,g));f.push({point:h,pointIndex:g,pos:[d,i],seriesIndex:e.seriesIndex,series:e})}}),e.dispatch.elementClick(f)}),i.dispatch.on("elementMouseout",function(){e.clearHighlights()}),w.on("changeState",function(a){"undefined"!=typeof a.disabled&&j.length===a.disabled.length&&(j.forEach(function(b,c){b.disabled=a.disabled[c]}),t.disabled=a.disabled),b.update()})}),y.renderEnd("lineChart immediate"),b}var c,d,e=a.models.line(),f=a.models.axis(),g=a.models.axis(),h=a.models.legend(),i=a.interactiveGuideline(),j=a.models.tooltip(),k={top:30,right:20,bottom:50,left:60},l=a.utils.defaultColor(),m=null,n=null,o=!0,p=!0,q=!0,r=!1,s=!1,t=a.utils.state(),u=null,v=null,w=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd"),x=250;f.orient("bottom").tickPadding(7),g.orient(r?"right":"left"),j.valueFormatter(function(a,b){return g.tickFormat()(a,b)}).headerFormatter(function(a,b){return f.tickFormat()(a,b)});var y=a.utils.renderWatch(w,x),z=function(a){return function(){return{active:a.map(function(a){return!a.disabled})}}},A=function(a){return function(b){void 0!==b.active&&a.forEach(function(a,c){a.disabled=!b.active[c]})}};return e.dispatch.on("elementMouseover.tooltip",function(a){j.data(a).position(a.pos).hidden(!1)}),e.dispatch.on("elementMouseout.tooltip",function(){j.hidden(!0)}),b.dispatch=w,b.lines=e,b.legend=h,b.xAxis=f,b.yAxis=g,b.interactiveLayer=i,b.tooltip=j,b.dispatch=w,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return m},set:function(a){m=a}},height:{get:function(){return n},set:function(a){n=a}},showLegend:{get:function(){return o},set:function(a){o=a}},showXAxis:{get:function(){return p},set:function(a){p=a}},showYAxis:{get:function(){return q},set:function(a){q=a}},defaultState:{get:function(){return u},set:function(a){u=a}},noData:{get:function(){return v},set:function(a){v=a}},tooltips:{get:function(){return j.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),j.enabled(!!b)}},tooltipContent:{get:function(){return j.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),j.contentGenerator(b)}},margin:{get:function(){return k},set:function(a){k.top=void 0!==a.top?a.top:k.top,k.right=void 0!==a.right?a.right:k.right,k.bottom=void 0!==a.bottom?a.bottom:k.bottom,k.left=void 0!==a.left?a.left:k.left}},duration:{get:function(){return x},set:function(a){x=a,y.reset(x),e.duration(x),f.duration(x),g.duration(x)}},color:{get:function(){return l},set:function(b){l=a.utils.getColor(b),h.color(l),e.color(l)}},rightAlignYAxis:{get:function(){return r},set:function(a){r=a,g.orient(r?"right":"left")}},useInteractiveGuideline:{get:function(){return s},set:function(a){s=a,s&&(e.interactive(!1),e.useVoronoi(!1))}}}),a.utils.inheritOptions(b,e),a.utils.initOptions(b),b},a.models.linePlusBarChart=function(){"use strict";function b(v){return v.each(function(v){function J(a){var b=+("e"==a),c=b?1:-1,d=X/3;return"M"+.5*c+","+d+"A6,6 0 0 "+b+" "+6.5*c+","+(d+6)+"V"+(2*d-6)+"A6,6 0 0 "+b+" "+.5*c+","+2*d+"ZM"+2.5*c+","+(d+8)+"V"+(2*d-8)+"M"+4.5*c+","+(d+8)+"V"+(2*d-8)}function S(){u.empty()||u.extent(I),kb.data([u.empty()?e.domain():I]).each(function(a){var b=e(a[0])-e.range()[0],c=e.range()[1]-e(a[1]);d3.select(this).select(".left").attr("width",0>b?0:b),d3.select(this).select(".right").attr("x",e(a[1])).attr("width",0>c?0:c)})}function T(){I=u.empty()?null:u.extent(),c=u.empty()?e.domain():u.extent(),K.brush({extent:c,brush:u}),S(),l.width(V).height(W).color(v.map(function(a,b){return a.color||C(a,b)}).filter(function(a,b){return!v[b].disabled&&v[b].bar})),j.width(V).height(W).color(v.map(function(a,b){return a.color||C(a,b)}).filter(function(a,b){return!v[b].disabled&&!v[b].bar}));var b=db.select(".nv-focus .nv-barsWrap").datum(Z.length?Z.map(function(a){return{key:a.key,values:a.values.filter(function(a,b){return l.x()(a,b)>=c[0]&&l.x()(a,b)<=c[1]})}}):[{values:[]}]),h=db.select(".nv-focus .nv-linesWrap").datum($[0].disabled?[{values:[]}]:$.map(function(a){return{area:a.area,fillOpacity:a.fillOpacity,key:a.key,values:a.values.filter(function(a,b){return j.x()(a,b)>=c[0]&&j.x()(a,b)<=c[1]})}}));d=Z.length?l.xScale():j.xScale(),n.scale(d)._ticks(a.utils.calcTicksX(V/100,v)).tickSize(-W,0),n.domain([Math.ceil(c[0]),Math.floor(c[1])]),db.select(".nv-x.nv-axis").transition().duration(L).call(n),b.transition().duration(L).call(l),h.transition().duration(L).call(j),db.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+f.range()[0]+")"),p.scale(f)._ticks(a.utils.calcTicksY(W/36,v)).tickSize(-V,0),q.scale(g)._ticks(a.utils.calcTicksY(W/36,v)).tickSize(Z.length?0:-V,0),db.select(".nv-focus .nv-y1.nv-axis").style("opacity",Z.length?1:0),db.select(".nv-focus .nv-y2.nv-axis").style("opacity",$.length&&!$[0].disabled?1:0).attr("transform","translate("+d.range()[1]+",0)"),db.select(".nv-focus .nv-y1.nv-axis").transition().duration(L).call(p),db.select(".nv-focus .nv-y2.nv-axis").transition().duration(L).call(q)}var U=d3.select(this);a.utils.initSVG(U);var V=a.utils.availableWidth(y,U,w),W=a.utils.availableHeight(z,U,w)-(E?H:0),X=H-x.top-x.bottom;if(b.update=function(){U.transition().duration(L).call(b)},b.container=this,M.setter(R(v),b.update).getter(Q(v)).update(),M.disabled=v.map(function(a){return!!a.disabled}),!N){var Y;N={};for(Y in M)N[Y]=M[Y]instanceof Array?M[Y].slice(0):M[Y]}if(!(v&&v.length&&v.filter(function(a){return a.values.length}).length))return a.utils.noData(b,U),b;U.selectAll(".nv-noData").remove();var Z=v.filter(function(a){return!a.disabled&&a.bar}),$=v.filter(function(a){return!a.bar});d=l.xScale(),e=o.scale(),f=l.yScale(),g=j.yScale(),h=m.yScale(),i=k.yScale();var _=v.filter(function(a){return!a.disabled&&a.bar}).map(function(a){return a.values.map(function(a,b){return{x:A(a,b),y:B(a,b)}})}),ab=v.filter(function(a){return!a.disabled&&!a.bar}).map(function(a){return a.values.map(function(a,b){return{x:A(a,b),y:B(a,b)}})});d.range([0,V]),e.domain(d3.extent(d3.merge(_.concat(ab)),function(a){return a.x})).range([0,V]);var bb=U.selectAll("g.nv-wrap.nv-linePlusBar").data([v]),cb=bb.enter().append("g").attr("class","nvd3 nv-wrap nv-linePlusBar").append("g"),db=bb.select("g");cb.append("g").attr("class","nv-legendWrap");var eb=cb.append("g").attr("class","nv-focus");eb.append("g").attr("class","nv-x nv-axis"),eb.append("g").attr("class","nv-y1 nv-axis"),eb.append("g").attr("class","nv-y2 nv-axis"),eb.append("g").attr("class","nv-barsWrap"),eb.append("g").attr("class","nv-linesWrap");var fb=cb.append("g").attr("class","nv-context");if(fb.append("g").attr("class","nv-x nv-axis"),fb.append("g").attr("class","nv-y1 nv-axis"),fb.append("g").attr("class","nv-y2 nv-axis"),fb.append("g").attr("class","nv-barsWrap"),fb.append("g").attr("class","nv-linesWrap"),fb.append("g").attr("class","nv-brushBackground"),fb.append("g").attr("class","nv-x nv-brush"),D){var gb=t.align()?V/2:V,hb=t.align()?gb:0;t.width(gb),db.select(".nv-legendWrap").datum(v.map(function(a){return a.originalKey=void 0===a.originalKey?a.key:a.originalKey,a.key=a.originalKey+(a.bar?O:P),a})).call(t),w.top!=t.height()&&(w.top=t.height(),W=a.utils.availableHeight(z,U,w)-H),db.select(".nv-legendWrap").attr("transform","translate("+hb+","+-w.top+")")}bb.attr("transform","translate("+w.left+","+w.top+")"),db.select(".nv-context").style("display",E?"initial":"none"),m.width(V).height(X).color(v.map(function(a,b){return a.color||C(a,b)}).filter(function(a,b){return!v[b].disabled&&v[b].bar})),k.width(V).height(X).color(v.map(function(a,b){return a.color||C(a,b)}).filter(function(a,b){return!v[b].disabled&&!v[b].bar}));var ib=db.select(".nv-context .nv-barsWrap").datum(Z.length?Z:[{values:[]}]),jb=db.select(".nv-context .nv-linesWrap").datum($[0].disabled?[{values:[]}]:$);db.select(".nv-context").attr("transform","translate(0,"+(W+w.bottom+x.top)+")"),ib.transition().call(m),jb.transition().call(k),G&&(o._ticks(a.utils.calcTicksX(V/100,v)).tickSize(-X,0),db.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+h.range()[0]+")"),db.select(".nv-context .nv-x.nv-axis").transition().call(o)),F&&(r.scale(h)._ticks(X/36).tickSize(-V,0),s.scale(i)._ticks(X/36).tickSize(Z.length?0:-V,0),db.select(".nv-context .nv-y3.nv-axis").style("opacity",Z.length?1:0).attr("transform","translate(0,"+e.range()[0]+")"),db.select(".nv-context .nv-y2.nv-axis").style("opacity",$.length?1:0).attr("transform","translate("+e.range()[1]+",0)"),db.select(".nv-context .nv-y1.nv-axis").transition().call(r),db.select(".nv-context .nv-y2.nv-axis").transition().call(s)),u.x(e).on("brush",T),I&&u.extent(I);var kb=db.select(".nv-brushBackground").selectAll("g").data([I||u.extent()]),lb=kb.enter().append("g");lb.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",X),lb.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",X);var mb=db.select(".nv-x.nv-brush").call(u);mb.selectAll("rect").attr("height",X),mb.selectAll(".resize").append("path").attr("d",J),t.dispatch.on("stateChange",function(a){for(var c in a)M[c]=a[c];K.stateChange(M),b.update()}),K.on("changeState",function(a){"undefined"!=typeof a.disabled&&(v.forEach(function(b,c){b.disabled=a.disabled[c]}),M.disabled=a.disabled),b.update()}),T()}),b}var c,d,e,f,g,h,i,j=a.models.line(),k=a.models.line(),l=a.models.historicalBar(),m=a.models.historicalBar(),n=a.models.axis(),o=a.models.axis(),p=a.models.axis(),q=a.models.axis(),r=a.models.axis(),s=a.models.axis(),t=a.models.legend(),u=d3.svg.brush(),v=a.models.tooltip(),w={top:30,right:30,bottom:30,left:60},x={top:0,right:30,bottom:20,left:60},y=null,z=null,A=function(a){return a.x},B=function(a){return a.y},C=a.utils.defaultColor(),D=!0,E=!0,F=!1,G=!0,H=50,I=null,J=null,K=d3.dispatch("brush","stateChange","changeState"),L=0,M=a.utils.state(),N=null,O=" (left axis)",P=" (right axis)";j.clipEdge(!0),k.interactive(!1),k.pointActive(function(){return!1}),n.orient("bottom").tickPadding(5),p.orient("left"),q.orient("right"),o.orient("bottom").tickPadding(5),r.orient("left"),s.orient("right"),v.headerEnabled(!0).headerFormatter(function(a,b){return n.tickFormat()(a,b)});var Q=function(a){return function(){return{active:a.map(function(a){return!a.disabled})}}},R=function(a){return function(b){void 0!==b.active&&a.forEach(function(a,c){a.disabled=!b.active[c]})}};return j.dispatch.on("elementMouseover.tooltip",function(a){v.duration(100).valueFormatter(function(a,b){return q.tickFormat()(a,b)}).data(a).position(a.pos).hidden(!1)}),j.dispatch.on("elementMouseout.tooltip",function(){v.hidden(!0)}),l.dispatch.on("elementMouseover.tooltip",function(a){a.value=b.x()(a.data),a.series={value:b.y()(a.data),color:a.color},v.duration(0).valueFormatter(function(a,b){return p.tickFormat()(a,b)}).data(a).hidden(!1)}),l.dispatch.on("elementMouseout.tooltip",function(){v.hidden(!0)}),l.dispatch.on("elementMousemove.tooltip",function(){v.position({top:d3.event.pageY,left:d3.event.pageX})()}),b.dispatch=K,b.legend=t,b.lines=j,b.lines2=k,b.bars=l,b.bars2=m,b.xAxis=n,b.x2Axis=o,b.y1Axis=p,b.y2Axis=q,b.y3Axis=r,b.y4Axis=s,b.tooltip=v,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return y},set:function(a){y=a}},height:{get:function(){return z},set:function(a){z=a}},showLegend:{get:function(){return D},set:function(a){D=a}},brushExtent:{get:function(){return I},set:function(a){I=a}},noData:{get:function(){return J},set:function(a){J=a}},focusEnable:{get:function(){return E},set:function(a){E=a}},focusHeight:{get:function(){return H},set:function(a){H=a}},focusShowAxisX:{get:function(){return G},set:function(a){G=a}},focusShowAxisY:{get:function(){return F},set:function(a){F=a}},legendLeftAxisHint:{get:function(){return O},set:function(a){O=a}},legendRightAxisHint:{get:function(){return P},set:function(a){P=a}},tooltips:{get:function(){return v.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),v.enabled(!!b)}},tooltipContent:{get:function(){return v.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),v.contentGenerator(b)}},margin:{get:function(){return w},set:function(a){w.top=void 0!==a.top?a.top:w.top,w.right=void 0!==a.right?a.right:w.right,w.bottom=void 0!==a.bottom?a.bottom:w.bottom,w.left=void 0!==a.left?a.left:w.left}},focusMargin:{get:function(){return x},set:function(a){x.top=void 0!==a.top?a.top:x.top,x.right=void 0!==a.right?a.right:x.right,x.bottom=void 0!==a.bottom?a.bottom:x.bottom,x.left=void 0!==a.left?a.left:x.left}},duration:{get:function(){return L},set:function(a){L=a}},color:{get:function(){return C},set:function(b){C=a.utils.getColor(b),t.color(C)}},x:{get:function(){return A},set:function(a){A=a,j.x(a),k.x(a),l.x(a),m.x(a)}},y:{get:function(){return B},set:function(a){B=a,j.y(a),k.y(a),l.y(a),m.y(a)}}}),a.utils.inheritOptions(b,j),a.utils.initOptions(b),b},a.models.lineWithFocusChart=function(){"use strict";function b(o){return o.each(function(o){function z(a){var b=+("e"==a),c=b?1:-1,d=M/3;return"M"+.5*c+","+d+"A6,6 0 0 "+b+" "+6.5*c+","+(d+6)+"V"+(2*d-6)+"A6,6 0 0 "+b+" "+.5*c+","+2*d+"ZM"+2.5*c+","+(d+8)+"V"+(2*d-8)+"M"+4.5*c+","+(d+8)+"V"+(2*d-8)}function G(){n.empty()||n.extent(y),U.data([n.empty()?e.domain():y]).each(function(a){var b=e(a[0])-c.range()[0],d=K-e(a[1]);d3.select(this).select(".left").attr("width",0>b?0:b),d3.select(this).select(".right").attr("x",e(a[1])).attr("width",0>d?0:d)})}function H(){y=n.empty()?null:n.extent();var a=n.empty()?e.domain():n.extent();if(!(Math.abs(a[0]-a[1])<=1)){A.brush({extent:a,brush:n}),G();var b=Q.select(".nv-focus .nv-linesWrap").datum(o.filter(function(a){return!a.disabled}).map(function(b){return{key:b.key,area:b.area,values:b.values.filter(function(b,c){return g.x()(b,c)>=a[0]&&g.x()(b,c)<=a[1]})}}));b.transition().duration(B).call(g),Q.select(".nv-focus .nv-x.nv-axis").transition().duration(B).call(i),Q.select(".nv-focus .nv-y.nv-axis").transition().duration(B).call(j)}}var I=d3.select(this),J=this;a.utils.initSVG(I);var K=a.utils.availableWidth(t,I,q),L=a.utils.availableHeight(u,I,q)-v,M=v-r.top-r.bottom;if(b.update=function(){I.transition().duration(B).call(b)},b.container=this,C.setter(F(o),b.update).getter(E(o)).update(),C.disabled=o.map(function(a){return!!a.disabled}),!D){var N;D={};for(N in C)D[N]=C[N]instanceof Array?C[N].slice(0):C[N]}if(!(o&&o.length&&o.filter(function(a){return a.values.length}).length))return a.utils.noData(b,I),b;I.selectAll(".nv-noData").remove(),c=g.xScale(),d=g.yScale(),e=h.xScale(),f=h.yScale();var O=I.selectAll("g.nv-wrap.nv-lineWithFocusChart").data([o]),P=O.enter().append("g").attr("class","nvd3 nv-wrap nv-lineWithFocusChart").append("g"),Q=O.select("g");P.append("g").attr("class","nv-legendWrap");var R=P.append("g").attr("class","nv-focus");R.append("g").attr("class","nv-x nv-axis"),R.append("g").attr("class","nv-y nv-axis"),R.append("g").attr("class","nv-linesWrap"),R.append("g").attr("class","nv-interactive");var S=P.append("g").attr("class","nv-context");S.append("g").attr("class","nv-x nv-axis"),S.append("g").attr("class","nv-y nv-axis"),S.append("g").attr("class","nv-linesWrap"),S.append("g").attr("class","nv-brushBackground"),S.append("g").attr("class","nv-x nv-brush"),x&&(m.width(K),Q.select(".nv-legendWrap").datum(o).call(m),q.top!=m.height()&&(q.top=m.height(),L=a.utils.availableHeight(u,I,q)-v),Q.select(".nv-legendWrap").attr("transform","translate(0,"+-q.top+")")),O.attr("transform","translate("+q.left+","+q.top+")"),w&&(p.width(K).height(L).margin({left:q.left,top:q.top}).svgContainer(I).xScale(c),O.select(".nv-interactive").call(p)),g.width(K).height(L).color(o.map(function(a,b){return a.color||s(a,b)}).filter(function(a,b){return!o[b].disabled})),h.defined(g.defined()).width(K).height(M).color(o.map(function(a,b){return a.color||s(a,b)}).filter(function(a,b){return!o[b].disabled})),Q.select(".nv-context").attr("transform","translate(0,"+(L+q.bottom+r.top)+")");var T=Q.select(".nv-context .nv-linesWrap").datum(o.filter(function(a){return!a.disabled}));d3.transition(T).call(h),i.scale(c)._ticks(a.utils.calcTicksX(K/100,o)).tickSize(-L,0),j.scale(d)._ticks(a.utils.calcTicksY(L/36,o)).tickSize(-K,0),Q.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+L+")"),n.x(e).on("brush",function(){H()}),y&&n.extent(y);var U=Q.select(".nv-brushBackground").selectAll("g").data([y||n.extent()]),V=U.enter().append("g");V.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",M),V.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",M);var W=Q.select(".nv-x.nv-brush").call(n);W.selectAll("rect").attr("height",M),W.selectAll(".resize").append("path").attr("d",z),H(),k.scale(e)._ticks(a.utils.calcTicksX(K/100,o)).tickSize(-M,0),Q.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+f.range()[0]+")"),d3.transition(Q.select(".nv-context .nv-x.nv-axis")).call(k),l.scale(f)._ticks(a.utils.calcTicksY(M/36,o)).tickSize(-K,0),d3.transition(Q.select(".nv-context .nv-y.nv-axis")).call(l),Q.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+f.range()[0]+")"),m.dispatch.on("stateChange",function(a){for(var c in a)C[c]=a[c];A.stateChange(C),b.update()}),p.dispatch.on("elementMousemove",function(c){g.clearHighlights();var d,f,h,k=[];if(o.filter(function(a,b){return a.seriesIndex=b,!a.disabled}).forEach(function(i,j){var l=n.empty()?e.domain():n.extent(),m=i.values.filter(function(a,b){return g.x()(a,b)>=l[0]&&g.x()(a,b)<=l[1]});f=a.interactiveBisect(m,c.pointXValue,g.x());var o=m[f],p=b.y()(o,f);null!=p&&g.highlightPoint(j,f,!0),void 0!==o&&(void 0===d&&(d=o),void 0===h&&(h=b.xScale()(b.x()(o,f))),k.push({key:i.key,value:b.y()(o,f),color:s(i,i.seriesIndex)}))}),k.length>2){var l=b.yScale().invert(c.mouseY),m=Math.abs(b.yScale().domain()[0]-b.yScale().domain()[1]),r=.03*m,t=a.nearestValueIndex(k.map(function(a){return a.value}),l,r);null!==t&&(k[t].highlight=!0)}var u=i.tickFormat()(b.x()(d,f));p.tooltip.position({left:c.mouseX+q.left,top:c.mouseY+q.top}).chartContainer(J.parentNode).valueFormatter(function(a){return null==a?"N/A":j.tickFormat()(a)}).data({value:u,index:f,series:k})(),p.renderGuideLine(h)}),p.dispatch.on("elementMouseout",function(){g.clearHighlights()}),A.on("changeState",function(a){"undefined"!=typeof a.disabled&&o.forEach(function(b,c){b.disabled=a.disabled[c]}),b.update()})}),b}var c,d,e,f,g=a.models.line(),h=a.models.line(),i=a.models.axis(),j=a.models.axis(),k=a.models.axis(),l=a.models.axis(),m=a.models.legend(),n=d3.svg.brush(),o=a.models.tooltip(),p=a.interactiveGuideline(),q={top:30,right:30,bottom:30,left:60},r={top:0,right:30,bottom:20,left:60},s=a.utils.defaultColor(),t=null,u=null,v=50,w=!1,x=!0,y=null,z=null,A=d3.dispatch("brush","stateChange","changeState"),B=250,C=a.utils.state(),D=null;g.clipEdge(!0).duration(0),h.interactive(!1),h.pointActive(function(){return!1}),i.orient("bottom").tickPadding(5),j.orient("left"),k.orient("bottom").tickPadding(5),l.orient("left"),o.valueFormatter(function(a,b){return j.tickFormat()(a,b)}).headerFormatter(function(a,b){return i.tickFormat()(a,b)});var E=function(a){return function(){return{active:a.map(function(a){return!a.disabled})}}},F=function(a){return function(b){void 0!==b.active&&a.forEach(function(a,c){a.disabled=!b.active[c]})}};return g.dispatch.on("elementMouseover.tooltip",function(a){o.data(a).position(a.pos).hidden(!1)}),g.dispatch.on("elementMouseout.tooltip",function(){o.hidden(!0)}),b.dispatch=A,b.legend=m,b.lines=g,b.lines2=h,b.xAxis=i,b.yAxis=j,b.x2Axis=k,b.y2Axis=l,b.interactiveLayer=p,b.tooltip=o,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return t},set:function(a){t=a}},height:{get:function(){return u},set:function(a){u=a}},focusHeight:{get:function(){return v},set:function(a){v=a}},showLegend:{get:function(){return x},set:function(a){x=a}},brushExtent:{get:function(){return y},set:function(a){y=a}},defaultState:{get:function(){return D},set:function(a){D=a}},noData:{get:function(){return z},set:function(a){z=a}},tooltips:{get:function(){return o.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),o.enabled(!!b)}},tooltipContent:{get:function(){return o.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),o.contentGenerator(b)}},margin:{get:function(){return q},set:function(a){q.top=void 0!==a.top?a.top:q.top,q.right=void 0!==a.right?a.right:q.right,q.bottom=void 0!==a.bottom?a.bottom:q.bottom,q.left=void 0!==a.left?a.left:q.left}},focusMargin:{get:function(){return r},set:function(a){r.top=void 0!==a.top?a.top:r.top,r.right=void 0!==a.right?a.right:r.right,r.bottom=void 0!==a.bottom?a.bottom:r.bottom,r.left=void 0!==a.left?a.left:r.left}},color:{get:function(){return s},set:function(b){s=a.utils.getColor(b),m.color(s)}},interpolate:{get:function(){return g.interpolate()},set:function(a){g.interpolate(a),h.interpolate(a)}},xTickFormat:{get:function(){return i.tickFormat()},set:function(a){i.tickFormat(a),k.tickFormat(a)}},yTickFormat:{get:function(){return j.tickFormat()},set:function(a){j.tickFormat(a),l.tickFormat(a)}},duration:{get:function(){return B},set:function(a){B=a,j.duration(B),l.duration(B),i.duration(B),k.duration(B)}},x:{get:function(){return g.x()},set:function(a){g.x(a),h.x(a)}},y:{get:function(){return g.y()},set:function(a){g.y(a),h.y(a)}},useInteractiveGuideline:{get:function(){return w},set:function(a){w=a,w&&(g.interactive(!1),g.useVoronoi(!1))}}}),a.utils.inheritOptions(b,g),a.utils.initOptions(b),b},a.models.multiBar=function(){"use strict";function b(G){return E.reset(),G.each(function(b){var G=k-j.left-j.right,H=l-j.top-j.bottom;p=d3.select(this),a.utils.initSVG(p);var I=0;if(z&&b.length&&(z=[{values:b[0].values.map(function(a){return{x:a.x,y:0,series:a.series,size:.01}})}]),v){var J=d3.layout.stack().offset(w).values(function(a){return a.values}).y(r)(!b.length&&z?z:b);J.forEach(function(a,c){a.nonStackable?(b[c].nonStackableSeries=I++,J[c]=b[c]):c>0&&J[c-1].nonStackable&&J[c].values.map(function(a,b){a.y0-=J[c-1].values[b].y,a.y1=a.y0+a.y})}),b=J}b.forEach(function(a,b){a.values.forEach(function(c){c.series=b,c.key=a.key})}),v&&b[0].values.map(function(a,c){var d=0,e=0;b.map(function(a,f){if(!b[f].nonStackable){var g=a.values[c];g.size=Math.abs(g.y),g.y<0?(g.y1=e,e-=g.size):(g.y1=g.size+d,d+=g.size)}})});var K=d&&e?[]:b.map(function(a,b){return a.values.map(function(a,c){return{x:q(a,c),y:r(a,c),y0:a.y0,y1:a.y1,idx:b,yErr:s(a,c)}})});m.domain(d||d3.merge(K).map(function(a){return a.x})).rangeBands(f||[0,G],C),n.domain(e||d3.extent(d3.merge(d3.merge(K).map(function(a){var c=a.y;v&&!b[a.idx].nonStackable&&(c=a.y>0?a.y1:a.y1+a.y);var d=a.yErr;return d?d.length?[c+d[0],c+d[1]]:(d=Math.abs(d),[c-d,c+d]):[c]})).concat(t))).range(g||[H,0]),m.domain()[0]===m.domain()[1]&&m.domain(m.domain()[0]?[m.domain()[0]-.01*m.domain()[0],m.domain()[1]+.01*m.domain()[1]]:[-1,1]),n.domain()[0]===n.domain()[1]&&n.domain(n.domain()[0]?[n.domain()[0]+.01*n.domain()[0],n.domain()[1]-.01*n.domain()[1]]:[-1,1]),h=h||m,i=i||n;var L=p.selectAll("g.nv-wrap.nv-multibar").data([b]),M=L.enter().append("g").attr("class","nvd3 nv-wrap nv-multibar"),N=M.append("defs"),O=M.append("g"),P=L.select("g");O.append("g").attr("class","nv-groups"),L.attr("transform","translate("+j.left+","+j.top+")"),N.append("clipPath").attr("id","nv-edge-clip-"+o).append("rect"),L.select("#nv-edge-clip-"+o+" rect").attr("width",G).attr("height",H),P.attr("clip-path",u?"url(#nv-edge-clip-"+o+")":"");var Q=L.select(".nv-groups").selectAll(".nv-group").data(function(a){return a},function(a,b){return b});Q.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);var R=E.transition(Q.exit().selectAll("g.nv-bar"),"multibarExit",Math.min(100,B)).attr("y",function(a){var c=i(0)||0;return v&&b[a.series]&&!b[a.series].nonStackable&&(c=i(a.y0)),c}).attr("height",0).remove();R.delay&&R.delay(function(a,b){var c=b*(B/(F+1))-b;return c}),Q.attr("class",function(a,b){return"nv-group nv-series-"+b}).classed("hover",function(a){return a.hover}).style("fill",function(a,b){return x(a,b)}).style("stroke",function(a,b){return x(a,b)}),Q.style("stroke-opacity",1).style("fill-opacity",.75);var S=Q.selectAll("g.nv-bar").data(function(a){return z&&!b.length?z.values:a.values});S.exit().remove();var T=S.enter().append("g").attr("class",function(a,b){return r(a,b)<0?"nv-bar negative":"nv-bar positive"}).attr("transform",function(a,c,d){var e=v&&!b[d].nonStackable?0:d*m.rangeBand()/b.length,f=i(v&&!b[d].nonStackable?a.y0:0)||0;return"translate("+e+","+f+")"});T.append("rect").attr("height",0).attr("width",function(a,c,d){return m.rangeBand()/(v&&!b[d].nonStackable?1:b.length)}).style("fill",function(a,b,c){return x(a,c,b)}).style("stroke",function(a,b,c){return x(a,c,b)}),S.on("mouseover",function(a,b){d3.select(this).classed("hover",!0),D.elementMouseover({data:a,index:b,color:d3.select(this).style("fill")})}).on("mouseout",function(a,b){d3.select(this).classed("hover",!1),D.elementMouseout({data:a,index:b,color:d3.select(this).style("fill")})}).on("mousemove",function(a,b){D.elementMousemove({data:a,index:b,color:d3.select(this).style("fill")})}).on("click",function(a,b){D.elementClick({data:a,index:b,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}).on("dblclick",function(a,b){D.elementDblClick({data:a,index:b,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}),s(b[0].values[0],0)&&(T.append("polyline"),S.select("polyline").attr("fill","none").attr("stroke",function(a,b,c){return y(a,c,b)}).attr("points",function(a,c){var d=s(a,c),e=.8*m.rangeBand()/(2*(v?1:b.length));d=d.length?d:[-Math.abs(d),Math.abs(d)],d=d.map(function(a){return n(a)-n(0)});var f=[[-e,d[0]],[e,d[0]],[0,d[0]],[0,d[1]],[-e,d[1]],[e,d[1]]];return f.map(function(a){return a.join(",")}).join(" ")}).attr("transform",function(a,c){var d=m.rangeBand()/(2*(v?1:b.length)),e=r(a,c)<0?n(r(a,c))-n(0):0;return"translate("+d+", "+e+")"})),S.attr("class",function(a,b){return r(a,b)<0?"nv-bar negative":"nv-bar positive"}),A&&(c||(c=b.map(function(){return!0})),S.select("rect").style("fill",function(a,b,d){return d3.rgb(A(a,b)).darker(c.map(function(a,b){return b}).filter(function(a,b){return!c[b]})[d]).toString()}).style("stroke",function(a,b,d){return d3.rgb(A(a,b)).darker(c.map(function(a,b){return b}).filter(function(a,b){return!c[b]})[d]).toString()}));var U=S.watchTransition(E,"multibar",Math.min(250,B)).delay(function(a,c){return c*B/b[0].values.length});v?U.attr("transform",function(a,c,d){var e=0;e=b[d].nonStackable?r(a,c)<0?n(0):n(0)-n(r(a,c))<-1?n(0)-1:n(r(a,c))||0:n(a.y1);var f=0;b[d].nonStackable&&(f=a.series*m.rangeBand()/b.length,b.length!==I&&(f=b[d].nonStackableSeries*m.rangeBand()/(2*I)));var g=f+m(q(a,c));return"translate("+g+","+e+")"}).select("rect").attr("height",function(a,c,d){return b[d].nonStackable?Math.max(Math.abs(n(r(a,c))-n(0)),1)||0:Math.max(Math.abs(n(a.y+a.y0)-n(a.y0)),1)}).attr("width",function(a,c,d){if(b[d].nonStackable){var e=m.rangeBand()/I;return b.length!==I&&(e=m.rangeBand()/(2*I)),e}return m.rangeBand()}):U.attr("transform",function(a,c){var d=a.series*m.rangeBand()/b.length+m(q(a,c)),e=r(a,c)<0?n(0):n(0)-n(r(a,c))<1?n(0)-1:n(r(a,c))||0;return"translate("+d+","+e+")"}).select("rect").attr("width",m.rangeBand()/b.length).attr("height",function(a,b){return Math.max(Math.abs(n(r(a,b))-n(0)),1)||0}),h=m.copy(),i=n.copy(),b[0]&&b[0].values&&(F=b[0].values.length)}),E.renderEnd("multibar immediate"),b}var c,d,e,f,g,h,i,j={top:0,right:0,bottom:0,left:0},k=960,l=500,m=d3.scale.ordinal(),n=d3.scale.linear(),o=Math.floor(1e4*Math.random()),p=null,q=function(a){return a.x},r=function(a){return a.y},s=function(a){return a.yErr},t=[0],u=!0,v=!1,w="zero",x=a.utils.defaultColor(),y=a.utils.defaultColor(),z=!1,A=null,B=500,C=.1,D=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),E=a.utils.renderWatch(D,B),F=0;return b.dispatch=D,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return k},set:function(a){k=a}},height:{get:function(){return l},set:function(a){l=a}},x:{get:function(){return q},set:function(a){q=a}},y:{get:function(){return r},set:function(a){r=a}},yErr:{get:function(){return s},set:function(a){s=a}},xScale:{get:function(){return m},set:function(a){m=a}},yScale:{get:function(){return n},set:function(a){n=a}},xDomain:{get:function(){return d},set:function(a){d=a}},yDomain:{get:function(){return e},set:function(a){e=a}},xRange:{get:function(){return f},set:function(a){f=a}},yRange:{get:function(){return g},set:function(a){g=a}},forceY:{get:function(){return t},set:function(a){t=a}},stacked:{get:function(){return v},set:function(a){v=a}},stackOffset:{get:function(){return w},set:function(a){w=a}},clipEdge:{get:function(){return u},set:function(a){u=a}},disabled:{get:function(){return c},set:function(a){c=a}},id:{get:function(){return o},set:function(a){o=a}},hideable:{get:function(){return z
-},set:function(a){z=a}},groupSpacing:{get:function(){return C},set:function(a){C=a}},margin:{get:function(){return j},set:function(a){j.top=void 0!==a.top?a.top:j.top,j.right=void 0!==a.right?a.right:j.right,j.bottom=void 0!==a.bottom?a.bottom:j.bottom,j.left=void 0!==a.left?a.left:j.left}},duration:{get:function(){return B},set:function(a){B=a,E.reset(B)}},color:{get:function(){return x},set:function(b){x=a.utils.getColor(b)}},barColor:{get:function(){return A},set:function(b){A=b?a.utils.getColor(b):null}},errorBarColor:{get:function(){return y},set:function(b){y=b?a.utils.getColor(b):null}}}),a.utils.initOptions(b),b},a.models.multiBarChart=function(){"use strict";function b(j){return D.reset(),D.models(e),r&&D.models(f),s&&D.models(g),j.each(function(j){var z=d3.select(this);a.utils.initSVG(z);var D=a.utils.availableWidth(l,z,k),H=a.utils.availableHeight(m,z,k);if(b.update=function(){0===C?z.call(b):z.transition().duration(C).call(b)},b.container=this,x.setter(G(j),b.update).getter(F(j)).update(),x.disabled=j.map(function(a){return!!a.disabled}),!y){var I;y={};for(I in x)y[I]=x[I]instanceof Array?x[I].slice(0):x[I]}if(!(j&&j.length&&j.filter(function(a){return a.values.length}).length))return a.utils.noData(b,z),b;z.selectAll(".nv-noData").remove(),c=e.xScale(),d=e.yScale();var J=z.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([j]),K=J.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend").append("g"),L=J.select("g");if(K.append("g").attr("class","nv-x nv-axis"),K.append("g").attr("class","nv-y nv-axis"),K.append("g").attr("class","nv-barsWrap"),K.append("g").attr("class","nv-legendWrap"),K.append("g").attr("class","nv-controlsWrap"),q&&(h.width(D-B()),L.select(".nv-legendWrap").datum(j).call(h),k.top!=h.height()&&(k.top=h.height(),H=a.utils.availableHeight(m,z,k)),L.select(".nv-legendWrap").attr("transform","translate("+B()+","+-k.top+")")),o){var M=[{key:p.grouped||"Grouped",disabled:e.stacked()},{key:p.stacked||"Stacked",disabled:!e.stacked()}];i.width(B()).color(["#444","#444","#444"]),L.select(".nv-controlsWrap").datum(M).attr("transform","translate(0,"+-k.top+")").call(i)}J.attr("transform","translate("+k.left+","+k.top+")"),t&&L.select(".nv-y.nv-axis").attr("transform","translate("+D+",0)"),e.disabled(j.map(function(a){return a.disabled})).width(D).height(H).color(j.map(function(a,b){return a.color||n(a,b)}).filter(function(a,b){return!j[b].disabled}));var N=L.select(".nv-barsWrap").datum(j.filter(function(a){return!a.disabled}));if(N.call(e),r){f.scale(c)._ticks(a.utils.calcTicksX(D/100,j)).tickSize(-H,0),L.select(".nv-x.nv-axis").attr("transform","translate(0,"+d.range()[0]+")"),L.select(".nv-x.nv-axis").call(f);var O=L.select(".nv-x.nv-axis > g").selectAll("g");if(O.selectAll("line, text").style("opacity",1),v){var P=function(a,b){return"translate("+a+","+b+")"},Q=5,R=17;O.selectAll("text").attr("transform",function(a,b,c){return P(0,c%2==0?Q:R)});var S=d3.selectAll(".nv-x.nv-axis .nv-wrap g g text")[0].length;L.selectAll(".nv-x.nv-axis .nv-axisMaxMin text").attr("transform",function(a,b){return P(0,0===b||S%2!==0?R:Q)})}u&&O.filter(function(a,b){return b%Math.ceil(j[0].values.length/(D/100))!==0}).selectAll("text, line").style("opacity",0),w&&O.selectAll(".tick text").attr("transform","rotate("+w+" 0,0)").style("text-anchor",w>0?"start":"end"),L.select(".nv-x.nv-axis").selectAll("g.nv-axisMaxMin text").style("opacity",1)}s&&(g.scale(d)._ticks(a.utils.calcTicksY(H/36,j)).tickSize(-D,0),L.select(".nv-y.nv-axis").call(g)),h.dispatch.on("stateChange",function(a){for(var c in a)x[c]=a[c];A.stateChange(x),b.update()}),i.dispatch.on("legendClick",function(a){if(a.disabled){switch(M=M.map(function(a){return a.disabled=!0,a}),a.disabled=!1,a.key){case"Grouped":case p.grouped:e.stacked(!1);break;case"Stacked":case p.stacked:e.stacked(!0)}x.stacked=e.stacked(),A.stateChange(x),b.update()}}),A.on("changeState",function(a){"undefined"!=typeof a.disabled&&(j.forEach(function(b,c){b.disabled=a.disabled[c]}),x.disabled=a.disabled),"undefined"!=typeof a.stacked&&(e.stacked(a.stacked),x.stacked=a.stacked,E=a.stacked),b.update()})}),D.renderEnd("multibarchart immediate"),b}var c,d,e=a.models.multiBar(),f=a.models.axis(),g=a.models.axis(),h=a.models.legend(),i=a.models.legend(),j=a.models.tooltip(),k={top:30,right:20,bottom:50,left:60},l=null,m=null,n=a.utils.defaultColor(),o=!0,p={},q=!0,r=!0,s=!0,t=!1,u=!0,v=!1,w=0,x=a.utils.state(),y=null,z=null,A=d3.dispatch("stateChange","changeState","renderEnd"),B=function(){return o?180:0},C=250;x.stacked=!1,e.stacked(!1),f.orient("bottom").tickPadding(7).showMaxMin(!1).tickFormat(function(a){return a}),g.orient(t?"right":"left").tickFormat(d3.format(",.1f")),j.duration(0).valueFormatter(function(a,b){return g.tickFormat()(a,b)}).headerFormatter(function(a,b){return f.tickFormat()(a,b)}),i.updateState(!1);var D=a.utils.renderWatch(A),E=!1,F=function(a){return function(){return{active:a.map(function(a){return!a.disabled}),stacked:E}}},G=function(a){return function(b){void 0!==b.stacked&&(E=b.stacked),void 0!==b.active&&a.forEach(function(a,c){a.disabled=!b.active[c]})}};return e.dispatch.on("elementMouseover.tooltip",function(a){a.value=b.x()(a.data),a.series={key:a.data.key,value:b.y()(a.data),color:a.color},j.data(a).hidden(!1)}),e.dispatch.on("elementMouseout.tooltip",function(){j.hidden(!0)}),e.dispatch.on("elementMousemove.tooltip",function(){j.position({top:d3.event.pageY,left:d3.event.pageX})()}),b.dispatch=A,b.multibar=e,b.legend=h,b.controls=i,b.xAxis=f,b.yAxis=g,b.state=x,b.tooltip=j,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return l},set:function(a){l=a}},height:{get:function(){return m},set:function(a){m=a}},showLegend:{get:function(){return q},set:function(a){q=a}},showControls:{get:function(){return o},set:function(a){o=a}},controlLabels:{get:function(){return p},set:function(a){p=a}},showXAxis:{get:function(){return r},set:function(a){r=a}},showYAxis:{get:function(){return s},set:function(a){s=a}},defaultState:{get:function(){return y},set:function(a){y=a}},noData:{get:function(){return z},set:function(a){z=a}},reduceXTicks:{get:function(){return u},set:function(a){u=a}},rotateLabels:{get:function(){return w},set:function(a){w=a}},staggerLabels:{get:function(){return v},set:function(a){v=a}},tooltips:{get:function(){return j.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),j.enabled(!!b)}},tooltipContent:{get:function(){return j.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),j.contentGenerator(b)}},margin:{get:function(){return k},set:function(a){k.top=void 0!==a.top?a.top:k.top,k.right=void 0!==a.right?a.right:k.right,k.bottom=void 0!==a.bottom?a.bottom:k.bottom,k.left=void 0!==a.left?a.left:k.left}},duration:{get:function(){return C},set:function(a){C=a,e.duration(C),f.duration(C),g.duration(C),D.reset(C)}},color:{get:function(){return n},set:function(b){n=a.utils.getColor(b),h.color(n)}},rightAlignYAxis:{get:function(){return t},set:function(a){t=a,g.orient(t?"right":"left")}},barColor:{get:function(){return e.barColor},set:function(a){e.barColor(a),h.color(function(a,b){return d3.rgb("#ccc").darker(1.5*b).toString()})}}}),a.utils.inheritOptions(b,e),a.utils.initOptions(b),b},a.models.multiBarHorizontal=function(){"use strict";function b(m){return F.reset(),m.each(function(b){var m=k-j.left-j.right,D=l-j.top-j.bottom;n=d3.select(this),a.utils.initSVG(n),x&&(b=d3.layout.stack().offset("zero").values(function(a){return a.values}).y(r)(b)),b.forEach(function(a,b){a.values.forEach(function(c){c.series=b,c.key=a.key})}),x&&b[0].values.map(function(a,c){var d=0,e=0;b.map(function(a){var b=a.values[c];b.size=Math.abs(b.y),b.y<0?(b.y1=e-b.size,e-=b.size):(b.y1=d,d+=b.size)})});var G=d&&e?[]:b.map(function(a){return a.values.map(function(a,b){return{x:q(a,b),y:r(a,b),y0:a.y0,y1:a.y1,yErr:s(a,b)}})});o.domain(d||d3.merge(G).map(function(a){return a.x})).rangeBands(f||[0,D],B),p.domain(e||d3.extent(d3.merge(d3.merge(G).map(function(a){var b=a.y;x&&(b=a.y>0?a.y1+a.y:a.y1);var c=a.yErr;return c?c.length?[b+c[0],b+c[1]]:(c=Math.abs(c),[b-c,b+c]):[b]})).concat(t))),p.range(y&&!x?g||[p.domain()[0]<0?A:0,m-(p.domain()[1]>0?A:0)]:g||[0,m]),h=h||o,i=i||d3.scale.linear().domain(p.domain()).range([p(0),p(0)]);{var H=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([b]),I=H.enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal"),J=(I.append("defs"),I.append("g"));H.select("g")}J.append("g").attr("class","nv-groups"),H.attr("transform","translate("+j.left+","+j.top+")");var K=H.select(".nv-groups").selectAll(".nv-group").data(function(a){return a},function(a,b){return b});K.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),K.exit().watchTransition(F,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),K.attr("class",function(a,b){return"nv-group nv-series-"+b}).classed("hover",function(a){return a.hover}).style("fill",function(a,b){return u(a,b)}).style("stroke",function(a,b){return u(a,b)}),K.watchTransition(F,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",.75);var L=K.selectAll("g.nv-bar").data(function(a){return a.values});L.exit().remove();var M=L.enter().append("g").attr("transform",function(a,c,d){return"translate("+i(x?a.y0:0)+","+(x?0:d*o.rangeBand()/b.length+o(q(a,c)))+")"});M.append("rect").attr("width",0).attr("height",o.rangeBand()/(x?1:b.length)),L.on("mouseover",function(a,b){d3.select(this).classed("hover",!0),E.elementMouseover({data:a,index:b,color:d3.select(this).style("fill")})}).on("mouseout",function(a,b){d3.select(this).classed("hover",!1),E.elementMouseout({data:a,index:b,color:d3.select(this).style("fill")})}).on("mouseout",function(a,b){E.elementMouseout({data:a,index:b,color:d3.select(this).style("fill")})}).on("mousemove",function(a,b){E.elementMousemove({data:a,index:b,color:d3.select(this).style("fill")})}).on("click",function(a,b){E.elementClick({data:a,index:b,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}).on("dblclick",function(a,b){E.elementDblClick({data:a,index:b,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}),s(b[0].values[0],0)&&(M.append("polyline"),L.select("polyline").attr("fill","none").attr("stroke",function(a,b,c){return w(a,c,b)}).attr("points",function(a,c){var d=s(a,c),e=.8*o.rangeBand()/(2*(x?1:b.length));d=d.length?d:[-Math.abs(d),Math.abs(d)],d=d.map(function(a){return p(a)-p(0)});var f=[[d[0],-e],[d[0],e],[d[0],0],[d[1],0],[d[1],-e],[d[1],e]];return f.map(function(a){return a.join(",")}).join(" ")}).attr("transform",function(a,c){var d=o.rangeBand()/(2*(x?1:b.length));return"translate("+(r(a,c)<0?0:p(r(a,c))-p(0))+", "+d+")"})),M.append("text"),y&&!x?(L.select("text").attr("text-anchor",function(a,b){return r(a,b)<0?"end":"start"}).attr("y",o.rangeBand()/(2*b.length)).attr("dy",".32em").text(function(a,b){var c=C(r(a,b)),d=s(a,b);return void 0===d?c:d.length?c+"+"+C(Math.abs(d[1]))+"-"+C(Math.abs(d[0])):c+"±"+C(Math.abs(d))}),L.watchTransition(F,"multibarhorizontal: bars").select("text").attr("x",function(a,b){return r(a,b)<0?-4:p(r(a,b))-p(0)+4})):L.selectAll("text").text(""),z&&!x?(M.append("text").classed("nv-bar-label",!0),L.select("text.nv-bar-label").attr("text-anchor",function(a,b){return r(a,b)<0?"start":"end"}).attr("y",o.rangeBand()/(2*b.length)).attr("dy",".32em").text(function(a,b){return q(a,b)}),L.watchTransition(F,"multibarhorizontal: bars").select("text.nv-bar-label").attr("x",function(a,b){return r(a,b)<0?p(0)-p(r(a,b))+4:-4})):L.selectAll("text.nv-bar-label").text(""),L.attr("class",function(a,b){return r(a,b)<0?"nv-bar negative":"nv-bar positive"}),v&&(c||(c=b.map(function(){return!0})),L.style("fill",function(a,b,d){return d3.rgb(v(a,b)).darker(c.map(function(a,b){return b}).filter(function(a,b){return!c[b]})[d]).toString()}).style("stroke",function(a,b,d){return d3.rgb(v(a,b)).darker(c.map(function(a,b){return b}).filter(function(a,b){return!c[b]})[d]).toString()})),x?L.watchTransition(F,"multibarhorizontal: bars").attr("transform",function(a,b){return"translate("+p(a.y1)+","+o(q(a,b))+")"}).select("rect").attr("width",function(a,b){return Math.abs(p(r(a,b)+a.y0)-p(a.y0))}).attr("height",o.rangeBand()):L.watchTransition(F,"multibarhorizontal: bars").attr("transform",function(a,c){return"translate("+p(r(a,c)<0?r(a,c):0)+","+(a.series*o.rangeBand()/b.length+o(q(a,c)))+")"}).select("rect").attr("height",o.rangeBand()/b.length).attr("width",function(a,b){return Math.max(Math.abs(p(r(a,b))-p(0)),1)}),h=o.copy(),i=p.copy()}),F.renderEnd("multibarHorizontal immediate"),b}var c,d,e,f,g,h,i,j={top:0,right:0,bottom:0,left:0},k=960,l=500,m=Math.floor(1e4*Math.random()),n=null,o=d3.scale.ordinal(),p=d3.scale.linear(),q=function(a){return a.x},r=function(a){return a.y},s=function(a){return a.yErr},t=[0],u=a.utils.defaultColor(),v=null,w=a.utils.defaultColor(),x=!1,y=!1,z=!1,A=60,B=.1,C=d3.format(",.2f"),D=250,E=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),F=a.utils.renderWatch(E,D);return b.dispatch=E,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return k},set:function(a){k=a}},height:{get:function(){return l},set:function(a){l=a}},x:{get:function(){return q},set:function(a){q=a}},y:{get:function(){return r},set:function(a){r=a}},yErr:{get:function(){return s},set:function(a){s=a}},xScale:{get:function(){return o},set:function(a){o=a}},yScale:{get:function(){return p},set:function(a){p=a}},xDomain:{get:function(){return d},set:function(a){d=a}},yDomain:{get:function(){return e},set:function(a){e=a}},xRange:{get:function(){return f},set:function(a){f=a}},yRange:{get:function(){return g},set:function(a){g=a}},forceY:{get:function(){return t},set:function(a){t=a}},stacked:{get:function(){return x},set:function(a){x=a}},showValues:{get:function(){return y},set:function(a){y=a}},disabled:{get:function(){return c},set:function(a){c=a}},id:{get:function(){return m},set:function(a){m=a}},valueFormat:{get:function(){return C},set:function(a){C=a}},valuePadding:{get:function(){return A},set:function(a){A=a}},groupSpacing:{get:function(){return B},set:function(a){B=a}},margin:{get:function(){return j},set:function(a){j.top=void 0!==a.top?a.top:j.top,j.right=void 0!==a.right?a.right:j.right,j.bottom=void 0!==a.bottom?a.bottom:j.bottom,j.left=void 0!==a.left?a.left:j.left}},duration:{get:function(){return D},set:function(a){D=a,F.reset(D)}},color:{get:function(){return u},set:function(b){u=a.utils.getColor(b)}},barColor:{get:function(){return v},set:function(b){v=b?a.utils.getColor(b):null}},errorBarColor:{get:function(){return w},set:function(b){w=b?a.utils.getColor(b):null}}}),a.utils.initOptions(b),b},a.models.multiBarHorizontalChart=function(){"use strict";function b(j){return C.reset(),C.models(e),r&&C.models(f),s&&C.models(g),j.each(function(j){var w=d3.select(this);a.utils.initSVG(w);var C=a.utils.availableWidth(l,w,k),D=a.utils.availableHeight(m,w,k);if(b.update=function(){w.transition().duration(z).call(b)},b.container=this,t=e.stacked(),u.setter(B(j),b.update).getter(A(j)).update(),u.disabled=j.map(function(a){return!!a.disabled}),!v){var E;v={};for(E in u)v[E]=u[E]instanceof Array?u[E].slice(0):u[E]}if(!(j&&j.length&&j.filter(function(a){return a.values.length}).length))return a.utils.noData(b,w),b;w.selectAll(".nv-noData").remove(),c=e.xScale(),d=e.yScale();var F=w.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").data([j]),G=F.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarHorizontalChart").append("g"),H=F.select("g");if(G.append("g").attr("class","nv-x nv-axis"),G.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),G.append("g").attr("class","nv-barsWrap"),G.append("g").attr("class","nv-legendWrap"),G.append("g").attr("class","nv-controlsWrap"),q&&(h.width(C-y()),H.select(".nv-legendWrap").datum(j).call(h),k.top!=h.height()&&(k.top=h.height(),D=a.utils.availableHeight(m,w,k)),H.select(".nv-legendWrap").attr("transform","translate("+y()+","+-k.top+")")),o){var I=[{key:p.grouped||"Grouped",disabled:e.stacked()},{key:p.stacked||"Stacked",disabled:!e.stacked()}];i.width(y()).color(["#444","#444","#444"]),H.select(".nv-controlsWrap").datum(I).attr("transform","translate(0,"+-k.top+")").call(i)}F.attr("transform","translate("+k.left+","+k.top+")"),e.disabled(j.map(function(a){return a.disabled})).width(C).height(D).color(j.map(function(a,b){return a.color||n(a,b)}).filter(function(a,b){return!j[b].disabled}));var J=H.select(".nv-barsWrap").datum(j.filter(function(a){return!a.disabled}));if(J.transition().call(e),r){f.scale(c)._ticks(a.utils.calcTicksY(D/24,j)).tickSize(-C,0),H.select(".nv-x.nv-axis").call(f);var K=H.select(".nv-x.nv-axis").selectAll("g");K.selectAll("line, text")}s&&(g.scale(d)._ticks(a.utils.calcTicksX(C/100,j)).tickSize(-D,0),H.select(".nv-y.nv-axis").attr("transform","translate(0,"+D+")"),H.select(".nv-y.nv-axis").call(g)),H.select(".nv-zeroLine line").attr("x1",d(0)).attr("x2",d(0)).attr("y1",0).attr("y2",-D),h.dispatch.on("stateChange",function(a){for(var c in a)u[c]=a[c];x.stateChange(u),b.update()}),i.dispatch.on("legendClick",function(a){if(a.disabled){switch(I=I.map(function(a){return a.disabled=!0,a}),a.disabled=!1,a.key){case"Grouped":e.stacked(!1);break;case"Stacked":e.stacked(!0)}u.stacked=e.stacked(),x.stateChange(u),t=e.stacked(),b.update()}}),x.on("changeState",function(a){"undefined"!=typeof a.disabled&&(j.forEach(function(b,c){b.disabled=a.disabled[c]}),u.disabled=a.disabled),"undefined"!=typeof a.stacked&&(e.stacked(a.stacked),u.stacked=a.stacked,t=a.stacked),b.update()})}),C.renderEnd("multibar horizontal chart immediate"),b}var c,d,e=a.models.multiBarHorizontal(),f=a.models.axis(),g=a.models.axis(),h=a.models.legend().height(30),i=a.models.legend().height(30),j=a.models.tooltip(),k={top:30,right:20,bottom:50,left:60},l=null,m=null,n=a.utils.defaultColor(),o=!0,p={},q=!0,r=!0,s=!0,t=!1,u=a.utils.state(),v=null,w=null,x=d3.dispatch("stateChange","changeState","renderEnd"),y=function(){return o?180:0},z=250;u.stacked=!1,e.stacked(t),f.orient("left").tickPadding(5).showMaxMin(!1).tickFormat(function(a){return a}),g.orient("bottom").tickFormat(d3.format(",.1f")),j.duration(0).valueFormatter(function(a,b){return g.tickFormat()(a,b)}).headerFormatter(function(a,b){return f.tickFormat()(a,b)}),i.updateState(!1);var A=function(a){return function(){return{active:a.map(function(a){return!a.disabled}),stacked:t}}},B=function(a){return function(b){void 0!==b.stacked&&(t=b.stacked),void 0!==b.active&&a.forEach(function(a,c){a.disabled=!b.active[c]})}},C=a.utils.renderWatch(x,z);return e.dispatch.on("elementMouseover.tooltip",function(a){a.value=b.x()(a.data),a.series={key:a.data.key,value:b.y()(a.data),color:a.color},j.data(a).hidden(!1)}),e.dispatch.on("elementMouseout.tooltip",function(){j.hidden(!0)}),e.dispatch.on("elementMousemove.tooltip",function(){j.position({top:d3.event.pageY,left:d3.event.pageX})()}),b.dispatch=x,b.multibar=e,b.legend=h,b.controls=i,b.xAxis=f,b.yAxis=g,b.state=u,b.tooltip=j,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return l},set:function(a){l=a}},height:{get:function(){return m},set:function(a){m=a}},showLegend:{get:function(){return q},set:function(a){q=a}},showControls:{get:function(){return o},set:function(a){o=a}},controlLabels:{get:function(){return p},set:function(a){p=a}},showXAxis:{get:function(){return r},set:function(a){r=a}},showYAxis:{get:function(){return s},set:function(a){s=a}},defaultState:{get:function(){return v},set:function(a){v=a}},noData:{get:function(){return w},set:function(a){w=a}},tooltips:{get:function(){return j.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),j.enabled(!!b)}},tooltipContent:{get:function(){return j.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),j.contentGenerator(b)}},margin:{get:function(){return k},set:function(a){k.top=void 0!==a.top?a.top:k.top,k.right=void 0!==a.right?a.right:k.right,k.bottom=void 0!==a.bottom?a.bottom:k.bottom,k.left=void 0!==a.left?a.left:k.left}},duration:{get:function(){return z},set:function(a){z=a,C.reset(z),e.duration(z),f.duration(z),g.duration(z)}},color:{get:function(){return n},set:function(b){n=a.utils.getColor(b),h.color(n)}},barColor:{get:function(){return e.barColor},set:function(a){e.barColor(a),h.color(function(a,b){return d3.rgb("#ccc").darker(1.5*b).toString()})}}}),a.utils.inheritOptions(b,e),a.utils.initOptions(b),b},a.models.multiChart=function(){"use strict";function b(j){return j.each(function(j){function k(a){var b=2===j[a.seriesIndex].yAxis?B:A;a.value=a.point.x,a.series={value:a.point.y,color:a.point.color},D.duration(100).valueFormatter(function(a,c){return b.tickFormat()(a,c)}).data(a).position(a.pos).hidden(!1)}function l(a){var b=2===j[a.seriesIndex].yAxis?B:A;a.value=a.point.x,a.series={value:a.point.y,color:a.point.color},D.duration(100).valueFormatter(function(a,c){return b.tickFormat()(a,c)}).data(a).position(a.pos).hidden(!1)}function n(a){var b=2===j[a.seriesIndex].yAxis?B:A;a.point.x=x.x()(a.point),a.point.y=x.y()(a.point),D.duration(100).valueFormatter(function(a,c){return b.tickFormat()(a,c)}).data(a).position(a.pos).hidden(!1)}function E(a){var b=2===j[a.data.series].yAxis?B:A;a.value=v.x()(a.data),a.series={value:v.y()(a.data),color:a.color},D.duration(0).valueFormatter(function(a,c){return b.tickFormat()(a,c)}).data(a).hidden(!1)}var F=d3.select(this);a.utils.initSVG(F),b.update=function(){F.transition().call(b)},b.container=this;var G=a.utils.availableWidth(g,F,e),H=a.utils.availableHeight(h,F,e),I=j.filter(function(a){return"line"==a.type&&1==a.yAxis}),J=j.filter(function(a){return"line"==a.type&&2==a.yAxis}),K=j.filter(function(a){return"scatter"==a.type&&1==a.yAxis}),L=j.filter(function(a){return"scatter"==a.type&&2==a.yAxis}),M=j.filter(function(a){return"bar"==a.type&&1==a.yAxis}),N=j.filter(function(a){return"bar"==a.type&&2==a.yAxis}),O=j.filter(function(a){return"area"==a.type&&1==a.yAxis}),P=j.filter(function(a){return"area"==a.type&&2==a.yAxis});if(!(j&&j.length&&j.filter(function(a){return a.values.length}).length))return a.utils.noData(b,F),b;F.selectAll(".nv-noData").remove();var Q=j.filter(function(a){return!a.disabled&&1==a.yAxis}).map(function(a){return a.values.map(function(a){return{x:a.x,y:a.y}})}),R=j.filter(function(a){return!a.disabled&&2==a.yAxis}).map(function(a){return a.values.map(function(a){return{x:a.x,y:a.y}})});o.domain(d3.extent(d3.merge(Q.concat(R)),function(a){return a.x})).range([0,G]);var S=F.selectAll("g.wrap.multiChart").data([j]),T=S.enter().append("g").attr("class","wrap nvd3 multiChart").append("g");T.append("g").attr("class","nv-x nv-axis"),T.append("g").attr("class","nv-y1 nv-axis"),T.append("g").attr("class","nv-y2 nv-axis"),T.append("g").attr("class","lines1Wrap"),T.append("g").attr("class","lines2Wrap"),T.append("g").attr("class","scatters1Wrap"),T.append("g").attr("class","scatters2Wrap"),T.append("g").attr("class","bars1Wrap"),T.append("g").attr("class","bars2Wrap"),T.append("g").attr("class","stack1Wrap"),T.append("g").attr("class","stack2Wrap"),T.append("g").attr("class","legendWrap");var U=S.select("g"),V=j.map(function(a,b){return j[b].color||f(a,b)});if(i){var W=C.align()?G/2:G,X=C.align()?W:0;C.width(W),C.color(V),U.select(".legendWrap").datum(j.map(function(a){return a.originalKey=void 0===a.originalKey?a.key:a.originalKey,a.key=a.originalKey+(1==a.yAxis?"":" (right axis)"),a})).call(C),e.top!=C.height()&&(e.top=C.height(),H=a.utils.availableHeight(h,F,e)),U.select(".legendWrap").attr("transform","translate("+X+","+-e.top+")")}r.width(G).height(H).interpolate(m).color(V.filter(function(a,b){return!j[b].disabled&&1==j[b].yAxis&&"line"==j[b].type})),s.width(G).height(H).interpolate(m).color(V.filter(function(a,b){return!j[b].disabled&&2==j[b].yAxis&&"line"==j[b].type})),t.width(G).height(H).color(V.filter(function(a,b){return!j[b].disabled&&1==j[b].yAxis&&"scatter"==j[b].type})),u.width(G).height(H).color(V.filter(function(a,b){return!j[b].disabled&&2==j[b].yAxis&&"scatter"==j[b].type})),v.width(G).height(H).color(V.filter(function(a,b){return!j[b].disabled&&1==j[b].yAxis&&"bar"==j[b].type})),w.width(G).height(H).color(V.filter(function(a,b){return!j[b].disabled&&2==j[b].yAxis&&"bar"==j[b].type})),x.width(G).height(H).color(V.filter(function(a,b){return!j[b].disabled&&1==j[b].yAxis&&"area"==j[b].type})),y.width(G).height(H).color(V.filter(function(a,b){return!j[b].disabled&&2==j[b].yAxis&&"area"==j[b].type})),U.attr("transform","translate("+e.left+","+e.top+")");var Y=U.select(".lines1Wrap").datum(I.filter(function(a){return!a.disabled})),Z=U.select(".scatters1Wrap").datum(K.filter(function(a){return!a.disabled})),$=U.select(".bars1Wrap").datum(M.filter(function(a){return!a.disabled})),_=U.select(".stack1Wrap").datum(O.filter(function(a){return!a.disabled})),ab=U.select(".lines2Wrap").datum(J.filter(function(a){return!a.disabled})),bb=U.select(".scatters2Wrap").datum(L.filter(function(a){return!a.disabled})),cb=U.select(".bars2Wrap").datum(N.filter(function(a){return!a.disabled})),db=U.select(".stack2Wrap").datum(P.filter(function(a){return!a.disabled})),eb=O.length?O.map(function(a){return a.values}).reduce(function(a,b){return a.map(function(a,c){return{x:a.x,y:a.y+b[c].y}})}).concat([{x:0,y:0}]):[],fb=P.length?P.map(function(a){return a.values}).reduce(function(a,b){return a.map(function(a,c){return{x:a.x,y:a.y+b[c].y}})}).concat([{x:0,y:0}]):[];p.domain(c||d3.extent(d3.merge(Q).concat(eb),function(a){return a.y})).range([0,H]),q.domain(d||d3.extent(d3.merge(R).concat(fb),function(a){return a.y})).range([0,H]),r.yDomain(p.domain()),t.yDomain(p.domain()),v.yDomain(p.domain()),x.yDomain(p.domain()),s.yDomain(q.domain()),u.yDomain(q.domain()),w.yDomain(q.domain()),y.yDomain(q.domain()),O.length&&d3.transition(_).call(x),P.length&&d3.transition(db).call(y),M.length&&d3.transition($).call(v),N.length&&d3.transition(cb).call(w),I.length&&d3.transition(Y).call(r),J.length&&d3.transition(ab).call(s),K.length&&d3.transition(Z).call(t),L.length&&d3.transition(bb).call(u),z._ticks(a.utils.calcTicksX(G/100,j)).tickSize(-H,0),U.select(".nv-x.nv-axis").attr("transform","translate(0,"+H+")"),d3.transition(U.select(".nv-x.nv-axis")).call(z),A._ticks(a.utils.calcTicksY(H/36,j)).tickSize(-G,0),d3.transition(U.select(".nv-y1.nv-axis")).call(A),B._ticks(a.utils.calcTicksY(H/36,j)).tickSize(-G,0),d3.transition(U.select(".nv-y2.nv-axis")).call(B),U.select(".nv-y1.nv-axis").classed("nv-disabled",Q.length?!1:!0).attr("transform","translate("+o.range()[0]+",0)"),U.select(".nv-y2.nv-axis").classed("nv-disabled",R.length?!1:!0).attr("transform","translate("+o.range()[1]+",0)"),C.dispatch.on("stateChange",function(){b.update()}),r.dispatch.on("elementMouseover.tooltip",k),s.dispatch.on("elementMouseover.tooltip",k),r.dispatch.on("elementMouseout.tooltip",function(){D.hidden(!0)}),s.dispatch.on("elementMouseout.tooltip",function(){D.hidden(!0)}),t.dispatch.on("elementMouseover.tooltip",l),u.dispatch.on("elementMouseover.tooltip",l),t.dispatch.on("elementMouseout.tooltip",function(){D.hidden(!0)}),u.dispatch.on("elementMouseout.tooltip",function(){D.hidden(!0)}),x.dispatch.on("elementMouseover.tooltip",n),y.dispatch.on("elementMouseover.tooltip",n),x.dispatch.on("elementMouseout.tooltip",function(){D.hidden(!0)}),y.dispatch.on("elementMouseout.tooltip",function(){D.hidden(!0)}),v.dispatch.on("elementMouseover.tooltip",E),w.dispatch.on("elementMouseover.tooltip",E),v.dispatch.on("elementMouseout.tooltip",function(){D.hidden(!0)}),w.dispatch.on("elementMouseout.tooltip",function(){D.hidden(!0)}),v.dispatch.on("elementMousemove.tooltip",function(){D.position({top:d3.event.pageY,left:d3.event.pageX})()}),w.dispatch.on("elementMousemove.tooltip",function(){D.position({top:d3.event.pageY,left:d3.event.pageX})()})}),b}var c,d,e={top:30,right:20,bottom:50,left:60},f=a.utils.defaultColor(),g=null,h=null,i=!0,j=null,k=function(a){return a.x},l=function(a){return a.y},m="monotone",n=!0,o=d3.scale.linear(),p=d3.scale.linear(),q=d3.scale.linear(),r=a.models.line().yScale(p),s=a.models.line().yScale(q),t=a.models.scatter().yScale(p),u=a.models.scatter().yScale(q),v=a.models.multiBar().stacked(!1).yScale(p),w=a.models.multiBar().stacked(!1).yScale(q),x=a.models.stackedArea().yScale(p),y=a.models.stackedArea().yScale(q),z=a.models.axis().scale(o).orient("bottom").tickPadding(5),A=a.models.axis().scale(p).orient("left"),B=a.models.axis().scale(q).orient("right"),C=a.models.legend().height(30),D=a.models.tooltip(),E=d3.dispatch();return b.dispatch=E,b.lines1=r,b.lines2=s,b.scatters1=t,b.scatters2=u,b.bars1=v,b.bars2=w,b.stack1=x,b.stack2=y,b.xAxis=z,b.yAxis1=A,b.yAxis2=B,b.tooltip=D,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return g},set:function(a){g=a}},height:{get:function(){return h},set:function(a){h=a}},showLegend:{get:function(){return i},set:function(a){i=a}},yDomain1:{get:function(){return c},set:function(a){c=a}},yDomain2:{get:function(){return d},set:function(a){d=a}},noData:{get:function(){return j},set:function(a){j=a}},interpolate:{get:function(){return m},set:function(a){m=a}},tooltips:{get:function(){return D.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),D.enabled(!!b)}},tooltipContent:{get:function(){return D.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),D.contentGenerator(b)}},margin:{get:function(){return e},set:function(a){e.top=void 0!==a.top?a.top:e.top,e.right=void 0!==a.right?a.right:e.right,e.bottom=void 0!==a.bottom?a.bottom:e.bottom,e.left=void 0!==a.left?a.left:e.left}},color:{get:function(){return f},set:function(b){f=a.utils.getColor(b)}},x:{get:function(){return k},set:function(a){k=a,r.x(a),s.x(a),t.x(a),u.x(a),v.x(a),w.x(a),x.x(a),y.x(a)}},y:{get:function(){return l},set:function(a){l=a,r.y(a),s.y(a),t.y(a),u.y(a),x.y(a),y.y(a),v.y(a),w.y(a)}},useVoronoi:{get:function(){return n},set:function(a){n=a,r.useVoronoi(a),s.useVoronoi(a),x.useVoronoi(a),y.useVoronoi(a)}}}),a.utils.initOptions(b),b},a.models.ohlcBar=function(){"use strict";function b(y){return y.each(function(b){k=d3.select(this);var y=a.utils.availableWidth(h,k,g),A=a.utils.availableHeight(i,k,g);a.utils.initSVG(k);var B=y/b[0].values.length*.9;l.domain(c||d3.extent(b[0].values.map(n).concat(t))),l.range(v?e||[.5*y/b[0].values.length,y*(b[0].values.length-.5)/b[0].values.length]:e||[5+B/2,y-B/2-5]),m.domain(d||[d3.min(b[0].values.map(s).concat(u)),d3.max(b[0].values.map(r).concat(u))]).range(f||[A,0]),l.domain()[0]===l.domain()[1]&&l.domain(l.domain()[0]?[l.domain()[0]-.01*l.domain()[0],l.domain()[1]+.01*l.domain()[1]]:[-1,1]),m.domain()[0]===m.domain()[1]&&m.domain(m.domain()[0]?[m.domain()[0]+.01*m.domain()[0],m.domain()[1]-.01*m.domain()[1]]:[-1,1]);var C=d3.select(this).selectAll("g.nv-wrap.nv-ohlcBar").data([b[0].values]),D=C.enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar"),E=D.append("defs"),F=D.append("g"),G=C.select("g");F.append("g").attr("class","nv-ticks"),C.attr("transform","translate("+g.left+","+g.top+")"),k.on("click",function(a,b){z.chartClick({data:a,index:b,pos:d3.event,id:j})}),E.append("clipPath").attr("id","nv-chart-clip-path-"+j).append("rect"),C.select("#nv-chart-clip-path-"+j+" rect").attr("width",y).attr("height",A),G.attr("clip-path",w?"url(#nv-chart-clip-path-"+j+")":"");var H=C.select(".nv-ticks").selectAll(".nv-tick").data(function(a){return a});H.exit().remove(),H.enter().append("path").attr("class",function(a,b,c){return(p(a,b)>q(a,b)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+c+"-"+b
-}).attr("d",function(a,b){return"m0,0l0,"+(m(p(a,b))-m(r(a,b)))+"l"+-B/2+",0l"+B/2+",0l0,"+(m(s(a,b))-m(p(a,b)))+"l0,"+(m(q(a,b))-m(s(a,b)))+"l"+B/2+",0l"+-B/2+",0z"}).attr("transform",function(a,b){return"translate("+l(n(a,b))+","+m(r(a,b))+")"}).attr("fill",function(){return x[0]}).attr("stroke",function(){return x[0]}).attr("x",0).attr("y",function(a,b){return m(Math.max(0,o(a,b)))}).attr("height",function(a,b){return Math.abs(m(o(a,b))-m(0))}),H.attr("class",function(a,b,c){return(p(a,b)>q(a,b)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+c+"-"+b}),d3.transition(H).attr("transform",function(a,b){return"translate("+l(n(a,b))+","+m(r(a,b))+")"}).attr("d",function(a,c){var d=y/b[0].values.length*.9;return"m0,0l0,"+(m(p(a,c))-m(r(a,c)))+"l"+-d/2+",0l"+d/2+",0l0,"+(m(s(a,c))-m(p(a,c)))+"l0,"+(m(q(a,c))-m(s(a,c)))+"l"+d/2+",0l"+-d/2+",0z"})}),b}var c,d,e,f,g={top:0,right:0,bottom:0,left:0},h=null,i=null,j=Math.floor(1e4*Math.random()),k=null,l=d3.scale.linear(),m=d3.scale.linear(),n=function(a){return a.x},o=function(a){return a.y},p=function(a){return a.open},q=function(a){return a.close},r=function(a){return a.high},s=function(a){return a.low},t=[],u=[],v=!1,w=!0,x=a.utils.defaultColor(),y=!1,z=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");return b.highlightPoint=function(a,c){b.clearHighlights(),k.select(".nv-ohlcBar .nv-tick-0-"+a).classed("hover",c)},b.clearHighlights=function(){k.select(".nv-ohlcBar .nv-tick.hover").classed("hover",!1)},b.dispatch=z,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return h},set:function(a){h=a}},height:{get:function(){return i},set:function(a){i=a}},xScale:{get:function(){return l},set:function(a){l=a}},yScale:{get:function(){return m},set:function(a){m=a}},xDomain:{get:function(){return c},set:function(a){c=a}},yDomain:{get:function(){return d},set:function(a){d=a}},xRange:{get:function(){return e},set:function(a){e=a}},yRange:{get:function(){return f},set:function(a){f=a}},forceX:{get:function(){return t},set:function(a){t=a}},forceY:{get:function(){return u},set:function(a){u=a}},padData:{get:function(){return v},set:function(a){v=a}},clipEdge:{get:function(){return w},set:function(a){w=a}},id:{get:function(){return j},set:function(a){j=a}},interactive:{get:function(){return y},set:function(a){y=a}},x:{get:function(){return n},set:function(a){n=a}},y:{get:function(){return o},set:function(a){o=a}},open:{get:function(){return p()},set:function(a){p=a}},close:{get:function(){return q()},set:function(a){q=a}},high:{get:function(){return r},set:function(a){r=a}},low:{get:function(){return s},set:function(a){s=a}},margin:{get:function(){return g},set:function(a){g.top=void 0!=a.top?a.top:g.top,g.right=void 0!=a.right?a.right:g.right,g.bottom=void 0!=a.bottom?a.bottom:g.bottom,g.left=void 0!=a.left?a.left:g.left}},color:{get:function(){return x},set:function(b){x=a.utils.getColor(b)}}}),a.utils.initOptions(b),b},a.models.parallelCoordinates=function(){"use strict";function b(p){return p.each(function(b){function p(a){return F(h.map(function(b){if(isNaN(a[b])||isNaN(parseFloat(a[b]))){var c=g[b].domain(),d=g[b].range(),e=c[0]-(c[1]-c[0])/9;if(J.indexOf(b)<0){var h=d3.scale.linear().domain([e,c[1]]).range([x-12,d[1]]);g[b].brush.y(h),J.push(b)}return[f(b),g[b](e)]}return J.length>0?(D.style("display","inline"),E.style("display","inline")):(D.style("display","none"),E.style("display","none")),[f(b),g[b](a[b])]}))}function q(){var a=h.filter(function(a){return!g[a].brush.empty()}),b=a.map(function(a){return g[a].brush.extent()});k=[],a.forEach(function(a,c){k[c]={dimension:a,extent:b[c]}}),l=[],M.style("display",function(c){var d=a.every(function(a,d){return isNaN(c[a])&&b[d][0]==g[a].brush.y().domain()[0]?!0:b[d][0]<=c[a]&&c[a]<=b[d][1]});return d&&l.push(c),d?null:"none"}),o.brush({filters:k,active:l})}function r(a){m[a]=this.parentNode.__origin__=f(a),L.attr("visibility","hidden")}function s(a){m[a]=Math.min(w,Math.max(0,this.parentNode.__origin__+=d3.event.x)),M.attr("d",p),h.sort(function(a,b){return u(a)-u(b)}),f.domain(h),N.attr("transform",function(a){return"translate("+u(a)+")"})}function t(a){delete this.parentNode.__origin__,delete m[a],d3.select(this.parentNode).attr("transform","translate("+f(a)+")"),M.attr("d",p),L.attr("d",p).attr("visibility",null)}function u(a){var b=m[a];return null==b?f(a):b}var v=d3.select(this),w=a.utils.availableWidth(d,v,c),x=a.utils.availableHeight(e,v,c);a.utils.initSVG(v),l=b,f.rangePoints([0,w],1).domain(h);var y={};h.forEach(function(a){var c=d3.extent(b,function(b){return+b[a]});return y[a]=!1,void 0===c[0]&&(y[a]=!0,c[0]=0,c[1]=0),c[0]===c[1]&&(c[0]=c[0]-1,c[1]=c[1]+1),g[a]=d3.scale.linear().domain(c).range([.9*(x-12),0]),g[a].brush=d3.svg.brush().y(g[a]).on("brush",q),"name"!=a});var z=v.selectAll("g.nv-wrap.nv-parallelCoordinates").data([b]),A=z.enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinates"),B=A.append("g"),C=z.select("g");B.append("g").attr("class","nv-parallelCoordinates background"),B.append("g").attr("class","nv-parallelCoordinates foreground"),B.append("g").attr("class","nv-parallelCoordinates missingValuesline"),z.attr("transform","translate("+c.left+","+c.top+")");var D,E,F=d3.svg.line().interpolate("cardinal").tension(n),G=d3.svg.axis().orient("left"),H=d3.behavior.drag().on("dragstart",r).on("drag",s).on("dragend",t),I=f.range()[1]-f.range()[0],J=[],K=[0+I/2,x-12,w-I/2,x-12];D=z.select(".missingValuesline").selectAll("line").data([K]),D.enter().append("line"),D.exit().remove(),D.attr("x1",function(a){return a[0]}).attr("y1",function(a){return a[1]}).attr("x2",function(a){return a[2]}).attr("y2",function(a){return a[3]}),E=z.select(".missingValuesline").selectAll("text").data(["undefined values"]),E.append("text").data(["undefined values"]),E.enter().append("text"),E.exit().remove(),E.attr("y",x).attr("x",w-92-I/2).text(function(a){return a});var L=z.select(".background").selectAll("path").data(b);L.enter().append("path"),L.exit().remove(),L.attr("d",p);var M=z.select(".foreground").selectAll("path").data(b);M.enter().append("path"),M.exit().remove(),M.attr("d",p).attr("stroke",j),M.on("mouseover",function(a,b){d3.select(this).classed("hover",!0),o.elementMouseover({label:a.name,data:a.data,index:b,pos:[d3.mouse(this.parentNode)[0],d3.mouse(this.parentNode)[1]]})}),M.on("mouseout",function(a,b){d3.select(this).classed("hover",!1),o.elementMouseout({label:a.name,data:a.data,index:b})});var N=C.selectAll(".dimension").data(h),O=N.enter().append("g").attr("class","nv-parallelCoordinates dimension");O.append("g").attr("class","nv-parallelCoordinates nv-axis"),O.append("g").attr("class","nv-parallelCoordinates-brush"),O.append("text").attr("class","nv-parallelCoordinates nv-label"),N.attr("transform",function(a){return"translate("+f(a)+",0)"}),N.exit().remove(),N.select(".nv-label").style("cursor","move").attr("dy","-1em").attr("text-anchor","middle").text(String).on("mouseover",function(a){o.elementMouseover({dim:a,pos:[d3.mouse(this.parentNode.parentNode)[0],d3.mouse(this.parentNode.parentNode)[1]]})}).on("mouseout",function(a){o.elementMouseout({dim:a})}).call(H),N.select(".nv-axis").each(function(a,b){d3.select(this).call(G.scale(g[a]).tickFormat(d3.format(i[b])))}),N.select(".nv-parallelCoordinates-brush").each(function(a){d3.select(this).call(g[a].brush)}).selectAll("rect").attr("x",-8).attr("width",16)}),b}var c={top:30,right:0,bottom:10,left:0},d=null,e=null,f=d3.scale.ordinal(),g={},h=[],i=[],j=a.utils.defaultColor(),k=[],l=[],m=[],n=1,o=d3.dispatch("brush","elementMouseover","elementMouseout");return b.dispatch=o,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return d},set:function(a){d=a}},height:{get:function(){return e},set:function(a){e=a}},dimensionNames:{get:function(){return h},set:function(a){h=a}},dimensionFormats:{get:function(){return i},set:function(a){i=a}},lineTension:{get:function(){return n},set:function(a){n=a}},dimensions:{get:function(){return h},set:function(b){a.deprecated("dimensions","use dimensionNames instead"),h=b}},margin:{get:function(){return c},set:function(a){c.top=void 0!==a.top?a.top:c.top,c.right=void 0!==a.right?a.right:c.right,c.bottom=void 0!==a.bottom?a.bottom:c.bottom,c.left=void 0!==a.left?a.left:c.left}},color:{get:function(){return j},set:function(b){j=a.utils.getColor(b)}}}),a.utils.initOptions(b),b},a.models.pie=function(){"use strict";function b(E){return D.reset(),E.each(function(b){function E(a,b){a.endAngle=isNaN(a.endAngle)?0:a.endAngle,a.startAngle=isNaN(a.startAngle)?0:a.startAngle,p||(a.innerRadius=0);var c=d3.interpolate(this._current,a);return this._current=c(0),function(a){return B[b](c(a))}}var F=d-c.left-c.right,G=e-c.top-c.bottom,H=Math.min(F,G)/2,I=[],J=[];if(i=d3.select(this),0===z.length)for(var K=H-H/5,L=y*H,M=0;M<b[0].length;M++)I.push(K),J.push(L);else I=z.map(function(a){return(a.outer-a.outer/5)*H}),J=z.map(function(a){return(a.inner-a.inner/5)*H}),y=d3.min(z.map(function(a){return a.inner-a.inner/5}));a.utils.initSVG(i);var N=i.selectAll(".nv-wrap.nv-pie").data(b),O=N.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+h),P=O.append("g"),Q=N.select("g"),R=P.append("g").attr("class","nv-pie");P.append("g").attr("class","nv-pieLabels"),N.attr("transform","translate("+c.left+","+c.top+")"),Q.select(".nv-pie").attr("transform","translate("+F/2+","+G/2+")"),Q.select(".nv-pieLabels").attr("transform","translate("+F/2+","+G/2+")"),i.on("click",function(a,b){A.chartClick({data:a,index:b,pos:d3.event,id:h})}),B=[],C=[];for(var M=0;M<b[0].length;M++){var S=d3.svg.arc().outerRadius(I[M]),T=d3.svg.arc().outerRadius(I[M]+5);u!==!1&&(S.startAngle(u),T.startAngle(u)),w!==!1&&(S.endAngle(w),T.endAngle(w)),p&&(S.innerRadius(J[M]),T.innerRadius(J[M])),S.cornerRadius&&x&&(S.cornerRadius(x),T.cornerRadius(x)),B.push(S),C.push(T)}var U=d3.layout.pie().sort(null).value(function(a){return a.disabled?0:g(a)});U.padAngle&&v&&U.padAngle(v),p&&q&&(R.append("text").attr("class","nv-pie-title"),N.select(".nv-pie-title").style("text-anchor","middle").text(function(){return q}).style("font-size",Math.min(F,G)*y*2/(q.length+2)+"px").attr("dy","0.35em").attr("transform",function(){return"translate(0, "+s+")"}));var V=N.select(".nv-pie").selectAll(".nv-slice").data(U),W=N.select(".nv-pieLabels").selectAll(".nv-label").data(U);V.exit().remove(),W.exit().remove();var X=V.enter().append("g");X.attr("class","nv-slice"),X.on("mouseover",function(a,b){d3.select(this).classed("hover",!0),r&&d3.select(this).select("path").transition().duration(70).attr("d",C[b]),A.elementMouseover({data:a.data,index:b,color:d3.select(this).style("fill")})}),X.on("mouseout",function(a,b){d3.select(this).classed("hover",!1),r&&d3.select(this).select("path").transition().duration(50).attr("d",B[b]),A.elementMouseout({data:a.data,index:b})}),X.on("mousemove",function(a,b){A.elementMousemove({data:a.data,index:b})}),X.on("click",function(a,b){A.elementClick({data:a.data,index:b,color:d3.select(this).style("fill")})}),X.on("dblclick",function(a,b){A.elementDblClick({data:a.data,index:b,color:d3.select(this).style("fill")})}),V.attr("fill",function(a,b){return j(a.data,b)}),V.attr("stroke",function(a,b){return j(a.data,b)});X.append("path").each(function(a){this._current=a});if(V.select("path").transition().attr("d",function(a,b){return B[b](a)}).attrTween("d",E),l){for(var Y=[],M=0;M<b[0].length;M++)Y.push(B[M]),m?p&&(Y[M]=d3.svg.arc().outerRadius(B[M].outerRadius()),u!==!1&&Y[M].startAngle(u),w!==!1&&Y[M].endAngle(w)):p||Y[M].innerRadius(0);W.enter().append("g").classed("nv-label",!0).each(function(a){var b=d3.select(this);b.attr("transform",function(a,b){if(t){a.outerRadius=I[b]+10,a.innerRadius=I[b]+15;var c=(a.startAngle+a.endAngle)/2*(180/Math.PI);return(a.startAngle+a.endAngle)/2<Math.PI?c-=90:c+=90,"translate("+Y[b].centroid(a)+") rotate("+c+")"}return a.outerRadius=H+10,a.innerRadius=H+15,"translate("+Y[b].centroid(a)+")"}),b.append("rect").style("stroke","#fff").style("fill","#fff").attr("rx",3).attr("ry",3),b.append("text").style("text-anchor",t?(a.startAngle+a.endAngle)/2<Math.PI?"start":"end":"middle").style("fill","#000")});var Z={},$=14,_=140,ab=function(a){return Math.floor(a[0]/_)*_+","+Math.floor(a[1]/$)*$};W.watchTransition(D,"pie labels").attr("transform",function(a,b){if(t){a.outerRadius=I[b]+10,a.innerRadius=I[b]+15;var c=(a.startAngle+a.endAngle)/2*(180/Math.PI);return(a.startAngle+a.endAngle)/2<Math.PI?c-=90:c+=90,"translate("+Y[b].centroid(a)+") rotate("+c+")"}a.outerRadius=H+10,a.innerRadius=H+15;var d=Y[b].centroid(a);if(a.value){var e=ab(d);Z[e]&&(d[1]-=$),Z[ab(d)]=!0}return"translate("+d+")"}),W.select(".nv-label text").style("text-anchor",function(a){return t?(a.startAngle+a.endAngle)/2<Math.PI?"start":"end":"middle"}).text(function(a,b){var c=(a.endAngle-a.startAngle)/(2*Math.PI),d="";if(!a.value||o>c)return"";if("function"==typeof n)d=n(a,b,{key:f(a.data),value:g(a.data),percent:k(c)});else switch(n){case"key":d=f(a.data);break;case"value":d=k(g(a.data));break;case"percent":d=d3.format("%")(c)}return d})}}),D.renderEnd("pie immediate"),b}var c={top:0,right:0,bottom:0,left:0},d=500,e=500,f=function(a){return a.x},g=function(a){return a.y},h=Math.floor(1e4*Math.random()),i=null,j=a.utils.defaultColor(),k=d3.format(",.2f"),l=!0,m=!1,n="key",o=.02,p=!1,q=!1,r=!0,s=0,t=!1,u=!1,v=!1,w=!1,x=0,y=.5,z=[],A=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),B=[],C=[],D=a.utils.renderWatch(A);return b.dispatch=A,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{arcsRadius:{get:function(){return z},set:function(a){z=a}},width:{get:function(){return d},set:function(a){d=a}},height:{get:function(){return e},set:function(a){e=a}},showLabels:{get:function(){return l},set:function(a){l=a}},title:{get:function(){return q},set:function(a){q=a}},titleOffset:{get:function(){return s},set:function(a){s=a}},labelThreshold:{get:function(){return o},set:function(a){o=a}},valueFormat:{get:function(){return k},set:function(a){k=a}},x:{get:function(){return f},set:function(a){f=a}},id:{get:function(){return h},set:function(a){h=a}},endAngle:{get:function(){return w},set:function(a){w=a}},startAngle:{get:function(){return u},set:function(a){u=a}},padAngle:{get:function(){return v},set:function(a){v=a}},cornerRadius:{get:function(){return x},set:function(a){x=a}},donutRatio:{get:function(){return y},set:function(a){y=a}},labelsOutside:{get:function(){return m},set:function(a){m=a}},labelSunbeamLayout:{get:function(){return t},set:function(a){t=a}},donut:{get:function(){return p},set:function(a){p=a}},growOnHover:{get:function(){return r},set:function(a){r=a}},pieLabelsOutside:{get:function(){return m},set:function(b){m=b,a.deprecated("pieLabelsOutside","use labelsOutside instead")}},donutLabelsOutside:{get:function(){return m},set:function(b){m=b,a.deprecated("donutLabelsOutside","use labelsOutside instead")}},labelFormat:{get:function(){return k},set:function(b){k=b,a.deprecated("labelFormat","use valueFormat instead")}},margin:{get:function(){return c},set:function(a){c.top="undefined"!=typeof a.top?a.top:c.top,c.right="undefined"!=typeof a.right?a.right:c.right,c.bottom="undefined"!=typeof a.bottom?a.bottom:c.bottom,c.left="undefined"!=typeof a.left?a.left:c.left}},y:{get:function(){return g},set:function(a){g=d3.functor(a)}},color:{get:function(){return j},set:function(b){j=a.utils.getColor(b)}},labelType:{get:function(){return n},set:function(a){n=a||"key"}}}),a.utils.initOptions(b),b},a.models.pieChart=function(){"use strict";function b(e){return q.reset(),q.models(c),e.each(function(e){var k=d3.select(this);a.utils.initSVG(k);var n=a.utils.availableWidth(g,k,f),o=a.utils.availableHeight(h,k,f);if(b.update=function(){k.transition().call(b)},b.container=this,l.setter(s(e),b.update).getter(r(e)).update(),l.disabled=e.map(function(a){return!!a.disabled}),!m){var q;m={};for(q in l)m[q]=l[q]instanceof Array?l[q].slice(0):l[q]}if(!e||!e.length)return a.utils.noData(b,k),b;k.selectAll(".nv-noData").remove();var t=k.selectAll("g.nv-wrap.nv-pieChart").data([e]),u=t.enter().append("g").attr("class","nvd3 nv-wrap nv-pieChart").append("g"),v=t.select("g");if(u.append("g").attr("class","nv-pieWrap"),u.append("g").attr("class","nv-legendWrap"),i)if("top"===j)d.width(n).key(c.x()),t.select(".nv-legendWrap").datum(e).call(d),f.top!=d.height()&&(f.top=d.height(),o=a.utils.availableHeight(h,k,f)),t.select(".nv-legendWrap").attr("transform","translate(0,"+-f.top+")");else if("right"===j){var w=a.models.legend().width();w>n/2&&(w=n/2),d.height(o).key(c.x()),d.width(w),n-=d.width(),t.select(".nv-legendWrap").datum(e).call(d).attr("transform","translate("+n+",0)")}t.attr("transform","translate("+f.left+","+f.top+")"),c.width(n).height(o);var x=v.select(".nv-pieWrap").datum([e]);d3.transition(x).call(c),d.dispatch.on("stateChange",function(a){for(var c in a)l[c]=a[c];p.stateChange(l),b.update()}),p.on("changeState",function(a){"undefined"!=typeof a.disabled&&(e.forEach(function(b,c){b.disabled=a.disabled[c]}),l.disabled=a.disabled),b.update()})}),q.renderEnd("pieChart immediate"),b}var c=a.models.pie(),d=a.models.legend(),e=a.models.tooltip(),f={top:30,right:20,bottom:20,left:20},g=null,h=null,i=!0,j="top",k=a.utils.defaultColor(),l=a.utils.state(),m=null,n=null,o=250,p=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd");e.headerEnabled(!1).duration(0).valueFormatter(function(a,b){return c.valueFormat()(a,b)});var q=a.utils.renderWatch(p),r=function(a){return function(){return{active:a.map(function(a){return!a.disabled})}}},s=function(a){return function(b){void 0!==b.active&&a.forEach(function(a,c){a.disabled=!b.active[c]})}};return c.dispatch.on("elementMouseover.tooltip",function(a){a.series={key:b.x()(a.data),value:b.y()(a.data),color:a.color},e.data(a).hidden(!1)}),c.dispatch.on("elementMouseout.tooltip",function(){e.hidden(!0)}),c.dispatch.on("elementMousemove.tooltip",function(){e.position({top:d3.event.pageY,left:d3.event.pageX})()}),b.legend=d,b.dispatch=p,b.pie=c,b.tooltip=e,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{noData:{get:function(){return n},set:function(a){n=a}},showLegend:{get:function(){return i},set:function(a){i=a}},legendPosition:{get:function(){return j},set:function(a){j=a}},defaultState:{get:function(){return m},set:function(a){m=a}},tooltips:{get:function(){return e.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),e.enabled(!!b)}},tooltipContent:{get:function(){return e.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),e.contentGenerator(b)}},color:{get:function(){return k},set:function(a){k=a,d.color(k),c.color(k)}},duration:{get:function(){return o},set:function(a){o=a,q.reset(o)}},margin:{get:function(){return f},set:function(a){f.top=void 0!==a.top?a.top:f.top,f.right=void 0!==a.right?a.right:f.right,f.bottom=void 0!==a.bottom?a.bottom:f.bottom,f.left=void 0!==a.left?a.left:f.left}}}),a.utils.inheritOptions(b,c),a.utils.initOptions(b),b},a.models.scatter=function(){"use strict";function b(N){return P.reset(),N.each(function(b){function N(){if(O=!1,!w)return!1;if(M===!0){var a=d3.merge(b.map(function(a,b){return a.values.map(function(a,c){var d=p(a,c),e=q(a,c);return[m(d)+1e-4*Math.random(),n(e)+1e-4*Math.random(),b,c,a]}).filter(function(a,b){return x(a[4],b)})}));if(0==a.length)return!1;a.length<3&&(a.push([m.range()[0]-20,n.range()[0]-20,null,null]),a.push([m.range()[1]+20,n.range()[1]+20,null,null]),a.push([m.range()[0]-20,n.range()[0]+20,null,null]),a.push([m.range()[1]+20,n.range()[1]-20,null,null]));var c=d3.geom.polygon([[-10,-10],[-10,i+10],[h+10,i+10],[h+10,-10]]),d=d3.geom.voronoi(a).map(function(b,d){return{data:c.clip(b),series:a[d][2],point:a[d][3]}});U.select(".nv-point-paths").selectAll("path").remove();var e=U.select(".nv-point-paths").selectAll("path").data(d),f=e.enter().append("svg:path").attr("d",function(a){return a&&a.data&&0!==a.data.length?"M"+a.data.join(",")+"Z":"M 0 0"}).attr("id",function(a,b){return"nv-path-"+b}).attr("clip-path",function(a,b){return"url(#nv-clip-"+k+"-"+b+")"});C&&f.style("fill",d3.rgb(230,230,230)).style("fill-opacity",.4).style("stroke-opacity",1).style("stroke",d3.rgb(200,200,200)),B&&(U.select(".nv-point-clips").selectAll("clipPath").remove(),U.select(".nv-point-clips").selectAll("clipPath").data(a).enter().append("svg:clipPath").attr("id",function(a,b){return"nv-clip-"+k+"-"+b}).append("svg:circle").attr("cx",function(a){return a[0]}).attr("cy",function(a){return a[1]}).attr("r",D));var o=function(a,c){if(O)return 0;var d=b[a.series];if(void 0!==d){var e=d.values[a.point];e.color=j(d,a.series),e.x=p(e),e.y=q(e);var f=l.node().getBoundingClientRect(),h=window.pageYOffset||document.documentElement.scrollTop,i=window.pageXOffset||document.documentElement.scrollLeft,k={left:m(p(e,a.point))+f.left+i+g.left+10,top:n(q(e,a.point))+f.top+h+g.top+10};c({point:e,series:d,pos:k,seriesIndex:a.series,pointIndex:a.point})}};e.on("click",function(a){o(a,L.elementClick)}).on("dblclick",function(a){o(a,L.elementDblClick)}).on("mouseover",function(a){o(a,L.elementMouseover)}).on("mouseout",function(a){o(a,L.elementMouseout)})}else U.select(".nv-groups").selectAll(".nv-group").selectAll(".nv-point").on("click",function(a,c){if(O||!b[a.series])return 0;var d=b[a.series],e=d.values[c];L.elementClick({point:e,series:d,pos:[m(p(e,c))+g.left,n(q(e,c))+g.top],seriesIndex:a.series,pointIndex:c})}).on("dblclick",function(a,c){if(O||!b[a.series])return 0;var d=b[a.series],e=d.values[c];L.elementDblClick({point:e,series:d,pos:[m(p(e,c))+g.left,n(q(e,c))+g.top],seriesIndex:a.series,pointIndex:c})}).on("mouseover",function(a,c){if(O||!b[a.series])return 0;var d=b[a.series],e=d.values[c];L.elementMouseover({point:e,series:d,pos:[m(p(e,c))+g.left,n(q(e,c))+g.top],seriesIndex:a.series,pointIndex:c,color:j(a,c)})}).on("mouseout",function(a,c){if(O||!b[a.series])return 0;var d=b[a.series],e=d.values[c];L.elementMouseout({point:e,series:d,seriesIndex:a.series,pointIndex:c,color:j(a,c)})})}l=d3.select(this);var R=a.utils.availableWidth(h,l,g),S=a.utils.availableHeight(i,l,g);a.utils.initSVG(l),b.forEach(function(a,b){a.values.forEach(function(a){a.series=b})});var T=E&&F&&I?[]:d3.merge(b.map(function(a){return a.values.map(function(a,b){return{x:p(a,b),y:q(a,b),size:r(a,b)}})}));m.domain(E||d3.extent(T.map(function(a){return a.x}).concat(t))),m.range(y&&b[0]?G||[(R*z+R)/(2*b[0].values.length),R-R*(1+z)/(2*b[0].values.length)]:G||[0,R]),n.domain(F||d3.extent(T.map(function(a){return a.y}).concat(u))).range(H||[S,0]),o.domain(I||d3.extent(T.map(function(a){return a.size}).concat(v))).range(J||Q),K=m.domain()[0]===m.domain()[1]||n.domain()[0]===n.domain()[1],m.domain()[0]===m.domain()[1]&&m.domain(m.domain()[0]?[m.domain()[0]-.01*m.domain()[0],m.domain()[1]+.01*m.domain()[1]]:[-1,1]),n.domain()[0]===n.domain()[1]&&n.domain(n.domain()[0]?[n.domain()[0]-.01*n.domain()[0],n.domain()[1]+.01*n.domain()[1]]:[-1,1]),isNaN(m.domain()[0])&&m.domain([-1,1]),isNaN(n.domain()[0])&&n.domain([-1,1]),c=c||m,d=d||n,e=e||o;var U=l.selectAll("g.nv-wrap.nv-scatter").data([b]),V=U.enter().append("g").attr("class","nvd3 nv-wrap nv-scatter nv-chart-"+k),W=V.append("defs"),X=V.append("g"),Y=U.select("g");U.classed("nv-single-point",K),X.append("g").attr("class","nv-groups"),X.append("g").attr("class","nv-point-paths"),V.append("g").attr("class","nv-point-clips"),U.attr("transform","translate("+g.left+","+g.top+")"),W.append("clipPath").attr("id","nv-edge-clip-"+k).append("rect"),U.select("#nv-edge-clip-"+k+" rect").attr("width",R).attr("height",S>0?S:0),Y.attr("clip-path",A?"url(#nv-edge-clip-"+k+")":""),O=!0;var Z=U.select(".nv-groups").selectAll(".nv-group").data(function(a){return a},function(a){return a.key});Z.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),Z.exit().remove(),Z.attr("class",function(a,b){return"nv-group nv-series-"+b}).classed("hover",function(a){return a.hover}),Z.watchTransition(P,"scatter: groups").style("fill",function(a,b){return j(a,b)}).style("stroke",function(a,b){return j(a,b)}).style("stroke-opacity",1).style("fill-opacity",.5);var $=Z.selectAll("path.nv-point").data(function(a){return a.values.map(function(a,b){return[a,b]}).filter(function(a,b){return x(a[0],b)})});$.enter().append("path").style("fill",function(a){return a.color}).style("stroke",function(a){return a.color}).attr("transform",function(a){return"translate("+c(p(a[0],a[1]))+","+d(q(a[0],a[1]))+")"}).attr("d",a.utils.symbol().type(function(a){return s(a[0])}).size(function(a){return o(r(a[0],a[1]))})),$.exit().remove(),Z.exit().selectAll("path.nv-point").watchTransition(P,"scatter exit").attr("transform",function(a){return"translate("+m(p(a[0],a[1]))+","+n(q(a[0],a[1]))+")"}).remove(),$.each(function(a){d3.select(this).classed("nv-point",!0).classed("nv-point-"+a[1],!0).classed("nv-noninteractive",!w).classed("hover",!1)}),$.watchTransition(P,"scatter points").attr("transform",function(a){return"translate("+m(p(a[0],a[1]))+","+n(q(a[0],a[1]))+")"}).attr("d",a.utils.symbol().type(function(a){return s(a[0])}).size(function(a){return o(r(a[0],a[1]))})),clearTimeout(f),f=setTimeout(N,300),c=m.copy(),d=n.copy(),e=o.copy()}),P.renderEnd("scatter immediate"),b}var c,d,e,f,g={top:0,right:0,bottom:0,left:0},h=null,i=null,j=a.utils.defaultColor(),k=Math.floor(1e5*Math.random()),l=null,m=d3.scale.linear(),n=d3.scale.linear(),o=d3.scale.linear(),p=function(a){return a.x},q=function(a){return a.y},r=function(a){return a.size||1},s=function(a){return a.shape||"circle"},t=[],u=[],v=[],w=!0,x=function(a){return!a.notActive},y=!1,z=.1,A=!1,B=!0,C=!1,D=function(){return 25},E=null,F=null,G=null,H=null,I=null,J=null,K=!1,L=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),M=!0,N=250,O=!1,P=a.utils.renderWatch(L,N),Q=[16,256];return b.dispatch=L,b.options=a.utils.optionsFunc.bind(b),b._calls=new function(){this.clearHighlights=function(){return a.dom.write(function(){l.selectAll(".nv-point.hover").classed("hover",!1)}),null},this.highlightPoint=function(b,c,d){a.dom.write(function(){l.select(" .nv-series-"+b+" .nv-point-"+c).classed("hover",d)})}},L.on("elementMouseover.point",function(a){w&&b._calls.highlightPoint(a.seriesIndex,a.pointIndex,!0)}),L.on("elementMouseout.point",function(a){w&&b._calls.highlightPoint(a.seriesIndex,a.pointIndex,!1)}),b._options=Object.create({},{width:{get:function(){return h},set:function(a){h=a}},height:{get:function(){return i},set:function(a){i=a}},xScale:{get:function(){return m},set:function(a){m=a}},yScale:{get:function(){return n},set:function(a){n=a}},pointScale:{get:function(){return o},set:function(a){o=a}},xDomain:{get:function(){return E},set:function(a){E=a}},yDomain:{get:function(){return F},set:function(a){F=a}},pointDomain:{get:function(){return I},set:function(a){I=a}},xRange:{get:function(){return G},set:function(a){G=a}},yRange:{get:function(){return H},set:function(a){H=a}},pointRange:{get:function(){return J},set:function(a){J=a}},forceX:{get:function(){return t},set:function(a){t=a}},forceY:{get:function(){return u},set:function(a){u=a}},forcePoint:{get:function(){return v},set:function(a){v=a}},interactive:{get:function(){return w},set:function(a){w=a}},pointActive:{get:function(){return x},set:function(a){x=a}},padDataOuter:{get:function(){return z},set:function(a){z=a}},padData:{get:function(){return y},set:function(a){y=a}},clipEdge:{get:function(){return A},set:function(a){A=a}},clipVoronoi:{get:function(){return B},set:function(a){B=a}},clipRadius:{get:function(){return D},set:function(a){D=a}},showVoronoi:{get:function(){return C},set:function(a){C=a}},id:{get:function(){return k},set:function(a){k=a}},x:{get:function(){return p},set:function(a){p=d3.functor(a)}},y:{get:function(){return q},set:function(a){q=d3.functor(a)}},pointSize:{get:function(){return r},set:function(a){r=d3.functor(a)}},pointShape:{get:function(){return s},set:function(a){s=d3.functor(a)}},margin:{get:function(){return g},set:function(a){g.top=void 0!==a.top?a.top:g.top,g.right=void 0!==a.right?a.right:g.right,g.bottom=void 0!==a.bottom?a.bottom:g.bottom,g.left=void 0!==a.left?a.left:g.left}},duration:{get:function(){return N},set:function(a){N=a,P.reset(N)}},color:{get:function(){return j},set:function(b){j=a.utils.getColor(b)}},useVoronoi:{get:function(){return M},set:function(a){M=a,M===!1&&(B=!1)}}}),a.utils.initOptions(b),b},a.models.scatterChart=function(){"use strict";function b(z){return D.reset(),D.models(c),t&&D.models(d),u&&D.models(e),q&&D.models(g),r&&D.models(h),z.each(function(z){m=d3.select(this),a.utils.initSVG(m);var G=a.utils.availableWidth(k,m,j),H=a.utils.availableHeight(l,m,j);if(b.update=function(){0===A?m.call(b):m.transition().duration(A).call(b)},b.container=this,w.setter(F(z),b.update).getter(E(z)).update(),w.disabled=z.map(function(a){return!!a.disabled}),!x){var I;x={};for(I in w)x[I]=w[I]instanceof Array?w[I].slice(0):w[I]}if(!(z&&z.length&&z.filter(function(a){return a.values.length}).length))return a.utils.noData(b,m),D.renderEnd("scatter immediate"),b;m.selectAll(".nv-noData").remove(),o=c.xScale(),p=c.yScale();var J=m.selectAll("g.nv-wrap.nv-scatterChart").data([z]),K=J.enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+c.id()),L=K.append("g"),M=J.select("g");if(L.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none"),L.append("g").attr("class","nv-x nv-axis"),L.append("g").attr("class","nv-y nv-axis"),L.append("g").attr("class","nv-scatterWrap"),L.append("g").attr("class","nv-regressionLinesWrap"),L.append("g").attr("class","nv-distWrap"),L.append("g").attr("class","nv-legendWrap"),v&&M.select(".nv-y.nv-axis").attr("transform","translate("+G+",0)"),s){var N=G;f.width(N),J.select(".nv-legendWrap").datum(z).call(f),j.top!=f.height()&&(j.top=f.height(),H=a.utils.availableHeight(l,m,j)),J.select(".nv-legendWrap").attr("transform","translate(0,"+-j.top+")")}J.attr("transform","translate("+j.left+","+j.top+")"),c.width(G).height(H).color(z.map(function(a,b){return a.color=a.color||n(a,b),a.color}).filter(function(a,b){return!z[b].disabled})),J.select(".nv-scatterWrap").datum(z.filter(function(a){return!a.disabled})).call(c),J.select(".nv-regressionLinesWrap").attr("clip-path","url(#nv-edge-clip-"+c.id()+")");var O=J.select(".nv-regressionLinesWrap").selectAll(".nv-regLines").data(function(a){return a});O.enter().append("g").attr("class","nv-regLines");var P=O.selectAll(".nv-regLine").data(function(a){return[a]});P.enter().append("line").attr("class","nv-regLine").style("stroke-opacity",0),P.filter(function(a){return a.intercept&&a.slope}).watchTransition(D,"scatterPlusLineChart: regline").attr("x1",o.range()[0]).attr("x2",o.range()[1]).attr("y1",function(a){return p(o.domain()[0]*a.slope+a.intercept)}).attr("y2",function(a){return p(o.domain()[1]*a.slope+a.intercept)}).style("stroke",function(a,b,c){return n(a,c)}).style("stroke-opacity",function(a){return a.disabled||"undefined"==typeof a.slope||"undefined"==typeof a.intercept?0:1}),t&&(d.scale(o)._ticks(a.utils.calcTicksX(G/100,z)).tickSize(-H,0),M.select(".nv-x.nv-axis").attr("transform","translate(0,"+p.range()[0]+")").call(d)),u&&(e.scale(p)._ticks(a.utils.calcTicksY(H/36,z)).tickSize(-G,0),M.select(".nv-y.nv-axis").call(e)),q&&(g.getData(c.x()).scale(o).width(G).color(z.map(function(a,b){return a.color||n(a,b)}).filter(function(a,b){return!z[b].disabled})),L.select(".nv-distWrap").append("g").attr("class","nv-distributionX"),M.select(".nv-distributionX").attr("transform","translate(0,"+p.range()[0]+")").datum(z.filter(function(a){return!a.disabled})).call(g)),r&&(h.getData(c.y()).scale(p).width(H).color(z.map(function(a,b){return a.color||n(a,b)
-}).filter(function(a,b){return!z[b].disabled})),L.select(".nv-distWrap").append("g").attr("class","nv-distributionY"),M.select(".nv-distributionY").attr("transform","translate("+(v?G:-h.size())+",0)").datum(z.filter(function(a){return!a.disabled})).call(h)),f.dispatch.on("stateChange",function(a){for(var c in a)w[c]=a[c];y.stateChange(w),b.update()}),y.on("changeState",function(a){"undefined"!=typeof a.disabled&&(z.forEach(function(b,c){b.disabled=a.disabled[c]}),w.disabled=a.disabled),b.update()}),c.dispatch.on("elementMouseout.tooltip",function(a){i.hidden(!0),m.select(".nv-chart-"+c.id()+" .nv-series-"+a.seriesIndex+" .nv-distx-"+a.pointIndex).attr("y1",0),m.select(".nv-chart-"+c.id()+" .nv-series-"+a.seriesIndex+" .nv-disty-"+a.pointIndex).attr("x2",h.size())}),c.dispatch.on("elementMouseover.tooltip",function(a){m.select(".nv-series-"+a.seriesIndex+" .nv-distx-"+a.pointIndex).attr("y1",a.pos.top-H-j.top),m.select(".nv-series-"+a.seriesIndex+" .nv-disty-"+a.pointIndex).attr("x2",a.pos.left+g.size()-j.left),i.position(a.pos).data(a).hidden(!1)}),B=o.copy(),C=p.copy()}),D.renderEnd("scatter with line immediate"),b}var c=a.models.scatter(),d=a.models.axis(),e=a.models.axis(),f=a.models.legend(),g=a.models.distribution(),h=a.models.distribution(),i=a.models.tooltip(),j={top:30,right:20,bottom:50,left:75},k=null,l=null,m=null,n=a.utils.defaultColor(),o=c.xScale(),p=c.yScale(),q=!1,r=!1,s=!0,t=!0,u=!0,v=!1,w=a.utils.state(),x=null,y=d3.dispatch("stateChange","changeState","renderEnd"),z=null,A=250;c.xScale(o).yScale(p),d.orient("bottom").tickPadding(10),e.orient(v?"right":"left").tickPadding(10),g.axis("x"),h.axis("y"),i.headerFormatter(function(a,b){return d.tickFormat()(a,b)}).valueFormatter(function(a,b){return e.tickFormat()(a,b)});var B,C,D=a.utils.renderWatch(y,A),E=function(a){return function(){return{active:a.map(function(a){return!a.disabled})}}},F=function(a){return function(b){void 0!==b.active&&a.forEach(function(a,c){a.disabled=!b.active[c]})}};return b.dispatch=y,b.scatter=c,b.legend=f,b.xAxis=d,b.yAxis=e,b.distX=g,b.distY=h,b.tooltip=i,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return k},set:function(a){k=a}},height:{get:function(){return l},set:function(a){l=a}},container:{get:function(){return m},set:function(a){m=a}},showDistX:{get:function(){return q},set:function(a){q=a}},showDistY:{get:function(){return r},set:function(a){r=a}},showLegend:{get:function(){return s},set:function(a){s=a}},showXAxis:{get:function(){return t},set:function(a){t=a}},showYAxis:{get:function(){return u},set:function(a){u=a}},defaultState:{get:function(){return x},set:function(a){x=a}},noData:{get:function(){return z},set:function(a){z=a}},duration:{get:function(){return A},set:function(a){A=a}},tooltips:{get:function(){return i.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),i.enabled(!!b)}},tooltipContent:{get:function(){return i.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),i.contentGenerator(b)}},tooltipXContent:{get:function(){return i.contentGenerator()},set:function(){a.deprecated("tooltipContent","This option is removed, put values into main tooltip.")}},tooltipYContent:{get:function(){return i.contentGenerator()},set:function(){a.deprecated("tooltipContent","This option is removed, put values into main tooltip.")}},margin:{get:function(){return j},set:function(a){j.top=void 0!==a.top?a.top:j.top,j.right=void 0!==a.right?a.right:j.right,j.bottom=void 0!==a.bottom?a.bottom:j.bottom,j.left=void 0!==a.left?a.left:j.left}},rightAlignYAxis:{get:function(){return v},set:function(a){v=a,e.orient(a?"right":"left")}},color:{get:function(){return n},set:function(b){n=a.utils.getColor(b),f.color(n),g.color(n),h.color(n)}}}),a.utils.inheritOptions(b,c),a.utils.initOptions(b),b},a.models.sparkline=function(){"use strict";function b(k){return k.each(function(b){var k=h-g.left-g.right,q=i-g.top-g.bottom;j=d3.select(this),a.utils.initSVG(j),l.domain(c||d3.extent(b,n)).range(e||[0,k]),m.domain(d||d3.extent(b,o)).range(f||[q,0]);{var r=j.selectAll("g.nv-wrap.nv-sparkline").data([b]),s=r.enter().append("g").attr("class","nvd3 nv-wrap nv-sparkline");s.append("g"),r.select("g")}r.attr("transform","translate("+g.left+","+g.top+")");var t=r.selectAll("path").data(function(a){return[a]});t.enter().append("path"),t.exit().remove(),t.style("stroke",function(a,b){return a.color||p(a,b)}).attr("d",d3.svg.line().x(function(a,b){return l(n(a,b))}).y(function(a,b){return m(o(a,b))}));var u=r.selectAll("circle.nv-point").data(function(a){function b(b){if(-1!=b){var c=a[b];return c.pointIndex=b,c}return null}var c=a.map(function(a,b){return o(a,b)}),d=b(c.lastIndexOf(m.domain()[1])),e=b(c.indexOf(m.domain()[0])),f=b(c.length-1);return[e,d,f].filter(function(a){return null!=a})});u.enter().append("circle"),u.exit().remove(),u.attr("cx",function(a){return l(n(a,a.pointIndex))}).attr("cy",function(a){return m(o(a,a.pointIndex))}).attr("r",2).attr("class",function(a){return n(a,a.pointIndex)==l.domain()[1]?"nv-point nv-currentValue":o(a,a.pointIndex)==m.domain()[0]?"nv-point nv-minValue":"nv-point nv-maxValue"})}),b}var c,d,e,f,g={top:2,right:0,bottom:2,left:0},h=400,i=32,j=null,k=!0,l=d3.scale.linear(),m=d3.scale.linear(),n=function(a){return a.x},o=function(a){return a.y},p=a.utils.getColor(["#000"]);return b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return h},set:function(a){h=a}},height:{get:function(){return i},set:function(a){i=a}},xDomain:{get:function(){return c},set:function(a){c=a}},yDomain:{get:function(){return d},set:function(a){d=a}},xRange:{get:function(){return e},set:function(a){e=a}},yRange:{get:function(){return f},set:function(a){f=a}},xScale:{get:function(){return l},set:function(a){l=a}},yScale:{get:function(){return m},set:function(a){m=a}},animate:{get:function(){return k},set:function(a){k=a}},x:{get:function(){return n},set:function(a){n=d3.functor(a)}},y:{get:function(){return o},set:function(a){o=d3.functor(a)}},margin:{get:function(){return g},set:function(a){g.top=void 0!==a.top?a.top:g.top,g.right=void 0!==a.right?a.right:g.right,g.bottom=void 0!==a.bottom?a.bottom:g.bottom,g.left=void 0!==a.left?a.left:g.left}},color:{get:function(){return p},set:function(b){p=a.utils.getColor(b)}}}),a.utils.initOptions(b),b},a.models.sparklinePlus=function(){"use strict";function b(p){return p.each(function(p){function q(){if(!j){var a=z.selectAll(".nv-hoverValue").data(i),b=a.enter().append("g").attr("class","nv-hoverValue").style("stroke-opacity",0).style("fill-opacity",0);a.exit().transition().duration(250).style("stroke-opacity",0).style("fill-opacity",0).remove(),a.attr("transform",function(a){return"translate("+c(e.x()(p[a],a))+",0)"}).transition().duration(250).style("stroke-opacity",1).style("fill-opacity",1),i.length&&(b.append("line").attr("x1",0).attr("y1",-f.top).attr("x2",0).attr("y2",u),b.append("text").attr("class","nv-xValue").attr("x",-6).attr("y",-f.top).attr("text-anchor","end").attr("dy",".9em"),z.select(".nv-hoverValue .nv-xValue").text(k(e.x()(p[i[0]],i[0]))),b.append("text").attr("class","nv-yValue").attr("x",6).attr("y",-f.top).attr("text-anchor","start").attr("dy",".9em"),z.select(".nv-hoverValue .nv-yValue").text(l(e.y()(p[i[0]],i[0]))))}}function r(){function a(a,b){for(var c=Math.abs(e.x()(a[0],0)-b),d=0,f=0;f<a.length;f++)Math.abs(e.x()(a[f],f)-b)<c&&(c=Math.abs(e.x()(a[f],f)-b),d=f);return d}if(!j){var b=d3.mouse(this)[0]-f.left;i=[a(p,Math.round(c.invert(b)))],q()}}var s=d3.select(this);a.utils.initSVG(s);var t=a.utils.availableWidth(g,s,f),u=a.utils.availableHeight(h,s,f);if(b.update=function(){s.call(b)},b.container=this,!p||!p.length)return a.utils.noData(b,s),b;s.selectAll(".nv-noData").remove();var v=e.y()(p[p.length-1],p.length-1);c=e.xScale(),d=e.yScale();var w=s.selectAll("g.nv-wrap.nv-sparklineplus").data([p]),x=w.enter().append("g").attr("class","nvd3 nv-wrap nv-sparklineplus"),y=x.append("g"),z=w.select("g");y.append("g").attr("class","nv-sparklineWrap"),y.append("g").attr("class","nv-valueWrap"),y.append("g").attr("class","nv-hoverArea"),w.attr("transform","translate("+f.left+","+f.top+")");var A=z.select(".nv-sparklineWrap");if(e.width(t).height(u),A.call(e),m){var B=z.select(".nv-valueWrap"),C=B.selectAll(".nv-currentValue").data([v]);C.enter().append("text").attr("class","nv-currentValue").attr("dx",o?-8:8).attr("dy",".9em").style("text-anchor",o?"end":"start"),C.attr("x",t+(o?f.right:0)).attr("y",n?function(a){return d(a)}:0).style("fill",e.color()(p[p.length-1],p.length-1)).text(l(v))}y.select(".nv-hoverArea").append("rect").on("mousemove",r).on("click",function(){j=!j}).on("mouseout",function(){i=[],q()}),z.select(".nv-hoverArea rect").attr("transform",function(){return"translate("+-f.left+","+-f.top+")"}).attr("width",t+f.left+f.right).attr("height",u+f.top)}),b}var c,d,e=a.models.sparkline(),f={top:15,right:100,bottom:10,left:50},g=null,h=null,i=[],j=!1,k=d3.format(",r"),l=d3.format(",.2f"),m=!0,n=!0,o=!1,p=null;return b.sparkline=e,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return g},set:function(a){g=a}},height:{get:function(){return h},set:function(a){h=a}},xTickFormat:{get:function(){return k},set:function(a){k=a}},yTickFormat:{get:function(){return l},set:function(a){l=a}},showLastValue:{get:function(){return m},set:function(a){m=a}},alignValue:{get:function(){return n},set:function(a){n=a}},rightAlignValue:{get:function(){return o},set:function(a){o=a}},noData:{get:function(){return p},set:function(a){p=a}},margin:{get:function(){return f},set:function(a){f.top=void 0!==a.top?a.top:f.top,f.right=void 0!==a.right?a.right:f.right,f.bottom=void 0!==a.bottom?a.bottom:f.bottom,f.left=void 0!==a.left?a.left:f.left}}}),a.utils.inheritOptions(b,e),a.utils.initOptions(b),b},a.models.stackedArea=function(){"use strict";function b(m){return u.reset(),u.models(r),m.each(function(m){var s=f-e.left-e.right,v=g-e.top-e.bottom;j=d3.select(this),a.utils.initSVG(j),c=r.xScale(),d=r.yScale();var w=m;m.forEach(function(a,b){a.seriesIndex=b,a.values=a.values.map(function(a,c){return a.index=c,a.seriesIndex=b,a})});var x=m.filter(function(a){return!a.disabled});m=d3.layout.stack().order(o).offset(n).values(function(a){return a.values}).x(k).y(l).out(function(a,b,c){a.display={y:c,y0:b}})(x);var y=j.selectAll("g.nv-wrap.nv-stackedarea").data([m]),z=y.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea"),A=z.append("defs"),B=z.append("g"),C=y.select("g");B.append("g").attr("class","nv-areaWrap"),B.append("g").attr("class","nv-scatterWrap"),y.attr("transform","translate("+e.left+","+e.top+")"),0==r.forceY().length&&r.forceY().push(0),r.width(s).height(v).x(k).y(function(a){return a.display.y+a.display.y0}).forceY([0]).color(m.map(function(a){return a.color||h(a,a.seriesIndex)}));var D=C.select(".nv-scatterWrap").datum(m);D.call(r),A.append("clipPath").attr("id","nv-edge-clip-"+i).append("rect"),y.select("#nv-edge-clip-"+i+" rect").attr("width",s).attr("height",v),C.attr("clip-path",q?"url(#nv-edge-clip-"+i+")":"");var E=d3.svg.area().x(function(a,b){return c(k(a,b))}).y0(function(a){return d(a.display.y0)}).y1(function(a){return d(a.display.y+a.display.y0)}).interpolate(p),F=d3.svg.area().x(function(a,b){return c(k(a,b))}).y0(function(a){return d(a.display.y0)}).y1(function(a){return d(a.display.y0)}),G=C.select(".nv-areaWrap").selectAll("path.nv-area").data(function(a){return a});G.enter().append("path").attr("class",function(a,b){return"nv-area nv-area-"+b}).attr("d",function(a){return F(a.values,a.seriesIndex)}).on("mouseover",function(a){d3.select(this).classed("hover",!0),t.areaMouseover({point:a,series:a.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:a.seriesIndex})}).on("mouseout",function(a){d3.select(this).classed("hover",!1),t.areaMouseout({point:a,series:a.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:a.seriesIndex})}).on("click",function(a){d3.select(this).classed("hover",!1),t.areaClick({point:a,series:a.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:a.seriesIndex})}),G.exit().remove(),G.style("fill",function(a){return a.color||h(a,a.seriesIndex)}).style("stroke",function(a){return a.color||h(a,a.seriesIndex)}),G.watchTransition(u,"stackedArea path").attr("d",function(a,b){return E(a.values,b)}),r.dispatch.on("elementMouseover.area",function(a){C.select(".nv-chart-"+i+" .nv-area-"+a.seriesIndex).classed("hover",!0)}),r.dispatch.on("elementMouseout.area",function(a){C.select(".nv-chart-"+i+" .nv-area-"+a.seriesIndex).classed("hover",!1)}),b.d3_stackedOffset_stackPercent=function(a){var b,c,d,e=a.length,f=a[0].length,g=[];for(c=0;f>c;++c){for(b=0,d=0;b<w.length;b++)d+=l(w[b].values[c]);if(d)for(b=0;e>b;b++)a[b][c][1]/=d;else for(b=0;e>b;b++)a[b][c][1]=0}for(c=0;f>c;++c)g[c]=0;return g}}),u.renderEnd("stackedArea immediate"),b}var c,d,e={top:0,right:0,bottom:0,left:0},f=960,g=500,h=a.utils.defaultColor(),i=Math.floor(1e5*Math.random()),j=null,k=function(a){return a.x},l=function(a){return a.y},m="stack",n="zero",o="default",p="linear",q=!1,r=a.models.scatter(),s=250,t=d3.dispatch("areaClick","areaMouseover","areaMouseout","renderEnd","elementClick","elementMouseover","elementMouseout");r.pointSize(2.2).pointDomain([2.2,2.2]);var u=a.utils.renderWatch(t,s);return b.dispatch=t,b.scatter=r,r.dispatch.on("elementClick",function(){t.elementClick.apply(this,arguments)}),r.dispatch.on("elementMouseover",function(){t.elementMouseover.apply(this,arguments)}),r.dispatch.on("elementMouseout",function(){t.elementMouseout.apply(this,arguments)}),b.interpolate=function(a){return arguments.length?(p=a,b):p},b.duration=function(a){return arguments.length?(s=a,u.reset(s),r.duration(s),b):s},b.dispatch=t,b.scatter=r,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return f},set:function(a){f=a}},height:{get:function(){return g},set:function(a){g=a}},clipEdge:{get:function(){return q},set:function(a){q=a}},offset:{get:function(){return n},set:function(a){n=a}},order:{get:function(){return o},set:function(a){o=a}},interpolate:{get:function(){return p},set:function(a){p=a}},x:{get:function(){return k},set:function(a){k=d3.functor(a)}},y:{get:function(){return l},set:function(a){l=d3.functor(a)}},margin:{get:function(){return e},set:function(a){e.top=void 0!==a.top?a.top:e.top,e.right=void 0!==a.right?a.right:e.right,e.bottom=void 0!==a.bottom?a.bottom:e.bottom,e.left=void 0!==a.left?a.left:e.left}},color:{get:function(){return h},set:function(b){h=a.utils.getColor(b)}},style:{get:function(){return m},set:function(a){switch(m=a){case"stack":b.offset("zero"),b.order("default");break;case"stream":b.offset("wiggle"),b.order("inside-out");break;case"stream-center":b.offset("silhouette"),b.order("inside-out");break;case"expand":b.offset("expand"),b.order("default");break;case"stack_percent":b.offset(b.d3_stackedOffset_stackPercent),b.order("default")}}},duration:{get:function(){return s},set:function(a){s=a,u.reset(s),r.duration(s)}}}),a.utils.inheritOptions(b,r),a.utils.initOptions(b),b},a.models.stackedAreaChart=function(){"use strict";function b(k){return F.reset(),F.models(e),r&&F.models(f),s&&F.models(g),k.each(function(k){var x=d3.select(this),F=this;a.utils.initSVG(x);var K=a.utils.availableWidth(m,x,l),L=a.utils.availableHeight(n,x,l);if(b.update=function(){x.transition().duration(C).call(b)},b.container=this,v.setter(I(k),b.update).getter(H(k)).update(),v.disabled=k.map(function(a){return!!a.disabled}),!w){var M;w={};for(M in v)w[M]=v[M]instanceof Array?v[M].slice(0):v[M]}if(!(k&&k.length&&k.filter(function(a){return a.values.length}).length))return a.utils.noData(b,x),b;x.selectAll(".nv-noData").remove(),c=e.xScale(),d=e.yScale();var N=x.selectAll("g.nv-wrap.nv-stackedAreaChart").data([k]),O=N.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedAreaChart").append("g"),P=N.select("g");if(O.append("rect").style("opacity",0),O.append("g").attr("class","nv-x nv-axis"),O.append("g").attr("class","nv-y nv-axis"),O.append("g").attr("class","nv-stackedWrap"),O.append("g").attr("class","nv-legendWrap"),O.append("g").attr("class","nv-controlsWrap"),O.append("g").attr("class","nv-interactive"),P.select("rect").attr("width",K).attr("height",L),q){var Q=p?K-z:K;h.width(Q),P.select(".nv-legendWrap").datum(k).call(h),l.top!=h.height()&&(l.top=h.height(),L=a.utils.availableHeight(n,x,l)),P.select(".nv-legendWrap").attr("transform","translate("+(K-Q)+","+-l.top+")")}if(p){var R=[{key:B.stacked||"Stacked",metaKey:"Stacked",disabled:"stack"!=e.style(),style:"stack"},{key:B.stream||"Stream",metaKey:"Stream",disabled:"stream"!=e.style(),style:"stream"},{key:B.expanded||"Expanded",metaKey:"Expanded",disabled:"expand"!=e.style(),style:"expand"},{key:B.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:"stack_percent"!=e.style(),style:"stack_percent"}];z=A.length/3*260,R=R.filter(function(a){return-1!==A.indexOf(a.metaKey)}),i.width(z).color(["#444","#444","#444"]),P.select(".nv-controlsWrap").datum(R).call(i),l.top!=Math.max(i.height(),h.height())&&(l.top=Math.max(i.height(),h.height()),L=a.utils.availableHeight(n,x,l)),P.select(".nv-controlsWrap").attr("transform","translate(0,"+-l.top+")")}N.attr("transform","translate("+l.left+","+l.top+")"),t&&P.select(".nv-y.nv-axis").attr("transform","translate("+K+",0)"),u&&(j.width(K).height(L).margin({left:l.left,top:l.top}).svgContainer(x).xScale(c),N.select(".nv-interactive").call(j)),e.width(K).height(L);var S=P.select(".nv-stackedWrap").datum(k);if(S.transition().call(e),r&&(f.scale(c)._ticks(a.utils.calcTicksX(K/100,k)).tickSize(-L,0),P.select(".nv-x.nv-axis").attr("transform","translate(0,"+L+")"),P.select(".nv-x.nv-axis").transition().duration(0).call(f)),s){var T;if(T="wiggle"===e.offset()?0:a.utils.calcTicksY(L/36,k),g.scale(d)._ticks(T).tickSize(-K,0),"expand"===e.style()||"stack_percent"===e.style()){var U=g.tickFormat();D&&U===J||(D=U),g.tickFormat(J)}else D&&(g.tickFormat(D),D=null);P.select(".nv-y.nv-axis").transition().duration(0).call(g)}e.dispatch.on("areaClick.toggle",function(a){k.forEach(1===k.filter(function(a){return!a.disabled}).length?function(a){a.disabled=!1}:function(b,c){b.disabled=c!=a.seriesIndex}),v.disabled=k.map(function(a){return!!a.disabled}),y.stateChange(v),b.update()}),h.dispatch.on("stateChange",function(a){for(var c in a)v[c]=a[c];y.stateChange(v),b.update()}),i.dispatch.on("legendClick",function(a){a.disabled&&(R=R.map(function(a){return a.disabled=!0,a}),a.disabled=!1,e.style(a.style),v.style=e.style(),y.stateChange(v),b.update())}),j.dispatch.on("elementMousemove",function(c){e.clearHighlights();var d,g,h,i=[];if(k.filter(function(a,b){return a.seriesIndex=b,!a.disabled}).forEach(function(f,j){g=a.interactiveBisect(f.values,c.pointXValue,b.x());var k=f.values[g],l=b.y()(k,g);if(null!=l&&e.highlightPoint(j,g,!0),"undefined"!=typeof k){"undefined"==typeof d&&(d=k),"undefined"==typeof h&&(h=b.xScale()(b.x()(k,g)));var m="expand"==e.style()?k.display.y:b.y()(k,g);i.push({key:f.key,value:m,color:o(f,f.seriesIndex),stackedValue:k.display})}}),i.reverse(),i.length>2){var m=b.yScale().invert(c.mouseY),n=null;i.forEach(function(a,b){m=Math.abs(m);var c=Math.abs(a.stackedValue.y0),d=Math.abs(a.stackedValue.y);return m>=c&&d+c>=m?void(n=b):void 0}),null!=n&&(i[n].highlight=!0)}var p=f.tickFormat()(b.x()(d,g)),q=j.tooltip.valueFormatter();"expand"===e.style()||"stack_percent"===e.style()?(E||(E=q),q=d3.format(".1%")):E&&(q=E,E=null),j.tooltip.position({left:h+l.left,top:c.mouseY+l.top}).chartContainer(F.parentNode).valueFormatter(q).data({value:p,series:i})(),j.renderGuideLine(h)}),j.dispatch.on("elementMouseout",function(){e.clearHighlights()}),y.on("changeState",function(a){"undefined"!=typeof a.disabled&&k.length===a.disabled.length&&(k.forEach(function(b,c){b.disabled=a.disabled[c]}),v.disabled=a.disabled),"undefined"!=typeof a.style&&(e.style(a.style),G=a.style),b.update()})}),F.renderEnd("stacked Area chart immediate"),b}var c,d,e=a.models.stackedArea(),f=a.models.axis(),g=a.models.axis(),h=a.models.legend(),i=a.models.legend(),j=a.interactiveGuideline(),k=a.models.tooltip(),l={top:30,right:25,bottom:50,left:60},m=null,n=null,o=a.utils.defaultColor(),p=!0,q=!0,r=!0,s=!0,t=!1,u=!1,v=a.utils.state(),w=null,x=null,y=d3.dispatch("stateChange","changeState","renderEnd"),z=250,A=["Stacked","Stream","Expanded"],B={},C=250;v.style=e.style(),f.orient("bottom").tickPadding(7),g.orient(t?"right":"left"),k.headerFormatter(function(a,b){return f.tickFormat()(a,b)}).valueFormatter(function(a,b){return g.tickFormat()(a,b)}),j.tooltip.headerFormatter(function(a,b){return f.tickFormat()(a,b)}).valueFormatter(function(a,b){return g.tickFormat()(a,b)});var D=null,E=null;i.updateState(!1);var F=a.utils.renderWatch(y),G=e.style(),H=function(a){return function(){return{active:a.map(function(a){return!a.disabled}),style:e.style()}}},I=function(a){return function(b){void 0!==b.style&&(G=b.style),void 0!==b.active&&a.forEach(function(a,c){a.disabled=!b.active[c]})}},J=d3.format("%");return e.dispatch.on("elementMouseover.tooltip",function(a){a.point.x=e.x()(a.point),a.point.y=e.y()(a.point),k.data(a).position(a.pos).hidden(!1)}),e.dispatch.on("elementMouseout.tooltip",function(){k.hidden(!0)}),b.dispatch=y,b.stacked=e,b.legend=h,b.controls=i,b.xAxis=f,b.yAxis=g,b.interactiveLayer=j,b.tooltip=k,b.dispatch=y,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return m},set:function(a){m=a}},height:{get:function(){return n},set:function(a){n=a}},showLegend:{get:function(){return q},set:function(a){q=a}},showXAxis:{get:function(){return r},set:function(a){r=a}},showYAxis:{get:function(){return s},set:function(a){s=a}},defaultState:{get:function(){return w},set:function(a){w=a}},noData:{get:function(){return x},set:function(a){x=a}},showControls:{get:function(){return p},set:function(a){p=a}},controlLabels:{get:function(){return B},set:function(a){B=a}},controlOptions:{get:function(){return A},set:function(a){A=a}},tooltips:{get:function(){return k.enabled()},set:function(b){a.deprecated("tooltips","use chart.tooltip.enabled() instead"),k.enabled(!!b)}},tooltipContent:{get:function(){return k.contentGenerator()},set:function(b){a.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),k.contentGenerator(b)}},margin:{get:function(){return l},set:function(a){l.top=void 0!==a.top?a.top:l.top,l.right=void 0!==a.right?a.right:l.right,l.bottom=void 0!==a.bottom?a.bottom:l.bottom,l.left=void 0!==a.left?a.left:l.left}},duration:{get:function(){return C},set:function(a){C=a,F.reset(C),e.duration(C),f.duration(C),g.duration(C)}},color:{get:function(){return o},set:function(b){o=a.utils.getColor(b),h.color(o),e.color(o)}},rightAlignYAxis:{get:function(){return t},set:function(a){t=a,g.orient(t?"right":"left")}},useInteractiveGuideline:{get:function(){return u},set:function(a){u=!!a,b.interactive(!a),b.useVoronoi(!a),e.scatter.interactive(!a)}}}),a.utils.inheritOptions(b,e),a.utils.initOptions(b),b},a.models.sunburst=function(){"use strict";function b(u){return t.reset(),u.each(function(b){function t(a){a.x0=a.x,a.dx0=a.dx}function u(a){var b=d3.interpolate(p.domain(),[a.x,a.x+a.dx]),c=d3.interpolate(q.domain(),[a.y,1]),d=d3.interpolate(q.range(),[a.y?20:0,y]);return function(a,e){return e?function(){return s(a)}:function(e){return p.domain(b(e)),q.domain(c(e)).range(d(e)),s(a)}}}l=d3.select(this);var v,w=a.utils.availableWidth(g,l,f),x=a.utils.availableHeight(h,l,f),y=Math.min(w,x)/2;a.utils.initSVG(l);var z=l.selectAll(".nv-wrap.nv-sunburst").data(b),A=z.enter().append("g").attr("class","nvd3 nv-wrap nv-sunburst nv-chart-"+k),B=A.selectAll("nv-sunburst");z.attr("transform","translate("+w/2+","+x/2+")"),l.on("click",function(a,b){o.chartClick({data:a,index:b,pos:d3.event,id:k})}),q.range([0,y]),c=c||b,e=b[0],r.value(j[i]||j.count),v=B.data(r.nodes).enter().append("path").attr("d",s).style("fill",function(a){return m((a.children?a:a.parent).name)}).style("stroke","#FFF").on("click",function(a){d!==c&&c!==a&&(d=c),c=a,v.transition().duration(n).attrTween("d",u(a))}).each(t).on("dblclick",function(a){d.parent==a&&v.transition().duration(n).attrTween("d",u(e))}).each(t).on("mouseover",function(a){d3.select(this).classed("hover",!0).style("opacity",.8),o.elementMouseover({data:a,color:d3.select(this).style("fill")})}).on("mouseout",function(a){d3.select(this).classed("hover",!1).style("opacity",1),o.elementMouseout({data:a})}).on("mousemove",function(a){o.elementMousemove({data:a})})}),t.renderEnd("sunburst immediate"),b}var c,d,e,f={top:0,right:0,bottom:0,left:0},g=null,h=null,i="count",j={count:function(){return 1},size:function(a){return a.size}},k=Math.floor(1e4*Math.random()),l=null,m=a.utils.defaultColor(),n=500,o=d3.dispatch("chartClick","elementClick","elementDblClick","elementMousemove","elementMouseover","elementMouseout","renderEnd"),p=d3.scale.linear().range([0,2*Math.PI]),q=d3.scale.sqrt(),r=d3.layout.partition().sort(null).value(function(){return 1}),s=d3.svg.arc().startAngle(function(a){return Math.max(0,Math.min(2*Math.PI,p(a.x)))}).endAngle(function(a){return Math.max(0,Math.min(2*Math.PI,p(a.x+a.dx)))}).innerRadius(function(a){return Math.max(0,q(a.y))}).outerRadius(function(a){return Math.max(0,q(a.y+a.dy))}),t=a.utils.renderWatch(o);return b.dispatch=o,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return g},set:function(a){g=a}},height:{get:function(){return h},set:function(a){h=a}},mode:{get:function(){return i},set:function(a){i=a}},id:{get:function(){return k},set:function(a){k=a}},duration:{get:function(){return n},set:function(a){n=a}},margin:{get:function(){return f},set:function(a){f.top=void 0!=a.top?a.top:f.top,f.right=void 0!=a.right?a.right:f.right,f.bottom=void 0!=a.bottom?a.bottom:f.bottom,f.left=void 0!=a.left?a.left:f.left}},color:{get:function(){return m},set:function(b){m=a.utils.getColor(b)}}}),a.utils.initOptions(b),b},a.models.sunburstChart=function(){"use strict";function b(d){return m.reset(),m.models(c),d.each(function(d){var h=d3.select(this);a.utils.initSVG(h);var i=a.utils.availableWidth(f,h,e),j=a.utils.availableHeight(g,h,e);if(b.update=function(){0===k?h.call(b):h.transition().duration(k).call(b)},b.container=this,!d||!d.length)return a.utils.noData(b,h),b;h.selectAll(".nv-noData").remove();var l=h.selectAll("g.nv-wrap.nv-sunburstChart").data(d),m=l.enter().append("g").attr("class","nvd3 nv-wrap nv-sunburstChart").append("g"),n=l.select("g");m.append("g").attr("class","nv-sunburstWrap"),l.attr("transform","translate("+e.left+","+e.top+")"),c.width(i).height(j);var o=n.select(".nv-sunburstWrap").datum(d);d3.transition(o).call(c)}),m.renderEnd("sunburstChart immediate"),b}var c=a.models.sunburst(),d=a.models.tooltip(),e={top:30,right:20,bottom:20,left:20},f=null,g=null,h=a.utils.defaultColor(),i=(Math.round(1e5*Math.random()),null),j=null,k=250,l=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd"),m=a.utils.renderWatch(l);return d.headerEnabled(!1).duration(0).valueFormatter(function(a){return a}),c.dispatch.on("elementMouseover.tooltip",function(a){a.series={key:a.data.name,value:a.data.size,color:a.color},d.data(a).hidden(!1)}),c.dispatch.on("elementMouseout.tooltip",function(){d.hidden(!0)}),c.dispatch.on("elementMousemove.tooltip",function(){d.position({top:d3.event.pageY,left:d3.event.pageX})()}),b.dispatch=l,b.sunburst=c,b.tooltip=d,b.options=a.utils.optionsFunc.bind(b),b._options=Object.create({},{noData:{get:function(){return j},set:function(a){j=a}},defaultState:{get:function(){return i},set:function(a){i=a}},color:{get:function(){return h},set:function(a){h=a,c.color(h)}},duration:{get:function(){return k},set:function(a){k=a,m.reset(k),c.duration(k)}},margin:{get:function(){return e},set:function(a){e.top=void 0!==a.top?a.top:e.top,e.right=void 0!==a.right?a.right:e.right,e.bottom=void 0!==a.bottom?a.bottom:e.bottom,e.left=void 0!==a.left?a.left:e.left}}}),a.utils.inheritOptions(b,c),a.utils.initOptions(b),b},a.version="1.8.1"}(); \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/respond.min.js b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/respond.min.js
deleted file mode 100644
index 80a7b69d..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/respond.min.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl
- * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT
- * */
-
-!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='&shy;<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this); \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.dist b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.dist
deleted file mode 100644
index 4bb0e42c..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/method_item.html.dist
+++ /dev/null
@@ -1,11 +0,0 @@
- <tr>
- <td class="{{methods_level}}" colspan="4">{{name}}</td>
- <td class="{{methods_level}} big">{{methods_bar}}</td>
- <td class="{{methods_level}} small"><div align="right">{{methods_tested_percent}}</div></td>
- <td class="{{methods_level}} small"><div align="right">{{methods_number}}</div></td>
- <td class="{{methods_level}} small">{{crap}}</td>
- <td class="{{lines_level}} big">{{lines_bar}}</td>
- <td class="{{lines_level}} small"><div align="right">{{lines_executed_percent}}</div></td>
- <td class="{{lines_level}} small"><div align="right">{{lines_number}}</div></td>
- </tr>
-
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php
deleted file mode 100644
index c57f7442..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php
+++ /dev/null
@@ -1,339 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Base class for nodes in the code coverage information tree.
- *
- * @since Class available since Release 1.1.0
- */
-abstract class PHP_CodeCoverage_Report_Node implements Countable
-{
- /**
- * @var string
- */
- protected $name;
-
- /**
- * @var string
- */
- protected $path;
-
- /**
- * @var array
- */
- protected $pathArray;
-
- /**
- * @var PHP_CodeCoverage_Report_Node
- */
- protected $parent;
-
- /**
- * @var string
- */
- protected $id;
-
- /**
- * Constructor.
- *
- * @param string $name
- * @param PHP_CodeCoverage_Report_Node $parent
- */
- public function __construct($name, PHP_CodeCoverage_Report_Node $parent = null)
- {
- if (substr($name, -1) == '/') {
- $name = substr($name, 0, -1);
- }
-
- $this->name = $name;
- $this->parent = $parent;
- }
-
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * @return string
- */
- public function getId()
- {
- if ($this->id === null) {
- $parent = $this->getParent();
-
- if ($parent === null) {
- $this->id = 'index';
- } else {
- $parentId = $parent->getId();
-
- if ($parentId == 'index') {
- $this->id = str_replace(':', '_', $this->name);
- } else {
- $this->id = $parentId . '/' . $this->name;
- }
- }
- }
-
- return $this->id;
- }
-
- /**
- * @return string
- */
- public function getPath()
- {
- if ($this->path === null) {
- if ($this->parent === null || $this->parent->getPath() === null || $this->parent->getPath() === false) {
- $this->path = $this->name;
- } else {
- $this->path = $this->parent->getPath() . '/' . $this->name;
- }
- }
-
- return $this->path;
- }
-
- /**
- * @return array
- */
- public function getPathAsArray()
- {
- if ($this->pathArray === null) {
- if ($this->parent === null) {
- $this->pathArray = array();
- } else {
- $this->pathArray = $this->parent->getPathAsArray();
- }
-
- $this->pathArray[] = $this;
- }
-
- return $this->pathArray;
- }
-
- /**
- * @return PHP_CodeCoverage_Report_Node
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Returns the percentage of classes that has been tested.
- *
- * @param bool $asString
- * @return int
- */
- public function getTestedClassesPercent($asString = true)
- {
- return PHP_CodeCoverage_Util::percent(
- $this->getNumTestedClasses(),
- $this->getNumClasses(),
- $asString
- );
- }
-
- /**
- * Returns the percentage of traits that has been tested.
- *
- * @param bool $asString
- * @return int
- */
- public function getTestedTraitsPercent($asString = true)
- {
- return PHP_CodeCoverage_Util::percent(
- $this->getNumTestedTraits(),
- $this->getNumTraits(),
- $asString
- );
- }
-
- /**
- * Returns the percentage of traits that has been tested.
- *
- * @param bool $asString
- * @return int
- * @since Method available since Release 1.2.0
- */
- public function getTestedClassesAndTraitsPercent($asString = true)
- {
- return PHP_CodeCoverage_Util::percent(
- $this->getNumTestedClassesAndTraits(),
- $this->getNumClassesAndTraits(),
- $asString
- );
- }
-
- /**
- * Returns the percentage of methods that has been tested.
- *
- * @param bool $asString
- * @return int
- */
- public function getTestedMethodsPercent($asString = true)
- {
- return PHP_CodeCoverage_Util::percent(
- $this->getNumTestedMethods(),
- $this->getNumMethods(),
- $asString
- );
- }
-
- /**
- * Returns the percentage of executed lines.
- *
- * @param bool $asString
- * @return int
- */
- public function getLineExecutedPercent($asString = true)
- {
- return PHP_CodeCoverage_Util::percent(
- $this->getNumExecutedLines(),
- $this->getNumExecutableLines(),
- $asString
- );
- }
-
- /**
- * Returns the number of classes and traits.
- *
- * @return int
- * @since Method available since Release 1.2.0
- */
- public function getNumClassesAndTraits()
- {
- return $this->getNumClasses() + $this->getNumTraits();
- }
-
- /**
- * Returns the number of tested classes and traits.
- *
- * @return int
- * @since Method available since Release 1.2.0
- */
- public function getNumTestedClassesAndTraits()
- {
- return $this->getNumTestedClasses() + $this->getNumTestedTraits();
- }
-
- /**
- * Returns the classes and traits of this node.
- *
- * @return array
- * @since Method available since Release 1.2.0
- */
- public function getClassesAndTraits()
- {
- return array_merge($this->getClasses(), $this->getTraits());
- }
-
- /**
- * Returns the classes of this node.
- *
- * @return array
- */
- abstract public function getClasses();
-
- /**
- * Returns the traits of this node.
- *
- * @return array
- */
- abstract public function getTraits();
-
- /**
- * Returns the functions of this node.
- *
- * @return array
- */
- abstract public function getFunctions();
-
- /**
- * Returns the LOC/CLOC/NCLOC of this node.
- *
- * @return array
- */
- abstract public function getLinesOfCode();
-
- /**
- * Returns the number of executable lines.
- *
- * @return int
- */
- abstract public function getNumExecutableLines();
-
- /**
- * Returns the number of executed lines.
- *
- * @return int
- */
- abstract public function getNumExecutedLines();
-
- /**
- * Returns the number of classes.
- *
- * @return int
- */
- abstract public function getNumClasses();
-
- /**
- * Returns the number of tested classes.
- *
- * @return int
- */
- abstract public function getNumTestedClasses();
-
- /**
- * Returns the number of traits.
- *
- * @return int
- */
- abstract public function getNumTraits();
-
- /**
- * Returns the number of tested traits.
- *
- * @return int
- */
- abstract public function getNumTestedTraits();
-
- /**
- * Returns the number of methods.
- *
- * @return int
- */
- abstract public function getNumMethods();
-
- /**
- * Returns the number of tested methods.
- *
- * @return int
- */
- abstract public function getNumTestedMethods();
-
- /**
- * Returns the number of functions.
- *
- * @return int
- */
- abstract public function getNumFunctions();
-
- /**
- * Returns the number of tested functions.
- *
- * @return int
- */
- abstract public function getNumTestedFunctions();
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Directory.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Directory.php
deleted file mode 100644
index dd71ecb5..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Directory.php
+++ /dev/null
@@ -1,478 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Represents a directory in the code coverage information tree.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Report_Node_Directory extends PHP_CodeCoverage_Report_Node implements IteratorAggregate
-{
- /**
- * @var PHP_CodeCoverage_Report_Node[]
- */
- protected $children = array();
-
- /**
- * @var PHP_CodeCoverage_Report_Node_Directory[]
- */
- protected $directories = array();
-
- /**
- * @var PHP_CodeCoverage_Report_Node_File[]
- */
- protected $files = array();
-
- /**
- * @var array
- */
- protected $classes;
-
- /**
- * @var array
- */
- protected $traits;
-
- /**
- * @var array
- */
- protected $functions;
-
- /**
- * @var array
- */
- protected $linesOfCode = null;
-
- /**
- * @var int
- */
- protected $numFiles = -1;
-
- /**
- * @var int
- */
- protected $numExecutableLines = -1;
-
- /**
- * @var int
- */
- protected $numExecutedLines = -1;
-
- /**
- * @var int
- */
- protected $numClasses = -1;
-
- /**
- * @var int
- */
- protected $numTestedClasses = -1;
-
- /**
- * @var int
- */
- protected $numTraits = -1;
-
- /**
- * @var int
- */
- protected $numTestedTraits = -1;
-
- /**
- * @var int
- */
- protected $numMethods = -1;
-
- /**
- * @var int
- */
- protected $numTestedMethods = -1;
-
- /**
- * @var int
- */
- protected $numFunctions = -1;
-
- /**
- * @var int
- */
- protected $numTestedFunctions = -1;
-
- /**
- * Returns the number of files in/under this node.
- *
- * @return int
- */
- public function count()
- {
- if ($this->numFiles == -1) {
- $this->numFiles = 0;
-
- foreach ($this->children as $child) {
- $this->numFiles += count($child);
- }
- }
-
- return $this->numFiles;
- }
-
- /**
- * Returns an iterator for this node.
- *
- * @return RecursiveIteratorIterator
- */
- public function getIterator()
- {
- return new RecursiveIteratorIterator(
- new PHP_CodeCoverage_Report_Node_Iterator($this),
- RecursiveIteratorIterator::SELF_FIRST
- );
- }
-
- /**
- * Adds a new directory.
- *
- * @param string $name
- * @return PHP_CodeCoverage_Report_Node_Directory
- */
- public function addDirectory($name)
- {
- $directory = new self($name, $this);
-
- $this->children[] = $directory;
- $this->directories[] = &$this->children[count($this->children) - 1];
-
- return $directory;
- }
-
- /**
- * Adds a new file.
- *
- * @param string $name
- * @param array $coverageData
- * @param array $testData
- * @param bool $cacheTokens
- * @return PHP_CodeCoverage_Report_Node_File
- * @throws PHP_CodeCoverage_Exception
- */
- public function addFile($name, array $coverageData, array $testData, $cacheTokens)
- {
- $file = new PHP_CodeCoverage_Report_Node_File(
- $name,
- $this,
- $coverageData,
- $testData,
- $cacheTokens
- );
-
- $this->children[] = $file;
- $this->files[] = &$this->children[count($this->children) - 1];
-
- $this->numExecutableLines = -1;
- $this->numExecutedLines = -1;
-
- return $file;
- }
-
- /**
- * Returns the directories in this directory.
- *
- * @return array
- */
- public function getDirectories()
- {
- return $this->directories;
- }
-
- /**
- * Returns the files in this directory.
- *
- * @return array
- */
- public function getFiles()
- {
- return $this->files;
- }
-
- /**
- * Returns the child nodes of this node.
- *
- * @return array
- */
- public function getChildNodes()
- {
- return $this->children;
- }
-
- /**
- * Returns the classes of this node.
- *
- * @return array
- */
- public function getClasses()
- {
- if ($this->classes === null) {
- $this->classes = array();
-
- foreach ($this->children as $child) {
- $this->classes = array_merge(
- $this->classes,
- $child->getClasses()
- );
- }
- }
-
- return $this->classes;
- }
-
- /**
- * Returns the traits of this node.
- *
- * @return array
- */
- public function getTraits()
- {
- if ($this->traits === null) {
- $this->traits = array();
-
- foreach ($this->children as $child) {
- $this->traits = array_merge(
- $this->traits,
- $child->getTraits()
- );
- }
- }
-
- return $this->traits;
- }
-
- /**
- * Returns the functions of this node.
- *
- * @return array
- */
- public function getFunctions()
- {
- if ($this->functions === null) {
- $this->functions = array();
-
- foreach ($this->children as $child) {
- $this->functions = array_merge(
- $this->functions,
- $child->getFunctions()
- );
- }
- }
-
- return $this->functions;
- }
-
- /**
- * Returns the LOC/CLOC/NCLOC of this node.
- *
- * @return array
- */
- public function getLinesOfCode()
- {
- if ($this->linesOfCode === null) {
- $this->linesOfCode = array('loc' => 0, 'cloc' => 0, 'ncloc' => 0);
-
- foreach ($this->children as $child) {
- $linesOfCode = $child->getLinesOfCode();
-
- $this->linesOfCode['loc'] += $linesOfCode['loc'];
- $this->linesOfCode['cloc'] += $linesOfCode['cloc'];
- $this->linesOfCode['ncloc'] += $linesOfCode['ncloc'];
- }
- }
-
- return $this->linesOfCode;
- }
-
- /**
- * Returns the number of executable lines.
- *
- * @return int
- */
- public function getNumExecutableLines()
- {
- if ($this->numExecutableLines == -1) {
- $this->numExecutableLines = 0;
-
- foreach ($this->children as $child) {
- $this->numExecutableLines += $child->getNumExecutableLines();
- }
- }
-
- return $this->numExecutableLines;
- }
-
- /**
- * Returns the number of executed lines.
- *
- * @return int
- */
- public function getNumExecutedLines()
- {
- if ($this->numExecutedLines == -1) {
- $this->numExecutedLines = 0;
-
- foreach ($this->children as $child) {
- $this->numExecutedLines += $child->getNumExecutedLines();
- }
- }
-
- return $this->numExecutedLines;
- }
-
- /**
- * Returns the number of classes.
- *
- * @return int
- */
- public function getNumClasses()
- {
- if ($this->numClasses == -1) {
- $this->numClasses = 0;
-
- foreach ($this->children as $child) {
- $this->numClasses += $child->getNumClasses();
- }
- }
-
- return $this->numClasses;
- }
-
- /**
- * Returns the number of tested classes.
- *
- * @return int
- */
- public function getNumTestedClasses()
- {
- if ($this->numTestedClasses == -1) {
- $this->numTestedClasses = 0;
-
- foreach ($this->children as $child) {
- $this->numTestedClasses += $child->getNumTestedClasses();
- }
- }
-
- return $this->numTestedClasses;
- }
-
- /**
- * Returns the number of traits.
- *
- * @return int
- */
- public function getNumTraits()
- {
- if ($this->numTraits == -1) {
- $this->numTraits = 0;
-
- foreach ($this->children as $child) {
- $this->numTraits += $child->getNumTraits();
- }
- }
-
- return $this->numTraits;
- }
-
- /**
- * Returns the number of tested traits.
- *
- * @return int
- */
- public function getNumTestedTraits()
- {
- if ($this->numTestedTraits == -1) {
- $this->numTestedTraits = 0;
-
- foreach ($this->children as $child) {
- $this->numTestedTraits += $child->getNumTestedTraits();
- }
- }
-
- return $this->numTestedTraits;
- }
-
- /**
- * Returns the number of methods.
- *
- * @return int
- */
- public function getNumMethods()
- {
- if ($this->numMethods == -1) {
- $this->numMethods = 0;
-
- foreach ($this->children as $child) {
- $this->numMethods += $child->getNumMethods();
- }
- }
-
- return $this->numMethods;
- }
-
- /**
- * Returns the number of tested methods.
- *
- * @return int
- */
- public function getNumTestedMethods()
- {
- if ($this->numTestedMethods == -1) {
- $this->numTestedMethods = 0;
-
- foreach ($this->children as $child) {
- $this->numTestedMethods += $child->getNumTestedMethods();
- }
- }
-
- return $this->numTestedMethods;
- }
-
- /**
- * Returns the number of functions.
- *
- * @return int
- */
- public function getNumFunctions()
- {
- if ($this->numFunctions == -1) {
- $this->numFunctions = 0;
-
- foreach ($this->children as $child) {
- $this->numFunctions += $child->getNumFunctions();
- }
- }
-
- return $this->numFunctions;
- }
-
- /**
- * Returns the number of tested functions.
- *
- * @return int
- */
- public function getNumTestedFunctions()
- {
- if ($this->numTestedFunctions == -1) {
- $this->numTestedFunctions = 0;
-
- foreach ($this->children as $child) {
- $this->numTestedFunctions += $child->getNumTestedFunctions();
- }
- }
-
- return $this->numTestedFunctions;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php
deleted file mode 100644
index 32e43a6e..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php
+++ /dev/null
@@ -1,679 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Represents a file in the code coverage information tree.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Report_Node_File extends PHP_CodeCoverage_Report_Node
-{
- /**
- * @var array
- */
- protected $coverageData;
-
- /**
- * @var array
- */
- protected $testData;
-
- /**
- * @var int
- */
- protected $numExecutableLines = 0;
-
- /**
- * @var int
- */
- protected $numExecutedLines = 0;
-
- /**
- * @var array
- */
- protected $classes = array();
-
- /**
- * @var array
- */
- protected $traits = array();
-
- /**
- * @var array
- */
- protected $functions = array();
-
- /**
- * @var array
- */
- protected $linesOfCode = array();
-
- /**
- * @var int
- */
- protected $numTestedTraits = 0;
-
- /**
- * @var int
- */
- protected $numTestedClasses = 0;
-
- /**
- * @var int
- */
- protected $numMethods = null;
-
- /**
- * @var int
- */
- protected $numTestedMethods = null;
-
- /**
- * @var int
- */
- protected $numTestedFunctions = null;
-
- /**
- * @var array
- */
- protected $startLines = array();
-
- /**
- * @var array
- */
- protected $endLines = array();
-
- /**
- * @var bool
- */
- protected $cacheTokens;
-
- /**
- * Constructor.
- *
- * @param string $name
- * @param PHP_CodeCoverage_Report_Node $parent
- * @param array $coverageData
- * @param array $testData
- * @param bool $cacheTokens
- * @throws PHP_CodeCoverage_Exception
- */
- public function __construct($name, PHP_CodeCoverage_Report_Node $parent, array $coverageData, array $testData, $cacheTokens)
- {
- if (!is_bool($cacheTokens)) {
- throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(
- 1,
- 'boolean'
- );
- }
-
- parent::__construct($name, $parent);
-
- $this->coverageData = $coverageData;
- $this->testData = $testData;
- $this->cacheTokens = $cacheTokens;
-
- $this->calculateStatistics();
- }
-
- /**
- * Returns the number of files in/under this node.
- *
- * @return int
- */
- public function count()
- {
- return 1;
- }
-
- /**
- * Returns the code coverage data of this node.
- *
- * @return array
- */
- public function getCoverageData()
- {
- return $this->coverageData;
- }
-
- /**
- * Returns the test data of this node.
- *
- * @return array
- */
- public function getTestData()
- {
- return $this->testData;
- }
-
- /**
- * Returns the classes of this node.
- *
- * @return array
- */
- public function getClasses()
- {
- return $this->classes;
- }
-
- /**
- * Returns the traits of this node.
- *
- * @return array
- */
- public function getTraits()
- {
- return $this->traits;
- }
-
- /**
- * Returns the functions of this node.
- *
- * @return array
- */
- public function getFunctions()
- {
- return $this->functions;
- }
-
- /**
- * Returns the LOC/CLOC/NCLOC of this node.
- *
- * @return array
- */
- public function getLinesOfCode()
- {
- return $this->linesOfCode;
- }
-
- /**
- * Returns the number of executable lines.
- *
- * @return int
- */
- public function getNumExecutableLines()
- {
- return $this->numExecutableLines;
- }
-
- /**
- * Returns the number of executed lines.
- *
- * @return int
- */
- public function getNumExecutedLines()
- {
- return $this->numExecutedLines;
- }
-
- /**
- * Returns the number of classes.
- *
- * @return int
- */
- public function getNumClasses()
- {
- return count($this->classes);
- }
-
- /**
- * Returns the number of tested classes.
- *
- * @return int
- */
- public function getNumTestedClasses()
- {
- return $this->numTestedClasses;
- }
-
- /**
- * Returns the number of traits.
- *
- * @return int
- */
- public function getNumTraits()
- {
- return count($this->traits);
- }
-
- /**
- * Returns the number of tested traits.
- *
- * @return int
- */
- public function getNumTestedTraits()
- {
- return $this->numTestedTraits;
- }
-
- /**
- * Returns the number of methods.
- *
- * @return int
- */
- public function getNumMethods()
- {
- if ($this->numMethods === null) {
- $this->numMethods = 0;
-
- foreach ($this->classes as $class) {
- foreach ($class['methods'] as $method) {
- if ($method['executableLines'] > 0) {
- $this->numMethods++;
- }
- }
- }
-
- foreach ($this->traits as $trait) {
- foreach ($trait['methods'] as $method) {
- if ($method['executableLines'] > 0) {
- $this->numMethods++;
- }
- }
- }
- }
-
- return $this->numMethods;
- }
-
- /**
- * Returns the number of tested methods.
- *
- * @return int
- */
- public function getNumTestedMethods()
- {
- if ($this->numTestedMethods === null) {
- $this->numTestedMethods = 0;
-
- foreach ($this->classes as $class) {
- foreach ($class['methods'] as $method) {
- if ($method['executableLines'] > 0 &&
- $method['coverage'] == 100) {
- $this->numTestedMethods++;
- }
- }
- }
-
- foreach ($this->traits as $trait) {
- foreach ($trait['methods'] as $method) {
- if ($method['executableLines'] > 0 &&
- $method['coverage'] == 100) {
- $this->numTestedMethods++;
- }
- }
- }
- }
-
- return $this->numTestedMethods;
- }
-
- /**
- * Returns the number of functions.
- *
- * @return int
- */
- public function getNumFunctions()
- {
- return count($this->functions);
- }
-
- /**
- * Returns the number of tested functions.
- *
- * @return int
- */
- public function getNumTestedFunctions()
- {
- if ($this->numTestedFunctions === null) {
- $this->numTestedFunctions = 0;
-
- foreach ($this->functions as $function) {
- if ($function['executableLines'] > 0 &&
- $function['coverage'] == 100) {
- $this->numTestedFunctions++;
- }
- }
- }
-
- return $this->numTestedFunctions;
- }
-
- /**
- * Calculates coverage statistics for the file.
- */
- protected function calculateStatistics()
- {
- $classStack = $functionStack = array();
-
- if ($this->cacheTokens) {
- $tokens = PHP_Token_Stream_CachingFactory::get($this->getPath());
- } else {
- $tokens = new PHP_Token_Stream($this->getPath());
- }
-
- $this->processClasses($tokens);
- $this->processTraits($tokens);
- $this->processFunctions($tokens);
- $this->linesOfCode = $tokens->getLinesOfCode();
- unset($tokens);
-
- for ($lineNumber = 1; $lineNumber <= $this->linesOfCode['loc']; $lineNumber++) {
- if (isset($this->startLines[$lineNumber])) {
- // Start line of a class.
- if (isset($this->startLines[$lineNumber]['className'])) {
- if (isset($currentClass)) {
- $classStack[] = &$currentClass;
- }
-
- $currentClass = &$this->startLines[$lineNumber];
- } // Start line of a trait.
- elseif (isset($this->startLines[$lineNumber]['traitName'])) {
- $currentTrait = &$this->startLines[$lineNumber];
- } // Start line of a method.
- elseif (isset($this->startLines[$lineNumber]['methodName'])) {
- $currentMethod = &$this->startLines[$lineNumber];
- } // Start line of a function.
- elseif (isset($this->startLines[$lineNumber]['functionName'])) {
- if (isset($currentFunction)) {
- $functionStack[] = &$currentFunction;
- }
-
- $currentFunction = &$this->startLines[$lineNumber];
- }
- }
-
- if (isset($this->coverageData[$lineNumber])) {
- if (isset($currentClass)) {
- $currentClass['executableLines']++;
- }
-
- if (isset($currentTrait)) {
- $currentTrait['executableLines']++;
- }
-
- if (isset($currentMethod)) {
- $currentMethod['executableLines']++;
- }
-
- if (isset($currentFunction)) {
- $currentFunction['executableLines']++;
- }
-
- $this->numExecutableLines++;
-
- if (count($this->coverageData[$lineNumber]) > 0) {
- if (isset($currentClass)) {
- $currentClass['executedLines']++;
- }
-
- if (isset($currentTrait)) {
- $currentTrait['executedLines']++;
- }
-
- if (isset($currentMethod)) {
- $currentMethod['executedLines']++;
- }
-
- if (isset($currentFunction)) {
- $currentFunction['executedLines']++;
- }
-
- $this->numExecutedLines++;
- }
- }
-
- if (isset($this->endLines[$lineNumber])) {
- // End line of a class.
- if (isset($this->endLines[$lineNumber]['className'])) {
- unset($currentClass);
-
- if ($classStack) {
- end($classStack);
- $key = key($classStack);
- $currentClass = &$classStack[$key];
- unset($classStack[$key]);
- }
- } // End line of a trait.
- elseif (isset($this->endLines[$lineNumber]['traitName'])) {
- unset($currentTrait);
- } // End line of a method.
- elseif (isset($this->endLines[$lineNumber]['methodName'])) {
- unset($currentMethod);
- } // End line of a function.
- elseif (isset($this->endLines[$lineNumber]['functionName'])) {
- unset($currentFunction);
-
- if ($functionStack) {
- end($functionStack);
- $key = key($functionStack);
- $currentFunction = &$functionStack[$key];
- unset($functionStack[$key]);
- }
- }
- }
- }
-
- foreach ($this->traits as &$trait) {
- foreach ($trait['methods'] as &$method) {
- if ($method['executableLines'] > 0) {
- $method['coverage'] = ($method['executedLines'] /
- $method['executableLines']) * 100;
- } else {
- $method['coverage'] = 100;
- }
-
- $method['crap'] = $this->crap(
- $method['ccn'],
- $method['coverage']
- );
-
- $trait['ccn'] += $method['ccn'];
- }
-
- if ($trait['executableLines'] > 0) {
- $trait['coverage'] = ($trait['executedLines'] /
- $trait['executableLines']) * 100;
- } else {
- $trait['coverage'] = 100;
- }
-
- if ($trait['coverage'] == 100) {
- $this->numTestedClasses++;
- }
-
- $trait['crap'] = $this->crap(
- $trait['ccn'],
- $trait['coverage']
- );
- }
-
- foreach ($this->classes as &$class) {
- foreach ($class['methods'] as &$method) {
- if ($method['executableLines'] > 0) {
- $method['coverage'] = ($method['executedLines'] /
- $method['executableLines']) * 100;
- } else {
- $method['coverage'] = 100;
- }
-
- $method['crap'] = $this->crap(
- $method['ccn'],
- $method['coverage']
- );
-
- $class['ccn'] += $method['ccn'];
- }
-
- if ($class['executableLines'] > 0) {
- $class['coverage'] = ($class['executedLines'] /
- $class['executableLines']) * 100;
- } else {
- $class['coverage'] = 100;
- }
-
- if ($class['coverage'] == 100) {
- $this->numTestedClasses++;
- }
-
- $class['crap'] = $this->crap(
- $class['ccn'],
- $class['coverage']
- );
- }
- }
-
- /**
- * @param PHP_Token_Stream $tokens
- */
- protected function processClasses(PHP_Token_Stream $tokens)
- {
- $classes = $tokens->getClasses();
- unset($tokens);
-
- $link = $this->getId() . '.html#';
-
- foreach ($classes as $className => $class) {
- $this->classes[$className] = array(
- 'className' => $className,
- 'methods' => array(),
- 'startLine' => $class['startLine'],
- 'executableLines' => 0,
- 'executedLines' => 0,
- 'ccn' => 0,
- 'coverage' => 0,
- 'crap' => 0,
- 'package' => $class['package'],
- 'link' => $link . $class['startLine']
- );
-
- $this->startLines[$class['startLine']] = &$this->classes[$className];
- $this->endLines[$class['endLine']] = &$this->classes[$className];
-
- foreach ($class['methods'] as $methodName => $method) {
- $this->classes[$className]['methods'][$methodName] = array(
- 'methodName' => $methodName,
- 'signature' => $method['signature'],
- 'startLine' => $method['startLine'],
- 'endLine' => $method['endLine'],
- 'executableLines' => 0,
- 'executedLines' => 0,
- 'ccn' => $method['ccn'],
- 'coverage' => 0,
- 'crap' => 0,
- 'link' => $link . $method['startLine']
- );
-
- $this->startLines[$method['startLine']] = &$this->classes[$className]['methods'][$methodName];
- $this->endLines[$method['endLine']] = &$this->classes[$className]['methods'][$methodName];
- }
- }
- }
-
- /**
- * @param PHP_Token_Stream $tokens
- */
- protected function processTraits(PHP_Token_Stream $tokens)
- {
- $traits = $tokens->getTraits();
- unset($tokens);
-
- $link = $this->getId() . '.html#';
-
- foreach ($traits as $traitName => $trait) {
- $this->traits[$traitName] = array(
- 'traitName' => $traitName,
- 'methods' => array(),
- 'startLine' => $trait['startLine'],
- 'executableLines' => 0,
- 'executedLines' => 0,
- 'ccn' => 0,
- 'coverage' => 0,
- 'crap' => 0,
- 'package' => $trait['package'],
- 'link' => $link . $trait['startLine']
- );
-
- $this->startLines[$trait['startLine']] = &$this->traits[$traitName];
- $this->endLines[$trait['endLine']] = &$this->traits[$traitName];
-
- foreach ($trait['methods'] as $methodName => $method) {
- $this->traits[$traitName]['methods'][$methodName] = array(
- 'methodName' => $methodName,
- 'signature' => $method['signature'],
- 'startLine' => $method['startLine'],
- 'endLine' => $method['endLine'],
- 'executableLines' => 0,
- 'executedLines' => 0,
- 'ccn' => $method['ccn'],
- 'coverage' => 0,
- 'crap' => 0,
- 'link' => $link . $method['startLine']
- );
-
- $this->startLines[$method['startLine']] = &$this->traits[$traitName]['methods'][$methodName];
- $this->endLines[$method['endLine']] = &$this->traits[$traitName]['methods'][$methodName];
- }
- }
- }
-
- /**
- * @param PHP_Token_Stream $tokens
- */
- protected function processFunctions(PHP_Token_Stream $tokens)
- {
- $functions = $tokens->getFunctions();
- unset($tokens);
-
- $link = $this->getId() . '.html#';
-
- foreach ($functions as $functionName => $function) {
- $this->functions[$functionName] = array(
- 'functionName' => $functionName,
- 'signature' => $function['signature'],
- 'startLine' => $function['startLine'],
- 'executableLines' => 0,
- 'executedLines' => 0,
- 'ccn' => $function['ccn'],
- 'coverage' => 0,
- 'crap' => 0,
- 'link' => $link . $function['startLine']
- );
-
- $this->startLines[$function['startLine']] = &$this->functions[$functionName];
- $this->endLines[$function['endLine']] = &$this->functions[$functionName];
- }
- }
-
- /**
- * Calculates the Change Risk Anti-Patterns (CRAP) index for a unit of code
- * based on its cyclomatic complexity and percentage of code coverage.
- *
- * @param int $ccn
- * @param float $coverage
- * @return string
- * @since Method available since Release 1.2.0
- */
- protected function crap($ccn, $coverage)
- {
- if ($coverage == 0) {
- return (string) (pow($ccn, 2) + $ccn);
- }
-
- if ($coverage >= 95) {
- return (string) $ccn;
- }
-
- return sprintf(
- '%01.2F',
- pow($ccn, 2) * pow(1 - $coverage/100, 3) + $ccn
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Iterator.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Iterator.php
deleted file mode 100644
index f468b6b8..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/Iterator.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Recursive iterator for PHP_CodeCoverage_Report_Node object graphs.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Report_Node_Iterator implements RecursiveIterator
-{
- /**
- * @var int
- */
- protected $position;
-
- /**
- * @var PHP_CodeCoverage_Report_Node[]
- */
- protected $nodes;
-
- /**
- * Constructor.
- *
- * @param PHP_CodeCoverage_Report_Node_Directory $node
- */
- public function __construct(PHP_CodeCoverage_Report_Node_Directory $node)
- {
- $this->nodes = $node->getChildNodes();
- }
-
- /**
- * Rewinds the Iterator to the first element.
- */
- public function rewind()
- {
- $this->position = 0;
- }
-
- /**
- * Checks if there is a current element after calls to rewind() or next().
- *
- * @return bool
- */
- public function valid()
- {
- return $this->position < count($this->nodes);
- }
-
- /**
- * Returns the key of the current element.
- *
- * @return int
- */
- public function key()
- {
- return $this->position;
- }
-
- /**
- * Returns the current element.
- *
- * @return PHPUnit_Framework_Test
- */
- public function current()
- {
- return $this->valid() ? $this->nodes[$this->position] : null;
- }
-
- /**
- * Moves forward to next element.
- */
- public function next()
- {
- $this->position++;
- }
-
- /**
- * Returns the sub iterator for the current element.
- *
- * @return PHP_CodeCoverage_Report_Node_Iterator
- */
- public function getChildren()
- {
- return new self(
- $this->nodes[$this->position]
- );
- }
-
- /**
- * Checks whether the current element has children.
- *
- * @return bool
- */
- public function hasChildren()
- {
- return $this->nodes[$this->position] instanceof PHP_CodeCoverage_Report_Node_Directory;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/PHP.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/PHP.php
deleted file mode 100644
index f4e5a0f9..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/PHP.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Uses var_export() to write a PHP_CodeCoverage object to a file.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Report_PHP
-{
- /**
- * @param PHP_CodeCoverage $coverage
- * @param string $target
- * @return string
- */
- public function process(PHP_CodeCoverage $coverage, $target = null)
- {
- $filter = $coverage->filter();
-
- $output = sprintf(
- '<?php
-$coverage = new PHP_CodeCoverage;
-$coverage->setData(%s);
-$coverage->setTests(%s);
-
-$filter = $coverage->filter();
-$filter->setBlacklistedFiles(%s);
-$filter->setWhitelistedFiles(%s);
-
-return $coverage;',
- var_export($coverage->getData(true), 1),
- var_export($coverage->getTests(), 1),
- var_export($filter->getBlacklistedFiles(), 1),
- var_export($filter->getWhitelistedFiles(), 1)
- );
-
- if ($target !== null) {
- return file_put_contents($target, $output);
- } else {
- return $output;
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php
deleted file mode 100644
index 7dc25452..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php
+++ /dev/null
@@ -1,246 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Generates human readable output from an PHP_CodeCoverage object.
- *
- * The output gets put into a text file our written to the CLI.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Report_Text
-{
- protected $lowUpperBound;
- protected $highLowerBound;
- protected $showUncoveredFiles;
- protected $showOnlySummary;
-
- protected $colors = array(
- 'green' => "\x1b[30;42m",
- 'yellow' => "\x1b[30;43m",
- 'red' => "\x1b[37;41m",
- 'header' => "\x1b[1;37;40m",
- 'reset' => "\x1b[0m",
- 'eol' => "\x1b[2K",
- );
-
- public function __construct($lowUpperBound, $highLowerBound, $showUncoveredFiles, $showOnlySummary)
- {
- $this->lowUpperBound = $lowUpperBound;
- $this->highLowerBound = $highLowerBound;
- $this->showUncoveredFiles = $showUncoveredFiles;
- $this->showOnlySummary = $showOnlySummary;
- }
-
- /**
- * @param PHP_CodeCoverage $coverage
- * @param bool $showColors
- * @return string
- */
- public function process(PHP_CodeCoverage $coverage, $showColors = false)
- {
- $output = PHP_EOL . PHP_EOL;
- $report = $coverage->getReport();
- unset($coverage);
-
- $colors = array(
- 'header' => '',
- 'classes' => '',
- 'methods' => '',
- 'lines' => '',
- 'reset' => '',
- 'eol' => ''
- );
-
- if ($showColors) {
- $colors['classes'] = $this->getCoverageColor(
- $report->getNumTestedClassesAndTraits(),
- $report->getNumClassesAndTraits()
- );
- $colors['methods'] = $this->getCoverageColor(
- $report->getNumTestedMethods(),
- $report->getNumMethods()
- );
- $colors['lines'] = $this->getCoverageColor(
- $report->getNumExecutedLines(),
- $report->getNumExecutableLines()
- );
- $colors['reset'] = $this->colors['reset'];
- $colors['header'] = $this->colors['header'];
- $colors['eol'] = $this->colors['eol'];
- }
-
- $classes = sprintf(
- ' Classes: %6s (%d/%d)',
- PHP_CodeCoverage_Util::percent(
- $report->getNumTestedClassesAndTraits(),
- $report->getNumClassesAndTraits(),
- true
- ),
- $report->getNumTestedClassesAndTraits(),
- $report->getNumClassesAndTraits()
- );
-
- $methods = sprintf(
- ' Methods: %6s (%d/%d)',
- PHP_CodeCoverage_Util::percent(
- $report->getNumTestedMethods(),
- $report->getNumMethods(),
- true
- ),
- $report->getNumTestedMethods(),
- $report->getNumMethods()
- );
-
- $lines = sprintf(
- ' Lines: %6s (%d/%d)',
- PHP_CodeCoverage_Util::percent(
- $report->getNumExecutedLines(),
- $report->getNumExecutableLines(),
- true
- ),
- $report->getNumExecutedLines(),
- $report->getNumExecutableLines()
- );
-
- $padding = max(array_map('strlen', array($classes, $methods, $lines)));
-
- if ($this->showOnlySummary) {
- $title = 'Code Coverage Report Summary:';
- $padding = max($padding, strlen($title));
-
- $output .= $this->format($colors['header'], $padding, $title);
- } else {
- $date = date(' Y-m-d H:i:s', $_SERVER['REQUEST_TIME']);
- $title = 'Code Coverage Report:';
-
- $output .= $this->format($colors['header'], $padding, $title);
- $output .= $this->format($colors['header'], $padding, $date);
- $output .= $this->format($colors['header'], $padding, '');
- $output .= $this->format($colors['header'], $padding, ' Summary:');
- }
-
- $output .= $this->format($colors['classes'], $padding, $classes);
- $output .= $this->format($colors['methods'], $padding, $methods);
- $output .= $this->format($colors['lines'], $padding, $lines);
-
- if ($this->showOnlySummary) {
- return $output . PHP_EOL;
- }
-
- $classCoverage = array();
-
- foreach ($report as $item) {
- if (!$item instanceof PHP_CodeCoverage_Report_Node_File) {
- continue;
- }
-
- $classes = $item->getClassesAndTraits();
-
- foreach ($classes as $className => $class) {
- $classStatements = 0;
- $coveredClassStatements = 0;
- $coveredMethods = 0;
- $classMethods = 0;
-
- foreach ($class['methods'] as $method) {
- if ($method['executableLines'] == 0) {
- continue;
- }
-
- $classMethods++;
- $classStatements += $method['executableLines'];
- $coveredClassStatements += $method['executedLines'];
- if ($method['coverage'] == 100) {
- $coveredMethods++;
- }
- }
-
- if (!empty($class['package']['namespace'])) {
- $namespace = '\\' . $class['package']['namespace'] . '::';
- } elseif (!empty($class['package']['fullPackage'])) {
- $namespace = '@' . $class['package']['fullPackage'] . '::';
- } else {
- $namespace = '';
- }
-
- $classCoverage[$namespace . $className] = array(
- 'namespace' => $namespace,
- 'className ' => $className,
- 'methodsCovered' => $coveredMethods,
- 'methodCount' => $classMethods,
- 'statementsCovered' => $coveredClassStatements,
- 'statementCount' => $classStatements,
- );
- }
- }
-
- ksort($classCoverage);
-
- $methodColor = '';
- $linesColor = '';
- $resetColor = '';
-
- foreach ($classCoverage as $fullQualifiedPath => $classInfo) {
- if ($classInfo['statementsCovered'] != 0 ||
- $this->showUncoveredFiles) {
- if ($showColors) {
- $methodColor = $this->getCoverageColor($classInfo['methodsCovered'], $classInfo['methodCount']);
- $linesColor = $this->getCoverageColor($classInfo['statementsCovered'], $classInfo['statementCount']);
- $resetColor = $colors['reset'];
- }
-
- $output .= PHP_EOL . $fullQualifiedPath . PHP_EOL
- . ' ' . $methodColor . 'Methods: ' . $this->printCoverageCounts($classInfo['methodsCovered'], $classInfo['methodCount'], 2) . $resetColor . ' '
- . ' ' . $linesColor . 'Lines: ' . $this->printCoverageCounts($classInfo['statementsCovered'], $classInfo['statementCount'], 3) . $resetColor
- ;
- }
- }
-
- return $output . PHP_EOL;
- }
-
- protected function getCoverageColor($numberOfCoveredElements, $totalNumberOfElements)
- {
- $coverage = PHP_CodeCoverage_Util::percent(
- $numberOfCoveredElements,
- $totalNumberOfElements
- );
-
- if ($coverage >= $this->highLowerBound) {
- return $this->colors['green'];
- } elseif ($coverage > $this->lowUpperBound) {
- return $this->colors['yellow'];
- }
-
- return $this->colors['red'];
- }
-
- protected function printCoverageCounts($numberOfCoveredElements, $totalNumberOfElements, $presicion)
- {
- $format = '%' . $presicion . 's';
-
- return PHP_CodeCoverage_Util::percent(
- $numberOfCoveredElements,
- $totalNumberOfElements,
- true,
- true
- ) .
- ' (' . sprintf($format, $numberOfCoveredElements) . '/' .
- sprintf($format, $totalNumberOfElements) . ')';
- }
-
- private function format($color, $padding, $string)
- {
- $reset = $color ? $this->colors['reset'] : '';
-
- return $color . str_pad($string, $padding) . $reset . PHP_EOL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML.php
deleted file mode 100644
index 5177b2bd..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML.php
+++ /dev/null
@@ -1,234 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML
-{
- /**
- * @var string
- */
- private $target;
-
- /**
- * @var PHP_CodeCoverage_Report_XML_Project
- */
- private $project;
-
- public function process(PHP_CodeCoverage $coverage, $target)
- {
- if (substr($target, -1, 1) != DIRECTORY_SEPARATOR) {
- $target .= DIRECTORY_SEPARATOR;
- }
-
- $this->target = $target;
- $this->initTargetDirectory($target);
-
- $report = $coverage->getReport();
-
- $this->project = new PHP_CodeCoverage_Report_XML_Project(
- $coverage->getReport()->getName()
- );
-
- $this->processTests($coverage->getTests());
- $this->processDirectory($report, $this->project);
-
- $index = $this->project->asDom();
- $index->formatOutput = true;
- $index->preserveWhiteSpace = false;
- $index->save($target . '/index.xml');
- }
-
- private function initTargetDirectory($dir)
- {
- if (file_exists($dir)) {
- if (!is_dir($dir)) {
- throw new PHP_CodeCoverage_Exception(
- "'$dir' exists but is not a directory."
- );
- }
-
- if (!is_writable($dir)) {
- throw new PHP_CodeCoverage_Exception(
- "'$dir' exists but is not writable."
- );
- }
- } elseif (!@mkdir($dir, 0777, true)) {
- throw new PHP_CodeCoverage_Exception(
- "'$dir' could not be created."
- );
- }
- }
-
- private function processDirectory(PHP_CodeCoverage_Report_Node_Directory $directory, PHP_CodeCoverage_Report_XML_Node $context)
- {
- $dirObject = $context->addDirectory($directory->getName());
-
- $this->setTotals($directory, $dirObject->getTotals());
-
- foreach ($directory as $node) {
- if ($node instanceof PHP_CodeCoverage_Report_Node_Directory) {
- $this->processDirectory($node, $dirObject);
- continue;
- }
-
- if ($node instanceof PHP_CodeCoverage_Report_Node_File) {
- $this->processFile($node, $dirObject);
- continue;
- }
-
- throw new PHP_CodeCoverage_Exception(
- 'Unknown node type for XML report'
- );
- }
- }
-
- private function processFile(PHP_CodeCoverage_Report_Node_File $file, PHP_CodeCoverage_Report_XML_Directory $context)
- {
- $fileObject = $context->addFile(
- $file->getName(),
- $file->getId() . '.xml'
- );
-
- $this->setTotals($file, $fileObject->getTotals());
-
- $fileReport = new PHP_CodeCoverage_Report_XML_File_Report(
- $file->getName()
- );
-
- $this->setTotals($file, $fileReport->getTotals());
-
- foreach ($file->getClassesAndTraits() as $unit) {
- $this->processUnit($unit, $fileReport);
- }
-
- foreach ($file->getFunctions() as $function) {
- $this->processFunction($function, $fileReport);
- }
-
- foreach ($file->getCoverageData() as $line => $tests) {
- if (!is_array($tests) || count($tests) == 0) {
- continue;
- }
-
- $coverage = $fileReport->getLineCoverage($line);
-
- foreach ($tests as $test) {
- $coverage->addTest($test);
- }
-
- $coverage->finalize();
- }
-
- $this->initTargetDirectory(
- $this->target . dirname($file->getId()) . '/'
- );
-
- $fileDom = $fileReport->asDom();
- $fileDom->formatOutput = true;
- $fileDom->preserveWhiteSpace = false;
- $fileDom->save($this->target . $file->getId() . '.xml');
- }
-
- private function processUnit($unit, PHP_CodeCoverage_Report_XML_File_Report $report)
- {
- if (isset($unit['className'])) {
- $unitObject = $report->getClassObject($unit['className']);
- } else {
- $unitObject = $report->getTraitObject($unit['traitName']);
- }
-
- $unitObject->setLines(
- $unit['startLine'],
- $unit['executableLines'],
- $unit['executedLines']
- );
-
- $unitObject->setCrap($unit['crap']);
-
- $unitObject->setPackage(
- $unit['package']['fullPackage'],
- $unit['package']['package'],
- $unit['package']['subpackage'],
- $unit['package']['category']
- );
-
- $unitObject->setNamespace($unit['package']['namespace']);
-
- foreach ($unit['methods'] as $method) {
- $methodObject = $unitObject->addMethod($method['methodName']);
- $methodObject->setSignature($method['signature']);
- $methodObject->setLines($method['startLine'], $method['endLine']);
- $methodObject->setCrap($method['crap']);
- $methodObject->setTotals(
- $method['executableLines'],
- $method['executedLines'],
- $method['coverage']
- );
- }
- }
-
- private function processFunction($function, PHP_CodeCoverage_Report_XML_File_Report $report)
- {
- $functionObject = $report->getFunctionObject($function['functionName']);
-
- $functionObject->setSignature($function['signature']);
- $functionObject->setLines($function['startLine']);
- $functionObject->setCrap($function['crap']);
- $functionObject->setTotals($function['executableLines'], $function['executedLines'], $function['coverage']);
- }
-
- private function processTests(array $tests)
- {
- $testsObject = $this->project->getTests();
-
- foreach ($tests as $test => $result) {
- if ($test == 'UNCOVERED_FILES_FROM_WHITELIST') {
- continue;
- }
-
- $testsObject->addTest($test, $result);
- }
- }
-
- private function setTotals(PHP_CodeCoverage_Report_Node $node, PHP_CodeCoverage_Report_XML_Totals $totals)
- {
- $loc = $node->getLinesOfCode();
-
- $totals->setNumLines(
- $loc['loc'],
- $loc['cloc'],
- $loc['ncloc'],
- $node->getNumExecutableLines(),
- $node->getNumExecutedLines()
- );
-
- $totals->setNumClasses(
- $node->getNumClasses(),
- $node->getNumTestedClasses()
- );
-
- $totals->setNumTraits(
- $node->getNumTraits(),
- $node->getNumTestedTraits()
- );
-
- $totals->setNumMethods(
- $node->getNumMethods(),
- $node->getNumTestedMethods()
- );
-
- $totals->setNumFunctions(
- $node->getNumFunctions(),
- $node->getNumTestedFunctions()
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Directory.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Directory.php
deleted file mode 100644
index 8e292b50..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Directory.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML_Directory extends PHP_CodeCoverage_Report_XML_Node
-{
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File.php
deleted file mode 100644
index 3c72bab2..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML_File
-{
- /**
- * @var DOMDocument
- */
- protected $dom;
-
- /**
- * @var DOMElement
- */
- protected $contextNode;
-
- public function __construct(DOMElement $context)
- {
- $this->dom = $context->ownerDocument;
- $this->contextNode = $context;
- }
-
- public function getTotals()
- {
- $totalsContainer = $this->contextNode->firstChild;
-
- if (!$totalsContainer) {
- $totalsContainer = $this->contextNode->appendChild(
- $this->dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'totals'
- )
- );
- }
-
- return new PHP_CodeCoverage_Report_XML_Totals($totalsContainer);
- }
-
- public function getLineCoverage($line)
- {
- $coverage = $this->contextNode->getElementsByTagNameNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'coverage'
- )->item(0);
-
- if (!$coverage) {
- $coverage = $this->contextNode->appendChild(
- $this->dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'coverage'
- )
- );
- }
-
- $lineNode = $coverage->appendChild(
- $this->dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'line'
- )
- );
-
- return new PHP_CodeCoverage_Report_XML_File_Coverage($lineNode, $line);
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Coverage.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Coverage.php
deleted file mode 100644
index 29a4e2ba..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Coverage.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML_File_Coverage
-{
- /**
- * @var XMLWriter
- */
- private $writer;
-
- /**
- * @var DOMElement
- */
- private $contextNode;
-
- /**
- * @var bool
- */
- private $finalized = false;
-
- public function __construct(DOMElement $context, $line)
- {
- $this->contextNode = $context;
-
- $this->writer = new XMLWriter();
- $this->writer->openMemory();
- $this->writer->startElementNs(null, $context->nodeName, 'http://schema.phpunit.de/coverage/1.0');
- $this->writer->writeAttribute('nr', $line);
- }
-
- public function addTest($test)
- {
- if ($this->finalized) {
- throw new PHP_CodeCoverage_Exception('Coverage Report already finalized');
- }
-
- $this->writer->startElement('covered');
- $this->writer->writeAttribute('by', $test);
- $this->writer->endElement();
- }
-
- public function finalize()
- {
- $this->writer->endElement();
-
- $fragment = $this->contextNode->ownerDocument->createDocumentFragment();
- $fragment->appendXML($this->writer->outputMemory());
-
- $this->contextNode->parentNode->replaceChild(
- $fragment,
- $this->contextNode
- );
-
- $this->finalized = true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Method.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Method.php
deleted file mode 100644
index 917628fd..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Method.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML_File_Method
-{
- /**
- * @var DOMElement
- */
- private $contextNode;
-
- public function __construct(DOMElement $context, $name)
- {
- $this->contextNode = $context;
-
- $this->setName($name);
- }
-
- private function setName($name)
- {
- $this->contextNode->setAttribute('name', $name);
- }
-
- public function setSignature($signature)
- {
- $this->contextNode->setAttribute('signature', $signature);
- }
-
- public function setLines($start, $end = null)
- {
- $this->contextNode->setAttribute('start', $start);
-
- if ($end !== null) {
- $this->contextNode->setAttribute('end', $end);
- }
- }
-
- public function setTotals($executable, $executed, $coverage)
- {
- $this->contextNode->setAttribute('executable', $executable);
- $this->contextNode->setAttribute('executed', $executed);
- $this->contextNode->setAttribute('coverage', $coverage);
- }
-
- public function setCrap($crap)
- {
- $this->contextNode->setAttribute('crap', $crap);
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Report.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Report.php
deleted file mode 100644
index a6fe7ecf..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Report.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML_File_Report extends PHP_CodeCoverage_Report_XML_File
-{
- public function __construct($name)
- {
- $this->dom = new DOMDocument;
- $this->dom->loadXML('<?xml version="1.0" ?><phpunit xmlns="http://schema.phpunit.de/coverage/1.0"><file /></phpunit>');
-
- $this->contextNode = $this->dom->getElementsByTagNameNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'file'
- )->item(0);
-
- $this->setName($name);
- }
-
- private function setName($name)
- {
- $this->contextNode->setAttribute('name', $name);
- }
-
- public function asDom()
- {
- return $this->dom;
- }
-
- public function getFunctionObject($name)
- {
- $node = $this->contextNode->appendChild(
- $this->dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'function'
- )
- );
-
- return new PHP_CodeCoverage_Report_XML_File_Method($node, $name);
- }
-
- public function getClassObject($name)
- {
- return $this->getUnitObject('class', $name);
- }
-
- public function getTraitObject($name)
- {
- return $this->getUnitObject('trait', $name);
- }
-
- private function getUnitObject($tagName, $name)
- {
- $node = $this->contextNode->appendChild(
- $this->dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- $tagName
- )
- );
-
- return new PHP_CodeCoverage_Report_XML_File_Unit($node, $name);
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Unit.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Unit.php
deleted file mode 100644
index 769d9dab..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Unit.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML_File_Unit
-{
- /**
- * @var DOMElement
- */
- private $contextNode;
-
- public function __construct(DOMElement $context, $name)
- {
- $this->contextNode = $context;
-
- $this->setName($name);
- }
-
- private function setName($name)
- {
- $this->contextNode->setAttribute('name', $name);
- }
-
- public function setLines($start, $executable, $executed)
- {
- $this->contextNode->setAttribute('start', $start);
- $this->contextNode->setAttribute('executable', $executable);
- $this->contextNode->setAttribute('executed', $executed);
- }
-
- public function setCrap($crap)
- {
- $this->contextNode->setAttribute('crap', $crap);
- }
-
- public function setPackage($full, $package, $sub, $category)
- {
- $node = $this->contextNode->getElementsByTagNameNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'package'
- )->item(0);
-
- if (!$node) {
- $node = $this->contextNode->appendChild(
- $this->contextNode->ownerDocument->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'package'
- )
- );
- }
-
- $node->setAttribute('full', $full);
- $node->setAttribute('name', $package);
- $node->setAttribute('sub', $sub);
- $node->setAttribute('category', $category);
- }
-
- public function setNamespace($namespace)
- {
- $node = $this->contextNode->getElementsByTagNameNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'namespace'
- )->item(0);
-
- if (!$node) {
- $node = $this->contextNode->appendChild(
- $this->contextNode->ownerDocument->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'namespace'
- )
- );
- }
-
- $node->setAttribute('name', $namespace);
- }
-
- public function addMethod($name)
- {
- $node = $this->contextNode->appendChild(
- $this->contextNode->ownerDocument->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'method'
- )
- );
-
- return new PHP_CodeCoverage_Report_XML_File_Method($node, $name);
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Node.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Node.php
deleted file mode 100644
index 43dda57c..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Node.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML_Node
-{
- /**
- * @var DOMDocument
- */
- private $dom;
-
- /**
- * @var DOMElement
- */
- private $contextNode;
-
- public function __construct(DOMElement $context)
- {
- $this->setContextNode($context);
- }
-
- protected function setContextNode(DOMElement $context)
- {
- $this->dom = $context->ownerDocument;
- $this->contextNode = $context;
- }
-
- public function getDom()
- {
- return $this->dom;
- }
-
- protected function getContextNode()
- {
- return $this->contextNode;
- }
-
- public function getTotals()
- {
- $totalsContainer = $this->getContextNode()->firstChild;
-
- if (!$totalsContainer) {
- $totalsContainer = $this->getContextNode()->appendChild(
- $this->dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'totals'
- )
- );
- }
-
- return new PHP_CodeCoverage_Report_XML_Totals($totalsContainer);
- }
-
- public function addDirectory($name)
- {
- $dirNode = $this->getDom()->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'directory'
- );
-
- $dirNode->setAttribute('name', $name);
- $this->getContextNode()->appendChild($dirNode);
-
- return new PHP_CodeCoverage_Report_XML_Directory($dirNode);
- }
-
- public function addFile($name, $href)
- {
- $fileNode = $this->getDom()->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'file'
- );
-
- $fileNode->setAttribute('name', $name);
- $fileNode->setAttribute('href', $href);
- $this->getContextNode()->appendChild($fileNode);
-
- return new PHP_CodeCoverage_Report_XML_File($fileNode);
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Project.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Project.php
deleted file mode 100644
index b8dae04d..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Project.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML_Project extends PHP_CodeCoverage_Report_XML_Node
-{
- public function __construct($name)
- {
- $this->init();
- $this->setProjectName($name);
- }
-
- private function init()
- {
- $dom = new DOMDocument;
- $dom->loadXML('<?xml version="1.0" ?><phpunit xmlns="http://schema.phpunit.de/coverage/1.0"><project/></phpunit>');
-
- $this->setContextNode(
- $dom->getElementsByTagNameNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'project'
- )->item(0)
- );
- }
-
- private function setProjectName($name)
- {
- $this->getContextNode()->setAttribute('name', $name);
- }
-
- public function getTests()
- {
- $testsNode = $this->getContextNode()->getElementsByTagNameNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'tests'
- )->item(0);
-
- if (!$testsNode) {
- $testsNode = $this->getContextNode()->appendChild(
- $this->getDom()->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'tests'
- )
- );
- }
-
- return new PHP_CodeCoverage_Report_XML_Tests($testsNode);
- }
-
- public function asDom()
- {
- return $this->getDom();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Tests.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Tests.php
deleted file mode 100644
index 46214679..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Tests.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML_Tests
-{
- private $contextNode;
-
- private $codeMap = array(
- 0 => 'PASSED', // PHPUnit_Runner_BaseTestRunner::STATUS_PASSED
- 1 => 'SKIPPED', // PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED
- 2 => 'INCOMPLETE', // PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE
- 3 => 'FAILURE', // PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE
- 4 => 'ERROR', // PHPUnit_Runner_BaseTestRunner::STATUS_ERROR
- 5 => 'RISKY' // PHPUnit_Runner_BaseTestRunner::STATUS_RISKY
- );
-
- public function __construct(DOMElement $context)
- {
- $this->contextNode = $context;
- }
-
- public function addTest($test, array $result)
- {
- $node = $this->contextNode->appendChild(
- $this->contextNode->ownerDocument->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'test'
- )
- );
- $node->setAttribute('name', $test);
- $node->setAttribute('size', $result['size']);
- $node->setAttribute('result', (int) $result['status']);
- $node->setAttribute('status', $this->codeMap[(int) $result['status']]);
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Totals.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Totals.php
deleted file mode 100644
index d6073d95..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Totals.php
+++ /dev/null
@@ -1,140 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class PHP_CodeCoverage_Report_XML_Totals
-{
- /**
- * @var DOMNode
- */
- private $container;
-
- /**
- * @var DOMElement
- */
- private $linesNode;
-
- /**
- * @var DOMElement
- */
- private $methodsNode;
-
- /**
- * @var DOMElement
- */
- private $functionsNode;
-
- /**
- * @var DOMElement
- */
- private $classesNode;
-
- /**
- * @var DOMElement
- */
- private $traitsNode;
-
- public function __construct(DOMElement $container)
- {
- $this->container = $container;
- $dom = $container->ownerDocument;
-
- $this->linesNode = $dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'lines'
- );
-
- $this->methodsNode = $dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'methods'
- );
-
- $this->functionsNode = $dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'functions'
- );
-
- $this->classesNode = $dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'classes'
- );
-
- $this->traitsNode = $dom->createElementNS(
- 'http://schema.phpunit.de/coverage/1.0',
- 'traits'
- );
-
- $container->appendChild($this->linesNode);
- $container->appendChild($this->methodsNode);
- $container->appendChild($this->functionsNode);
- $container->appendChild($this->classesNode);
- $container->appendChild($this->traitsNode);
- }
-
- public function getContainer()
- {
- return $this->container;
- }
-
- public function setNumLines($loc, $cloc, $ncloc, $executable, $executed)
- {
- $this->linesNode->setAttribute('total', $loc);
- $this->linesNode->setAttribute('comments', $cloc);
- $this->linesNode->setAttribute('code', $ncloc);
- $this->linesNode->setAttribute('executable', $executable);
- $this->linesNode->setAttribute('executed', $executed);
- $this->linesNode->setAttribute(
- 'percent',
- PHP_CodeCoverage_Util::percent($executed, $executable, true)
- );
- }
-
- public function setNumClasses($count, $tested)
- {
- $this->classesNode->setAttribute('count', $count);
- $this->classesNode->setAttribute('tested', $tested);
- $this->classesNode->setAttribute(
- 'percent',
- PHP_CodeCoverage_Util::percent($tested, $count, true)
- );
- }
-
- public function setNumTraits($count, $tested)
- {
- $this->traitsNode->setAttribute('count', $count);
- $this->traitsNode->setAttribute('tested', $tested);
- $this->traitsNode->setAttribute(
- 'percent',
- PHP_CodeCoverage_Util::percent($tested, $count, true)
- );
- }
-
- public function setNumMethods($count, $tested)
- {
- $this->methodsNode->setAttribute('count', $count);
- $this->methodsNode->setAttribute('tested', $tested);
- $this->methodsNode->setAttribute(
- 'percent',
- PHP_CodeCoverage_Util::percent($tested, $count, true)
- );
- }
-
- public function setNumFunctions($count, $tested)
- {
- $this->functionsNode->setAttribute('count', $count);
- $this->functionsNode->setAttribute('tested', $tested);
- $this->functionsNode->setAttribute(
- 'percent',
- PHP_CodeCoverage_Util::percent($tested, $count, true)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Util.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Util.php
deleted file mode 100644
index eadb3c92..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Util.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Utility methods.
- *
- * @since Class available since Release 1.0.0
- */
-class PHP_CodeCoverage_Util
-{
- /**
- * @param float $a
- * @param float $b
- * @return float ($a / $b) * 100
- */
- public static function percent($a, $b, $asString = false, $fixedWidth = false)
- {
- if ($asString && $b == 0) {
- return '';
- }
-
- if ($b > 0) {
- $percent = ($a / $b) * 100;
- } else {
- $percent = 100;
- }
-
- if ($asString) {
- if ($fixedWidth) {
- return sprintf('%6.2F%%', $percent);
- }
-
- return sprintf('%01.2F%%', $percent);
- } else {
- return $percent;
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Util/InvalidArgumentHelper.php b/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Util/InvalidArgumentHelper.php
deleted file mode 100644
index d66e4992..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/src/CodeCoverage/Util/InvalidArgumentHelper.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Factory for PHP_CodeCoverage_Exception objects that are used to describe
- * invalid arguments passed to a function or method.
- *
- * @since Class available since Release 1.2.0
- */
-class PHP_CodeCoverage_Util_InvalidArgumentHelper
-{
- /**
- * @param int $argument
- * @param string $type
- * @param mixed $value
- */
- public static function factory($argument, $type, $value = null)
- {
- $stack = debug_backtrace(false);
-
- return new PHP_CodeCoverage_Exception(
- sprintf(
- 'Argument #%d%sof %s::%s() must be a %s',
- $argument,
- $value !== null ? ' (' . gettype($value) . '#' . $value . ')' : ' (No Value) ',
- $stack[1]['class'],
- $stack[1]['function'],
- $type
- )
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/FilterTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/FilterTest.php
deleted file mode 100644
index 66f8bb42..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/FilterTest.php
+++ /dev/null
@@ -1,281 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-if (!defined('TEST_FILES_PATH')) {
- define(
- 'TEST_FILES_PATH',
- dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR .
- '_files' . DIRECTORY_SEPARATOR
- );
-}
-
-/**
- * Tests for the PHP_CodeCoverage_Filter class.
- *
- * @since Class available since Release 1.0.0
- */
-class PHP_CodeCoverage_FilterTest extends PHPUnit_Framework_TestCase
-{
- protected $filter;
- protected $files;
-
- protected function setUp()
- {
- $this->filter = unserialize('O:23:"PHP_CodeCoverage_Filter":0:{}');
-
- $this->files = array(
- TEST_FILES_PATH . 'BankAccount.php',
- TEST_FILES_PATH . 'BankAccountTest.php',
- TEST_FILES_PATH . 'CoverageClassExtendedTest.php',
- TEST_FILES_PATH . 'CoverageClassTest.php',
- TEST_FILES_PATH . 'CoverageFunctionParenthesesTest.php',
- TEST_FILES_PATH . 'CoverageFunctionParenthesesWhitespaceTest.php',
- TEST_FILES_PATH . 'CoverageFunctionTest.php',
- TEST_FILES_PATH . 'CoverageMethodOneLineAnnotationTest.php',
- TEST_FILES_PATH . 'CoverageMethodParenthesesTest.php',
- TEST_FILES_PATH . 'CoverageMethodParenthesesWhitespaceTest.php',
- TEST_FILES_PATH . 'CoverageMethodTest.php',
- TEST_FILES_PATH . 'CoverageNoneTest.php',
- TEST_FILES_PATH . 'CoverageNotPrivateTest.php',
- TEST_FILES_PATH . 'CoverageNotProtectedTest.php',
- TEST_FILES_PATH . 'CoverageNotPublicTest.php',
- TEST_FILES_PATH . 'CoverageNothingTest.php',
- TEST_FILES_PATH . 'CoveragePrivateTest.php',
- TEST_FILES_PATH . 'CoverageProtectedTest.php',
- TEST_FILES_PATH . 'CoveragePublicTest.php',
- TEST_FILES_PATH . 'CoverageTwoDefaultClassAnnotations.php',
- TEST_FILES_PATH . 'CoveredClass.php',
- TEST_FILES_PATH . 'CoveredFunction.php',
- TEST_FILES_PATH . 'NamespaceCoverageClassExtendedTest.php',
- TEST_FILES_PATH . 'NamespaceCoverageClassTest.php',
- TEST_FILES_PATH . 'NamespaceCoverageCoversClassPublicTest.php',
- TEST_FILES_PATH . 'NamespaceCoverageCoversClassTest.php',
- TEST_FILES_PATH . 'NamespaceCoverageMethodTest.php',
- TEST_FILES_PATH . 'NamespaceCoverageNotPrivateTest.php',
- TEST_FILES_PATH . 'NamespaceCoverageNotProtectedTest.php',
- TEST_FILES_PATH . 'NamespaceCoverageNotPublicTest.php',
- TEST_FILES_PATH . 'NamespaceCoveragePrivateTest.php',
- TEST_FILES_PATH . 'NamespaceCoverageProtectedTest.php',
- TEST_FILES_PATH . 'NamespaceCoveragePublicTest.php',
- TEST_FILES_PATH . 'NamespaceCoveredClass.php',
- TEST_FILES_PATH . 'NotExistingCoveredElementTest.php',
- TEST_FILES_PATH . 'source_with_class_and_anonymous_function.php',
- TEST_FILES_PATH . 'source_with_ignore.php',
- TEST_FILES_PATH . 'source_with_namespace.php',
- TEST_FILES_PATH . 'source_with_oneline_annotations.php',
- TEST_FILES_PATH . 'source_without_ignore.php',
- TEST_FILES_PATH . 'source_without_namespace.php'
- );
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::addFileToBlacklist
- * @covers PHP_CodeCoverage_Filter::getBlacklist
- */
- public function testAddingAFileToTheBlacklistWorks()
- {
- $this->filter->addFileToBlacklist($this->files[0]);
-
- $this->assertEquals(
- array($this->files[0]),
- $this->filter->getBlacklist()
- );
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::removeFileFromBlacklist
- * @covers PHP_CodeCoverage_Filter::getBlacklist
- */
- public function testRemovingAFileFromTheBlacklistWorks()
- {
- $this->filter->addFileToBlacklist($this->files[0]);
- $this->filter->removeFileFromBlacklist($this->files[0]);
-
- $this->assertEquals(array(), $this->filter->getBlacklist());
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::addDirectoryToBlacklist
- * @covers PHP_CodeCoverage_Filter::getBlacklist
- * @depends testAddingAFileToTheBlacklistWorks
- */
- public function testAddingADirectoryToTheBlacklistWorks()
- {
- $this->filter->addDirectoryToBlacklist(TEST_FILES_PATH);
-
- $blacklist = $this->filter->getBlacklist();
- sort($blacklist);
-
- $this->assertEquals($this->files, $blacklist);
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::addFilesToBlacklist
- * @covers PHP_CodeCoverage_Filter::getBlacklist
- */
- public function testAddingFilesToTheBlacklistWorks()
- {
- $facade = new File_Iterator_Facade;
- $files = $facade->getFilesAsArray(
- TEST_FILES_PATH,
- $suffixes = '.php'
- );
-
- $this->filter->addFilesToBlacklist($files);
-
- $blacklist = $this->filter->getBlacklist();
- sort($blacklist);
-
- $this->assertEquals($this->files, $blacklist);
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::removeDirectoryFromBlacklist
- * @covers PHP_CodeCoverage_Filter::getBlacklist
- * @depends testAddingADirectoryToTheBlacklistWorks
- */
- public function testRemovingADirectoryFromTheBlacklistWorks()
- {
- $this->filter->addDirectoryToBlacklist(TEST_FILES_PATH);
- $this->filter->removeDirectoryFromBlacklist(TEST_FILES_PATH);
-
- $this->assertEquals(array(), $this->filter->getBlacklist());
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::addFileToWhitelist
- * @covers PHP_CodeCoverage_Filter::getWhitelist
- */
- public function testAddingAFileToTheWhitelistWorks()
- {
- $this->filter->addFileToWhitelist($this->files[0]);
-
- $this->assertEquals(
- array($this->files[0]),
- $this->filter->getWhitelist()
- );
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::removeFileFromWhitelist
- * @covers PHP_CodeCoverage_Filter::getWhitelist
- */
- public function testRemovingAFileFromTheWhitelistWorks()
- {
- $this->filter->addFileToWhitelist($this->files[0]);
- $this->filter->removeFileFromWhitelist($this->files[0]);
-
- $this->assertEquals(array(), $this->filter->getWhitelist());
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::addDirectoryToWhitelist
- * @covers PHP_CodeCoverage_Filter::getWhitelist
- * @depends testAddingAFileToTheWhitelistWorks
- */
- public function testAddingADirectoryToTheWhitelistWorks()
- {
- $this->filter->addDirectoryToWhitelist(TEST_FILES_PATH);
-
- $whitelist = $this->filter->getWhitelist();
- sort($whitelist);
-
- $this->assertEquals($this->files, $whitelist);
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::addFilesToWhitelist
- * @covers PHP_CodeCoverage_Filter::getBlacklist
- */
- public function testAddingFilesToTheWhitelistWorks()
- {
- $facade = new File_Iterator_Facade;
- $files = $facade->getFilesAsArray(
- TEST_FILES_PATH,
- $suffixes = '.php'
- );
-
- $this->filter->addFilesToWhitelist($files);
-
- $whitelist = $this->filter->getWhitelist();
- sort($whitelist);
-
- $this->assertEquals($this->files, $whitelist);
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::removeDirectoryFromWhitelist
- * @covers PHP_CodeCoverage_Filter::getWhitelist
- * @depends testAddingADirectoryToTheWhitelistWorks
- */
- public function testRemovingADirectoryFromTheWhitelistWorks()
- {
- $this->filter->addDirectoryToWhitelist(TEST_FILES_PATH);
- $this->filter->removeDirectoryFromWhitelist(TEST_FILES_PATH);
-
- $this->assertEquals(array(), $this->filter->getWhitelist());
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::isFile
- */
- public function testIsFile()
- {
- $this->assertFalse($this->filter->isFile('vfs://root/a/path'));
- $this->assertFalse($this->filter->isFile('xdebug://debug-eval'));
- $this->assertFalse($this->filter->isFile('eval()\'d code'));
- $this->assertFalse($this->filter->isFile('runtime-created function'));
- $this->assertFalse($this->filter->isFile('assert code'));
- $this->assertFalse($this->filter->isFile('regexp code'));
- $this->assertTrue($this->filter->isFile(__FILE__));
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::isFiltered
- */
- public function testBlacklistedFileIsFiltered()
- {
- $this->filter->addFileToBlacklist($this->files[0]);
- $this->assertTrue($this->filter->isFiltered($this->files[0]));
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::isFiltered
- */
- public function testWhitelistedFileIsNotFiltered()
- {
- $this->filter->addFileToWhitelist($this->files[0]);
- $this->assertFalse($this->filter->isFiltered($this->files[0]));
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::isFiltered
- */
- public function testNotWhitelistedFileIsFiltered()
- {
- $this->filter->addFileToWhitelist($this->files[0]);
- $this->assertTrue($this->filter->isFiltered($this->files[1]));
- }
-
- /**
- * @covers PHP_CodeCoverage_Filter::isFiltered
- * @covers PHP_CodeCoverage_Filter::isFile
- */
- public function testNonFilesAreFiltered()
- {
- $this->assertTrue($this->filter->isFiltered('vfs://root/a/path'));
- $this->assertTrue($this->filter->isFiltered('xdebug://debug-eval'));
- $this->assertTrue($this->filter->isFiltered('eval()\'d code'));
- $this->assertTrue($this->filter->isFiltered('runtime-created function'));
- $this->assertTrue($this->filter->isFiltered('assert code'));
- $this->assertTrue($this->filter->isFiltered('regexp code'));
- $this->assertFalse($this->filter->isFiltered(__FILE__));
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/Report/CloverTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/Report/CloverTest.php
deleted file mode 100644
index 8d860bd2..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/Report/CloverTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-if (!defined('TEST_FILES_PATH')) {
- define(
- 'TEST_FILES_PATH',
- dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR .
- '_files' . DIRECTORY_SEPARATOR
- );
-}
-
-require_once TEST_FILES_PATH . '../TestCase.php';
-
-/**
- * Tests for the PHP_CodeCoverage_Report_Clover class.
- *
- * @since Class available since Release 1.0.0
- */
-class PHP_CodeCoverage_Report_CloverTest extends PHP_CodeCoverage_TestCase
-{
- /**
- * @covers PHP_CodeCoverage_Report_Clover
- */
- public function testCloverForBankAccountTest()
- {
- $clover = new PHP_CodeCoverage_Report_Clover;
-
- $this->assertStringMatchesFormatFile(
- TEST_FILES_PATH . 'BankAccount-clover.xml',
- $clover->process($this->getCoverageForBankAccount(), null, 'BankAccount')
- );
- }
-
- /**
- * @covers PHP_CodeCoverage_Report_Clover
- */
- public function testCloverForFileWithIgnoredLines()
- {
- $clover = new PHP_CodeCoverage_Report_Clover;
-
- $this->assertStringMatchesFormatFile(
- TEST_FILES_PATH . 'ignored-lines-clover.xml',
- $clover->process($this->getCoverageForFileWithIgnoredLines())
- );
- }
-
- /**
- * @covers PHP_CodeCoverage_Report_Clover
- */
- public function testCloverForClassWithAnonymousFunction()
- {
- $clover = new PHP_CodeCoverage_Report_Clover;
-
- $this->assertStringMatchesFormatFile(
- TEST_FILES_PATH . 'class-with-anonymous-function-clover.xml',
- $clover->process($this->getCoverageForClassWithAnonymousFunction())
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/Report/FactoryTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/Report/FactoryTest.php
deleted file mode 100644
index 84f14aea..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/Report/FactoryTest.php
+++ /dev/null
@@ -1,222 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-if (!defined('TEST_FILES_PATH')) {
- define(
- 'TEST_FILES_PATH',
- dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR .
- '_files' . DIRECTORY_SEPARATOR
- );
-}
-
-require_once TEST_FILES_PATH . '../TestCase.php';
-
-/**
- * Tests for the PHP_CodeCoverage_Report_Factory class.
- *
- * @since Class available since Release 1.1.0
- */
-class PHP_CodeCoverage_Report_FactoryTest extends PHP_CodeCoverage_TestCase
-{
- protected $factory;
-
- protected function setUp()
- {
- $this->factory = new PHP_CodeCoverage_Report_Factory;
- }
-
- public function testSomething()
- {
- $root = $this->getCoverageForBankAccount()->getReport();
-
- $expectedPath = rtrim(TEST_FILES_PATH, DIRECTORY_SEPARATOR);
- $this->assertEquals($expectedPath, $root->getName());
- $this->assertEquals($expectedPath, $root->getPath());
- $this->assertEquals(10, $root->getNumExecutableLines());
- $this->assertEquals(5, $root->getNumExecutedLines());
- $this->assertEquals(1, $root->getNumClasses());
- $this->assertEquals(0, $root->getNumTestedClasses());
- $this->assertEquals(4, $root->getNumMethods());
- $this->assertEquals(3, $root->getNumTestedMethods());
- $this->assertEquals('0.00%', $root->getTestedClassesPercent());
- $this->assertEquals('75.00%', $root->getTestedMethodsPercent());
- $this->assertEquals('50.00%', $root->getLineExecutedPercent());
- $this->assertEquals(0, $root->getNumFunctions());
- $this->assertEquals(0, $root->getNumTestedFunctions());
- $this->assertNull($root->getParent());
- $this->assertEquals(array(), $root->getDirectories());
- #$this->assertEquals(array(), $root->getFiles());
- #$this->assertEquals(array(), $root->getChildNodes());
-
- $this->assertEquals(
- array(
- 'BankAccount' => array(
- 'methods' => array(
- 'getBalance' => array(
- 'signature' => 'getBalance()',
- 'startLine' => 6,
- 'endLine' => 9,
- 'executableLines' => 1,
- 'executedLines' => 1,
- 'ccn' => 1,
- 'coverage' => 100,
- 'crap' => '1',
- 'link' => 'BankAccount.php.html#6',
- 'methodName' => 'getBalance'
- ),
- 'setBalance' => array(
- 'signature' => 'setBalance($balance)',
- 'startLine' => 11,
- 'endLine' => 18,
- 'executableLines' => 5,
- 'executedLines' => 0,
- 'ccn' => 2,
- 'coverage' => 0,
- 'crap' => 6,
- 'link' => 'BankAccount.php.html#11',
- 'methodName' => 'setBalance'
- ),
- 'depositMoney' => array(
- 'signature' => 'depositMoney($balance)',
- 'startLine' => 20,
- 'endLine' => 25,
- 'executableLines' => 2,
- 'executedLines' => 2,
- 'ccn' => 1,
- 'coverage' => 100,
- 'crap' => '1',
- 'link' => 'BankAccount.php.html#20',
- 'methodName' => 'depositMoney'
- ),
- 'withdrawMoney' => array(
- 'signature' => 'withdrawMoney($balance)',
- 'startLine' => 27,
- 'endLine' => 32,
- 'executableLines' => 2,
- 'executedLines' => 2,
- 'ccn' => 1,
- 'coverage' => 100,
- 'crap' => '1',
- 'link' => 'BankAccount.php.html#27',
- 'methodName' => 'withdrawMoney'
- ),
- ),
- 'startLine' => 2,
- 'executableLines' => 10,
- 'executedLines' => 5,
- 'ccn' => 5,
- 'coverage' => 50,
- 'crap' => '8.12',
- 'package' => array(
- 'namespace' => '',
- 'fullPackage' => '',
- 'category' => '',
- 'package' => '',
- 'subpackage' => ''
- ),
- 'link' => 'BankAccount.php.html#2',
- 'className' => 'BankAccount'
- )
- ),
- $root->getClasses()
- );
-
- $this->assertEquals(array(), $root->getFunctions());
- }
-
- /**
- * @covers PHP_CodeCoverage_Report_Factory::buildDirectoryStructure
- */
- public function testBuildDirectoryStructure()
- {
- $method = new ReflectionMethod(
- 'PHP_CodeCoverage_Report_Factory',
- 'buildDirectoryStructure'
- );
-
- $method->setAccessible(true);
-
- $this->assertEquals(
- array(
- 'src' => array(
- 'Money.php/f' => array(),
- 'MoneyBag.php/f' => array()
- )
- ),
- $method->invoke(
- $this->factory,
- array('src/Money.php' => array(), 'src/MoneyBag.php' => array())
- )
- );
- }
-
- /**
- * @covers PHP_CodeCoverage_Report_Factory::reducePaths
- * @dataProvider reducePathsProvider
- */
- public function testReducePaths($reducedPaths, $commonPath, $paths)
- {
- $method = new ReflectionMethod(
- 'PHP_CodeCoverage_Report_Factory',
- 'reducePaths'
- );
-
- $method->setAccessible(true);
-
- $_commonPath = $method->invokeArgs($this->factory, array(&$paths));
-
- $this->assertEquals($reducedPaths, $paths);
- $this->assertEquals($commonPath, $_commonPath);
- }
-
- public function reducePathsProvider()
- {
- return array(
- array(
- array(
- 'Money.php' => array(),
- 'MoneyBag.php' => array()
- ),
- '/home/sb/Money',
- array(
- '/home/sb/Money/Money.php' => array(),
- '/home/sb/Money/MoneyBag.php' => array()
- )
- ),
- array(
- array(
- 'Money.php' => array()
- ),
- '/home/sb/Money/',
- array(
- '/home/sb/Money/Money.php' => array()
- )
- ),
- array(
- array(),
- '.',
- array()
- ),
- array(
- array(
- 'Money.php' => array(),
- 'MoneyBag.php' => array(),
- 'Cash.phar/Cash.php' => array(),
- ),
- '/home/sb/Money',
- array(
- '/home/sb/Money/Money.php' => array(),
- '/home/sb/Money/MoneyBag.php' => array(),
- 'phar:///home/sb/Money/Cash.phar/Cash.php' => array(),
- ),
- ),
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/UtilTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/UtilTest.php
deleted file mode 100644
index 0b4caea9..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/UtilTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Tests for the PHP_CodeCoverage_Util class.
- *
- * @since Class available since Release 1.0.0
- */
-class PHP_CodeCoverage_UtilTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers PHP_CodeCoverage_Util::percent
- */
- public function testPercent()
- {
- $this->assertEquals(100, PHP_CodeCoverage_Util::percent(100, 0));
- $this->assertEquals(100, PHP_CodeCoverage_Util::percent(100, 100));
- $this->assertEquals(
- '100.00%',
- PHP_CodeCoverage_Util::percent(100, 100, true)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php
deleted file mode 100644
index a755b881..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php
+++ /dev/null
@@ -1,487 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-if (!defined('TEST_FILES_PATH')) {
- define(
- 'TEST_FILES_PATH',
- dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR .
- '_files' . DIRECTORY_SEPARATOR
- );
-}
-
-require_once TEST_FILES_PATH . '../TestCase.php';
-require_once TEST_FILES_PATH . 'BankAccount.php';
-require_once TEST_FILES_PATH . 'BankAccountTest.php';
-
-/**
- * Tests for the PHP_CodeCoverage class.
- *
- * @since Class available since Release 1.0.0
- */
-class PHP_CodeCoverageTest extends PHP_CodeCoverage_TestCase
-{
- /**
- * @var PHP_CodeCoverage
- */
- private $coverage;
-
- protected function setUp()
- {
- $this->coverage = new PHP_CodeCoverage;
- }
-
- /**
- * @covers PHP_CodeCoverage::__construct
- * @covers PHP_CodeCoverage::filter
- */
- public function testConstructor()
- {
- $this->assertAttributeInstanceOf(
- 'PHP_CodeCoverage_Driver_Xdebug',
- 'driver',
- $this->coverage
- );
-
- $this->assertAttributeInstanceOf(
- 'PHP_CodeCoverage_Filter',
- 'filter',
- $this->coverage
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::__construct
- * @covers PHP_CodeCoverage::filter
- */
- public function testConstructor2()
- {
- $filter = new PHP_CodeCoverage_Filter;
- $coverage = new PHP_CodeCoverage(null, $filter);
-
- $this->assertAttributeInstanceOf(
- 'PHP_CodeCoverage_Driver_Xdebug',
- 'driver',
- $coverage
- );
-
- $this->assertSame($filter, $coverage->filter());
- }
-
- /**
- * @covers PHP_CodeCoverage::start
- * @expectedException PHP_CodeCoverage_Exception
- */
- public function testStartThrowsExceptionForInvalidArgument()
- {
- $this->coverage->start(null, array(), null);
- }
-
- /**
- * @covers PHP_CodeCoverage::stop
- * @expectedException PHP_CodeCoverage_Exception
- */
- public function testStopThrowsExceptionForInvalidArgument()
- {
- $this->coverage->stop(null);
- }
-
- /**
- * @covers PHP_CodeCoverage::stop
- * @expectedException PHP_CodeCoverage_Exception
- */
- public function testStopThrowsExceptionForInvalidArgument2()
- {
- $this->coverage->stop(true, null);
- }
-
- /**
- * @covers PHP_CodeCoverage::append
- * @expectedException PHP_CodeCoverage_Exception
- */
- public function testAppendThrowsExceptionForInvalidArgument()
- {
- $this->coverage->append(array(), null);
- }
-
- /**
- * @covers PHP_CodeCoverage::setCacheTokens
- * @expectedException PHP_CodeCoverage_Exception
- */
- public function testSetCacheTokensThrowsExceptionForInvalidArgument()
- {
- $this->coverage->setCacheTokens(null);
- }
-
- /**
- * @covers PHP_CodeCoverage::setCacheTokens
- */
- public function testSetCacheTokens()
- {
- $this->coverage->setCacheTokens(true);
- $this->assertAttributeEquals(true, 'cacheTokens', $this->coverage);
- }
-
- /**
- * @covers PHP_CodeCoverage::setCheckForUnintentionallyCoveredCode
- * @expectedException PHP_CodeCoverage_Exception
- */
- public function testSetCheckForUnintentionallyCoveredCodeThrowsExceptionForInvalidArgument()
- {
- $this->coverage->setCheckForUnintentionallyCoveredCode(null);
- }
-
- /**
- * @covers PHP_CodeCoverage::setCheckForUnintentionallyCoveredCode
- */
- public function testSetCheckForUnintentionallyCoveredCode()
- {
- $this->coverage->setCheckForUnintentionallyCoveredCode(true);
- $this->assertAttributeEquals(
- true,
- 'checkForUnintentionallyCoveredCode',
- $this->coverage
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::setForceCoversAnnotation
- * @expectedException PHP_CodeCoverage_Exception
- */
- public function testSetForceCoversAnnotationThrowsExceptionForInvalidArgument()
- {
- $this->coverage->setForceCoversAnnotation(null);
- }
-
- /**
- * @covers PHP_CodeCoverage::setForceCoversAnnotation
- */
- public function testSetForceCoversAnnotation()
- {
- $this->coverage->setForceCoversAnnotation(true);
- $this->assertAttributeEquals(
- true,
- 'forceCoversAnnotation',
- $this->coverage
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::setAddUncoveredFilesFromWhitelist
- * @expectedException PHP_CodeCoverage_Exception
- */
- public function testSetAddUncoveredFilesFromWhitelistThrowsExceptionForInvalidArgument()
- {
- $this->coverage->setAddUncoveredFilesFromWhitelist(null);
- }
-
- /**
- * @covers PHP_CodeCoverage::setAddUncoveredFilesFromWhitelist
- */
- public function testSetAddUncoveredFilesFromWhitelist()
- {
- $this->coverage->setAddUncoveredFilesFromWhitelist(true);
- $this->assertAttributeEquals(
- true,
- 'addUncoveredFilesFromWhitelist',
- $this->coverage
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::setProcessUncoveredFilesFromWhitelist
- * @expectedException PHP_CodeCoverage_Exception
- */
- public function testSetProcessUncoveredFilesFromWhitelistThrowsExceptionForInvalidArgument()
- {
- $this->coverage->setProcessUncoveredFilesFromWhitelist(null);
- }
-
- /**
- * @covers PHP_CodeCoverage::setProcessUncoveredFilesFromWhitelist
- */
- public function testSetProcessUncoveredFilesFromWhitelist()
- {
- $this->coverage->setProcessUncoveredFilesFromWhitelist(true);
- $this->assertAttributeEquals(
- true,
- 'processUncoveredFilesFromWhitelist',
- $this->coverage
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::setMapTestClassNameToCoveredClassName
- */
- public function testSetMapTestClassNameToCoveredClassName()
- {
- $this->coverage->setMapTestClassNameToCoveredClassName(true);
- $this->assertAttributeEquals(
- true,
- 'mapTestClassNameToCoveredClassName',
- $this->coverage
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::setMapTestClassNameToCoveredClassName
- * @expectedException PHP_CodeCoverage_Exception
- */
- public function testSetMapTestClassNameToCoveredClassNameThrowsExceptionForInvalidArgument()
- {
- $this->coverage->setMapTestClassNameToCoveredClassName(null);
- }
-
- /**
- * @covers PHP_CodeCoverage::clear
- */
- public function testClear()
- {
- $this->coverage->clear();
-
- $this->assertAttributeEquals(null, 'currentId', $this->coverage);
- $this->assertAttributeEquals(array(), 'data', $this->coverage);
- $this->assertAttributeEquals(array(), 'tests', $this->coverage);
- }
-
- /**
- * @covers PHP_CodeCoverage::start
- * @covers PHP_CodeCoverage::stop
- * @covers PHP_CodeCoverage::append
- * @covers PHP_CodeCoverage::applyListsFilter
- * @covers PHP_CodeCoverage::initializeFilesThatAreSeenTheFirstTime
- * @covers PHP_CodeCoverage::applyCoversAnnotationFilter
- * @covers PHP_CodeCoverage::getTests
- */
- public function testCollect()
- {
- $coverage = $this->getCoverageForBankAccount();
-
- $this->assertEquals(
- $this->getExpectedDataArrayForBankAccount(),
- $coverage->getData()
- );
-
- if (version_compare(PHPUnit_Runner_Version::id(), '4.7', '>=')) {
- $size = 'unknown';
- } else {
- $size = 'small';
- }
-
- $this->assertEquals(
- array(
- 'BankAccountTest::testBalanceIsInitiallyZero' => array('size' => $size, 'status' => null),
- 'BankAccountTest::testBalanceCannotBecomeNegative' => array('size' => $size, 'status' => null),
- 'BankAccountTest::testBalanceCannotBecomeNegative2' => array('size' => $size, 'status' => null),
- 'BankAccountTest::testDepositWithdrawMoney' => array('size' => $size, 'status' => null)
- ),
- $coverage->getTests()
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::getData
- * @covers PHP_CodeCoverage::merge
- */
- public function testMerge()
- {
- $coverage = $this->getCoverageForBankAccountForFirstTwoTests();
- $coverage->merge($this->getCoverageForBankAccountForLastTwoTests());
-
- $this->assertEquals(
- $this->getExpectedDataArrayForBankAccount(),
- $coverage->getData()
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::getData
- * @covers PHP_CodeCoverage::merge
- */
- public function testMerge2()
- {
- $coverage = new PHP_CodeCoverage(
- $this->getMock('PHP_CodeCoverage_Driver_Xdebug'),
- new PHP_CodeCoverage_Filter
- );
-
- $coverage->merge($this->getCoverageForBankAccount());
-
- $this->assertEquals(
- $this->getExpectedDataArrayForBankAccount(),
- $coverage->getData()
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::getLinesToBeIgnored
- */
- public function testGetLinesToBeIgnored()
- {
- $this->assertEquals(
- array(
- 1,
- 3,
- 4,
- 5,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- 21,
- 22,
- 23,
- 24,
- 25,
- 26,
- 27,
- 28,
- 30,
- 32,
- 33,
- 34,
- 35,
- 36,
- 37,
- 38
- ),
- $this->getLinesToBeIgnored()->invoke(
- $this->coverage,
- TEST_FILES_PATH . 'source_with_ignore.php'
- )
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::getLinesToBeIgnored
- */
- public function testGetLinesToBeIgnored2()
- {
- $this->assertEquals(
- array(1, 5),
- $this->getLinesToBeIgnored()->invoke(
- $this->coverage,
- TEST_FILES_PATH . 'source_without_ignore.php'
- )
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::getLinesToBeIgnored
- */
- public function testGetLinesToBeIgnored3()
- {
- $this->assertEquals(
- array(
- 1,
- 2,
- 3,
- 4,
- 5,
- 8,
- 11,
- 15,
- 16,
- 19,
- 20
- ),
- $this->getLinesToBeIgnored()->invoke(
- $this->coverage,
- TEST_FILES_PATH . 'source_with_class_and_anonymous_function.php'
- )
- );
- }
-
- /**
- * @covers PHP_CodeCoverage::getLinesToBeIgnored
- */
- public function testGetLinesToBeIgnoredOneLineAnnotations()
- {
- $this->assertEquals(
- array(
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 18,
- 20,
- 21,
- 23,
- 24,
- 25,
- 27,
- 28,
- 29,
- 30,
- 31,
- 32,
- 33,
- 34,
- 37
- ),
- $this->getLinesToBeIgnored()->invoke(
- $this->coverage,
- TEST_FILES_PATH . 'source_with_oneline_annotations.php'
- )
- );
- }
-
- /**
- * @return ReflectionMethod
- */
- private function getLinesToBeIgnored()
- {
- $getLinesToBeIgnored = new ReflectionMethod(
- 'PHP_CodeCoverage',
- 'getLinesToBeIgnored'
- );
-
- $getLinesToBeIgnored->setAccessible(true);
-
- return $getLinesToBeIgnored;
- }
-
- /**
- * @covers PHP_CodeCoverage::getLinesToBeIgnored
- */
- public function testGetLinesToBeIgnoredWhenIgnoreIsDisabled()
- {
- $this->coverage->setDisableIgnoredLines(true);
-
- $this->assertEquals(
- array(),
- $this->getLinesToBeIgnored()->invoke(
- $this->coverage,
- TEST_FILES_PATH . 'source_with_ignore.php'
- )
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/TestCase.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/TestCase.php
deleted file mode 100644
index f9824282..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/TestCase.php
+++ /dev/null
@@ -1,311 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_CodeCoverage package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Abstract base class for test case classes.
- *
- * @since Class available since Release 1.0.0
- */
-abstract class PHP_CodeCoverage_TestCase extends PHPUnit_Framework_TestCase
-{
- protected function getXdebugDataForBankAccount()
- {
- return array(
- array(
- TEST_FILES_PATH . 'BankAccount.php' => array(
- 8 => 1,
- 9 => -2,
- 13 => -1,
- 14 => -1,
- 15 => -1,
- 16 => -1,
- 18 => -1,
- 22 => -1,
- 24 => -1,
- 25 => -2,
- 29 => -1,
- 31 => -1,
- 32 => -2
- )
- ),
- array(
- TEST_FILES_PATH . 'BankAccount.php' => array(
- 8 => 1,
- 13 => 1,
- 16 => 1,
- 29 => 1,
- )
- ),
- array(
- TEST_FILES_PATH . 'BankAccount.php' => array(
- 8 => 1,
- 13 => 1,
- 16 => 1,
- 22 => 1,
- )
- ),
- array(
- TEST_FILES_PATH . 'BankAccount.php' => array(
- 8 => 1,
- 13 => 1,
- 14 => 1,
- 15 => 1,
- 18 => 1,
- 22 => 1,
- 24 => 1,
- 29 => 1,
- 31 => 1,
- )
- )
- );
- }
-
- protected function getCoverageForBankAccount()
- {
- $data = $this->getXdebugDataForBankAccount();
-
- $stub = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');
- $stub->expects($this->any())
- ->method('stop')
- ->will($this->onConsecutiveCalls(
- $data[0],
- $data[1],
- $data[2],
- $data[3]
- ));
-
- $coverage = new PHP_CodeCoverage($stub, new PHP_CodeCoverage_Filter);
-
- $coverage->start(
- new BankAccountTest('testBalanceIsInitiallyZero'),
- true
- );
-
- $coverage->stop(
- true,
- array(TEST_FILES_PATH . 'BankAccount.php' => range(6, 9))
- );
-
- $coverage->start(
- new BankAccountTest('testBalanceCannotBecomeNegative')
- );
-
- $coverage->stop(
- true,
- array(TEST_FILES_PATH . 'BankAccount.php' => range(27, 32))
- );
-
- $coverage->start(
- new BankAccountTest('testBalanceCannotBecomeNegative2')
- );
-
- $coverage->stop(
- true,
- array(TEST_FILES_PATH . 'BankAccount.php' => range(20, 25))
- );
-
- $coverage->start(
- new BankAccountTest('testDepositWithdrawMoney')
- );
-
- $coverage->stop(
- true,
- array(
- TEST_FILES_PATH . 'BankAccount.php' => array_merge(
- range(6, 9),
- range(20, 25),
- range(27, 32)
- )
- )
- );
-
- return $coverage;
- }
-
- protected function getCoverageForBankAccountForFirstTwoTests()
- {
- $data = $this->getXdebugDataForBankAccount();
-
- $stub = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');
- $stub->expects($this->any())
- ->method('stop')
- ->will($this->onConsecutiveCalls(
- $data[0],
- $data[1]
- ));
-
- $coverage = new PHP_CodeCoverage($stub, new PHP_CodeCoverage_Filter);
-
- $coverage->start(
- new BankAccountTest('testBalanceIsInitiallyZero'),
- true
- );
-
- $coverage->stop(
- true,
- array(TEST_FILES_PATH . 'BankAccount.php' => range(6, 9))
- );
-
- $coverage->start(
- new BankAccountTest('testBalanceCannotBecomeNegative')
- );
-
- $coverage->stop(
- true,
- array(TEST_FILES_PATH . 'BankAccount.php' => range(27, 32))
- );
-
- return $coverage;
- }
-
- protected function getCoverageForBankAccountForLastTwoTests()
- {
- $data = $this->getXdebugDataForBankAccount();
-
- $stub = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');
- $stub->expects($this->any())
- ->method('stop')
- ->will($this->onConsecutiveCalls(
- $data[2],
- $data[3]
- ));
-
- $coverage = new PHP_CodeCoverage($stub, new PHP_CodeCoverage_Filter);
-
- $coverage->start(
- new BankAccountTest('testBalanceCannotBecomeNegative2')
- );
-
- $coverage->stop(
- true,
- array(TEST_FILES_PATH . 'BankAccount.php' => range(20, 25))
- );
-
- $coverage->start(
- new BankAccountTest('testDepositWithdrawMoney')
- );
-
- $coverage->stop(
- true,
- array(
- TEST_FILES_PATH . 'BankAccount.php' => array_merge(
- range(6, 9),
- range(20, 25),
- range(27, 32)
- )
- )
- );
-
- return $coverage;
- }
-
- protected function getExpectedDataArrayForBankAccount()
- {
- return array(
- TEST_FILES_PATH . 'BankAccount.php' => array(
- 8 => array(
- 0 => 'BankAccountTest::testBalanceIsInitiallyZero',
- 1 => 'BankAccountTest::testDepositWithdrawMoney'
- ),
- 9 => null,
- 13 => array(),
- 14 => array(),
- 15 => array(),
- 16 => array(),
- 18 => array(),
- 22 => array(
- 0 => 'BankAccountTest::testBalanceCannotBecomeNegative2',
- 1 => 'BankAccountTest::testDepositWithdrawMoney'
- ),
- 24 => array(
- 0 => 'BankAccountTest::testDepositWithdrawMoney',
- ),
- 25 => null,
- 29 => array(
- 0 => 'BankAccountTest::testBalanceCannotBecomeNegative',
- 1 => 'BankAccountTest::testDepositWithdrawMoney'
- ),
- 31 => array(
- 0 => 'BankAccountTest::testDepositWithdrawMoney'
- ),
- 32 => null
- )
- );
- }
-
- protected function getCoverageForFileWithIgnoredLines()
- {
- $coverage = new PHP_CodeCoverage(
- $this->setUpXdebugStubForFileWithIgnoredLines(),
- new PHP_CodeCoverage_Filter
- );
-
- $coverage->start('FileWithIgnoredLines', true);
- $coverage->stop();
-
- return $coverage;
- }
-
- protected function setUpXdebugStubForFileWithIgnoredLines()
- {
- $stub = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');
- $stub->expects($this->any())
- ->method('stop')
- ->will($this->returnValue(
- array(
- TEST_FILES_PATH . 'source_with_ignore.php' => array(
- 2 => 1,
- 4 => -1,
- 6 => -1,
- 7 => 1
- )
- )
- ));
-
- return $stub;
- }
-
- protected function getCoverageForClassWithAnonymousFunction()
- {
- $coverage = new PHP_CodeCoverage(
- $this->setUpXdebugStubForClassWithAnonymousFunction(),
- new PHP_CodeCoverage_Filter
- );
-
- $coverage->start('ClassWithAnonymousFunction', true);
- $coverage->stop();
-
- return $coverage;
- }
-
- protected function setUpXdebugStubForClassWithAnonymousFunction()
- {
- $stub = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');
- $stub->expects($this->any())
- ->method('stop')
- ->will($this->returnValue(
- array(
- TEST_FILES_PATH . 'source_with_class_and_anonymous_function.php' => array(
- 7 => 1,
- 9 => 1,
- 10 => -1,
- 11 => 1,
- 12 => 1,
- 13 => 1,
- 14 => 1,
- 17 => 1,
- 18 => 1
- )
- )
- ));
-
- return $stub;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-clover.xml b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-clover.xml
deleted file mode 100644
index 578a7ccc..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccount-clover.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<coverage generated="%i">
- <project timestamp="%i" name="BankAccount">
- <file name="%s/BankAccount.php">
- <class name="BankAccount" namespace="global">
- <metrics methods="4" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="5" elements="14" coveredelements="8"/>
- </class>
- <line num="6" type="method" name="getBalance" crap="1" count="2"/>
- <line num="8" type="stmt" count="2"/>
- <line num="11" type="method" name="setBalance" crap="6" count="0"/>
- <line num="13" type="stmt" count="0"/>
- <line num="14" type="stmt" count="0"/>
- <line num="15" type="stmt" count="0"/>
- <line num="16" type="stmt" count="0"/>
- <line num="18" type="stmt" count="0"/>
- <line num="20" type="method" name="depositMoney" crap="1" count="2"/>
- <line num="22" type="stmt" count="2"/>
- <line num="24" type="stmt" count="1"/>
- <line num="27" type="method" name="withdrawMoney" crap="1" count="2"/>
- <line num="29" type="stmt" count="2"/>
- <line num="31" type="stmt" count="1"/>
- <metrics loc="33" ncloc="33" classes="1" methods="4" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="5" elements="14" coveredelements="8"/>
- </file>
- <metrics files="1" loc="33" ncloc="33" classes="1" methods="4" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="10" coveredstatements="5" elements="14" coveredelements="8"/>
- </project>
-</coverage>
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccount.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccount.php
deleted file mode 100644
index 4238c155..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccount.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-class BankAccount
-{
- protected $balance = 0;
-
- public function getBalance()
- {
- return $this->balance;
- }
-
- protected function setBalance($balance)
- {
- if ($balance >= 0) {
- $this->balance = $balance;
- } else {
- throw new RuntimeException;
- }
- }
-
- public function depositMoney($balance)
- {
- $this->setBalance($this->getBalance() + $balance);
-
- return $this->getBalance();
- }
-
- public function withdrawMoney($balance)
- {
- $this->setBalance($this->getBalance() - $balance);
-
- return $this->getBalance();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccountTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccountTest.php
deleted file mode 100644
index 3a6277ba..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/BankAccountTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-require_once 'BankAccount.php';
-
-class BankAccountTest extends PHPUnit_Framework_TestCase
-{
- protected $ba;
-
- protected function setUp()
- {
- $this->ba = new BankAccount;
- }
-
- /**
- * @covers BankAccount::getBalance
- */
- public function testBalanceIsInitiallyZero()
- {
- $this->assertEquals(0, $this->ba->getBalance());
- }
-
- /**
- * @covers BankAccount::withdrawMoney
- */
- public function testBalanceCannotBecomeNegative()
- {
- try {
- $this->ba->withdrawMoney(1);
- } catch (RuntimeException $e) {
- $this->assertEquals(0, $this->ba->getBalance());
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers BankAccount::depositMoney
- */
- public function testBalanceCannotBecomeNegative2()
- {
- try {
- $this->ba->depositMoney(-1);
- } catch (RuntimeException $e) {
- $this->assertEquals(0, $this->ba->getBalance());
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers BankAccount::getBalance
- * @covers BankAccount::depositMoney
- * @covers BankAccount::withdrawMoney
- */
- public function testDepositWithdrawMoney()
- {
- $this->assertEquals(0, $this->ba->getBalance());
- $this->ba->depositMoney(1);
- $this->assertEquals(1, $this->ba->getBalance());
- $this->ba->withdrawMoney(1);
- $this->assertEquals(0, $this->ba->getBalance());
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassExtendedTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassExtendedTest.php
deleted file mode 100644
index df12d347..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassExtendedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageClassExtendedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass<extended>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassTest.php
deleted file mode 100644
index 7f569ae6..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageClassTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageClassTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesTest.php
deleted file mode 100644
index 33b5fe3d..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesTest.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class CoverageFunctionParenthesesTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers ::globalFunction()
- */
- public function testSomething()
- {
- globalFunction();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php
deleted file mode 100644
index becc6c8f..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class CoverageFunctionParenthesesWhitespaceTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers ::globalFunction ( )
- */
- public function testSomething()
- {
- globalFunction();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionTest.php
deleted file mode 100644
index c621fd21..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageFunctionTest.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class CoverageFunctionTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers ::globalFunction
- */
- public function testSomething()
- {
- globalFunction();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodOneLineAnnotationTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodOneLineAnnotationTest.php
deleted file mode 100644
index 55d7f571..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodOneLineAnnotationTest.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-class CoverageMethodOneLineAnnotationTest extends PHPUnit_Framework_TestCase
-{
- /** @covers CoveredClass::publicMethod */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesTest.php
deleted file mode 100644
index 42230045..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageMethodParenthesesTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::publicMethod()
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesWhitespaceTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesWhitespaceTest.php
deleted file mode 100644
index d1be1c6c..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodParenthesesWhitespaceTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageMethodParenthesesWhitespaceTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::publicMethod ( )
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodTest.php
deleted file mode 100644
index 167b3db4..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageMethodTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageMethodTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::publicMethod
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNoneTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNoneTest.php
deleted file mode 100644
index 0b414c2e..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNoneTest.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-class CoverageNoneTest extends PHPUnit_Framework_TestCase
-{
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPrivateTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPrivateTest.php
deleted file mode 100644
index 12b56e80..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPrivateTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageNotPrivateTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<!private>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotProtectedTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotProtectedTest.php
deleted file mode 100644
index c69d261d..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotProtectedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageNotProtectedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<!protected>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPublicTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPublicTest.php
deleted file mode 100644
index aebfe4bd..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNotPublicTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageNotPublicTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<!public>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNothingTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNothingTest.php
deleted file mode 100644
index 5d5680d9..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageNothingTest.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-class CoverageNothingTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::publicMethod
- * @coversNothing
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveragePrivateTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveragePrivateTest.php
deleted file mode 100644
index f09560d3..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveragePrivateTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoveragePrivateTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<private>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageProtectedTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageProtectedTest.php
deleted file mode 100644
index 9b3acbf6..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageProtectedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageProtectedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<protected>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveragePublicTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveragePublicTest.php
deleted file mode 100644
index 480a522b..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveragePublicTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoveragePublicTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<public>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageTwoDefaultClassAnnotations.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageTwoDefaultClassAnnotations.php
deleted file mode 100644
index 7ffc5c99..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoverageTwoDefaultClassAnnotations.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/**
- * @coversDefaultClass \NamespaceOne
- * @coversDefaultClass \AnotherDefault\Name\Space\Does\Not\Work
- */
-class CoverageTwoDefaultClassAnnotations
-{
- /**
- * @covers Foo\CoveredClass::<public>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveredClass.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveredClass.php
deleted file mode 100644
index f382ce99..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveredClass.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-class CoveredParentClass
-{
- private function privateMethod()
- {
- }
-
- protected function protectedMethod()
- {
- $this->privateMethod();
- }
-
- public function publicMethod()
- {
- $this->protectedMethod();
- }
-}
-
-class CoveredClass extends CoveredParentClass
-{
- private function privateMethod()
- {
- }
-
- protected function protectedMethod()
- {
- parent::protectedMethod();
- $this->privateMethod();
- }
-
- public function publicMethod()
- {
- parent::publicMethod();
- $this->protectedMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveredFunction.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveredFunction.php
deleted file mode 100644
index 9989eb02..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/CoveredFunction.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-function globalFunction()
-{
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassExtendedTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassExtendedTest.php
deleted file mode 100644
index d0954cba..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassExtendedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageClassExtendedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass<extended>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassTest.php
deleted file mode 100644
index 63912c08..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageClassTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageClassTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassPublicTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassPublicTest.php
deleted file mode 100644
index 45f583b7..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassPublicTest.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-/**
- * @coversDefaultClass \Foo\CoveredClass
- */
-class NamespaceCoverageCoversClassPublicTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers ::publicMethod
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassTest.php
deleted file mode 100644
index b3367454..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageCoversClassTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/**
- * @coversDefaultClass \Foo\CoveredClass
- */
-class NamespaceCoverageCoversClassTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers ::privateMethod
- * @covers ::protectedMethod
- * @covers ::publicMethod
- * @covers \Foo\CoveredParentClass::privateMethod
- * @covers \Foo\CoveredParentClass::protectedMethod
- * @covers \Foo\CoveredParentClass::publicMethod
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageMethodTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageMethodTest.php
deleted file mode 100644
index 35dfb8b1..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageMethodTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageMethodTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::publicMethod
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPrivateTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPrivateTest.php
deleted file mode 100644
index 552c9ec5..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPrivateTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageNotPrivateTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<!private>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotProtectedTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotProtectedTest.php
deleted file mode 100644
index 33fc8c72..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotProtectedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageNotProtectedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<!protected>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPublicTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPublicTest.php
deleted file mode 100644
index ccbc5009..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageNotPublicTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageNotPublicTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<!public>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePrivateTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePrivateTest.php
deleted file mode 100644
index cce7ba9d..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePrivateTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoveragePrivateTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<private>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageProtectedTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageProtectedTest.php
deleted file mode 100644
index dbbcc1c3..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoverageProtectedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageProtectedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<protected>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePublicTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePublicTest.php
deleted file mode 100644
index bf1bff8c..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePublicTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoveragePublicTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<public>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php
deleted file mode 100644
index 5bd0ddfb..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveredClass.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-namespace Foo;
-
-class CoveredParentClass
-{
- private function privateMethod()
- {
- }
-
- protected function protectedMethod()
- {
- $this->privateMethod();
- }
-
- public function publicMethod()
- {
- $this->protectedMethod();
- }
-}
-
-class CoveredClass extends CoveredParentClass
-{
- private function privateMethod()
- {
- }
-
- protected function protectedMethod()
- {
- parent::protectedMethod();
- $this->privateMethod();
- }
-
- public function publicMethod()
- {
- parent::publicMethod();
- $this->protectedMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NotExistingCoveredElementTest.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NotExistingCoveredElementTest.php
deleted file mode 100644
index be07ef45..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/NotExistingCoveredElementTest.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-class NotExistingCoveredElementTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers NotExistingClass
- */
- public function testOne()
- {
- }
-
- /**
- * @covers NotExistingClass::notExistingMethod
- */
- public function testTwo()
- {
- }
-
- /**
- * @covers NotExistingClass::<public>
- */
- public function testThree()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-clover.xml b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-clover.xml
deleted file mode 100644
index ac43b806..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/class-with-anonymous-function-clover.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<coverage generated="%i">
- <project timestamp="%i">
- <file name="%s/source_with_class_and_anonymous_function.php">
- <class name="CoveredClassWithAnonymousFunctionInStaticMethod" namespace="global">
- <metrics methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="4" elements="7" coveredelements="5"/>
- </class>
- <line num="5" type="method" name="runAnonymous" crap="1.04" count="1"/>
- <line num="7" type="stmt" count="1"/>
- <line num="9" type="stmt" count="1"/>
- <line num="10" type="stmt" count="0"/>
- <line num="11" type="method" name="anonymous function" crap="1" count="1"/>
- <line num="12" type="stmt" count="1"/>
- <line num="13" type="stmt" count="1"/>
- <line num="14" type="stmt" count="1"/>
- <line num="17" type="stmt" count="1"/>
- <line num="18" type="stmt" count="1"/>
- <metrics loc="19" ncloc="17" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="7" elements="10" coveredelements="8"/>
- </file>
- <metrics files="1" loc="19" ncloc="17" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="7" elements="10" coveredelements="8"/>
- </project>
-</coverage>
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-clover.xml b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-clover.xml
deleted file mode 100644
index cda929cd..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/ignored-lines-clover.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<coverage generated="%i">
- <project timestamp="%i">
- <file name="%s/source_with_ignore.php">
- <class name="Foo" namespace="global">
- <metrics methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/>
- </class>
- <class name="Bar" namespace="global">
- <metrics methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/>
- </class>
- <line num="2" type="stmt" count="1"/>
- <line num="6" type="stmt" count="0"/>
- <metrics loc="37" ncloc="25" classes="2" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="1" elements="2" coveredelements="1"/>
- </file>
- <metrics files="1" loc="37" ncloc="25" classes="2" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="1" elements="2" coveredelements="1"/>
- </project>
-</coverage>
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_class_and_anonymous_function.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_class_and_anonymous_function.php
deleted file mode 100644
index eaba387d..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_class_and_anonymous_function.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-class CoveredClassWithAnonymousFunctionInStaticMethod
-{
- public static function runAnonymous()
- {
- $filter = array('abc124', 'abc123', '123');
-
- array_walk(
- $filter,
- function (&$val, $key) {
- $val = preg_replace('|[^0-9]|', '', $val);
- }
- );
-
- // Should be covered
- $extravar = true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_ignore.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_ignore.php
deleted file mode 100644
index dd9aa12a..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_ignore.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-if ($neverHappens) {
- // @codeCoverageIgnoreStart
- print '*';
- // @codeCoverageIgnoreEnd
-}
-
-/**
- * @codeCoverageIgnore
- */
-class Foo
-{
- public function bar()
- {
- }
-}
-
-class Bar
-{
- /**
- * @codeCoverageIgnore
- */
- public function foo()
- {
- }
-}
-
-function baz()
-{
- print '*'; // @codeCoverageIgnore
-}
-
-interface Bor
-{
- public function foo();
-
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_namespace.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_namespace.php
deleted file mode 100644
index fb9dfa34..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_namespace.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-namespace bar\baz;
-
-/**
- * Represents foo.
- */
-class source_with_namespace
-{
-}
-
-/**
- * @param mixed $bar
- */
-function &foo($bar)
-{
- $baz = function () {};
- $a = true ? true : false;
- $b = "{$a}";
- $c = "${b}";
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php
deleted file mode 100644
index 19dd4cd4..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/** Docblock */
-interface Foo
-{
- public function bar();
-}
-
-class Foo
-{
- public function bar()
- {
- }
-}
-
-function baz()
-{
- // a one-line comment
- print '*'; // a one-line comment
-
- /* a one-line comment */
- print '*'; /* a one-line comment */
-
- /* a one-line comment
- */
- print '*'; /* a one-line comment
- */
-
- print '*'; // @codeCoverageIgnore
-
- print '*'; // @codeCoverageIgnoreStart
- print '*';
- print '*'; // @codeCoverageIgnoreEnd
-
- print '*';
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_without_ignore.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_without_ignore.php
deleted file mode 100644
index be4e8364..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_without_ignore.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-if ($neverHappens) {
- print '*';
-}
diff --git a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_without_namespace.php b/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_without_namespace.php
deleted file mode 100644
index a291e744..00000000
--- a/www/wiki/vendor/phpunit/php-code-coverage/tests/_files/source_without_namespace.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/**
- * Represents foo.
- */
-class Foo
-{
-}
-
-/**
- * @param mixed $bar
- */
-function &foo($bar)
-{
- $baz = function () {};
- $a = true ? true : false;
- $b = "{$a}";
- $c = "${b}";
-}
diff --git a/www/wiki/vendor/phpunit/php-file-iterator/.gitattributes b/www/wiki/vendor/phpunit/php-file-iterator/.gitattributes
deleted file mode 100644
index 461090b7..00000000
--- a/www/wiki/vendor/phpunit/php-file-iterator/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-*.php diff=php
diff --git a/www/wiki/vendor/phpunit/php-file-iterator/.gitignore b/www/wiki/vendor/phpunit/php-file-iterator/.gitignore
deleted file mode 100644
index a7419836..00000000
--- a/www/wiki/vendor/phpunit/php-file-iterator/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-build/api
-build/code-browser
-build/coverage
-build/logs
-build/pdepend
-cache.properties
-phpunit.xml
diff --git a/www/wiki/vendor/phpunit/php-file-iterator/ChangeLog.md b/www/wiki/vendor/phpunit/php-file-iterator/ChangeLog.md
deleted file mode 100644
index 5c842c6f..00000000
--- a/www/wiki/vendor/phpunit/php-file-iterator/ChangeLog.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
-
-## [1.4.5] - 2017-11-27
-
-### Fixed
-
-* Fixed [#37](https://github.com/sebastianbergmann/php-file-iterator/issues/37): Regression caused by fix for [#30](https://github.com/sebastianbergmann/php-file-iterator/issues/30)
-
-## [1.4.4] - 2017-11-27
-
-### Fixed
-
-* Fixed [#30](https://github.com/sebastianbergmann/php-file-iterator/issues/30): Exclude is not considered if it is a parent of the base path
-
-## [1.4.3] - 2017-11-25
-
-### Fixed
-
-* Fixed [#34](https://github.com/sebastianbergmann/php-file-iterator/issues/34): Factory should use canonical directory names
-
-## [1.4.2] - 2016-11-26
-
-No changes
-
-## [1.4.1] - 2015-07-26
-
-No changes
-
-## 1.4.0 - 2015-04-02
-
-### Added
-
-* [Added support for wildcards (glob) in exclude](https://github.com/sebastianbergmann/php-file-iterator/pull/23)
-
-[1.4.5]: https://github.com/sebastianbergmann/php-file-iterator/compare/1.4.4...1.4.5
-[1.4.4]: https://github.com/sebastianbergmann/php-file-iterator/compare/1.4.3...1.4.4
-[1.4.3]: https://github.com/sebastianbergmann/php-file-iterator/compare/1.4.2...1.4.3
-[1.4.2]: https://github.com/sebastianbergmann/php-file-iterator/compare/1.4.1...1.4.2
-[1.4.1]: https://github.com/sebastianbergmann/php-file-iterator/compare/1.4.0...1.4.1
diff --git a/www/wiki/vendor/phpunit/php-file-iterator/LICENSE b/www/wiki/vendor/phpunit/php-file-iterator/LICENSE
deleted file mode 100644
index 6cccbbbf..00000000
--- a/www/wiki/vendor/phpunit/php-file-iterator/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-File_Iterator
-
-Copyright (c) 2009-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/phpunit/php-file-iterator/README.md b/www/wiki/vendor/phpunit/php-file-iterator/README.md
deleted file mode 100644
index 8f2caf2a..00000000
--- a/www/wiki/vendor/phpunit/php-file-iterator/README.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# File_Iterator
-
-## Installation
-
-You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
-
- composer require phpunit/php-file-iterator
-
-If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
-
- composer require --dev phpunit/php-file-iterator
-
diff --git a/www/wiki/vendor/phpunit/php-file-iterator/composer.json b/www/wiki/vendor/phpunit/php-file-iterator/composer.json
deleted file mode 100644
index c6527943..00000000
--- a/www/wiki/vendor/phpunit/php-file-iterator/composer.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "name": "phpunit/php-file-iterator",
- "description": "FilterIterator implementation that filters files based on a list of suffixes.",
- "type": "library",
- "keywords": [
- "iterator",
- "filesystem"
- ],
- "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
- "irc": "irc://irc.freenode.net/phpunit"
- },
- "require": {
- "php": ">=5.3.3"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- }
-}
-
diff --git a/www/wiki/vendor/phpunit/php-file-iterator/src/Facade.php b/www/wiki/vendor/phpunit/php-file-iterator/src/Facade.php
deleted file mode 100644
index 902a0af9..00000000
--- a/www/wiki/vendor/phpunit/php-file-iterator/src/Facade.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-/*
- * This file is part of the File_Iterator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Façade implementation that uses File_Iterator_Factory to create a
- * File_Iterator that operates on an AppendIterator that contains an
- * RecursiveDirectoryIterator for each given path. The list of unique
- * files is returned as an array.
- *
- * @since Class available since Release 1.3.0
- */
-class File_Iterator_Facade
-{
- /**
- * @param array|string $paths
- * @param array|string $suffixes
- * @param array|string $prefixes
- * @param array $exclude
- * @param bool $commonPath
- * @return array
- */
- public function getFilesAsArray($paths, $suffixes = '', $prefixes = '', array $exclude = array(), $commonPath = FALSE)
- {
- if (is_string($paths)) {
- $paths = array($paths);
- }
-
- $factory = new File_Iterator_Factory;
- $iterator = $factory->getFileIterator(
- $paths, $suffixes, $prefixes, $exclude
- );
-
- $files = array();
-
- foreach ($iterator as $file) {
- $file = $file->getRealPath();
-
- if ($file) {
- $files[] = $file;
- }
- }
-
- foreach ($paths as $path) {
- if (is_file($path)) {
- $files[] = realpath($path);
- }
- }
-
- $files = array_unique($files);
- sort($files);
-
- if ($commonPath) {
- return array(
- 'commonPath' => $this->getCommonPath($files),
- 'files' => $files
- );
- } else {
- return $files;
- }
- }
-
- /**
- * Returns the common path of a set of files.
- *
- * @param array $files
- * @return string
- */
- protected function getCommonPath(array $files)
- {
- $count = count($files);
-
- if ($count == 0) {
- return '';
- }
-
- if ($count == 1) {
- return dirname($files[0]) . DIRECTORY_SEPARATOR;
- }
-
- $_files = array();
-
- foreach ($files as $file) {
- $_files[] = $_fileParts = explode(DIRECTORY_SEPARATOR, $file);
-
- if (empty($_fileParts[0])) {
- $_fileParts[0] = DIRECTORY_SEPARATOR;
- }
- }
-
- $common = '';
- $done = FALSE;
- $j = 0;
- $count--;
-
- while (!$done) {
- for ($i = 0; $i < $count; $i++) {
- if ($_files[$i][$j] != $_files[$i+1][$j]) {
- $done = TRUE;
- break;
- }
- }
-
- if (!$done) {
- $common .= $_files[0][$j];
-
- if ($j > 0) {
- $common .= DIRECTORY_SEPARATOR;
- }
- }
-
- $j++;
- }
-
- return DIRECTORY_SEPARATOR . $common;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-file-iterator/src/Factory.php b/www/wiki/vendor/phpunit/php-file-iterator/src/Factory.php
deleted file mode 100644
index 9cc3fb7b..00000000
--- a/www/wiki/vendor/phpunit/php-file-iterator/src/Factory.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-/*
- * This file is part of the File_Iterator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Factory Method implementation that creates a File_Iterator that operates on
- * an AppendIterator that contains an RecursiveDirectoryIterator for each given
- * path.
- *
- * @since Class available since Release 1.1.0
- */
-class File_Iterator_Factory
-{
- /**
- * @param array|string $paths
- * @param array|string $suffixes
- * @param array|string $prefixes
- * @param array $exclude
- * @return AppendIterator
- */
- public function getFileIterator($paths, $suffixes = '', $prefixes = '', array $exclude = array())
- {
- if (is_string($paths)) {
- $paths = array($paths);
- }
-
- $paths = $this->getPathsAfterResolvingWildcards($paths);
- $exclude = $this->getPathsAfterResolvingWildcards($exclude);
-
- if (is_string($prefixes)) {
- if ($prefixes != '') {
- $prefixes = array($prefixes);
- } else {
- $prefixes = array();
- }
- }
-
- if (is_string($suffixes)) {
- if ($suffixes != '') {
- $suffixes = array($suffixes);
- } else {
- $suffixes = array();
- }
- }
-
- $iterator = new AppendIterator;
-
- foreach ($paths as $path) {
- if (is_dir($path)) {
- $iterator->append(
- new File_Iterator(
- new RecursiveIteratorIterator(
- new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::FOLLOW_SYMLINKS)
- ),
- $suffixes,
- $prefixes,
- $exclude,
- $path
- )
- );
- }
- }
-
- return $iterator;
- }
-
- /**
- * @param array $paths
- * @return array
- */
- protected function getPathsAfterResolvingWildcards(array $paths)
- {
- $_paths = array();
-
- foreach ($paths as $path) {
- if ($locals = glob($path, GLOB_ONLYDIR)) {
- $_paths = array_merge($_paths, array_map('realpath', $locals));
- } else {
- $_paths[] = realpath($path);
- }
- }
-
- return $_paths;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-file-iterator/src/Iterator.php b/www/wiki/vendor/phpunit/php-file-iterator/src/Iterator.php
deleted file mode 100644
index c8f20a79..00000000
--- a/www/wiki/vendor/phpunit/php-file-iterator/src/Iterator.php
+++ /dev/null
@@ -1,158 +0,0 @@
-<?php
-/*
- * This file is part of the File_Iterator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * FilterIterator implementation that filters files based on prefix(es) and/or
- * suffix(es). Hidden files and files from hidden directories are also filtered.
- *
- * @since Class available since Release 1.0.0
- */
-class File_Iterator extends FilterIterator
-{
- const PREFIX = 0;
- const SUFFIX = 1;
-
- /**
- * @var array
- */
- protected $suffixes = array();
-
- /**
- * @var array
- */
- protected $prefixes = array();
-
- /**
- * @var array
- */
- protected $exclude = array();
-
- /**
- * @var string
- */
- protected $basepath;
-
- /**
- * @param Iterator $iterator
- * @param array $suffixes
- * @param array $prefixes
- * @param array $exclude
- * @param string $basepath
- */
- public function __construct(Iterator $iterator, array $suffixes = array(), array $prefixes = array(), array $exclude = array(), $basepath = NULL)
- {
- $exclude = array_filter(array_map('realpath', $exclude));
-
- if ($basepath !== NULL) {
- $basepath = realpath($basepath);
- }
-
- if ($basepath === FALSE) {
- $basepath = NULL;
- } else {
- foreach ($exclude as &$_exclude) {
- $_exclude = str_replace($basepath, '', $_exclude);
- }
- }
-
- $this->prefixes = $prefixes;
- $this->suffixes = $suffixes;
- $this->exclude = $exclude;
- $this->basepath = $basepath;
-
- parent::__construct($iterator);
- }
-
- /**
- * @return bool
- */
- public function accept()
- {
- $current = $this->getInnerIterator()->current();
- $filename = $current->getFilename();
- $realpath = $current->getRealPath();
-
- if ($this->basepath !== NULL) {
- $realpath = str_replace($this->basepath, '', $realpath);
- }
-
- // Filter files in hidden directories.
- if (preg_match('=/\.[^/]*/=', $realpath)) {
- return FALSE;
- }
-
- return $this->acceptPath($realpath) &&
- $this->acceptPrefix($filename) &&
- $this->acceptSuffix($filename);
- }
-
- /**
- * @param string $path
- * @return bool
- * @since Method available since Release 1.1.0
- */
- protected function acceptPath($path)
- {
- foreach ($this->exclude as $exclude) {
- if (strpos($path, $exclude) === 0) {
- return FALSE;
- }
- }
-
- return TRUE;
- }
-
- /**
- * @param string $filename
- * @return bool
- * @since Method available since Release 1.1.0
- */
- protected function acceptPrefix($filename)
- {
- return $this->acceptSubString($filename, $this->prefixes, self::PREFIX);
- }
-
- /**
- * @param string $filename
- * @return bool
- * @since Method available since Release 1.1.0
- */
- protected function acceptSuffix($filename)
- {
- return $this->acceptSubString($filename, $this->suffixes, self::SUFFIX);
- }
-
- /**
- * @param string $filename
- * @param array $subStrings
- * @param int $type
- * @return bool
- * @since Method available since Release 1.1.0
- */
- protected function acceptSubString($filename, array $subStrings, $type)
- {
- if (empty($subStrings)) {
- return TRUE;
- }
-
- $matched = FALSE;
-
- foreach ($subStrings as $string) {
- if (($type == self::PREFIX && strpos($filename, $string) === 0) ||
- ($type == self::SUFFIX &&
- substr($filename, -1 * strlen($string)) == $string)) {
- $matched = TRUE;
- break;
- }
- }
-
- return $matched;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-text-template/.gitattributes b/www/wiki/vendor/phpunit/php-text-template/.gitattributes
deleted file mode 100644
index 461090b7..00000000
--- a/www/wiki/vendor/phpunit/php-text-template/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-*.php diff=php
diff --git a/www/wiki/vendor/phpunit/php-text-template/.gitignore b/www/wiki/vendor/phpunit/php-text-template/.gitignore
deleted file mode 100644
index c5992124..00000000
--- a/www/wiki/vendor/phpunit/php-text-template/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/composer.lock
-/composer.phar
-/.idea
-/vendor
-
diff --git a/www/wiki/vendor/phpunit/php-text-template/LICENSE b/www/wiki/vendor/phpunit/php-text-template/LICENSE
deleted file mode 100644
index 9f9a32d9..00000000
--- a/www/wiki/vendor/phpunit/php-text-template/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-Text_Template
-
-Copyright (c) 2009-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/phpunit/php-text-template/README.md b/www/wiki/vendor/phpunit/php-text-template/README.md
deleted file mode 100644
index ec8f5936..00000000
--- a/www/wiki/vendor/phpunit/php-text-template/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Text_Template
-
-## Installation
-
-## Installation
-
-To add this package as a local, per-project dependency to your project, simply add a dependency on `phpunit/php-text-template` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on Text_Template:
-
- {
- "require": {
- "phpunit/php-text-template": "~1.2"
- }
- }
-
diff --git a/www/wiki/vendor/phpunit/php-text-template/composer.json b/www/wiki/vendor/phpunit/php-text-template/composer.json
deleted file mode 100644
index a5779c83..00000000
--- a/www/wiki/vendor/phpunit/php-text-template/composer.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "phpunit/php-text-template",
- "description": "Simple template engine.",
- "type": "library",
- "keywords": [
- "template"
- ],
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-text-template/issues"
- },
- "require": {
- "php": ">=5.3.3"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- }
-}
-
diff --git a/www/wiki/vendor/phpunit/php-text-template/src/Template.php b/www/wiki/vendor/phpunit/php-text-template/src/Template.php
deleted file mode 100644
index 9eb39ad5..00000000
--- a/www/wiki/vendor/phpunit/php-text-template/src/Template.php
+++ /dev/null
@@ -1,135 +0,0 @@
-<?php
-/*
- * This file is part of the Text_Template package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A simple template engine.
- *
- * @since Class available since Release 1.0.0
- */
-class Text_Template
-{
- /**
- * @var string
- */
- protected $template = '';
-
- /**
- * @var string
- */
- protected $openDelimiter = '{';
-
- /**
- * @var string
- */
- protected $closeDelimiter = '}';
-
- /**
- * @var array
- */
- protected $values = array();
-
- /**
- * Constructor.
- *
- * @param string $file
- * @throws InvalidArgumentException
- */
- public function __construct($file = '', $openDelimiter = '{', $closeDelimiter = '}')
- {
- $this->setFile($file);
- $this->openDelimiter = $openDelimiter;
- $this->closeDelimiter = $closeDelimiter;
- }
-
- /**
- * Sets the template file.
- *
- * @param string $file
- * @throws InvalidArgumentException
- */
- public function setFile($file)
- {
- $distFile = $file . '.dist';
-
- if (file_exists($file)) {
- $this->template = file_get_contents($file);
- }
-
- else if (file_exists($distFile)) {
- $this->template = file_get_contents($distFile);
- }
-
- else {
- throw new InvalidArgumentException(
- 'Template file could not be loaded.'
- );
- }
- }
-
- /**
- * Sets one or more template variables.
- *
- * @param array $values
- * @param bool $merge
- */
- public function setVar(array $values, $merge = TRUE)
- {
- if (!$merge || empty($this->values)) {
- $this->values = $values;
- } else {
- $this->values = array_merge($this->values, $values);
- }
- }
-
- /**
- * Renders the template and returns the result.
- *
- * @return string
- */
- public function render()
- {
- $keys = array();
-
- foreach ($this->values as $key => $value) {
- $keys[] = $this->openDelimiter . $key . $this->closeDelimiter;
- }
-
- return str_replace($keys, $this->values, $this->template);
- }
-
- /**
- * Renders the template and writes the result to a file.
- *
- * @param string $target
- */
- public function renderTo($target)
- {
- $fp = @fopen($target, 'wt');
-
- if ($fp) {
- fwrite($fp, $this->render());
- fclose($fp);
- } else {
- $error = error_get_last();
-
- throw new RuntimeException(
- sprintf(
- 'Could not write to %s: %s',
- $target,
- substr(
- $error['message'],
- strpos($error['message'], ':') + 2
- )
- )
- );
- }
- }
-}
-
diff --git a/www/wiki/vendor/phpunit/php-timer/.gitattributes b/www/wiki/vendor/phpunit/php-timer/.gitattributes
deleted file mode 100644
index 461090b7..00000000
--- a/www/wiki/vendor/phpunit/php-timer/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-*.php diff=php
diff --git a/www/wiki/vendor/phpunit/php-timer/.gitignore b/www/wiki/vendor/phpunit/php-timer/.gitignore
deleted file mode 100644
index c03c89b2..00000000
--- a/www/wiki/vendor/phpunit/php-timer/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/.idea
-/vendor
-/composer.lock
-
diff --git a/www/wiki/vendor/phpunit/php-timer/.travis.yml b/www/wiki/vendor/phpunit/php-timer/.travis.yml
deleted file mode 100644
index 7fc89961..00000000
--- a/www/wiki/vendor/phpunit/php-timer/.travis.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-language: php
-
-php:
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - 7.0snapshot
- - 7.1
- - 7.1snapshot
- - master
-
-sudo: false
-
-before_install:
- - composer self-update
- - composer clear-cache
-
-install:
- - travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable
-
-script:
- - ./vendor/bin/phpunit
-
-notifications:
- email: false
diff --git a/www/wiki/vendor/phpunit/php-timer/LICENSE b/www/wiki/vendor/phpunit/php-timer/LICENSE
deleted file mode 100644
index 16c45991..00000000
--- a/www/wiki/vendor/phpunit/php-timer/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-PHP_Timer
-
-Copyright (c) 2010-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/phpunit/php-timer/README.md b/www/wiki/vendor/phpunit/php-timer/README.md
deleted file mode 100644
index 47abb57f..00000000
--- a/www/wiki/vendor/phpunit/php-timer/README.md
+++ /dev/null
@@ -1,45 +0,0 @@
-[![Build Status](https://travis-ci.org/sebastianbergmann/php-timer.svg?branch=master)](https://travis-ci.org/sebastianbergmann/php-timer)
-
-# PHP_Timer
-
-Utility class for timing things, factored out of PHPUnit into a stand-alone component.
-
-## Installation
-
-You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
-
- composer require phpunit/php-timer
-
-If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
-
- composer require --dev phpunit/php-timer
-
-## Usage
-
-### Basic Timing
-
-```php
-PHP_Timer::start();
-
-// ...
-
-$time = PHP_Timer::stop();
-var_dump($time);
-
-print PHP_Timer::secondsToTimeString($time);
-```
-
-The code above yields the output below:
-
- double(1.0967254638672E-5)
- 0 ms
-
-### Resource Consumption Since PHP Startup
-
-```php
-print PHP_Timer::resourceUsage();
-```
-
-The code above yields the output below:
-
- Time: 0 ms, Memory: 0.50MB
diff --git a/www/wiki/vendor/phpunit/php-timer/composer.json b/www/wiki/vendor/phpunit/php-timer/composer.json
deleted file mode 100644
index 0f16164a..00000000
--- a/www/wiki/vendor/phpunit/php-timer/composer.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "name": "phpunit/php-timer",
- "description": "Utility class for timing",
- "type": "library",
- "keywords": [
- "timer"
- ],
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-timer/issues"
- },
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- }
-}
-
diff --git a/www/wiki/vendor/phpunit/php-timer/phpunit.xml b/www/wiki/vendor/phpunit/php-timer/phpunit.xml
deleted file mode 100644
index 68febeb0..00000000
--- a/www/wiki/vendor/phpunit/php-timer/phpunit.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
- bootstrap="vendor/autoload.php"
- forceCoversAnnotation="true"
- beStrictAboutCoversAnnotation="true"
- beStrictAboutOutputDuringTests="true"
- beStrictAboutTodoAnnotatedTests="true"
- verbose="true">
- <testsuite>
- <directory suffix="Test.php">tests</directory>
- </testsuite>
-
- <filter>
- <whitelist processUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">src</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/phpunit/php-timer/src/Timer.php b/www/wiki/vendor/phpunit/php-timer/src/Timer.php
deleted file mode 100644
index 7b5c4325..00000000
--- a/www/wiki/vendor/phpunit/php-timer/src/Timer.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_Timer package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Utility class for timing.
- */
-class PHP_Timer
-{
- /**
- * @var array
- */
- private static $times = array(
- 'hour' => 3600000,
- 'minute' => 60000,
- 'second' => 1000
- );
-
- /**
- * @var array
- */
- private static $startTimes = array();
-
- /**
- * @var float
- */
- public static $requestTime;
-
- /**
- * Starts the timer.
- */
- public static function start()
- {
- array_push(self::$startTimes, microtime(true));
- }
-
- /**
- * Stops the timer and returns the elapsed time.
- *
- * @return float
- */
- public static function stop()
- {
- return microtime(true) - array_pop(self::$startTimes);
- }
-
- /**
- * Formats the elapsed time as a string.
- *
- * @param float $time
- * @return string
- */
- public static function secondsToTimeString($time)
- {
- $ms = round($time * 1000);
-
- foreach (self::$times as $unit => $value) {
- if ($ms >= $value) {
- $time = floor($ms / $value * 100.0) / 100.0;
-
- return $time . ' ' . ($time == 1 ? $unit : $unit . 's');
- }
- }
-
- return $ms . ' ms';
- }
-
- /**
- * Formats the elapsed time since the start of the request as a string.
- *
- * @return string
- */
- public static function timeSinceStartOfRequest()
- {
- return self::secondsToTimeString(microtime(true) - self::$requestTime);
- }
-
- /**
- * Returns the resources (time, memory) of the request as a string.
- *
- * @return string
- */
- public static function resourceUsage()
- {
- return sprintf(
- 'Time: %s, Memory: %4.2fMB',
- self::timeSinceStartOfRequest(),
- memory_get_peak_usage(true) / 1048576
- );
- }
-}
-
-if (isset($_SERVER['REQUEST_TIME_FLOAT'])) {
- PHP_Timer::$requestTime = $_SERVER['REQUEST_TIME_FLOAT'];
-} elseif (isset($_SERVER['REQUEST_TIME'])) {
- PHP_Timer::$requestTime = $_SERVER['REQUEST_TIME'];
-} else {
- PHP_Timer::$requestTime = microtime(true);
-}
diff --git a/www/wiki/vendor/phpunit/php-timer/tests/TimerTest.php b/www/wiki/vendor/phpunit/php-timer/tests/TimerTest.php
deleted file mode 100644
index 34ebc500..00000000
--- a/www/wiki/vendor/phpunit/php-timer/tests/TimerTest.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_Timer package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use PHPUnit\Framework\TestCase;
-
-class PHP_TimerTest extends TestCase
-{
- /**
- * @covers PHP_Timer::start
- * @covers PHP_Timer::stop
- */
- public function testStartStop()
- {
- $this->assertInternalType('float', PHP_Timer::stop());
- }
-
- /**
- * @covers PHP_Timer::secondsToTimeString
- * @dataProvider secondsProvider
- */
- public function testSecondsToTimeString($string, $seconds)
- {
- $this->assertEquals(
- $string,
- PHP_Timer::secondsToTimeString($seconds)
- );
- }
-
- /**
- * @covers PHP_Timer::timeSinceStartOfRequest
- */
- public function testTimeSinceStartOfRequest()
- {
- $this->assertStringMatchesFormat(
- '%f %s',
- PHP_Timer::timeSinceStartOfRequest()
- );
- }
-
-
- /**
- * @covers PHP_Timer::resourceUsage
- */
- public function testResourceUsage()
- {
- $this->assertStringMatchesFormat(
- 'Time: %s, Memory: %fMB',
- PHP_Timer::resourceUsage()
- );
- }
-
- public function secondsProvider()
- {
- return array(
- array('0 ms', 0),
- array('1 ms', .001),
- array('10 ms', .01),
- array('100 ms', .1),
- array('999 ms', .999),
- array('1 second', .9999),
- array('1 second', 1),
- array('2 seconds', 2),
- array('59.9 seconds', 59.9),
- array('59.99 seconds', 59.99),
- array('59.99 seconds', 59.999),
- array('1 minute', 59.9999),
- array('59 seconds', 59.001),
- array('59.01 seconds', 59.01),
- array('1 minute', 60),
- array('1.01 minutes', 61),
- array('2 minutes', 120),
- array('2.01 minutes', 121),
- array('59.99 minutes', 3599.9),
- array('59.99 minutes', 3599.99),
- array('59.99 minutes', 3599.999),
- array('1 hour', 3599.9999),
- array('59.98 minutes', 3599.001),
- array('59.98 minutes', 3599.01),
- array('1 hour', 3600),
- array('1 hour', 3601),
- array('1 hour', 3601.9),
- array('1 hour', 3601.99),
- array('1 hour', 3601.999),
- array('1 hour', 3601.9999),
- array('1.01 hours', 3659.9999),
- array('1.01 hours', 3659.001),
- array('1.01 hours', 3659.01),
- array('2 hours', 7199.9999),
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/.gitattributes b/www/wiki/vendor/phpunit/php-token-stream/.gitattributes
deleted file mode 100644
index 461090b7..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-*.php diff=php
diff --git a/www/wiki/vendor/phpunit/php-token-stream/.gitignore b/www/wiki/vendor/phpunit/php-token-stream/.gitignore
deleted file mode 100644
index 103eecf8..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/.idea
-/composer.lock
-/composer.phar
-/vendor
diff --git a/www/wiki/vendor/phpunit/php-token-stream/.travis.yml b/www/wiki/vendor/phpunit/php-token-stream/.travis.yml
deleted file mode 100644
index c7cefe73..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/.travis.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-language: php
-
-php:
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - 7.0snapshot
- - 7.1
- - 7.1snapshot
- - master
-
-sudo: false
-
-before_install:
- - composer self-update
- - composer clear-cache
-
-install:
- - travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable
-
-script:
- - ./vendor/bin/phpunit --configuration ./build/phpunit.xml --coverage-clover=coverage.xml
-
-after_success:
- - bash <(curl -s https://codecov.io/bash)
-
-notifications:
- email: false
-
diff --git a/www/wiki/vendor/phpunit/php-token-stream/LICENSE b/www/wiki/vendor/phpunit/php-token-stream/LICENSE
deleted file mode 100644
index 6a176fa0..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-PHP_TokenStream
-
-Copyright (c) 2009-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/phpunit/php-token-stream/README.md b/www/wiki/vendor/phpunit/php-token-stream/README.md
deleted file mode 100644
index 1cee0487..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-[![Build Status](https://travis-ci.org/sebastianbergmann/php-token-stream.svg?branch=master)](https://travis-ci.org/sebastianbergmann/php-token-stream)
-
-# PHP_TokenStream
-
-## Installation
-
-You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
-
- composer require phpunit/php-token-stream
-
-If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
-
- composer require --dev phpunit/php-token-stream
-
diff --git a/www/wiki/vendor/phpunit/php-token-stream/build.xml b/www/wiki/vendor/phpunit/php-token-stream/build.xml
deleted file mode 100644
index f02f4b5c..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/build.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="php-token-stream">
- <target name="clean" description="Cleanup build artifacts">
- <delete dir="${basedir}/vendor"/>
- <delete file="${basedir}/composer.lock"/>
- </target>
-
- <target name="composer" depends="clean" description="Install dependencies with Composer">
- <tstamp>
- <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
- </tstamp>
- <delete>
- <fileset dir="${basedir}">
- <include name="composer.phar" />
- <date datetime="${thirty.days.ago}" when="before"/>
- </fileset>
- </delete>
-
- <get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" skipexisting="true"/>
-
- <exec executable="php">
- <arg value="composer.phar"/>
- <arg value="install"/>
- </exec>
- </target>
-
- <target name="phpunit" description="Run unit tests with PHPUnit">
- <exec executable="${basedir}/vendor/bin/phpunit" failonerror="true">
- <arg value="--configuration"/>
- <arg path="${basedir}/build/phpunit.xml"/>
- </exec>
- </target>
-</project>
diff --git a/www/wiki/vendor/phpunit/php-token-stream/build/phpunit.xml b/www/wiki/vendor/phpunit/php-token-stream/build/phpunit.xml
deleted file mode 100644
index 139586d2..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/build/phpunit.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit backupGlobals="false"
- backupStaticAttributes="false"
- bootstrap="../tests/bootstrap.php"
- verbode="true">
- <testsuites>
- <testsuite name="php-token-stream">
- <directory suffix="Test.php">../tests</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist addUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">../src</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/phpunit/php-token-stream/composer.json b/www/wiki/vendor/phpunit/php-token-stream/composer.json
deleted file mode 100644
index dfde7299..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/composer.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "phpunit/php-token-stream",
- "description": "Wrapper around PHP's tokenizer extension.",
- "type": "library",
- "keywords": ["tokenizer"],
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/php-token-stream/issues"
- },
- "require": {
- "php": ">=5.3.3",
- "ext-tokenizer": "*"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/src/Token.php b/www/wiki/vendor/phpunit/php-token-stream/src/Token.php
deleted file mode 100644
index 2452e1c1..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/src/Token.php
+++ /dev/null
@@ -1,849 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_TokenStream package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A PHP token.
- *
- * @author Sebastian Bergmann <sebastian@phpunit.de>
- * @copyright Sebastian Bergmann <sebastian@phpunit.de>
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
- * @link http://github.com/sebastianbergmann/php-token-stream/tree
- * @since Class available since Release 1.0.0
- */
-abstract class PHP_Token
-{
- /**
- * @var string
- */
- protected $text;
-
- /**
- * @var integer
- */
- protected $line;
-
- /**
- * @var PHP_Token_Stream
- */
- protected $tokenStream;
-
- /**
- * @var integer
- */
- protected $id;
-
- /**
- * Constructor.
- *
- * @param string $text
- * @param integer $line
- * @param PHP_Token_Stream $tokenStream
- * @param integer $id
- */
- public function __construct($text, $line, PHP_Token_Stream $tokenStream, $id)
- {
- $this->text = $text;
- $this->line = $line;
- $this->tokenStream = $tokenStream;
- $this->id = $id;
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- return $this->text;
- }
-
- /**
- * @return integer
- */
- public function getLine()
- {
- return $this->line;
- }
-}
-
-abstract class PHP_TokenWithScope extends PHP_Token
-{
- /**
- * @var integer
- */
- protected $endTokenId;
-
- /**
- * Get the docblock for this token
- *
- * This method will fetch the docblock belonging to the current token. The
- * docblock must be placed on the line directly above the token to be
- * recognized.
- *
- * @return string|null Returns the docblock as a string if found
- */
- public function getDocblock()
- {
- $tokens = $this->tokenStream->tokens();
- $currentLineNumber = $tokens[$this->id]->getLine();
- $prevLineNumber = $currentLineNumber - 1;
-
- for ($i = $this->id - 1; $i; $i--) {
- if (!isset($tokens[$i])) {
- return;
- }
-
- if ($tokens[$i] instanceof PHP_Token_FUNCTION ||
- $tokens[$i] instanceof PHP_Token_CLASS ||
- $tokens[$i] instanceof PHP_Token_TRAIT) {
- // Some other trait, class or function, no docblock can be
- // used for the current token
- break;
- }
-
- $line = $tokens[$i]->getLine();
-
- if ($line == $currentLineNumber ||
- ($line == $prevLineNumber &&
- $tokens[$i] instanceof PHP_Token_WHITESPACE)) {
- continue;
- }
-
- if ($line < $currentLineNumber &&
- !$tokens[$i] instanceof PHP_Token_DOC_COMMENT) {
- break;
- }
-
- return (string)$tokens[$i];
- }
- }
-
- /**
- * @return integer
- */
- public function getEndTokenId()
- {
- $block = 0;
- $i = $this->id;
- $tokens = $this->tokenStream->tokens();
-
- while ($this->endTokenId === null && isset($tokens[$i])) {
- if ($tokens[$i] instanceof PHP_Token_OPEN_CURLY ||
- $tokens[$i] instanceof PHP_Token_CURLY_OPEN) {
- $block++;
- } elseif ($tokens[$i] instanceof PHP_Token_CLOSE_CURLY) {
- $block--;
-
- if ($block === 0) {
- $this->endTokenId = $i;
- }
- } elseif (($this instanceof PHP_Token_FUNCTION ||
- $this instanceof PHP_Token_NAMESPACE) &&
- $tokens[$i] instanceof PHP_Token_SEMICOLON) {
- if ($block === 0) {
- $this->endTokenId = $i;
- }
- }
-
- $i++;
- }
-
- if ($this->endTokenId === null) {
- $this->endTokenId = $this->id;
- }
-
- return $this->endTokenId;
- }
-
- /**
- * @return integer
- */
- public function getEndLine()
- {
- return $this->tokenStream[$this->getEndTokenId()]->getLine();
- }
-}
-
-abstract class PHP_TokenWithScopeAndVisibility extends PHP_TokenWithScope
-{
- /**
- * @return string
- */
- public function getVisibility()
- {
- $tokens = $this->tokenStream->tokens();
-
- for ($i = $this->id - 2; $i > $this->id - 7; $i -= 2) {
- if (isset($tokens[$i]) &&
- ($tokens[$i] instanceof PHP_Token_PRIVATE ||
- $tokens[$i] instanceof PHP_Token_PROTECTED ||
- $tokens[$i] instanceof PHP_Token_PUBLIC)) {
- return strtolower(
- str_replace('PHP_Token_', '', get_class($tokens[$i]))
- );
- }
- if (isset($tokens[$i]) &&
- !($tokens[$i] instanceof PHP_Token_STATIC ||
- $tokens[$i] instanceof PHP_Token_FINAL ||
- $tokens[$i] instanceof PHP_Token_ABSTRACT)) {
- // no keywords; stop visibility search
- break;
- }
- }
- }
-
- /**
- * @return string
- */
- public function getKeywords()
- {
- $keywords = array();
- $tokens = $this->tokenStream->tokens();
-
- for ($i = $this->id - 2; $i > $this->id - 7; $i -= 2) {
- if (isset($tokens[$i]) &&
- ($tokens[$i] instanceof PHP_Token_PRIVATE ||
- $tokens[$i] instanceof PHP_Token_PROTECTED ||
- $tokens[$i] instanceof PHP_Token_PUBLIC)) {
- continue;
- }
-
- if (isset($tokens[$i]) &&
- ($tokens[$i] instanceof PHP_Token_STATIC ||
- $tokens[$i] instanceof PHP_Token_FINAL ||
- $tokens[$i] instanceof PHP_Token_ABSTRACT)) {
- $keywords[] = strtolower(
- str_replace('PHP_Token_', '', get_class($tokens[$i]))
- );
- }
- }
-
- return implode(',', $keywords);
- }
-}
-
-abstract class PHP_Token_Includes extends PHP_Token
-{
- /**
- * @var string
- */
- protected $name;
-
- /**
- * @var string
- */
- protected $type;
-
- /**
- * @return string
- */
- public function getName()
- {
- if ($this->name === null) {
- $this->process();
- }
-
- return $this->name;
- }
-
- /**
- * @return string
- */
- public function getType()
- {
- if ($this->type === null) {
- $this->process();
- }
-
- return $this->type;
- }
-
- private function process()
- {
- $tokens = $this->tokenStream->tokens();
-
- if ($tokens[$this->id+2] instanceof PHP_Token_CONSTANT_ENCAPSED_STRING) {
- $this->name = trim($tokens[$this->id+2], "'\"");
- $this->type = strtolower(
- str_replace('PHP_Token_', '', get_class($tokens[$this->id]))
- );
- }
- }
-}
-
-
-class PHP_Token_FUNCTION extends PHP_TokenWithScopeAndVisibility
-{
- /**
- * @var array
- */
- protected $arguments;
-
- /**
- * @var integer
- */
- protected $ccn;
-
- /**
- * @var string
- */
- protected $name;
-
- /**
- * @var string
- */
- protected $signature;
-
- /**
- * @return array
- */
- public function getArguments()
- {
- if ($this->arguments !== null) {
- return $this->arguments;
- }
-
- $this->arguments = array();
- $tokens = $this->tokenStream->tokens();
- $typeDeclaration = null;
-
- // Search for first token inside brackets
- $i = $this->id + 2;
-
- while (!$tokens[$i-1] instanceof PHP_Token_OPEN_BRACKET) {
- $i++;
- }
-
- while (!$tokens[$i] instanceof PHP_Token_CLOSE_BRACKET) {
- if ($tokens[$i] instanceof PHP_Token_STRING) {
- $typeDeclaration = (string)$tokens[$i];
- } elseif ($tokens[$i] instanceof PHP_Token_VARIABLE) {
- $this->arguments[(string)$tokens[$i]] = $typeDeclaration;
- $typeDeclaration = null;
- }
-
- $i++;
- }
-
- return $this->arguments;
- }
-
- /**
- * @return string
- */
- public function getName()
- {
- if ($this->name !== null) {
- return $this->name;
- }
-
- $tokens = $this->tokenStream->tokens();
-
- for ($i = $this->id + 1; $i < count($tokens); $i++) {
- if ($tokens[$i] instanceof PHP_Token_STRING) {
- $this->name = (string)$tokens[$i];
- break;
- } elseif ($tokens[$i] instanceof PHP_Token_AMPERSAND &&
- $tokens[$i+1] instanceof PHP_Token_STRING) {
- $this->name = (string)$tokens[$i+1];
- break;
- } elseif ($tokens[$i] instanceof PHP_Token_OPEN_BRACKET) {
- $this->name = 'anonymous function';
- break;
- }
- }
-
- if ($this->name != 'anonymous function') {
- for ($i = $this->id; $i; --$i) {
- if ($tokens[$i] instanceof PHP_Token_NAMESPACE) {
- $this->name = $tokens[$i]->getName() . '\\' . $this->name;
- break;
- }
-
- if ($tokens[$i] instanceof PHP_Token_INTERFACE) {
- break;
- }
- }
- }
-
- return $this->name;
- }
-
- /**
- * @return integer
- */
- public function getCCN()
- {
- if ($this->ccn !== null) {
- return $this->ccn;
- }
-
- $this->ccn = 1;
- $end = $this->getEndTokenId();
- $tokens = $this->tokenStream->tokens();
-
- for ($i = $this->id; $i <= $end; $i++) {
- switch (get_class($tokens[$i])) {
- case 'PHP_Token_IF':
- case 'PHP_Token_ELSEIF':
- case 'PHP_Token_FOR':
- case 'PHP_Token_FOREACH':
- case 'PHP_Token_WHILE':
- case 'PHP_Token_CASE':
- case 'PHP_Token_CATCH':
- case 'PHP_Token_BOOLEAN_AND':
- case 'PHP_Token_LOGICAL_AND':
- case 'PHP_Token_BOOLEAN_OR':
- case 'PHP_Token_LOGICAL_OR':
- case 'PHP_Token_QUESTION_MARK':
- $this->ccn++;
- break;
- }
- }
-
- return $this->ccn;
- }
-
- /**
- * @return string
- */
- public function getSignature()
- {
- if ($this->signature !== null) {
- return $this->signature;
- }
-
- if ($this->getName() == 'anonymous function') {
- $this->signature = 'anonymous function';
- $i = $this->id + 1;
- } else {
- $this->signature = '';
- $i = $this->id + 2;
- }
-
- $tokens = $this->tokenStream->tokens();
-
- while (isset($tokens[$i]) &&
- !$tokens[$i] instanceof PHP_Token_OPEN_CURLY &&
- !$tokens[$i] instanceof PHP_Token_SEMICOLON) {
- $this->signature .= $tokens[$i++];
- }
-
- $this->signature = trim($this->signature);
-
- return $this->signature;
- }
-}
-
-class PHP_Token_INTERFACE extends PHP_TokenWithScopeAndVisibility
-{
- /**
- * @var array
- */
- protected $interfaces;
-
- /**
- * @return string
- */
- public function getName()
- {
- return (string)$this->tokenStream[$this->id + 2];
- }
-
- /**
- * @return boolean
- */
- public function hasParent()
- {
- return $this->tokenStream[$this->id + 4] instanceof PHP_Token_EXTENDS;
- }
-
- /**
- * @return array
- */
- public function getPackage()
- {
- $className = $this->getName();
- $docComment = $this->getDocblock();
-
- $result = array(
- 'namespace' => '',
- 'fullPackage' => '',
- 'category' => '',
- 'package' => '',
- 'subpackage' => ''
- );
-
- for ($i = $this->id; $i; --$i) {
- if ($this->tokenStream[$i] instanceof PHP_Token_NAMESPACE) {
- $result['namespace'] = $this->tokenStream[$i]->getName();
- break;
- }
- }
-
- if (preg_match('/@category[\s]+([\.\w]+)/', $docComment, $matches)) {
- $result['category'] = $matches[1];
- }
-
- if (preg_match('/@package[\s]+([\.\w]+)/', $docComment, $matches)) {
- $result['package'] = $matches[1];
- $result['fullPackage'] = $matches[1];
- }
-
- if (preg_match('/@subpackage[\s]+([\.\w]+)/', $docComment, $matches)) {
- $result['subpackage'] = $matches[1];
- $result['fullPackage'] .= '.' . $matches[1];
- }
-
- if (empty($result['fullPackage'])) {
- $result['fullPackage'] = $this->arrayToName(
- explode('_', str_replace('\\', '_', $className)),
- '.'
- );
- }
-
- return $result;
- }
-
- /**
- * @param array $parts
- * @param string $join
- * @return string
- */
- protected function arrayToName(array $parts, $join = '\\')
- {
- $result = '';
-
- if (count($parts) > 1) {
- array_pop($parts);
-
- $result = join($join, $parts);
- }
-
- return $result;
- }
-
- /**
- * @return boolean|string
- */
- public function getParent()
- {
- if (!$this->hasParent()) {
- return false;
- }
-
- $i = $this->id + 6;
- $tokens = $this->tokenStream->tokens();
- $className = (string)$tokens[$i];
-
- while (isset($tokens[$i+1]) &&
- !$tokens[$i+1] instanceof PHP_Token_WHITESPACE) {
- $className .= (string)$tokens[++$i];
- }
-
- return $className;
- }
-
- /**
- * @return boolean
- */
- public function hasInterfaces()
- {
- return (isset($this->tokenStream[$this->id + 4]) &&
- $this->tokenStream[$this->id + 4] instanceof PHP_Token_IMPLEMENTS) ||
- (isset($this->tokenStream[$this->id + 8]) &&
- $this->tokenStream[$this->id + 8] instanceof PHP_Token_IMPLEMENTS);
- }
-
- /**
- * @return array|boolean
- */
- public function getInterfaces()
- {
- if ($this->interfaces !== null) {
- return $this->interfaces;
- }
-
- if (!$this->hasInterfaces()) {
- return ($this->interfaces = false);
- }
-
- if ($this->tokenStream[$this->id + 4] instanceof PHP_Token_IMPLEMENTS) {
- $i = $this->id + 3;
- } else {
- $i = $this->id + 7;
- }
-
- $tokens = $this->tokenStream->tokens();
-
- while (!$tokens[$i+1] instanceof PHP_Token_OPEN_CURLY) {
- $i++;
-
- if ($tokens[$i] instanceof PHP_Token_STRING) {
- $this->interfaces[] = (string)$tokens[$i];
- }
- }
-
- return $this->interfaces;
- }
-}
-
-class PHP_Token_ABSTRACT extends PHP_Token {}
-class PHP_Token_AMPERSAND extends PHP_Token {}
-class PHP_Token_AND_EQUAL extends PHP_Token {}
-class PHP_Token_ARRAY extends PHP_Token {}
-class PHP_Token_ARRAY_CAST extends PHP_Token {}
-class PHP_Token_AS extends PHP_Token {}
-class PHP_Token_AT extends PHP_Token {}
-class PHP_Token_BACKTICK extends PHP_Token {}
-class PHP_Token_BAD_CHARACTER extends PHP_Token {}
-class PHP_Token_BOOLEAN_AND extends PHP_Token {}
-class PHP_Token_BOOLEAN_OR extends PHP_Token {}
-class PHP_Token_BOOL_CAST extends PHP_Token {}
-class PHP_Token_BREAK extends PHP_Token {}
-class PHP_Token_CARET extends PHP_Token {}
-class PHP_Token_CASE extends PHP_Token {}
-class PHP_Token_CATCH extends PHP_Token {}
-class PHP_Token_CHARACTER extends PHP_Token {}
-
-class PHP_Token_CLASS extends PHP_Token_INTERFACE
-{
- /**
- * @return string
- */
- public function getName()
- {
- $next = $this->tokenStream[$this->id + 1];
-
- if ($next instanceof PHP_Token_WHITESPACE) {
- $next = $this->tokenStream[$this->id + 2];
- }
-
- if ($next instanceof PHP_Token_STRING) {
- return (string) $next;
- }
-
- if ($next instanceof PHP_Token_OPEN_CURLY ||
- $next instanceof PHP_Token_EXTENDS ||
- $next instanceof PHP_Token_IMPLEMENTS) {
- return 'anonymous class';
- }
- }
-}
-
-class PHP_Token_CLASS_C extends PHP_Token {}
-class PHP_Token_CLASS_NAME_CONSTANT extends PHP_Token {}
-class PHP_Token_CLONE extends PHP_Token {}
-class PHP_Token_CLOSE_BRACKET extends PHP_Token {}
-class PHP_Token_CLOSE_CURLY extends PHP_Token {}
-class PHP_Token_CLOSE_SQUARE extends PHP_Token {}
-class PHP_Token_CLOSE_TAG extends PHP_Token {}
-class PHP_Token_COLON extends PHP_Token {}
-class PHP_Token_COMMA extends PHP_Token {}
-class PHP_Token_COMMENT extends PHP_Token {}
-class PHP_Token_CONCAT_EQUAL extends PHP_Token {}
-class PHP_Token_CONST extends PHP_Token {}
-class PHP_Token_CONSTANT_ENCAPSED_STRING extends PHP_Token {}
-class PHP_Token_CONTINUE extends PHP_Token {}
-class PHP_Token_CURLY_OPEN extends PHP_Token {}
-class PHP_Token_DEC extends PHP_Token {}
-class PHP_Token_DECLARE extends PHP_Token {}
-class PHP_Token_DEFAULT extends PHP_Token {}
-class PHP_Token_DIV extends PHP_Token {}
-class PHP_Token_DIV_EQUAL extends PHP_Token {}
-class PHP_Token_DNUMBER extends PHP_Token {}
-class PHP_Token_DO extends PHP_Token {}
-class PHP_Token_DOC_COMMENT extends PHP_Token {}
-class PHP_Token_DOLLAR extends PHP_Token {}
-class PHP_Token_DOLLAR_OPEN_CURLY_BRACES extends PHP_Token {}
-class PHP_Token_DOT extends PHP_Token {}
-class PHP_Token_DOUBLE_ARROW extends PHP_Token {}
-class PHP_Token_DOUBLE_CAST extends PHP_Token {}
-class PHP_Token_DOUBLE_COLON extends PHP_Token {}
-class PHP_Token_DOUBLE_QUOTES extends PHP_Token {}
-class PHP_Token_ECHO extends PHP_Token {}
-class PHP_Token_ELSE extends PHP_Token {}
-class PHP_Token_ELSEIF extends PHP_Token {}
-class PHP_Token_EMPTY extends PHP_Token {}
-class PHP_Token_ENCAPSED_AND_WHITESPACE extends PHP_Token {}
-class PHP_Token_ENDDECLARE extends PHP_Token {}
-class PHP_Token_ENDFOR extends PHP_Token {}
-class PHP_Token_ENDFOREACH extends PHP_Token {}
-class PHP_Token_ENDIF extends PHP_Token {}
-class PHP_Token_ENDSWITCH extends PHP_Token {}
-class PHP_Token_ENDWHILE extends PHP_Token {}
-class PHP_Token_END_HEREDOC extends PHP_Token {}
-class PHP_Token_EQUAL extends PHP_Token {}
-class PHP_Token_EVAL extends PHP_Token {}
-class PHP_Token_EXCLAMATION_MARK extends PHP_Token {}
-class PHP_Token_EXIT extends PHP_Token {}
-class PHP_Token_EXTENDS extends PHP_Token {}
-class PHP_Token_FILE extends PHP_Token {}
-class PHP_Token_FINAL extends PHP_Token {}
-class PHP_Token_FOR extends PHP_Token {}
-class PHP_Token_FOREACH extends PHP_Token {}
-class PHP_Token_FUNC_C extends PHP_Token {}
-class PHP_Token_GLOBAL extends PHP_Token {}
-class PHP_Token_GT extends PHP_Token {}
-class PHP_Token_IF extends PHP_Token {}
-class PHP_Token_IMPLEMENTS extends PHP_Token {}
-class PHP_Token_INC extends PHP_Token {}
-class PHP_Token_INCLUDE extends PHP_Token_Includes {}
-class PHP_Token_INCLUDE_ONCE extends PHP_Token_Includes {}
-class PHP_Token_INLINE_HTML extends PHP_Token {}
-class PHP_Token_INSTANCEOF extends PHP_Token {}
-class PHP_Token_INT_CAST extends PHP_Token {}
-class PHP_Token_ISSET extends PHP_Token {}
-class PHP_Token_IS_EQUAL extends PHP_Token {}
-class PHP_Token_IS_GREATER_OR_EQUAL extends PHP_Token {}
-class PHP_Token_IS_IDENTICAL extends PHP_Token {}
-class PHP_Token_IS_NOT_EQUAL extends PHP_Token {}
-class PHP_Token_IS_NOT_IDENTICAL extends PHP_Token {}
-class PHP_Token_IS_SMALLER_OR_EQUAL extends PHP_Token {}
-class PHP_Token_LINE extends PHP_Token {}
-class PHP_Token_LIST extends PHP_Token {}
-class PHP_Token_LNUMBER extends PHP_Token {}
-class PHP_Token_LOGICAL_AND extends PHP_Token {}
-class PHP_Token_LOGICAL_OR extends PHP_Token {}
-class PHP_Token_LOGICAL_XOR extends PHP_Token {}
-class PHP_Token_LT extends PHP_Token {}
-class PHP_Token_METHOD_C extends PHP_Token {}
-class PHP_Token_MINUS extends PHP_Token {}
-class PHP_Token_MINUS_EQUAL extends PHP_Token {}
-class PHP_Token_MOD_EQUAL extends PHP_Token {}
-class PHP_Token_MULT extends PHP_Token {}
-class PHP_Token_MUL_EQUAL extends PHP_Token {}
-class PHP_Token_NEW extends PHP_Token {}
-class PHP_Token_NUM_STRING extends PHP_Token {}
-class PHP_Token_OBJECT_CAST extends PHP_Token {}
-class PHP_Token_OBJECT_OPERATOR extends PHP_Token {}
-class PHP_Token_OPEN_BRACKET extends PHP_Token {}
-class PHP_Token_OPEN_CURLY extends PHP_Token {}
-class PHP_Token_OPEN_SQUARE extends PHP_Token {}
-class PHP_Token_OPEN_TAG extends PHP_Token {}
-class PHP_Token_OPEN_TAG_WITH_ECHO extends PHP_Token {}
-class PHP_Token_OR_EQUAL extends PHP_Token {}
-class PHP_Token_PAAMAYIM_NEKUDOTAYIM extends PHP_Token {}
-class PHP_Token_PERCENT extends PHP_Token {}
-class PHP_Token_PIPE extends PHP_Token {}
-class PHP_Token_PLUS extends PHP_Token {}
-class PHP_Token_PLUS_EQUAL extends PHP_Token {}
-class PHP_Token_PRINT extends PHP_Token {}
-class PHP_Token_PRIVATE extends PHP_Token {}
-class PHP_Token_PROTECTED extends PHP_Token {}
-class PHP_Token_PUBLIC extends PHP_Token {}
-class PHP_Token_QUESTION_MARK extends PHP_Token {}
-class PHP_Token_REQUIRE extends PHP_Token_Includes {}
-class PHP_Token_REQUIRE_ONCE extends PHP_Token_Includes {}
-class PHP_Token_RETURN extends PHP_Token {}
-class PHP_Token_SEMICOLON extends PHP_Token {}
-class PHP_Token_SL extends PHP_Token {}
-class PHP_Token_SL_EQUAL extends PHP_Token {}
-class PHP_Token_SR extends PHP_Token {}
-class PHP_Token_SR_EQUAL extends PHP_Token {}
-class PHP_Token_START_HEREDOC extends PHP_Token {}
-class PHP_Token_STATIC extends PHP_Token {}
-class PHP_Token_STRING extends PHP_Token {}
-class PHP_Token_STRING_CAST extends PHP_Token {}
-class PHP_Token_STRING_VARNAME extends PHP_Token {}
-class PHP_Token_SWITCH extends PHP_Token {}
-class PHP_Token_THROW extends PHP_Token {}
-class PHP_Token_TILDE extends PHP_Token {}
-class PHP_Token_TRY extends PHP_Token {}
-class PHP_Token_UNSET extends PHP_Token {}
-class PHP_Token_UNSET_CAST extends PHP_Token {}
-class PHP_Token_USE extends PHP_Token {}
-class PHP_Token_USE_FUNCTION extends PHP_Token {}
-class PHP_Token_VAR extends PHP_Token {}
-class PHP_Token_VARIABLE extends PHP_Token {}
-class PHP_Token_WHILE extends PHP_Token {}
-class PHP_Token_WHITESPACE extends PHP_Token {}
-class PHP_Token_XOR_EQUAL extends PHP_Token {}
-
-// Tokens introduced in PHP 5.1
-class PHP_Token_HALT_COMPILER extends PHP_Token {}
-
-// Tokens introduced in PHP 5.3
-class PHP_Token_DIR extends PHP_Token {}
-class PHP_Token_GOTO extends PHP_Token {}
-
-class PHP_Token_NAMESPACE extends PHP_TokenWithScope
-{
- /**
- * @return string
- */
- public function getName()
- {
- $tokens = $this->tokenStream->tokens();
- $namespace = (string)$tokens[$this->id+2];
-
- for ($i = $this->id + 3;; $i += 2) {
- if (isset($tokens[$i]) &&
- $tokens[$i] instanceof PHP_Token_NS_SEPARATOR) {
- $namespace .= '\\' . $tokens[$i+1];
- } else {
- break;
- }
- }
-
- return $namespace;
- }
-}
-
-class PHP_Token_NS_C extends PHP_Token {}
-class PHP_Token_NS_SEPARATOR extends PHP_Token {}
-
-// Tokens introduced in PHP 5.4
-class PHP_Token_CALLABLE extends PHP_Token {}
-class PHP_Token_INSTEADOF extends PHP_Token {}
-class PHP_Token_TRAIT extends PHP_Token_INTERFACE {}
-class PHP_Token_TRAIT_C extends PHP_Token {}
-
-// Tokens introduced in PHP 5.5
-class PHP_Token_FINALLY extends PHP_Token {}
-class PHP_Token_YIELD extends PHP_Token {}
-
-// Tokens introduced in PHP 5.6
-class PHP_Token_ELLIPSIS extends PHP_Token {}
-class PHP_Token_POW extends PHP_Token {}
-class PHP_Token_POW_EQUAL extends PHP_Token {}
-
-// Tokens introduced in PHP 7.0
-class PHP_Token_COALESCE extends PHP_Token {}
-class PHP_Token_SPACESHIP extends PHP_Token {}
-class PHP_Token_YIELD_FROM extends PHP_Token {}
-
-// Tokens introduced in HackLang / HHVM
-class PHP_Token_ASYNC extends PHP_Token {}
-class PHP_Token_AWAIT extends PHP_Token {}
-class PHP_Token_COMPILER_HALT_OFFSET extends PHP_Token {}
-class PHP_Token_ENUM extends PHP_Token {}
-class PHP_Token_EQUALS extends PHP_Token {}
-class PHP_Token_IN extends PHP_Token {}
-class PHP_Token_JOIN extends PHP_Token {}
-class PHP_Token_LAMBDA_ARROW extends PHP_Token {}
-class PHP_Token_LAMBDA_CP extends PHP_Token {}
-class PHP_Token_LAMBDA_OP extends PHP_Token {}
-class PHP_Token_ONUMBER extends PHP_Token {}
-class PHP_Token_NULLSAFE_OBJECT_OPERATOR extends PHP_Token {}
-class PHP_Token_SHAPE extends PHP_Token {}
-class PHP_Token_SUPER extends PHP_Token {}
-class PHP_Token_TYPE extends PHP_Token {}
-class PHP_Token_TYPELIST_GT extends PHP_Token {}
-class PHP_Token_TYPELIST_LT extends PHP_Token {}
-class PHP_Token_WHERE extends PHP_Token {}
-class PHP_Token_XHP_ATTRIBUTE extends PHP_Token {}
-class PHP_Token_XHP_CATEGORY extends PHP_Token {}
-class PHP_Token_XHP_CATEGORY_LABEL extends PHP_Token {}
-class PHP_Token_XHP_CHILDREN extends PHP_Token {}
-class PHP_Token_XHP_LABEL extends PHP_Token {}
-class PHP_Token_XHP_REQUIRED extends PHP_Token {}
-class PHP_Token_XHP_TAG_GT extends PHP_Token {}
-class PHP_Token_XHP_TAG_LT extends PHP_Token {}
-class PHP_Token_XHP_TEXT extends PHP_Token {}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/src/Token/Stream.php b/www/wiki/vendor/phpunit/php-token-stream/src/Token/Stream.php
deleted file mode 100644
index c536d686..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/src/Token/Stream.php
+++ /dev/null
@@ -1,613 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_TokenStream package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A stream of PHP tokens.
- *
- * @author Sebastian Bergmann <sebastian@phpunit.de>
- * @copyright Sebastian Bergmann <sebastian@phpunit.de>
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
- * @link http://github.com/sebastianbergmann/php-token-stream/tree
- * @since Class available since Release 1.0.0
- */
-class PHP_Token_Stream implements ArrayAccess, Countable, SeekableIterator
-{
- /**
- * @var array
- */
- protected static $customTokens = array(
- '(' => 'PHP_Token_OPEN_BRACKET',
- ')' => 'PHP_Token_CLOSE_BRACKET',
- '[' => 'PHP_Token_OPEN_SQUARE',
- ']' => 'PHP_Token_CLOSE_SQUARE',
- '{' => 'PHP_Token_OPEN_CURLY',
- '}' => 'PHP_Token_CLOSE_CURLY',
- ';' => 'PHP_Token_SEMICOLON',
- '.' => 'PHP_Token_DOT',
- ',' => 'PHP_Token_COMMA',
- '=' => 'PHP_Token_EQUAL',
- '<' => 'PHP_Token_LT',
- '>' => 'PHP_Token_GT',
- '+' => 'PHP_Token_PLUS',
- '-' => 'PHP_Token_MINUS',
- '*' => 'PHP_Token_MULT',
- '/' => 'PHP_Token_DIV',
- '?' => 'PHP_Token_QUESTION_MARK',
- '!' => 'PHP_Token_EXCLAMATION_MARK',
- ':' => 'PHP_Token_COLON',
- '"' => 'PHP_Token_DOUBLE_QUOTES',
- '@' => 'PHP_Token_AT',
- '&' => 'PHP_Token_AMPERSAND',
- '%' => 'PHP_Token_PERCENT',
- '|' => 'PHP_Token_PIPE',
- '$' => 'PHP_Token_DOLLAR',
- '^' => 'PHP_Token_CARET',
- '~' => 'PHP_Token_TILDE',
- '`' => 'PHP_Token_BACKTICK'
- );
-
- /**
- * @var string
- */
- protected $filename;
-
- /**
- * @var array
- */
- protected $tokens = array();
-
- /**
- * @var integer
- */
- protected $position = 0;
-
- /**
- * @var array
- */
- protected $linesOfCode = array('loc' => 0, 'cloc' => 0, 'ncloc' => 0);
-
- /**
- * @var array
- */
- protected $classes;
-
- /**
- * @var array
- */
- protected $functions;
-
- /**
- * @var array
- */
- protected $includes;
-
- /**
- * @var array
- */
- protected $interfaces;
-
- /**
- * @var array
- */
- protected $traits;
-
- /**
- * @var array
- */
- protected $lineToFunctionMap = array();
-
- /**
- * Constructor.
- *
- * @param string $sourceCode
- */
- public function __construct($sourceCode)
- {
- if (is_file($sourceCode)) {
- $this->filename = $sourceCode;
- $sourceCode = file_get_contents($sourceCode);
- }
-
- $this->scan($sourceCode);
- }
-
- /**
- * Destructor.
- */
- public function __destruct()
- {
- $this->tokens = array();
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- $buffer = '';
-
- foreach ($this as $token) {
- $buffer .= $token;
- }
-
- return $buffer;
- }
-
- /**
- * @return string
- * @since Method available since Release 1.1.0
- */
- public function getFilename()
- {
- return $this->filename;
- }
-
- /**
- * Scans the source for sequences of characters and converts them into a
- * stream of tokens.
- *
- * @param string $sourceCode
- */
- protected function scan($sourceCode)
- {
- $id = 0;
- $line = 1;
- $tokens = token_get_all($sourceCode);
- $numTokens = count($tokens);
-
- $lastNonWhitespaceTokenWasDoubleColon = false;
-
- for ($i = 0; $i < $numTokens; ++$i) {
- $token = $tokens[$i];
- $skip = 0;
-
- if (is_array($token)) {
- $name = substr(token_name($token[0]), 2);
- $text = $token[1];
-
- if ($lastNonWhitespaceTokenWasDoubleColon && $name == 'CLASS') {
- $name = 'CLASS_NAME_CONSTANT';
- } elseif ($name == 'USE' && isset($tokens[$i+2][0]) && $tokens[$i+2][0] == T_FUNCTION) {
- $name = 'USE_FUNCTION';
- $text .= $tokens[$i+1][1] . $tokens[$i+2][1];
- $skip = 2;
- }
-
- $tokenClass = 'PHP_Token_' . $name;
- } else {
- $text = $token;
- $tokenClass = self::$customTokens[$token];
- }
-
- $this->tokens[] = new $tokenClass($text, $line, $this, $id++);
- $lines = substr_count($text, "\n");
- $line += $lines;
-
- if ($tokenClass == 'PHP_Token_HALT_COMPILER') {
- break;
- } elseif ($tokenClass == 'PHP_Token_COMMENT' ||
- $tokenClass == 'PHP_Token_DOC_COMMENT') {
- $this->linesOfCode['cloc'] += $lines + 1;
- }
-
- if ($name == 'DOUBLE_COLON') {
- $lastNonWhitespaceTokenWasDoubleColon = true;
- } elseif ($name != 'WHITESPACE') {
- $lastNonWhitespaceTokenWasDoubleColon = false;
- }
-
- $i += $skip;
- }
-
- $this->linesOfCode['loc'] = substr_count($sourceCode, "\n");
- $this->linesOfCode['ncloc'] = $this->linesOfCode['loc'] -
- $this->linesOfCode['cloc'];
- }
-
- /**
- * @return integer
- */
- public function count()
- {
- return count($this->tokens);
- }
-
- /**
- * @return PHP_Token[]
- */
- public function tokens()
- {
- return $this->tokens;
- }
-
- /**
- * @return array
- */
- public function getClasses()
- {
- if ($this->classes !== null) {
- return $this->classes;
- }
-
- $this->parse();
-
- return $this->classes;
- }
-
- /**
- * @return array
- */
- public function getFunctions()
- {
- if ($this->functions !== null) {
- return $this->functions;
- }
-
- $this->parse();
-
- return $this->functions;
- }
-
- /**
- * @return array
- */
- public function getInterfaces()
- {
- if ($this->interfaces !== null) {
- return $this->interfaces;
- }
-
- $this->parse();
-
- return $this->interfaces;
- }
-
- /**
- * @return array
- * @since Method available since Release 1.1.0
- */
- public function getTraits()
- {
- if ($this->traits !== null) {
- return $this->traits;
- }
-
- $this->parse();
-
- return $this->traits;
- }
-
- /**
- * Gets the names of all files that have been included
- * using include(), include_once(), require() or require_once().
- *
- * Parameter $categorize set to TRUE causing this function to return a
- * multi-dimensional array with categories in the keys of the first dimension
- * and constants and their values in the second dimension.
- *
- * Parameter $category allow to filter following specific inclusion type
- *
- * @param bool $categorize OPTIONAL
- * @param string $category OPTIONAL Either 'require_once', 'require',
- * 'include_once', 'include'.
- * @return array
- * @since Method available since Release 1.1.0
- */
- public function getIncludes($categorize = false, $category = null)
- {
- if ($this->includes === null) {
- $this->includes = array(
- 'require_once' => array(),
- 'require' => array(),
- 'include_once' => array(),
- 'include' => array()
- );
-
- foreach ($this->tokens as $token) {
- switch (get_class($token)) {
- case 'PHP_Token_REQUIRE_ONCE':
- case 'PHP_Token_REQUIRE':
- case 'PHP_Token_INCLUDE_ONCE':
- case 'PHP_Token_INCLUDE':
- $this->includes[$token->getType()][] = $token->getName();
- break;
- }
- }
- }
-
- if (isset($this->includes[$category])) {
- $includes = $this->includes[$category];
- } elseif ($categorize === false) {
- $includes = array_merge(
- $this->includes['require_once'],
- $this->includes['require'],
- $this->includes['include_once'],
- $this->includes['include']
- );
- } else {
- $includes = $this->includes;
- }
-
- return $includes;
- }
-
- /**
- * Returns the name of the function or method a line belongs to.
- *
- * @return string or null if the line is not in a function or method
- * @since Method available since Release 1.2.0
- */
- public function getFunctionForLine($line)
- {
- $this->parse();
-
- if (isset($this->lineToFunctionMap[$line])) {
- return $this->lineToFunctionMap[$line];
- }
- }
-
- protected function parse()
- {
- $this->interfaces = array();
- $this->classes = array();
- $this->traits = array();
- $this->functions = array();
- $class = array();
- $classEndLine = array();
- $trait = false;
- $traitEndLine = false;
- $interface = false;
- $interfaceEndLine = false;
-
- foreach ($this->tokens as $token) {
- switch (get_class($token)) {
- case 'PHP_Token_HALT_COMPILER':
- return;
-
- case 'PHP_Token_INTERFACE':
- $interface = $token->getName();
- $interfaceEndLine = $token->getEndLine();
-
- $this->interfaces[$interface] = array(
- 'methods' => array(),
- 'parent' => $token->getParent(),
- 'keywords' => $token->getKeywords(),
- 'docblock' => $token->getDocblock(),
- 'startLine' => $token->getLine(),
- 'endLine' => $interfaceEndLine,
- 'package' => $token->getPackage(),
- 'file' => $this->filename
- );
- break;
-
- case 'PHP_Token_CLASS':
- case 'PHP_Token_TRAIT':
- $tmp = array(
- 'methods' => array(),
- 'parent' => $token->getParent(),
- 'interfaces'=> $token->getInterfaces(),
- 'keywords' => $token->getKeywords(),
- 'docblock' => $token->getDocblock(),
- 'startLine' => $token->getLine(),
- 'endLine' => $token->getEndLine(),
- 'package' => $token->getPackage(),
- 'file' => $this->filename
- );
-
- if ($token instanceof PHP_Token_CLASS) {
- $class[] = $token->getName();
- $classEndLine[] = $token->getEndLine();
-
- if ($class[count($class)-1] != 'anonymous class') {
- $this->classes[$class[count($class)-1]] = $tmp;
- }
- } else {
- $trait = $token->getName();
- $traitEndLine = $token->getEndLine();
- $this->traits[$trait] = $tmp;
- }
- break;
-
- case 'PHP_Token_FUNCTION':
- $name = $token->getName();
- $tmp = array(
- 'docblock' => $token->getDocblock(),
- 'keywords' => $token->getKeywords(),
- 'visibility'=> $token->getVisibility(),
- 'signature' => $token->getSignature(),
- 'startLine' => $token->getLine(),
- 'endLine' => $token->getEndLine(),
- 'ccn' => $token->getCCN(),
- 'file' => $this->filename
- );
-
- if (empty($class) &&
- $trait === false &&
- $interface === false) {
- $this->functions[$name] = $tmp;
-
- $this->addFunctionToMap(
- $name,
- $tmp['startLine'],
- $tmp['endLine']
- );
- } elseif (!empty($class) && $class[count($class)-1] != 'anonymous class') {
- $this->classes[$class[count($class)-1]]['methods'][$name] = $tmp;
-
- $this->addFunctionToMap(
- $class[count($class)-1] . '::' . $name,
- $tmp['startLine'],
- $tmp['endLine']
- );
- } elseif ($trait !== false) {
- $this->traits[$trait]['methods'][$name] = $tmp;
-
- $this->addFunctionToMap(
- $trait . '::' . $name,
- $tmp['startLine'],
- $tmp['endLine']
- );
- } else {
- $this->interfaces[$interface]['methods'][$name] = $tmp;
- }
- break;
-
- case 'PHP_Token_CLOSE_CURLY':
- if (!empty($classEndLine) &&
- $classEndLine[count($classEndLine)-1] == $token->getLine()) {
- array_pop($classEndLine);
- array_pop($class);
- } elseif ($traitEndLine !== false &&
- $traitEndLine == $token->getLine()) {
- $trait = false;
- $traitEndLine = false;
- } elseif ($interfaceEndLine !== false &&
- $interfaceEndLine == $token->getLine()) {
- $interface = false;
- $interfaceEndLine = false;
- }
- break;
- }
- }
- }
-
- /**
- * @return array
- */
- public function getLinesOfCode()
- {
- return $this->linesOfCode;
- }
-
- /**
- */
- public function rewind()
- {
- $this->position = 0;
- }
-
- /**
- * @return boolean
- */
- public function valid()
- {
- return isset($this->tokens[$this->position]);
- }
-
- /**
- * @return integer
- */
- public function key()
- {
- return $this->position;
- }
-
- /**
- * @return PHP_Token
- */
- public function current()
- {
- return $this->tokens[$this->position];
- }
-
- /**
- */
- public function next()
- {
- $this->position++;
- }
-
- /**
- * @param integer $offset
- * @return boolean
- */
- public function offsetExists($offset)
- {
- return isset($this->tokens[$offset]);
- }
-
- /**
- * @param integer $offset
- * @return mixed
- * @throws OutOfBoundsException
- */
- public function offsetGet($offset)
- {
- if (!$this->offsetExists($offset)) {
- throw new OutOfBoundsException(
- sprintf(
- 'No token at position "%s"',
- $offset
- )
- );
- }
-
- return $this->tokens[$offset];
- }
-
- /**
- * @param integer $offset
- * @param mixed $value
- */
- public function offsetSet($offset, $value)
- {
- $this->tokens[$offset] = $value;
- }
-
- /**
- * @param integer $offset
- * @throws OutOfBoundsException
- */
- public function offsetUnset($offset)
- {
- if (!$this->offsetExists($offset)) {
- throw new OutOfBoundsException(
- sprintf(
- 'No token at position "%s"',
- $offset
- )
- );
- }
-
- unset($this->tokens[$offset]);
- }
-
- /**
- * Seek to an absolute position.
- *
- * @param integer $position
- * @throws OutOfBoundsException
- */
- public function seek($position)
- {
- $this->position = $position;
-
- if (!$this->valid()) {
- throw new OutOfBoundsException(
- sprintf(
- 'No token at position "%s"',
- $this->position
- )
- );
- }
- }
-
- /**
- * @param string $name
- * @param integer $startLine
- * @param integer $endLine
- */
- private function addFunctionToMap($name, $startLine, $endLine)
- {
- for ($line = $startLine; $line <= $endLine; $line++) {
- $this->lineToFunctionMap[$line] = $name;
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/src/Token/Stream/CachingFactory.php b/www/wiki/vendor/phpunit/php-token-stream/src/Token/Stream/CachingFactory.php
deleted file mode 100644
index b41b25f6..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/src/Token/Stream/CachingFactory.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_TokenStream package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A caching factory for token stream objects.
- *
- * @author Sebastian Bergmann <sebastian@phpunit.de>
- * @copyright Sebastian Bergmann <sebastian@phpunit.de>
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
- * @link http://github.com/sebastianbergmann/php-token-stream/tree
- * @since Class available since Release 1.0.0
- */
-class PHP_Token_Stream_CachingFactory
-{
- /**
- * @var array
- */
- protected static $cache = array();
-
- /**
- * @param string $filename
- * @return PHP_Token_Stream
- */
- public static function get($filename)
- {
- if (!isset(self::$cache[$filename])) {
- self::$cache[$filename] = new PHP_Token_Stream($filename);
- }
-
- return self::$cache[$filename];
- }
-
- /**
- * @param string $filename
- */
- public static function clear($filename = null)
- {
- if (is_string($filename)) {
- unset(self::$cache[$filename]);
- } else {
- self::$cache = array();
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/ClassTest.php b/www/wiki/vendor/phpunit/php-token-stream/tests/Token/ClassTest.php
deleted file mode 100644
index d1b25d83..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/ClassTest.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_TokenStream package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Tests for the PHP_Token_CLASS class.
- *
- * @package PHP_TokenStream
- * @subpackage Tests
- * @author Laurent Laville <pear@laurent-laville.org>
- * @copyright Sebastian Bergmann <sebastian@phpunit.de>
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
- * @version Release: @package_version@
- * @link http://github.com/sebastianbergmann/php-token-stream/
- * @since Class available since Release 1.0.2
- */
-class PHP_Token_ClassTest extends PHPUnit_Framework_TestCase
-{
- protected $class;
- protected $function;
-
- protected function setUp()
- {
- $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source2.php');
-
- foreach ($ts as $token) {
- if ($token instanceof PHP_Token_CLASS) {
- $this->class = $token;
- }
-
- if ($token instanceof PHP_Token_FUNCTION) {
- $this->function = $token;
- break;
- }
- }
- }
-
- /**
- * @covers PHP_Token_CLASS::getKeywords
- */
- public function testGetClassKeywords()
- {
- $this->assertEquals('abstract', $this->class->getKeywords());
- }
-
- /**
- * @covers PHP_Token_FUNCTION::getKeywords
- */
- public function testGetFunctionKeywords()
- {
- $this->assertEquals('abstract,static', $this->function->getKeywords());
- }
-
- /**
- * @covers PHP_Token_FUNCTION::getVisibility
- */
- public function testGetFunctionVisibility()
- {
- $this->assertEquals('public', $this->function->getVisibility());
- }
-
- public function testIssue19()
- {
- $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'issue19.php');
-
- foreach ($ts as $token) {
- if ($token instanceof PHP_Token_CLASS) {
- $this->assertFalse($token->hasInterfaces());
- }
- }
- }
-
- public function testIssue30()
- {
- $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'issue30.php');
- $this->assertCount(1, $ts->getClasses());
- }
-
- /**
- * @requires PHP 7
- */
- public function testAnonymousClassesAreHandledCorrectly()
- {
- $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'class_with_method_that_declares_anonymous_class.php');
-
- $classes = $ts->getClasses();
-
- $this->assertEquals(array('class_with_method_that_declares_anonymous_class'), array_keys($classes));
- }
-
- /**
- * @requires PHP 7
- * @ticket https://github.com/sebastianbergmann/php-token-stream/issues/52
- */
- public function testAnonymousClassesAreHandledCorrectly2()
- {
- $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'class_with_method_that_declares_anonymous_class2.php');
-
- $classes = $ts->getClasses();
-
- $this->assertEquals(array('Test'), array_keys($classes));
- $this->assertEquals(array('methodOne', 'methodTwo'), array_keys($classes['Test']['methods']));
-
- $this->assertEmpty($ts->getFunctions());
- }
-
- /**
- * @requires PHP 5.6
- */
- public function testImportedFunctionsAreHandledCorrectly()
- {
- $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'classUsesNamespacedFunction.php');
-
- $this->assertEmpty($ts->getFunctions());
- $this->assertCount(1, $ts->getClasses());
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/ClosureTest.php b/www/wiki/vendor/phpunit/php-token-stream/tests/Token/ClosureTest.php
deleted file mode 100644
index f1e508cf..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/ClosureTest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_TokenStream package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Tests for the PHP_Token_FUNCTION class.
- *
- * @package PHP_TokenStream
- * @subpackage Tests
- * @author Sebastian Bergmann <sebastian@phpunit.de>
- * @copyright Sebastian Bergmann <sebastian@phpunit.de>
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
- * @version Release: @package_version@
- * @link http://github.com/sebastianbergmann/php-token-stream/
- * @since Class available since Release 1.0.0
- */
-class PHP_Token_ClosureTest extends PHPUnit_Framework_TestCase
-{
- protected $functions;
-
- protected function setUp()
- {
- $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'closure.php');
-
- foreach ($ts as $token) {
- if ($token instanceof PHP_Token_FUNCTION) {
- $this->functions[] = $token;
- }
- }
- }
-
- /**
- * @covers PHP_Token_FUNCTION::getArguments
- */
- public function testGetArguments()
- {
- $this->assertEquals(array('$foo' => null, '$bar' => null), $this->functions[0]->getArguments());
- $this->assertEquals(array('$foo' => 'Foo', '$bar' => null), $this->functions[1]->getArguments());
- $this->assertEquals(array('$foo' => null, '$bar' => null, '$baz' => null), $this->functions[2]->getArguments());
- $this->assertEquals(array('$foo' => 'Foo', '$bar' => null, '$baz' => null), $this->functions[3]->getArguments());
- $this->assertEquals(array(), $this->functions[4]->getArguments());
- $this->assertEquals(array(), $this->functions[5]->getArguments());
- }
-
- /**
- * @covers PHP_Token_FUNCTION::getName
- */
- public function testGetName()
- {
- $this->assertEquals('anonymous function', $this->functions[0]->getName());
- $this->assertEquals('anonymous function', $this->functions[1]->getName());
- $this->assertEquals('anonymous function', $this->functions[2]->getName());
- $this->assertEquals('anonymous function', $this->functions[3]->getName());
- $this->assertEquals('anonymous function', $this->functions[4]->getName());
- $this->assertEquals('anonymous function', $this->functions[5]->getName());
- }
-
- /**
- * @covers PHP_Token::getLine
- */
- public function testGetLine()
- {
- $this->assertEquals(2, $this->functions[0]->getLine());
- $this->assertEquals(3, $this->functions[1]->getLine());
- $this->assertEquals(4, $this->functions[2]->getLine());
- $this->assertEquals(5, $this->functions[3]->getLine());
- }
-
- /**
- * @covers PHP_TokenWithScope::getEndLine
- */
- public function testGetEndLine()
- {
- $this->assertEquals(2, $this->functions[0]->getLine());
- $this->assertEquals(3, $this->functions[1]->getLine());
- $this->assertEquals(4, $this->functions[2]->getLine());
- $this->assertEquals(5, $this->functions[3]->getLine());
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php b/www/wiki/vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php
deleted file mode 100644
index 4f23c39d..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php
+++ /dev/null
@@ -1,146 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_TokenStream package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Tests for the PHP_Token_FUNCTION class.
- *
- * @package PHP_TokenStream
- * @subpackage Tests
- * @author Sebastian Bergmann <sebastian@phpunit.de>
- * @copyright Sebastian Bergmann <sebastian@phpunit.de>
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
- * @version Release: @package_version@
- * @link http://github.com/sebastianbergmann/php-token-stream/
- * @since Class available since Release 1.0.0
- */
-class PHP_Token_FunctionTest extends PHPUnit_Framework_TestCase
-{
- protected $functions;
-
- protected function setUp()
- {
- $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source.php');
-
- foreach ($ts as $token) {
- if ($token instanceof PHP_Token_FUNCTION) {
- $this->functions[] = $token;
- }
- }
- }
-
- /**
- * @covers PHP_Token_FUNCTION::getArguments
- */
- public function testGetArguments()
- {
- $this->assertEquals(array(), $this->functions[0]->getArguments());
-
- $this->assertEquals(
- array('$baz' => 'Baz'), $this->functions[1]->getArguments()
- );
-
- $this->assertEquals(
- array('$foobar' => 'Foobar'), $this->functions[2]->getArguments()
- );
-
- $this->assertEquals(
- array('$barfoo' => 'Barfoo'), $this->functions[3]->getArguments()
- );
-
- $this->assertEquals(array(), $this->functions[4]->getArguments());
-
- $this->assertEquals(array('$x' => null, '$y' => null), $this->functions[5]->getArguments());
- }
-
- /**
- * @covers PHP_Token_FUNCTION::getName
- */
- public function testGetName()
- {
- $this->assertEquals('foo', $this->functions[0]->getName());
- $this->assertEquals('bar', $this->functions[1]->getName());
- $this->assertEquals('foobar', $this->functions[2]->getName());
- $this->assertEquals('barfoo', $this->functions[3]->getName());
- $this->assertEquals('baz', $this->functions[4]->getName());
- }
-
- /**
- * @covers PHP_Token::getLine
- */
- public function testGetLine()
- {
- $this->assertEquals(5, $this->functions[0]->getLine());
- $this->assertEquals(10, $this->functions[1]->getLine());
- $this->assertEquals(17, $this->functions[2]->getLine());
- $this->assertEquals(21, $this->functions[3]->getLine());
- $this->assertEquals(29, $this->functions[4]->getLine());
- }
-
- /**
- * @covers PHP_TokenWithScope::getEndLine
- */
- public function testGetEndLine()
- {
- $this->assertEquals(5, $this->functions[0]->getEndLine());
- $this->assertEquals(12, $this->functions[1]->getEndLine());
- $this->assertEquals(19, $this->functions[2]->getEndLine());
- $this->assertEquals(23, $this->functions[3]->getEndLine());
- $this->assertEquals(31, $this->functions[4]->getEndLine());
- }
-
- /**
- * @covers PHP_Token_FUNCTION::getDocblock
- */
- public function testGetDocblock()
- {
- $this->assertNull($this->functions[0]->getDocblock());
-
- $this->assertEquals(
- "/**\n * @param Baz \$baz\n */",
- $this->functions[1]->getDocblock()
- );
-
- $this->assertEquals(
- "/**\n * @param Foobar \$foobar\n */",
- $this->functions[2]->getDocblock()
- );
-
- $this->assertNull($this->functions[3]->getDocblock());
- $this->assertNull($this->functions[4]->getDocblock());
- }
-
- public function testSignature()
- {
- $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source5.php');
- $f = $ts->getFunctions();
- $c = $ts->getClasses();
- $i = $ts->getInterfaces();
-
- $this->assertEquals(
- 'foo($a, array $b, array $c = array())',
- $f['foo']['signature']
- );
-
- $this->assertEquals(
- 'm($a, array $b, array $c = array())',
- $c['c']['methods']['m']['signature']
- );
-
- $this->assertEquals(
- 'm($a, array $b, array $c = array())',
- $c['a']['methods']['m']['signature']
- );
-
- $this->assertEquals(
- 'm($a, array $b, array $c = array())',
- $i['i']['methods']['m']['signature']
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/IncludeTest.php b/www/wiki/vendor/phpunit/php-token-stream/tests/Token/IncludeTest.php
deleted file mode 100644
index 1e433512..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/IncludeTest.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_TokenStream package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Tests for the PHP_Token_REQUIRE_ONCE, PHP_Token_REQUIRE
- * PHP_Token_INCLUDE_ONCE and PHP_Token_INCLUDE_ONCE classes.
- *
- * @package PHP_TokenStream
- * @subpackage Tests
- * @author Laurent Laville <pear@laurent-laville.org>
- * @copyright Sebastian Bergmann <sebastian@phpunit.de>
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
- * @version Release: @package_version@
- * @link http://github.com/sebastianbergmann/php-token-stream/
- * @since Class available since Release 1.0.2
- */
-class PHP_Token_IncludeTest extends PHPUnit_Framework_TestCase
-{
- protected $ts;
-
- protected function setUp()
- {
- $this->ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source3.php');
- }
-
- /**
- * @covers PHP_Token_Includes::getName
- * @covers PHP_Token_Includes::getType
- */
- public function testGetIncludes()
- {
- $this->assertSame(
- array('test4.php', 'test3.php', 'test2.php', 'test1.php'),
- $this->ts->getIncludes()
- );
- }
-
- /**
- * @covers PHP_Token_Includes::getName
- * @covers PHP_Token_Includes::getType
- */
- public function testGetIncludesCategorized()
- {
- $this->assertSame(
- array(
- 'require_once' => array('test4.php'),
- 'require' => array('test3.php'),
- 'include_once' => array('test2.php'),
- 'include' => array('test1.php')
- ),
- $this->ts->getIncludes(TRUE)
- );
- }
-
- /**
- * @covers PHP_Token_Includes::getName
- * @covers PHP_Token_Includes::getType
- */
- public function testGetIncludesCategory()
- {
- $this->assertSame(
- array('test4.php'),
- $this->ts->getIncludes(TRUE, 'require_once')
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/InterfaceTest.php b/www/wiki/vendor/phpunit/php-token-stream/tests/Token/InterfaceTest.php
deleted file mode 100644
index 56caede2..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/InterfaceTest.php
+++ /dev/null
@@ -1,191 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_TokenStream package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Tests for the PHP_Token_INTERFACE class.
- *
- * @package PHP_TokenStream
- * @subpackage Tests
- * @author Sebastian Bergmann <sebastian@phpunit.de>
- * @author Laurent Laville <pear@laurent-laville.org>
- * @copyright Sebastian Bergmann <sebastian@phpunit.de>
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
- * @version Release: @package_version@
- * @link http://github.com/sebastianbergmann/php-token-stream/
- * @since Class available since Release 1.0.0
- */
-class PHP_Token_InterfaceTest extends PHPUnit_Framework_TestCase
-{
- protected $class;
- protected $interfaces;
-
- protected function setUp()
- {
- $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'source4.php');
- $i = 0;
- foreach ($ts as $token) {
- if ($token instanceof PHP_Token_CLASS) {
- $this->class = $token;
- }
- elseif ($token instanceof PHP_Token_INTERFACE) {
- $this->interfaces[$i] = $token;
- $i++;
- }
- }
- }
-
- /**
- * @covers PHP_Token_INTERFACE::getName
- */
- public function testGetName()
- {
- $this->assertEquals(
- 'iTemplate', $this->interfaces[0]->getName()
- );
- }
-
- /**
- * @covers PHP_Token_INTERFACE::getParent
- */
- public function testGetParentNotExists()
- {
- $this->assertFalse(
- $this->interfaces[0]->getParent()
- );
- }
-
- /**
- * @covers PHP_Token_INTERFACE::hasParent
- */
- public function testHasParentNotExists()
- {
- $this->assertFalse(
- $this->interfaces[0]->hasParent()
- );
- }
-
- /**
- * @covers PHP_Token_INTERFACE::getParent
- */
- public function testGetParentExists()
- {
- $this->assertEquals(
- 'a', $this->interfaces[2]->getParent()
- );
- }
-
- /**
- * @covers PHP_Token_INTERFACE::hasParent
- */
- public function testHasParentExists()
- {
- $this->assertTrue(
- $this->interfaces[2]->hasParent()
- );
- }
-
- /**
- * @covers PHP_Token_INTERFACE::getInterfaces
- */
- public function testGetInterfacesExists()
- {
- $this->assertEquals(
- array('b'),
- $this->class->getInterfaces()
- );
- }
-
- /**
- * @covers PHP_Token_INTERFACE::hasInterfaces
- */
- public function testHasInterfacesExists()
- {
- $this->assertTrue(
- $this->class->hasInterfaces()
- );
- }
- /**
- * @covers PHP_Token_INTERFACE::getPackage
- */
- public function testGetPackageNamespace() {
- $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php');
- foreach($tokenStream as $token) {
- if($token instanceOf PHP_Token_INTERFACE) {
- $package = $token->getPackage();
- $this->assertSame('Foo\\Bar', $package['namespace']);
- }
- }
- }
-
-
- public function provideFilesWithClassesWithinMultipleNamespaces() {
- return array(
- array(TEST_FILES_PATH . 'multipleNamespacesWithOneClassUsingBraces.php'),
- array(TEST_FILES_PATH . 'multipleNamespacesWithOneClassUsingNonBraceSyntax.php'),
- );
- }
-
- /**
- * @dataProvider provideFilesWithClassesWithinMultipleNamespaces
- * @covers PHP_Token_INTERFACE::getPackage
- */
- public function testGetPackageNamespaceForFileWithMultipleNamespaces($filepath) {
- $tokenStream = new PHP_Token_Stream($filepath);
- $firstClassFound = false;
- foreach($tokenStream as $token) {
- if($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) {
- $package = $token->getPackage();
- $this->assertSame('TestClassInBar', $token->getName());
- $this->assertSame('Foo\\Bar', $package['namespace']);
- $firstClassFound = true;
- continue;
- }
- // Secound class
- if($token instanceOf PHP_Token_INTERFACE) {
- $package = $token->getPackage();
- $this->assertSame('TestClassInBaz', $token->getName());
- $this->assertSame('Foo\\Baz', $package['namespace']);
- return;
- }
- }
- $this->fail("Seachring for 2 classes failed");
- }
-
- public function testGetPackageNamespaceIsEmptyForInterfacesThatAreNotWithinNamespaces() {
- foreach($this->interfaces as $token) {
- $package = $token->getPackage();
- $this->assertSame("", $package['namespace']);
- }
- }
-
- /**
- * @covers PHP_Token_INTERFACE::getPackage
- */
- public function testGetPackageNamespaceWhenExtentingFromNamespaceClass() {
- $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classExtendsNamespacedClass.php');
- $firstClassFound = false;
- foreach($tokenStream as $token) {
- if($firstClassFound === false && $token instanceOf PHP_Token_INTERFACE) {
- $package = $token->getPackage();
- $this->assertSame('Baz', $token->getName());
- $this->assertSame('Foo\\Bar', $package['namespace']);
- $firstClassFound = true;
- continue;
- }
- if($token instanceOf PHP_Token_INTERFACE) {
- $package = $token->getPackage();
- $this->assertSame('Extender', $token->getName());
- $this->assertSame('Other\\Space', $package['namespace']);
- return;
- }
- }
- $this->fail("Searching for 2 classes failed");
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/NamespaceTest.php b/www/wiki/vendor/phpunit/php-token-stream/tests/Token/NamespaceTest.php
deleted file mode 100644
index 469f7872..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/Token/NamespaceTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_TokenStream package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Tests for the PHP_Token_NAMESPACE class.
- *
- * @package PHP_TokenStream
- * @subpackage Tests
- * @author Sebastian Bergmann <sebastian@phpunit.de>
- * @copyright Sebastian Bergmann <sebastian@phpunit.de>
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
- * @version Release: @package_version@
- * @link http://github.com/sebastianbergmann/php-token-stream/
- * @since Class available since Release 1.0.0
- */
-class PHP_Token_NamespaceTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers PHP_Token_NAMESPACE::getName
- */
- public function testGetName()
- {
- $tokenStream = new PHP_Token_Stream(
- TEST_FILES_PATH . 'classInNamespace.php'
- );
-
- foreach ($tokenStream as $token) {
- if ($token instanceof PHP_Token_NAMESPACE) {
- $this->assertSame('Foo\\Bar', $token->getName());
- }
- }
- }
-
- public function testGetStartLineWithUnscopedNamespace()
- {
- $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php');
- foreach($tokenStream as $token) {
- if($token instanceOf PHP_Token_NAMESPACE) {
- $this->assertSame(2, $token->getLine());
- }
- }
- }
-
- public function testGetEndLineWithUnscopedNamespace()
- {
- $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInNamespace.php');
- foreach($tokenStream as $token) {
- if($token instanceOf PHP_Token_NAMESPACE) {
- $this->assertSame(2, $token->getEndLine());
- }
- }
- }
- public function testGetStartLineWithScopedNamespace()
- {
- $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInScopedNamespace.php');
- foreach($tokenStream as $token) {
- if($token instanceOf PHP_Token_NAMESPACE) {
- $this->assertSame(2, $token->getLine());
- }
- }
- }
-
- public function testGetEndLineWithScopedNamespace()
- {
- $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInScopedNamespace.php');
- foreach($tokenStream as $token) {
- if($token instanceOf PHP_Token_NAMESPACE) {
- $this->assertSame(8, $token->getEndLine());
- }
- }
- }
-
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/TokenTest.php b/www/wiki/vendor/phpunit/php-token-stream/tests/TokenTest.php
deleted file mode 100644
index 67bf79a0..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/TokenTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/*
- * This file is part of the PHP_TokenStream package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Tests for the PHP_Token class.
- *
- * @package PHP_TokenStream
- * @subpackage Tests
- * @author Sebastian Bergmann <sebastian@phpunit.de>
- * @copyright Sebastian Bergmann <sebastian@phpunit.de>
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
- * @version Release: @package_version@
- * @link http://github.com/sebastianbergmann/php-token-stream/
- * @since Class available since Release 1.0.0
- */
-class PHP_TokenTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers PHP_Token::__construct
- * @covers PHP_Token::__toString
- */
- public function testToString()
- {
- $this->markTestIncomplete();
- }
-
- /**
- * @covers PHP_Token::__construct
- * @covers PHP_Token::getLine
- */
- public function testGetLine()
- {
- $this->markTestIncomplete();
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classExtendsNamespacedClass.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classExtendsNamespacedClass.php
deleted file mode 100644
index 560eec94..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classExtendsNamespacedClass.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-namespace Foo\Bar;
-
-class Baz {}
-
-namespace Other\Space;
-
-class Extender extends \Foo\Bar\Baz {}
-
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classInNamespace.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classInNamespace.php
deleted file mode 100644
index 8ade7cdf..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classInNamespace.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-namespace Foo\Bar;
-
-class TestClass
-{
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classInScopedNamespace.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classInScopedNamespace.php
deleted file mode 100644
index 1ba475ce..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classInScopedNamespace.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-namespace Foo\BarScoped {
-
- class TestClass {
-
- }
-
-}
-
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classUsesNamespacedFunction.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classUsesNamespacedFunction.php
deleted file mode 100644
index 5e08a12e..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/classUsesNamespacedFunction.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-namespace foo;
-
-use function bar\baz;
-
-class Foo
-{
-} \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class.php
deleted file mode 100644
index 4a02fe13..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-interface foo {
-}
-
-class class_with_method_that_declares_anonymous_class
-{
- public function method()
- {
- $o = new class { public function foo() {} };
- $o = new class{public function foo(){}};
- $o = new class extends stdClass {};
- $o = new class extends stdClass {};
- $o = new class implements foo {};
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php
deleted file mode 100644
index 9f3ee28e..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-class Test {
- public function methodOne() {
- $foo = new class {
- public function method_in_anonymous_class() {
- return true;
- }
- };
-
- return $foo->method_in_anonymous_class();
- }
-
- public function methodTwo() {
- return false;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/closure.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/closure.php
deleted file mode 100644
index a0e3a81d..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/closure.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-$function1 = function($foo, $bar) use ($var) {};
-$function2 = function(Foo $foo, $bar) use ($var) {};
-$function3 = function ($foo, $bar, $baz) {};
-$function4 = function (Foo $foo, $bar, $baz) {};
-$function5 = function () {};
-$function6 = function() {};
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/issue19.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/issue19.php
deleted file mode 100644
index 91eeb473..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/issue19.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-class TestClass {
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/issue30.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/issue30.php
deleted file mode 100644
index 0d1f6f35..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/issue30.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class Foo
-{
- public function bar()
- {
- return Foo::CLASS;
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/multipleNamespacesWithOneClassUsingBraces.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/multipleNamespacesWithOneClassUsingBraces.php
deleted file mode 100644
index d3a12e30..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/multipleNamespacesWithOneClassUsingBraces.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-namespace Foo\Bar;
-
-class TestClassInBar
-{
-}
-
-namespace Foo\Baz;
-
-class TestClassInBaz
-{
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/multipleNamespacesWithOneClassUsingNonBraceSyntax.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/multipleNamespacesWithOneClassUsingNonBraceSyntax.php
deleted file mode 100644
index 4ee4f249..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/multipleNamespacesWithOneClassUsingNonBraceSyntax.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-namespace Foo\Bar
-{
- class TestClassInBar
- {
- }
-}
-
-namespace Foo\Baz
-{
- class TestClassInBaz
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source.php
deleted file mode 100644
index 0c9b87f6..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
- * Some comment
- */
-class Foo{function foo(){}
-
- /**
- * @param Baz $baz
- */
- public function bar(Baz $baz)
- {
- }
-
- /**
- * @param Foobar $foobar
- */
- static public function foobar(Foobar $foobar)
- {
- }
-
- public function barfoo(Barfoo $barfoo)
- {
- }
-
- /**
- * This docblock does not belong to the baz function
- */
-
- public function baz()
- {
- }
-
- public function blaz($x, $y)
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source2.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source2.php
deleted file mode 100644
index b33dce1f..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source2.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-// short desc
-abstract class A {
- /* abst meth: */
- public static abstract function method();
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source3.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source3.php
deleted file mode 100644
index 7e42b60f..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source3.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-// This file is example#1
-// from http://www.php.net/manual/en/function.get-included-files.php
-
-include 'test1.php';
-include_once 'test2.php';
-require 'test3.php';
-require_once 'test4.php';
-
-$included_files = get_included_files();
-
-foreach ($included_files as $filename) {
- echo "$filename\n";
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source4.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source4.php
deleted file mode 100644
index 6b064fcd..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source4.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-// Declare the interface 'iTemplate'
-interface iTemplate
-{
- public function setVariable($name, $var);
- public function
- getHtml($template);
-}
-
-interface a
-{
- public function foo();
-}
-
-interface b extends a
-{
- public function baz(Baz $baz);
-}
-
-// short desc for class that implement a unique interface
-class c implements b
-{
- public function foo()
- {
- }
-
- public function baz(Baz $baz)
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source5.php b/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source5.php
deleted file mode 100644
index ef7d4746..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/_fixture/source5.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-function foo($a, array $b, array $c = array()) {}
-interface i { public function m($a, array $b, array $c = array()); }
-abstract class a { abstract public function m($a, array $b, array $c = array()); }
-class c { public function m($a, array $b, array $c = array()) {} }
diff --git a/www/wiki/vendor/phpunit/php-token-stream/tests/bootstrap.php b/www/wiki/vendor/phpunit/php-token-stream/tests/bootstrap.php
deleted file mode 100644
index f92b7df0..00000000
--- a/www/wiki/vendor/phpunit/php-token-stream/tests/bootstrap.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-require __DIR__ . '/../vendor/autoload.php';
-
-define(
- 'TEST_FILES_PATH',
- __DIR__ . DIRECTORY_SEPARATOR . '_fixture' . DIRECTORY_SEPARATOR
-);
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/.gitattributes b/www/wiki/vendor/phpunit/phpunit-mock-objects/.gitattributes
deleted file mode 100644
index 461090b7..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-*.php diff=php
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/.gitignore b/www/wiki/vendor/phpunit/phpunit-mock-objects/.gitignore
deleted file mode 100644
index b17f73fd..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-build/coverage
-build/logs
-cache.properties
-phpunit.xml
-/vendor
-/composer.lock
-/composer.phar
-/.idea
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/.travis.yml b/www/wiki/vendor/phpunit/phpunit-mock-objects/.travis.yml
deleted file mode 100644
index 127bb651..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/.travis.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-language: php
-
-before_script:
- - composer self-update
- - composer install --no-interaction --prefer-source --dev
-
-script: ./vendor/bin/phpunit --configuration ./build/travis-ci.xml
-
-php:
- - 5.3.3
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - hhvm
-
-notifications:
- email: false
- webhooks:
- urls:
- - https://webhooks.gitter.im/e/6668f52f3dd4e3f81960
- on_success: always
- on_failure: always
- on_start: false
-
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/CONTRIBUTING.md b/www/wiki/vendor/phpunit/phpunit-mock-objects/CONTRIBUTING.md
deleted file mode 100644
index b2905398..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/CONTRIBUTING.md
+++ /dev/null
@@ -1,5 +0,0 @@
-Pull Requests for bug fixes should be made against the current release branch (1.2).
-
-Pull Requests for new features should be made against master.
-
-For further notes please refer to [https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md)
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/LICENSE b/www/wiki/vendor/phpunit/phpunit-mock-objects/LICENSE
deleted file mode 100644
index 3705d2be..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-PHPUnit_MockObject
-
-Copyright (c) 2002-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/README.md b/www/wiki/vendor/phpunit/phpunit-mock-objects/README.md
deleted file mode 100644
index 5222da74..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/README.md
+++ /dev/null
@@ -1,21 +0,0 @@
-[![Build Status](https://img.shields.io/travis/sebastianbergmann/phpunit-mock-objects/2.3.svg?style=flat-square)](https://travis-ci.org/sebastianbergmann/phpunit-mock-objects)
-[![Latest Stable Version](https://img.shields.io/packagist/v/phpunit/phpunit-mock-objects.svg?style=flat-square)](https://packagist.org/packages/phpunit/phpunit-mock-objects)
-
-# PHPUnit_MockObject
-
-**PHPUnit_MockObject** is the default mock object library for PHPUnit.
-
-## Requirements
-
-* PHP 5.3.3 is required but using the latest version of PHP is highly recommended
-
-## Installation
-
-To add PHPUnit_MockObject as a local, per-project dependency to your project, simply add a dependency on `phpunit/phpunit-mock-objects` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on PHPUnit_MockObject 2.3:
-
- {
- "require": {
- "phpunit/phpunit-mock-objects": "2.3.*"
- }
- }
-
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/build.xml b/www/wiki/vendor/phpunit/phpunit-mock-objects/build.xml
deleted file mode 100644
index c93503eb..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/build.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="PHPUnit_MockObjects">
- <target name="clean" description="Cleanup build artifacts">
- <delete dir="${basedir}/vendor"/>
- <delete file="${basedir}/composer.lock"/>
-
- <delete>
- <fileset dir="${basedir}/build">
- <include name="**/*.phar" />
- </fileset>
- </delete>
- </target>
-
- <target name="composer" depends="clean" description="Install dependencies with Composer">
- <tstamp>
- <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
- </tstamp>
- <delete>
- <fileset dir="${basedir}">
- <include name="composer.phar" />
- <date datetime="${thirty.days.ago}" when="before"/>
- </fileset>
- </delete>
-
- <get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" skipexisting="true"/>
-
- <exec executable="php">
- <arg value="composer.phar"/>
- <arg value="install"/>
- </exec>
- </target>
-
- <target name="phpcs" description="Find coding standard violations using PHP_CodeSniffer">
- <exec executable="phpcs">
- <arg value="--standard=PSR2" />
- <arg value="--extensions=php" />
- <arg path="${basedir}/src" />
- <arg path="${basedir}/tests" />
- </exec>
- </target>
-</project>
-
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/build/travis-ci.xml b/www/wiki/vendor/phpunit/phpunit-mock-objects/build/travis-ci.xml
deleted file mode 100644
index b8498fbe..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/build/travis-ci.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.2/phpunit.xsd"
- bootstrap="../tests/bootstrap.php"
- backupGlobals="false"
- verbose="true">
- <testsuite name="PHPUnit Mock Objects">
- <directory suffix="Test.php">../tests</directory>
- <directory suffix=".phpt">../tests</directory>
- </testsuite>
-</phpunit>
-
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/composer.json b/www/wiki/vendor/phpunit/phpunit-mock-objects/composer.json
deleted file mode 100644
index 12fb934b..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/composer.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "name": "phpunit/phpunit-mock-objects",
- "description": "Mock Object library for PHPUnit",
- "type": "library",
- "keywords": [
- "xunit",
- "mock"
- ],
- "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sb@sebastian-bergmann.de",
- "role": "lead"
- }
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues",
- "irc": "irc://irc.freenode.net/phpunit"
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-text-template": "~1.2",
- "doctrine/instantiator": "^1.0.2",
- "sebastian/exporter": "~1.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "suggest": {
- "ext-soap": "*"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "autoload-dev": {
- "classmap": [
- "tests/_fixture/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "2.3.x-dev"
- }
- }
-}
-
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/phpunit.xml.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/phpunit.xml.dist
deleted file mode 100644
index e2186ea2..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/phpunit.xml.dist
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.2/phpunit.xsd"
- bootstrap="tests/bootstrap.php"
- backupGlobals="false"
- verbose="true">
- <testsuite name="PHPUnit Mock Objects">
- <directory suffix="Test.php">tests</directory>
- <directory suffix=".phpt">tests</directory>
- </testsuite>
-
- <logging>
- <log type="coverage-html" target="build/coverage"/>
- </logging>
-
- <filter>
- <whitelist processUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">src</directory>
- </whitelist>
- </filter>
-</phpunit>
-
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Identity.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Identity.php
deleted file mode 100644
index 6f369a11..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Identity.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Builder interface for unique identifiers.
- *
- * Defines the interface for recording unique identifiers. The identifiers
- * can be used to define the invocation order of expectations. The expectation
- * is recorded using id() and then defined in order using
- * PHPUnit_Framework_MockObject_Builder_Match::after().
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Builder_Identity
-{
- /**
- * Sets the identification of the expectation to $id.
- *
- * @note The identifier is unique per mock object.
- * @param string $id Unique identifiation of expectation.
- */
- public function id($id);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php
deleted file mode 100644
index 865c6b25..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php
+++ /dev/null
@@ -1,255 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Builder for mocked or stubbed invocations.
- *
- * Provides methods for building expectations without having to resort to
- * instantiating the various matchers manually. These methods also form a
- * more natural way of reading the expectation. This class should be together
- * with the test case PHPUnit_Framework_MockObject_TestCase.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Builder_InvocationMocker implements PHPUnit_Framework_MockObject_Builder_MethodNameMatch
-{
- /**
- * @var PHPUnit_Framework_MockObject_Stub_MatcherCollection
- */
- protected $collection;
-
- /**
- * @var PHPUnit_Framework_MockObject_Matcher
- */
- protected $matcher;
-
- /**
- * @param PHPUnit_Framework_MockObject_Stub_MatcherCollection $collection
- * @param PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher
- */
- public function __construct(PHPUnit_Framework_MockObject_Stub_MatcherCollection $collection, PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher)
- {
- $this->collection = $collection;
- $this->matcher = new PHPUnit_Framework_MockObject_Matcher(
- $invocationMatcher
- );
-
- $this->collection->addMatcher($this->matcher);
- }
-
- /**
- * @return PHPUnit_Framework_MockObject_Matcher
- */
- public function getMatcher()
- {
- return $this->matcher;
- }
-
- /**
- * @param mixed $id
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function id($id)
- {
- $this->collection->registerId($id, $this);
-
- return $this;
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Stub $stub
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function will(PHPUnit_Framework_MockObject_Stub $stub)
- {
- $this->matcher->stub = $stub;
-
- return $this;
- }
-
- /**
- * @param mixed $value
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function willReturn($value)
- {
- $stub = new PHPUnit_Framework_MockObject_Stub_Return(
- $value
- );
-
- return $this->will($stub);
- }
-
- /**
- * @param array $valueMap
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function willReturnMap(array $valueMap)
- {
- $stub = new PHPUnit_Framework_MockObject_Stub_ReturnValueMap(
- $valueMap
- );
-
- return $this->will($stub);
- }
-
- /**
- * @param mixed $argumentIndex
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function willReturnArgument($argumentIndex)
- {
- $stub = new PHPUnit_Framework_MockObject_Stub_ReturnArgument(
- $argumentIndex
- );
-
- return $this->will($stub);
- }
-
- /**
- * @param callable $callback
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function willReturnCallback($callback)
- {
- $stub = new PHPUnit_Framework_MockObject_Stub_ReturnCallback(
- $callback
- );
-
- return $this->will($stub);
- }
-
- /**
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function willReturnSelf()
- {
- $stub = new PHPUnit_Framework_MockObject_Stub_ReturnSelf();
-
- return $this->will($stub);
- }
-
- /**
- * @param mixed $value, ...
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function willReturnOnConsecutiveCalls()
- {
- $args = func_get_args();
-
- $stub = new PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls($args);
-
- return $this->will($stub);
- }
-
- /**
- * @param Exception $exception
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function willThrowException(Exception $exception)
- {
- $stub = new PHPUnit_Framework_MockObject_Stub_Exception($exception);
-
- return $this->will($stub);
- }
-
- /**
- * @param mixed $id
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function after($id)
- {
- $this->matcher->afterMatchBuilderId = $id;
-
- return $this;
- }
-
- /**
- * Validate that a parameters matcher can be defined, throw exceptions otherwise.
- *
- * @throws PHPUnit_Framework_Exception
- */
- private function canDefineParameters()
- {
- if ($this->matcher->methodNameMatcher === null) {
- throw new PHPUnit_Framework_Exception(
- 'Method name matcher is not defined, cannot define parameter ' .
- ' matcher without one'
- );
- }
-
- if ($this->matcher->parametersMatcher !== null) {
- throw new PHPUnit_Framework_Exception(
- 'Parameter matcher is already defined, cannot redefine'
- );
- }
- }
-
- /**
- * @param mixed $argument, ...
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function with()
- {
- $args = func_get_args();
-
- $this->canDefineParameters();
-
- $this->matcher->parametersMatcher = new PHPUnit_Framework_MockObject_Matcher_Parameters($args);
-
- return $this;
- }
-
- /**
- * @param mixed ...$argument
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function withConsecutive()
- {
-
- $args = func_get_args();
-
- $this->canDefineParameters();
-
- $this->matcher->parametersMatcher =
- new PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters($args);
-
- return $this;
- }
-
- /**
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function withAnyParameters()
- {
- $this->canDefineParameters();
-
- $this->matcher->parametersMatcher = new PHPUnit_Framework_MockObject_Matcher_AnyParameters;
-
- return $this;
- }
-
- /**
- * @param PHPUnit_Framework_Constraint|string $constraint
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function method($constraint)
- {
- if ($this->matcher->methodNameMatcher !== null) {
- throw new PHPUnit_Framework_Exception(
- 'Method name matcher is already defined, cannot redefine'
- );
- }
-
- $this->matcher->methodNameMatcher = new PHPUnit_Framework_MockObject_Matcher_MethodName($constraint);
-
- return $this;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Match.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Match.php
deleted file mode 100644
index 1cbd040f..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Match.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Builder interface for invocation order matches.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Builder_Match extends PHPUnit_Framework_MockObject_Builder_Stub
-{
- /**
- * Defines the expectation which must occur before the current is valid.
- *
- * @param string $id The identification of the expectation that should
- * occur before this one.
- * @return PHPUnit_Framework_MockObject_Builder_Stub
- */
- public function after($id);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/MethodNameMatch.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/MethodNameMatch.php
deleted file mode 100644
index 96bfb1e2..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/MethodNameMatch.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Builder interface for matcher of method names.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Builder_MethodNameMatch extends PHPUnit_Framework_MockObject_Builder_ParametersMatch
-{
- /**
- * Adds a new method name match and returns the parameter match object for
- * further matching possibilities.
- *
- * @param PHPUnit_Framework_Constraint $name
- * Constraint for matching method, if a string is passed it will use
- * the PHPUnit_Framework_Constraint_IsEqual.
- * @return PHPUnit_Framework_MockObject_Builder_ParametersMatch
- */
- public function method($name);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Namespace.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Namespace.php
deleted file mode 100644
index 831156b1..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Namespace.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Interface for builders which can register builders with a given identification.
- *
- * This interface relates to PHPUnit_Framework_MockObject_Builder_Identity.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Builder_Namespace
-{
- /**
- * Looks up the match builder with identification $id and returns it.
- *
- * @param string $id The identifiction of the match builder.
- * @return PHPUnit_Framework_MockObject_Builder_Match
- */
- public function lookupId($id);
-
- /**
- * Registers the match builder $builder with the identification $id. The
- * builder can later be looked up using lookupId() to figure out if it
- * has been invoked.
- *
- * @param string $id
- * The identification of the match builder.
- * @param PHPUnit_Framework_MockObject_Builder_Match $builder
- * The builder which is being registered.
- */
- public function registerId($id, PHPUnit_Framework_MockObject_Builder_Match $builder);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/ParametersMatch.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/ParametersMatch.php
deleted file mode 100644
index 79d96f2d..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/ParametersMatch.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Builder interface for parameter matchers.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Builder_ParametersMatch extends PHPUnit_Framework_MockObject_Builder_Match
-{
- /**
- * Sets the parameters to match for, each parameter to this funtion will
- * be part of match. To perform specific matches or constraints create a
- * new PHPUnit_Framework_Constraint and use it for the parameter.
- * If the parameter value is not a constraint it will use the
- * PHPUnit_Framework_Constraint_IsEqual for the value.
- *
- * Some examples:
- * <code>
- * // match first parameter with value 2
- * $b->with(2);
- * // match first parameter with value 'smock' and second identical to 42
- * $b->with('smock', new PHPUnit_Framework_Constraint_IsEqual(42));
- * </code>
- *
- * @return PHPUnit_Framework_MockObject_Builder_ParametersMatch
- */
- public function with();
-
- /**
- * Sets a matcher which allows any kind of parameters.
- *
- * Some examples:
- * <code>
- * // match any number of parameters
- * $b->withAnyParamers();
- * </code>
- *
- * @return PHPUnit_Framework_MockObject_Matcher_AnyParameters
- */
- public function withAnyParameters();
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Stub.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Stub.php
deleted file mode 100644
index cc96bacb..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Stub.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Builder interface for stubs which are actions replacing an invocation.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Builder_Stub extends PHPUnit_Framework_MockObject_Builder_Identity
-{
- /**
- * Stubs the matching method with the stub object $stub. Any invocations of
- * the matched method will now be handled by the stub instead.
- *
- * @param PHPUnit_Framework_MockObject_Stub $stub The stub object.
- * @return PHPUnit_Framework_MockObject_Builder_Identity
- */
- public function will(PHPUnit_Framework_MockObject_Stub $stub);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/BadMethodCallException.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/BadMethodCallException.php
deleted file mode 100644
index 736784bd..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/BadMethodCallException.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.6
- */
-class PHPUnit_Framework_MockObject_BadMethodCallException extends BadMethodCallException implements PHPUnit_Framework_MockObject_Exception
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/Exception.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/Exception.php
deleted file mode 100644
index bc8c81de..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/Exception.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Interface for exceptions used by PHPUnit_MockObject.
- *
- * @since Interface available since Release 2.0.6
- */
-interface PHPUnit_Framework_MockObject_Exception
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/RuntimeException.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/RuntimeException.php
deleted file mode 100644
index 1e9b6f17..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Exception/RuntimeException.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.6
- */
-class PHPUnit_Framework_MockObject_RuntimeException extends RuntimeException implements PHPUnit_Framework_MockObject_Exception
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php
deleted file mode 100644
index 3df3abb0..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php
+++ /dev/null
@@ -1,1120 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use Doctrine\Instantiator\Instantiator;
-use Doctrine\Instantiator\Exception\InvalidArgumentException as InstantiatorInvalidArgumentException;
-use Doctrine\Instantiator\Exception\UnexpectedValueException as InstantiatorUnexpectedValueException;
-
-if (!function_exists('trait_exists')) {
- function trait_exists($traitname, $autoload = true)
- {
- return false;
- }
-}
-
-/**
- * Mock Object Code Generator
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Generator
-{
- /**
- * @var array
- */
- private static $cache = array();
-
- /**
- * @var array
- */
- protected $blacklistedMethodNames = array(
- '__CLASS__' => true,
- '__DIR__' => true,
- '__FILE__' => true,
- '__FUNCTION__' => true,
- '__LINE__' => true,
- '__METHOD__' => true,
- '__NAMESPACE__' => true,
- '__TRAIT__' => true,
- '__clone' => true,
- '__halt_compiler' => true,
- 'abstract' => true,
- 'and' => true,
- 'array' => true,
- 'as' => true,
- 'break' => true,
- 'callable' => true,
- 'case' => true,
- 'catch' => true,
- 'class' => true,
- 'clone' => true,
- 'const' => true,
- 'continue' => true,
- 'declare' => true,
- 'default' => true,
- 'die' => true,
- 'do' => true,
- 'echo' => true,
- 'else' => true,
- 'elseif' => true,
- 'empty' => true,
- 'enddeclare' => true,
- 'endfor' => true,
- 'endforeach' => true,
- 'endif' => true,
- 'endswitch' => true,
- 'endwhile' => true,
- 'eval' => true,
- 'exit' => true,
- 'expects' => true,
- 'extends' => true,
- 'final' => true,
- 'for' => true,
- 'foreach' => true,
- 'function' => true,
- 'global' => true,
- 'goto' => true,
- 'if' => true,
- 'implements' => true,
- 'include' => true,
- 'include_once' => true,
- 'instanceof' => true,
- 'insteadof' => true,
- 'interface' => true,
- 'isset' => true,
- 'list' => true,
- 'namespace' => true,
- 'new' => true,
- 'or' => true,
- 'print' => true,
- 'private' => true,
- 'protected' => true,
- 'public' => true,
- 'require' => true,
- 'require_once' => true,
- 'return' => true,
- 'static' => true,
- 'switch' => true,
- 'throw' => true,
- 'trait' => true,
- 'try' => true,
- 'unset' => true,
- 'use' => true,
- 'var' => true,
- 'while' => true,
- 'xor' => true
- );
-
- /**
- * Returns a mock object for the specified class.
- *
- * @param array|string $type
- * @param array $methods
- * @param array $arguments
- * @param string $mockClassName
- * @param bool $callOriginalConstructor
- * @param bool $callOriginalClone
- * @param bool $callAutoload
- * @param bool $cloneArguments
- * @param bool $callOriginalMethods
- * @param object $proxyTarget
- * @return object
- * @throws InvalidArgumentException
- * @throws PHPUnit_Framework_Exception
- * @throws PHPUnit_Framework_MockObject_RuntimeException
- * @since Method available since Release 1.0.0
- */
- public function getMock($type, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $cloneArguments = true, $callOriginalMethods = false, $proxyTarget = null)
- {
- if (!is_array($type) && !is_string($type)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'array or string');
- }
-
- if (!is_string($mockClassName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(4, 'string');
- }
-
- if (!is_array($methods) && !is_null($methods)) {
- throw new InvalidArgumentException;
- }
-
- if ($type === 'Traversable' || $type === '\\Traversable') {
- $type = 'Iterator';
- }
-
- if (is_array($type)) {
- $type = array_unique(array_map(
- function ($type) {
- if ($type === 'Traversable' ||
- $type === '\\Traversable' ||
- $type === '\\Iterator') {
- return 'Iterator';
- }
-
- return $type;
- },
- $type
- ));
- }
-
- if (null !== $methods) {
- foreach ($methods as $method) {
- if (!preg_match('~[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*~', $method)) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Cannot stub or mock method with invalid name "%s"',
- $method
- )
- );
- }
- }
-
- if ($methods != array_unique($methods)) {
- throw new PHPUnit_Framework_MockObject_RuntimeException(
- sprintf(
- 'Cannot stub or mock using a method list that contains duplicates: "%s"',
- implode(', ', $methods)
- )
- );
- }
- }
-
- if ($mockClassName != '' && class_exists($mockClassName, false)) {
- $reflect = new ReflectionClass($mockClassName);
-
- if (!$reflect->implementsInterface('PHPUnit_Framework_MockObject_MockObject')) {
- throw new PHPUnit_Framework_MockObject_RuntimeException(
- sprintf(
- 'Class "%s" already exists.',
- $mockClassName
- )
- );
- }
- }
-
- $mock = $this->generate(
- $type,
- $methods,
- $mockClassName,
- $callOriginalClone,
- $callAutoload,
- $cloneArguments,
- $callOriginalMethods
- );
-
- return $this->getObject(
- $mock['code'],
- $mock['mockClassName'],
- $type,
- $callOriginalConstructor,
- $callAutoload,
- $arguments,
- $callOriginalMethods,
- $proxyTarget
- );
- }
-
- /**
- * @param string $code
- * @param string $className
- * @param array|string $type
- * @param bool $callOriginalConstructor
- * @param bool $callAutoload
- * @param array $arguments
- * @param bool $callOriginalMethods
- * @param object $proxyTarget
- * @return object
- */
- protected function getObject($code, $className, $type = '', $callOriginalConstructor = false, $callAutoload = false, array $arguments = array(), $callOriginalMethods = false, $proxyTarget = null)
- {
- $this->evalClass($code, $className);
-
- if ($callOriginalConstructor &&
- is_string($type) &&
- !interface_exists($type, $callAutoload)) {
- if (count($arguments) == 0) {
- $object = new $className;
- } else {
- $class = new ReflectionClass($className);
- $object = $class->newInstanceArgs($arguments);
- }
- } else {
- try {
- $instantiator = new Instantiator;
- $object = $instantiator->instantiate($className);
- } catch (InstantiatorUnexpectedValueException $exception) {
- if ($exception->getPrevious()) {
- $exception = $exception->getPrevious();
- }
-
- throw new PHPUnit_Framework_MockObject_RuntimeException(
- $exception->getMessage()
- );
- } catch (InstantiatorInvalidArgumentException $exception) {
- throw new PHPUnit_Framework_MockObject_RuntimeException(
- $exception->getMessage()
- );
- }
- }
-
- if ($callOriginalMethods) {
- if (!is_object($proxyTarget)) {
- if (count($arguments) == 0) {
- $proxyTarget = new $type;
- } else {
- $class = new ReflectionClass($type);
- $proxyTarget = $class->newInstanceArgs($arguments);
- }
- }
-
- $object->__phpunit_setOriginalObject($proxyTarget);
- }
-
- return $object;
- }
-
- /**
- * @param string $code
- * @param string $className
- */
- protected function evalClass($code, $className)
- {
- if (!class_exists($className, false)) {
- eval($code);
- }
- }
-
- /**
- * Returns a mock object for the specified abstract class with all abstract
- * methods of the class mocked. Concrete methods to mock can be specified with
- * the last parameter
- *
- * @param string $originalClassName
- * @param array $arguments
- * @param string $mockClassName
- * @param bool $callOriginalConstructor
- * @param bool $callOriginalClone
- * @param bool $callAutoload
- * @param array $mockedMethods
- * @param bool $cloneArguments
- * @return object
- * @since Method available since Release 1.0.0
- * @throws PHPUnit_Framework_MockObject_RuntimeException
- * @throws PHPUnit_Framework_Exception
- */
- public function getMockForAbstractClass($originalClassName, array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $mockedMethods = array(), $cloneArguments = true)
- {
- if (!is_string($originalClassName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($mockClassName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(3, 'string');
- }
-
- if (class_exists($originalClassName, $callAutoload) ||
- interface_exists($originalClassName, $callAutoload)) {
- $reflector = new ReflectionClass($originalClassName);
- $methods = $mockedMethods;
-
- foreach ($reflector->getMethods() as $method) {
- if ($method->isAbstract() && !in_array($method->getName(), $methods)) {
- $methods[] = $method->getName();
- }
- }
-
- if (empty($methods)) {
- $methods = null;
- }
-
- return $this->getMock(
- $originalClassName,
- $methods,
- $arguments,
- $mockClassName,
- $callOriginalConstructor,
- $callOriginalClone,
- $callAutoload,
- $cloneArguments
- );
- } else {
- throw new PHPUnit_Framework_MockObject_RuntimeException(
- sprintf('Class "%s" does not exist.', $originalClassName)
- );
- }
- }
-
- /**
- * Returns a mock object for the specified trait with all abstract methods
- * of the trait mocked. Concrete methods to mock can be specified with the
- * `$mockedMethods` parameter.
- *
- * @param string $traitName
- * @param array $arguments
- * @param string $mockClassName
- * @param bool $callOriginalConstructor
- * @param bool $callOriginalClone
- * @param bool $callAutoload
- * @param array $mockedMethods
- * @param bool $cloneArguments
- * @return object
- * @since Method available since Release 1.2.3
- * @throws PHPUnit_Framework_MockObject_RuntimeException
- * @throws PHPUnit_Framework_Exception
- */
- public function getMockForTrait($traitName, array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $mockedMethods = array(), $cloneArguments = true)
- {
- if (!is_string($traitName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($mockClassName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(3, 'string');
- }
-
- if (!trait_exists($traitName, $callAutoload)) {
- throw new PHPUnit_Framework_MockObject_RuntimeException(
- sprintf(
- 'Trait "%s" does not exist.',
- $traitName
- )
- );
- }
-
- $className = $this->generateClassName(
- $traitName,
- '',
- 'Trait_'
- );
-
- $templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' .
- DIRECTORY_SEPARATOR;
- $classTemplate = new Text_Template(
- $templateDir . 'trait_class.tpl'
- );
-
- $classTemplate->setVar(
- array(
- 'prologue' => 'abstract ',
- 'class_name' => $className['className'],
- 'trait_name' => $traitName
- )
- );
-
- $this->evalClass(
- $classTemplate->render(),
- $className['className']
- );
-
- return $this->getMockForAbstractClass($className['className'], $arguments, $mockClassName, $callOriginalConstructor, $callOriginalClone, $callAutoload, $mockedMethods, $cloneArguments);
- }
-
- /**
- * Returns an object for the specified trait.
- *
- * @param string $traitName
- * @param array $arguments
- * @param string $traitClassName
- * @param bool $callOriginalConstructor
- * @param bool $callOriginalClone
- * @param bool $callAutoload
- * @return object
- * @since Method available since Release 1.1.0
- * @throws PHPUnit_Framework_MockObject_RuntimeException
- * @throws PHPUnit_Framework_Exception
- */
- public function getObjectForTrait($traitName, array $arguments = array(), $traitClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true)
- {
- if (!is_string($traitName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($traitClassName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(3, 'string');
- }
-
- if (!trait_exists($traitName, $callAutoload)) {
- throw new PHPUnit_Framework_MockObject_RuntimeException(
- sprintf(
- 'Trait "%s" does not exist.',
- $traitName
- )
- );
- }
-
- $className = $this->generateClassName(
- $traitName,
- $traitClassName,
- 'Trait_'
- );
-
- $templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' .
- DIRECTORY_SEPARATOR;
- $classTemplate = new Text_Template(
- $templateDir . 'trait_class.tpl'
- );
-
- $classTemplate->setVar(
- array(
- 'prologue' => '',
- 'class_name' => $className['className'],
- 'trait_name' => $traitName
- )
- );
-
- return $this->getObject(
- $classTemplate->render(),
- $className['className']
- );
- }
-
- /**
- * @param array|string $type
- * @param array $methods
- * @param string $mockClassName
- * @param bool $callOriginalClone
- * @param bool $callAutoload
- * @param bool $cloneArguments
- * @param bool $callOriginalMethods
- * @return array
- */
- public function generate($type, array $methods = null, $mockClassName = '', $callOriginalClone = true, $callAutoload = true, $cloneArguments = true, $callOriginalMethods = false)
- {
- if (is_array($type)) {
- sort($type);
- }
-
- if ($mockClassName == '') {
- $key = md5(
- is_array($type) ? implode('_', $type) : $type .
- serialize($methods) .
- serialize($callOriginalClone) .
- serialize($cloneArguments) .
- serialize($callOriginalMethods)
- );
-
- if (isset(self::$cache[$key])) {
- return self::$cache[$key];
- }
- }
-
- $mock = $this->generateMock(
- $type,
- $methods,
- $mockClassName,
- $callOriginalClone,
- $callAutoload,
- $cloneArguments,
- $callOriginalMethods
- );
-
- if (isset($key)) {
- self::$cache[$key] = $mock;
- }
-
- return $mock;
- }
-
- /**
- * @param string $wsdlFile
- * @param string $className
- * @param array $methods
- * @param array $options
- * @return string
- * @throws PHPUnit_Framework_MockObject_RuntimeException
- */
- public function generateClassFromWsdl($wsdlFile, $className, array $methods = array(), array $options = array())
- {
- if (!extension_loaded('soap')) {
- throw new PHPUnit_Framework_MockObject_RuntimeException(
- 'The SOAP extension is required to generate a mock object from WSDL.'
- );
- }
-
- $options = array_merge($options, array('cache_wsdl' => WSDL_CACHE_NONE));
- $client = new SoapClient($wsdlFile, $options);
- $_methods = array_unique($client->__getFunctions());
- unset($client);
-
- sort($_methods);
-
- $templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' . DIRECTORY_SEPARATOR;
- $methodTemplate = new Text_Template($templateDir . 'wsdl_method.tpl');
- $methodsBuffer = '';
-
- foreach ($_methods as $method) {
- $nameStart = strpos($method, ' ') + 1;
- $nameEnd = strpos($method, '(');
- $name = substr($method, $nameStart, $nameEnd - $nameStart);
-
- if (empty($methods) || in_array($name, $methods)) {
- $args = explode(
- ',',
- substr(
- $method,
- $nameEnd + 1,
- strpos($method, ')') - $nameEnd - 1
- )
- );
- $numArgs = count($args);
-
- for ($i = 0; $i < $numArgs; $i++) {
- $args[$i] = substr($args[$i], strpos($args[$i], '$'));
- }
-
- $methodTemplate->setVar(
- array(
- 'method_name' => $name,
- 'arguments' => implode(', ', $args)
- )
- );
-
- $methodsBuffer .= $methodTemplate->render();
- }
- }
-
- $optionsBuffer = 'array(';
-
- foreach ($options as $key => $value) {
- $optionsBuffer .= $key . ' => ' . $value;
- }
-
- $optionsBuffer .= ')';
-
- $classTemplate = new Text_Template($templateDir . 'wsdl_class.tpl');
- $namespace = '';
-
- if (strpos($className, '\\') !== false) {
- $parts = explode('\\', $className);
- $className = array_pop($parts);
- $namespace = 'namespace ' . implode('\\', $parts) . ';' . "\n\n";
- }
-
- $classTemplate->setVar(
- array(
- 'namespace' => $namespace,
- 'class_name' => $className,
- 'wsdl' => $wsdlFile,
- 'options' => $optionsBuffer,
- 'methods' => $methodsBuffer
- )
- );
-
- return $classTemplate->render();
- }
-
- /**
- * @param array|string $type
- * @param array|null $methods
- * @param string $mockClassName
- * @param bool $callOriginalClone
- * @param bool $callAutoload
- * @param bool $cloneArguments
- * @param bool $callOriginalMethods
- * @return array
- * @throws PHPUnit_Framework_Exception
- */
- protected function generateMock($type, $methods, $mockClassName, $callOriginalClone, $callAutoload, $cloneArguments, $callOriginalMethods)
- {
- $templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' .
- DIRECTORY_SEPARATOR;
- $classTemplate = new Text_Template(
- $templateDir . 'mocked_class.tpl'
- );
-
- $additionalInterfaces = array();
- $cloneTemplate = '';
- $isClass = false;
- $isInterface = false;
-
- $mockClassName = $this->generateClassName(
- $type,
- $mockClassName,
- 'Mock_'
- );
-
- if (is_array($type)) {
- foreach ($type as $_type) {
- if (!interface_exists($_type, $callAutoload)) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Interface "%s" does not exist.',
- $_type
- )
- );
- }
-
- $additionalInterfaces[] = $_type;
-
- foreach ($this->getClassMethods($_type) as $method) {
- if (in_array($method, $methods)) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Duplicate method "%s" not allowed.',
- $method
- )
- );
- }
-
- $methods[] = $method;
- }
- }
- }
-
- if (class_exists($mockClassName['fullClassName'], $callAutoload)) {
- $isClass = true;
- } else {
- if (interface_exists($mockClassName['fullClassName'], $callAutoload)) {
- $isInterface = true;
- }
- }
-
- if (!class_exists($mockClassName['fullClassName'], $callAutoload) &&
- !interface_exists($mockClassName['fullClassName'], $callAutoload)) {
- $prologue = 'class ' . $mockClassName['originalClassName'] . "\n{\n}\n\n";
-
- if (!empty($mockClassName['namespaceName'])) {
- $prologue = 'namespace ' . $mockClassName['namespaceName'] .
- " {\n\n" . $prologue . "}\n\n" .
- "namespace {\n\n";
-
- $epilogue = "\n\n}";
- }
-
- $cloneTemplate = new Text_Template(
- $templateDir . 'mocked_clone.tpl'
- );
- } else {
- $class = new ReflectionClass($mockClassName['fullClassName']);
-
- if ($class->isFinal()) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Class "%s" is declared "final" and cannot be mocked.',
- $mockClassName['fullClassName']
- )
- );
- }
-
- if ($class->hasMethod('__clone')) {
- $cloneMethod = $class->getMethod('__clone');
-
- if (!$cloneMethod->isFinal()) {
- if ($callOriginalClone && !$isInterface) {
- $cloneTemplate = new Text_Template(
- $templateDir . 'unmocked_clone.tpl'
- );
- } else {
- $cloneTemplate = new Text_Template(
- $templateDir . 'mocked_clone.tpl'
- );
- }
- }
- } else {
- $cloneTemplate = new Text_Template(
- $templateDir . 'mocked_clone.tpl'
- );
- }
- }
-
- if (is_object($cloneTemplate)) {
- $cloneTemplate = $cloneTemplate->render();
- }
-
- if (is_array($methods) && empty($methods) &&
- ($isClass || $isInterface)) {
- $methods = $this->getClassMethods($mockClassName['fullClassName']);
- }
-
- if (!is_array($methods)) {
- $methods = array();
- }
-
- $mockedMethods = '';
-
- if (isset($class)) {
- // https://github.com/sebastianbergmann/phpunit-mock-objects/issues/103
- if ($isInterface && $class->implementsInterface('Traversable') &&
- !$class->implementsInterface('Iterator') &&
- !$class->implementsInterface('IteratorAggregate')) {
- $additionalInterfaces[] = 'Iterator';
- $methods = array_merge($methods, $this->getClassMethods('Iterator'));
- }
-
- foreach ($methods as $methodName) {
- try {
- $method = $class->getMethod($methodName);
-
- if ($this->canMockMethod($method)) {
- $mockedMethods .= $this->generateMockedMethodDefinitionFromExisting(
- $templateDir,
- $method,
- $cloneArguments,
- $callOriginalMethods
- );
- }
- } catch (ReflectionException $e) {
- $mockedMethods .= $this->generateMockedMethodDefinition(
- $templateDir,
- $mockClassName['fullClassName'],
- $methodName,
- $cloneArguments
- );
- }
- }
- } else {
- foreach ($methods as $methodName) {
- $mockedMethods .= $this->generateMockedMethodDefinition(
- $templateDir,
- $mockClassName['fullClassName'],
- $methodName,
- $cloneArguments
- );
- }
- }
-
- $method = '';
-
- if (!in_array('method', $methods)) {
- $methodTemplate = new Text_Template(
- $templateDir . 'mocked_class_method.tpl'
- );
-
- $method = $methodTemplate->render();
- }
-
- $classTemplate->setVar(
- array(
- 'prologue' => isset($prologue) ? $prologue : '',
- 'epilogue' => isset($epilogue) ? $epilogue : '',
- 'class_declaration' => $this->generateMockClassDeclaration(
- $mockClassName,
- $isInterface,
- $additionalInterfaces
- ),
- 'clone' => $cloneTemplate,
- 'mock_class_name' => $mockClassName['className'],
- 'mocked_methods' => $mockedMethods,
- 'method' => $method
- )
- );
-
- return array(
- 'code' => $classTemplate->render(),
- 'mockClassName' => $mockClassName['className']
- );
- }
-
- /**
- * @param array|string $type
- * @param string $className
- * @param string $prefix
- * @return array
- */
- protected function generateClassName($type, $className, $prefix)
- {
- if (is_array($type)) {
- $type = implode('_', $type);
- }
-
- if ($type[0] == '\\') {
- $type = substr($type, 1);
- }
-
- $classNameParts = explode('\\', $type);
-
- if (count($classNameParts) > 1) {
- $type = array_pop($classNameParts);
- $namespaceName = implode('\\', $classNameParts);
- $fullClassName = $namespaceName . '\\' . $type;
- } else {
- $namespaceName = '';
- $fullClassName = $type;
- }
-
- if ($className == '') {
- do {
- $className = $prefix . $type . '_' .
- substr(md5(microtime()), 0, 8);
- } while (class_exists($className, false));
- }
-
- return array(
- 'className' => $className,
- 'originalClassName' => $type,
- 'fullClassName' => $fullClassName,
- 'namespaceName' => $namespaceName
- );
- }
-
- /**
- * @param array $mockClassName
- * @param bool $isInterface
- * @param array $additionalInterfaces
- * @return array
- */
- protected function generateMockClassDeclaration(array $mockClassName, $isInterface, array $additionalInterfaces = array())
- {
- $buffer = 'class ';
-
- $additionalInterfaces[] = 'PHPUnit_Framework_MockObject_MockObject';
- $interfaces = implode(', ', $additionalInterfaces);
-
- if ($isInterface) {
- $buffer .= sprintf(
- '%s implements %s',
- $mockClassName['className'],
- $interfaces
- );
-
- if (!in_array($mockClassName['originalClassName'], $additionalInterfaces)) {
- $buffer .= ', ';
-
- if (!empty($mockClassName['namespaceName'])) {
- $buffer .= $mockClassName['namespaceName'] . '\\';
- }
-
- $buffer .= $mockClassName['originalClassName'];
- }
- } else {
- $buffer .= sprintf(
- '%s extends %s%s implements %s',
- $mockClassName['className'],
- !empty($mockClassName['namespaceName']) ? $mockClassName['namespaceName'] . '\\' : '',
- $mockClassName['originalClassName'],
- $interfaces
- );
- }
-
- return $buffer;
- }
-
- /**
- * @param string $templateDir
- * @param ReflectionMethod $method
- * @param bool $cloneArguments
- * @param bool $callOriginalMethods
- * @return string
- */
- protected function generateMockedMethodDefinitionFromExisting($templateDir, ReflectionMethod $method, $cloneArguments, $callOriginalMethods)
- {
- if ($method->isPrivate()) {
- $modifier = 'private';
- } elseif ($method->isProtected()) {
- $modifier = 'protected';
- } else {
- $modifier = 'public';
- }
-
- if ($method->isStatic()) {
- $modifier .= ' static';
- }
-
- if ($method->returnsReference()) {
- $reference = '&';
- } else {
- $reference = '';
- }
-
- return $this->generateMockedMethodDefinition(
- $templateDir,
- $method->getDeclaringClass()->getName(),
- $method->getName(),
- $cloneArguments,
- $modifier,
- $this->getMethodParameters($method),
- $this->getMethodParameters($method, true),
- $reference,
- $callOriginalMethods,
- $method->isStatic()
- );
- }
-
- /**
- * @param string $templateDir
- * @param string $className
- * @param string $methodName
- * @param bool $cloneArguments
- * @param string $modifier
- * @param string $arguments_decl
- * @param string $arguments_call
- * @param string $reference
- * @param bool $callOriginalMethods
- * @param bool $static
- * @return string
- */
- protected function generateMockedMethodDefinition($templateDir, $className, $methodName, $cloneArguments = true, $modifier = 'public', $arguments_decl = '', $arguments_call = '', $reference = '', $callOriginalMethods = false, $static = false)
- {
- if ($static) {
- $templateFile = 'mocked_static_method.tpl';
- } else {
- $templateFile = sprintf(
- '%s_method.tpl',
- $callOriginalMethods ? 'proxied' : 'mocked'
- );
- }
-
- $template = new Text_Template($templateDir . $templateFile);
-
- $template->setVar(
- array(
- 'arguments_decl' => $arguments_decl,
- 'arguments_call' => $arguments_call,
- 'arguments_count' => !empty($arguments_call) ? count(explode(',', $arguments_call)) : 0,
- 'class_name' => $className,
- 'method_name' => $methodName,
- 'modifier' => $modifier,
- 'reference' => $reference,
- 'clone_arguments' => $cloneArguments ? 'TRUE' : 'FALSE'
- )
- );
-
- return $template->render();
- }
-
- /**
- * @param ReflectionMethod $method
- * @return bool
- */
- protected function canMockMethod(ReflectionMethod $method)
- {
- if ($method->isConstructor() ||
- $method->isFinal() ||
- $method->isPrivate() ||
- isset($this->blacklistedMethodNames[$method->getName()])) {
- return false;
- }
-
- return true;
- }
-
- /**
- * Returns the parameters of a function or method.
- *
- * @param ReflectionMethod $method
- * @param bool $forCall
- * @return string
- * @throws PHPUnit_Framework_MockObject_RuntimeException
- * @since Method available since Release 2.0.0
- */
- protected function getMethodParameters(ReflectionMethod $method, $forCall = false)
- {
- $parameters = array();
-
- foreach ($method->getParameters() as $i => $parameter) {
- $name = '$' . $parameter->getName();
-
- /* Note: PHP extensions may use empty names for reference arguments
- * or "..." for methods taking a variable number of arguments.
- */
- if ($name === '$' || $name === '$...') {
- $name = '$arg' . $i;
- }
-
- if ($this->isVariadic($parameter)) {
- if ($forCall) {
- continue;
- } else {
- $name = '...' . $name;
- }
- }
-
- $default = '';
- $reference = '';
- $typeDeclaration = '';
-
- if (!$forCall) {
- if ($this->hasType($parameter)) {
- $typeDeclaration = (string) $parameter->getType() . ' ';
- } elseif ($parameter->isArray()) {
- $typeDeclaration = 'array ';
- } elseif ((defined('HHVM_VERSION') || version_compare(PHP_VERSION, '5.4.0', '>='))
- && $parameter->isCallable()) {
- $typeDeclaration = 'callable ';
- } else {
- try {
- $class = $parameter->getClass();
- } catch (ReflectionException $e) {
- throw new PHPUnit_Framework_MockObject_RuntimeException(
- sprintf(
- 'Cannot mock %s::%s() because a class or ' .
- 'interface used in the signature is not loaded',
- $method->getDeclaringClass()->getName(),
- $method->getName()
- ),
- 0,
- $e
- );
- }
-
- if ($class !== null) {
- $typeDeclaration = $class->getName() . ' ';
- }
- }
-
- if (!$this->isVariadic($parameter)) {
- if ($parameter->isDefaultValueAvailable()) {
- $value = $parameter->getDefaultValue();
- $default = ' = ' . var_export($value, true);
- } elseif ($parameter->isOptional()) {
- $default = ' = null';
- }
- }
- }
-
- if ($parameter->isPassedByReference()) {
- $reference = '&';
- }
-
- $parameters[] = $typeDeclaration . $reference . $name . $default;
- }
-
- return implode(', ', $parameters);
- }
-
- /**
- * @param ReflectionParameter $parameter
- * @return bool
- * @since Method available since Release 2.2.1
- */
- private function isVariadic(ReflectionParameter $parameter)
- {
- return method_exists('ReflectionParameter', 'isVariadic') && $parameter->isVariadic();
- }
-
- /**
- * @param ReflectionParameter $parameter
- * @return bool
- * @since Method available since Release 2.3.4
- */
- private function hasType(ReflectionParameter $parameter)
- {
- return method_exists('ReflectionParameter', 'hasType') && $parameter->hasType();
- }
-
- /**
- * @param string $className
- * @return array
- * @since Method available since Release 2.3.2
- */
- private function getClassMethods($className)
- {
- $class = new ReflectionClass($className);
- $methods = array();
-
- foreach ($class->getMethods() as $method) {
- if (($method->isPublic() || $method->isAbstract()) && !in_array($method->getName(), $methods)) {
- $methods[] = $method->getName();
- }
- }
-
- return $methods;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_class.tpl.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_class.tpl.dist
deleted file mode 100644
index a9a94cd0..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_class.tpl.dist
+++ /dev/null
@@ -1,36 +0,0 @@
-{prologue}{class_declaration}
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
-{clone}{mocked_methods}
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-{method}
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}{epilogue}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_class_method.tpl.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_class_method.tpl.dist
deleted file mode 100644
index 9e29c0d5..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_class_method.tpl.dist
+++ /dev/null
@@ -1,7 +0,0 @@
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_clone.tpl.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_clone.tpl.dist
deleted file mode 100644
index bd846dee..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_clone.tpl.dist
+++ /dev/null
@@ -1,4 +0,0 @@
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_method.tpl.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_method.tpl.dist
deleted file mode 100644
index e2f55d9f..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_method.tpl.dist
+++ /dev/null
@@ -1,22 +0,0 @@
-
- {modifier} function {reference}{method_name}({arguments_decl})
- {
- $arguments = array({arguments_call});
- $count = func_num_args();
-
- if ($count > {arguments_count}) {
- $_arguments = func_get_args();
-
- for ($i = {arguments_count}; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- '{class_name}', '{method_name}', $arguments, $this, {clone_arguments}
- )
- );
-
- return $result;
- }
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_static_method.tpl.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_static_method.tpl.dist
deleted file mode 100644
index 5454b2f3..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_static_method.tpl.dist
+++ /dev/null
@@ -1,5 +0,0 @@
-
- {modifier} function {reference}{method_name}({arguments_decl})
- {
- throw new PHPUnit_Framework_MockObject_BadMethodCallException;
- }
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/proxied_method.tpl.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/proxied_method.tpl.dist
deleted file mode 100644
index 15e89bd6..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/proxied_method.tpl.dist
+++ /dev/null
@@ -1,22 +0,0 @@
-
- {modifier} function {reference}{method_name}({arguments_decl})
- {
- $arguments = array({arguments_call});
- $count = func_num_args();
-
- if ($count > {arguments_count}) {
- $_arguments = func_get_args();
-
- for ($i = {arguments_count}; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- '{class_name}', '{method_name}', $arguments, $this, {clone_arguments}
- )
- );
-
- return call_user_func_array(array($this->__phpunit_originalObject, "{method_name}"), $arguments);
- }
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/trait_class.tpl.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/trait_class.tpl.dist
deleted file mode 100644
index 4143b0f6..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/trait_class.tpl.dist
+++ /dev/null
@@ -1,4 +0,0 @@
-{prologue}class {class_name}
-{
- use {trait_name};
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/unmocked_clone.tpl.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/unmocked_clone.tpl.dist
deleted file mode 100644
index fa0e70ab..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/unmocked_clone.tpl.dist
+++ /dev/null
@@ -1,5 +0,0 @@
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- parent::__clone();
- }
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/wsdl_class.tpl.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/wsdl_class.tpl.dist
deleted file mode 100644
index cc69fd34..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/wsdl_class.tpl.dist
+++ /dev/null
@@ -1,7 +0,0 @@
-{namespace}class {class_name} extends \SoapClient
-{
- public function __construct($wsdl, array $options)
- {
- parent::__construct('{wsdl}', $options);
- }
-{methods}}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/wsdl_method.tpl.dist b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/wsdl_method.tpl.dist
deleted file mode 100644
index bb16e763..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/wsdl_method.tpl.dist
+++ /dev/null
@@ -1,4 +0,0 @@
-
- public function {method_name}({arguments})
- {
- }
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation.php
deleted file mode 100644
index 055707d5..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Interface for invocations.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Invocation
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Object.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Object.php
deleted file mode 100644
index 575c13cd..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Object.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Represents a non-static invocation.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Invocation_Object extends PHPUnit_Framework_MockObject_Invocation_Static
-{
- /**
- * @var object
- */
- public $object;
-
- /**
- * @param string $className
- * @param string $methodname
- * @param array $parameters
- * @param object $object
- * @param object $cloneObjects
- */
- public function __construct($className, $methodName, array $parameters, $object, $cloneObjects = false)
- {
- parent::__construct($className, $methodName, $parameters, $cloneObjects);
- $this->object = $object;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Static.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Static.php
deleted file mode 100644
index 3d295e59..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Static.php
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Exporter\Exporter;
-
-/**
- * Represents a static invocation.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Invocation_Static implements PHPUnit_Framework_MockObject_Invocation, PHPUnit_Framework_SelfDescribing
-{
- /**
- * @var array
- */
- protected static $uncloneableExtensions = array(
- 'mysqli' => true,
- 'SQLite' => true,
- 'sqlite3' => true,
- 'tidy' => true,
- 'xmlwriter' => true,
- 'xsl' => true
- );
-
- /**
- * @var array
- */
- protected static $uncloneableClasses = array(
- 'Closure',
- 'COMPersistHelper',
- 'IteratorIterator',
- 'RecursiveIteratorIterator',
- 'SplFileObject',
- 'PDORow',
- 'ZipArchive'
- );
-
- /**
- * @var string
- */
- public $className;
-
- /**
- * @var string
- */
- public $methodName;
-
- /**
- * @var array
- */
- public $parameters;
-
- /**
- * @param string $className
- * @param string $methodname
- * @param array $parameters
- * @param bool $cloneObjects
- */
- public function __construct($className, $methodName, array $parameters, $cloneObjects = false)
- {
- $this->className = $className;
- $this->methodName = $methodName;
- $this->parameters = $parameters;
-
- if (!$cloneObjects) {
- return;
- }
-
- foreach ($this->parameters as $key => $value) {
- if (is_object($value)) {
- $this->parameters[$key] = $this->cloneObject($value);
- }
- }
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- $exporter = new Exporter;
-
- return sprintf(
- '%s::%s(%s)',
- $this->className,
- $this->methodName,
- implode(
- ', ',
- array_map(
- array($exporter, 'shortenedExport'),
- $this->parameters
- )
- )
- );
- }
-
- /**
- * @param object $original
- * @return object
- */
- protected function cloneObject($original)
- {
- $cloneable = null;
- $object = new ReflectionObject($original);
-
- // Check the blacklist before asking PHP reflection to work around
- // https://bugs.php.net/bug.php?id=53967
- if ($object->isInternal() &&
- isset(self::$uncloneableExtensions[$object->getExtensionName()])) {
- $cloneable = false;
- }
-
- if ($cloneable === null) {
- foreach (self::$uncloneableClasses as $class) {
- if ($original instanceof $class) {
- $cloneable = false;
- break;
- }
- }
- }
-
- if ($cloneable === null && method_exists($object, 'isCloneable')) {
- $cloneable = $object->isCloneable();
- }
-
- if ($cloneable === null && $object->hasMethod('__clone')) {
- $method = $object->getMethod('__clone');
- $cloneable = $method->isPublic();
- }
-
- if ($cloneable === null) {
- $cloneable = true;
- }
-
- if ($cloneable) {
- try {
- return clone $original;
- } catch (Exception $e) {
- return $original;
- }
- } else {
- return $original;
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/InvocationMocker.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/InvocationMocker.php
deleted file mode 100644
index 4bec5d62..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/InvocationMocker.php
+++ /dev/null
@@ -1,156 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Mocker for invocations which are sent from
- * PHPUnit_Framework_MockObject_MockObject objects.
- *
- * Keeps track of all expectations and stubs as well as registering
- * identifications for builders.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_InvocationMocker implements PHPUnit_Framework_MockObject_Stub_MatcherCollection, PHPUnit_Framework_MockObject_Invokable, PHPUnit_Framework_MockObject_Builder_Namespace
-{
- /**
- * @var PHPUnit_Framework_MockObject_Matcher_Invocation[]
- */
- protected $matchers = array();
-
- /**
- * @var PHPUnit_Framework_MockObject_Builder_Match[]
- */
- protected $builderMap = array();
-
- /**
- * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher
- */
- public function addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- $this->matchers[] = $matcher;
- }
-
- /**
- * @since Method available since Release 1.1.0
- */
- public function hasMatchers()
- {
- foreach ($this->matchers as $matcher) {
- if ($matcher->hasMatchers()) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * @param mixed $id
- * @return bool|null
- */
- public function lookupId($id)
- {
- if (isset($this->builderMap[$id])) {
- return $this->builderMap[$id];
- }
-
- return;
- }
-
- /**
- * @param mixed $id
- * @param PHPUnit_Framework_MockObject_Builder_Match $builder
- * @throws PHPUnit_Framework_Exception
- */
- public function registerId($id, PHPUnit_Framework_MockObject_Builder_Match $builder)
- {
- if (isset($this->builderMap[$id])) {
- throw new PHPUnit_Framework_Exception(
- 'Match builder with id <' . $id . '> is already registered.'
- );
- }
-
- $this->builderMap[$id] = $builder;
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return new PHPUnit_Framework_MockObject_Builder_InvocationMocker(
- $this,
- $matcher
- );
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @return mixed
- */
- public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- $exception = null;
- $hasReturnValue = false;
-
- if (strtolower($invocation->methodName) == '__tostring') {
- $returnValue = '';
- } else {
- $returnValue = null;
- }
-
- foreach ($this->matchers as $match) {
- try {
- if ($match->matches($invocation)) {
- $value = $match->invoked($invocation);
-
- if (!$hasReturnValue) {
- $returnValue = $value;
- $hasReturnValue = true;
- }
- }
- } catch (Exception $e) {
- $exception = $e;
- }
- }
-
- if ($exception !== null) {
- throw $exception;
- }
-
- return $returnValue;
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @return bool
- */
- public function matches(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- foreach ($this->matchers as $matcher) {
- if (!$matcher->matches($invocation)) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * @return bool
- */
- public function verify()
- {
- foreach ($this->matchers as $matcher) {
- $matcher->verify();
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invokable.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invokable.php
deleted file mode 100644
index b5699a0d..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invokable.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Interface for classes which can be invoked.
- *
- * The invocation will be taken from a mock object and passed to an object
- * of this class.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Invokable extends PHPUnit_Framework_MockObject_Verifiable
-{
- /**
- * Invokes the invocation object $invocation so that it can be checked for
- * expectations or matched against stubs.
- *
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * The invocation object passed from mock object.
- * @return object
- */
- public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation);
-
- /**
- * Checks if the invocation matches.
- *
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * The invocation object passed from mock object.
- * @return bool
- */
- public function matches(PHPUnit_Framework_MockObject_Invocation $invocation);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher.php
deleted file mode 100644
index da3bcde9..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher.php
+++ /dev/null
@@ -1,271 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Main matcher which defines a full expectation using method, parameter and
- * invocation matchers.
- * This matcher encapsulates all the other matchers and allows the builder to
- * set the specific matchers when the appropriate methods are called (once(),
- * where() etc.).
- *
- * All properties are public so that they can easily be accessed by the builder.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation
-{
- /**
- * @var PHPUnit_Framework_MockObject_Matcher_Invocation
- */
- public $invocationMatcher;
-
- /**
- * @var mixed
- */
- public $afterMatchBuilderId = null;
-
- /**
- * @var bool
- */
- public $afterMatchBuilderIsInvoked = false;
-
- /**
- * @var PHPUnit_Framework_MockObject_Matcher_MethodName
- */
- public $methodNameMatcher = null;
-
- /**
- * @var PHPUnit_Framework_MockObject_Matcher_Parameters
- */
- public $parametersMatcher = null;
-
- /**
- * @var PHPUnit_Framework_MockObject_Stub
- */
- public $stub = null;
-
- /**
- * @param PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher
- */
- public function __construct(PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher)
- {
- $this->invocationMatcher = $invocationMatcher;
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- $list = array();
-
- if ($this->invocationMatcher !== null) {
- $list[] = $this->invocationMatcher->toString();
- }
-
- if ($this->methodNameMatcher !== null) {
- $list[] = 'where ' . $this->methodNameMatcher->toString();
- }
-
- if ($this->parametersMatcher !== null) {
- $list[] = 'and ' . $this->parametersMatcher->toString();
- }
-
- if ($this->afterMatchBuilderId !== null) {
- $list[] = 'after ' . $this->afterMatchBuilderId;
- }
-
- if ($this->stub !== null) {
- $list[] = 'will ' . $this->stub->toString();
- }
-
- return implode(' ', $list);
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @return mixed
- */
- public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- if ($this->invocationMatcher === null) {
- throw new PHPUnit_Framework_Exception(
- 'No invocation matcher is set'
- );
- }
-
- if ($this->methodNameMatcher === null) {
- throw new PHPUnit_Framework_Exception('No method matcher is set');
- }
-
- if ($this->afterMatchBuilderId !== null) {
- $builder = $invocation->object
- ->__phpunit_getInvocationMocker()
- ->lookupId($this->afterMatchBuilderId);
-
- if (!$builder) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'No builder found for match builder identification <%s>',
- $this->afterMatchBuilderId
- )
- );
- }
-
- $matcher = $builder->getMatcher();
-
- if ($matcher && $matcher->invocationMatcher->hasBeenInvoked()) {
- $this->afterMatchBuilderIsInvoked = true;
- }
- }
-
- $this->invocationMatcher->invoked($invocation);
-
- try {
- if ($this->parametersMatcher !== null &&
- !$this->parametersMatcher->matches($invocation)) {
- $this->parametersMatcher->verify();
- }
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- sprintf(
- "Expectation failed for %s when %s\n%s",
- $this->methodNameMatcher->toString(),
- $this->invocationMatcher->toString(),
- $e->getMessage()
- ),
- $e->getComparisonFailure()
- );
- }
-
- if ($this->stub) {
- return $this->stub->invoke($invocation);
- }
-
- return;
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @return bool
- */
- public function matches(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- if ($this->afterMatchBuilderId !== null) {
- $builder = $invocation->object
- ->__phpunit_getInvocationMocker()
- ->lookupId($this->afterMatchBuilderId);
-
- if (!$builder) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'No builder found for match builder identification <%s>',
- $this->afterMatchBuilderId
- )
- );
- }
-
- $matcher = $builder->getMatcher();
-
- if (!$matcher) {
- return false;
- }
-
- if (!$matcher->invocationMatcher->hasBeenInvoked()) {
- return false;
- }
- }
-
- if ($this->invocationMatcher === null) {
- throw new PHPUnit_Framework_Exception(
- 'No invocation matcher is set'
- );
- }
-
- if ($this->methodNameMatcher === null) {
- throw new PHPUnit_Framework_Exception('No method matcher is set');
- }
-
- if (!$this->invocationMatcher->matches($invocation)) {
- return false;
- }
-
- try {
- if (!$this->methodNameMatcher->matches($invocation)) {
- return false;
- }
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- sprintf(
- "Expectation failed for %s when %s\n%s",
- $this->methodNameMatcher->toString(),
- $this->invocationMatcher->toString(),
- $e->getMessage()
- ),
- $e->getComparisonFailure()
- );
- }
-
- return true;
- }
-
- /**
- * @throws PHPUnit_Framework_Exception
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function verify()
- {
- if ($this->invocationMatcher === null) {
- throw new PHPUnit_Framework_Exception(
- 'No invocation matcher is set'
- );
- }
-
- if ($this->methodNameMatcher === null) {
- throw new PHPUnit_Framework_Exception('No method matcher is set');
- }
-
- try {
- $this->invocationMatcher->verify();
-
- if ($this->parametersMatcher === null) {
- $this->parametersMatcher = new PHPUnit_Framework_MockObject_Matcher_AnyParameters;
- }
-
- $invocationIsAny = get_class($this->invocationMatcher) === 'PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount';
- $invocationIsNever = get_class($this->invocationMatcher) === 'PHPUnit_Framework_MockObject_Matcher_InvokedCount' && $this->invocationMatcher->isNever();
- if (!$invocationIsAny && !$invocationIsNever) {
- $this->parametersMatcher->verify();
- }
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- sprintf(
- "Expectation failed for %s when %s.\n%s",
- $this->methodNameMatcher->toString(),
- $this->invocationMatcher->toString(),
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- )
- );
- }
- }
-
- /**
- * @since Method available since Release 1.2.4
- */
- public function hasMatchers()
- {
- if ($this->invocationMatcher !== null &&
- !$this->invocationMatcher instanceof PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount) {
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyInvokedCount.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyInvokedCount.php
deleted file mode 100644
index 480f1fd1..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyInvokedCount.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which checks if a method has been invoked zero or more
- * times. This matcher will always match.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder
-{
- /**
- * @return string
- */
- public function toString()
- {
- return 'invoked zero or more times';
- }
-
- /**
- */
- public function verify()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyParameters.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyParameters.php
deleted file mode 100644
index 482a14f5..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyParameters.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which allows any parameters to a method.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Matcher_AnyParameters extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation
-{
- /**
- * @return string
- */
- public function toString()
- {
- return 'with any parameters';
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @return bool
- */
- public function matches(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- return true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/ConsecutiveParameters.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/ConsecutiveParameters.php
deleted file mode 100644
index adf74bb4..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/ConsecutiveParameters.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which looks for sets of specific parameters in the invocations.
- *
- * Checks the parameters of the incoming invocations, the parameter list is
- * checked against the defined constraints in $parameters. If the constraint
- * is met it will return true in matches().
- *
- * It takes a list of match groups and and increases a call index after each invocation.
- * So the first invocation uses the first group of constraints, the second the next and so on.
- */
-class PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation
-{
- /**
- * @var array
- */
- private $_parameterGroups = array();
-
- /**
- * @var array
- */
- private $_invocations = array();
-
- /**
- * @param array $parameterGroups
- */
- public function __construct(array $parameterGroups)
- {
- foreach ($parameterGroups as $index => $parameters) {
- foreach ($parameters as $parameter) {
- if (!($parameter instanceof \PHPUnit_Framework_Constraint)) {
- $parameter = new \PHPUnit_Framework_Constraint_IsEqual($parameter);
- }
- $this->_parameterGroups[$index][] = $parameter;
- }
- }
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- $text = 'with consecutive parameters';
-
- return $text;
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @return bool
- */
- public function matches(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- $this->_invocations[] = $invocation;
- $callIndex = count($this->_invocations) - 1;
- $this->verifyInvocation($invocation, $callIndex);
-
- return false;
- }
-
- public function verify()
- {
- foreach ($this->_invocations as $callIndex => $invocation) {
- $this->verifyInvocation($invocation, $callIndex);
- }
- }
-
- /**
- * Verify a single invocation
- *
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @param int $callIndex
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- private function verifyInvocation(PHPUnit_Framework_MockObject_Invocation $invocation, $callIndex)
- {
-
- if (isset($this->_parameterGroups[$callIndex])) {
- $parameters = $this->_parameterGroups[$callIndex];
- } else {
- // no parameter assertion for this call index
- return;
- }
-
- if ($invocation === null) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- 'Mocked method does not exist.'
- );
- }
-
- if (count($invocation->parameters) < count($parameters)) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- sprintf(
- 'Parameter count for invocation %s is too low.',
- $invocation->toString()
- )
- );
- }
-
- foreach ($parameters as $i => $parameter) {
- $parameter->evaluate(
- $invocation->parameters[$i],
- sprintf(
- 'Parameter %s for invocation #%d %s does not match expected ' .
- 'value.',
- $i,
- $callIndex,
- $invocation->toString()
- )
- );
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Invocation.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Invocation.php
deleted file mode 100644
index cbe428cb..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Invocation.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Interface for classes which matches an invocation based on its
- * method name, argument, order or call count.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Matcher_Invocation extends PHPUnit_Framework_SelfDescribing, PHPUnit_Framework_MockObject_Verifiable
-{
- /**
- * Registers the invocation $invocation in the object as being invoked.
- * This will only occur after matches() returns true which means the
- * current invocation is the correct one.
- *
- * The matcher can store information from the invocation which can later
- * be checked in verify(), or it can check the values directly and throw
- * and exception if an expectation is not met.
- *
- * If the matcher is a stub it will also have a return value.
- *
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * Object containing information on a mocked or stubbed method which
- * was invoked.
- * @return mixed
- */
- public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation);
-
- /**
- * Checks if the invocation $invocation matches the current rules. If it does
- * the matcher will get the invoked() method called which should check if an
- * expectation is met.
- *
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * Object containing information on a mocked or stubbed method which
- * was invoked.
- * @return bool
- */
- public function matches(PHPUnit_Framework_MockObject_Invocation $invocation);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtIndex.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtIndex.php
deleted file mode 100644
index 1b170894..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtIndex.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which checks if a method was invoked at a certain index.
- *
- * If the expected index number does not match the current invocation index it
- * will not match which means it skips all method and parameter matching. Only
- * once the index is reached will the method and parameter start matching and
- * verifying.
- *
- * If the index is never reached it will throw an exception in index.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex implements PHPUnit_Framework_MockObject_Matcher_Invocation
-{
- /**
- * @var int
- */
- protected $sequenceIndex;
-
- /**
- * @var int
- */
- protected $currentIndex = -1;
-
- /**
- * @param int $sequenceIndex
- */
- public function __construct($sequenceIndex)
- {
- $this->sequenceIndex = $sequenceIndex;
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- return 'invoked at sequence index ' . $this->sequenceIndex;
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @return bool
- */
- public function matches(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- $this->currentIndex++;
-
- return $this->currentIndex == $this->sequenceIndex;
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- */
- public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- }
-
- /**
- * Verifies that the current expectation is valid. If everything is OK the
- * code should just return, if not it must throw an exception.
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function verify()
- {
- if ($this->currentIndex < $this->sequenceIndex) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- sprintf(
- 'The expected invocation at index %s was never reached.',
- $this->sequenceIndex
- )
- );
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastCount.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastCount.php
deleted file mode 100644
index 23bf05b4..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastCount.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which checks if a method has been invoked at least
- * N times.
- *
- * @since Class available since Release 2.2.0
- */
-class PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastCount extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder
-{
- /**
- * @var int
- */
- private $requiredInvocations;
-
- /**
- * @param int $requiredInvocations
- */
- public function __construct($requiredInvocations)
- {
- $this->requiredInvocations = $requiredInvocations;
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- return 'invoked at least ' . $this->requiredInvocations . ' times';
- }
-
- /**
- * Verifies that the current expectation is valid. If everything is OK the
- * code should just return, if not it must throw an exception.
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function verify()
- {
- $count = $this->getInvocationCount();
-
- if ($count < $this->requiredInvocations) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- 'Expected invocation at least ' . $this->requiredInvocations .
- ' times but it occured ' . $count . ' time(s).'
- );
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastOnce.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastOnce.php
deleted file mode 100644
index 4df2dd1b..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastOnce.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which checks if a method has been invoked at least one
- * time.
- *
- * If the number of invocations is 0 it will throw an exception in verify.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder
-{
- /**
- * @return string
- */
- public function toString()
- {
- return 'invoked at least once';
- }
-
- /**
- * Verifies that the current expectation is valid. If everything is OK the
- * code should just return, if not it must throw an exception.
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function verify()
- {
- $count = $this->getInvocationCount();
-
- if ($count < 1) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- 'Expected invocation at least once but it never occured.'
- );
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtMostCount.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtMostCount.php
deleted file mode 100644
index df9f124a..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtMostCount.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which checks if a method has been invoked at least
- * N times.
- *
- * @since Class available since Release 2.2.0
- */
-class PHPUnit_Framework_MockObject_Matcher_InvokedAtMostCount extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder
-{
- /**
- * @var int
- */
- private $allowedInvocations;
-
- /**
- * @param int $allowedInvocations
- */
- public function __construct($allowedInvocations)
- {
- $this->allowedInvocations = $allowedInvocations;
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- return 'invoked at most ' . $this->allowedInvocations . ' times';
- }
-
- /**
- * Verifies that the current expectation is valid. If everything is OK the
- * code should just return, if not it must throw an exception.
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function verify()
- {
- $count = $this->getInvocationCount();
-
- if ($count > $this->allowedInvocations) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- 'Expected invocation at most ' . $this->allowedInvocations .
- ' times but it occured ' . $count . ' time(s).'
- );
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedCount.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedCount.php
deleted file mode 100644
index d87dd356..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedCount.php
+++ /dev/null
@@ -1,109 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which checks if a method has been invoked a certain amount
- * of times.
- * If the number of invocations exceeds the value it will immediately throw an
- * exception,
- * If the number is less it will later be checked in verify() and also throw an
- * exception.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Matcher_InvokedCount extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder
-{
- /**
- * @var int
- */
- protected $expectedCount;
-
- /**
- * @param int $expectedCount
- */
- public function __construct($expectedCount)
- {
- $this->expectedCount = $expectedCount;
- }
-
- /**
- * @return bool
- */
- public function isNever()
- {
- return $this->expectedCount == 0;
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- return 'invoked ' . $this->expectedCount . ' time(s)';
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- parent::invoked($invocation);
-
- $count = $this->getInvocationCount();
-
- if ($count > $this->expectedCount) {
- $message = $invocation->toString() . ' ';
-
- switch ($this->expectedCount) {
- case 0: {
- $message .= 'was not expected to be called.';
- }
- break;
-
- case 1: {
- $message .= 'was not expected to be called more than once.';
- }
- break;
-
- default: {
- $message .= sprintf(
- 'was not expected to be called more than %d times.',
- $this->expectedCount
- );
- }
- }
-
- throw new PHPUnit_Framework_ExpectationFailedException($message);
- }
- }
-
- /**
- * Verifies that the current expectation is valid. If everything is OK the
- * code should just return, if not it must throw an exception.
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function verify()
- {
- $count = $this->getInvocationCount();
-
- if ($count !== $this->expectedCount) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- sprintf(
- 'Method was expected to be called %d times, ' .
- 'actually called %d times.',
- $this->expectedCount,
- $count
- )
- );
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedRecorder.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedRecorder.php
deleted file mode 100644
index d652f2d6..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedRecorder.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Records invocations and provides convenience methods for checking them later
- * on.
- * This abstract class can be implemented by matchers which needs to check the
- * number of times an invocation has occured.
- *
- * @since Class available since Release 1.0.0
- * @abstract
- */
-abstract class PHPUnit_Framework_MockObject_Matcher_InvokedRecorder implements PHPUnit_Framework_MockObject_Matcher_Invocation
-{
- /**
- * @var PHPUnit_Framework_MockObject_Invocation[]
- */
- protected $invocations = array();
-
- /**
- * @return int
- */
- public function getInvocationCount()
- {
- return count($this->invocations);
- }
-
- /**
- * @return PHPUnit_Framework_MockObject_Invocation[]
- */
- public function getInvocations()
- {
- return $this->invocations;
- }
-
- /**
- * @return bool
- */
- public function hasBeenInvoked()
- {
- return count($this->invocations) > 0;
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- */
- public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- $this->invocations[] = $invocation;
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @return bool
- */
- public function matches(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- return true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/MethodName.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/MethodName.php
deleted file mode 100644
index 1e32c7be..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/MethodName.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which looks for a specific method name in the invocations.
- *
- * Checks the method name all incoming invocations, the name is checked against
- * the defined constraint $constraint. If the constraint is met it will return
- * true in matches().
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Matcher_MethodName extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation
-{
- /**
- * @var PHPUnit_Framework_Constraint
- */
- protected $constraint;
-
- /**
- * @param PHPUnit_Framework_Constraint|string
- * @throws PHPUnit_Framework_Constraint
- */
- public function __construct($constraint)
- {
- if (!$constraint instanceof PHPUnit_Framework_Constraint) {
- if (!is_string($constraint)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_IsEqual(
- $constraint,
- 0,
- 10,
- false,
- true
- );
- }
-
- $this->constraint = $constraint;
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- return 'method name ' . $this->constraint->toString();
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @return bool
- */
- public function matches(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- return $this->constraint->evaluate($invocation->methodName, '', true);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Parameters.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Parameters.php
deleted file mode 100644
index cd8aa85f..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Parameters.php
+++ /dev/null
@@ -1,127 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which looks for specific parameters in the invocations.
- *
- * Checks the parameters of all incoming invocations, the parameter list is
- * checked against the defined constraints in $parameters. If the constraint
- * is met it will return true in matches().
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Matcher_Parameters extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation
-{
- /**
- * @var PHPUnit_Framework_Constraint[]
- */
- protected $parameters = array();
-
- /**
- * @var PHPUnit_Framework_MockObject_Invocation
- */
- protected $invocation;
-
- /**
- * @param array $parameters
- */
- public function __construct(array $parameters)
- {
- foreach ($parameters as $parameter) {
- if (!($parameter instanceof PHPUnit_Framework_Constraint)) {
- $parameter = new PHPUnit_Framework_Constraint_IsEqual(
- $parameter
- );
- }
-
- $this->parameters[] = $parameter;
- }
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- $text = 'with parameter';
-
- foreach ($this->parameters as $index => $parameter) {
- if ($index > 0) {
- $text .= ' and';
- }
-
- $text .= ' ' . $index . ' ' . $parameter->toString();
- }
-
- return $text;
- }
-
- /**
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * @return bool
- */
- public function matches(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- $this->invocation = $invocation;
-
- return $this->verify();
- }
-
- /**
- * Checks if the invocation $invocation matches the current rules. If it
- * does the matcher will get the invoked() method called which should check
- * if an expectation is met.
- *
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * Object containing information on a mocked or stubbed method which
- * was invoked.
- * @return bool
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function verify()
- {
- if ($this->invocation === null) {
- throw new PHPUnit_Framework_ExpectationFailedException(
- 'Mocked method does not exist.'
- );
- }
-
- if (count($this->invocation->parameters) < count($this->parameters)) {
- $message = 'Parameter count for invocation %s is too low.';
-
- // The user called `->with($this->anything())`, but may have meant
- // `->withAnyParameters()`.
- //
- // @see https://github.com/sebastianbergmann/phpunit-mock-objects/issues/199
- if (count($this->parameters) === 1 &&
- get_class($this->parameters[0]) === 'PHPUnit_Framework_Constraint_IsAnything') {
- $message .= "\nTo allow 0 or more parameters with any value, omit ->with() or use ->withAnyParameters() instead.";
- }
-
- throw new PHPUnit_Framework_ExpectationFailedException(
- sprintf($message, $this->invocation->toString())
- );
- }
-
- foreach ($this->parameters as $i => $parameter) {
- $parameter->evaluate(
- $this->invocation->parameters[$i],
- sprintf(
- 'Parameter %s for invocation %s does not match expected ' .
- 'value.',
- $i,
- $this->invocation->toString()
- )
- );
- }
-
- return true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/StatelessInvocation.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/StatelessInvocation.php
deleted file mode 100644
index c2e263a8..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/StatelessInvocation.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Invocation matcher which does not care about previous state from earlier
- * invocations.
- *
- * This abstract class can be implemented by matchers which does not care about
- * state but only the current run-time value of the invocation itself.
- *
- * @since Class available since Release 1.0.0
- * @abstract
- */
-abstract class PHPUnit_Framework_MockObject_Matcher_StatelessInvocation implements PHPUnit_Framework_MockObject_Matcher_Invocation
-{
- /**
- * Registers the invocation $invocation in the object as being invoked.
- * This will only occur after matches() returns true which means the
- * current invocation is the correct one.
- *
- * The matcher can store information from the invocation which can later
- * be checked in verify(), or it can check the values directly and throw
- * and exception if an expectation is not met.
- *
- * If the matcher is a stub it will also have a return value.
- *
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * Object containing information on a mocked or stubbed method which
- * was invoked.
- * @return mixed
- */
- public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- }
-
- /**
- * Checks if the invocation $invocation matches the current rules. If it does
- * the matcher will get the invoked() method called which should check if an
- * expectation is met.
- *
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * Object containing information on a mocked or stubbed method which
- * was invoked.
- * @return bool
- */
- public function verify()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockBuilder.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockBuilder.php
deleted file mode 100644
index 9f8a380e..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockBuilder.php
+++ /dev/null
@@ -1,322 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Implementation of the Builder pattern for Mock objects.
- *
- * @since File available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_MockBuilder
-{
- /**
- * @var PHPUnit_Framework_TestCase
- */
- private $testCase;
-
- /**
- * @var string
- */
- private $type;
-
- /**
- * @var array
- */
- private $methods = array();
-
- /**
- * @var string
- */
- private $mockClassName = '';
-
- /**
- * @var array
- */
- private $constructorArgs = array();
-
- /**
- * @var bool
- */
- private $originalConstructor = true;
-
- /**
- * @var bool
- */
- private $originalClone = true;
-
- /**
- * @var bool
- */
- private $autoload = true;
-
- /**
- * @var bool
- */
- private $cloneArguments = false;
-
- /**
- * @var bool
- */
- private $callOriginalMethods = false;
-
- /**
- * @var object
- */
- private $proxyTarget = null;
-
- /**
- * @param PHPUnit_Framework_TestCase $testCase
- * @param array|string $type
- */
- public function __construct(PHPUnit_Framework_TestCase $testCase, $type)
- {
- $this->testCase = $testCase;
- $this->type = $type;
- }
-
- /**
- * Creates a mock object using a fluent interface.
- *
- * @return PHPUnit_Framework_MockObject_MockObject
- */
- public function getMock()
- {
- return $this->testCase->getMock(
- $this->type,
- $this->methods,
- $this->constructorArgs,
- $this->mockClassName,
- $this->originalConstructor,
- $this->originalClone,
- $this->autoload,
- $this->cloneArguments,
- $this->callOriginalMethods,
- $this->proxyTarget
- );
- }
-
- /**
- * Creates a mock object for an abstract class using a fluent interface.
- *
- * @return PHPUnit_Framework_MockObject_MockObject
- */
- public function getMockForAbstractClass()
- {
- return $this->testCase->getMockForAbstractClass(
- $this->type,
- $this->constructorArgs,
- $this->mockClassName,
- $this->originalConstructor,
- $this->originalClone,
- $this->autoload,
- $this->methods,
- $this->cloneArguments
- );
- }
-
- /**
- * Creates a mock object for a trait using a fluent interface.
- *
- * @return PHPUnit_Framework_MockObject_MockObject
- */
- public function getMockForTrait()
- {
- return $this->testCase->getMockForTrait(
- $this->type,
- $this->constructorArgs,
- $this->mockClassName,
- $this->originalConstructor,
- $this->originalClone,
- $this->autoload,
- $this->methods,
- $this->cloneArguments
- );
- }
-
- /**
- * Specifies the subset of methods to mock. Default is to mock all of them.
- *
- * @param array|null $methods
- * @return PHPUnit_Framework_MockObject_MockBuilder
- */
- public function setMethods($methods)
- {
- $this->methods = $methods;
-
- return $this;
- }
-
- /**
- * Specifies the arguments for the constructor.
- *
- * @param array $args
- * @return PHPUnit_Framework_MockObject_MockBuilder
- */
- public function setConstructorArgs(array $args)
- {
- $this->constructorArgs = $args;
-
- return $this;
- }
-
- /**
- * Specifies the name for the mock class.
- *
- * @param string $name
- * @return PHPUnit_Framework_MockObject_MockBuilder
- */
- public function setMockClassName($name)
- {
- $this->mockClassName = $name;
-
- return $this;
- }
-
- /**
- * Disables the invocation of the original constructor.
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- */
- public function disableOriginalConstructor()
- {
- $this->originalConstructor = false;
-
- return $this;
- }
-
- /**
- * Enables the invocation of the original constructor.
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- * @since Method available since Release 1.2.0
- */
- public function enableOriginalConstructor()
- {
- $this->originalConstructor = true;
-
- return $this;
- }
-
- /**
- * Disables the invocation of the original clone constructor.
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- */
- public function disableOriginalClone()
- {
- $this->originalClone = false;
-
- return $this;
- }
-
- /**
- * Enables the invocation of the original clone constructor.
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- * @since Method available since Release 1.2.0
- */
- public function enableOriginalClone()
- {
- $this->originalClone = true;
-
- return $this;
- }
-
- /**
- * Disables the use of class autoloading while creating the mock object.
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- */
- public function disableAutoload()
- {
- $this->autoload = false;
-
- return $this;
- }
-
- /**
- * Enables the use of class autoloading while creating the mock object.
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- * @since Method available since Release 1.2.0
- */
- public function enableAutoload()
- {
- $this->autoload = true;
-
- return $this;
- }
-
- /**
- * Disables the cloning of arguments passed to mocked methods.
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- * @since Method available since Release 1.2.0
- */
- public function disableArgumentCloning()
- {
- $this->cloneArguments = false;
-
- return $this;
- }
-
- /**
- * Enables the cloning of arguments passed to mocked methods.
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- * @since Method available since Release 1.2.0
- */
- public function enableArgumentCloning()
- {
- $this->cloneArguments = true;
-
- return $this;
- }
-
- /**
- * Enables the invocation of the original methods.
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- * @since Method available since Release 2.0.0
- */
- public function enableProxyingToOriginalMethods()
- {
- $this->callOriginalMethods = true;
-
- return $this;
- }
-
- /**
- * Disables the invocation of the original methods.
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- * @since Method available since Release 2.0.0
- */
- public function disableProxyingToOriginalMethods()
- {
- $this->callOriginalMethods = false;
- $this->proxyTarget = null;
-
- return $this;
- }
-
- /**
- * Sets the proxy target.
- *
- * @param object $object
- * @return PHPUnit_Framework_MockObject_MockBuilder
- * @since Method available since Release 2.0.0
- */
- public function setProxyTarget($object)
- {
- $this->proxyTarget = $object;
-
- return $this;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockObject.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockObject.php
deleted file mode 100644
index 4f1dc0d8..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockObject.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Interface for all mock objects which are generated by
- * PHPUnit_Framework_MockObject_MockBuilder.
- *
- * @method PHPUnit_Framework_MockObject_Builder_InvocationMocker method($constraint)
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_MockObject /*extends PHPUnit_Framework_MockObject_Verifiable*/
-{
- /**
- * Registers a new expectation in the mock object and returns the match
- * object which can be infused with further details.
- *
- * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher
- * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
- */
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher);
-
- /**
- * @return PHPUnit_Framework_MockObject_InvocationMocker
- * @since Method available since Release 2.0.0
- */
- public function __phpunit_setOriginalObject($originalObject);
-
- /**
- * @return PHPUnit_Framework_MockObject_InvocationMocker
- */
- public function __phpunit_getInvocationMocker();
-
- /**
- * Verifies that the current expectation is valid. If everything is OK the
- * code should just return, if not it must throw an exception.
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function __phpunit_verify();
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub.php
deleted file mode 100644
index 1414bcc1..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * An object that stubs the process of a normal method for a mock object.
- *
- * The stub object will replace the code for the stubbed method and return a
- * specific value instead of the original value.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Stub extends PHPUnit_Framework_SelfDescribing
-{
- /**
- * Fakes the processing of the invocation $invocation by returning a
- * specific value.
- *
- * @param PHPUnit_Framework_MockObject_Invocation $invocation
- * The invocation which was mocked and matched by the current method
- * and argument matchers.
- * @return mixed
- */
- public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ConsecutiveCalls.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ConsecutiveCalls.php
deleted file mode 100644
index afc353d9..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ConsecutiveCalls.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Exporter\Exporter;
-
-/**
- * Stubs a method by returning a user-defined stack of values.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls implements PHPUnit_Framework_MockObject_Stub
-{
- protected $stack;
- protected $value;
-
- public function __construct($stack)
- {
- $this->stack = $stack;
- }
-
- public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- $this->value = array_shift($this->stack);
-
- if ($this->value instanceof PHPUnit_Framework_MockObject_Stub) {
- $this->value = $this->value->invoke($invocation);
- }
-
- return $this->value;
- }
-
- public function toString()
- {
- $exporter = new Exporter;
-
- return sprintf(
- 'return user-specified value %s',
- $exporter->export($this->value)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Exception.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Exception.php
deleted file mode 100644
index 7f9359c5..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Exception.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Exporter\Exporter;
-
-/**
- * Stubs a method by raising a user-defined exception.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Stub_Exception implements PHPUnit_Framework_MockObject_Stub
-{
- protected $exception;
-
- public function __construct(Exception $exception)
- {
- $this->exception = $exception;
- }
-
- public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- throw $this->exception;
- }
-
- public function toString()
- {
- $exporter = new Exporter;
-
- return sprintf(
- 'raise user-specified exception %s',
- $exporter->export($this->exception)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/MatcherCollection.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/MatcherCollection.php
deleted file mode 100644
index 07a28777..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/MatcherCollection.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Stubs a method by returning a user-defined value.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Stub_MatcherCollection
-{
- /**
- * Adds a new matcher to the collection which can be used as an expectation
- * or a stub.
- *
- * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher
- * Matcher for invocations to mock objects.
- */
- public function addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Return.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Return.php
deleted file mode 100644
index 630504fe..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Return.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Exporter\Exporter;
-
-/**
- * Stubs a method by returning a user-defined value.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Stub_Return implements PHPUnit_Framework_MockObject_Stub
-{
- protected $value;
-
- public function __construct($value)
- {
- $this->value = $value;
- }
-
- public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- return $this->value;
- }
-
- public function toString()
- {
- $exporter = new Exporter;
-
- return sprintf(
- 'return user-specified value %s',
- $exporter->export($this->value)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnArgument.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnArgument.php
deleted file mode 100644
index fb79f4e9..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnArgument.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Stubs a method by returning an argument that was passed to the mocked method.
- *
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Stub_ReturnArgument extends PHPUnit_Framework_MockObject_Stub_Return
-{
- protected $argumentIndex;
-
- public function __construct($argumentIndex)
- {
- $this->argumentIndex = $argumentIndex;
- }
-
- public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- if (isset($invocation->parameters[$this->argumentIndex])) {
- return $invocation->parameters[$this->argumentIndex];
- } else {
- return;
- }
- }
-
- public function toString()
- {
- return sprintf('return argument #%d', $this->argumentIndex);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnCallback.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnCallback.php
deleted file mode 100644
index 601b354b..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnCallback.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 1.0.0
- */
-class PHPUnit_Framework_MockObject_Stub_ReturnCallback implements PHPUnit_Framework_MockObject_Stub
-{
- protected $callback;
-
- public function __construct($callback)
- {
- $this->callback = $callback;
- }
-
- public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- return call_user_func_array($this->callback, $invocation->parameters);
- }
-
- public function toString()
- {
- if (is_array($this->callback)) {
- if (is_object($this->callback[0])) {
- $class = get_class($this->callback[0]);
- $type = '->';
- } else {
- $class = $this->callback[0];
- $type = '::';
- }
-
- return sprintf(
- 'return result of user defined callback %s%s%s() with the ' .
- 'passed arguments',
- $class,
- $type,
- $this->callback[1]
- );
- } else {
- return 'return result of user defined callback ' . $this->callback .
- ' with the passed arguments';
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnSelf.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnSelf.php
deleted file mode 100644
index 582ab16c..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnSelf.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Stubs a method by returning the current object.
- *
- * @since Class available since Release 1.1.0
- */
-class PHPUnit_Framework_MockObject_Stub_ReturnSelf implements PHPUnit_Framework_MockObject_Stub
-{
- public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- if (!$invocation instanceof PHPUnit_Framework_MockObject_Invocation_Object) {
- throw new PHPUnit_Framework_Exception(
- 'The current object can only be returned when mocking an ' .
- 'object, not a static class.'
- );
- }
-
- return $invocation->object;
- }
-
- public function toString()
- {
- return 'return the current object';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnValueMap.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnValueMap.php
deleted file mode 100644
index 25ba4d1a..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ReturnValueMap.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Stubs a method by returning a value from a map.
- *
- * @since Class available since Release 1.1.0
- */
-class PHPUnit_Framework_MockObject_Stub_ReturnValueMap implements PHPUnit_Framework_MockObject_Stub
-{
- protected $valueMap;
-
- public function __construct(array $valueMap)
- {
- $this->valueMap = $valueMap;
- }
-
- public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
- {
- $parameterCount = count($invocation->parameters);
-
- foreach ($this->valueMap as $map) {
- if (!is_array($map) || $parameterCount != count($map) - 1) {
- continue;
- }
-
- $return = array_pop($map);
- if ($invocation->parameters === $map) {
- return $return;
- }
- }
-
- return;
- }
-
- public function toString()
- {
- return 'return value from a map';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Verifiable.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Verifiable.php
deleted file mode 100644
index c19dfb33..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Verifiable.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Interface for classes which must verify a given expectation.
- *
- * @since Interface available since Release 1.0.0
- */
-interface PHPUnit_Framework_MockObject_Verifiable
-{
- /**
- * Verifies that the current expectation is valid. If everything is OK the
- * code should just return, if not it must throw an exception.
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function verify();
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php
deleted file mode 100644
index 51bd20cd..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php
+++ /dev/null
@@ -1,200 +0,0 @@
-<?php
-class Framework_MockObject_GeneratorTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @var PHPUnit_Framework_MockObject_Generator
- */
- protected $generator;
-
- protected function setUp()
- {
- $this->generator = new PHPUnit_Framework_MockObject_Generator;
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMock
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetMockFailsWhenInvalidFunctionNameIsPassedInAsAFunctionToMock()
- {
- $this->generator->getMock('StdClass', array(0));
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMock
- */
- public function testGetMockCanCreateNonExistingFunctions()
- {
- $mock = $this->generator->getMock('StdClass', array('testFunction'));
- $this->assertTrue(method_exists($mock, 'testFunction'));
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMock
- * @expectedException PHPUnit_Framework_MockObject_RuntimeException
- * @expectedExceptionMessage duplicates: "foo, foo"
- */
- public function testGetMockGeneratorFails()
- {
- $mock = $this->generator->getMock('StdClass', array('foo', 'foo'));
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass
- */
- public function testGetMockForAbstractClassDoesNotFailWhenFakingInterfaces()
- {
- $mock = $this->generator->getMockForAbstractClass('Countable');
- $this->assertTrue(method_exists($mock, 'count'));
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass
- */
- public function testGetMockForAbstractClassStubbingAbstractClass()
- {
- $mock = $this->generator->getMockForAbstractClass('AbstractMockTestClass');
- $this->assertTrue(method_exists($mock, 'doSomething'));
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass
- */
- public function testGetMockForAbstractClassWithNonExistentMethods()
- {
- $mock = $this->generator->getMockForAbstractClass(
- 'AbstractMockTestClass',
- array(),
- '',
- true,
- true,
- true,
- array('nonexistentMethod')
- );
-
- $this->assertTrue(method_exists($mock, 'nonexistentMethod'));
- $this->assertTrue(method_exists($mock, 'doSomething'));
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass
- */
- public function testGetMockForAbstractClassShouldCreateStubsOnlyForAbstractMethodWhenNoMethodsWereInformed()
- {
- $mock = $this->generator->getMockForAbstractClass('AbstractMockTestClass');
-
- $mock->expects($this->any())
- ->method('doSomething')
- ->willReturn('testing');
-
- $this->assertEquals('testing', $mock->doSomething());
- $this->assertEquals(1, $mock->returnAnything());
- }
-
- /**
- * @dataProvider getMockForAbstractClassExpectsInvalidArgumentExceptionDataprovider
- * @covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetMockForAbstractClassExpectingInvalidArgumentException($className, $mockClassName)
- {
- $mock = $this->generator->getMockForAbstractClass($className, array(), $mockClassName);
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass
- * @expectedException PHPUnit_Framework_MockObject_RuntimeException
- */
- public function testGetMockForAbstractClassAbstractClassDoesNotExist()
- {
- $mock = $this->generator->getMockForAbstractClass('Tux');
- }
-
- /**
- * Dataprovider for test "testGetMockForAbstractClassExpectingInvalidArgumentException"
- */
- public static function getMockForAbstractClassExpectsInvalidArgumentExceptionDataprovider()
- {
- return array(
- 'className not a string' => array(array(), ''),
- 'mockClassName not a string' => array('Countable', new StdClass),
- );
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMockForTrait
- * @requires PHP 5.4.0
- */
- public function testGetMockForTraitWithNonExistentMethodsAndNonAbstractMethods()
- {
- $mock = $this->generator->getMockForTrait(
- 'AbstractTrait',
- array(),
- '',
- true,
- true,
- true,
- array('nonexistentMethod')
- );
-
- $this->assertTrue(method_exists($mock, 'nonexistentMethod'));
- $this->assertTrue(method_exists($mock, 'doSomething'));
- $this->assertTrue($mock->mockableMethod());
- $this->assertTrue($mock->anotherMockableMethod());
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMockForTrait
- * @requires PHP 5.4.0
- */
- public function testGetMockForTraitStubbingAbstractMethod()
- {
- $mock = $this->generator->getMockForTrait('AbstractTrait');
- $this->assertTrue(method_exists($mock, 'doSomething'));
- }
-
- /**
- * @requires PHP 5.4.0
- */
- public function testGetMockForSingletonWithReflectionSuccess()
- {
- // Probably, this should be moved to tests/autoload.php
- require_once __DIR__ . '/_fixture/SingletonClass.php';
-
- $mock = $this->generator->getMock('SingletonClass', array('doSomething'), array(), '', false);
- $this->assertInstanceOf('SingletonClass', $mock);
- }
-
- /**
- * Same as "testGetMockForSingletonWithReflectionSuccess", but we expect
- * warning for PHP < 5.4.0 since PHPUnit will try to execute private __wakeup
- * on unserialize
- */
- public function testGetMockForSingletonWithUnserializeFail()
- {
- if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
- $this->markTestSkipped('Only for PHP < 5.4.0');
- }
-
- $this->setExpectedException('PHPUnit_Framework_MockObject_RuntimeException');
-
- // Probably, this should be moved to tests/autoload.php
- require_once __DIR__ . '/_fixture/SingletonClass.php';
-
- $mock = $this->generator->getMock('SingletonClass', array('doSomething'), array(), '', false);
- }
-
- /**
- * ReflectionClass::getMethods for SoapClient on PHP 5.3 produces PHP Fatal Error
- * @runInSeparateProcess
- */
- public function testGetMockForSoapClientReflectionMethodsDuplication()
- {
- if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
- $this->markTestSkipped('Only for PHP < 5.4.0');
- }
-
- $mock = $this->generator->getMock('SoapClient', array(), array(), '', false);
- $this->assertInstanceOf('SoapClient', $mock);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockBuilderTest.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockBuilderTest.php
deleted file mode 100644
index ef4a0cc3..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockBuilderTest.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since File available since Release 1.0.0
- */
-class Framework_MockBuilderTest extends PHPUnit_Framework_TestCase
-{
- public function testMockBuilderRequiresClassName()
- {
- $spec = $this->getMockBuilder('Mockable');
- $mock = $spec->getMock();
- $this->assertTrue($mock instanceof Mockable);
- }
-
- public function testByDefaultMocksAllMethods()
- {
- $spec = $this->getMockBuilder('Mockable');
- $mock = $spec->getMock();
- $this->assertNull($mock->mockableMethod());
- $this->assertNull($mock->anotherMockableMethod());
- }
-
- public function testMethodsToMockCanBeSpecified()
- {
- $spec = $this->getMockBuilder('Mockable');
- $spec->setMethods(array('mockableMethod'));
- $mock = $spec->getMock();
- $this->assertNull($mock->mockableMethod());
- $this->assertTrue($mock->anotherMockableMethod());
- }
-
- public function testByDefaultDoesNotPassArgumentsToTheConstructor()
- {
- $spec = $this->getMockBuilder('Mockable');
- $mock = $spec->getMock();
- $this->assertEquals(array(null, null), $mock->constructorArgs);
- }
-
- public function testMockClassNameCanBeSpecified()
- {
- $spec = $this->getMockBuilder('Mockable');
- $spec->setMockClassName('ACustomClassName');
- $mock = $spec->getMock();
- $this->assertTrue($mock instanceof ACustomClassName);
- }
-
- public function testConstructorArgumentsCanBeSpecified()
- {
- $spec = $this->getMockBuilder('Mockable');
- $spec->setConstructorArgs($expected = array(23, 42));
- $mock = $spec->getMock();
- $this->assertEquals($expected, $mock->constructorArgs);
- }
-
- public function testOriginalConstructorCanBeDisabled()
- {
- $spec = $this->getMockBuilder('Mockable');
- $spec->disableOriginalConstructor();
- $mock = $spec->getMock();
- $this->assertNull($mock->constructorArgs);
- }
-
- public function testByDefaultOriginalCloneIsPreserved()
- {
- $spec = $this->getMockBuilder('Mockable');
- $mock = $spec->getMock();
- $cloned = clone $mock;
- $this->assertTrue($cloned->cloned);
- }
-
- public function testOriginalCloneCanBeDisabled()
- {
- $spec = $this->getMockBuilder('Mockable');
- $spec->disableOriginalClone();
- $mock = $spec->getMock();
- $mock->cloned = false;
- $cloned = clone $mock;
- $this->assertFalse($cloned->cloned);
- }
-
- public function testCallingAutoloadCanBeDisabled()
- {
- // it is not clear to me how to test this nor the difference
- // between calling it or not
- $this->markTestIncomplete();
- }
-
- public function testProvidesAFluentInterface()
- {
- $spec = $this->getMockBuilder('Mockable')
- ->setMethods(array('mockableMethod'))
- ->setConstructorArgs(array())
- ->setMockClassName('DummyClassName')
- ->disableOriginalConstructor()
- ->disableOriginalClone()
- ->disableAutoload();
- $this->assertTrue($spec instanceof PHPUnit_Framework_MockObject_MockBuilder);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/232.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/232.phpt
deleted file mode 100644
index 3426e891..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/232.phpt
+++ /dev/null
@@ -1,129 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE)
---SKIPIF--
-<?php
-if (version_compare(PHP_VERSION, '5.4.0', '<')) print 'skip: PHP >= 5.4.0 required';
-?>
---FILE--
-<?php
-trait BaseTrait
-{
- protected function hello()
- {
- return 'hello';
- }
-}
-
-trait ChildTrait
-{
- use BaseTrait
- {
- hello as private hi;
- }
-
- protected function hello()
- {
- return 'hi';
- }
-
- protected function world()
- {
- return $this->hi();
- }
-}
-
-class Foo
-{
- use ChildTrait;
-
- public function speak()
- {
- return $this->world();
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function speak()
- {
- $arguments = array();
- $count = func_num_args();
-
- if ($count > 0) {
- $_arguments = func_get_args();
-
- for ($i = 0; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'speak', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
-
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/ObjectTest.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/ObjectTest.php
deleted file mode 100644
index a9574915..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/ObjectTest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-
-class Framework_MockObject_Invocation_ObjectTest extends PHPUnit_Framework_TestCase
-{
- public function testConstructorRequiresClassAndMethodAndParametersAndObject()
- {
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'FooClass',
- 'FooMethod',
- array('an_argument'),
- new StdClass
- );
- }
-
- public function testAllowToGetClassNameSetInConstructor()
- {
- $invocation = new PHPUnit_Framework_MockObject_Invocation_Object(
- 'FooClass',
- 'FooMethod',
- array('an_argument'),
- new StdClass
- );
-
- $this->assertSame('FooClass', $invocation->className);
- }
-
- public function testAllowToGetMethodNameSetInConstructor()
- {
- $invocation = new PHPUnit_Framework_MockObject_Invocation_Object(
- 'FooClass',
- 'FooMethod',
- array('an_argument'),
- new StdClass
- );
-
- $this->assertSame('FooMethod', $invocation->methodName);
- }
-
- public function testAllowToGetObjectSetInConstructor()
- {
- $expectedObject = new StdClass;
-
- $invocation = new PHPUnit_Framework_MockObject_Invocation_Object(
- 'FooClass',
- 'FooMethod',
- array('an_argument'),
- $expectedObject
- );
-
- $this->assertSame($expectedObject, $invocation->object);
- }
-
- public function testAllowToGetMethodParametersSetInConstructor()
- {
- $expectedParameters = array(
- 'foo', 5, array('a', 'b'), new StdClass, null, false
- );
-
- $invocation = new PHPUnit_Framework_MockObject_Invocation_Object(
- 'FooClass',
- 'FooMethod',
- $expectedParameters,
- new StdClass
- );
-
- $this->assertSame($expectedParameters, $invocation->parameters);
- }
-
- public function testConstructorAllowToSetFlagCloneObjectsInParameters()
- {
- $parameters = array(new StdClass);
- $cloneObjects = true;
-
- $invocation = new PHPUnit_Framework_MockObject_Invocation_Object(
- 'FooClass',
- 'FooMethod',
- $parameters,
- new StdClass,
- $cloneObjects
- );
-
- $this->assertEquals($parameters, $invocation->parameters);
- $this->assertNotSame($parameters, $invocation->parameters);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/StaticTest.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/StaticTest.php
deleted file mode 100644
index b965da17..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Invocation/StaticTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-
-class Framework_MockObject_Invocation_StaticTest extends PHPUnit_Framework_TestCase
-{
- public function testConstructorRequiresClassAndMethodAndParameters()
- {
- new PHPUnit_Framework_MockObject_Invocation_Static('FooClass', 'FooMethod', array('an_argument'));
- }
-
- public function testAllowToGetClassNameSetInConstructor()
- {
- $invocation = new PHPUnit_Framework_MockObject_Invocation_Static('FooClass', 'FooMethod', array('an_argument'));
-
- $this->assertSame('FooClass', $invocation->className);
- }
-
- public function testAllowToGetMethodNameSetInConstructor()
- {
- $invocation = new PHPUnit_Framework_MockObject_Invocation_Static('FooClass', 'FooMethod', array('an_argument'));
-
- $this->assertSame('FooMethod', $invocation->methodName);
- }
-
- public function testAllowToGetMethodParametersSetInConstructor()
- {
- $expectedParameters = array(
- 'foo', 5, array('a', 'b'), new StdClass, null, false
- );
-
- $invocation = new PHPUnit_Framework_MockObject_Invocation_Static(
- 'FooClass',
- 'FooMethod',
- $expectedParameters
- );
-
- $this->assertSame($expectedParameters, $invocation->parameters);
- }
-
- public function testConstructorAllowToSetFlagCloneObjectsInParameters()
- {
- $parameters = array(new StdClass);
- $cloneObjects = true;
-
- $invocation = new PHPUnit_Framework_MockObject_Invocation_Static(
- 'FooClass',
- 'FooMethod',
- $parameters,
- $cloneObjects
- );
-
- $this->assertEquals($parameters, $invocation->parameters);
- $this->assertNotSame($parameters, $invocation->parameters);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Matcher/ConsecutiveParametersTest.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Matcher/ConsecutiveParametersTest.php
deleted file mode 100644
index ae26b767..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/Matcher/ConsecutiveParametersTest.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-class Framework_MockObject_Matcher_ConsecutiveParametersTest extends PHPUnit_Framework_TestCase
-{
- public function testIntegration()
- {
- $mock = $this->getMock('stdClass', array('foo'));
- $mock
- ->expects($this->any())
- ->method('foo')
- ->withConsecutive(
- array('bar'),
- array(21, 42)
- );
- $mock->foo('bar');
- $mock->foo(21, 42);
- }
-
- public function testIntegrationWithLessAssertionsThenMethodCalls()
- {
- $mock = $this->getMock('stdClass', array('foo'));
- $mock
- ->expects($this->any())
- ->method('foo')
- ->withConsecutive(
- array('bar')
- );
- $mock->foo('bar');
- $mock->foo(21, 42);
- }
-
- public function testIntegrationExpectingException()
- {
- $mock = $this->getMock('stdClass', array('foo'));
- $mock
- ->expects($this->any())
- ->method('foo')
- ->withConsecutive(
- array('bar'),
- array(21, 42)
- );
- $mock->foo('bar');
- $this->setExpectedException('PHPUnit_Framework_ExpectationFailedException');
- $mock->foo('invalid');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/abstract_class.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/abstract_class.phpt
deleted file mode 100644
index 72450c56..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/abstract_class.phpt
+++ /dev/null
@@ -1,143 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-abstract class Foo
-{
- public function one()
- {
- }
-
- abstract public function two();
-
- abstract protected function three();
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function one()
- {
- $arguments = array();
- $count = func_num_args();
-
- if ($count > 0) {
- $_arguments = func_get_args();
-
- for ($i = 0; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'one', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function two()
- {
- $arguments = array();
- $count = func_num_args();
-
- if ($count > 0) {
- $_arguments = func_get_args();
-
- for ($i = 0; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'two', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- protected function three()
- {
- $arguments = array();
- $count = func_num_args();
-
- if ($count > 0) {
- $_arguments = func_get_args();
-
- for ($i = 0; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'three', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class.phpt
deleted file mode 100644
index 2e40328c..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class.phpt
+++ /dev/null
@@ -1,121 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-class Foo
-{
- public function bar(Foo $foo)
- {
- }
-
- public function baz(Foo $foo)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function bar(Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'bar', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function baz(Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'baz', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_call_parent_clone.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_call_parent_clone.phpt
deleted file mode 100644
index 0f91a986..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_call_parent_clone.phpt
+++ /dev/null
@@ -1,73 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE)
---FILE--
-<?php
-class Foo
-{
- public function __clone()
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- parent::__clone();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_call_parent_constructor.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_call_parent_constructor.phpt
deleted file mode 100644
index 6f037ee2..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_call_parent_constructor.phpt
+++ /dev/null
@@ -1,72 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE)
---FILE--
-<?php
-class Foo
-{
- public function __construct()
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_dont_call_parent_clone.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_dont_call_parent_clone.phpt
deleted file mode 100644
index dc829389..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_dont_call_parent_clone.phpt
+++ /dev/null
@@ -1,72 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', FALSE)
---FILE--
-<?php
-class Foo
-{
- public function __clone()
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- FALSE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_dont_call_parent_constructor.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_dont_call_parent_constructor.phpt
deleted file mode 100644
index 6f037ee2..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_dont_call_parent_constructor.phpt
+++ /dev/null
@@ -1,72 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE)
---FILE--
-<?php
-class Foo
-{
- public function __construct()
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_implementing_interface_call_parent_constructor.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_implementing_interface_call_parent_constructor.phpt
deleted file mode 100644
index cfc43d89..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_implementing_interface_call_parent_constructor.phpt
+++ /dev/null
@@ -1,77 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE)
---FILE--
-<?php
-interface IFoo
-{
- public function __construct($bar);
-}
-
-class Foo implements IFoo
-{
- public function __construct($bar)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_implementing_interface_dont_call_parent_constructor.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_implementing_interface_dont_call_parent_constructor.phpt
deleted file mode 100644
index cfc43d89..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_implementing_interface_dont_call_parent_constructor.phpt
+++ /dev/null
@@ -1,77 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE)
---FILE--
-<?php
-interface IFoo
-{
- public function __construct($bar);
-}
-
-class Foo implements IFoo
-{
- public function __construct($bar)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_partial.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_partial.phpt
deleted file mode 100644
index b8332aed..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_partial.phpt
+++ /dev/null
@@ -1,99 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array('bar'), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-class Foo
-{
- public function bar(Foo $foo)
- {
- }
-
- public function baz(Foo $foo)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array('bar'),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function bar(Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'bar', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_with_method_named_method.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_with_method_named_method.phpt
deleted file mode 100644
index 6e1ddf63..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_with_method_named_method.phpt
+++ /dev/null
@@ -1,88 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-class Foo
-{
- public function method()
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function method()
- {
- $arguments = array();
- $count = func_num_args();
-
- if ($count > 0) {
- $_arguments = func_get_args();
-
- for ($i = 0; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'method', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_with_method_with_variadic_arguments.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_with_method_with_variadic_arguments.phpt
deleted file mode 100644
index 8fb9a3c5..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/class_with_method_with_variadic_arguments.phpt
+++ /dev/null
@@ -1,99 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('ClassWithMethodWithVariadicArguments', array(), 'MockFoo', TRUE, TRUE)
---SKIPIF--
-<?php
-if (version_compare(PHP_VERSION, '5.6.0', '<')) print 'skip: PHP >= 5.6.0 required';
-?>
---FILE--
-<?php
-class ClassWithMethodWithVariadicArguments
-{
- public function methodWithVariadicArguments($a, ...$parameters)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'ClassWithMethodWithVariadicArguments',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends ClassWithMethodWithVariadicArguments implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function methodWithVariadicArguments($a, ...$parameters)
- {
- $arguments = array($a);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'ClassWithMethodWithVariadicArguments', 'methodWithVariadicArguments', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/interface.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/interface.phpt
deleted file mode 100644
index 2d38209e..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/interface.phpt
+++ /dev/null
@@ -1,93 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-interface Foo
-{
- public function bar(Foo $foo);
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo implements PHPUnit_Framework_MockObject_MockObject, Foo
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function bar(Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'bar', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/invocation_object_clone_object.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/invocation_object_clone_object.phpt
deleted file mode 100644
index 87a979e9..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/invocation_object_clone_object.phpt
+++ /dev/null
@@ -1,122 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE, TRUE)
---FILE--
-<?php
-class Foo
-{
- public function bar(Foo $foo)
- {
- }
-
- public function baz(Foo $foo)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function bar(Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'bar', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function baz(Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'baz', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class.phpt
deleted file mode 100644
index e30bddc0..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class.phpt
+++ /dev/null
@@ -1,123 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-namespace NS;
-
-class Foo
-{
- public function bar(Foo $foo)
- {
- }
-
- public function baz(Foo $foo)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new \PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NS\Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function bar(NS\Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'NS\Foo', 'bar', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function baz(NS\Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'NS\Foo', 'baz', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_call_parent_clone.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_call_parent_clone.phpt
deleted file mode 100644
index 3dee9c91..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_call_parent_clone.phpt
+++ /dev/null
@@ -1,75 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE)
---FILE--
-<?php
-namespace NS;
-
-class Foo
-{
- public function __clone()
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new \PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NS\Foo',
- array(),
- 'MockFoo',
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- parent::__clone();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_call_parent_constructor.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_call_parent_constructor.phpt
deleted file mode 100644
index 105a372b..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_call_parent_constructor.phpt
+++ /dev/null
@@ -1,74 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE)
---FILE--
-<?php
-namespace NS;
-
-class Foo
-{
- public function __construct()
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new \PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NS\Foo',
- array(),
- 'MockFoo',
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_dont_call_parent_clone.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_dont_call_parent_clone.phpt
deleted file mode 100644
index 1de9253f..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_dont_call_parent_clone.phpt
+++ /dev/null
@@ -1,74 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', FALSE)
---FILE--
-<?php
-namespace NS;
-
-class Foo
-{
- public function __clone()
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new \PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NS\Foo',
- array(),
- 'MockFoo',
- FALSE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_dont_call_parent_constructor.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_dont_call_parent_constructor.phpt
deleted file mode 100644
index 105a372b..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_dont_call_parent_constructor.phpt
+++ /dev/null
@@ -1,74 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE)
---FILE--
-<?php
-namespace NS;
-
-class Foo
-{
- public function __construct()
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new \PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NS\Foo',
- array(),
- 'MockFoo',
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_implementing_interface_call_parent_constructor.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_implementing_interface_call_parent_constructor.phpt
deleted file mode 100644
index 6b9f6bcb..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_implementing_interface_call_parent_constructor.phpt
+++ /dev/null
@@ -1,79 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE)
---FILE--
-<?php
-namespace NS;
-
-interface IFoo
-{
- public function __construct($bar);
-}
-
-class Foo implements IFoo
-{
- public function __construct($bar)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new \PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NS\Foo',
- array(),
- 'MockFoo',
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_implementing_interface_dont_call_parent_constructor.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_implementing_interface_dont_call_parent_constructor.phpt
deleted file mode 100644
index 6b9f6bcb..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_implementing_interface_dont_call_parent_constructor.phpt
+++ /dev/null
@@ -1,79 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE)
---FILE--
-<?php
-namespace NS;
-
-interface IFoo
-{
- public function __construct($bar);
-}
-
-class Foo implements IFoo
-{
- public function __construct($bar)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new \PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NS\Foo',
- array(),
- 'MockFoo',
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_partial.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_partial.phpt
deleted file mode 100644
index 86fee1cb..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_class_partial.phpt
+++ /dev/null
@@ -1,101 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array('bar'), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-namespace NS;
-
-class Foo
-{
- public function bar(Foo $foo)
- {
- }
-
- public function baz(Foo $foo)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new \PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NS\Foo',
- array('bar'),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function bar(NS\Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'NS\Foo', 'bar', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_interface.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_interface.phpt
deleted file mode 100644
index 80486463..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/namespaced_interface.phpt
+++ /dev/null
@@ -1,95 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-namespace NS;
-
-interface Foo
-{
- public function bar(Foo $foo);
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new \PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NS\Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo implements PHPUnit_Framework_MockObject_MockObject, NS\Foo
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function bar(NS\Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'NS\Foo', 'bar', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class.phpt
deleted file mode 100644
index 8c01de06..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class.phpt
+++ /dev/null
@@ -1,70 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('NonExistentClass', array(), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NonExistentClass',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class NonExistentClass
-{
-}
-
-class MockFoo extends NonExistentClass implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class_with_namespace.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class_with_namespace.phpt
deleted file mode 100644
index 78689775..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class_with_namespace.phpt
+++ /dev/null
@@ -1,78 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'NS\Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-namespace NS {
-
-class Foo
-{
-}
-
-}
-
-namespace {
-
-class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
-
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class_with_namespace_starting_with_separator.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class_with_namespace_starting_with_separator.phpt
deleted file mode 100644
index b59d1ddf..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/nonexistent_class_with_namespace_starting_with_separator.phpt
+++ /dev/null
@@ -1,78 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE)
---FILE--
-<?php
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- '\NS\Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-namespace NS {
-
-class Foo
-{
-}
-
-}
-
-namespace {
-
-class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
-
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/proxy.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/proxy.phpt
deleted file mode 100644
index f31bf3ff..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/proxy.phpt
+++ /dev/null
@@ -1,117 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', NULL, 'ProxyFoo', TRUE, TRUE, TRUE, TRUE)
---FILE--
-<?php
-class Foo
-{
- public function bar(Foo $foo)
- {
- }
-
- public function baz(Foo $foo)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo', array(), 'ProxyFoo', TRUE, TRUE, TRUE, TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class ProxyFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function bar(Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'bar', $arguments, $this, TRUE
- )
- );
-
- return call_user_func_array(array($this->__phpunit_originalObject, "bar"), $arguments);
- }
-
- public function baz(Foo $foo)
- {
- $arguments = array($foo);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'baz', $arguments, $this, TRUE
- )
- );
-
- return call_user_func_array(array($this->__phpunit_originalObject, "baz"), $arguments);
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/scalar_type_declarations.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/scalar_type_declarations.phpt
deleted file mode 100644
index 3ad84db3..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/scalar_type_declarations.phpt
+++ /dev/null
@@ -1,99 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generate('Foo', array(), 'MockFoo', TRUE, TRUE)
---SKIPIF--
-<?php
-if (!method_exists('ReflectionParameter', 'hasType')) print 'skip: PHP >= 7.0.0 required';
-?>
---FILE--
-<?php
-class Foo
-{
- public function bar(string $baz)
- {
- }
-}
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-$mock = $generator->generate(
- 'Foo',
- array(),
- 'MockFoo',
- TRUE,
- TRUE
-);
-
-print $mock['code'];
-?>
---EXPECTF--
-class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
-{
- private $__phpunit_invocationMocker;
- private $__phpunit_originalObject;
-
- public function __clone()
- {
- $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker();
- }
-
- public function bar(string $baz)
- {
- $arguments = array($baz);
- $count = func_num_args();
-
- if ($count > 1) {
- $_arguments = func_get_args();
-
- for ($i = 1; $i < $count; $i++) {
- $arguments[] = $_arguments[$i];
- }
- }
-
- $result = $this->__phpunit_getInvocationMocker()->invoke(
- new PHPUnit_Framework_MockObject_Invocation_Object(
- 'Foo', 'bar', $arguments, $this, TRUE
- )
- );
-
- return $result;
- }
-
- public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
- {
- return $this->__phpunit_getInvocationMocker()->expects($matcher);
- }
-
- public function method()
- {
- $any = new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- $expects = $this->expects($any);
- return call_user_func_array(array($expects, 'method'), func_get_args());
- }
-
- public function __phpunit_setOriginalObject($originalObject)
- {
- $this->__phpunit_originalObject = $originalObject;
- }
-
- public function __phpunit_getInvocationMocker()
- {
- if ($this->__phpunit_invocationMocker === NULL) {
- $this->__phpunit_invocationMocker = new PHPUnit_Framework_MockObject_InvocationMocker;
- }
-
- return $this->__phpunit_invocationMocker;
- }
-
- public function __phpunit_hasMatchers()
- {
- return $this->__phpunit_getInvocationMocker()->hasMatchers();
- }
-
- public function __phpunit_verify()
- {
- $this->__phpunit_getInvocationMocker()->verify();
- $this->__phpunit_invocationMocker = NULL;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class.phpt
deleted file mode 100644
index 06b255f1..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class.phpt
+++ /dev/null
@@ -1,37 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
---SKIPIF--
-<?php
-if (!extension_loaded('soap')) echo 'skip: SOAP extension is required';
-?>
---FILE--
-<?php
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-print $generator->generateClassFromWsdl(
- dirname(dirname(__FILE__)) . '/_fixture/GoogleSearch.wsdl',
- 'GoogleSearch'
-);
-?>
---EXPECTF--
-class GoogleSearch extends \SoapClient
-{
- public function __construct($wsdl, array $options)
- {
- parent::__construct('%s/GoogleSearch.wsdl', $options);
- }
-
- public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
- {
- }
-
- public function doGetCachedPage($key, $url)
- {
- }
-
- public function doSpellingSuggestion($key, $phrase)
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class_namespace.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class_namespace.phpt
deleted file mode 100644
index 9460e6b4..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class_namespace.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch')
---SKIPIF--
-<?php
-if (!extension_loaded('soap')) echo 'skip: SOAP extension is required';
-?>
---FILE--
-<?php
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-print $generator->generateClassFromWsdl(
- dirname(dirname(__FILE__)) . '/_fixture/GoogleSearch.wsdl',
- 'My\\Space\\GoogleSearch'
-);
-?>
---EXPECTF--
-namespace My\Space;
-
-class GoogleSearch extends \SoapClient
-{
- public function __construct($wsdl, array $options)
- {
- parent::__construct('%s/GoogleSearch.wsdl', $options);
- }
-
- public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
- {
- }
-
- public function doGetCachedPage($key, $url)
- {
- }
-
- public function doSpellingSuggestion($key, $phrase)
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class_partial.phpt b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class_partial.phpt
deleted file mode 100644
index fc814bd1..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObject/wsdl_class_partial.phpt
+++ /dev/null
@@ -1,30 +0,0 @@
---TEST--
-PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl('GoogleSearch.wsdl', 'GoogleSearch', array('doGoogleSearch'))
---SKIPIF--
-<?php
-if (!extension_loaded('soap')) echo 'skip: SOAP extension is required';
-?>
---FILE--
-<?php
-require __DIR__ . '/../../vendor/autoload.php';
-
-$generator = new PHPUnit_Framework_MockObject_Generator;
-
-print $generator->generateClassFromWsdl(
- dirname(dirname(__FILE__)) . '/_fixture/GoogleSearch.wsdl',
- 'GoogleSearch',
- array('doGoogleSearch')
-);
-?>
---EXPECTF--
-class GoogleSearch extends \SoapClient
-{
- public function __construct($wsdl, array $options)
- {
- parent::__construct('%s/GoogleSearch.wsdl', $options);
- }
-
- public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php
deleted file mode 100644
index 802c133e..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php
+++ /dev/null
@@ -1,842 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- *
- *
- * @since Class available since Release 3.0.0
- */
-class Framework_MockObjectTest extends PHPUnit_Framework_TestCase
-{
- public function testMockedMethodIsNeverCalled()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->never())
- ->method('doSomething');
- }
-
- public function testMockedMethodIsNeverCalledWithParameter()
- {
- $mock = $this->getMock('SomeClass');
- $mock->expects($this->never())
- ->method('doSomething')
- ->with('someArg');
- }
-
- public function testMockedMethodIsNotCalledWhenExpectsAnyWithParameter()
- {
- $mock = $this->getMock('SomeClass');
- $mock->expects($this->any())
- ->method('doSomethingElse')
- ->with('someArg');
- }
-
- public function testMockedMethodIsNotCalledWhenMethodSpecifiedDirectlyWithParameter()
- {
- $mock = $this->getMock('SomeClass');
- $mock->method('doSomethingElse')
- ->with('someArg');
- }
-
- public function testMockedMethodIsCalledAtLeastOnce()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->atLeastOnce())
- ->method('doSomething');
-
- $mock->doSomething();
- }
-
- public function testMockedMethodIsCalledAtLeastOnce2()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->atLeastOnce())
- ->method('doSomething');
-
- $mock->doSomething();
- $mock->doSomething();
- }
-
- public function testMockedMethodIsCalledAtLeastTwice()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->atLeast(2))
- ->method('doSomething');
-
- $mock->doSomething();
- $mock->doSomething();
- }
-
- public function testMockedMethodIsCalledAtLeastTwice2()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->atLeast(2))
- ->method('doSomething');
-
- $mock->doSomething();
- $mock->doSomething();
- $mock->doSomething();
- }
-
- public function testMockedMethodIsCalledAtMostTwice()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->atMost(2))
- ->method('doSomething');
-
- $mock->doSomething();
- $mock->doSomething();
- }
-
- public function testMockedMethodIsCalledAtMosttTwice2()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->atMost(2))
- ->method('doSomething');
-
- $mock->doSomething();
- }
-
- public function testMockedMethodIsCalledOnce()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->once())
- ->method('doSomething');
-
- $mock->doSomething();
- }
-
- public function testMockedMethodIsCalledOnceWithParameter()
- {
- $mock = $this->getMock('SomeClass');
- $mock->expects($this->once())
- ->method('doSomethingElse')
- ->with($this->equalTo('something'));
-
- $mock->doSomethingElse('something');
- }
-
- public function testMockedMethodIsCalledExactly()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->exactly(2))
- ->method('doSomething');
-
- $mock->doSomething();
- $mock->doSomething();
- }
-
- public function testStubbedException()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->will($this->throwException(new Exception));
-
- try {
- $mock->doSomething();
- } catch (Exception $e) {
- return;
- }
-
- $this->fail();
- }
-
- public function testStubbedWillThrowException()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->willThrowException(new Exception);
-
- try {
- $mock->doSomething();
- } catch (Exception $e) {
- return;
- }
-
- $this->fail();
- }
-
- public function testStubbedReturnValue()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->will($this->returnValue('something'));
-
- $this->assertEquals('something', $mock->doSomething());
-
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->willReturn('something');
-
- $this->assertEquals('something', $mock->doSomething());
- }
-
- public function testStubbedReturnValueMap()
- {
- $map = array(
- array('a', 'b', 'c', 'd'),
- array('e', 'f', 'g', 'h')
- );
-
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->will($this->returnValueMap($map));
-
- $this->assertEquals('d', $mock->doSomething('a', 'b', 'c'));
- $this->assertEquals('h', $mock->doSomething('e', 'f', 'g'));
- $this->assertEquals(null, $mock->doSomething('foo', 'bar'));
-
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->willReturnMap($map);
-
- $this->assertEquals('d', $mock->doSomething('a', 'b', 'c'));
- $this->assertEquals('h', $mock->doSomething('e', 'f', 'g'));
- $this->assertEquals(null, $mock->doSomething('foo', 'bar'));
- }
-
- public function testStubbedReturnArgument()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->will($this->returnArgument(1));
-
- $this->assertEquals('b', $mock->doSomething('a', 'b'));
-
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->willReturnArgument(1);
-
- $this->assertEquals('b', $mock->doSomething('a', 'b'));
- }
-
- public function testFunctionCallback()
- {
- $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', false);
- $mock->expects($this->once())
- ->method('doSomething')
- ->will($this->returnCallback('functionCallback'));
-
- $this->assertEquals('pass', $mock->doSomething('foo', 'bar'));
-
- $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', false);
- $mock->expects($this->once())
- ->method('doSomething')
- ->willReturnCallback('functionCallback');
-
- $this->assertEquals('pass', $mock->doSomething('foo', 'bar'));
- }
-
- public function testStubbedReturnSelf()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->will($this->returnSelf());
-
- $this->assertEquals($mock, $mock->doSomething());
-
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->willReturnSelf();
-
- $this->assertEquals($mock, $mock->doSomething());
- }
-
- public function testStubbedReturnOnConsecutiveCalls()
- {
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->will($this->onConsecutiveCalls('a', 'b', 'c'));
-
- $this->assertEquals('a', $mock->doSomething());
- $this->assertEquals('b', $mock->doSomething());
- $this->assertEquals('c', $mock->doSomething());
-
- $mock = $this->getMock('AnInterface');
- $mock->expects($this->any())
- ->method('doSomething')
- ->willReturnOnConsecutiveCalls('a', 'b', 'c');
-
- $this->assertEquals('a', $mock->doSomething());
- $this->assertEquals('b', $mock->doSomething());
- $this->assertEquals('c', $mock->doSomething());
- }
-
- public function testStaticMethodCallback()
- {
- $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', false);
- $mock->expects($this->once())
- ->method('doSomething')
- ->will($this->returnCallback(array('MethodCallback', 'staticCallback')));
-
- $this->assertEquals('pass', $mock->doSomething('foo', 'bar'));
- }
-
- public function testPublicMethodCallback()
- {
- $mock = $this->getMock('SomeClass', array('doSomething'), array(), '', false);
- $mock->expects($this->once())
- ->method('doSomething')
- ->will($this->returnCallback(array(new MethodCallback, 'nonStaticCallback')));
-
- $this->assertEquals('pass', $mock->doSomething('foo', 'bar'));
- }
-
- public function testMockClassOnlyGeneratedOnce()
- {
- $mock1 = $this->getMock('AnInterface');
- $mock2 = $this->getMock('AnInterface');
-
- $this->assertEquals(get_class($mock1), get_class($mock2));
- }
-
- public function testMockClassDifferentForPartialMocks()
- {
- $mock1 = $this->getMock('PartialMockTestClass');
- $mock2 = $this->getMock('PartialMockTestClass', array('doSomething'));
- $mock3 = $this->getMock('PartialMockTestClass', array('doSomething'));
- $mock4 = $this->getMock('PartialMockTestClass', array('doAnotherThing'));
- $mock5 = $this->getMock('PartialMockTestClass', array('doAnotherThing'));
-
- $this->assertNotEquals(get_class($mock1), get_class($mock2));
- $this->assertNotEquals(get_class($mock1), get_class($mock3));
- $this->assertNotEquals(get_class($mock1), get_class($mock4));
- $this->assertNotEquals(get_class($mock1), get_class($mock5));
- $this->assertEquals(get_class($mock2), get_class($mock3));
- $this->assertNotEquals(get_class($mock2), get_class($mock4));
- $this->assertNotEquals(get_class($mock2), get_class($mock5));
- $this->assertEquals(get_class($mock4), get_class($mock5));
- }
-
- public function testMockClassStoreOverrulable()
- {
- $mock1 = $this->getMock('PartialMockTestClass');
- $mock2 = $this->getMock('PartialMockTestClass', array(), array(), 'MyMockClassNameForPartialMockTestClass1');
- $mock3 = $this->getMock('PartialMockTestClass');
- $mock4 = $this->getMock('PartialMockTestClass', array('doSomething'), array(), 'AnotherMockClassNameForPartialMockTestClass');
- $mock5 = $this->getMock('PartialMockTestClass', array(), array(), 'MyMockClassNameForPartialMockTestClass2');
-
- $this->assertNotEquals(get_class($mock1), get_class($mock2));
- $this->assertEquals(get_class($mock1), get_class($mock3));
- $this->assertNotEquals(get_class($mock1), get_class($mock4));
- $this->assertNotEquals(get_class($mock2), get_class($mock3));
- $this->assertNotEquals(get_class($mock2), get_class($mock4));
- $this->assertNotEquals(get_class($mock2), get_class($mock5));
- $this->assertNotEquals(get_class($mock3), get_class($mock4));
- $this->assertNotEquals(get_class($mock3), get_class($mock5));
- $this->assertNotEquals(get_class($mock4), get_class($mock5));
- }
-
- /**
- * @covers PHPUnit_Framework_MockObject_Generator::getMock
- */
- public function testGetMockWithFixedClassNameCanProduceTheSameMockTwice()
- {
- $mock = $this->getMockBuilder('StdClass')->setMockClassName('FixedName')->getMock();
- $mock = $this->getMockBuilder('StdClass')->setMockClassName('FixedName')->getMock();
- $this->assertInstanceOf('StdClass', $mock);
- }
-
- public function testOriginalConstructorSettingConsidered()
- {
- $mock1 = $this->getMock('PartialMockTestClass');
- $mock2 = $this->getMock('PartialMockTestClass', array(), array(), '', false);
-
- $this->assertTrue($mock1->constructorCalled);
- $this->assertFalse($mock2->constructorCalled);
- }
-
- public function testOriginalCloneSettingConsidered()
- {
- $mock1 = $this->getMock('PartialMockTestClass');
- $mock2 = $this->getMock('PartialMockTestClass', array(), array(), '', true, false);
-
- $this->assertNotEquals(get_class($mock1), get_class($mock2));
- }
-
- public function testGetMockForAbstractClass()
- {
- $mock = $this->getMock('AbstractMockTestClass');
- $mock->expects($this->never())
- ->method('doSomething');
- }
-
- public function traversableProvider()
- {
- return array(
- array('Traversable'),
- array('\Traversable'),
- array('TraversableMockTestInterface'),
- array(array('Traversable')),
- array(array('Iterator','Traversable')),
- array(array('\Iterator','\Traversable'))
- );
- }
-
- /**
- * @dataProvider traversableProvider
- */
- public function testGetMockForTraversable($type)
- {
- $mock = $this->getMock($type);
- $this->assertInstanceOf('Traversable', $mock);
- }
-
- public function testMultipleInterfacesCanBeMockedInSingleObject()
- {
- $mock = $this->getMock(array('AnInterface', 'AnotherInterface'));
- $this->assertInstanceOf('AnInterface', $mock);
- $this->assertInstanceOf('AnotherInterface', $mock);
- }
-
- /**
- * @requires PHP 5.4.0
- */
- public function testGetMockForTrait()
- {
- $mock = $this->getMockForTrait('AbstractTrait');
- $mock->expects($this->never())->method('doSomething');
-
- $parent = get_parent_class($mock);
- $traits = class_uses($parent, false);
-
- $this->assertContains('AbstractTrait', $traits);
- }
-
- public function testClonedMockObjectShouldStillEqualTheOriginal()
- {
- $a = $this->getMock('stdClass');
- $b = clone $a;
- $this->assertEquals($a, $b);
- }
-
- public function testMockObjectsConstructedIndepentantlyShouldBeEqual()
- {
- $a = $this->getMock('stdClass');
- $b = $this->getMock('stdClass');
- $this->assertEquals($a, $b);
- }
-
- public function testMockObjectsConstructedIndepentantlyShouldNotBeTheSame()
- {
- $a = $this->getMock('stdClass');
- $b = $this->getMock('stdClass');
- $this->assertNotSame($a, $b);
- }
-
- public function testClonedMockObjectCanBeUsedInPlaceOfOriginalOne()
- {
- $x = $this->getMock('stdClass');
- $y = clone $x;
-
- $mock = $this->getMock('stdClass', array('foo'));
- $mock->expects($this->once())->method('foo')->with($this->equalTo($x));
- $mock->foo($y);
- }
-
- public function testClonedMockObjectIsNotIdenticalToOriginalOne()
- {
- $x = $this->getMock('stdClass');
- $y = clone $x;
-
- $mock = $this->getMock('stdClass', array('foo'));
- $mock->expects($this->once())->method('foo')->with($this->logicalNot($this->identicalTo($x)));
- $mock->foo($y);
- }
-
- public function testObjectMethodCallWithArgumentCloningEnabled()
- {
- $expectedObject = new StdClass;
-
- $mock = $this->getMockBuilder('SomeClass')
- ->setMethods(array('doSomethingElse'))
- ->enableArgumentCloning()
- ->getMock();
-
- $actualArguments = array();
-
- $mock->expects($this->any())
- ->method('doSomethingElse')
- ->will($this->returnCallback(function () use (&$actualArguments) {
- $actualArguments = func_get_args();
- }));
-
- $mock->doSomethingElse($expectedObject);
-
- $this->assertEquals(1, count($actualArguments));
- $this->assertEquals($expectedObject, $actualArguments[0]);
- $this->assertNotSame($expectedObject, $actualArguments[0]);
- }
-
- public function testObjectMethodCallWithArgumentCloningDisabled()
- {
- $expectedObject = new StdClass;
-
- $mock = $this->getMockBuilder('SomeClass')
- ->setMethods(array('doSomethingElse'))
- ->disableArgumentCloning()
- ->getMock();
-
- $actualArguments = array();
-
- $mock->expects($this->any())
- ->method('doSomethingElse')
- ->will($this->returnCallback(function () use (&$actualArguments) {
- $actualArguments = func_get_args();
- }));
-
- $mock->doSomethingElse($expectedObject);
-
- $this->assertEquals(1, count($actualArguments));
- $this->assertSame($expectedObject, $actualArguments[0]);
- }
-
- public function testArgumentCloningOptionGeneratesUniqueMock()
- {
- $mockWithCloning = $this->getMockBuilder('SomeClass')
- ->setMethods(array('doSomethingElse'))
- ->enableArgumentCloning()
- ->getMock();
-
- $mockWithoutCloning = $this->getMockBuilder('SomeClass')
- ->setMethods(array('doSomethingElse'))
- ->disableArgumentCloning()
- ->getMock();
-
- $this->assertNotEquals($mockWithCloning, $mockWithoutCloning);
- }
-
- public function testVerificationOfMethodNameFailsWithoutParameters()
- {
- $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', true, true, true);
- $mock->expects($this->once())
- ->method('right');
-
- $mock->wrong();
- try {
- $mock->__phpunit_verify();
- $this->fail('Expected exception');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertSame(
- "Expectation failed for method name is equal to <string:right> when invoked 1 time(s).\n"
- . "Method was expected to be called 1 times, actually called 0 times.\n",
- $e->getMessage()
- );
- }
-
- $this->resetMockObjects();
- }
-
- public function testVerificationOfMethodNameFailsWithParameters()
- {
- $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', true, true, true);
- $mock->expects($this->once())
- ->method('right');
-
- $mock->wrong();
- try {
- $mock->__phpunit_verify();
- $this->fail('Expected exception');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertSame(
- "Expectation failed for method name is equal to <string:right> when invoked 1 time(s).\n"
- . "Method was expected to be called 1 times, actually called 0 times.\n",
- $e->getMessage()
- );
- }
-
- $this->resetMockObjects();
- }
-
- public function testVerificationOfMethodNameFailsWithWrongParameters()
- {
- $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', true, true, true);
- $mock->expects($this->once())
- ->method('right')
- ->with(array('first', 'second'));
-
- try {
- $mock->right(array('second'));
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertSame(
- "Expectation failed for method name is equal to <string:right> when invoked 1 time(s)\n"
- . "Parameter 0 for invocation SomeClass::right(Array (...)) does not match expected value.\n"
- . "Failed asserting that two arrays are equal.",
- $e->getMessage()
- );
- }
-
- try {
- $mock->__phpunit_verify();
- $this->fail('Expected exception');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertSame(
- "Expectation failed for method name is equal to <string:right> when invoked 1 time(s).\n"
- . "Parameter 0 for invocation SomeClass::right(Array (...)) does not match expected value.\n"
- . "Failed asserting that two arrays are equal.\n"
- . "--- Expected\n"
- . "+++ Actual\n"
- . "@@ @@\n"
- . " Array (\n"
- . "- 0 => 'first'\n"
- . "- 1 => 'second'\n"
- . "+ 0 => 'second'\n"
- . " )\n",
- $e->getMessage()
- );
- }
-
- $this->resetMockObjects();
- }
-
- public function testVerificationOfNeverFailsWithEmptyParameters()
- {
- $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', true, true, true);
- $mock->expects($this->never())
- ->method('right')
- ->with();
-
- try {
- $mock->right();
- $this->fail('Expected exception');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertSame(
- 'SomeClass::right() was not expected to be called.',
- $e->getMessage()
- );
- }
-
- $this->resetMockObjects();
- }
-
- public function testVerificationOfNeverFailsWithAnyParameters()
- {
- $mock = $this->getMock('SomeClass', array('right', 'wrong'), array(), '', true, true, true);
- $mock->expects($this->never())
- ->method('right')
- ->withAnyParameters();
-
- try {
- $mock->right();
- $this->fail('Expected exception');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertSame(
- 'SomeClass::right() was not expected to be called.',
- $e->getMessage()
- );
- }
-
- $this->resetMockObjects();
- }
-
- /**
- * @ticket 199
- */
- public function testWithAnythingInsteadOfWithAnyParameters()
- {
- $mock = $this->getMock('SomeClass', array('right'), array(), '', true, true, true);
- $mock->expects($this->once())
- ->method('right')
- ->with($this->anything());
-
- try {
- $mock->right();
- $this->fail('Expected exception');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertSame(
- "Expectation failed for method name is equal to <string:right> when invoked 1 time(s)\n" .
- "Parameter count for invocation SomeClass::right() is too low.\n" .
- "To allow 0 or more parameters with any value, omit ->with() or use ->withAnyParameters() instead.",
- $e->getMessage()
- );
- }
-
- $this->resetMockObjects();
- }
-
- /**
- * See https://github.com/sebastianbergmann/phpunit-mock-objects/issues/81
- */
- public function testMockArgumentsPassedByReference()
- {
- $foo = $this->getMockBuilder('MethodCallbackByReference')
- ->setMethods(array('bar'))
- ->disableOriginalConstructor()
- ->disableArgumentCloning()
- ->getMock();
-
- $foo->expects($this->any())
- ->method('bar')
- ->will($this->returnCallback(array($foo, 'callback')));
-
- $a = $b = $c = 0;
-
- $foo->bar($a, $b, $c);
-
- $this->assertEquals(1, $b);
- }
-
- /**
- * See https://github.com/sebastianbergmann/phpunit-mock-objects/issues/81
- */
- public function testMockArgumentsPassedByReference2()
- {
- $foo = $this->getMockBuilder('MethodCallbackByReference')
- ->disableOriginalConstructor()
- ->disableArgumentCloning()
- ->getMock();
-
- $foo->expects($this->any())
- ->method('bar')
- ->will($this->returnCallback(
- function (&$a, &$b, $c) {
- $b = 1;
- }
- ));
-
- $a = $b = $c = 0;
-
- $foo->bar($a, $b, $c);
-
- $this->assertEquals(1, $b);
- }
-
- /**
- * https://github.com/sebastianbergmann/phpunit-mock-objects/issues/116
- */
- public function testMockArgumentsPassedByReference3()
- {
- $foo = $this->getMockBuilder('MethodCallbackByReference')
- ->setMethods(array('bar'))
- ->disableOriginalConstructor()
- ->disableArgumentCloning()
- ->getMock();
-
- $a = new stdClass();
- $b = $c = 0;
-
- $foo->expects($this->any())
- ->method('bar')
- ->with($a, $b, $c)
- ->will($this->returnCallback(array($foo, 'callback')));
-
- $foo->bar($a, $b, $c);
- }
-
- /**
- * https://github.com/sebastianbergmann/phpunit/issues/796
- */
- public function testMockArgumentsPassedByReference4()
- {
- $foo = $this->getMockBuilder('MethodCallbackByReference')
- ->setMethods(array('bar'))
- ->disableOriginalConstructor()
- ->disableArgumentCloning()
- ->getMock();
-
- $a = new stdClass();
- $b = $c = 0;
-
- $foo->expects($this->any())
- ->method('bar')
- ->with($this->isInstanceOf("stdClass"), $b, $c)
- ->will($this->returnCallback(array($foo, 'callback')));
-
- $foo->bar($a, $b, $c);
- }
-
- /**
- * @requires extension soap
- */
- public function testCreateMockFromWsdl()
- {
- $mock = $this->getMockFromWsdl(__DIR__ . '/_fixture/GoogleSearch.wsdl', 'WsdlMock');
- $this->assertStringStartsWith(
- 'Mock_WsdlMock_',
- get_class($mock)
- );
- }
-
- /**
- * @requires extension soap
- */
- public function testCreateNamespacedMockFromWsdl()
- {
- $mock = $this->getMockFromWsdl(__DIR__ . '/_fixture/GoogleSearch.wsdl', 'My\\Space\\WsdlMock');
- $this->assertStringStartsWith(
- 'Mock_WsdlMock_',
- get_class($mock)
- );
- }
-
- /**
- * @requires extension soap
- */
- public function testCreateTwoMocksOfOneWsdlFile()
- {
- $mock = $this->getMockFromWsdl(__DIR__ . '/_fixture/GoogleSearch.wsdl');
- $mock = $this->getMockFromWsdl(__DIR__ . '/_fixture/GoogleSearch.wsdl');
- }
-
- /**
- * @see https://github.com/sebastianbergmann/phpunit-mock-objects/issues/156
- * @ticket 156
- */
- public function testInterfaceWithStaticMethodCanBeStubbed()
- {
- $this->assertInstanceOf(
- 'InterfaceWithStaticMethod',
- $this->getMock('InterfaceWithStaticMethod')
- );
- }
-
- /**
- * @expectedException PHPUnit_Framework_MockObject_BadMethodCallException
- */
- public function testInvokingStubbedStaticMethodRaisesException()
- {
- $mock = $this->getMock('ClassWithStaticMethod');
- $mock->staticMethod();
- }
-
- /**
- * @see https://github.com/sebastianbergmann/phpunit-mock-objects/issues/171
- * @ticket 171
- */
- public function testStubForClassThatImplementsSerializableCanBeCreatedWithoutInvokingTheConstructor()
- {
- $this->assertInstanceOf(
- 'ClassThatImplementsSerializable',
- $this->getMockBuilder('ClassThatImplementsSerializable')
- ->disableOriginalConstructor()
- ->getMock()
- );
- }
-
- private function resetMockObjects()
- {
- $refl = new ReflectionObject($this);
- $refl = $refl->getParentClass();
- $prop = $refl->getProperty('mockObjects');
- $prop->setAccessible(true);
- $prop->setValue($this, array());
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/ProxyObjectTest.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/ProxyObjectTest.php
deleted file mode 100644
index 2dde7e47..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/ProxyObjectTest.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/*
- * This file is part of the PHPUnit_MockObject package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class Framework_ProxyObjectTest extends PHPUnit_Framework_TestCase
-{
- public function testMockedMethodIsProxiedToOriginalMethod()
- {
- $proxy = $this->getMockBuilder('Bar')
- ->enableProxyingToOriginalMethods()
- ->getMock();
-
- $proxy->expects($this->once())
- ->method('doSomethingElse');
-
- $foo = new Foo;
- $this->assertEquals('result', $foo->doSomething($proxy));
- }
-
- public function testMockedMethodWithReferenceIsProxiedToOriginalMethod()
- {
- $proxy = $this->getMockBuilder('MethodCallbackByReference')
- ->enableProxyingToOriginalMethods()
- ->getMock();
- $a = $b = $c = 0;
-
- $proxy->callback($a, $b, $c);
-
- $this->assertEquals(1, $b);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AbstractMockTestClass.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AbstractMockTestClass.php
deleted file mode 100644
index 1f2640cb..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AbstractMockTestClass.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-abstract class AbstractMockTestClass implements MockTestInterface
-{
- abstract public function doSomething();
-
- public function returnAnything()
- {
- return 1;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AbstractTrait.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AbstractTrait.php
deleted file mode 100644
index 52aac64a..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AbstractTrait.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-trait AbstractTrait
-{
- abstract public function doSomething();
-
- public function mockableMethod()
- {
- return true;
- }
-
- public function anotherMockableMethod()
- {
- return true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnInterface.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnInterface.php
deleted file mode 100644
index 5b7d4cc4..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnInterface.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-interface AnInterface
-{
- public function doSomething();
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnotherInterface.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnotherInterface.php
deleted file mode 100644
index 62bff0a2..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnotherInterface.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-interface AnotherInterface
-{
- public function doSomethingElse();
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Bar.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Bar.php
deleted file mode 100644
index 4a4d165c..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Bar.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class Bar
-{
- public function doSomethingElse()
- {
- return 'result';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php
deleted file mode 100644
index 87576cad..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-class ClassThatImplementsSerializable implements Serializable
-{
- public function serialize()
- {
- return get_object_vars($this);
- }
-
- public function unserialize($serialized)
- {
- foreach (unserialize($serialized) as $key => $value) {
- $this->{$key} = $value;
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassWithStaticMethod.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassWithStaticMethod.php
deleted file mode 100644
index 0c13c120..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassWithStaticMethod.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class ClassWithStaticMethod
-{
- public static function staticMethod()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Foo.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Foo.php
deleted file mode 100644
index 16a9ed72..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Foo.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class Foo
-{
- public function doSomething(Bar $bar)
- {
- return $bar->doSomethingElse();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/FunctionCallback.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/FunctionCallback.php
deleted file mode 100644
index c12ac6cb..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/FunctionCallback.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-function functionCallback()
-{
- $args = func_get_args();
-
- if ($args == array('foo', 'bar')) {
- return 'pass';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/GoogleSearch.wsdl b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/GoogleSearch.wsdl
deleted file mode 100644
index e448501d..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/GoogleSearch.wsdl
+++ /dev/null
@@ -1,198 +0,0 @@
-<?xml version="1.0"?>
-
-<!-- WSDL description of the Google Web APIs.
- The Google Web APIs are in beta release. All interfaces are subject to
- change as we refine and extend our APIs. Please see the terms of use
- for more information. -->
-
-<!-- Revision 2002-08-16 -->
-
-<definitions name="GoogleSearch"
- targetNamespace="urn:GoogleSearch"
- xmlns:typens="urn:GoogleSearch"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns="http://schemas.xmlsoap.org/wsdl/">
-
- <!-- Types for search - result elements, directory categories -->
-
- <types>
- <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
- targetNamespace="urn:GoogleSearch">
-
- <xsd:complexType name="GoogleSearchResult">
- <xsd:all>
- <xsd:element name="documentFiltering" type="xsd:boolean"/>
- <xsd:element name="searchComments" type="xsd:string"/>
- <xsd:element name="estimatedTotalResultsCount" type="xsd:int"/>
- <xsd:element name="estimateIsExact" type="xsd:boolean"/>
- <xsd:element name="resultElements" type="typens:ResultElementArray"/>
- <xsd:element name="searchQuery" type="xsd:string"/>
- <xsd:element name="startIndex" type="xsd:int"/>
- <xsd:element name="endIndex" type="xsd:int"/>
- <xsd:element name="searchTips" type="xsd:string"/>
- <xsd:element name="directoryCategories" type="typens:DirectoryCategoryArray"/>
- <xsd:element name="searchTime" type="xsd:double"/>
- </xsd:all>
- </xsd:complexType>
-
- <xsd:complexType name="ResultElement">
- <xsd:all>
- <xsd:element name="summary" type="xsd:string"/>
- <xsd:element name="URL" type="xsd:string"/>
- <xsd:element name="snippet" type="xsd:string"/>
- <xsd:element name="title" type="xsd:string"/>
- <xsd:element name="cachedSize" type="xsd:string"/>
- <xsd:element name="relatedInformationPresent" type="xsd:boolean"/>
- <xsd:element name="hostName" type="xsd:string"/>
- <xsd:element name="directoryCategory" type="typens:DirectoryCategory"/>
- <xsd:element name="directoryTitle" type="xsd:string"/>
- </xsd:all>
- </xsd:complexType>
-
- <xsd:complexType name="ResultElementArray">
- <xsd:complexContent>
- <xsd:restriction base="soapenc:Array">
- <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ResultElement[]"/>
- </xsd:restriction>
- </xsd:complexContent>
- </xsd:complexType>
-
- <xsd:complexType name="DirectoryCategoryArray">
- <xsd:complexContent>
- <xsd:restriction base="soapenc:Array">
- <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:DirectoryCategory[]"/>
- </xsd:restriction>
- </xsd:complexContent>
- </xsd:complexType>
-
- <xsd:complexType name="DirectoryCategory">
- <xsd:all>
- <xsd:element name="fullViewableName" type="xsd:string"/>
- <xsd:element name="specialEncoding" type="xsd:string"/>
- </xsd:all>
- </xsd:complexType>
-
- </xsd:schema>
- </types>
-
- <!-- Messages for Google Web APIs - cached page, search, spelling. -->
-
- <message name="doGetCachedPage">
- <part name="key" type="xsd:string"/>
- <part name="url" type="xsd:string"/>
- </message>
-
- <message name="doGetCachedPageResponse">
- <part name="return" type="xsd:base64Binary"/>
- </message>
-
- <message name="doSpellingSuggestion">
- <part name="key" type="xsd:string"/>
- <part name="phrase" type="xsd:string"/>
- </message>
-
- <message name="doSpellingSuggestionResponse">
- <part name="return" type="xsd:string"/>
- </message>
-
- <!-- note, ie and oe are ignored by server; all traffic is UTF-8. -->
-
- <message name="doGoogleSearch">
- <part name="key" type="xsd:string"/>
- <part name="q" type="xsd:string"/>
- <part name="start" type="xsd:int"/>
- <part name="maxResults" type="xsd:int"/>
- <part name="filter" type="xsd:boolean"/>
- <part name="restrict" type="xsd:string"/>
- <part name="safeSearch" type="xsd:boolean"/>
- <part name="lr" type="xsd:string"/>
- <part name="ie" type="xsd:string"/>
- <part name="oe" type="xsd:string"/>
- </message>
-
- <message name="doGoogleSearchResponse">
- <part name="return" type="typens:GoogleSearchResult"/>
- </message>
-
- <!-- Port for Google Web APIs, "GoogleSearch" -->
-
- <portType name="GoogleSearchPort">
-
- <operation name="doGetCachedPage">
- <input message="typens:doGetCachedPage"/>
- <output message="typens:doGetCachedPageResponse"/>
- </operation>
-
- <operation name="doSpellingSuggestion">
- <input message="typens:doSpellingSuggestion"/>
- <output message="typens:doSpellingSuggestionResponse"/>
- </operation>
-
- <operation name="doGoogleSearch">
- <input message="typens:doGoogleSearch"/>
- <output message="typens:doGoogleSearchResponse"/>
- </operation>
-
- </portType>
-
-
- <!-- Binding for Google Web APIs - RPC, SOAP over HTTP -->
-
- <binding name="GoogleSearchBinding" type="typens:GoogleSearchPort">
- <soap:binding style="rpc"
- transport="http://schemas.xmlsoap.org/soap/http"/>
-
- <operation name="doGetCachedPage">
- <soap:operation soapAction="urn:GoogleSearchAction"/>
- <input>
- <soap:body use="encoded"
- namespace="urn:GoogleSearch"
- encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
- </input>
- <output>
- <soap:body use="encoded"
- namespace="urn:GoogleSearch"
- encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
- </output>
- </operation>
-
- <operation name="doSpellingSuggestion">
- <soap:operation soapAction="urn:GoogleSearchAction"/>
- <input>
- <soap:body use="encoded"
- namespace="urn:GoogleSearch"
- encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
- </input>
- <output>
- <soap:body use="encoded"
- namespace="urn:GoogleSearch"
- encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
- </output>
- </operation>
-
- <operation name="doGoogleSearch">
- <soap:operation soapAction="urn:GoogleSearchAction"/>
- <input>
- <soap:body use="encoded"
- namespace="urn:GoogleSearch"
- encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
- </input>
- <output>
- <soap:body use="encoded"
- namespace="urn:GoogleSearch"
- encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
- </output>
- </operation>
- </binding>
-
- <!-- Endpoint for Google Web APIs -->
- <service name="GoogleSearchService">
- <port name="GoogleSearchPort" binding="typens:GoogleSearchBinding">
- <soap:address location="http://api.google.com/search/beta2"/>
- </port>
- </service>
-
-</definitions>
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/InterfaceWithStaticMethod.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/InterfaceWithStaticMethod.php
deleted file mode 100644
index dee5f4fe..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/InterfaceWithStaticMethod.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-interface InterfaceWithStaticMethod
-{
- public static function staticMethod();
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MethodCallback.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MethodCallback.php
deleted file mode 100644
index f8db62ed..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MethodCallback.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-class MethodCallback
-{
- public static function staticCallback()
- {
- $args = func_get_args();
-
- if ($args == array('foo', 'bar')) {
- return 'pass';
- }
- }
-
- public function nonStaticCallback()
- {
- $args = func_get_args();
-
- if ($args == array('foo', 'bar')) {
- return 'pass';
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MethodCallbackByReference.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MethodCallbackByReference.php
deleted file mode 100644
index ef26f3e7..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MethodCallbackByReference.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-class MethodCallbackByReference
-{
- public function bar(&$a, &$b, $c)
- {
- Legacy::bar($a, $b, $c);
- }
-
- public function callback(&$a, &$b, $c)
- {
- $b = 1;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MockTestInterface.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MockTestInterface.php
deleted file mode 100644
index a5f8f5f9..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MockTestInterface.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-interface MockTestInterface
-{
- public function returnAnything();
- public function returnAnythingElse();
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Mockable.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Mockable.php
deleted file mode 100644
index 3d826ddd..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/Mockable.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-class Mockable
-{
- public $constructorArgs;
- public $cloned;
-
- public function __construct($arg1 = null, $arg2 = null)
- {
- $this->constructorArgs = array($arg1, $arg2);
- }
-
- public function mockableMethod()
- {
- // something different from NULL
- return true;
- }
-
- public function anotherMockableMethod()
- {
- // something different from NULL
- return true;
- }
-
- public function __clone()
- {
- $this->cloned = true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/PartialMockTestClass.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/PartialMockTestClass.php
deleted file mode 100644
index 06099933..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/PartialMockTestClass.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-class PartialMockTestClass
-{
- public $constructorCalled = false;
-
- public function __construct()
- {
- $this->constructorCalled = true;
- }
-
- public function doSomething()
- {
- }
-
- public function doAnotherThing()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/SingletonClass.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/SingletonClass.php
deleted file mode 100644
index e0002668..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/SingletonClass.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-class SingletonClass
-{
- public static function getInstance()
- {
- }
-
- public function doSomething()
- {
- }
-
- protected function __construct()
- {
- }
-
- final private function __sleep()
- {
- }
-
- final private function __wakeup()
- {
- }
-
- final private function __clone()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/SomeClass.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/SomeClass.php
deleted file mode 100644
index ba83b288..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/SomeClass.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-class SomeClass
-{
- public function doSomething($a, $b)
- {
- return null;
- }
-
- public function doSomethingElse($c)
- {
- return null;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/StaticMockTestClass.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/StaticMockTestClass.php
deleted file mode 100644
index ac467c9a..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/StaticMockTestClass.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class StaticMockTestClass
-{
- public static function doSomething()
- {
- }
-
- public static function doSomethingElse()
- {
- return static::doSomething();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/TraversableMockTestInterface.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/TraversableMockTestInterface.php
deleted file mode 100644
index 3467cce8..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/_fixture/TraversableMockTestInterface.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-interface TraversableMockTestInterface extends Traversable
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/bootstrap.php b/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/bootstrap.php
deleted file mode 100644
index 6575b39a..00000000
--- a/www/wiki/vendor/phpunit/phpunit-mock-objects/tests/bootstrap.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-require __DIR__ . '/_fixture/FunctionCallback.php';
-require __DIR__ . '/../vendor/autoload.php';
diff --git a/www/wiki/vendor/phpunit/phpunit/.gitattributes b/www/wiki/vendor/phpunit/phpunit/.gitattributes
deleted file mode 100644
index 278ace47..00000000
--- a/www/wiki/vendor/phpunit/phpunit/.gitattributes
+++ /dev/null
@@ -1,4 +0,0 @@
-/build export-ignore
-
-*.php diff=php
-
diff --git a/www/wiki/vendor/phpunit/phpunit/.gitignore b/www/wiki/vendor/phpunit/phpunit/.gitignore
deleted file mode 100644
index 8caea62d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/.gitignore
+++ /dev/null
@@ -1,16 +0,0 @@
-/.ant_targets
-/.idea
-/build/documentation
-/build/logfiles
-/build/phar
-/build/phpdox
-/build/*.phar
-/build/*.phar.asc
-/tests/TextUI/*.diff
-/tests/TextUI/*.exp
-/tests/TextUI/*.log
-/tests/TextUI/*.out
-/tests/TextUI/*.php
-/cache.properties
-/composer.lock
-/vendor
diff --git a/www/wiki/vendor/phpunit/phpunit/.php_cs b/www/wiki/vendor/phpunit/phpunit/.php_cs
deleted file mode 100644
index e0d5fd6e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/.php_cs
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-$finder = Symfony\CS\Finder\DefaultFinder::create()
- ->files()
- ->in('build')
- ->in('src')
- ->in('tests')
- ->name('*.php')
- ->name('*.phpt');
-
-return Symfony\CS\Config\Config::create()
- ->level(\Symfony\CS\FixerInterface::NONE_LEVEL)
- ->fixers(
- array(
- 'align_double_arrow',
- 'align_equals',
- 'braces',
- 'concat_with_spaces',
- 'duplicate_semicolon',
- 'elseif',
- 'empty_return',
- 'encoding',
- 'eof_ending',
- 'extra_empty_lines',
- 'function_call_space',
- 'function_declaration',
- 'indentation',
- 'join_function',
- 'line_after_namespace',
- 'linefeed',
- 'list_commas',
- 'long_array_syntax',
- 'lowercase_constants',
- 'lowercase_keywords',
- 'method_argument_space',
- 'multiple_use',
- 'namespace_no_leading_whitespace',
- 'no_blank_lines_after_class_opening',
- 'no_empty_lines_after_phpdocs',
- 'parenthesis',
- 'php_closing_tag',
- 'phpdoc_indent',
- 'phpdoc_no_access',
- 'phpdoc_no_empty_return',
- 'phpdoc_no_package',
- 'phpdoc_params',
- 'phpdoc_scalar',
- 'phpdoc_separation',
- 'phpdoc_to_comment',
- 'phpdoc_trim',
- 'phpdoc_types',
- 'phpdoc_var_without_name',
- 'remove_lines_between_uses',
- 'return',
- 'self_accessor',
- 'short_tag',
- 'single_line_after_imports',
- 'single_quote',
- 'spaces_before_semicolon',
- 'spaces_cast',
- 'ternary_spaces',
- 'trailing_spaces',
- 'trim_array_spaces',
- 'unused_use',
- 'visibility',
- 'whitespacy_lines'
- )
- )
- ->finder($finder);
-
diff --git a/www/wiki/vendor/phpunit/phpunit/.travis.yml b/www/wiki/vendor/phpunit/phpunit/.travis.yml
deleted file mode 100644
index a0d6bebd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/.travis.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-language: php
-
-php:
- - 5.3
- - 5.4
- - 5.5
- - 5.6
-
-env:
- matrix:
- - DEPENDENCIES="high"
- - DEPENDENCIES="low"
-
-sudo: false
-
-before_install:
- - composer self-update
- - composer clear-cache
-
-install:
- - if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable; fi
- - if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable --prefer-lowest; fi
-
-script:
- - ./phpunit
- - ./phpunit --configuration ./build/travis-ci-fail.xml > /dev/null; if [ $? -eq 0 ]; then echo "SHOULD FAIL"; false; else echo "fail checked"; fi;
- - xmllint --noout --schema phpunit.xsd phpunit.xml
- - xmllint --noout --schema phpunit.xsd tests/_files/configuration.xml
- - xmllint --noout --schema phpunit.xsd tests/_files/configuration_empty.xml
- - xmllint --noout --schema phpunit.xsd tests/_files/configuration_xinclude.xml -xinclude
-
-notifications:
- email: false
-
diff --git a/www/wiki/vendor/phpunit/phpunit/CODE_OF_CONDUCT.md b/www/wiki/vendor/phpunit/phpunit/CODE_OF_CONDUCT.md
deleted file mode 100644
index d39d536c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Contributor Code of Conduct
-
-As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
-
-We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
-
-Examples of unacceptable behavior by participants include:
-
-* The use of sexualized language or imagery
-* Personal attacks
-* Trolling or insulting/derogatory comments
-* Public or private harassment
-* Publishing other's private information, such as physical or electronic
- addresses, without explicit permission
-* Other unethical or unprofessional conduct
-
-Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
-
-By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
-
-This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
-
-Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project maintainer at sebastian@phpunit.de. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.
-
-This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/][version]
-
-[homepage]: http://contributor-covenant.org
-[version]: http://contributor-covenant.org/version/1/3/0/
diff --git a/www/wiki/vendor/phpunit/phpunit/CONTRIBUTING.md b/www/wiki/vendor/phpunit/phpunit/CONTRIBUTING.md
deleted file mode 100644
index fea001ae..00000000
--- a/www/wiki/vendor/phpunit/phpunit/CONTRIBUTING.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# Contributing to PHPUnit
-
-## Contributor Code of Conduct
-
-Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
-
-## Workflow
-
-* Fork the project.
-* Make your bug fix or feature addition.
-* Add tests for it. This is important so we don't break it in a future version unintentionally.
-* Send a pull request. Bonus points for topic branches.
-
-Please make sure that you have [set up your user name and email address](http://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) for use with Git. Strings such as `silly nick name <root@localhost>` look really stupid in the commit history of a project.
-
-Pull requests for bug fixes must be based on the current stable branch whereas pull requests for new features must be based on the `master` branch.
-
-We are trying to keep backwards compatibility breaks in PHPUnit to an absolute minimum. Please take this into account when proposing changes.
-
-Due to time constraints, we are not always able to respond as quickly as we would like. Please do not take delays personal and feel free to remind us if you feel that we forgot to respond.
-
-## Coding Guidelines
-
-This project comes with a configuration file for [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) (`.php_cs`) that you can use to (re)format your sourcecode for compliance with this project's coding guidelines:
-
-```bash
-$ wget http://get.sensiolabs.org/php-cs-fixer.phar
-
-$ php php-cs-fixer.phar fix
-```
-
-## Using PHPUnit from a Git checkout
-
-The following commands can be used to perform the initial checkout of PHPUnit:
-
-```bash
-$ git clone git://github.com/sebastianbergmann/phpunit.git
-
-$ cd phpunit
-```
-
-Retrieve PHPUnit's dependencies using [Composer](https://getcomposer.org/):
-
-```bash
-$ composer install
-```
-
-The `phpunit` script can be used to invoke the PHPUnit test runner:
-
-```bash
-$ ./phpunit --version
-```
-
-## Reporting issues
-
-Please use the most specific issue tracker to search for existing tickets and to open new tickets:
-
-* [General problems](https://github.com/sebastianbergmann/phpunit/issues)
-* [Code Coverage](https://github.com/sebastianbergmann/php-code-coverage/issues)
-* [Stub and Mock Objects](https://github.com/sebastianbergmann/phpunit-mock-objects/issues)
-* [DbUnit](https://github.com/sebastianbergmann/dbunit/issues)
-* [PHPUnit_Selenium](https://github.com/sebastianbergmann/phpunit-selenium/issues)
-* [Documentation](https://github.com/sebastianbergmann/phpunit-documentation/issues)
-* [Website](https://github.com/sebastianbergmann/phpunit-website/issues)
-
diff --git a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.0.md b/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.0.md
deleted file mode 100644
index dc71b017..00000000
--- a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.0.md
+++ /dev/null
@@ -1,176 +0,0 @@
-# Changes in PHPUnit 4.0
-
-All notable changes of the PHPUnit 4.0 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
-
-## [4.0.20] - 2014-05-02
-
-### Fixed
-
-* Fixed [#1242](https://github.com/sebastianbergmann/phpunit/issues/1242): `--self-update` uses OpenSSL API that is deprecated in PHP 5.6
-
-## [4.0.19] - 2014-04-30
-
-### Fixed
-
-* Fixed [#1193](https://github.com/sebastianbergmann/phpunit/issues/1193): Process isolation does not work correctly when PHPUnit is used from PHAR
-* Fixed a BC break related to comparing `DOMNode` objects that was introduced in PHPUnit 4.0.18
-
-## [4.0.18] - 2014-04-29
-
-### Fixed
-
-* Fixed [#1218](https://github.com/sebastianbergmann/phpunit/issues/1218): `--self-update` destroys symlink
-
-## [4.0.17] - 2014-04-21
-
-### Changed
-
-* [Display a message that the PEAR installation method is no longer supported when PHPUnit was installed using the PEAR Installer](https://github.com/sebastianbergmann/phpunit/commit/70b02c6be0176ab8ad3d3c9ec97480556c5dd63b)
-
-## [4.0.16] - 2014-04-20
-
-### Fixed
-
-* [Fixed handling of the `--report-useless-tests`, `--strict-coverage`, `--disallow-test-output`, and `--enforce-time-limit` options](https://github.com/sebastianbergmann/phpunit/commit/38baa9670711adedfe44ef24a33b568f61f3f045)
-
-## [4.0.15] - 2014-04-16
-
-New release of PHPUnit as PHAR and PEAR package with updated dependencies
-
-## [4.0.14] - 2014-03-28
-
-New release of PHPUnit as PHAR and PEAR package with updated dependencies
-
-## [4.0.13] - 2014-03-26
-
-New release of PHPUnit as PHAR and PEAR package with updated dependencies
-
-## [4.0.12] - 2014-03-20
-
-### Changed
-
-* [Use blacklist from PHP_CodeCoverage](https://github.com/sebastianbergmann/phpunit/commit/16152ba4b8d0104ce34f60cb71b2b982ba84c898)
-
-## [4.0.11] - 2014-03-18
-
-### Fixed
-
-* [Fixed unintended autoloader invokation triggered by the `@beforeClass` and `@afterClass` annotations](https://github.com/sebastianbergmann/phpunit/commit/f12e10fddc3ccbddb652a04d9036aeb5a6d54bff)
-
-## [4.0.10] - 2014-03-18
-
-New release of PHPUnit as PHAR and PEAR package with updated dependencies (most notably a [fix](https://github.com/sebastianbergmann/phpunit-mock-objects/commit/c5e6274b8f2bf983cf883bb375cf44f99aff200e) in the mock object generator that caused a [performance regression](https://github.com/sebastianbergmann/phpunit/issues/1187))
-
-## [4.0.9] - 2014-03-17
-
-### Changed
-
-* Optimized the search for the `@before`, `@after`, `@beforeClass` and `@afterClass` annotations
-* Optimized the usage of `SebastianBergmann\Environment\Runtime::canCollectCodeCoverage()`
-
-### Fixed
-
-* The "No code coverage will be generated." message was displayed even when code coverage reporting was not requested
-
-## [4.0.8] - 2014-03-17
-
-### Fixed
-
-* Fixed [#1186](https://github.com/sebastianbergmann/phpunit/issues/1186): `@before` and `@after` methods are not called in `@dataProvider` methods
-
-## [4.0.7] - 2014-03-12
-
-### Fixed
-
-* Removed dependency on `phpunit/dbunit` in `composer.json` that was unintentionally added in PHPUnit 4.0.6
-
-## [4.0.6] - 2014-03-11
-
-New release of PHPUnit as PHAR and PEAR package with updated dependencies
-
-## [4.0.5] - 2014-03-10
-
-New release of PHPUnit as PHAR and PEAR package with updated dependencies
-
-## [4.0.4] - 2014-03-08
-
-### Fixed
-
-* Fixed stacktrace filtering when PHPUnit is used from a PHAR
-
-## [4.0.3] - 2014-03-07
-
-New release of PHPUnit as PHAR and PEAR package with updated dependencies
-
-## [4.0.2] - 2014-03-07
-
-### Fixed
-
-* Fixed an issue related to displaying PHPUnit's version number
-
-## [4.0.1] - 2014-03-07
-
-### Fixed
-
-* Fixed collection of code coverage data for tests that use a data provider
-
-## [4.0.0] - 2014-03-07
-
-### Added
-
-* Implemented #382: Added the `$options` parameter to `PHPUnit_Framework_TestCase::getMockFromWsdl()` for configuring the `SoapClient`
-* Implemented #628: Added `PHPUnit_Framework_Assert::countOf(), a shortcut to get a `PHPUnit_Framework_Constraint_Count` instance
-* Implemented #711: `coverage-text` now has an XML `showOnlySummary` option
-* Implemented #719: The `--stderr` switch now respects `--colors` and `--debug`
-* Implemented #746: Allow identity checking for non-object types in all asserts that depend on `TraversableContains`
-* Implemented #758: Show a proper stack trace when @expectedException fails due to a unexpected exception being thrown
-* Implemented #773: Recursive and repeated arrays are more gracefully when comparison differences are exported
-* Implemented #813: Added `@before`, `@after`, `@beforeClass` and `@afterClass` annotations
-* Implemented #834: Added the `@requires OS` annotation
-* Implemented #835: Printers that extend `PHPUnit_TextUI_ResultPrinter` should have similar construction
-* Implemented #838: Added a base test listener
-* Implemented #859: Added PHP label validation to attribute assertions
-* Implemented #869: Added support for the adjacent sibling selector (+) to `PHPUnit_Util_XML::findNodes()`
-* Implemented #871: Add Comparator for DateTime objects
-* Implemented #877: Added new HTML5 tags to `PHPUnit_Util_XML::findNodes()`
-* Added `--coverage-crap4j` switch to generate code coverage report in Crap4J XML format
-* `assertCount()`, `assertNotCount()`, `assertSameSize()`, and `assertNotSameSize()` now support all objects that implement the `Traversable` interface
-
-### Changed
-
-* A test will now fail in strict mode when it uses the `@covers` annotation and code that is not expected to be covered is executed
-* All relative paths in a configuration file are now resolved relative to that configuration file
-
-### Fixed
-
-* Fixed #240: XML strings are escaped by removing invalid characters
-* Fixed #261: `setUp()` and `setUpBeforeClass()` are run before filters are applied
-* Fixed #541: Excluded groups are counted towards total number of tests being executed
-* Fixed #789: PHP INI settings would not be passed to child processes
-* Fixed #806: Array references are now properly displayed in error output
-* Fixed #808: Resources are now reported as `resource(13) of type (stream)` instead of `NULL`
-* Fixed #873: PHPUnit suppresses exceptions thrown outside of test case function
-* Fixed: `phpt` test cases now use the correct php binary when executed through wrapper scripts
-
-[4.0.20]: https://github.com/sebastianbergmann/phpunit/compare/4.0.19...4.0.20
-[4.0.19]: https://github.com/sebastianbergmann/phpunit/compare/4.0.18...4.0.19
-[4.0.18]: https://github.com/sebastianbergmann/phpunit/compare/4.0.17...4.0.18
-[4.0.17]: https://github.com/sebastianbergmann/phpunit/compare/4.0.16...4.0.17
-[4.0.16]: https://github.com/sebastianbergmann/phpunit/compare/4.0.15...4.0.16
-[4.0.15]: https://github.com/sebastianbergmann/phpunit/compare/4.0.14...4.0.15
-[4.0.14]: https://github.com/sebastianbergmann/phpunit/compare/4.0.13...4.0.14
-[4.0.13]: https://github.com/sebastianbergmann/phpunit/compare/4.0.12...4.0.13
-[4.0.12]: https://github.com/sebastianbergmann/phpunit/compare/4.0.11...4.0.12
-[4.0.11]: https://github.com/sebastianbergmann/phpunit/compare/4.0.10...4.0.11
-[4.0.10]: https://github.com/sebastianbergmann/phpunit/compare/4.0.9...4.0.10
-[4.0.9]: https://github.com/sebastianbergmann/phpunit/compare/4.0.8...4.0.9
-[4.0.8]: https://github.com/sebastianbergmann/phpunit/compare/4.0.7...4.0.8
-[4.0.7]: https://github.com/sebastianbergmann/phpunit/compare/4.0.6...4.0.7
-[4.0.6]: https://github.com/sebastianbergmann/phpunit/compare/4.0.5...4.0.6
-[4.0.5]: https://github.com/sebastianbergmann/phpunit/compare/4.0.4...4.0.5
-[4.0.4]: https://github.com/sebastianbergmann/phpunit/compare/4.0.3...4.0.4
-[4.0.3]: https://github.com/sebastianbergmann/phpunit/compare/4.0.2...4.0.3
-[4.0.2]: https://github.com/sebastianbergmann/phpunit/compare/4.0.1...4.0.2
-[4.0.1]: https://github.com/sebastianbergmann/phpunit/compare/4.0.0...4.0.1
-[4.0.0]: https://github.com/sebastianbergmann/phpunit/compare/3.7...4.0.0
-
diff --git a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.1.md b/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.1.md
deleted file mode 100644
index d7f10a74..00000000
--- a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.1.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# Changes in PHPUnit 4.1
-
-All notable changes of the PHPUnit 4.1 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
-
-## [4.1.6] - 2014-08-17
-
-### Fixed
-
-* Fixed [#1380](https://github.com/sebastianbergmann/phpunit/issues/1380): `assertMatch()` returns `Unexpected end tag : hr`
-* Fixed [#1390](https://github.com/sebastianbergmann/phpunit/issues/1390): Licensing issue with third-party components bundled in PHAR distribution
-
-## [4.1.5] - 2014-08-07
-
-### Changed
-
-* Implemented [#1330](https://github.com/sebastianbergmann/phpunit/issues/1330): Allow non-ambiguous shortened long options
-
-### Fixed
-
-* Fixed [#529](https://github.com/sebastianbergmann/phpunit/issues/529): Tests missed in execution when another test extends from it
-* Fixed [#1149](https://github.com/sebastianbergmann/phpunit/issues/1149): Test swallows output buffer when run in a separate process
-* Fixed [#1336](https://github.com/sebastianbergmann/phpunit/issues/1336): Problem in process isolation with global variables that contain an object which contains a string which contains multiple backslashes
-* Fixed [#1337](https://github.com/sebastianbergmann/phpunit/issues/1337): Data Provider with `\` at the end of the name breaks with process isolation
-* Fixed [#1345](https://github.com/sebastianbergmann/phpunit/issues/1345): Process isolation blocks infinitely upon fatal error in child process
-* Fixed [#1354](https://github.com/sebastianbergmann/phpunit/issues/1354): PHPUnit test suite fails on Windows
-* Fixed [#1369](https://github.com/sebastianbergmann/phpunit/issues/1369): Performance of `TestSuite::addTestFile()` and missing documentation
-* Fixed [#1374](https://github.com/sebastianbergmann/phpunit/issues/1374): `tearDown()` is called despite unmet requirements
-
-## [4.1.4] - 2014-07-18
-
-### Fixed
-
-* Fixed [#1265](https://github.com/sebastianbergmann/phpunit/issues/1265): `PHPUnit_Runner_StandardTestSuiteLoader` could not be configured as loader
-* Fixed [#1311](https://github.com/sebastianbergmann/phpunit/issues/1311): Incomplete XML Schema for PHPUnit XML configuration file
-* Fixed [#1314](https://github.com/sebastianbergmann/phpunit/issues/1314): Bug in configuration parser
-
-## [4.1.3] - 2014-06-11
-
-New release of PHPUnit as PHP Archive (PHAR) with updated dependencies
-
-## [4.1.2] - 2014-06-07
-
-New release of PHPUnit as PHP Archive (PHAR) with updated dependencies
-
-## [4.1.1] - 2014-05-24
-
-### Added
-
-* Added `--selfupdate` alias for `--self-update`
-
-### Changed
-
-* Improved the fix for [#1133](https://github.com/sebastianbergmann/phpunit/issues/1133)
-
-### Fixed
-
-* Fixed the constructor argument for `SebastianBergmann\Version`
-
-## [4.1.0] - 2014-05-02
-
-### Changed
-
-* The code to compare PHP values for equality (in `assertEquals()`, for instance) has been factored out into a [separate component](https://github.com/sebastianbergmann/comparator)
-* [The mock object generator is now created lazily](https://github.com/sebastianbergmann/phpunit/pull/1165)
-
-[4.1.6]: https://github.com/sebastianbergmann/phpunit/compare/4.1.5...4.1.6
-[4.1.5]: https://github.com/sebastianbergmann/phpunit/compare/4.1.4...4.1.5
-[4.1.4]: https://github.com/sebastianbergmann/phpunit/compare/4.1.3...4.1.4
-[4.1.3]: https://github.com/sebastianbergmann/phpunit/compare/4.1.2...4.1.3
-[4.1.2]: https://github.com/sebastianbergmann/phpunit/compare/4.1.1...4.1.2
-[4.1.1]: https://github.com/sebastianbergmann/phpunit/compare/4.1.0...4.1.1
-[4.1.0]: https://github.com/sebastianbergmann/phpunit/compare/4.0...4.1.0
-
diff --git a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.2.md b/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.2.md
deleted file mode 100644
index 0d902b74..00000000
--- a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.2.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# Changes in PHPUnit 4.2
-
-All notable changes of the PHPUnit 4.2 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
-
-## [4.2.5] - 2014-09-06
-
-New release of PHPUnit as PHP Archive (PHAR) with updated dependencies
-
-## [4.2.4] - 2014-08-31
-
-### Fixed
-
-* Fixed [#1413](https://github.com/sebastianbergmann/phpunit/issues/1413): `assertCount()` hangs in infinite loop on HHVM
-
-## [4.2.3] - 2014-08-28
-
-### Fixed
-
-* Fixed [#1403](https://github.com/sebastianbergmann/phpunit/issues/1403): `phpunit --self-update` does not work
-
-## [4.2.2] - 2014-08-18
-
-### Fixed
-
-* Fixed [#1399](https://github.com/sebastianbergmann/phpunit/issues/1399): `enforceTimeLimit` configuration option is not handled
-
-## [4.2.1] - 2014-08-17
-
-### Fixed
-
-* Fixed [#1380](https://github.com/sebastianbergmann/phpunit/issues/1380): `assertMatch()` returns `Unexpected end tag : hr`
-* Fixed [#1390](https://github.com/sebastianbergmann/phpunit/issues/1390): Licensing issue with third-party components bundled in PHAR distribution
-
-## [4.2.0] - 2014-08-08
-
-### Added
-
-* Tests annotated with `@todo` will now be reported as risky when the `--disallow-todo-tests` option is used or `beStrictAboutTodoAnnotatedTests=true` is set in the configuration file
-* The `atLeast()` and `atMost()` invocation count matchers were added
-
-### Changed
-
-* `trigger_error(__METHOD__ . ' is deprecated', E_USER_DEPRECATED);` is used now to indicate that a PHPUnit API method is deprecated; the old "system" for deprecating methods has been removed
-* The PHP Archive (PHAR) distribution of PHPUnit can now be used as a library; `include()`ing or `require()`ing it will not execute the CLI test runner
-
-### Deprecated
-
-* The `assertTag()` and `assertSelect*()` assertion methods have been deprecated in favor of the [phpunit-dom-assertions](https://github.com/phpunit/phpunit-dom-assertions) extension; these methods will be removed in PHPUnit 5.0
-
-[4.2.5]: https://github.com/sebastianbergmann/phpunit/compare/4.2.4...4.2.5
-[4.2.4]: https://github.com/sebastianbergmann/phpunit/compare/4.2.3...4.2.4
-[4.2.3]: https://github.com/sebastianbergmann/phpunit/compare/4.2.2...4.2.3
-[4.2.2]: https://github.com/sebastianbergmann/phpunit/compare/4.2.1...4.2.2
-[4.2.1]: https://github.com/sebastianbergmann/phpunit/compare/4.2.0...4.2.1
-[4.2.0]: https://github.com/sebastianbergmann/phpunit/compare/4.1...4.2.0
-
diff --git a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.3.md b/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.3.md
deleted file mode 100644
index 99c2826e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.3.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# Changes in PHPUnit 4.3
-
-All notable changes of the PHPUnit 4.3 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
-
-## [4.3.5] - 2014-11-11
-
-### Changed
-
-* Merged [#1484](https://github.com/sebastianbergmann/phpunit/issues/1484): Removed `lazymap` from blacklist as it is not longer used
-* Merged [#1489](https://github.com/sebastianbergmann/phpunit/issues/1489): Do not send output from tests in process isolation when testing output
-
-## [4.3.4] - 2014-10-22
-
-### Fixed
-
-* Fixed [#1428](https://github.com/sebastianbergmann/phpunit/issues/1428): Issue with Composer dependencies
-* Fixed [#1447](https://github.com/sebastianbergmann/phpunit/issues/1447): PHPT tests treat line endings inconsistently
-
-## [4.3.3] - 2014-10-16
-
-### Fixed
-
-* Fixed [#1471](https://github.com/sebastianbergmann/phpunit/issues/1471): Output made while test is running is printed although `expectOutputString()` is used when an assertion fails
-
-## [4.3.2] - 2014-10-16
-
-### Fixed
-
-* Fixed [#1468](https://github.com/sebastianbergmann/phpunit/issues/1468): Incomplete and `@todo` annotated tests are counted twice
-
-## [4.3.1] - 2014-10-06
-
-New release of PHPUnit as PHP Archive (PHAR) with updated dependencies
-
-## [4.3.0] - 2014-10-03
-
-### Added
-
-* Merged [#1358](https://github.com/sebastianbergmann/phpunit/issues/1358): Implement `@expectedExceptionMessageRegExp` annotation
-* Merged [#1360](https://github.com/sebastianbergmann/phpunit/issues/1360): Allow a test to identify whether it runs in isolation
-
-### Fixed
-
-* Fixed [#1216](https://github.com/sebastianbergmann/phpunit/issues/1216): Bootstrap does not have global variables set when `--bootstrap` is specified on commandline
-* Fixed [#1351](https://github.com/sebastianbergmann/phpunit/issues/1351): `TestResult` object contains serialized test class upon test failure/exception in process isolation
-* Fixed [#1437](https://github.com/sebastianbergmann/phpunit/issues/1437): Risky test messages mask failures
-
-[4.3.5]: https://github.com/sebastianbergmann/phpunit/compare/4.3.4...4.3.5
-[4.3.4]: https://github.com/sebastianbergmann/phpunit/compare/4.3.3...4.3.4
-[4.3.3]: https://github.com/sebastianbergmann/phpunit/compare/4.3.2...4.3.3
-[4.3.2]: https://github.com/sebastianbergmann/phpunit/compare/4.3.1...4.3.2
-[4.3.1]: https://github.com/sebastianbergmann/phpunit/compare/4.3.0...4.3.1
-[4.3.0]: https://github.com/sebastianbergmann/phpunit/compare/4.2...4.3.0
-
diff --git a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.4.md b/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.4.md
deleted file mode 100644
index 312af5ae..00000000
--- a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.4.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# Changes in PHPUnit 4.4
-
-All notable changes of the PHPUnit 4.4 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
-
-## [4.4.5] - 2015-01-27
-
-### Fixed
-
-* Fixed [#1592](https://github.com/sebastianbergmann/phpunit/issues/1592): Incorrect dependency information
-
-## [4.4.4] - 2015-01-24
-
-### Fixed
-
-* Fixed [#1587](https://github.com/sebastianbergmann/phpunit/issues/1587): Class `SebastianBergmann\Exporter\Context` not found
-
-## [4.4.3] - 2015-01-24
-
-New PHAR release due to updated dependencies
-
-## [4.4.2] - 2015-01-17
-
-### Changed
-
-* Merged [#1573](https://github.com/sebastianbergmann/phpunit/issues/1573): Updates for the XSD for PHPUnit XML configuration
-
-### Fixed
-
-* Merged [#1567](https://github.com/sebastianbergmann/phpunit/issues/1567): `coverage-crap4j` missing in XSD for PHPUnit XML configuration
-* Fixed [#1570](https://github.com/sebastianbergmann/phpunit/issues/1570): Test that prints output is marked as failure and not as risky when `--disallow-test-output` is used
-* Fixed `--stderr` with `--tap` or `--testdox` options
-
-## [4.4.1] - 2014-12-28
-
-### Changed
-
-* Merged [#1528](https://github.com/sebastianbergmann/phpunit/issues/1528): Add `expectedCount()` to `toString()` return value
-
-## [4.4.0] - 2014-12-05
-
-### Added
-
-* Merged [#1371](https://github.com/sebastianbergmann/phpunit/issues/1371): Implement `assertArraySubset()` assertion
-* Merged [#1439](https://github.com/sebastianbergmann/phpunit/issues/1439): Add support for `double` to `assertInternalType()`
-
-### Changed
-
-* Merged [#1427](https://github.com/sebastianbergmann/phpunit/issues/1427): Improve failure output for tests when provided data is binary
-* Merged [#1458](https://github.com/sebastianbergmann/phpunit/issues/1458): Only enable colors when PHPUnit is run on a console (and output is not sent to a file)
-
-[4.4.5]: https://github.com/sebastianbergmann/phpunit/compare/4.4.4...4.4.5
-[4.4.4]: https://github.com/sebastianbergmann/phpunit/compare/4.4.3...4.4.4
-[4.4.3]: https://github.com/sebastianbergmann/phpunit/compare/4.4.2...4.4.3
-[4.4.2]: https://github.com/sebastianbergmann/phpunit/compare/4.4.1...4.4.2
-[4.4.1]: https://github.com/sebastianbergmann/phpunit/compare/4.4.0...4.4.1
-[4.4.0]: https://github.com/sebastianbergmann/phpunit/compare/4.3...4.4.0
-
diff --git a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.5.md b/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.5.md
deleted file mode 100644
index 2313de10..00000000
--- a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.5.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Changes in PHPUnit 4.5
-
-All notable changes of the PHPUnit 4.5 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
-
-## [4.5.1] - 2015-03-29
-
-## [4.5.0] - 2015-02-05
-
-### Added
-
-* Added out-of-the-box support for [Prophecy](https://github.com/phpspec/prophecy)
-* Implemented [#137](https://github.com/sebastianbergmann/phpunit/issues/137): Add support for variable number of tests shown per line in default result printer
-
-### Changed
-
-* Merged [#1478](https://github.com/sebastianbergmann/phpunit/issues/1478): Improve the performance of `PHPUnit_Framework_Constraint_IsEqual` (which is used by `assertEquals()`, for instance) for the most common case
-
-### Deprecated
-
-* [Deprecated](https://github.com/sebastianbergmann/phpunit/commit/7abe7796f77b13fdf3cfc506fb987d6c2ab477f5) the `--strict` commandline option and the XML configuration's `strict` attribute
-
-### Fixed
-
-* Fixed [#1474](https://github.com/sebastianbergmann/phpunit/issues/1474): Allow the registration of custom comparators for `assertEquals()` et al. (again)
-
-[4.5.1]: https://github.com/sebastianbergmann/phpunit/compare/4.5.0...4.5.1
-[4.5.0]: https://github.com/sebastianbergmann/phpunit/compare/4.4...4.5.0
-
diff --git a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.6.md b/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.6.md
deleted file mode 100644
index 3571634a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.6.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# Changes in PHPUnit 4.6
-
-All notable changes of the PHPUnit 4.6 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
-
-## [4.6.10] - 2015-06-03
-
-### Changed
-
-* Merged [#1693](https://github.com/sebastianbergmann/phpunit/pull/1693): Improved API documentation
-* Merged [#1706](https://github.com/sebastianbergmann/phpunit/pull/1706): Avoid hard-coded URI to `phpunit.xsd`
-* Merged [#1725](https://github.com/sebastianbergmann/phpunit/pull/1725): Update phpDox XSD URI
-* Merged [#1735](https://github.com/sebastianbergmann/phpunit/pull/1735): Mute `chdir()` failures in XInclude handling of XML configuration file
-* Merged [#1736](https://github.com/sebastianbergmann/phpunit/pull/1736): Verify that phar file can be overwritten before attempting self update
-
-### Fixed
-
-* Fixed [#1737](https://github.com/sebastianbergmann/phpunit/issues/1737): Confusing output from `--testdox` for empty test class
-
-## [4.6.9] - 2015-05-29
-
-### Fixed
-
-* Fixed [#1731](https://github.com/sebastianbergmann/phpunit/issues/1731): `.` after failure count has no background color when `--colors` is used
-
-## [4.6.8] - 2015-05-28
-
-New PHAR release due to updated dependencies
-
-## [4.6.7] - 2015-05-25
-
-New PHAR release due to updated dependencies
-
-## [4.6.6] - 2015-04-29
-
-### Fixed
-
-* Fixed [#1684](https://github.com/sebastianbergmann/phpunit/issues/1684): PHAR does not work on HHVM
-
-## [4.6.5] - 2015-04-29
-
-* Fixed [#1677](https://github.com/sebastianbergmann/phpunit/issues/1677): Number of risky tests not printed when there are failing tests
-* Fixed [#1688](https://github.com/sebastianbergmann/phpunit/issues/1688): Self-Update operation does not work due to outdated SSL certificate
-
-## [4.6.4] - 2015-04-11
-
-### Changed
-
-* The default list of blacklisted classes is now always passed to PHP_CodeCoverage
-
-## [4.6.3] - 2015-04-11
-
-### Changed
-
-* Updated the default list of blacklisted classes
-
-## [4.6.2] - 2015-04-07
-
-### Fixed
-
-* Fixed [#1667](https://github.com/sebastianbergmann/phpunit/issues/1667): Loading `src/Framework/Assert/Functions.php` by default causes collisions
-
-## [4.6.1] - 2015-04-03
-
-### Fixed
-
-* Fixed [#1665](https://github.com/sebastianbergmann/phpunit/issues/1665): PHPUnit 4.6.0 PHAR does not work when renamed to `phpunit`
-
-## [4.6.0] - 2015-04-03
-
-### Added
-
-* Added the `--strict-global-state` command-line option and the `beStrictAboutChangesToGlobalState` configuration setting for enabling a check that global variabes, super-global variables, and static attributes in user-defined classes are not modified during a test
-* Merged [#1527](https://github.com/sebastianbergmann/phpunit/issues/1527) and [#1529](https://github.com/sebastianbergmann/phpunit/issues/1529): Allow to define options for displaying colors
-
-### Changed
-
-* Merged [#1528](https://github.com/sebastianbergmann/phpunit/issues/1528): Improve message when `PHPUnit_Framework_Constraint_Count` is used with logical operators
-
-### Fixed
-
-* Merged [#1537](https://github.com/sebastianbergmann/phpunit/issues/1537): Fix problem of `--stderr` with `--tap` and `--testdox`
-* Fixed [#1599](https://github.com/sebastianbergmann/phpunit/issues/1599): The PHAR build of PHPUnit no longer uses an autoloader to load PHPUnit's own classes and instead statically loads all classes on startup
-
-[4.6.10]: https://github.com/sebastianbergmann/phpunit/compare/4.6.9...4.6.10
-[4.6.9]: https://github.com/sebastianbergmann/phpunit/compare/4.6.8...4.6.9
-[4.6.8]: https://github.com/sebastianbergmann/phpunit/compare/4.6.7...4.6.8
-[4.6.7]: https://github.com/sebastianbergmann/phpunit/compare/4.6.6...4.6.7
-[4.6.6]: https://github.com/sebastianbergmann/phpunit/compare/4.6.5...4.6.6
-[4.6.5]: https://github.com/sebastianbergmann/phpunit/compare/4.6.4...4.6.5
-[4.6.4]: https://github.com/sebastianbergmann/phpunit/compare/4.6.3...4.6.4
-[4.6.3]: https://github.com/sebastianbergmann/phpunit/compare/4.6.2...4.6.3
-[4.6.2]: https://github.com/sebastianbergmann/phpunit/compare/4.6.1...4.6.2
-[4.6.1]: https://github.com/sebastianbergmann/phpunit/compare/4.6.0...4.6.1
-[4.6.0]: https://github.com/sebastianbergmann/phpunit/compare/4.5...4.6.0
-
diff --git a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.7.md b/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.7.md
deleted file mode 100644
index 948c1274..00000000
--- a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.7.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Changes in PHPUnit 4.7
-
-All notable changes of the PHPUnit 4.7 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
-
-## [4.7.7] - 2015-07-13
-
-New PHAR release due to updated dependencies
-
-## [4.7.6] - 2015-06-30
-
-### Fixed
-
-* Fixed [#1681](https://github.com/sebastianbergmann/phpunit/issues/1681): Code Coverage filter configuration is not passed to child processes
-* Fixed [#1692](https://github.com/sebastianbergmann/phpunit/issues/1692): Clean up `PHPUnit_Extensions_RepeatedTest` after refactoring
-* Fixed [#1763](https://github.com/sebastianbergmann/phpunit/issues/1763): `@before` and `@after` annotations do not work when inherited
-
-## [4.7.5] - 2015-06-21
-
-### Fixed
-
-* Fixed [#490](https://github.com/sebastianbergmann/phpunit/issues/490): Ensure that a test can only be one of `@small`, `@medium`, or `@large`.
-* Fixed [#1704](https://github.com/sebastianbergmann/phpunit/issues/1704): Output printed during test missing when using TAP
-
-## [4.7.4] - 2015-06-18
-
-### Changed
-
-* The `PHPUnit_Framework_Constraint_IsType` constraint now knows about the `real` type (which is an alias for `float`)
-* Various work on compatibility with PHP 7
-
-### Fixed
-
-* Fixed [#1749](https://github.com/sebastianbergmann/phpunit/issues/1749): `stopOnError` configuration setting does not work
-
-## [4.7.3] - 2015-06-11
-
-### Fixed
-
-* Fixed [#1317](https://github.com/sebastianbergmann/phpunit/issues/1317): JUnit XML logfiles does not contain warnings
-* Fixed an [issue](https://github.com/sebastianbergmann/php-code-coverage/issues/347) where the warning that no whitelist is used is displayed when it should not
-
-## [4.7.2] - 2015-06-06
-
-New PHAR release due to updated dependencies
-
-## [4.7.1] - 2015-06-05
-
-New PHAR release due to updated dependencies
-
-## [4.7.0] - 2015-06-05
-
-### Added
-
-* Merged [#1718](https://github.com/sebastianbergmann/phpunit/issues/1718): Support for `--INI--` section in PHPT tests
-
-### Changed
-
-* Tests not annotated with `@small`, `@medium`, or `@large` are no longer treated as being annotated with `@small`
-* In verbose mode, the test runner now prints information about the PHP runtime
-* To be consistent with the printing of PHP runtime information, the configuration file used is only printed in verbose mode
-* A warning is now printed when code coverage data is collected but no whitelist is configured
-
-[4.7.7]: https://github.com/sebastianbergmann/phpunit/compare/4.7.6...4.7.7
-[4.7.6]: https://github.com/sebastianbergmann/phpunit/compare/4.7.5...4.7.6
-[4.7.5]: https://github.com/sebastianbergmann/phpunit/compare/4.7.4...4.7.5
-[4.7.4]: https://github.com/sebastianbergmann/phpunit/compare/4.7.3...4.7.4
-[4.7.3]: https://github.com/sebastianbergmann/phpunit/compare/4.7.2...4.7.3
-[4.7.2]: https://github.com/sebastianbergmann/phpunit/compare/4.7.1...4.7.2
-[4.7.1]: https://github.com/sebastianbergmann/phpunit/compare/4.7.0...4.7.1
-[4.7.0]: https://github.com/sebastianbergmann/phpunit/compare/4.6...4.7.0
-
diff --git a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.8.md b/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.8.md
deleted file mode 100644
index fee9ed22..00000000
--- a/www/wiki/vendor/phpunit/phpunit/ChangeLog-4.8.md
+++ /dev/null
@@ -1,293 +0,0 @@
-# Changes in PHPUnit 4.8
-
-All notable changes of the PHPUnit 4.8 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
-
-## [4.8.36] - 2017-06-21
-
-### Added
-
-* Added `PHPUnit\Framework\AssertionFailedError`, `PHPUnit\Framework\Test`, and `PHPUnit\Framework\TestSuite` to the forward compatibility layer for PHPUnit 6
-
-## [4.8.35] - 2017-02-06
-
-### Added
-
-* Backported the forward compatibility layer for PHPUnit 6 from PHPUnit 5 so that `PHPUnit\Framework\TestCase` can be used instead of `PHPUnit_Framework_TestCase`
-
-## [4.8.34] - 2017-01-26
-
-* Fixed [#2447](https://github.com/sebastianbergmann/phpunit/issues/2447): Reverted backwards incompatible change to handling of boolean environment variable values specified in XML
-
-## [4.8.33] - 2017-01-25
-
-### Fixed
-
-* Fixed [#1983](https://github.com/sebastianbergmann/phpunit/pull/1983): Tests with `@expectedException` annotation cannot be skipped
-* Fixed [#2275](https://github.com/sebastianbergmann/phpunit/pull/2275): Invalid UTF-8 characters can lead to missing output
-* Fixed [#2331](https://github.com/sebastianbergmann/phpunit/issues/2331): Boolean environment variable values specified in XML get mangled
-* Fixed [#2392](https://github.com/sebastianbergmann/phpunit/issues/2392): Empty (but valid) data provider should skip the test
-* Fixed [#2431](https://github.com/sebastianbergmann/phpunit/issues/2431): `assertArraySubset()` does not support `ArrayAccess`
-
-## [4.8.32] - 2017-01-22
-
-### Fixed
-
-* Fixed [#2428](https://github.com/sebastianbergmann/phpunit/pull/2428): Nested arrays specificied in XML configuration file are not handled correctly
-
-## [4.8.31] - 2016-12-09
-
-### Fixed
-
-* Fixed [#2384](https://github.com/sebastianbergmann/phpunit/pull/2384): Handle `PHPUnit_Framework_Exception` correctly when expecting exceptions
-
-## [4.8.30] - 2016-12-02
-
-### Fixed
-
-* Fixed [#2367](https://github.com/sebastianbergmann/phpunit/pull/2367): Bug in `PHPUnit_Util_Test::parseAnnotationContent()`
-* Fixed [#2375](https://github.com/sebastianbergmann/phpunit/issues/2375): Invalid regular expression for `--filter` causes PHP warning
-
-## [4.8.29] - 2016-11-20
-
-### Changed
-
-* Bumped the required version of `sebastian/comparator`
-
-## [4.8.28] - 2016-11-14
-
-### Fixed
-
-* Improved the fix for [#1955](https://github.com/sebastianbergmann/phpunit/issues/1955): Process isolation fails when running tests with `phpdbg -qrr`
-
-## [4.8.27] - 2016-07-21
-
-### Fixed
-
-* Fixed [#1968](https://github.com/sebastianbergmann/phpunit/issues/1968): Invalid data sets are not handled correctly for `@testWith` annotation
-
-## [4.8.26] - 2016-05-17
-
-### Fixed
-
-* Fixed [phpunit-mock-objects/#301](https://github.com/sebastianbergmann/phpunit-mock-objects/issues/301): `PHPUnit_Framework_MockObject_MockBuilder::getMock()` calls `PHPUnit_Framework_TestCase::getMock()` with more arguments than accepted
-
-## [4.8.25] - 2016-05-10
-
-### Fixed
-
-* Fixed [#2112](https://github.com/sebastianbergmann/phpunit/issues/2112): Output is html entity encoded when ran through `phpdbg`
-* Fixed [#2158](https://github.com/sebastianbergmann/phpunit/issues/2158): Failure to run tests in separate processes if a file included into main process contains constant definition
-
-## [4.8.24] - 2016-03-14
-
-### Fixed
-
-* Fixed [#1959](https://github.com/sebastianbergmann/phpunit/issues/1959): Prophecy errors are not handled correctly
-* Fixed [#2039](https://github.com/sebastianbergmann/phpunit/issues/2039): TestDox does not handle snake_case test methods properly
-* Fixed [#2109](https://github.com/sebastianbergmann/phpunit/issues/2109): Process isolation leaks global variable
-
-## [4.8.23] - 2016-02-11
-
-### Fixed
-
-* Fixed [#2072](https://github.com/sebastianbergmann/phpunit/issues/2072): Paths in XML configuration file were not handled correctly when they have whitespace around them
-
-## [4.8.22] - 2016-02-02
-
-### Fixed
-
-* Fixed [#2050](https://github.com/sebastianbergmann/phpunit/issues/2050): `PHPUnit_Util_XML::load()` raises exception with empty message when XML string is empty
-* Fixed a bug in `PHPUnit_Runner_Version::series()`
-
-## [4.8.21] - 2015-12-12
-
-### Changed
-
-* Reverted the changes introduced in PHPUnit 4.8.20 as the only thing the new version constraint in `composer.json` achieved was locking PHP 7 users to PHPUnit 4.8.19
-
-## [4.8.20] - 2015-12-10
-
-### Changed
-
-* Changed PHP version constraint in `composer.json` to prevent installing PHPUnit 4.8 on PHP 7
-* `phpunit.phar` will now refuse to work on PHP 7
-
-## [4.8.19] - 2015-11-30
-
-### Fixed
-
-* Fixed [#1955](https://github.com/sebastianbergmann/phpunit/issues/1955): Process isolation fails when running tests with `phpdbg -qrr`
-
-## [4.8.18] - 2015-11-11
-
-### Changed
-
-* DbUnit 1.4 is bundled again in the PHAR distribution
-
-## [4.8.17] - 2015-11-10
-
-### Fixed
-
-* Fixed [#1935](https://github.com/sebastianbergmann/phpunit/issues/1935): `PHP_CodeCoverage_Exception` not handled properly
-* Fixed [#1948](https://github.com/sebastianbergmann/phpunit/issues/1948): Unable to use PHAR due to unsupported signature error
-
-### Changed
-
-* DbUnit >= 2.0.2 is now bundled in the PHAR distribution
-
-## [4.8.16] - 2015-10-23
-
-### Added
-
-* Implemented [#1925](https://github.com/sebastianbergmann/phpunit/issues/1925): Provide a library-only PHAR
-
-## [4.8.15] - 2015-10-22
-
-### Fixed
-
-* The backup of global state is now properly restored when changes to global state are disallowed
-* The `__PHPUNIT_PHAR__` constant is now properly set when the PHPUnit PHAR is used as a library
-
-## [4.8.14] - 2015-10-17
-
-### Fixed
-
-* Fixed [#1892](https://github.com/sebastianbergmann/phpunit/issues/1892): `--coverage-text` does not honor color settings
-
-## [4.8.13] - 2015-10-14
-
-### Added
-
-* Added the `--self-upgrade` commandline switch for upgrading a PHPUnit PHAR to the latest version
-
-### Changed
-
-* The `--self-update` commandline switch now updates a PHPUnit PHAR to the latest version within the same release series
-
-## [4.8.12] - 2015-10-12
-
-### Changed
-
-* Merged [#1893](https://github.com/sebastianbergmann/phpunit/issues/1893): Removed workaround for phpab bug
-
-## [4.8.11] - 2015-10-07
-
-### Fixed
-
-* Merged [#1885](https://github.com/sebastianbergmann/phpunit/issues/1885): Fixed handling of PHP configuration settings for process isolation
-* Fixed [#1857](https://github.com/sebastianbergmann/phpunit/issues/1857): `@covers` and `@uses` should only take a single word
-* Fixed [#1879](https://github.com/sebastianbergmann/phpunit/issues/1879): `assertEqualXMLStructure()` cannot compare nodes with an ID
-* Fixed [#1898](https://github.com/sebastianbergmann/phpunit/issues/1898): `@covers` and `@uses` cannot be used for namespaced functions
-* Fixed [#1901](https://github.com/sebastianbergmann/phpunit/issues/1901): `--self-update` updates to PHPUnit 5, even on PHP < 5.6
-
-## [4.8.10] - 2015-10-01
-
-### Fixed
-
-* Merged [#1884](https://github.com/sebastianbergmann/phpunit/issues/1884): Avoid passing `Error` to `onNotSuccessfulTest()` on PHP 7
-
-## [4.8.9] - 2015-09-20
-
-### Fixed
-
-* Fixed regression introduced in PHPUnit 4.8.8
-
-## [4.8.8] - 2015-09-19
-
-### Fixed
-
-* Fixed [#1860](https://github.com/sebastianbergmann/phpunit/issues/1860): Not well-formed XML strings are always considered equal by `PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString()`
-
-## [4.8.7] - 2015-09-14
-
-New PHAR release due to updated dependencies
-
-## [4.8.6] - 2015-08-24
-
-### Fixed
-
-* Fixed [#1835](https://github.com/sebastianbergmann/phpunit/issues/1835): Skipped test reported as errored since PHPUnit 4.7.4
-
-## [4.8.5] - 2015-08-19
-
-### Fixed
-
-* Fixed [#1831](https://github.com/sebastianbergmann/phpunit/issues/1831): PHAR manifest is missing
-
-## [4.8.4] - 2015-08-15
-
-### Fixed
-
-* Fixed [#1823](https://github.com/sebastianbergmann/phpunit/issues/1823): Columns attribute in XML configuration file is ignored
-
-## [4.8.3] - 2015-08-10
-
-### Changed
-
-* PHPUnit now exits early during bootstrap when an unsupported version of PHP is used
-
-## [4.8.2] - 2015-08-07
-
-### Fixed
-
-* Fixed [#1816](https://github.com/sebastianbergmann/phpunit/issues/1816): PHPUnit 4.8.1 shows "4.8.0" as version number
-
-## [4.8.1] - 2015-08-07
-
-### Fixed
-
-* Fixed [#1815](https://github.com/sebastianbergmann/phpunit/issues/1815): `phpunit --self-update` does not work in PHPUnit 4.8.0
-
-## [4.8.0] - 2015-08-07
-
-### Added
-
-* Added `--check-version` commandline switch to check whether the current version of PHPUnit is used (PHAR only)
-* Added `--no-coverage` commandline switch to ignore code coverage configuration from the configuration file
-* Implemented [#1663](https://github.com/sebastianbergmann/phpunit/issues/1663): The Crap4J report's threshold is now configurable
-* Merged [#1728](https://github.com/sebastianbergmann/phpunit/issues/1728): Implemented the `@testWith` annotation as "syntactic sugar" for data providers
-* Merged [#1739](https://github.com/sebastianbergmann/phpunit/issues/1739): Added support to the commandline test runner for using options after arguments
-
-### Changed
-
-* Made the argument check of `assertContains()` and `assertNotContains()` more strict to prevent undefined behavior such as [#1808](https://github.com/sebastianbergmann/phpunit/issues/1808)
-* Changed the name of the default group from `__nogroup__` to `default`
-
-[4.8.36]: https://github.com/sebastianbergmann/phpunit/compare/4.8.35...4.8.36
-[4.8.35]: https://github.com/sebastianbergmann/phpunit/compare/4.8.34...4.8.35
-[4.8.34]: https://github.com/sebastianbergmann/phpunit/compare/4.8.33...4.8.34
-[4.8.33]: https://github.com/sebastianbergmann/phpunit/compare/4.8.32...4.8.33
-[4.8.32]: https://github.com/sebastianbergmann/phpunit/compare/4.8.31...4.8.32
-[4.8.31]: https://github.com/sebastianbergmann/phpunit/compare/4.8.30...4.8.31
-[4.8.30]: https://github.com/sebastianbergmann/phpunit/compare/4.8.29...4.8.30
-[4.8.29]: https://github.com/sebastianbergmann/phpunit/compare/4.8.28...4.8.29
-[4.8.28]: https://github.com/sebastianbergmann/phpunit/compare/4.8.27...4.8.28
-[4.8.27]: https://github.com/sebastianbergmann/phpunit/compare/4.8.26...4.8.27
-[4.8.26]: https://github.com/sebastianbergmann/phpunit/compare/4.8.25...4.8.26
-[4.8.25]: https://github.com/sebastianbergmann/phpunit/compare/4.8.24...4.8.25
-[4.8.24]: https://github.com/sebastianbergmann/phpunit/compare/4.8.23...4.8.24
-[4.8.23]: https://github.com/sebastianbergmann/phpunit/compare/4.8.22...4.8.23
-[4.8.22]: https://github.com/sebastianbergmann/phpunit/compare/4.8.21...4.8.22
-[4.8.21]: https://github.com/sebastianbergmann/phpunit/compare/4.8.20...4.8.21
-[4.8.20]: https://github.com/sebastianbergmann/phpunit/compare/4.8.19...4.8.20
-[4.8.19]: https://github.com/sebastianbergmann/phpunit/compare/4.8.18...4.8.19
-[4.8.18]: https://github.com/sebastianbergmann/phpunit/compare/4.8.17...4.8.18
-[4.8.17]: https://github.com/sebastianbergmann/phpunit/compare/4.8.16...4.8.17
-[4.8.16]: https://github.com/sebastianbergmann/phpunit/compare/4.8.15...4.8.16
-[4.8.15]: https://github.com/sebastianbergmann/phpunit/compare/4.8.14...4.8.15
-[4.8.14]: https://github.com/sebastianbergmann/phpunit/compare/4.8.13...4.8.14
-[4.8.13]: https://github.com/sebastianbergmann/phpunit/compare/4.8.12...4.8.13
-[4.8.12]: https://github.com/sebastianbergmann/phpunit/compare/4.8.11...4.8.12
-[4.8.11]: https://github.com/sebastianbergmann/phpunit/compare/4.8.10...4.8.11
-[4.8.10]: https://github.com/sebastianbergmann/phpunit/compare/4.8.9...4.8.10
-[4.8.9]: https://github.com/sebastianbergmann/phpunit/compare/4.8.8...4.8.9
-[4.8.8]: https://github.com/sebastianbergmann/phpunit/compare/4.8.7...4.8.8
-[4.8.7]: https://github.com/sebastianbergmann/phpunit/compare/4.8.6...4.8.7
-[4.8.6]: https://github.com/sebastianbergmann/phpunit/compare/4.8.5...4.8.6
-[4.8.5]: https://github.com/sebastianbergmann/phpunit/compare/4.8.4...4.8.5
-[4.8.4]: https://github.com/sebastianbergmann/phpunit/compare/4.8.3...4.8.4
-[4.8.3]: https://github.com/sebastianbergmann/phpunit/compare/4.8.2...4.8.3
-[4.8.2]: https://github.com/sebastianbergmann/phpunit/compare/4.8.1...4.8.2
-[4.8.1]: https://github.com/sebastianbergmann/phpunit/compare/4.8.0...4.8.1
-[4.8.0]: https://github.com/sebastianbergmann/phpunit/compare/4.7...4.8.0
-
diff --git a/www/wiki/vendor/phpunit/phpunit/LICENSE b/www/wiki/vendor/phpunit/phpunit/LICENSE
deleted file mode 100644
index c9d881fc..00000000
--- a/www/wiki/vendor/phpunit/phpunit/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-PHPUnit
-
-Copyright (c) 2001-2017, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/phpunit/phpunit/README.md b/www/wiki/vendor/phpunit/phpunit/README.md
deleted file mode 100644
index 53a10145..00000000
--- a/www/wiki/vendor/phpunit/phpunit/README.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# PHPUnit
-
-PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
-
-[![Latest Stable Version](https://img.shields.io/packagist/v/phpunit/phpunit.svg?style=flat-square)](https://packagist.org/packages/phpunit/phpunit)
-[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.3.3-8892BF.svg?style=flat-square)](https://php.net/)
-[![Build Status](https://img.shields.io/travis/sebastianbergmann/phpunit/4.8.svg?style=flat-square)](https://phpunit.de/build-status.html)
-
-## Installation
-
-We distribute a [PHP Archive (PHAR)](https://php.net/phar) that has all required (as well as some optional) dependencies of PHPUnit bundled in a single file:
-
-```bash
-$ wget https://phar.phpunit.de/phpunit.phar
-
-$ chmod +x phpunit.phar
-
-$ mv phpunit.phar /usr/local/bin/phpunit
-```
-
-You can also immediately use the PHAR after you have downloaded it, of course:
-
-```bash
-$ wget https://phar.phpunit.de/phpunit.phar
-
-$ php phpunit.phar
-```
-
-Alternatively, you may use [Composer](https://getcomposer.org/) to download and install PHPUnit as well as its dependencies. Please refer to the [documentation](https://phpunit.de/documentation.html) for details on how to do this.
-
-## Contribute
-
-Please refer to [CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/master/CONTRIBUTING.md) for information on how to contribute to PHPUnit and its related projects.
-
-## List of Contributors
-
-Thanks to everyone who has contributed to PHPUnit! You can find a detailed list of contributors on every PHPUnit related package on GitHub. This list shows only the major components:
-
-* [PHPUnit](https://github.com/sebastianbergmann/phpunit/graphs/contributors)
-* [PHP_CodeCoverage](https://github.com/sebastianbergmann/php-code-coverage/graphs/contributors)
-* [PHPUnit_MockObject](https://github.com/sebastianbergmann/phpunit-mock-objects/graphs/contributors)
-
-A very special thanks to everyone who has contributed to the documentation and helps maintain the translations:
-
-* [PHPUnit Documentation](https://github.com/sebastianbergmann/phpunit-documentation/graphs/contributors)
-
diff --git a/www/wiki/vendor/phpunit/phpunit/build.xml b/www/wiki/vendor/phpunit/phpunit/build.xml
deleted file mode 100644
index 0ad41463..00000000
--- a/www/wiki/vendor/phpunit/phpunit/build.xml
+++ /dev/null
@@ -1,379 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="phpunit" default="setup">
- <target name="setup" depends="clean,install-dependencies"/>
- <target name="validate" depends="php-syntax-check,validate-composer-json,validate-phpunit-xsd"/>
-
- <target name="clean" unless="clean.done" description="Cleanup build artifacts">
- <delete dir="${basedir}/bin"/>
- <delete dir="${basedir}/vendor"/>
- <delete file="${basedir}/composer.lock"/>
- <delete dir="${basedir}/build/documentation"/>
- <delete dir="${basedir}/build/logfiles"/>
- <delete dir="${basedir}/build/phar"/>
- <delete>
- <fileset dir="${basedir}/build">
- <include name="**/phpunit*.phar"/>
- <include name="**/phpunit*.phar.asc"/>
- </fileset>
- </delete>
-
- <property name="clean.done" value="true"/>
- </target>
-
- <target name="prepare" unless="prepare.done" depends="clean" description="Prepare for build">
- <mkdir dir="${basedir}/build/documentation"/>
- <mkdir dir="${basedir}/build/logfiles"/>
- <property name="prepare.done" value="true"/>
- </target>
-
- <target name="validate-composer-json" unless="validate-composer-json.done" description="Validate composer.json">
- <exec executable="${basedir}/build/tools/composer" failonerror="true" taskname="composer">
- <arg value="validate"/>
- <arg value="--no-check-lock"/>
- <arg value="--strict"/>
- <arg value="${basedir}/composer.json"/>
- </exec>
-
- <property name="validate-composer-json.done" value="true"/>
- </target>
-
- <target name="-dependencies-installed">
- <available file="${basedir}/composer.lock" property="dependencies-installed"/>
- </target>
-
- <target name="install-dependencies" unless="dependencies-installed" depends="-dependencies-installed,validate-composer-json" description="Install dependencies with Composer">
- <exec executable="${basedir}/build/tools/composer" taskname="composer">
- <arg value="update"/>
- <arg value="--no-interaction"/>
- <arg value="--no-progress"/>
- <arg value="--no-ansi"/>
- <arg value="--no-suggest"/>
- <arg value="--optimize-autoloader"/>
- <arg value="--prefer-stable"/>
- </exec>
- </target>
-
- <target name="php-syntax-check" unless="php-syntax-check.done" description="Perform syntax check on PHP files">
- <apply executable="php" failonerror="true" taskname="lint">
- <arg value="-l"/>
-
- <fileset dir="${basedir}/src">
- <include name="**/*.php"/>
- <modified/>
- </fileset>
-
- <fileset dir="${basedir}/tests">
- <include name="**/*.php"/>
- <modified/>
- </fileset>
- </apply>
-
- <property name="php-syntax-check.done" value="true"/>
- </target>
-
- <target name="validate-phpunit-xsd" unless="validate-phpunit-xsd.done" description="Validate phpunit.xsd">
- <exec executable="xmllint" failonerror="true" taskname="xmllint">
- <arg value="--noout"/>
- <arg path="${basedir}/phpunit.xsd"/>
- </exec>
-
- <property name="validate-phpunit-xsd.done" value="true"/>
- </target>
-
- <target name="test" depends="validate,install-dependencies" description="Run tests">
- <exec executable="${basedir}/phpunit" taskname="phpunit"/>
- </target>
-
- <target name="signed-phar" depends="phar" description="Create signed PHAR archive of PHPUnit and all its dependencies">
- <exec executable="gpg" failonerror="true">
- <arg value="--local-user"/>
- <arg value="sb@sebastian-bergmann.de"/>
- <arg value="--armor"/>
- <arg value="--detach-sign"/>
- <arg path="${basedir}/build/phpunit-library-${version}.phar"/>
- </exec>
-
- <exec executable="gpg" failonerror="true">
- <arg value="--local-user"/>
- <arg value="sb@sebastian-bergmann.de"/>
- <arg value="--armor"/>
- <arg value="--detach-sign"/>
- <arg path="${basedir}/build/phpunit-${version}.phar"/>
- </exec>
- </target>
-
- <target name="phar" depends="-phar-determine-version,-phar-prepare" description="Create PHAR archive of PHPUnit and all its dependencies">
- <antcall target="-phar-build">
- <param name="type" value="release"/>
- </antcall>
- </target>
-
- <target name="phar-nightly" depends="-phar-prepare" description="Create PHAR archive of PHPUnit and all its dependencies (nightly)">
- <antcall target="-phar-build">
- <param name="type" value="nightly"/>
- </antcall>
- </target>
-
- <target name="-phar-prepare" depends="clean,install-dependencies">
- <mkdir dir="${basedir}/build/phar"/>
- <copy file="${basedir}/composer.json" tofile="${basedir}/composer.json.bak"/>
-
- <exec executable="${basedir}/build/tools/composer">
- <arg value="require"/>
- <arg value="phpunit/dbunit:~1.4"/>
- <arg value="phpunit/phpunit-selenium:~1.4"/>
- <arg value="phpunit/php-invoker:~1.1"/>
- </exec>
-
- <move file="${basedir}/composer.json.bak" tofile="${basedir}/composer.json"/>
-
- <exec executable="${basedir}/build/phar-manifest.php" output="${basedir}/build/phar/manifest.txt"/>
- <copy todir="${basedir}/build/phar" file="${basedir}/build/ca.pem"/>
-
- <copy file="${basedir}/vendor/phpunit/php-code-coverage/LICENSE"
- tofile="${basedir}/build/phar/php-code-coverage/LICENSE"/>
- <copy todir="${basedir}/build/phar/php-code-coverage">
- <fileset dir="${basedir}/vendor/phpunit/php-code-coverage/src">
- <include name="**/*"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/phpunit/php-file-iterator/LICENSE"
- tofile="${basedir}/build/phar/php-file-iterator/LICENSE"/>
- <copy todir="${basedir}/build/phar/php-file-iterator">
- <fileset dir="${basedir}/vendor/phpunit/php-file-iterator/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/phpunit/php-text-template/LICENSE"
- tofile="${basedir}/build/phar/php-text-template/LICENSE"/>
- <copy todir="${basedir}/build/phar/php-text-template">
- <fileset dir="${basedir}/vendor/phpunit/php-text-template/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/phpunit/php-timer/LICENSE" tofile="${basedir}/build/phar/php-timer/LICENSE"/>
- <copy todir="${basedir}/build/phar/php-timer">
- <fileset dir="${basedir}/vendor/phpunit/php-timer/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/phpunit/php-token-stream/LICENSE"
- tofile="${basedir}/build/phar/php-token-stream/LICENSE"/>
- <copy todir="${basedir}/build/phar/php-token-stream">
- <fileset dir="${basedir}/vendor/phpunit/php-token-stream/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/phpunit/phpunit-mock-objects/LICENSE"
- tofile="${basedir}/build/phar/phpunit-mock-objects/LICENSE"/>
- <copy todir="${basedir}/build/phar/phpunit-mock-objects">
- <fileset dir="${basedir}/vendor/phpunit/phpunit-mock-objects/src">
- <include name="**/*"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/sebastian/comparator/LICENSE"
- tofile="${basedir}/build/phar/sebastian-comparator/LICENSE"/>
- <copy todir="${basedir}/build/phar/sebastian-comparator">
- <fileset dir="${basedir}/vendor/sebastian/comparator/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/sebastian/diff/LICENSE" tofile="${basedir}/build/phar/sebastian-diff/LICENSE"/>
- <copy todir="${basedir}/build/phar/sebastian-diff">
- <fileset dir="${basedir}/vendor/sebastian/diff/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/sebastian/environment/LICENSE"
- tofile="${basedir}/build/phar/sebastian-environment/LICENSE"/>
- <copy todir="${basedir}/build/phar/sebastian-environment">
- <fileset dir="${basedir}/vendor/sebastian/environment/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/sebastian/exporter/LICENSE"
- tofile="${basedir}/build/phar/sebastian-exporter/LICENSE"/>
- <copy todir="${basedir}/build/phar/sebastian-exporter">
- <fileset dir="${basedir}/vendor/sebastian/exporter/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/sebastian/recursion-context/LICENSE"
- tofile="${basedir}/build/phar/sebastian-recursion-context/LICENSE"/>
- <copy todir="${basedir}/build/phar/sebastian-recursion-context">
- <fileset dir="${basedir}/vendor/sebastian/recursion-context/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/sebastian/global-state/LICENSE"
- tofile="${basedir}/build/phar/sebastian-global-state/LICENSE"/>
- <copy todir="${basedir}/build/phar/sebastian-global-state">
- <fileset dir="${basedir}/vendor/sebastian/global-state/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/sebastian/version/LICENSE"
- tofile="${basedir}/build/phar/sebastian-version/LICENSE"/>
- <copy todir="${basedir}/build/phar/sebastian-version">
- <fileset dir="${basedir}/vendor/sebastian/version/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/doctrine/instantiator/LICENSE"
- tofile="${basedir}/build/phar/doctrine-instantiator/LICENSE"/>
- <copy todir="${basedir}/build/phar/doctrine-instantiator">
- <fileset dir="${basedir}/vendor/doctrine/instantiator/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/symfony/yaml/Symfony/Component/Yaml/LICENSE"
- tofile="${basedir}/build/phar/symfony/LICENSE"/>
- <copy todir="${basedir}/build/phar/symfony">
- <fileset dir="${basedir}/vendor/symfony">
- <include name="**/*.php"/>
- <exclude name="**/Tests/**"/>
- </fileset>
- </copy>
-
- <copy todir="${basedir}/build/phar/dbunit">
- <fileset dir="${basedir}/vendor/phpunit/dbunit/PHPUnit">
- <include name="**/*.php"/>
- <exclude name="**/Autoload.*"/>
- </fileset>
- </copy>
-
- <copy todir="${basedir}/build/phar/php-invoker">
- <fileset dir="${basedir}/vendor/phpunit/php-invoker/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy todir="${basedir}/build/phar/phpunit-selenium">
- <fileset dir="${basedir}/vendor/phpunit/phpunit-selenium/PHPUnit">
- <include name="**/*.php"/>
- <exclude name="**/Autoload.*"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/phpdocumentor/reflection-docblock/LICENSE"
- tofile="${basedir}/build/phar/phpdocumentor-reflection-docblock/LICENSE"/>
- <copy todir="${basedir}/build/phar/phpdocumentor-reflection-docblock">
- <fileset dir="${basedir}/vendor/phpdocumentor/reflection-docblock/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
-
- <copy file="${basedir}/vendor/phpspec/prophecy/LICENSE"
- tofile="${basedir}/build/phar/phpspec-prophecy/LICENSE"/>
- <copy todir="${basedir}/build/phar/phpspec-prophecy">
- <fileset dir="${basedir}/vendor/phpspec/prophecy/src">
- <include name="**/*.php"/>
- </fileset>
- </copy>
- </target>
-
- <target name="-phar-build" depends="-phar-determine-version">
- <copy todir="${basedir}/build/phar/phpunit">
- <fileset dir="${basedir}/src">
- <include name="**/*.php"/>
- <include name="**/*.tpl*"/>
- </fileset>
- </copy>
-
- <exec executable="${basedir}/build/phar-version.php" outputproperty="_version">
- <arg value="${version}"/>
- <arg value="${type}"/>
- </exec>
-
- <exec executable="${basedir}/build/tools/phpab" taskname="phpab">
- <arg value="--all"/>
- <arg value="--static"/>
- <arg value="--once"/>
- <arg value="--phar"/>
- <arg value="--hash"/>
- <arg value="SHA-1"/>
- <arg value="--output"/>
- <arg path="${basedir}/build/phpunit-library-${_version}.phar"/>
- <arg value="--template"/>
- <arg path="${basedir}/build/library-phar-autoload.php.in"/>
- <arg path="${basedir}/build/phar"/>
- </exec>
-
- <exec executable="${basedir}/build/tools/phpab" taskname="phpab">
- <arg value="--all"/>
- <arg value="--static"/>
- <arg value="--phar"/>
- <arg value="--hash"/>
- <arg value="SHA-1"/>
- <arg value="--output"/>
- <arg path="${basedir}/build/phpunit-${_version}.phar"/>
- <arg value="--template"/>
- <arg path="${basedir}/build/binary-phar-autoload.php.in"/>
- <arg path="${basedir}/build/phar"/>
- </exec>
-
- <chmod file="${basedir}/build/phpunit-${_version}.phar" perm="ugo+rx"/>
- </target>
-
- <target name="-phar-determine-version">
- <exec executable="${basedir}/build/version.php" outputproperty="version" />
- </target>
-
- <target name="generate-project-documentation" depends="-phploc,-phpcs,-phpmd,-phpunit">
- <exec executable="${basedir}/build/tools/phpdox" dir="${basedir}/build" taskname="phpdox"/>
- </target>
-
- <target name="-phploc" depends="prepare">
- <exec executable="${basedir}/build/tools/phploc" output="/dev/null" taskname="phploc">
- <arg value="--count-tests"/>
- <arg value="--log-xml"/>
- <arg path="${basedir}/build/logfiles/phploc.xml"/>
- <arg path="${basedir}/src"/>
- <arg path="${basedir}/tests"/>
- </exec>
- </target>
-
- <target name="-phpcs" depends="prepare">
- <exec executable="${basedir}/build/tools/phpcs" output="/dev/null" taskname="phpcs">
- <arg value="--report=checkstyle"/>
- <arg value="--report-file=${basedir}/build/logfiles/checkstyle.xml"/>
- <arg value="--standard=PSR2"/>
- <arg value="--extensions=php"/>
- <arg path="${basedir}/src"/>
- </exec>
- </target>
-
- <target name="-phpmd" depends="prepare">
- <exec executable="${basedir}/build/tools/phpmd" taskname="phpmd">
- <arg path="${basedir}/src"/>
- <arg value="xml"/>
- <arg path="${basedir}/build/phpmd.xml"/>
- <arg value="--reportfile"/>
- <arg path="${basedir}/build/logfiles/pmd.xml"/>
- </exec>
- </target>
-
- <target name="-phpunit" depends="setup">
- <exec executable="${basedir}/phpunit" taskname="phpunit">
- <arg value="--coverage-xml"/>
- <arg path="${basedir}/build/logfiles/coverage"/>
- <arg value="--log-junit"/>
- <arg path="${basedir}/build/logfiles/junit.xml"/>
- </exec>
- </target>
-</project>
-
diff --git a/www/wiki/vendor/phpunit/phpunit/composer.json b/www/wiki/vendor/phpunit/phpunit/composer.json
deleted file mode 100644
index 4db53654..00000000
--- a/www/wiki/vendor/phpunit/phpunit/composer.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "name": "phpunit/phpunit",
- "description": "The PHP Unit Testing framework.",
- "type": "library",
- "keywords": [
- "phpunit",
- "xunit",
- "testing"
- ],
- "homepage": "https://phpunit.de/",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/phpunit/issues"
- },
- "require": {
- "php": ">=5.3.3",
- "phpunit/php-file-iterator": "~1.4",
- "phpunit/php-text-template": "~1.2",
- "phpunit/php-code-coverage": "~2.1",
- "phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "~2.3",
- "phpspec/prophecy": "^1.3.1",
- "symfony/yaml": "~2.1|~3.0",
- "sebastian/comparator": "~1.2.2",
- "sebastian/diff": "~1.2",
- "sebastian/environment": "~1.3",
- "sebastian/exporter": "~1.2",
- "sebastian/global-state": "~1.0",
- "sebastian/version": "~1.0",
- "ext-dom": "*",
- "ext-json": "*",
- "ext-pcre": "*",
- "ext-reflection": "*",
- "ext-spl": "*"
- },
- "config": {
- "platform": {
- "php": "5.3.3"
- }
- },
- "suggest": {
- "phpunit/php-invoker": "~1.1"
- },
- "bin": [
- "phpunit"
- ],
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "autoload-dev": {
- "classmap": [
- "tests/"
- ],
- "files": [
- "src/Framework/Assert/Functions.php",
- "tests/_files/CoveredFunction.php"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "4.8.x-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/phpunit b/www/wiki/vendor/phpunit/phpunit/phpunit
deleted file mode 100755
index 539b8420..00000000
--- a/www/wiki/vendor/phpunit/phpunit/phpunit
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env php
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-if (version_compare('5.3.3', PHP_VERSION, '>')) {
- fwrite(
- STDERR,
- sprintf(
- 'This version of PHPUnit is supported on PHP 5.3, PHP 5.4, PHP 5.5, and PHP 5.6.' . PHP_EOL .
- 'You are using PHP %s%s.' . PHP_EOL,
- PHP_VERSION,
- defined('PHP_BINARY') ? ' (' . PHP_BINARY . ')' : ''
- )
- );
-
- die(1);
-}
-
-if (!ini_get('date.timezone')) {
- ini_set('date.timezone', 'UTC');
-}
-
-foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
- if (file_exists($file)) {
- define('PHPUNIT_COMPOSER_INSTALL', $file);
-
- break;
- }
-}
-
-unset($file);
-
-if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
- fwrite(STDERR,
- 'You need to set up the project dependencies using Composer:' . PHP_EOL . PHP_EOL .
- ' composer install' . PHP_EOL . PHP_EOL .
- 'You can learn all about Composer on https://getcomposer.org/.' . PHP_EOL
- );
-
- die(1);
-}
-
-require PHPUNIT_COMPOSER_INSTALL;
-
-PHPUnit_TextUI_Command::main();
diff --git a/www/wiki/vendor/phpunit/phpunit/phpunit.xml b/www/wiki/vendor/phpunit/phpunit/phpunit.xml
deleted file mode 100644
index ad6baa86..00000000
--- a/www/wiki/vendor/phpunit/phpunit/phpunit.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="phpunit.xsd"
- bootstrap="tests/bootstrap.php"
- backupGlobals="false"
- verbose="true">
- <testsuites>
- <testsuite name="small">
- <directory suffix="Test.php">tests/Framework</directory>
- <directory suffix="Test.php">tests/Extensions</directory>
- <directory suffix="Test.php">tests/Runner</directory>
- <directory suffix="Test.php">tests/Util</directory>
- </testsuite>
-
- <testsuite name="large">
- <directory suffix=".phpt">tests/TextUI</directory>
- <directory suffix=".phpt">tests/Regression</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist processUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">src</directory>
- <exclude>
- <file>src/Framework/Assert/Functions.php</file>
- </exclude>
- </whitelist>
- </filter>
-
- <php>
- <const name="PHPUNIT_TESTSUITE" value="true"/>
- </php>
-</phpunit>
-
diff --git a/www/wiki/vendor/phpunit/phpunit/phpunit.xsd b/www/wiki/vendor/phpunit/phpunit/phpunit.xsd
deleted file mode 100644
index 7c6d04ff..00000000
--- a/www/wiki/vendor/phpunit/phpunit/phpunit.xsd
+++ /dev/null
@@ -1,264 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:annotation>
- <xs:documentation source="https://phpunit.de/manual/4.8/en/appendixes.configuration.html">
- This Schema file defines the rules by which the XML configuration file of PHPUnit 4.8 may be structured.
- </xs:documentation>
- <xs:appinfo source="http://www.phpunit.de/manual/current/en/appendixes.configuration.html"/>
- </xs:annotation>
- <xs:element name="phpunit" type="phpUnitType">
- <xs:annotation>
- <xs:documentation>Root Element</xs:documentation>
- </xs:annotation>
- </xs:element>
- <xs:complexType name="filtersType">
- <xs:choice>
- <xs:sequence>
- <xs:element name="blacklist" type="filterType"/>
- <xs:element name="whitelist" type="whiteListType" minOccurs="0"/>
- </xs:sequence>
- <xs:sequence>
- <xs:element name="whitelist" type="whiteListType"/>
- </xs:sequence>
- </xs:choice>
- </xs:complexType>
- <xs:complexType name="filterType">
- <xs:sequence>
- <xs:group ref="pathGroup"/>
- <xs:element name="exclude" maxOccurs="unbounded" minOccurs="0">
- <xs:complexType>
- <xs:group ref="pathGroup"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="whiteListType">
- <xs:complexContent>
- <xs:extension base="filterType">
- <xs:attribute name="addUncoveredFilesFromWhitelist" default="false" type="xs:boolean"/>
- <xs:attribute name="processUncoveredFilesFromWhitelist" default="true" type="xs:boolean"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- <xs:complexType name="groupsType">
- <xs:choice>
- <xs:sequence>
- <xs:element name="include" type="groupType"/>
- <xs:element name="exclude" type="groupType" minOccurs="0"/>
- </xs:sequence>
- <xs:sequence>
- <xs:element name="exclude" type="groupType"/>
- </xs:sequence>
- </xs:choice>
- </xs:complexType>
- <xs:complexType name="groupType">
- <xs:sequence>
- <xs:element name="group" type="xs:string" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="listenersType">
- <xs:sequence>
- <xs:element name="listener" type="objectType" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="objectType">
- <xs:sequence>
- <xs:element name="arguments" minOccurs="0">
- <xs:complexType>
- <xs:group ref="argumentsGroup"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- <xs:attribute name="class" type="xs:string" use="required"/>
- <xs:attribute name="file" type="xs:anyURI"/>
- </xs:complexType>
- <xs:complexType name="arrayType">
- <xs:sequence>
- <xs:element name="element" type="argumentType" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="argumentType">
- <xs:group ref="argumentChoice"/>
- <xs:attribute name="key" use="required"/>
- </xs:complexType>
- <xs:group name="argumentsGroup">
- <xs:sequence>
- <xs:element name="array" type="arrayType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="integer" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="string" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="double" type="xs:double" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="null" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="object" type="objectType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="file" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="directory" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:group>
- <xs:group name="argumentChoice">
- <xs:choice>
- <xs:element name="array" type="arrayType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="integer" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="string" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="double" type="xs:double" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="null" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="object" type="objectType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="file" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="directory" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded"/>
- </xs:choice>
- </xs:group>
- <xs:complexType name="loggersType">
- <xs:sequence>
- <xs:element name="log" type="loggerType" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="loggerType">
- <xs:attribute name="type">
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value="coverage-html"/>
- <xs:enumeration value="coverage-text"/>
- <xs:enumeration value="coverage-clover"/>
- <xs:enumeration value="coverage-crap4j"/>
- <xs:enumeration value="coverage-xml"/>
- <xs:enumeration value="json"/>
- <xs:enumeration value="plain"/>
- <xs:enumeration value="tap"/>
- <xs:enumeration value="junit"/>
- <xs:enumeration value="testdox-html"/>
- <xs:enumeration value="testdox-text"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="target" type="xs:anyURI"/>
- <xs:attribute name="lowUpperBound" type="xs:nonNegativeInteger" default="35"/>
- <xs:attribute name="highLowerBound" type="xs:nonNegativeInteger" default="70"/>
- <xs:attribute name="logIncompleteSkipped" type="xs:boolean" default="false"/>
- <xs:attribute name="showUncoveredFiles" type="xs:boolean" default="false"/>
- <xs:attribute name="threshold" type="xs:nonNegativeInteger" default="30"/>
- </xs:complexType>
- <xs:group name="pathGroup">
- <xs:sequence>
- <xs:element name="directory" type="directoryFilterType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="file" type="fileFilterType" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:group>
- <xs:complexType name="directoryFilterType">
- <xs:simpleContent>
- <xs:extension base="xs:anyURI">
- <xs:attribute type="xs:string" name="suffix" default="Test.php"/>
- <xs:attributeGroup ref="phpVersionGroup"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- <xs:complexType name="fileFilterType">
- <xs:simpleContent>
- <xs:extension base="xs:anyURI">
- <xs:attributeGroup ref="phpVersionGroup"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- <xs:attributeGroup name="phpVersionGroup">
- <xs:attribute name="phpVersion" type="xs:string" default="5.3.0"/>
- <xs:attribute name="phpVersionOperator" type="xs:string" default="&gt;="/>
- </xs:attributeGroup>
- <xs:complexType name="phpType">
- <xs:sequence>
- <xs:choice maxOccurs="unbounded">
- <xs:element name="includePath" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="ini" type="namedValueType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="const" type="namedValueType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="var" type="namedValueType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="env" type="namedValueType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="post" type="namedValueType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="get" type="namedValueType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="cookie" type="namedValueType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="server" type="namedValueType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="files" type="namedValueType" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element name="request" type="namedValueType" minOccurs="0" maxOccurs="unbounded"/>
- </xs:choice>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="namedValueType">
- <xs:attribute name="name" use="required" type="xs:string"/>
- <xs:attribute name="value" use="required" type="xs:anySimpleType"/>
- </xs:complexType>
- <xs:complexType name="phpUnitType">
- <xs:annotation>
- <xs:documentation>The main type specifying the document structure</xs:documentation>
- </xs:annotation>
- <xs:group ref="configGroup"/>
- <xs:attributeGroup ref="configAttributeGroup"/>
- </xs:complexType>
- <xs:attributeGroup name="configAttributeGroup">
- <xs:attribute name="backupGlobals" type="xs:boolean" default="true"/>
- <xs:attribute name="backupStaticAttributes" type="xs:boolean" default="false"/>
- <xs:attribute name="bootstrap" type="xs:anyURI"/>
- <xs:attribute name="cacheTokens" type="xs:boolean"/>
- <xs:attribute name="colors" type="xs:boolean" default="false"/>
- <xs:attribute name="columns" type="xs:integer" default="80"/>
- <xs:attribute name="convertErrorsToExceptions" type="xs:boolean" default="true"/>
- <xs:attribute name="convertNoticesToExceptions" type="xs:boolean" default="true"/>
- <xs:attribute name="convertWarningsToExceptions" type="xs:boolean" default="true"/>
- <xs:attribute name="forceCoversAnnotation" type="xs:boolean" default="false"/>
- <xs:attribute name="mapTestClassNameToCoveredClassName" type="xs:boolean" default="false"/>
- <xs:attribute name="printerClass" type="xs:string" default="PHPUnit_TextUI_ResultPrinter"/>
- <xs:attribute name="printerFile" type="xs:anyURI"/>
- <xs:attribute name="processIsolation" type="xs:boolean" default="false"/>
- <xs:attribute name="stopOnError" type="xs:boolean" default="false"/>
- <xs:attribute name="stopOnFailure" type="xs:boolean" default="false"/>
- <xs:attribute name="stopOnIncomplete" type="xs:boolean" default="false"/>
- <xs:attribute name="stopOnRisky" type="xs:boolean" default="false"/>
- <xs:attribute name="stopOnSkipped" type="xs:boolean" default="false"/>
- <xs:attribute name="beStrictAboutTestsThatDoNotTestAnything" type="xs:boolean" default="false"/>
- <xs:attribute name="beStrictAboutOutputDuringTests" type="xs:boolean" default="false"/>
- <xs:attribute name="beStrictAboutTestSize" type="xs:boolean" default="false"/>
- <xs:attribute name="beStrictAboutTodoAnnotatedTests" type="xs:boolean" default="false"/>
- <xs:attribute name="beStrictAboutChangesToGlobalState" type="xs:boolean" default="false"/>
- <xs:attribute name="checkForUnintentionallyCoveredCode" type="xs:boolean" default="false"/>
- <xs:attribute name="strict" type="xs:boolean" default="false"/>
- <xs:attribute name="testSuiteLoaderClass" type="xs:string" default="PHPUnit_Runner_StandardTestSuiteLoader"/>
- <xs:attribute name="testSuiteLoaderFile" type="xs:anyURI"/>
- <xs:attribute name="timeoutForSmallTests" type="xs:integer" default="1"/>
- <xs:attribute name="timeoutForMediumTests" type="xs:integer" default="10"/>
- <xs:attribute name="timeoutForLargeTests" type="xs:integer" default="60"/>
- <xs:attribute name="verbose" type="xs:boolean" default="false"/>
- <xs:attribute name="stderr" type="xs:boolean" default="false"/>
- </xs:attributeGroup>
- <xs:group name="configGroup">
- <xs:all>
- <xs:element ref="testSuiteFacet" minOccurs="0"/>
- <xs:element name="groups" type="groupsType" minOccurs="0"/>
- <xs:element name="filter" type="filtersType" minOccurs="0"/>
- <xs:element name="logging" type="loggersType" minOccurs="0"/>
- <xs:element name="listeners" type="listenersType" minOccurs="0"/>
- <xs:element name="php" type="phpType" minOccurs="0"/>
- <xs:element name="selenium" type="seleniumType" minOccurs="0"/>
- </xs:all>
- </xs:group>
- <xs:complexType name="seleniumType">
- <xs:sequence>
- <xs:element name="browser" type="browserType"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="browserType">
- <xs:attribute name="name" type="xs:string"/>
- <xs:attribute name="browser" type="xs:string"/>
- <xs:attribute name="host" type="xs:anyURI"/>
- <xs:attribute name="port" type="xs:nonNegativeInteger"/>
- <xs:attribute name="timeout" type="xs:nonNegativeInteger"/>
- </xs:complexType>
- <xs:element name="testSuiteFacet" abstract="true"/>
- <xs:element name="testsuite" type="testSuiteType" substitutionGroup="testSuiteFacet"/>
- <xs:element name="testsuites" type="testSuitesType" substitutionGroup="testSuiteFacet"/>
- <xs:complexType name="testSuitesType">
- <xs:sequence>
- <xs:element name="testsuite" type="testSuiteType" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="testSuiteType">
- <xs:sequence>
- <xs:group ref="pathGroup"/>
- <xs:element name="exclude" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="name" type="xs:string" use="required"/>
- </xs:complexType>
-</xs:schema>
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Exception.php b/www/wiki/vendor/phpunit/phpunit/src/Exception.php
deleted file mode 100644
index 480ec936..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Exception.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Marker interface for PHPUnit exceptions.
- *
- * @since Interface available since Release 4.0.0
- */
-interface PHPUnit_Exception
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Extensions/GroupTestSuite.php b/www/wiki/vendor/phpunit/phpunit/src/Extensions/GroupTestSuite.php
deleted file mode 100644
index e4488977..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Extensions/GroupTestSuite.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * We have a TestSuite object A.
- * In TestSuite object A we have Tests tagged with @group.
- * We want a TestSuite object B that contains TestSuite objects C, D, ...
- * for the Tests tagged with @group C, @group D, ...
- * Running the Tests from TestSuite object B results in Tests tagged with both
- *
- * @group C and @group D in TestSuite object A to be run twice .
- *
- * <code>
- * $suite = new PHPUnit_Extensions_GroupTestSuite($A, array('C', 'D'));
- * </code>
- *
- * @since Class available since Release 3.3.0
- */
-class PHPUnit_Extensions_GroupTestSuite extends PHPUnit_Framework_TestSuite
-{
- public function __construct(PHPUnit_Framework_TestSuite $suite, array $groups)
- {
- $groupSuites = array();
- $name = $suite->getName();
-
- foreach ($groups as $group) {
- $groupSuites[$group] = new PHPUnit_Framework_TestSuite($name . ' - ' . $group);
- $this->addTest($groupSuites[$group]);
- }
-
- $tests = new RecursiveIteratorIterator(
- new PHPUnit_Util_TestSuiteIterator($suite),
- RecursiveIteratorIterator::LEAVES_ONLY
- );
-
- foreach ($tests as $test) {
- if ($test instanceof PHPUnit_Framework_TestCase) {
- $testGroups = PHPUnit_Util_Test::getGroups(
- get_class($test),
- $test->getName(false)
- );
-
- foreach ($groups as $group) {
- foreach ($testGroups as $testGroup) {
- if ($group == $testGroup) {
- $groupSuites[$group]->addTest($test);
- }
- }
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Extensions/PhptTestCase.php b/www/wiki/vendor/phpunit/phpunit/src/Extensions/PhptTestCase.php
deleted file mode 100644
index 4ac8fd81..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Extensions/PhptTestCase.php
+++ /dev/null
@@ -1,241 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Runner for PHPT test cases.
- *
- * @since Class available since Release 3.1.4
- */
-class PHPUnit_Extensions_PhptTestCase implements PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing
-{
- /**
- * @var string
- */
- private $filename;
-
- /**
- * @var array
- */
- private $settings = array(
- 'allow_url_fopen=1',
- 'auto_append_file=',
- 'auto_prepend_file=',
- 'disable_functions=',
- 'display_errors=1',
- 'docref_root=',
- 'docref_ext=.html',
- 'error_append_string=',
- 'error_prepend_string=',
- 'error_reporting=-1',
- 'html_errors=0',
- 'log_errors=0',
- 'magic_quotes_runtime=0',
- 'output_handler=',
- 'open_basedir=',
- 'output_buffering=Off',
- 'report_memleaks=0',
- 'report_zend_debug=0',
- 'safe_mode=0',
- 'track_errors=1',
- 'xdebug.default_enable=0'
- );
-
- /**
- * Constructs a test case with the given filename.
- *
- * @param string $filename
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function __construct($filename)
- {
- if (!is_string($filename)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_file($filename)) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'File "%s" does not exist.',
- $filename
- )
- );
- }
-
- $this->filename = $filename;
- }
-
- /**
- * Counts the number of test cases executed by run(TestResult result).
- *
- * @return int
- */
- public function count()
- {
- return 1;
- }
-
- /**
- * Runs a test and collects its result in a TestResult instance.
- *
- * @param PHPUnit_Framework_TestResult $result
- *
- * @return PHPUnit_Framework_TestResult
- */
- public function run(PHPUnit_Framework_TestResult $result = null)
- {
- $sections = $this->parse();
- $code = $this->render($sections['FILE']);
-
- if ($result === null) {
- $result = new PHPUnit_Framework_TestResult;
- }
-
- $php = PHPUnit_Util_PHP::factory();
- $skip = false;
- $time = 0;
- $settings = $this->settings;
-
- $result->startTest($this);
-
- if (isset($sections['INI'])) {
- $settings = array_merge($settings, $this->parseIniSection($sections['INI']));
- }
-
- if (isset($sections['SKIPIF'])) {
- $jobResult = $php->runJob($sections['SKIPIF'], $settings);
-
- if (!strncasecmp('skip', ltrim($jobResult['stdout']), 4)) {
- if (preg_match('/^\s*skip\s*(.+)\s*/i', $jobResult['stdout'], $message)) {
- $message = substr($message[1], 2);
- } else {
- $message = '';
- }
-
- $result->addFailure($this, new PHPUnit_Framework_SkippedTestError($message), 0);
-
- $skip = true;
- }
- }
-
- if (!$skip) {
- PHP_Timer::start();
- $jobResult = $php->runJob($code, $settings);
- $time = PHP_Timer::stop();
-
- if (isset($sections['EXPECT'])) {
- $assertion = 'assertEquals';
- $expected = $sections['EXPECT'];
- } else {
- $assertion = 'assertStringMatchesFormat';
- $expected = $sections['EXPECTF'];
- }
-
- $output = preg_replace('/\r\n/', "\n", trim($jobResult['stdout']));
- $expected = preg_replace('/\r\n/', "\n", trim($expected));
-
- try {
- PHPUnit_Framework_Assert::$assertion($expected, $output);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- $result->addFailure($this, $e, $time);
- } catch (Throwable $t) {
- $result->addError($this, $t, $time);
- } catch (Exception $e) {
- $result->addError($this, $e, $time);
- }
- }
-
- $result->endTest($this, $time);
-
- return $result;
- }
-
- /**
- * Returns the name of the test case.
- *
- * @return string
- */
- public function getName()
- {
- return $this->toString();
- }
-
- /**
- * Returns a string representation of the test case.
- *
- * @return string
- */
- public function toString()
- {
- return $this->filename;
- }
-
- /**
- * @return array
- *
- * @throws PHPUnit_Framework_Exception
- */
- private function parse()
- {
- $sections = array();
- $section = '';
-
- foreach (file($this->filename) as $line) {
- if (preg_match('/^--([_A-Z]+)--/', $line, $result)) {
- $section = $result[1];
- $sections[$section] = '';
- continue;
- } elseif (empty($section)) {
- throw new PHPUnit_Framework_Exception('Invalid PHPT file');
- }
-
- $sections[$section] .= $line;
- }
-
- if (!isset($sections['FILE']) ||
- (!isset($sections['EXPECT']) && !isset($sections['EXPECTF']))) {
- throw new PHPUnit_Framework_Exception('Invalid PHPT file');
- }
-
- return $sections;
- }
-
- /**
- * @param string $code
- *
- * @return string
- */
- private function render($code)
- {
- return str_replace(
- array(
- '__DIR__',
- '__FILE__'
- ),
- array(
- "'" . dirname($this->filename) . "'",
- "'" . $this->filename . "'"
- ),
- $code
- );
- }
-
- /**
- * Parse --INI-- section key value pairs and return as array.
- *
- * @param string
- *
- * @return array
- */
- protected function parseIniSection($content)
- {
- return preg_split('/\n|\r/', $content, -1, PREG_SPLIT_NO_EMPTY);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Extensions/PhptTestSuite.php b/www/wiki/vendor/phpunit/phpunit/src/Extensions/PhptTestSuite.php
deleted file mode 100644
index f21509b1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Extensions/PhptTestSuite.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Suite for .phpt test cases.
- *
- * @since Class available since Release 3.1.4
- */
-class PHPUnit_Extensions_PhptTestSuite extends PHPUnit_Framework_TestSuite
-{
- /**
- * Constructs a new TestSuite for .phpt test cases.
- *
- * @param string $directory
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function __construct($directory)
- {
- if (is_string($directory) && is_dir($directory)) {
- $this->setName($directory);
-
- $facade = new File_Iterator_Facade;
- $files = $facade->getFilesAsArray($directory, '.phpt');
-
- foreach ($files as $file) {
- $this->addTestFile($file);
- }
- } else {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'directory name');
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Extensions/RepeatedTest.php b/www/wiki/vendor/phpunit/phpunit/src/Extensions/RepeatedTest.php
deleted file mode 100644
index 152bffc4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Extensions/RepeatedTest.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A Decorator that runs a test repeatedly.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Extensions_RepeatedTest extends PHPUnit_Extensions_TestDecorator
-{
- /**
- * @var bool
- */
- protected $processIsolation = false;
-
- /**
- * @var int
- */
- protected $timesRepeat = 1;
-
- /**
- * @param PHPUnit_Framework_Test $test
- * @param int $timesRepeat
- * @param bool $processIsolation
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function __construct(PHPUnit_Framework_Test $test, $timesRepeat = 1, $processIsolation = false)
- {
- parent::__construct($test);
-
- if (is_integer($timesRepeat) &&
- $timesRepeat >= 0) {
- $this->timesRepeat = $timesRepeat;
- } else {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 2,
- 'positive integer'
- );
- }
-
- $this->processIsolation = $processIsolation;
- }
-
- /**
- * Counts the number of test cases that
- * will be run by this test.
- *
- * @return int
- */
- public function count()
- {
- return $this->timesRepeat * count($this->test);
- }
-
- /**
- * Runs the decorated test and collects the
- * result in a TestResult.
- *
- * @param PHPUnit_Framework_TestResult $result
- *
- * @return PHPUnit_Framework_TestResult
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function run(PHPUnit_Framework_TestResult $result = null)
- {
- if ($result === null) {
- $result = $this->createResult();
- }
-
- //@codingStandardsIgnoreStart
- for ($i = 0; $i < $this->timesRepeat && !$result->shouldStop(); $i++) {
- //@codingStandardsIgnoreEnd
- if ($this->test instanceof PHPUnit_Framework_TestSuite) {
- $this->test->setRunTestInSeparateProcess($this->processIsolation);
- }
- $this->test->run($result);
- }
-
- return $result;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Extensions/TestDecorator.php b/www/wiki/vendor/phpunit/phpunit/src/Extensions/TestDecorator.php
deleted file mode 100644
index 1f1530f9..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Extensions/TestDecorator.php
+++ /dev/null
@@ -1,109 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A Decorator for Tests.
- *
- * Use TestDecorator as the base class for defining new
- * test decorators. Test decorator subclasses can be introduced
- * to add behaviour before or after a test is run.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Extensions_TestDecorator extends PHPUnit_Framework_Assert implements PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing
-{
- /**
- * The Test to be decorated.
- *
- * @var object
- */
- protected $test = null;
-
- /**
- * Constructor.
- *
- * @param PHPUnit_Framework_Test $test
- */
- public function __construct(PHPUnit_Framework_Test $test)
- {
- $this->test = $test;
- }
-
- /**
- * Returns a string representation of the test.
- *
- * @return string
- */
- public function toString()
- {
- return $this->test->toString();
- }
-
- /**
- * Runs the test and collects the
- * result in a TestResult.
- *
- * @param PHPUnit_Framework_TestResult $result
- */
- public function basicRun(PHPUnit_Framework_TestResult $result)
- {
- $this->test->run($result);
- }
-
- /**
- * Counts the number of test cases that
- * will be run by this test.
- *
- * @return int
- */
- public function count()
- {
- return count($this->test);
- }
-
- /**
- * Creates a default TestResult object.
- *
- * @return PHPUnit_Framework_TestResult
- */
- protected function createResult()
- {
- return new PHPUnit_Framework_TestResult;
- }
-
- /**
- * Returns the test to be run.
- *
- * @return PHPUnit_Framework_Test
- */
- public function getTest()
- {
- return $this->test;
- }
-
- /**
- * Runs the decorated test and collects the
- * result in a TestResult.
- *
- * @param PHPUnit_Framework_TestResult $result
- *
- * @return PHPUnit_Framework_TestResult
- */
- public function run(PHPUnit_Framework_TestResult $result = null)
- {
- if ($result === null) {
- $result = $this->createResult();
- }
-
- $this->basicRun($result);
-
- return $result;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Extensions/TicketListener.php b/www/wiki/vendor/phpunit/phpunit/src/Extensions/TicketListener.php
deleted file mode 100644
index e282f8bc..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Extensions/TicketListener.php
+++ /dev/null
@@ -1,204 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Base class for test listeners that interact with an issue tracker.
- *
- * @since Class available since Release 3.4.0
- */
-abstract class PHPUnit_Extensions_TicketListener implements PHPUnit_Framework_TestListener
-{
- /**
- * @var array
- */
- protected $ticketCounts = array();
-
- /**
- * @var bool
- */
- protected $ran = false;
-
- /**
- * An error occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- }
-
- /**
- * A failure occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
- * @param float $time
- */
- public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
- {
- }
-
- /**
- * Incomplete test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- }
-
- /**
- * Risky test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 4.0.0
- */
- public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- }
-
- /**
- * Skipped test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 3.0.0
- */
- public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- }
-
- /**
- * A test suite started.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- }
-
- /**
- * A test suite ended.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- }
-
- /**
- * A test started.
- *
- * @param PHPUnit_Framework_Test $test
- */
- public function startTest(PHPUnit_Framework_Test $test)
- {
- if (!$test instanceof PHPUnit_Framework_Warning) {
- if ($this->ran) {
- return;
- }
-
- $name = $test->getName(false);
- $tickets = PHPUnit_Util_Test::getTickets(get_class($test), $name);
-
- foreach ($tickets as $ticket) {
- $this->ticketCounts[$ticket][$name] = 1;
- }
-
- $this->ran = true;
- }
- }
-
- /**
- * A test ended.
- *
- * @param PHPUnit_Framework_Test $test
- * @param float $time
- */
- public function endTest(PHPUnit_Framework_Test $test, $time)
- {
- if (!$test instanceof PHPUnit_Framework_Warning) {
- if ($test->getStatus() == PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) {
- $ifStatus = array('assigned', 'new', 'reopened');
- $newStatus = 'closed';
- $message = 'Automatically closed by PHPUnit (test passed).';
- $resolution = 'fixed';
- $cumulative = true;
- } elseif ($test->getStatus() == PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE) {
- $ifStatus = array('closed');
- $newStatus = 'reopened';
- $message = 'Automatically reopened by PHPUnit (test failed).';
- $resolution = '';
- $cumulative = false;
- } else {
- return;
- }
-
- $name = $test->getName(false);
- $tickets = PHPUnit_Util_Test::getTickets(get_class($test), $name);
-
- foreach ($tickets as $ticket) {
- // Remove this test from the totals (if it passed).
- if ($test->getStatus() == PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) {
- unset($this->ticketCounts[$ticket][$name]);
- }
-
- // Only close tickets if ALL referenced cases pass
- // but reopen tickets if a single test fails.
- if ($cumulative) {
- // Determine number of to-pass tests:
- if (count($this->ticketCounts[$ticket]) > 0) {
- // There exist remaining test cases with this reference.
- $adjustTicket = false;
- } else {
- // No remaining tickets, go ahead and adjust.
- $adjustTicket = true;
- }
- } else {
- $adjustTicket = true;
- }
-
- $ticketInfo = $this->getTicketInfo($ticket);
-
- if ($adjustTicket && in_array($ticketInfo['status'], $ifStatus)) {
- $this->updateTicket($ticket, $newStatus, $message, $resolution);
- }
- }
- }
- }
-
- /**
- * @param mixed $ticketId
- *
- * @return mixed
- */
- abstract protected function getTicketInfo($ticketId = null);
-
- /**
- * @param string $ticketId
- * @param string $newStatus
- * @param string $message
- * @param string $resolution
- */
- abstract protected function updateTicket($ticketId, $newStatus, $message, $resolution);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/Assert.php b/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/Assert.php
deleted file mode 100644
index cf3186ae..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/Assert.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace PHPUnit\Framework;
-
-use PHPUnit_Framework_Assert;
-
-abstract class Assert extends PHPUnit_Framework_Assert
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/AssertionFailedError.php b/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/AssertionFailedError.php
deleted file mode 100644
index d0cbe72c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/AssertionFailedError.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace PHPUnit\Framework;
-
-use PHPUnit_Framework_AssertionFailedError;
-
-class AssertionFailedError extends PHPUnit_Framework_AssertionFailedError
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/BaseTestListener.php b/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/BaseTestListener.php
deleted file mode 100644
index 3eef4902..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/BaseTestListener.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace PHPUnit\Framework;
-
-use PHPUnit_Framework_BaseTestListener;
-
-abstract class BaseTestListener extends PHPUnit_Framework_BaseTestListener
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/Test.php b/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/Test.php
deleted file mode 100644
index ce98526d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/Test.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace PHPUnit\Framework;
-
-use PHPUnit_Framework_Test;
-
-interface Test extends PHPUnit_Framework_Test
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestCase.php b/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestCase.php
deleted file mode 100644
index 03189e3b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestCase.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace PHPUnit\Framework;
-
-use PHPUnit_Framework_TestCase;
-
-abstract class TestCase extends PHPUnit_Framework_TestCase
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestListener.php b/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestListener.php
deleted file mode 100644
index 8440b14a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestListener.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace PHPUnit\Framework;
-
-use PHPUnit_Framework_TestListener;
-
-interface TestListener extends PHPUnit_Framework_TestListener
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestSuite.php b/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestSuite.php
deleted file mode 100644
index 535bbbed..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/ForwardCompatibility/TestSuite.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace PHPUnit\Framework;
-
-use PHPUnit_Framework_TestSuite;
-
-class TestSuite extends PHPUnit_Framework_TestSuite
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Assert.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Assert.php
deleted file mode 100644
index 2dd563eb..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Assert.php
+++ /dev/null
@@ -1,3165 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A set of assertion methods.
- *
- * @since Class available since Release 2.0.0
- */
-abstract class PHPUnit_Framework_Assert
-{
- /**
- * @var int
- */
- private static $count = 0;
-
- /**
- * Asserts that an array has a specified key.
- *
- * @param mixed $key
- * @param array|ArrayAccess $array
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
- public static function assertArrayHasKey($key, $array, $message = '')
- {
- if (!(is_integer($key) || is_string($key))) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 1,
- 'integer or string'
- );
- }
-
- if (!(is_array($array) || $array instanceof ArrayAccess)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 2,
- 'array or ArrayAccess'
- );
- }
-
- $constraint = new PHPUnit_Framework_Constraint_ArrayHasKey($key);
-
- self::assertThat($array, $constraint, $message);
- }
-
- /**
- * Asserts that an array has a specified subset.
- *
- * @param array|ArrayAccess $subset
- * @param array|ArrayAccess $array
- * @param bool $strict Check for object identity
- * @param string $message
- *
- * @since Method available since Release 4.4.0
- */
- public static function assertArraySubset($subset, $array, $strict = false, $message = '')
- {
- if (!(is_array($subset) || $subset instanceof ArrayAccess)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 1,
- 'array or ArrayAccess'
- );
- }
-
- if (!(is_array($array) || $array instanceof ArrayAccess)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 2,
- 'array or ArrayAccess'
- );
- }
-
- $constraint = new PHPUnit_Framework_Constraint_ArraySubset($subset, $strict);
-
- self::assertThat($array, $constraint, $message);
- }
-
- /**
- * Asserts that an array does not have a specified key.
- *
- * @param mixed $key
- * @param array|ArrayAccess $array
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
- public static function assertArrayNotHasKey($key, $array, $message = '')
- {
- if (!(is_integer($key) || is_string($key))) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 1,
- 'integer or string'
- );
- }
-
- if (!(is_array($array) || $array instanceof ArrayAccess)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 2,
- 'array or ArrayAccess'
- );
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_ArrayHasKey($key)
- );
-
- self::assertThat($array, $constraint, $message);
- }
-
- /**
- * Asserts that a haystack contains a needle.
- *
- * @param mixed $needle
- * @param mixed $haystack
- * @param string $message
- * @param bool $ignoreCase
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @since Method available since Release 2.1.0
- */
- public static function assertContains($needle, $haystack, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
- {
- if (is_array($haystack) ||
- is_object($haystack) && $haystack instanceof Traversable) {
- $constraint = new PHPUnit_Framework_Constraint_TraversableContains(
- $needle,
- $checkForObjectIdentity,
- $checkForNonObjectIdentity
- );
- } elseif (is_string($haystack)) {
- if (!is_string($needle)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 1,
- 'string'
- );
- }
-
- $constraint = new PHPUnit_Framework_Constraint_StringContains(
- $needle,
- $ignoreCase
- );
- } else {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 2,
- 'array, traversable or string'
- );
- }
-
- self::assertThat($haystack, $constraint, $message);
- }
-
- /**
- * Asserts that a haystack that is stored in a static attribute of a class
- * or an attribute of an object contains a needle.
- *
- * @param mixed $needle
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- * @param bool $ignoreCase
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @since Method available since Release 3.0.0
- */
- public static function assertAttributeContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
- {
- self::assertContains(
- $needle,
- self::readAttribute($haystackClassOrObject, $haystackAttributeName),
- $message,
- $ignoreCase,
- $checkForObjectIdentity,
- $checkForNonObjectIdentity
- );
- }
-
- /**
- * Asserts that a haystack does not contain a needle.
- *
- * @param mixed $needle
- * @param mixed $haystack
- * @param string $message
- * @param bool $ignoreCase
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @since Method available since Release 2.1.0
- */
- public static function assertNotContains($needle, $haystack, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
- {
- if (is_array($haystack) ||
- is_object($haystack) && $haystack instanceof Traversable) {
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_TraversableContains(
- $needle,
- $checkForObjectIdentity,
- $checkForNonObjectIdentity
- )
- );
- } elseif (is_string($haystack)) {
- if (!is_string($needle)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 1,
- 'string'
- );
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_StringContains(
- $needle,
- $ignoreCase
- )
- );
- } else {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 2,
- 'array, traversable or string'
- );
- }
-
- self::assertThat($haystack, $constraint, $message);
- }
-
- /**
- * Asserts that a haystack that is stored in a static attribute of a class
- * or an attribute of an object does not contain a needle.
- *
- * @param mixed $needle
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- * @param bool $ignoreCase
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @since Method available since Release 3.0.0
- */
- public static function assertAttributeNotContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
- {
- self::assertNotContains(
- $needle,
- self::readAttribute($haystackClassOrObject, $haystackAttributeName),
- $message,
- $ignoreCase,
- $checkForObjectIdentity,
- $checkForNonObjectIdentity
- );
- }
-
- /**
- * Asserts that a haystack contains only values of a given type.
- *
- * @param string $type
- * @param mixed $haystack
- * @param bool $isNativeType
- * @param string $message
- *
- * @since Method available since Release 3.1.4
- */
- public static function assertContainsOnly($type, $haystack, $isNativeType = null, $message = '')
- {
- if (!(is_array($haystack) ||
- is_object($haystack) && $haystack instanceof Traversable)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 2,
- 'array or traversable'
- );
- }
-
- if ($isNativeType == null) {
- $isNativeType = PHPUnit_Util_Type::isType($type);
- }
-
- self::assertThat(
- $haystack,
- new PHPUnit_Framework_Constraint_TraversableContainsOnly(
- $type,
- $isNativeType
- ),
- $message
- );
- }
-
- /**
- * Asserts that a haystack contains only instances of a given classname
- *
- * @param string $classname
- * @param array|Traversable $haystack
- * @param string $message
- */
- public static function assertContainsOnlyInstancesOf($classname, $haystack, $message = '')
- {
- if (!(is_array($haystack) ||
- is_object($haystack) && $haystack instanceof Traversable)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 2,
- 'array or traversable'
- );
- }
-
- self::assertThat(
- $haystack,
- new PHPUnit_Framework_Constraint_TraversableContainsOnly(
- $classname,
- false
- ),
- $message
- );
- }
-
- /**
- * Asserts that a haystack that is stored in a static attribute of a class
- * or an attribute of an object contains only values of a given type.
- *
- * @param string $type
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param bool $isNativeType
- * @param string $message
- *
- * @since Method available since Release 3.1.4
- */
- public static function assertAttributeContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = null, $message = '')
- {
- self::assertContainsOnly(
- $type,
- self::readAttribute($haystackClassOrObject, $haystackAttributeName),
- $isNativeType,
- $message
- );
- }
-
- /**
- * Asserts that a haystack does not contain only values of a given type.
- *
- * @param string $type
- * @param mixed $haystack
- * @param bool $isNativeType
- * @param string $message
- *
- * @since Method available since Release 3.1.4
- */
- public static function assertNotContainsOnly($type, $haystack, $isNativeType = null, $message = '')
- {
- if (!(is_array($haystack) ||
- is_object($haystack) && $haystack instanceof Traversable)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 2,
- 'array or traversable'
- );
- }
-
- if ($isNativeType == null) {
- $isNativeType = PHPUnit_Util_Type::isType($type);
- }
-
- self::assertThat(
- $haystack,
- new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_TraversableContainsOnly(
- $type,
- $isNativeType
- )
- ),
- $message
- );
- }
-
- /**
- * Asserts that a haystack that is stored in a static attribute of a class
- * or an attribute of an object does not contain only values of a given
- * type.
- *
- * @param string $type
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param bool $isNativeType
- * @param string $message
- *
- * @since Method available since Release 3.1.4
- */
- public static function assertAttributeNotContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = null, $message = '')
- {
- self::assertNotContainsOnly(
- $type,
- self::readAttribute($haystackClassOrObject, $haystackAttributeName),
- $isNativeType,
- $message
- );
- }
-
- /**
- * Asserts the number of elements of an array, Countable or Traversable.
- *
- * @param int $expectedCount
- * @param mixed $haystack
- * @param string $message
- */
- public static function assertCount($expectedCount, $haystack, $message = '')
- {
- if (!is_int($expectedCount)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer');
- }
-
- if (!$haystack instanceof Countable &&
- !$haystack instanceof Traversable &&
- !is_array($haystack)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'countable or traversable');
- }
-
- self::assertThat(
- $haystack,
- new PHPUnit_Framework_Constraint_Count($expectedCount),
- $message
- );
- }
-
- /**
- * Asserts the number of elements of an array, Countable or Traversable
- * that is stored in an attribute.
- *
- * @param int $expectedCount
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.6.0
- */
- public static function assertAttributeCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '')
- {
- self::assertCount(
- $expectedCount,
- self::readAttribute($haystackClassOrObject, $haystackAttributeName),
- $message
- );
- }
-
- /**
- * Asserts the number of elements of an array, Countable or Traversable.
- *
- * @param int $expectedCount
- * @param mixed $haystack
- * @param string $message
- */
- public static function assertNotCount($expectedCount, $haystack, $message = '')
- {
- if (!is_int($expectedCount)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer');
- }
-
- if (!$haystack instanceof Countable &&
- !$haystack instanceof Traversable &&
- !is_array($haystack)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'countable or traversable');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_Count($expectedCount)
- );
-
- self::assertThat($haystack, $constraint, $message);
- }
-
- /**
- * Asserts the number of elements of an array, Countable or Traversable
- * that is stored in an attribute.
- *
- * @param int $expectedCount
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.6.0
- */
- public static function assertAttributeNotCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '')
- {
- self::assertNotCount(
- $expectedCount,
- self::readAttribute($haystackClassOrObject, $haystackAttributeName),
- $message
- );
- }
-
- /**
- * Asserts that two variables are equal.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- */
- public static function assertEquals($expected, $actual, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
- {
- $constraint = new PHPUnit_Framework_Constraint_IsEqual(
- $expected,
- $delta,
- $maxDepth,
- $canonicalize,
- $ignoreCase
- );
-
- self::assertThat($actual, $constraint, $message);
- }
-
- /**
- * Asserts that a variable is equal to an attribute of an object.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- */
- public static function assertAttributeEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
- {
- self::assertEquals(
- $expected,
- self::readAttribute($actualClassOrObject, $actualAttributeName),
- $message,
- $delta,
- $maxDepth,
- $canonicalize,
- $ignoreCase
- );
- }
-
- /**
- * Asserts that two variables are not equal.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @since Method available since Release 2.3.0
- */
- public static function assertNotEquals($expected, $actual, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
- {
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_IsEqual(
- $expected,
- $delta,
- $maxDepth,
- $canonicalize,
- $ignoreCase
- )
- );
-
- self::assertThat($actual, $constraint, $message);
- }
-
- /**
- * Asserts that a variable is not equal to an attribute of an object.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- */
- public static function assertAttributeNotEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
- {
- self::assertNotEquals(
- $expected,
- self::readAttribute($actualClassOrObject, $actualAttributeName),
- $message,
- $delta,
- $maxDepth,
- $canonicalize,
- $ignoreCase
- );
- }
-
- /**
- * Asserts that a variable is empty.
- *
- * @param mixed $actual
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
- public static function assertEmpty($actual, $message = '')
- {
- self::assertThat($actual, self::isEmpty(), $message);
- }
-
- /**
- * Asserts that a static attribute of a class or an attribute of an object
- * is empty.
- *
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertAttributeEmpty($haystackAttributeName, $haystackClassOrObject, $message = '')
- {
- self::assertEmpty(
- self::readAttribute($haystackClassOrObject, $haystackAttributeName),
- $message
- );
- }
-
- /**
- * Asserts that a variable is not empty.
- *
- * @param mixed $actual
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
- public static function assertNotEmpty($actual, $message = '')
- {
- self::assertThat($actual, self::logicalNot(self::isEmpty()), $message);
- }
-
- /**
- * Asserts that a static attribute of a class or an attribute of an object
- * is not empty.
- *
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertAttributeNotEmpty($haystackAttributeName, $haystackClassOrObject, $message = '')
- {
- self::assertNotEmpty(
- self::readAttribute($haystackClassOrObject, $haystackAttributeName),
- $message
- );
- }
-
- /**
- * Asserts that a value is greater than another value.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertGreaterThan($expected, $actual, $message = '')
- {
- self::assertThat($actual, self::greaterThan($expected), $message);
- }
-
- /**
- * Asserts that an attribute is greater than another value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertAttributeGreaterThan($expected, $actualAttributeName, $actualClassOrObject, $message = '')
- {
- self::assertGreaterThan(
- $expected,
- self::readAttribute($actualClassOrObject, $actualAttributeName),
- $message
- );
- }
-
- /**
- * Asserts that a value is greater than or equal to another value.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertGreaterThanOrEqual($expected, $actual, $message = '')
- {
- self::assertThat(
- $actual,
- self::greaterThanOrEqual($expected),
- $message
- );
- }
-
- /**
- * Asserts that an attribute is greater than or equal to another value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')
- {
- self::assertGreaterThanOrEqual(
- $expected,
- self::readAttribute($actualClassOrObject, $actualAttributeName),
- $message
- );
- }
-
- /**
- * Asserts that a value is smaller than another value.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertLessThan($expected, $actual, $message = '')
- {
- self::assertThat($actual, self::lessThan($expected), $message);
- }
-
- /**
- * Asserts that an attribute is smaller than another value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertAttributeLessThan($expected, $actualAttributeName, $actualClassOrObject, $message = '')
- {
- self::assertLessThan(
- $expected,
- self::readAttribute($actualClassOrObject, $actualAttributeName),
- $message
- );
- }
-
- /**
- * Asserts that a value is smaller than or equal to another value.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertLessThanOrEqual($expected, $actual, $message = '')
- {
- self::assertThat($actual, self::lessThanOrEqual($expected), $message);
- }
-
- /**
- * Asserts that an attribute is smaller than or equal to another value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertAttributeLessThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')
- {
- self::assertLessThanOrEqual(
- $expected,
- self::readAttribute($actualClassOrObject, $actualAttributeName),
- $message
- );
- }
-
- /**
- * Asserts that the contents of one file is equal to the contents of another
- * file.
- *
- * @param string $expected
- * @param string $actual
- * @param string $message
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @since Method available since Release 3.2.14
- */
- public static function assertFileEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false)
- {
- self::assertFileExists($expected, $message);
- self::assertFileExists($actual, $message);
-
- self::assertEquals(
- file_get_contents($expected),
- file_get_contents($actual),
- $message,
- 0,
- 10,
- $canonicalize,
- $ignoreCase
- );
- }
-
- /**
- * Asserts that the contents of one file is not equal to the contents of
- * another file.
- *
- * @param string $expected
- * @param string $actual
- * @param string $message
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @since Method available since Release 3.2.14
- */
- public static function assertFileNotEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false)
- {
- self::assertFileExists($expected, $message);
- self::assertFileExists($actual, $message);
-
- self::assertNotEquals(
- file_get_contents($expected),
- file_get_contents($actual),
- $message,
- 0,
- 10,
- $canonicalize,
- $ignoreCase
- );
- }
-
- /**
- * Asserts that the contents of a string is equal
- * to the contents of a file.
- *
- * @param string $expectedFile
- * @param string $actualString
- * @param string $message
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @since Method available since Release 3.3.0
- */
- public static function assertStringEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = false, $ignoreCase = false)
- {
- self::assertFileExists($expectedFile, $message);
-
- self::assertEquals(
- file_get_contents($expectedFile),
- $actualString,
- $message,
- 0,
- 10,
- $canonicalize,
- $ignoreCase
- );
- }
-
- /**
- * Asserts that the contents of a string is not equal
- * to the contents of a file.
- *
- * @param string $expectedFile
- * @param string $actualString
- * @param string $message
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @since Method available since Release 3.3.0
- */
- public static function assertStringNotEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = false, $ignoreCase = false)
- {
- self::assertFileExists($expectedFile, $message);
-
- self::assertNotEquals(
- file_get_contents($expectedFile),
- $actualString,
- $message,
- 0,
- 10,
- $canonicalize,
- $ignoreCase
- );
- }
-
- /**
- * Asserts that a file exists.
- *
- * @param string $filename
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
- public static function assertFileExists($filename, $message = '')
- {
- if (!is_string($filename)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_FileExists;
-
- self::assertThat($filename, $constraint, $message);
- }
-
- /**
- * Asserts that a file does not exist.
- *
- * @param string $filename
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
- public static function assertFileNotExists($filename, $message = '')
- {
- if (!is_string($filename)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_FileExists
- );
-
- self::assertThat($filename, $constraint, $message);
- }
-
- /**
- * Asserts that a condition is true.
- *
- * @param bool $condition
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
- public static function assertTrue($condition, $message = '')
- {
- self::assertThat($condition, self::isTrue(), $message);
- }
-
- /**
- * Asserts that a condition is not true.
- *
- * @param bool $condition
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
- public static function assertNotTrue($condition, $message = '')
- {
- self::assertThat($condition, self::logicalNot(self::isTrue()), $message);
- }
-
- /**
- * Asserts that a condition is false.
- *
- * @param bool $condition
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
- public static function assertFalse($condition, $message = '')
- {
- self::assertThat($condition, self::isFalse(), $message);
- }
-
- /**
- * Asserts that a condition is not false.
- *
- * @param bool $condition
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
- public static function assertNotFalse($condition, $message = '')
- {
- self::assertThat($condition, self::logicalNot(self::isFalse()), $message);
- }
-
- /**
- * Asserts that a variable is not null.
- *
- * @param mixed $actual
- * @param string $message
- */
- public static function assertNotNull($actual, $message = '')
- {
- self::assertThat($actual, self::logicalNot(self::isNull()), $message);
- }
-
- /**
- * Asserts that a variable is null.
- *
- * @param mixed $actual
- * @param string $message
- */
- public static function assertNull($actual, $message = '')
- {
- self::assertThat($actual, self::isNull(), $message);
- }
-
- /**
- * Asserts that a class has a specified attribute.
- *
- * @param string $attributeName
- * @param string $className
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertClassHasAttribute($attributeName, $className, $message = '')
- {
- if (!is_string($attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'valid attribute name');
- }
-
- if (!is_string($className) || !class_exists($className)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'class name', $className);
- }
-
- $constraint = new PHPUnit_Framework_Constraint_ClassHasAttribute(
- $attributeName
- );
-
- self::assertThat($className, $constraint, $message);
- }
-
- /**
- * Asserts that a class does not have a specified attribute.
- *
- * @param string $attributeName
- * @param string $className
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertClassNotHasAttribute($attributeName, $className, $message = '')
- {
- if (!is_string($attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'valid attribute name');
- }
-
- if (!is_string($className) || !class_exists($className)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'class name', $className);
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_ClassHasAttribute($attributeName)
- );
-
- self::assertThat($className, $constraint, $message);
- }
-
- /**
- * Asserts that a class has a specified static attribute.
- *
- * @param string $attributeName
- * @param string $className
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertClassHasStaticAttribute($attributeName, $className, $message = '')
- {
- if (!is_string($attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'valid attribute name');
- }
-
- if (!is_string($className) || !class_exists($className)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'class name', $className);
- }
-
- $constraint = new PHPUnit_Framework_Constraint_ClassHasStaticAttribute(
- $attributeName
- );
-
- self::assertThat($className, $constraint, $message);
- }
-
- /**
- * Asserts that a class does not have a specified static attribute.
- *
- * @param string $attributeName
- * @param string $className
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertClassNotHasStaticAttribute($attributeName, $className, $message = '')
- {
- if (!is_string($attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'valid attribute name');
- }
-
- if (!is_string($className) || !class_exists($className)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'class name', $className);
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_ClassHasStaticAttribute(
- $attributeName
- )
- );
-
- self::assertThat($className, $constraint, $message);
- }
-
- /**
- * Asserts that an object has a specified attribute.
- *
- * @param string $attributeName
- * @param object $object
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
- public static function assertObjectHasAttribute($attributeName, $object, $message = '')
- {
- if (!is_string($attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'valid attribute name');
- }
-
- if (!is_object($object)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'object');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_ObjectHasAttribute(
- $attributeName
- );
-
- self::assertThat($object, $constraint, $message);
- }
-
- /**
- * Asserts that an object does not have a specified attribute.
- *
- * @param string $attributeName
- * @param object $object
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
- public static function assertObjectNotHasAttribute($attributeName, $object, $message = '')
- {
- if (!is_string($attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'valid attribute name');
- }
-
- if (!is_object($object)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'object');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_ObjectHasAttribute($attributeName)
- );
-
- self::assertThat($object, $constraint, $message);
- }
-
- /**
- * Asserts that two variables have the same type and value.
- * Used on objects, it asserts that two variables reference
- * the same object.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- */
- public static function assertSame($expected, $actual, $message = '')
- {
- if (is_bool($expected) && is_bool($actual)) {
- self::assertEquals($expected, $actual, $message);
- } else {
- $constraint = new PHPUnit_Framework_Constraint_IsIdentical(
- $expected
- );
-
- self::assertThat($actual, $constraint, $message);
- }
- }
-
- /**
- * Asserts that a variable and an attribute of an object have the same type
- * and value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param object $actualClassOrObject
- * @param string $message
- */
- public static function assertAttributeSame($expected, $actualAttributeName, $actualClassOrObject, $message = '')
- {
- self::assertSame(
- $expected,
- self::readAttribute($actualClassOrObject, $actualAttributeName),
- $message
- );
- }
-
- /**
- * Asserts that two variables do not have the same type and value.
- * Used on objects, it asserts that two variables do not reference
- * the same object.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- */
- public static function assertNotSame($expected, $actual, $message = '')
- {
- if (is_bool($expected) && is_bool($actual)) {
- self::assertNotEquals($expected, $actual, $message);
- } else {
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_IsIdentical($expected)
- );
-
- self::assertThat($actual, $constraint, $message);
- }
- }
-
- /**
- * Asserts that a variable and an attribute of an object do not have the
- * same type and value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param object $actualClassOrObject
- * @param string $message
- */
- public static function assertAttributeNotSame($expected, $actualAttributeName, $actualClassOrObject, $message = '')
- {
- self::assertNotSame(
- $expected,
- self::readAttribute($actualClassOrObject, $actualAttributeName),
- $message
- );
- }
-
- /**
- * Asserts that a variable is of a given type.
- *
- * @param string $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertInstanceOf($expected, $actual, $message = '')
- {
- if (!(is_string($expected) && (class_exists($expected) || interface_exists($expected)))) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'class or interface name');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_IsInstanceOf(
- $expected
- );
-
- self::assertThat($actual, $constraint, $message);
- }
-
- /**
- * Asserts that an attribute is of a given type.
- *
- * @param string $expected
- * @param string $attributeName
- * @param mixed $classOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertAttributeInstanceOf($expected, $attributeName, $classOrObject, $message = '')
- {
- self::assertInstanceOf(
- $expected,
- self::readAttribute($classOrObject, $attributeName),
- $message
- );
- }
-
- /**
- * Asserts that a variable is not of a given type.
- *
- * @param string $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertNotInstanceOf($expected, $actual, $message = '')
- {
- if (!(is_string($expected) && (class_exists($expected) || interface_exists($expected)))) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'class or interface name');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_IsInstanceOf($expected)
- );
-
- self::assertThat($actual, $constraint, $message);
- }
-
- /**
- * Asserts that an attribute is of a given type.
- *
- * @param string $expected
- * @param string $attributeName
- * @param mixed $classOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertAttributeNotInstanceOf($expected, $attributeName, $classOrObject, $message = '')
- {
- self::assertNotInstanceOf(
- $expected,
- self::readAttribute($classOrObject, $attributeName),
- $message
- );
- }
-
- /**
- * Asserts that a variable is of a given type.
- *
- * @param string $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertInternalType($expected, $actual, $message = '')
- {
- if (!is_string($expected)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_IsType(
- $expected
- );
-
- self::assertThat($actual, $constraint, $message);
- }
-
- /**
- * Asserts that an attribute is of a given type.
- *
- * @param string $expected
- * @param string $attributeName
- * @param mixed $classOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertAttributeInternalType($expected, $attributeName, $classOrObject, $message = '')
- {
- self::assertInternalType(
- $expected,
- self::readAttribute($classOrObject, $attributeName),
- $message
- );
- }
-
- /**
- * Asserts that a variable is not of a given type.
- *
- * @param string $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertNotInternalType($expected, $actual, $message = '')
- {
- if (!is_string($expected)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_IsType($expected)
- );
-
- self::assertThat($actual, $constraint, $message);
- }
-
- /**
- * Asserts that an attribute is of a given type.
- *
- * @param string $expected
- * @param string $attributeName
- * @param mixed $classOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertAttributeNotInternalType($expected, $attributeName, $classOrObject, $message = '')
- {
- self::assertNotInternalType(
- $expected,
- self::readAttribute($classOrObject, $attributeName),
- $message
- );
- }
-
- /**
- * Asserts that a string matches a given regular expression.
- *
- * @param string $pattern
- * @param string $string
- * @param string $message
- */
- public static function assertRegExp($pattern, $string, $message = '')
- {
- if (!is_string($pattern)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($string)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_PCREMatch($pattern);
-
- self::assertThat($string, $constraint, $message);
- }
-
- /**
- * Asserts that a string does not match a given regular expression.
- *
- * @param string $pattern
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 2.1.0
- */
- public static function assertNotRegExp($pattern, $string, $message = '')
- {
- if (!is_string($pattern)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($string)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_PCREMatch($pattern)
- );
-
- self::assertThat($string, $constraint, $message);
- }
-
- /**
- * Assert that the size of two arrays (or `Countable` or `Traversable` objects)
- * is the same.
- *
- * @param array|Countable|Traversable $expected
- * @param array|Countable|Traversable $actual
- * @param string $message
- */
- public static function assertSameSize($expected, $actual, $message = '')
- {
- if (!$expected instanceof Countable &&
- !$expected instanceof Traversable &&
- !is_array($expected)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'countable or traversable');
- }
-
- if (!$actual instanceof Countable &&
- !$actual instanceof Traversable &&
- !is_array($actual)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'countable or traversable');
- }
-
- self::assertThat(
- $actual,
- new PHPUnit_Framework_Constraint_SameSize($expected),
- $message
- );
- }
-
- /**
- * Assert that the size of two arrays (or `Countable` or `Traversable` objects)
- * is not the same.
- *
- * @param array|Countable|Traversable $expected
- * @param array|Countable|Traversable $actual
- * @param string $message
- */
- public static function assertNotSameSize($expected, $actual, $message = '')
- {
- if (!$expected instanceof Countable &&
- !$expected instanceof Traversable &&
- !is_array($expected)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'countable or traversable');
- }
-
- if (!$actual instanceof Countable &&
- !$actual instanceof Traversable &&
- !is_array($actual)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'countable or traversable');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_SameSize($expected)
- );
-
- self::assertThat($actual, $constraint, $message);
- }
-
- /**
- * Asserts that a string matches a given format string.
- *
- * @param string $format
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertStringMatchesFormat($format, $string, $message = '')
- {
- if (!is_string($format)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($string)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_StringMatches($format);
-
- self::assertThat($string, $constraint, $message);
- }
-
- /**
- * Asserts that a string does not match a given format string.
- *
- * @param string $format
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertStringNotMatchesFormat($format, $string, $message = '')
- {
- if (!is_string($format)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($string)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_StringMatches($format)
- );
-
- self::assertThat($string, $constraint, $message);
- }
-
- /**
- * Asserts that a string matches a given format file.
- *
- * @param string $formatFile
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertStringMatchesFormatFile($formatFile, $string, $message = '')
- {
- self::assertFileExists($formatFile, $message);
-
- if (!is_string($string)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_StringMatches(
- file_get_contents($formatFile)
- );
-
- self::assertThat($string, $constraint, $message);
- }
-
- /**
- * Asserts that a string does not match a given format string.
- *
- * @param string $formatFile
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
- public static function assertStringNotMatchesFormatFile($formatFile, $string, $message = '')
- {
- self::assertFileExists($formatFile, $message);
-
- if (!is_string($string)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_StringMatches(
- file_get_contents($formatFile)
- )
- );
-
- self::assertThat($string, $constraint, $message);
- }
-
- /**
- * Asserts that a string starts with a given prefix.
- *
- * @param string $prefix
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.4.0
- */
- public static function assertStringStartsWith($prefix, $string, $message = '')
- {
- if (!is_string($prefix)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($string)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_StringStartsWith(
- $prefix
- );
-
- self::assertThat($string, $constraint, $message);
- }
-
- /**
- * Asserts that a string starts not with a given prefix.
- *
- * @param string $prefix
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.4.0
- */
- public static function assertStringStartsNotWith($prefix, $string, $message = '')
- {
- if (!is_string($prefix)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($string)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_StringStartsWith($prefix)
- );
-
- self::assertThat($string, $constraint, $message);
- }
-
- /**
- * Asserts that a string ends with a given suffix.
- *
- * @param string $suffix
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.4.0
- */
- public static function assertStringEndsWith($suffix, $string, $message = '')
- {
- if (!is_string($suffix)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($string)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_StringEndsWith($suffix);
-
- self::assertThat($string, $constraint, $message);
- }
-
- /**
- * Asserts that a string ends not with a given suffix.
- *
- * @param string $suffix
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.4.0
- */
- public static function assertStringEndsNotWith($suffix, $string, $message = '')
- {
- if (!is_string($suffix)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!is_string($string)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- $constraint = new PHPUnit_Framework_Constraint_Not(
- new PHPUnit_Framework_Constraint_StringEndsWith($suffix)
- );
-
- self::assertThat($string, $constraint, $message);
- }
-
- /**
- * Asserts that two XML files are equal.
- *
- * @param string $expectedFile
- * @param string $actualFile
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = '')
- {
- $expected = PHPUnit_Util_XML::loadFile($expectedFile);
- $actual = PHPUnit_Util_XML::loadFile($actualFile);
-
- self::assertEquals($expected, $actual, $message);
- }
-
- /**
- * Asserts that two XML files are not equal.
- *
- * @param string $expectedFile
- * @param string $actualFile
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message = '')
- {
- $expected = PHPUnit_Util_XML::loadFile($expectedFile);
- $actual = PHPUnit_Util_XML::loadFile($actualFile);
-
- self::assertNotEquals($expected, $actual, $message);
- }
-
- /**
- * Asserts that two XML documents are equal.
- *
- * @param string $expectedFile
- * @param string $actualXml
- * @param string $message
- *
- * @since Method available since Release 3.3.0
- */
- public static function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = '')
- {
- $expected = PHPUnit_Util_XML::loadFile($expectedFile);
- $actual = PHPUnit_Util_XML::load($actualXml);
-
- self::assertEquals($expected, $actual, $message);
- }
-
- /**
- * Asserts that two XML documents are not equal.
- *
- * @param string $expectedFile
- * @param string $actualXml
- * @param string $message
- *
- * @since Method available since Release 3.3.0
- */
- public static function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = '')
- {
- $expected = PHPUnit_Util_XML::loadFile($expectedFile);
- $actual = PHPUnit_Util_XML::load($actualXml);
-
- self::assertNotEquals($expected, $actual, $message);
- }
-
- /**
- * Asserts that two XML documents are equal.
- *
- * @param string $expectedXml
- * @param string $actualXml
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message = '')
- {
- $expected = PHPUnit_Util_XML::load($expectedXml);
- $actual = PHPUnit_Util_XML::load($actualXml);
-
- self::assertEquals($expected, $actual, $message);
- }
-
- /**
- * Asserts that two XML documents are not equal.
- *
- * @param string $expectedXml
- * @param string $actualXml
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
- public static function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = '')
- {
- $expected = PHPUnit_Util_XML::load($expectedXml);
- $actual = PHPUnit_Util_XML::load($actualXml);
-
- self::assertNotEquals($expected, $actual, $message);
- }
-
- /**
- * Asserts that a hierarchy of DOMElements matches.
- *
- * @param DOMElement $expectedElement
- * @param DOMElement $actualElement
- * @param bool $checkAttributes
- * @param string $message
- *
- * @since Method available since Release 3.3.0
- */
- public static function assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actualElement, $checkAttributes = false, $message = '')
- {
- $tmp = new DOMDocument;
- $expectedElement = $tmp->importNode($expectedElement, true);
-
- $tmp = new DOMDocument;
- $actualElement = $tmp->importNode($actualElement, true);
-
- unset($tmp);
-
- self::assertEquals(
- $expectedElement->tagName,
- $actualElement->tagName,
- $message
- );
-
- if ($checkAttributes) {
- self::assertEquals(
- $expectedElement->attributes->length,
- $actualElement->attributes->length,
- sprintf(
- '%s%sNumber of attributes on node "%s" does not match',
- $message,
- !empty($message) ? "\n" : '',
- $expectedElement->tagName
- )
- );
-
- for ($i = 0; $i < $expectedElement->attributes->length; $i++) {
- $expectedAttribute = $expectedElement->attributes->item($i);
- $actualAttribute = $actualElement->attributes->getNamedItem(
- $expectedAttribute->name
- );
-
- if (!$actualAttribute) {
- self::fail(
- sprintf(
- '%s%sCould not find attribute "%s" on node "%s"',
- $message,
- !empty($message) ? "\n" : '',
- $expectedAttribute->name,
- $expectedElement->tagName
- )
- );
- }
- }
- }
-
- PHPUnit_Util_XML::removeCharacterDataNodes($expectedElement);
- PHPUnit_Util_XML::removeCharacterDataNodes($actualElement);
-
- self::assertEquals(
- $expectedElement->childNodes->length,
- $actualElement->childNodes->length,
- sprintf(
- '%s%sNumber of child nodes of "%s" differs',
- $message,
- !empty($message) ? "\n" : '',
- $expectedElement->tagName
- )
- );
-
- for ($i = 0; $i < $expectedElement->childNodes->length; $i++) {
- self::assertEqualXMLStructure(
- $expectedElement->childNodes->item($i),
- $actualElement->childNodes->item($i),
- $checkAttributes,
- $message
- );
- }
- }
-
- /**
- * Assert the presence, absence, or count of elements in a document matching
- * the CSS $selector, regardless of the contents of those elements.
- *
- * The first argument, $selector, is the CSS selector used to match
- * the elements in the $actual document.
- *
- * The second argument, $count, can be either boolean or numeric.
- * When boolean, it asserts for presence of elements matching the selector
- * (true) or absence of elements (false).
- * When numeric, it asserts the count of elements.
- *
- * assertSelectCount("#binder", true, $xml); // any?
- * assertSelectCount(".binder", 3, $xml); // exactly 3?
- *
- * @param array $selector
- * @param int|bool|array $count
- * @param mixed $actual
- * @param string $message
- * @param bool $isHtml
- *
- * @since Method available since Release 3.3.0
- * @deprecated
- * @codeCoverageIgnore
- */
- public static function assertSelectCount($selector, $count, $actual, $message = '', $isHtml = true)
- {
- trigger_error(__METHOD__ . ' is deprecated', E_USER_DEPRECATED);
-
- self::assertSelectEquals(
- $selector,
- true,
- $count,
- $actual,
- $message,
- $isHtml
- );
- }
-
- /**
- * assertSelectRegExp("#binder .name", "/Mike|Derek/", true, $xml); // any?
- * assertSelectRegExp("#binder .name", "/Mike|Derek/", 3, $xml); // 3?
- *
- * @param array $selector
- * @param string $pattern
- * @param int|bool|array $count
- * @param mixed $actual
- * @param string $message
- * @param bool $isHtml
- *
- * @since Method available since Release 3.3.0
- * @deprecated
- * @codeCoverageIgnore
- */
- public static function assertSelectRegExp($selector, $pattern, $count, $actual, $message = '', $isHtml = true)
- {
- trigger_error(__METHOD__ . ' is deprecated', E_USER_DEPRECATED);
-
- self::assertSelectEquals(
- $selector,
- "regexp:$pattern",
- $count,
- $actual,
- $message,
- $isHtml
- );
- }
-
- /**
- * assertSelectEquals("#binder .name", "Chuck", true, $xml); // any?
- * assertSelectEquals("#binder .name", "Chuck", false, $xml); // none?
- *
- * @param array $selector
- * @param string $content
- * @param int|bool|array $count
- * @param mixed $actual
- * @param string $message
- * @param bool $isHtml
- *
- * @since Method available since Release 3.3.0
- * @deprecated
- * @codeCoverageIgnore
- */
- public static function assertSelectEquals($selector, $content, $count, $actual, $message = '', $isHtml = true)
- {
- trigger_error(__METHOD__ . ' is deprecated', E_USER_DEPRECATED);
-
- $tags = PHPUnit_Util_XML::cssSelect(
- $selector,
- $content,
- $actual,
- $isHtml
- );
-
- // assert specific number of elements
- if (is_numeric($count)) {
- $counted = $tags ? count($tags) : 0;
- self::assertEquals($count, $counted, $message);
- } // assert any elements exist if true, assert no elements exist if false
- elseif (is_bool($count)) {
- $any = count($tags) > 0 && $tags[0] instanceof DOMNode;
-
- if ($count) {
- self::assertTrue($any, $message);
- } else {
- self::assertFalse($any, $message);
- }
- } // check for range number of elements
- elseif (is_array($count) &&
- (isset($count['>']) || isset($count['<']) ||
- isset($count['>=']) || isset($count['<=']))) {
- $counted = $tags ? count($tags) : 0;
-
- if (isset($count['>'])) {
- self::assertTrue($counted > $count['>'], $message);
- }
-
- if (isset($count['>='])) {
- self::assertTrue($counted >= $count['>='], $message);
- }
-
- if (isset($count['<'])) {
- self::assertTrue($counted < $count['<'], $message);
- }
-
- if (isset($count['<='])) {
- self::assertTrue($counted <= $count['<='], $message);
- }
- } else {
- throw new PHPUnit_Framework_Exception;
- }
- }
-
- /**
- * Evaluate an HTML or XML string and assert its structure and/or contents.
- *
- * The first argument ($matcher) is an associative array that specifies the
- * match criteria for the assertion:
- *
- * - `id` : the node with the given id attribute must match the
- * corresponding value.
- * - `tag` : the node type must match the corresponding value.
- * - `attributes` : a hash. The node's attributes must match the
- * corresponding values in the hash.
- * - `content` : The text content must match the given value.
- * - `parent` : a hash. The node's parent must match the
- * corresponding hash.
- * - `child` : a hash. At least one of the node's immediate children
- * must meet the criteria described by the hash.
- * - `ancestor` : a hash. At least one of the node's ancestors must
- * meet the criteria described by the hash.
- * - `descendant` : a hash. At least one of the node's descendants must
- * meet the criteria described by the hash.
- * - `children` : a hash, for counting children of a node.
- * Accepts the keys:
- * - `count` : a number which must equal the number of children
- * that match
- * - `less_than` : the number of matching children must be greater
- * than this number
- * - `greater_than` : the number of matching children must be less than
- * this number
- * - `only` : another hash consisting of the keys to use to match
- * on the children, and only matching children will be
- * counted
- *
- * <code>
- * // Matcher that asserts that there is an element with an id="my_id".
- * $matcher = array('id' => 'my_id');
- *
- * // Matcher that asserts that there is a "span" tag.
- * $matcher = array('tag' => 'span');
- *
- * // Matcher that asserts that there is a "span" tag with the content
- * // "Hello World".
- * $matcher = array('tag' => 'span', 'content' => 'Hello World');
- *
- * // Matcher that asserts that there is a "span" tag with content matching
- * // the regular expression pattern.
- * $matcher = array('tag' => 'span', 'content' => 'regexp:/Try P(HP|ython)/');
- *
- * // Matcher that asserts that there is a "span" with an "list" class
- * // attribute.
- * $matcher = array(
- * 'tag' => 'span',
- * 'attributes' => array('class' => 'list')
- * );
- *
- * // Matcher that asserts that there is a "span" inside of a "div".
- * $matcher = array(
- * 'tag' => 'span',
- * 'parent' => array('tag' => 'div')
- * );
- *
- * // Matcher that asserts that there is a "span" somewhere inside a
- * // "table".
- * $matcher = array(
- * 'tag' => 'span',
- * 'ancestor' => array('tag' => 'table')
- * );
- *
- * // Matcher that asserts that there is a "span" with at least one "em"
- * // child.
- * $matcher = array(
- * 'tag' => 'span',
- * 'child' => array('tag' => 'em')
- * );
- *
- * // Matcher that asserts that there is a "span" containing a (possibly
- * // nested) "strong" tag.
- * $matcher = array(
- * 'tag' => 'span',
- * 'descendant' => array('tag' => 'strong')
- * );
- *
- * // Matcher that asserts that there is a "span" containing 5-10 "em" tags
- * // as immediate children.
- * $matcher = array(
- * 'tag' => 'span',
- * 'children' => array(
- * 'less_than' => 11,
- * 'greater_than' => 4,
- * 'only' => array('tag' => 'em')
- * )
- * );
- *
- * // Matcher that asserts that there is a "div", with an "ul" ancestor and
- * // a "li" parent (with class="enum"), and containing a "span" descendant
- * // that contains an element with id="my_test" and the text "Hello World".
- * $matcher = array(
- * 'tag' => 'div',
- * 'ancestor' => array('tag' => 'ul'),
- * 'parent' => array(
- * 'tag' => 'li',
- * 'attributes' => array('class' => 'enum')
- * ),
- * 'descendant' => array(
- * 'tag' => 'span',
- * 'child' => array(
- * 'id' => 'my_test',
- * 'content' => 'Hello World'
- * )
- * )
- * );
- *
- * // Use assertTag() to apply a $matcher to a piece of $html.
- * $this->assertTag($matcher, $html);
- *
- * // Use assertTag() to apply a $matcher to a piece of $xml.
- * $this->assertTag($matcher, $xml, '', false);
- * </code>
- *
- * The second argument ($actual) is a string containing either HTML or
- * XML text to be tested.
- *
- * The third argument ($message) is an optional message that will be
- * used if the assertion fails.
- *
- * The fourth argument ($html) is an optional flag specifying whether
- * to load the $actual string into a DOMDocument using the HTML or
- * XML load strategy. It is true by default, which assumes the HTML
- * load strategy. In many cases, this will be acceptable for XML as well.
- *
- * @param array $matcher
- * @param string $actual
- * @param string $message
- * @param bool $isHtml
- *
- * @since Method available since Release 3.3.0
- * @deprecated
- * @codeCoverageIgnore
- */
- public static function assertTag($matcher, $actual, $message = '', $isHtml = true)
- {
- trigger_error(__METHOD__ . ' is deprecated', E_USER_DEPRECATED);
-
- $dom = PHPUnit_Util_XML::load($actual, $isHtml);
- $tags = PHPUnit_Util_XML::findNodes($dom, $matcher, $isHtml);
- $matched = count($tags) > 0 && $tags[0] instanceof DOMNode;
-
- self::assertTrue($matched, $message);
- }
-
- /**
- * This assertion is the exact opposite of assertTag().
- *
- * Rather than asserting that $matcher results in a match, it asserts that
- * $matcher does not match.
- *
- * @param array $matcher
- * @param string $actual
- * @param string $message
- * @param bool $isHtml
- *
- * @since Method available since Release 3.3.0
- * @deprecated
- * @codeCoverageIgnore
- */
- public static function assertNotTag($matcher, $actual, $message = '', $isHtml = true)
- {
- trigger_error(__METHOD__ . ' is deprecated', E_USER_DEPRECATED);
-
- $dom = PHPUnit_Util_XML::load($actual, $isHtml);
- $tags = PHPUnit_Util_XML::findNodes($dom, $matcher, $isHtml);
- $matched = count($tags) > 0 && $tags[0] instanceof DOMNode;
-
- self::assertFalse($matched, $message);
- }
-
- /**
- * Evaluates a PHPUnit_Framework_Constraint matcher object.
- *
- * @param mixed $value
- * @param PHPUnit_Framework_Constraint $constraint
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
- public static function assertThat($value, PHPUnit_Framework_Constraint $constraint, $message = '')
- {
- self::$count += count($constraint);
-
- $constraint->evaluate($value, $message);
- }
-
- /**
- * Asserts that a string is a valid JSON string.
- *
- * @param string $actualJson
- * @param string $message
- *
- * @since Method available since Release 3.7.20
- */
- public static function assertJson($actualJson, $message = '')
- {
- if (!is_string($actualJson)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- self::assertThat($actualJson, self::isJson(), $message);
- }
-
- /**
- * Asserts that two given JSON encoded objects or arrays are equal.
- *
- * @param string $expectedJson
- * @param string $actualJson
- * @param string $message
- */
- public static function assertJsonStringEqualsJsonString($expectedJson, $actualJson, $message = '')
- {
- self::assertJson($expectedJson, $message);
- self::assertJson($actualJson, $message);
-
- $expected = json_decode($expectedJson);
- $actual = json_decode($actualJson);
-
- self::assertEquals($expected, $actual, $message);
- }
-
- /**
- * Asserts that two given JSON encoded objects or arrays are not equal.
- *
- * @param string $expectedJson
- * @param string $actualJson
- * @param string $message
- */
- public static function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = '')
- {
- self::assertJson($expectedJson, $message);
- self::assertJson($actualJson, $message);
-
- $expected = json_decode($expectedJson);
- $actual = json_decode($actualJson);
-
- self::assertNotEquals($expected, $actual, $message);
- }
-
- /**
- * Asserts that the generated JSON encoded object and the content of the given file are equal.
- *
- * @param string $expectedFile
- * @param string $actualJson
- * @param string $message
- */
- public static function assertJsonStringEqualsJsonFile($expectedFile, $actualJson, $message = '')
- {
- self::assertFileExists($expectedFile, $message);
- $expectedJson = file_get_contents($expectedFile);
-
- self::assertJson($expectedJson, $message);
- self::assertJson($actualJson, $message);
-
- // call constraint
- $constraint = new PHPUnit_Framework_Constraint_JsonMatches(
- $expectedJson
- );
-
- self::assertThat($actualJson, $constraint, $message);
- }
-
- /**
- * Asserts that the generated JSON encoded object and the content of the given file are not equal.
- *
- * @param string $expectedFile
- * @param string $actualJson
- * @param string $message
- */
- public static function assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = '')
- {
- self::assertFileExists($expectedFile, $message);
- $expectedJson = file_get_contents($expectedFile);
-
- self::assertJson($expectedJson, $message);
- self::assertJson($actualJson, $message);
-
- // call constraint
- $constraint = new PHPUnit_Framework_Constraint_JsonMatches(
- $expectedJson
- );
-
- self::assertThat($actualJson, new PHPUnit_Framework_Constraint_Not($constraint), $message);
- }
-
- /**
- * Asserts that two JSON files are not equal.
- *
- * @param string $expectedFile
- * @param string $actualFile
- * @param string $message
- */
- public static function assertJsonFileNotEqualsJsonFile($expectedFile, $actualFile, $message = '')
- {
- self::assertFileExists($expectedFile, $message);
- self::assertFileExists($actualFile, $message);
-
- $actualJson = file_get_contents($actualFile);
- $expectedJson = file_get_contents($expectedFile);
-
- self::assertJson($expectedJson, $message);
- self::assertJson($actualJson, $message);
-
- // call constraint
- $constraintExpected = new PHPUnit_Framework_Constraint_JsonMatches(
- $expectedJson
- );
-
- $constraintActual = new PHPUnit_Framework_Constraint_JsonMatches($actualJson);
-
- self::assertThat($expectedJson, new PHPUnit_Framework_Constraint_Not($constraintActual), $message);
- self::assertThat($actualJson, new PHPUnit_Framework_Constraint_Not($constraintExpected), $message);
- }
-
- /**
- * Asserts that two JSON files are equal.
- *
- * @param string $expectedFile
- * @param string $actualFile
- * @param string $message
- */
- public static function assertJsonFileEqualsJsonFile($expectedFile, $actualFile, $message = '')
- {
- self::assertFileExists($expectedFile, $message);
- self::assertFileExists($actualFile, $message);
-
- $actualJson = file_get_contents($actualFile);
- $expectedJson = file_get_contents($expectedFile);
-
- self::assertJson($expectedJson, $message);
- self::assertJson($actualJson, $message);
-
- // call constraint
- $constraintExpected = new PHPUnit_Framework_Constraint_JsonMatches(
- $expectedJson
- );
-
- $constraintActual = new PHPUnit_Framework_Constraint_JsonMatches($actualJson);
-
- self::assertThat($expectedJson, $constraintActual, $message);
- self::assertThat($actualJson, $constraintExpected, $message);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_And matcher object.
- *
- * @return PHPUnit_Framework_Constraint_And
- *
- * @since Method available since Release 3.0.0
- */
- public static function logicalAnd()
- {
- $constraints = func_get_args();
-
- $constraint = new PHPUnit_Framework_Constraint_And;
- $constraint->setConstraints($constraints);
-
- return $constraint;
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_Or matcher object.
- *
- * @return PHPUnit_Framework_Constraint_Or
- *
- * @since Method available since Release 3.0.0
- */
- public static function logicalOr()
- {
- $constraints = func_get_args();
-
- $constraint = new PHPUnit_Framework_Constraint_Or;
- $constraint->setConstraints($constraints);
-
- return $constraint;
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_Not matcher object.
- *
- * @param PHPUnit_Framework_Constraint $constraint
- *
- * @return PHPUnit_Framework_Constraint_Not
- *
- * @since Method available since Release 3.0.0
- */
- public static function logicalNot(PHPUnit_Framework_Constraint $constraint)
- {
- return new PHPUnit_Framework_Constraint_Not($constraint);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_Xor matcher object.
- *
- * @return PHPUnit_Framework_Constraint_Xor
- *
- * @since Method available since Release 3.0.0
- */
- public static function logicalXor()
- {
- $constraints = func_get_args();
-
- $constraint = new PHPUnit_Framework_Constraint_Xor;
- $constraint->setConstraints($constraints);
-
- return $constraint;
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsAnything
- *
- * @since Method available since Release 3.0.0
- */
- public static function anything()
- {
- return new PHPUnit_Framework_Constraint_IsAnything;
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsTrue
- *
- * @since Method available since Release 3.3.0
- */
- public static function isTrue()
- {
- return new PHPUnit_Framework_Constraint_IsTrue;
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_Callback matcher object.
- *
- * @param callable $callback
- *
- * @return PHPUnit_Framework_Constraint_Callback
- */
- public static function callback($callback)
- {
- return new PHPUnit_Framework_Constraint_Callback($callback);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsFalse
- *
- * @since Method available since Release 3.3.0
- */
- public static function isFalse()
- {
- return new PHPUnit_Framework_Constraint_IsFalse;
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsJson matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsJson
- *
- * @since Method available since Release 3.7.20
- */
- public static function isJson()
- {
- return new PHPUnit_Framework_Constraint_IsJson;
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsNull matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsNull
- *
- * @since Method available since Release 3.3.0
- */
- public static function isNull()
- {
- return new PHPUnit_Framework_Constraint_IsNull;
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
- *
- * @param PHPUnit_Framework_Constraint $constraint
- * @param string $attributeName
- *
- * @return PHPUnit_Framework_Constraint_Attribute
- *
- * @since Method available since Release 3.1.0
- */
- public static function attribute(PHPUnit_Framework_Constraint $constraint, $attributeName)
- {
- return new PHPUnit_Framework_Constraint_Attribute(
- $constraint,
- $attributeName
- );
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_TraversableContains matcher
- * object.
- *
- * @param mixed $value
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @return PHPUnit_Framework_Constraint_TraversableContains
- *
- * @since Method available since Release 3.0.0
- */
- public static function contains($value, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
- {
- return new PHPUnit_Framework_Constraint_TraversableContains($value, $checkForObjectIdentity, $checkForNonObjectIdentity);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher
- * object.
- *
- * @param string $type
- *
- * @return PHPUnit_Framework_Constraint_TraversableContainsOnly
- *
- * @since Method available since Release 3.1.4
- */
- public static function containsOnly($type)
- {
- return new PHPUnit_Framework_Constraint_TraversableContainsOnly($type);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher
- * object.
- *
- * @param string $classname
- *
- * @return PHPUnit_Framework_Constraint_TraversableContainsOnly
- */
- public static function containsOnlyInstancesOf($classname)
- {
- return new PHPUnit_Framework_Constraint_TraversableContainsOnly($classname, false);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
- *
- * @param mixed $key
- *
- * @return PHPUnit_Framework_Constraint_ArrayHasKey
- *
- * @since Method available since Release 3.0.0
- */
- public static function arrayHasKey($key)
- {
- return new PHPUnit_Framework_Constraint_ArrayHasKey($key);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.
- *
- * @param mixed $value
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @return PHPUnit_Framework_Constraint_IsEqual
- *
- * @since Method available since Release 3.0.0
- */
- public static function equalTo($value, $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
- {
- return new PHPUnit_Framework_Constraint_IsEqual(
- $value,
- $delta,
- $maxDepth,
- $canonicalize,
- $ignoreCase
- );
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsEqual matcher object
- * that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher
- * object.
- *
- * @param string $attributeName
- * @param mixed $value
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @return PHPUnit_Framework_Constraint_Attribute
- *
- * @since Method available since Release 3.1.0
- */
- public static function attributeEqualTo($attributeName, $value, $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
- {
- return self::attribute(
- self::equalTo(
- $value,
- $delta,
- $maxDepth,
- $canonicalize,
- $ignoreCase
- ),
- $attributeName
- );
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsEmpty
- *
- * @since Method available since Release 3.5.0
- */
- public static function isEmpty()
- {
- return new PHPUnit_Framework_Constraint_IsEmpty;
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_FileExists matcher object.
- *
- * @return PHPUnit_Framework_Constraint_FileExists
- *
- * @since Method available since Release 3.0.0
- */
- public static function fileExists()
- {
- return new PHPUnit_Framework_Constraint_FileExists;
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.
- *
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Constraint_GreaterThan
- *
- * @since Method available since Release 3.0.0
- */
- public static function greaterThan($value)
- {
- return new PHPUnit_Framework_Constraint_GreaterThan($value);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps
- * a PHPUnit_Framework_Constraint_IsEqual and a
- * PHPUnit_Framework_Constraint_GreaterThan matcher object.
- *
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Constraint_Or
- *
- * @since Method available since Release 3.1.0
- */
- public static function greaterThanOrEqual($value)
- {
- return self::logicalOr(
- new PHPUnit_Framework_Constraint_IsEqual($value),
- new PHPUnit_Framework_Constraint_GreaterThan($value)
- );
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.
- *
- * @param string $attributeName
- *
- * @return PHPUnit_Framework_Constraint_ClassHasAttribute
- *
- * @since Method available since Release 3.1.0
- */
- public static function classHasAttribute($attributeName)
- {
- return new PHPUnit_Framework_Constraint_ClassHasAttribute(
- $attributeName
- );
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher
- * object.
- *
- * @param string $attributeName
- *
- * @return PHPUnit_Framework_Constraint_ClassHasStaticAttribute
- *
- * @since Method available since Release 3.1.0
- */
- public static function classHasStaticAttribute($attributeName)
- {
- return new PHPUnit_Framework_Constraint_ClassHasStaticAttribute(
- $attributeName
- );
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.
- *
- * @param string $attributeName
- *
- * @return PHPUnit_Framework_Constraint_ObjectHasAttribute
- *
- * @since Method available since Release 3.0.0
- */
- public static function objectHasAttribute($attributeName)
- {
- return new PHPUnit_Framework_Constraint_ObjectHasAttribute(
- $attributeName
- );
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.
- *
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Constraint_IsIdentical
- *
- * @since Method available since Release 3.0.0
- */
- public static function identicalTo($value)
- {
- return new PHPUnit_Framework_Constraint_IsIdentical($value);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.
- *
- * @param string $className
- *
- * @return PHPUnit_Framework_Constraint_IsInstanceOf
- *
- * @since Method available since Release 3.0.0
- */
- public static function isInstanceOf($className)
- {
- return new PHPUnit_Framework_Constraint_IsInstanceOf($className);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_IsType matcher object.
- *
- * @param string $type
- *
- * @return PHPUnit_Framework_Constraint_IsType
- *
- * @since Method available since Release 3.0.0
- */
- public static function isType($type)
- {
- return new PHPUnit_Framework_Constraint_IsType($type);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_LessThan matcher object.
- *
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Constraint_LessThan
- *
- * @since Method available since Release 3.0.0
- */
- public static function lessThan($value)
- {
- return new PHPUnit_Framework_Constraint_LessThan($value);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps
- * a PHPUnit_Framework_Constraint_IsEqual and a
- * PHPUnit_Framework_Constraint_LessThan matcher object.
- *
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Constraint_Or
- *
- * @since Method available since Release 3.1.0
- */
- public static function lessThanOrEqual($value)
- {
- return self::logicalOr(
- new PHPUnit_Framework_Constraint_IsEqual($value),
- new PHPUnit_Framework_Constraint_LessThan($value)
- );
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
- *
- * @param string $pattern
- *
- * @return PHPUnit_Framework_Constraint_PCREMatch
- *
- * @since Method available since Release 3.0.0
- */
- public static function matchesRegularExpression($pattern)
- {
- return new PHPUnit_Framework_Constraint_PCREMatch($pattern);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.
- *
- * @param string $string
- *
- * @return PHPUnit_Framework_Constraint_StringMatches
- *
- * @since Method available since Release 3.5.0
- */
- public static function matches($string)
- {
- return new PHPUnit_Framework_Constraint_StringMatches($string);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.
- *
- * @param mixed $prefix
- *
- * @return PHPUnit_Framework_Constraint_StringStartsWith
- *
- * @since Method available since Release 3.4.0
- */
- public static function stringStartsWith($prefix)
- {
- return new PHPUnit_Framework_Constraint_StringStartsWith($prefix);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_StringContains matcher object.
- *
- * @param string $string
- * @param bool $case
- *
- * @return PHPUnit_Framework_Constraint_StringContains
- *
- * @since Method available since Release 3.0.0
- */
- public static function stringContains($string, $case = true)
- {
- return new PHPUnit_Framework_Constraint_StringContains($string, $case);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.
- *
- * @param mixed $suffix
- *
- * @return PHPUnit_Framework_Constraint_StringEndsWith
- *
- * @since Method available since Release 3.4.0
- */
- public static function stringEndsWith($suffix)
- {
- return new PHPUnit_Framework_Constraint_StringEndsWith($suffix);
- }
-
- /**
- * Returns a PHPUnit_Framework_Constraint_Count matcher object.
- *
- * @param int $count
- *
- * @return PHPUnit_Framework_Constraint_Count
- */
- public static function countOf($count)
- {
- return new PHPUnit_Framework_Constraint_Count($count);
- }
- /**
- * Fails a test with the given message.
- *
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
- public static function fail($message = '')
- {
- throw new PHPUnit_Framework_AssertionFailedError($message);
- }
-
- /**
- * Returns the value of an attribute of a class or an object.
- * This also works for attributes that are declared protected or private.
- *
- * @param mixed $classOrObject
- * @param string $attributeName
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_Exception
- */
- public static function readAttribute($classOrObject, $attributeName)
- {
- if (!is_string($attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- if (!preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'valid attribute name');
- }
-
- if (is_string($classOrObject)) {
- if (!class_exists($classOrObject)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 1,
- 'class name'
- );
- }
-
- return self::getStaticAttribute(
- $classOrObject,
- $attributeName
- );
- } elseif (is_object($classOrObject)) {
- return self::getObjectAttribute(
- $classOrObject,
- $attributeName
- );
- } else {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 1,
- 'class name or object'
- );
- }
- }
-
- /**
- * Returns the value of a static attribute.
- * This also works for attributes that are declared protected or private.
- *
- * @param string $className
- * @param string $attributeName
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 4.0.0
- */
- public static function getStaticAttribute($className, $attributeName)
- {
- if (!is_string($className)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (!class_exists($className)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'class name');
- }
-
- if (!is_string($attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- if (!preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'valid attribute name');
- }
-
- $class = new ReflectionClass($className);
-
- while ($class) {
- $attributes = $class->getStaticProperties();
-
- if (array_key_exists($attributeName, $attributes)) {
- return $attributes[$attributeName];
- }
-
- $class = $class->getParentClass();
- }
-
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Attribute "%s" not found in class.',
- $attributeName
- )
- );
- }
-
- /**
- * Returns the value of an object's attribute.
- * This also works for attributes that are declared protected or private.
- *
- * @param object $object
- * @param string $attributeName
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 4.0.0
- */
- public static function getObjectAttribute($object, $attributeName)
- {
- if (!is_object($object)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'object');
- }
-
- if (!is_string($attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
- }
-
- if (!preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/', $attributeName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'valid attribute name');
- }
-
- try {
- $attribute = new ReflectionProperty($object, $attributeName);
- } catch (ReflectionException $e) {
- $reflector = new ReflectionObject($object);
-
- while ($reflector = $reflector->getParentClass()) {
- try {
- $attribute = $reflector->getProperty($attributeName);
- break;
- } catch (ReflectionException $e) {
- }
- }
- }
-
- if (isset($attribute)) {
- if (!$attribute || $attribute->isPublic()) {
- return $object->$attributeName;
- }
-
- $attribute->setAccessible(true);
- $value = $attribute->getValue($object);
- $attribute->setAccessible(false);
-
- return $value;
- }
-
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Attribute "%s" not found in object.',
- $attributeName
- )
- );
- }
-
- /**
- * Mark the test as incomplete.
- *
- * @param string $message
- *
- * @throws PHPUnit_Framework_IncompleteTestError
- *
- * @since Method available since Release 3.0.0
- */
- public static function markTestIncomplete($message = '')
- {
- throw new PHPUnit_Framework_IncompleteTestError($message);
- }
-
- /**
- * Mark the test as skipped.
- *
- * @param string $message
- *
- * @throws PHPUnit_Framework_SkippedTestError
- *
- * @since Method available since Release 3.0.0
- */
- public static function markTestSkipped($message = '')
- {
- throw new PHPUnit_Framework_SkippedTestError($message);
- }
-
- /**
- * Return the current assertion count.
- *
- * @return int
- *
- * @since Method available since Release 3.3.3
- */
- public static function getCount()
- {
- return self::$count;
- }
-
- /**
- * Reset the assertion counter.
- *
- * @since Method available since Release 3.3.3
- */
- public static function resetCount()
- {
- self::$count = 0;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Assert/Functions.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Assert/Functions.php
deleted file mode 100644
index db957438..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Assert/Functions.php
+++ /dev/null
@@ -1,2569 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Returns a matcher that matches when the method is executed
- * zero or more times.
- *
- * @return PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount
- *
- * @since Method available since Release 3.0.0
- */
-function any()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::any',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsAnything
- *
- * @since Method available since Release 3.0.0
- */
-function anything()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::anything',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
- *
- * @param mixed $key
- *
- * @return PHPUnit_Framework_Constraint_ArrayHasKey
- *
- * @since Method available since Release 3.0.0
- */
-function arrayHasKey($key)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::arrayHasKey',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an array has a specified key.
- *
- * @param mixed $key
- * @param array|ArrayAccess $array
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
-function assertArrayHasKey($key, $array, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertArrayHasKey',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an array has a specified subset.
- *
- * @param array|ArrayAccess $subset
- * @param array|ArrayAccess $array
- * @param bool $strict Check for object identity
- * @param string $message
- *
- * @since Method available since Release 4.4.0
- */
-function assertArraySubset($subset, $array, $strict = false, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertArraySubset',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an array does not have a specified key.
- *
- * @param mixed $key
- * @param array|ArrayAccess $array
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
-function assertArrayNotHasKey($key, $array, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertArrayNotHasKey',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a haystack that is stored in a static attribute of a class
- * or an attribute of an object contains a needle.
- *
- * @param mixed $needle
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- * @param bool $ignoreCase
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @since Method available since Release 3.0.0
- */
-function assertAttributeContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeContains',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a haystack that is stored in a static attribute of a class
- * or an attribute of an object contains only values of a given type.
- *
- * @param string $type
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param bool $isNativeType
- * @param string $message
- *
- * @since Method available since Release 3.1.4
- */
-function assertAttributeContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = null, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeContainsOnly',
- func_get_args()
- );
-}
-
-/**
- * Asserts the number of elements of an array, Countable or Traversable
- * that is stored in an attribute.
- *
- * @param int $expectedCount
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.6.0
- */
-function assertAttributeCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeCount',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a static attribute of a class or an attribute of an object
- * is empty.
- *
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertAttributeEmpty($haystackAttributeName, $haystackClassOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeEmpty',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable is equal to an attribute of an object.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- */
-function assertAttributeEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeEquals',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an attribute is greater than another value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertAttributeGreaterThan($expected, $actualAttributeName, $actualClassOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeGreaterThan',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an attribute is greater than or equal to another value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an attribute is of a given type.
- *
- * @param string $expected
- * @param string $attributeName
- * @param mixed $classOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertAttributeInstanceOf($expected, $attributeName, $classOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeInstanceOf',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an attribute is of a given type.
- *
- * @param string $expected
- * @param string $attributeName
- * @param mixed $classOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertAttributeInternalType($expected, $attributeName, $classOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeInternalType',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an attribute is smaller than another value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertAttributeLessThan($expected, $actualAttributeName, $actualClassOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeLessThan',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an attribute is smaller than or equal to another value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertAttributeLessThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a haystack that is stored in a static attribute of a class
- * or an attribute of an object does not contain a needle.
- *
- * @param mixed $needle
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- * @param bool $ignoreCase
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @since Method available since Release 3.0.0
- */
-function assertAttributeNotContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeNotContains',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a haystack that is stored in a static attribute of a class
- * or an attribute of an object does not contain only values of a given
- * type.
- *
- * @param string $type
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param bool $isNativeType
- * @param string $message
- *
- * @since Method available since Release 3.1.4
- */
-function assertAttributeNotContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = null, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeNotContainsOnly',
- func_get_args()
- );
-}
-
-/**
- * Asserts the number of elements of an array, Countable or Traversable
- * that is stored in an attribute.
- *
- * @param int $expectedCount
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.6.0
- */
-function assertAttributeNotCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeNotCount',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a static attribute of a class or an attribute of an object
- * is not empty.
- *
- * @param string $haystackAttributeName
- * @param mixed $haystackClassOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertAttributeNotEmpty($haystackAttributeName, $haystackClassOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeNotEmpty',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable is not equal to an attribute of an object.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param string $actualClassOrObject
- * @param string $message
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- */
-function assertAttributeNotEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeNotEquals',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an attribute is of a given type.
- *
- * @param string $expected
- * @param string $attributeName
- * @param mixed $classOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertAttributeNotInstanceOf($expected, $attributeName, $classOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeNotInstanceOf',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an attribute is of a given type.
- *
- * @param string $expected
- * @param string $attributeName
- * @param mixed $classOrObject
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertAttributeNotInternalType($expected, $attributeName, $classOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeNotInternalType',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable and an attribute of an object do not have the
- * same type and value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param object $actualClassOrObject
- * @param string $message
- */
-function assertAttributeNotSame($expected, $actualAttributeName, $actualClassOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeNotSame',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable and an attribute of an object have the same type
- * and value.
- *
- * @param mixed $expected
- * @param string $actualAttributeName
- * @param object $actualClassOrObject
- * @param string $message
- */
-function assertAttributeSame($expected, $actualAttributeName, $actualClassOrObject, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertAttributeSame',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a class has a specified attribute.
- *
- * @param string $attributeName
- * @param string $className
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertClassHasAttribute($attributeName, $className, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertClassHasAttribute',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a class has a specified static attribute.
- *
- * @param string $attributeName
- * @param string $className
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertClassHasStaticAttribute($attributeName, $className, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertClassHasStaticAttribute',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a class does not have a specified attribute.
- *
- * @param string $attributeName
- * @param string $className
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertClassNotHasAttribute($attributeName, $className, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertClassNotHasAttribute',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a class does not have a specified static attribute.
- *
- * @param string $attributeName
- * @param string $className
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertClassNotHasStaticAttribute($attributeName, $className, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a haystack contains a needle.
- *
- * @param mixed $needle
- * @param mixed $haystack
- * @param string $message
- * @param bool $ignoreCase
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @since Method available since Release 2.1.0
- */
-function assertContains($needle, $haystack, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertContains',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a haystack contains only values of a given type.
- *
- * @param string $type
- * @param mixed $haystack
- * @param bool $isNativeType
- * @param string $message
- *
- * @since Method available since Release 3.1.4
- */
-function assertContainsOnly($type, $haystack, $isNativeType = null, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertContainsOnly',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a haystack contains only instances of a given classname
- *
- * @param string $classname
- * @param array|Traversable $haystack
- * @param string $message
- */
-function assertContainsOnlyInstancesOf($classname, $haystack, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf',
- func_get_args()
- );
-}
-
-/**
- * Asserts the number of elements of an array, Countable or Traversable.
- *
- * @param int $expectedCount
- * @param mixed $haystack
- * @param string $message
- */
-function assertCount($expectedCount, $haystack, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertCount',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable is empty.
- *
- * @param mixed $actual
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
-function assertEmpty($actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertEmpty',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a hierarchy of DOMElements matches.
- *
- * @param DOMElement $expectedElement
- * @param DOMElement $actualElement
- * @param bool $checkAttributes
- * @param string $message
- *
- * @since Method available since Release 3.3.0
- */
-function assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actualElement, $checkAttributes = false, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertEqualXMLStructure',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two variables are equal.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- */
-function assertEquals($expected, $actual, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertEquals',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a condition is not true.
- *
- * @param bool $condition
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
-function assertNotTrue($condition, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotTrue',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a condition is false.
- *
- * @param bool $condition
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
-function assertFalse($condition, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertFalse',
- func_get_args()
- );
-}
-
-/**
- * Asserts that the contents of one file is equal to the contents of another
- * file.
- *
- * @param string $expected
- * @param string $actual
- * @param string $message
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @since Method available since Release 3.2.14
- */
-function assertFileEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertFileEquals',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a file exists.
- *
- * @param string $filename
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
-function assertFileExists($filename, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertFileExists',
- func_get_args()
- );
-}
-
-/**
- * Asserts that the contents of one file is not equal to the contents of
- * another file.
- *
- * @param string $expected
- * @param string $actual
- * @param string $message
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @since Method available since Release 3.2.14
- */
-function assertFileNotEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertFileNotEquals',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a file does not exist.
- *
- * @param string $filename
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
-function assertFileNotExists($filename, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertFileNotExists',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a value is greater than another value.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertGreaterThan($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertGreaterThan',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a value is greater than or equal to another value.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertGreaterThanOrEqual($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertGreaterThanOrEqual',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable is of a given type.
- *
- * @param string $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertInstanceOf($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertInstanceOf',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable is of a given type.
- *
- * @param string $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertInternalType($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertInternalType',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string is a valid JSON string.
- *
- * @param string $actualJson
- * @param string $message
- *
- * @since Method available since Release 3.7.20
- */
-function assertJson($actualJson, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertJson',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two JSON files are equal.
- *
- * @param string $expectedFile
- * @param string $actualFile
- * @param string $message
- */
-function assertJsonFileEqualsJsonFile($expectedFile, $actualFile, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertJsonFileEqualsJsonFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two JSON files are not equal.
- *
- * @param string $expectedFile
- * @param string $actualFile
- * @param string $message
- */
-function assertJsonFileNotEqualsJsonFile($expectedFile, $actualFile, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertJsonFileNotEqualsJsonFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that the generated JSON encoded object and the content of the given file are equal.
- *
- * @param string $expectedFile
- * @param string $actualJson
- * @param string $message
- */
-function assertJsonStringEqualsJsonFile($expectedFile, $actualJson, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two given JSON encoded objects or arrays are equal.
- *
- * @param string $expectedJson
- * @param string $actualJson
- * @param string $message
- */
-function assertJsonStringEqualsJsonString($expectedJson, $actualJson, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString',
- func_get_args()
- );
-}
-
-/**
- * Asserts that the generated JSON encoded object and the content of the given file are not equal.
- *
- * @param string $expectedFile
- * @param string $actualJson
- * @param string $message
- */
-function assertJsonStringNotEqualsJsonFile($expectedFile, $actualJson, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two given JSON encoded objects or arrays are not equal.
- *
- * @param string $expectedJson
- * @param string $actualJson
- * @param string $message
- */
-function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a value is smaller than another value.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertLessThan($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertLessThan',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a value is smaller than or equal to another value.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertLessThanOrEqual($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertLessThanOrEqual',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a haystack does not contain a needle.
- *
- * @param mixed $needle
- * @param mixed $haystack
- * @param string $message
- * @param bool $ignoreCase
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @since Method available since Release 2.1.0
- */
-function assertNotContains($needle, $haystack, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotContains',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a haystack does not contain only values of a given type.
- *
- * @param string $type
- * @param mixed $haystack
- * @param bool $isNativeType
- * @param string $message
- *
- * @since Method available since Release 3.1.4
- */
-function assertNotContainsOnly($type, $haystack, $isNativeType = null, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotContainsOnly',
- func_get_args()
- );
-}
-
-/**
- * Asserts the number of elements of an array, Countable or Traversable.
- *
- * @param int $expectedCount
- * @param mixed $haystack
- * @param string $message
- */
-function assertNotCount($expectedCount, $haystack, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotCount',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable is not empty.
- *
- * @param mixed $actual
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
-function assertNotEmpty($actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotEmpty',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two variables are not equal.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @since Method available since Release 2.3.0
- */
-function assertNotEquals($expected, $actual, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotEquals',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable is not of a given type.
- *
- * @param string $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertNotInstanceOf($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotInstanceOf',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable is not of a given type.
- *
- * @param string $expected
- * @param mixed $actual
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertNotInternalType($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotInternalType',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a condition is not false.
- *
- * @param bool $condition
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
-function assertNotFalse($condition, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotFalse',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable is not null.
- *
- * @param mixed $actual
- * @param string $message
- */
-function assertNotNull($actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotNull',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string does not match a given regular expression.
- *
- * @param string $pattern
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 2.1.0
- */
-function assertNotRegExp($pattern, $string, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotRegExp',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two variables do not have the same type and value.
- * Used on objects, it asserts that two variables do not reference
- * the same object.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- */
-function assertNotSame($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotSame',
- func_get_args()
- );
-}
-
-/**
- * Assert that the size of two arrays (or `Countable` or `Traversable` objects)
- * is not the same.
- *
- * @param array|Countable|Traversable $expected
- * @param array|Countable|Traversable $actual
- * @param string $message
- */
-function assertNotSameSize($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotSameSize',
- func_get_args()
- );
-}
-
-/**
- * This assertion is the exact opposite of assertTag().
- *
- * Rather than asserting that $matcher results in a match, it asserts that
- * $matcher does not match.
- *
- * @param array $matcher
- * @param string $actual
- * @param string $message
- * @param bool $isHtml
- *
- * @since Method available since Release 3.3.0
- */
-function assertNotTag($matcher, $actual, $message = '', $isHtml = true)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNotTag',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a variable is null.
- *
- * @param mixed $actual
- * @param string $message
- */
-function assertNull($actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertNull',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an object has a specified attribute.
- *
- * @param string $attributeName
- * @param object $object
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
-function assertObjectHasAttribute($attributeName, $object, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertObjectHasAttribute',
- func_get_args()
- );
-}
-
-/**
- * Asserts that an object does not have a specified attribute.
- *
- * @param string $attributeName
- * @param object $object
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
-function assertObjectNotHasAttribute($attributeName, $object, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertObjectNotHasAttribute',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string matches a given regular expression.
- *
- * @param string $pattern
- * @param string $string
- * @param string $message
- */
-function assertRegExp($pattern, $string, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertRegExp',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two variables have the same type and value.
- * Used on objects, it asserts that two variables reference
- * the same object.
- *
- * @param mixed $expected
- * @param mixed $actual
- * @param string $message
- */
-function assertSame($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertSame',
- func_get_args()
- );
-}
-
-/**
- * Assert that the size of two arrays (or `Countable` or `Traversable` objects)
- * is the same.
- *
- * @param array|Countable|Traversable $expected
- * @param array|Countable|Traversable $actual
- * @param string $message
- */
-function assertSameSize($expected, $actual, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertSameSize',
- func_get_args()
- );
-}
-
-/**
- * Assert the presence, absence, or count of elements in a document matching
- * the CSS $selector, regardless of the contents of those elements.
- *
- * The first argument, $selector, is the CSS selector used to match
- * the elements in the $actual document.
- *
- * The second argument, $count, can be either boolean or numeric.
- * When boolean, it asserts for presence of elements matching the selector
- * (true) or absence of elements (false).
- * When numeric, it asserts the count of elements.
- *
- * assertSelectCount("#binder", true, $xml); // any?
- * assertSelectCount(".binder", 3, $xml); // exactly 3?
- *
- * @param array $selector
- * @param int $count
- * @param mixed $actual
- * @param string $message
- * @param bool $isHtml
- *
- * @since Method available since Release 3.3.0
- */
-function assertSelectCount($selector, $count, $actual, $message = '', $isHtml = true)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertSelectCount',
- func_get_args()
- );
-}
-
-/**
- * assertSelectEquals("#binder .name", "Chuck", true, $xml); // any?
- * assertSelectEquals("#binder .name", "Chuck", false, $xml); // none?
- *
- * @param array $selector
- * @param string $content
- * @param int $count
- * @param mixed $actual
- * @param string $message
- * @param bool $isHtml
- *
- * @since Method available since Release 3.3.0
- */
-function assertSelectEquals($selector, $content, $count, $actual, $message = '', $isHtml = true)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertSelectEquals',
- func_get_args()
- );
-}
-
-/**
- * assertSelectRegExp("#binder .name", "/Mike|Derek/", true, $xml); // any?
- * assertSelectRegExp("#binder .name", "/Mike|Derek/", 3, $xml);// 3?
- *
- * @param array $selector
- * @param string $pattern
- * @param int $count
- * @param mixed $actual
- * @param string $message
- * @param bool $isHtml
- *
- * @since Method available since Release 3.3.0
- */
-function assertSelectRegExp($selector, $pattern, $count, $actual, $message = '', $isHtml = true)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertSelectRegExp',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string ends not with a given prefix.
- *
- * @param string $suffix
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.4.0
- */
-function assertStringEndsNotWith($suffix, $string, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertStringEndsNotWith',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string ends with a given prefix.
- *
- * @param string $suffix
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.4.0
- */
-function assertStringEndsWith($suffix, $string, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertStringEndsWith',
- func_get_args()
- );
-}
-
-/**
- * Asserts that the contents of a string is equal
- * to the contents of a file.
- *
- * @param string $expectedFile
- * @param string $actualString
- * @param string $message
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @since Method available since Release 3.3.0
- */
-function assertStringEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = false, $ignoreCase = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertStringEqualsFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string matches a given format string.
- *
- * @param string $format
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertStringMatchesFormat($format, $string, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertStringMatchesFormat',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string matches a given format file.
- *
- * @param string $formatFile
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertStringMatchesFormatFile($formatFile, $string, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertStringMatchesFormatFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that the contents of a string is not equal
- * to the contents of a file.
- *
- * @param string $expectedFile
- * @param string $actualString
- * @param string $message
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @since Method available since Release 3.3.0
- */
-function assertStringNotEqualsFile($expectedFile, $actualString, $message = '', $canonicalize = false, $ignoreCase = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertStringNotEqualsFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string does not match a given format string.
- *
- * @param string $format
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertStringNotMatchesFormat($format, $string, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertStringNotMatchesFormat',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string does not match a given format string.
- *
- * @param string $formatFile
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.5.0
- */
-function assertStringNotMatchesFormatFile($formatFile, $string, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string starts not with a given prefix.
- *
- * @param string $prefix
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.4.0
- */
-function assertStringStartsNotWith($prefix, $string, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertStringStartsNotWith',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a string starts with a given prefix.
- *
- * @param string $prefix
- * @param string $string
- * @param string $message
- *
- * @since Method available since Release 3.4.0
- */
-function assertStringStartsWith($prefix, $string, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertStringStartsWith',
- func_get_args()
- );
-}
-
-/**
- * Evaluate an HTML or XML string and assert its structure and/or contents.
- *
- * The first argument ($matcher) is an associative array that specifies the
- * match criteria for the assertion:
- *
- * - `id` : the node with the given id attribute must match the
- * corresponding value.
- * - `tag` : the node type must match the corresponding value.
- * - `attributes` : a hash. The node's attributes must match the
- * corresponding values in the hash.
- * - `content` : The text content must match the given value.
- * - `parent` : a hash. The node's parent must match the
- * corresponding hash.
- * - `child`: a hash. At least one of the node's immediate children
- * must meet the criteria described by the hash.
- * - `ancestor` : a hash. At least one of the node's ancestors must
- * meet the criteria described by the hash.
- * - `descendant` : a hash. At least one of the node's descendants must
- * meet the criteria described by the hash.
- * - `children` : a hash, for counting children of a node.
- * Accepts the keys:
- *- `count`: a number which must equal the number of children
- * that match
- *- `less_than`: the number of matching children must be greater
- * than this number
- *- `greater_than` : the number of matching children must be less than
- * this number
- *- `only` : another hash consisting of the keys to use to match
- * on the children, and only matching children will be
- * counted
- *
- * <code>
- * // Matcher that asserts that there is an element with an id="my_id".
- * $matcher = array('id' => 'my_id');
- *
- * // Matcher that asserts that there is a "span" tag.
- * $matcher = array('tag' => 'span');
- *
- * // Matcher that asserts that there is a "span" tag with the content
- * // "Hello World".
- * $matcher = array('tag' => 'span', 'content' => 'Hello World');
- *
- * // Matcher that asserts that there is a "span" tag with content matching
- * // the regular expression pattern.
- * $matcher = array('tag' => 'span', 'content' => 'regexp:/Try P(HP|ython)/');
- *
- * // Matcher that asserts that there is a "span" with an "list" class
- * // attribute.
- * $matcher = array(
- * 'tag'=> 'span',
- * 'attributes' => array('class' => 'list')
- * );
- *
- * // Matcher that asserts that there is a "span" inside of a "div".
- * $matcher = array(
- * 'tag'=> 'span',
- * 'parent' => array('tag' => 'div')
- * );
- *
- * // Matcher that asserts that there is a "span" somewhere inside a
- * // "table".
- * $matcher = array(
- * 'tag' => 'span',
- * 'ancestor' => array('tag' => 'table')
- * );
- *
- * // Matcher that asserts that there is a "span" with at least one "em"
- * // child.
- * $matcher = array(
- * 'tag' => 'span',
- * 'child' => array('tag' => 'em')
- * );
- *
- * // Matcher that asserts that there is a "span" containing a (possibly
- * // nested) "strong" tag.
- * $matcher = array(
- * 'tag'=> 'span',
- * 'descendant' => array('tag' => 'strong')
- * );
- *
- * // Matcher that asserts that there is a "span" containing 5-10 "em" tags
- * // as immediate children.
- * $matcher = array(
- * 'tag' => 'span',
- * 'children' => array(
- * 'less_than'=> 11,
- * 'greater_than' => 4,
- * 'only' => array('tag' => 'em')
- * )
- * );
- *
- * // Matcher that asserts that there is a "div", with an "ul" ancestor and
- * // a "li" parent (with class="enum"), and containing a "span" descendant
- * // that contains an element with id="my_test" and the text "Hello World".
- * $matcher = array(
- * 'tag'=> 'div',
- * 'ancestor' => array('tag' => 'ul'),
- * 'parent' => array(
- * 'tag'=> 'li',
- * 'attributes' => array('class' => 'enum')
- * ),
- * 'descendant' => array(
- * 'tag' => 'span',
- * 'child' => array(
- * 'id' => 'my_test',
- * 'content' => 'Hello World'
- * )
- * )
- * );
- *
- * // Use assertTag() to apply a $matcher to a piece of $html.
- * $this->assertTag($matcher, $html);
- *
- * // Use assertTag() to apply a $matcher to a piece of $xml.
- * $this->assertTag($matcher, $xml, '', false);
- * </code>
- *
- * The second argument ($actual) is a string containing either HTML or
- * XML text to be tested.
- *
- * The third argument ($message) is an optional message that will be
- * used if the assertion fails.
- *
- * The fourth argument ($html) is an optional flag specifying whether
- * to load the $actual string into a DOMDocument using the HTML or
- * XML load strategy. It is true by default, which assumes the HTML
- * load strategy. In many cases, this will be acceptable for XML as well.
- *
- * @param array $matcher
- * @param string $actual
- * @param string $message
- * @param bool $isHtml
- *
- * @since Method available since Release 3.3.0
- */
-function assertTag($matcher, $actual, $message = '', $isHtml = true)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertTag',
- func_get_args()
- );
-}
-
-/**
- * Evaluates a PHPUnit_Framework_Constraint matcher object.
- *
- * @param mixed $value
- * @param PHPUnit_Framework_Constraint $constraint
- * @param string $message
- *
- * @since Method available since Release 3.0.0
- */
-function assertThat($value, PHPUnit_Framework_Constraint $constraint, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertThat',
- func_get_args()
- );
-}
-
-/**
- * Asserts that a condition is true.
- *
- * @param bool $condition
- * @param string $message
- *
- * @throws PHPUnit_Framework_AssertionFailedError
- */
-function assertTrue($condition, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertTrue',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two XML files are equal.
- *
- * @param string $expectedFile
- * @param string $actualFile
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertXmlFileEqualsXmlFile($expectedFile, $actualFile, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two XML files are not equal.
- *
- * @param string $expectedFile
- * @param string $actualFile
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertXmlFileNotEqualsXmlFile($expectedFile, $actualFile, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two XML documents are equal.
- *
- * @param string $expectedFile
- * @param string $actualXml
- * @param string $message
- *
- * @since Method available since Release 3.3.0
- */
-function assertXmlStringEqualsXmlFile($expectedFile, $actualXml, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two XML documents are equal.
- *
- * @param string $expectedXml
- * @param string $actualXml
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertXmlStringEqualsXmlString($expectedXml, $actualXml, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two XML documents are not equal.
- *
- * @param string $expectedFile
- * @param string $actualXml
- * @param string $message
- *
- * @since Method available since Release 3.3.0
- */
-function assertXmlStringNotEqualsXmlFile($expectedFile, $actualXml, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile',
- func_get_args()
- );
-}
-
-/**
- * Asserts that two XML documents are not equal.
- *
- * @param string $expectedXml
- * @param string $actualXml
- * @param string $message
- *
- * @since Method available since Release 3.1.0
- */
-function assertXmlStringNotEqualsXmlString($expectedXml, $actualXml, $message = '')
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString',
- func_get_args()
- );
-}
-
-/**
- * Returns a matcher that matches when the method is executed
- * at the given $index.
- *
- * @param int $index
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex
- *
- * @since Method available since Release 3.0.0
- */
-function at($index)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::at',
- func_get_args()
- );
-}
-
-/**
- * Returns a matcher that matches when the method is executed at least once.
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce
- *
- * @since Method available since Release 3.0.0
- */
-function atLeastOnce()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::atLeastOnce',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
- *
- * @param PHPUnit_Framework_Constraint $constraint
- * @param string $attributeName
- *
- * @return PHPUnit_Framework_Constraint_Attribute
- *
- * @since Method available since Release 3.1.0
- */
-function attribute(PHPUnit_Framework_Constraint $constraint, $attributeName)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::attribute',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsEqual matcher object
- * that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher
- * object.
- *
- * @param string $attributeName
- * @param mixed $value
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @return PHPUnit_Framework_Constraint_Attribute
- *
- * @since Method available since Release 3.1.0
- */
-function attributeEqualTo($attributeName, $value, $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::attributeEqualTo',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_Callback matcher object.
- *
- * @param callable $callback
- *
- * @return PHPUnit_Framework_Constraint_Callback
- */
-function callback($callback)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::callback',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.
- *
- * @param string $attributeName
- *
- * @return PHPUnit_Framework_Constraint_ClassHasAttribute
- *
- * @since Method available since Release 3.1.0
- */
-function classHasAttribute($attributeName)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::classHasAttribute',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher
- * object.
- *
- * @param string $attributeName
- *
- * @return PHPUnit_Framework_Constraint_ClassHasStaticAttribute
- *
- * @since Method available since Release 3.1.0
- */
-function classHasStaticAttribute($attributeName)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::classHasStaticAttribute',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_TraversableContains matcher
- * object.
- *
- * @param mixed $value
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @return PHPUnit_Framework_Constraint_TraversableContains
- *
- * @since Method available since Release 3.0.0
- */
-function contains($value, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::contains',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher
- * object.
- *
- * @param string $type
- *
- * @return PHPUnit_Framework_Constraint_TraversableContainsOnly
- *
- * @since Method available since Release 3.1.4
- */
-function containsOnly($type)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::containsOnly',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher
- * object.
- *
- * @param string $classname
- *
- * @return PHPUnit_Framework_Constraint_TraversableContainsOnly
- */
-function containsOnlyInstancesOf($classname)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::containsOnlyInstancesOf',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.
- *
- * @param mixed $value
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @return PHPUnit_Framework_Constraint_IsEqual
- *
- * @since Method available since Release 3.0.0
- */
-function equalTo($value, $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::equalTo',
- func_get_args()
- );
-}
-
-/**
- * Returns a matcher that matches when the method is executed
- * exactly $count times.
- *
- * @param int $count
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount
- *
- * @since Method available since Release 3.0.0
- */
-function exactly($count)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::exactly',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_FileExists matcher object.
- *
- * @return PHPUnit_Framework_Constraint_FileExists
- *
- * @since Method available since Release 3.0.0
- */
-function fileExists()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::fileExists',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.
- *
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Constraint_GreaterThan
- *
- * @since Method available since Release 3.0.0
- */
-function greaterThan($value)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::greaterThan',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps
- * a PHPUnit_Framework_Constraint_IsEqual and a
- * PHPUnit_Framework_Constraint_GreaterThan matcher object.
- *
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Constraint_Or
- *
- * @since Method available since Release 3.1.0
- */
-function greaterThanOrEqual($value)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::greaterThanOrEqual',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.
- *
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Constraint_IsIdentical
- *
- * @since Method available since Release 3.0.0
- */
-function identicalTo($value)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::identicalTo',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsEmpty
- *
- * @since Method available since Release 3.5.0
- */
-function isEmpty()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::isEmpty',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsFalse
- *
- * @since Method available since Release 3.3.0
- */
-function isFalse()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::isFalse',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.
- *
- * @param string $className
- *
- * @return PHPUnit_Framework_Constraint_IsInstanceOf
- *
- * @since Method available since Release 3.0.0
- */
-function isInstanceOf($className)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::isInstanceOf',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsJson matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsJson
- *
- * @since Method available since Release 3.7.20
- */
-function isJson()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::isJson',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsNull matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsNull
- *
- * @since Method available since Release 3.3.0
- */
-function isNull()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::isNull',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.
- *
- * @return PHPUnit_Framework_Constraint_IsTrue
- *
- * @since Method available since Release 3.3.0
- */
-function isTrue()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::isTrue',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_IsType matcher object.
- *
- * @param string $type
- *
- * @return PHPUnit_Framework_Constraint_IsType
- *
- * @since Method available since Release 3.0.0
- */
-function isType($type)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::isType',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_LessThan matcher object.
- *
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Constraint_LessThan
- *
- * @since Method available since Release 3.0.0
- */
-function lessThan($value)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::lessThan',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps
- * a PHPUnit_Framework_Constraint_IsEqual and a
- * PHPUnit_Framework_Constraint_LessThan matcher object.
- *
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Constraint_Or
- *
- * @since Method available since Release 3.1.0
- */
-function lessThanOrEqual($value)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::lessThanOrEqual',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_And matcher object.
- *
- * @return PHPUnit_Framework_Constraint_And
- *
- * @since Method available since Release 3.0.0
- */
-function logicalAnd()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::logicalAnd',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_Not matcher object.
- *
- * @param PHPUnit_Framework_Constraint $constraint
- *
- * @return PHPUnit_Framework_Constraint_Not
- *
- * @since Method available since Release 3.0.0
- */
-function logicalNot(PHPUnit_Framework_Constraint $constraint)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::logicalNot',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_Or matcher object.
- *
- * @return PHPUnit_Framework_Constraint_Or
- *
- * @since Method available since Release 3.0.0
- */
-function logicalOr()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::logicalOr',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_Xor matcher object.
- *
- * @return PHPUnit_Framework_Constraint_Xor
- *
- * @since Method available since Release 3.0.0
- */
-function logicalXor()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::logicalXor',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.
- *
- * @param string $string
- *
- * @return PHPUnit_Framework_Constraint_StringMatches
- *
- * @since Method available since Release 3.5.0
- */
-function matches($string)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::matches',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
- *
- * @param string $pattern
- *
- * @return PHPUnit_Framework_Constraint_PCREMatch
- *
- * @since Method available since Release 3.0.0
- */
-function matchesRegularExpression($pattern)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::matchesRegularExpression',
- func_get_args()
- );
-}
-
-/**
- * Returns a matcher that matches when the method is never executed.
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount
- *
- * @since Method available since Release 3.0.0
- */
-function never()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::never',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.
- *
- * @param string $attributeName
- *
- * @return PHPUnit_Framework_Constraint_ObjectHasAttribute
- *
- * @since Method available since Release 3.0.0
- */
-function objectHasAttribute($attributeName)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::objectHasAttribute',
- func_get_args()
- );
-}
-
-/**
- * @param mixed $value, ...
- *
- * @return PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls
- *
- * @since Method available since Release 3.0.0
- */
-function onConsecutiveCalls()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::onConsecutiveCalls',
- func_get_args()
- );
-}
-
-/**
- * Returns a matcher that matches when the method is executed exactly once.
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount
- *
- * @since Method available since Release 3.0.0
- */
-function once()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::once',
- func_get_args()
- );
-}
-
-/**
- * @param int $argumentIndex
- *
- * @return PHPUnit_Framework_MockObject_Stub_ReturnArgument
- *
- * @since Method available since Release 3.3.0
- */
-function returnArgument($argumentIndex)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::returnArgument',
- func_get_args()
- );
-}
-
-/**
- * @param mixed $callback
- *
- * @return PHPUnit_Framework_MockObject_Stub_ReturnCallback
- *
- * @since Method available since Release 3.3.0
- */
-function returnCallback($callback)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::returnCallback',
- func_get_args()
- );
-}
-
-/**
- * Returns the current object.
- *
- * This method is useful when mocking a fluent interface.
- *
- * @return PHPUnit_Framework_MockObject_Stub_ReturnSelf
- *
- * @since Method available since Release 3.6.0
- */
-function returnSelf()
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::returnSelf',
- func_get_args()
- );
-}
-
-/**
- * @param mixed $value
- *
- * @return PHPUnit_Framework_MockObject_Stub_Return
- *
- * @since Method available since Release 3.0.0
- */
-function returnValue($value)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::returnValue',
- func_get_args()
- );
-}
-
-/**
- * @param array $valueMap
- *
- * @return PHPUnit_Framework_MockObject_Stub_ReturnValueMap
- *
- * @since Method available since Release 3.6.0
- */
-function returnValueMap(array $valueMap)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::returnValueMap',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_StringContains matcher object.
- *
- * @param string $string
- * @param bool $case
- *
- * @return PHPUnit_Framework_Constraint_StringContains
- *
- * @since Method available since Release 3.0.0
- */
-function stringContains($string, $case = true)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::stringContains',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.
- *
- * @param mixed $suffix
- *
- * @return PHPUnit_Framework_Constraint_StringEndsWith
- *
- * @since Method available since Release 3.4.0
- */
-function stringEndsWith($suffix)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::stringEndsWith',
- func_get_args()
- );
-}
-
-/**
- * Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.
- *
- * @param mixed $prefix
- *
- * @return PHPUnit_Framework_Constraint_StringStartsWith
- *
- * @since Method available since Release 3.4.0
- */
-function stringStartsWith($prefix)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_Assert::stringStartsWith',
- func_get_args()
- );
-}
-
-/**
- * @param Exception $exception
- *
- * @return PHPUnit_Framework_MockObject_Stub_Exception
- *
- * @since Method available since Release 3.1.0
- */
-function throwException(Exception $exception)
-{
- return call_user_func_array(
- 'PHPUnit_Framework_TestCase::throwException',
- func_get_args()
- );
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/AssertionFailedError.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/AssertionFailedError.php
deleted file mode 100644
index b554e6c4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/AssertionFailedError.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Thrown when an assertion failed.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Framework_AssertionFailedError extends PHPUnit_Framework_Exception implements PHPUnit_Framework_SelfDescribing
-{
- /**
- * Wrapper for getMessage() which is declared as final.
- *
- * @return string
- */
- public function toString()
- {
- return $this->getMessage();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/BaseTestListener.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/BaseTestListener.php
deleted file mode 100644
index c6e5d773..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/BaseTestListener.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * An empty Listener that can be extended to implement TestListener
- * with just a few lines of code.
- *
- * @see PHPUnit_Framework_TestListener for documentation on the API methods.
- * @since Class available since Release 4.0.0
- */
-abstract class PHPUnit_Framework_BaseTestListener implements PHPUnit_Framework_TestListener
-{
- public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- }
-
- public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
- {
- }
-
- public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- }
-
- public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- }
-
- public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- }
-
- public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- }
-
- public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- }
-
- public function startTest(PHPUnit_Framework_Test $test)
- {
- }
-
- public function endTest(PHPUnit_Framework_Test $test, $time)
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/CodeCoverageException.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/CodeCoverageException.php
deleted file mode 100644
index b75edd7a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/CodeCoverageException.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Framework_CodeCoverageException extends PHPUnit_Framework_Exception
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint.php
deleted file mode 100644
index e2db66fd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint.php
+++ /dev/null
@@ -1,153 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Exporter\Exporter;
-
-/**
- * Abstract base class for constraints which can be applied to any value.
- *
- * @since Interface available since Release 3.0.0
- */
-abstract class PHPUnit_Framework_Constraint implements Countable, PHPUnit_Framework_SelfDescribing
-{
- protected $exporter;
-
- public function __construct()
- {
- $this->exporter = new Exporter;
- }
-
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- $success = false;
-
- if ($this->matches($other)) {
- $success = true;
- }
-
- if ($returnResult) {
- return $success;
- }
-
- if (!$success) {
- $this->fail($other, $description);
- }
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * This method can be overridden to implement the evaluation algorithm.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return false;
- }
-
- /**
- * Counts the number of constraint elements.
- *
- * @return int
- *
- * @since Method available since Release 3.4.0
- */
- public function count()
- {
- return 1;
- }
-
- /**
- * Throws an exception for the given compared value and test description
- *
- * @param mixed $other Evaluated value or object.
- * @param string $description Additional information about the test
- * @param SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- protected function fail($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = null)
- {
- $failureDescription = sprintf(
- 'Failed asserting that %s.',
- $this->failureDescription($other)
- );
-
- $additionalFailureDescription = $this->additionalFailureDescription($other);
-
- if ($additionalFailureDescription) {
- $failureDescription .= "\n" . $additionalFailureDescription;
- }
-
- if (!empty($description)) {
- $failureDescription = $description . "\n" . $failureDescription;
- }
-
- throw new PHPUnit_Framework_ExpectationFailedException(
- $failureDescription,
- $comparisonFailure
- );
- }
-
- /**
- * Return additional failure description where needed
- *
- * The function can be overridden to provide additional failure
- * information like a diff
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function additionalFailureDescription($other)
- {
- return '';
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * To provide additional failure information additionalFailureDescription
- * can be used.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return $this->exporter->export($other) . ' ' . $this->toString();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/And.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/And.php
deleted file mode 100644
index e4fa32ff..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/And.php
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Logical AND.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_And extends PHPUnit_Framework_Constraint
-{
- /**
- * @var PHPUnit_Framework_Constraint[]
- */
- protected $constraints = array();
-
- /**
- * @var PHPUnit_Framework_Constraint
- */
- protected $lastConstraint = null;
-
- /**
- * @param PHPUnit_Framework_Constraint[] $constraints
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function setConstraints(array $constraints)
- {
- $this->constraints = array();
-
- foreach ($constraints as $constraint) {
- if (!($constraint instanceof PHPUnit_Framework_Constraint)) {
- throw new PHPUnit_Framework_Exception(
- 'All parameters to ' . __CLASS__ .
- ' must be a constraint object.'
- );
- }
-
- $this->constraints[] = $constraint;
- }
- }
-
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- $success = true;
- $constraint = null;
-
- foreach ($this->constraints as $constraint) {
- if (!$constraint->evaluate($other, $description, true)) {
- $success = false;
- break;
- }
- }
-
- if ($returnResult) {
- return $success;
- }
-
- if (!$success) {
- $this->fail($other, $description);
- }
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- $text = '';
-
- foreach ($this->constraints as $key => $constraint) {
- if ($key > 0) {
- $text .= ' and ';
- }
-
- $text .= $constraint->toString();
- }
-
- return $text;
- }
-
- /**
- * Counts the number of constraint elements.
- *
- * @return int
- *
- * @since Method available since Release 3.4.0
- */
- public function count()
- {
- $count = 0;
-
- foreach ($this->constraints as $constraint) {
- $count += count($constraint);
- }
-
- return $count;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php
deleted file mode 100644
index f208b709..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the array it is evaluated for has a given key.
- *
- * Uses array_key_exists() to check if the key is found in the input array, if
- * not found the evaluation fails.
- *
- * The array key is passed in the constructor.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_ArrayHasKey extends PHPUnit_Framework_Constraint
-{
- /**
- * @var int|string
- */
- protected $key;
-
- /**
- * @param int|string $key
- */
- public function __construct($key)
- {
- parent::__construct();
- $this->key = $key;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- if (is_array($other)) {
- return array_key_exists($this->key, $other);
- }
-
- if ($other instanceof ArrayAccess) {
- return $other->offsetExists($this->key);
- }
-
- return false;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'has the key ' . $this->exporter->export($this->key);
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return 'an array ' . $this->toString();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php
deleted file mode 100644
index aa67238f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the array it is evaluated for has a specified subset.
- *
- * Uses array_replace_recursive() to check if a key value subset is part of the
- * subject array.
- *
- * @since Class available since Release 4.4.0
- */
-class PHPUnit_Framework_Constraint_ArraySubset extends PHPUnit_Framework_Constraint
-{
- /**
- * @var array|ArrayAccess
- */
- protected $subset;
-
- /**
- * @var bool
- */
- protected $strict;
-
- /**
- * @param array|ArrayAccess $subset
- * @param bool $strict Check for object identity
- */
- public function __construct($subset, $strict = false)
- {
- parent::__construct();
- $this->strict = $strict;
- $this->subset = $subset;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param array|ArrayAccess $other Array or ArrayAccess object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- //type cast $other & $this->subset as an array to allow
- //support in standard array functions.
- if($other instanceof ArrayAccess) {
- $other = (array) $other;
- }
-
- if($this->subset instanceof ArrayAccess) {
- $this->subset = (array) $this->subset;
- }
-
- $patched = array_replace_recursive($other, $this->subset);
-
- if ($this->strict) {
- return $other === $patched;
- } else {
- return $other == $patched;
- }
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'has the subset ' . $this->exporter->export($this->subset);
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return 'an array ' . $this->toString();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Attribute.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Attribute.php
deleted file mode 100644
index 5a0c458e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Attribute.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.1.0
- */
-class PHPUnit_Framework_Constraint_Attribute extends PHPUnit_Framework_Constraint_Composite
-{
- /**
- * @var string
- */
- protected $attributeName;
-
- /**
- * @param PHPUnit_Framework_Constraint $constraint
- * @param string $attributeName
- */
- public function __construct(PHPUnit_Framework_Constraint $constraint, $attributeName)
- {
- parent::__construct($constraint);
-
- $this->attributeName = $attributeName;
- }
-
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- return parent::evaluate(
- PHPUnit_Framework_Assert::readAttribute(
- $other,
- $this->attributeName
- ),
- $description,
- $returnResult
- );
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'attribute "' . $this->attributeName . '" ' .
- $this->innerConstraint->toString();
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return $this->toString();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Callback.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Callback.php
deleted file mode 100644
index df60d68e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Callback.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that evaluates against a specified closure.
- */
-class PHPUnit_Framework_Constraint_Callback extends PHPUnit_Framework_Constraint
-{
- private $callback;
-
- /**
- * @param callable $callback
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function __construct($callback)
- {
- if (!is_callable($callback)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 1,
- 'callable'
- );
- }
-
- parent::__construct();
-
- $this->callback = $callback;
- }
-
- /**
- * Evaluates the constraint for parameter $value. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return call_user_func($this->callback, $other);
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'is accepted by specified callback';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php
deleted file mode 100644
index 97315c96..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the class it is evaluated for has a given
- * attribute.
- *
- * The attribute name is passed in the constructor.
- *
- * @since Class available since Release 3.1.0
- */
-class PHPUnit_Framework_Constraint_ClassHasAttribute extends PHPUnit_Framework_Constraint
-{
- /**
- * @var string
- */
- protected $attributeName;
-
- /**
- * @param string $attributeName
- */
- public function __construct($attributeName)
- {
- parent::__construct();
- $this->attributeName = $attributeName;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- $class = new ReflectionClass($other);
-
- return $class->hasProperty($this->attributeName);
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return sprintf(
- 'has attribute "%s"',
- $this->attributeName
- );
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return sprintf(
- '%sclass "%s" %s',
- is_object($other) ? 'object of ' : '',
- is_object($other) ? get_class($other) : $other,
- $this->toString()
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasStaticAttribute.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasStaticAttribute.php
deleted file mode 100644
index 7bc29f17..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasStaticAttribute.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the class it is evaluated for has a given
- * static attribute.
- *
- * The attribute name is passed in the constructor.
- *
- * @since Class available since Release 3.1.0
- */
-class PHPUnit_Framework_Constraint_ClassHasStaticAttribute extends PHPUnit_Framework_Constraint_ClassHasAttribute
-{
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- $class = new ReflectionClass($other);
-
- if ($class->hasProperty($this->attributeName)) {
- $attribute = $class->getProperty($this->attributeName);
-
- return $attribute->isStatic();
- } else {
- return false;
- }
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- *
- * @since Method available since Release 3.3.0
- */
- public function toString()
- {
- return sprintf(
- 'has static attribute "%s"',
- $this->attributeName
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Composite.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Composite.php
deleted file mode 100644
index 680b832a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Composite.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.1.0
- */
-abstract class PHPUnit_Framework_Constraint_Composite extends PHPUnit_Framework_Constraint
-{
- /**
- * @var PHPUnit_Framework_Constraint
- */
- protected $innerConstraint;
-
- /**
- * @param PHPUnit_Framework_Constraint $innerConstraint
- */
- public function __construct(PHPUnit_Framework_Constraint $innerConstraint)
- {
- parent::__construct();
- $this->innerConstraint = $innerConstraint;
- }
-
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- try {
- return $this->innerConstraint->evaluate(
- $other,
- $description,
- $returnResult
- );
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->fail($other, $description);
- }
- }
-
- /**
- * Counts the number of constraint elements.
- *
- * @return int
- */
- public function count()
- {
- return count($this->innerConstraint);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Count.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Count.php
deleted file mode 100644
index ee370ea5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Count.php
+++ /dev/null
@@ -1,104 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.6.0
- */
-class PHPUnit_Framework_Constraint_Count extends PHPUnit_Framework_Constraint
-{
- /**
- * @var int
- */
- protected $expectedCount = 0;
-
- /**
- * @param int $expected
- */
- public function __construct($expected)
- {
- parent::__construct();
- $this->expectedCount = $expected;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other
- *
- * @return bool
- */
- protected function matches($other)
- {
- return $this->expectedCount === $this->getCountOf($other);
- }
-
- /**
- * @param mixed $other
- *
- * @return bool
- */
- protected function getCountOf($other)
- {
- if ($other instanceof Countable || is_array($other)) {
- return count($other);
- } elseif ($other instanceof Traversable) {
- if ($other instanceof IteratorAggregate) {
- $iterator = $other->getIterator();
- } else {
- $iterator = $other;
- }
-
- $key = $iterator->key();
- $count = iterator_count($iterator);
-
- // manually rewind $iterator to previous key, since iterator_count
- // moves pointer
- if ($key !== null) {
- $iterator->rewind();
- while ($iterator->valid() && $key !== $iterator->key()) {
- $iterator->next();
- }
- }
-
- return $count;
- }
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return sprintf(
- 'actual size %d matches expected size %d',
- $this->getCountOf($other),
- $this->expectedCount
- );
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- return sprintf(
- 'count matches %d',
- $this->expectedCount
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Exception.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Exception.php
deleted file mode 100644
index c05f1725..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Exception.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.6.6
- */
-class PHPUnit_Framework_Constraint_Exception extends PHPUnit_Framework_Constraint
-{
- /**
- * @var string
- */
- protected $className;
-
- /**
- * @param string $className
- */
- public function __construct($className)
- {
- parent::__construct();
- $this->className = $className;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return $other instanceof $this->className;
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- if ($other !== null) {
- $message = '';
- if ($other instanceof Exception) {
- $message = '. Message was: "' . $other->getMessage() . '" at'
- . "\n" . $other->getTraceAsString();
- }
-
- return sprintf(
- 'exception of type "%s" matches expected exception "%s"%s',
- get_class($other),
- $this->className,
- $message
- );
- }
-
- return sprintf(
- 'exception of type "%s" is thrown',
- $this->className
- );
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return sprintf(
- 'exception of type "%s"',
- $this->className
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionCode.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionCode.php
deleted file mode 100644
index 8f402fca..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionCode.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.6.6
- */
-class PHPUnit_Framework_Constraint_ExceptionCode extends PHPUnit_Framework_Constraint
-{
- /**
- * @var int
- */
- protected $expectedCode;
-
- /**
- * @param int $expected
- */
- public function __construct($expected)
- {
- parent::__construct();
- $this->expectedCode = $expected;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param Exception $other
- *
- * @return bool
- */
- protected function matches($other)
- {
- return (string) $other->getCode() == (string) $this->expectedCode;
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return sprintf(
- '%s is equal to expected exception code %s',
- $this->exporter->export($other->getCode()),
- $this->exporter->export($this->expectedCode)
- );
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- return 'exception code is ';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionMessage.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionMessage.php
deleted file mode 100644
index c9632e9b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionMessage.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.6.6
- */
-class PHPUnit_Framework_Constraint_ExceptionMessage extends PHPUnit_Framework_Constraint
-{
- /**
- * @var int
- */
- protected $expectedMessage;
-
- /**
- * @param string $expected
- */
- public function __construct($expected)
- {
- parent::__construct();
- $this->expectedMessage = $expected;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param Exception $other
- *
- * @return bool
- */
- protected function matches($other)
- {
- return strpos($other->getMessage(), $this->expectedMessage) !== false;
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return sprintf(
- "exception message '%s' contains '%s'",
- $other->getMessage(),
- $this->expectedMessage
- );
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- return 'exception message contains ';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionMessageRegExp.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionMessageRegExp.php
deleted file mode 100644
index 7f2283ac..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionMessageRegExp.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.3.0
- */
-class PHPUnit_Framework_Constraint_ExceptionMessageRegExp extends PHPUnit_Framework_Constraint
-{
- /**
- * @var int
- */
- protected $expectedMessageRegExp;
-
- /**
- * @param string $expected
- */
- public function __construct($expected)
- {
- parent::__construct();
- $this->expectedMessageRegExp = $expected;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param Exception $other
- *
- * @return bool
- */
- protected function matches($other)
- {
- $match = PHPUnit_Util_Regex::pregMatchSafe($this->expectedMessageRegExp, $other->getMessage());
-
- if (false === $match) {
- throw new PHPUnit_Framework_Exception(
- "Invalid expected exception message regex given: '{$this->expectedMessageRegExp}'"
- );
- }
-
- return 1 === $match;
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return sprintf(
- "exception message '%s' matches '%s'",
- $other->getMessage(),
- $this->expectedMessageRegExp
- );
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- return 'exception message matches ';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/FileExists.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/FileExists.php
deleted file mode 100644
index 25643bd2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/FileExists.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that checks if the file(name) that it is evaluated for exists.
- *
- * The file path to check is passed as $other in evaluate().
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_FileExists extends PHPUnit_Framework_Constraint
-{
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return file_exists($other);
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return sprintf(
- 'file "%s" exists',
- $other
- );
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'file exists';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/GreaterThan.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/GreaterThan.php
deleted file mode 100644
index b67eae41..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/GreaterThan.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the value it is evaluated for is greater
- * than a given value.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_GreaterThan extends PHPUnit_Framework_Constraint
-{
- /**
- * @var numeric
- */
- protected $value;
-
- /**
- * @param numeric $value
- */
- public function __construct($value)
- {
- parent::__construct();
- $this->value = $value;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return $this->value < $other;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'is greater than ' . $this->exporter->export($this->value);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsAnything.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsAnything.php
deleted file mode 100644
index bfaa201d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsAnything.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that accepts any input value.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_IsAnything extends PHPUnit_Framework_Constraint
-{
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- return $returnResult ? true : null;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'is anything';
- }
-
- /**
- * Counts the number of constraint elements.
- *
- * @return int
- *
- * @since Method available since Release 3.5.0
- */
- public function count()
- {
- return 0;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsEmpty.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsEmpty.php
deleted file mode 100644
index e4906691..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsEmpty.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that checks whether a variable is empty().
- *
- * @since Class available since Release 3.5.0
- */
-class PHPUnit_Framework_Constraint_IsEmpty extends PHPUnit_Framework_Constraint
-{
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- if ($other instanceof Countable) {
- return count($other) === 0;
- }
-
- return empty($other);
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'is empty';
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- $type = gettype($other);
-
- return sprintf(
- '%s %s %s',
- $type[0] == 'a' || $type[0] == 'o' ? 'an' : 'a',
- $type,
- $this->toString()
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsEqual.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsEqual.php
deleted file mode 100644
index da5348d2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsEqual.php
+++ /dev/null
@@ -1,179 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that checks if one value is equal to another.
- *
- * Equality is checked with PHP's == operator, the operator is explained in
- * detail at {@url http://www.php.net/manual/en/types.comparisons.php}.
- * Two values are equal if they have the same value disregarding type.
- *
- * The expected value is passed in the constructor.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_IsEqual extends PHPUnit_Framework_Constraint
-{
- /**
- * @var mixed
- */
- protected $value;
-
- /**
- * @var float
- */
- protected $delta = 0.0;
-
- /**
- * @var int
- */
- protected $maxDepth = 10;
-
- /**
- * @var bool
- */
- protected $canonicalize = false;
-
- /**
- * @var bool
- */
- protected $ignoreCase = false;
-
- /**
- * @var SebastianBergmann\Comparator\ComparisonFailure
- */
- protected $lastFailure;
-
- /**
- * @param mixed $value
- * @param float $delta
- * @param int $maxDepth
- * @param bool $canonicalize
- * @param bool $ignoreCase
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function __construct($value, $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false)
- {
- parent::__construct();
-
- if (!is_numeric($delta)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'numeric');
- }
-
- if (!is_int($maxDepth)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(3, 'integer');
- }
-
- if (!is_bool($canonicalize)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(4, 'boolean');
- }
-
- if (!is_bool($ignoreCase)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(5, 'boolean');
- }
-
- $this->value = $value;
- $this->delta = $delta;
- $this->maxDepth = $maxDepth;
- $this->canonicalize = $canonicalize;
- $this->ignoreCase = $ignoreCase;
- }
-
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- // If $this->value and $other are identical, they are also equal.
- // This is the most common path and will allow us to skip
- // initialization of all the comparators.
- if ($this->value === $other) {
- return true;
- }
-
- $comparatorFactory = SebastianBergmann\Comparator\Factory::getInstance();
-
- try {
- $comparator = $comparatorFactory->getComparatorFor(
- $this->value,
- $other
- );
-
- $comparator->assertEquals(
- $this->value,
- $other,
- $this->delta,
- $this->canonicalize,
- $this->ignoreCase
- );
- } catch (SebastianBergmann\Comparator\ComparisonFailure $f) {
- if ($returnResult) {
- return false;
- }
-
- throw new PHPUnit_Framework_ExpectationFailedException(
- trim($description . "\n" . $f->getMessage()),
- $f
- );
- }
-
- return true;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- $delta = '';
-
- if (is_string($this->value)) {
- if (strpos($this->value, "\n") !== false) {
- return 'is equal to <text>';
- } else {
- return sprintf(
- 'is equal to <string:%s>',
- $this->value
- );
- }
- } else {
- if ($this->delta != 0) {
- $delta = sprintf(
- ' with delta <%F>',
- $this->delta
- );
- }
-
- return sprintf(
- 'is equal to %s%s',
- $this->exporter->export($this->value),
- $delta
- );
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsFalse.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsFalse.php
deleted file mode 100644
index d476b097..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsFalse.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that accepts false.
- *
- * @since Class available since Release 3.3.0
- */
-class PHPUnit_Framework_Constraint_IsFalse extends PHPUnit_Framework_Constraint
-{
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return $other === false;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'is false';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php
deleted file mode 100644
index 9d8b5a15..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php
+++ /dev/null
@@ -1,132 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that one value is identical to another.
- *
- * Identical check is performed with PHP's === operator, the operator is
- * explained in detail at
- * {@url http://www.php.net/manual/en/types.comparisons.php}.
- * Two values are identical if they have the same value and are of the same
- * type.
- *
- * The expected value is passed in the constructor.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_IsIdentical extends PHPUnit_Framework_Constraint
-{
- /**
- * @var float
- */
- const EPSILON = 0.0000000001;
-
- /**
- * @var mixed
- */
- protected $value;
-
- /**
- * @param mixed $value
- */
- public function __construct($value)
- {
- parent::__construct();
- $this->value = $value;
- }
-
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- if (is_double($this->value) && is_double($other) &&
- !is_infinite($this->value) && !is_infinite($other) &&
- !is_nan($this->value) && !is_nan($other)) {
- $success = abs($this->value - $other) < self::EPSILON;
- } else {
- $success = $this->value === $other;
- }
-
- if ($returnResult) {
- return $success;
- }
-
- if (!$success) {
- $f = null;
-
- // if both values are strings, make sure a diff is generated
- if (is_string($this->value) && is_string($other)) {
- $f = new SebastianBergmann\Comparator\ComparisonFailure(
- $this->value,
- $other,
- $this->value,
- $other
- );
- }
-
- $this->fail($other, $description, $f);
- }
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- if (is_object($this->value) && is_object($other)) {
- return 'two variables reference the same object';
- }
-
- if (is_string($this->value) && is_string($other)) {
- return 'two strings are identical';
- }
-
- return parent::failureDescription($other);
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- if (is_object($this->value)) {
- return 'is identical to an object of class "' .
- get_class($this->value) . '"';
- } else {
- return 'is identical to ' .
- $this->exporter->export($this->value);
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsInstanceOf.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsInstanceOf.php
deleted file mode 100644
index 69a7a786..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsInstanceOf.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the object it is evaluated for is an instance
- * of a given class.
- *
- * The expected class name is passed in the constructor.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_IsInstanceOf extends PHPUnit_Framework_Constraint
-{
- /**
- * @var string
- */
- protected $className;
-
- /**
- * @param string $className
- */
- public function __construct($className)
- {
- parent::__construct();
- $this->className = $className;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return ($other instanceof $this->className);
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return sprintf(
- '%s is an instance of %s "%s"',
- $this->exporter->shortenedExport($other),
- $this->getType(),
- $this->className
- );
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return sprintf(
- 'is instance of %s "%s"',
- $this->getType(),
- $this->className
- );
- }
-
- private function getType()
- {
- try {
- $reflection = new ReflectionClass($this->className);
- if ($reflection->isInterface()) {
- return 'interface';
- }
- } catch (ReflectionException $e) {
- }
-
- return 'class';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsJson.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsJson.php
deleted file mode 100644
index f6951bab..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsJson.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that a string is valid JSON.
- *
- * @since Class available since Release 3.7.20
- */
-class PHPUnit_Framework_Constraint_IsJson extends PHPUnit_Framework_Constraint
-{
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- json_decode($other);
- if (json_last_error()) {
- return false;
- }
-
- return true;
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- json_decode($other);
- $error = PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError(
- json_last_error()
- );
-
- return sprintf(
- '%s is valid JSON (%s)',
- $this->exporter->shortenedExport($other),
- $error
- );
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'is valid JSON';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsNull.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsNull.php
deleted file mode 100644
index d3b23a6e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsNull.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that accepts null.
- *
- * @since Class available since Release 3.3.0
- */
-class PHPUnit_Framework_Constraint_IsNull extends PHPUnit_Framework_Constraint
-{
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return $other === null;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'is null';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsTrue.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsTrue.php
deleted file mode 100644
index 6acddbbb..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsTrue.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that accepts true.
- *
- * @since Class available since Release 3.3.0
- */
-class PHPUnit_Framework_Constraint_IsTrue extends PHPUnit_Framework_Constraint
-{
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return $other === true;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'is true';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsType.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsType.php
deleted file mode 100644
index 7f0499b3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/IsType.php
+++ /dev/null
@@ -1,143 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the value it is evaluated for is of a
- * specified type.
- *
- * The expected value is passed in the constructor.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_IsType extends PHPUnit_Framework_Constraint
-{
- const TYPE_ARRAY = 'array';
- const TYPE_BOOL = 'bool';
- const TYPE_FLOAT = 'float';
- const TYPE_INT = 'int';
- const TYPE_NULL = 'null';
- const TYPE_NUMERIC = 'numeric';
- const TYPE_OBJECT = 'object';
- const TYPE_RESOURCE = 'resource';
- const TYPE_STRING = 'string';
- const TYPE_SCALAR = 'scalar';
- const TYPE_CALLABLE = 'callable';
-
- /**
- * @var array
- */
- protected $types = array(
- 'array' => true,
- 'boolean' => true,
- 'bool' => true,
- 'double' => true,
- 'float' => true,
- 'integer' => true,
- 'int' => true,
- 'null' => true,
- 'numeric' => true,
- 'object' => true,
- 'real' => true,
- 'resource' => true,
- 'string' => true,
- 'scalar' => true,
- 'callable' => true
- );
-
- /**
- * @var string
- */
- protected $type;
-
- /**
- * @param string $type
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function __construct($type)
- {
- parent::__construct();
-
- if (!isset($this->types[$type])) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Type specified for PHPUnit_Framework_Constraint_IsType <%s> ' .
- 'is not a valid type.',
- $type
- )
- );
- }
-
- $this->type = $type;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- switch ($this->type) {
- case 'numeric':
- return is_numeric($other);
-
- case 'integer':
- case 'int':
- return is_integer($other);
-
- case 'double':
- case 'float':
- case 'real':
- return is_float($other);
-
- case 'string':
- return is_string($other);
-
- case 'boolean':
- case 'bool':
- return is_bool($other);
-
- case 'null':
- return is_null($other);
-
- case 'array':
- return is_array($other);
-
- case 'object':
- return is_object($other);
-
- case 'resource':
- return is_resource($other) || is_string(@get_resource_type($other));
-
- case 'scalar':
- return is_scalar($other);
-
- case 'callable':
- return is_callable($other);
- }
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return sprintf(
- 'is of type "%s"',
- $this->type
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/JsonMatches.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/JsonMatches.php
deleted file mode 100644
index 700abe38..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/JsonMatches.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Asserts whether or not two JSON objects are equal.
- *
- * @since Class available since Release 3.7.0
- */
-class PHPUnit_Framework_Constraint_JsonMatches extends PHPUnit_Framework_Constraint
-{
- /**
- * @var string
- */
- protected $value;
-
- /**
- * Creates a new constraint.
- *
- * @param string $value
- */
- public function __construct($value)
- {
- parent::__construct();
- $this->value = $value;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * This method can be overridden to implement the evaluation algorithm.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- $decodedOther = json_decode($other);
- if (json_last_error()) {
- return false;
- }
-
- $decodedValue = json_decode($this->value);
- if (json_last_error()) {
- return false;
- }
-
- return $decodedOther == $decodedValue;
- }
-
- /**
- * Returns a string representation of the object.
- *
- * @return string
- */
- public function toString()
- {
- return sprintf(
- 'matches JSON string "%s"',
- $this->value
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/JsonMatches/ErrorMessageProvider.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/JsonMatches/ErrorMessageProvider.php
deleted file mode 100644
index 0d062774..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/JsonMatches/ErrorMessageProvider.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Provides human readable messages for each JSON error.
- *
- * @since Class available since Release 3.7.0
- */
-class PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider
-{
- /**
- * Translates JSON error to a human readable string.
- *
- * @param string $error
- * @param string $prefix
- *
- * @return string
- */
- public static function determineJsonError($error, $prefix = '')
- {
- switch ($error) {
- case JSON_ERROR_NONE:
- return;
- case JSON_ERROR_DEPTH:
- return $prefix . 'Maximum stack depth exceeded';
- case JSON_ERROR_STATE_MISMATCH:
- return $prefix . 'Underflow or the modes mismatch';
- case JSON_ERROR_CTRL_CHAR:
- return $prefix . 'Unexpected control character found';
- case JSON_ERROR_SYNTAX:
- return $prefix . 'Syntax error, malformed JSON';
- case JSON_ERROR_UTF8:
- return $prefix . 'Malformed UTF-8 characters, possibly incorrectly encoded';
- default:
- return $prefix . 'Unknown error';
- }
- }
-
- /**
- * Translates a given type to a human readable message prefix.
- *
- * @param string $type
- *
- * @return string
- */
- public static function translateTypeToPrefix($type)
- {
- switch (strtolower($type)) {
- case 'expected':
- $prefix = 'Expected value JSON decode error - ';
- break;
- case 'actual':
- $prefix = 'Actual value JSON decode error - ';
- break;
- default:
- $prefix = '';
- break;
- }
-
- return $prefix;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/LessThan.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/LessThan.php
deleted file mode 100644
index 0160ec35..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/LessThan.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the value it is evaluated for is less than
- * a given value.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_LessThan extends PHPUnit_Framework_Constraint
-{
- /**
- * @var numeric
- */
- protected $value;
-
- /**
- * @param numeric $value
- */
- public function __construct($value)
- {
- parent::__construct();
- $this->value = $value;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return $this->value > $other;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'is less than ' . $this->exporter->export($this->value);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Not.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Not.php
deleted file mode 100644
index 72e25484..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Not.php
+++ /dev/null
@@ -1,160 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Logical NOT.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_Not extends PHPUnit_Framework_Constraint
-{
- /**
- * @var PHPUnit_Framework_Constraint
- */
- protected $constraint;
-
- /**
- * @param PHPUnit_Framework_Constraint $constraint
- */
- public function __construct($constraint)
- {
- parent::__construct();
-
- if (!($constraint instanceof PHPUnit_Framework_Constraint)) {
- $constraint = new PHPUnit_Framework_Constraint_IsEqual($constraint);
- }
-
- $this->constraint = $constraint;
- }
-
- /**
- * @param string $string
- *
- * @return string
- */
- public static function negate($string)
- {
- return str_replace(
- array(
- 'contains ',
- 'exists',
- 'has ',
- 'is ',
- 'are ',
- 'matches ',
- 'starts with ',
- 'ends with ',
- 'reference ',
- 'not not '
- ),
- array(
- 'does not contain ',
- 'does not exist',
- 'does not have ',
- 'is not ',
- 'are not ',
- 'does not match ',
- 'starts not with ',
- 'ends not with ',
- 'don\'t reference ',
- 'not '
- ),
- $string
- );
- }
-
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- $success = !$this->constraint->evaluate($other, $description, true);
-
- if ($returnResult) {
- return $success;
- }
-
- if (!$success) {
- $this->fail($other, $description);
- }
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- switch (get_class($this->constraint)) {
- case 'PHPUnit_Framework_Constraint_And':
- case 'PHPUnit_Framework_Constraint_Not':
- case 'PHPUnit_Framework_Constraint_Or':
- return 'not( ' . $this->constraint->failureDescription($other) . ' )';
-
- default:
- return self::negate(
- $this->constraint->failureDescription($other)
- );
- }
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- switch (get_class($this->constraint)) {
- case 'PHPUnit_Framework_Constraint_And':
- case 'PHPUnit_Framework_Constraint_Not':
- case 'PHPUnit_Framework_Constraint_Or':
- return 'not( ' . $this->constraint->toString() . ' )';
-
- default:
- return self::negate(
- $this->constraint->toString()
- );
- }
- }
-
- /**
- * Counts the number of constraint elements.
- *
- * @return int
- *
- * @since Method available since Release 3.4.0
- */
- public function count()
- {
- return count($this->constraint);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ObjectHasAttribute.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ObjectHasAttribute.php
deleted file mode 100644
index 700fbf48..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/ObjectHasAttribute.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the object it is evaluated for has a given
- * attribute.
- *
- * The attribute name is passed in the constructor.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_ObjectHasAttribute extends PHPUnit_Framework_Constraint_ClassHasAttribute
-{
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- $object = new ReflectionObject($other);
-
- return $object->hasProperty($this->attributeName);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Or.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Or.php
deleted file mode 100644
index b2614564..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Or.php
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Logical OR.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_Or extends PHPUnit_Framework_Constraint
-{
- /**
- * @var PHPUnit_Framework_Constraint[]
- */
- protected $constraints = array();
-
- /**
- * @param PHPUnit_Framework_Constraint[] $constraints
- */
- public function setConstraints(array $constraints)
- {
- $this->constraints = array();
-
- foreach ($constraints as $constraint) {
- if (!($constraint instanceof PHPUnit_Framework_Constraint)) {
- $constraint = new PHPUnit_Framework_Constraint_IsEqual(
- $constraint
- );
- }
-
- $this->constraints[] = $constraint;
- }
- }
-
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- $success = false;
- $constraint = null;
-
- foreach ($this->constraints as $constraint) {
- if ($constraint->evaluate($other, $description, true)) {
- $success = true;
- break;
- }
- }
-
- if ($returnResult) {
- return $success;
- }
-
- if (!$success) {
- $this->fail($other, $description);
- }
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- $text = '';
-
- foreach ($this->constraints as $key => $constraint) {
- if ($key > 0) {
- $text .= ' or ';
- }
-
- $text .= $constraint->toString();
- }
-
- return $text;
- }
-
- /**
- * Counts the number of constraint elements.
- *
- * @return int
- *
- * @since Method available since Release 3.4.0
- */
- public function count()
- {
- $count = 0;
-
- foreach ($this->constraints as $constraint) {
- $count += count($constraint);
- }
-
- return $count;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/PCREMatch.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/PCREMatch.php
deleted file mode 100644
index fe1acc25..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/PCREMatch.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the string it is evaluated for matches
- * a regular expression.
- *
- * Checks a given value using the Perl Compatible Regular Expression extension
- * in PHP. The pattern is matched by executing preg_match().
- *
- * The pattern string passed in the constructor.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_PCREMatch extends PHPUnit_Framework_Constraint
-{
- /**
- * @var string
- */
- protected $pattern;
-
- /**
- * @param string $pattern
- */
- public function __construct($pattern)
- {
- parent::__construct();
- $this->pattern = $pattern;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return preg_match($this->pattern, $other) > 0;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return sprintf(
- 'matches PCRE pattern "%s"',
- $this->pattern
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php
deleted file mode 100644
index e372c1a3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.6.0
- */
-class PHPUnit_Framework_Constraint_SameSize extends PHPUnit_Framework_Constraint_Count
-{
- /**
- * @var int
- */
- protected $expectedCount;
-
- /**
- * @param int $expected
- */
- public function __construct($expected)
- {
- parent::__construct($this->getCountOf($expected));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php
deleted file mode 100644
index ee02bf4e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringContains.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the string it is evaluated for contains
- * a given string.
- *
- * Uses strpos() to find the position of the string in the input, if not found
- * the evaluation fails.
- *
- * The sub-string is passed in the constructor.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_StringContains extends PHPUnit_Framework_Constraint
-{
- /**
- * @var string
- */
- protected $string;
-
- /**
- * @var bool
- */
- protected $ignoreCase;
-
- /**
- * @param string $string
- * @param bool $ignoreCase
- */
- public function __construct($string, $ignoreCase = false)
- {
- parent::__construct();
-
- $this->string = $string;
- $this->ignoreCase = $ignoreCase;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- if ($this->ignoreCase) {
- return stripos($other, $this->string) !== false;
- } else {
- return strpos($other, $this->string) !== false;
- }
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- if ($this->ignoreCase) {
- $string = strtolower($this->string);
- } else {
- $string = $this->string;
- }
-
- return sprintf(
- 'contains "%s"',
- $string
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringEndsWith.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringEndsWith.php
deleted file mode 100644
index ebeb9217..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringEndsWith.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the string it is evaluated for ends with a given
- * suffix.
- *
- * @since Class available since Release 3.4.0
- */
-class PHPUnit_Framework_Constraint_StringEndsWith extends PHPUnit_Framework_Constraint
-{
- /**
- * @var string
- */
- protected $suffix;
-
- /**
- * @param string $suffix
- */
- public function __construct($suffix)
- {
- parent::__construct();
- $this->suffix = $suffix;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return substr($other, 0 - strlen($this->suffix)) == $this->suffix;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'ends with "' . $this->suffix . '"';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringMatches.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringMatches.php
deleted file mode 100644
index af42fc1d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringMatches.php
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Diff\Differ;
-
-/**
- * ...
- *
- * @since Class available since Release 3.5.0
- */
-class PHPUnit_Framework_Constraint_StringMatches extends PHPUnit_Framework_Constraint_PCREMatch
-{
- /**
- * @var string
- */
- protected $string;
-
- /**
- * @param string $string
- */
- public function __construct($string)
- {
- parent::__construct($string);
-
- $this->pattern = $this->createPatternFromFormat(
- preg_replace('/\r\n/', "\n", $string)
- );
-
- $this->string = $string;
- }
-
- protected function failureDescription($other)
- {
- return 'format description matches text';
- }
-
- protected function additionalFailureDescription($other)
- {
- $from = preg_split('(\r\n|\r|\n)', $this->string);
- $to = preg_split('(\r\n|\r|\n)', $other);
-
- foreach ($from as $index => $line) {
- if (isset($to[$index]) && $line !== $to[$index]) {
- $line = $this->createPatternFromFormat($line);
-
- if (preg_match($line, $to[$index]) > 0) {
- $from[$index] = $to[$index];
- }
- }
- }
-
- $this->string = implode("\n", $from);
- $other = implode("\n", $to);
-
- $differ = new Differ("--- Expected\n+++ Actual\n");
-
- return $differ->diff($this->string, $other);
- }
-
- protected function createPatternFromFormat($string)
- {
- $string = str_replace(
- array(
- '%e',
- '%s',
- '%S',
- '%a',
- '%A',
- '%w',
- '%i',
- '%d',
- '%x',
- '%f',
- '%c'
- ),
- array(
- '\\' . DIRECTORY_SEPARATOR,
- '[^\r\n]+',
- '[^\r\n]*',
- '.+',
- '.*',
- '\s*',
- '[+-]?\d+',
- '\d+',
- '[0-9a-fA-F]+',
- '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?',
- '.'
- ),
- preg_quote($string, '/')
- );
-
- return '/^' . $string . '$/s';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringStartsWith.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringStartsWith.php
deleted file mode 100644
index 9aee0116..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/StringStartsWith.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the string it is evaluated for begins with a
- * given prefix.
- *
- * @since Class available since Release 3.4.0
- */
-class PHPUnit_Framework_Constraint_StringStartsWith extends PHPUnit_Framework_Constraint
-{
- /**
- * @var string
- */
- protected $prefix;
-
- /**
- * @param string $prefix
- */
- public function __construct($prefix)
- {
- parent::__construct();
- $this->prefix = $prefix;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- return strpos($other, $this->prefix) === 0;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'starts with "' . $this->prefix . '"';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/TraversableContains.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/TraversableContains.php
deleted file mode 100644
index 1903b1bd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/TraversableContains.php
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the Traversable it is applied to contains
- * a given value.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_TraversableContains extends PHPUnit_Framework_Constraint
-{
- /**
- * @var bool
- */
- protected $checkForObjectIdentity;
-
- /**
- * @var bool
- */
- protected $checkForNonObjectIdentity;
-
- /**
- * @var mixed
- */
- protected $value;
-
- /**
- * @param mixed $value
- * @param bool $checkForObjectIdentity
- * @param bool $checkForNonObjectIdentity
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function __construct($value, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false)
- {
- parent::__construct();
-
- if (!is_bool($checkForObjectIdentity)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'boolean');
- }
-
- if (!is_bool($checkForNonObjectIdentity)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(3, 'boolean');
- }
-
- $this->checkForObjectIdentity = $checkForObjectIdentity;
- $this->checkForNonObjectIdentity = $checkForNonObjectIdentity;
- $this->value = $value;
- }
-
- /**
- * Evaluates the constraint for parameter $other. Returns true if the
- * constraint is met, false otherwise.
- *
- * @param mixed $other Value or object to evaluate.
- *
- * @return bool
- */
- protected function matches($other)
- {
- if ($other instanceof SplObjectStorage) {
- return $other->contains($this->value);
- }
-
- if (is_object($this->value)) {
- foreach ($other as $element) {
- if ($this->checkForObjectIdentity && $element === $this->value) {
- return true;
- } elseif (!$this->checkForObjectIdentity && $element == $this->value) {
- return true;
- }
- }
- } else {
- foreach ($other as $element) {
- if ($this->checkForNonObjectIdentity && $element === $this->value) {
- return true;
- } elseif (!$this->checkForNonObjectIdentity && $element == $this->value) {
- return true;
- }
- }
- }
-
- return false;
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- if (is_string($this->value) && strpos($this->value, "\n") !== false) {
- return 'contains "' . $this->value . '"';
- } else {
- return 'contains ' . $this->exporter->export($this->value);
- }
- }
-
- /**
- * Returns the description of the failure
- *
- * The beginning of failure messages is "Failed asserting that" in most
- * cases. This method should return the second part of that sentence.
- *
- * @param mixed $other Evaluated value or object.
- *
- * @return string
- */
- protected function failureDescription($other)
- {
- return sprintf(
- '%s %s',
- is_array($other) ? 'an array' : 'a traversable',
- $this->toString()
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/TraversableContainsOnly.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/TraversableContainsOnly.php
deleted file mode 100644
index 1397b033..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/TraversableContainsOnly.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Constraint that asserts that the Traversable it is applied to contains
- * only values of a given type.
- *
- * @since Class available since Release 3.1.4
- */
-class PHPUnit_Framework_Constraint_TraversableContainsOnly extends PHPUnit_Framework_Constraint
-{
- /**
- * @var PHPUnit_Framework_Constraint
- */
- protected $constraint;
-
- /**
- * @var string
- */
- protected $type;
-
- /**
- * @param string $type
- * @param bool $isNativeType
- */
- public function __construct($type, $isNativeType = true)
- {
- parent::__construct();
-
- if ($isNativeType) {
- $this->constraint = new PHPUnit_Framework_Constraint_IsType($type);
- } else {
- $this->constraint = new PHPUnit_Framework_Constraint_IsInstanceOf(
- $type
- );
- }
-
- $this->type = $type;
- }
-
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- $success = true;
-
- foreach ($other as $item) {
- if (!$this->constraint->evaluate($item, '', true)) {
- $success = false;
- break;
- }
- }
-
- if ($returnResult) {
- return $success;
- }
-
- if (!$success) {
- $this->fail($other, $description);
- }
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- return 'contains only values of type "' . $this->type . '"';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Xor.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Xor.php
deleted file mode 100644
index 79ecbfdb..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Constraint/Xor.php
+++ /dev/null
@@ -1,122 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Logical XOR.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_Constraint_Xor extends PHPUnit_Framework_Constraint
-{
- /**
- * @var PHPUnit_Framework_Constraint[]
- */
- protected $constraints = array();
-
- /**
- * @param PHPUnit_Framework_Constraint[] $constraints
- */
- public function setConstraints(array $constraints)
- {
- $this->constraints = array();
-
- foreach ($constraints as $constraint) {
- if (!($constraint instanceof PHPUnit_Framework_Constraint)) {
- $constraint = new PHPUnit_Framework_Constraint_IsEqual(
- $constraint
- );
- }
-
- $this->constraints[] = $constraint;
- }
- }
-
- /**
- * Evaluates the constraint for parameter $other
- *
- * If $returnResult is set to false (the default), an exception is thrown
- * in case of a failure. null is returned otherwise.
- *
- * If $returnResult is true, the result of the evaluation is returned as
- * a boolean value instead: true in case of success, false in case of a
- * failure.
- *
- * @param mixed $other Value or object to evaluate.
- * @param string $description Additional information about the test
- * @param bool $returnResult Whether to return a result or throw an exception
- *
- * @return mixed
- *
- * @throws PHPUnit_Framework_ExpectationFailedException
- */
- public function evaluate($other, $description = '', $returnResult = false)
- {
- $success = true;
- $lastResult = null;
- $constraint = null;
-
- foreach ($this->constraints as $constraint) {
- $result = $constraint->evaluate($other, $description, true);
-
- if ($result === $lastResult) {
- $success = false;
- break;
- }
-
- $lastResult = $result;
- }
-
- if ($returnResult) {
- return $success;
- }
-
- if (!$success) {
- $this->fail($other, $description);
- }
- }
-
- /**
- * Returns a string representation of the constraint.
- *
- * @return string
- */
- public function toString()
- {
- $text = '';
-
- foreach ($this->constraints as $key => $constraint) {
- if ($key > 0) {
- $text .= ' xor ';
- }
-
- $text .= $constraint->toString();
- }
-
- return $text;
- }
-
- /**
- * Counts the number of constraint elements.
- *
- * @return int
- *
- * @since Method available since Release 3.4.0
- */
- public function count()
- {
- $count = 0;
-
- foreach ($this->constraints as $constraint) {
- $count += count($constraint);
- }
-
- return $count;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Error.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Error.php
deleted file mode 100644
index 9e793fdd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Error.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Wrapper for PHP errors.
- *
- * @since Class available since Release 2.2.0
- */
-class PHPUnit_Framework_Error extends PHPUnit_Framework_Exception
-{
- /**
- * Constructor.
- *
- * @param string $message
- * @param int $code
- * @param string $file
- * @param int $line
- * @param Exception $previous
- */
- public function __construct($message, $code, $file, $line, Exception $previous = null)
- {
- parent::__construct($message, $code, $previous);
-
- $this->file = $file;
- $this->line = $line;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Deprecated.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Deprecated.php
deleted file mode 100644
index 2ab5598a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Deprecated.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Wrapper for PHP deprecated errors.
- * You can disable deprecated-to-exception conversion by setting
- *
- * <code>
- * PHPUnit_Framework_Error_Deprecated::$enabled = false;
- * </code>
- *
- * @since Class available since Release 3.3.0
- */
-class PHPUnit_Framework_Error_Deprecated extends PHPUnit_Framework_Error
-{
- public static $enabled = true;
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Notice.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Notice.php
deleted file mode 100644
index 477ad932..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Notice.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Wrapper for PHP notices.
- * You can disable notice-to-exception conversion by setting
- *
- * <code>
- * PHPUnit_Framework_Error_Notice::$enabled = false;
- * </code>
- *
- * @since Class available since Release 3.3.0
- */
-class PHPUnit_Framework_Error_Notice extends PHPUnit_Framework_Error
-{
- public static $enabled = true;
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Warning.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Warning.php
deleted file mode 100644
index 9240bcb7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Error/Warning.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Wrapper for PHP warnings.
- * You can disable notice-to-exception conversion by setting
- *
- * <code>
- * PHPUnit_Framework_Error_Warning::$enabled = false;
- * </code>
- *
- * @since Class available since Release 3.3.0
- */
-class PHPUnit_Framework_Error_Warning extends PHPUnit_Framework_Error
-{
- public static $enabled = true;
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Exception.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Exception.php
deleted file mode 100644
index 715c55e4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Exception.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Base class for all PHPUnit Framework exceptions.
- *
- * Ensures that exceptions thrown during a test run do not leave stray
- * references behind.
- *
- * Every Exception contains a stack trace. Each stack frame contains the 'args'
- * of the called function. The function arguments can contain references to
- * instantiated objects. The references prevent the objects from being
- * destructed (until test results are eventually printed), so memory cannot be
- * freed up.
- *
- * With enabled process isolation, test results are serialized in the child
- * process and unserialized in the parent process. The stack trace of Exceptions
- * may contain objects that cannot be serialized or unserialized (e.g., PDO
- * connections). Unserializing user-space objects from the child process into
- * the parent would break the intended encapsulation of process isolation.
- *
- * @see http://fabien.potencier.org/article/9/php-serialization-stack-traces-and-exceptions
- * @since Class available since Release 3.4.0
- */
-class PHPUnit_Framework_Exception extends RuntimeException implements PHPUnit_Exception
-{
- /**
- * @var array
- */
- protected $serializableTrace;
-
- public function __construct($message = '', $code = 0, Exception $previous = null)
- {
- parent::__construct($message, $code, $previous);
-
- $this->serializableTrace = $this->getTrace();
- foreach ($this->serializableTrace as $i => $call) {
- unset($this->serializableTrace[$i]['args']);
- }
- }
-
- /**
- * Returns the serializable trace (without 'args').
- *
- * @return array
- */
- public function getSerializableTrace()
- {
- return $this->serializableTrace;
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- $string = PHPUnit_Framework_TestFailure::exceptionToString($this);
-
- if ($trace = PHPUnit_Util_Filter::getFilteredStacktrace($this)) {
- $string .= "\n" . $trace;
- }
-
- return $string;
- }
-
- public function __sleep()
- {
- return array_keys(get_object_vars($this));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/ExceptionWrapper.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/ExceptionWrapper.php
deleted file mode 100644
index fa3e9ee1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/ExceptionWrapper.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Wraps Exceptions thrown by code under test.
- *
- * Re-instantiates Exceptions thrown by user-space code to retain their original
- * class names, properties, and stack traces (but without arguments).
- *
- * Unlike PHPUnit_Framework_Exception, the complete stack of previous Exceptions
- * is processed.
- *
- * @since Class available since Release 4.3.0
- */
-class PHPUnit_Framework_ExceptionWrapper extends PHPUnit_Framework_Exception
-{
- /**
- * @var string
- */
- protected $classname;
-
- /**
- * @var PHPUnit_Framework_ExceptionWrapper|null
- */
- protected $previous;
-
- /**
- * @param Throwable|Exception $e
- */
- public function __construct($e)
- {
- // PDOException::getCode() is a string.
- // @see http://php.net/manual/en/class.pdoexception.php#95812
- parent::__construct($e->getMessage(), (int) $e->getCode());
-
- $this->classname = get_class($e);
- $this->file = $e->getFile();
- $this->line = $e->getLine();
-
- $this->serializableTrace = $e->getTrace();
-
- foreach ($this->serializableTrace as $i => $call) {
- unset($this->serializableTrace[$i]['args']);
- }
-
- if ($e->getPrevious()) {
- $this->previous = new self($e->getPrevious());
- }
- }
-
- /**
- * @return string
- */
- public function getClassname()
- {
- return $this->classname;
- }
-
- /**
- * @return PHPUnit_Framework_ExceptionWrapper
- */
- public function getPreviousWrapped()
- {
- return $this->previous;
- }
-
- /**
- * @return string
- */
- public function __toString()
- {
- $string = PHPUnit_Framework_TestFailure::exceptionToString($this);
-
- if ($trace = PHPUnit_Util_Filter::getFilteredStacktrace($this)) {
- $string .= "\n" . $trace;
- }
-
- if ($this->previous) {
- $string .= "\nCaused by\n" . $this->previous;
- }
-
- return $string;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/ExpectationFailedException.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/ExpectationFailedException.php
deleted file mode 100644
index 60229a90..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/ExpectationFailedException.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Exception for expectations which failed their check.
- *
- * The exception contains the error message and optionally a
- * SebastianBergmann\Comparator\ComparisonFailure which is used to
- * generate diff output of the failed expectations.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_ExpectationFailedException extends PHPUnit_Framework_AssertionFailedError
-{
- /**
- * @var SebastianBergmann\Comparator\ComparisonFailure
- */
- protected $comparisonFailure;
-
- public function __construct($message, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = null, Exception $previous = null)
- {
- $this->comparisonFailure = $comparisonFailure;
-
- parent::__construct($message, 0, $previous);
- }
-
- /**
- * @return SebastianBergmann\Comparator\ComparisonFailure
- */
- public function getComparisonFailure()
- {
- return $this->comparisonFailure;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTest.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTest.php
deleted file mode 100644
index 5bfeba76..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTest.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A marker interface for marking any exception/error as result of an unit
- * test as incomplete implementation or currently not implemented.
- *
- * @since Interface available since Release 2.0.0
- */
-interface PHPUnit_Framework_IncompleteTest
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTestCase.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTestCase.php
deleted file mode 100644
index b2f393e3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTestCase.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * An incomplete test case
- *
- * @since Class available since Release 4.3.0
- */
-class PHPUnit_Framework_IncompleteTestCase extends PHPUnit_Framework_TestCase
-{
- /**
- * @var string
- */
- protected $message = '';
-
- /**
- * @var bool
- */
- protected $backupGlobals = false;
-
- /**
- * @var bool
- */
- protected $backupStaticAttributes = false;
-
- /**
- * @var bool
- */
- protected $runTestInSeparateProcess = false;
-
- /**
- * @var bool
- */
- protected $useErrorHandler = false;
-
- /**
- * @var bool
- */
- protected $useOutputBuffering = false;
-
- /**
- * @param string $className
- * @param string $methodName
- * @param string $message
- */
- public function __construct($className, $methodName, $message = '')
- {
- $this->message = $message;
- parent::__construct($className . '::' . $methodName);
- }
-
- /**
- * @throws PHPUnit_Framework_Exception
- */
- protected function runTest()
- {
- $this->markTestIncomplete($this->message);
- }
-
- /**
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Returns a string representation of the test case.
- *
- * @return string
- */
- public function toString()
- {
- return $this->getName();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTestError.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTestError.php
deleted file mode 100644
index 03ffd2f8..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/IncompleteTestError.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Extension to PHPUnit_Framework_AssertionFailedError to mark the special
- * case of an incomplete test.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Framework_IncompleteTestError extends PHPUnit_Framework_AssertionFailedError implements PHPUnit_Framework_IncompleteTest
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/InvalidCoversTargetError.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/InvalidCoversTargetError.php
deleted file mode 100644
index a363ce1d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/InvalidCoversTargetError.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Extension to PHPUnit_Framework_AssertionFailedError to mark the special
- * case of a test that is skipped because of an invalid @covers annotation.
- *
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Framework_InvalidCoversTargetError extends PHPUnit_Framework_AssertionFailedError implements PHPUnit_Framework_SkippedTest
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/InvalidCoversTargetException.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/InvalidCoversTargetException.php
deleted file mode 100644
index 324c76d3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/InvalidCoversTargetException.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Framework_InvalidCoversTargetException extends PHPUnit_Framework_CodeCoverageException
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/OutputError.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/OutputError.php
deleted file mode 100644
index c3f5dcc7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/OutputError.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Extension to PHPUnit_Framework_AssertionFailedError to mark the special
- * case of a test that printed output.
- *
- * @since Class available since Release 3.6.0
- */
-class PHPUnit_Framework_OutputError extends PHPUnit_Framework_AssertionFailedError
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/RiskyTest.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/RiskyTest.php
deleted file mode 100644
index d476eeda..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/RiskyTest.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A marker interface for marking any exception/error as result of an unit
- * test as risky.
- *
- * @since Interface available since Release 4.0.0
- */
-interface PHPUnit_Framework_RiskyTest
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/RiskyTestError.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/RiskyTestError.php
deleted file mode 100644
index 781a50cb..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/RiskyTestError.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Extension to PHPUnit_Framework_AssertionFailedError to mark the special
- * case of a risky test.
- *
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Framework_RiskyTestError extends PHPUnit_Framework_AssertionFailedError implements PHPUnit_Framework_RiskyTest
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/SelfDescribing.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/SelfDescribing.php
deleted file mode 100644
index 9daffad3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/SelfDescribing.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Interface for classes that can return a description of itself.
- *
- * @since Interface available since Release 3.0.0
- */
-interface PHPUnit_Framework_SelfDescribing
-{
- /**
- * Returns a string representation of the object.
- *
- * @return string
- */
- public function toString();
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTest.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTest.php
deleted file mode 100644
index bc9876a0..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTest.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A marker interface for marking a unit test as being skipped.
- *
- * @since Interface available since Release 3.0.0
- */
-interface PHPUnit_Framework_SkippedTest
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestCase.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestCase.php
deleted file mode 100644
index 8a841dfd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestCase.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A skipped test case
- *
- * @since Class available since Release 4.3.0
- */
-class PHPUnit_Framework_SkippedTestCase extends PHPUnit_Framework_TestCase
-{
- /**
- * @var string
- */
- protected $message = '';
-
- /**
- * @var bool
- */
- protected $backupGlobals = false;
-
- /**
- * @var bool
- */
- protected $backupStaticAttributes = false;
-
- /**
- * @var bool
- */
- protected $runTestInSeparateProcess = false;
-
- /**
- * @var bool
- */
- protected $useErrorHandler = false;
-
- /**
- * @var bool
- */
- protected $useOutputBuffering = false;
-
- /**
- * @param string $message
- */
- public function __construct($className, $methodName, $message = '')
- {
- $this->message = $message;
- parent::__construct($className . '::' . $methodName);
- }
-
- /**
- * @throws PHPUnit_Framework_Exception
- */
- protected function runTest()
- {
- $this->markTestSkipped($this->message);
- }
-
- /**
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Returns a string representation of the test case.
- *
- * @return string
- */
- public function toString()
- {
- return $this->getName();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestError.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestError.php
deleted file mode 100644
index d8df860a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestError.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Extension to PHPUnit_Framework_AssertionFailedError to mark the special
- * case of a skipped test.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Framework_SkippedTestError extends PHPUnit_Framework_AssertionFailedError implements PHPUnit_Framework_SkippedTest
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestSuiteError.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestSuiteError.php
deleted file mode 100644
index a57620bc..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/SkippedTestSuiteError.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Extension to PHPUnit_Framework_AssertionFailedError to mark the special
- * case of a skipped test suite.
- *
- * @since Class available since Release 3.1.0
- */
-class PHPUnit_Framework_SkippedTestSuiteError extends PHPUnit_Framework_AssertionFailedError implements PHPUnit_Framework_SkippedTest
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/SyntheticError.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/SyntheticError.php
deleted file mode 100644
index 235b046f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/SyntheticError.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Creates a synthetic failed assertion.
- *
- * @since Class available since Release 3.5.0
- */
-class PHPUnit_Framework_SyntheticError extends PHPUnit_Framework_AssertionFailedError
-{
- /**
- * The synthetic file.
- *
- * @var string
- */
- protected $syntheticFile = '';
-
- /**
- * The synthetic line number.
- *
- * @var int
- */
- protected $syntheticLine = 0;
-
- /**
- * The synthetic trace.
- *
- * @var array
- */
- protected $syntheticTrace = array();
-
- /**
- * Constructor.
- *
- * @param string $message
- * @param int $code
- * @param string $file
- * @param int $line
- * @param array $trace
- */
- public function __construct($message, $code, $file, $line, $trace)
- {
- parent::__construct($message, $code);
-
- $this->syntheticFile = $file;
- $this->syntheticLine = $line;
- $this->syntheticTrace = $trace;
- }
-
- /**
- * @return string
- */
- public function getSyntheticFile()
- {
- return $this->syntheticFile;
- }
-
- /**
- * @return int
- */
- public function getSyntheticLine()
- {
- return $this->syntheticLine;
- }
-
- /**
- * @return array
- */
- public function getSyntheticTrace()
- {
- return $this->syntheticTrace;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Test.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Test.php
deleted file mode 100644
index 4ad11afa..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Test.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A Test can be run and collect its results.
- *
- * @since Interface available since Release 2.0.0
- */
-interface PHPUnit_Framework_Test extends Countable
-{
- /**
- * Runs a test and collects its result in a TestResult instance.
- *
- * @param PHPUnit_Framework_TestResult $result
- *
- * @return PHPUnit_Framework_TestResult
- */
- public function run(PHPUnit_Framework_TestResult $result = null);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestCase.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/TestCase.php
deleted file mode 100644
index 638f4251..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestCase.php
+++ /dev/null
@@ -1,2206 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\GlobalState\Snapshot;
-use SebastianBergmann\GlobalState\Restorer;
-use SebastianBergmann\GlobalState\Blacklist;
-use SebastianBergmann\Diff\Differ;
-use SebastianBergmann\Exporter\Exporter;
-use Prophecy\Exception\Prediction\PredictionException;
-use Prophecy\Prophet;
-
-/**
- * A TestCase defines the fixture to run multiple tests.
- *
- * To define a TestCase
- *
- * 1) Implement a subclass of PHPUnit_Framework_TestCase.
- * 2) Define instance variables that store the state of the fixture.
- * 3) Initialize the fixture state by overriding setUp().
- * 4) Clean-up after a test by overriding tearDown().
- *
- * Each test runs in its own fixture so there can be no side effects
- * among test runs.
- *
- * Here is an example:
- *
- * <code>
- * <?php
- * class MathTest extends PHPUnit_Framework_TestCase
- * {
- * public $value1;
- * public $value2;
- *
- * protected function setUp()
- * {
- * $this->value1 = 2;
- * $this->value2 = 3;
- * }
- * }
- * ?>
- * </code>
- *
- * For each test implement a method which interacts with the fixture.
- * Verify the expected results with assertions specified by calling
- * assert with a boolean.
- *
- * <code>
- * <?php
- * public function testPass()
- * {
- * $this->assertTrue($this->value1 + $this->value2 == 5);
- * }
- * ?>
- * </code>
- *
- * @since Class available since Release 2.0.0
- */
-abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert implements PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing
-{
- /**
- * Enable or disable the backup and restoration of the $GLOBALS array.
- * Overwrite this attribute in a child class of TestCase.
- * Setting this attribute in setUp() has no effect!
- *
- * @var bool
- */
- protected $backupGlobals = null;
-
- /**
- * @var array
- */
- protected $backupGlobalsBlacklist = array();
-
- /**
- * Enable or disable the backup and restoration of static attributes.
- * Overwrite this attribute in a child class of TestCase.
- * Setting this attribute in setUp() has no effect!
- *
- * @var bool
- */
- protected $backupStaticAttributes = null;
-
- /**
- * @var array
- */
- protected $backupStaticAttributesBlacklist = array();
-
- /**
- * Whether or not this test is to be run in a separate PHP process.
- *
- * @var bool
- */
- protected $runTestInSeparateProcess = null;
-
- /**
- * Whether or not this test should preserve the global state when
- * running in a separate PHP process.
- *
- * @var bool
- */
- protected $preserveGlobalState = true;
-
- /**
- * Whether or not this test is running in a separate PHP process.
- *
- * @var bool
- */
- private $inIsolation = false;
-
- /**
- * @var array
- */
- private $data = array();
-
- /**
- * @var string
- */
- private $dataName = '';
-
- /**
- * @var bool
- */
- private $useErrorHandler = null;
-
- /**
- * The name of the expected Exception.
- *
- * @var mixed
- */
- private $expectedException = null;
-
- /**
- * The message of the expected Exception.
- *
- * @var string
- */
- private $expectedExceptionMessage = '';
-
- /**
- * The regex pattern to validate the expected Exception message.
- *
- * @var string
- */
- private $expectedExceptionMessageRegExp = '';
-
- /**
- * The code of the expected Exception.
- *
- * @var int
- */
- private $expectedExceptionCode;
-
- /**
- * The name of the test case.
- *
- * @var string
- */
- private $name = null;
-
- /**
- * @var array
- */
- private $dependencies = array();
-
- /**
- * @var array
- */
- private $dependencyInput = array();
-
- /**
- * @var array
- */
- private $iniSettings = array();
-
- /**
- * @var array
- */
- private $locale = array();
-
- /**
- * @var array
- */
- private $mockObjects = array();
-
- /**
- * @var array
- */
- private $mockObjectGenerator = null;
-
- /**
- * @var int
- */
- private $status;
-
- /**
- * @var string
- */
- private $statusMessage = '';
-
- /**
- * @var int
- */
- private $numAssertions = 0;
-
- /**
- * @var PHPUnit_Framework_TestResult
- */
- private $result;
-
- /**
- * @var mixed
- */
- private $testResult;
-
- /**
- * @var string
- */
- private $output = '';
-
- /**
- * @var string
- */
- private $outputExpectedRegex = null;
-
- /**
- * @var string
- */
- private $outputExpectedString = null;
-
- /**
- * @var mixed
- */
- private $outputCallback = false;
-
- /**
- * @var bool
- */
- private $outputBufferingActive = false;
-
- /**
- * @var int
- */
- private $outputBufferingLevel;
-
- /**
- * @var SebastianBergmann\GlobalState\Snapshot
- */
- private $snapshot;
-
- /**
- * @var Prophecy\Prophet
- */
- private $prophet;
-
- /**
- * @var bool
- */
- private $disallowChangesToGlobalState = false;
-
- /**
- * Constructs a test case with the given name.
- *
- * @param string $name
- * @param array $data
- * @param string $dataName
- */
- public function __construct($name = null, array $data = array(), $dataName = '')
- {
- if ($name !== null) {
- $this->setName($name);
- }
-
- $this->data = $data;
- $this->dataName = $dataName;
- }
-
- /**
- * Returns a string representation of the test case.
- *
- * @return string
- */
- public function toString()
- {
- $class = new ReflectionClass($this);
-
- $buffer = sprintf(
- '%s::%s',
- $class->name,
- $this->getName(false)
- );
-
- return $buffer . $this->getDataSetAsString();
- }
-
- /**
- * Counts the number of test cases executed by run(TestResult result).
- *
- * @return int
- */
- public function count()
- {
- return 1;
- }
-
- /**
- * Returns the annotations for this test.
- *
- * @return array
- *
- * @since Method available since Release 3.4.0
- */
- public function getAnnotations()
- {
- return PHPUnit_Util_Test::parseTestMethodAnnotations(
- get_class($this),
- $this->name
- );
- }
-
- /**
- * Gets the name of a TestCase.
- *
- * @param bool $withDataSet
- *
- * @return string
- */
- public function getName($withDataSet = true)
- {
- if ($withDataSet) {
- return $this->name . $this->getDataSetAsString(false);
- } else {
- return $this->name;
- }
- }
-
- /**
- * Returns the size of the test.
- *
- * @return int
- *
- * @since Method available since Release 3.6.0
- */
- public function getSize()
- {
- return PHPUnit_Util_Test::getSize(
- get_class($this),
- $this->getName(false)
- );
- }
-
- /**
- * @return string
- *
- * @since Method available since Release 3.6.0
- */
- public function getActualOutput()
- {
- if (!$this->outputBufferingActive) {
- return $this->output;
- } else {
- return ob_get_contents();
- }
- }
-
- /**
- * @return bool
- *
- * @since Method available since Release 3.6.0
- */
- public function hasOutput()
- {
- if (strlen($this->output) === 0) {
- return false;
- }
-
- if ($this->hasExpectationOnOutput()) {
- return false;
- }
-
- return true;
- }
-
- /**
- * @param string $expectedRegex
- *
- * @since Method available since Release 3.6.0
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function expectOutputRegex($expectedRegex)
- {
- if ($this->outputExpectedString !== null) {
- throw new PHPUnit_Framework_Exception;
- }
-
- if (is_string($expectedRegex) || is_null($expectedRegex)) {
- $this->outputExpectedRegex = $expectedRegex;
- }
- }
-
- /**
- * @param string $expectedString
- *
- * @since Method available since Release 3.6.0
- */
- public function expectOutputString($expectedString)
- {
- if ($this->outputExpectedRegex !== null) {
- throw new PHPUnit_Framework_Exception;
- }
-
- if (is_string($expectedString) || is_null($expectedString)) {
- $this->outputExpectedString = $expectedString;
- }
- }
-
- /**
- * @return bool
- *
- * @since Method available since Release 3.6.5
- * @deprecated
- */
- public function hasPerformedExpectationsOnOutput()
- {
- return $this->hasExpectationOnOutput();
- }
-
- /**
- * @return bool
- *
- * @since Method available since Release 4.3.3
- */
- public function hasExpectationOnOutput()
- {
- return is_string($this->outputExpectedString) || is_string($this->outputExpectedRegex);
- }
-
- /**
- * @return string
- *
- * @since Method available since Release 3.2.0
- */
- public function getExpectedException()
- {
- return $this->expectedException;
- }
-
- /**
- * @param mixed $exceptionName
- * @param string $exceptionMessage
- * @param int $exceptionCode
- *
- * @since Method available since Release 3.2.0
- */
- public function setExpectedException($exceptionName, $exceptionMessage = '', $exceptionCode = null)
- {
- $this->expectedException = $exceptionName;
- $this->expectedExceptionMessage = $exceptionMessage;
- $this->expectedExceptionCode = $exceptionCode;
- }
-
- /**
- * @param mixed $exceptionName
- * @param string $exceptionMessageRegExp
- * @param int $exceptionCode
- *
- * @since Method available since Release 4.3.0
- */
- public function setExpectedExceptionRegExp($exceptionName, $exceptionMessageRegExp = '', $exceptionCode = null)
- {
- $this->expectedException = $exceptionName;
- $this->expectedExceptionMessageRegExp = $exceptionMessageRegExp;
- $this->expectedExceptionCode = $exceptionCode;
- }
-
- /**
- * @since Method available since Release 3.4.0
- */
- protected function setExpectedExceptionFromAnnotation()
- {
- try {
- $expectedException = PHPUnit_Util_Test::getExpectedException(
- get_class($this),
- $this->name
- );
-
- if ($expectedException !== false) {
- $this->setExpectedException(
- $expectedException['class'],
- $expectedException['message'],
- $expectedException['code']
- );
-
- if (!empty($expectedException['message_regex'])) {
- $this->setExpectedExceptionRegExp(
- $expectedException['class'],
- $expectedException['message_regex'],
- $expectedException['code']
- );
- }
- }
- } catch (ReflectionException $e) {
- }
- }
-
- /**
- * @param bool $useErrorHandler
- *
- * @since Method available since Release 3.4.0
- */
- public function setUseErrorHandler($useErrorHandler)
- {
- $this->useErrorHandler = $useErrorHandler;
- }
-
- /**
- * @since Method available since Release 3.4.0
- */
- protected function setUseErrorHandlerFromAnnotation()
- {
- try {
- $useErrorHandler = PHPUnit_Util_Test::getErrorHandlerSettings(
- get_class($this),
- $this->name
- );
-
- if ($useErrorHandler !== null) {
- $this->setUseErrorHandler($useErrorHandler);
- }
- } catch (ReflectionException $e) {
- }
- }
-
- /**
- * @since Method available since Release 3.6.0
- */
- protected function checkRequirements()
- {
- if (!$this->name || !method_exists($this, $this->name)) {
- return;
- }
-
- $missingRequirements = PHPUnit_Util_Test::getMissingRequirements(
- get_class($this),
- $this->name
- );
-
- if (!empty($missingRequirements)) {
- $this->markTestSkipped(implode(PHP_EOL, $missingRequirements));
- }
- }
-
- /**
- * Returns the status of this test.
- *
- * @return int
- *
- * @since Method available since Release 3.1.0
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * Returns the status message of this test.
- *
- * @return string
- *
- * @since Method available since Release 3.3.0
- */
- public function getStatusMessage()
- {
- return $this->statusMessage;
- }
-
- /**
- * Returns whether or not this test has failed.
- *
- * @return bool
- *
- * @since Method available since Release 3.0.0
- */
- public function hasFailed()
- {
- $status = $this->getStatus();
-
- return $status == PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE ||
- $status == PHPUnit_Runner_BaseTestRunner::STATUS_ERROR;
- }
-
- /**
- * Runs the test case and collects the results in a TestResult object.
- * If no TestResult object is passed a new one will be created.
- *
- * @param PHPUnit_Framework_TestResult $result
- *
- * @return PHPUnit_Framework_TestResult
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function run(PHPUnit_Framework_TestResult $result = null)
- {
- if ($result === null) {
- $result = $this->createResult();
- }
-
- if (!$this instanceof PHPUnit_Framework_Warning) {
- $this->setTestResultObject($result);
- $this->setUseErrorHandlerFromAnnotation();
- }
-
- if ($this->useErrorHandler !== null) {
- $oldErrorHandlerSetting = $result->getConvertErrorsToExceptions();
- $result->convertErrorsToExceptions($this->useErrorHandler);
- }
-
- if (!$this instanceof PHPUnit_Framework_Warning && !$this->handleDependencies()) {
- return;
- }
-
- if ($this->runTestInSeparateProcess === true &&
- $this->inIsolation !== true &&
- !$this instanceof PHPUnit_Extensions_SeleniumTestCase &&
- !$this instanceof PHPUnit_Extensions_PhptTestCase) {
- $class = new ReflectionClass($this);
-
- $template = new Text_Template(
- __DIR__ . '/../Util/PHP/Template/TestCaseMethod.tpl'
- );
-
- if ($this->preserveGlobalState) {
- $constants = PHPUnit_Util_GlobalState::getConstantsAsString();
- $globals = PHPUnit_Util_GlobalState::getGlobalsAsString();
- $includedFiles = PHPUnit_Util_GlobalState::getIncludedFilesAsString();
- $iniSettings = PHPUnit_Util_GlobalState::getIniSettingsAsString();
- } else {
- $constants = '';
- if (!empty($GLOBALS['__PHPUNIT_BOOTSTRAP'])) {
- $globals = '$GLOBALS[\'__PHPUNIT_BOOTSTRAP\'] = ' . var_export($GLOBALS['__PHPUNIT_BOOTSTRAP'], true) . ";\n";
- } else {
- $globals = '';
- }
- $includedFiles = '';
- $iniSettings = '';
- }
-
- $coverage = $result->getCollectCodeCoverageInformation() ? 'true' : 'false';
- $isStrictAboutTestsThatDoNotTestAnything = $result->isStrictAboutTestsThatDoNotTestAnything() ? 'true' : 'false';
- $isStrictAboutOutputDuringTests = $result->isStrictAboutOutputDuringTests() ? 'true' : 'false';
- $isStrictAboutTestSize = $result->isStrictAboutTestSize() ? 'true' : 'false';
- $isStrictAboutTodoAnnotatedTests = $result->isStrictAboutTodoAnnotatedTests() ? 'true' : 'false';
-
- if (defined('PHPUNIT_COMPOSER_INSTALL')) {
- $composerAutoload = var_export(PHPUNIT_COMPOSER_INSTALL, true);
- } else {
- $composerAutoload = '\'\'';
- }
-
- if (defined('__PHPUNIT_PHAR__')) {
- $phar = var_export(__PHPUNIT_PHAR__, true);
- } else {
- $phar = '\'\'';
- }
-
- if ($result->getCodeCoverage()) {
- $codeCoverageFilter = $result->getCodeCoverage()->filter();
- } else {
- $codeCoverageFilter = null;
- }
-
- $data = var_export(serialize($this->data), true);
- $dataName = var_export($this->dataName, true);
- $dependencyInput = var_export(serialize($this->dependencyInput), true);
- $includePath = var_export(get_include_path(), true);
- $codeCoverageFilter = var_export(serialize($codeCoverageFilter), true);
- // must do these fixes because TestCaseMethod.tpl has unserialize('{data}') in it, and we can't break BC
- // the lines above used to use addcslashes() rather than var_export(), which breaks null byte escape sequences
- $data = "'." . $data . ".'";
- $dataName = "'.(" . $dataName . ").'";
- $dependencyInput = "'." . $dependencyInput . ".'";
- $includePath = "'." . $includePath . ".'";
- $codeCoverageFilter = "'." . $codeCoverageFilter . ".'";
-
- $configurationFilePath = (isset($GLOBALS['__PHPUNIT_CONFIGURATION_FILE']) ? $GLOBALS['__PHPUNIT_CONFIGURATION_FILE'] : '');
-
- $template->setVar(
- array(
- 'composerAutoload' => $composerAutoload,
- 'phar' => $phar,
- 'filename' => $class->getFileName(),
- 'className' => $class->getName(),
- 'methodName' => $this->name,
- 'collectCodeCoverageInformation' => $coverage,
- 'data' => $data,
- 'dataName' => $dataName,
- 'dependencyInput' => $dependencyInput,
- 'constants' => $constants,
- 'globals' => $globals,
- 'include_path' => $includePath,
- 'included_files' => $includedFiles,
- 'iniSettings' => $iniSettings,
- 'isStrictAboutTestsThatDoNotTestAnything' => $isStrictAboutTestsThatDoNotTestAnything,
- 'isStrictAboutOutputDuringTests' => $isStrictAboutOutputDuringTests,
- 'isStrictAboutTestSize' => $isStrictAboutTestSize,
- 'isStrictAboutTodoAnnotatedTests' => $isStrictAboutTodoAnnotatedTests,
- 'codeCoverageFilter' => $codeCoverageFilter,
- 'configurationFilePath' => $configurationFilePath
- )
- );
-
- $this->prepareTemplate($template);
-
- $php = PHPUnit_Util_PHP::factory();
- $php->runTestJob($template->render(), $this, $result);
- } else {
- $result->run($this);
- }
-
- if ($this->useErrorHandler !== null) {
- $result->convertErrorsToExceptions($oldErrorHandlerSetting);
- }
-
- $this->result = null;
-
- return $result;
- }
-
- /**
- * Runs the bare test sequence.
- */
- public function runBare()
- {
- $this->numAssertions = 0;
-
- $this->snapshotGlobalState();
- $this->startOutputBuffering();
- clearstatcache();
- $currentWorkingDirectory = getcwd();
-
- $hookMethods = PHPUnit_Util_Test::getHookMethods(get_class($this));
-
- try {
- $hasMetRequirements = false;
- $this->checkRequirements();
- $hasMetRequirements = true;
-
- if ($this->inIsolation) {
- foreach ($hookMethods['beforeClass'] as $method) {
- $this->$method();
- }
- }
-
- $this->setExpectedExceptionFromAnnotation();
-
- foreach ($hookMethods['before'] as $method) {
- $this->$method();
- }
-
- $this->assertPreConditions();
- $this->testResult = $this->runTest();
- $this->verifyMockObjects();
- $this->assertPostConditions();
-
- $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_PASSED;
- } catch (PHPUnit_Framework_IncompleteTest $e) {
- $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE;
- $this->statusMessage = $e->getMessage();
- } catch (PHPUnit_Framework_SkippedTest $e) {
- $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED;
- $this->statusMessage = $e->getMessage();
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE;
- $this->statusMessage = $e->getMessage();
- } catch (PredictionException $e) {
- $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE;
- $this->statusMessage = $e->getMessage();
- } catch (Throwable $_e) {
- $e = $_e;
- } catch (Exception $_e) {
- $e = $_e;
- }
-
- if (isset($_e)) {
- $this->status = PHPUnit_Runner_BaseTestRunner::STATUS_ERROR;
- $this->statusMessage = $_e->getMessage();
- }
-
- // Clean up the mock objects.
- $this->mockObjects = array();
- $this->prophet = null;
-
- // Tear down the fixture. An exception raised in tearDown() will be
- // caught and passed on when no exception was raised before.
- try {
- if ($hasMetRequirements) {
- foreach ($hookMethods['after'] as $method) {
- $this->$method();
- }
-
- if ($this->inIsolation) {
- foreach ($hookMethods['afterClass'] as $method) {
- $this->$method();
- }
- }
- }
- } catch (Throwable $_e) {
- if (!isset($e)) {
- $e = $_e;
- }
- } catch (Exception $_e) {
- if (!isset($e)) {
- $e = $_e;
- }
- }
-
- try {
- $this->stopOutputBuffering();
- } catch (PHPUnit_Framework_RiskyTestError $_e) {
- if (!isset($e)) {
- $e = $_e;
- }
- }
-
- clearstatcache();
-
- if ($currentWorkingDirectory != getcwd()) {
- chdir($currentWorkingDirectory);
- }
-
- $this->restoreGlobalState();
-
- // Clean up INI settings.
- foreach ($this->iniSettings as $varName => $oldValue) {
- ini_set($varName, $oldValue);
- }
-
- $this->iniSettings = array();
-
- // Clean up locale settings.
- foreach ($this->locale as $category => $locale) {
- setlocale($category, $locale);
- }
-
- // Perform assertion on output.
- if (!isset($e)) {
- try {
- if ($this->outputExpectedRegex !== null) {
- $this->assertRegExp($this->outputExpectedRegex, $this->output);
- } elseif ($this->outputExpectedString !== null) {
- $this->assertEquals($this->outputExpectedString, $this->output);
- }
- } catch (Throwable $_e) {
- $e = $_e;
- } catch (Exception $_e) {
- $e = $_e;
- }
- }
-
- // Workaround for missing "finally".
- if (isset($e)) {
- if ($e instanceof PredictionException) {
- $e = new PHPUnit_Framework_AssertionFailedError($e->getMessage());
- }
-
- if (!$e instanceof Exception) {
- // Rethrow Error directly on PHP 7 as onNotSuccessfulTest does not support it
- throw $e;
- }
-
- $this->onNotSuccessfulTest($e);
- }
- }
-
- /**
- * Override to run the test and assert its state.
- *
- * @return mixed
- *
- * @throws Exception|PHPUnit_Framework_Exception
- * @throws PHPUnit_Framework_Exception
- */
- protected function runTest()
- {
- if ($this->name === null) {
- throw new PHPUnit_Framework_Exception(
- 'PHPUnit_Framework_TestCase::$name must not be null.'
- );
- }
-
- try {
- $class = new ReflectionClass($this);
- $method = $class->getMethod($this->name);
- } catch (ReflectionException $e) {
- $this->fail($e->getMessage());
- }
-
- try {
- $testResult = $method->invokeArgs(
- $this,
- array_merge($this->data, $this->dependencyInput)
- );
- } catch (Throwable $_e) {
- $e = $_e;
- } catch (Exception $_e) {
- $e = $_e;
- }
-
- if (isset($e)) {
- $checkException = false;
-
- if (!($e instanceof PHPUnit_Framework_SkippedTestError) && is_string($this->expectedException)) {
- $checkException = true;
-
- if ($e instanceof PHPUnit_Framework_Exception) {
- $checkException = false;
- }
-
- $reflector = new ReflectionClass($this->expectedException);
-
- if ($this->expectedException === 'PHPUnit_Framework_Exception' ||
- $this->expectedException === '\PHPUnit_Framework_Exception' ||
- $reflector->isSubclassOf('PHPUnit_Framework_Exception')) {
- $checkException = true;
- }
- }
-
- if ($checkException) {
- $this->assertThat(
- $e,
- new PHPUnit_Framework_Constraint_Exception(
- $this->expectedException
- )
- );
-
- if (is_string($this->expectedExceptionMessage) &&
- !empty($this->expectedExceptionMessage)) {
- $this->assertThat(
- $e,
- new PHPUnit_Framework_Constraint_ExceptionMessage(
- $this->expectedExceptionMessage
- )
- );
- }
-
- if (is_string($this->expectedExceptionMessageRegExp) &&
- !empty($this->expectedExceptionMessageRegExp)) {
- $this->assertThat(
- $e,
- new PHPUnit_Framework_Constraint_ExceptionMessageRegExp(
- $this->expectedExceptionMessageRegExp
- )
- );
- }
-
- if ($this->expectedExceptionCode !== null) {
- $this->assertThat(
- $e,
- new PHPUnit_Framework_Constraint_ExceptionCode(
- $this->expectedExceptionCode
- )
- );
- }
-
- return;
- } else {
- throw $e;
- }
- }
-
- if ($this->expectedException !== null) {
- $this->assertThat(
- null,
- new PHPUnit_Framework_Constraint_Exception(
- $this->expectedException
- )
- );
- }
-
- return $testResult;
- }
-
- /**
- * Verifies the mock object expectations.
- *
- * @since Method available since Release 3.5.0
- */
- protected function verifyMockObjects()
- {
- foreach ($this->mockObjects as $mockObject) {
- if ($mockObject->__phpunit_hasMatchers()) {
- $this->numAssertions++;
- }
-
- $mockObject->__phpunit_verify();
- }
-
- if ($this->prophet !== null) {
- try {
- $this->prophet->checkPredictions();
- } catch (Throwable $e) {
- /* Intentionally left empty */
- } catch (Exception $e) {
- /* Intentionally left empty */
- }
-
- foreach ($this->prophet->getProphecies() as $objectProphecy) {
- foreach ($objectProphecy->getMethodProphecies() as $methodProphecies) {
- foreach ($methodProphecies as $methodProphecy) {
- $this->numAssertions += count($methodProphecy->getCheckedPredictions());
- }
- }
- }
-
- if (isset($e)) {
- throw $e;
- }
- }
- }
-
- /**
- * Sets the name of a TestCase.
- *
- * @param string
- */
- public function setName($name)
- {
- $this->name = $name;
- }
-
- /**
- * Sets the dependencies of a TestCase.
- *
- * @param array $dependencies
- *
- * @since Method available since Release 3.4.0
- */
- public function setDependencies(array $dependencies)
- {
- $this->dependencies = $dependencies;
- }
-
- /**
- * Returns true if the tests has dependencies
- *
- * @return bool
- *
- * @since Method available since Release 4.0.0
- */
- public function hasDependencies()
- {
- return count($this->dependencies) > 0;
- }
-
- /**
- * Sets
- *
- * @param array $dependencyInput
- *
- * @since Method available since Release 3.4.0
- */
- public function setDependencyInput(array $dependencyInput)
- {
- $this->dependencyInput = $dependencyInput;
- }
-
- /**
- * @param bool $disallowChangesToGlobalState
- *
- * @since Method available since Release 4.6.0
- */
- public function setDisallowChangesToGlobalState($disallowChangesToGlobalState)
- {
- $this->disallowChangesToGlobalState = $disallowChangesToGlobalState;
- }
-
- /**
- * Calling this method in setUp() has no effect!
- *
- * @param bool $backupGlobals
- *
- * @since Method available since Release 3.3.0
- */
- public function setBackupGlobals($backupGlobals)
- {
- if (is_null($this->backupGlobals) && is_bool($backupGlobals)) {
- $this->backupGlobals = $backupGlobals;
- }
- }
-
- /**
- * Calling this method in setUp() has no effect!
- *
- * @param bool $backupStaticAttributes
- *
- * @since Method available since Release 3.4.0
- */
- public function setBackupStaticAttributes($backupStaticAttributes)
- {
- if (is_null($this->backupStaticAttributes) &&
- is_bool($backupStaticAttributes)) {
- $this->backupStaticAttributes = $backupStaticAttributes;
- }
- }
-
- /**
- * @param bool $runTestInSeparateProcess
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.4.0
- */
- public function setRunTestInSeparateProcess($runTestInSeparateProcess)
- {
- if (is_bool($runTestInSeparateProcess)) {
- if ($this->runTestInSeparateProcess === null) {
- $this->runTestInSeparateProcess = $runTestInSeparateProcess;
- }
- } else {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
- }
-
- /**
- * @param bool $preserveGlobalState
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.4.0
- */
- public function setPreserveGlobalState($preserveGlobalState)
- {
- if (is_bool($preserveGlobalState)) {
- $this->preserveGlobalState = $preserveGlobalState;
- } else {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
- }
-
- /**
- * @param bool $inIsolation
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.4.0
- */
- public function setInIsolation($inIsolation)
- {
- if (is_bool($inIsolation)) {
- $this->inIsolation = $inIsolation;
- } else {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
- }
-
- /**
- * @return bool
- *
- * @since Method available since Release 4.3.0
- */
- public function isInIsolation()
- {
- return $this->inIsolation;
- }
-
- /**
- * @return mixed
- *
- * @since Method available since Release 3.4.0
- */
- public function getResult()
- {
- return $this->testResult;
- }
-
- /**
- * @param mixed $result
- *
- * @since Method available since Release 3.4.0
- */
- public function setResult($result)
- {
- $this->testResult = $result;
- }
-
- /**
- * @param callable $callback
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.6.0
- */
- public function setOutputCallback($callback)
- {
- if (!is_callable($callback)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'callback');
- }
-
- $this->outputCallback = $callback;
- }
-
- /**
- * @return PHPUnit_Framework_TestResult
- *
- * @since Method available since Release 3.5.7
- */
- public function getTestResultObject()
- {
- return $this->result;
- }
-
- /**
- * @param PHPUnit_Framework_TestResult $result
- *
- * @since Method available since Release 3.6.0
- */
- public function setTestResultObject(PHPUnit_Framework_TestResult $result)
- {
- $this->result = $result;
- }
-
- /**
- * This method is a wrapper for the ini_set() function that automatically
- * resets the modified php.ini setting to its original value after the
- * test is run.
- *
- * @param string $varName
- * @param string $newValue
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.0.0
- */
- protected function iniSet($varName, $newValue)
- {
- if (!is_string($varName)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- $currentValue = ini_set($varName, $newValue);
-
- if ($currentValue !== false) {
- $this->iniSettings[$varName] = $currentValue;
- } else {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'INI setting "%s" could not be set to "%s".',
- $varName,
- $newValue
- )
- );
- }
- }
-
- /**
- * This method is a wrapper for the setlocale() function that automatically
- * resets the locale to its original value after the test is run.
- *
- * @param int $category
- * @param string $locale
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.1.0
- */
- protected function setLocale()
- {
- $args = func_get_args();
-
- if (count($args) < 2) {
- throw new PHPUnit_Framework_Exception;
- }
-
- $category = $args[0];
- $locale = $args[1];
-
- $categories = array(
- LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME
- );
-
- if (defined('LC_MESSAGES')) {
- $categories[] = LC_MESSAGES;
- }
-
- if (!in_array($category, $categories)) {
- throw new PHPUnit_Framework_Exception;
- }
-
- if (!is_array($locale) && !is_string($locale)) {
- throw new PHPUnit_Framework_Exception;
- }
-
- $this->locale[$category] = setlocale($category, null);
-
- $result = call_user_func_array('setlocale', $args);
-
- if ($result === false) {
- throw new PHPUnit_Framework_Exception(
- 'The locale functionality is not implemented on your platform, ' .
- 'the specified locale does not exist or the category name is ' .
- 'invalid.'
- );
- }
- }
-
- /**
- * Returns a mock object for the specified class.
- *
- * @param string $originalClassName Name of the class to mock.
- * @param array|null $methods When provided, only methods whose names are in the array
- * are replaced with a configurable test double. The behavior
- * of the other methods is not changed.
- * Providing null means that no methods will be replaced.
- * @param array $arguments Parameters to pass to the original class' constructor.
- * @param string $mockClassName Class name for the generated test double class.
- * @param bool $callOriginalConstructor Can be used to disable the call to the original class' constructor.
- * @param bool $callOriginalClone Can be used to disable the call to the original class' clone constructor.
- * @param bool $callAutoload Can be used to disable __autoload() during the generation of the test double class.
- * @param bool $cloneArguments
- * @param bool $callOriginalMethods
- * @param object $proxyTarget
- *
- * @return PHPUnit_Framework_MockObject_MockObject
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.0.0
- */
- public function getMock($originalClassName, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $cloneArguments = false, $callOriginalMethods = false, $proxyTarget = null)
- {
- $mockObject = $this->getMockObjectGenerator()->getMock(
- $originalClassName,
- $methods,
- $arguments,
- $mockClassName,
- $callOriginalConstructor,
- $callOriginalClone,
- $callAutoload,
- $cloneArguments,
- $callOriginalMethods,
- $proxyTarget
- );
-
- $this->mockObjects[] = $mockObject;
-
- return $mockObject;
- }
-
- /**
- * Returns a builder object to create mock objects using a fluent interface.
- *
- * @param string $className
- *
- * @return PHPUnit_Framework_MockObject_MockBuilder
- *
- * @since Method available since Release 3.5.0
- */
- public function getMockBuilder($className)
- {
- return new PHPUnit_Framework_MockObject_MockBuilder($this, $className);
- }
-
- /**
- * Mocks the specified class and returns the name of the mocked class.
- *
- * @param string $originalClassName
- * @param array $methods
- * @param array $arguments
- * @param string $mockClassName
- * @param bool $callOriginalConstructor
- * @param bool $callOriginalClone
- * @param bool $callAutoload
- * @param bool $cloneArguments
- *
- * @return string
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.5.0
- */
- protected function getMockClass($originalClassName, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = false, $callOriginalClone = true, $callAutoload = true, $cloneArguments = false)
- {
- $mock = $this->getMock(
- $originalClassName,
- $methods,
- $arguments,
- $mockClassName,
- $callOriginalConstructor,
- $callOriginalClone,
- $callAutoload,
- $cloneArguments
- );
-
- return get_class($mock);
- }
-
- /**
- * Returns a mock object for the specified abstract class with all abstract
- * methods of the class mocked. Concrete methods are not mocked by default.
- * To mock concrete methods, use the 7th parameter ($mockedMethods).
- *
- * @param string $originalClassName
- * @param array $arguments
- * @param string $mockClassName
- * @param bool $callOriginalConstructor
- * @param bool $callOriginalClone
- * @param bool $callAutoload
- * @param array $mockedMethods
- * @param bool $cloneArguments
- *
- * @return PHPUnit_Framework_MockObject_MockObject
- *
- * @since Method available since Release 3.4.0
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function getMockForAbstractClass($originalClassName, array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $mockedMethods = array(), $cloneArguments = false)
- {
- $mockObject = $this->getMockObjectGenerator()->getMockForAbstractClass(
- $originalClassName,
- $arguments,
- $mockClassName,
- $callOriginalConstructor,
- $callOriginalClone,
- $callAutoload,
- $mockedMethods,
- $cloneArguments
- );
-
- $this->mockObjects[] = $mockObject;
-
- return $mockObject;
- }
-
- /**
- * Returns a mock object based on the given WSDL file.
- *
- * @param string $wsdlFile
- * @param string $originalClassName
- * @param string $mockClassName
- * @param array $methods
- * @param bool $callOriginalConstructor
- * @param array $options An array of options passed to SOAPClient::_construct
- *
- * @return PHPUnit_Framework_MockObject_MockObject
- *
- * @since Method available since Release 3.4.0
- */
- protected function getMockFromWsdl($wsdlFile, $originalClassName = '', $mockClassName = '', array $methods = array(), $callOriginalConstructor = true, array $options = array())
- {
- if ($originalClassName === '') {
- $originalClassName = str_replace('.wsdl', '', basename($wsdlFile));
- }
-
- if (!class_exists($originalClassName)) {
- eval(
- $this->getMockObjectGenerator()->generateClassFromWsdl(
- $wsdlFile,
- $originalClassName,
- $methods,
- $options
- )
- );
- }
-
- return $this->getMock(
- $originalClassName,
- $methods,
- array('', $options),
- $mockClassName,
- $callOriginalConstructor,
- false,
- false
- );
- }
-
- /**
- * Returns a mock object for the specified trait with all abstract methods
- * of the trait mocked. Concrete methods to mock can be specified with the
- * `$mockedMethods` parameter.
- *
- * @param string $traitName
- * @param array $arguments
- * @param string $mockClassName
- * @param bool $callOriginalConstructor
- * @param bool $callOriginalClone
- * @param bool $callAutoload
- * @param array $mockedMethods
- * @param bool $cloneArguments
- *
- * @return PHPUnit_Framework_MockObject_MockObject
- *
- * @since Method available since Release 4.0.0
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function getMockForTrait($traitName, array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $mockedMethods = array(), $cloneArguments = false)
- {
- $mockObject = $this->getMockObjectGenerator()->getMockForTrait(
- $traitName,
- $arguments,
- $mockClassName,
- $callOriginalConstructor,
- $callOriginalClone,
- $callAutoload,
- $mockedMethods,
- $cloneArguments
- );
-
- $this->mockObjects[] = $mockObject;
-
- return $mockObject;
- }
-
- /**
- * Returns an object for the specified trait.
- *
- * @param string $traitName
- * @param array $arguments
- * @param string $traitClassName
- * @param bool $callOriginalConstructor
- * @param bool $callOriginalClone
- * @param bool $callAutoload
- * @param bool $cloneArguments
- *
- * @return object
- *
- * @since Method available since Release 3.6.0
- *
- * @throws PHPUnit_Framework_Exception
- */
- protected function getObjectForTrait($traitName, array $arguments = array(), $traitClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $cloneArguments = false)
- {
- return $this->getMockObjectGenerator()->getObjectForTrait(
- $traitName,
- $arguments,
- $traitClassName,
- $callOriginalConstructor,
- $callOriginalClone,
- $callAutoload,
- $cloneArguments
- );
- }
-
- /**
- * @param string|null $classOrInterface
- *
- * @return \Prophecy\Prophecy\ObjectProphecy
- *
- * @throws \LogicException
- *
- * @since Method available since Release 4.5.0
- */
- protected function prophesize($classOrInterface = null)
- {
- return $this->getProphet()->prophesize($classOrInterface);
- }
-
- /**
- * Adds a value to the assertion counter.
- *
- * @param int $count
- *
- * @since Method available since Release 3.3.3
- */
- public function addToAssertionCount($count)
- {
- $this->numAssertions += $count;
- }
-
- /**
- * Returns the number of assertions performed by this test.
- *
- * @return int
- *
- * @since Method available since Release 3.3.0
- */
- public function getNumAssertions()
- {
- return $this->numAssertions;
- }
-
- /**
- * Returns a matcher that matches when the method is executed
- * zero or more times.
- *
- * @return PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount
- *
- * @since Method available since Release 3.0.0
- */
- public static function any()
- {
- return new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount;
- }
-
- /**
- * Returns a matcher that matches when the method is never executed.
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount
- *
- * @since Method available since Release 3.0.0
- */
- public static function never()
- {
- return new PHPUnit_Framework_MockObject_Matcher_InvokedCount(0);
- }
-
- /**
- * Returns a matcher that matches when the method is executed
- * at least N times.
- *
- * @param int $requiredInvocations
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastCount
- *
- * @since Method available since Release 4.2.0
- */
- public static function atLeast($requiredInvocations)
- {
- return new PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastCount(
- $requiredInvocations
- );
- }
-
- /**
- * Returns a matcher that matches when the method is executed at least once.
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce
- *
- * @since Method available since Release 3.0.0
- */
- public static function atLeastOnce()
- {
- return new PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce;
- }
-
- /**
- * Returns a matcher that matches when the method is executed exactly once.
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount
- *
- * @since Method available since Release 3.0.0
- */
- public static function once()
- {
- return new PHPUnit_Framework_MockObject_Matcher_InvokedCount(1);
- }
-
- /**
- * Returns a matcher that matches when the method is executed
- * exactly $count times.
- *
- * @param int $count
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedCount
- *
- * @since Method available since Release 3.0.0
- */
- public static function exactly($count)
- {
- return new PHPUnit_Framework_MockObject_Matcher_InvokedCount($count);
- }
-
- /**
- * Returns a matcher that matches when the method is executed
- * at most N times.
- *
- * @param int $allowedInvocations
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtMostCount
- *
- * @since Method available since Release 4.2.0
- */
- public static function atMost($allowedInvocations)
- {
- return new PHPUnit_Framework_MockObject_Matcher_InvokedAtMostCount(
- $allowedInvocations
- );
- }
-
- /**
- * Returns a matcher that matches when the method is executed
- * at the given index.
- *
- * @param int $index
- *
- * @return PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex
- *
- * @since Method available since Release 3.0.0
- */
- public static function at($index)
- {
- return new PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex($index);
- }
-
- /**
- * @param mixed $value
- *
- * @return PHPUnit_Framework_MockObject_Stub_Return
- *
- * @since Method available since Release 3.0.0
- */
- public static function returnValue($value)
- {
- return new PHPUnit_Framework_MockObject_Stub_Return($value);
- }
-
- /**
- * @param array $valueMap
- *
- * @return PHPUnit_Framework_MockObject_Stub_ReturnValueMap
- *
- * @since Method available since Release 3.6.0
- */
- public static function returnValueMap(array $valueMap)
- {
- return new PHPUnit_Framework_MockObject_Stub_ReturnValueMap($valueMap);
- }
-
- /**
- * @param int $argumentIndex
- *
- * @return PHPUnit_Framework_MockObject_Stub_ReturnArgument
- *
- * @since Method available since Release 3.3.0
- */
- public static function returnArgument($argumentIndex)
- {
- return new PHPUnit_Framework_MockObject_Stub_ReturnArgument(
- $argumentIndex
- );
- }
-
- /**
- * @param mixed $callback
- *
- * @return PHPUnit_Framework_MockObject_Stub_ReturnCallback
- *
- * @since Method available since Release 3.3.0
- */
- public static function returnCallback($callback)
- {
- return new PHPUnit_Framework_MockObject_Stub_ReturnCallback($callback);
- }
-
- /**
- * Returns the current object.
- *
- * This method is useful when mocking a fluent interface.
- *
- * @return PHPUnit_Framework_MockObject_Stub_ReturnSelf
- *
- * @since Method available since Release 3.6.0
- */
- public static function returnSelf()
- {
- return new PHPUnit_Framework_MockObject_Stub_ReturnSelf();
- }
-
- /**
- * @param Exception $exception
- *
- * @return PHPUnit_Framework_MockObject_Stub_Exception
- *
- * @since Method available since Release 3.1.0
- */
- public static function throwException(Exception $exception)
- {
- return new PHPUnit_Framework_MockObject_Stub_Exception($exception);
- }
-
- /**
- * @param mixed $value, ...
- *
- * @return PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls
- *
- * @since Method available since Release 3.0.0
- */
- public static function onConsecutiveCalls()
- {
- $args = func_get_args();
-
- return new PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls($args);
- }
-
- /**
- * Gets the data set description of a TestCase.
- *
- * @param bool $includeData
- *
- * @return string
- *
- * @since Method available since Release 3.3.0
- */
- protected function getDataSetAsString($includeData = true)
- {
- $buffer = '';
-
- if (!empty($this->data)) {
- if (is_int($this->dataName)) {
- $buffer .= sprintf(' with data set #%d', $this->dataName);
- } else {
- $buffer .= sprintf(' with data set "%s"', $this->dataName);
- }
-
- $exporter = new Exporter;
-
- if ($includeData) {
- $buffer .= sprintf(' (%s)', $exporter->shortenedRecursiveExport($this->data));
- }
- }
-
- return $buffer;
- }
-
- /**
- * Creates a default TestResult object.
- *
- * @return PHPUnit_Framework_TestResult
- */
- protected function createResult()
- {
- return new PHPUnit_Framework_TestResult;
- }
-
- /**
- * @since Method available since Release 3.5.4
- */
- protected function handleDependencies()
- {
- if (!empty($this->dependencies) && !$this->inIsolation) {
- $className = get_class($this);
- $passed = $this->result->passed();
- $passedKeys = array_keys($passed);
- $numKeys = count($passedKeys);
-
- for ($i = 0; $i < $numKeys; $i++) {
- $pos = strpos($passedKeys[$i], ' with data set');
-
- if ($pos !== false) {
- $passedKeys[$i] = substr($passedKeys[$i], 0, $pos);
- }
- }
-
- $passedKeys = array_flip(array_unique($passedKeys));
-
- foreach ($this->dependencies as $dependency) {
- if (strpos($dependency, '::') === false) {
- $dependency = $className . '::' . $dependency;
- }
-
- if (!isset($passedKeys[$dependency])) {
- $this->result->addError(
- $this,
- new PHPUnit_Framework_SkippedTestError(
- sprintf(
- 'This test depends on "%s" to pass.',
- $dependency
- )
- ),
- 0
- );
-
- return false;
- }
-
- if (isset($passed[$dependency])) {
- if ($passed[$dependency]['size'] != PHPUnit_Util_Test::UNKNOWN &&
- $this->getSize() != PHPUnit_Util_Test::UNKNOWN &&
- $passed[$dependency]['size'] > $this->getSize()) {
- $this->result->addError(
- $this,
- new PHPUnit_Framework_SkippedTestError(
- 'This test depends on a test that is larger than itself.'
- ),
- 0
- );
-
- return false;
- }
-
- $this->dependencyInput[$dependency] = $passed[$dependency]['result'];
- } else {
- $this->dependencyInput[$dependency] = null;
- }
- }
- }
-
- return true;
- }
-
- /**
- * This method is called before the first test of this test class is run.
- *
- * @since Method available since Release 3.4.0
- */
- public static function setUpBeforeClass()
- {
- }
-
- /**
- * Sets up the fixture, for example, open a network connection.
- * This method is called before a test is executed.
- */
- protected function setUp()
- {
- }
-
- /**
- * Performs assertions shared by all tests of a test case.
- *
- * This method is called before the execution of a test starts
- * and after setUp() is called.
- *
- * @since Method available since Release 3.2.8
- */
- protected function assertPreConditions()
- {
- }
-
- /**
- * Performs assertions shared by all tests of a test case.
- *
- * This method is called before the execution of a test ends
- * and before tearDown() is called.
- *
- * @since Method available since Release 3.2.8
- */
- protected function assertPostConditions()
- {
- }
-
- /**
- * Tears down the fixture, for example, close a network connection.
- * This method is called after a test is executed.
- */
- protected function tearDown()
- {
- }
-
- /**
- * This method is called after the last test of this test class is run.
- *
- * @since Method available since Release 3.4.0
- */
- public static function tearDownAfterClass()
- {
- }
-
- /**
- * This method is called when a test method did not execute successfully.
- *
- * @param Exception $e
- *
- * @since Method available since Release 3.4.0
- *
- * @throws Exception
- */
- protected function onNotSuccessfulTest(Exception $e)
- {
- throw $e;
- }
-
- /**
- * Performs custom preparations on the process isolation template.
- *
- * @param Text_Template $template
- *
- * @since Method available since Release 3.4.0
- */
- protected function prepareTemplate(Text_Template $template)
- {
- }
-
- /**
- * Get the mock object generator, creating it if it doesn't exist.
- *
- * @return PHPUnit_Framework_MockObject_Generator
- */
- protected function getMockObjectGenerator()
- {
- if (null === $this->mockObjectGenerator) {
- $this->mockObjectGenerator = new PHPUnit_Framework_MockObject_Generator;
- }
-
- return $this->mockObjectGenerator;
- }
-
- /**
- * @since Method available since Release 4.2.0
- */
- private function startOutputBuffering()
- {
- while (!defined('PHPUNIT_TESTSUITE') && ob_get_level() > 0) {
- ob_end_clean();
- }
-
- ob_start();
-
- $this->outputBufferingActive = true;
- $this->outputBufferingLevel = ob_get_level();
- }
-
- /**
- * @since Method available since Release 4.2.0
- */
- private function stopOutputBuffering()
- {
- if (ob_get_level() != $this->outputBufferingLevel) {
- while (ob_get_level() > 0) {
- ob_end_clean();
- }
-
- throw new PHPUnit_Framework_RiskyTestError(
- 'Test code or tested code did not (only) close its own output buffers'
- );
- }
-
- $output = ob_get_contents();
-
- if ($this->outputCallback === false) {
- $this->output = $output;
- } else {
- $this->output = call_user_func_array(
- $this->outputCallback,
- array($output)
- );
- }
-
- ob_end_clean();
-
- $this->outputBufferingActive = false;
- $this->outputBufferingLevel = ob_get_level();
- }
-
- private function snapshotGlobalState()
- {
- $backupGlobals = $this->backupGlobals === null || $this->backupGlobals === true;
-
- if ($this->runTestInSeparateProcess || $this->inIsolation ||
- (!$backupGlobals && !$this->backupStaticAttributes)) {
- return;
- }
-
- $this->snapshot = $this->createGlobalStateSnapshot($backupGlobals);
- }
-
- private function restoreGlobalState()
- {
- if (!$this->snapshot instanceof Snapshot) {
- return;
- }
-
- $backupGlobals = $this->backupGlobals === null || $this->backupGlobals === true;
-
- if ($this->disallowChangesToGlobalState) {
- try {
- $this->compareGlobalStateSnapshots(
- $this->snapshot,
- $this->createGlobalStateSnapshot($backupGlobals)
- );
- } catch (PHPUnit_Framework_RiskyTestError $rte) {
- // Intentionally left empty
- }
- }
-
- $restorer = new Restorer;
-
- if ($backupGlobals) {
- $restorer->restoreGlobalVariables($this->snapshot);
- }
-
- if ($this->backupStaticAttributes) {
- $restorer->restoreStaticAttributes($this->snapshot);
- }
-
- $this->snapshot = null;
-
- if (isset($rte)) {
- throw $rte;
- }
- }
-
- /**
- * @param bool $backupGlobals
- *
- * @return Snapshot
- */
- private function createGlobalStateSnapshot($backupGlobals)
- {
- $blacklist = new Blacklist;
-
- foreach ($this->backupGlobalsBlacklist as $globalVariable) {
- $blacklist->addGlobalVariable($globalVariable);
- }
-
- if (!defined('PHPUNIT_TESTSUITE')) {
- $blacklist->addClassNamePrefix('PHPUnit');
- $blacklist->addClassNamePrefix('File_Iterator');
- $blacklist->addClassNamePrefix('PHP_CodeCoverage');
- $blacklist->addClassNamePrefix('PHP_Invoker');
- $blacklist->addClassNamePrefix('PHP_Timer');
- $blacklist->addClassNamePrefix('PHP_Token');
- $blacklist->addClassNamePrefix('Symfony');
- $blacklist->addClassNamePrefix('Text_Template');
- $blacklist->addClassNamePrefix('Doctrine\Instantiator');
-
- foreach ($this->backupStaticAttributesBlacklist as $class => $attributes) {
- foreach ($attributes as $attribute) {
- $blacklist->addStaticAttribute($class, $attribute);
- }
- }
- }
-
- return new Snapshot(
- $blacklist,
- $backupGlobals,
- $this->backupStaticAttributes,
- false,
- false,
- false,
- false,
- false,
- false,
- false
- );
- }
-
- /**
- * @param Snapshot $before
- * @param Snapshot $after
- *
- * @throws PHPUnit_Framework_RiskyTestError
- */
- private function compareGlobalStateSnapshots(Snapshot $before, Snapshot $after)
- {
- $backupGlobals = $this->backupGlobals === null || $this->backupGlobals === true;
-
- if ($backupGlobals) {
- $this->compareGlobalStateSnapshotPart(
- $before->globalVariables(),
- $after->globalVariables(),
- "--- Global variables before the test\n+++ Global variables after the test\n"
- );
-
- $this->compareGlobalStateSnapshotPart(
- $before->superGlobalVariables(),
- $after->superGlobalVariables(),
- "--- Super-global variables before the test\n+++ Super-global variables after the test\n"
- );
- }
-
- if ($this->backupStaticAttributes) {
- $this->compareGlobalStateSnapshotPart(
- $before->staticAttributes(),
- $after->staticAttributes(),
- "--- Static attributes before the test\n+++ Static attributes after the test\n"
- );
- }
- }
-
- /**
- * @param array $before
- * @param array $after
- * @param string $header
- *
- * @throws PHPUnit_Framework_RiskyTestError
- */
- private function compareGlobalStateSnapshotPart(array $before, array $after, $header)
- {
- if ($before != $after) {
- $differ = new Differ($header);
- $exporter = new Exporter;
-
- $diff = $differ->diff(
- $exporter->export($before),
- $exporter->export($after)
- );
-
- throw new PHPUnit_Framework_RiskyTestError(
- $diff
- );
- }
- }
-
- /**
- * @return Prophecy\Prophet
- *
- * @since Method available since Release 4.5.0
- */
- private function getProphet()
- {
- if ($this->prophet === null) {
- $this->prophet = new Prophet;
- }
-
- return $this->prophet;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestFailure.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/TestFailure.php
deleted file mode 100644
index ef3d9cbd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestFailure.php
+++ /dev/null
@@ -1,167 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A TestFailure collects a failed test together with the caught exception.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Framework_TestFailure
-{
- /**
- * @var string
- */
- private $testName;
-
- /**
- * @var PHPUnit_Framework_Test|null
- */
- protected $failedTest;
-
- /**
- * @var Exception
- */
- protected $thrownException;
-
- /**
- * Constructs a TestFailure with the given test and exception.
- *
- * @param PHPUnit_Framework_Test $failedTest
- * @param Exception $thrownException
- */
- public function __construct(PHPUnit_Framework_Test $failedTest, Exception $thrownException)
- {
- if ($failedTest instanceof PHPUnit_Framework_SelfDescribing) {
- $this->testName = $failedTest->toString();
- } else {
- $this->testName = get_class($failedTest);
- }
- if (!$failedTest instanceof PHPUnit_Framework_TestCase || !$failedTest->isInIsolation()) {
- $this->failedTest = $failedTest;
- }
- $this->thrownException = $thrownException;
- }
-
- /**
- * Returns a short description of the failure.
- *
- * @return string
- */
- public function toString()
- {
- return sprintf(
- '%s: %s',
- $this->testName,
- $this->thrownException->getMessage()
- );
- }
-
- /**
- * Returns a description for the thrown exception.
- *
- * @return string
- *
- * @since Method available since Release 3.4.0
- */
- public function getExceptionAsString()
- {
- return self::exceptionToString($this->thrownException);
- }
-
- /**
- * Returns a description for an exception.
- *
- * @param Exception $e
- *
- * @return string
- *
- * @since Method available since Release 3.2.0
- */
- public static function exceptionToString(Exception $e)
- {
- if ($e instanceof PHPUnit_Framework_SelfDescribing) {
- $buffer = $e->toString();
-
- if ($e instanceof PHPUnit_Framework_ExpectationFailedException && $e->getComparisonFailure()) {
- $buffer = $buffer . $e->getComparisonFailure()->getDiff();
- }
-
- if (!empty($buffer)) {
- $buffer = trim($buffer) . "\n";
- }
- } elseif ($e instanceof PHPUnit_Framework_Error) {
- $buffer = $e->getMessage() . "\n";
- } elseif ($e instanceof PHPUnit_Framework_ExceptionWrapper) {
- $buffer = $e->getClassname() . ': ' . $e->getMessage() . "\n";
- } else {
- $buffer = get_class($e) . ': ' . $e->getMessage() . "\n";
- }
-
- return $buffer;
- }
-
- /**
- * Returns the name of the failing test (including data set, if any).
- *
- * @return string
- *
- * @since Method available since Release 4.3.0
- */
- public function getTestName()
- {
- return $this->testName;
- }
-
- /**
- * Returns the failing test.
- *
- * Note: The test object is not set when the test is executed in process
- * isolation.
- *
- * @see PHPUnit_Framework_Exception
- *
- * @return PHPUnit_Framework_Test|null
- */
- public function failedTest()
- {
- return $this->failedTest;
- }
-
- /**
- * Gets the thrown exception.
- *
- * @return Exception
- */
- public function thrownException()
- {
- return $this->thrownException;
- }
-
- /**
- * Returns the exception's message.
- *
- * @return string
- */
- public function exceptionMessage()
- {
- return $this->thrownException()->getMessage();
- }
-
- /**
- * Returns true if the thrown exception
- * is of type AssertionFailedError.
- *
- * @return bool
- */
- public function isFailure()
- {
- return ($this->thrownException() instanceof PHPUnit_Framework_AssertionFailedError);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestListener.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/TestListener.php
deleted file mode 100644
index 8e5829be..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestListener.php
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A Listener for test progress.
- *
- * @since Interface available since Release 2.0.0
- */
-interface PHPUnit_Framework_TestListener
-{
- /**
- * An error occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addError(PHPUnit_Framework_Test $test, Exception $e, $time);
-
- /**
- * A failure occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
- * @param float $time
- */
- public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time);
-
- /**
- * Incomplete test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time);
-
- /**
- * Risky test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 4.0.0
- */
- public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time);
-
- /**
- * Skipped test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 3.0.0
- */
- public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time);
-
- /**
- * A test suite started.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function startTestSuite(PHPUnit_Framework_TestSuite $suite);
-
- /**
- * A test suite ended.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function endTestSuite(PHPUnit_Framework_TestSuite $suite);
-
- /**
- * A test started.
- *
- * @param PHPUnit_Framework_Test $test
- */
- public function startTest(PHPUnit_Framework_Test $test);
-
- /**
- * A test ended.
- *
- * @param PHPUnit_Framework_Test $test
- * @param float $time
- */
- public function endTest(PHPUnit_Framework_Test $test, $time);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestResult.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/TestResult.php
deleted file mode 100644
index 8da7c35b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestResult.php
+++ /dev/null
@@ -1,1128 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A TestResult collects the results of executing a test case.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Framework_TestResult implements Countable
-{
- /**
- * @var array
- */
- protected $passed = array();
-
- /**
- * @var array
- */
- protected $errors = array();
-
- /**
- * @var array
- */
- protected $failures = array();
-
- /**
- * @var array
- */
- protected $notImplemented = array();
-
- /**
- * @var array
- */
- protected $risky = array();
-
- /**
- * @var array
- */
- protected $skipped = array();
-
- /**
- * @var array
- */
- protected $listeners = array();
-
- /**
- * @var int
- */
- protected $runTests = 0;
-
- /**
- * @var float
- */
- protected $time = 0;
-
- /**
- * @var PHPUnit_Framework_TestSuite
- */
- protected $topTestSuite = null;
-
- /**
- * Code Coverage information.
- *
- * @var PHP_CodeCoverage
- */
- protected $codeCoverage;
-
- /**
- * @var bool
- */
- protected $convertErrorsToExceptions = true;
-
- /**
- * @var bool
- */
- protected $stop = false;
-
- /**
- * @var bool
- */
- protected $stopOnError = false;
-
- /**
- * @var bool
- */
- protected $stopOnFailure = false;
-
- /**
- * @var bool
- */
- protected $beStrictAboutTestsThatDoNotTestAnything = false;
-
- /**
- * @var bool
- */
- protected $beStrictAboutOutputDuringTests = false;
-
- /**
- * @var bool
- */
- protected $beStrictAboutTestSize = false;
-
- /**
- * @var bool
- */
- protected $beStrictAboutTodoAnnotatedTests = false;
-
- /**
- * @var bool
- */
- protected $stopOnRisky = false;
-
- /**
- * @var bool
- */
- protected $stopOnIncomplete = false;
-
- /**
- * @var bool
- */
- protected $stopOnSkipped = false;
-
- /**
- * @var bool
- */
- protected $lastTestFailed = false;
-
- /**
- * @var int
- */
- protected $timeoutForSmallTests = 1;
-
- /**
- * @var int
- */
- protected $timeoutForMediumTests = 10;
-
- /**
- * @var int
- */
- protected $timeoutForLargeTests = 60;
-
- /**
- * Registers a TestListener.
- *
- * @param PHPUnit_Framework_TestListener
- */
- public function addListener(PHPUnit_Framework_TestListener $listener)
- {
- $this->listeners[] = $listener;
- }
-
- /**
- * Unregisters a TestListener.
- *
- * @param PHPUnit_Framework_TestListener $listener
- */
- public function removeListener(PHPUnit_Framework_TestListener $listener)
- {
- foreach ($this->listeners as $key => $_listener) {
- if ($listener === $_listener) {
- unset($this->listeners[$key]);
- }
- }
- }
-
- /**
- * Flushes all flushable TestListeners.
- *
- * @since Method available since Release 3.0.0
- */
- public function flushListeners()
- {
- foreach ($this->listeners as $listener) {
- if ($listener instanceof PHPUnit_Util_Printer) {
- $listener->flush();
- }
- }
- }
-
- /**
- * Adds an error to the list of errors.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- if ($e instanceof PHPUnit_Framework_RiskyTest) {
- $this->risky[] = new PHPUnit_Framework_TestFailure($test, $e);
- $notifyMethod = 'addRiskyTest';
-
- if ($this->stopOnRisky) {
- $this->stop();
- }
- } elseif ($e instanceof PHPUnit_Framework_IncompleteTest) {
- $this->notImplemented[] = new PHPUnit_Framework_TestFailure($test, $e);
- $notifyMethod = 'addIncompleteTest';
-
- if ($this->stopOnIncomplete) {
- $this->stop();
- }
- } elseif ($e instanceof PHPUnit_Framework_SkippedTest) {
- $this->skipped[] = new PHPUnit_Framework_TestFailure($test, $e);
- $notifyMethod = 'addSkippedTest';
-
- if ($this->stopOnSkipped) {
- $this->stop();
- }
- } else {
- $this->errors[] = new PHPUnit_Framework_TestFailure($test, $e);
- $notifyMethod = 'addError';
-
- if ($this->stopOnError || $this->stopOnFailure) {
- $this->stop();
- }
- }
-
- foreach ($this->listeners as $listener) {
- $listener->$notifyMethod($test, $e, $time);
- }
-
- $this->lastTestFailed = true;
- $this->time += $time;
- }
-
- /**
- * Adds a failure to the list of failures.
- * The passed in exception caused the failure.
- *
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
- * @param float $time
- */
- public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
- {
- if ($e instanceof PHPUnit_Framework_RiskyTest ||
- $e instanceof PHPUnit_Framework_OutputError) {
- $this->risky[] = new PHPUnit_Framework_TestFailure($test, $e);
- $notifyMethod = 'addRiskyTest';
-
- if ($this->stopOnRisky) {
- $this->stop();
- }
- } elseif ($e instanceof PHPUnit_Framework_IncompleteTest) {
- $this->notImplemented[] = new PHPUnit_Framework_TestFailure($test, $e);
- $notifyMethod = 'addIncompleteTest';
-
- if ($this->stopOnIncomplete) {
- $this->stop();
- }
- } elseif ($e instanceof PHPUnit_Framework_SkippedTest) {
- $this->skipped[] = new PHPUnit_Framework_TestFailure($test, $e);
- $notifyMethod = 'addSkippedTest';
-
- if ($this->stopOnSkipped) {
- $this->stop();
- }
- } else {
- $this->failures[] = new PHPUnit_Framework_TestFailure($test, $e);
- $notifyMethod = 'addFailure';
-
- if ($this->stopOnFailure) {
- $this->stop();
- }
- }
-
- foreach ($this->listeners as $listener) {
- $listener->$notifyMethod($test, $e, $time);
- }
-
- $this->lastTestFailed = true;
- $this->time += $time;
- }
-
- /**
- * Informs the result that a testsuite will be started.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- if ($this->topTestSuite === null) {
- $this->topTestSuite = $suite;
- }
-
- foreach ($this->listeners as $listener) {
- $listener->startTestSuite($suite);
- }
- }
-
- /**
- * Informs the result that a testsuite was completed.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- foreach ($this->listeners as $listener) {
- $listener->endTestSuite($suite);
- }
- }
-
- /**
- * Informs the result that a test will be started.
- *
- * @param PHPUnit_Framework_Test $test
- */
- public function startTest(PHPUnit_Framework_Test $test)
- {
- $this->lastTestFailed = false;
- $this->runTests += count($test);
-
- foreach ($this->listeners as $listener) {
- $listener->startTest($test);
- }
- }
-
- /**
- * Informs the result that a test was completed.
- *
- * @param PHPUnit_Framework_Test $test
- * @param float $time
- */
- public function endTest(PHPUnit_Framework_Test $test, $time)
- {
- foreach ($this->listeners as $listener) {
- $listener->endTest($test, $time);
- }
-
- if (!$this->lastTestFailed && $test instanceof PHPUnit_Framework_TestCase) {
- $class = get_class($test);
- $key = $class . '::' . $test->getName();
-
- $this->passed[$key] = array(
- 'result' => $test->getResult(),
- 'size' => PHPUnit_Util_Test::getSize(
- $class,
- $test->getName(false)
- )
- );
-
- $this->time += $time;
- }
- }
-
- /**
- * Returns true if no risky test occurred.
- *
- * @return bool
- *
- * @since Method available since Release 4.0.0
- */
- public function allHarmless()
- {
- return $this->riskyCount() == 0;
- }
-
- /**
- * Gets the number of risky tests.
- *
- * @return int
- *
- * @since Method available since Release 4.0.0
- */
- public function riskyCount()
- {
- return count($this->risky);
- }
-
- /**
- * Returns true if no incomplete test occurred.
- *
- * @return bool
- */
- public function allCompletelyImplemented()
- {
- return $this->notImplementedCount() == 0;
- }
-
- /**
- * Gets the number of incomplete tests.
- *
- * @return int
- */
- public function notImplementedCount()
- {
- return count($this->notImplemented);
- }
-
- /**
- * Returns an Enumeration for the risky tests.
- *
- * @return array
- *
- * @since Method available since Release 4.0.0
- */
- public function risky()
- {
- return $this->risky;
- }
-
- /**
- * Returns an Enumeration for the incomplete tests.
- *
- * @return array
- */
- public function notImplemented()
- {
- return $this->notImplemented;
- }
-
- /**
- * Returns true if no test has been skipped.
- *
- * @return bool
- *
- * @since Method available since Release 3.0.0
- */
- public function noneSkipped()
- {
- return $this->skippedCount() == 0;
- }
-
- /**
- * Gets the number of skipped tests.
- *
- * @return int
- *
- * @since Method available since Release 3.0.0
- */
- public function skippedCount()
- {
- return count($this->skipped);
- }
-
- /**
- * Returns an Enumeration for the skipped tests.
- *
- * @return array
- *
- * @since Method available since Release 3.0.0
- */
- public function skipped()
- {
- return $this->skipped;
- }
-
- /**
- * Gets the number of detected errors.
- *
- * @return int
- */
- public function errorCount()
- {
- return count($this->errors);
- }
-
- /**
- * Returns an Enumeration for the errors.
- *
- * @return array
- */
- public function errors()
- {
- return $this->errors;
- }
-
- /**
- * Gets the number of detected failures.
- *
- * @return int
- */
- public function failureCount()
- {
- return count($this->failures);
- }
-
- /**
- * Returns an Enumeration for the failures.
- *
- * @return array
- */
- public function failures()
- {
- return $this->failures;
- }
-
- /**
- * Returns the names of the tests that have passed.
- *
- * @return array
- *
- * @since Method available since Release 3.4.0
- */
- public function passed()
- {
- return $this->passed;
- }
-
- /**
- * Returns the (top) test suite.
- *
- * @return PHPUnit_Framework_TestSuite
- *
- * @since Method available since Release 3.0.0
- */
- public function topTestSuite()
- {
- return $this->topTestSuite;
- }
-
- /**
- * Returns whether code coverage information should be collected.
- *
- * @return bool If code coverage should be collected
- *
- * @since Method available since Release 3.2.0
- */
- public function getCollectCodeCoverageInformation()
- {
- return $this->codeCoverage !== null;
- }
-
- /**
- * Runs a TestCase.
- *
- * @param PHPUnit_Framework_Test $test
- */
- public function run(PHPUnit_Framework_Test $test)
- {
- PHPUnit_Framework_Assert::resetCount();
-
- $error = false;
- $failure = false;
- $incomplete = false;
- $risky = false;
- $skipped = false;
-
- $this->startTest($test);
-
- $errorHandlerSet = false;
-
- if ($this->convertErrorsToExceptions) {
- $oldErrorHandler = set_error_handler(
- array('PHPUnit_Util_ErrorHandler', 'handleError'),
- E_ALL | E_STRICT
- );
-
- if ($oldErrorHandler === null) {
- $errorHandlerSet = true;
- } else {
- restore_error_handler();
- }
- }
-
- $collectCodeCoverage = $this->codeCoverage !== null &&
- !$test instanceof PHPUnit_Extensions_SeleniumTestCase &&
- !$test instanceof PHPUnit_Framework_Warning;
-
- if ($collectCodeCoverage) {
- // We need to blacklist test source files when no whitelist is used.
- if (!$this->codeCoverage->filter()->hasWhitelist()) {
- $classes = $this->getHierarchy(get_class($test), true);
-
- foreach ($classes as $class) {
- $this->codeCoverage->filter()->addFileToBlacklist(
- $class->getFileName()
- );
- }
- }
-
- $this->codeCoverage->start($test);
- }
-
- PHP_Timer::start();
-
- try {
- if (!$test instanceof PHPUnit_Framework_Warning &&
- $test->getSize() != PHPUnit_Util_Test::UNKNOWN &&
- $this->beStrictAboutTestSize &&
- extension_loaded('pcntl') && class_exists('PHP_Invoker')) {
- switch ($test->getSize()) {
- case PHPUnit_Util_Test::SMALL:
- $_timeout = $this->timeoutForSmallTests;
- break;
-
- case PHPUnit_Util_Test::MEDIUM:
- $_timeout = $this->timeoutForMediumTests;
- break;
-
- case PHPUnit_Util_Test::LARGE:
- $_timeout = $this->timeoutForLargeTests;
- break;
- }
-
- $invoker = new PHP_Invoker;
- $invoker->invoke(array($test, 'runBare'), array(), $_timeout);
- } else {
- $test->runBare();
- }
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- $failure = true;
-
- if ($e instanceof PHPUnit_Framework_RiskyTestError) {
- $risky = true;
- } elseif ($e instanceof PHPUnit_Framework_IncompleteTestError) {
- $incomplete = true;
- } elseif ($e instanceof PHPUnit_Framework_SkippedTestError) {
- $skipped = true;
- }
- } catch (PHPUnit_Framework_Exception $e) {
- $error = true;
- } catch (Throwable $e) {
- $e = new PHPUnit_Framework_ExceptionWrapper($e);
- $error = true;
- } catch (Exception $e) {
- $e = new PHPUnit_Framework_ExceptionWrapper($e);
- $error = true;
- }
-
- $time = PHP_Timer::stop();
- $test->addToAssertionCount(PHPUnit_Framework_Assert::getCount());
-
- if ($this->beStrictAboutTestsThatDoNotTestAnything &&
- $test->getNumAssertions() == 0) {
- $risky = true;
- }
-
- if ($collectCodeCoverage) {
- $append = !$risky && !$incomplete && !$skipped;
- $linesToBeCovered = array();
- $linesToBeUsed = array();
-
- if ($append && $test instanceof PHPUnit_Framework_TestCase) {
- $linesToBeCovered = PHPUnit_Util_Test::getLinesToBeCovered(
- get_class($test),
- $test->getName(false)
- );
-
- $linesToBeUsed = PHPUnit_Util_Test::getLinesToBeUsed(
- get_class($test),
- $test->getName(false)
- );
- }
-
- try {
- $this->codeCoverage->stop(
- $append,
- $linesToBeCovered,
- $linesToBeUsed
- );
- } catch (PHP_CodeCoverage_Exception_UnintentionallyCoveredCode $cce) {
- $this->addFailure(
- $test,
- new PHPUnit_Framework_UnintentionallyCoveredCodeError(
- 'This test executed code that is not listed as code to be covered or used:' .
- PHP_EOL . $cce->getMessage()
- ),
- $time
- );
- } catch (PHPUnit_Framework_InvalidCoversTargetException $cce) {
- $this->addFailure(
- $test,
- new PHPUnit_Framework_InvalidCoversTargetError(
- $cce->getMessage()
- ),
- $time
- );
- } catch (PHP_CodeCoverage_Exception $cce) {
- $error = true;
-
- if (!isset($e)) {
- $e = $cce;
- }
- }
- }
-
- if ($errorHandlerSet === true) {
- restore_error_handler();
- }
-
- if ($error === true) {
- $this->addError($test, $e, $time);
- } elseif ($failure === true) {
- $this->addFailure($test, $e, $time);
- } elseif ($this->beStrictAboutTestsThatDoNotTestAnything &&
- $test->getNumAssertions() == 0) {
- $this->addFailure(
- $test,
- new PHPUnit_Framework_RiskyTestError(
- 'This test did not perform any assertions'
- ),
- $time
- );
- } elseif ($this->beStrictAboutOutputDuringTests && $test->hasOutput()) {
- $this->addFailure(
- $test,
- new PHPUnit_Framework_OutputError(
- sprintf(
- 'This test printed output: %s',
- $test->getActualOutput()
- )
- ),
- $time
- );
- } elseif ($this->beStrictAboutTodoAnnotatedTests && $test instanceof PHPUnit_Framework_TestCase) {
- $annotations = $test->getAnnotations();
-
- if (isset($annotations['method']['todo'])) {
- $this->addFailure(
- $test,
- new PHPUnit_Framework_RiskyTestError(
- 'Test method is annotated with @todo'
- ),
- $time
- );
- }
- }
-
- $this->endTest($test, $time);
- }
-
- /**
- * Gets the number of run tests.
- *
- * @return int
- */
- public function count()
- {
- return $this->runTests;
- }
-
- /**
- * Checks whether the test run should stop.
- *
- * @return bool
- */
- public function shouldStop()
- {
- return $this->stop;
- }
-
- /**
- * Marks that the test run should stop.
- */
- public function stop()
- {
- $this->stop = true;
- }
-
- /**
- * Returns the PHP_CodeCoverage object.
- *
- * @return PHP_CodeCoverage
- *
- * @since Method available since Release 3.5.0
- */
- public function getCodeCoverage()
- {
- return $this->codeCoverage;
- }
-
- /**
- * Sets the PHP_CodeCoverage object.
- *
- * @param PHP_CodeCoverage $codeCoverage
- *
- * @since Method available since Release 3.6.0
- */
- public function setCodeCoverage(PHP_CodeCoverage $codeCoverage)
- {
- $this->codeCoverage = $codeCoverage;
- }
-
- /**
- * Enables or disables the error-to-exception conversion.
- *
- * @param bool $flag
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.2.14
- */
- public function convertErrorsToExceptions($flag)
- {
- if (!is_bool($flag)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
-
- $this->convertErrorsToExceptions = $flag;
- }
-
- /**
- * Returns the error-to-exception conversion setting.
- *
- * @return bool
- *
- * @since Method available since Release 3.4.0
- */
- public function getConvertErrorsToExceptions()
- {
- return $this->convertErrorsToExceptions;
- }
-
- /**
- * Enables or disables the stopping when an error occurs.
- *
- * @param bool $flag
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.5.0
- */
- public function stopOnError($flag)
- {
- if (!is_bool($flag)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
-
- $this->stopOnError = $flag;
- }
-
- /**
- * Enables or disables the stopping when a failure occurs.
- *
- * @param bool $flag
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.1.0
- */
- public function stopOnFailure($flag)
- {
- if (!is_bool($flag)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
-
- $this->stopOnFailure = $flag;
- }
-
- /**
- * @param bool $flag
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 4.0.0
- */
- public function beStrictAboutTestsThatDoNotTestAnything($flag)
- {
- if (!is_bool($flag)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
-
- $this->beStrictAboutTestsThatDoNotTestAnything = $flag;
- }
-
- /**
- * @return bool
- *
- * @since Method available since Release 4.0.0
- */
- public function isStrictAboutTestsThatDoNotTestAnything()
- {
- return $this->beStrictAboutTestsThatDoNotTestAnything;
- }
-
- /**
- * @param bool $flag
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 4.0.0
- */
- public function beStrictAboutOutputDuringTests($flag)
- {
- if (!is_bool($flag)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
-
- $this->beStrictAboutOutputDuringTests = $flag;
- }
-
- /**
- * @return bool
- *
- * @since Method available since Release 4.0.0
- */
- public function isStrictAboutOutputDuringTests()
- {
- return $this->beStrictAboutOutputDuringTests;
- }
-
- /**
- * @param bool $flag
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 4.0.0
- */
- public function beStrictAboutTestSize($flag)
- {
- if (!is_bool($flag)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
-
- $this->beStrictAboutTestSize = $flag;
- }
-
- /**
- * @return bool
- *
- * @since Method available since Release 4.0.0
- */
- public function isStrictAboutTestSize()
- {
- return $this->beStrictAboutTestSize;
- }
-
- /**
- * @param bool $flag
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 4.2.0
- */
- public function beStrictAboutTodoAnnotatedTests($flag)
- {
- if (!is_bool($flag)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
-
- $this->beStrictAboutTodoAnnotatedTests = $flag;
- }
-
- /**
- * @return bool
- *
- * @since Method available since Release 4.2.0
- */
- public function isStrictAboutTodoAnnotatedTests()
- {
- return $this->beStrictAboutTodoAnnotatedTests;
- }
-
- /**
- * Enables or disables the stopping for risky tests.
- *
- * @param bool $flag
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 4.0.0
- */
- public function stopOnRisky($flag)
- {
- if (!is_bool($flag)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
-
- $this->stopOnRisky = $flag;
- }
-
- /**
- * Enables or disables the stopping for incomplete tests.
- *
- * @param bool $flag
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.5.0
- */
- public function stopOnIncomplete($flag)
- {
- if (!is_bool($flag)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
-
- $this->stopOnIncomplete = $flag;
- }
-
- /**
- * Enables or disables the stopping for skipped tests.
- *
- * @param bool $flag
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.1.0
- */
- public function stopOnSkipped($flag)
- {
- if (!is_bool($flag)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
-
- $this->stopOnSkipped = $flag;
- }
-
- /**
- * Returns the time spent running the tests.
- *
- * @return float
- */
- public function time()
- {
- return $this->time;
- }
-
- /**
- * Returns whether the entire test was successful or not.
- *
- * @return bool
- */
- public function wasSuccessful()
- {
- return empty($this->errors) && empty($this->failures);
- }
-
- /**
- * Sets the timeout for small tests.
- *
- * @param int $timeout
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.6.0
- */
- public function setTimeoutForSmallTests($timeout)
- {
- if (!is_integer($timeout)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer');
- }
-
- $this->timeoutForSmallTests = $timeout;
- }
-
- /**
- * Sets the timeout for medium tests.
- *
- * @param int $timeout
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.6.0
- */
- public function setTimeoutForMediumTests($timeout)
- {
- if (!is_integer($timeout)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer');
- }
-
- $this->timeoutForMediumTests = $timeout;
- }
-
- /**
- * Sets the timeout for large tests.
- *
- * @param int $timeout
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.6.0
- */
- public function setTimeoutForLargeTests($timeout)
- {
- if (!is_integer($timeout)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer');
- }
-
- $this->timeoutForLargeTests = $timeout;
- }
-
- /**
- * Returns the class hierarchy for a given class.
- *
- * @param string $className
- * @param bool $asReflectionObjects
- *
- * @return array
- */
- protected function getHierarchy($className, $asReflectionObjects = false)
- {
- if ($asReflectionObjects) {
- $classes = array(new ReflectionClass($className));
- } else {
- $classes = array($className);
- }
-
- $done = false;
-
- while (!$done) {
- if ($asReflectionObjects) {
- $class = new ReflectionClass(
- $classes[count($classes) - 1]->getName()
- );
- } else {
- $class = new ReflectionClass($classes[count($classes) - 1]);
- }
-
- $parent = $class->getParentClass();
-
- if ($parent !== false) {
- if ($asReflectionObjects) {
- $classes[] = $parent;
- } else {
- $classes[] = $parent->getName();
- }
- } else {
- $done = true;
- }
- }
-
- return $classes;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestSuite.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/TestSuite.php
deleted file mode 100644
index 2a01e2ca..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestSuite.php
+++ /dev/null
@@ -1,1011 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A TestSuite is a composite of Tests. It runs a collection of test cases.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Framework_TestSuite implements PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing, IteratorAggregate
-{
- /**
- * Last count of tests in this suite.
- *
- * @var int|null
- */
- private $cachedNumTests;
-
- /**
- * Enable or disable the backup and restoration of the $GLOBALS array.
- *
- * @var bool
- */
- protected $backupGlobals = null;
-
- /**
- * Enable or disable the backup and restoration of static attributes.
- *
- * @var bool
- */
- protected $backupStaticAttributes = null;
-
- /**
- * @var bool
- */
- private $disallowChangesToGlobalState = null;
-
- /**
- * @var bool
- */
- protected $runTestInSeparateProcess = false;
-
- /**
- * The name of the test suite.
- *
- * @var string
- */
- protected $name = '';
-
- /**
- * The test groups of the test suite.
- *
- * @var array
- */
- protected $groups = array();
-
- /**
- * The tests in the test suite.
- *
- * @var array
- */
- protected $tests = array();
-
- /**
- * The number of tests in the test suite.
- *
- * @var int
- */
- protected $numTests = -1;
-
- /**
- * @var bool
- */
- protected $testCase = false;
-
- /**
- * @var array
- */
- protected $foundClasses = array();
-
- /**
- * @var PHPUnit_Runner_Filter_Factory
- */
- private $iteratorFilter = null;
-
- /**
- * Constructs a new TestSuite:
- *
- * - PHPUnit_Framework_TestSuite() constructs an empty TestSuite.
- *
- * - PHPUnit_Framework_TestSuite(ReflectionClass) constructs a
- * TestSuite from the given class.
- *
- * - PHPUnit_Framework_TestSuite(ReflectionClass, String)
- * constructs a TestSuite from the given class with the given
- * name.
- *
- * - PHPUnit_Framework_TestSuite(String) either constructs a
- * TestSuite from the given class (if the passed string is the
- * name of an existing class) or constructs an empty TestSuite
- * with the given name.
- *
- * @param mixed $theClass
- * @param string $name
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function __construct($theClass = '', $name = '')
- {
- $argumentsValid = false;
-
- if (is_object($theClass) &&
- $theClass instanceof ReflectionClass) {
- $argumentsValid = true;
- } elseif (is_string($theClass) &&
- $theClass !== '' &&
- class_exists($theClass, false)) {
- $argumentsValid = true;
-
- if ($name == '') {
- $name = $theClass;
- }
-
- $theClass = new ReflectionClass($theClass);
- } elseif (is_string($theClass)) {
- $this->setName($theClass);
-
- return;
- }
-
- if (!$argumentsValid) {
- throw new PHPUnit_Framework_Exception;
- }
-
- if (!$theClass->isSubclassOf('PHPUnit_Framework_TestCase')) {
- throw new PHPUnit_Framework_Exception(
- 'Class "' . $theClass->name . '" does not extend PHPUnit_Framework_TestCase.'
- );
- }
-
- if ($name != '') {
- $this->setName($name);
- } else {
- $this->setName($theClass->getName());
- }
-
- $constructor = $theClass->getConstructor();
-
- if ($constructor !== null &&
- !$constructor->isPublic()) {
- $this->addTest(
- self::warning(
- sprintf(
- 'Class "%s" has no public constructor.',
- $theClass->getName()
- )
- )
- );
-
- return;
- }
-
- foreach ($theClass->getMethods() as $method) {
- $this->addTestMethod($theClass, $method);
- }
-
- if (empty($this->tests)) {
- $this->addTest(
- self::warning(
- sprintf(
- 'No tests found in class "%s".',
- $theClass->getName()
- )
- )
- );
- }
-
- $this->testCase = true;
- }
-
- /**
- * Returns a string representation of the test suite.
- *
- * @return string
- */
- public function toString()
- {
- return $this->getName();
- }
-
- /**
- * Adds a test to the suite.
- *
- * @param PHPUnit_Framework_Test $test
- * @param array $groups
- */
- public function addTest(PHPUnit_Framework_Test $test, $groups = array())
- {
- $class = new ReflectionClass($test);
-
- if (!$class->isAbstract()) {
- $this->tests[] = $test;
- $this->numTests = -1;
-
- if ($test instanceof self &&
- empty($groups)) {
- $groups = $test->getGroups();
- }
-
- if (empty($groups)) {
- $groups = array('default');
- }
-
- foreach ($groups as $group) {
- if (!isset($this->groups[$group])) {
- $this->groups[$group] = array($test);
- } else {
- $this->groups[$group][] = $test;
- }
- }
- }
- }
-
- /**
- * Adds the tests from the given class to the suite.
- *
- * @param mixed $testClass
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function addTestSuite($testClass)
- {
- if (is_string($testClass) && class_exists($testClass)) {
- $testClass = new ReflectionClass($testClass);
- }
-
- if (!is_object($testClass)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 1,
- 'class name or object'
- );
- }
-
- if ($testClass instanceof self) {
- $this->addTest($testClass);
- } elseif ($testClass instanceof ReflectionClass) {
- $suiteMethod = false;
-
- if (!$testClass->isAbstract()) {
- if ($testClass->hasMethod(PHPUnit_Runner_BaseTestRunner::SUITE_METHODNAME)) {
- $method = $testClass->getMethod(
- PHPUnit_Runner_BaseTestRunner::SUITE_METHODNAME
- );
-
- if ($method->isStatic()) {
- $this->addTest(
- $method->invoke(null, $testClass->getName())
- );
-
- $suiteMethod = true;
- }
- }
- }
-
- if (!$suiteMethod && !$testClass->isAbstract()) {
- $this->addTest(new self($testClass));
- }
- } else {
- throw new PHPUnit_Framework_Exception;
- }
- }
-
- /**
- * Wraps both <code>addTest()</code> and <code>addTestSuite</code>
- * as well as the separate import statements for the user's convenience.
- *
- * If the named file cannot be read or there are no new tests that can be
- * added, a <code>PHPUnit_Framework_Warning</code> will be created instead,
- * leaving the current test run untouched.
- *
- * @param string $filename
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 2.3.0
- */
- public function addTestFile($filename)
- {
- if (!is_string($filename)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
- }
-
- if (file_exists($filename) && substr($filename, -5) == '.phpt') {
- $this->addTest(
- new PHPUnit_Extensions_PhptTestCase($filename)
- );
-
- return;
- }
-
- // The given file may contain further stub classes in addition to the
- // test class itself. Figure out the actual test class.
- $classes = get_declared_classes();
- $filename = PHPUnit_Util_Fileloader::checkAndLoad($filename);
- $newClasses = array_diff(get_declared_classes(), $classes);
-
- // The diff is empty in case a parent class (with test methods) is added
- // AFTER a child class that inherited from it. To account for that case,
- // cumulate all discovered classes, so the parent class may be found in
- // a later invocation.
- if ($newClasses) {
- // On the assumption that test classes are defined first in files,
- // process discovered classes in approximate LIFO order, so as to
- // avoid unnecessary reflection.
- $this->foundClasses = array_merge($newClasses, $this->foundClasses);
- }
-
- // The test class's name must match the filename, either in full, or as
- // a PEAR/PSR-0 prefixed shortname ('NameSpace_ShortName'), or as a
- // PSR-1 local shortname ('NameSpace\ShortName'). The comparison must be
- // anchored to prevent false-positive matches (e.g., 'OtherShortName').
- $shortname = basename($filename, '.php');
- $shortnameRegEx = '/(?:^|_|\\\\)' . preg_quote($shortname, '/') . '$/';
-
- foreach ($this->foundClasses as $i => $className) {
- if (preg_match($shortnameRegEx, $className)) {
- $class = new ReflectionClass($className);
-
- if ($class->getFileName() == $filename) {
- $newClasses = array($className);
- unset($this->foundClasses[$i]);
- break;
- }
- }
- }
-
- foreach ($newClasses as $className) {
- $class = new ReflectionClass($className);
-
- if (!$class->isAbstract()) {
- if ($class->hasMethod(PHPUnit_Runner_BaseTestRunner::SUITE_METHODNAME)) {
- $method = $class->getMethod(
- PHPUnit_Runner_BaseTestRunner::SUITE_METHODNAME
- );
-
- if ($method->isStatic()) {
- $this->addTest($method->invoke(null, $className));
- }
- } elseif ($class->implementsInterface('PHPUnit_Framework_Test')) {
- $this->addTestSuite($class);
- }
- }
- }
-
- $this->numTests = -1;
- }
-
- /**
- * Wrapper for addTestFile() that adds multiple test files.
- *
- * @param array|Iterator $filenames
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 2.3.0
- */
- public function addTestFiles($filenames)
- {
- if (!(is_array($filenames) ||
- (is_object($filenames) && $filenames instanceof Iterator))) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 1,
- 'array or iterator'
- );
- }
-
- foreach ($filenames as $filename) {
- $this->addTestFile((string) $filename);
- }
- }
-
- /**
- * Counts the number of test cases that will be run by this test.
- *
- * @param bool $preferCache Indicates if cache is preferred.
- *
- * @return int
- */
- public function count($preferCache = false)
- {
- if ($preferCache && $this->cachedNumTests != null) {
- $numTests = $this->cachedNumTests;
- } else {
- $numTests = 0;
- foreach ($this as $test) {
- $numTests += count($test);
- }
- $this->cachedNumTests = $numTests;
- }
-
- return $numTests;
- }
-
- /**
- * @param ReflectionClass $theClass
- * @param string $name
- *
- * @return PHPUnit_Framework_Test
- *
- * @throws PHPUnit_Framework_Exception
- */
- public static function createTest(ReflectionClass $theClass, $name)
- {
- $className = $theClass->getName();
-
- if (!$theClass->isInstantiable()) {
- return self::warning(
- sprintf('Cannot instantiate class "%s".', $className)
- );
- }
-
- $backupSettings = PHPUnit_Util_Test::getBackupSettings(
- $className,
- $name
- );
-
- $preserveGlobalState = PHPUnit_Util_Test::getPreserveGlobalStateSettings(
- $className,
- $name
- );
-
- $runTestInSeparateProcess = PHPUnit_Util_Test::getProcessIsolationSettings(
- $className,
- $name
- );
-
- $constructor = $theClass->getConstructor();
-
- if ($constructor !== null) {
- $parameters = $constructor->getParameters();
-
- // TestCase() or TestCase($name)
- if (count($parameters) < 2) {
- $test = new $className;
- } // TestCase($name, $data)
- else {
- try {
- $data = PHPUnit_Util_Test::getProvidedData(
- $className,
- $name
- );
- } catch (PHPUnit_Framework_IncompleteTestError $e) {
- $message = sprintf(
- 'Test for %s::%s marked incomplete by data provider',
- $className,
- $name
- );
-
- $_message = $e->getMessage();
-
- if (!empty($_message)) {
- $message .= "\n" . $_message;
- }
-
- $data = self::incompleteTest($className, $name, $message);
- } catch (PHPUnit_Framework_SkippedTestError $e) {
- $message = sprintf(
- 'Test for %s::%s skipped by data provider',
- $className,
- $name
- );
-
- $_message = $e->getMessage();
-
- if (!empty($_message)) {
- $message .= "\n" . $_message;
- }
-
- $data = self::skipTest($className, $name, $message);
- } catch (Throwable $_t) {
- $t = $_t;
- } catch (Exception $_t) {
- $t = $_t;
- }
-
- if (isset($t)) {
- $message = sprintf(
- 'The data provider specified for %s::%s is invalid.',
- $className,
- $name
- );
-
- $_message = $t->getMessage();
-
- if (!empty($_message)) {
- $message .= "\n" . $_message;
- }
-
- $data = self::warning($message);
- }
-
- // Test method with @dataProvider.
- if (isset($data)) {
- $test = new PHPUnit_Framework_TestSuite_DataProvider(
- $className . '::' . $name
- );
-
- if (empty($data)) {
- $data = self::warning(
- sprintf(
- 'No tests found in suite "%s".',
- $test->getName()
- )
- );
- }
-
- $groups = PHPUnit_Util_Test::getGroups($className, $name);
-
- if ($data instanceof PHPUnit_Framework_Warning ||
- $data instanceof PHPUnit_Framework_SkippedTestCase ||
- $data instanceof PHPUnit_Framework_IncompleteTestCase) {
- $test->addTest($data, $groups);
- } else {
- foreach ($data as $_dataName => $_data) {
- $_test = new $className($name, $_data, $_dataName);
-
- if ($runTestInSeparateProcess) {
- $_test->setRunTestInSeparateProcess(true);
-
- if ($preserveGlobalState !== null) {
- $_test->setPreserveGlobalState($preserveGlobalState);
- }
- }
-
- if ($backupSettings['backupGlobals'] !== null) {
- $_test->setBackupGlobals(
- $backupSettings['backupGlobals']
- );
- }
-
- if ($backupSettings['backupStaticAttributes'] !== null) {
- $_test->setBackupStaticAttributes(
- $backupSettings['backupStaticAttributes']
- );
- }
-
- $test->addTest($_test, $groups);
- }
- }
- } else {
- $test = new $className;
- }
- }
- }
-
- if (!isset($test)) {
- throw new PHPUnit_Framework_Exception('No valid test provided.');
- }
-
- if ($test instanceof PHPUnit_Framework_TestCase) {
- $test->setName($name);
-
- if ($runTestInSeparateProcess) {
- $test->setRunTestInSeparateProcess(true);
-
- if ($preserveGlobalState !== null) {
- $test->setPreserveGlobalState($preserveGlobalState);
- }
- }
-
- if ($backupSettings['backupGlobals'] !== null) {
- $test->setBackupGlobals($backupSettings['backupGlobals']);
- }
-
- if ($backupSettings['backupStaticAttributes'] !== null) {
- $test->setBackupStaticAttributes(
- $backupSettings['backupStaticAttributes']
- );
- }
- }
-
- return $test;
- }
-
- /**
- * Creates a default TestResult object.
- *
- * @return PHPUnit_Framework_TestResult
- */
- protected function createResult()
- {
- return new PHPUnit_Framework_TestResult;
- }
-
- /**
- * Returns the name of the suite.
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Returns the test groups of the suite.
- *
- * @return array
- *
- * @since Method available since Release 3.2.0
- */
- public function getGroups()
- {
- return array_keys($this->groups);
- }
-
- public function getGroupDetails()
- {
- return $this->groups;
- }
-
- /**
- * Set tests groups of the test case
- *
- * @param array $groups
- *
- * @since Method available since Release 4.0.0
- */
- public function setGroupDetails(array $groups)
- {
- $this->groups = $groups;
- }
-
- /**
- * Runs the tests and collects their result in a TestResult.
- *
- * @param PHPUnit_Framework_TestResult $result
- *
- * @return PHPUnit_Framework_TestResult
- */
- public function run(PHPUnit_Framework_TestResult $result = null)
- {
- if ($result === null) {
- $result = $this->createResult();
- }
-
- if (count($this) == 0) {
- return $result;
- }
-
- $hookMethods = PHPUnit_Util_Test::getHookMethods($this->name);
-
- $result->startTestSuite($this);
-
- try {
- $this->setUp();
-
- foreach ($hookMethods['beforeClass'] as $beforeClassMethod) {
- if ($this->testCase === true &&
- class_exists($this->name, false) &&
- method_exists($this->name, $beforeClassMethod)) {
- if ($missingRequirements = PHPUnit_Util_Test::getMissingRequirements($this->name, $beforeClassMethod)) {
- $this->markTestSuiteSkipped(implode(PHP_EOL, $missingRequirements));
- }
-
- call_user_func(array($this->name, $beforeClassMethod));
- }
- }
- } catch (PHPUnit_Framework_SkippedTestSuiteError $e) {
- $numTests = count($this);
-
- for ($i = 0; $i < $numTests; $i++) {
- $result->startTest($this);
- $result->addFailure($this, $e, 0);
- $result->endTest($this, 0);
- }
-
- $this->tearDown();
- $result->endTestSuite($this);
-
- return $result;
- } catch (Throwable $_t) {
- $t = $_t;
- } catch (Exception $_t) {
- $t = $_t;
- }
-
- if (isset($t)) {
- $numTests = count($this);
-
- for ($i = 0; $i < $numTests; $i++) {
- $result->startTest($this);
- $result->addError($this, $t, 0);
- $result->endTest($this, 0);
- }
-
- $this->tearDown();
- $result->endTestSuite($this);
-
- return $result;
- }
-
- foreach ($this as $test) {
- if ($result->shouldStop()) {
- break;
- }
-
- if ($test instanceof PHPUnit_Framework_TestCase ||
- $test instanceof self) {
- $test->setDisallowChangesToGlobalState($this->disallowChangesToGlobalState);
- $test->setBackupGlobals($this->backupGlobals);
- $test->setBackupStaticAttributes($this->backupStaticAttributes);
- $test->setRunTestInSeparateProcess($this->runTestInSeparateProcess);
- }
-
- $test->run($result);
- }
-
- foreach ($hookMethods['afterClass'] as $afterClassMethod) {
- if ($this->testCase === true && class_exists($this->name, false) && method_exists($this->name, $afterClassMethod)) {
- call_user_func(array($this->name, $afterClassMethod));
- }
- }
-
- $this->tearDown();
-
- $result->endTestSuite($this);
-
- return $result;
- }
-
- /**
- * @param bool $runTestInSeparateProcess
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.7.0
- */
- public function setRunTestInSeparateProcess($runTestInSeparateProcess)
- {
- if (is_bool($runTestInSeparateProcess)) {
- $this->runTestInSeparateProcess = $runTestInSeparateProcess;
- } else {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
- }
-
- /**
- * Runs a test.
- *
- * @deprecated
- *
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_TestResult $result
- */
- public function runTest(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result)
- {
- $test->run($result);
- }
-
- /**
- * Sets the name of the suite.
- *
- * @param string
- */
- public function setName($name)
- {
- $this->name = $name;
- }
-
- /**
- * Returns the test at the given index.
- *
- * @param int
- *
- * @return PHPUnit_Framework_Test
- */
- public function testAt($index)
- {
- if (isset($this->tests[$index])) {
- return $this->tests[$index];
- } else {
- return false;
- }
- }
-
- /**
- * Returns the tests as an enumeration.
- *
- * @return array
- */
- public function tests()
- {
- return $this->tests;
- }
-
- /**
- * Set tests of the test suite
- *
- * @param array $tests
- *
- * @since Method available since Release 4.0.0
- */
- public function setTests(array $tests)
- {
- $this->tests = $tests;
- }
-
- /**
- * Mark the test suite as skipped.
- *
- * @param string $message
- *
- * @throws PHPUnit_Framework_SkippedTestSuiteError
- *
- * @since Method available since Release 3.0.0
- */
- public function markTestSuiteSkipped($message = '')
- {
- throw new PHPUnit_Framework_SkippedTestSuiteError($message);
- }
-
- /**
- * @param ReflectionClass $class
- * @param ReflectionMethod $method
- */
- protected function addTestMethod(ReflectionClass $class, ReflectionMethod $method)
- {
- if (!$this->isTestMethod($method)) {
- return;
- }
-
- $name = $method->getName();
-
- if (!$method->isPublic()) {
- $this->addTest(
- self::warning(
- sprintf(
- 'Test method "%s" in test class "%s" is not public.',
- $name,
- $class->getName()
- )
- )
- );
-
- return;
- }
-
- $test = self::createTest($class, $name);
-
- if ($test instanceof PHPUnit_Framework_TestCase ||
- $test instanceof PHPUnit_Framework_TestSuite_DataProvider) {
- $test->setDependencies(
- PHPUnit_Util_Test::getDependencies($class->getName(), $name)
- );
- }
-
- $this->addTest(
- $test,
- PHPUnit_Util_Test::getGroups($class->getName(), $name)
- );
- }
-
- /**
- * @param ReflectionMethod $method
- *
- * @return bool
- */
- public static function isTestMethod(ReflectionMethod $method)
- {
- if (strpos($method->name, 'test') === 0) {
- return true;
- }
-
- // @scenario on TestCase::testMethod()
- // @test on TestCase::testMethod()
- $doc_comment = $method->getDocComment();
-
- return strpos($doc_comment, '@test') !== false ||
- strpos($doc_comment, '@scenario') !== false;
- }
-
- /**
- * @param string $message
- *
- * @return PHPUnit_Framework_Warning
- */
- protected static function warning($message)
- {
- return new PHPUnit_Framework_Warning($message);
- }
-
- /**
- * @param string $class
- * @param string $methodName
- * @param string $message
- *
- * @return PHPUnit_Framework_SkippedTestCase
- *
- * @since Method available since Release 4.3.0
- */
- protected static function skipTest($class, $methodName, $message)
- {
- return new PHPUnit_Framework_SkippedTestCase($class, $methodName, $message);
- }
-
- /**
- * @param string $class
- * @param string $methodName
- * @param string $message
- *
- * @return PHPUnit_Framework_IncompleteTestCase
- *
- * @since Method available since Release 4.3.0
- */
- protected static function incompleteTest($class, $methodName, $message)
- {
- return new PHPUnit_Framework_IncompleteTestCase($class, $methodName, $message);
- }
-
- /**
- * @param bool $disallowChangesToGlobalState
- *
- * @since Method available since Release 4.6.0
- */
- public function setDisallowChangesToGlobalState($disallowChangesToGlobalState)
- {
- if (is_null($this->disallowChangesToGlobalState) && is_bool($disallowChangesToGlobalState)) {
- $this->disallowChangesToGlobalState = $disallowChangesToGlobalState;
- }
- }
-
- /**
- * @param bool $backupGlobals
- *
- * @since Method available since Release 3.3.0
- */
- public function setBackupGlobals($backupGlobals)
- {
- if (is_null($this->backupGlobals) && is_bool($backupGlobals)) {
- $this->backupGlobals = $backupGlobals;
- }
- }
-
- /**
- * @param bool $backupStaticAttributes
- *
- * @since Method available since Release 3.4.0
- */
- public function setBackupStaticAttributes($backupStaticAttributes)
- {
- if (is_null($this->backupStaticAttributes) &&
- is_bool($backupStaticAttributes)) {
- $this->backupStaticAttributes = $backupStaticAttributes;
- }
- }
-
- /**
- * Returns an iterator for this test suite.
- *
- * @return RecursiveIteratorIterator
- *
- * @since Method available since Release 3.1.0
- */
- public function getIterator()
- {
- $iterator = new PHPUnit_Util_TestSuiteIterator($this);
-
- if ($this->iteratorFilter !== null) {
- $iterator = $this->iteratorFilter->factory($iterator, $this);
- }
-
- return $iterator;
- }
-
- public function injectFilter(PHPUnit_Runner_Filter_Factory $filter)
- {
- $this->iteratorFilter = $filter;
- foreach ($this as $test) {
- if ($test instanceof self) {
- $test->injectFilter($filter);
- }
- }
- }
-
- /**
- * Template Method that is called before the tests
- * of this test suite are run.
- *
- * @since Method available since Release 3.1.0
- */
- protected function setUp()
- {
- }
-
- /**
- * Template Method that is called after the tests
- * of this test suite have finished running.
- *
- * @since Method available since Release 3.1.0
- */
- protected function tearDown()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestSuite/DataProvider.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/TestSuite/DataProvider.php
deleted file mode 100644
index 61062035..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/TestSuite/DataProvider.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.4.0
- */
-class PHPUnit_Framework_TestSuite_DataProvider extends PHPUnit_Framework_TestSuite
-{
- /**
- * Sets the dependencies of a TestCase.
- *
- * @param array $dependencies
- */
- public function setDependencies(array $dependencies)
- {
- foreach ($this->tests as $test) {
- $test->setDependencies($dependencies);
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/UnintentionallyCoveredCodeError.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/UnintentionallyCoveredCodeError.php
deleted file mode 100644
index b24c041a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/UnintentionallyCoveredCodeError.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Extension to PHPUnit_Framework_AssertionFailedError to mark the special
- * case of a test test that unintentionally covers code.
- *
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Framework_UnintentionallyCoveredCodeError extends PHPUnit_Framework_RiskyTestError
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Framework/Warning.php b/www/wiki/vendor/phpunit/phpunit/src/Framework/Warning.php
deleted file mode 100644
index 8c7cef60..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Framework/Warning.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A warning.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Framework_Warning extends PHPUnit_Framework_TestCase
-{
- /**
- * @var string
- */
- protected $message = '';
-
- /**
- * @var bool
- */
- protected $backupGlobals = false;
-
- /**
- * @var bool
- */
- protected $backupStaticAttributes = false;
-
- /**
- * @var bool
- */
- protected $runTestInSeparateProcess = false;
-
- /**
- * @var bool
- */
- protected $useErrorHandler = false;
-
- /**
- * @param string $message
- */
- public function __construct($message = '')
- {
- $this->message = $message;
- parent::__construct('Warning');
- }
-
- /**
- * @throws PHPUnit_Framework_Exception
- */
- protected function runTest()
- {
- $this->fail($this->message);
- }
-
- /**
- * @return string
- *
- * @since Method available since Release 3.0.0
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Returns a string representation of the test case.
- *
- * @return string
- *
- * @since Method available since Release 3.4.0
- */
- public function toString()
- {
- return 'Warning';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Runner/BaseTestRunner.php b/www/wiki/vendor/phpunit/phpunit/src/Runner/BaseTestRunner.php
deleted file mode 100644
index 15805dc7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Runner/BaseTestRunner.php
+++ /dev/null
@@ -1,140 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Base class for all test runners.
- *
- * @since Class available since Release 2.0.0
- */
-abstract class PHPUnit_Runner_BaseTestRunner
-{
- const STATUS_PASSED = 0;
- const STATUS_SKIPPED = 1;
- const STATUS_INCOMPLETE = 2;
- const STATUS_FAILURE = 3;
- const STATUS_ERROR = 4;
- const STATUS_RISKY = 5;
- const SUITE_METHODNAME = 'suite';
-
- /**
- * Returns the loader to be used.
- *
- * @return PHPUnit_Runner_TestSuiteLoader
- */
- public function getLoader()
- {
- return new PHPUnit_Runner_StandardTestSuiteLoader;
- }
-
- /**
- * Returns the Test corresponding to the given suite.
- * This is a template method, subclasses override
- * the runFailed() and clearStatus() methods.
- *
- * @param string $suiteClassName
- * @param string $suiteClassFile
- * @param mixed $suffixes
- *
- * @return PHPUnit_Framework_Test
- */
- public function getTest($suiteClassName, $suiteClassFile = '', $suffixes = '')
- {
- if (is_dir($suiteClassName) &&
- !is_file($suiteClassName . '.php') && empty($suiteClassFile)) {
- $facade = new File_Iterator_Facade;
- $files = $facade->getFilesAsArray(
- $suiteClassName,
- $suffixes
- );
-
- $suite = new PHPUnit_Framework_TestSuite($suiteClassName);
- $suite->addTestFiles($files);
-
- return $suite;
- }
-
- try {
- $testClass = $this->loadSuiteClass(
- $suiteClassName,
- $suiteClassFile
- );
- } catch (PHPUnit_Framework_Exception $e) {
- $this->runFailed($e->getMessage());
-
- return;
- }
-
- try {
- $suiteMethod = $testClass->getMethod(self::SUITE_METHODNAME);
-
- if (!$suiteMethod->isStatic()) {
- $this->runFailed(
- 'suite() method must be static.'
- );
-
- return;
- }
-
- try {
- $test = $suiteMethod->invoke(null, $testClass->getName());
- } catch (ReflectionException $e) {
- $this->runFailed(
- sprintf(
- "Failed to invoke suite() method.\n%s",
- $e->getMessage()
- )
- );
-
- return;
- }
- } catch (ReflectionException $e) {
- try {
- $test = new PHPUnit_Framework_TestSuite($testClass);
- } catch (PHPUnit_Framework_Exception $e) {
- $test = new PHPUnit_Framework_TestSuite;
- $test->setName($suiteClassName);
- }
- }
-
- $this->clearStatus();
-
- return $test;
- }
-
- /**
- * Returns the loaded ReflectionClass for a suite name.
- *
- * @param string $suiteClassName
- * @param string $suiteClassFile
- *
- * @return ReflectionClass
- */
- protected function loadSuiteClass($suiteClassName, $suiteClassFile = '')
- {
- $loader = $this->getLoader();
-
- return $loader->load($suiteClassName, $suiteClassFile);
- }
-
- /**
- * Clears the status message.
- */
- protected function clearStatus()
- {
- }
-
- /**
- * Override to define how to handle a failed loading of
- * a test suite.
- *
- * @param string $message
- */
- abstract protected function runFailed($message);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Runner/Exception.php b/www/wiki/vendor/phpunit/phpunit/src/Runner/Exception.php
deleted file mode 100644
index 4b239afe..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Runner/Exception.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Runner_Exception extends RuntimeException implements PHPUnit_Exception
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Factory.php b/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Factory.php
deleted file mode 100644
index f4fa9d99..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Factory.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Runner_Filter_Factory
-{
- /**
- * @var array
- */
- private $filters = array();
-
- /**
- * @param ReflectionClass $filter
- * @param mixed $args
- */
- public function addFilter(ReflectionClass $filter, $args)
- {
- if (!$filter->isSubclassOf('RecursiveFilterIterator')) {
- throw new InvalidArgumentException(
- sprintf(
- 'Class "%s" does not extend RecursiveFilterIterator',
- $filter->name
- )
- );
- }
-
- $this->filters[] = array($filter, $args);
- }
-
- /**
- * @return FilterIterator
- */
- public function factory(Iterator $iterator, PHPUnit_Framework_TestSuite $suite)
- {
- foreach ($this->filters as $filter) {
- list($class, $args) = $filter;
- $iterator = $class->newInstance($iterator, $args, $suite);
- }
-
- return $iterator;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group.php b/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group.php
deleted file mode 100644
index 9257b3bd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.0.0
- */
-abstract class PHPUnit_Runner_Filter_GroupFilterIterator extends RecursiveFilterIterator
-{
- /**
- * @var array
- */
- protected $groupTests = array();
-
- /**
- * @param RecursiveIterator $iterator
- * @param array $groups
- * @param PHPUnit_Framework_TestSuite $suite
- */
- public function __construct(RecursiveIterator $iterator, array $groups, PHPUnit_Framework_TestSuite $suite)
- {
- parent::__construct($iterator);
-
- foreach ($suite->getGroupDetails() as $group => $tests) {
- if (in_array($group, $groups)) {
- $testHashes = array_map(
- function ($test) {
- return spl_object_hash($test);
- },
- $tests
- );
-
- $this->groupTests = array_merge($this->groupTests, $testHashes);
- }
- }
- }
-
- /**
- * @return bool
- */
- public function accept()
- {
- $test = $this->getInnerIterator()->current();
-
- if ($test instanceof PHPUnit_Framework_TestSuite) {
- return true;
- }
-
- return $this->doAccept(spl_object_hash($test));
- }
-
- abstract protected function doAccept($hash);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group/Exclude.php b/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group/Exclude.php
deleted file mode 100644
index 9fe4b690..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group/Exclude.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Runner_Filter_Group_Exclude extends PHPUnit_Runner_Filter_GroupFilterIterator
-{
- protected function doAccept($hash)
- {
- return !in_array($hash, $this->groupTests);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group/Include.php b/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group/Include.php
deleted file mode 100644
index 49d2506e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Group/Include.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Runner_Filter_Group_Include extends PHPUnit_Runner_Filter_GroupFilterIterator
-{
- protected function doAccept($hash)
- {
- return in_array($hash, $this->groupTests);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Test.php b/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Test.php
deleted file mode 100644
index bae4a5c9..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Runner/Filter/Test.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Runner_Filter_Test extends RecursiveFilterIterator
-{
- /**
- * @var string
- */
- protected $filter = null;
-
- /**
- * @var int
- */
- protected $filterMin;
- /**
- * @var int
- */
- protected $filterMax;
-
- /**
- * @param RecursiveIterator $iterator
- * @param string $filter
- */
- public function __construct(RecursiveIterator $iterator, $filter)
- {
- parent::__construct($iterator);
- $this->setFilter($filter);
- }
-
- /**
- * @param string $filter
- */
- protected function setFilter($filter)
- {
- if (PHPUnit_Util_Regex::pregMatchSafe($filter, '') === false) {
- // Handles:
- // * testAssertEqualsSucceeds#4
- // * testAssertEqualsSucceeds#4-8
- if (preg_match('/^(.*?)#(\d+)(?:-(\d+))?$/', $filter, $matches)) {
- if (isset($matches[3]) && $matches[2] < $matches[3]) {
- $filter = sprintf(
- '%s.*with data set #(\d+)$',
- $matches[1]
- );
-
- $this->filterMin = $matches[2];
- $this->filterMax = $matches[3];
- } else {
- $filter = sprintf(
- '%s.*with data set #%s$',
- $matches[1],
- $matches[2]
- );
- }
- } // Handles:
- // * testDetermineJsonError@JSON_ERROR_NONE
- // * testDetermineJsonError@JSON.*
- elseif (preg_match('/^(.*?)@(.+)$/', $filter, $matches)) {
- $filter = sprintf(
- '%s.*with data set "%s"$',
- $matches[1],
- $matches[2]
- );
- }
-
- // Escape delimiters in regular expression. Do NOT use preg_quote,
- // to keep magic characters.
- $filter = sprintf('/%s/', str_replace(
- '/',
- '\\/',
- $filter
- ));
- }
-
- $this->filter = $filter;
- }
-
- /**
- * @return bool
- */
- public function accept()
- {
- $test = $this->getInnerIterator()->current();
-
- if ($test instanceof PHPUnit_Framework_TestSuite) {
- return true;
- }
-
- $tmp = PHPUnit_Util_Test::describe($test, false);
-
- if ($tmp[0] != '') {
- $name = implode('::', $tmp);
- } else {
- $name = $tmp[1];
- }
-
- $accepted = @preg_match($this->filter, $name, $matches);
-
- if ($accepted && isset($this->filterMax)) {
- $set = end($matches);
- $accepted = $set >= $this->filterMin && $set <= $this->filterMax;
- }
-
- return $accepted;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Runner/StandardTestSuiteLoader.php b/www/wiki/vendor/phpunit/phpunit/src/Runner/StandardTestSuiteLoader.php
deleted file mode 100644
index 3338a73c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Runner/StandardTestSuiteLoader.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * The standard test suite loader.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Runner_StandardTestSuiteLoader implements PHPUnit_Runner_TestSuiteLoader
-{
- /**
- * @param string $suiteClassName
- * @param string $suiteClassFile
- *
- * @return ReflectionClass
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function load($suiteClassName, $suiteClassFile = '')
- {
- $suiteClassName = str_replace('.php', '', $suiteClassName);
-
- if (empty($suiteClassFile)) {
- $suiteClassFile = PHPUnit_Util_Filesystem::classNameToFilename(
- $suiteClassName
- );
- }
-
- if (!class_exists($suiteClassName, false)) {
- $loadedClasses = get_declared_classes();
-
- $filename = PHPUnit_Util_Fileloader::checkAndLoad($suiteClassFile);
-
- $loadedClasses = array_values(
- array_diff(get_declared_classes(), $loadedClasses)
- );
- }
-
- if (!class_exists($suiteClassName, false) && !empty($loadedClasses)) {
- $offset = 0 - strlen($suiteClassName);
-
- foreach ($loadedClasses as $loadedClass) {
- $class = new ReflectionClass($loadedClass);
- if (substr($loadedClass, $offset) === $suiteClassName &&
- $class->getFileName() == $filename) {
- $suiteClassName = $loadedClass;
- break;
- }
- }
- }
-
- if (!class_exists($suiteClassName, false) && !empty($loadedClasses)) {
- $testCaseClass = 'PHPUnit_Framework_TestCase';
-
- foreach ($loadedClasses as $loadedClass) {
- $class = new ReflectionClass($loadedClass);
- $classFile = $class->getFileName();
-
- if ($class->isSubclassOf($testCaseClass) &&
- !$class->isAbstract()) {
- $suiteClassName = $loadedClass;
- $testCaseClass = $loadedClass;
-
- if ($classFile == realpath($suiteClassFile)) {
- break;
- }
- }
-
- if ($class->hasMethod('suite')) {
- $method = $class->getMethod('suite');
-
- if (!$method->isAbstract() &&
- $method->isPublic() &&
- $method->isStatic()) {
- $suiteClassName = $loadedClass;
-
- if ($classFile == realpath($suiteClassFile)) {
- break;
- }
- }
- }
- }
- }
-
- if (class_exists($suiteClassName, false)) {
- $class = new ReflectionClass($suiteClassName);
-
- if ($class->getFileName() == realpath($suiteClassFile)) {
- return $class;
- }
- }
-
- throw new PHPUnit_Framework_Exception(
- sprintf(
- "Class '%s' could not be found in '%s'.",
- $suiteClassName,
- $suiteClassFile
- )
- );
- }
-
- /**
- * @param ReflectionClass $aClass
- *
- * @return ReflectionClass
- */
- public function reload(ReflectionClass $aClass)
- {
- return $aClass;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Runner/TestSuiteLoader.php b/www/wiki/vendor/phpunit/phpunit/src/Runner/TestSuiteLoader.php
deleted file mode 100644
index 3eea6e09..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Runner/TestSuiteLoader.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * An interface to define how a test suite should be loaded.
- *
- * @since Interface available since Release 2.0.0
- */
-interface PHPUnit_Runner_TestSuiteLoader
-{
- /**
- * @param string $suiteClassName
- * @param string $suiteClassFile
- *
- * @return ReflectionClass
- */
- public function load($suiteClassName, $suiteClassFile = '');
-
- /**
- * @param ReflectionClass $aClass
- *
- * @return ReflectionClass
- */
- public function reload(ReflectionClass $aClass);
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Runner/Version.php b/www/wiki/vendor/phpunit/phpunit/src/Runner/Version.php
deleted file mode 100644
index 45a79fc8..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Runner/Version.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Version;
-
-/**
- * This class defines the current version of PHPUnit.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Runner_Version
-{
- private static $pharVersion;
- private static $version;
-
- /**
- * Returns the current version of PHPUnit.
- *
- * @return string
- */
- public static function id()
- {
- if (self::$pharVersion !== null) {
- return self::$pharVersion;
- }
-
- if (self::$version === null) {
- $version = new Version('4.8.36', dirname(dirname(__DIR__)));
- self::$version = $version->getVersion();
- }
-
- return self::$version;
- }
-
- /**
- * @return string
- *
- * @since Method available since Release 4.8.13
- */
- public static function series()
- {
- if (strpos(self::id(), '-')) {
- $tmp = explode('-', self::id());
- $version = $tmp[0];
- } else {
- $version = self::id();
- }
-
- return implode('.', array_slice(explode('.', $version), 0, 2));
- }
-
- /**
- * @return string
- */
- public static function getVersionString()
- {
- return 'PHPUnit ' . self::id() . ' by Sebastian Bergmann and contributors.';
- }
-
- /**
- * @return string
- *
- * @since Method available since Release 4.0.0
- */
- public static function getReleaseChannel()
- {
- if (strpos(self::$pharVersion, '-') !== false) {
- return '-nightly';
- }
-
- return '';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/TextUI/Command.php b/www/wiki/vendor/phpunit/phpunit/src/TextUI/Command.php
deleted file mode 100644
index d67d261f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/TextUI/Command.php
+++ /dev/null
@@ -1,1016 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A TestRunner for the Command Line Interface (CLI)
- * PHP SAPI Module.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_TextUI_Command
-{
- /**
- * @var array
- */
- protected $arguments = array(
- 'listGroups' => false,
- 'loader' => null,
- 'useDefaultConfiguration' => true
- );
-
- /**
- * @var array
- */
- protected $options = array();
-
- /**
- * @var array
- */
- protected $longOptions = array(
- 'colors==' => null,
- 'bootstrap=' => null,
- 'columns=' => null,
- 'configuration=' => null,
- 'coverage-clover=' => null,
- 'coverage-crap4j=' => null,
- 'coverage-html=' => null,
- 'coverage-php=' => null,
- 'coverage-text==' => null,
- 'coverage-xml=' => null,
- 'debug' => null,
- 'exclude-group=' => null,
- 'filter=' => null,
- 'testsuite=' => null,
- 'group=' => null,
- 'help' => null,
- 'include-path=' => null,
- 'list-groups' => null,
- 'loader=' => null,
- 'log-json=' => null,
- 'log-junit=' => null,
- 'log-tap=' => null,
- 'process-isolation' => null,
- 'repeat=' => null,
- 'stderr' => null,
- 'stop-on-error' => null,
- 'stop-on-failure' => null,
- 'stop-on-incomplete' => null,
- 'stop-on-risky' => null,
- 'stop-on-skipped' => null,
- 'report-useless-tests' => null,
- 'strict-coverage' => null,
- 'disallow-test-output' => null,
- 'enforce-time-limit' => null,
- 'disallow-todo-tests' => null,
- 'strict-global-state' => null,
- 'strict' => null,
- 'tap' => null,
- 'testdox' => null,
- 'testdox-html=' => null,
- 'testdox-text=' => null,
- 'test-suffix=' => null,
- 'no-configuration' => null,
- 'no-coverage' => null,
- 'no-globals-backup' => null,
- 'printer=' => null,
- 'static-backup' => null,
- 'verbose' => null,
- 'version' => null
- );
-
- /**
- * @var bool
- */
- private $versionStringPrinted = false;
-
- /**
- * @param bool $exit
- */
- public static function main($exit = true)
- {
- $command = new static;
-
- return $command->run($_SERVER['argv'], $exit);
- }
-
- /**
- * @param array $argv
- * @param bool $exit
- *
- * @return int
- */
- public function run(array $argv, $exit = true)
- {
- $this->handleArguments($argv);
-
- $runner = $this->createRunner();
-
- if (is_object($this->arguments['test']) &&
- $this->arguments['test'] instanceof PHPUnit_Framework_Test) {
- $suite = $this->arguments['test'];
- } else {
- $suite = $runner->getTest(
- $this->arguments['test'],
- $this->arguments['testFile'],
- $this->arguments['testSuffixes']
- );
- }
-
- if ($this->arguments['listGroups']) {
- $this->printVersionString();
-
- print "Available test group(s):\n";
-
- $groups = $suite->getGroups();
- sort($groups);
-
- foreach ($groups as $group) {
- print " - $group\n";
- }
-
- if ($exit) {
- exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT);
- } else {
- return PHPUnit_TextUI_TestRunner::SUCCESS_EXIT;
- }
- }
-
- unset($this->arguments['test']);
- unset($this->arguments['testFile']);
-
- try {
- $result = $runner->doRun($suite, $this->arguments);
- } catch (PHPUnit_Framework_Exception $e) {
- print $e->getMessage() . "\n";
- }
-
- $ret = PHPUnit_TextUI_TestRunner::FAILURE_EXIT;
-
- if (isset($result) && $result->wasSuccessful()) {
- $ret = PHPUnit_TextUI_TestRunner::SUCCESS_EXIT;
- } elseif (!isset($result) || $result->errorCount() > 0) {
- $ret = PHPUnit_TextUI_TestRunner::EXCEPTION_EXIT;
- }
-
- if ($exit) {
- exit($ret);
- } else {
- return $ret;
- }
- }
-
- /**
- * Create a TestRunner, override in subclasses.
- *
- * @return PHPUnit_TextUI_TestRunner
- *
- * @since Method available since Release 3.6.0
- */
- protected function createRunner()
- {
- return new PHPUnit_TextUI_TestRunner($this->arguments['loader']);
- }
-
- /**
- * Handles the command-line arguments.
- *
- * A child class of PHPUnit_TextUI_Command can hook into the argument
- * parsing by adding the switch(es) to the $longOptions array and point to a
- * callback method that handles the switch(es) in the child class like this
- *
- * <code>
- * <?php
- * class MyCommand extends PHPUnit_TextUI_Command
- * {
- * public function __construct()
- * {
- * // my-switch won't accept a value, it's an on/off
- * $this->longOptions['my-switch'] = 'myHandler';
- * // my-secondswitch will accept a value - note the equals sign
- * $this->longOptions['my-secondswitch='] = 'myOtherHandler';
- * }
- *
- * // --my-switch -> myHandler()
- * protected function myHandler()
- * {
- * }
- *
- * // --my-secondswitch foo -> myOtherHandler('foo')
- * protected function myOtherHandler ($value)
- * {
- * }
- *
- * // You will also need this - the static keyword in the
- * // PHPUnit_TextUI_Command will mean that it'll be
- * // PHPUnit_TextUI_Command that gets instantiated,
- * // not MyCommand
- * public static function main($exit = true)
- * {
- * $command = new static;
- *
- * return $command->run($_SERVER['argv'], $exit);
- * }
- *
- * }
- * </code>
- *
- * @param array $argv
- */
- protected function handleArguments(array $argv)
- {
- if (defined('__PHPUNIT_PHAR__')) {
- $this->longOptions['check-version'] = null;
- $this->longOptions['selfupdate'] = null;
- $this->longOptions['self-update'] = null;
- $this->longOptions['selfupgrade'] = null;
- $this->longOptions['self-upgrade'] = null;
- }
-
- try {
- $this->options = PHPUnit_Util_Getopt::getopt(
- $argv,
- 'd:c:hv',
- array_keys($this->longOptions)
- );
- } catch (PHPUnit_Framework_Exception $e) {
- $this->showError($e->getMessage());
- }
-
- foreach ($this->options[0] as $option) {
- switch ($option[0]) {
- case '--colors':
- $this->arguments['colors'] = $option[1] ?: PHPUnit_TextUI_ResultPrinter::COLOR_AUTO;
- break;
-
- case '--bootstrap':
- $this->arguments['bootstrap'] = $option[1];
- break;
-
- case '--columns':
- if (is_numeric($option[1])) {
- $this->arguments['columns'] = (int) $option[1];
- } elseif ($option[1] == 'max') {
- $this->arguments['columns'] = 'max';
- }
- break;
-
- case 'c':
- case '--configuration':
- $this->arguments['configuration'] = $option[1];
- break;
-
- case '--coverage-clover':
- $this->arguments['coverageClover'] = $option[1];
- break;
-
- case '--coverage-crap4j':
- $this->arguments['coverageCrap4J'] = $option[1];
- break;
-
- case '--coverage-html':
- $this->arguments['coverageHtml'] = $option[1];
- break;
-
- case '--coverage-php':
- $this->arguments['coveragePHP'] = $option[1];
- break;
-
- case '--coverage-text':
- if ($option[1] === null) {
- $option[1] = 'php://stdout';
- }
-
- $this->arguments['coverageText'] = $option[1];
- $this->arguments['coverageTextShowUncoveredFiles'] = false;
- $this->arguments['coverageTextShowOnlySummary'] = false;
- break;
-
- case '--coverage-xml':
- $this->arguments['coverageXml'] = $option[1];
- break;
-
- case 'd':
- $ini = explode('=', $option[1]);
-
- if (isset($ini[0])) {
- if (isset($ini[1])) {
- ini_set($ini[0], $ini[1]);
- } else {
- ini_set($ini[0], true);
- }
- }
- break;
-
- case '--debug':
- $this->arguments['debug'] = true;
- break;
-
- case 'h':
- case '--help':
- $this->showHelp();
- exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT);
- break;
-
- case '--filter':
- $this->arguments['filter'] = $option[1];
- break;
-
- case '--testsuite':
- $this->arguments['testsuite'] = $option[1];
- break;
-
- case '--group':
- $this->arguments['groups'] = explode(',', $option[1]);
- break;
-
- case '--exclude-group':
- $this->arguments['excludeGroups'] = explode(
- ',',
- $option[1]
- );
- break;
-
- case '--test-suffix':
- $this->arguments['testSuffixes'] = explode(
- ',',
- $option[1]
- );
- break;
-
- case '--include-path':
- $includePath = $option[1];
- break;
-
- case '--list-groups':
- $this->arguments['listGroups'] = true;
- break;
-
- case '--printer':
- $this->arguments['printer'] = $option[1];
- break;
-
- case '--loader':
- $this->arguments['loader'] = $option[1];
- break;
-
- case '--log-json':
- $this->arguments['jsonLogfile'] = $option[1];
- break;
-
- case '--log-junit':
- $this->arguments['junitLogfile'] = $option[1];
- break;
-
- case '--log-tap':
- $this->arguments['tapLogfile'] = $option[1];
- break;
-
- case '--process-isolation':
- $this->arguments['processIsolation'] = true;
- break;
-
- case '--repeat':
- $this->arguments['repeat'] = (int) $option[1];
- break;
-
- case '--stderr':
- $this->arguments['stderr'] = true;
- break;
-
- case '--stop-on-error':
- $this->arguments['stopOnError'] = true;
- break;
-
- case '--stop-on-failure':
- $this->arguments['stopOnFailure'] = true;
- break;
-
- case '--stop-on-incomplete':
- $this->arguments['stopOnIncomplete'] = true;
- break;
-
- case '--stop-on-risky':
- $this->arguments['stopOnRisky'] = true;
- break;
-
- case '--stop-on-skipped':
- $this->arguments['stopOnSkipped'] = true;
- break;
-
- case '--tap':
- $this->arguments['printer'] = 'PHPUnit_Util_Log_TAP';
- break;
-
- case '--testdox':
- $this->arguments['printer'] = 'PHPUnit_Util_TestDox_ResultPrinter_Text';
- break;
-
- case '--testdox-html':
- $this->arguments['testdoxHTMLFile'] = $option[1];
- break;
-
- case '--testdox-text':
- $this->arguments['testdoxTextFile'] = $option[1];
- break;
-
- case '--no-configuration':
- $this->arguments['useDefaultConfiguration'] = false;
- break;
-
- case '--no-coverage':
- $this->arguments['noCoverage'] = true;
- break;
-
- case '--no-globals-backup':
- $this->arguments['backupGlobals'] = false;
- break;
-
- case '--static-backup':
- $this->arguments['backupStaticAttributes'] = true;
- break;
-
- case 'v':
- case '--verbose':
- $this->arguments['verbose'] = true;
- break;
-
- case '--version':
- $this->printVersionString();
- exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT);
- break;
-
- case '--report-useless-tests':
- $this->arguments['reportUselessTests'] = true;
- break;
-
- case '--strict-coverage':
- $this->arguments['strictCoverage'] = true;
- break;
-
- case '--strict-global-state':
- $this->arguments['disallowChangesToGlobalState'] = true;
- break;
-
- case '--disallow-test-output':
- $this->arguments['disallowTestOutput'] = true;
- break;
-
- case '--enforce-time-limit':
- $this->arguments['enforceTimeLimit'] = true;
- break;
-
- case '--disallow-todo-tests':
- $this->arguments['disallowTodoAnnotatedTests'] = true;
- break;
-
- case '--strict':
- $this->arguments['reportUselessTests'] = true;
- $this->arguments['strictCoverage'] = true;
- $this->arguments['disallowTestOutput'] = true;
- $this->arguments['enforceTimeLimit'] = true;
- $this->arguments['disallowTodoAnnotatedTests'] = true;
- $this->arguments['deprecatedStrictModeOption'] = true;
- break;
-
- case '--check-version':
- $this->handleVersionCheck();
- break;
-
- case '--selfupdate':
- case '--self-update':
- $this->handleSelfUpdate();
- break;
-
- case '--selfupgrade':
- case '--self-upgrade':
- $this->handleSelfUpdate(true);
- break;
-
- case '--whitelist':
- $this->arguments['whitelist'] = $option[1];
- break;
-
- default:
- $optionName = str_replace('--', '', $option[0]);
-
- if (isset($this->longOptions[$optionName])) {
- $handler = $this->longOptions[$optionName];
- } elseif (isset($this->longOptions[$optionName . '='])) {
- $handler = $this->longOptions[$optionName . '='];
- }
-
- if (isset($handler) && is_callable(array($this, $handler))) {
- $this->$handler($option[1]);
- }
- }
- }
-
- $this->handleCustomTestSuite();
-
- if (!isset($this->arguments['test'])) {
- if (isset($this->options[1][0])) {
- $this->arguments['test'] = $this->options[1][0];
- }
-
- if (isset($this->options[1][1])) {
- $this->arguments['testFile'] = realpath($this->options[1][1]);
- } else {
- $this->arguments['testFile'] = '';
- }
-
- if (isset($this->arguments['test']) &&
- is_file($this->arguments['test']) &&
- substr($this->arguments['test'], -5, 5) != '.phpt') {
- $this->arguments['testFile'] = realpath($this->arguments['test']);
- $this->arguments['test'] = substr($this->arguments['test'], 0, strrpos($this->arguments['test'], '.'));
- }
- }
-
- if (!isset($this->arguments['testSuffixes'])) {
- $this->arguments['testSuffixes'] = array('Test.php', '.phpt');
- }
-
- if (isset($includePath)) {
- ini_set(
- 'include_path',
- $includePath . PATH_SEPARATOR . ini_get('include_path')
- );
- }
-
- if ($this->arguments['loader'] !== null) {
- $this->arguments['loader'] = $this->handleLoader($this->arguments['loader']);
- }
-
- if (isset($this->arguments['configuration']) &&
- is_dir($this->arguments['configuration'])) {
- $configurationFile = $this->arguments['configuration'] . '/phpunit.xml';
-
- if (file_exists($configurationFile)) {
- $this->arguments['configuration'] = realpath(
- $configurationFile
- );
- } elseif (file_exists($configurationFile . '.dist')) {
- $this->arguments['configuration'] = realpath(
- $configurationFile . '.dist'
- );
- }
- } elseif (!isset($this->arguments['configuration']) &&
- $this->arguments['useDefaultConfiguration']) {
- if (file_exists('phpunit.xml')) {
- $this->arguments['configuration'] = realpath('phpunit.xml');
- } elseif (file_exists('phpunit.xml.dist')) {
- $this->arguments['configuration'] = realpath(
- 'phpunit.xml.dist'
- );
- }
- }
-
- if (isset($this->arguments['configuration'])) {
- try {
- $configuration = PHPUnit_Util_Configuration::getInstance(
- $this->arguments['configuration']
- );
- } catch (Throwable $e) {
- print $e->getMessage() . "\n";
- exit(PHPUnit_TextUI_TestRunner::FAILURE_EXIT);
- } catch (Exception $e) {
- print $e->getMessage() . "\n";
- exit(PHPUnit_TextUI_TestRunner::FAILURE_EXIT);
- }
-
- $phpunit = $configuration->getPHPUnitConfiguration();
-
- $configuration->handlePHPConfiguration();
-
- /*
- * Issue #1216
- */
- if (isset($this->arguments['bootstrap'])) {
- $this->handleBootstrap($this->arguments['bootstrap']);
- } elseif (isset($phpunit['bootstrap'])) {
- $this->handleBootstrap($phpunit['bootstrap']);
- }
-
- /*
- * Issue #657
- */
- if (isset($phpunit['stderr']) && ! isset($this->arguments['stderr'])) {
- $this->arguments['stderr'] = $phpunit['stderr'];
- }
-
- if (isset($phpunit['columns']) && ! isset($this->arguments['columns'])) {
- $this->arguments['columns'] = $phpunit['columns'];
- }
-
- if (isset($phpunit['printerClass'])) {
- if (isset($phpunit['printerFile'])) {
- $file = $phpunit['printerFile'];
- } else {
- $file = '';
- }
-
- $this->arguments['printer'] = $this->handlePrinter(
- $phpunit['printerClass'],
- $file
- );
- }
-
- if (isset($phpunit['testSuiteLoaderClass'])) {
- if (isset($phpunit['testSuiteLoaderFile'])) {
- $file = $phpunit['testSuiteLoaderFile'];
- } else {
- $file = '';
- }
-
- $this->arguments['loader'] = $this->handleLoader(
- $phpunit['testSuiteLoaderClass'],
- $file
- );
- }
-
- $browsers = $configuration->getSeleniumBrowserConfiguration();
-
- if (!empty($browsers)) {
- $this->arguments['deprecatedSeleniumConfiguration'] = true;
-
- if (class_exists('PHPUnit_Extensions_SeleniumTestCase')) {
- PHPUnit_Extensions_SeleniumTestCase::$browsers = $browsers;
- }
- }
-
- if (!isset($this->arguments['test'])) {
- $testSuite = $configuration->getTestSuiteConfiguration(isset($this->arguments['testsuite']) ? $this->arguments['testsuite'] : null);
-
- if ($testSuite !== null) {
- $this->arguments['test'] = $testSuite;
- }
- }
- } elseif (isset($this->arguments['bootstrap'])) {
- $this->handleBootstrap($this->arguments['bootstrap']);
- }
-
- if (isset($this->arguments['printer']) &&
- is_string($this->arguments['printer'])) {
- $this->arguments['printer'] = $this->handlePrinter($this->arguments['printer']);
- }
-
- if (isset($this->arguments['test']) && is_string($this->arguments['test']) && substr($this->arguments['test'], -5, 5) == '.phpt') {
- $test = new PHPUnit_Extensions_PhptTestCase($this->arguments['test']);
-
- $this->arguments['test'] = new PHPUnit_Framework_TestSuite;
- $this->arguments['test']->addTest($test);
- }
-
- if (!isset($this->arguments['test']) ||
- (isset($this->arguments['testDatabaseLogRevision']) && !isset($this->arguments['testDatabaseDSN']))) {
- $this->showHelp();
- exit(PHPUnit_TextUI_TestRunner::EXCEPTION_EXIT);
- }
- }
-
- /**
- * Handles the loading of the PHPUnit_Runner_TestSuiteLoader implementation.
- *
- * @param string $loaderClass
- * @param string $loaderFile
- *
- * @return PHPUnit_Runner_TestSuiteLoader
- */
- protected function handleLoader($loaderClass, $loaderFile = '')
- {
- if (!class_exists($loaderClass, false)) {
- if ($loaderFile == '') {
- $loaderFile = PHPUnit_Util_Filesystem::classNameToFilename(
- $loaderClass
- );
- }
-
- $loaderFile = stream_resolve_include_path($loaderFile);
-
- if ($loaderFile) {
- require $loaderFile;
- }
- }
-
- if (class_exists($loaderClass, false)) {
- $class = new ReflectionClass($loaderClass);
-
- if ($class->implementsInterface('PHPUnit_Runner_TestSuiteLoader') &&
- $class->isInstantiable()) {
- return $class->newInstance();
- }
- }
-
- if ($loaderClass == 'PHPUnit_Runner_StandardTestSuiteLoader') {
- return;
- }
-
- $this->showError(
- sprintf(
- 'Could not use "%s" as loader.',
- $loaderClass
- )
- );
- }
-
- /**
- * Handles the loading of the PHPUnit_Util_Printer implementation.
- *
- * @param string $printerClass
- * @param string $printerFile
- *
- * @return PHPUnit_Util_Printer|string
- */
- protected function handlePrinter($printerClass, $printerFile = '')
- {
- if (!class_exists($printerClass, false)) {
- if ($printerFile == '') {
- $printerFile = PHPUnit_Util_Filesystem::classNameToFilename(
- $printerClass
- );
- }
-
- $printerFile = stream_resolve_include_path($printerFile);
-
- if ($printerFile) {
- require $printerFile;
- }
- }
-
- if (class_exists($printerClass)) {
- $class = new ReflectionClass($printerClass);
-
- if ($class->implementsInterface('PHPUnit_Framework_TestListener') &&
- $class->isSubclassOf('PHPUnit_Util_Printer') &&
- $class->isInstantiable()) {
- if ($class->isSubclassOf('PHPUnit_TextUI_ResultPrinter')) {
- return $printerClass;
- }
-
- $outputStream = isset($this->arguments['stderr']) ? 'php://stderr' : null;
-
- return $class->newInstance($outputStream);
- }
- }
-
- $this->showError(
- sprintf(
- 'Could not use "%s" as printer.',
- $printerClass
- )
- );
- }
-
- /**
- * Loads a bootstrap file.
- *
- * @param string $filename
- */
- protected function handleBootstrap($filename)
- {
- try {
- PHPUnit_Util_Fileloader::checkAndLoad($filename);
- } catch (PHPUnit_Framework_Exception $e) {
- $this->showError($e->getMessage());
- }
- }
-
- /**
- * @since Method available since Release 4.0.0
- */
- protected function handleSelfUpdate($upgrade = false)
- {
- $this->printVersionString();
-
- $localFilename = realpath($_SERVER['argv'][0]);
-
- if (!is_writable($localFilename)) {
- print 'No write permission to update ' . $localFilename . "\n";
- exit(PHPUnit_TextUI_TestRunner::EXCEPTION_EXIT);
- }
-
- if (!extension_loaded('openssl')) {
- print "The OpenSSL extension is not loaded.\n";
- exit(PHPUnit_TextUI_TestRunner::EXCEPTION_EXIT);
- }
-
- if (!$upgrade) {
- $remoteFilename = sprintf(
- 'https://phar.phpunit.de/phpunit-%s.phar',
- file_get_contents(
- sprintf(
- 'https://phar.phpunit.de/latest-version-of/phpunit-%s',
- PHPUnit_Runner_Version::series()
- )
- )
- );
- } else {
- $remoteFilename = sprintf(
- 'https://phar.phpunit.de/phpunit%s.phar',
- PHPUnit_Runner_Version::getReleaseChannel()
- );
- }
-
- $tempFilename = tempnam(sys_get_temp_dir(), 'phpunit') . '.phar';
-
- // Workaround for https://bugs.php.net/bug.php?id=65538
- $caFile = dirname($tempFilename) . '/ca.pem';
- copy(__PHPUNIT_PHAR_ROOT__ . '/ca.pem', $caFile);
-
- print 'Updating the PHPUnit PHAR ... ';
-
- $options = array(
- 'ssl' => array(
- 'allow_self_signed' => false,
- 'cafile' => $caFile,
- 'verify_peer' => true
- )
- );
-
- if (PHP_VERSION_ID < 50600) {
- $options['ssl']['CN_match'] = 'phar.phpunit.de';
- $options['ssl']['SNI_server_name'] = 'phar.phpunit.de';
- }
-
- file_put_contents(
- $tempFilename,
- file_get_contents(
- $remoteFilename,
- false,
- stream_context_create($options)
- )
- );
-
- chmod($tempFilename, 0777 & ~umask());
-
- try {
- $phar = new Phar($tempFilename);
- unset($phar);
- rename($tempFilename, $localFilename);
- unlink($caFile);
- } catch (Throwable $_e) {
- $e = $_e;
- } catch (Exception $_e) {
- $e = $_e;
- }
-
- if (isset($e)) {
- unlink($caFile);
- unlink($tempFilename);
- print " done\n\n" . $e->getMessage() . "\n";
- exit(2);
- }
-
- print " done\n";
- exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT);
- }
-
- /**
- * @since Method available since Release 4.8.0
- */
- protected function handleVersionCheck()
- {
- $this->printVersionString();
-
- $latestVersion = file_get_contents('https://phar.phpunit.de/latest-version-of/phpunit');
- $isOutdated = version_compare($latestVersion, PHPUnit_Runner_Version::id(), '>');
-
- if ($isOutdated) {
- print "You are not using the latest version of PHPUnit.\n";
- print 'Use "phpunit --self-upgrade" to install PHPUnit ' . $latestVersion . "\n";
- } else {
- print "You are using the latest version of PHPUnit.\n";
- }
-
- exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT);
- }
-
- /**
- * Show the help message.
- */
- protected function showHelp()
- {
- $this->printVersionString();
-
- print <<<EOT
-Usage: phpunit [options] UnitTest [UnitTest.php]
- phpunit [options] <directory>
-
-Code Coverage Options:
-
- --coverage-clover <file> Generate code coverage report in Clover XML format.
- --coverage-crap4j <file> Generate code coverage report in Crap4J XML format.
- --coverage-html <dir> Generate code coverage report in HTML format.
- --coverage-php <file> Export PHP_CodeCoverage object to file.
- --coverage-text=<file> Generate code coverage report in text format.
- Default: Standard output.
- --coverage-xml <dir> Generate code coverage report in PHPUnit XML format.
-
-Logging Options:
-
- --log-junit <file> Log test execution in JUnit XML format to file.
- --log-tap <file> Log test execution in TAP format to file.
- --log-json <file> Log test execution in JSON format.
- --testdox-html <file> Write agile documentation in HTML format to file.
- --testdox-text <file> Write agile documentation in Text format to file.
-
-Test Selection Options:
-
- --filter <pattern> Filter which tests to run.
- --testsuite <name> Filter which testsuite to run.
- --group ... Only runs tests from the specified group(s).
- --exclude-group ... Exclude tests from the specified group(s).
- --list-groups List available test groups.
- --test-suffix ... Only search for test in files with specified
- suffix(es). Default: Test.php,.phpt
-
-Test Execution Options:
-
- --report-useless-tests Be strict about tests that do not test anything.
- --strict-coverage Be strict about unintentionally covered code.
- --strict-global-state Be strict about changes to global state
- --disallow-test-output Be strict about output during tests.
- --enforce-time-limit Enforce time limit based on test size.
- --disallow-todo-tests Disallow @todo-annotated tests.
-
- --process-isolation Run each test in a separate PHP process.
- --no-globals-backup Do not backup and restore \$GLOBALS for each test.
- --static-backup Backup and restore static attributes for each test.
-
- --colors=<flag> Use colors in output ("never", "auto" or "always").
- --columns <n> Number of columns to use for progress output.
- --columns max Use maximum number of columns for progress output.
- --stderr Write to STDERR instead of STDOUT.
- --stop-on-error Stop execution upon first error.
- --stop-on-failure Stop execution upon first error or failure.
- --stop-on-risky Stop execution upon first risky test.
- --stop-on-skipped Stop execution upon first skipped test.
- --stop-on-incomplete Stop execution upon first incomplete test.
- -v|--verbose Output more verbose information.
- --debug Display debugging information during test execution.
-
- --loader <loader> TestSuiteLoader implementation to use.
- --repeat <times> Runs the test(s) repeatedly.
- --tap Report test execution progress in TAP format.
- --testdox Report test execution progress in TestDox format.
- --printer <printer> TestListener implementation to use.
-
-Configuration Options:
-
- --bootstrap <file> A "bootstrap" PHP file that is run before the tests.
- -c|--configuration <file> Read configuration from XML file.
- --no-configuration Ignore default configuration file (phpunit.xml).
- --no-coverage Ignore code coverage configuration.
- --include-path <path(s)> Prepend PHP's include_path with given path(s).
- -d key[=value] Sets a php.ini value.
-
-Miscellaneous Options:
-
- -h|--help Prints this usage information.
- --version Prints the version and exits.
-
-EOT;
-
- if (defined('__PHPUNIT_PHAR__')) {
- print "\n --check-version Check whether PHPUnit is the latest version.";
- print "\n --self-update Update PHPUnit to the latest version within the same\n release series.\n";
- print "\n --self-upgrade Upgrade PHPUnit to the latest version.\n";
- }
- }
-
- /**
- * Custom callback for test suite discovery.
- */
- protected function handleCustomTestSuite()
- {
- }
-
- private function printVersionString()
- {
- if ($this->versionStringPrinted) {
- return;
- }
-
- print PHPUnit_Runner_Version::getVersionString() . "\n\n";
-
- $this->versionStringPrinted = true;
- }
-
- /**
- */
- private function showError($message)
- {
- $this->printVersionString();
-
- print $message . "\n";
-
- exit(PHPUnit_TextUI_TestRunner::FAILURE_EXIT);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php b/www/wiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php
deleted file mode 100644
index e4f02cde..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php
+++ /dev/null
@@ -1,653 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Environment\Console;
-
-/**
- * Prints the result of a TextUI TestRunner run.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_TextUI_ResultPrinter extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
-{
- const EVENT_TEST_START = 0;
- const EVENT_TEST_END = 1;
- const EVENT_TESTSUITE_START = 2;
- const EVENT_TESTSUITE_END = 3;
-
- const COLOR_NEVER = 'never';
- const COLOR_AUTO = 'auto';
- const COLOR_ALWAYS = 'always';
- const COLOR_DEFAULT = self::COLOR_NEVER;
-
- /**
- * @var array
- */
- private static $ansiCodes = array(
- 'bold' => 1,
- 'fg-black' => 30,
- 'fg-red' => 31,
- 'fg-green' => 32,
- 'fg-yellow' => 33,
- 'fg-blue' => 34,
- 'fg-magenta' => 35,
- 'fg-cyan' => 36,
- 'fg-white' => 37,
- 'bg-black' => 40,
- 'bg-red' => 41,
- 'bg-green' => 42,
- 'bg-yellow' => 43,
- 'bg-blue' => 44,
- 'bg-magenta' => 45,
- 'bg-cyan' => 46,
- 'bg-white' => 47
- );
-
- /**
- * @var int
- */
- protected $column = 0;
-
- /**
- * @var int
- */
- protected $maxColumn;
-
- /**
- * @var bool
- */
- protected $lastTestFailed = false;
-
- /**
- * @var int
- */
- protected $numAssertions = 0;
-
- /**
- * @var int
- */
- protected $numTests = -1;
-
- /**
- * @var int
- */
- protected $numTestsRun = 0;
-
- /**
- * @var int
- */
- protected $numTestsWidth;
-
- /**
- * @var bool
- */
- protected $colors = false;
-
- /**
- * @var bool
- */
- protected $debug = false;
-
- /**
- * @var bool
- */
- protected $verbose = false;
-
- /**
- * @var int
- */
- private $numberOfColumns;
-
- /**
- * Constructor.
- *
- * @param mixed $out
- * @param bool $verbose
- * @param string $colors
- * @param bool $debug
- * @param int|string $numberOfColumns
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.0.0
- */
- public function __construct($out = null, $verbose = false, $colors = self::COLOR_DEFAULT, $debug = false, $numberOfColumns = 80)
- {
- parent::__construct($out);
-
- if (!is_bool($verbose)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'boolean');
- }
-
- $availableColors = array(self::COLOR_NEVER, self::COLOR_AUTO, self::COLOR_ALWAYS);
-
- if (!in_array($colors, $availableColors)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(
- 3,
- vsprintf('value from "%s", "%s" or "%s"', $availableColors)
- );
- }
-
- if (!is_bool($debug)) {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(4, 'boolean');
- }
-
- if (!is_int($numberOfColumns) && $numberOfColumns != 'max') {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(5, 'integer or "max"');
- }
-
- $console = new Console;
- $maxNumberOfColumns = $console->getNumberOfColumns();
-
- if ($numberOfColumns == 'max' || $numberOfColumns > $maxNumberOfColumns) {
- $numberOfColumns = $maxNumberOfColumns;
- }
-
- $this->numberOfColumns = $numberOfColumns;
- $this->verbose = $verbose;
- $this->debug = $debug;
-
- if ($colors === self::COLOR_AUTO && $console->hasColorSupport()) {
- $this->colors = true;
- } else {
- $this->colors = (self::COLOR_ALWAYS === $colors);
- }
- }
-
- /**
- * @param PHPUnit_Framework_TestResult $result
- */
- public function printResult(PHPUnit_Framework_TestResult $result)
- {
- $this->printHeader();
-
- $this->printErrors($result);
- $printSeparator = $result->errorCount() > 0;
-
- if ($printSeparator && $result->failureCount() > 0) {
- $this->write("\n--\n\n");
- }
-
- $printSeparator = $printSeparator || $result->failureCount() > 0;
- $this->printFailures($result);
-
- if ($this->verbose) {
- if ($printSeparator && $result->riskyCount() > 0) {
- $this->write("\n--\n\n");
- }
-
- $printSeparator = $printSeparator ||
- $result->riskyCount() > 0;
-
- $this->printRisky($result);
-
- if ($printSeparator && $result->notImplementedCount() > 0) {
- $this->write("\n--\n\n");
- }
-
- $printSeparator = $printSeparator ||
- $result->notImplementedCount() > 0;
-
- $this->printIncompletes($result);
-
- if ($printSeparator && $result->skippedCount() > 0) {
- $this->write("\n--\n\n");
- }
-
- $this->printSkipped($result);
- }
-
- $this->printFooter($result);
- }
-
- /**
- * @param array $defects
- * @param string $type
- */
- protected function printDefects(array $defects, $type)
- {
- $count = count($defects);
-
- if ($count == 0) {
- return;
- }
-
- $this->write(
- sprintf(
- "There %s %d %s%s:\n",
- ($count == 1) ? 'was' : 'were',
- $count,
- $type,
- ($count == 1) ? '' : 's'
- )
- );
-
- $i = 1;
-
- foreach ($defects as $defect) {
- $this->printDefect($defect, $i++);
- }
- }
-
- /**
- * @param PHPUnit_Framework_TestFailure $defect
- * @param int $count
- */
- protected function printDefect(PHPUnit_Framework_TestFailure $defect, $count)
- {
- $this->printDefectHeader($defect, $count);
- $this->printDefectTrace($defect);
- }
-
- /**
- * @param PHPUnit_Framework_TestFailure $defect
- * @param int $count
- */
- protected function printDefectHeader(PHPUnit_Framework_TestFailure $defect, $count)
- {
- $this->write(
- sprintf(
- "\n%d) %s\n",
- $count,
- $defect->getTestName()
- )
- );
- }
-
- /**
- * @param PHPUnit_Framework_TestFailure $defect
- */
- protected function printDefectTrace(PHPUnit_Framework_TestFailure $defect)
- {
- $e = $defect->thrownException();
- $this->write((string) $e);
-
- while ($e = $e->getPrevious()) {
- $this->write("\nCaused by\n" . $e);
- }
- }
-
- /**
- * @param PHPUnit_Framework_TestResult $result
- */
- protected function printErrors(PHPUnit_Framework_TestResult $result)
- {
- $this->printDefects($result->errors(), 'error');
- }
-
- /**
- * @param PHPUnit_Framework_TestResult $result
- */
- protected function printFailures(PHPUnit_Framework_TestResult $result)
- {
- $this->printDefects($result->failures(), 'failure');
- }
-
- /**
- * @param PHPUnit_Framework_TestResult $result
- */
- protected function printIncompletes(PHPUnit_Framework_TestResult $result)
- {
- $this->printDefects($result->notImplemented(), 'incomplete test');
- }
-
- /**
- * @param PHPUnit_Framework_TestResult $result
- *
- * @since Method available since Release 4.0.0
- */
- protected function printRisky(PHPUnit_Framework_TestResult $result)
- {
- $this->printDefects($result->risky(), 'risky test');
- }
-
- /**
- * @param PHPUnit_Framework_TestResult $result
- *
- * @since Method available since Release 3.0.0
- */
- protected function printSkipped(PHPUnit_Framework_TestResult $result)
- {
- $this->printDefects($result->skipped(), 'skipped test');
- }
-
- protected function printHeader()
- {
- $this->write("\n\n" . PHP_Timer::resourceUsage() . "\n\n");
- }
-
- /**
- * @param PHPUnit_Framework_TestResult $result
- */
- protected function printFooter(PHPUnit_Framework_TestResult $result)
- {
- if (count($result) === 0) {
- $this->writeWithColor(
- 'fg-black, bg-yellow',
- 'No tests executed!'
- );
- } elseif ($result->wasSuccessful() &&
- $result->allHarmless() &&
- $result->allCompletelyImplemented() &&
- $result->noneSkipped()) {
- $this->writeWithColor(
- 'fg-black, bg-green',
- sprintf(
- 'OK (%d test%s, %d assertion%s)',
- count($result),
- (count($result) == 1) ? '' : 's',
- $this->numAssertions,
- ($this->numAssertions == 1) ? '' : 's'
- )
- );
- } else {
- if ($result->wasSuccessful()) {
- $color = 'fg-black, bg-yellow';
-
- if ($this->verbose) {
- $this->write("\n");
- }
-
- $this->writeWithColor(
- $color,
- 'OK, but incomplete, skipped, or risky tests!'
- );
- } else {
- $color = 'fg-white, bg-red';
-
- $this->write("\n");
- $this->writeWithColor($color, 'FAILURES!');
- }
-
- $this->writeCountString(count($result), 'Tests', $color, true);
- $this->writeCountString($this->numAssertions, 'Assertions', $color, true);
- $this->writeCountString($result->errorCount(), 'Errors', $color);
- $this->writeCountString($result->failureCount(), 'Failures', $color);
- $this->writeCountString($result->skippedCount(), 'Skipped', $color);
- $this->writeCountString($result->notImplementedCount(), 'Incomplete', $color);
- $this->writeCountString($result->riskyCount(), 'Risky', $color);
- $this->writeWithColor($color, '.', true);
- }
- }
-
- /**
- */
- public function printWaitPrompt()
- {
- $this->write("\n<RETURN> to continue\n");
- }
-
- /**
- * An error occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->writeProgressWithColor('fg-red, bold', 'E');
- $this->lastTestFailed = true;
- }
-
- /**
- * A failure occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
- * @param float $time
- */
- public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
- {
- $this->writeProgressWithColor('bg-red, fg-white', 'F');
- $this->lastTestFailed = true;
- }
-
- /**
- * Incomplete test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->writeProgressWithColor('fg-yellow, bold', 'I');
- $this->lastTestFailed = true;
- }
-
- /**
- * Risky test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 4.0.0
- */
- public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->writeProgressWithColor('fg-yellow, bold', 'R');
- $this->lastTestFailed = true;
- }
-
- /**
- * Skipped test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 3.0.0
- */
- public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->writeProgressWithColor('fg-cyan, bold', 'S');
- $this->lastTestFailed = true;
- }
-
- /**
- * A testsuite started.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- if ($this->numTests == -1) {
- $this->numTests = count($suite);
- $this->numTestsWidth = strlen((string) $this->numTests);
- $this->maxColumn = $this->numberOfColumns - strlen(' / (XXX%)') - (2 * $this->numTestsWidth);
- }
- }
-
- /**
- * A testsuite ended.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- }
-
- /**
- * A test started.
- *
- * @param PHPUnit_Framework_Test $test
- */
- public function startTest(PHPUnit_Framework_Test $test)
- {
- if ($this->debug) {
- $this->write(
- sprintf(
- "\nStarting test '%s'.\n",
- PHPUnit_Util_Test::describe($test)
- )
- );
- }
- }
-
- /**
- * A test ended.
- *
- * @param PHPUnit_Framework_Test $test
- * @param float $time
- */
- public function endTest(PHPUnit_Framework_Test $test, $time)
- {
- if (!$this->lastTestFailed) {
- $this->writeProgress('.');
- }
-
- if ($test instanceof PHPUnit_Framework_TestCase) {
- $this->numAssertions += $test->getNumAssertions();
- } elseif ($test instanceof PHPUnit_Extensions_PhptTestCase) {
- $this->numAssertions++;
- }
-
- $this->lastTestFailed = false;
-
- if ($test instanceof PHPUnit_Framework_TestCase) {
- if (!$test->hasExpectationOnOutput()) {
- $this->write($test->getActualOutput());
- }
- }
- }
-
- /**
- * @param string $progress
- */
- protected function writeProgress($progress)
- {
- $this->write($progress);
- $this->column++;
- $this->numTestsRun++;
-
- if ($this->column == $this->maxColumn) {
- $this->write(
- sprintf(
- ' %' . $this->numTestsWidth . 'd / %' .
- $this->numTestsWidth . 'd (%3s%%)',
- $this->numTestsRun,
- $this->numTests,
- floor(($this->numTestsRun / $this->numTests) * 100)
- )
- );
-
- $this->writeNewLine();
- }
- }
-
- protected function writeNewLine()
- {
- $this->column = 0;
- $this->write("\n");
- }
-
- /**
- * Formats a buffer with a specified ANSI color sequence if colors are
- * enabled.
- *
- * @param string $color
- * @param string $buffer
- *
- * @return string
- *
- * @since Method available since Release 4.0.0
- */
- protected function formatWithColor($color, $buffer)
- {
- if (!$this->colors) {
- return $buffer;
- }
-
- $codes = array_map('trim', explode(',', $color));
- $lines = explode("\n", $buffer);
- $padding = max(array_map('strlen', $lines));
- $styles = array();
-
- foreach ($codes as $code) {
- $styles[] = self::$ansiCodes[$code];
- }
-
- $style = sprintf("\x1b[%sm", implode(';', $styles));
-
- $styledLines = array();
-
- foreach ($lines as $line) {
- $styledLines[] = $style . str_pad($line, $padding) . "\x1b[0m";
- }
-
- return implode("\n", $styledLines);
- }
-
- /**
- * Writes a buffer out with a color sequence if colors are enabled.
- *
- * @param string $color
- * @param string $buffer
- * @param bool $lf
- *
- * @since Method available since Release 4.0.0
- */
- protected function writeWithColor($color, $buffer, $lf = true)
- {
- $this->write($this->formatWithColor($color, $buffer));
-
- if ($lf) {
- $this->write("\n");
- }
- }
-
- /**
- * Writes progress with a color sequence if colors are enabled.
- *
- * @param string $color
- * @param string $buffer
- *
- * @since Method available since Release 4.0.0
- */
- protected function writeProgressWithColor($color, $buffer)
- {
- $buffer = $this->formatWithColor($color, $buffer);
- $this->writeProgress($buffer);
- }
-
- /**
- * @param int $count
- * @param string $name
- * @param string $color
- * @param bool $always
- *
- * @since Method available since Release 4.6.5
- */
- private function writeCountString($count, $name, $color, $always = false)
- {
- static $first = true;
-
- if ($always || $count > 0) {
- $this->writeWithColor(
- $color,
- sprintf(
- '%s%s: %d',
- !$first ? ', ' : '',
- $name,
- $count
- ),
- false
- );
-
- $first = false;
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php b/www/wiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php
deleted file mode 100644
index bb07ea7e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/TextUI/TestRunner.php
+++ /dev/null
@@ -1,1061 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Environment\Runtime;
-
-/**
- * A TestRunner for the Command Line Interface (CLI)
- * PHP SAPI Module.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_TextUI_TestRunner extends PHPUnit_Runner_BaseTestRunner
-{
- const SUCCESS_EXIT = 0;
- const FAILURE_EXIT = 1;
- const EXCEPTION_EXIT = 2;
-
- /**
- * @var PHP_CodeCoverage_Filter
- */
- protected $codeCoverageFilter;
-
- /**
- * @var PHPUnit_Runner_TestSuiteLoader
- */
- protected $loader = null;
-
- /**
- * @var PHPUnit_TextUI_ResultPrinter
- */
- protected $printer = null;
-
- /**
- * @var bool
- */
- protected static $versionStringPrinted = false;
-
- /**
- * @var array
- */
- private $missingExtensions = array();
-
- /**
- * @var Runtime
- */
- private $runtime;
-
- /**
- * @param PHPUnit_Runner_TestSuiteLoader $loader
- * @param PHP_CodeCoverage_Filter $filter
- *
- * @since Method available since Release 3.4.0
- */
- public function __construct(PHPUnit_Runner_TestSuiteLoader $loader = null, PHP_CodeCoverage_Filter $filter = null)
- {
- if ($filter === null) {
- $filter = $this->getCodeCoverageFilter();
- }
-
- $this->codeCoverageFilter = $filter;
- $this->loader = $loader;
- $this->runtime = new Runtime;
- }
-
- /**
- * @param PHPUnit_Framework_Test|ReflectionClass $test
- * @param array $arguments
- *
- * @return PHPUnit_Framework_TestResult
- *
- * @throws PHPUnit_Framework_Exception
- */
- public static function run($test, array $arguments = array())
- {
- if ($test instanceof ReflectionClass) {
- $test = new PHPUnit_Framework_TestSuite($test);
- }
-
- if ($test instanceof PHPUnit_Framework_Test) {
- $aTestRunner = new self;
-
- return $aTestRunner->doRun(
- $test,
- $arguments
- );
- } else {
- throw new PHPUnit_Framework_Exception(
- 'No test case or test suite found.'
- );
- }
- }
-
- /**
- * @return PHPUnit_Framework_TestResult
- */
- protected function createTestResult()
- {
- return new PHPUnit_Framework_TestResult;
- }
-
- private function processSuiteFilters(PHPUnit_Framework_TestSuite $suite, array $arguments)
- {
- if (!$arguments['filter'] &&
- empty($arguments['groups']) &&
- empty($arguments['excludeGroups'])) {
- return;
- }
-
- $filterFactory = new PHPUnit_Runner_Filter_Factory();
-
- if (!empty($arguments['excludeGroups'])) {
- $filterFactory->addFilter(
- new ReflectionClass('PHPUnit_Runner_Filter_Group_Exclude'),
- $arguments['excludeGroups']
- );
- }
-
- if (!empty($arguments['groups'])) {
- $filterFactory->addFilter(
- new ReflectionClass('PHPUnit_Runner_Filter_Group_Include'),
- $arguments['groups']
- );
- }
-
- if ($arguments['filter']) {
- $filterFactory->addFilter(
- new ReflectionClass('PHPUnit_Runner_Filter_Test'),
- $arguments['filter']
- );
- }
- $suite->injectFilter($filterFactory);
- }
-
- /**
- * @param PHPUnit_Framework_Test $suite
- * @param array $arguments
- *
- * @return PHPUnit_Framework_TestResult
- */
- public function doRun(PHPUnit_Framework_Test $suite, array $arguments = array())
- {
- if (isset($arguments['configuration'])) {
- $GLOBALS['__PHPUNIT_CONFIGURATION_FILE'] = $arguments['configuration'];
- }
-
- $this->handleConfiguration($arguments);
-
- $this->processSuiteFilters($suite, $arguments);
-
- if (isset($arguments['bootstrap'])) {
- $GLOBALS['__PHPUNIT_BOOTSTRAP'] = $arguments['bootstrap'];
- }
-
- if ($arguments['backupGlobals'] === false) {
- $suite->setBackupGlobals(false);
- }
-
- if ($arguments['backupStaticAttributes'] === true) {
- $suite->setBackupStaticAttributes(true);
- }
-
- if ($arguments['disallowChangesToGlobalState'] === true) {
- $suite->setDisallowChangesToGlobalState(true);
- }
-
- if (is_integer($arguments['repeat'])) {
- $test = new PHPUnit_Extensions_RepeatedTest(
- $suite,
- $arguments['repeat'],
- $arguments['processIsolation']
- );
-
- $suite = new PHPUnit_Framework_TestSuite();
- $suite->addTest($test);
- }
-
- $result = $this->createTestResult();
-
- if (!$arguments['convertErrorsToExceptions']) {
- $result->convertErrorsToExceptions(false);
- }
-
- if (!$arguments['convertNoticesToExceptions']) {
- PHPUnit_Framework_Error_Notice::$enabled = false;
- }
-
- if (!$arguments['convertWarningsToExceptions']) {
- PHPUnit_Framework_Error_Warning::$enabled = false;
- }
-
- if ($arguments['stopOnError']) {
- $result->stopOnError(true);
- }
-
- if ($arguments['stopOnFailure']) {
- $result->stopOnFailure(true);
- }
-
- if ($arguments['stopOnIncomplete']) {
- $result->stopOnIncomplete(true);
- }
-
- if ($arguments['stopOnRisky']) {
- $result->stopOnRisky(true);
- }
-
- if ($arguments['stopOnSkipped']) {
- $result->stopOnSkipped(true);
- }
-
- if ($this->printer === null) {
- if (isset($arguments['printer']) &&
- $arguments['printer'] instanceof PHPUnit_Util_Printer) {
- $this->printer = $arguments['printer'];
- } else {
- $printerClass = 'PHPUnit_TextUI_ResultPrinter';
-
- if (isset($arguments['printer']) &&
- is_string($arguments['printer']) &&
- class_exists($arguments['printer'], false)) {
- $class = new ReflectionClass($arguments['printer']);
-
- if ($class->isSubclassOf('PHPUnit_TextUI_ResultPrinter')) {
- $printerClass = $arguments['printer'];
- }
- }
-
- $this->printer = new $printerClass(
- isset($arguments['stderr']) ? 'php://stderr' : null,
- $arguments['verbose'],
- $arguments['colors'],
- $arguments['debug'],
- $arguments['columns']
- );
- }
- }
-
- if (!$this->printer instanceof PHPUnit_Util_Log_TAP) {
- $this->printer->write(
- PHPUnit_Runner_Version::getVersionString() . "\n"
- );
-
- self::$versionStringPrinted = true;
-
- if ($arguments['verbose']) {
- $this->printer->write(
- sprintf(
- "\nRuntime:\t%s",
- $this->runtime->getNameWithVersion()
- )
- );
-
- if ($this->runtime->hasXdebug()) {
- $this->printer->write(
- sprintf(
- ' with Xdebug %s',
- phpversion('xdebug')
- )
- );
- }
-
- if (isset($arguments['configuration'])) {
- $this->printer->write(
- sprintf(
- "\nConfiguration:\t%s",
- $arguments['configuration']->getFilename()
- )
- );
- }
-
- $this->printer->write("\n");
- }
-
- if (isset($arguments['deprecatedStrictModeOption'])) {
- print "Warning:\tDeprecated option \"--strict\" used\n";
- } elseif (isset($arguments['deprecatedStrictModeSetting'])) {
- print "Warning:\tDeprecated configuration setting \"strict\" used\n";
- }
-
- if (isset($arguments['deprecatedSeleniumConfiguration'])) {
- print "Warning:\tDeprecated configuration setting \"selenium\" used\n";
- }
- }
-
- foreach ($arguments['listeners'] as $listener) {
- $result->addListener($listener);
- }
-
- $result->addListener($this->printer);
-
- if (isset($arguments['testdoxHTMLFile'])) {
- $result->addListener(
- new PHPUnit_Util_TestDox_ResultPrinter_HTML(
- $arguments['testdoxHTMLFile']
- )
- );
- }
-
- if (isset($arguments['testdoxTextFile'])) {
- $result->addListener(
- new PHPUnit_Util_TestDox_ResultPrinter_Text(
- $arguments['testdoxTextFile']
- )
- );
- }
-
- $codeCoverageReports = 0;
-
- if (isset($arguments['coverageClover'])) {
- $codeCoverageReports++;
- }
-
- if (isset($arguments['coverageCrap4J'])) {
- $codeCoverageReports++;
- }
-
- if (isset($arguments['coverageHtml'])) {
- $codeCoverageReports++;
- }
-
- if (isset($arguments['coveragePHP'])) {
- $codeCoverageReports++;
- }
-
- if (isset($arguments['coverageText'])) {
- $codeCoverageReports++;
- }
-
- if (isset($arguments['coverageXml'])) {
- $codeCoverageReports++;
- }
-
- if (isset($arguments['noCoverage'])) {
- $codeCoverageReports = 0;
- }
-
- if ($codeCoverageReports > 0 && (!extension_loaded('tokenizer') || !$this->runtime->canCollectCodeCoverage())) {
- if (!extension_loaded('tokenizer')) {
- $this->showExtensionNotLoadedWarning(
- 'tokenizer',
- 'No code coverage will be generated.'
- );
- } elseif (!extension_loaded('Xdebug')) {
- $this->showExtensionNotLoadedWarning(
- 'Xdebug',
- 'No code coverage will be generated.'
- );
- }
-
- $codeCoverageReports = 0;
- }
-
- if (!$this->printer instanceof PHPUnit_Util_Log_TAP) {
- if ($codeCoverageReports > 0 && !$this->codeCoverageFilter->hasWhitelist()) {
- $this->printer->write("Warning:\tNo whitelist configured for code coverage\n");
- }
-
- $this->printer->write("\n");
- }
-
- if ($codeCoverageReports > 0) {
- $codeCoverage = new PHP_CodeCoverage(
- null,
- $this->codeCoverageFilter
- );
-
- $codeCoverage->setAddUncoveredFilesFromWhitelist(
- $arguments['addUncoveredFilesFromWhitelist']
- );
-
- $codeCoverage->setCheckForUnintentionallyCoveredCode(
- $arguments['strictCoverage']
- );
-
- $codeCoverage->setProcessUncoveredFilesFromWhitelist(
- $arguments['processUncoveredFilesFromWhitelist']
- );
-
- if (isset($arguments['forceCoversAnnotation'])) {
- $codeCoverage->setForceCoversAnnotation(
- $arguments['forceCoversAnnotation']
- );
- }
-
- if (isset($arguments['mapTestClassNameToCoveredClassName'])) {
- $codeCoverage->setMapTestClassNameToCoveredClassName(
- $arguments['mapTestClassNameToCoveredClassName']
- );
- }
-
- $result->setCodeCoverage($codeCoverage);
- }
-
- if ($codeCoverageReports > 1) {
- if (isset($arguments['cacheTokens'])) {
- $codeCoverage->setCacheTokens($arguments['cacheTokens']);
- }
- }
-
- if (isset($arguments['jsonLogfile'])) {
- $result->addListener(
- new PHPUnit_Util_Log_JSON($arguments['jsonLogfile'])
- );
- }
-
- if (isset($arguments['tapLogfile'])) {
- $result->addListener(
- new PHPUnit_Util_Log_TAP($arguments['tapLogfile'])
- );
- }
-
- if (isset($arguments['junitLogfile'])) {
- $result->addListener(
- new PHPUnit_Util_Log_JUnit(
- $arguments['junitLogfile'],
- $arguments['logIncompleteSkipped']
- )
- );
- }
-
- $result->beStrictAboutTestsThatDoNotTestAnything($arguments['reportUselessTests']);
- $result->beStrictAboutOutputDuringTests($arguments['disallowTestOutput']);
- $result->beStrictAboutTodoAnnotatedTests($arguments['disallowTodoAnnotatedTests']);
- $result->beStrictAboutTestSize($arguments['enforceTimeLimit']);
- $result->setTimeoutForSmallTests($arguments['timeoutForSmallTests']);
- $result->setTimeoutForMediumTests($arguments['timeoutForMediumTests']);
- $result->setTimeoutForLargeTests($arguments['timeoutForLargeTests']);
-
- if ($suite instanceof PHPUnit_Framework_TestSuite) {
- $suite->setRunTestInSeparateProcess($arguments['processIsolation']);
- }
-
- $suite->run($result);
-
- unset($suite);
- $result->flushListeners();
-
- if ($this->printer instanceof PHPUnit_TextUI_ResultPrinter) {
- $this->printer->printResult($result);
- }
-
- if (isset($codeCoverage)) {
- if (isset($arguments['coverageClover'])) {
- $this->printer->write(
- "\nGenerating code coverage report in Clover XML format ..."
- );
-
- try {
- $writer = new PHP_CodeCoverage_Report_Clover;
- $writer->process($codeCoverage, $arguments['coverageClover']);
-
- $this->printer->write(" done\n");
- unset($writer);
- } catch (PHP_CodeCoverage_Exception $e) {
- $this->printer->write(
- " failed\n" . $e->getMessage() . "\n"
- );
- }
- }
-
- if (isset($arguments['coverageCrap4J'])) {
- $this->printer->write(
- "\nGenerating Crap4J report XML file ..."
- );
-
- try {
- $writer = new PHP_CodeCoverage_Report_Crap4j($arguments['crap4jThreshold']);
- $writer->process($codeCoverage, $arguments['coverageCrap4J']);
-
- $this->printer->write(" done\n");
- unset($writer);
- } catch (PHP_CodeCoverage_Exception $e) {
- $this->printer->write(
- " failed\n" . $e->getMessage() . "\n"
- );
- }
- }
-
- if (isset($arguments['coverageHtml'])) {
- $this->printer->write(
- "\nGenerating code coverage report in HTML format ..."
- );
-
- try {
- $writer = new PHP_CodeCoverage_Report_HTML(
- $arguments['reportLowUpperBound'],
- $arguments['reportHighLowerBound'],
- sprintf(
- ' and <a href="https://phpunit.de/">PHPUnit %s</a>',
- PHPUnit_Runner_Version::id()
- )
- );
-
- $writer->process($codeCoverage, $arguments['coverageHtml']);
-
- $this->printer->write(" done\n");
- unset($writer);
- } catch (PHP_CodeCoverage_Exception $e) {
- $this->printer->write(
- " failed\n" . $e->getMessage() . "\n"
- );
- }
- }
-
- if (isset($arguments['coveragePHP'])) {
- $this->printer->write(
- "\nGenerating code coverage report in PHP format ..."
- );
-
- try {
- $writer = new PHP_CodeCoverage_Report_PHP;
- $writer->process($codeCoverage, $arguments['coveragePHP']);
-
- $this->printer->write(" done\n");
- unset($writer);
- } catch (PHP_CodeCoverage_Exception $e) {
- $this->printer->write(
- " failed\n" . $e->getMessage() . "\n"
- );
- }
- }
-
- if (isset($arguments['coverageText'])) {
- if ($arguments['coverageText'] == 'php://stdout') {
- $outputStream = $this->printer;
- $colors = $arguments['colors'] && $arguments['colors'] != PHPUnit_TextUI_ResultPrinter::COLOR_NEVER;
- } else {
- $outputStream = new PHPUnit_Util_Printer($arguments['coverageText']);
- $colors = false;
- }
-
- $processor = new PHP_CodeCoverage_Report_Text(
- $arguments['reportLowUpperBound'],
- $arguments['reportHighLowerBound'],
- $arguments['coverageTextShowUncoveredFiles'],
- $arguments['coverageTextShowOnlySummary']
- );
-
- $outputStream->write(
- $processor->process($codeCoverage, $colors)
- );
- }
-
- if (isset($arguments['coverageXml'])) {
- $this->printer->write(
- "\nGenerating code coverage report in PHPUnit XML format ..."
- );
-
- try {
- $writer = new PHP_CodeCoverage_Report_XML;
- $writer->process($codeCoverage, $arguments['coverageXml']);
-
- $this->printer->write(" done\n");
- unset($writer);
- } catch (PHP_CodeCoverage_Exception $e) {
- $this->printer->write(
- " failed\n" . $e->getMessage() . "\n"
- );
- }
- }
- }
-
- return $result;
- }
-
- /**
- * @param PHPUnit_TextUI_ResultPrinter $resultPrinter
- */
- public function setPrinter(PHPUnit_TextUI_ResultPrinter $resultPrinter)
- {
- $this->printer = $resultPrinter;
- }
-
- /**
- * Override to define how to handle a failed loading of
- * a test suite.
- *
- * @param string $message
- */
- protected function runFailed($message)
- {
- $this->write($message . PHP_EOL);
- exit(self::FAILURE_EXIT);
- }
-
- /**
- * @param string $buffer
- *
- * @since Method available since Release 3.1.0
- */
- protected function write($buffer)
- {
- if (PHP_SAPI != 'cli' && PHP_SAPI != 'phpdbg') {
- $buffer = htmlspecialchars($buffer);
- }
-
- if ($this->printer !== null) {
- $this->printer->write($buffer);
- } else {
- print $buffer;
- }
- }
-
- /**
- * Returns the loader to be used.
- *
- * @return PHPUnit_Runner_TestSuiteLoader
- *
- * @since Method available since Release 2.2.0
- */
- public function getLoader()
- {
- if ($this->loader === null) {
- $this->loader = new PHPUnit_Runner_StandardTestSuiteLoader;
- }
-
- return $this->loader;
- }
-
- /**
- * @param array $arguments
- *
- * @since Method available since Release 3.2.1
- */
- protected function handleConfiguration(array &$arguments)
- {
- if (isset($arguments['configuration']) &&
- !$arguments['configuration'] instanceof PHPUnit_Util_Configuration) {
- $arguments['configuration'] = PHPUnit_Util_Configuration::getInstance(
- $arguments['configuration']
- );
- }
-
- $arguments['debug'] = isset($arguments['debug']) ? $arguments['debug'] : false;
- $arguments['filter'] = isset($arguments['filter']) ? $arguments['filter'] : false;
- $arguments['listeners'] = isset($arguments['listeners']) ? $arguments['listeners'] : array();
-
- if (isset($arguments['configuration'])) {
- $arguments['configuration']->handlePHPConfiguration();
-
- $phpunitConfiguration = $arguments['configuration']->getPHPUnitConfiguration();
-
- if (isset($phpunitConfiguration['deprecatedStrictModeSetting'])) {
- $arguments['deprecatedStrictModeSetting'] = true;
- }
-
- if (isset($phpunitConfiguration['backupGlobals']) &&
- !isset($arguments['backupGlobals'])) {
- $arguments['backupGlobals'] = $phpunitConfiguration['backupGlobals'];
- }
-
- if (isset($phpunitConfiguration['backupStaticAttributes']) &&
- !isset($arguments['backupStaticAttributes'])) {
- $arguments['backupStaticAttributes'] = $phpunitConfiguration['backupStaticAttributes'];
- }
-
- if (isset($phpunitConfiguration['disallowChangesToGlobalState']) &&
- !isset($arguments['disallowChangesToGlobalState'])) {
- $arguments['disallowChangesToGlobalState'] = $phpunitConfiguration['disallowChangesToGlobalState'];
- }
-
- if (isset($phpunitConfiguration['bootstrap']) &&
- !isset($arguments['bootstrap'])) {
- $arguments['bootstrap'] = $phpunitConfiguration['bootstrap'];
- }
-
- if (isset($phpunitConfiguration['cacheTokens']) &&
- !isset($arguments['cacheTokens'])) {
- $arguments['cacheTokens'] = $phpunitConfiguration['cacheTokens'];
- }
-
- if (isset($phpunitConfiguration['colors']) &&
- !isset($arguments['colors'])) {
- $arguments['colors'] = $phpunitConfiguration['colors'];
- }
-
- if (isset($phpunitConfiguration['convertErrorsToExceptions']) &&
- !isset($arguments['convertErrorsToExceptions'])) {
- $arguments['convertErrorsToExceptions'] = $phpunitConfiguration['convertErrorsToExceptions'];
- }
-
- if (isset($phpunitConfiguration['convertNoticesToExceptions']) &&
- !isset($arguments['convertNoticesToExceptions'])) {
- $arguments['convertNoticesToExceptions'] = $phpunitConfiguration['convertNoticesToExceptions'];
- }
-
- if (isset($phpunitConfiguration['convertWarningsToExceptions']) &&
- !isset($arguments['convertWarningsToExceptions'])) {
- $arguments['convertWarningsToExceptions'] = $phpunitConfiguration['convertWarningsToExceptions'];
- }
-
- if (isset($phpunitConfiguration['processIsolation']) &&
- !isset($arguments['processIsolation'])) {
- $arguments['processIsolation'] = $phpunitConfiguration['processIsolation'];
- }
-
- if (isset($phpunitConfiguration['stopOnError']) &&
- !isset($arguments['stopOnError'])) {
- $arguments['stopOnError'] = $phpunitConfiguration['stopOnError'];
- }
-
- if (isset($phpunitConfiguration['stopOnFailure']) &&
- !isset($arguments['stopOnFailure'])) {
- $arguments['stopOnFailure'] = $phpunitConfiguration['stopOnFailure'];
- }
-
- if (isset($phpunitConfiguration['stopOnIncomplete']) &&
- !isset($arguments['stopOnIncomplete'])) {
- $arguments['stopOnIncomplete'] = $phpunitConfiguration['stopOnIncomplete'];
- }
-
- if (isset($phpunitConfiguration['stopOnRisky']) &&
- !isset($arguments['stopOnRisky'])) {
- $arguments['stopOnRisky'] = $phpunitConfiguration['stopOnRisky'];
- }
-
- if (isset($phpunitConfiguration['stopOnSkipped']) &&
- !isset($arguments['stopOnSkipped'])) {
- $arguments['stopOnSkipped'] = $phpunitConfiguration['stopOnSkipped'];
- }
-
- if (isset($phpunitConfiguration['timeoutForSmallTests']) &&
- !isset($arguments['timeoutForSmallTests'])) {
- $arguments['timeoutForSmallTests'] = $phpunitConfiguration['timeoutForSmallTests'];
- }
-
- if (isset($phpunitConfiguration['timeoutForMediumTests']) &&
- !isset($arguments['timeoutForMediumTests'])) {
- $arguments['timeoutForMediumTests'] = $phpunitConfiguration['timeoutForMediumTests'];
- }
-
- if (isset($phpunitConfiguration['timeoutForLargeTests']) &&
- !isset($arguments['timeoutForLargeTests'])) {
- $arguments['timeoutForLargeTests'] = $phpunitConfiguration['timeoutForLargeTests'];
- }
-
- if (isset($phpunitConfiguration['reportUselessTests']) &&
- !isset($arguments['reportUselessTests'])) {
- $arguments['reportUselessTests'] = $phpunitConfiguration['reportUselessTests'];
- }
-
- if (isset($phpunitConfiguration['strictCoverage']) &&
- !isset($arguments['strictCoverage'])) {
- $arguments['strictCoverage'] = $phpunitConfiguration['strictCoverage'];
- }
-
- if (isset($phpunitConfiguration['disallowTestOutput']) &&
- !isset($arguments['disallowTestOutput'])) {
- $arguments['disallowTestOutput'] = $phpunitConfiguration['disallowTestOutput'];
- }
-
- if (isset($phpunitConfiguration['enforceTimeLimit']) &&
- !isset($arguments['enforceTimeLimit'])) {
- $arguments['enforceTimeLimit'] = $phpunitConfiguration['enforceTimeLimit'];
- }
-
- if (isset($phpunitConfiguration['disallowTodoAnnotatedTests']) &&
- !isset($arguments['disallowTodoAnnotatedTests'])) {
- $arguments['disallowTodoAnnotatedTests'] = $phpunitConfiguration['disallowTodoAnnotatedTests'];
- }
-
- if (isset($phpunitConfiguration['verbose']) &&
- !isset($arguments['verbose'])) {
- $arguments['verbose'] = $phpunitConfiguration['verbose'];
- }
-
- if (isset($phpunitConfiguration['forceCoversAnnotation']) &&
- !isset($arguments['forceCoversAnnotation'])) {
- $arguments['forceCoversAnnotation'] = $phpunitConfiguration['forceCoversAnnotation'];
- }
-
- if (isset($phpunitConfiguration['mapTestClassNameToCoveredClassName']) &&
- !isset($arguments['mapTestClassNameToCoveredClassName'])) {
- $arguments['mapTestClassNameToCoveredClassName'] = $phpunitConfiguration['mapTestClassNameToCoveredClassName'];
- }
-
- $groupCliArgs = array();
-
- if (!empty($arguments['groups'])) {
- $groupCliArgs = $arguments['groups'];
- }
-
- $groupConfiguration = $arguments['configuration']->getGroupConfiguration();
-
- if (!empty($groupConfiguration['include']) &&
- !isset($arguments['groups'])) {
- $arguments['groups'] = $groupConfiguration['include'];
- }
-
- if (!empty($groupConfiguration['exclude']) &&
- !isset($arguments['excludeGroups'])) {
- $arguments['excludeGroups'] = array_diff($groupConfiguration['exclude'], $groupCliArgs);
- }
-
- foreach ($arguments['configuration']->getListenerConfiguration() as $listener) {
- if (!class_exists($listener['class'], false) &&
- $listener['file'] !== '') {
- require_once $listener['file'];
- }
-
- if (class_exists($listener['class'])) {
- if (count($listener['arguments']) == 0) {
- $listener = new $listener['class'];
- } else {
- $listenerClass = new ReflectionClass(
- $listener['class']
- );
- $listener = $listenerClass->newInstanceArgs(
- $listener['arguments']
- );
- }
-
- if ($listener instanceof PHPUnit_Framework_TestListener) {
- $arguments['listeners'][] = $listener;
- }
- }
- }
-
- $loggingConfiguration = $arguments['configuration']->getLoggingConfiguration();
-
- if (isset($loggingConfiguration['coverage-clover']) &&
- !isset($arguments['coverageClover'])) {
- $arguments['coverageClover'] = $loggingConfiguration['coverage-clover'];
- }
-
- if (isset($loggingConfiguration['coverage-crap4j']) &&
- !isset($arguments['coverageCrap4J'])) {
- $arguments['coverageCrap4J'] = $loggingConfiguration['coverage-crap4j'];
-
- if (isset($loggingConfiguration['crap4jThreshold']) &&
- !isset($arguments['crap4jThreshold'])) {
- $arguments['crap4jThreshold'] = $loggingConfiguration['crap4jThreshold'];
- }
- }
-
- if (isset($loggingConfiguration['coverage-html']) &&
- !isset($arguments['coverageHtml'])) {
- if (isset($loggingConfiguration['lowUpperBound']) &&
- !isset($arguments['reportLowUpperBound'])) {
- $arguments['reportLowUpperBound'] = $loggingConfiguration['lowUpperBound'];
- }
-
- if (isset($loggingConfiguration['highLowerBound']) &&
- !isset($arguments['reportHighLowerBound'])) {
- $arguments['reportHighLowerBound'] = $loggingConfiguration['highLowerBound'];
- }
-
- $arguments['coverageHtml'] = $loggingConfiguration['coverage-html'];
- }
-
- if (isset($loggingConfiguration['coverage-php']) &&
- !isset($arguments['coveragePHP'])) {
- $arguments['coveragePHP'] = $loggingConfiguration['coverage-php'];
- }
-
- if (isset($loggingConfiguration['coverage-text']) &&
- !isset($arguments['coverageText'])) {
- $arguments['coverageText'] = $loggingConfiguration['coverage-text'];
- if (isset($loggingConfiguration['coverageTextShowUncoveredFiles'])) {
- $arguments['coverageTextShowUncoveredFiles'] = $loggingConfiguration['coverageTextShowUncoveredFiles'];
- } else {
- $arguments['coverageTextShowUncoveredFiles'] = false;
- }
- if (isset($loggingConfiguration['coverageTextShowOnlySummary'])) {
- $arguments['coverageTextShowOnlySummary'] = $loggingConfiguration['coverageTextShowOnlySummary'];
- } else {
- $arguments['coverageTextShowOnlySummary'] = false;
- }
- }
-
- if (isset($loggingConfiguration['coverage-xml']) &&
- !isset($arguments['coverageXml'])) {
- $arguments['coverageXml'] = $loggingConfiguration['coverage-xml'];
- }
-
- if (isset($loggingConfiguration['json']) &&
- !isset($arguments['jsonLogfile'])) {
- $arguments['jsonLogfile'] = $loggingConfiguration['json'];
- }
-
- if (isset($loggingConfiguration['plain'])) {
- $arguments['listeners'][] = new PHPUnit_TextUI_ResultPrinter(
- $loggingConfiguration['plain'],
- true
- );
- }
-
- if (isset($loggingConfiguration['tap']) &&
- !isset($arguments['tapLogfile'])) {
- $arguments['tapLogfile'] = $loggingConfiguration['tap'];
- }
-
- if (isset($loggingConfiguration['junit']) &&
- !isset($arguments['junitLogfile'])) {
- $arguments['junitLogfile'] = $loggingConfiguration['junit'];
-
- if (isset($loggingConfiguration['logIncompleteSkipped']) &&
- !isset($arguments['logIncompleteSkipped'])) {
- $arguments['logIncompleteSkipped'] = $loggingConfiguration['logIncompleteSkipped'];
- }
- }
-
- if (isset($loggingConfiguration['testdox-html']) &&
- !isset($arguments['testdoxHTMLFile'])) {
- $arguments['testdoxHTMLFile'] = $loggingConfiguration['testdox-html'];
- }
-
- if (isset($loggingConfiguration['testdox-text']) &&
- !isset($arguments['testdoxTextFile'])) {
- $arguments['testdoxTextFile'] = $loggingConfiguration['testdox-text'];
- }
-
- if ((isset($arguments['coverageClover']) ||
- isset($arguments['coverageCrap4J']) ||
- isset($arguments['coverageHtml']) ||
- isset($arguments['coveragePHP']) ||
- isset($arguments['coverageText']) ||
- isset($arguments['coverageXml'])) &&
- $this->runtime->canCollectCodeCoverage()) {
- $filterConfiguration = $arguments['configuration']->getFilterConfiguration();
- $arguments['addUncoveredFilesFromWhitelist'] = $filterConfiguration['whitelist']['addUncoveredFilesFromWhitelist'];
- $arguments['processUncoveredFilesFromWhitelist'] = $filterConfiguration['whitelist']['processUncoveredFilesFromWhitelist'];
-
- if (empty($filterConfiguration['whitelist']['include']['directory']) &&
- empty($filterConfiguration['whitelist']['include']['file'])) {
- foreach ($filterConfiguration['blacklist']['include']['directory'] as $dir) {
- $this->codeCoverageFilter->addDirectoryToBlacklist(
- $dir['path'],
- $dir['suffix'],
- $dir['prefix'],
- $dir['group']
- );
- }
-
- foreach ($filterConfiguration['blacklist']['include']['file'] as $file) {
- $this->codeCoverageFilter->addFileToBlacklist($file);
- }
-
- foreach ($filterConfiguration['blacklist']['exclude']['directory'] as $dir) {
- $this->codeCoverageFilter->removeDirectoryFromBlacklist(
- $dir['path'],
- $dir['suffix'],
- $dir['prefix'],
- $dir['group']
- );
- }
-
- foreach ($filterConfiguration['blacklist']['exclude']['file'] as $file) {
- $this->codeCoverageFilter->removeFileFromBlacklist($file);
- }
- }
-
- foreach ($filterConfiguration['whitelist']['include']['directory'] as $dir) {
- $this->codeCoverageFilter->addDirectoryToWhitelist(
- $dir['path'],
- $dir['suffix'],
- $dir['prefix']
- );
- }
-
- foreach ($filterConfiguration['whitelist']['include']['file'] as $file) {
- $this->codeCoverageFilter->addFileToWhitelist($file);
- }
-
- foreach ($filterConfiguration['whitelist']['exclude']['directory'] as $dir) {
- $this->codeCoverageFilter->removeDirectoryFromWhitelist(
- $dir['path'],
- $dir['suffix'],
- $dir['prefix']
- );
- }
-
- foreach ($filterConfiguration['whitelist']['exclude']['file'] as $file) {
- $this->codeCoverageFilter->removeFileFromWhitelist($file);
- }
- }
- }
-
- $arguments['addUncoveredFilesFromWhitelist'] = isset($arguments['addUncoveredFilesFromWhitelist']) ? $arguments['addUncoveredFilesFromWhitelist'] : true;
- $arguments['processUncoveredFilesFromWhitelist'] = isset($arguments['processUncoveredFilesFromWhitelist']) ? $arguments['processUncoveredFilesFromWhitelist'] : false;
- $arguments['backupGlobals'] = isset($arguments['backupGlobals']) ? $arguments['backupGlobals'] : null;
- $arguments['backupStaticAttributes'] = isset($arguments['backupStaticAttributes']) ? $arguments['backupStaticAttributes'] : null;
- $arguments['disallowChangesToGlobalState'] = isset($arguments['disallowChangesToGlobalState']) ? $arguments['disallowChangesToGlobalState'] : null;
- $arguments['cacheTokens'] = isset($arguments['cacheTokens']) ? $arguments['cacheTokens'] : false;
- $arguments['columns'] = isset($arguments['columns']) ? $arguments['columns'] : 80;
- $arguments['colors'] = isset($arguments['colors']) ? $arguments['colors'] : PHPUnit_TextUI_ResultPrinter::COLOR_DEFAULT;
- $arguments['convertErrorsToExceptions'] = isset($arguments['convertErrorsToExceptions']) ? $arguments['convertErrorsToExceptions'] : true;
- $arguments['convertNoticesToExceptions'] = isset($arguments['convertNoticesToExceptions']) ? $arguments['convertNoticesToExceptions'] : true;
- $arguments['convertWarningsToExceptions'] = isset($arguments['convertWarningsToExceptions']) ? $arguments['convertWarningsToExceptions'] : true;
- $arguments['excludeGroups'] = isset($arguments['excludeGroups']) ? $arguments['excludeGroups'] : array();
- $arguments['groups'] = isset($arguments['groups']) ? $arguments['groups'] : array();
- $arguments['logIncompleteSkipped'] = isset($arguments['logIncompleteSkipped']) ? $arguments['logIncompleteSkipped'] : false;
- $arguments['processIsolation'] = isset($arguments['processIsolation']) ? $arguments['processIsolation'] : false;
- $arguments['repeat'] = isset($arguments['repeat']) ? $arguments['repeat'] : false;
- $arguments['reportHighLowerBound'] = isset($arguments['reportHighLowerBound']) ? $arguments['reportHighLowerBound'] : 90;
- $arguments['reportLowUpperBound'] = isset($arguments['reportLowUpperBound']) ? $arguments['reportLowUpperBound'] : 50;
- $arguments['crap4jThreshold'] = isset($arguments['crap4jThreshold']) ? $arguments['crap4jThreshold'] : 30;
- $arguments['stopOnError'] = isset($arguments['stopOnError']) ? $arguments['stopOnError'] : false;
- $arguments['stopOnFailure'] = isset($arguments['stopOnFailure']) ? $arguments['stopOnFailure'] : false;
- $arguments['stopOnIncomplete'] = isset($arguments['stopOnIncomplete']) ? $arguments['stopOnIncomplete'] : false;
- $arguments['stopOnRisky'] = isset($arguments['stopOnRisky']) ? $arguments['stopOnRisky'] : false;
- $arguments['stopOnSkipped'] = isset($arguments['stopOnSkipped']) ? $arguments['stopOnSkipped'] : false;
- $arguments['timeoutForSmallTests'] = isset($arguments['timeoutForSmallTests']) ? $arguments['timeoutForSmallTests'] : 1;
- $arguments['timeoutForMediumTests'] = isset($arguments['timeoutForMediumTests']) ? $arguments['timeoutForMediumTests'] : 10;
- $arguments['timeoutForLargeTests'] = isset($arguments['timeoutForLargeTests']) ? $arguments['timeoutForLargeTests'] : 60;
- $arguments['reportUselessTests'] = isset($arguments['reportUselessTests']) ? $arguments['reportUselessTests'] : false;
- $arguments['strictCoverage'] = isset($arguments['strictCoverage']) ? $arguments['strictCoverage'] : false;
- $arguments['disallowTestOutput'] = isset($arguments['disallowTestOutput']) ? $arguments['disallowTestOutput'] : false;
- $arguments['enforceTimeLimit'] = isset($arguments['enforceTimeLimit']) ? $arguments['enforceTimeLimit'] : false;
- $arguments['disallowTodoAnnotatedTests'] = isset($arguments['disallowTodoAnnotatedTests']) ? $arguments['disallowTodoAnnotatedTests'] : false;
- $arguments['verbose'] = isset($arguments['verbose']) ? $arguments['verbose'] : false;
- }
-
- /**
- * @param $extension
- * @param string $message
- *
- * @since Method available since Release 4.7.3
- */
- private function showExtensionNotLoadedWarning($extension, $message = '')
- {
- if (isset($this->missingExtensions[$extension])) {
- return;
- }
-
- $this->write("Warning:\t" . 'The ' . $extension . ' extension is not loaded' . "\n");
-
- if (!empty($message)) {
- $this->write("\t\t" . $message . "\n");
- }
-
- $this->missingExtensions[$extension] = true;
- }
-
- /**
- * @return PHP_CodeCoverage_Filter
- */
- private function getCodeCoverageFilter()
- {
- $filter = new PHP_CodeCoverage_Filter;
-
- if (defined('__PHPUNIT_PHAR__')) {
- $filter->addFileToBlacklist(__PHPUNIT_PHAR__);
- }
-
- $blacklist = new PHPUnit_Util_Blacklist;
-
- foreach ($blacklist->getBlacklistedDirectories() as $directory) {
- $filter->addDirectoryToBlacklist($directory);
- }
-
- return $filter;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Blacklist.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Blacklist.php
deleted file mode 100644
index a4839ee5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Blacklist.php
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Utility class for blacklisting PHPUnit's own source code files.
- *
- * @since Class available since Release 4.0.0
- */
-class PHPUnit_Util_Blacklist
-{
- /**
- * @var array
- */
- public static $blacklistedClassNames = array(
- 'File_Iterator' => 1,
- 'PHP_CodeCoverage' => 1,
- 'PHP_Invoker' => 1,
- 'PHP_Timer' => 1,
- 'PHP_Token' => 1,
- 'PHPUnit_Framework_TestCase' => 2,
- 'PHPUnit_Extensions_Database_TestCase' => 2,
- 'PHPUnit_Framework_MockObject_Generator' => 2,
- 'PHPUnit_Extensions_SeleniumTestCase' => 2,
- 'Text_Template' => 1,
- 'Symfony\Component\Yaml\Yaml' => 1,
- 'SebastianBergmann\Diff\Diff' => 1,
- 'SebastianBergmann\Environment\Runtime' => 1,
- 'SebastianBergmann\Comparator\Comparator' => 1,
- 'SebastianBergmann\Exporter\Exporter' => 1,
- 'SebastianBergmann\GlobalState\Snapshot' => 1,
- 'SebastianBergmann\RecursionContext\Context' => 1,
- 'SebastianBergmann\Version' => 1,
- 'Composer\Autoload\ClassLoader' => 1,
- 'Doctrine\Instantiator\Instantiator' => 1,
- 'phpDocumentor\Reflection\DocBlock' => 1,
- 'Prophecy\Prophet' => 1
- );
-
- /**
- * @var array
- */
- private static $directories;
-
- /**
- * @return array
- *
- * @since Method available since Release 4.1.0
- */
- public function getBlacklistedDirectories()
- {
- $this->initialize();
-
- return self::$directories;
- }
-
- /**
- * @param string $file
- *
- * @return bool
- */
- public function isBlacklisted($file)
- {
- if (defined('PHPUNIT_TESTSUITE')) {
- return false;
- }
-
- $this->initialize();
-
- foreach (self::$directories as $directory) {
- if (strpos($file, $directory) === 0) {
- return true;
- }
- }
-
- return false;
- }
-
- private function initialize()
- {
- if (self::$directories === null) {
- self::$directories = array();
-
- foreach (self::$blacklistedClassNames as $className => $parent) {
- if (!class_exists($className)) {
- continue;
- }
-
- $reflector = new ReflectionClass($className);
- $directory = $reflector->getFileName();
-
- for ($i = 0; $i < $parent; $i++) {
- $directory = dirname($directory);
- }
-
- self::$directories[] = $directory;
- }
-
- // Hide process isolation workaround on Windows.
- // @see PHPUnit_Util_PHP::factory()
- // @see PHPUnit_Util_PHP_Windows::process()
- if (DIRECTORY_SEPARATOR === '\\') {
- // tempnam() prefix is limited to first 3 chars.
- // @see http://php.net/manual/en/function.tempnam.php
- self::$directories[] = sys_get_temp_dir() . '\\PHP';
- }
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Configuration.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Configuration.php
deleted file mode 100644
index 5c104160..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Configuration.php
+++ /dev/null
@@ -1,1158 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Wrapper for the PHPUnit XML configuration file.
- *
- * Example XML configuration file:
- * <code>
- * <?xml version="1.0" encoding="utf-8" ?>
- *
- * <phpunit backupGlobals="true"
- * backupStaticAttributes="false"
- * bootstrap="/path/to/bootstrap.php"
- * cacheTokens="false"
- * columns="80"
- * colors="false"
- * stderr="false"
- * convertErrorsToExceptions="true"
- * convertNoticesToExceptions="true"
- * convertWarningsToExceptions="true"
- * forceCoversAnnotation="false"
- * mapTestClassNameToCoveredClassName="false"
- * printerClass="PHPUnit_TextUI_ResultPrinter"
- * processIsolation="false"
- * stopOnError="false"
- * stopOnFailure="false"
- * stopOnIncomplete="false"
- * stopOnRisky="false"
- * stopOnSkipped="false"
- * testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
- * timeoutForSmallTests="1"
- * timeoutForMediumTests="10"
- * timeoutForLargeTests="60"
- * beStrictAboutTestsThatDoNotTestAnything="false"
- * beStrictAboutOutputDuringTests="false"
- * beStrictAboutTestSize="false"
- * beStrictAboutTodoAnnotatedTests="false"
- * checkForUnintentionallyCoveredCode="false"
- * disallowChangesToGlobalState="false"
- * verbose="false">
- * <testsuites>
- * <testsuite name="My Test Suite">
- * <directory suffix="Test.php" phpVersion="5.3.0" phpVersionOperator=">=">/path/to/files</directory>
- * <file phpVersion="5.3.0" phpVersionOperator=">=">/path/to/MyTest.php</file>
- * <exclude>/path/to/files/exclude</exclude>
- * </testsuite>
- * </testsuites>
- *
- * <groups>
- * <include>
- * <group>name</group>
- * </include>
- * <exclude>
- * <group>name</group>
- * </exclude>
- * </groups>
- *
- * <filter>
- * <blacklist>
- * <directory suffix=".php">/path/to/files</directory>
- * <file>/path/to/file</file>
- * <exclude>
- * <directory suffix=".php">/path/to/files</directory>
- * <file>/path/to/file</file>
- * </exclude>
- * </blacklist>
- * <whitelist addUncoveredFilesFromWhitelist="true"
- * processUncoveredFilesFromWhitelist="false">
- * <directory suffix=".php">/path/to/files</directory>
- * <file>/path/to/file</file>
- * <exclude>
- * <directory suffix=".php">/path/to/files</directory>
- * <file>/path/to/file</file>
- * </exclude>
- * </whitelist>
- * </filter>
- *
- * <listeners>
- * <listener class="MyListener" file="/optional/path/to/MyListener.php">
- * <arguments>
- * <array>
- * <element key="0">
- * <string>Sebastian</string>
- * </element>
- * </array>
- * <integer>22</integer>
- * <string>April</string>
- * <double>19.78</double>
- * <null/>
- * <object class="stdClass"/>
- * <file>MyRelativeFile.php</file>
- * <directory>MyRelativeDir</directory>
- * </arguments>
- * </listener>
- * </listeners>
- *
- * <logging>
- * <log type="coverage-html" target="/tmp/report" lowUpperBound="50" highLowerBound="90"/>
- * <log type="coverage-clover" target="/tmp/clover.xml"/>
- * <log type="coverage-crap4j" target="/tmp/crap.xml" threshold="30"/>
- * <log type="json" target="/tmp/logfile.json"/>
- * <log type="plain" target="/tmp/logfile.txt"/>
- * <log type="tap" target="/tmp/logfile.tap"/>
- * <log type="junit" target="/tmp/logfile.xml" logIncompleteSkipped="false"/>
- * <log type="testdox-html" target="/tmp/testdox.html"/>
- * <log type="testdox-text" target="/tmp/testdox.txt"/>
- * </logging>
- *
- * <php>
- * <includePath>.</includePath>
- * <ini name="foo" value="bar"/>
- * <const name="foo" value="bar"/>
- * <var name="foo" value="bar"/>
- * <env name="foo" value="bar"/>
- * <post name="foo" value="bar"/>
- * <get name="foo" value="bar"/>
- * <cookie name="foo" value="bar"/>
- * <server name="foo" value="bar"/>
- * <files name="foo" value="bar"/>
- * <request name="foo" value="bar"/>
- * </php>
- *
- * <selenium>
- * <browser name="Firefox on Linux"
- * browser="*firefox /usr/lib/firefox/firefox-bin"
- * host="my.linux.box"
- * port="4444"
- * timeout="30000"/>
- * </selenium>
- * </phpunit>
- * </code>
- *
- * @since Class available since Release 3.2.0
- */
-class PHPUnit_Util_Configuration
-{
- private static $instances = array();
-
- protected $document;
- protected $xpath;
- protected $filename;
-
- /**
- * Loads a PHPUnit configuration file.
- *
- * @param string $filename
- */
- protected function __construct($filename)
- {
- $this->filename = $filename;
- $this->document = PHPUnit_Util_XML::loadFile($filename, false, true, true);
- $this->xpath = new DOMXPath($this->document);
- }
-
- /**
- * @since Method available since Release 3.4.0
- */
- final private function __clone()
- {
- }
-
- /**
- * Returns a PHPUnit configuration object.
- *
- * @param string $filename
- *
- * @return PHPUnit_Util_Configuration
- *
- * @since Method available since Release 3.4.0
- */
- public static function getInstance($filename)
- {
- $realpath = realpath($filename);
-
- if ($realpath === false) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Could not read "%s".',
- $filename
- )
- );
- }
-
- if (!isset(self::$instances[$realpath])) {
- self::$instances[$realpath] = new self($realpath);
- }
-
- return self::$instances[$realpath];
- }
-
- /**
- * Returns the realpath to the configuration file.
- *
- * @return string
- *
- * @since Method available since Release 3.6.0
- */
- public function getFilename()
- {
- return $this->filename;
- }
-
- /**
- * Returns the configuration for SUT filtering.
- *
- * @return array
- *
- * @since Method available since Release 3.2.1
- */
- public function getFilterConfiguration()
- {
- $addUncoveredFilesFromWhitelist = true;
- $processUncoveredFilesFromWhitelist = false;
-
- $tmp = $this->xpath->query('filter/whitelist');
-
- if ($tmp->length == 1) {
- if ($tmp->item(0)->hasAttribute('addUncoveredFilesFromWhitelist')) {
- $addUncoveredFilesFromWhitelist = $this->getBoolean(
- (string) $tmp->item(0)->getAttribute(
- 'addUncoveredFilesFromWhitelist'
- ),
- true
- );
- }
-
- if ($tmp->item(0)->hasAttribute('processUncoveredFilesFromWhitelist')) {
- $processUncoveredFilesFromWhitelist = $this->getBoolean(
- (string) $tmp->item(0)->getAttribute(
- 'processUncoveredFilesFromWhitelist'
- ),
- false
- );
- }
- }
-
- return array(
- 'blacklist' => array(
- 'include' => array(
- 'directory' => $this->readFilterDirectories(
- 'filter/blacklist/directory'
- ),
- 'file' => $this->readFilterFiles(
- 'filter/blacklist/file'
- )
- ),
- 'exclude' => array(
- 'directory' => $this->readFilterDirectories(
- 'filter/blacklist/exclude/directory'
- ),
- 'file' => $this->readFilterFiles(
- 'filter/blacklist/exclude/file'
- )
- )
- ),
- 'whitelist' => array(
- 'addUncoveredFilesFromWhitelist' => $addUncoveredFilesFromWhitelist,
- 'processUncoveredFilesFromWhitelist' => $processUncoveredFilesFromWhitelist,
- 'include' => array(
- 'directory' => $this->readFilterDirectories(
- 'filter/whitelist/directory'
- ),
- 'file' => $this->readFilterFiles(
- 'filter/whitelist/file'
- )
- ),
- 'exclude' => array(
- 'directory' => $this->readFilterDirectories(
- 'filter/whitelist/exclude/directory'
- ),
- 'file' => $this->readFilterFiles(
- 'filter/whitelist/exclude/file'
- )
- )
- )
- );
- }
-
- /**
- * Returns the configuration for groups.
- *
- * @return array
- *
- * @since Method available since Release 3.2.1
- */
- public function getGroupConfiguration()
- {
- $groups = array(
- 'include' => array(),
- 'exclude' => array()
- );
-
- foreach ($this->xpath->query('groups/include/group') as $group) {
- $groups['include'][] = (string) $group->textContent;
- }
-
- foreach ($this->xpath->query('groups/exclude/group') as $group) {
- $groups['exclude'][] = (string) $group->textContent;
- }
-
- return $groups;
- }
-
- /**
- * Returns the configuration for listeners.
- *
- * @return array
- *
- * @since Method available since Release 3.4.0
- */
- public function getListenerConfiguration()
- {
- $result = array();
-
- foreach ($this->xpath->query('listeners/listener') as $listener) {
- $class = (string) $listener->getAttribute('class');
- $file = '';
- $arguments = array();
-
- if ($listener->getAttribute('file')) {
- $file = $this->toAbsolutePath(
- (string) $listener->getAttribute('file'),
- true
- );
- }
-
- foreach ($listener->childNodes as $node) {
- if ($node instanceof DOMElement && $node->tagName == 'arguments') {
- foreach ($node->childNodes as $argument) {
- if ($argument instanceof DOMElement) {
- if ($argument->tagName == 'file' ||
- $argument->tagName == 'directory') {
- $arguments[] = $this->toAbsolutePath((string) $argument->textContent);
- } else {
- $arguments[] = PHPUnit_Util_XML::xmlToVariable($argument);
- }
- }
- }
- }
- }
-
- $result[] = array(
- 'class' => $class,
- 'file' => $file,
- 'arguments' => $arguments
- );
- }
-
- return $result;
- }
-
- /**
- * Returns the logging configuration.
- *
- * @return array
- */
- public function getLoggingConfiguration()
- {
- $result = array();
-
- foreach ($this->xpath->query('logging/log') as $log) {
- $type = (string) $log->getAttribute('type');
- $target = (string) $log->getAttribute('target');
-
- if (!$target) {
- continue;
- }
-
- $target = $this->toAbsolutePath($target);
-
- if ($type == 'coverage-html') {
- if ($log->hasAttribute('lowUpperBound')) {
- $result['lowUpperBound'] = $this->getInteger(
- (string) $log->getAttribute('lowUpperBound'),
- 50
- );
- }
-
- if ($log->hasAttribute('highLowerBound')) {
- $result['highLowerBound'] = $this->getInteger(
- (string) $log->getAttribute('highLowerBound'),
- 90
- );
- }
- } elseif ($type == 'coverage-crap4j') {
- if ($log->hasAttribute('threshold')) {
- $result['crap4jThreshold'] = $this->getInteger(
- (string) $log->getAttribute('threshold'),
- 30
- );
- }
- } elseif ($type == 'junit') {
- if ($log->hasAttribute('logIncompleteSkipped')) {
- $result['logIncompleteSkipped'] = $this->getBoolean(
- (string) $log->getAttribute('logIncompleteSkipped'),
- false
- );
- }
- } elseif ($type == 'coverage-text') {
- if ($log->hasAttribute('showUncoveredFiles')) {
- $result['coverageTextShowUncoveredFiles'] = $this->getBoolean(
- (string) $log->getAttribute('showUncoveredFiles'),
- false
- );
- }
- if ($log->hasAttribute('showOnlySummary')) {
- $result['coverageTextShowOnlySummary'] = $this->getBoolean(
- (string) $log->getAttribute('showOnlySummary'),
- false
- );
- }
- }
-
- $result[$type] = $target;
- }
-
- return $result;
- }
-
- /**
- * Returns the PHP configuration.
- *
- * @return array
- *
- * @since Method available since Release 3.2.1
- */
- public function getPHPConfiguration()
- {
- $result = array(
- 'include_path' => array(),
- 'ini' => array(),
- 'const' => array(),
- 'var' => array(),
- 'env' => array(),
- 'post' => array(),
- 'get' => array(),
- 'cookie' => array(),
- 'server' => array(),
- 'files' => array(),
- 'request' => array()
- );
-
- foreach ($this->xpath->query('php/includePath') as $includePath) {
- $path = (string) $includePath->textContent;
- if ($path) {
- $result['include_path'][] = $this->toAbsolutePath($path);
- }
- }
-
- foreach ($this->xpath->query('php/ini') as $ini) {
- $name = (string) $ini->getAttribute('name');
- $value = (string) $ini->getAttribute('value');
-
- $result['ini'][$name] = $value;
- }
-
- foreach ($this->xpath->query('php/const') as $const) {
- $name = (string) $const->getAttribute('name');
- $value = (string) $const->getAttribute('value');
-
- $result['const'][$name] = $this->getBoolean($value, $value);
- }
-
- foreach (array('var', 'env', 'post', 'get', 'cookie', 'server', 'files', 'request') as $array) {
- foreach ($this->xpath->query('php/' . $array) as $var) {
- $name = (string) $var->getAttribute('name');
- $value = (string) $var->getAttribute('value');
-
- $result[$array][$name] = $this->getBoolean($value, $value);
- }
- }
-
- return $result;
- }
-
- /**
- * Handles the PHP configuration.
- *
- * @since Method available since Release 3.2.20
- */
- public function handlePHPConfiguration()
- {
- $configuration = $this->getPHPConfiguration();
-
- if (! empty($configuration['include_path'])) {
- ini_set(
- 'include_path',
- implode(PATH_SEPARATOR, $configuration['include_path']) .
- PATH_SEPARATOR .
- ini_get('include_path')
- );
- }
-
- foreach ($configuration['ini'] as $name => $value) {
- if (defined($value)) {
- $value = constant($value);
- }
-
- ini_set($name, $value);
- }
-
- foreach ($configuration['const'] as $name => $value) {
- if (!defined($name)) {
- define($name, $value);
- }
- }
-
- foreach (array('var', 'post', 'get', 'cookie', 'server', 'files', 'request') as $array) {
- // See https://github.com/sebastianbergmann/phpunit/issues/277
- switch ($array) {
- case 'var':
- $target = &$GLOBALS;
- break;
-
- case 'server':
- $target = &$_SERVER;
- break;
-
- default:
- $target = &$GLOBALS['_' . strtoupper($array)];
- break;
- }
-
- foreach ($configuration[$array] as $name => $value) {
- $target[$name] = $value;
- }
- }
-
- foreach ($configuration['env'] as $name => $value) {
- if (false === getenv($name)) {
- putenv("{$name}={$value}");
- }
- if (!isset($_ENV[$name])) {
- $_ENV[$name] = $value;
- }
- }
- }
-
- /**
- * Returns the PHPUnit configuration.
- *
- * @return array
- *
- * @since Method available since Release 3.2.14
- */
- public function getPHPUnitConfiguration()
- {
- $result = array();
- $root = $this->document->documentElement;
-
- if ($root->hasAttribute('cacheTokens')) {
- $result['cacheTokens'] = $this->getBoolean(
- (string) $root->getAttribute('cacheTokens'),
- false
- );
- }
-
- if ($root->hasAttribute('columns')) {
- $columns = (string) $root->getAttribute('columns');
-
- if ($columns == 'max') {
- $result['columns'] = 'max';
- } else {
- $result['columns'] = $this->getInteger($columns, 80);
- }
- }
-
- if ($root->hasAttribute('colors')) {
- /* only allow boolean for compatibility with previous versions
- 'always' only allowed from command line */
- if ($this->getBoolean($root->getAttribute('colors'), false)) {
- $result['colors'] = PHPUnit_TextUI_ResultPrinter::COLOR_AUTO;
- } else {
- $result['colors'] = PHPUnit_TextUI_ResultPrinter::COLOR_NEVER;
- }
- }
-
- /*
- * Issue #657
- */
- if ($root->hasAttribute('stderr')) {
- $result['stderr'] = $this->getBoolean(
- (string) $root->getAttribute('stderr'),
- false
- );
- }
-
- if ($root->hasAttribute('backupGlobals')) {
- $result['backupGlobals'] = $this->getBoolean(
- (string) $root->getAttribute('backupGlobals'),
- true
- );
- }
-
- if ($root->hasAttribute('backupStaticAttributes')) {
- $result['backupStaticAttributes'] = $this->getBoolean(
- (string) $root->getAttribute('backupStaticAttributes'),
- false
- );
- }
-
- if ($root->getAttribute('bootstrap')) {
- $result['bootstrap'] = $this->toAbsolutePath(
- (string) $root->getAttribute('bootstrap')
- );
- }
-
- if ($root->hasAttribute('convertErrorsToExceptions')) {
- $result['convertErrorsToExceptions'] = $this->getBoolean(
- (string) $root->getAttribute('convertErrorsToExceptions'),
- true
- );
- }
-
- if ($root->hasAttribute('convertNoticesToExceptions')) {
- $result['convertNoticesToExceptions'] = $this->getBoolean(
- (string) $root->getAttribute('convertNoticesToExceptions'),
- true
- );
- }
-
- if ($root->hasAttribute('convertWarningsToExceptions')) {
- $result['convertWarningsToExceptions'] = $this->getBoolean(
- (string) $root->getAttribute('convertWarningsToExceptions'),
- true
- );
- }
-
- if ($root->hasAttribute('forceCoversAnnotation')) {
- $result['forceCoversAnnotation'] = $this->getBoolean(
- (string) $root->getAttribute('forceCoversAnnotation'),
- false
- );
- }
-
- if ($root->hasAttribute('mapTestClassNameToCoveredClassName')) {
- $result['mapTestClassNameToCoveredClassName'] = $this->getBoolean(
- (string) $root->getAttribute('mapTestClassNameToCoveredClassName'),
- false
- );
- }
-
- if ($root->hasAttribute('processIsolation')) {
- $result['processIsolation'] = $this->getBoolean(
- (string) $root->getAttribute('processIsolation'),
- false
- );
- }
-
- if ($root->hasAttribute('stopOnError')) {
- $result['stopOnError'] = $this->getBoolean(
- (string) $root->getAttribute('stopOnError'),
- false
- );
- }
-
- if ($root->hasAttribute('stopOnFailure')) {
- $result['stopOnFailure'] = $this->getBoolean(
- (string) $root->getAttribute('stopOnFailure'),
- false
- );
- }
-
- if ($root->hasAttribute('stopOnIncomplete')) {
- $result['stopOnIncomplete'] = $this->getBoolean(
- (string) $root->getAttribute('stopOnIncomplete'),
- false
- );
- }
-
- if ($root->hasAttribute('stopOnRisky')) {
- $result['stopOnRisky'] = $this->getBoolean(
- (string) $root->getAttribute('stopOnRisky'),
- false
- );
- }
-
- if ($root->hasAttribute('stopOnSkipped')) {
- $result['stopOnSkipped'] = $this->getBoolean(
- (string) $root->getAttribute('stopOnSkipped'),
- false
- );
- }
-
- if ($root->hasAttribute('testSuiteLoaderClass')) {
- $result['testSuiteLoaderClass'] = (string) $root->getAttribute(
- 'testSuiteLoaderClass'
- );
- }
-
- if ($root->getAttribute('testSuiteLoaderFile')) {
- $result['testSuiteLoaderFile'] = $this->toAbsolutePath(
- (string) $root->getAttribute('testSuiteLoaderFile')
- );
- }
-
- if ($root->hasAttribute('printerClass')) {
- $result['printerClass'] = (string) $root->getAttribute(
- 'printerClass'
- );
- }
-
- if ($root->getAttribute('printerFile')) {
- $result['printerFile'] = $this->toAbsolutePath(
- (string) $root->getAttribute('printerFile')
- );
- }
-
- if ($root->hasAttribute('timeoutForSmallTests')) {
- $result['timeoutForSmallTests'] = $this->getInteger(
- (string) $root->getAttribute('timeoutForSmallTests'),
- 1
- );
- }
-
- if ($root->hasAttribute('timeoutForMediumTests')) {
- $result['timeoutForMediumTests'] = $this->getInteger(
- (string) $root->getAttribute('timeoutForMediumTests'),
- 10
- );
- }
-
- if ($root->hasAttribute('timeoutForLargeTests')) {
- $result['timeoutForLargeTests'] = $this->getInteger(
- (string) $root->getAttribute('timeoutForLargeTests'),
- 60
- );
- }
-
- if ($root->hasAttribute('beStrictAboutTestsThatDoNotTestAnything')) {
- $result['reportUselessTests'] = $this->getBoolean(
- (string) $root->getAttribute('beStrictAboutTestsThatDoNotTestAnything'),
- false
- );
- }
-
- if ($root->hasAttribute('checkForUnintentionallyCoveredCode')) {
- $result['strictCoverage'] = $this->getBoolean(
- (string) $root->getAttribute('checkForUnintentionallyCoveredCode'),
- false
- );
- }
-
- if ($root->hasAttribute('beStrictAboutOutputDuringTests')) {
- $result['disallowTestOutput'] = $this->getBoolean(
- (string) $root->getAttribute('beStrictAboutOutputDuringTests'),
- false
- );
- }
-
- if ($root->hasAttribute('beStrictAboutChangesToGlobalState')) {
- $result['disallowChangesToGlobalState'] = $this->getBoolean(
- (string) $root->getAttribute('beStrictAboutChangesToGlobalState'),
- false
- );
- }
-
- if ($root->hasAttribute('beStrictAboutTestSize')) {
- $result['enforceTimeLimit'] = $this->getBoolean(
- (string) $root->getAttribute('beStrictAboutTestSize'),
- false
- );
- }
-
- if ($root->hasAttribute('beStrictAboutTodoAnnotatedTests')) {
- $result['disallowTodoAnnotatedTests'] = $this->getBoolean(
- (string) $root->getAttribute('beStrictAboutTodoAnnotatedTests'),
- false
- );
- }
-
- if ($root->hasAttribute('strict')) {
- $flag = $this->getBoolean(
- (string) $root->getAttribute('strict'),
- false
- );
-
- $result['reportUselessTests'] = $flag;
- $result['strictCoverage'] = $flag;
- $result['disallowTestOutput'] = $flag;
- $result['enforceTimeLimit'] = $flag;
- $result['disallowTodoAnnotatedTests'] = $flag;
- $result['deprecatedStrictModeSetting'] = true;
- }
-
- if ($root->hasAttribute('verbose')) {
- $result['verbose'] = $this->getBoolean(
- (string) $root->getAttribute('verbose'),
- false
- );
- }
-
- return $result;
- }
-
- /**
- * Returns the SeleniumTestCase browser configuration.
- *
- * @return array
- *
- * @since Method available since Release 3.2.9
- */
- public function getSeleniumBrowserConfiguration()
- {
- $result = array();
-
- foreach ($this->xpath->query('selenium/browser') as $config) {
- $name = (string) $config->getAttribute('name');
- $browser = (string) $config->getAttribute('browser');
-
- if ($config->hasAttribute('host')) {
- $host = (string) $config->getAttribute('host');
- } else {
- $host = 'localhost';
- }
-
- if ($config->hasAttribute('port')) {
- $port = $this->getInteger(
- (string) $config->getAttribute('port'),
- 4444
- );
- } else {
- $port = 4444;
- }
-
- if ($config->hasAttribute('timeout')) {
- $timeout = $this->getInteger(
- (string) $config->getAttribute('timeout'),
- 30000
- );
- } else {
- $timeout = 30000;
- }
-
- $result[] = array(
- 'name' => $name,
- 'browser' => $browser,
- 'host' => $host,
- 'port' => $port,
- 'timeout' => $timeout
- );
- }
-
- return $result;
- }
-
- /**
- * Returns the test suite configuration.
- *
- * @return PHPUnit_Framework_TestSuite
- *
- * @since Method available since Release 3.2.1
- */
- public function getTestSuiteConfiguration($testSuiteFilter = null)
- {
- $testSuiteNodes = $this->xpath->query('testsuites/testsuite');
-
- if ($testSuiteNodes->length == 0) {
- $testSuiteNodes = $this->xpath->query('testsuite');
- }
-
- if ($testSuiteNodes->length == 1) {
- return $this->getTestSuite($testSuiteNodes->item(0), $testSuiteFilter);
- }
-
- if ($testSuiteNodes->length > 1) {
- $suite = new PHPUnit_Framework_TestSuite;
-
- foreach ($testSuiteNodes as $testSuiteNode) {
- $suite->addTestSuite(
- $this->getTestSuite($testSuiteNode, $testSuiteFilter)
- );
- }
-
- return $suite;
- }
- }
-
- /**
- * @param DOMElement $testSuiteNode
- *
- * @return PHPUnit_Framework_TestSuite
- *
- * @since Method available since Release 3.4.0
- */
- protected function getTestSuite(DOMElement $testSuiteNode, $testSuiteFilter = null)
- {
- if ($testSuiteNode->hasAttribute('name')) {
- $suite = new PHPUnit_Framework_TestSuite(
- (string) $testSuiteNode->getAttribute('name')
- );
- } else {
- $suite = new PHPUnit_Framework_TestSuite;
- }
-
- $exclude = array();
-
- foreach ($testSuiteNode->getElementsByTagName('exclude') as $excludeNode) {
- $excludeFile = (string) $excludeNode->textContent;
- if ($excludeFile) {
- $exclude[] = $this->toAbsolutePath($excludeFile);
- }
- }
-
- $fileIteratorFacade = new File_Iterator_Facade;
-
- foreach ($testSuiteNode->getElementsByTagName('directory') as $directoryNode) {
- if ($testSuiteFilter && $directoryNode->parentNode->getAttribute('name') != $testSuiteFilter) {
- continue;
- }
-
- $directory = (string) $directoryNode->textContent;
-
- if (empty($directory)) {
- continue;
- }
-
- if ($directoryNode->hasAttribute('phpVersion')) {
- $phpVersion = (string) $directoryNode->getAttribute('phpVersion');
- } else {
- $phpVersion = PHP_VERSION;
- }
-
- if ($directoryNode->hasAttribute('phpVersionOperator')) {
- $phpVersionOperator = (string) $directoryNode->getAttribute('phpVersionOperator');
- } else {
- $phpVersionOperator = '>=';
- }
-
- if (!version_compare(PHP_VERSION, $phpVersion, $phpVersionOperator)) {
- continue;
- }
-
- if ($directoryNode->hasAttribute('prefix')) {
- $prefix = (string) $directoryNode->getAttribute('prefix');
- } else {
- $prefix = '';
- }
-
- if ($directoryNode->hasAttribute('suffix')) {
- $suffix = (string) $directoryNode->getAttribute('suffix');
- } else {
- $suffix = 'Test.php';
- }
-
- $files = $fileIteratorFacade->getFilesAsArray(
- $this->toAbsolutePath($directory),
- $suffix,
- $prefix,
- $exclude
- );
- $suite->addTestFiles($files);
- }
-
- foreach ($testSuiteNode->getElementsByTagName('file') as $fileNode) {
- if ($testSuiteFilter && $fileNode->parentNode->getAttribute('name') != $testSuiteFilter) {
- continue;
- }
-
- $file = (string) $fileNode->textContent;
-
- if (empty($file)) {
- continue;
- }
-
- // Get the absolute path to the file
- $file = $fileIteratorFacade->getFilesAsArray(
- $this->toAbsolutePath($file)
- );
-
- if (!isset($file[0])) {
- continue;
- }
-
- $file = $file[0];
-
- if ($fileNode->hasAttribute('phpVersion')) {
- $phpVersion = (string) $fileNode->getAttribute('phpVersion');
- } else {
- $phpVersion = PHP_VERSION;
- }
-
- if ($fileNode->hasAttribute('phpVersionOperator')) {
- $phpVersionOperator = (string) $fileNode->getAttribute('phpVersionOperator');
- } else {
- $phpVersionOperator = '>=';
- }
-
- if (!version_compare(PHP_VERSION, $phpVersion, $phpVersionOperator)) {
- continue;
- }
-
- $suite->addTestFile($file);
- }
-
- return $suite;
- }
-
- /**
- * @param string $value
- * @param bool $default
- *
- * @return bool
- *
- * @since Method available since Release 3.2.3
- */
- protected function getBoolean($value, $default)
- {
- if (strtolower($value) == 'false') {
- return false;
- } elseif (strtolower($value) == 'true') {
- return true;
- }
-
- return $default;
- }
-
- /**
- * @param string $value
- * @param bool $default
- *
- * @return bool
- *
- * @since Method available since Release 3.6.0
- */
- protected function getInteger($value, $default)
- {
- if (is_numeric($value)) {
- return (int) $value;
- }
-
- return $default;
- }
-
- /**
- * @param string $query
- *
- * @return array
- *
- * @since Method available since Release 3.2.3
- */
- protected function readFilterDirectories($query)
- {
- $directories = array();
-
- foreach ($this->xpath->query($query) as $directory) {
- $directoryPath = (string) $directory->textContent;
-
- if (!$directoryPath) {
- continue;
- }
-
- if ($directory->hasAttribute('prefix')) {
- $prefix = (string) $directory->getAttribute('prefix');
- } else {
- $prefix = '';
- }
-
- if ($directory->hasAttribute('suffix')) {
- $suffix = (string) $directory->getAttribute('suffix');
- } else {
- $suffix = '.php';
- }
-
- if ($directory->hasAttribute('group')) {
- $group = (string) $directory->getAttribute('group');
- } else {
- $group = 'DEFAULT';
- }
-
- $directories[] = array(
- 'path' => $this->toAbsolutePath($directoryPath),
- 'prefix' => $prefix,
- 'suffix' => $suffix,
- 'group' => $group
- );
- }
-
- return $directories;
- }
-
- /**
- * @param string $query
- *
- * @return array
- *
- * @since Method available since Release 3.2.3
- */
- protected function readFilterFiles($query)
- {
- $files = array();
-
- foreach ($this->xpath->query($query) as $file) {
- $filePath = (string) $file->textContent;
-
- if ($filePath) {
- $files[] = $this->toAbsolutePath($filePath);
- }
- }
-
- return $files;
- }
-
- /**
- * @param string $path
- * @param bool $useIncludePath
- *
- * @return string
- *
- * @since Method available since Release 3.5.0
- */
- protected function toAbsolutePath($path, $useIncludePath = false)
- {
- $path = trim($path);
-
- if ($path[0] === '/') {
- return $path;
- }
-
- // Matches the following on Windows:
- // - \\NetworkComputer\Path
- // - \\.\D:
- // - \\.\c:
- // - C:\Windows
- // - C:\windows
- // - C:/windows
- // - c:/windows
- if (defined('PHP_WINDOWS_VERSION_BUILD') &&
- ($path[0] === '\\' ||
- (strlen($path) >= 3 && preg_match('#^[A-Z]\:[/\\\]#i', substr($path, 0, 3))))) {
- return $path;
- }
-
- // Stream
- if (strpos($path, '://') !== false) {
- return $path;
- }
-
- $file = dirname($this->filename) . DIRECTORY_SEPARATOR . $path;
-
- if ($useIncludePath && !file_exists($file)) {
- $includePathFile = stream_resolve_include_path($path);
-
- if ($includePathFile) {
- $file = $includePathFile;
- }
- }
-
- return $file;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/ErrorHandler.php b/www/wiki/vendor/phpunit/phpunit/src/Util/ErrorHandler.php
deleted file mode 100644
index d75d1be7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/ErrorHandler.php
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-// Workaround for http://bugs.php.net/bug.php?id=47987,
-// see https://github.com/sebastianbergmann/phpunit/issues#issue/125 for details
-// Use dirname(__DIR__) instead of using /../ because of https://github.com/facebook/hhvm/issues/5215
-require_once dirname(__DIR__) . '/Framework/Error.php';
-require_once dirname(__DIR__) . '/Framework/Error/Notice.php';
-require_once dirname(__DIR__) . '/Framework/Error/Warning.php';
-require_once dirname(__DIR__) . '/Framework/Error/Deprecated.php';
-
-/**
- * Error handler that converts PHP errors and warnings to exceptions.
- *
- * @since Class available since Release 3.3.0
- */
-class PHPUnit_Util_ErrorHandler
-{
- protected static $errorStack = array();
-
- /**
- * Returns the error stack.
- *
- * @return array
- */
- public static function getErrorStack()
- {
- return self::$errorStack;
- }
-
- /**
- * @param int $errno
- * @param string $errstr
- * @param string $errfile
- * @param int $errline
- *
- * @throws PHPUnit_Framework_Error
- */
- public static function handleError($errno, $errstr, $errfile, $errline)
- {
- if (!($errno & error_reporting())) {
- return false;
- }
-
- self::$errorStack[] = array($errno, $errstr, $errfile, $errline);
-
- $trace = debug_backtrace(false);
- array_shift($trace);
-
- foreach ($trace as $frame) {
- if ($frame['function'] == '__toString') {
- return false;
- }
- }
-
- if ($errno == E_NOTICE || $errno == E_USER_NOTICE || $errno == E_STRICT) {
- if (PHPUnit_Framework_Error_Notice::$enabled !== true) {
- return false;
- }
-
- $exception = 'PHPUnit_Framework_Error_Notice';
- } elseif ($errno == E_WARNING || $errno == E_USER_WARNING) {
- if (PHPUnit_Framework_Error_Warning::$enabled !== true) {
- return false;
- }
-
- $exception = 'PHPUnit_Framework_Error_Warning';
- } elseif ($errno == E_DEPRECATED || $errno == E_USER_DEPRECATED) {
- if (PHPUnit_Framework_Error_Deprecated::$enabled !== true) {
- return false;
- }
-
- $exception = 'PHPUnit_Framework_Error_Deprecated';
- } else {
- $exception = 'PHPUnit_Framework_Error';
- }
-
- throw new $exception($errstr, $errno, $errfile, $errline);
- }
-
- /**
- * Registers an error handler and returns a function that will restore
- * the previous handler when invoked
- *
- * @param int $severity PHP predefined error constant
- *
- * @throws Exception if event of specified severity is emitted
- */
- public static function handleErrorOnce($severity = E_WARNING)
- {
- $terminator = function () {
- static $expired = false;
- if (!$expired) {
- $expired = true;
- // cleans temporary error handler
- return restore_error_handler();
- }
- };
-
- set_error_handler(function ($errno, $errstr) use ($severity) {
- if ($errno === $severity) {
- return;
- }
-
- return false;
- });
-
- return $terminator;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Fileloader.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Fileloader.php
deleted file mode 100644
index 7fc787fe..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Fileloader.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Utility methods to load PHP sourcefiles.
- *
- * @since Class available since Release 2.3.0
- */
-class PHPUnit_Util_Fileloader
-{
- /**
- * Checks if a PHP sourcefile is readable.
- * The sourcefile is loaded through the load() method.
- *
- * @param string $filename
- *
- * @return string
- *
- * @throws PHPUnit_Framework_Exception
- */
- public static function checkAndLoad($filename)
- {
- $includePathFilename = stream_resolve_include_path($filename);
-
- if (!$includePathFilename || !is_readable($includePathFilename)) {
- throw new PHPUnit_Framework_Exception(
- sprintf('Cannot open file "%s".' . "\n", $filename)
- );
- }
-
- self::load($includePathFilename);
-
- return $includePathFilename;
- }
-
- /**
- * Loads a PHP sourcefile.
- *
- * @param string $filename
- *
- * @return mixed
- *
- * @since Method available since Release 3.0.0
- */
- public static function load($filename)
- {
- $oldVariableNames = array_keys(get_defined_vars());
-
- include_once $filename;
-
- $newVariables = get_defined_vars();
- $newVariableNames = array_diff(
- array_keys($newVariables),
- $oldVariableNames
- );
-
- foreach ($newVariableNames as $variableName) {
- if ($variableName != 'oldVariableNames') {
- $GLOBALS[$variableName] = $newVariables[$variableName];
- }
- }
-
- return $filename;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Filesystem.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Filesystem.php
deleted file mode 100644
index aca601a3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Filesystem.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Filesystem helpers.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Util_Filesystem
-{
- /**
- * @var array
- */
- protected static $buffer = array();
-
- /**
- * Maps class names to source file names:
- * - PEAR CS: Foo_Bar_Baz -> Foo/Bar/Baz.php
- * - Namespace: Foo\Bar\Baz -> Foo/Bar/Baz.php
- *
- * @param string $className
- *
- * @return string
- *
- * @since Method available since Release 3.4.0
- */
- public static function classNameToFilename($className)
- {
- return str_replace(
- array('_', '\\'),
- DIRECTORY_SEPARATOR,
- $className
- ) . '.php';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Filter.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Filter.php
deleted file mode 100644
index 8e81b598..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Filter.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Utility class for code filtering.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Util_Filter
-{
- /**
- * Filters stack frames from PHPUnit classes.
- *
- * @param Exception $e
- * @param bool $asString
- *
- * @return string
- */
- public static function getFilteredStacktrace(Exception $e, $asString = true)
- {
- $prefix = false;
- $script = realpath($GLOBALS['_SERVER']['SCRIPT_NAME']);
-
- if (defined('__PHPUNIT_PHAR_ROOT__')) {
- $prefix = __PHPUNIT_PHAR_ROOT__;
- }
-
- if ($asString === true) {
- $filteredStacktrace = '';
- } else {
- $filteredStacktrace = array();
- }
-
- if ($e instanceof PHPUnit_Framework_SyntheticError) {
- $eTrace = $e->getSyntheticTrace();
- $eFile = $e->getSyntheticFile();
- $eLine = $e->getSyntheticLine();
- } elseif ($e instanceof PHPUnit_Framework_Exception) {
- $eTrace = $e->getSerializableTrace();
- $eFile = $e->getFile();
- $eLine = $e->getLine();
- } else {
- if ($e->getPrevious()) {
- $e = $e->getPrevious();
- }
- $eTrace = $e->getTrace();
- $eFile = $e->getFile();
- $eLine = $e->getLine();
- }
-
- if (!self::frameExists($eTrace, $eFile, $eLine)) {
- array_unshift(
- $eTrace,
- array('file' => $eFile, 'line' => $eLine)
- );
- }
-
- $blacklist = new PHPUnit_Util_Blacklist;
-
- foreach ($eTrace as $frame) {
- if (isset($frame['file']) && is_file($frame['file']) &&
- !$blacklist->isBlacklisted($frame['file']) &&
- ($prefix === false || strpos($frame['file'], $prefix) !== 0) &&
- $frame['file'] !== $script) {
- if ($asString === true) {
- $filteredStacktrace .= sprintf(
- "%s:%s\n",
- $frame['file'],
- isset($frame['line']) ? $frame['line'] : '?'
- );
- } else {
- $filteredStacktrace[] = $frame;
- }
- }
- }
-
- return $filteredStacktrace;
- }
-
- /**
- * @param array $trace
- * @param string $file
- * @param int $line
- *
- * @return bool
- *
- * @since Method available since Release 3.3.2
- */
- private static function frameExists(array $trace, $file, $line)
- {
- foreach ($trace as $frame) {
- if (isset($frame['file']) && $frame['file'] == $file &&
- isset($frame['line']) && $frame['line'] == $line) {
- return true;
- }
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Getopt.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Getopt.php
deleted file mode 100644
index ba21be3f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Getopt.php
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Command-line options parsing class.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Util_Getopt
-{
- public static function getopt(array $args, $short_options, $long_options = null)
- {
- if (empty($args)) {
- return array(array(), array());
- }
-
- $opts = array();
- $non_opts = array();
-
- if ($long_options) {
- sort($long_options);
- }
-
- if (isset($args[0][0]) && $args[0][0] != '-') {
- array_shift($args);
- }
-
- reset($args);
- array_map('trim', $args);
-
- while (list($i, $arg) = each($args)) {
- if ($arg == '') {
- continue;
- }
-
- if ($arg == '--') {
- $non_opts = array_merge($non_opts, array_slice($args, $i + 1));
- break;
- }
-
- if ($arg[0] != '-' ||
- (strlen($arg) > 1 && $arg[1] == '-' && !$long_options)) {
- $non_opts[] = $args[$i];
- continue;
- } elseif (strlen($arg) > 1 && $arg[1] == '-') {
- self::parseLongOption(
- substr($arg, 2),
- $long_options,
- $opts,
- $args
- );
- } else {
- self::parseShortOption(
- substr($arg, 1),
- $short_options,
- $opts,
- $args
- );
- }
- }
-
- return array($opts, $non_opts);
- }
-
- protected static function parseShortOption($arg, $short_options, &$opts, &$args)
- {
- $argLen = strlen($arg);
-
- for ($i = 0; $i < $argLen; $i++) {
- $opt = $arg[$i];
- $opt_arg = null;
-
- if (($spec = strstr($short_options, $opt)) === false ||
- $arg[$i] == ':') {
- throw new PHPUnit_Framework_Exception(
- "unrecognized option -- $opt"
- );
- }
-
- if (strlen($spec) > 1 && $spec[1] == ':') {
- if (strlen($spec) > 2 && $spec[2] == ':') {
- if ($i + 1 < $argLen) {
- $opts[] = array($opt, substr($arg, $i + 1));
- break;
- }
- } else {
- if ($i + 1 < $argLen) {
- $opts[] = array($opt, substr($arg, $i + 1));
- break;
- } elseif (list(, $opt_arg) = each($args)) {
- } else {
- throw new PHPUnit_Framework_Exception(
- "option requires an argument -- $opt"
- );
- }
- }
- }
-
- $opts[] = array($opt, $opt_arg);
- }
- }
-
- protected static function parseLongOption($arg, $long_options, &$opts, &$args)
- {
- $count = count($long_options);
- $list = explode('=', $arg);
- $opt = $list[0];
- $opt_arg = null;
-
- if (count($list) > 1) {
- $opt_arg = $list[1];
- }
-
- $opt_len = strlen($opt);
-
- for ($i = 0; $i < $count; $i++) {
- $long_opt = $long_options[$i];
- $opt_start = substr($long_opt, 0, $opt_len);
-
- if ($opt_start != $opt) {
- continue;
- }
-
- $opt_rest = substr($long_opt, $opt_len);
-
- if ($opt_rest != '' && $opt[0] != '=' && $i + 1 < $count &&
- $opt == substr($long_options[$i+1], 0, $opt_len)) {
- throw new PHPUnit_Framework_Exception(
- "option --$opt is ambiguous"
- );
- }
-
- if (substr($long_opt, -1) == '=') {
- if (substr($long_opt, -2) != '==') {
- if (!strlen($opt_arg) &&
- !(list(, $opt_arg) = each($args))) {
- throw new PHPUnit_Framework_Exception(
- "option --$opt requires an argument"
- );
- }
- }
- } elseif ($opt_arg) {
- throw new PHPUnit_Framework_Exception(
- "option --$opt doesn't allow an argument"
- );
- }
-
- $full_option = '--' . preg_replace('/={1,2}$/', '', $long_opt);
- $opts[] = array($full_option, $opt_arg);
-
- return;
- }
-
- throw new PHPUnit_Framework_Exception("unrecognized option --$opt");
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/GlobalState.php b/www/wiki/vendor/phpunit/phpunit/src/Util/GlobalState.php
deleted file mode 100644
index 35af703b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/GlobalState.php
+++ /dev/null
@@ -1,192 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.4.0
- */
-class PHPUnit_Util_GlobalState
-{
- /**
- * @var array
- */
- protected static $superGlobalArrays = array(
- '_ENV',
- '_POST',
- '_GET',
- '_COOKIE',
- '_SERVER',
- '_FILES',
- '_REQUEST'
- );
-
- /**
- * @var array
- */
- protected static $superGlobalArraysLong = array(
- 'HTTP_ENV_VARS',
- 'HTTP_POST_VARS',
- 'HTTP_GET_VARS',
- 'HTTP_COOKIE_VARS',
- 'HTTP_SERVER_VARS',
- 'HTTP_POST_FILES'
- );
-
- public static function getIncludedFilesAsString()
- {
- return static::processIncludedFilesAsString(get_included_files());
- }
-
- public static function processIncludedFilesAsString(array $files)
- {
- $blacklist = new PHPUnit_Util_Blacklist;
- $prefix = false;
- $result = '';
-
- if (defined('__PHPUNIT_PHAR__')) {
- $prefix = 'phar://' . __PHPUNIT_PHAR__ . '/';
- }
-
- for ($i = count($files) - 1; $i > 0; $i--) {
- $file = $files[$i];
-
- if ($prefix !== false && strpos($file, $prefix) === 0) {
- continue;
- }
-
- // Skip virtual file system protocols
- if (preg_match('/^(vfs|phpvfs[a-z0-9]+):/', $file)) {
- continue;
- }
-
- if (!$blacklist->isBlacklisted($file) && is_file($file)) {
- $result = 'require_once \'' . $file . "';\n" . $result;
- }
- }
-
- return $result;
- }
-
- public static function getIniSettingsAsString()
- {
- $result = '';
- $iniSettings = ini_get_all(null, false);
-
- foreach ($iniSettings as $key => $value) {
- $result .= sprintf(
- '@ini_set(%s, %s);' . "\n",
- self::exportVariable($key),
- self::exportVariable($value)
- );
- }
-
- return $result;
- }
-
- public static function getConstantsAsString()
- {
- $constants = get_defined_constants(true);
- $result = '';
-
- if (isset($constants['user'])) {
- foreach ($constants['user'] as $name => $value) {
- $result .= sprintf(
- 'if (!defined(\'%s\')) define(\'%s\', %s);' . "\n",
- $name,
- $name,
- self::exportVariable($value)
- );
- }
- }
-
- return $result;
- }
-
- public static function getGlobalsAsString()
- {
- $result = '';
- $superGlobalArrays = self::getSuperGlobalArrays();
-
- foreach ($superGlobalArrays as $superGlobalArray) {
- if (isset($GLOBALS[$superGlobalArray]) &&
- is_array($GLOBALS[$superGlobalArray])) {
- foreach (array_keys($GLOBALS[$superGlobalArray]) as $key) {
- if ($GLOBALS[$superGlobalArray][$key] instanceof Closure) {
- continue;
- }
-
- $result .= sprintf(
- '$GLOBALS[\'%s\'][\'%s\'] = %s;' . "\n",
- $superGlobalArray,
- $key,
- self::exportVariable($GLOBALS[$superGlobalArray][$key])
- );
- }
- }
- }
-
- $blacklist = $superGlobalArrays;
- $blacklist[] = 'GLOBALS';
-
- foreach (array_keys($GLOBALS) as $key) {
- if (!in_array($key, $blacklist) && !$GLOBALS[$key] instanceof Closure) {
- $result .= sprintf(
- '$GLOBALS[\'%s\'] = %s;' . "\n",
- $key,
- self::exportVariable($GLOBALS[$key])
- );
- }
- }
-
- return $result;
- }
-
- protected static function getSuperGlobalArrays()
- {
- if (ini_get('register_long_arrays') == '1') {
- return array_merge(
- self::$superGlobalArrays,
- self::$superGlobalArraysLong
- );
- } else {
- return self::$superGlobalArrays;
- }
- }
-
- protected static function exportVariable($variable)
- {
- if (is_scalar($variable) || is_null($variable) ||
- (is_array($variable) && self::arrayOnlyContainsScalars($variable))) {
- return var_export($variable, true);
- }
-
- return 'unserialize(' .
- var_export(serialize($variable), true) .
- ')';
- }
-
- protected static function arrayOnlyContainsScalars(array $array)
- {
- $result = true;
-
- foreach ($array as $element) {
- if (is_array($element)) {
- $result = self::arrayOnlyContainsScalars($element);
- } elseif (!is_scalar($element) && !is_null($element)) {
- $result = false;
- }
-
- if ($result === false) {
- break;
- }
- }
-
- return $result;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/InvalidArgumentHelper.php b/www/wiki/vendor/phpunit/phpunit/src/Util/InvalidArgumentHelper.php
deleted file mode 100644
index 80410a8b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/InvalidArgumentHelper.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Factory for PHPUnit_Framework_Exception objects that are used to describe
- * invalid arguments passed to a function or method.
- *
- * @since Class available since Release 3.4.0
- */
-class PHPUnit_Util_InvalidArgumentHelper
-{
- /**
- * @param int $argument
- * @param string $type
- * @param mixed $value
- *
- * @return PHPUnit_Framework_Exception
- */
- public static function factory($argument, $type, $value = null)
- {
- $stack = debug_backtrace(false);
-
- return new PHPUnit_Framework_Exception(
- sprintf(
- 'Argument #%d%sof %s::%s() must be a %s',
- $argument,
- $value !== null ? ' (' . gettype($value) . '#' . $value . ')' : ' (No Value) ',
- $stack[1]['class'],
- $stack[1]['function'],
- $type
- )
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Log/JSON.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Log/JSON.php
deleted file mode 100644
index 776bad97..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Log/JSON.php
+++ /dev/null
@@ -1,244 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A TestListener that generates JSON messages.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Util_Log_JSON extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
-{
- /**
- * @var string
- */
- protected $currentTestSuiteName = '';
-
- /**
- * @var string
- */
- protected $currentTestName = '';
-
- /**
- * @var bool
- */
- protected $currentTestPass = true;
-
- /**
- * An error occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->writeCase(
- 'error',
- $time,
- PHPUnit_Util_Filter::getFilteredStacktrace($e, false),
- $e->getMessage(),
- $test
- );
-
- $this->currentTestPass = false;
- }
-
- /**
- * A failure occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
- * @param float $time
- */
- public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
- {
- $this->writeCase(
- 'fail',
- $time,
- PHPUnit_Util_Filter::getFilteredStacktrace($e, false),
- $e->getMessage(),
- $test
- );
-
- $this->currentTestPass = false;
- }
-
- /**
- * Incomplete test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->writeCase(
- 'error',
- $time,
- PHPUnit_Util_Filter::getFilteredStacktrace($e, false),
- 'Incomplete Test: ' . $e->getMessage(),
- $test
- );
-
- $this->currentTestPass = false;
- }
-
- /**
- * Risky test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 4.0.0
- */
- public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->writeCase(
- 'error',
- $time,
- PHPUnit_Util_Filter::getFilteredStacktrace($e, false),
- 'Risky Test: ' . $e->getMessage(),
- $test
- );
-
- $this->currentTestPass = false;
- }
-
- /**
- * Skipped test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->writeCase(
- 'error',
- $time,
- PHPUnit_Util_Filter::getFilteredStacktrace($e, false),
- 'Skipped Test: ' . $e->getMessage(),
- $test
- );
-
- $this->currentTestPass = false;
- }
-
- /**
- * A testsuite started.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- */
- public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- $this->currentTestSuiteName = $suite->getName();
- $this->currentTestName = '';
-
- $this->write(
- array(
- 'event' => 'suiteStart',
- 'suite' => $this->currentTestSuiteName,
- 'tests' => count($suite)
- )
- );
- }
-
- /**
- * A testsuite ended.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- */
- public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- $this->currentTestSuiteName = '';
- $this->currentTestName = '';
- }
-
- /**
- * A test started.
- *
- * @param PHPUnit_Framework_Test $test
- */
- public function startTest(PHPUnit_Framework_Test $test)
- {
- $this->currentTestName = PHPUnit_Util_Test::describe($test);
- $this->currentTestPass = true;
-
- $this->write(
- array(
- 'event' => 'testStart',
- 'suite' => $this->currentTestSuiteName,
- 'test' => $this->currentTestName
- )
- );
- }
-
- /**
- * A test ended.
- *
- * @param PHPUnit_Framework_Test $test
- * @param float $time
- */
- public function endTest(PHPUnit_Framework_Test $test, $time)
- {
- if ($this->currentTestPass) {
- $this->writeCase('pass', $time, array(), '', $test);
- }
- }
-
- /**
- * @param string $status
- * @param float $time
- * @param array $trace
- * @param string $message
- * @param PHPUnit_Framework_TestCase|null $test
- */
- protected function writeCase($status, $time, array $trace = array(), $message = '', $test = null)
- {
- $output = '';
- // take care of TestSuite producing error (e.g. by running into exception) as TestSuite doesn't have hasOutput
- if ($test !== null && method_exists($test, 'hasOutput') && $test->hasOutput()) {
- $output = $test->getActualOutput();
- }
- $this->write(
- array(
- 'event' => 'test',
- 'suite' => $this->currentTestSuiteName,
- 'test' => $this->currentTestName,
- 'status' => $status,
- 'time' => $time,
- 'trace' => $trace,
- 'message' => PHPUnit_Util_String::convertToUtf8($message),
- 'output' => $output,
- )
- );
- }
-
- /**
- * @param string $buffer
- */
- public function write($buffer)
- {
- array_walk_recursive($buffer, function (&$input) {
- if (is_string($input)) {
- $input = PHPUnit_Util_String::convertToUtf8($input);
- }
- });
-
- $flags = 0;
-
- if (defined('JSON_PRETTY_PRINT')) {
- $flags |= JSON_PRETTY_PRINT;
- }
-
- parent::write(json_encode($buffer, $flags));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Log/JUnit.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Log/JUnit.php
deleted file mode 100644
index 6b68405b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Log/JUnit.php
+++ /dev/null
@@ -1,459 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A TestListener that generates a logfile of the test execution in XML markup.
- *
- * The XML markup used is the same as the one that is used by the JUnit Ant task.
- *
- * @since Class available since Release 2.1.0
- */
-class PHPUnit_Util_Log_JUnit extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
-{
- /**
- * @var DOMDocument
- */
- protected $document;
-
- /**
- * @var DOMElement
- */
- protected $root;
-
- /**
- * @var bool
- */
- protected $logIncompleteSkipped = false;
-
- /**
- * @var bool
- */
- protected $writeDocument = true;
-
- /**
- * @var DOMElement[]
- */
- protected $testSuites = array();
-
- /**
- * @var int[]
- */
- protected $testSuiteTests = array(0);
-
- /**
- * @var int[]
- */
- protected $testSuiteAssertions = array(0);
-
- /**
- * @var int[]
- */
- protected $testSuiteErrors = array(0);
-
- /**
- * @var int[]
- */
- protected $testSuiteFailures = array(0);
-
- /**
- * @var int[]
- */
- protected $testSuiteTimes = array(0);
-
- /**
- * @var int
- */
- protected $testSuiteLevel = 0;
-
- /**
- * @var DOMElement
- */
- protected $currentTestCase = null;
-
- /**
- * @var bool
- */
- protected $attachCurrentTestCase = true;
-
- /**
- * Constructor.
- *
- * @param mixed $out
- * @param bool $logIncompleteSkipped
- */
- public function __construct($out = null, $logIncompleteSkipped = false)
- {
- $this->document = new DOMDocument('1.0', 'UTF-8');
- $this->document->formatOutput = true;
-
- $this->root = $this->document->createElement('testsuites');
- $this->document->appendChild($this->root);
-
- parent::__construct($out);
-
- $this->logIncompleteSkipped = $logIncompleteSkipped;
- }
-
- /**
- * Flush buffer and close output.
- */
- public function flush()
- {
- if ($this->writeDocument === true) {
- $this->write($this->getXML());
- }
-
- parent::flush();
- }
-
- /**
- * An error occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- if ($this->currentTestCase === null) {
- return;
- }
-
- if ($test instanceof PHPUnit_Framework_SelfDescribing) {
- $buffer = $test->toString() . PHP_EOL;
- } else {
- $buffer = '';
- }
-
- if ($e instanceof PHPUnit_Framework_ExceptionWrapper) {
- $type = $e->getClassname();
- $buffer .= (string) $e;
- } else {
- $type = get_class($e);
- $buffer .= PHPUnit_Framework_TestFailure::exceptionToString($e) . PHP_EOL .
- PHPUnit_Util_Filter::getFilteredStacktrace($e);
- }
-
- $error = $this->document->createElement(
- 'error',
- PHPUnit_Util_XML::prepareString($buffer)
- );
-
- $error->setAttribute('type', $type);
-
- $this->currentTestCase->appendChild($error);
-
- $this->testSuiteErrors[$this->testSuiteLevel]++;
- }
-
- /**
- * A failure occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
- * @param float $time
- */
- public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
- {
- if ($this->currentTestCase === null) {
- return;
- }
-
- if ($test instanceof PHPUnit_Framework_SelfDescribing) {
- $buffer = $test->toString() . "\n";
- } else {
- $buffer = '';
- }
-
- $buffer .= PHPUnit_Framework_TestFailure::exceptionToString($e) .
- "\n" .
- PHPUnit_Util_Filter::getFilteredStacktrace($e);
-
- $failure = $this->document->createElement(
- 'failure',
- PHPUnit_Util_XML::prepareString($buffer)
- );
-
- $failure->setAttribute('type', get_class($e));
-
- $this->currentTestCase->appendChild($failure);
-
- $this->testSuiteFailures[$this->testSuiteLevel]++;
- }
-
- /**
- * Incomplete test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- if ($this->logIncompleteSkipped && $this->currentTestCase !== null) {
- $error = $this->document->createElement(
- 'error',
- PHPUnit_Util_XML::prepareString(
- "Incomplete Test\n" .
- PHPUnit_Util_Filter::getFilteredStacktrace($e)
- )
- );
-
- $error->setAttribute('type', get_class($e));
-
- $this->currentTestCase->appendChild($error);
-
- $this->testSuiteErrors[$this->testSuiteLevel]++;
- } else {
- $this->attachCurrentTestCase = false;
- }
- }
-
- /**
- * Risky test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 4.0.0
- */
- public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- if ($this->logIncompleteSkipped && $this->currentTestCase !== null) {
- $error = $this->document->createElement(
- 'error',
- PHPUnit_Util_XML::prepareString(
- "Risky Test\n" .
- PHPUnit_Util_Filter::getFilteredStacktrace($e)
- )
- );
-
- $error->setAttribute('type', get_class($e));
-
- $this->currentTestCase->appendChild($error);
-
- $this->testSuiteErrors[$this->testSuiteLevel]++;
- } else {
- $this->attachCurrentTestCase = false;
- }
- }
-
- /**
- * Skipped test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 3.0.0
- */
- public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- if ($this->logIncompleteSkipped && $this->currentTestCase !== null) {
- $error = $this->document->createElement(
- 'error',
- PHPUnit_Util_XML::prepareString(
- "Skipped Test\n" .
- PHPUnit_Util_Filter::getFilteredStacktrace($e)
- )
- );
-
- $error->setAttribute('type', get_class($e));
-
- $this->currentTestCase->appendChild($error);
-
- $this->testSuiteErrors[$this->testSuiteLevel]++;
- } else {
- $this->attachCurrentTestCase = false;
- }
- }
-
- /**
- * A testsuite started.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- $testSuite = $this->document->createElement('testsuite');
- $testSuite->setAttribute('name', $suite->getName());
-
- if (class_exists($suite->getName(), false)) {
- try {
- $class = new ReflectionClass($suite->getName());
-
- $testSuite->setAttribute('file', $class->getFileName());
- } catch (ReflectionException $e) {
- }
- }
-
- if ($this->testSuiteLevel > 0) {
- $this->testSuites[$this->testSuiteLevel]->appendChild($testSuite);
- } else {
- $this->root->appendChild($testSuite);
- }
-
- $this->testSuiteLevel++;
- $this->testSuites[$this->testSuiteLevel] = $testSuite;
- $this->testSuiteTests[$this->testSuiteLevel] = 0;
- $this->testSuiteAssertions[$this->testSuiteLevel] = 0;
- $this->testSuiteErrors[$this->testSuiteLevel] = 0;
- $this->testSuiteFailures[$this->testSuiteLevel] = 0;
- $this->testSuiteTimes[$this->testSuiteLevel] = 0;
- }
-
- /**
- * A testsuite ended.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- $this->testSuites[$this->testSuiteLevel]->setAttribute(
- 'tests',
- $this->testSuiteTests[$this->testSuiteLevel]
- );
-
- $this->testSuites[$this->testSuiteLevel]->setAttribute(
- 'assertions',
- $this->testSuiteAssertions[$this->testSuiteLevel]
- );
-
- $this->testSuites[$this->testSuiteLevel]->setAttribute(
- 'failures',
- $this->testSuiteFailures[$this->testSuiteLevel]
- );
-
- $this->testSuites[$this->testSuiteLevel]->setAttribute(
- 'errors',
- $this->testSuiteErrors[$this->testSuiteLevel]
- );
-
- $this->testSuites[$this->testSuiteLevel]->setAttribute(
- 'time',
- sprintf('%F', $this->testSuiteTimes[$this->testSuiteLevel])
- );
-
- if ($this->testSuiteLevel > 1) {
- $this->testSuiteTests[$this->testSuiteLevel - 1] += $this->testSuiteTests[$this->testSuiteLevel];
- $this->testSuiteAssertions[$this->testSuiteLevel - 1] += $this->testSuiteAssertions[$this->testSuiteLevel];
- $this->testSuiteErrors[$this->testSuiteLevel - 1] += $this->testSuiteErrors[$this->testSuiteLevel];
- $this->testSuiteFailures[$this->testSuiteLevel - 1] += $this->testSuiteFailures[$this->testSuiteLevel];
- $this->testSuiteTimes[$this->testSuiteLevel - 1] += $this->testSuiteTimes[$this->testSuiteLevel];
- }
-
- $this->testSuiteLevel--;
- }
-
- /**
- * A test started.
- *
- * @param PHPUnit_Framework_Test $test
- */
- public function startTest(PHPUnit_Framework_Test $test)
- {
- $testCase = $this->document->createElement('testcase');
- $testCase->setAttribute('name', $test->getName());
-
- if ($test instanceof PHPUnit_Framework_TestCase) {
- $class = new ReflectionClass($test);
- $methodName = $test->getName();
-
- if ($class->hasMethod($methodName)) {
- $method = $class->getMethod($test->getName());
-
- $testCase->setAttribute('class', $class->getName());
- $testCase->setAttribute('file', $class->getFileName());
- $testCase->setAttribute('line', $method->getStartLine());
- }
- }
-
- $this->currentTestCase = $testCase;
- }
-
- /**
- * A test ended.
- *
- * @param PHPUnit_Framework_Test $test
- * @param float $time
- */
- public function endTest(PHPUnit_Framework_Test $test, $time)
- {
- if ($this->attachCurrentTestCase) {
- if ($test instanceof PHPUnit_Framework_TestCase) {
- $numAssertions = $test->getNumAssertions();
- $this->testSuiteAssertions[$this->testSuiteLevel] += $numAssertions;
-
- $this->currentTestCase->setAttribute(
- 'assertions',
- $numAssertions
- );
- }
-
- $this->currentTestCase->setAttribute(
- 'time',
- sprintf('%F', $time)
- );
-
- $this->testSuites[$this->testSuiteLevel]->appendChild(
- $this->currentTestCase
- );
-
- $this->testSuiteTests[$this->testSuiteLevel]++;
- $this->testSuiteTimes[$this->testSuiteLevel] += $time;
-
- if (method_exists($test, 'hasOutput') && $test->hasOutput()) {
- $systemOut = $this->document->createElement('system-out');
- $systemOut->appendChild(
- $this->document->createTextNode($test->getActualOutput())
- );
- $this->currentTestCase->appendChild($systemOut);
- }
- }
-
- $this->attachCurrentTestCase = true;
- $this->currentTestCase = null;
- }
-
- /**
- * Returns the XML as a string.
- *
- * @return string
- *
- * @since Method available since Release 2.2.0
- */
- public function getXML()
- {
- return $this->document->saveXML();
- }
-
- /**
- * Enables or disables the writing of the document
- * in flush().
- *
- * This is a "hack" needed for the integration of
- * PHPUnit with Phing.
- *
- * @return string
- *
- * @since Method available since Release 2.2.0
- */
- public function setWriteDocument($flag)
- {
- if (is_bool($flag)) {
- $this->writeDocument = $flag;
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Log/TAP.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Log/TAP.php
deleted file mode 100644
index bcd587f4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Log/TAP.php
+++ /dev/null
@@ -1,257 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A TestListener that generates a logfile of the
- * test execution using the Test Anything Protocol (TAP).
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Util_Log_TAP extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
-{
- /**
- * @var int
- */
- protected $testNumber = 0;
-
- /**
- * @var int
- */
- protected $testSuiteLevel = 0;
-
- /**
- * @var bool
- */
- protected $testSuccessful = true;
-
- /**
- * Constructor.
- *
- * @param mixed $out
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.3.4
- */
- public function __construct($out = null)
- {
- parent::__construct($out);
- $this->write("TAP version 13\n");
- }
-
- /**
- * An error occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->writeNotOk($test, 'Error');
- }
-
- /**
- * A failure occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
- * @param float $time
- */
- public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
- {
- $this->writeNotOk($test, 'Failure');
-
- $message = explode(
- "\n",
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- $diagnostic = array(
- 'message' => $message[0],
- 'severity' => 'fail'
- );
-
- if ($e instanceof PHPUnit_Framework_ExpectationFailedException) {
- $cf = $e->getComparisonFailure();
-
- if ($cf !== null) {
- $diagnostic['data'] = array(
- 'got' => $cf->getActual(),
- 'expected' => $cf->getExpected()
- );
- }
- }
-
- $yaml = new Symfony\Component\Yaml\Dumper;
-
- $this->write(
- sprintf(
- " ---\n%s ...\n",
- $yaml->dump($diagnostic, 2, 2)
- )
- );
- }
-
- /**
- * Incomplete test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->writeNotOk($test, '', 'TODO Incomplete Test');
- }
-
- /**
- * Risky test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 4.0.0
- */
- public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->write(
- sprintf(
- "ok %d - # RISKY%s\n",
- $this->testNumber,
- $e->getMessage() != '' ? ' ' . $e->getMessage() : ''
- )
- );
-
- $this->testSuccessful = false;
- }
-
- /**
- * Skipped test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 3.0.0
- */
- public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->write(
- sprintf(
- "ok %d - # SKIP%s\n",
- $this->testNumber,
- $e->getMessage() != '' ? ' ' . $e->getMessage() : ''
- )
- );
-
- $this->testSuccessful = false;
- }
-
- /**
- * A testsuite started.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- */
- public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- $this->testSuiteLevel++;
- }
-
- /**
- * A testsuite ended.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- */
- public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- $this->testSuiteLevel--;
-
- if ($this->testSuiteLevel == 0) {
- $this->write(sprintf("1..%d\n", $this->testNumber));
- }
- }
-
- /**
- * A test started.
- *
- * @param PHPUnit_Framework_Test $test
- */
- public function startTest(PHPUnit_Framework_Test $test)
- {
- $this->testNumber++;
- $this->testSuccessful = true;
- }
-
- /**
- * A test ended.
- *
- * @param PHPUnit_Framework_Test $test
- * @param float $time
- */
- public function endTest(PHPUnit_Framework_Test $test, $time)
- {
- if ($this->testSuccessful === true) {
- $this->write(
- sprintf(
- "ok %d - %s\n",
- $this->testNumber,
- PHPUnit_Util_Test::describe($test)
- )
- );
- }
-
- $this->writeDiagnostics($test);
- }
-
- /**
- * @param PHPUnit_Framework_Test $test
- * @param string $prefix
- * @param string $directive
- */
- protected function writeNotOk(PHPUnit_Framework_Test $test, $prefix = '', $directive = '')
- {
- $this->write(
- sprintf(
- "not ok %d - %s%s%s\n",
- $this->testNumber,
- $prefix != '' ? $prefix . ': ' : '',
- PHPUnit_Util_Test::describe($test),
- $directive != '' ? ' # ' . $directive : ''
- )
- );
-
- $this->testSuccessful = false;
- }
-
- /**
- * @param PHPUnit_Framework_Test $test
- */
- private function writeDiagnostics(PHPUnit_Framework_Test $test)
- {
- if (!$test instanceof PHPUnit_Framework_TestCase) {
- return;
- }
-
- if (!$test->hasOutput()) {
- return;
- }
-
- foreach (explode("\n", trim($test->getActualOutput())) as $line) {
- $this->write(
- sprintf(
- "# %s\n",
- $line
- )
- );
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/PHP.php b/www/wiki/vendor/phpunit/phpunit/src/Util/PHP.php
deleted file mode 100644
index 84c2ead7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/PHP.php
+++ /dev/null
@@ -1,227 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Utility methods for PHP sub-processes.
- *
- * @since Class available since Release 3.4.0
- */
-abstract class PHPUnit_Util_PHP
-{
- /**
- * @return PHPUnit_Util_PHP
- *
- * @since Method available since Release 3.5.12
- */
- public static function factory()
- {
- if (DIRECTORY_SEPARATOR == '\\') {
- return new PHPUnit_Util_PHP_Windows;
- }
-
- return new PHPUnit_Util_PHP_Default;
- }
-
- /**
- * Runs a single test in a separate PHP process.
- *
- * @param string $job
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_TestResult $result
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function runTestJob($job, PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result)
- {
- $result->startTest($test);
-
- $_result = $this->runJob($job);
-
- $this->processChildResult(
- $test,
- $result,
- $_result['stdout'],
- $_result['stderr']
- );
- }
-
- /**
- * Runs a single job (PHP code) using a separate PHP process.
- *
- * @param string $job
- * @param array $settings
- *
- * @return array
- *
- * @throws PHPUnit_Framework_Exception
- */
- abstract public function runJob($job, array $settings = array());
-
- /**
- * @param array $settings
- *
- * @return string
- *
- * @since Method available since Release 4.0.0
- */
- protected function settingsToParameters(array $settings)
- {
- $buffer = '';
-
- foreach ($settings as $setting) {
- $buffer .= ' -d ' . $setting;
- }
-
- return $buffer;
- }
-
- /**
- * Processes the TestResult object from an isolated process.
- *
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_TestResult $result
- * @param string $stdout
- * @param string $stderr
- *
- * @since Method available since Release 3.5.0
- */
- private function processChildResult(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result, $stdout, $stderr)
- {
- $time = 0;
-
- if (!empty($stderr)) {
- $result->addError(
- $test,
- new PHPUnit_Framework_Exception(trim($stderr)),
- $time
- );
- } else {
- set_error_handler(function ($errno, $errstr, $errfile, $errline) {
- throw new ErrorException($errstr, $errno, $errno, $errfile, $errline);
- });
- try {
- if (strpos($stdout, "#!/usr/bin/env php\n") === 0) {
- $stdout = substr($stdout, 19);
- }
-
- $childResult = unserialize(str_replace("#!/usr/bin/env php\n", '', $stdout));
- restore_error_handler();
- } catch (ErrorException $e) {
- restore_error_handler();
- $childResult = false;
-
- $result->addError(
- $test,
- new PHPUnit_Framework_Exception(trim($stdout), 0, $e),
- $time
- );
- }
-
- if ($childResult !== false) {
- if (!empty($childResult['output'])) {
- $output = $childResult['output'];
- }
-
- $test->setResult($childResult['testResult']);
- $test->addToAssertionCount($childResult['numAssertions']);
-
- $childResult = $childResult['result'];
-
- if ($result->getCollectCodeCoverageInformation()) {
- $result->getCodeCoverage()->merge(
- $childResult->getCodeCoverage()
- );
- }
-
- $time = $childResult->time();
- $notImplemented = $childResult->notImplemented();
- $risky = $childResult->risky();
- $skipped = $childResult->skipped();
- $errors = $childResult->errors();
- $failures = $childResult->failures();
-
- if (!empty($notImplemented)) {
- $result->addError(
- $test,
- $this->getException($notImplemented[0]),
- $time
- );
- } elseif (!empty($risky)) {
- $result->addError(
- $test,
- $this->getException($risky[0]),
- $time
- );
- } elseif (!empty($skipped)) {
- $result->addError(
- $test,
- $this->getException($skipped[0]),
- $time
- );
- } elseif (!empty($errors)) {
- $result->addError(
- $test,
- $this->getException($errors[0]),
- $time
- );
- } elseif (!empty($failures)) {
- $result->addFailure(
- $test,
- $this->getException($failures[0]),
- $time
- );
- }
- }
- }
-
- $result->endTest($test, $time);
-
- if (!empty($output)) {
- print $output;
- }
- }
-
- /**
- * Gets the thrown exception from a PHPUnit_Framework_TestFailure.
- *
- * @param PHPUnit_Framework_TestFailure $error
- *
- * @return Exception
- *
- * @since Method available since Release 3.6.0
- * @see https://github.com/sebastianbergmann/phpunit/issues/74
- */
- private function getException(PHPUnit_Framework_TestFailure $error)
- {
- $exception = $error->thrownException();
-
- if ($exception instanceof __PHP_Incomplete_Class) {
- $exceptionArray = array();
- foreach ((array) $exception as $key => $value) {
- $key = substr($key, strrpos($key, "\0") + 1);
- $exceptionArray[$key] = $value;
- }
-
- $exception = new PHPUnit_Framework_SyntheticError(
- sprintf(
- '%s: %s',
- $exceptionArray['_PHP_Incomplete_Class_Name'],
- $exceptionArray['message']
- ),
- $exceptionArray['code'],
- $exceptionArray['file'],
- $exceptionArray['line'],
- $exceptionArray['trace']
- );
- }
-
- return $exception;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Default.php b/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Default.php
deleted file mode 100644
index 658cf5dd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Default.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Environment\Runtime;
-
-/**
- * Default utility for PHP sub-processes.
- *
- * @since Class available since Release 3.5.12
- */
-class PHPUnit_Util_PHP_Default extends PHPUnit_Util_PHP
-{
- /**
- * Runs a single job (PHP code) using a separate PHP process.
- *
- * @param string $job
- * @param array $settings
- *
- * @return array
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function runJob($job, array $settings = array())
- {
- $runtime = new Runtime;
- $runtime = $runtime->getBinary() . $this->settingsToParameters($settings);
-
- if ('phpdbg' === PHP_SAPI) {
- $runtime .= ' -qrr ' . escapeshellarg(__DIR__ . '/eval-stdin.php');
- }
-
- $process = proc_open(
- $runtime,
- array(
- 0 => array('pipe', 'r'),
- 1 => array('pipe', 'w'),
- 2 => array('pipe', 'w')
- ),
- $pipes
- );
-
- if (!is_resource($process)) {
- throw new PHPUnit_Framework_Exception(
- 'Unable to spawn worker process'
- );
- }
-
- $this->process($pipes[0], $job);
- fclose($pipes[0]);
-
- $stdout = stream_get_contents($pipes[1]);
- fclose($pipes[1]);
-
- $stderr = stream_get_contents($pipes[2]);
- fclose($pipes[2]);
-
- proc_close($process);
- $this->cleanup();
-
- return array('stdout' => $stdout, 'stderr' => $stderr);
- }
-
- /**
- * @param resource $pipe
- * @param string $job
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.5.12
- */
- protected function process($pipe, $job)
- {
- fwrite($pipe, $job);
- }
-
- /**
- * @since Method available since Release 3.5.12
- */
- protected function cleanup()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Template/TestCaseMethod.tpl.dist b/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Template/TestCaseMethod.tpl.dist
deleted file mode 100644
index b48f354c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Template/TestCaseMethod.tpl.dist
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-if (!defined('STDOUT')) {
- // php://stdout does not obey output buffering. Any output would break
- // unserialization of child process results in the parent process.
- define('STDOUT', fopen('php://temp', 'w+b'));
- define('STDERR', fopen('php://stderr', 'wb'));
-}
-
-{iniSettings}
-ini_set('display_errors', 'stderr');
-set_include_path('{include_path}');
-
-$composerAutoload = {composerAutoload};
-$phar = {phar};
-
-ob_start();
-
-if ($composerAutoload) {
- require_once $composerAutoload;
- define('PHPUNIT_COMPOSER_INSTALL', $composerAutoload);
-} else if ($phar) {
- require $phar;
-}
-
-function __phpunit_run_isolated_test()
-{
- if (!class_exists('{className}')) {
- require_once '{filename}';
- }
-
- $result = new PHPUnit_Framework_TestResult;
-
- if ({collectCodeCoverageInformation}) {
- $result->setCodeCoverage(
- new PHP_CodeCoverage(
- null,
- unserialize('{codeCoverageFilter}')
- )
- );
- }
-
- $result->beStrictAboutTestsThatDoNotTestAnything({isStrictAboutTestsThatDoNotTestAnything});
- $result->beStrictAboutOutputDuringTests({isStrictAboutOutputDuringTests});
- $result->beStrictAboutTestSize({isStrictAboutTestSize});
- $result->beStrictAboutTodoAnnotatedTests({isStrictAboutTodoAnnotatedTests});
-
- $test = new {className}('{methodName}', unserialize('{data}'), '{dataName}');
- $test->setDependencyInput(unserialize('{dependencyInput}'));
- $test->setInIsolation(TRUE);
-
- ob_end_clean();
- $test->run($result);
- $output = '';
- if (!$test->hasExpectationOnOutput()) {
- $output = $test->getActualOutput();
- }
-
- @rewind(STDOUT); /* @ as not every STDOUT target stream is rewindable */
- if ($stdout = stream_get_contents(STDOUT)) {
- $output = $stdout . $output;
- }
-
- print serialize(
- array(
- 'testResult' => $test->getResult(),
- 'numAssertions' => $test->getNumAssertions(),
- 'result' => $result,
- 'output' => $output
- )
- );
-}
-
-$configurationFilePath = '{configurationFilePath}';
-
-if ('' !== $configurationFilePath) {
- $configuration = PHPUnit_Util_Configuration::getInstance($configurationFilePath);
- $configuration->handlePHPConfiguration();
- unset($configuration);
-}
-
-function __phpunit_error_handler($errno, $errstr, $errfile, $errline, $errcontext)
-{
- return true;
-}
-
-set_error_handler("__phpunit_error_handler");
-
-{constants}
-{included_files}
-{globals}
-
-restore_error_handler();
-
-if (isset($GLOBALS['__PHPUNIT_BOOTSTRAP'])) {
- require_once $GLOBALS['__PHPUNIT_BOOTSTRAP'];
- unset($GLOBALS['__PHPUNIT_BOOTSTRAP']);
-}
-
-__phpunit_run_isolated_test();
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Windows.php b/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Windows.php
deleted file mode 100644
index 6587aae8..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/Windows.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use SebastianBergmann\Environment\Runtime;
-
-/**
- * Windows utility for PHP sub-processes.
- *
- * @since Class available since Release 3.5.12
- */
-class PHPUnit_Util_PHP_Windows extends PHPUnit_Util_PHP_Default
-{
- /**
- * @var string
- */
- private $tempFile;
-
- /**
- * {@inheritdoc}
- *
- * Reading from STDOUT or STDERR hangs forever on Windows if the output is
- * too large.
- *
- * @see https://bugs.php.net/bug.php?id=51800
- */
- public function runJob($job, array $settings = array())
- {
- $runtime = new Runtime;
-
- if (false === $stdout_handle = tmpfile()) {
- throw new PHPUnit_Framework_Exception(
- 'A temporary file could not be created; verify that your TEMP environment variable is writable'
- );
- }
-
- $process = proc_open(
- $runtime->getBinary() . $this->settingsToParameters($settings),
- array(
- 0 => array('pipe', 'r'),
- 1 => $stdout_handle,
- 2 => array('pipe', 'w')
- ),
- $pipes
- );
-
- if (!is_resource($process)) {
- throw new PHPUnit_Framework_Exception(
- 'Unable to spawn worker process'
- );
- }
-
- $this->process($pipes[0], $job);
- fclose($pipes[0]);
-
- $stderr = stream_get_contents($pipes[2]);
- fclose($pipes[2]);
-
- proc_close($process);
-
- rewind($stdout_handle);
- $stdout = stream_get_contents($stdout_handle);
- fclose($stdout_handle);
-
- $this->cleanup();
-
- return array('stdout' => $stdout, 'stderr' => $stderr);
- }
-
- /**
- * @param resource $pipe
- * @param string $job
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.5.12
- */
- protected function process($pipe, $job)
- {
- if (!($this->tempFile = tempnam(sys_get_temp_dir(), 'PHPUnit')) ||
- file_put_contents($this->tempFile, $job) === false) {
- throw new PHPUnit_Framework_Exception(
- 'Unable to write temporary file'
- );
- }
-
- fwrite(
- $pipe,
- '<?php require_once ' . var_export($this->tempFile, true) . '; ?>'
- );
- }
-
- /**
- * @since Method available since Release 3.5.12
- */
- protected function cleanup()
- {
- unlink($this->tempFile);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php b/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
deleted file mode 100644
index 3b3a6d03..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-
-eval('?>' . file_get_contents('php://stdin'));
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Printer.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Printer.php
deleted file mode 100644
index a22f8622..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Printer.php
+++ /dev/null
@@ -1,172 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Utility class that can print to STDOUT or write to a file.
- *
- * @since Class available since Release 2.0.0
- */
-class PHPUnit_Util_Printer
-{
- /**
- * If true, flush output after every write.
- *
- * @var bool
- */
- protected $autoFlush = false;
-
- /**
- * @var resource
- */
- protected $out;
-
- /**
- * @var string
- */
- protected $outTarget;
-
- /**
- * @var bool
- */
- protected $printsHTML = false;
-
- /**
- * Constructor.
- *
- * @param mixed $out
- *
- * @throws PHPUnit_Framework_Exception
- */
- public function __construct($out = null)
- {
- if ($out !== null) {
- if (is_string($out)) {
- if (strpos($out, 'socket://') === 0) {
- $out = explode(':', str_replace('socket://', '', $out));
-
- if (sizeof($out) != 2) {
- throw new PHPUnit_Framework_Exception;
- }
-
- $this->out = fsockopen($out[0], $out[1]);
- } else {
- if (strpos($out, 'php://') === false &&
- !is_dir(dirname($out))) {
- mkdir(dirname($out), 0777, true);
- }
-
- $this->out = fopen($out, 'wt');
- }
-
- $this->outTarget = $out;
- } else {
- $this->out = $out;
- }
- }
- }
-
- /**
- * Flush buffer, optionally tidy up HTML, and close output if it's not to a php stream
- */
- public function flush()
- {
- if ($this->out && strncmp($this->outTarget, 'php://', 6) !== 0) {
- fclose($this->out);
- }
-
- if ($this->printsHTML === true &&
- $this->outTarget !== null &&
- strpos($this->outTarget, 'php://') !== 0 &&
- strpos($this->outTarget, 'socket://') !== 0 &&
- extension_loaded('tidy')) {
- file_put_contents(
- $this->outTarget,
- tidy_repair_file(
- $this->outTarget,
- array('indent' => true, 'wrap' => 0),
- 'utf8'
- )
- );
- }
- }
-
- /**
- * Performs a safe, incremental flush.
- *
- * Do not confuse this function with the flush() function of this class,
- * since the flush() function may close the file being written to, rendering
- * the current object no longer usable.
- *
- * @since Method available since Release 3.3.0
- */
- public function incrementalFlush()
- {
- if ($this->out) {
- fflush($this->out);
- } else {
- flush();
- }
- }
-
- /**
- * @param string $buffer
- */
- public function write($buffer)
- {
- if ($this->out) {
- fwrite($this->out, $buffer);
-
- if ($this->autoFlush) {
- $this->incrementalFlush();
- }
- } else {
- if (PHP_SAPI != 'cli' && PHP_SAPI != 'phpdbg') {
- $buffer = htmlspecialchars($buffer, ENT_SUBSTITUTE);
- }
-
- print $buffer;
-
- if ($this->autoFlush) {
- $this->incrementalFlush();
- }
- }
- }
-
- /**
- * Check auto-flush mode.
- *
- * @return bool
- *
- * @since Method available since Release 3.3.0
- */
- public function getAutoFlush()
- {
- return $this->autoFlush;
- }
-
- /**
- * Set auto-flushing mode.
- *
- * If set, *incremental* flushes will be done after each write. This should
- * not be confused with the different effects of this class' flush() method.
- *
- * @param bool $autoFlush
- *
- * @since Method available since Release 3.3.0
- */
- public function setAutoFlush($autoFlush)
- {
- if (is_bool($autoFlush)) {
- $this->autoFlush = $autoFlush;
- } else {
- throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
- }
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Regex.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Regex.php
deleted file mode 100644
index 3624de15..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Regex.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Error handler that converts PHP errors and warnings to exceptions.
- *
- * @since Class available since Release 4.2.0
- */
-class PHPUnit_Util_Regex
-{
- public static function pregMatchSafe($pattern, $subject, $matches = null, $flags = 0, $offset = 0)
- {
- $handler_terminator = PHPUnit_Util_ErrorHandler::handleErrorOnce(E_WARNING);
- $match = preg_match($pattern, $subject, $matches, $flags, $offset);
- $handler_terminator(); // cleaning
-
- return $match;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/String.php b/www/wiki/vendor/phpunit/phpunit/src/Util/String.php
deleted file mode 100644
index 18f85938..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/String.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * String helpers.
- *
- * @since Class available since Release 3.6.0
- */
-class PHPUnit_Util_String
-{
- /**
- * Converts a string to UTF-8 encoding.
- *
- * @param string $string
- *
- * @return string
- */
- public static function convertToUtf8($string)
- {
- if (!self::isUtf8($string)) {
- if (function_exists('mb_convert_encoding')) {
- $string = mb_convert_encoding($string, 'UTF-8');
- } else {
- $string = utf8_encode($string);
- }
- }
-
- return $string;
- }
-
- /**
- * Checks a string for UTF-8 encoding.
- *
- * @param string $string
- *
- * @return bool
- */
- protected static function isUtf8($string)
- {
- $length = strlen($string);
-
- for ($i = 0; $i < $length; $i++) {
- if (ord($string[$i]) < 0x80) {
- $n = 0;
- } elseif ((ord($string[$i]) & 0xE0) == 0xC0) {
- $n = 1;
- } elseif ((ord($string[$i]) & 0xF0) == 0xE0) {
- $n = 2;
- } elseif ((ord($string[$i]) & 0xF0) == 0xF0) {
- $n = 3;
- } else {
- return false;
- }
-
- for ($j = 0; $j < $n; $j++) {
- if ((++$i == $length) || ((ord($string[$i]) & 0xC0) != 0x80)) {
- return false;
- }
- }
- }
-
- return true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Test.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Test.php
deleted file mode 100644
index 74203b76..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Test.php
+++ /dev/null
@@ -1,1098 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-if (!function_exists('trait_exists')) {
- function trait_exists($traitname, $autoload = true)
- {
- return false;
- }
-}
-
-/**
- * Test helpers.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Util_Test
-{
- const REGEX_DATA_PROVIDER = '/@dataProvider\s+([a-zA-Z0-9._:-\\\\x7f-\xff]+)/';
- const REGEX_TEST_WITH = '/@testWith\s+/';
- const REGEX_EXPECTED_EXCEPTION = '(@expectedException\s+([:.\w\\\\x7f-\xff]+)(?:[\t ]+(\S*))?(?:[\t ]+(\S*))?\s*$)m';
- const REGEX_REQUIRES_VERSION = '/@requires\s+(?P<name>PHP(?:Unit)?)\s+(?P<value>[\d\.-]+(dev|(RC|alpha|beta)[\d\.])?)[ \t]*\r?$/m';
- const REGEX_REQUIRES_OS = '/@requires\s+OS\s+(?P<value>.+?)[ \t]*\r?$/m';
- const REGEX_REQUIRES = '/@requires\s+(?P<name>function|extension)\s+(?P<value>([^ ]+?))[ \t]*\r?$/m';
-
- const UNKNOWN = -1;
- const SMALL = 0;
- const MEDIUM = 1;
- const LARGE = 2;
-
- private static $annotationCache = array();
-
- private static $hookMethods = array();
-
- /**
- * @param PHPUnit_Framework_Test $test
- * @param bool $asString
- *
- * @return mixed
- */
- public static function describe(PHPUnit_Framework_Test $test, $asString = true)
- {
- if ($asString) {
- if ($test instanceof PHPUnit_Framework_SelfDescribing) {
- return $test->toString();
- } else {
- return get_class($test);
- }
- } else {
- if ($test instanceof PHPUnit_Framework_TestCase) {
- return array(
- get_class($test), $test->getName()
- );
- } elseif ($test instanceof PHPUnit_Framework_SelfDescribing) {
- return array('', $test->toString());
- } else {
- return array('', get_class($test));
- }
- }
- }
-
- /**
- * @param string $className
- * @param string $methodName
- *
- * @return array|bool
- *
- * @throws PHPUnit_Framework_CodeCoverageException
- *
- * @since Method available since Release 4.0.0
- */
- public static function getLinesToBeCovered($className, $methodName)
- {
- $annotations = self::parseTestMethodAnnotations(
- $className,
- $methodName
- );
-
- if (isset($annotations['class']['coversNothing']) || isset($annotations['method']['coversNothing'])) {
- return false;
- }
-
- return self::getLinesToBeCoveredOrUsed($className, $methodName, 'covers');
- }
-
- /**
- * Returns lines of code specified with the @uses annotation.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return array
- *
- * @since Method available since Release 4.0.0
- */
- public static function getLinesToBeUsed($className, $methodName)
- {
- return self::getLinesToBeCoveredOrUsed($className, $methodName, 'uses');
- }
-
- /**
- * @param string $className
- * @param string $methodName
- * @param string $mode
- *
- * @return array
- *
- * @throws PHPUnit_Framework_CodeCoverageException
- *
- * @since Method available since Release 4.2.0
- */
- private static function getLinesToBeCoveredOrUsed($className, $methodName, $mode)
- {
- $annotations = self::parseTestMethodAnnotations(
- $className,
- $methodName
- );
-
- $classShortcut = null;
-
- if (!empty($annotations['class'][$mode . 'DefaultClass'])) {
- if (count($annotations['class'][$mode . 'DefaultClass']) > 1) {
- throw new PHPUnit_Framework_CodeCoverageException(
- sprintf(
- 'More than one @%sClass annotation in class or interface "%s".',
- $mode,
- $className
- )
- );
- }
-
- $classShortcut = $annotations['class'][$mode . 'DefaultClass'][0];
- }
-
- $list = array();
-
- if (isset($annotations['class'][$mode])) {
- $list = $annotations['class'][$mode];
- }
-
- if (isset($annotations['method'][$mode])) {
- $list = array_merge($list, $annotations['method'][$mode]);
- }
-
- $codeList = array();
-
- foreach (array_unique($list) as $element) {
- if ($classShortcut && strncmp($element, '::', 2) === 0) {
- $element = $classShortcut . $element;
- }
-
- $element = preg_replace('/[\s()]+$/', '', $element);
- $element = explode(' ', $element);
- $element = $element[0];
-
- $codeList = array_merge(
- $codeList,
- self::resolveElementToReflectionObjects($element)
- );
- }
-
- return self::resolveReflectionObjectsToLines($codeList);
- }
-
- /**
- * Returns the requirements for a test.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return array
- *
- * @since Method available since Release 3.6.0
- */
- public static function getRequirements($className, $methodName)
- {
- $reflector = new ReflectionClass($className);
- $docComment = $reflector->getDocComment();
- $reflector = new ReflectionMethod($className, $methodName);
- $docComment .= "\n" . $reflector->getDocComment();
- $requires = array();
-
- if ($count = preg_match_all(self::REGEX_REQUIRES_OS, $docComment, $matches)) {
- $requires['OS'] = sprintf(
- '/%s/i',
- addcslashes($matches['value'][$count - 1], '/')
- );
- }
- if ($count = preg_match_all(self::REGEX_REQUIRES_VERSION, $docComment, $matches)) {
- for ($i = 0; $i < $count; $i++) {
- $requires[$matches['name'][$i]] = $matches['value'][$i];
- }
- }
-
- // https://bugs.php.net/bug.php?id=63055
- $matches = array();
-
- if ($count = preg_match_all(self::REGEX_REQUIRES, $docComment, $matches)) {
- for ($i = 0; $i < $count; $i++) {
- $name = $matches['name'][$i] . 's';
- if (!isset($requires[$name])) {
- $requires[$name] = array();
- }
- $requires[$name][] = $matches['value'][$i];
- }
- }
-
- return $requires;
- }
-
- /**
- * Returns the missing requirements for a test.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return array
- *
- * @since Method available since Release 4.3.0
- */
- public static function getMissingRequirements($className, $methodName)
- {
- $required = static::getRequirements($className, $methodName);
- $missing = array();
-
- if (!empty($required['PHP']) && version_compare(PHP_VERSION, $required['PHP'], '<')) {
- $missing[] = sprintf('PHP %s (or later) is required.', $required['PHP']);
- }
-
- if (!empty($required['PHPUnit'])) {
- $phpunitVersion = PHPUnit_Runner_Version::id();
- if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) {
- $missing[] = sprintf('PHPUnit %s (or later) is required.', $required['PHPUnit']);
- }
- }
-
- if (!empty($required['OS']) && !preg_match($required['OS'], PHP_OS)) {
- $missing[] = sprintf('Operating system matching %s is required.', $required['OS']);
- }
-
- if (!empty($required['functions'])) {
- foreach ($required['functions'] as $function) {
- $pieces = explode('::', $function);
- if (2 === count($pieces) && method_exists($pieces[0], $pieces[1])) {
- continue;
- }
- if (function_exists($function)) {
- continue;
- }
- $missing[] = sprintf('Function %s is required.', $function);
- }
- }
-
- if (!empty($required['extensions'])) {
- foreach ($required['extensions'] as $extension) {
- if (!extension_loaded($extension)) {
- $missing[] = sprintf('Extension %s is required.', $extension);
- }
- }
- }
-
- return $missing;
- }
-
- /**
- * Returns the expected exception for a test.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return array
- *
- * @since Method available since Release 3.3.6
- */
- public static function getExpectedException($className, $methodName)
- {
- $reflector = new ReflectionMethod($className, $methodName);
- $docComment = $reflector->getDocComment();
- $docComment = substr($docComment, 3, -2);
-
- if (preg_match(self::REGEX_EXPECTED_EXCEPTION, $docComment, $matches)) {
- $annotations = self::parseTestMethodAnnotations(
- $className,
- $methodName
- );
-
- $class = $matches[1];
- $code = null;
- $message = '';
- $messageRegExp = '';
-
- if (isset($matches[2])) {
- $message = trim($matches[2]);
- } elseif (isset($annotations['method']['expectedExceptionMessage'])) {
- $message = self::parseAnnotationContent(
- $annotations['method']['expectedExceptionMessage'][0]
- );
- }
-
- if (isset($annotations['method']['expectedExceptionMessageRegExp'])) {
- $messageRegExp = self::parseAnnotationContent(
- $annotations['method']['expectedExceptionMessageRegExp'][0]
- );
- }
-
- if (isset($matches[3])) {
- $code = $matches[3];
- } elseif (isset($annotations['method']['expectedExceptionCode'])) {
- $code = self::parseAnnotationContent(
- $annotations['method']['expectedExceptionCode'][0]
- );
- }
-
- if (is_numeric($code)) {
- $code = (int) $code;
- } elseif (is_string($code) && defined($code)) {
- $code = (int) constant($code);
- }
-
- return array(
- 'class' => $class, 'code' => $code, 'message' => $message, 'message_regex' => $messageRegExp
- );
- }
-
- return false;
- }
-
- /**
- * Parse annotation content to use constant/class constant values
- *
- * Constants are specified using a starting '@'. For example: @ClassName::CONST_NAME
- *
- * If the constant is not found the string is used as is to ensure maximum BC.
- *
- * @param string $message
- *
- * @return string
- */
- private static function parseAnnotationContent($message)
- {
- if (strpos($message, '::') !== false && count(explode('::', $message)) == 2) {
- if (defined($message)) {
- $message = constant($message);
- }
- }
-
- return $message;
- }
-
- /**
- * Returns the provided data for a method.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return array|Iterator when a data provider is specified and exists
- * null when no data provider is specified
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.2.0
- */
- public static function getProvidedData($className, $methodName)
- {
- $reflector = new ReflectionMethod($className, $methodName);
- $docComment = $reflector->getDocComment();
-
- $data = self::getDataFromDataProviderAnnotation($docComment, $className, $methodName);
-
- if ($data === null) {
- $data = self::getDataFromTestWithAnnotation($docComment);
- }
-
- if (is_array($data) && empty($data)) {
- throw new PHPUnit_Framework_SkippedTestError;
- }
-
- if ($data !== null) {
- if (is_object($data)) {
- $data = iterator_to_array($data);
- }
-
- foreach ($data as $key => $value) {
- if (!is_array($value)) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Data set %s is invalid.',
- is_int($key) ? '#' . $key : '"' . $key . '"'
- )
- );
- }
- }
- }
-
- return $data;
- }
-
- /**
- * Returns the provided data for a method.
- *
- * @param string $docComment
- * @param string $className
- * @param string $methodName
- *
- * @return array|Iterator when a data provider is specified and exists
- * null when no data provider is specified
- *
- * @throws PHPUnit_Framework_Exception
- */
- private static function getDataFromDataProviderAnnotation($docComment, $className, $methodName)
- {
- if (preg_match(self::REGEX_DATA_PROVIDER, $docComment, $matches)) {
- $dataProviderMethodNameNamespace = explode('\\', $matches[1]);
- $leaf = explode('::', array_pop($dataProviderMethodNameNamespace));
- $dataProviderMethodName = array_pop($leaf);
-
- if (!empty($dataProviderMethodNameNamespace)) {
- $dataProviderMethodNameNamespace = implode('\\', $dataProviderMethodNameNamespace) . '\\';
- } else {
- $dataProviderMethodNameNamespace = '';
- }
-
- if (!empty($leaf)) {
- $dataProviderClassName = $dataProviderMethodNameNamespace . array_pop($leaf);
- } else {
- $dataProviderClassName = $className;
- }
-
- $dataProviderClass = new ReflectionClass($dataProviderClassName);
- $dataProviderMethod = $dataProviderClass->getMethod(
- $dataProviderMethodName
- );
-
- if ($dataProviderMethod->isStatic()) {
- $object = null;
- } else {
- $object = $dataProviderClass->newInstance();
- }
-
- if ($dataProviderMethod->getNumberOfParameters() == 0) {
- $data = $dataProviderMethod->invoke($object);
- } else {
- $data = $dataProviderMethod->invoke($object, $methodName);
- }
-
- return $data;
- }
- }
-
- /**
- * @param string $docComment full docComment string
- *
- * @return array when @testWith annotation is defined
- * null when @testWith annotation is omitted
- *
- * @throws PHPUnit_Framework_Exception when @testWith annotation is defined but cannot be parsed
- */
- public static function getDataFromTestWithAnnotation($docComment)
- {
- $docComment = self::cleanUpMultiLineAnnotation($docComment);
-
- if (preg_match(self::REGEX_TEST_WITH, $docComment, $matches, PREG_OFFSET_CAPTURE)) {
- $offset = strlen($matches[0][0]) + $matches[0][1];
- $annotationContent = substr($docComment, $offset);
- $data = array();
-
- foreach (explode("\n", $annotationContent) as $candidateRow) {
- $candidateRow = trim($candidateRow);
-
- if ($candidateRow[0] !== '[') {
- break;
- }
-
- $dataSet = json_decode($candidateRow, true);
-
- if (json_last_error() != JSON_ERROR_NONE) {
- $error = function_exists('json_last_error_msg') ? json_last_error_msg() : json_last_error();
-
- throw new PHPUnit_Framework_Exception(
- 'The dataset for the @testWith annotation cannot be parsed: ' . $error
- );
- }
-
- $data[] = $dataSet;
- }
-
- if (!$data) {
- throw new PHPUnit_Framework_Exception('The dataset for the @testWith annotation cannot be parsed.');
- }
-
- return $data;
- }
- }
-
- private static function cleanUpMultiLineAnnotation($docComment)
- {
- //removing initial ' * ' for docComment
- $docComment = preg_replace('/' . '\n' . '\s*' . '\*' . '\s?' . '/', "\n", $docComment);
- $docComment = substr($docComment, 0, -1);
- $docComment = rtrim($docComment, "\n");
-
- return $docComment;
- }
-
- /**
- * @param string $className
- * @param string $methodName
- *
- * @return array
- *
- * @throws ReflectionException
- *
- * @since Method available since Release 3.4.0
- */
- public static function parseTestMethodAnnotations($className, $methodName = '')
- {
- if (!isset(self::$annotationCache[$className])) {
- $class = new ReflectionClass($className);
- self::$annotationCache[$className] = self::parseAnnotations($class->getDocComment());
- }
-
- if (!empty($methodName) && !isset(self::$annotationCache[$className . '::' . $methodName])) {
- try {
- $method = new ReflectionMethod($className, $methodName);
- $annotations = self::parseAnnotations($method->getDocComment());
- } catch (ReflectionException $e) {
- $annotations = array();
- }
- self::$annotationCache[$className . '::' . $methodName] = $annotations;
- }
-
- return array(
- 'class' => self::$annotationCache[$className],
- 'method' => !empty($methodName) ? self::$annotationCache[$className . '::' . $methodName] : array()
- );
- }
-
- /**
- * @param string $docblock
- *
- * @return array
- *
- * @since Method available since Release 3.4.0
- */
- private static function parseAnnotations($docblock)
- {
- $annotations = array();
- // Strip away the docblock header and footer to ease parsing of one line annotations
- $docblock = substr($docblock, 3, -2);
-
- if (preg_match_all('/@(?P<name>[A-Za-z_-]+)(?:[ \t]+(?P<value>.*?))?[ \t]*\r?$/m', $docblock, $matches)) {
- $numMatches = count($matches[0]);
-
- for ($i = 0; $i < $numMatches; ++$i) {
- $annotations[$matches['name'][$i]][] = $matches['value'][$i];
- }
- }
-
- return $annotations;
- }
-
- /**
- * Returns the backup settings for a test.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return array
- *
- * @since Method available since Release 3.4.0
- */
- public static function getBackupSettings($className, $methodName)
- {
- return array(
- 'backupGlobals' => self::getBooleanAnnotationSetting(
- $className,
- $methodName,
- 'backupGlobals'
- ),
- 'backupStaticAttributes' => self::getBooleanAnnotationSetting(
- $className,
- $methodName,
- 'backupStaticAttributes'
- )
- );
- }
-
- /**
- * Returns the dependencies for a test class or method.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return array
- *
- * @since Method available since Release 3.4.0
- */
- public static function getDependencies($className, $methodName)
- {
- $annotations = self::parseTestMethodAnnotations(
- $className,
- $methodName
- );
-
- $dependencies = array();
-
- if (isset($annotations['class']['depends'])) {
- $dependencies = $annotations['class']['depends'];
- }
-
- if (isset($annotations['method']['depends'])) {
- $dependencies = array_merge(
- $dependencies,
- $annotations['method']['depends']
- );
- }
-
- return array_unique($dependencies);
- }
-
- /**
- * Returns the error handler settings for a test.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return bool
- *
- * @since Method available since Release 3.4.0
- */
- public static function getErrorHandlerSettings($className, $methodName)
- {
- return self::getBooleanAnnotationSetting(
- $className,
- $methodName,
- 'errorHandler'
- );
- }
-
- /**
- * Returns the groups for a test class or method.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return array
- *
- * @since Method available since Release 3.2.0
- */
- public static function getGroups($className, $methodName = '')
- {
- $annotations = self::parseTestMethodAnnotations(
- $className,
- $methodName
- );
-
- $groups = array();
-
- if (isset($annotations['method']['author'])) {
- $groups = $annotations['method']['author'];
- } elseif (isset($annotations['class']['author'])) {
- $groups = $annotations['class']['author'];
- }
-
- if (isset($annotations['class']['group'])) {
- $groups = array_merge($groups, $annotations['class']['group']);
- }
-
- if (isset($annotations['method']['group'])) {
- $groups = array_merge($groups, $annotations['method']['group']);
- }
-
- if (isset($annotations['class']['ticket'])) {
- $groups = array_merge($groups, $annotations['class']['ticket']);
- }
-
- if (isset($annotations['method']['ticket'])) {
- $groups = array_merge($groups, $annotations['method']['ticket']);
- }
-
- foreach (array('method', 'class') as $element) {
- foreach (array('small', 'medium', 'large') as $size) {
- if (isset($annotations[$element][$size])) {
- $groups[] = $size;
- break 2;
- }
-
- if (isset($annotations[$element][$size])) {
- $groups[] = $size;
- break 2;
- }
- }
- }
-
- return array_unique($groups);
- }
-
- /**
- * Returns the size of the test.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return int
- *
- * @since Method available since Release 3.6.0
- */
- public static function getSize($className, $methodName)
- {
- $groups = array_flip(self::getGroups($className, $methodName));
- $size = self::UNKNOWN;
- $class = new ReflectionClass($className);
-
- if (isset($groups['large']) ||
- (class_exists('PHPUnit_Extensions_Database_TestCase', false) &&
- $class->isSubclassOf('PHPUnit_Extensions_Database_TestCase')) ||
- (class_exists('PHPUnit_Extensions_SeleniumTestCase', false) &&
- $class->isSubclassOf('PHPUnit_Extensions_SeleniumTestCase'))) {
- $size = self::LARGE;
- } elseif (isset($groups['medium'])) {
- $size = self::MEDIUM;
- } elseif (isset($groups['small'])) {
- $size = self::SMALL;
- }
-
- return $size;
- }
-
- /**
- * Returns the tickets for a test class or method.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return array
- *
- * @since Method available since Release 3.4.0
- */
- public static function getTickets($className, $methodName)
- {
- $annotations = self::parseTestMethodAnnotations(
- $className,
- $methodName
- );
-
- $tickets = array();
-
- if (isset($annotations['class']['ticket'])) {
- $tickets = $annotations['class']['ticket'];
- }
-
- if (isset($annotations['method']['ticket'])) {
- $tickets = array_merge($tickets, $annotations['method']['ticket']);
- }
-
- return array_unique($tickets);
- }
-
- /**
- * Returns the process isolation settings for a test.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return bool
- *
- * @since Method available since Release 3.4.1
- */
- public static function getProcessIsolationSettings($className, $methodName)
- {
- $annotations = self::parseTestMethodAnnotations(
- $className,
- $methodName
- );
-
- if (isset($annotations['class']['runTestsInSeparateProcesses']) ||
- isset($annotations['method']['runInSeparateProcess'])) {
- return true;
- } else {
- return false;
- }
- }
-
- /**
- * Returns the preserve global state settings for a test.
- *
- * @param string $className
- * @param string $methodName
- *
- * @return bool
- *
- * @since Method available since Release 3.4.0
- */
- public static function getPreserveGlobalStateSettings($className, $methodName)
- {
- return self::getBooleanAnnotationSetting(
- $className,
- $methodName,
- 'preserveGlobalState'
- );
- }
-
- /**
- * @param string $className
- *
- * @return array
- *
- * @since Method available since Release 4.0.8
- */
- public static function getHookMethods($className)
- {
- if (!class_exists($className, false)) {
- return self::emptyHookMethodsArray();
- }
-
- if (!isset(self::$hookMethods[$className])) {
- self::$hookMethods[$className] = self::emptyHookMethodsArray();
-
- try {
- $class = new ReflectionClass($className);
-
- foreach ($class->getMethods() as $method) {
- if (self::isBeforeClassMethod($method)) {
- self::$hookMethods[$className]['beforeClass'][] = $method->getName();
- }
-
- if (self::isBeforeMethod($method)) {
- self::$hookMethods[$className]['before'][] = $method->getName();
- }
-
- if (self::isAfterMethod($method)) {
- self::$hookMethods[$className]['after'][] = $method->getName();
- }
-
- if (self::isAfterClassMethod($method)) {
- self::$hookMethods[$className]['afterClass'][] = $method->getName();
- }
- }
- } catch (ReflectionException $e) {
- }
- }
-
- return self::$hookMethods[$className];
- }
-
- /**
- * @return array
- *
- * @since Method available since Release 4.0.9
- */
- private static function emptyHookMethodsArray()
- {
- return array(
- 'beforeClass' => array('setUpBeforeClass'),
- 'before' => array('setUp'),
- 'after' => array('tearDown'),
- 'afterClass' => array('tearDownAfterClass')
- );
- }
-
- /**
- * @param string $className
- * @param string $methodName
- * @param string $settingName
- *
- * @return bool
- *
- * @since Method available since Release 3.4.0
- */
- private static function getBooleanAnnotationSetting($className, $methodName, $settingName)
- {
- $annotations = self::parseTestMethodAnnotations(
- $className,
- $methodName
- );
-
- $result = null;
-
- if (isset($annotations['class'][$settingName])) {
- if ($annotations['class'][$settingName][0] == 'enabled') {
- $result = true;
- } elseif ($annotations['class'][$settingName][0] == 'disabled') {
- $result = false;
- }
- }
-
- if (isset($annotations['method'][$settingName])) {
- if ($annotations['method'][$settingName][0] == 'enabled') {
- $result = true;
- } elseif ($annotations['method'][$settingName][0] == 'disabled') {
- $result = false;
- }
- }
-
- return $result;
- }
-
- /**
- * @param string $element
- *
- * @return array
- *
- * @throws PHPUnit_Framework_InvalidCoversTargetException
- *
- * @since Method available since Release 4.0.0
- */
- private static function resolveElementToReflectionObjects($element)
- {
- $codeToCoverList = array();
-
- if (strpos($element, '\\') !== false && function_exists($element)) {
- $codeToCoverList[] = new ReflectionFunction($element);
- } elseif (strpos($element, '::') !== false) {
- list($className, $methodName) = explode('::', $element);
-
- if (isset($methodName[0]) && $methodName[0] == '<') {
- $classes = array($className);
-
- foreach ($classes as $className) {
- if (!class_exists($className) &&
- !interface_exists($className)) {
- throw new PHPUnit_Framework_InvalidCoversTargetException(
- sprintf(
- 'Trying to @cover or @use not existing class or ' .
- 'interface "%s".',
- $className
- )
- );
- }
-
- $class = new ReflectionClass($className);
- $methods = $class->getMethods();
- $inverse = isset($methodName[1]) && $methodName[1] == '!';
-
- if (strpos($methodName, 'protected')) {
- $visibility = 'isProtected';
- } elseif (strpos($methodName, 'private')) {
- $visibility = 'isPrivate';
- } elseif (strpos($methodName, 'public')) {
- $visibility = 'isPublic';
- }
-
- foreach ($methods as $method) {
- if ($inverse && !$method->$visibility()) {
- $codeToCoverList[] = $method;
- } elseif (!$inverse && $method->$visibility()) {
- $codeToCoverList[] = $method;
- }
- }
- }
- } else {
- $classes = array($className);
-
- foreach ($classes as $className) {
- if ($className == '' && function_exists($methodName)) {
- $codeToCoverList[] = new ReflectionFunction(
- $methodName
- );
- } else {
- if (!((class_exists($className) ||
- interface_exists($className) ||
- trait_exists($className)) &&
- method_exists($className, $methodName))) {
- throw new PHPUnit_Framework_InvalidCoversTargetException(
- sprintf(
- 'Trying to @cover or @use not existing method "%s::%s".',
- $className,
- $methodName
- )
- );
- }
-
- $codeToCoverList[] = new ReflectionMethod(
- $className,
- $methodName
- );
- }
- }
- }
- } else {
- $extended = false;
-
- if (strpos($element, '<extended>') !== false) {
- $element = str_replace('<extended>', '', $element);
- $extended = true;
- }
-
- $classes = array($element);
-
- if ($extended) {
- $classes = array_merge(
- $classes,
- class_implements($element),
- class_parents($element)
- );
- }
-
- foreach ($classes as $className) {
- if (!class_exists($className) &&
- !interface_exists($className) &&
- !trait_exists($className)) {
- throw new PHPUnit_Framework_InvalidCoversTargetException(
- sprintf(
- 'Trying to @cover or @use not existing class or ' .
- 'interface "%s".',
- $className
- )
- );
- }
-
- $codeToCoverList[] = new ReflectionClass($className);
- }
- }
-
- return $codeToCoverList;
- }
-
- /**
- * @param array $reflectors
- *
- * @return array
- */
- private static function resolveReflectionObjectsToLines(array $reflectors)
- {
- $result = array();
-
- foreach ($reflectors as $reflector) {
- $filename = $reflector->getFileName();
-
- if (!isset($result[$filename])) {
- $result[$filename] = array();
- }
-
- $result[$filename] = array_unique(
- array_merge(
- $result[$filename],
- range($reflector->getStartLine(), $reflector->getEndLine())
- )
- );
- }
-
- return $result;
- }
-
- /**
- * @param ReflectionMethod $method
- *
- * @return bool
- *
- * @since Method available since Release 4.0.8
- */
- private static function isBeforeClassMethod(ReflectionMethod $method)
- {
- return $method->isStatic() && strpos($method->getDocComment(), '@beforeClass') !== false;
- }
-
- /**
- * @param ReflectionMethod $method
- *
- * @return bool
- *
- * @since Method available since Release 4.0.8
- */
- private static function isBeforeMethod(ReflectionMethod $method)
- {
- return preg_match('/@before\b/', $method->getDocComment());
- }
-
- /**
- * @param ReflectionMethod $method
- *
- * @return bool
- *
- * @since Method available since Release 4.0.8
- */
- private static function isAfterClassMethod(ReflectionMethod $method)
- {
- return $method->isStatic() && strpos($method->getDocComment(), '@afterClass') !== false;
- }
-
- /**
- * @param ReflectionMethod $method
- *
- * @return bool
- *
- * @since Method available since Release 4.0.8
- */
- private static function isAfterMethod(ReflectionMethod $method)
- {
- return preg_match('/@after\b/', $method->getDocComment());
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/NamePrettifier.php b/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/NamePrettifier.php
deleted file mode 100644
index e452ef99..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/NamePrettifier.php
+++ /dev/null
@@ -1,140 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Prettifies class and method names for use in TestDox documentation.
- *
- * @since Class available since Release 2.1.0
- */
-class PHPUnit_Util_TestDox_NamePrettifier
-{
- /**
- * @var string
- */
- protected $prefix = 'Test';
-
- /**
- * @var string
- */
- protected $suffix = 'Test';
-
- /**
- * @var array
- */
- protected $strings = array();
-
- /**
- * Prettifies the name of a test class.
- *
- * @param string $name
- *
- * @return string
- */
- public function prettifyTestClass($name)
- {
- $title = $name;
-
- if ($this->suffix !== null &&
- $this->suffix == substr($name, -1 * strlen($this->suffix))) {
- $title = substr($title, 0, strripos($title, $this->suffix));
- }
-
- if ($this->prefix !== null &&
- $this->prefix == substr($name, 0, strlen($this->prefix))) {
- $title = substr($title, strlen($this->prefix));
- }
-
- if (substr($title, 0, 1) == '\\') {
- $title = substr($title, 1);
- }
-
- return $title;
- }
-
- /**
- * Prettifies the name of a test method.
- *
- * @param string $name
- *
- * @return string
- */
- public function prettifyTestMethod($name)
- {
- $buffer = '';
-
- if (!is_string($name) || strlen($name) == 0) {
- return $buffer;
- }
-
- $string = preg_replace('#\d+$#', '', $name, -1, $count);
-
- if (in_array($string, $this->strings)) {
- $name = $string;
- } elseif ($count == 0) {
- $this->strings[] = $string;
- }
-
- if (substr($name, 0, 4) == 'test') {
- $name = substr($name, 4);
- }
-
- $name[0] = strtoupper($name[0]);
-
- if (strpos($name, '_') !== false) {
- return trim(str_replace('_', ' ', $name));
- }
-
- $max = strlen($name);
- $wasNumeric = false;
-
- for ($i = 0; $i < $max; $i++) {
- if ($i > 0 &&
- ord($name[$i]) >= 65 &&
- ord($name[$i]) <= 90) {
- $buffer .= ' ' . strtolower($name[$i]);
- } else {
- $isNumeric = is_numeric($name[$i]);
-
- if (!$wasNumeric && $isNumeric) {
- $buffer .= ' ';
- $wasNumeric = true;
- }
-
- if ($wasNumeric && !$isNumeric) {
- $wasNumeric = false;
- }
-
- $buffer .= $name[$i];
- }
- }
-
- return $buffer;
- }
-
- /**
- * Sets the prefix of test names.
- *
- * @param string $prefix
- */
- public function setPrefix($prefix)
- {
- $this->prefix = $prefix;
- }
-
- /**
- * Sets the suffix of test names.
- *
- * @param string $suffix
- */
- public function setSuffix($suffix)
- {
- $this->suffix = $suffix;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php b/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php
deleted file mode 100644
index 8511c2da..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php
+++ /dev/null
@@ -1,339 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Base class for printers of TestDox documentation.
- *
- * @since Class available since Release 2.1.0
- */
-abstract class PHPUnit_Util_TestDox_ResultPrinter extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
-{
- /**
- * @var PHPUnit_Util_TestDox_NamePrettifier
- */
- protected $prettifier;
-
- /**
- * @var string
- */
- protected $testClass = '';
-
- /**
- * @var int
- */
- protected $testStatus = false;
-
- /**
- * @var array
- */
- protected $tests = array();
-
- /**
- * @var int
- */
- protected $successful = 0;
-
- /**
- * @var int
- */
- protected $failed = 0;
-
- /**
- * @var int
- */
- protected $risky = 0;
-
- /**
- * @var int
- */
- protected $skipped = 0;
-
- /**
- * @var int
- */
- protected $incomplete = 0;
-
- /**
- * @var string
- */
- protected $currentTestClassPrettified;
-
- /**
- * @var string
- */
- protected $currentTestMethodPrettified;
-
- /**
- * Constructor.
- *
- * @param resource $out
- */
- public function __construct($out = null)
- {
- parent::__construct($out);
-
- $this->prettifier = new PHPUnit_Util_TestDox_NamePrettifier;
- $this->startRun();
- }
-
- /**
- * Flush buffer and close output.
- */
- public function flush()
- {
- $this->doEndClass();
- $this->endRun();
-
- parent::flush();
- }
-
- /**
- * An error occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- if (!$this->isOfInterest($test)) {
- return;
- }
-
- $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_ERROR;
- $this->failed++;
- }
-
- /**
- * A failure occurred.
- *
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
- * @param float $time
- */
- public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
- {
- if (!$this->isOfInterest($test)) {
- return;
- }
-
- $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE;
- $this->failed++;
- }
-
- /**
- * Incomplete test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- */
- public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- if (!$this->isOfInterest($test)) {
- return;
- }
-
- $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE;
- $this->incomplete++;
- }
-
- /**
- * Risky test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 4.0.0
- */
- public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- if (!$this->isOfInterest($test)) {
- return;
- }
-
- $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_RISKY;
- $this->risky++;
- }
-
- /**
- * Skipped test.
- *
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
- * @param float $time
- *
- * @since Method available since Release 3.0.0
- */
- public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- if (!$this->isOfInterest($test)) {
- return;
- }
-
- $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED;
- $this->skipped++;
- }
-
- /**
- * A testsuite started.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- }
-
- /**
- * A testsuite ended.
- *
- * @param PHPUnit_Framework_TestSuite $suite
- *
- * @since Method available since Release 2.2.0
- */
- public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- }
-
- /**
- * A test started.
- *
- * @param PHPUnit_Framework_Test $test
- */
- public function startTest(PHPUnit_Framework_Test $test)
- {
- if (!$this->isOfInterest($test)) {
- return;
- }
-
- $class = get_class($test);
-
- if ($this->testClass != $class) {
- if ($this->testClass != '') {
- $this->doEndClass();
- }
-
- $this->currentTestClassPrettified = $this->prettifier->prettifyTestClass($class);
- $this->startClass($class);
-
- $this->testClass = $class;
- $this->tests = array();
- }
-
- $prettified = false;
-
- $annotations = $test->getAnnotations();
-
- if (isset($annotations['method']['testdox'][0])) {
- $this->currentTestMethodPrettified = $annotations['method']['testdox'][0];
- $prettified = true;
- }
-
- if (!$prettified) {
- $this->currentTestMethodPrettified = $this->prettifier->prettifyTestMethod($test->getName(false));
- }
-
- $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_PASSED;
- }
-
- /**
- * A test ended.
- *
- * @param PHPUnit_Framework_Test $test
- * @param float $time
- */
- public function endTest(PHPUnit_Framework_Test $test, $time)
- {
- if (!$this->isOfInterest($test)) {
- return;
- }
-
- if (!isset($this->tests[$this->currentTestMethodPrettified])) {
- if ($this->testStatus == PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) {
- $this->tests[$this->currentTestMethodPrettified]['success'] = 1;
- $this->tests[$this->currentTestMethodPrettified]['failure'] = 0;
- } else {
- $this->tests[$this->currentTestMethodPrettified]['success'] = 0;
- $this->tests[$this->currentTestMethodPrettified]['failure'] = 1;
- }
- } else {
- if ($this->testStatus == PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) {
- $this->tests[$this->currentTestMethodPrettified]['success']++;
- } else {
- $this->tests[$this->currentTestMethodPrettified]['failure']++;
- }
- }
-
- $this->currentTestClassPrettified = null;
- $this->currentTestMethodPrettified = null;
- }
-
- /**
- * @since Method available since Release 2.3.0
- */
- protected function doEndClass()
- {
- foreach ($this->tests as $name => $data) {
- $this->onTest($name, $data['failure'] == 0);
- }
-
- $this->endClass($this->testClass);
- }
-
- /**
- * Handler for 'start run' event.
- */
- protected function startRun()
- {
- }
-
- /**
- * Handler for 'start class' event.
- *
- * @param string $name
- */
- protected function startClass($name)
- {
- }
-
- /**
- * Handler for 'on test' event.
- *
- * @param string $name
- * @param bool $success
- */
- protected function onTest($name, $success = true)
- {
- }
-
- /**
- * Handler for 'end class' event.
- *
- * @param string $name
- */
- protected function endClass($name)
- {
- }
-
- /**
- * Handler for 'end run' event.
- */
- protected function endRun()
- {
- }
-
- private function isOfInterest(PHPUnit_Framework_Test $test)
- {
- return $test instanceof PHPUnit_Framework_TestCase && get_class($test) != 'PHPUnit_Framework_Warning';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter/HTML.php b/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter/HTML.php
deleted file mode 100644
index 6919eafe..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter/HTML.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Prints TestDox documentation in HTML format.
- *
- * @since Class available since Release 2.1.0
- */
-class PHPUnit_Util_TestDox_ResultPrinter_HTML extends PHPUnit_Util_TestDox_ResultPrinter
-{
- /**
- * @var bool
- */
- protected $printsHTML = true;
-
- /**
- * Handler for 'start run' event.
- */
- protected function startRun()
- {
- $this->write('<html><body>');
- }
-
- /**
- * Handler for 'start class' event.
- *
- * @param string $name
- */
- protected function startClass($name)
- {
- $this->write(
- '<h2 id="' . $name . '">' . $this->currentTestClassPrettified .
- '</h2><ul>'
- );
- }
-
- /**
- * Handler for 'on test' event.
- *
- * @param string $name
- * @param bool $success
- */
- protected function onTest($name, $success = true)
- {
- if (!$success) {
- $strikeOpen = '<span style="text-decoration:line-through;">';
- $strikeClose = '</span>';
- } else {
- $strikeOpen = '';
- $strikeClose = '';
- }
-
- $this->write('<li>' . $strikeOpen . $name . $strikeClose . '</li>');
- }
-
- /**
- * Handler for 'end class' event.
- *
- * @param string $name
- */
- protected function endClass($name)
- {
- $this->write('</ul>');
- }
-
- /**
- * Handler for 'end run' event.
- */
- protected function endRun()
- {
- $this->write('</body></html>');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter/Text.php b/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter/Text.php
deleted file mode 100644
index 0ea48b19..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter/Text.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Prints TestDox documentation in text format.
- *
- * @since Class available since Release 2.1.0
- */
-class PHPUnit_Util_TestDox_ResultPrinter_Text extends PHPUnit_Util_TestDox_ResultPrinter
-{
- /**
- * Handler for 'start class' event.
- *
- * @param string $name
- */
- protected function startClass($name)
- {
- $this->write($this->currentTestClassPrettified . "\n");
- }
-
- /**
- * Handler for 'on test' event.
- *
- * @param string $name
- * @param bool $success
- */
- protected function onTest($name, $success = true)
- {
- if ($success) {
- $this->write(' [x] ');
- } else {
- $this->write(' [ ] ');
- }
-
- $this->write($name . "\n");
- }
-
- /**
- * Handler for 'end class' event.
- *
- * @param string $name
- */
- protected function endClass($name)
- {
- $this->write("\n");
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/TestSuiteIterator.php b/www/wiki/vendor/phpunit/phpunit/src/Util/TestSuiteIterator.php
deleted file mode 100644
index edf7b951..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/TestSuiteIterator.php
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Iterator for test suites.
- *
- * @since Class available since Release 3.1.0
- */
-class PHPUnit_Util_TestSuiteIterator implements RecursiveIterator
-{
- /**
- * @var int
- */
- protected $position;
-
- /**
- * @var PHPUnit_Framework_Test[]
- */
- protected $tests;
-
- /**
- * @param PHPUnit_Framework_TestSuite $testSuite
- */
- public function __construct(PHPUnit_Framework_TestSuite $testSuite)
- {
- $this->tests = $testSuite->tests();
- }
-
- /**
- * Rewinds the Iterator to the first element.
- */
- public function rewind()
- {
- $this->position = 0;
- }
-
- /**
- * Checks if there is a current element after calls to rewind() or next().
- *
- * @return bool
- */
- public function valid()
- {
- return $this->position < count($this->tests);
- }
-
- /**
- * Returns the key of the current element.
- *
- * @return int
- */
- public function key()
- {
- return $this->position;
- }
-
- /**
- * Returns the current element.
- *
- * @return PHPUnit_Framework_Test
- */
- public function current()
- {
- return $this->valid() ? $this->tests[$this->position] : null;
- }
-
- /**
- * Moves forward to next element.
- */
- public function next()
- {
- $this->position++;
- }
-
- /**
- * Returns the sub iterator for the current element.
- *
- * @return PHPUnit_Util_TestSuiteIterator
- */
- public function getChildren()
- {
- return new self(
- $this->tests[$this->position]
- );
- }
-
- /**
- * Checks whether the current element has children.
- *
- * @return bool
- */
- public function hasChildren()
- {
- return $this->tests[$this->position] instanceof PHPUnit_Framework_TestSuite;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/Type.php b/www/wiki/vendor/phpunit/phpunit/src/Util/Type.php
deleted file mode 100644
index 1eb851a5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/Type.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Utility class for textual type (and value) representation.
- *
- * @since Class available since Release 3.0.0
- */
-class PHPUnit_Util_Type
-{
- public static function isType($type)
- {
- return in_array(
- $type,
- array(
- 'numeric',
- 'integer',
- 'int',
- 'float',
- 'string',
- 'boolean',
- 'bool',
- 'null',
- 'array',
- 'object',
- 'resource',
- 'scalar'
- )
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/src/Util/XML.php b/www/wiki/vendor/phpunit/phpunit/src/Util/XML.php
deleted file mode 100644
index c73438f2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/src/Util/XML.php
+++ /dev/null
@@ -1,946 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * XML helpers.
- *
- * @since Class available since Release 3.2.0
- */
-class PHPUnit_Util_XML
-{
- /**
- * Escapes a string for the use in XML documents
- * Any Unicode character is allowed, excluding the surrogate blocks, FFFE,
- * and FFFF (not even as character reference).
- * See http://www.w3.org/TR/xml/#charsets
- *
- * @param string $string
- *
- * @return string
- *
- * @since Method available since Release 3.4.6
- */
- public static function prepareString($string)
- {
- return preg_replace(
- '/[\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]/',
- '',
- htmlspecialchars(
- PHPUnit_Util_String::convertToUtf8($string),
- ENT_QUOTES,
- 'UTF-8'
- )
- );
- }
-
- /**
- * Loads an XML (or HTML) file into a DOMDocument object.
- *
- * @param string $filename
- * @param bool $isHtml
- * @param bool $xinclude
- * @param bool $strict
- *
- * @return DOMDocument
- *
- * @since Method available since Release 3.3.0
- */
- public static function loadFile($filename, $isHtml = false, $xinclude = false, $strict = false)
- {
- $reporting = error_reporting(0);
- $contents = file_get_contents($filename);
- error_reporting($reporting);
-
- if ($contents === false) {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Could not read "%s".',
- $filename
- )
- );
- }
-
- return self::load($contents, $isHtml, $filename, $xinclude, $strict);
- }
-
- /**
- * Load an $actual document into a DOMDocument. This is called
- * from the selector assertions.
- *
- * If $actual is already a DOMDocument, it is returned with
- * no changes. Otherwise, $actual is loaded into a new DOMDocument
- * as either HTML or XML, depending on the value of $isHtml. If $isHtml is
- * false and $xinclude is true, xinclude is performed on the loaded
- * DOMDocument.
- *
- * Note: prior to PHPUnit 3.3.0, this method loaded a file and
- * not a string as it currently does. To load a file into a
- * DOMDocument, use loadFile() instead.
- *
- * @param string|DOMDocument $actual
- * @param bool $isHtml
- * @param string $filename
- * @param bool $xinclude
- * @param bool $strict
- *
- * @return DOMDocument
- *
- * @since Method available since Release 3.3.0
- */
- public static function load($actual, $isHtml = false, $filename = '', $xinclude = false, $strict = false)
- {
- if ($actual instanceof DOMDocument) {
- return $actual;
- }
-
- if (!is_string($actual)) {
- throw new PHPUnit_Framework_Exception('Could not load XML from ' . gettype($actual));
- }
-
- if ($actual === '') {
- throw new PHPUnit_Framework_Exception('Could not load XML from empty string');
- }
-
- // Required for XInclude on Windows.
- if ($xinclude) {
- $cwd = getcwd();
- @chdir(dirname($filename));
- }
-
- $document = new DOMDocument;
- $document->preserveWhiteSpace = false;
-
- $internal = libxml_use_internal_errors(true);
- $message = '';
- $reporting = error_reporting(0);
-
- if ('' !== $filename) {
- // Necessary for xinclude
- $document->documentURI = $filename;
- }
-
- if ($isHtml) {
- $loaded = $document->loadHTML($actual);
- } else {
- $loaded = $document->loadXML($actual);
- }
-
- if (!$isHtml && $xinclude) {
- $document->xinclude();
- }
-
- foreach (libxml_get_errors() as $error) {
- $message .= "\n" . $error->message;
- }
-
- libxml_use_internal_errors($internal);
- error_reporting($reporting);
-
- if ($xinclude) {
- @chdir($cwd);
- }
-
- if ($loaded === false || ($strict && $message !== '')) {
- if ($filename !== '') {
- throw new PHPUnit_Framework_Exception(
- sprintf(
- 'Could not load "%s".%s',
- $filename,
- $message != '' ? "\n" . $message : ''
- )
- );
- } else {
- if ($message === '') {
- $message = 'Could not load XML for unknown reason';
- }
- throw new PHPUnit_Framework_Exception($message);
- }
- }
-
- return $document;
- }
-
- /**
- * @param DOMNode $node
- *
- * @return string
- *
- * @since Method available since Release 3.4.0
- */
- public static function nodeToText(DOMNode $node)
- {
- if ($node->childNodes->length == 1) {
- return $node->textContent;
- }
-
- $result = '';
-
- foreach ($node->childNodes as $childNode) {
- $result .= $node->ownerDocument->saveXML($childNode);
- }
-
- return $result;
- }
-
- /**
- * @param DOMNode $node
- *
- * @since Method available since Release 3.3.0
- */
- public static function removeCharacterDataNodes(DOMNode $node)
- {
- if ($node->hasChildNodes()) {
- for ($i = $node->childNodes->length - 1; $i >= 0; $i--) {
- if (($child = $node->childNodes->item($i)) instanceof DOMCharacterData) {
- $node->removeChild($child);
- }
- }
- }
- }
-
- /**
- * "Convert" a DOMElement object into a PHP variable.
- *
- * @param DOMElement $element
- *
- * @return mixed
- *
- * @since Method available since Release 3.4.0
- */
- public static function xmlToVariable(DOMElement $element)
- {
- $variable = null;
-
- switch ($element->tagName) {
- case 'array':
- $variable = array();
-
- foreach ($element->childNodes as $entry) {
- if (!$entry instanceof DOMElement || $entry->tagName !== 'element') {
- continue;
- }
- $item = $entry->childNodes->item(0);
-
- if ($item instanceof DOMText) {
- $item = $entry->childNodes->item(1);
- }
-
- $value = self::xmlToVariable($item);
-
- if ($entry->hasAttribute('key')) {
- $variable[(string) $entry->getAttribute('key')] = $value;
- } else {
- $variable[] = $value;
- }
- }
- break;
-
- case 'object':
- $className = $element->getAttribute('class');
-
- if ($element->hasChildNodes()) {
- $arguments = $element->childNodes->item(1)->childNodes;
- $constructorArgs = array();
-
- foreach ($arguments as $argument) {
- if ($argument instanceof DOMElement) {
- $constructorArgs[] = self::xmlToVariable($argument);
- }
- }
-
- $class = new ReflectionClass($className);
- $variable = $class->newInstanceArgs($constructorArgs);
- } else {
- $variable = new $className;
- }
- break;
-
- case 'boolean':
- $variable = $element->textContent == 'true' ? true : false;
- break;
-
- case 'integer':
- case 'double':
- case 'string':
- $variable = $element->textContent;
-
- settype($variable, $element->tagName);
- break;
- }
-
- return $variable;
- }
-
- /**
- * Validate list of keys in the associative array.
- *
- * @param array $hash
- * @param array $validKeys
- *
- * @return array
- *
- * @throws PHPUnit_Framework_Exception
- *
- * @since Method available since Release 3.3.0
- */
- public static function assertValidKeys(array $hash, array $validKeys)
- {
- $valids = array();
-
- // Normalize validation keys so that we can use both indexed and
- // associative arrays.
- foreach ($validKeys as $key => $val) {
- is_int($key) ? $valids[$val] = null : $valids[$key] = $val;
- }
-
- $validKeys = array_keys($valids);
-
- // Check for invalid keys.
- foreach ($hash as $key => $value) {
- if (!in_array($key, $validKeys)) {
- $unknown[] = $key;
- }
- }
-
- if (!empty($unknown)) {
- throw new PHPUnit_Framework_Exception(
- 'Unknown key(s): ' . implode(', ', $unknown)
- );
- }
-
- // Add default values for any valid keys that are empty.
- foreach ($valids as $key => $value) {
- if (!isset($hash[$key])) {
- $hash[$key] = $value;
- }
- }
-
- return $hash;
- }
-
- /**
- * Parse a CSS selector into an associative array suitable for
- * use with findNodes().
- *
- * @param string $selector
- * @param mixed $content
- *
- * @return array
- *
- * @since Method available since Release 3.3.0
- */
- public static function convertSelectToTag($selector, $content = true)
- {
- $selector = trim(preg_replace("/\s+/", ' ', $selector));
-
- // substitute spaces within attribute value
- while (preg_match('/\[[^\]]+"[^"]+\s[^"]+"\]/', $selector)) {
- $selector = preg_replace(
- '/(\[[^\]]+"[^"]+)\s([^"]+"\])/',
- '$1__SPACE__$2',
- $selector
- );
- }
-
- if (strstr($selector, ' ')) {
- $elements = explode(' ', $selector);
- } else {
- $elements = array($selector);
- }
-
- $previousTag = array();
-
- foreach (array_reverse($elements) as $element) {
- $element = str_replace('__SPACE__', ' ', $element);
-
- // child selector
- if ($element == '>') {
- $previousTag = array('child' => $previousTag['descendant']);
- continue;
- }
-
- // adjacent-sibling selector
- if ($element == '+') {
- $previousTag = array('adjacent-sibling' => $previousTag['descendant']);
- continue;
- }
-
- $tag = array();
-
- // match element tag
- preg_match("/^([^\.#\[]*)/", $element, $eltMatches);
-
- if (!empty($eltMatches[1])) {
- $tag['tag'] = $eltMatches[1];
- }
-
- // match attributes (\[[^\]]*\]*), ids (#[^\.#\[]*),
- // and classes (\.[^\.#\[]*))
- preg_match_all(
- "/(\[[^\]]*\]*|#[^\.#\[]*|\.[^\.#\[]*)/",
- $element,
- $matches
- );
-
- if (!empty($matches[1])) {
- $classes = array();
- $attrs = array();
-
- foreach ($matches[1] as $match) {
- // id matched
- if (substr($match, 0, 1) == '#') {
- $tag['id'] = substr($match, 1);
- } // class matched
- elseif (substr($match, 0, 1) == '.') {
- $classes[] = substr($match, 1);
- } // attribute matched
- elseif (substr($match, 0, 1) == '[' &&
- substr($match, -1, 1) == ']') {
- $attribute = substr($match, 1, strlen($match) - 2);
- $attribute = str_replace('"', '', $attribute);
-
- // match single word
- if (strstr($attribute, '~=')) {
- list($key, $value) = explode('~=', $attribute);
- $value = "regexp:/.*\b$value\b.*/";
- } // match substring
- elseif (strstr($attribute, '*=')) {
- list($key, $value) = explode('*=', $attribute);
- $value = "regexp:/.*$value.*/";
- } // exact match
- else {
- list($key, $value) = explode('=', $attribute);
- }
-
- $attrs[$key] = $value;
- }
- }
-
- if (!empty($classes)) {
- $tag['class'] = implode(' ', $classes);
- }
-
- if (!empty($attrs)) {
- $tag['attributes'] = $attrs;
- }
- }
-
- // tag content
- if (is_string($content)) {
- $tag['content'] = $content;
- }
-
- // determine previous child/descendants
- if (!empty($previousTag['descendant'])) {
- $tag['descendant'] = $previousTag['descendant'];
- } elseif (!empty($previousTag['child'])) {
- $tag['child'] = $previousTag['child'];
- } elseif (!empty($previousTag['adjacent-sibling'])) {
- $tag['adjacent-sibling'] = $previousTag['adjacent-sibling'];
- unset($tag['content']);
- }
-
- $previousTag = array('descendant' => $tag);
- }
-
- return $tag;
- }
-
- /**
- * Parse an $actual document and return an array of DOMNodes
- * matching the CSS $selector. If an error occurs, it will
- * return false.
- *
- * To only return nodes containing a certain content, give
- * the $content to match as a string. Otherwise, setting
- * $content to true will return all nodes matching $selector.
- *
- * The $actual document may be a DOMDocument or a string
- * containing XML or HTML, identified by $isHtml.
- *
- * @param array $selector
- * @param string $content
- * @param mixed $actual
- * @param bool $isHtml
- *
- * @return bool|array
- *
- * @since Method available since Release 3.3.0
- */
- public static function cssSelect($selector, $content, $actual, $isHtml = true)
- {
- $matcher = self::convertSelectToTag($selector, $content);
- $dom = self::load($actual, $isHtml);
- $tags = self::findNodes($dom, $matcher, $isHtml);
-
- return $tags;
- }
-
- /**
- * Parse out the options from the tag using DOM object tree.
- *
- * @param DOMDocument $dom
- * @param array $options
- * @param bool $isHtml
- *
- * @return array
- *
- * @since Method available since Release 3.3.0
- */
- public static function findNodes(DOMDocument $dom, array $options, $isHtml = true)
- {
- $valid = array(
- 'id', 'class', 'tag', 'content', 'attributes', 'parent',
- 'child', 'ancestor', 'descendant', 'children', 'adjacent-sibling'
- );
-
- $filtered = array();
- $options = self::assertValidKeys($options, $valid);
-
- // find the element by id
- if ($options['id']) {
- $options['attributes']['id'] = $options['id'];
- }
-
- if ($options['class']) {
- $options['attributes']['class'] = $options['class'];
- }
-
- $nodes = array();
-
- // find the element by a tag type
- if ($options['tag']) {
- if ($isHtml) {
- $elements = self::getElementsByCaseInsensitiveTagName(
- $dom,
- $options['tag']
- );
- } else {
- $elements = $dom->getElementsByTagName($options['tag']);
- }
-
- foreach ($elements as $element) {
- $nodes[] = $element;
- }
-
- if (empty($nodes)) {
- return false;
- }
- } // no tag selected, get them all
- else {
- $tags = array(
- 'a', 'abbr', 'acronym', 'address', 'area', 'b', 'base', 'bdo',
- 'big', 'blockquote', 'body', 'br', 'button', 'caption', 'cite',
- 'code', 'col', 'colgroup', 'dd', 'del', 'div', 'dfn', 'dl',
- 'dt', 'em', 'fieldset', 'form', 'frame', 'frameset', 'h1', 'h2',
- 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html', 'i', 'iframe',
- 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'link',
- 'map', 'meta', 'noframes', 'noscript', 'object', 'ol', 'optgroup',
- 'option', 'p', 'param', 'pre', 'q', 'samp', 'script', 'select',
- 'small', 'span', 'strong', 'style', 'sub', 'sup', 'table',
- 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'title',
- 'tr', 'tt', 'ul', 'var',
- // HTML5
- 'article', 'aside', 'audio', 'bdi', 'canvas', 'command',
- 'datalist', 'details', 'dialog', 'embed', 'figure', 'figcaption',
- 'footer', 'header', 'hgroup', 'keygen', 'mark', 'meter', 'nav',
- 'output', 'progress', 'ruby', 'rt', 'rp', 'track', 'section',
- 'source', 'summary', 'time', 'video', 'wbr'
- );
-
- foreach ($tags as $tag) {
- if ($isHtml) {
- $elements = self::getElementsByCaseInsensitiveTagName(
- $dom,
- $tag
- );
- } else {
- $elements = $dom->getElementsByTagName($tag);
- }
-
- foreach ($elements as $element) {
- $nodes[] = $element;
- }
- }
-
- if (empty($nodes)) {
- return false;
- }
- }
-
- // filter by attributes
- if ($options['attributes']) {
- foreach ($nodes as $node) {
- $invalid = false;
-
- foreach ($options['attributes'] as $name => $value) {
- // match by regexp if like "regexp:/foo/i"
- if (preg_match('/^regexp\s*:\s*(.*)/i', $value, $matches)) {
- if (!preg_match($matches[1], $node->getAttribute($name))) {
- $invalid = true;
- }
- } // class can match only a part
- elseif ($name == 'class') {
- // split to individual classes
- $findClasses = explode(
- ' ',
- preg_replace("/\s+/", ' ', $value)
- );
-
- $allClasses = explode(
- ' ',
- preg_replace("/\s+/", ' ', $node->getAttribute($name))
- );
-
- // make sure each class given is in the actual node
- foreach ($findClasses as $findClass) {
- if (!in_array($findClass, $allClasses)) {
- $invalid = true;
- }
- }
- } // match by exact string
- else {
- if ($node->getAttribute($name) != $value) {
- $invalid = true;
- }
- }
- }
-
- // if every attribute given matched
- if (!$invalid) {
- $filtered[] = $node;
- }
- }
-
- $nodes = $filtered;
- $filtered = array();
-
- if (empty($nodes)) {
- return false;
- }
- }
-
- // filter by content
- if ($options['content'] !== null) {
- foreach ($nodes as $node) {
- $invalid = false;
-
- // match by regexp if like "regexp:/foo/i"
- if (preg_match('/^regexp\s*:\s*(.*)/i', $options['content'], $matches)) {
- if (!preg_match($matches[1], self::getNodeText($node))) {
- $invalid = true;
- }
- } // match empty string
- elseif ($options['content'] === '') {
- if (self::getNodeText($node) !== '') {
- $invalid = true;
- }
- } // match by exact string
- elseif (strstr(self::getNodeText($node), $options['content']) === false) {
- $invalid = true;
- }
-
- if (!$invalid) {
- $filtered[] = $node;
- }
- }
-
- $nodes = $filtered;
- $filtered = array();
-
- if (empty($nodes)) {
- return false;
- }
- }
-
- // filter by parent node
- if ($options['parent']) {
- $parentNodes = self::findNodes($dom, $options['parent'], $isHtml);
- $parentNode = isset($parentNodes[0]) ? $parentNodes[0] : null;
-
- foreach ($nodes as $node) {
- if ($parentNode !== $node->parentNode) {
- continue;
- }
-
- $filtered[] = $node;
- }
-
- $nodes = $filtered;
- $filtered = array();
-
- if (empty($nodes)) {
- return false;
- }
- }
-
- // filter by child node
- if ($options['child']) {
- $childNodes = self::findNodes($dom, $options['child'], $isHtml);
- $childNodes = !empty($childNodes) ? $childNodes : array();
-
- foreach ($nodes as $node) {
- foreach ($node->childNodes as $child) {
- foreach ($childNodes as $childNode) {
- if ($childNode === $child) {
- $filtered[] = $node;
- }
- }
- }
- }
-
- $nodes = $filtered;
- $filtered = array();
-
- if (empty($nodes)) {
- return false;
- }
- }
-
- // filter by adjacent-sibling
- if ($options['adjacent-sibling']) {
- $adjacentSiblingNodes = self::findNodes($dom, $options['adjacent-sibling'], $isHtml);
- $adjacentSiblingNodes = !empty($adjacentSiblingNodes) ? $adjacentSiblingNodes : array();
-
- foreach ($nodes as $node) {
- $sibling = $node;
-
- while ($sibling = $sibling->nextSibling) {
- if ($sibling->nodeType !== XML_ELEMENT_NODE) {
- continue;
- }
-
- foreach ($adjacentSiblingNodes as $adjacentSiblingNode) {
- if ($sibling === $adjacentSiblingNode) {
- $filtered[] = $node;
- break;
- }
- }
-
- break;
- }
- }
-
- $nodes = $filtered;
- $filtered = array();
-
- if (empty($nodes)) {
- return false;
- }
- }
-
- // filter by ancestor
- if ($options['ancestor']) {
- $ancestorNodes = self::findNodes($dom, $options['ancestor'], $isHtml);
- $ancestorNode = isset($ancestorNodes[0]) ? $ancestorNodes[0] : null;
-
- foreach ($nodes as $node) {
- $parent = $node->parentNode;
-
- while ($parent && $parent->nodeType != XML_HTML_DOCUMENT_NODE) {
- if ($parent === $ancestorNode) {
- $filtered[] = $node;
- }
-
- $parent = $parent->parentNode;
- }
- }
-
- $nodes = $filtered;
- $filtered = array();
-
- if (empty($nodes)) {
- return false;
- }
- }
-
- // filter by descendant
- if ($options['descendant']) {
- $descendantNodes = self::findNodes($dom, $options['descendant'], $isHtml);
- $descendantNodes = !empty($descendantNodes) ? $descendantNodes : array();
-
- foreach ($nodes as $node) {
- foreach (self::getDescendants($node) as $descendant) {
- foreach ($descendantNodes as $descendantNode) {
- if ($descendantNode === $descendant) {
- $filtered[] = $node;
- }
- }
- }
- }
-
- $nodes = $filtered;
- $filtered = array();
-
- if (empty($nodes)) {
- return false;
- }
- }
-
- // filter by children
- if ($options['children']) {
- $validChild = array('count', 'greater_than', 'less_than', 'only');
- $childOptions = self::assertValidKeys(
- $options['children'],
- $validChild
- );
-
- foreach ($nodes as $node) {
- $childNodes = $node->childNodes;
-
- foreach ($childNodes as $childNode) {
- if ($childNode->nodeType !== XML_CDATA_SECTION_NODE &&
- $childNode->nodeType !== XML_TEXT_NODE) {
- $children[] = $childNode;
- }
- }
-
- // we must have children to pass this filter
- if (!empty($children)) {
- // exact count of children
- if ($childOptions['count'] !== null) {
- if (count($children) !== $childOptions['count']) {
- break;
- }
- } // range count of children
- elseif ($childOptions['less_than'] !== null &&
- $childOptions['greater_than'] !== null) {
- if (count($children) >= $childOptions['less_than'] ||
- count($children) <= $childOptions['greater_than']) {
- break;
- }
- } // less than a given count
- elseif ($childOptions['less_than'] !== null) {
- if (count($children) >= $childOptions['less_than']) {
- break;
- }
- } // more than a given count
- elseif ($childOptions['greater_than'] !== null) {
- if (count($children) <= $childOptions['greater_than']) {
- break;
- }
- }
-
- // match each child against a specific tag
- if ($childOptions['only']) {
- $onlyNodes = self::findNodes(
- $dom,
- $childOptions['only'],
- $isHtml
- );
-
- // try to match each child to one of the 'only' nodes
- foreach ($children as $child) {
- $matched = false;
-
- foreach ($onlyNodes as $onlyNode) {
- if ($onlyNode === $child) {
- $matched = true;
- }
- }
-
- if (!$matched) {
- break 2;
- }
- }
- }
-
- $filtered[] = $node;
- }
- }
-
- $nodes = $filtered;
-
- if (empty($nodes)) {
- return;
- }
- }
-
- // return the first node that matches all criteria
- return !empty($nodes) ? $nodes : array();
- }
-
- /**
- * Recursively get flat array of all descendants of this node.
- *
- * @param DOMNode $node
- *
- * @return array
- *
- * @since Method available since Release 3.3.0
- */
- protected static function getDescendants(DOMNode $node)
- {
- $allChildren = array();
- $childNodes = $node->childNodes ? $node->childNodes : array();
-
- foreach ($childNodes as $child) {
- if ($child->nodeType === XML_CDATA_SECTION_NODE ||
- $child->nodeType === XML_TEXT_NODE) {
- continue;
- }
-
- $children = self::getDescendants($child);
- $allChildren = array_merge($allChildren, $children, array($child));
- }
-
- return isset($allChildren) ? $allChildren : array();
- }
-
- /**
- * Gets elements by case insensitive tagname.
- *
- * @param DOMDocument $dom
- * @param string $tag
- *
- * @return DOMNodeList
- *
- * @since Method available since Release 3.4.0
- */
- protected static function getElementsByCaseInsensitiveTagName(DOMDocument $dom, $tag)
- {
- $elements = $dom->getElementsByTagName(strtolower($tag));
-
- if ($elements->length == 0) {
- $elements = $dom->getElementsByTagName(strtoupper($tag));
- }
-
- return $elements;
- }
-
- /**
- * Get the text value of this node's child text node.
- *
- * @param DOMNode $node
- *
- * @return string
- *
- * @since Method available since Release 3.3.0
- */
- protected static function getNodeText(DOMNode $node)
- {
- if (!$node->childNodes instanceof DOMNodeList) {
- return '';
- }
-
- $result = '';
-
- foreach ($node->childNodes as $childNode) {
- if ($childNode->nodeType === XML_TEXT_NODE ||
- $childNode->nodeType === XML_CDATA_SECTION_NODE) {
- $result .= trim($childNode->data) . ' ';
- } else {
- $result .= self::getNodeText($childNode);
- }
- }
-
- return str_replace(' ', ' ', $result);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Extensions/PhptTestCaseTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Extensions/PhptTestCaseTest.php
deleted file mode 100644
index 819f9d29..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Extensions/PhptTestCaseTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Extensions_PhptTestCaseTest extends \PHPUnit_Framework_TestCase
-{
- public function testParseIniSection()
- {
- $phptTestCase = new PhpTestCaseProxy(__FILE__);
- $settings = $phptTestCase->parseIniSection("foo=1\nbar = 2\rbaz = 3\r\nempty=\nignore");
-
- $expected = array(
- 'foo=1',
- 'bar = 2',
- 'baz = 3',
- 'empty=',
- 'ignore',
- );
-
- $this->assertEquals($expected, $settings);
- }
-}
-
-class PhpTestCaseProxy extends PHPUnit_Extensions_PhptTestCase
-{
- public function parseIniSection($content)
- {
- return parent::parseIniSection($content);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Extensions/RepeatedTestTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Extensions/RepeatedTestTest.php
deleted file mode 100644
index de83fb5f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Extensions/RepeatedTestTest.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- * @covers PHPUnit_Extensions_RepeatedTest
- */
-class Extensions_RepeatedTestTest extends PHPUnit_Framework_TestCase
-{
- protected $suite;
-
- public function __construct()
- {
- $this->suite = new PHPUnit_Framework_TestSuite;
-
- $this->suite->addTest(new Success);
- $this->suite->addTest(new Success);
- }
-
- public function testRepeatedOnce()
- {
- $test = new PHPUnit_Extensions_RepeatedTest($this->suite, 1);
- $this->assertEquals(2, count($test));
-
- $result = $test->run();
- $this->assertEquals(2, count($result));
- }
-
- public function testRepeatedMoreThanOnce()
- {
- $test = new PHPUnit_Extensions_RepeatedTest($this->suite, 3);
- $this->assertEquals(6, count($test));
-
- $result = $test->run();
- $this->assertEquals(6, count($result));
- }
-
- public function testRepeatedZero()
- {
- $test = new PHPUnit_Extensions_RepeatedTest($this->suite, 0);
- $this->assertEquals(0, count($test));
-
- $result = $test->run();
- $this->assertEquals(0, count($result));
- }
-
- public function testRepeatedNegative()
- {
- try {
- $test = new PHPUnit_Extensions_RepeatedTest($this->suite, -1);
- } catch (Exception $e) {
- return;
- }
-
- $this->fail('Should throw an Exception');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Fail/fail.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Fail/fail.phpt
deleted file mode 100644
index b88454fd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Fail/fail.phpt
+++ /dev/null
@@ -1,5 +0,0 @@
---TEST--
-// This test intentionally fails and it is checked by Travis.
---FILE--
---EXPECTF--
-unexpected
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/AssertTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/AssertTest.php
deleted file mode 100644
index 940335e8..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/AssertTest.php
+++ /dev/null
@@ -1,4135 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class Framework_AssertTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @var string
- */
- private $filesDirectory;
-
- protected function setUp()
- {
- $this->filesDirectory = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR;
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::fail
- */
- public function testFail()
- {
- try {
- $this->fail();
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- throw new PHPUnit_Framework_AssertionFailedError('Fail did not throw fail exception');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContains
- */
- public function testAssertSplObjectStorageContainsObject()
- {
- $a = new stdClass;
- $b = new stdClass;
- $c = new SplObjectStorage;
- $c->attach($a);
-
- $this->assertContains($a, $c);
-
- try {
- $this->assertContains($b, $c);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContains
- */
- public function testAssertArrayContainsObject()
- {
- $a = new stdClass;
- $b = new stdClass;
-
- $this->assertContains($a, array($a));
-
- try {
- $this->assertContains($a, array($b));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContains
- */
- public function testAssertArrayContainsString()
- {
- $this->assertContains('foo', array('foo'));
-
- try {
- $this->assertContains('foo', array('bar'));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContains
- */
- public function testAssertArrayContainsNonObject()
- {
- $this->assertContains('foo', array(true));
-
- try {
- $this->assertContains('foo', array(true), '', false, true, true);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf
- */
- public function testAssertContainsOnlyInstancesOf()
- {
- $test = array(
- new Book(),
- new Book
- );
- $this->assertContainsOnlyInstancesOf('Book', $test);
- $this->assertContainsOnlyInstancesOf('stdClass', array(new stdClass()));
-
- $test2 = array(
- new Author('Test')
- );
- try {
- $this->assertContainsOnlyInstancesOf('Book', $test2);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayHasKey
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertArrayHasKeyThrowsExceptionForInvalidFirstArgument()
- {
- $this->assertArrayHasKey(null, array());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayHasKey
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertArrayHasKeyThrowsExceptionForInvalidSecondArgument()
- {
- $this->assertArrayHasKey(0, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayHasKey
- */
- public function testAssertArrayHasIntegerKey()
- {
- $this->assertArrayHasKey(0, array('foo'));
-
- try {
- $this->assertArrayHasKey(1, array('foo'));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArraySubset
- * @covers PHPUnit_Framework_Constraint_ArraySubset
- */
- public function testAssertArraySubset()
- {
- $array = array(
- 'a' => 'item a',
- 'b' => 'item b',
- 'c' => array('a2' => 'item a2', 'b2' => 'item b2'),
- 'd' => array('a2' => array('a3' => 'item a3', 'b3' => 'item b3'))
- );
-
- $this->assertArraySubset(array('a' => 'item a', 'c' => array('a2' => 'item a2')), $array);
- $this->assertArraySubset(array('a' => 'item a', 'd' => array('a2' => array('b3' => 'item b3'))), $array);
-
- $arrayAccessData = new ArrayObject($array);
-
- $this->assertArraySubset(array('a' => 'item a', 'c' => array('a2' => 'item a2')), $arrayAccessData);
- $this->assertArraySubset(array('a' => 'item a', 'd' => array('a2' => array('b3' => 'item b3'))), $arrayAccessData);
-
- try {
- $this->assertArraySubset(array('a' => 'bad value'), $array);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- }
-
- try {
- $this->assertArraySubset(array('d' => array('a2' => array('bad index' => 'item b3'))), $array);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArraySubset
- * @covers PHPUnit_Framework_Constraint_ArraySubset
- */
- public function testAssertArraySubsetWithDeepNestedArrays()
- {
- $array = array(
- 'path' => array(
- 'to' => array(
- 'the' => array(
- 'cake' => 'is a lie'
- )
- )
- )
- );
-
- $this->assertArraySubset(array('path' => array()), $array);
- $this->assertArraySubset(array('path' => array('to' => array())), $array);
- $this->assertArraySubset(array('path' => array('to' => array('the' => array()))), $array);
- $this->assertArraySubset(array('path' => array('to' => array('the' => array('cake' => 'is a lie')))), $array);
-
- try {
- $this->assertArraySubset(array('path' => array('to' => array('the' => array('cake' => 'is not a lie')))), $array);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArraySubset
- * @covers PHPUnit_Framework_Constraint_ArraySubset
- */
- public function testAssertArraySubsetWithNoStrictCheckAndObjects()
- {
- $obj = new \stdClass;
- $reference = &$obj;
- $array = array('a' => $obj);
-
- $this->assertArraySubset(array('a' => $reference), $array);
- $this->assertArraySubset(array('a' => new \stdClass), $array);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArraySubset
- * @covers PHPUnit_Framework_Constraint_ArraySubset
- */
- public function testAssertArraySubsetWithStrictCheckAndObjects()
- {
- $obj = new \stdClass;
- $reference = &$obj;
- $array = array('a' => $obj);
-
- $this->assertArraySubset(array('a' => $reference), $array, true);
-
- try {
- $this->assertArraySubset(array('a' => new \stdClass), $array, true);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail('Strict recursive array check fail.');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArraySubset
- * @covers PHPUnit_Framework_Constraint_ArraySubset
- * @expectedException PHPUnit_Framework_Exception
- * @expectedExceptionMessage array or ArrayAccess
- * @dataProvider assertArraySubsetInvalidArgumentProvider
- */
- public function testAssertArraySubsetRaisesExceptionForInvalidArguments($partial, $subject)
- {
- $this->assertArraySubset($partial, $subject);
- }
-
- /**
- * @return array
- */
- public function assertArraySubsetInvalidArgumentProvider()
- {
- return array(
- array(false, array()),
- array(array(), false),
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertArrayNotHasKeyThrowsExceptionForInvalidFirstArgument()
- {
- $this->assertArrayNotHasKey(null, array());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertArrayNotHasKeyThrowsExceptionForInvalidSecondArgument()
- {
- $this->assertArrayNotHasKey(0, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
- */
- public function testAssertArrayNotHasIntegerKey()
- {
- $this->assertArrayNotHasKey(1, array('foo'));
-
- try {
- $this->assertArrayNotHasKey(0, array('foo'));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayHasKey
- */
- public function testAssertArrayHasStringKey()
- {
- $this->assertArrayHasKey('foo', array('foo' => 'bar'));
-
- try {
- $this->assertArrayHasKey('bar', array('foo' => 'bar'));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
- */
- public function testAssertArrayNotHasStringKey()
- {
- $this->assertArrayNotHasKey('bar', array('foo' => 'bar'));
-
- try {
- $this->assertArrayNotHasKey('foo', array('foo' => 'bar'));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayHasKey
- */
- public function testAssertArrayHasKeyAcceptsArrayObjectValue()
- {
- $array = new ArrayObject();
- $array['foo'] = 'bar';
- $this->assertArrayHasKey('foo', $array);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayHasKey
- * @expectedException PHPUnit_Framework_AssertionFailedError
- */
- public function testAssertArrayHasKeyProperlyFailsWithArrayObjectValue()
- {
- $array = new ArrayObject();
- $array['bar'] = 'bar';
- $this->assertArrayHasKey('foo', $array);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayHasKey
- */
- public function testAssertArrayHasKeyAcceptsArrayAccessValue()
- {
- $array = new SampleArrayAccess();
- $array['foo'] = 'bar';
- $this->assertArrayHasKey('foo', $array);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayHasKey
- * @expectedException PHPUnit_Framework_AssertionFailedError
- */
- public function testAssertArrayHasKeyProperlyFailsWithArrayAccessValue()
- {
- $array = new SampleArrayAccess();
- $array['bar'] = 'bar';
- $this->assertArrayHasKey('foo', $array);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
- */
- public function testAssertArrayNotHasKeyAcceptsArrayAccessValue()
- {
- $array = new ArrayObject();
- $array['foo'] = 'bar';
- $this->assertArrayNotHasKey('bar', $array);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertArrayNotHasKey
- * @expectedException PHPUnit_Framework_AssertionFailedError
- */
- public function testAssertArrayNotHasKeyPropertlyFailsWithArrayAccessValue()
- {
- $array = new ArrayObject();
- $array['bar'] = 'bar';
- $this->assertArrayNotHasKey('bar', $array);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContains
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertContainsThrowsException()
- {
- $this->assertContains(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContains
- */
- public function testAssertIteratorContainsObject()
- {
- $foo = new stdClass;
-
- $this->assertContains($foo, new TestIterator(array($foo)));
-
- try {
- $this->assertContains($foo, new TestIterator(array(new stdClass)));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContains
- */
- public function testAssertIteratorContainsString()
- {
- $this->assertContains('foo', new TestIterator(array('foo')));
-
- try {
- $this->assertContains('foo', new TestIterator(array('bar')));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContains
- */
- public function testAssertStringContainsString()
- {
- $this->assertContains('foo', 'foobar');
-
- try {
- $this->assertContains('foo', 'bar');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotContains
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertNotContainsThrowsException()
- {
- $this->assertNotContains(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotContains
- */
- public function testAssertSplObjectStorageNotContainsObject()
- {
- $a = new stdClass;
- $b = new stdClass;
- $c = new SplObjectStorage;
- $c->attach($a);
-
- $this->assertNotContains($b, $c);
-
- try {
- $this->assertNotContains($a, $c);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotContains
- */
- public function testAssertArrayNotContainsObject()
- {
- $a = new stdClass;
- $b = new stdClass;
-
- $this->assertNotContains($a, array($b));
-
- try {
- $this->assertNotContains($a, array($a));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotContains
- */
- public function testAssertArrayNotContainsString()
- {
- $this->assertNotContains('foo', array('bar'));
-
- try {
- $this->assertNotContains('foo', array('foo'));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotContains
- */
- public function testAssertArrayNotContainsNonObject()
- {
- $this->assertNotContains('foo', array(true), '', false, true, true);
-
- try {
- $this->assertNotContains('foo', array(true));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotContains
- */
- public function testAssertStringNotContainsString()
- {
- $this->assertNotContains('foo', 'bar');
-
- try {
- $this->assertNotContains('foo', 'foo');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContainsOnly
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertContainsOnlyThrowsException()
- {
- $this->assertContainsOnly(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotContainsOnly
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertNotContainsOnlyThrowsException()
- {
- $this->assertNotContainsOnly(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContainsOnlyInstancesOf
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertContainsOnlyInstancesOfThrowsException()
- {
- $this->assertContainsOnlyInstancesOf(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContainsOnly
- */
- public function testAssertArrayContainsOnlyIntegers()
- {
- $this->assertContainsOnly('integer', array(1, 2, 3));
-
- try {
- $this->assertContainsOnly('integer', array('1', 2, 3));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotContainsOnly
- */
- public function testAssertArrayNotContainsOnlyIntegers()
- {
- $this->assertNotContainsOnly('integer', array('1', 2, 3));
-
- try {
- $this->assertNotContainsOnly('integer', array(1, 2, 3));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertContainsOnly
- */
- public function testAssertArrayContainsOnlyStdClass()
- {
- $this->assertContainsOnly('StdClass', array(new stdClass));
-
- try {
- $this->assertContainsOnly('StdClass', array('StdClass'));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotContainsOnly
- */
- public function testAssertArrayNotContainsOnlyStdClass()
- {
- $this->assertNotContainsOnly('StdClass', array('StdClass'));
-
- try {
- $this->assertNotContainsOnly('StdClass', array(new stdClass));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- protected function sameValues()
- {
- $object = new SampleClass(4, 8, 15);
- // cannot use $filesDirectory, because neither setUp() nor
- // setUpBeforeClass() are executed before the data providers
- $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml';
- $resource = fopen($file, 'r');
-
- return array(
- // null
- array(null, null),
- // strings
- array('a', 'a'),
- // integers
- array(0, 0),
- // floats
- array(2.3, 2.3),
- array(1/3, 1 - 2/3),
- array(log(0), log(0)),
- // arrays
- array(array(), array()),
- array(array(0 => 1), array(0 => 1)),
- array(array(0 => null), array(0 => null)),
- array(array('a', 'b' => array(1, 2)), array('a', 'b' => array(1, 2))),
- // objects
- array($object, $object),
- // resources
- array($resource, $resource),
- );
- }
-
- protected function notEqualValues()
- {
- // cyclic dependencies
- $book1 = new Book;
- $book1->author = new Author('Terry Pratchett');
- $book1->author->books[] = $book1;
- $book2 = new Book;
- $book2->author = new Author('Terry Pratch');
- $book2->author->books[] = $book2;
-
- $book3 = new Book;
- $book3->author = 'Terry Pratchett';
- $book4 = new stdClass;
- $book4->author = 'Terry Pratchett';
-
- $object1 = new SampleClass(4, 8, 15);
- $object2 = new SampleClass(16, 23, 42);
- $object3 = new SampleClass(4, 8, 15);
- $storage1 = new SplObjectStorage;
- $storage1->attach($object1);
- $storage2 = new SplObjectStorage;
- $storage2->attach($object3); // same content, different object
-
- // cannot use $filesDirectory, because neither setUp() nor
- // setUpBeforeClass() are executed before the data providers
- $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml';
-
- return array(
- // strings
- array('a', 'b'),
- array('a', 'A'),
- // https://github.com/sebastianbergmann/phpunit/issues/1023
- array('9E6666666','9E7777777'),
- // integers
- array(1, 2),
- array(2, 1),
- // floats
- array(2.3, 4.2),
- array(2.3, 4.2, 0.5),
- array(array(2.3), array(4.2), 0.5),
- array(array(array(2.3)), array(array(4.2)), 0.5),
- array(new Struct(2.3), new Struct(4.2), 0.5),
- array(array(new Struct(2.3)), array(new Struct(4.2)), 0.5),
- // NAN
- array(NAN, NAN),
- // arrays
- array(array(), array(0 => 1)),
- array(array(0 => 1), array()),
- array(array(0 => null), array()),
- array(array(0 => 1, 1 => 2), array(0 => 1, 1 => 3)),
- array(array('a', 'b' => array(1, 2)), array('a', 'b' => array(2, 1))),
- // objects
- array(new SampleClass(4, 8, 15), new SampleClass(16, 23, 42)),
- array($object1, $object2),
- array($book1, $book2),
- array($book3, $book4), // same content, different class
- // resources
- array(fopen($file, 'r'), fopen($file, 'r')),
- // SplObjectStorage
- array($storage1, $storage2),
- // DOMDocument
- array(
- PHPUnit_Util_XML::load('<root></root>'),
- PHPUnit_Util_XML::load('<bar/>'),
- ),
- array(
- PHPUnit_Util_XML::load('<foo attr1="bar"/>'),
- PHPUnit_Util_XML::load('<foo attr1="foobar"/>'),
- ),
- array(
- PHPUnit_Util_XML::load('<foo> bar </foo>'),
- PHPUnit_Util_XML::load('<foo />'),
- ),
- array(
- PHPUnit_Util_XML::load('<foo xmlns="urn:myns:bar"/>'),
- PHPUnit_Util_XML::load('<foo xmlns="urn:notmyns:bar"/>'),
- ),
- array(
- PHPUnit_Util_XML::load('<foo> bar </foo>'),
- PHPUnit_Util_XML::load('<foo> bir </foo>'),
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 03:13:35', new DateTimeZone('America/New_York')),
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 03:13:35', new DateTimeZone('America/New_York')),
- 3500
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 05:13:35', new DateTimeZone('America/New_York')),
- 3500
- ),
- array(
- new DateTime('2013-03-29', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
- ),
- array(
- new DateTime('2013-03-29', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
- 43200
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/Chicago')),
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/Chicago')),
- 3500
- ),
- array(
- new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-30', new DateTimeZone('America/Chicago')),
- ),
- array(
- new DateTime('2013-03-29T05:13:35-0600'),
- new DateTime('2013-03-29T04:13:35-0600'),
- ),
- array(
- new DateTime('2013-03-29T05:13:35-0600'),
- new DateTime('2013-03-29T05:13:35-0500'),
- ),
- // Exception
- //array(new Exception('Exception 1'), new Exception('Exception 2')),
- // different types
- array(new SampleClass(4, 8, 15), false),
- array(false, new SampleClass(4, 8, 15)),
- array(array(0 => 1, 1 => 2), false),
- array(false, array(0 => 1, 1 => 2)),
- array(array(), new stdClass),
- array(new stdClass, array()),
- // PHP: 0 == 'Foobar' => true!
- // We want these values to differ
- array(0, 'Foobar'),
- array('Foobar', 0),
- array(3, acos(8)),
- array(acos(8), 3)
- );
- }
-
- protected function equalValues()
- {
- // cyclic dependencies
- $book1 = new Book;
- $book1->author = new Author('Terry Pratchett');
- $book1->author->books[] = $book1;
- $book2 = new Book;
- $book2->author = new Author('Terry Pratchett');
- $book2->author->books[] = $book2;
-
- $object1 = new SampleClass(4, 8, 15);
- $object2 = new SampleClass(4, 8, 15);
- $storage1 = new SplObjectStorage;
- $storage1->attach($object1);
- $storage2 = new SplObjectStorage;
- $storage2->attach($object1);
-
- return array(
- // strings
- array('a', 'A', 0, false, true), // ignore case
- // arrays
- array(array('a' => 1, 'b' => 2), array('b' => 2, 'a' => 1)),
- array(array(1), array('1')),
- array(array(3, 2, 1), array(2, 3, 1), 0, true), // canonicalized comparison
- // floats
- array(2.3, 2.5, 0.5),
- array(array(2.3), array(2.5), 0.5),
- array(array(array(2.3)), array(array(2.5)), 0.5),
- array(new Struct(2.3), new Struct(2.5), 0.5),
- array(array(new Struct(2.3)), array(new Struct(2.5)), 0.5),
- // numeric with delta
- array(1, 2, 1),
- // objects
- array($object1, $object2),
- array($book1, $book2),
- // SplObjectStorage
- array($storage1, $storage2),
- // DOMDocument
- array(
- PHPUnit_Util_XML::load('<root></root>'),
- PHPUnit_Util_XML::load('<root/>'),
- ),
- array(
- PHPUnit_Util_XML::load('<root attr="bar"></root>'),
- PHPUnit_Util_XML::load('<root attr="bar"/>'),
- ),
- array(
- PHPUnit_Util_XML::load('<root><foo attr="bar"></foo></root>'),
- PHPUnit_Util_XML::load('<root><foo attr="bar"/></root>'),
- ),
- array(
- PHPUnit_Util_XML::load("<root>\n <child/>\n</root>"),
- PHPUnit_Util_XML::load('<root><child/></root>'),
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:13:25', new DateTimeZone('America/New_York')),
- 10
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:14:40', new DateTimeZone('America/New_York')),
- 65
- ),
- array(
- new DateTime('2013-03-29', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29', new DateTimeZone('America/New_York')),
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 03:13:35', new DateTimeZone('America/Chicago')),
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 03:13:49', new DateTimeZone('America/Chicago')),
- 15
- ),
- array(
- new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 23:00:00', new DateTimeZone('America/Chicago')),
- ),
- array(
- new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 23:01:30', new DateTimeZone('America/Chicago')),
- 100
- ),
- array(
- new DateTime('@1364616000'),
- new DateTime('2013-03-29 23:00:00', new DateTimeZone('America/Chicago')),
- ),
- array(
- new DateTime('2013-03-29T05:13:35-0500'),
- new DateTime('2013-03-29T04:13:35-0600'),
- ),
- // Exception
- //array(new Exception('Exception 1'), new Exception('Exception 1')),
- // mixed types
- array(0, '0'),
- array('0', 0),
- array(2.3, '2.3'),
- array('2.3', 2.3),
- array((string) (1/3), 1 - 2/3),
- array(1/3, (string) (1 - 2/3)),
- array('string representation', new ClassWithToString),
- array(new ClassWithToString, 'string representation'),
- );
- }
-
- public function equalProvider()
- {
- // same |= equal
- return array_merge($this->equalValues(), $this->sameValues());
- }
-
- public function notEqualProvider()
- {
- return $this->notEqualValues();
- }
-
- public function sameProvider()
- {
- return $this->sameValues();
- }
-
- public function notSameProvider()
- {
- // not equal |= not same
- // equal, ¬same |= not same
- return array_merge($this->notEqualValues(), $this->equalValues());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertEquals
- * @dataProvider equalProvider
- */
- public function testAssertEqualsSucceeds($a, $b, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- $this->assertEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertEquals
- * @dataProvider notEqualProvider
- */
- public function testAssertEqualsFails($a, $b, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- try {
- $this->assertEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotEquals
- * @dataProvider notEqualProvider
- */
- public function testAssertNotEqualsSucceeds($a, $b, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- $this->assertNotEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotEquals
- * @dataProvider equalProvider
- */
- public function testAssertNotEqualsFails($a, $b, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- try {
- $this->assertNotEquals($a, $b, '', $delta, 10, $canonicalize, $ignoreCase);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertSame
- * @dataProvider sameProvider
- */
- public function testAssertSameSucceeds($a, $b)
- {
- $this->assertSame($a, $b);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertSame
- * @dataProvider notSameProvider
- */
- public function testAssertSameFails($a, $b)
- {
- try {
- $this->assertSame($a, $b);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotSame
- * @dataProvider notSameProvider
- */
- public function testAssertNotSameSucceeds($a, $b)
- {
- $this->assertNotSame($a, $b);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotSame
- * @dataProvider sameProvider
- */
- public function testAssertNotSameFails($a, $b)
- {
- try {
- $this->assertNotSame($a, $b);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertXmlFileEqualsXmlFile
- */
- public function testAssertXmlFileEqualsXmlFile()
- {
- $this->assertXmlFileEqualsXmlFile(
- $this->filesDirectory . 'foo.xml',
- $this->filesDirectory . 'foo.xml'
- );
-
- try {
- $this->assertXmlFileEqualsXmlFile(
- $this->filesDirectory . 'foo.xml',
- $this->filesDirectory . 'bar.xml'
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertXmlFileNotEqualsXmlFile
- */
- public function testAssertXmlFileNotEqualsXmlFile()
- {
- $this->assertXmlFileNotEqualsXmlFile(
- $this->filesDirectory . 'foo.xml',
- $this->filesDirectory . 'bar.xml'
- );
-
- try {
- $this->assertXmlFileNotEqualsXmlFile(
- $this->filesDirectory . 'foo.xml',
- $this->filesDirectory . 'foo.xml'
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlFile
- */
- public function testAssertXmlStringEqualsXmlFile()
- {
- $this->assertXmlStringEqualsXmlFile(
- $this->filesDirectory . 'foo.xml',
- file_get_contents($this->filesDirectory . 'foo.xml')
- );
-
- try {
- $this->assertXmlStringEqualsXmlFile(
- $this->filesDirectory . 'foo.xml',
- file_get_contents($this->filesDirectory . 'bar.xml')
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlFile
- */
- public function testXmlStringNotEqualsXmlFile()
- {
- $this->assertXmlStringNotEqualsXmlFile(
- $this->filesDirectory . 'foo.xml',
- file_get_contents($this->filesDirectory . 'bar.xml')
- );
-
- try {
- $this->assertXmlStringNotEqualsXmlFile(
- $this->filesDirectory . 'foo.xml',
- file_get_contents($this->filesDirectory . 'foo.xml')
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString
- */
- public function testAssertXmlStringEqualsXmlString()
- {
- $this->assertXmlStringEqualsXmlString('<root/>', '<root/>');
-
- try {
- $this->assertXmlStringEqualsXmlString('<foo/>', '<bar/>');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @expectedException PHPUnit_Framework_Exception
- * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString
- * @ticket 1860
- */
- public function testAssertXmlStringEqualsXmlString2()
- {
- $this->assertXmlStringEqualsXmlString('<a></b>', '<c></d>');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertXmlStringEqualsXmlString
- * @ticket 1860
- */
- public function testAssertXmlStringEqualsXmlString3()
- {
- $expected = <<<XML
-<?xml version="1.0"?>
-<root>
- <node />
-</root>
-XML;
-
- $actual = <<<XML
-<?xml version="1.0"?>
-<root>
-<node />
-</root>
-XML;
-
- $this->assertXmlStringEqualsXmlString($expected, $actual);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertXmlStringNotEqualsXmlString
- */
- public function testAssertXmlStringNotEqualsXmlString()
- {
- $this->assertXmlStringNotEqualsXmlString('<foo/>', '<bar/>');
-
- try {
- $this->assertXmlStringNotEqualsXmlString('<root/>', '<root/>');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
- */
- public function testXMLStructureIsSame()
- {
- $expected = new DOMDocument;
- $expected->load($this->filesDirectory . 'structureExpected.xml');
-
- $actual = new DOMDocument;
- $actual->load($this->filesDirectory . 'structureExpected.xml');
-
- $this->assertEqualXMLStructure(
- $expected->firstChild, $actual->firstChild, true
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
- * @expectedException PHPUnit_Framework_ExpectationFailedException
- */
- public function testXMLStructureWrongNumberOfAttributes()
- {
- $expected = new DOMDocument;
- $expected->load($this->filesDirectory . 'structureExpected.xml');
-
- $actual = new DOMDocument;
- $actual->load($this->filesDirectory . 'structureWrongNumberOfAttributes.xml');
-
- $this->assertEqualXMLStructure(
- $expected->firstChild, $actual->firstChild, true
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
- * @expectedException PHPUnit_Framework_ExpectationFailedException
- */
- public function testXMLStructureWrongNumberOfNodes()
- {
- $expected = new DOMDocument;
- $expected->load($this->filesDirectory . 'structureExpected.xml');
-
- $actual = new DOMDocument;
- $actual->load($this->filesDirectory . 'structureWrongNumberOfNodes.xml');
-
- $this->assertEqualXMLStructure(
- $expected->firstChild, $actual->firstChild, true
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
- */
- public function testXMLStructureIsSameButDataIsNot()
- {
- $expected = new DOMDocument;
- $expected->load($this->filesDirectory . 'structureExpected.xml');
-
- $actual = new DOMDocument;
- $actual->load($this->filesDirectory . 'structureIsSameButDataIsNot.xml');
-
- $this->assertEqualXMLStructure(
- $expected->firstChild, $actual->firstChild, true
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
- */
- public function testXMLStructureAttributesAreSameButValuesAreNot()
- {
- $expected = new DOMDocument;
- $expected->load($this->filesDirectory . 'structureExpected.xml');
-
- $actual = new DOMDocument;
- $actual->load($this->filesDirectory . 'structureAttributesAreSameButValuesAreNot.xml');
-
- $this->assertEqualXMLStructure(
- $expected->firstChild, $actual->firstChild, true
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertEqualXMLStructure
- */
- public function testXMLStructureIgnoreTextNodes()
- {
- $expected = new DOMDocument;
- $expected->load($this->filesDirectory . 'structureExpected.xml');
-
- $actual = new DOMDocument;
- $actual->load($this->filesDirectory . 'structureIgnoreTextNodes.xml');
-
- $this->assertEqualXMLStructure(
- $expected->firstChild, $actual->firstChild, true
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertEquals
- */
- public function testAssertStringEqualsNumeric()
- {
- $this->assertEquals('0', 0);
-
- try {
- $this->assertEquals('0', 1);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotEquals
- */
- public function testAssertStringEqualsNumeric2()
- {
- $this->assertNotEquals('A', 0);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertFileExists
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertFileExistsThrowsException()
- {
- $this->assertFileExists(null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertFileExists
- */
- public function testAssertFileExists()
- {
- $this->assertFileExists(__FILE__);
-
- try {
- $this->assertFileExists(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertFileNotExists
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertFileNotExistsThrowsException()
- {
- $this->assertFileNotExists(null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertFileNotExists
- */
- public function testAssertFileNotExists()
- {
- $this->assertFileNotExists(__DIR__ . DIRECTORY_SEPARATOR . 'NotExisting');
-
- try {
- $this->assertFileNotExists(__FILE__);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
- */
- public function testAssertObjectHasAttribute()
- {
- $o = new Author('Terry Pratchett');
-
- $this->assertObjectHasAttribute('name', $o);
-
- try {
- $this->assertObjectHasAttribute('foo', $o);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
- */
- public function testAssertObjectNotHasAttribute()
- {
- $o = new Author('Terry Pratchett');
-
- $this->assertObjectNotHasAttribute('foo', $o);
-
- try {
- $this->assertObjectNotHasAttribute('name', $o);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNull
- */
- public function testAssertNull()
- {
- $this->assertNull(null);
-
- try {
- $this->assertNull(new stdClass);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotNull
- */
- public function testAssertNotNull()
- {
- $this->assertNotNull(new stdClass);
-
- try {
- $this->assertNotNull(null);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertTrue
- */
- public function testAssertTrue()
- {
- $this->assertTrue(true);
-
- try {
- $this->assertTrue(false);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotTrue
- */
- public function testAssertNotTrue()
- {
- $this->assertNotTrue(false);
- $this->assertNotTrue(1);
- $this->assertNotTrue('true');
-
- try {
- $this->assertNotTrue(true);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertFalse
- */
- public function testAssertFalse()
- {
- $this->assertFalse(false);
-
- try {
- $this->assertFalse(true);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotFalse
- */
- public function testAssertNotFalse()
- {
- $this->assertNotFalse(true);
- $this->assertNotFalse(0);
- $this->assertNotFalse('');
-
- try {
- $this->assertNotFalse(false);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertRegExp
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertRegExpThrowsException()
- {
- $this->assertRegExp(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertRegExp
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertRegExpThrowsException2()
- {
- $this->assertRegExp('', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotRegExp
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertNotRegExpThrowsException()
- {
- $this->assertNotRegExp(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotRegExp
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertNotRegExpThrowsException2()
- {
- $this->assertNotRegExp('', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertRegExp
- */
- public function testAssertRegExp()
- {
- $this->assertRegExp('/foo/', 'foobar');
-
- try {
- $this->assertRegExp('/foo/', 'bar');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotRegExp
- */
- public function testAssertNotRegExp()
- {
- $this->assertNotRegExp('/foo/', 'bar');
-
- try {
- $this->assertNotRegExp('/foo/', 'foobar');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertSame
- */
- public function testAssertSame()
- {
- $o = new stdClass;
-
- $this->assertSame($o, $o);
-
- try {
- $this->assertSame(
- new stdClass,
- new stdClass
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertSame
- */
- public function testAssertSame2()
- {
- $this->assertSame(true, true);
- $this->assertSame(false, false);
-
- try {
- $this->assertSame(true, false);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotSame
- */
- public function testAssertNotSame()
- {
- $this->assertNotSame(
- new stdClass,
- null
- );
-
- $this->assertNotSame(
- null,
- new stdClass
- );
-
- $this->assertNotSame(
- new stdClass,
- new stdClass
- );
-
- $o = new stdClass;
-
- try {
- $this->assertNotSame($o, $o);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotSame
- */
- public function testAssertNotSame2()
- {
- $this->assertNotSame(true, false);
- $this->assertNotSame(false, true);
-
- try {
- $this->assertNotSame(true, true);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotSame
- */
- public function testAssertNotSameFailsNull()
- {
- try {
- $this->assertNotSame(null, null);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertGreaterThan
- */
- public function testGreaterThan()
- {
- $this->assertGreaterThan(1, 2);
-
- try {
- $this->assertGreaterThan(2, 1);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeGreaterThan
- */
- public function testAttributeGreaterThan()
- {
- $this->assertAttributeGreaterThan(
- 1, 'bar', new ClassWithNonPublicAttributes
- );
-
- try {
- $this->assertAttributeGreaterThan(
- 1, 'foo', new ClassWithNonPublicAttributes
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertGreaterThanOrEqual
- */
- public function testGreaterThanOrEqual()
- {
- $this->assertGreaterThanOrEqual(1, 2);
-
- try {
- $this->assertGreaterThanOrEqual(2, 1);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual
- */
- public function testAttributeGreaterThanOrEqual()
- {
- $this->assertAttributeGreaterThanOrEqual(
- 1, 'bar', new ClassWithNonPublicAttributes
- );
-
- try {
- $this->assertAttributeGreaterThanOrEqual(
- 2, 'foo', new ClassWithNonPublicAttributes
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertLessThan
- */
- public function testLessThan()
- {
- $this->assertLessThan(2, 1);
-
- try {
- $this->assertLessThan(1, 2);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeLessThan
- */
- public function testAttributeLessThan()
- {
- $this->assertAttributeLessThan(
- 2, 'foo', new ClassWithNonPublicAttributes
- );
-
- try {
- $this->assertAttributeLessThan(
- 1, 'bar', new ClassWithNonPublicAttributes
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertLessThanOrEqual
- */
- public function testLessThanOrEqual()
- {
- $this->assertLessThanOrEqual(2, 1);
-
- try {
- $this->assertLessThanOrEqual(1, 2);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual
- */
- public function testAttributeLessThanOrEqual()
- {
- $this->assertAttributeLessThanOrEqual(
- 2, 'foo', new ClassWithNonPublicAttributes
- );
-
- try {
- $this->assertAttributeLessThanOrEqual(
- 1, 'bar', new ClassWithNonPublicAttributes
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::readAttribute
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- */
- public function testReadAttribute()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertEquals('foo', $this->readAttribute($obj, 'publicAttribute'));
- $this->assertEquals('bar', $this->readAttribute($obj, 'protectedAttribute'));
- $this->assertEquals('baz', $this->readAttribute($obj, 'privateAttribute'));
- $this->assertEquals('bar', $this->readAttribute($obj, 'protectedParentAttribute'));
- //$this->assertEquals('bar', $this->readAttribute($obj, 'privateParentAttribute'));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::readAttribute
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- */
- public function testReadAttribute2()
- {
- $this->assertEquals('foo', $this->readAttribute('ClassWithNonPublicAttributes', 'publicStaticAttribute'));
- $this->assertEquals('bar', $this->readAttribute('ClassWithNonPublicAttributes', 'protectedStaticAttribute'));
- $this->assertEquals('baz', $this->readAttribute('ClassWithNonPublicAttributes', 'privateStaticAttribute'));
- $this->assertEquals('foo', $this->readAttribute('ClassWithNonPublicAttributes', 'protectedStaticParentAttribute'));
- $this->assertEquals('foo', $this->readAttribute('ClassWithNonPublicAttributes', 'privateStaticParentAttribute'));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::readAttribute
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testReadAttribute3()
- {
- $this->readAttribute('StdClass', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::readAttribute
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testReadAttribute4()
- {
- $this->readAttribute('NotExistingClass', 'foo');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::readAttribute
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testReadAttribute5()
- {
- $this->readAttribute(null, 'foo');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::readAttribute
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testReadAttributeIfAttributeNameIsNotValid()
- {
- $this->readAttribute('StdClass', '2');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetStaticAttributeRaisesExceptionForInvalidFirstArgument()
- {
- $this->getStaticAttribute(null, 'foo');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetStaticAttributeRaisesExceptionForInvalidFirstArgument2()
- {
- $this->getStaticAttribute('NotExistingClass', 'foo');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetStaticAttributeRaisesExceptionForInvalidSecondArgument()
- {
- $this->getStaticAttribute('stdClass', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetStaticAttributeRaisesExceptionForInvalidSecondArgument2()
- {
- $this->getStaticAttribute('stdClass', '0');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::getStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetStaticAttributeRaisesExceptionForInvalidSecondArgument3()
- {
- $this->getStaticAttribute('stdClass', 'foo');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetObjectAttributeRaisesExceptionForInvalidFirstArgument()
- {
- $this->getObjectAttribute(null, 'foo');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetObjectAttributeRaisesExceptionForInvalidSecondArgument()
- {
- $this->getObjectAttribute(new stdClass, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetObjectAttributeRaisesExceptionForInvalidSecondArgument2()
- {
- $this->getObjectAttribute(new stdClass, '0');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testGetObjectAttributeRaisesExceptionForInvalidSecondArgument3()
- {
- $this->getObjectAttribute(new stdClass, 'foo');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::getObjectAttribute
- */
- public function testGetObjectAttributeWorksForInheritedAttributes()
- {
- $this->assertEquals(
- 'bar',
- $this->getObjectAttribute(new ClassWithNonPublicAttributes, 'privateParentAttribute')
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeContains
- */
- public function testAssertPublicAttributeContains()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeContains('foo', 'publicArray', $obj);
-
- try {
- $this->assertAttributeContains('bar', 'publicArray', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeContainsOnly
- */
- public function testAssertPublicAttributeContainsOnly()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeContainsOnly('string', 'publicArray', $obj);
-
- try {
- $this->assertAttributeContainsOnly('integer', 'publicArray', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotContains
- */
- public function testAssertPublicAttributeNotContains()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeNotContains('bar', 'publicArray', $obj);
-
- try {
- $this->assertAttributeNotContains('foo', 'publicArray', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotContainsOnly
- */
- public function testAssertPublicAttributeNotContainsOnly()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeNotContainsOnly('integer', 'publicArray', $obj);
-
- try {
- $this->assertAttributeNotContainsOnly('string', 'publicArray', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeContains
- */
- public function testAssertProtectedAttributeContains()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeContains('bar', 'protectedArray', $obj);
-
- try {
- $this->assertAttributeContains('foo', 'protectedArray', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotContains
- */
- public function testAssertProtectedAttributeNotContains()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeNotContains('foo', 'protectedArray', $obj);
-
- try {
- $this->assertAttributeNotContains('bar', 'protectedArray', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeContains
- */
- public function testAssertPrivateAttributeContains()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeContains('baz', 'privateArray', $obj);
-
- try {
- $this->assertAttributeContains('foo', 'privateArray', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotContains
- */
- public function testAssertPrivateAttributeNotContains()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeNotContains('foo', 'privateArray', $obj);
-
- try {
- $this->assertAttributeNotContains('baz', 'privateArray', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeContains
- */
- public function testAssertAttributeContainsNonObject()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeContains(true, 'privateArray', $obj);
-
- try {
- $this->assertAttributeContains(true, 'privateArray', $obj, '', false, true, true);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotContains
- */
- public function testAssertAttributeNotContainsNonObject()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeNotContains(true, 'privateArray', $obj, '', false, true, true);
-
- try {
- $this->assertAttributeNotContains(true, 'privateArray', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeEquals
- */
- public function testAssertPublicAttributeEquals()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeEquals('foo', 'publicAttribute', $obj);
-
- try {
- $this->assertAttributeEquals('bar', 'publicAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
- */
- public function testAssertPublicAttributeNotEquals()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeNotEquals('bar', 'publicAttribute', $obj);
-
- try {
- $this->assertAttributeNotEquals('foo', 'publicAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeSame
- */
- public function testAssertPublicAttributeSame()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeSame('foo', 'publicAttribute', $obj);
-
- try {
- $this->assertAttributeSame('bar', 'publicAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotSame
- */
- public function testAssertPublicAttributeNotSame()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeNotSame('bar', 'publicAttribute', $obj);
-
- try {
- $this->assertAttributeNotSame('foo', 'publicAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeEquals
- */
- public function testAssertProtectedAttributeEquals()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeEquals('bar', 'protectedAttribute', $obj);
-
- try {
- $this->assertAttributeEquals('foo', 'protectedAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
- */
- public function testAssertProtectedAttributeNotEquals()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeNotEquals('foo', 'protectedAttribute', $obj);
-
- try {
- $this->assertAttributeNotEquals('bar', 'protectedAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeEquals
- */
- public function testAssertPrivateAttributeEquals()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeEquals('baz', 'privateAttribute', $obj);
-
- try {
- $this->assertAttributeEquals('foo', 'privateAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
- */
- public function testAssertPrivateAttributeNotEquals()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertAttributeNotEquals('foo', 'privateAttribute', $obj);
-
- try {
- $this->assertAttributeNotEquals('baz', 'privateAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeEquals
- */
- public function testAssertPublicStaticAttributeEquals()
- {
- $this->assertAttributeEquals('foo', 'publicStaticAttribute', 'ClassWithNonPublicAttributes');
-
- try {
- $this->assertAttributeEquals('bar', 'publicStaticAttribute', 'ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
- */
- public function testAssertPublicStaticAttributeNotEquals()
- {
- $this->assertAttributeNotEquals('bar', 'publicStaticAttribute', 'ClassWithNonPublicAttributes');
-
- try {
- $this->assertAttributeNotEquals('foo', 'publicStaticAttribute', 'ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeEquals
- */
- public function testAssertProtectedStaticAttributeEquals()
- {
- $this->assertAttributeEquals('bar', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes');
-
- try {
- $this->assertAttributeEquals('foo', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
- */
- public function testAssertProtectedStaticAttributeNotEquals()
- {
- $this->assertAttributeNotEquals('foo', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes');
-
- try {
- $this->assertAttributeNotEquals('bar', 'protectedStaticAttribute', 'ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeEquals
- */
- public function testAssertPrivateStaticAttributeEquals()
- {
- $this->assertAttributeEquals('baz', 'privateStaticAttribute', 'ClassWithNonPublicAttributes');
-
- try {
- $this->assertAttributeEquals('foo', 'privateStaticAttribute', 'ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotEquals
- */
- public function testAssertPrivateStaticAttributeNotEquals()
- {
- $this->assertAttributeNotEquals('foo', 'privateStaticAttribute', 'ClassWithNonPublicAttributes');
-
- try {
- $this->assertAttributeNotEquals('baz', 'privateStaticAttribute', 'ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassHasAttributeThrowsException()
- {
- $this->assertClassHasAttribute(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassHasAttributeThrowsException2()
- {
- $this->assertClassHasAttribute('foo', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassHasAttributeThrowsExceptionIfAttributeNameIsNotValid()
- {
- $this->assertClassHasAttribute('1', 'ClassWithNonPublicAttributes');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassNotHasAttributeThrowsException()
- {
- $this->assertClassNotHasAttribute(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassNotHasAttributeThrowsException2()
- {
- $this->assertClassNotHasAttribute('foo', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassNotHasAttributeThrowsExceptionIfAttributeNameIsNotValid()
- {
- $this->assertClassNotHasAttribute('1', 'ClassWithNonPublicAttributes');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassHasStaticAttributeThrowsException()
- {
- $this->assertClassHasStaticAttribute(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassHasStaticAttributeThrowsException2()
- {
- $this->assertClassHasStaticAttribute('foo', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassHasStaticAttributeThrowsExceptionIfAttributeNameIsNotValid()
- {
- $this->assertClassHasStaticAttribute('1', 'ClassWithNonPublicAttributes');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassNotHasStaticAttributeThrowsException()
- {
- $this->assertClassNotHasStaticAttribute(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassNotHasStaticAttributeThrowsException2()
- {
- $this->assertClassNotHasStaticAttribute('foo', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertClassNotHasStaticAttributeThrowsExceptionIfAttributeNameIsNotValid()
- {
- $this->assertClassNotHasStaticAttribute('1', 'ClassWithNonPublicAttributes');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertObjectHasAttributeThrowsException()
- {
- $this->assertObjectHasAttribute(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertObjectHasAttributeThrowsException2()
- {
- $this->assertObjectHasAttribute('foo', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertObjectHasAttributeThrowsExceptionIfAttributeNameIsNotValid()
- {
- $this->assertObjectHasAttribute('1', 'ClassWithNonPublicAttributes');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertObjectNotHasAttributeThrowsException()
- {
- $this->assertObjectNotHasAttribute(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertObjectNotHasAttributeThrowsException2()
- {
- $this->assertObjectNotHasAttribute('foo', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertObjectNotHasAttributeThrowsExceptionIfAttributeNameIsNotValid()
- {
- $this->assertObjectNotHasAttribute('1', 'ClassWithNonPublicAttributes');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassHasAttribute
- */
- public function testClassHasPublicAttribute()
- {
- $this->assertClassHasAttribute('publicAttribute', 'ClassWithNonPublicAttributes');
-
- try {
- $this->assertClassHasAttribute('attribute', 'ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassNotHasAttribute
- */
- public function testClassNotHasPublicAttribute()
- {
- $this->assertClassNotHasAttribute('attribute', 'ClassWithNonPublicAttributes');
-
- try {
- $this->assertClassNotHasAttribute('publicAttribute', 'ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute
- */
- public function testClassHasPublicStaticAttribute()
- {
- $this->assertClassHasStaticAttribute('publicStaticAttribute', 'ClassWithNonPublicAttributes');
-
- try {
- $this->assertClassHasStaticAttribute('attribute', 'ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertClassNotHasStaticAttribute
- */
- public function testClassNotHasPublicStaticAttribute()
- {
- $this->assertClassNotHasStaticAttribute('attribute', 'ClassWithNonPublicAttributes');
-
- try {
- $this->assertClassNotHasStaticAttribute('publicStaticAttribute', 'ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
- */
- public function testObjectHasPublicAttribute()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertObjectHasAttribute('publicAttribute', $obj);
-
- try {
- $this->assertObjectHasAttribute('attribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
- */
- public function testObjectNotHasPublicAttribute()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertObjectNotHasAttribute('attribute', $obj);
-
- try {
- $this->assertObjectNotHasAttribute('publicAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
- */
- public function testObjectHasOnTheFlyAttribute()
- {
- $obj = new stdClass;
- $obj->foo = 'bar';
-
- $this->assertObjectHasAttribute('foo', $obj);
-
- try {
- $this->assertObjectHasAttribute('bar', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
- */
- public function testObjectNotHasOnTheFlyAttribute()
- {
- $obj = new stdClass;
- $obj->foo = 'bar';
-
- $this->assertObjectNotHasAttribute('bar', $obj);
-
- try {
- $this->assertObjectNotHasAttribute('foo', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
- */
- public function testObjectHasProtectedAttribute()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertObjectHasAttribute('protectedAttribute', $obj);
-
- try {
- $this->assertObjectHasAttribute('attribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
- */
- public function testObjectNotHasProtectedAttribute()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertObjectNotHasAttribute('attribute', $obj);
-
- try {
- $this->assertObjectNotHasAttribute('protectedAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectHasAttribute
- */
- public function testObjectHasPrivateAttribute()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertObjectHasAttribute('privateAttribute', $obj);
-
- try {
- $this->assertObjectHasAttribute('attribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
- */
- public function testObjectNotHasPrivateAttribute()
- {
- $obj = new ClassWithNonPublicAttributes;
-
- $this->assertObjectNotHasAttribute('attribute', $obj);
-
- try {
- $this->assertObjectNotHasAttribute('privateAttribute', $obj);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::attribute
- * @covers PHPUnit_Framework_Assert::equalTo
- */
- public function testAssertThatAttributeEquals()
- {
- $this->assertThat(
- new ClassWithNonPublicAttributes,
- $this->attribute(
- $this->equalTo('foo'),
- 'publicAttribute'
- )
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::attribute
- * @covers PHPUnit_Framework_Assert::equalTo
- * @expectedException PHPUnit_Framework_AssertionFailedError
- */
- public function testAssertThatAttributeEquals2()
- {
- $this->assertThat(
- new ClassWithNonPublicAttributes,
- $this->attribute(
- $this->equalTo('bar'),
- 'publicAttribute'
- )
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::attribute
- * @covers PHPUnit_Framework_Assert::equalTo
- */
- public function testAssertThatAttributeEqualTo()
- {
- $this->assertThat(
- new ClassWithNonPublicAttributes,
- $this->attributeEqualTo('publicAttribute', 'foo')
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::anything
- */
- public function testAssertThatAnything()
- {
- $this->assertThat('anything', $this->anything());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::isTrue
- */
- public function testAssertThatIsTrue()
- {
- $this->assertThat(true, $this->isTrue());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::isFalse
- */
- public function testAssertThatIsFalse()
- {
- $this->assertThat(false, $this->isFalse());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::isJson
- */
- public function testAssertThatIsJson()
- {
- $this->assertThat('{}', $this->isJson());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::anything
- * @covers PHPUnit_Framework_Assert::logicalAnd
- */
- public function testAssertThatAnythingAndAnything()
- {
- $this->assertThat(
- 'anything',
- $this->logicalAnd(
- $this->anything(), $this->anything()
- )
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::anything
- * @covers PHPUnit_Framework_Assert::logicalOr
- */
- public function testAssertThatAnythingOrAnything()
- {
- $this->assertThat(
- 'anything',
- $this->logicalOr(
- $this->anything(), $this->anything()
- )
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::anything
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_Assert::logicalXor
- */
- public function testAssertThatAnythingXorNotAnything()
- {
- $this->assertThat(
- 'anything',
- $this->logicalXor(
- $this->anything(),
- $this->logicalNot($this->anything())
- )
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::contains
- */
- public function testAssertThatContains()
- {
- $this->assertThat(array('foo'), $this->contains('foo'));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::stringContains
- */
- public function testAssertThatStringContains()
- {
- $this->assertThat('barfoobar', $this->stringContains('foo'));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::containsOnly
- */
- public function testAssertThatContainsOnly()
- {
- $this->assertThat(array('foo'), $this->containsOnly('string'));
- }
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::containsOnlyInstancesOf
- */
- public function testAssertThatContainsOnlyInstancesOf()
- {
- $this->assertThat(array(new Book), $this->containsOnlyInstancesOf('Book'));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::arrayHasKey
- */
- public function testAssertThatArrayHasKey()
- {
- $this->assertThat(array('foo' => 'bar'), $this->arrayHasKey('foo'));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::classHasAttribute
- */
- public function testAssertThatClassHasAttribute()
- {
- $this->assertThat(
- new ClassWithNonPublicAttributes,
- $this->classHasAttribute('publicAttribute')
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::classHasStaticAttribute
- */
- public function testAssertThatClassHasStaticAttribute()
- {
- $this->assertThat(
- new ClassWithNonPublicAttributes,
- $this->classHasStaticAttribute('publicStaticAttribute')
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::objectHasAttribute
- */
- public function testAssertThatObjectHasAttribute()
- {
- $this->assertThat(
- new ClassWithNonPublicAttributes,
- $this->objectHasAttribute('publicAttribute')
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::equalTo
- */
- public function testAssertThatEqualTo()
- {
- $this->assertThat('foo', $this->equalTo('foo'));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::identicalTo
- */
- public function testAssertThatIdenticalTo()
- {
- $value = new stdClass;
- $constraint = $this->identicalTo($value);
-
- $this->assertThat($value, $constraint);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::isInstanceOf
- */
- public function testAssertThatIsInstanceOf()
- {
- $this->assertThat(new stdClass, $this->isInstanceOf('StdClass'));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::isType
- */
- public function testAssertThatIsType()
- {
- $this->assertThat('string', $this->isType('string'));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::isEmpty
- */
- public function testAssertThatIsEmpty()
- {
- $this->assertThat(array(), $this->isEmpty());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::fileExists
- */
- public function testAssertThatFileExists()
- {
- $this->assertThat(__FILE__, $this->fileExists());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::greaterThan
- */
- public function testAssertThatGreaterThan()
- {
- $this->assertThat(2, $this->greaterThan(1));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::greaterThanOrEqual
- */
- public function testAssertThatGreaterThanOrEqual()
- {
- $this->assertThat(2, $this->greaterThanOrEqual(1));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::lessThan
- */
- public function testAssertThatLessThan()
- {
- $this->assertThat(1, $this->lessThan(2));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::lessThanOrEqual
- */
- public function testAssertThatLessThanOrEqual()
- {
- $this->assertThat(1, $this->lessThanOrEqual(2));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::matchesRegularExpression
- */
- public function testAssertThatMatchesRegularExpression()
- {
- $this->assertThat('foobar', $this->matchesRegularExpression('/foo/'));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::callback
- */
- public function testAssertThatCallback()
- {
- $this->assertThat(
- null,
- $this->callback(function ($other) { return true; })
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertThat
- * @covers PHPUnit_Framework_Assert::countOf
- */
- public function testAssertThatCountOf()
- {
- $this->assertThat(array(1), $this->countOf(1));
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertFileEquals
- */
- public function testAssertFileEquals()
- {
- $this->assertFileEquals(
- $this->filesDirectory . 'foo.xml',
- $this->filesDirectory . 'foo.xml'
- );
-
- try {
- $this->assertFileEquals(
- $this->filesDirectory . 'foo.xml',
- $this->filesDirectory . 'bar.xml'
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertFileNotEquals
- */
- public function testAssertFileNotEquals()
- {
- $this->assertFileNotEquals(
- $this->filesDirectory . 'foo.xml',
- $this->filesDirectory . 'bar.xml'
- );
-
- try {
- $this->assertFileNotEquals(
- $this->filesDirectory . 'foo.xml',
- $this->filesDirectory . 'foo.xml'
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringEqualsFile
- */
- public function testAssertStringEqualsFile()
- {
- $this->assertStringEqualsFile(
- $this->filesDirectory . 'foo.xml',
- file_get_contents($this->filesDirectory . 'foo.xml')
- );
-
- try {
- $this->assertStringEqualsFile(
- $this->filesDirectory . 'foo.xml',
- file_get_contents($this->filesDirectory . 'bar.xml')
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringNotEqualsFile
- */
- public function testAssertStringNotEqualsFile()
- {
- $this->assertStringNotEqualsFile(
- $this->filesDirectory . 'foo.xml',
- file_get_contents($this->filesDirectory . 'bar.xml')
- );
-
- try {
- $this->assertStringNotEqualsFile(
- $this->filesDirectory . 'foo.xml',
- file_get_contents($this->filesDirectory . 'foo.xml')
- );
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringStartsWith
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringStartsWithThrowsException()
- {
- $this->assertStringStartsWith(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringStartsWith
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringStartsWithThrowsException2()
- {
- $this->assertStringStartsWith('', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringStartsNotWith
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringStartsNotWithThrowsException()
- {
- $this->assertStringStartsNotWith(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringStartsNotWith
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringStartsNotWithThrowsException2()
- {
- $this->assertStringStartsNotWith('', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringEndsWith
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringEndsWithThrowsException()
- {
- $this->assertStringEndsWith(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringEndsWith
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringEndsWithThrowsException2()
- {
- $this->assertStringEndsWith('', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringEndsNotWith
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringEndsNotWithThrowsException()
- {
- $this->assertStringEndsNotWith(null, null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringEndsNotWith
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringEndsNotWithThrowsException2()
- {
- $this->assertStringEndsNotWith('', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringStartsWith
- */
- public function testAssertStringStartsWith()
- {
- $this->assertStringStartsWith('prefix', 'prefixfoo');
-
- try {
- $this->assertStringStartsWith('prefix', 'foo');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringStartsNotWith
- */
- public function testAssertStringStartsNotWith()
- {
- $this->assertStringStartsNotWith('prefix', 'foo');
-
- try {
- $this->assertStringStartsNotWith('prefix', 'prefixfoo');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringEndsWith
- */
- public function testAssertStringEndsWith()
- {
- $this->assertStringEndsWith('suffix', 'foosuffix');
-
- try {
- $this->assertStringEndsWith('suffix', 'foo');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringEndsNotWith
- */
- public function testAssertStringEndsNotWith()
- {
- $this->assertStringEndsNotWith('suffix', 'foo');
-
- try {
- $this->assertStringEndsNotWith('suffix', 'foosuffix');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringMatchesFormatRaisesExceptionForInvalidFirstArgument()
- {
- $this->assertStringMatchesFormat(null, '');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringMatchesFormatRaisesExceptionForInvalidSecondArgument()
- {
- $this->assertStringMatchesFormat('', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat
- */
- public function testAssertStringMatchesFormat()
- {
- $this->assertStringMatchesFormat('*%s*', '***');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringMatchesFormat
- * @expectedException PHPUnit_Framework_AssertionFailedError
- */
- public function testAssertStringMatchesFormatFailure()
- {
- $this->assertStringMatchesFormat('*%s*', '**');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormat
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringNotMatchesFormatRaisesExceptionForInvalidFirstArgument()
- {
- $this->assertStringNotMatchesFormat(null, '');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormat
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringNotMatchesFormatRaisesExceptionForInvalidSecondArgument()
- {
- $this->assertStringNotMatchesFormat('', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormat
- */
- public function testAssertStringNotMatchesFormat()
- {
- $this->assertStringNotMatchesFormat('*%s*', '**');
-
- try {
- $this->assertStringMatchesFormat('*%s*', '**');
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertEmpty
- */
- public function testAssertEmpty()
- {
- $this->assertEmpty(array());
-
- try {
- $this->assertEmpty(array('foo'));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotEmpty
- */
- public function testAssertNotEmpty()
- {
- $this->assertNotEmpty(array('foo'));
-
- try {
- $this->assertNotEmpty(array());
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeEmpty
- */
- public function testAssertAttributeEmpty()
- {
- $o = new stdClass;
- $o->a = array();
-
- $this->assertAttributeEmpty('a', $o);
-
- try {
- $o->a = array('b');
- $this->assertAttributeEmpty('a', $o);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotEmpty
- */
- public function testAssertAttributeNotEmpty()
- {
- $o = new stdClass;
- $o->a = array('b');
-
- $this->assertAttributeNotEmpty('a', $o);
-
- try {
- $o->a = array();
- $this->assertAttributeNotEmpty('a', $o);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::markTestIncomplete
- */
- public function testMarkTestIncomplete()
- {
- try {
- $this->markTestIncomplete('incomplete');
- } catch (PHPUnit_Framework_IncompleteTestError $e) {
- $this->assertEquals('incomplete', $e->getMessage());
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::markTestSkipped
- */
- public function testMarkTestSkipped()
- {
- try {
- $this->markTestSkipped('skipped');
- } catch (PHPUnit_Framework_SkippedTestError $e) {
- $this->assertEquals('skipped', $e->getMessage());
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertCount
- */
- public function testAssertCount()
- {
- $this->assertCount(2, array(1, 2));
-
- try {
- $this->assertCount(2, array(1, 2, 3));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertCount
- */
- public function testAssertCountTraversable()
- {
- $this->assertCount(2, new ArrayIterator(array(1, 2)));
-
- try {
- $this->assertCount(2, new ArrayIterator(array(1, 2, 3)));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertCount
- */
- public function testAssertCountThrowsExceptionIfExpectedCountIsNoInteger()
- {
- try {
- $this->assertCount('a', array());
- } catch (PHPUnit_Framework_Exception $e) {
- $this->assertEquals('Argument #1 (No Value) of PHPUnit_Framework_Assert::assertCount() must be a integer', $e->getMessage());
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertCount
- */
- public function testAssertCountThrowsExceptionIfElementIsNotCountable()
- {
- try {
- $this->assertCount(2, '');
- } catch (PHPUnit_Framework_Exception $e) {
- $this->assertEquals('Argument #2 (No Value) of PHPUnit_Framework_Assert::assertCount() must be a countable or traversable', $e->getMessage());
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeCount
- */
- public function testAssertAttributeCount()
- {
- $o = new stdClass;
- $o->a = array();
-
- $this->assertAttributeCount(0, 'a', $o);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotCount
- */
- public function testAssertNotCount()
- {
- $this->assertNotCount(2, array(1, 2, 3));
-
- try {
- $this->assertNotCount(2, array(1, 2));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotCount
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertNotCountThrowsExceptionIfExpectedCountIsNoInteger()
- {
- $this->assertNotCount('a', array());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotCount
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertNotCountThrowsExceptionIfElementIsNotCountable()
- {
- $this->assertNotCount(2, '');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotCount
- */
- public function testAssertAttributeNotCount()
- {
- $o = new stdClass;
- $o->a = array();
-
- $this->assertAttributeNotCount(1, 'a', $o);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertSameSize
- */
- public function testAssertSameSize()
- {
- $this->assertSameSize(array(1, 2), array(3, 4));
-
- try {
- $this->assertSameSize(array(1, 2), array(1, 2, 3));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertSameSize
- */
- public function testAssertSameSizeThrowsExceptionIfExpectedIsNotCountable()
- {
- try {
- $this->assertSameSize('a', array());
- } catch (PHPUnit_Framework_Exception $e) {
- $this->assertEquals('Argument #1 (No Value) of PHPUnit_Framework_Assert::assertSameSize() must be a countable or traversable', $e->getMessage());
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertSameSize
- */
- public function testAssertSameSizeThrowsExceptionIfActualIsNotCountable()
- {
- try {
- $this->assertSameSize(array(), '');
- } catch (PHPUnit_Framework_Exception $e) {
- $this->assertEquals('Argument #2 (No Value) of PHPUnit_Framework_Assert::assertSameSize() must be a countable or traversable', $e->getMessage());
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotSameSize
- */
- public function testAssertNotSameSize()
- {
- $this->assertNotSameSize(array(1, 2), array(1, 2, 3));
-
- try {
- $this->assertNotSameSize(array(1, 2), array(3, 4));
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotSameSize
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertNotSameSizeThrowsExceptionIfExpectedIsNotCountable()
- {
- $this->assertNotSameSize('a', array());
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotSameSize
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertNotSameSizeThrowsExceptionIfActualIsNotCountable()
- {
- $this->assertNotSameSize(array(), '');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJson
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertJsonRaisesExceptionForInvalidArgument()
- {
- $this->assertJson(null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJson
- */
- public function testAssertJson()
- {
- $this->assertJson('{}');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString
- */
- public function testAssertJsonStringEqualsJsonString()
- {
- $expected = '{"Mascott" : "Tux"}';
- $actual = '{"Mascott" : "Tux"}';
- $message = 'Given Json strings do not match';
-
- $this->assertJsonStringEqualsJsonString($expected, $actual, $message);
- }
-
- /**
- * @dataProvider validInvalidJsonDataprovider
- * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString
- */
- public function testAssertJsonStringEqualsJsonStringErrorRaised($expected, $actual)
- {
- try {
- $this->assertJsonStringEqualsJsonString($expected, $actual);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
- $this->fail('Expected exception not found');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString
- */
- public function testAssertJsonStringNotEqualsJsonString()
- {
- $expected = '{"Mascott" : "Beastie"}';
- $actual = '{"Mascott" : "Tux"}';
- $message = 'Given Json strings do match';
-
- $this->assertJsonStringNotEqualsJsonString($expected, $actual, $message);
- }
-
- /**
- * @dataProvider validInvalidJsonDataprovider
- * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString
- */
- public function testAssertJsonStringNotEqualsJsonStringErrorRaised($expected, $actual)
- {
- try {
- $this->assertJsonStringNotEqualsJsonString($expected, $actual);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
- $this->fail('Expected exception not found');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
- */
- public function testAssertJsonStringEqualsJsonFile()
- {
- $file = __DIR__ . '/../_files/JsonData/simpleObject.json';
- $actual = json_encode(array('Mascott' => 'Tux'));
- $message = '';
- $this->assertJsonStringEqualsJsonFile($file, $actual, $message);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
- */
- public function testAssertJsonStringEqualsJsonFileExpectingExpectationFailedException()
- {
- $file = __DIR__ . '/../_files/JsonData/simpleObject.json';
- $actual = json_encode(array('Mascott' => 'Beastie'));
- $message = '';
- try {
- $this->assertJsonStringEqualsJsonFile($file, $actual, $message);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- 'Failed asserting that \'{"Mascott":"Beastie"}\' matches JSON string "{"Mascott":"Tux"}".',
- $e->getMessage()
- );
-
- return;
- }
-
- $this->fail('Expected Exception not thrown.');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
- */
- public function testAssertJsonStringEqualsJsonFileExpectingException()
- {
- $file = __DIR__ . '/../_files/JsonData/simpleObject.json';
- try {
- $this->assertJsonStringEqualsJsonFile($file, null);
- } catch (PHPUnit_Framework_Exception $e) {
- return;
- }
- $this->fail('Expected Exception not thrown.');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile
- */
- public function testAssertJsonStringNotEqualsJsonFile()
- {
- $file = __DIR__ . '/../_files/JsonData/simpleObject.json';
- $actual = json_encode(array('Mascott' => 'Beastie'));
- $message = '';
- $this->assertJsonStringNotEqualsJsonFile($file, $actual, $message);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonFile
- */
- public function testAssertJsonStringNotEqualsJsonFileExpectingException()
- {
- $file = __DIR__ . '/../_files/JsonData/simpleObject.json';
- try {
- $this->assertJsonStringNotEqualsJsonFile($file, null);
- } catch (PHPUnit_Framework_Exception $e) {
- return;
- }
- $this->fail('Expected exception not found.');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJsonFileNotEqualsJsonFile
- */
- public function testAssertJsonFileNotEqualsJsonFile()
- {
- $fileExpected = __DIR__ . '/../_files/JsonData/simpleObject.json';
- $fileActual = __DIR__ . '/../_files/JsonData/arrayObject.json';
- $message = '';
- $this->assertJsonFileNotEqualsJsonFile($fileExpected, $fileActual, $message);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertJsonFileEqualsJsonFile
- */
- public function testAssertJsonFileEqualsJsonFile()
- {
- $file = __DIR__ . '/../_files/JsonData/simpleObject.json';
- $message = '';
- $this->assertJsonFileEqualsJsonFile($file, $file, $message);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertInstanceOf
- */
- public function testAssertInstanceOf()
- {
- $this->assertInstanceOf('stdClass', new stdClass);
-
- try {
- $this->assertInstanceOf('Exception', new stdClass);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertInstanceOf
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertInstanceOfThrowsExceptionForInvalidArgument()
- {
- $this->assertInstanceOf(null, new stdClass);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeInstanceOf
- */
- public function testAssertAttributeInstanceOf()
- {
- $o = new stdClass;
- $o->a = new stdClass;
-
- $this->assertAttributeInstanceOf('stdClass', 'a', $o);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotInstanceOf
- */
- public function testAssertNotInstanceOf()
- {
- $this->assertNotInstanceOf('Exception', new stdClass);
-
- try {
- $this->assertNotInstanceOf('stdClass', new stdClass);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotInstanceOf
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertNotInstanceOfThrowsExceptionForInvalidArgument()
- {
- $this->assertNotInstanceOf(null, new stdClass);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotInstanceOf
- */
- public function testAssertAttributeNotInstanceOf()
- {
- $o = new stdClass;
- $o->a = new stdClass;
-
- $this->assertAttributeNotInstanceOf('Exception', 'a', $o);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertInternalType
- */
- public function testAssertInternalType()
- {
- $this->assertInternalType('integer', 1);
-
- try {
- $this->assertInternalType('string', 1);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertInternalType
- */
- public function testAssertInternalTypeDouble()
- {
- $this->assertInternalType('double', 1.0);
-
- try {
- $this->assertInternalType('double', 1);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertInternalType
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertInternalTypeThrowsExceptionForInvalidArgument()
- {
- $this->assertInternalType(null, 1);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeInternalType
- */
- public function testAssertAttributeInternalType()
- {
- $o = new stdClass;
- $o->a = 1;
-
- $this->assertAttributeInternalType('integer', 'a', $o);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotInternalType
- */
- public function testAssertNotInternalType()
- {
- $this->assertNotInternalType('string', 1);
-
- try {
- $this->assertNotInternalType('integer', 1);
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertNotInternalType
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertNotInternalTypeThrowsExceptionForInvalidArgument()
- {
- $this->assertNotInternalType(null, 1);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertAttributeNotInternalType
- */
- public function testAssertAttributeNotInternalType()
- {
- $o = new stdClass;
- $o->a = 1;
-
- $this->assertAttributeNotInternalType('string', 'a', $o);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringMatchesFormatFile
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringMatchesFormatFileThrowsExceptionForInvalidArgument()
- {
- $this->assertStringMatchesFormatFile('not_existing_file', '');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringMatchesFormatFile
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringMatchesFormatFileThrowsExceptionForInvalidArgument2()
- {
- $this->assertStringMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringMatchesFormatFile
- */
- public function testAssertStringMatchesFormatFile()
- {
- $this->assertStringMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', "FOO\n");
-
- try {
- $this->assertStringMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', "BAR\n");
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringNotMatchesFormatFileThrowsExceptionForInvalidArgument()
- {
- $this->assertStringNotMatchesFormatFile('not_existing_file', '');
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testAssertStringNotMatchesFormatFileThrowsExceptionForInvalidArgument2()
- {
- $this->assertStringNotMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', null);
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::assertStringNotMatchesFormatFile
- */
- public function testAssertStringNotMatchesFormatFile()
- {
- $this->assertStringNotMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', "BAR\n");
-
- try {
- $this->assertStringNotMatchesFormatFile($this->filesDirectory . 'expectedFileFormat.txt', "FOO\n");
- } catch (PHPUnit_Framework_AssertionFailedError $e) {
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @return array
- */
- public static function validInvalidJsonDataprovider()
- {
- return array(
- 'error syntax in expected JSON' => array('{"Mascott"::}', '{"Mascott" : "Tux"}'),
- 'error UTF-8 in actual JSON' => array('{"Mascott" : "Tux"}', '{"Mascott" : :}'),
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/BaseTestListenerTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/BaseTestListenerTest.php
deleted file mode 100644
index 0d426cf0..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/BaseTestListenerTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.0.0
- */
-class Framework_BaseTestListenerTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @var PHPUnit_Framework_TestResult
- */
- private $result;
-
- /**
- * @covers PHPUnit_Framework_TestResult
- */
- public function testEndEventsAreCounted()
- {
- $this->result = new PHPUnit_Framework_TestResult;
- $listener = new BaseTestListenerSample();
- $this->result->addListener($listener);
- $test = new Success;
- $test->run($this->result);
-
- $this->assertEquals(1, $listener->endCount);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/CountTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/CountTest.php
deleted file mode 100644
index 79e99e88..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/CountTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.7.30
- * @covers PHPUnit_Framework_Constraint_Count
- */
-class CountTest extends PHPUnit_Framework_TestCase
-{
- public function testCount()
- {
- $countConstraint = new PHPUnit_Framework_Constraint_Count(3);
- $this->assertTrue($countConstraint->evaluate(array(1, 2, 3), '', true));
-
- $countConstraint = new PHPUnit_Framework_Constraint_Count(0);
- $this->assertTrue($countConstraint->evaluate(array(), '', true));
-
- $countConstraint = new PHPUnit_Framework_Constraint_Count(2);
- $it = new TestIterator(array(1, 2));
- $this->assertTrue($countConstraint->evaluate($it, '', true));
- }
-
- public function testCountDoesNotChangeIteratorKey()
- {
- $countConstraint = new PHPUnit_Framework_Constraint_Count(2);
-
- // test with 1st implementation of Iterator
- $it = new TestIterator(array(1, 2));
-
- $countConstraint->evaluate($it, '', true);
- $this->assertEquals(1, $it->current());
-
- $it->next();
- $countConstraint->evaluate($it, '', true);
- $this->assertEquals(2, $it->current());
-
- $it->next();
- $countConstraint->evaluate($it, '', true);
- $this->assertFalse($it->valid());
-
- // test with 2nd implementation of Iterator
- $it = new TestIterator2(array(1, 2));
-
- $countConstraint = new PHPUnit_Framework_Constraint_Count(2);
- $countConstraint->evaluate($it, '', true);
- $this->assertEquals(1, $it->current());
-
- $it->next();
- $countConstraint->evaluate($it, '', true);
- $this->assertEquals(2, $it->current());
-
- $it->next();
- $countConstraint->evaluate($it, '', true);
- $this->assertFalse($it->valid());
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageRegExpTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageRegExpTest.php
deleted file mode 100644
index 1c02a12b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageRegExpTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.3.0
- * @covers PHPUnit_Framework_Constraint_ExceptionMessageRegExp
- */
-class ExceptionMessageRegExpTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @expectedException \Exception
- * @expectedExceptionMessageRegExp /^A polymorphic \w+ message/
- */
- public function testRegexMessage()
- {
- throw new Exception('A polymorphic exception message');
- }
-
- /**
- * @expectedException \Exception
- * @expectedExceptionMessageRegExp /^a poly[a-z]+ [a-zA-Z0-9_]+ me(s){2}age$/i
- */
- public function testRegexMessageExtreme()
- {
- throw new Exception('A polymorphic exception message');
- }
-
- /**
- * @runInSeparateProcess
- * @requires extension xdebug
- * @expectedException \Exception
- * @expectedExceptionMessageRegExp #Screaming preg_match#
- */
- public function testMessageXdebugScreamCompatibility()
- {
- ini_set('xdebug.scream', '1');
- throw new Exception('Screaming preg_match');
- }
-
- /**
- * @coversNothing
- * @expectedException \Exception variadic
- * @expectedExceptionMessageRegExp /^A variadic \w+ message/
- */
- public function testSimultaneousLiteralAndRegExpExceptionMessage()
- {
- throw new Exception('A variadic exception message');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageTest.php
deleted file mode 100644
index 33f4319b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/ExceptionMessageTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.0.20
- * @covers PHPUnit_Framework_Constraint_ExceptionMessage
- */
-class ExceptionMessageTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage A literal exception message
- */
- public function testLiteralMessage()
- {
- throw new Exception('A literal exception message');
- }
-
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage A partial
- */
- public function testPatialMessageBegin()
- {
- throw new Exception('A partial exception message');
- }
-
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage partial exception
- */
- public function testPatialMessageMiddle()
- {
- throw new Exception('A partial exception message');
- }
-
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage exception message
- */
- public function testPatialMessageEnd()
- {
- throw new Exception('A partial exception message');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatches/ErrorMessageProviderTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatches/ErrorMessageProviderTest.php
deleted file mode 100644
index 85290262..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatches/ErrorMessageProviderTest.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since File available since Release 3.7.0
- */
-class Framework_Constraint_JsonMatches_ErrorMessageProviderTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider translateTypeToPrefixDataprovider
- * @covers PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::translateTypeToPrefix
- */
- public function testTranslateTypeToPrefix($expected, $type)
- {
- $this->assertEquals(
- $expected,
- PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::translateTypeToPrefix($type)
- );
- }
-
- /**
- * @dataProvider determineJsonErrorDataprovider
- * @covers PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError
- */
- public function testDetermineJsonError($expected, $error, $prefix)
- {
- $this->assertEquals(
- $expected,
- PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError(
- $error,
- $prefix
- )
- );
- }
-
- public static function determineJsonErrorDataprovider()
- {
- return array(
- 'JSON_ERROR_NONE' => array(
- null, 'json_error_none', ''
- ),
- 'JSON_ERROR_DEPTH' => array(
- 'Maximum stack depth exceeded', JSON_ERROR_DEPTH, ''
- ),
- 'prefixed JSON_ERROR_DEPTH' => array(
- 'TUX: Maximum stack depth exceeded', JSON_ERROR_DEPTH, 'TUX: '
- ),
- 'JSON_ERROR_STATE_MISMatch' => array(
- 'Underflow or the modes mismatch', JSON_ERROR_STATE_MISMATCH, ''
- ),
- 'JSON_ERROR_CTRL_CHAR' => array(
- 'Unexpected control character found', JSON_ERROR_CTRL_CHAR, ''
- ),
- 'JSON_ERROR_SYNTAX' => array(
- 'Syntax error, malformed JSON', JSON_ERROR_SYNTAX, ''
- ),
- 'JSON_ERROR_UTF8`' => array(
- 'Malformed UTF-8 characters, possibly incorrectly encoded',
- JSON_ERROR_UTF8,
- ''
- ),
- 'Invalid error indicator' => array(
- 'Unknown error', 55, ''
- ),
- );
- }
-
- public static function translateTypeToPrefixDataprovider()
- {
- return array(
- 'expected' => array('Expected value JSON decode error - ', 'expected'),
- 'actual' => array('Actual value JSON decode error - ', 'actual'),
- 'default' => array('', ''),
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatchesTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatchesTest.php
deleted file mode 100644
index 2b7221c4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatchesTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since File available since Release 3.7.0
- */
-class Framework_Constraint_JsonMatchesTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider evaluateDataprovider
- * @covers PHPUnit_Framework_Constraint_JsonMatches::evaluate
- * @covers PHPUnit_Framework_Constraint_JsonMatches::matches
- * @covers PHPUnit_Framework_Constraint_JsonMatches::__construct
- */
- public function testEvaluate($expected, $jsonOther, $jsonValue)
- {
- $constraint = new PHPUnit_Framework_Constraint_JsonMatches($jsonValue);
- $this->assertEquals($expected, $constraint->evaluate($jsonOther, '', true));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_JsonMatches::toString
- */
- public function testToString()
- {
- $jsonValue = json_encode(array('Mascott' => 'Tux'));
- $constraint = new PHPUnit_Framework_Constraint_JsonMatches($jsonValue);
-
- $this->assertEquals('matches JSON string "' . $jsonValue . '"', $constraint->toString());
- }
-
- public static function evaluateDataprovider()
- {
- return array(
- 'valid JSON' => array(true, json_encode(array('Mascott' => 'Tux')), json_encode(array('Mascott' => 'Tux'))),
- 'error syntax' => array(false, '{"Mascott"::}', json_encode(array('Mascott' => 'Tux'))),
- 'error UTF-8' => array(false, json_encode('\xB1\x31'), json_encode(array('Mascott' => 'Tux'))),
- 'invalid JSON in class instantiation' => array(false, json_encode(array('Mascott' => 'Tux')), '{"Mascott"::}'),
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
deleted file mode 100644
index 71656608..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
+++ /dev/null
@@ -1,3489 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.0.0
- */
-class Framework_ConstraintTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers PHPUnit_Framework_Constraint_ArrayHasKey
- * @covers PHPUnit_Framework_Assert::arrayHasKey
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintArrayHasKey()
- {
- $constraint = PHPUnit_Framework_Assert::arrayHasKey(0);
-
- $this->assertFalse($constraint->evaluate(array(), '', true));
- $this->assertEquals('has the key 0', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(array());
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-Failed asserting that an array has the key 0.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ArrayHasKey
- * @covers PHPUnit_Framework_Assert::arrayHasKey
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintArrayHasKey2()
- {
- $constraint = PHPUnit_Framework_Assert::arrayHasKey(0);
-
- try {
- $constraint->evaluate(array(), 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message\nFailed asserting that an array has the key 0.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ArrayHasKey
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::arrayHasKey
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintArrayNotHasKey()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::arrayHasKey(0)
- );
-
- $this->assertFalse($constraint->evaluate(array(0 => 1), '', true));
- $this->assertEquals('does not have the key 0', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(array(0 => 1));
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that an array does not have the key 0.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ArrayHasKey
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::arrayHasKey
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintArrayNotHasKey2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::arrayHasKey(0)
- );
-
- try {
- $constraint->evaluate(array(0), 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that an array does not have the key 0.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_FileExists
- * @covers PHPUnit_Framework_Assert::fileExists
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintFileExists()
- {
- $constraint = PHPUnit_Framework_Assert::fileExists();
-
- $this->assertFalse($constraint->evaluate('foo', '', true));
- $this->assertEquals('file exists', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('foo');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that file "foo" exists.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_FileExists
- * @covers PHPUnit_Framework_Assert::fileExists
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintFileExists2()
- {
- $constraint = PHPUnit_Framework_Assert::fileExists();
-
- try {
- $constraint->evaluate('foo', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that file "foo" exists.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_FileExists
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_Assert::fileExists
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintFileNotExists()
- {
- $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithNonPublicAttributes.php';
-
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::fileExists()
- );
-
- $this->assertFalse($constraint->evaluate($file, '', true));
- $this->assertEquals('file does not exist', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate($file);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that file "$file" does not exist.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_FileExists
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_Assert::fileExists
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintFileNotExists2()
- {
- $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithNonPublicAttributes.php';
-
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::fileExists()
- );
-
- try {
- $constraint->evaluate($file, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that file "$file" does not exist.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_GreaterThan
- * @covers PHPUnit_Framework_Assert::greaterThan
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintGreaterThan()
- {
- $constraint = PHPUnit_Framework_Assert::greaterThan(1);
-
- $this->assertFalse($constraint->evaluate(0, '', true));
- $this->assertTrue($constraint->evaluate(2, '', true));
- $this->assertEquals('is greater than 1', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(0);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 0 is greater than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_GreaterThan
- * @covers PHPUnit_Framework_Assert::greaterThan
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintGreaterThan2()
- {
- $constraint = PHPUnit_Framework_Assert::greaterThan(1);
-
- try {
- $constraint->evaluate(0, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 0 is greater than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_GreaterThan
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::greaterThan
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotGreaterThan()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::greaterThan(1)
- );
-
- $this->assertTrue($constraint->evaluate(1, '', true));
- $this->assertEquals('is not greater than 1', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(2);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 2 is not greater than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_GreaterThan
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::greaterThan
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotGreaterThan2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::greaterThan(1)
- );
-
- try {
- $constraint->evaluate(2, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 2 is not greater than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Constraint_GreaterThan
- * @covers PHPUnit_Framework_Constraint_Or
- * @covers PHPUnit_Framework_Assert::greaterThanOrEqual
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintGreaterThanOrEqual()
- {
- $constraint = PHPUnit_Framework_Assert::greaterThanOrEqual(1);
-
- $this->assertTrue($constraint->evaluate(1, '', true));
- $this->assertFalse($constraint->evaluate(0, '', true));
- $this->assertEquals('is equal to 1 or is greater than 1', $constraint->toString());
- $this->assertEquals(2, count($constraint));
-
- try {
- $constraint->evaluate(0);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 0 is equal to 1 or is greater than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Constraint_GreaterThan
- * @covers PHPUnit_Framework_Constraint_Or
- * @covers PHPUnit_Framework_Assert::greaterThanOrEqual
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintGreaterThanOrEqual2()
- {
- $constraint = PHPUnit_Framework_Assert::greaterThanOrEqual(1);
-
- try {
- $constraint->evaluate(0, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 0 is equal to 1 or is greater than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Constraint_GreaterThan
- * @covers PHPUnit_Framework_Constraint_Or
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::greaterThanOrEqual
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotGreaterThanOrEqual()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::greaterThanOrEqual(1)
- );
-
- $this->assertFalse($constraint->evaluate(1, '', true));
- $this->assertEquals('not( is equal to 1 or is greater than 1 )', $constraint->toString());
- $this->assertEquals(2, count($constraint));
-
- try {
- $constraint->evaluate(1);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that not( 1 is equal to 1 or is greater than 1 ).
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Constraint_GreaterThan
- * @covers PHPUnit_Framework_Constraint_Or
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::greaterThanOrEqual
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotGreaterThanOrEqual2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::greaterThanOrEqual(1)
- );
-
- try {
- $constraint->evaluate(1, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that not( 1 is equal to 1 or is greater than 1 ).
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsAnything
- * @covers PHPUnit_Framework_Assert::anything
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsAnything()
- {
- $constraint = PHPUnit_Framework_Assert::anything();
-
- $this->assertTrue($constraint->evaluate(null, '', true));
- $this->assertNull($constraint->evaluate(null));
- $this->assertEquals('is anything', $constraint->toString());
- $this->assertEquals(0, count($constraint));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsAnything
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::anything
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotIsAnything()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::anything()
- );
-
- $this->assertFalse($constraint->evaluate(null, '', true));
- $this->assertEquals('is not anything', $constraint->toString());
- $this->assertEquals(0, count($constraint));
-
- try {
- $constraint->evaluate(null);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that null is not anything.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Assert::equalTo
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsEqual()
- {
- $constraint = PHPUnit_Framework_Assert::equalTo(1);
-
- $this->assertTrue($constraint->evaluate(1, '', true));
- $this->assertFalse($constraint->evaluate(0, '', true));
- $this->assertEquals('is equal to 1', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(0);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 0 matches expected 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- public function isEqualProvider()
- {
- $a = new stdClass;
- $a->foo = 'bar';
- $b = new stdClass;
- $ahash = spl_object_hash($a);
- $bhash = spl_object_hash($b);
-
- $c = new stdClass;
- $c->foo = 'bar';
- $c->int = 1;
- $c->array = array(0, array(1), array(2), 3);
- $c->related = new stdClass;
- $c->related->foo = "a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk";
- $c->self = $c;
- $c->c = $c;
- $d = new stdClass;
- $d->foo = 'bar';
- $d->int = 2;
- $d->array = array(0, array(4), array(2), 3);
- $d->related = new stdClass;
- $d->related->foo = "a\np\nc\nd\ne\nf\ng\nh\ni\nw\nk";
- $d->self = $d;
- $d->c = $c;
-
- $storage1 = new SplObjectStorage;
- $storage1->attach($a);
- $storage1->attach($b);
- $storage2 = new SplObjectStorage;
- $storage2->attach($b);
- $storage1hash = spl_object_hash($storage1);
- $storage2hash = spl_object_hash($storage2);
-
- $dom1 = new DOMDocument;
- $dom1->preserveWhiteSpace = false;
- $dom1->loadXML('<root></root>');
- $dom2 = new DOMDocument;
- $dom2->preserveWhiteSpace = false;
- $dom2->loadXML('<root><foo/></root>');
-
- $data = array(
- array(1, 0, <<<EOF
-Failed asserting that 0 matches expected 1.
-
-EOF
- ),
- array(1.1, 0, <<<EOF
-Failed asserting that 0 matches expected 1.1.
-
-EOF
- ),
- array('a', 'b', <<<EOF
-Failed asserting that two strings are equal.
---- Expected
-+++ Actual
-@@ @@
--'a'
-+'b'
-
-EOF
- ),
- array("a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk", "a\np\nc\nd\ne\nf\ng\nh\ni\nw\nk", <<<EOF
-Failed asserting that two strings are equal.
---- Expected
-+++ Actual
-@@ @@
- 'a
--b
-+p
-
-@@ @@
- i
--j
-+w
- k'
-
-EOF
- ),
- array(1, array(0), <<<EOF
-Array (...) does not match expected type "integer".
-
-EOF
- ),
- array(array(0), 1, <<<EOF
-1 does not match expected type "array".
-
-EOF
- ),
- array(array(0), array(1), <<<EOF
-Failed asserting that two arrays are equal.
---- Expected
-+++ Actual
-@@ @@
- Array (
-- 0 => 0
-+ 0 => 1
- )
-
-EOF
- ),
- array(array(true), array('true'), <<<EOF
-Failed asserting that two arrays are equal.
---- Expected
-+++ Actual
-@@ @@
- Array (
-- 0 => true
-+ 0 => 'true'
- )
-
-EOF
- ),
- array(array(0, array(1), array(2), 3), array(0, array(4), array(2), 3), <<<EOF
-Failed asserting that two arrays are equal.
---- Expected
-+++ Actual
-@@ @@
- Array (
- 0 => 0
- 1 => Array (
-- 0 => 1
-+ 0 => 4
- )
- 2 => Array (...)
- 3 => 3
- )
-
-EOF
- ),
- array($a, array(0), <<<EOF
-Array (...) does not match expected type "object".
-
-EOF
- ),
- array(array(0), $a, <<<EOF
-stdClass Object (...) does not match expected type "array".
-
-EOF
- ),
- array($a, $b, <<<EOF
-Failed asserting that two objects are equal.
---- Expected
-+++ Actual
-@@ @@
- stdClass Object (
-- 'foo' => 'bar'
- )
-
-EOF
- ),
- array($c, $d, <<<EOF
-Failed asserting that two objects are equal.
---- Expected
-+++ Actual
-@@ @@
- stdClass Object (
- 'foo' => 'bar'
-- 'int' => 1
-+ 'int' => 2
- 'array' => Array (
- 0 => 0
- 1 => Array (
-- 0 => 1
-+ 0 => 4
-
-@@ @@
- 'foo' => 'a
-- b
-+ p
-
-@@ @@
- i
-- j
-+ w
- k'
- )
- 'self' => stdClass Object (...)
- 'c' => stdClass Object (...)
- )
-
-EOF
- ),
- array($dom1, $dom2, <<<EOF
-Failed asserting that two DOM documents are equal.
---- Expected
-+++ Actual
-@@ @@
- <?xml version="1.0"?>
--<root/>
-+<root>
-+ <foo/>
-+</root>
-
-EOF
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/Chicago')),
- <<<EOF
-Failed asserting that two DateTime objects are equal.
---- Expected
-+++ Actual
-@@ @@
--2013-03-29T04:13:35.000000-0400
-+2013-03-29T04:13:35.000000-0500
-
-EOF
- ),
- );
-
- if (PHP_MAJOR_VERSION < 7) {
- $data[] = array($storage1, $storage2, <<<EOF
-Failed asserting that two objects are equal.
---- Expected
-+++ Actual
-@@ @@
--SplObjectStorage Object &$storage1hash (
-- '$ahash' => Array &0 (
-- 'obj' => stdClass Object &$ahash (
-- 'foo' => 'bar'
-- )
-+SplObjectStorage Object &$storage2hash (
-+ '$bhash' => Array &0 (
-+ 'obj' => stdClass Object &$bhash ()
- 'inf' => null
- )
-- '$bhash' => Array &0
- )
-
-EOF
- );
- } else {
- $data[] = array($storage1, $storage2, <<<EOF
-Failed asserting that two objects are equal.
---- Expected
-+++ Actual
-@@ @@
--SplObjectStorage Object &$storage1hash (
-- '$ahash' => Array &0 (
-- 'obj' => stdClass Object &$ahash (
-- 'foo' => 'bar'
-- )
-+SplObjectStorage Object &$storage2hash (
-+ '$bhash' => Array &0 (
-+ 'obj' => stdClass Object &$bhash ()
- 'inf' => null
- )
-- '$bhash' => Array &0
- )
-
-EOF
- );
- }
-
- return $data;
- }
-
- /**
- * @dataProvider isEqualProvider
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Assert::equalTo
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsEqual2($expected, $actual, $message)
- {
- $constraint = PHPUnit_Framework_Assert::equalTo($expected);
-
- try {
- $constraint->evaluate($actual, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- "custom message\n$message",
- $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e))
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::equalTo
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotEqual()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::equalTo(1)
- );
-
- $this->assertTrue($constraint->evaluate(0, '', true));
- $this->assertFalse($constraint->evaluate(1, '', true));
- $this->assertEquals('is not equal to 1', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(1);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 1 is not equal to 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::equalTo
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotEqual2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::equalTo(1)
- );
-
- try {
- $constraint->evaluate(1, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 1 is not equal to 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsIdentical
- * @covers PHPUnit_Framework_Assert::identicalTo
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsIdentical()
- {
- $a = new stdClass;
- $b = new stdClass;
-
- $constraint = PHPUnit_Framework_Assert::identicalTo($a);
-
- $this->assertFalse($constraint->evaluate($b, '', true));
- $this->assertTrue($constraint->evaluate($a, '', true));
- $this->assertEquals('is identical to an object of class "stdClass"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate($b);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-Failed asserting that two variables reference the same object.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsIdentical
- * @covers PHPUnit_Framework_Assert::identicalTo
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsIdentical2()
- {
- $a = new stdClass;
- $b = new stdClass;
-
- $constraint = PHPUnit_Framework_Assert::identicalTo($a);
-
- try {
- $constraint->evaluate($b, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that two variables reference the same object.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsIdentical
- * @covers PHPUnit_Framework_Assert::identicalTo
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsIdentical3()
- {
- $constraint = PHPUnit_Framework_Assert::identicalTo('a');
-
- try {
- $constraint->evaluate('b', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that two strings are identical.
---- Expected
-+++ Actual
-@@ @@
--a
-+b
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsIdentical
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::identicalTo
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotIdentical()
- {
- $a = new stdClass;
- $b = new stdClass;
-
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::identicalTo($a)
- );
-
- $this->assertTrue($constraint->evaluate($b, '', true));
- $this->assertFalse($constraint->evaluate($a, '', true));
- $this->assertEquals('is not identical to an object of class "stdClass"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate($a);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-Failed asserting that two variables don't reference the same object.
-
-EOF
- ,
- $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e))
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsIdentical
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::identicalTo
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotIdentical2()
- {
- $a = new stdClass;
-
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::identicalTo($a)
- );
-
- try {
- $constraint->evaluate($a, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that two variables don't reference the same object.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsIdentical
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::identicalTo
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotIdentical3()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::identicalTo('a')
- );
-
- try {
- $constraint->evaluate('a', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that two strings are not identical.
-
-EOF
- ,
- $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e))
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsInstanceOf
- * @covers PHPUnit_Framework_Assert::isInstanceOf
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsInstanceOf()
- {
- $constraint = PHPUnit_Framework_Assert::isInstanceOf('Exception');
-
- $this->assertFalse($constraint->evaluate(new stdClass, '', true));
- $this->assertTrue($constraint->evaluate(new Exception, '', true));
- $this->assertEquals('is instance of class "Exception"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- $interfaceConstraint = PHPUnit_Framework_Assert::isInstanceOf('Countable');
- $this->assertFalse($interfaceConstraint->evaluate(new stdClass, '', true));
- $this->assertTrue($interfaceConstraint->evaluate(new ArrayObject, '', true));
- $this->assertEquals('is instance of interface "Countable"', $interfaceConstraint->toString());
-
- try {
- $constraint->evaluate(new stdClass);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that stdClass Object () is an instance of class "Exception".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsInstanceOf
- * @covers PHPUnit_Framework_Assert::isInstanceOf
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsInstanceOf2()
- {
- $constraint = PHPUnit_Framework_Assert::isInstanceOf('Exception');
-
- try {
- $constraint->evaluate(new stdClass, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that stdClass Object () is an instance of class "Exception".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsInstanceOf
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::isInstanceOf
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotInstanceOf()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::isInstanceOf('stdClass')
- );
-
- $this->assertFalse($constraint->evaluate(new stdClass, '', true));
- $this->assertTrue($constraint->evaluate(new Exception, '', true));
- $this->assertEquals('is not instance of class "stdClass"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(new stdClass);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that stdClass Object () is not an instance of class "stdClass".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsInstanceOf
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::isInstanceOf
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotInstanceOf2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::isInstanceOf('stdClass')
- );
-
- try {
- $constraint->evaluate(new stdClass, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that stdClass Object () is not an instance of class "stdClass".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsType
- * @covers PHPUnit_Framework_Assert::isType
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsType()
- {
- $constraint = PHPUnit_Framework_Assert::isType('string');
-
- $this->assertFalse($constraint->evaluate(0, '', true));
- $this->assertTrue($constraint->evaluate('', '', true));
- $this->assertEquals('is of type "string"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(new stdClass);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertStringMatchesFormat(<<<EOF
-Failed asserting that stdClass Object &%x () is of type "string".
-
-EOF
- ,
- $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e))
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsType
- * @covers PHPUnit_Framework_Assert::isType
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsType2()
- {
- $constraint = PHPUnit_Framework_Assert::isType('string');
-
- try {
- $constraint->evaluate(new stdClass, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertStringMatchesFormat(<<<EOF
-custom message
-Failed asserting that stdClass Object &%x () is of type "string".
-
-EOF
- ,
- $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e))
- );
-
- return;
- }
-
- $this->fail();
- }
-
- public function resources()
- {
- $fh = fopen(__FILE__, 'r');
- fclose($fh);
-
- return array(
- 'open resource' => array(fopen(__FILE__, 'r')),
- 'closed resource' => array($fh),
- );
- }
-
- /**
- * @dataProvider resources
- * @covers PHPUnit_Framework_Constraint_IsType
- * @covers PHPUnit_Framework_Assert::isType
- */
- public function testConstraintIsResourceTypeEvaluatesCorrectlyWithResources($resource)
- {
- $constraint = PHPUnit_Framework_Assert::isType('resource');
-
- $this->assertTrue($constraint->evaluate($resource, '', true));
-
- @fclose($resource);
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsType
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::isType
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotType()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::isType('string')
- );
-
- $this->assertTrue($constraint->evaluate(0, '', true));
- $this->assertFalse($constraint->evaluate('', '', true));
- $this->assertEquals('is not of type "string"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that '' is not of type "string".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsType
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::isType
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotType2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::isType('string')
- );
-
- try {
- $constraint->evaluate('', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that '' is not of type "string".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsNull
- * @covers PHPUnit_Framework_Assert::isNull
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNull()
- {
- $constraint = PHPUnit_Framework_Assert::isNull();
-
- $this->assertFalse($constraint->evaluate(0, '', true));
- $this->assertTrue($constraint->evaluate(null, '', true));
- $this->assertEquals('is null', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(0);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-Failed asserting that 0 is null.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsNull
- * @covers PHPUnit_Framework_Assert::isNull
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNull2()
- {
- $constraint = PHPUnit_Framework_Assert::isNull();
-
- try {
- $constraint->evaluate(0, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that 0 is null.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsNull
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::isNull
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotNull()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::isNull()
- );
-
- $this->assertFalse($constraint->evaluate(null, '', true));
- $this->assertTrue($constraint->evaluate(0, '', true));
- $this->assertEquals('is not null', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(null);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-Failed asserting that null is not null.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsNull
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::isNull
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsNotNull2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::isNull()
- );
-
- try {
- $constraint->evaluate(null, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that null is not null.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_LessThan
- * @covers PHPUnit_Framework_Assert::lessThan
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintLessThan()
- {
- $constraint = PHPUnit_Framework_Assert::lessThan(1);
-
- $this->assertTrue($constraint->evaluate(0, '', true));
- $this->assertFalse($constraint->evaluate(1, '', true));
- $this->assertEquals('is less than 1', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(1);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 1 is less than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_LessThan
- * @covers PHPUnit_Framework_Assert::lessThan
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintLessThan2()
- {
- $constraint = PHPUnit_Framework_Assert::lessThan(1);
-
- try {
- $constraint->evaluate(1, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 1 is less than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_LessThan
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::lessThan
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotLessThan()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::lessThan(1)
- );
-
- $this->assertTrue($constraint->evaluate(1, '', true));
- $this->assertFalse($constraint->evaluate(0, '', true));
- $this->assertEquals('is not less than 1', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(0);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 0 is not less than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_LessThan
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::lessThan
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotLessThan2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::lessThan(1)
- );
-
- try {
- $constraint->evaluate(0, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 0 is not less than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Constraint_LessThan
- * @covers PHPUnit_Framework_Constraint_Or
- * @covers PHPUnit_Framework_Assert::lessThanOrEqual
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintLessThanOrEqual()
- {
- $constraint = PHPUnit_Framework_Assert::lessThanOrEqual(1);
-
- $this->assertTrue($constraint->evaluate(1, '', true));
- $this->assertFalse($constraint->evaluate(2, '', true));
- $this->assertEquals('is equal to 1 or is less than 1', $constraint->toString());
- $this->assertEquals(2, count($constraint));
-
- try {
- $constraint->evaluate(2);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 2 is equal to 1 or is less than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_Callback
- */
- public function testConstraintCallback()
- {
- $closureReflect = function ($parameter) {
- return $parameter;
- };
-
- $closureWithoutParameter = function () {
- return true;
- };
-
- $constraint = PHPUnit_Framework_Assert::callback($closureWithoutParameter);
- $this->assertTrue($constraint->evaluate('', '', true));
-
- $constraint = PHPUnit_Framework_Assert::callback($closureReflect);
- $this->assertTrue($constraint->evaluate(true, '', true));
- $this->assertFalse($constraint->evaluate(false, '', true));
-
- $callback = array($this, 'callbackReturningTrue');
- $constraint = PHPUnit_Framework_Assert::callback($callback);
- $this->assertTrue($constraint->evaluate(false, '', true));
-
- $callback = array('Framework_ConstraintTest', 'staticCallbackReturningTrue');
- $constraint = PHPUnit_Framework_Assert::callback($callback);
- $this->assertTrue($constraint->evaluate(null, '', true));
-
- $this->assertEquals('is accepted by specified callback', $constraint->toString());
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_Callback
- * @expectedException PHPUnit_Framework_ExpectationFailedException
- * @expectedExceptionMessage Failed asserting that 'This fails' is accepted by specified callback.
- */
- public function testConstraintCallbackFailure()
- {
- $constraint = PHPUnit_Framework_Assert::callback(function () {
- return false;
- });
- $constraint->evaluate('This fails');
- }
-
- public function callbackReturningTrue()
- {
- return true;
- }
-
- public static function staticCallbackReturningTrue()
- {
- return true;
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Constraint_LessThan
- * @covers PHPUnit_Framework_Constraint_Or
- * @covers PHPUnit_Framework_Assert::lessThanOrEqual
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintLessThanOrEqual2()
- {
- $constraint = PHPUnit_Framework_Assert::lessThanOrEqual(1);
-
- try {
- $constraint->evaluate(2, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 2 is equal to 1 or is less than 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Constraint_LessThan
- * @covers PHPUnit_Framework_Constraint_Or
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::lessThanOrEqual
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotLessThanOrEqual()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::lessThanOrEqual(1)
- );
-
- $this->assertTrue($constraint->evaluate(2, '', true));
- $this->assertFalse($constraint->evaluate(1, '', true));
- $this->assertEquals('not( is equal to 1 or is less than 1 )', $constraint->toString());
- $this->assertEquals(2, count($constraint));
-
- try {
- $constraint->evaluate(1);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that not( 1 is equal to 1 or is less than 1 ).
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEqual
- * @covers PHPUnit_Framework_Constraint_LessThan
- * @covers PHPUnit_Framework_Constraint_Or
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::lessThanOrEqual
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotLessThanOrEqual2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::lessThanOrEqual(1)
- );
-
- try {
- $constraint->evaluate(1, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that not( 1 is equal to 1 or is less than 1 ).
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ClassHasAttribute
- * @covers PHPUnit_Framework_Assert::classHasAttribute
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintClassHasAttribute()
- {
- $constraint = PHPUnit_Framework_Assert::classHasAttribute('privateAttribute');
-
- $this->assertTrue($constraint->evaluate('ClassWithNonPublicAttributes', '', true));
- $this->assertFalse($constraint->evaluate('stdClass', '', true));
- $this->assertEquals('has attribute "privateAttribute"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('stdClass');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that class "stdClass" has attribute "privateAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ClassHasAttribute
- * @covers PHPUnit_Framework_Assert::classHasAttribute
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintClassHasAttribute2()
- {
- $constraint = PHPUnit_Framework_Assert::classHasAttribute('privateAttribute');
-
- try {
- $constraint->evaluate('stdClass', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that class "stdClass" has attribute "privateAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ClassHasAttribute
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::classHasAttribute
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintClassNotHasAttribute()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::classHasAttribute('privateAttribute')
- );
-
- $this->assertTrue($constraint->evaluate('stdClass', '', true));
- $this->assertFalse($constraint->evaluate('ClassWithNonPublicAttributes', '', true));
- $this->assertEquals('does not have attribute "privateAttribute"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that class "ClassWithNonPublicAttributes" does not have attribute "privateAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ClassHasAttribute
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::classHasAttribute
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintClassNotHasAttribute2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::classHasAttribute('privateAttribute')
- );
-
- try {
- $constraint->evaluate('ClassWithNonPublicAttributes', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that class "ClassWithNonPublicAttributes" does not have attribute "privateAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute
- * @covers PHPUnit_Framework_Assert::classHasStaticAttribute
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintClassHasStaticAttribute()
- {
- $constraint = PHPUnit_Framework_Assert::classHasStaticAttribute('privateStaticAttribute');
-
- $this->assertTrue($constraint->evaluate('ClassWithNonPublicAttributes', '', true));
- $this->assertFalse($constraint->evaluate('stdClass', '', true));
- $this->assertEquals('has static attribute "privateStaticAttribute"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('stdClass');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that class "stdClass" has static attribute "privateStaticAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute
- * @covers PHPUnit_Framework_Assert::classHasStaticAttribute
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintClassHasStaticAttribute2()
- {
- $constraint = PHPUnit_Framework_Assert::classHasStaticAttribute('foo');
-
- try {
- $constraint->evaluate('stdClass', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that class "stdClass" has static attribute "foo".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::classHasStaticAttribute
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintClassNotHasStaticAttribute()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::classHasStaticAttribute('privateStaticAttribute')
- );
-
- $this->assertTrue($constraint->evaluate('stdClass', '', true));
- $this->assertFalse($constraint->evaluate('ClassWithNonPublicAttributes', '', true));
- $this->assertEquals('does not have static attribute "privateStaticAttribute"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('ClassWithNonPublicAttributes');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that class "ClassWithNonPublicAttributes" does not have static attribute "privateStaticAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::classHasStaticAttribute
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintClassNotHasStaticAttribute2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::classHasStaticAttribute('privateStaticAttribute')
- );
-
- try {
- $constraint->evaluate('ClassWithNonPublicAttributes', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that class "ClassWithNonPublicAttributes" does not have static attribute "privateStaticAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ObjectHasAttribute
- * @covers PHPUnit_Framework_Assert::objectHasAttribute
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintObjectHasAttribute()
- {
- $constraint = PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute');
-
- $this->assertTrue($constraint->evaluate(new ClassWithNonPublicAttributes, '', true));
- $this->assertFalse($constraint->evaluate(new stdClass, '', true));
- $this->assertEquals('has attribute "privateAttribute"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(new stdClass);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that object of class "stdClass" has attribute "privateAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ObjectHasAttribute
- * @covers PHPUnit_Framework_Assert::objectHasAttribute
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintObjectHasAttribute2()
- {
- $constraint = PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute');
-
- try {
- $constraint->evaluate(new stdClass, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that object of class "stdClass" has attribute "privateAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ObjectHasAttribute
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::objectHasAttribute
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintObjectNotHasAttribute()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute')
- );
-
- $this->assertTrue($constraint->evaluate(new stdClass, '', true));
- $this->assertFalse($constraint->evaluate(new ClassWithNonPublicAttributes, '', true));
- $this->assertEquals('does not have attribute "privateAttribute"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(new ClassWithNonPublicAttributes);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that object of class "ClassWithNonPublicAttributes" does not have attribute "privateAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ObjectHasAttribute
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::objectHasAttribute
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintObjectNotHasAttribute2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute')
- );
-
- try {
- $constraint->evaluate(new ClassWithNonPublicAttributes, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that object of class "ClassWithNonPublicAttributes" does not have attribute "privateAttribute".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_PCREMatch
- * @covers PHPUnit_Framework_Assert::matchesRegularExpression
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintPCREMatch()
- {
- $constraint = PHPUnit_Framework_Assert::matchesRegularExpression('/foo/');
-
- $this->assertFalse($constraint->evaluate('barbazbar', '', true));
- $this->assertTrue($constraint->evaluate('barfoobar', '', true));
- $this->assertEquals('matches PCRE pattern "/foo/"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('barbazbar');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 'barbazbar' matches PCRE pattern "/foo/".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_PCREMatch
- * @covers PHPUnit_Framework_Assert::matchesRegularExpression
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintPCREMatch2()
- {
- $constraint = PHPUnit_Framework_Assert::matchesRegularExpression('/foo/');
-
- try {
- $constraint->evaluate('barbazbar', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that 'barbazbar' matches PCRE pattern "/foo/".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_PCREMatch
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::matchesRegularExpression
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintPCRENotMatch()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::matchesRegularExpression('/foo/')
- );
-
- $this->assertTrue($constraint->evaluate('barbazbar', '', true));
- $this->assertFalse($constraint->evaluate('barfoobar', '', true));
- $this->assertEquals('does not match PCRE pattern "/foo/"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('barfoobar');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 'barfoobar' does not match PCRE pattern "/foo/".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_PCREMatch
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::matchesRegularExpression
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintPCRENotMatch2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::matchesRegularExpression('/foo/')
- );
-
- try {
- $constraint->evaluate('barfoobar', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(<<<EOF
-custom message
-Failed asserting that 'barfoobar' does not match PCRE pattern "/foo/".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringMatches
- * @covers PHPUnit_Framework_Assert::matches
- * @covers PHPUnit_Framework_Constraint::count
- */
- public function testConstraintStringMatches()
- {
- $constraint = PHPUnit_Framework_Assert::matches('*%c*');
- $this->assertFalse($constraint->evaluate('**', '', true));
- $this->assertTrue($constraint->evaluate('***', '', true));
- $this->assertEquals('matches PCRE pattern "/^\*.\*$/s"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringMatches
- * @covers PHPUnit_Framework_Assert::matches
- * @covers PHPUnit_Framework_Constraint::count
- */
- public function testConstraintStringMatches2()
- {
- $constraint = PHPUnit_Framework_Assert::matches('*%s*');
- $this->assertFalse($constraint->evaluate('**', '', true));
- $this->assertTrue($constraint->evaluate('***', '', true));
- $this->assertEquals('matches PCRE pattern "/^\*[^\r\n]+\*$/s"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringMatches
- * @covers PHPUnit_Framework_Assert::matches
- * @covers PHPUnit_Framework_Constraint::count
- */
- public function testConstraintStringMatches3()
- {
- $constraint = PHPUnit_Framework_Assert::matches('*%i*');
- $this->assertFalse($constraint->evaluate('**', '', true));
- $this->assertTrue($constraint->evaluate('*0*', '', true));
- $this->assertEquals('matches PCRE pattern "/^\*[+-]?\d+\*$/s"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringMatches
- * @covers PHPUnit_Framework_Assert::matches
- * @covers PHPUnit_Framework_Constraint::count
- */
- public function testConstraintStringMatches4()
- {
- $constraint = PHPUnit_Framework_Assert::matches('*%d*');
- $this->assertFalse($constraint->evaluate('**', '', true));
- $this->assertTrue($constraint->evaluate('*0*', '', true));
- $this->assertEquals('matches PCRE pattern "/^\*\d+\*$/s"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringMatches
- * @covers PHPUnit_Framework_Assert::matches
- * @covers PHPUnit_Framework_Constraint::count
- */
- public function testConstraintStringMatches5()
- {
- $constraint = PHPUnit_Framework_Assert::matches('*%x*');
- $this->assertFalse($constraint->evaluate('**', '', true));
- $this->assertTrue($constraint->evaluate('*0f0f0f*', '', true));
- $this->assertEquals('matches PCRE pattern "/^\*[0-9a-fA-F]+\*$/s"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringMatches
- * @covers PHPUnit_Framework_Assert::matches
- * @covers PHPUnit_Framework_Constraint::count
- */
- public function testConstraintStringMatches6()
- {
- $constraint = PHPUnit_Framework_Assert::matches('*%f*');
- $this->assertFalse($constraint->evaluate('**', '', true));
- $this->assertTrue($constraint->evaluate('*1.0*', '', true));
- $this->assertEquals('matches PCRE pattern "/^\*[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?\*$/s"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringStartsWith
- * @covers PHPUnit_Framework_Assert::stringStartsWith
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringStartsWith()
- {
- $constraint = PHPUnit_Framework_Assert::stringStartsWith('prefix');
-
- $this->assertFalse($constraint->evaluate('foo', '', true));
- $this->assertTrue($constraint->evaluate('prefixfoo', '', true));
- $this->assertEquals('starts with "prefix"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('foo');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 'foo' starts with "prefix".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringStartsWith
- * @covers PHPUnit_Framework_Assert::stringStartsWith
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringStartsWith2()
- {
- $constraint = PHPUnit_Framework_Assert::stringStartsWith('prefix');
-
- try {
- $constraint->evaluate('foo', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message\nFailed asserting that 'foo' starts with "prefix".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringStartsWith
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::stringStartsWith
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringStartsNotWith()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::stringStartsWith('prefix')
- );
-
- $this->assertTrue($constraint->evaluate('foo', '', true));
- $this->assertFalse($constraint->evaluate('prefixfoo', '', true));
- $this->assertEquals('starts not with "prefix"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('prefixfoo');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 'prefixfoo' starts not with "prefix".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringStartsWith
- * @covers PHPUnit_Framework_Assert::stringStartsWith
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringStartsNotWith2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::stringStartsWith('prefix')
- );
-
- try {
- $constraint->evaluate('prefixfoo', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 'prefixfoo' starts not with "prefix".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringContains
- * @covers PHPUnit_Framework_Assert::stringContains
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringContains()
- {
- $constraint = PHPUnit_Framework_Assert::stringContains('foo');
-
- $this->assertFalse($constraint->evaluate('barbazbar', '', true));
- $this->assertTrue($constraint->evaluate('barfoobar', '', true));
- $this->assertEquals('contains "foo"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('barbazbar');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 'barbazbar' contains "foo".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringContains
- * @covers PHPUnit_Framework_Assert::stringContains
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringContains2()
- {
- $constraint = PHPUnit_Framework_Assert::stringContains('foo');
-
- try {
- $constraint->evaluate('barbazbar', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 'barbazbar' contains "foo".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringContains
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::stringContains
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringNotContains()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::stringContains('foo')
- );
-
- $this->assertTrue($constraint->evaluate('barbazbar', '', true));
- $this->assertFalse($constraint->evaluate('barfoobar', '', true));
- $this->assertEquals('does not contain "foo"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('barfoobar');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 'barfoobar' does not contain "foo".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringContains
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::stringContains
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringNotContains2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::stringContains('foo')
- );
-
- try {
- $constraint->evaluate('barfoobar', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 'barfoobar' does not contain "foo".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringEndsWith
- * @covers PHPUnit_Framework_Assert::stringEndsWith
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringEndsWith()
- {
- $constraint = PHPUnit_Framework_Assert::stringEndsWith('suffix');
-
- $this->assertFalse($constraint->evaluate('foo', '', true));
- $this->assertTrue($constraint->evaluate('foosuffix', '', true));
- $this->assertEquals('ends with "suffix"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('foo');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 'foo' ends with "suffix".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringEndsWith
- * @covers PHPUnit_Framework_Assert::stringEndsWith
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringEndsWith2()
- {
- $constraint = PHPUnit_Framework_Assert::stringEndsWith('suffix');
-
- try {
- $constraint->evaluate('foo', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 'foo' ends with "suffix".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringEndsWith
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::stringEndsWith
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringEndsNotWith()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::stringEndsWith('suffix')
- );
-
- $this->assertTrue($constraint->evaluate('foo', '', true));
- $this->assertFalse($constraint->evaluate('foosuffix', '', true));
- $this->assertEquals('ends not with "suffix"', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate('foosuffix');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that 'foosuffix' ends not with "suffix".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_StringEndsWith
- * @covers PHPUnit_Framework_Assert::stringEndsWith
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintStringEndsNotWith2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::stringEndsWith('suffix')
- );
-
- try {
- $constraint->evaluate('foosuffix', 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that 'foosuffix' ends not with "suffix".
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_TraversableContains
- */
- public function testConstraintArrayContainsCheckForObjectIdentity()
- {
- // Check for primitive type.
- $constraint = new PHPUnit_Framework_Constraint_TraversableContains('foo', true, true);
-
- $this->assertFalse($constraint->evaluate(array(0), '', true));
- $this->assertFalse($constraint->evaluate(array(true), '', true));
-
- // Default case.
- $constraint = new PHPUnit_Framework_Constraint_TraversableContains('foo');
-
- $this->assertTrue($constraint->evaluate(array(0), '', true));
- $this->assertTrue($constraint->evaluate(array(true), '', true));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_TraversableContains
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintArrayContains()
- {
- $constraint = new PHPUnit_Framework_Constraint_TraversableContains('foo');
-
- $this->assertFalse($constraint->evaluate(array('bar'), '', true));
- $this->assertTrue($constraint->evaluate(array('foo'), '', true));
- $this->assertEquals("contains 'foo'", $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(array('bar'));
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that an array contains 'foo'.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_TraversableContains
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintArrayContains2()
- {
- $constraint = new PHPUnit_Framework_Constraint_TraversableContains('foo');
-
- try {
- $constraint->evaluate(array('bar'), 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that an array contains 'foo'.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_TraversableContains
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintArrayNotContains()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- new PHPUnit_Framework_Constraint_TraversableContains('foo')
- );
-
- $this->assertTrue($constraint->evaluate(array('bar'), '', true));
- $this->assertFalse($constraint->evaluate(array('foo'), '', true));
- $this->assertEquals("does not contain 'foo'", $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(array('foo'));
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that an array does not contain 'foo'.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_TraversableContains
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintArrayNotContains2()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- new PHPUnit_Framework_Constraint_TraversableContains('foo')
- );
-
- try {
- $constraint->evaluate(array('foo'), 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message
-Failed asserting that an array does not contain 'foo'.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_TraversableContains
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintSplObjectStorageContains()
- {
- $object = new StdClass;
- $constraint = new PHPUnit_Framework_Constraint_TraversableContains($object);
- $this->assertStringMatchesFormat('contains stdClass Object &%s ()', $constraint->toString());
-
- $storage = new SplObjectStorage;
- $this->assertFalse($constraint->evaluate($storage, '', true));
-
- $storage->attach($object);
- $this->assertTrue($constraint->evaluate($storage, '', true));
-
- try {
- $constraint->evaluate(new SplObjectStorage);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertStringMatchesFormat(
- <<<EOF
-Failed asserting that a traversable contains stdClass Object &%x ().
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_TraversableContains
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintSplObjectStorageContains2()
- {
- $object = new StdClass;
- $constraint = new PHPUnit_Framework_Constraint_TraversableContains($object);
-
- try {
- $constraint->evaluate(new SplObjectStorage, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertStringMatchesFormat(
- <<<EOF
-custom message
-Failed asserting that a traversable contains stdClass Object &%x ().
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::attributeEqualTo
- * @covers PHPUnit_Framework_Constraint_Attribute
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testAttributeEqualTo()
- {
- $object = new ClassWithNonPublicAttributes;
- $constraint = PHPUnit_Framework_Assert::attributeEqualTo('foo', 1);
-
- $this->assertTrue($constraint->evaluate($object, '', true));
- $this->assertEquals('attribute "foo" is equal to 1', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- $constraint = PHPUnit_Framework_Assert::attributeEqualTo('foo', 2);
-
- $this->assertFalse($constraint->evaluate($object, '', true));
-
- try {
- $constraint->evaluate($object);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that attribute "foo" is equal to 2.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::attributeEqualTo
- * @covers PHPUnit_Framework_Constraint_Attribute
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testAttributeEqualTo2()
- {
- $object = new ClassWithNonPublicAttributes;
- $constraint = PHPUnit_Framework_Assert::attributeEqualTo('foo', 2);
-
- try {
- $constraint->evaluate($object, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message\nFailed asserting that attribute "foo" is equal to 2.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::attributeEqualTo
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_Constraint_Attribute
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testAttributeNotEqualTo()
- {
- $object = new ClassWithNonPublicAttributes;
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::attributeEqualTo('foo', 2)
- );
-
- $this->assertTrue($constraint->evaluate($object, '', true));
- $this->assertEquals('attribute "foo" is not equal to 2', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::attributeEqualTo('foo', 1)
- );
-
- $this->assertFalse($constraint->evaluate($object, '', true));
-
- try {
- $constraint->evaluate($object);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that attribute "foo" is not equal to 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Assert::attributeEqualTo
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_Constraint_Attribute
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testAttributeNotEqualTo2()
- {
- $object = new ClassWithNonPublicAttributes;
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- PHPUnit_Framework_Assert::attributeEqualTo('foo', 1)
- );
-
- try {
- $constraint->evaluate($object, 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message\nFailed asserting that attribute "foo" is not equal to 1.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEmpty
- * @covers PHPUnit_Framework_Constraint::count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsEmpty()
- {
- $constraint = new PHPUnit_Framework_Constraint_IsEmpty;
-
- $this->assertFalse($constraint->evaluate(array('foo'), '', true));
- $this->assertTrue($constraint->evaluate(array(), '', true));
- $this->assertFalse($constraint->evaluate(new ArrayObject(array('foo')), '', true));
- $this->assertTrue($constraint->evaluate(new ArrayObject(array()), '', true));
- $this->assertEquals('is empty', $constraint->toString());
- $this->assertEquals(1, count($constraint));
-
- try {
- $constraint->evaluate(array('foo'));
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that an array is empty.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_IsEmpty
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintIsEmpty2()
- {
- $constraint = new PHPUnit_Framework_Constraint_IsEmpty;
-
- try {
- $constraint->evaluate(array('foo'), 'custom message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-custom message\nFailed asserting that an array is empty.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_Count
- */
- public function testConstraintCountWithAnArray()
- {
- $constraint = new PHPUnit_Framework_Constraint_Count(5);
-
- $this->assertTrue($constraint->evaluate(array(1, 2, 3, 4, 5), '', true));
- $this->assertFalse($constraint->evaluate(array(1, 2, 3, 4), '', true));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_Count
- */
- public function testConstraintCountWithAnIteratorWhichDoesNotImplementCountable()
- {
- $constraint = new PHPUnit_Framework_Constraint_Count(5);
-
- $this->assertTrue($constraint->evaluate(new TestIterator(array(1, 2, 3, 4, 5)), '', true));
- $this->assertFalse($constraint->evaluate(new TestIterator(array(1, 2, 3, 4)), '', true));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_Count
- */
- public function testConstraintCountWithAnObjectImplementingCountable()
- {
- $constraint = new PHPUnit_Framework_Constraint_Count(5);
-
- $this->assertTrue($constraint->evaluate(new ArrayObject(array(1, 2, 3, 4, 5)), '', true));
- $this->assertFalse($constraint->evaluate(new ArrayObject(array(1, 2, 3, 4)), '', true));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_Count
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintCountFailing()
- {
- $constraint = new PHPUnit_Framework_Constraint_Count(5);
-
- try {
- $constraint->evaluate(array(1, 2));
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that actual size 2 matches expected size 5.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_Count
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotCountFailing()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- new PHPUnit_Framework_Constraint_Count(2)
- );
-
- try {
- $constraint->evaluate(array(1, 2));
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that actual size 2 does not match expected size 2.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_SameSize
- */
- public function testConstraintSameSizeWithAnArray()
- {
- $constraint = new PHPUnit_Framework_Constraint_SameSize(array(1, 2, 3, 4, 5));
-
- $this->assertTrue($constraint->evaluate(array(6, 7, 8, 9, 10), '', true));
- $this->assertFalse($constraint->evaluate(array(1, 2, 3, 4), '', true));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_SameSize
- */
- public function testConstraintSameSizeWithAnIteratorWhichDoesNotImplementCountable()
- {
- $constraint = new PHPUnit_Framework_Constraint_SameSize(new TestIterator(array(1, 2, 3, 4, 5)));
-
- $this->assertTrue($constraint->evaluate(new TestIterator(array(6, 7, 8, 9, 10)), '', true));
- $this->assertFalse($constraint->evaluate(new TestIterator(array(1, 2, 3, 4)), '', true));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_SameSize
- */
- public function testConstraintSameSizeWithAnObjectImplementingCountable()
- {
- $constraint = new PHPUnit_Framework_Constraint_SameSize(new ArrayObject(array(1, 2, 3, 4, 5)));
-
- $this->assertTrue($constraint->evaluate(new ArrayObject(array(6, 7, 8, 9, 10)), '', true));
- $this->assertFalse($constraint->evaluate(new ArrayObject(array(1, 2, 3, 4)), '', true));
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_SameSize
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintSameSizeFailing()
- {
- $constraint = new PHPUnit_Framework_Constraint_SameSize(array(1, 2, 3, 4, 5));
-
- try {
- $constraint->evaluate(array(1, 2));
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that actual size 2 matches expected size 5.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_SameSize
- * @covers PHPUnit_Framework_Constraint_Not
- * @covers PHPUnit_Framework_Assert::logicalNot
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintNotSameSizeFailing()
- {
- $constraint = PHPUnit_Framework_Assert::logicalNot(
- new PHPUnit_Framework_Constraint_SameSize(array(1, 2))
- );
-
- try {
- $constraint->evaluate(array(3, 4));
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that actual size 2 does not match expected size 2.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_Exception
- * @covers PHPUnit_Framework_TestFailure::exceptionToString
- */
- public function testConstraintException()
- {
- $constraint = new PHPUnit_Framework_Constraint_Exception('FoobarException');
- $exception = new DummyException('Test');
- $stackTrace = $exception->getTraceAsString();
-
- try {
- $constraint->evaluate($exception);
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $this->assertEquals(
- <<<EOF
-Failed asserting that exception of type "DummyException" matches expected exception "FoobarException". Message was: "Test" at
-$stackTrace.
-
-EOF
- ,
- PHPUnit_Framework_TestFailure::exceptionToString($e)
- );
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * Removes spaces in front of newlines
- *
- * @param string $string
- *
- * @return string
- */
- private function trimnl($string)
- {
- return preg_replace('/[ ]*\n/', "\n", $string);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/SuiteTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/SuiteTest.php
deleted file mode 100644
index e3f58b3d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/SuiteTest.php
+++ /dev/null
@@ -1,242 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'BeforeAndAfterTest.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'BeforeClassAndAfterClassTest.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'TestWithTest.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'DataProviderSkippedTest.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'DataProviderIncompleteTest.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'InheritedTestCase.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NoTestCaseClass.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NoTestCases.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NotPublicTestCase.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NotVoidTestCase.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'OverrideTestCase.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'RequirementsClassBeforeClassHookTest.php';
-
-/**
- * @since Class available since Release 2.0.0
- * @covers PHPUnit_Framework_TestSuite
- */
-class Framework_SuiteTest extends PHPUnit_Framework_TestCase
-{
- protected $result;
-
- protected function setUp()
- {
- $this->result = new PHPUnit_Framework_TestResult;
- }
-
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite;
-
- $suite->addTest(new self('testAddTestSuite'));
- $suite->addTest(new self('testInheritedTests'));
- $suite->addTest(new self('testNoTestCases'));
- $suite->addTest(new self('testNoTestCaseClass'));
- $suite->addTest(new self('testNotExistingTestCase'));
- $suite->addTest(new self('testNotPublicTestCase'));
- $suite->addTest(new self('testNotVoidTestCase'));
- $suite->addTest(new self('testOneTestCase'));
- $suite->addTest(new self('testShadowedTests'));
- $suite->addTest(new self('testBeforeClassAndAfterClassAnnotations'));
- $suite->addTest(new self('testBeforeAnnotation'));
- $suite->addTest(new self('testTestWithAnnotation'));
- $suite->addTest(new self('testSkippedTestDataProvider'));
- $suite->addTest(new self('testIncompleteTestDataProvider'));
- $suite->addTest(new self('testRequirementsBeforeClassHook'));
- $suite->addTest(new self('testDontSkipInheritedClass'));
-
- return $suite;
- }
-
- public function testAddTestSuite()
- {
- $suite = new PHPUnit_Framework_TestSuite(
- 'OneTestCase'
- );
-
- $suite->run($this->result);
-
- $this->assertEquals(1, count($this->result));
- }
-
- public function testInheritedTests()
- {
- $suite = new PHPUnit_Framework_TestSuite(
- 'InheritedTestCase'
- );
-
- $suite->run($this->result);
-
- $this->assertTrue($this->result->wasSuccessful());
- $this->assertEquals(2, count($this->result));
- }
-
- public function testNoTestCases()
- {
- $suite = new PHPUnit_Framework_TestSuite(
- 'NoTestCases'
- );
-
- $suite->run($this->result);
-
- $this->assertTrue(!$this->result->wasSuccessful());
- $this->assertEquals(1, $this->result->failureCount());
- $this->assertEquals(1, count($this->result));
- }
-
- /**
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testNoTestCaseClass()
- {
- $suite = new PHPUnit_Framework_TestSuite('NoTestCaseClass');
- }
-
- public function testNotExistingTestCase()
- {
- $suite = new self('notExistingMethod');
-
- $suite->run($this->result);
-
- $this->assertEquals(0, $this->result->errorCount());
- $this->assertEquals(1, $this->result->failureCount());
- $this->assertEquals(1, count($this->result));
- }
-
- public function testNotPublicTestCase()
- {
- $suite = new PHPUnit_Framework_TestSuite(
- 'NotPublicTestCase'
- );
-
- $this->assertEquals(2, count($suite));
- }
-
- public function testNotVoidTestCase()
- {
- $suite = new PHPUnit_Framework_TestSuite(
- 'NotVoidTestCase'
- );
-
- $this->assertEquals(1, count($suite));
- }
-
- public function testOneTestCase()
- {
- $suite = new PHPUnit_Framework_TestSuite(
- 'OneTestCase'
- );
-
- $suite->run($this->result);
-
- $this->assertEquals(0, $this->result->errorCount());
- $this->assertEquals(0, $this->result->failureCount());
- $this->assertEquals(1, count($this->result));
- $this->assertTrue($this->result->wasSuccessful());
- }
-
- public function testShadowedTests()
- {
- $suite = new PHPUnit_Framework_TestSuite(
- 'OverrideTestCase'
- );
-
- $suite->run($this->result);
-
- $this->assertEquals(1, count($this->result));
- }
-
- public function testBeforeClassAndAfterClassAnnotations()
- {
- $suite = new PHPUnit_Framework_TestSuite(
- 'BeforeClassAndAfterClassTest'
- );
-
- BeforeClassAndAfterClassTest::resetProperties();
- $suite->run($this->result);
-
- $this->assertEquals(1, BeforeClassAndAfterClassTest::$beforeClassWasRun, '@beforeClass method was not run once for the whole suite.');
- $this->assertEquals(1, BeforeClassAndAfterClassTest::$afterClassWasRun, '@afterClass method was not run once for the whole suite.');
- }
-
- public function testBeforeAnnotation()
- {
- $test = new PHPUnit_Framework_TestSuite(
- 'BeforeAndAfterTest'
- );
-
- BeforeAndAfterTest::resetProperties();
- $result = $test->run();
-
- $this->assertEquals(2, BeforeAndAfterTest::$beforeWasRun);
- $this->assertEquals(2, BeforeAndAfterTest::$afterWasRun);
- }
-
- public function testTestWithAnnotation()
- {
- $test = new PHPUnit_Framework_TestSuite(
- 'TestWithTest'
- );
-
- BeforeAndAfterTest::resetProperties();
- $result = $test->run();
-
- $this->assertEquals(4, count($result->passed()));
- }
-
- public function testSkippedTestDataProvider()
- {
- $suite = new PHPUnit_Framework_TestSuite('DataProviderSkippedTest');
-
- $suite->run($this->result);
-
- $this->assertEquals(3, $this->result->count());
- $this->assertEquals(1, $this->result->skippedCount());
- }
-
- public function testIncompleteTestDataProvider()
- {
- $suite = new PHPUnit_Framework_TestSuite('DataProviderIncompleteTest');
-
- $suite->run($this->result);
-
- $this->assertEquals(3, $this->result->count());
- $this->assertEquals(1, $this->result->notImplementedCount());
- }
-
- public function testRequirementsBeforeClassHook()
- {
- $suite = new PHPUnit_Framework_TestSuite(
- 'RequirementsClassBeforeClassHookTest'
- );
-
- $suite->run($this->result);
-
- $this->assertEquals(0, $this->result->errorCount());
- $this->assertEquals(1, $this->result->skippedCount());
- }
-
- public function testDontSkipInheritedClass()
- {
- $suite = new PHPUnit_Framework_TestSuite(
- 'DontSkipInheritedClass'
- );
-
- $dir = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Inheritance' . DIRECTORY_SEPARATOR;
-
- $suite->addTestFile($dir . 'InheritanceA.php');
- $suite->addTestFile($dir . 'InheritanceB.php');
- $result = $suite->run();
- $this->assertEquals(2, count($result));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestCaseTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestCaseTest.php
deleted file mode 100644
index 91332786..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestCaseTest.php
+++ /dev/null
@@ -1,550 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'NoArgTestCaseTest.php';
-require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Singleton.php';
-
-$GLOBALS['a'] = 'a';
-$_ENV['b'] = 'b';
-$_POST['c'] = 'c';
-$_GET['d'] = 'd';
-$_COOKIE['e'] = 'e';
-$_SERVER['f'] = 'f';
-$_FILES['g'] = 'g';
-$_REQUEST['h'] = 'h';
-$GLOBALS['i'] = 'i';
-
-/**
- * @since Class available since Release 2.0.0
- * @covers PHPUnit_Framework_TestCase
- */
-class Framework_TestCaseTest extends PHPUnit_Framework_TestCase
-{
- protected $backupGlobalsBlacklist = array('i', 'singleton');
-
- /**
- * Used be testStaticAttributesBackupPre
- */
- protected static $_testStatic = 0;
-
- public function testCaseToString()
- {
- $this->assertEquals(
- 'Framework_TestCaseTest::testCaseToString',
- $this->toString()
- );
- }
-
- public function testSuccess()
- {
- $test = new Success;
- $result = $test->run();
-
- $this->assertEquals(PHPUnit_Runner_BaseTestRunner::STATUS_PASSED, $test->getStatus());
- $this->assertEquals(0, $result->errorCount());
- $this->assertEquals(0, $result->failureCount());
- $this->assertEquals(0, $result->skippedCount());
- $this->assertEquals(1, count($result));
- }
-
- public function testFailure()
- {
- $test = new Failure;
- $result = $test->run();
-
- $this->assertEquals(PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE, $test->getStatus());
- $this->assertEquals(0, $result->errorCount());
- $this->assertEquals(1, $result->failureCount());
- $this->assertEquals(0, $result->skippedCount());
- $this->assertEquals(1, count($result));
- }
-
- public function testError()
- {
- $test = new TestError;
- $result = $test->run();
-
- $this->assertEquals(PHPUnit_Runner_BaseTestRunner::STATUS_ERROR, $test->getStatus());
- $this->assertEquals(1, $result->errorCount());
- $this->assertEquals(0, $result->failureCount());
- $this->assertEquals(0, $result->skippedCount());
- $this->assertEquals(1, count($result));
- }
-
- public function testSkipped()
- {
- $test = new TestSkipped();
- $result = $test->run();
-
- $this->assertEquals(PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED, $test->getStatus());
- $this->assertEquals('Skipped test', $test->getStatusMessage());
- $this->assertEquals(0, $result->errorCount());
- $this->assertEquals(0, $result->failureCount());
- $this->assertEquals(1, $result->skippedCount());
- $this->assertEquals(1, count($result));
- }
-
- public function testIncomplete()
- {
- $test = new TestIncomplete();
- $result = $test->run();
-
- $this->assertEquals(PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE, $test->getStatus());
- $this->assertEquals('Incomplete test', $test->getStatusMessage());
- $this->assertEquals(0, $result->errorCount());
- $this->assertEquals(0, $result->failureCount());
- $this->assertEquals(0, $result->skippedCount());
- $this->assertEquals(1, count($result));
- }
-
- public function testExceptionInSetUp()
- {
- $test = new ExceptionInSetUpTest('testSomething');
- $result = $test->run();
-
- $this->assertTrue($test->setUp);
- $this->assertFalse($test->assertPreConditions);
- $this->assertFalse($test->testSomething);
- $this->assertFalse($test->assertPostConditions);
- $this->assertTrue($test->tearDown);
- }
-
- public function testExceptionInAssertPreConditions()
- {
- $test = new ExceptionInAssertPreConditionsTest('testSomething');
- $result = $test->run();
-
- $this->assertTrue($test->setUp);
- $this->assertTrue($test->assertPreConditions);
- $this->assertFalse($test->testSomething);
- $this->assertFalse($test->assertPostConditions);
- $this->assertTrue($test->tearDown);
- }
-
- public function testExceptionInTest()
- {
- $test = new ExceptionInTest('testSomething');
- $result = $test->run();
-
- $this->assertTrue($test->setUp);
- $this->assertTrue($test->assertPreConditions);
- $this->assertTrue($test->testSomething);
- $this->assertFalse($test->assertPostConditions);
- $this->assertTrue($test->tearDown);
- }
-
- public function testExceptionInAssertPostConditions()
- {
- $test = new ExceptionInAssertPostConditionsTest('testSomething');
- $result = $test->run();
-
- $this->assertTrue($test->setUp);
- $this->assertTrue($test->assertPreConditions);
- $this->assertTrue($test->testSomething);
- $this->assertTrue($test->assertPostConditions);
- $this->assertTrue($test->tearDown);
- }
-
- public function testExceptionInTearDown()
- {
- $test = new ExceptionInTearDownTest('testSomething');
- $result = $test->run();
-
- $this->assertTrue($test->setUp);
- $this->assertTrue($test->assertPreConditions);
- $this->assertTrue($test->testSomething);
- $this->assertTrue($test->assertPostConditions);
- $this->assertTrue($test->tearDown);
- }
-
- public function testNoArgTestCasePasses()
- {
- $result = new PHPUnit_Framework_TestResult;
- $t = new PHPUnit_Framework_TestSuite('NoArgTestCaseTest');
-
- $t->run($result);
-
- $this->assertEquals(1, count($result));
- $this->assertEquals(0, $result->failureCount());
- $this->assertEquals(0, $result->errorCount());
- }
-
- public function testWasRun()
- {
- $test = new WasRun;
- $test->run();
-
- $this->assertTrue($test->wasRun);
- }
-
- public function testException()
- {
- $test = new ThrowExceptionTestCase('test');
- $test->setExpectedException('RuntimeException');
-
- $result = $test->run();
-
- $this->assertEquals(1, count($result));
- $this->assertTrue($result->wasSuccessful());
- }
-
- public function testExceptionWithMessage()
- {
- $test = new ThrowExceptionTestCase('test');
- $test->setExpectedException('RuntimeException', 'A runtime error occurred');
-
- $result = $test->run();
-
- $this->assertEquals(1, count($result));
- $this->assertTrue($result->wasSuccessful());
- }
-
- public function testExceptionWithWrongMessage()
- {
- $test = new ThrowExceptionTestCase('test');
- $test->setExpectedException('RuntimeException', 'A logic error occurred');
-
- $result = $test->run();
-
- $this->assertEquals(1, $result->failureCount());
- $this->assertEquals(1, count($result));
- $this->assertEquals(
- "Failed asserting that exception message 'A runtime error occurred' contains 'A logic error occurred'.",
- $test->getStatusMessage()
- );
- }
-
- public function testExceptionWithRegexpMessage()
- {
- $test = new ThrowExceptionTestCase('test');
- $test->setExpectedExceptionRegExp('RuntimeException', '/runtime .*? occurred/');
-
- $result = $test->run();
-
- $this->assertEquals(1, count($result));
- $this->assertTrue($result->wasSuccessful());
- }
-
- public function testExceptionWithWrongRegexpMessage()
- {
- $test = new ThrowExceptionTestCase('test');
- $test->setExpectedExceptionRegExp('RuntimeException', '/logic .*? occurred/');
-
- $result = $test->run();
-
- $this->assertEquals(1, $result->failureCount());
- $this->assertEquals(1, count($result));
- $this->assertEquals(
- "Failed asserting that exception message 'A runtime error occurred' matches '/logic .*? occurred/'.",
- $test->getStatusMessage()
- );
- }
-
- /**
- * @covers PHPUnit_Framework_Constraint_ExceptionMessageRegExp
- */
- public function testExceptionWithInvalidRegexpMessage()
- {
- $test = new ThrowExceptionTestCase('test');
- $test->setExpectedExceptionRegExp('RuntimeException', '#runtime .*? occurred/'); // wrong delimiter
-
- $result = $test->run();
-
- $this->assertEquals(
- "Invalid expected exception message regex given: '#runtime .*? occurred/'",
- $test->getStatusMessage()
- );
- }
-
- public function testNoException()
- {
- $test = new ThrowNoExceptionTestCase('test');
- $test->setExpectedException('RuntimeException');
-
- $result = $test->run();
-
- $this->assertEquals(1, $result->failureCount());
- $this->assertEquals(1, count($result));
- }
-
- public function testWrongException()
- {
- $test = new ThrowExceptionTestCase('test');
- $test->setExpectedException('InvalidArgumentException');
-
- $result = $test->run();
-
- $this->assertEquals(1, $result->failureCount());
- $this->assertEquals(1, count($result));
- }
-
- /**
- * @backupGlobals enabled
- */
- public function testGlobalsBackupPre()
- {
- global $a;
- global $i;
-
- $this->assertEquals('a', $a);
- $this->assertEquals('a', $GLOBALS['a']);
- $this->assertEquals('b', $_ENV['b']);
- $this->assertEquals('c', $_POST['c']);
- $this->assertEquals('d', $_GET['d']);
- $this->assertEquals('e', $_COOKIE['e']);
- $this->assertEquals('f', $_SERVER['f']);
- $this->assertEquals('g', $_FILES['g']);
- $this->assertEquals('h', $_REQUEST['h']);
- $this->assertEquals('i', $i);
- $this->assertEquals('i', $GLOBALS['i']);
-
- $GLOBALS['a'] = 'aa';
- $GLOBALS['foo'] = 'bar';
- $_ENV['b'] = 'bb';
- $_POST['c'] = 'cc';
- $_GET['d'] = 'dd';
- $_COOKIE['e'] = 'ee';
- $_SERVER['f'] = 'ff';
- $_FILES['g'] = 'gg';
- $_REQUEST['h'] = 'hh';
- $GLOBALS['i'] = 'ii';
-
- $this->assertEquals('aa', $a);
- $this->assertEquals('aa', $GLOBALS['a']);
- $this->assertEquals('bar', $GLOBALS['foo']);
- $this->assertEquals('bb', $_ENV['b']);
- $this->assertEquals('cc', $_POST['c']);
- $this->assertEquals('dd', $_GET['d']);
- $this->assertEquals('ee', $_COOKIE['e']);
- $this->assertEquals('ff', $_SERVER['f']);
- $this->assertEquals('gg', $_FILES['g']);
- $this->assertEquals('hh', $_REQUEST['h']);
- $this->assertEquals('ii', $i);
- $this->assertEquals('ii', $GLOBALS['i']);
- }
-
- public function testGlobalsBackupPost()
- {
- global $a;
- global $i;
-
- $this->assertEquals('a', $a);
- $this->assertEquals('a', $GLOBALS['a']);
- $this->assertEquals('b', $_ENV['b']);
- $this->assertEquals('c', $_POST['c']);
- $this->assertEquals('d', $_GET['d']);
- $this->assertEquals('e', $_COOKIE['e']);
- $this->assertEquals('f', $_SERVER['f']);
- $this->assertEquals('g', $_FILES['g']);
- $this->assertEquals('h', $_REQUEST['h']);
- $this->assertEquals('ii', $i);
- $this->assertEquals('ii', $GLOBALS['i']);
-
- $this->assertArrayNotHasKey('foo', $GLOBALS);
- }
-
- /**
- * @backupGlobals enabled
- * @backupStaticAttributes enabled
- */
- public function testStaticAttributesBackupPre()
- {
- $GLOBALS['singleton'] = Singleton::getInstance();
- self::$_testStatic = 123;
- }
-
- /**
- * @depends testStaticAttributesBackupPre
- */
- public function testStaticAttributesBackupPost()
- {
- $this->assertNotSame($GLOBALS['singleton'], Singleton::getInstance());
- $this->assertSame(0, self::$_testStatic);
- }
-
- public function testIsInIsolationReturnsFalse()
- {
- $test = new IsolationTest('testIsInIsolationReturnsFalse');
- $result = $test->run();
-
- $this->assertEquals(1, count($result));
- $this->assertTrue($result->wasSuccessful());
- }
-
- public function testIsInIsolationReturnsTrue()
- {
- $test = new IsolationTest('testIsInIsolationReturnsTrue');
- $test->setRunTestInSeparateProcess(true);
- $result = $test->run();
-
- $this->assertEquals(1, count($result));
- $this->assertTrue($result->wasSuccessful());
- }
-
- public function testExpectOutputStringFooActualFoo()
- {
- $test = new OutputTestCase('testExpectOutputStringFooActualFoo');
- $result = $test->run();
-
- $this->assertEquals(1, count($result));
- $this->assertTrue($result->wasSuccessful());
- }
-
- public function testExpectOutputStringFooActualBar()
- {
- $test = new OutputTestCase('testExpectOutputStringFooActualBar');
- $result = $test->run();
-
- $this->assertEquals(1, count($result));
- $this->assertFalse($result->wasSuccessful());
- }
-
- public function testExpectOutputRegexFooActualFoo()
- {
- $test = new OutputTestCase('testExpectOutputRegexFooActualFoo');
- $result = $test->run();
-
- $this->assertEquals(1, count($result));
- $this->assertTrue($result->wasSuccessful());
- }
-
- public function testExpectOutputRegexFooActualBar()
- {
- $test = new OutputTestCase('testExpectOutputRegexFooActualBar');
- $result = $test->run();
-
- $this->assertEquals(1, count($result));
- $this->assertFalse($result->wasSuccessful());
- }
-
- public function testSkipsIfRequiresHigherVersionOfPHPUnit()
- {
- $test = new RequirementsTest('testAlwaysSkip');
- $result = $test->run();
-
- $this->assertEquals(1, $result->skippedCount());
- $this->assertEquals(
- 'PHPUnit 1111111 (or later) is required.',
- $test->getStatusMessage()
- );
- }
-
- public function testSkipsIfRequiresHigherVersionOfPHP()
- {
- $test = new RequirementsTest('testAlwaysSkip2');
- $result = $test->run();
-
- $this->assertEquals(1, $result->skippedCount());
- $this->assertEquals(
- 'PHP 9999999 (or later) is required.',
- $test->getStatusMessage()
- );
- }
-
- public function testSkipsIfRequiresNonExistingOs()
- {
- $test = new RequirementsTest('testAlwaysSkip3');
- $result = $test->run();
-
- $this->assertEquals(1, $result->skippedCount());
- $this->assertEquals(
- 'Operating system matching /DOESNOTEXIST/i is required.',
- $test->getStatusMessage()
- );
- }
-
- public function testSkipsIfRequiresNonExistingFunction()
- {
- $test = new RequirementsTest('testNine');
- $result = $test->run();
-
- $this->assertEquals(1, $result->skippedCount());
- $this->assertEquals(
- 'Function testFunc is required.',
- $test->getStatusMessage()
- );
- }
-
- public function testSkipsIfRequiresNonExistingExtension()
- {
- $test = new RequirementsTest('testTen');
- $result = $test->run();
-
- $this->assertEquals(
- 'Extension testExt is required.',
- $test->getStatusMessage()
- );
- }
-
- public function testSkipsProvidesMessagesForAllSkippingReasons()
- {
- $test = new RequirementsTest('testAllPossibleRequirements');
- $result = $test->run();
-
- $this->assertEquals(
- 'PHP 99-dev (or later) is required.' . PHP_EOL .
- 'PHPUnit 9-dev (or later) is required.' . PHP_EOL .
- 'Operating system matching /DOESNOTEXIST/i is required.' . PHP_EOL .
- 'Function testFuncOne is required.' . PHP_EOL .
- 'Function testFuncTwo is required.' . PHP_EOL .
- 'Extension testExtOne is required.' . PHP_EOL .
- 'Extension testExtTwo is required.',
- $test->getStatusMessage()
- );
- }
-
- public function testRequiringAnExistingMethodDoesNotSkip()
- {
- $test = new RequirementsTest('testExistingMethod');
- $result = $test->run();
- $this->assertEquals(0, $result->skippedCount());
- }
-
- public function testRequiringAnExistingFunctionDoesNotSkip()
- {
- $test = new RequirementsTest('testExistingFunction');
- $result = $test->run();
- $this->assertEquals(0, $result->skippedCount());
- }
-
- public function testRequiringAnExistingExtensionDoesNotSkip()
- {
- $test = new RequirementsTest('testExistingExtension');
- $result = $test->run();
- $this->assertEquals(0, $result->skippedCount());
- }
-
- public function testRequiringAnExistingOsDoesNotSkip()
- {
- $test = new RequirementsTest('testExistingOs');
- $result = $test->run();
- $this->assertEquals(0, $result->skippedCount());
- }
-
- public function testCurrentWorkingDirectoryIsRestored()
- {
- $expectedCwd = getcwd();
-
- $test = new ChangeCurrentWorkingDirectoryTest('testSomethingThatChangesTheCwd');
- $test->run();
-
- $this->assertSame($expectedCwd, getcwd());
- }
-
- /**
- * @requires PHP 7
- * @expectedException TypeError
- */
- public function testTypeErrorCanBeExpected()
- {
- $o = new ClassWithScalarTypeDeclarations;
- $o->foo(null, null);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestFailureTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestFailureTest.php
deleted file mode 100644
index 8df0a394..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestFailureTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since File available since Release 3.7.20
- */
-class Framework_TestFailureTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers PHPUnit_Framework_TestFailure::toString
- */
- public function testToString()
- {
- $test = new self(__FUNCTION__);
- $exception = new PHPUnit_Framework_Exception('message');
- $failure = new PHPUnit_Framework_TestFailure($test, $exception);
-
- $this->assertEquals(__METHOD__ . ': message', $failure->toString());
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestImplementorTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestImplementorTest.php
deleted file mode 100644
index f10a5098..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestImplementorTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- */
-class Framework_TestImplementorTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers PHPUnit_Framework_TestCase
- */
- public function testSuccessfulRun()
- {
- $result = new PHPUnit_Framework_TestResult;
-
- $test = new DoubleTestCase(new Success);
- $test->run($result);
-
- $this->assertEquals(count($test), count($result));
- $this->assertEquals(0, $result->errorCount());
- $this->assertEquals(0, $result->failureCount());
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestListenerTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestListenerTest.php
deleted file mode 100644
index 589741bf..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Framework/TestListenerTest.php
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- * @covers PHPUnit_Framework_TestCase
- */
-class Framework_TestListenerTest extends PHPUnit_Framework_TestCase implements PHPUnit_Framework_TestListener
-{
- protected $endCount;
- protected $errorCount;
- protected $failureCount;
- protected $notImplementedCount;
- protected $riskyCount;
- protected $skippedCount;
- protected $result;
- protected $startCount;
-
- public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->errorCount++;
- }
-
- public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
- {
- $this->failureCount++;
- }
-
- public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->notImplementedCount++;
- }
-
- public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->riskyCount++;
- }
-
- public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)
- {
- $this->skippedCount++;
- }
-
- public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- }
-
- public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
- {
- }
-
- public function startTest(PHPUnit_Framework_Test $test)
- {
- $this->startCount++;
- }
-
- public function endTest(PHPUnit_Framework_Test $test, $time)
- {
- $this->endCount++;
- }
-
- protected function setUp()
- {
- $this->result = new PHPUnit_Framework_TestResult;
- $this->result->addListener($this);
-
- $this->endCount = 0;
- $this->failureCount = 0;
- $this->notImplementedCount = 0;
- $this->riskyCount = 0;
- $this->skippedCount = 0;
- $this->startCount = 0;
- }
-
- public function testError()
- {
- $test = new TestError;
- $test->run($this->result);
-
- $this->assertEquals(1, $this->errorCount);
- $this->assertEquals(1, $this->endCount);
- }
-
- public function testFailure()
- {
- $test = new Failure;
- $test->run($this->result);
-
- $this->assertEquals(1, $this->failureCount);
- $this->assertEquals(1, $this->endCount);
- }
-
- public function testStartStop()
- {
- $test = new Success;
- $test->run($this->result);
-
- $this->assertEquals(1, $this->startCount);
- $this->assertEquals(1, $this->endCount);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1149.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1149.phpt
deleted file mode 100644
index c4111908..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1149.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-GH-1149: Test swallows output buffer when run in a separate process
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue1149Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/1149/Issue1149Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.1.2
-
-Time: %s, Memory: %s
-
-OK (2 tests, 2 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1149/Issue1149Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1149/Issue1149Test.php
deleted file mode 100644
index 01ac870a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1149/Issue1149Test.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-class Issue1149Test extends PHPUnit_Framework_TestCase
-{
- public function testOne()
- {
- $this->assertTrue(true);
- print '1';
- }
-
- /**
- * @runInSeparateProcess
- */
- public function testTwo()
- {
- $this->assertTrue(true);
- print '2';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216.phpt
deleted file mode 100644
index 631bb2a1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216.phpt
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-GH-1216: PHPUnit bootstrap must take globals vars even when the file is specified in command line
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--configuration';
-$_SERVER['argv'][2] = dirname(__FILE__) . '/1216/phpunit1216.xml';
-$_SERVER['argv'][3] = '--debug';
-$_SERVER['argv'][4] = '--bootstrap';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/1216/bootstrap1216.php';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/1216/Issue1216Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-
-Starting test 'Issue1216Test::testConfigAvailableInBootstrap'.
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/Issue1216Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/Issue1216Test.php
deleted file mode 100644
index cfceaf58..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/Issue1216Test.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class Issue1216Test extends PHPUnit_Framework_TestCase
-{
- public function testConfigAvailableInBootstrap()
- {
- $this->assertTrue($_ENV['configAvailableInBootstrap']);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/bootstrap1216.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/bootstrap1216.php
deleted file mode 100644
index cec2724a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/bootstrap1216.php
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-$_ENV['configAvailableInBootstrap'] = isset($_ENV['loadedFromConfig']);
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/phpunit1216.xml b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/phpunit1216.xml
deleted file mode 100644
index c1cc9bd6..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/phpunit1216.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<phpunit>
- <testsuite name="Github issue 1216">
- <file>Issue1216Test.php</file>
- </testsuite>
- <php>
- <env name="loadedFromConfig" value="1"/>
- </php>
-</phpunit>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265.phpt
deleted file mode 100644
index 1b3159c3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-GH-1265: Could not use "PHPUnit_Runner_StandardTestSuiteLoader" as loader
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--configuration';
-$_SERVER['argv'][2] = dirname(__FILE__) . '/1265/phpunit1265.xml';
-$_SERVER['argv'][3] = 'Issue1265Test';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/1265/Issue1265Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/Issue1265Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/Issue1265Test.php
deleted file mode 100644
index 68d71b3c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/Issue1265Test.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class Issue1265Test extends PHPUnit_Framework_TestCase
-{
- public function testTrue()
- {
- $this->assertTrue(true);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/phpunit1265.xml b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/phpunit1265.xml
deleted file mode 100644
index 27fdd529..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/phpunit1265.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-<phpunit testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader">
-</phpunit>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330.phpt
deleted file mode 100644
index 48dab3c2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330.phpt
+++ /dev/null
@@ -1,24 +0,0 @@
---TEST--
-GH-1330: Allow non-ambiguous shortened longopts
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--deb';
-$_SERVER['argv'][2] = '--config';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/1330/phpunit1330.xml';
-$_SERVER['argv'][4] = 'Issue1330Test';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/1330/Issue1330Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-
-Starting test 'Issue1330Test::testTrue'.
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330/Issue1330Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330/Issue1330Test.php
deleted file mode 100644
index 0829cb95..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330/Issue1330Test.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class Issue1330Test extends PHPUnit_Framework_TestCase
-{
- public function testTrue()
- {
- $this->assertTrue(PHPUNIT_1330);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330/phpunit1330.xml b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330/phpunit1330.xml
deleted file mode 100644
index a61e0cc1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1330/phpunit1330.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<phpunit>
- <php>
- <const name="PHPUNIT_1330" value="true"/>
- </php>
-</phpunit>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335.phpt
deleted file mode 100644
index 1ed52031..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-GH-1335: exportVariable multiple backslash problem
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--bootstrap';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/1335/bootstrap1335.php';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/1335/Issue1335Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-............
-
-Time: %s, Memory: %s
-
-OK (12 tests, 12 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335/Issue1335Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335/Issue1335Test.php
deleted file mode 100644
index 4407ec8d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335/Issue1335Test.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * @runTestsInSeparateProcesses
- * @preserveGlobalState enabled
- */
-class Issue1335Test extends PHPUnit_Framework_TestCase
-{
- public function testGlobalString()
- {
- $this->assertEquals('Hello', $GLOBALS['globalString']);
- }
-
- public function testGlobalIntTruthy()
- {
- $this->assertEquals(1, $GLOBALS['globalIntTruthy']);
- }
-
- public function testGlobalIntFalsey()
- {
- $this->assertEquals(0, $GLOBALS['globalIntFalsey']);
- }
-
- public function testGlobalFloat()
- {
- $this->assertEquals(1.123, $GLOBALS['globalFloat']);
- }
-
- public function testGlobalBoolTrue()
- {
- $this->assertEquals(true, $GLOBALS['globalBoolTrue']);
- }
-
- public function testGlobalBoolFalse()
- {
- $this->assertEquals(false, $GLOBALS['globalBoolFalse']);
- }
-
- public function testGlobalNull()
- {
- $this->assertEquals(null, $GLOBALS['globalNull']);
- }
-
- public function testGlobalArray()
- {
- $this->assertEquals(array('foo'), $GLOBALS['globalArray']);
- }
-
- public function testGlobalNestedArray()
- {
- $this->assertEquals(array(array('foo')), $GLOBALS['globalNestedArray']);
- }
-
- public function testGlobalObject()
- {
- $this->assertEquals((object) array('foo'=> 'bar'), $GLOBALS['globalObject']);
- }
-
- public function testGlobalObjectWithBackSlashString()
- {
- $this->assertEquals((object) array('foo'=> 'back\\slash'), $GLOBALS['globalObjectWithBackSlashString']);
- }
-
- public function testGlobalObjectWithDoubleBackSlashString()
- {
- $this->assertEquals((object) array('foo'=> 'back\\\\slash'), $GLOBALS['globalObjectWithDoubleBackSlashString']);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335/bootstrap1335.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335/bootstrap1335.php
deleted file mode 100644
index 073a87e3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1335/bootstrap1335.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-$globalString = 'Hello';
-$globalIntTruthy = 1;
-$globalIntFalsey = 0;
-$globalFloat = 1.123;
-$globalBoolTrue = true;
-$globalBoolFalse = false;
-$globalNull = null;
-$globalArray = array('foo');
-$globalNestedArray = array(array('foo'));
-$globalObject = (object) array('foo'=> 'bar');
-$globalObjectWithBackSlashString = (object) array('foo'=> 'back\\slash');
-$globalObjectWithDoubleBackSlashString = (object) array('foo'=> 'back\\\\slash');
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1337.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1337.phpt
deleted file mode 100644
index 3c7077e4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1337.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-GH-1337: Data Provider with \ at the end of the name breaks with process isolation
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = 'Issue1337Test';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/1337/Issue1337Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 2 assertions) \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1337/Issue1337Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1337/Issue1337Test.php
deleted file mode 100644
index b972b2ad..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1337/Issue1337Test.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-class Issue1337Test extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider dataProvider
- */
- public function testProvider($a)
- {
- $this->assertTrue($a);
- }
-
- public function dataProvider()
- {
- return array(
- 'c:\\'=> array(true),
- 0.9 => array(true)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1348.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1348.phpt
deleted file mode 100644
index a3a721d7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1348.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-GH-1348: STDOUT/STDERR IO streams should exist in process isolation
---SKIPIF--
-<?php
-if (defined('HHVM_VERSION')) {
- print 'skip: PHP runtime required';
-}
-?>
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][] = '--report-useless-tests';
-$_SERVER['argv'][] = '--process-isolation';
-$_SERVER['argv'][] = 'Issue1348Test';
-$_SERVER['argv'][] = __DIR__ . '/1348/Issue1348Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-STDOUT does not break test result
-E
-
-Time: %s, Memory: %s
-
-There was 1 error:
-
-1) Issue1348Test::testSTDERR
-PHPUnit_Framework_Exception: STDERR works as usual.
-
-FAILURES!
-Tests: 2, Assertions: 1, Errors: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1348/Issue1348Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1348/Issue1348Test.php
deleted file mode 100644
index d3c82f0e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1348/Issue1348Test.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-class Issue1348Test extends PHPUnit_Framework_TestCase
-{
- public function testSTDOUT()
- {
- fwrite(STDOUT, "\nSTDOUT does not break test result\n");
- $this->assertTrue(true);
- }
-
- public function testSTDERR()
- {
- fwrite(STDERR, 'STDERR works as usual.');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351.phpt
deleted file mode 100644
index c13c4220..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-GH-1351: Test result does not serialize test class in process isolation
---SKIPIF--
-<?php
-if (!extension_loaded('pdo') || !in_array('sqlite', PDO::getAvailableDrivers())) {
- print 'skip: PDO_SQLITE is required';
-}
-?>
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = 'Issue1351Test';
-$_SERVER['argv'][4] = __DIR__ . '/1351/Issue1351Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-F.E.E
-
-Time: %s, Memory: %s
-
-There were 2 errors:
-
-1) Issue1351Test::testExceptionPre
-RuntimeException: Expected rethrown exception.
-%A
-Caused by
-LogicException: Expected exception.
-%A
-
-2) Issue1351Test::testPhpCoreLanguageException
-PDOException: SQLSTATE[HY000]: General error: 1 no such table: php_wtf
-%A
-
---
-
-There was 1 failure:
-
-1) Issue1351Test::testFailurePre
-Expected failure.
-%A
-FAILURES!
-Tests: 5, Assertions: 5, Errors: 2, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351/ChildProcessClass1351.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351/ChildProcessClass1351.php
deleted file mode 100644
index 24c05376..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351/ChildProcessClass1351.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-class ChildProcessClass1351
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351/Issue1351Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351/Issue1351Test.php
deleted file mode 100644
index f688c554..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1351/Issue1351Test.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-class Issue1351Test extends PHPUnit_Framework_TestCase
-{
- protected $instance;
-
- /**
- * @runInSeparateProcess
- */
- public function testFailurePre()
- {
- $this->instance = new ChildProcessClass1351();
- $this->assertFalse(true, 'Expected failure.');
- }
-
- public function testFailurePost()
- {
- $this->assertNull($this->instance);
- $this->assertFalse(class_exists('ChildProcessClass1351', false), 'ChildProcessClass1351 is not loaded.');
- }
-
- /**
- * @runInSeparateProcess
- */
- public function testExceptionPre()
- {
- $this->instance = new ChildProcessClass1351();
- try {
- throw new LogicException('Expected exception.');
- } catch (LogicException $e) {
- throw new RuntimeException('Expected rethrown exception.', 0, $e);
- }
- }
-
- public function testExceptionPost()
- {
- $this->assertNull($this->instance);
- $this->assertFalse(class_exists('ChildProcessClass1351', false), 'ChildProcessClass1351 is not loaded.');
- }
-
- public function testPhpCoreLanguageException()
- {
- // User-space code cannot instantiate a PDOException with a string code,
- // so trigger a real one.
- $connection = new PDO('sqlite::memory:');
- $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- $connection->query("DELETE FROM php_wtf WHERE exception_code = 'STRING'");
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1374.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1374.phpt
deleted file mode 100644
index 473e01ff..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1374.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-GH-1374: tearDown() is called despite unmet requirements
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue1374Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/1374/Issue1374Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-S
-
-Time: %s, Memory: %s
-
-OK, but incomplete, skipped, or risky tests!
-Tests: 1, Assertions: 0, Skipped: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1374/Issue1374Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1374/Issue1374Test.php
deleted file mode 100644
index ad6a3bf0..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1374/Issue1374Test.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/**
- * @requires extension I_DO_NOT_EXIST
- */
-class Issue1374Test extends PHPUnit_Framework_TestCase
-{
- protected function setUp()
- {
- print __FUNCTION__;
- }
-
- public function testSomething()
- {
- $this->fail('This should not be reached');
- }
-
- protected function tearDown()
- {
- print __FUNCTION__;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1437.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1437.phpt
deleted file mode 100644
index b7064c58..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1437.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-GH-1437: Risky test messages mask failures
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue1437Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/1437/Issue1437Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Issue1437Test::testFailure
-Failed asserting that false is true.
-
-%sIssue1437Test.php:%i
-
-FAILURES!
-Tests: 1, Assertions: 1, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1437/Issue1437Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1437/Issue1437Test.php
deleted file mode 100644
index bff4b205..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1437/Issue1437Test.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-class Issue1437Test extends PHPUnit_Framework_TestCase
-{
- public function testFailure()
- {
- ob_start();
- $this->assertTrue(false);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1468.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1468.phpt
deleted file mode 100644
index 7b46ca97..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1468.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-GH-1468: Incomplete and @todo annotated tests are counted twice
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--disallow-todo-tests';
-$_SERVER['argv'][3] = 'Issue1468Test';
-$_SERVER['argv'][4] = __DIR__ . '/1468/Issue1468Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-I
-
-Time: %s, Memory: %s
-
-OK, but incomplete, skipped, or risky tests!
-Tests: 1, Assertions: 0, Incomplete: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1468/Issue1468Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1468/Issue1468Test.php
deleted file mode 100644
index 535b25b9..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1468/Issue1468Test.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class Issue1468Test extends PHPUnit_Framework_TestCase
-{
- /**
- * @todo Implement this test
- */
- public function testFailure()
- {
- $this->markTestIncomplete();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1471.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1471.phpt
deleted file mode 100644
index 20886823..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1471.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-GH-1471: Output made while test is running is printed although expectOutputString() is used when an assertion fails
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue1471Test';
-$_SERVER['argv'][3] = __DIR__ . '/1471/Issue1471Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Issue1471Test::testFailure
-Failed asserting that false is true.
-
-%s/Issue1471Test.php:10
-
-FAILURES!
-Tests: 1, Assertions: 1, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1471/Issue1471Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1471/Issue1471Test.php
deleted file mode 100644
index 28f12748..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1471/Issue1471Test.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class Issue1471Test extends PHPUnit_Framework_TestCase
-{
- public function testFailure()
- {
- $this->expectOutputString('*');
-
- print '*';
-
- $this->assertTrue(false);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1472.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1472.phpt
deleted file mode 100644
index 0958eb35..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1472.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-GH-1472: assertEqualXMLStructure modifies the tested elements
---SKIPIF--
-<?php
-// See: https://github.com/facebook/hhvm/issues/4669
-if (defined('HHVM_VERSION')) {
- print 'skip: HHVM does not support cloning DOM nodes';
-}
-?>
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue1472Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/1472/Issue1472Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 4 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1472/Issue1472Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1472/Issue1472Test.php
deleted file mode 100644
index a392773a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1472/Issue1472Test.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-class Issue1472Test extends PHPUnit_Framework_TestCase
-{
- public function testAssertEqualXMLStructure()
- {
- $doc = new DOMDocument;
- $doc->loadXML('<root><label>text content</label></root>');
-
- $xpath = new DOMXPath($doc);
-
- $labelElement = $doc->getElementsByTagName('label')->item(0);
-
- $this->assertEquals(1, $xpath->evaluate('count(//label[text() = "text content"])'));
-
- $expectedElmt = $doc->createElement('label', 'text content');
- $this->assertEqualXMLStructure($expectedElmt, $labelElement);
-
- // the following assertion fails, even though it passed before - which is due to the assertEqualXMLStructure() has modified the $labelElement
- $this->assertEquals(1, $xpath->evaluate('count(//label[text() = "text content"])'));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1570.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1570.phpt
deleted file mode 100644
index 553c6448..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1570.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-GH-1570: Test that prints output is marked as failure and not as risky when --disallow-test-output is used
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--disallow-test-output';
-$_SERVER['argv'][3] = 'Issue1570Test';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/1570/Issue1570Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-R*
-
-Time: %s, Memory: %s
-
-OK, but incomplete, skipped, or risky tests!
-Tests: 1, Assertions: 0, Risky: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1570/Issue1570Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1570/Issue1570Test.php
deleted file mode 100644
index 01485066..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/1570/Issue1570Test.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class Issue1570Test extends PHPUnit_Framework_TestCase
-{
- public function testOne()
- {
- print '*';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158.phpt
deleted file mode 100644
index 2866ab98..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-#2158: Failure to run tests in separate processes if a file included into main process contains constant definition
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue2158Test';
-$_SERVER['argv'][3] = __DIR__ . '/2158/Issue2158Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-%s
-
-Time: %s, Memory: %s
-
-OK (2 tests, 2 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158/Issue2158Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158/Issue2158Test.php
deleted file mode 100644
index 014aa4f6..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158/Issue2158Test.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-class Issue2158Test extends PHPUnit_Framework_TestCase
-{
- /**
- * Set constant in main process
- */
- public function testSomething()
- {
- include(__DIR__ . '/constant.inc');
- $this->assertTrue(true);
- }
-
- /**
- * Constant defined previously in main process constant should be available and
- * no errors should be yielded by reload of included files
- *
- * @runInSeparateProcess
- */
- public function testSomethingElse()
- {
- $this->assertTrue(defined('TEST_CONSTANT'));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158/constant.inc b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158/constant.inc
deleted file mode 100644
index 4137114f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/2158/constant.inc
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-define('TEST_CONSTANT', true);
-
-?>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/244.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/244.phpt
deleted file mode 100644
index b517e5c0..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/244.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-GH-244: Expected Exception should support string codes
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = 'Issue244Test';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/244/Issue244Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.FFF
-
-Time: %s, Memory: %s
-
-There were 3 failures:
-
-1) Issue244Test::testFails
-Failed asserting that '123StringCode' is equal to expected exception code 'OtherString'.
-
-2) Issue244Test::testFailsTooIfExpectationIsANumber
-Failed asserting that '123StringCode' is equal to expected exception code 123.
-
-3) Issue244Test::testFailsTooIfExceptionCodeIsANumber
-Failed asserting that 123 is equal to expected exception code '123String'.
-
-FAILURES!
-Tests: 4, Assertions: 8, Failures: 3.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/244/Issue244Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/244/Issue244Test.php
deleted file mode 100644
index 621c4cf5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/244/Issue244Test.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-class Issue244Test extends PHPUnit_Framework_TestCase
-{
- /**
- * @expectedException Issue244Exception
- * @expectedExceptionCode 123StringCode
- */
- public function testWorks()
- {
- throw new Issue244Exception;
- }
-
- /**
- * @expectedException Issue244Exception
- * @expectedExceptionCode OtherString
- */
- public function testFails()
- {
- throw new Issue244Exception;
- }
-
- /**
- * @expectedException Issue244Exception
- * @expectedExceptionCode 123
- */
- public function testFailsTooIfExpectationIsANumber()
- {
- throw new Issue244Exception;
- }
-
- /**
- * @expectedException Issue244ExceptionIntCode
- * @expectedExceptionCode 123String
- */
- public function testFailsTooIfExceptionCodeIsANumber()
- {
- throw new Issue244ExceptionIntCode;
- }
-}
-
-class Issue244Exception extends Exception
-{
- public function __construct()
- {
- $this->code = '123StringCode';
- }
-}
-
-class Issue244ExceptionIntCode extends Exception
-{
- public function __construct()
- {
- $this->code = 123;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322.phpt
deleted file mode 100644
index 0974a706..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-GH-322: group commandline option should override group/exclude setting in phpunit.xml
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--configuration';
-$_SERVER['argv'][2] = dirname(__FILE__) . '/322/phpunit322.xml';
-$_SERVER['argv'][3] = '--debug';
-$_SERVER['argv'][4] = '--group';
-$_SERVER['argv'][5] = 'one';
-$_SERVER['argv'][6] = 'Issue322Test';
-$_SERVER['argv'][7] = dirname(__FILE__) . '/322/Issue322Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-
-Starting test 'Issue322Test::testOne'.
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 0 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322/Issue322Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322/Issue322Test.php
deleted file mode 100644
index 618bcaa1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322/Issue322Test.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-class Issue322Test extends PHPUnit_Framework_TestCase
-{
- /**
- * @group one
- */
- public function testOne()
- {
- }
-
- /**
- * @group two
- */
- public function testTwo()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322/phpunit322.xml b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322/phpunit322.xml
deleted file mode 100644
index e3b29483..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/322/phpunit322.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<phpunit>
- <testsuite name="My Test Suite">
- <file>Test.php</file>
- </testsuite>
-
- <groups>
- <exclude>
- <group>one</group>
- </exclude>
- </groups>
-</phpunit>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/433.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/433.phpt
deleted file mode 100644
index df6c6f8e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/433.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-GH-433: expectOutputString not completely working as expected
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue433Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/433/Issue433Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Issue433Test::testNotMatchingOutput
-Failed asserting that two strings are equal.
---- Expected
-+++ Actual
-@@ @@
--'foo'
-+'bar'
-
-FAILURES!
-Tests: 3, Assertions: 3, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/433/Issue433Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/433/Issue433Test.php
deleted file mode 100644
index e0a91b35..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/433/Issue433Test.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-class Issue433Test extends PHPUnit_Framework_TestCase
-{
- public function testOutputWithExpectationBefore()
- {
- $this->expectOutputString('test');
- print 'test';
- }
-
- public function testOutputWithExpectationAfter()
- {
- print 'test';
- $this->expectOutputString('test');
- }
-
- public function testNotMatchingOutput()
- {
- print 'bar';
- $this->expectOutputString('foo');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/445.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/445.phpt
deleted file mode 100644
index c0183f9e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/445.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-GH-455: expectOutputString not working in strict mode
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--disallow-test-output';
-$_SERVER['argv'][3] = 'Issue445Test';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/445/Issue445Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Issue445Test::testNotMatchingOutput
-Failed asserting that two strings are equal.
---- Expected
-+++ Actual
-@@ @@
--'foo'
-+'bar'
-
-FAILURES!
-Tests: 3, Assertions: 3, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/445/Issue445Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/445/Issue445Test.php
deleted file mode 100644
index c3090259..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/445/Issue445Test.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-class Issue445Test extends PHPUnit_Framework_TestCase
-{
- public function testOutputWithExpectationBefore()
- {
- $this->expectOutputString('test');
- print 'test';
- }
-
- public function testOutputWithExpectationAfter()
- {
- print 'test';
- $this->expectOutputString('test');
- }
-
- public function testNotMatchingOutput()
- {
- print 'bar';
- $this->expectOutputString('foo');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/498.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/498.phpt
deleted file mode 100644
index 4f8508e1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/498.phpt
+++ /dev/null
@@ -1,29 +0,0 @@
---TEST--
-GH-498: The test methods won't be run if a dataProvider throws Exception and --group is added in command line
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--group';
-$_SERVER['argv'][3] = 'trueOnly';
-$_SERVER['argv'][4] = 'Issue498Test';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/498/Issue498Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Warning
-The data provider specified for Issue498Test::shouldBeFalse is invalid.
-Can't create the data
-
-FAILURES!
-Tests: 1, Assertions: 0, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/498/Issue498Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/498/Issue498Test.php
deleted file mode 100644
index 49fa7645..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/498/Issue498Test.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-class Issue498Test extends PHPUnit_Framework_TestCase
-{
- /**
- * @test
- * @dataProvider shouldBeTrueDataProvider
- * @group falseOnly
- */
- public function shouldBeTrue($testData)
- {
- $this->assertTrue(true);
- }
-
- /**
- * @test
- * @dataProvider shouldBeFalseDataProvider
- * @group trueOnly
- */
- public function shouldBeFalse($testData)
- {
- $this->assertFalse(false);
- }
-
- public function shouldBeTrueDataProvider()
- {
-
- //throw new Exception("Can't create the data");
- return array(
- array(true),
- array(false)
- );
- }
-
- public function shouldBeFalseDataProvider()
- {
- throw new Exception("Can't create the data");
-
- return array(
- array(true),
- array(false)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/503.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/503.phpt
deleted file mode 100644
index c9dbd564..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/503.phpt
+++ /dev/null
@@ -1,33 +0,0 @@
---TEST--
-GH-503: assertEquals() Line Ending Differences Are Obscure
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue503Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/503/Issue503Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Issue503Test::testCompareDifferentLineEndings
-Failed asserting that two strings are identical.
---- Expected
-+++ Actual
-@@ @@
- #Warning: Strings contain different line endings!
- foo
-
-%s:%i
-
-FAILURES!
-Tests: 1, Assertions: 1, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/503/Issue503Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/503/Issue503Test.php
deleted file mode 100644
index 75ca8d45..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/503/Issue503Test.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class Issue503Test extends PHPUnit_Framework_TestCase
-{
- public function testCompareDifferentLineEndings()
- {
- $this->assertSame(
- "foo\n",
- "foo\r\n"
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/581.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/581.phpt
deleted file mode 100644
index 96ad88a9..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/581.phpt
+++ /dev/null
@@ -1,42 +0,0 @@
---TEST--
-GH-581: PHPUnit_Util_Type::export adds extra newlines in Windows
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue581Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/581/Issue581Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Issue581Test::testExportingObjectsDoesNotBreakWindowsLineFeeds
-Failed asserting that two objects are equal.
---- Expected
-+++ Actual
-@@ @@
- stdClass Object (
- 0 => 1
- 1 => 2
- 2 => 'Test\n'
- 3 => 4
-- 4 => 5
-+ 4 => 1
- 5 => 6
- 6 => 7
- 7 => 8
- )
-
-%s:%i
-
-FAILURES!
-Tests: 1, Assertions: 1, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/581/Issue581Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/581/Issue581Test.php
deleted file mode 100644
index 51de83b1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/581/Issue581Test.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class Issue581Test extends PHPUnit_Framework_TestCase
-{
- public function testExportingObjectsDoesNotBreakWindowsLineFeeds()
- {
- $this->assertEquals(
- (object) array(1, 2, "Test\r\n", 4, 5, 6, 7, 8),
- (object) array(1, 2, "Test\r\n", 4, 1, 6, 7, 8)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74.phpt
deleted file mode 100644
index 2f54d268..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-GH-74: catchable fatal error in 3.5
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = 'Issue74Test';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/74/Issue74Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-E
-
-Time: %s, Memory: %s
-
-There was 1 error:
-
-1) Issue74Test::testCreateAndThrowNewExceptionInProcessIsolation
-NewException: Testing GH-74
-
-%sIssue74Test.php:7
-
-FAILURES!
-Tests: 1, Assertions: 0, Errors: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74/Issue74Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74/Issue74Test.php
deleted file mode 100644
index 72f35928..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74/Issue74Test.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-class Issue74Test extends PHPUnit_Framework_TestCase
-{
- public function testCreateAndThrowNewExceptionInProcessIsolation()
- {
- require_once __DIR__ . '/NewException.php';
- throw new NewException('Testing GH-74');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74/NewException.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74/NewException.php
deleted file mode 100644
index abe2f711..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/74/NewException.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-class NewException extends Exception
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/765.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/765.phpt
deleted file mode 100644
index 637ad9d1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/765.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-GH-765: Fatal error triggered in PHPUnit when exception is thrown in data provider of a test with a dependency
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue765Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/765/Issue765Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Warning
-The data provider specified for Issue765Test::testDependent is invalid.
-
-FAILURES!
-Tests: 2, Assertions: 1, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/765/Issue765Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/765/Issue765Test.php
deleted file mode 100644
index a47474b2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/765/Issue765Test.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-class Issue765Test extends PHPUnit_Framework_TestCase
-{
- public function testDependee()
- {
- $this->assertTrue(true);
- }
-
- /**
- * @depends testDependee
- * @dataProvider dependentProvider
- */
- public function testDependent($a)
- {
- $this->assertTrue(true);
- }
-
- public function dependentProvider()
- {
- throw new Exception;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797.phpt
deleted file mode 100644
index 8be21eb6..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-GH-797: Disabled $preserveGlobalState does not load bootstrap.php.
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][] = '--process-isolation';
-$_SERVER['argv'][] = '--bootstrap';
-$_SERVER['argv'][] = __DIR__ . '/797/bootstrap797.php';
-$_SERVER['argv'][] = __DIR__ . '/797/Issue797Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion) \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797/Issue797Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797/Issue797Test.php
deleted file mode 100644
index b1c1b8f9..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797/Issue797Test.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-class Issue797Test extends PHPUnit_Framework_TestCase
-{
- protected $preserveGlobalState = false;
-
- public function testBootstrapPhpIsExecutedInIsolation()
- {
- $this->assertEquals(GITHUB_ISSUE, 797);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797/bootstrap797.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797/bootstrap797.php
deleted file mode 100644
index 03890a35..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/797/bootstrap797.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-// If process isolation fails to include this file, then
-// PHPUnit_Framework_TestCase itself does not exist. :-)
-require __DIR__ . '/../../../bootstrap.php';
-
-const GITHUB_ISSUE = 797;
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/863.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/863.phpt
deleted file mode 100644
index cbac4fe6..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/863.phpt
+++ /dev/null
@@ -1,24 +0,0 @@
---TEST--
-GH-863: Number of tests to run calculated incorrectly when --repeat is used
---FILE--
-<?php
-
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--repeat';
-$_SERVER['argv'][3] = '50';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(dirname(dirname(__FILE__))) . '/_files/BankAccountTest.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-............................................................... 63 / 150 ( 42%)
-............................................................... 126 / 150 ( 84%)
-........................
-
-Time: %s, Memory: %s
-
-OK (150 tests, 150 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873-php5.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873-php5.phpt
deleted file mode 100644
index 89b74023..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873-php5.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-GH-873: PHPUnit suppresses exceptions thrown outside of test case function
---SKIPIF--
-<?php
-if (PHP_MAJOR_VERSION > 5) {
- print 'skip: PHP 5 is required';
-}
-?>
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue873Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/873/Issue873Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-
-Fatal error: Uncaught exception 'Exception' with message 'PHPUnit suppresses exceptions thrown outside of test case function' in %s:%i
-Stack trace:
-%a
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873-php7.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873-php7.phpt
deleted file mode 100644
index b022f997..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873-php7.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-GH-873: PHPUnit suppresses exceptions thrown outside of test case function
---SKIPIF--
-<?php
-if (PHP_MAJOR_VERSION < 7) {
- print 'skip: PHP 7 is required';
-}
-?>
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue873Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/873/Issue873Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-
-Fatal error: Uncaught Exception: PHPUnit suppresses exceptions thrown outside of test case function in %s:%i
-Stack trace:
-%a
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873/Issue873Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873/Issue873Test.php
deleted file mode 100644
index 70fd9046..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/GitHub/873/Issue873Test.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-if (extension_loaded('xdebug')) {
- xdebug_disable();
-}
-
- throw new Exception(
- 'PHPUnit suppresses exceptions thrown outside of test case function'
- );
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/1021.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/1021.phpt
deleted file mode 100644
index 2bf6ca11..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/1021.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-#1021: Depending on a test that uses a data provider does not work
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue1021Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/1021/Issue1021Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/1021/Issue1021Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/1021/Issue1021Test.php
deleted file mode 100644
index 5814e94c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/1021/Issue1021Test.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-class Issue1021Test extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider provider
- */
- public function testSomething($data)
- {
- $this->assertTrue($data);
- }
-
- /**
- * @depends testSomething
- */
- public function testSomethingElse()
- {
- }
-
- public function provider()
- {
- return array(array(true));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/523.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/523.phpt
deleted file mode 100644
index c182a987..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/523.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-#523: assertAttributeEquals does not work with classes extending ArrayIterator
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue523Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/523/Issue523Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/523/Issue523Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/523/Issue523Test.php
deleted file mode 100644
index 80124f1d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/523/Issue523Test.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-class Issue523Test extends PHPUnit_Framework_TestCase
-{
- public function testAttributeEquals()
- {
- $this->assertAttributeEquals('foo', 'field', new Issue523());
- }
-};
-
-class Issue523 extends ArrayIterator
-{
- protected $field = 'foo';
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/578.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/578.phpt
deleted file mode 100644
index 27ea9f1f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/578.phpt
+++ /dev/null
@@ -1,37 +0,0 @@
---TEST--
-#578: Double printing of trace line for exceptions from notices and warnings
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue578Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/578/Issue578Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-EEE
-
-Time: %s, Memory: %s
-
-There were 3 errors:
-
-1) Issue578Test::testNoticesDoublePrintStackTrace
-Invalid error type specified
-
-%sIssue578Test.php:%i
-
-2) Issue578Test::testWarningsDoublePrintStackTrace
-Invalid error type specified
-
-%sIssue578Test.php:%i
-
-3) Issue578Test::testUnexpectedExceptionsPrintsCorrectly
-Exception: Double printed exception
-
-%sIssue578Test.php:%i
-
-FAILURES!
-Tests: 3, Assertions: 0, Errors: 3.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/578/Issue578Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/578/Issue578Test.php
deleted file mode 100644
index 262d97f6..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/578/Issue578Test.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-class Issue578Test extends PHPUnit_Framework_TestCase
-{
- public function testNoticesDoublePrintStackTrace()
- {
- $this->iniSet('error_reporting', E_ALL | E_NOTICE);
- trigger_error('Stack Trace Test Notice', E_NOTICE);
- }
-
- public function testWarningsDoublePrintStackTrace()
- {
- $this->iniSet('error_reporting', E_ALL | E_NOTICE);
- trigger_error('Stack Trace Test Notice', E_WARNING);
- }
-
- public function testUnexpectedExceptionsPrintsCorrectly()
- {
- throw new Exception('Double printed exception');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/684.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/684.phpt
deleted file mode 100644
index da51508d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/684.phpt
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-#684: Unable to find test class when no test methods exists
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'Issue684Test';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/684/Issue684Test.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Warning
-No tests found in class "Foo_Bar_Issue684Test".
-
-FAILURES!
-Tests: 1, Assertions: 0, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/684/Issue684Test.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/684/Issue684Test.php
deleted file mode 100644
index e8e5d87e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/684/Issue684Test.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-class Foo_Bar_Issue684Test extends PHPUnit_Framework_TestCase
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783.phpt b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783.phpt
deleted file mode 100644
index 73e5784d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-#783: Tests getting executed twice when using multiple groups
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--group';
-$_SERVER['argv'][3] = 'foo,bar';
-$_SERVER['argv'][4] = 'ParentSuite';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/783/ParentSuite.php';
-
-require __DIR__ . '/../../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 0 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/ChildSuite.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/ChildSuite.php
deleted file mode 100644
index 8bac5144..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/ChildSuite.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-require_once 'OneTest.php';
-require_once 'TwoTest.php';
-
-class ChildSuite
-{
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('Child');
- $suite->addTestSuite('OneTest');
- $suite->addTestSuite('TwoTest');
-
- return $suite;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/OneTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/OneTest.php
deleted file mode 100644
index 71951582..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/OneTest.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-/**
- * @group foo
- */
-class OneTest extends PHPUnit_Framework_TestCase
-{
- public function testSomething()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/ParentSuite.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/ParentSuite.php
deleted file mode 100644
index 6dd63e27..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/ParentSuite.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-require_once 'ChildSuite.php';
-
-class ParentSuite
-{
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('Parent');
- $suite->addTest(ChildSuite::suite());
-
- return $suite;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/TwoTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/TwoTest.php
deleted file mode 100644
index 580246ce..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Regression/Trac/783/TwoTest.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-/**
- * @group bar
- */
-class TwoTest extends PHPUnit_Framework_TestCase
-{
- public function testSomething()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Runner/BaseTestRunnerTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Runner/BaseTestRunnerTest.php
deleted file mode 100644
index a0bbb008..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Runner/BaseTestRunnerTest.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.0.0
- * @covers PHPUnit_Runner_BaseTestRunner
- */
-class Runner_BaseTestRunnerTest extends PHPUnit_Framework_TestCase
-{
- public function testInvokeNonStaticSuite()
- {
- $runner = new MockRunner;
- $runner->getTest('NonStatic');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/abstract-test-class.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/abstract-test-class.phpt
deleted file mode 100644
index e26a80c7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/abstract-test-class.phpt
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-phpunit AbstractTest ../_files/AbstractTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'AbstractTest';
-$_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/AbstractTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Warning
-Cannot instantiate class "AbstractTest".
-
-FAILURES!
-Tests: 1, Assertions: 0, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/colors-always.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/colors-always.phpt
deleted file mode 100644
index 0e0ac1ed..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/colors-always.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-phpunit --colors=always BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--colors=always';
-$_SERVER['argv'][3] = __DIR__ . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-%s[30;42mOK (3 tests, 3 assertions)%s[0m
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/concrete-test-class.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/concrete-test-class.phpt
deleted file mode 100644
index 445c01c4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/concrete-test-class.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-phpunit ConcreteTest ../_files/ConcreteTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'ConcreteTest';
-$_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/ConcreteTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 0 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/custom-printer-debug.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/custom-printer-debug.phpt
deleted file mode 100644
index 81e4ae06..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/custom-printer-debug.phpt
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-phpunit -c ../_files/configuration.custom-printer.xml --debug BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '-c';
-$_SERVER['argv'][2] = dirname(__FILE__) . '/../_files/configuration.custom-printer.xml';
-$_SERVER['argv'][3] = '--debug';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-
-Starting test 'BankAccountTest::testBalanceIsInitiallyZero'.
-.
-Starting test 'BankAccountTest::testBalanceCannotBecomeNegative'.
-.
-Starting test 'BankAccountTest::testBalanceCannotBecomeNegative2'.
-.
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/custom-printer-verbose.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/custom-printer-verbose.phpt
deleted file mode 100644
index 2255a6ee..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/custom-printer-verbose.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-phpunit -c ../_files/configuration.custom-printer.xml --verbose IncompleteTest ../_files/IncompleteTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '-c';
-$_SERVER['argv'][2] = dirname(__FILE__) . '/../_files/configuration.custom-printer.xml';
-$_SERVER['argv'][3] = '--verbose';
-$_SERVER['argv'][4] = 'IncompleteTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/IncompleteTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-Runtime: %s
-Configuration: %sconfiguration.custom-printer.xml
-
-I
-
-Time: %s, Memory: %s
-
-There was 1 incomplete test:
-
-1) IncompleteTest::testIncomplete
-Test incomplete
-
-%s
-
-OK, but incomplete, skipped, or risky tests!
-Tests: 1, Assertions: 0, Incomplete: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-debug.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-debug.phpt
deleted file mode 100644
index e95136f2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-debug.phpt
+++ /dev/null
@@ -1,34 +0,0 @@
---TEST--
-phpunit --debug DataProviderDebugTest ../_files/DataProviderDebugTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--debug';
-$_SERVER['argv'][3] = 'DataProviderDebugTest';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/../_files/DataProviderDebugTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-
-Starting test 'DataProviderDebugTest::testProvider with data set #0 (null, true, 1, 1.0)'.
-.
-Starting test 'DataProviderDebugTest::testProvider with data set #1 (1.2, resource(%d) of type (stream), '1')'.
-.
-Starting test 'DataProviderDebugTest::testProvider with data set #2 (array(array(1, 2, 3), array(3, 4, 5)))'.
-.
-Starting test 'DataProviderDebugTest::testProvider with data set #3 ('this\nis\na\nvery\nvery\nvery\nvery...g\ntext')'.
-.
-Starting test 'DataProviderDebugTest::testProvider with data set #4 (stdClass Object (), stdClass Object (...), array(), SplObjectStorage Object (...), stdClass Object (...))'.
-.
-Starting test 'DataProviderDebugTest::testProvider with data set #5 (Binary String: 0x000102030405, Binary String: 0x0e0f101112131...c1d1e1f)'.
-.
-Starting test 'DataProviderDebugTest::testProvider with data set #6 (Binary String: 0x0009)'.
-.
-
-Time: %s, Memory: %s
-
-OK (7 tests, 7 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-log-xml-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-log-xml-isolation.phpt
deleted file mode 100644
index 0e70df80..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-log-xml-isolation.phpt
+++ /dev/null
@@ -1,47 +0,0 @@
---TEST--
-phpunit --process-isolation --log-junit php://stdout DataProviderTest ../_files/DataProviderTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--log-junit';
-$_SERVER['argv'][4] = 'php://stdout';
-$_SERVER['argv'][5] = 'DataProviderTest';
-$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/DataProviderTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..F.<?xml version="1.0" encoding="UTF-8"?>
-<testsuites>
- <testsuite name="DataProviderTest" file="%sDataProviderTest.php" tests="4" assertions="4" failures="1" errors="0" time="%f">
- <testsuite name="DataProviderTest::testAdd" tests="4" assertions="4" failures="1" errors="0" time="%f">
- <testcase name="testAdd with data set #0" assertions="1" time="%f"/>
- <testcase name="testAdd with data set #1" assertions="1" time="%f"/>
- <testcase name="testAdd with data set #2" assertions="1" time="%f">
- <failure type="PHPUnit_Framework_ExpectationFailedException">DataProviderTest::testAdd with data set #2 (1, 1, 3)
-Failed asserting that 2 matches expected 3.
-
-%s:%i
-</failure>
- </testcase>
- <testcase name="testAdd with data set #3" assertions="1" time="%f"/>
- </testsuite>
- </testsuite>
-</testsuites>
-
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) DataProviderTest::testAdd with data set #2 (1, 1, 3)
-Failed asserting that 2 matches expected 3.
-
-%s:%i
-
-FAILURES!
-Tests: 4, Assertions: 4, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-log-xml.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-log-xml.phpt
deleted file mode 100644
index f6ca5d16..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-log-xml.phpt
+++ /dev/null
@@ -1,46 +0,0 @@
---TEST--
-phpunit --log-junit php://stdout DataProviderTest ../_files/DataProviderTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--log-junit';
-$_SERVER['argv'][3] = 'php://stdout';
-$_SERVER['argv'][4] = 'DataProviderTest';
-$_SERVER['argv'][5] = dirname(dirname(__FILE__)) . '/_files/DataProviderTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..F.<?xml version="1.0" encoding="UTF-8"?>
-<testsuites>
- <testsuite name="DataProviderTest" file="%sDataProviderTest.php" tests="4" assertions="4" failures="1" errors="0" time="%f">
- <testsuite name="DataProviderTest::testAdd" tests="4" assertions="4" failures="1" errors="0" time="%f">
- <testcase name="testAdd with data set #0" assertions="1" time="%f"/>
- <testcase name="testAdd with data set #1" assertions="1" time="%f"/>
- <testcase name="testAdd with data set #2" assertions="1" time="%f">
- <failure type="PHPUnit_Framework_ExpectationFailedException">DataProviderTest::testAdd with data set #2 (1, 1, 3)
-Failed asserting that 2 matches expected 3.
-
-%s:%i
-</failure>
- </testcase>
- <testcase name="testAdd with data set #3" assertions="1" time="%f"/>
- </testsuite>
- </testsuite>
-</testsuites>
-
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) DataProviderTest::testAdd with data set #2 (1, 1, 3)
-Failed asserting that 2 matches expected 3.
-
-%s:%i
-
-FAILURES!
-Tests: 4, Assertions: 4, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-testdox.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-testdox.phpt
deleted file mode 100644
index 75973fea..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dataprovider-testdox.phpt
+++ /dev/null
@@ -1,17 +0,0 @@
---TEST--
-phpunit --testdox DataProviderTest ../_files/DataProviderTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--testdox';
-$_SERVER['argv'][3] = 'DataProviderTest';
-$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/DataProviderTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-DataProvider
- [ ] Add
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/debug.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/debug.phpt
deleted file mode 100644
index 0829197c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/debug.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-phpunit --debug BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--debug';
-$_SERVER['argv'][3] = 'BankAccountTest';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-
-Starting test 'BankAccountTest::testBalanceIsInitiallyZero'.
-.
-Starting test 'BankAccountTest::testBalanceCannotBecomeNegative'.
-.
-Starting test 'BankAccountTest::testBalanceCannotBecomeNegative2'.
-.
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/default-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/default-isolation.phpt
deleted file mode 100644
index cca8bc81..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/default-isolation.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-phpunit --process-isolation BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = 'BankAccountTest';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/default.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/default.phpt
deleted file mode 100644
index bd7615b2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/default.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-phpunit BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'BankAccountTest';
-$_SERVER['argv'][3] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies-isolation.phpt
deleted file mode 100644
index 6d2a5b35..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies-isolation.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-phpunit --process-isolation --verbose DependencyTestSuite ../_files/DependencyTestSuite.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--verbose';
-$_SERVER['argv'][4] = 'DependencyTestSuite';
-$_SERVER['argv'][5] = dirname(dirname(__FILE__)) . '/_files/DependencyTestSuite.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-Runtime: %s
-
-...FSS
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) DependencyFailureTest::testOne
-
-%s:%i
-
---
-
-There were 2 skipped tests:
-
-1) DependencyFailureTest::testTwo
-This test depends on "DependencyFailureTest::testOne" to pass.
-
-2) DependencyFailureTest::testThree
-This test depends on "DependencyFailureTest::testTwo" to pass.
-
-FAILURES!
-Tests: 4, Assertions: 0, Failures: 1, Skipped: 2.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies.phpt
deleted file mode 100644
index f32d10a5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-phpunit --verbose DependencyTestSuite ../_files/DependencyTestSuite.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--verbose';
-$_SERVER['argv'][3] = 'DependencyTestSuite';
-$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/DependencyTestSuite.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-Runtime: %s
-
-...FSS
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) DependencyFailureTest::testOne
-
-%s:%i
-
---
-
-There were 2 skipped tests:
-
-1) DependencyFailureTest::testTwo
-This test depends on "DependencyFailureTest::testOne" to pass.
-
-2) DependencyFailureTest::testThree
-This test depends on "DependencyFailureTest::testTwo" to pass.
-
-FAILURES!
-Tests: 4, Assertions: 0, Failures: 1, Skipped: 2.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies2-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies2-isolation.phpt
deleted file mode 100644
index 5e7ef8fe..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies2-isolation.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-phpunit --process-isolation StackTest ../_files/StackTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = 'StackTest';
-$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/StackTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 5 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies2.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies2.phpt
deleted file mode 100644
index a30dd4e2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies2.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-phpunit StackTest ../_files/StackTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'StackTest';
-$_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/StackTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 5 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies3-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies3-isolation.phpt
deleted file mode 100644
index 51d448c2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies3-isolation.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-phpunit --process-isolation MultiDependencyTest ../_files/MultiDependencyTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = 'MultiDependencyTest';
-$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/MultiDependencyTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 2 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies3.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies3.phpt
deleted file mode 100644
index 218620d6..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/dependencies3.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-phpunit MultiDependencyTest ../_files/MultiDependencyTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'MultiDependencyTest';
-$_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/MultiDependencyTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 2 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/empty-testcase.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/empty-testcase.phpt
deleted file mode 100644
index 0d0eccb5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/empty-testcase.phpt
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-phpunit EmptyTestCaseTest ../_files/EmptyTestCaseTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'EmptyTestCaseTest';
-$_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/EmptyTestCaseTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-F
-
-Time: %s, Memory: %s
-
-There was 1 failure:
-
-1) Warning
-No tests found in class "EmptyTestCaseTest".
-
-FAILURES!
-Tests: 1, Assertions: 0, Failures: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/exception-stack.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/exception-stack.phpt
deleted file mode 100644
index 823ef1bd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/exception-stack.phpt
+++ /dev/null
@@ -1,65 +0,0 @@
---TEST--
-phpunit ExceptionStackTest ../_files/ExceptionStackTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'ExceptionStackTest';
-$_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/ExceptionStackTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-EE
-
-Time: %s, Memory: %s
-
-There were 2 errors:
-
-1) ExceptionStackTest::testPrintingChildException
-PHPUnit_Framework_Exception: Child exception
-message
-Failed asserting that two arrays are equal.
---- Expected
-+++ Actual
-@@ @@
- Array (
-- 0 => 1
-+ 0 => 2
- )
-
-
-%s:%i
-
-Caused by
-message
-Failed asserting that two arrays are equal.
---- Expected
-+++ Actual
-@@ @@
- Array (
-- 0 => 1
-+ 0 => 2
- )
-
-%s:%i
-
-2) ExceptionStackTest::testNestedExceptions
-Exception: One
-
-%s:%i
-
-Caused by
-InvalidArgumentException: Two
-
-%s:%i
-
-Caused by
-Exception: Three
-
-%s:%i
-
-FAILURES!
-Tests: 2, Assertions: 1, Errors: 2.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/exclude-group-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/exclude-group-isolation.phpt
deleted file mode 100644
index b9afb6b7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/exclude-group-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --exclude-group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--exclude-group';
-$_SERVER['argv'][4] = 'balanceIsInitiallyZero';
-$_SERVER['argv'][5] = 'BankAccountTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 2 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/exclude-group.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/exclude-group.phpt
deleted file mode 100644
index dcbc5d3d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/exclude-group.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --exclude-group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--exclude-group';
-$_SERVER['argv'][3] = 'balanceIsInitiallyZero';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 2 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/failure-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/failure-isolation.phpt
deleted file mode 100644
index a0c9906a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/failure-isolation.phpt
+++ /dev/null
@@ -1,142 +0,0 @@
---TEST--
-phpunit --process-isolation FailureTest ../_files/FailureTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = 'FailureTest';
-$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/FailureTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-FFFFFFFFFFFFF
-
-Time: %s, Memory: %s
-
-There were 13 failures:
-
-1) FailureTest::testAssertArrayEqualsArray
-message
-Failed asserting that two arrays are equal.
---- Expected
-+++ Actual
-@@ @@
- Array (
-- 0 => 1
-+ 0 => 2
- )
-
-%s:%i
-
-2) FailureTest::testAssertIntegerEqualsInteger
-message
-Failed asserting that 2 matches expected 1.
-
-%s:%i
-
-3) FailureTest::testAssertObjectEqualsObject
-message
-Failed asserting that two objects are equal.
---- Expected
-+++ Actual
-@@ @@
- stdClass Object (
-- 'foo' => 'bar'
-+ 'bar' => 'foo'
- )
-
-%s:%i
-
-4) FailureTest::testAssertNullEqualsString
-message
-Failed asserting that 'bar' matches expected null.
-
-%s:%i
-
-5) FailureTest::testAssertStringEqualsString
-message
-Failed asserting that two strings are equal.
---- Expected
-+++ Actual
-@@ @@
--'foo'
-+'bar'
-
-%s:%i
-
-6) FailureTest::testAssertTextEqualsText
-message
-Failed asserting that two strings are equal.
---- Expected
-+++ Actual
-@@ @@
- 'foo
--bar
-+baz
- '
-
-%s:%i
-
-7) FailureTest::testAssertStringMatchesFormat
-message
-Failed asserting that format description matches text.
---- Expected
-+++ Actual
-@@ @@
--*%s*
-+**
-
-%s:%i
-
-8) FailureTest::testAssertNumericEqualsNumeric
-message
-Failed asserting that 2 matches expected 1.
-
-%s:%i
-
-9) FailureTest::testAssertTextSameText
-message
-Failed asserting that two strings are identical.
---- Expected
-+++ Actual
-@@ @@
--foo
-+bar
-
-%s:%i
-
-10) FailureTest::testAssertObjectSameObject
-message
-Failed asserting that two variables reference the same object.
-
-%s:%i
-
-11) FailureTest::testAssertObjectSameNull
-message
-Failed asserting that null is identical to an object of class "stdClass".
-
-%s:%i
-
-12) FailureTest::testAssertFloatSameFloat
-message
-Failed asserting that 1.5 is identical to 1.0.
-
-%s:%i
-
-13) FailureTest::testAssertStringMatchesFormatFile
-Failed asserting that format description matches text.
---- Expected
-+++ Actual
-@@ @@
--FOO
--
-+...BAR...
-
-%s:%i
-
-FAILURES!
-Tests: 13, Assertions: 14, Failures: 13.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/failure.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/failure.phpt
deleted file mode 100644
index 30ce3031..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/failure.phpt
+++ /dev/null
@@ -1,141 +0,0 @@
---TEST--
-phpunit FailureTest ../_files/FailureTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = 'FailureTest';
-$_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/FailureTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-FFFFFFFFFFFFF
-
-Time: %s, Memory: %s
-
-There were 13 failures:
-
-1) FailureTest::testAssertArrayEqualsArray
-message
-Failed asserting that two arrays are equal.
---- Expected
-+++ Actual
-@@ @@
- Array (
-- 0 => 1
-+ 0 => 2
- )
-
-%s:%i
-
-2) FailureTest::testAssertIntegerEqualsInteger
-message
-Failed asserting that 2 matches expected 1.
-
-%s:%i
-
-3) FailureTest::testAssertObjectEqualsObject
-message
-Failed asserting that two objects are equal.
---- Expected
-+++ Actual
-@@ @@
- stdClass Object (
-- 'foo' => 'bar'
-+ 'bar' => 'foo'
- )
-
-%s:%i
-
-4) FailureTest::testAssertNullEqualsString
-message
-Failed asserting that 'bar' matches expected null.
-
-%s:%i
-
-5) FailureTest::testAssertStringEqualsString
-message
-Failed asserting that two strings are equal.
---- Expected
-+++ Actual
-@@ @@
--'foo'
-+'bar'
-
-%s:%i
-
-6) FailureTest::testAssertTextEqualsText
-message
-Failed asserting that two strings are equal.
---- Expected
-+++ Actual
-@@ @@
- 'foo
--bar
-+baz
- '
-
-%s:%i
-
-7) FailureTest::testAssertStringMatchesFormat
-message
-Failed asserting that format description matches text.
---- Expected
-+++ Actual
-@@ @@
--*%s*
-+**
-
-%s:%i
-
-8) FailureTest::testAssertNumericEqualsNumeric
-message
-Failed asserting that 2 matches expected 1.
-
-%s:%i
-
-9) FailureTest::testAssertTextSameText
-message
-Failed asserting that two strings are identical.
---- Expected
-+++ Actual
-@@ @@
--foo
-+bar
-
-%s:%i
-
-10) FailureTest::testAssertObjectSameObject
-message
-Failed asserting that two variables reference the same object.
-
-%s:%i
-
-11) FailureTest::testAssertObjectSameNull
-message
-Failed asserting that null is identical to an object of class "stdClass".
-
-%s:%i
-
-12) FailureTest::testAssertFloatSameFloat
-message
-Failed asserting that 1.5 is identical to 1.0.
-
-%s:%i
-
-13) FailureTest::testAssertStringMatchesFormatFile
-Failed asserting that format description matches text.
---- Expected
-+++ Actual
-@@ @@
--FOO
--
-+...BAR...
-
-%s:%i
-
-FAILURES!
-Tests: 13, Assertions: 14, Failures: 13.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/fatal-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/fatal-isolation.phpt
deleted file mode 100644
index 95e3f113..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/fatal-isolation.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-phpunit FatalTest --process-isolation ../_files/FatalTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = 'FatalTest';
-$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/FatalTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-E
-
-Time: %s, Memory: %s
-
-There was 1 error:
-
-1) FatalTest::testFatalError
-%s
-
-FAILURES!
-Tests: 1, Assertions: 0, Errors: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-class-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-class-isolation.phpt
deleted file mode 100644
index acb2e5d7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-class-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --filter BankAccountTest BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = 'BankAccountTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-class.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-class.phpt
deleted file mode 100644
index 97c94da1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-class.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter BankAccountTest BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = 'BankAccountTest';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-classname-and-range-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-classname-and-range-isolation.phpt
deleted file mode 100644
index 630a48a7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-classname-and-range-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --filter DataProviderFilterTest#1-3 DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = 'DataProviderFilterTest#1-3';
-$_SERVER['argv'][5] = 'DataProviderFilterTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-classname-and-range.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-classname-and-range.phpt
deleted file mode 100644
index 2314eb85..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-classname-and-range.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter DataProviderFilterTest#1-3 DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = 'DataProviderFilterTest#1-3';
-$_SERVER['argv'][4] = 'DataProviderFilterTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-number-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-number-isolation.phpt
deleted file mode 100644
index 3ff675e4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-number-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --filter testTrue#3 DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = 'testTrue#3';
-$_SERVER['argv'][5] = 'DataProviderFilterTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-number.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-number.phpt
deleted file mode 100644
index bc7beda4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-number.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter testTrue#3 DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = 'testTrue#3';
-$_SERVER['argv'][4] = 'DataProviderFilterTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-range-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-range-isolation.phpt
deleted file mode 100644
index 6aa25676..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-range-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --filter \#1-3 DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = '#1-3';
-$_SERVER['argv'][5] = 'DataProviderFilterTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-range.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-range.phpt
deleted file mode 100644
index b3b681c4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-range.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter \#1-3 DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = '#1-3';
-$_SERVER['argv'][4] = 'DataProviderFilterTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-regexp-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-regexp-isolation.phpt
deleted file mode 100644
index db1516bb..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-regexp-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --filter @false.* DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = '@false.*';
-$_SERVER['argv'][5] = 'DataProviderFilterTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 2 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-regexp.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-regexp.phpt
deleted file mode 100644
index 27db60b3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-regexp.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter @false.* DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = '@false.*';
-$_SERVER['argv'][4] = 'DataProviderFilterTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 2 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-string-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-string-isolation.phpt
deleted file mode 100644
index fca15519..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-string-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --filter @false\ test DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = '@false test';
-$_SERVER['argv'][5] = 'DataProviderFilterTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-string.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-string.phpt
deleted file mode 100644
index 00a32d7a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-only-string.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter @false\ test DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = '@false test';
-$_SERVER['argv'][4] = 'DataProviderFilterTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-range-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-range-isolation.phpt
deleted file mode 100644
index 22bacbbe..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-range-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --filter testTrue#1-3 DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = 'testTrue#1-3';
-$_SERVER['argv'][5] = 'DataProviderFilterTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-range.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-range.phpt
deleted file mode 100644
index 2a6a5570..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-range.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter testTrue#1-3 DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = 'testTrue#1-3';
-$_SERVER['argv'][4] = 'DataProviderFilterTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-regexp-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-regexp-isolation.phpt
deleted file mode 100644
index 8126802c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-regexp-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --filter testFalse@false.* DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = 'testFalse@false.*';
-$_SERVER['argv'][5] = 'DataProviderFilterTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 2 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-regexp.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-regexp.phpt
deleted file mode 100644
index 17ad7183..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-regexp.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter testFalse@false.* DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = 'testFalse@false.*';
-$_SERVER['argv'][4] = 'DataProviderFilterTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-..
-
-Time: %s, Memory: %s
-
-OK (2 tests, 2 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-string-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-string-isolation.phpt
deleted file mode 100644
index db34b62b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-string-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --filter testFalse@false\ test DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = 'testFalse@false test';
-$_SERVER['argv'][5] = 'DataProviderFilterTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-string.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-string.phpt
deleted file mode 100644
index 79878e9b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-dataprovider-by-string.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter testFalse@false\ test DataProviderFilterTest ../_files/DataProviderFilterTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = 'testFalse@false test';
-$_SERVER['argv'][4] = 'DataProviderFilterTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/DataProviderFilterTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-case-insensitive.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-case-insensitive.phpt
deleted file mode 100644
index 4f510421..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-case-insensitive.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter /balanceIsInitiallyZero/i BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = '/balanceIsInitiallyZero/i';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-case-sensitive-no-result.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-case-sensitive-no-result.phpt
deleted file mode 100644
index 454d116d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-case-sensitive-no-result.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = '/balanceIsInitiallyZero/';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-
-
-Time: %s, Memory: %s
-
-No tests executed!
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-isolation.phpt
deleted file mode 100644
index c9fa6e54..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --filter testBalanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = 'testBalanceIsInitiallyZero';
-$_SERVER['argv'][5] = 'BankAccountTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method.phpt
deleted file mode 100644
index 95fd598a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-method.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter testBalanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = 'testBalanceIsInitiallyZero';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-no-results.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-no-results.phpt
deleted file mode 100644
index bb1e6d37..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/filter-no-results.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --filter doesNotExist BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--filter';
-$_SERVER['argv'][3] = 'doesNotExist';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-
-
-Time: %s, Memory: %s
-
-No tests executed!
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/group-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/group-isolation.phpt
deleted file mode 100644
index 7e74c6f9..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/group-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation --group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--group';
-$_SERVER['argv'][4] = 'balanceIsInitiallyZero';
-$_SERVER['argv'][5] = 'BankAccountTest';
-$_SERVER['argv'][6] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/group.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/group.phpt
deleted file mode 100644
index be123934..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/group.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --group balanceIsInitiallyZero BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--group';
-$_SERVER['argv'][3] = 'balanceIsInitiallyZero';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/help.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/help.phpt
deleted file mode 100644
index 8022c47f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/help.phpt
+++ /dev/null
@@ -1,87 +0,0 @@
---TEST--
-phpunit
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-Usage: phpunit [options] UnitTest [UnitTest.php]
- phpunit [options] <directory>
-
-Code Coverage Options:
-
- --coverage-clover <file> Generate code coverage report in Clover XML format.
- --coverage-crap4j <file> Generate code coverage report in Crap4J XML format.
- --coverage-html <dir> Generate code coverage report in HTML format.
- --coverage-php <file> Export PHP_CodeCoverage object to file.
- --coverage-text=<file> Generate code coverage report in text format.
- Default: Standard output.
- --coverage-xml <dir> Generate code coverage report in PHPUnit XML format.
-
-Logging Options:
-
- --log-junit <file> Log test execution in JUnit XML format to file.
- --log-tap <file> Log test execution in TAP format to file.
- --log-json <file> Log test execution in JSON format.
- --testdox-html <file> Write agile documentation in HTML format to file.
- --testdox-text <file> Write agile documentation in Text format to file.
-
-Test Selection Options:
-
- --filter <pattern> Filter which tests to run.
- --testsuite <name> Filter which testsuite to run.
- --group ... Only runs tests from the specified group(s).
- --exclude-group ... Exclude tests from the specified group(s).
- --list-groups List available test groups.
- --test-suffix ... Only search for test in files with specified
- suffix(es). Default: Test.php,.phpt
-
-Test Execution Options:
-
- --report-useless-tests Be strict about tests that do not test anything.
- --strict-coverage Be strict about unintentionally covered code.
- --strict-global-state Be strict about changes to global state
- --disallow-test-output Be strict about output during tests.
- --enforce-time-limit Enforce time limit based on test size.
- --disallow-todo-tests Disallow @todo-annotated tests.
-
- --process-isolation Run each test in a separate PHP process.
- --no-globals-backup Do not backup and restore $GLOBALS for each test.
- --static-backup Backup and restore static attributes for each test.
-
- --colors=<flag> Use colors in output ("never", "auto" or "always").
- --columns <n> Number of columns to use for progress output.
- --columns max Use maximum number of columns for progress output.
- --stderr Write to STDERR instead of STDOUT.
- --stop-on-error Stop execution upon first error.
- --stop-on-failure Stop execution upon first error or failure.
- --stop-on-risky Stop execution upon first risky test.
- --stop-on-skipped Stop execution upon first skipped test.
- --stop-on-incomplete Stop execution upon first incomplete test.
- -v|--verbose Output more verbose information.
- --debug Display debugging information during test execution.
-
- --loader <loader> TestSuiteLoader implementation to use.
- --repeat <times> Runs the test(s) repeatedly.
- --tap Report test execution progress in TAP format.
- --testdox Report test execution progress in TestDox format.
- --printer <printer> TestListener implementation to use.
-
-Configuration Options:
-
- --bootstrap <file> A "bootstrap" PHP file that is run before the tests.
- -c|--configuration <file> Read configuration from XML file.
- --no-configuration Ignore default configuration file (phpunit.xml).
- --no-coverage Ignore code coverage configuration.
- --include-path <path(s)> Prepend PHP's include_path with given path(s).
- -d key[=value] Sets a php.ini value.
-
-Miscellaneous Options:
-
- -h|--help Prints this usage information.
- --version Prints the version and exits.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/help2.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/help2.phpt
deleted file mode 100644
index 020f949c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/help2.phpt
+++ /dev/null
@@ -1,88 +0,0 @@
---TEST--
-phpunit --help
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--help';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-Usage: phpunit [options] UnitTest [UnitTest.php]
- phpunit [options] <directory>
-
-Code Coverage Options:
-
- --coverage-clover <file> Generate code coverage report in Clover XML format.
- --coverage-crap4j <file> Generate code coverage report in Crap4J XML format.
- --coverage-html <dir> Generate code coverage report in HTML format.
- --coverage-php <file> Export PHP_CodeCoverage object to file.
- --coverage-text=<file> Generate code coverage report in text format.
- Default: Standard output.
- --coverage-xml <dir> Generate code coverage report in PHPUnit XML format.
-
-Logging Options:
-
- --log-junit <file> Log test execution in JUnit XML format to file.
- --log-tap <file> Log test execution in TAP format to file.
- --log-json <file> Log test execution in JSON format.
- --testdox-html <file> Write agile documentation in HTML format to file.
- --testdox-text <file> Write agile documentation in Text format to file.
-
-Test Selection Options:
-
- --filter <pattern> Filter which tests to run.
- --testsuite <name> Filter which testsuite to run.
- --group ... Only runs tests from the specified group(s).
- --exclude-group ... Exclude tests from the specified group(s).
- --list-groups List available test groups.
- --test-suffix ... Only search for test in files with specified
- suffix(es). Default: Test.php,.phpt
-
-Test Execution Options:
-
- --report-useless-tests Be strict about tests that do not test anything.
- --strict-coverage Be strict about unintentionally covered code.
- --strict-global-state Be strict about changes to global state
- --disallow-test-output Be strict about output during tests.
- --enforce-time-limit Enforce time limit based on test size.
- --disallow-todo-tests Disallow @todo-annotated tests.
-
- --process-isolation Run each test in a separate PHP process.
- --no-globals-backup Do not backup and restore $GLOBALS for each test.
- --static-backup Backup and restore static attributes for each test.
-
- --colors=<flag> Use colors in output ("never", "auto" or "always").
- --columns <n> Number of columns to use for progress output.
- --columns max Use maximum number of columns for progress output.
- --stderr Write to STDERR instead of STDOUT.
- --stop-on-error Stop execution upon first error.
- --stop-on-failure Stop execution upon first error or failure.
- --stop-on-risky Stop execution upon first risky test.
- --stop-on-skipped Stop execution upon first skipped test.
- --stop-on-incomplete Stop execution upon first incomplete test.
- -v|--verbose Output more verbose information.
- --debug Display debugging information during test execution.
-
- --loader <loader> TestSuiteLoader implementation to use.
- --repeat <times> Runs the test(s) repeatedly.
- --tap Report test execution progress in TAP format.
- --testdox Report test execution progress in TestDox format.
- --printer <printer> TestListener implementation to use.
-
-Configuration Options:
-
- --bootstrap <file> A "bootstrap" PHP file that is run before the tests.
- -c|--configuration <file> Read configuration from XML file.
- --no-configuration Ignore default configuration file (phpunit.xml).
- --no-coverage Ignore code coverage configuration.
- --include-path <path(s)> Prepend PHP's include_path with given path(s).
- -d key[=value] Sets a php.ini value.
-
-Miscellaneous Options:
-
- -h|--help Prints this usage information.
- --version Prints the version and exits.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/ini-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/ini-isolation.phpt
deleted file mode 100644
index 76b88ac1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/ini-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --process-isolation -d default_mimetype=application/x-test IniTest ../_files/IniTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '-d';
-$_SERVER['argv'][4] = 'default_mimetype=application/x-test';
-$_SERVER['argv'][5] = 'IniTest';
-$_SERVER['argv'][6] = dirname(dirname(__FILE__)) . '/_files/IniTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/list-groups.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/list-groups.phpt
deleted file mode 100644
index fba98685..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/list-groups.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-phpunit --list-groups BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--list-groups';
-$_SERVER['argv'][3] = 'BankAccountTest';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-Available test group(s):
- - balanceCannotBecomeNegative
- - balanceIsInitiallyZero
- - specification
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-no-pretty-print.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-no-pretty-print.phpt
deleted file mode 100644
index 33ed4ed4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-no-pretty-print.phpt
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-phpunit --log-json php://stdout BankAccountTest ../_files/BankAccountTest.php
---SKIPIF--
-<?php
-if (defined('JSON_PRETTY_PRINT')) {
- print 'skip: PHP without JSON_PRETTY_PRINT is required';
-}
-?>
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--log-json';
-$_SERVER['argv'][3] = 'php://stdout';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-{"event":"suiteStart","suite":"BankAccountTest","tests":3}{"event":"testStart","suite":"BankAccountTest","test":"BankAccountTest::testBalanceIsInitiallyZero"}.{"event":"test","suite":"BankAccountTest","test":"BankAccountTest::testBalanceIsInitiallyZero","status":"pass","time":%f,"trace":[],"message":"","output":""}{"event":"testStart","suite":"BankAccountTest","test":"BankAccountTest::testBalanceCannotBecomeNegative"}.{"event":"test","suite":"BankAccountTest","test":"BankAccountTest::testBalanceCannotBecomeNegative","status":"pass","time":%f,"trace":[],"message":"","output":""}{"event":"testStart","suite":"BankAccountTest","test":"BankAccountTest::testBalanceCannotBecomeNegative2"}.{"event":"test","suite":"BankAccountTest","test":"BankAccountTest::testBalanceCannotBecomeNegative2","status":"pass","time":%f,"trace":[],"message":"","output":""}
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-post-66021.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-post-66021.phpt
deleted file mode 100644
index b045617c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-post-66021.phpt
+++ /dev/null
@@ -1,72 +0,0 @@
---TEST--
-phpunit --log-json php://stdout BankAccountTest ../_files/BankAccountTest.php
---SKIPIF--
-<?php
-if (!defined('JSON_PRETTY_PRINT')) {
- print 'skip: JSON_PRETTY_PRINT is required';
-} elseif (json_encode(array(), JSON_PRETTY_PRINT) != '[]') {
- print 'skip: Does not have PHP #66021 (Blank line inside empty JSON array/object)';
-}
-?>
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--log-json';
-$_SERVER['argv'][3] = 'php://stdout';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-{
- "event": "suiteStart",
- "suite": "BankAccountTest",
- "tests": 3
-}{
- "event": "testStart",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceIsInitiallyZero"
-}.{
- "event": "test",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceIsInitiallyZero",
- "status": "pass",
- "time": %f,
- "trace": [],
- "message": "",
- "output": ""
-}{
- "event": "testStart",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceCannotBecomeNegative"
-}.{
- "event": "test",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceCannotBecomeNegative",
- "status": "pass",
- "time": %f,
- "trace": [],
- "message": "",
- "output": ""
-}{
- "event": "testStart",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceCannotBecomeNegative2"
-}.{
- "event": "test",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceCannotBecomeNegative2",
- "status": "pass",
- "time": %f,
- "trace": [],
- "message": "",
- "output": ""
-}
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-pre-66021.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-pre-66021.phpt
deleted file mode 100644
index 1b2b37c0..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-json-pre-66021.phpt
+++ /dev/null
@@ -1,78 +0,0 @@
---TEST--
-phpunit --log-json php://stdout BankAccountTest ../_files/BankAccountTest.php
---SKIPIF--
-<?php
-if (!defined('JSON_PRETTY_PRINT')) {
- print 'skip: JSON_PRETTY_PRINT is required';
-} elseif (json_encode(array(), JSON_PRETTY_PRINT) == '[]') {
- print 'skip: Has PHP #66021 (Blank line inside empty JSON array/object)';
-}
-?>
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--log-json';
-$_SERVER['argv'][3] = 'php://stdout';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-{
- "event": "suiteStart",
- "suite": "BankAccountTest",
- "tests": 3
-}{
- "event": "testStart",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceIsInitiallyZero"
-}.{
- "event": "test",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceIsInitiallyZero",
- "status": "pass",
- "time": %f,
- "trace": [
-
- ],
- "message": "",
- "output": ""
-}{
- "event": "testStart",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceCannotBecomeNegative"
-}.{
- "event": "test",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceCannotBecomeNegative",
- "status": "pass",
- "time": %f,
- "trace": [
-
- ],
- "message": "",
- "output": ""
-}{
- "event": "testStart",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceCannotBecomeNegative2"
-}.{
- "event": "test",
- "suite": "BankAccountTest",
- "test": "BankAccountTest::testBalanceCannotBecomeNegative2",
- "status": "pass",
- "time": %f,
- "trace": [
-
- ],
- "message": "",
- "output": ""
-}
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-junit.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-junit.phpt
deleted file mode 100644
index 70dbcbea..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-junit.phpt
+++ /dev/null
@@ -1,59 +0,0 @@
---TEST--
-phpunit --log-junit php://stdout StatusTest ../_files/StatusTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--log-junit';
-$_SERVER['argv'][3] = 'php://stdout';
-$_SERVER['argv'][4] = 'StatusTest';
-$_SERVER['argv'][5] = __DIR__ . '/../_files/StatusTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.FEIS.<?xml version="1.0" encoding="UTF-8"?>
-<testsuites>
- <testsuite name="StatusTest" file="%s/StatusTest.php" tests="4" assertions="2" failures="1" errors="1" time="%s">
- <testcase name="testSuccess" class="StatusTest" file="%s/StatusTest.php" line="%d" assertions="1" time="%s"/>
- <testcase name="testFailure" class="StatusTest" file="%s/StatusTest.php" line="%d" assertions="1" time="%s">
- <failure type="PHPUnit_Framework_ExpectationFailedException">StatusTest::testFailure
-Failed asserting that false is true.
-
-%s/StatusTest.php:%d
-</failure>
- </testcase>
- <testcase name="testError" class="StatusTest" file="%s/StatusTest.php" line="%d" assertions="0" time="%s">
- <error type="Exception">StatusTest::testError
-Exception:
-
-%s/StatusTest.php:%d
-</error>
- </testcase>
- <testcase name="testRisky" class="StatusTest" file="%s/StatusTest.php" line="%d" assertions="0" time="%s"/>
- </testsuite>
-</testsuites>
-
-
-Time: %s, Memory: %s
-
-There was 1 error:
-
-1) StatusTest::testError
-Exception:
-
-%s/StatusTest.php:%d
-
---
-
-There was 1 failure:
-
-1) StatusTest::testFailure
-Failed asserting that false is true.
-
-%s/StatusTest.php:%d
-
-FAILURES!
-Tests: 6, Assertions: 2, Errors: 1, Failures: 1, Skipped: 1, Incomplete: 1. \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-tap.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-tap.phpt
deleted file mode 100644
index e9221ee4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/log-tap.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-phpunit --log-tap php://stdout BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--log-tap';
-$_SERVER['argv'][3] = 'php://stdout';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-TAP version 13
-.ok 1 - BankAccountTest::testBalanceIsInitiallyZero
-.ok 2 - BankAccountTest::testBalanceCannotBecomeNegative
-.ok 3 - BankAccountTest::testBalanceCannotBecomeNegative2
-1..3
-
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/options-after-arguments.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/options-after-arguments.phpt
deleted file mode 100644
index e7f2cec8..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/options-after-arguments.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-phpunit BankAccountTest ../_files/BankAccountTest.php --colors
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = __DIR__ . '/../_files/BankAccountTest.php';
-$_SERVER['argv'][3] = '--colors=always';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-%s[30;42mOK (3 tests, 3 assertions)%s[0m
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/output-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/output-isolation.phpt
deleted file mode 100644
index 5226b257..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/output-isolation.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --process-isolation --filter testExpectOutputStringFooActualFoo ../_files/OutputTestCase.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--process-isolation';
-$_SERVER['argv'][3] = '--filter';
-$_SERVER['argv'][4] = 'testExpectOutputStringFooActualFoo';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/OutputTestCase.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.
-
-Time: %s, Memory: %s
-
-OK (1 test, 1 assertion)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/repeat.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/repeat.phpt
deleted file mode 100644
index 8be67ea4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/repeat.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --repeat 3 BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--repeat';
-$_SERVER['argv'][3] = '3';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.........
-
-Time: %s, Memory: %s
-
-OK (9 tests, 9 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests-incomplete.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests-incomplete.phpt
deleted file mode 100644
index 04239246..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests-incomplete.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --report-useless-tests IncompleteTest ../_files/IncompleteTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--report-useless-tests';
-$_SERVER['argv'][3] = 'IncompleteTest';
-$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/IncompleteTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-I
-
-Time: %s, Memory: %s
-
-OK, but incomplete, skipped, or risky tests!
-Tests: 1, Assertions: 0, Incomplete: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests-isolation.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests-isolation.phpt
deleted file mode 100644
index ff6a0d1e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests-isolation.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-phpunit --report-useless-tests --process-isolation IncompleteTest ../_files/IncompleteTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--report-useless-tests';
-$_SERVER['argv'][3] = '--process-isolation';
-$_SERVER['argv'][4] = 'NothingTest';
-$_SERVER['argv'][5] = dirname(dirname(__FILE__)) . '/_files/NothingTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-R
-
-Time: %s, Memory: %s
-
-OK, but incomplete, skipped, or risky tests!
-Tests: 1, Assertions: 0, Risky: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests.phpt
deleted file mode 100644
index f9812782..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/report-useless-tests.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --report-useless-tests NothingTest ../_files/NothingTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--report-useless-tests';
-$_SERVER['argv'][3] = 'NothingTest';
-$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/NothingTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-R
-
-Time: %s, Memory: %s
-
-OK, but incomplete, skipped, or risky tests!
-Tests: 1, Assertions: 0, Risky: 1.
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/tap.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/tap.phpt
deleted file mode 100644
index ca5676df..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/tap.phpt
+++ /dev/null
@@ -1,18 +0,0 @@
---TEST--
-phpunit --tap BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--tap';
-$_SERVER['argv'][3] = 'BankAccountTest';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-TAP version 13
-ok 1 - BankAccountTest::testBalanceIsInitiallyZero
-ok 2 - BankAccountTest::testBalanceCannotBecomeNegative
-ok 3 - BankAccountTest::testBalanceCannotBecomeNegative2
-1..3
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/test-suffix-multiple.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/test-suffix-multiple.phpt
deleted file mode 100644
index 6509b68f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/test-suffix-multiple.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-phpunit --test-suffix .test.php,.my.php ../_files/
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--test-suffix';
-$_SERVER['argv'][3] = '.test.php,.my.php';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/../_files/';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-.....
-
-Time: %s, Memory: %s
-
-OK (5 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/test-suffix-single.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/test-suffix-single.phpt
deleted file mode 100644
index 137a3e51..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/test-suffix-single.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-phpunit --test-suffix .test.php ../_files/
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--test-suffix';
-$_SERVER['argv'][3] = '.test.php';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/../_files/';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-...
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox-html.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox-html.phpt
deleted file mode 100644
index c5ebeef2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox-html.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-phpunit --testdox-html php://stdout BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--testdox-html';
-$_SERVER['argv'][3] = 'php://stdout';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-<html><body>
-<h2 id="BankAccountTest">BankAccount</h2><ul>...<li>Balance is initially zero</li><li>Balance cannot become negative</li></ul></body></html>
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox-text.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox-text.phpt
deleted file mode 100644
index bb36acfb..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox-text.phpt
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-phpunit --testdox-text php://stdout BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--testdox-text';
-$_SERVER['argv'][3] = 'php://stdout';
-$_SERVER['argv'][4] = 'BankAccountTest';
-$_SERVER['argv'][5] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-BankAccount
-... [x] Balance is initially zero
- [x] Balance cannot become negative
-
-
-
-Time: %s, Memory: %s
-
-OK (3 tests, 3 assertions)
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox.phpt b/www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox.phpt
deleted file mode 100644
index fb24e94a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/TextUI/testdox.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-phpunit --testdox php://stdout BankAccountTest ../_files/BankAccountTest.php
---FILE--
-<?php
-$_SERVER['argv'][1] = '--no-configuration';
-$_SERVER['argv'][2] = '--testdox';
-$_SERVER['argv'][3] = 'BankAccountTest';
-$_SERVER['argv'][4] = dirname(__FILE__) . '/../_files/BankAccountTest.php';
-
-require __DIR__ . '/../bootstrap.php';
-PHPUnit_TextUI_Command::main();
-?>
---EXPECTF--
-PHPUnit %s by Sebastian Bergmann and contributors.
-
-BankAccount
- [x] Balance is initially zero
- [x] Balance cannot become negative
-
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Util/ConfigurationTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Util/ConfigurationTest.php
deleted file mode 100644
index 0cdd95e1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Util/ConfigurationTest.php
+++ /dev/null
@@ -1,504 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.3.0
- */
-class Util_ConfigurationTest extends PHPUnit_Framework_TestCase
-{
- protected $configuration;
-
- protected function setUp()
- {
- $this->configuration = PHPUnit_Util_Configuration::getInstance(
- dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.xml'
- );
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getInstance
- * @expectedException PHPUnit_Framework_Exception
- */
- public function testExceptionIsThrownForNotExistingConfigurationFile()
- {
- PHPUnit_Util_Configuration::getInstance('not_existing_file.xml');
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getPHPUnitConfiguration
- */
- public function testShouldReadColorsWhenTrueInConfigurationfile()
- {
- $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.true.xml';
- $configurationInstance = PHPUnit_Util_Configuration::getInstance($configurationFilename);
- $configurationValues = $configurationInstance->getPHPUnitConfiguration();
-
- $this->assertEquals(PHPUnit_TextUI_ResultPrinter::COLOR_AUTO, $configurationValues['colors']);
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getPHPUnitConfiguration
- */
- public function testShouldReadColorsWhenFalseInConfigurationfile()
- {
- $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.false.xml';
- $configurationInstance = PHPUnit_Util_Configuration::getInstance($configurationFilename);
- $configurationValues = $configurationInstance->getPHPUnitConfiguration();
-
- $this->assertEquals(PHPUnit_TextUI_ResultPrinter::COLOR_NEVER, $configurationValues['colors']);
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getPHPUnitConfiguration
- */
- public function testShouldReadColorsWhenEmptyInConfigurationfile()
- {
- $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.empty.xml';
- $configurationInstance = PHPUnit_Util_Configuration::getInstance($configurationFilename);
- $configurationValues = $configurationInstance->getPHPUnitConfiguration();
-
- $this->assertEquals(PHPUnit_TextUI_ResultPrinter::COLOR_NEVER, $configurationValues['colors']);
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getPHPUnitConfiguration
- */
- public function testShouldReadColorsWhenInvalidInConfigurationfile()
- {
- $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.invalid.xml';
- $configurationInstance = PHPUnit_Util_Configuration::getInstance($configurationFilename);
- $configurationValues = $configurationInstance->getPHPUnitConfiguration();
-
- $this->assertEquals(PHPUnit_TextUI_ResultPrinter::COLOR_NEVER, $configurationValues['colors']);
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getFilterConfiguration
- */
- public function testFilterConfigurationIsReadCorrectly()
- {
- $this->assertEquals(
- array(
- 'blacklist' =>
- array(
- 'include' =>
- array(
- 'directory' =>
- array(
- 0 =>
- array(
- 'path' => '/path/to/files',
- 'prefix' => '',
- 'suffix' => '.php',
- 'group' => 'DEFAULT'
- ),
- ),
- 'file' =>
- array(
- 0 => '/path/to/file',
- 1 => '/path/to/file',
- ),
- ),
- 'exclude' =>
- array(
- 'directory' =>
- array(
- 0 =>
- array(
- 'path' => '/path/to/files',
- 'prefix' => '',
- 'suffix' => '.php',
- 'group' => 'DEFAULT'
- ),
- ),
- 'file' =>
- array(
- 0 => '/path/to/file',
- ),
- ),
- ),
- 'whitelist' =>
- array(
- 'addUncoveredFilesFromWhitelist' => true,
- 'processUncoveredFilesFromWhitelist' => false,
- 'include' =>
- array(
- 'directory' =>
- array(
- 0 =>
- array(
- 'path' => '/path/to/files',
- 'prefix' => '',
- 'suffix' => '.php',
- 'group' => 'DEFAULT'
- ),
- ),
- 'file' =>
- array(
- 0 => '/path/to/file',
- ),
- ),
- 'exclude' =>
- array(
- 'directory' =>
- array(
- 0 =>
- array(
- 'path' => '/path/to/files',
- 'prefix' => '',
- 'suffix' => '.php',
- 'group' => 'DEFAULT'
- ),
- ),
- 'file' =>
- array(
- 0 => '/path/to/file',
- ),
- ),
- ),
- ),
- $this->configuration->getFilterConfiguration()
- );
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getGroupConfiguration
- */
- public function testGroupConfigurationIsReadCorrectly()
- {
- $this->assertEquals(
- array(
- 'include' =>
- array(
- 0 => 'name',
- ),
- 'exclude' =>
- array(
- 0 => 'name',
- ),
- ),
- $this->configuration->getGroupConfiguration()
- );
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getListenerConfiguration
- */
- public function testListenerConfigurationIsReadCorrectly()
- {
- $dir = __DIR__;
- $includePath = ini_get('include_path');
-
- ini_set('include_path', $dir . PATH_SEPARATOR . $includePath);
-
- $this->assertEquals(
- array(
- 0 =>
- array(
- 'class' => 'MyListener',
- 'file' => '/optional/path/to/MyListener.php',
- 'arguments' =>
- array(
- 0 =>
- array(
- 0 => 'Sebastian',
- ),
- 1 => 22,
- 2 => 'April',
- 3 => 19.78,
- 4 => null,
- 5 => new stdClass,
- 6 => dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'MyTestFile.php',
- 7 => dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'MyRelativePath',
- ),
- ),
- array(
- 'class' => 'IncludePathListener',
- 'file' => __FILE__,
- 'arguments' => array()
- ),
- array(
- 'class' => 'CompactArgumentsListener',
- 'file' => '/CompactArgumentsListener.php',
- 'arguments' =>
- array(
- 0 => 42
- ),
- ),
- ),
- $this->configuration->getListenerConfiguration()
- );
-
- ini_set('include_path', $includePath);
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getLoggingConfiguration
- */
- public function testLoggingConfigurationIsReadCorrectly()
- {
- $this->assertEquals(
- array(
- 'lowUpperBound' => '50',
- 'highLowerBound' => '90',
- 'coverage-html' => '/tmp/report',
- 'coverage-clover' => '/tmp/clover.xml',
- 'json' => '/tmp/logfile.json',
- 'plain' => '/tmp/logfile.txt',
- 'tap' => '/tmp/logfile.tap',
- 'logIncompleteSkipped' => false,
- 'junit' => '/tmp/logfile.xml',
- 'testdox-html' => '/tmp/testdox.html',
- 'testdox-text' => '/tmp/testdox.txt',
- ),
- $this->configuration->getLoggingConfiguration()
- );
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getPHPConfiguration
- */
- public function testPHPConfigurationIsReadCorrectly()
- {
- $this->assertEquals(
- array(
- 'include_path' =>
- array(
- dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . '.',
- '/path/to/lib'
- ),
- 'ini' => array('foo' => 'bar'),
- 'const' => array('FOO' => false, 'BAR' => true),
- 'var' => array('foo' => false),
- 'env' => array('foo' => true),
- 'post' => array('foo' => 'bar'),
- 'get' => array('foo' => 'bar'),
- 'cookie' => array('foo' => 'bar'),
- 'server' => array('foo' => 'bar'),
- 'files' => array('foo' => 'bar'),
- 'request'=> array('foo' => 'bar'),
- ),
- $this->configuration->getPHPConfiguration()
- );
- }
-
- /**
- * @backupGlobals enabled
- * @covers PHPUnit_Util_Configuration::handlePHPConfiguration
- */
- public function testPHPConfigurationIsHandledCorrectly()
- {
- $this->configuration->handlePHPConfiguration();
-
- $path = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . '.' . PATH_SEPARATOR . '/path/to/lib';
- $this->assertStringStartsWith($path, ini_get('include_path'));
- $this->assertEquals(false, FOO);
- $this->assertEquals(true, BAR);
- $this->assertEquals(false, $GLOBALS['foo']);
- $this->assertEquals(true, $_ENV['foo']);
- $this->assertEquals(true, getenv('foo'));
- $this->assertEquals('bar', $_POST['foo']);
- $this->assertEquals('bar', $_GET['foo']);
- $this->assertEquals('bar', $_COOKIE['foo']);
- $this->assertEquals('bar', $_SERVER['foo']);
- $this->assertEquals('bar', $_FILES['foo']);
- $this->assertEquals('bar', $_REQUEST['foo']);
- }
-
- /**
- * @backupGlobals enabled
- *
- * @see https://github.com/sebastianbergmann/phpunit/issues/1181
- */
- public function testHandlePHPConfigurationDoesNotOverwrittenExistingEnvArrayVariables()
- {
- $_ENV['foo'] = false;
- $this->configuration->handlePHPConfiguration();
-
- $this->assertEquals(false, $_ENV['foo']);
- $this->assertEquals(true, getenv('foo'));
- }
-
- /**
- * @backupGlobals enabled
- *
- * @see https://github.com/sebastianbergmann/phpunit/issues/1181
- */
- public function testHandlePHPConfigurationDoesNotOverriteVariablesFromPutEnv()
- {
- putenv('foo=putenv');
- $this->configuration->handlePHPConfiguration();
-
- $this->assertEquals(true, $_ENV['foo']);
- $this->assertEquals('putenv', getenv('foo'));
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getPHPUnitConfiguration
- */
- public function testPHPUnitConfigurationIsReadCorrectly()
- {
- $this->assertEquals(
- array(
- 'backupGlobals' => true,
- 'backupStaticAttributes' => false,
- 'disallowChangesToGlobalState' => false,
- 'bootstrap' => '/path/to/bootstrap.php',
- 'cacheTokens' => false,
- 'columns' => 80,
- 'colors' => 'never',
- 'stderr' => false,
- 'convertErrorsToExceptions' => true,
- 'convertNoticesToExceptions' => true,
- 'convertWarningsToExceptions' => true,
- 'forceCoversAnnotation' => false,
- 'mapTestClassNameToCoveredClassName' => false,
- 'printerClass' => 'PHPUnit_TextUI_ResultPrinter',
- 'stopOnFailure' => false,
- 'reportUselessTests' => false,
- 'strictCoverage' => false,
- 'disallowTestOutput' => false,
- 'enforceTimeLimit' => false,
- 'disallowTodoAnnotatedTests' => false,
- 'testSuiteLoaderClass' => 'PHPUnit_Runner_StandardTestSuiteLoader',
- 'verbose' => false,
- 'timeoutForSmallTests' => 1,
- 'timeoutForMediumTests' => 10,
- 'timeoutForLargeTests' => 60
- ),
- $this->configuration->getPHPUnitConfiguration()
- );
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getSeleniumBrowserConfiguration
- */
- public function testSeleniumBrowserConfigurationIsReadCorrectly()
- {
- $this->assertEquals(
- array(
- 0 =>
- array(
- 'name' => 'Firefox on Linux',
- 'browser' => '*firefox /usr/lib/firefox/firefox-bin',
- 'host' => 'my.linux.box',
- 'port' => 4444,
- 'timeout' => 30000,
- ),
- ),
- $this->configuration->getSeleniumBrowserConfiguration()
- );
- }
-
- /**
- * @covers PHPUnit_Util_Configuration::getInstance
- */
- public function testXincludeInConfiguration()
- {
- $configurationWithXinclude = PHPUnit_Util_Configuration::getInstance(
- dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration_xinclude.xml'
- );
-
- $this->assertConfigurationEquals(
- $this->configuration,
- $configurationWithXinclude
- );
- }
-
- /**
- * @ticket 1311
- * @covers PHPUnit_Util_Configuration::getLoggingConfiguration
- * @covers PHPUnit_Util_Configuration::getPHPConfiguration
- * @covers PHPUnit_Util_Configuration::getPHPUnitConfiguration
- * @covers PHPUnit_Util_Configuration::getTestSuiteConfiguration
- * @covers PHPUnit_Util_Configuration::getFilterConfiguration
- *
- * @uses PHPUnit_Util_Configuration::getInstance
- */
- public function testWithEmptyConfigurations()
- {
- $emptyConfiguration = PHPUnit_Util_Configuration::getInstance(
- dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration_empty.xml'
- );
-
- $logging = $emptyConfiguration->getLoggingConfiguration();
- $this->assertEmpty($logging);
-
- $php = $emptyConfiguration->getPHPConfiguration();
- $this->assertEmpty($php['include_path']);
-
- $phpunit = $emptyConfiguration->getPHPUnitConfiguration();
- $this->assertArrayNotHasKey('bootstrap', $phpunit);
- $this->assertArrayNotHasKey('testSuiteLoaderFile', $phpunit);
- $this->assertArrayNotHasKey('printerFile', $phpunit);
-
- $suite = $emptyConfiguration->getTestSuiteConfiguration();
- $this->assertEmpty($suite->getGroups());
-
- $filter = $emptyConfiguration->getFilterConfiguration();
- $this->assertEmpty($filter['blacklist']['include']['directory']);
- $this->assertEmpty($filter['blacklist']['include']['file']);
- $this->assertEmpty($filter['blacklist']['exclude']['directory']);
- $this->assertEmpty($filter['blacklist']['exclude']['file']);
- $this->assertEmpty($filter['whitelist']['include']['directory']);
- $this->assertEmpty($filter['whitelist']['include']['file']);
- $this->assertEmpty($filter['whitelist']['exclude']['directory']);
- $this->assertEmpty($filter['whitelist']['exclude']['file']);
- }
-
- /**
- * Asserts that the values in $actualConfiguration equal $expectedConfiguration.
- *
- * @param PHPUnit_Util_Configuration $expectedConfiguration
- * @param PHPUnit_Util_Configuration $actualConfiguration
- */
- protected function assertConfigurationEquals(PHPUnit_Util_Configuration $expectedConfiguration, PHPUnit_Util_Configuration $actualConfiguration)
- {
- $this->assertEquals(
- $expectedConfiguration->getFilterConfiguration(),
- $actualConfiguration->getFilterConfiguration()
- );
-
- $this->assertEquals(
- $expectedConfiguration->getGroupConfiguration(),
- $actualConfiguration->getGroupConfiguration()
- );
-
- $this->assertEquals(
- $expectedConfiguration->getListenerConfiguration(),
- $actualConfiguration->getListenerConfiguration()
- );
-
- $this->assertEquals(
- $expectedConfiguration->getLoggingConfiguration(),
- $actualConfiguration->getLoggingConfiguration()
- );
-
- $this->assertEquals(
- $expectedConfiguration->getPHPConfiguration(),
- $actualConfiguration->getPHPConfiguration()
- );
-
- $this->assertEquals(
- $expectedConfiguration->getPHPUnitConfiguration(),
- $actualConfiguration->getPHPUnitConfiguration()
- );
-
- $this->assertEquals(
- $expectedConfiguration->getSeleniumBrowserConfiguration(),
- $actualConfiguration->getSeleniumBrowserConfiguration()
- );
-
- $this->assertEquals(
- $expectedConfiguration->getTestSuiteConfiguration(),
- $actualConfiguration->getTestSuiteConfiguration()
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Util/GetoptTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Util/GetoptTest.php
deleted file mode 100644
index 8e7ad4dc..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Util/GetoptTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- */
-class Util_GetoptTest extends PHPUnit_Framework_TestCase
-{
- public function testItIncludeTheLongOptionsAfterTheArgument()
- {
- $args = array(
- 'command',
- 'myArgument',
- '--colors',
- );
- $actual = PHPUnit_Util_Getopt::getopt($args, '', array('colors=='));
-
- $expected = array(
- array(
- array(
- '--colors',
- null,
- ),
- ),
- array(
- 'myArgument',
- ),
- );
-
- $this->assertEquals($expected, $actual);
- }
-
- public function testItIncludeTheShortOptionsAfterTheArgument()
- {
- $args = array(
- 'command',
- 'myArgument',
- '-v',
- );
- $actual = PHPUnit_Util_Getopt::getopt($args, 'v');
-
- $expected = array(
- array(
- array(
- 'v',
- null,
- ),
- ),
- array(
- 'myArgument',
- ),
- );
-
- $this->assertEquals($expected, $actual);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Util/GlobalStateTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Util/GlobalStateTest.php
deleted file mode 100644
index 5810ee39..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Util/GlobalStateTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- */
-class Util_GlobalStateTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers PHPUnit_Util_GlobalState::processIncludedFilesAsString
- */
- public function testIncludedFilesAsStringSkipsVfsProtocols()
- {
- $dir = __DIR__;
- $files = array(
- 'phpunit', // The 0 index is not used
- $dir . '/ConfigurationTest.php',
- $dir . '/GlobalStateTest.php',
- 'vfs://' . $dir . '/RegexTest.php',
- 'phpvfs53e46260465c7://' . $dir . '/TestTest.php',
- 'file://' . $dir . '/XMLTest.php'
- );
-
- $this->assertEquals(
- "require_once '" . $dir . "/ConfigurationTest.php';\n" .
- "require_once '" . $dir . "/GlobalStateTest.php';\n" .
- "require_once 'file://" . $dir . "/XMLTest.php';\n", PHPUnit_Util_GlobalState::processIncludedFilesAsString($files));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Util/RegexTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Util/RegexTest.php
deleted file mode 100644
index 7242654f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Util/RegexTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 4.2.0
- */
-class Util_RegexTest extends PHPUnit_Framework_TestCase
-{
- public function validRegexpProvider()
- {
- return array(
- array('#valid regexp#', 'valid regexp', 1),
- array(';val.*xp;', 'valid regexp', 1),
- array('/val.*xp/i', 'VALID REGEXP', 1),
- array('/a val.*p/','valid regexp', 0),
- );
- }
-
- public function invalidRegexpProvider()
- {
- return array(
- array('valid regexp', 'valid regexp'),
- array(';val.*xp', 'valid regexp'),
- array('val.*xp/i', 'VALID REGEXP'),
- );
- }
-
- /**
- * @dataProvider validRegexpProvider
- * @covers PHPUnit_Util_Regex::pregMatchSafe
- */
- public function testValidRegex($pattern, $subject, $return)
- {
- $this->assertEquals($return, PHPUnit_Util_Regex::pregMatchSafe($pattern, $subject));
- }
-
- /**
- * @dataProvider invalidRegexpProvider
- * @covers PHPUnit_Util_Regex::pregMatchSafe
- */
- public function testInvalidRegex($pattern, $subject)
- {
- $this->assertFalse(PHPUnit_Util_Regex::pregMatchSafe($pattern, $subject));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Util/TestDox/NamePrettifierTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Util/TestDox/NamePrettifierTest.php
deleted file mode 100644
index 729e8ac2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Util/TestDox/NamePrettifierTest.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 2.1.0
- */
-class Util_TestDox_NamePrettifierTest extends PHPUnit_Framework_TestCase
-{
- protected $namePrettifier;
-
- protected function setUp()
- {
- $this->namePrettifier = new PHPUnit_Util_TestDox_NamePrettifier;
- }
-
- /**
- * @covers PHPUnit_Util_TestDox_NamePrettifier::prettifyTestClass
- */
- public function testTitleHasSensibleDefaults()
- {
- $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('FooTest'));
- $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('TestFoo'));
- $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('TestFooTest'));
- $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('Test\FooTest'));
- }
-
- /**
- * @covers PHPUnit_Util_TestDox_NamePrettifier::prettifyTestClass
- */
- public function testCaterForUserDefinedSuffix()
- {
- $this->namePrettifier->setSuffix('TestCase');
- $this->namePrettifier->setPrefix(null);
-
- $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('FooTestCase'));
- $this->assertEquals('TestFoo', $this->namePrettifier->prettifyTestClass('TestFoo'));
- $this->assertEquals('FooTest', $this->namePrettifier->prettifyTestClass('FooTest'));
- }
-
- /**
- * @covers PHPUnit_Util_TestDox_NamePrettifier::prettifyTestClass
- */
- public function testCaterForUserDefinedPrefix()
- {
- $this->namePrettifier->setSuffix(null);
- $this->namePrettifier->setPrefix('XXX');
-
- $this->assertEquals('Foo', $this->namePrettifier->prettifyTestClass('XXXFoo'));
- $this->assertEquals('TestXXX', $this->namePrettifier->prettifyTestClass('TestXXX'));
- $this->assertEquals('XXX', $this->namePrettifier->prettifyTestClass('XXXXXX'));
- }
-
- /**
- * @covers PHPUnit_Util_TestDox_NamePrettifier::prettifyTestMethod
- */
- public function testTestNameIsConvertedToASentence()
- {
- $this->assertEquals('This is a test', $this->namePrettifier->prettifyTestMethod('testThisIsATest'));
- $this->assertEquals('This is a test', $this->namePrettifier->prettifyTestMethod('testThisIsATest2'));
- $this->assertEquals('This is a test', $this->namePrettifier->prettifyTestMethod('this_is_a_test'));
- $this->assertEquals('Foo for bar is 0', $this->namePrettifier->prettifyTestMethod('testFooForBarIs0'));
- $this->assertEquals('Foo for baz is 1', $this->namePrettifier->prettifyTestMethod('testFooForBazIs1'));
- }
-
- /**
- * @covers PHPUnit_Util_TestDox_NamePrettifier::prettifyTestMethod
- * @ticket 224
- */
- public function testTestNameIsNotGroupedWhenNotInSequence()
- {
- $this->assertEquals('Sets redirect header on 301', $this->namePrettifier->prettifyTestMethod('testSetsRedirectHeaderOn301'));
- $this->assertEquals('Sets redirect header on 302', $this->namePrettifier->prettifyTestMethod('testSetsRedirectHeaderOn302'));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Util/TestTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Util/TestTest.php
deleted file mode 100644
index 2b425364..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Util/TestTest.php
+++ /dev/null
@@ -1,685 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-if (!defined('TEST_FILES_PATH')) {
- define(
- 'TEST_FILES_PATH',
- dirname(__DIR__) . DIRECTORY_SEPARATOR .
- '_files' . DIRECTORY_SEPARATOR
- );
-}
-
-require TEST_FILES_PATH . 'CoverageNamespacedFunctionTest.php';
-require TEST_FILES_PATH . 'NamespaceCoveredFunction.php';
-
-/**
- * @since Class available since Release 3.3.6
- */
-class Util_TestTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers PHPUnit_Util_Test::getExpectedException
- *
- * @todo Split up in separate tests
- */
- public function testGetExpectedException()
- {
- $this->assertArraySubset(
- array('class' => 'FooBarBaz', 'code' => null, 'message' => ''),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testOne')
- );
-
- $this->assertArraySubset(
- array('class' => 'Foo_Bar_Baz', 'code' => null, 'message' => ''),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testTwo')
- );
-
- $this->assertArraySubset(
- array('class' => 'Foo\Bar\Baz', 'code' => null, 'message' => ''),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testThree')
- );
-
- $this->assertArraySubset(
- array('class' => 'ほげ', 'code' => null, 'message' => ''),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testFour')
- );
-
- $this->assertArraySubset(
- array('class' => 'Class', 'code' => 1234, 'message' => 'Message'),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testFive')
- );
-
- $this->assertArraySubset(
- array('class' => 'Class', 'code' => 1234, 'message' => 'Message'),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSix')
- );
-
- $this->assertArraySubset(
- array('class' => 'Class', 'code' => 'ExceptionCode', 'message' => 'Message'),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSeven')
- );
-
- $this->assertArraySubset(
- array('class' => 'Class', 'code' => 0, 'message' => 'Message'),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testEight')
- );
-
- $this->assertArraySubset(
- array('class' => 'Class', 'code' => ExceptionTest::ERROR_CODE, 'message' => ExceptionTest::ERROR_MESSAGE),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testNine')
- );
-
- $this->assertArraySubset(
- array('class' => 'Class', 'code' => null, 'message' => ''),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testSingleLine')
- );
-
- $this->assertArraySubset(
- array('class' => 'Class', 'code' => My\Space\ExceptionNamespaceTest::ERROR_CODE, 'message' => My\Space\ExceptionNamespaceTest::ERROR_MESSAGE),
- PHPUnit_Util_Test::getExpectedException('My\Space\ExceptionNamespaceTest', 'testConstants')
- );
-
- // Ensure the Class::CONST expression is only evaluated when the constant really exists
- $this->assertArraySubset(
- array('class' => 'Class', 'code' => 'ExceptionTest::UNKNOWN_CODE_CONSTANT', 'message' => 'ExceptionTest::UNKNOWN_MESSAGE_CONSTANT'),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testUnknownConstants')
- );
-
- $this->assertArraySubset(
- array('class' => 'Class', 'code' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_CODE_CONSTANT', 'message' => 'My\Space\ExceptionNamespaceTest::UNKNOWN_MESSAGE_CONSTANT'),
- PHPUnit_Util_Test::getExpectedException('My\Space\ExceptionNamespaceTest', 'testUnknownConstants')
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getExpectedException
- */
- public function testGetExpectedRegExp()
- {
- $this->assertArraySubset(
- array('message_regex' => '#regex#'),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testWithRegexMessage')
- );
-
- $this->assertArraySubset(
- array('message_regex' => '#regex#'),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testWithRegexMessageFromClassConstant')
- );
-
- $this->assertArraySubset(
- array('message_regex' => 'ExceptionTest::UNKNOWN_MESSAGE_REGEX_CONSTANT'),
- PHPUnit_Util_Test::getExpectedException('ExceptionTest', 'testWithUnknowRegexMessageFromClassConstant')
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getRequirements
- * @dataProvider requirementsProvider
- */
- public function testGetRequirements($test, $result)
- {
- $this->assertEquals(
- $result,
- PHPUnit_Util_Test::getRequirements('RequirementsTest', $test)
- );
- }
-
- public function requirementsProvider()
- {
- return array(
- array('testOne', array()),
- array('testTwo', array('PHPUnit' => '1.0')),
- array('testThree', array('PHP' => '2.0')),
- array('testFour', array('PHPUnit' => '2.0', 'PHP' => '1.0')),
- array('testFive', array('PHP' => '5.4.0RC6')),
- array('testSix', array('PHP' => '5.4.0-alpha1')),
- array('testSeven', array('PHP' => '5.4.0beta2')),
- array('testEight', array('PHP' => '5.4-dev')),
- array('testNine', array('functions' => array('testFunc'))),
- array('testTen', array('extensions' => array('testExt'))),
- array('testEleven', array('OS' => '/Linux/i')),
- array(
- 'testSpace',
- array(
- 'extensions' => array('spl'),
- 'OS' => '/.*/i'
- )
- ),
- array(
- 'testAllPossibleRequirements',
- array(
- 'PHP' => '99-dev',
- 'PHPUnit' => '9-dev',
- 'OS' => '/DOESNOTEXIST/i',
- 'functions' => array(
- 'testFuncOne',
- 'testFuncTwo',
- ),
- 'extensions' => array(
- 'testExtOne',
- 'testExtTwo',
- )
- )
- )
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getRequirements
- */
- public function testGetRequirementsMergesClassAndMethodDocBlocks()
- {
- $expectedAnnotations = array(
- 'PHP' => '5.4',
- 'PHPUnit' => '3.7',
- 'OS' => '/WINNT/i',
- 'functions' => array(
- 'testFuncClass',
- 'testFuncMethod',
- ),
- 'extensions' => array(
- 'testExtClass',
- 'testExtMethod',
- )
- );
-
- $this->assertEquals(
- $expectedAnnotations,
- PHPUnit_Util_Test::getRequirements('RequirementsClassDocBlockTest', 'testMethod')
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getMissingRequirements
- * @dataProvider missingRequirementsProvider
- */
- public function testGetMissingRequirements($test, $result)
- {
- $this->assertEquals(
- $result,
- PHPUnit_Util_Test::getMissingRequirements('RequirementsTest', $test)
- );
- }
-
- public function missingRequirementsProvider()
- {
- return array(
- array('testOne', array()),
- array('testNine', array('Function testFunc is required.')),
- array('testTen', array('Extension testExt is required.')),
- array('testAlwaysSkip', array('PHPUnit 1111111 (or later) is required.')),
- array('testAlwaysSkip2', array('PHP 9999999 (or later) is required.')),
- array('testAlwaysSkip3', array('Operating system matching /DOESNOTEXIST/i is required.')),
- array('testAllPossibleRequirements', array(
- 'PHP 99-dev (or later) is required.',
- 'PHPUnit 9-dev (or later) is required.',
- 'Operating system matching /DOESNOTEXIST/i is required.',
- 'Function testFuncOne is required.',
- 'Function testFuncTwo is required.',
- 'Extension testExtOne is required.',
- 'Extension testExtTwo is required.',
- )),
- );
- }
-
- /**
- * @coversNothing
- *
- * @todo This test does not really test functionality of PHPUnit_Util_Test
- */
- public function testGetProvidedDataRegEx()
- {
- $result = preg_match(PHPUnit_Util_Test::REGEX_DATA_PROVIDER, '@dataProvider method', $matches);
- $this->assertEquals(1, $result);
- $this->assertEquals('method', $matches[1]);
-
- $result = preg_match(PHPUnit_Util_Test::REGEX_DATA_PROVIDER, '@dataProvider class::method', $matches);
- $this->assertEquals(1, $result);
- $this->assertEquals('class::method', $matches[1]);
-
- $result = preg_match(PHPUnit_Util_Test::REGEX_DATA_PROVIDER, '@dataProvider namespace\class::method', $matches);
- $this->assertEquals(1, $result);
- $this->assertEquals('namespace\class::method', $matches[1]);
-
- $result = preg_match(PHPUnit_Util_Test::REGEX_DATA_PROVIDER, '@dataProvider namespace\namespace\class::method', $matches);
- $this->assertEquals(1, $result);
- $this->assertEquals('namespace\namespace\class::method', $matches[1]);
-
- $result = preg_match(PHPUnit_Util_Test::REGEX_DATA_PROVIDER, '@dataProvider メソッド', $matches);
- $this->assertEquals(1, $result);
- $this->assertEquals('メソッド', $matches[1]);
- }
-
- /**
- * @covers PHPUnit_Util_Test::getDataFromTestWithAnnotation
- */
- public function testTestWithEmptyAnnotation()
- {
- $result = PHPUnit_Util_Test::getDataFromTestWithAnnotation("/**\n * @anotherAnnotation\n */");
- $this->assertNull($result);
- }
-
- /**
- * @covers PHPUnit_Util_Test::getDataFromTestWithAnnotation
- */
- public function testTestWithSimpleCase()
- {
- $result = PHPUnit_Util_Test::getDataFromTestWithAnnotation('/**
- * @testWith [1]
- */');
- $this->assertEquals(array(array(1)), $result);
- }
-
- /**
- * @covers PHPUnit_Util_Test::getDataFromTestWithAnnotation
- */
- public function testTestWithMultiLineMultiParameterCase()
- {
- $result = PHPUnit_Util_Test::getDataFromTestWithAnnotation('/**
- * @testWith [1, 2]
- * [3, 4]
- */');
- $this->assertEquals(array(array(1, 2), array(3, 4)), $result);
- }
-
- /**
- * @covers PHPUnit_Util_Test::getDataFromTestWithAnnotation
- */
- public function testTestWithVariousTypes()
- {
- $result = PHPUnit_Util_Test::getDataFromTestWithAnnotation('/**
- * @testWith ["ab"]
- * [true]
- * [null]
- */');
- $this->assertEquals(array(array('ab'), array(true), array(null)), $result);
- }
-
- /**
- * @covers PHPUnit_Util_Test::getDataFromTestWithAnnotation
- */
- public function testTestWithAnnotationAfter()
- {
- $result = PHPUnit_Util_Test::getDataFromTestWithAnnotation('/**
- * @testWith [1]
- * [2]
- * @annotation
- */');
- $this->assertEquals(array(array(1), array(2)), $result);
- }
-
- /**
- * @covers PHPUnit_Util_Test::getDataFromTestWithAnnotation
- */
- public function testTestWithSimpleTextAfter()
- {
- $result = PHPUnit_Util_Test::getDataFromTestWithAnnotation('/**
- * @testWith [1]
- * [2]
- * blah blah
- */');
- $this->assertEquals(array(array(1), array(2)), $result);
- }
-
- /**
- * @covers PHPUnit_Util_Test::getDataFromTestWithAnnotation
- */
- public function testTestWithCharacterEscape()
- {
- $result = PHPUnit_Util_Test::getDataFromTestWithAnnotation('/**
- * @testWith ["\"", "\""]
- */');
- $this->assertEquals(array(array('"', '"')), $result);
- }
-
- /**
- * @covers PHPUnit_Util_Test::getDataFromTestWithAnnotation
- */
- public function testTestWithThrowsProperExceptionIfDatasetCannotBeParsed()
- {
- $this->setExpectedExceptionRegExp(
- 'PHPUnit_Framework_Exception',
- '/^The dataset for the @testWith annotation cannot be parsed:/'
- );
- PHPUnit_Util_Test::getDataFromTestWithAnnotation('/**
- * @testWith [s]
- */');
- }
-
- public function testTestWithThrowsProperExceptionIfMultiLineDatasetCannotBeParsed()
- {
- $this->setExpectedExceptionRegExp(
- 'PHPUnit_Framework_Exception',
- '/^The dataset for the @testWith annotation cannot be parsed:/'
- );
- PHPUnit_Util_Test::getDataFromTestWithAnnotation('/**
- * @testWith ["valid"]
- * [invalid]
- */');
- }
-
- /**
- * @covers PHPUnit_Util_Test::getDependencies
- *
- * @todo Not sure what this test tests (name is misleading at least)
- */
- public function testParseAnnotation()
- {
- $this->assertEquals(
- array('Foo', 'ほげ'),
- PHPUnit_Util_Test::getDependencies(get_class($this), 'methodForTestParseAnnotation')
- );
- }
-
- /**
- * @depends Foo
- * @depends ほげ
- *
- * @todo Remove fixture from test class
- */
- public function methodForTestParseAnnotation()
- {
- }
-
- /**
- * @covers PHPUnit_Util_Test::getDependencies
- */
- public function testParseAnnotationThatIsOnlyOneLine()
- {
- $this->assertEquals(
- array('Bar'),
- PHPUnit_Util_Test::getDependencies(get_class($this), 'methodForTestParseAnnotationThatIsOnlyOneLine')
- );
- }
-
- /** @depends Bar */
- public function methodForTestParseAnnotationThatIsOnlyOneLine()
- {
- // TODO Remove fixture from test class
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- * @covers PHPUnit_Util_Test::resolveElementToReflectionObjects
- * @dataProvider getLinesToBeCoveredProvider
- */
- public function testGetLinesToBeCovered($test, $lines)
- {
- if (strpos($test, 'Namespace') === 0) {
- $expected = array(
- TEST_FILES_PATH . 'NamespaceCoveredClass.php' => $lines
- );
- } elseif ($test === 'CoverageNoneTest') {
- $expected = array();
- } elseif ($test === 'CoverageNothingTest') {
- $expected = false;
- } elseif ($test === 'CoverageFunctionTest') {
- $expected = array(
- TEST_FILES_PATH . 'CoveredFunction.php' => $lines
- );
- } else {
- $expected = array(TEST_FILES_PATH . 'CoveredClass.php' => $lines);
- }
-
- $this->assertEquals(
- $expected,
- PHPUnit_Util_Test::getLinesToBeCovered(
- $test, 'testSomething'
- )
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- * @covers PHPUnit_Util_Test::resolveElementToReflectionObjects
- * @expectedException PHPUnit_Framework_CodeCoverageException
- */
- public function testGetLinesToBeCovered2()
- {
- PHPUnit_Util_Test::getLinesToBeCovered(
- 'NotExistingCoveredElementTest', 'testOne'
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- * @covers PHPUnit_Util_Test::resolveElementToReflectionObjects
- * @expectedException PHPUnit_Framework_CodeCoverageException
- */
- public function testGetLinesToBeCovered3()
- {
- PHPUnit_Util_Test::getLinesToBeCovered(
- 'NotExistingCoveredElementTest', 'testTwo'
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- * @covers PHPUnit_Util_Test::resolveElementToReflectionObjects
- * @expectedException PHPUnit_Framework_CodeCoverageException
- */
- public function testGetLinesToBeCovered4()
- {
- PHPUnit_Util_Test::getLinesToBeCovered(
- 'NotExistingCoveredElementTest', 'testThree'
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- */
- public function testGetLinesToBeCoveredSkipsNonExistentMethods()
- {
- $this->assertSame(
- array(),
- PHPUnit_Util_Test::getLinesToBeCovered(
- 'NotExistingCoveredElementTest',
- 'methodDoesNotExist'
- )
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- * @expectedException PHPUnit_Framework_CodeCoverageException
- */
- public function testTwoCoversDefaultClassAnnoationsAreNotAllowed()
- {
- PHPUnit_Util_Test::getLinesToBeCovered(
- 'CoverageTwoDefaultClassAnnotations',
- 'testSomething'
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- */
- public function testFunctionParenthesesAreAllowed()
- {
- $this->assertSame(
- array(TEST_FILES_PATH . 'CoveredFunction.php' => range(2, 4)),
- PHPUnit_Util_Test::getLinesToBeCovered(
- 'CoverageFunctionParenthesesTest',
- 'testSomething'
- )
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- */
- public function testFunctionParenthesesAreAllowedWithWhitespace()
- {
- $this->assertSame(
- array(TEST_FILES_PATH . 'CoveredFunction.php' => range(2, 4)),
- PHPUnit_Util_Test::getLinesToBeCovered(
- 'CoverageFunctionParenthesesWhitespaceTest',
- 'testSomething'
- )
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- */
- public function testMethodParenthesesAreAllowed()
- {
- $this->assertSame(
- array(TEST_FILES_PATH . 'CoveredClass.php' => range(31, 35)),
- PHPUnit_Util_Test::getLinesToBeCovered(
- 'CoverageMethodParenthesesTest',
- 'testSomething'
- )
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- */
- public function testMethodParenthesesAreAllowedWithWhitespace()
- {
- $this->assertSame(
- array(TEST_FILES_PATH . 'CoveredClass.php' => range(31, 35)),
- PHPUnit_Util_Test::getLinesToBeCovered(
- 'CoverageMethodParenthesesWhitespaceTest',
- 'testSomething'
- )
- );
- }
-
- /**
- * @covers PHPUnit_Util_Test::getLinesToBeCovered
- * @covers PHPUnit_Util_Test::getLinesToBeCoveredOrUsed
- */
- public function testNamespacedFunctionCanBeCoveredOrUsed()
- {
- $this->assertEquals(
- array(
- TEST_FILES_PATH . 'NamespaceCoveredFunction.php' => range(4, 7)
- ),
- PHPUnit_Util_Test::getLinesToBeCovered(
- 'CoverageNamespacedFunctionTest',
- 'testFunc'
- )
- );
- }
-
- public function getLinesToBeCoveredProvider()
- {
- return array(
- array(
- 'CoverageNoneTest',
- array()
- ),
- array(
- 'CoverageClassExtendedTest',
- array_merge(range(19, 36), range(2, 17))
- ),
- array(
- 'CoverageClassTest',
- range(19, 36)
- ),
- array(
- 'CoverageMethodTest',
- range(31, 35)
- ),
- array(
- 'CoverageMethodOneLineAnnotationTest',
- range(31, 35)
- ),
- array(
- 'CoverageNotPrivateTest',
- array_merge(range(25, 29), range(31, 35))
- ),
- array(
- 'CoverageNotProtectedTest',
- array_merge(range(21, 23), range(31, 35))
- ),
- array(
- 'CoverageNotPublicTest',
- array_merge(range(21, 23), range(25, 29))
- ),
- array(
- 'CoveragePrivateTest',
- range(21, 23)
- ),
- array(
- 'CoverageProtectedTest',
- range(25, 29)
- ),
- array(
- 'CoveragePublicTest',
- range(31, 35)
- ),
- array(
- 'CoverageFunctionTest',
- range(2, 4)
- ),
- array(
- 'NamespaceCoverageClassExtendedTest',
- array_merge(range(21, 38), range(4, 19))
- ),
- array(
- 'NamespaceCoverageClassTest',
- range(21, 38)
- ),
- array(
- 'NamespaceCoverageMethodTest',
- range(33, 37)
- ),
- array(
- 'NamespaceCoverageNotPrivateTest',
- array_merge(range(27, 31), range(33, 37))
- ),
- array(
- 'NamespaceCoverageNotProtectedTest',
- array_merge(range(23, 25), range(33, 37))
- ),
- array(
- 'NamespaceCoverageNotPublicTest',
- array_merge(range(23, 25), range(27, 31))
- ),
- array(
- 'NamespaceCoveragePrivateTest',
- range(23, 25)
- ),
- array(
- 'NamespaceCoverageProtectedTest',
- range(27, 31)
- ),
- array(
- 'NamespaceCoveragePublicTest',
- range(33, 37)
- ),
- array(
- 'NamespaceCoverageCoversClassTest',
- array_merge(range(23, 25), range(27, 31), range(33, 37), range(6, 8), range(10, 13), range(15, 18))
- ),
- array(
- 'NamespaceCoverageCoversClassPublicTest',
- range(33, 37)
- ),
- array(
- 'CoverageNothingTest',
- false
- )
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/Util/XMLTest.php b/www/wiki/vendor/phpunit/phpunit/tests/Util/XMLTest.php
deleted file mode 100644
index f4c3bd17..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/Util/XMLTest.php
+++ /dev/null
@@ -1,363 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @since Class available since Release 3.3.0
- * @covers PHPUnit_Util_XML
- */
-class Util_XMLTest extends PHPUnit_Framework_TestCase
-{
- public function testAssertValidKeysValidKeys()
- {
- $options = array('testA' => 1, 'testB' => 2, 'testC' => 3);
- $valid = array('testA', 'testB', 'testC');
- $expected = array('testA' => 1, 'testB' => 2, 'testC' => 3);
- $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid);
-
- $this->assertEquals($expected, $validated);
- }
-
- public function testAssertValidKeysValidKeysEmpty()
- {
- $options = array('testA' => 1, 'testB' => 2);
- $valid = array('testA', 'testB', 'testC');
- $expected = array('testA' => 1, 'testB' => 2, 'testC' => null);
- $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid);
-
- $this->assertEquals($expected, $validated);
- }
-
- public function testAssertValidKeysDefaultValuesA()
- {
- $options = array('testA' => 1, 'testB' => 2);
- $valid = array('testA' => 23, 'testB' => 24, 'testC' => 25);
- $expected = array('testA' => 1, 'testB' => 2, 'testC' => 25);
- $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid);
-
- $this->assertEquals($expected, $validated);
- }
-
- public function testAssertValidKeysDefaultValuesB()
- {
- $options = array();
- $valid = array('testA' => 23, 'testB' => 24, 'testC' => 25);
- $expected = array('testA' => 23, 'testB' => 24, 'testC' => 25);
- $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid);
-
- $this->assertEquals($expected, $validated);
- }
-
- public function testAssertValidKeysInvalidKey()
- {
- $options = array('testA' => 1, 'testB' => 2, 'testD' => 3);
- $valid = array('testA', 'testB', 'testC');
-
- try {
- $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid);
- $this->fail();
- } catch (PHPUnit_Framework_Exception $e) {
- $this->assertEquals('Unknown key(s): testD', $e->getMessage());
- }
- }
-
- public function testAssertValidKeysInvalidKeys()
- {
- $options = array('testA' => 1, 'testD' => 2, 'testE' => 3);
- $valid = array('testA', 'testB', 'testC');
-
- try {
- $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid);
- $this->fail();
- } catch (PHPUnit_Framework_Exception $e) {
- $this->assertEquals('Unknown key(s): testD, testE', $e->getMessage());
- }
- }
-
- public function testConvertAssertSelect()
- {
- $selector = 'div#folder.open a[href="http://www.xerox.com"][title="xerox"].selected.big > span + h1';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div',
- 'id' => 'folder',
- 'class' => 'open',
- 'descendant' => array('tag' => 'a',
- 'class' => 'selected big',
- 'attributes' => array('href' => 'http://www.xerox.com',
- 'title' => 'xerox'),
- 'child' => array('tag' => 'span',
- 'adjacent-sibling' => array('tag' => 'h1'))));
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectElt()
- {
- $selector = 'div';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div');
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertClass()
- {
- $selector = '.foo';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('class' => 'foo');
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertId()
- {
- $selector = '#foo';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('id' => 'foo');
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertAttribute()
- {
- $selector = '[foo="bar"]';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('attributes' => array('foo' => 'bar'));
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertAttributeSpaces()
- {
- $selector = '[foo="bar baz"] div[value="foo bar"]';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('attributes' => array('foo' => 'bar baz'),
- 'descendant' => array('tag' => 'div',
- 'attributes' => array('value' => 'foo bar')));
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertAttributeMultipleSpaces()
- {
- $selector = '[foo="bar baz"] div[value="foo bar baz"]';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('attributes' => array('foo' => 'bar baz'),
- 'descendant' => array('tag' => 'div',
- 'attributes' => array('value' => 'foo bar baz')));
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectEltClass()
- {
- $selector = 'div.foo';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div', 'class' => 'foo');
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectEltId()
- {
- $selector = 'div#foo';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div', 'id' => 'foo');
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectEltAttrEqual()
- {
- $selector = 'div[foo="bar"]';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div', 'attributes' => array('foo' => 'bar'));
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectEltMultiAttrEqual()
- {
- $selector = 'div[foo="bar"][baz="fob"]';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div', 'attributes' => array('foo' => 'bar', 'baz' => 'fob'));
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectEltAttrHasOne()
- {
- $selector = 'div[foo~="bar"]';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div', 'attributes' => array('foo' => 'regexp:/.*\bbar\b.*/'));
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectEltAttrContains()
- {
- $selector = 'div[foo*="bar"]';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div', 'attributes' => array('foo' => 'regexp:/.*bar.*/'));
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectEltChild()
- {
- $selector = 'div > a';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div', 'child' => array('tag' => 'a'));
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectEltAdjacentSibling()
- {
- $selector = 'div + a';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div', 'adjacent-sibling' => array('tag' => 'a'));
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectEltDescendant()
- {
- $selector = 'div a';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector);
- $tag = array('tag' => 'div', 'descendant' => array('tag' => 'a'));
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectContent()
- {
- $selector = '#foo';
- $content = 'div contents';
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector, $content);
- $tag = array('id' => 'foo', 'content' => 'div contents');
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectTrue()
- {
- $selector = '#foo';
- $content = true;
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector, $content);
- $tag = array('id' => 'foo');
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertSelectFalse()
- {
- $selector = '#foo';
- $content = false;
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector, $content);
- $tag = array('id' => 'foo');
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertNumber()
- {
- $selector = '.foo';
- $content = 3;
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector, $content);
- $tag = array('class' => 'foo');
-
- $this->assertEquals($tag, $converted);
- }
-
- public function testConvertAssertRange()
- {
- $selector = '#foo';
- $content = array('greater_than' => 5, 'less_than' => 10);
- $converted = PHPUnit_Util_XML::convertSelectToTag($selector, $content);
- $tag = array('id' => 'foo');
-
- $this->assertEquals($tag, $converted);
- }
-
- /**
- * @dataProvider charProvider
- */
- public function testPrepareString($char)
- {
- $e = null;
-
- $escapedString = PHPUnit_Util_XML::prepareString($char);
- $xml = "<?xml version='1.0' encoding='UTF-8' ?><tag>$escapedString</tag>";
- $dom = new DomDocument('1.0', 'UTF-8');
-
- try {
- $dom->loadXML($xml);
- } catch (Exception $e) {
- }
-
- $this->assertNull($e, sprintf(
- 'PHPUnit_Util_XML::prepareString("\x%02x") should not crash DomDocument',
- ord($char)
- ));
- }
-
- public function charProvider()
- {
- $data = array();
-
- for ($i = 0; $i < 256; $i++) {
- $data[] = array(chr($i));
- }
-
- return $data;
- }
-
- /**
- * @expectedException PHPUnit_Framework_Exception
- * @expectedExceptionMessage Could not load XML from empty string
- */
- public function testLoadEmptyString()
- {
- PHPUnit_Util_XML::load('');
- }
-
- /**
- * @expectedException PHPUnit_Framework_Exception
- * @expectedExceptionMessage Could not load XML from array
- */
- public function testLoadArray()
- {
- PHPUnit_Util_XML::load(array(1, 2, 3));
- }
-
- /**
- * @expectedException PHPUnit_Framework_Exception
- * @expectedExceptionMessage Could not load XML from boolean
- */
- public function testLoadBoolean()
- {
- PHPUnit_Util_XML::load(false);
- }
-
- public function testNestedXmlToVariable()
- {
- $xml = '<array><element key="a"><array><element key="b"><string>foo</string></element></array></element><element key="c"><string>bar</string></element></array>';
- $dom = new DOMDocument();
- $dom->loadXML($xml);
-
- $expected = array(
- 'a' => array(
- 'b' => 'foo',
- ),
- 'c' => 'bar',
- );
-
- $actual = PHPUnit_Util_XML::xmlToVariable($dom->documentElement);
-
- $this->assertSame($expected, $actual);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/AbstractTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/AbstractTest.php
deleted file mode 100644
index 556e7dbc..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/AbstractTest.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-abstract class AbstractTest extends PHPUnit_Framework_TestCase
-{
- public function testOne()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/Author.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/Author.php
deleted file mode 100644
index 6a247503..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/Author.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * An author.
- *
- * @since Class available since Release 3.6.0
- */
-class Author
-{
- // the order of properties is important for testing the cycle!
- public $books = array();
-
- private $name = '';
-
- public function __construct($name)
- {
- $this->name = $name;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccount.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccount.php
deleted file mode 100644
index 30596a45..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccount.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class BankAccountException extends RuntimeException
-{
-}
-
-/**
- * A bank account.
- *
- * @since Class available since Release 2.3.0
- */
-class BankAccount
-{
- /**
- * The bank account's balance.
- *
- * @var float
- */
- protected $balance = 0;
-
- /**
- * Returns the bank account's balance.
- *
- * @return float
- */
- public function getBalance()
- {
- return $this->balance;
- }
-
- /**
- * Sets the bank account's balance.
- *
- * @param float $balance
- *
- * @throws BankAccountException
- */
- protected function setBalance($balance)
- {
- if ($balance >= 0) {
- $this->balance = $balance;
- } else {
- throw new BankAccountException;
- }
- }
-
- /**
- * Deposits an amount of money to the bank account.
- *
- * @param float $balance
- *
- * @throws BankAccountException
- */
- public function depositMoney($balance)
- {
- $this->setBalance($this->getBalance() + $balance);
-
- return $this->getBalance();
- }
-
- /**
- * Withdraws an amount of money from the bank account.
- *
- * @param float $balance
- *
- * @throws BankAccountException
- */
- public function withdrawMoney($balance)
- {
- $this->setBalance($this->getBalance() - $balance);
-
- return $this->getBalance();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccountTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccountTest.php
deleted file mode 100644
index b8e7061e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccountTest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Tests for the BankAccount class.
- *
- * @since Class available since Release 2.3.0
- */
-class BankAccountTest extends PHPUnit_Framework_TestCase
-{
- protected $ba;
-
- protected function setUp()
- {
- $this->ba = new BankAccount;
- }
-
- /**
- * @covers BankAccount::getBalance
- * @group balanceIsInitiallyZero
- * @group specification
- */
- public function testBalanceIsInitiallyZero()
- {
- $this->assertEquals(0, $this->ba->getBalance());
- }
-
- /**
- * @covers BankAccount::withdrawMoney
- * @group balanceCannotBecomeNegative
- * @group specification
- */
- public function testBalanceCannotBecomeNegative()
- {
- try {
- $this->ba->withdrawMoney(1);
- } catch (BankAccountException $e) {
- $this->assertEquals(0, $this->ba->getBalance());
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers BankAccount::depositMoney
- * @group balanceCannotBecomeNegative
- * @group specification
- */
- public function testBalanceCannotBecomeNegative2()
- {
- try {
- $this->ba->depositMoney(-1);
- } catch (BankAccountException $e) {
- $this->assertEquals(0, $this->ba->getBalance());
-
- return;
- }
-
- $this->fail();
- }
-
- /*
- * @covers BankAccount::getBalance
- * @covers BankAccount::depositMoney
- * @covers BankAccount::withdrawMoney
- * @group balanceCannotBecomeNegative
- */
- /*
- public function testDepositingAndWithdrawingMoneyWorks()
- {
- $this->assertEquals(0, $this->ba->getBalance());
- $this->ba->depositMoney(1);
- $this->assertEquals(1, $this->ba->getBalance());
- $this->ba->withdrawMoney(1);
- $this->assertEquals(0, $this->ba->getBalance());
- }
- */
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccountTest.test.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccountTest.test.php
deleted file mode 100644
index 371cc771..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/BankAccountTest.test.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Tests for the BankAccount class.
- *
- * @since Class available since Release 2.3.0
- */
-class BankAccountWithCustomExtensionTest extends PHPUnit_Framework_TestCase
-{
- protected $ba;
-
- protected function setUp()
- {
- $this->ba = new BankAccount;
- }
-
- /**
- * @covers BankAccount::getBalance
- * @group balanceIsInitiallyZero
- * @group specification
- */
- public function testBalanceIsInitiallyZero()
- {
- $this->assertEquals(0, $this->ba->getBalance());
- }
-
- /**
- * @covers BankAccount::withdrawMoney
- * @group balanceCannotBecomeNegative
- * @group specification
- */
- public function testBalanceCannotBecomeNegative()
- {
- try {
- $this->ba->withdrawMoney(1);
- } catch (BankAccountException $e) {
- $this->assertEquals(0, $this->ba->getBalance());
-
- return;
- }
-
- $this->fail();
- }
-
- /**
- * @covers BankAccount::depositMoney
- * @group balanceCannotBecomeNegative
- * @group specification
- */
- public function testBalanceCannotBecomeNegative2()
- {
- try {
- $this->ba->depositMoney(-1);
- } catch (BankAccountException $e) {
- $this->assertEquals(0, $this->ba->getBalance());
-
- return;
- }
-
- $this->fail();
- }
-
- /*
- * @covers BankAccount::getBalance
- * @covers BankAccount::depositMoney
- * @covers BankAccount::withdrawMoney
- * @group balanceCannotBecomeNegative
- */
- /*
- public function testDepositingAndWithdrawingMoneyWorks()
- {
- $this->assertEquals(0, $this->ba->getBalance());
- $this->ba->depositMoney(1);
- $this->assertEquals(1, $this->ba->getBalance());
- $this->ba->withdrawMoney(1);
- $this->assertEquals(0, $this->ba->getBalance());
- }
- */
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/BaseTestListenerSample.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/BaseTestListenerSample.php
deleted file mode 100644
index 7753b280..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/BaseTestListenerSample.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-class BaseTestListenerSample extends PHPUnit_Framework_BaseTestListener
-{
- public $endCount = 0;
-
- public function endTest(PHPUnit_Framework_Test $test, $time)
- {
- $this->endCount++;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/BeforeAndAfterTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/BeforeAndAfterTest.php
deleted file mode 100644
index 0b52526a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/BeforeAndAfterTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-class BeforeAndAfterTest extends PHPUnit_Framework_TestCase
-{
- public static $beforeWasRun;
- public static $afterWasRun;
-
- public static function resetProperties()
- {
- self::$beforeWasRun = 0;
- self::$afterWasRun = 0;
- }
-
- /**
- * @before
- */
- public function initialSetup()
- {
- self::$beforeWasRun++;
- }
-
- /**
- * @after
- */
- public function finalTeardown()
- {
- self::$afterWasRun++;
- }
-
- public function test1()
- {
- }
- public function test2()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/BeforeClassAndAfterClassTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/BeforeClassAndAfterClassTest.php
deleted file mode 100644
index 9afb4f18..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/BeforeClassAndAfterClassTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-class BeforeClassAndAfterClassTest extends PHPUnit_Framework_TestCase
-{
- public static $beforeClassWasRun = 0;
- public static $afterClassWasRun = 0;
-
- public static function resetProperties()
- {
- self::$beforeClassWasRun = 0;
- self::$afterClassWasRun = 0;
- }
-
- /**
- * @beforeClass
- */
- public static function initialClassSetup()
- {
- self::$beforeClassWasRun++;
- }
-
- /**
- * @afterClass
- */
- public static function finalClassTeardown()
- {
- self::$afterClassWasRun++;
- }
-
- public function test1()
- {
- }
- public function test2()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/Book.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/Book.php
deleted file mode 100644
index f62face6..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/Book.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A book.
- *
- * @since Class available since Release 3.6.0
- */
-class Book
-{
- // the order of properties is important for testing the cycle!
- public $author = null;
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/Calculator.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/Calculator.php
deleted file mode 100644
index e269bd6c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/Calculator.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-class Calculator
-{
- /**
- * @assert (0, 0) == 0
- * @assert (0, 1) == 1
- * @assert (1, 0) == 1
- * @assert (1, 1) == 2
- */
- public function add($a, $b)
- {
- return $a + $b;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ChangeCurrentWorkingDirectoryTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ChangeCurrentWorkingDirectoryTest.php
deleted file mode 100644
index 70fab0b1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ChangeCurrentWorkingDirectoryTest.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-class ChangeCurrentWorkingDirectoryTest extends PHPUnit_Framework_TestCase
-{
- public function testSomethingThatChangesTheCwd()
- {
- chdir('../');
- $this->assertTrue(true);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithNonPublicAttributes.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithNonPublicAttributes.php
deleted file mode 100644
index abc8ff66..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithNonPublicAttributes.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-class ParentClassWithPrivateAttributes
-{
- private static $privateStaticParentAttribute = 'foo';
- private $privateParentAttribute = 'bar';
-}
-
-class ParentClassWithProtectedAttributes extends ParentClassWithPrivateAttributes
-{
- protected static $protectedStaticParentAttribute = 'foo';
- protected $protectedParentAttribute = 'bar';
-}
-
-class ClassWithNonPublicAttributes extends ParentClassWithProtectedAttributes
-{
- public static $publicStaticAttribute = 'foo';
- protected static $protectedStaticAttribute = 'bar';
- protected static $privateStaticAttribute = 'baz';
-
- public $publicAttribute = 'foo';
- public $foo = 1;
- public $bar = 2;
- protected $protectedAttribute = 'bar';
- protected $privateAttribute = 'baz';
-
- public $publicArray = array('foo');
- protected $protectedArray = array('bar');
- protected $privateArray = array('baz');
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithScalarTypeDeclarations.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithScalarTypeDeclarations.php
deleted file mode 100644
index 8f20f32c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithScalarTypeDeclarations.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class ClassWithScalarTypeDeclarations
-{
- public function foo(string $string, int $int)
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithToString.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithToString.php
deleted file mode 100644
index 50022136..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ClassWithToString.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-/*
- * This file is part of PHPUnit.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A class with a __toString() method.
- *
- * @since Class available since Release 3.6.0
- */
-class ClassWithToString
-{
- public function __toString()
- {
- return 'string representation';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ConcreteTest.my.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ConcreteTest.my.php
deleted file mode 100644
index fe01ceed..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ConcreteTest.my.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class ConcreteWithMyCustomExtensionTest extends AbstractTest
-{
- public function testTwo()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ConcreteTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ConcreteTest.php
deleted file mode 100644
index 4f51a180..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ConcreteTest.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class ConcreteTest extends AbstractTest
-{
- public function testTwo()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageClassExtendedTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageClassExtendedTest.php
deleted file mode 100644
index df12d347..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageClassExtendedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageClassExtendedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass<extended>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageClassTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageClassTest.php
deleted file mode 100644
index 7f569ae6..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageClassTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageClassTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionParenthesesTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionParenthesesTest.php
deleted file mode 100644
index 33b5fe3d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionParenthesesTest.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class CoverageFunctionParenthesesTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers ::globalFunction()
- */
- public function testSomething()
- {
- globalFunction();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php
deleted file mode 100644
index becc6c8f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionParenthesesWhitespaceTest.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class CoverageFunctionParenthesesWhitespaceTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers ::globalFunction ( )
- */
- public function testSomething()
- {
- globalFunction();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionTest.php
deleted file mode 100644
index c621fd21..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageFunctionTest.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class CoverageFunctionTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers ::globalFunction
- */
- public function testSomething()
- {
- globalFunction();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodOneLineAnnotationTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodOneLineAnnotationTest.php
deleted file mode 100644
index 55d7f571..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodOneLineAnnotationTest.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-class CoverageMethodOneLineAnnotationTest extends PHPUnit_Framework_TestCase
-{
- /** @covers CoveredClass::publicMethod */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodParenthesesTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodParenthesesTest.php
deleted file mode 100644
index 42230045..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodParenthesesTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageMethodParenthesesTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::publicMethod()
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodParenthesesWhitespaceTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodParenthesesWhitespaceTest.php
deleted file mode 100644
index d1be1c6c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodParenthesesWhitespaceTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageMethodParenthesesWhitespaceTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::publicMethod ( )
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodTest.php
deleted file mode 100644
index 167b3db4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageMethodTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageMethodTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::publicMethod
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNamespacedFunctionTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNamespacedFunctionTest.php
deleted file mode 100644
index 9fc056fa..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNamespacedFunctionTest.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class CoverageNamespacedFunctionTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers foo\func()
- */
- public function testFunc()
- {
- foo\func();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNoneTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNoneTest.php
deleted file mode 100644
index 0b414c2e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNoneTest.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-class CoverageNoneTest extends PHPUnit_Framework_TestCase
-{
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotPrivateTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotPrivateTest.php
deleted file mode 100644
index 12b56e80..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotPrivateTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageNotPrivateTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<!private>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotProtectedTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotProtectedTest.php
deleted file mode 100644
index c69d261d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotProtectedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageNotProtectedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<!protected>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotPublicTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotPublicTest.php
deleted file mode 100644
index aebfe4bd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNotPublicTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageNotPublicTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<!public>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNothingTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNothingTest.php
deleted file mode 100644
index 5d5680d9..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageNothingTest.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-class CoverageNothingTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::publicMethod
- * @coversNothing
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveragePrivateTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveragePrivateTest.php
deleted file mode 100644
index f09560d3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveragePrivateTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoveragePrivateTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<private>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageProtectedTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageProtectedTest.php
deleted file mode 100644
index 9b3acbf6..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageProtectedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoverageProtectedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<protected>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveragePublicTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveragePublicTest.php
deleted file mode 100644
index 480a522b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveragePublicTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class CoveragePublicTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers CoveredClass::<public>
- */
- public function testSomething()
- {
- $o = new CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageTwoDefaultClassAnnotations.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageTwoDefaultClassAnnotations.php
deleted file mode 100644
index 1011769f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoverageTwoDefaultClassAnnotations.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/**
- * @coversDefaultClass \NamespaceOne
- * @coversDefaultClass \AnotherDefault\Name\Space\Does\Not\Work
- */
-class CoverageTwoDefaultClassAnnotations
-{
- /**
- * @covers Foo\CoveredClass::<public>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveredClass.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveredClass.php
deleted file mode 100644
index f382ce99..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveredClass.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-class CoveredParentClass
-{
- private function privateMethod()
- {
- }
-
- protected function protectedMethod()
- {
- $this->privateMethod();
- }
-
- public function publicMethod()
- {
- $this->protectedMethod();
- }
-}
-
-class CoveredClass extends CoveredParentClass
-{
- private function privateMethod()
- {
- }
-
- protected function protectedMethod()
- {
- parent::protectedMethod();
- $this->privateMethod();
- }
-
- public function publicMethod()
- {
- parent::publicMethod();
- $this->protectedMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveredFunction.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveredFunction.php
deleted file mode 100644
index 9989eb02..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CoveredFunction.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-function globalFunction()
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/CustomPrinter.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/CustomPrinter.php
deleted file mode 100644
index 0e5ddc31..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/CustomPrinter.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-class CustomPrinter extends PHPUnit_TextUI_ResultPrinter
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderDebugTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderDebugTest.php
deleted file mode 100644
index 22317cf5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderDebugTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-class DataProviderDebugTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider provider
- */
- public function testProvider()
- {
- $this->assertTrue(true);
- }
-
- public static function provider()
- {
- $obj2 = new \stdClass();
- $obj2->foo = 'bar';
-
- $obj3 = (object) array(1,2,"Test\r\n",4,5,6,7,8);
-
- $obj = new \stdClass();
- //@codingStandardsIgnoreStart
- $obj->null = null;
- //@codingStandardsIgnoreEnd
- $obj->boolean = true;
- $obj->integer = 1;
- $obj->double = 1.2;
- $obj->string = '1';
- $obj->text = "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext";
- $obj->object = $obj2;
- $obj->objectagain = $obj2;
- $obj->array = array('foo' => 'bar');
- $obj->self = $obj;
-
- $storage = new \SplObjectStorage();
- $storage->attach($obj2);
- $storage->foo = $obj2;
-
- return array(
- array(null, true, 1, 1.0),
- array(1.2, fopen('php://memory', 'r'), '1'),
- array(array(array(1,2,3), array(3,4,5))),
- // \n\r and \r is converted to \n
- array("this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext"),
- array(new \stdClass(), $obj, array(), $storage, $obj3),
- array(chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5), implode('', array_map('chr', range(0x0e, 0x1f)))),
- array(chr(0x00) . chr(0x09))
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderFilterTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderFilterTest.php
deleted file mode 100644
index a872bc99..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderFilterTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-class DataProviderFilterTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider truthProvider
- */
- public function testTrue($truth)
- {
- $this->assertTrue($truth);
- }
-
- public static function truthProvider()
- {
- return array(
- array(true),
- array(true),
- array(true),
- array(true)
- );
- }
-
- /**
- * @dataProvider falseProvider
- */
- public function testFalse($false)
- {
- $this->assertFalse($false);
- }
-
- public static function falseProvider()
- {
- return array(
- 'false test' => array(false),
- 'false test 2' => array(false),
- 'other false test' => array(false),
- 'other false test2'=> array(false)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderIncompleteTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderIncompleteTest.php
deleted file mode 100644
index e0efb5bc..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderIncompleteTest.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-class DataProviderIncompleteTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider incompleteTestProviderMethod
- */
- public function testIncomplete($a, $b, $c)
- {
- $this->assertTrue(true);
- }
-
- /**
- * @dataProvider providerMethod
- */
- public function testAdd($a, $b, $c)
- {
- $this->assertEquals($c, $a + $b);
- }
-
- public function incompleteTestProviderMethod()
- {
- $this->markTestIncomplete('incomplete');
-
- return array(
- array(0, 0, 0),
- array(0, 1, 1),
- );
- }
-
- public static function providerMethod()
- {
- return array(
- array(0, 0, 0),
- array(0, 1, 1),
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderSkippedTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderSkippedTest.php
deleted file mode 100644
index ec67ce55..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderSkippedTest.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-class DataProviderSkippedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider skippedTestProviderMethod
- */
- public function testSkipped($a, $b, $c)
- {
- $this->assertTrue(true);
- }
-
- /**
- * @dataProvider providerMethod
- */
- public function testAdd($a, $b, $c)
- {
- $this->assertEquals($c, $a + $b);
- }
-
- public function skippedTestProviderMethod()
- {
- $this->markTestSkipped('skipped');
-
- return array(
- array(0, 0, 0),
- array(0, 1, 1),
- );
- }
-
- public static function providerMethod()
- {
- return array(
- array(0, 0, 0),
- array(0, 1, 1),
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderTest.php
deleted file mode 100644
index d940a059..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/DataProviderTest.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-class DataProviderTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider providerMethod
- */
- public function testAdd($a, $b, $c)
- {
- $this->assertEquals($c, $a + $b);
- }
-
- public static function providerMethod()
- {
- return array(
- array(0, 0, 0),
- array(0, 1, 1),
- array(1, 1, 3),
- array(1, 0, 1)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/DependencyFailureTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/DependencyFailureTest.php
deleted file mode 100644
index d83aecd8..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/DependencyFailureTest.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-class DependencyFailureTest extends PHPUnit_Framework_TestCase
-{
- public function testOne()
- {
- $this->fail();
- }
-
- /**
- * @depends testOne
- */
- public function testTwo()
- {
- }
-
- /**
- * @depends testTwo
- */
- public function testThree()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/DependencySuccessTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/DependencySuccessTest.php
deleted file mode 100644
index 0e4b5dde..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/DependencySuccessTest.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-class DependencySuccessTest extends PHPUnit_Framework_TestCase
-{
- public function testOne()
- {
- }
-
- /**
- * @depends testOne
- */
- public function testTwo()
- {
- }
-
- /**
- * @depends DependencySuccessTest::testTwo
- */
- public function testThree()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/DependencyTestSuite.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/DependencyTestSuite.php
deleted file mode 100644
index b5babc7f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/DependencyTestSuite.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-class DependencyTestSuite
-{
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('Test Dependencies');
-
- $suite->addTestSuite('DependencySuccessTest');
- $suite->addTestSuite('DependencyFailureTest');
-
- return $suite;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/DoubleTestCase.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/DoubleTestCase.php
deleted file mode 100644
index b1f00a8f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/DoubleTestCase.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-class DoubleTestCase implements PHPUnit_Framework_Test
-{
- protected $testCase;
-
- public function __construct(PHPUnit_Framework_TestCase $testCase)
- {
- $this->testCase = $testCase;
- }
-
- public function count()
- {
- return 2;
- }
-
- public function run(PHPUnit_Framework_TestResult $result = null)
- {
- $result->startTest($this);
-
- $this->testCase->runBare();
- $this->testCase->runBare();
-
- $result->endTest($this, 0);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/DummyException.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/DummyException.php
deleted file mode 100644
index 29a69b99..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/DummyException.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-class DummyException extends Exception
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/EmptyTestCaseTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/EmptyTestCaseTest.php
deleted file mode 100644
index 2a77bb20..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/EmptyTestCaseTest.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-class EmptyTestCaseTest extends PHPUnit_Framework_TestCase
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInAssertPostConditionsTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInAssertPostConditionsTest.php
deleted file mode 100644
index b86927e9..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInAssertPostConditionsTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-class ExceptionInAssertPostConditionsTest extends PHPUnit_Framework_TestCase
-{
- public $setUp = false;
- public $assertPreConditions = false;
- public $assertPostConditions = false;
- public $tearDown = false;
- public $testSomething = false;
-
- protected function setUp()
- {
- $this->setUp = true;
- }
-
- protected function assertPreConditions()
- {
- $this->assertPreConditions = true;
- }
-
- public function testSomething()
- {
- $this->testSomething = true;
- }
-
- protected function assertPostConditions()
- {
- $this->assertPostConditions = true;
- throw new Exception;
- }
-
- protected function tearDown()
- {
- $this->tearDown = true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInAssertPreConditionsTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInAssertPreConditionsTest.php
deleted file mode 100644
index a375d050..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInAssertPreConditionsTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-class ExceptionInAssertPreConditionsTest extends PHPUnit_Framework_TestCase
-{
- public $setUp = false;
- public $assertPreConditions = false;
- public $assertPostConditions = false;
- public $tearDown = false;
- public $testSomething = false;
-
- protected function setUp()
- {
- $this->setUp = true;
- }
-
- protected function assertPreConditions()
- {
- $this->assertPreConditions = true;
- throw new Exception;
- }
-
- public function testSomething()
- {
- $this->testSomething = true;
- }
-
- protected function assertPostConditions()
- {
- $this->assertPostConditions = true;
- }
-
- protected function tearDown()
- {
- $this->tearDown = true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInSetUpTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInSetUpTest.php
deleted file mode 100644
index 193b9a82..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInSetUpTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-class ExceptionInSetUpTest extends PHPUnit_Framework_TestCase
-{
- public $setUp = false;
- public $assertPreConditions = false;
- public $assertPostConditions = false;
- public $tearDown = false;
- public $testSomething = false;
-
- protected function setUp()
- {
- $this->setUp = true;
- throw new Exception;
- }
-
- protected function assertPreConditions()
- {
- $this->assertPreConditions = true;
- }
-
- public function testSomething()
- {
- $this->testSomething = true;
- }
-
- protected function assertPostConditions()
- {
- $this->assertPostConditions = true;
- }
-
- protected function tearDown()
- {
- $this->tearDown = true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInTearDownTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInTearDownTest.php
deleted file mode 100644
index 5ee4a9d1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInTearDownTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-class ExceptionInTearDownTest extends PHPUnit_Framework_TestCase
-{
- public $setUp = false;
- public $assertPreConditions = false;
- public $assertPostConditions = false;
- public $tearDown = false;
- public $testSomething = false;
-
- protected function setUp()
- {
- $this->setUp = true;
- }
-
- protected function assertPreConditions()
- {
- $this->assertPreConditions = true;
- }
-
- public function testSomething()
- {
- $this->testSomething = true;
- }
-
- protected function assertPostConditions()
- {
- $this->assertPostConditions = true;
- }
-
- protected function tearDown()
- {
- $this->tearDown = true;
- throw new Exception;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInTest.php
deleted file mode 100644
index 32c7e24a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionInTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-class ExceptionInTest extends PHPUnit_Framework_TestCase
-{
- public $setUp = false;
- public $assertPreConditions = false;
- public $assertPostConditions = false;
- public $tearDown = false;
- public $testSomething = false;
-
- protected function setUp()
- {
- $this->setUp = true;
- }
-
- protected function assertPreConditions()
- {
- $this->assertPreConditions = true;
- }
-
- public function testSomething()
- {
- $this->testSomething = true;
- throw new Exception;
- }
-
- protected function assertPostConditions()
- {
- $this->assertPostConditions = true;
- }
-
- protected function tearDown()
- {
- $this->tearDown = true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionNamespaceTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionNamespaceTest.php
deleted file mode 100644
index 22f3760b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionNamespaceTest.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-namespace My\Space;
-
-class ExceptionNamespaceTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * Exception message
- *
- * @var string
- */
- const ERROR_MESSAGE = 'Exception namespace message';
-
- /**
- * Exception code
- *
- * @var int
- */
- const ERROR_CODE = 200;
-
- /**
- * @expectedException Class
- * @expectedExceptionMessage My\Space\ExceptionNamespaceTest::ERROR_MESSAGE
- * @expectedExceptionCode My\Space\ExceptionNamespaceTest::ERROR_CODE
- */
- public function testConstants()
- {
- }
-
- /**
- * @expectedException Class
- * @expectedExceptionCode My\Space\ExceptionNamespaceTest::UNKNOWN_CODE_CONSTANT
- * @expectedExceptionMessage My\Space\ExceptionNamespaceTest::UNKNOWN_MESSAGE_CONSTANT
- */
- public function testUnknownConstants()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionStackTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionStackTest.php
deleted file mode 100644
index 05fa878f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionStackTest.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-class ExceptionStackTest extends PHPUnit_Framework_TestCase
-{
- public function testPrintingChildException()
- {
- try {
- $this->assertEquals(array(1), array(2), 'message');
- } catch (PHPUnit_Framework_ExpectationFailedException $e) {
- $message = $e->getMessage() . $e->getComparisonFailure()->getDiff();
- throw new PHPUnit_Framework_Exception("Child exception\n$message", 101, $e);
- }
- }
-
- public function testNestedExceptions()
- {
- $exceptionThree = new Exception('Three');
- $exceptionTwo = new InvalidArgumentException('Two', 0, $exceptionThree);
- $exceptionOne = new Exception('One', 0, $exceptionTwo);
- throw $exceptionOne;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionTest.php
deleted file mode 100644
index 02138052..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ExceptionTest.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-class ExceptionTest extends PHPUnit_Framework_TestCase
-{
- /**
- * Exception message
- *
- * @var string
- */
- const ERROR_MESSAGE = 'Exception message';
-
- /**
- * Exception message
- *
- * @var string
- */
- const ERROR_MESSAGE_REGEX = '#regex#';
-
- /**
- * Exception code
- *
- * @var int
- */
- const ERROR_CODE = 500;
-
- /**
- * @expectedException FooBarBaz
- */
- public function testOne()
- {
- }
-
- /**
- * @expectedException Foo_Bar_Baz
- */
- public function testTwo()
- {
- }
-
- /**
- * @expectedException Foo\Bar\Baz
- */
- public function testThree()
- {
- }
-
- /**
- * @expectedException ほげ
- */
- public function testFour()
- {
- }
-
- /**
- * @expectedException Class Message 1234
- */
- public function testFive()
- {
- }
-
- /**
- * @expectedException Class
- * @expectedExceptionMessage Message
- * @expectedExceptionCode 1234
- */
- public function testSix()
- {
- }
-
- /**
- * @expectedException Class
- * @expectedExceptionMessage Message
- * @expectedExceptionCode ExceptionCode
- */
- public function testSeven()
- {
- }
-
- /**
- * @expectedException Class
- * @expectedExceptionMessage Message
- * @expectedExceptionCode 0
- */
- public function testEight()
- {
- }
-
- /**
- * @expectedException Class
- * @expectedExceptionMessage ExceptionTest::ERROR_MESSAGE
- * @expectedExceptionCode ExceptionTest::ERROR_CODE
- */
- public function testNine()
- {
- }
-
- /** @expectedException Class */
- public function testSingleLine()
- {
- }
-
- /**
- * @expectedException Class
- * @expectedExceptionCode ExceptionTest::UNKNOWN_CODE_CONSTANT
- * @expectedExceptionMessage ExceptionTest::UNKNOWN_MESSAGE_CONSTANT
- */
- public function testUnknownConstants()
- {
- }
-
- /**
- * @expectedException Class
- * @expectedExceptionCode 1234
- * @expectedExceptionMessage Message
- * @expectedExceptionMessageRegExp #regex#
- */
- public function testWithRegexMessage()
- {
- }
-
- /**
- * @expectedException Class
- * @expectedExceptionCode 1234
- * @expectedExceptionMessage Message
- * @expectedExceptionMessageRegExp ExceptionTest::ERROR_MESSAGE_REGEX
- */
- public function testWithRegexMessageFromClassConstant()
- {
- }
-
- /**
- * @expectedException Class
- * @expectedExceptionCode 1234
- * @expectedExceptionMessage Message
- * @expectedExceptionMessageRegExp ExceptionTest::UNKNOWN_MESSAGE_REGEX_CONSTANT
- */
- public function testWithUnknowRegexMessageFromClassConstant()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/Failure.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/Failure.php
deleted file mode 100644
index 586aa542..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/Failure.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class Failure extends PHPUnit_Framework_TestCase
-{
- protected function runTest()
- {
- $this->fail();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/FailureTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/FailureTest.php
deleted file mode 100644
index e9df755a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/FailureTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-class FailureTest extends PHPUnit_Framework_TestCase
-{
- public function testAssertArrayEqualsArray()
- {
- $this->assertEquals(array(1), array(2), 'message');
- }
-
- public function testAssertIntegerEqualsInteger()
- {
- $this->assertEquals(1, 2, 'message');
- }
-
- public function testAssertObjectEqualsObject()
- {
- $a = new StdClass;
- $a->foo = 'bar';
-
- $b = new StdClass;
- $b->bar = 'foo';
-
- $this->assertEquals($a, $b, 'message');
- }
-
- public function testAssertNullEqualsString()
- {
- $this->assertEquals(null, 'bar', 'message');
- }
-
- public function testAssertStringEqualsString()
- {
- $this->assertEquals('foo', 'bar', 'message');
- }
-
- public function testAssertTextEqualsText()
- {
- $this->assertEquals("foo\nbar\n", "foo\nbaz\n", 'message');
- }
-
- public function testAssertStringMatchesFormat()
- {
- $this->assertStringMatchesFormat('*%s*', '**', 'message');
- }
-
- public function testAssertNumericEqualsNumeric()
- {
- $this->assertEquals(1, 2, 'message');
- }
-
- public function testAssertTextSameText()
- {
- $this->assertSame('foo', 'bar', 'message');
- }
-
- public function testAssertObjectSameObject()
- {
- $this->assertSame(new StdClass, new StdClass, 'message');
- }
-
- public function testAssertObjectSameNull()
- {
- $this->assertSame(new StdClass, null, 'message');
- }
-
- public function testAssertFloatSameFloat()
- {
- $this->assertSame(1.0, 1.5, 'message');
- }
-
- // Note that due to the implementation of this assertion it counts as 2 asserts
- public function testAssertStringMatchesFormatFile()
- {
- $this->assertStringMatchesFormatFile(__DIR__ . '/expectedFileFormat.txt', '...BAR...');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/FatalTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/FatalTest.php
deleted file mode 100644
index bf005f99..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/FatalTest.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-class FatalTest extends PHPUnit_Framework_TestCase
-{
- public function testFatalError()
- {
- if (extension_loaded('xdebug')) {
- xdebug_disable();
- }
-
- eval('class FatalTest {}');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/IncompleteTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/IncompleteTest.php
deleted file mode 100644
index 36ca8a05..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/IncompleteTest.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class IncompleteTest extends PHPUnit_Framework_TestCase
-{
- public function testIncomplete()
- {
- $this->markTestIncomplete('Test incomplete');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/Inheritance/InheritanceA.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/Inheritance/InheritanceA.php
deleted file mode 100644
index e189b7d2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/Inheritance/InheritanceA.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-require_once(__DIR__ . '/InheritanceB.php');
-
-class InheritanceA extends InheritanceB
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/Inheritance/InheritanceB.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/Inheritance/InheritanceB.php
deleted file mode 100644
index 24447e2c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/Inheritance/InheritanceB.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-
-class InheritanceB extends PHPUnit_Framework_TestCase
-{
- public function testSomething()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/InheritedTestCase.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/InheritedTestCase.php
deleted file mode 100644
index 3df72156..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/InheritedTestCase.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class InheritedTestCase extends OneTestCase
-{
- public function test2()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/IniTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/IniTest.php
deleted file mode 100644
index 5846abf5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/IniTest.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class IniTest extends PHPUnit_Framework_TestCase
-{
- public function testIni()
- {
- $this->assertEquals('application/x-test', ini_get('default_mimetype'));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/IsolationTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/IsolationTest.php
deleted file mode 100644
index df95c916..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/IsolationTest.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-class IsolationTest extends PHPUnit_Framework_TestCase
-{
- public function testIsInIsolationReturnsFalse()
- {
- $this->assertFalse($this->isInIsolation());
- }
-
- public function testIsInIsolationReturnsTrue()
- {
- $this->assertTrue($this->isInIsolation());
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/JsonData/arrayObject.json b/www/wiki/vendor/phpunit/phpunit/tests/_files/JsonData/arrayObject.json
deleted file mode 100644
index 8a74fc58..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/JsonData/arrayObject.json
+++ /dev/null
@@ -1 +0,0 @@
-["Mascott", "Tux", "OS", "Linux"]
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/JsonData/simpleObject.json b/www/wiki/vendor/phpunit/phpunit/tests/_files/JsonData/simpleObject.json
deleted file mode 100644
index 27085be2..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/JsonData/simpleObject.json
+++ /dev/null
@@ -1 +0,0 @@
-{"Mascott":"Tux"} \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/MockRunner.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/MockRunner.php
deleted file mode 100644
index b3bc0cc4..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/MockRunner.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class MockRunner extends PHPUnit_Runner_BaseTestRunner
-{
- protected function runFailed($message)
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/MultiDependencyTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/MultiDependencyTest.php
deleted file mode 100644
index 886a8096..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/MultiDependencyTest.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-class MultiDependencyTest extends PHPUnit_Framework_TestCase
-{
- public function testOne()
- {
- return 'foo';
- }
-
- public function testTwo()
- {
- return 'bar';
- }
-
- /**
- * @depends testOne
- * @depends testTwo
- */
- public function testThree($a, $b)
- {
- $this->assertEquals('foo', $a);
- $this->assertEquals('bar', $b);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageClassExtendedTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageClassExtendedTest.php
deleted file mode 100644
index d0954cba..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageClassExtendedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageClassExtendedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass<extended>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageClassTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageClassTest.php
deleted file mode 100644
index 63912c08..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageClassTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageClassTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageCoversClassPublicTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageCoversClassPublicTest.php
deleted file mode 100644
index 45f583b7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageCoversClassPublicTest.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-/**
- * @coversDefaultClass \Foo\CoveredClass
- */
-class NamespaceCoverageCoversClassPublicTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers ::publicMethod
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageCoversClassTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageCoversClassTest.php
deleted file mode 100644
index b3367454..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageCoversClassTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/**
- * @coversDefaultClass \Foo\CoveredClass
- */
-class NamespaceCoverageCoversClassTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers ::privateMethod
- * @covers ::protectedMethod
- * @covers ::publicMethod
- * @covers \Foo\CoveredParentClass::privateMethod
- * @covers \Foo\CoveredParentClass::protectedMethod
- * @covers \Foo\CoveredParentClass::publicMethod
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageMethodTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageMethodTest.php
deleted file mode 100644
index 35dfb8b1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageMethodTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageMethodTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::publicMethod
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotPrivateTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotPrivateTest.php
deleted file mode 100644
index 552c9ec5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotPrivateTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageNotPrivateTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<!private>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotProtectedTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotProtectedTest.php
deleted file mode 100644
index 33fc8c72..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotProtectedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageNotProtectedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<!protected>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotPublicTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotPublicTest.php
deleted file mode 100644
index ccbc5009..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageNotPublicTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageNotPublicTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<!public>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveragePrivateTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveragePrivateTest.php
deleted file mode 100644
index cce7ba9d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveragePrivateTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoveragePrivateTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<private>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageProtectedTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageProtectedTest.php
deleted file mode 100644
index dbbcc1c3..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoverageProtectedTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoverageProtectedTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<protected>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveragePublicTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveragePublicTest.php
deleted file mode 100644
index bf1bff8c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveragePublicTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class NamespaceCoveragePublicTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers Foo\CoveredClass::<public>
- */
- public function testSomething()
- {
- $o = new Foo\CoveredClass;
- $o->publicMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveredClass.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveredClass.php
deleted file mode 100644
index 5bd0ddfb..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveredClass.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-namespace Foo;
-
-class CoveredParentClass
-{
- private function privateMethod()
- {
- }
-
- protected function protectedMethod()
- {
- $this->privateMethod();
- }
-
- public function publicMethod()
- {
- $this->protectedMethod();
- }
-}
-
-class CoveredClass extends CoveredParentClass
-{
- private function privateMethod()
- {
- }
-
- protected function protectedMethod()
- {
- parent::protectedMethod();
- $this->privateMethod();
- }
-
- public function publicMethod()
- {
- parent::publicMethod();
- $this->protectedMethod();
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveredFunction.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveredFunction.php
deleted file mode 100644
index afc00d7c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NamespaceCoveredFunction.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-namespace foo;
-
-function func()
-{
- return true;
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NoArgTestCaseTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NoArgTestCaseTest.php
deleted file mode 100644
index 5867ba3c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NoArgTestCaseTest.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class NoArgTestCaseTest extends PHPUnit_Framework_TestCase
-{
- public function testNothing()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NoTestCaseClass.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NoTestCaseClass.php
deleted file mode 100644
index d64e4e1c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NoTestCaseClass.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-class NoTestCaseClass
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NoTestCases.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NoTestCases.php
deleted file mode 100644
index ae932330..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NoTestCases.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class NoTestCases extends PHPUnit_Framework_TestCase
-{
- public function noTestCase()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NonStatic.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NonStatic.php
deleted file mode 100644
index 48bad9af..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NonStatic.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class NonStatic
-{
- public function suite()
- {
- return;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NotExistingCoveredElementTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NotExistingCoveredElementTest.php
deleted file mode 100644
index be07ef45..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NotExistingCoveredElementTest.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-class NotExistingCoveredElementTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @covers NotExistingClass
- */
- public function testOne()
- {
- }
-
- /**
- * @covers NotExistingClass::notExistingMethod
- */
- public function testTwo()
- {
- }
-
- /**
- * @covers NotExistingClass::<public>
- */
- public function testThree()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NotPublicTestCase.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NotPublicTestCase.php
deleted file mode 100644
index a3910100..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NotPublicTestCase.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class NotPublicTestCase extends PHPUnit_Framework_TestCase
-{
- public function testPublic()
- {
- }
-
- protected function testNotPublic()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NotVoidTestCase.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NotVoidTestCase.php
deleted file mode 100644
index 19a95678..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NotVoidTestCase.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-class NotVoidTestCase extends PHPUnit_Framework_TestCase
-{
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/NothingTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/NothingTest.php
deleted file mode 100644
index b56d7d7a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/NothingTest.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class NothingTest extends PHPUnit_Framework_TestCase
-{
- public function testNothing()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/OneTestCase.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/OneTestCase.php
deleted file mode 100644
index 15eeed93..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/OneTestCase.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-class OneTestCase extends PHPUnit_Framework_TestCase
-{
- public function noTestCase()
- {
- }
-
- public function testCase($arg = '')
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/OutputTestCase.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/OutputTestCase.php
deleted file mode 100644
index ae972b56..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/OutputTestCase.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-class OutputTestCase extends PHPUnit_Framework_TestCase
-{
- public function testExpectOutputStringFooActualFoo()
- {
- $this->expectOutputString('foo');
- print 'foo';
- }
-
- public function testExpectOutputStringFooActualBar()
- {
- $this->expectOutputString('foo');
- print 'bar';
- }
-
- public function testExpectOutputRegexFooActualFoo()
- {
- $this->expectOutputRegex('/foo/');
- print 'foo';
- }
-
- public function testExpectOutputRegexFooActualBar()
- {
- $this->expectOutputRegex('/foo/');
- print 'bar';
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/OverrideTestCase.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/OverrideTestCase.php
deleted file mode 100644
index fcc276c5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/OverrideTestCase.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class OverrideTestCase extends OneTestCase
-{
- public function testCase($arg = '')
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsClassBeforeClassHookTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsClassBeforeClassHookTest.php
deleted file mode 100644
index 002781f8..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsClassBeforeClassHookTest.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-/**
- * @requires extension nonExistingExtension
- */
-class RequirementsClassBeforeClassHookTest extends PHPUnit_Framework_TestCase
-{
- public static function setUpBeforeClass()
- {
- throw new Exception(__METHOD__ . ' should not be called because of class requirements.');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsClassDocBlockTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsClassDocBlockTest.php
deleted file mode 100644
index c420afb5..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsClassDocBlockTest.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-/**
- * @requires PHP 5.3
- * @requires PHPUnit 4.0
- * @requires OS Linux
- * @requires function testFuncClass
- * @requires extension testExtClass
- */
-class RequirementsClassDocBlockTest
-{
- /**
- * @requires PHP 5.4
- * @requires PHPUnit 3.7
- * @requires OS WINNT
- * @requires function testFuncMethod
- * @requires extension testExtMethod
- */
- public function testMethod()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsTest.php
deleted file mode 100644
index 5b20695c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/RequirementsTest.php
+++ /dev/null
@@ -1,148 +0,0 @@
-<?php
-class RequirementsTest extends PHPUnit_Framework_TestCase
-{
- public function testOne()
- {
- }
-
- /**
- * @requires PHPUnit 1.0
- */
- public function testTwo()
- {
- }
-
- /**
- * @requires PHP 2.0
- */
- public function testThree()
- {
- }
-
- /**
- * @requires PHPUnit 2.0
- * @requires PHP 1.0
- */
- public function testFour()
- {
- }
-
- /**
- * @requires PHP 5.4.0RC6
- */
- public function testFive()
- {
- }
-
- /**
- * @requires PHP 5.4.0-alpha1
- */
- public function testSix()
- {
- }
-
- /**
- * @requires PHP 5.4.0beta2
- */
- public function testSeven()
- {
- }
-
- /**
- * @requires PHP 5.4-dev
- */
- public function testEight()
- {
- }
-
- /**
- * @requires function testFunc
- */
- public function testNine()
- {
- }
-
- /**
- * @requires extension testExt
- */
- public function testTen()
- {
- }
-
- /**
- * @requires OS Linux
- */
- public function testEleven()
- {
- }
-
- /**
- * @requires PHP 99-dev
- * @requires PHPUnit 9-dev
- * @requires OS DOESNOTEXIST
- * @requires function testFuncOne
- * @requires function testFuncTwo
- * @requires extension testExtOne
- * @requires extension testExtTwo
- */
- public function testAllPossibleRequirements()
- {
- }
-
- /**
- * @requires function array_merge
- */
- public function testExistingFunction()
- {
- }
-
- /**
- * @requires function ReflectionMethod::setAccessible
- */
- public function testExistingMethod()
- {
- }
-
- /**
- * @requires extension spl
- */
- public function testExistingExtension()
- {
- }
-
- /**
- * @requires OS .*
- */
- public function testExistingOs()
- {
- }
-
- /**
- * @requires PHPUnit 1111111
- */
- public function testAlwaysSkip()
- {
- }
-
- /**
- * @requires PHP 9999999
- */
- public function testAlwaysSkip2()
- {
- }
-
- /**
- * @requires OS DOESNOTEXIST
- */
- public function testAlwaysSkip3()
- {
- }
-
- /**
- * @requires extension spl
- * @requires OS .*
- */
- public function testSpace()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/SampleArrayAccess.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/SampleArrayAccess.php
deleted file mode 100644
index d0021651..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/SampleArrayAccess.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
- * Sample class that implements ArrayAccess copied from
- * http://www.php.net/manual/en/class.arrayaccess.php
- * with some minor changes
- * This class required for PHPUnit_Framework_Constraint_ArrayHasKey testing
- */
-class SampleArrayAccess implements ArrayAccess
-{
- private $container;
-
- public function __construct()
- {
- $this->container = array();
- }
- public function offsetSet($offset, $value)
- {
- if (is_null($offset)) {
- $this->container[] = $value;
- } else {
- $this->container[$offset] = $value;
- }
- }
- public function offsetExists($offset)
- {
- return isset($this->container[$offset]);
- }
- public function offsetUnset($offset)
- {
- unset($this->container[$offset]);
- }
- public function offsetGet($offset)
- {
- return isset($this->container[$offset]) ? $this->container[$offset] : null;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/SampleClass.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/SampleClass.php
deleted file mode 100644
index 06c51c51..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/SampleClass.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-class SampleClass
-{
- public $a;
- protected $b;
- protected $c;
-
- public function __construct($a, $b, $c)
- {
- $this->a = $a;
- $this->b = $b;
- $this->c = $c;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/Singleton.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/Singleton.php
deleted file mode 100644
index bfdf3bb0..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/Singleton.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-class Singleton
-{
- private static $uniqueInstance = null;
-
- protected function __construct()
- {
- }
-
- final private function __clone()
- {
- }
-
- public static function getInstance()
- {
- if (self::$uniqueInstance === null) {
- self::$uniqueInstance = new self;
- }
-
- return self::$uniqueInstance;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/StackTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/StackTest.php
deleted file mode 100644
index 2e29e876..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/StackTest.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-class StackTest extends PHPUnit_Framework_TestCase
-{
- public function testPush()
- {
- $stack = array();
- $this->assertEquals(0, count($stack));
-
- array_push($stack, 'foo');
- $this->assertEquals('foo', $stack[count($stack)-1]);
- $this->assertEquals(1, count($stack));
-
- return $stack;
- }
-
- /**
- * @depends testPush
- */
- public function testPop(array $stack)
- {
- $this->assertEquals('foo', array_pop($stack));
- $this->assertEquals(0, count($stack));
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/StatusTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/StatusTest.php
deleted file mode 100644
index a267bb72..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/StatusTest.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-class StatusTest extends PHPUnit_Framework_TestCase
-{
- public function testSuccess()
- {
- $this->assertTrue(true);
- }
-
- public function testFailure()
- {
- $this->assertTrue(false);
- }
-
- public function testError()
- {
- throw new \Exception;
- }
-
- public function testIncomplete()
- {
- $this->markTestIncomplete();
- }
-
- public function testSkipped()
- {
- $this->markTestSkipped();
- }
-
- public function testRisky()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/Struct.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/Struct.php
deleted file mode 100644
index 12977a99..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/Struct.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-class Struct
-{
- public $var;
-
- public function __construct($var)
- {
- $this->var = $var;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/Success.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/Success.php
deleted file mode 100644
index 6d3dd618..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/Success.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class Success extends PHPUnit_Framework_TestCase
-{
- protected function runTest()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/TemplateMethodsTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/TemplateMethodsTest.php
deleted file mode 100644
index d6b1364f..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/TemplateMethodsTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-class TemplateMethodsTest extends PHPUnit_Framework_TestCase
-{
- public static function setUpBeforeClass()
- {
- print __METHOD__ . "\n";
- }
-
- protected function setUp()
- {
- print __METHOD__ . "\n";
- }
-
- protected function assertPreConditions()
- {
- print __METHOD__ . "\n";
- }
-
- public function testOne()
- {
- print __METHOD__ . "\n";
- $this->assertTrue(true);
- }
-
- public function testTwo()
- {
- print __METHOD__ . "\n";
- $this->assertTrue(false);
- }
-
- protected function assertPostConditions()
- {
- print __METHOD__ . "\n";
- }
-
- protected function tearDown()
- {
- print __METHOD__ . "\n";
- }
-
- public static function tearDownAfterClass()
- {
- print __METHOD__ . "\n";
- }
-
- protected function onNotSuccessfulTest(Exception $e)
- {
- print __METHOD__ . "\n";
- throw $e;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestIncomplete.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/TestIncomplete.php
deleted file mode 100644
index 743a761c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestIncomplete.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class TestIncomplete extends PHPUnit_Framework_TestCase
-{
- protected function runTest()
- {
- $this->markTestIncomplete('Incomplete test');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestIterator.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/TestIterator.php
deleted file mode 100644
index 01135e3b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestIterator.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-class TestIterator implements Iterator
-{
- protected $array;
- protected $position = 0;
-
- public function __construct($array = array())
- {
- $this->array = $array;
- }
-
- public function rewind()
- {
- $this->position = 0;
- }
-
- public function valid()
- {
- return $this->position < count($this->array);
- }
-
- public function key()
- {
- return $this->position;
- }
-
- public function current()
- {
- return $this->array[$this->position];
- }
-
- public function next()
- {
- $this->position++;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestIterator2.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/TestIterator2.php
deleted file mode 100644
index 3b47fa36..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestIterator2.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-class TestIterator2 implements Iterator
-{
- protected $data;
-
- public function __construct(array $array)
- {
- $this->data = $array;
- }
-
- public function current()
- {
- return current($this->data);
- }
-
- public function next()
- {
- next($this->data);
- }
-
- public function key()
- {
- return key($this->data);
- }
-
- public function valid()
- {
- return key($this->data) !== null;
- }
-
- public function rewind()
- {
- reset($this->data);
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestSkipped.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/TestSkipped.php
deleted file mode 100644
index c2d68b24..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestSkipped.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class TestSkipped extends PHPUnit_Framework_TestCase
-{
- protected function runTest()
- {
- $this->markTestSkipped('Skipped test');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestTestError.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/TestTestError.php
deleted file mode 100644
index 6f61b8ed..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestTestError.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class TestError extends PHPUnit_Framework_TestCase
-{
- protected function runTest()
- {
- throw new Exception;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestWithTest.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/TestWithTest.php
deleted file mode 100644
index 3fa6dfd1..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/TestWithTest.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-class TestWithTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @testWith [0, 0, 0]
- * [0, 1, 1]
- * [1, 2, 3]
- * [20, 22, 42]
- */
- public function testAdd($a, $b, $c)
- {
- $this->assertEquals($c, $a + $b);
- }
-
- public static function providerMethod()
- {
- return array(
- array(0, 0, 0),
- array(0, 1, 1),
- array(1, 1, 3),
- array(1, 0, 1)
- );
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ThrowExceptionTestCase.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ThrowExceptionTestCase.php
deleted file mode 100644
index 1d2a769a..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ThrowExceptionTestCase.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class ThrowExceptionTestCase extends PHPUnit_Framework_TestCase
-{
- public function test()
- {
- throw new RuntimeException('A runtime error occurred');
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/ThrowNoExceptionTestCase.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/ThrowNoExceptionTestCase.php
deleted file mode 100644
index 76958cb7..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/ThrowNoExceptionTestCase.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-class ThrowNoExceptionTestCase extends PHPUnit_Framework_TestCase
-{
- public function test()
- {
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/WasRun.php b/www/wiki/vendor/phpunit/phpunit/tests/_files/WasRun.php
deleted file mode 100644
index 4221b6dd..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/WasRun.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-class WasRun extends PHPUnit_Framework_TestCase
-{
- public $wasRun = false;
-
- protected function runTest()
- {
- $this->wasRun = true;
- }
-}
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/bar.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/bar.xml
deleted file mode 100644
index 5d3fa282..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/bar.xml
+++ /dev/null
@@ -1 +0,0 @@
-<bar/>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.empty.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.empty.xml
deleted file mode 100644
index 5f9e0556..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.empty.xml
+++ /dev/null
@@ -1 +0,0 @@
-<phpunit colors=""></phpunit>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.false.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.false.xml
deleted file mode 100644
index dcd4aa47..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.false.xml
+++ /dev/null
@@ -1 +0,0 @@
-<phpunit colors="false"></phpunit>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.invalid.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.invalid.xml
deleted file mode 100644
index c5bd6990..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.invalid.xml
+++ /dev/null
@@ -1 +0,0 @@
-<phpunit colors="Something else"></phpunit>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.true.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.true.xml
deleted file mode 100644
index 1efe4132..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.colors.true.xml
+++ /dev/null
@@ -1 +0,0 @@
-<phpunit colors="true"></phpunit>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.custom-printer.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.custom-printer.xml
deleted file mode 100644
index 7a5a1f1d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.custom-printer.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit printerFile="CustomPrinter.php" printerClass="CustomPrinter" /> \ No newline at end of file
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.xml
deleted file mode 100644
index 7a23dae0..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration.xml
+++ /dev/null
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-
-<phpunit backupGlobals="true"
- backupStaticAttributes="false"
- bootstrap="/path/to/bootstrap.php"
- cacheTokens="false"
- columns="80"
- colors="false"
- stderr="false"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- forceCoversAnnotation="false"
- mapTestClassNameToCoveredClassName="false"
- printerClass="PHPUnit_TextUI_ResultPrinter"
- stopOnFailure="false"
- testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
- timeoutForSmallTests="1"
- timeoutForMediumTests="10"
- timeoutForLargeTests="60"
- beStrictAboutTestsThatDoNotTestAnything="false"
- beStrictAboutOutputDuringTests="false"
- beStrictAboutTestSize="false"
- beStrictAboutTodoAnnotatedTests="false"
- checkForUnintentionallyCoveredCode="false"
- beStrictAboutChangesToGlobalState="false"
- verbose="false">
- <testsuites>
- <testsuite name="My Test Suite">
- <directory suffix="Test.php" phpVersion="5.3.0" phpVersionOperator=">=">/path/to/files</directory>
- <file phpVersion="5.3.0" phpVersionOperator=">=">/path/to/MyTest.php</file>
- </testsuite>
- </testsuites>
-
- <groups>
- <include>
- <group>name</group>
- </include>
- <exclude>
- <group>name</group>
- </exclude>
- </groups>
-
- <filter>
- <blacklist>
- <directory suffix=".php">/path/to/files</directory>
- <file>/path/to/file</file>
- <file>
- /path/to/file
- </file>
- <exclude>
- <directory suffix=".php">/path/to/files</directory>
- <file>/path/to/file</file>
- </exclude>
- </blacklist>
- <whitelist addUncoveredFilesFromWhitelist="true"
- processUncoveredFilesFromWhitelist="false">
- <directory suffix=".php">/path/to/files</directory>
- <file>/path/to/file</file>
- <exclude>
- <directory suffix=".php">/path/to/files</directory>
- <file>/path/to/file</file>
- </exclude>
- </whitelist>
- </filter>
-
- <listeners>
- <listener class="MyListener" file="/optional/path/to/MyListener.php">
- <arguments>
- <array>
- <element key="0">
- <string>Sebastian</string>
- </element>
- </array>
- <integer>22</integer>
- <string>April</string>
- <double>19.78</double>
- <null/>
- <object class="stdClass"/>
- <file>MyTestFile.php</file>
- <directory>MyRelativePath</directory>
- </arguments>
- </listener>
- <listener class="IncludePathListener" file="ConfigurationTest.php" />
- <listener class="CompactArgumentsListener" file="/CompactArgumentsListener.php"><arguments><integer>42</integer></arguments></listener>
- </listeners>
-
- <logging>
- <log type="coverage-html" target="/tmp/report" lowUpperBound="50" highLowerBound="90"/>
- <log type="coverage-clover" target="/tmp/clover.xml"/>
- <log type="json" target="/tmp/logfile.json"/>
- <log type="plain" target="/tmp/logfile.txt"/>
- <log type="tap" target="/tmp/logfile.tap"/>
- <log type="junit" target="/tmp/logfile.xml" logIncompleteSkipped="false"/>
- <log type="testdox-html" target="/tmp/testdox.html"/>
- <log type="testdox-text" target="/tmp/testdox.txt"/>
- </logging>
-
- <php>
- <includePath>.</includePath>
- <includePath>/path/to/lib</includePath>
- <ini name="foo" value="bar"/>
- <const name="FOO" value="false"/>
- <const name="BAR" value="true"/>
- <var name="foo" value="false"/>
- <env name="foo" value="true"/>
- <post name="foo" value="bar"/>
- <get name="foo" value="bar"/>
- <cookie name="foo" value="bar"/>
- <server name="foo" value="bar"/>
- <files name="foo" value="bar"/>
- <request name="foo" value="bar"/>
- </php>
-
- <selenium>
- <browser name="Firefox on Linux"
- browser="*firefox /usr/lib/firefox/firefox-bin"
- host="my.linux.box"
- port="4444"
- timeout="30000"/>
- </selenium>
-</phpunit>
-
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration_empty.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration_empty.xml
deleted file mode 100644
index 13c8b71d..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration_empty.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-
-<phpunit bootstrap=""
- testSuiteLoaderFile=""
- printerFile="">
- <testsuites>
- <testsuite name="My Test Suite">
- <directory></directory>
- <file></file>
- </testsuite>
- </testsuites>
-
- <groups>
- <include>
- <group></group>
- </include>
- <exclude>
- <group></group>
- </exclude>
- </groups>
-
- <filter>
- <blacklist>
- <directory></directory>
- <file></file>
- <exclude>
- <directory></directory>
- <file></file>
- </exclude>
- </blacklist>
- <whitelist>
- <directory></directory>
- <file></file>
- <exclude>
- <directory></directory>
- <file></file>
- </exclude>
- </whitelist>
- </filter>
-
- <logging>
- <log type="coverage-html" target=""/>
- <log type="coverage-clover" target=""/>
- <log type="json" target=""/>
- <log type="plain" target=""/>
- <log type="tap" target=""/>
- <log type="junit" target="" logIncompleteSkipped="false"/>
- <log type="testdox-html" target=""/>
- <log type="testdox-text" target=""/>
- </logging>
-
- <php>
- <includePath/>
- <includePath></includePath>
- </php>
-</phpunit>
-
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration_xinclude.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration_xinclude.xml
deleted file mode 100644
index 43076297..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/configuration_xinclude.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-
-<phpunit backupGlobals="true"
- backupStaticAttributes="false"
- bootstrap="/path/to/bootstrap.php"
- cacheTokens="false"
- columns="80"
- colors="false"
- stderr="false"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- forceCoversAnnotation="false"
- mapTestClassNameToCoveredClassName="false"
- printerClass="PHPUnit_TextUI_ResultPrinter"
- stopOnFailure="false"
- testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
- timeoutForSmallTests="1"
- timeoutForMediumTests="10"
- timeoutForLargeTests="60"
- beStrictAboutTestsThatDoNotTestAnything="false"
- beStrictAboutOutputDuringTests="false"
- beStrictAboutTestSize="false"
- beStrictAboutTodoAnnotatedTests="false"
- checkForUnintentionallyCoveredCode="false"
- beStrictAboutChangesToGlobalState="false"
- verbose="false">
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="configuration.xml"
- parse="xml"
- xpointer="xpointer(/phpunit/testsuites)" />
-
- <groups>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="configuration.xml"
- parse="xml"
- xpointer="xpointer(/phpunit/groups/*)" />
- </groups>
-
-
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="configuration.xml"
- parse="xml"
- xpointer="xpointer(/phpunit/filter)" />
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="configuration.xml"
- parse="xml"
- xpointer="xpointer(/phpunit/listeners)" />
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="configuration.xml"
- parse="xml"
- xpointer="xpointer(/phpunit/logging)" />
-
- <php>
- <includePath>.</includePath>
- <includePath>/path/to/lib</includePath>
- <ini name="foo" value="bar"/>
- <const name="FOO" value="false"/>
- <const name="BAR" value="true"/>
- <var name="foo" value="false"/>
- <env name="foo" value="true"/>
- <post name="foo" value="bar"/>
- <get name="foo" value="bar"/>
- <cookie name="foo" value="bar"/>
- <server name="foo" value="bar"/>
- <files name="foo" value="bar"/>
- <request name="foo" value="bar"/>
- </php>
-
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="configuration.xml"
- parse="xml"
- xpointer="xpointer(/phpunit/selenium)" />
-</phpunit>
-
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/expectedFileFormat.txt b/www/wiki/vendor/phpunit/phpunit/tests/_files/expectedFileFormat.txt
deleted file mode 100644
index b7d6715e..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/expectedFileFormat.txt
+++ /dev/null
@@ -1 +0,0 @@
-FOO
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/foo.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/foo.xml
deleted file mode 100644
index f1999f80..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/foo.xml
+++ /dev/null
@@ -1 +0,0 @@
-<foo/>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureAttributesAreSameButValuesAreNot.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/structureAttributesAreSameButValuesAreNot.xml
deleted file mode 100644
index a5d9ab33..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureAttributesAreSameButValuesAreNot.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<text:p xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0">
- <draw:frame xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" svg:width="12.567708175cm" svg:height="16.848541467cm" draw:style-name="Frame">
- <draw:text-box>
- <draw:frame svg:width="12.567708175cm" svg:height="15.848541467cm" draw:style-name="Image">
- <draw:image xmlns:xlink="notthesame" xlink:href="Pictures/kristian.jpg"/>
- </draw:frame>
- <text:p text:style-name="Text">Image <text:sequence xmlns:style="notthesame" text:ref-name="refImage1" style:num-format="1" text:formula="ooow:Image+1" text:name="Image">1</text:sequence>: Dette er en test caption</text:p>
- </draw:text-box>
- </draw:frame>
-</text:p>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureExpected.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/structureExpected.xml
deleted file mode 100644
index d9001059..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureExpected.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<text:p xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0">
- <draw:frame xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" svg:width="12.567708175cm" svg:height="16.848541467cm" draw:style-name="Frame">
- <draw:text-box>
- <draw:frame svg:width="12.567708175cm" svg:height="15.848541467cm" draw:style-name="Image">
- <draw:image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="Pictures/kristian.jpg"/>
- </draw:frame>
- <text:p text:style-name="Text">Image <text:sequence xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" text:ref-name="refImage1" style:num-format="1" text:formula="ooow:Image+1" text:name="Image">1</text:sequence>: Dette er en test caption</text:p>
- </draw:text-box>
- </draw:frame>
-</text:p>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureIgnoreTextNodes.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/structureIgnoreTextNodes.xml
deleted file mode 100644
index 0771b60c..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureIgnoreTextNodes.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<text:p xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0">
- <draw:frame xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" svg:width="12.567708175cm" svg:height="16.848541467cm" draw:style-name="Frame">
- <draw:text-box>
- textnode
- <draw:frame svg:width="12.567708175cm" svg:height="15.848541467cm" draw:style-name="Image">
- <draw:image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="Pictures/kristian.jpg"/> textnode
- </draw:frame>
- textnode
- <text:p text:style-name="Text">Image <text:sequence xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" text:ref-name="refImage1" style:num-format="1" text:formula="ooow:Image+1" text:name="Image">1</text:sequence>: Dette er en test caption</text:p>
- textnode
- </draw:text-box>
- </draw:frame>
-</text:p>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureIsSameButDataIsNot.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/structureIsSameButDataIsNot.xml
deleted file mode 100644
index 2ba21b98..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureIsSameButDataIsNot.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<text:p xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0">
- <draw:frame xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" svg:width="12.567708175cm" svg:height="16.848541467cm" draw:style-name="Frame">
- <draw:text-box>
- <draw:frame svg:width="12.567708175cm" svg:height="15.848541467cm" draw:style-name="Image">
- <draw:image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="Pictures/kristian.jpg"/>
- </draw:frame>
- <text:p text:style-name="Text">Image is not the same <text:sequence xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" text:ref-name="refImage1" style:num-format="1" text:formula="ooow:Image+1" text:name="Image">1</text:sequence>: Dette er en test caption</text:p>
- </draw:text-box>
- </draw:frame>
-</text:p>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureWrongNumberOfAttributes.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/structureWrongNumberOfAttributes.xml
deleted file mode 100644
index af9b9741..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureWrongNumberOfAttributes.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<text:p xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0">
- <draw:frame xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" svg:width="12.567708175cm" svg:height="16.848541467cm" draw:style-name="Frame">
- <draw:text-box>
- <draw:frame svg:width="12.567708175cm" svg:height="15.848541467cm" draw:style-name="Image">
- <draw:image/>
- </draw:frame>
- <text:p text:style-name="Text">Image <text:sequence xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" text:ref-name="refImage1" style:num-format="1" text:formula="ooow:Image+1" text:name="Image">1</text:sequence>: Dette er en test caption</text:p>
- </draw:text-box>
- </draw:frame>
-</text:p>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureWrongNumberOfNodes.xml b/www/wiki/vendor/phpunit/phpunit/tests/_files/structureWrongNumberOfNodes.xml
deleted file mode 100644
index 9a394e23..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/_files/structureWrongNumberOfNodes.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<text:p xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0">
- <draw:frame xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" svg:width="12.567708175cm" svg:height="16.848541467cm" draw:style-name="Frame">
- <draw:text-box>
- <draw:frame svg:width="12.567708175cm" svg:height="15.848541467cm" draw:style-name="Image">
- <draw:image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="Pictures/kristian.jpg"/>
- </draw:frame>
- </draw:text-box>
- </draw:frame>
-</text:p>
diff --git a/www/wiki/vendor/phpunit/phpunit/tests/bootstrap.php b/www/wiki/vendor/phpunit/phpunit/tests/bootstrap.php
deleted file mode 100644
index cc79889b..00000000
--- a/www/wiki/vendor/phpunit/phpunit/tests/bootstrap.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-// Needed for isolated tests
-require __DIR__ . '/../vendor/autoload.php';
-
-ini_set('precision', 14);
-ini_set('serialize_precision', 14);
diff --git a/www/wiki/vendor/psy/psysh/.editorconfig b/www/wiki/vendor/psy/psysh/.editorconfig
deleted file mode 100644
index 779f99a1..00000000
--- a/www/wiki/vendor/psy/psysh/.editorconfig
+++ /dev/null
@@ -1,12 +0,0 @@
-root = true
-
-[*]
-indent_style = space
-indent_size = 4
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[*.md]
-trim_trailing_whitespace = false
diff --git a/www/wiki/vendor/psy/psysh/.gitignore b/www/wiki/vendor/psy/psysh/.gitignore
deleted file mode 100644
index 98f9b0aa..00000000
--- a/www/wiki/vendor/psy/psysh/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-build-vendor/
-vendor/
-composer.lock
-composer-compat.json
-composer-compat.lock
-manual/
-dist/
-__pycache__
-.php_cs.cache
diff --git a/www/wiki/vendor/psy/psysh/.phan/config.php b/www/wiki/vendor/psy/psysh/.phan/config.php
deleted file mode 100644
index 433a04ab..00000000
--- a/www/wiki/vendor/psy/psysh/.phan/config.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-/**
- * This configuration will be read and overlaid on top of the
- * default configuration. Command line arguments will be applied
- * after this file is read.
- */
-return [
-
- // A list of directories that should be parsed for class and
- // method information. After excluding the directories
- // defined in exclude_analysis_directory_list, the remaining
- // files will be statically analyzed for errors.
- //
- // Thus, both first-party and third-party code being used by
- // your application should be included in this list.
- 'directory_list' => [
- 'src/',
- 'vendor/dnoegel/php-xdg-base-dir/src/',
- 'vendor/doctrine/instantiator/src/',
- 'vendor/hoa/console/',
- 'vendor/jakub-onderka/php-console-color/src/',
- 'vendor/jakub-onderka/php-console-highlighter/src/',
- 'vendor/nikic/php-parser/lib/',
- 'vendor/phpdocumentor/reflection-docblock/',
- 'vendor/symfony/console/',
- 'vendor/symfony/filesystem/',
- 'vendor/symfony/finder/',
- 'vendor/symfony/var-dumper/',
- ],
-
- // A directory list that defines files that will be excluded
- // from static analysis, but whose class and method
- // information should be included.
- //
- // Generally, you'll want to include the directories for
- // third-party code (such as "vendor/") in this list.
- //
- // n.b.: If you'd like to parse but not analyze 3rd
- // party code, directories containing that code
- // should be added to both the `directory_list`
- // and `exclude_analysis_directory_list` arrays.
- "exclude_analysis_directory_list" => [
- 'vendor/'
- ],
-];
diff --git a/www/wiki/vendor/psy/psysh/.php_cs b/www/wiki/vendor/psy/psysh/.php_cs
deleted file mode 100644
index 4b82f853..00000000
--- a/www/wiki/vendor/psy/psysh/.php_cs
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-use Symfony\CS\Config\Config;
-use Symfony\CS\FixerInterface;
-use Symfony\CS\Fixer\Contrib\HeaderCommentFixer;
-
-$header = <<<EOF
-This file is part of Psy Shell.
-
-(c) 2012-2017 Justin Hileman
-
-For the full copyright and license information, please view the LICENSE
-file that was distributed with this source code.
-EOF;
-
-HeaderCommentFixer::setHeader($header);
-
-$config = Config::create()
- // use symfony level and extra fixers:
- ->level(FixerInterface::SYMFONY_LEVEL)
- ->fixers(array(
- 'align_double_arrow',
- 'concat_with_spaces',
- 'header_comment',
- 'long_array_syntax',
- 'ordered_use',
- 'strict',
- '-concat_without_spaces',
- '-method_argument_space',
- '-pre_increment',
- '-unalign_double_arrow',
- '-unalign_equals',
- '-no_empty_comment', // stop removing slashes in the middle of multi-line comments
- ))
- ->setUsingLinter(false);
-
-$finder = $config->getFinder()
- ->in(__DIR__)
- ->name('.php_cs')
- ->name('build-manual')
- ->name('build-phar')
- ->exclude('build-vendor');
-
-return $config;
diff --git a/www/wiki/vendor/psy/psysh/.styleci.yml b/www/wiki/vendor/psy/psysh/.styleci.yml
deleted file mode 100644
index c6fa1469..00000000
--- a/www/wiki/vendor/psy/psysh/.styleci.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-preset: symfony
-
-enabled:
- - align_double_arrow
- - concat_with_spaces
- - long_array_syntax
- - ordered_use
- - strict
-
-disabled:
- - concat_without_spaces
- - method_argument_space
- - pre_increment
- - unalign_double_arrow
- - unalign_equals
-
-finder:
- name:
- - "*.php"
- - ".php_cs"
- - "build-manual"
- - "build-phar"
diff --git a/www/wiki/vendor/psy/psysh/.travis.yml b/www/wiki/vendor/psy/psysh/.travis.yml
deleted file mode 100644
index 0fe3760f..00000000
--- a/www/wiki/vendor/psy/psysh/.travis.yml
+++ /dev/null
@@ -1,59 +0,0 @@
-language: php
-
-php:
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - 7.1
- - hhvm
-
-env:
- - COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- - COMPOSER_FLAGS=
-
-matrix:
- allow_failures:
- - php: 5.3
- env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- - php: 5.4
- env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- - php: 5.5
- env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- - php: 5.6
- env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- - php: 7.0
- env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- - php: 7.1
- env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- - php: hhvm
- env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- - php: hhvm
- env: COMPOSER_FLAGS=
-
-before_install:
- - '[[ "$TRAVIS_PHP_VERSION" != hhvm* ]] && (php --ini | grep xdebug) && phpenv config-rm xdebug.ini || true'
-
-install:
- - travis_retry composer update --no-interaction --prefer-source $COMPOSER_FLAGS
-
-script:
- - vendor/bin/phpunit
-# - '[[ "$TRAVIS_PHP_VERSION" != 7.1* ]] || bin/build'
-
-before_deploy:
- - bin/package -v $TRAVIS_TAG
-
-deploy:
- provider: releases
- api_key:
- secure: LL8koDM1xDqzF9t0URHvmMPyWjojyd4PeZ7IW7XYgyvD6n1H6GYrVAeKCh5wfUKFbwHoa9s5AAn6pLzra00bODVkPTmUH+FSMWz9JKLw9ODAn8HvN7C+IooxmeClGHFZc0TfHfya8/D1E9C1iXtGGEoE/GqtaYq/z0C1DLpO0OU=
- file:
- - dist/psysh-${PKG_VERSION}.tar.gz
- - dist/psysh-${PKG_VERSION}-compat.tar.gz
- skip_cleanup: true
- on:
- tags: true
- repo: bobthecow/psysh
- condition: ($TRAVIS_PHP_VERSION = 5.3* || $TRAVIS_PHP_VERSION = 7.1*) && -z "$COMPOSER_FLAGS"
diff --git a/www/wiki/vendor/psy/psysh/CONTRIBUTING.md b/www/wiki/vendor/psy/psysh/CONTRIBUTING.md
deleted file mode 100644
index a86e6e9c..00000000
--- a/www/wiki/vendor/psy/psysh/CONTRIBUTING.md
+++ /dev/null
@@ -1,18 +0,0 @@
-## Code style
-
-Please make your code look like the other code in the project. PsySH follows [PSR-1](http://php-fig.org/psr/psr-1/) and [PSR-2](http://php-fig.org/psr/psr-2/). The easiest way to do make sure you're following the coding standard is to run `vendor/bin/php-cs-fixer fix` before committing.
-
-## Branching model
-
-Please branch off and send pull requests to the `develop` branch.
-
-## Building the manual
-
-```sh
-svn co https://svn.php.net/repository/phpdoc/en/trunk/reference/ php_manual
-bin/build_manual phpdoc_manual ~/.local/share/psysh/php_manual.sqlite
-```
-
-To build the manual for another language, switch out `en` above for `de`, `es`, or any of the other languages listed in the README.
-
-[Partial or outdated documentation is available for other languages](http://www.php.net/manual/help-translate.php) but these translations are outdated, so their content may be completely wrong or insecure!
diff --git a/www/wiki/vendor/psy/psysh/LICENSE b/www/wiki/vendor/psy/psysh/LICENSE
deleted file mode 100644
index fdd27fb7..00000000
--- a/www/wiki/vendor/psy/psysh/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2012-2017 Justin Hileman
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
-OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/www/wiki/vendor/psy/psysh/README.md b/www/wiki/vendor/psy/psysh/README.md
deleted file mode 100644
index 4d8c88c5..00000000
--- a/www/wiki/vendor/psy/psysh/README.md
+++ /dev/null
@@ -1,200 +0,0 @@
-# PsySH
-
-[![Package version](https://img.shields.io/packagist/v/psy/psysh.svg?style=flat-square)](https://packagist.org/packages/psy/psysh)
-[![Monthly downloads](http://img.shields.io/packagist/dm/psy/psysh.svg?style=flat-square)](https://packagist.org/packages/psy/psysh)
-[![Made out of awesome](https://img.shields.io/badge/made_out_of_awesome-✓-brightgreen.svg?style=flat-square)](http://psysh.org)
-
-[![Build status](https://img.shields.io/travis/bobthecow/psysh/master.svg?style=flat-square)](http://travis-ci.org/bobthecow/psysh)
-[![StyleCI](https://styleci.io/repos/4549925/shield)](https://styleci.io/repos/4549925)
-
-
-## About
-
-PsySH is a runtime developer console, interactive debugger and [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) for PHP. Learn more at [psysh.org](http://psysh.org/). Check out the [Interactive Debugging in PHP talk from OSCON](https://presentate.com/bobthecow/talks/php-for-pirates) on Presentate.
-
-
-## Installation
-
-Download the `psysh` phar to install:
-
-```
-wget https://git.io/psysh
-chmod +x psysh
-./psysh
-```
-
-It's even awesomer if you put it somewhere in your system path (like `/usr/local/bin` or `~/bin`)!
-
-Additional releases—including compatibility releases for PHP 5.3, and for PHP without readline or intl—[are available on GitHub](https://github.com/bobthecow/psysh/releases).
-
-PsySH [is available via Composer](https://packagist.org/packages/psy/psysh), so you can use it in your project as well:
-
-```
-composer require psy/psysh:@stable
-./vendor/bin/psysh
-```
-
-Or you can use by checking out the the repository directly:
-
-```
-git clone https://github.com/bobthecow/psysh.git
-cd psysh
-./bin/psysh
-```
-
-
-## PsySH configuration
-
-While PsySH strives to detect the right settings automatically, you might want to configure it yourself. Just add a file to `~/.config/psysh/config.php` (or `C:\Users\{USER}\AppData\Roaming\PsySH\config.php` on Windows):
-
-```php
-<?php
-
-return array(
- // In PHP 5.4+, PsySH will default to your `cli.pager` ini setting. If this
- // is not set, it falls back to `less`. It is recommended that you set up
- // `cli.pager` in your `php.ini` with your preferred output pager.
- //
- // If you are running PHP 5.3, or if you want to use a different pager only
- // for Psy shell sessions, you can override it here.
- 'pager' => 'more',
-
- // Sets the maximum number of entries the history can contain.
- // If set to zero, the history size is unlimited.
- 'historySize' => 0,
-
- // If set to true, the history will not keep duplicate entries.
- // Newest entries override oldest.
- // This is the equivalent of the HISTCONTROL=erasedups setting in bash.
- 'eraseDuplicates' => false,
-
- // By default, PsySH will use a 'forking' execution loop if pcntl is
- // installed. This is by far the best way to use it, but you can override
- // the default by explicitly enabling or disabling this functionality here.
- 'usePcntl' => false,
-
- // PsySH uses readline if you have it installed, because interactive input
- // is pretty awful without it. But you can explicitly disable it if you hate
- // yourself or something.
- 'useReadline' => false,
-
- // PsySH automatically inserts semicolons at the end of input if a statement
- // is missing one. To disable this, set `requireSemicolons` to true.
- 'requireSemicolons' => true,
-
- // PsySH uses a couple of UTF-8 characters in its own output. These can be
- // disabled, mostly to work around code page issues. Because Windows.
- //
- // Note that this does not disable Unicode output in general, it just makes
- // it so PsySH won't output any itself.
- 'useUnicode' => false,
-
- // While PsySH respects the current `error_reporting` level, and doesn't throw
- // exceptions for all errors, it does log all errors regardless of level. Set
- // `errorLoggingLevel` to 0 to prevent logging non-thrown errors. Set it to any
- // valid `error_reporting` value to log only errors which match that level.
- 'errorLoggingLevel' => E_ALL & ~E_NOTICE,
-
- // "Default includes" will be included once at the beginning of every PsySH
- // session. This is a good place to add autoloaders for your favorite
- // libraries.
- 'defaultIncludes' => array(
- __DIR__ . '/include/bootstrap.php',
- ),
-
- // While PsySH ships with a bunch of great commands, it's possible to add
- // your own for even more awesome. Any Psy command added here will be
- // available in your Psy shell sessions.
- 'commands' => array(
- // The `parse` command is a command used in the development of PsySH.
- // Given a string of PHP code, it pretty-prints the
- // [PHP Parser](https://github.com/nikic/PHP-Parser) parse tree. It
- // prolly won't be super useful for most of you, but it's there if you
- // want to play :)
- new \Psy\Command\ParseCommand,
- ),
-
- // PsySH uses symfony/var-dumper's casters for presenting scalars, resources,
- // arrays and objects. You can enable additional casters, or write your own!
- // See http://symfony.com/doc/current/components/var_dumper/advanced.html#casters
- 'casters' => array(
- 'MyFooClass' => 'MyFooClassCaster::castMyFooObject',
- ),
-
- // You can disable tab completion if you want to. Not sure why you'd want to.
- 'tabCompletion' => false,
-
- // You can write your own tab completion matchers, too! Here are some that enable
- // tab completion for MongoDB database and collection names:
- 'tabCompletionMatchers' => array(
- new \Psy\TabCompletion\Matcher\MongoClientMatcher,
- new \Psy\TabCompletion\Matcher\MongoDatabaseMatcher,
- ),
-
- // If multiple versions of the same configuration or data file exist, PsySH will
- // use the file with highest precedence, and will silently ignore all others. With
- // this enabled, a warning will be emitted (but not an exception thrown) if multiple
- // configuration or data files are found.
- //
- // This will default to true in a future release, but is false for now.
- 'warnOnMultipleConfigs' => true,
-
- // By default, output contains colors if support for them is detected. To override:
- 'colorMode' => \Psy\Configuration::COLOR_MODE_FORCED, // force colors in output
- 'colorMode' => \Psy\Configuration::COLOR_MODE_DISABLED, // disable colors in output
-
- // Frequency of update checks when starting an interactive shell session. Valid
- // options are 'always', 'daily', 'weekly', and 'monthly'. Default is 'weekly'.
- //
- // To disable update checks entirely, set to 'never'.
- 'updateCheck' => 'daily',
-
- // Display an additional startup message. Default is ''.
- // You can color and style the message thanks to the Symfony Console tags.
- // See https://symfony.com/doc/current/console/coloring.html for more details.
- 'startupMessage' => sprintf('<info>%s</info>', shell_exec('uptime')),
-);
-```
-
-
-## Downloading the manual
-
-The PsySH `doc` command is great for documenting source code, but you'll need a little something extra for PHP core documentation. Download one of the following PHP Manual files and drop it in `~/.local/share/psysh/`, `/usr/local/share/psysh/` or `C:\Users\{USER}\AppData\Roaming\PsySH\` on Windows:
-
- * **[English](http://psysh.org/manual/en/php_manual.sqlite)**
- * [Brazilian Portuguese](http://psysh.org/manual/pt_BR/php_manual.sqlite)
- * [Chinese (Simplified)](http://psysh.org/manual/zh/php_manual.sqlite)
- * [French](http://psysh.org/manual/fr/php_manual.sqlite)
- * [German](http://psysh.org/manual/de/php_manual.sqlite)
- * [Italian](http://psysh.org/manual/it/php_manual.sqlite)
- * [Japanese](http://psysh.org/manual/ja/php_manual.sqlite)
- * [Polish](http://psysh.org/manual/pl/php_manual.sqlite)
- * [Romanian](http://psysh.org/manual/ro/php_manual.sqlite)
- * [Russian](http://psysh.org/manual/ru/php_manual.sqlite)
- * [Persian](http://psysh.org/manual/fa/php_manual.sqlite)
- * [Spanish](http://psysh.org/manual/es/php_manual.sqlite)
- * [Turkish](http://psysh.org/manual/tr/php_manual.sqlite)
-
-
-
-## As Seen On…
-
- * CakePHP: [`cake console`](http://book.cakephp.org/3.0/en/console-and-shells/repl.html)
- * CiviCRM: [`cv cli`](https://github.com/civicrm/cv)
- * CodeIgniter: [`craftsman console`](https://ci-craftsman.github.io/documentation/)
- * Drupal: [`drush php`](http://drushcommands.com/drush-8x/core/core-cli/), [drush-psysh](https://github.com/grota/drush-psysh)
- * eZ Publish: [`ezsh`](https://github.com/lolautruche/ezsh)
- * Grav: [`bin/plugin psysh shell`](https://github.com/akeif/grav-plugin-psysh)
- * Jupyter: [Jupyter-PHP](https://github.com/Litipk/Jupyter-PHP)
- * Laravel: [`artisan tinker`](https://github.com/laravel/tinker)
- * Lumen: [`artisan tinker`](https://github.com/vluzrmos/lumen-tinker)
- * Magento: [`magerun console`](https://github.com/netz98/n98-magerun/blob/develop/src/N98/Magento/Command/Developer/ConsoleCommand.php)
- * MediaWiki: [`php maintenance/shell.php`](https://github.com/wikimedia/mediawiki/blob/master/maintenance/shell.php)
- * Pantheon CLI: [`terminus cli console`](https://github.com/pantheon-systems/terminus)
- * SilverStripe: [`sliver`](https://github.com/littlegiant/sliver)
- * Symfony: [sf1-psysh-bootstrap](https://github.com/varas/sf1-psysh-bootstrap)
- * Symfony2: [`psymf`](https://github.com/navitronic/psymf), [sf2-psysh-bootstrap](https://github.com/varas/sf2-psysh-bootstrap), [symfony-repl](https://github.com/luxifer/symfony-repl), [PsyshBundle](https://github.com/theofidry/PsyshBundle)
- * WordPress: [`wp-cli shell`](https://github.com/wp-cli/wp-cli/blob/master/php/commands/shell.php)
- * Yii 2: [`yii shell`](https://github.com/yiisoft/yii2-shell)
- * Zend Framework 1: [`zf1-psysh`](https://github.com/giorgiolucca/zf1-psysh)
- * Zend Framework 2: [PsyshModule](https://zfmodules.com/gianarb/zf2-psysh-module)
diff --git a/www/wiki/vendor/psy/psysh/bin/build b/www/wiki/vendor/psy/psysh/bin/build
deleted file mode 100755
index 3a3c34f9..00000000
--- a/www/wiki/vendor/psy/psysh/bin/build
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env bash
-
-set -ev
-
-cd "${BASH_SOURCE%/*}/.."
-
-echo "Building phar"
-./bin/build-vendor
-./bin/build-phar
-
-echo "Building compat phar"
-./bin/build-vendor-compat
-./bin/build-phar --compat
diff --git a/www/wiki/vendor/psy/psysh/bin/build-manual b/www/wiki/vendor/psy/psysh/bin/build-manual
deleted file mode 100755
index 20fbfa4c..00000000
--- a/www/wiki/vendor/psy/psysh/bin/build-manual
+++ /dev/null
@@ -1,285 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-define('WRAP_WIDTH', 100);
-
-$count = 0;
-
-if (count($argv) !== 3 || !is_dir($argv[1])) {
- echo "usage: build_manual path/to/manual output_filename.db\n";
- exit(1);
-}
-
-function htmlwrap($text, $width = null)
-{
- if ($width === null) {
- $width = WRAP_WIDTH;
- }
-
- $len = strlen($text);
-
- $return = array();
- $lastSpace = null;
- $inTag = false;
- $i = $tagWidth = 0;
- do {
- switch (substr($text, $i, 1)) {
- case "\n":
- $return[] = trim(substr($text, 0, $i));
- $text = substr($text, $i);
- $len = strlen($text);
-
- $i = $lastSpace = 0;
- continue;
-
- case ' ':
- if (!$inTag) {
- $lastSpace = $i;
- }
- break;
-
- case '<':
- $inTag = true;
- break;
-
- case '>':
- $inTag = false;
-
- default:
- }
-
- if ($inTag) {
- $tagWidth++;
- }
-
- $i++;
-
- if (!$inTag && ($i - $tagWidth > $width)) {
- $lastSpace = $lastSpace ?: $width;
-
- $return[] = trim(substr($text, 0, $lastSpace));
- $text = substr($text, $lastSpace);
- $len = strlen($text);
-
- $i = $tagWidth = 0;
- }
- } while ($i < $len);
-
- $return[] = trim($text);
-
- return implode("\n", $return);
-}
-
-function extract_paragraphs($element)
-{
- $paragraphs = array();
- foreach ($element->getElementsByTagName('para') as $p) {
- $text = '';
- foreach ($p->childNodes as $child) {
- // @todo figure out if there's something we can do with tables.
- if ($child instanceof DOMElement && $child->tagName === 'table') {
- continue;
- }
-
- // skip references, because ugh.
- if (preg_match('{^\s*&[a-z][a-z\.]+;\s*$}', $child->textContent)) {
- continue;
- }
-
- $text .= $child->ownerDocument->saveXML($child);
- }
-
- if ($text = trim(preg_replace('{\n[ \t]+}', ' ', $text))) {
- $paragraphs[] = $text;
- }
- }
-
- return implode("\n\n", $paragraphs);
-}
-
-function format_doc($doc)
-{
- $chunks = array();
-
- if (!empty($doc['description'])) {
- $chunks[] = '<comment>Description:</comment>';
- $chunks[] = indent_text(htmlwrap(thunk_tags($doc['description']), WRAP_WIDTH - 2));
- $chunks[] = '';
- }
-
- if (!empty($doc['params'])) {
- $chunks[] = '<comment>Param:</comment>';
-
- $typeMax = max(array_map(function ($param) {
- return strlen($param['type']);
- }, $doc['params']));
-
- $max = max(array_map(function ($param) {
- return strlen($param['name']);
- }, $doc['params']));
-
- $template = ' <info>%-' . $typeMax . 's</info> <strong>%-' . $max . 's</strong> %s';
- $indent = str_repeat(' ', $typeMax + $max + 6);
- $wrapWidth = WRAP_WIDTH - strlen($indent);
-
- foreach ($doc['params'] as $param) {
- $desc = indent_text(htmlwrap(thunk_tags($param['description']), $wrapWidth), $indent, false);
- $chunks[] = sprintf($template, $param['type'], $param['name'], $desc);
- }
- $chunks[] = '';
- }
-
- if (isset($doc['return']) || isset($doc['return_type'])) {
- $chunks[] = '<comment>Return:</comment>';
-
- $type = isset($doc['return_type']) ? $doc['return_type'] : 'unknown';
- $desc = isset($doc['return']) ? $doc['return'] : '';
-
- $indent = str_repeat(' ', strlen($type) + 4);
- $wrapWidth = WRAP_WIDTH - strlen($indent);
-
- if (!empty($desc)) {
- $desc = indent_text(htmlwrap(thunk_tags($doc['return']), $wrapWidth), $indent, false);
- }
-
- $chunks[] = sprintf(' <info>%s</info> %s', $type, $desc);
- $chunks[] = '';
- }
-
- array_pop($chunks); // get rid of the trailing newline
-
- return implode("\n", $chunks);
-}
-
-function thunk_tags($text)
-{
- $tagMap = array(
- 'parameter>' => 'strong>',
- 'function>' => 'strong>',
- 'literal>' => 'return>',
- 'type>' => 'info>',
- 'constant>' => 'info>',
- );
-
- $andBack = array(
- '&amp;' => '&',
- '&amp;true;' => '<return>true</return>',
- '&amp;false;' => '<return>false</return>',
- '&amp;null;' => '<return>null</return>',
- );
-
- return strtr(strip_tags(strtr($text, $tagMap), '<strong><return><info>'), $andBack);
-}
-
-function indent_text($text, $indent = ' ', $leading = true)
-{
- return ($leading ? $indent : '') . str_replace("\n", "\n" . $indent, $text);
-}
-
-function find_type($xml, $paramName)
-{
- foreach ($xml->getElementsByTagName('methodparam') as $param) {
- if ($type = $param->getElementsByTagName('type')->item(0)) {
- if ($parameter = $param->getElementsByTagName('parameter')->item(0)) {
- if ($paramName === $parameter->textContent) {
- return $type->textContent;
- }
- }
- }
- }
-}
-
-$docs = array();
-foreach (glob($argv[1] . '/*/*/*.xml') as $function) {
- $funcname = basename($function);
- if ($funcname === 'main.xml' || strpos($funcname, 'entities.') === 0) {
- continue;
- }
-
- $xmlstr = str_replace('&', '&amp;', file_get_contents($function));
-
- $xml = new DOMDocument();
- $xml->preserveWhiteSpace = false;
-
- if (!@$xml->loadXml($xmlstr)) {
- echo "XML Parse Error: $function\n";
- continue;
- }
-
- $doc = array();
- $refsect1s = $xml->getElementsByTagName('refsect1');
- foreach ($refsect1s as $refsect1) {
- $role = $refsect1->getAttribute('role');
- switch ($role) {
- case 'description':
- $doc['description'] = extract_paragraphs($refsect1);
-
- if ($synopsis = $refsect1->getElementsByTagName('methodsynopsis')->item(0)) {
- foreach ($synopsis->childNodes as $node) {
- if ($node instanceof DOMElement && $node->tagName === 'type') {
- $doc['return_type'] = $node->textContent;
- break;
- }
- }
- }
- break;
-
- case 'returnvalues':
- // do nothing.
- $doc['return'] = extract_paragraphs($refsect1);
- break;
-
- case 'parameters':
- $params = array();
- $vars = $refsect1->getElementsByTagName('varlistentry');
- foreach ($vars as $var) {
- if ($name = $var->getElementsByTagName('parameter')->item(0)) {
- $params[] = array(
- 'name' => '$' . $name->textContent,
- 'type' => find_type($xml, $name->textContent),
- 'description' => extract_paragraphs($var),
- );
- }
- }
-
- $doc['params'] = $params;
- break;
- }
- }
-
- // and the purpose
- if ($purpose = $xml->getElementsByTagName('refpurpose')->item(0)) {
- $desc = htmlwrap($purpose->textContent);
- if (isset($doc['description'])) {
- $desc .= "\n\n" . $doc['description'];
- }
-
- $doc['description'] = trim($desc);
- }
-
- $formatted = format_doc($doc);
- foreach ($xml->getElementsByTagName('refname') as $ref) {
- $docs[$ref->textContent] = $formatted;
- }
-}
-
-if (is_file($argv[2])) {
- unlink($argv[2]);
-}
-
-$db = new PDO('sqlite:' . $argv[2]);
-
-$db->query('CREATE TABLE php_manual (id char(256) PRIMARY KEY, doc TEXT)');
-$cmd = $db->prepare('INSERT INTO php_manual (id, doc) VALUES (?, ?)');
-foreach ($docs as $id => $doc) {
- $cmd->execute(array($id, $doc));
-}
diff --git a/www/wiki/vendor/psy/psysh/bin/build-phar b/www/wiki/vendor/psy/psysh/bin/build-phar
deleted file mode 100755
index e5151eea..00000000
--- a/www/wiki/vendor/psy/psysh/bin/build-phar
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env php -d phar.readonly=Off
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-if (!is_file(dirname(__DIR__) . '/vendor/autoload.php')) {
- throw new RuntimeException('Missing PsySH dev dependencies in ' . dirname(__DIR__) . '/vendor/' . ', install with `composer.phar install --dev`.');
-}
-
-require dirname(__DIR__) . '/vendor/autoload.php';
-
-if (!class_exists('Symfony\Component\Finder\Finder')) {
- throw new RuntimeException('Missing PsySH dev dependencies, install with `composer.phar install --dev`.');
-}
-
-if (!is_file(dirname(__DIR__) . '/build-vendor/autoload.php')) {
- throw new RuntimeException('Missing phar vendor dependencies, install with bin/build-vendor');
-}
-
-use Psy\Compiler;
-
-error_reporting(-1);
-ini_set('display_errors', 1);
-
-$compiler = new Compiler();
-
-if (isset($_SERVER['argv']) && isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] === '--compat') {
- $compiler->compile('psysh-compat.phar');
-} else {
- $compiler->compile();
-}
diff --git a/www/wiki/vendor/psy/psysh/bin/build-vendor b/www/wiki/vendor/psy/psysh/bin/build-vendor
deleted file mode 100755
index c4a65301..00000000
--- a/www/wiki/vendor/psy/psysh/bin/build-vendor
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env bash
-
-set -ev
-
-cd "${BASH_SOURCE%/*}/.."
-
-rm -rf build-vendor
-
-COMPOSER_VENDOR_DIR=build-vendor composer update --prefer-stable --no-dev --no-progress --classmap-authoritative --no-interaction --verbose
diff --git a/www/wiki/vendor/psy/psysh/bin/build-vendor-compat b/www/wiki/vendor/psy/psysh/bin/build-vendor-compat
deleted file mode 100755
index ff02ada8..00000000
--- a/www/wiki/vendor/psy/psysh/bin/build-vendor-compat
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env bash
-
-set -ev
-
-cd "${BASH_SOURCE%/*}/.."
-
-rm -rf build-vendor
-rm composer*.lock
-
-cp composer.json composer-compat.json
-
-if [[ $(php --version) = PHP\ 5.3* ]]; then
- HOA_VERSION=^1.14
-fi
-
-COMPOSER=composer-compat.json COMPOSER_VENDOR_DIR=build-vendor \
- composer require symfony/intl hoa/console $HOA_VERSION --no-progress --no-update --no-interaction --verbose
-
-COMPOSER=composer-compat.json COMPOSER_VENDOR_DIR=build-vendor \
- composer update --prefer-stable --no-dev --no-progress --classmap-authoritative --no-interaction --verbose
-
diff --git a/www/wiki/vendor/psy/psysh/bin/package b/www/wiki/vendor/psy/psysh/bin/package
deleted file mode 100755
index f815c010..00000000
--- a/www/wiki/vendor/psy/psysh/bin/package
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env bash
-
-set -ev
-
-cd "${BASH_SOURCE%/*}/.."
-
-USAGE="usage: bin/package [-v PACKAGE_VERSION]"
-
-while getopts ":v:h" opt; do
- case $opt in
- v)
- PKG_VERSION=$OPTARG
- ;;
- h)
- echo $USAGE >&2
- exit
- ;;
- \?)
- echo "Invalid option: -$OPTARG" >&2
- echo $USAGE >&2
- exit 1
- ;;
- :)
- echo "Option -$OPTARG requires an argument" >&2
- echo $USAGE >&2
- exit 1
- ;;
- esac
-done
-
-./bin/build || exit 1
-chmod +x *.phar
-
-echo "Creating tarballs"
-
-mkdir -p dist || exit 1
-
-if [ -z "$PKG_VERSION" ]; then
- PKG_VERSION=$(git describe --tag --exact-match)
- if [[ $(php --version) = PHP\ 5.3* ]]; then
- PKG_VERSION=${PKG_VERSION}-php53
- fi
-fi
-
-# Support BSD tar because OS X :(
-TAR_FLAGS='--transform="flags=r;s/.*/psysh/"'
-if [[ $(tar --version) = bsdtar* ]]; then
- TAR_FLAGS='-s /.*/psysh/'
-fi
-
-tar $TAR_FLAGS -czf dist/psysh-${PKG_VERSION}.tar.gz psysh.phar
-tar $TAR_FLAGS -czf dist/psysh-${PKG_VERSION}-compat.tar.gz psysh-compat.phar
diff --git a/www/wiki/vendor/psy/psysh/bin/psysh b/www/wiki/vendor/psy/psysh/bin/psysh
deleted file mode 100755
index e1d6350c..00000000
--- a/www/wiki/vendor/psy/psysh/bin/psysh
+++ /dev/null
@@ -1,135 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-// Try to find an autoloader for a local psysh version.
-// We'll wrap this whole mess in a Closure so it doesn't leak any globals.
-call_user_func(function () {
- $cwd = null;
-
- // Find the cwd arg (if present)
- $argv = isset($_SERVER['argv']) ? $_SERVER['argv'] : array();
- foreach ($argv as $i => $arg) {
- if ($arg === '--cwd') {
- if ($i >= count($argv) - 1) {
- echo 'Missing --cwd argument.' . PHP_EOL;
- exit(1);
- }
- $cwd = $argv[$i + 1];
- break;
- }
-
- if (preg_match('/^--cwd=/', $arg)) {
- $cwd = substr($arg, 6);
- break;
- }
- }
-
- // Or fall back to the actual cwd
- if (!isset($cwd)) {
- $cwd = getcwd();
- }
-
- $cwd = str_replace('\\', '/', $cwd);
-
- $chunks = explode('/', $cwd);
- while (!empty($chunks)) {
- $path = implode('/', $chunks);
-
- // Find composer.json
- if (is_file($path . '/composer.json')) {
- if ($cfg = json_decode(file_get_contents($path . '/composer.json'), true)) {
- if (isset($cfg['name']) && $cfg['name'] === 'psy/psysh') {
- // We're inside the psysh project. Let's use the local
- // Composer autoload.
- if (is_file($path . '/vendor/autoload.php')) {
- require $path . '/vendor/autoload.php';
- }
-
- return;
- }
- }
- }
-
- // Or a composer.lock
- if (is_file($path . '/composer.lock')) {
- if ($cfg = json_decode(file_get_contents($path . '/composer.lock'), true)) {
- foreach (array_merge($cfg['packages'], $cfg['packages-dev']) as $pkg) {
- if (isset($pkg['name']) && $pkg['name'] === 'psy/psysh') {
- // We're inside a project which requires psysh. We'll
- // use the local Composer autoload.
- if (is_file($path . '/vendor/autoload.php')) {
- require $path . '/vendor/autoload.php';
- }
-
- return;
- }
- }
- }
- }
-
- array_pop($chunks);
- }
-});
-
-// We didn't find an autoloader for a local version, so use the autoloader that
-// came with this script.
-if (!class_exists('Psy\Shell')) {
-/* <<< */
- if (is_file(__DIR__ . '/../vendor/autoload.php')) {
- require __DIR__ . '/../vendor/autoload.php';
- } elseif (is_file(__DIR__ . '/../../../autoload.php')) {
- require __DIR__ . '/../../../autoload.php';
- } else {
- echo 'PsySH dependencies not found, be sure to run `composer install`.' . PHP_EOL;
- echo 'See https://getcomposer.org to get Composer.' . PHP_EOL;
- exit(1);
- }
-/* >>> */
-}
-
-// If the psysh binary was included directly, assume they just wanted an
-// autoloader and bail early.
-if (version_compare(PHP_VERSION, '5.3.6', '<')) {
- $trace = debug_backtrace();
-} elseif (version_compare(PHP_VERSION, '5.4.0', '<')) {
- $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
-} else {
- $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
-}
-
-if (Psy\Shell::isIncluded($trace)) {
- unset($trace);
-
- return;
-}
-
-// Clean up after ourselves.
-unset($trace);
-
-// If the local version is too old, we can't do this
-if (!function_exists('Psy\bin')) {
- $argv = $_SERVER['argv'];
- $first = array_shift($argv);
- if (preg_match('/php(\.exe)?$/', $first)) {
- array_shift($argv);
- }
- array_unshift($argv, 'vendor/bin/psysh');
-
- echo 'A local PsySH dependency was found, but it cannot be loaded. Please update to' . PHP_EOL;
- echo 'the latest version, or run the local copy directly, e.g.:' . PHP_EOL;
- echo PHP_EOL;
- echo ' ' . implode(' ', $argv) . PHP_EOL;
- exit(1);
-}
-
-// And go!
-call_user_func(Psy\bin());
diff --git a/www/wiki/vendor/psy/psysh/composer.json b/www/wiki/vendor/psy/psysh/composer.json
deleted file mode 100644
index 8b6d4704..00000000
--- a/www/wiki/vendor/psy/psysh/composer.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "name": "psy/psysh",
- "description": "An interactive shell for modern PHP.",
- "type": "library",
- "keywords": ["console", "interactive", "shell", "repl"],
- "homepage": "http://psysh.org",
- "license": "MIT",
- "authors": [
- {
- "name": "Justin Hileman",
- "email": "justin@justinhileman.info",
- "homepage": "http://justinhileman.com"
- }
- ],
- "require": {
- "php": ">=5.3.9",
- "symfony/console": "~2.3.10|^2.4.2|~3.0",
- "symfony/var-dumper": "~2.7|~3.0",
- "nikic/php-parser": "~1.3|~2.0|~3.0",
- "dnoegel/php-xdg-base-dir": "0.1",
- "jakub-onderka/php-console-highlighter": "0.3.*"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4|~5.0",
- "symfony/finder": "~2.1|~3.0",
- "friendsofphp/php-cs-fixer": "~1.11",
- "hoa/console": "~3.16|~1.14"
- },
- "suggest": {
- "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)",
- "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.",
- "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history.",
- "ext-pdo-sqlite": "The doc command requires SQLite to work.",
- "hoa/console": "A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit."
- },
- "autoload": {
- "files": ["src/Psy/functions.php"],
- "psr-4": {
- "Psy\\": "src/Psy/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Psy\\Test\\": "test/Psy/Test/"
- }
- },
- "bin": ["bin/psysh"],
- "extra": {
- "branch-alias": {
- "dev-develop": "0.9.x-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/phpunit.xml.dist b/www/wiki/vendor/psy/psysh/phpunit.xml.dist
deleted file mode 100644
index 78b2b330..00000000
--- a/www/wiki/vendor/psy/psysh/phpunit.xml.dist
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit backupGlobals="false" colors="true" bootstrap="vendor/autoload.php">
- <testsuite name="PsySH">
- <directory suffix="Test.php">./test</directory>
- </testsuite>
-
- <filter>
- <whitelist>
- <directory suffix=".php">./src/Psy</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Autoloader.php b/www/wiki/vendor/psy/psysh/src/Psy/Autoloader.php
deleted file mode 100644
index df2e45b4..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Autoloader.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-/**
- * Psy class autoloader.
- */
-class Autoloader
-{
- /**
- * Register autoload() as an SPL autoloader.
- *
- * @see self::autoload
- */
- public static function register()
- {
- spl_autoload_register(array(__CLASS__, 'autoload'));
- }
-
- /**
- * Autoload Psy classes.
- *
- * @param string $class
- */
- public static function autoload($class)
- {
- if (0 !== strpos($class, 'Psy')) {
- return;
- }
-
- $file = dirname(__DIR__) . '/' . strtr($class, '\\', '/') . '.php';
- if (is_file($file)) {
- require $file;
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner.php
deleted file mode 100644
index ac6fd87c..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner.php
+++ /dev/null
@@ -1,232 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-use PhpParser\NodeTraverser;
-use PhpParser\Parser;
-use PhpParser\PrettyPrinter\Standard as Printer;
-use Psy\CodeCleaner\AbstractClassPass;
-use Psy\CodeCleaner\AssignThisVariablePass;
-use Psy\CodeCleaner\CalledClassPass;
-use Psy\CodeCleaner\CallTimePassByReferencePass;
-use Psy\CodeCleaner\ExitPass;
-use Psy\CodeCleaner\FinalClassPass;
-use Psy\CodeCleaner\FunctionReturnInWriteContextPass;
-use Psy\CodeCleaner\ImplicitReturnPass;
-use Psy\CodeCleaner\InstanceOfPass;
-use Psy\CodeCleaner\LeavePsyshAlonePass;
-use Psy\CodeCleaner\LegacyEmptyPass;
-use Psy\CodeCleaner\LoopContextPass;
-use Psy\CodeCleaner\MagicConstantsPass;
-use Psy\CodeCleaner\NamespacePass;
-use Psy\CodeCleaner\PassableByReferencePass;
-use Psy\CodeCleaner\StaticConstructorPass;
-use Psy\CodeCleaner\StrictTypesPass;
-use Psy\CodeCleaner\UseStatementPass;
-use Psy\CodeCleaner\ValidClassNamePass;
-use Psy\CodeCleaner\ValidConstantPass;
-use Psy\CodeCleaner\ValidFunctionNamePass;
-use Psy\Exception\ParseErrorException;
-
-/**
- * A service to clean up user input, detect parse errors before they happen,
- * and generally work around issues with the PHP code evaluation experience.
- */
-class CodeCleaner
-{
- private $parser;
- private $printer;
- private $traverser;
- private $namespace;
-
- /**
- * CodeCleaner constructor.
- *
- * @param Parser $parser A PhpParser Parser instance. One will be created if not explicitly supplied
- * @param Printer $printer A PhpParser Printer instance. One will be created if not explicitly supplied
- * @param NodeTraverser $traverser A PhpParser NodeTraverser instance. One will be created if not explicitly supplied
- */
- public function __construct(Parser $parser = null, Printer $printer = null, NodeTraverser $traverser = null)
- {
- if ($parser === null) {
- $parserFactory = new ParserFactory();
- $parser = $parserFactory->createParser();
- }
-
- $this->parser = $parser;
- $this->printer = $printer ?: new Printer();
- $this->traverser = $traverser ?: new NodeTraverser();
-
- foreach ($this->getDefaultPasses() as $pass) {
- $this->traverser->addVisitor($pass);
- }
- }
-
- /**
- * Get default CodeCleaner passes.
- *
- * @return array
- */
- private function getDefaultPasses()
- {
- return array(
- new AbstractClassPass(),
- new AssignThisVariablePass(),
- new FunctionReturnInWriteContextPass(),
- new CallTimePassByReferencePass(),
- new PassableByReferencePass(),
- new CalledClassPass(),
- new FinalClassPass(),
- new InstanceOfPass(),
- new LeavePsyshAlonePass(),
- new LegacyEmptyPass(),
- new LoopContextPass(),
- new ImplicitReturnPass(),
- new UseStatementPass(), // must run before namespace and validation passes
- new NamespacePass($this), // must run after the implicit return pass
- new StrictTypesPass(),
- new StaticConstructorPass(),
- new ValidFunctionNamePass(),
- new ValidClassNamePass(),
- new ValidConstantPass(),
- new MagicConstantsPass(),
- new ExitPass(),
- );
- }
-
- /**
- * Clean the given array of code.
- *
- * @throws ParseErrorException if the code is invalid PHP, and cannot be coerced into valid PHP
- *
- * @param array $codeLines
- * @param bool $requireSemicolons
- *
- * @return string|false Cleaned PHP code, False if the input is incomplete
- */
- public function clean(array $codeLines, $requireSemicolons = false)
- {
- $stmts = $this->parse('<?php ' . implode(PHP_EOL, $codeLines) . PHP_EOL, $requireSemicolons);
- if ($stmts === false) {
- return false;
- }
-
- // Catch fatal errors before they happen
- $stmts = $this->traverser->traverse($stmts);
-
- return $this->printer->prettyPrint($stmts);
- }
-
- /**
- * Set the current local namespace.
- *
- * @param null|array $namespace (default: null)
- *
- * @return null|array
- */
- public function setNamespace(array $namespace = null)
- {
- $this->namespace = $namespace;
- }
-
- /**
- * Get the current local namespace.
- *
- * @return null|array
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Lex and parse a block of code.
- *
- * @see Parser::parse
- *
- * @throws ParseErrorException for parse errors that can't be resolved by
- * waiting a line to see what comes next
- *
- * @param string $code
- * @param bool $requireSemicolons
- *
- * @return array|false A set of statements, or false if incomplete
- */
- protected function parse($code, $requireSemicolons = false)
- {
- try {
- return $this->parser->parse($code);
- } catch (\PhpParser\Error $e) {
- if ($this->parseErrorIsUnclosedString($e, $code)) {
- return false;
- }
-
- if ($this->parseErrorIsUnterminatedComment($e, $code)) {
- return false;
- }
-
- if (!$this->parseErrorIsEOF($e)) {
- throw ParseErrorException::fromParseError($e);
- }
-
- if ($requireSemicolons) {
- return false;
- }
-
- try {
- // Unexpected EOF, try again with an implicit semicolon
- return $this->parser->parse($code . ';');
- } catch (\PhpParser\Error $e) {
- return false;
- }
- }
- }
-
- private function parseErrorIsEOF(\PhpParser\Error $e)
- {
- $msg = $e->getRawMessage();
-
- return ($msg === 'Unexpected token EOF') || (strpos($msg, 'Syntax error, unexpected EOF') !== false);
- }
-
- /**
- * A special test for unclosed single-quoted strings.
- *
- * Unlike (all?) other unclosed statements, single quoted strings have
- * their own special beautiful snowflake syntax error just for
- * themselves.
- *
- * @param \PhpParser\Error $e
- * @param string $code
- *
- * @return bool
- */
- private function parseErrorIsUnclosedString(\PhpParser\Error $e, $code)
- {
- if ($e->getRawMessage() !== 'Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE') {
- return false;
- }
-
- try {
- $this->parser->parse($code . "';");
- } catch (\Exception $e) {
- return false;
- }
-
- return true;
- }
-
- private function parseErrorIsUnterminatedComment(\PhpParser\Error $e, $code)
- {
- return $e->getRawMessage() === 'Unterminated comment';
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/AbstractClassPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/AbstractClassPass.php
deleted file mode 100644
index 3d4d50ba..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/AbstractClassPass.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Stmt\Class_;
-use PhpParser\Node\Stmt\ClassMethod;
-use Psy\Exception\FatalErrorException;
-
-/**
- * The abstract class pass handles abstract classes and methods, complaining if there are too few or too many of either.
- */
-class AbstractClassPass extends CodeCleanerPass
-{
- private $class;
- private $abstractMethods;
-
- /**
- * @throws RuntimeException if the node is an abstract function with a body
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof Class_) {
- $this->class = $node;
- $this->abstractMethods = array();
- } elseif ($node instanceof ClassMethod) {
- if ($node->isAbstract()) {
- $name = sprintf('%s::%s', $this->class->name, $node->name);
- $this->abstractMethods[] = $name;
-
- if ($node->stmts !== null) {
- throw new FatalErrorException(sprintf('Abstract function %s cannot contain body', $name));
- }
- }
- }
- }
-
- /**
- * @throws RuntimeException if the node is a non-abstract class with abstract methods
- *
- * @param Node $node
- */
- public function leaveNode(Node $node)
- {
- if ($node instanceof Class_) {
- $count = count($this->abstractMethods);
- if ($count > 0 && !$node->isAbstract()) {
- throw new FatalErrorException(sprintf(
- 'Class %s contains %d abstract method%s must therefore be declared abstract or implement the remaining methods (%s)',
- $node->name,
- $count,
- ($count === 0) ? '' : 's',
- implode(', ', $this->abstractMethods)
- ));
- }
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/AssignThisVariablePass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/AssignThisVariablePass.php
deleted file mode 100644
index b9021fc3..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/AssignThisVariablePass.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr\Assign;
-use PhpParser\Node\Expr\Variable;
-use Psy\Exception\FatalErrorException;
-
-/**
- * Validate that the user input does not assign the `$this` variable.
- *
- * @author Martin Hasoň <martin.hason@gmail.com>
- */
-class AssignThisVariablePass extends CodeCleanerPass
-{
- /**
- * Validate that the user input does not assign the `$this` variable.
- *
- * @throws RuntimeException if the user assign the `$this` variable
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof Assign && $node->var instanceof Variable && $node->var->name === 'this') {
- throw new FatalErrorException('Cannot re-assign $this');
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CallTimePassByReferencePass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CallTimePassByReferencePass.php
deleted file mode 100644
index 758fed10..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CallTimePassByReferencePass.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr\FuncCall;
-use PhpParser\Node\Expr\MethodCall;
-use PhpParser\Node\Expr\StaticCall;
-use Psy\Exception\FatalErrorException;
-
-/**
- * Validate that the user did not use the call-time pass-by-reference that causes a fatal error.
- *
- * As of PHP 5.4.0, call-time pass-by-reference was removed, so using it will raise a fatal error.
- *
- * @author Martin Hasoň <martin.hason@gmail.com>
- */
-class CallTimePassByReferencePass extends CodeCleanerPass
-{
- /**
- * Validate of use call-time pass-by-reference.
- *
- * @throws RuntimeException if the user used call-time pass-by-reference in PHP >= 5.4.0
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if (version_compare(PHP_VERSION, '5.4', '<')) {
- return;
- }
-
- if (!$node instanceof FuncCall && !$node instanceof MethodCall && !$node instanceof StaticCall) {
- return;
- }
-
- foreach ($node->args as $arg) {
- if ($arg->byRef) {
- throw new FatalErrorException('Call-time pass-by-reference has been removed');
- }
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CalledClassPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CalledClassPass.php
deleted file mode 100644
index 4a0f7ea8..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CalledClassPass.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr\ConstFetch;
-use PhpParser\Node\Expr\FuncCall;
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt\Class_;
-use PhpParser\Node\Stmt\Trait_;
-use Psy\Exception\ErrorException;
-
-/**
- * The called class pass throws warnings for get_class() and get_called_class()
- * outside a class context.
- */
-class CalledClassPass extends CodeCleanerPass
-{
- private $inClass;
-
- /**
- * @param array $nodes
- */
- public function beforeTraverse(array $nodes)
- {
- $this->inClass = false;
- }
-
- /**
- * @throws ErrorException if get_class or get_called_class is called without an object from outside a class
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof Class_ || $node instanceof Trait_) {
- $this->inClass = true;
- } elseif ($node instanceof FuncCall && !$this->inClass) {
- // We'll give any args at all (besides null) a pass.
- // Technically we should be checking whether the args are objects, but this will do for now.
- //
- // @todo switch this to actually validate args when we get context-aware code cleaner passes.
- if (!empty($node->args) && !$this->isNull($node->args[0])) {
- return;
- }
-
- // We'll ignore name expressions as well (things like `$foo()`)
- if (!($node->name instanceof Name)) {
- return;
- }
-
- $name = strtolower($node->name);
- if (in_array($name, array('get_class', 'get_called_class'))) {
- $msg = sprintf('%s() called without object from outside a class', $name);
- throw new ErrorException($msg, 0, E_USER_WARNING, null, $node->getLine());
- }
- }
- }
-
- /**
- * @param Node $node
- */
- public function leaveNode(Node $node)
- {
- if ($node instanceof Class_) {
- $this->inClass = false;
- }
- }
-
- private function isNull(Node $node)
- {
- return $node->value instanceof ConstFetch && strtolower($node->value->name) === 'null';
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CodeCleanerPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CodeCleanerPass.php
deleted file mode 100644
index 4c61b8b5..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/CodeCleanerPass.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\NodeVisitorAbstract;
-
-/**
- * A CodeCleaner pass is a PhpParser Node Visitor.
- */
-abstract class CodeCleanerPass extends NodeVisitorAbstract
-{
- // Wheee!
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ExitPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ExitPass.php
deleted file mode 100644
index 8281c03c..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ExitPass.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Arg;
-use PhpParser\Node\Expr\Exit_;
-use PhpParser\Node\Expr\New_;
-use PhpParser\Node\Name\FullyQualified as FullyQualifiedName;
-use PhpParser\Node\Scalar\String_;
-use PhpParser\Node\Stmt\Throw_;
-
-class ExitPass extends CodeCleanerPass
-{
- /**
- * Converts exit calls to BreakExceptions.
- *
- * @param \PhpParser\Node $node
- */
- public function leaveNode(Node $node)
- {
- if ($node instanceof Exit_) {
- $args = array(new Arg(new String_('Goodbye.')));
-
- return new Throw_(new New_(new FullyQualifiedName('Psy\Exception\BreakException'), $args));
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/FinalClassPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/FinalClassPass.php
deleted file mode 100644
index 3f66e2fd..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/FinalClassPass.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Stmt\Class_;
-use Psy\Exception\FatalErrorException;
-
-/**
- * The final class pass handles final classes.
- */
-class FinalClassPass extends CodeCleanerPass
-{
- private $finalClasses;
-
- /**
- * @param array $nodes
- */
- public function beforeTraverse(array $nodes)
- {
- $this->finalClasses = array();
- }
-
- /**
- * @throws RuntimeException if the node is a class that extends a final class
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof Class_) {
- if ($node->extends) {
- $extends = (string) $node->extends;
- if ($this->isFinalClass($extends)) {
- $msg = sprintf('Class %s may not inherit from final class (%s)', $node->name, $extends);
- throw new FatalErrorException($msg);
- }
- }
-
- if ($node->isFinal()) {
- $this->finalClasses[strtolower($node->name)] = true;
- }
- }
- }
-
- /**
- * @param string $name Class name
- *
- * @return bool
- */
- private function isFinalClass($name)
- {
- if (!class_exists($name)) {
- return isset($this->finalClasses[strtolower($name)]);
- }
-
- $refl = new \ReflectionClass($name);
-
- return $refl->isFinal();
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/FunctionReturnInWriteContextPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/FunctionReturnInWriteContextPass.php
deleted file mode 100644
index 57b9fb02..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/FunctionReturnInWriteContextPass.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr\Array_;
-use PhpParser\Node\Expr\Assign;
-use PhpParser\Node\Expr\Empty_;
-use PhpParser\Node\Expr\FuncCall;
-use PhpParser\Node\Expr\Isset_;
-use PhpParser\Node\Expr\MethodCall;
-use PhpParser\Node\Expr\StaticCall;
-use Psy\Exception\FatalErrorException;
-
-/**
- * Validate that the functions are used correctly.
- *
- * @author Martin Hasoň <martin.hason@gmail.com>
- */
-class FunctionReturnInWriteContextPass extends CodeCleanerPass
-{
- const EXCEPTION_MESSAGE = "Can't use function return value in write context";
-
- private $isPhp55;
-
- public function __construct()
- {
- $this->isPhp55 = version_compare(PHP_VERSION, '5.5', '>=');
- }
-
- /**
- * Validate that the functions are used correctly.
- *
- * @throws FatalErrorException if a function is passed as an argument reference
- * @throws FatalErrorException if a function is used as an argument in the isset
- * @throws FatalErrorException if a function is used as an argument in the empty, only for PHP < 5.5
- * @throws FatalErrorException if a value is assigned to a function
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof Array_ || $this->isCallNode($node)) {
- $items = $node instanceof Array_ ? $node->items : $node->args;
- foreach ($items as $item) {
- if ($item->byRef && $this->isCallNode($item->value)) {
- throw new FatalErrorException(self::EXCEPTION_MESSAGE);
- }
- }
- } elseif ($node instanceof Isset_) {
- foreach ($node->vars as $var) {
- if (!$this->isCallNode($var)) {
- continue;
- }
-
- if ($this->isPhp55) {
- throw new FatalErrorException('Cannot use isset() on the result of a function call (you can use "null !== func()" instead)');
- } else {
- throw new FatalErrorException(self::EXCEPTION_MESSAGE);
- }
- }
- } elseif ($node instanceof Empty_ && !$this->isPhp55 && $this->isCallNode($node->expr)) {
- throw new FatalErrorException(self::EXCEPTION_MESSAGE);
- } elseif ($node instanceof Assign && $this->isCallNode($node->var)) {
- throw new FatalErrorException(self::EXCEPTION_MESSAGE);
- }
- }
-
- private function isCallNode(Node $node)
- {
- return $node instanceof FuncCall || $node instanceof MethodCall || $node instanceof StaticCall;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ImplicitReturnPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ImplicitReturnPass.php
deleted file mode 100644
index c738bdc1..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ImplicitReturnPass.php
+++ /dev/null
@@ -1,102 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node\Expr;
-use PhpParser\Node\Expr\Exit_;
-use PhpParser\Node\Expr\New_;
-use PhpParser\Node\Name\FullyQualified as FullyQualifiedName;
-use PhpParser\Node\Stmt;
-use PhpParser\Node\Stmt\Break_;
-use PhpParser\Node\Stmt\If_;
-use PhpParser\Node\Stmt\Namespace_;
-use PhpParser\Node\Stmt\Return_;
-use PhpParser\Node\Stmt\Switch_;
-
-/**
- * Add an implicit "return" to the last statement, provided it can be returned.
- */
-class ImplicitReturnPass extends CodeCleanerPass
-{
- /**
- * @param array $nodes
- *
- * @return array
- */
- public function beforeTraverse(array $nodes)
- {
- return $this->addImplicitReturn($nodes);
- }
-
- /**
- * @param array $nodes
- *
- * @return array
- */
- private function addImplicitReturn(array $nodes)
- {
- // If nodes is empty, it can't have a return value.
- if (empty($nodes)) {
- return array(new Return_(new New_(new FullyQualifiedName('Psy\CodeCleaner\NoReturnValue'))));
- }
-
- $last = end($nodes);
-
- // Special case a few types of statements to add an implicit return
- // value (even though they technically don't have any return value)
- // because showing a return value in these instances is useful and not
- // very surprising.
- if ($last instanceof If_) {
- $last->stmts = $this->addImplicitReturn($last->stmts);
-
- foreach ($last->elseifs as $elseif) {
- $elseif->stmts = $this->addImplicitReturn($elseif->stmts);
- }
-
- if ($last->else) {
- $last->else->stmts = $this->addImplicitReturn($last->else->stmts);
- }
- } elseif ($last instanceof Switch_) {
- foreach ($last->cases as $case) {
- // only add an implicit return to cases which end in break
- $caseLast = end($case->stmts);
- if ($caseLast instanceof Break_) {
- $case->stmts = $this->addImplicitReturn(array_slice($case->stmts, 0, -1));
- $case->stmts[] = $caseLast;
- }
- }
- } elseif ($last instanceof Expr && !($last instanceof Exit_)) {
- $nodes[count($nodes) - 1] = new Return_($last, array(
- 'startLine' => $last->getLine(),
- 'endLine' => $last->getLine(),
- ));
- } elseif ($last instanceof Namespace_) {
- $last->stmts = $this->addImplicitReturn($last->stmts);
- }
-
- // Return a "no return value" for all non-expression statements, so that
- // PsySH can suppress the `null` that `eval()` returns otherwise.
- //
- // Note that statements special cased above (if/elseif/else, switch)
- // _might_ implicitly return a value before this catch-all return is
- // reached.
- //
- // We're not adding a fallback return after namespace statements,
- // because code outside namespace statements doesn't really work, and
- // there's already an implicit return in the namespace statement anyway.
- if ($last instanceof Stmt && !$last instanceof Return_ && !$last instanceof Namespace_) {
- $nodes[] = new Return_(new New_(new FullyQualifiedName('Psy\CodeCleaner\NoReturnValue')));
- }
-
- return $nodes;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/InstanceOfPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/InstanceOfPass.php
deleted file mode 100644
index aa3e5bf1..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/InstanceOfPass.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr\ConstFetch;
-use PhpParser\Node\Expr\Instanceof_;
-use PhpParser\Node\Scalar;
-use PhpParser\Node\Scalar\Encapsed;
-use Psy\Exception\FatalErrorException;
-
-/**
- * Validate that the instanceof statement does not receive a scalar value or a non-class constant.
- *
- * @author Martin Hasoň <martin.hason@gmail.com>
- */
-class InstanceOfPass extends CodeCleanerPass
-{
- /**
- * Validate that the instanceof statement does not receive a scalar value or a non-class constant.
- *
- * @throws FatalErrorException if a scalar or a non-class constant is given
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if (!$node instanceof Instanceof_) {
- return;
- }
-
- if (($node->expr instanceof Scalar && !$node->expr instanceof Encapsed) || $node->expr instanceof ConstFetch) {
- throw new FatalErrorException('instanceof expects an object instance, constant given');
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LeavePsyshAlonePass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LeavePsyshAlonePass.php
deleted file mode 100644
index e6a3bbde..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LeavePsyshAlonePass.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr\Variable;
-use Psy\Exception\RuntimeException;
-
-/**
- * Validate that the user input does not reference the `$__psysh__` variable.
- */
-class LeavePsyshAlonePass extends CodeCleanerPass
-{
- /**
- * Validate that the user input does not reference the `$__psysh__` variable.
- *
- * @throws RuntimeException if the user is messing with $__psysh__
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof Variable && $node->name === '__psysh__') {
- throw new RuntimeException('Don\'t mess with $__psysh__. Bad things will happen.');
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LegacyEmptyPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LegacyEmptyPass.php
deleted file mode 100644
index dc5a01ed..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LegacyEmptyPass.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr\Empty_;
-use PhpParser\Node\Expr\Variable;
-use Psy\Exception\ParseErrorException;
-
-/**
- * Validate that the user did not call the language construct `empty()` on a
- * statement in PHP < 5.5.
- */
-class LegacyEmptyPass extends CodeCleanerPass
-{
- /**
- * Validate use of empty in PHP < 5.5.
- *
- * @throws ParseErrorException if the user used empty with anything but a variable
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if (version_compare(PHP_VERSION, '5.5', '>=')) {
- return;
- }
-
- if (!$node instanceof Empty_) {
- return;
- }
-
- if (!$node->expr instanceof Variable) {
- $msg = sprintf('syntax error, unexpected %s', $this->getUnexpectedThing($node->expr));
-
- throw new ParseErrorException($msg, $node->expr->getLine());
- }
- }
-
- private function getUnexpectedThing(Node $node)
- {
- switch ($node->getType()) {
- case 'Scalar_String':
- case 'Scalar_LNumber':
- case 'Scalar_DNumber':
- return json_encode($node->value);
-
- case 'Expr_ConstFetch':
- return (string) $node->name;
-
- default:
- return $node->getType();
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LoopContextPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LoopContextPass.php
deleted file mode 100644
index 4601f136..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/LoopContextPass.php
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Scalar\DNumber;
-use PhpParser\Node\Scalar\LNumber;
-use PhpParser\Node\Stmt\Break_;
-use PhpParser\Node\Stmt\Continue_;
-use PhpParser\Node\Stmt\Do_;
-use PhpParser\Node\Stmt\For_;
-use PhpParser\Node\Stmt\Foreach_;
-use PhpParser\Node\Stmt\Switch_;
-use PhpParser\Node\Stmt\While_;
-use Psy\Exception\FatalErrorException;
-
-/**
- * The loop context pass handles invalid `break` and `continue` statements.
- */
-class LoopContextPass extends CodeCleanerPass
-{
- private $isPHP54;
- private $loopDepth;
-
- public function __construct()
- {
- $this->isPHP54 = version_compare(PHP_VERSION, '5.4.0', '>=');
- }
-
- /**
- * {@inheritdoc}
- */
- public function beforeTraverse(array $nodes)
- {
- $this->loopDepth = 0;
- }
-
- /**
- * @throws FatalErrorException if the node is a break or continue in a non-loop or switch context
- * @throws FatalErrorException if the node is trying to break out of more nested structures than exist
- * @throws FatalErrorException if the node is a break or continue and has a non-numeric argument
- * @throws FatalErrorException if the node is a break or continue and has an argument less than 1
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- switch (true) {
- case $node instanceof Do_:
- case $node instanceof For_:
- case $node instanceof Foreach_:
- case $node instanceof Switch_:
- case $node instanceof While_:
- $this->loopDepth++;
- break;
-
- case $node instanceof Break_:
- case $node instanceof Continue_:
- $operator = $node instanceof Break_ ? 'break' : 'continue';
-
- if ($this->loopDepth === 0) {
- throw new FatalErrorException(sprintf("'%s' not in the 'loop' or 'switch' context", $operator));
- }
-
- if ($node->num instanceof LNumber || $node->num instanceof DNumber) {
- $num = $node->num->value;
- if ($this->isPHP54 && ($node->num instanceof DNumber || $num < 1)) {
- throw new FatalErrorException(sprintf("'%s' operator accepts only positive numbers", $operator));
- }
-
- if ($num > $this->loopDepth) {
- throw new FatalErrorException(sprintf("Cannot '%s' %d levels", $operator, $num));
- }
- } elseif ($node->num && $this->isPHP54) {
- throw new FatalErrorException(sprintf(
- "'%s' operator with non-constant operand is no longer supported",
- $operator
- ));
- }
- break;
- }
- }
-
- /**
- * @param Node $node
- */
- public function leaveNode(Node $node)
- {
- switch (true) {
- case $node instanceof Do_:
- case $node instanceof For_:
- case $node instanceof Foreach_:
- case $node instanceof Switch_:
- case $node instanceof While_:
- $this->loopDepth--;
- break;
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/MagicConstantsPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/MagicConstantsPass.php
deleted file mode 100644
index 328eb256..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/MagicConstantsPass.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr\FuncCall;
-use PhpParser\Node\Name;
-use PhpParser\Node\Scalar\MagicConst\Dir;
-use PhpParser\Node\Scalar\MagicConst\File;
-use PhpParser\Node\Scalar\String_;
-
-/**
- * Swap out __DIR__ and __FILE__ magic constants with our best guess?
- */
-class MagicConstantsPass extends CodeCleanerPass
-{
- /**
- * Swap out __DIR__ and __FILE__ constants, because the default ones when
- * calling eval() don't make sense.
- *
- * @param Node $node
- *
- * @return null|FuncCall|String_
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof Dir) {
- return new FuncCall(new Name('getcwd'), array(), $node->getAttributes());
- } elseif ($node instanceof File) {
- return new String_('', $node->getAttributes());
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NamespaceAwarePass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NamespaceAwarePass.php
deleted file mode 100644
index 4a76d0f6..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NamespaceAwarePass.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Name;
-use PhpParser\Node\Name\FullyQualified as FullyQualifiedName;
-use PhpParser\Node\Stmt\Namespace_;
-
-/**
- * Abstract namespace-aware code cleaner pass.
- */
-abstract class NamespaceAwarePass extends CodeCleanerPass
-{
- protected $namespace;
- protected $currentScope;
-
- /**
- * @todo should this be final? Extending classes should be sure to either
- * use afterTraverse or call parent::beforeTraverse() when overloading.
- *
- * Reset the namespace and the current scope before beginning analysis
- */
- public function beforeTraverse(array $nodes)
- {
- $this->namespace = array();
- $this->currentScope = array();
- }
-
- /**
- * @todo should this be final? Extending classes should be sure to either use
- * leaveNode or call parent::enterNode() when overloading
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof Namespace_) {
- $this->namespace = isset($node->name) ? $node->name->parts : array();
- }
- }
-
- /**
- * Get a fully-qualified name (class, function, interface, etc).
- *
- * @param mixed $name
- *
- * @return string
- */
- protected function getFullyQualifiedName($name)
- {
- if ($name instanceof FullyQualifiedName) {
- return implode('\\', $name->parts);
- } elseif ($name instanceof Name) {
- $name = $name->parts;
- } elseif (!is_array($name)) {
- $name = array($name);
- }
-
- return implode('\\', array_merge($this->namespace, $name));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NamespacePass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NamespacePass.php
deleted file mode 100644
index 37ef9f24..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NamespacePass.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node\Name;
-use PhpParser\Node\Stmt\Namespace_;
-use Psy\CodeCleaner;
-
-/**
- * Provide implicit namespaces for subsequent execution.
- *
- * The namespace pass remembers the last standalone namespace line encountered:
- *
- * namespace Foo\Bar;
- *
- * ... which it then applies implicitly to all future evaluated code, until the
- * namespace is replaced by another namespace. To reset to the top level
- * namespace, enter `namespace {}`. This is a bit ugly, but it does the trick :)
- */
-class NamespacePass extends CodeCleanerPass
-{
- private $namespace = null;
- private $cleaner;
-
- /**
- * @param CodeCleaner $cleaner
- */
- public function __construct(CodeCleaner $cleaner)
- {
- $this->cleaner = $cleaner;
- }
-
- /**
- * If this is a standalone namespace line, remember it for later.
- *
- * Otherwise, apply remembered namespaces to the code until a new namespace
- * is encountered.
- *
- * @param array $nodes
- */
- public function beforeTraverse(array $nodes)
- {
- if (empty($nodes)) {
- return $nodes;
- }
-
- $last = end($nodes);
- if (!$last instanceof Namespace_) {
- return $this->namespace ? array(new Namespace_($this->namespace, $nodes)) : $nodes;
- }
-
- $this->setNamespace($last->name);
-
- return $nodes;
- }
-
- /**
- * Remember the namespace and (re)set the namespace on the CodeCleaner as
- * well.
- *
- * @param null|Name $namespace
- */
- private function setNamespace($namespace)
- {
- $this->namespace = $namespace;
- $this->cleaner->setNamespace($namespace === null ? null : $namespace->parts);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NoReturnValue.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NoReturnValue.php
deleted file mode 100644
index 3784f4b3..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/NoReturnValue.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-/**
- * A class used internally by CodeCleaner to represent input, such as
- * non-expression statements, with no return value.
- *
- * Note that user code returning an instance of this class will act like it
- * has no return value, so you prolly shouldn't do that.
- */
-class NoReturnValue
-{
- // this space intentionally left blank
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/PassableByReferencePass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/PassableByReferencePass.php
deleted file mode 100644
index 610554cf..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/PassableByReferencePass.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Expr\ClassConstFetch;
-use PhpParser\Node\Expr\FuncCall;
-use PhpParser\Node\Expr\MethodCall;
-use PhpParser\Node\Expr\PropertyFetch;
-use PhpParser\Node\Expr\StaticCall;
-use PhpParser\Node\Expr\Variable;
-use Psy\Exception\FatalErrorException;
-
-/**
- * Validate that only variables (and variable-like things) are passed by reference.
- */
-class PassableByReferencePass extends CodeCleanerPass
-{
- const EXCEPTION_MESSAGE = 'Only variables can be passed by reference';
-
- /**
- * @throws FatalErrorException if non-variables are passed by reference
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- // @todo support MethodCall and StaticCall as well.
- if ($node instanceof FuncCall) {
- $name = $node->name;
-
- // if function name is an expression or a variable, give it a pass for now.
- if ($name instanceof Expr || $name instanceof Variable) {
- return;
- }
-
- try {
- $refl = new \ReflectionFunction(implode('\\', $name->parts));
- } catch (\ReflectionException $e) {
- // Well, we gave it a shot!
- return;
- }
-
- foreach ($refl->getParameters() as $key => $param) {
- if (array_key_exists($key, $node->args)) {
- $arg = $node->args[$key];
- if ($param->isPassedByReference() && !$this->isPassableByReference($arg)) {
- throw new FatalErrorException(self::EXCEPTION_MESSAGE);
- }
- }
- }
- }
- }
-
- private function isPassableByReference(Node $arg)
- {
- // FuncCall, MethodCall and StaticCall are all PHP _warnings_ not fatal errors, so we'll let
- // PHP handle those ones :)
- return $arg->value instanceof ClassConstFetch ||
- $arg->value instanceof PropertyFetch ||
- $arg->value instanceof Variable ||
- $arg->value instanceof FuncCall ||
- $arg->value instanceof MethodCall ||
- $arg->value instanceof StaticCall;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/StaticConstructorPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/StaticConstructorPass.php
deleted file mode 100644
index 28667ee6..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/StaticConstructorPass.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Stmt\Class_;
-use PhpParser\Node\Stmt\ClassMethod;
-use PhpParser\Node\Stmt\Namespace_;
-use Psy\Exception\FatalErrorException;
-
-/**
- * Validate that the old-style constructor function is not static.
- *
- * As of PHP 5.3.3, methods with the same name as the last element of a namespaced class name
- * will no longer be treated as constructor. This change doesn't affect non-namespaced classes.
- *
- * Validation of the __construct method ensures the PHP Parser.
- *
- * @author Martin Hasoň <martin.hason@gmail.com>
- */
-class StaticConstructorPass extends CodeCleanerPass
-{
- private $isPHP533;
- private $namespace;
-
- public function __construct()
- {
- $this->isPHP533 = version_compare(PHP_VERSION, '5.3.3', '>=');
- }
-
- public function beforeTraverse(array $nodes)
- {
- $this->namespace = array();
- }
-
- /**
- * Validate that the old-style constructor function is not static.
- *
- * @throws FatalErrorException if the old-style constructor function is static
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof Namespace_) {
- $this->namespace = isset($node->name) ? $node->name->parts : array();
- } elseif ($node instanceof Class_) {
- // Bail early if this is PHP 5.3.3 and we have a namespaced class
- if (!empty($this->namespace) && $this->isPHP533) {
- return;
- }
-
- $constructor = null;
- foreach ($node->stmts as $stmt) {
- if ($stmt instanceof ClassMethod) {
- // Bail early if we find a new-style constructor
- if ('__construct' === strtolower($stmt->name)) {
- return;
- }
-
- // We found a possible old-style constructor
- // (unless there is also a __construct method)
- if (strtolower($node->name) === strtolower($stmt->name)) {
- $constructor = $stmt;
- }
- }
- }
-
- if ($constructor && $constructor->isStatic()) {
- throw new FatalErrorException(sprintf(
- 'Constructor %s::%s() cannot be static',
- implode('\\', array_merge($this->namespace, (array) $node->name)),
- $constructor->name
- ));
- }
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/StrictTypesPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/StrictTypesPass.php
deleted file mode 100644
index c667808b..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/StrictTypesPass.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node\Scalar\LNumber;
-use PhpParser\Node\Stmt\Declare_;
-use PhpParser\Node\Stmt\DeclareDeclare;
-use Psy\Exception\FatalErrorException;
-
-/**
- * Provide implicit strict types declarations for for subsequent execution.
- *
- * The strict types pass remembers the last strict types declaration:
- *
- * declare(strict_types=1);
- *
- * ... which it then applies implicitly to all future evaluated code, until it
- * is replaced by a new declaration.
- */
-class StrictTypesPass extends CodeCleanerPass
-{
- private $strictTypes = false;
-
- /**
- * If this is a standalone strict types declaration, remember it for later.
- *
- * Otherwise, apply remembered strict types declaration to to the code until
- * a new declaration is encountered.
- *
- * @throws FatalErrorException if an invalid `strict_types` declaration is found
- *
- * @param array $nodes
- */
- public function beforeTraverse(array $nodes)
- {
- if (version_compare(PHP_VERSION, '7.0', '<')) {
- return;
- }
-
- $prependStrictTypes = $this->strictTypes;
-
- foreach ($nodes as $key => $node) {
- if ($node instanceof Declare_) {
- foreach ($node->declares as $declare) {
- if ($declare->key === 'strict_types') {
- $value = $declare->value;
- if (!$value instanceof LNumber || ($value->value !== 0 && $value->value !== 1)) {
- throw new FatalErrorException('strict_types declaration must have 0 or 1 as its value');
- }
-
- $this->strictTypes = $value->value === 1;
- }
- }
- }
- }
-
- if ($prependStrictTypes) {
- $first = reset($nodes);
- if (!$first instanceof Declare_) {
- $declare = new Declare_(array(new DeclareDeclare('strict_types', new LNumber(1))));
- array_unshift($nodes, $declare);
- }
- }
-
- return $nodes;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/UseStatementPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/UseStatementPass.php
deleted file mode 100644
index c1ce64d3..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/UseStatementPass.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Name;
-use PhpParser\Node\Name\FullyQualified as FullyQualifiedName;
-use PhpParser\Node\Stmt\GroupUse;
-use PhpParser\Node\Stmt\Namespace_;
-use PhpParser\Node\Stmt\Use_;
-
-/**
- * Provide implicit use statements for subsequent execution.
- *
- * The use statement pass remembers the last use statement line encountered:
- *
- * use Foo\Bar as Baz;
- *
- * ... which it then applies implicitly to all future evaluated code, until the
- * current namespace is replaced by another namespace.
- */
-class UseStatementPass extends CodeCleanerPass
-{
- private $aliases = array();
- private $lastAliases = array();
- private $lastNamespace = null;
-
- /**
- * Re-load the last set of use statements on re-entering a namespace.
- *
- * This isn't how namespaces normally work, but because PsySH has to spin
- * up a new namespace for every line of code, we do this to make things
- * work like you'd expect.
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof Namespace_) {
- // If this is the same namespace as last namespace, let's do ourselves
- // a favor and reload all the aliases...
- if (strtolower($node->name) === strtolower($this->lastNamespace)) {
- $this->aliases = $this->lastAliases;
- }
- }
- }
-
- /**
- * If this statement is a namespace, forget all the aliases we had.
- *
- * If it's a use statement, remember the alias for later. Otherwise, apply
- * remembered aliases to the code.
- *
- * @param Node $node
- */
- public function leaveNode(Node $node)
- {
- if ($node instanceof Use_) {
- // Store a reference to every "use" statement, because we'll need
- // them in a bit.
- foreach ($node->uses as $use) {
- $this->aliases[strtolower($use->alias)] = $use->name;
- }
-
- return false;
- } elseif ($node instanceof GroupUse) {
- // Expand every "use" statement in the group into a full, standalone
- // "use" and store 'em with the others.
- foreach ($node->uses as $use) {
- $this->aliases[strtolower($use->alias)] = Name::concat($node->prefix, $use->name, array(
- 'startLine' => $node->prefix->getAttribute('startLine'),
- 'endLine' => $use->name->getAttribute('endLine'),
- ));
- }
-
- return false;
- } elseif ($node instanceof Namespace_) {
- // Start fresh, since we're done with this namespace.
- $this->lastNamespace = $node->name;
- $this->lastAliases = $this->aliases;
- $this->aliases = array();
- } else {
- foreach ($node as $name => $subNode) {
- if ($subNode instanceof Name) {
- // Implicitly thunk all aliases.
- if ($replacement = $this->findAlias($subNode)) {
- $node->$name = $replacement;
- }
- }
- }
-
- return $node;
- }
- }
-
- /**
- * Find class/namespace aliases.
- *
- * @param Name $name
- *
- * @return FullyQualifiedName|null
- */
- private function findAlias(Name $name)
- {
- $that = strtolower($name);
- foreach ($this->aliases as $alias => $prefix) {
- if ($that === $alias) {
- return new FullyQualifiedName($prefix->toString());
- } elseif (substr($that, 0, strlen($alias) + 1) === $alias . '\\') {
- return new FullyQualifiedName($prefix->toString() . substr($name, strlen($alias)));
- }
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidClassNamePass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidClassNamePass.php
deleted file mode 100644
index 91944dea..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidClassNamePass.php
+++ /dev/null
@@ -1,393 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Expr\ClassConstFetch;
-use PhpParser\Node\Expr\New_;
-use PhpParser\Node\Expr\StaticCall;
-use PhpParser\Node\Stmt;
-use PhpParser\Node\Stmt\Class_;
-use PhpParser\Node\Stmt\Do_;
-use PhpParser\Node\Stmt\If_;
-use PhpParser\Node\Stmt\Interface_;
-use PhpParser\Node\Stmt\Switch_;
-use PhpParser\Node\Stmt\Trait_;
-use PhpParser\Node\Stmt\While_;
-use Psy\Exception\FatalErrorException;
-
-/**
- * Validate that classes exist.
- *
- * This pass throws a FatalErrorException rather than letting PHP run
- * headfirst into a real fatal error and die.
- */
-class ValidClassNamePass extends NamespaceAwarePass
-{
- const CLASS_TYPE = 'class';
- const INTERFACE_TYPE = 'interface';
- const TRAIT_TYPE = 'trait';
-
- protected $checkTraits;
- private $conditionalScopes = 0;
-
- public function __construct()
- {
- $this->checkTraits = function_exists('trait_exists');
- }
-
- /**
- * Validate class, interface and trait definitions.
- *
- * Validate them upon entering the node, so that we know about their
- * presence and can validate constant fetches and static calls in class or
- * trait methods.
- *
- * @param Node
- */
- public function enterNode(Node $node)
- {
- parent::enterNode($node);
-
- if (self::isConditional($node)) {
- $this->conditionalScopes++;
- } else {
- // @todo add an "else" here which adds a runtime check for instances where we can't tell
- // whether a class is being redefined by static analysis alone.
- if ($this->conditionalScopes === 0) {
- if ($node instanceof Class_) {
- $this->validateClassStatement($node);
- } elseif ($node instanceof Interface_) {
- $this->validateInterfaceStatement($node);
- } elseif ($node instanceof Trait_) {
- $this->validateTraitStatement($node);
- }
- }
- }
- }
-
- /**
- * Validate `new` expressions, class constant fetches, and static calls.
- *
- * @throws FatalErrorException if a class, interface or trait is referenced which does not exist
- * @throws FatalErrorException if a class extends something that is not a class
- * @throws FatalErrorException if a class implements something that is not an interface
- * @throws FatalErrorException if an interface extends something that is not an interface
- * @throws FatalErrorException if a class, interface or trait redefines an existing class, interface or trait name
- *
- * @param Node $node
- */
- public function leaveNode(Node $node)
- {
- if (self::isConditional($node)) {
- $this->conditionalScopes--;
- } elseif ($node instanceof New_) {
- $this->validateNewExpression($node);
- } elseif ($node instanceof ClassConstFetch) {
- $this->validateClassConstFetchExpression($node);
- } elseif ($node instanceof StaticCall) {
- $this->validateStaticCallExpression($node);
- }
- }
-
- private static function isConditional(Node $node)
- {
- return $node instanceof If_ ||
- $node instanceof While_ ||
- $node instanceof Do_ ||
- $node instanceof Switch_;
- }
-
- /**
- * Validate a class definition statement.
- *
- * @param Class_ $stmt
- */
- protected function validateClassStatement(Class_ $stmt)
- {
- $this->ensureCanDefine($stmt);
- if (isset($stmt->extends)) {
- $this->ensureClassExists($this->getFullyQualifiedName($stmt->extends), $stmt);
- }
- $this->ensureInterfacesExist($stmt->implements, $stmt);
- }
-
- /**
- * Validate an interface definition statement.
- *
- * @param Interface_ $stmt
- */
- protected function validateInterfaceStatement(Interface_ $stmt)
- {
- $this->ensureCanDefine($stmt);
- $this->ensureInterfacesExist($stmt->extends, $stmt);
- }
-
- /**
- * Validate a trait definition statement.
- *
- * @param Trait_ $stmt
- */
- protected function validateTraitStatement(Trait_ $stmt)
- {
- $this->ensureCanDefine($stmt);
- }
-
- /**
- * Validate a `new` expression.
- *
- * @param New_ $stmt
- */
- protected function validateNewExpression(New_ $stmt)
- {
- // if class name is an expression or an anonymous class, give it a pass for now
- if (!$stmt->class instanceof Expr && !$stmt->class instanceof Class_) {
- $this->ensureClassExists($this->getFullyQualifiedName($stmt->class), $stmt);
- }
- }
-
- /**
- * Validate a class constant fetch expression's class.
- *
- * @param ClassConstFetch $stmt
- */
- protected function validateClassConstFetchExpression(ClassConstFetch $stmt)
- {
- // there is no need to check exists for ::class const for php 5.5 or newer
- if (strtolower($stmt->name) === 'class'
- && version_compare(PHP_VERSION, '5.5', '>=')) {
- return;
- }
-
- // if class name is an expression, give it a pass for now
- if (!$stmt->class instanceof Expr) {
- $this->ensureClassOrInterfaceExists($this->getFullyQualifiedName($stmt->class), $stmt);
- }
- }
-
- /**
- * Validate a class constant fetch expression's class.
- *
- * @param StaticCall $stmt
- */
- protected function validateStaticCallExpression(StaticCall $stmt)
- {
- // if class name is an expression, give it a pass for now
- if (!$stmt->class instanceof Expr) {
- $this->ensureMethodExists($this->getFullyQualifiedName($stmt->class), $stmt->name, $stmt);
- }
- }
-
- /**
- * Ensure that no class, interface or trait name collides with a new definition.
- *
- * @throws FatalErrorException
- *
- * @param Stmt $stmt
- */
- protected function ensureCanDefine(Stmt $stmt)
- {
- $name = $this->getFullyQualifiedName($stmt->name);
-
- // check for name collisions
- $errorType = null;
- if ($this->classExists($name)) {
- $errorType = self::CLASS_TYPE;
- } elseif ($this->interfaceExists($name)) {
- $errorType = self::INTERFACE_TYPE;
- } elseif ($this->traitExists($name)) {
- $errorType = self::TRAIT_TYPE;
- }
-
- if ($errorType !== null) {
- throw $this->createError(sprintf('%s named %s already exists', ucfirst($errorType), $name), $stmt);
- }
-
- // Store creation for the rest of this code snippet so we can find local
- // issue too
- $this->currentScope[strtolower($name)] = $this->getScopeType($stmt);
- }
-
- /**
- * Ensure that a referenced class exists.
- *
- * @throws FatalErrorException
- *
- * @param string $name
- * @param Stmt $stmt
- */
- protected function ensureClassExists($name, $stmt)
- {
- if (!$this->classExists($name)) {
- throw $this->createError(sprintf('Class \'%s\' not found', $name), $stmt);
- }
- }
-
- /**
- * Ensure that a referenced class _or interface_ exists.
- *
- * @throws FatalErrorException
- *
- * @param string $name
- * @param Stmt $stmt
- */
- protected function ensureClassOrInterfaceExists($name, $stmt)
- {
- if (!$this->classExists($name) && !$this->interfaceExists($name)) {
- throw $this->createError(sprintf('Class \'%s\' not found', $name), $stmt);
- }
- }
-
- /**
- * Ensure that a statically called method exists.
- *
- * @throws FatalErrorException
- *
- * @param string $class
- * @param string $name
- * @param Stmt $stmt
- */
- protected function ensureMethodExists($class, $name, $stmt)
- {
- $this->ensureClassExists($class, $stmt);
-
- // let's pretend all calls to self, parent and static are valid
- if (in_array(strtolower($class), array('self', 'parent', 'static'))) {
- return;
- }
-
- // ... and all calls to classes defined right now
- if ($this->findInScope($class) === self::CLASS_TYPE) {
- return;
- }
-
- // if method name is an expression, give it a pass for now
- if ($name instanceof Expr) {
- return;
- }
-
- if (!method_exists($class, $name) && !method_exists($class, '__callStatic')) {
- throw $this->createError(sprintf('Call to undefined method %s::%s()', $class, $name), $stmt);
- }
- }
-
- /**
- * Ensure that a referenced interface exists.
- *
- * @throws FatalErrorException
- *
- * @param $interfaces
- * @param Stmt $stmt
- */
- protected function ensureInterfacesExist($interfaces, $stmt)
- {
- foreach ($interfaces as $interface) {
- /** @var string $name */
- $name = $this->getFullyQualifiedName($interface);
- if (!$this->interfaceExists($name)) {
- throw $this->createError(sprintf('Interface \'%s\' not found', $name), $stmt);
- }
- }
- }
-
- /**
- * Get a symbol type key for storing in the scope name cache.
- *
- * @param Stmt $stmt
- *
- * @return string
- */
- protected function getScopeType(Stmt $stmt)
- {
- if ($stmt instanceof Class_) {
- return self::CLASS_TYPE;
- } elseif ($stmt instanceof Interface_) {
- return self::INTERFACE_TYPE;
- } elseif ($stmt instanceof Trait_) {
- return self::TRAIT_TYPE;
- }
- }
-
- /**
- * Check whether a class exists, or has been defined in the current code snippet.
- *
- * Gives `self`, `static` and `parent` a free pass.
- *
- * @param string $name
- *
- * @return bool
- */
- protected function classExists($name)
- {
- // Give `self`, `static` and `parent` a pass. This will actually let
- // some errors through, since we're not checking whether the keyword is
- // being used in a class scope.
- if (in_array(strtolower($name), array('self', 'static', 'parent'))) {
- return true;
- }
-
- return class_exists($name) || $this->findInScope($name) === self::CLASS_TYPE;
- }
-
- /**
- * Check whether an interface exists, or has been defined in the current code snippet.
- *
- * @param string $name
- *
- * @return bool
- */
- protected function interfaceExists($name)
- {
- return interface_exists($name) || $this->findInScope($name) === self::INTERFACE_TYPE;
- }
-
- /**
- * Check whether a trait exists, or has been defined in the current code snippet.
- *
- * @param string $name
- *
- * @return bool
- */
- protected function traitExists($name)
- {
- return $this->checkTraits && (trait_exists($name) || $this->findInScope($name) === self::TRAIT_TYPE);
- }
-
- /**
- * Find a symbol in the current code snippet scope.
- *
- * @param string $name
- *
- * @return string|null
- */
- protected function findInScope($name)
- {
- $name = strtolower($name);
- if (isset($this->currentScope[$name])) {
- return $this->currentScope[$name];
- }
- }
-
- /**
- * Error creation factory.
- *
- * @param string $msg
- * @param Stmt $stmt
- *
- * @return FatalErrorException
- */
- protected function createError($msg, $stmt)
- {
- return new FatalErrorException($msg, 0, 1, null, $stmt->getLine());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidConstantPass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidConstantPass.php
deleted file mode 100644
index abc4d546..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidConstantPass.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Expr\ClassConstFetch;
-use PhpParser\Node\Expr\ConstFetch;
-use Psy\Exception\FatalErrorException;
-
-/**
- * Validate that namespaced constant references will succeed.
- *
- * This pass throws a FatalErrorException rather than letting PHP run
- * headfirst into a real fatal error and die.
- *
- * @todo Detect constants defined in the current code snippet?
- * ... Might not be worth it, since it would need to both be defining and
- * referencing a namespaced constant, which doesn't seem like that big of
- * a target for failure
- */
-class ValidConstantPass extends NamespaceAwarePass
-{
- /**
- * Validate that namespaced constant references will succeed.
- *
- * Note that this does not (yet) detect constants defined in the current code
- * snippet. It won't happen very often, so we'll punt for now.
- *
- * @throws FatalErrorException if a constant reference is not defined
- *
- * @param Node $node
- */
- public function leaveNode(Node $node)
- {
- if ($node instanceof ConstFetch && count($node->name->parts) > 1) {
- $name = $this->getFullyQualifiedName($node->name);
- if (!defined($name)) {
- throw new FatalErrorException(sprintf('Undefined constant %s', $name), 0, 1, null, $node->getLine());
- }
- } elseif ($node instanceof ClassConstFetch) {
- $this->validateClassConstFetchExpression($node);
- }
- }
-
- /**
- * Validate a class constant fetch expression.
- *
- * @throws FatalErrorException if a class constant is not defined
- *
- * @param ClassConstFetch $stmt
- */
- protected function validateClassConstFetchExpression(ClassConstFetch $stmt)
- {
- // give the `class` pseudo-constant a pass
- if ($stmt->name === 'class') {
- return;
- }
-
- // if class name is an expression, give it a pass for now
- if (!$stmt->class instanceof Expr) {
- $className = $this->getFullyQualifiedName($stmt->class);
-
- // if the class doesn't exist, don't throw an exception… it might be
- // defined in the same line it's used or something stupid like that.
- if (class_exists($className) || interface_exists($className)) {
- $constName = sprintf('%s::%s', $className, $stmt->name);
- if (!defined($constName)) {
- $constType = class_exists($className) ? 'Class' : 'Interface';
- $msg = sprintf('%s constant \'%s\' not found', $constType, $constName);
- throw new FatalErrorException($msg, 0, 1, null, $stmt->getLine());
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidFunctionNamePass.php b/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidFunctionNamePass.php
deleted file mode 100644
index 277a0067..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/CodeCleaner/ValidFunctionNamePass.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\CodeCleaner;
-
-use PhpParser\Node;
-use PhpParser\Node\Expr;
-use PhpParser\Node\Expr\FuncCall;
-use PhpParser\Node\Expr\Variable;
-use PhpParser\Node\Stmt\Do_;
-use PhpParser\Node\Stmt\Function_;
-use PhpParser\Node\Stmt\If_;
-use PhpParser\Node\Stmt\Switch_;
-use PhpParser\Node\Stmt\While_;
-use Psy\Exception\FatalErrorException;
-
-/**
- * Validate that function calls will succeed.
- *
- * This pass throws a FatalErrorException rather than letting PHP run
- * headfirst into a real fatal error and die.
- */
-class ValidFunctionNamePass extends NamespaceAwarePass
-{
- private $conditionalScopes = 0;
-
- /**
- * Store newly defined function names on the way in, to allow recursion.
- *
- * @param Node $node
- */
- public function enterNode(Node $node)
- {
- parent::enterNode($node);
-
- if (self::isConditional($node)) {
- $this->conditionalScopes++;
- } elseif ($node instanceof Function_) {
- $name = $this->getFullyQualifiedName($node->name);
-
- // @todo add an "else" here which adds a runtime check for instances where we can't tell
- // whether a function is being redefined by static analysis alone.
- if ($this->conditionalScopes === 0) {
- if (function_exists($name) ||
- isset($this->currentScope[strtolower($name)])) {
- $msg = sprintf('Cannot redeclare %s()', $name);
- throw new FatalErrorException($msg, 0, 1, null, $node->getLine());
- }
- }
-
- $this->currentScope[strtolower($name)] = true;
- }
- }
-
- /**
- * Validate that function calls will succeed.
- *
- * @throws FatalErrorException if a function is redefined
- * @throws FatalErrorException if the function name is a string (not an expression) and is not defined
- *
- * @param Node $node
- */
- public function leaveNode(Node $node)
- {
- if (self::isConditional($node)) {
- $this->conditionalScopes--;
- } elseif ($node instanceof FuncCall) {
- // if function name is an expression or a variable, give it a pass for now.
- $name = $node->name;
- if (!$name instanceof Expr && !$name instanceof Variable) {
- $shortName = implode('\\', $name->parts);
- $fullName = $this->getFullyQualifiedName($name);
- $inScope = isset($this->currentScope[strtolower($fullName)]);
- if (!$inScope && !function_exists($shortName) && !function_exists($fullName)) {
- $message = sprintf('Call to undefined function %s()', $name);
- throw new FatalErrorException($message, 0, 1, null, $node->getLine());
- }
- }
- }
- }
-
- private static function isConditional(Node $node)
- {
- return $node instanceof If_ ||
- $node instanceof While_ ||
- $node instanceof Do_ ||
- $node instanceof Switch_;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/BufferCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/BufferCommand.php
deleted file mode 100644
index 3a8abcb1..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/BufferCommand.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Output\ShellOutput;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Interact with the current code buffer.
- *
- * Shows and clears the buffer for the current multi-line expression.
- */
-class BufferCommand extends Command
-{
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('buffer')
- ->setAliases(array('buf'))
- ->setDefinition(array(
- new InputOption('clear', '', InputOption::VALUE_NONE, 'Clear the current buffer.'),
- ))
- ->setDescription('Show (or clear) the contents of the code input buffer.')
- ->setHelp(
- <<<'HELP'
-Show the contents of the code buffer for the current multi-line expression.
-
-Optionally, clear the buffer by passing the <info>--clear</info> option.
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $buf = $this->getApplication()->getCodeBuffer();
- if ($input->getOption('clear')) {
- $this->getApplication()->resetCodeBuffer();
- $output->writeln($this->formatLines($buf, 'urgent'), ShellOutput::NUMBER_LINES);
- } else {
- $output->writeln($this->formatLines($buf), ShellOutput::NUMBER_LINES);
- }
- }
-
- /**
- * A helper method for wrapping buffer lines in `<urgent>` and `<return>` formatter strings.
- *
- * @param array $lines
- * @param string $type (default: 'return')
- *
- * @return array Formatted strings
- */
- protected function formatLines(array $lines, $type = 'return')
- {
- $template = sprintf('<%s>%%s</%s>', $type, $type);
-
- return array_map(function ($line) use ($template) {
- return sprintf($template, $line);
- }, $lines);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ClearCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ClearCommand.php
deleted file mode 100644
index 470f61de..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ClearCommand.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Clear the Psy Shell.
- *
- * Just what it says on the tin.
- */
-class ClearCommand extends Command
-{
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('clear')
- ->setDefinition(array())
- ->setDescription('Clear the Psy Shell screen.')
- ->setHelp(
- <<<'HELP'
-Clear the Psy Shell screen.
-
-Pro Tip: If your PHP has readline support, you should be able to use ctrl+l too!
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $output->write(sprintf('%c[2J%c[0;0f', 27, 27));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/Command.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/Command.php
deleted file mode 100644
index c8aaedee..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/Command.php
+++ /dev/null
@@ -1,282 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Shell;
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command as BaseCommand;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Helper\TableHelper;
-use Symfony\Component\Console\Helper\TableStyle;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * The Psy Shell base command.
- */
-abstract class Command extends BaseCommand
-{
- /**
- * Sets the application instance for this command.
- *
- * @param Application $application An Application instance
- *
- * @api
- */
- public function setApplication(Application $application = null)
- {
- if ($application !== null && !$application instanceof Shell) {
- throw new \InvalidArgumentException('PsySH Commands require an instance of Psy\Shell.');
- }
-
- return parent::setApplication($application);
- }
-
- /**
- * {@inheritdoc}
- */
- public function asText()
- {
- $messages = array(
- '<comment>Usage:</comment>',
- ' ' . $this->getSynopsis(),
- '',
- );
-
- if ($this->getAliases()) {
- $messages[] = $this->aliasesAsText();
- }
-
- if ($this->getArguments()) {
- $messages[] = $this->argumentsAsText();
- }
-
- if ($this->getOptions()) {
- $messages[] = $this->optionsAsText();
- }
-
- if ($help = $this->getProcessedHelp()) {
- $messages[] = '<comment>Help:</comment>';
- $messages[] = ' ' . str_replace("\n", "\n ", $help) . "\n";
- }
-
- return implode("\n", $messages);
- }
-
- /**
- * {@inheritdoc}
- */
- private function getArguments()
- {
- $hidden = $this->getHiddenArguments();
-
- return array_filter($this->getNativeDefinition()->getArguments(), function ($argument) use ($hidden) {
- return !in_array($argument->getName(), $hidden);
- });
- }
-
- /**
- * These arguments will be excluded from help output.
- *
- * @return array
- */
- protected function getHiddenArguments()
- {
- return array('command');
- }
-
- /**
- * {@inheritdoc}
- */
- private function getOptions()
- {
- $hidden = $this->getHiddenOptions();
-
- return array_filter($this->getNativeDefinition()->getOptions(), function ($option) use ($hidden) {
- return !in_array($option->getName(), $hidden);
- });
- }
-
- /**
- * These options will be excluded from help output.
- *
- * @return array
- */
- protected function getHiddenOptions()
- {
- return array('verbose');
- }
-
- /**
- * Format command aliases as text..
- *
- * @return string
- */
- private function aliasesAsText()
- {
- return '<comment>Aliases:</comment> <info>' . implode(', ', $this->getAliases()) . '</info>' . PHP_EOL;
- }
-
- /**
- * Format command arguments as text.
- *
- * @return string
- */
- private function argumentsAsText()
- {
- $max = $this->getMaxWidth();
- $messages = array();
-
- $arguments = $this->getArguments();
- if (!empty($arguments)) {
- $messages[] = '<comment>Arguments:</comment>';
- foreach ($arguments as $argument) {
- if (null !== $argument->getDefault() && (!is_array($argument->getDefault()) || count($argument->getDefault()))) {
- $default = sprintf('<comment> (default: %s)</comment>', $this->formatDefaultValue($argument->getDefault()));
- } else {
- $default = '';
- }
-
- $description = str_replace("\n", "\n" . str_pad('', $max + 2, ' '), $argument->getDescription());
-
- $messages[] = sprintf(" <info>%-${max}s</info> %s%s", $argument->getName(), $description, $default);
- }
-
- $messages[] = '';
- }
-
- return implode(PHP_EOL, $messages);
- }
-
- /**
- * Format options as text.
- *
- * @return string
- */
- private function optionsAsText()
- {
- $max = $this->getMaxWidth();
- $messages = array();
-
- $options = $this->getOptions();
- if ($options) {
- $messages[] = '<comment>Options:</comment>';
-
- foreach ($options as $option) {
- if ($option->acceptValue() && null !== $option->getDefault() && (!is_array($option->getDefault()) || count($option->getDefault()))) {
- $default = sprintf('<comment> (default: %s)</comment>', $this->formatDefaultValue($option->getDefault()));
- } else {
- $default = '';
- }
-
- $multiple = $option->isArray() ? '<comment> (multiple values allowed)</comment>' : '';
- $description = str_replace("\n", "\n" . str_pad('', $max + 2, ' '), $option->getDescription());
-
- $optionMax = $max - strlen($option->getName()) - 2;
- $messages[] = sprintf(
- " <info>%s</info> %-${optionMax}s%s%s%s",
- '--' . $option->getName(),
- $option->getShortcut() ? sprintf('(-%s) ', $option->getShortcut()) : '',
- $description,
- $default,
- $multiple
- );
- }
-
- $messages[] = '';
- }
-
- return implode(PHP_EOL, $messages);
- }
-
- /**
- * Calculate the maximum padding width for a set of lines.
- *
- * @return int
- */
- private function getMaxWidth()
- {
- $max = 0;
-
- foreach ($this->getOptions() as $option) {
- $nameLength = strlen($option->getName()) + 2;
- if ($option->getShortcut()) {
- $nameLength += strlen($option->getShortcut()) + 3;
- }
-
- $max = max($max, $nameLength);
- }
-
- foreach ($this->getArguments() as $argument) {
- $max = max($max, strlen($argument->getName()));
- }
-
- return ++$max;
- }
-
- /**
- * Format an option default as text.
- *
- * @param mixed $default
- *
- * @return string
- */
- private function formatDefaultValue($default)
- {
- if (is_array($default) && $default === array_values($default)) {
- return sprintf("array('%s')", implode("', '", $default));
- }
-
- return str_replace("\n", '', var_export($default, true));
- }
-
- /**
- * Get a Table instance.
- *
- * Falls back to legacy TableHelper.
- *
- * @return Table|TableHelper
- */
- protected function getTable(OutputInterface $output)
- {
- if (!class_exists('Symfony\Component\Console\Helper\Table')) {
- return $this->getTableHelper();
- }
-
- $style = new TableStyle();
- $style
- ->setVerticalBorderChar(' ')
- ->setHorizontalBorderChar('')
- ->setCrossingChar('');
-
- $table = new Table($output);
-
- return $table
- ->setRows(array())
- ->setStyle($style);
- }
-
- /**
- * Legacy fallback for getTable.
- *
- * @return TableHelper
- */
- protected function getTableHelper()
- {
- $table = $this->getApplication()->getHelperSet()->get('table');
-
- return $table
- ->setRows(array())
- ->setLayout(TableHelper::LAYOUT_BORDERLESS)
- ->setHorizontalBorderChar('')
- ->setCrossingChar('');
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/DocCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/DocCommand.php
deleted file mode 100644
index 2b485980..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/DocCommand.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Formatter\DocblockFormatter;
-use Psy\Formatter\SignatureFormatter;
-use Psy\Reflection\ReflectionLanguageConstruct;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Read the documentation for an object, class, constant, method or property.
- */
-class DocCommand extends ReflectingCommand
-{
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('doc')
- ->setAliases(array('rtfm', 'man'))
- ->setDefinition(array(
- new InputArgument('value', InputArgument::REQUIRED, 'Function, class, instance, constant, method or property to document.'),
- ))
- ->setDescription('Read the documentation for an object, class, constant, method or property.')
- ->setHelp(
- <<<HELP
-Read the documentation for an object, class, constant, method or property.
-
-It's awesome for well-documented code, not quite as awesome for poorly documented code.
-
-e.g.
-<return>>>> doc preg_replace</return>
-<return>>>> doc Psy\Shell</return>
-<return>>>> doc Psy\Shell::debug</return>
-<return>>>> \$s = new Psy\Shell</return>
-<return>>>> doc \$s->run</return>
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $value = $input->getArgument('value');
- if (ReflectionLanguageConstruct::isLanguageConstruct($value)) {
- $reflector = new ReflectionLanguageConstruct($value);
- $doc = $this->getManualDocById($value);
- } else {
- list($target, $reflector) = $this->getTargetAndReflector($value);
- $doc = $this->getManualDoc($reflector) ?: DocblockFormatter::format($reflector);
- }
-
- $db = $this->getApplication()->getManualDb();
-
- $output->page(function ($output) use ($reflector, $doc, $db) {
- $output->writeln(SignatureFormatter::format($reflector));
- $output->writeln('');
-
- if (empty($doc) && !$db) {
- $output->writeln('<warning>PHP manual not found</warning>');
- $output->writeln(' To document core PHP functionality, download the PHP reference manual:');
- $output->writeln(' https://github.com/bobthecow/psysh#downloading-the-manual');
- } else {
- $output->writeln($doc);
- }
- });
-
- // Set some magic local variables
- $this->setCommandScopeVariables($reflector);
- }
-
- private function getManualDoc($reflector)
- {
- switch (get_class($reflector)) {
- case 'ReflectionFunction':
- $id = $reflector->name;
- break;
-
- case 'ReflectionMethod':
- $id = $reflector->class . '::' . $reflector->name;
- break;
-
- default:
- return false;
- }
-
- return $this->getManualDocById($id);
- }
-
- private function getManualDocById($id)
- {
- if ($db = $this->getApplication()->getManualDb()) {
- return $db
- ->query(sprintf('SELECT doc FROM php_manual WHERE id = %s', $db->quote($id)))
- ->fetchColumn(0);
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/DumpCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/DumpCommand.php
deleted file mode 100644
index abb9b88a..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/DumpCommand.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Exception\RuntimeException;
-use Psy\VarDumper\Presenter;
-use Psy\VarDumper\PresenterAware;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Dump an object or primitive.
- *
- * This is like var_dump but *way* awesomer.
- */
-class DumpCommand extends ReflectingCommand implements PresenterAware
-{
- private $presenter;
-
- /**
- * PresenterAware interface.
- *
- * @param Presenter $presenter
- */
- public function setPresenter(Presenter $presenter)
- {
- $this->presenter = $presenter;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('dump')
- ->setDefinition(array(
- new InputArgument('target', InputArgument::REQUIRED, 'A target object or primitive to dump.', null),
- new InputOption('depth', '', InputOption::VALUE_REQUIRED, 'Depth to parse', 10),
- new InputOption('all', 'a', InputOption::VALUE_NONE, 'Include private and protected methods and properties.'),
- ))
- ->setDescription('Dump an object or primitive.')
- ->setHelp(
- <<<'HELP'
-Dump an object or primitive.
-
-This is like var_dump but <strong>way</strong> awesomer.
-
-e.g.
-<return>>>> dump $_</return>
-<return>>>> dump $someVar</return>
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $depth = $input->getOption('depth');
- $target = $this->resolveTarget($input->getArgument('target'));
- $output->page($this->presenter->present($target, $depth, $input->getOption('all') ? Presenter::VERBOSE : 0));
-
- if (is_object($target)) {
- $this->setCommandScopeVariables(new \ReflectionObject($target));
- }
- }
-
- /**
- * Resolve dump target name.
- *
- * @throws RuntimeException if target name does not exist in the current scope
- *
- * @param string $target
- *
- * @return mixed
- */
- protected function resolveTarget($target)
- {
- $matches = array();
- if (preg_match(self::SUPERGLOBAL, $target, $matches)) {
- if (!array_key_exists($matches[1], $GLOBALS)) {
- throw new RuntimeException('Unknown target: ' . $target);
- }
-
- return $GLOBALS[$matches[1]];
- } elseif (preg_match(self::INSTANCE, $target, $matches)) {
- return $this->getScopeVariable($matches[1]);
- } else {
- throw new RuntimeException('Unknown target: ' . $target);
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ExitCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ExitCommand.php
deleted file mode 100644
index 10c64b47..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ExitCommand.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Exception\BreakException;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Exit the Psy Shell.
- *
- * Just what it says on the tin.
- */
-class ExitCommand extends Command
-{
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('exit')
- ->setAliases(array('quit', 'q'))
- ->setDefinition(array())
- ->setDescription('End the current session and return to caller.')
- ->setHelp(
- <<<'HELP'
-End the current session and return to caller.
-
-e.g.
-<return>>>> exit</return>
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- throw new BreakException('Goodbye.');
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/HelpCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/HelpCommand.php
deleted file mode 100644
index fd32ddef..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/HelpCommand.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Symfony\Component\Console\Helper\TableHelper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Help command.
- *
- * Lists available commands, and gives command-specific help when asked nicely.
- */
-class HelpCommand extends Command
-{
- private $command;
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('help')
- ->setAliases(array('?'))
- ->setDefinition(array(
- new InputArgument('command_name', InputArgument::OPTIONAL, 'The command name', null),
- ))
- ->setDescription('Show a list of commands. Type `help [foo]` for information about [foo].')
- ->setHelp('My. How meta.');
- }
-
- /**
- * Helper for setting a subcommand to retrieve help for.
- *
- * @param Command $command
- */
- public function setCommand($command)
- {
- $this->command = $command;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- if ($this->command !== null) {
- // help for an individual command
- $output->page($this->command->asText());
- $this->command = null;
- } elseif ($name = $input->getArgument('command_name')) {
- // help for an individual command
- $output->page($this->getApplication()->get($name)->asText());
- } else {
- // list available commands
- $commands = $this->getApplication()->all();
-
- $table = $this->getTable($output);
-
- foreach ($commands as $name => $command) {
- if ($name !== $command->getName()) {
- continue;
- }
-
- if ($command->getAliases()) {
- $aliases = sprintf('<comment>Aliases:</comment> %s', implode(', ', $command->getAliases()));
- } else {
- $aliases = '';
- }
-
- $table->addRow(array(
- sprintf('<info>%s</info>', $name),
- $command->getDescription(),
- $aliases,
- ));
- }
-
- $output->startPaging();
- if ($table instanceof TableHelper) {
- $table->render($output);
- } else {
- $table->render();
- }
- $output->stopPaging();
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/HistoryCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/HistoryCommand.php
deleted file mode 100644
index 9acb700f..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/HistoryCommand.php
+++ /dev/null
@@ -1,242 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Input\FilterOptions;
-use Psy\Output\ShellOutput;
-use Psy\Readline\Readline;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Psy Shell history command.
- *
- * Shows, searches and replays readline history. Not too shabby.
- */
-class HistoryCommand extends Command
-{
- private $filter;
-
- /**
- * {@inheritdoc}
- */
- public function __construct($name = null)
- {
- $this->filter = new FilterOptions();
-
- parent::__construct($name);
- }
-
- /**
- * Set the Shell's Readline service.
- *
- * @param Readline $readline
- */
- public function setReadline(Readline $readline)
- {
- $this->readline = $readline;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- list($grep, $insensitive, $invert) = FilterOptions::getOptions();
-
- $this
- ->setName('history')
- ->setAliases(array('hist'))
- ->setDefinition(array(
- new InputOption('show', 's', InputOption::VALUE_REQUIRED, 'Show the given range of lines'),
- new InputOption('head', 'H', InputOption::VALUE_REQUIRED, 'Display the first N items.'),
- new InputOption('tail', 'T', InputOption::VALUE_REQUIRED, 'Display the last N items.'),
-
- $grep,
- $insensitive,
- $invert,
-
- new InputOption('no-numbers', 'N', InputOption::VALUE_NONE, 'Omit line numbers.'),
-
- new InputOption('save', '', InputOption::VALUE_REQUIRED, 'Save history to a file.'),
- new InputOption('replay', '', InputOption::VALUE_NONE, 'Replay'),
- new InputOption('clear', '', InputOption::VALUE_NONE, 'Clear the history.'),
- ))
- ->setDescription('Show the Psy Shell history.')
- ->setHelp(
- <<<'HELP'
-Show, search, save or replay the Psy Shell history.
-
-e.g.
-<return>>>> history --grep /[bB]acon/</return>
-<return>>>> history --show 0..10 --replay</return>
-<return>>>> history --clear</return>
-<return>>>> history --tail 1000 --save somefile.txt</return>
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->validateOnlyOne($input, array('show', 'head', 'tail'));
- $this->validateOnlyOne($input, array('save', 'replay', 'clear'));
-
- $history = $this->getHistorySlice(
- $input->getOption('show'),
- $input->getOption('head'),
- $input->getOption('tail')
- );
- $highlighted = false;
-
- $this->filter->bind($input);
- if ($this->filter->hasFilter()) {
- $matches = array();
- $highlighted = array();
- foreach ($history as $i => $line) {
- if ($this->filter->match($line, $matches)) {
- if (isset($matches[0])) {
- $chunks = explode($matches[0], $history[$i]);
- $chunks = array_map(array(__CLASS__, 'escape'), $chunks);
- $glue = sprintf('<urgent>%s</urgent>', self::escape($matches[0]));
-
- $highlighted[$i] = implode($glue, $chunks);
- }
- } else {
- unset($history[$i]);
- }
- }
- }
-
- if ($save = $input->getOption('save')) {
- $output->writeln(sprintf('Saving history in %s...', $save));
- file_put_contents($save, implode(PHP_EOL, $history) . PHP_EOL);
- $output->writeln('<info>History saved.</info>');
- } elseif ($input->getOption('replay')) {
- if (!($input->getOption('show') || $input->getOption('head') || $input->getOption('tail'))) {
- throw new \InvalidArgumentException('You must limit history via --head, --tail or --show before replaying.');
- }
-
- $count = count($history);
- $output->writeln(sprintf('Replaying %d line%s of history', $count, ($count !== 1) ? 's' : ''));
- $this->getApplication()->addInput($history);
- } elseif ($input->getOption('clear')) {
- $this->clearHistory();
- $output->writeln('<info>History cleared.</info>');
- } else {
- $type = $input->getOption('no-numbers') ? 0 : ShellOutput::NUMBER_LINES;
- if (!$highlighted) {
- $type = $type | ShellOutput::OUTPUT_RAW;
- }
-
- $output->page($highlighted ?: $history, $type);
- }
- }
-
- /**
- * Extract a range from a string.
- *
- * @param string $range
- *
- * @return array [ start, end ]
- */
- private function extractRange($range)
- {
- if (preg_match('/^\d+$/', $range)) {
- return array($range, $range + 1);
- }
-
- $matches = array();
- if ($range !== '..' && preg_match('/^(\d*)\.\.(\d*)$/', $range, $matches)) {
- $start = $matches[1] ? intval($matches[1]) : 0;
- $end = $matches[2] ? intval($matches[2]) + 1 : PHP_INT_MAX;
-
- return array($start, $end);
- }
-
- throw new \InvalidArgumentException('Unexpected range: ' . $range);
- }
-
- /**
- * Retrieve a slice of the readline history.
- *
- * @param string $show
- * @param string $head
- * @param string $tail
- *
- * @return array A slilce of history
- */
- private function getHistorySlice($show, $head, $tail)
- {
- $history = $this->readline->listHistory();
-
- if ($show) {
- list($start, $end) = $this->extractRange($show);
- $length = $end - $start;
- } elseif ($head) {
- if (!preg_match('/^\d+$/', $head)) {
- throw new \InvalidArgumentException('Please specify an integer argument for --head.');
- }
-
- $start = 0;
- $length = intval($head);
- } elseif ($tail) {
- if (!preg_match('/^\d+$/', $tail)) {
- throw new \InvalidArgumentException('Please specify an integer argument for --tail.');
- }
-
- $start = count($history) - $tail;
- $length = intval($tail) + 1;
- } else {
- return $history;
- }
-
- return array_slice($history, $start, $length, true);
- }
-
- /**
- * Validate that only one of the given $options is set.
- *
- * @param InputInterface $input
- * @param array $options
- */
- private function validateOnlyOne(InputInterface $input, array $options)
- {
- $count = 0;
- foreach ($options as $opt) {
- if ($input->getOption($opt)) {
- $count++;
- }
- }
-
- if ($count > 1) {
- throw new \InvalidArgumentException('Please specify only one of --' . implode(', --', $options));
- }
- }
-
- /**
- * Clear the readline history.
- */
- private function clearHistory()
- {
- $this->readline->clearHistory();
- }
-
- public static function escape($string)
- {
- return OutputFormatter::escape($string);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand.php
deleted file mode 100644
index cd38eb59..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand.php
+++ /dev/null
@@ -1,279 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Command\ListCommand\ClassConstantEnumerator;
-use Psy\Command\ListCommand\ClassEnumerator;
-use Psy\Command\ListCommand\ConstantEnumerator;
-use Psy\Command\ListCommand\FunctionEnumerator;
-use Psy\Command\ListCommand\GlobalVariableEnumerator;
-use Psy\Command\ListCommand\InterfaceEnumerator;
-use Psy\Command\ListCommand\MethodEnumerator;
-use Psy\Command\ListCommand\PropertyEnumerator;
-use Psy\Command\ListCommand\TraitEnumerator;
-use Psy\Command\ListCommand\VariableEnumerator;
-use Psy\Exception\RuntimeException;
-use Psy\Input\FilterOptions;
-use Psy\VarDumper\Presenter;
-use Psy\VarDumper\PresenterAware;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Helper\TableHelper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * List available local variables, object properties, etc.
- */
-class ListCommand extends ReflectingCommand implements PresenterAware
-{
- protected $presenter;
- protected $enumerators;
-
- /**
- * PresenterAware interface.
- *
- * @param Presenter $manager
- */
- public function setPresenter(Presenter $presenter)
- {
- $this->presenter = $presenter;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- list($grep, $insensitive, $invert) = FilterOptions::getOptions();
-
- $this
- ->setName('ls')
- ->setAliases(array('list', 'dir'))
- ->setDefinition(array(
- new InputArgument('target', InputArgument::OPTIONAL, 'A target class or object to list.', null),
-
- new InputOption('vars', '', InputOption::VALUE_NONE, 'Display variables.'),
- new InputOption('constants', 'c', InputOption::VALUE_NONE, 'Display defined constants.'),
- new InputOption('functions', 'f', InputOption::VALUE_NONE, 'Display defined functions.'),
- new InputOption('classes', 'k', InputOption::VALUE_NONE, 'Display declared classes.'),
- new InputOption('interfaces', 'I', InputOption::VALUE_NONE, 'Display declared interfaces.'),
- new InputOption('traits', 't', InputOption::VALUE_NONE, 'Display declared traits.'),
-
- new InputOption('no-inherit', '', InputOption::VALUE_NONE, 'Exclude inherited methods, properties and constants.'),
-
- new InputOption('properties', 'p', InputOption::VALUE_NONE, 'Display class or object properties (public properties by default).'),
- new InputOption('methods', 'm', InputOption::VALUE_NONE, 'Display class or object methods (public methods by default).'),
-
- $grep,
- $insensitive,
- $invert,
-
- new InputOption('globals', 'g', InputOption::VALUE_NONE, 'Include global variables.'),
- new InputOption('internal', 'n', InputOption::VALUE_NONE, 'Limit to internal functions and classes.'),
- new InputOption('user', 'u', InputOption::VALUE_NONE, 'Limit to user-defined constants, functions and classes.'),
- new InputOption('category', 'C', InputOption::VALUE_REQUIRED, 'Limit to constants in a specific category (e.g. "date").'),
-
- new InputOption('all', 'a', InputOption::VALUE_NONE, 'Include private and protected methods and properties.'),
- new InputOption('long', 'l', InputOption::VALUE_NONE, 'List in long format: includes class names and method signatures.'),
- ))
- ->setDescription('List local, instance or class variables, methods and constants.')
- ->setHelp(
- <<<'HELP'
-List variables, constants, classes, interfaces, traits, functions, methods,
-and properties.
-
-Called without options, this will return a list of variables currently in scope.
-
-If a target object is provided, list properties, constants and methods of that
-target. If a class, interface or trait name is passed instead, list constants
-and methods on that class.
-
-e.g.
-<return>>>> ls</return>
-<return>>>> ls $foo</return>
-<return>>>> ls -k --grep mongo -i</return>
-<return>>>> ls -al ReflectionClass</return>
-<return>>>> ls --constants --category date</return>
-<return>>>> ls -l --functions --grep /^array_.*/</return>
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->validateInput($input);
- $this->initEnumerators();
-
- $method = $input->getOption('long') ? 'writeLong' : 'write';
-
- if ($target = $input->getArgument('target')) {
- list($target, $reflector) = $this->getTargetAndReflector($target, true);
- } else {
- $reflector = null;
- }
-
- // @todo something cleaner than this :-/
- if ($input->getOption('long')) {
- $output->startPaging();
- }
-
- foreach ($this->enumerators as $enumerator) {
- $this->$method($output, $enumerator->enumerate($input, $reflector, $target));
- }
-
- if ($input->getOption('long')) {
- $output->stopPaging();
- }
-
- // Set some magic local variables
- if ($reflector !== null) {
- $this->setCommandScopeVariables($reflector);
- }
- }
-
- /**
- * Initialize Enumerators.
- */
- protected function initEnumerators()
- {
- if (!isset($this->enumerators)) {
- $mgr = $this->presenter;
-
- $this->enumerators = array(
- new ClassConstantEnumerator($mgr),
- new ClassEnumerator($mgr),
- new ConstantEnumerator($mgr),
- new FunctionEnumerator($mgr),
- new GlobalVariableEnumerator($mgr),
- new InterfaceEnumerator($mgr),
- new PropertyEnumerator($mgr),
- new MethodEnumerator($mgr),
- new TraitEnumerator($mgr),
- new VariableEnumerator($mgr, $this->context),
- );
- }
- }
-
- /**
- * Write the list items to $output.
- *
- * @param OutputInterface $output
- * @param null|array $result List of enumerated items
- */
- protected function write(OutputInterface $output, array $result = null)
- {
- if ($result === null) {
- return;
- }
-
- foreach ($result as $label => $items) {
- $names = array_map(array($this, 'formatItemName'), $items);
- $output->writeln(sprintf('<strong>%s</strong>: %s', $label, implode(', ', $names)));
- }
- }
-
- /**
- * Write the list items to $output.
- *
- * Items are listed one per line, and include the item signature.
- *
- * @param OutputInterface $output
- * @param null|array $result List of enumerated items
- */
- protected function writeLong(OutputInterface $output, array $result = null)
- {
- if ($result === null) {
- return;
- }
-
- $table = $this->getTable($output);
-
- foreach ($result as $label => $items) {
- $output->writeln('');
- $output->writeln(sprintf('<strong>%s:</strong>', $label));
-
- $table->setRows(array());
- foreach ($items as $item) {
- $table->addRow(array($this->formatItemName($item), $item['value']));
- }
-
- if ($table instanceof TableHelper) {
- $table->render($output);
- } else {
- $table->render();
- }
- }
- }
-
- /**
- * Format an item name given its visibility.
- *
- * @param array $item
- *
- * @return string
- */
- private function formatItemName($item)
- {
- return sprintf('<%s>%s</%s>', $item['style'], OutputFormatter::escape($item['name']), $item['style']);
- }
-
- /**
- * Validate that input options make sense, provide defaults when called without options.
- *
- * @throws RuntimeException if options are inconsistent
- *
- * @param InputInterface $input
- */
- private function validateInput(InputInterface $input)
- {
- if (!$input->getArgument('target')) {
- // if no target is passed, there can be no properties or methods
- foreach (array('properties', 'methods', 'no-inherit') as $option) {
- if ($input->getOption($option)) {
- throw new RuntimeException('--' . $option . ' does not make sense without a specified target.');
- }
- }
-
- foreach (array('globals', 'vars', 'constants', 'functions', 'classes', 'interfaces', 'traits') as $option) {
- if ($input->getOption($option)) {
- return;
- }
- }
-
- // default to --vars if no other options are passed
- $input->setOption('vars', true);
- } else {
- // if a target is passed, classes, functions, etc don't make sense
- foreach (array('vars', 'globals', 'functions', 'classes', 'interfaces', 'traits') as $option) {
- if ($input->getOption($option)) {
- throw new RuntimeException('--' . $option . ' does not make sense with a specified target.');
- }
- }
-
- foreach (array('constants', 'properties', 'methods') as $option) {
- if ($input->getOption($option)) {
- return;
- }
- }
-
- // default to --constants --properties --methods if no other options are passed
- $input->setOption('constants', true);
- $input->setOption('properties', true);
- $input->setOption('methods', true);
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassConstantEnumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassConstantEnumerator.php
deleted file mode 100644
index ff3e7ea7..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassConstantEnumerator.php
+++ /dev/null
@@ -1,128 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Psy\Reflection\ReflectionConstant;
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Class Constant Enumerator class.
- */
-class ClassConstantEnumerator extends Enumerator
-{
- /**
- * {@inheritdoc}
- */
- protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- // only list constants when a Reflector is present.
-
- if ($reflector === null) {
- return;
- }
-
- // We can only list constants on actual class (or object) reflectors.
- if (!$reflector instanceof \ReflectionClass) {
- // @todo handle ReflectionExtension as well
- return;
- }
-
- // only list constants if we are specifically asked
- if (!$input->getOption('constants')) {
- return;
- }
-
- $noInherit = $input->getOption('no-inherit');
- $constants = $this->prepareConstants($this->getConstants($reflector, $noInherit));
-
- if (empty($constants)) {
- return;
- }
-
- $ret = array();
- $ret[$this->getKindLabel($reflector)] = $constants;
-
- return $ret;
- }
-
- /**
- * Get defined constants for the given class or object Reflector.
- *
- * @param \Reflector $reflector
- * @param bool $noInherit Exclude inherited constants
- *
- * @return array
- */
- protected function getConstants(\Reflector $reflector, $noInherit = false)
- {
- $className = $reflector->getName();
-
- $constants = array();
- foreach ($reflector->getConstants() as $name => $constant) {
- $constReflector = new ReflectionConstant($reflector, $name);
-
- if ($noInherit && $constReflector->getDeclaringClass()->getName() !== $className) {
- continue;
- }
-
- $constants[$name] = $constReflector;
- }
-
- // @todo this should be natcasesort
- ksort($constants);
-
- return $constants;
- }
-
- /**
- * Prepare formatted constant array.
- *
- * @param array $constants
- *
- * @return array
- */
- protected function prepareConstants(array $constants)
- {
- // My kingdom for a generator.
- $ret = array();
-
- foreach ($constants as $name => $constant) {
- if ($this->showItem($name)) {
- $ret[$name] = array(
- 'name' => $name,
- 'style' => self::IS_CONSTANT,
- 'value' => $this->presentRef($constant->getValue()),
- );
- }
- }
-
- return $ret;
- }
-
- /**
- * Get a label for the particular kind of "class" represented.
- *
- * @param \ReflectionClass $reflector
- *
- * @return string
- */
- protected function getKindLabel(\ReflectionClass $reflector)
- {
- if ($reflector->isInterface()) {
- return 'Interface Constants';
- } elseif (method_exists($reflector, 'isTrait') && $reflector->isTrait()) {
- return 'Trait Constants';
- } else {
- return 'Class Constants';
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassEnumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassEnumerator.php
deleted file mode 100644
index 038b4643..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassEnumerator.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Class Enumerator class.
- */
-class ClassEnumerator extends Enumerator
-{
- /**
- * {@inheritdoc}
- */
- protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- // only list classes when no Reflector is present.
- //
- // @todo make a NamespaceReflector and pass that in for commands like:
- //
- // ls --classes Foo
- //
- // ... for listing classes in the Foo namespace
-
- if ($reflector !== null || $target !== null) {
- return;
- }
-
- // only list classes if we are specifically asked
- if (!$input->getOption('classes')) {
- return;
- }
-
- $classes = $this->prepareClasses(get_declared_classes());
-
- if (empty($classes)) {
- return;
- }
-
- return array(
- 'Classes' => $classes,
- );
- }
-
- /**
- * Prepare formatted class array.
- *
- * @param array $class
- *
- * @return array
- */
- protected function prepareClasses(array $classes)
- {
- natcasesort($classes);
-
- // My kingdom for a generator.
- $ret = array();
-
- foreach ($classes as $name) {
- if ($this->showItem($name)) {
- $ret[$name] = array(
- 'name' => $name,
- 'style' => self::IS_CLASS,
- 'value' => $this->presentSignature($name),
- );
- }
- }
-
- return $ret;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ConstantEnumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ConstantEnumerator.php
deleted file mode 100644
index e8479f2d..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/ConstantEnumerator.php
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Constant Enumerator class.
- */
-class ConstantEnumerator extends Enumerator
-{
- /**
- * {@inheritdoc}
- */
- protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- // only list constants when no Reflector is present.
- //
- // @todo make a NamespaceReflector and pass that in for commands like:
- //
- // ls --constants Foo
- //
- // ... for listing constants in the Foo namespace
- if ($reflector !== null || $target !== null) {
- return;
- }
-
- // only list constants if we are specifically asked
- if (!$input->getOption('constants')) {
- return;
- }
-
- $category = $input->getOption('user') ? 'user' : $input->getOption('category');
- $label = $category ? ucfirst($category) . ' Constants' : 'Constants';
- $constants = $this->prepareConstants($this->getConstants($category));
-
- if (empty($constants)) {
- return;
- }
-
- $ret = array();
- $ret[$label] = $constants;
-
- return $ret;
- }
-
- /**
- * Get defined constants.
- *
- * Optionally restrict constants to a given category, e.g. "date".
- *
- * @param string $category
- *
- * @return array
- */
- protected function getConstants($category = null)
- {
- if (!$category) {
- return get_defined_constants();
- }
-
- $consts = get_defined_constants(true);
-
- return isset($consts[$category]) ? $consts[$category] : array();
- }
-
- /**
- * Prepare formatted constant array.
- *
- * @param array $constants
- *
- * @return array
- */
- protected function prepareConstants(array $constants)
- {
- // My kingdom for a generator.
- $ret = array();
-
- $names = array_keys($constants);
- natcasesort($names);
-
- foreach ($names as $name) {
- if ($this->showItem($name)) {
- $ret[$name] = array(
- 'name' => $name,
- 'style' => self::IS_CONSTANT,
- 'value' => $this->presentRef($constants[$name]),
- );
- }
- }
-
- return $ret;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/Enumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/Enumerator.php
deleted file mode 100644
index 2508f96f..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/Enumerator.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Psy\Formatter\SignatureFormatter;
-use Psy\Input\FilterOptions;
-use Psy\Util\Mirror;
-use Psy\VarDumper\Presenter;
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Abstract Enumerator class.
- */
-abstract class Enumerator
-{
- // Output styles
- const IS_PUBLIC = 'public';
- const IS_PROTECTED = 'protected';
- const IS_PRIVATE = 'private';
- const IS_GLOBAL = 'global';
- const IS_CONSTANT = 'const';
- const IS_CLASS = 'class';
- const IS_FUNCTION = 'function';
-
- private $filter;
- private $presenter;
-
- /**
- * Enumerator constructor.
- *
- * @param Presenter $presenter
- */
- public function __construct(Presenter $presenter)
- {
- $this->filter = new FilterOptions();
- $this->presenter = $presenter;
- }
-
- /**
- * Return a list of categorized things with the given input options and target.
- *
- * @param InputInterface $input
- * @param Reflector $reflector
- * @param mixed $target
- *
- * @return array
- */
- public function enumerate(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- $this->filter->bind($input);
-
- return $this->listItems($input, $reflector, $target);
- }
-
- /**
- * Enumerate specific items with the given input options and target.
- *
- * Implementing classes should return an array of arrays:
- *
- * [
- * 'Constants' => [
- * 'FOO' => [
- * 'name' => 'FOO',
- * 'style' => 'public',
- * 'value' => '123',
- * ],
- * ],
- * ]
- *
- * @param InputInterface $input
- * @param Reflector $reflector
- * @param mixed $target
- *
- * @return array
- */
- abstract protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null);
-
- protected function showItem($name)
- {
- return $this->filter->match($name);
- }
-
- protected function presentRef($value)
- {
- return $this->presenter->presentRef($value);
- }
-
- protected function presentSignature($target)
- {
- // This might get weird if the signature is actually for a reflector. Hrm.
- if (!$target instanceof \Reflector) {
- $target = Mirror::get($target);
- }
-
- return SignatureFormatter::format($target);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/FunctionEnumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/FunctionEnumerator.php
deleted file mode 100644
index 40ba71c9..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/FunctionEnumerator.php
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Function Enumerator class.
- */
-class FunctionEnumerator extends Enumerator
-{
- /**
- * {@inheritdoc}
- */
- protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- // only list functions when no Reflector is present.
- //
- // @todo make a NamespaceReflector and pass that in for commands like:
- //
- // ls --functions Foo
- //
- // ... for listing functions in the Foo namespace
-
- if ($reflector !== null || $target !== null) {
- return;
- }
-
- // only list functions if we are specifically asked
- if (!$input->getOption('functions')) {
- return;
- }
-
- if ($input->getOption('user')) {
- $label = 'User Functions';
- $functions = $this->getFunctions('user');
- } elseif ($input->getOption('internal')) {
- $label = 'Internal Functions';
- $functions = $this->getFunctions('internal');
- } else {
- $label = 'Functions';
- $functions = $this->getFunctions();
- }
-
- $functions = $this->prepareFunctions($functions);
-
- if (empty($functions)) {
- return;
- }
-
- $ret = array();
- $ret[$label] = $functions;
-
- return $ret;
- }
-
- /**
- * Get defined functions.
- *
- * Optionally limit functions to "user" or "internal" functions.
- *
- * @param null|string $type "user" or "internal" (default: both)
- *
- * @return array
- */
- protected function getFunctions($type = null)
- {
- $funcs = get_defined_functions();
-
- if ($type) {
- return $funcs[$type];
- } else {
- return array_merge($funcs['internal'], $funcs['user']);
- }
- }
-
- /**
- * Prepare formatted function array.
- *
- * @param array $functions
- *
- * @return array
- */
- protected function prepareFunctions(array $functions)
- {
- natcasesort($functions);
-
- // My kingdom for a generator.
- $ret = array();
-
- foreach ($functions as $name) {
- if ($this->showItem($name)) {
- $ret[$name] = array(
- 'name' => $name,
- 'style' => self::IS_FUNCTION,
- 'value' => $this->presentSignature($name),
- );
- }
- }
-
- return $ret;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/GlobalVariableEnumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/GlobalVariableEnumerator.php
deleted file mode 100644
index d957e9f5..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/GlobalVariableEnumerator.php
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Global Variable Enumerator class.
- */
-class GlobalVariableEnumerator extends Enumerator
-{
- /**
- * {@inheritdoc}
- */
- protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- // only list globals when no Reflector is present.
- if ($reflector !== null || $target !== null) {
- return;
- }
-
- // only list globals if we are specifically asked
- if (!$input->getOption('globals')) {
- return;
- }
-
- $globals = $this->prepareGlobals($this->getGlobals());
-
- if (empty($globals)) {
- return;
- }
-
- return array(
- 'Global Variables' => $globals,
- );
- }
-
- /**
- * Get defined global variables.
- *
- * @return array
- */
- protected function getGlobals()
- {
- global $GLOBALS;
-
- $names = array_keys($GLOBALS);
- natcasesort($names);
-
- $ret = array();
- foreach ($names as $name) {
- $ret[$name] = $GLOBALS[$name];
- }
-
- return $ret;
- }
-
- /**
- * Prepare formatted global variable array.
- *
- * @param array $globals
- *
- * @return array
- */
- protected function prepareGlobals($globals)
- {
- // My kingdom for a generator.
- $ret = array();
-
- foreach ($globals as $name => $value) {
- if ($this->showItem($name)) {
- $fname = '$' . $name;
- $ret[$fname] = array(
- 'name' => $fname,
- 'style' => self::IS_GLOBAL,
- 'value' => $this->presentRef($value),
- );
- }
- }
-
- return $ret;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/InterfaceEnumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/InterfaceEnumerator.php
deleted file mode 100644
index b89b7506..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/InterfaceEnumerator.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Interface Enumerator class.
- */
-class InterfaceEnumerator extends Enumerator
-{
- /**
- * {@inheritdoc}
- */
- protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- // only list interfaces when no Reflector is present.
- //
- // @todo make a NamespaceReflector and pass that in for commands like:
- //
- // ls --interfaces Foo
- //
- // ... for listing interfaces in the Foo namespace
-
- if ($reflector !== null || $target !== null) {
- return;
- }
-
- // only list interfaces if we are specifically asked
- if (!$input->getOption('interfaces')) {
- return;
- }
-
- $interfaces = $this->prepareInterfaces(get_declared_interfaces());
-
- if (empty($interfaces)) {
- return;
- }
-
- return array(
- 'Interfaces' => $interfaces,
- );
- }
-
- /**
- * Prepare formatted interface array.
- *
- * @param array $interfaces
- *
- * @return array
- */
- protected function prepareInterfaces(array $interfaces)
- {
- natcasesort($interfaces);
-
- // My kingdom for a generator.
- $ret = array();
-
- foreach ($interfaces as $name) {
- if ($this->showItem($name)) {
- $ret[$name] = array(
- 'name' => $name,
- 'style' => self::IS_CLASS,
- 'value' => $this->presentSignature($name),
- );
- }
- }
-
- return $ret;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/MethodEnumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/MethodEnumerator.php
deleted file mode 100644
index 43867b96..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/MethodEnumerator.php
+++ /dev/null
@@ -1,146 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Method Enumerator class.
- */
-class MethodEnumerator extends Enumerator
-{
- /**
- * {@inheritdoc}
- */
- protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- // only list methods when a Reflector is present.
-
- if ($reflector === null) {
- return;
- }
-
- // We can only list methods on actual class (or object) reflectors.
- if (!$reflector instanceof \ReflectionClass) {
- return;
- }
-
- // only list methods if we are specifically asked
- if (!$input->getOption('methods')) {
- return;
- }
-
- $showAll = $input->getOption('all');
- $noInherit = $input->getOption('no-inherit');
- $methods = $this->prepareMethods($this->getMethods($showAll, $reflector, $noInherit));
-
- if (empty($methods)) {
- return;
- }
-
- $ret = array();
- $ret[$this->getKindLabel($reflector)] = $methods;
-
- return $ret;
- }
-
- /**
- * Get defined methods for the given class or object Reflector.
- *
- * @param bool $showAll Include private and protected methods
- * @param \Reflector $reflector
- * @param bool $noInherit Exclude inherited methods
- *
- * @return array
- */
- protected function getMethods($showAll, \Reflector $reflector, $noInherit = false)
- {
- $className = $reflector->getName();
-
- $methods = array();
- foreach ($reflector->getMethods() as $name => $method) {
- if ($noInherit && $method->getDeclaringClass()->getName() !== $className) {
- continue;
- }
-
- if ($showAll || $method->isPublic()) {
- $methods[$method->getName()] = $method;
- }
- }
-
- // @todo this should be natcasesort
- ksort($methods);
-
- return $methods;
- }
-
- /**
- * Prepare formatted method array.
- *
- * @param array $methods
- *
- * @return array
- */
- protected function prepareMethods(array $methods)
- {
- // My kingdom for a generator.
- $ret = array();
-
- foreach ($methods as $name => $method) {
- if ($this->showItem($name)) {
- $ret[$name] = array(
- 'name' => $name,
- 'style' => $this->getVisibilityStyle($method),
- 'value' => $this->presentSignature($method),
- );
- }
- }
-
- return $ret;
- }
-
- /**
- * Get a label for the particular kind of "class" represented.
- *
- * @param \ReflectionClass $reflector
- *
- * @return string
- */
- protected function getKindLabel(\ReflectionClass $reflector)
- {
- if ($reflector->isInterface()) {
- return 'Interface Methods';
- } elseif (method_exists($reflector, 'isTrait') && $reflector->isTrait()) {
- return 'Trait Methods';
- } else {
- return 'Class Methods';
- }
- }
-
- /**
- * Get output style for the given method's visibility.
- *
- * @param \ReflectionMethod $method
- *
- * @return string
- */
- private function getVisibilityStyle(\ReflectionMethod $method)
- {
- if ($method->isPublic()) {
- return self::IS_PUBLIC;
- } elseif ($method->isProtected()) {
- return self::IS_PROTECTED;
- } else {
- return self::IS_PRIVATE;
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/PropertyEnumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/PropertyEnumerator.php
deleted file mode 100644
index f36a582c..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/PropertyEnumerator.php
+++ /dev/null
@@ -1,181 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Property Enumerator class.
- */
-class PropertyEnumerator extends Enumerator
-{
- /**
- * {@inheritdoc}
- */
- protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- // only list properties when a Reflector is present.
-
- if ($reflector === null) {
- return;
- }
-
- // We can only list properties on actual class (or object) reflectors.
- if (!$reflector instanceof \ReflectionClass) {
- return;
- }
-
- // only list properties if we are specifically asked
- if (!$input->getOption('properties')) {
- return;
- }
-
- $showAll = $input->getOption('all');
- $noInherit = $input->getOption('no-inherit');
- $properties = $this->prepareProperties($this->getProperties($showAll, $reflector, $noInherit), $target);
-
- if (empty($properties)) {
- return;
- }
-
- $ret = array();
- $ret[$this->getKindLabel($reflector)] = $properties;
-
- return $ret;
- }
-
- /**
- * Get defined properties for the given class or object Reflector.
- *
- * @param bool $showAll Include private and protected properties
- * @param \Reflector $reflector
- * @param bool $noInherit Exclude inherited properties
- *
- * @return array
- */
- protected function getProperties($showAll, \Reflector $reflector, $noInherit = false)
- {
- $className = $reflector->getName();
-
- $properties = array();
- foreach ($reflector->getProperties() as $property) {
- if ($noInherit && $property->getDeclaringClass()->getName() !== $className) {
- continue;
- }
-
- if ($showAll || $property->isPublic()) {
- $properties[$property->getName()] = $property;
- }
- }
-
- // @todo this should be natcasesort
- ksort($properties);
-
- return $properties;
- }
-
- /**
- * Prepare formatted property array.
- *
- * @param array $properties
- *
- * @return array
- */
- protected function prepareProperties(array $properties, $target = null)
- {
- // My kingdom for a generator.
- $ret = array();
-
- foreach ($properties as $name => $property) {
- if ($this->showItem($name)) {
- $fname = '$' . $name;
- $ret[$fname] = array(
- 'name' => $fname,
- 'style' => $this->getVisibilityStyle($property),
- 'value' => $this->presentValue($property, $target),
- );
- }
- }
-
- return $ret;
- }
-
- /**
- * Get a label for the particular kind of "class" represented.
- *
- * @param \ReflectionClass $reflector
- *
- * @return string
- */
- protected function getKindLabel(\ReflectionClass $reflector)
- {
- if ($reflector->isInterface()) {
- return 'Interface Properties';
- } elseif (method_exists($reflector, 'isTrait') && $reflector->isTrait()) {
- return 'Trait Properties';
- } else {
- return 'Class Properties';
- }
- }
-
- /**
- * Get output style for the given property's visibility.
- *
- * @param \ReflectionProperty $property
- *
- * @return string
- */
- private function getVisibilityStyle(\ReflectionProperty $property)
- {
- if ($property->isPublic()) {
- return self::IS_PUBLIC;
- } elseif ($property->isProtected()) {
- return self::IS_PROTECTED;
- } else {
- return self::IS_PRIVATE;
- }
- }
-
- /**
- * Present the $target's current value for a reflection property.
- *
- * @param \ReflectionProperty $property
- * @param mixed $target
- *
- * @return string
- */
- protected function presentValue(\ReflectionProperty $property, $target)
- {
- // If $target is a class, trait or interface (try to) get the default
- // value for the property.
- if (!is_object($target)) {
- try {
- $refl = new \ReflectionClass($target);
- $props = $refl->getDefaultProperties();
- if (array_key_exists($property->name, $props)) {
- $suffix = $property->isStatic() ? '' : ' <aside>(default)</aside>';
-
- return $this->presentRef($props[$property->name]) . $suffix;
- }
- } catch (\Exception $e) {
- // Well, we gave it a shot.
- }
-
- return '';
- }
-
- $property->setAccessible(true);
- $value = $property->getValue($target);
-
- return $this->presentRef($value);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/TraitEnumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/TraitEnumerator.php
deleted file mode 100644
index 615bfd37..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/TraitEnumerator.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Trait Enumerator class.
- */
-class TraitEnumerator extends Enumerator
-{
- /**
- * {@inheritdoc}
- */
- protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- // bail early if current PHP doesn't know about traits.
- if (!function_exists('trait_exists')) {
- return;
- }
-
- // only list traits when no Reflector is present.
- //
- // @todo make a NamespaceReflector and pass that in for commands like:
- //
- // ls --traits Foo
- //
- // ... for listing traits in the Foo namespace
-
- if ($reflector !== null || $target !== null) {
- return;
- }
-
- // only list traits if we are specifically asked
- if (!$input->getOption('traits')) {
- return;
- }
-
- $traits = $this->prepareTraits(get_declared_traits());
-
- if (empty($traits)) {
- return;
- }
-
- return array(
- 'Traits' => $traits,
- );
- }
-
- /**
- * Prepare formatted trait array.
- *
- * @param array $traits
- *
- * @return array
- */
- protected function prepareTraits(array $traits)
- {
- natcasesort($traits);
-
- // My kingdom for a generator.
- $ret = array();
-
- foreach ($traits as $name) {
- if ($this->showItem($name)) {
- $ret[$name] = array(
- 'name' => $name,
- 'style' => self::IS_CLASS,
- 'value' => $this->presentSignature($name),
- );
- }
- }
-
- return $ret;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/VariableEnumerator.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/VariableEnumerator.php
deleted file mode 100644
index ba16e796..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ListCommand/VariableEnumerator.php
+++ /dev/null
@@ -1,138 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command\ListCommand;
-
-use Psy\Context;
-use Psy\VarDumper\Presenter;
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * Variable Enumerator class.
- */
-class VariableEnumerator extends Enumerator
-{
- // n.b. this array is the order in which special variables will be listed
- private static $specialNames = array(
- '_', '_e', '__function', '__method', '__class', '__namespace', '__file', '__line', '__dir',
- );
-
- private $context;
-
- /**
- * Variable Enumerator constructor.
- *
- * Unlike most other enumerators, the Variable Enumerator needs access to
- * the current scope variables, so we need to pass it a Context instance.
- *
- * @param Presenter $presenter
- * @param Context $context
- */
- public function __construct(Presenter $presenter, Context $context)
- {
- $this->context = $context;
- parent::__construct($presenter);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function listItems(InputInterface $input, \Reflector $reflector = null, $target = null)
- {
- // only list variables when no Reflector is present.
- if ($reflector !== null || $target !== null) {
- return;
- }
-
- // only list variables if we are specifically asked
- if (!$input->getOption('vars')) {
- return;
- }
-
- $showAll = $input->getOption('all');
- $variables = $this->prepareVariables($this->getVariables($showAll));
-
- if (empty($variables)) {
- return;
- }
-
- return array(
- 'Variables' => $variables,
- );
- }
-
- /**
- * Get scope variables.
- *
- * @param bool $showAll Include special variables (e.g. $_)
- *
- * @return array
- */
- protected function getVariables($showAll)
- {
- $scopeVars = $this->context->getAll();
- uksort($scopeVars, function ($a, $b) {
- $aIndex = array_search($a, self::$specialNames);
- $bIndex = array_search($b, self::$specialNames);
-
- if ($aIndex !== false) {
- if ($bIndex !== false) {
- return $aIndex - $bIndex;
- }
-
- return 1;
- }
-
- if ($bIndex !== false) {
- return -1;
- }
-
- // @todo this should be natcasesort
- return strcasecmp($a, $b);
- });
-
- $ret = array();
- foreach ($scopeVars as $name => $val) {
- if (!$showAll && in_array($name, self::$specialNames)) {
- continue;
- }
-
- $ret[$name] = $val;
- }
-
- return $ret;
- }
-
- /**
- * Prepare formatted variable array.
- *
- * @param array $variables
- *
- * @return array
- */
- protected function prepareVariables(array $variables)
- {
- // My kingdom for a generator.
- $ret = array();
- foreach ($variables as $name => $val) {
- if ($this->showItem($name)) {
- $fname = '$' . $name;
- $ret[$fname] = array(
- 'name' => $fname,
- 'style' => in_array($name, self::$specialNames) ? self::IS_PRIVATE : self::IS_PUBLIC,
- 'value' => $this->presentRef($val),
- );
- }
- }
-
- return $ret;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ParseCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ParseCommand.php
deleted file mode 100644
index 72fab26f..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ParseCommand.php
+++ /dev/null
@@ -1,160 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use PhpParser\Node;
-use PhpParser\Parser;
-use Psy\Input\CodeArgument;
-use Psy\ParserFactory;
-use Psy\VarDumper\Presenter;
-use Psy\VarDumper\PresenterAware;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\VarDumper\Caster\Caster;
-
-/**
- * Parse PHP code and show the abstract syntax tree.
- */
-class ParseCommand extends Command implements PresenterAware
-{
- private $presenter;
- private $parserFactory;
- private $parsers;
-
- /**
- * {@inheritdoc}
- */
- public function __construct($name = null)
- {
- $this->parserFactory = new ParserFactory();
- $this->parsers = array();
-
- parent::__construct($name);
- }
-
- /**
- * PresenterAware interface.
- *
- * @param Presenter $presenter
- */
- public function setPresenter(Presenter $presenter)
- {
- $this->presenter = clone $presenter;
- $this->presenter->addCasters(array(
- 'PhpParser\Node' => function (Node $node, array $a) {
- $a = array(
- Caster::PREFIX_VIRTUAL . 'type' => $node->getType(),
- Caster::PREFIX_VIRTUAL . 'attributes' => $node->getAttributes(),
- );
-
- foreach ($node->getSubNodeNames() as $name) {
- $a[Caster::PREFIX_VIRTUAL . $name] = $node->$name;
- }
-
- return $a;
- },
- ));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $definition = array(
- new CodeArgument('code', InputArgument::REQUIRED, 'PHP code to parse.'),
- new InputOption('depth', '', InputOption::VALUE_REQUIRED, 'Depth to parse', 10),
- );
-
- if ($this->parserFactory->hasKindsSupport()) {
- $msg = 'One of PhpParser\\ParserFactory constants: '
- . implode(', ', ParserFactory::getPossibleKinds())
- . " (default is based on current interpreter's version)";
- $defaultKind = $this->parserFactory->getDefaultKind();
-
- $definition[] = new InputOption('kind', '', InputOption::VALUE_REQUIRED, $msg, $defaultKind);
- }
-
- $this
- ->setName('parse')
- ->setDefinition($definition)
- ->setDescription('Parse PHP code and show the abstract syntax tree.')
- ->setHelp(
- <<<'HELP'
-Parse PHP code and show the abstract syntax tree.
-
-This command is used in the development of PsySH. Given a string of PHP code,
-it pretty-prints the PHP Parser parse tree.
-
-See https://github.com/nikic/PHP-Parser
-
-It prolly won't be super useful for most of you, but it's here if you want to play.
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $code = $input->getArgument('code');
- if (strpos('<?', $code) === false) {
- $code = '<?php ' . $code;
- }
-
- $parserKind = $this->parserFactory->hasKindsSupport() ? $input->getOption('kind') : null;
- $depth = $input->getOption('depth');
- $nodes = $this->parse($this->getParser($parserKind), $code);
- $output->page($this->presenter->present($nodes, $depth));
- }
-
- /**
- * Lex and parse a string of code into statements.
- *
- * @param Parser $parser
- * @param string $code
- *
- * @return array Statements
- */
- private function parse(Parser $parser, $code)
- {
- try {
- return $parser->parse($code);
- } catch (\PhpParser\Error $e) {
- if (strpos($e->getMessage(), 'unexpected EOF') === false) {
- throw $e;
- }
-
- // If we got an unexpected EOF, let's try it again with a semicolon.
- return $parser->parse($code . ';');
- }
- }
-
- /**
- * Get (or create) the Parser instance.
- *
- * @param string|null $kind One of Psy\ParserFactory constants (only for PHP parser 2.0 and above)
- *
- * @return Parser
- */
- private function getParser($kind = null)
- {
- if (!array_key_exists($kind, $this->parsers)) {
- $this->parsers[$kind] = $this->parserFactory->createParser($kind);
- }
-
- return $this->parsers[$kind];
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/PsyVersionCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/PsyVersionCommand.php
deleted file mode 100644
index c245e0c5..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/PsyVersionCommand.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * A dumb little command for printing out the current Psy Shell version.
- */
-class PsyVersionCommand extends Command
-{
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('version')
- ->setDefinition(array())
- ->setDescription('Show Psy Shell version.')
- ->setHelp('Show Psy Shell version.');
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $output->writeln($this->getApplication()->getVersion());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ReflectingCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ReflectingCommand.php
deleted file mode 100644
index 55c7005a..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ReflectingCommand.php
+++ /dev/null
@@ -1,256 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Context;
-use Psy\ContextAware;
-use Psy\Exception\RuntimeException;
-use Psy\Util\Mirror;
-
-/**
- * An abstract command with helpers for inspecting the current context.
- */
-abstract class ReflectingCommand extends Command implements ContextAware
-{
- const CLASS_OR_FUNC = '/^[\\\\\w]+$/';
- const INSTANCE = '/^\$(\w+)$/';
- const CLASS_MEMBER = '/^([\\\\\w]+)::(\w+)$/';
- const CLASS_STATIC = '/^([\\\\\w]+)::\$(\w+)$/';
- const INSTANCE_MEMBER = '/^\$(\w+)(::|->)(\w+)$/';
- const INSTANCE_STATIC = '/^\$(\w+)::\$(\w+)$/';
- const SUPERGLOBAL = '/^\$(GLOBALS|_(?:SERVER|ENV|FILES|COOKIE|POST|GET|SESSION))$/';
-
- /**
- * Context instance (for ContextAware interface).
- *
- * @var Context
- */
- protected $context;
-
- /**
- * ContextAware interface.
- *
- * @param Context $context
- */
- public function setContext(Context $context)
- {
- $this->context = $context;
- }
-
- /**
- * Get the target for a value.
- *
- * @throws \InvalidArgumentException when the value specified can't be resolved
- *
- * @param string $valueName Function, class, variable, constant, method or property name
- * @param bool $classOnly True if the name should only refer to a class, function or instance
- *
- * @return array (class or instance name, member name, kind)
- */
- protected function getTarget($valueName, $classOnly = false)
- {
- $valueName = trim($valueName);
- $matches = array();
- switch (true) {
- case preg_match(self::SUPERGLOBAL, $valueName, $matches):
- // @todo maybe do something interesting with these at some point?
- if (array_key_exists($matches[1], $GLOBALS)) {
- throw new RuntimeException('Unable to inspect a non-object');
- } else {
- throw new RuntimeException('Unknown target: ' . $valueName);
- }
-
- case preg_match(self::CLASS_OR_FUNC, $valueName, $matches):
- return array($this->resolveName($matches[0], true), null, 0);
-
- case preg_match(self::INSTANCE, $valueName, $matches):
- return array($this->resolveInstance($matches[1]), null, 0);
-
- case !$classOnly && preg_match(self::CLASS_MEMBER, $valueName, $matches):
- return array($this->resolveName($matches[1]), $matches[2], Mirror::CONSTANT | Mirror::METHOD);
-
- case !$classOnly && preg_match(self::CLASS_STATIC, $valueName, $matches):
- return array($this->resolveName($matches[1]), $matches[2], Mirror::STATIC_PROPERTY | Mirror::PROPERTY);
-
- case !$classOnly && preg_match(self::INSTANCE_MEMBER, $valueName, $matches):
- if ($matches[2] === '->') {
- $kind = Mirror::METHOD | Mirror::PROPERTY;
- } else {
- $kind = Mirror::CONSTANT | Mirror::METHOD;
- }
-
- return array($this->resolveInstance($matches[1]), $matches[3], $kind);
-
- case !$classOnly && preg_match(self::INSTANCE_STATIC, $valueName, $matches):
- return array($this->resolveInstance($matches[1]), $matches[2], Mirror::STATIC_PROPERTY);
-
- default:
- throw new RuntimeException('Unknown target: ' . $valueName);
- }
- }
-
- /**
- * Resolve a class or function name (with the current shell namespace).
- *
- * @param string $name
- * @param bool $includeFunctions (default: false)
- *
- * @return string
- */
- protected function resolveName($name, $includeFunctions = false)
- {
- if (substr($name, 0, 1) === '\\') {
- return $name;
- }
-
- if ($namespace = $this->getApplication()->getNamespace()) {
- $fullName = $namespace . '\\' . $name;
-
- if (class_exists($fullName) || interface_exists($fullName) || ($includeFunctions && function_exists($fullName))) {
- return $fullName;
- }
- }
-
- return $name;
- }
-
- /**
- * Get a Reflector and documentation for a function, class or instance, constant, method or property.
- *
- * @param string $valueName Function, class, variable, constant, method or property name
- * @param bool $classOnly True if the name should only refer to a class, function or instance
- *
- * @return array (value, Reflector)
- */
- protected function getTargetAndReflector($valueName, $classOnly = false)
- {
- list($value, $member, $kind) = $this->getTarget($valueName, $classOnly);
-
- return array($value, Mirror::get($value, $member, $kind));
- }
-
- /**
- * Return a variable instance from the current scope.
- *
- * @throws \InvalidArgumentException when the requested variable does not exist in the current scope
- *
- * @param string $name
- *
- * @return mixed Variable instance
- */
- protected function resolveInstance($name)
- {
- $value = $this->getScopeVariable($name);
- if (!is_object($value)) {
- throw new RuntimeException('Unable to inspect a non-object');
- }
-
- return $value;
- }
-
- /**
- * Get a variable from the current shell scope.
- *
- * @param string $name
- *
- * @return mixed
- */
- protected function getScopeVariable($name)
- {
- return $this->context->get($name);
- }
-
- /**
- * Get all scope variables from the current shell scope.
- *
- * @return array
- */
- protected function getScopeVariables()
- {
- return $this->context->getAll();
- }
-
- /**
- * Given a Reflector instance, set command-scope variables in the shell
- * execution context. This is used to inject magic $__class, $__method and
- * $__file variables (as well as a handful of others).
- *
- * @param \Reflector $reflector
- */
- protected function setCommandScopeVariables(\Reflector $reflector)
- {
- $vars = array();
-
- switch (get_class($reflector)) {
- case 'ReflectionClass':
- case 'ReflectionObject':
- $vars['__class'] = $reflector->name;
- if ($reflector->inNamespace()) {
- $vars['__namespace'] = $reflector->getNamespaceName();
- }
- break;
-
- case 'ReflectionMethod':
- $vars['__method'] = sprintf('%s::%s', $reflector->class, $reflector->name);
- $vars['__class'] = $reflector->class;
- $classReflector = $reflector->getDeclaringClass();
- if ($classReflector->inNamespace()) {
- $vars['__namespace'] = $classReflector->getNamespaceName();
- }
- break;
-
- case 'ReflectionFunction':
- $vars['__function'] = $reflector->name;
- if ($reflector->inNamespace()) {
- $vars['__namespace'] = $reflector->getNamespaceName();
- }
- break;
-
- case 'ReflectionGenerator':
- $funcReflector = $reflector->getFunction();
- $vars['__function'] = $funcReflector->name;
- if ($funcReflector->inNamespace()) {
- $vars['__namespace'] = $funcReflector->getNamespaceName();
- }
- if ($fileName = $reflector->getExecutingFile()) {
- $vars['__file'] = $fileName;
- $vars['__line'] = $reflector->getExecutingLine();
- $vars['__dir'] = dirname($fileName);
- }
- break;
-
- case 'ReflectionProperty':
- case 'Psy\Reflection\ReflectionConstant':
- $classReflector = $reflector->getDeclaringClass();
- $vars['__class'] = $classReflector->name;
- if ($classReflector->inNamespace()) {
- $vars['__namespace'] = $classReflector->getNamespaceName();
- }
- // no line for these, but this'll do
- if ($fileName = $reflector->getDeclaringClass()->getFileName()) {
- $vars['__file'] = $fileName;
- $vars['__dir'] = dirname($fileName);
- }
- break;
- }
-
- if ($reflector instanceof \ReflectionClass || $reflector instanceof \ReflectionFunctionAbstract) {
- if ($fileName = $reflector->getFileName()) {
- $vars['__file'] = $fileName;
- $vars['__line'] = $reflector->getStartLine();
- $vars['__dir'] = dirname($fileName);
- }
- }
-
- $this->context->setCommandScopeVariables($vars);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ShowCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ShowCommand.php
deleted file mode 100644
index 024b72c2..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ShowCommand.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Configuration;
-use Psy\Exception\RuntimeException;
-use Psy\Formatter\CodeFormatter;
-use Psy\Formatter\SignatureFormatter;
-use Psy\Output\ShellOutput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Show the code for an object, class, constant, method or property.
- */
-class ShowCommand extends ReflectingCommand
-{
- private $colorMode;
-
- /**
- * @param null|string $colorMode (default: null)
- */
- public function __construct($colorMode = null)
- {
- $this->colorMode = $colorMode ?: Configuration::COLOR_MODE_AUTO;
-
- return parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('show')
- ->setDefinition(array(
- new InputArgument('value', InputArgument::REQUIRED, 'Function, class, instance, constant, method or property to show.'),
- ))
- ->setDescription('Show the code for an object, class, constant, method or property.')
- ->setHelp(
- <<<HELP
-Show the code for an object, class, constant, method or property.
-
-e.g.
-<return>>>> show \$myObject</return>
-<return>>>> show Psy\Shell::debug</return>
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- list($value, $reflector) = $this->getTargetAndReflector($input->getArgument('value'));
-
- // Set some magic local variables
- $this->setCommandScopeVariables($reflector);
-
- try {
- $output->page(CodeFormatter::format($reflector, $this->colorMode), ShellOutput::OUTPUT_RAW);
- } catch (RuntimeException $e) {
- $output->writeln(SignatureFormatter::format($reflector));
- throw $e;
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/SudoCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/SudoCommand.php
deleted file mode 100644
index 1a0a6552..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/SudoCommand.php
+++ /dev/null
@@ -1,143 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use PhpParser\NodeTraverser;
-use PhpParser\PrettyPrinter\Standard as Printer;
-use Psy\Input\CodeArgument;
-use Psy\ParserFactory;
-use Psy\Readline\Readline;
-use Psy\Sudo\SudoVisitor;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Evaluate PHP code, bypassing visibility restrictions.
- */
-class SudoCommand extends Command
-{
- private $readline;
- private $parser;
- private $traverser;
- private $printer;
-
- /**
- * {@inheritdoc}
- */
- public function __construct($name = null)
- {
- $parserFactory = new ParserFactory();
- $this->parser = $parserFactory->createParser();
-
- $this->traverser = new NodeTraverser();
- $this->traverser->addVisitor(new SudoVisitor());
-
- $this->printer = new Printer();
-
- parent::__construct($name);
- }
-
- /**
- * Set the Shell's Readline service.
- *
- * @param Readline $readline
- */
- public function setReadline(Readline $readline)
- {
- $this->readline = $readline;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('sudo')
- ->setDefinition(array(
- new CodeArgument('code', InputArgument::REQUIRED, 'Code to execute.'),
- ))
- ->setDescription('Evaluate PHP code, bypassing visibility restrictions.')
- ->setHelp(
- <<<'HELP'
-Evaluate PHP code, bypassing visibility restrictions.
-
-e.g.
-<return>>>> $sekret->whisper("hi")</return>
-<return>PHP error: Call to private method Sekret::whisper() from context '' on line 1</return>
-
-<return>>>> sudo $sekret->whisper("hi")</return>
-<return>=> "hi"</return>
-
-<return>>>> $sekret->word</return>
-<return>PHP error: Cannot access private property Sekret::$word on line 1</return>
-
-<return>>>> sudo $sekret->word</return>
-<return>=> "hi"</return>
-
-<return>>>> $sekret->word = "please"</return>
-<return>PHP error: Cannot access private property Sekret::$word on line 1</return>
-
-<return>>>> sudo $sekret->word = "please"</return>
-<return>=> "please"</return>
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $code = $input->getArgument('code');
-
- // special case for !!
- if ($code === '!!') {
- $history = $this->readline->listHistory();
- if (count($history) < 2) {
- throw new \InvalidArgumentException('No previous command to replay');
- }
- $code = $history[count($history) - 2];
- }
-
- if (strpos('<?', $code) === false) {
- $code = '<?php ' . $code;
- }
-
- $nodes = $this->traverser->traverse($this->parse($code));
-
- $sudoCode = $this->printer->prettyPrint($nodes);
- $this->getApplication()->addInput($sudoCode, true);
- }
-
- /**
- * Lex and parse a string of code into statements.
- *
- * @param string $code
- *
- * @return array Statements
- */
- private function parse($code)
- {
- try {
- return $this->parser->parse($code);
- } catch (\PhpParser\Error $e) {
- if (strpos($e->getMessage(), 'unexpected EOF') === false) {
- throw $e;
- }
-
- // If we got an unexpected EOF, let's try it again with a semicolon.
- return $this->parser->parse($code . ';');
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/ThrowUpCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/ThrowUpCommand.php
deleted file mode 100644
index 34bf425f..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/ThrowUpCommand.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Context;
-use Psy\ContextAware;
-use Psy\Exception\ThrowUpException;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Throw an exception out of the Psy Shell.
- */
-class ThrowUpCommand extends Command implements ContextAware
-{
- /**
- * Context instance (for ContextAware interface).
- *
- * @var Context
- */
- protected $context;
-
- /**
- * ContextAware interface.
- *
- * @param Context $context
- */
- public function setContext(Context $context)
- {
- $this->context = $context;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('throw-up')
- ->setDefinition(array(
- new InputArgument('exception', InputArgument::OPTIONAL, 'Exception to throw'),
- ))
- ->setDescription('Throw an exception out of the Psy Shell.')
- ->setHelp(
- <<<'HELP'
-Throws an exception out of the current the Psy Shell instance.
-
-By default it throws the most recent exception.
-
-e.g.
-<return>>>> throw-up</return>
-<return>>>> throw-up $e</return>
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- *
- * @throws InvalidArgumentException if there is no exception to throw
- * @throws ThrowUpException because what else do you expect it to do?
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- if ($name = $input->getArgument('exception')) {
- $orig = $this->context->get(preg_replace('/^\$/', '', $name));
- } else {
- $orig = $this->context->getLastException();
- }
-
- if (!$orig instanceof \Exception) {
- throw new \InvalidArgumentException('throw-up can only throw Exceptions');
- }
-
- throw new ThrowUpException($orig);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/TraceCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/TraceCommand.php
deleted file mode 100644
index 00e5903f..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/TraceCommand.php
+++ /dev/null
@@ -1,167 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Input\FilterOptions;
-use Psy\Output\ShellOutput;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Show the current stack trace.
- */
-class TraceCommand extends Command
-{
- protected $filter;
-
- /**
- * {@inheritdoc}
- */
- public function __construct($name = null)
- {
- $this->filter = new FilterOptions();
-
- parent::__construct($name);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- list($grep, $insensitive, $invert) = FilterOptions::getOptions();
-
- $this
- ->setName('trace')
- ->setDefinition(array(
- new InputOption('include-psy', 'p', InputOption::VALUE_NONE, 'Include Psy in the call stack.'),
- new InputOption('num', 'n', InputOption::VALUE_REQUIRED, 'Only include NUM lines.'),
-
- $grep,
- $insensitive,
- $invert,
- ))
- ->setDescription('Show the current call stack.')
- ->setHelp(
- <<<'HELP'
-Show the current call stack.
-
-Optionally, include PsySH in the call stack by passing the <info>--include-psy</info> option.
-
-e.g.
-<return>> trace -n10</return>
-<return>> trace --include-psy</return>
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->filter->bind($input);
- $trace = $this->getBacktrace(new \Exception(), $input->getOption('num'), $input->getOption('include-psy'));
- $output->page($trace, ShellOutput::NUMBER_LINES);
- }
-
- /**
- * Get a backtrace for an exception.
- *
- * Optionally limit the number of rows to include with $count, and exclude
- * Psy from the trace.
- *
- * @param \Exception $e The exception with a backtrace
- * @param int $count (default: PHP_INT_MAX)
- * @param bool $includePsy (default: true)
- *
- * @return array Formatted stacktrace lines
- */
- protected function getBacktrace(\Exception $e, $count = null, $includePsy = true)
- {
- if ($cwd = getcwd()) {
- $cwd = rtrim($cwd, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
- }
-
- if ($count === null) {
- $count = PHP_INT_MAX;
- }
-
- $lines = array();
-
- $trace = $e->getTrace();
- array_unshift($trace, array(
- 'function' => '',
- 'file' => $e->getFile() !== null ? $e->getFile() : 'n/a',
- 'line' => $e->getLine() !== null ? $e->getLine() : 'n/a',
- 'args' => array(),
- ));
-
- if (!$includePsy) {
- for ($i = count($trace) - 1; $i >= 0; $i--) {
- $thing = isset($trace[$i]['class']) ? $trace[$i]['class'] : $trace[$i]['function'];
- if (preg_match('/\\\\?Psy\\\\/', $thing)) {
- $trace = array_slice($trace, $i + 1);
- break;
- }
- }
- }
-
- for ($i = 0, $count = min($count, count($trace)); $i < $count; $i++) {
- $class = isset($trace[$i]['class']) ? $trace[$i]['class'] : '';
- $type = isset($trace[$i]['type']) ? $trace[$i]['type'] : '';
- $function = $trace[$i]['function'];
- $file = isset($trace[$i]['file']) ? $this->replaceCwd($cwd, $trace[$i]['file']) : 'n/a';
- $line = isset($trace[$i]['line']) ? $trace[$i]['line'] : 'n/a';
-
- // Leave execution loop out of the `eval()'d code` lines
- if (preg_match("#/Psy/ExecutionLoop/Loop.php\(\d+\) : eval\(\)'d code$#", $file)) {
- $file = "eval()'d code";
- }
-
- // Skip any lines that don't match our filter options
- if (!$this->filter->match(sprintf('%s%s%s() at %s:%s', $class, $type, $function, $file, $line))) {
- continue;
- }
-
- $lines[] = sprintf(
- ' <class>%s</class>%s%s() at <info>%s:%s</info>',
- OutputFormatter::escape($class),
- OutputFormatter::escape($type),
- OutputFormatter::escape($function),
- OutputFormatter::escape($file),
- OutputFormatter::escape($line)
- );
- }
-
- return $lines;
- }
-
- /**
- * Replace the given directory from the start of a filepath.
- *
- * @param string $cwd
- * @param string $file
- *
- * @return string
- */
- private function replaceCwd($cwd, $file)
- {
- if ($cwd === false) {
- return $file;
- } else {
- return preg_replace('/^' . preg_quote($cwd, '/') . '/', '', $file);
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/WhereamiCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/WhereamiCommand.php
deleted file mode 100644
index 6dd3c339..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/WhereamiCommand.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use JakubOnderka\PhpConsoleHighlighter\Highlighter;
-use Psy\Configuration;
-use Psy\ConsoleColorFactory;
-use Psy\Output\ShellOutput;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Show the context of where you opened the debugger.
- */
-class WhereamiCommand extends Command
-{
- private $colorMode;
-
- /**
- * @param null|string $colorMode (default: null)
- */
- public function __construct($colorMode = null)
- {
- $this->colorMode = $colorMode ?: Configuration::COLOR_MODE_AUTO;
-
- if (version_compare(PHP_VERSION, '5.3.6', '>=')) {
- $this->backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
- } else {
- $this->backtrace = debug_backtrace();
- }
-
- return parent::__construct();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('whereami')
- ->setDefinition(array(
- new InputOption('num', 'n', InputOption::VALUE_OPTIONAL, 'Number of lines before and after.', '5'),
- ))
- ->setDescription('Show where you are in the code.')
- ->setHelp(
- <<<'HELP'
-Show where you are in the code.
-
-Optionally, include how many lines before and after you want to display.
-
-e.g.
-<return>> whereami </return>
-<return>> whereami -n10</return>
-HELP
- );
- }
-
- /**
- * Obtains the correct trace in the full backtrace.
- *
- * @return array
- */
- protected function trace()
- {
- foreach ($this->backtrace as $i => $backtrace) {
- if (!isset($backtrace['class'], $backtrace['function'])) {
- continue;
- }
- $correctClass = $backtrace['class'] === 'Psy\Shell';
- $correctFunction = $backtrace['function'] === 'debug';
- if ($correctClass && $correctFunction) {
- return $backtrace;
- }
- }
-
- return end($this->backtrace);
- }
-
- /**
- * Determine the file and line based on the specific backtrace.
- *
- * @return array
- */
- protected function fileInfo()
- {
- $backtrace = $this->trace();
- if (preg_match('/eval\(/', $backtrace['file'])) {
- preg_match_all('/([^\(]+)\((\d+)/', $backtrace['file'], $matches);
- $file = $matches[1][0];
- $line = (int) $matches[2][0];
- } else {
- $file = $backtrace['file'];
- $line = $backtrace['line'];
- }
-
- return compact('file', 'line');
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $info = $this->fileInfo();
- $num = $input->getOption('num');
- $factory = new ConsoleColorFactory($this->colorMode);
- $colors = $factory->getConsoleColor();
- $highlighter = new Highlighter($colors);
- $contents = file_get_contents($info['file']);
- $output->page($highlighter->getCodeSnippet($contents, $info['line'], $num, $num), ShellOutput::OUTPUT_RAW);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Command/WtfCommand.php b/www/wiki/vendor/psy/psysh/src/Psy/Command/WtfCommand.php
deleted file mode 100644
index 2e5c00ce..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Command/WtfCommand.php
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Command;
-
-use Psy\Context;
-use Psy\ContextAware;
-use Psy\Input\FilterOptions;
-use Psy\Output\ShellOutput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Show the last uncaught exception.
- */
-class WtfCommand extends TraceCommand implements ContextAware
-{
- /**
- * Context instance (for ContextAware interface).
- *
- * @var Context
- */
- protected $context;
-
- /**
- * ContextAware interface.
- *
- * @param Context $context
- */
- public function setContext(Context $context)
- {
- $this->context = $context;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- list($grep, $insensitive, $invert) = FilterOptions::getOptions();
-
- $this
- ->setName('wtf')
- ->setAliases(array('last-exception', 'wtf?'))
- ->setDefinition(array(
- new InputArgument('incredulity', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Number of lines to show'),
- new InputOption('all', 'a', InputOption::VALUE_NONE, 'Show entire backtrace.'),
-
- $grep,
- $insensitive,
- $invert,
- ))
- ->setDescription('Show the backtrace of the most recent exception.')
- ->setHelp(
- <<<'HELP'
-Shows a few lines of the backtrace of the most recent exception.
-
-If you want to see more lines, add more question marks or exclamation marks:
-
-e.g.
-<return>>>> wtf ?</return>
-<return>>>> wtf ?!???!?!?</return>
-
-To see the entire backtrace, pass the -a/--all flag:
-
-e.g.
-<return>>>> wtf -v</return>
-HELP
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->filter->bind($input);
-
- $incredulity = implode('', $input->getArgument('incredulity'));
- if (strlen(preg_replace('/[\\?!]/', '', $incredulity))) {
- throw new \InvalidArgumentException('Incredulity must include only "?" and "!".');
- }
-
- $exception = $this->context->getLastException();
- $count = $input->getOption('all') ? PHP_INT_MAX : max(3, pow(2, strlen($incredulity) + 1));
-
- $shell = $this->getApplication();
- $output->startPaging();
- do {
- $traceCount = count($exception->getTrace());
- $showLines = $count;
- // Show the whole trace if we'd only be hiding a few lines
- if ($traceCount < max($count * 1.2, $count + 2)) {
- $showLines = PHP_INT_MAX;
- }
-
- $trace = $this->getBacktrace($exception, $showLines);
- $moreLines = $traceCount - count($trace);
-
- $output->writeln($shell->formatException($exception));
- $output->writeln('--');
- $output->write($trace, true, ShellOutput::NUMBER_LINES);
- $output->writeln('');
-
- if ($moreLines > 0) {
- $output->writeln(sprintf(
- '<aside>Use <return>wtf -a</return> to see %d more lines</aside>',
- $moreLines
- ));
- $output->writeln('');
- }
- } while ($exception = $exception->getPrevious());
- $output->stopPaging();
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Compiler.php b/www/wiki/vendor/psy/psysh/src/Psy/Compiler.php
deleted file mode 100644
index 4ec7bf6b..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Compiler.php
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-use Symfony\Component\Finder\Finder;
-
-/**
- * A Psy Shell Phar compiler.
- */
-class Compiler
-{
- /**
- * Compiles psysh into a single phar file.
- *
- * @param string $pharFile The full path to the file to create
- */
- public function compile($pharFile = 'psysh.phar')
- {
- if (file_exists($pharFile)) {
- unlink($pharFile);
- }
-
- $this->version = Shell::VERSION;
-
- $phar = new \Phar($pharFile, 0, 'psysh.phar');
- $phar->setSignatureAlgorithm(\Phar::SHA1);
-
- $phar->startBuffering();
-
- $finder = Finder::create()
- ->files()
- ->ignoreVCS(true)
- ->name('*.php')
- ->notName('Compiler.php')
- ->notName('Autoloader.php')
- ->in(__DIR__ . '/..');
-
- foreach ($finder as $file) {
- $this->addFile($phar, $file);
- }
-
- $finder = Finder::create()
- ->files()
- ->ignoreVCS(true)
- ->name('*.php')
- ->exclude('Tests')
- ->exclude('tests')
- ->exclude('Test')
- ->exclude('test')
- ->in(__DIR__ . '/../../build-vendor');
-
- foreach ($finder as $file) {
- $this->addFile($phar, $file);
- }
-
- // Stubs
- $phar->setStub($this->getStub());
-
- $phar->stopBuffering();
-
- unset($phar);
- }
-
- /**
- * Add a file to the psysh Phar.
- *
- * @param \Phar $phar
- * @param \SplFileInfo $file
- * @param bool $strip (default: true)
- */
- private function addFile($phar, $file, $strip = true)
- {
- $path = str_replace(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR, '', $file->getRealPath());
-
- $content = file_get_contents($file);
- if ($strip) {
- $content = $this->stripWhitespace($content);
- } elseif ('LICENSE' === basename($file)) {
- $content = "\n" . $content . "\n";
- }
-
- $phar->addFromString($path, $content);
- }
-
- /**
- * Removes whitespace from a PHP source string while preserving line numbers.
- *
- * @param string $source A PHP string
- *
- * @return string The PHP string with the whitespace removed
- */
- private function stripWhitespace($source)
- {
- if (!function_exists('token_get_all')) {
- return $source;
- }
-
- $output = '';
- foreach (token_get_all($source) as $token) {
- if (is_string($token)) {
- $output .= $token;
- } elseif (in_array($token[0], array(T_COMMENT, T_DOC_COMMENT))) {
- $output .= str_repeat("\n", substr_count($token[1], "\n"));
- } elseif (T_WHITESPACE === $token[0]) {
- // reduce wide spaces
- $whitespace = preg_replace('{[ \t]+}', ' ', $token[1]);
- // normalize newlines to \n
- $whitespace = preg_replace('{(?:\r\n|\r|\n)}', "\n", $whitespace);
- // trim leading spaces
- $whitespace = preg_replace('{\n +}', "\n", $whitespace);
- $output .= $whitespace;
- } else {
- $output .= $token[1];
- }
- }
-
- return $output;
- }
-
- private static function getStubLicense()
- {
- $license = file_get_contents(__DIR__ . '/../../LICENSE');
- $license = str_replace('The MIT License (MIT)', '', $license);
- $license = str_replace("\n", "\n * ", trim($license));
-
- return $license;
- }
-
- const STUB_AUTOLOAD = <<<'EOS'
- Phar::mapPhar('psysh.phar');
- require 'phar://psysh.phar/build-vendor/autoload.php';
-EOS;
-
- /**
- * Get a Phar stub for psysh.
- *
- * This is basically the psysh bin, with the autoload require statements swapped out.
- *
- * @return string
- */
- private function getStub()
- {
- $content = file_get_contents(__DIR__ . '/../../bin/psysh');
- if (version_compare(PHP_VERSION, '5.4', '<')) {
- $content = str_replace('#!/usr/bin/env php', '#!/usr/bin/env php -d detect_unicode=Off', $content);
- }
- $content = preg_replace('{/\* <<<.*?>>> \*/}sm', self::STUB_AUTOLOAD, $content);
- $content = preg_replace('/\\(c\\) .*?with this source code./sm', self::getStubLicense(), $content);
-
- $content .= '__HALT_COMPILER();';
-
- return $content;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/ConfigPaths.php b/www/wiki/vendor/psy/psysh/src/Psy/ConfigPaths.php
deleted file mode 100644
index 2295a911..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/ConfigPaths.php
+++ /dev/null
@@ -1,222 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-use XdgBaseDir\Xdg;
-
-/**
- * A Psy Shell configuration path helper.
- */
-class ConfigPaths
-{
- /**
- * Get potential config directory paths.
- *
- * Returns `~/.psysh`, `%APPDATA%/PsySH` (when on Windows), and all
- * XDG Base Directory config directories:
- *
- * http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
- *
- * @return string[]
- */
- public static function getConfigDirs()
- {
- $xdg = new Xdg();
-
- return self::getDirNames($xdg->getConfigDirs());
- }
-
- /**
- * Get potential home config directory paths.
- *
- * Returns `~/.psysh`, `%APPDATA%/PsySH` (when on Windows), and the
- * XDG Base Directory home config directory:
- *
- * http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
- *
- * @return string[]
- */
- public static function getHomeConfigDirs()
- {
- $xdg = new Xdg();
-
- return self::getDirNames(array($xdg->getHomeConfigDir()));
- }
-
- /**
- * Get the current home config directory.
- *
- * Returns the highest precedence home config directory which actually
- * exists. If none of them exists, returns the highest precedence home
- * config directory (`%APPDATA%/PsySH` on Windows, `~/.config/psysh`
- * everywhere else).
- *
- * @see self::getHomeConfigDirs
- *
- * @return string
- */
- public static function getCurrentConfigDir()
- {
- $configDirs = self::getHomeConfigDirs();
- foreach ($configDirs as $configDir) {
- if (@is_dir($configDir)) {
- return $configDir;
- }
- }
-
- return $configDirs[0];
- }
-
- /**
- * Find real config files in config directories.
- *
- * @param string[] $names Config file names
- * @param string $configDir Optionally use a specific config directory
- *
- * @return string[]
- */
- public static function getConfigFiles(array $names, $configDir = null)
- {
- $dirs = ($configDir === null) ? self::getConfigDirs() : array($configDir);
-
- return self::getRealFiles($dirs, $names);
- }
-
- /**
- * Get potential data directory paths.
- *
- * If a `dataDir` option was explicitly set, returns an array containing
- * just that directory.
- *
- * Otherwise, it returns `~/.psysh` and all XDG Base Directory data directories:
- *
- * http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
- *
- * @return string[]
- */
- public static function getDataDirs()
- {
- $xdg = new Xdg();
-
- return self::getDirNames($xdg->getDataDirs());
- }
-
- /**
- * Find real data files in config directories.
- *
- * @param string[] $names Config file names
- * @param string $dataDir Optionally use a specific config directory
- *
- * @return string[]
- */
- public static function getDataFiles(array $names, $dataDir = null)
- {
- $dirs = ($dataDir === null) ? self::getDataDirs() : array($dataDir);
-
- return self::getRealFiles($dirs, $names);
- }
-
- /**
- * Get a runtime directory.
- *
- * Defaults to `/psysh` inside the system's temp dir.
- *
- * @return string
- */
- public static function getRuntimeDir()
- {
- $xdg = new Xdg();
-
- return $xdg->getRuntimeDir(false) . '/psysh';
- }
-
- private static function getDirNames(array $baseDirs)
- {
- $dirs = array_map(function ($dir) {
- return strtr($dir, '\\', '/') . '/psysh';
- }, $baseDirs);
-
- // Add ~/.psysh
- if ($home = getenv('HOME')) {
- $dirs[] = strtr($home, '\\', '/') . '/.psysh';
- }
-
- // Add some Windows specific ones :)
- if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
- if ($appData = getenv('APPDATA')) {
- // AppData gets preference
- array_unshift($dirs, strtr($appData, '\\', '/') . '/PsySH');
- }
-
- $dir = strtr(getenv('HOMEDRIVE') . '/' . getenv('HOMEPATH'), '\\', '/') . '/.psysh';
- if (!in_array($dir, $dirs)) {
- $dirs[] = $dir;
- }
- }
-
- return $dirs;
- }
-
- private static function getRealFiles(array $dirNames, array $fileNames)
- {
- $files = array();
- foreach ($dirNames as $dir) {
- foreach ($fileNames as $name) {
- $file = $dir . '/' . $name;
- if (@is_file($file)) {
- $files[] = $file;
- }
- }
- }
-
- return $files;
- }
-
- /**
- * Ensure that $file exists and is writable, make the parent directory if necessary.
- *
- * Generates E_USER_NOTICE error if either $file or its directory is not writable.
- *
- * @param string $file
- *
- * @return string|false Full path to $file, or false if file is not writable
- */
- public static function touchFileWithMkdir($file)
- {
- if (file_exists($file)) {
- if (is_writable($file)) {
- return $file;
- }
-
- trigger_error(sprintf('Writing to %s is not allowed.', $file), E_USER_NOTICE);
-
- return false;
- }
-
- $dir = dirname($file);
-
- if (!is_dir($dir)) {
- // Just try making it and see if it works
- @mkdir($dir, 0700, true);
- }
-
- if (!is_dir($dir) || !is_writable($dir)) {
- trigger_error(sprintf('Writing to %s is not allowed.', $dir), E_USER_NOTICE);
-
- return false;
- }
-
- touch($file);
-
- return $file;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Configuration.php b/www/wiki/vendor/psy/psysh/src/Psy/Configuration.php
deleted file mode 100644
index b76a1504..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Configuration.php
+++ /dev/null
@@ -1,1199 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-use Psy\Exception\DeprecatedException;
-use Psy\Exception\RuntimeException;
-use Psy\ExecutionLoop\ForkingLoop;
-use Psy\ExecutionLoop\Loop;
-use Psy\Output\OutputPager;
-use Psy\Output\ShellOutput;
-use Psy\Readline\GNUReadline;
-use Psy\Readline\HoaConsole;
-use Psy\Readline\Libedit;
-use Psy\Readline\Readline;
-use Psy\Readline\Transient;
-use Psy\TabCompletion\AutoCompleter;
-use Psy\VarDumper\Presenter;
-use Psy\VersionUpdater\Checker;
-use Psy\VersionUpdater\GitHubChecker;
-use Psy\VersionUpdater\IntervalChecker;
-use Psy\VersionUpdater\NoopChecker;
-use XdgBaseDir\Xdg;
-
-/**
- * The Psy Shell configuration.
- */
-class Configuration
-{
- const COLOR_MODE_AUTO = 'auto';
- const COLOR_MODE_FORCED = 'forced';
- const COLOR_MODE_DISABLED = 'disabled';
-
- private static $AVAILABLE_OPTIONS = array(
- 'defaultIncludes', 'useReadline', 'usePcntl', 'codeCleaner', 'pager',
- 'loop', 'configDir', 'dataDir', 'runtimeDir', 'manualDbFile',
- 'requireSemicolons', 'useUnicode', 'historySize', 'eraseDuplicates',
- 'tabCompletion', 'errorLoggingLevel', 'warnOnMultipleConfigs',
- 'colorMode', 'updateCheck', 'startupMessage',
- );
-
- private $defaultIncludes;
- private $configDir;
- private $dataDir;
- private $runtimeDir;
- private $configFile;
- /** @var string|false */
- private $historyFile;
- private $historySize;
- private $eraseDuplicates;
- private $manualDbFile;
- private $hasReadline;
- private $useReadline;
- private $hasPcntl;
- private $usePcntl;
- private $newCommands = array();
- private $requireSemicolons = false;
- private $useUnicode;
- private $tabCompletion;
- private $tabCompletionMatchers = array();
- private $errorLoggingLevel = E_ALL;
- private $warnOnMultipleConfigs = false;
- private $colorMode;
- private $updateCheck;
- private $startupMessage;
-
- // services
- private $readline;
- private $output;
- private $shell;
- private $cleaner;
- private $pager;
- private $loop;
- private $manualDb;
- private $presenter;
- private $completer;
- private $checker;
-
- /**
- * Construct a Configuration instance.
- *
- * Optionally, supply an array of configuration values to load.
- *
- * @param array $config Optional array of configuration values
- */
- public function __construct(array $config = array())
- {
- $this->setColorMode(self::COLOR_MODE_AUTO);
-
- // explicit configFile option
- if (isset($config['configFile'])) {
- $this->configFile = $config['configFile'];
- } elseif ($configFile = getenv('PSYSH_CONFIG')) {
- $this->configFile = $configFile;
- }
-
- // legacy baseDir option
- if (isset($config['baseDir'])) {
- $msg = "The 'baseDir' configuration option is deprecated. " .
- "Please specify 'configDir' and 'dataDir' options instead.";
- throw new DeprecatedException($msg);
- }
-
- unset($config['configFile'], $config['baseDir']);
-
- // go go gadget, config!
- $this->loadConfig($config);
- $this->init();
- }
-
- /**
- * Initialize the configuration.
- *
- * This checks for the presence of Readline and Pcntl extensions.
- *
- * If a config file is available, it will be loaded and merged with the current config.
- *
- * If no custom config file was specified and a local project config file
- * is available, it will be loaded and merged with the current config.
- */
- public function init()
- {
- // feature detection
- $this->hasReadline = function_exists('readline');
- $this->hasPcntl = function_exists('pcntl_signal') && function_exists('posix_getpid');
-
- if ($configFile = $this->getConfigFile()) {
- $this->loadConfigFile($configFile);
- }
-
- if (!$this->configFile && $localConfig = $this->getLocalConfigFile()) {
- $this->loadConfigFile($localConfig);
- }
- }
-
- /**
- * Get the current PsySH config file.
- *
- * If a `configFile` option was passed to the Configuration constructor,
- * this file will be returned. If not, all possible config directories will
- * be searched, and the first `config.php` or `rc.php` file which exists
- * will be returned.
- *
- * If you're trying to decide where to put your config file, pick
- *
- * ~/.config/psysh/config.php
- *
- * @return string
- */
- public function getConfigFile()
- {
- if (isset($this->configFile)) {
- return $this->configFile;
- }
-
- $files = ConfigPaths::getConfigFiles(array('config.php', 'rc.php'), $this->configDir);
-
- if (!empty($files)) {
- if ($this->warnOnMultipleConfigs && count($files) > 1) {
- $msg = sprintf('Multiple configuration files found: %s. Using %s', implode($files, ', '), $files[0]);
- trigger_error($msg, E_USER_NOTICE);
- }
-
- return $files[0];
- }
- }
-
- /**
- * Get the local PsySH config file.
- *
- * Searches for a project specific config file `.psysh.php` in the current
- * working directory.
- *
- * @return string
- */
- public function getLocalConfigFile()
- {
- $localConfig = getenv('PWD') . '/.psysh.php';
-
- if (@is_file($localConfig)) {
- return $localConfig;
- }
- }
-
- /**
- * Load configuration values from an array of options.
- *
- * @param array $options
- */
- public function loadConfig(array $options)
- {
- foreach (self::$AVAILABLE_OPTIONS as $option) {
- if (isset($options[$option])) {
- $method = 'set' . ucfirst($option);
- $this->$method($options[$option]);
- }
- }
-
- foreach (array('commands', 'tabCompletionMatchers', 'casters') as $option) {
- if (isset($options[$option])) {
- $method = 'add' . ucfirst($option);
- $this->$method($options[$option]);
- }
- }
- }
-
- /**
- * Load a configuration file (default: `$HOME/.config/psysh/config.php`).
- *
- * This configuration instance will be available to the config file as $config.
- * The config file may directly manipulate the configuration, or may return
- * an array of options which will be merged with the current configuration.
- *
- * @throws \InvalidArgumentException if the config file returns a non-array result
- *
- * @param string $file
- */
- public function loadConfigFile($file)
- {
- $__psysh_config_file__ = $file;
- $load = function ($config) use ($__psysh_config_file__) {
- $result = require $__psysh_config_file__;
- if ($result !== 1) {
- return $result;
- }
- };
- $result = $load($this);
-
- if (!empty($result)) {
- if (is_array($result)) {
- $this->loadConfig($result);
- } else {
- throw new \InvalidArgumentException('Psy Shell configuration must return an array of options');
- }
- }
- }
-
- /**
- * Set files to be included by default at the start of each shell session.
- *
- * @param array $includes
- */
- public function setDefaultIncludes(array $includes = array())
- {
- $this->defaultIncludes = $includes;
- }
-
- /**
- * Get files to be included by default at the start of each shell session.
- *
- * @return array
- */
- public function getDefaultIncludes()
- {
- return $this->defaultIncludes ?: array();
- }
-
- /**
- * Set the shell's config directory location.
- *
- * @param string $dir
- */
- public function setConfigDir($dir)
- {
- $this->configDir = (string) $dir;
- }
-
- /**
- * Get the current configuration directory, if any is explicitly set.
- *
- * @return string
- */
- public function getConfigDir()
- {
- return $this->configDir;
- }
-
- /**
- * Set the shell's data directory location.
- *
- * @param string $dir
- */
- public function setDataDir($dir)
- {
- $this->dataDir = (string) $dir;
- }
-
- /**
- * Get the current data directory, if any is explicitly set.
- *
- * @return string
- */
- public function getDataDir()
- {
- return $this->dataDir;
- }
-
- /**
- * Set the shell's temporary directory location.
- *
- * @param string $dir
- */
- public function setRuntimeDir($dir)
- {
- $this->runtimeDir = (string) $dir;
- }
-
- /**
- * Get the shell's temporary directory location.
- *
- * Defaults to `/psysh` inside the system's temp dir unless explicitly
- * overridden.
- *
- * @return string
- */
- public function getRuntimeDir()
- {
- if (!isset($this->runtimeDir)) {
- $this->runtimeDir = ConfigPaths::getRuntimeDir();
- }
-
- if (!is_dir($this->runtimeDir)) {
- mkdir($this->runtimeDir, 0700, true);
- }
-
- return $this->runtimeDir;
- }
-
- /**
- * Set the readline history file path.
- *
- * @param string $file
- */
- public function setHistoryFile($file)
- {
- $this->historyFile = ConfigPaths::touchFileWithMkdir($file);
- }
-
- /**
- * Get the readline history file path.
- *
- * Defaults to `/history` inside the shell's base config dir unless
- * explicitly overridden.
- *
- * @return string
- */
- public function getHistoryFile()
- {
- if (isset($this->historyFile)) {
- return $this->historyFile;
- }
-
- // Deprecation warning for incorrect psysh_history path.
- // @todo remove this before v0.9.0
- $xdg = new Xdg();
- $oldHistory = $xdg->getHomeConfigDir() . '/psysh_history';
- if (@is_file($oldHistory)) {
- $dir = $this->configDir ?: ConfigPaths::getCurrentConfigDir();
- $newHistory = $dir . '/psysh_history';
-
- $msg = sprintf(
- "PsySH history file found at '%s'. Please delete it or move it to '%s'.",
- strtr($oldHistory, '\\', '/'),
- $newHistory
- );
- @trigger_error($msg, E_USER_DEPRECATED);
- $this->setHistoryFile($oldHistory);
-
- return $this->historyFile;
- }
-
- $files = ConfigPaths::getConfigFiles(array('psysh_history', 'history'), $this->configDir);
-
- if (!empty($files)) {
- if ($this->warnOnMultipleConfigs && count($files) > 1) {
- $msg = sprintf('Multiple history files found: %s. Using %s', implode($files, ', '), $files[0]);
- trigger_error($msg, E_USER_NOTICE);
- }
-
- $this->setHistoryFile($files[0]);
- } else {
- // fallback: create our own history file
- $dir = $this->configDir ?: ConfigPaths::getCurrentConfigDir();
- $this->setHistoryFile($dir . '/psysh_history');
- }
-
- return $this->historyFile;
- }
-
- /**
- * Set the readline max history size.
- *
- * @param int $value
- */
- public function setHistorySize($value)
- {
- $this->historySize = (int) $value;
- }
-
- /**
- * Get the readline max history size.
- *
- * @return int
- */
- public function getHistorySize()
- {
- return $this->historySize;
- }
-
- /**
- * Sets whether readline erases old duplicate history entries.
- *
- * @param bool $value
- */
- public function setEraseDuplicates($value)
- {
- $this->eraseDuplicates = (bool) $value;
- }
-
- /**
- * Get whether readline erases old duplicate history entries.
- *
- * @return bool
- */
- public function getEraseDuplicates()
- {
- return $this->eraseDuplicates;
- }
-
- /**
- * Get a temporary file of type $type for process $pid.
- *
- * The file will be created inside the current temporary directory.
- *
- * @see self::getRuntimeDir
- *
- * @param string $type
- * @param int $pid
- *
- * @return string Temporary file name
- */
- public function getTempFile($type, $pid)
- {
- return tempnam($this->getRuntimeDir(), $type . '_' . $pid . '_');
- }
-
- /**
- * Get a filename suitable for a FIFO pipe of $type for process $pid.
- *
- * The pipe will be created inside the current temporary directory.
- *
- * @param string $type
- * @param int $pid
- *
- * @return string Pipe name
- */
- public function getPipe($type, $pid)
- {
- return sprintf('%s/%s_%s', $this->getRuntimeDir(), $type, $pid);
- }
-
- /**
- * Check whether this PHP instance has Readline available.
- *
- * @return bool True if Readline is available
- */
- public function hasReadline()
- {
- return $this->hasReadline;
- }
-
- /**
- * Enable or disable Readline usage.
- *
- * @param bool $useReadline
- */
- public function setUseReadline($useReadline)
- {
- $this->useReadline = (bool) $useReadline;
- }
-
- /**
- * Check whether to use Readline.
- *
- * If `setUseReadline` as been set to true, but Readline is not actually
- * available, this will return false.
- *
- * @return bool True if the current Shell should use Readline
- */
- public function useReadline()
- {
- return isset($this->useReadline) ? ($this->hasReadline && $this->useReadline) : $this->hasReadline;
- }
-
- /**
- * Set the Psy Shell readline service.
- *
- * @param Readline $readline
- */
- public function setReadline(Readline $readline)
- {
- $this->readline = $readline;
- }
-
- /**
- * Get the Psy Shell readline service.
- *
- * By default, this service uses (in order of preference):
- *
- * * GNU Readline
- * * Libedit
- * * A transient array-based readline emulation.
- *
- * @return Readline
- */
- public function getReadline()
- {
- if (!isset($this->readline)) {
- $className = $this->getReadlineClass();
- $this->readline = new $className(
- $this->getHistoryFile(),
- $this->getHistorySize(),
- $this->getEraseDuplicates()
- );
- }
-
- return $this->readline;
- }
-
- /**
- * Get the appropriate Readline implementation class name.
- *
- * @see self::getReadline
- *
- * @return string
- */
- private function getReadlineClass()
- {
- if ($this->useReadline()) {
- if (GNUReadline::isSupported()) {
- return 'Psy\Readline\GNUReadline';
- } elseif (Libedit::isSupported()) {
- return 'Psy\Readline\Libedit';
- } elseif (HoaConsole::isSupported()) {
- return 'Psy\Readline\HoaConsole';
- }
- }
-
- return 'Psy\Readline\Transient';
- }
-
- /**
- * Check whether this PHP instance has Pcntl available.
- *
- * @return bool True if Pcntl is available
- */
- public function hasPcntl()
- {
- return $this->hasPcntl;
- }
-
- /**
- * Enable or disable Pcntl usage.
- *
- * @param bool $usePcntl
- */
- public function setUsePcntl($usePcntl)
- {
- $this->usePcntl = (bool) $usePcntl;
- }
-
- /**
- * Check whether to use Pcntl.
- *
- * If `setUsePcntl` has been set to true, but Pcntl is not actually
- * available, this will return false.
- *
- * @return bool True if the current Shell should use Pcntl
- */
- public function usePcntl()
- {
- return isset($this->usePcntl) ? ($this->hasPcntl && $this->usePcntl) : $this->hasPcntl;
- }
-
- /**
- * Enable or disable strict requirement of semicolons.
- *
- * @see self::requireSemicolons()
- *
- * @param bool $requireSemicolons
- */
- public function setRequireSemicolons($requireSemicolons)
- {
- $this->requireSemicolons = (bool) $requireSemicolons;
- }
-
- /**
- * Check whether to require semicolons on all statements.
- *
- * By default, PsySH will automatically insert semicolons at the end of
- * statements if they're missing. To strictly require semicolons, set
- * `requireSemicolons` to true.
- *
- * @return bool
- */
- public function requireSemicolons()
- {
- return $this->requireSemicolons;
- }
-
- /**
- * Enable or disable Unicode in PsySH specific output.
- *
- * Note that this does not disable Unicode output in general, it just makes
- * it so PsySH won't output any itself.
- *
- * @param bool $useUnicode
- */
- public function setUseUnicode($useUnicode)
- {
- $this->useUnicode = (bool) $useUnicode;
- }
-
- /**
- * Check whether to use Unicode in PsySH specific output.
- *
- * Note that this does not disable Unicode output in general, it just makes
- * it so PsySH won't output any itself.
- *
- * @return bool
- */
- public function useUnicode()
- {
- if (isset($this->useUnicode)) {
- return $this->useUnicode;
- }
-
- // @todo detect `chsh` != 65001 on Windows and return false
- return true;
- }
-
- /**
- * Set the error logging level.
- *
- * @see self::errorLoggingLevel
- *
- * @param bool $errorLoggingLevel
- */
- public function setErrorLoggingLevel($errorLoggingLevel)
- {
- $this->errorLoggingLevel = (E_ALL | E_STRICT) & $errorLoggingLevel;
- }
-
- /**
- * Get the current error logging level.
- *
- * By default, PsySH will automatically log all errors, regardless of the
- * current `error_reporting` level. Additionally, if the `error_reporting`
- * level warrants, an ErrorException will be thrown.
- *
- * Set `errorLoggingLevel` to 0 to prevent logging non-thrown errors. Set it
- * to any valid error_reporting value to log only errors which match that
- * level.
- *
- * http://php.net/manual/en/function.error-reporting.php
- *
- * @return int
- */
- public function errorLoggingLevel()
- {
- return $this->errorLoggingLevel;
- }
-
- /**
- * Set a CodeCleaner service instance.
- *
- * @param CodeCleaner $cleaner
- */
- public function setCodeCleaner(CodeCleaner $cleaner)
- {
- $this->cleaner = $cleaner;
- }
-
- /**
- * Get a CodeCleaner service instance.
- *
- * If none has been explicitly defined, this will create a new instance.
- *
- * @return CodeCleaner
- */
- public function getCodeCleaner()
- {
- if (!isset($this->cleaner)) {
- $this->cleaner = new CodeCleaner();
- }
-
- return $this->cleaner;
- }
-
- /**
- * Enable or disable tab completion.
- *
- * @param bool $tabCompletion
- */
- public function setTabCompletion($tabCompletion)
- {
- $this->tabCompletion = (bool) $tabCompletion;
- }
-
- /**
- * Check whether to use tab completion.
- *
- * If `setTabCompletion` has been set to true, but readline is not actually
- * available, this will return false.
- *
- * @return bool True if the current Shell should use tab completion
- */
- public function getTabCompletion()
- {
- return isset($this->tabCompletion) ? ($this->hasReadline && $this->tabCompletion) : $this->hasReadline;
- }
-
- /**
- * Set the Shell Output service.
- *
- * @param ShellOutput $output
- */
- public function setOutput(ShellOutput $output)
- {
- $this->output = $output;
- }
-
- /**
- * Get a Shell Output service instance.
- *
- * If none has been explicitly provided, this will create a new instance
- * with VERBOSITY_NORMAL and the output page supplied by self::getPager
- *
- * @see self::getPager
- *
- * @return ShellOutput
- */
- public function getOutput()
- {
- if (!isset($this->output)) {
- $this->output = new ShellOutput(
- ShellOutput::VERBOSITY_NORMAL,
- $this->getOutputDecorated(),
- null,
- $this->getPager()
- );
- }
-
- return $this->output;
- }
-
- /**
- * Get the decoration (i.e. color) setting for the Shell Output service.
- *
- * @return null|bool 3-state boolean corresponding to the current color mode
- */
- public function getOutputDecorated()
- {
- if ($this->colorMode() === self::COLOR_MODE_AUTO) {
- return;
- } elseif ($this->colorMode() === self::COLOR_MODE_FORCED) {
- return true;
- } elseif ($this->colorMode() === self::COLOR_MODE_DISABLED) {
- return false;
- }
- }
-
- /**
- * Set the OutputPager service.
- *
- * If a string is supplied, a ProcOutputPager will be used which shells out
- * to the specified command.
- *
- * @throws \InvalidArgumentException if $pager is not a string or OutputPager instance
- *
- * @param string|OutputPager $pager
- */
- public function setPager($pager)
- {
- if ($pager && !is_string($pager) && !$pager instanceof OutputPager) {
- throw new \InvalidArgumentException('Unexpected pager instance.');
- }
-
- $this->pager = $pager;
- }
-
- /**
- * Get an OutputPager instance or a command for an external Proc pager.
- *
- * If no Pager has been explicitly provided, and Pcntl is available, this
- * will default to `cli.pager` ini value, falling back to `which less`.
- *
- * @return string|OutputPager
- */
- public function getPager()
- {
- if (!isset($this->pager) && $this->usePcntl()) {
- if ($pager = ini_get('cli.pager')) {
- // use the default pager (5.4+)
- $this->pager = $pager;
- } elseif ($less = exec('which less 2>/dev/null')) {
- // check for the presence of less...
- $this->pager = $less . ' -R -S -F -X';
- }
- }
-
- return $this->pager;
- }
-
- /**
- * Set the Shell evaluation Loop service.
- *
- * @param Loop $loop
- */
- public function setLoop(Loop $loop)
- {
- $this->loop = $loop;
- }
-
- /**
- * Get a Shell evaluation Loop service instance.
- *
- * If none has been explicitly defined, this will create a new instance.
- * If Pcntl is available and enabled, the new instance will be a ForkingLoop.
- *
- * @return Loop
- */
- public function getLoop()
- {
- if (!isset($this->loop)) {
- if ($this->usePcntl()) {
- $this->loop = new ForkingLoop($this);
- } else {
- $this->loop = new Loop($this);
- }
- }
-
- return $this->loop;
- }
-
- /**
- * Set the Shell autocompleter service.
- *
- * @param AutoCompleter $completer
- */
- public function setAutoCompleter(AutoCompleter $completer)
- {
- $this->completer = $completer;
- }
-
- /**
- * Get an AutoCompleter service instance.
- *
- * @return AutoCompleter
- */
- public function getAutoCompleter()
- {
- if (!isset($this->completer)) {
- $this->completer = new AutoCompleter();
- }
-
- return $this->completer;
- }
-
- /**
- * Get user specified tab completion matchers for the AutoCompleter.
- *
- * @return array
- */
- public function getTabCompletionMatchers()
- {
- return $this->tabCompletionMatchers;
- }
-
- /**
- * Add additional tab completion matchers to the AutoCompleter.
- *
- * @param array $matchers
- */
- public function addTabCompletionMatchers(array $matchers)
- {
- $this->tabCompletionMatchers = array_merge($this->tabCompletionMatchers, $matchers);
- if (isset($this->shell)) {
- $this->shell->addTabCompletionMatchers($this->tabCompletionMatchers);
- }
- }
-
- /**
- * Add commands to the Shell.
- *
- * This will buffer new commands in the event that the Shell has not yet
- * been instantiated. This allows the user to specify commands in their
- * config rc file, despite the fact that their file is needed in the Shell
- * constructor.
- *
- * @param array $commands
- */
- public function addCommands(array $commands)
- {
- $this->newCommands = array_merge($this->newCommands, $commands);
- if (isset($this->shell)) {
- $this->doAddCommands();
- }
- }
-
- /**
- * Internal method for adding commands. This will set any new commands once
- * a Shell is available.
- */
- private function doAddCommands()
- {
- if (!empty($this->newCommands)) {
- $this->shell->addCommands($this->newCommands);
- $this->newCommands = array();
- }
- }
-
- /**
- * Set the Shell backreference and add any new commands to the Shell.
- *
- * @param Shell $shell
- */
- public function setShell(Shell $shell)
- {
- $this->shell = $shell;
- $this->doAddCommands();
- }
-
- /**
- * Set the PHP manual database file.
- *
- * This file should be an SQLite database generated from the phpdoc source
- * with the `bin/build_manual` script.
- *
- * @param string $filename
- */
- public function setManualDbFile($filename)
- {
- $this->manualDbFile = (string) $filename;
- }
-
- /**
- * Get the current PHP manual database file.
- *
- * @return string Default: '~/.local/share/psysh/php_manual.sqlite'
- */
- public function getManualDbFile()
- {
- if (isset($this->manualDbFile)) {
- return $this->manualDbFile;
- }
-
- $files = ConfigPaths::getDataFiles(array('php_manual.sqlite'), $this->dataDir);
- if (!empty($files)) {
- if ($this->warnOnMultipleConfigs && count($files) > 1) {
- $msg = sprintf('Multiple manual database files found: %s. Using %s', implode($files, ', '), $files[0]);
- trigger_error($msg, E_USER_NOTICE);
- }
-
- return $this->manualDbFile = $files[0];
- }
- }
-
- /**
- * Get a PHP manual database connection.
- *
- * @return \PDO
- */
- public function getManualDb()
- {
- if (!isset($this->manualDb)) {
- $dbFile = $this->getManualDbFile();
- if (is_file($dbFile)) {
- try {
- $this->manualDb = new \PDO('sqlite:' . $dbFile);
- } catch (\PDOException $e) {
- if ($e->getMessage() === 'could not find driver') {
- throw new RuntimeException('SQLite PDO driver not found', 0, $e);
- } else {
- throw $e;
- }
- }
- }
- }
-
- return $this->manualDb;
- }
-
- /**
- * Add an array of casters definitions.
- *
- * @param array $casters
- */
- public function addCasters(array $casters)
- {
- $this->getPresenter()->addCasters($casters);
- }
-
- /**
- * Get the Presenter service.
- *
- * @return Presenter
- */
- public function getPresenter()
- {
- if (!isset($this->presenter)) {
- $this->presenter = new Presenter($this->getOutput()->getFormatter());
- }
-
- return $this->presenter;
- }
-
- /**
- * Enable or disable warnings on multiple configuration or data files.
- *
- * @see self::warnOnMultipleConfigs()
- *
- * @param bool $warnOnMultipleConfigs
- */
- public function setWarnOnMultipleConfigs($warnOnMultipleConfigs)
- {
- $this->warnOnMultipleConfigs = (bool) $warnOnMultipleConfigs;
- }
-
- /**
- * Check whether to warn on multiple configuration or data files.
- *
- * By default, PsySH will use the file with highest precedence, and will
- * silently ignore all others. With this enabled, a warning will be emitted
- * (but not an exception thrown) if multiple configuration or data files
- * are found.
- *
- * This will default to true in a future release, but is false for now.
- *
- * @return bool
- */
- public function warnOnMultipleConfigs()
- {
- return $this->warnOnMultipleConfigs;
- }
-
- /**
- * Set the current color mode.
- *
- * @param string $colorMode
- */
- public function setColorMode($colorMode)
- {
- $validColorModes = array(
- self::COLOR_MODE_AUTO,
- self::COLOR_MODE_FORCED,
- self::COLOR_MODE_DISABLED,
- );
-
- if (in_array($colorMode, $validColorModes)) {
- $this->colorMode = $colorMode;
- } else {
- throw new \InvalidArgumentException('invalid color mode: ' . $colorMode);
- }
- }
-
- /**
- * Get the current color mode.
- *
- * @return string
- */
- public function colorMode()
- {
- return $this->colorMode;
- }
-
- /**
- * Set an update checker service instance.
- *
- * @param Checker $checker
- */
- public function setChecker(Checker $checker)
- {
- $this->checker = $checker;
- }
-
- /**
- * Get an update checker service instance.
- *
- * If none has been explicitly defined, this will create a new instance.
- *
- * @return Checker
- */
- public function getChecker()
- {
- if (!isset($this->checker)) {
- $interval = $this->getUpdateCheck();
- switch ($interval) {
- case Checker::ALWAYS:
- $this->checker = new GitHubChecker();
- break;
-
- case Checker::DAILY:
- case Checker::WEEKLY:
- case Checker::MONTHLY:
- $checkFile = $this->getUpdateCheckCacheFile();
- if ($checkFile === false) {
- $this->checker = new NoopChecker();
- } else {
- $this->checker = new IntervalChecker($checkFile, $interval);
- }
- break;
-
- case Checker::NEVER:
- $this->checker = new NoopChecker();
- break;
- }
- }
-
- return $this->checker;
- }
-
- /**
- * Get the current update check interval.
- *
- * One of 'always', 'daily', 'weekly', 'monthly' or 'never'. If none is
- * explicitly set, default to 'weekly'.
- *
- * @return string
- */
- public function getUpdateCheck()
- {
- return isset($this->updateCheck) ? $this->updateCheck : Checker::WEEKLY;
- }
-
- /**
- * Set the update check interval.
- *
- * @throws \InvalidArgumentDescription if the update check interval is unknown
- *
- * @param string $interval
- */
- public function setUpdateCheck($interval)
- {
- $validIntervals = array(
- Checker::ALWAYS,
- Checker::DAILY,
- Checker::WEEKLY,
- Checker::MONTHLY,
- Checker::NEVER,
- );
-
- if (!in_array($interval, $validIntervals)) {
- throw new \InvalidArgumentException('invalid update check interval: ' . $interval);
- }
-
- $this->updateCheck = $interval;
- }
-
- /**
- * Get a cache file path for the update checker.
- *
- * @return string|false Return false if config file/directory is not writable
- */
- public function getUpdateCheckCacheFile()
- {
- $dir = $this->configDir ?: ConfigPaths::getCurrentConfigDir();
-
- return ConfigPaths::touchFileWithMkdir($dir . '/update_check.json');
- }
-
- /**
- * Set the startup message.
- *
- * @param string $message
- */
- public function setStartupMessage($message)
- {
- $this->startupMessage = $message;
- }
-
- /**
- * Get the startup message.
- *
- * @return string|null
- */
- public function getStartupMessage()
- {
- return $this->startupMessage;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/ConsoleColorFactory.php b/www/wiki/vendor/psy/psysh/src/Psy/ConsoleColorFactory.php
deleted file mode 100644
index d5495d3a..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/ConsoleColorFactory.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-use JakubOnderka\PhpConsoleColor\ConsoleColor;
-use JakubOnderka\PhpConsoleHighlighter\Highlighter;
-
-/**
- * Builds `ConsoleColor` instances configured according to the given color mode.
- */
-class ConsoleColorFactory
-{
- private $colorMode;
-
- /**
- * @param string $colorMode
- */
- public function __construct($colorMode)
- {
- $this->colorMode = $colorMode;
- }
-
- /**
- * Get a `ConsoleColor` instance configured according to the given color
- * mode.
- *
- * @return ConsoleColor
- */
- public function getConsoleColor()
- {
- if ($this->colorMode === Configuration::COLOR_MODE_AUTO) {
- return $this->getDefaultConsoleColor();
- } elseif ($this->colorMode === Configuration::COLOR_MODE_FORCED) {
- return $this->getForcedConsoleColor();
- } elseif ($this->colorMode === Configuration::COLOR_MODE_DISABLED) {
- return $this->getDisabledConsoleColor();
- }
- }
-
- private function getDefaultConsoleColor()
- {
- $color = new ConsoleColor();
- $color->addTheme(Highlighter::LINE_NUMBER, array('blue'));
-
- return $color;
- }
-
- private function getForcedConsoleColor()
- {
- $color = $this->getDefaultConsoleColor();
- $color->setForceStyle(true);
-
- return $color;
- }
-
- private function getDisabledConsoleColor()
- {
- $color = new ConsoleColor();
-
- $color->addTheme(Highlighter::TOKEN_STRING, array('none'));
- $color->addTheme(Highlighter::TOKEN_COMMENT, array('none'));
- $color->addTheme(Highlighter::TOKEN_KEYWORD, array('none'));
- $color->addTheme(Highlighter::TOKEN_DEFAULT, array('none'));
- $color->addTheme(Highlighter::TOKEN_HTML, array('none'));
- $color->addTheme(Highlighter::ACTUAL_LINE_MARK, array('none'));
- $color->addTheme(Highlighter::LINE_NUMBER, array('none'));
-
- return $color;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Context.php b/www/wiki/vendor/psy/psysh/src/Psy/Context.php
deleted file mode 100644
index 9f0edfad..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Context.php
+++ /dev/null
@@ -1,255 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-/**
- * The Shell execution context.
- *
- * This class encapsulates the current variables, most recent return value and
- * exception, and the current namespace.
- */
-class Context
-{
- private static $specialNames = array('_', '_e', '__psysh__', 'this');
-
- // Whitelist a very limited number of command-scope magic variable names.
- // This might be a bad idea, but future me can sort it out.
- private static $commandScopeNames = array(
- '__function', '__method', '__class', '__namespace', '__file', '__line', '__dir',
- );
-
- private $scopeVariables = array();
- private $commandScopeVariables = array();
- private $lastException;
- private $returnValue;
- private $boundObject;
-
- /**
- * Get a context variable.
- *
- * @throws InvalidArgumentException If the variable is not found in the current context
- *
- * @param string $name
- *
- * @return mixed
- */
- public function get($name)
- {
- switch ($name) {
- case '_':
- return $this->returnValue;
-
- case '_e':
- if (isset($this->lastException)) {
- return $this->lastException;
- }
- break;
-
- case 'this':
- if (isset($this->boundObject)) {
- return $this->boundObject;
- }
- break;
-
- case '__function':
- case '__method':
- case '__class':
- case '__namespace':
- case '__file':
- case '__line':
- case '__dir':
- if (array_key_exists($name, $this->commandScopeVariables)) {
- return $this->commandScopeVariables[$name];
- }
- break;
-
- default:
- if (array_key_exists($name, $this->scopeVariables)) {
- return $this->scopeVariables[$name];
- }
- break;
- }
-
- throw new \InvalidArgumentException('Unknown variable: $' . $name);
- }
-
- /**
- * Get all defined variables.
- *
- * @return array
- */
- public function getAll()
- {
- return array_merge($this->scopeVariables, $this->getSpecialVariables());
- }
-
- /**
- * Get all defined magic variables: $_, $_e, $__class, $__file, etc.
- *
- * @return array
- */
- public function getSpecialVariables()
- {
- $vars = array(
- '_' => $this->returnValue,
- );
-
- if (isset($this->lastException)) {
- $vars['_e'] = $this->lastException;
- }
-
- if (isset($this->boundObject)) {
- $vars['this'] = $this->boundObject;
- }
-
- return array_merge($vars, $this->commandScopeVariables);
- }
-
- /**
- * Set all scope variables.
- *
- * This method does *not* set any of the magic variables: $_, $_e, $__class, $__file, etc.
- *
- * @param array $vars
- */
- public function setAll(array $vars)
- {
- foreach (self::$specialNames as $key) {
- unset($vars[$key]);
- }
-
- foreach (self::$commandScopeNames as $key) {
- unset($vars[$key]);
- }
-
- $this->scopeVariables = $vars;
- }
-
- /**
- * Set the most recent return value.
- *
- * @param mixed $value
- */
- public function setReturnValue($value)
- {
- $this->returnValue = $value;
- }
-
- /**
- * Get the most recent return value.
- *
- * @return mixed
- */
- public function getReturnValue()
- {
- return $this->returnValue;
- }
-
- /**
- * Set the most recent Exception.
- *
- * @param \Exception $e
- */
- public function setLastException(\Exception $e)
- {
- $this->lastException = $e;
- }
-
- /**
- * Get the most recent Exception.
- *
- * @throws InvalidArgumentException If no Exception has been caught
- *
- * @return null|Exception
- */
- public function getLastException()
- {
- if (!isset($this->lastException)) {
- throw new \InvalidArgumentException('No most-recent exception');
- }
-
- return $this->lastException;
- }
-
- /**
- * Set the bound object ($this variable) for the interactive shell.
- *
- * @param object|null $boundObject
- */
- public function setBoundObject($boundObject)
- {
- $this->boundObject = is_object($boundObject) ? $boundObject : null;
- }
-
- /**
- * Get the bound object ($this variable) for the interactive shell.
- *
- * @return object|null
- */
- public function getBoundObject()
- {
- return $this->boundObject;
- }
-
- /**
- * Set command-scope magic variables: $__class, $__file, etc.
- *
- * @param array $commandScopeVariables
- */
- public function setCommandScopeVariables(array $commandScopeVariables)
- {
- $vars = array();
- foreach ($commandScopeVariables as $key => $value) {
- // kind of type check
- if (is_scalar($value) && in_array($key, self::$commandScopeNames)) {
- $vars[$key] = $value;
- }
- }
-
- $this->commandScopeVariables = $vars;
- }
-
- /**
- * Get command-scope magic variables: $__class, $__file, etc.
- *
- * @return array
- */
- public function getCommandScopeVariables()
- {
- return $this->commandScopeVariables;
- }
-
- /**
- * Get unused command-scope magic variables names: __class, __file, etc.
- *
- * This is used by the shell to unset old command-scope variables after a
- * new batch is set.
- *
- * @return array Array of unused variable names
- */
- public function getUnusedCommandScopeVariableNames()
- {
- return array_diff(self::$commandScopeNames, array_keys($this->commandScopeVariables));
- }
-
- /**
- * Check whether a variable name is a magic variable.
- *
- * @param string $name
- *
- * @return bool
- */
- public static function isSpecialVariableName($name)
- {
- return in_array($name, self::$specialNames) || in_array($name, self::$commandScopeNames);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/ContextAware.php b/www/wiki/vendor/psy/psysh/src/Psy/ContextAware.php
deleted file mode 100644
index d68caba6..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/ContextAware.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-/**
- * ContextAware interface.
- *
- * This interface is used to pass the Shell's context into commands and such
- * which require access to the current scope variables.
- */
-interface ContextAware
-{
- /**
- * Set the Context reference.
- *
- * @param Context $context
- */
- public function setContext(Context $context);
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Exception/BreakException.php b/www/wiki/vendor/psy/psysh/src/Psy/Exception/BreakException.php
deleted file mode 100644
index a0a2ec62..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Exception/BreakException.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Exception;
-
-/**
- * A break exception, used for halting the Psy Shell.
- */
-class BreakException extends \Exception implements Exception
-{
- private $rawMessage;
-
- /**
- * {@inheritdoc}
- */
- public function __construct($message = '', $code = 0, \Exception $previous = null)
- {
- $this->rawMessage = $message;
- parent::__construct(sprintf('Exit: %s', $message), $code, $previous);
- }
-
- /**
- * Return a raw (unformatted) version of the error message.
- *
- * @return string
- */
- public function getRawMessage()
- {
- return $this->rawMessage;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Exception/DeprecatedException.php b/www/wiki/vendor/psy/psysh/src/Psy/Exception/DeprecatedException.php
deleted file mode 100644
index cd0185f1..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Exception/DeprecatedException.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Exception;
-
-/**
- * A DeprecatedException for Psy.
- */
-class DeprecatedException extends RuntimeException
-{
- // This space intentionally left blank.
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Exception/ErrorException.php b/www/wiki/vendor/psy/psysh/src/Psy/Exception/ErrorException.php
deleted file mode 100644
index 66c172c6..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Exception/ErrorException.php
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Exception;
-
-/**
- * A custom error Exception for Psy with a formatted $message.
- */
-class ErrorException extends \ErrorException implements Exception
-{
- private $rawMessage;
-
- /**
- * Construct a Psy ErrorException.
- *
- * @param string $message (default: "")
- * @param int $code (default: 0)
- * @param int $severity (default: 1)
- * @param string $filename (default: null)
- * @param int $lineno (default: null)
- * @param Exception $previous (default: null)
- */
- public function __construct($message = '', $code = 0, $severity = 1, $filename = null, $lineno = null, $previous = null)
- {
- $this->rawMessage = $message;
-
- if (!empty($filename) && preg_match('{Psy[/\\\\]ExecutionLoop}', $filename)) {
- $filename = '';
- }
-
- switch ($severity) {
- case E_WARNING:
- case E_CORE_WARNING:
- case E_COMPILE_WARNING:
- case E_USER_WARNING:
- $type = 'warning';
- break;
-
- case E_STRICT:
- $type = 'Strict error';
- break;
-
- default:
- $type = 'error';
- break;
- }
-
- $message = sprintf('PHP %s: %s%s on line %d', $type, $message, $filename ? ' in ' . $filename : '', $lineno);
- parent::__construct($message, $code, $severity, $filename, $lineno, $previous);
- }
-
- /**
- * Get the raw (unformatted) message for this error.
- *
- * @return string
- */
- public function getRawMessage()
- {
- return $this->rawMessage;
- }
-
- /**
- * Helper for throwing an ErrorException.
- *
- * This allows us to:
- *
- * set_error_handler(array('Psy\Exception\ErrorException', 'throwException'));
- *
- * @throws ErrorException
- *
- * @param int $errno Error type
- * @param string $errstr Message
- * @param string $errfile Filename
- * @param int $errline Line number
- */
- public static function throwException($errno, $errstr, $errfile, $errline)
- {
- throw new self($errstr, 0, $errno, $errfile, $errline);
- }
-
- /**
- * Create an ErrorException from an Error.
- *
- * @param \Error $e
- *
- * @return ErrorException
- */
- public static function fromError(\Error $e)
- {
- return new self($e->getMessage(), $e->getCode(), 1, $e->getFile(), $e->getLine(), $e);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Exception/Exception.php b/www/wiki/vendor/psy/psysh/src/Psy/Exception/Exception.php
deleted file mode 100644
index 80206f6f..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Exception/Exception.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Exception;
-
-/**
- * An interface for Psy Exceptions.
- */
-interface Exception
-{
- /**
- * This is the only thing, really...
- *
- * Return a raw (unformatted) version of the message.
- *
- * @return string
- */
- public function getRawMessage();
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Exception/FatalErrorException.php b/www/wiki/vendor/psy/psysh/src/Psy/Exception/FatalErrorException.php
deleted file mode 100644
index 6c0ef460..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Exception/FatalErrorException.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Exception;
-
-/**
- * A "fatal error" Exception for Psy.
- */
-class FatalErrorException extends \ErrorException implements Exception
-{
- private $rawMessage;
-
- /**
- * Create a fatal error.
- *
- * @param string $message (default: "")
- * @param int $code (default: 0)
- * @param int $severity (default: 9000)
- * @param string $filename (default: null)
- * @param int $lineno (default: null)
- * @param \Exception $previous (default: null)
- */
- public function __construct($message = '', $code = 0, $severity = 9000, $filename = null, $lineno = null, $previous = null)
- {
- $this->rawMessage = $message;
- $message = sprintf('PHP Fatal error: %s in %s on line %d', $message, $filename ?: "eval()'d code", $lineno);
- parent::__construct($message, $code, $severity, $filename, $lineno, $previous);
- }
-
- /**
- * Return a raw (unformatted) version of the error message.
- *
- * @return string
- */
- public function getRawMessage()
- {
- return $this->rawMessage;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Exception/ParseErrorException.php b/www/wiki/vendor/psy/psysh/src/Psy/Exception/ParseErrorException.php
deleted file mode 100644
index 0fb397dc..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Exception/ParseErrorException.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Exception;
-
-/**
- * A "parse error" Exception for Psy.
- */
-class ParseErrorException extends \PhpParser\Error implements Exception
-{
- /**
- * Constructor!
- *
- * @param string $message (default: "")
- * @param int $line (default: -1)
- */
- public function __construct($message = '', $line = -1)
- {
- $message = sprintf('PHP Parse error: %s', $message);
- parent::__construct($message, $line);
- }
-
- /**
- * Create a ParseErrorException from a PhpParser Error.
- *
- * @param \PhpParser\Error $e
- *
- * @return ParseErrorException
- */
- public static function fromParseError(\PhpParser\Error $e)
- {
- return new self($e->getRawMessage(), $e->getStartLine());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Exception/RuntimeException.php b/www/wiki/vendor/psy/psysh/src/Psy/Exception/RuntimeException.php
deleted file mode 100644
index 1e767af0..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Exception/RuntimeException.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Exception;
-
-/**
- * A RuntimeException for Psy.
- */
-class RuntimeException extends \RuntimeException implements Exception
-{
- private $rawMessage;
-
- /**
- * Make this bad boy.
- *
- * @param string $message (default: "")
- * @param int $code (default: 0)
- * @param \Exception $previous (default: null)
- */
- public function __construct($message = '', $code = 0, \Exception $previous = null)
- {
- $this->rawMessage = $message;
- parent::__construct($message, $code, $previous);
- }
-
- /**
- * Return a raw (unformatted) version of the error message.
- *
- * @return string
- */
- public function getRawMessage()
- {
- return $this->rawMessage;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Exception/ThrowUpException.php b/www/wiki/vendor/psy/psysh/src/Psy/Exception/ThrowUpException.php
deleted file mode 100644
index acc87c23..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Exception/ThrowUpException.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Exception;
-
-/**
- * A throw-up exception, used for throwing an exception out of the Psy Shell.
- */
-class ThrowUpException extends \Exception implements Exception
-{
- /**
- * {@inheritdoc}
- */
- public function __construct(\Exception $exception)
- {
- $message = sprintf("Throwing %s with message '%s'", get_class($exception), $exception->getMessage());
- parent::__construct($message, $exception->getCode(), $exception);
- }
-
- /**
- * Return a raw (unformatted) version of the error message.
- *
- * @return string
- */
- public function getRawMessage()
- {
- return $this->getPrevious()->getMessage();
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Exception/TypeErrorException.php b/www/wiki/vendor/psy/psysh/src/Psy/Exception/TypeErrorException.php
deleted file mode 100644
index 756b06a9..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Exception/TypeErrorException.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Exception;
-
-/**
- * A "type error" Exception for Psy.
- */
-class TypeErrorException extends \Exception implements Exception
-{
- private $rawMessage;
-
- /**
- * Constructor!
- *
- * @param string $message (default: "")
- * @param int $code (default: 0)
- */
- public function __construct($message = '', $code = 0)
- {
- $this->rawMessage = $message;
- $message = preg_replace('/, called in .*?: eval\\(\\)\'d code/', '', $message);
- parent::__construct(sprintf('TypeError: %s', $message), $code);
- }
-
- /**
- * Get the raw (unformatted) message for this error.
- *
- * @return string
- */
- public function getRawMessage()
- {
- return $this->rawMessage;
- }
-
- /**
- * Create a TypeErrorException from a TypeError.
- *
- * @param \TypeError $e
- *
- * @return TypeErrorException
- */
- public static function fromTypeError(\TypeError $e)
- {
- return new self($e->getMessage(), $e->getLine());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php b/www/wiki/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php
deleted file mode 100644
index f37eeae1..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\ExecutionLoop;
-
-use Psy\Context;
-use Psy\Shell;
-
-/**
- * A forking version of the Psy Shell execution loop.
- *
- * This version is preferred, as it won't die prematurely if user input includes
- * a fatal error, such as redeclaring a class or function.
- */
-class ForkingLoop extends Loop
-{
- private $savegame;
-
- /**
- * Run the execution loop.
- *
- * Forks into a master and a loop process. The loop process will handle the
- * evaluation of all instructions, then return its state via a socket upon
- * completion.
- *
- * @param Shell $shell
- */
- public function run(Shell $shell)
- {
- list($up, $down) = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP);
-
- if (!$up) {
- throw new \RuntimeException('Unable to create socket pair.');
- }
-
- $pid = pcntl_fork();
- if ($pid < 0) {
- throw new \RuntimeException('Unable to start execution loop.');
- } elseif ($pid > 0) {
- // This is the main thread. We'll just wait for a while.
-
- // We won't be needing this one.
- fclose($up);
-
- // Wait for a return value from the loop process.
- $read = array($down);
- $write = null;
- $except = null;
- if (stream_select($read, $write, $except, null) === false) {
- throw new \RuntimeException('Error waiting for execution loop.');
- }
-
- $content = stream_get_contents($down);
- fclose($down);
-
- if ($content) {
- $shell->setScopeVariables(@unserialize($content));
- }
-
- return;
- }
-
- // This is the child process. It's going to do all the work.
- if (function_exists('setproctitle')) {
- setproctitle('psysh (loop)');
- }
-
- // We won't be needing this one.
- fclose($down);
-
- // Let's do some processing.
- parent::run($shell);
-
- // Send the scope variables back up to the main thread
- fwrite($up, $this->serializeReturn($shell->getScopeVariables(false)));
- fclose($up);
-
- posix_kill(posix_getpid(), SIGKILL);
- }
-
- /**
- * Create a savegame at the start of each loop iteration.
- */
- public function beforeLoop()
- {
- $this->createSavegame();
- }
-
- /**
- * Clean up old savegames at the end of each loop iteration.
- */
- public function afterLoop()
- {
- // if there's an old savegame hanging around, let's kill it.
- if (isset($this->savegame)) {
- posix_kill($this->savegame, SIGKILL);
- pcntl_signal_dispatch();
- }
- }
-
- /**
- * Create a savegame fork.
- *
- * The savegame contains the current execution state, and can be resumed in
- * the event that the worker dies unexpectedly (for example, by encountering
- * a PHP fatal error).
- */
- private function createSavegame()
- {
- // the current process will become the savegame
- $this->savegame = posix_getpid();
-
- $pid = pcntl_fork();
- if ($pid < 0) {
- throw new \RuntimeException('Unable to create savegame fork.');
- } elseif ($pid > 0) {
- // we're the savegame now... let's wait and see what happens
- pcntl_waitpid($pid, $status);
-
- // worker exited cleanly, let's bail
- if (!pcntl_wexitstatus($status)) {
- posix_kill(posix_getpid(), SIGKILL);
- }
-
- // worker didn't exit cleanly, we'll need to have another go
- $this->createSavegame();
- }
- }
-
- /**
- * Serialize all serializable return values.
- *
- * A naïve serialization will run into issues if there is a Closure or
- * SimpleXMLElement (among other things) in scope when exiting the execution
- * loop. We'll just ignore these unserializable classes, and serialize what
- * we can.
- *
- * @param array $return
- *
- * @return string
- */
- private function serializeReturn(array $return)
- {
- $serializable = array();
-
- foreach ($return as $key => $value) {
- // No need to return magic variables
- if (Context::isSpecialVariableName($key)) {
- continue;
- }
-
- // Resources and Closures don't error, but they don't serialize well either.
- if (is_resource($value) || $value instanceof \Closure) {
- continue;
- }
-
- try {
- @serialize($value);
- $serializable[$key] = $value;
- } catch (\Exception $e) {
- // we'll just ignore this one...
- } catch (\Throwable $e) {
- // and this one too...
- }
- }
-
- return @serialize($serializable);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php b/www/wiki/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php
deleted file mode 100644
index 79c31095..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php
+++ /dev/null
@@ -1,186 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\ExecutionLoop;
-
-use Psy\Configuration;
-use Psy\Exception\BreakException;
-use Psy\Exception\ErrorException;
-use Psy\Exception\ThrowUpException;
-use Psy\Exception\TypeErrorException;
-use Psy\Shell;
-
-/**
- * The Psy Shell execution loop.
- */
-class Loop
-{
- const NOOP_INPUT = 'return null;';
-
- /**
- * Loop constructor.
- *
- * The non-forking loop doesn't have much use for Configuration, so we'll
- * just ignore it.
- *
- * @param Configuration $config
- */
- public function __construct(Configuration $config)
- {
- // don't need this
- }
-
- /**
- * Run the execution loop.
- *
- * @throws ThrowUpException if thrown by the `throw-up` command
- *
- * @param Shell $shell
- */
- public function run(Shell $shell)
- {
- $loop = function ($__psysh__) {
- // Load user-defined includes
- set_error_handler(array($__psysh__, 'handleError'));
- try {
- foreach ($__psysh__->getIncludes() as $__psysh_include__) {
- include $__psysh_include__;
- }
- } catch (\Exception $_e) {
- $__psysh__->writeException($_e);
- }
- restore_error_handler();
- unset($__psysh_include__);
-
- extract($__psysh__->getScopeVariables(false));
-
- do {
- $__psysh__->beforeLoop();
- $__psysh__->setScopeVariables(get_defined_vars());
-
- try {
- // read a line, see if we should eval
- $__psysh__->getInput();
-
- // evaluate the current code buffer
- ob_start(
- array($__psysh__, 'writeStdout'),
- version_compare(PHP_VERSION, '5.4', '>=') ? 1 : 2
- );
-
- // Let PsySH inject some magic variables back into the
- // shell scope... things like $__class, and $__file set by
- // reflection commands
- extract($__psysh__->getSpecialScopeVariables(false));
-
- // And unset any magic variables which are no longer needed
- foreach ($__psysh__->getUnusedCommandScopeVariableNames() as $__psysh_var_name__) {
- unset($$__psysh_var_name__, $__psysh_var_name__);
- }
-
- set_error_handler(array($__psysh__, 'handleError'));
- $_ = eval($__psysh__->flushCode() ?: Loop::NOOP_INPUT);
- restore_error_handler();
-
- ob_end_flush();
-
- $__psysh__->writeReturnValue($_);
- } catch (BreakException $_e) {
- restore_error_handler();
- if (ob_get_level() > 0) {
- ob_end_clean();
- }
- $__psysh__->writeException($_e);
-
- return;
- } catch (ThrowUpException $_e) {
- restore_error_handler();
- if (ob_get_level() > 0) {
- ob_end_clean();
- }
- $__psysh__->writeException($_e);
-
- throw $_e;
- } catch (\TypeError $_e) {
- restore_error_handler();
- if (ob_get_level() > 0) {
- ob_end_clean();
- }
- $__psysh__->writeException(TypeErrorException::fromTypeError($_e));
- } catch (\Error $_e) {
- restore_error_handler();
- if (ob_get_level() > 0) {
- ob_end_clean();
- }
- $__psysh__->writeException(ErrorException::fromError($_e));
- } catch (\Exception $_e) {
- restore_error_handler();
- if (ob_get_level() > 0) {
- ob_end_clean();
- }
- $__psysh__->writeException($_e);
- }
-
- $__psysh__->afterLoop();
- } while (true);
- };
-
- // bind the closure to $this from the shell scope variables...
- if (self::bindLoop()) {
- $that = $shell->getBoundObject();
- if (is_object($that)) {
- $loop = $loop->bindTo($that, get_class($that));
- } else {
- $loop = $loop->bindTo(null, null);
- }
- }
-
- $loop($shell);
- }
-
- /**
- * A beforeLoop callback.
- *
- * This is executed at the start of each loop iteration. In the default
- * (non-forking) loop implementation, this is a no-op.
- */
- public function beforeLoop()
- {
- // no-op
- }
-
- /**
- * A afterLoop callback.
- *
- * This is executed at the end of each loop iteration. In the default
- * (non-forking) loop implementation, this is a no-op.
- */
- public function afterLoop()
- {
- // no-op
- }
-
- /**
- * Decide whether to bind the execution loop.
- *
- * @return bool
- */
- protected static function bindLoop()
- {
- // skip binding on HHVM <= 3.5.0
- // see https://github.com/facebook/hhvm/issues/1203
- if (defined('HHVM_VERSION')) {
- return version_compare(HHVM_VERSION, '3.5.0', '>=');
- }
-
- return version_compare(PHP_VERSION, '5.4', '>=');
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Formatter/CodeFormatter.php b/www/wiki/vendor/psy/psysh/src/Psy/Formatter/CodeFormatter.php
deleted file mode 100644
index bab5b825..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Formatter/CodeFormatter.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Formatter;
-
-use JakubOnderka\PhpConsoleHighlighter\Highlighter;
-use Psy\Configuration;
-use Psy\ConsoleColorFactory;
-use Psy\Exception\RuntimeException;
-
-/**
- * A pretty-printer for code.
- */
-class CodeFormatter implements Formatter
-{
- /**
- * Format the code represented by $reflector.
- *
- * @param \Reflector $reflector
- * @param null|string $colorMode (default: null)
- *
- * @return string formatted code
- */
- public static function format(\Reflector $reflector, $colorMode = null)
- {
- if (!self::isReflectable($reflector)) {
- throw new RuntimeException('Source code unavailable.');
- }
-
- $colorMode = $colorMode ?: Configuration::COLOR_MODE_AUTO;
-
- if ($reflector instanceof \ReflectionGenerator) {
- $reflector = $reflector->getFunction();
- }
-
- if ($fileName = $reflector->getFileName()) {
- if (!is_file($fileName)) {
- throw new RuntimeException('Source code unavailable.');
- }
-
- $file = file_get_contents($fileName);
- $start = $reflector->getStartLine();
- $end = $reflector->getEndLine() - $start;
-
- $factory = new ConsoleColorFactory($colorMode);
- $colors = $factory->getConsoleColor();
- $highlighter = new Highlighter($colors);
-
- return $highlighter->getCodeSnippet($file, $start, 0, $end);
- } else {
- throw new RuntimeException('Source code unavailable.');
- }
- }
-
- /**
- * Check whether a Reflector instance is reflectable by this formatter.
- *
- * @param \Reflector $reflector
- *
- * @return bool
- */
- private static function isReflectable(\Reflector $reflector)
- {
- return $reflector instanceof \ReflectionClass ||
- $reflector instanceof \ReflectionFunctionAbstract ||
- $reflector instanceof \ReflectionGenerator;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Formatter/DocblockFormatter.php b/www/wiki/vendor/psy/psysh/src/Psy/Formatter/DocblockFormatter.php
deleted file mode 100644
index c1e8af9c..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Formatter/DocblockFormatter.php
+++ /dev/null
@@ -1,168 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Formatter;
-
-use Psy\Util\Docblock;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-
-/**
- * A pretty-printer for docblocks.
- */
-class DocblockFormatter implements Formatter
-{
- private static $vectorParamTemplates = array(
- 'type' => 'info',
- 'var' => 'strong',
- );
-
- /**
- * Format a docblock.
- *
- * @param \Reflector $reflector
- *
- * @return string Formatted docblock
- */
- public static function format(\Reflector $reflector)
- {
- $docblock = new Docblock($reflector);
- $chunks = array();
-
- if (!empty($docblock->desc)) {
- $chunks[] = '<comment>Description:</comment>';
- $chunks[] = self::indent(OutputFormatter::escape($docblock->desc), ' ');
- $chunks[] = '';
- }
-
- if (!empty($docblock->tags)) {
- foreach ($docblock::$vectors as $name => $vector) {
- if (isset($docblock->tags[$name])) {
- $chunks[] = sprintf('<comment>%s:</comment>', self::inflect($name));
- $chunks[] = self::formatVector($vector, $docblock->tags[$name]);
- $chunks[] = '';
- }
- }
-
- $tags = self::formatTags(array_keys($docblock::$vectors), $docblock->tags);
- if (!empty($tags)) {
- $chunks[] = $tags;
- $chunks[] = '';
- }
- }
-
- return rtrim(implode("\n", $chunks));
- }
-
- /**
- * Format a docblock vector, for example, `@throws`, `@param`, or `@return`.
- *
- * @see DocBlock::$vectors
- *
- * @param array $vector
- * @param array $lines
- *
- * @return string
- */
- private static function formatVector(array $vector, array $lines)
- {
- $template = array(' ');
- foreach ($vector as $type) {
- $max = 0;
- foreach ($lines as $line) {
- $chunk = $line[$type];
- $cur = empty($chunk) ? 0 : strlen($chunk) + 1;
- if ($cur > $max) {
- $max = $cur;
- }
- }
-
- $template[] = self::getVectorParamTemplate($type, $max);
- }
- $template = implode(' ', $template);
-
- return implode("\n", array_map(function ($line) use ($template) {
- $escaped = array_map(array('Symfony\Component\Console\Formatter\OutputFormatter', 'escape'), $line);
-
- return rtrim(vsprintf($template, $escaped));
- }, $lines));
- }
-
- /**
- * Format docblock tags.
- *
- * @param array $skip Tags to exclude
- * @param array $tags Tags to format
- *
- * @return string formatted tags
- */
- private static function formatTags(array $skip, array $tags)
- {
- $chunks = array();
-
- foreach ($tags as $name => $values) {
- if (in_array($name, $skip)) {
- continue;
- }
-
- foreach ($values as $value) {
- $chunks[] = sprintf('<comment>%s%s</comment> %s', self::inflect($name), empty($value) ? '' : ':', OutputFormatter::escape($value));
- }
-
- $chunks[] = '';
- }
-
- return implode("\n", $chunks);
- }
-
- /**
- * Get a docblock vector template.
- *
- * @param string $type Vector type
- * @param int $max Pad width
- *
- * @return string
- */
- private static function getVectorParamTemplate($type, $max)
- {
- if (!isset(self::$vectorParamTemplates[$type])) {
- return sprintf('%%-%ds', $max);
- }
-
- return sprintf('<%s>%%-%ds</%s>', self::$vectorParamTemplates[$type], $max, self::$vectorParamTemplates[$type]);
- }
-
- /**
- * Indent a string.
- *
- * @param string $text String to indent
- * @param string $indent (default: ' ')
- *
- * @return string
- */
- private static function indent($text, $indent = ' ')
- {
- return $indent . str_replace("\n", "\n" . $indent, $text);
- }
-
- /**
- * Convert underscored or whitespace separated words into sentence case.
- *
- * @param string $text
- *
- * @return string
- */
- private static function inflect($text)
- {
- $words = trim(preg_replace('/[\s_-]+/', ' ', preg_replace('/([a-z])([A-Z])/', '$1 $2', $text)));
-
- return implode(' ', array_map('ucfirst', explode(' ', $words)));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Formatter/Formatter.php b/www/wiki/vendor/psy/psysh/src/Psy/Formatter/Formatter.php
deleted file mode 100644
index fe11bce0..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Formatter/Formatter.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Formatter;
-
-/**
- * Formatter interface.
- */
-interface Formatter
-{
- /**
- * @param \Reflector $reflector
- *
- * @return string
- */
- public static function format(\Reflector $reflector);
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Formatter/SignatureFormatter.php b/www/wiki/vendor/psy/psysh/src/Psy/Formatter/SignatureFormatter.php
deleted file mode 100644
index a635ec23..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Formatter/SignatureFormatter.php
+++ /dev/null
@@ -1,273 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Formatter;
-
-use Psy\Reflection\ReflectionConstant;
-use Psy\Reflection\ReflectionLanguageConstruct;
-use Psy\Util\Json;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-
-/**
- * An abstract representation of a function, class or property signature.
- */
-class SignatureFormatter implements Formatter
-{
- /**
- * Format a signature for the given reflector.
- *
- * Defers to subclasses to do the actual formatting.
- *
- * @param \Reflector $reflector
- *
- * @return string Formatted signature
- */
- public static function format(\Reflector $reflector)
- {
- switch (true) {
- case $reflector instanceof \ReflectionFunction:
- case $reflector instanceof ReflectionLanguageConstruct:
- return self::formatFunction($reflector);
-
- // this case also covers \ReflectionObject:
- case $reflector instanceof \ReflectionClass:
- return self::formatClass($reflector);
-
- case $reflector instanceof ReflectionConstant:
- return self::formatConstant($reflector);
-
- case $reflector instanceof \ReflectionMethod:
- return self::formatMethod($reflector);
-
- case $reflector instanceof \ReflectionProperty:
- return self::formatProperty($reflector);
-
- default:
- throw new \InvalidArgumentException('Unexpected Reflector class: ' . get_class($reflector));
- }
- }
-
- /**
- * Print the signature name.
- *
- * @param \Reflector $reflector
- *
- * @return string Formatted name
- */
- public static function formatName(\Reflector $reflector)
- {
- return $reflector->getName();
- }
-
- /**
- * Print the method, property or class modifiers.
- *
- * Technically this should be a trait. Can't wait for 5.4 :)
- *
- * @param \Reflector $reflector
- *
- * @return string Formatted modifiers
- */
- private static function formatModifiers(\Reflector $reflector)
- {
- return implode(' ', array_map(function ($modifier) {
- return sprintf('<keyword>%s</keyword>', $modifier);
- }, \Reflection::getModifierNames($reflector->getModifiers())));
- }
-
- /**
- * Format a class signature.
- *
- * @param \ReflectionClass $reflector
- *
- * @return string Formatted signature
- */
- private static function formatClass(\ReflectionClass $reflector)
- {
- $chunks = array();
-
- if ($modifiers = self::formatModifiers($reflector)) {
- $chunks[] = $modifiers;
- }
-
- if (version_compare(PHP_VERSION, '5.4', '>=') && $reflector->isTrait()) {
- $chunks[] = 'trait';
- } else {
- $chunks[] = $reflector->isInterface() ? 'interface' : 'class';
- }
-
- $chunks[] = sprintf('<class>%s</class>', self::formatName($reflector));
-
- if ($parent = $reflector->getParentClass()) {
- $chunks[] = 'extends';
- $chunks[] = sprintf('<class>%s</class>', $parent->getName());
- }
-
- $interfaces = $reflector->getInterfaceNames();
- if (!empty($interfaces)) {
- sort($interfaces);
-
- $chunks[] = 'implements';
- $chunks[] = implode(', ', array_map(function ($name) {
- return sprintf('<class>%s</class>', $name);
- }, $interfaces));
- }
-
- return implode(' ', $chunks);
- }
-
- /**
- * Format a constant signature.
- *
- * @param ReflectionConstant $reflector
- *
- * @return string Formatted signature
- */
- private static function formatConstant(ReflectionConstant $reflector)
- {
- $value = $reflector->getValue();
- $style = self::getTypeStyle($value);
-
- return sprintf(
- '<keyword>const</keyword> <const>%s</const> = <%s>%s</%s>',
- self::formatName($reflector),
- $style,
- OutputFormatter::escape(Json::encode($value)),
- $style
- );
- }
-
- /**
- * Helper for getting output style for a given value's type.
- *
- * @param mixed $value
- *
- * @return string
- */
- private static function getTypeStyle($value)
- {
- if (is_int($value) || is_float($value)) {
- return 'number';
- } elseif (is_string($value)) {
- return 'string';
- } elseif (is_bool($value) || is_null($value)) {
- return 'bool';
- } else {
- return 'strong';
- }
- }
-
- /**
- * Format a property signature.
- *
- * @param \ReflectionProperty $reflector
- *
- * @return string Formatted signature
- */
- private static function formatProperty(\ReflectionProperty $reflector)
- {
- return sprintf(
- '%s <strong>$%s</strong>',
- self::formatModifiers($reflector),
- $reflector->getName()
- );
- }
-
- /**
- * Format a function signature.
- *
- * @param \ReflectionFunction $reflector
- *
- * @return string Formatted signature
- */
- private static function formatFunction(\ReflectionFunctionAbstract $reflector)
- {
- return sprintf(
- '<keyword>function</keyword> %s<function>%s</function>(%s)',
- $reflector->returnsReference() ? '&' : '',
- self::formatName($reflector),
- implode(', ', self::formatFunctionParams($reflector))
- );
- }
-
- /**
- * Format a method signature.
- *
- * @param \ReflectionMethod $reflector
- *
- * @return string Formatted signature
- */
- private static function formatMethod(\ReflectionMethod $reflector)
- {
- return sprintf(
- '%s %s',
- self::formatModifiers($reflector),
- self::formatFunction($reflector)
- );
- }
-
- /**
- * Print the function params.
- *
- * @param \ReflectionFunctionAbstract $reflector
- *
- * @return string
- */
- private static function formatFunctionParams(\ReflectionFunctionAbstract $reflector)
- {
- $params = array();
- foreach ($reflector->getParameters() as $param) {
- $hint = '';
- try {
- if ($param->isArray()) {
- $hint = '<keyword>array</keyword> ';
- } elseif ($class = $param->getClass()) {
- $hint = sprintf('<class>%s</class> ', $class->getName());
- }
- } catch (\Exception $e) {
- // sometimes we just don't know...
- // bad class names, or autoloaded classes that haven't been loaded yet, or whathaveyou.
- // come to think of it, the only time I've seen this is with the intl extension.
-
- // Hax: we'll try to extract it :P
- $chunks = explode('$' . $param->getName(), (string) $param);
- $chunks = explode(' ', trim($chunks[0]));
- $guess = end($chunks);
-
- $hint = sprintf('<urgent>%s</urgent> ', $guess);
- }
-
- if ($param->isOptional()) {
- if (!$param->isDefaultValueAvailable()) {
- $value = 'unknown';
- $typeStyle = 'urgent';
- } else {
- $value = $param->getDefaultValue();
- $typeStyle = self::getTypeStyle($value);
- $value = is_array($value) ? 'array()' : is_null($value) ? 'null' : var_export($value, true);
- }
- $default = sprintf(' = <%s>%s</%s>', $typeStyle, OutputFormatter::escape($value), $typeStyle);
- } else {
- $default = '';
- }
-
- $params[] = sprintf(
- '%s%s<strong>$%s</strong>%s',
- $param->isPassedByReference() ? '&' : '',
- $hint,
- $param->getName(),
- $default
- );
- }
-
- return $params;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Input/CodeArgument.php b/www/wiki/vendor/psy/psysh/src/Psy/Input/CodeArgument.php
deleted file mode 100644
index 4e50754e..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Input/CodeArgument.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Input;
-
-use Symfony\Component\Console\Input\InputArgument;
-
-/**
- * An input argument for code.
- *
- * A CodeArgument must be the final argument of the command. Once all options
- * and other arguments are used, any remaining input until the end of the string
- * is considered part of a single CodeArgument, regardless of spaces, quoting,
- * escaping, etc.
- *
- * This means commands can support crazy input like
- *
- * parse function() { return "wheee\n"; }
- *
- * ... without having to put the code in a quoted string and escape everything.
- */
-class CodeArgument extends InputArgument
-{
- /**
- * Constructor.
- *
- * @param string $name The argument name
- * @param int $mode The argument mode: self::REQUIRED or self::OPTIONAL
- * @param string $description A description text
- * @param mixed $default The default value (for self::OPTIONAL mode only)
- *
- * @throws \InvalidArgumentException When argument mode is not valid
- */
- public function __construct($name, $mode = null, $description = '', $default = null)
- {
- if ($mode & InputArgument::IS_ARRAY) {
- throw new \InvalidArgumentException('Argument mode IS_ARRAY is not valid.');
- }
-
- parent::__construct($name, $mode, $description, $default);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Input/FilterOptions.php b/www/wiki/vendor/psy/psysh/src/Psy/Input/FilterOptions.php
deleted file mode 100644
index 46017d22..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Input/FilterOptions.php
+++ /dev/null
@@ -1,143 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Input;
-
-use Psy\Exception\RuntimeException;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-
-/**
- * Parse, validate and match --grep, --insensitive and --invert command options.
- */
-class FilterOptions
-{
- private $filter = false;
- private $pattern;
- private $insensitive;
- private $invert;
-
- /**
- * Get input option definitions for filtering.
- *
- * @return InputOption[]
- */
- public static function getOptions()
- {
- return array(
- new InputOption('grep', 'G', InputOption::VALUE_REQUIRED, 'Limit to items matching the given pattern (string or regex).'),
- new InputOption('insensitive', 'i', InputOption::VALUE_NONE, 'Case-insensitive search (requires --grep).'),
- new InputOption('invert', 'v', InputOption::VALUE_NONE, 'Inverted search (requires --grep).'),
- );
- }
-
- /**
- * Bind input and prepare filter.
- *
- * @param InputInterface $input
- */
- public function bind(InputInterface $input)
- {
- $this->validateInput($input);
-
- if (!$pattern = $input->getOption('grep')) {
- $this->filter = false;
-
- return;
- }
-
- if (!$this->stringIsRegex($pattern)) {
- $pattern = '/' . preg_quote($pattern, '/') . '/';
- }
-
- if ($insensitive = $input->getOption('insensitive')) {
- $pattern .= 'i';
- }
-
- $this->validateRegex($pattern);
-
- $this->filter = true;
- $this->pattern = $pattern;
- $this->insensitive = $insensitive;
- $this->invert = $input->getOption('invert');
- }
-
- /**
- * Check whether the bound input has filter options.
- *
- * @return bool
- */
- public function hasFilter()
- {
- return $this->filter;
- }
-
- /**
- * Check whether a string matches the current filter options.
- *
- * @param string $string
- * @param array $matches
- *
- * @return bool
- */
- public function match($string, array &$matches = null)
- {
- return $this->filter === false || (preg_match($this->pattern, $string, $matches) xor $this->invert);
- }
-
- /**
- * Validate that grep, invert and insensitive input options are consistent.
- *
- * @param InputInterface $input
- *
- * @return bool
- */
- private function validateInput(InputInterface $input)
- {
- if (!$input->getOption('grep')) {
- foreach (array('invert', 'insensitive') as $option) {
- if ($input->getOption($option)) {
- throw new RuntimeException('--' . $option . ' does not make sense without --grep');
- }
- }
- }
- }
-
- /**
- * Check whether a string appears to be a regular expression.
- *
- * @param string $string
- *
- * @return bool
- */
- private function stringIsRegex($string)
- {
- return substr($string, 0, 1) === '/' && substr($string, -1) === '/' && strlen($string) >= 3;
- }
-
- /**
- * Validate that $pattern is a valid regular expression.
- *
- * @param string $pattern
- *
- * @return bool
- */
- private function validateRegex($pattern)
- {
- set_error_handler(array('Psy\Exception\ErrorException', 'throwException'));
- try {
- preg_match($pattern, '');
- } catch (ErrorException $e) {
- throw new RuntimeException(str_replace('preg_match(): ', 'Invalid regular expression: ', $e->getRawMessage()));
- }
- restore_error_handler();
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Input/ShellInput.php b/www/wiki/vendor/psy/psysh/src/Psy/Input/ShellInput.php
deleted file mode 100644
index e25db461..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Input/ShellInput.php
+++ /dev/null
@@ -1,322 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Input;
-
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\StringInput;
-
-/**
- * A StringInput subclass specialized for code arguments.
- */
-class ShellInput extends StringInput
-{
- private $hasCodeArgument = false;
-
- /**
- * Unlike the parent implementation's tokens, this contains an array of
- * token/rest pairs, so that code arguments can be handled while parsing.
- */
- private $tokenPairs;
- private $parsed;
-
- /**
- * Constructor.
- *
- * @param string $input An array of parameters from the CLI (in the argv format)
- */
- public function __construct($input)
- {
- parent::__construct($input);
-
- $this->tokenPairs = $this->tokenize($input);
- }
-
- /**
- * {@inheritdoc}
- *
- * @throws \InvalidArgumentException if $definition has CodeArgument before the final argument position
- */
- public function bind(InputDefinition $definition)
- {
- $hasCodeArgument = false;
-
- if ($definition->getArgumentCount() > 0) {
- $args = $definition->getArguments();
- $lastArg = array_pop($args);
- foreach ($args as $arg) {
- if ($arg instanceof CodeArgument) {
- $msg = sprintf('Unexpected CodeArgument before the final position: %s', $arg->getName());
- throw new \InvalidArgumentException($msg);
- }
- }
-
- if ($lastArg instanceof CodeArgument) {
- $hasCodeArgument = true;
- }
- }
-
- $this->hasCodeArgument = $hasCodeArgument;
-
- return parent::bind($definition);
- }
-
- /**
- * Tokenizes a string.
- *
- * The version of this on StringInput is good, but doesn't handle code
- * arguments if they're at all complicated. This does :)
- *
- * @param string $input The input to tokenize
- *
- * @return array An array of token/rest pairs
- *
- * @throws \InvalidArgumentException When unable to parse input (should never happen)
- */
- private function tokenize($input)
- {
- $tokens = array();
- $length = strlen($input);
- $cursor = 0;
- while ($cursor < $length) {
- if (preg_match('/\s+/A', $input, $match, null, $cursor)) {
- } elseif (preg_match('/([^="\'\s]+?)(=?)(' . StringInput::REGEX_QUOTED_STRING . '+)/A', $input, $match, null, $cursor)) {
- $tokens[] = array(
- $match[1] . $match[2] . stripcslashes(str_replace(array('"\'', '\'"', '\'\'', '""'), '', substr($match[3], 1, strlen($match[3]) - 2))),
- substr($input, $cursor),
- );
- } elseif (preg_match('/' . StringInput::REGEX_QUOTED_STRING . '/A', $input, $match, null, $cursor)) {
- $tokens[] = array(
- stripcslashes(substr($match[0], 1, strlen($match[0]) - 2)),
- substr($input, $cursor),
- );
- } elseif (preg_match('/' . StringInput::REGEX_STRING . '/A', $input, $match, null, $cursor)) {
- $tokens[] = array(
- stripcslashes($match[1]),
- substr($input, $cursor),
- );
- } else {
- // should never happen
- throw new \InvalidArgumentException(sprintf('Unable to parse input near "... %s ..."', substr($input, $cursor, 10)));
- }
-
- $cursor += strlen($match[0]);
- }
-
- return $tokens;
- }
-
- /**
- * Same as parent, but with some bonus handling for code arguments.
- */
- protected function parse()
- {
- $parseOptions = true;
- $this->parsed = $this->tokenPairs;
- while (null !== $tokenPair = array_shift($this->parsed)) {
- // token is what you'd expect. rest is the remainder of the input
- // string, including token, and will be used if this is a code arg.
- list($token, $rest) = $tokenPair;
-
- if ($parseOptions && '' === $token) {
- $this->parseShellArgument($token, $rest);
- } elseif ($parseOptions && '--' === $token) {
- $parseOptions = false;
- } elseif ($parseOptions && 0 === strpos($token, '--')) {
- $this->parseLongOption($token);
- } elseif ($parseOptions && '-' === $token[0] && '-' !== $token) {
- $this->parseShortOption($token);
- } else {
- $this->parseShellArgument($token, $rest);
- }
- }
- }
-
- /**
- * Parses an argument, with bonus handling for code arguments.
- *
- * @param string $token The current token
- * @param string $rest The remaining unparsed input, including the current token
- *
- * @throws \RuntimeException When too many arguments are given
- */
- private function parseShellArgument($token, $rest)
- {
- $c = count($this->arguments);
-
- // if input is expecting another argument, add it
- if ($this->definition->hasArgument($c)) {
- $arg = $this->definition->getArgument($c);
-
- if ($arg instanceof CodeArgument) {
- // When we find a code argument, we're done parsing. Add the
- // remaining input to the current argument and call it a day.
- $this->parsed = array();
- $this->arguments[$arg->getName()] = $rest;
- } else {
- $this->arguments[$arg->getName()] = $arg->isArray() ? array($token) : $token;
- }
-
- // if last argument isArray(), append token to last argument
- } elseif ($this->definition->hasArgument($c - 1) && $this->definition->getArgument($c - 1)->isArray()) {
- $arg = $this->definition->getArgument($c - 1);
- $this->arguments[$arg->getName()][] = $token;
-
- // unexpected argument
- } else {
- $all = $this->definition->getArguments();
- if (count($all)) {
- throw new \RuntimeException(sprintf('Too many arguments, expected arguments "%s".', implode('" "', array_keys($all))));
- }
-
- throw new \RuntimeException(sprintf('No arguments expected, got "%s".', $token));
- }
- }
-
- // Everything below this is copypasta from ArgvInput private methods
-
- /**
- * Parses a short option.
- *
- * @param string $token The current token
- */
- private function parseShortOption($token)
- {
- $name = substr($token, 1);
-
- if (strlen($name) > 1) {
- if ($this->definition->hasShortcut($name[0]) && $this->definition->getOptionForShortcut($name[0])->acceptValue()) {
- // an option with a value (with no space)
- $this->addShortOption($name[0], substr($name, 1));
- } else {
- $this->parseShortOptionSet($name);
- }
- } else {
- $this->addShortOption($name, null);
- }
- }
-
- /**
- * Parses a short option set.
- *
- * @param string $name The current token
- *
- * @throws \RuntimeException When option given doesn't exist
- */
- private function parseShortOptionSet($name)
- {
- $len = strlen($name);
- for ($i = 0; $i < $len; ++$i) {
- if (!$this->definition->hasShortcut($name[$i])) {
- throw new \RuntimeException(sprintf('The "-%s" option does not exist.', $name[$i]));
- }
-
- $option = $this->definition->getOptionForShortcut($name[$i]);
- if ($option->acceptValue()) {
- $this->addLongOption($option->getName(), $i === $len - 1 ? null : substr($name, $i + 1));
-
- break;
- } else {
- $this->addLongOption($option->getName(), null);
- }
- }
- }
-
- /**
- * Parses a long option.
- *
- * @param string $token The current token
- */
- private function parseLongOption($token)
- {
- $name = substr($token, 2);
-
- if (false !== $pos = strpos($name, '=')) {
- if (0 === strlen($value = substr($name, $pos + 1))) {
- // if no value after "=" then substr() returns "" since php7 only, false before
- // see http://php.net/manual/fr/migration70.incompatible.php#119151
- if (PHP_VERSION_ID < 70000 && false === $value) {
- $value = '';
- }
- array_unshift($this->parsed, array($value, null));
- }
- $this->addLongOption(substr($name, 0, $pos), $value);
- } else {
- $this->addLongOption($name, null);
- }
- }
-
- /**
- * Adds a short option value.
- *
- * @param string $shortcut The short option key
- * @param mixed $value The value for the option
- *
- * @throws \RuntimeException When option given doesn't exist
- */
- private function addShortOption($shortcut, $value)
- {
- if (!$this->definition->hasShortcut($shortcut)) {
- throw new \RuntimeException(sprintf('The "-%s" option does not exist.', $shortcut));
- }
-
- $this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value);
- }
-
- /**
- * Adds a long option value.
- *
- * @param string $name The long option key
- * @param mixed $value The value for the option
- *
- * @throws \RuntimeException When option given doesn't exist
- */
- private function addLongOption($name, $value)
- {
- if (!$this->definition->hasOption($name)) {
- throw new \RuntimeException(sprintf('The "--%s" option does not exist.', $name));
- }
-
- $option = $this->definition->getOption($name);
-
- if (null !== $value && !$option->acceptValue()) {
- throw new \RuntimeException(sprintf('The "--%s" option does not accept a value.', $name));
- }
-
- if (in_array($value, array('', null), true) && $option->acceptValue() && count($this->parsed)) {
- // if option accepts an optional or mandatory argument
- // let's see if there is one provided
- $next = array_shift($this->parsed);
- $nextToken = $next[0];
- if ((isset($nextToken[0]) && '-' !== $nextToken[0]) || in_array($nextToken, array('', null), true)) {
- $value = $nextToken;
- } else {
- array_unshift($this->parsed, $next);
- }
- }
-
- if (null === $value) {
- if ($option->isValueRequired()) {
- throw new \RuntimeException(sprintf('The "--%s" option requires a value.', $name));
- }
-
- if (!$option->isArray() && !$option->isValueOptional()) {
- $value = true;
- }
- }
-
- if ($option->isArray()) {
- $this->options[$name][] = $value;
- } else {
- $this->options[$name] = $value;
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Input/SilentInput.php b/www/wiki/vendor/psy/psysh/src/Psy/Input/SilentInput.php
deleted file mode 100644
index 0da750d6..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Input/SilentInput.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Input;
-
-/**
- * A simple class used internally by PsySH to represent silent input.
- *
- * Silent input is generally used for non-user-generated code, such as the
- * rewritten user code run by sudo command. Silent input isn't echoed before
- * evaluating, and it's not added to the readline history.
- */
-class SilentInput
-{
- private $inputString;
-
- /**
- * Constructor.
- *
- * @param string $inputString
- */
- public function __construct($inputString)
- {
- $this->inputString = $inputString;
- }
-
- /**
- * To. String.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->inputString;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Output/OutputPager.php b/www/wiki/vendor/psy/psysh/src/Psy/Output/OutputPager.php
deleted file mode 100644
index 03f049f6..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Output/OutputPager.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Output;
-
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * An output pager is much the same as a regular OutputInterface, but allows
- * the stream to be flushed to a pager periodically.
- */
-interface OutputPager extends OutputInterface
-{
- /**
- * Close the current pager process.
- */
- public function close();
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Output/PassthruPager.php b/www/wiki/vendor/psy/psysh/src/Psy/Output/PassthruPager.php
deleted file mode 100644
index 5bcbf796..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Output/PassthruPager.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Output;
-
-use Symfony\Component\Console\Output\StreamOutput;
-
-/**
- * A passthrough pager is a no-op. It simply wraps a StreamOutput's stream and
- * does nothing when the pager is closed.
- */
-class PassthruPager extends StreamOutput implements OutputPager
-{
- /**
- * Constructor.
- *
- * @param StreamOutput $output
- */
- public function __construct(StreamOutput $output)
- {
- parent::__construct($output->getStream());
- }
-
- /**
- * Close the current pager process.
- */
- public function close()
- {
- // nothing to do here
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Output/ProcOutputPager.php b/www/wiki/vendor/psy/psysh/src/Psy/Output/ProcOutputPager.php
deleted file mode 100644
index bb41c6cc..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Output/ProcOutputPager.php
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Output;
-
-use Symfony\Component\Console\Output\StreamOutput;
-
-/**
- * ProcOutputPager class.
- *
- * A ProcOutputPager instance wraps a regular StreamOutput's stream. Rather
- * than writing directly to the stream, it shells out to a pager process and
- * gives that process the stream as stdout. This means regular *nix commands
- * like `less` and `more` can be used to page large amounts of output.
- */
-class ProcOutputPager extends StreamOutput implements OutputPager
-{
- private $proc;
- private $pipe;
- private $stream;
- private $cmd;
-
- /**
- * Constructor.
- *
- * @param StreamOutput $output
- * @param string $cmd Pager process command (default: 'less -R -S -F -X')
- */
- public function __construct(StreamOutput $output, $cmd = 'less -R -S -F -X')
- {
- $this->stream = $output->getStream();
- $this->cmd = $cmd;
- }
-
- /**
- * Writes a message to the output.
- *
- * @param string $message A message to write to the output
- * @param bool $newline Whether to add a newline or not
- *
- * @throws \RuntimeException When unable to write output (should never happen)
- */
- public function doWrite($message, $newline)
- {
- $pipe = $this->getPipe();
- if (false === @fwrite($pipe, $message . ($newline ? PHP_EOL : ''))) {
- // @codeCoverageIgnoreStart
- // should never happen
- throw new \RuntimeException('Unable to write output.');
- // @codeCoverageIgnoreEnd
- }
-
- fflush($pipe);
- }
-
- /**
- * Close the current pager process.
- */
- public function close()
- {
- if (isset($this->pipe)) {
- fclose($this->pipe);
- }
-
- if (isset($this->proc)) {
- $exit = proc_close($this->proc);
- if ($exit !== 0) {
- throw new \RuntimeException('Error closing output stream');
- }
- }
-
- unset($this->pipe, $this->proc);
- }
-
- /**
- * Get a pipe for paging output.
- *
- * If no active pager process exists, fork one and return its input pipe.
- */
- private function getPipe()
- {
- if (!isset($this->pipe) || !isset($this->proc)) {
- $desc = array(array('pipe', 'r'), $this->stream, fopen('php://stderr', 'w'));
- $this->proc = proc_open($this->cmd, $desc, $pipes);
-
- if (!is_resource($this->proc)) {
- throw new \RuntimeException('Error opening output stream');
- }
-
- $this->pipe = $pipes[0];
- }
-
- return $this->pipe;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Output/ShellOutput.php b/www/wiki/vendor/psy/psysh/src/Psy/Output/ShellOutput.php
deleted file mode 100644
index f390db13..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Output/ShellOutput.php
+++ /dev/null
@@ -1,204 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Output;
-
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-use Symfony\Component\Console\Output\ConsoleOutput;
-
-/**
- * A ConsoleOutput subclass specifically for Psy Shell output.
- */
-class ShellOutput extends ConsoleOutput
-{
- const NUMBER_LINES = 128;
-
- private $paging = 0;
- private $pager;
-
- /**
- * Construct a ShellOutput instance.
- *
- * @param mixed $verbosity (default: self::VERBOSITY_NORMAL)
- * @param bool $decorated (default: null)
- * @param OutputFormatterInterface $formatter (default: null)
- * @param null|string|OutputPager $pager (default: null)
- */
- public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null, $pager = null)
- {
- parent::__construct($verbosity, $decorated, $formatter);
-
- $this->initFormatters();
-
- if ($pager === null) {
- $this->pager = new PassthruPager($this);
- } elseif (is_string($pager)) {
- $this->pager = new ProcOutputPager($this, $pager);
- } elseif ($pager instanceof OutputPager) {
- $this->pager = $pager;
- } else {
- throw new \InvalidArgumentException('Unexpected pager parameter: ' . $pager);
- }
- }
-
- /**
- * Page multiple lines of output.
- *
- * The output pager is started
- *
- * If $messages is callable, it will be called, passing this output instance
- * for rendering. Otherwise, all passed $messages are paged to output.
- *
- * Upon completion, the output pager is flushed.
- *
- * @param string|array|\Closure $messages A string, array of strings or a callback
- * @param int $type (default: 0)
- */
- public function page($messages, $type = 0)
- {
- if (is_string($messages)) {
- $messages = (array) $messages;
- }
-
- if (!is_array($messages) && !is_callable($messages)) {
- throw new \InvalidArgumentException('Paged output requires a string, array or callback.');
- }
-
- $this->startPaging();
-
- if (is_callable($messages)) {
- $messages($this);
- } else {
- $this->write($messages, true, $type);
- }
-
- $this->stopPaging();
- }
-
- /**
- * Start sending output to the output pager.
- */
- public function startPaging()
- {
- $this->paging++;
- }
-
- /**
- * Stop paging output and flush the output pager.
- */
- public function stopPaging()
- {
- $this->paging--;
- $this->closePager();
- }
-
- /**
- * Writes a message to the output.
- *
- * Optionally, pass `$type | self::NUMBER_LINES` as the $type parameter to
- * number the lines of output.
- *
- * @throws \InvalidArgumentException When unknown output type is given
- *
- * @param string|array $messages The message as an array of lines or a single string
- * @param bool $newline Whether to add a newline or not
- * @param int $type The type of output
- */
- public function write($messages, $newline = false, $type = 0)
- {
- if ($this->getVerbosity() === self::VERBOSITY_QUIET) {
- return;
- }
-
- $messages = (array) $messages;
-
- if ($type & self::NUMBER_LINES) {
- $pad = strlen((string) count($messages));
- $template = $this->isDecorated() ? "<aside>%{$pad}s</aside>: %s" : "%{$pad}s: %s";
-
- if ($type & self::OUTPUT_RAW) {
- $messages = array_map(array('Symfony\Component\Console\Formatter\OutputFormatter', 'escape'), $messages);
- }
-
- foreach ($messages as $i => $line) {
- $messages[$i] = sprintf($template, $i, $line);
- }
-
- // clean this up for super.
- $type = $type & ~self::NUMBER_LINES & ~self::OUTPUT_RAW;
- }
-
- parent::write($messages, $newline, $type);
- }
-
- /**
- * Writes a message to the output.
- *
- * Handles paged output, or writes directly to the output stream.
- *
- * @param string $message A message to write to the output
- * @param bool $newline Whether to add a newline or not
- */
- public function doWrite($message, $newline)
- {
- if ($this->paging > 0) {
- $this->pager->doWrite($message, $newline);
- } else {
- parent::doWrite($message, $newline);
- }
- }
-
- /**
- * Flush and close the output pager.
- */
- private function closePager()
- {
- if ($this->paging <= 0) {
- $this->pager->close();
- }
- }
-
- /**
- * Initialize output formatter styles.
- */
- private function initFormatters()
- {
- $formatter = $this->getFormatter();
-
- $formatter->setStyle('warning', new OutputFormatterStyle('black', 'yellow'));
- $formatter->setStyle('error', new OutputFormatterStyle('black', 'red', array('bold')));
- $formatter->setStyle('aside', new OutputFormatterStyle('blue'));
- $formatter->setStyle('strong', new OutputFormatterStyle(null, null, array('bold')));
- $formatter->setStyle('return', new OutputFormatterStyle('cyan'));
- $formatter->setStyle('urgent', new OutputFormatterStyle('red'));
- $formatter->setStyle('hidden', new OutputFormatterStyle('black'));
-
- // Visibility
- $formatter->setStyle('public', new OutputFormatterStyle(null, null, array('bold')));
- $formatter->setStyle('protected', new OutputFormatterStyle('yellow'));
- $formatter->setStyle('private', new OutputFormatterStyle('red'));
- $formatter->setStyle('global', new OutputFormatterStyle('cyan', null, array('bold')));
- $formatter->setStyle('const', new OutputFormatterStyle('cyan'));
- $formatter->setStyle('class', new OutputFormatterStyle('blue', null, array('underscore')));
- $formatter->setStyle('function', new OutputFormatterStyle(null));
- $formatter->setStyle('default', new OutputFormatterStyle(null));
-
- // Types
- $formatter->setStyle('number', new OutputFormatterStyle('magenta'));
- $formatter->setStyle('string', new OutputFormatterStyle('green'));
- $formatter->setStyle('bool', new OutputFormatterStyle('cyan'));
- $formatter->setStyle('keyword', new OutputFormatterStyle('yellow'));
- $formatter->setStyle('comment', new OutputFormatterStyle('blue'));
- $formatter->setStyle('object', new OutputFormatterStyle('blue'));
- $formatter->setStyle('resource', new OutputFormatterStyle('yellow'));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/ParserFactory.php b/www/wiki/vendor/psy/psysh/src/Psy/ParserFactory.php
deleted file mode 100644
index 83f15398..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/ParserFactory.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-use PhpParser\Lexer;
-use PhpParser\Parser;
-use PhpParser\ParserFactory as OriginalParserFactory;
-
-/**
- * Parser factory to abstract over PHP parser library versions.
- */
-class ParserFactory
-{
- const ONLY_PHP5 = 'ONLY_PHP5';
- const ONLY_PHP7 = 'ONLY_PHP7';
- const PREFER_PHP5 = 'PREFER_PHP5';
- const PREFER_PHP7 = 'PREFER_PHP7';
-
- /**
- * Possible kinds of parsers for the factory, from PHP parser library.
- *
- * @return array
- */
- public static function getPossibleKinds()
- {
- return array('ONLY_PHP5', 'ONLY_PHP7', 'PREFER_PHP5', 'PREFER_PHP7');
- }
-
- /**
- * Is this parser factory supports kinds?
- *
- * PHP parser < 2.0 doesn't support kinds, >= 2.0 — does.
- *
- * @return bool
- */
- public function hasKindsSupport()
- {
- return class_exists('PhpParser\ParserFactory');
- }
-
- /**
- * Default kind (if supported, based on current interpreter's version).
- *
- * @return string|null
- */
- public function getDefaultKind()
- {
- if ($this->hasKindsSupport()) {
- return version_compare(PHP_VERSION, '7.0', '>=') ? static::ONLY_PHP7 : static::ONLY_PHP5;
- }
- }
-
- /**
- * New parser instance with given kind.
- *
- * @param string|null $kind One of class constants (only for PHP parser 2.0 and above)
- *
- * @return Parser
- */
- public function createParser($kind = null)
- {
- if ($this->hasKindsSupport()) {
- $originalFactory = new OriginalParserFactory();
-
- $kind = $kind ?: $this->getDefaultKind();
-
- if (!in_array($kind, static::getPossibleKinds())) {
- throw new \InvalidArgumentException('Unknown parser kind');
- }
-
- $parser = $originalFactory->create(constant('PhpParser\ParserFactory::' . $kind));
- } else {
- if ($kind !== null) {
- throw new \InvalidArgumentException('Install PHP Parser v2.x to specify parser kind');
- }
-
- $parser = new Parser(new Lexer());
- }
-
- return $parser;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Readline/GNUReadline.php b/www/wiki/vendor/psy/psysh/src/Psy/Readline/GNUReadline.php
deleted file mode 100644
index 99fba235..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Readline/GNUReadline.php
+++ /dev/null
@@ -1,170 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Readline;
-
-/**
- * A Readline interface implementation for GNU Readline.
- *
- * This is by far the coolest way to do it, but it doesn't work with new PHP.
- *
- * Oh well.
- */
-class GNUReadline implements Readline
-{
- /** @var string|false */
- protected $historyFile;
- /** @var int */
- protected $historySize;
- /** @var bool */
- protected $eraseDups;
-
- /**
- * GNU Readline is supported iff `readline_list_history` is defined. PHP
- * decided it would be awesome to swap out GNU Readline for Libedit, but
- * they ended up shipping an incomplete implementation. So we've got this.
- *
- * @return bool
- */
- public static function isSupported()
- {
- return function_exists('readline_list_history');
- }
-
- /**
- * GNU Readline constructor.
- *
- * @param string|false $historyFile
- * @param int $historySize
- * @param bool $eraseDups
- */
- public function __construct($historyFile = null, $historySize = 0, $eraseDups = false)
- {
- $this->historyFile = ($historyFile !== null) ? $historyFile : false;
- $this->historySize = $historySize;
- $this->eraseDups = $eraseDups;
- }
-
- /**
- * {@inheritdoc}
- */
- public function addHistory($line)
- {
- if ($res = readline_add_history($line)) {
- $this->writeHistory();
- }
-
- return $res;
- }
-
- /**
- * {@inheritdoc}
- */
- public function clearHistory()
- {
- if ($res = readline_clear_history()) {
- $this->writeHistory();
- }
-
- return $res;
- }
-
- /**
- * {@inheritdoc}
- */
- public function listHistory()
- {
- return readline_list_history();
- }
-
- /**
- * {@inheritdoc}
- */
- public function readHistory()
- {
- // Workaround PHP bug #69054
- //
- // If open_basedir is set, readline_read_history() segfaults. This was fixed in 5.6.7:
- //
- // https://github.com/php/php-src/blob/423a057023ef3c00d2ffc16a6b43ba01d0f71796/NEWS#L19-L21
- //
- if (version_compare(PHP_VERSION, '5.6.7', '>=') || !ini_get('open_basedir')) {
- readline_read_history();
- }
- readline_clear_history();
-
- return readline_read_history($this->historyFile);
- }
-
- /**
- * {@inheritdoc}
- */
- public function readline($prompt = null)
- {
- return readline($prompt);
- }
-
- /**
- * {@inheritdoc}
- */
- public function redisplay()
- {
- readline_redisplay();
- }
-
- /**
- * {@inheritdoc}
- */
- public function writeHistory()
- {
- // We have to write history first, since it is used
- // by Libedit to list history
- if ($this->historyFile !== false) {
- $res = readline_write_history($this->historyFile);
- } else {
- $res = true;
- }
-
- if (!$res || !$this->eraseDups && !$this->historySize > 0) {
- return $res;
- }
-
- $hist = $this->listHistory();
- if (!$hist) {
- return true;
- }
-
- if ($this->eraseDups) {
- // flip-flip technique: removes duplicates, latest entries win.
- $hist = array_flip(array_flip($hist));
- // sort on keys to get the order back
- ksort($hist);
- }
-
- if ($this->historySize > 0) {
- $histsize = count($hist);
- if ($histsize > $this->historySize) {
- $hist = array_slice($hist, $histsize - $this->historySize);
- }
- }
-
- readline_clear_history();
- foreach ($hist as $line) {
- readline_add_history($line);
- }
-
- if ($this->historyFile !== false) {
- return readline_write_history($this->historyFile);
- }
-
- return true;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Readline/HoaConsole.php b/www/wiki/vendor/psy/psysh/src/Psy/Readline/HoaConsole.php
deleted file mode 100644
index 1ef7ac99..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Readline/HoaConsole.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Readline;
-
-use Hoa\Console\Readline\Readline as HoaReadline;
-use Psy\Exception\BreakException;
-
-/**
- * Hoa\Console Readline implementation.
- */
-class HoaConsole implements Readline
-{
- /** @var HoaReadline */
- private $hoaReadline;
-
- /**
- * @return bool
- */
- public static function isSupported()
- {
- return class_exists('\Hoa\Console\Console', true);
- }
-
- public function __construct()
- {
- $this->hoaReadline = new HoaReadline();
- }
-
- /**
- * {@inheritdoc}
- */
- public function addHistory($line)
- {
- $this->hoaReadline->addHistory($line);
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- public function clearHistory()
- {
- $this->hoaReadline->clearHistory();
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- public function listHistory()
- {
- $i = 0;
- $list = array();
- while (($item = $this->hoaReadline->getHistory($i++)) !== null) {
- $list[] = $item;
- }
-
- return $list;
- }
-
- /**
- * {@inheritdoc}
- */
- public function readHistory()
- {
- return true;
- }
-
- /**
- * {@inheritdoc}
- *
- * @throws BreakException if user hits Ctrl+D
- *
- * @return string
- */
- public function readline($prompt = null)
- {
- return $this->hoaReadline->readLine($prompt);
- }
-
- /**
- * {@inheritdoc}
- */
- public function redisplay()
- {
- // noop
- }
-
- /**
- * {@inheritdoc}
- */
- public function writeHistory()
- {
- return true;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Readline/Libedit.php b/www/wiki/vendor/psy/psysh/src/Psy/Readline/Libedit.php
deleted file mode 100644
index 43b31a87..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Readline/Libedit.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Readline;
-
-use Psy\Util\Str;
-
-/**
- * A Libedit-based Readline implementation.
- *
- * This is largely the same as the Readline implementation, but it emulates
- * support for `readline_list_history` since PHP decided it was a good idea to
- * ship a fake Readline implementation that is missing history support.
- */
-class Libedit extends GNUReadline
-{
- /**
- * Let's emulate GNU Readline by manually reading and parsing the history file!
- *
- * @return bool
- */
- public static function isSupported()
- {
- return function_exists('readline') && !function_exists('readline_list_history');
- }
-
- /**
- * {@inheritdoc}
- */
- public function listHistory()
- {
- $history = file_get_contents($this->historyFile);
- if (!$history) {
- return array();
- }
-
- // libedit doesn't seem to support non-unix line separators.
- $history = explode("\n", $history);
-
- // shift the history signature, ensure it's valid
- if (array_shift($history) !== '_HiStOrY_V2_') {
- return array();
- }
-
- // decode the line
- $history = array_map(array($this, 'parseHistoryLine'), $history);
- // filter empty lines & comments
- return array_values(array_filter($history));
- }
-
- /**
- * From GNUReadline (readline/histfile.c & readline/histexpand.c):
- * lines starting with "\0" are comments or timestamps;
- * if "\0" is found in an entry,
- * everything from it until the next line is a comment.
- *
- * @param string $line The history line to parse
- *
- * @return string | null
- */
- protected function parseHistoryLine($line)
- {
- // empty line, comment or timestamp
- if (!$line || $line[0] === "\0") {
- return;
- }
- // if "\0" is found in an entry, then
- // everything from it until the end of line is a comment.
- if (($pos = strpos($line, "\0")) !== false) {
- $line = substr($line, 0, $pos);
- }
-
- return ($line !== '') ? Str::unvis($line) : null;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Readline/Readline.php b/www/wiki/vendor/psy/psysh/src/Psy/Readline/Readline.php
deleted file mode 100644
index 487ac81f..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Readline/Readline.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Readline;
-
-/**
- * An interface abstracting the various readline_* functions.
- */
-interface Readline
-{
- /**
- * Check whether this Readline class is supported by the current system.
- *
- * @return bool
- */
- public static function isSupported();
-
- /**
- * Add a line to the command history.
- *
- * @param string $line
- *
- * @return bool Success
- */
- public function addHistory($line);
-
- /**
- * Clear the command history.
- *
- * @return bool Success
- */
- public function clearHistory();
-
- /**
- * List the command history.
- *
- * @return array
- */
- public function listHistory();
-
- /**
- * Read the command history.
- *
- * @return bool Success
- */
- public function readHistory();
-
- /**
- * Read a single line of input from the user.
- *
- * @param null|string $prompt
- *
- * @return false|string
- */
- public function readline($prompt = null);
-
- /**
- * Redraw readline to redraw the display.
- */
- public function redisplay();
-
- /**
- * Write the command history to a file.
- *
- * @return bool Success
- */
- public function writeHistory();
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Readline/Transient.php b/www/wiki/vendor/psy/psysh/src/Psy/Readline/Transient.php
deleted file mode 100644
index 102eaf78..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Readline/Transient.php
+++ /dev/null
@@ -1,146 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Readline;
-
-use Psy\Exception\BreakException;
-
-/**
- * An array-based Readline emulation implementation.
- */
-class Transient implements Readline
-{
- private $history;
- private $historySize;
- private $eraseDups;
-
- /**
- * Transient Readline is always supported.
- *
- * {@inheritdoc}
- */
- public static function isSupported()
- {
- return true;
- }
-
- /**
- * Transient Readline constructor.
- */
- public function __construct($historyFile = null, $historySize = 0, $eraseDups = false)
- {
- // don't do anything with the history file...
- $this->history = array();
- $this->historySize = $historySize;
- $this->eraseDups = $eraseDups;
- }
-
- /**
- * {@inheritdoc}
- */
- public function addHistory($line)
- {
- if ($this->eraseDups) {
- if (($key = array_search($line, $this->history)) !== false) {
- unset($this->history[$key]);
- }
- }
-
- $this->history[] = $line;
-
- if ($this->historySize > 0) {
- $histsize = count($this->history);
- if ($histsize > $this->historySize) {
- $this->history = array_slice($this->history, $histsize - $this->historySize);
- }
- }
-
- $this->history = array_values($this->history);
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- public function clearHistory()
- {
- $this->history = array();
-
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- public function listHistory()
- {
- return $this->history;
- }
-
- /**
- * {@inheritdoc}
- */
- public function readHistory()
- {
- return true;
- }
-
- /**
- * {@inheritdoc}
- *
- * @throws BreakException if user hits Ctrl+D
- *
- * @return string
- */
- public function readline($prompt = null)
- {
- echo $prompt;
-
- return rtrim(fgets($this->getStdin(), 1024));
- }
-
- /**
- * {@inheritdoc}
- */
- public function redisplay()
- {
- // noop
- }
-
- /**
- * {@inheritdoc}
- */
- public function writeHistory()
- {
- return true;
- }
-
- /**
- * Get a STDIN file handle.
- *
- * @throws BreakException if user hits Ctrl+D
- *
- * @return resource
- */
- private function getStdin()
- {
- if (!isset($this->stdin)) {
- $this->stdin = fopen('php://stdin', 'r');
- }
-
- if (feof($this->stdin)) {
- throw new BreakException('Ctrl+D');
- }
-
- return $this->stdin;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionConstant.php b/www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionConstant.php
deleted file mode 100644
index 12aa3f46..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionConstant.php
+++ /dev/null
@@ -1,151 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Reflection;
-
-/**
- * Somehow the standard reflection library doesn't include constants.
- *
- * ReflectionConstant corrects that omission.
- */
-class ReflectionConstant implements \Reflector
-{
- private $class;
- private $name;
- private $value;
-
- /**
- * Construct a ReflectionConstant object.
- *
- * @param mixed $class
- * @param string $name
- */
- public function __construct($class, $name)
- {
- if (!$class instanceof \ReflectionClass) {
- $class = new \ReflectionClass($class);
- }
-
- $this->class = $class;
- $this->name = $name;
-
- $constants = $class->getConstants();
- if (!array_key_exists($name, $constants)) {
- throw new \InvalidArgumentException('Unknown constant: ' . $name);
- }
-
- $this->value = $constants[$name];
- }
-
- /**
- * Gets the declaring class.
- *
- * @return string
- */
- public function getDeclaringClass()
- {
- $parent = $this->class;
-
- // Since we don't have real reflection constants, we can't see where
- // it's actually defined. Let's check for a constant that is also
- // available on the parent class which has exactly the same value.
- //
- // While this isn't _technically_ correct, it's prolly close enough.
- do {
- $class = $parent;
- $parent = $class->getParentClass();
- } while ($parent && $parent->hasConstant($this->name) && $parent->getConstant($this->name) === $this->value);
-
- return $class;
- }
-
- /**
- * Gets the constant name.
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Gets the value of the constant.
- *
- * @return mixed
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Gets the constant's file name.
- *
- * Currently returns null, because if it returns a file name the signature
- * formatter will barf.
- */
- public function getFileName()
- {
- return;
- // return $this->class->getFileName();
- }
-
- /**
- * Get the code start line.
- *
- * @throws \RuntimeException
- */
- public function getStartLine()
- {
- throw new \RuntimeException('Not yet implemented because it\'s unclear what I should do here :)');
- }
-
- /**
- * Get the code end line.
- *
- * @throws \RuntimeException
- */
- public function getEndLine()
- {
- return $this->getStartLine();
- }
-
- /**
- * Get the constant's docblock.
- *
- * @return false
- */
- public function getDocComment()
- {
- return false;
- }
-
- /**
- * Export the constant? I don't think this is possible.
- *
- * @throws \RuntimeException
- */
- public static function export()
- {
- throw new \RuntimeException('Not yet implemented because it\'s unclear what I should do here :)');
- }
-
- /**
- * To string.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->getName();
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstruct.php b/www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstruct.php
deleted file mode 100644
index defa684b..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstruct.php
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Reflection;
-
-/**
- * A fake ReflectionFunction but for language constructs.
- */
-class ReflectionLanguageConstruct extends \ReflectionFunctionAbstract
-{
- public $keyword;
-
- /**
- * Language construct parameter definitions.
- */
- private static $languageConstructs = array(
- 'isset' => array(
- 'var' => array(),
- '...' => array(
- 'isOptional' => true,
- 'defaultValue' => null,
- ),
- ),
-
- 'unset' => array(
- 'var' => array(),
- '...' => array(
- 'isOptional' => true,
- 'defaultValue' => null,
- ),
- ),
-
- 'empty' => array(
- 'var' => array(),
- ),
-
- 'echo' => array(
- 'arg1' => array(),
- '...' => array(
- 'isOptional' => true,
- 'defaultValue' => null,
- ),
- ),
-
- 'print' => array(
- 'arg' => array(),
- ),
-
- 'die' => array(
- 'status' => array(
- 'isOptional' => true,
- 'defaultValue' => 0,
- ),
- ),
-
- 'exit' => array(
- 'status' => array(
- 'isOptional' => true,
- 'defaultValue' => 0,
- ),
- ),
- );
-
- /**
- * Construct a ReflectionLanguageConstruct object.
- *
- * @param string $name
- */
- public function __construct($keyword)
- {
- if (self::isLanguageConstruct($keyword)) {
- throw new \InvalidArgumentException('Unknown language construct: ' . $keyword);
- }
-
- $this->keyword = $keyword;
- }
-
- /**
- * This can't (and shouldn't) do anything :).
- *
- * @throws \RuntimeException
- */
- public static function export($name)
- {
- throw new \RuntimeException('Not yet implemented because it\'s unclear what I should do here :)');
- }
-
- /**
- * Get language construct name.
- *
- * @return string
- */
- public function getName()
- {
- return $this->keyword;
- }
-
- /**
- * None of these return references.
- *
- * @return bool
- */
- public function returnsReference()
- {
- return false;
- }
-
- /**
- * Get language construct params.
- *
- * @return
- */
- public function getParameters()
- {
- $params = array();
- foreach (self::$languageConstructs[$this->keyword] as $parameter => $opts) {
- array_push($params, new ReflectionLanguageConstructParameter($this->keyword, $parameter, $opts));
- }
-
- return $params;
- }
-
- /**
- * To string.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->getName();
- }
-
- /**
- * Check whether keyword is a (known) language construct.
- *
- * @param $keyword
- *
- * @return bool
- */
- public static function isLanguageConstruct($keyword)
- {
- return array_key_exists($keyword, self::$languageConstructs);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstructParameter.php b/www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstructParameter.php
deleted file mode 100644
index decc5ad2..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Reflection/ReflectionLanguageConstructParameter.php
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Reflection;
-
-/**
- * A fake ReflectionParameter but for language construct parameters.
- *
- * It stubs out all the important bits and returns whatever was passed in $opts.
- */
-class ReflectionLanguageConstructParameter extends \ReflectionParameter
-{
- private $function;
- private $parameter;
- private $opts;
-
- public function __construct($function, $parameter, array $opts)
- {
- $this->function = $function;
- $this->parameter = $parameter;
- $this->opts = $opts;
- }
-
- /**
- * No class here.
- */
- public function getClass()
- {
- return;
- }
-
- /**
- * Is the param an array?
- *
- * @return bool
- */
- public function isArray()
- {
- return array_key_exists('isArray', $this->opts) && $this->opts['isArray'];
- }
-
- /**
- * Get param default value.
- *
- * @return mixed
- */
- public function getDefaultValue()
- {
- if ($this->isDefaultValueAvailable()) {
- return $this->opts['defaultValue'];
- }
- }
-
- /**
- * Get param name.
- *
- * @return string
- */
- public function getName()
- {
- return $this->parameter;
- }
-
- /**
- * Is the param optional?
- *
- * @return bool
- */
- public function isOptional()
- {
- return array_key_exists('isOptional', $this->opts) && $this->opts['isOptional'];
- }
-
- /**
- * Does the param have a default value?
- *
- * @return bool
- */
- public function isDefaultValueAvailable()
- {
- return array_key_exists('defaultValue', $this->opts);
- }
-
- /**
- * Is the param passed by reference?
- *
- * (I don't think this is true for anything we need to fake a param for)
- *
- * @return bool
- */
- public function isPassedByReference()
- {
- return array_key_exists('isPassedByReference', $this->opts) && $this->opts['isPassedByReference'];
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Shell.php b/www/wiki/vendor/psy/psysh/src/Psy/Shell.php
deleted file mode 100644
index 6767f2e6..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Shell.php
+++ /dev/null
@@ -1,1030 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-use Psy\CodeCleaner\NoReturnValue;
-use Psy\Exception\BreakException;
-use Psy\Exception\ErrorException;
-use Psy\Exception\Exception as PsyException;
-use Psy\Exception\ThrowUpException;
-use Psy\Input\ShellInput;
-use Psy\Input\SilentInput;
-use Psy\Output\ShellOutput;
-use Psy\TabCompletion\Matcher;
-use Psy\VarDumper\PresenterAware;
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command as BaseCommand;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Input\ArgvInput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\StringInput;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * The Psy Shell application.
- *
- * Usage:
- *
- * $shell = new Shell;
- * $shell->run();
- *
- * @author Justin Hileman <justin@justinhileman.info>
- */
-class Shell extends Application
-{
- const VERSION = 'v0.8.5';
-
- const PROMPT = '>>> ';
- const BUFF_PROMPT = '... ';
- const REPLAY = '--> ';
- const RETVAL = '=> ';
-
- private $config;
- private $cleaner;
- private $output;
- private $readline;
- private $inputBuffer;
- private $code;
- private $codeBuffer;
- private $codeBufferOpen;
- private $context;
- private $includes;
- private $loop;
- private $outputWantsNewline = false;
- private $completion;
- private $tabCompletionMatchers = array();
-
- /**
- * Create a new Psy Shell.
- *
- * @param Configuration $config (default: null)
- */
- public function __construct(Configuration $config = null)
- {
- $this->config = $config ?: new Configuration();
- $this->cleaner = $this->config->getCodeCleaner();
- $this->loop = $this->config->getLoop();
- $this->context = new Context();
- $this->includes = array();
- $this->readline = $this->config->getReadline();
- $this->inputBuffer = array();
-
- parent::__construct('Psy Shell', self::VERSION);
-
- $this->config->setShell($this);
-
- // Register the current shell session's config with \Psy\info
- \Psy\info($this->config);
- }
-
- /**
- * Check whether the first thing in a backtrace is an include call.
- *
- * This is used by the psysh bin to decide whether to start a shell on boot,
- * or to simply autoload the library.
- */
- public static function isIncluded(array $trace)
- {
- return isset($trace[0]['function']) &&
- in_array($trace[0]['function'], array('require', 'include', 'require_once', 'include_once'));
- }
-
- /**
- * Invoke a Psy Shell from the current context.
- *
- * For example:
- *
- * foreach ($items as $item) {
- * \Psy\Shell::debug(get_defined_vars());
- * }
- *
- * If you would like your shell interaction to affect the state of the
- * current context, you can extract() the values returned from this call:
- *
- * foreach ($items as $item) {
- * extract(\Psy\Shell::debug(get_defined_vars()));
- * var_dump($item); // will be whatever you set $item to in Psy Shell
- * }
- *
- * Optionally, supply an object as the `$boundObject` parameter. This
- * determines the value `$this` will have in the shell, and sets up class
- * scope so that private and protected members are accessible:
- *
- * class Foo {
- * function bar() {
- * \Psy\Shell::debug(get_defined_vars(), $this);
- * }
- * }
- *
- * This only really works in PHP 5.4+ and HHVM 3.5+, so upgrade already.
- *
- * @param array $vars Scope variables from the calling context (default: array())
- * @param object $boundObject Bound object ($this) value for the shell
- *
- * @return array Scope variables from the debugger session
- */
- public static function debug(array $vars = array(), $boundObject = null)
- {
- echo PHP_EOL;
-
- $sh = new \Psy\Shell();
- $sh->setScopeVariables($vars);
-
- if ($boundObject !== null) {
- $sh->setBoundObject($boundObject);
- }
-
- $sh->run();
-
- return $sh->getScopeVariables(false);
- }
-
- /**
- * Adds a command object.
- *
- * {@inheritdoc}
- *
- * @param BaseCommand $command A Symfony Console Command object
- *
- * @return BaseCommand The registered command
- */
- public function add(BaseCommand $command)
- {
- if ($ret = parent::add($command)) {
- if ($ret instanceof ContextAware) {
- $ret->setContext($this->context);
- }
-
- if ($ret instanceof PresenterAware) {
- $ret->setPresenter($this->config->getPresenter());
- }
- }
-
- return $ret;
- }
-
- /**
- * Gets the default input definition.
- *
- * @return InputDefinition An InputDefinition instance
- */
- protected function getDefaultInputDefinition()
- {
- return new InputDefinition(array(
- new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),
- new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message.'),
- ));
- }
-
- /**
- * Gets the default commands that should always be available.
- *
- * @return array An array of default Command instances
- */
- protected function getDefaultCommands()
- {
- $sudo = new Command\SudoCommand();
- $sudo->setReadline($this->readline);
-
- $hist = new Command\HistoryCommand();
- $hist->setReadline($this->readline);
-
- return array(
- new Command\HelpCommand(),
- new Command\ListCommand(),
- new Command\DumpCommand(),
- new Command\DocCommand(),
- new Command\ShowCommand($this->config->colorMode()),
- new Command\WtfCommand(),
- new Command\WhereamiCommand($this->config->colorMode()),
- new Command\ThrowUpCommand(),
- new Command\TraceCommand(),
- new Command\BufferCommand(),
- new Command\ClearCommand(),
- // new Command\PsyVersionCommand(),
- $sudo,
- $hist,
- new Command\ExitCommand(),
- );
- }
-
- /**
- * @return array
- */
- protected function getTabCompletionMatchers()
- {
- if (empty($this->tabCompletionMatchers)) {
- $this->tabCompletionMatchers = array(
- new Matcher\CommandsMatcher($this->all()),
- new Matcher\KeywordsMatcher(),
- new Matcher\VariablesMatcher(),
- new Matcher\ConstantsMatcher(),
- new Matcher\FunctionsMatcher(),
- new Matcher\ClassNamesMatcher(),
- new Matcher\ClassMethodsMatcher(),
- new Matcher\ClassAttributesMatcher(),
- new Matcher\ObjectMethodsMatcher(),
- new Matcher\ObjectAttributesMatcher(),
- );
- }
-
- return $this->tabCompletionMatchers;
- }
-
- /**
- * @param array $matchers
- */
- public function addTabCompletionMatchers(array $matchers)
- {
- $this->tabCompletionMatchers = array_merge($matchers, $this->getTabCompletionMatchers());
- }
-
- /**
- * Set the Shell output.
- *
- * @param OutputInterface $output
- */
- public function setOutput(OutputInterface $output)
- {
- $this->output = $output;
- }
-
- /**
- * Runs the current application.
- *
- * @param InputInterface $input An Input instance
- * @param OutputInterface $output An Output instance
- *
- * @return int 0 if everything went fine, or an error code
- */
- public function run(InputInterface $input = null, OutputInterface $output = null)
- {
- $this->initializeTabCompletion();
-
- if ($input === null && !isset($_SERVER['argv'])) {
- $input = new ArgvInput(array());
- }
-
- if ($output === null) {
- $output = $this->config->getOutput();
- }
-
- try {
- return parent::run($input, $output);
- } catch (\Exception $e) {
- $this->writeException($e);
- }
- }
-
- /**
- * Runs the current application.
- *
- * @throws Exception if thrown via the `throw-up` command
- *
- * @param InputInterface $input An Input instance
- * @param OutputInterface $output An Output instance
- *
- * @return int 0 if everything went fine, or an error code
- */
- public function doRun(InputInterface $input, OutputInterface $output)
- {
- $this->setOutput($output);
-
- $this->resetCodeBuffer();
-
- $this->setAutoExit(false);
- $this->setCatchExceptions(false);
-
- $this->readline->readHistory();
-
- // if ($this->config->useReadline()) {
- // readline_completion_function(array($this, 'autocomplete'));
- // }
-
- $this->output->writeln($this->getHeader());
- $this->writeVersionInfo();
- $this->writeStartupMessage();
-
- try {
- $this->loop->run($this);
- } catch (ThrowUpException $e) {
- throw $e->getPrevious();
- }
- }
-
- /**
- * Read user input.
- *
- * This will continue fetching user input until the code buffer contains
- * valid code.
- *
- * @throws BreakException if user hits Ctrl+D
- */
- public function getInput()
- {
- $this->codeBufferOpen = false;
-
- do {
- // reset output verbosity (in case it was altered by a subcommand)
- $this->output->setVerbosity(ShellOutput::VERBOSITY_VERBOSE);
-
- $input = $this->readline();
-
- /*
- * Handle Ctrl+D. It behaves differently in different cases:
- *
- * 1) In an expression, like a function or "if" block, clear the input buffer
- * 2) At top-level session, behave like the exit command
- */
- if ($input === false) {
- $this->output->writeln('');
-
- if ($this->hasCode()) {
- $this->resetCodeBuffer();
- } else {
- throw new BreakException('Ctrl+D');
- }
- }
-
- // handle empty input
- if (trim($input) === '') {
- continue;
- }
-
- if ($this->hasCommand($input)) {
- $this->readline->addHistory($input);
- $this->runCommand($input);
- continue;
- }
-
- $this->addCode($input);
- } while (!$this->hasValidCode());
- }
-
- /**
- * Pass the beforeLoop callback through to the Loop instance.
- *
- * @see Loop::beforeLoop
- */
- public function beforeLoop()
- {
- $this->loop->beforeLoop();
- }
-
- /**
- * Pass the afterLoop callback through to the Loop instance.
- *
- * @see Loop::afterLoop
- */
- public function afterLoop()
- {
- $this->loop->afterLoop();
- }
-
- /**
- * Set the variables currently in scope.
- *
- * @param array $vars
- */
- public function setScopeVariables(array $vars)
- {
- $this->context->setAll($vars);
- }
-
- /**
- * Return the set of variables currently in scope.
- *
- * @param bool $includeBoundObject Pass false to exclude 'this'. If you're
- * passing the scope variables to `extract`
- * in PHP 7.1+, you _must_ exclude 'this'
- *
- * @return array Associative array of scope variables
- */
- public function getScopeVariables($includeBoundObject = true)
- {
- $vars = $this->context->getAll();
-
- if (!$includeBoundObject) {
- unset($vars['this']);
- }
-
- return $vars;
- }
-
- /**
- * Return the set of magic variables currently in scope.
- *
- * @param bool $includeBoundObject Pass false to exclude 'this'. If you're
- * passing the scope variables to `extract`
- * in PHP 7.1+, you _must_ exclude 'this'
- *
- * @return array Associative array of magic scope variables
- */
- public function getSpecialScopeVariables($includeBoundObject = true)
- {
- $vars = $this->context->getSpecialVariables();
-
- if (!$includeBoundObject) {
- unset($vars['this']);
- }
-
- return $vars;
- }
-
- /**
- * Get the set of unused command-scope variable names.
- *
- * @return array Array of unused variable names
- */
- public function getUnusedCommandScopeVariableNames()
- {
- return $this->context->getUnusedCommandScopeVariableNames();
- }
-
- /**
- * Get the set of variable names currently in scope.
- *
- * @return array Array of variable names
- */
- public function getScopeVariableNames()
- {
- return array_keys($this->context->getAll());
- }
-
- /**
- * Get a scope variable value by name.
- *
- * @param string $name
- *
- * @return mixed
- */
- public function getScopeVariable($name)
- {
- return $this->context->get($name);
- }
-
- /**
- * Set the bound object ($this variable) for the interactive shell.
- *
- * @param object|null $boundObject
- */
- public function setBoundObject($boundObject)
- {
- $this->context->setBoundObject($boundObject);
- }
-
- /**
- * Get the bound object ($this variable) for the interactive shell.
- *
- * @return object|null
- */
- public function getBoundObject()
- {
- return $this->context->getBoundObject();
- }
-
- /**
- * Add includes, to be parsed and executed before running the interactive shell.
- *
- * @param array $includes
- */
- public function setIncludes(array $includes = array())
- {
- $this->includes = $includes;
- }
-
- /**
- * Get PHP files to be parsed and executed before running the interactive shell.
- *
- * @return array
- */
- public function getIncludes()
- {
- return array_merge($this->config->getDefaultIncludes(), $this->includes);
- }
-
- /**
- * Check whether this shell's code buffer contains code.
- *
- * @return bool True if the code buffer contains code
- */
- public function hasCode()
- {
- return !empty($this->codeBuffer);
- }
-
- /**
- * Check whether the code in this shell's code buffer is valid.
- *
- * If the code is valid, the code buffer should be flushed and evaluated.
- *
- * @return bool True if the code buffer content is valid
- */
- protected function hasValidCode()
- {
- return !$this->codeBufferOpen && $this->code !== false;
- }
-
- /**
- * Add code to the code buffer.
- *
- * @param string $code
- */
- public function addCode($code)
- {
- try {
- // Code lines ending in \ keep the buffer open
- if (substr(rtrim($code), -1) === '\\') {
- $this->codeBufferOpen = true;
- $code = substr(rtrim($code), 0, -1);
- } else {
- $this->codeBufferOpen = false;
- }
-
- $this->codeBuffer[] = $code;
- $this->code = $this->cleaner->clean($this->codeBuffer, $this->config->requireSemicolons());
- } catch (\Exception $e) {
- // Add failed code blocks to the readline history.
- $this->addCodeBufferToHistory();
- throw $e;
- }
- }
-
- /**
- * Get the current code buffer.
- *
- * This is useful for commands which manipulate the buffer.
- *
- * @return array
- */
- public function getCodeBuffer()
- {
- return $this->codeBuffer;
- }
-
- /**
- * Run a Psy Shell command given the user input.
- *
- * @throws InvalidArgumentException if the input is not a valid command
- *
- * @param string $input User input string
- *
- * @return mixed Who knows?
- */
- protected function runCommand($input)
- {
- $command = $this->getCommand($input);
-
- if (empty($command)) {
- throw new \InvalidArgumentException('Command not found: ' . $input);
- }
-
- $input = new ShellInput(str_replace('\\', '\\\\', rtrim($input, " \t\n\r\0\x0B;")));
-
- if ($input->hasParameterOption(array('--help', '-h'))) {
- $helpCommand = $this->get('help');
- $helpCommand->setCommand($command);
-
- return $helpCommand->run($input, $this->output);
- }
-
- return $command->run($input, $this->output);
- }
-
- /**
- * Reset the current code buffer.
- *
- * This should be run after evaluating user input, catching exceptions, or
- * on demand by commands such as BufferCommand.
- */
- public function resetCodeBuffer()
- {
- $this->codeBuffer = array();
- $this->code = false;
- }
-
- /**
- * Inject input into the input buffer.
- *
- * This is useful for commands which want to replay history.
- *
- * @param string|array $input
- * @param bool $silent
- */
- public function addInput($input, $silent = false)
- {
- foreach ((array) $input as $line) {
- $this->inputBuffer[] = $silent ? new SilentInput($line) : $line;
- }
- }
-
- /**
- * Flush the current (valid) code buffer.
- *
- * If the code buffer is valid, resets the code buffer and returns the
- * current code.
- *
- * @return string PHP code buffer contents
- */
- public function flushCode()
- {
- if ($this->hasValidCode()) {
- $this->addCodeBufferToHistory();
- $code = $this->code;
- $this->resetCodeBuffer();
-
- return $code;
- }
- }
-
- /**
- * Filter silent input from code buffer, write the rest to readline history.
- */
- private function addCodeBufferToHistory()
- {
- $codeBuffer = array_filter($this->codeBuffer, function ($line) {
- return !$line instanceof SilentInput;
- });
-
- $code = implode("\n", $codeBuffer);
-
- if (trim($code) !== '') {
- $this->readline->addHistory($code);
- }
- }
-
- /**
- * Get the current evaluation scope namespace.
- *
- * @see CodeCleaner::getNamespace
- *
- * @return string Current code namespace
- */
- public function getNamespace()
- {
- if ($namespace = $this->cleaner->getNamespace()) {
- return implode('\\', $namespace);
- }
- }
-
- /**
- * Write a string to stdout.
- *
- * This is used by the shell loop for rendering output from evaluated code.
- *
- * @param string $out
- * @param int $phase Output buffering phase
- */
- public function writeStdout($out, $phase = PHP_OUTPUT_HANDLER_END)
- {
- $isCleaning = false;
- if (version_compare(PHP_VERSION, '5.4', '>=')) {
- $isCleaning = $phase & PHP_OUTPUT_HANDLER_CLEAN;
- }
-
- // Incremental flush
- if ($out !== '' && !$isCleaning) {
- $this->output->write($out, false, ShellOutput::OUTPUT_RAW);
- $this->outputWantsNewline = (substr($out, -1) !== "\n");
- }
-
- // Output buffering is done!
- if ($this->outputWantsNewline && $phase & PHP_OUTPUT_HANDLER_END) {
- $this->output->writeln(sprintf('<aside>%s</aside>', $this->config->useUnicode() ? '⏎' : '\\n'));
- $this->outputWantsNewline = false;
- }
- }
-
- /**
- * Write a return value to stdout.
- *
- * The return value is formatted or pretty-printed, and rendered in a
- * visibly distinct manner (in this case, as cyan).
- *
- * @see self::presentValue
- *
- * @param mixed $ret
- */
- public function writeReturnValue($ret)
- {
- if ($ret instanceof NoReturnValue) {
- return;
- }
-
- $this->context->setReturnValue($ret);
- $ret = $this->presentValue($ret);
- $indent = str_repeat(' ', strlen(static::RETVAL));
-
- $this->output->writeln(static::RETVAL . str_replace(PHP_EOL, PHP_EOL . $indent, $ret));
- }
-
- /**
- * Renders a caught Exception.
- *
- * Exceptions are formatted according to severity. ErrorExceptions which were
- * warnings or Strict errors aren't rendered as harshly as real errors.
- *
- * Stores $e as the last Exception in the Shell Context.
- *
- * @param \Exception $e An exception instance
- * @param OutputInterface $output An OutputInterface instance
- */
- public function writeException(\Exception $e)
- {
- $this->context->setLastException($e);
- $this->output->writeln($this->formatException($e));
- $this->resetCodeBuffer();
- }
-
- /**
- * Helper for formatting an exception for writeException().
- *
- * @todo extract this to somewhere it makes more sense
- *
- * @param \Exception $e
- *
- * @return string
- */
- public function formatException(\Exception $e)
- {
- $message = $e->getMessage();
- if (!$e instanceof PsyException) {
- $message = sprintf('%s with message \'%s\'', get_class($e), $message);
- }
-
- $severity = ($e instanceof \ErrorException) ? $this->getSeverity($e) : 'error';
-
- return sprintf('<%s>%s</%s>', $severity, OutputFormatter::escape($message), $severity);
- }
-
- /**
- * Helper for getting an output style for the given ErrorException's level.
- *
- * @param \ErrorException $e
- *
- * @return string
- */
- protected function getSeverity(\ErrorException $e)
- {
- $severity = $e->getSeverity();
- if ($severity & error_reporting()) {
- switch ($severity) {
- case E_WARNING:
- case E_NOTICE:
- case E_CORE_WARNING:
- case E_COMPILE_WARNING:
- case E_USER_WARNING:
- case E_USER_NOTICE:
- case E_STRICT:
- return 'warning';
-
- default:
- return 'error';
- }
- } else {
- // Since this is below the user's reporting threshold, it's always going to be a warning.
- return 'warning';
- }
- }
-
- /**
- * Helper for throwing an ErrorException.
- *
- * This allows us to:
- *
- * set_error_handler(array($psysh, 'handleError'));
- *
- * Unlike ErrorException::throwException, this error handler respects the
- * current error_reporting level; i.e. it logs warnings and notices, but
- * doesn't throw an exception unless it's above the current error_reporting
- * threshold. This should probably only be used in the inner execution loop
- * of the shell, as most of the time a thrown exception is much more useful.
- *
- * If the error type matches the `errorLoggingLevel` config, it will be
- * logged as well, regardless of the `error_reporting` level.
- *
- * @see \Psy\Exception\ErrorException::throwException
- * @see \Psy\Shell::writeException
- *
- * @throws \Psy\Exception\ErrorException depending on the current error_reporting level
- *
- * @param int $errno Error type
- * @param string $errstr Message
- * @param string $errfile Filename
- * @param int $errline Line number
- */
- public function handleError($errno, $errstr, $errfile, $errline)
- {
- if ($errno & error_reporting()) {
- ErrorException::throwException($errno, $errstr, $errfile, $errline);
- } elseif ($errno & $this->config->errorLoggingLevel()) {
- // log it and continue...
- $this->writeException(new ErrorException($errstr, 0, $errno, $errfile, $errline));
- }
- }
-
- /**
- * Format a value for display.
- *
- * @see Presenter::present
- *
- * @param mixed $val
- *
- * @return string Formatted value
- */
- protected function presentValue($val)
- {
- return $this->config->getPresenter()->present($val);
- }
-
- /**
- * Get a command (if one exists) for the current input string.
- *
- * @param string $input
- *
- * @return null|BaseCommand
- */
- protected function getCommand($input)
- {
- $input = new StringInput($input);
- if ($name = $input->getFirstArgument()) {
- return $this->get($name);
- }
- }
-
- /**
- * Check whether a command is set for the current input string.
- *
- * @param string $input
- *
- * @return bool True if the shell has a command for the given input
- */
- protected function hasCommand($input)
- {
- $input = new StringInput($input);
- if ($name = $input->getFirstArgument()) {
- return $this->has($name);
- }
-
- return false;
- }
-
- /**
- * Get the current input prompt.
- *
- * @return string
- */
- protected function getPrompt()
- {
- return $this->hasCode() ? static::BUFF_PROMPT : static::PROMPT;
- }
-
- /**
- * Read a line of user input.
- *
- * This will return a line from the input buffer (if any exist). Otherwise,
- * it will ask the user for input.
- *
- * If readline is enabled, this delegates to readline. Otherwise, it's an
- * ugly `fgets` call.
- *
- * @return string One line of user input
- */
- protected function readline()
- {
- if (!empty($this->inputBuffer)) {
- $line = array_shift($this->inputBuffer);
- if (!$line instanceof SilentInput) {
- $this->output->writeln(sprintf('<aside>%s %s</aside>', static::REPLAY, OutputFormatter::escape($line)));
- }
-
- return $line;
- }
-
- return $this->readline->readline($this->getPrompt());
- }
-
- /**
- * Get the shell output header.
- *
- * @return string
- */
- protected function getHeader()
- {
- return sprintf('<aside>%s by Justin Hileman</aside>', $this->getVersion());
- }
-
- /**
- * Get the current version of Psy Shell.
- *
- * @return string
- */
- public function getVersion()
- {
- $separator = $this->config->useUnicode() ? '—' : '-';
-
- return sprintf('Psy Shell %s (PHP %s %s %s)', self::VERSION, phpversion(), $separator, php_sapi_name());
- }
-
- /**
- * Get a PHP manual database instance.
- *
- * @return \PDO|null
- */
- public function getManualDb()
- {
- return $this->config->getManualDb();
- }
-
- /**
- * Autocomplete variable names.
- *
- * This is used by `readline` for tab completion.
- *
- * @param string $text
- *
- * @return mixed Array possible completions for the given input, if any
- */
- protected function autocomplete($text)
- {
- $info = readline_info();
- // $line = substr($info['line_buffer'], 0, $info['end']);
-
- // Check whether there's a command for this
- // $words = explode(' ', $line);
- // $firstWord = reset($words);
-
- // check whether this is a variable...
- $firstChar = substr($info['line_buffer'], max(0, $info['end'] - strlen($text) - 1), 1);
- if ($firstChar === '$') {
- return $this->getScopeVariableNames();
- }
- }
-
- /**
- * Initialize tab completion matchers.
- *
- * If tab completion is enabled this adds tab completion matchers to the
- * auto completer and sets context if needed.
- */
- protected function initializeTabCompletion()
- {
- // auto completer needs shell to be linked to configuration because of the context aware matchers
- if ($this->config->getTabCompletion()) {
- $this->completion = $this->config->getAutoCompleter();
- $this->addTabCompletionMatchers($this->config->getTabCompletionMatchers());
- foreach ($this->getTabCompletionMatchers() as $matcher) {
- if ($matcher instanceof ContextAware) {
- $matcher->setContext($this->context);
- }
- $this->completion->addMatcher($matcher);
- }
- $this->completion->activate();
- }
- }
-
- /**
- * @todo Implement self-update
- * @todo Implement prompt to start update
- *
- * @return void|string
- */
- protected function writeVersionInfo()
- {
- if (PHP_SAPI !== 'cli') {
- return;
- }
-
- try {
- $client = $this->config->getChecker();
- if (!$client->isLatest()) {
- $this->output->writeln(sprintf('New version is available (current: %s, latest: %s)',self::VERSION, $client->getLatest()));
- }
- } catch (\InvalidArgumentException $e) {
- $this->output->writeln($e->getMessage());
- }
- }
-
- /**
- * Write a startup message if set.
- */
- protected function writeStartupMessage()
- {
- $message = $this->config->getStartupMessage();
- if ($message !== null && $message !== '') {
- $this->output->writeln($message);
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Sudo.php b/www/wiki/vendor/psy/psysh/src/Psy/Sudo.php
deleted file mode 100644
index 2ba55728..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Sudo.php
+++ /dev/null
@@ -1,150 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-/**
- * Helpers for bypassing visibility restrictions, mostly used in code generated
- * by the `sudo` command.
- */
-class Sudo
-{
- /**
- * Fetch a property of an object, bypassing visibility restrictions.
- *
- * @param object $object
- * @param string $property property name
- *
- * @return mixed Value of $object->property
- */
- public static function fetchProperty($object, $property)
- {
- $refl = new \ReflectionObject($object);
- $prop = $refl->getProperty($property);
- $prop->setAccessible(true);
-
- return $prop->getValue($object);
- }
-
- /**
- * Assign the value of a property of an object, bypassing visibility restrictions.
- *
- * @param object $object
- * @param string $property property name
- * @param mixed $value
- *
- * @return mixed Value of $object->property
- */
- public static function assignProperty($object, $property, $value)
- {
- $refl = new \ReflectionObject($object);
- $prop = $refl->getProperty($property);
- $prop->setAccessible(true);
- $prop->setValue($object, $value);
-
- return $value;
- }
-
- /**
- * Call a method on an object, bypassing visibility restrictions.
- *
- * @param object $object
- * @param string $method method name
- * @param mixed $args...
- *
- * @return mixed
- */
- public static function callMethod($object, $method, $args = null)
- {
- $args = func_get_args();
- $object = array_shift($args);
- $method = array_shift($args);
-
- $refl = new \ReflectionObject($object);
- $reflMethod = $refl->getMethod($method);
- $reflMethod->setAccessible(true);
-
- return $reflMethod->invokeArgs($object, $args);
- }
-
- /**
- * Fetch a property of a class, bypassing visibility restrictions.
- *
- * @param string|object $class class name or instance
- * @param string $property property name
- *
- * @return mixed Value of $class::$property
- */
- public static function fetchStaticProperty($class, $property)
- {
- $refl = new \ReflectionClass($class);
- $prop = $refl->getProperty($property);
- $prop->setAccessible(true);
-
- return $prop->getValue();
- }
-
- /**
- * Assign the value of a static property of a class, bypassing visibility restrictions.
- *
- * @param string|object $class class name or instance
- * @param string $property property name
- * @param mixed $value
- *
- * @return mixed Value of $class::$property
- */
- public static function assignStaticProperty($class, $property, $value)
- {
- $refl = new \ReflectionClass($class);
- $prop = $refl->getProperty($property);
- $prop->setAccessible(true);
- $prop->setValue($value);
-
- return $value;
- }
-
- /**
- * Call a static method on a class, bypassing visibility restrictions.
- *
- * @param string|object $class class name or instance
- * @param string $method method name
- * @param mixed $args...
- *
- * @return mixed
- */
- public static function callStatic($class, $method, $args = null)
- {
- $args = func_get_args();
- $class = array_shift($args);
- $method = array_shift($args);
-
- $refl = new \ReflectionClass($class);
- $reflMethod = $refl->getMethod($method);
- $reflMethod->setAccessible(true);
-
- return $reflMethod->invokeArgs(null, $args);
- }
-
- /**
- * Fetch a class constant, bypassing visibility restrictions.
- *
- * @param string|object $class class name or instance
- * @param string $const constant name
- *
- * @return mixed
- */
- public static function fetchClassConst($class, $const)
- {
- $refl = new \ReflectionClass($class);
-
- return $refl->getConstant($const);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Sudo/SudoVisitor.php b/www/wiki/vendor/psy/psysh/src/Psy/Sudo/SudoVisitor.php
deleted file mode 100644
index 0bd77e9a..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Sudo/SudoVisitor.php
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Sudo;
-
-use PhpParser\Node;
-use PhpParser\Node\Arg;
-use PhpParser\Node\Expr\Assign;
-use PhpParser\Node\Expr\ClassConstFetch;
-use PhpParser\Node\Expr\MethodCall;
-use PhpParser\Node\Expr\PropertyFetch;
-use PhpParser\Node\Expr\StaticCall;
-use PhpParser\Node\Expr\StaticPropertyFetch;
-use PhpParser\Node\Name\FullyQualified as FullyQualifiedName;
-use PhpParser\Node\Scalar\String_;
-use PhpParser\NodeVisitorAbstract;
-
-/**
- * A PHP Parser node visitor which rewrites property and method access to use
- * the Psy\Sudo visibility bypass methods.
- *
- * @todo handle assigning by reference
- */
-class SudoVisitor extends NodeVisitorAbstract
-{
- const SUDO_CLASS = 'Psy\Sudo';
-
- const PROPERTY_FETCH = 'fetchProperty';
- const PROPERTY_ASSIGN = 'assignProperty';
- const METHOD_CALL = 'callMethod';
- const STATIC_PROPERTY_FETCH = 'fetchStaticProperty';
- const STATIC_PROPERTY_ASSIGN = 'assignStaticProperty';
- const STATIC_CALL = 'callStatic';
- const CLASS_CONST_FETCH = 'fetchClassConst';
-
- /**
- * {@inheritdoc}
- */
- public function enterNode(Node $node)
- {
- if ($node instanceof PropertyFetch) {
- $args = array(
- $node->var,
- is_string($node->name) ? new String_($node->name) : $node->name,
- );
-
- return $this->prepareCall(self::PROPERTY_FETCH, $args);
- } elseif ($node instanceof Assign && $node->var instanceof PropertyFetch) {
- $target = $node->var;
- $args = array(
- $target->var,
- is_string($target->name) ? new String_($target->name) : $target->name,
- $node->expr,
- );
-
- return $this->prepareCall(self::PROPERTY_ASSIGN, $args);
- } elseif ($node instanceof MethodCall) {
- $args = $node->args;
- array_unshift($args, new Arg(is_string($node->name) ? new String_($node->name) : $node->name));
- array_unshift($args, new Arg($node->var));
-
- // not using prepareCall because the $node->args we started with are already Arg instances
- return new StaticCall(new FullyQualifiedName(self::SUDO_CLASS), self::METHOD_CALL, $args);
- } elseif ($node instanceof StaticPropertyFetch) {
- $class = $node->class instanceof Name ? (string) $node->class : $node->class;
- $args = array(
- is_string($class) ? new String_($class) : $class,
- is_string($node->name) ? new String_($node->name) : $node->name,
- );
-
- return $this->prepareCall(self::STATIC_PROPERTY_FETCH, $args);
- } elseif ($node instanceof Assign && $node->var instanceof StaticPropertyFetch) {
- $target = $node->var;
- $class = $target->class instanceof Name ? (string) $target->class : $target->class;
- $args = array(
- is_string($class) ? new String_($class) : $class,
- is_string($target->name) ? new String_($target->name) : $target->name,
- $node->expr,
- );
-
- return $this->prepareCall(self::STATIC_PROPERTY_ASSIGN, $args);
- } elseif ($node instanceof StaticCall) {
- $args = $node->args;
- $class = $node->class instanceof Name ? (string) $node->class : $node->class;
- array_unshift($args, new Arg(is_string($node->name) ? new String_($node->name) : $node->name));
- array_unshift($args, new Arg(is_string($class) ? new String_($class) : $class));
-
- // not using prepareCall because the $node->args we started with are already Arg instances
- return new StaticCall(new FullyQualifiedName(self::SUDO_CLASS), self::STATIC_CALL, $args);
- } elseif ($node instanceof ClassConstFetch) {
- $class = $node->class instanceof Name ? (string) $node->class : $node->class;
- $args = array(
- is_string($class) ? new String_($class) : $class,
- is_string($node->name) ? new String_($node->name) : $node->name,
- );
-
- return $this->prepareCall(self::CLASS_CONST_FETCH, $args);
- }
- }
-
- private function prepareCall($method, $args)
- {
- return new StaticCall(new FullyQualifiedName(self::SUDO_CLASS), $method, array_map(function ($arg) {
- return new Arg($arg);
- }, $args));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/AutoCompleter.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/AutoCompleter.php
deleted file mode 100644
index a1fcd014..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/AutoCompleter.php
+++ /dev/null
@@ -1,102 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion;
-
-use Psy\TabCompletion\Matcher\AbstractMatcher;
-
-/**
- * A readline tab completion service.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class AutoCompleter
-{
- /** @var Matcher\AbstractMatcher[] */
- protected $matchers;
-
- /**
- * Register a tab completion Matcher.
- *
- * @param AbstractMatcher $matcher
- */
- public function addMatcher(AbstractMatcher $matcher)
- {
- $this->matchers[] = $matcher;
- }
-
- /**
- * Activate readline tab completion.
- */
- public function activate()
- {
- readline_completion_function(array(&$this, 'callback'));
- }
-
- /**
- * Handle readline completion.
- *
- * @param string $input Readline current word
- * @param int $index Current word index
- * @param array $info readline_info() data
- *
- * @return array
- */
- public function processCallback($input, $index, $info = array())
- {
- $line = substr($info['line_buffer'], 0, $info['end']);
- $tokens = token_get_all('<?php ' . $line);
- // remove whitespaces
- $tokens = array_filter($tokens, function ($token) {
- return !AbstractMatcher::tokenIs($token, AbstractMatcher::T_WHITESPACE);
- });
-
- $matches = array();
- foreach ($this->matchers as $matcher) {
- if ($matcher->hasMatched($tokens)) {
- $matches = array_merge($matcher->getMatches($tokens), $matches);
- }
- }
-
- $matches = array_unique($matches);
-
- return !empty($matches) ? $matches : array('');
- }
-
- /**
- * The readline_completion_function callback handler.
- *
- * @see processCallback
- *
- * @param $input
- * @param $index
- *
- * @return array
- */
- public function callback($input, $index)
- {
- return $this->processCallback($input, $index, readline_info());
- }
-
- /**
- * Remove readline callback handler on destruct.
- */
- public function __destruct()
- {
- // PHP didn't implement the whole readline API when they first switched
- // to libedit. And they still haven't.
- //
- // So this is a thing to make PsySH work on 5.3.x:
- if (function_exists('readline_callback_handler_remove')) {
- readline_callback_handler_remove();
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractContextAwareMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractContextAwareMatcher.php
deleted file mode 100644
index ad4d74ff..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractContextAwareMatcher.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-use Psy\Context;
-use Psy\ContextAware;
-
-/**
- * An abstract tab completion Matcher which implements ContextAware.
- *
- * The AutoCompleter service will inject a Context instance into all
- * ContextAware Matchers.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-abstract class AbstractContextAwareMatcher extends AbstractMatcher implements ContextAware
-{
- /**
- * Context instance (for ContextAware interface).
- *
- * @var Context
- */
- protected $context;
-
- /**
- * ContextAware interface.
- *
- * @param Context $context
- */
- public function setContext(Context $context)
- {
- $this->context = $context;
- }
-
- /**
- * Get a Context variable by name.
- *
- * @param $var Variable name
- *
- * @return mixed
- */
- protected function getVariable($var)
- {
- return $this->context->get($var);
- }
-
- /**
- * Get all variables in the current Context.
- *
- * @return array
- */
- protected function getVariables()
- {
- return $this->context->getAll();
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractMatcher.php
deleted file mode 100644
index 016c3219..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/AbstractMatcher.php
+++ /dev/null
@@ -1,186 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-/**
- * Abstract tab completion Matcher.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-abstract class AbstractMatcher
-{
- /** Syntax types */
- const CONSTANT_SYNTAX = '^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$';
- const VAR_SYNTAX = '^\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$';
- const MISC_OPERATORS = '+-*/^|&';
- /** Token values */
- const T_OPEN_TAG = 'T_OPEN_TAG';
- const T_VARIABLE = 'T_VARIABLE';
- const T_OBJECT_OPERATOR = 'T_OBJECT_OPERATOR';
- const T_DOUBLE_COLON = 'T_DOUBLE_COLON';
- const T_NEW = 'T_NEW';
- const T_CLONE = 'T_CLONE';
- const T_NS_SEPARATOR = 'T_NS_SEPARATOR';
- const T_STRING = 'T_STRING';
- const T_WHITESPACE = 'T_WHITESPACE';
- const T_AND_EQUAL = 'T_AND_EQUAL';
- const T_BOOLEAN_AND = 'T_BOOLEAN_AND';
- const T_BOOLEAN_OR = 'T_BOOLEAN_OR';
-
- const T_ENCAPSED_AND_WHITESPACE = 'T_ENCAPSED_AND_WHITESPACE';
- const T_REQUIRE = 'T_REQUIRE';
- const T_REQUIRE_ONCE = 'T_REQUIRE_ONCE';
- const T_INCLUDE = 'T_INCLUDE';
- const T_INCLUDE_ONCE = 'T_INCLUDE_ONCE';
-
- /**
- * Check whether this matcher can provide completions for $tokens.
- *
- * @param array $tokens Tokenized readline input
- *
- * @return bool
- */
- public function hasMatched(array $tokens)
- {
- return false;
- }
-
- /**
- * Get current readline input word.
- *
- * @param array $tokens Tokenized readline input (see token_get_all)
- *
- * @return string
- */
- protected function getInput(array $tokens)
- {
- $var = '';
- $firstToken = array_pop($tokens);
- if (self::tokenIs($firstToken, self::T_STRING)) {
- $var = $firstToken[1];
- }
-
- return $var;
- }
-
- /**
- * Get current namespace and class (if any) from readline input.
- *
- * @param array $tokens Tokenized readline input (see token_get_all)
- *
- * @return string
- */
- protected function getNamespaceAndClass($tokens)
- {
- $class = '';
- while (self::hasToken(
- array(self::T_NS_SEPARATOR, self::T_STRING),
- $token = array_pop($tokens)
- )) {
- $class = $token[1] . $class;
- }
-
- return $class;
- }
-
- /**
- * Provide tab completion matches for readline input.
- *
- * @param array $tokens information substracted with get_token_all
- * @param array $info readline_info object
- *
- * @return array The matches resulting from the query
- */
- abstract public function getMatches(array $tokens, array $info = array());
-
- /**
- * Check whether $word starts with $prefix.
- *
- * @param string $prefix
- * @param string $word
- *
- * @return bool
- */
- public static function startsWith($prefix, $word)
- {
- return preg_match(sprintf('#^%s#', $prefix), $word);
- }
-
- /**
- * Check whether $token matches a given syntax pattern.
- *
- * @param mixed $token A PHP token (see token_get_all)
- * @param string $syntax A syntax pattern (default: variable pattern)
- *
- * @return bool
- */
- public static function hasSyntax($token, $syntax = self::VAR_SYNTAX)
- {
- if (!is_array($token)) {
- return false;
- }
-
- $regexp = sprintf('#%s#', $syntax);
-
- return (bool) preg_match($regexp, $token[1]);
- }
-
- /**
- * Check whether $token type is $which.
- *
- * @param string $which A PHP token type
- * @param mixed $token A PHP token (see token_get_all)
- *
- * @return bool
- */
- public static function tokenIs($token, $which)
- {
- if (!is_array($token)) {
- return false;
- }
-
- return token_name($token[0]) === $which;
- }
-
- /**
- * Check whether $token is an operator.
- *
- * @param mixed $token A PHP token (see token_get_all)
- *
- * @return bool
- */
- public static function isOperator($token)
- {
- if (!is_string($token)) {
- return false;
- }
-
- return strpos(self::MISC_OPERATORS, $token) !== false;
- }
-
- /**
- * Check whether $token type is present in $coll.
- *
- * @param array $coll A list of token types
- * @param mixed $token A PHP token (see token_get_all)
- *
- * @return bool
- */
- public static function hasToken(array $coll, $token)
- {
- if (!is_array($token)) {
- return false;
- }
-
- return in_array(token_name($token[0]), $coll);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassAttributesMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassAttributesMatcher.php
deleted file mode 100644
index 4695f578..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassAttributesMatcher.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-/**
- * A class attribute tab completion Matcher.
- *
- * Given a namespace and class, this matcher provides completion for constants
- * and static properties.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class ClassAttributesMatcher extends AbstractMatcher
-{
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $input = $this->getInput($tokens);
-
- $firstToken = array_pop($tokens);
- if (self::tokenIs($firstToken, self::T_STRING)) {
- // second token is the nekudotayim operator
- array_pop($tokens);
- }
-
- $class = $this->getNamespaceAndClass($tokens);
-
- $reflection = new \ReflectionClass($class);
- $vars = array_merge(
- array_map(
- function ($var) {
- return '$' . $var;
- },
- array_keys($reflection->getStaticProperties())
- ),
- array_keys($reflection->getConstants())
- );
-
- return array_map(
- function ($name) use ($class) {
- return $class . '::' . $name;
- },
- array_filter(
- $vars,
- function ($var) use ($input) {
- return AbstractMatcher::startsWith($input, $var);
- }
- )
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
-
- switch (true) {
- case self::tokenIs($prevToken, self::T_DOUBLE_COLON) && self::tokenIs($token, self::T_STRING):
- case self::tokenIs($token, self::T_DOUBLE_COLON):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassMethodsMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassMethodsMatcher.php
deleted file mode 100644
index 6045ed94..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassMethodsMatcher.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-/**
- * A class method tab completion Matcher.
- *
- * Given a namespace and class, this matcher provides completion for static
- * methods.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class ClassMethodsMatcher extends AbstractMatcher
-{
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $input = $this->getInput($tokens);
-
- $firstToken = array_pop($tokens);
- if (self::tokenIs($firstToken, self::T_STRING)) {
- // second token is the nekudotayim operator
- array_pop($tokens);
- }
-
- $class = $this->getNamespaceAndClass($tokens);
-
- $reflection = new \ReflectionClass($class);
- $methods = $reflection->getMethods(\ReflectionMethod::IS_STATIC);
- $methods = array_map(function (\ReflectionMethod $method) {
- return $method->getName();
- }, $methods);
-
- return array_map(
- function ($name) use ($class) {
- return $class . '::' . $name;
- },
- array_filter($methods, function ($method) use ($input) {
- return AbstractMatcher::startsWith($input, $method);
- })
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
-
- switch (true) {
- case self::tokenIs($prevToken, self::T_DOUBLE_COLON) && self::tokenIs($token, self::T_STRING):
- case self::tokenIs($token, self::T_DOUBLE_COLON):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassNamesMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassNamesMatcher.php
deleted file mode 100644
index 2a8d3681..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ClassNamesMatcher.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-/**
- * A class name tab completion Matcher.
- *
- * This matcher provides completion for all declared classes.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class ClassNamesMatcher extends AbstractMatcher
-{
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $class = $this->getNamespaceAndClass($tokens);
- if (strlen($class) > 0 && $class[0] === '\\') {
- $class = substr($class, 1, strlen($class));
- }
- $quotedClass = preg_quote($class);
-
- return array_map(
- function ($className) use ($class) {
- // get the number of namespace separators
- $nsPos = substr_count($class, '\\');
- $pieces = explode('\\', $className);
- //$methods = Mirror::get($class);
- return implode('\\', array_slice($pieces, $nsPos, count($pieces)));
- },
- array_filter(
- get_declared_classes(),
- function ($className) use ($quotedClass) {
- return AbstractMatcher::startsWith($quotedClass, $className);
- }
- )
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
-
- $blacklistedTokens = array(
- self::T_INCLUDE, self::T_INCLUDE_ONCE, self::T_REQUIRE, self::T_REQUIRE_ONCE,
- );
-
- switch (true) {
- case self::hasToken(array($blacklistedTokens), $token):
- case self::hasToken(array($blacklistedTokens), $prevToken):
- case is_string($token) && $token === '$':
- return false;
- case self::hasToken(array(self::T_NEW, self::T_OPEN_TAG, self::T_NS_SEPARATOR), $prevToken):
- case self::hasToken(array(self::T_NEW, self::T_OPEN_TAG, self::T_NS_SEPARATOR), $token):
- case self::hasToken(array(self::T_OPEN_TAG, self::T_VARIABLE), $token):
- case self::isOperator($token):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/CommandsMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/CommandsMatcher.php
deleted file mode 100644
index 330d4dbf..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/CommandsMatcher.php
+++ /dev/null
@@ -1,114 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-use Psy\Command\Command;
-
-/**
- * A Psy Command tab completion Matcher.
- *
- * This matcher provides completion for all registered Psy Command names and
- * aliases.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class CommandsMatcher extends AbstractMatcher
-{
- /** @var string[] */
- protected $commands = array();
-
- /**
- * CommandsMatcher constructor.
- *
- * @param Command[] $commands
- */
- public function __construct(array $commands)
- {
- $this->setCommands($commands);
- }
-
- /**
- * Set Commands for completion.
- *
- * @param Command[] $commands
- */
- public function setCommands(array $commands)
- {
- $names = array();
- foreach ($commands as $command) {
- $names = array_merge(array($command->getName()), $names);
- $names = array_merge($command->getAliases(), $names);
- }
- $this->commands = $names;
- }
-
- /**
- * Check whether a command $name is defined.
- *
- * @param string $name
- *
- * @return bool
- */
- protected function isCommand($name)
- {
- return in_array($name, $this->commands);
- }
-
- /**
- * Check whether input matches a defined command.
- *
- * @param string $name
- *
- * @return bool
- */
- protected function matchCommand($name)
- {
- foreach ($this->commands as $cmd) {
- if ($this->startsWith($name, $cmd)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $input = $this->getInput($tokens);
-
- return array_filter($this->commands, function ($command) use ($input) {
- return AbstractMatcher::startsWith($input, $command);
- });
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- /* $openTag */ array_shift($tokens);
- $command = array_shift($tokens);
-
- switch (true) {
- case self::tokenIs($command, self::T_STRING) &&
- !$this->isCommand($command[1]) &&
- $this->matchCommand($command[1]) &&
- empty($tokens):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ConstantsMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ConstantsMatcher.php
deleted file mode 100644
index c96ad133..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ConstantsMatcher.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-/**
- * A constant name tab completion Matcher.
- *
- * This matcher provides completion for all defined constants.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class ConstantsMatcher extends AbstractMatcher
-{
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $const = $this->getInput($tokens);
-
- return array_filter(array_keys(get_defined_constants()), function ($constant) use ($const) {
- return AbstractMatcher::startsWith($const, $constant);
- });
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
-
- switch (true) {
- case self::tokenIs($prevToken, self::T_NEW):
- case self::tokenIs($prevToken, self::T_NS_SEPARATOR):
- return false;
- case self::hasToken(array(self::T_OPEN_TAG, self::T_STRING), $token):
- case self::isOperator($token):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/FunctionsMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/FunctionsMatcher.php
deleted file mode 100644
index b1678b3e..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/FunctionsMatcher.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-/**
- * A function name tab completion Matcher.
- *
- * This matcher provides completion for all internal and user-defined functions.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class FunctionsMatcher extends AbstractMatcher
-{
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $func = $this->getInput($tokens);
-
- $functions = get_defined_functions();
- $allFunctions = array_merge($functions['user'], $functions['internal']);
-
- return array_filter($allFunctions, function ($function) use ($func) {
- return AbstractMatcher::startsWith($func, $function);
- });
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
-
- switch (true) {
- case self::tokenIs($prevToken, self::T_NEW):
- return false;
- case self::hasToken(array(self::T_OPEN_TAG, self::T_STRING), $token):
- case self::isOperator($token):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/KeywordsMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/KeywordsMatcher.php
deleted file mode 100644
index 86558c2d..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/KeywordsMatcher.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-/**
- * A PHP keyword tab completion Matcher.
- *
- * This matcher provides completion for all function-like PHP keywords.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class KeywordsMatcher extends AbstractMatcher
-{
- protected $keywords = array(
- 'array', 'clone', 'declare', 'die', 'echo', 'empty', 'eval', 'exit', 'include',
- 'include_once', 'isset', 'list', 'print', 'require', 'require_once', 'unset',
- );
-
- protected $mandatoryStartKeywords = array(
- 'die', 'echo', 'print', 'unset',
- );
-
- /**
- * Get all (completable) PHP keywords.
- *
- * @return array
- */
- public function getKeywords()
- {
- return $this->keywords;
- }
-
- /**
- * Check whether $keyword is a (completable) PHP keyword.
- *
- * @param string $keyword
- *
- * @return bool
- */
- public function isKeyword($keyword)
- {
- return in_array($keyword, $this->keywords);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $input = $this->getInput($tokens);
-
- return array_filter($this->keywords, function ($keyword) use ($input) {
- return AbstractMatcher::startsWith($input, $keyword);
- });
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
-
- switch (true) {
- case self::hasToken(array(self::T_OPEN_TAG, self::T_VARIABLE), $token):
-// case is_string($token) && $token === '$':
- case self::hasToken(array(self::T_OPEN_TAG, self::T_VARIABLE), $prevToken) &&
- self::tokenIs($token, self::T_STRING):
- case self::isOperator($token):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoClientMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoClientMatcher.php
deleted file mode 100644
index 35733426..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoClientMatcher.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-/**
- * A MongoDB Client tab completion Matcher.
- *
- * This matcher provides completion for MongoClient database names.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class MongoClientMatcher extends AbstractContextAwareMatcher
-{
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $input = $this->getInput($tokens);
-
- $firstToken = array_pop($tokens);
- if (self::tokenIs($firstToken, self::T_STRING)) {
- // second token is the object operator
- array_pop($tokens);
- }
- $objectToken = array_pop($tokens);
- $objectName = str_replace('$', '', $objectToken[1]);
- $object = $this->getVariable($objectName);
-
- if (!$object instanceof \MongoClient) {
- return array();
- }
-
- $list = $object->listDBs();
-
- return array_filter(
- array_map(function ($info) {
- return $info['name'];
- }, $list['databases']),
- function ($var) use ($input) {
- return AbstractMatcher::startsWith($input, $var);
- }
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
-
- switch (true) {
- case self::tokenIs($token, self::T_OBJECT_OPERATOR):
- case self::tokenIs($prevToken, self::T_OBJECT_OPERATOR):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php
deleted file mode 100644
index 31aef898..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/MongoDatabaseMatcher.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-/**
- * A MongoDB tab completion Matcher.
- *
- * This matcher provides completion for Mongo collection names.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class MongoDatabaseMatcher extends AbstractContextAwareMatcher
-{
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $input = $this->getInput($tokens);
-
- $firstToken = array_pop($tokens);
- if (self::tokenIs($firstToken, self::T_STRING)) {
- // second token is the object operator
- array_pop($tokens);
- }
- $objectToken = array_pop($tokens);
- $objectName = str_replace('$', '', $objectToken[1]);
- $object = $this->getVariable($objectName);
-
- if (!$object instanceof \MongoDB) {
- return array();
- }
-
- return array_filter(
- $object->getCollectionNames(),
- function ($var) use ($input) {
- return AbstractMatcher::startsWith($input, $var);
- }
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
-
- switch (true) {
- case self::tokenIs($token, self::T_OBJECT_OPERATOR):
- case self::tokenIs($prevToken, self::T_OBJECT_OPERATOR):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectAttributesMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectAttributesMatcher.php
deleted file mode 100644
index 5d1894e0..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectAttributesMatcher.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-use InvalidArgumentException;
-
-/**
- * An object attribute tab completion Matcher.
- *
- * This matcher provides completion for properties of objects in the current
- * Context.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class ObjectAttributesMatcher extends AbstractContextAwareMatcher
-{
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $input = $this->getInput($tokens);
-
- $firstToken = array_pop($tokens);
- if (self::tokenIs($firstToken, self::T_STRING)) {
- // second token is the object operator
- array_pop($tokens);
- }
- $objectToken = array_pop($tokens);
- if (!is_array($objectToken)) {
- return array();
- }
- $objectName = str_replace('$', '', $objectToken[1]);
-
- try {
- $object = $this->getVariable($objectName);
- } catch (InvalidArgumentException $e) {
- return array();
- }
-
- return array_filter(
- array_keys(get_class_vars(get_class($object))),
- function ($var) use ($input) {
- return AbstractMatcher::startsWith($input, $var);
- }
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
-
- switch (true) {
- case self::tokenIs($token, self::T_OBJECT_OPERATOR):
- case self::tokenIs($prevToken, self::T_OBJECT_OPERATOR):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectMethodsMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectMethodsMatcher.php
deleted file mode 100644
index 5983aad9..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectMethodsMatcher.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-use InvalidArgumentException;
-
-/**
- * An object method tab completion Matcher.
- *
- * This matcher provides completion for methods of objects in the current
- * Context.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class ObjectMethodsMatcher extends AbstractContextAwareMatcher
-{
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $input = $this->getInput($tokens);
-
- $firstToken = array_pop($tokens);
- if (self::tokenIs($firstToken, self::T_STRING)) {
- // second token is the object operator
- array_pop($tokens);
- }
- $objectToken = array_pop($tokens);
- if (!is_array($objectToken)) {
- return array();
- }
- $objectName = str_replace('$', '', $objectToken[1]);
-
- try {
- $object = $this->getVariable($objectName);
- } catch (InvalidArgumentException $e) {
- return array();
- }
-
- return array_filter(
- get_class_methods($object),
- function ($var) use ($input) {
- return AbstractMatcher::startsWith($input, $var);
- }
- );
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
-
- switch (true) {
- case self::tokenIs($token, self::T_OBJECT_OPERATOR):
- case self::tokenIs($prevToken, self::T_OBJECT_OPERATOR):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/VariablesMatcher.php b/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/VariablesMatcher.php
deleted file mode 100644
index ee3b27cd..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/TabCompletion/Matcher/VariablesMatcher.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\TabCompletion\Matcher;
-
-/**
- * A variable name tab completion Matcher.
- *
- * This matcher provides completion for variable names in the current Context.
- *
- * @author Marc Garcia <markcial@gmail.com>
- */
-class VariablesMatcher extends AbstractContextAwareMatcher
-{
- /**
- * {@inheritdoc}
- */
- public function getMatches(array $tokens, array $info = array())
- {
- $var = str_replace('$', '', $this->getInput($tokens));
-
- return array_filter(array_keys($this->getVariables()), function ($variable) use ($var) {
- return AbstractMatcher::startsWith($var, $variable);
- });
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasMatched(array $tokens)
- {
- $token = array_pop($tokens);
-
- switch (true) {
- case self::hasToken(array(self::T_OPEN_TAG, self::T_VARIABLE), $token):
- case is_string($token) && $token === '$':
- case self::isOperator($token):
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Util/Docblock.php b/www/wiki/vendor/psy/psysh/src/Psy/Util/Docblock.php
deleted file mode 100644
index 381c2b20..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Util/Docblock.php
+++ /dev/null
@@ -1,241 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Util;
-
-/**
- * A docblock representation.
- *
- * Based on PHP-DocBlock-Parser by Paul Scott:
- *
- * {@link http://www.github.com/icio/PHP-DocBlock-Parser}
- *
- * @author Paul Scott <paul@duedil.com>
- * @author Justin Hileman <justin@justinhileman.info>
- */
-class Docblock
-{
- /**
- * Tags in the docblock that have a whitespace-delimited number of parameters
- * (such as `@param type var desc` and `@return type desc`) and the names of
- * those parameters.
- *
- * @var array
- */
- public static $vectors = array(
- 'throws' => array('type', 'desc'),
- 'param' => array('type', 'var', 'desc'),
- 'return' => array('type', 'desc'),
- );
-
- protected $reflector;
-
- /**
- * The description of the symbol.
- *
- * @var string
- */
- public $desc;
-
- /**
- * The tags defined in the docblock.
- *
- * The array has keys which are the tag names (excluding the @) and values
- * that are arrays, each of which is an entry for the tag.
- *
- * In the case where the tag name is defined in {@see DocBlock::$vectors} the
- * value within the tag-value array is an array in itself with keys as
- * described by {@see DocBlock::$vectors}.
- *
- * @var array
- */
- public $tags;
-
- /**
- * The entire DocBlock comment that was parsed.
- *
- * @var string
- */
- public $comment;
-
- /**
- * Docblock constructor.
- *
- * @param \Reflector $reflector
- */
- public function __construct(\Reflector $reflector)
- {
- $this->reflector = $reflector;
- $this->setComment($reflector->getDocComment());
- }
-
- /**
- * Set and parse the docblock comment.
- *
- * @param string $comment The docblock
- */
- protected function setComment($comment)
- {
- $this->desc = '';
- $this->tags = array();
- $this->comment = $comment;
-
- $this->parseComment($comment);
- }
-
- /**
- * Find the length of the docblock prefix.
- *
- * @param array $lines
- *
- * @return int Prefix length
- */
- protected static function prefixLength(array $lines)
- {
- // find only lines with interesting things
- $lines = array_filter($lines, function ($line) {
- return substr($line, strspn($line, "* \t\n\r\0\x0B"));
- });
-
- // if we sort the lines, we only have to compare two items
- sort($lines);
-
- $first = reset($lines);
- $last = end($lines);
-
- // find the longest common substring
- $count = min(strlen($first), strlen($last));
- for ($i = 0; $i < $count; $i++) {
- if ($first[$i] !== $last[$i]) {
- return $i;
- }
- }
-
- return $count;
- }
-
- /**
- * Parse the comment into the component parts and set the state of the object.
- *
- * @param string $comment The docblock
- */
- protected function parseComment($comment)
- {
- // Strip the opening and closing tags of the docblock
- $comment = substr($comment, 3, -2);
-
- // Split into arrays of lines
- $comment = array_filter(preg_split('/\r?\n\r?/', $comment));
-
- // Trim asterisks and whitespace from the beginning and whitespace from the end of lines
- $prefixLength = self::prefixLength($comment);
- $comment = array_map(function ($line) use ($prefixLength) {
- return rtrim(substr($line, $prefixLength));
- }, $comment);
-
- // Group the lines together by @tags
- $blocks = array();
- $b = -1;
- foreach ($comment as $line) {
- if (self::isTagged($line)) {
- $b++;
- $blocks[] = array();
- } elseif ($b === -1) {
- $b = 0;
- $blocks[] = array();
- }
- $blocks[$b][] = $line;
- }
-
- // Parse the blocks
- foreach ($blocks as $block => $body) {
- $body = trim(implode("\n", $body));
-
- if ($block === 0 && !self::isTagged($body)) {
- // This is the description block
- $this->desc = $body;
- } else {
- // This block is tagged
- $tag = substr(self::strTag($body), 1);
- $body = ltrim(substr($body, strlen($tag) + 2));
-
- if (isset(self::$vectors[$tag])) {
- // The tagged block is a vector
- $count = count(self::$vectors[$tag]);
- if ($body) {
- $parts = preg_split('/\s+/', $body, $count);
- } else {
- $parts = array();
- }
-
- // Default the trailing values
- $parts = array_pad($parts, $count, null);
-
- // Store as a mapped array
- $this->tags[$tag][] = array_combine(self::$vectors[$tag], $parts);
- } else {
- // The tagged block is only text
- $this->tags[$tag][] = $body;
- }
- }
- }
- }
-
- /**
- * Whether or not a docblock contains a given @tag.
- *
- * @param string $tag The name of the @tag to check for
- *
- * @return bool
- */
- public function hasTag($tag)
- {
- return is_array($this->tags) && array_key_exists($tag, $this->tags);
- }
-
- /**
- * The value of a tag.
- *
- * @param string $tag
- *
- * @return array
- */
- public function tag($tag)
- {
- return $this->hasTag($tag) ? $this->tags[$tag] : null;
- }
-
- /**
- * Whether or not a string begins with a @tag.
- *
- * @param string $str
- *
- * @return bool
- */
- public static function isTagged($str)
- {
- return isset($str[1]) && $str[0] === '@' && ctype_alpha($str[1]);
- }
-
- /**
- * The tag at the beginning of a string.
- *
- * @param string $str
- *
- * @return string|null
- */
- public static function strTag($str)
- {
- if (preg_match('/^@[a-z0-9_]+/', $str, $matches)) {
- return $matches[0];
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Util/Json.php b/www/wiki/vendor/psy/psysh/src/Psy/Util/Json.php
deleted file mode 100644
index 352e8456..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Util/Json.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Util;
-
-/**
- * A static class to wrap JSON encoding/decoding with PsySH's default options.
- */
-class Json
-{
- /**
- * Encode a value as JSON.
- *
- * @param mixed $val
- * @param int $opt
- *
- * @return string
- */
- public static function encode($val, $opt = 0)
- {
- if (version_compare(PHP_VERSION, '5.4', '>=')) {
- $opt |= JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
- }
-
- return json_encode($val, $opt);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Util/Mirror.php b/www/wiki/vendor/psy/psysh/src/Psy/Util/Mirror.php
deleted file mode 100644
index 4a3b061e..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Util/Mirror.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Util;
-
-use Psy\Exception\RuntimeException;
-use Psy\Reflection\ReflectionConstant;
-
-/**
- * A utility class for getting Reflectors.
- */
-class Mirror
-{
- const CONSTANT = 1;
- const METHOD = 2;
- const STATIC_PROPERTY = 4;
- const PROPERTY = 8;
-
- /**
- * Get a Reflector for a function, class or instance, constant, method or property.
- *
- * Optionally, pass a $filter param to restrict the types of members checked. For example, to only Reflectors for
- * static properties and constants, pass:
- *
- * $filter = Mirror::CONSTANT | Mirror::STATIC_PROPERTY
- *
- * @throws \Psy\Exception\RuntimeException when a $member specified but not present on $value
- * @throws \InvalidArgumentException if $value is something other than an object or class/function name
- *
- * @param mixed $value Class or function name, or variable instance
- * @param string $member Optional: property, constant or method name (default: null)
- * @param int $filter (default: CONSTANT | METHOD | PROPERTY | STATIC_PROPERTY)
- *
- * @return Reflector
- */
- public static function get($value, $member = null, $filter = 15)
- {
- if ($member === null && is_string($value) && function_exists($value)) {
- return new \ReflectionFunction($value);
- }
-
- $class = self::getClass($value);
-
- if ($member === null) {
- return $class;
- } elseif ($filter & self::CONSTANT && $class->hasConstant($member)) {
- return new ReflectionConstant($class, $member);
- } elseif ($filter & self::METHOD && $class->hasMethod($member)) {
- return $class->getMethod($member);
- } elseif ($filter & self::PROPERTY && $class->hasProperty($member)) {
- return $class->getProperty($member);
- } elseif ($filter & self::STATIC_PROPERTY && $class->hasProperty($member) && $class->getProperty($member)->isStatic()) {
- return $class->getProperty($member);
- } else {
- throw new RuntimeException(sprintf(
- 'Unknown member %s on class %s',
- $member,
- is_object($value) ? get_class($value) : $value
- ));
- }
- }
-
- /**
- * Get a ReflectionClass (or ReflectionObject) if possible.
- *
- * @throws \InvalidArgumentException if $value is not a class name or instance
- *
- * @param mixed $value
- *
- * @return \ReflectionClass
- */
- private static function getClass($value)
- {
- if (is_object($value)) {
- return new \ReflectionObject($value);
- }
-
- if (!is_string($value)) {
- throw new \InvalidArgumentException('Mirror expects an object or class');
- } elseif (!class_exists($value) && !interface_exists($value) && !(function_exists('trait_exists') && trait_exists($value))) {
- throw new \InvalidArgumentException('Unknown class or function: ' . $value);
- }
-
- return new \ReflectionClass($value);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/Util/Str.php b/www/wiki/vendor/psy/psysh/src/Psy/Util/Str.php
deleted file mode 100644
index e3a34cb7..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/Util/Str.php
+++ /dev/null
@@ -1,114 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Util;
-
-/**
- * String utility methods.
- *
- * @author ju1ius
- */
-class Str
-{
- const UNVIS_RX = <<<'EOS'
-/
- \\(?:
- ((?:040)|s)
- | (240)
- | (?: M-(.) )
- | (?: M\^(.) )
- | (?: \^(.) )
- )
-/xS
-EOS;
-
- /**
- * Decodes a string encoded by libsd's strvis.
- *
- * From `man 3 vis`:
- *
- * Use an ‘M’ to represent meta characters (characters with the 8th bit set),
- * and use a caret ‘^’ to represent control characters (see iscntrl(3)).
- * The following formats are used:
- *
- * \040 Represents ASCII space.
- *
- * \240 Represents Meta-space (&nbsp in HTML).
- *
- * \M-C Represents character ‘C’ with the 8th bit set.
- * Spans characters ‘\241’ through ‘\376’.
- *
- * \M^C Represents control character ‘C’ with the 8th bit set.
- * Spans characters ‘\200’ through ‘\237’, and ‘\377’ (as ‘\M^?’).
- *
- * \^C Represents the control character ‘C’.
- * Spans characters ‘\000’ through ‘\037’, and ‘\177’ (as ‘\^?’).
- *
- * The other formats are supported by PHP's stripcslashes,
- * except for the \s sequence (ASCII space).
- *
- * @param string $input The string to decode
- *
- * @return string
- */
- public static function unvis($input)
- {
- $output = preg_replace_callback(self::UNVIS_RX, 'self::unvisReplace', $input);
- // other escapes & octal are handled by stripcslashes
- return stripcslashes($output);
- }
-
- /**
- * Callback for Str::unvis.
- *
- * @param array $match The matches passed by preg_replace_callback
- *
- * @return string
- */
- protected static function unvisReplace($match)
- {
- // \040, \s
- if (!empty($match[1])) {
- return "\x20";
- }
- // \240
- if (!empty($match[2])) {
- return "\xa0";
- }
- // \M-(.)
- if (isset($match[3]) && $match[3] !== '') {
- $chr = $match[3];
- // unvis S_META1
- $cp = 0200;
- $cp |= ord($chr);
-
- return chr($cp);
- }
- // \M^(.)
- if (isset($match[4]) && $match[4] !== '') {
- $chr = $match[4];
- // unvis S_META | S_CTRL
- $cp = 0200;
- $cp |= ($chr === '?') ? 0177 : ord($chr) & 037;
-
- return chr($cp);
- }
- // \^(.)
- if (isset($match[5]) && $match[5] !== '') {
- $chr = $match[5];
- // unvis S_CTRL
- $cp = 0;
- $cp |= ($chr === '?') ? 0177 : ord($chr) & 037;
-
- return chr($cp);
- }
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Cloner.php b/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Cloner.php
deleted file mode 100644
index 4685007b..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Cloner.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\VarDumper;
-
-use Symfony\Component\VarDumper\Caster\Caster;
-use Symfony\Component\VarDumper\Cloner\Stub;
-use Symfony\Component\VarDumper\Cloner\VarCloner;
-
-/**
- * A PsySH-specialized VarCloner.
- */
-class Cloner extends VarCloner
-{
- private $filter = 0;
-
- /**
- * {@inheritdoc}
- */
- public function cloneVar($var, $filter = 0)
- {
- $this->filter = $filter;
-
- return parent::cloneVar($var, $filter);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function castResource(Stub $stub, $isNested)
- {
- return Caster::EXCLUDE_VERBOSE & $this->filter ? array() : parent::castResource($stub, $isNested);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Dumper.php b/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Dumper.php
deleted file mode 100644
index 6e166af5..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Dumper.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\VarDumper;
-
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\VarDumper\Cloner\Cursor;
-use Symfony\Component\VarDumper\Dumper\CliDumper;
-
-/**
- * A PsySH-specialized CliDumper.
- */
-class Dumper extends CliDumper
-{
- private $formatter;
-
- protected static $onlyControlCharsRx = '/^[\x00-\x1F\x7F]+$/';
- protected static $controlCharsRx = '/([\x00-\x1F\x7F]+)/';
- protected static $controlCharsMap = array(
- "\0" => '\0',
- "\t" => '\t',
- "\n" => '\n',
- "\v" => '\v',
- "\f" => '\f',
- "\r" => '\r',
- "\033" => '\e',
- );
-
- public function __construct(OutputFormatter $formatter)
- {
- $this->formatter = $formatter;
- parent::__construct();
- $this->setColors(false);
- }
-
- /**
- * {@inheritdoc}
- */
- public function enterHash(Cursor $cursor, $type, $class, $hasChild)
- {
- if (Cursor::HASH_INDEXED === $type || Cursor::HASH_ASSOC === $type) {
- $class = 0;
- }
- parent::enterHash($cursor, $type, $class, $hasChild);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function dumpKey(Cursor $cursor)
- {
- if (Cursor::HASH_INDEXED !== $cursor->hashType) {
- parent::dumpKey($cursor);
- }
- }
-
- protected function style($style, $value, $attr = array())
- {
- if ('ref' === $style) {
- $value = strtr($value, '@', '#');
- }
-
- $styled = '';
- $map = self::$controlCharsMap;
- $cchr = $this->styles['cchr'];
-
- $chunks = preg_split(self::$controlCharsRx, $value, null, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
- foreach ($chunks as $chunk) {
- if (preg_match(self::$onlyControlCharsRx, $chunk)) {
- $chars = '';
- $i = 0;
- do {
- $chars .= isset($map[$chunk[$i]]) ? $map[$chunk[$i]] : sprintf('\x%02X', ord($chunk[$i]));
- } while (isset($chunk[++$i]));
-
- $chars = $this->formatter->escape($chars);
- $styled .= "<{$cchr}>{$chars}</{$cchr}>";
- } else {
- $styled .= $this->formatter->escape($chunk);
- }
- }
-
- $style = $this->styles[$style];
-
- return "<{$style}>{$styled}</{$style}>";
- }
-
- /**
- * {@inheritdoc}
- */
- protected function dumpLine($depth, $endOfValue = false)
- {
- if ($endOfValue && 0 < $depth) {
- $this->line .= ',';
- }
- $this->line = $this->formatter->format($this->line);
- parent::dumpLine($depth, $endOfValue);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Presenter.php b/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Presenter.php
deleted file mode 100644
index 935b6e70..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/Presenter.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\VarDumper;
-
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\VarDumper\Caster\Caster;
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * A Presenter service.
- */
-class Presenter
-{
- const VERBOSE = 1;
-
- private $cloner;
- private $dumper;
- private $exceptionsImportants = array(
- "\0*\0message",
- "\0*\0code",
- "\0*\0file",
- "\0*\0line",
- "\0Exception\0previous",
- );
- private $styles = array(
- 'num' => 'number',
- 'const' => 'const',
- 'str' => 'string',
- 'cchr' => 'default',
- 'note' => 'class',
- 'ref' => 'default',
- 'public' => 'public',
- 'protected' => 'protected',
- 'private' => 'private',
- 'meta' => 'comment',
- 'key' => 'comment',
- 'index' => 'number',
- );
-
- public function __construct(OutputFormatter $formatter)
- {
- $this->dumper = new Dumper($formatter);
- $this->dumper->setStyles($this->styles);
-
- $this->cloner = new Cloner();
- $this->cloner->addCasters(array('*' => function ($obj, array $a, Stub $stub, $isNested, $filter = 0) {
- if ($filter || $isNested) {
- if ($obj instanceof \Exception) {
- $a = Caster::filter($a, Caster::EXCLUDE_NOT_IMPORTANT | Caster::EXCLUDE_EMPTY, $this->exceptionsImportants);
- } else {
- $a = Caster::filter($a, Caster::EXCLUDE_PROTECTED | Caster::EXCLUDE_PRIVATE);
- }
- }
-
- return $a;
- }));
- }
-
- /**
- * Register casters.
- *
- * @see http://symfony.com/doc/current/components/var_dumper/advanced.html#casters
- *
- * @param callable[] $casters A map of casters
- */
- public function addCasters(array $casters)
- {
- $this->cloner->addCasters($casters);
- }
-
- /**
- * Present a reference to the value.
- *
- * @param mixed $value
- *
- * @return string
- */
- public function presentRef($value)
- {
- return $this->present($value, 0);
- }
-
- /**
- * Present a full representation of the value.
- *
- * If $depth is 0, the value will be presented as a ref instead.
- *
- * @param mixed $value
- * @param int $depth (default: null)
- * @param int $options One of Presenter constants
- *
- * @return string
- */
- public function present($value, $depth = null, $options = 0)
- {
- $data = $this->cloner->cloneVar($value, !($options & self::VERBOSE) ? Caster::EXCLUDE_VERBOSE : 0);
-
- if (null !== $depth) {
- $data = $data->withMaxDepth($depth);
- }
-
- $output = '';
- $this->dumper->dump($data, function ($line, $depth) use (&$output) {
- if ($depth >= 0) {
- if ('' !== $output) {
- $output .= PHP_EOL;
- }
- $output .= str_repeat(' ', $depth) . $line;
- }
- });
-
- return OutputFormatter::escape($output);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/PresenterAware.php b/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/PresenterAware.php
deleted file mode 100644
index 8406b8ae..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/VarDumper/PresenterAware.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\VarDumper;
-
-/**
- * Presenter injects itself as a dependency to all objects which
- * implement PresenterAware.
- */
-interface PresenterAware
-{
- /**
- * Set a reference to the Presenter.
- *
- * @param Presenter $presenter
- */
- public function setPresenter(Presenter $presenter);
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/Checker.php b/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/Checker.php
deleted file mode 100644
index 7d6b2947..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/Checker.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\VersionUpdater;
-
-interface Checker
-{
- const ALWAYS = 'always';
- const DAILY = 'daily';
- const WEEKLY = 'weekly';
- const MONTHLY = 'monthly';
- const NEVER = 'never';
-
- /**
- * @return bool
- */
- public function isLatest();
-
- /**
- * @return string
- */
- public function getLatest();
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/GitHubChecker.php b/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/GitHubChecker.php
deleted file mode 100644
index 520d7c5b..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/GitHubChecker.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\VersionUpdater;
-
-use Psy\Shell;
-
-class GitHubChecker implements Checker
-{
- const URL = 'https://api.github.com/repos/bobthecow/psysh/releases/latest';
-
- private $latest;
-
- /**
- * @return bool
- */
- public function isLatest()
- {
- return version_compare(Shell::VERSION, $this->getLatest(), '>=');
- }
-
- /**
- * @return string
- */
- public function getLatest()
- {
- if (!isset($this->latest)) {
- $this->setLatest($this->getVersionFromTag());
- }
-
- return $this->latest;
- }
-
- /**
- * @param string $version
- */
- public function setLatest($version)
- {
- $this->latest = $version;
- }
-
- /**
- * @return string|null
- */
- private function getVersionFromTag()
- {
- $contents = $this->fetchLatestRelease();
- if (!$contents || !isset($contents->tag_name)) {
- throw new \InvalidArgumentException('Unable to check for updates');
- }
- $this->setLatest($contents->tag_name);
-
- return $this->getLatest();
- }
-
- /**
- * Set to public to make testing easier.
- *
- * @return mixed
- */
- public function fetchLatestRelease()
- {
- $context = stream_context_create(array('http' => array('user_agent' => 'PsySH/' . Shell::VERSION)));
-
- return json_decode(@file_get_contents(self::URL, false, $context));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/IntervalChecker.php b/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/IntervalChecker.php
deleted file mode 100644
index c34ea691..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/IntervalChecker.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\VersionUpdater;
-
-use Psy\Shell;
-
-class IntervalChecker extends GitHubChecker
-{
- private $cacheFile;
- private $interval;
-
- public function __construct($cacheFile, $interval)
- {
- $this->cacheFile = $cacheFile;
- $this->interval = $interval;
- }
-
- public function fetchLatestRelease()
- {
- // Read the cached file
- $cached = json_decode(@file_get_contents($this->cacheFile, false));
- if ($cached && isset($cached->last_check) && isset($cached->release)) {
- $now = new \DateTime();
- $lastCheck = new \DateTime($cached->last_check);
- if ($lastCheck >= $now->sub($this->getDateInterval())) {
- return $cached->release;
- }
- }
-
- // Fall back to fetching from GitHub
- $release = parent::fetchLatestRelease();
- if ($release && isset($release->tag_name)) {
- $this->updateCache($release);
- }
-
- return $release;
- }
-
- private function getDateInterval()
- {
- switch ($this->interval) {
- case Checker::DAILY:
- return new \DateInterval('P1D');
- case Checker::WEEKLY:
- return new \DateInterval('P1W');
- case Checker::MONTHLY:
- return new \DateInterval('P1M');
- }
- }
-
- private function updateCache($release)
- {
- $data = array(
- 'last_check' => date(DATE_ATOM),
- 'release' => $release,
- );
-
- file_put_contents($this->cacheFile, json_encode($data));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/NoopChecker.php b/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/NoopChecker.php
deleted file mode 100644
index 5edbe00d..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/VersionUpdater/NoopChecker.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\VersionUpdater;
-
-use Psy\Shell;
-
-/**
- * A version checker stub which always thinks the current verion is up to date.
- */
-class NoopChecker implements Checker
-{
- /**
- * @return bool
- */
- public function isLatest()
- {
- return true;
- }
-
- /**
- * @return string
- */
- public function getLatest()
- {
- return Shell::VERSION;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/src/Psy/functions.php b/www/wiki/vendor/psy/psysh/src/Psy/functions.php
deleted file mode 100644
index 19020940..00000000
--- a/www/wiki/vendor/psy/psysh/src/Psy/functions.php
+++ /dev/null
@@ -1,264 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy;
-
-use Psy\VersionUpdater\GitHubChecker;
-use Symfony\Component\Console\Input\ArgvInput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-use XdgBaseDir\Xdg;
-
-if (!function_exists('Psy\sh')) {
- /**
- * Command to return the eval-able code to startup PsySH.
- *
- * eval(\Psy\sh());
- *
- * @return string
- */
- function sh()
- {
- return 'extract(\Psy\Shell::debug(get_defined_vars(), isset($this) ? $this : null));';
- }
-}
-
-if (!function_exists('Psy\info')) {
- /**
- * Get a bunch of debugging info about the current PsySH environment and
- * configuration.
- *
- * If a Configuration param is passed, that configuration is stored and
- * used for the current shell session, and no debugging info is returned.
- *
- * @param Configuration|null $config
- *
- * @return array|null
- */
- function info(Configuration $config = null)
- {
- static $lastConfig;
- if ($config !== null) {
- $lastConfig = $config;
-
- return;
- }
-
- $xdg = new Xdg();
- $home = rtrim(str_replace('\\', '/', $xdg->getHomeDir()), '/');
- $homePattern = '#^' . preg_quote($home, '#') . '/#';
-
- $prettyPath = function ($path) use ($homePattern) {
- if (is_string($path)) {
- return preg_replace($homePattern, '~/', $path);
- } else {
- return $path;
- }
- };
-
- $config = $lastConfig ?: new Configuration();
-
- $core = array(
- 'PsySH version' => Shell::VERSION,
- 'PHP version' => PHP_VERSION,
- 'default includes' => $config->getDefaultIncludes(),
- 'require semicolons' => $config->requireSemicolons(),
- 'error logging level' => $config->errorLoggingLevel(),
- 'config file' => array(
- 'default config file' => $prettyPath($config->getConfigFile()),
- 'local config file' => $prettyPath($config->getLocalConfigFile()),
- 'PSYSH_CONFIG env' => $prettyPath(getenv('PSYSH_CONFIG')),
- ),
- // 'config dir' => $config->getConfigDir(),
- // 'data dir' => $config->getDataDir(),
- // 'runtime dir' => $config->getRuntimeDir(),
- );
-
- // Use an explicit, fresh update check here, rather than relying on whatever is in $config.
- $checker = new GitHubChecker();
- $updates = array(
- 'update available' => !$checker->isLatest(),
- 'latest release version' => $checker->getLatest(),
- 'update check interval' => $config->getUpdateCheck(),
- 'update cache file' => $prettyPath($config->getUpdateCheckCacheFile()),
- );
-
- if ($config->hasReadline()) {
- $info = readline_info();
-
- $readline = array(
- 'readline available' => true,
- 'readline enabled' => $config->useReadline(),
- 'readline service' => get_class($config->getReadline()),
- );
-
- if (isset($info['library_version'])) {
- $readline['readline library'] = $info['library_version'];
- }
-
- if (isset($info['readline_name']) && $info['readline_name'] !== '') {
- $readline['readline name'] = $info['readline_name'];
- }
- } else {
- $readline = array(
- 'readline available' => false,
- );
- }
-
- $pcntl = array(
- 'pcntl available' => function_exists('pcntl_signal'),
- 'posix available' => function_exists('posix_getpid'),
- );
-
- $history = array(
- 'history file' => $prettyPath($config->getHistoryFile()),
- 'history size' => $config->getHistorySize(),
- 'erase duplicates' => $config->getEraseDuplicates(),
- );
-
- $docs = array(
- 'manual db file' => $prettyPath($config->getManualDbFile()),
- 'sqlite available' => true,
- );
-
- try {
- if ($db = $config->getManualDb()) {
- if ($q = $db->query('SELECT * FROM meta;')) {
- $q->setFetchMode(\PDO::FETCH_KEY_PAIR);
- $meta = $q->fetchAll();
-
- foreach ($meta as $key => $val) {
- switch ($key) {
- case 'built_at':
- $d = new \DateTime('@' . $val);
- $val = $d->format(\DateTime::RFC2822);
- break;
- }
- $key = 'db ' . str_replace('_', ' ', $key);
- $docs[$key] = $val;
- }
- } else {
- $docs['db schema'] = '0.1.0';
- }
- }
- } catch (Exception\RuntimeException $e) {
- if ($e->getMessage() === 'SQLite PDO driver not found') {
- $docs['sqlite available'] = false;
- } else {
- throw $e;
- }
- }
-
- $autocomplete = array(
- 'tab completion enabled' => $config->getTabCompletion(),
- 'custom matchers' => array_map('get_class', $config->getTabCompletionMatchers()),
- );
-
- return array_merge($core, compact('updates', 'pcntl', 'readline', 'history', 'docs', 'autocomplete'));
- }
-}
-
-if (!function_exists('Psy\bin')) {
- /**
- * `psysh` command line executable.
- *
- * @return Closure
- */
- function bin()
- {
- return function () {
- $usageException = null;
-
- $input = new ArgvInput();
- try {
- $input->bind(new InputDefinition(array(
- new InputOption('help', 'h', InputOption::VALUE_NONE),
- new InputOption('config', 'c', InputOption::VALUE_REQUIRED),
- new InputOption('version', 'v', InputOption::VALUE_NONE),
- new InputOption('cwd', null, InputOption::VALUE_REQUIRED),
- new InputOption('color', null, InputOption::VALUE_NONE),
- new InputOption('no-color', null, InputOption::VALUE_NONE),
-
- new InputArgument('include', InputArgument::IS_ARRAY),
- )));
- } catch (\RuntimeException $e) {
- $usageException = $e;
- }
-
- $config = array();
-
- // Handle --config
- if ($configFile = $input->getOption('config')) {
- $config['configFile'] = $configFile;
- }
-
- // Handle --color and --no-color
- if ($input->getOption('color') && $input->getOption('no-color')) {
- $usageException = new \RuntimeException('Using both "--color" and "--no-color" options is invalid.');
- } elseif ($input->getOption('color')) {
- $config['colorMode'] = Configuration::COLOR_MODE_FORCED;
- } elseif ($input->getOption('no-color')) {
- $config['colorMode'] = Configuration::COLOR_MODE_DISABLED;
- }
-
- $shell = new Shell(new Configuration($config));
-
- // Handle --help
- if ($usageException !== null || $input->getOption('help')) {
- if ($usageException !== null) {
- echo $usageException->getMessage() . PHP_EOL . PHP_EOL;
- }
-
- $version = $shell->getVersion();
- $name = basename(reset($_SERVER['argv']));
- echo <<<EOL
-$version
-
-Usage:
- $name [--version] [--help] [files...]
-
-Options:
- --help -h Display this help message.
- --config -c Use an alternate PsySH config file location.
- --cwd Use an alternate working directory.
- --version -v Display the PsySH version.
- --color Force colors in output.
- --no-color Disable colors in output.
-
-EOL;
- exit($usageException === null ? 0 : 1);
- }
-
- // Handle --version
- if ($input->getOption('version')) {
- echo $shell->getVersion() . PHP_EOL;
- exit(0);
- }
-
- // Pass additional arguments to Shell as 'includes'
- $shell->setIncludes($input->getArgument('include'));
-
- try {
- // And go!
- $shell->run();
- } catch (Exception $e) {
- echo $e->getMessage() . PHP_EOL;
-
- // @todo this triggers the "exited unexpectedly" logic in the
- // ForkingLoop, so we can't exit(1) after starting the shell...
- // fix this :)
-
- // exit(1);
- }
- };
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/AutoloaderTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/AutoloaderTest.php
deleted file mode 100644
index b906aaf2..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/AutoloaderTest.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test;
-
-use Psy\Autoloader;
-
-class AutoloaderTest extends \PHPUnit_Framework_TestCase
-{
- public function testRegister()
- {
- Autoloader::register();
- $this->assertTrue(spl_autoload_unregister(array('Psy\Autoloader', 'autoload')));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AbstractClassPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AbstractClassPassTest.php
deleted file mode 100644
index 76f8c63c..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AbstractClassPassTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use PhpParser\NodeTraverser;
-use Psy\CodeCleaner\AbstractClassPass;
-
-class AbstractClassPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->pass = new AbstractClassPass();
- $this->traverser = new NodeTraverser();
- $this->traverser->addVisitor($this->pass);
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testProcessStatementFails($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- return array(
- array('class A { abstract function a(); }'),
- array('abstract class B { abstract function b() {} }'),
- array('abstract class B { abstract function b() { echo "yep"; } }'),
- );
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessStatementPasses($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validStatements()
- {
- return array(
- array('abstract class C { function c() {} }'),
- array('abstract class D { abstract function d(); }'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AssignThisVariablePassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AssignThisVariablePassTest.php
deleted file mode 100644
index a8f7b835..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/AssignThisVariablePassTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use PhpParser\NodeTraverser;
-use Psy\CodeCleaner\AssignThisVariablePass;
-
-class AssignThisVariablePassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->pass = new AssignThisVariablePass();
- $this->traverser = new NodeTraverser();
- $this->traverser->addVisitor($this->pass);
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testProcessStatementFails($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- return array(
- array('$this = 3'),
- array('strtolower($this = "this")'),
- );
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessStatementPasses($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validStatements()
- {
- return array(
- array('$this'),
- array('$a = $this'),
- array('$a = "this"; $$a = 3'),
- array('$$this = "b"'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CallTimePassByReferencePassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CallTimePassByReferencePassTest.php
deleted file mode 100644
index e4e338f7..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CallTimePassByReferencePassTest.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use PhpParser\NodeTraverser;
-use Psy\CodeCleaner\CallTimePassByReferencePass;
-
-class CallTimePassByReferencePassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->pass = new CallTimePassByReferencePass();
- $this->traverser = new NodeTraverser();
- $this->traverser->addVisitor($this->pass);
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testProcessStatementFails($code)
- {
- if (version_compare(PHP_VERSION, '5.4', '<')) {
- $this->markTestSkipped();
- }
-
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- return array(
- array('f(&$arg)'),
- array('$object->method($first, &$arg)'),
- array('$closure($first, &$arg, $last)'),
- array('A::b(&$arg)'),
- );
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessStatementPasses($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validStatements()
- {
- $data = array(
- array('array(&$var)'),
- array('$a = &$b'),
- array('f(array(&$b))'),
- );
-
- if (version_compare(PHP_VERSION, '5.4', '<')) {
- $data = array_merge($data, $this->invalidStatements());
- }
-
- return $data;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CalledClassPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CalledClassPassTest.php
deleted file mode 100644
index dad8a05b..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CalledClassPassTest.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use PhpParser\NodeTraverser;
-use Psy\CodeCleaner\CalledClassPass;
-
-class CalledClassPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->pass = new CalledClassPass();
- $this->traverser = new NodeTraverser();
- $this->traverser->addVisitor($this->pass);
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\ErrorException
- */
- public function testProcessStatementFails($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- return array(
- array('get_class()'),
- array('get_class(null)'),
- array('get_called_class()'),
- array('get_called_class(null)'),
- array('function foo() { return get_class(); }'),
- array('function foo() { return get_class(null); }'),
- array('function foo() { return get_called_class(); }'),
- array('function foo() { return get_called_class(null); }'),
- );
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessStatementPasses($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validStatements()
- {
- return array(
- array('get_class($foo)'),
- array('get_class(bar())'),
- array('get_called_class($foo)'),
- array('get_called_class(bar())'),
- array('function foo($bar) { return get_class($bar); }'),
- array('function foo($bar) { return get_called_class($bar); }'),
- array('class Foo { function bar() { return get_class(); } }'),
- array('class Foo { function bar() { return get_class(null); } }'),
- array('class Foo { function bar() { return get_called_class(); } }'),
- array('class Foo { function bar() { return get_called_class(null); } }'),
- array('$foo = function () {}; $foo()'),
- );
- }
-
- /**
- * @dataProvider validTraitStatements
- */
- public function testProcessTraitStatementPasses($code)
- {
- if (version_compare(PHP_VERSION, '5.4', '<')) {
- $this->markTestSkipped();
- }
-
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validTraitStatements()
- {
- return array(
- array('trait Foo { function bar() { return get_class(); } }'),
- array('trait Foo { function bar() { return get_class(null); } }'),
- array('trait Foo { function bar() { return get_called_class(); } }'),
- array('trait Foo { function bar() { return get_called_class(null); } }'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CodeCleanerTestCase.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CodeCleanerTestCase.php
deleted file mode 100644
index b2f2fcdd..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/CodeCleanerTestCase.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use PhpParser\NodeTraverser;
-use PhpParser\PrettyPrinter\Standard as Printer;
-use Psy\CodeCleaner\CodeCleanerPass;
-use Psy\Exception\ParseErrorException;
-use Psy\ParserFactory;
-
-class CodeCleanerTestCase extends \PHPUnit_Framework_TestCase
-{
- protected $pass;
- protected $traverser;
- private $parser;
- private $printer;
-
- protected function setPass(CodeCleanerPass $pass)
- {
- $this->pass = $pass;
- if (!isset($this->traverser)) {
- $this->traverser = new NodeTraverser();
- }
- $this->traverser->addVisitor($this->pass);
- }
-
- protected function parse($code, $prefix = '<?php ')
- {
- $code = $prefix . $code;
- try {
- return $this->getParser()->parse($code);
- } catch (\PhpParser\Error $e) {
- if (!$this->parseErrorIsEOF($e)) {
- throw ParseErrorException::fromParseError($e);
- }
-
- try {
- // Unexpected EOF, try again with an implicit semicolon
- return $this->getParser()->parse($code . ';');
- } catch (\PhpParser\Error $e) {
- return false;
- }
- }
- }
-
- protected function traverse(array $stmts)
- {
- return $this->traverser->traverse($stmts);
- }
-
- protected function prettyPrint(array $stmts)
- {
- return $this->getPrinter()->prettyPrint($stmts);
- }
-
- protected function assertProcessesAs($from, $to)
- {
- $stmts = $this->parse($from);
- $stmts = $this->traverse($stmts);
- $this->assertEquals($to, $this->prettyPrint($stmts));
- }
-
- private function getParser()
- {
- if (!isset($this->parser)) {
- $parserFactory = new ParserFactory();
- $this->parser = $parserFactory->createParser();
- }
-
- return $this->parser;
- }
-
- private function getPrinter()
- {
- if (!isset($this->printer)) {
- $this->printer = new Printer();
- }
-
- return $this->printer;
- }
-
- private function parseErrorIsEOF(\PhpParser\Error $e)
- {
- $msg = $e->getRawMessage();
-
- return ($msg === 'Unexpected token EOF') || (strpos($msg, 'Syntax error, unexpected EOF') !== false);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ExitPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ExitPassTest.php
deleted file mode 100644
index 61171549..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ExitPassTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\ExitPass;
-
-class ExitPassTest extends CodeCleanerTestCase
-{
- /**
- * @var string
- */
- private $expectedExceptionString = "throw new \\Psy\\Exception\\BreakException('Goodbye.');";
-
- public function setUp()
- {
- $this->setPass(new ExitPass());
- }
-
- /**
- * @dataProvider dataProviderExitStatement
- */
- public function testExitStatement($from, $to)
- {
- $this->assertProcessesAs($from, $to);
- }
-
- /**
- * Data provider for testExitStatement.
- *
- * @return array
- */
- public function dataProviderExitStatement()
- {
- return array(
- array('exit;', $this->expectedExceptionString),
- array('exit();', $this->expectedExceptionString),
- array('die;', $this->expectedExceptionString),
- array('if (true) { exit; }', "if (true) {\n $this->expectedExceptionString\n}"),
- array('if (false) { exit; }', "if (false) {\n $this->expectedExceptionString\n}"),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/FinalClassPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/FinalClassPassTest.php
deleted file mode 100644
index e368fc9e..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/FinalClassPassTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use PhpParser\NodeTraverser;
-use Psy\CodeCleaner\FinalClassPass;
-
-class FinalClassPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->pass = new FinalClassPass();
- $this->traverser = new NodeTraverser();
- $this->traverser->addVisitor($this->pass);
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testProcessStatementFails($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- $stmts = array(
- array('final class A {} class B extends A {}'),
- array('class A {} final class B extends A {} class C extends B {}'),
- // array('namespace A { final class B {} } namespace C { class D extends \\A\\B {} }'),
- );
-
- if (!defined('HHVM_VERSION')) {
- // For some reason Closure isn't final in HHVM?
- $stmts[] = array('class A extends \\Closure {}');
- }
-
- return $stmts;
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessStatementPasses($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validStatements()
- {
- return array(
- array('class A extends \\stdClass {}'),
- array('final class A extends \\stdClass {}'),
- array('class A {} class B extends A {}'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/Fixtures/ClassWithCallStatic.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/Fixtures/ClassWithCallStatic.php
deleted file mode 100644
index f576ebf6..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/Fixtures/ClassWithCallStatic.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner\Fixtures;
-
-class ClassWithCallStatic
-{
- public static function __callStatic($name, $arguments)
- {
- // wheee!
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/Fixtures/ClassWithStatic.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/Fixtures/ClassWithStatic.php
deleted file mode 100644
index 9686392a..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/Fixtures/ClassWithStatic.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner\Fixtures;
-
-class ClassWithStatic
-{
- public static function doStuff()
- {
- // Don't actually do stuff.
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/FunctionReturnInWriteContextPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/FunctionReturnInWriteContextPassTest.php
deleted file mode 100644
index c9069e55..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/FunctionReturnInWriteContextPassTest.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use PhpParser\NodeTraverser;
-use Psy\CodeCleaner\FunctionReturnInWriteContextPass;
-use Psy\Exception\FatalErrorException;
-
-class FunctionReturnInWriteContextPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->pass = new FunctionReturnInWriteContextPass();
- $this->traverser = new NodeTraverser();
- $this->traverser->addVisitor($this->pass);
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\FatalErrorException
- * @expectedExceptionMessage Can't use function return value in write context
- */
- public function testProcessStatementFails($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- return array(
- array('f(&g())'),
- array('array(& $object->method())'),
- array('$a->method(& $closure())'),
- array('array(& A::b())'),
- array('f() = 5'),
- );
- }
-
- public function testIsset()
- {
- try {
- $this->traverser->traverse($this->parse('isset(strtolower("A"))'));
- $this->fail();
- } catch (FatalErrorException $e) {
- if (version_compare(PHP_VERSION, '5.5', '>=')) {
- $this->assertContains(
- 'Cannot use isset() on the result of a function call (you can use "null !== func()" instead)',
- $e->getMessage()
- );
- } else {
- $this->assertContains("Can't use function return value in write context", $e->getMessage());
- }
- }
- }
-
- /**
- * @expectedException \Psy\Exception\FatalErrorException
- * @expectedExceptionMessage Can't use function return value in write context
- */
- public function testEmpty()
- {
- if (version_compare(PHP_VERSION, '5.5', '>=')) {
- $this->markTestSkipped();
- }
-
- $this->traverser->traverse($this->parse('empty(strtolower("A"))'));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ImplicitReturnPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ImplicitReturnPassTest.php
deleted file mode 100644
index e6a1bdfe..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ImplicitReturnPassTest.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\ImplicitReturnPass;
-
-class ImplicitReturnPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->setPass(new ImplicitReturnPass());
- }
-
- /**
- * @dataProvider implicitReturns
- */
- public function testProcess($from, $to)
- {
- $this->assertProcessesAs($from, $to);
- }
-
- public function implicitReturns()
- {
- $values = array(
- array('4', 'return 4;'),
- array('foo()', 'return foo();'),
- array('return 1', 'return 1;'),
- );
-
- $from = 'if (true) { 1; } elseif (true) { 2; } else { 3; }';
- $to = <<<'EOS'
-if (true) {
- return 1;
-} elseif (true) {
- return 2;
-} else {
- return 3;
-}
-return new \Psy\CodeCleaner\NoReturnValue();
-EOS;
- $values[] = array($from, $to);
-
- $from = 'class A {}';
- $to = <<<'EOS'
-class A
-{
-}
-return new \Psy\CodeCleaner\NoReturnValue();
-EOS;
- $values[] = array($from, $to);
-
- $from = <<<'EOS'
-switch (false) {
- case 0:
- 0;
- case 1:
- 1;
- break;
- case 2:
- 2;
- return;
-}
-EOS;
- $to = <<<'EOS'
-switch (false) {
- case 0:
- 0;
- case 1:
- return 1;
- break;
- case 2:
- 2;
- return;
-}
-return new \Psy\CodeCleaner\NoReturnValue();
-EOS;
- $values[] = array($from, $to);
-
- if (version_compare(PHP_VERSION, '5.4', '<')) {
- $values[] = array('exit()', 'die;');
- } else {
- $values[] = array('exit()', 'exit;');
- }
-
- return $values;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/InstanceOfPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/InstanceOfPassTest.php
deleted file mode 100644
index 7fea4e72..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/InstanceOfPassTest.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\InstanceOfPass;
-
-class InstanceOfPassTest extends CodeCleanerTestCase
-{
- protected function setUp()
- {
- $this->setPass(new InstanceOfPass());
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testProcessInvalidStatement($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- return array(
- array('null instanceof stdClass'),
- array('true instanceof stdClass'),
- array('9 instanceof stdClass'),
- array('1.0 instanceof stdClass'),
- array('"foo" instanceof stdClass'),
- array('__DIR__ instanceof stdClass'),
- array('PHP_SAPI instanceof stdClass'),
- array('1+1 instanceof stdClass'),
- array('true && false instanceof stdClass'),
- array('"a"."b" instanceof stdClass'),
- array('!5 instanceof stdClass'),
- );
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessValidStatement($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validStatements()
- {
- $data = array(
- array('$a instanceof stdClass'),
- array('strtolower("foo") instanceof stdClass'),
- array('array(1) instanceof stdClass'),
- array('(string) "foo" instanceof stdClass'),
- array('(1+1) instanceof stdClass'),
- array('"foo ${foo} $bar" instanceof stdClass'),
- array('DateTime::ISO8601 instanceof stdClass'),
- );
-
- return $data;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LeavePsyshAlonePassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LeavePsyshAlonePassTest.php
deleted file mode 100644
index 3311e411..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LeavePsyshAlonePassTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\LeavePsyshAlonePass;
-
-class LeavePsyshAlonePassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->setPass(new LeavePsyshAlonePass());
- }
-
- public function testPassesInlineHtmlThroughJustFine()
- {
- $inline = $this->parse('not php at all!', '');
- $this->traverse($inline);
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessStatementPasses($code)
- {
- $stmts = $this->parse($code);
- $this->traverse($stmts);
- }
-
- public function validStatements()
- {
- return array(
- array('array_merge()'),
- array('__psysh__()'),
- array('$this'),
- array('$psysh'),
- array('$__psysh'),
- array('$banana'),
- );
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\RuntimeException
- */
- public function testProcessStatementFails($code)
- {
- $stmts = $this->parse($code);
- $this->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- return array(
- array('$__psysh__'),
- array('var_dump($__psysh__)'),
- array('$__psysh__ = "your mom"'),
- array('$__psysh__->fakeFunctionCall()'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LegacyEmptyPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LegacyEmptyPassTest.php
deleted file mode 100644
index 8853a911..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LegacyEmptyPassTest.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\LegacyEmptyPass;
-
-class LegacyEmptyPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->setPass(new LegacyEmptyPass());
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\ParseErrorException
- */
- public function testProcessInvalidStatement($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- if (version_compare(PHP_VERSION, '5.5', '>=')) {
- return array(
- array('empty()'),
- );
- }
-
- return array(
- array('empty()'),
- array('empty(null)'),
- array('empty(PHP_EOL)'),
- array('empty("wat")'),
- array('empty(1.1)'),
- array('empty(Foo::$bar)'),
- );
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessValidStatement($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validStatements()
- {
- if (version_compare(PHP_VERSION, '5.5', '<')) {
- return array(
- array('empty($foo)'),
- );
- }
-
- return array(
- array('empty($foo)'),
- array('empty(null)'),
- array('empty(PHP_EOL)'),
- array('empty("wat")'),
- array('empty(1.1)'),
- array('empty(Foo::$bar)'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LoopContextPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LoopContextPassTest.php
deleted file mode 100644
index 9d1c8d99..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/LoopContextPassTest.php
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use PhpParser\NodeTraverser;
-use Psy\CodeCleaner\LoopContextPass;
-
-class LoopContextPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->pass = new LoopContextPass();
- $this->traverser = new NodeTraverser();
- $this->traverser->addVisitor($this->pass);
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testProcessStatementFails($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- return array(
- array('continue'),
- array('break'),
- array('if (true) { continue; }'),
- array('if (true) { break; }'),
- array('if (false) { continue; }'),
- array('if (false) { break; }'),
- array('function foo() { break; }'),
- array('function foo() { continue; }'),
-
- // actually enforce break/continue depth argument
- array('do { break 2; } while (true)'),
- array('do { continue 2; } while (true)'),
- array('for ($a; $b; $c) { break 2; }'),
- array('for ($a; $b; $c) { continue 2; }'),
- array('foreach ($a as $b) { break 2; }'),
- array('foreach ($a as $b) { continue 2; }'),
- array('switch (true) { default: break 2; }'),
- array('switch (true) { default: continue 2; }'),
- array('while (true) { break 2; }'),
- array('while (true) { continue 2; }'),
-
- // invalid in 5.4+ because they're floats
- // ... in 5.3 because the number is too big
- array('while (true) { break 2.0; }'),
- array('while (true) { continue 2.0; }'),
-
- // and once with nested loops, just for good measure
- array('while (true) { while (true) { break 3; } }'),
- array('while (true) { while (true) { continue 3; } }'),
- );
- }
-
- /**
- * @dataProvider invalidPHP54Statements
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testPHP54ProcessStatementFails($code)
- {
- if (version_compare(PHP_VERSION, '5.4.0', '<')) {
- $this->markTestSkipped();
- }
-
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidPHP54Statements()
- {
- return array(
- // In PHP 5.4+, only positive literal integers are allowed
- array('while (true) { break $n; }'),
- array('while (true) { continue $n; }'),
- array('while (true) { break N; }'),
- array('while (true) { continue N; }'),
- array('while (true) { break 0; }'),
- array('while (true) { continue 0; }'),
- array('while (true) { break -1; }'),
- array('while (true) { continue -1; }'),
- array('while (true) { break 1.0; }'),
- array('while (true) { continue 1.0; }'),
- );
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessStatementPasses($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validStatements()
- {
- return array(
- array('do { break; } while (true)'),
- array('do { continue; } while (true)'),
- array('for ($a; $b; $c) { break; }'),
- array('for ($a; $b; $c) { continue; }'),
- array('foreach ($a as $b) { break; }'),
- array('foreach ($a as $b) { continue; }'),
- array('switch (true) { default: break; }'),
- array('switch (true) { default: continue; }'),
- array('while (true) { break; }'),
- array('while (true) { continue; }'),
-
- // `break 1` is redundant, but not invalid
- array('while (true) { break 1; }'),
- array('while (true) { continue 1; }'),
-
- // and once with nested loops just for good measure
- array('while (true) { while (true) { break 2; } }'),
- array('while (true) { while (true) { continue 2; } }'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/MagicConstantsPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/MagicConstantsPassTest.php
deleted file mode 100644
index 1f78e12d..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/MagicConstantsPassTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\MagicConstantsPass;
-
-class MagicConstantsPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->setPass(new MagicConstantsPass());
- }
-
- /**
- * @dataProvider magicConstants
- */
- public function testProcess($from, $to)
- {
- $this->assertProcessesAs($from, $to);
- }
-
- public function magicConstants()
- {
- return array(
- array('__DIR__;', 'getcwd();'),
- array('__FILE__;', "'';"),
- array('___FILE___;', '___FILE___;'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/NamespacePassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/NamespacePassTest.php
deleted file mode 100644
index 553a699a..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/NamespacePassTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner;
-use Psy\CodeCleaner\NamespacePass;
-
-class NamespacePassTest extends CodeCleanerTestCase
-{
- private $cleaner;
-
- public function setUp()
- {
- $this->cleaner = new CodeCleaner();
- $this->setPass(new NamespacePass($this->cleaner));
- }
-
- public function testProcess()
- {
- $this->process('array_merge()');
- $this->assertNull($this->cleaner->getNamespace());
-
- // A non-block namespace statement should set the current namespace.
- $this->process('namespace Alpha');
- $this->assertEquals(array('Alpha'), $this->cleaner->getNamespace());
-
- // A new non-block namespace statement should override the current namespace.
- $this->process('namespace Beta; class B {}');
- $this->assertEquals(array('Beta'), $this->cleaner->getNamespace());
-
- // @todo Figure out if we can detect when the last namespace block is
- // bracketed or unbracketed, because this should really clear the
- // namespace at the end...
- $this->process('namespace Gamma { array_merge(); }');
- $this->assertEquals(array('Gamma'), $this->cleaner->getNamespace());
-
- // A null namespace clears out the current namespace.
- $this->process('namespace { array_merge(); }');
- $this->assertNull($this->cleaner->getNamespace());
- }
-
- private function process($code)
- {
- $stmts = $this->parse($code);
- $this->traverse($stmts);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/PassableByReferencePassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/PassableByReferencePassTest.php
deleted file mode 100644
index b857fd06..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/PassableByReferencePassTest.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use PhpParser\NodeTraverser;
-use Psy\CodeCleaner\PassableByReferencePass;
-
-class PassableByReferencePassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->pass = new PassableByReferencePass();
- $this->traverser = new NodeTraverser();
- $this->traverser->addVisitor($this->pass);
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testProcessStatementFails($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- return array(
- array('array_pop(array())'),
- array('array_pop(array($foo))'),
- array('array_shift(array())'),
- );
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessStatementPasses($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validStatements()
- {
- return array(
- array('array_pop(json_decode("[]"))'),
- array('array_pop($foo)'),
- array('array_pop($foo->bar)'),
- array('array_pop($foo::baz)'),
- array('array_pop(Foo::qux)'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/StaticConstructorPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/StaticConstructorPassTest.php
deleted file mode 100644
index 611fa30a..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/StaticConstructorPassTest.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\StaticConstructorPass;
-
-class StaticConstructorPassTest extends CodeCleanerTestCase
-{
- protected function setUp()
- {
- $this->setPass(new StaticConstructorPass());
- }
-
- /**
- * @dataProvider invalidStatements
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testProcessInvalidStatement($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- /**
- * @dataProvider invalidParserStatements
- * @expectedException \Psy\Exception\ParseErrorException
- */
- public function testProcessInvalidStatementCatchedByParser($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidStatements()
- {
- $statements = array(
- array('class A { public static function A() {}}'),
- array('class A { private static function A() {}}'),
- );
-
- if (version_compare(PHP_VERSION, '5.3.3', '<')) {
- $statements[] = array('namespace B; class A { private static function A() {}}');
- }
-
- return $statements;
- }
-
- public function invalidParserStatements()
- {
- $statements = array(
- array('class A { public static function __construct() {}}'),
- array('class A { private static function __construct() {}}'),
- array('class A { private static function __construct() {} public function A() {}}'),
- array('namespace B; class A { private static function __construct() {}}'),
- );
-
- return $statements;
- }
-
- /**
- * @dataProvider validStatements
- */
- public function testProcessValidStatement($code)
- {
- $stmts = $this->parse($code);
- $this->traverser->traverse($stmts);
- }
-
- public function validStatements()
- {
- $statements = array(
- array('class A { public static function A() {} public function __construct() {}}'),
- array('class A { private function __construct() {} public static function A() {}}'),
- );
-
- if (version_compare(PHP_VERSION, '5.3.3', '>=')) {
- $statements[] = array('namespace B; class A { private static function A() {}}');
- }
-
- return $statements;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/StrictTypesPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/StrictTypesPassTest.php
deleted file mode 100644
index 8458fc01..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/StrictTypesPassTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\StrictTypesPass;
-
-class StrictTypesPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- if (version_compare(PHP_VERSION, '7.0', '<')) {
- $this->markTestSkipped();
- }
-
- $this->setPass(new StrictTypesPass());
- }
-
- public function testProcess()
- {
- $this->assertProcessesAs('declare(strict_types=1)', 'declare (strict_types=1);');
- $this->assertProcessesAs('null', "declare (strict_types=1);\nnull;");
- $this->assertProcessesAs('declare(strict_types=0)', 'declare (strict_types=0);');
- $this->assertProcessesAs('null', 'null;');
- }
-
- /**
- * @dataProvider invalidDeclarations
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testInvalidDeclarations($declaration)
- {
- $stmts = $this->parse($declaration);
- $this->traverser->traverse($stmts);
- }
-
- public function invalidDeclarations()
- {
- return array(
- array('declare(strict_types=-1)'),
- array('declare(strict_types=2)'),
- array('declare(strict_types="foo")'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/UseStatementPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/UseStatementPassTest.php
deleted file mode 100644
index 9c525efe..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/UseStatementPassTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\UseStatementPass;
-
-class UseStatementPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->setPass(new UseStatementPass());
- }
-
- /**
- * @dataProvider useStatements
- */
- public function testProcess($from, $to)
- {
- $this->assertProcessesAs($from, $to);
- }
-
- public function useStatements()
- {
- return array(
- array(
- "use StdClass as NotSoStd;\n\$std = new NotSoStd();",
- '$std = new \\StdClass();',
- ),
- array(
- "namespace Foo;\n\nuse StdClass as S;\n\$std = new S();",
- "namespace Foo;\n\n\$std = new \\StdClass();",
- ),
- array(
- "namespace Foo;\n\nuse \\StdClass as S;\n\$std = new S();",
- "namespace Foo;\n\n\$std = new \\StdClass();",
- ),
- array(
- "use Foo\\Bar as fb;\n\$baz = new fb\\Baz();",
- '$baz = new \\Foo\\Bar\\Baz();',
- ),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidClassNamePassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidClassNamePassTest.php
deleted file mode 100644
index 06ad4e22..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidClassNamePassTest.php
+++ /dev/null
@@ -1,333 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\ValidClassNamePass;
-use Psy\Exception\Exception;
-
-class ValidClassNamePassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->setPass(new ValidClassNamePass());
- }
-
- /**
- * @dataProvider getInvalid
- */
- public function testProcessInvalid($code, $php54 = false)
- {
- try {
- $stmts = $this->parse($code);
- $this->traverse($stmts);
- $this->fail();
- } catch (Exception $e) {
- if ($php54 && version_compare(PHP_VERSION, '5.4', '<')) {
- $this->assertInstanceOf('Psy\Exception\ParseErrorException', $e);
- } else {
- $this->assertInstanceOf('Psy\Exception\FatalErrorException', $e);
- }
- }
- }
-
- public function getInvalid()
- {
- // class declarations
- return array(
- // core class
- array('class stdClass {}'),
- // capitalization
- array('class stdClass {}'),
-
- // collisions with interfaces and traits
- array('interface stdClass {}'),
- array('trait stdClass {}', true),
-
- // collisions inside the same code snippet
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- class Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- '),
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- trait Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- ', true),
- array('
- trait Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- class Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- ', true),
- array('
- trait Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- interface Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- ', true),
- array('
- interface Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- trait Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- ', true),
- array('
- interface Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- class Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- '),
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- interface Psy_Test_CodeCleaner_ValidClassNamePass_Alpha {}
- '),
-
- // namespaced collisions
- array('
- namespace Psy\\Test\\CodeCleaner {
- class ValidClassNamePassTest {}
- }
- '),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidClassNamePass {
- class Beta {}
- }
- namespace Psy\\Test\\CodeCleaner\\ValidClassNamePass {
- class Beta {}
- }
- '),
-
- // extends and implements
- array('class ValidClassNamePassTest extends NotAClass {}'),
- array('class ValidClassNamePassTest extends ArrayAccess {}'),
- array('class ValidClassNamePassTest implements stdClass {}'),
- array('class ValidClassNamePassTest implements ArrayAccess, stdClass {}'),
- array('interface ValidClassNamePassTest extends stdClass {}'),
- array('interface ValidClassNamePassTest extends ArrayAccess, stdClass {}'),
-
- // class instantiations
- array('new Psy_Test_CodeCleaner_ValidClassNamePass_Gamma();'),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidClassNamePass {
- new Psy_Test_CodeCleaner_ValidClassNamePass_Delta();
- }
- '),
-
- // class constant fetch
- array('Psy\\Test\\CodeCleaner\\ValidClassNamePass\\NotAClass::FOO'),
-
- // static call
- array('Psy\\Test\\CodeCleaner\\ValidClassNamePass\\NotAClass::foo()'),
- array('Psy\\Test\\CodeCleaner\\ValidClassNamePass\\NotAClass::$foo()'),
- );
- }
-
- /**
- * @dataProvider getValid
- */
- public function testProcessValid($code)
- {
- $stmts = $this->parse($code);
- $this->traverse($stmts);
- }
-
- public function getValid()
- {
- $valid = array(
- // class declarations
- array('class Psy_Test_CodeCleaner_ValidClassNamePass_Epsilon {}'),
- array('namespace Psy\Test\CodeCleaner\ValidClassNamePass; class Zeta {}'),
- array('
- namespace { class Psy_Test_CodeCleaner_ValidClassNamePass_Eta {}; }
- namespace Psy\\Test\\CodeCleaner\\ValidClassNamePass {
- class Psy_Test_CodeCleaner_ValidClassNamePass_Eta {}
- }
- '),
- array('namespace Psy\Test\CodeCleaner\ValidClassNamePass { class stdClass {} }'),
-
- // class instantiations
- array('new stdClass();'),
- array('new stdClass();'),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidClassNamePass {
- class Theta {}
- }
- namespace Psy\\Test\\CodeCleaner\\ValidClassNamePass {
- new Theta();
- }
- '),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidClassNamePass {
- class Iota {}
- new Iota();
- }
- '),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidClassNamePass {
- class Kappa {}
- }
- namespace {
- new \\Psy\\Test\\CodeCleaner\\ValidClassNamePass\\Kappa();
- }
- '),
-
- // Class constant fetch (ValidConstantPassTest validates the actual constant)
- array('class A {} A::FOO'),
- array('$a = new DateTime; $a::ATOM'),
- array('interface A { const B = 1; } A::B'),
-
- // static call
- array('DateTime::createFromFormat()'),
- array('DateTime::$someMethod()'),
- array('Psy\Test\CodeCleaner\Fixtures\ClassWithStatic::doStuff()'),
- array('Psy\Test\CodeCleaner\Fixtures\ClassWithCallStatic::doStuff()'),
-
- // Allow `self` and `static` as class names.
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_ClassWithStatic {
- public static function getInstance() {
- return new self();
- }
- }
- '),
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_ClassWithStatic {
- public static function getInstance() {
- return new SELF();
- }
- }
- '),
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_ClassWithStatic {
- public static function getInstance() {
- return new self;
- }
- }
- '),
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_ClassWithStatic {
- public static function getInstance() {
- return new static();
- }
- }
- '),
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_ClassWithStatic {
- public static function getInstance() {
- return new Static();
- }
- }
- '),
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_ClassWithStatic {
- public static function getInstance() {
- return new static;
- }
- }
- '),
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_ClassWithStatic {
- public static function foo() {
- return parent::bar();
- }
- }
- '),
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_ClassWithStatic {
- public static function foo() {
- return self::bar();
- }
- }
- '),
- array('
- class Psy_Test_CodeCleaner_ValidClassNamePass_ClassWithStatic {
- public static function foo() {
- return static::bar();
- }
- }
- '),
-
- array('class A { static function b() { return new A; } }'),
- array('
- class A {
- const B = 123;
- function c() {
- return A::B;
- }
- }
- '),
- array('class A {} class B { function c() { return new A; } }'),
-
- // recursion
- array('class A { function a() { A::a(); } }'),
-
- // conditionally defined classes
- array('
- class A {}
- if (false) {
- class A {}
- }
- '),
- array('
- class A {}
- if (true) {
- class A {}
- } else if (false) {
- class A {}
- } else {
- class A {}
- }
- '),
- // ewww
- array('
- class A {}
- if (true):
- class A {}
- elseif (false):
- class A {}
- else:
- class A {}
- endif;
- '),
- array('
- class A {}
- while (false) { class A {} }
- '),
- array('
- class A {}
- do { class A {} } while (false);
- '),
- array('
- class A {}
- switch (1) {
- case 0:
- class A {}
- break;
- case 1:
- class A {}
- break;
- case 2:
- class A {}
- break;
- }
- '),
- );
-
- // Ugh. There's gotta be a better way to test for this.
- if (class_exists('PhpParser\ParserFactory')) {
- // PHP 7.0 anonymous classes, only supported by PHP Parser v2.x
- $valid[] = array('$obj = new class() {}');
- }
-
- if (version_compare(PHP_VERSION, '5.5', '>=')) {
- $valid[] = array('interface A {} A::class');
- $valid[] = array('interface A {} A::CLASS');
- $valid[] = array('class A {} A::class');
- $valid[] = array('class A {} A::CLASS');
- $valid[] = array('A::class');
- $valid[] = array('A::CLASS');
- }
-
- return $valid;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidConstantPassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidConstantPassTest.php
deleted file mode 100644
index 2d77c893..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidConstantPassTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\ValidConstantPass;
-
-class ValidConstantPassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->setPass(new ValidConstantPass());
- }
-
- /**
- * @dataProvider getInvalidReferences
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testProcessInvalidConstantReferences($code)
- {
- $stmts = $this->parse($code);
- $this->traverse($stmts);
- }
-
- public function getInvalidReferences()
- {
- return array(
- array('Foo\BAR'),
-
- // class constant fetch
- array('Psy\Test\CodeCleaner\ValidConstantPassTest::FOO'),
- array('DateTime::BACON'),
- );
- }
-
- /**
- * @dataProvider getValidReferences
- */
- public function testProcessValidConstantReferences($code)
- {
- $stmts = $this->parse($code);
- $this->traverse($stmts);
- }
-
- public function getValidReferences()
- {
- return array(
- array('PHP_EOL'),
-
- // class constant fetch
- array('NotAClass::FOO'),
- array('DateTime::ATOM'),
- array('$a = new DateTime; $a::ATOM'),
- array('DateTime::class'),
- array('$a = new DateTime; $a::class'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidFunctionNamePassTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidFunctionNamePassTest.php
deleted file mode 100644
index 1f2b8fbf..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleaner/ValidFunctionNamePassTest.php
+++ /dev/null
@@ -1,181 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\CodeCleaner;
-
-use Psy\CodeCleaner\ValidFunctionNamePass;
-
-class ValidFunctionNamePassTest extends CodeCleanerTestCase
-{
- public function setUp()
- {
- $this->setPass(new ValidFunctionNamePass());
- }
-
- /**
- * @dataProvider getInvalidFunctions
- * @expectedException \Psy\Exception\FatalErrorException
- */
- public function testProcessInvalidFunctionCallsAndDeclarations($code)
- {
- $stmts = $this->parse($code);
- $this->traverse($stmts);
- }
-
- public function getInvalidFunctions()
- {
- return array(
- // function declarations
- array('function array_merge() {}'),
- array('function Array_Merge() {}'),
- array('
- function psy_test_codecleaner_validfunctionnamepass_alpha() {}
- function psy_test_codecleaner_validfunctionnamepass_alpha() {}
- '),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass {
- function beta() {}
- }
- namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass {
- function beta() {}
- }
- '),
-
- // function calls
- array('psy_test_codecleaner_validfunctionnamepass_gamma()'),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass {
- delta();
- }
- '),
-
- // recursion
- array('function a() { a(); } function a() {}'),
- );
- }
-
- /**
- * @dataProvider getValidFunctions
- */
- public function testProcessValidFunctionCallsAndDeclarations($code)
- {
- $stmts = $this->parse($code);
- $this->traverse($stmts);
- }
-
- public function getValidFunctions()
- {
- return array(
- array('function psy_test_codecleaner_validfunctionnamepass_epsilon() {}'),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass {
- function zeta() {}
- }
- '),
- array('
- namespace {
- function psy_test_codecleaner_validfunctionnamepass_eta() {}
- }
- namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass {
- function psy_test_codecleaner_validfunctionnamepass_eta() {}
- }
- '),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass {
- function psy_test_codecleaner_validfunctionnamepass_eta() {}
- }
- namespace {
- function psy_test_codecleaner_validfunctionnamepass_eta() {}
- }
- '),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass {
- function array_merge() {}
- }
- '),
-
- // function calls
- array('array_merge();'),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass {
- function theta() {}
- }
- namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass {
- theta();
- }
- '),
- // closures
- array('$test = function(){};$test()'),
- array('
- namespace Psy\\Test\\CodeCleaner\\ValidFunctionNamePass {
- function theta() {}
- }
- namespace {
- Psy\\Test\\CodeCleaner\\ValidFunctionNamePass\\theta();
- }
- '),
-
- // recursion
- array('function a() { a(); }'),
-
- // conditionally defined functions
- array('
- function a() {}
- if (false) {
- function a() {}
- }
- '),
- array('
- function a() {}
- if (true) {
- function a() {}
- } else if (false) {
- function a() {}
- } else {
- function a() {}
- }
- '),
- // ewww
- array('
- function a() {}
- if (true):
- function a() {}
- elseif (false):
- function a() {}
- else:
- function a() {}
- endif;
- '),
- array('
- function a() {}
- while (false) { function a() {} }
- '),
- array('
- function a() {}
- do { function a() {} } while (false);
- '),
- array('
- function a() {}
- switch (1) {
- case 0:
- function a() {}
- break;
- case 1:
- function a() {}
- break;
- case 2:
- function a() {}
- break;
- }
- '),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleanerTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleanerTest.php
deleted file mode 100644
index 3200ac0c..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/CodeCleanerTest.php
+++ /dev/null
@@ -1,128 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test;
-
-use Psy\CodeCleaner;
-
-class CodeCleanerTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider semicolonCodeProvider
- */
- public function testAutomaticSemicolons(array $lines, $requireSemicolons, $expected)
- {
- $cc = new CodeCleaner();
- $this->assertEquals($expected, $cc->clean($lines, $requireSemicolons));
- }
-
- public function semicolonCodeProvider()
- {
- $values = array(
- array(array('true'), false, 'return true;'),
- array(array('true;'), false, 'return true;'),
- array(array('true;'), true, 'return true;'),
- array(array('true'), true, false),
-
- array(array('echo "foo";', 'true'), true, false),
- );
-
- if (version_compare(PHP_VERSION, '5.4', '<')) {
- $values[] = array(array('echo "foo";', 'true'), false, "echo 'foo';\nreturn true;");
- } else {
- $values[] = array(array('echo "foo";', 'true'), false, "echo \"foo\";\nreturn true;");
- }
-
- return $values;
- }
-
- /**
- * @dataProvider unclosedStatementsProvider
- */
- public function testUnclosedStatements(array $lines, $isUnclosed)
- {
- $cc = new CodeCleaner();
- $res = $cc->clean($lines);
-
- if ($isUnclosed) {
- $this->assertFalse($res);
- } else {
- $this->assertNotFalse($res);
- }
- }
-
- public function unclosedStatementsProvider()
- {
- return array(
- array(array('echo "'), true),
- array(array('echo \''), true),
- array(array('if (1) {'), true),
-
- array(array('echo ""'), false),
- array(array("echo ''"), false),
- array(array('if (1) {}'), false),
-
- array(array('// closed comment'), false),
- array(array('function foo() { /**'), true),
- );
- }
-
- /**
- * @dataProvider moreUnclosedStatementsProvider
- */
- public function testMoreUnclosedStatements(array $lines)
- {
- if (defined('HHVM_VERSION')) {
- $this->markTestSkipped('HHVM not supported.');
- }
-
- $cc = new CodeCleaner();
- $res = $cc->clean($lines);
-
- $this->assertFalse($res);
- }
-
- public function moreUnclosedStatementsProvider()
- {
- return array(
- array(array("\$content = <<<EOS\n")),
- array(array("\$content = <<<'EOS'\n")),
-
- array(array('/* unclosed comment')),
- array(array('/** unclosed comment')),
- );
- }
-
- /**
- * @dataProvider invalidStatementsProvider
- * @expectedException \Psy\Exception\ParseErrorException
- */
- public function testInvalidStatementsThrowParseErrors($code)
- {
- $cc = new CodeCleaner();
- $cc->clean(array($code));
- }
-
- public function invalidStatementsProvider()
- {
- return array(
- array('function "what'),
- array("function 'what"),
- array('echo }'),
- array('echo {'),
- array('if (1) }'),
- array('echo """'),
- array("echo '''"),
- array('$foo "bar'),
- array('$foo \'bar'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/ConfigurationTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/ConfigurationTest.php
deleted file mode 100644
index 99604a6d..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/ConfigurationTest.php
+++ /dev/null
@@ -1,262 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test;
-
-use Psy\CodeCleaner;
-use Psy\Configuration;
-use Psy\ExecutionLoop\Loop;
-use Psy\Output\PassthruPager;
-use Psy\VersionUpdater\GitHubChecker;
-use Symfony\Component\Console\Output\ConsoleOutput;
-
-class ConfigurationTest extends \PHPUnit_Framework_TestCase
-{
- private function getConfig($configFile = null)
- {
- return new Configuration(array(
- 'configFile' => $configFile ?: __DIR__ . '/../../fixtures/empty.php',
- ));
- }
-
- public function testDefaults()
- {
- $config = $this->getConfig();
-
- $this->assertEquals(function_exists('readline'), $config->hasReadline());
- $this->assertEquals(function_exists('readline'), $config->useReadline());
- $this->assertEquals(function_exists('pcntl_signal'), $config->hasPcntl());
- $this->assertEquals(function_exists('pcntl_signal'), $config->usePcntl());
- $this->assertFalse($config->requireSemicolons());
- $this->assertSame(Configuration::COLOR_MODE_AUTO, $config->colorMode());
- $this->assertNull($config->getStartupMessage());
- }
-
- public function testGettersAndSetters()
- {
- $config = $this->getConfig();
-
- $this->assertNull($config->getDataDir());
- $config->setDataDir('wheee');
- $this->assertEquals('wheee', $config->getDataDir());
-
- $this->assertNull($config->getConfigDir());
- $config->setConfigDir('wheee');
- $this->assertEquals('wheee', $config->getConfigDir());
- }
-
- /**
- * @dataProvider directories
- */
- public function testFilesAndDirectories($home, $configFile, $historyFile, $manualDbFile)
- {
- $oldHome = getenv('HOME');
- putenv("HOME=$home");
-
- $config = new Configuration();
- $this->assertEquals(realpath($configFile), realpath($config->getConfigFile()));
- $this->assertEquals(realpath($historyFile), realpath($config->getHistoryFile()));
- $this->assertEquals(realpath($manualDbFile), realpath($config->getManualDbFile()));
-
- putenv("HOME=$oldHome");
- }
-
- public function directories()
- {
- $base = realpath(__DIR__ . '/../../fixtures');
-
- return array(
- array(
- $base . '/default',
- $base . '/default/.config/psysh/config.php',
- $base . '/default/.config/psysh/psysh_history',
- $base . '/default/.local/share/psysh/php_manual.sqlite',
- ),
- array(
- $base . '/legacy',
- $base . '/legacy/.psysh/rc.php',
- $base . '/legacy/.psysh/history',
- $base . '/legacy/.psysh/php_manual.sqlite',
- ),
- array(
- $base . '/mixed',
- $base . '/mixed/.psysh/config.php',
- $base . '/mixed/.psysh/psysh_history',
- null,
- ),
- );
- }
-
- public function testLoadConfig()
- {
- $config = $this->getConfig();
- $cleaner = new CodeCleaner();
- $pager = new PassthruPager(new ConsoleOutput());
- $loop = new Loop($config);
-
- $config->loadConfig(array(
- 'useReadline' => false,
- 'usePcntl' => false,
- 'codeCleaner' => $cleaner,
- 'pager' => $pager,
- 'loop' => $loop,
- 'requireSemicolons' => true,
- 'errorLoggingLevel' => E_ERROR | E_WARNING,
- 'colorMode' => Configuration::COLOR_MODE_FORCED,
- 'startupMessage' => 'Psysh is awesome!',
- ));
-
- $this->assertFalse($config->useReadline());
- $this->assertFalse($config->usePcntl());
- $this->assertSame($cleaner, $config->getCodeCleaner());
- $this->assertSame($pager, $config->getPager());
- $this->assertSame($loop, $config->getLoop());
- $this->assertTrue($config->requireSemicolons());
- $this->assertEquals(E_ERROR | E_WARNING, $config->errorLoggingLevel());
- $this->assertSame(Configuration::COLOR_MODE_FORCED, $config->colorMode());
- $this->assertSame('Psysh is awesome!', $config->getStartupMessage());
- }
-
- public function testLoadConfigFile()
- {
- $config = $this->getConfig(__DIR__ . '/../../fixtures/config.php');
-
- $runtimeDir = $this->joinPath(realpath(sys_get_temp_dir()), 'psysh_test', 'withconfig', 'temp');
-
- $this->assertStringStartsWith($runtimeDir, realpath($config->getTempFile('foo', 123)));
- $this->assertStringStartsWith($runtimeDir, realpath(dirname($config->getPipe('pipe', 123))));
- $this->assertStringStartsWith($runtimeDir, realpath($config->getRuntimeDir()));
-
- $this->assertEquals(function_exists('readline'), $config->useReadline());
- $this->assertFalse($config->usePcntl());
- $this->assertEquals(E_ALL & ~E_NOTICE, $config->errorLoggingLevel());
- }
-
- public function testLoadLocalConfigFile()
- {
- $oldPwd = getenv('PWD');
- putenv('PWD=' . realpath(__DIR__ . '/../../fixtures/project/'));
-
- $config = new Configuration();
-
- // When no configuration file is specified local project config is merged
- $this->assertFalse($config->useReadline());
- $this->assertTrue($config->usePcntl());
-
- $config = new Configuration(array('configFile' => __DIR__ . '/../../fixtures/config.php'));
-
- // Defining a configuration file skips loading local project config
- $this->assertTrue($config->useReadline());
- $this->assertFalse($config->usePcntl());
-
- putenv("PWD=$oldPwd");
- }
-
- /**
- * @expectedException \Psy\Exception\DeprecatedException
- */
- public function testBaseDirConfigIsDeprecated()
- {
- $config = new Configuration(array('baseDir' => 'fake'));
- }
-
- private function joinPath()
- {
- return implode(DIRECTORY_SEPARATOR, func_get_args());
- }
-
- public function testConfigIncludes()
- {
- $config = new Configuration(array(
- 'defaultIncludes' => array('/file.php'),
- 'configFile' => __DIR__ . '/../../fixtures/empty.php',
- ));
-
- $includes = $config->getDefaultIncludes();
- $this->assertCount(1, $includes);
- $this->assertEquals('/file.php', $includes[0]);
- }
-
- public function testGetOutput()
- {
- $config = $this->getConfig();
- $output = $config->getOutput();
-
- $this->assertInstanceOf('\Psy\Output\ShellOutput', $output);
- }
-
- public function getOutputDecoratedProvider()
- {
- return array(
- 'auto' => array(
- null,
- Configuration::COLOR_MODE_AUTO,
- ),
- 'forced' => array(
- true,
- Configuration::COLOR_MODE_FORCED,
- ),
- 'disabled' => array(
- false,
- Configuration::COLOR_MODE_DISABLED,
- ),
- );
- }
-
- /** @dataProvider getOutputDecoratedProvider */
- public function testGetOutputDecorated($expectation, $colorMode)
- {
- $config = $this->getConfig();
- $config->setColorMode($colorMode);
-
- $this->assertSame($expectation, $config->getOutputDecorated());
- }
-
- public function setColorModeValidProvider()
- {
- return array(
- 'auto' => array(Configuration::COLOR_MODE_AUTO),
- 'forced' => array(Configuration::COLOR_MODE_FORCED),
- 'disabled' => array(Configuration::COLOR_MODE_DISABLED),
- );
- }
-
- /** @dataProvider setColorModeValidProvider */
- public function testSetColorModeValid($colorMode)
- {
- $config = $this->getConfig();
- $config->setColorMode($colorMode);
-
- $this->assertEquals($colorMode, $config->colorMode());
- }
-
- public function testSetColorModeInvalid()
- {
- $config = $this->getConfig();
- $colorMode = 'some invalid mode';
-
- $this->setExpectedException(
- '\InvalidArgumentException',
- 'invalid color mode: some invalid mode'
- );
- $config->setColorMode($colorMode);
- }
-
- public function testSetCheckerValid()
- {
- $config = $this->getConfig();
- $checker = new GitHubChecker();
-
- $config->setChecker($checker);
-
- $this->assertSame($checker, $config->getChecker());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/ConsoleColorFactoryTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/ConsoleColorFactoryTest.php
deleted file mode 100644
index 9e9ced7e..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/ConsoleColorFactoryTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test;
-
-use Psy\Configuration;
-use Psy\ConsoleColorFactory;
-
-class ConsoleColorFactoryTest extends \PHPUnit_Framework_TestCase
-{
- public function testGetConsoleColorAuto()
- {
- $colorMode = Configuration::COLOR_MODE_AUTO;
- $factory = new ConsoleColorFactory($colorMode);
- $colors = $factory->getConsoleColor();
- $themes = $colors->getThemes();
-
- $this->assertFalse($colors->isStyleForced());
- $this->assertEquals(array('blue'), $themes['line_number']);
- }
-
- public function testGetConsoleColorForced()
- {
- $colorMode = Configuration::COLOR_MODE_FORCED;
- $factory = new ConsoleColorFactory($colorMode);
- $colors = $factory->getConsoleColor();
- $themes = $colors->getThemes();
-
- $this->assertTrue($colors->isStyleForced());
- $this->assertEquals(array('blue'), $themes['line_number']);
- }
-
- public function testGetConsoleColorDisabled()
- {
- $colorMode = Configuration::COLOR_MODE_DISABLED;
- $factory = new ConsoleColorFactory($colorMode);
- $colors = $factory->getConsoleColor();
- $themes = $colors->getThemes();
-
- $this->assertFalse($colors->isStyleForced());
- $this->assertEquals(array('none'), $themes['line_number']);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/BreakExceptionTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/BreakExceptionTest.php
deleted file mode 100644
index 75f5e5d8..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/BreakExceptionTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Exception;
-
-use Psy\Exception\BreakException;
-use Psy\Exception\Exception;
-
-class BreakExceptionTest extends \PHPUnit_Framework_TestCase
-{
- public function testInstance()
- {
- $e = new BreakException();
-
- $this->assertTrue($e instanceof Exception);
- $this->assertTrue($e instanceof BreakException);
- }
-
- public function testMessage()
- {
- $e = new BreakException('foo');
-
- $this->assertContains('foo', $e->getMessage());
- $this->assertEquals('foo', $e->getRawMessage());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/ErrorExceptionTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/ErrorExceptionTest.php
deleted file mode 100644
index f4ca54f2..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/ErrorExceptionTest.php
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Exception;
-
-use Psy\Exception\ErrorException;
-use Psy\Exception\Exception;
-
-class ErrorExceptionTest extends \PHPUnit_Framework_TestCase
-{
- public function testInstance()
- {
- $e = new ErrorException();
-
- $this->assertTrue($e instanceof Exception);
- $this->assertTrue($e instanceof \ErrorException);
- $this->assertTrue($e instanceof ErrorException);
- }
-
- public function testMessage()
- {
- $e = new ErrorException('foo');
-
- $this->assertContains('foo', $e->getMessage());
- $this->assertEquals('foo', $e->getRawMessage());
- }
-
- /**
- * @dataProvider getLevels
- */
- public function testErrorLevels($level, $type)
- {
- $e = new ErrorException('foo', 0, $level);
- $this->assertContains('PHP ' . $type, $e->getMessage());
- }
-
- /**
- * @dataProvider getLevels
- */
- public function testThrowException($level, $type)
- {
- try {
- ErrorException::throwException($level, '{whot}', '{file}', '13');
- } catch (ErrorException $e) {
- $this->assertContains('PHP ' . $type, $e->getMessage());
- $this->assertContains('{whot}', $e->getMessage());
- $this->assertContains('in {file}', $e->getMessage());
- $this->assertContains('on line 13', $e->getMessage());
- }
- }
-
- public function getLevels()
- {
- return array(
- array(E_WARNING, 'warning'),
- array(E_CORE_WARNING, 'warning'),
- array(E_COMPILE_WARNING, 'warning'),
- array(E_USER_WARNING, 'warning'),
- array(E_STRICT, 'Strict error'),
- array(0, 'error'),
- );
- }
-
- /**
- * @dataProvider getUserLevels
- */
- public function testThrowExceptionAsErrorHandler($level, $type)
- {
- set_error_handler(array('Psy\Exception\ErrorException', 'throwException'));
- try {
- trigger_error('{whot}', $level);
- } catch (ErrorException $e) {
- $this->assertContains('PHP ' . $type, $e->getMessage());
- $this->assertContains('{whot}', $e->getMessage());
- }
- restore_error_handler();
- }
-
- public function getUserLevels()
- {
- return array(
- array(E_USER_ERROR, 'error'),
- array(E_USER_WARNING, 'warning'),
- array(E_USER_NOTICE, 'error'),
- array(E_USER_DEPRECATED, 'error'),
- );
- }
-
- public function testIgnoreExecutionLoopFilename()
- {
- $e = new ErrorException('{{message}}', 0, 1, '/fake/path/to/Psy/ExecutionLoop/Loop.php');
- $this->assertEmpty($e->getFile());
-
- $e = new ErrorException('{{message}}', 0, 1, 'c:\fake\path\to\Psy\ExecutionLoop\Loop.php');
- $this->assertEmpty($e->getFile());
-
- $e = new ErrorException('{{message}}', 0, 1, '/fake/path/to/Psy/File.php');
- $this->assertNotEmpty($e->getFile());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/FatalErrorExceptionTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/FatalErrorExceptionTest.php
deleted file mode 100644
index 2a443ca4..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/FatalErrorExceptionTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Exception;
-
-use Psy\Exception\Exception;
-use Psy\Exception\FatalErrorException;
-
-class FatalErrorExceptionTest extends \PHPUnit_Framework_TestCase
-{
- public function testInstance()
- {
- $e = new FatalErrorException();
-
- $this->assertTrue($e instanceof Exception);
- $this->assertTrue($e instanceof \ErrorException);
- $this->assertTrue($e instanceof FatalErrorException);
- }
-
- public function testMessage()
- {
- $e = new FatalErrorException('{msg}', 0, 0, '{filename}', 13);
-
- $this->assertEquals('{msg}', $e->getRawMessage());
- $this->assertContains('{msg}', $e->getMessage());
- $this->assertContains('{filename}', $e->getMessage());
- $this->assertContains('line 13', $e->getMessage());
- }
-
- public function testMessageWithNoFilename()
- {
- $e = new FatalErrorException('{msg}');
-
- $this->assertEquals('{msg}', $e->getRawMessage());
- $this->assertContains('{msg}', $e->getMessage());
- $this->assertContains('eval()\'d code', $e->getMessage());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/ParseErrorExceptionTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/ParseErrorExceptionTest.php
deleted file mode 100644
index c6810025..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/ParseErrorExceptionTest.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Exception;
-
-use Psy\Exception\Exception;
-use Psy\Exception\ParseErrorException;
-
-class ParseErrorExceptionTest extends \PHPUnit_Framework_TestCase
-{
- public function testInstance()
- {
- $e = new ParseErrorException();
-
- $this->assertTrue($e instanceof Exception);
- $this->assertTrue($e instanceof \PhpParser\Error);
- $this->assertTrue($e instanceof ParseErrorException);
- }
-
- public function testMessage()
- {
- $e = new ParseErrorException('{msg}', 1);
-
- $this->assertContains('{msg}', $e->getMessage());
- $this->assertContains('PHP Parse error:', $e->getMessage());
- }
-
- public function testConstructFromParseError()
- {
- $e = ParseErrorException::fromParseError(new \PhpParser\Error('{msg}'));
-
- $this->assertContains('{msg}', $e->getRawMessage());
- $this->assertContains('PHP Parse error:', $e->getMessage());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/RuntimeExceptionTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/RuntimeExceptionTest.php
deleted file mode 100644
index c1eb5e19..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Exception/RuntimeExceptionTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Exception;
-
-use Psy\Exception\Exception;
-use Psy\Exception\RuntimeException;
-
-class RuntimeExceptionTest extends \PHPUnit_Framework_TestCase
-{
- public function testException()
- {
- $msg = 'bananas';
- $e = new RuntimeException($msg);
-
- $this->assertTrue($e instanceof Exception);
- $this->assertTrue($e instanceof \RuntimeException);
- $this->assertTrue($e instanceof RuntimeException);
-
- $this->assertEquals($msg, $e->getMessage());
- $this->assertEquals($msg, $e->getRawMessage());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/CodeFormatterTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/CodeFormatterTest.php
deleted file mode 100644
index aa028715..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/CodeFormatterTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Formatter;
-
-use Psy\Formatter\CodeFormatter;
-
-class CodeFormatterTest extends \PHPUnit_Framework_TestCase
-{
- private function ignoreThisMethod($arg)
- {
- echo 'whot!';
- }
-
- public function testFormat()
- {
- $expected = <<<'EOS'
- > 18| private function ignoreThisMethod($arg)
- 19| {
- 20| echo 'whot!';
- 21| }
-EOS;
-
- $formatted = CodeFormatter::format(new \ReflectionMethod($this, 'ignoreThisMethod'));
- $formattedWithoutColors = preg_replace('#' . chr(27) . '\[\d\d?m#', '', $formatted);
-
- $this->assertEquals($expected, rtrim($formattedWithoutColors));
- $this->assertNotEquals($expected, rtrim($formatted));
- }
-
- /**
- * @dataProvider filenames
- * @expectedException \Psy\Exception\RuntimeException
- */
- public function testCodeFormatterThrowsException($filename)
- {
- $reflector = $this->getMockBuilder('ReflectionClass')
- ->disableOriginalConstructor()
- ->getMock();
-
- $reflector
- ->expects($this->once())
- ->method('getFileName')
- ->will($this->returnValue($filename));
-
- CodeFormatter::format($reflector);
- }
-
- public function filenames()
- {
- return array(array(null), array('not a file'));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/DocblockFormatterTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/DocblockFormatterTest.php
deleted file mode 100644
index 3a736d7c..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/DocblockFormatterTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Formatter;
-
-use Psy\Formatter\DocblockFormatter;
-
-class DocblockFormatterTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * This is a docblock!
- *
- * @author Justin Hileman <justin@justinhileman.info>
- *
- * @throws InvalidArgumentException if $foo is empty
- *
- * @param mixed $foo It's a foo thing
- * @param int $bar This is definitely bar
- *
- * @return string A string of no consequence
- */
- private function methodWithDocblock($foo, $bar = 1)
- {
- if (empty($foo)) {
- throw new \InvalidArgumentException();
- }
-
- return 'method called';
- }
-
- public function testFormat()
- {
- $expected = <<<EOS
-<comment>Description:</comment>
- This is a docblock!
-
-<comment>Throws:</comment>
- <info>InvalidArgumentException </info> if \$foo is empty
-
-<comment>Param:</comment>
- <info>mixed </info> <strong>\$foo </strong> It's a foo thing
- <info>int </info> <strong>\$bar </strong> This is definitely bar
-
-<comment>Return:</comment>
- <info>string </info> A string of no consequence
-
-<comment>Author:</comment> Justin Hileman \<justin@justinhileman.info>
-EOS;
-
- $this->assertEquals(
- $expected,
- DocblockFormatter::format(new \ReflectionMethod($this, 'methodWithDocblock'))
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/SignatureFormatterTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/SignatureFormatterTest.php
deleted file mode 100644
index 0ceb5b47..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Formatter/SignatureFormatterTest.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Formatter;
-
-use Psy\Formatter\SignatureFormatter;
-use Psy\Reflection\ReflectionConstant;
-
-class SignatureFormatterTest extends \PHPUnit_Framework_TestCase
-{
- const FOO = 'foo value';
- private static $bar = 'bar value';
-
- private function someFakeMethod(array $one, $two = 'TWO', \Reflector $three = null)
- {
- }
-
- /**
- * @dataProvider signatureReflectors
- */
- public function testFormat($reflector, $expected)
- {
- $this->assertEquals($expected, strip_tags(SignatureFormatter::format($reflector)));
- }
-
- public function signatureReflectors()
- {
- return array(
- array(
- new \ReflectionClass($this),
- "class Psy\Test\Formatter\SignatureFormatterTest "
- . 'extends PHPUnit_Framework_TestCase implements '
- . 'Countable, PHPUnit_Framework_SelfDescribing, '
- . 'PHPUnit_Framework_Test',
- ),
- array(
- new \ReflectionFunction('implode'),
- defined('HHVM_VERSION') ? 'function implode($arg1, $arg2 = null)' : 'function implode($glue, $pieces)',
- ),
- array(
- new ReflectionConstant($this, 'FOO'),
- 'const FOO = "foo value"',
- ),
- array(
- new \ReflectionMethod($this, 'someFakeMethod'),
- 'private function someFakeMethod(array $one, $two = \'TWO\', Reflector $three = null)',
- ),
- array(
- new \ReflectionProperty($this, 'bar'),
- 'private static $bar',
- ),
- array(
- new \ReflectionClass('Psy\CodeCleaner\CodeCleanerPass'),
- 'abstract class Psy\CodeCleaner\CodeCleanerPass '
- . 'extends PhpParser\NodeVisitorAbstract '
- . 'implements PhpParser\NodeVisitor',
- ),
- );
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testSignatureFormatterThrowsUnknownReflectorExpeption()
- {
- $refl = $this->getMockBuilder('Reflector')->getMock();
- SignatureFormatter::format($refl);
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Input/CodeArgumentTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Input/CodeArgumentTest.php
deleted file mode 100644
index a87357e8..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Input/CodeArgumentTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Tests\Input;
-
-use Psy\Input\CodeArgument;
-use Symfony\Component\Console\Input\InputArgument;
-
-class CodeArgumentTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider getInvalidModes
- * @expectedException \InvalidArgumentException
- */
- public function testInvalidModes($mode)
- {
- new CodeArgument('wat', $mode);
- }
-
- public function getInvalidModes()
- {
- return array(
- array(InputArgument::IS_ARRAY),
- array(InputArgument::IS_ARRAY | InputArgument::REQUIRED),
- array(InputArgument::IS_ARRAY | InputArgument::OPTIONAL),
- );
- }
-
- /**
- * @dataProvider getValidModes
- */
- public function testValidModes($mode)
- {
- $this->assertInstanceOf('Psy\Input\CodeArgument', new CodeArgument('yeah', $mode));
- }
-
- public function getValidModes()
- {
- return array(
- array(InputArgument::REQUIRED),
- array(InputArgument::OPTIONAL),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Input/ShellInputTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Input/ShellInputTest.php
deleted file mode 100644
index 5b15bccf..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Input/ShellInputTest.php
+++ /dev/null
@@ -1,204 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Tests\Input;
-
-use Psy\Input\CodeArgument;
-use Psy\Input\ShellInput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-class ShellInputTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider getTokenizeData
- */
- public function testTokenize($input, $tokens, $message)
- {
- $input = new ShellInput($input);
- $r = new \ReflectionClass('Psy\Input\ShellInput');
- $p = $r->getProperty('tokenPairs');
- $p->setAccessible(true);
- $this->assertEquals($tokens, $p->getValue($input), $message);
- }
-
- public function testInputOptionWithGivenString()
- {
- $definition = new InputDefinition(array(
- new InputOption('foo', null, InputOption::VALUE_REQUIRED),
- new CodeArgument('code', null, InputOption::VALUE_REQUIRED),
- ));
-
- $input = new ShellInput('--foo=bar echo "baz\n";');
- $input->bind($definition);
- $this->assertEquals('bar', $input->getOption('foo'));
- $this->assertEquals('echo "baz\n";', $input->getArgument('code'));
- }
-
- public function testInputOptionWithoutCodeArguments()
- {
- $definition = new InputDefinition(array(
- new InputOption('foo', null, InputOption::VALUE_REQUIRED),
- new InputArgument('bar', null, InputOption::VALUE_REQUIRED),
- new InputArgument('baz', null, InputOption::VALUE_REQUIRED),
- ));
-
- $input = new ShellInput('--foo=foo bar "baz\n"');
- $input->bind($definition);
- $this->assertEquals('foo', $input->getOption('foo'));
- $this->assertEquals('bar', $input->getArgument('bar'));
- $this->assertEquals("baz\n", $input->getArgument('baz'));
- }
-
- public function getTokenizeData()
- {
- // Test all the cases from StringInput test, ensuring they have an appropriate $rest token.
- return array(
- array(
- '',
- array(),
- '->tokenize() parses an empty string',
- ),
- array(
- 'foo',
- array(array('foo', 'foo')),
- '->tokenize() parses arguments',
- ),
- array(
- ' foo bar ',
- array(array('foo', 'foo bar '), array('bar', 'bar ')),
- '->tokenize() ignores whitespaces between arguments',
- ),
- array(
- '"quoted"',
- array(array('quoted', '"quoted"')),
- '->tokenize() parses quoted arguments',
- ),
- array(
- "'quoted'",
- array(array('quoted', "'quoted'")),
- '->tokenize() parses quoted arguments',
- ),
- array(
- "'a\rb\nc\td'",
- array(array("a\rb\nc\td", "'a\rb\nc\td'")),
- '->tokenize() parses whitespace chars in strings',
- ),
- array(
- "'a'\r'b'\n'c'\t'd'",
- array(
- array('a', "'a'\r'b'\n'c'\t'd'"),
- array('b', "'b'\n'c'\t'd'"),
- array('c', "'c'\t'd'"),
- array('d', "'d'"),
- ),
- '->tokenize() parses whitespace chars between args as spaces',
- ),
- array(
- '\"quoted\"',
- array(array('"quoted"', '\"quoted\"')),
- '->tokenize() parses escaped-quoted arguments',
- ),
- array(
- "\'quoted\'",
- array(array('\'quoted\'', "\'quoted\'")),
- '->tokenize() parses escaped-quoted arguments',
- ),
- array(
- '-a',
- array(array('-a', '-a')),
- '->tokenize() parses short options',
- ),
- array(
- '-azc',
- array(array('-azc', '-azc')),
- '->tokenize() parses aggregated short options',
- ),
- array(
- '-awithavalue',
- array(array('-awithavalue', '-awithavalue')),
- '->tokenize() parses short options with a value',
- ),
- array(
- '-a"foo bar"',
- array(array('-afoo bar', '-a"foo bar"')),
- '->tokenize() parses short options with a value',
- ),
- array(
- '-a"foo bar""foo bar"',
- array(array('-afoo barfoo bar', '-a"foo bar""foo bar"')),
- '->tokenize() parses short options with a value',
- ),
- array(
- '-a\'foo bar\'',
- array(array('-afoo bar', '-a\'foo bar\'')),
- '->tokenize() parses short options with a value',
- ),
- array(
- '-a\'foo bar\'\'foo bar\'',
- array(array('-afoo barfoo bar', '-a\'foo bar\'\'foo bar\'')),
- '->tokenize() parses short options with a value',
- ),
- array(
- '-a\'foo bar\'"foo bar"',
- array(array('-afoo barfoo bar', '-a\'foo bar\'"foo bar"')),
- '->tokenize() parses short options with a value',
- ),
- array(
- '--long-option',
- array(array('--long-option', '--long-option')),
- '->tokenize() parses long options',
- ),
- array(
- '--long-option=foo',
- array(array('--long-option=foo', '--long-option=foo')),
- '->tokenize() parses long options with a value',
- ),
- array(
- '--long-option="foo bar"',
- array(array('--long-option=foo bar', '--long-option="foo bar"')),
- '->tokenize() parses long options with a value',
- ),
- array(
- '--long-option="foo bar""another"',
- array(array('--long-option=foo baranother', '--long-option="foo bar""another"')),
- '->tokenize() parses long options with a value',
- ),
- array(
- '--long-option=\'foo bar\'',
- array(array('--long-option=foo bar', '--long-option=\'foo bar\'')),
- '->tokenize() parses long options with a value',
- ),
- array(
- "--long-option='foo bar''another'",
- array(array('--long-option=foo baranother', "--long-option='foo bar''another'")),
- '->tokenize() parses long options with a value',
- ),
- array(
- "--long-option='foo bar'\"another\"",
- array(array('--long-option=foo baranother', "--long-option='foo bar'\"another\"")),
- '->tokenize() parses long options with a value',
- ),
- array(
- 'foo -a -ffoo --long bar',
- array(
- array('foo', 'foo -a -ffoo --long bar'),
- array('-a', '-a -ffoo --long bar'),
- array('-ffoo', '-ffoo --long bar'),
- array('--long', '--long bar'),
- array('bar', 'bar'),
- ),
- '->tokenize() parses when several arguments and options',
- ),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/GNUReadlineTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/GNUReadlineTest.php
deleted file mode 100644
index 45fbb9b5..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/GNUReadlineTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Readline;
-
-use Psy\Readline\GNUReadline;
-
-class GNUReadlineTest extends \PHPUnit_Framework_TestCase
-{
- private $historyFile;
-
- public function setUp()
- {
- if (!GNUReadline::isSupported()) {
- $this->markTestSkipped('GNUReadline not enabled');
- }
-
- $this->historyFile = tempnam(sys_get_temp_dir(), 'psysh_test_history');
- file_put_contents($this->historyFile, "_HiStOrY_V2_\n");
- }
-
- public function testHistory()
- {
- $readline = new GNUReadline($this->historyFile);
- $this->assertEmpty($readline->listHistory());
- $readline->addHistory('foo');
- $this->assertEquals(array('foo'), $readline->listHistory());
- $readline->addHistory('bar');
- $this->assertEquals(array('foo', 'bar'), $readline->listHistory());
- $readline->addHistory('baz');
- $this->assertEquals(array('foo', 'bar', 'baz'), $readline->listHistory());
- $readline->clearHistory();
- $this->assertEmpty($readline->listHistory());
- }
-
- /**
- * @depends testHistory
- */
- public function testHistorySize()
- {
- $readline = new GNUReadline($this->historyFile, 2);
- $this->assertEmpty($readline->listHistory());
- $readline->addHistory('foo');
- $readline->addHistory('bar');
- $this->assertEquals(array('foo', 'bar'), $readline->listHistory());
- $readline->addHistory('baz');
- $this->assertEquals(array('bar', 'baz'), $readline->listHistory());
- $readline->addHistory('w00t');
- $this->assertEquals(array('baz', 'w00t'), $readline->listHistory());
- $readline->clearHistory();
- $this->assertEmpty($readline->listHistory());
- }
-
- /**
- * @depends testHistory
- */
- public function testHistoryEraseDups()
- {
- $readline = new GNUReadline($this->historyFile, 0, true);
- $this->assertEmpty($readline->listHistory());
- $readline->addHistory('foo');
- $readline->addHistory('bar');
- $readline->addHistory('foo');
- $this->assertEquals(array('bar', 'foo'), $readline->listHistory());
- $readline->addHistory('baz');
- $readline->addHistory('w00t');
- $readline->addHistory('baz');
- $this->assertEquals(array('bar', 'foo', 'w00t', 'baz'), $readline->listHistory());
- $readline->clearHistory();
- $this->assertEmpty($readline->listHistory());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/HoaConsoleTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/HoaConsoleTest.php
deleted file mode 100644
index 2ddbbc98..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/HoaConsoleTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Readline;
-
-use Psy\Readline\HoaConsole;
-
-class HoaConsoleTest extends \PHPUnit_Framework_TestCase
-{
- public function testHistory()
- {
- $readline = new HoaConsole();
- $this->assertEmpty($readline->listHistory());
- $readline->addHistory('foo');
- $this->assertEquals(array('foo'), $readline->listHistory());
- $readline->addHistory('bar');
- $this->assertEquals(array('foo', 'bar'), $readline->listHistory());
- $readline->addHistory('baz');
- $this->assertEquals(array('foo', 'bar', 'baz'), $readline->listHistory());
- $readline->clearHistory();
- $this->assertEmpty($readline->listHistory());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/LibeditTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/LibeditTest.php
deleted file mode 100644
index c87d22c2..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/LibeditTest.php
+++ /dev/null
@@ -1,128 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Readline;
-
-use Psy\Readline\Libedit;
-
-class LibeditTest extends \PHPUnit_Framework_TestCase
-{
- private $historyFile;
-
- public function setUp()
- {
- if (!Libedit::isSupported()) {
- $this->markTestSkipped('Libedit not enabled');
- }
-
- $this->historyFile = tempnam(sys_get_temp_dir(), 'psysh_test_history');
- if (false === file_put_contents($this->historyFile, "_HiStOrY_V2_\n")) {
- $this->fail('Unable to write history file: ' . $this->historyFile);
- }
- // Calling readline_read_history before readline_clear_history
- // avoids segfault with PHP 5.5.7 & libedit v3.1
- readline_read_history($this->historyFile);
- readline_clear_history();
- }
-
- public function tearDown()
- {
- if (is_file($this->historyFile)) {
- unlink($this->historyFile);
- }
- }
-
- public function testHistory()
- {
- $readline = new Libedit($this->historyFile);
- $this->assertEmpty($readline->listHistory());
- $readline->addHistory('foo');
- $this->assertEquals(array('foo'), $readline->listHistory());
- $readline->addHistory('bar');
- $this->assertEquals(array('foo', 'bar'), $readline->listHistory());
- $readline->addHistory('baz');
- $this->assertEquals(array('foo', 'bar', 'baz'), $readline->listHistory());
- $readline->clearHistory();
- $this->assertEmpty($readline->listHistory());
- }
-
- /**
- * @depends testHistory
- */
- public function testHistorySize()
- {
- $readline = new Libedit($this->historyFile, 2);
- $this->assertEmpty($readline->listHistory());
- $readline->addHistory('foo');
- $readline->addHistory('bar');
- $this->assertEquals(array('foo', 'bar'), $readline->listHistory());
- $readline->addHistory('baz');
- $this->assertEquals(array('bar', 'baz'), $readline->listHistory());
- $readline->addHistory('w00t');
- $this->assertEquals(array('baz', 'w00t'), $readline->listHistory());
- $readline->clearHistory();
- $this->assertEmpty($readline->listHistory());
- }
-
- /**
- * @depends testHistory
- */
- public function testHistoryEraseDups()
- {
- $readline = new Libedit($this->historyFile, 0, true);
- $this->assertEmpty($readline->listHistory());
- $readline->addHistory('foo');
- $readline->addHistory('bar');
- $readline->addHistory('foo');
- $this->assertEquals(array('bar', 'foo'), $readline->listHistory());
- $readline->addHistory('baz');
- $readline->addHistory('w00t');
- $readline->addHistory('baz');
- $this->assertEquals(array('bar', 'foo', 'w00t', 'baz'), $readline->listHistory());
- $readline->clearHistory();
- $this->assertEmpty($readline->listHistory());
- }
-
- public function testListHistory()
- {
- $readline = new Libedit($this->historyFile);
- file_put_contents(
- $this->historyFile,
- "This is an entry\n\0This is a comment\nThis is an entry\0With a comment\n",
- FILE_APPEND
- );
- $this->assertEquals(array(
- 'This is an entry',
- 'This is an entry',
- ), $readline->listHistory());
- $readline->clearHistory();
- }
-
- /**
- * Libedit being a BSD library,
- * it doesn't support non-unix line separators.
- */
- public function testLinebreaksSupport()
- {
- $readline = new Libedit($this->historyFile);
- file_put_contents(
- $this->historyFile,
- "foo\rbar\nbaz\r\nw00t",
- FILE_APPEND
- );
- $this->assertEquals(array(
- "foo\rbar",
- "baz\r",
- 'w00t',
- ), $readline->listHistory());
- $readline->clearHistory();
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/TransientTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/TransientTest.php
deleted file mode 100644
index 133f5779..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Readline/TransientTest.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Readline;
-
-use Psy\Readline\Transient;
-
-class TransientTest extends \PHPUnit_Framework_TestCase
-{
- public function testHistory()
- {
- $readline = new Transient();
- $this->assertEmpty($readline->listHistory());
- $readline->addHistory('foo');
- $this->assertEquals(array('foo'), $readline->listHistory());
- $readline->addHistory('bar');
- $this->assertEquals(array('foo', 'bar'), $readline->listHistory());
- $readline->addHistory('baz');
- $this->assertEquals(array('foo', 'bar', 'baz'), $readline->listHistory());
- $readline->clearHistory();
- $this->assertEmpty($readline->listHistory());
- }
-
- /**
- * @depends testHistory
- */
- public function testHistorySize()
- {
- $readline = new Transient(null, 2);
- $this->assertEmpty($readline->listHistory());
- $readline->addHistory('foo');
- $readline->addHistory('bar');
- $this->assertEquals(array('foo', 'bar'), $readline->listHistory());
- $readline->addHistory('baz');
- $this->assertEquals(array('bar', 'baz'), $readline->listHistory());
- $readline->addHistory('w00t');
- $this->assertEquals(array('baz', 'w00t'), $readline->listHistory());
- $readline->clearHistory();
- $this->assertEmpty($readline->listHistory());
- }
-
- /**
- * @depends testHistory
- */
- public function testHistoryEraseDups()
- {
- $readline = new Transient(null, 0, true);
- $this->assertEmpty($readline->listHistory());
- $readline->addHistory('foo');
- $readline->addHistory('bar');
- $readline->addHistory('foo');
- $this->assertEquals(array('bar', 'foo'), $readline->listHistory());
- $readline->addHistory('baz');
- $readline->addHistory('w00t');
- $readline->addHistory('baz');
- $this->assertEquals(array('bar', 'foo', 'w00t', 'baz'), $readline->listHistory());
- $readline->clearHistory();
- $this->assertEmpty($readline->listHistory());
- }
-
- public function testSomeThingsAreAlwaysTrue()
- {
- $readline = new Transient();
- $this->assertTrue(Transient::isSupported());
- $this->assertTrue($readline->readHistory());
- $this->assertTrue($readline->writeHistory());
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Reflection/ReflectionConstantTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Reflection/ReflectionConstantTest.php
deleted file mode 100644
index a3c6464b..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Reflection/ReflectionConstantTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Reflection;
-
-use Psy\Reflection\ReflectionConstant;
-
-class ReflectionConstantTest extends \PHPUnit_Framework_TestCase
-{
- const CONSTANT_ONE = 'one';
-
- public function testConstruction()
- {
- $refl = new ReflectionConstant($this, 'CONSTANT_ONE');
- $class = $refl->getDeclaringClass();
-
- $this->assertTrue($class instanceof \ReflectionClass);
- $this->assertEquals('Psy\Test\Reflection\ReflectionConstantTest', $class->getName());
- $this->assertEquals('CONSTANT_ONE', $refl->getName());
- $this->assertEquals('CONSTANT_ONE', (string) $refl);
- $this->assertEquals('one', $refl->getValue());
- $this->assertEquals(null, $refl->getFileName());
- $this->assertFalse($refl->getDocComment());
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testUnknownConstantThrowsException()
- {
- new ReflectionConstant($this, 'UNKNOWN_CONSTANT');
- }
-
- /**
- * @expectedException \RuntimeException
- * @dataProvider notYetImplemented
- */
- public function testNotYetImplemented($method)
- {
- $refl = new ReflectionConstant($this, 'CONSTANT_ONE');
- $refl->$method();
- }
-
- public function notYetImplemented()
- {
- return array(
- array('getStartLine'),
- array('getEndLine'),
- array('export'),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/ShellTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/ShellTest.php
deleted file mode 100644
index ade798d1..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/ShellTest.php
+++ /dev/null
@@ -1,346 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test;
-
-use Psy\Configuration;
-use Psy\Exception\ErrorException;
-use Psy\Exception\ParseErrorException;
-use Psy\Shell;
-use Psy\TabCompletion\Matcher\ClassMethodsMatcher;
-use Symfony\Component\Console\Output\StreamOutput;
-
-class ShellTest extends \PHPUnit_Framework_TestCase
-{
- private $streams = array();
-
- public function tearDown()
- {
- foreach ($this->streams as $stream) {
- fclose($stream);
- }
- }
-
- public function testScopeVariables()
- {
- $one = 'banana';
- $two = 123;
- $three = new \StdClass();
- $__psysh__ = 'ignore this';
- $_ = 'ignore this';
- $_e = 'ignore this';
-
- $shell = new Shell($this->getConfig());
- $shell->setScopeVariables(compact('one', 'two', 'three', '__psysh__', '_', '_e', 'this'));
-
- $this->assertNotContains('__psysh__', $shell->getScopeVariableNames());
- $this->assertEquals(array('one', 'two', 'three', '_'), $shell->getScopeVariableNames());
- $this->assertEquals('banana', $shell->getScopeVariable('one'));
- $this->assertEquals(123, $shell->getScopeVariable('two'));
- $this->assertSame($three, $shell->getScopeVariable('three'));
- $this->assertNull($shell->getScopeVariable('_'));
-
- $shell->setScopeVariables(array());
- $this->assertEquals(array('_'), $shell->getScopeVariableNames());
-
- $shell->setBoundObject($this);
- $this->assertEquals(array('_', 'this'), $shell->getScopeVariableNames());
- $this->assertSame($this, $shell->getScopeVariable('this'));
- $this->assertEquals(array('_' => null), $shell->getScopeVariables(false));
- $this->assertEquals(array('_' => null, 'this' => $this), $shell->getScopeVariables());
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testUnknownScopeVariablesThrowExceptions()
- {
- $shell = new Shell($this->getConfig());
- $shell->setScopeVariables(array('foo' => 'FOO', 'bar' => 1));
- $shell->getScopeVariable('baz');
- }
-
- public function testIncludes()
- {
- $config = $this->getConfig(array('configFile' => __DIR__ . '/../../fixtures/empty.php'));
-
- $shell = new Shell($config);
- $this->assertEmpty($shell->getIncludes());
- $shell->setIncludes(array('foo', 'bar', 'baz'));
- $this->assertEquals(array('foo', 'bar', 'baz'), $shell->getIncludes());
- }
-
- public function testIncludesConfig()
- {
- $config = $this->getConfig(array(
- 'defaultIncludes' => array('/file.php'),
- 'configFile' => __DIR__ . '/../../fixtures/empty.php',
- ));
-
- $shell = new Shell($config);
-
- $includes = $shell->getIncludes();
- $this->assertEquals('/file.php', $includes[0]);
- }
-
- public function testAddMatchersViaConfig()
- {
- $config = $this->getConfig(array(
- 'tabCompletionMatchers' => array(
- new ClassMethodsMatcher(),
- ),
- ));
-
- $matchers = $config->getTabCompletionMatchers();
-
- $this->assertTrue(array_pop($matchers) instanceof ClassMethodsMatcher);
- }
-
- public function testRenderingExceptions()
- {
- $shell = new Shell($this->getConfig());
- $output = $this->getOutput();
- $stream = $output->getStream();
- $e = new ParseErrorException('message', 13);
-
- $shell->setOutput($output);
- $shell->addCode('code');
- $this->assertTrue($shell->hasCode());
- $this->assertNotEmpty($shell->getCodeBuffer());
-
- $shell->writeException($e);
-
- $this->assertSame($e, $shell->getScopeVariable('_e'));
- $this->assertFalse($shell->hasCode());
- $this->assertEmpty($shell->getCodeBuffer());
-
- rewind($stream);
- $streamContents = stream_get_contents($stream);
-
- $this->assertContains('PHP Parse error', $streamContents);
- $this->assertContains('message', $streamContents);
- $this->assertContains('line 13', $streamContents);
- }
-
- public function testHandlingErrors()
- {
- $shell = new Shell($this->getConfig());
- $output = $this->getOutput();
- $stream = $output->getStream();
- $shell->setOutput($output);
-
- $oldLevel = error_reporting();
- error_reporting($oldLevel & ~E_USER_NOTICE);
-
- try {
- $shell->handleError(E_USER_NOTICE, 'wheee', null, 13);
- } catch (ErrorException $e) {
- error_reporting($oldLevel);
- $this->fail('Unexpected error exception');
- }
- error_reporting($oldLevel);
-
- rewind($stream);
- $streamContents = stream_get_contents($stream);
-
- $this->assertContains('PHP error:', $streamContents);
- $this->assertContains('wheee', $streamContents);
- $this->assertContains('line 13', $streamContents);
- }
-
- /**
- * @expectedException \Psy\Exception\ErrorException
- */
- public function testNotHandlingErrors()
- {
- $shell = new Shell($this->getConfig());
- $oldLevel = error_reporting();
- error_reporting($oldLevel | E_USER_NOTICE);
-
- try {
- $shell->handleError(E_USER_NOTICE, 'wheee', null, 13);
- } catch (ErrorException $e) {
- error_reporting($oldLevel);
- throw $e;
- }
- }
-
- public function testVersion()
- {
- $shell = new Shell($this->getConfig());
-
- $this->assertInstanceOf('Symfony\Component\Console\Application', $shell);
- $this->assertContains(Shell::VERSION, $shell->getVersion());
- $this->assertContains(phpversion(), $shell->getVersion());
- $this->assertContains(php_sapi_name(), $shell->getVersion());
- }
-
- public function testCodeBuffer()
- {
- $shell = new Shell($this->getConfig());
-
- $shell->addCode('class');
- $this->assertNull($shell->flushCode());
- $this->assertTrue($shell->hasCode());
-
- $shell->addCode('a');
- $this->assertNull($shell->flushCode());
- $this->assertTrue($shell->hasCode());
-
- $shell->addCode('{}');
- $code = $shell->flushCode();
- $this->assertFalse($shell->hasCode());
- $code = preg_replace('/\s+/', ' ', $code);
- $this->assertNotNull($code);
- $this->assertEquals('class a { } return new \\Psy\\CodeCleaner\\NoReturnValue();', $code);
- }
-
- public function testKeepCodeBufferOpen()
- {
- $shell = new Shell($this->getConfig());
-
- $shell->addCode('1 \\');
- $this->assertNull($shell->flushCode());
- $this->assertTrue($shell->hasCode());
-
- $shell->addCode('+ 1 \\');
- $this->assertNull($shell->flushCode());
- $this->assertTrue($shell->hasCode());
-
- $shell->addCode('+ 1');
- $code = $shell->flushCode();
- $this->assertFalse($shell->hasCode());
- $code = preg_replace('/\s+/', ' ', $code);
- $this->assertNotNull($code);
- $this->assertEquals('return 1 + 1 + 1;', $code);
- }
-
- /**
- * @expectedException \Psy\Exception\ParseErrorException
- */
- public function testCodeBufferThrowsParseExceptions()
- {
- $shell = new Shell($this->getConfig());
- $shell->addCode('this is not valid');
- $shell->flushCode();
- }
-
- public function testClosuresSupport()
- {
- $shell = new Shell($this->getConfig());
- $code = '$test = function () {}';
- $shell->addCode($code);
- $shell->flushCode();
- $code = '$test()';
- $shell->addCode($code);
- $shell->flushCode();
- }
-
- public function testWriteStdout()
- {
- $output = $this->getOutput();
- $stream = $output->getStream();
- $shell = new Shell($this->getConfig());
- $shell->setOutput($output);
-
- $shell->writeStdout("{{stdout}}\n");
-
- rewind($stream);
- $streamContents = stream_get_contents($stream);
-
- $this->assertEquals('{{stdout}}' . PHP_EOL, $streamContents);
- }
-
- public function testWriteStdoutWithoutNewline()
- {
- $output = $this->getOutput();
- $stream = $output->getStream();
- $shell = new Shell($this->getConfig());
- $shell->setOutput($output);
-
- $shell->writeStdout('{{stdout}}');
-
- rewind($stream);
- $streamContents = stream_get_contents($stream);
-
- $this->assertEquals('{{stdout}}<aside>⏎</aside>' . PHP_EOL, $streamContents);
- }
-
- /**
- * @dataProvider getReturnValues
- */
- public function testWriteReturnValue($input, $expected)
- {
- $output = $this->getOutput();
- $stream = $output->getStream();
- $shell = new Shell($this->getConfig());
- $shell->setOutput($output);
-
- $shell->writeReturnValue($input);
- rewind($stream);
- $this->assertEquals($expected, stream_get_contents($stream));
- }
-
- public function getReturnValues()
- {
- return array(
- array('{{return value}}', "=> \"\033[32m{{return value}}\033[39m\"" . PHP_EOL),
- array(1, "=> \033[35m1\033[39m" . PHP_EOL),
- );
- }
-
- /**
- * @dataProvider getRenderedExceptions
- */
- public function testWriteException($exception, $expected)
- {
- $output = $this->getOutput();
- $stream = $output->getStream();
- $shell = new Shell($this->getConfig());
- $shell->setOutput($output);
-
- $shell->writeException($exception);
- rewind($stream);
- $this->assertEquals($expected, stream_get_contents($stream));
- }
-
- public function getRenderedExceptions()
- {
- return array(
- array(new \Exception('{{message}}'), "Exception with message '{{message}}'" . PHP_EOL),
- );
- }
-
- private function getOutput()
- {
- $stream = fopen('php://memory', 'w+');
- $this->streams[] = $stream;
-
- $output = new StreamOutput($stream, StreamOutput::VERBOSITY_NORMAL, false);
-
- return $output;
- }
-
- private function getConfig(array $config = array())
- {
- // Mebbe there's a better way than this?
- $dir = tempnam(sys_get_temp_dir(), 'psysh_shell_test_');
- unlink($dir);
-
- $defaults = array(
- 'configDir' => $dir,
- 'dataDir' => $dir,
- 'runtimeDir' => $dir,
- );
-
- return new Configuration(array_merge($defaults, $config));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/TabCompletion/AutoCompleterTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/TabCompletion/AutoCompleterTest.php
deleted file mode 100644
index c05048d4..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/TabCompletion/AutoCompleterTest.php
+++ /dev/null
@@ -1,145 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\TabCompletion;
-
-use Psy\Command\ListCommand;
-use Psy\Command\ShowCommand;
-use Psy\Configuration;
-use Psy\Context;
-use Psy\ContextAware;
-use Psy\TabCompletion\Matcher;
-
-class AutoCompleterTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @param $line
- * @param $mustContain
- * @param $mustNotContain
- * @dataProvider classesInput
- */
- public function testClassesCompletion($line, $mustContain, $mustNotContain)
- {
- $context = new Context();
-
- $commands = array(
- new ShowCommand(),
- new ListCommand(),
- );
-
- $matchers = array(
- new Matcher\VariablesMatcher(),
- new Matcher\ClassNamesMatcher(),
- new Matcher\ConstantsMatcher(),
- new Matcher\FunctionsMatcher(),
- new Matcher\ObjectMethodsMatcher(),
- new Matcher\ObjectAttributesMatcher(),
- new Matcher\KeywordsMatcher(),
- new Matcher\ClassAttributesMatcher(),
- new Matcher\ClassMethodsMatcher(),
- new Matcher\CommandsMatcher($commands),
- );
-
- $config = new Configuration();
- $tabCompletion = $config->getAutoCompleter();
- foreach ($matchers as $matcher) {
- if ($matcher instanceof ContextAware) {
- $matcher->setContext($context);
- }
- $tabCompletion->addMatcher($matcher);
- }
-
- $context->setAll(array('foo' => 12, 'bar' => new \DOMDocument()));
-
- $code = $tabCompletion->processCallback('', 0, array(
- 'line_buffer' => $line,
- 'point' => 0,
- 'end' => strlen($line),
- ));
-
- foreach ($mustContain as $mc) {
- $this->assertContains($mc, $code);
- }
-
- foreach ($mustNotContain as $mnc) {
- $this->assertNotContains($mnc, $code);
- }
- }
-
- /**
- * TODO
- * ====
- * draft, open to modifications
- * - [ ] if the variable is an array, return the square bracket for completion
- * - [ ] if the variable is a constructor or method, reflect to complete as a function call
- * - [ ] if the preceding token is a variable, call operators or keywords compatible for completion
- * - [X] a command always should be the second token after php_open_tag
- * - [X] keywords are never consecutive
- * - [X] namespacing completion should work just fine
- * - [X] after a new keyword, should always be a class constructor, never a function call or keyword, constant,
- * or variable that does not contain a existing class name.
- * - [X] on a namespaced constructor the completion must show the classes related, not constants.
- *
- * @return array
- */
- public function classesInput()
- {
- return array(
- // input, must had, must not had
- array('T_OPE', array('T_OPEN_TAG'), array()),
- array('st', array('stdClass'), array()),
- array('stdCla', array('stdClass'), array()),
- array('new s', array('stdClass'), array()),
- array(
- 'new ',
- array('stdClass', 'Psy\\Context', 'Psy\\Configuration'),
- array('require', 'array_search', 'T_OPEN_TAG', '$foo'),
- ),
- array('new Psy\\C', array('Context'), array('CASE_LOWER')),
- array('\s', array('stdClass'), array()),
- array('array_', array('array_search', 'array_map', 'array_merge'), array()),
- array('$bar->', array('load'), array()),
- array('$b', array('bar'), array()),
- array('6 + $b', array('bar'), array()),
- array('$f', array('foo'), array()),
- array('l', array('ls'), array()),
- array('ls ', array(), array('ls')),
- array('sho', array('show'), array()),
- array('12 + clone $', array('foo'), array()),
- // array(
- // '$foo ',
- // array('+', 'clone'),
- // array('$foo', 'DOMDocument', 'array_map')
- // ), requires a operator matcher?
- array('$', array('foo', 'bar'), array('require', 'array_search', 'T_OPEN_TAG', 'Psy')),
- array(
- 'Psy\\',
- array('Context', 'TabCompletion\\Matcher\\AbstractMatcher'),
- array('require', 'array_search'),
- ),
- array(
- 'Psy\Test\TabCompletion\StaticSample::CO',
- array('Psy\Test\TabCompletion\StaticSample::CONSTANT_VALUE'),
- array(),
- ),
- array(
- 'Psy\Test\TabCompletion\StaticSample::',
- array('Psy\Test\TabCompletion\StaticSample::$staticVariable'),
- array(),
- ),
- array(
- 'Psy\Test\TabCompletion\StaticSample::',
- array('Psy\Test\TabCompletion\StaticSample::staticFunction'),
- array(),
- ),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/TabCompletion/StaticSample.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/TabCompletion/StaticSample.php
deleted file mode 100644
index aea0031c..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/TabCompletion/StaticSample.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\TabCompletion;
-
-/**
- * Class StaticSample.
- */
-class StaticSample
-{
- const CONSTANT_VALUE = 12;
-
- public static $staticVariable;
-
- public static function staticFunction()
- {
- return self::CONSTANT_VALUE;
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Util/DocblockTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Util/DocblockTest.php
deleted file mode 100644
index a9aef688..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Util/DocblockTest.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Util;
-
-use Psy\Util\Docblock;
-
-class DocblockTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider comments
- */
- public function testDocblockParsing($comment, $body, $tags)
- {
- $reflector = $this
- ->getMockBuilder('ReflectionClass')
- ->disableOriginalConstructor()
- ->getMock();
-
- $reflector->expects($this->once())
- ->method('getDocComment')
- ->will($this->returnValue($comment));
-
- $docblock = new Docblock($reflector);
-
- $this->assertEquals($body, $docblock->desc);
-
- foreach ($tags as $tag => $value) {
- $this->assertTrue($docblock->hasTag($tag));
- $this->assertEquals($value, $docblock->tag($tag));
- }
- }
-
- public function comments()
- {
- return array(
- array('', '', array()),
- array(
- '/**
- * This is a docblock
- *
- * @throws \Exception with a description
- */',
- 'This is a docblock',
- array(
- 'throws' => array(array('type' => '\Exception', 'desc' => 'with a description')),
- ),
- ),
- array(
- '/**
- * This is a slightly longer docblock
- *
- * @param int $foo Is a Foo
- * @param string $bar With some sort of description
- * @param \ClassName $baz is cool too
- *
- * @return int At least it isn\'t a string
- */',
- 'This is a slightly longer docblock',
- array(
- 'param' => array(
- array('type' => 'int', 'desc' => 'Is a Foo', 'var' => '$foo'),
- array('type' => 'string', 'desc' => 'With some sort of description', 'var' => '$bar'),
- array('type' => '\ClassName', 'desc' => 'is cool too', 'var' => '$baz'),
- ),
- 'return' => array(
- array('type' => 'int', 'desc' => 'At least it isn\'t a string'),
- ),
- ),
- ),
- array(
- '/**
- * This is a docblock!
- *
- * It spans lines, too!
- *
- * @tagname plus a description
- *
- * @return
- */',
- "This is a docblock!\n\nIt spans lines, too!",
- array(
- 'tagname' => array('plus a description'),
- ),
- ),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Util/MirrorTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Util/MirrorTest.php
deleted file mode 100644
index 7d6a4325..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Util/MirrorTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Util;
-
-use Psy\Reflection\ReflectionConstant;
-use Psy\Util\Mirror;
-
-class MirrorTest extends \PHPUnit_Framework_TestCase
-{
- const FOO = 1;
- private $bar = 2;
- private static $baz = 3;
-
- public function aPublicMethod()
- {
- // nada
- }
-
- public function testMirror()
- {
- $refl = Mirror::get('sort');
- $this->assertTrue($refl instanceof \ReflectionFunction);
-
- $refl = Mirror::get('Psy\Test\Util\MirrorTest');
- $this->assertTrue($refl instanceof \ReflectionClass);
-
- $refl = Mirror::get($this);
- $this->assertTrue($refl instanceof \ReflectionObject);
-
- $refl = Mirror::get($this, 'FOO');
- $this->assertTrue($refl instanceof ReflectionConstant);
-
- $refl = Mirror::get($this, 'bar');
- $this->assertTrue($refl instanceof \ReflectionProperty);
-
- $refl = Mirror::get($this, 'baz');
- $this->assertTrue($refl instanceof \ReflectionProperty);
-
- $refl = Mirror::get($this, 'aPublicMethod');
- $this->assertTrue($refl instanceof \ReflectionMethod);
-
- $refl = Mirror::get($this, 'baz', Mirror::STATIC_PROPERTY);
- $this->assertTrue($refl instanceof \ReflectionProperty);
- }
-
- /**
- * @expectedException \RuntimeException
- */
- public function testMirrorThrowsExceptions()
- {
- Mirror::get($this, 'notAMethod');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @dataProvider invalidArguments
- */
- public function testMirrorThrowsInvalidArgumentExceptions($value)
- {
- Mirror::get($value);
- }
-
- public function invalidArguments()
- {
- return array(
- array('not_a_function_or_class'),
- array(array()),
- array(1),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/Util/StrTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/Util/StrTest.php
deleted file mode 100644
index 25602f91..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/Util/StrTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\Util;
-
-use Psy\Util\Str;
-
-class StrTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider testUnvisProvider
- */
- public function testUnvis($input, $expected)
- {
- $this->assertEquals($expected, Str::unvis($input));
- }
-
- public function testUnvisProvider()
- {
- //return require_once(__DIR__.'/../../../fixtures/unvis_fixtures.php');
- return json_decode(file_get_contents(__DIR__ . '/../../../fixtures/unvis_fixtures.json'));
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/Psy/Test/VersionUpdater/GitHubCheckerTest.php b/www/wiki/vendor/psy/psysh/test/Psy/Test/VersionUpdater/GitHubCheckerTest.php
deleted file mode 100644
index 32a7e534..00000000
--- a/www/wiki/vendor/psy/psysh/test/Psy/Test/VersionUpdater/GitHubCheckerTest.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Psy\Test\VersionUpdater;
-
-use Psy\Shell;
-
-class GitHubCheckerTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider malformedResults
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage Unable to check for updates
- *
- * @param $input
- */
- public function testExceptionInvocation($input)
- {
- $checker = $this->getMockBuilder('Psy\\VersionUpdater\\GitHubChecker')
- ->setMethods(array('fetchLatestRelease'))
- ->getMock();
- $checker->expects($this->once())->method('fetchLatestRelease')->willReturn($input);
- $checker->isLatest();
- }
-
- /**
- * @dataProvider jsonResults
- *
- * @param $assertion
- * @param $input
- */
- public function testDataSetResults($assertion, $input)
- {
- $checker = $this->getMockBuilder('Psy\\VersionUpdater\\GitHubChecker')
- ->setMethods(array('fetchLatestRelease'))
- ->getMock();
- $checker->expects($this->once())->method('fetchLatestRelease')->willReturn($input);
- $this->assertSame($assertion, $checker->isLatest());
- }
-
- /**
- * @return array
- */
- public function jsonResults()
- {
- return array(
- array(false, json_decode('{"tag_name":"v9.0.0"}')),
- array(true, json_decode('{"tag_name":"v' . Shell::VERSION . '"}')),
- array(true, json_decode('{"tag_name":"v0.0.1"}')),
- array(true, json_decode('{"tag_name":"v0.4.1-alpha"}')),
- array(true, json_decode('{"tag_name":"v0.4.2-beta3"}')),
- array(true, json_decode('{"tag_name":"v0.0.1"}')),
- array(true, json_decode('{"tag_name":""}')),
- );
- }
-
- /**
- * @return array
- */
- public function malformedResults()
- {
- return array(
- array(null),
- array(false),
- array(true),
- array(json_decode('{"foo":"bar"}')),
- array(json_decode('{}')),
- array(json_decode('[]')),
- array(array()),
- array(json_decode('{"tag_name":false"}')),
- array(json_decode('{"tag_name":true"}')),
- );
- }
-}
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/config.php b/www/wiki/vendor/psy/psysh/test/fixtures/config.php
deleted file mode 100644
index 31a4ef54..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/config.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-$config->setRuntimeDir(sys_get_temp_dir() . '/psysh_test/withconfig/temp');
-
-return array(
- 'useReadline' => true,
- 'usePcntl' => false,
- 'errorLoggingLevel' => E_ALL & ~E_NOTICE,
-);
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/default/.config/psysh/config.php b/www/wiki/vendor/psy/psysh/test/fixtures/default/.config/psysh/config.php
deleted file mode 100644
index b3d9bbc7..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/default/.config/psysh/config.php
+++ /dev/null
@@ -1 +0,0 @@
-<?php
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/default/.config/psysh/psysh_history b/www/wiki/vendor/psy/psysh/test/fixtures/default/.config/psysh/psysh_history
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/default/.config/psysh/psysh_history
+++ /dev/null
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/default/.local/share/psysh/php_manual.sqlite b/www/wiki/vendor/psy/psysh/test/fixtures/default/.local/share/psysh/php_manual.sqlite
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/default/.local/share/psysh/php_manual.sqlite
+++ /dev/null
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/empty.php b/www/wiki/vendor/psy/psysh/test/fixtures/empty.php
deleted file mode 100644
index a385c6c9..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/empty.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell.
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/* this space intentionally left blank */
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/history b/www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/history
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/history
+++ /dev/null
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/php_manual.sqlite b/www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/php_manual.sqlite
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/php_manual.sqlite
+++ /dev/null
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/rc.php b/www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/rc.php
deleted file mode 100644
index b3d9bbc7..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/legacy/.psysh/rc.php
+++ /dev/null
@@ -1 +0,0 @@
-<?php
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/config.php b/www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/config.php
deleted file mode 100644
index b3d9bbc7..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/config.php
+++ /dev/null
@@ -1 +0,0 @@
-<?php
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/psysh_history b/www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/psysh_history
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/psysh_history
+++ /dev/null
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/rc.php b/www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/rc.php
deleted file mode 100644
index b3d9bbc7..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/mixed/.psysh/rc.php
+++ /dev/null
@@ -1 +0,0 @@
-<?php
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/project/.psysh.php b/www/wiki/vendor/psy/psysh/test/fixtures/project/.psysh.php
deleted file mode 100644
index a6ac121e..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/project/.psysh.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Psy Shell
- *
- * (c) 2012-2017 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-return array(
- 'useReadline' => false,
- 'usePcntl' => true,
-);
diff --git a/www/wiki/vendor/psy/psysh/test/fixtures/unvis_fixtures.json b/www/wiki/vendor/psy/psysh/test/fixtures/unvis_fixtures.json
deleted file mode 100644
index 960fb02a..00000000
--- a/www/wiki/vendor/psy/psysh/test/fixtures/unvis_fixtures.json
+++ /dev/null
@@ -1 +0,0 @@
-[["", ""], ["\\^A", "\u0001"], ["\\^B", "\u0002"], ["\\^C", "\u0003"], ["\\^D", "\u0004"], ["\\^E", "\u0005"], ["\\^F", "\u0006"], ["\\^G", "\u0007"], ["\\^H", "\b"], ["\\^I", "\t"], ["\\^J", "\n"], ["\\^K", "\u000b"], ["\\^L", "\f"], ["\\^M", "\r"], ["\\^N", "\u000e"], ["\\^O", "\u000f"], ["\\^P", "\u0010"], ["\\^Q", "\u0011"], ["\\^R", "\u0012"], ["\\^S", "\u0013"], ["\\^T", "\u0014"], ["\\^U", "\u0015"], ["\\^V", "\u0016"], ["\\^W", "\u0017"], ["\\^X", "\u0018"], ["\\^Y", "\u0019"], ["\\^Z", "\u001a"], ["\\^[", "\u001b"], ["\\^\\", "\u001c"], ["\\^]", "\u001d"], ["\\^^", "\u001e"], ["\\^_", "\u001f"], ["\\040", " "], ["!", "!"], ["\"", "\""], ["#", "#"], ["$", "$"], ["%", "%"], ["&", "&"], ["'", "'"], ["(", "("], [")", ")"], ["*", "*"], ["+", "+"], [",", ","], ["-", "-"], [".", "."], ["/", "/"], ["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"], ["4", "4"], ["5", "5"], ["6", "6"], ["7", "7"], ["8", "8"], ["9", "9"], [":", ":"], [";", ";"], ["<", "<"], ["=", "="], [">", ">"], ["?", "?"], ["@", "@"], ["A", "A"], ["B", "B"], ["C", "C"], ["D", "D"], ["E", "E"], ["F", "F"], ["G", "G"], ["H", "H"], ["I", "I"], ["J", "J"], ["K", "K"], ["L", "L"], ["M", "M"], ["N", "N"], ["O", "O"], ["P", "P"], ["Q", "Q"], ["R", "R"], ["S", "S"], ["T", "T"], ["U", "U"], ["V", "V"], ["W", "W"], ["X", "X"], ["Y", "Y"], ["Z", "Z"], ["[", "["], ["\\\\", "\\"], ["]", "]"], ["^", "^"], ["_", "_"], ["`", "`"], ["a", "a"], ["b", "b"], ["c", "c"], ["d", "d"], ["e", "e"], ["f", "f"], ["g", "g"], ["h", "h"], ["i", "i"], ["j", "j"], ["k", "k"], ["l", "l"], ["m", "m"], ["n", "n"], ["o", "o"], ["p", "p"], ["q", "q"], ["r", "r"], ["s", "s"], ["t", "t"], ["u", "u"], ["v", "v"], ["w", "w"], ["x", "x"], ["y", "y"], ["z", "z"], ["{", "{"], ["|", "|"], ["}", "}"], ["~", "~"], ["\\^?", "\u007f"], ["\\M-B\\M^@", "\u0080"], ["\\M-B\\M^A", "\u0081"], ["\\M-B\\M^B", "\u0082"], ["\\M-B\\M^C", "\u0083"], ["\\M-B\\M^D", "\u0084"], ["\\M-B\\M^E", "\u0085"], ["\\M-B\\M^F", "\u0086"], ["\\M-B\\M^G", "\u0087"], ["\\M-B\\M^H", "\u0088"], ["\\M-B\\M^I", "\u0089"], ["\\M-B\\M^J", "\u008a"], ["\\M-B\\M^K", "\u008b"], ["\\M-B\\M^L", "\u008c"], ["\\M-B\\M^M", "\u008d"], ["\\M-B\\M^N", "\u008e"], ["\\M-B\\M^O", "\u008f"], ["\\M-B\\M^P", "\u0090"], ["\\M-B\\M^Q", "\u0091"], ["\\M-B\\M^R", "\u0092"], ["\\M-B\\M^S", "\u0093"], ["\\M-B\\M^T", "\u0094"], ["\\M-B\\M^U", "\u0095"], ["\\M-B\\M^V", "\u0096"], ["\\M-B\\M^W", "\u0097"], ["\\M-B\\M^X", "\u0098"], ["\\M-B\\M^Y", "\u0099"], ["\\M-B\\M^Z", "\u009a"], ["\\M-B\\M^[", "\u009b"], ["\\M-B\\M^\\", "\u009c"], ["\\M-B\\M^]", "\u009d"], ["\\M-B\\M^^", "\u009e"], ["\\M-B\\M^_", "\u009f"], ["\\M-B\\240", "\u00a0"], ["\\M-B\\M-!", "\u00a1"], ["\\M-B\\M-\"", "\u00a2"], ["\\M-B\\M-#", "\u00a3"], ["\\M-B\\M-$", "\u00a4"], ["\\M-B\\M-%", "\u00a5"], ["\\M-B\\M-&", "\u00a6"], ["\\M-B\\M-'", "\u00a7"], ["\\M-B\\M-(", "\u00a8"], ["\\M-B\\M-)", "\u00a9"], ["\\M-B\\M-*", "\u00aa"], ["\\M-B\\M-+", "\u00ab"], ["\\M-B\\M-,", "\u00ac"], ["\\M-B\\M--", "\u00ad"], ["\\M-B\\M-.", "\u00ae"], ["\\M-B\\M-/", "\u00af"], ["\\M-B\\M-0", "\u00b0"], ["\\M-B\\M-1", "\u00b1"], ["\\M-B\\M-2", "\u00b2"], ["\\M-B\\M-3", "\u00b3"], ["\\M-B\\M-4", "\u00b4"], ["\\M-B\\M-5", "\u00b5"], ["\\M-B\\M-6", "\u00b6"], ["\\M-B\\M-7", "\u00b7"], ["\\M-B\\M-8", "\u00b8"], ["\\M-B\\M-9", "\u00b9"], ["\\M-B\\M-:", "\u00ba"], ["\\M-B\\M-;", "\u00bb"], ["\\M-B\\M-<", "\u00bc"], ["\\M-B\\M-=", "\u00bd"], ["\\M-B\\M->", "\u00be"], ["\\M-B\\M-?", "\u00bf"], ["\\M-C\\M^@", "\u00c0"], ["\\M-C\\M^A", "\u00c1"], ["\\M-C\\M^B", "\u00c2"], ["\\M-C\\M^C", "\u00c3"], ["\\M-C\\M^D", "\u00c4"], ["\\M-C\\M^E", "\u00c5"], ["\\M-C\\M^F", "\u00c6"], ["\\M-C\\M^G", "\u00c7"], ["\\M-C\\M^H", "\u00c8"], ["\\M-C\\M^I", "\u00c9"], ["\\M-C\\M^J", "\u00ca"], ["\\M-C\\M^K", "\u00cb"], ["\\M-C\\M^L", "\u00cc"], ["\\M-C\\M^M", "\u00cd"], ["\\M-C\\M^N", "\u00ce"], ["\\M-C\\M^O", "\u00cf"], ["\\M-C\\M^P", "\u00d0"], ["\\M-C\\M^Q", "\u00d1"], ["\\M-C\\M^R", "\u00d2"], ["\\M-C\\M^S", "\u00d3"], ["\\M-C\\M^T", "\u00d4"], ["\\M-C\\M^U", "\u00d5"], ["\\M-C\\M^V", "\u00d6"], ["\\M-C\\M^W", "\u00d7"], ["\\M-C\\M^X", "\u00d8"], ["\\M-C\\M^Y", "\u00d9"], ["\\M-C\\M^Z", "\u00da"], ["\\M-C\\M^[", "\u00db"], ["\\M-C\\M^\\", "\u00dc"], ["\\M-C\\M^]", "\u00dd"], ["\\M-C\\M^^", "\u00de"], ["\\M-C\\M^_", "\u00df"], ["\\M-C\\240", "\u00e0"], ["\\M-C\\M-!", "\u00e1"], ["\\M-C\\M-\"", "\u00e2"], ["\\M-C\\M-#", "\u00e3"], ["\\M-C\\M-$", "\u00e4"], ["\\M-C\\M-%", "\u00e5"], ["\\M-C\\M-&", "\u00e6"], ["\\M-C\\M-'", "\u00e7"], ["\\M-C\\M-(", "\u00e8"], ["\\M-C\\M-)", "\u00e9"], ["\\M-C\\M-*", "\u00ea"], ["\\M-C\\M-+", "\u00eb"], ["\\M-C\\M-,", "\u00ec"], ["\\M-C\\M--", "\u00ed"], ["\\M-C\\M-.", "\u00ee"], ["\\M-C\\M-/", "\u00ef"], ["\\M-C\\M-0", "\u00f0"], ["\\M-C\\M-1", "\u00f1"], ["\\M-C\\M-2", "\u00f2"], ["\\M-C\\M-3", "\u00f3"], ["\\M-C\\M-4", "\u00f4"], ["\\M-C\\M-5", "\u00f5"], ["\\M-C\\M-6", "\u00f6"], ["\\M-C\\M-7", "\u00f7"], ["\\M-C\\M-8", "\u00f8"], ["\\M-C\\M-9", "\u00f9"], ["\\M-C\\M-:", "\u00fa"], ["\\M-C\\M-;", "\u00fb"], ["\\M-C\\M-<", "\u00fc"], ["\\M-C\\M-=", "\u00fd"], ["\\M-C\\M->", "\u00fe"], ["\\M-C\\M-?", "\u00ff"], ["\\M-D\\M^@", "\u0100"], ["\\M-D\\M^A", "\u0101"], ["\\M-D\\M^B", "\u0102"], ["\\M-D\\M^C", "\u0103"], ["\\M-D\\M^D", "\u0104"], ["\\M-D\\M^E", "\u0105"], ["\\M-D\\M^F", "\u0106"], ["\\M-D\\M^G", "\u0107"], ["\\M-D\\M^H", "\u0108"], ["\\M-D\\M^I", "\u0109"], ["\\M-D\\M^J", "\u010a"], ["\\M-D\\M^K", "\u010b"], ["\\M-D\\M^L", "\u010c"], ["\\M-D\\M^M", "\u010d"], ["\\M-D\\M^N", "\u010e"], ["\\M-D\\M^O", "\u010f"], ["\\M-D\\M^P", "\u0110"], ["\\M-D\\M^Q", "\u0111"], ["\\M-D\\M^R", "\u0112"], ["\\M-D\\M^S", "\u0113"], ["\\M-D\\M^T", "\u0114"], ["\\M-D\\M^U", "\u0115"], ["\\M-D\\M^V", "\u0116"], ["\\M-D\\M^W", "\u0117"], ["\\M-D\\M^X", "\u0118"], ["\\M-D\\M^Y", "\u0119"], ["\\M-D\\M^Z", "\u011a"], ["\\M-D\\M^[", "\u011b"], ["\\M-D\\M^\\", "\u011c"], ["\\M-D\\M^]", "\u011d"], ["\\M-D\\M^^", "\u011e"], ["\\M-D\\M^_", "\u011f"], ["\\M-D\\240", "\u0120"], ["\\M-D\\M-!", "\u0121"], ["\\M-D\\M-\"", "\u0122"], ["\\M-D\\M-#", "\u0123"], ["\\M-D\\M-$", "\u0124"], ["\\M-D\\M-%", "\u0125"], ["\\M-D\\M-&", "\u0126"], ["\\M-D\\M-'", "\u0127"], ["\\M-D\\M-(", "\u0128"], ["\\M-D\\M-)", "\u0129"], ["\\M-D\\M-*", "\u012a"], ["\\M-D\\M-+", "\u012b"], ["\\M-D\\M-,", "\u012c"], ["\\M-D\\M--", "\u012d"], ["\\M-D\\M-.", "\u012e"], ["\\M-D\\M-/", "\u012f"], ["\\M-D\\M-0", "\u0130"], ["\\M-D\\M-1", "\u0131"], ["\\M-D\\M-2", "\u0132"], ["\\M-D\\M-3", "\u0133"], ["\\M-D\\M-4", "\u0134"], ["\\M-D\\M-5", "\u0135"], ["\\M-D\\M-6", "\u0136"], ["\\M-D\\M-7", "\u0137"], ["\\M-D\\M-8", "\u0138"], ["\\M-D\\M-9", "\u0139"], ["\\M-D\\M-:", "\u013a"], ["\\M-D\\M-;", "\u013b"], ["\\M-D\\M-<", "\u013c"], ["\\M-D\\M-=", "\u013d"], ["\\M-D\\M->", "\u013e"], ["\\M-D\\M-?", "\u013f"], ["\\M-E\\M^@", "\u0140"], ["\\M-E\\M^A", "\u0141"], ["\\M-E\\M^B", "\u0142"], ["\\M-E\\M^C", "\u0143"], ["\\M-E\\M^D", "\u0144"], ["\\M-E\\M^E", "\u0145"], ["\\M-E\\M^F", "\u0146"], ["\\M-E\\M^G", "\u0147"], ["\\M-E\\M^H", "\u0148"], ["\\M-E\\M^I", "\u0149"], ["\\M-E\\M^J", "\u014a"], ["\\M-E\\M^K", "\u014b"], ["\\M-E\\M^L", "\u014c"], ["\\M-E\\M^M", "\u014d"], ["\\M-E\\M^N", "\u014e"], ["\\M-E\\M^O", "\u014f"], ["\\M-E\\M^P", "\u0150"], ["\\M-E\\M^Q", "\u0151"], ["\\M-E\\M^R", "\u0152"], ["\\M-E\\M^S", "\u0153"], ["\\M-E\\M^T", "\u0154"], ["\\M-E\\M^U", "\u0155"], ["\\M-E\\M^V", "\u0156"], ["\\M-E\\M^W", "\u0157"], ["\\M-E\\M^X", "\u0158"], ["\\M-E\\M^Y", "\u0159"], ["\\M-E\\M^Z", "\u015a"], ["\\M-E\\M^[", "\u015b"], ["\\M-E\\M^\\", "\u015c"], ["\\M-E\\M^]", "\u015d"], ["\\M-E\\M^^", "\u015e"], ["\\M-E\\M^_", "\u015f"], ["\\M-E\\240", "\u0160"], ["\\M-E\\M-!", "\u0161"], ["\\M-E\\M-\"", "\u0162"], ["\\M-E\\M-#", "\u0163"], ["\\M-E\\M-$", "\u0164"], ["\\M-E\\M-%", "\u0165"], ["\\M-E\\M-&", "\u0166"], ["\\M-E\\M-'", "\u0167"], ["\\M-E\\M-(", "\u0168"], ["\\M-E\\M-)", "\u0169"], ["\\M-E\\M-*", "\u016a"], ["\\M-E\\M-+", "\u016b"], ["\\M-E\\M-,", "\u016c"], ["\\M-E\\M--", "\u016d"], ["\\M-E\\M-.", "\u016e"], ["\\M-E\\M-/", "\u016f"], ["\\M-E\\M-0", "\u0170"], ["\\M-E\\M-1", "\u0171"], ["\\M-E\\M-2", "\u0172"], ["\\M-E\\M-3", "\u0173"], ["\\M-E\\M-4", "\u0174"], ["\\M-E\\M-5", "\u0175"], ["\\M-E\\M-6", "\u0176"], ["\\M-E\\M-7", "\u0177"], ["\\M-E\\M-8", "\u0178"], ["\\M-E\\M-9", "\u0179"], ["\\M-E\\M-:", "\u017a"], ["\\M-E\\M-;", "\u017b"], ["\\M-E\\M-<", "\u017c"], ["\\M-E\\M-=", "\u017d"], ["\\M-E\\M->", "\u017e"], ["\\M-E\\M-?", "\u017f"], ["\\M-F\\M^@", "\u0180"], ["\\M-F\\M^A", "\u0181"], ["\\M-F\\M^B", "\u0182"], ["\\M-F\\M^C", "\u0183"], ["\\M-F\\M^D", "\u0184"], ["\\M-F\\M^E", "\u0185"], ["\\M-F\\M^F", "\u0186"], ["\\M-F\\M^G", "\u0187"], ["\\M-F\\M^H", "\u0188"], ["\\M-F\\M^I", "\u0189"], ["\\M-F\\M^J", "\u018a"], ["\\M-F\\M^K", "\u018b"], ["\\M-F\\M^L", "\u018c"], ["\\M-F\\M^M", "\u018d"], ["\\M-F\\M^N", "\u018e"], ["\\M-F\\M^O", "\u018f"], ["\\M-F\\M^P", "\u0190"], ["\\M-F\\M^Q", "\u0191"], ["\\M-F\\M^R", "\u0192"], ["\\M-F\\M^S", "\u0193"], ["\\M-F\\M^T", "\u0194"], ["\\M-F\\M^U", "\u0195"], ["\\M-F\\M^V", "\u0196"], ["\\M-F\\M^W", "\u0197"], ["\\M-F\\M^X", "\u0198"], ["\\M-F\\M^Y", "\u0199"], ["\\M-F\\M^Z", "\u019a"], ["\\M-F\\M^[", "\u019b"], ["\\M-F\\M^\\", "\u019c"], ["\\M-F\\M^]", "\u019d"], ["\\M-F\\M^^", "\u019e"], ["\\M-F\\M^_", "\u019f"], ["\\M-F\\240", "\u01a0"], ["\\M-F\\M-!", "\u01a1"], ["\\M-F\\M-\"", "\u01a2"], ["\\M-F\\M-#", "\u01a3"], ["\\M-F\\M-$", "\u01a4"], ["\\M-F\\M-%", "\u01a5"], ["\\M-F\\M-&", "\u01a6"], ["\\M-F\\M-'", "\u01a7"], ["\\M-F\\M-(", "\u01a8"], ["\\M-F\\M-)", "\u01a9"], ["\\M-F\\M-*", "\u01aa"], ["\\M-F\\M-+", "\u01ab"], ["\\M-F\\M-,", "\u01ac"], ["\\M-F\\M--", "\u01ad"], ["\\M-F\\M-.", "\u01ae"], ["\\M-F\\M-/", "\u01af"], ["\\M-F\\M-0", "\u01b0"], ["\\M-F\\M-1", "\u01b1"], ["\\M-F\\M-2", "\u01b2"], ["\\M-F\\M-3", "\u01b3"], ["\\M-F\\M-4", "\u01b4"], ["\\M-F\\M-5", "\u01b5"], ["\\M-F\\M-6", "\u01b6"], ["\\M-F\\M-7", "\u01b7"], ["\\M-F\\M-8", "\u01b8"], ["\\M-F\\M-9", "\u01b9"], ["\\M-F\\M-:", "\u01ba"], ["\\M-F\\M-;", "\u01bb"], ["\\M-F\\M-<", "\u01bc"], ["\\M-F\\M-=", "\u01bd"], ["\\M-F\\M->", "\u01be"], ["\\M-F\\M-?", "\u01bf"], ["\\M-G\\M^@", "\u01c0"], ["\\M-G\\M^A", "\u01c1"], ["\\M-G\\M^B", "\u01c2"], ["\\M-G\\M^C", "\u01c3"], ["\\M-G\\M^D", "\u01c4"], ["\\M-G\\M^E", "\u01c5"], ["\\M-G\\M^F", "\u01c6"], ["\\M-G\\M^G", "\u01c7"], ["\\M-G\\M^H", "\u01c8"], ["\\M-G\\M^I", "\u01c9"], ["\\M-G\\M^J", "\u01ca"], ["\\M-G\\M^K", "\u01cb"], ["\\M-G\\M^L", "\u01cc"], ["\\M-G\\M^M", "\u01cd"], ["\\M-G\\M^N", "\u01ce"], ["\\M-G\\M^O", "\u01cf"], ["\\M-G\\M^P", "\u01d0"], ["\\M-G\\M^Q", "\u01d1"], ["\\M-G\\M^R", "\u01d2"], ["\\M-G\\M^S", "\u01d3"], ["\\M-G\\M^T", "\u01d4"], ["\\M-G\\M^U", "\u01d5"], ["\\M-G\\M^V", "\u01d6"], ["\\M-G\\M^W", "\u01d7"], ["\\M-G\\M^X", "\u01d8"], ["\\M-G\\M^Y", "\u01d9"], ["\\M-G\\M^Z", "\u01da"], ["\\M-G\\M^[", "\u01db"], ["\\M-G\\M^\\", "\u01dc"], ["\\M-G\\M^]", "\u01dd"], ["\\M-G\\M^^", "\u01de"], ["\\M-G\\M^_", "\u01df"], ["\\M-G\\240", "\u01e0"], ["\\M-G\\M-!", "\u01e1"], ["\\M-G\\M-\"", "\u01e2"], ["\\M-G\\M-#", "\u01e3"], ["\\M-G\\M-$", "\u01e4"], ["\\M-G\\M-%", "\u01e5"], ["\\M-G\\M-&", "\u01e6"], ["\\M-G\\M-'", "\u01e7"], ["\\M-G\\M-(", "\u01e8"], ["\\M-G\\M-)", "\u01e9"], ["\\M-G\\M-*", "\u01ea"], ["\\M-G\\M-+", "\u01eb"], ["\\M-G\\M-,", "\u01ec"], ["\\M-G\\M--", "\u01ed"], ["\\M-G\\M-.", "\u01ee"], ["\\M-G\\M-/", "\u01ef"], ["\\M-G\\M-0", "\u01f0"], ["\\M-G\\M-1", "\u01f1"], ["\\M-G\\M-2", "\u01f2"], ["\\M-G\\M-3", "\u01f3"], ["\\M-G\\M-4", "\u01f4"], ["\\M-G\\M-5", "\u01f5"], ["\\M-G\\M-6", "\u01f6"], ["\\M-G\\M-7", "\u01f7"], ["\\M-G\\M-8", "\u01f8"], ["\\M-G\\M-9", "\u01f9"], ["\\M-G\\M-:", "\u01fa"], ["\\M-G\\M-;", "\u01fb"], ["\\M-G\\M-<", "\u01fc"], ["\\M-G\\M-=", "\u01fd"], ["\\M-G\\M->", "\u01fe"], ["\\M-G\\M-?", "\u01ff"], ["\\M-H\\M^@", "\u0200"], ["\\M-H\\M^A", "\u0201"], ["\\M-H\\M^B", "\u0202"], ["\\M-H\\M^C", "\u0203"], ["\\M-H\\M^D", "\u0204"], ["\\M-H\\M^E", "\u0205"], ["\\M-H\\M^F", "\u0206"], ["\\M-H\\M^G", "\u0207"], ["\\M-H\\M^H", "\u0208"], ["\\M-H\\M^I", "\u0209"], ["\\M-H\\M^J", "\u020a"], ["\\M-H\\M^K", "\u020b"], ["\\M-H\\M^L", "\u020c"], ["\\M-H\\M^M", "\u020d"], ["\\M-H\\M^N", "\u020e"], ["\\M-H\\M^O", "\u020f"], ["\\M-H\\M^P", "\u0210"], ["\\M-H\\M^Q", "\u0211"], ["\\M-H\\M^R", "\u0212"], ["\\M-H\\M^S", "\u0213"], ["\\M-H\\M^T", "\u0214"], ["\\M-H\\M^U", "\u0215"], ["\\M-H\\M^V", "\u0216"], ["\\M-H\\M^W", "\u0217"], ["\\M-H\\M^X", "\u0218"], ["\\M-H\\M^Y", "\u0219"], ["\\M-H\\M^Z", "\u021a"], ["\\M-H\\M^[", "\u021b"], ["\\M-H\\M^\\", "\u021c"], ["\\M-H\\M^]", "\u021d"], ["\\M-H\\M^^", "\u021e"], ["\\M-H\\M^_", "\u021f"], ["\\M-H\\240", "\u0220"], ["\\M-H\\M-!", "\u0221"], ["\\M-H\\M-\"", "\u0222"], ["\\M-H\\M-#", "\u0223"], ["\\M-H\\M-$", "\u0224"], ["\\M-H\\M-%", "\u0225"], ["\\M-H\\M-&", "\u0226"], ["\\M-H\\M-'", "\u0227"], ["\\M-H\\M-(", "\u0228"], ["\\M-H\\M-)", "\u0229"], ["\\M-H\\M-*", "\u022a"], ["\\M-H\\M-+", "\u022b"], ["\\M-H\\M-,", "\u022c"], ["\\M-H\\M--", "\u022d"], ["\\M-H\\M-.", "\u022e"], ["\\M-H\\M-/", "\u022f"], ["\\M-H\\M-0", "\u0230"], ["\\M-H\\M-1", "\u0231"], ["\\M-H\\M-2", "\u0232"], ["\\M-H\\M-3", "\u0233"], ["\\M-H\\M-4", "\u0234"], ["\\M-H\\M-5", "\u0235"], ["\\M-H\\M-6", "\u0236"], ["\\M-H\\M-7", "\u0237"], ["\\M-H\\M-8", "\u0238"], ["\\M-H\\M-9", "\u0239"], ["\\M-H\\M-:", "\u023a"], ["\\M-H\\M-;", "\u023b"], ["\\M-H\\M-<", "\u023c"], ["\\M-H\\M-=", "\u023d"], ["\\M-H\\M->", "\u023e"], ["\\M-H\\M-?", "\u023f"], ["\\M-I\\M^@", "\u0240"], ["\\M-I\\M^A", "\u0241"], ["\\M-I\\M^B", "\u0242"], ["\\M-I\\M^C", "\u0243"], ["\\M-I\\M^D", "\u0244"], ["\\M-I\\M^E", "\u0245"], ["\\M-I\\M^F", "\u0246"], ["\\M-I\\M^G", "\u0247"], ["\\M-I\\M^H", "\u0248"], ["\\M-I\\M^I", "\u0249"], ["\\M-I\\M^J", "\u024a"], ["\\M-I\\M^K", "\u024b"], ["\\M-I\\M^L", "\u024c"], ["\\M-I\\M^M", "\u024d"], ["\\M-I\\M^N", "\u024e"], ["\\M-I\\M^O", "\u024f"], ["\\M-M\\M-0", "\u0370"], ["\\M-M\\M-1", "\u0371"], ["\\M-M\\M-2", "\u0372"], ["\\M-M\\M-3", "\u0373"], ["\\M-M\\M-4", "\u0374"], ["\\M-M\\M-5", "\u0375"], ["\\M-M\\M-6", "\u0376"], ["\\M-M\\M-7", "\u0377"], ["\\M-M\\M-8", "\u0378"], ["\\M-M\\M-9", "\u0379"], ["\\M-M\\M-:", "\u037a"], ["\\M-M\\M-;", "\u037b"], ["\\M-M\\M-<", "\u037c"], ["\\M-M\\M-=", "\u037d"], ["\\M-M\\M->", "\u037e"], ["\\M-M\\M-?", "\u037f"], ["\\M-N\\M^@", "\u0380"], ["\\M-N\\M^A", "\u0381"], ["\\M-N\\M^B", "\u0382"], ["\\M-N\\M^C", "\u0383"], ["\\M-N\\M^D", "\u0384"], ["\\M-N\\M^E", "\u0385"], ["\\M-N\\M^F", "\u0386"], ["\\M-N\\M^G", "\u0387"], ["\\M-N\\M^H", "\u0388"], ["\\M-N\\M^I", "\u0389"], ["\\M-N\\M^J", "\u038a"], ["\\M-N\\M^K", "\u038b"], ["\\M-N\\M^L", "\u038c"], ["\\M-N\\M^M", "\u038d"], ["\\M-N\\M^N", "\u038e"], ["\\M-N\\M^O", "\u038f"], ["\\M-N\\M^P", "\u0390"], ["\\M-N\\M^Q", "\u0391"], ["\\M-N\\M^R", "\u0392"], ["\\M-N\\M^S", "\u0393"], ["\\M-N\\M^T", "\u0394"], ["\\M-N\\M^U", "\u0395"], ["\\M-N\\M^V", "\u0396"], ["\\M-N\\M^W", "\u0397"], ["\\M-N\\M^X", "\u0398"], ["\\M-N\\M^Y", "\u0399"], ["\\M-N\\M^Z", "\u039a"], ["\\M-N\\M^[", "\u039b"], ["\\M-N\\M^\\", "\u039c"], ["\\M-N\\M^]", "\u039d"], ["\\M-N\\M^^", "\u039e"], ["\\M-N\\M^_", "\u039f"], ["\\M-N\\240", "\u03a0"], ["\\M-N\\M-!", "\u03a1"], ["\\M-N\\M-\"", "\u03a2"], ["\\M-N\\M-#", "\u03a3"], ["\\M-N\\M-$", "\u03a4"], ["\\M-N\\M-%", "\u03a5"], ["\\M-N\\M-&", "\u03a6"], ["\\M-N\\M-'", "\u03a7"], ["\\M-N\\M-(", "\u03a8"], ["\\M-N\\M-)", "\u03a9"], ["\\M-N\\M-*", "\u03aa"], ["\\M-N\\M-+", "\u03ab"], ["\\M-N\\M-,", "\u03ac"], ["\\M-N\\M--", "\u03ad"], ["\\M-N\\M-.", "\u03ae"], ["\\M-N\\M-/", "\u03af"], ["\\M-N\\M-0", "\u03b0"], ["\\M-N\\M-1", "\u03b1"], ["\\M-N\\M-2", "\u03b2"], ["\\M-N\\M-3", "\u03b3"], ["\\M-N\\M-4", "\u03b4"], ["\\M-N\\M-5", "\u03b5"], ["\\M-N\\M-6", "\u03b6"], ["\\M-N\\M-7", "\u03b7"], ["\\M-N\\M-8", "\u03b8"], ["\\M-N\\M-9", "\u03b9"], ["\\M-N\\M-:", "\u03ba"], ["\\M-N\\M-;", "\u03bb"], ["\\M-N\\M-<", "\u03bc"], ["\\M-N\\M-=", "\u03bd"], ["\\M-N\\M->", "\u03be"], ["\\M-N\\M-?", "\u03bf"], ["\\M-O\\M^@", "\u03c0"], ["\\M-O\\M^A", "\u03c1"], ["\\M-O\\M^B", "\u03c2"], ["\\M-O\\M^C", "\u03c3"], ["\\M-O\\M^D", "\u03c4"], ["\\M-O\\M^E", "\u03c5"], ["\\M-O\\M^F", "\u03c6"], ["\\M-O\\M^G", "\u03c7"], ["\\M-O\\M^H", "\u03c8"], ["\\M-O\\M^I", "\u03c9"], ["\\M-O\\M^J", "\u03ca"], ["\\M-O\\M^K", "\u03cb"], ["\\M-O\\M^L", "\u03cc"], ["\\M-O\\M^M", "\u03cd"], ["\\M-O\\M^N", "\u03ce"], ["\\M-O\\M^O", "\u03cf"], ["\\M-O\\M^P", "\u03d0"], ["\\M-O\\M^Q", "\u03d1"], ["\\M-O\\M^R", "\u03d2"], ["\\M-O\\M^S", "\u03d3"], ["\\M-O\\M^T", "\u03d4"], ["\\M-O\\M^U", "\u03d5"], ["\\M-O\\M^V", "\u03d6"], ["\\M-O\\M^W", "\u03d7"], ["\\M-O\\M^X", "\u03d8"], ["\\M-O\\M^Y", "\u03d9"], ["\\M-O\\M^Z", "\u03da"], ["\\M-O\\M^[", "\u03db"], ["\\M-O\\M^\\", "\u03dc"], ["\\M-O\\M^]", "\u03dd"], ["\\M-O\\M^^", "\u03de"], ["\\M-O\\M^_", "\u03df"], ["\\M-O\\240", "\u03e0"], ["\\M-O\\M-!", "\u03e1"], ["\\M-O\\M-\"", "\u03e2"], ["\\M-O\\M-#", "\u03e3"], ["\\M-O\\M-$", "\u03e4"], ["\\M-O\\M-%", "\u03e5"], ["\\M-O\\M-&", "\u03e6"], ["\\M-O\\M-'", "\u03e7"], ["\\M-O\\M-(", "\u03e8"], ["\\M-O\\M-)", "\u03e9"], ["\\M-O\\M-*", "\u03ea"], ["\\M-O\\M-+", "\u03eb"], ["\\M-O\\M-,", "\u03ec"], ["\\M-O\\M--", "\u03ed"], ["\\M-O\\M-.", "\u03ee"], ["\\M-O\\M-/", "\u03ef"], ["\\M-O\\M-0", "\u03f0"], ["\\M-O\\M-1", "\u03f1"], ["\\M-O\\M-2", "\u03f2"], ["\\M-O\\M-3", "\u03f3"], ["\\M-O\\M-4", "\u03f4"], ["\\M-O\\M-5", "\u03f5"], ["\\M-O\\M-6", "\u03f6"], ["\\M-O\\M-7", "\u03f7"], ["\\M-O\\M-8", "\u03f8"], ["\\M-O\\M-9", "\u03f9"], ["\\M-O\\M-:", "\u03fa"], ["\\M-O\\M-;", "\u03fb"], ["\\M-O\\M-<", "\u03fc"], ["\\M-O\\M-=", "\u03fd"], ["\\M-O\\M->", "\u03fe"], ["\\M-O\\M-?", "\u03ff"], ["\\M-P\\M^@", "\u0400"], ["\\M-P\\M^A", "\u0401"], ["\\M-P\\M^B", "\u0402"], ["\\M-P\\M^C", "\u0403"], ["\\M-P\\M^D", "\u0404"], ["\\M-P\\M^E", "\u0405"], ["\\M-P\\M^F", "\u0406"], ["\\M-P\\M^G", "\u0407"], ["\\M-P\\M^H", "\u0408"], ["\\M-P\\M^I", "\u0409"], ["\\M-P\\M^J", "\u040a"], ["\\M-P\\M^K", "\u040b"], ["\\M-P\\M^L", "\u040c"], ["\\M-P\\M^M", "\u040d"], ["\\M-P\\M^N", "\u040e"], ["\\M-P\\M^O", "\u040f"], ["\\M-P\\M^P", "\u0410"], ["\\M-P\\M^Q", "\u0411"], ["\\M-P\\M^R", "\u0412"], ["\\M-P\\M^S", "\u0413"], ["\\M-P\\M^T", "\u0414"], ["\\M-P\\M^U", "\u0415"], ["\\M-P\\M^V", "\u0416"], ["\\M-P\\M^W", "\u0417"], ["\\M-P\\M^X", "\u0418"], ["\\M-P\\M^Y", "\u0419"], ["\\M-P\\M^Z", "\u041a"], ["\\M-P\\M^[", "\u041b"], ["\\M-P\\M^\\", "\u041c"], ["\\M-P\\M^]", "\u041d"], ["\\M-P\\M^^", "\u041e"], ["\\M-P\\M^_", "\u041f"], ["\\M-P\\240", "\u0420"], ["\\M-P\\M-!", "\u0421"], ["\\M-P\\M-\"", "\u0422"], ["\\M-P\\M-#", "\u0423"], ["\\M-P\\M-$", "\u0424"], ["\\M-P\\M-%", "\u0425"], ["\\M-P\\M-&", "\u0426"], ["\\M-P\\M-'", "\u0427"], ["\\M-P\\M-(", "\u0428"], ["\\M-P\\M-)", "\u0429"], ["\\M-P\\M-*", "\u042a"], ["\\M-P\\M-+", "\u042b"], ["\\M-P\\M-,", "\u042c"], ["\\M-P\\M--", "\u042d"], ["\\M-P\\M-.", "\u042e"], ["\\M-P\\M-/", "\u042f"], ["\\M-P\\M-0", "\u0430"], ["\\M-P\\M-1", "\u0431"], ["\\M-P\\M-2", "\u0432"], ["\\M-P\\M-3", "\u0433"], ["\\M-P\\M-4", "\u0434"], ["\\M-P\\M-5", "\u0435"], ["\\M-P\\M-6", "\u0436"], ["\\M-P\\M-7", "\u0437"], ["\\M-P\\M-8", "\u0438"], ["\\M-P\\M-9", "\u0439"], ["\\M-P\\M-:", "\u043a"], ["\\M-P\\M-;", "\u043b"], ["\\M-P\\M-<", "\u043c"], ["\\M-P\\M-=", "\u043d"], ["\\M-P\\M->", "\u043e"], ["\\M-P\\M-?", "\u043f"], ["\\M-Q\\M^@", "\u0440"], ["\\M-Q\\M^A", "\u0441"], ["\\M-Q\\M^B", "\u0442"], ["\\M-Q\\M^C", "\u0443"], ["\\M-Q\\M^D", "\u0444"], ["\\M-Q\\M^E", "\u0445"], ["\\M-Q\\M^F", "\u0446"], ["\\M-Q\\M^G", "\u0447"], ["\\M-Q\\M^H", "\u0448"], ["\\M-Q\\M^I", "\u0449"], ["\\M-Q\\M^J", "\u044a"], ["\\M-Q\\M^K", "\u044b"], ["\\M-Q\\M^L", "\u044c"], ["\\M-Q\\M^M", "\u044d"], ["\\M-Q\\M^N", "\u044e"], ["\\M-Q\\M^O", "\u044f"], ["\\M-Q\\M^P", "\u0450"], ["\\M-Q\\M^Q", "\u0451"], ["\\M-Q\\M^R", "\u0452"], ["\\M-Q\\M^S", "\u0453"], ["\\M-Q\\M^T", "\u0454"], ["\\M-Q\\M^U", "\u0455"], ["\\M-Q\\M^V", "\u0456"], ["\\M-Q\\M^W", "\u0457"], ["\\M-Q\\M^X", "\u0458"], ["\\M-Q\\M^Y", "\u0459"], ["\\M-Q\\M^Z", "\u045a"], ["\\M-Q\\M^[", "\u045b"], ["\\M-Q\\M^\\", "\u045c"], ["\\M-Q\\M^]", "\u045d"], ["\\M-Q\\M^^", "\u045e"], ["\\M-Q\\M^_", "\u045f"], ["\\M-Q\\240", "\u0460"], ["\\M-Q\\M-!", "\u0461"], ["\\M-Q\\M-\"", "\u0462"], ["\\M-Q\\M-#", "\u0463"], ["\\M-Q\\M-$", "\u0464"], ["\\M-Q\\M-%", "\u0465"], ["\\M-Q\\M-&", "\u0466"], ["\\M-Q\\M-'", "\u0467"], ["\\M-Q\\M-(", "\u0468"], ["\\M-Q\\M-)", "\u0469"], ["\\M-Q\\M-*", "\u046a"], ["\\M-Q\\M-+", "\u046b"], ["\\M-Q\\M-,", "\u046c"], ["\\M-Q\\M--", "\u046d"], ["\\M-Q\\M-.", "\u046e"], ["\\M-Q\\M-/", "\u046f"], ["\\M-Q\\M-0", "\u0470"], ["\\M-Q\\M-1", "\u0471"], ["\\M-Q\\M-2", "\u0472"], ["\\M-Q\\M-3", "\u0473"], ["\\M-Q\\M-4", "\u0474"], ["\\M-Q\\M-5", "\u0475"], ["\\M-Q\\M-6", "\u0476"], ["\\M-Q\\M-7", "\u0477"], ["\\M-Q\\M-8", "\u0478"], ["\\M-Q\\M-9", "\u0479"], ["\\M-Q\\M-:", "\u047a"], ["\\M-Q\\M-;", "\u047b"], ["\\M-Q\\M-<", "\u047c"], ["\\M-Q\\M-=", "\u047d"], ["\\M-Q\\M->", "\u047e"], ["\\M-Q\\M-?", "\u047f"], ["\\M-R\\M^@", "\u0480"], ["\\M-R\\M^A", "\u0481"], ["\\M-R\\M^B", "\u0482"], ["\\M-R\\M^C", "\u0483"], ["\\M-R\\M^D", "\u0484"], ["\\M-R\\M^E", "\u0485"], ["\\M-R\\M^F", "\u0486"], ["\\M-R\\M^G", "\u0487"], ["\\M-R\\M^H", "\u0488"], ["\\M-R\\M^I", "\u0489"], ["\\M-R\\M^J", "\u048a"], ["\\M-R\\M^K", "\u048b"], ["\\M-R\\M^L", "\u048c"], ["\\M-R\\M^M", "\u048d"], ["\\M-R\\M^N", "\u048e"], ["\\M-R\\M^O", "\u048f"], ["\\M-R\\M^P", "\u0490"], ["\\M-R\\M^Q", "\u0491"], ["\\M-R\\M^R", "\u0492"], ["\\M-R\\M^S", "\u0493"], ["\\M-R\\M^T", "\u0494"], ["\\M-R\\M^U", "\u0495"], ["\\M-R\\M^V", "\u0496"], ["\\M-R\\M^W", "\u0497"], ["\\M-R\\M^X", "\u0498"], ["\\M-R\\M^Y", "\u0499"], ["\\M-R\\M^Z", "\u049a"], ["\\M-R\\M^[", "\u049b"], ["\\M-R\\M^\\", "\u049c"], ["\\M-R\\M^]", "\u049d"], ["\\M-R\\M^^", "\u049e"], ["\\M-R\\M^_", "\u049f"], ["\\M-R\\240", "\u04a0"], ["\\M-R\\M-!", "\u04a1"], ["\\M-R\\M-\"", "\u04a2"], ["\\M-R\\M-#", "\u04a3"], ["\\M-R\\M-$", "\u04a4"], ["\\M-R\\M-%", "\u04a5"], ["\\M-R\\M-&", "\u04a6"], ["\\M-R\\M-'", "\u04a7"], ["\\M-R\\M-(", "\u04a8"], ["\\M-R\\M-)", "\u04a9"], ["\\M-R\\M-*", "\u04aa"], ["\\M-R\\M-+", "\u04ab"], ["\\M-R\\M-,", "\u04ac"], ["\\M-R\\M--", "\u04ad"], ["\\M-R\\M-.", "\u04ae"], ["\\M-R\\M-/", "\u04af"], ["\\M-R\\M-0", "\u04b0"], ["\\M-R\\M-1", "\u04b1"], ["\\M-R\\M-2", "\u04b2"], ["\\M-R\\M-3", "\u04b3"], ["\\M-R\\M-4", "\u04b4"], ["\\M-R\\M-5", "\u04b5"], ["\\M-R\\M-6", "\u04b6"], ["\\M-R\\M-7", "\u04b7"], ["\\M-R\\M-8", "\u04b8"], ["\\M-R\\M-9", "\u04b9"], ["\\M-R\\M-:", "\u04ba"], ["\\M-R\\M-;", "\u04bb"], ["\\M-R\\M-<", "\u04bc"], ["\\M-R\\M-=", "\u04bd"], ["\\M-R\\M->", "\u04be"], ["\\M-R\\M-?", "\u04bf"], ["\\M-S\\M^@", "\u04c0"], ["\\M-S\\M^A", "\u04c1"], ["\\M-S\\M^B", "\u04c2"], ["\\M-S\\M^C", "\u04c3"], ["\\M-S\\M^D", "\u04c4"], ["\\M-S\\M^E", "\u04c5"], ["\\M-S\\M^F", "\u04c6"], ["\\M-S\\M^G", "\u04c7"], ["\\M-S\\M^H", "\u04c8"], ["\\M-S\\M^I", "\u04c9"], ["\\M-S\\M^J", "\u04ca"], ["\\M-S\\M^K", "\u04cb"], ["\\M-S\\M^L", "\u04cc"], ["\\M-S\\M^M", "\u04cd"], ["\\M-S\\M^N", "\u04ce"], ["\\M-S\\M^O", "\u04cf"], ["\\M-S\\M^P", "\u04d0"], ["\\M-S\\M^Q", "\u04d1"], ["\\M-S\\M^R", "\u04d2"], ["\\M-S\\M^S", "\u04d3"], ["\\M-S\\M^T", "\u04d4"], ["\\M-S\\M^U", "\u04d5"], ["\\M-S\\M^V", "\u04d6"], ["\\M-S\\M^W", "\u04d7"], ["\\M-S\\M^X", "\u04d8"], ["\\M-S\\M^Y", "\u04d9"], ["\\M-S\\M^Z", "\u04da"], ["\\M-S\\M^[", "\u04db"], ["\\M-S\\M^\\", "\u04dc"], ["\\M-S\\M^]", "\u04dd"], ["\\M-S\\M^^", "\u04de"], ["\\M-S\\M^_", "\u04df"], ["\\M-S\\240", "\u04e0"], ["\\M-S\\M-!", "\u04e1"], ["\\M-S\\M-\"", "\u04e2"], ["\\M-S\\M-#", "\u04e3"], ["\\M-S\\M-$", "\u04e4"], ["\\M-S\\M-%", "\u04e5"], ["\\M-S\\M-&", "\u04e6"], ["\\M-S\\M-'", "\u04e7"], ["\\M-S\\M-(", "\u04e8"], ["\\M-S\\M-)", "\u04e9"], ["\\M-S\\M-*", "\u04ea"], ["\\M-S\\M-+", "\u04eb"], ["\\M-S\\M-,", "\u04ec"], ["\\M-S\\M--", "\u04ed"], ["\\M-S\\M-.", "\u04ee"], ["\\M-S\\M-/", "\u04ef"], ["\\M-S\\M-0", "\u04f0"], ["\\M-S\\M-1", "\u04f1"], ["\\M-S\\M-2", "\u04f2"], ["\\M-S\\M-3", "\u04f3"], ["\\M-S\\M-4", "\u04f4"], ["\\M-S\\M-5", "\u04f5"], ["\\M-S\\M-6", "\u04f6"], ["\\M-S\\M-7", "\u04f7"], ["\\M-S\\M-8", "\u04f8"], ["\\M-S\\M-9", "\u04f9"], ["\\M-S\\M-:", "\u04fa"], ["\\M-S\\M-;", "\u04fb"], ["\\M-S\\M-<", "\u04fc"], ["\\M-S\\M-=", "\u04fd"], ["\\M-S\\M->", "\u04fe"], ["\\M-S\\M-?", "\u04ff"], ["\\M-T\\M^@", "\u0500"], ["\\M-T\\M^A", "\u0501"], ["\\M-T\\M^B", "\u0502"], ["\\M-T\\M^C", "\u0503"], ["\\M-T\\M^D", "\u0504"], ["\\M-T\\M^E", "\u0505"], ["\\M-T\\M^F", "\u0506"], ["\\M-T\\M^G", "\u0507"], ["\\M-T\\M^H", "\u0508"], ["\\M-T\\M^I", "\u0509"], ["\\M-T\\M^J", "\u050a"], ["\\M-T\\M^K", "\u050b"], ["\\M-T\\M^L", "\u050c"], ["\\M-T\\M^M", "\u050d"], ["\\M-T\\M^N", "\u050e"], ["\\M-T\\M^O", "\u050f"], ["\\M-T\\M^P", "\u0510"], ["\\M-T\\M^Q", "\u0511"], ["\\M-T\\M^R", "\u0512"], ["\\M-T\\M^S", "\u0513"], ["\\M-T\\M^T", "\u0514"], ["\\M-T\\M^U", "\u0515"], ["\\M-T\\M^V", "\u0516"], ["\\M-T\\M^W", "\u0517"], ["\\M-T\\M^X", "\u0518"], ["\\M-T\\M^Y", "\u0519"], ["\\M-T\\M^Z", "\u051a"], ["\\M-T\\M^[", "\u051b"], ["\\M-T\\M^\\", "\u051c"], ["\\M-T\\M^]", "\u051d"], ["\\M-T\\M^^", "\u051e"], ["\\M-T\\M^_", "\u051f"], ["\\M-T\\240", "\u0520"], ["\\M-T\\M-!", "\u0521"], ["\\M-T\\M-\"", "\u0522"], ["\\M-T\\M-#", "\u0523"], ["\\M-T\\M-$", "\u0524"], ["\\M-T\\M-%", "\u0525"], ["\\M-T\\M-&", "\u0526"], ["\\M-T\\M-'", "\u0527"], ["\\M-T\\M-(", "\u0528"], ["\\M-T\\M-)", "\u0529"], ["\\M-T\\M-*", "\u052a"], ["\\M-T\\M-+", "\u052b"], ["\\M-T\\M-,", "\u052c"], ["\\M-T\\M--", "\u052d"], ["\\M-T\\M-.", "\u052e"], ["\\M-T\\M-/", "\u052f"], ["\\M-V\\M^P", "\u0590"], ["\\M-V\\M^Q", "\u0591"], ["\\M-V\\M^R", "\u0592"], ["\\M-V\\M^S", "\u0593"], ["\\M-V\\M^T", "\u0594"], ["\\M-V\\M^U", "\u0595"], ["\\M-V\\M^V", "\u0596"], ["\\M-V\\M^W", "\u0597"], ["\\M-V\\M^X", "\u0598"], ["\\M-V\\M^Y", "\u0599"], ["\\M-V\\M^Z", "\u059a"], ["\\M-V\\M^[", "\u059b"], ["\\M-V\\M^\\", "\u059c"], ["\\M-V\\M^]", "\u059d"], ["\\M-V\\M^^", "\u059e"], ["\\M-V\\M^_", "\u059f"], ["\\M-V\\240", "\u05a0"], ["\\M-V\\M-!", "\u05a1"], ["\\M-V\\M-\"", "\u05a2"], ["\\M-V\\M-#", "\u05a3"], ["\\M-V\\M-$", "\u05a4"], ["\\M-V\\M-%", "\u05a5"], ["\\M-V\\M-&", "\u05a6"], ["\\M-V\\M-'", "\u05a7"], ["\\M-V\\M-(", "\u05a8"], ["\\M-V\\M-)", "\u05a9"], ["\\M-V\\M-*", "\u05aa"], ["\\M-V\\M-+", "\u05ab"], ["\\M-V\\M-,", "\u05ac"], ["\\M-V\\M--", "\u05ad"], ["\\M-V\\M-.", "\u05ae"], ["\\M-V\\M-/", "\u05af"], ["\\M-V\\M-0", "\u05b0"], ["\\M-V\\M-1", "\u05b1"], ["\\M-V\\M-2", "\u05b2"], ["\\M-V\\M-3", "\u05b3"], ["\\M-V\\M-4", "\u05b4"], ["\\M-V\\M-5", "\u05b5"], ["\\M-V\\M-6", "\u05b6"], ["\\M-V\\M-7", "\u05b7"], ["\\M-V\\M-8", "\u05b8"], ["\\M-V\\M-9", "\u05b9"], ["\\M-V\\M-:", "\u05ba"], ["\\M-V\\M-;", "\u05bb"], ["\\M-V\\M-<", "\u05bc"], ["\\M-V\\M-=", "\u05bd"], ["\\M-V\\M->", "\u05be"], ["\\M-V\\M-?", "\u05bf"], ["\\M-W\\M^@", "\u05c0"], ["\\M-W\\M^A", "\u05c1"], ["\\M-W\\M^B", "\u05c2"], ["\\M-W\\M^C", "\u05c3"], ["\\M-W\\M^D", "\u05c4"], ["\\M-W\\M^E", "\u05c5"], ["\\M-W\\M^F", "\u05c6"], ["\\M-W\\M^G", "\u05c7"], ["\\M-W\\M^H", "\u05c8"], ["\\M-W\\M^I", "\u05c9"], ["\\M-W\\M^J", "\u05ca"], ["\\M-W\\M^K", "\u05cb"], ["\\M-W\\M^L", "\u05cc"], ["\\M-W\\M^M", "\u05cd"], ["\\M-W\\M^N", "\u05ce"], ["\\M-W\\M^O", "\u05cf"], ["\\M-W\\M^P", "\u05d0"], ["\\M-W\\M^Q", "\u05d1"], ["\\M-W\\M^R", "\u05d2"], ["\\M-W\\M^S", "\u05d3"], ["\\M-W\\M^T", "\u05d4"], ["\\M-W\\M^U", "\u05d5"], ["\\M-W\\M^V", "\u05d6"], ["\\M-W\\M^W", "\u05d7"], ["\\M-W\\M^X", "\u05d8"], ["\\M-W\\M^Y", "\u05d9"], ["\\M-W\\M^Z", "\u05da"], ["\\M-W\\M^[", "\u05db"], ["\\M-W\\M^\\", "\u05dc"], ["\\M-W\\M^]", "\u05dd"], ["\\M-W\\M^^", "\u05de"], ["\\M-W\\M^_", "\u05df"], ["\\M-W\\240", "\u05e0"], ["\\M-W\\M-!", "\u05e1"], ["\\M-W\\M-\"", "\u05e2"], ["\\M-W\\M-#", "\u05e3"], ["\\M-W\\M-$", "\u05e4"], ["\\M-W\\M-%", "\u05e5"], ["\\M-W\\M-&", "\u05e6"], ["\\M-W\\M-'", "\u05e7"], ["\\M-W\\M-(", "\u05e8"], ["\\M-W\\M-)", "\u05e9"], ["\\M-W\\M-*", "\u05ea"], ["\\M-W\\M-+", "\u05eb"], ["\\M-W\\M-,", "\u05ec"], ["\\M-W\\M--", "\u05ed"], ["\\M-W\\M-.", "\u05ee"], ["\\M-W\\M-/", "\u05ef"], ["\\M-W\\M-0", "\u05f0"], ["\\M-W\\M-1", "\u05f1"], ["\\M-W\\M-2", "\u05f2"], ["\\M-W\\M-3", "\u05f3"], ["\\M-W\\M-4", "\u05f4"], ["\\M-W\\M-5", "\u05f5"], ["\\M-W\\M-6", "\u05f6"], ["\\M-W\\M-7", "\u05f7"], ["\\M-W\\M-8", "\u05f8"], ["\\M-W\\M-9", "\u05f9"], ["\\M-W\\M-:", "\u05fa"], ["\\M-W\\M-;", "\u05fb"], ["\\M-W\\M-<", "\u05fc"], ["\\M-W\\M-=", "\u05fd"], ["\\M-W\\M->", "\u05fe"], ["\\M-W\\M-?", "\u05ff"], ["\\M-X\\M^@", "\u0600"], ["\\M-X\\M^A", "\u0601"], ["\\M-X\\M^B", "\u0602"], ["\\M-X\\M^C", "\u0603"], ["\\M-X\\M^D", "\u0604"], ["\\M-X\\M^E", "\u0605"], ["\\M-X\\M^F", "\u0606"], ["\\M-X\\M^G", "\u0607"], ["\\M-X\\M^H", "\u0608"], ["\\M-X\\M^I", "\u0609"], ["\\M-X\\M^J", "\u060a"], ["\\M-X\\M^K", "\u060b"], ["\\M-X\\M^L", "\u060c"], ["\\M-X\\M^M", "\u060d"], ["\\M-X\\M^N", "\u060e"], ["\\M-X\\M^O", "\u060f"], ["\\M-X\\M^P", "\u0610"], ["\\M-X\\M^Q", "\u0611"], ["\\M-X\\M^R", "\u0612"], ["\\M-X\\M^S", "\u0613"], ["\\M-X\\M^T", "\u0614"], ["\\M-X\\M^U", "\u0615"], ["\\M-X\\M^V", "\u0616"], ["\\M-X\\M^W", "\u0617"], ["\\M-X\\M^X", "\u0618"], ["\\M-X\\M^Y", "\u0619"], ["\\M-X\\M^Z", "\u061a"], ["\\M-X\\M^[", "\u061b"], ["\\M-X\\M^\\", "\u061c"], ["\\M-X\\M^]", "\u061d"], ["\\M-X\\M^^", "\u061e"], ["\\M-X\\M^_", "\u061f"], ["\\M-X\\240", "\u0620"], ["\\M-X\\M-!", "\u0621"], ["\\M-X\\M-\"", "\u0622"], ["\\M-X\\M-#", "\u0623"], ["\\M-X\\M-$", "\u0624"], ["\\M-X\\M-%", "\u0625"], ["\\M-X\\M-&", "\u0626"], ["\\M-X\\M-'", "\u0627"], ["\\M-X\\M-(", "\u0628"], ["\\M-X\\M-)", "\u0629"], ["\\M-X\\M-*", "\u062a"], ["\\M-X\\M-+", "\u062b"], ["\\M-X\\M-,", "\u062c"], ["\\M-X\\M--", "\u062d"], ["\\M-X\\M-.", "\u062e"], ["\\M-X\\M-/", "\u062f"], ["\\M-X\\M-0", "\u0630"], ["\\M-X\\M-1", "\u0631"], ["\\M-X\\M-2", "\u0632"], ["\\M-X\\M-3", "\u0633"], ["\\M-X\\M-4", "\u0634"], ["\\M-X\\M-5", "\u0635"], ["\\M-X\\M-6", "\u0636"], ["\\M-X\\M-7", "\u0637"], ["\\M-X\\M-8", "\u0638"], ["\\M-X\\M-9", "\u0639"], ["\\M-X\\M-:", "\u063a"], ["\\M-X\\M-;", "\u063b"], ["\\M-X\\M-<", "\u063c"], ["\\M-X\\M-=", "\u063d"], ["\\M-X\\M->", "\u063e"], ["\\M-X\\M-?", "\u063f"], ["\\M-Y\\M^@", "\u0640"], ["\\M-Y\\M^A", "\u0641"], ["\\M-Y\\M^B", "\u0642"], ["\\M-Y\\M^C", "\u0643"], ["\\M-Y\\M^D", "\u0644"], ["\\M-Y\\M^E", "\u0645"], ["\\M-Y\\M^F", "\u0646"], ["\\M-Y\\M^G", "\u0647"], ["\\M-Y\\M^H", "\u0648"], ["\\M-Y\\M^I", "\u0649"], ["\\M-Y\\M^J", "\u064a"], ["\\M-Y\\M^K", "\u064b"], ["\\M-Y\\M^L", "\u064c"], ["\\M-Y\\M^M", "\u064d"], ["\\M-Y\\M^N", "\u064e"], ["\\M-Y\\M^O", "\u064f"], ["\\M-Y\\M^P", "\u0650"], ["\\M-Y\\M^Q", "\u0651"], ["\\M-Y\\M^R", "\u0652"], ["\\M-Y\\M^S", "\u0653"], ["\\M-Y\\M^T", "\u0654"], ["\\M-Y\\M^U", "\u0655"], ["\\M-Y\\M^V", "\u0656"], ["\\M-Y\\M^W", "\u0657"], ["\\M-Y\\M^X", "\u0658"], ["\\M-Y\\M^Y", "\u0659"], ["\\M-Y\\M^Z", "\u065a"], ["\\M-Y\\M^[", "\u065b"], ["\\M-Y\\M^\\", "\u065c"], ["\\M-Y\\M^]", "\u065d"], ["\\M-Y\\M^^", "\u065e"], ["\\M-Y\\M^_", "\u065f"], ["\\M-Y\\240", "\u0660"], ["\\M-Y\\M-!", "\u0661"], ["\\M-Y\\M-\"", "\u0662"], ["\\M-Y\\M-#", "\u0663"], ["\\M-Y\\M-$", "\u0664"], ["\\M-Y\\M-%", "\u0665"], ["\\M-Y\\M-&", "\u0666"], ["\\M-Y\\M-'", "\u0667"], ["\\M-Y\\M-(", "\u0668"], ["\\M-Y\\M-)", "\u0669"], ["\\M-Y\\M-*", "\u066a"], ["\\M-Y\\M-+", "\u066b"], ["\\M-Y\\M-,", "\u066c"], ["\\M-Y\\M--", "\u066d"], ["\\M-Y\\M-.", "\u066e"], ["\\M-Y\\M-/", "\u066f"], ["\\M-Y\\M-0", "\u0670"], ["\\M-Y\\M-1", "\u0671"], ["\\M-Y\\M-2", "\u0672"], ["\\M-Y\\M-3", "\u0673"], ["\\M-Y\\M-4", "\u0674"], ["\\M-Y\\M-5", "\u0675"], ["\\M-Y\\M-6", "\u0676"], ["\\M-Y\\M-7", "\u0677"], ["\\M-Y\\M-8", "\u0678"], ["\\M-Y\\M-9", "\u0679"], ["\\M-Y\\M-:", "\u067a"], ["\\M-Y\\M-;", "\u067b"], ["\\M-Y\\M-<", "\u067c"], ["\\M-Y\\M-=", "\u067d"], ["\\M-Y\\M->", "\u067e"], ["\\M-Y\\M-?", "\u067f"], ["\\M-Z\\M^@", "\u0680"], ["\\M-Z\\M^A", "\u0681"], ["\\M-Z\\M^B", "\u0682"], ["\\M-Z\\M^C", "\u0683"], ["\\M-Z\\M^D", "\u0684"], ["\\M-Z\\M^E", "\u0685"], ["\\M-Z\\M^F", "\u0686"], ["\\M-Z\\M^G", "\u0687"], ["\\M-Z\\M^H", "\u0688"], ["\\M-Z\\M^I", "\u0689"], ["\\M-Z\\M^J", "\u068a"], ["\\M-Z\\M^K", "\u068b"], ["\\M-Z\\M^L", "\u068c"], ["\\M-Z\\M^M", "\u068d"], ["\\M-Z\\M^N", "\u068e"], ["\\M-Z\\M^O", "\u068f"], ["\\M-Z\\M^P", "\u0690"], ["\\M-Z\\M^Q", "\u0691"], ["\\M-Z\\M^R", "\u0692"], ["\\M-Z\\M^S", "\u0693"], ["\\M-Z\\M^T", "\u0694"], ["\\M-Z\\M^U", "\u0695"], ["\\M-Z\\M^V", "\u0696"], ["\\M-Z\\M^W", "\u0697"], ["\\M-Z\\M^X", "\u0698"], ["\\M-Z\\M^Y", "\u0699"], ["\\M-Z\\M^Z", "\u069a"], ["\\M-Z\\M^[", "\u069b"], ["\\M-Z\\M^\\", "\u069c"], ["\\M-Z\\M^]", "\u069d"], ["\\M-Z\\M^^", "\u069e"], ["\\M-Z\\M^_", "\u069f"], ["\\M-Z\\240", "\u06a0"], ["\\M-Z\\M-!", "\u06a1"], ["\\M-Z\\M-\"", "\u06a2"], ["\\M-Z\\M-#", "\u06a3"], ["\\M-Z\\M-$", "\u06a4"], ["\\M-Z\\M-%", "\u06a5"], ["\\M-Z\\M-&", "\u06a6"], ["\\M-Z\\M-'", "\u06a7"], ["\\M-Z\\M-(", "\u06a8"], ["\\M-Z\\M-)", "\u06a9"], ["\\M-Z\\M-*", "\u06aa"], ["\\M-Z\\M-+", "\u06ab"], ["\\M-Z\\M-,", "\u06ac"], ["\\M-Z\\M--", "\u06ad"], ["\\M-Z\\M-.", "\u06ae"], ["\\M-Z\\M-/", "\u06af"], ["\\M-Z\\M-0", "\u06b0"], ["\\M-Z\\M-1", "\u06b1"], ["\\M-Z\\M-2", "\u06b2"], ["\\M-Z\\M-3", "\u06b3"], ["\\M-Z\\M-4", "\u06b4"], ["\\M-Z\\M-5", "\u06b5"], ["\\M-Z\\M-6", "\u06b6"], ["\\M-Z\\M-7", "\u06b7"], ["\\M-Z\\M-8", "\u06b8"], ["\\M-Z\\M-9", "\u06b9"], ["\\M-Z\\M-:", "\u06ba"], ["\\M-Z\\M-;", "\u06bb"], ["\\M-Z\\M-<", "\u06bc"], ["\\M-Z\\M-=", "\u06bd"], ["\\M-Z\\M->", "\u06be"], ["\\M-Z\\M-?", "\u06bf"], ["\\M-[\\M^@", "\u06c0"], ["\\M-[\\M^A", "\u06c1"], ["\\M-[\\M^B", "\u06c2"], ["\\M-[\\M^C", "\u06c3"], ["\\M-[\\M^D", "\u06c4"], ["\\M-[\\M^E", "\u06c5"], ["\\M-[\\M^F", "\u06c6"], ["\\M-[\\M^G", "\u06c7"], ["\\M-[\\M^H", "\u06c8"], ["\\M-[\\M^I", "\u06c9"], ["\\M-[\\M^J", "\u06ca"], ["\\M-[\\M^K", "\u06cb"], ["\\M-[\\M^L", "\u06cc"], ["\\M-[\\M^M", "\u06cd"], ["\\M-[\\M^N", "\u06ce"], ["\\M-[\\M^O", "\u06cf"], ["\\M-[\\M^P", "\u06d0"], ["\\M-[\\M^Q", "\u06d1"], ["\\M-[\\M^R", "\u06d2"], ["\\M-[\\M^S", "\u06d3"], ["\\M-[\\M^T", "\u06d4"], ["\\M-[\\M^U", "\u06d5"], ["\\M-[\\M^V", "\u06d6"], ["\\M-[\\M^W", "\u06d7"], ["\\M-[\\M^X", "\u06d8"], ["\\M-[\\M^Y", "\u06d9"], ["\\M-[\\M^Z", "\u06da"], ["\\M-[\\M^[", "\u06db"], ["\\M-[\\M^\\", "\u06dc"], ["\\M-[\\M^]", "\u06dd"], ["\\M-[\\M^^", "\u06de"], ["\\M-[\\M^_", "\u06df"], ["\\M-[\\240", "\u06e0"], ["\\M-[\\M-!", "\u06e1"], ["\\M-[\\M-\"", "\u06e2"], ["\\M-[\\M-#", "\u06e3"], ["\\M-[\\M-$", "\u06e4"], ["\\M-[\\M-%", "\u06e5"], ["\\M-[\\M-&", "\u06e6"], ["\\M-[\\M-'", "\u06e7"], ["\\M-[\\M-(", "\u06e8"], ["\\M-[\\M-)", "\u06e9"], ["\\M-[\\M-*", "\u06ea"], ["\\M-[\\M-+", "\u06eb"], ["\\M-[\\M-,", "\u06ec"], ["\\M-[\\M--", "\u06ed"], ["\\M-[\\M-.", "\u06ee"], ["\\M-[\\M-/", "\u06ef"], ["\\M-[\\M-0", "\u06f0"], ["\\M-[\\M-1", "\u06f1"], ["\\M-[\\M-2", "\u06f2"], ["\\M-[\\M-3", "\u06f3"], ["\\M-[\\M-4", "\u06f4"], ["\\M-[\\M-5", "\u06f5"], ["\\M-[\\M-6", "\u06f6"], ["\\M-[\\M-7", "\u06f7"], ["\\M-[\\M-8", "\u06f8"], ["\\M-[\\M-9", "\u06f9"], ["\\M-[\\M-:", "\u06fa"], ["\\M-[\\M-;", "\u06fb"], ["\\M-[\\M-<", "\u06fc"], ["\\M-[\\M-=", "\u06fd"], ["\\M-[\\M->", "\u06fe"], ["\\M-[\\M-?", "\u06ff"], ["\\M-b\\M-:\\M^@", "\u2e80"], ["\\M-b\\M-:\\M^A", "\u2e81"], ["\\M-b\\M-:\\M^B", "\u2e82"], ["\\M-b\\M-:\\M^C", "\u2e83"], ["\\M-b\\M-:\\M^D", "\u2e84"], ["\\M-b\\M-:\\M^E", "\u2e85"], ["\\M-b\\M-:\\M^F", "\u2e86"], ["\\M-b\\M-:\\M^G", "\u2e87"], ["\\M-b\\M-:\\M^H", "\u2e88"], ["\\M-b\\M-:\\M^I", "\u2e89"], ["\\M-b\\M-:\\M^J", "\u2e8a"], ["\\M-b\\M-:\\M^K", "\u2e8b"], ["\\M-b\\M-:\\M^L", "\u2e8c"], ["\\M-b\\M-:\\M^M", "\u2e8d"], ["\\M-b\\M-:\\M^N", "\u2e8e"], ["\\M-b\\M-:\\M^O", "\u2e8f"], ["\\M-b\\M-:\\M^P", "\u2e90"], ["\\M-b\\M-:\\M^Q", "\u2e91"], ["\\M-b\\M-:\\M^R", "\u2e92"], ["\\M-b\\M-:\\M^S", "\u2e93"], ["\\M-b\\M-:\\M^T", "\u2e94"], ["\\M-b\\M-:\\M^U", "\u2e95"], ["\\M-b\\M-:\\M^V", "\u2e96"], ["\\M-b\\M-:\\M^W", "\u2e97"], ["\\M-b\\M-:\\M^X", "\u2e98"], ["\\M-b\\M-:\\M^Y", "\u2e99"], ["\\M-b\\M-:\\M^Z", "\u2e9a"], ["\\M-b\\M-:\\M^[", "\u2e9b"], ["\\M-b\\M-:\\M^\\", "\u2e9c"], ["\\M-b\\M-:\\M^]", "\u2e9d"], ["\\M-b\\M-:\\M^^", "\u2e9e"], ["\\M-b\\M-:\\M^_", "\u2e9f"], ["\\M-b\\M-:\\240", "\u2ea0"], ["\\M-b\\M-:\\M-!", "\u2ea1"], ["\\M-b\\M-:\\M-\"", "\u2ea2"], ["\\M-b\\M-:\\M-#", "\u2ea3"], ["\\M-b\\M-:\\M-$", "\u2ea4"], ["\\M-b\\M-:\\M-%", "\u2ea5"], ["\\M-b\\M-:\\M-&", "\u2ea6"], ["\\M-b\\M-:\\M-'", "\u2ea7"], ["\\M-b\\M-:\\M-(", "\u2ea8"], ["\\M-b\\M-:\\M-)", "\u2ea9"], ["\\M-b\\M-:\\M-*", "\u2eaa"], ["\\M-b\\M-:\\M-+", "\u2eab"], ["\\M-b\\M-:\\M-,", "\u2eac"], ["\\M-b\\M-:\\M--", "\u2ead"], ["\\M-b\\M-:\\M-.", "\u2eae"], ["\\M-b\\M-:\\M-/", "\u2eaf"], ["\\M-b\\M-:\\M-0", "\u2eb0"], ["\\M-b\\M-:\\M-1", "\u2eb1"], ["\\M-b\\M-:\\M-2", "\u2eb2"], ["\\M-b\\M-:\\M-3", "\u2eb3"], ["\\M-b\\M-:\\M-4", "\u2eb4"], ["\\M-b\\M-:\\M-5", "\u2eb5"], ["\\M-b\\M-:\\M-6", "\u2eb6"], ["\\M-b\\M-:\\M-7", "\u2eb7"], ["\\M-b\\M-:\\M-8", "\u2eb8"], ["\\M-b\\M-:\\M-9", "\u2eb9"], ["\\M-b\\M-:\\M-:", "\u2eba"], ["\\M-b\\M-:\\M-;", "\u2ebb"], ["\\M-b\\M-:\\M-<", "\u2ebc"], ["\\M-b\\M-:\\M-=", "\u2ebd"], ["\\M-b\\M-:\\M->", "\u2ebe"], ["\\M-b\\M-:\\M-?", "\u2ebf"], ["\\M-b\\M-;\\M^@", "\u2ec0"], ["\\M-b\\M-;\\M^A", "\u2ec1"], ["\\M-b\\M-;\\M^B", "\u2ec2"], ["\\M-b\\M-;\\M^C", "\u2ec3"], ["\\M-b\\M-;\\M^D", "\u2ec4"], ["\\M-b\\M-;\\M^E", "\u2ec5"], ["\\M-b\\M-;\\M^F", "\u2ec6"], ["\\M-b\\M-;\\M^G", "\u2ec7"], ["\\M-b\\M-;\\M^H", "\u2ec8"], ["\\M-b\\M-;\\M^I", "\u2ec9"], ["\\M-b\\M-;\\M^J", "\u2eca"], ["\\M-b\\M-;\\M^K", "\u2ecb"], ["\\M-b\\M-;\\M^L", "\u2ecc"], ["\\M-b\\M-;\\M^M", "\u2ecd"], ["\\M-b\\M-;\\M^N", "\u2ece"], ["\\M-b\\M-;\\M^O", "\u2ecf"], ["\\M-b\\M-;\\M^P", "\u2ed0"], ["\\M-b\\M-;\\M^Q", "\u2ed1"], ["\\M-b\\M-;\\M^R", "\u2ed2"], ["\\M-b\\M-;\\M^S", "\u2ed3"], ["\\M-b\\M-;\\M^T", "\u2ed4"], ["\\M-b\\M-;\\M^U", "\u2ed5"], ["\\M-b\\M-;\\M^V", "\u2ed6"], ["\\M-b\\M-;\\M^W", "\u2ed7"], ["\\M-b\\M-;\\M^X", "\u2ed8"], ["\\M-b\\M-;\\M^Y", "\u2ed9"], ["\\M-b\\M-;\\M^Z", "\u2eda"], ["\\M-b\\M-;\\M^[", "\u2edb"], ["\\M-b\\M-;\\M^\\", "\u2edc"], ["\\M-b\\M-;\\M^]", "\u2edd"], ["\\M-b\\M-;\\M^^", "\u2ede"], ["\\M-b\\M-;\\M^_", "\u2edf"], ["\\M-b\\M-;\\240", "\u2ee0"], ["\\M-b\\M-;\\M-!", "\u2ee1"], ["\\M-b\\M-;\\M-\"", "\u2ee2"], ["\\M-b\\M-;\\M-#", "\u2ee3"], ["\\M-b\\M-;\\M-$", "\u2ee4"], ["\\M-b\\M-;\\M-%", "\u2ee5"], ["\\M-b\\M-;\\M-&", "\u2ee6"], ["\\M-b\\M-;\\M-'", "\u2ee7"], ["\\M-b\\M-;\\M-(", "\u2ee8"], ["\\M-b\\M-;\\M-)", "\u2ee9"], ["\\M-b\\M-;\\M-*", "\u2eea"], ["\\M-b\\M-;\\M-+", "\u2eeb"], ["\\M-b\\M-;\\M-,", "\u2eec"], ["\\M-b\\M-;\\M--", "\u2eed"], ["\\M-b\\M-;\\M-.", "\u2eee"], ["\\M-b\\M-;\\M-/", "\u2eef"], ["\\M-b\\M-;\\M-0", "\u2ef0"], ["\\M-b\\M-;\\M-1", "\u2ef1"], ["\\M-b\\M-;\\M-2", "\u2ef2"], ["\\M-b\\M-;\\M-3", "\u2ef3"], ["\\M-b\\M-;\\M-4", "\u2ef4"], ["\\M-b\\M-;\\M-5", "\u2ef5"], ["\\M-b\\M-;\\M-6", "\u2ef6"], ["\\M-b\\M-;\\M-7", "\u2ef7"], ["\\M-b\\M-;\\M-8", "\u2ef8"], ["\\M-b\\M-;\\M-9", "\u2ef9"], ["\\M-b\\M-;\\M-:", "\u2efa"], ["\\M-b\\M-;\\M-;", "\u2efb"], ["\\M-b\\M-;\\M-<", "\u2efc"], ["\\M-b\\M-;\\M-=", "\u2efd"], ["\\M-b\\M-;\\M->", "\u2efe"], ["\\M-b\\M-;\\M-?", "\u2eff"], ["\\M-c\\M^A\\M^@", "\u3040"], ["\\M-c\\M^A\\M^A", "\u3041"], ["\\M-c\\M^A\\M^B", "\u3042"], ["\\M-c\\M^A\\M^C", "\u3043"], ["\\M-c\\M^A\\M^D", "\u3044"], ["\\M-c\\M^A\\M^E", "\u3045"], ["\\M-c\\M^A\\M^F", "\u3046"], ["\\M-c\\M^A\\M^G", "\u3047"], ["\\M-c\\M^A\\M^H", "\u3048"], ["\\M-c\\M^A\\M^I", "\u3049"], ["\\M-c\\M^A\\M^J", "\u304a"], ["\\M-c\\M^A\\M^K", "\u304b"], ["\\M-c\\M^A\\M^L", "\u304c"], ["\\M-c\\M^A\\M^M", "\u304d"], ["\\M-c\\M^A\\M^N", "\u304e"], ["\\M-c\\M^A\\M^O", "\u304f"], ["\\M-c\\M^A\\M^P", "\u3050"], ["\\M-c\\M^A\\M^Q", "\u3051"], ["\\M-c\\M^A\\M^R", "\u3052"], ["\\M-c\\M^A\\M^S", "\u3053"], ["\\M-c\\M^A\\M^T", "\u3054"], ["\\M-c\\M^A\\M^U", "\u3055"], ["\\M-c\\M^A\\M^V", "\u3056"], ["\\M-c\\M^A\\M^W", "\u3057"], ["\\M-c\\M^A\\M^X", "\u3058"], ["\\M-c\\M^A\\M^Y", "\u3059"], ["\\M-c\\M^A\\M^Z", "\u305a"], ["\\M-c\\M^A\\M^[", "\u305b"], ["\\M-c\\M^A\\M^\\", "\u305c"], ["\\M-c\\M^A\\M^]", "\u305d"], ["\\M-c\\M^A\\M^^", "\u305e"], ["\\M-c\\M^A\\M^_", "\u305f"], ["\\M-c\\M^A\\240", "\u3060"], ["\\M-c\\M^A\\M-!", "\u3061"], ["\\M-c\\M^A\\M-\"", "\u3062"], ["\\M-c\\M^A\\M-#", "\u3063"], ["\\M-c\\M^A\\M-$", "\u3064"], ["\\M-c\\M^A\\M-%", "\u3065"], ["\\M-c\\M^A\\M-&", "\u3066"], ["\\M-c\\M^A\\M-'", "\u3067"], ["\\M-c\\M^A\\M-(", "\u3068"], ["\\M-c\\M^A\\M-)", "\u3069"], ["\\M-c\\M^A\\M-*", "\u306a"], ["\\M-c\\M^A\\M-+", "\u306b"], ["\\M-c\\M^A\\M-,", "\u306c"], ["\\M-c\\M^A\\M--", "\u306d"], ["\\M-c\\M^A\\M-.", "\u306e"], ["\\M-c\\M^A\\M-/", "\u306f"], ["\\M-c\\M^A\\M-0", "\u3070"], ["\\M-c\\M^A\\M-1", "\u3071"], ["\\M-c\\M^A\\M-2", "\u3072"], ["\\M-c\\M^A\\M-3", "\u3073"], ["\\M-c\\M^A\\M-4", "\u3074"], ["\\M-c\\M^A\\M-5", "\u3075"], ["\\M-c\\M^A\\M-6", "\u3076"], ["\\M-c\\M^A\\M-7", "\u3077"], ["\\M-c\\M^A\\M-8", "\u3078"], ["\\M-c\\M^A\\M-9", "\u3079"], ["\\M-c\\M^A\\M-:", "\u307a"], ["\\M-c\\M^A\\M-;", "\u307b"], ["\\M-c\\M^A\\M-<", "\u307c"], ["\\M-c\\M^A\\M-=", "\u307d"], ["\\M-c\\M^A\\M->", "\u307e"], ["\\M-c\\M^A\\M-?", "\u307f"], ["\\M-c\\M^B\\M^@", "\u3080"], ["\\M-c\\M^B\\M^A", "\u3081"], ["\\M-c\\M^B\\M^B", "\u3082"], ["\\M-c\\M^B\\M^C", "\u3083"], ["\\M-c\\M^B\\M^D", "\u3084"], ["\\M-c\\M^B\\M^E", "\u3085"], ["\\M-c\\M^B\\M^F", "\u3086"], ["\\M-c\\M^B\\M^G", "\u3087"], ["\\M-c\\M^B\\M^H", "\u3088"], ["\\M-c\\M^B\\M^I", "\u3089"], ["\\M-c\\M^B\\M^J", "\u308a"], ["\\M-c\\M^B\\M^K", "\u308b"], ["\\M-c\\M^B\\M^L", "\u308c"], ["\\M-c\\M^B\\M^M", "\u308d"], ["\\M-c\\M^B\\M^N", "\u308e"], ["\\M-c\\M^B\\M^O", "\u308f"], ["\\M-c\\M^B\\M^P", "\u3090"], ["\\M-c\\M^B\\M^Q", "\u3091"], ["\\M-c\\M^B\\M^R", "\u3092"], ["\\M-c\\M^B\\M^S", "\u3093"], ["\\M-c\\M^B\\M^T", "\u3094"], ["\\M-c\\M^B\\M^U", "\u3095"], ["\\M-c\\M^B\\M^V", "\u3096"], ["\\M-c\\M^B\\M^W", "\u3097"], ["\\M-c\\M^B\\M^X", "\u3098"], ["\\M-c\\M^B\\M^Y", "\u3099"], ["\\M-c\\M^B\\M^Z", "\u309a"], ["\\M-c\\M^B\\M^[", "\u309b"], ["\\M-c\\M^B\\M^\\", "\u309c"], ["\\M-c\\M^B\\M^]", "\u309d"], ["\\M-c\\M^B\\M^^", "\u309e"], ["\\M-c\\M^B\\M^_", "\u309f"], ["\\M-c\\M^B\\240", "\u30a0"], ["\\M-c\\M^B\\M-!", "\u30a1"], ["\\M-c\\M^B\\M-\"", "\u30a2"], ["\\M-c\\M^B\\M-#", "\u30a3"], ["\\M-c\\M^B\\M-$", "\u30a4"], ["\\M-c\\M^B\\M-%", "\u30a5"], ["\\M-c\\M^B\\M-&", "\u30a6"], ["\\M-c\\M^B\\M-'", "\u30a7"], ["\\M-c\\M^B\\M-(", "\u30a8"], ["\\M-c\\M^B\\M-)", "\u30a9"], ["\\M-c\\M^B\\M-*", "\u30aa"], ["\\M-c\\M^B\\M-+", "\u30ab"], ["\\M-c\\M^B\\M-,", "\u30ac"], ["\\M-c\\M^B\\M--", "\u30ad"], ["\\M-c\\M^B\\M-.", "\u30ae"], ["\\M-c\\M^B\\M-/", "\u30af"], ["\\M-c\\M^B\\M-0", "\u30b0"], ["\\M-c\\M^B\\M-1", "\u30b1"], ["\\M-c\\M^B\\M-2", "\u30b2"], ["\\M-c\\M^B\\M-3", "\u30b3"], ["\\M-c\\M^B\\M-4", "\u30b4"], ["\\M-c\\M^B\\M-5", "\u30b5"], ["\\M-c\\M^B\\M-6", "\u30b6"], ["\\M-c\\M^B\\M-7", "\u30b7"], ["\\M-c\\M^B\\M-8", "\u30b8"], ["\\M-c\\M^B\\M-9", "\u30b9"], ["\\M-c\\M^B\\M-:", "\u30ba"], ["\\M-c\\M^B\\M-;", "\u30bb"], ["\\M-c\\M^B\\M-<", "\u30bc"], ["\\M-c\\M^B\\M-=", "\u30bd"], ["\\M-c\\M^B\\M->", "\u30be"], ["\\M-c\\M^B\\M-?", "\u30bf"], ["\\M-c\\M^C\\M^@", "\u30c0"], ["\\M-c\\M^C\\M^A", "\u30c1"], ["\\M-c\\M^C\\M^B", "\u30c2"], ["\\M-c\\M^C\\M^C", "\u30c3"], ["\\M-c\\M^C\\M^D", "\u30c4"], ["\\M-c\\M^C\\M^E", "\u30c5"], ["\\M-c\\M^C\\M^F", "\u30c6"], ["\\M-c\\M^C\\M^G", "\u30c7"], ["\\M-c\\M^C\\M^H", "\u30c8"], ["\\M-c\\M^C\\M^I", "\u30c9"], ["\\M-c\\M^C\\M^J", "\u30ca"], ["\\M-c\\M^C\\M^K", "\u30cb"], ["\\M-c\\M^C\\M^L", "\u30cc"], ["\\M-c\\M^C\\M^M", "\u30cd"], ["\\M-c\\M^C\\M^N", "\u30ce"], ["\\M-c\\M^C\\M^O", "\u30cf"], ["\\M-c\\M^C\\M^P", "\u30d0"], ["\\M-c\\M^C\\M^Q", "\u30d1"], ["\\M-c\\M^C\\M^R", "\u30d2"], ["\\M-c\\M^C\\M^S", "\u30d3"], ["\\M-c\\M^C\\M^T", "\u30d4"], ["\\M-c\\M^C\\M^U", "\u30d5"], ["\\M-c\\M^C\\M^V", "\u30d6"], ["\\M-c\\M^C\\M^W", "\u30d7"], ["\\M-c\\M^C\\M^X", "\u30d8"], ["\\M-c\\M^C\\M^Y", "\u30d9"], ["\\M-c\\M^C\\M^Z", "\u30da"], ["\\M-c\\M^C\\M^[", "\u30db"], ["\\M-c\\M^C\\M^\\", "\u30dc"], ["\\M-c\\M^C\\M^]", "\u30dd"], ["\\M-c\\M^C\\M^^", "\u30de"], ["\\M-c\\M^C\\M^_", "\u30df"], ["\\M-c\\M^C\\240", "\u30e0"], ["\\M-c\\M^C\\M-!", "\u30e1"], ["\\M-c\\M^C\\M-\"", "\u30e2"], ["\\M-c\\M^C\\M-#", "\u30e3"], ["\\M-c\\M^C\\M-$", "\u30e4"], ["\\M-c\\M^C\\M-%", "\u30e5"], ["\\M-c\\M^C\\M-&", "\u30e6"], ["\\M-c\\M^C\\M-'", "\u30e7"], ["\\M-c\\M^C\\M-(", "\u30e8"], ["\\M-c\\M^C\\M-)", "\u30e9"], ["\\M-c\\M^C\\M-*", "\u30ea"], ["\\M-c\\M^C\\M-+", "\u30eb"], ["\\M-c\\M^C\\M-,", "\u30ec"], ["\\M-c\\M^C\\M--", "\u30ed"], ["\\M-c\\M^C\\M-.", "\u30ee"], ["\\M-c\\M^C\\M-/", "\u30ef"], ["\\M-c\\M^C\\M-0", "\u30f0"], ["\\M-c\\M^C\\M-1", "\u30f1"], ["\\M-c\\M^C\\M-2", "\u30f2"], ["\\M-c\\M^C\\M-3", "\u30f3"], ["\\M-c\\M^C\\M-4", "\u30f4"], ["\\M-c\\M^C\\M-5", "\u30f5"], ["\\M-c\\M^C\\M-6", "\u30f6"], ["\\M-c\\M^C\\M-7", "\u30f7"], ["\\M-c\\M^C\\M-8", "\u30f8"], ["\\M-c\\M^C\\M-9", "\u30f9"], ["\\M-c\\M^C\\M-:", "\u30fa"], ["\\M-c\\M^C\\M-;", "\u30fb"], ["\\M-c\\M^C\\M-<", "\u30fc"], ["\\M-c\\M^C\\M-=", "\u30fd"], ["\\M-c\\M^C\\M->", "\u30fe"], ["\\M-c\\M^C\\M-?", "\u30ff"], ["foo\\040bar", "foo bar"], ["foo\\^Jbar", "foo\nbar"], ["$bar\\040=\\040'baz';", "$bar = 'baz';"], ["$foo\\040=\\040\"\\\\x20\\\\\\\\x20\\\\\\\\\\\\x20\\\\\\\\\\\\\\\\x20\"", "$foo = \"\\x20\\\\x20\\\\\\x20\\\\\\\\x20\""], ["$foo\\040=\\040function($bar)\\040use($baz)\\040{\\^J\\^Ireturn\\040$baz->getFoo()\\^J};", "$foo = function($bar) use($baz) {\n\treturn $baz->getFoo()\n};"], ["", ""]] \ No newline at end of file
diff --git a/www/wiki/vendor/psy/psysh/test/tools/gen_unvis_fixtures.py b/www/wiki/vendor/psy/psysh/test/tools/gen_unvis_fixtures.py
deleted file mode 100755
index e02a7414..00000000
--- a/www/wiki/vendor/psy/psysh/test/tools/gen_unvis_fixtures.py
+++ /dev/null
@@ -1,94 +0,0 @@
-#! /usr/bin/env python3
-import sys
-from os.path import abspath, expanduser, dirname, join
-from itertools import chain
-import json
-import argparse
-
-from vis import vis, unvis, VIS_WHITE
-
-
-__dir__ = dirname(abspath(__file__))
-
-OUTPUT_FILE = join(__dir__, '..', 'fixtures', 'unvis_fixtures.json')
-
-# Add custom fixtures here
-CUSTOM_FIXTURES = [
- # test long multibyte string
- ''.join(chr(cp) for cp in range(1024)),
- 'foo bar',
- 'foo\nbar',
- "$bar = 'baz';",
- r'$foo = "\x20\\x20\\\x20\\\\x20"',
- '$foo = function($bar) use($baz) {\n\treturn $baz->getFoo()\n};'
-]
-
-RANGES = {
- # All valid codepoints in the BMP
- 'bmp': chain(range(0x0000, 0xD800), range(0xE000, 0xFFFF)),
- # Smaller set of pertinent? codepoints inside BMP
- # see: http://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane
- 'small': chain(
- # latin blocks
- range(0x0000, 0x0250),
- # Greek, Cyrillic
- range(0x0370, 0x0530),
- # Hebrew, Arabic
- range(0x590, 0x0700),
- # CJK radicals
- range(0x2E80, 0x2F00),
- # Hiragana, Katakana
- range(0x3040, 0x3100)
- )
-}
-
-
-if __name__ == '__main__':
-
- argp = argparse.ArgumentParser(
- description='Generates test data for Psy\\Test\\Util\\StrTest')
- argp.add_argument('-f', '--format-output', action='store_true',
- help='Indent JSON output to ease debugging')
- argp.add_argument('-a', '--all', action='store_true',
- help="""Generates test data for all codepoints of the BMP.
- (same as --range=bmp). WARNING: You will need quite
- a lot of RAM to run the testsuite !
- """)
- argp.add_argument('-r', '--range',
- help="""Choose the range of codepoints used to generate
- test data.""",
- choices=list(RANGES.keys()),
- default='small')
- argp.add_argument('-o', '--output-file',
- help="""Write test data to OUTPUT_FILE
- (defaults to PSYSH_DIR/test/fixtures)""")
- args = argp.parse_args()
-
- cp_range = RANGES['bmp'] if args.all else RANGES[args.range]
- indent = 2 if args.format_output else None
- if args.output_file:
- OUTPUT_FILE = abspath(expanduser(args.output_file))
-
- fixtures = []
-
- # use SMALL_RANGE by default, it should be enough.
- # use BMP_RANGE for a more complete smoke test
- for codepoint in cp_range:
- char = chr(codepoint)
- encoded = vis(char, VIS_WHITE)
- decoded = unvis(encoded)
- fixtures.append((encoded, decoded))
-
- # Add our own custom fixtures at the end,
- # since they would fail anyway if one of the previous did.
- for fixture in CUSTOM_FIXTURES:
- encoded = vis(fixture, VIS_WHITE)
- decoded = unvis(encoded)
- fixtures.append((encoded, decoded))
-
- with open(OUTPUT_FILE, 'w') as fp:
- # dump as json to avoid backslashin and quotin nightmare
- # between php and python
- json.dump(fixtures, fp, indent=indent)
-
- sys.exit(0)
diff --git a/www/wiki/vendor/psy/psysh/test/tools/vis.py b/www/wiki/vendor/psy/psysh/test/tools/vis.py
deleted file mode 100755
index 4e45c4c9..00000000
--- a/www/wiki/vendor/psy/psysh/test/tools/vis.py
+++ /dev/null
@@ -1,126 +0,0 @@
-"""
-vis.py
-======
-
-Ctypes based module to access libbsd's strvis & strunvis functions.
-
-The `vis` function is the equivalent of strvis.
-The `unvis` function is the equivalent of strunvis.
-All functions accept unicode string as input and return a unicode string.
-
-Constants:
-----------
-
-* to select alternate encoding format
- `VIS_OCTAL`: use octal \ddd format
- `VIS_CSTYLE`: use \[nrft0..] where appropiate
-
-* to alter set of characters encoded
- (default is to encode all non-graphic except space, tab, and newline).
- `VIS_SP`: also encode space
- `VIS_TAB`: also encode tab
- `VIS_NL`: also encode newline
- `VIS_WHITE`: same as (VIS_SP | VIS_TAB | VIS_NL)
- `VIS_SAFE`: only encode "unsafe" characters
-
-* other
- `VIS_NOSLASH`: inhibit printing '\'
- `VIS_HTTP1808`: http-style escape % hex hex
- `VIS_HTTPSTYLE`: http-style escape % hex hex
- `VIS_MIMESTYLE`: mime-style escape = HEX HEX
- `VIS_HTTP1866`: http-style &#num; or &string;
- `VIS_NOESCAPE`: don't decode `\'
- `VIS_GLOB`: encode glob(3) magic characters
-
-:Authors:
- - ju1ius (http://github.com/ju1ius)
-:Version: 1
-:Date: 2014-01-05
-"""
-from ctypes import CDLL, c_char_p, c_int
-from ctypes.util import find_library
-
-
-__all__ = [
- 'vis', 'unvis',
- 'VIS_OCTAL', 'VIS_CSTYLE',
- 'VIS_SP', 'VIS_TAB', 'VIS_NL', 'VIS_WHITE', 'VIS_SAFE',
- 'VIS_NOSLASH', 'VIS_HTTP1808', 'VIS_HTTPSTYLE', 'VIS_MIMESTYLE',
- 'VIS_HTTP1866', 'VIS_NOESCAPE', 'VIS_GLOB'
-]
-
-
-#############################################################
-# Constants from bsd/vis.h
-#############################################################
-
-#to select alternate encoding format
-VIS_OCTAL = 0x0001
-VIS_CSTYLE = 0x0002
-# to alter set of characters encoded
-# (default is to encode all non-graphic except space, tab, and newline).
-VIS_SP = 0x0004
-VIS_TAB = 0x0008
-VIS_NL = 0x0010
-VIS_WHITE = VIS_SP | VIS_TAB | VIS_NL
-VIS_SAFE = 0x0020
-# other
-VIS_NOSLASH = 0x0040
-VIS_HTTP1808 = 0x0080
-VIS_HTTPSTYLE = 0x0080
-VIS_MIMESTYLE = 0x0100
-VIS_HTTP1866 = 0x0200
-VIS_NOESCAPE = 0x0400
-VIS_GLOB = 0x1000
-
-#############################################################
-# Import libbsd/vis functions
-#############################################################
-
-_libbsd = CDLL(find_library('bsd'))
-
-_strvis = _libbsd.strvis
-_strvis.argtypes = [c_char_p, c_char_p, c_int]
-_strvis.restype = c_int
-
-_strunvis = _libbsd.strunvis
-_strvis.argtypes = [c_char_p, c_char_p]
-_strvis.restype = c_int
-
-
-def vis(src, flags=VIS_WHITE):
- """
- Encodes the string `src` into libbsd's vis encoding.
- `flags` must be one of the VIS_* constants
-
- C definition:
- int strvis(char *dst, char *src, int flags);
- """
- src = bytes(src, 'utf-8')
- dst_p = c_char_p(bytes(len(src) * 4))
- src_p = c_char_p(src)
- flags = c_int(flags)
-
- bytes_written = _strvis(dst_p, src_p, flags)
- if -1 == bytes_written:
- raise RuntimeError('vis failed to encode string "{}"'.format(src))
-
- return dst_p.value.decode('utf-8')
-
-
-def unvis(src):
- """
- Decodes a string encoded by vis.
-
- C definition:
- int strunvis(char *dst, char *src);
- """
- src = bytes(src, 'utf-8')
- dst_p = c_char_p(bytes(len(src)))
- src_p = c_char_p(src)
-
- bytes_written = _strunvis(dst_p, src_p)
- if -1 == bytes_written:
- raise RuntimeError('unvis failed to decode string "{}"'.format(src))
-
- return dst_p.value.decode('utf-8')
diff --git a/www/wiki/vendor/sebastian/comparator/.gitignore b/www/wiki/vendor/sebastian/comparator/.gitignore
deleted file mode 100644
index c2990fc6..00000000
--- a/www/wiki/vendor/sebastian/comparator/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-/build/coverage
-/composer.lock
-/composer.phar
-/phpunit.xml
-/.idea
-/vendor
diff --git a/www/wiki/vendor/sebastian/comparator/.travis.yml b/www/wiki/vendor/sebastian/comparator/.travis.yml
deleted file mode 100644
index 082370fe..00000000
--- a/www/wiki/vendor/sebastian/comparator/.travis.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-language: php
-
-sudo: false
-
-install:
- - travis_retry composer install --no-interaction --prefer-source
-
-script: ./vendor/bin/phpunit --configuration ./build/travis-ci.xml
-
-php:
- - 5.3.3
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - hhvm
-
-notifications:
- email: false
- webhooks:
- urls:
- - https://webhooks.gitter.im/e/6668f52f3dd4e3f81960
- on_success: always
- on_failure: always
- on_start: false
diff --git a/www/wiki/vendor/sebastian/comparator/LICENSE b/www/wiki/vendor/sebastian/comparator/LICENSE
deleted file mode 100644
index 334b637a..00000000
--- a/www/wiki/vendor/sebastian/comparator/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-Comparator
-
-Copyright (c) 2002-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/sebastian/comparator/README.md b/www/wiki/vendor/sebastian/comparator/README.md
deleted file mode 100644
index 2409c347..00000000
--- a/www/wiki/vendor/sebastian/comparator/README.md
+++ /dev/null
@@ -1,39 +0,0 @@
-[![Build Status](https://travis-ci.org/sebastianbergmann/comparator.svg?branch=master)](https://travis-ci.org/sebastianbergmann/comparator)
-
-# Comparator
-
-This component provides the functionality to compare PHP values for equality.
-
-## Installation
-
-You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
-
- composer require sebastian/comparator
-
-If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
-
- composer require --dev sebastian/comparator
-
-## Usage
-
-```php
-<?php
-use SebastianBergmann\Comparator\Factory;
-use SebastianBergmann\Comparator\ComparisonFailure;
-
-$date1 = new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York'));
-$date2 = new DateTime('2013-03-29 03:13:35', new DateTimeZone('America/Chicago'));
-
-$factory = new Factory;
-$comparator = $factory->getComparatorFor($date1, $date2);
-
-try {
- $comparator->assertEquals($date1, $date2);
- print "Dates match";
-}
-
-catch (ComparisonFailure $failure) {
- print "Dates don't match";
-}
-```
-
diff --git a/www/wiki/vendor/sebastian/comparator/build.xml b/www/wiki/vendor/sebastian/comparator/build.xml
deleted file mode 100644
index 552ebce6..00000000
--- a/www/wiki/vendor/sebastian/comparator/build.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="comparator">
- <target name="clean" description="Cleanup build artifacts">
- <delete dir="${basedir}/vendor"/>
- <delete file="${basedir}/composer.lock"/>
- </target>
-
- <target name="composer" depends="clean" description="Install dependencies with Composer">
- <tstamp>
- <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
- </tstamp>
- <delete>
- <fileset dir="${basedir}">
- <include name="composer.phar" />
- <date datetime="${thirty.days.ago}" when="before"/>
- </fileset>
- </delete>
-
- <get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" skipexisting="true"/>
-
- <exec executable="php">
- <arg value="composer.phar"/>
- <arg value="install"/>
- </exec>
- </target>
-
- <target name="phpab" description="Generate autoloader script">
- <exec executable="phpab">
- <arg value="--output" />
- <arg path="tests/autoload.php" />
- <arg path="tests" />
- </exec>
- </target>
-</project>
diff --git a/www/wiki/vendor/sebastian/comparator/build/travis-ci.xml b/www/wiki/vendor/sebastian/comparator/build/travis-ci.xml
deleted file mode 100644
index 751a3bc3..00000000
--- a/www/wiki/vendor/sebastian/comparator/build/travis-ci.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.2/phpunit.xsd"
- bootstrap="../tests/bootstrap.php"
- backupGlobals="false"
- verbose="true">
- <testsuite name="Comparator">
- <directory suffix="Test.php">../tests</directory>
- </testsuite>
-</phpunit>
-
diff --git a/www/wiki/vendor/sebastian/comparator/composer.json b/www/wiki/vendor/sebastian/comparator/composer.json
deleted file mode 100644
index 38db40e8..00000000
--- a/www/wiki/vendor/sebastian/comparator/composer.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "name": "sebastian/comparator",
- "description": "Provides the functionality to compare PHP values for equality",
- "keywords": ["comparator","compare","equality"],
- "homepage": "http://www.github.com/sebastianbergmann/comparator",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- }
- ],
- "require": {
- "php": ">=5.3.3",
- "sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2 || ~2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- }
-}
-
diff --git a/www/wiki/vendor/sebastian/comparator/phpunit.xml.dist b/www/wiki/vendor/sebastian/comparator/phpunit.xml.dist
deleted file mode 100644
index e1eaf2c8..00000000
--- a/www/wiki/vendor/sebastian/comparator/phpunit.xml.dist
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
- bootstrap="tests/bootstrap.php"
- backupGlobals="false"
- verbose="true">
- <testsuite name="Comparator">
- <directory suffix="Test.php">tests</directory>
- </testsuite>
-
- <logging>
- <log type="coverage-html" target="build/coverage"/>
- </logging>
-
- <filter>
- <whitelist processUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">src</directory>
- </whitelist>
- </filter>
-</phpunit>
-
diff --git a/www/wiki/vendor/sebastian/comparator/src/ArrayComparator.php b/www/wiki/vendor/sebastian/comparator/src/ArrayComparator.php
deleted file mode 100644
index 16f805d3..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/ArrayComparator.php
+++ /dev/null
@@ -1,132 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares arrays for equality.
- */
-class ArrayComparator extends Comparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- return is_array($expected) && is_array($actual);
- }
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- * @param array $processed List of already processed elements (used to prevent infinite recursion)
- *
- * @throws ComparisonFailure
- */
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false, array &$processed = array())
- {
- if ($canonicalize) {
- sort($expected);
- sort($actual);
- }
-
- $remaining = $actual;
- $expString = $actString = "Array (\n";
- $equal = true;
-
- foreach ($expected as $key => $value) {
- unset($remaining[$key]);
-
- if (!array_key_exists($key, $actual)) {
- $expString .= sprintf(
- " %s => %s\n",
- $this->exporter->export($key),
- $this->exporter->shortenedExport($value)
- );
-
- $equal = false;
-
- continue;
- }
-
- try {
- $comparator = $this->factory->getComparatorFor($value, $actual[$key]);
- $comparator->assertEquals($value, $actual[$key], $delta, $canonicalize, $ignoreCase, $processed);
-
- $expString .= sprintf(
- " %s => %s\n",
- $this->exporter->export($key),
- $this->exporter->shortenedExport($value)
- );
- $actString .= sprintf(
- " %s => %s\n",
- $this->exporter->export($key),
- $this->exporter->shortenedExport($actual[$key])
- );
- } catch (ComparisonFailure $e) {
- $expString .= sprintf(
- " %s => %s\n",
- $this->exporter->export($key),
- $e->getExpectedAsString()
- ? $this->indent($e->getExpectedAsString())
- : $this->exporter->shortenedExport($e->getExpected())
- );
-
- $actString .= sprintf(
- " %s => %s\n",
- $this->exporter->export($key),
- $e->getActualAsString()
- ? $this->indent($e->getActualAsString())
- : $this->exporter->shortenedExport($e->getActual())
- );
-
- $equal = false;
- }
- }
-
- foreach ($remaining as $key => $value) {
- $actString .= sprintf(
- " %s => %s\n",
- $this->exporter->export($key),
- $this->exporter->shortenedExport($value)
- );
-
- $equal = false;
- }
-
- $expString .= ')';
- $actString .= ')';
-
- if (!$equal) {
- throw new ComparisonFailure(
- $expected,
- $actual,
- $expString,
- $actString,
- false,
- 'Failed asserting that two arrays are equal.'
- );
- }
- }
-
- protected function indent($lines)
- {
- return trim(str_replace("\n", "\n ", $lines));
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/Comparator.php b/www/wiki/vendor/sebastian/comparator/src/Comparator.php
deleted file mode 100644
index 54831673..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/Comparator.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-use SebastianBergmann\Exporter\Exporter;
-
-/**
- * Abstract base class for comparators which compare values for equality.
- */
-abstract class Comparator
-{
- /**
- * @var Factory
- */
- protected $factory;
-
- /**
- * @var Exporter
- */
- protected $exporter;
-
- public function __construct()
- {
- $this->exporter = new Exporter;
- }
-
- /**
- * @param Factory $factory
- */
- public function setFactory(Factory $factory)
- {
- $this->factory = $factory;
- }
-
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- abstract public function accepts($expected, $actual);
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- *
- * @throws ComparisonFailure
- */
- abstract public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false);
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/ComparisonFailure.php b/www/wiki/vendor/sebastian/comparator/src/ComparisonFailure.php
deleted file mode 100644
index 2c254538..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/ComparisonFailure.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-use SebastianBergmann\Diff\Differ;
-
-/**
- * Thrown when an assertion for string equality failed.
- */
-class ComparisonFailure extends \RuntimeException
-{
- /**
- * Expected value of the retrieval which does not match $actual.
- * @var mixed
- */
- protected $expected;
-
- /**
- * Actually retrieved value which does not match $expected.
- * @var mixed
- */
- protected $actual;
-
- /**
- * The string representation of the expected value
- * @var string
- */
- protected $expectedAsString;
-
- /**
- * The string representation of the actual value
- * @var string
- */
- protected $actualAsString;
-
- /**
- * @var bool
- */
- protected $identical;
-
- /**
- * Optional message which is placed in front of the first line
- * returned by toString().
- * @var string
- */
- protected $message;
-
- /**
- * Initialises with the expected value and the actual value.
- *
- * @param mixed $expected Expected value retrieved.
- * @param mixed $actual Actual value retrieved.
- * @param string $expectedAsString
- * @param string $actualAsString
- * @param bool $identical
- * @param string $message A string which is prefixed on all returned lines
- * in the difference output.
- */
- public function __construct($expected, $actual, $expectedAsString, $actualAsString, $identical = false, $message = '')
- {
- $this->expected = $expected;
- $this->actual = $actual;
- $this->expectedAsString = $expectedAsString;
- $this->actualAsString = $actualAsString;
- $this->message = $message;
- }
-
- /**
- * @return mixed
- */
- public function getActual()
- {
- return $this->actual;
- }
-
- /**
- * @return mixed
- */
- public function getExpected()
- {
- return $this->expected;
- }
-
- /**
- * @return string
- */
- public function getActualAsString()
- {
- return $this->actualAsString;
- }
-
- /**
- * @return string
- */
- public function getExpectedAsString()
- {
- return $this->expectedAsString;
- }
-
- /**
- * @return string
- */
- public function getDiff()
- {
- if (!$this->actualAsString && !$this->expectedAsString) {
- return '';
- }
-
- $differ = new Differ("\n--- Expected\n+++ Actual\n");
-
- return $differ->diff($this->expectedAsString, $this->actualAsString);
- }
-
- /**
- * @return string
- */
- public function toString()
- {
- return $this->message . $this->getDiff();
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/DOMNodeComparator.php b/www/wiki/vendor/sebastian/comparator/src/DOMNodeComparator.php
deleted file mode 100644
index db624b79..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/DOMNodeComparator.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-use DOMDocument;
-use DOMNode;
-
-/**
- * Compares DOMNode instances for equality.
- */
-class DOMNodeComparator extends ObjectComparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- return $expected instanceof DOMNode && $actual instanceof DOMNode;
- }
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- * @param array $processed List of already processed elements (used to prevent infinite recursion)
- *
- * @throws ComparisonFailure
- */
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false, array &$processed = array())
- {
- $expectedAsString = $this->nodeToText($expected, true, $ignoreCase);
- $actualAsString = $this->nodeToText($actual, true, $ignoreCase);
-
- if ($expectedAsString !== $actualAsString) {
- if ($expected instanceof DOMDocument) {
- $type = 'documents';
- } else {
- $type = 'nodes';
- }
-
- throw new ComparisonFailure(
- $expected,
- $actual,
- $expectedAsString,
- $actualAsString,
- false,
- sprintf("Failed asserting that two DOM %s are equal.\n", $type)
- );
- }
- }
-
- /**
- * Returns the normalized, whitespace-cleaned, and indented textual
- * representation of a DOMNode.
- *
- * @param DOMNode $node
- * @param bool $canonicalize
- * @param bool $ignoreCase
- * @return string
- */
- private function nodeToText(DOMNode $node, $canonicalize, $ignoreCase)
- {
- if ($canonicalize) {
- $document = new DOMDocument;
- $document->loadXML($node->C14N());
-
- $node = $document;
- }
-
- if ($node instanceof DOMDocument) {
- $document = $node;
- } else {
- $document = $node->ownerDocument;
- }
-
- $document->formatOutput = true;
- $document->normalizeDocument();
-
- if ($node instanceof DOMDocument) {
- $text = $node->saveXML();
- } else {
- $text = $document->saveXML($node);
- }
-
- if ($ignoreCase) {
- $text = strtolower($text);
- }
-
- return $text;
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/DateTimeComparator.php b/www/wiki/vendor/sebastian/comparator/src/DateTimeComparator.php
deleted file mode 100644
index f9a1f2cc..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/DateTimeComparator.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares DateTimeInterface instances for equality.
- */
-class DateTimeComparator extends ObjectComparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- return ($expected instanceof \DateTime || $expected instanceof \DateTimeInterface) &&
- ($actual instanceof \DateTime || $actual instanceof \DateTimeInterface);
- }
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- * @param array $processed List of already processed elements (used to prevent infinite recursion)
- *
- * @throws ComparisonFailure
- */
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false, array &$processed = array())
- {
- $delta = new \DateInterval(sprintf('PT%sS', abs($delta)));
-
- $expectedLower = clone $expected;
- $expectedUpper = clone $expected;
-
- if ($actual < $expectedLower->sub($delta) ||
- $actual > $expectedUpper->add($delta)) {
- throw new ComparisonFailure(
- $expected,
- $actual,
- $this->dateTimeToString($expected),
- $this->dateTimeToString($actual),
- false,
- 'Failed asserting that two DateTime objects are equal.'
- );
- }
- }
-
- /**
- * Returns an ISO 8601 formatted string representation of a datetime or
- * 'Invalid DateTimeInterface object' if the provided DateTimeInterface was not properly
- * initialized.
- *
- * @param \DateTimeInterface $datetime
- * @return string
- */
- private function dateTimeToString($datetime)
- {
- $string = $datetime->format('Y-m-d\TH:i:s.uO');
-
- return $string ? $string : 'Invalid DateTimeInterface object';
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/DoubleComparator.php b/www/wiki/vendor/sebastian/comparator/src/DoubleComparator.php
deleted file mode 100644
index 7f7501ec..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/DoubleComparator.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares doubles for equality.
- */
-class DoubleComparator extends NumericComparator
-{
- /**
- * Smallest value available in PHP.
- *
- * @var float
- */
- const EPSILON = 0.0000000001;
-
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- return (is_double($expected) || is_double($actual)) && is_numeric($expected) && is_numeric($actual);
- }
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- *
- * @throws ComparisonFailure
- */
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- if ($delta == 0) {
- $delta = self::EPSILON;
- }
-
- parent::assertEquals($expected, $actual, $delta, $canonicalize, $ignoreCase);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/ExceptionComparator.php b/www/wiki/vendor/sebastian/comparator/src/ExceptionComparator.php
deleted file mode 100644
index 52336464..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/ExceptionComparator.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares Exception instances for equality.
- */
-class ExceptionComparator extends ObjectComparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- return $expected instanceof \Exception && $actual instanceof \Exception;
- }
-
- /**
- * Converts an object to an array containing all of its private, protected
- * and public properties.
- *
- * @param object $object
- * @return array
- */
- protected function toArray($object)
- {
- $array = parent::toArray($object);
-
- unset(
- $array['file'],
- $array['line'],
- $array['trace'],
- $array['string'],
- $array['xdebug_message']
- );
-
- return $array;
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/Factory.php b/www/wiki/vendor/sebastian/comparator/src/Factory.php
deleted file mode 100644
index ed3d5e14..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/Factory.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Factory for comparators which compare values for equality.
- */
-class Factory
-{
- /**
- * @var Comparator[]
- */
- private $comparators = array();
-
- /**
- * @var Factory
- */
- private static $instance;
-
- /**
- * Constructs a new factory.
- */
- public function __construct()
- {
- $this->register(new TypeComparator);
- $this->register(new ScalarComparator);
- $this->register(new NumericComparator);
- $this->register(new DoubleComparator);
- $this->register(new ArrayComparator);
- $this->register(new ResourceComparator);
- $this->register(new ObjectComparator);
- $this->register(new ExceptionComparator);
- $this->register(new SplObjectStorageComparator);
- $this->register(new DOMNodeComparator);
- $this->register(new MockObjectComparator);
- $this->register(new DateTimeComparator);
- }
-
- /**
- * @return Factory
- */
- public static function getInstance()
- {
- if (self::$instance === null) {
- self::$instance = new self;
- }
-
- return self::$instance;
- }
-
- /**
- * Returns the correct comparator for comparing two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return Comparator
- */
- public function getComparatorFor($expected, $actual)
- {
- foreach ($this->comparators as $comparator) {
- if ($comparator->accepts($expected, $actual)) {
- return $comparator;
- }
- }
- }
-
- /**
- * Registers a new comparator.
- *
- * This comparator will be returned by getInstance() if its accept() method
- * returns TRUE for the compared values. It has higher priority than the
- * existing comparators, meaning that its accept() method will be tested
- * before those of the other comparators.
- *
- * @param Comparator $comparator The registered comparator
- */
- public function register(Comparator $comparator)
- {
- array_unshift($this->comparators, $comparator);
-
- $comparator->setFactory($this);
- }
-
- /**
- * Unregisters a comparator.
- *
- * This comparator will no longer be returned by getInstance().
- *
- * @param Comparator $comparator The unregistered comparator
- */
- public function unregister(Comparator $comparator)
- {
- foreach ($this->comparators as $key => $_comparator) {
- if ($comparator === $_comparator) {
- unset($this->comparators[$key]);
- }
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/MockObjectComparator.php b/www/wiki/vendor/sebastian/comparator/src/MockObjectComparator.php
deleted file mode 100644
index a16903c6..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/MockObjectComparator.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares PHPUnit_Framework_MockObject_MockObject instances for equality.
- */
-class MockObjectComparator extends ObjectComparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- return $expected instanceof \PHPUnit_Framework_MockObject_MockObject && $actual instanceof \PHPUnit_Framework_MockObject_MockObject;
- }
-
- /**
- * Converts an object to an array containing all of its private, protected
- * and public properties.
- *
- * @param object $object
- * @return array
- */
- protected function toArray($object)
- {
- $array = parent::toArray($object);
-
- unset($array['__phpunit_invocationMocker']);
-
- return $array;
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/sebastian/comparator/src/NumericComparator.php b/www/wiki/vendor/sebastian/comparator/src/NumericComparator.php
deleted file mode 100644
index 3e04a830..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/NumericComparator.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares numerical values for equality.
- */
-class NumericComparator extends ScalarComparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- // all numerical values, but not if one of them is a double
- // or both of them are strings
- return is_numeric($expected) && is_numeric($actual) &&
- !(is_double($expected) || is_double($actual)) &&
- !(is_string($expected) && is_string($actual));
- }
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- *
- * @throws ComparisonFailure
- */
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- if (is_infinite($actual) && is_infinite($expected)) {
- return;
- }
-
- if ((is_infinite($actual) xor is_infinite($expected)) ||
- (is_nan($actual) or is_nan($expected)) ||
- abs($actual - $expected) > $delta) {
- throw new ComparisonFailure(
- $expected,
- $actual,
- '',
- '',
- false,
- sprintf(
- 'Failed asserting that %s matches expected %s.',
- $this->exporter->export($actual),
- $this->exporter->export($expected)
- )
- );
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/ObjectComparator.php b/www/wiki/vendor/sebastian/comparator/src/ObjectComparator.php
deleted file mode 100644
index 3c00aadd..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/ObjectComparator.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares objects for equality.
- */
-class ObjectComparator extends ArrayComparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- return is_object($expected) && is_object($actual);
- }
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- * @param array $processed List of already processed elements (used to prevent infinite recursion)
- *
- * @throws ComparisonFailure
- */
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false, array &$processed = array())
- {
- if (get_class($actual) !== get_class($expected)) {
- throw new ComparisonFailure(
- $expected,
- $actual,
- $this->exporter->export($expected),
- $this->exporter->export($actual),
- false,
- sprintf(
- '%s is not instance of expected class "%s".',
- $this->exporter->export($actual),
- get_class($expected)
- )
- );
- }
-
- // don't compare twice to allow for cyclic dependencies
- if (in_array(array($actual, $expected), $processed, true) ||
- in_array(array($expected, $actual), $processed, true)) {
- return;
- }
-
- $processed[] = array($actual, $expected);
-
- // don't compare objects if they are identical
- // this helps to avoid the error "maximum function nesting level reached"
- // CAUTION: this conditional clause is not tested
- if ($actual !== $expected) {
- try {
- parent::assertEquals(
- $this->toArray($expected),
- $this->toArray($actual),
- $delta,
- $canonicalize,
- $ignoreCase,
- $processed
- );
- } catch (ComparisonFailure $e) {
- throw new ComparisonFailure(
- $expected,
- $actual,
- // replace "Array" with "MyClass object"
- substr_replace($e->getExpectedAsString(), get_class($expected) . ' Object', 0, 5),
- substr_replace($e->getActualAsString(), get_class($actual) . ' Object', 0, 5),
- false,
- 'Failed asserting that two objects are equal.'
- );
- }
- }
- }
-
- /**
- * Converts an object to an array containing all of its private, protected
- * and public properties.
- *
- * @param object $object
- * @return array
- */
- protected function toArray($object)
- {
- return $this->exporter->toArray($object);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/ResourceComparator.php b/www/wiki/vendor/sebastian/comparator/src/ResourceComparator.php
deleted file mode 100644
index 95d649fb..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/ResourceComparator.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares resources for equality.
- */
-class ResourceComparator extends Comparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- return is_resource($expected) && is_resource($actual);
- }
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- *
- * @throws ComparisonFailure
- */
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- if ($actual != $expected) {
- throw new ComparisonFailure(
- $expected,
- $actual,
- $this->exporter->export($expected),
- $this->exporter->export($actual)
- );
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/ScalarComparator.php b/www/wiki/vendor/sebastian/comparator/src/ScalarComparator.php
deleted file mode 100644
index 772be63d..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/ScalarComparator.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares scalar or NULL values for equality.
- */
-class ScalarComparator extends Comparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- * @since Method available since Release 3.6.0
- */
- public function accepts($expected, $actual)
- {
- return ((is_scalar($expected) xor null === $expected) &&
- (is_scalar($actual) xor null === $actual))
- // allow comparison between strings and objects featuring __toString()
- || (is_string($expected) && is_object($actual) && method_exists($actual, '__toString'))
- || (is_object($expected) && method_exists($expected, '__toString') && is_string($actual));
- }
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- *
- * @throws ComparisonFailure
- */
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- $expectedToCompare = $expected;
- $actualToCompare = $actual;
-
- // always compare as strings to avoid strange behaviour
- // otherwise 0 == 'Foobar'
- if (is_string($expected) || is_string($actual)) {
- $expectedToCompare = (string) $expectedToCompare;
- $actualToCompare = (string) $actualToCompare;
-
- if ($ignoreCase) {
- $expectedToCompare = strtolower($expectedToCompare);
- $actualToCompare = strtolower($actualToCompare);
- }
- }
-
- if ($expectedToCompare != $actualToCompare) {
- if (is_string($expected) && is_string($actual)) {
- throw new ComparisonFailure(
- $expected,
- $actual,
- $this->exporter->export($expected),
- $this->exporter->export($actual),
- false,
- 'Failed asserting that two strings are equal.'
- );
- }
-
- throw new ComparisonFailure(
- $expected,
- $actual,
- // no diff is required
- '',
- '',
- false,
- sprintf(
- 'Failed asserting that %s matches expected %s.',
- $this->exporter->export($actual),
- $this->exporter->export($expected)
- )
- );
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/SplObjectStorageComparator.php b/www/wiki/vendor/sebastian/comparator/src/SplObjectStorageComparator.php
deleted file mode 100644
index 2dc980ff..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/SplObjectStorageComparator.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares \SplObjectStorage instances for equality.
- */
-class SplObjectStorageComparator extends Comparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- return $expected instanceof \SplObjectStorage && $actual instanceof \SplObjectStorage;
- }
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- *
- * @throws ComparisonFailure
- */
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- foreach ($actual as $object) {
- if (!$expected->contains($object)) {
- throw new ComparisonFailure(
- $expected,
- $actual,
- $this->exporter->export($expected),
- $this->exporter->export($actual),
- false,
- 'Failed asserting that two objects are equal.'
- );
- }
- }
-
- foreach ($expected as $object) {
- if (!$actual->contains($object)) {
- throw new ComparisonFailure(
- $expected,
- $actual,
- $this->exporter->export($expected),
- $this->exporter->export($actual),
- false,
- 'Failed asserting that two objects are equal.'
- );
- }
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/src/TypeComparator.php b/www/wiki/vendor/sebastian/comparator/src/TypeComparator.php
deleted file mode 100644
index 73d65cf2..00000000
--- a/www/wiki/vendor/sebastian/comparator/src/TypeComparator.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * Compares values for type equality.
- */
-class TypeComparator extends Comparator
-{
- /**
- * Returns whether the comparator can compare two values.
- *
- * @param mixed $expected The first value to compare
- * @param mixed $actual The second value to compare
- * @return bool
- */
- public function accepts($expected, $actual)
- {
- return true;
- }
-
- /**
- * Asserts that two values are equal.
- *
- * @param mixed $expected First value to compare
- * @param mixed $actual Second value to compare
- * @param float $delta Allowed numerical distance between two values to consider them equal
- * @param bool $canonicalize Arrays are sorted before comparison when set to true
- * @param bool $ignoreCase Case is ignored when set to true
- *
- * @throws ComparisonFailure
- */
- public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
- {
- if (gettype($expected) != gettype($actual)) {
- throw new ComparisonFailure(
- $expected,
- $actual,
- // we don't need a diff
- '',
- '',
- false,
- sprintf(
- '%s does not match expected type "%s".',
- $this->exporter->shortenedExport($actual),
- gettype($expected)
- )
- );
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/ArrayComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/ArrayComparatorTest.php
deleted file mode 100644
index ee44615b..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/ArrayComparatorTest.php
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\ArrayComparator
- *
- */
-class ArrayComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new ArrayComparator;
- $this->comparator->setFactory(new Factory);
- }
-
- public function acceptsFailsProvider()
- {
- return array(
- array(array(), null),
- array(null, array()),
- array(null, null)
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- return array(
- array(
- array('a' => 1, 'b' => 2),
- array('b' => 2, 'a' => 1)
- ),
- array(
- array(1),
- array('1')
- ),
- array(
- array(3, 2, 1),
- array(2, 3, 1),
- 0,
- true
- ),
- array(
- array(2.3),
- array(2.5),
- 0.5
- ),
- array(
- array(array(2.3)),
- array(array(2.5)),
- 0.5
- ),
- array(
- array(new Struct(2.3)),
- array(new Struct(2.5)),
- 0.5
- ),
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- return array(
- array(
- array(),
- array(0 => 1)
- ),
- array(
- array(0 => 1),
- array()
- ),
- array(
- array(0 => null),
- array()
- ),
- array(
- array(0 => 1, 1 => 2),
- array(0 => 1, 1 => 3)
- ),
- array(
- array('a', 'b' => array(1, 2)),
- array('a', 'b' => array(2, 1))
- ),
- array(
- array(2.3),
- array(4.2),
- 0.5
- ),
- array(
- array(array(2.3)),
- array(array(4.2)),
- 0.5
- ),
- array(
- array(new Struct(2.3)),
- array(new Struct(4.2)),
- 0.5
- )
- );
- }
-
- /**
- * @covers ::accepts
- */
- public function testAcceptsSucceeds()
- {
- $this->assertTrue(
- $this->comparator->accepts(array(), array())
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual, $delta = 0.0, $canonicalize = false)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual, $delta, $canonicalize);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual,$delta = 0.0, $canonicalize = false)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\Comparator\\ComparisonFailure',
- 'Failed asserting that two arrays are equal'
- );
- $this->comparator->assertEquals($expected, $actual, $delta, $canonicalize);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/DOMNodeComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/DOMNodeComparatorTest.php
deleted file mode 100644
index a769b84c..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/DOMNodeComparatorTest.php
+++ /dev/null
@@ -1,162 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-use DOMNode;
-use DOMDocument;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\DOMNodeComparator
- *
- */
-class DOMNodeComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new DOMNodeComparator;
- }
-
- public function acceptsSucceedsProvider()
- {
- $document = new DOMDocument;
- $node = new DOMNode;
-
- return array(
- array($document, $document),
- array($node, $node),
- array($document, $node),
- array($node, $document)
- );
- }
-
- public function acceptsFailsProvider()
- {
- $document = new DOMDocument;
-
- return array(
- array($document, null),
- array(null, $document),
- array(null, null)
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- return array(
- array(
- $this->createDOMDocument('<root></root>'),
- $this->createDOMDocument('<root/>')
- ),
- array(
- $this->createDOMDocument('<root attr="bar"></root>'),
- $this->createDOMDocument('<root attr="bar"/>')
- ),
- array(
- $this->createDOMDocument('<root><foo attr="bar"></foo></root>'),
- $this->createDOMDocument('<root><foo attr="bar"/></root>')
- ),
- array(
- $this->createDOMDocument("<root>\n <child/>\n</root>"),
- $this->createDOMDocument('<root><child/></root>')
- ),
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- return array(
- array(
- $this->createDOMDocument('<root></root>'),
- $this->createDOMDocument('<bar/>')
- ),
- array(
- $this->createDOMDocument('<foo attr1="bar"/>'),
- $this->createDOMDocument('<foo attr1="foobar"/>')
- ),
- array(
- $this->createDOMDocument('<foo> bar </foo>'),
- $this->createDOMDocument('<foo />')
- ),
- array(
- $this->createDOMDocument('<foo xmlns="urn:myns:bar"/>'),
- $this->createDOMDocument('<foo xmlns="urn:notmyns:bar"/>')
- ),
- array(
- $this->createDOMDocument('<foo> bar </foo>'),
- $this->createDOMDocument('<foo> bir </foo>')
- )
- );
- }
-
- private function createDOMDocument($content)
- {
- $document = new DOMDocument;
- $document->preserveWhiteSpace = false;
- $document->loadXML($content);
-
- return $document;
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsSucceedsProvider
- */
- public function testAcceptsSucceeds($expected, $actual)
- {
- $this->assertTrue(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\Comparator\\ComparisonFailure',
- 'Failed asserting that two DOM'
- );
- $this->comparator->assertEquals($expected, $actual);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/DateTimeComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/DateTimeComparatorTest.php
deleted file mode 100644
index 9abcff76..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/DateTimeComparatorTest.php
+++ /dev/null
@@ -1,216 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-use DateTime;
-use DateTimeImmutable;
-use DateTimeZone;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\DateTimeComparator
- *
- */
-class DateTimeComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new DateTimeComparator;
- }
-
- public function acceptsFailsProvider()
- {
- $datetime = new DateTime;
-
- return array(
- array($datetime, null),
- array(null, $datetime),
- array(null, null)
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- return array(
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York'))
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:13:25', new DateTimeZone('America/New_York')),
- 10
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:14:40', new DateTimeZone('America/New_York')),
- 65
- ),
- array(
- new DateTime('2013-03-29', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29', new DateTimeZone('America/New_York'))
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 03:13:35', new DateTimeZone('America/Chicago'))
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 03:13:49', new DateTimeZone('America/Chicago')),
- 15
- ),
- array(
- new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 23:00:00', new DateTimeZone('America/Chicago'))
- ),
- array(
- new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 23:01:30', new DateTimeZone('America/Chicago')),
- 100
- ),
- array(
- new DateTime('@1364616000'),
- new DateTime('2013-03-29 23:00:00', new DateTimeZone('America/Chicago'))
- ),
- array(
- new DateTime('2013-03-29T05:13:35-0500'),
- new DateTime('2013-03-29T04:13:35-0600')
- )
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- return array(
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 03:13:35', new DateTimeZone('America/New_York'))
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 03:13:35', new DateTimeZone('America/New_York')),
- 3500
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 05:13:35', new DateTimeZone('America/New_York')),
- 3500
- ),
- array(
- new DateTime('2013-03-29', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-30', new DateTimeZone('America/New_York'))
- ),
- array(
- new DateTime('2013-03-29', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
- 43200
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/Chicago')),
- ),
- array(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/Chicago')),
- 3500
- ),
- array(
- new DateTime('2013-03-30', new DateTimeZone('America/New_York')),
- new DateTime('2013-03-30', new DateTimeZone('America/Chicago'))
- ),
- array(
- new DateTime('2013-03-29T05:13:35-0600'),
- new DateTime('2013-03-29T04:13:35-0600')
- ),
- array(
- new DateTime('2013-03-29T05:13:35-0600'),
- new DateTime('2013-03-29T05:13:35-0500')
- ),
- );
- }
-
- /**
- * @covers ::accepts
- */
- public function testAcceptsSucceeds()
- {
- $this->assertTrue(
- $this->comparator->accepts(
- new DateTime,
- new DateTime
- )
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual, $delta = 0.0)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual, $delta);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual, $delta = 0.0)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\Comparator\\ComparisonFailure',
- 'Failed asserting that two DateTime objects are equal.'
- );
- $this->comparator->assertEquals($expected, $actual, $delta);
- }
-
- /**
- * @requires PHP 5.5
- * @covers ::accepts
- */
- public function testAcceptsDateTimeInterface()
- {
- $this->assertTrue($this->comparator->accepts(new DateTime, new DateTimeImmutable));
- }
-
- /**
- * @requires PHP 5.5
- * @covers ::assertEquals
- */
- public function testSupportsDateTimeInterface()
- {
- $this->comparator->assertEquals(
- new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')),
- new DateTimeImmutable('2013-03-29 04:13:35', new DateTimeZone('America/New_York'))
- );
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/DoubleComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/DoubleComparatorTest.php
deleted file mode 100644
index 6b898bab..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/DoubleComparatorTest.php
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\DoubleComparator
- *
- */
-class DoubleComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new DoubleComparator;
- }
-
- public function acceptsSucceedsProvider()
- {
- return array(
- array(0, 5.0),
- array(5.0, 0),
- array('5', 4.5),
- array(1.2e3, 7E-10),
- array(3, acos(8)),
- array(acos(8), 3),
- array(acos(8), acos(8))
- );
- }
-
- public function acceptsFailsProvider()
- {
- return array(
- array(5, 5),
- array('4.5', 5),
- array(0x539, 02471),
- array(5.0, false),
- array(null, 5.0)
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- return array(
- array(2.3, 2.3),
- array('2.3', 2.3),
- array(5.0, 5),
- array(5, 5.0),
- array(5.0, '5'),
- array(1.2e3, 1200),
- array(2.3, 2.5, 0.5),
- array(3, 3.05, 0.05),
- array(1.2e3, 1201, 1),
- array((string)(1/3), 1 - 2/3),
- array(1/3, (string)(1 - 2/3))
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- return array(
- array(2.3, 4.2),
- array('2.3', 4.2),
- array(5.0, '4'),
- array(5.0, 6),
- array(1.2e3, 1201),
- array(2.3, 2.5, 0.2),
- array(3, 3.05, 0.04),
- array(3, acos(8)),
- array(acos(8), 3),
- array(acos(8), acos(8))
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsSucceedsProvider
- */
- public function testAcceptsSucceeds($expected, $actual)
- {
- $this->assertTrue(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual, $delta = 0.0)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual, $delta);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual, $delta = 0.0)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\Comparator\\ComparisonFailure', 'matches expected'
- );
- $this->comparator->assertEquals($expected, $actual, $delta);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/ExceptionComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/ExceptionComparatorTest.php
deleted file mode 100644
index fa8cc0a3..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/ExceptionComparatorTest.php
+++ /dev/null
@@ -1,136 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-use \Exception;
-use \RuntimeException;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\ExceptionComparator
- *
- */
-class ExceptionComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new ExceptionComparator;
- $this->comparator->setFactory(new Factory);
- }
-
- public function acceptsSucceedsProvider()
- {
- return array(
- array(new Exception, new Exception),
- array(new RuntimeException, new RuntimeException),
- array(new Exception, new RuntimeException)
- );
- }
-
- public function acceptsFailsProvider()
- {
- return array(
- array(new Exception, null),
- array(null, new Exception),
- array(null, null)
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- $exception1 = new Exception;
- $exception2 = new Exception;
-
- $exception3 = new RunTimeException('Error', 100);
- $exception4 = new RunTimeException('Error', 100);
-
- return array(
- array($exception1, $exception1),
- array($exception1, $exception2),
- array($exception3, $exception3),
- array($exception3, $exception4)
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- $typeMessage = 'not instance of expected class';
- $equalMessage = 'Failed asserting that two objects are equal.';
-
- $exception1 = new Exception('Error', 100);
- $exception2 = new Exception('Error', 101);
- $exception3 = new Exception('Errors', 101);
-
- $exception4 = new RunTimeException('Error', 100);
- $exception5 = new RunTimeException('Error', 101);
-
- return array(
- array($exception1, $exception2, $equalMessage),
- array($exception1, $exception3, $equalMessage),
- array($exception1, $exception4, $typeMessage),
- array($exception2, $exception3, $equalMessage),
- array($exception4, $exception5, $equalMessage)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsSucceedsProvider
- */
- public function testAcceptsSucceeds($expected, $actual)
- {
- $this->assertTrue(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual, $message)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\Comparator\\ComparisonFailure', $message
- );
- $this->comparator->assertEquals($expected, $actual);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/FactoryTest.php b/www/wiki/vendor/sebastian/comparator/tests/FactoryTest.php
deleted file mode 100644
index cb58c20c..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/FactoryTest.php
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\Factory
- *
- */
-class FactoryTest extends \PHPUnit_Framework_TestCase
-{
- public function instanceProvider()
- {
- $tmpfile = tmpfile();
-
- return array(
- array(NULL, NULL, 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array(NULL, TRUE, 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array(TRUE, NULL, 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array(TRUE, TRUE, 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array(FALSE, FALSE, 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array(TRUE, FALSE, 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array(FALSE, TRUE, 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array('', '', 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array('0', '0', 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array('0', 0, 'SebastianBergmann\\Comparator\\NumericComparator'),
- array(0, '0', 'SebastianBergmann\\Comparator\\NumericComparator'),
- array(0, 0, 'SebastianBergmann\\Comparator\\NumericComparator'),
- array(1.0, 0, 'SebastianBergmann\\Comparator\\DoubleComparator'),
- array(0, 1.0, 'SebastianBergmann\\Comparator\\DoubleComparator'),
- array(1.0, 1.0, 'SebastianBergmann\\Comparator\\DoubleComparator'),
- array(array(1), array(1), 'SebastianBergmann\\Comparator\\ArrayComparator'),
- array($tmpfile, $tmpfile, 'SebastianBergmann\\Comparator\\ResourceComparator'),
- array(new \stdClass, new \stdClass, 'SebastianBergmann\\Comparator\\ObjectComparator'),
- array(new \DateTime, new \DateTime, 'SebastianBergmann\\Comparator\\DateTimeComparator'),
- array(new \SplObjectStorage, new \SplObjectStorage, 'SebastianBergmann\\Comparator\\SplObjectStorageComparator'),
- array(new \Exception, new \Exception, 'SebastianBergmann\\Comparator\\ExceptionComparator'),
- array(new \DOMDocument, new \DOMDocument, 'SebastianBergmann\\Comparator\\DOMNodeComparator'),
- // mixed types
- array($tmpfile, array(1), 'SebastianBergmann\\Comparator\\TypeComparator'),
- array(array(1), $tmpfile, 'SebastianBergmann\\Comparator\\TypeComparator'),
- array($tmpfile, '1', 'SebastianBergmann\\Comparator\\TypeComparator'),
- array('1', $tmpfile, 'SebastianBergmann\\Comparator\\TypeComparator'),
- array($tmpfile, new \stdClass, 'SebastianBergmann\\Comparator\\TypeComparator'),
- array(new \stdClass, $tmpfile, 'SebastianBergmann\\Comparator\\TypeComparator'),
- array(new \stdClass, array(1), 'SebastianBergmann\\Comparator\\TypeComparator'),
- array(array(1), new \stdClass, 'SebastianBergmann\\Comparator\\TypeComparator'),
- array(new \stdClass, '1', 'SebastianBergmann\\Comparator\\TypeComparator'),
- array('1', new \stdClass, 'SebastianBergmann\\Comparator\\TypeComparator'),
- array(new ClassWithToString, '1', 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array('1', new ClassWithToString, 'SebastianBergmann\\Comparator\\ScalarComparator'),
- array(1.0, new \stdClass, 'SebastianBergmann\\Comparator\\TypeComparator'),
- array(new \stdClass, 1.0, 'SebastianBergmann\\Comparator\\TypeComparator'),
- array(1.0, array(1), 'SebastianBergmann\\Comparator\\TypeComparator'),
- array(array(1), 1.0, 'SebastianBergmann\\Comparator\\TypeComparator'),
- );
- }
-
- /**
- * @dataProvider instanceProvider
- * @covers ::getComparatorFor
- * @covers ::__construct
- */
- public function testGetComparatorFor($a, $b, $expected)
- {
- $factory = new Factory;
- $actual = $factory->getComparatorFor($a, $b);
- $this->assertInstanceOf($expected, $actual);
- }
-
- /**
- * @covers ::register
- */
- public function testRegister()
- {
- $comparator = new TestClassComparator;
-
- $factory = new Factory;
- $factory->register($comparator);
-
- $a = new TestClass;
- $b = new TestClass;
- $expected = 'SebastianBergmann\\Comparator\\TestClassComparator';
- $actual = $factory->getComparatorFor($a, $b);
-
- $factory->unregister($comparator);
- $this->assertInstanceOf($expected, $actual);
- }
-
- /**
- * @covers ::unregister
- */
- public function testUnregister()
- {
- $comparator = new TestClassComparator;
-
- $factory = new Factory;
- $factory->register($comparator);
- $factory->unregister($comparator);
-
- $a = new TestClass;
- $b = new TestClass;
- $expected = 'SebastianBergmann\\Comparator\\ObjectComparator';
- $actual = $factory->getComparatorFor($a, $b);
-
- $this->assertInstanceOf($expected, $actual);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/MockObjectComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/MockObjectComparatorTest.php
deleted file mode 100644
index 7910ad7a..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/MockObjectComparatorTest.php
+++ /dev/null
@@ -1,166 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\MockObjectComparator
- *
- */
-class MockObjectComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new MockObjectComparator;
- $this->comparator->setFactory(new Factory);
- }
-
- public function acceptsSucceedsProvider()
- {
- $testmock = $this->getMock('SebastianBergmann\\Comparator\\TestClass');
- $stdmock = $this->getMock('stdClass');
-
- return array(
- array($testmock, $testmock),
- array($stdmock, $stdmock),
- array($stdmock, $testmock)
- );
- }
-
- public function acceptsFailsProvider()
- {
- $stdmock = $this->getMock('stdClass');
-
- return array(
- array($stdmock, null),
- array(null, $stdmock),
- array(null, null)
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- // cyclic dependencies
- $book1 = $this->getMock('SebastianBergmann\\Comparator\\Book', null);
- $book1->author = $this->getMock('SebastianBergmann\\Comparator\\Author', null, array('Terry Pratchett'));
- $book1->author->books[] = $book1;
- $book2 = $this->getMock('SebastianBergmann\\Comparator\\Book', null);
- $book2->author = $this->getMock('SebastianBergmann\\Comparator\\Author', null, array('Terry Pratchett'));
- $book2->author->books[] = $book2;
-
- $object1 = $this->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(4, 8, 15));
- $object2 = $this->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(4, 8, 15));
-
- return array(
- array($object1, $object1),
- array($object1, $object2),
- array($book1, $book1),
- array($book1, $book2),
- array(
- $this->getMock('SebastianBergmann\\Comparator\\Struct', null, array(2.3)),
- $this->getMock('SebastianBergmann\\Comparator\\Struct', null, array(2.5)),
- 0.5
- )
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- $typeMessage = 'is not instance of expected class';
- $equalMessage = 'Failed asserting that two objects are equal.';
-
- // cyclic dependencies
- $book1 = $this->getMock('SebastianBergmann\\Comparator\\Book', null);
- $book1->author = $this->getMock('SebastianBergmann\\Comparator\\Author', null, array('Terry Pratchett'));
- $book1->author->books[] = $book1;
- $book2 = $this->getMock('SebastianBergmann\\Comparator\\Book', null);
- $book2->author = $this->getMock('SebastianBergmann\\Comparator\\Author', null, array('Terry Pratch'));
- $book2->author->books[] = $book2;
-
- $book3 = $this->getMock('SebastianBergmann\\Comparator\\Book', null);
- $book3->author = 'Terry Pratchett';
- $book4 = $this->getMock('stdClass');
- $book4->author = 'Terry Pratchett';
-
- $object1 = $this->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(4, 8, 15));
- $object2 = $this->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(16, 23, 42));
-
- return array(
- array(
- $this->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(4, 8, 15)),
- $this->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(16, 23, 42)),
- $equalMessage
- ),
- array($object1, $object2, $equalMessage),
- array($book1, $book2, $equalMessage),
- array($book3, $book4, $typeMessage),
- array(
- $this->getMock('SebastianBergmann\\Comparator\\Struct', null, array(2.3)),
- $this->getMock('SebastianBergmann\\Comparator\\Struct', null, array(4.2)),
- $equalMessage,
- 0.5
- )
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsSucceedsProvider
- */
- public function testAcceptsSucceeds($expected, $actual)
- {
- $this->assertTrue(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual, $delta = 0.0)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual, $delta);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual, $message, $delta = 0.0)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\Comparator\\ComparisonFailure', $message
- );
- $this->comparator->assertEquals($expected, $actual, $delta);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/NumericComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/NumericComparatorTest.php
deleted file mode 100644
index fec7d00a..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/NumericComparatorTest.php
+++ /dev/null
@@ -1,122 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\NumericComparator
- *
- */
-class NumericComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new NumericComparator;
- }
-
- public function acceptsSucceedsProvider()
- {
- return array(
- array(5, 10),
- array(8, '0'),
- array('10', 0),
- array(0x74c3b00c, 42),
- array(0755, 0777)
- );
- }
-
- public function acceptsFailsProvider()
- {
- return array(
- array('5', '10'),
- array(8, 5.0),
- array(5.0, 8),
- array(10, null),
- array(false, 12)
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- return array(
- array(1337, 1337),
- array('1337', 1337),
- array(0x539, 1337),
- array(02471, 1337),
- array(1337, 1338, 1),
- array('1337', 1340, 5),
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- return array(
- array(1337, 1338),
- array('1338', 1337),
- array(0x539, 1338),
- array(1337, 1339, 1),
- array('1337', 1340, 2),
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsSucceedsProvider
- */
- public function testAcceptsSucceeds($expected, $actual)
- {
- $this->assertTrue(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual, $delta = 0.0)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual, $delta);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual, $delta = 0.0)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\Comparator\\ComparisonFailure', 'matches expected'
- );
- $this->comparator->assertEquals($expected, $actual, $delta);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/ObjectComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/ObjectComparatorTest.php
deleted file mode 100644
index a9582325..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/ObjectComparatorTest.php
+++ /dev/null
@@ -1,150 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-use stdClass;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\ObjectComparator
- *
- */
-class ObjectComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new ObjectComparator;
- $this->comparator->setFactory(new Factory);
- }
-
- public function acceptsSucceedsProvider()
- {
- return array(
- array(new TestClass, new TestClass),
- array(new stdClass, new stdClass),
- array(new stdClass, new TestClass)
- );
- }
-
- public function acceptsFailsProvider()
- {
- return array(
- array(new stdClass, null),
- array(null, new stdClass),
- array(null, null)
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- // cyclic dependencies
- $book1 = new Book;
- $book1->author = new Author('Terry Pratchett');
- $book1->author->books[] = $book1;
- $book2 = new Book;
- $book2->author = new Author('Terry Pratchett');
- $book2->author->books[] = $book2;
-
- $object1 = new SampleClass(4, 8, 15);
- $object2 = new SampleClass(4, 8, 15);
-
- return array(
- array($object1, $object1),
- array($object1, $object2),
- array($book1, $book1),
- array($book1, $book2),
- array(new Struct(2.3), new Struct(2.5), 0.5)
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- $typeMessage = 'is not instance of expected class';
- $equalMessage = 'Failed asserting that two objects are equal.';
-
- // cyclic dependencies
- $book1 = new Book;
- $book1->author = new Author('Terry Pratchett');
- $book1->author->books[] = $book1;
- $book2 = new Book;
- $book2->author = new Author('Terry Pratch');
- $book2->author->books[] = $book2;
-
- $book3 = new Book;
- $book3->author = 'Terry Pratchett';
- $book4 = new stdClass;
- $book4->author = 'Terry Pratchett';
-
- $object1 = new SampleClass( 4, 8, 15);
- $object2 = new SampleClass(16, 23, 42);
-
- return array(
- array(new SampleClass(4, 8, 15), new SampleClass(16, 23, 42), $equalMessage),
- array($object1, $object2, $equalMessage),
- array($book1, $book2, $equalMessage),
- array($book3, $book4, $typeMessage),
- array(new Struct(2.3), new Struct(4.2), $equalMessage, 0.5)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsSucceedsProvider
- */
- public function testAcceptsSucceeds($expected, $actual)
- {
- $this->assertTrue(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual, $delta = 0.0)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual, $delta);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual, $message, $delta = 0.0)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\Comparator\\ComparisonFailure', $message
- );
- $this->comparator->assertEquals($expected, $actual, $delta);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/ResourceComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/ResourceComparatorTest.php
deleted file mode 100644
index a9e9e955..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/ResourceComparatorTest.php
+++ /dev/null
@@ -1,120 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\ResourceComparator
- *
- */
-class ResourceComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new ResourceComparator;
- }
-
- public function acceptsSucceedsProvider()
- {
- $tmpfile1 = tmpfile();
- $tmpfile2 = tmpfile();
-
- return array(
- array($tmpfile1, $tmpfile1),
- array($tmpfile2, $tmpfile2),
- array($tmpfile1, $tmpfile2)
- );
- }
-
- public function acceptsFailsProvider()
- {
- $tmpfile1 = tmpfile();
-
- return array(
- array($tmpfile1, null),
- array(null, $tmpfile1),
- array(null, null)
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- $tmpfile1 = tmpfile();
- $tmpfile2 = tmpfile();
-
- return array(
- array($tmpfile1, $tmpfile1),
- array($tmpfile2, $tmpfile2)
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- $tmpfile1 = tmpfile();
- $tmpfile2 = tmpfile();
-
- return array(
- array($tmpfile1, $tmpfile2),
- array($tmpfile2, $tmpfile1)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsSucceedsProvider
- */
- public function testAcceptsSucceeds($expected, $actual)
- {
- $this->assertTrue(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual)
- {
- $this->setExpectedException('SebastianBergmann\\Comparator\\ComparisonFailure');
- $this->comparator->assertEquals($expected, $actual);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/ScalarComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/ScalarComparatorTest.php
deleted file mode 100644
index e5156aa3..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/ScalarComparatorTest.php
+++ /dev/null
@@ -1,158 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\ScalarComparator
- *
- */
-class ScalarComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new ScalarComparator;
- }
-
- public function acceptsSucceedsProvider()
- {
- return array(
- array("string", "string"),
- array(new ClassWithToString, "string"),
- array("string", new ClassWithToString),
- array("string", null),
- array(false, "string"),
- array(false, true),
- array(null, false),
- array(null, null),
- array("10", 10),
- array("", false),
- array("1", true),
- array(1, true),
- array(0, false),
- array(0.1, "0.1")
- );
- }
-
- public function acceptsFailsProvider()
- {
- return array(
- array(array(), array()),
- array("string", array()),
- array(new ClassWithToString, new ClassWithToString),
- array(false, new ClassWithToString),
- array(tmpfile(), tmpfile())
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- return array(
- array("string", "string"),
- array(new ClassWithToString, new ClassWithToString),
- array("string representation", new ClassWithToString),
- array(new ClassWithToString, "string representation"),
- array("string", "STRING", true),
- array("STRING", "string", true),
- array("String Representation", new ClassWithToString, true),
- array(new ClassWithToString, "String Representation", true),
- array("10", 10),
- array("", false),
- array("1", true),
- array(1, true),
- array(0, false),
- array(0.1, "0.1"),
- array(false, null),
- array(false, false),
- array(true, true),
- array(null, null)
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- $stringException = 'Failed asserting that two strings are equal.';
- $otherException = 'matches expected';
-
- return array(
- array("string", "other string", $stringException),
- array("string", "STRING", $stringException),
- array("STRING", "string", $stringException),
- array("string", "other string", $stringException),
- // https://github.com/sebastianbergmann/phpunit/issues/1023
- array('9E6666666','9E7777777', $stringException),
- array(new ClassWithToString, "does not match", $otherException),
- array("does not match", new ClassWithToString, $otherException),
- array(0, 'Foobar', $otherException),
- array('Foobar', 0, $otherException),
- array("10", 25, $otherException),
- array("1", false, $otherException),
- array("", true, $otherException),
- array(false, true, $otherException),
- array(true, false, $otherException),
- array(null, true, $otherException),
- array(0, true, $otherException)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsSucceedsProvider
- */
- public function testAcceptsSucceeds($expected, $actual)
- {
- $this->assertTrue(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual, $ignoreCase = false)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual, 0.0, false, $ignoreCase);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual, $message)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\Comparator\\ComparisonFailure', $message
- );
- $this->comparator->assertEquals($expected, $actual);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/SplObjectStorageComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/SplObjectStorageComparatorTest.php
deleted file mode 100644
index 766dd2df..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/SplObjectStorageComparatorTest.php
+++ /dev/null
@@ -1,137 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-use SplObjectStorage;
-use stdClass;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\SplObjectStorageComparator
- *
- */
-class SplObjectStorageComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new SplObjectStorageComparator;
- }
-
- public function acceptsFailsProvider()
- {
- return array(
- array(new SplObjectStorage, new stdClass),
- array(new stdClass, new SplObjectStorage),
- array(new stdClass, new stdClass)
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- $object1 = new stdClass();
- $object2 = new stdClass();
-
- $storage1 = new SplObjectStorage();
- $storage2 = new SplObjectStorage();
-
- $storage3 = new SplObjectStorage();
- $storage3->attach($object1);
- $storage3->attach($object2);
-
- $storage4 = new SplObjectStorage();
- $storage4->attach($object2);
- $storage4->attach($object1);
-
- return array(
- array($storage1, $storage1),
- array($storage1, $storage2),
- array($storage3, $storage3),
- array($storage3, $storage4)
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- $object1 = new stdClass;
- $object2 = new stdClass;
-
- $storage1 = new SplObjectStorage;
-
- $storage2 = new SplObjectStorage;
- $storage2->attach($object1);
-
- $storage3 = new SplObjectStorage;
- $storage3->attach($object2);
- $storage3->attach($object1);
-
- return array(
- array($storage1, $storage2),
- array($storage1, $storage3),
- array($storage2, $storage3),
- );
- }
-
- /**
- * @covers ::accepts
- */
- public function testAcceptsSucceeds()
- {
- $this->assertTrue(
- $this->comparator->accepts(
- new SplObjectStorage,
- new SplObjectStorage
- )
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsFailsProvider
- */
- public function testAcceptsFails($expected, $actual)
- {
- $this->assertFalse(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\Comparator\\ComparisonFailure',
- 'Failed asserting that two objects are equal.'
- );
- $this->comparator->assertEquals($expected, $actual);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/TypeComparatorTest.php b/www/wiki/vendor/sebastian/comparator/tests/TypeComparatorTest.php
deleted file mode 100644
index bb51f8a1..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/TypeComparatorTest.php
+++ /dev/null
@@ -1,104 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-use stdClass;
-
-/**
- * @coversDefaultClass SebastianBergmann\Comparator\TypeComparator
- *
- */
-class TypeComparatorTest extends \PHPUnit_Framework_TestCase
-{
- private $comparator;
-
- protected function setUp()
- {
- $this->comparator = new TypeComparator;
- }
-
- public function acceptsSucceedsProvider()
- {
- return array(
- array(true, 1),
- array(false, array(1)),
- array(null, new stdClass),
- array(1.0, 5),
- array("", "")
- );
- }
-
- public function assertEqualsSucceedsProvider()
- {
- return array(
- array(true, true),
- array(true, false),
- array(false, false),
- array(null, null),
- array(new stdClass, new stdClass),
- array(0, 0),
- array(1.0, 2.0),
- array("hello", "world"),
- array("", ""),
- array(array(), array(1,2,3))
- );
- }
-
- public function assertEqualsFailsProvider()
- {
- return array(
- array(true, null),
- array(null, false),
- array(1.0, 0),
- array(new stdClass, array()),
- array("1", 1)
- );
- }
-
- /**
- * @covers ::accepts
- * @dataProvider acceptsSucceedsProvider
- */
- public function testAcceptsSucceeds($expected, $actual)
- {
- $this->assertTrue(
- $this->comparator->accepts($expected, $actual)
- );
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsSucceedsProvider
- */
- public function testAssertEqualsSucceeds($expected, $actual)
- {
- $exception = null;
-
- try {
- $this->comparator->assertEquals($expected, $actual);
- }
-
- catch (ComparisonFailure $exception) {
- }
-
- $this->assertNull($exception, 'Unexpected ComparisonFailure');
- }
-
- /**
- * @covers ::assertEquals
- * @dataProvider assertEqualsFailsProvider
- */
- public function testAssertEqualsFails($expected, $actual)
- {
- $this->setExpectedException('SebastianBergmann\\Comparator\\ComparisonFailure', 'does not match expected type');
- $this->comparator->assertEquals($expected, $actual);
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/_files/Author.php b/www/wiki/vendor/sebastian/comparator/tests/_files/Author.php
deleted file mode 100644
index ae698c3c..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/_files/Author.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * An author.
- *
- */
-class Author
-{
- // the order of properties is important for testing the cycle!
- public $books = array();
-
- private $name = '';
-
- public function __construct($name)
- {
- $this->name = $name;
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/_files/Book.php b/www/wiki/vendor/sebastian/comparator/tests/_files/Book.php
deleted file mode 100644
index 6171bc33..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/_files/Book.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * A book.
- *
- */
-class Book
-{
- // the order of properties is important for testing the cycle!
- public $author = null;
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/_files/ClassWithToString.php b/www/wiki/vendor/sebastian/comparator/tests/_files/ClassWithToString.php
deleted file mode 100644
index e8e03bc7..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/_files/ClassWithToString.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-class ClassWithToString
-{
- public function __toString()
- {
- return 'string representation';
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/_files/SampleClass.php b/www/wiki/vendor/sebastian/comparator/tests/_files/SampleClass.php
deleted file mode 100644
index 6079dd34..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/_files/SampleClass.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * A sample class.
- *
- */
-class SampleClass
-{
- public $a;
- protected $b;
- protected $c;
-
- public function __construct($a, $b, $c)
- {
- $this->a = $a;
- $this->b = $b;
- $this->c = $c;
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/_files/Struct.php b/www/wiki/vendor/sebastian/comparator/tests/_files/Struct.php
deleted file mode 100644
index 79ec559a..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/_files/Struct.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-/**
- * A struct.
- *
- */
-class Struct
-{
- public $var;
-
- public function __construct($var)
- {
- $this->var = $var;
- }
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/_files/TestClass.php b/www/wiki/vendor/sebastian/comparator/tests/_files/TestClass.php
deleted file mode 100644
index e4c9b78c..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/_files/TestClass.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-class TestClass {
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/_files/TestClassComparator.php b/www/wiki/vendor/sebastian/comparator/tests/_files/TestClassComparator.php
deleted file mode 100644
index 52aac3fd..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/_files/TestClassComparator.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-/*
- * This file is part of the Comparator package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Comparator;
-
-class TestClassComparator extends ObjectComparator {
-}
diff --git a/www/wiki/vendor/sebastian/comparator/tests/autoload.php b/www/wiki/vendor/sebastian/comparator/tests/autoload.php
deleted file mode 100644
index f4d9bbcc..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/autoload.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-// @codingStandardsIgnoreFile
-// @codeCoverageIgnoreStart
-// this is an autogenerated file - do not edit
-spl_autoload_register(
- function($class) {
- static $classes = null;
- if ($classes === null) {
- $classes = array(
- 'sebastianbergmann\\comparator\\arraycomparatortest' => '/ArrayComparatorTest.php',
- 'sebastianbergmann\\comparator\\author' => '/_files/Author.php',
- 'sebastianbergmann\\comparator\\book' => '/_files/Book.php',
- 'sebastianbergmann\\comparator\\classwithtostring' => '/_files/ClassWithToString.php',
- 'sebastianbergmann\\comparator\\datetimecomparatortest' => '/DateTimeComparatorTest.php',
- 'sebastianbergmann\\comparator\\domnodecomparatortest' => '/DOMNodeComparatorTest.php',
- 'sebastianbergmann\\comparator\\doublecomparatortest' => '/DoubleComparatorTest.php',
- 'sebastianbergmann\\comparator\\exceptioncomparatortest' => '/ExceptionComparatorTest.php',
- 'sebastianbergmann\\comparator\\factorytest' => '/FactoryTest.php',
- 'sebastianbergmann\\comparator\\mockobjectcomparatortest' => '/MockObjectComparatorTest.php',
- 'sebastianbergmann\\comparator\\numericcomparatortest' => '/NumericComparatorTest.php',
- 'sebastianbergmann\\comparator\\objectcomparatortest' => '/ObjectComparatorTest.php',
- 'sebastianbergmann\\comparator\\resourcecomparatortest' => '/ResourceComparatorTest.php',
- 'sebastianbergmann\\comparator\\sampleclass' => '/_files/SampleClass.php',
- 'sebastianbergmann\\comparator\\scalarcomparatortest' => '/ScalarComparatorTest.php',
- 'sebastianbergmann\\comparator\\splobjectstoragecomparatortest' => '/SplObjectStorageComparatorTest.php',
- 'sebastianbergmann\\comparator\\struct' => '/_files/Struct.php',
- 'sebastianbergmann\\comparator\\testclass' => '/_files/TestClass.php',
- 'sebastianbergmann\\comparator\\testclasscomparator' => '/_files/TestClassComparator.php',
- 'sebastianbergmann\\comparator\\typecomparatortest' => '/TypeComparatorTest.php'
- );
- }
- $cn = strtolower($class);
- if (isset($classes[$cn])) {
- require __DIR__ . $classes[$cn];
- }
- }
-);
-// @codeCoverageIgnoreEnd
diff --git a/www/wiki/vendor/sebastian/comparator/tests/bootstrap.php b/www/wiki/vendor/sebastian/comparator/tests/bootstrap.php
deleted file mode 100644
index 8f1c57c3..00000000
--- a/www/wiki/vendor/sebastian/comparator/tests/bootstrap.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-require __DIR__ . '/../vendor/autoload.php';
-require __DIR__ . '/autoload.php';
-
-ini_set('precision', 14);
-ini_set('serialize_precision', 14);
-
diff --git a/www/wiki/vendor/sebastian/diff/.gitignore b/www/wiki/vendor/sebastian/diff/.gitignore
deleted file mode 100644
index 36a9658a..00000000
--- a/www/wiki/vendor/sebastian/diff/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/.idea
-/composer.lock
-/vendor
-/.php_cs.cache \ No newline at end of file
diff --git a/www/wiki/vendor/sebastian/diff/.php_cs b/www/wiki/vendor/sebastian/diff/.php_cs
deleted file mode 100644
index ef46bead..00000000
--- a/www/wiki/vendor/sebastian/diff/.php_cs
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-$header = <<<'EOF'
-This file is part of sebastian/diff.
-
-(c) Sebastian Bergmann <sebastian@phpunit.de>
-
-For the full copyright and license information, please view the LICENSE
-file that was distributed with this source code.
-EOF;
-
-return PhpCsFixer\Config::create()
- ->setRiskyAllowed(true)
- ->setRules(
- [
- 'array_syntax' => ['syntax' => 'long'],
- 'binary_operator_spaces' => [
- 'align_double_arrow' => true,
- 'align_equals' => true
- ],
- 'blank_line_after_namespace' => true,
- 'blank_line_before_return' => true,
- 'braces' => true,
- 'cast_spaces' => true,
- 'concat_space' => ['spacing' => 'one'],
- 'elseif' => true,
- 'encoding' => true,
- 'full_opening_tag' => true,
- 'function_declaration' => true,
- 'header_comment' => ['header' => $header, 'separate' => 'none'],
- 'indentation_type' => true,
- 'line_ending' => true,
- 'lowercase_constants' => true,
- 'lowercase_keywords' => true,
- 'method_argument_space' => true,
- 'native_function_invocation' => true,
- 'no_alias_functions' => true,
- 'no_blank_lines_after_class_opening' => true,
- 'no_blank_lines_after_phpdoc' => true,
- 'no_closing_tag' => true,
- 'no_empty_phpdoc' => true,
- 'no_empty_statement' => true,
- 'no_extra_consecutive_blank_lines' => true,
- 'no_leading_namespace_whitespace' => true,
- 'no_singleline_whitespace_before_semicolons' => true,
- 'no_spaces_after_function_name' => true,
- 'no_spaces_inside_parenthesis' => true,
- 'no_trailing_comma_in_list_call' => true,
- 'no_trailing_whitespace' => true,
- 'no_unused_imports' => true,
- 'no_whitespace_in_blank_line' => true,
- 'phpdoc_align' => true,
- 'phpdoc_indent' => true,
- 'phpdoc_no_access' => true,
- 'phpdoc_no_empty_return' => true,
- 'phpdoc_no_package' => true,
- 'phpdoc_scalar' => true,
- 'phpdoc_separation' => true,
- 'phpdoc_to_comment' => true,
- 'phpdoc_trim' => true,
- 'phpdoc_types' => true,
- 'phpdoc_var_without_name' => true,
- 'self_accessor' => true,
- 'simplified_null_return' => true,
- 'single_blank_line_at_eof' => true,
- 'single_import_per_statement' => true,
- 'single_line_after_imports' => true,
- 'single_quote' => true,
- 'ternary_operator_spaces' => true,
- 'trim_array_spaces' => true,
- 'visibility_required' => true,
- ]
- )
- ->setFinder(
- PhpCsFixer\Finder::create()
- ->files()
- ->in(__DIR__ . '/src')
- ->in(__DIR__ . '/tests')
- ->name('*.php')
- );
diff --git a/www/wiki/vendor/sebastian/diff/.travis.yml b/www/wiki/vendor/sebastian/diff/.travis.yml
deleted file mode 100644
index fa69ad1c..00000000
--- a/www/wiki/vendor/sebastian/diff/.travis.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-language: php
-
-php:
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - 7.0snapshot
- - 7.1
- - 7.1snapshot
- - master
-
-sudo: false
-
-before_install:
- - composer self-update
- - composer clear-cache
-
-install:
- - travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable
-
-script:
- - ./vendor/bin/phpunit --coverage-clover=coverage.xml
-
-after_success:
- - bash <(curl -s https://codecov.io/bash)
-
-notifications:
- email: false
-
diff --git a/www/wiki/vendor/sebastian/diff/LICENSE b/www/wiki/vendor/sebastian/diff/LICENSE
deleted file mode 100644
index e1ddf136..00000000
--- a/www/wiki/vendor/sebastian/diff/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-sebastian/diff
-
-Copyright (c) 2002-2017, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/sebastian/diff/README.md b/www/wiki/vendor/sebastian/diff/README.md
deleted file mode 100644
index 956038b4..00000000
--- a/www/wiki/vendor/sebastian/diff/README.md
+++ /dev/null
@@ -1,126 +0,0 @@
-# sebastian/diff
-
-Diff implementation for PHP, factored out of PHPUnit into a stand-alone component.
-
-## Installation
-
-You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
-
- composer require sebastian/diff
-
-If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
-
- composer require --dev sebastian/diff
-
-### Usage
-
-The `Differ` class can be used to generate a textual representation of the difference between two strings:
-
-```php
-use SebastianBergmann\Diff\Differ;
-
-$differ = new Differ;
-print $differ->diff('foo', 'bar');
-```
-
-The code above yields the output below:
-
- --- Original
- +++ New
- @@ @@
- -foo
- +bar
-
-The `Parser` class can be used to parse a unified diff into an object graph:
-
-```php
-use SebastianBergmann\Diff\Parser;
-use SebastianBergmann\Git;
-
-$git = new Git('/usr/local/src/money');
-
-$diff = $git->getDiff(
- '948a1a07768d8edd10dcefa8315c1cbeffb31833',
- 'c07a373d2399f3e686234c4f7f088d635eb9641b'
-);
-
-$parser = new Parser;
-
-print_r($parser->parse($diff));
-```
-
-The code above yields the output below:
-
- Array
- (
- [0] => SebastianBergmann\Diff\Diff Object
- (
- [from:SebastianBergmann\Diff\Diff:private] => a/tests/MoneyTest.php
- [to:SebastianBergmann\Diff\Diff:private] => b/tests/MoneyTest.php
- [chunks:SebastianBergmann\Diff\Diff:private] => Array
- (
- [0] => SebastianBergmann\Diff\Chunk Object
- (
- [start:SebastianBergmann\Diff\Chunk:private] => 87
- [startRange:SebastianBergmann\Diff\Chunk:private] => 7
- [end:SebastianBergmann\Diff\Chunk:private] => 87
- [endRange:SebastianBergmann\Diff\Chunk:private] => 7
- [lines:SebastianBergmann\Diff\Chunk:private] => Array
- (
- [0] => SebastianBergmann\Diff\Line Object
- (
- [type:SebastianBergmann\Diff\Line:private] => 3
- [content:SebastianBergmann\Diff\Line:private] => * @covers SebastianBergmann\Money\Money::add
- )
-
- [1] => SebastianBergmann\Diff\Line Object
- (
- [type:SebastianBergmann\Diff\Line:private] => 3
- [content:SebastianBergmann\Diff\Line:private] => * @covers SebastianBergmann\Money\Money::newMoney
- )
-
- [2] => SebastianBergmann\Diff\Line Object
- (
- [type:SebastianBergmann\Diff\Line:private] => 3
- [content:SebastianBergmann\Diff\Line:private] => */
- )
-
- [3] => SebastianBergmann\Diff\Line Object
- (
- [type:SebastianBergmann\Diff\Line:private] => 2
- [content:SebastianBergmann\Diff\Line:private] => public function testAnotherMoneyWithSameCurrencyObjectCanBeAdded()
- )
-
- [4] => SebastianBergmann\Diff\Line Object
- (
- [type:SebastianBergmann\Diff\Line:private] => 1
- [content:SebastianBergmann\Diff\Line:private] => public function testAnotherMoneyObjectWithSameCurrencyCanBeAdded()
- )
-
- [5] => SebastianBergmann\Diff\Line Object
- (
- [type:SebastianBergmann\Diff\Line:private] => 3
- [content:SebastianBergmann\Diff\Line:private] => {
- )
-
- [6] => SebastianBergmann\Diff\Line Object
- (
- [type:SebastianBergmann\Diff\Line:private] => 3
- [content:SebastianBergmann\Diff\Line:private] => $a = new Money(1, new Currency('EUR'));
- )
-
- [7] => SebastianBergmann\Diff\Line Object
- (
- [type:SebastianBergmann\Diff\Line:private] => 3
- [content:SebastianBergmann\Diff\Line:private] => $b = new Money(2, new Currency('EUR'));
- )
-
- )
-
- )
-
- )
-
- )
-
- )
diff --git a/www/wiki/vendor/sebastian/diff/build.xml b/www/wiki/vendor/sebastian/diff/build.xml
deleted file mode 100644
index fa7b7e2b..00000000
--- a/www/wiki/vendor/sebastian/diff/build.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="diff" default="setup">
- <target name="setup" depends="clean,composer"/>
-
- <target name="clean" description="Cleanup build artifacts">
- <delete dir="${basedir}/vendor"/>
- <delete file="${basedir}/composer.lock"/>
- </target>
-
- <target name="composer" depends="clean" description="Install dependencies with Composer">
- <exec executable="composer" taskname="composer">
- <arg value="update"/>
- <arg value="--no-interaction"/>
- <arg value="--no-progress"/>
- <arg value="--no-ansi"/>
- <arg value="--no-suggest"/>
- <arg value="--optimize-autoloader"/>
- <arg value="--prefer-stable"/>
- </exec>
- </target>
-</project>
-
diff --git a/www/wiki/vendor/sebastian/diff/composer.json b/www/wiki/vendor/sebastian/diff/composer.json
deleted file mode 100644
index 8f2bcf3d..00000000
--- a/www/wiki/vendor/sebastian/diff/composer.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "name": "sebastian/diff",
- "description": "Diff implementation",
- "keywords": ["diff"],
- "homepage": "https://github.com/sebastianbergmann/diff",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- }
- ],
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.4-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/phpunit.xml b/www/wiki/vendor/sebastian/diff/phpunit.xml
deleted file mode 100644
index 68febeb0..00000000
--- a/www/wiki/vendor/sebastian/diff/phpunit.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
- bootstrap="vendor/autoload.php"
- forceCoversAnnotation="true"
- beStrictAboutCoversAnnotation="true"
- beStrictAboutOutputDuringTests="true"
- beStrictAboutTodoAnnotatedTests="true"
- verbose="true">
- <testsuite>
- <directory suffix="Test.php">tests</directory>
- </testsuite>
-
- <filter>
- <whitelist processUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">src</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/sebastian/diff/src/Chunk.php b/www/wiki/vendor/sebastian/diff/src/Chunk.php
deleted file mode 100644
index 1a6ea730..00000000
--- a/www/wiki/vendor/sebastian/diff/src/Chunk.php
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff;
-
-class Chunk
-{
- /**
- * @var int
- */
- private $start;
-
- /**
- * @var int
- */
- private $startRange;
-
- /**
- * @var int
- */
- private $end;
-
- /**
- * @var int
- */
- private $endRange;
-
- /**
- * @var array
- */
- private $lines;
-
- /**
- * @param int $start
- * @param int $startRange
- * @param int $end
- * @param int $endRange
- * @param array $lines
- */
- public function __construct($start = 0, $startRange = 1, $end = 0, $endRange = 1, array $lines = array())
- {
- $this->start = (int) $start;
- $this->startRange = (int) $startRange;
- $this->end = (int) $end;
- $this->endRange = (int) $endRange;
- $this->lines = $lines;
- }
-
- /**
- * @return int
- */
- public function getStart()
- {
- return $this->start;
- }
-
- /**
- * @return int
- */
- public function getStartRange()
- {
- return $this->startRange;
- }
-
- /**
- * @return int
- */
- public function getEnd()
- {
- return $this->end;
- }
-
- /**
- * @return int
- */
- public function getEndRange()
- {
- return $this->endRange;
- }
-
- /**
- * @return array
- */
- public function getLines()
- {
- return $this->lines;
- }
-
- /**
- * @param array $lines
- */
- public function setLines(array $lines)
- {
- $this->lines = $lines;
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/src/Diff.php b/www/wiki/vendor/sebastian/diff/src/Diff.php
deleted file mode 100644
index d3ab3ef4..00000000
--- a/www/wiki/vendor/sebastian/diff/src/Diff.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff;
-
-class Diff
-{
- /**
- * @var string
- */
- private $from;
-
- /**
- * @var string
- */
- private $to;
-
- /**
- * @var Chunk[]
- */
- private $chunks;
-
- /**
- * @param string $from
- * @param string $to
- * @param Chunk[] $chunks
- */
- public function __construct($from, $to, array $chunks = array())
- {
- $this->from = $from;
- $this->to = $to;
- $this->chunks = $chunks;
- }
-
- /**
- * @return string
- */
- public function getFrom()
- {
- return $this->from;
- }
-
- /**
- * @return string
- */
- public function getTo()
- {
- return $this->to;
- }
-
- /**
- * @return Chunk[]
- */
- public function getChunks()
- {
- return $this->chunks;
- }
-
- /**
- * @param Chunk[] $chunks
- */
- public function setChunks(array $chunks)
- {
- $this->chunks = $chunks;
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/src/Differ.php b/www/wiki/vendor/sebastian/diff/src/Differ.php
deleted file mode 100644
index 116c99c4..00000000
--- a/www/wiki/vendor/sebastian/diff/src/Differ.php
+++ /dev/null
@@ -1,399 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff;
-
-use SebastianBergmann\Diff\LCS\LongestCommonSubsequence;
-use SebastianBergmann\Diff\LCS\TimeEfficientImplementation;
-use SebastianBergmann\Diff\LCS\MemoryEfficientImplementation;
-
-/**
- * Diff implementation.
- */
-class Differ
-{
- /**
- * @var string
- */
- private $header;
-
- /**
- * @var bool
- */
- private $showNonDiffLines;
-
- /**
- * @param string $header
- * @param bool $showNonDiffLines
- */
- public function __construct($header = "--- Original\n+++ New\n", $showNonDiffLines = true)
- {
- $this->header = $header;
- $this->showNonDiffLines = $showNonDiffLines;
- }
-
- /**
- * Returns the diff between two arrays or strings as string.
- *
- * @param array|string $from
- * @param array|string $to
- * @param LongestCommonSubsequence $lcs
- *
- * @return string
- */
- public function diff($from, $to, LongestCommonSubsequence $lcs = null)
- {
- $from = $this->validateDiffInput($from);
- $to = $this->validateDiffInput($to);
- $diff = $this->diffToArray($from, $to, $lcs);
- $old = $this->checkIfDiffInOld($diff);
- $start = isset($old[0]) ? $old[0] : 0;
- $end = \count($diff);
-
- if ($tmp = \array_search($end, $old)) {
- $end = $tmp;
- }
-
- return $this->getBuffer($diff, $old, $start, $end);
- }
-
- /**
- * Casts variable to string if it is not a string or array.
- *
- * @param mixed $input
- *
- * @return string
- */
- private function validateDiffInput($input)
- {
- if (!\is_array($input) && !\is_string($input)) {
- return (string) $input;
- }
-
- return $input;
- }
-
- /**
- * Takes input of the diff array and returns the old array.
- * Iterates through diff line by line,
- *
- * @param array $diff
- *
- * @return array
- */
- private function checkIfDiffInOld(array $diff)
- {
- $inOld = false;
- $i = 0;
- $old = array();
-
- foreach ($diff as $line) {
- if ($line[1] === 0 /* OLD */) {
- if ($inOld === false) {
- $inOld = $i;
- }
- } elseif ($inOld !== false) {
- if (($i - $inOld) > 5) {
- $old[$inOld] = $i - 1;
- }
-
- $inOld = false;
- }
-
- ++$i;
- }
-
- return $old;
- }
-
- /**
- * Generates buffer in string format, returning the patch.
- *
- * @param array $diff
- * @param array $old
- * @param int $start
- * @param int $end
- *
- * @return string
- */
- private function getBuffer(array $diff, array $old, $start, $end)
- {
- $buffer = $this->header;
-
- if (!isset($old[$start])) {
- $buffer = $this->getDiffBufferElementNew($diff, $buffer, $start);
- ++$start;
- }
-
- for ($i = $start; $i < $end; $i++) {
- if (isset($old[$i])) {
- $i = $old[$i];
- $buffer = $this->getDiffBufferElementNew($diff, $buffer, $i);
- } else {
- $buffer = $this->getDiffBufferElement($diff, $buffer, $i);
- }
- }
-
- return $buffer;
- }
-
- /**
- * Gets individual buffer element.
- *
- * @param array $diff
- * @param string $buffer
- * @param int $diffIndex
- *
- * @return string
- */
- private function getDiffBufferElement(array $diff, $buffer, $diffIndex)
- {
- if ($diff[$diffIndex][1] === 1 /* ADDED */) {
- $buffer .= '+' . $diff[$diffIndex][0] . "\n";
- } elseif ($diff[$diffIndex][1] === 2 /* REMOVED */) {
- $buffer .= '-' . $diff[$diffIndex][0] . "\n";
- } elseif ($this->showNonDiffLines === true) {
- $buffer .= ' ' . $diff[$diffIndex][0] . "\n";
- }
-
- return $buffer;
- }
-
- /**
- * Gets individual buffer element with opening.
- *
- * @param array $diff
- * @param string $buffer
- * @param int $diffIndex
- *
- * @return string
- */
- private function getDiffBufferElementNew(array $diff, $buffer, $diffIndex)
- {
- if ($this->showNonDiffLines === true) {
- $buffer .= "@@ @@\n";
- }
-
- return $this->getDiffBufferElement($diff, $buffer, $diffIndex);
- }
-
- /**
- * Returns the diff between two arrays or strings as array.
- *
- * Each array element contains two elements:
- * - [0] => mixed $token
- * - [1] => 2|1|0
- *
- * - 2: REMOVED: $token was removed from $from
- * - 1: ADDED: $token was added to $from
- * - 0: OLD: $token is not changed in $to
- *
- * @param array|string $from
- * @param array|string $to
- * @param LongestCommonSubsequence $lcs
- *
- * @return array
- */
- public function diffToArray($from, $to, LongestCommonSubsequence $lcs = null)
- {
- if (\is_string($from)) {
- $fromMatches = $this->getNewLineMatches($from);
- $from = $this->splitStringByLines($from);
- } elseif (\is_array($from)) {
- $fromMatches = array();
- } else {
- throw new \InvalidArgumentException('"from" must be an array or string.');
- }
-
- if (\is_string($to)) {
- $toMatches = $this->getNewLineMatches($to);
- $to = $this->splitStringByLines($to);
- } elseif (\is_array($to)) {
- $toMatches = array();
- } else {
- throw new \InvalidArgumentException('"to" must be an array or string.');
- }
-
- list($from, $to, $start, $end) = self::getArrayDiffParted($from, $to);
-
- if ($lcs === null) {
- $lcs = $this->selectLcsImplementation($from, $to);
- }
-
- $common = $lcs->calculate(\array_values($from), \array_values($to));
- $diff = array();
-
- if ($this->detectUnmatchedLineEndings($fromMatches, $toMatches)) {
- $diff[] = array(
- '#Warning: Strings contain different line endings!',
- 0
- );
- }
-
- foreach ($start as $token) {
- $diff[] = array($token, 0 /* OLD */);
- }
-
- \reset($from);
- \reset($to);
-
- foreach ($common as $token) {
- while (($fromToken = \reset($from)) !== $token) {
- $diff[] = array(\array_shift($from), 2 /* REMOVED */);
- }
-
- while (($toToken = \reset($to)) !== $token) {
- $diff[] = array(\array_shift($to), 1 /* ADDED */);
- }
-
- $diff[] = array($token, 0 /* OLD */);
-
- \array_shift($from);
- \array_shift($to);
- }
-
- while (($token = \array_shift($from)) !== null) {
- $diff[] = array($token, 2 /* REMOVED */);
- }
-
- while (($token = \array_shift($to)) !== null) {
- $diff[] = array($token, 1 /* ADDED */);
- }
-
- foreach ($end as $token) {
- $diff[] = array($token, 0 /* OLD */);
- }
-
- return $diff;
- }
-
- /**
- * Get new strings denoting new lines from a given string.
- *
- * @param string $string
- *
- * @return array
- */
- private function getNewLineMatches($string)
- {
- \preg_match_all('(\r\n|\r|\n)', $string, $stringMatches);
-
- return $stringMatches;
- }
-
- /**
- * Checks if input is string, if so it will split it line-by-line.
- *
- * @param string $input
- *
- * @return array
- */
- private function splitStringByLines($input)
- {
- return \preg_split('(\r\n|\r|\n)', $input);
- }
-
- /**
- * @param array $from
- * @param array $to
- *
- * @return LongestCommonSubsequence
- */
- private function selectLcsImplementation(array $from, array $to)
- {
- // We do not want to use the time-efficient implementation if its memory
- // footprint will probably exceed this value. Note that the footprint
- // calculation is only an estimation for the matrix and the LCS method
- // will typically allocate a bit more memory than this.
- $memoryLimit = 100 * 1024 * 1024;
-
- if ($this->calculateEstimatedFootprint($from, $to) > $memoryLimit) {
- return new MemoryEfficientImplementation;
- }
-
- return new TimeEfficientImplementation;
- }
-
- /**
- * Calculates the estimated memory footprint for the DP-based method.
- *
- * @param array $from
- * @param array $to
- *
- * @return int|float
- */
- private function calculateEstimatedFootprint(array $from, array $to)
- {
- $itemSize = PHP_INT_SIZE === 4 ? 76 : 144;
-
- return $itemSize * \pow(\min(\count($from), \count($to)), 2);
- }
-
- /**
- * Returns true if line ends don't match on fromMatches and toMatches.
- *
- * @param array $fromMatches
- * @param array $toMatches
- *
- * @return bool
- */
- private function detectUnmatchedLineEndings(array $fromMatches, array $toMatches)
- {
- return isset($fromMatches[0], $toMatches[0]) &&
- \count($fromMatches[0]) === \count($toMatches[0]) &&
- $fromMatches[0] !== $toMatches[0];
- }
-
- /**
- * @param array $from
- * @param array $to
- *
- * @return array
- */
- private static function getArrayDiffParted(array &$from, array &$to)
- {
- $start = array();
- $end = array();
-
- \reset($to);
-
- foreach ($from as $k => $v) {
- $toK = \key($to);
-
- if ($toK === $k && $v === $to[$k]) {
- $start[$k] = $v;
-
- unset($from[$k], $to[$k]);
- } else {
- break;
- }
- }
-
- \end($from);
- \end($to);
-
- do {
- $fromK = \key($from);
- $toK = \key($to);
-
- if (null === $fromK || null === $toK || \current($from) !== \current($to)) {
- break;
- }
-
- \prev($from);
- \prev($to);
-
- $end = array($fromK => $from[$fromK]) + $end;
- unset($from[$fromK], $to[$toK]);
- } while (true);
-
- return array($from, $to, $start, $end);
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/src/LCS/LongestCommonSubsequence.php b/www/wiki/vendor/sebastian/diff/src/LCS/LongestCommonSubsequence.php
deleted file mode 100644
index 28674abe..00000000
--- a/www/wiki/vendor/sebastian/diff/src/LCS/LongestCommonSubsequence.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff\LCS;
-
-/**
- * Interface for implementations of longest common subsequence calculation.
- */
-interface LongestCommonSubsequence
-{
- /**
- * Calculates the longest common subsequence of two arrays.
- *
- * @param array $from
- * @param array $to
- *
- * @return array
- */
- public function calculate(array $from, array $to);
-}
diff --git a/www/wiki/vendor/sebastian/diff/src/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php b/www/wiki/vendor/sebastian/diff/src/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php
deleted file mode 100644
index c1b31218..00000000
--- a/www/wiki/vendor/sebastian/diff/src/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff\LCS;
-
-/**
- * Memory-efficient implementation of longest common subsequence calculation.
- */
-class MemoryEfficientImplementation implements LongestCommonSubsequence
-{
- /**
- * Calculates the longest common subsequence of two arrays.
- *
- * @param array $from
- * @param array $to
- *
- * @return array
- */
- public function calculate(array $from, array $to)
- {
- $cFrom = \count($from);
- $cTo = \count($to);
-
- if ($cFrom === 0) {
- return array();
- }
-
- if ($cFrom === 1) {
- if (\in_array($from[0], $to, true)) {
- return array($from[0]);
- }
-
- return array();
- }
-
- $i = (int) ($cFrom / 2);
- $fromStart = \array_slice($from, 0, $i);
- $fromEnd = \array_slice($from, $i);
- $llB = $this->length($fromStart, $to);
- $llE = $this->length(\array_reverse($fromEnd), \array_reverse($to));
- $jMax = 0;
- $max = 0;
-
- for ($j = 0; $j <= $cTo; $j++) {
- $m = $llB[$j] + $llE[$cTo - $j];
-
- if ($m >= $max) {
- $max = $m;
- $jMax = $j;
- }
- }
-
- $toStart = \array_slice($to, 0, $jMax);
- $toEnd = \array_slice($to, $jMax);
-
- return \array_merge(
- $this->calculate($fromStart, $toStart),
- $this->calculate($fromEnd, $toEnd)
- );
- }
-
- /**
- * @param array $from
- * @param array $to
- *
- * @return array
- */
- private function length(array $from, array $to)
- {
- $current = \array_fill(0, \count($to) + 1, 0);
- $cFrom = \count($from);
- $cTo = \count($to);
-
- for ($i = 0; $i < $cFrom; $i++) {
- $prev = $current;
-
- for ($j = 0; $j < $cTo; $j++) {
- if ($from[$i] === $to[$j]) {
- $current[$j + 1] = $prev[$j] + 1;
- } else {
- $current[$j + 1] = \max($current[$j], $prev[$j + 1]);
- }
- }
- }
-
- return $current;
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/src/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php b/www/wiki/vendor/sebastian/diff/src/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php
deleted file mode 100644
index f31db3eb..00000000
--- a/www/wiki/vendor/sebastian/diff/src/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff\LCS;
-
-/**
- * Time-efficient implementation of longest common subsequence calculation.
- */
-class TimeEfficientImplementation implements LongestCommonSubsequence
-{
- /**
- * Calculates the longest common subsequence of two arrays.
- *
- * @param array $from
- * @param array $to
- *
- * @return array
- */
- public function calculate(array $from, array $to)
- {
- $common = array();
- $fromLength = \count($from);
- $toLength = \count($to);
- $width = $fromLength + 1;
- $matrix = new \SplFixedArray($width * ($toLength + 1));
-
- for ($i = 0; $i <= $fromLength; ++$i) {
- $matrix[$i] = 0;
- }
-
- for ($j = 0; $j <= $toLength; ++$j) {
- $matrix[$j * $width] = 0;
- }
-
- for ($i = 1; $i <= $fromLength; ++$i) {
- for ($j = 1; $j <= $toLength; ++$j) {
- $o = ($j * $width) + $i;
- $matrix[$o] = \max(
- $matrix[$o - 1],
- $matrix[$o - $width],
- $from[$i - 1] === $to[$j - 1] ? $matrix[$o - $width - 1] + 1 : 0
- );
- }
- }
-
- $i = $fromLength;
- $j = $toLength;
-
- while ($i > 0 && $j > 0) {
- if ($from[$i - 1] === $to[$j - 1]) {
- $common[] = $from[$i - 1];
- --$i;
- --$j;
- } else {
- $o = ($j * $width) + $i;
-
- if ($matrix[$o - $width] > $matrix[$o - 1]) {
- --$j;
- } else {
- --$i;
- }
- }
- }
-
- return \array_reverse($common);
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/src/Line.php b/www/wiki/vendor/sebastian/diff/src/Line.php
deleted file mode 100644
index 89b86835..00000000
--- a/www/wiki/vendor/sebastian/diff/src/Line.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff;
-
-class Line
-{
- const ADDED = 1;
- const REMOVED = 2;
- const UNCHANGED = 3;
-
- /**
- * @var int
- */
- private $type;
-
- /**
- * @var string
- */
- private $content;
-
- /**
- * @param int $type
- * @param string $content
- */
- public function __construct($type = self::UNCHANGED, $content = '')
- {
- $this->type = $type;
- $this->content = $content;
- }
-
- /**
- * @return string
- */
- public function getContent()
- {
- return $this->content;
- }
-
- /**
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/src/Parser.php b/www/wiki/vendor/sebastian/diff/src/Parser.php
deleted file mode 100644
index 312c8411..00000000
--- a/www/wiki/vendor/sebastian/diff/src/Parser.php
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff;
-
-/**
- * Unified diff parser.
- */
-class Parser
-{
- /**
- * @param string $string
- *
- * @return Diff[]
- */
- public function parse($string)
- {
- $lines = \preg_split('(\r\n|\r|\n)', $string);
-
- if (!empty($lines) && $lines[\count($lines) - 1] == '') {
- \array_pop($lines);
- }
-
- $lineCount = \count($lines);
- $diffs = array();
- $diff = null;
- $collected = array();
-
- for ($i = 0; $i < $lineCount; ++$i) {
- if (\preg_match('(^---\\s+(?P<file>\\S+))', $lines[$i], $fromMatch) &&
- \preg_match('(^\\+\\+\\+\\s+(?P<file>\\S+))', $lines[$i + 1], $toMatch)) {
- if ($diff !== null) {
- $this->parseFileDiff($diff, $collected);
-
- $diffs[] = $diff;
- $collected = array();
- }
-
- $diff = new Diff($fromMatch['file'], $toMatch['file']);
-
- ++$i;
- } else {
- if (\preg_match('/^(?:diff --git |index [\da-f\.]+|[+-]{3} [ab])/', $lines[$i])) {
- continue;
- }
-
- $collected[] = $lines[$i];
- }
- }
-
- if ($diff !== null && \count($collected)) {
- $this->parseFileDiff($diff, $collected);
-
- $diffs[] = $diff;
- }
-
- return $diffs;
- }
-
- /**
- * @param Diff $diff
- * @param array $lines
- */
- private function parseFileDiff(Diff $diff, array $lines)
- {
- $chunks = array();
- $chunk = null;
-
- foreach ($lines as $line) {
- if (\preg_match('/^@@\s+-(?P<start>\d+)(?:,\s*(?P<startrange>\d+))?\s+\+(?P<end>\d+)(?:,\s*(?P<endrange>\d+))?\s+@@/', $line, $match)) {
- $chunk = new Chunk(
- $match['start'],
- isset($match['startrange']) ? \max(1, $match['startrange']) : 1,
- $match['end'],
- isset($match['endrange']) ? \max(1, $match['endrange']) : 1
- );
-
- $chunks[] = $chunk;
- $diffLines = array();
-
- continue;
- }
-
- if (\preg_match('/^(?P<type>[+ -])?(?P<line>.*)/', $line, $match)) {
- $type = Line::UNCHANGED;
-
- if ($match['type'] === '+') {
- $type = Line::ADDED;
- } elseif ($match['type'] === '-') {
- $type = Line::REMOVED;
- }
-
- $diffLines[] = new Line($type, $match['line']);
-
- if (null !== $chunk) {
- $chunk->setLines($diffLines);
- }
- }
- }
-
- $diff->setChunks($chunks);
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/tests/ChunkTest.php b/www/wiki/vendor/sebastian/diff/tests/ChunkTest.php
deleted file mode 100644
index d065c133..00000000
--- a/www/wiki/vendor/sebastian/diff/tests/ChunkTest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff;
-
-use PHPUnit\Framework\TestCase;
-
-/**
- * @covers SebastianBergmann\Diff\Chunk
- */
-class ChunkTest extends TestCase
-{
- /**
- * @var Chunk
- */
- private $chunk;
-
- protected function setUp()
- {
- $this->chunk = new Chunk;
- }
-
- public function testCanBeCreatedWithoutArguments()
- {
- $this->assertInstanceOf('SebastianBergmann\Diff\Chunk', $this->chunk);
- }
-
- public function testStartCanBeRetrieved()
- {
- $this->assertEquals(0, $this->chunk->getStart());
- }
-
- public function testStartRangeCanBeRetrieved()
- {
- $this->assertEquals(1, $this->chunk->getStartRange());
- }
-
- public function testEndCanBeRetrieved()
- {
- $this->assertEquals(0, $this->chunk->getEnd());
- }
-
- public function testEndRangeCanBeRetrieved()
- {
- $this->assertEquals(1, $this->chunk->getEndRange());
- }
-
- public function testLinesCanBeRetrieved()
- {
- $this->assertEquals(array(), $this->chunk->getLines());
- }
-
- public function testLinesCanBeSet()
- {
- $this->assertEquals(array(), $this->chunk->getLines());
-
- $testValue = array('line0', 'line1');
- $this->chunk->setLines($testValue);
- $this->assertEquals($testValue, $this->chunk->getLines());
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/tests/DiffTest.php b/www/wiki/vendor/sebastian/diff/tests/DiffTest.php
deleted file mode 100644
index e1fa55d6..00000000
--- a/www/wiki/vendor/sebastian/diff/tests/DiffTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff;
-
-use PHPUnit\Framework\TestCase;
-
-/**
- * @covers SebastianBergmann\Diff\Diff
- *
- * @uses SebastianBergmann\Diff\Chunk
- */
-final class DiffTest extends TestCase
-{
- public function testGettersAfterConstructionWithDefault()
- {
- $from = 'line1a';
- $to = 'line2a';
- $diff = new Diff($from, $to);
-
- $this->assertSame($from, $diff->getFrom());
- $this->assertSame($to, $diff->getTo());
- $this->assertSame(array(), $diff->getChunks(), 'Expect chunks to be default value "array()".');
- }
-
- public function testGettersAfterConstructionWithChunks()
- {
- $from = 'line1b';
- $to = 'line2b';
- $chunks = array(new Chunk(), new Chunk(2, 3));
-
- $diff = new Diff($from, $to, $chunks);
-
- $this->assertSame($from, $diff->getFrom());
- $this->assertSame($to, $diff->getTo());
- $this->assertSame($chunks, $diff->getChunks(), 'Expect chunks to be passed value.');
- }
-
- public function testSetChunksAfterConstruction()
- {
- $diff = new Diff('line1c', 'line2c');
- $this->assertSame(array(), $diff->getChunks(), 'Expect chunks to be default value "array()".');
-
- $chunks = array(new Chunk(), new Chunk(2, 3));
- $diff->setChunks($chunks);
- $this->assertSame($chunks, $diff->getChunks(), 'Expect chunks to be passed value.');
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/tests/DifferTest.php b/www/wiki/vendor/sebastian/diff/tests/DifferTest.php
deleted file mode 100644
index b9403f21..00000000
--- a/www/wiki/vendor/sebastian/diff/tests/DifferTest.php
+++ /dev/null
@@ -1,415 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff;
-
-use SebastianBergmann\Diff\LCS\MemoryEfficientImplementation;
-use SebastianBergmann\Diff\LCS\TimeEfficientImplementation;
-use PHPUnit\Framework\TestCase;
-
-/**
- * @covers SebastianBergmann\Diff\Differ
- *
- * @uses SebastianBergmann\Diff\LCS\MemoryEfficientImplementation
- * @uses SebastianBergmann\Diff\LCS\TimeEfficientImplementation
- * @uses SebastianBergmann\Diff\Chunk
- * @uses SebastianBergmann\Diff\Diff
- * @uses SebastianBergmann\Diff\Line
- * @uses SebastianBergmann\Diff\Parser
- */
-class DifferTest extends TestCase
-{
- const REMOVED = 2;
- const ADDED = 1;
- const OLD = 0;
-
- /**
- * @var Differ
- */
- private $differ;
-
- protected function setUp()
- {
- $this->differ = new Differ;
- }
-
- /**
- * @param array $expected
- * @param string|array $from
- * @param string|array $to
- * @dataProvider arrayProvider
- */
- public function testArrayRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation(array $expected, $from, $to)
- {
- $this->assertEquals($expected, $this->differ->diffToArray($from, $to, new TimeEfficientImplementation));
- }
-
- /**
- * @param string $expected
- * @param string $from
- * @param string $to
- * @dataProvider textProvider
- */
- public function testTextRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation($expected, $from, $to)
- {
- $this->assertEquals($expected, $this->differ->diff($from, $to, new TimeEfficientImplementation));
- }
-
- /**
- * @param array $expected
- * @param string|array $from
- * @param string|array $to
- * @dataProvider arrayProvider
- */
- public function testArrayRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation(array $expected, $from, $to)
- {
- $this->assertEquals($expected, $this->differ->diffToArray($from, $to, new MemoryEfficientImplementation));
- }
-
- /**
- * @param string $expected
- * @param string $from
- * @param string $to
- * @dataProvider textProvider
- */
- public function testTextRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation($expected, $from, $to)
- {
- $this->assertEquals($expected, $this->differ->diff($from, $to, new MemoryEfficientImplementation));
- }
-
- public function testCustomHeaderCanBeUsed()
- {
- $differ = new Differ('CUSTOM HEADER');
-
- $this->assertEquals(
- "CUSTOM HEADER@@ @@\n-a\n+b\n",
- $differ->diff('a', 'b')
- );
- }
-
- public function testTypesOtherThanArrayAndStringCanBePassed()
- {
- $this->assertEquals(
- "--- Original\n+++ New\n@@ @@\n-1\n+2\n",
- $this->differ->diff(1, 2)
- );
- }
-
- /**
- * @param string $diff
- * @param Diff[] $expected
- * @dataProvider diffProvider
- */
- public function testParser($diff, array $expected)
- {
- $parser = new Parser;
- $result = $parser->parse($diff);
-
- $this->assertEquals($expected, $result);
- }
-
- public function arrayProvider()
- {
- return array(
- array(
- array(
- array('a', self::REMOVED),
- array('b', self::ADDED)
- ),
- 'a',
- 'b'
- ),
- array(
- array(
- array('ba', self::REMOVED),
- array('bc', self::ADDED)
- ),
- 'ba',
- 'bc'
- ),
- array(
- array(
- array('ab', self::REMOVED),
- array('cb', self::ADDED)
- ),
- 'ab',
- 'cb'
- ),
- array(
- array(
- array('abc', self::REMOVED),
- array('adc', self::ADDED)
- ),
- 'abc',
- 'adc'
- ),
- array(
- array(
- array('ab', self::REMOVED),
- array('abc', self::ADDED)
- ),
- 'ab',
- 'abc'
- ),
- array(
- array(
- array('bc', self::REMOVED),
- array('abc', self::ADDED)
- ),
- 'bc',
- 'abc'
- ),
- array(
- array(
- array('abc', self::REMOVED),
- array('abbc', self::ADDED)
- ),
- 'abc',
- 'abbc'
- ),
- array(
- array(
- array('abcdde', self::REMOVED),
- array('abcde', self::ADDED)
- ),
- 'abcdde',
- 'abcde'
- ),
- 'same start' => array(
- array(
- array(17, self::OLD),
- array('b', self::REMOVED),
- array('d', self::ADDED),
- ),
- array(30 => 17, 'a' => 'b'),
- array(30 => 17, 'c' => 'd'),
- ),
- 'same end' => array(
- array(
- array(1, self::REMOVED),
- array(2, self::ADDED),
- array('b', self::OLD),
- ),
- array(1 => 1, 'a' => 'b'),
- array(1 => 2, 'a' => 'b'),
- ),
- 'same start (2), same end (1)' => array(
- array(
- array(17, self::OLD),
- array(2, self::OLD),
- array(4, self::REMOVED),
- array('a', self::ADDED),
- array(5, self::ADDED),
- array('x', self::OLD),
- ),
- array(30 => 17, 1 => 2, 2 => 4, 'z' => 'x'),
- array(30 => 17, 1 => 2, 3 => 'a', 2 => 5, 'z' => 'x'),
- ),
- 'same' => array(
- array(
- array('x', self::OLD),
- ),
- array('z' => 'x'),
- array('z' => 'x'),
- ),
- 'diff' => array(
- array(
- array('y', self::REMOVED),
- array('x', self::ADDED),
- ),
- array('x' => 'y'),
- array('z' => 'x'),
- ),
- 'diff 2' => array(
- array(
- array('y', self::REMOVED),
- array('b', self::REMOVED),
- array('x', self::ADDED),
- array('d', self::ADDED),
- ),
- array('x' => 'y', 'a' => 'b'),
- array('z' => 'x', 'c' => 'd'),
- ),
- 'test line diff detection' => array(
- array(
- array(
- '#Warning: Strings contain different line endings!',
- self::OLD,
- ),
- array(
- '<?php',
- self::OLD,
- ),
- array(
- '',
- self::OLD,
- ),
- ),
- "<?php\r\n",
- "<?php\n"
- )
- );
- }
-
- public function textProvider()
- {
- return array(
- array(
- "--- Original\n+++ New\n@@ @@\n-a\n+b\n",
- 'a',
- 'b'
- ),
- array(
- "--- Original\n+++ New\n@@ @@\n-ba\n+bc\n",
- 'ba',
- 'bc'
- ),
- array(
- "--- Original\n+++ New\n@@ @@\n-ab\n+cb\n",
- 'ab',
- 'cb'
- ),
- array(
- "--- Original\n+++ New\n@@ @@\n-abc\n+adc\n",
- 'abc',
- 'adc'
- ),
- array(
- "--- Original\n+++ New\n@@ @@\n-ab\n+abc\n",
- 'ab',
- 'abc'
- ),
- array(
- "--- Original\n+++ New\n@@ @@\n-bc\n+abc\n",
- 'bc',
- 'abc'
- ),
- array(
- "--- Original\n+++ New\n@@ @@\n-abc\n+abbc\n",
- 'abc',
- 'abbc'
- ),
- array(
- "--- Original\n+++ New\n@@ @@\n-abcdde\n+abcde\n",
- 'abcdde',
- 'abcde'
- ),
- array(
- "--- Original\n+++ New\n@@ @@\n-A\n+A1\n B\n",
- "A\nB",
- "A1\nB",
- ),
- array(
- <<<EOF
---- Original
-+++ New
-@@ @@
- a
--b
-+p
-@@ @@
- i
--j
-+w
- k
-
-EOF
- ,
- "a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk",
- "a\np\nc\nd\ne\nf\ng\nh\ni\nw\nk",
- ),
- array(
- <<<EOF
---- Original
-+++ New
-@@ @@
- a
--b
-+p
-@@ @@
- i
--j
-+w
- k
-
-EOF
- ,
- "a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk",
- "a\np\nc\nd\ne\nf\ng\nh\ni\nw\nk",
- ),
- );
- }
-
- public function diffProvider()
- {
- $serialized_arr = <<<EOL
-a:1:{i:0;O:27:"SebastianBergmann\Diff\Diff":3:{s:33:"
-EOL;
-
- return array(
- array(
- "--- old.txt 2014-11-04 08:51:02.661868729 +0300\n+++ new.txt 2014-11-04 08:51:02.665868730 +0300\n@@ -1,3 +1,4 @@\n+2222111\n 1111111\n 1111111\n 1111111\n@@ -5,10 +6,8 @@\n 1111111\n 1111111\n 1111111\n +1121211\n 1111111\n -1111111\n -1111111\n -2222222\n 2222222\n 2222222\n 2222222\n@@ -17,5 +16,6 @@\n 2222222\n 2222222\n 2222222\n +2122212\n 2222222\n 2222222\n",
- \unserialize($serialized_arr)
- )
- );
- }
-
- /**
- * @param string $expected
- * @param string $from
- * @param string $to
- * @dataProvider textForNoNonDiffLinesProvider
- */
- public function testDiffDoNotShowNonDiffLines($expected, $from, $to)
- {
- $differ = new Differ('', false);
- $this->assertSame($expected, $differ->diff($from, $to));
- }
-
- public function textForNoNonDiffLinesProvider()
- {
- return array(
- array(
- '', 'a', 'a'
- ),
- array(
- "-A\n+C\n",
- "A\n\n\nB",
- "C\n\n\nB",
- ),
- );
- }
-
- /**
- * @requires PHPUnit 5.7
- */
- public function testDiffToArrayInvalidFromType()
- {
- $differ = new Differ;
-
- $this->expectException('\InvalidArgumentException');
- $this->expectExceptionMessageRegExp('#^"from" must be an array or string\.$#');
-
- $differ->diffToArray(null, '');
- }
-
- /**
- * @requires PHPUnit 5.7
- */
- public function testDiffInvalidToType()
- {
- $differ = new Differ;
-
- $this->expectException('\InvalidArgumentException');
- $this->expectExceptionMessageRegExp('#^"to" must be an array or string\.$#');
-
- $differ->diffToArray('', new \stdClass);
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/tests/LCS/LongestCommonSubsequenceTest.php b/www/wiki/vendor/sebastian/diff/tests/LCS/LongestCommonSubsequenceTest.php
deleted file mode 100644
index b4b40840..00000000
--- a/www/wiki/vendor/sebastian/diff/tests/LCS/LongestCommonSubsequenceTest.php
+++ /dev/null
@@ -1,198 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff\LCS;
-
-use PHPUnit\Framework\TestCase;
-
-abstract class LongestCommonSubsequenceTest extends TestCase
-{
- /**
- * @var LongestCommonSubsequence
- */
- private $implementation;
-
- /**
- * @var string
- */
- private $memoryLimit;
-
- /**
- * @var int[]
- */
- private $stress_sizes = array(1, 2, 3, 100, 500, 1000, 2000);
-
- protected function setUp()
- {
- $this->memoryLimit = \ini_get('memory_limit');
- \ini_set('memory_limit', '256M');
-
- $this->implementation = $this->createImplementation();
- }
-
- /**
- * @return LongestCommonSubsequence
- */
- abstract protected function createImplementation();
-
- protected function tearDown()
- {
- \ini_set('memory_limit', $this->memoryLimit);
- }
-
- public function testBothEmpty()
- {
- $from = array();
- $to = array();
- $common = $this->implementation->calculate($from, $to);
-
- $this->assertEquals(array(), $common);
- }
-
- public function testIsStrictComparison()
- {
- $from = array(
- false, 0, 0.0, '', null, array(),
- true, 1, 1.0, 'foo', array('foo', 'bar'), array('foo' => 'bar')
- );
- $to = $from;
- $common = $this->implementation->calculate($from, $to);
-
- $this->assertEquals($from, $common);
-
- $to = array(
- false, false, false, false, false, false,
- true, true, true, true, true, true
- );
-
- $expected = array(
- false,
- true,
- );
-
- $common = $this->implementation->calculate($from, $to);
-
- $this->assertEquals($expected, $common);
- }
-
- public function testEqualSequences()
- {
- foreach ($this->stress_sizes as $size) {
- $range = \range(1, $size);
- $from = $range;
- $to = $range;
- $common = $this->implementation->calculate($from, $to);
-
- $this->assertEquals($range, $common);
- }
- }
-
- public function testDistinctSequences()
- {
- $from = array('A');
- $to = array('B');
- $common = $this->implementation->calculate($from, $to);
- $this->assertEquals(array(), $common);
-
- $from = array('A', 'B', 'C');
- $to = array('D', 'E', 'F');
- $common = $this->implementation->calculate($from, $to);
- $this->assertEquals(array(), $common);
-
- foreach ($this->stress_sizes as $size) {
- $from = \range(1, $size);
- $to = \range($size + 1, $size * 2);
- $common = $this->implementation->calculate($from, $to);
- $this->assertEquals(array(), $common);
- }
- }
-
- public function testCommonSubsequence()
- {
- $from = array('A', 'C', 'E', 'F', 'G');
- $to = array('A', 'B', 'D', 'E', 'H');
- $expected = array('A', 'E');
- $common = $this->implementation->calculate($from, $to);
- $this->assertEquals($expected, $common);
-
- $from = array('A', 'C', 'E', 'F', 'G');
- $to = array('B', 'C', 'D', 'E', 'F', 'H');
- $expected = array('C', 'E', 'F');
- $common = $this->implementation->calculate($from, $to);
- $this->assertEquals($expected, $common);
-
- foreach ($this->stress_sizes as $size) {
- $from = $size < 2 ? array(1) : \range(1, $size + 1, 2);
- $to = $size < 3 ? array(1) : \range(1, $size + 1, 3);
- $expected = $size < 6 ? array(1) : \range(1, $size + 1, 6);
- $common = $this->implementation->calculate($from, $to);
-
- $this->assertEquals($expected, $common);
- }
- }
-
- public function testSingleElementSubsequenceAtStart()
- {
- foreach ($this->stress_sizes as $size) {
- $from = \range(1, $size);
- $to = \array_slice($from, 0, 1);
- $common = $this->implementation->calculate($from, $to);
-
- $this->assertEquals($to, $common);
- }
- }
-
- public function testSingleElementSubsequenceAtMiddle()
- {
- foreach ($this->stress_sizes as $size) {
- $from = \range(1, $size);
- $to = \array_slice($from, (int) $size / 2, 1);
- $common = $this->implementation->calculate($from, $to);
-
- $this->assertEquals($to, $common);
- }
- }
-
- public function testSingleElementSubsequenceAtEnd()
- {
- foreach ($this->stress_sizes as $size) {
- $from = \range(1, $size);
- $to = \array_slice($from, $size - 1, 1);
- $common = $this->implementation->calculate($from, $to);
-
- $this->assertEquals($to, $common);
- }
- }
-
- public function testReversedSequences()
- {
- $from = array('A', 'B');
- $to = array('B', 'A');
- $expected = array('A');
- $common = $this->implementation->calculate($from, $to);
- $this->assertEquals($expected, $common);
-
- foreach ($this->stress_sizes as $size) {
- $from = \range(1, $size);
- $to = \array_reverse($from);
- $common = $this->implementation->calculate($from, $to);
-
- $this->assertEquals(array(1), $common);
- }
- }
-
- public function testStrictTypeCalculate()
- {
- $diff = $this->implementation->calculate(array('5'), array('05'));
-
- $this->assertInternalType('array', $diff);
- $this->assertCount(0, $diff);
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/tests/LCS/MemoryEfficientImplementationTest.php b/www/wiki/vendor/sebastian/diff/tests/LCS/MemoryEfficientImplementationTest.php
deleted file mode 100644
index b0e57a47..00000000
--- a/www/wiki/vendor/sebastian/diff/tests/LCS/MemoryEfficientImplementationTest.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff\LCS;
-
-/**
- * @covers SebastianBergmann\Diff\LCS\MemoryEfficientImplementation
- */
-class MemoryEfficientImplementationTest extends LongestCommonSubsequenceTest
-{
- protected function createImplementation()
- {
- return new MemoryEfficientImplementation;
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/tests/LCS/TimeEfficientImplementationTest.php b/www/wiki/vendor/sebastian/diff/tests/LCS/TimeEfficientImplementationTest.php
deleted file mode 100644
index a3ecb570..00000000
--- a/www/wiki/vendor/sebastian/diff/tests/LCS/TimeEfficientImplementationTest.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff\LCS;
-
-/**
- * @covers SebastianBergmann\Diff\LCS\TimeEfficientImplementation
- */
-class TimeEfficientImplementationTest extends LongestCommonSubsequenceTest
-{
- protected function createImplementation()
- {
- return new TimeEfficientImplementation;
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/tests/LineTest.php b/www/wiki/vendor/sebastian/diff/tests/LineTest.php
deleted file mode 100644
index 6fd8c167..00000000
--- a/www/wiki/vendor/sebastian/diff/tests/LineTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff;
-
-use PHPUnit\Framework\TestCase;
-
-/**
- * @covers SebastianBergmann\Diff\Line
- */
-class LineTest extends TestCase
-{
- /**
- * @var Line
- */
- private $line;
-
- protected function setUp()
- {
- $this->line = new Line;
- }
-
- public function testCanBeCreatedWithoutArguments()
- {
- $this->assertInstanceOf('SebastianBergmann\Diff\Line', $this->line);
- }
-
- public function testTypeCanBeRetrieved()
- {
- $this->assertEquals(Line::UNCHANGED, $this->line->getType());
- }
-
- public function testContentCanBeRetrieved()
- {
- $this->assertEquals('', $this->line->getContent());
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/tests/ParserTest.php b/www/wiki/vendor/sebastian/diff/tests/ParserTest.php
deleted file mode 100644
index 0963d83a..00000000
--- a/www/wiki/vendor/sebastian/diff/tests/ParserTest.php
+++ /dev/null
@@ -1,151 +0,0 @@
-<?php
-/*
- * This file is part of sebastian/diff.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Diff;
-
-use PHPUnit\Framework\TestCase;
-
-/**
- * @covers SebastianBergmann\Diff\Parser
- *
- * @uses SebastianBergmann\Diff\Chunk
- * @uses SebastianBergmann\Diff\Diff
- * @uses SebastianBergmann\Diff\Line
- */
-class ParserTest extends TestCase
-{
- /**
- * @var Parser
- */
- private $parser;
-
- protected function setUp()
- {
- $this->parser = new Parser;
- }
-
- public function testParse()
- {
- $content = \file_get_contents(__DIR__ . '/fixtures/patch.txt');
-
- $diffs = $this->parser->parse($content);
-
- $this->assertInternalType('array', $diffs);
- $this->assertContainsOnlyInstancesOf('SebastianBergmann\Diff\Diff', $diffs);
- $this->assertCount(1, $diffs);
-
- $chunks = $diffs[0]->getChunks();
- $this->assertInternalType('array', $chunks);
- $this->assertContainsOnlyInstancesOf('SebastianBergmann\Diff\Chunk', $chunks);
-
- $this->assertCount(1, $chunks);
-
- $this->assertEquals(20, $chunks[0]->getStart());
-
- $this->assertCount(4, $chunks[0]->getLines());
- }
-
- public function testParseWithMultipleChunks()
- {
- $content = \file_get_contents(__DIR__ . '/fixtures/patch2.txt');
-
- $diffs = $this->parser->parse($content);
-
- $this->assertCount(1, $diffs);
-
- $chunks = $diffs[0]->getChunks();
- $this->assertCount(3, $chunks);
-
- $this->assertEquals(20, $chunks[0]->getStart());
- $this->assertEquals(320, $chunks[1]->getStart());
- $this->assertEquals(600, $chunks[2]->getStart());
-
- $this->assertCount(5, $chunks[0]->getLines());
- $this->assertCount(5, $chunks[1]->getLines());
- $this->assertCount(4, $chunks[2]->getLines());
- }
-
- public function testParseWithRemovedLines()
- {
- $content = <<<A
-diff --git a/Test.txt b/Test.txt
-index abcdefg..abcdefh 100644
---- a/Test.txt
-+++ b/Test.txt
-@@ -49,9 +49,8 @@
- A
--B
-A;
- $diffs = $this->parser->parse($content);
- $this->assertInternalType('array', $diffs);
- $this->assertContainsOnlyInstancesOf('SebastianBergmann\Diff\Diff', $diffs);
- $this->assertCount(1, $diffs);
-
- $chunks = $diffs[0]->getChunks();
-
- $this->assertInternalType('array', $chunks);
- $this->assertContainsOnlyInstancesOf('SebastianBergmann\Diff\Chunk', $chunks);
- $this->assertCount(1, $chunks);
-
- $chunk = $chunks[0];
- $this->assertSame(49, $chunk->getStart());
- $this->assertSame(49, $chunk->getEnd());
- $this->assertSame(9, $chunk->getStartRange());
- $this->assertSame(8, $chunk->getEndRange());
-
- $lines = $chunk->getLines();
- $this->assertInternalType('array', $lines);
- $this->assertContainsOnlyInstancesOf('SebastianBergmann\Diff\Line', $lines);
- $this->assertCount(2, $lines);
-
- /** @var Line $line */
- $line = $lines[0];
- $this->assertSame('A', $line->getContent());
- $this->assertSame(Line::UNCHANGED, $line->getType());
-
- $line = $lines[1];
- $this->assertSame('B', $line->getContent());
- $this->assertSame(Line::REMOVED, $line->getType());
- }
-
- public function testParseDiffForMulitpleFiles()
- {
- $content = <<<A
-diff --git a/Test.txt b/Test.txt
-index abcdefg..abcdefh 100644
---- a/Test.txt
-+++ b/Test.txt
-@@ -1,3 +1,2 @@
- A
--B
-
-diff --git a/Test123.txt b/Test123.txt
-index abcdefg..abcdefh 100644
---- a/Test2.txt
-+++ b/Test2.txt
-@@ -1,2 +1,3 @@
- A
-+B
-A;
- $diffs = $this->parser->parse($content);
- $this->assertCount(2, $diffs);
-
- /** @var Diff $diff */
- $diff = $diffs[0];
- $this->assertSame('a/Test.txt', $diff->getFrom());
- $this->assertSame('b/Test.txt', $diff->getTo());
- $this->assertCount(1, $diff->getChunks());
-
- $diff = $diffs[1];
- $this->assertSame('a/Test2.txt', $diff->getFrom());
- $this->assertSame('b/Test2.txt', $diff->getTo());
- $this->assertCount(1, $diff->getChunks());
- }
-}
diff --git a/www/wiki/vendor/sebastian/diff/tests/fixtures/patch.txt b/www/wiki/vendor/sebastian/diff/tests/fixtures/patch.txt
deleted file mode 100644
index 144b61d0..00000000
--- a/www/wiki/vendor/sebastian/diff/tests/fixtures/patch.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-diff --git a/Foo.php b/Foo.php
-index abcdefg..abcdefh 100644
---- a/Foo.php
-+++ b/Foo.php
-@@ -20,4 +20,5 @@ class Foo
- const ONE = 1;
- const TWO = 2;
-+ const THREE = 3;
- const FOUR = 4;
diff --git a/www/wiki/vendor/sebastian/diff/tests/fixtures/patch2.txt b/www/wiki/vendor/sebastian/diff/tests/fixtures/patch2.txt
deleted file mode 100644
index 41fbc959..00000000
--- a/www/wiki/vendor/sebastian/diff/tests/fixtures/patch2.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-diff --git a/Foo.php b/Foo.php
-index abcdefg..abcdefh 100644
---- a/Foo.php
-+++ b/Foo.php
-@@ -20,4 +20,5 @@ class Foo
- const ONE = 1;
- const TWO = 2;
-+ const THREE = 3;
- const FOUR = 4;
-
-@@ -320,4 +320,5 @@ class Foo
- const A = 'A';
- const B = 'B';
-+ const C = 'C';
- const D = 'D';
-
-@@ -600,4 +600,5 @@ class Foo
- public function doSomething() {
-
-+ return 'foo';
- }
diff --git a/www/wiki/vendor/sebastian/environment/.gitignore b/www/wiki/vendor/sebastian/environment/.gitignore
deleted file mode 100644
index 441848b7..00000000
--- a/www/wiki/vendor/sebastian/environment/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/.idea
-/vendor
-/composer.lock
-/composer.phar
diff --git a/www/wiki/vendor/sebastian/environment/.travis.yml b/www/wiki/vendor/sebastian/environment/.travis.yml
deleted file mode 100644
index 76a9bde4..00000000
--- a/www/wiki/vendor/sebastian/environment/.travis.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-language: php
-
-before_script:
- - composer self-update
- - composer install --no-interaction --prefer-source --dev
-
-php:
- - 5.3.3
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - hhvm
-
-notifications:
- email: false
diff --git a/www/wiki/vendor/sebastian/environment/LICENSE b/www/wiki/vendor/sebastian/environment/LICENSE
deleted file mode 100644
index 08539af4..00000000
--- a/www/wiki/vendor/sebastian/environment/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-Environment
-
-Copyright (c) 2014-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/sebastian/environment/README.md b/www/wiki/vendor/sebastian/environment/README.md
deleted file mode 100644
index 5f3cb3b9..00000000
--- a/www/wiki/vendor/sebastian/environment/README.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# Environment
-
-This component provides functionality that helps writing PHP code that has runtime-specific (PHP / HHVM) execution paths.
-
-[![Latest Stable Version](https://poser.pugx.org/sebastian/environment/v/stable.png)](https://packagist.org/packages/sebastian/environment)
-[![Build Status](https://travis-ci.org/sebastianbergmann/environment.png?branch=master)](https://travis-ci.org/sebastianbergmann/environment)
-
-## Installation
-
-To add Environment as a local, per-project dependency to your project, simply add a dependency on `sebastian/environment` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on Environment 1.0:
-
- {
- "require": {
- "sebastian/environment": "1.0.*"
- }
- }
-
-## Usage
-
-```php
-<?php
-use SebastianBergmann\Environment\Runtime;
-
-$runtime = new Runtime;
-
-var_dump($runtime->getNameWithVersion());
-var_dump($runtime->getName());
-var_dump($runtime->getVersion());
-var_dump($runtime->getBinary());
-var_dump($runtime->isHHVM());
-var_dump($runtime->isPHP());
-var_dump($runtime->hasXdebug());
-var_dump($runtime->canCollectCodeCoverage());
-```
-
-### Output on PHP
-
- $ php --version
- PHP 5.5.8 (cli) (built: Jan 9 2014 08:33:30)
- Copyright (c) 1997-2013 The PHP Group
- Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
- with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
-
-
- $ php example.php
- string(9) "PHP 5.5.8"
- string(3) "PHP"
- string(5) "5.5.8"
- string(14) "'/usr/bin/php'"
- bool(false)
- bool(true)
- bool(true)
- bool(true)
-
-### Output on HHVM
-
- $ hhvm --version
- HipHop VM 2.4.0-dev (rel)
- Compiler: heads/master-0-ga98e57cabee7e7f0d14493ab17d5c7ab0157eb98
- Repo schema: 8d6e69287c41c1f09bb4d327421720d1922cfc67
-
-
- $ hhvm example.php
- string(14) "HHVM 2.4.0-dev"
- string(4) "HHVM"
- string(9) "2.4.0-dev"
- string(42) "'/usr/local/src/hhvm/hphp/hhvm/hhvm' --php"
- bool(true)
- bool(false)
- bool(false)
- bool(true)
-
diff --git a/www/wiki/vendor/sebastian/environment/build.xml b/www/wiki/vendor/sebastian/environment/build.xml
deleted file mode 100644
index 92fb1c54..00000000
--- a/www/wiki/vendor/sebastian/environment/build.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="environment">
- <target name="clean" description="Cleanup build artifacts">
- <delete dir="${basedir}/vendor"/>
- <delete file="${basedir}/composer.lock"/>
- </target>
-
- <target name="composer" depends="clean" description="Install dependencies with Composer">
- <tstamp>
- <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
- </tstamp>
- <delete>
- <fileset dir="${basedir}">
- <include name="composer.phar" />
- <date datetime="${thirty.days.ago}" when="before"/>
- </fileset>
- </delete>
-
- <get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" skipexisting="true"/>
-
- <exec executable="php">
- <arg value="composer.phar"/>
- <arg value="install"/>
- </exec>
- </target>
-</project>
diff --git a/www/wiki/vendor/sebastian/environment/composer.json b/www/wiki/vendor/sebastian/environment/composer.json
deleted file mode 100644
index b6602c4d..00000000
--- a/www/wiki/vendor/sebastian/environment/composer.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "sebastian/environment",
- "description": "Provides functionality to handle HHVM/PHP environments",
- "keywords": ["environment","hhvm","xdebug"],
- "homepage": "http://www.github.com/sebastianbergmann/environment",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "require": {
- "php": "^5.3.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8 || ^5.0"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/environment/phpunit.xml b/www/wiki/vendor/sebastian/environment/phpunit.xml
deleted file mode 100644
index f3b710c3..00000000
--- a/www/wiki/vendor/sebastian/environment/phpunit.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.4/phpunit.xsd"
- bootstrap="vendor/autoload.php"
- backupGlobals="false"
- beStrictAboutCoversAnnotation="true"
- beStrictAboutOutputDuringTests="true"
- beStrictAboutTestsThatDoNotTestAnything="true"
- beStrictAboutTodoAnnotatedTests="true"
- verbose="true">
- <testsuite>
- <directory suffix="Test.php">tests</directory>
- </testsuite>
-
- <filter>
- <whitelist processUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">src</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/sebastian/environment/src/Console.php b/www/wiki/vendor/sebastian/environment/src/Console.php
deleted file mode 100644
index 2aff1d65..00000000
--- a/www/wiki/vendor/sebastian/environment/src/Console.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-/*
- * This file is part of the Environment package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Environment;
-
-/**
- */
-class Console
-{
- const STDIN = 0;
- const STDOUT = 1;
- const STDERR = 2;
-
- /**
- * Returns true if STDOUT supports colorization.
- *
- * This code has been copied and adapted from
- * Symfony\Component\Console\Output\OutputStream.
- *
- * @return bool
- */
- public function hasColorSupport()
- {
- if (DIRECTORY_SEPARATOR == '\\') {
- return false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI') || 'xterm' === getenv('TERM');
- }
-
- if (!defined('STDOUT')) {
- return false;
- }
-
- return $this->isInteractive(STDOUT);
- }
-
- /**
- * Returns the number of columns of the terminal.
- *
- * @return int
- */
- public function getNumberOfColumns()
- {
- if (DIRECTORY_SEPARATOR == '\\') {
- $columns = 80;
-
- if (preg_match('/^(\d+)x\d+ \(\d+x(\d+)\)$/', trim(getenv('ANSICON')), $matches)) {
- $columns = $matches[1];
- } elseif (function_exists('proc_open')) {
- $process = proc_open(
- 'mode CON',
- array(
- 1 => array('pipe', 'w'),
- 2 => array('pipe', 'w')
- ),
- $pipes,
- null,
- null,
- array('suppress_errors' => true)
- );
-
- if (is_resource($process)) {
- $info = stream_get_contents($pipes[1]);
-
- fclose($pipes[1]);
- fclose($pipes[2]);
- proc_close($process);
-
- if (preg_match('/--------+\r?\n.+?(\d+)\r?\n.+?(\d+)\r?\n/', $info, $matches)) {
- $columns = $matches[2];
- }
- }
- }
-
- return $columns - 1;
- }
-
- if (!$this->isInteractive(self::STDIN)) {
- return 80;
- }
-
- if (function_exists('shell_exec') && preg_match('#\d+ (\d+)#', shell_exec('stty size'), $match) === 1) {
- if ((int) $match[1] > 0) {
- return (int) $match[1];
- }
- }
-
- if (function_exists('shell_exec') && preg_match('#columns = (\d+);#', shell_exec('stty'), $match) === 1) {
- if ((int) $match[1] > 0) {
- return (int) $match[1];
- }
- }
-
- return 80;
- }
-
- /**
- * Returns if the file descriptor is an interactive terminal or not.
- *
- * @param int|resource $fileDescriptor
- *
- * @return bool
- */
- public function isInteractive($fileDescriptor = self::STDOUT)
- {
- return function_exists('posix_isatty') && @posix_isatty($fileDescriptor);
- }
-}
diff --git a/www/wiki/vendor/sebastian/environment/src/Runtime.php b/www/wiki/vendor/sebastian/environment/src/Runtime.php
deleted file mode 100644
index 179473bf..00000000
--- a/www/wiki/vendor/sebastian/environment/src/Runtime.php
+++ /dev/null
@@ -1,194 +0,0 @@
-<?php
-/*
- * This file is part of the Environment package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Environment;
-
-/**
- * Utility class for HHVM/PHP environment handling.
- */
-class Runtime
-{
- /**
- * @var string
- */
- private static $binary;
-
- /**
- * Returns true when Xdebug is supported or
- * the runtime used is PHPDBG (PHP >= 7.0).
- *
- * @return bool
- */
- public function canCollectCodeCoverage()
- {
- return $this->hasXdebug() || $this->hasPHPDBGCodeCoverage();
- }
-
- /**
- * Returns the path to the binary of the current runtime.
- * Appends ' --php' to the path when the runtime is HHVM.
- *
- * @return string
- */
- public function getBinary()
- {
- // HHVM
- if (self::$binary === null && $this->isHHVM()) {
- if ((self::$binary = getenv('PHP_BINARY')) === false) {
- self::$binary = PHP_BINARY;
- }
-
- self::$binary = escapeshellarg(self::$binary) . ' --php';
- }
-
- // PHP >= 5.4.0
- if (self::$binary === null && defined('PHP_BINARY')) {
- if (PHP_BINARY !== '') {
- self::$binary = escapeshellarg(PHP_BINARY);
- }
- }
-
- // PHP < 5.4.0
- if (self::$binary === null) {
- if (PHP_SAPI == 'cli' && isset($_SERVER['_'])) {
- if (strpos($_SERVER['_'], 'phpunit') !== false) {
- $file = file($_SERVER['_']);
-
- if (strpos($file[0], ' ') !== false) {
- $tmp = explode(' ', $file[0]);
- self::$binary = escapeshellarg(trim($tmp[1]));
- } else {
- self::$binary = escapeshellarg(ltrim(trim($file[0]), '#!'));
- }
- } elseif (strpos(basename($_SERVER['_']), 'php') !== false) {
- self::$binary = escapeshellarg($_SERVER['_']);
- }
- }
- }
-
- if (self::$binary === null) {
- $possibleBinaryLocations = array(
- PHP_BINDIR . '/php',
- PHP_BINDIR . '/php-cli.exe',
- PHP_BINDIR . '/php.exe'
- );
-
- foreach ($possibleBinaryLocations as $binary) {
- if (is_readable($binary)) {
- self::$binary = escapeshellarg($binary);
- break;
- }
- }
- }
-
- if (self::$binary === null) {
- self::$binary = 'php';
- }
-
- return self::$binary;
- }
-
- /**
- * @return string
- */
- public function getNameWithVersion()
- {
- return $this->getName() . ' ' . $this->getVersion();
- }
-
- /**
- * @return string
- */
- public function getName()
- {
- if ($this->isHHVM()) {
- return 'HHVM';
- } elseif ($this->isPHPDBG()) {
- return 'PHPDBG';
- } else {
- return 'PHP';
- }
- }
-
- /**
- * @return string
- */
- public function getVendorUrl()
- {
- if ($this->isHHVM()) {
- return 'http://hhvm.com/';
- } else {
- return 'https://secure.php.net/';
- }
- }
-
- /**
- * @return string
- */
- public function getVersion()
- {
- if ($this->isHHVM()) {
- return HHVM_VERSION;
- } else {
- return PHP_VERSION;
- }
- }
-
- /**
- * Returns true when the runtime used is PHP and Xdebug is loaded.
- *
- * @return bool
- */
- public function hasXdebug()
- {
- return ($this->isPHP() || $this->isHHVM()) && extension_loaded('xdebug');
- }
-
- /**
- * Returns true when the runtime used is HHVM.
- *
- * @return bool
- */
- public function isHHVM()
- {
- return defined('HHVM_VERSION');
- }
-
- /**
- * Returns true when the runtime used is PHP without the PHPDBG SAPI.
- *
- * @return bool
- */
- public function isPHP()
- {
- return !$this->isHHVM() && !$this->isPHPDBG();
- }
-
- /**
- * Returns true when the runtime used is PHP with the PHPDBG SAPI.
- *
- * @return bool
- */
- public function isPHPDBG()
- {
- return PHP_SAPI === 'phpdbg' && !$this->isHHVM();
- }
-
- /**
- * Returns true when the runtime used is PHP with the PHPDBG SAPI
- * and the phpdbg_*_oplog() functions are available (PHP >= 7.0).
- *
- * @return bool
- */
- public function hasPHPDBGCodeCoverage()
- {
- return $this->isPHPDBG() && function_exists('phpdbg_start_oplog');
- }
-}
diff --git a/www/wiki/vendor/sebastian/environment/tests/ConsoleTest.php b/www/wiki/vendor/sebastian/environment/tests/ConsoleTest.php
deleted file mode 100644
index 6b40172b..00000000
--- a/www/wiki/vendor/sebastian/environment/tests/ConsoleTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/*
- * This file is part of the Environment package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Environment;
-
-use PHPUnit_Framework_TestCase;
-
-class ConsoleTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @var \SebastianBergmann\Environment\Console
- */
- private $console;
-
- protected function setUp()
- {
- $this->console = new Console;
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Console::isInteractive
- */
- public function testCanDetectIfStdoutIsInteractiveByDefault()
- {
- $this->assertInternalType('boolean', $this->console->isInteractive());
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Console::isInteractive
- */
- public function testCanDetectIfFileDescriptorIsInteractive()
- {
- $this->assertInternalType('boolean', $this->console->isInteractive(STDOUT));
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Console::hasColorSupport
- * @uses \SebastianBergmann\Environment\Console::isInteractive
- */
- public function testCanDetectColorSupport()
- {
- $this->assertInternalType('boolean', $this->console->hasColorSupport());
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Console::getNumberOfColumns
- * @uses \SebastianBergmann\Environment\Console::isInteractive
- */
- public function testCanDetectNumberOfColumns()
- {
- $this->assertInternalType('integer', $this->console->getNumberOfColumns());
- }
-}
diff --git a/www/wiki/vendor/sebastian/environment/tests/RuntimeTest.php b/www/wiki/vendor/sebastian/environment/tests/RuntimeTest.php
deleted file mode 100644
index 8ea83730..00000000
--- a/www/wiki/vendor/sebastian/environment/tests/RuntimeTest.php
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php
-/*
- * This file is part of the Environment package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Environment;
-
-use PHPUnit_Framework_TestCase;
-
-class RuntimeTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @var \SebastianBergmann\Environment\Runtime
- */
- private $env;
-
- protected function setUp()
- {
- $this->env = new Runtime;
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Runtime::canCollectCodeCoverage
- * @uses \SebastianBergmann\Environment\Runtime::hasXdebug
- * @uses \SebastianBergmann\Environment\Runtime::isHHVM
- * @uses \SebastianBergmann\Environment\Runtime::isPHP
- */
- public function testAbilityToCollectCodeCoverageCanBeAssessed()
- {
- $this->assertInternalType('boolean', $this->env->canCollectCodeCoverage());
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Runtime::getBinary
- * @uses \SebastianBergmann\Environment\Runtime::isHHVM
- */
- public function testBinaryCanBeRetrieved()
- {
- $this->assertInternalType('string', $this->env->getBinary());
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Runtime::isHHVM
- */
- public function testCanBeDetected()
- {
- $this->assertInternalType('boolean', $this->env->isHHVM());
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Runtime::isPHP
- * @uses \SebastianBergmann\Environment\Runtime::isHHVM
- */
- public function testCanBeDetected2()
- {
- $this->assertInternalType('boolean', $this->env->isPHP());
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Runtime::hasXdebug
- * @uses \SebastianBergmann\Environment\Runtime::isHHVM
- * @uses \SebastianBergmann\Environment\Runtime::isPHP
- */
- public function testXdebugCanBeDetected()
- {
- $this->assertInternalType('boolean', $this->env->hasXdebug());
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Runtime::getNameWithVersion
- * @uses \SebastianBergmann\Environment\Runtime::getName
- * @uses \SebastianBergmann\Environment\Runtime::getVersion
- * @uses \SebastianBergmann\Environment\Runtime::isHHVM
- * @uses \SebastianBergmann\Environment\Runtime::isPHP
- */
- public function testNameAndVersionCanBeRetrieved()
- {
- $this->assertInternalType('string', $this->env->getNameWithVersion());
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Runtime::getName
- * @uses \SebastianBergmann\Environment\Runtime::isHHVM
- */
- public function testNameCanBeRetrieved()
- {
- $this->assertInternalType('string', $this->env->getName());
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Runtime::getVersion
- * @uses \SebastianBergmann\Environment\Runtime::isHHVM
- */
- public function testVersionCanBeRetrieved()
- {
- $this->assertInternalType('string', $this->env->getVersion());
- }
-
- /**
- * @covers \SebastianBergmann\Environment\Runtime::getVendorUrl
- * @uses \SebastianBergmann\Environment\Runtime::isHHVM
- */
- public function testVendorUrlCanBeRetrieved()
- {
- $this->assertInternalType('string', $this->env->getVendorUrl());
- }
-}
diff --git a/www/wiki/vendor/sebastian/exporter/.gitignore b/www/wiki/vendor/sebastian/exporter/.gitignore
deleted file mode 100644
index 3beb10f9..00000000
--- a/www/wiki/vendor/sebastian/exporter/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-.idea
-phpunit.xml
-composer.lock
-composer.phar
-vendor/
-cache.properties
-build/LICENSE
-build/README.md
-build/*.tgz
diff --git a/www/wiki/vendor/sebastian/exporter/.travis.yml b/www/wiki/vendor/sebastian/exporter/.travis.yml
deleted file mode 100644
index 657519b1..00000000
--- a/www/wiki/vendor/sebastian/exporter/.travis.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-language: php
-
-before_script:
- - composer self-update
- - composer install --no-interaction --prefer-source --dev
-
-php:
- - 5.3.3
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - hhvm
-
-notifications:
- email: false
- webhooks:
- urls:
- - https://webhooks.gitter.im/e/6668f52f3dd4e3f81960
- on_success: always
- on_failure: always
- on_start: false
-
diff --git a/www/wiki/vendor/sebastian/exporter/LICENSE b/www/wiki/vendor/sebastian/exporter/LICENSE
deleted file mode 100644
index 55a13d47..00000000
--- a/www/wiki/vendor/sebastian/exporter/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-Exporter
-
-Copyright (c) 2002-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/sebastian/exporter/README.md b/www/wiki/vendor/sebastian/exporter/README.md
deleted file mode 100644
index 9a40a77b..00000000
--- a/www/wiki/vendor/sebastian/exporter/README.md
+++ /dev/null
@@ -1,171 +0,0 @@
-Exporter
-========
-
-[![Build Status](https://secure.travis-ci.org/sebastianbergmann/exporter.png?branch=master)](https://travis-ci.org/sebastianbergmann/exporter)
-
-This component provides the functionality to export PHP variables for visualization.
-
-## Usage
-
-Exporting:
-
-```php
-<?php
-use SebastianBergmann\Exporter\Exporter;
-
-$exporter = new Exporter;
-
-/*
-Exception Object &0000000078de0f0d000000002003a261 (
- 'message' => ''
- 'string' => ''
- 'code' => 0
- 'file' => '/home/sebastianbergmann/test.php'
- 'line' => 34
- 'trace' => Array &0 ()
- 'previous' => null
-)
-*/
-
-print $exporter->export(new Exception);
-```
-
-## Data Types
-
-Exporting simple types:
-
-```php
-<?php
-use SebastianBergmann\Exporter\Exporter;
-
-$exporter = new Exporter;
-
-// 46
-print $exporter->export(46);
-
-// 4.0
-print $exporter->export(4.0);
-
-// 'hello, world!'
-print $exporter->export('hello, world!');
-
-// false
-print $exporter->export(false);
-
-// NAN
-print $exporter->export(acos(8));
-
-// -INF
-print $exporter->export(log(0));
-
-// null
-print $exporter->export(null);
-
-// resource(13) of type (stream)
-print $exporter->export(fopen('php://stderr', 'w'));
-
-// Binary String: 0x000102030405
-print $exporter->export(chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5));
-```
-
-Exporting complex types:
-
-```php
-<?php
-use SebastianBergmann\Exporter\Exporter;
-
-$exporter = new Exporter;
-
-/*
-Array &0 (
- 0 => Array &1 (
- 0 => 1
- 1 => 2
- 2 => 3
- )
- 1 => Array &2 (
- 0 => ''
- 1 => 0
- 2 => false
- )
-)
-*/
-
-print $exporter->export(array(array(1,2,3), array("",0,FALSE)));
-
-/*
-Array &0 (
- 'self' => Array &1 (
- 'self' => Array &1
- )
-)
-*/
-
-$array = array();
-$array['self'] = &$array;
-print $exporter->export($array);
-
-/*
-stdClass Object &0000000003a66dcc0000000025e723e2 (
- 'self' => stdClass Object &0000000003a66dcc0000000025e723e2
-)
-*/
-
-$obj = new stdClass();
-$obj->self = $obj;
-print $exporter->export($obj);
-```
-
-Compact exports:
-
-```php
-<?php
-use SebastianBergmann\Exporter\Exporter;
-
-$exporter = new Exporter;
-
-// Array ()
-print $exporter->shortenedExport(array());
-
-// Array (...)
-print $exporter->shortenedExport(array(1,2,3,4,5));
-
-// stdClass Object ()
-print $exporter->shortenedExport(new stdClass);
-
-// Exception Object (...)
-print $exporter->shortenedExport(new Exception);
-
-// this\nis\na\nsuper\nlong\nstring\nt...\nspace
-print $exporter->shortenedExport(
-<<<LONG_STRING
-this
-is
-a
-super
-long
-string
-that
-wraps
-a
-lot
-and
-eats
-up
-a
-lot
-of
-space
-LONG_STRING
-);
-```
-
-## Installation
-
-To add Exporter as a local, per-project dependency to your project, simply add a dependency on `sebastian/exporter` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on Exporter 1.0:
-
- {
- "require": {
- "sebastian/exporter": "1.0.*"
- }
- }
diff --git a/www/wiki/vendor/sebastian/exporter/build.xml b/www/wiki/vendor/sebastian/exporter/build.xml
deleted file mode 100644
index e66a71a6..00000000
--- a/www/wiki/vendor/sebastian/exporter/build.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="exporter">
- <target name="clean" description="Cleanup build artifacts">
- <delete dir="${basedir}/vendor"/>
- <delete file="${basedir}/composer.lock"/>
- </target>
-
- <target name="composer" depends="clean" description="Install dependencies with Composer">
- <tstamp>
- <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
- </tstamp>
- <delete>
- <fileset dir="${basedir}">
- <include name="composer.phar" />
- <date datetime="${thirty.days.ago}" when="before"/>
- </fileset>
- </delete>
-
- <get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" skipexisting="true"/>
-
- <exec executable="php">
- <arg value="composer.phar"/>
- <arg value="install"/>
- </exec>
- </target>
-</project>
-
diff --git a/www/wiki/vendor/sebastian/exporter/composer.json b/www/wiki/vendor/sebastian/exporter/composer.json
deleted file mode 100644
index 62b94bda..00000000
--- a/www/wiki/vendor/sebastian/exporter/composer.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "name": "sebastian/exporter",
- "description": "Provides the functionality to export PHP variables for visualization",
- "keywords": ["exporter","export"],
- "homepage": "http://www.github.com/sebastianbergmann/exporter",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Volker Dusch",
- "email": "github@wallbash.com"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- },
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@2bepublished.at"
- }
- ],
- "require": {
- "php": ">=5.3.3",
- "sebastian/recursion-context": "~1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4",
- "ext-mbstring": "*"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- }
-}
-
diff --git a/www/wiki/vendor/sebastian/exporter/phpunit.xml.dist b/www/wiki/vendor/sebastian/exporter/phpunit.xml.dist
deleted file mode 100644
index 8d85af64..00000000
--- a/www/wiki/vendor/sebastian/exporter/phpunit.xml.dist
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit backupGlobals="false"
- bootstrap="vendor/autoload.php"
- beStrictAboutTestsThatDoNotTestAnything="true"
- beStrictAboutOutputDuringTests="true"
- beStrictAboutTodoAnnotatedTests="true"
- checkForUnintentionallyCoveredCode="true"
- forceCoversAnnotation="true"
- verbose="true">
- <testsuites>
- <testsuite name="exporter">
- <directory>tests</directory>
- </testsuite>
- </testsuites>
- <filter>
- <whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true">
- <directory>src</directory>
- </whitelist>
- </filter>
-</phpunit>
-
diff --git a/www/wiki/vendor/sebastian/exporter/src/Exporter.php b/www/wiki/vendor/sebastian/exporter/src/Exporter.php
deleted file mode 100644
index 5578aa8d..00000000
--- a/www/wiki/vendor/sebastian/exporter/src/Exporter.php
+++ /dev/null
@@ -1,301 +0,0 @@
-<?php
-/*
- * This file is part of the Exporter package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Exporter;
-
-use SebastianBergmann\RecursionContext\Context;
-
-/**
- * A nifty utility for visualizing PHP variables.
- *
- * <code>
- * <?php
- * use SebastianBergmann\Exporter\Exporter;
- *
- * $exporter = new Exporter;
- * print $exporter->export(new Exception);
- * </code>
- */
-class Exporter
-{
- /**
- * Exports a value as a string
- *
- * The output of this method is similar to the output of print_r(), but
- * improved in various aspects:
- *
- * - NULL is rendered as "null" (instead of "")
- * - TRUE is rendered as "true" (instead of "1")
- * - FALSE is rendered as "false" (instead of "")
- * - Strings are always quoted with single quotes
- * - Carriage returns and newlines are normalized to \n
- * - Recursion and repeated rendering is treated properly
- *
- * @param mixed $value
- * @param int $indentation The indentation level of the 2nd+ line
- * @return string
- */
- public function export($value, $indentation = 0)
- {
- return $this->recursiveExport($value, $indentation);
- }
-
- /**
- * @param mixed $data
- * @param Context $context
- * @return string
- */
- public function shortenedRecursiveExport(&$data, Context $context = null)
- {
- $result = array();
- $exporter = new self();
-
- if (!$context) {
- $context = new Context;
- }
-
- $context->add($data);
-
- foreach ($data as $key => $value) {
- if (is_array($value)) {
- if ($context->contains($data[$key]) !== false) {
- $result[] = '*RECURSION*';
- }
-
- else {
- $result[] = sprintf(
- 'array(%s)',
- $this->shortenedRecursiveExport($data[$key], $context)
- );
- }
- }
-
- else {
- $result[] = $exporter->shortenedExport($value);
- }
- }
-
- return implode(', ', $result);
- }
-
- /**
- * Exports a value into a single-line string
- *
- * The output of this method is similar to the output of
- * SebastianBergmann\Exporter\Exporter::export().
- *
- * Newlines are replaced by the visible string '\n'.
- * Contents of arrays and objects (if any) are replaced by '...'.
- *
- * @param mixed $value
- * @return string
- * @see SebastianBergmann\Exporter\Exporter::export
- */
- public function shortenedExport($value)
- {
- if (is_string($value)) {
- $string = $this->export($value);
-
- if (function_exists('mb_strlen')) {
- if (mb_strlen($string) > 40) {
- $string = mb_substr($string, 0, 30) . '...' . mb_substr($string, -7);
- }
- } else {
- if (strlen($string) > 40) {
- $string = substr($string, 0, 30) . '...' . substr($string, -7);
- }
- }
-
- return str_replace("\n", '\n', $string);
- }
-
- if (is_object($value)) {
- return sprintf(
- '%s Object (%s)',
- get_class($value),
- count($this->toArray($value)) > 0 ? '...' : ''
- );
- }
-
- if (is_array($value)) {
- return sprintf(
- 'Array (%s)',
- count($value) > 0 ? '...' : ''
- );
- }
-
- return $this->export($value);
- }
-
- /**
- * Converts an object to an array containing all of its private, protected
- * and public properties.
- *
- * @param mixed $value
- * @return array
- */
- public function toArray($value)
- {
- if (!is_object($value)) {
- return (array) $value;
- }
-
- $array = array();
-
- foreach ((array) $value as $key => $val) {
- // properties are transformed to keys in the following way:
- // private $property => "\0Classname\0property"
- // protected $property => "\0*\0property"
- // public $property => "property"
- if (preg_match('/^\0.+\0(.+)$/', $key, $matches)) {
- $key = $matches[1];
- }
-
- // See https://github.com/php/php-src/commit/5721132
- if ($key === "\0gcdata") {
- continue;
- }
-
- $array[$key] = $val;
- }
-
- // Some internal classes like SplObjectStorage don't work with the
- // above (fast) mechanism nor with reflection in Zend.
- // Format the output similarly to print_r() in this case
- if ($value instanceof \SplObjectStorage) {
- // However, the fast method does work in HHVM, and exposes the
- // internal implementation. Hide it again.
- if (property_exists('\SplObjectStorage', '__storage')) {
- unset($array['__storage']);
- } elseif (property_exists('\SplObjectStorage', 'storage')) {
- unset($array['storage']);
- }
-
- if (property_exists('\SplObjectStorage', '__key')) {
- unset($array['__key']);
- }
-
- foreach ($value as $key => $val) {
- $array[spl_object_hash($val)] = array(
- 'obj' => $val,
- 'inf' => $value->getInfo(),
- );
- }
- }
-
- return $array;
- }
-
- /**
- * Recursive implementation of export
- *
- * @param mixed $value The value to export
- * @param int $indentation The indentation level of the 2nd+ line
- * @param \SebastianBergmann\RecursionContext\Context $processed Previously processed objects
- * @return string
- * @see SebastianBergmann\Exporter\Exporter::export
- */
- protected function recursiveExport(&$value, $indentation, $processed = null)
- {
- if ($value === null) {
- return 'null';
- }
-
- if ($value === true) {
- return 'true';
- }
-
- if ($value === false) {
- return 'false';
- }
-
- if (is_float($value) && floatval(intval($value)) === $value) {
- return "$value.0";
- }
-
- if (is_resource($value)) {
- return sprintf(
- 'resource(%d) of type (%s)',
- $value,
- get_resource_type($value)
- );
- }
-
- if (is_string($value)) {
- // Match for most non printable chars somewhat taking multibyte chars into account
- if (preg_match('/[^\x09-\x0d\x1b\x20-\xff]/', $value)) {
- return 'Binary String: 0x' . bin2hex($value);
- }
-
- return "'" .
- str_replace(array("\r\n", "\n\r", "\r"), array("\n", "\n", "\n"), $value) .
- "'";
- }
-
- $whitespace = str_repeat(' ', 4 * $indentation);
-
- if (!$processed) {
- $processed = new Context;
- }
-
- if (is_array($value)) {
- if (($key = $processed->contains($value)) !== false) {
- return 'Array &' . $key;
- }
-
- $key = $processed->add($value);
- $values = '';
-
- if (count($value) > 0) {
- foreach ($value as $k => $v) {
- $values .= sprintf(
- '%s %s => %s' . "\n",
- $whitespace,
- $this->recursiveExport($k, $indentation),
- $this->recursiveExport($value[$k], $indentation + 1, $processed)
- );
- }
-
- $values = "\n" . $values . $whitespace;
- }
-
- return sprintf('Array &%s (%s)', $key, $values);
- }
-
- if (is_object($value)) {
- $class = get_class($value);
-
- if ($hash = $processed->contains($value)) {
- return sprintf('%s Object &%s', $class, $hash);
- }
-
- $hash = $processed->add($value);
- $values = '';
- $array = $this->toArray($value);
-
- if (count($array) > 0) {
- foreach ($array as $k => $v) {
- $values .= sprintf(
- '%s %s => %s' . "\n",
- $whitespace,
- $this->recursiveExport($k, $indentation),
- $this->recursiveExport($v, $indentation + 1, $processed)
- );
- }
-
- $values = "\n" . $values . $whitespace;
- }
-
- return sprintf('%s Object &%s (%s)', $class, $hash, $values);
- }
-
- return var_export($value, true);
- }
-}
diff --git a/www/wiki/vendor/sebastian/exporter/tests/ExporterTest.php b/www/wiki/vendor/sebastian/exporter/tests/ExporterTest.php
deleted file mode 100644
index b0546f19..00000000
--- a/www/wiki/vendor/sebastian/exporter/tests/ExporterTest.php
+++ /dev/null
@@ -1,358 +0,0 @@
-<?php
-/*
- * This file is part of the Exporter package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\Exporter;
-
-/**
- * @covers SebastianBergmann\Exporter\Exporter
- */
-class ExporterTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @var Exporter
- */
- private $exporter;
-
- protected function setUp()
- {
- $this->exporter = new Exporter;
- }
-
- public function exportProvider()
- {
- $obj2 = new \stdClass;
- $obj2->foo = 'bar';
-
- $obj3 = (object)array(1,2,"Test\r\n",4,5,6,7,8);
-
- $obj = new \stdClass;
- //@codingStandardsIgnoreStart
- $obj->null = null;
- //@codingStandardsIgnoreEnd
- $obj->boolean = true;
- $obj->integer = 1;
- $obj->double = 1.2;
- $obj->string = '1';
- $obj->text = "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext";
- $obj->object = $obj2;
- $obj->objectagain = $obj2;
- $obj->array = array('foo' => 'bar');
- $obj->self = $obj;
-
- $storage = new \SplObjectStorage;
- $storage->attach($obj2);
- $storage->foo = $obj2;
-
- return array(
- array(null, 'null'),
- array(true, 'true'),
- array(false, 'false'),
- array(1, '1'),
- array(1.0, '1.0'),
- array(1.2, '1.2'),
- array(fopen('php://memory', 'r'), 'resource(%d) of type (stream)'),
- array('1', "'1'"),
- array(array(array(1,2,3), array(3,4,5)),
- <<<EOF
-Array &0 (
- 0 => Array &1 (
- 0 => 1
- 1 => 2
- 2 => 3
- )
- 1 => Array &2 (
- 0 => 3
- 1 => 4
- 2 => 5
- )
-)
-EOF
- ),
- // \n\r and \r is converted to \n
- array("this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext",
- <<<EOF
-'this
-is
-a
-very
-very
-very
-very
-very
-very
-long
-text'
-EOF
- ),
- array(new \stdClass, 'stdClass Object &%x ()'),
- array($obj,
- <<<EOF
-stdClass Object &%x (
- 'null' => null
- 'boolean' => true
- 'integer' => 1
- 'double' => 1.2
- 'string' => '1'
- 'text' => 'this
-is
-a
-very
-very
-very
-very
-very
-very
-long
-text'
- 'object' => stdClass Object &%x (
- 'foo' => 'bar'
- )
- 'objectagain' => stdClass Object &%x
- 'array' => Array &%d (
- 'foo' => 'bar'
- )
- 'self' => stdClass Object &%x
-)
-EOF
- ),
- array(array(), 'Array &%d ()'),
- array($storage,
- <<<EOF
-SplObjectStorage Object &%x (
- 'foo' => stdClass Object &%x (
- 'foo' => 'bar'
- )
- '%x' => Array &0 (
- 'obj' => stdClass Object &%x
- 'inf' => null
- )
-)
-EOF
- ),
- array($obj3,
- <<<EOF
-stdClass Object &%x (
- 0 => 1
- 1 => 2
- 2 => 'Test\n'
- 3 => 4
- 4 => 5
- 5 => 6
- 6 => 7
- 7 => 8
-)
-EOF
- ),
- array(
- chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5),
- 'Binary String: 0x000102030405'
- ),
- array(
- implode('', array_map('chr', range(0x0e, 0x1f))),
- 'Binary String: 0x0e0f101112131415161718191a1b1c1d1e1f'
- ),
- array(
- chr(0x00) . chr(0x09),
- 'Binary String: 0x0009'
- ),
- array(
- '',
- "''"
- ),
- );
- }
-
- /**
- * @dataProvider exportProvider
- */
- public function testExport($value, $expected)
- {
- $this->assertStringMatchesFormat(
- $expected,
- $this->trimNewline($this->exporter->export($value))
- );
- }
-
- public function testExport2()
- {
- if (PHP_VERSION === '5.3.3') {
- $this->markTestSkipped('Skipped due to "Nesting level too deep - recursive dependency?" fatal error');
- }
-
- $obj = new \stdClass;
- $obj->foo = 'bar';
-
- $array = array(
- 0 => 0,
- 'null' => null,
- 'boolean' => true,
- 'integer' => 1,
- 'double' => 1.2,
- 'string' => '1',
- 'text' => "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext",
- 'object' => $obj,
- 'objectagain' => $obj,
- 'array' => array('foo' => 'bar'),
- );
-
- $array['self'] = &$array;
-
- $expected = <<<EOF
-Array &%d (
- 0 => 0
- 'null' => null
- 'boolean' => true
- 'integer' => 1
- 'double' => 1.2
- 'string' => '1'
- 'text' => 'this
-is
-a
-very
-very
-very
-very
-very
-very
-long
-text'
- 'object' => stdClass Object &%x (
- 'foo' => 'bar'
- )
- 'objectagain' => stdClass Object &%x
- 'array' => Array &%d (
- 'foo' => 'bar'
- )
- 'self' => Array &%d (
- 0 => 0
- 'null' => null
- 'boolean' => true
- 'integer' => 1
- 'double' => 1.2
- 'string' => '1'
- 'text' => 'this
-is
-a
-very
-very
-very
-very
-very
-very
-long
-text'
- 'object' => stdClass Object &%x
- 'objectagain' => stdClass Object &%x
- 'array' => Array &%d (
- 'foo' => 'bar'
- )
- 'self' => Array &%d
- )
-)
-EOF;
-
- $this->assertStringMatchesFormat(
- $expected,
- $this->trimNewline($this->exporter->export($array))
- );
- }
-
- public function shortenedExportProvider()
- {
- $obj = new \stdClass;
- $obj->foo = 'bar';
-
- $array = array(
- 'foo' => 'bar',
- );
-
- return array(
- array(null, 'null'),
- array(true, 'true'),
- array(1, '1'),
- array(1.0, '1.0'),
- array(1.2, '1.2'),
- array('1', "'1'"),
- // \n\r and \r is converted to \n
- array("this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext", "'this\\nis\\na\\nvery\\nvery\\nvery\\nvery...g\\ntext'"),
- array(new \stdClass, 'stdClass Object ()'),
- array($obj, 'stdClass Object (...)'),
- array(array(), 'Array ()'),
- array($array, 'Array (...)'),
- );
- }
-
- /**
- * @dataProvider shortenedExportProvider
- */
- public function testShortenedExport($value, $expected)
- {
- $this->assertSame(
- $expected,
- $this->trimNewline($this->exporter->shortenedExport($value))
- );
- }
-
- /**
- * @requires extension mbstring
- */
- public function testShortenedExportForMultibyteCharacters()
- {
- $oldMbLanguage = mb_language();
- mb_language('Japanese');
- $oldMbInternalEncoding = mb_internal_encoding();
- mb_internal_encoding('UTF-8');
-
- try {
- $this->assertSame(
- "'いろはにほへとちりぬるをわかよたれそつねならむうゐのおくや...しゑひもせす'",
- $this->trimNewline($this->exporter->shortenedExport('いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす'))
- );
- } catch (\Exception $e) {
- mb_internal_encoding($oldMbInternalEncoding);
- mb_language($oldMbLanguage);
- throw $e;
- }
-
- mb_internal_encoding($oldMbInternalEncoding);
- mb_language($oldMbLanguage);
- }
-
- public function provideNonBinaryMultibyteStrings()
- {
- return array(
- array(implode('', array_map('chr', range(0x09, 0x0d))), 5),
- array(implode('', array_map('chr', range(0x20, 0x7f))), 96),
- array(implode('', array_map('chr', range(0x80, 0xff))), 128),
- );
- }
-
-
- /**
- * @dataProvider provideNonBinaryMultibyteStrings
- */
- public function testNonBinaryStringExport($value, $expectedLength)
- {
- $this->assertRegExp(
- "~'.{{$expectedLength}}'\$~s",
- $this->exporter->export($value)
- );
- }
-
- public function testNonObjectCanBeReturnedAsArray()
- {
- $this->assertEquals(array(true), $this->exporter->toArray(true));
- }
-
- private function trimNewline($string)
- {
- return preg_replace('/[ ]*\n/', "\n", $string);
- }
-}
diff --git a/www/wiki/vendor/sebastian/global-state/.gitignore b/www/wiki/vendor/sebastian/global-state/.gitignore
deleted file mode 100644
index 464180e1..00000000
--- a/www/wiki/vendor/sebastian/global-state/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-.idea
-composer.lock
-composer.phar
-vendor/
-cache.properties
-phpunit.xml
diff --git a/www/wiki/vendor/sebastian/global-state/.travis.yml b/www/wiki/vendor/sebastian/global-state/.travis.yml
deleted file mode 100644
index 0be6154e..00000000
--- a/www/wiki/vendor/sebastian/global-state/.travis.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-language: php
-
-php:
- - 5.3.3
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - hhvm
-
-sudo: false
-
-before_script:
- - composer self-update
- - composer install --no-interaction --prefer-source --dev
-
-script: ./vendor/bin/phpunit
-
-notifications:
- email: false
diff --git a/www/wiki/vendor/sebastian/global-state/LICENSE b/www/wiki/vendor/sebastian/global-state/LICENSE
deleted file mode 100644
index a555bcd1..00000000
--- a/www/wiki/vendor/sebastian/global-state/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-GlobalState
-
-Copyright (c) 2001-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/sebastian/global-state/README.md b/www/wiki/vendor/sebastian/global-state/README.md
deleted file mode 100644
index c5e262bd..00000000
--- a/www/wiki/vendor/sebastian/global-state/README.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# GlobalState
-
-Snapshotting of global state, factored out of PHPUnit into a stand-alone component.
-
-[![Build Status](https://travis-ci.org/sebastianbergmann/global-state.svg?branch=master)](https://travis-ci.org/sebastianbergmann/global-state)
-
-## Installation
-
-To add this package as a local, per-project dependency to your project, simply add a dependency on `sebastian/global-state` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on GlobalState:
-
- {
- "require": {
- "sebastian/global-state": "1.0.*"
- }
- }
diff --git a/www/wiki/vendor/sebastian/global-state/build.xml b/www/wiki/vendor/sebastian/global-state/build.xml
deleted file mode 100644
index 63c5445a..00000000
--- a/www/wiki/vendor/sebastian/global-state/build.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="global-state">
- <target name="clean" description="Cleanup build artifacts">
- <delete dir="${basedir}/vendor"/>
- <delete file="${basedir}/composer.lock"/>
- </target>
-
- <target name="composer" depends="clean" description="Install dependencies with Composer">
- <tstamp>
- <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
- </tstamp>
- <delete>
- <fileset dir="${basedir}">
- <include name="composer.phar" />
- <date datetime="${thirty.days.ago}" when="before"/>
- </fileset>
- </delete>
-
- <get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" skipexisting="true"/>
-
- <exec executable="php">
- <arg value="composer.phar"/>
- <arg value="install"/>
- </exec>
- </target>
-
- <target name="phpunit" description="Run unit tests with PHPUnit">
- <exec executable="${basedir}/vendor/bin/phpunit" failonerror="true">
- <arg value="--configuration"/>
- <arg path="${basedir}/build/phpunit.xml"/>
- </exec>
- </target>
-</project>
diff --git a/www/wiki/vendor/sebastian/global-state/composer.json b/www/wiki/vendor/sebastian/global-state/composer.json
deleted file mode 100644
index 7e8849ba..00000000
--- a/www/wiki/vendor/sebastian/global-state/composer.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "name": "sebastian/global-state",
- "description": "Snapshotting of global state",
- "keywords": ["global state"],
- "homepage": "http://www.github.com/sebastianbergmann/global-state",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- }
- ],
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.2"
- },
- "suggest": {
- "ext-uopz": "*"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "autoload-dev": {
- "classmap": [
- "tests/_fixture/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/global-state/phpunit.xml.dist b/www/wiki/vendor/sebastian/global-state/phpunit.xml.dist
deleted file mode 100644
index d6079183..00000000
--- a/www/wiki/vendor/sebastian/global-state/phpunit.xml.dist
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.2/phpunit.xsd"
- bootstrap="vendor/autoload.php"
- backupGlobals="false"
- verbose="true">
- <testsuite name="GlobalState">
- <directory suffix="Test.php">tests</directory>
- </testsuite>
-
- <filter>
- <whitelist processUncoveredFilesFromWhitelist="true">
- <directory suffix=".php">src</directory>
- </whitelist>
- </filter>
-
- <php>
- <const name="GLOBALSTATE_TESTSUITE" value="true"/>
- <ini name="date.timezone" value="Etc/UTC"/>
- </php>
-</phpunit>
diff --git a/www/wiki/vendor/sebastian/global-state/src/Blacklist.php b/www/wiki/vendor/sebastian/global-state/src/Blacklist.php
deleted file mode 100644
index 5d540916..00000000
--- a/www/wiki/vendor/sebastian/global-state/src/Blacklist.php
+++ /dev/null
@@ -1,149 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState;
-
-use ReflectionClass;
-
-/**
- * A blacklist for global state elements that should not be snapshotted.
- */
-class Blacklist
-{
- /**
- * @var array
- */
- private $globalVariables = array();
-
- /**
- * @var array
- */
- private $classes = array();
-
- /**
- * @var array
- */
- private $classNamePrefixes = array();
-
- /**
- * @var array
- */
- private $parentClasses = array();
-
- /**
- * @var array
- */
- private $interfaces = array();
-
- /**
- * @var array
- */
- private $staticAttributes = array();
-
- /**
- * @param string $variableName
- */
- public function addGlobalVariable($variableName)
- {
- $this->globalVariables[$variableName] = true;
- }
-
- /**
- * @param string $className
- */
- public function addClass($className)
- {
- $this->classes[] = $className;
- }
-
- /**
- * @param string $className
- */
- public function addSubclassesOf($className)
- {
- $this->parentClasses[] = $className;
- }
-
- /**
- * @param string $interfaceName
- */
- public function addImplementorsOf($interfaceName)
- {
- $this->interfaces[] = $interfaceName;
- }
-
- /**
- * @param string $classNamePrefix
- */
- public function addClassNamePrefix($classNamePrefix)
- {
- $this->classNamePrefixes[] = $classNamePrefix;
- }
-
- /**
- * @param string $className
- * @param string $attributeName
- */
- public function addStaticAttribute($className, $attributeName)
- {
- if (!isset($this->staticAttributes[$className])) {
- $this->staticAttributes[$className] = array();
- }
-
- $this->staticAttributes[$className][$attributeName] = true;
- }
-
- /**
- * @param string $variableName
- * @return bool
- */
- public function isGlobalVariableBlacklisted($variableName)
- {
- return isset($this->globalVariables[$variableName]);
- }
-
- /**
- * @param string $className
- * @param string $attributeName
- * @return bool
- */
- public function isStaticAttributeBlacklisted($className, $attributeName)
- {
- if (in_array($className, $this->classes)) {
- return true;
- }
-
- foreach ($this->classNamePrefixes as $prefix) {
- if (strpos($className, $prefix) === 0) {
- return true;
- }
- }
-
- $class = new ReflectionClass($className);
-
- foreach ($this->parentClasses as $type) {
- if ($class->isSubclassOf($type)) {
- return true;
- }
- }
-
- foreach ($this->interfaces as $type) {
- if ($class->implementsInterface($type)) {
- return true;
- }
- }
-
- if (isset($this->staticAttributes[$className][$attributeName])) {
- return true;
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/sebastian/global-state/src/CodeExporter.php b/www/wiki/vendor/sebastian/global-state/src/CodeExporter.php
deleted file mode 100644
index d595c22e..00000000
--- a/www/wiki/vendor/sebastian/global-state/src/CodeExporter.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState;
-
-/**
- * Exports parts of a Snapshot as PHP code.
- */
-class CodeExporter
-{
- /**
- * @param Snapshot $snapshot
- * @return string
- */
- public function constants(Snapshot $snapshot)
- {
- $result = '';
-
- foreach ($snapshot->constants() as $name => $value) {
- $result .= sprintf(
- 'if (!defined(\'%s\')) define(\'%s\', %s);' . "\n",
- $name,
- $name,
- $this->exportVariable($value)
- );
- }
-
- return $result;
- }
-
- /**
- * @param Snapshot $snapshot
- * @return string
- */
- public function iniSettings(Snapshot $snapshot)
- {
- $result = '';
-
- foreach ($snapshot->iniSettings() as $key => $value) {
- $result .= sprintf(
- '@ini_set(%s, %s);' . "\n",
- $this->exportVariable($key),
- $this->exportVariable($value)
- );
- }
-
- return $result;
- }
-
- /**
- * @param mixed $variable
- * @return string
- */
- private function exportVariable($variable)
- {
- if (is_scalar($variable) || is_null($variable) ||
- (is_array($variable) && $this->arrayOnlyContainsScalars($variable))) {
- return var_export($variable, true);
- }
-
- return 'unserialize(' . var_export(serialize($variable), true) . ')';
- }
-
- /**
- * @param array $array
- * @return bool
- */
- private function arrayOnlyContainsScalars(array $array)
- {
- $result = true;
-
- foreach ($array as $element) {
- if (is_array($element)) {
- $result = self::arrayOnlyContainsScalars($element);
- } elseif (!is_scalar($element) && !is_null($element)) {
- $result = false;
- }
-
- if ($result === false) {
- break;
- }
- }
-
- return $result;
- }
-}
diff --git a/www/wiki/vendor/sebastian/global-state/src/Exception.php b/www/wiki/vendor/sebastian/global-state/src/Exception.php
deleted file mode 100644
index 1e00212e..00000000
--- a/www/wiki/vendor/sebastian/global-state/src/Exception.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState;
-
-/**
- */
-interface Exception
-{
-}
diff --git a/www/wiki/vendor/sebastian/global-state/src/Restorer.php b/www/wiki/vendor/sebastian/global-state/src/Restorer.php
deleted file mode 100644
index 78e0ba80..00000000
--- a/www/wiki/vendor/sebastian/global-state/src/Restorer.php
+++ /dev/null
@@ -1,141 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState;
-
-use ReflectionProperty;
-
-/**
- * Restorer of snapshots of global state.
- */
-class Restorer
-{
- /**
- * Deletes function definitions that are not defined in a snapshot.
- *
- * @param Snapshot $snapshot
- * @throws RuntimeException when the uopz_delete() function is not available
- * @see https://github.com/krakjoe/uopz
- */
- public function restoreFunctions(Snapshot $snapshot)
- {
- if (!function_exists('uopz_delete')) {
- throw new RuntimeException('The uopz_delete() function is required for this operation');
- }
-
- $functions = get_defined_functions();
-
- foreach (array_diff($functions['user'], $snapshot->functions()) as $function) {
- uopz_delete($function);
- }
- }
-
- /**
- * Restores all global and super-global variables from a snapshot.
- *
- * @param Snapshot $snapshot
- */
- public function restoreGlobalVariables(Snapshot $snapshot)
- {
- $superGlobalArrays = $snapshot->superGlobalArrays();
-
- foreach ($superGlobalArrays as $superGlobalArray) {
- $this->restoreSuperGlobalArray($snapshot, $superGlobalArray);
- }
-
- $globalVariables = $snapshot->globalVariables();
-
- foreach (array_keys($GLOBALS) as $key) {
- if ($key != 'GLOBALS' &&
- !in_array($key, $superGlobalArrays) &&
- !$snapshot->blacklist()->isGlobalVariableBlacklisted($key)) {
- if (isset($globalVariables[$key])) {
- $GLOBALS[$key] = $globalVariables[$key];
- } else {
- unset($GLOBALS[$key]);
- }
- }
- }
- }
-
- /**
- * Restores all static attributes in user-defined classes from this snapshot.
- *
- * @param Snapshot $snapshot
- */
- public function restoreStaticAttributes(Snapshot $snapshot)
- {
- $current = new Snapshot($snapshot->blacklist(), false, false, false, false, true, false, false, false, false);
- $newClasses = array_diff($current->classes(), $snapshot->classes());
- unset($current);
-
- foreach ($snapshot->staticAttributes() as $className => $staticAttributes) {
- foreach ($staticAttributes as $name => $value) {
- $reflector = new ReflectionProperty($className, $name);
- $reflector->setAccessible(true);
- $reflector->setValue($value);
- }
- }
-
- foreach ($newClasses as $className) {
- $class = new \ReflectionClass($className);
- $defaults = $class->getDefaultProperties();
-
- foreach ($class->getProperties() as $attribute) {
- if (!$attribute->isStatic()) {
- continue;
- }
-
- $name = $attribute->getName();
-
- if ($snapshot->blacklist()->isStaticAttributeBlacklisted($className, $name)) {
- continue;
- }
-
- if (!isset($defaults[$name])) {
- continue;
- }
-
- $attribute->setAccessible(true);
- $attribute->setValue($defaults[$name]);
- }
- }
- }
-
- /**
- * Restores a super-global variable array from this snapshot.
- *
- * @param Snapshot $snapshot
- * @param $superGlobalArray
- */
- private function restoreSuperGlobalArray(Snapshot $snapshot, $superGlobalArray)
- {
- $superGlobalVariables = $snapshot->superGlobalVariables();
-
- if (isset($GLOBALS[$superGlobalArray]) &&
- is_array($GLOBALS[$superGlobalArray]) &&
- isset($superGlobalVariables[$superGlobalArray])) {
- $keys = array_keys(
- array_merge(
- $GLOBALS[$superGlobalArray],
- $superGlobalVariables[$superGlobalArray]
- )
- );
-
- foreach ($keys as $key) {
- if (isset($superGlobalVariables[$superGlobalArray][$key])) {
- $GLOBALS[$superGlobalArray][$key] = $superGlobalVariables[$superGlobalArray][$key];
- } else {
- unset($GLOBALS[$superGlobalArray][$key]);
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/global-state/src/RuntimeException.php b/www/wiki/vendor/sebastian/global-state/src/RuntimeException.php
deleted file mode 100644
index c0bf7bdd..00000000
--- a/www/wiki/vendor/sebastian/global-state/src/RuntimeException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState;
-
-/**
- */
-class RuntimeException extends \RuntimeException implements Exception
-{
-}
diff --git a/www/wiki/vendor/sebastian/global-state/src/Snapshot.php b/www/wiki/vendor/sebastian/global-state/src/Snapshot.php
deleted file mode 100644
index 3c8aaa9b..00000000
--- a/www/wiki/vendor/sebastian/global-state/src/Snapshot.php
+++ /dev/null
@@ -1,423 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState;
-
-use ReflectionClass;
-use Serializable;
-
-/**
- * A snapshot of global state.
- */
-class Snapshot
-{
- /**
- * @var Blacklist
- */
- private $blacklist;
-
- /**
- * @var array
- */
- private $globalVariables = array();
-
- /**
- * @var array
- */
- private $superGlobalArrays = array();
-
- /**
- * @var array
- */
- private $superGlobalVariables = array();
-
- /**
- * @var array
- */
- private $staticAttributes = array();
-
- /**
- * @var array
- */
- private $iniSettings = array();
-
- /**
- * @var array
- */
- private $includedFiles = array();
-
- /**
- * @var array
- */
- private $constants = array();
-
- /**
- * @var array
- */
- private $functions = array();
-
- /**
- * @var array
- */
- private $interfaces = array();
-
- /**
- * @var array
- */
- private $classes = array();
-
- /**
- * @var array
- */
- private $traits = array();
-
- /**
- * Creates a snapshot of the current global state.
- *
- * @param Blacklist $blacklist
- * @param bool $includeGlobalVariables
- * @param bool $includeStaticAttributes
- * @param bool $includeConstants
- * @param bool $includeFunctions
- * @param bool $includeClasses
- * @param bool $includeInterfaces
- * @param bool $includeTraits
- * @param bool $includeIniSettings
- * @param bool $includeIncludedFiles
- */
- public function __construct(Blacklist $blacklist = null, $includeGlobalVariables = true, $includeStaticAttributes = true, $includeConstants = true, $includeFunctions = true, $includeClasses = true, $includeInterfaces = true, $includeTraits = true, $includeIniSettings = true, $includeIncludedFiles = true)
- {
- if ($blacklist === null) {
- $blacklist = new Blacklist;
- }
-
- $this->blacklist = $blacklist;
-
- if ($includeConstants) {
- $this->snapshotConstants();
- }
-
- if ($includeFunctions) {
- $this->snapshotFunctions();
- }
-
- if ($includeClasses || $includeStaticAttributes) {
- $this->snapshotClasses();
- }
-
- if ($includeInterfaces) {
- $this->snapshotInterfaces();
- }
-
- if ($includeGlobalVariables) {
- $this->setupSuperGlobalArrays();
- $this->snapshotGlobals();
- }
-
- if ($includeStaticAttributes) {
- $this->snapshotStaticAttributes();
- }
-
- if ($includeIniSettings) {
- $this->iniSettings = ini_get_all(null, false);
- }
-
- if ($includeIncludedFiles) {
- $this->includedFiles = get_included_files();
- }
-
- if (function_exists('get_declared_traits')) {
- $this->traits = get_declared_traits();
- }
- }
-
- /**
- * @return Blacklist
- */
- public function blacklist()
- {
- return $this->blacklist;
- }
-
- /**
- * @return array
- */
- public function globalVariables()
- {
- return $this->globalVariables;
- }
-
- /**
- * @return array
- */
- public function superGlobalVariables()
- {
- return $this->superGlobalVariables;
- }
-
- /**
- * Returns a list of all super-global variable arrays.
- *
- * @return array
- */
- public function superGlobalArrays()
- {
- return $this->superGlobalArrays;
- }
-
- /**
- * @return array
- */
- public function staticAttributes()
- {
- return $this->staticAttributes;
- }
-
- /**
- * @return array
- */
- public function iniSettings()
- {
- return $this->iniSettings;
- }
-
- /**
- * @return array
- */
- public function includedFiles()
- {
- return $this->includedFiles;
- }
-
- /**
- * @return array
- */
- public function constants()
- {
- return $this->constants;
- }
-
- /**
- * @return array
- */
- public function functions()
- {
- return $this->functions;
- }
-
- /**
- * @return array
- */
- public function interfaces()
- {
- return $this->interfaces;
- }
-
- /**
- * @return array
- */
- public function classes()
- {
- return $this->classes;
- }
-
- /**
- * @return array
- */
- public function traits()
- {
- return $this->traits;
- }
-
- /**
- * Creates a snapshot user-defined constants.
- */
- private function snapshotConstants()
- {
- $constants = get_defined_constants(true);
-
- if (isset($constants['user'])) {
- $this->constants = $constants['user'];
- }
- }
-
- /**
- * Creates a snapshot user-defined functions.
- */
- private function snapshotFunctions()
- {
- $functions = get_defined_functions();
-
- $this->functions = $functions['user'];
- }
-
- /**
- * Creates a snapshot user-defined classes.
- */
- private function snapshotClasses()
- {
- foreach (array_reverse(get_declared_classes()) as $className) {
- $class = new ReflectionClass($className);
-
- if (!$class->isUserDefined()) {
- break;
- }
-
- $this->classes[] = $className;
- }
-
- $this->classes = array_reverse($this->classes);
- }
-
- /**
- * Creates a snapshot user-defined interfaces.
- */
- private function snapshotInterfaces()
- {
- foreach (array_reverse(get_declared_interfaces()) as $interfaceName) {
- $class = new ReflectionClass($interfaceName);
-
- if (!$class->isUserDefined()) {
- break;
- }
-
- $this->interfaces[] = $interfaceName;
- }
-
- $this->interfaces = array_reverse($this->interfaces);
- }
-
- /**
- * Creates a snapshot of all global and super-global variables.
- */
- private function snapshotGlobals()
- {
- $superGlobalArrays = $this->superGlobalArrays();
-
- foreach ($superGlobalArrays as $superGlobalArray) {
- $this->snapshotSuperGlobalArray($superGlobalArray);
- }
-
- foreach (array_keys($GLOBALS) as $key) {
- if ($key != 'GLOBALS' &&
- !in_array($key, $superGlobalArrays) &&
- $this->canBeSerialized($GLOBALS[$key]) &&
- !$this->blacklist->isGlobalVariableBlacklisted($key)) {
- $this->globalVariables[$key] = unserialize(serialize($GLOBALS[$key]));
- }
- }
- }
-
- /**
- * Creates a snapshot a super-global variable array.
- *
- * @param $superGlobalArray
- */
- private function snapshotSuperGlobalArray($superGlobalArray)
- {
- $this->superGlobalVariables[$superGlobalArray] = array();
-
- if (isset($GLOBALS[$superGlobalArray]) && is_array($GLOBALS[$superGlobalArray])) {
- foreach ($GLOBALS[$superGlobalArray] as $key => $value) {
- $this->superGlobalVariables[$superGlobalArray][$key] = unserialize(serialize($value));
- }
- }
- }
-
- /**
- * Creates a snapshot of all static attributes in user-defined classes.
- */
- private function snapshotStaticAttributes()
- {
- foreach ($this->classes as $className) {
- $class = new ReflectionClass($className);
- $snapshot = array();
-
- foreach ($class->getProperties() as $attribute) {
- if ($attribute->isStatic()) {
- $name = $attribute->getName();
-
- if ($this->blacklist->isStaticAttributeBlacklisted($className, $name)) {
- continue;
- }
-
- $attribute->setAccessible(true);
- $value = $attribute->getValue();
-
- if ($this->canBeSerialized($value)) {
- $snapshot[$name] = unserialize(serialize($value));
- }
- }
- }
-
- if (!empty($snapshot)) {
- $this->staticAttributes[$className] = $snapshot;
- }
- }
- }
-
- /**
- * Returns a list of all super-global variable arrays.
- *
- * @return array
- */
- private function setupSuperGlobalArrays()
- {
- $this->superGlobalArrays = array(
- '_ENV',
- '_POST',
- '_GET',
- '_COOKIE',
- '_SERVER',
- '_FILES',
- '_REQUEST'
- );
-
- if (ini_get('register_long_arrays') == '1') {
- $this->superGlobalArrays = array_merge(
- $this->superGlobalArrays,
- array(
- 'HTTP_ENV_VARS',
- 'HTTP_POST_VARS',
- 'HTTP_GET_VARS',
- 'HTTP_COOKIE_VARS',
- 'HTTP_SERVER_VARS',
- 'HTTP_POST_FILES'
- )
- );
- }
- }
-
- /**
- * @param mixed $variable
- * @return bool
- * @todo Implement this properly
- */
- private function canBeSerialized($variable)
- {
- if (!is_object($variable)) {
- return !is_resource($variable);
- }
-
- if ($variable instanceof \stdClass) {
- return true;
- }
-
- $class = new ReflectionClass($variable);
-
- do {
- if ($class->isInternal()) {
- return $variable instanceof Serializable;
- }
- } while ($class = $class->getParentClass());
-
- return true;
- }
-}
diff --git a/www/wiki/vendor/sebastian/global-state/tests/BlacklistTest.php b/www/wiki/vendor/sebastian/global-state/tests/BlacklistTest.php
deleted file mode 100644
index 5d597965..00000000
--- a/www/wiki/vendor/sebastian/global-state/tests/BlacklistTest.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState;
-
-use PHPUnit_Framework_TestCase;
-
-/**
- */
-class BlacklistTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @var \SebastianBergmann\GlobalState\Blacklist
- */
- private $blacklist;
-
- protected function setUp()
- {
- $this->blacklist = new Blacklist;
- }
-
- public function testGlobalVariableThatIsNotBlacklistedIsNotTreatedAsBlacklisted()
- {
- $this->assertFalse($this->blacklist->isGlobalVariableBlacklisted('variable'));
- }
-
- public function testGlobalVariableCanBeBlacklisted()
- {
- $this->blacklist->addGlobalVariable('variable');
-
- $this->assertTrue($this->blacklist->isGlobalVariableBlacklisted('variable'));
- }
-
- public function testStaticAttributeThatIsNotBlacklistedIsNotTreatedAsBlacklisted()
- {
- $this->assertFalse(
- $this->blacklist->isStaticAttributeBlacklisted(
- 'SebastianBergmann\GlobalState\TestFixture\BlacklistedClass',
- 'attribute'
- )
- );
- }
-
- public function testClassCanBeBlacklisted()
- {
- $this->blacklist->addClass('SebastianBergmann\GlobalState\TestFixture\BlacklistedClass');
-
- $this->assertTrue(
- $this->blacklist->isStaticAttributeBlacklisted(
- 'SebastianBergmann\GlobalState\TestFixture\BlacklistedClass',
- 'attribute'
- )
- );
- }
-
- public function testSubclassesCanBeBlacklisted()
- {
- $this->blacklist->addSubclassesOf('SebastianBergmann\GlobalState\TestFixture\BlacklistedClass');
-
- $this->assertTrue(
- $this->blacklist->isStaticAttributeBlacklisted(
- 'SebastianBergmann\GlobalState\TestFixture\BlacklistedChildClass',
- 'attribute'
- )
- );
- }
-
- public function testImplementorsCanBeBlacklisted()
- {
- $this->blacklist->addImplementorsOf('SebastianBergmann\GlobalState\TestFixture\BlacklistedInterface');
-
- $this->assertTrue(
- $this->blacklist->isStaticAttributeBlacklisted(
- 'SebastianBergmann\GlobalState\TestFixture\BlacklistedImplementor',
- 'attribute'
- )
- );
- }
-
- public function testClassNamePrefixesCanBeBlacklisted()
- {
- $this->blacklist->addClassNamePrefix('SebastianBergmann\GlobalState');
-
- $this->assertTrue(
- $this->blacklist->isStaticAttributeBlacklisted(
- 'SebastianBergmann\GlobalState\TestFixture\BlacklistedClass',
- 'attribute'
- )
- );
- }
-
- public function testStaticAttributeCanBeBlacklisted()
- {
- $this->blacklist->addStaticAttribute(
- 'SebastianBergmann\GlobalState\TestFixture\BlacklistedClass',
- 'attribute'
- );
-
- $this->assertTrue(
- $this->blacklist->isStaticAttributeBlacklisted(
- 'SebastianBergmann\GlobalState\TestFixture\BlacklistedClass',
- 'attribute'
- )
- );
- }
-}
diff --git a/www/wiki/vendor/sebastian/global-state/tests/SnapshotTest.php b/www/wiki/vendor/sebastian/global-state/tests/SnapshotTest.php
deleted file mode 100644
index 1e97488b..00000000
--- a/www/wiki/vendor/sebastian/global-state/tests/SnapshotTest.php
+++ /dev/null
@@ -1,119 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState;
-
-use ArrayObject;
-use PHPUnit_Framework_TestCase;
-use SebastianBergmann\GlobalState\TestFixture\SnapshotClass;
-
-/**
- */
-class SnapshotTest extends PHPUnit_Framework_TestCase
-{
- public function testStaticAttributes()
- {
- $blacklist = $this->getBlacklist();
- $blacklist->method('isStaticAttributeBlacklisted')->willReturnCallback(function ($class) {
- return $class !== 'SebastianBergmann\GlobalState\TestFixture\SnapshotClass';
- });
-
- SnapshotClass::init();
-
- $snapshot = new Snapshot($blacklist, false, true, false, false, false, false, false, false, false);
- $expected = array('SebastianBergmann\GlobalState\TestFixture\SnapshotClass' => array(
- 'string' => 'snapshot',
- 'arrayObject' => new ArrayObject(array(1, 2, 3)),
- 'stdClass' => new \stdClass(),
- ));
-
- $this->assertEquals($expected, $snapshot->staticAttributes());
- }
-
- public function testConstants()
- {
- $snapshot = new Snapshot($this->getBlacklist(), false, false, true, false, false, false, false, false, false);
- $this->assertArrayHasKey('GLOBALSTATE_TESTSUITE', $snapshot->constants());
- }
-
- public function testFunctions()
- {
- require_once __DIR__.'/_fixture/SnapshotFunctions.php';
-
- $snapshot = new Snapshot($this->getBlacklist(), false, false, false, true, false, false, false, false, false);
- $functions = $snapshot->functions();
-
- $this->assertThat(
- $functions,
- $this->logicalOr(
- // Zend
- $this->contains('sebastianbergmann\globalstate\testfixture\snapshotfunction'),
- // HHVM
- $this->contains('SebastianBergmann\GlobalState\TestFixture\snapshotFunction')
- )
- );
-
- $this->assertNotContains('assert', $functions);
- }
-
- public function testClasses()
- {
- $snapshot = new Snapshot($this->getBlacklist(), false, false, false, false, true, false, false, false, false);
- $classes = $snapshot->classes();
-
- $this->assertContains('PHPUnit_Framework_TestCase', $classes);
- $this->assertNotContains('Exception', $classes);
- }
-
- public function testInterfaces()
- {
- $snapshot = new Snapshot($this->getBlacklist(), false, false, false, false, false, true, false, false, false);
- $interfaces = $snapshot->interfaces();
-
- $this->assertContains('PHPUnit_Framework_Test', $interfaces);
- $this->assertNotContains('Countable', $interfaces);
- }
-
- /**
- * @requires PHP 5.4
- */
- public function testTraits()
- {
- spl_autoload_call('SebastianBergmann\GlobalState\TestFixture\SnapshotTrait');
-
- $snapshot = new Snapshot($this->getBlacklist(), false, false, false, false, false, false, true, false, false);
- $this->assertContains('SebastianBergmann\GlobalState\TestFixture\SnapshotTrait', $snapshot->traits());
- }
-
- public function testIniSettings()
- {
- $snapshot = new Snapshot($this->getBlacklist(), false, false, false, false, false, false, false, true, false);
- $iniSettings = $snapshot->iniSettings();
-
- $this->assertArrayHasKey('date.timezone', $iniSettings);
- $this->assertEquals('Etc/UTC', $iniSettings['date.timezone']);
- }
-
- public function testIncludedFiles()
- {
- $snapshot = new Snapshot($this->getBlacklist(), false, false, false, false, false, false, false, false, true);
- $this->assertContains(__FILE__, $snapshot->includedFiles());
- }
-
- /**
- * @return \SebastianBergmann\GlobalState\Blacklist
- */
- private function getBlacklist()
- {
- return $this->getMockBuilder('SebastianBergmann\GlobalState\Blacklist')
- ->disableOriginalConstructor()
- ->getMock();
- }
-}
diff --git a/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedChildClass.php b/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedChildClass.php
deleted file mode 100644
index e852b492..00000000
--- a/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedChildClass.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState\TestFixture;
-
-/**
- */
-class BlacklistedChildClass extends BlacklistedClass
-{
-}
diff --git a/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedClass.php b/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedClass.php
deleted file mode 100644
index 284876de..00000000
--- a/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedClass.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState\TestFixture;
-
-/**
- */
-class BlacklistedClass
-{
- private static $attribute;
-}
diff --git a/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedImplementor.php b/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedImplementor.php
deleted file mode 100644
index d7b46a9a..00000000
--- a/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedImplementor.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState\TestFixture;
-
-/**
- */
-class BlacklistedImplementor implements BlacklistedInterface
-{
- private static $attribute;
-}
diff --git a/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedInterface.php b/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedInterface.php
deleted file mode 100644
index 8c3ed674..00000000
--- a/www/wiki/vendor/sebastian/global-state/tests/_fixture/BlacklistedInterface.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState\TestFixture;
-
-/**
- */
-interface BlacklistedInterface
-{
-}
diff --git a/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotClass.php b/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotClass.php
deleted file mode 100644
index 9735818f..00000000
--- a/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotClass.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState\TestFixture;
-
-use DomDocument;
-use ArrayObject;
-
-/**
- */
-class SnapshotClass
-{
- private static $string = 'snapshot';
- private static $dom;
- private static $closure;
- private static $arrayObject;
- private static $snapshotDomDocument;
- private static $resource;
- private static $stdClass;
-
- public static function init()
- {
- self::$dom = new DomDocument();
- self::$closure = function () {};
- self::$arrayObject = new ArrayObject(array(1, 2, 3));
- self::$snapshotDomDocument = new SnapshotDomDocument();
- self::$resource = fopen('php://memory', 'r');
- self::$stdClass = new \stdClass();
- }
-}
diff --git a/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotDomDocument.php b/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotDomDocument.php
deleted file mode 100644
index bcf554dc..00000000
--- a/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotDomDocument.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState\TestFixture;
-
-use DomDocument;
-
-/**
- */
-class SnapshotDomDocument extends DomDocument
-{
-}
diff --git a/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotFunctions.php b/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotFunctions.php
deleted file mode 100644
index 51d1c745..00000000
--- a/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotFunctions.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState\TestFixture;
-
-function snapshotFunction()
-{
-}
diff --git a/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotTrait.php b/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotTrait.php
deleted file mode 100644
index 14e81e97..00000000
--- a/www/wiki/vendor/sebastian/global-state/tests/_fixture/SnapshotTrait.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of the GlobalState package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\GlobalState\TestFixture;
-
-/**
- */
-trait SnapshotTrait
-{
-}
diff --git a/www/wiki/vendor/sebastian/recursion-context/.gitignore b/www/wiki/vendor/sebastian/recursion-context/.gitignore
deleted file mode 100644
index 3beb10f9..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-.idea
-phpunit.xml
-composer.lock
-composer.phar
-vendor/
-cache.properties
-build/LICENSE
-build/README.md
-build/*.tgz
diff --git a/www/wiki/vendor/sebastian/recursion-context/.travis.yml b/www/wiki/vendor/sebastian/recursion-context/.travis.yml
deleted file mode 100644
index c5952a11..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/.travis.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-language: php
-
-php:
- - 5.3.3
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - hhvm
-
-sudo: false
-
-before_script:
- - composer self-update
- - composer install --no-interaction --prefer-source --dev
-
-script: ./vendor/bin/phpunit
-
-notifications:
- email: false
- irc: "irc.freenode.org#phpunit"
diff --git a/www/wiki/vendor/sebastian/recursion-context/LICENSE b/www/wiki/vendor/sebastian/recursion-context/LICENSE
deleted file mode 100644
index f8c30c27..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-Recursion Context
-
-Copyright (c) 2002-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/sebastian/recursion-context/README.md b/www/wiki/vendor/sebastian/recursion-context/README.md
deleted file mode 100644
index 0b894962..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Recursion Context
-
-...
-
-## Installation
-
-You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
-
- composer require sebastian/recursion-context
-
-If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
-
- composer require --dev sebastian/recursion-context
-
diff --git a/www/wiki/vendor/sebastian/recursion-context/build.xml b/www/wiki/vendor/sebastian/recursion-context/build.xml
deleted file mode 100644
index b4fd1935..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/build.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="recursion-context">
- <target name="clean" description="Cleanup build artifacts">
- <delete dir="${basedir}/vendor"/>
- <delete file="${basedir}/composer.lock"/>
- </target>
-
- <target name="composer" depends="clean" description="Install dependencies with Composer">
- <tstamp>
- <format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day"/>
- </tstamp>
- <delete>
- <fileset dir="${basedir}">
- <include name="composer.phar" />
- <date datetime="${thirty.days.ago}" when="before"/>
- </fileset>
- </delete>
-
- <get src="https://getcomposer.org/composer.phar" dest="${basedir}/composer.phar" skipexisting="true"/>
-
- <exec executable="php">
- <arg value="composer.phar"/>
- <arg value="install"/>
- </exec>
- </target>
-</project>
-
diff --git a/www/wiki/vendor/sebastian/recursion-context/composer.json b/www/wiki/vendor/sebastian/recursion-context/composer.json
deleted file mode 100644
index fed033d2..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/composer.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "name": "sebastian/recursion-context",
- "description": "Provides functionality to recursively process PHP variables",
- "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
- {
- "name": "Adam Harvey",
- "email": "aharvey@php.net"
- }
- ],
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/sebastian/recursion-context/phpunit.xml.dist b/www/wiki/vendor/sebastian/recursion-context/phpunit.xml.dist
deleted file mode 100644
index 757e3e60..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/phpunit.xml.dist
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit backupGlobals="false"
- bootstrap="vendor/autoload.php"
- beStrictAboutTestsThatDoNotTestAnything="true"
- beStrictAboutOutputDuringTests="true"
- beStrictAboutTodoAnnotatedTests="true"
- checkForUnintentionallyCoveredCode="true"
- forceCoversAnnotation="true"
- verbose="true">
-<testsuites>
- <testsuite name="recursion-context">
- <directory>tests</directory>
- </testsuite>
- </testsuites>
- <filter>
- <whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true">
- <directory>src</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/sebastian/recursion-context/src/Context.php b/www/wiki/vendor/sebastian/recursion-context/src/Context.php
deleted file mode 100644
index 78ad1f67..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/src/Context.php
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-/*
- * This file is part of the Recursion Context package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\RecursionContext;
-
-/**
- * A context containing previously processed arrays and objects
- * when recursively processing a value.
- */
-final class Context
-{
- /**
- * @var array[]
- */
- private $arrays;
-
- /**
- * @var \SplObjectStorage
- */
- private $objects;
-
- /**
- * Initialises the context
- */
- public function __construct()
- {
- $this->arrays = array();
- $this->objects = new \SplObjectStorage;
- }
-
- /**
- * Adds a value to the context.
- *
- * @param array|object $value The value to add.
- *
- * @return int|string The ID of the stored value, either as a string or integer.
- *
- * @throws InvalidArgumentException Thrown if $value is not an array or object
- */
- public function add(&$value)
- {
- if (is_array($value)) {
- return $this->addArray($value);
- } elseif (is_object($value)) {
- return $this->addObject($value);
- }
-
- throw new InvalidArgumentException(
- 'Only arrays and objects are supported'
- );
- }
-
- /**
- * Checks if the given value exists within the context.
- *
- * @param array|object $value The value to check.
- *
- * @return int|string|false The string or integer ID of the stored value if it has already been seen, or false if the value is not stored.
- *
- * @throws InvalidArgumentException Thrown if $value is not an array or object
- */
- public function contains(&$value)
- {
- if (is_array($value)) {
- return $this->containsArray($value);
- } elseif (is_object($value)) {
- return $this->containsObject($value);
- }
-
- throw new InvalidArgumentException(
- 'Only arrays and objects are supported'
- );
- }
-
- /**
- * @param array $array
- *
- * @return bool|int
- */
- private function addArray(array &$array)
- {
- $key = $this->containsArray($array);
-
- if ($key !== false) {
- return $key;
- }
-
- $this->arrays[] = &$array;
-
- return count($this->arrays) - 1;
- }
-
- /**
- * @param object $object
- *
- * @return string
- */
- private function addObject($object)
- {
- if (!$this->objects->contains($object)) {
- $this->objects->attach($object);
- }
-
- return spl_object_hash($object);
- }
-
- /**
- * @param array $array
- *
- * @return int|false
- */
- private function containsArray(array &$array)
- {
- $keys = array_keys($this->arrays, $array, true);
- $hash = '_Key_' . microtime(true);
-
- foreach ($keys as $key) {
- $this->arrays[$key][$hash] = $hash;
-
- if (isset($array[$hash]) && $array[$hash] === $hash) {
- unset($this->arrays[$key][$hash]);
-
- return $key;
- }
-
- unset($this->arrays[$key][$hash]);
- }
-
- return false;
- }
-
- /**
- * @param object $value
- *
- * @return string|false
- */
- private function containsObject($value)
- {
- if ($this->objects->contains($value)) {
- return spl_object_hash($value);
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/sebastian/recursion-context/src/Exception.php b/www/wiki/vendor/sebastian/recursion-context/src/Exception.php
deleted file mode 100644
index 4a1557ba..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/src/Exception.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of the Recursion Context package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\RecursionContext;
-
-/**
- */
-interface Exception
-{
-}
diff --git a/www/wiki/vendor/sebastian/recursion-context/src/InvalidArgumentException.php b/www/wiki/vendor/sebastian/recursion-context/src/InvalidArgumentException.php
deleted file mode 100644
index 032c5043..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/src/InvalidArgumentException.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/*
- * This file is part of the Recursion Context package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\RecursionContext;
-
-/**
- */
-final class InvalidArgumentException extends \InvalidArgumentException implements Exception
-{
-}
diff --git a/www/wiki/vendor/sebastian/recursion-context/tests/ContextTest.php b/www/wiki/vendor/sebastian/recursion-context/tests/ContextTest.php
deleted file mode 100644
index cee0bcf9..00000000
--- a/www/wiki/vendor/sebastian/recursion-context/tests/ContextTest.php
+++ /dev/null
@@ -1,144 +0,0 @@
-<?php
-/*
- * This file is part of the Recursion Context package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann\RecursionContext;
-
-use PHPUnit_Framework_TestCase;
-
-/**
- * @covers SebastianBergmann\RecursionContext\Context
- */
-class ContextTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @var \SebastianBergmann\RecursionContext\Context
- */
- private $context;
-
- protected function setUp()
- {
- $this->context = new Context();
- }
-
- public function failsProvider()
- {
- return array(
- array(true),
- array(false),
- array(null),
- array('string'),
- array(1),
- array(1.5),
- array(fopen('php://memory', 'r'))
- );
- }
-
- public function valuesProvider()
- {
- $obj2 = new \stdClass();
- $obj2->foo = 'bar';
-
- $obj3 = (object) array(1,2,"Test\r\n",4,5,6,7,8);
-
- $obj = new \stdClass();
- //@codingStandardsIgnoreStart
- $obj->null = null;
- //@codingStandardsIgnoreEnd
- $obj->boolean = true;
- $obj->integer = 1;
- $obj->double = 1.2;
- $obj->string = '1';
- $obj->text = "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext";
- $obj->object = $obj2;
- $obj->objectagain = $obj2;
- $obj->array = array('foo' => 'bar');
- $obj->array2 = array(1,2,3,4,5,6);
- $obj->array3 = array($obj, $obj2, $obj3);
- $obj->self = $obj;
-
- $storage = new \SplObjectStorage();
- $storage->attach($obj2);
- $storage->foo = $obj2;
-
- return array(
- array($obj, spl_object_hash($obj)),
- array($obj2, spl_object_hash($obj2)),
- array($obj3, spl_object_hash($obj3)),
- array($storage, spl_object_hash($storage)),
- array($obj->array, 0),
- array($obj->array2, 0),
- array($obj->array3, 0)
- );
- }
-
- /**
- * @covers SebastianBergmann\RecursionContext\Context::add
- * @uses SebastianBergmann\RecursionContext\InvalidArgumentException
- * @dataProvider failsProvider
- */
- public function testAddFails($value)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\RecursionContext\\Exception',
- 'Only arrays and objects are supported'
- );
- $this->context->add($value);
- }
-
- /**
- * @covers SebastianBergmann\RecursionContext\Context::contains
- * @uses SebastianBergmann\RecursionContext\InvalidArgumentException
- * @dataProvider failsProvider
- */
- public function testContainsFails($value)
- {
- $this->setExpectedException(
- 'SebastianBergmann\\RecursionContext\\Exception',
- 'Only arrays and objects are supported'
- );
- $this->context->contains($value);
- }
-
- /**
- * @covers SebastianBergmann\RecursionContext\Context::add
- * @dataProvider valuesProvider
- */
- public function testAdd($value, $key)
- {
- $this->assertEquals($key, $this->context->add($value));
-
- // Test we get the same key on subsequent adds
- $this->assertEquals($key, $this->context->add($value));
- }
-
- /**
- * @covers SebastianBergmann\RecursionContext\Context::contains
- * @uses SebastianBergmann\RecursionContext\Context::add
- * @depends testAdd
- * @dataProvider valuesProvider
- */
- public function testContainsFound($value, $key)
- {
- $this->context->add($value);
- $this->assertEquals($key, $this->context->contains($value));
-
- // Test we get the same key on subsequent calls
- $this->assertEquals($key, $this->context->contains($value));
- }
-
- /**
- * @covers SebastianBergmann\RecursionContext\Context::contains
- * @dataProvider valuesProvider
- */
- public function testContainsNotFound($value)
- {
- $this->assertFalse($this->context->contains($value));
- }
-}
diff --git a/www/wiki/vendor/sebastian/version/.gitattributes b/www/wiki/vendor/sebastian/version/.gitattributes
deleted file mode 100644
index 461090b7..00000000
--- a/www/wiki/vendor/sebastian/version/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-*.php diff=php
diff --git a/www/wiki/vendor/sebastian/version/.gitignore b/www/wiki/vendor/sebastian/version/.gitignore
deleted file mode 100644
index a09c56df..00000000
--- a/www/wiki/vendor/sebastian/version/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/.idea
diff --git a/www/wiki/vendor/sebastian/version/LICENSE b/www/wiki/vendor/sebastian/version/LICENSE
deleted file mode 100644
index 5b79c41f..00000000
--- a/www/wiki/vendor/sebastian/version/LICENSE
+++ /dev/null
@@ -1,33 +0,0 @@
-Version
-
-Copyright (c) 2013-2015, Sebastian Bergmann <sebastian@phpunit.de>.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
-
- * Neither the name of Sebastian Bergmann nor the names of his
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/sebastian/version/README.md b/www/wiki/vendor/sebastian/version/README.md
deleted file mode 100644
index be6b687b..00000000
--- a/www/wiki/vendor/sebastian/version/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Version
-
-**Version** is a library that helps with managing the version number of Git-hosted PHP projects.
-
-## Installation
-
-Simply add a dependency on `sebastian/version` to your project's `composer.json` file if you use [Composer](http://getcomposer.org/) to manage the dependencies of your project.
-
-## Usage
-
-The constructor of the `SebastianBergmann\Version` class expects two parameters:
-
-* `$release` is the version number of the latest release (`X.Y.Z`, for instance) or the name of the release series (`X.Y`) when no release has been made from that branch / for that release series yet.
-* `$path` is the path to the directory (or a subdirectory thereof) where the sourcecode of the project can be found. Simply passing `__DIR__` here usually suffices.
-
-Apart from the constructor, the `SebastianBergmann\Version` class has a single public method: `getVersion()`.
-
-Here is a contrived example that shows the basic usage:
-
- <?php
- $version = new SebastianBergmann\Version(
- '3.7.10', '/usr/local/src/phpunit'
- );
-
- var_dump($version->getVersion());
- ?>
-
- string(18) "3.7.10-17-g00f3408"
-
-When a new release is prepared, the string that is passed to the constructor as the first argument needs to be updated.
-
-### How SebastianBergmann\Version::getVersion() works
-
-* If `$path` is not (part of) a Git repository and `$release` is in `X.Y.Z` format then `$release` is returned as-is.
-* If `$path` is not (part of) a Git repository and `$release` is in `X.Y` format then `$release` is returned suffixed with `-dev`.
-* If `$path` is (part of) a Git repository and `$release` is in `X.Y.Z` format then the output of `git describe --tags` is returned as-is.
-* If `$path` is (part of) a Git repository and `$release` is in `X.Y` format then a string is returned that begins with `X.Y` and ends with information from `git describe --tags`.
diff --git a/www/wiki/vendor/sebastian/version/composer.json b/www/wiki/vendor/sebastian/version/composer.json
deleted file mode 100644
index 39d65697..00000000
--- a/www/wiki/vendor/sebastian/version/composer.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "name": "sebastian/version",
- "description": "Library that helps with managing the version number of Git-hosted PHP projects",
- "homepage": "https://github.com/sebastianbergmann/version",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de",
- "role": "lead"
- }
- ],
- "support": {
- "issues": "https://github.com/sebastianbergmann/version/issues"
- },
- "autoload": {
- "classmap": [
- "src/"
- ]
- }
-}
diff --git a/www/wiki/vendor/sebastian/version/src/Version.php b/www/wiki/vendor/sebastian/version/src/Version.php
deleted file mode 100644
index 3cb3e092..00000000
--- a/www/wiki/vendor/sebastian/version/src/Version.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-/*
- * This file is part of the Version package.
- *
- * (c) Sebastian Bergmann <sebastian@phpunit.de>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace SebastianBergmann;
-
-/**
- * @since Class available since Release 1.0.0
- */
-class Version
-{
- private $path;
- private $release;
- private $version;
-
- /**
- * @param string $release
- * @param string $path
- */
- public function __construct($release, $path)
- {
- $this->release = $release;
- $this->path = $path;
- }
-
- /**
- * @return string
- */
- public function getVersion()
- {
- if ($this->version === null) {
- if (count(explode('.', $this->release)) == 3) {
- $this->version = $this->release;
- } else {
- $this->version = $this->release . '-dev';
- }
-
- $git = $this->getGitInformation($this->path);
-
- if ($git) {
- if (count(explode('.', $this->release)) == 3) {
- $this->version = $git;
- } else {
- $git = explode('-', $git);
-
- $this->version = $this->release . '-' . end($git);
- }
- }
- }
-
- return $this->version;
- }
-
- /**
- * @param string $path
- * @return bool|string
- */
- private function getGitInformation($path)
- {
- if (!is_dir($path . DIRECTORY_SEPARATOR . '.git')) {
- return false;
- }
-
- $dir = getcwd();
- chdir($path);
- $returnCode = 1;
- $result = @exec('git describe --tags 2>&1', $output, $returnCode);
- chdir($dir);
-
- if ($returnCode !== 0) {
- return false;
- }
-
- return $result;
- }
-}
diff --git a/www/wiki/vendor/seld/jsonlint/.gitignore b/www/wiki/vendor/seld/jsonlint/.gitignore
deleted file mode 100644
index 2c10524b..00000000
--- a/www/wiki/vendor/seld/jsonlint/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-vendor
-composer.lock
-composer.phar \ No newline at end of file
diff --git a/www/wiki/vendor/seld/jsonlint/.travis.yml b/www/wiki/vendor/seld/jsonlint/.travis.yml
deleted file mode 100644
index 6cff1fee..00000000
--- a/www/wiki/vendor/seld/jsonlint/.travis.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-language: php
-
-sudo: false
-dist: trusty
-
-php:
- - 5.4
- - 5.5
- - 5.6
- - 7.0
- - 7.1
- - 7.2
- - hhvm
- - nightly
-
-matrix:
- include:
- - dist: precise
- php: 5.3
- fast_finish: true
-
-before_script:
- - composer update
-
-script: vendor/bin/phpunit
diff --git a/www/wiki/vendor/seld/jsonlint/CHANGELOG.md b/www/wiki/vendor/seld/jsonlint/CHANGELOG.md
deleted file mode 100644
index 7bd154c5..00000000
--- a/www/wiki/vendor/seld/jsonlint/CHANGELOG.md
+++ /dev/null
@@ -1,66 +0,0 @@
-### 1.7.1 (2018-01-24)
-
- * Fixed PHP 5.3 compatibility in bin/jsonlint
-
-### 1.7.0 (2018-01-03)
-
- * Added ability to lint multiple files at once using the jsonlint binary
-
-### 1.6.2 (2017-11-30)
-
- * No meaningful public changes
-
-### 1.6.1 (2017-06-18)
-
- * Fixed parsing of `0` as invalid
-
-### 1.6.0 (2017-03-06)
-
- * Added $flags arg to JsonParser::lint() to take the same flag as parse() did
- * Fixed backtracking performance issues on long strings with a lot of escaped characters
-
-### 1.5.0 (2016-11-14)
-
- * Added support for PHP 7.1 (which converts `{"":""}` to an object property called `""` and not `"_empty_"` like 7.0 and below).
-
-### 1.4.0 (2015-11-21)
-
- * Added a DuplicateKeyException allowing for more specific error detection and handling
-
-### 1.3.1 (2015-01-04)
-
- * Fixed segfault when parsing large JSON strings
-
-### 1.3.0 (2014-09-05)
-
- * Added parsing to an associative array via JsonParser::PARSE_TO_ASSOC
- * Fixed a warning when rendering parse errors on empty lines
-
-### 1.2.0 (2014-07-20)
-
- * Added support for linting multiple files at once in bin/jsonlint
- * Added a -q/--quiet flag to suppress the output
- * Fixed error output being on STDOUT instead of STDERR
- * Fixed parameter parsing
-
-### 1.1.2 (2013-11-04)
-
- * Fixed handling of Unicode BOMs to give a better failure hint
-
-### 1.1.1 (2013-02-12)
-
- * Fixed handling of empty keys in objects in certain cases
-
-### 1.1.0 (2012-12-13)
-
- * Added optional parsing of duplicate keys into key.2, key.3, etc via JsonParser::ALLOW_DUPLICATE_KEYS
- * Improved error reporting for common mistakes
-
-### 1.0.1 (2012-04-03)
-
- * Added optional detection and error reporting for duplicate keys via JsonParser::DETECT_KEY_CONFLICTS
- * Added ability to pipe content through stdin into bin/jsonlint
-
-### 1.0.0 (2012-03-12)
-
- * Initial release
diff --git a/www/wiki/vendor/seld/jsonlint/LICENSE b/www/wiki/vendor/seld/jsonlint/LICENSE
deleted file mode 100644
index c2344874..00000000
--- a/www/wiki/vendor/seld/jsonlint/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2011 Jordi Boggiano
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/seld/jsonlint/README.md b/www/wiki/vendor/seld/jsonlint/README.md
deleted file mode 100644
index b65f60b4..00000000
--- a/www/wiki/vendor/seld/jsonlint/README.md
+++ /dev/null
@@ -1,89 +0,0 @@
-JSON Lint
-=========
-
-[![Build Status](https://secure.travis-ci.org/Seldaek/jsonlint.png)](http://travis-ci.org/Seldaek/jsonlint)
-
-Usage
------
-
-```php
-use Seld\JsonLint\JsonParser;
-
-$parser = new JsonParser();
-
-// returns null if it's valid json, or a ParsingException object.
-$parser->lint($json);
-
-// Call getMessage() on the exception object to get
-// a well formatted error message error like this
-
-// Parse error on line 2:
-// ... "key": "value" "numbers": [1, 2, 3]
-// ----------------------^
-// Expected one of: 'EOF', '}', ':', ',', ']'
-
-// Call getDetails() on the exception to get more info.
-
-// returns parsed json, like json_decode() does, but slower, throws
-// exceptions on failure.
-$parser->parse($json);
-```
-
-You can also pass additional flags to `JsonParser::lint/parse` that tweak the functionality:
-
-- `JsonParser::DETECT_KEY_CONFLICTS` throws an exception on duplicate keys.
-- `JsonParser::ALLOW_DUPLICATE_KEYS` collects duplicate keys. e.g. if you have two `foo` keys they will end up as `foo` and `foo.2`.
-- `JsonParser::PARSE_TO_ASSOC` parses to associative arrays instead of stdClass objects.
-
-Example:
-
-```
-$parser = new JsonParser;
-try {
- $jsonParser->parse(file_get_contents($jsonFile), JsonParser::DETECT_KEY_CONFLICTS);
-} catch (DuplicateKeyException $e) {
- $details = $e->getDetails();
- echo 'Key '.$details['key'].' is a duplicate in '.$jsonFile.' at line '.$details['line'];
-}
-```
-
-Installation
-------------
-
-For a quick install with Composer use:
-
- $ composer require seld/jsonlint
-
-JSON Lint can easily be used within another app if you have a
-[PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md)
-autoloader, or it can be installed through [Composer](https://getcomposer.org/)
-for use as a CLI util.
-Once installed via Composer you can run the following command to lint a json file or URL:
-
- $ bin/jsonlint file.json
-
-Requirements
-------------
-
-- PHP 5.3+
-- [optional] PHPUnit 3.5+ to execute the test suite (phpunit --version)
-
-Submitting bugs and feature requests
-------------------------------------
-
-Bugs and feature request are tracked on [GitHub](https://github.com/Seldaek/jsonlint/issues)
-
-Author
-------
-
-Jordi Boggiano - <j.boggiano@seld.be> - <http://twitter.com/seldaek>
-
-License
--------
-
-JSON Lint is licensed under the MIT License - see the LICENSE file for details
-
-Acknowledgements
-----------------
-
-This library is a port of the JavaScript [jsonlint](https://github.com/zaach/jsonlint) library.
diff --git a/www/wiki/vendor/seld/jsonlint/bin/jsonlint b/www/wiki/vendor/seld/jsonlint/bin/jsonlint
deleted file mode 100755
index 07b3e4bd..00000000
--- a/www/wiki/vendor/seld/jsonlint/bin/jsonlint
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-/*
- * This file is part of the JSON Lint package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-function includeIfExists($file)
-{
- if (file_exists($file)) {
- return include $file;
- }
-}
-
-if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
- $msg = 'You must set up the project dependencies, run the following commands:'.PHP_EOL.
- 'curl -sS https://getcomposer.org/installer | php'.PHP_EOL.
- 'php composer.phar install'.PHP_EOL;
- fwrite(STDERR, $msg);
- exit(1);
-}
-
-use Seld\JsonLint\JsonParser;
-
-$files = array();
-$quiet = false;
-
-if (isset($_SERVER['argc']) && $_SERVER['argc'] > 1) {
- for ($i = 1; $i < $_SERVER['argc']; $i++) {
- $arg = $_SERVER['argv'][$i];
- if ($arg == '-q' || $arg == '--quiet') {
- $quiet = true;
- } else {
- if ($arg == '-h' || $arg == '--help') {
- showUsage();
- } else {
- $files[] = $arg;
- }
- }
- }
-}
-
-if (!empty($files)) {
- // file linting
- $exitCode = 0;
- foreach ($files as $file) {
- $result = lintFile($file, $quiet);
- if ($result === false) {
- $exitCode = 1;
- }
- }
- exit($exitCode);
-} else {
- //stdin linting
- if ($contents = file_get_contents('php://stdin')) {
- lint($contents);
- } else {
- fwrite(STDERR, 'No file name or json input given' . PHP_EOL);
- exit(1);
- }
-}
-
-// stdin lint function
-function lint($content, $quiet = false)
-{
- $parser = new JsonParser();
- if ($err = $parser->lint($content)) {
- fwrite(STDERR, $err->getMessage() . ' (stdin)' . PHP_EOL);
- exit(1);
- }
- if (!$quiet) {
- echo 'Valid JSON (stdin)' . PHP_EOL;
- exit(0);
- }
-}
-
-// file lint function
-function lintFile($file, $quiet = false)
-{
- if (!preg_match('{^https?://}i', $file)) {
- if (!file_exists($file)) {
- fwrite(STDERR, 'File not found: ' . $file . PHP_EOL);
- return false;
- }
- if (!is_readable($file)) {
- fwrite(STDERR, 'File not readable: ' . $file . PHP_EOL);
- return false;
- }
- }
-
- $content = file_get_contents($file);
- $parser = new JsonParser();
- if ($err = $parser->lint($content)) {
- fwrite(STDERR, $file . ': ' . $err->getMessage() . PHP_EOL);
- return false;
- }
- if (!$quiet) {
- echo 'Valid JSON (' . $file . ')' . PHP_EOL;
- }
- return true;
-}
-
-// usage text function
-function showUsage()
-{
- echo 'Usage: jsonlint file [options]'.PHP_EOL;
- echo PHP_EOL;
- echo 'Options:'.PHP_EOL;
- echo ' -q, --quiet Cause jsonlint to be quiet when no errors are found'.PHP_EOL;
- echo ' -h, --help Show this message'.PHP_EOL;
- exit(0);
-}
diff --git a/www/wiki/vendor/seld/jsonlint/composer.json b/www/wiki/vendor/seld/jsonlint/composer.json
deleted file mode 100644
index a8706ade..00000000
--- a/www/wiki/vendor/seld/jsonlint/composer.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "seld/jsonlint",
- "description": "JSON Linter",
- "keywords": ["json", "parser", "linter", "validator"],
- "type": "library",
- "license": "MIT",
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "require": {
- "php": "^5.3 || ^7.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
- },
- "autoload": {
- "psr-4": { "Seld\\JsonLint\\": "src/Seld/JsonLint/" }
- },
- "bin": ["bin/jsonlint"]
-}
diff --git a/www/wiki/vendor/seld/jsonlint/phpunit.xml.dist b/www/wiki/vendor/seld/jsonlint/phpunit.xml.dist
deleted file mode 100644
index 5de888b4..00000000
--- a/www/wiki/vendor/seld/jsonlint/phpunit.xml.dist
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit backupGlobals="false"
- backupStaticAttributes="false"
- colors="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- processIsolation="false"
- stopOnFailure="false"
- syntaxCheck="false"
- bootstrap="tests/bootstrap.php"
->
- <testsuites>
- <testsuite name="JSON Lint Test Suite">
- <directory>./tests/</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist>
- <directory>./src/Seld/JsonLint/</directory>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/DuplicateKeyException.php b/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/DuplicateKeyException.php
deleted file mode 100644
index b9159021..00000000
--- a/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/DuplicateKeyException.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of the JSON Lint package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Seld\JsonLint;
-
-class DuplicateKeyException extends ParsingException
-{
- public function __construct($message, $key, array $details = array())
- {
- $details['key'] = $key;
- parent::__construct($message, $details);
- }
-
- public function getKey()
- {
- return $this->details['key'];
- }
-}
diff --git a/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/JsonParser.php b/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/JsonParser.php
deleted file mode 100644
index 8abfe7a2..00000000
--- a/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/JsonParser.php
+++ /dev/null
@@ -1,502 +0,0 @@
-<?php
-
-/*
- * This file is part of the JSON Lint package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Seld\JsonLint;
-use stdClass;
-
-/**
- * Parser class
- *
- * Example:
- *
- * $parser = new JsonParser();
- * // returns null if it's valid json, or an error object
- * $parser->lint($json);
- * // returns parsed json, like json_decode does, but slower, throws exceptions on failure.
- * $parser->parse($json);
- *
- * Ported from https://github.com/zaach/jsonlint
- */
-class JsonParser
-{
- const DETECT_KEY_CONFLICTS = 1;
- const ALLOW_DUPLICATE_KEYS = 2;
- const PARSE_TO_ASSOC = 4;
-
- private $lexer;
-
- private $flags;
- private $stack;
- private $vstack; // semantic value stack
- private $lstack; // location stack
-
- private $symbols = array(
- 'error' => 2,
- 'JSONString' => 3,
- 'STRING' => 4,
- 'JSONNumber' => 5,
- 'NUMBER' => 6,
- 'JSONNullLiteral' => 7,
- 'NULL' => 8,
- 'JSONBooleanLiteral' => 9,
- 'TRUE' => 10,
- 'FALSE' => 11,
- 'JSONText' => 12,
- 'JSONValue' => 13,
- 'EOF' => 14,
- 'JSONObject' => 15,
- 'JSONArray' => 16,
- '{' => 17,
- '}' => 18,
- 'JSONMemberList' => 19,
- 'JSONMember' => 20,
- ':' => 21,
- ',' => 22,
- '[' => 23,
- ']' => 24,
- 'JSONElementList' => 25,
- '$accept' => 0,
- '$end' => 1,
- );
-
- private $terminals_ = array(
- 2 => "error",
- 4 => "STRING",
- 6 => "NUMBER",
- 8 => "NULL",
- 10 => "TRUE",
- 11 => "FALSE",
- 14 => "EOF",
- 17 => "{",
- 18 => "}",
- 21 => ":",
- 22 => ",",
- 23 => "[",
- 24 => "]",
- );
-
- private $productions_ = array(
- 0,
- array(3, 1),
- array(5, 1),
- array(7, 1),
- array(9, 1),
- array(9, 1),
- array(12, 2),
- array(13, 1),
- array(13, 1),
- array(13, 1),
- array(13, 1),
- array(13, 1),
- array(13, 1),
- array(15, 2),
- array(15, 3),
- array(20, 3),
- array(19, 1),
- array(19, 3),
- array(16, 2),
- array(16, 3),
- array(25, 1),
- array(25, 3)
- );
-
- private $table = array(array(3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 12 => 1, 13 => 2, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15)), array( 1 => array(3)), array( 14 => array(1,16)), array( 14 => array(2,7), 18 => array(2,7), 22 => array(2,7), 24 => array(2,7)), array( 14 => array(2,8), 18 => array(2,8), 22 => array(2,8), 24 => array(2,8)), array( 14 => array(2,9), 18 => array(2,9), 22 => array(2,9), 24 => array(2,9)), array( 14 => array(2,10), 18 => array(2,10), 22 => array(2,10), 24 => array(2,10)), array( 14 => array(2,11), 18 => array(2,11), 22 => array(2,11), 24 => array(2,11)), array( 14 => array(2,12), 18 => array(2,12), 22 => array(2,12), 24 => array(2,12)), array( 14 => array(2,3), 18 => array(2,3), 22 => array(2,3), 24 => array(2,3)), array( 14 => array(2,4), 18 => array(2,4), 22 => array(2,4), 24 => array(2,4)), array( 14 => array(2,5), 18 => array(2,5), 22 => array(2,5), 24 => array(2,5)), array( 14 => array(2,1), 18 => array(2,1), 21 => array(2,1), 22 => array(2,1), 24 => array(2,1)), array( 14 => array(2,2), 18 => array(2,2), 22 => array(2,2), 24 => array(2,2)), array( 3 => 20, 4 => array(1,12), 18 => array(1,17), 19 => 18, 20 => 19 ), array( 3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 13 => 23, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15), 24 => array(1,21), 25 => 22 ), array( 1 => array(2,6)), array( 14 => array(2,13), 18 => array(2,13), 22 => array(2,13), 24 => array(2,13)), array( 18 => array(1,24), 22 => array(1,25)), array( 18 => array(2,16), 22 => array(2,16)), array( 21 => array(1,26)), array( 14 => array(2,18), 18 => array(2,18), 22 => array(2,18), 24 => array(2,18)), array( 22 => array(1,28), 24 => array(1,27)), array( 22 => array(2,20), 24 => array(2,20)), array( 14 => array(2,14), 18 => array(2,14), 22 => array(2,14), 24 => array(2,14)), array( 3 => 20, 4 => array(1,12), 20 => 29 ), array( 3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 13 => 30, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15)), array( 14 => array(2,19), 18 => array(2,19), 22 => array(2,19), 24 => array(2,19)), array( 3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 13 => 31, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15)), array( 18 => array(2,17), 22 => array(2,17)), array( 18 => array(2,15), 22 => array(2,15)), array( 22 => array(2,21), 24 => array(2,21)),
- );
-
- private $defaultActions = array(
- 16 => array(2, 6)
- );
-
- /**
- * @param string $input JSON string
- * @param int $flags Bitmask of parse/lint options (see constants of this class)
- * @return null|ParsingException null if no error is found, a ParsingException containing all details otherwise
- */
- public function lint($input, $flags = 0)
- {
- try {
- $this->parse($input, $flags);
- } catch (ParsingException $e) {
- return $e;
- }
- }
-
- /**
- * @param string $input JSON string
- * @param int $flags Bitmask of parse/lint options (see constants of this class)
- * @return mixed
- * @throws ParsingException
- */
- public function parse($input, $flags = 0)
- {
- $this->failOnBOM($input);
-
- $this->flags = $flags;
-
- $this->stack = array(0);
- $this->vstack = array(null);
- $this->lstack = array();
-
- $yytext = '';
- $yylineno = 0;
- $yyleng = 0;
- $recovering = 0;
- $TERROR = 2;
- $EOF = 1;
-
- $this->lexer = new Lexer();
- $this->lexer->setInput($input);
-
- $yyloc = $this->lexer->yylloc;
- $this->lstack[] = $yyloc;
-
- $symbol = null;
- $preErrorSymbol = null;
- $state = null;
- $action = null;
- $a = null;
- $r = null;
- $yyval = new stdClass;
- $p = null;
- $len = null;
- $newState = null;
- $expected = null;
- $errStr = null;
-
- while (true) {
- // retrieve state number from top of stack
- $state = $this->stack[count($this->stack)-1];
-
- // use default actions if available
- if (isset($this->defaultActions[$state])) {
- $action = $this->defaultActions[$state];
- } else {
- if ($symbol == null) {
- $symbol = $this->lex();
- }
- // read action for current state and first input
- $action = isset($this->table[$state][$symbol]) ? $this->table[$state][$symbol] : false;
- }
-
- // handle parse error
- if (!$action || !$action[0]) {
- if (!$recovering) {
- // Report error
- $expected = array();
- foreach ($this->table[$state] as $p => $ignore) {
- if (isset($this->terminals_[$p]) && $p > 2) {
- $expected[] = "'" . $this->terminals_[$p] . "'";
- }
- }
-
- $message = null;
- if (in_array("'STRING'", $expected) && in_array(substr($this->lexer->match, 0, 1), array('"', "'"))) {
- $message = "Invalid string";
- if ("'" === substr($this->lexer->match, 0, 1)) {
- $message .= ", it appears you used single quotes instead of double quotes";
- } elseif (preg_match('{".+?(\\\\[^"bfnrt/\\\\u])}', $this->lexer->getUpcomingInput(), $match)) {
- $message .= ", it appears you have an unescaped backslash at: ".$match[1];
- } elseif (preg_match('{"(?:[^"]+|\\\\")*$}m', $this->lexer->getUpcomingInput())) {
- $message .= ", it appears you forgot to terminate a string, or attempted to write a multiline string which is invalid";
- }
- }
-
- $errStr = 'Parse error on line ' . ($yylineno+1) . ":\n";
- $errStr .= $this->lexer->showPosition() . "\n";
- if ($message) {
- $errStr .= $message;
- } else {
- $errStr .= (count($expected) > 1) ? "Expected one of: " : "Expected: ";
- $errStr .= implode(', ', $expected);
- }
-
- if (',' === substr(trim($this->lexer->getPastInput()), -1)) {
- $errStr .= " - It appears you have an extra trailing comma";
- }
-
- $this->parseError($errStr, array(
- 'text' => $this->lexer->match,
- 'token' => !empty($this->terminals_[$symbol]) ? $this->terminals_[$symbol] : $symbol,
- 'line' => $this->lexer->yylineno,
- 'loc' => $yyloc,
- 'expected' => $expected,
- ));
- }
-
- // just recovered from another error
- if ($recovering == 3) {
- if ($symbol == $EOF) {
- throw new ParsingException($errStr ?: 'Parsing halted.');
- }
-
- // discard current lookahead and grab another
- $yyleng = $this->lexer->yyleng;
- $yytext = $this->lexer->yytext;
- $yylineno = $this->lexer->yylineno;
- $yyloc = $this->lexer->yylloc;
- $symbol = $this->lex();
- }
-
- // try to recover from error
- while (true) {
- // check for error recovery rule in this state
- if (array_key_exists($TERROR, $this->table[$state])) {
- break;
- }
- if ($state == 0) {
- throw new ParsingException($errStr ?: 'Parsing halted.');
- }
- $this->popStack(1);
- $state = $this->stack[count($this->stack)-1];
- }
-
- $preErrorSymbol = $symbol; // save the lookahead token
- $symbol = $TERROR; // insert generic error symbol as new lookahead
- $state = $this->stack[count($this->stack)-1];
- $action = isset($this->table[$state][$TERROR]) ? $this->table[$state][$TERROR] : false;
- $recovering = 3; // allow 3 real symbols to be shifted before reporting a new error
- }
-
- // this shouldn't happen, unless resolve defaults are off
- if (is_array($action[0]) && count($action) > 1) {
- throw new ParsingException('Parse Error: multiple actions possible at state: ' . $state . ', token: ' . $symbol);
- }
-
- switch ($action[0]) {
- case 1: // shift
- $this->stack[] = $symbol;
- $this->vstack[] = $this->lexer->yytext;
- $this->lstack[] = $this->lexer->yylloc;
- $this->stack[] = $action[1]; // push state
- $symbol = null;
- if (!$preErrorSymbol) { // normal execution/no error
- $yyleng = $this->lexer->yyleng;
- $yytext = $this->lexer->yytext;
- $yylineno = $this->lexer->yylineno;
- $yyloc = $this->lexer->yylloc;
- if ($recovering > 0) {
- $recovering--;
- }
- } else { // error just occurred, resume old lookahead f/ before error
- $symbol = $preErrorSymbol;
- $preErrorSymbol = null;
- }
- break;
-
- case 2: // reduce
- $len = $this->productions_[$action[1]][1];
-
- // perform semantic action
- $yyval->token = $this->vstack[count($this->vstack) - $len]; // default to $$ = $1
- // default location, uses first token for firsts, last for lasts
- $yyval->store = array( // _$ = store
- 'first_line' => $this->lstack[count($this->lstack) - ($len ?: 1)]['first_line'],
- 'last_line' => $this->lstack[count($this->lstack) - 1]['last_line'],
- 'first_column' => $this->lstack[count($this->lstack) - ($len ?: 1)]['first_column'],
- 'last_column' => $this->lstack[count($this->lstack) - 1]['last_column'],
- );
- $r = $this->performAction($yyval, $yytext, $yyleng, $yylineno, $action[1], $this->vstack, $this->lstack);
-
- if (!$r instanceof Undefined) {
- return $r;
- }
-
- if ($len) {
- $this->popStack($len);
- }
-
- $this->stack[] = $this->productions_[$action[1]][0]; // push nonterminal (reduce)
- $this->vstack[] = $yyval->token;
- $this->lstack[] = $yyval->store;
- $newState = $this->table[$this->stack[count($this->stack)-2]][$this->stack[count($this->stack)-1]];
- $this->stack[] = $newState;
- break;
-
- case 3: // accept
-
- return true;
- }
- }
-
- return true;
- }
-
- protected function parseError($str, $hash)
- {
- throw new ParsingException($str, $hash);
- }
-
- // $$ = $tokens // needs to be passed by ref?
- // $ = $token
- // _$ removed, useless?
- private function performAction(stdClass $yyval, $yytext, $yyleng, $yylineno, $yystate, &$tokens)
- {
- // $0 = $len
- $len = count($tokens) - 1;
- switch ($yystate) {
- case 1:
- $yytext = preg_replace_callback('{(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4})}', array($this, 'stringInterpolation'), $yytext);
- $yyval->token = $yytext;
- break;
- case 2:
- if (strpos($yytext, 'e') !== false || strpos($yytext, 'E') !== false) {
- $yyval->token = floatval($yytext);
- } else {
- $yyval->token = strpos($yytext, '.') === false ? intval($yytext) : floatval($yytext);
- }
- break;
- case 3:
- $yyval->token = null;
- break;
- case 4:
- $yyval->token = true;
- break;
- case 5:
- $yyval->token = false;
- break;
- case 6:
- return $yyval->token = $tokens[$len-1];
- case 13:
- if ($this->flags & self::PARSE_TO_ASSOC) {
- $yyval->token = array();
- } else {
- $yyval->token = new stdClass;
- }
- break;
- case 14:
- $yyval->token = $tokens[$len-1];
- break;
- case 15:
- $yyval->token = array($tokens[$len-2], $tokens[$len]);
- break;
- case 16:
- if (PHP_VERSION_ID < 70100) {
- $property = $tokens[$len][0] === '' ? '_empty_' : $tokens[$len][0];
- } else {
- $property = $tokens[$len][0];
- }
- if ($this->flags & self::PARSE_TO_ASSOC) {
- $yyval->token = array();
- $yyval->token[$property] = $tokens[$len][1];
- } else {
- $yyval->token = new stdClass;
- $yyval->token->$property = $tokens[$len][1];
- }
- break;
- case 17:
- if ($this->flags & self::PARSE_TO_ASSOC) {
- $yyval->token =& $tokens[$len-2];
- $key = $tokens[$len][0];
- if (($this->flags & self::DETECT_KEY_CONFLICTS) && isset($tokens[$len-2][$key])) {
- $errStr = 'Parse error on line ' . ($yylineno+1) . ":\n";
- $errStr .= $this->lexer->showPosition() . "\n";
- $errStr .= "Duplicate key: ".$tokens[$len][0];
- throw new DuplicateKeyException($errStr, $tokens[$len][0], array('line' => $yylineno+1));
- } elseif (($this->flags & self::ALLOW_DUPLICATE_KEYS) && isset($tokens[$len-2][$key])) {
- $duplicateCount = 1;
- do {
- $duplicateKey = $key . '.' . $duplicateCount++;
- } while (isset($tokens[$len-2][$duplicateKey]));
- $key = $duplicateKey;
- }
- $tokens[$len-2][$key] = $tokens[$len][1];
- } else {
- $yyval->token = $tokens[$len-2];
- if (PHP_VERSION_ID < 70100) {
- $key = $tokens[$len][0] === '' ? '_empty_' : $tokens[$len][0];
- } else {
- $key = $tokens[$len][0];
- }
- if (($this->flags & self::DETECT_KEY_CONFLICTS) && isset($tokens[$len-2]->{$key})) {
- $errStr = 'Parse error on line ' . ($yylineno+1) . ":\n";
- $errStr .= $this->lexer->showPosition() . "\n";
- $errStr .= "Duplicate key: ".$tokens[$len][0];
- throw new DuplicateKeyException($errStr, $tokens[$len][0], array('line' => $yylineno+1));
- } elseif (($this->flags & self::ALLOW_DUPLICATE_KEYS) && isset($tokens[$len-2]->{$key})) {
- $duplicateCount = 1;
- do {
- $duplicateKey = $key . '.' . $duplicateCount++;
- } while (isset($tokens[$len-2]->$duplicateKey));
- $key = $duplicateKey;
- }
- $tokens[$len-2]->$key = $tokens[$len][1];
- }
- break;
- case 18:
- $yyval->token = array();
- break;
- case 19:
- $yyval->token = $tokens[$len-1];
- break;
- case 20:
- $yyval->token = array($tokens[$len]);
- break;
- case 21:
- $tokens[$len-2][] = $tokens[$len];
- $yyval->token = $tokens[$len-2];
- break;
- }
-
- return new Undefined();
- }
-
- private function stringInterpolation($match)
- {
- switch ($match[0]) {
- case '\\\\':
- return '\\';
- case '\"':
- return '"';
- case '\b':
- return chr(8);
- case '\f':
- return chr(12);
- case '\n':
- return "\n";
- case '\r':
- return "\r";
- case '\t':
- return "\t";
- case '\/':
- return "/";
- default:
- return html_entity_decode('&#x'.ltrim(substr($match[0], 2), '0').';', 0, 'UTF-8');
- }
- }
-
- private function popStack($n)
- {
- $this->stack = array_slice($this->stack, 0, - (2 * $n));
- $this->vstack = array_slice($this->vstack, 0, - $n);
- $this->lstack = array_slice($this->lstack, 0, - $n);
- }
-
- private function lex()
- {
- $token = $this->lexer->lex() ?: 1; // $end = 1
- // if token isn't its numeric value, convert
- if (!is_numeric($token)) {
- $token = isset($this->symbols[$token]) ? $this->symbols[$token] : $token;
- }
-
- return $token;
- }
-
- private function failOnBOM($input)
- {
- // UTF-8 ByteOrderMark sequence
- $bom = "\xEF\xBB\xBF";
-
- if (substr($input, 0, 3) === $bom) {
- $this->parseError("BOM detected, make sure your input does not include a Unicode Byte-Order-Mark", array());
- }
- }
-}
diff --git a/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php b/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php
deleted file mode 100644
index 545430b4..00000000
--- a/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php
+++ /dev/null
@@ -1,217 +0,0 @@
-<?php
-
-/*
- * This file is part of the JSON Lint package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Seld\JsonLint;
-
-/**
- * Lexer class
- *
- * Ported from https://github.com/zaach/jsonlint
- */
-class Lexer
-{
- private $EOF = 1;
- private $rules = array(
- 0 => '/^\s+/',
- 1 => '/^-?([0-9]|[1-9][0-9]+)(\.[0-9]+)?([eE][+-]?[0-9]+)?\b/',
- 2 => '{^"(?>\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^\0-\x1f\\\\"]++)*+"}',
- 3 => '/^\{/',
- 4 => '/^\}/',
- 5 => '/^\[/',
- 6 => '/^\]/',
- 7 => '/^,/',
- 8 => '/^:/',
- 9 => '/^true\b/',
- 10 => '/^false\b/',
- 11 => '/^null\b/',
- 12 => '/^$/',
- 13 => '/^./',
- );
-
- private $conditions = array(
- "INITIAL" => array(
- "rules" => array(0,1,2,3,4,5,6,7,8,9,10,11,12,13),
- "inclusive" => true,
- ),
- );
-
- private $conditionStack;
- private $input;
- private $more;
- private $done;
- private $matched;
-
- public $match;
- public $yylineno;
- public $yyleng;
- public $yytext;
- public $yylloc;
-
- public function lex()
- {
- $r = $this->next();
- if (!$r instanceof Undefined) {
- return $r;
- }
-
- return $this->lex();
- }
-
- public function setInput($input)
- {
- $this->input = $input;
- $this->more = false;
- $this->done = false;
- $this->yylineno = $this->yyleng = 0;
- $this->yytext = $this->matched = $this->match = '';
- $this->conditionStack = array('INITIAL');
- $this->yylloc = array('first_line' => 1, 'first_column' => 0, 'last_line' => 1, 'last_column' => 0);
-
- return $this;
- }
-
- public function showPosition()
- {
- $pre = str_replace("\n", '', $this->getPastInput());
- $c = str_repeat('-', max(0, strlen($pre) - 1)); // new Array(pre.length + 1).join("-");
-
- return $pre . str_replace("\n", '', $this->getUpcomingInput()) . "\n" . $c . "^";
- }
-
- public function getPastInput()
- {
- $past = substr($this->matched, 0, strlen($this->matched) - strlen($this->match));
-
- return (strlen($past) > 20 ? '...' : '') . substr($past, -20);
- }
-
- public function getUpcomingInput()
- {
- $next = $this->match;
- if (strlen($next) < 20) {
- $next .= substr($this->input, 0, 20 - strlen($next));
- }
-
- return substr($next, 0, 20) . (strlen($next) > 20 ? '...' : '');
- }
-
- protected function parseError($str, $hash)
- {
- throw new \Exception($str);
- }
-
- private function next()
- {
- if ($this->done) {
- return $this->EOF;
- }
- if ($this->input === '') {
- $this->done = true;
- }
-
- $token = null;
- $match = null;
- $col = null;
- $lines = null;
-
- if (!$this->more) {
- $this->yytext = '';
- $this->match = '';
- }
-
- $rules = $this->getCurrentRules();
- $rulesLen = count($rules);
-
- for ($i=0; $i < $rulesLen; $i++) {
- if (preg_match($this->rules[$rules[$i]], $this->input, $match)) {
- preg_match_all('/\n.*/', $match[0], $lines);
- $lines = $lines[0];
- if ($lines) {
- $this->yylineno += count($lines);
- }
-
- $this->yylloc = array(
- 'first_line' => $this->yylloc['last_line'],
- 'last_line' => $this->yylineno+1,
- 'first_column' => $this->yylloc['last_column'],
- 'last_column' => $lines ? strlen($lines[count($lines) - 1]) - 1 : $this->yylloc['last_column'] + strlen($match[0]),
- );
- $this->yytext .= $match[0];
- $this->match .= $match[0];
- $this->yyleng = strlen($this->yytext);
- $this->more = false;
- $this->input = substr($this->input, strlen($match[0]));
- $this->matched .= $match[0];
- $token = $this->performAction($rules[$i], $this->conditionStack[count($this->conditionStack)-1]);
- if ($token) {
- return $token;
- }
-
- return new Undefined();
- }
- }
-
- if ($this->input === "") {
- return $this->EOF;
- }
-
- $this->parseError(
- 'Lexical error on line ' . ($this->yylineno+1) . ". Unrecognized text.\n" . $this->showPosition(),
- array(
- 'text' => "",
- 'token' => null,
- 'line' => $this->yylineno,
- )
- );
- }
-
- private function getCurrentRules()
- {
- return $this->conditions[$this->conditionStack[count($this->conditionStack)-1]]['rules'];
- }
-
- private function performAction($avoiding_name_collisions, $YY_START)
- {
- switch ($avoiding_name_collisions) {
- case 0:/* skip whitespace */
- break;
- case 1:
- return 6;
- break;
- case 2:
- $this->yytext = substr($this->yytext, 1, $this->yyleng-2);
-
- return 4;
- case 3:
- return 17;
- case 4:
- return 18;
- case 5:
- return 23;
- case 6:
- return 24;
- case 7:
- return 22;
- case 8:
- return 21;
- case 9:
- return 10;
- case 10:
- return 11;
- case 11:
- return 8;
- case 12:
- return 14;
- case 13:
- return 'INVALID';
- }
- }
-}
diff --git a/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/ParsingException.php b/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/ParsingException.php
deleted file mode 100644
index 6562ef5e..00000000
--- a/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/ParsingException.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-/*
- * This file is part of the JSON Lint package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Seld\JsonLint;
-
-class ParsingException extends \Exception
-{
- protected $details;
-
- public function __construct($message, $details = array())
- {
- $this->details = $details;
- parent::__construct($message);
- }
-
- public function getDetails()
- {
- return $this->details;
- }
-}
diff --git a/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/Undefined.php b/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/Undefined.php
deleted file mode 100644
index e83d5be6..00000000
--- a/www/wiki/vendor/seld/jsonlint/src/Seld/JsonLint/Undefined.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-/*
- * This file is part of the JSON Lint package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Seld\JsonLint;
-
-class Undefined
-{
-}
diff --git a/www/wiki/vendor/seld/jsonlint/tests/JsonParserTest.php b/www/wiki/vendor/seld/jsonlint/tests/JsonParserTest.php
deleted file mode 100644
index 2788ce43..00000000
--- a/www/wiki/vendor/seld/jsonlint/tests/JsonParserTest.php
+++ /dev/null
@@ -1,230 +0,0 @@
-<?php
-
-/*
- * This file is part of the JSON Lint package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use PHPUnit\Framework\TestCase;
-use Seld\JsonLint\JsonParser;
-use Seld\JsonLint\ParsingException;
-use Seld\JsonLint\DuplicateKeyException;
-
-class JsonParserTest extends TestCase
-{
- protected $json = array(
- '42', '42.3', '0.3', '-42', '-42.3', '-0.3',
- '2e1', '2E1', '-2e1', '-2E1', '2E+2', '2E-2', '-2E+2', '-2E-2',
- 'true', 'false', 'null', '""', '[]', '{}', '"string"',
- '["a", "sdfsd"]',
- '{"foo":"bar", "bar":"baz", "":"buz"}',
- '{"":"foo", "_empty_":"bar"}',
- '"\u00c9v\u00e9nement"',
- '"http:\/\/foo.com"',
- '"zo\\\\mg"',
- '{"test":"\u00c9v\u00e9nement"}',
- '["\u00c9v\u00e9nement"]',
- '"foo/bar"',
- '{"test":"http:\/\/foo\\\\zomg"}',
- '["http:\/\/foo\\\\zomg"]',
- '{"":"foo"}',
- '{"a":"b", "b":"c"}',
- '0',
- '""',
- );
-
- /**
- * @dataProvider provideValidStrings
- */
- public function testParsesValidStrings($input)
- {
- $parser = new JsonParser();
- $this->assertEquals(json_decode($input), $parser->parse($input));
- }
-
- public function provideValidStrings()
- {
- $strings = array();
- foreach ($this->json as $input) {
- $strings[] = array($input);
- }
-
- return $strings;
- }
-
- public function testErrorOnTrailingComma()
- {
- $parser = new JsonParser();
- try {
- $parser->parse('{
- "foo":"bar",
-}');
- $this->fail('Invalid trailing comma should be detected');
- } catch (ParsingException $e) {
- $this->assertContains('It appears you have an extra trailing comma', $e->getMessage());
- }
- }
-
- public function testErrorOnInvalidQuotes()
- {
- $parser = new JsonParser();
- try {
- $parser->parse('{
- "foo": \'bar\',
-}');
- $this->fail('Invalid quotes for string should be detected');
- } catch (ParsingException $e) {
- $this->assertContains('Invalid string, it appears you used single quotes instead of double quotes', $e->getMessage());
- }
- }
-
- public function testErrorOnUnescapedBackslash()
- {
- $parser = new JsonParser();
- try {
- $parser->parse('{
- "foo": "bar\z",
-}');
- $this->fail('Invalid unescaped string should be detected');
- } catch (ParsingException $e) {
- $this->assertContains('Invalid string, it appears you have an unescaped backslash at: \z', $e->getMessage());
- }
- }
-
- public function testErrorOnUnterminatedString()
- {
- $parser = new JsonParser();
- try {
- $parser->parse('{"bar": "foo}');
- $this->fail('Invalid unterminated string should be detected');
- } catch (ParsingException $e) {
- $this->assertContains('Invalid string, it appears you forgot to terminate a string, or attempted to write a multiline string which is invalid', $e->getMessage());
- }
- }
-
- public function testErrorOnMultilineString()
- {
- $parser = new JsonParser();
- try {
- $parser->parse('{"bar": "foo
-bar"}');
- $this->fail('Invalid multi-line string should be detected');
- } catch (ParsingException $e) {
- $this->assertContains('Invalid string, it appears you forgot to terminate a string, or attempted to write a multiline string which is invalid', $e->getMessage());
- }
- }
-
- public function testErrorAtBeginning()
- {
- $parser = new JsonParser();
- try {
- $parser->parse('
-
-');
- $this->fail('Empty string should be invalid');
- } catch (ParsingException $e) {
- $this->assertContains("Parse error on line 1:\n\n^", $e->getMessage());
- }
- }
-
- public function testParsesMultiInARow()
- {
- $parser = new JsonParser();
- foreach ($this->json as $input) {
- $this->assertEquals(json_decode($input), $parser->parse($input));
- }
- }
-
- public function testDetectsKeyOverrides()
- {
- $parser = new JsonParser();
-
- try {
- $parser->parse('{"a":"b", "a":"c"}', JsonParser::DETECT_KEY_CONFLICTS);
- $this->fail('Duplicate keys should not be allowed');
- } catch (DuplicateKeyException $e) {
- $this->assertContains('Duplicate key: a', $e->getMessage());
- $this->assertSame('a', $e->getKey());
- $this->assertSame(array('line' => 1, 'key' => 'a'), $e->getDetails());
- }
- }
-
- public function testDetectsKeyOverridesWithEmpty()
- {
- $parser = new JsonParser();
-
- if (PHP_VERSION_ID >= 70100) {
- $this->markTestSkipped('Only for PHP < 7.1');
- }
- try {
- $parser->parse('{"":"b", "_empty_":"a"}', JsonParser::DETECT_KEY_CONFLICTS);
- $this->fail('Duplicate keys should not be allowed');
- } catch (DuplicateKeyException $e) {
- $this->assertContains('Duplicate key: _empty_', $e->getMessage());
- $this->assertSame('_empty_', $e->getKey());
- $this->assertSame(array('line' => 1, 'key' => '_empty_'), $e->getDetails());
- }
- }
-
- public function testDuplicateKeys()
- {
- $parser = new JsonParser();
-
- $result = $parser->parse('{"a":"b", "a":"c", "a":"d"}', JsonParser::ALLOW_DUPLICATE_KEYS);
- $this->assertThat($result,
- $this->logicalAnd(
- $this->objectHasAttribute('a'),
- $this->objectHasAttribute('a.1'),
- $this->objectHasAttribute('a.2')
- )
- );
- }
-
- public function testDuplicateKeysWithEmpty()
- {
- $parser = new JsonParser();
-
- if (PHP_VERSION_ID >= 70100) {
- $this->markTestSkipped('Only for PHP < 7.1');
- }
- $result = $parser->parse('{"":"a", "_empty_":"b"}', JsonParser::ALLOW_DUPLICATE_KEYS);
- $this->assertThat($result,
- $this->logicalAnd(
- $this->objectHasAttribute('_empty_'),
- $this->objectHasAttribute('_empty_.1')
- )
- );
- }
-
- public function testParseToArray()
- {
- $parser = new JsonParser();
-
- $json = '{"one":"a", "two":{"three": "four"}, "": "empty"}';
- $result = $parser->parse($json, JsonParser::PARSE_TO_ASSOC);
- $this->assertSame(json_decode($json, true), $result);
- }
-
- public function testFileWithBOM()
- {
- try {
- $parser = new JsonParser();
- $parser->parse(file_get_contents(dirname(__FILE__) .'/bom.json'));
- $this->fail('BOM should be detected');
- } catch (ParsingException $e) {
- $this->assertContains('BOM detected', $e->getMessage());
- }
- }
-
- public function testLongString()
- {
- $parser = new JsonParser();
-
- $json = '{"k":"' . str_repeat("a\\n",10000) . '"}';
- $this->assertEquals(json_decode($json), $parser->parse($json));
- }
-}
diff --git a/www/wiki/vendor/seld/jsonlint/tests/bom.json b/www/wiki/vendor/seld/jsonlint/tests/bom.json
deleted file mode 100644
index 03211990..00000000
--- a/www/wiki/vendor/seld/jsonlint/tests/bom.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "name": "staabm/xhprof.io",
- "autoload": {
- "classmap": ["xhprof/classes"]
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/seld/jsonlint/tests/bootstrap.php b/www/wiki/vendor/seld/jsonlint/tests/bootstrap.php
deleted file mode 100644
index 2702d6f8..00000000
--- a/www/wiki/vendor/seld/jsonlint/tests/bootstrap.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-/*
- * This file is part of the JSON Lint package.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-$loader = require __DIR__.'/../vendor/autoload.php';
-$loader->add('Seld\JsonLint\Test', __DIR__);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/.gitattributes b/www/wiki/vendor/squizlabs/php_codesniffer/.gitattributes
deleted file mode 100644
index 56dcc5dc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/.gitattributes
+++ /dev/null
@@ -1,5 +0,0 @@
-.travis.yml export-ignore
-package.xml export-ignore
-phpunit.xml.dist export-ignore
-php5-testingConfig.ini export-ignore
-php7-testingConfig.ini export-ignore
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/.gitignore b/www/wiki/vendor/squizlabs/php_codesniffer/.gitignore
deleted file mode 100644
index 99658952..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-/CodeSniffer.conf
-/phpcs.xml
-/phpunit.xml
-.idea/*
-/vendor/
-composer.lock
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/CONTRIBUTING.md b/www/wiki/vendor/squizlabs/php_codesniffer/CONTRIBUTING.md
deleted file mode 100644
index 22e3872e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/CONTRIBUTING.md
+++ /dev/null
@@ -1,13 +0,0 @@
-Contributing
--------------
-
-Before you contribute code to PHP\_CodeSniffer, please make sure it conforms to the PHPCS coding standard and that the PHP\_CodeSniffer unit tests still pass. The easiest way to contribute is to work on a checkout of the repository, or your own fork, rather than an installed PEAR version. If you do this, you can run the following commands to check if everything is ready to submit:
-
- cd PHP_CodeSniffer
- php scripts/phpcs
-
-Which should give you no output, indicating that there are no coding standard errors. And then:
-
- phpunit
-
-Which should give you no failures or errors. You can ignore any skipped tests as these are for external tools. \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/CodeSniffer.conf.dist b/www/wiki/vendor/squizlabs/php_codesniffer/CodeSniffer.conf.dist
deleted file mode 100644
index 62dc395c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/CodeSniffer.conf.dist
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
- $phpCodeSnifferConfig = array (
- 'default_standard' => 'PSR2',
- 'report_format' => 'summary',
- 'show_warnings' => '0',
- 'show_progress' => '1',
- 'report_width' => '120',
-)
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/README.md b/www/wiki/vendor/squizlabs/php_codesniffer/README.md
deleted file mode 100644
index d2288a52..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/README.md
+++ /dev/null
@@ -1,71 +0,0 @@
-About
------
-
-PHP\_CodeSniffer is a set of two PHP scripts; the main `phpcs` script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second `phpcbf` script to automatically correct coding standard violations. PHP\_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.
-
-[![Build Status](https://travis-ci.org/squizlabs/PHP_CodeSniffer.svg?branch=phpcs-fixer)](https://travis-ci.org/squizlabs/PHP_CodeSniffer) [![Code consistency](http://squizlabs.github.io/PHP_CodeSniffer/analysis/squizlabs/PHP_CodeSniffer/grade.svg)](http://squizlabs.github.io/PHP_CodeSniffer/analysis/squizlabs/PHP_CodeSniffer)
-
-[![Join the chat at https://gitter.im/squizlabs/PHP_CodeSniffer](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/squizlabs/PHP_CodeSniffer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-
-Requirements
-------------
-
-PHP\_CodeSniffer requires PHP version 5.4.0 or greater, although individual sniffs may have additional requirements such as external applications and scripts. See the [Configuration Options manual page](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Configuration-Options) for a list of these requirements.
-
-Installation
-------------
-
-The easiest way to get started with PHP\_CodeSniffer is to download the [Phar](http://php.net/manual/en/intro.phar.php) files for each of the commands:
-
- curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
- php phpcs.phar -h
-
- curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar
- php phpcbf.phar -h
-
-If you use PEAR, you can install PHP\_CodeSniffer using the PEAR installer. This will make the `phpcs` and `phpcbf` commands immediately available for use. To install PHP\_CodeSniffer using the PEAR installer, first ensure you have [installed PEAR](http://pear.php.net/manual/en/installation.getting.php) and then run the following command:
-
- pear install PHP_CodeSniffer
-
-If you prefer using [Composer](http://getcomposer.org/) you can easily install PHP_CodeSniffer system-wide with the following command:
-
- composer global require "squizlabs/php_codesniffer=*"
-
-Make sure you have the composer bin dir in your PATH. The default value is `~/.composer/vendor/bin/`, but you can check the value that you need to use by running `composer global config bin-dir --absolute`.
-
-Or alternatively, include a dependency for `squizlabs/php_codesniffer` in your `composer.json` file. For example:
-
-```json
-{
- "require-dev": {
- "squizlabs/php_codesniffer": "3.*"
- }
-}
-```
-
-You will then be able to run PHP_CodeSniffer from the vendor bin directory:
-
- ./vendor/bin/phpcs -h
- ./vendor/bin/phpcbf -h
-
-You can also download the PHP\_CodeSniffer source and run the `phpcs` and `phpcbf` commands directly from the Git clone:
-
- git clone https://github.com/squizlabs/PHP_CodeSniffer.git
- cd PHP_CodeSniffer
- php bin/phpcs -h
- php bin/phpcbf -h
-
-Documentation
--------------
-
-The documentation for PHP\_CodeSniffer is available on the [Github wiki](https://github.com/squizlabs/PHP_CodeSniffer/wiki).
-
-Issues
-------
-
-Bug reports and feature requests can be submitted on the [Github Issue Tracker](https://github.com/squizlabs/PHP_CodeSniffer/issues).
-
-Contributing
--------------
-
-See [CONTRIBUTING.md](CONTRIBUTING.md) for information.
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/autoload.php b/www/wiki/vendor/squizlabs/php_codesniffer/autoload.php
deleted file mode 100644
index f918a1b9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/autoload.php
+++ /dev/null
@@ -1,288 +0,0 @@
-<?php
-/**
- * Autoloads files for PHP_CodeSniffer and tracks what has been loaded.
- *
- * Due to different namespaces being used for custom coding standards,
- * the autoloader keeps track of what class is loaded after a file is included,
- * even if the file is ultimately included by another autoloader (such as composer).
- *
- * This allows PHP_CodeSniffer to request the class name after loading a class
- * when it only knows the filename, without having to parse the file to find it.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer;
-
-if (class_exists('PHP_CodeSniffer\Autoload', false) === false) {
- class Autoload
- {
-
- /**
- * The composer autoloader.
- *
- * @var Composer\Autoload\ClassLoader
- */
- private static $composerAutoloader = null;
-
- /**
- * A mapping of file names to class names.
- *
- * @var array<string, string>
- */
- private static $loadedClasses = array();
-
- /**
- * A mapping of class names to file names.
- *
- * @var array<string, string>
- */
- private static $loadedFiles = array();
-
- /**
- * A list of additional directories to search during autoloading.
- *
- * This is typically a list of coding standard directories.
- *
- * @var string[]
- */
- private static $searchPaths = array();
-
-
- /**
- * Loads a class.
- *
- * This method only loads classes that exist in the PHP_CodeSniffer namespace.
- * All other classes are ignored and loaded by subsequent autoloaders.
- *
- * @param string $class The name of the class to load.
- *
- * @return bool
- */
- public static function load($class)
- {
- // Include the composer autoloader if there is one, but re-register it
- // so this autoloader runs before the composer one as we need to include
- // all files so we can figure out what the class/interface/trait name is.
- if (self::$composerAutoloader === null) {
- // Make sure we don't try to load any of Composer's classes
- // while the autoloader is being setup.
- if (strpos($class, 'Composer\\') === 0) {
- return;
- }
-
- if (strpos(__DIR__, 'phar://') !== 0
- && file_exists(__DIR__.'/../../autoload.php') === true
- ) {
- self::$composerAutoloader = include __DIR__.'/../../autoload.php';
- if (self::$composerAutoloader instanceof \Composer\Autoload\ClassLoader) {
- self::$composerAutoloader->unregister();
- self::$composerAutoloader->register();
- } else {
- // Something went wrong, so keep going without the autoloader
- // although namespaced sniffs might error.
- self::$composerAutoloader = false;
- }
- } else {
- self::$composerAutoloader = false;
- }
- }//end if
-
- $ds = DIRECTORY_SEPARATOR;
- $path = false;
-
- if (substr($class, 0, 16) === 'PHP_CodeSniffer\\') {
- if (substr($class, 0, 22) === 'PHP_CodeSniffer\Tests\\') {
- $isInstalled = !is_dir(__DIR__.$ds.'tests');
- if ($isInstalled === false) {
- $path = __DIR__.$ds.'tests';
- } else {
- $path = '@test_dir@'.$ds.'PHP_CodeSniffer'.$ds.'CodeSniffer';
- }
-
- $path .= $ds.substr(str_replace('\\', $ds, $class), 22).'.php';
- } else {
- $path = __DIR__.$ds.'src'.$ds.substr(str_replace('\\', $ds, $class), 16).'.php';
- }
- }
-
- // See if the composer autoloader knows where the class is.
- if ($path === false && self::$composerAutoloader !== false) {
- $path = self::$composerAutoloader->findFile($class);
- }
-
- // See if the class is inside one of our alternate search paths.
- if ($path === false) {
- foreach (self::$searchPaths as $searchPath => $nsPrefix) {
- $className = $class;
- if ($nsPrefix !== '' && substr($class, 0, strlen($nsPrefix)) === $nsPrefix) {
- $className = substr($class, (strlen($nsPrefix) + 1));
- }
-
- $path = $searchPath.$ds.str_replace('\\', $ds, $className).'.php';
- if (is_file($path) === true) {
- break;
- }
-
- $path = false;
- }
- }
-
- if ($path !== false && is_file($path) === true) {
- self::loadFile($path);
- return true;
- }
-
- return false;
-
- }//end load()
-
-
- /**
- * Includes a file and tracks what class or interface was loaded as a result.
- *
- * @param string $path The path of the file to load.
- *
- * @return string The fully qualified name of the class in the loaded file.
- */
- public static function loadFile($path)
- {
- if (strpos(__DIR__, 'phar://') !== 0) {
- $path = realpath($path);
- if ($path === false) {
- return false;
- }
- }
-
- if (isset(self::$loadedClasses[$path]) === true) {
- return self::$loadedClasses[$path];
- }
-
- $classes = get_declared_classes();
- $interfaces = get_declared_interfaces();
- $traits = get_declared_traits();
-
- include $path;
-
- $className = null;
- $newClasses = array_reverse(array_diff(get_declared_classes(), $classes));
- foreach ($newClasses as $name) {
- if (isset(self::$loadedFiles[$name]) === false) {
- $className = $name;
- break;
- }
- }
-
- if ($className === null) {
- $newClasses = array_reverse(array_diff(get_declared_interfaces(), $interfaces));
- foreach ($newClasses as $name) {
- if (isset(self::$loadedFiles[$name]) === false) {
- $className = $name;
- break;
- }
- }
- }
-
- if ($className === null) {
- $newClasses = array_reverse(array_diff(get_declared_traits(), $traits));
- foreach ($newClasses as $name) {
- if (isset(self::$loadedFiles[$name]) === false) {
- $className = $name;
- break;
- }
- }
- }
-
- self::$loadedClasses[$path] = $className;
- self::$loadedFiles[$className] = $path;
- return self::$loadedClasses[$path];
-
- }//end loadFile()
-
-
- /**
- * Adds a directory to search during autoloading.
- *
- * @param string $path The path to the directory to search.
- * @param string $nsPrefix The namespace prefix used by files under this path.
- *
- * @return void
- */
- public static function addSearchPath($path, $nsPrefix='')
- {
- self::$searchPaths[$path] = rtrim(trim((string) $nsPrefix), '\\');
-
- }//end addSearchPath()
-
-
- /**
- * Gets the class name for the given file path.
- *
- * @param string $path The name of the file.
- *
- * @throws \Exception If the file path has not been loaded.
- * @return string
- */
- public static function getLoadedClassName($path)
- {
- if (isset(self::$loadedClasses[$path]) === false) {
- throw new \Exception("Cannot get class name for $path; file has not been included");
- }
-
- return self::$loadedClasses[$path];
-
- }//end getLoadedClassName()
-
-
- /**
- * Gets the file path for the given class name.
- *
- * @param string $class The name of the class.
- *
- * @throws \Exception If the class name has not been loaded
- * @return string
- */
- public static function getLoadedFileName($class)
- {
- if (isset(self::$loadedFiles[$class]) === false) {
- throw new \Exception("Cannot get file name for $class; class has not been included");
- }
-
- return self::$loadedFiles[$class];
-
- }//end getLoadedFileName()
-
-
- /**
- * Gets the mapping of file names to class names.
- *
- * @return array<string, string>
- */
- public static function getLoadedClasses()
- {
- return self::$loadedClasses;
-
- }//end getLoadedClasses()
-
-
- /**
- * Gets the mapping of class names to file names.
- *
- * @return array<string, string>
- */
- public static function getLoadedFiles()
- {
- return self::$loadedFiles;
-
- }//end getLoadedFiles()
-
-
- }//end class
-
- // Register the autoloader before any existing autoloaders to ensure
- // it gets a chance to hear about every autoload request, and record
- // the file and class name for it.
- spl_autoload_register(__NAMESPACE__.'\Autoload::load', true, true);
-}//end if
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcbf b/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcbf
deleted file mode 100755
index 45b43f43..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcbf
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env php
-<?php
-/**
- * PHP Code Beautifier and Fixer fixes violations of a defined coding standard.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-if (is_file(__DIR__.'/../autoload.php') === true) {
- include_once __DIR__.'/../autoload.php';
-} else {
- include_once 'PHP/CodeSniffer/autoload.php';
-}
-
-$runner = new PHP_CodeSniffer\Runner();
-$exitCode = $runner->runPHPCBF();
-exit($exitCode);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat b/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
deleted file mode 100644
index d2d05929..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
+++ /dev/null
@@ -1,14 +0,0 @@
-@echo off
-REM PHP Code Beautifier and Fixer fixes violations of a defined coding standard.
-REM
-REM @author Greg Sherwood <gsherwood@squiz.net>
-REM @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
-REM @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
-
-if "%PHPBIN%" == "" set PHPBIN=@php_bin@
-if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH
-GOTO RUN
-:USE_PEAR_PATH
-set PHPBIN=%PHP_PEAR_PHP_BIN%
-:RUN
-"%PHPBIN%" "@bin_dir@\phpcbf" %*
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcs b/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcs
deleted file mode 100755
index 52d28cdf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcs
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env php
-<?php
-/**
- * PHP_CodeSniffer detects violations of a defined coding standard.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-if (is_file(__DIR__.'/../autoload.php') === true) {
- include_once __DIR__.'/../autoload.php';
-} else {
- include_once 'PHP/CodeSniffer/autoload.php';
-}
-
-$runner = new PHP_CodeSniffer\Runner();
-$exitCode = $runner->runPHPCS();
-exit($exitCode);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcs.bat b/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
deleted file mode 100755
index a8442e0b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
+++ /dev/null
@@ -1,14 +0,0 @@
-@echo off
-REM PHP_CodeSniffer detects violations of a defined coding standard.
-REM
-REM @author Greg Sherwood <gsherwood@squiz.net>
-REM @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
-REM @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
-
-if "%PHPBIN%" == "" set PHPBIN=@php_bin@
-if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH
-GOTO RUN
-:USE_PEAR_PATH
-set PHPBIN=%PHP_PEAR_PHP_BIN%
-:RUN
-"%PHPBIN%" "@bin_dir@\phpcs" %*
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/composer.json b/www/wiki/vendor/squizlabs/php_codesniffer/composer.json
deleted file mode 100644
index 2382a3d4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/composer.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "name": "squizlabs/php_codesniffer",
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "type": "library",
- "keywords": [
- "phpcs",
- "standards"
- ],
- "homepage": "http://www.squizlabs.com/php-codesniffer",
- "license": "BSD-3-Clause",
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "lead"
- }
- ],
- "support": {
- "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
- "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki",
- "source": "https://github.com/squizlabs/PHP_CodeSniffer"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "require": {
- "php": ">=5.4.0",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "ext-simplexml": "*"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0"
- },
- "bin": [
- "bin/phpcs",
- "bin/phpcbf"
- ]
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/licence.txt b/www/wiki/vendor/squizlabs/php_codesniffer/licence.txt
deleted file mode 100644
index f95432c8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/licence.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-Copyright (c) 2012, Squiz Pty Ltd (ABN 77 084 670 600)
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- * Neither the name of Squiz Pty Ltd nor the
- names of its contributors may be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/phpcs.xml.dist b/www/wiki/vendor/squizlabs/php_codesniffer/phpcs.xml.dist
deleted file mode 100644
index 9c0a7fa6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/phpcs.xml.dist
+++ /dev/null
@@ -1,100 +0,0 @@
-<?xml version="1.0"?>
-<ruleset name="PHP_CodeSniffer">
- <description>The coding standard for PHP_CodeSniffer itself.</description>
-
- <file>autoload.php</file>
- <file>bin</file>
- <file>src</file>
- <file>tests</file>
-
- <exclude-pattern>*/Standards/*/Tests/*.(inc|css|js)</exclude-pattern>
-
- <arg name="basepath" value="."/>
- <arg name="colors" />
- <arg name="parallel" value="75" />
- <arg value="np"/>
-
- <!-- Don't hide tokenizer exceptions -->
- <rule ref="Internal.Tokenizer.Exception">
- <type>error</type>
- </rule>
-
- <!-- Include the whole PEAR standard -->
- <rule ref="PEAR">
- <exclude name="PEAR.NamingConventions.ValidFunctionName" />
- <exclude name="PEAR.NamingConventions.ValidVariableName" />
- <exclude name="PEAR.Commenting.ClassComment" />
- <exclude name="PEAR.Commenting.FileComment.MissingCategoryTag" />
- <exclude name="PEAR.Commenting.FileComment.MissingPackageTag" />
- <exclude name="PEAR.Commenting.FileComment.MissingLinkTag" />
- <exclude name="PEAR.Commenting.FileComment.MissingVersion" />
- </rule>
-
- <!-- Include some sniffs from other standards that don't conflict with PEAR -->
- <rule ref="Squiz.Arrays.ArrayBracketSpacing" />
- <rule ref="Squiz.Arrays.ArrayDeclaration" />
- <rule ref="Squiz.Commenting.ClosingDeclarationComment" />
- <rule ref="Squiz.ControlStructures.ControlSignature" />
- <rule ref="Squiz.ControlStructures.ElseIfDeclaration" />
- <rule ref="Squiz.Commenting.BlockComment" />
- <rule ref="Squiz.Commenting.DocCommentAlignment" />
- <rule ref="Squiz.Commenting.EmptyCatchComment" />
- <rule ref="Squiz.Commenting.InlineComment" />
- <rule ref="Squiz.Commenting.LongConditionClosingComment" />
- <rule ref="Squiz.Commenting.PostStatementComment" />
- <rule ref="Squiz.Commenting.VariableComment" />
- <rule ref="Squiz.Formatting.OperatorBracket" />
- <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing" />
- <rule ref="Squiz.Operators.ComparisonOperatorUsage" />
- <rule ref="Squiz.PHP.DisallowInlineIf" />
- <rule ref="Squiz.Strings.ConcatenationSpacing" />
- <rule ref="Squiz.WhiteSpace.ControlStructureSpacing" />
- <rule ref="Squiz.WhiteSpace.FunctionClosingBraceSpace" />
- <rule ref="Squiz.WhiteSpace.FunctionSpacing" />
- <rule ref="Squiz.WhiteSpace.OperatorSpacing" />
- <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
- <rule ref="Generic.Commenting.Todo"/>
- <rule ref="Generic.ControlStructures.InlineControlStructure"/>
- <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
- <rule ref="Generic.Formatting.SpaceAfterCast"/>
- <rule ref="Generic.NamingConventions.ConstructorName"/>
- <rule ref="Generic.PHP.DeprecatedFunctions"/>
- <rule ref="Generic.PHP.LowerCaseKeyword"/>
- <rule ref="Generic.Strings.UnnecessaryStringConcat"/>
- <rule ref="PSR2.Classes.PropertyDeclaration"/>
- <rule ref="PSR2.Methods.MethodDeclaration"/>
- <rule ref="PSR2.Files.EndFileNewline"/>
- <rule ref="Zend.Files.ClosingTag"/>
-
- <!-- Check var names, but we don't want leading underscores for private vars -->
- <rule ref="Squiz.NamingConventions.ValidVariableName" />
- <rule ref="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore">
- <severity>0</severity>
- </rule>
-
- <!-- Only one argument per line in multi-line function calls -->
- <rule ref="PEAR.Functions.FunctionCallSignature">
- <properties>
- <property name="allowMultipleArguments" value="false"/>
- </properties>
- </rule>
-
- <!-- Have 12 chars padding maximum and always show as errors -->
- <rule ref="Generic.Formatting.MultipleStatementAlignment">
- <properties>
- <property name="maxPadding" value="12"/>
- <property name="error" value="true"/>
- </properties>
- </rule>
-
- <!-- Private methods MUST not be prefixed with an underscore -->
- <rule ref="PSR2.Methods.MethodDeclaration.Underscore">
- <type>error</type>
- </rule>
-
- <!-- Private properties MUST not be prefixed with an underscore -->
- <rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
- <type>error</type>
- </rule>
-
-</ruleset>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/scripts/build-phar.php b/www/wiki/vendor/squizlabs/php_codesniffer/scripts/build-phar.php
deleted file mode 100644
index ee01c834..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/scripts/build-phar.php
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/usr/bin/env php
-<?php
-/**
- * Build a PHPCS phar.
- *
- * PHP version 5
- *
- * @category PHP
- * @package PHP_CodeSniffer
- * @author Benjamin Pearson <bpearson@squiz.com.au>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- * @link http://pear.php.net/package/PHP_CodeSniffer
- */
-
-error_reporting(E_ALL | E_STRICT);
-
-if (ini_get('phar.readonly') === '1') {
- echo 'Unable to build, phar.readonly in php.ini is set to read only.'.PHP_EOL;
- exit(1);
-}
-
-$scripts = array(
- 'phpcs',
- 'phpcbf',
- );
-
-foreach ($scripts as $script) {
- echo "Building $script phar".PHP_EOL;
-
- $pharName = $script.'.phar';
- $pharFile = getcwd().'/'.$pharName;
- echo "\t=> $pharFile".PHP_EOL;
- if (file_exists($pharFile) === true) {
- echo "\t** file exists, removing **".PHP_EOL;
- unlink($pharFile);
- }
-
- $phar = new Phar($pharFile, 0, $pharName);
-
- /*
- Add the files.
- */
-
- echo "\t=> adding files... ";
-
- $srcDir = realpath(__DIR__.'/../src');
- $srcDirLen = strlen($srcDir);
-
- $rdi = new \RecursiveDirectoryIterator($srcDir, \RecursiveDirectoryIterator::FOLLOW_SYMLINKS);
- $di = new \RecursiveIteratorIterator($rdi, 0, \RecursiveIteratorIterator::CATCH_GET_CHILD);
-
- foreach ($di as $file) {
- $filename = $file->getFilename();
-
- // Skip hidden files.
- if (substr($filename, 0, 1) === '.') {
- continue;
- }
-
- $fullpath = $file->getPathname();
- if (strpos($fullpath, '/Tests/') !== false) {
- continue;
- }
-
- $path = 'src'.substr($fullpath, $srcDirLen);
-
- $phar->addFromString($path, php_strip_whitespace($fullpath));
- }
-
- // Add autoloader.
- $phar->addFromString('autoload.php', php_strip_whitespace(realpath(__DIR__.'/../autoload.php')));
-
- // Add licence file.
- $phar->addFromString('licence.txt', php_strip_whitespace(realpath(__DIR__.'/../licence.txt')));
-
- echo 'done'.PHP_EOL;
-
- /*
- Add the stub.
- */
-
- echo "\t=> adding stub... ";
- $stub = '#!/usr/bin/env php'."\n";
- $stub .= '<?php'."\n";
- $stub .= 'Phar::mapPhar(\''.$pharName.'\');'."\n";
- $stub .= 'require_once "phar://'.$pharName.'/autoload.php";'."\n";
- $stub .= '$runner = new PHP_CodeSniffer\Runner();'."\n";
- $stub .= '$exitCode = $runner->run'.$script.'();'."\n";
- $stub .= 'exit($exitCode);'."\n";
- $stub .= '__HALT_COMPILER();';
- $phar->setStub($stub);
-
- echo 'done'.PHP_EOL;
-}//end foreach
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Config.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Config.php
deleted file mode 100644
index 52b0e647..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Config.php
+++ /dev/null
@@ -1,1641 +0,0 @@
-<?php
-/**
- * Stores the configuration used to run PHPCS and PHPCBF.
- *
- * Parses the command line to determine user supplied values
- * and provides functions to access data stored in config files.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer;
-
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-use PHP_CodeSniffer\Exceptions\DeepExitException;
-
-class Config
-{
-
- /**
- * The current version.
- *
- * @var string
- */
- const VERSION = '3.0.2';
-
- /**
- * Package stability; either stable, beta or alpha.
- *
- * @var string
- */
- const STABILITY = 'stable';
-
- /**
- * An array of settings that PHPCS and PHPCBF accept.
- *
- * This array is not meant to be accessed directly. Instead, use the settings
- * as if they are class member vars so the __get() and __set() magic methods
- * can be used to validate the values. For example, to set the verbosity level to
- * level 2, use $this->verbosity = 2; instead of accessing this property directly.
- *
- * The list of settings are:
- *
- * string[] files The files and directories to check.
- * string[] standards The standards being used for checking.
- * int verbosity How verbose the output should be.
- * 0: no unnecessary output
- * 1: basic output for files being checked
- * 2: ruleset and file parsing output
- * 3: sniff execution output
- * bool interactive Enable interactive checking mode.
- * bool parallel Check files in parallel.
- * bool cache Enable the use of the file cache.
- * bool cacheFile A file where the cache data should be written
- * bool colors Display colours in output.
- * bool explain Explain the coding standards.
- * bool local Process local files in directories only (no recursion).
- * bool showSources Show sniff source codes in report output.
- * bool showProgress Show basic progress information while running.
- * bool quiet Quiet mode; disables progress and verbose output.
- * bool annotations Process @codingStandard annotations.
- * int tabWidth How many spaces each tab is worth.
- * string encoding The encoding of the files being checked.
- * string[] sniffs The sniffs that should be used for checking.
- * If empty, all sniffs in the supplied standards will be used.
- * string[] exclude The sniffs that should be excluded from checking.
- * If empty, all sniffs in the supplied standards will be used.
- * string[] ignored Regular expressions used to ignore files and folders during checking.
- * string reportFile A file where the report output should be written.
- * string generator The documentation generator to use.
- * string filter The filter to use for the run.
- * string[] bootstrap One of more files to include before the run begins.
- * int reportWidth The maximum number of columns that reports should use for output.
- * Set to "auto" for have this value changed to the width of the terminal.
- * int errorSeverity The minimum severity an error must have to be displayed.
- * int warningSeverity The minimum severity a warning must have to be displayed.
- * bool recordErrors Record the content of error messages as well as error counts.
- * string suffix A suffix to add to fixed files.
- * string basepath A file system location to strip from the paths of files shown in reports.
- * bool stdin Read content from STDIN instead of supplied files.
- * string stdinContent Content passed directly to PHPCS on STDIN.
- * string stdinPath The path to use for content passed on STDIN.
- *
- * array<string, string> extensions File extensions that should be checked, and what tokenizer to use.
- * E.g., array('inc' => 'PHP');
- * array<string, string|null> reports The reports to use for printing output after the run.
- * The format of the array is:
- * array(
- * 'reportName1' => 'outputFile',
- * 'reportName2' => null,
- * );
- * If the array value is NULL, the report will be written to the screen.
- *
- * string[] unknown Any arguments gathered on the command line that are unknown to us.
- * E.g., using `phpcs -c` will give array('c');
- *
- * @var array<string, mixed>
- */
- private $settings = array(
- 'files' => null,
- 'standards' => null,
- 'verbosity' => null,
- 'interactive' => null,
- 'parallel' => null,
- 'cache' => null,
- 'cacheFile' => null,
- 'colors' => null,
- 'explain' => null,
- 'local' => null,
- 'showSources' => null,
- 'showProgress' => null,
- 'quiet' => null,
- 'annotations' => null,
- 'tabWidth' => null,
- 'encoding' => null,
- 'extensions' => null,
- 'sniffs' => null,
- 'exclude' => null,
- 'ignored' => null,
- 'reportFile' => null,
- 'generator' => null,
- 'filter' => null,
- 'bootstrap' => null,
- 'reports' => null,
- 'basepath' => null,
- 'reportWidth' => null,
- 'errorSeverity' => null,
- 'warningSeverity' => null,
- 'recordErrors' => null,
- 'suffix' => null,
- 'stdin' => null,
- 'stdinContent' => null,
- 'stdinPath' => null,
- 'unknown' => null,
- );
-
- /**
- * Whether or not to kill the process when an unknown command line arg is found.
- *
- * If FALSE, arguments that are not command line options or file/directory paths
- * will be ignored and execution will continue. These values will be stored in
- * $this->unknown.
- *
- * @var boolean
- */
- public $dieOnUnknownArg;
-
- /**
- * The current command line arguments we are processing.
- *
- * @var string[]
- */
- private $cliArgs = array();
-
- /**
- * Command line values that the user has supplied directly.
- *
- * @var array<string, TRUE>
- */
- private $overriddenDefaults = array();
-
- /**
- * Config file data that has been loaded for the run.
- *
- * @var array<string, string>
- */
- private static $configData = null;
-
- /**
- * Automatically discovered executable utility paths.
- *
- * @var array<string, string>
- */
- private static $executablePaths = array();
-
-
- /**
- * Get the value of an inaccessible property.
- *
- * @param string $name The name of the property.
- *
- * @return mixed
- * @throws RuntimeException If the setting name is invalid.
- */
- public function __get($name)
- {
- if (array_key_exists($name, $this->settings) === false) {
- throw new RuntimeException("ERROR: unable to get value of property \"$name\"");
- }
-
- return $this->settings[$name];
-
- }//end __get()
-
-
- /**
- * Set the value of an inaccessible property.
- *
- * @param string $name The name of the property.
- * @param mixed $value The value of the property.
- *
- * @return void
- * @throws RuntimeException If the setting name is invalid.
- */
- public function __set($name, $value)
- {
- if (array_key_exists($name, $this->settings) === false) {
- throw new RuntimeException("Can't __set() $name; setting doesn't exist");
- }
-
- switch ($name) {
- case 'reportWidth' :
- // Support auto terminal width.
- if ($value === 'auto' && preg_match('|\d+ (\d+)|', shell_exec('stty size 2>&1'), $matches) === 1) {
- $value = (int) $matches[1];
- } else {
- $value = (int) $value;
- }
- break;
- case 'standards' :
- $cleaned = array();
-
- // Check if the standard name is valid, or if the case is invalid.
- $installedStandards = Util\Standards::getInstalledStandards();
- foreach ($value as $standard) {
- foreach ($installedStandards as $validStandard) {
- if (strtolower($standard) === strtolower($validStandard)) {
- $standard = $validStandard;
- break;
- }
- }
-
- $cleaned[] = $standard;
- }
-
- $value = $cleaned;
- break;
- default :
- // No validation required.
- break;
- }//end switch
-
- $this->settings[$name] = $value;
-
- }//end __set()
-
-
- /**
- * Check if the value of an inaccessible property is set.
- *
- * @param string $name The name of the property.
- *
- * @return bool
- */
- public function __isset($name)
- {
- return isset($this->settings[$name]);
-
- }//end __isset()
-
-
- /**
- * Unset the value of an inaccessible property.
- *
- * @param string $name The name of the property.
- *
- * @return void
- */
- public function __unset($name)
- {
- $this->settings[$name] = null;
-
- }//end __unset()
-
-
- /**
- * Get the array of all config settings.
- *
- * @return array<string, mixed>
- */
- public function getSettings()
- {
- return $this->settings;
-
- }//end getSettings()
-
-
- /**
- * Set the array of all config settings.
- *
- * @param array<string, mixed> $settings The array of config settings.
- *
- * @return void
- */
- public function setSettings($settings)
- {
- return $this->settings = $settings;
-
- }//end setSettings()
-
-
- /**
- * Creates a Config object and populates it with command line values.
- *
- * @param array $cliArgs An array of values gathered from CLI args.
- * @param bool $dieOnUnknownArg Whether or not to kill the process when an
- * unknown command line arg is found.
- *
- * @return void
- */
- public function __construct(array $cliArgs=array(), $dieOnUnknownArg=true)
- {
- if (defined('PHP_CODESNIFFER_IN_TESTS') === true) {
- // Let everything through during testing so that we can
- // make use of PHPUnit command line arguments as well.
- $this->dieOnUnknownArg = false;
- } else {
- $this->dieOnUnknownArg = $dieOnUnknownArg;
- }
-
- $checkStdin = false;
- if (empty($cliArgs) === true) {
- $cliArgs = $_SERVER['argv'];
- array_shift($cliArgs);
- $checkStdin = true;
- }
-
- $this->restoreDefaults();
- $this->setCommandLineValues($cliArgs);
-
- if (isset($this->overriddenDefaults['standards']) === false
- && Config::getConfigData('default_standard') === null
- ) {
- // They did not supply a standard to use.
- // Look for a default ruleset in the current directory or higher.
- $currentDir = getcwd();
-
- do {
- $default = $currentDir.DIRECTORY_SEPARATOR.'phpcs.xml';
- if (is_file($default) === true) {
- $this->standards = array($default);
- break;
- } else {
- $default = $currentDir.DIRECTORY_SEPARATOR.'phpcs.xml.dist';
- if (is_file($default) === true) {
- $this->standards = array($default);
- break;
- }
- }
-
- $lastDir = $currentDir;
- $currentDir = dirname($currentDir);
- } while ($currentDir !== '.' && $currentDir !== $lastDir);
- }//end if
-
- // Check for content on STDIN.
- if ($checkStdin === true) {
- $handle = fopen('php://stdin', 'r');
- if (stream_set_blocking($handle, false) === true) {
- $fileContents = '';
- while (($line = fgets($handle)) !== false) {
- $fileContents .= $line;
- usleep(10);
- }
-
- stream_set_blocking($handle, true);
- fclose($handle);
- if (trim($fileContents) !== '') {
- $this->stdin = true;
- $this->stdinContent = $fileContents;
- $this->overriddenDefaults['stdin'] = true;
- $this->overriddenDefaults['stdinContent'] = true;
- }
- }
- }
-
- }//end __construct()
-
-
- /**
- * Set the command line values.
- *
- * @param array $args An array of command line arguments to set.
- *
- * @return void
- */
- public function setCommandLineValues($args)
- {
- $this->cliArgs = $args;
- $numArgs = count($args);
-
- for ($i = 0; $i < $numArgs; $i++) {
- $arg = $this->cliArgs[$i];
- if ($arg === '') {
- continue;
- }
-
- if ($arg{0} === '-') {
- if ($arg === '-') {
- // Asking to read from STDIN.
- $this->stdin = true;
- $this->overriddenDefaults['stdin'] = true;
- continue;
- }
-
- if ($arg === '--') {
- // Empty argument, ignore it.
- continue;
- }
-
- if ($arg{1} === '-') {
- $this->processLongArgument(substr($arg, 2), $i);
- } else {
- $switches = str_split($arg);
- foreach ($switches as $switch) {
- if ($switch === '-') {
- continue;
- }
-
- $this->processShortArgument($switch, $i);
- }
- }
- } else {
- $this->processUnknownArgument($arg, $i);
- }//end if
- }//end for
-
- }//end setCommandLineValues()
-
-
- /**
- * Restore default values for all possible command line arguments.
- *
- * @return array
- */
- public function restoreDefaults()
- {
- $this->files = array();
- $this->standards = array('PEAR');
- $this->verbosity = 0;
- $this->interactive = false;
- $this->cache = false;
- $this->cacheFile = null;
- $this->colors = false;
- $this->explain = false;
- $this->local = false;
- $this->showSources = false;
- $this->showProgress = false;
- $this->quiet = false;
- $this->annotations = true;
- $this->parallel = 1;
- $this->tabWidth = 0;
- $this->encoding = 'utf-8';
- $this->extensions = array(
- 'php' => 'PHP',
- 'inc' => 'PHP',
- 'js' => 'JS',
- 'css' => 'CSS',
- );
- $this->sniffs = array();
- $this->exclude = array();
- $this->ignored = array();
- $this->reportFile = null;
- $this->generator = null;
- $this->filter = null;
- $this->bootstrap = array();
- $this->basepath = null;
- $this->reports = array('full' => null);
- $this->reportWidth = 'auto';
- $this->errorSeverity = 5;
- $this->warningSeverity = 5;
- $this->recordErrors = true;
- $this->suffix = '';
- $this->stdin = false;
- $this->stdinContent = null;
- $this->stdinPath = null;
- $this->unknown = array();
-
- $standard = self::getConfigData('default_standard');
- if ($standard !== null) {
- $this->standards = explode(',', $standard);
- }
-
- $reportFormat = self::getConfigData('report_format');
- if ($reportFormat !== null) {
- $this->reports = array($reportFormat => null);
- }
-
- $tabWidth = self::getConfigData('tab_width');
- if ($tabWidth !== null) {
- $this->tabWidth = (int) $tabWidth;
- }
-
- $encoding = self::getConfigData('encoding');
- if ($encoding !== null) {
- $this->encoding = strtolower($encoding);
- }
-
- $severity = self::getConfigData('severity');
- if ($severity !== null) {
- $this->errorSeverity = (int) $severity;
- $this->warningSeverity = (int) $severity;
- }
-
- $severity = self::getConfigData('error_severity');
- if ($severity !== null) {
- $this->errorSeverity = (int) $severity;
- }
-
- $severity = self::getConfigData('warning_severity');
- if ($severity !== null) {
- $this->warningSeverity = (int) $severity;
- }
-
- $showWarnings = self::getConfigData('show_warnings');
- if ($showWarnings !== null) {
- $showWarnings = (bool) $showWarnings;
- if ($showWarnings === false) {
- $this->warningSeverity = 0;
- }
- }
-
- $reportWidth = self::getConfigData('report_width');
- if ($reportWidth !== null) {
- $this->reportWidth = $reportWidth;
- }
-
- $showProgress = self::getConfigData('show_progress');
- if ($showProgress !== null) {
- $this->showProgress = (bool) $showProgress;
- }
-
- $quiet = self::getConfigData('quiet');
- if ($quiet !== null) {
- $this->quiet = (bool) $quiet;
- }
-
- $colors = self::getConfigData('colors');
- if ($colors !== null) {
- $this->colors = (bool) $colors;
- }
-
- if (defined('PHP_CODESNIFFER_IN_TESTS') === false) {
- $cache = self::getConfigData('cache');
- if ($cache !== null) {
- $this->cache = (bool) $cache;
- }
-
- $parallel = self::getConfigData('parallel');
- if ($parallel !== null) {
- $this->parallel = max((int) $parallel, 1);
- }
- }
-
- }//end restoreDefaults()
-
-
- /**
- * Processes a short (-e) command line argument.
- *
- * @param string $arg The command line argument.
- * @param int $pos The position of the argument on the command line.
- *
- * @return void
- */
- public function processShortArgument($arg, $pos)
- {
- switch ($arg) {
- case 'h':
- case '?':
- ob_start();
- $this->printUsage();
- $output = ob_get_contents();
- ob_end_clean();
- throw new DeepExitException($output, 0);
- case 'i' :
- ob_start();
- Util\Standards::printInstalledStandards();
- $output = ob_get_contents();
- ob_end_clean();
- throw new DeepExitException($output, 0);
- case 'v' :
- if ($this->quiet === true) {
- // Ignore when quiet mode is enabled.
- break;
- }
-
- $this->verbosity++;
- $this->overriddenDefaults['verbosity'] = true;
- break;
- case 'l' :
- $this->local = true;
- $this->overriddenDefaults['local'] = true;
- break;
- case 's' :
- $this->showSources = true;
- $this->overriddenDefaults['showSources'] = true;
- break;
- case 'a' :
- $this->interactive = true;
- $this->overriddenDefaults['interactive'] = true;
- break;
- case 'e':
- $this->explain = true;
- $this->overriddenDefaults['explain'] = true;
- break;
- case 'p' :
- if ($this->quiet === true) {
- // Ignore when quiet mode is enabled.
- break;
- }
-
- $this->showProgress = true;
- $this->overriddenDefaults['showProgress'] = true;
- break;
- case 'q' :
- // Quiet mode disables a few other settings as well.
- $this->quiet = true;
- $this->showProgress = false;
- $this->verbosity = 0;
-
- $this->overriddenDefaults['quiet'] = true;
- break;
- case 'm' :
- $this->recordErrors = false;
- $this->overriddenDefaults['recordErrors'] = true;
- break;
- case 'd' :
- $ini = explode('=', $this->cliArgs[($pos + 1)]);
- $this->cliArgs[($pos + 1)] = '';
- if (isset($ini[1]) === true) {
- ini_set($ini[0], $ini[1]);
- } else {
- ini_set($ini[0], true);
- }
- break;
- case 'n' :
- if (isset($this->overriddenDefaults['warningSeverity']) === false) {
- $this->warningSeverity = 0;
- $this->overriddenDefaults['warningSeverity'] = true;
- }
- break;
- case 'w' :
- if (isset($this->overriddenDefaults['warningSeverity']) === false) {
- $this->warningSeverity = $this->errorSeverity;
- $this->overriddenDefaults['warningSeverity'] = true;
- }
- break;
- default:
- if ($this->dieOnUnknownArg === false) {
- $unknown = $this->unknown;
- $unknown[] = $arg;
- $this->unknown = $unknown;
- } else {
- $this->processUnknownArgument('-'.$arg, $pos);
- }
- }//end switch
-
- }//end processShortArgument()
-
-
- /**
- * Processes a long (--example) command line argument.
- *
- * @param string $arg The command line argument.
- * @param int $pos The position of the argument on the command line.
- *
- * @return void
- */
- public function processLongArgument($arg, $pos)
- {
- switch ($arg) {
- case 'help':
- ob_start();
- $this->printUsage();
- $output = ob_get_contents();
- ob_end_clean();
- throw new DeepExitException($output, 0);
- case 'version':
- $output = 'PHP_CodeSniffer version '.self::VERSION.' ('.self::STABILITY.') ';
- $output .= 'by Squiz (http://www.squiz.net)'.PHP_EOL;
- throw new DeepExitException($output, 0);
- case 'colors':
- if (isset($this->overriddenDefaults['colors']) === true) {
- break;
- }
-
- $this->colors = true;
- $this->overriddenDefaults['colors'] = true;
- break;
- case 'no-colors':
- if (isset($this->overriddenDefaults['colors']) === true) {
- break;
- }
-
- $this->colors = false;
- $this->overriddenDefaults['colors'] = true;
- break;
- case 'cache':
- if (isset($this->overriddenDefaults['cache']) === true) {
- break;
- }
-
- if (defined('PHP_CODESNIFFER_IN_TESTS') === false) {
- $this->cache = true;
- $this->overriddenDefaults['cache'] = true;
- }
- break;
- case 'no-cache':
- if (isset($this->overriddenDefaults['cache']) === true) {
- break;
- }
-
- $this->cache = false;
- $this->overriddenDefaults['cache'] = true;
- break;
- case 'ignore-annotations':
- if (isset($this->overriddenDefaults['annotations']) === true) {
- break;
- }
-
- $this->annotations = false;
- $this->overriddenDefaults['annotations'] = true;
- break;
- case 'config-set':
- if (isset($this->cliArgs[($pos + 1)]) === false
- || isset($this->cliArgs[($pos + 2)]) === false
- ) {
- $error = 'ERROR: Setting a config option requires a name and value'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
-
- $key = $this->cliArgs[($pos + 1)];
- $value = $this->cliArgs[($pos + 2)];
- $current = self::getConfigData($key);
-
- try {
- $this->setConfigData($key, $value);
- } catch (\Exception $e) {
- throw new DeepExitException($e->getMessage().PHP_EOL, 3);
- }
-
- if ($current === null) {
- $output = "Config value \"$key\" added successfully".PHP_EOL;
- } else {
- $output = "Config value \"$key\" updated successfully; old value was \"$current\"".PHP_EOL;
- }
- throw new DeepExitException($output, 0);
- case 'config-delete':
- if (isset($this->cliArgs[($pos + 1)]) === false) {
- $error = 'ERROR: Deleting a config option requires the name of the option'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
-
- $key = $this->cliArgs[($pos + 1)];
- $current = self::getConfigData($key);
- if ($current === null) {
- $output = "Config value \"$key\" has not been set".PHP_EOL;
- } else {
- try {
- $this->setConfigData($key, null);
- } catch (\Exception $e) {
- throw new DeepExitException($e->getMessage().PHP_EOL, 3);
- }
-
- $output = "Config value \"$key\" removed successfully; old value was \"$current\"".PHP_EOL;
- }
- throw new DeepExitException($output, 0);
- case 'config-show':
- ob_start();
- $data = self::getAllConfigData();
- $this->printConfigData($data);
- $output = ob_get_contents();
- ob_end_clean();
- throw new DeepExitException($output, 0);
- case 'runtime-set':
- if (isset($this->cliArgs[($pos + 1)]) === false
- || isset($this->cliArgs[($pos + 2)]) === false
- ) {
- $error = 'ERROR: Setting a runtime config option requires a name and value'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
-
- $key = $this->cliArgs[($pos + 1)];
- $value = $this->cliArgs[($pos + 2)];
- $this->cliArgs[($pos + 1)] = '';
- $this->cliArgs[($pos + 2)] = '';
- self::setConfigData($key, $value, true);
- break;
- default:
- if (substr($arg, 0, 7) === 'sniffs=') {
- if (isset($this->overriddenDefaults['sniffs']) === true) {
- break;
- }
-
- $sniffs = explode(',', substr($arg, 7));
- foreach ($sniffs as $sniff) {
- if (substr_count($sniff, '.') !== 2) {
- $error = 'ERROR: The specified sniff code "'.$sniff.'" is invalid'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
- }
-
- $this->sniffs = $sniffs;
- $this->overriddenDefaults['sniffs'] = true;
- } else if (substr($arg, 0, 8) === 'exclude=') {
- if (isset($this->overriddenDefaults['exclude']) === true) {
- break;
- }
-
- $sniffs = explode(',', substr($arg, 8));
- foreach ($sniffs as $sniff) {
- if (substr_count($sniff, '.') !== 2) {
- $error = 'ERROR: The specified sniff code "'.$sniff.'" is invalid'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
- }
-
- $this->exclude = $sniffs;
- $this->overriddenDefaults['exclude'] = true;
- } else if (defined('PHP_CODESNIFFER_IN_TESTS') === false
- && substr($arg, 0, 6) === 'cache='
- ) {
- if ((isset($this->overriddenDefaults['cache']) === true
- && $this->cache === false)
- || isset($this->overriddenDefaults['cacheFile']) === true
- ) {
- break;
- }
-
- // Turn caching on.
- $this->cache = true;
- $this->overriddenDefaults['cache'] = true;
-
- $this->cacheFile = Util\Common::realpath(substr($arg, 6));
-
- // It may not exist and return false instead.
- if ($this->cacheFile === false) {
- $this->cacheFile = substr($arg, 6);
-
- $dir = dirname($this->cacheFile);
- if (is_dir($dir) === false) {
- $error = 'ERROR: The specified cache file path "'.$this->cacheFile.'" points to a non-existent directory'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
-
- if ($dir === '.') {
- // Passed cache file is a file in the current directory.
- $this->cacheFile = getcwd().'/'.basename($this->cacheFile);
- } else {
- if ($dir{0} === '/') {
- // An absolute path.
- $dir = Util\Common::realpath($dir);
- } else {
- $dir = Util\Common::realpath(getcwd().'/'.$dir);
- }
-
- if ($dir !== false) {
- // Cache file path is relative.
- $this->cacheFile = $dir.'/'.basename($this->cacheFile);
- }
- }
- }//end if
-
- $this->overriddenDefaults['cacheFile'] = true;
-
- if (is_dir($this->cacheFile) === true) {
- $error = 'ERROR: The specified cache file path "'.$this->cacheFile.'" is a directory'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
- } else if (substr($arg, 0, 10) === 'bootstrap=') {
- $files = explode(',', substr($arg, 10));
- $bootstrap = array();
- foreach ($files as $file) {
- $path = Util\Common::realpath($file);
- if ($path === false) {
- $error = 'ERROR: The specified bootstrap file "'.$file.'" does not exist'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
-
- $bootstrap[] = $path;
- }
-
- $this->bootstrap = array_merge($this->bootstrap, $bootstrap);
- $this->overriddenDefaults['bootstrap'] = true;
- } else if (substr($arg, 0, 10) === 'file-list=') {
- $fileList = substr($arg, 10);
- $path = Util\Common::realpath($fileList);
- if ($path === false) {
- $error = 'ERROR: The specified file list "'.$fileList.'" does not exist'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
-
- $files = file($path);
- foreach ($files as $inputFile) {
- $inputFile = trim($inputFile);
-
- // Skip empty lines.
- if ($inputFile === '') {
- continue;
- }
-
- $this->processFilePath($inputFile);
- }
- } else if (substr($arg, 0, 11) === 'stdin-path=') {
- if (isset($this->overriddenDefaults['stdinPath']) === true) {
- break;
- }
-
- $this->stdinPath = Util\Common::realpath(substr($arg, 11));
-
- // It may not exist and return false instead, so use whatever they gave us.
- if ($this->stdinPath === false) {
- $this->stdinPath = trim(substr($arg, 11));
- }
-
- $this->overriddenDefaults['stdinPath'] = true;
- } else if (PHP_CODESNIFFER_CBF === false && substr($arg, 0, 12) === 'report-file=') {
- if (isset($this->overriddenDefaults['reportFile']) === true) {
- break;
- }
-
- $this->reportFile = Util\Common::realpath(substr($arg, 12));
-
- // It may not exist and return false instead.
- if ($this->reportFile === false) {
- $this->reportFile = substr($arg, 12);
-
- $dir = dirname($this->reportFile);
- if (is_dir($dir) === false) {
- $error = 'ERROR: The specified report file path "'.$this->reportFile.'" points to a non-existent directory'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
-
- if ($dir === '.') {
- // Passed report file is a file in the current directory.
- $this->reportFile = getcwd().'/'.basename($this->reportFile);
- } else {
- if ($dir{0} === '/') {
- // An absolute path.
- $dir = Util\Common::realpath($dir);
- } else {
- $dir = Util\Common::realpath(getcwd().'/'.$dir);
- }
-
- if ($dir !== false) {
- // Report file path is relative.
- $this->reportFile = $dir.'/'.basename($this->reportFile);
- }
- }
- }//end if
-
- $this->overriddenDefaults['reportFile'] = true;
-
- if (is_dir($this->reportFile) === true) {
- $error = 'ERROR: The specified report file path "'.$this->reportFile.'" is a directory'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
- } else if (substr($arg, 0, 13) === 'report-width=') {
- if (isset($this->overriddenDefaults['reportWidth']) === true) {
- break;
- }
-
- $this->reportWidth = substr($arg, 13);
- $this->overriddenDefaults['reportWidth'] = true;
- } else if (substr($arg, 0, 9) === 'basepath=') {
- if (isset($this->overriddenDefaults['basepath']) === true) {
- break;
- }
-
- $this->basepath = Util\Common::realpath(substr($arg, 9));
-
- // It may not exist and return false instead.
- if ($this->basepath === false) {
- $this->basepath = substr($arg, 9);
- }
-
- $this->overriddenDefaults['basepath'] = true;
-
- if (is_dir($this->basepath) === false) {
- $error = 'ERROR: The specified basepath "'.$this->basepath.'" points to a non-existent directory'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
- } else if ((substr($arg, 0, 7) === 'report=' || substr($arg, 0, 7) === 'report-')) {
- $reports = array();
-
- if ($arg[6] === '-') {
- // This is a report with file output.
- $split = strpos($arg, '=');
- if ($split === false) {
- $report = substr($arg, 7);
- $output = null;
- } else {
- $report = substr($arg, 7, ($split - 7));
- $output = substr($arg, ($split + 1));
- if ($output === false) {
- $output = null;
- } else {
- $dir = dirname($output);
- if ($dir === '.') {
- // Passed report file is a filename in the current directory.
- $output = getcwd().'/'.basename($output);
- } else {
- if ($dir{0} === '/') {
- // An absolute path.
- $dir = Util\Common::realpath($dir);
- } else {
- $dir = Util\Common::realpath(getcwd().'/'.$dir);
- }
-
- if ($dir !== false) {
- // Report file path is relative.
- $output = $dir.'/'.basename($output);
- }
- }
- }//end if
- }//end if
-
- $reports[$report] = $output;
- } else {
- // This is a single report.
- if (isset($this->overriddenDefaults['reports']) === true) {
- break;
- }
-
- $reportNames = explode(',', substr($arg, 7));
- foreach ($reportNames as $report) {
- $reports[$report] = null;
- }
- }//end if
-
- // Remove the default value so the CLI value overrides it.
- if (isset($this->overriddenDefaults['reports']) === false) {
- $this->reports = $reports;
- } else {
- $this->reports = array_merge($this->reports, $reports);
- }
-
- $this->overriddenDefaults['reports'] = true;
- } else if (substr($arg, 0, 7) === 'filter=') {
- if (isset($this->overriddenDefaults['filter']) === true) {
- break;
- }
-
- $this->filter = substr($arg, 7);
- $this->overriddenDefaults['filter'] = true;
- } else if (substr($arg, 0, 9) === 'standard=') {
- $standards = trim(substr($arg, 9));
- if ($standards !== '') {
- $this->standards = explode(',', $standards);
- }
-
- $this->overriddenDefaults['standards'] = true;
- } else if (substr($arg, 0, 11) === 'extensions=') {
- if (isset($this->overriddenDefaults['extensions']) === true) {
- break;
- }
-
- $extensions = explode(',', substr($arg, 11));
- $newExtensions = array();
- foreach ($extensions as $ext) {
- $slash = strpos($ext, '/');
- if ($slash !== false) {
- // They specified the tokenizer too.
- list($ext, $tokenizer) = explode('/', $ext);
- $newExtensions[$ext] = strtoupper($tokenizer);
- continue;
- }
-
- if (isset($this->extensions[$ext]) === true) {
- $newExtensions[$ext] = $this->extensions[$ext];
- } else {
- $newExtensions[$ext] = 'PHP';
- }
- }
-
- $this->extensions = $newExtensions;
- $this->overriddenDefaults['extensions'] = true;
- } else if (substr($arg, 0, 7) === 'suffix=') {
- if (isset($this->overriddenDefaults['suffix']) === true) {
- break;
- }
-
- $this->suffix = substr($arg, 7);
- $this->overriddenDefaults['suffix'] = true;
- } else if (substr($arg, 0, 9) === 'parallel=') {
- if (isset($this->overriddenDefaults['parallel']) === true) {
- break;
- }
-
- $this->parallel = max((int) substr($arg, 9), 1);
- $this->overriddenDefaults['parallel'] = true;
- } else if (substr($arg, 0, 9) === 'severity=') {
- $this->errorSeverity = (int) substr($arg, 9);
- $this->warningSeverity = $this->errorSeverity;
- if (isset($this->overriddenDefaults['errorSeverity']) === false) {
- $this->overriddenDefaults['errorSeverity'] = true;
- }
-
- if (isset($this->overriddenDefaults['warningSeverity']) === false) {
- $this->overriddenDefaults['warningSeverity'] = true;
- }
- } else if (substr($arg, 0, 15) === 'error-severity=') {
- if (isset($this->overriddenDefaults['errorSeverity']) === true) {
- break;
- }
-
- $this->errorSeverity = (int) substr($arg, 15);
- $this->overriddenDefaults['errorSeverity'] = true;
- } else if (substr($arg, 0, 17) === 'warning-severity=') {
- if (isset($this->overriddenDefaults['warningSeverity']) === true) {
- break;
- }
-
- $this->warningSeverity = (int) substr($arg, 17);
- $this->overriddenDefaults['warningSeverity'] = true;
- } else if (substr($arg, 0, 7) === 'ignore=') {
- if (isset($this->overriddenDefaults['ignored']) === true) {
- break;
- }
-
- // Split the ignore string on commas, unless the comma is escaped
- // using 1 or 3 slashes (\, or \\\,).
- $patterns = preg_split(
- '/(?<=(?<!\\\\)\\\\\\\\),|(?<!\\\\),/',
- substr($arg, 7)
- );
-
- $ignored = array();
- foreach ($patterns as $pattern) {
- $pattern = trim($pattern);
- if ($pattern === '') {
- continue;
- }
-
- $ignored[$pattern] = 'absolute';
- }
-
- $this->ignored = $ignored;
- $this->overriddenDefaults['ignored'] = true;
- } else if (substr($arg, 0, 10) === 'generator='
- && PHP_CODESNIFFER_CBF === false
- ) {
- if (isset($this->overriddenDefaults['generator']) === true) {
- break;
- }
-
- $this->generator = substr($arg, 10);
- $this->overriddenDefaults['generator'] = true;
- } else if (substr($arg, 0, 9) === 'encoding=') {
- if (isset($this->overriddenDefaults['encoding']) === true) {
- break;
- }
-
- $this->encoding = strtolower(substr($arg, 9));
- $this->overriddenDefaults['encoding'] = true;
- } else if (substr($arg, 0, 10) === 'tab-width=') {
- if (isset($this->overriddenDefaults['tabWidth']) === true) {
- break;
- }
-
- $this->tabWidth = (int) substr($arg, 10);
- $this->overriddenDefaults['tabWidth'] = true;
- } else {
- if ($this->dieOnUnknownArg === false) {
- $eqPos = strpos($arg, '=');
- try {
- if ($eqPos === false) {
- $this->values[$arg] = $arg;
- } else {
- $value = substr($arg, ($eqPos + 1));
- $arg = substr($arg, 0, $eqPos);
- $this->values[$arg] = $value;
- }
- } catch (RuntimeException $e) {
- // Value is not valid, so just ignore it.
- }
- } else {
- $this->processUnknownArgument('--'.$arg, $pos);
- }
- }//end if
-
- break;
- }//end switch
-
- }//end processLongArgument()
-
-
- /**
- * Processes an unknown command line argument.
- *
- * Assumes all unknown arguments are files and folders to check.
- *
- * @param string $arg The command line argument.
- * @param int $pos The position of the argument on the command line.
- *
- * @return void
- */
- public function processUnknownArgument($arg, $pos)
- {
- // We don't know about any additional switches; just files.
- if ($arg{0} === '-') {
- if ($this->dieOnUnknownArg === false) {
- return;
- }
-
- $error = "ERROR: option \"$arg\" not known".PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
-
- $this->processFilePath($arg);
-
- }//end processUnknownArgument()
-
-
- /**
- * Processes a file path and add it to the file list.
- *
- * @param string $path The path to the file to add.
- *
- * @return void
- */
- public function processFilePath($path)
- {
- // If we are processing STDIN, don't record any files to check.
- if ($this->stdin === true) {
- return;
- }
-
- $file = Util\Common::realpath($path);
- if (file_exists($file) === false) {
- if ($this->dieOnUnknownArg === false) {
- return;
- }
-
- $error = 'ERROR: The file "'.$path.'" does not exist.'.PHP_EOL.PHP_EOL;
- $error .= $this->printShortUsage(true);
- throw new DeepExitException($error, 3);
- } else {
- $files = $this->files;
- $files[] = $file;
- $this->files = $files;
- $this->overriddenDefaults['files'] = true;
- }
-
- }//end processFilePath()
-
-
- /**
- * Prints out the usage information for this script.
- *
- * @return void
- */
- public function printUsage()
- {
- echo PHP_EOL;
-
- if (PHP_CODESNIFFER_CBF === true) {
- $this->printPHPCBFUsage();
- } else {
- $this->printPHPCSUsage();
- }
-
- echo PHP_EOL;
-
- }//end printUsage()
-
-
- /**
- * Prints out the short usage information for this script.
- *
- * @param bool $return If TRUE, the usage string is returned
- * instead of output to screen.
- *
- * @return string|void
- */
- public function printShortUsage($return=false)
- {
- if (PHP_CODESNIFFER_CBF === true) {
- $usage = 'Run "phpcbf --help" for usage information';
- } else {
- $usage = 'Run "phpcs --help" for usage information';
- }
-
- $usage .= PHP_EOL.PHP_EOL;
-
- if ($return === true) {
- return $usage;
- }
-
- echo $usage;
-
- }//end printShortUsage()
-
-
- /**
- * Prints out the usage information for PHPCS.
- *
- * @return void
- */
- public function printPHPCSUsage()
- {
- echo 'Usage: phpcs [-nwlsaepqvi] [-d key[=value]] [--colors] [--no-colors]'.PHP_EOL;
- echo ' [--cache[=<cacheFile>]] [--no-cache] [--tab-width=<tabWidth>]'.PHP_EOL;
- echo ' [--report=<report>] [--report-file=<reportFile>] [--report-<report>=<reportFile>]'.PHP_EOL;
- echo ' [--report-width=<reportWidth>] [--basepath=<basepath>] [--bootstrap=<bootstrap>]'.PHP_EOL;
- echo ' [--severity=<severity>] [--error-severity=<severity>] [--warning-severity=<severity>]'.PHP_EOL;
- echo ' [--runtime-set key value] [--config-set key value] [--config-delete key] [--config-show]'.PHP_EOL;
- echo ' [--standard=<standard>] [--sniffs=<sniffs>] [--exclude=<sniffs>]'.PHP_EOL;
- echo ' [--encoding=<encoding>] [--parallel=<processes>] [--generator=<generator>]'.PHP_EOL;
- echo ' [--extensions=<extensions>] [--ignore=<patterns>] [--ignore-annotations]'.PHP_EOL;
- echo ' [--stdin-path=<stdinPath>] [--file-list=<fileList>] <file> - ...'.PHP_EOL;
- echo PHP_EOL;
- echo ' - Check STDIN instead of local files and directories'.PHP_EOL;
- echo ' -n Do not print warnings (shortcut for --warning-severity=0)'.PHP_EOL;
- echo ' -w Print both warnings and errors (this is the default)'.PHP_EOL;
- echo ' -l Local directory only, no recursion'.PHP_EOL;
- echo ' -s Show sniff codes in all reports'.PHP_EOL;
- echo ' -a Run interactively'.PHP_EOL;
- echo ' -e Explain a standard by showing the sniffs it includes'.PHP_EOL;
- echo ' -p Show progress of the run'.PHP_EOL;
- echo ' -q Quiet mode; disables progress and verbose output'.PHP_EOL;
- echo ' -m Stop error messages from being recorded'.PHP_EOL;
- echo ' (saves a lot of memory, but stops many reports from being used)'.PHP_EOL;
- echo ' -v Print processed files'.PHP_EOL;
- echo ' -vv Print ruleset and token output'.PHP_EOL;
- echo ' -vvv Print sniff processing information'.PHP_EOL;
- echo ' -i Show a list of installed coding standards'.PHP_EOL;
- echo ' -d Set the [key] php.ini value to [value] or [true] if value is omitted'.PHP_EOL;
- echo PHP_EOL;
- echo ' --help Print this help message'.PHP_EOL;
- echo ' --version Print version information'.PHP_EOL;
- echo ' --colors Use colors in output'.PHP_EOL;
- echo ' --no-colors Do not use colors in output (this is the default)'.PHP_EOL;
- echo ' --cache Cache results between runs'.PHP_EOL;
- echo ' --no-cache Do not cache results between runs (this is the default)'.PHP_EOL;
- echo ' --ignore-annotations Ignore all @codingStandard annotations in code comments'.PHP_EOL;
- echo PHP_EOL;
- echo ' <cacheFile> Use a specific file for caching (uses a temporary file by default)'.PHP_EOL;
- echo ' <basepath> A path to strip from the front of file paths inside reports'.PHP_EOL;
- echo ' <bootstrap> A comma separated list of files to run before processing begins'.PHP_EOL;
- echo ' <file> One or more files and/or directories to check'.PHP_EOL;
- echo ' <fileList> A file containing a list of files and/or directories to check (one per line)'.PHP_EOL;
- echo ' <encoding> The encoding of the files being checked (default is utf-8)'.PHP_EOL;
- echo ' <extensions> A comma separated list of file extensions to check'.PHP_EOL;
- echo ' (extension filtering only valid when checking a directory)'.PHP_EOL;
- echo ' The type of the file can be specified using: ext/type'.PHP_EOL;
- echo ' e.g., module/php,es/js'.PHP_EOL;
- echo ' <generator> Uses either the "HTML", "Markdown" or "Text" generator'.PHP_EOL;
- echo ' (forces documentation generation instead of checking)'.PHP_EOL;
- echo ' <patterns> A comma separated list of patterns to ignore files and directories'.PHP_EOL;
- echo ' <processes> How many files should be checked simultaneously (default is 1)'.PHP_EOL;
- echo ' <report> Print either the "full", "xml", "checkstyle", "csv"'.PHP_EOL;
- echo ' "json", "junit", "emacs", "source", "summary", "diff"'.PHP_EOL;
- echo ' "svnblame", "gitblame", "hgblame" or "notifysend" report'.PHP_EOL;
- echo ' (the "full" report is printed by default)'.PHP_EOL;
- echo ' <reportFile> Write the report to the specified file path'.PHP_EOL;
- echo ' <reportWidth> How many columns wide screen reports should be printed'.PHP_EOL;
- echo ' or set to "auto" to use current screen width, where supported'.PHP_EOL;
- echo ' <severity> The minimum severity required to display an error or warning'.PHP_EOL;
- echo ' <sniffs> A comma separated list of sniff codes to include or exclude from checking'.PHP_EOL;
- echo ' (all sniffs must be part of the specified standard)'.PHP_EOL;
- echo ' <standard> The name or path of the coding standard to use'.PHP_EOL;
- echo ' <stdinPath> If processing STDIN, the file path that STDIN will be processed as'.PHP_EOL;
- echo ' <tabWidth> The number of spaces each tab represents'.PHP_EOL;
-
- }//end printPHPCSUsage()
-
-
- /**
- * Prints out the usage information for PHPCBF.
- *
- * @return void
- */
- public function printPHPCBFUsage()
- {
- echo 'Usage: phpcbf [-nwli] [-d key[=value]] [--ignore-annotations] [--bootstrap=<bootstrap>]'.PHP_EOL;
- echo ' [--standard=<standard>] [--sniffs=<sniffs>] [--exclude=<sniffs>] [--suffix=<suffix>]'.PHP_EOL;
- echo ' [--severity=<severity>] [--error-severity=<severity>] [--warning-severity=<severity>]'.PHP_EOL;
- echo ' [--tab-width=<tabWidth>] [--encoding=<encoding>] [--parallel=<processes>]'.PHP_EOL;
- echo ' [--basepath=<basepath>] [--extensions=<extensions>] [--ignore=<patterns>]'.PHP_EOL;
- echo ' [--stdin-path=<stdinPath>] [--file-list=<fileList>] <file> - ...'.PHP_EOL;
- echo PHP_EOL;
- echo ' - Fix STDIN instead of local files and directories'.PHP_EOL;
- echo ' -n Do not fix warnings (shortcut for --warning-severity=0)'.PHP_EOL;
- echo ' -w Fix both warnings and errors (on by default)'.PHP_EOL;
- echo ' -l Local directory only, no recursion'.PHP_EOL;
- echo ' -p Show progress of the run'.PHP_EOL;
- echo ' -q Quiet mode; disables progress and verbose output'.PHP_EOL;
- echo ' -v Print processed files'.PHP_EOL;
- echo ' -vv Print ruleset and token output'.PHP_EOL;
- echo ' -vvv Print sniff processing information'.PHP_EOL;
- echo ' -i Show a list of installed coding standards'.PHP_EOL;
- echo ' -d Set the [key] php.ini value to [value] or [true] if value is omitted'.PHP_EOL;
- echo PHP_EOL;
- echo ' --help Print this help message'.PHP_EOL;
- echo ' --version Print version information'.PHP_EOL;
- echo ' --ignore-annotations Ignore all @codingStandard annotations in code comments'.PHP_EOL;
- echo PHP_EOL;
- echo ' <basepath> A path to strip from the front of file paths inside reports'.PHP_EOL;
- echo ' <bootstrap> A comma separated list of files to run before processing begins'.PHP_EOL;
- echo ' <file> One or more files and/or directories to fix'.PHP_EOL;
- echo ' <fileList> A file containing a list of files and/or directories to fix (one per line)'.PHP_EOL;
- echo ' <encoding> The encoding of the files being fixed (default is utf-8)'.PHP_EOL;
- echo ' <extensions> A comma separated list of file extensions to fix'.PHP_EOL;
- echo ' (extension filtering only valid when checking a directory)'.PHP_EOL;
- echo ' The type of the file can be specified using: ext/type'.PHP_EOL;
- echo ' e.g., module/php,es/js'.PHP_EOL;
- echo ' <patterns> A comma separated list of patterns to ignore files and directories'.PHP_EOL;
- echo ' <processes> How many files should be fixed simultaneously (default is 1)'.PHP_EOL;
- echo ' <severity> The minimum severity required to fix an error or warning'.PHP_EOL;
- echo ' <sniffs> A comma separated list of sniff codes to include or exclude from fixing'.PHP_EOL;
- echo ' (all sniffs must be part of the specified standard)'.PHP_EOL;
- echo ' <standard> The name or path of the coding standard to use'.PHP_EOL;
- echo ' <stdinPath> If processing STDIN, the file path that STDIN will be processed as'.PHP_EOL;
- echo ' <suffix> Write modified files to a filename using this suffix'.PHP_EOL;
- echo ' ("diff" and "patch" are not used in this mode)'.PHP_EOL;
- echo ' <tabWidth> The number of spaces each tab represents'.PHP_EOL;
-
- }//end printPHPCBFUsage()
-
-
- /**
- * Get a single config value.
- *
- * @param string $key The name of the config value.
- *
- * @return string|null
- * @see setConfigData()
- * @see getAllConfigData()
- */
- public static function getConfigData($key)
- {
- $phpCodeSnifferConfig = self::getAllConfigData();
-
- if ($phpCodeSnifferConfig === null) {
- return null;
- }
-
- if (isset($phpCodeSnifferConfig[$key]) === false) {
- return null;
- }
-
- return $phpCodeSnifferConfig[$key];
-
- }//end getConfigData()
-
-
- /**
- * Get the path to an executable utility.
- *
- * @param string $name The name of the executable utility.
- *
- * @return string|null
- * @see getConfigData()
- */
- public static function getExecutablePath($name)
- {
- $data = self::getConfigData($name.'_path');
- if ($data !== null) {
- return $data;
- }
-
- if (array_key_exists($name, self::$executablePaths) === true) {
- return self::$executablePaths[$name];
- }
-
- if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
- $cmd = 'where '.escapeshellarg($name).' 2> nul';
- } else {
- $cmd = 'which '.escapeshellarg($name).' 2> /dev/null';
- }
-
- $result = exec($cmd, $output, $retVal);
- if ($retVal !== 0) {
- $result = null;
- }
-
- self::$executablePaths[$name] = $result;
- return $result;
-
- }//end getExecutablePath()
-
-
- /**
- * Set a single config value.
- *
- * @param string $key The name of the config value.
- * @param string|null $value The value to set. If null, the config
- * entry is deleted, reverting it to the
- * default value.
- * @param boolean $temp Set this config data temporarily for this
- * script run. This will not write the config
- * data to the config file.
- *
- * @return bool
- * @see getConfigData()
- * @throws RuntimeException If the config file can not be written.
- */
- public static function setConfigData($key, $value, $temp=false)
- {
- if ($temp === false) {
- $path = '';
- if (is_callable('\Phar::running') === true) {
- $path = \Phar::running(false);
- }
-
- if ($path !== '') {
- $configFile = dirname($path).'/CodeSniffer.conf';
- } else {
- $configFile = dirname(__DIR__).'/CodeSniffer.conf';
- if (is_file($configFile) === false
- && strpos('@data_dir@', '@data_dir') === false
- ) {
- // If data_dir was replaced, this is a PEAR install and we can
- // use the PEAR data dir to store the conf file.
- $configFile = '@data_dir@/PHP_CodeSniffer/CodeSniffer.conf';
- }
- }
-
- if (is_file($configFile) === true
- && is_writable($configFile) === false
- ) {
- $error = 'Config file '.$configFile.' is not writable';
- throw new RuntimeException($error);
- }
- }//end if
-
- $phpCodeSnifferConfig = self::getAllConfigData();
-
- if ($value === null) {
- if (isset($phpCodeSnifferConfig[$key]) === true) {
- unset($phpCodeSnifferConfig[$key]);
- }
- } else {
- $phpCodeSnifferConfig[$key] = $value;
- }
-
- if ($temp === false) {
- $output = '<'.'?php'."\n".' $phpCodeSnifferConfig = ';
- $output .= var_export($phpCodeSnifferConfig, true);
- $output .= "\n?".'>';
-
- if (file_put_contents($configFile, $output) === false) {
- return false;
- }
- }
-
- self::$configData = $phpCodeSnifferConfig;
-
- return true;
-
- }//end setConfigData()
-
-
- /**
- * Get all config data.
- *
- * @return array<string, string>
- * @see getConfigData()
- */
- public static function getAllConfigData()
- {
- if (self::$configData !== null) {
- return self::$configData;
- }
-
- $path = '';
- if (is_callable('\Phar::running') === true) {
- $path = \Phar::running(false);
- }
-
- if ($path !== '') {
- $configFile = dirname($path).'/CodeSniffer.conf';
- } else {
- $configFile = dirname(__DIR__).'/CodeSniffer.conf';
- if (is_file($configFile) === false
- && strpos('@data_dir@', '@data_dir') === false
- ) {
- $configFile = '@data_dir@/PHP_CodeSniffer/CodeSniffer.conf';
- }
- }
-
- if (is_file($configFile) === false) {
- self::$configData = array();
- return array();
- }
-
- include $configFile;
- self::$configData = $phpCodeSnifferConfig;
- return self::$configData;
-
- }//end getAllConfigData()
-
-
- /**
- * Prints out the gathered config data.
- *
- * @param array $data The config data to print.
- *
- * @return void
- */
- public function printConfigData($data)
- {
- $max = 0;
- $keys = array_keys($data);
- foreach ($keys as $key) {
- $len = strlen($key);
- if (strlen($key) > $max) {
- $max = $len;
- }
- }
-
- if ($max === 0) {
- return;
- }
-
- $max += 2;
- ksort($data);
- foreach ($data as $name => $value) {
- echo str_pad($name.': ', $max).$value.PHP_EOL;
- }
-
- }//end printConfigData()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/DeepExitException.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/DeepExitException.php
deleted file mode 100644
index b1440944..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/DeepExitException.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/**
- * An exception thrown by PHP_CodeSniffer when it wants to exit from somewhere not in the main runner.
- *
- * Allows the runner to return an exit code instead of putting exit codes elsewhere
- * in the source code.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Exceptions;
-
-class DeepExitException extends \Exception
-{
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/RuntimeException.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/RuntimeException.php
deleted file mode 100644
index 4bb10bfe..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/RuntimeException.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-/**
- * An exception thrown by PHP_CodeSniffer when it encounters an unrecoverable error.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Exceptions;
-
-class RuntimeException extends \Exception
-{
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/TokenizerException.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/TokenizerException.php
deleted file mode 100644
index ceba00cc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Exceptions/TokenizerException.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-/**
- * An exception thrown by PHP_CodeSniffer when it encounters an unrecoverable tokenizer error.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Exceptions;
-
-class TokenizerException extends \Exception
-{
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/DummyFile.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/DummyFile.php
deleted file mode 100644
index b40feeaa..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/DummyFile.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-/**
- * A dummy file represents a chunk of text that does not have a file system location.
- *
- * Dummy files can also represent a changed (but not saved) version of a file
- * and so can have a file path either set manually, or set by putting
- * phpcs_input_file: /path/to/file
- * as the first line of the file contents.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Files;
-
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Config;
-
-class DummyFile extends File
-{
-
-
- /**
- * Creates a DummyFile object and sets the content.
- *
- * @param string $content The content of the file.
- * @param \PHP_CodeSniffer\Ruleset $ruleset The ruleset used for the run.
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- *
- * @return void
- */
- public function __construct($content, Ruleset $ruleset, Config $config)
- {
- $this->setContent($content);
-
- // See if a filename was defined in the content.
- // This is done by including: phpcs_input_file: [file path]
- // as the first line of content.
- $path = 'STDIN';
- if ($content !== null) {
- if (substr($content, 0, 17) === 'phpcs_input_file:') {
- $eolPos = strpos($content, $this->eolChar);
- $filename = trim(substr($content, 17, ($eolPos - 17)));
- $content = substr($content, ($eolPos + strlen($this->eolChar)));
- $path = $filename;
-
- $this->setContent($content);
- }
- }
-
- // The CLI arg overrides anything passed in the content.
- if ($config->stdinPath !== null) {
- $path = $config->stdinPath;
- }
-
- return parent::__construct($path, $ruleset, $config);
-
- }//end __construct()
-
-
- /**
- * Set the error, warning, and fixable counts for the file.
- *
- * @param int $errorCount The number of errors found.
- * @param int $warningCount The number of warnings found.
- * @param int $fixableCount The number of fixable errors found.
- * @param int $fixedCount The number of errors that were fixed.
- *
- * @return void
- */
- public function setErrorCounts($errorCount, $warningCount, $fixableCount, $fixedCount)
- {
- $this->errorCount = $errorCount;
- $this->warningCount = $warningCount;
- $this->fixableCount = $fixableCount;
- $this->fixedCount = $fixedCount;
-
- }//end setErrorCounts()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/File.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/File.php
deleted file mode 100644
index b4080094..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/File.php
+++ /dev/null
@@ -1,2218 +0,0 @@
-<?php
-/**
- * Represents a piece of content being checked during the run.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Files;
-
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Fixer;
-use PHP_CodeSniffer\Util;
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-use PHP_CodeSniffer\Exceptions\TokenizerException;
-
-class File
-{
-
- /**
- * The absolute path to the file associated with this object.
- *
- * @var string
- */
- public $path = '';
-
- /**
- * The absolute path to the file associated with this object.
- *
- * @var string
- */
- protected $content = '';
-
- /**
- * The config data for the run.
- *
- * @var \PHP_CodeSniffer\Config
- */
- public $config = null;
-
- /**
- * The ruleset used for the run.
- *
- * @var \PHP_CodeSniffer\Ruleset
- */
- public $ruleset = null;
-
- /**
- * If TRUE, the entire file is being ignored.
- *
- * @var string
- */
- public $ignored = false;
-
- /**
- * The EOL character this file uses.
- *
- * @var string
- */
- public $eolChar = '';
-
- /**
- * The Fixer object to control fixing errors.
- *
- * @var \PHP_CodeSniffer\Fixer
- */
- public $fixer = null;
-
- /**
- * The tokenizer being used for this file.
- *
- * @var \PHP_CodeSniffer\Tokenizers\Tokenizer
- */
- public $tokenizer = null;
-
- /**
- * Was the file loaded from cache?
- *
- * If TRUE, the file was loaded from a local cache.
- * If FALSE, the file was tokenized and processed fully.
- *
- * @var boolean
- */
- public $fromCache = false;
-
- /**
- * The number of tokens in this file.
- *
- * Stored here to save calling count() everywhere.
- *
- * @var integer
- */
- public $numTokens = 0;
-
- /**
- * The tokens stack map.
- *
- * @var array
- */
- protected $tokens = array();
-
- /**
- * The errors raised from sniffs.
- *
- * @var array
- * @see getErrors()
- */
- protected $errors = array();
-
- /**
- * The warnings raised from sniffs.
- *
- * @var array
- * @see getWarnings()
- */
- protected $warnings = array();
-
- /**
- * The metrics recorded by sniffs.
- *
- * @var array
- * @see getMetrics()
- */
- protected $metrics = array();
-
- /**
- * The total number of errors raised.
- *
- * @var integer
- */
- protected $errorCount = 0;
-
- /**
- * The total number of warnings raised.
- *
- * @var integer
- */
- protected $warningCount = 0;
-
- /**
- * The total number of errors and warnings that can be fixed.
- *
- * @var integer
- */
- protected $fixableCount = 0;
-
- /**
- * The total number of errors and warnings that were fixed.
- *
- * @var integer
- */
- protected $fixedCount = 0;
-
- /**
- * An array of sniffs that are being ignored.
- *
- * @var array
- */
- protected $ignoredListeners = array();
-
- /**
- * An array of message codes that are being ignored.
- *
- * @var array
- */
- protected $ignoredCodes = array();
-
- /**
- * An array of sniffs listening to this file's processing.
- *
- * @var \PHP_CodeSniffer\Sniffs\Sniff[]
- */
- protected $listeners = array();
-
- /**
- * The class name of the sniff currently processing the file.
- *
- * @var string
- */
- protected $activeListener = '';
-
- /**
- * An array of sniffs being processed and how long they took.
- *
- * @var array
- */
- protected $listenerTimes = array();
-
- /**
- * A cache of often used config settings to improve performance.
- *
- * Storing them here saves 10k+ calls to __get() in the Config class.
- *
- * @var array
- */
- protected $configCache = array();
-
-
- /**
- * Constructs a file.
- *
- * @param string $path The absolute path to the file to process.
- * @param \PHP_CodeSniffer\Ruleset $ruleset The ruleset used for the run.
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- *
- * @return void
- */
- public function __construct($path, Ruleset $ruleset, Config $config)
- {
- $this->path = $path;
- $this->ruleset = $ruleset;
- $this->config = $config;
- $this->fixer = new Fixer();
-
- $parts = explode('.', $path);
- $extension = array_pop($parts);
- if (isset($config->extensions[$extension]) === true) {
- $this->tokenizerType = $config->extensions[$extension];
- } else {
- // Revert to default.
- $this->tokenizerType = 'PHP';
- }
-
- $this->configCache['cache'] = $this->config->cache;
- $this->configCache['sniffs'] = $this->config->sniffs;
- $this->configCache['exclude'] = $this->config->exclude;
- $this->configCache['errorSeverity'] = $this->config->errorSeverity;
- $this->configCache['warningSeverity'] = $this->config->warningSeverity;
- $this->configCache['recordErrors'] = $this->config->recordErrors;
- $this->configCache['ignorePatterns'] = $this->ruleset->getIgnorePatterns();
-
- }//end __construct()
-
-
- /**
- * Set the content of the file.
- *
- * Setting the content also calculates the EOL char being used.
- *
- * @param string $content The file content.
- *
- * @return void
- */
- public function setContent($content)
- {
- $this->content = $content;
- $this->tokens = array();
-
- try {
- $this->eolChar = Util\Common::detectLineEndings($content);
- } catch (RuntimeException $e) {
- $this->addWarningOnLine($e->getMessage(), 1, 'Internal.DetectLineEndings');
- return;
- }
-
- }//end setContent()
-
-
- /**
- * Reloads the content of the file.
- *
- * By default, we have no idea where our content comes from,
- * so we can't do anything.
- *
- * @return void
- */
- public function reloadContent()
- {
-
- }//end reloadContent()
-
-
- /**
- * Disables caching of this file.
- *
- * @return void
- */
- public function disableCaching()
- {
- $this->configCache['cache'] = false;
-
- }//end disableCaching()
-
-
- /**
- * Starts the stack traversal and tells listeners when tokens are found.
- *
- * @return void
- */
- public function process()
- {
- if ($this->ignored === true) {
- return;
- }
-
- $this->errors = array();
- $this->warnings = array();
- $this->errorCount = 0;
- $this->warningCount = 0;
- $this->fixableCount = 0;
-
- $this->parse();
-
- $this->fixer->startFile($this);
-
- if (PHP_CODESNIFFER_VERBOSITY > 2) {
- echo "\t*** START TOKEN PROCESSING ***".PHP_EOL;
- }
-
- $foundCode = false;
- $listenerIgnoreTo = array();
- $inTests = defined('PHP_CODESNIFFER_IN_TESTS');
- $checkAnnotations = $this->config->annotations;
-
- // Foreach of the listeners that have registered to listen for this
- // token, get them to process it.
- foreach ($this->tokens as $stackPtr => $token) {
- // Check for ignored lines.
- if ($checkAnnotations === true
- && ($token['code'] === T_COMMENT
- || $token['code'] === T_DOC_COMMENT_TAG
- || ($inTests === true && $token['code'] === T_INLINE_HTML))
- ) {
- if (strpos($token['content'], '@codingStandards') !== false) {
- if (strpos($token['content'], '@codingStandardsIgnoreFile') !== false) {
- // Ignoring the whole file, just a little late.
- $this->errors = array();
- $this->warnings = array();
- $this->errorCount = 0;
- $this->warningCount = 0;
- $this->fixableCount = 0;
- return;
- } else if (strpos($token['content'], '@codingStandardsChangeSetting') !== false) {
- $start = strpos($token['content'], '@codingStandardsChangeSetting');
- $comment = substr($token['content'], ($start + 30));
- $parts = explode(' ', $comment);
- if ($parts >= 3) {
- $sniffParts = explode('.', $parts[0]);
- if ($sniffParts >= 3) {
- // If the sniff code is not know to us, it has not been registered in this run.
- // But don't throw an error as it could be there for a different standard to use.
- if (isset($this->ruleset->sniffCodes[$parts[0]]) === true) {
- $listenerCode = array_shift($parts);
- $propertyCode = array_shift($parts);
- $propertyValue = rtrim(implode(' ', $parts), " */\r\n");
- $listenerClass = $this->ruleset->sniffCodes[$listenerCode];
- $this->ruleset->setSniffProperty($listenerClass, $propertyCode, $propertyValue);
- }
- }
- }
- }//end if
- }//end if
- }//end if
-
- if (PHP_CODESNIFFER_VERBOSITY > 2) {
- $type = $token['type'];
- $content = Util\Common::prepareForOutput($token['content']);
- echo "\t\tProcess token $stackPtr: $type => $content".PHP_EOL;
- }
-
- if ($token['code'] !== T_INLINE_HTML) {
- $foundCode = true;
- }
-
- if (isset($this->ruleset->tokenListeners[$token['code']]) === false) {
- continue;
- }
-
- foreach ($this->ruleset->tokenListeners[$token['code']] as $listenerData) {
- if (isset($this->ignoredListeners[$listenerData['class']]) === true
- || (isset($listenerIgnoreTo[$listenerData['class']]) === true
- && $listenerIgnoreTo[$listenerData['class']] > $stackPtr)
- ) {
- // This sniff is ignoring past this token, or the whole file.
- continue;
- }
-
- // Make sure this sniff supports the tokenizer
- // we are currently using.
- $class = $listenerData['class'];
-
- if (isset($listenerData['tokenizers'][$this->tokenizerType]) === false) {
- continue;
- }
-
- // If the file path matches one of our ignore patterns, skip it.
- // While there is support for a type of each pattern
- // (absolute or relative) we don't actually support it here.
- foreach ($listenerData['ignore'] as $pattern) {
- // We assume a / directory separator, as do the exclude rules
- // most developers write, so we need a special case for any system
- // that is different.
- if (DIRECTORY_SEPARATOR === '\\') {
- $pattern = str_replace('/', '\\\\', $pattern);
- }
-
- $pattern = '`'.$pattern.'`i';
- if (preg_match($pattern, $this->path) === 1) {
- $this->ignoredListeners[$class] = true;
- continue(2);
- }
- }
-
- // If the file path does not match one of our include patterns, skip it.
- // While there is support for a type of each pattern
- // (absolute or relative) we don't actually support it here.
- foreach ($listenerData['include'] as $pattern) {
- // We assume a / directory separator, as do the exclude rules
- // most developers write, so we need a special case for any system
- // that is different.
- if (DIRECTORY_SEPARATOR === '\\') {
- $pattern = str_replace('/', '\\\\', $pattern);
- }
-
- $pattern = '`'.$pattern.'`i';
- if (preg_match($pattern, $this->path) !== 1) {
- $this->ignoredListeners[$class] = true;
- continue(2);
- }
- }
-
- $this->activeListener = $class;
-
- if (PHP_CODESNIFFER_VERBOSITY > 2) {
- $startTime = microtime(true);
- echo "\t\t\tProcessing ".$this->activeListener.'... ';
- }
-
- $ignoreTo = $this->ruleset->sniffs[$class]->process($this, $stackPtr);
- if ($ignoreTo !== null) {
- $listenerIgnoreTo[$this->activeListener] = $ignoreTo;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 2) {
- $timeTaken = (microtime(true) - $startTime);
- if (isset($this->listenerTimes[$this->activeListener]) === false) {
- $this->listenerTimes[$this->activeListener] = 0;
- }
-
- $this->listenerTimes[$this->activeListener] += $timeTaken;
-
- $timeTaken = round(($timeTaken), 4);
- echo "DONE in $timeTaken seconds".PHP_EOL;
- }
-
- $this->activeListener = '';
- }//end foreach
- }//end foreach
-
- // If short open tags are off but the file being checked uses
- // short open tags, the whole content will be inline HTML
- // and nothing will be checked. So try and handle this case.
- // We don't show this error for STDIN because we can't be sure the content
- // actually came directly from the user. It could be something like
- // refs from a Git pre-push hook.
- if ($foundCode === false && $this->tokenizerType === 'PHP' && $this->path !== 'STDIN') {
- $shortTags = (bool) ini_get('short_open_tag');
- if ($shortTags === false) {
- $error = 'No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.';
- $this->addWarning($error, null, 'Internal.NoCodeFound');
- }
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 2) {
- echo "\t*** END TOKEN PROCESSING ***".PHP_EOL;
- echo "\t*** START SNIFF PROCESSING REPORT ***".PHP_EOL;
-
- asort($this->listenerTimes, SORT_NUMERIC);
- $this->listenerTimes = array_reverse($this->listenerTimes, true);
- foreach ($this->listenerTimes as $listener => $timeTaken) {
- echo "\t$listener: ".round(($timeTaken), 4).' secs'.PHP_EOL;
- }
-
- echo "\t*** END SNIFF PROCESSING REPORT ***".PHP_EOL;
- }
-
- $this->fixedCount += $this->fixer->getFixCount();
-
- }//end process()
-
-
- /**
- * Tokenizes the file and prepares it for the test run.
- *
- * @return void
- */
- public function parse()
- {
- if (empty($this->tokens) === false) {
- // File has already been parsed.
- return;
- }
-
- try {
- $tokenizerClass = 'PHP_CodeSniffer\Tokenizers\\'.$this->tokenizerType;
- $this->tokenizer = new $tokenizerClass($this->content, $this->config, $this->eolChar);
- $this->tokens = $this->tokenizer->getTokens();
- } catch (TokenizerException $e) {
- $this->addWarning($e->getMessage(), null, 'Internal.Tokenizer.Exception');
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- echo "[$this->tokenizerType => tokenizer error]... ";
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo PHP_EOL;
- }
- }
-
- return;
- }
-
- $this->numTokens = count($this->tokens);
-
- // Check for mixed line endings as these can cause tokenizer errors and we
- // should let the user know that the results they get may be incorrect.
- // This is done by removing all backslashes, removing the newline char we
- // detected, then converting newlines chars into text. If any backslashes
- // are left at the end, we have additional newline chars in use.
- $contents = str_replace('\\', '', $this->content);
- $contents = str_replace($this->eolChar, '', $contents);
- $contents = str_replace("\n", '\n', $contents);
- $contents = str_replace("\r", '\r', $contents);
- if (strpos($contents, '\\') !== false) {
- $error = 'File has mixed line endings; this may cause incorrect results';
- $this->addWarningOnLine($error, 1, 'Internal.LineEndings.Mixed');
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- if ($this->numTokens === 0) {
- $numLines = 0;
- } else {
- $numLines = $this->tokens[($this->numTokens - 1)]['line'];
- }
-
- echo "[$this->tokenizerType => $this->numTokens tokens in $numLines lines]... ";
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo PHP_EOL;
- }
- }
-
- }//end parse()
-
-
- /**
- * Returns the token stack for this file.
- *
- * @return array
- */
- public function getTokens()
- {
- return $this->tokens;
-
- }//end getTokens()
-
-
- /**
- * Remove vars stored in this file that are no longer required.
- *
- * @return void
- */
- public function cleanUp()
- {
- $this->listenerTimes = null;
- $this->content = null;
- $this->tokens = null;
- $this->tokenizer = null;
- $this->fixer = null;
- $this->config = null;
- $this->ruleset = null;
-
- }//end cleanUp()
-
-
- /**
- * Records an error against a specific token in the file.
- *
- * @param string $error The error message.
- * @param int $stackPtr The stack position where the error occurred.
- * @param string $code A violation code unique to the sniff message.
- * @param array $data Replacements for the error message.
- * @param int $severity The severity level for this error. A value of 0
- * will be converted into the default severity level.
- * @param boolean $fixable Can the error be fixed by the sniff?
- *
- * @return boolean
- */
- public function addError(
- $error,
- $stackPtr,
- $code,
- $data=array(),
- $severity=0,
- $fixable=false
- ) {
- if ($stackPtr === null) {
- $line = 1;
- $column = 1;
- } else {
- $line = $this->tokens[$stackPtr]['line'];
- $column = $this->tokens[$stackPtr]['column'];
- }
-
- return $this->addMessage(true, $error, $line, $column, $code, $data, $severity, $fixable);
-
- }//end addError()
-
-
- /**
- * Records a warning against a specific token in the file.
- *
- * @param string $warning The error message.
- * @param int $stackPtr The stack position where the error occurred.
- * @param string $code A violation code unique to the sniff message.
- * @param array $data Replacements for the warning message.
- * @param int $severity The severity level for this warning. A value of 0
- * will be converted into the default severity level.
- * @param boolean $fixable Can the warning be fixed by the sniff?
- *
- * @return boolean
- */
- public function addWarning(
- $warning,
- $stackPtr,
- $code,
- $data=array(),
- $severity=0,
- $fixable=false
- ) {
- if ($stackPtr === null) {
- $line = 1;
- $column = 1;
- } else {
- $line = $this->tokens[$stackPtr]['line'];
- $column = $this->tokens[$stackPtr]['column'];
- }
-
- return $this->addMessage(false, $warning, $line, $column, $code, $data, $severity, $fixable);
-
- }//end addWarning()
-
-
- /**
- * Records an error against a specific line in the file.
- *
- * @param string $error The error message.
- * @param int $line The line on which the error occurred.
- * @param string $code A violation code unique to the sniff message.
- * @param array $data Replacements for the error message.
- * @param int $severity The severity level for this error. A value of 0
- * will be converted into the default severity level.
- *
- * @return boolean
- */
- public function addErrorOnLine(
- $error,
- $line,
- $code,
- $data=array(),
- $severity=0
- ) {
- return $this->addMessage(true, $error, $line, 1, $code, $data, $severity, false);
-
- }//end addErrorOnLine()
-
-
- /**
- * Records a warning against a specific token in the file.
- *
- * @param string $warning The error message.
- * @param int $line The line on which the warning occurred.
- * @param string $code A violation code unique to the sniff message.
- * @param array $data Replacements for the warning message.
- * @param int $severity The severity level for this warning. A value of 0 will
- * will be converted into the default severity level.
- *
- * @return boolean
- */
- public function addWarningOnLine(
- $warning,
- $line,
- $code,
- $data=array(),
- $severity=0
- ) {
- return $this->addMessage(false, $warning, $line, 1, $code, $data, $severity, false);
-
- }//end addWarningOnLine()
-
-
- /**
- * Records a fixable error against a specific token in the file.
- *
- * Returns true if the error was recorded and should be fixed.
- *
- * @param string $error The error message.
- * @param int $stackPtr The stack position where the error occurred.
- * @param string $code A violation code unique to the sniff message.
- * @param array $data Replacements for the error message.
- * @param int $severity The severity level for this error. A value of 0
- * will be converted into the default severity level.
- *
- * @return boolean
- */
- public function addFixableError(
- $error,
- $stackPtr,
- $code,
- $data=array(),
- $severity=0
- ) {
- $recorded = $this->addError($error, $stackPtr, $code, $data, $severity, true);
- if ($recorded === true && $this->fixer->enabled === true) {
- return true;
- }
-
- return false;
-
- }//end addFixableError()
-
-
- /**
- * Records a fixable warning against a specific token in the file.
- *
- * Returns true if the warning was recorded and should be fixed.
- *
- * @param string $warning The error message.
- * @param int $stackPtr The stack position where the error occurred.
- * @param string $code A violation code unique to the sniff message.
- * @param array $data Replacements for the warning message.
- * @param int $severity The severity level for this warning. A value of 0
- * will be converted into the default severity level.
- *
- * @return boolean
- */
- public function addFixableWarning(
- $warning,
- $stackPtr,
- $code,
- $data=array(),
- $severity=0
- ) {
- $recorded = $this->addWarning($warning, $stackPtr, $code, $data, $severity, true);
- if ($recorded === true && $this->fixer->enabled === true) {
- return true;
- }
-
- return false;
-
- }//end addFixableWarning()
-
-
- /**
- * Adds an error to the error stack.
- *
- * @param boolean $error Is this an error message?
- * @param string $message The text of the message.
- * @param int $line The line on which the message occurred.
- * @param int $column The column at which the message occurred.
- * @param string $code A violation code unique to the sniff message.
- * @param array $data Replacements for the message.
- * @param int $severity The severity level for this message. A value of 0
- * will be converted into the default severity level.
- * @param boolean $fixable Can the problem be fixed by the sniff?
- *
- * @return boolean
- */
- protected function addMessage($error, $message, $line, $column, $code, $data, $severity, $fixable)
- {
- if (isset($this->tokenizer->ignoredLines[$line]) === true) {
- return false;
- }
-
- $includeAll = true;
- if ($this->configCache['cache'] === false
- || $this->configCache['recordErrors'] === false
- ) {
- $includeAll = false;
- }
-
- // Work out which sniff generated the message.
- $parts = explode('.', $code);
- if ($parts[0] === 'Internal') {
- // An internal message.
- $listenerCode = Util\Common::getSniffCode($this->activeListener);
- $sniffCode = $code;
- $checkCodes = array($sniffCode);
- } else {
- if ($parts[0] !== $code) {
- // The full message code has been passed in.
- $sniffCode = $code;
- $listenerCode = substr($sniffCode, 0, strrpos($sniffCode, '.'));
- } else {
- $listenerCode = Util\Common::getSniffCode($this->activeListener);
- $sniffCode = $listenerCode.'.'.$code;
- $parts = explode('.', $sniffCode);
- }
-
- $checkCodes = array(
- $sniffCode,
- $parts[0].'.'.$parts[1].'.'.$parts[2],
- $parts[0].'.'.$parts[1],
- $parts[0],
- );
- }//end if
-
- // Filter out any messages for sniffs that shouldn't have run
- // due to the use of the --sniffs command line argument.
- if ($includeAll === false
- && ((empty($this->configCache['sniffs']) === false
- && in_array($listenerCode, $this->configCache['sniffs']) === false)
- || (empty($this->configCache['exclude']) === false
- && in_array($listenerCode, $this->configCache['exclude']) === true))
- ) {
- return false;
- }
-
- // If we know this sniff code is being ignored for this file, return early.
- foreach ($checkCodes as $checkCode) {
- if (isset($this->ignoredCodes[$checkCode]) === true) {
- return false;
- }
- }
-
- $oppositeType = 'warning';
- if ($error === false) {
- $oppositeType = 'error';
- }
-
- foreach ($checkCodes as $checkCode) {
- // Make sure this message type has not been set to the opposite message type.
- if (isset($this->ruleset->ruleset[$checkCode]['type']) === true
- && $this->ruleset->ruleset[$checkCode]['type'] === $oppositeType
- ) {
- $error = !$error;
- break;
- }
- }
-
- if ($error === true) {
- $configSeverity = $this->configCache['errorSeverity'];
- $messageCount = &$this->errorCount;
- $messages = &$this->errors;
- } else {
- $configSeverity = $this->configCache['warningSeverity'];
- $messageCount = &$this->warningCount;
- $messages = &$this->warnings;
- }
-
- if ($includeAll === false && $configSeverity === 0) {
- // Don't bother doing any processing as these messages are just going to
- // be hidden in the reports anyway.
- return false;
- }
-
- if ($severity === 0) {
- $severity = 5;
- }
-
- foreach ($checkCodes as $checkCode) {
- // Make sure we are interested in this severity level.
- if (isset($this->ruleset->ruleset[$checkCode]['severity']) === true) {
- $severity = $this->ruleset->ruleset[$checkCode]['severity'];
- break;
- }
- }
-
- if ($includeAll === false && $configSeverity > $severity) {
- return false;
- }
-
- // Make sure we are not ignoring this file.
- foreach ($checkCodes as $checkCode) {
- if (isset($this->configCache['ignorePatterns'][$checkCode]) === false) {
- continue;
- }
-
- foreach ($this->configCache['ignorePatterns'][$checkCode] as $pattern => $type) {
- // While there is support for a type of each pattern
- // (absolute or relative) we don't actually support it here.
- $replacements = array(
- '\\,' => ',',
- '*' => '.*',
- );
-
- // We assume a / directory separator, as do the exclude rules
- // most developers write, so we need a special case for any system
- // that is different.
- if (DIRECTORY_SEPARATOR === '\\') {
- $replacements['/'] = '\\\\';
- }
-
- $pattern = '`'.strtr($pattern, $replacements).'`i';
- if (preg_match($pattern, $this->path) === 1) {
- $this->ignoredCodes[$checkCode] = true;
- return false;
- }
- }//end foreach
- }//end foreach
-
- $messageCount++;
- if ($fixable === true) {
- $this->fixableCount++;
- }
-
- if ($this->configCache['recordErrors'] === false
- && $includeAll === false
- ) {
- return true;
- }
-
- // Work out the error message.
- if (isset($this->ruleset->ruleset[$sniffCode]['message']) === true) {
- $message = $this->ruleset->ruleset[$sniffCode]['message'];
- }
-
- if (empty($data) === false) {
- $message = vsprintf($message, $data);
- }
-
- if (isset($messages[$line]) === false) {
- $messages[$line] = array();
- }
-
- if (isset($messages[$line][$column]) === false) {
- $messages[$line][$column] = array();
- }
-
- $messages[$line][$column][] = array(
- 'message' => $message,
- 'source' => $sniffCode,
- 'listener' => $this->activeListener,
- 'severity' => $severity,
- 'fixable' => $fixable,
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1
- && $this->fixer->enabled === true
- && $fixable === true
- ) {
- @ob_end_clean();
- echo "\tE: [Line $line] $message ($sniffCode)".PHP_EOL;
- ob_start();
- }
-
- return true;
-
- }//end addMessage()
-
-
- /**
- * Adds an warning to the warning stack.
- *
- * @param int $stackPtr The stack position where the metric was recorded.
- * @param string $metric The name of the metric being recorded.
- * @param string $value The value of the metric being recorded.
- *
- * @return boolean
- */
- public function recordMetric($stackPtr, $metric, $value)
- {
- if (isset($this->metrics[$metric]) === false) {
- $this->metrics[$metric] = array('values' => array($value => 1));
- } else {
- if (isset($this->metrics[$metric]['values'][$value]) === false) {
- $this->metrics[$metric]['values'][$value] = 1;
- } else {
- $this->metrics[$metric]['values'][$value]++;
- }
- }
-
- return true;
-
- }//end recordMetric()
-
-
- /**
- * Returns the number of errors raised.
- *
- * @return int
- */
- public function getErrorCount()
- {
- return $this->errorCount;
-
- }//end getErrorCount()
-
-
- /**
- * Returns the number of warnings raised.
- *
- * @return int
- */
- public function getWarningCount()
- {
- return $this->warningCount;
-
- }//end getWarningCount()
-
-
- /**
- * Returns the number of successes recorded.
- *
- * @return int
- */
- public function getSuccessCount()
- {
- return $this->successCount;
-
- }//end getSuccessCount()
-
-
- /**
- * Returns the number of fixable errors/warnings raised.
- *
- * @return int
- */
- public function getFixableCount()
- {
- return $this->fixableCount;
-
- }//end getFixableCount()
-
-
- /**
- * Returns the number of fixed errors/warnings.
- *
- * @return int
- */
- public function getFixedCount()
- {
- return $this->fixedCount;
-
- }//end getFixedCount()
-
-
- /**
- * Returns the list of ignored lines.
- *
- * @return array
- */
- public function getIgnoredLines()
- {
- return $this->tokenizer->ignoredLines;
-
- }//end getIgnoredLines()
-
-
- /**
- * Returns the errors raised from processing this file.
- *
- * @return array
- */
- public function getErrors()
- {
- return $this->errors;
-
- }//end getErrors()
-
-
- /**
- * Returns the warnings raised from processing this file.
- *
- * @return array
- */
- public function getWarnings()
- {
- return $this->warnings;
-
- }//end getWarnings()
-
-
- /**
- * Returns the metrics found while processing this file.
- *
- * @return array
- */
- public function getMetrics()
- {
- return $this->metrics;
-
- }//end getMetrics()
-
-
- /**
- * Returns the absolute filename of this file.
- *
- * @return string
- */
- public function getFilename()
- {
- return $this->path;
-
- }//end getFilename()
-
-
- /**
- * Returns the declaration names for classes, interfaces, traits, and functions.
- *
- * @param int $stackPtr The position of the declaration token which
- * declared the class, interface, trait, or function.
- *
- * @return string|null The name of the class, interface, trait, or function;
- * or NULL if the function or class is anonymous.
- * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the specified token is not of type
- * T_FUNCTION, T_CLASS, T_ANON_CLASS,
- * T_CLOSURE, T_TRAIT, or T_INTERFACE.
- */
- public function getDeclarationName($stackPtr)
- {
- $tokenCode = $this->tokens[$stackPtr]['code'];
-
- if ($tokenCode === T_ANON_CLASS || $tokenCode === T_CLOSURE) {
- return null;
- }
-
- if ($tokenCode !== T_FUNCTION
- && $tokenCode !== T_CLASS
- && $tokenCode !== T_INTERFACE
- && $tokenCode !== T_TRAIT
- ) {
- throw new RuntimeException('Token type "'.$this->tokens[$stackPtr]['type'].'" is not T_FUNCTION, T_CLASS, T_INTERFACE or T_TRAIT');
- }
-
- if ($tokenCode === T_FUNCTION
- && strtolower($this->tokens[$stackPtr]['content']) !== 'function'
- ) {
- // This is a function declared without the "function" keyword.
- // So this token is the function name.
- return $this->tokens[$stackPtr]['content'];
- }
-
- $content = null;
- for ($i = $stackPtr; $i < $this->numTokens; $i++) {
- if ($this->tokens[$i]['code'] === T_STRING) {
- $content = $this->tokens[$i]['content'];
- break;
- }
- }
-
- return $content;
-
- }//end getDeclarationName()
-
-
- /**
- * Returns the method parameters for the specified function token.
- *
- * Each parameter is in the following format:
- *
- * <code>
- * 0 => array(
- * 'name' => '$var', // The variable name.
- * 'content' => string, // The full content of the variable definition.
- * 'pass_by_reference' => boolean, // Is the variable passed by reference?
- * 'variable_length' => boolean, // Is the param of variable length through use of `...` ?
- * 'type_hint' => string, // The type hint for the variable.
- * 'nullable_type' => boolean, // Is the variable using a nullable type?
- * )
- * </code>
- *
- * Parameters with default values have an additional array index of
- * 'default' with the value of the default as a string.
- *
- * @param int $stackPtr The position in the stack of the function token
- * to acquire the parameters for.
- *
- * @return array
- * @throws \PHP_CodeSniffer\Exceptions\TokenizerException If the specified $stackPtr is not of
- * type T_FUNCTION or T_CLOSURE.
- */
- public function getMethodParameters($stackPtr)
- {
- if ($this->tokens[$stackPtr]['code'] !== T_FUNCTION
- && $this->tokens[$stackPtr]['code'] !== T_CLOSURE
- ) {
- throw new TokenizerException('$stackPtr must be of type T_FUNCTION or T_CLOSURE');
- }
-
- $opener = $this->tokens[$stackPtr]['parenthesis_opener'];
- $closer = $this->tokens[$stackPtr]['parenthesis_closer'];
-
- $vars = array();
- $currVar = null;
- $paramStart = ($opener + 1);
- $defaultStart = null;
- $paramCount = 0;
- $passByReference = false;
- $variableLength = false;
- $typeHint = '';
- $nullableType = false;
-
- for ($i = $paramStart; $i <= $closer; $i++) {
- // Check to see if this token has a parenthesis or bracket opener. If it does
- // it's likely to be an array which might have arguments in it. This
- // could cause problems in our parsing below, so lets just skip to the
- // end of it.
- if (isset($this->tokens[$i]['parenthesis_opener']) === true) {
- // Don't do this if it's the close parenthesis for the method.
- if ($i !== $this->tokens[$i]['parenthesis_closer']) {
- $i = ($this->tokens[$i]['parenthesis_closer'] + 1);
- }
- }
-
- if (isset($this->tokens[$i]['bracket_opener']) === true) {
- // Don't do this if it's the close parenthesis for the method.
- if ($i !== $this->tokens[$i]['bracket_closer']) {
- $i = ($this->tokens[$i]['bracket_closer'] + 1);
- }
- }
-
- switch ($this->tokens[$i]['code']) {
- case T_BITWISE_AND:
- $passByReference = true;
- break;
- case T_VARIABLE:
- $currVar = $i;
- break;
- case T_ELLIPSIS:
- $variableLength = true;
- break;
- case T_ARRAY_HINT:
- case T_CALLABLE:
- $typeHint .= $this->tokens[$i]['content'];
- break;
- case T_SELF:
- case T_PARENT:
- case T_STATIC:
- // Self is valid, the others invalid, but were probably intended as type hints.
- if (isset($defaultStart) === false) {
- $typeHint .= $this->tokens[$i]['content'];
- }
- break;
- case T_STRING:
- // This is a string, so it may be a type hint, but it could
- // also be a constant used as a default value.
- $prevComma = false;
- for ($t = $i; $t >= $opener; $t--) {
- if ($this->tokens[$t]['code'] === T_COMMA) {
- $prevComma = $t;
- break;
- }
- }
-
- if ($prevComma !== false) {
- $nextEquals = false;
- for ($t = $prevComma; $t < $i; $t++) {
- if ($this->tokens[$t]['code'] === T_EQUAL) {
- $nextEquals = $t;
- break;
- }
- }
-
- if ($nextEquals !== false) {
- break;
- }
- }
-
- if ($defaultStart === null) {
- $typeHint .= $this->tokens[$i]['content'];
- }
- break;
- case T_NS_SEPARATOR:
- // Part of a type hint or default value.
- if ($defaultStart === null) {
- $typeHint .= $this->tokens[$i]['content'];
- }
- break;
- case T_NULLABLE:
- if ($defaultStart === null) {
- $nullableType = true;
- $typeHint .= $this->tokens[$i]['content'];
- }
- break;
- case T_CLOSE_PARENTHESIS:
- case T_COMMA:
- // If it's null, then there must be no parameters for this
- // method.
- if ($currVar === null) {
- continue;
- }
-
- $vars[$paramCount] = array();
- $vars[$paramCount]['token'] = $currVar;
- $vars[$paramCount]['name'] = $this->tokens[$currVar]['content'];
- $vars[$paramCount]['content'] = trim($this->getTokensAsString($paramStart, ($i - $paramStart)));
-
- if ($defaultStart !== null) {
- $vars[$paramCount]['default'] = trim($this->getTokensAsString($defaultStart, ($i - $defaultStart)));
- }
-
- $vars[$paramCount]['pass_by_reference'] = $passByReference;
- $vars[$paramCount]['variable_length'] = $variableLength;
- $vars[$paramCount]['type_hint'] = $typeHint;
- $vars[$paramCount]['nullable_type'] = $nullableType;
-
- // Reset the vars, as we are about to process the next parameter.
- $defaultStart = null;
- $paramStart = ($i + 1);
- $passByReference = false;
- $variableLength = false;
- $typeHint = '';
- $nullableType = false;
-
- $paramCount++;
- break;
- case T_EQUAL:
- $defaultStart = ($i + 1);
- break;
- }//end switch
- }//end for
-
- return $vars;
-
- }//end getMethodParameters()
-
-
- /**
- * Returns the visibility and implementation properties of a method.
- *
- * The format of the array is:
- * <code>
- * array(
- * 'scope' => 'public', // public protected or protected
- * 'scope_specified' => true, // true is scope keyword was found.
- * 'is_abstract' => false, // true if the abstract keyword was found.
- * 'is_final' => false, // true if the final keyword was found.
- * 'is_static' => false, // true if the static keyword was found.
- * );
- * </code>
- *
- * @param int $stackPtr The position in the stack of the function token to
- * acquire the properties for.
- *
- * @return array
- * @throws \PHP_CodeSniffer\Exceptions\TokenizerException If the specified position is not a
- * T_FUNCTION token.
- */
- public function getMethodProperties($stackPtr)
- {
- if ($this->tokens[$stackPtr]['code'] !== T_FUNCTION
- && $this->tokens[$stackPtr]['code'] !== T_CLOSURE
- ) {
- throw new TokenizerException('$stackPtr must be of type T_FUNCTION or T_CLOSURE');
- }
-
- if ($this->tokens[$stackPtr]['code'] === T_FUNCTION) {
- $valid = array(
- T_PUBLIC => T_PUBLIC,
- T_PRIVATE => T_PRIVATE,
- T_PROTECTED => T_PROTECTED,
- T_STATIC => T_STATIC,
- T_FINAL => T_FINAL,
- T_ABSTRACT => T_ABSTRACT,
- T_WHITESPACE => T_WHITESPACE,
- T_COMMENT => T_COMMENT,
- T_DOC_COMMENT => T_DOC_COMMENT,
- );
- } else {
- $valid = array(
- T_STATIC => T_STATIC,
- T_WHITESPACE => T_WHITESPACE,
- T_COMMENT => T_COMMENT,
- T_DOC_COMMENT => T_DOC_COMMENT,
- );
- }
-
- $scope = 'public';
- $scopeSpecified = false;
- $isAbstract = false;
- $isFinal = false;
- $isStatic = false;
-
- for ($i = ($stackPtr - 1); $i > 0; $i--) {
- if (isset($valid[$this->tokens[$i]['code']]) === false) {
- break;
- }
-
- switch ($this->tokens[$i]['code']) {
- case T_PUBLIC:
- $scope = 'public';
- $scopeSpecified = true;
- break;
- case T_PRIVATE:
- $scope = 'private';
- $scopeSpecified = true;
- break;
- case T_PROTECTED:
- $scope = 'protected';
- $scopeSpecified = true;
- break;
- case T_ABSTRACT:
- $isAbstract = true;
- break;
- case T_FINAL:
- $isFinal = true;
- break;
- case T_STATIC:
- $isStatic = true;
- break;
- }//end switch
- }//end for
-
- return array(
- 'scope' => $scope,
- 'scope_specified' => $scopeSpecified,
- 'is_abstract' => $isAbstract,
- 'is_final' => $isFinal,
- 'is_static' => $isStatic,
- );
-
- }//end getMethodProperties()
-
-
- /**
- * Returns the visibility and implementation properties of the class member
- * variable found at the specified position in the stack.
- *
- * The format of the array is:
- *
- * <code>
- * array(
- * 'scope' => 'public', // public protected or protected
- * 'is_static' => false, // true if the static keyword was found.
- * );
- * </code>
- *
- * @param int $stackPtr The position in the stack of the T_VARIABLE token to
- * acquire the properties for.
- *
- * @return array
- * @throws \PHP_CodeSniffer\Exceptions\TokenizerException If the specified position is not a
- * T_VARIABLE token, or if the position is not
- * a class member variable.
- */
- public function getMemberProperties($stackPtr)
- {
- if ($this->tokens[$stackPtr]['code'] !== T_VARIABLE) {
- throw new TokenizerException('$stackPtr must be of type T_VARIABLE');
- }
-
- $conditions = array_keys($this->tokens[$stackPtr]['conditions']);
- $ptr = array_pop($conditions);
- if (isset($this->tokens[$ptr]) === false
- || ($this->tokens[$ptr]['code'] !== T_CLASS
- && $this->tokens[$ptr]['code'] !== T_ANON_CLASS
- && $this->tokens[$ptr]['code'] !== T_TRAIT)
- ) {
- if (isset($this->tokens[$ptr]) === true
- && $this->tokens[$ptr]['code'] === T_INTERFACE
- ) {
- // T_VARIABLEs in interfaces can actually be method arguments
- // but they wont be seen as being inside the method because there
- // are no scope openers and closers for abstract methods. If it is in
- // parentheses, we can be pretty sure it is a method argument.
- if (isset($this->tokens[$stackPtr]['nested_parenthesis']) === false
- || empty($this->tokens[$stackPtr]['nested_parenthesis']) === true
- ) {
- $error = 'Possible parse error: interfaces may not include member vars';
- $this->addWarning($error, $stackPtr, 'Internal.ParseError.InterfaceHasMemberVar');
- return array();
- }
- } else {
- throw new TokenizerException('$stackPtr is not a class member var');
- }
- }
-
- $valid = array(
- T_PUBLIC => T_PUBLIC,
- T_PRIVATE => T_PRIVATE,
- T_PROTECTED => T_PROTECTED,
- T_STATIC => T_STATIC,
- T_WHITESPACE => T_WHITESPACE,
- T_COMMENT => T_COMMENT,
- T_DOC_COMMENT => T_DOC_COMMENT,
- T_VARIABLE => T_VARIABLE,
- T_COMMA => T_COMMA,
- );
-
- $scope = 'public';
- $scopeSpecified = false;
- $isStatic = false;
-
- for ($i = ($stackPtr - 1); $i > 0; $i--) {
- if (isset($valid[$this->tokens[$i]['code']]) === false) {
- break;
- }
-
- switch ($this->tokens[$i]['code']) {
- case T_PUBLIC:
- $scope = 'public';
- $scopeSpecified = true;
- break;
- case T_PRIVATE:
- $scope = 'private';
- $scopeSpecified = true;
- break;
- case T_PROTECTED:
- $scope = 'protected';
- $scopeSpecified = true;
- break;
- case T_STATIC:
- $isStatic = true;
- break;
- }
- }//end for
-
- return array(
- 'scope' => $scope,
- 'scope_specified' => $scopeSpecified,
- 'is_static' => $isStatic,
- );
-
- }//end getMemberProperties()
-
-
- /**
- * Returns the visibility and implementation properties of a class.
- *
- * The format of the array is:
- * <code>
- * array(
- * 'is_abstract' => false, // true if the abstract keyword was found.
- * 'is_final' => false, // true if the final keyword was found.
- * );
- * </code>
- *
- * @param int $stackPtr The position in the stack of the T_CLASS token to
- * acquire the properties for.
- *
- * @return array
- * @throws \PHP_CodeSniffer\Exceptions\TokenizerException If the specified position is not a
- * T_CLASS token.
- */
- public function getClassProperties($stackPtr)
- {
- if ($this->tokens[$stackPtr]['code'] !== T_CLASS) {
- throw new TokenizerException('$stackPtr must be of type T_CLASS');
- }
-
- $valid = array(
- T_FINAL => T_FINAL,
- T_ABSTRACT => T_ABSTRACT,
- T_WHITESPACE => T_WHITESPACE,
- T_COMMENT => T_COMMENT,
- T_DOC_COMMENT => T_DOC_COMMENT,
- );
-
- $isAbstract = false;
- $isFinal = false;
-
- for ($i = ($stackPtr - 1); $i > 0; $i--) {
- if (isset($valid[$this->tokens[$i]['code']]) === false) {
- break;
- }
-
- switch ($this->tokens[$i]['code']) {
- case T_ABSTRACT:
- $isAbstract = true;
- break;
-
- case T_FINAL:
- $isFinal = true;
- break;
- }
- }//end for
-
- return array(
- 'is_abstract' => $isAbstract,
- 'is_final' => $isFinal,
- );
-
- }//end getClassProperties()
-
-
- /**
- * Determine if the passed token is a reference operator.
- *
- * Returns true if the specified token position represents a reference.
- * Returns false if the token represents a bitwise operator.
- *
- * @param int $stackPtr The position of the T_BITWISE_AND token.
- *
- * @return boolean
- */
- public function isReference($stackPtr)
- {
- if ($this->tokens[$stackPtr]['code'] !== T_BITWISE_AND) {
- return false;
- }
-
- $tokenBefore = $this->findPrevious(
- Util\Tokens::$emptyTokens,
- ($stackPtr - 1),
- null,
- true
- );
-
- if ($this->tokens[$tokenBefore]['code'] === T_FUNCTION) {
- // Function returns a reference.
- return true;
- }
-
- if ($this->tokens[$tokenBefore]['code'] === T_DOUBLE_ARROW) {
- // Inside a foreach loop, this is a reference.
- return true;
- }
-
- if ($this->tokens[$tokenBefore]['code'] === T_AS) {
- // Inside a foreach loop, this is a reference.
- return true;
- }
-
- if ($this->tokens[$tokenBefore]['code'] === T_OPEN_SHORT_ARRAY) {
- // Inside an array declaration, this is a reference.
- return true;
- }
-
- if (isset(Util\Tokens::$assignmentTokens[$this->tokens[$tokenBefore]['code']]) === true) {
- // This is directly after an assignment. It's a reference. Even if
- // it is part of an operation, the other tests will handle it.
- return true;
- }
-
- if (isset($this->tokens[$stackPtr]['nested_parenthesis']) === true) {
- $brackets = $this->tokens[$stackPtr]['nested_parenthesis'];
- $lastBracket = array_pop($brackets);
- if (isset($this->tokens[$lastBracket]['parenthesis_owner']) === true) {
- $owner = $this->tokens[$this->tokens[$lastBracket]['parenthesis_owner']];
- if ($owner['code'] === T_FUNCTION
- || $owner['code'] === T_CLOSURE
- || $owner['code'] === T_ARRAY
- ) {
- // Inside a function or array declaration, this is a reference.
- return true;
- }
- } else {
- $prev = false;
- for ($t = ($this->tokens[$lastBracket]['parenthesis_opener'] - 1); $t >= 0; $t--) {
- if ($this->tokens[$t]['code'] !== T_WHITESPACE) {
- $prev = $t;
- break;
- }
- }
-
- if ($prev !== false && $this->tokens[$prev]['code'] === T_USE) {
- return true;
- }
- }//end if
- }//end if
-
- $tokenAfter = $this->findNext(
- Util\Tokens::$emptyTokens,
- ($stackPtr + 1),
- null,
- true
- );
-
- if ($this->tokens[$tokenAfter]['code'] === T_VARIABLE
- && ($this->tokens[$tokenBefore]['code'] === T_OPEN_PARENTHESIS
- || $this->tokens[$tokenBefore]['code'] === T_COMMA)
- ) {
- return true;
- }
-
- return false;
-
- }//end isReference()
-
-
- /**
- * Returns the content of the tokens from the specified start position in
- * the token stack for the specified length.
- *
- * @param int $start The position to start from in the token stack.
- * @param int $length The length of tokens to traverse from the start pos.
- *
- * @return string The token contents.
- */
- public function getTokensAsString($start, $length)
- {
- $str = '';
- $end = ($start + $length);
- if ($end > $this->numTokens) {
- $end = $this->numTokens;
- }
-
- for ($i = $start; $i < $end; $i++) {
- $str .= $this->tokens[$i]['content'];
- }
-
- return $str;
-
- }//end getTokensAsString()
-
-
- /**
- * Returns the position of the previous specified token(s).
- *
- * If a value is specified, the previous token of the specified type(s)
- * containing the specified value will be returned.
- *
- * Returns false if no token can be found.
- *
- * @param int|array $types The type(s) of tokens to search for.
- * @param int $start The position to start searching from in the
- * token stack.
- * @param int $end The end position to fail if no token is found.
- * if not specified or null, end will default to
- * the start of the token stack.
- * @param bool $exclude If true, find the previous token that is NOT of
- * the types specified in $types.
- * @param string $value The value that the token(s) must be equal to.
- * If value is omitted, tokens with any value will
- * be returned.
- * @param bool $local If true, tokens outside the current statement
- * will not be checked. IE. checking will stop
- * at the previous semi-colon found.
- *
- * @return int|bool
- * @see findNext()
- */
- public function findPrevious(
- $types,
- $start,
- $end=null,
- $exclude=false,
- $value=null,
- $local=false
- ) {
- $types = (array) $types;
-
- if ($end === null) {
- $end = 0;
- }
-
- for ($i = $start; $i >= $end; $i--) {
- $found = (bool) $exclude;
- foreach ($types as $type) {
- if ($this->tokens[$i]['code'] === $type) {
- $found = !$exclude;
- break;
- }
- }
-
- if ($found === true) {
- if ($value === null) {
- return $i;
- } else if ($this->tokens[$i]['content'] === $value) {
- return $i;
- }
- }
-
- if ($local === true) {
- if (isset($this->tokens[$i]['scope_opener']) === true
- && $i === $this->tokens[$i]['scope_closer']
- ) {
- $i = $this->tokens[$i]['scope_opener'];
- } else if (isset($this->tokens[$i]['bracket_opener']) === true
- && $i === $this->tokens[$i]['bracket_closer']
- ) {
- $i = $this->tokens[$i]['bracket_opener'];
- } else if (isset($this->tokens[$i]['parenthesis_opener']) === true
- && $i === $this->tokens[$i]['parenthesis_closer']
- ) {
- $i = $this->tokens[$i]['parenthesis_opener'];
- } else if ($this->tokens[$i]['code'] === T_SEMICOLON) {
- break;
- }
- }
- }//end for
-
- return false;
-
- }//end findPrevious()
-
-
- /**
- * Returns the position of the next specified token(s).
- *
- * If a value is specified, the next token of the specified type(s)
- * containing the specified value will be returned.
- *
- * Returns false if no token can be found.
- *
- * @param int|array $types The type(s) of tokens to search for.
- * @param int $start The position to start searching from in the
- * token stack.
- * @param int $end The end position to fail if no token is found.
- * if not specified or null, end will default to
- * the end of the token stack.
- * @param bool $exclude If true, find the next token that is NOT of
- * a type specified in $types.
- * @param string $value The value that the token(s) must be equal to.
- * If value is omitted, tokens with any value will
- * be returned.
- * @param bool $local If true, tokens outside the current statement
- * will not be checked. i.e., checking will stop
- * at the next semi-colon found.
- *
- * @return int|bool
- * @see findPrevious()
- */
- public function findNext(
- $types,
- $start,
- $end=null,
- $exclude=false,
- $value=null,
- $local=false
- ) {
- $types = (array) $types;
-
- if ($end === null || $end > $this->numTokens) {
- $end = $this->numTokens;
- }
-
- for ($i = $start; $i < $end; $i++) {
- $found = (bool) $exclude;
- foreach ($types as $type) {
- if ($this->tokens[$i]['code'] === $type) {
- $found = !$exclude;
- break;
- }
- }
-
- if ($found === true) {
- if ($value === null) {
- return $i;
- } else if ($this->tokens[$i]['content'] === $value) {
- return $i;
- }
- }
-
- if ($local === true && $this->tokens[$i]['code'] === T_SEMICOLON) {
- break;
- }
- }//end for
-
- return false;
-
- }//end findNext()
-
-
- /**
- * Returns the position of the first non-whitespace token in a statement.
- *
- * @param int $start The position to start searching from in the token stack.
- * @param int|array $ignore Token types that should not be considered stop points.
- *
- * @return int
- */
- public function findStartOfStatement($start, $ignore=null)
- {
- $endTokens = Util\Tokens::$blockOpeners;
-
- $endTokens[T_COLON] = true;
- $endTokens[T_COMMA] = true;
- $endTokens[T_DOUBLE_ARROW] = true;
- $endTokens[T_SEMICOLON] = true;
- $endTokens[T_OPEN_TAG] = true;
- $endTokens[T_CLOSE_TAG] = true;
- $endTokens[T_OPEN_SHORT_ARRAY] = true;
-
- if ($ignore !== null) {
- $ignore = (array) $ignore;
- foreach ($ignore as $code) {
- if (isset($endTokens[$code]) === true) {
- unset($endTokens[$code]);
- }
- }
- }
-
- $lastNotEmpty = $start;
-
- for ($i = $start; $i >= 0; $i--) {
- if (isset($endTokens[$this->tokens[$i]['code']]) === true) {
- // Found the end of the previous statement.
- return $lastNotEmpty;
- }
-
- if (isset($this->tokens[$i]['scope_opener']) === true
- && $i === $this->tokens[$i]['scope_closer']
- ) {
- // Found the end of the previous scope block.
- return $lastNotEmpty;
- }
-
- // Skip nested statements.
- if (isset($this->tokens[$i]['bracket_opener']) === true
- && $i === $this->tokens[$i]['bracket_closer']
- ) {
- $i = $this->tokens[$i]['bracket_opener'];
- } else if (isset($this->tokens[$i]['parenthesis_opener']) === true
- && $i === $this->tokens[$i]['parenthesis_closer']
- ) {
- $i = $this->tokens[$i]['parenthesis_opener'];
- }
-
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$i]['code']]) === false) {
- $lastNotEmpty = $i;
- }
- }//end for
-
- return 0;
-
- }//end findStartOfStatement()
-
-
- /**
- * Returns the position of the last non-whitespace token in a statement.
- *
- * @param int $start The position to start searching from in the token stack.
- * @param int|array $ignore Token types that should not be considered stop points.
- *
- * @return int
- */
- public function findEndOfStatement($start, $ignore=null)
- {
- $endTokens = array(
- T_COLON => true,
- T_COMMA => true,
- T_DOUBLE_ARROW => true,
- T_SEMICOLON => true,
- T_CLOSE_PARENTHESIS => true,
- T_CLOSE_SQUARE_BRACKET => true,
- T_CLOSE_CURLY_BRACKET => true,
- T_CLOSE_SHORT_ARRAY => true,
- T_OPEN_TAG => true,
- T_CLOSE_TAG => true,
- );
-
- if ($ignore !== null) {
- $ignore = (array) $ignore;
- foreach ($ignore as $code) {
- if (isset($endTokens[$code]) === true) {
- unset($endTokens[$code]);
- }
- }
- }
-
- $lastNotEmpty = $start;
-
- for ($i = $start; $i < $this->numTokens; $i++) {
- if ($i !== $start && isset($endTokens[$this->tokens[$i]['code']]) === true) {
- // Found the end of the statement.
- if ($this->tokens[$i]['code'] === T_CLOSE_PARENTHESIS
- || $this->tokens[$i]['code'] === T_CLOSE_SQUARE_BRACKET
- || $this->tokens[$i]['code'] === T_CLOSE_CURLY_BRACKET
- || $this->tokens[$i]['code'] === T_CLOSE_SHORT_ARRAY
- || $this->tokens[$i]['code'] === T_OPEN_TAG
- || $this->tokens[$i]['code'] === T_CLOSE_TAG
- ) {
- return $lastNotEmpty;
- }
-
- return $i;
- }
-
- // Skip nested statements.
- if (isset($this->tokens[$i]['scope_closer']) === true
- && ($i === $this->tokens[$i]['scope_opener']
- || $i === $this->tokens[$i]['scope_condition'])
- ) {
- $i = $this->tokens[$i]['scope_closer'];
- } else if (isset($this->tokens[$i]['bracket_closer']) === true
- && $i === $this->tokens[$i]['bracket_opener']
- ) {
- $i = $this->tokens[$i]['bracket_closer'];
- } else if (isset($this->tokens[$i]['parenthesis_closer']) === true
- && $i === $this->tokens[$i]['parenthesis_opener']
- ) {
- $i = $this->tokens[$i]['parenthesis_closer'];
- }
-
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$i]['code']]) === false) {
- $lastNotEmpty = $i;
- }
- }//end for
-
- return ($this->numTokens - 1);
-
- }//end findEndOfStatement()
-
-
- /**
- * Returns the position of the first token on a line, matching given type.
- *
- * Returns false if no token can be found.
- *
- * @param int|array $types The type(s) of tokens to search for.
- * @param int $start The position to start searching from in the
- * token stack. The first token matching on
- * this line before this token will be returned.
- * @param bool $exclude If true, find the token that is NOT of
- * the types specified in $types.
- * @param string $value The value that the token must be equal to.
- * If value is omitted, tokens with any value will
- * be returned.
- *
- * @return int | bool
- */
- public function findFirstOnLine($types, $start, $exclude=false, $value=null)
- {
- if (is_array($types) === false) {
- $types = array($types);
- }
-
- $foundToken = false;
-
- for ($i = $start; $i >= 0; $i--) {
- if ($this->tokens[$i]['line'] < $this->tokens[$start]['line']) {
- break;
- }
-
- $found = $exclude;
- foreach ($types as $type) {
- if ($exclude === false) {
- if ($this->tokens[$i]['code'] === $type) {
- $found = true;
- break;
- }
- } else {
- if ($this->tokens[$i]['code'] === $type) {
- $found = false;
- break;
- }
- }
- }
-
- if ($found === true) {
- if ($value === null) {
- $foundToken = $i;
- } else if ($this->tokens[$i]['content'] === $value) {
- $foundToken = $i;
- }
- }
- }//end for
-
- return $foundToken;
-
- }//end findFirstOnLine()
-
-
- /**
- * Determine if the passed token has a condition of one of the passed types.
- *
- * @param int $stackPtr The position of the token we are checking.
- * @param int|array $types The type(s) of tokens to search for.
- *
- * @return boolean
- */
- public function hasCondition($stackPtr, $types)
- {
- // Check for the existence of the token.
- if (isset($this->tokens[$stackPtr]) === false) {
- return false;
- }
-
- // Make sure the token has conditions.
- if (isset($this->tokens[$stackPtr]['conditions']) === false) {
- return false;
- }
-
- $types = (array) $types;
- $conditions = $this->tokens[$stackPtr]['conditions'];
-
- foreach ($types as $type) {
- if (in_array($type, $conditions) === true) {
- // We found a token with the required type.
- return true;
- }
- }
-
- return false;
-
- }//end hasCondition()
-
-
- /**
- * Return the position of the condition for the passed token.
- *
- * Returns FALSE if the token does not have the condition.
- *
- * @param int $stackPtr The position of the token we are checking.
- * @param int $type The type of token to search for.
- *
- * @return int
- */
- public function getCondition($stackPtr, $type)
- {
- // Check for the existence of the token.
- if (isset($this->tokens[$stackPtr]) === false) {
- return false;
- }
-
- // Make sure the token has conditions.
- if (isset($this->tokens[$stackPtr]['conditions']) === false) {
- return false;
- }
-
- $conditions = $this->tokens[$stackPtr]['conditions'];
- foreach ($conditions as $token => $condition) {
- if ($condition === $type) {
- return $token;
- }
- }
-
- return false;
-
- }//end getCondition()
-
-
- /**
- * Returns the name of the class that the specified class extends.
- *
- * Returns FALSE on error or if there is no extended class name.
- *
- * @param int $stackPtr The stack position of the class.
- *
- * @return string|false
- */
- public function findExtendedClassName($stackPtr)
- {
- // Check for the existence of the token.
- if (isset($this->tokens[$stackPtr]) === false) {
- return false;
- }
-
- if ($this->tokens[$stackPtr]['code'] !== T_CLASS
- && $this->tokens[$stackPtr]['code'] !== T_ANON_CLASS
- ) {
- return false;
- }
-
- if (isset($this->tokens[$stackPtr]['scope_closer']) === false) {
- return false;
- }
-
- $classCloserIndex = $this->tokens[$stackPtr]['scope_closer'];
- $extendsIndex = $this->findNext(T_EXTENDS, $stackPtr, $classCloserIndex);
- if (false === $extendsIndex) {
- return false;
- }
-
- $find = array(
- T_NS_SEPARATOR,
- T_STRING,
- T_WHITESPACE,
- );
-
- $end = $this->findNext($find, ($extendsIndex + 1), $classCloserIndex, true);
- $name = $this->getTokensAsString(($extendsIndex + 1), ($end - $extendsIndex - 1));
- $name = trim($name);
-
- if ($name === '') {
- return false;
- }
-
- return $name;
-
- }//end findExtendedClassName()
-
-
- /**
- * Returns the names of the interfaces that the specified class implements.
- *
- * Returns FALSE on error or if there are no implemented interface names.
- *
- * @param int $stackPtr The stack position of the class.
- *
- * @return array|false
- */
- public function findImplementedInterfaceNames($stackPtr)
- {
- // Check for the existence of the token.
- if (isset($this->tokens[$stackPtr]) === false) {
- return false;
- }
-
- if ($this->tokens[$stackPtr]['code'] !== T_CLASS
- && $this->tokens[$stackPtr]['code'] !== T_ANON_CLASS
- ) {
- return false;
- }
-
- if (isset($this->tokens[$stackPtr]['scope_closer']) === false) {
- return false;
- }
-
- $classOpenerIndex = $this->tokens[$stackPtr]['scope_opener'];
- $implementsIndex = $this->findNext(T_IMPLEMENTS, $stackPtr, $classOpenerIndex);
- if ($implementsIndex === false) {
- return false;
- }
-
- $find = array(
- T_NS_SEPARATOR,
- T_STRING,
- T_WHITESPACE,
- T_COMMA,
- );
-
- $end = $this->findNext($find, ($implementsIndex + 1), ($classOpenerIndex + 1), true);
- $name = $this->getTokensAsString(($implementsIndex + 1), ($end - $implementsIndex - 1));
- $name = trim($name);
-
- if ($name === '') {
- return false;
- } else {
- $names = explode(',', $name);
- $names = array_map('trim', $names);
- return $names;
- }
-
- }//end findImplementedInterfaceNames()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/FileList.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/FileList.php
deleted file mode 100644
index d0fd1a7d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/FileList.php
+++ /dev/null
@@ -1,246 +0,0 @@
-<?php
-/**
- * Represents a list of files on the file system that are to be checked during the run.
- *
- * File objects are created as needed rather than all at once.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Files;
-
-use PHP_CodeSniffer\Util;
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Exceptions\DeepExitException;
-
-class FileList implements \Iterator, \Countable
-{
-
- /**
- * A list of file paths that are included in the list.
- *
- * @var array
- */
- private $files = array();
-
- /**
- * The number of files in the list.
- *
- * @var integer
- */
- private $numFiles = 0;
-
- /**
- * The config data for the run.
- *
- * @var \PHP_CodeSniffer\Config
- */
- public $config = null;
-
- /**
- * The ruleset used for the run.
- *
- * @var \PHP_CodeSniffer\Ruleset
- */
- public $ruleset = null;
-
- /**
- * An array of patterns to use for skipping files.
- *
- * @var array
- */
- protected $ignorePatterns = array();
-
-
- /**
- * Constructs a file list and loads in an array of file paths to process.
- *
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- * @param \PHP_CodeSniffer\Ruleset $ruleset The ruleset used for the run.
- *
- * @return void
- */
- public function __construct(Config $config, Ruleset $ruleset)
- {
- $this->ruleset = $ruleset;
- $this->config = $config;
-
- $paths = $config->files;
- foreach ($paths as $path) {
- $isPharFile = Util\Common::isPharFile($path);
- if (is_dir($path) === true || $isPharFile === true) {
- if ($isPharFile === true) {
- $path = 'phar://'.$path;
- }
-
- $filterClass = $this->getFilterClass();
-
- $di = new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS);
- $filter = new $filterClass($di, $path, $config, $ruleset);
- $iterator = new \RecursiveIteratorIterator($filter);
-
- foreach ($iterator as $file) {
- $this->files[$file->getPathname()] = null;
- $this->numFiles++;
- }
- } else {
- $this->addFile($path);
- }//end if
- }//end foreach
-
- reset($this->files);
-
- }//end __construct()
-
-
- /**
- * Add a file to the list.
- *
- * If a file object has already been created, it can be passed here.
- * If it is left NULL, it will be created when accessed.
- *
- * @param string $path The path to the file being added.
- * @param \PHP_CodeSniffer\Files\File $file The file being added.
- *
- * @return void
- */
- public function addFile($path, $file=null)
- {
- // No filtering is done for STDIN when the filename
- // has not been specified.
- if ($path === 'STDIN') {
- $this->files[$path] = $file;
- $this->numFiles++;
- return;
- }
-
- $filterClass = $this->getFilterClass();
-
- $di = new \RecursiveArrayIterator(array($path));
- $filter = new $filterClass($di, $path, $this->config, $this->ruleset);
- $iterator = new \RecursiveIteratorIterator($filter);
-
- foreach ($iterator as $path) {
- $this->files[$path] = $file;
- $this->numFiles++;
- }
-
- }//end addFile()
-
-
- /**
- * Get the class name of the filter being used for the run.
- *
- * @return string
- */
- private function getFilterClass()
- {
- $filterType = $this->config->filter;
-
- if ($filterType === null) {
- $filterClass = '\PHP_CodeSniffer\Filters\Filter';
- } else {
- if (strpos($filterType, '.') !== false) {
- // This is a path to a custom filter class.
- $filename = realpath($filterType);
- if ($filename === false) {
- $error = "ERROR: Custom filter \"$filterType\" not found".PHP_EOL;
- throw new DeepExitException($error, 3);
- }
-
- $filterClass = \PHP_CodeSniffer\Autoload::loadFile($filename);
- } else {
- $filterClass = '\PHP_CodeSniffer\Filters\\'.$filterType;
- }
- }
-
- return $filterClass;
-
- }//end getFilterClass()
-
-
- /**
- * Rewind the iterator to the first file.
- *
- * @return void
- */
- function rewind()
- {
- reset($this->files);
-
- }//end rewind()
-
-
- /**
- * Get the file that is currently being processed.
- *
- * @return \PHP_CodeSniffer\Files\File
- */
- function current()
- {
- $path = key($this->files);
- if ($this->files[$path] === null) {
- $this->files[$path] = new LocalFile($path, $this->ruleset, $this->config);
- }
-
- return $this->files[$path];
-
- }//end current()
-
-
- /**
- * Return the file path of the current file being processed.
- *
- * @return void
- */
- function key()
- {
- return key($this->files);
-
- }//end key()
-
-
- /**
- * Move forward to the next file.
- *
- * @return void
- */
- function next()
- {
- next($this->files);
-
- }//end next()
-
-
- /**
- * Checks if current position is valid.
- *
- * @return boolean
- */
- function valid()
- {
- if (current($this->files) === false) {
- return false;
- }
-
- return true;
-
- }//end valid()
-
-
- /**
- * Return the number of files in the list.
- *
- * @return integer
- */
- function count()
- {
- return $this->numFiles;
-
- }//end count()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php
deleted file mode 100644
index 5acddfe0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php
+++ /dev/null
@@ -1,215 +0,0 @@
-<?php
-/**
- * A local file represents a chunk of text has a file system location.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Files;
-
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Util\Cache;
-
-class LocalFile extends File
-{
-
-
- /**
- * Creates a LocalFile object and sets the content.
- *
- * @param string $path The absolute path to the file.
- * @param \PHP_CodeSniffer\Ruleset $ruleset The ruleset used for the run.
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- *
- * @return void
- */
- public function __construct($path, Ruleset $ruleset, Config $config)
- {
- $path = trim($path);
- if (is_readable($path) === false) {
- parent::__construct($path, $ruleset, $config);
- $error = 'Error opening file; file no longer exists or you do not have access to read the file';
- $this->addMessage(true, $error, 1, 1, 'Internal.LocalFile', array(), 5, false);
- $this->ignored = true;
- return;
- }
-
- // Before we go and spend time tokenizing this file, just check
- // to see if there is a tag up top to indicate that the whole
- // file should be ignored. It must be on one of the first two lines.
- if ($config->annotations === true) {
- $handle = fopen($path, 'r');
- if ($handle !== false) {
- $firstContent = fgets($handle);
- $firstContent .= fgets($handle);
- fclose($handle);
-
- if (strpos($firstContent, '@codingStandardsIgnoreFile') !== false) {
- // We are ignoring the whole file.
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- echo 'Ignoring '.basename($path).PHP_EOL;
- }
-
- $this->ignored = true;
- return;
- }
- }
- }
-
- $this->path = $path;
- $this->reloadContent();
-
- return parent::__construct($path, $ruleset, $config);
-
- }//end __construct()
-
-
- /**
- * Loads the latest version of the file's content from the file system.
- *
- * @return void
- */
- function reloadContent()
- {
- $this->setContent(file_get_contents($this->path));
-
- }//end reloadContent()
-
-
- /**
- * Processes the file.
- *
- * @return void
- */
- public function process()
- {
- if ($this->ignored === true) {
- return;
- }
-
- if ($this->configCache['cache'] === false) {
- return parent::process();
- }
-
- $hash = md5_file($this->path);
- $cache = Cache::get($this->path);
- if ($cache !== false && $cache['hash'] === $hash) {
- // We can't filter metrics, so just load all of them.
- $this->metrics = $cache['metrics'];
-
- if ($this->configCache['recordErrors'] === true) {
- // Replay the cached errors and warnings to filter out the ones
- // we don't need for this specific run.
- $this->configCache['cache'] = false;
- $this->replayErrors($cache['errors'], $cache['warnings']);
- $this->configCache['cache'] = true;
- } else {
- $this->errorCount = $cache['errorCount'];
- $this->warningCount = $cache['warningCount'];
- $this->fixableCount = $cache['fixableCount'];
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 0
- || (PHP_CODESNIFFER_CBF === true && empty($this->config->files) === false)
- ) {
- echo "[loaded from cache]... ";
- }
-
- $this->numTokens = $cache['numTokens'];
- $this->fromCache = true;
- return;
- }//end if
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo PHP_EOL;
- }
-
- parent::process();
-
- $cache = array(
- 'hash' => $hash,
- 'errors' => $this->errors,
- 'warnings' => $this->warnings,
- 'metrics' => $this->metrics,
- 'errorCount' => $this->errorCount,
- 'warningCount' => $this->warningCount,
- 'fixableCount' => $this->fixableCount,
- 'numTokens' => $this->numTokens,
- );
-
- Cache::set($this->path, $cache);
-
- // During caching, we don't filter out errors in any way, so
- // we need to do that manually now by replaying them.
- if ($this->configCache['recordErrors'] === true) {
- $this->configCache['cache'] = false;
- $this->replayErrors($this->errors, $this->warnings);
- $this->configCache['cache'] = true;
- }
-
- }//end process()
-
-
- /**
- * Clears and replays error and warnings for the file.
- *
- * Replaying errors and warnings allows for filtering rules to be changed
- * and then errors and warnings to be reapplied with the new rules. This is
- * particularly useful while caching.
- *
- * @param array $errors The list of errors to replay.
- * @param array $warnings The list of warnings to replay.
- *
- * @return void
- */
- private function replayErrors($errors, $warnings)
- {
- $this->errors = array();
- $this->warnings = array();
- $this->errorCount = 0;
- $this->warningCount = 0;
- $this->fixableCount = 0;
-
- foreach ($errors as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $this->activeListener = $error['listener'];
- $this->addMessage(
- true,
- $error['message'],
- $line,
- $column,
- $error['source'],
- array(),
- $error['severity'],
- $error['fixable']
- );
- }
- }
- }
-
- foreach ($warnings as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $this->activeListener = $error['listener'];
- $this->addMessage(
- false,
- $error['message'],
- $line,
- $column,
- $error['source'],
- array(),
- $error['severity'],
- $error['fixable']
- );
- }
- }
- }
-
- }//end replayErrors()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/ExactMatch.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/ExactMatch.php
deleted file mode 100644
index 13af8ff2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/ExactMatch.php
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-/**
- * An abstract filter class for checking files and folders against exact matches.
- *
- * Supports both whitelists and blacklists.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Filters;
-
-use PHP_CodeSniffer\Util;
-
-abstract class ExactMatch extends Filter
-{
-
- /**
- * A list of files to exclude.
- *
- * @var array
- */
- private $blacklist = null;
-
- /**
- * A list of files to include.
- *
- * If the whitelist is empty, only files in the blacklist will be excluded.
- *
- * @var array
- */
- private $whitelist = null;
-
-
- /**
- * Check whether the current element of the iterator is acceptable.
- *
- * If a file is both blacklisted and whitelisted, it will be deemed unacceptable.
- *
- * @return bool
- */
- public function accept()
- {
- if (parent::accept() === false) {
- return false;
- }
-
- if ($this->blacklist === null) {
- $this->blacklist = $this->getblacklist();
- }
-
- if ($this->whitelist === null) {
- $this->whitelist = $this->getwhitelist();
- }
-
- $filePath = Util\Common::realpath($this->current());
-
- // If file is both blacklisted and whitelisted, the blacklist takes precedence.
- if (isset($this->blacklist[$filePath]) === true) {
- return false;
- }
-
- if (empty($this->whitelist) === true && empty($this->blacklist) === false) {
- // We are only checking a blacklist, so everything else should be whitelisted.
- return true;
- }
-
- return isset($this->whitelist[$filePath]);
-
- }//end accept()
-
-
- /**
- * Returns an iterator for the current entry.
- *
- * Ensures that the blacklist and whitelist are preserved so they don't have
- * to be generated each time.
- *
- * @return \RecursiveIterator
- */
- public function getChildren()
- {
- $children = parent::getChildren();
- $children->blacklist = $this->blacklist;
- $children->whitelist = $this->whitelist;
- return $children;
-
- }//end getChildren()
-
-
- /**
- * Get a list of blacklisted file paths.
- *
- * @return array
- */
- abstract protected function getBlacklist();
-
-
- /**
- * Get a list of whitelisted file paths.
- *
- * @return array
- */
- abstract protected function getWhitelist();
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/Filter.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/Filter.php
deleted file mode 100644
index ca27bde0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/Filter.php
+++ /dev/null
@@ -1,245 +0,0 @@
-<?php
-/**
- * A base filter class for filtering out files and folders during a run.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Filters;
-
-use PHP_CodeSniffer\Util;
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Config;
-
-class Filter extends \RecursiveFilterIterator
-{
- /**
- * The top-level path we are filtering.
- *
- * @var string
- */
- protected $basedir = null;
-
- /**
- * The config data for the run.
- *
- * @var \PHP_CodeSniffer\Config
- */
- protected $config = null;
-
- /**
- * The ruleset used for the run.
- *
- * @var \PHP_CodeSniffer\Ruleset
- */
- protected $ruleset = null;
-
- /**
- * A list of ignore patterns that apply to directories only.
- *
- * @var array
- */
- protected $ignoreDirPatterns = null;
-
- /**
- * A list of ignore patterns that apply to files only.
- *
- * @var array
- */
- protected $ignoreFilePatterns = null;
-
-
- /**
- * Constructs a filter.
- *
- * @param \RecursiveIterator $iterator The iterator we are using to get file paths.
- * @param string $basedir The top-level path we are filtering.
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- * @param \PHP_CodeSniffer\Ruleset $ruleset The ruleset used for the run.
- *
- * @return void
- */
- public function __construct($iterator, $basedir, Config $config, Ruleset $ruleset)
- {
- parent::__construct($iterator);
- $this->basedir = $basedir;
- $this->config = $config;
- $this->ruleset = $ruleset;
-
- }//end __construct()
-
-
- /**
- * Check whether the current element of the iterator is acceptable.
- *
- * Files are checked for allowed extensions and ignore patterns.
- * Directories are checked for ignore patterns only.
- *
- * @return bool
- */
- public function accept()
- {
- $filePath = Util\Common::realpath($this->current());
- if ($filePath === false) {
- return false;
- }
-
- if (is_dir($filePath) === true) {
- if ($this->config->local === true) {
- return false;
- }
- } else if ($this->shouldProcessFile($filePath) === false) {
- return false;
- }
-
- if ($this->shouldIgnorePath($filePath) === true) {
- return false;
- }
-
- return true;
-
- }//end accept()
-
-
- /**
- * Returns an iterator for the current entry.
- *
- * Ensures that the ignore patterns are preserved so they don't have
- * to be generated each time.
- *
- * @return \RecursiveIterator
- */
- public function getChildren()
- {
- $children = new static(
- new \RecursiveDirectoryIterator($this->current(), \RecursiveDirectoryIterator::SKIP_DOTS),
- $this->basedir,
- $this->config,
- $this->ruleset
- );
-
- // Set the ignore patterns so we don't have to generate them again.
- $children->ignoreDirPatterns = $this->ignoreDirPatterns;
- $children->ignoreFilePatterns = $this->ignoreFilePatterns;
- return $children;
-
- }//end getChildren()
-
-
- /**
- * Checks filtering rules to see if a file should be checked.
- *
- * Checks both file extension filters and path ignore filters.
- *
- * @param string $path The path to the file being checked.
- *
- * @return bool
- */
- protected function shouldProcessFile($path)
- {
- // Check that the file's extension is one we are checking.
- // We are strict about checking the extension and we don't
- // let files through with no extension or that start with a dot.
- $fileName = basename($path);
- $fileParts = explode('.', $fileName);
- if ($fileParts[0] === $fileName || $fileParts[0] === '') {
- return false;
- }
-
- // Checking multi-part file extensions, so need to create a
- // complete extension list and make sure one is allowed.
- $extensions = array();
- array_shift($fileParts);
- foreach ($fileParts as $part) {
- $extensions[implode('.', $fileParts)] = 1;
- array_shift($fileParts);
- }
-
- $matches = array_intersect_key($extensions, $this->config->extensions);
- if (empty($matches) === true) {
- return false;
- }
-
- return true;
-
- }//end shouldProcessFile()
-
-
- /**
- * Checks filtering rules to see if a path should be ignored.
- *
- * @param string $path The path to the file or directory being checked.
- *
- * @return bool
- */
- protected function shouldIgnorePath($path)
- {
- if ($this->ignoreFilePatterns === null) {
- $this->ignoreDirPatterns = array();
- $this->ignoreFilePatterns = array();
-
- $ignorePatterns = array_merge($this->config->ignored, $this->ruleset->getIgnorePatterns());
- foreach ($ignorePatterns as $pattern => $type) {
- // If the ignore pattern ends with /* then it is ignoring an entire directory.
- if (substr($pattern, -2) === '/*') {
- $this->ignoreDirPatterns[substr($pattern, 0, -2)] = $type;
- } else {
- $this->ignoreFilePatterns[$pattern] = $type;
- }
- }
- }
-
- $relativePath = $path;
- if (strpos($path, $this->basedir) === 0) {
- // The +1 cuts off the directory separator as well.
- $relativePath = substr($path, (strlen($this->basedir) + 1));
- }
-
- if (is_dir($path) === true) {
- $ignorePatterns = $this->ignoreDirPatterns;
- } else {
- $ignorePatterns = $this->ignoreFilePatterns;
- }
-
- foreach ($ignorePatterns as $pattern => $type) {
- // Maintains backwards compatibility in case the ignore pattern does
- // not have a relative/absolute value.
- if (is_int($pattern) === true) {
- $pattern = $type;
- $type = 'absolute';
- }
-
- $replacements = array(
- '\\,' => ',',
- '*' => '.*',
- );
-
- // We assume a / directory separator, as do the exclude rules
- // most developers write, so we need a special case for any system
- // that is different.
- if (DIRECTORY_SEPARATOR === '\\') {
- $replacements['/'] = '\\\\';
- }
-
- $pattern = strtr($pattern, $replacements);
-
- if ($type === 'relative') {
- $testPath = $relativePath;
- } else {
- $testPath = $path;
- }
-
- $pattern = '`'.$pattern.'`i';
- if (preg_match($pattern, $testPath) === 1) {
- return true;
- }
- }//end foreach
-
- return false;
-
- }//end shouldIgnorePath()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/GitModified.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/GitModified.php
deleted file mode 100644
index 86512e22..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Filters/GitModified.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * A filter to only include files that have been modified or added in a Git repository.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Filters;
-
-use PHP_CodeSniffer\Util;
-
-class GitModified extends ExactMatch
-{
-
-
- /**
- * Get a list of blacklisted file paths.
- *
- * @return array
- */
- protected function getBlacklist()
- {
- return array();
-
- }//end getBlacklist()
-
-
- /**
- * Get a list of whitelisted file paths.
- *
- * @return array
- */
- protected function getWhitelist()
- {
- $modified = array();
-
- $cmd = 'git ls-files -o -m --exclude-standard -- '.escapeshellarg($this->basedir);
- $output = array();
- exec($cmd, $output);
-
- $basedir = $this->basedir;
- if (is_dir($basedir) === false) {
- $basedir = dirname($basedir);
- }
-
- foreach ($output as $path) {
- $path = Util\Common::realpath($path);
- do {
- $modified[$path] = true;
- $path = dirname($path);
- } while ($path !== $basedir);
- }
-
- return $modified;
-
- }//end getWhitelist()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Fixer.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Fixer.php
deleted file mode 100644
index 8ea0ebb1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Fixer.php
+++ /dev/null
@@ -1,725 +0,0 @@
-<?php
-/**
- * A helper class for fixing errors.
- *
- * Provides helper functions that act upon a token array and modify the file
- * content.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Common;
-
-class Fixer
-{
-
- /**
- * Is the fixer enabled and fixing a file?
- *
- * Sniffs should check this value to ensure they are not
- * doing extra processing to prepare for a fix when fixing is
- * not required.
- *
- * @var boolean
- */
- public $enabled = false;
-
- /**
- * The number of times we have looped over a file.
- *
- * @var integer
- */
- public $loops = 0;
-
- /**
- * The file being fixed.
- *
- * @var \PHP_CodeSniffer\Files\File
- */
- private $currentFile = null;
-
- /**
- * The list of tokens that make up the file contents.
- *
- * This is a simplified list which just contains the token content and nothing
- * else. This is the array that is updated as fixes are made, not the file's
- * token array. Imploding this array will give you the file content back.
- *
- * @var array<int, string>
- */
- private $tokens = array();
-
- /**
- * A list of tokens that have already been fixed.
- *
- * We don't allow the same token to be fixed more than once each time
- * through a file as this can easily cause conflicts between sniffs.
- *
- * @var int[]
- */
- private $fixedTokens = array();
-
- /**
- * The last value of each fixed token.
- *
- * If a token is being "fixed" back to its last value, the fix is
- * probably conflicting with another.
- *
- * @var array<int, string>
- */
- private $oldTokenValues = array();
-
- /**
- * A list of tokens that have been fixed during a changeset.
- *
- * All changes in changeset must be able to be applied, or else
- * the entire changeset is rejected.
- *
- * @var array
- */
- private $changeset = array();
-
- /**
- * Is there an open changeset.
- *
- * @var boolean
- */
- private $inChangeset = false;
-
- /**
- * Is the current fixing loop in conflict?
- *
- * @var boolean
- */
- private $inConflict = false;
-
- /**
- * The number of fixes that have been performed.
- *
- * @var integer
- */
- private $numFixes = 0;
-
-
- /**
- * Starts fixing a new file.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being fixed.
- *
- * @return void
- */
- public function startFile(File $phpcsFile)
- {
- $this->currentFile = $phpcsFile;
- $this->numFixes = 0;
- $this->fixedTokens = array();
-
- $tokens = $phpcsFile->getTokens();
- $this->tokens = array();
- foreach ($tokens as $index => $token) {
- if (isset($token['orig_content']) === true) {
- $this->tokens[$index] = $token['orig_content'];
- } else {
- $this->tokens[$index] = $token['content'];
- }
- }
-
- }//end startFile()
-
-
- /**
- * Attempt to fix the file by processing it until no fixes are made.
- *
- * @return boolean
- */
- public function fixFile()
- {
- $fixable = $this->currentFile->getFixableCount();
- if ($fixable === 0) {
- // Nothing to fix.
- return false;
- }
-
- $stdin = false;
- if (empty($this->currentFile->config->files) === true) {
- $stdin = true;
- }
-
- $this->enabled = true;
-
- $this->loops = 0;
- while ($this->loops < 50) {
- ob_start();
-
- // Only needed once file content has changed.
- $contents = $this->getContents();
-
- if (PHP_CODESNIFFER_VERBOSITY > 2) {
- @ob_end_clean();
- echo '---START FILE CONTENT---'.PHP_EOL;
- $lines = explode($this->currentFile->eolChar, $contents);
- $max = strlen(count($lines));
- foreach ($lines as $lineNum => $line) {
- $lineNum++;
- echo str_pad($lineNum, $max, ' ', STR_PAD_LEFT).'|'.$line.PHP_EOL;
- }
-
- echo '--- END FILE CONTENT ---'.PHP_EOL;
- ob_start();
- }
-
- $this->inConflict = false;
- $this->currentFile->ruleset->populateTokenListeners();
- $this->currentFile->setContent($contents);
- $this->currentFile->process();
- ob_end_clean();
-
- $this->loops++;
-
- if (PHP_CODESNIFFER_CBF === true && PHP_CODESNIFFER_VERBOSITY > 0) {
- echo "\r".str_repeat(' ', 80)."\r";
- echo "\t=> Fixing file: $this->numFixes/$fixable violations remaining [made $this->loops pass";
- if ($this->loops > 1) {
- echo 'es';
- }
-
- echo ']... ';
- }
-
- if ($this->numFixes === 0 && $this->inConflict === false) {
- // Nothing left to do.
- break;
- } else if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t* fixed $this->numFixes violations, starting loop ".($this->loops + 1).' *'.PHP_EOL;
- }
- }//end while
-
- $this->enabled = false;
-
- if ($this->numFixes > 0) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- @ob_end_clean();
- echo "\t*** Reached maximum number of loops with $this->numFixes violations left unfixed ***".PHP_EOL;
- ob_start();
- }
-
- return false;
- }
-
- return true;
-
- }//end fixFile()
-
-
- /**
- * Generates a text diff of the original file and the new content.
- *
- * @param string $filePath Optional file path to diff the file against.
- * If not specified, the original version of the
- * file will be used.
- * @param boolean $colors Print colored output or not.
- *
- * @return string
- */
- public function generateDiff($filePath=null, $colors=true)
- {
- if ($filePath === null) {
- $filePath = $this->currentFile->getFilename();
- }
-
- $cwd = getcwd().DIRECTORY_SEPARATOR;
- if (strpos($filePath, $cwd) === 0) {
- $filename = substr($filePath, strlen($cwd));
- } else {
- $filename = $filePath;
- }
-
- $contents = $this->getContents();
-
- $tempName = tempnam(sys_get_temp_dir(), 'phpcs-fixer');
- $fixedFile = fopen($tempName, 'w');
- fwrite($fixedFile, $contents);
-
- // We must use something like shell_exec() because whitespace at the end
- // of lines is critical to diff files.
- $filename = escapeshellarg($filename);
- $cmd = "diff -u -L$filename -LPHP_CodeSniffer $filename \"$tempName\"";
-
- $diff = shell_exec($cmd);
-
- fclose($fixedFile);
- if (is_file($tempName) === true) {
- unlink($tempName);
- }
-
- if ($colors === false) {
- return $diff;
- }
-
- $diffLines = explode(PHP_EOL, $diff);
- if (count($diffLines) === 1) {
- // Seems to be required for cygwin.
- $diffLines = explode("\n", $diff);
- }
-
- $diff = array();
- foreach ($diffLines as $line) {
- if (isset($line[0]) === true) {
- switch ($line[0]) {
- case '-':
- $diff[] = "\033[31m$line\033[0m";
- break;
- case '+':
- $diff[] = "\033[32m$line\033[0m";
- break;
- default:
- $diff[] = $line;
- }
- }
- }
-
- $diff = implode(PHP_EOL, $diff);
-
- return $diff;
-
- }//end generateDiff()
-
-
- /**
- * Get a count of fixes that have been performed on the file.
- *
- * This value is reset every time a new file is started, or an existing
- * file is restarted.
- *
- * @return int
- */
- public function getFixCount()
- {
- return $this->numFixes;
-
- }//end getFixCount()
-
-
- /**
- * Get the current content of the file, as a string.
- *
- * @return string
- */
- public function getContents()
- {
- $contents = implode($this->tokens);
- return $contents;
-
- }//end getContents()
-
-
- /**
- * Get the current fixed content of a token.
- *
- * This function takes changesets into account so should be used
- * instead of directly accessing the token array.
- *
- * @param int $stackPtr The position of the token in the token stack.
- *
- * @return string
- */
- public function getTokenContent($stackPtr)
- {
- if ($this->inChangeset === true
- && isset($this->changeset[$stackPtr]) === true
- ) {
- return $this->changeset[$stackPtr];
- } else {
- return $this->tokens[$stackPtr];
- }
-
- }//end getTokenContent()
-
-
- /**
- * Start recording actions for a changeset.
- *
- * @return void
- */
- public function beginChangeset()
- {
- if ($this->inConflict === true) {
- return false;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $bt = debug_backtrace();
- $sniff = $bt[1]['class'];
- $line = $bt[0]['line'];
-
- @ob_end_clean();
- echo "\t=> Changeset started by $sniff (line $line)".PHP_EOL;
- ob_start();
- }
-
- $this->changeset = array();
- $this->inChangeset = true;
-
- }//end beginChangeset()
-
-
- /**
- * Stop recording actions for a changeset, and apply logged changes.
- *
- * @return boolean
- */
- public function endChangeset()
- {
- if ($this->inConflict === true) {
- return false;
- }
-
- $this->inChangeset = false;
-
- $success = true;
- $applied = array();
- foreach ($this->changeset as $stackPtr => $content) {
- $success = $this->replaceToken($stackPtr, $content);
- if ($success === false) {
- break;
- } else {
- $applied[] = $stackPtr;
- }
- }
-
- if ($success === false) {
- // Rolling back all changes.
- foreach ($applied as $stackPtr) {
- $this->revertToken($stackPtr);
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- @ob_end_clean();
- echo "\t=> Changeset failed to apply".PHP_EOL;
- ob_start();
- }
- } else if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $fixes = count($this->changeset);
- @ob_end_clean();
- echo "\t=> Changeset ended: $fixes changes applied".PHP_EOL;
- ob_start();
- }
-
- $this->changeset = array();
-
- }//end endChangeset()
-
-
- /**
- * Stop recording actions for a changeset, and discard logged changes.
- *
- * @return void
- */
- public function rollbackChangeset()
- {
- $this->inChangeset = false;
- $this->inConflict = false;
-
- if (empty($this->changeset) === false) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $bt = debug_backtrace();
- if ($bt[1]['class'] === 'PHP_CodeSniffer\Fixer') {
- $sniff = $bt[2]['class'];
- $line = $bt[1]['line'];
- } else {
- $sniff = $bt[1]['class'];
- $line = $bt[0]['line'];
- }
-
- $numChanges = count($this->changeset);
-
- @ob_end_clean();
- echo "\t\tR: $sniff (line $line) rolled back the changeset ($numChanges changes)".PHP_EOL;
- echo "\t=> Changeset rolled back".PHP_EOL;
- ob_start();
- }
-
- $this->changeset = array();
- }//end if
-
- }//end rollbackChangeset()
-
-
- /**
- * Replace the entire contents of a token.
- *
- * @param int $stackPtr The position of the token in the token stack.
- * @param string $content The new content of the token.
- *
- * @return bool If the change was accepted.
- */
- public function replaceToken($stackPtr, $content)
- {
- if ($this->inConflict === true) {
- return false;
- }
-
- if ($this->inChangeset === false
- && isset($this->fixedTokens[$stackPtr]) === true
- ) {
- $indent = "\t";
- if (empty($this->changeset) === false) {
- $indent .= "\t";
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- @ob_end_clean();
- echo "$indent* token $stackPtr has already been modified, skipping *".PHP_EOL;
- ob_start();
- }
-
- return false;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $bt = debug_backtrace();
- if ($bt[1]['class'] === 'PHP_CodeSniffer\Fixer') {
- $sniff = $bt[2]['class'];
- $line = $bt[1]['line'];
- } else {
- $sniff = $bt[1]['class'];
- $line = $bt[0]['line'];
- }
-
- $tokens = $this->currentFile->getTokens();
- $type = $tokens[$stackPtr]['type'];
- $oldContent = Common::prepareForOutput($this->tokens[$stackPtr]);
- $newContent = Common::prepareForOutput($content);
- if (trim($this->tokens[$stackPtr]) === '' && isset($this->tokens[($stackPtr + 1)]) === true) {
- // Add some context for whitespace only changes.
- $append = Common::prepareForOutput($this->tokens[($stackPtr + 1)]);
- $oldContent .= $append;
- $newContent .= $append;
- }
- }//end if
-
- if ($this->inChangeset === true) {
- $this->changeset[$stackPtr] = $content;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- @ob_end_clean();
- echo "\t\tQ: $sniff (line $line) replaced token $stackPtr ($type) \"$oldContent\" => \"$newContent\"".PHP_EOL;
- ob_start();
- }
-
- return true;
- }
-
- if (isset($this->oldTokenValues[$stackPtr]) === false) {
- $this->oldTokenValues[$stackPtr] = array(
- 'curr' => $content,
- 'prev' => $this->tokens[$stackPtr],
- 'loop' => $this->loops,
- );
- } else {
- if ($this->oldTokenValues[$stackPtr]['prev'] === $content
- && $this->oldTokenValues[$stackPtr]['loop'] === ($this->loops - 1)
- ) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $indent = "\t";
- if (empty($this->changeset) === false) {
- $indent .= "\t";
- }
-
- $loop = $this->oldTokenValues[$stackPtr]['loop'];
-
- @ob_end_clean();
- echo "$indent**** $sniff (line $line) has possible conflict with another sniff on loop $loop; caused by the following change ****".PHP_EOL;
- echo "$indent**** replaced token $stackPtr ($type) \"$oldContent\" => \"$newContent\" ****".PHP_EOL;
- }
-
- if ($this->oldTokenValues[$stackPtr]['loop'] >= ($this->loops - 1)) {
- $this->inConflict = true;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "$indent**** ignoring all changes until next loop ****".PHP_EOL;
- }
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- ob_start();
- }
-
- return false;
- }//end if
-
- $this->oldTokenValues[$stackPtr]['prev'] = $this->oldTokenValues[$stackPtr]['curr'];
- $this->oldTokenValues[$stackPtr]['curr'] = $content;
- $this->oldTokenValues[$stackPtr]['loop'] = $this->loops;
- }//end if
-
- $this->fixedTokens[$stackPtr] = $this->tokens[$stackPtr];
- $this->tokens[$stackPtr] = $content;
- $this->numFixes++;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $indent = "\t";
- if (empty($this->changeset) === false) {
- $indent .= "\tA: ";
- }
-
- if (ob_get_level() > 0) {
- ob_end_clean();
- }
-
- echo "$indent$sniff (line $line) replaced token $stackPtr ($type) \"$oldContent\" => \"$newContent\"".PHP_EOL;
- ob_start();
- }
-
- return true;
-
- }//end replaceToken()
-
-
- /**
- * Reverts the previous fix made to a token.
- *
- * @param int $stackPtr The position of the token in the token stack.
- *
- * @return bool If a change was reverted.
- */
- public function revertToken($stackPtr)
- {
- if (isset($this->fixedTokens[$stackPtr]) === false) {
- return false;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $bt = debug_backtrace();
- if ($bt[1]['class'] === 'PHP_CodeSniffer\Fixer') {
- $sniff = $bt[2]['class'];
- $line = $bt[1]['line'];
- } else {
- $sniff = $bt[1]['class'];
- $line = $bt[0]['line'];
- }
-
- $tokens = $this->currentFile->getTokens();
- $type = $tokens[$stackPtr]['type'];
- $oldContent = Common::prepareForOutput($this->tokens[$stackPtr]);
- $newContent = Common::prepareForOutput($this->fixedTokens[$stackPtr]);
- if (trim($this->tokens[$stackPtr]) === '' && isset($tokens[($stackPtr + 1)]) === true) {
- // Add some context for whitespace only changes.
- $append = Common::prepareForOutput($this->tokens[($stackPtr + 1)]);
- $oldContent .= $append;
- $newContent .= $append;
- }
- }//end if
-
- $this->tokens[$stackPtr] = $this->fixedTokens[$stackPtr];
- unset($this->fixedTokens[$stackPtr]);
- $this->numFixes--;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $indent = "\t";
- if (empty($this->changeset) === false) {
- $indent .= "\tR: ";
- }
-
- @ob_end_clean();
- echo "$indent$sniff (line $line) reverted token $stackPtr ($type) \"$oldContent\" => \"$newContent\"".PHP_EOL;
- ob_start();
- }
-
- return true;
-
- }//end revertToken()
-
-
- /**
- * Replace the content of a token with a part of its current content.
- *
- * @param int $stackPtr The position of the token in the token stack.
- * @param int $start The first character to keep.
- * @param int $length The number of chacters to keep. If NULL, the content of
- * the token from $start to the end of the content is kept.
- *
- * @return bool If the change was accepted.
- */
- public function substrToken($stackPtr, $start, $length=null)
- {
- $current = $this->getTokenContent($stackPtr);
-
- if ($length === null) {
- $newContent = substr($current, $start);
- } else {
- $newContent = substr($current, $start, $length);
- }
-
- return $this->replaceToken($stackPtr, $newContent);
-
- }//end substrToken()
-
-
- /**
- * Adds a newline to end of a token's content.
- *
- * @param int $stackPtr The position of the token in the token stack.
- *
- * @return bool If the change was accepted.
- */
- public function addNewline($stackPtr)
- {
- $current = $this->getTokenContent($stackPtr);
- return $this->replaceToken($stackPtr, $current.$this->currentFile->eolChar);
-
- }//end addNewline()
-
-
- /**
- * Adds a newline to the start of a token's content.
- *
- * @param int $stackPtr The position of the token in the token stack.
- *
- * @return bool If the change was accepted.
- */
- public function addNewlineBefore($stackPtr)
- {
- $current = $this->getTokenContent($stackPtr);
- return $this->replaceToken($stackPtr, $this->currentFile->eolChar.$current);
-
- }//end addNewlineBefore()
-
-
- /**
- * Adds content to the end of a token's current content.
- *
- * @param int $stackPtr The position of the token in the token stack.
- * @param string $content The content to add.
- *
- * @return bool If the change was accepted.
- */
- public function addContent($stackPtr, $content)
- {
- $current = $this->getTokenContent($stackPtr);
- return $this->replaceToken($stackPtr, $current.$content);
-
- }//end addContent()
-
-
- /**
- * Adds content to the start of a token's current content.
- *
- * @param int $stackPtr The position of the token in the token stack.
- * @param string $content The content to add.
- *
- * @return bool If the change was accepted.
- */
- public function addContentBefore($stackPtr, $content)
- {
- $current = $this->getTokenContent($stackPtr);
- return $this->replaceToken($stackPtr, $content.$current);
-
- }//end addContentBefore()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Generator.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Generator.php
deleted file mode 100644
index ee5457a7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Generator.php
+++ /dev/null
@@ -1,119 +0,0 @@
-<?php
-/**
- * The base class for all PHP_CodeSniffer documentation generators.
- *
- * Documentation generators are used to print documentation about code sniffs
- * in a standard.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Generators;
-
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Autoload;
-use PHP_CodeSniffer\Util\Common;
-
-abstract class Generator
-{
-
- /**
- * The ruleset used for the run.
- *
- * @var \PHP_CodeSniffer\Ruleset
- */
- public $ruleset = null;
-
- /**
- * XML documentation files used to produce the final output.
- *
- * @var string[]
- */
- public $docFiles = array();
-
-
- /**
- * Constructs a doc generator.
- *
- * @param \PHP_CodeSniffer\Ruleset $ruleset The ruleset used for the run.
- *
- * @see generate()
- */
- public function __construct(Ruleset $ruleset)
- {
- $this->ruleset = $ruleset;
-
- $standardFiles = array();
- foreach ($ruleset->sniffs as $className => $sniffClass) {
- $file = Autoload::getLoadedFileName($className);
- $docFile = str_replace(
- DIRECTORY_SEPARATOR.'Sniffs'.DIRECTORY_SEPARATOR,
- DIRECTORY_SEPARATOR.'Docs'.DIRECTORY_SEPARATOR,
- $file
- );
- $docFile = str_replace('Sniff.php', 'Standard.xml', $docFile);
-
- if (is_file($docFile) === true) {
- $this->docFiles[] = $docFile;
- }
- }
-
- }//end __construct()
-
-
- /**
- * Retrieves the title of the sniff from the DOMNode supplied.
- *
- * @param \DOMNode $doc The DOMNode object for the sniff.
- * It represents the "documentation" tag in the XML
- * standard file.
- *
- * @return string
- */
- protected function getTitle(\DOMNode $doc)
- {
- return $doc->getAttribute('title');
-
- }//end getTitle()
-
-
- /**
- * Generates the documentation for a standard.
- *
- * It's probably wise for doc generators to override this method so they
- * have control over how the docs are produced. Otherwise, the processSniff
- * method should be overridden to output content for each sniff.
- *
- * @return void
- * @see processSniff()
- */
- public function generate()
- {
- foreach ($this->docFiles as $file) {
- $doc = new \DOMDocument();
- $doc->load($file);
- $documentation = $doc->getElementsByTagName('documentation')->item(0);
- $this->processSniff($documentation);
- }
-
- }//end generate()
-
-
- /**
- * Process the documentation for a single sniff.
- *
- * Doc generators must implement this function to produce output.
- *
- * @param \DOMNode $doc The DOMNode object for the sniff.
- * It represents the "documentation" tag in the XML
- * standard file.
- *
- * @return void
- * @see generate()
- */
- abstract protected function processSniff(\DOMNode $doc);
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/HTML.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/HTML.php
deleted file mode 100644
index db264684..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/HTML.php
+++ /dev/null
@@ -1,270 +0,0 @@
-<?php
-/**
- * A doc generator that outputs documentation in one big HTML file.
- *
- * Output is in one large HTML file and is designed for you to style with
- * your own stylesheet. It contains a table of contents at the top with anchors
- * to each sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Generators;
-
-use PHP_CodeSniffer\Config;
-
-class HTML extends Generator
-{
-
-
- /**
- * Generates the documentation for a standard.
- *
- * @return void
- * @see processSniff()
- */
- public function generate()
- {
- ob_start();
- $this->printHeader();
- $this->printToc();
-
- foreach ($this->docFiles as $file) {
- $doc = new \DOMDocument();
- $doc->load($file);
- $documentation = $doc->getElementsByTagName('documentation')->item(0);
- $this->processSniff($documentation);
- }
-
- $this->printFooter();
-
- $content = ob_get_contents();
- ob_end_clean();
-
- echo $content;
-
- }//end generate()
-
-
- /**
- * Print the header of the HTML page.
- *
- * @return void
- */
- protected function printHeader()
- {
- $standard = $this->ruleset->name;
- echo '<html>'.PHP_EOL;
- echo ' <head>'.PHP_EOL;
- echo " <title>$standard Coding Standards</title>".PHP_EOL;
- echo ' <style>
- body {
- background-color: #FFFFFF;
- font-size: 14px;
- font-family: Arial, Helvetica, sans-serif;
- color: #000000;
- }
-
- h1 {
- color: #666666;
- font-size: 20px;
- font-weight: bold;
- margin-top: 0px;
- background-color: #E6E7E8;
- padding: 20px;
- border: 1px solid #BBBBBB;
- }
-
- h2 {
- color: #00A5E3;
- font-size: 16px;
- font-weight: normal;
- margin-top: 50px;
- }
-
- .code-comparison {
- width: 100%;
- }
-
- .code-comparison td {
- border: 1px solid #CCCCCC;
- }
-
- .code-comparison-title, .code-comparison-code {
- font-family: Arial, Helvetica, sans-serif;
- font-size: 12px;
- color: #000000;
- vertical-align: top;
- padding: 4px;
- width: 50%;
- background-color: #F1F1F1;
- line-height: 15px;
- }
-
- .code-comparison-code {
- font-family: Courier;
- background-color: #F9F9F9;
- }
-
- .code-comparison-highlight {
- background-color: #DDF1F7;
- border: 1px solid #00A5E3;
- line-height: 15px;
- }
-
- .tag-line {
- text-align: center;
- width: 100%;
- margin-top: 30px;
- font-size: 12px;
- }
-
- .tag-line a {
- color: #000000;
- }
- </style>'.PHP_EOL;
- echo ' </head>'.PHP_EOL;
- echo ' <body>'.PHP_EOL;
- echo " <h1>$standard Coding Standards</h1>".PHP_EOL;
-
- }//end printHeader()
-
-
- /**
- * Print the table of contents for the standard.
- *
- * The TOC is just an unordered list of bookmarks to sniffs on the page.
- *
- * @return void
- */
- protected function printToc()
- {
- echo ' <h2>Table of Contents</h2>'.PHP_EOL;
- echo ' <ul class="toc">'.PHP_EOL;
-
- foreach ($this->docFiles as $file) {
- $doc = new \DOMDocument();
- $doc->load($file);
- $documentation = $doc->getElementsByTagName('documentation')->item(0);
- $title = $this->getTitle($documentation);
- echo ' <li><a href="#'.str_replace(' ', '-', $title)."\">$title</a></li>".PHP_EOL;
- }
-
- echo ' </ul>'.PHP_EOL;
-
- }//end printToc()
-
-
- /**
- * Print the footer of the HTML page.
- *
- * @return void
- */
- protected function printFooter()
- {
- // Turn off errors so we don't get timezone warnings if people
- // don't have their timezone set.
- $errorLevel = error_reporting(0);
- echo ' <div class="tag-line">';
- echo 'Documentation generated on '.date('r');
- echo ' by <a href="https://github.com/squizlabs/PHP_CodeSniffer">PHP_CodeSniffer '.Config::VERSION.'</a>';
- echo '</div>'.PHP_EOL;
- error_reporting($errorLevel);
-
- echo ' </body>'.PHP_EOL;
- echo '</html>'.PHP_EOL;
-
- }//end printFooter()
-
-
- /**
- * Process the documentation for a single sniff.
- *
- * @param \DOMNode $doc The DOMNode object for the sniff.
- * It represents the "documentation" tag in the XML
- * standard file.
- *
- * @return void
- */
- public function processSniff(\DOMNode $doc)
- {
- $title = $this->getTitle($doc);
- echo ' <a name="'.str_replace(' ', '-', $title).'" />'.PHP_EOL;
- echo " <h2>$title</h2>".PHP_EOL;
-
- foreach ($doc->childNodes as $node) {
- if ($node->nodeName === 'standard') {
- $this->printTextBlock($node);
- } else if ($node->nodeName === 'code_comparison') {
- $this->printCodeComparisonBlock($node);
- }
- }
-
- }//end processSniff()
-
-
- /**
- * Print a text block found in a standard.
- *
- * @param \DOMNode $node The DOMNode object for the text block.
- *
- * @return void
- */
- protected function printTextBlock(\DOMNode $node)
- {
- $content = trim($node->nodeValue);
- $content = htmlspecialchars($content);
-
- // Allow em tags only.
- $content = str_replace('&lt;em&gt;', '<em>', $content);
- $content = str_replace('&lt;/em&gt;', '</em>', $content);
-
- echo " <p class=\"text\">$content</p>".PHP_EOL;
-
- }//end printTextBlock()
-
-
- /**
- * Print a code comparison block found in a standard.
- *
- * @param \DOMNode $node The DOMNode object for the code comparison block.
- *
- * @return void
- */
- protected function printCodeComparisonBlock(\DOMNode $node)
- {
- $codeBlocks = $node->getElementsByTagName('code');
-
- $firstTitle = $codeBlocks->item(0)->getAttribute('title');
- $first = trim($codeBlocks->item(0)->nodeValue);
- $first = str_replace('<?php', '&lt;?php', $first);
- $first = str_replace("\n", '</br>', $first);
- $first = str_replace(' ', '&nbsp;', $first);
- $first = str_replace('<em>', '<span class="code-comparison-highlight">', $first);
- $first = str_replace('</em>', '</span>', $first);
-
- $secondTitle = $codeBlocks->item(1)->getAttribute('title');
- $second = trim($codeBlocks->item(1)->nodeValue);
- $second = str_replace('<?php', '&lt;?php', $second);
- $second = str_replace("\n", '</br>', $second);
- $second = str_replace(' ', '&nbsp;', $second);
- $second = str_replace('<em>', '<span class="code-comparison-highlight">', $second);
- $second = str_replace('</em>', '</span>', $second);
-
- echo ' <table class="code-comparison">'.PHP_EOL;
- echo ' <tr>'.PHP_EOL;
- echo " <td class=\"code-comparison-title\">$firstTitle</td>".PHP_EOL;
- echo " <td class=\"code-comparison-title\">$secondTitle</td>".PHP_EOL;
- echo ' </tr>'.PHP_EOL;
- echo ' <tr>'.PHP_EOL;
- echo " <td class=\"code-comparison-code\">$first</td>".PHP_EOL;
- echo " <td class=\"code-comparison-code\">$second</td>".PHP_EOL;
- echo ' </tr>'.PHP_EOL;
- echo ' </table>'.PHP_EOL;
-
- }//end printCodeComparisonBlock()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Markdown.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Markdown.php
deleted file mode 100644
index b51b267b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Markdown.php
+++ /dev/null
@@ -1,161 +0,0 @@
-<?php
-/**
- * A doc generator that outputs documentation in Markdown format.
- *
- * @author Stefano Kowalke <blueduck@gmx.net>
- * @copyright 2014 Arroba IT
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Generators;
-
-use PHP_CodeSniffer\Config;
-
-class Markdown extends Generator
-{
-
-
- /**
- * Generates the documentation for a standard.
- *
- * @return void
- * @see processSniff()
- */
- public function generate()
- {
- ob_start();
- $this->printHeader();
-
- foreach ($this->docFiles as $file) {
- $doc = new \DOMDocument();
- $doc->load($file);
- $documentation = $doc->getElementsByTagName('documentation')->item(0);
- $this->processSniff($documentation);
- }
-
- $this->printFooter();
- $content = ob_get_contents();
- ob_end_clean();
-
- echo $content;
-
- }//end generate()
-
-
- /**
- * Print the markdown header.
- *
- * @return void
- */
- protected function printHeader()
- {
- $standard = $this->ruleset->name;
-
- echo "# $standard Coding Standard".PHP_EOL;
-
- }//end printHeader()
-
-
- /**
- * Print the markdown footer.
- *
- * @return void
- */
- protected function printFooter()
- {
- // Turn off errors so we don't get timezone warnings if people
- // don't have their timezone set.
- error_reporting(0);
- echo 'Documentation generated on '.date('r');
- echo ' by [PHP_CodeSniffer '.Config::VERSION.'](https://github.com/squizlabs/PHP_CodeSniffer)'.PHP_EOL;
-
- }//end printFooter()
-
-
- /**
- * Process the documentation for a single sniff.
- *
- * @param \DOMNode $doc The DOMNode object for the sniff.
- * It represents the "documentation" tag in the XML
- * standard file.
- *
- * @return void
- */
- protected function processSniff(\DOMNode $doc)
- {
- $title = $this->getTitle($doc);
- echo "## $title".PHP_EOL;
-
- foreach ($doc->childNodes as $node) {
- if ($node->nodeName === 'standard') {
- $this->printTextBlock($node);
- } else if ($node->nodeName === 'code_comparison') {
- $this->printCodeComparisonBlock($node);
- }
- }
-
- }//end processSniff()
-
-
- /**
- * Print a text block found in a standard.
- *
- * @param \DOMNode $node The DOMNode object for the text block.
- *
- * @return void
- */
- protected function printTextBlock(\DOMNode $node)
- {
- $content = trim($node->nodeValue);
- $content = htmlspecialchars($content);
-
- $content = str_replace('&lt;em&gt;', '*', $content);
- $content = str_replace('&lt;/em&gt;', '*', $content);
-
- echo $content.PHP_EOL;
-
- }//end printTextBlock()
-
-
- /**
- * Print a code comparison block found in a standard.
- *
- * @param \DOMNode $node The DOMNode object for the code comparison block.
- *
- * @return void
- */
- protected function printCodeComparisonBlock(\DOMNode $node)
- {
- $codeBlocks = $node->getElementsByTagName('code');
-
- $firstTitle = $codeBlocks->item(0)->getAttribute('title');
- $first = trim($codeBlocks->item(0)->nodeValue);
- $first = str_replace("\n", "\n ", $first);
- $first = str_replace('<em>', '', $first);
- $first = str_replace('</em>', '', $first);
-
- $secondTitle = $codeBlocks->item(1)->getAttribute('title');
- $second = trim($codeBlocks->item(1)->nodeValue);
- $second = str_replace("\n", "\n ", $second);
- $second = str_replace('<em>', '', $second);
- $second = str_replace('</em>', '', $second);
-
- echo ' <table>'.PHP_EOL;
- echo ' <tr>'.PHP_EOL;
- echo " <th>$firstTitle</th>".PHP_EOL;
- echo " <th>$secondTitle</th>".PHP_EOL;
- echo ' </tr>'.PHP_EOL;
- echo ' <tr>'.PHP_EOL;
- echo '<td>'.PHP_EOL.PHP_EOL;
- echo " $first".PHP_EOL.PHP_EOL;
- echo '</td>'.PHP_EOL;
- echo '<td>'.PHP_EOL.PHP_EOL;
- echo " $second".PHP_EOL.PHP_EOL;
- echo '</td>'.PHP_EOL;
- echo ' </tr>'.PHP_EOL;
- echo ' </table>'.PHP_EOL;
-
- }//end printCodeComparisonBlock()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Text.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Text.php
deleted file mode 100644
index 2ab33f2d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Generators/Text.php
+++ /dev/null
@@ -1,245 +0,0 @@
-<?php
-/**
- * A doc generator that outputs text-based documentation.
- *
- * Output is designed to be displayed in a terminal and is wrapped to 100 characters.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Generators;
-
-class Text extends Generator
-{
-
-
- /**
- * Process the documentation for a single sniff.
- *
- * @param \DOMNode $doc The DOMNode object for the sniff.
- * It represents the "documentation" tag in the XML
- * standard file.
- *
- * @return void
- */
- public function processSniff(\DOMNode $doc)
- {
- $this->printTitle($doc);
-
- foreach ($doc->childNodes as $node) {
- if ($node->nodeName === 'standard') {
- $this->printTextBlock($node);
- } else if ($node->nodeName === 'code_comparison') {
- $this->printCodeComparisonBlock($node);
- }
- }
-
- }//end processSniff()
-
-
- /**
- * Prints the title area for a single sniff.
- *
- * @param \DOMNode $doc The DOMNode object for the sniff.
- * It represents the "documentation" tag in the XML
- * standard file.
- *
- * @return void
- */
- protected function printTitle(\DOMNode $doc)
- {
- $title = $this->getTitle($doc);
- $standard = $this->ruleset->name;
-
- echo PHP_EOL;
- echo str_repeat('-', (strlen("$standard CODING STANDARD: $title") + 4));
- echo strtoupper(PHP_EOL."| $standard CODING STANDARD: $title |".PHP_EOL);
- echo str_repeat('-', (strlen("$standard CODING STANDARD: $title") + 4));
- echo PHP_EOL.PHP_EOL;
-
- }//end printTitle()
-
-
- /**
- * Print a text block found in a standard.
- *
- * @param \DOMNode $node The DOMNode object for the text block.
- *
- * @return void
- */
- protected function printTextBlock(\DOMNode $node)
- {
- $text = trim($node->nodeValue);
- $text = str_replace('<em>', '*', $text);
- $text = str_replace('</em>', '*', $text);
-
- $lines = array();
- $tempLine = '';
- $words = explode(' ', $text);
-
- foreach ($words as $word) {
- if (strlen($tempLine.$word) >= 99) {
- if (strlen($tempLine.$word) === 99) {
- // Adding the extra space will push us to the edge
- // so we are done.
- $lines[] = $tempLine.$word;
- $tempLine = '';
- } else if (strlen($tempLine.$word) === 100) {
- // We are already at the edge, so we are done.
- $lines[] = $tempLine.$word;
- $tempLine = '';
- } else {
- $lines[] = rtrim($tempLine);
- $tempLine = $word.' ';
- }
- } else {
- $tempLine .= $word.' ';
- }
- }//end foreach
-
- if ($tempLine !== '') {
- $lines[] = rtrim($tempLine);
- }
-
- echo implode(PHP_EOL, $lines).PHP_EOL.PHP_EOL;
-
- }//end printTextBlock()
-
-
- /**
- * Print a code comparison block found in a standard.
- *
- * @param \DOMNode $node The DOMNode object for the code comparison block.
- *
- * @return void
- */
- protected function printCodeComparisonBlock(\DOMNode $node)
- {
- $codeBlocks = $node->getElementsByTagName('code');
- $first = trim($codeBlocks->item(0)->nodeValue);
- $firstTitle = $codeBlocks->item(0)->getAttribute('title');
-
- $firstTitleLines = array();
- $tempTitle = '';
- $words = explode(' ', $firstTitle);
-
- foreach ($words as $word) {
- if (strlen($tempTitle.$word) >= 45) {
- if (strlen($tempTitle.$word) === 45) {
- // Adding the extra space will push us to the edge
- // so we are done.
- $firstTitleLines[] = $tempTitle.$word;
- $tempTitle = '';
- } else if (strlen($tempTitle.$word) === 46) {
- // We are already at the edge, so we are done.
- $firstTitleLines[] = $tempTitle.$word;
- $tempTitle = '';
- } else {
- $firstTitleLines[] = $tempTitle;
- $tempTitle = $word;
- }
- } else {
- $tempTitle .= $word.' ';
- }
- }//end foreach
-
- if ($tempTitle !== '') {
- $firstTitleLines[] = $tempTitle;
- }
-
- $first = str_replace('<em>', '', $first);
- $first = str_replace('</em>', '', $first);
- $firstLines = explode("\n", $first);
-
- $second = trim($codeBlocks->item(1)->nodeValue);
- $secondTitle = $codeBlocks->item(1)->getAttribute('title');
-
- $secondTitleLines = array();
- $tempTitle = '';
- $words = explode(' ', $secondTitle);
-
- foreach ($words as $word) {
- if (strlen($tempTitle.$word) >= 45) {
- if (strlen($tempTitle.$word) === 45) {
- // Adding the extra space will push us to the edge
- // so we are done.
- $secondTitleLines[] = $tempTitle.$word;
- $tempTitle = '';
- } else if (strlen($tempTitle.$word) === 46) {
- // We are already at the edge, so we are done.
- $secondTitleLines[] = $tempTitle.$word;
- $tempTitle = '';
- } else {
- $secondTitleLines[] = $tempTitle;
- $tempTitle = $word;
- }
- } else {
- $tempTitle .= $word.' ';
- }
- }//end foreach
-
- if ($tempTitle !== '') {
- $secondTitleLines[] = $tempTitle;
- }
-
- $second = str_replace('<em>', '', $second);
- $second = str_replace('</em>', '', $second);
- $secondLines = explode("\n", $second);
-
- $maxCodeLines = max(count($firstLines), count($secondLines));
- $maxTitleLines = max(count($firstTitleLines), count($secondTitleLines));
-
- echo str_repeat('-', 41);
- echo ' CODE COMPARISON ';
- echo str_repeat('-', 42).PHP_EOL;
-
- for ($i = 0; $i < $maxTitleLines; $i++) {
- if (isset($firstTitleLines[$i]) === true) {
- $firstLineText = $firstTitleLines[$i];
- } else {
- $firstLineText = '';
- }
-
- if (isset($secondTitleLines[$i]) === true) {
- $secondLineText = $secondTitleLines[$i];
- } else {
- $secondLineText = '';
- }
-
- echo '| ';
- echo $firstLineText.str_repeat(' ', (46 - strlen($firstLineText)));
- echo ' | ';
- echo $secondLineText.str_repeat(' ', (47 - strlen($secondLineText)));
- echo ' |'.PHP_EOL;
- }//end for
-
- echo str_repeat('-', 100).PHP_EOL;
-
- for ($i = 0; $i < $maxCodeLines; $i++) {
- if (isset($firstLines[$i]) === true) {
- $firstLineText = $firstLines[$i];
- } else {
- $firstLineText = '';
- }
-
- if (isset($secondLines[$i]) === true) {
- $secondLineText = $secondLines[$i];
- } else {
- $secondLineText = '';
- }
-
- echo '| ';
- echo $firstLineText.str_repeat(' ', (47 - strlen($firstLineText)));
- echo '| ';
- echo $secondLineText.str_repeat(' ', (48 - strlen($secondLineText)));
- echo '|'.PHP_EOL;
- }//end for
-
- echo str_repeat('-', 100).PHP_EOL.PHP_EOL;
-
- }//end printCodeComparisonBlock()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reporter.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reporter.php
deleted file mode 100644
index cfa5a97e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reporter.php
+++ /dev/null
@@ -1,401 +0,0 @@
-<?php
-/**
- * Manages reporting of errors and warnings.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer;
-
-use PHP_CodeSniffer\Reports\Report;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-use PHP_CodeSniffer\Exceptions\DeepExitException;
-use PHP_CodeSniffer\Util\Common;
-
-class Reporter
-{
-
- /**
- * The config data for the run.
- *
- * @var \PHP_CodeSniffer\Config
- */
- public $config = null;
-
- /**
- * Total number of files that contain errors or warnings.
- *
- * @var integer
- */
- public $totalFiles = 0;
-
- /**
- * Total number of errors found during the run.
- *
- * @var integer
- */
- public $totalErrors = 0;
-
- /**
- * Total number of warnings found during the run.
- *
- * @var integer
- */
- public $totalWarnings = 0;
-
- /**
- * Total number of errors/warnings that can be fixed.
- *
- * @var integer
- */
- public $totalFixable = 0;
-
- /**
- * Total number of errors/warnings that were fixed.
- *
- * @var integer
- */
- public $totalFixed = 0;
-
- /**
- * When the PHPCS run started.
- *
- * @var float
- */
- public static $startTime = 0;
-
- /**
- * A cache of report objects.
- *
- * @var array
- */
- private $reports = array();
-
- /**
- * A cache of opened temporary files.
- *
- * @var array
- */
- private $tmpFiles = array();
-
-
- /**
- * Initialise the reporter.
- *
- * All reports specified in the config will be created and their
- * output file (or a temp file if none is specified) initialised by
- * clearing the current contents.
- *
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- *
- * @return void
- * @throws RuntimeException If a report is not available.
- */
- public function __construct(Config $config)
- {
- $this->config = $config;
-
- foreach ($config->reports as $type => $output) {
- $type = ucfirst($type);
-
- if ($output === null) {
- $output = $config->reportFile;
- }
-
- if (strpos($type, '.') !== false) {
- // This is a path to a custom report class.
- $filename = realpath($type);
- if ($filename === false) {
- $error = "ERROR: Custom report \"$type\" not found".PHP_EOL;
- throw new DeepExitException($error, 3);
- }
-
- $reportClassName = Autoload::loadFile($filename);
- } else {
- $reportClassName = 'PHP_CodeSniffer\Reports\\'.$type;
- }
-
- $reportClass = new $reportClassName();
- if (false === ($reportClass instanceof Report)) {
- throw new RuntimeException('Class "'.$reportClassName.'" must implement the "PHP_CodeSniffer\Report" interface.');
- }
-
- $this->reports[$type] = array(
- 'output' => $output,
- 'class' => $reportClass,
- );
-
- if ($output === null) {
- // Using a temp file.
- // This needs to be set in the constructor so that all
- // child procs use the same report file when running in parallel.
- $this->tmpFiles[$type] = tempnam(sys_get_temp_dir(), 'phpcs');
- file_put_contents($this->tmpFiles[$type], '');
- } else {
- file_put_contents($output, '');
- }
- }//end foreach
-
- }//end __construct()
-
-
- /**
- * Generates and prints final versions of all reports.
- *
- * Returns TRUE if any of the reports output content to the screen
- * or FALSE if all reports were silently printed to a file.
- *
- * @return bool
- */
- public function printReports()
- {
- $toScreen = false;
- foreach ($this->reports as $type => $report) {
- if ($report['output'] === null) {
- $toScreen = true;
- }
-
- $this->printReport($type);
- }
-
- return $toScreen;
-
- }//end printReports()
-
-
- /**
- * Generates and prints a single final report.
- *
- * @param string $report The report type to print.
- *
- * @return void
- */
- public function printReport($report)
- {
- $report = ucfirst($report);
- $reportClass = $this->reports[$report]['class'];
- $reportFile = $this->reports[$report]['output'];
-
- if ($reportFile !== null) {
- $filename = $reportFile;
- $toScreen = false;
- } else {
- if (isset($this->tmpFiles[$report]) === true) {
- $filename = $this->tmpFiles[$report];
- } else {
- $filename = null;
- }
-
- $toScreen = true;
- }
-
- $reportCache = '';
- if ($filename !== null) {
- $reportCache = file_get_contents($filename);
- }
-
- ob_start();
- $reportClass->generate(
- $reportCache,
- $this->totalFiles,
- $this->totalErrors,
- $this->totalWarnings,
- $this->totalFixable,
- $this->config->showSources,
- $this->config->reportWidth,
- $this->config->interactive,
- $toScreen
- );
- $generatedReport = ob_get_contents();
- ob_end_clean();
-
- if ($this->config->colors !== true || $reportFile !== null) {
- $generatedReport = preg_replace('`\033\[[0-9;]+m`', '', $generatedReport);
- }
-
- if ($reportFile !== null) {
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- echo $generatedReport;
- }
-
- file_put_contents($reportFile, $generatedReport.PHP_EOL);
- } else {
- echo $generatedReport;
- if ($filename !== null && file_exists($filename) === true) {
- unlink($filename);
- unset($this->tmpFiles[$report]);
- }
- }
-
- }//end printReport()
-
-
- /**
- * Caches the result of a single processed file for all reports.
- *
- * The report content that is generated is appended to the output file
- * assigned to each report. This content may be an intermediate report format
- * and not reflect the final report output.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file that has been processed.
- *
- * @return void
- */
- public function cacheFileReport(File $phpcsFile)
- {
- if (isset($this->config->reports) === false) {
- // This happens during unit testing, or any time someone just wants
- // the error data and not the printed report.
- return;
- }
-
- $reportData = $this->prepareFileReport($phpcsFile);
- $errorsShown = false;
-
- foreach ($this->reports as $type => $report) {
- $reportClass = $report['class'];
-
- ob_start();
- $result = $reportClass->generateFileReport($reportData, $phpcsFile, $this->config->showSources, $this->config->reportWidth);
- if ($result === true) {
- $errorsShown = true;
- }
-
- $generatedReport = ob_get_contents();
- ob_end_clean();
-
- if ($report['output'] === null) {
- // Using a temp file.
- if (isset($this->tmpFiles[$type]) === false) {
- // When running in interactive mode, the reporter prints the full
- // report many times, which will unlink the temp file. So we need
- // to create a new one if it doesn't exist.
- $this->tmpFiles[$type] = tempnam(sys_get_temp_dir(), 'phpcs');
- file_put_contents($this->tmpFiles[$type], '');
- }
-
- file_put_contents($this->tmpFiles[$type], $generatedReport, FILE_APPEND);
- } else {
- $flags = FILE_APPEND;
- file_put_contents($report['output'], $generatedReport, FILE_APPEND);
- }//end if
- }//end foreach
-
- if ($errorsShown === true || PHP_CODESNIFFER_CBF === true) {
- $this->totalFiles++;
- $this->totalErrors += $reportData['errors'];
- $this->totalWarnings += $reportData['warnings'];
-
- // When PHPCBF is running, we need to use the fixable error values
- // after the report has run and fixed what it can.
- if (PHP_CODESNIFFER_CBF === true) {
- $this->totalFixable += $phpcsFile->getFixableCount();
- $this->totalFixed += $phpcsFile->getFixedCount();
- } else {
- $this->totalFixable += $reportData['fixable'];
- }
- }
-
- }//end cacheFileReport()
-
-
- /**
- * Generate summary information to be used during report generation.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file that has been processed.
- *
- * @return array
- */
- public function prepareFileReport(File $phpcsFile)
- {
- $report = array(
- 'filename' => Common::stripBasepath($phpcsFile->getFilename(), $this->config->basepath),
- 'errors' => $phpcsFile->getErrorCount(),
- 'warnings' => $phpcsFile->getWarningCount(),
- 'fixable' => $phpcsFile->getFixableCount(),
- 'messages' => array(),
- );
-
- if ($report['errors'] === 0 && $report['warnings'] === 0) {
- // Prefect score!
- return $report;
- }
-
- if ($this->config->recordErrors === false) {
- $message = 'Errors are not being recorded but this report requires error messages. ';
- $message .= 'This report will not show the correct information.';
- $report['messages'][1][1] = array(
- array(
- 'message' => $message,
- 'source' => 'Internal.RecordErrors',
- 'severity' => 5,
- 'fixable' => false,
- 'type' => 'ERROR',
- ),
- );
- return $report;
- }
-
- $errors = array();
-
- // Merge errors and warnings.
- foreach ($phpcsFile->getErrors() as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- $newErrors = array();
- foreach ($colErrors as $data) {
- $newErrors[] = array(
- 'message' => $data['message'],
- 'source' => $data['source'],
- 'severity' => $data['severity'],
- 'fixable' => $data['fixable'],
- 'type' => 'ERROR',
- );
- }
-
- $errors[$line][$column] = $newErrors;
- }
-
- ksort($errors[$line]);
- }//end foreach
-
- foreach ($phpcsFile->getWarnings() as $line => $lineWarnings) {
- foreach ($lineWarnings as $column => $colWarnings) {
- $newWarnings = array();
- foreach ($colWarnings as $data) {
- $newWarnings[] = array(
- 'message' => $data['message'],
- 'source' => $data['source'],
- 'severity' => $data['severity'],
- 'fixable' => $data['fixable'],
- 'type' => 'WARNING',
- );
- }
-
- if (isset($errors[$line]) === false) {
- $errors[$line] = array();
- }
-
- if (isset($errors[$line][$column]) === true) {
- $errors[$line][$column] = array_merge(
- $newWarnings,
- $errors[$line][$column]
- );
- } else {
- $errors[$line][$column] = $newWarnings;
- }
- }//end foreach
-
- ksort($errors[$line]);
- }//end foreach
-
- ksort($errors);
- $report['messages'] = $errors;
- return $report;
-
- }//end prepareFileReport()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Cbf.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Cbf.php
deleted file mode 100644
index f9a22631..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Cbf.php
+++ /dev/null
@@ -1,249 +0,0 @@
-<?php
-/**
- * CBF report for PHP_CodeSniffer.
- *
- * This report implements the various auto-fixing features of the
- * PHPCBF script and is not intended (or allowed) to be selected as a
- * report from the command line.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Exceptions\DeepExitException;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util;
-
-class Cbf implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- $errors = $phpcsFile->getFixableCount();
- if ($errors !== 0) {
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- ob_end_clean();
- $startTime = microtime(true);
- echo "\t=> Fixing file: $errors/$errors violations remaining";
- }
-
- $fixed = $phpcsFile->fixer->fixFile();
- }
-
- if ($phpcsFile->config->stdin === true) {
- // Replacing STDIN, so output current file to STDOUT
- // even if nothing was fixed. Exit here because we
- // can't process any more than 1 file in this setup.
- $fixedContent = $phpcsFile->fixer->getContents();
- throw new DeepExitException($fixedContent, 1);
- }
-
- if ($errors === 0) {
- return false;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- if ($fixed === false) {
- echo 'ERROR';
- } else {
- echo 'DONE';
- }
-
- $timeTaken = ((microtime(true) - $startTime) * 1000);
- if ($timeTaken < 1000) {
- $timeTaken = round($timeTaken);
- echo " in {$timeTaken}ms".PHP_EOL;
- } else {
- $timeTaken = round(($timeTaken / 1000), 2);
- echo " in $timeTaken secs".PHP_EOL;
- }
- }
-
- if ($fixed === true) {
- // The filename in the report may be truncated due to a basepath setting
- // but we are using it for writing here and not display,
- // so find the correct path if basepath is in use.
- $newFilename = $report['filename'].$phpcsFile->config->suffix;
- if ($phpcsFile->config->basepath !== null) {
- $newFilename = $phpcsFile->config->basepath.DIRECTORY_SEPARATOR.$newFilename;
- }
-
- $newContent = $phpcsFile->fixer->getContents();
- file_put_contents($newFilename, $newContent);
-
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- if ($newFilename === $report['filename']) {
- echo "\t=> File was overwritten".PHP_EOL;
- } else {
- echo "\t=> Fixed file written to ".basename($newFilename).PHP_EOL;
- }
- }
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- ob_start();
- }
-
- $errorCount = $phpcsFile->getErrorCount();
- $warningCount = $phpcsFile->getWarningCount();
- $fixableCount = $phpcsFile->getFixableCount();
- $fixedCount = ($errors - $fixableCount);
- echo $report['filename'].">>$errorCount>>$warningCount>>$fixableCount>>$fixedCount".PHP_EOL;
-
- return $fixed;
-
- }//end generateFileReport()
-
-
- /**
- * Prints a summary of fixed files.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- $lines = explode(PHP_EOL, $cachedData);
- array_pop($lines);
-
- if (empty($lines) === true) {
- echo PHP_EOL.'No fixable errors were found'.PHP_EOL;
- return;
- }
-
- $reportFiles = array();
- $maxLength = 0;
- $totalFixed = 0;
- $failures = 0;
-
- foreach ($lines as $line) {
- $parts = explode('>>', $line);
- $fileLen = strlen($parts[0]);
- $reportFiles[$parts[0]] = array(
- 'errors' => $parts[1],
- 'warnings' => $parts[2],
- 'fixable' => $parts[3],
- 'fixed' => $parts[4],
- 'strlen' => $fileLen,
- );
-
- $maxLength = max($maxLength, $fileLen);
-
- $totalFixed += $parts[4];
-
- if ($parts[3] > 0) {
- $failures++;
- }
- }
-
- $width = min($width, ($maxLength + 21));
- $width = max($width, 70);
-
- echo PHP_EOL."\033[1m".'PHPCBF RESULT SUMMARY'."\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
- echo "\033[1m".'FILE'.str_repeat(' ', ($width - 20)).'FIXED REMAINING'."\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
-
- foreach ($reportFiles as $file => $data) {
- $padding = ($width - 18 - $data['strlen']);
- if ($padding < 0) {
- $file = '...'.substr($file, (($padding * -1) + 3));
- $padding = 0;
- }
-
- echo $file.str_repeat(' ', $padding).' ';
-
- if ($data['fixable'] > 0) {
- echo "\033[31mFAILED TO FIX\033[0m".PHP_EOL;
- continue;
- }
-
- $remaining = ($data['errors'] + $data['warnings']);
-
- if ($data['fixed'] !== 0) {
- echo $data['fixed'];
- echo str_repeat(' ', (7 - strlen((string) $data['fixed'])));
- } else {
- echo '0 ';
- }
-
- if ($remaining !== 0) {
- echo $remaining;
- } else {
- echo '0';
- }
-
- echo PHP_EOL;
- }//end foreach
-
- echo str_repeat('-', $width).PHP_EOL;
- echo "\033[1mA TOTAL OF $totalFixed ERROR";
- if ($totalFixed !== 1) {
- echo 'S';
- }
-
- $numFiles = count($reportFiles);
- echo ' WERE FIXED IN '.$numFiles.' FILE';
- if ($numFiles !== 1) {
- echo 'S';
- }
-
- echo "\033[0m";
-
- if ($failures > 0) {
- echo PHP_EOL.str_repeat('-', $width).PHP_EOL;
- echo "\033[1mPHPCBF FAILED TO FIX $failures FILE";
- if ($failures !== 1) {
- echo 'S';
- }
-
- echo "\033[0m";
- }
-
- echo PHP_EOL.str_repeat('-', $width).PHP_EOL.PHP_EOL;
-
- if ($toScreen === true && $interactive === false) {
- Util\Timing::printRunTime();
- }
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Checkstyle.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Checkstyle.php
deleted file mode 100644
index 06a78e19..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Checkstyle.php
+++ /dev/null
@@ -1,109 +0,0 @@
-<?php
-/**
- * Checkstyle report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Files\File;
-
-class Checkstyle implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- $out = new \XMLWriter;
- $out->openMemory();
- $out->setIndent(true);
-
- if ($report['errors'] === 0 && $report['warnings'] === 0) {
- // Nothing to print.
- return false;
- }
-
- $out->startElement('file');
- $out->writeAttribute('name', $report['filename']);
-
- foreach ($report['messages'] as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $error['type'] = strtolower($error['type']);
- if ($phpcsFile->config->encoding !== 'utf-8') {
- $error['message'] = iconv($phpcsFile->config->encoding, 'utf-8', $error['message']);
- }
-
- $out->startElement('error');
- $out->writeAttribute('line', $line);
- $out->writeAttribute('column', $column);
- $out->writeAttribute('severity', $error['type']);
- $out->writeAttribute('message', $error['message']);
- $out->writeAttribute('source', $error['source']);
- $out->endElement();
- }
- }
- }//end foreach
-
- $out->endElement();
- echo $out->flush();
-
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Prints all violations for processed files, in a Checkstyle format.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- echo '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL;
- echo '<checkstyle version="'.Config::VERSION.'">'.PHP_EOL;
- echo $cachedData;
- echo '</checkstyle>'.PHP_EOL;
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Code.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Code.php
deleted file mode 100644
index 0aaa7682..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Code.php
+++ /dev/null
@@ -1,362 +0,0 @@
-<?php
-/**
- * Full report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util;
-
-class Code implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- if ($report['errors'] === 0 && $report['warnings'] === 0) {
- // Nothing to print.
- return false;
- }
-
- // How many lines to show about and below the error line.
- $surroundingLines = 2;
-
- $file = $report['filename'];
- $tokens = $phpcsFile->getTokens();
- if (empty($tokens) === true) {
- if (PHP_CODESNIFFER_VERBOSITY === 1) {
- $startTime = microtime(true);
- echo 'CODE report is parsing '.basename($file).' ';
- } else if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "CODE report is forcing parse of $file".PHP_EOL;
- }
-
- try {
- $phpcsFile->parse();
- } catch (\Exception $e) {
- // This is a second parse, so ignore exceptions.
- // They would have been added to the file's error list already.
- }
-
- if (PHP_CODESNIFFER_VERBOSITY === 1) {
- $timeTaken = ((microtime(true) - $startTime) * 1000);
- if ($timeTaken < 1000) {
- $timeTaken = round($timeTaken);
- echo "DONE in {$timeTaken}ms";
- } else {
- $timeTaken = round(($timeTaken / 1000), 2);
- echo "DONE in $timeTaken secs";
- }
-
- echo PHP_EOL;
- }
-
- $tokens = $phpcsFile->getTokens();
- }//end if
-
- // Create an array that maps lines to the first token on the line.
- $lineTokens = array();
- $lastLine = 0;
- $stackPtr = 0;
- foreach ($tokens as $stackPtr => $token) {
- if ($token['line'] !== $lastLine) {
- if ($lastLine > 0) {
- $lineTokens[$lastLine]['end'] = ($stackPtr - 1);
- }
-
- $lastLine++;
- $lineTokens[$lastLine] = array(
- 'start' => $stackPtr,
- 'end' => null,
- );
- }
- }
-
- // Make sure the last token in the file sits on an imaginary
- // last line so it is easier to generate code snippets at the
- // end of the file.
- $lineTokens[$lastLine]['end'] = $stackPtr;
-
- // Determine the longest code line we will be showing.
- $maxSnippetLength = 0;
- $eolLen = strlen($phpcsFile->eolChar);
- foreach ($report['messages'] as $line => $lineErrors) {
- $startLine = max(($line - $surroundingLines), 1);
- $endLine = min(($line + $surroundingLines), $lastLine);
-
- $maxLineNumLength = strlen($endLine);
-
- for ($i = $startLine; $i <= $endLine; $i++) {
- if ($i === 1) {
- continue;
- }
-
- $lineLength = ($tokens[($lineTokens[$i]['start'] - 1)]['column'] + $tokens[($lineTokens[$i]['start'] - 1)]['length'] - $eolLen);
- $maxSnippetLength = max($lineLength, $maxSnippetLength);
- }
- }
-
- $maxSnippetLength += ($maxLineNumLength + 8);
-
- // Determine the longest error message we will be showing.
- $maxErrorLength = 0;
- foreach ($report['messages'] as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $length = strlen($error['message']);
- if ($showSources === true) {
- $length += (strlen($error['source']) + 3);
- }
-
- $maxErrorLength = max($maxErrorLength, ($length + 1));
- }
- }
- }
-
- // The padding that all lines will require that are printing an error message overflow.
- if ($report['warnings'] > 0) {
- $typeLength = 7;
- } else {
- $typeLength = 5;
- }
-
- $errorPadding = str_repeat(' ', ($maxLineNumLength + 7));
- $errorPadding .= str_repeat(' ', $typeLength);
- $errorPadding .= ' ';
- if ($report['fixable'] > 0) {
- $errorPadding .= ' ';
- }
-
- $errorPaddingLength = strlen($errorPadding);
-
- // The maximum amount of space an error message can use.
- $maxErrorSpace = ($width - $errorPaddingLength);
- if ($showSources === true) {
- // Account for the chars used to print colors.
- $maxErrorSpace += 8;
- }
-
- // Figure out the max report width we need and can use.
- $fileLength = strlen($file);
- $maxWidth = max(($fileLength + 6), ($maxErrorLength + $errorPaddingLength));
- $width = max(min($width, $maxWidth), $maxSnippetLength);
- if ($width < 70) {
- $width = 70;
- }
-
- // Print the file header.
- echo PHP_EOL."\033[1mFILE: ";
- if ($fileLength <= ($width - 6)) {
- echo $file;
- } else {
- echo '...'.substr($file, ($fileLength - ($width - 6)));
- }
-
- echo "\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
-
- echo "\033[1m".'FOUND '.$report['errors'].' ERROR';
- if ($report['errors'] !== 1) {
- echo 'S';
- }
-
- if ($report['warnings'] > 0) {
- echo ' AND '.$report['warnings'].' WARNING';
- if ($report['warnings'] !== 1) {
- echo 'S';
- }
- }
-
- echo ' AFFECTING '.count($report['messages']).' LINE';
- if (count($report['messages']) !== 1) {
- echo 'S';
- }
-
- echo "\033[0m".PHP_EOL;
-
- foreach ($report['messages'] as $line => $lineErrors) {
- $startLine = max(($line - $surroundingLines), 1);
- $endLine = min(($line + $surroundingLines), $lastLine);
-
- $snippet = '';
- if (isset($lineTokens[$startLine]) === true) {
- for ($i = $lineTokens[$startLine]['start']; $i <= $lineTokens[$endLine]['end']; $i++) {
- $snippetLine = $tokens[$i]['line'];
- if ($lineTokens[$snippetLine]['start'] === $i) {
- // Starting a new line.
- if ($snippetLine === $line) {
- $snippet .= "\033[1m".'>> ';
- } else {
- $snippet .= ' ';
- }
-
- $snippet .= str_repeat(' ', ($maxLineNumLength - strlen($snippetLine)));
- $snippet .= $snippetLine.': ';
- if ($snippetLine === $line) {
- $snippet .= "\033[0m";
- }
- }
-
- if (isset($tokens[$i]['orig_content']) === true) {
- $tokenContent = $tokens[$i]['orig_content'];
- } else {
- $tokenContent = $tokens[$i]['content'];
- }
-
- if (strpos($tokenContent, "\t") !== false) {
- $token = $tokens[$i];
- $token['content'] = $tokenContent;
- if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
- $tab = "\000";
- } else {
- $tab = "\033[30;1m»\033[0m";
- }
-
- $phpcsFile->tokenizer->replaceTabsInToken($token, $tab, "\000");
- $tokenContent = $token['content'];
- }
-
- $tokenContent = Util\Common::prepareForOutput($tokenContent, array("\r", "\n", "\t"));
- $tokenContent = str_replace("\000", ' ', $tokenContent);
-
- $underline = false;
- if ($snippetLine === $line && isset($lineErrors[$tokens[$i]['column']]) === true) {
- $underline = true;
- }
-
- // Underline invisible characters as well.
- if ($underline === true && trim($tokenContent) === '') {
- $snippet .= "\033[4m".' '."\033[0m".$tokenContent;
- } else {
- if ($underline === true) {
- $snippet .= "\033[4m";
- }
-
- $snippet .= $tokenContent;
-
- if ($underline === true) {
- $snippet .= "\033[0m";
- }
- }
- }//end for
- }//end if
-
- echo str_repeat('-', $width).PHP_EOL;
-
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $padding = ($maxLineNumLength - strlen($line));
- echo 'LINE '.str_repeat(' ', $padding).$line.': ';
-
- if ($error['type'] === 'ERROR') {
- echo "\033[31mERROR\033[0m";
- if ($report['warnings'] > 0) {
- echo ' ';
- }
- } else {
- echo "\033[33mWARNING\033[0m";
- }
-
- echo ' ';
- if ($report['fixable'] > 0) {
- echo '[';
- if ($error['fixable'] === true) {
- echo 'x';
- } else {
- echo ' ';
- }
-
- echo '] ';
- }
-
- $message = $error['message'];
- $message = str_replace("\n", "\n".$errorPadding, $message);
- if ($showSources === true) {
- $message = "\033[1m".$message."\033[0m".' ('.$error['source'].')';
- }
-
- $errorMsg = wordwrap(
- $message,
- $maxErrorSpace,
- PHP_EOL.$errorPadding
- );
-
- echo $errorMsg.PHP_EOL;
- }//end foreach
- }//end foreach
-
- echo str_repeat('-', $width).PHP_EOL;
- echo rtrim($snippet).PHP_EOL;
- }//end foreach
-
- echo str_repeat('-', $width).PHP_EOL;
- if ($report['fixable'] > 0) {
- echo "\033[1m".'PHPCBF CAN FIX THE '.$report['fixable'].' MARKED SNIFF VIOLATIONS AUTOMATICALLY'."\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
- }
-
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Prints all errors and warnings for each file processed.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- if ($cachedData === '') {
- return;
- }
-
- echo $cachedData;
-
- if ($toScreen === true && $interactive === false) {
- Util\Timing::printRunTime();
- }
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Csv.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Csv.php
deleted file mode 100644
index 6db7ecfc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Csv.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-/**
- * CSV report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-
-class Csv implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- if ($report['errors'] === 0 && $report['warnings'] === 0) {
- // Nothing to print.
- return false;
- }
-
- foreach ($report['messages'] as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $filename = str_replace('"', '\"', $report['filename']);
- $message = str_replace('"', '\"', $error['message']);
- $type = strtolower($error['type']);
- $source = $error['source'];
- $severity = $error['severity'];
- $fixable = (int) $error['fixable'];
- echo "\"$filename\",$line,$column,$type,\"$message\",$source,$severity,$fixable".PHP_EOL;
- }
- }
- }
-
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Generates a csv report.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- echo 'File,Line,Column,Type,Message,Source,Severity,Fixable'.PHP_EOL;
- echo $cachedData;
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Diff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Diff.php
deleted file mode 100644
index 855f92fc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Diff.php
+++ /dev/null
@@ -1,131 +0,0 @@
-<?php
-/**
- * Diff report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util;
-
-class Diff implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- $errors = $phpcsFile->getFixableCount();
- if ($errors === 0) {
- return false;
- }
-
- $phpcsFile->disableCaching();
- $tokens = $phpcsFile->getTokens();
- if (empty($tokens) === true) {
- if (PHP_CODESNIFFER_VERBOSITY === 1) {
- $startTime = microtime(true);
- echo 'DIFF report is parsing '.basename($report['filename']).' ';
- } else if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo 'DIFF report is forcing parse of '.$report['filename'].PHP_EOL;
- }
-
- $phpcsFile->parse();
-
- if (PHP_CODESNIFFER_VERBOSITY === 1) {
- $timeTaken = ((microtime(true) - $startTime) * 1000);
- if ($timeTaken < 1000) {
- $timeTaken = round($timeTaken);
- echo "DONE in {$timeTaken}ms";
- } else {
- $timeTaken = round(($timeTaken / 1000), 2);
- echo "DONE in $timeTaken secs";
- }
-
- echo PHP_EOL;
- }
-
- $phpcsFile->fixer->startFile($phpcsFile);
- }//end if
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- ob_end_clean();
- echo "\t*** START FILE FIXING ***".PHP_EOL;
- }
-
- $fixed = $phpcsFile->fixer->fixFile();
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** END FILE FIXING ***".PHP_EOL;
- ob_start();
- }
-
- if ($fixed === false) {
- return false;
- }
-
- $diff = $phpcsFile->fixer->generateDiff();
- if ($diff === '') {
- // Nothing to print.
- return false;
- }
-
- echo $diff.PHP_EOL;
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Prints all errors and warnings for each file processed.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- echo $cachedData;
- if ($toScreen === true) {
- echo PHP_EOL;
- }
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Emacs.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Emacs.php
deleted file mode 100644
index 3555f554..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Emacs.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-/**
- * Emacs report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-
-class Emacs implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- if ($report['errors'] === 0 && $report['warnings'] === 0) {
- // Nothing to print.
- return false;
- }
-
- foreach ($report['messages'] as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $message = $error['message'];
- if ($showSources === true) {
- $message .= ' ('.$error['source'].')';
- }
-
- $type = strtolower($error['type']);
- echo $report['filename'].':'.$line.':'.$column.': '.$type.' - '.$message.PHP_EOL;
- }
- }
- }
-
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Generates an emacs report.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- echo $cachedData;
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Full.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Full.php
deleted file mode 100644
index 10bbbe9d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Full.php
+++ /dev/null
@@ -1,218 +0,0 @@
-<?php
-/**
- * Full report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util;
-
-class Full implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- if ($report['errors'] === 0 && $report['warnings'] === 0) {
- // Nothing to print.
- return false;
- }
-
- // The length of the word ERROR or WARNING; used for padding.
- if ($report['warnings'] > 0) {
- $typeLength = 7;
- } else {
- $typeLength = 5;
- }
-
- // Work out the max line number length for formatting.
- $maxLineNumLength = max(array_map('strlen', array_keys($report['messages'])));
-
- // The padding that all lines will require that are
- // printing an error message overflow.
- $paddingLine2 = str_repeat(' ', ($maxLineNumLength + 1));
- $paddingLine2 .= ' | ';
- $paddingLine2 .= str_repeat(' ', $typeLength);
- $paddingLine2 .= ' | ';
- if ($report['fixable'] > 0) {
- $paddingLine2 .= ' ';
- }
-
- $paddingLength = strlen($paddingLine2);
-
- // Make sure the report width isn't too big.
- $maxErrorLength = 0;
- foreach ($report['messages'] as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $length = strlen($error['message']);
- if ($showSources === true) {
- $length += (strlen($error['source']) + 3);
- }
-
- $maxErrorLength = max($maxErrorLength, ($length + 1));
- }
- }
- }
-
- $file = $report['filename'];
- $fileLength = strlen($file);
- $maxWidth = max(($fileLength + 6), ($maxErrorLength + $paddingLength));
- $width = min($width, $maxWidth);
- if ($width < 70) {
- $width = 70;
- }
-
- echo PHP_EOL."\033[1mFILE: ";
- if ($fileLength <= ($width - 6)) {
- echo $file;
- } else {
- echo '...'.substr($file, ($fileLength - ($width - 6)));
- }
-
- echo "\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
-
- echo "\033[1m".'FOUND '.$report['errors'].' ERROR';
- if ($report['errors'] !== 1) {
- echo 'S';
- }
-
- if ($report['warnings'] > 0) {
- echo ' AND '.$report['warnings'].' WARNING';
- if ($report['warnings'] !== 1) {
- echo 'S';
- }
- }
-
- echo ' AFFECTING '.count($report['messages']).' LINE';
- if (count($report['messages']) !== 1) {
- echo 'S';
- }
-
- echo "\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
-
- // The maximum amount of space an error message can use.
- $maxErrorSpace = ($width - $paddingLength - 1);
- if ($showSources === true) {
- // Account for the chars used to print colors.
- $maxErrorSpace += 8;
- }
-
- foreach ($report['messages'] as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $message = $error['message'];
- $message = str_replace("\n", "\n".$paddingLine2, $message);
- if ($showSources === true) {
- $message = "\033[1m".$message."\033[0m".' ('.$error['source'].')';
- }
-
- // The padding that goes on the front of the line.
- $padding = ($maxLineNumLength - strlen($line));
- $errorMsg = wordwrap(
- $message,
- $maxErrorSpace,
- PHP_EOL.$paddingLine2
- );
-
- echo ' '.str_repeat(' ', $padding).$line.' | ';
- if ($error['type'] === 'ERROR') {
- echo "\033[31mERROR\033[0m";
- if ($report['warnings'] > 0) {
- echo ' ';
- }
- } else {
- echo "\033[33mWARNING\033[0m";
- }
-
- echo ' | ';
- if ($report['fixable'] > 0) {
- echo '[';
- if ($error['fixable'] === true) {
- echo 'x';
- } else {
- echo ' ';
- }
-
- echo '] ';
- }
-
- echo $errorMsg.PHP_EOL;
- }//end foreach
- }//end foreach
- }//end foreach
-
- echo str_repeat('-', $width).PHP_EOL;
- if ($report['fixable'] > 0) {
- echo "\033[1m".'PHPCBF CAN FIX THE '.$report['fixable'].' MARKED SNIFF VIOLATIONS AUTOMATICALLY'."\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
- }
-
- echo PHP_EOL;
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Prints all errors and warnings for each file processed.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- if ($cachedData === '') {
- return;
- }
-
- echo $cachedData;
-
- if ($toScreen === true && $interactive === false) {
- Util\Timing::printRunTime();
- }
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Gitblame.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Gitblame.php
deleted file mode 100644
index 33271f7e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Gitblame.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-/**
- * Git blame report for PHP_CodeSniffer.
- *
- * @author Ben Selby <benmatselby@gmail.com>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Exceptions\DeepExitException;
-
-class Gitblame extends VersionControl
-{
-
- /**
- * The name of the report we want in the output
- *
- * @var string
- */
- protected $reportName = 'GIT';
-
-
- /**
- * Extract the author from a blame line.
- *
- * @param string $line Line to parse.
- *
- * @return mixed string or false if impossible to recover.
- */
- protected function getAuthor($line)
- {
- $blameParts = array();
- $line = preg_replace('|\s+|', ' ', $line);
- preg_match(
- '|\(.+[0-9]{4}-[0-9]{2}-[0-9]{2}\s+[0-9]+\)|',
- $line,
- $blameParts
- );
-
- if (isset($blameParts[0]) === false) {
- return false;
- }
-
- $parts = explode(' ', $blameParts[0]);
-
- if (count($parts) < 2) {
- return false;
- }
-
- $parts = array_slice($parts, 0, (count($parts) - 2));
- $author = preg_replace('|\(|', '', implode($parts, ' '));
- return $author;
-
- }//end getAuthor()
-
-
- /**
- * Gets the blame output.
- *
- * @param string $filename File to blame.
- *
- * @return array
- */
- protected function getBlameContent($filename)
- {
- $cwd = getcwd();
-
- chdir(dirname($filename));
- $command = 'git blame --date=short "'.$filename.'" 2>&1';
- $handle = popen($command, 'r');
- if ($handle === false) {
- $error = 'ERROR: Could not execute "'.$command.'"'.PHP_EOL.PHP_EOL;
- throw new DeepExitException($error, 3);
- }
-
- $rawContent = stream_get_contents($handle);
- fclose($handle);
-
- $blames = explode("\n", $rawContent);
- chdir($cwd);
-
- return $blames;
-
- }//end getBlameContent()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Hgblame.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Hgblame.php
deleted file mode 100644
index 5bc255d3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Hgblame.php
+++ /dev/null
@@ -1,109 +0,0 @@
-<?php
-/**
- * Mercurial blame report for PHP_CodeSniffer.
- *
- * @author Ben Selby <benmatselby@gmail.com>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Exceptions\DeepExitException;
-
-class Hgblame extends VersionControl
-{
-
- /**
- * The name of the report we want in the output
- *
- * @var string
- */
- protected $reportName = 'MERCURIAL';
-
-
- /**
- * Extract the author from a blame line.
- *
- * @param string $line Line to parse.
- *
- * @return mixed string or false if impossible to recover.
- */
- protected function getAuthor($line)
- {
- $blameParts = array();
- $line = preg_replace('|\s+|', ' ', $line);
-
- preg_match(
- '|(.+[0-9]{2}:[0-9]{2}:[0-9]{2}\s[0-9]{4}\s.[0-9]{4}:)|',
- $line,
- $blameParts
- );
-
- if (isset($blameParts[0]) === false) {
- return false;
- }
-
- $parts = explode(' ', $blameParts[0]);
-
- if (count($parts) < 6) {
- return false;
- }
-
- $parts = array_slice($parts, 0, (count($parts) - 6));
-
- return trim(preg_replace('|<.+>|', '', implode($parts, ' ')));
-
- }//end getAuthor()
-
-
- /**
- * Gets the blame output.
- *
- * @param string $filename File to blame.
- *
- * @return array
- */
- protected function getBlameContent($filename)
- {
- $cwd = getcwd();
-
- $fileParts = explode(DIRECTORY_SEPARATOR, $filename);
- $found = false;
- $location = '';
- while (empty($fileParts) === false) {
- array_pop($fileParts);
- $location = implode($fileParts, DIRECTORY_SEPARATOR);
- if (is_dir($location.DIRECTORY_SEPARATOR.'.hg') === true) {
- $found = true;
- break;
- }
- }
-
- if ($found === true) {
- chdir($location);
- } else {
- $error = 'ERROR: Could not locate .hg directory '.PHP_EOL.PHP_EOL;
- throw new DeepExitException($error, 3);
- }
-
- $command = 'hg blame -u -d -v "'.$filename.'" 2>&1';
- $handle = popen($command, 'r');
- if ($handle === false) {
- $error = 'ERROR: Could not execute "'.$command.'"'.PHP_EOL.PHP_EOL;
- throw new DeepExitException($error, 3);
- }
-
- $rawContent = stream_get_contents($handle);
- fclose($handle);
-
- $blames = explode("\n", $rawContent);
- chdir($cwd);
-
- return $blames;
-
- }//end getBlameContent()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Info.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Info.php
deleted file mode 100644
index f932362f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Info.php
+++ /dev/null
@@ -1,141 +0,0 @@
-<?php
-/**
- * Info report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Timing;
-
-class Info implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- $metrics = $phpcsFile->getMetrics();
- foreach ($metrics as $metric => $data) {
- foreach ($data['values'] as $value => $count) {
- echo "$metric>>$value>>$count".PHP_EOL;
- }
- }
-
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Prints the source of all errors and warnings.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- $lines = explode(PHP_EOL, $cachedData);
- array_pop($lines);
-
- if (empty($lines) === true) {
- return;
- }
-
- $metrics = array();
- foreach ($lines as $line) {
- $parts = explode('>>', $line);
- $metric = $parts[0];
- $value = $parts[1];
- $count = $parts[2];
- if (isset($metrics[$metric]) === false) {
- $metrics[$metric] = array();
- }
-
- if (isset($metrics[$metric][$value]) === false) {
- $metrics[$metric][$value] = $count;
- } else {
- $metrics[$metric][$value] += $count;
- }
- }
-
- ksort($metrics);
-
- echo PHP_EOL."\033[1m".'PHP CODE SNIFFER INFORMATION REPORT'."\033[0m".PHP_EOL;
- echo str_repeat('-', 70).PHP_EOL;
-
- foreach ($metrics as $metric => $values) {
- $winner = '';
- $winnerCount = 0;
- $totalCount = 0;
- foreach ($values as $value => $count) {
- $totalCount += $count;
- if ($count > $winnerCount) {
- $winner = $value;
- $winnerCount = $count;
- }
- }
-
- $winPercent = round(($winnerCount / $totalCount * 100), 2);
- echo "$metric: \033[4m$winner\033[0m [$winnerCount/$totalCount, $winPercent%]".PHP_EOL;
-
- asort($values);
- $values = array_reverse($values, true);
- foreach ($values as $value => $count) {
- if ($value === $winner) {
- continue;
- }
-
- $percent = round(($count / $totalCount * 100), 2);
- echo "\t$value => $count ($percent%)".PHP_EOL;
- }
-
- echo PHP_EOL;
- }//end foreach
-
- echo str_repeat('-', 70).PHP_EOL;
-
- if ($toScreen === true && $interactive === false) {
- Timing::printRunTime();
- }
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Json.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Json.php
deleted file mode 100644
index 3c41f8e4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Json.php
+++ /dev/null
@@ -1,111 +0,0 @@
-<?php
-/**
- * JSON report for PHP_CodeSniffer.
- *
- * @author Jeffrey Fisher <jeffslofish@gmail.com>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-
-class Json implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- $filename = str_replace('\\', '\\\\', $report['filename']);
- $filename = str_replace('"', '\"', $filename);
- $filename = str_replace('/', '\/', $filename);
- echo '"'.$filename.'":{';
- echo '"errors":'.$report['errors'].',"warnings":'.$report['warnings'].',"messages":[';
-
- $messages = '';
- foreach ($report['messages'] as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $error['message'] = str_replace('\\', '\\\\', $error['message']);
- $error['message'] = str_replace('"', '\"', $error['message']);
- $error['message'] = str_replace('/', '\/', $error['message']);
- $error['message'] = str_replace("\n", '\n', $error['message']);
- $error['message'] = str_replace("\r", '\r', $error['message']);
- $error['message'] = str_replace("\t", '\t', $error['message']);
-
- $fixable = 'false';
- if ($error['fixable'] === true) {
- $fixable = 'true';
- }
-
- $messages .= '{"message":"'.$error['message'].'",';
- $messages .= '"source":"'.$error['source'].'",';
- $messages .= '"severity":'.$error['severity'].',';
- $messages .= '"type":"'.$error['type'].'",';
- $messages .= '"line":'.$line.',';
- $messages .= '"column":'.$column.',';
- $messages .= '"fixable":'.$fixable;
- $messages .= '},';
- }//end foreach
- }//end foreach
- }//end foreach
-
- echo rtrim($messages, ',');
- echo ']},';
-
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Generates a JSON report.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- echo '{"totals":{"errors":'.$totalErrors.',"warnings":'.$totalWarnings.',"fixable":'.$totalFixable.'},"files":{';
- echo rtrim($cachedData, ',');
- echo "}}";
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Junit.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Junit.php
deleted file mode 100644
index d69cfce1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Junit.php
+++ /dev/null
@@ -1,130 +0,0 @@
-<?php
-/**
- * JUnit report for PHP_CodeSniffer.
- *
- * @author Oleg Lobach <oleg@lobach.info>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Files\File;
-
-class Junit implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- $out = new \XMLWriter;
- $out->openMemory();
- $out->setIndent(true);
-
- $out->startElement('testsuite');
- $out->writeAttribute('name', $report['filename']);
-
- if (count($report['messages']) === 0) {
- $out->writeAttribute('tests', 1);
- $out->writeAttribute('failures', 0);
-
- $out->startElement('testcase');
- $out->writeAttribute('name', $report['filename']);
- $out->endElement();
- } else {
- $failures = ($report['errors'] + $report['warnings']);
- $out->writeAttribute('tests', $failures);
- $out->writeAttribute('failures', $failures);
-
- foreach ($report['messages'] as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $out->startElement('testcase');
- $out->writeAttribute('name', $error['source'].' at '.$report['filename']." ($line:$column)");
-
- $error['type'] = strtolower($error['type']);
- if ($phpcsFile->config->encoding !== 'utf-8') {
- $error['message'] = iconv($phpcsFile->config->encoding, 'utf-8', $error['message']);
- }
-
- $out->startElement('failure');
- $out->writeAttribute('type', $error['type']);
- $out->writeAttribute('message', $error['message']);
- $out->endElement();
-
- $out->endElement();
- }
- }
- }
- }//end if
-
- $out->endElement();
- echo $out->flush();
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Prints all violations for processed files, in a proprietary XML format.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- // Figure out the total number of tests.
- $tests = 0;
- $matches = array();
- preg_match_all('/tests="([0-9]+)"/', $cachedData, $matches);
- if (isset($matches[1]) === true) {
- foreach ($matches[1] as $match) {
- $tests += $match;
- }
- }
-
- $failures = ($totalErrors + $totalWarnings);
- echo '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL;
- echo '<testsuites name="PHP_CodeSniffer '.Config::VERSION.'" tests="'.$tests.'" failures="'.$failures.'">'.PHP_EOL;
- echo $cachedData;
- echo '</testsuites>'.PHP_EOL;
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Notifysend.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Notifysend.php
deleted file mode 100644
index 96001888..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Notifysend.php
+++ /dev/null
@@ -1,241 +0,0 @@
-<?php
-/**
- * Notify-send report for PHP_CodeSniffer.
- *
- * Supported configuration parameters:
- * - notifysend_path - Full path to notify-send cli command
- * - notifysend_timeout - Timeout in milliseconds
- * - notifysend_showok - Show "ok, all fine" messages (0/1)
- *
- * @author Christian Weiske <christian.weiske@netresearch.de>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2012-2014 Christian Weiske
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Files\File;
-
-class Notifysend implements Report
-{
-
- /**
- * Notification timeout in milliseconds.
- *
- * @var integer
- */
- protected $timeout = 3000;
-
- /**
- * Path to notify-send command.
- *
- * @var string
- */
- protected $path = 'notify-send';
-
- /**
- * Show "ok, all fine" messages.
- *
- * @var boolean
- */
- protected $showOk = true;
-
- /**
- * Version of installed notify-send executable.
- *
- * @var string
- */
- protected $version = null;
-
-
- /**
- * Load configuration data.
- */
- public function __construct()
- {
- $path = Config::getExecutablePath('notifysend');
- if ($path !== null) {
- $this->path = escapeshellcmd($path);
- }
-
- $timeout = Config::getConfigData('notifysend_timeout');
- if ($timeout !== null) {
- $this->timeout = (int) $timeout;
- }
-
- $showOk = Config::getConfigData('notifysend_showok');
- if ($showOk !== null) {
- $this->showOk = (boolean) $showOk;
- }
-
- $this->version = str_replace(
- 'notify-send ',
- '',
- exec($this->path.' --version')
- );
-
- }//end __construct()
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- echo $report['filename'].PHP_EOL;
-
- // We want this file counted in the total number
- // of checked files even if it has no errors.
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Generates a summary of errors and warnings for each file processed.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- $checkedFiles = explode(PHP_EOL, trim($cachedData));
-
- $msg = $this->generateMessage($checkedFiles, $totalErrors, $totalWarnings);
- if ($msg === null) {
- if ($this->showOk === true) {
- $this->notifyAllFine();
- }
- } else {
- $this->notifyErrors($msg);
- }
-
- }//end generate()
-
-
- /**
- * Generate the error message to show to the user.
- *
- * @param string[] $checkedFiles The files checked during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- *
- * @return string Error message or NULL if no error/warning found.
- */
- protected function generateMessage($checkedFiles, $totalErrors, $totalWarnings)
- {
- if ($totalErrors === 0 && $totalWarnings === 0) {
- // Nothing to print.
- return null;
- }
-
- $totalFiles = count($checkedFiles);
-
- $msg = '';
- if ($totalFiles > 1) {
- $msg .= 'Checked '.$totalFiles.' files'.PHP_EOL;
- } else {
- $msg .= $checkedFiles[0].PHP_EOL;
- }
-
- if ($totalWarnings > 0) {
- $msg .= $totalWarnings.' warnings'.PHP_EOL;
- }
-
- if ($totalErrors > 0) {
- $msg .= $totalErrors.' errors'.PHP_EOL;
- }
-
- return $msg;
-
- }//end generateMessage()
-
-
- /**
- * Tell the user that all is fine and no error/warning has been found.
- *
- * @return void
- */
- protected function notifyAllFine()
- {
- $cmd = $this->getBasicCommand();
- $cmd .= ' -i info';
- $cmd .= ' "PHP CodeSniffer: Ok"';
- $cmd .= ' "All fine"';
- exec($cmd);
-
- }//end notifyAllFine()
-
-
- /**
- * Tell the user that errors/warnings have been found.
- *
- * @param string $msg Message to display.
- *
- * @return void
- */
- protected function notifyErrors($msg)
- {
- $cmd = $this->getBasicCommand();
- $cmd .= ' -i error';
- $cmd .= ' "PHP CodeSniffer: Error"';
- $cmd .= ' '.escapeshellarg(trim($msg));
- exec($cmd);
-
- }//end notifyErrors()
-
-
- /**
- * Generate and return the basic notify-send command string to execute.
- *
- * @return string Shell command with common parameters.
- */
- protected function getBasicCommand()
- {
- $cmd = $this->path;
- $cmd .= ' --category dev.validate';
- $cmd .= ' -h int:transient:1';
- $cmd .= ' -t '.(int) $this->timeout;
- if (version_compare($this->version, '0.7.3', '>=') === true) {
- $cmd .= ' -a phpcs';
- }
-
- return $cmd;
-
- }//end getBasicCommand()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Report.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Report.php
deleted file mode 100644
index 38f8a629..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Report.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/**
- * An interface that PHP_CodeSniffer reports must implement.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-
-interface Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80);
-
-
- /**
- * Generate the actual report.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- );
-
-
-}//end interface
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Source.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Source.php
deleted file mode 100644
index d50464f0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Source.php
+++ /dev/null
@@ -1,337 +0,0 @@
-<?php
-/**
- * Source report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Timing;
-
-class Source implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- if ($report['errors'] === 0 && $report['warnings'] === 0) {
- // Nothing to print.
- return false;
- }
-
- $sources = array();
-
- foreach ($report['messages'] as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $src = $error['source'];
- if (isset($sources[$src]) === false) {
- $sources[$src] = array(
- 'fixable' => (int) $error['fixable'],
- 'count' => 1,
- );
- } else {
- $sources[$src]['count']++;
- }
- }
- }
- }
-
- foreach ($sources as $source => $data) {
- echo $source.'>>'.$data['fixable'].'>>'.$data['count'].PHP_EOL;
- }
-
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Prints the source of all errors and warnings.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- $lines = explode(PHP_EOL, $cachedData);
- array_pop($lines);
-
- if (empty($lines) === true) {
- return;
- }
-
- $sources = array();
- $maxLength = 0;
-
- foreach ($lines as $line) {
- $parts = explode('>>', $line);
- $source = $parts[0];
- $fixable = (bool) $parts[1];
- $count = $parts[2];
-
- if (isset($sources[$source]) === false) {
- if ($showSources === true) {
- $parts = null;
- $sniff = $source;
- } else {
- $parts = explode('.', $source);
- if ($parts[0] === 'Internal') {
- $parts[2] = $parts[1];
- $parts[1] = '';
- }
-
- $parts[1] = $this->makeFriendlyName($parts[1]);
-
- $sniff = $this->makeFriendlyName($parts[2]);
- if (isset($parts[3]) === true) {
- $name = $this->makeFriendlyName($parts[3]);
- $name[0] = strtolower($name[0]);
- $sniff .= ' '.$name;
- unset($parts[3]);
- }
-
- $parts[2] = $sniff;
- }//end if
-
- $maxLength = max($maxLength, strlen($sniff));
-
- $sources[$source] = array(
- 'count' => $count,
- 'fixable' => $fixable,
- 'parts' => $parts,
- );
- } else {
- $sources[$source]['count'] += $count;
- }//end if
-
- $fileLen = strlen($parts[0]);
- $reportFiles[$parts[0]] = array(
- 'errors' => $parts[1],
- 'warnings' => $parts[2],
- 'strlen' => $fileLen,
- );
- }//end foreach
-
- if ($showSources === true) {
- $width = min($width, ($maxLength + 11));
- } else {
- $width = min($width, ($maxLength + 41));
- }
-
- $width = max($width, 70);
-
- asort($sources);
- $sources = array_reverse($sources);
-
- echo PHP_EOL."\033[1mPHP CODE SNIFFER VIOLATION SOURCE SUMMARY\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL."\033[1m";
- if ($showSources === true) {
- if ($totalFixable > 0) {
- echo ' SOURCE'.str_repeat(' ', ($width - 15)).'COUNT'.PHP_EOL;
- } else {
- echo 'SOURCE'.str_repeat(' ', ($width - 11)).'COUNT'.PHP_EOL;
- }
- } else {
- if ($totalFixable > 0) {
- echo ' STANDARD CATEGORY SNIFF'.str_repeat(' ', ($width - 44)).'COUNT'.PHP_EOL;
- } else {
- echo 'STANDARD CATEGORY SNIFF'.str_repeat(' ', ($width - 40)).'COUNT'.PHP_EOL;
- }
- }
-
- echo "\033[0m".str_repeat('-', $width).PHP_EOL;
-
- $fixableSources = 0;
-
- if ($showSources === true) {
- $maxSniffWidth = ($width - 7);
- } else {
- $maxSniffWidth = ($width - 37);
- }
-
- if ($totalFixable > 0) {
- $maxSniffWidth -= 4;
- }
-
- foreach ($sources as $source => $sourceData) {
- if ($totalFixable > 0) {
- echo '[';
- if ($sourceData['fixable'] === true) {
- echo 'x';
- $fixableSources++;
- } else {
- echo ' ';
- }
-
- echo '] ';
- }
-
- if ($showSources === true) {
- if (strlen($source) > $maxSniffWidth) {
- $source = substr($source, 0, $maxSniffWidth);
- }
-
- echo $source;
- if ($totalFixable > 0) {
- echo str_repeat(' ', ($width - 9 - strlen($source)));
- } else {
- echo str_repeat(' ', ($width - 5 - strlen($source)));
- }
- } else {
- $parts = $sourceData['parts'];
-
- if (strlen($parts[0]) > 8) {
- $parts[0] = substr($parts[0], 0, ((strlen($parts[0]) - 8) * -1));
- }
-
- echo $parts[0].str_repeat(' ', (10 - strlen($parts[0])));
-
- $category = $parts[1];
- if (strlen($category) > 18) {
- $category = substr($category, 0, ((strlen($category) - 18) * -1));
- }
-
- echo $category.str_repeat(' ', (20 - strlen($category)));
-
- $sniff = $parts[2];
- if (strlen($sniff) > $maxSniffWidth) {
- $sniff = substr($sniff, 0, $maxSniffWidth);
- }
-
- if ($totalFixable > 0) {
- echo $sniff.str_repeat(' ', ($width - 39 - strlen($sniff)));
- } else {
- echo $sniff.str_repeat(' ', ($width - 35 - strlen($sniff)));
- }
- }//end if
-
- echo $sourceData['count'].PHP_EOL;
- }//end foreach
-
- echo str_repeat('-', $width).PHP_EOL;
- echo "\033[1m".'A TOTAL OF '.($totalErrors + $totalWarnings).' SNIFF VIOLATION';
- if (($totalErrors + $totalWarnings) > 1) {
- echo 'S';
- }
-
- echo ' WERE FOUND IN '.count($sources).' SOURCE';
- if (count($sources) !== 1) {
- echo 'S';
- }
-
- echo "\033[0m";
-
- if ($totalFixable > 0) {
- echo PHP_EOL.str_repeat('-', $width).PHP_EOL;
- echo "\033[1mPHPCBF CAN FIX THE $fixableSources MARKED SOURCES AUTOMATICALLY ($totalFixable VIOLATIONS IN TOTAL)\033[0m";
- }
-
- echo PHP_EOL.str_repeat('-', $width).PHP_EOL.PHP_EOL;
-
- if ($toScreen === true && $interactive === false) {
- Timing::printRunTime();
- }
-
- }//end generate()
-
-
- /**
- * Converts a camel caps name into a readable string.
- *
- * @param string $name The camel caps name to convert.
- *
- * @return string
- */
- public function makeFriendlyName($name)
- {
- if (trim($name) === '') {
- return '';
- }
-
- $friendlyName = '';
- $length = strlen($name);
-
- $lastWasUpper = false;
- $lastWasNumeric = false;
- for ($i = 0; $i < $length; $i++) {
- if (is_numeric($name[$i]) === true) {
- if ($lastWasNumeric === false) {
- $friendlyName .= ' ';
- }
-
- $lastWasUpper = false;
- $lastWasNumeric = true;
- } else {
- $lastWasNumeric = false;
-
- $char = strtolower($name[$i]);
- if ($char === $name[$i]) {
- // Lowercase.
- $lastWasUpper = false;
- } else {
- // Uppercase.
- if ($lastWasUpper === false) {
- $friendlyName .= ' ';
- if ($i < ($length - 1)) {
- $next = $name[($i + 1)];
- if (strtolower($next) === $next) {
- // Next char is lowercase so it is a word boundary.
- $name[$i] = strtolower($name[$i]);
- }
- }
- }
-
- $lastWasUpper = true;
- }
- }//end if
-
- $friendlyName .= $name[$i];
- }//end for
-
- $friendlyName = trim($friendlyName);
- $friendlyName[0] = strtoupper($friendlyName[0]);
-
- return $friendlyName;
-
- }//end makeFriendlyName()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Summary.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Summary.php
deleted file mode 100644
index 13589f42..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Summary.php
+++ /dev/null
@@ -1,162 +0,0 @@
-<?php
-/**
- * Summary report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util;
-
-class Summary implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- if (PHP_CODESNIFFER_VERBOSITY === 0
- && $report['errors'] === 0
- && $report['warnings'] === 0
- ) {
- // Nothing to print.
- return false;
- }
-
- echo $report['filename'].'>>'.$report['errors'].'>>'.$report['warnings'].PHP_EOL;
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Generates a summary of errors and warnings for each file processed.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- $lines = explode(PHP_EOL, $cachedData);
- array_pop($lines);
-
- if (empty($lines) === true) {
- return;
- }
-
- $reportFiles = array();
- $maxLength = 0;
-
- foreach ($lines as $line) {
- $parts = explode('>>', $line);
- $fileLen = strlen($parts[0]);
- $reportFiles[$parts[0]] = array(
- 'errors' => $parts[1],
- 'warnings' => $parts[2],
- 'strlen' => $fileLen,
- );
-
- $maxLength = max($maxLength, $fileLen);
- }
-
- $width = min($width, ($maxLength + 21));
- $width = max($width, 70);
-
- echo PHP_EOL."\033[1m".'PHP CODE SNIFFER REPORT SUMMARY'."\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
- echo "\033[1m".'FILE'.str_repeat(' ', ($width - 20)).'ERRORS WARNINGS'."\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
-
- foreach ($reportFiles as $file => $data) {
- $padding = ($width - 18 - $data['strlen']);
- if ($padding < 0) {
- $file = '...'.substr($file, (($padding * -1) + 3));
- $padding = 0;
- }
-
- echo $file.str_repeat(' ', $padding).' ';
- if ($data['errors'] !== 0) {
- echo "\033[31m".$data['errors']."\033[0m";
- echo str_repeat(' ', (8 - strlen((string) $data['errors'])));
- } else {
- echo '0 ';
- }
-
- if ($data['warnings'] !== 0) {
- echo "\033[33m".$data['warnings']."\033[0m";
- } else {
- echo '0';
- }
-
- echo PHP_EOL;
- }//end foreach
-
- echo str_repeat('-', $width).PHP_EOL;
- echo "\033[1mA TOTAL OF $totalErrors ERROR";
- if ($totalErrors !== 1) {
- echo 'S';
- }
-
- echo ' AND '.$totalWarnings.' WARNING';
- if ($totalWarnings !== 1) {
- echo 'S';
- }
-
- echo ' WERE FOUND IN '.$totalFiles.' FILE';
- if ($totalFiles !== 1) {
- echo 'S';
- }
-
- echo "\033[0m";
-
- if ($totalFixable > 0) {
- echo PHP_EOL.str_repeat('-', $width).PHP_EOL;
- echo "\033[1mPHPCBF CAN FIX $totalFixable OF THESE SNIFF VIOLATIONS AUTOMATICALLY\033[0m";
- }
-
- echo PHP_EOL.str_repeat('-', $width).PHP_EOL.PHP_EOL;
-
- if ($toScreen === true && $interactive === false) {
- Util\Timing::printRunTime();
- }
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Svnblame.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Svnblame.php
deleted file mode 100644
index 3c885a33..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Svnblame.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/**
- * SVN blame report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Exceptions\DeepExitException;
-
-class Svnblame extends VersionControl
-{
-
- /**
- * The name of the report we want in the output
- *
- * @var string
- */
- protected $reportName = 'SVN';
-
-
- /**
- * Extract the author from a blame line.
- *
- * @param string $line Line to parse.
- *
- * @return mixed string or false if impossible to recover.
- */
- protected function getAuthor($line)
- {
- $blameParts = array();
- preg_match('|\s*([^\s]+)\s+([^\s]+)|', $line, $blameParts);
-
- if (isset($blameParts[2]) === false) {
- return false;
- }
-
- return $blameParts[2];
-
- }//end getAuthor()
-
-
- /**
- * Gets the blame output.
- *
- * @param string $filename File to blame.
- *
- * @return array
- */
- protected function getBlameContent($filename)
- {
- $command = 'svn blame "'.$filename.'" 2>&1';
- $handle = popen($command, 'r');
- if ($handle === false) {
- $error = 'ERROR: Could not execute "'.$command.'"'.PHP_EOL.PHP_EOL;
- throw new DeepExitException($error, 3);
- }
-
- $rawContent = stream_get_contents($handle);
- fclose($handle);
-
- $blames = explode("\n", $rawContent);
-
- return $blames;
-
- }//end getBlameContent()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/VersionControl.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/VersionControl.php
deleted file mode 100644
index 612f4d5d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/VersionControl.php
+++ /dev/null
@@ -1,376 +0,0 @@
-<?php
-/**
- * Version control report base class for PHP_CodeSniffer.
- *
- * @author Ben Selby <benmatselby@gmail.com>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Timing;
-
-abstract class VersionControl implements Report
-{
-
- /**
- * The name of the report we want in the output.
- *
- * @var string
- */
- protected $reportName = 'VERSION CONTROL';
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- $blames = $this->getBlameContent($report['filename']);
-
- $authorCache = array();
- $praiseCache = array();
- $sourceCache = array();
-
- foreach ($report['messages'] as $line => $lineErrors) {
- $author = 'Unknown';
- if (isset($blames[($line - 1)]) === true) {
- $blameAuthor = $this->getAuthor($blames[($line - 1)]);
- if ($blameAuthor !== false) {
- $author = $blameAuthor;
- }
- }
-
- if (isset($authorCache[$author]) === false) {
- $authorCache[$author] = 0;
- $praiseCache[$author] = array(
- 'good' => 0,
- 'bad' => 0,
- );
- }
-
- $praiseCache[$author]['bad']++;
-
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $authorCache[$author]++;
-
- if ($showSources === true) {
- $source = $error['source'];
- if (isset($sourceCache[$author][$source]) === false) {
- $sourceCache[$author][$source] = array(
- 'count' => 1,
- 'fixable' => $error['fixable'],
- );
- } else {
- $sourceCache[$author][$source]['count']++;
- }
- }
- }
- }
-
- unset($blames[($line - 1)]);
- }//end foreach
-
- // Now go through and give the authors some credit for
- // all the lines that do not have errors.
- foreach ($blames as $line) {
- $author = $this->getAuthor($line);
- if ($author === false) {
- $author = 'Unknown';
- }
-
- if (isset($authorCache[$author]) === false) {
- // This author doesn't have any errors.
- if (PHP_CODESNIFFER_VERBOSITY === 0) {
- continue;
- }
-
- $authorCache[$author] = 0;
- $praiseCache[$author] = array(
- 'good' => 0,
- 'bad' => 0,
- );
- }
-
- $praiseCache[$author]['good']++;
- }//end foreach
-
- foreach ($authorCache as $author => $errors) {
- echo "AUTHOR>>$author>>$errors".PHP_EOL;
- }
-
- foreach ($praiseCache as $author => $praise) {
- echo "PRAISE>>$author>>".$praise['good'].'>>'.$praise['bad'].PHP_EOL;
- }
-
- foreach ($sourceCache as $author => $sources) {
- foreach ($sources as $source => $sourceData) {
- $count = $sourceData['count'];
- $fixable = (int) $sourceData['fixable'];
- echo "SOURCE>>$author>>$source>>$count>>$fixable".PHP_EOL;
- }
- }
-
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Prints the author of all errors and warnings, as given by "version control blame".
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- $errorsShown = ($totalErrors + $totalWarnings);
- if ($errorsShown === 0) {
- // Nothing to show.
- return;
- }
-
- $lines = explode(PHP_EOL, $cachedData);
- array_pop($lines);
-
- if (empty($lines) === true) {
- return;
- }
-
- $authorCache = array();
- $praiseCache = array();
- $sourceCache = array();
-
- foreach ($lines as $line) {
- $parts = explode('>>', $line);
- switch ($parts[0]) {
- case 'AUTHOR':
- if (isset($authorCache[$parts[1]]) === false) {
- $authorCache[$parts[1]] = $parts[2];
- } else {
- $authorCache[$parts[1]] += $parts[2];
- }
- break;
- case 'PRAISE':
- if (isset($praiseCache[$parts[1]]) === false) {
- $praiseCache[$parts[1]] = array(
- 'good' => $parts[2],
- 'bad' => $parts[3],
- );
- } else {
- $praiseCache[$parts[1]]['good'] += $parts[2];
- $praiseCache[$parts[1]]['bad'] += $parts[3];
- }
- break;
- case 'SOURCE':
- if (isset($praiseCache[$parts[1]]) === false) {
- $praiseCache[$parts[1]] = array();
- }
-
- if (isset($sourceCache[$parts[1]][$parts[2]]) === false) {
- $sourceCache[$parts[1]][$parts[2]] = array(
- 'count' => $parts[3],
- 'fixable' => (bool) $parts[4],
- );
- } else {
- $sourceCache[$parts[1]][$parts[2]]['count'] += $parts[3];
- }
- break;
- default:
- break;
- }//end switch
- }//end foreach
-
- // Make sure the report width isn't too big.
- $maxLength = 0;
- foreach ($authorCache as $author => $count) {
- $maxLength = max($maxLength, strlen($author));
- if ($showSources === true && isset($sourceCache[$author]) === true) {
- foreach ($sourceCache[$author] as $source => $sourceData) {
- if ($source === 'count') {
- continue;
- }
-
- $maxLength = max($maxLength, (strlen($source) + 9));
- }
- }
- }
-
- $width = min($width, ($maxLength + 30));
- $width = max($width, 70);
- arsort($authorCache);
-
- echo PHP_EOL."\033[1m".'PHP CODE SNIFFER '.$this->reportName.' BLAME SUMMARY'."\033[0m".PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL."\033[1m";
- if ($showSources === true) {
- echo 'AUTHOR SOURCE'.str_repeat(' ', ($width - 43)).'(Author %) (Overall %) COUNT'.PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
- } else {
- echo 'AUTHOR'.str_repeat(' ', ($width - 34)).'(Author %) (Overall %) COUNT'.PHP_EOL;
- echo str_repeat('-', $width).PHP_EOL;
- }
-
- echo "\033[0m";
-
- if ($showSources === true) {
- $maxSniffWidth = ($width - 15);
-
- if ($totalFixable > 0) {
- $maxSniffWidth -= 4;
- }
- }
-
- $fixableSources = 0;
-
- foreach ($authorCache as $author => $count) {
- if ($praiseCache[$author]['good'] === 0) {
- $percent = 0;
- } else {
- $total = ($praiseCache[$author]['bad'] + $praiseCache[$author]['good']);
- $percent = round(($praiseCache[$author]['bad'] / $total * 100), 2);
- }
-
- $overallPercent = '('.round((($count / $errorsShown) * 100), 2).')';
- $authorPercent = '('.$percent.')';
- $line = str_repeat(' ', (6 - strlen($count))).$count;
- $line = str_repeat(' ', (12 - strlen($overallPercent))).$overallPercent.$line;
- $line = str_repeat(' ', (11 - strlen($authorPercent))).$authorPercent.$line;
- $line = $author.str_repeat(' ', ($width - strlen($author) - strlen($line))).$line;
-
- if ($showSources === true) {
- $line = "\033[1m$line\033[0m";
- }
-
- echo $line.PHP_EOL;
-
- if ($showSources === true && isset($sourceCache[$author]) === true) {
- $errors = $sourceCache[$author];
- asort($errors);
- $errors = array_reverse($errors);
-
- foreach ($errors as $source => $sourceData) {
- if ($source === 'count') {
- continue;
- }
-
- $count = $sourceData['count'];
-
- $srcLength = strlen($source);
- if ($srcLength > $maxSniffWidth) {
- $source = substr($source, 0, $maxSniffWidth);
- }
-
- $line = str_repeat(' ', (5 - strlen($count))).$count;
-
- echo ' ';
- if ($totalFixable > 0) {
- echo '[';
- if ($sourceData['fixable'] === true) {
- echo 'x';
- $fixableSources++;
- } else {
- echo ' ';
- }
-
- echo '] ';
- }
-
- echo $source;
- if ($totalFixable > 0) {
- echo str_repeat(' ', ($width - 18 - strlen($source)));
- } else {
- echo str_repeat(' ', ($width - 14 - strlen($source)));
- }
-
- echo $line.PHP_EOL;
- }//end foreach
- }//end if
- }//end foreach
-
- echo str_repeat('-', $width).PHP_EOL;
- echo "\033[1m".'A TOTAL OF '.$errorsShown.' SNIFF VIOLATION';
- if ($errorsShown !== 1) {
- echo 'S';
- }
-
- echo ' WERE COMMITTED BY '.count($authorCache).' AUTHOR';
- if (count($authorCache) !== 1) {
- echo 'S';
- }
-
- echo "\033[0m";
-
- if ($totalFixable > 0) {
- if ($showSources === true) {
- echo PHP_EOL.str_repeat('-', $width).PHP_EOL;
- echo "\033[1mPHPCBF CAN FIX THE $fixableSources MARKED SOURCES AUTOMATICALLY ($totalFixable VIOLATIONS IN TOTAL)\033[0m";
- } else {
- echo PHP_EOL.str_repeat('-', $width).PHP_EOL;
- echo "\033[1mPHPCBF CAN FIX $totalFixable OF THESE SNIFF VIOLATIONS AUTOMATICALLY\033[0m";
- }
- }
-
- echo PHP_EOL.str_repeat('-', $width).PHP_EOL.PHP_EOL;
-
- if ($toScreen === true && $interactive === false) {
- Timing::printRunTime();
- }
-
- }//end generate()
-
-
- /**
- * Extract the author from a blame line.
- *
- * @param string $line Line to parse.
- *
- * @return mixed string or false if impossible to recover.
- */
- abstract protected function getAuthor($line);
-
-
- /**
- * Gets the blame output.
- *
- * @param string $filename File to blame.
- *
- * @return array
- */
- abstract protected function getBlameContent($filename);
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Xml.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Xml.php
deleted file mode 100644
index fb763ab8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Reports/Xml.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-/**
- * XML report for PHP_CodeSniffer.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Reports;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Files\File;
-
-class Xml implements Report
-{
-
-
- /**
- * Generate a partial report for a single processed file.
- *
- * Function should return TRUE if it printed or stored data about the file
- * 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 \PHP_CodeSniffer\File $phpcsFile The file being reported on.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- *
- * @return bool
- */
- public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
- {
- $out = new \XMLWriter;
- $out->openMemory();
- $out->setIndent(true);
-
- if ($report['errors'] === 0 && $report['warnings'] === 0) {
- // Nothing to print.
- return false;
- }
-
- $out->startElement('file');
- $out->writeAttribute('name', $report['filename']);
- $out->writeAttribute('errors', $report['errors']);
- $out->writeAttribute('warnings', $report['warnings']);
- $out->writeAttribute('fixable', $report['fixable']);
-
- foreach ($report['messages'] as $line => $lineErrors) {
- foreach ($lineErrors as $column => $colErrors) {
- foreach ($colErrors as $error) {
- $error['type'] = strtolower($error['type']);
- if ($phpcsFile->config->encoding !== 'utf-8') {
- $error['message'] = iconv($phpcsFile->config->encoding, 'utf-8', $error['message']);
- }
-
- $out->startElement($error['type']);
- $out->writeAttribute('line', $line);
- $out->writeAttribute('column', $column);
- $out->writeAttribute('source', $error['source']);
- $out->writeAttribute('severity', $error['severity']);
- $out->writeAttribute('fixable', (int) $error['fixable']);
- $out->text($error['message']);
- $out->endElement();
- }
- }
- }//end foreach
-
- $out->endElement();
- echo $out->flush();
-
- return true;
-
- }//end generateFileReport()
-
-
- /**
- * Prints all violations for processed files, in a proprietary XML format.
- *
- * @param string $cachedData Any partial report data that was returned from
- * generateFileReport during the run.
- * @param int $totalFiles Total number of files processed during the run.
- * @param int $totalErrors Total number of errors found during the run.
- * @param int $totalWarnings Total number of warnings found during the run.
- * @param int $totalFixable Total number of problems that can be fixed.
- * @param bool $showSources Show sources?
- * @param int $width Maximum allowed line width.
- * @param bool $interactive Are we running in interactive mode?
- * @param bool $toScreen Is the report being printed to screen?
- *
- * @return void
- */
- public function generate(
- $cachedData,
- $totalFiles,
- $totalErrors,
- $totalWarnings,
- $totalFixable,
- $showSources=false,
- $width=80,
- $interactive=false,
- $toScreen=true
- ) {
- echo '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL;
- echo '<phpcs version="'.Config::VERSION.'">'.PHP_EOL;
- echo $cachedData;
- echo '</phpcs>'.PHP_EOL;
-
- }//end generate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Ruleset.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Ruleset.php
deleted file mode 100644
index a7e76ae2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Ruleset.php
+++ /dev/null
@@ -1,1299 +0,0 @@
-<?php
-/**
- * Stores the rules used to check and fix files.
- *
- * A ruleset object directly maps to a ruleset XML file.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer;
-
-use PHP_CodeSniffer\Util;
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-
-class Ruleset
-{
-
- /**
- * The name of the coding standard being used.
- *
- * If a top-level standard includes other standards, or sniffs
- * from other standards, only the name of the top-level standard
- * will be stored in here.
- *
- * If multiple top-level standards are being loaded into
- * a single ruleset object, this will store a comma separated list
- * of the top-level standard names.
- *
- * @var string
- */
- public $name = '';
-
- /**
- * A list of file paths for the ruleset files being used.
- *
- * @var string[]
- */
- public $paths = array();
-
- /**
- * A list of regular expressions used to ignore specific sniffs for files and folders.
- *
- * Is also used to set global exclude patterns.
- * The key is the regular expression and the value is the type
- * of ignore pattern (absolute or relative).
- *
- * @var array<string, string>
- */
- public $ignorePatterns = array();
-
- /**
- * A list of regular expressions used to include specific sniffs for files and folders.
- *
- * The key is the sniff code and the value is an array with
- * the key being a regular expression and the value is the type
- * of ignore pattern (absolute or relative).
- *
- * @var array<string, array<string, string>>
- */
- public $includePatterns = array();
-
- /**
- * An array of sniff objects that are being used to check files.
- *
- * The key is the fully qualified name of the sniff class
- * and the value is the sniff object.
- *
- * @var array<string, \PHP_CodeSniffer\Sniff>
- */
- public $sniffs = array();
-
- /**
- * A mapping of sniff codes to fully qualified class names.
- *
- * The key is the sniff code and the value
- * is the fully qualified name of the sniff class.
- *
- * @var array<string, string>
- */
- public $sniffCodes = array();
-
- /**
- * An array of token types and the sniffs that are listening for them.
- *
- * The key is the token name being listened for and the value
- * is the sniff object.
- *
- * @var array<int, \PHP_CodeSniffer\Sniff>
- */
- public $tokenListeners = array();
-
- /**
- * An array of rules from the ruleset.xml file.
- *
- * It may be empty, indicating that the ruleset does not override
- * any of the default sniff settings.
- *
- * @var array<string, mixed>
- */
- public $ruleset = array();
-
- /**
- * The directories that the processed rulesets are in.
- *
- * @var string[]
- */
- protected $rulesetDirs = array();
-
- /**
- * The config data for the run.
- *
- * @var \PHP_CodeSniffer\Config
- */
- private $config = null;
-
-
- /**
- * Initialise the ruleset that the run will use.
- *
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- *
- * @return void
- */
- public function __construct(Config $config)
- {
- // Ignore sniff restrictions if caching is on.
- $restrictions = array();
- $exclusions = array();
- if ($config->cache === false) {
- $restrictions = $config->sniffs;
- $exclusions = $config->exclude;
- }
-
- $this->config = $config;
- $sniffs = array();
-
- $standardPaths = array();
- foreach ($config->standards as $standard) {
- $installed = Util\Standards::getInstalledStandardPath($standard);
- if ($installed === null) {
- $standard = Util\Common::realpath($standard);
- if (is_dir($standard) === true
- && is_file(Util\Common::realpath($standard.DIRECTORY_SEPARATOR.'ruleset.xml')) === true
- ) {
- $standard = Util\Common::realpath($standard.DIRECTORY_SEPARATOR.'ruleset.xml');
- }
- } else {
- $standard = $installed;
- }
-
- $standardPaths[] = $standard;
- }
-
- if (defined('PHP_CODESNIFFER_IN_TESTS') === true && empty($restrictions) === false) {
- // Should be one standard and one sniff being tested at a time.
- $sniffs = $this->expandRulesetReference($restrictions[0], dirname($standardPaths[0]));
- } else {
- foreach ($standardPaths as $standard) {
- $ruleset = @simplexml_load_string(file_get_contents($standard));
- if ($ruleset !== false) {
- $standardName = (string) $ruleset['name'];
- if ($this->name !== '') {
- $this->name .= ', ';
- }
-
- $this->name .= $standardName;
- $this->paths[] = $standard;
-
- // Allow autoloading of custom files inside this standard.
- if (isset($ruleset['namespace']) === true) {
- $namespace = (string) $ruleset['namespace'];
- } else {
- $namespace = basename(dirname($standard));
- }
-
- Autoload::addSearchPath(dirname($standard), $namespace);
- }
-
- if (PHP_CODESNIFFER_VERBOSITY === 1) {
- echo "Registering sniffs in the $standardName standard... ";
- if (count($config->standards) > 1 || PHP_CODESNIFFER_VERBOSITY > 2) {
- echo PHP_EOL;
- }
- }
-
- $sniffs = array_merge($sniffs, $this->processRuleset($standard));
- }//end foreach
- }//end if
-
- $sniffRestrictions = array();
- foreach ($restrictions as $sniffCode) {
- $parts = explode('.', strtolower($sniffCode));
- $sniffName = $parts[0].'\sniffs\\'.$parts[1].'\\'.$parts[2].'sniff';
- $sniffRestrictions[$sniffName] = true;
- }
-
- $sniffExclusions = array();
- foreach ($exclusions as $sniffCode) {
- $parts = explode('.', strtolower($sniffCode));
- $sniffName = $parts[0].'\sniffs\\'.$parts[1].'\\'.$parts[2].'sniff';
- $sniffExclusions[$sniffName] = true;
- }
-
- $this->registerSniffs($sniffs, $sniffRestrictions, $sniffExclusions);
- $this->populateTokenListeners();
-
- $numSniffs = count($this->sniffs);
- if (PHP_CODESNIFFER_VERBOSITY === 1) {
- echo "DONE ($numSniffs sniffs registered)".PHP_EOL;
- }
-
- if ($numSniffs === 0) {
- throw new RuntimeException('No sniffs were registered');
- }
-
- }//end __construct()
-
-
- /**
- * Prints a report showing the sniffs contained in a standard.
- *
- * @return void
- */
- public function explain()
- {
- $sniffs = array_keys($this->sniffCodes);
- sort($sniffs);
-
- ob_start();
-
- $lastStandard = null;
- $lastCount = '';
- $sniffCount = count($sniffs);
-
- // Add a dummy entry to the end so we loop
- // one last time and clear the output buffer.
- $sniffs[] = '';
-
- echo PHP_EOL."The $this->name standard contains $sniffCount sniffs".PHP_EOL;
-
- ob_start();
-
- foreach ($sniffs as $i => $sniff) {
- if ($i === $sniffCount) {
- $currentStandard = null;
- } else {
- $currentStandard = substr($sniff, 0, strpos($sniff, '.'));
- if ($lastStandard === null) {
- $lastStandard = $currentStandard;
- }
- }
-
- if ($currentStandard !== $lastStandard) {
- $sniffList = ob_get_contents();
- ob_end_clean();
-
- echo PHP_EOL.$lastStandard.' ('.$lastCount.' sniff';
- if ($lastCount > 1) {
- echo 's';
- }
-
- echo ')'.PHP_EOL;
- echo str_repeat('-', (strlen($lastStandard.$lastCount) + 10));
- echo PHP_EOL;
- echo $sniffList;
-
- $lastStandard = $currentStandard;
- $lastCount = 0;
-
- if ($currentStandard === null) {
- break;
- }
-
- ob_start();
- }//end if
-
- echo ' '.$sniff.PHP_EOL;
- $lastCount++;
- }//end foreach
-
- }//end explain()
-
-
- /**
- * Processes a single ruleset and returns a list of the sniffs it represents.
- *
- * Rules founds within the ruleset are processed immediately, but sniff classes
- * are not registered by this method.
- *
- * @param string $rulesetPath The path to a ruleset XML file.
- * @param int $depth How many nested processing steps we are in. This
- * is only used for debug output.
- *
- * @return string[]
- * @throws RuntimeException If the ruleset path is invalid.
- */
- public function processRuleset($rulesetPath, $depth=0)
- {
- $rulesetPath = Util\Common::realpath($rulesetPath);
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo 'Processing ruleset '.Util\Common::stripBasepath($rulesetPath, $this->config->basepath).PHP_EOL;
- }
-
- $ruleset = @simplexml_load_string(file_get_contents($rulesetPath));
- if ($ruleset === false) {
- throw new RuntimeException("Ruleset $rulesetPath is not valid");
- }
-
- $ownSniffs = array();
- $includedSniffs = array();
- $excludedSniffs = array();
-
- $rulesetDir = dirname($rulesetPath);
- $this->rulesetDirs[] = $rulesetDir;
-
- $sniffDir = $rulesetDir.DIRECTORY_SEPARATOR.'Sniffs';
- if (is_dir($sniffDir) === true) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\tAdding sniff files from ".Util\Common::stripBasepath($sniffDir, $this->config->basepath).' directory'.PHP_EOL;
- }
-
- $ownSniffs = $this->expandSniffDirectory($sniffDir, $depth);
- }
-
- // Included custom autoloaders.
- foreach ($ruleset->{'autoload'} as $autoload) {
- if ($this->shouldProcessElement($autoload) === false) {
- continue;
- }
-
- $autoloadPath = (string) $autoload;
- if (is_file($autoloadPath) === false) {
- $autoloadPath = Util\Common::realPath(dirname($rulesetPath).DIRECTORY_SEPARATOR.$autoloadPath);
- }
-
- if ($autoloadPath === false) {
- throw new RuntimeException('The specified autoload file "'.$autoload.'" does not exist');
- }
-
- include_once $autoloadPath;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t=> included autoloader $autoloadPath".PHP_EOL;
- }
- }//end foreach
-
- // Process custom sniff config settings.
- foreach ($ruleset->{'config'} as $config) {
- if ($this->shouldProcessElement($config) === false) {
- continue;
- }
-
- Config::setConfigData((string) $config['name'], (string) $config['value'], true);
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t=> set config value ".(string) $config['name'].': '.(string) $config['value'].PHP_EOL;
- }
- }
-
- foreach ($ruleset->rule as $rule) {
- if (isset($rule['ref']) === false
- || $this->shouldProcessElement($rule) === false
- ) {
- continue;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\tProcessing rule \"".$rule['ref'].'"'.PHP_EOL;
- }
-
- $expandedSniffs = $this->expandRulesetReference($rule['ref'], $rulesetDir, $depth);
- $newSniffs = array_diff($expandedSniffs, $includedSniffs);
- $includedSniffs = array_merge($includedSniffs, $expandedSniffs);
-
- $parts = explode('.', $rule['ref']);
- if (count($parts) === 4) {
- $sniffCode = $parts[0].'.'.$parts[1].'.'.$parts[2];
- if (isset($this->ruleset[$sniffCode]['severity']) === true
- && $this->ruleset[$sniffCode]['severity'] === 0
- ) {
- // This sniff code has already been turned off, but now
- // it is being explicitly included again, so turn it back on.
- $this->ruleset[(string) $rule['ref']]['severity'] = 5;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t* disabling sniff exclusion for specific message code *".PHP_EOL;
- echo str_repeat("\t", $depth);
- echo "\t\t=> severity set to 5".PHP_EOL;
- }
- } else if (empty($newSniffs) === false) {
- $newSniff = $newSniffs[0];
- if (in_array($newSniff, $ownSniffs) === false) {
- // Including a sniff that hasn't been included higher up, but
- // only including a single message from it. So turn off all messages in
- // the sniff, except this one.
- $this->ruleset[$sniffCode]['severity'] = 0;
- $this->ruleset[(string) $rule['ref']]['severity'] = 5;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\tExcluding sniff \"".$sniffCode.'" except for "'.$parts[3].'"'.PHP_EOL;
- }
- }
- }//end if
- }//end if
-
- if (isset($rule->exclude) === true) {
- foreach ($rule->exclude as $exclude) {
- if (isset($exclude['name']) === false) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t* ignoring empty exclude rule *".PHP_EOL;
- echo "\t\t\t=> ".$exclude->asXML().PHP_EOL;
- }
-
- continue;
- }
-
- if ($this->shouldProcessElement($exclude) === false) {
- continue;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\tExcluding rule \"".$exclude['name'].'"'.PHP_EOL;
- }
-
- // Check if a single code is being excluded, which is a shortcut
- // for setting the severity of the message to 0.
- $parts = explode('.', $exclude['name']);
- if (count($parts) === 4) {
- $this->ruleset[(string) $exclude['name']]['severity'] = 0;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> severity set to 0".PHP_EOL;
- }
- } else {
- $excludedSniffs = array_merge(
- $excludedSniffs,
- $this->expandRulesetReference($exclude['name'], $rulesetDir, ($depth + 1))
- );
- }
- }//end foreach
- }//end if
-
- $this->processRule($rule, $newSniffs, $depth);
- }//end foreach
-
- // Process custom command line arguments.
- $cliArgs = array();
- foreach ($ruleset->{'arg'} as $arg) {
- if ($this->shouldProcessElement($arg) === false) {
- continue;
- }
-
- if (isset($arg['name']) === true) {
- $argString = '--'.(string) $arg['name'];
- if (isset($arg['value']) === true) {
- $argString .= '='.(string) $arg['value'];
- }
- } else {
- $argString = '-'.(string) $arg['value'];
- }
-
- $cliArgs[] = $argString;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t=> set command line value $argString".PHP_EOL;
- }
- }//end foreach
-
- // Set custom php ini values as CLI args.
- foreach ($ruleset->{'ini'} as $arg) {
- if ($this->shouldProcessElement($arg) === false) {
- continue;
- }
-
- if (isset($arg['name']) === false) {
- continue;
- }
-
- $name = (string) $arg['name'];
- $argString = $name;
- if (isset($arg['value']) === true) {
- $value = (string) $arg['value'];
- $argString .= "=$value";
- } else {
- $value = 'true';
- }
-
- $cliArgs[] = '-d';
- $cliArgs[] = $argString;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t=> set PHP ini value $name to $value".PHP_EOL;
- }
- }//end foreach
-
- if (empty($this->config->files) === true) {
- // Process hard-coded file paths.
- foreach ($ruleset->{'file'} as $file) {
- $file = (string) $file;
- $cliArgs[] = $file;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t=> added \"$file\" to the file list".PHP_EOL;
- }
- }
- }
-
- if (empty($cliArgs) === false) {
- // Change the directory so all relative paths are worked
- // out based on the location of the ruleset instead of
- // the location of the user.
- $inPhar = Util\Common::isPharFile($rulesetDir);
- if ($inPhar === false) {
- $currentDir = getcwd();
- chdir($rulesetDir);
- }
-
- $this->config->setCommandLineValues($cliArgs);
-
- if ($inPhar === false) {
- chdir($currentDir);
- }
- }
-
- // Process custom ignore pattern rules.
- foreach ($ruleset->{'exclude-pattern'} as $pattern) {
- if ($this->shouldProcessElement($pattern) === false) {
- continue;
- }
-
- if (isset($pattern['type']) === false) {
- $pattern['type'] = 'absolute';
- }
-
- $this->ignorePatterns[(string) $pattern] = (string) $pattern['type'];
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t=> added global ".(string) $pattern['type'].' ignore pattern: '.(string) $pattern.PHP_EOL;
- }
- }
-
- $includedSniffs = array_unique(array_merge($ownSniffs, $includedSniffs));
- $excludedSniffs = array_unique($excludedSniffs);
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $included = count($includedSniffs);
- $excluded = count($excludedSniffs);
- echo str_repeat("\t", $depth);
- echo "=> Ruleset processing complete; included $included sniffs and excluded $excluded".PHP_EOL;
- }
-
- // Merge our own sniff list with our externally included
- // sniff list, but filter out any excluded sniffs.
- $files = array();
- foreach ($includedSniffs as $sniff) {
- if (in_array($sniff, $excludedSniffs) === true) {
- continue;
- } else {
- $files[] = Util\Common::realpath($sniff);
- }
- }
-
- return $files;
-
- }//end processRuleset()
-
-
- /**
- * Expands a directory into a list of sniff files within.
- *
- * @param string $directory The path to a directory.
- * @param int $depth How many nested processing steps we are in. This
- * is only used for debug output.
- *
- * @return array
- */
- private function expandSniffDirectory($directory, $depth=0)
- {
- $sniffs = array();
-
- $rdi = new \RecursiveDirectoryIterator($directory, \RecursiveDirectoryIterator::FOLLOW_SYMLINKS);
- $di = new \RecursiveIteratorIterator($rdi, 0, \RecursiveIteratorIterator::CATCH_GET_CHILD);
-
- $dirLen = strlen($directory);
-
- foreach ($di as $file) {
- $filename = $file->getFilename();
-
- // Skip hidden files.
- if (substr($filename, 0, 1) === '.') {
- continue;
- }
-
- // We are only interested in PHP and sniff files.
- $fileParts = explode('.', $filename);
- if (array_pop($fileParts) !== 'php') {
- continue;
- }
-
- $basename = basename($filename, '.php');
- if (substr($basename, -5) !== 'Sniff') {
- continue;
- }
-
- $path = $file->getPathname();
-
- // Skip files in hidden directories within the Sniffs directory of this
- // standard. We use the offset with strpos() to allow hidden directories
- // before, valid example:
- // /home/foo/.composer/vendor/squiz/custom_tool/MyStandard/Sniffs/...
- if (strpos($path, DIRECTORY_SEPARATOR.'.', $dirLen) !== false) {
- continue;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> ".Util\Common::stripBasepath($path, $this->config->basepath).PHP_EOL;
- }
-
- $sniffs[] = $path;
- }//end foreach
-
- return $sniffs;
-
- }//end expandSniffDirectory()
-
-
- /**
- * Expands a ruleset reference into a list of sniff files.
- *
- * @param string $ref The reference from the ruleset XML file.
- * @param string $rulesetDir The directory of the ruleset XML file, used to
- * evaluate relative paths.
- * @param int $depth How many nested processing steps we are in. This
- * is only used for debug output.
- *
- * @return array
- * @throws RuntimeException If the reference is invalid.
- */
- private function expandRulesetReference($ref, $rulesetDir, $depth=0)
- {
- // Ignore internal sniffs codes as they are used to only
- // hide and change internal messages.
- if (substr($ref, 0, 9) === 'Internal.') {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t* ignoring internal sniff code *".PHP_EOL;
- }
-
- return array();
- }
-
- // As sniffs can't begin with a full stop, assume references in
- // this format are relative paths and attempt to convert them
- // to absolute paths. If this fails, let the reference run through
- // the normal checks and have it fail as normal.
- if (substr($ref, 0, 1) === '.') {
- $realpath = Util\Common::realpath($rulesetDir.'/'.$ref);
- if ($realpath !== false) {
- $ref = $realpath;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> ".Util\Common::stripBasepath($ref, $this->config->basepath).PHP_EOL;
- }
- }
- }
-
- // As sniffs can't begin with a tilde, assume references in
- // this format are relative to the user's home directory.
- if (substr($ref, 0, 2) === '~/') {
- $realpath = Util\Common::realpath($ref);
- if ($realpath !== false) {
- $ref = $realpath;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> ".Util\Common::stripBasepath($ref, $this->config->basepath).PHP_EOL;
- }
- }
- }
-
- if (is_file($ref) === true) {
- if (substr($ref, -9) === 'Sniff.php') {
- // A single external sniff.
- $this->rulesetDirs[] = dirname(dirname(dirname($ref)));
- return array($ref);
- }
- } else {
- // See if this is a whole standard being referenced.
- $path = Util\Standards::getInstalledStandardPath($ref);
- if (Util\Common::isPharFile($path) === true && strpos($path, 'ruleset.xml') === false) {
- // If the ruleset exists inside the phar file, use it.
- if (file_exists($path.DIRECTORY_SEPARATOR.'ruleset.xml') === true) {
- $path = $path.DIRECTORY_SEPARATOR.'ruleset.xml';
- } else {
- $path = null;
- }
- }
-
- if ($path !== null) {
- $ref = $path;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> ".Util\Common::stripBasepath($ref, $this->config->basepath).PHP_EOL;
- }
- } else if (is_dir($ref) === false) {
- // Work out the sniff path.
- $sepPos = strpos($ref, DIRECTORY_SEPARATOR);
- if ($sepPos !== false) {
- $stdName = substr($ref, 0, $sepPos);
- $path = substr($ref, $sepPos);
- } else {
- $parts = explode('.', $ref);
- $stdName = $parts[0];
- if (count($parts) === 1) {
- // A whole standard?
- $path = '';
- } else if (count($parts) === 2) {
- // A directory of sniffs?
- $path = DIRECTORY_SEPARATOR.'Sniffs'.DIRECTORY_SEPARATOR.$parts[1];
- } else {
- // A single sniff?
- $path = DIRECTORY_SEPARATOR.'Sniffs'.DIRECTORY_SEPARATOR.$parts[1].DIRECTORY_SEPARATOR.$parts[2].'Sniff.php';
- }
- }
-
- $newRef = false;
- $stdPath = Util\Standards::getInstalledStandardPath($stdName);
- if ($stdPath !== null && $path !== '') {
- if (Util\Common::isPharFile($stdPath) === true
- && strpos($stdPath, 'ruleset.xml') === false
- ) {
- // Phar files can only return the directory,
- // since ruleset can be omitted if building one standard.
- $newRef = Util\Common::realpath($stdPath.$path);
- } else {
- $newRef = Util\Common::realpath(dirname($stdPath).$path);
- }
- }
-
- if ($newRef === false) {
- // The sniff is not locally installed, so check if it is being
- // referenced as a remote sniff outside the install. We do this
- // by looking through all directories where we have found ruleset
- // files before, looking for ones for this particular standard,
- // and seeing if it is in there.
- foreach ($this->rulesetDirs as $dir) {
- if (strtolower(basename($dir)) !== strtolower($stdName)) {
- continue;
- }
-
- $newRef = Util\Common::realpath($dir.$path);
-
- if ($newRef !== false) {
- $ref = $newRef;
- }
- }
- } else {
- $ref = $newRef;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> ".Util\Common::stripBasepath($ref, $this->config->basepath).PHP_EOL;
- }
- }//end if
- }//end if
-
- if (is_dir($ref) === true) {
- if (is_file($ref.DIRECTORY_SEPARATOR.'ruleset.xml') === true) {
- // We are referencing an external coding standard.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t* rule is referencing a standard using directory name; processing *".PHP_EOL;
- }
-
- return $this->processRuleset($ref.DIRECTORY_SEPARATOR.'ruleset.xml', ($depth + 2));
- } else {
- // We are referencing a whole directory of sniffs.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t* rule is referencing a directory of sniffs *".PHP_EOL;
- echo str_repeat("\t", $depth);
- echo "\t\tAdding sniff files from directory".PHP_EOL;
- }
-
- return $this->expandSniffDirectory($ref, ($depth + 1));
- }
- } else {
- if (is_file($ref) === false) {
- $error = "Referenced sniff \"$ref\" does not exist";
- throw new RuntimeException($error);
- }
-
- if (substr($ref, -9) === 'Sniff.php') {
- // A single sniff.
- return array($ref);
- } else {
- // Assume an external ruleset.xml file.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t* rule is referencing a standard using ruleset path; processing *".PHP_EOL;
- }
-
- return $this->processRuleset($ref, ($depth + 2));
- }
- }//end if
-
- }//end expandRulesetReference()
-
-
- /**
- * Processes a rule from a ruleset XML file, overriding built-in defaults.
- *
- * @param SimpleXMLElement $rule The rule object from a ruleset XML file.
- * @param string[] $newSniffs An array of sniffs that got included by this rule.
- * @param int $depth How many nested processing steps we are in.
- * This is only used for debug output.
- *
- * @return void
- * @throws RuntimeException If rule settings are invalid.
- */
- private function processRule($rule, $newSniffs, $depth=0)
- {
- $ref = (string) $rule['ref'];
- $todo = array($ref);
-
- $parts = explode('.', $ref);
- if (count($parts) <= 2) {
- // We are processing a standard or a category of sniffs.
- foreach ($newSniffs as $sniffFile) {
- $parts = explode(DIRECTORY_SEPARATOR, $sniffFile);
- $sniffName = array_pop($parts);
- $sniffCategory = array_pop($parts);
- array_pop($parts);
- $sniffStandard = array_pop($parts);
- $todo[] = $sniffStandard.'.'.$sniffCategory.'.'.substr($sniffName, 0, -9);
- }
- }
-
- foreach ($todo as $code) {
- // Custom severity.
- if (isset($rule->severity) === true
- && $this->shouldProcessElement($rule->severity) === true
- ) {
- if (isset($this->ruleset[$code]) === false) {
- $this->ruleset[$code] = array();
- }
-
- $this->ruleset[$code]['severity'] = (int) $rule->severity;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> severity set to ".(int) $rule->severity;
- if ($code !== $ref) {
- echo " for $code";
- }
-
- echo PHP_EOL;
- }
- }
-
- // Custom message type.
- if (isset($rule->type) === true
- && $this->shouldProcessElement($rule->type) === true
- ) {
- if (isset($this->ruleset[$code]) === false) {
- $this->ruleset[$code] = array();
- }
-
- $type = strtolower((string) $rule->type);
- if ($type !== 'error' && $type !== 'warning') {
- throw new RuntimeException("Message type \"$type\" is invalid; must be \"error\" or \"warning\"");
- }
-
- $this->ruleset[$code]['type'] = $type;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> message type set to ".(string) $rule->type;
- if ($code !== $ref) {
- echo " for $code";
- }
-
- echo PHP_EOL;
- }
- }//end if
-
- // Custom message.
- if (isset($rule->message) === true
- && $this->shouldProcessElement($rule->message) === true
- ) {
- if (isset($this->ruleset[$code]) === false) {
- $this->ruleset[$code] = array();
- }
-
- $this->ruleset[$code]['message'] = (string) $rule->message;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> message set to ".(string) $rule->message;
- if ($code !== $ref) {
- echo " for $code";
- }
-
- echo PHP_EOL;
- }
- }
-
- // Custom properties.
- if (isset($rule->properties) === true
- && $this->shouldProcessElement($rule->properties) === true
- ) {
- foreach ($rule->properties->property as $prop) {
- if ($this->shouldProcessElement($prop) === false) {
- continue;
- }
-
- if (isset($this->ruleset[$code]) === false) {
- $this->ruleset[$code] = array(
- 'properties' => array(),
- );
- } else if (isset($this->ruleset[$code]['properties']) === false) {
- $this->ruleset[$code]['properties'] = array();
- }
-
- $name = (string) $prop['name'];
- if (isset($prop['type']) === true
- && (string) $prop['type'] === 'array'
- ) {
- $value = (string) $prop['value'];
- $values = array();
- foreach (explode(',', $value) as $val) {
- $v = '';
-
- list($k,$v) = explode('=>', $val.'=>');
- if ($v !== '') {
- $values[$k] = $v;
- } else {
- $values[] = $k;
- }
- }
-
- $this->ruleset[$code]['properties'][$name] = $values;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> array property \"$name\" set to \"$value\"";
- if ($code !== $ref) {
- echo " for $code";
- }
-
- echo PHP_EOL;
- }
- } else {
- $this->ruleset[$code]['properties'][$name] = (string) $prop['value'];
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> property \"$name\" set to \"".(string) $prop['value'].'"';
- if ($code !== $ref) {
- echo " for $code";
- }
-
- echo PHP_EOL;
- }
- }//end if
- }//end foreach
- }//end if
-
- // Ignore patterns.
- foreach ($rule->{'exclude-pattern'} as $pattern) {
- if ($this->shouldProcessElement($pattern) === false) {
- continue;
- }
-
- if (isset($this->ignorePatterns[$code]) === false) {
- $this->ignorePatterns[$code] = array();
- }
-
- if (isset($pattern['type']) === false) {
- $pattern['type'] = 'absolute';
- }
-
- $this->ignorePatterns[$code][(string) $pattern] = (string) $pattern['type'];
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> added rule-specific ".(string) $pattern['type'].' ignore pattern';
- if ($code !== $ref) {
- echo " for $code";
- }
-
- echo ': '.(string) $pattern.PHP_EOL;
- }
- }//end foreach
-
- // Include patterns.
- foreach ($rule->{'include-pattern'} as $pattern) {
- if ($this->shouldProcessElement($pattern) === false) {
- continue;
- }
-
- if (isset($this->includePatterns[$code]) === false) {
- $this->includePatterns[$code] = array();
- }
-
- if (isset($pattern['type']) === false) {
- $pattern['type'] = 'absolute';
- }
-
- $this->includePatterns[$code][(string) $pattern] = (string) $pattern['type'];
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "\t\t=> added rule-specific ".(string) $pattern['type'].' include pattern';
- if ($code !== $ref) {
- echo " for $code";
- }
-
- echo ': '.(string) $pattern.PHP_EOL;
- }
- }//end foreach
- }//end foreach
-
- }//end processRule()
-
-
- /**
- * Determine if an element should be processed or ignored.
- *
- * @param SimpleXMLElement $element An object from a ruleset XML file.
- *
- * @return bool
- */
- private function shouldProcessElement($element)
- {
- if (isset($element['phpcbf-only']) === false
- && isset($element['phpcs-only']) === false
- ) {
- // No exceptions are being made.
- return true;
- }
-
- if (PHP_CODESNIFFER_CBF === true
- && isset($element['phpcbf-only']) === true
- && (string) $element['phpcbf-only'] === 'true'
- ) {
- return true;
- }
-
- if (PHP_CODESNIFFER_CBF === false
- && isset($element['phpcs-only']) === true
- && (string) $element['phpcs-only'] === 'true'
- ) {
- return true;
- }
-
- return false;
-
- }//end shouldProcessElement()
-
-
- /**
- * Loads and stores sniffs objects used for sniffing files.
- *
- * @param array $files Paths to the sniff files to register.
- * @param array $restrictions The sniff class names to restrict the allowed
- * listeners to.
- * @param array $exclusions The sniff class names to exclude from the
- * listeners list.
- *
- * @return void
- */
- public function registerSniffs($files, $restrictions, $exclusions)
- {
- $listeners = array();
-
- foreach ($files as $file) {
- // Work out where the position of /StandardName/Sniffs/... is
- // so we can determine what the class will be called.
- $sniffPos = strrpos($file, DIRECTORY_SEPARATOR.'Sniffs'.DIRECTORY_SEPARATOR);
- if ($sniffPos === false) {
- continue;
- }
-
- $slashPos = strrpos(substr($file, 0, $sniffPos), DIRECTORY_SEPARATOR);
- if ($slashPos === false) {
- continue;
- }
-
- $className = Autoload::loadFile($file);
- $compareName = Util\Common::cleanSniffClass($className);
-
- // If they have specified a list of sniffs to restrict to, check
- // to see if this sniff is allowed.
- if (empty($restrictions) === false
- && isset($restrictions[$compareName]) === false
- ) {
- continue;
- }
-
- // If they have specified a list of sniffs to exclude, check
- // to see if this sniff is allowed.
- if (empty($exclusions) === false
- && isset($exclusions[$compareName]) === true
- ) {
- continue;
- }
-
- // Skip abstract classes.
- $reflection = new \ReflectionClass($className);
- if ($reflection->isAbstract() === true) {
- continue;
- }
-
- $listeners[$className] = $className;
-
- if (PHP_CODESNIFFER_VERBOSITY > 2) {
- echo "Registered $className".PHP_EOL;
- }
- }//end foreach
-
- $this->sniffs = $listeners;
-
- }//end registerSniffs()
-
-
- /**
- * Populates the array of PHP_CodeSniffer_Sniff's for this file.
- *
- * @return void
- * @throws RuntimeException If sniff registration fails.
- */
- public function populateTokenListeners()
- {
- // Construct a list of listeners indexed by token being listened for.
- $this->tokenListeners = array();
-
- foreach ($this->sniffs as $sniffClass => $sniffObject) {
- $this->sniffs[$sniffClass] = null;
- $this->sniffs[$sniffClass] = new $sniffClass();
-
- $sniffCode = Util\Common::getSniffCode($sniffClass);
- $this->sniffCodes[$sniffCode] = $sniffClass;
-
- // Set custom properties.
- if (isset($this->ruleset[$sniffCode]['properties']) === true) {
- foreach ($this->ruleset[$sniffCode]['properties'] as $name => $value) {
- $this->setSniffProperty($sniffClass, $name, $value);
- }
- }
-
- $tokenizers = array();
- $vars = get_class_vars($sniffClass);
- if (isset($vars['supportedTokenizers']) === true) {
- foreach ($vars['supportedTokenizers'] as $tokenizer) {
- $tokenizers[$tokenizer] = $tokenizer;
- }
- } else {
- $tokenizers = array('PHP' => 'PHP');
- }
-
- $tokens = $this->sniffs[$sniffClass]->register();
- if (is_array($tokens) === false) {
- $msg = "Sniff $sniffClass register() method must return an array";
- throw new RuntimeException($msg);
- }
-
- $ignorePatterns = array();
- $patterns = $this->getIgnorePatterns($sniffCode);
- foreach ($patterns as $pattern => $type) {
- $replacements = array(
- '\\,' => ',',
- '*' => '.*',
- );
-
- $ignorePatterns[] = strtr($pattern, $replacements);
- }
-
- $includePatterns = array();
- $patterns = $this->getIncludePatterns($sniffCode);
- foreach ($patterns as $pattern => $type) {
- $replacements = array(
- '\\,' => ',',
- '*' => '.*',
- );
-
- $includePatterns[] = strtr($pattern, $replacements);
- }
-
- foreach ($tokens as $token) {
- if (isset($this->tokenListeners[$token]) === false) {
- $this->tokenListeners[$token] = array();
- }
-
- if (isset($this->tokenListeners[$token][$sniffClass]) === false) {
- $this->tokenListeners[$token][$sniffClass] = array(
- 'class' => $sniffClass,
- 'source' => $sniffCode,
- 'tokenizers' => $tokenizers,
- 'ignore' => $ignorePatterns,
- 'include' => $includePatterns,
- );
- }
- }
- }//end foreach
-
- }//end populateTokenListeners()
-
-
- /**
- * Set a single property for a sniff.
- *
- * @param string $sniffClass The class name of the sniff.
- * @param string $name The name of the property to change.
- * @param string $value The new value of the property.
- *
- * @return void
- */
- public function setSniffProperty($sniffClass, $name, $value)
- {
- // Setting a property for a sniff we are not using.
- if (isset($this->sniffs[$sniffClass]) === false) {
- return;
- }
-
- $name = trim($name);
- if (is_string($value) === true) {
- $value = trim($value);
- }
-
- // Special case for booleans.
- if ($value === 'true') {
- $value = true;
- } else if ($value === 'false') {
- $value = false;
- }
-
- $this->sniffs[$sniffClass]->$name = $value;
-
- }//end setSniffProperty()
-
-
- /**
- * Gets the array of ignore patterns.
- *
- * Optionally takes a listener to get ignore patterns specified
- * for that sniff only.
- *
- * @param string $listener The listener to get patterns for. If NULL, all
- * patterns are returned.
- *
- * @return array
- */
- public function getIgnorePatterns($listener=null)
- {
- if ($listener === null) {
- return $this->ignorePatterns;
- }
-
- if (isset($this->ignorePatterns[$listener]) === true) {
- return $this->ignorePatterns[$listener];
- }
-
- return array();
-
- }//end getIgnorePatterns()
-
-
- /**
- * Gets the array of include patterns.
- *
- * Optionally takes a listener to get include patterns specified
- * for that sniff only.
- *
- * @param string $listener The listener to get patterns for. If NULL, all
- * patterns are returned.
- *
- * @return array
- */
- public function getIncludePatterns($listener=null)
- {
- if ($listener === null) {
- return $this->includePatterns;
- }
-
- if (isset($this->includePatterns[$listener]) === true) {
- return $this->includePatterns[$listener];
- }
-
- return array();
-
- }//end getIncludePatterns()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Runner.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Runner.php
deleted file mode 100644
index 75b8b1c7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Runner.php
+++ /dev/null
@@ -1,818 +0,0 @@
-<?php
-/**
- * Responsible for running PHPCS and PHPCBF.
- *
- * After creating an object of this class, you probably just want to
- * call runPHPCS() or runPHPCBF().
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer;
-
-use PHP_CodeSniffer\Files\FileList;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Files\DummyFile;
-use PHP_CodeSniffer\Util\Cache;
-use PHP_CodeSniffer\Util\Common;
-use PHP_CodeSniffer\Util\Standards;
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-use PHP_CodeSniffer\Exceptions\DeepExitException;
-
-class Runner
-{
-
- /**
- * The config data for the run.
- *
- * @var \PHP_CodeSniffer\Config
- */
- public $config = null;
-
- /**
- * The ruleset used for the run.
- *
- * @var \PHP_CodeSniffer\Ruleset
- */
- public $ruleset = null;
-
- /**
- * The reporter used for generating reports after the run.
- *
- * @var \PHP_CodeSniffer\Reporter
- */
- public $reporter = null;
-
-
- /**
- * Run the PHPCS script.
- *
- * @return array
- */
- public function runPHPCS()
- {
- try {
- Util\Timing::startTiming();
- Runner::checkRequirements();
-
- if (defined('PHP_CODESNIFFER_CBF') === false) {
- define('PHP_CODESNIFFER_CBF', false);
- }
-
- // Creating the Config object populates it with all required settings
- // based on the CLI arguments provided to the script and any config
- // values the user has set.
- $this->config = new Config();
-
- // Init the run and load the rulesets to set additional config vars.
- $this->init();
-
- // Print a list of sniffs in each of the supplied standards.
- // We fudge the config here so that each standard is explained in isolation.
- if ($this->config->explain === true) {
- $standards = $this->config->standards;
- foreach ($standards as $standard) {
- $this->config->standards = array($standard);
- $ruleset = new Ruleset($this->config);
- $ruleset->explain();
- }
-
- return 0;
- }
-
- // Generate documentation for each of the supplied standards.
- if ($this->config->generator !== null) {
- $standards = $this->config->standards;
- foreach ($standards as $standard) {
- $this->config->standards = array($standard);
- $ruleset = new Ruleset($this->config);
- $class = 'PHP_CodeSniffer\Generators\\'.$this->config->generator;
- $generator = new $class($ruleset);
- $generator->generate();
- }
-
- return 0;
- }
-
- // Other report formats don't really make sense in interactive mode
- // so we hard-code the full report here and when outputting.
- // We also ensure parallel processing is off because we need to do one file at a time.
- if ($this->config->interactive === true) {
- $this->config->reports = array('full' => null);
- $this->config->parallel = 1;
- $this->config->showProgress = false;
- }
-
- // Disable caching if we are processing STDIN as we can't be 100%
- // sure where the file came from or if it will change in the future.
- if ($this->config->stdin === true) {
- $this->config->cache = false;
- }
-
- $numErrors = $this->run();
-
- // Print all the reports for this run.
- $toScreen = $this->reporter->printReports();
-
- // Only print timer output if no reports were
- // printed to the screen so we don't put additional output
- // in something like an XML report. If we are printing to screen,
- // the report types would have already worked out who should
- // print the timer info.
- if ($this->config->interactive === false
- && ($toScreen === false
- || (($this->reporter->totalErrors + $this->reporter->totalWarnings) === 0 && $this->config->showProgress === true))
- ) {
- Util\Timing::printRunTime();
- }
- } catch (DeepExitException $e) {
- echo $e->getMessage();
- return $e->getCode();
- }//end try
-
- if ($numErrors === 0) {
- // No errors found.
- return 0;
- } else if ($this->reporter->totalFixable === 0) {
- // Errors found, but none of them can be fixed by PHPCBF.
- return 1;
- } else {
- // Errors found, and some can be fixed by PHPCBF.
- return 2;
- }
-
- }//end runPHPCS()
-
-
- /**
- * Run the PHPCBF script.
- *
- * @return array
- */
- public function runPHPCBF()
- {
- if (defined('PHP_CODESNIFFER_CBF') === false) {
- define('PHP_CODESNIFFER_CBF', true);
- }
-
- try {
- Util\Timing::startTiming();
- Runner::checkRequirements();
-
- // Creating the Config object populates it with all required settings
- // based on the CLI arguments provided to the script and any config
- // values the user has set.
- $this->config = new Config();
-
- // When processing STDIN, we can't output anything to the screen
- // or it will end up mixed in with the file output.
- if ($this->config->stdin === true) {
- $this->config->verbosity = 0;
- }
-
- // Init the run and load the rulesets to set additional config vars.
- $this->init();
-
- // Override some of the command line settings that might break the fixes.
- $this->config->generator = null;
- $this->config->explain = false;
- $this->config->interactive = false;
- $this->config->cache = false;
- $this->config->showSources = false;
- $this->config->recordErrors = false;
- $this->config->reportFile = null;
- $this->config->reports = array('cbf' => null);
-
- // If a standard tries to set command line arguments itself, some
- // may be blocked because PHPCBF is running, so stop the script
- // dying if any are found.
- $this->config->dieOnUnknownArg = false;
-
- $numErrors = $this->run();
- $this->reporter->printReports();
-
- echo PHP_EOL;
- Util\Timing::printRunTime();
- } catch (DeepExitException $e) {
- echo $e->getMessage();
- return $e->getCode();
- }//end try
-
- if ($this->reporter->totalFixed === 0) {
- // Nothing was fixed by PHPCBF.
- if ($this->reporter->totalFixable === 0) {
- // Nothing found that could be fixed.
- return 0;
- } else {
- // Something failed to fix.
- return 2;
- }
- }
-
- if ($this->reporter->totalFixable === 0) {
- // PHPCBF fixed all fixable errors.
- return 1;
- }
-
- // PHPCBF fixed some fixable errors, but others failed to fix.
- return 2;
-
- }//end runPHPCBF()
-
-
- /**
- * Exits if the minimum requirements of PHP_CodSniffer are not met.
- *
- * @return array
- */
- public function checkRequirements()
- {
- // Check the PHP version.
- if (PHP_VERSION_ID < 50400) {
- $error = 'ERROR: PHP_CodeSniffer requires PHP version 5.4.0 or greater.'.PHP_EOL;
- throw new DeepExitException($error, 3);
- }
-
- if (extension_loaded('tokenizer') === false) {
- $error = 'ERROR: PHP_CodeSniffer requires the tokenizer extension to be enabled.'.PHP_EOL;
- throw new DeepExitException($error, 3);
- }
-
- }//end checkRequirements()
-
-
- /**
- * Init the rulesets and other high-level settings.
- *
- * @return void
- */
- public function init()
- {
- if (defined('PHP_CODESNIFFER_CBF') === false) {
- define('PHP_CODESNIFFER_CBF', false);
- }
-
- // Ensure this option is enabled or else line endings will not always
- // be detected properly for files created on a Mac with the /r line ending.
- ini_set('auto_detect_line_endings', true);
-
- // Check that the standards are valid.
- foreach ($this->config->standards as $standard) {
- if (Util\Standards::isInstalledStandard($standard) === false) {
- // They didn't select a valid coding standard, so help them
- // out by letting them know which standards are installed.
- $error = 'ERROR: the "'.$standard.'" coding standard is not installed. ';
- ob_start();
- Util\Standards::printInstalledStandards();
- $error .= ob_get_contents();
- ob_end_clean();
- throw new DeepExitException($error, 3);
- }
- }
-
- // Saves passing the Config object into other objects that only need
- // the verbostity flag for deubg output.
- if (defined('PHP_CODESNIFFER_VERBOSITY') === false) {
- define('PHP_CODESNIFFER_VERBOSITY', $this->config->verbosity);
- }
-
- // Create this class so it is autoloaded and sets up a bunch
- // of PHP_CodeSniffer-specific token type constants.
- $tokens = new Util\Tokens();
-
- // Allow autoloading of custom files inside installed standards.
- $installedStandards = Standards::getInstalledStandardDetails();
- foreach ($installedStandards as $name => $details) {
- Autoload::addSearchPath($details['path'], $details['namespace']);
- }
-
- // The ruleset contains all the information about how the files
- // should be checked and/or fixed.
- try {
- $this->ruleset = new Ruleset($this->config);
- } catch (RuntimeException $e) {
- $error = 'ERROR: '.$e->getMessage().PHP_EOL.PHP_EOL;
- $error .= $this->config->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
-
- }//end init()
-
-
- /**
- * Performs the run.
- *
- * @return int The number of errors and warnings found.
- */
- private function run()
- {
- // The class that manages all reporters for the run.
- $this->reporter = new Reporter($this->config);
-
- // Include bootstrap files.
- foreach ($this->config->bootstrap as $bootstrap) {
- include $bootstrap;
- }
-
- if ($this->config->stdin === true) {
- $fileContents = $this->config->stdinContent;
- if ($fileContents === null) {
- $handle = fopen('php://stdin', 'r');
- stream_set_blocking($handle, true);
- $fileContents = stream_get_contents($handle);
- fclose($handle);
- }
-
- $todo = new FileList($this->config, $this->ruleset);
- $dummy = new DummyFile($fileContents, $this->ruleset, $this->config);
- $todo->addFile($dummy->path, $dummy);
- } else {
- if (empty($this->config->files) === true) {
- $error = 'ERROR: You must supply at least one file or directory to process.'.PHP_EOL.PHP_EOL;
- $error .= $this->config->printShortUsage(true);
- throw new DeepExitException($error, 3);
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- echo 'Creating file list... ';
- }
-
- $todo = new FileList($this->config, $this->ruleset);
-
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- $numFiles = count($todo);
- echo "DONE ($numFiles files in queue)".PHP_EOL;
- }
-
- if ($this->config->cache === true) {
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- echo 'Loading cache... ';
- }
-
- Cache::load($this->ruleset, $this->config);
-
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- $size = Cache::getSize();
- echo "DONE ($size files in cache)".PHP_EOL;
- }
- }
- }//end if
-
- // Turn all sniff errors into exceptions.
- set_error_handler(array($this, 'handleErrors'));
-
- // If verbosity is too high, turn off parallelism so the
- // debug output is clean.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $this->config->parallel = 1;
- }
-
- // If the PCNTL extension isn't installed, we can't fork.
- if (function_exists('pcntl_fork') === false) {
- $this->config->parallel = 1;
- }
-
- $lastDir = '';
- $numFiles = count($todo);
-
- if ($this->config->parallel === 1) {
- // Running normally.
- $numProcessed = 0;
- foreach ($todo as $path => $file) {
- if ($file->ignored === true) {
- continue;
- }
-
- $currDir = dirname($path);
- if ($lastDir !== $currDir) {
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- echo 'Changing into directory '.Common::stripBasepath($currDir, $this->config->basepath).PHP_EOL;
- }
-
- $lastDir = $currDir;
- }
-
- $this->processFile($file);
-
- $numProcessed++;
- $this->printProgress($file, $numFiles, $numProcessed);
- }
- } else {
- // Batching and forking.
- $childProcs = array();
- $numPerBatch = ceil($numFiles / $this->config->parallel);
-
- for ($batch = 0; $batch < $this->config->parallel; $batch++) {
- $startAt = ($batch * $numPerBatch);
- if ($startAt >= $numFiles) {
- break;
- }
-
- $endAt = ($startAt + $numPerBatch);
- if ($endAt > $numFiles) {
- $endAt = $numFiles;
- }
-
- $childOutFilename = tempnam(sys_get_temp_dir(), 'phpcs-child');
- $pid = pcntl_fork();
- if ($pid === -1) {
- throw new RuntimeException('Failed to create child process');
- } else if ($pid !== 0) {
- $childProcs[] = array(
- 'pid' => $pid,
- 'out' => $childOutFilename,
- );
- } else {
- // Move forward to the start of the batch.
- $todo->rewind();
- for ($i = 0; $i < $startAt; $i++) {
- $todo->next();
- }
-
- // Reset the reporter to make sure only figures from this
- // file batch are recorded.
- $this->reporter->totalFiles = 0;
- $this->reporter->totalErrors = 0;
- $this->reporter->totalWarnings = 0;
- $this->reporter->totalFixable = 0;
- $this->reporter->totalFixed = 0;
-
- // Process the files.
- $pathsProcessed = array();
- ob_start();
- for ($i = $startAt; $i < $endAt; $i++) {
- $path = $todo->key();
- $file = $todo->current();
-
- if ($file->ignored === true) {
- continue;
- }
-
- $currDir = dirname($path);
- if ($lastDir !== $currDir) {
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- echo 'Changing into directory '.Common::stripBasepath($currDir, $this->config->basepath).PHP_EOL;
- }
-
- $lastDir = $currDir;
- }
-
- $this->processFile($file);
-
- $pathsProcessed[] = $path;
- $todo->next();
- }//end for
-
- $debugOutput = ob_get_contents();
- ob_end_clean();
-
- // Write information about the run to the filesystem
- // so it can be picked up by the main process.
- $childOutput = array(
- 'totalFiles' => $this->reporter->totalFiles,
- 'totalErrors' => $this->reporter->totalErrors,
- 'totalWarnings' => $this->reporter->totalWarnings,
- 'totalFixable' => $this->reporter->totalFixable,
- 'totalFixed' => $this->reporter->totalFixed,
- );
-
- $output = '<'.'?php'."\n".' $childOutput = ';
- $output .= var_export($childOutput, true);
- $output .= ";\n\$debugOutput = ";
- $output .= var_export($debugOutput, true);
-
- if ($this->config->cache === true) {
- $childCache = array();
- foreach ($pathsProcessed as $path) {
- $childCache[$path] = Cache::get($path);
- }
-
- $output .= ";\n\$childCache = ";
- $output .= var_export($childCache, true);
- }
-
- $output .= ";\n?".'>';
- file_put_contents($childOutFilename, $output);
- exit($pid);
- }//end if
- }//end for
-
- $this->processChildProcs($childProcs);
- }//end if
-
- restore_error_handler();
-
- if (PHP_CODESNIFFER_VERBOSITY === 0
- && $this->config->interactive === false
- && $this->config->showProgress === true
- ) {
- echo PHP_EOL.PHP_EOL;
- }
-
- if ($this->config->cache === true) {
- Cache::save();
- }
-
- $ignoreWarnings = Config::getConfigData('ignore_warnings_on_exit');
- $ignoreErrors = Config::getConfigData('ignore_errors_on_exit');
-
- $return = ($this->reporter->totalErrors + $this->reporter->totalWarnings);
- if ($ignoreErrors !== null) {
- $ignoreErrors = (bool) $ignoreErrors;
- if ($ignoreErrors === true) {
- $return -= $this->reporter->totalErrors;
- }
- }
-
- if ($ignoreWarnings !== null) {
- $ignoreWarnings = (bool) $ignoreWarnings;
- if ($ignoreWarnings === true) {
- $return -= $this->reporter->totalWarnings;
- }
- }
-
- return $return;
-
- }//end run()
-
-
- /**
- * Converts all PHP errors into exceptions.
- *
- * This method forces a sniff to stop processing if it is not
- * able to handle a specific piece of code, instead of continuing
- * and potentially getting into a loop.
- *
- * @param int $code The level of error raised.
- * @param string $message The error message.
- * @param string $file The path of the file that raised the error.
- * @param int $line The line number the error was raised at.
- *
- * @return void
- */
- public function handleErrors($code, $message, $file, $line)
- {
- throw new RuntimeException("$message in $file on line $line");
-
- }//end handleErrors()
-
-
- /**
- * Processes a single file, including checking and fixing.
- *
- * @param \PHP_CodeSniffer\Files\File $file The file to be processed.
- *
- * @return void
- */
- public function processFile($file)
- {
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- $startTime = microtime(true);
- echo 'Processing '.basename($file->path).' ';
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo PHP_EOL;
- }
- }
-
- try {
- $file->process();
-
- if (PHP_CODESNIFFER_VERBOSITY > 0) {
- $timeTaken = ((microtime(true) - $startTime) * 1000);
- if ($timeTaken < 1000) {
- $timeTaken = round($timeTaken);
- echo "DONE in {$timeTaken}ms";
- } else {
- $timeTaken = round(($timeTaken / 1000), 2);
- echo "DONE in $timeTaken secs";
- }
-
- if (PHP_CODESNIFFER_CBF === true) {
- $errors = $file->getFixableCount();
- echo " ($errors fixable violations)".PHP_EOL;
- } else {
- $errors = $file->getErrorCount();
- $warnings = $file->getWarningCount();
- echo " ($errors errors, $warnings warnings)".PHP_EOL;
- }
- }
- } catch (\Exception $e) {
- $error = 'An error occurred during processing; checking has been aborted. The error message was: '.$e->getMessage();
- $file->addErrorOnLine($error, 1, 'Internal.Exception');
- }//end try
-
- $this->reporter->cacheFileReport($file, $this->config);
-
- if ($this->config->interactive === true) {
- /*
- Running interactively.
- Print the error report for the current file and then wait for user input.
- */
-
- // Get current violations and then clear the list to make sure
- // we only print violations for a single file each time.
- $numErrors = null;
- while ($numErrors !== 0) {
- $numErrors = ($file->getErrorCount() + $file->getWarningCount());
- if ($numErrors === 0) {
- continue;
- }
-
- $this->reporter->printReport('full');
-
- echo '<ENTER> to recheck, [s] to skip or [q] to quit : ';
- $input = fgets(STDIN);
- $input = trim($input);
-
- switch ($input) {
- case 's':
- break(2);
- case 'q':
- throw new DeepExitException('', 0);
- default:
- // Repopulate the sniffs because some of them save their state
- // and only clear it when the file changes, but we are rechecking
- // the same file.
- $file->ruleset->populateTokenListeners();
- $file->reloadContent();
- $file->process();
- $this->reporter->cacheFileReport($file, $this->config);
- break;
- }
- }//end while
- }//end if
-
- // Clean up the file to save (a lot of) memory.
- $file->cleanUp();
-
- }//end processFile()
-
-
- /**
- * Waits for child processes to complete and cleans up after them.
- *
- * The reporting information returned by each child process is merged
- * into the main reporter class.
- *
- * @param array $childProcs An array of child processes to wait for.
- *
- * @return void
- */
- private function processChildProcs($childProcs)
- {
- $numProcessed = 0;
- $totalBatches = count($childProcs);
-
- while (count($childProcs) > 0) {
- foreach ($childProcs as $key => $procData) {
- $res = pcntl_waitpid($procData['pid'], $status, WNOHANG);
- if ($res === $procData['pid']) {
- if (file_exists($procData['out']) === true) {
- include $procData['out'];
- if (isset($childOutput) === true) {
- $this->reporter->totalFiles += $childOutput['totalFiles'];
- $this->reporter->totalErrors += $childOutput['totalErrors'];
- $this->reporter->totalWarnings += $childOutput['totalWarnings'];
- $this->reporter->totalFixable += $childOutput['totalFixable'];
- $this->reporter->totalFixed += $childOutput['totalFixed'];
- }
-
- if (isset($debugOutput) === true) {
- echo $debugOutput;
- }
-
- if (isset($childCache) === true) {
- foreach ($childCache as $path => $cache) {
- Cache::set($path, $cache);
- }
- }
-
- unlink($procData['out']);
- unset($childProcs[$key]);
-
- $numProcessed++;
-
- // Fake a processed file so we can print progress output for the batch.
- $file = new DummyFile(null, $this->ruleset, $this->config);
- $file->setErrorCounts(
- $childOutput['totalErrors'],
- $childOutput['totalWarnings'],
- $childOutput['totalFixable'],
- $childOutput['totalFixed']
- );
- $this->printProgress($file, $totalBatches, $numProcessed);
- }//end if
- }//end if
- }//end foreach
- }//end while
-
- }//end processChildProcs()
-
-
- /**
- * Print progress information for a single processed file.
- *
- * @param File $file The file that was processed.
- * @param int $numFiles The total number of files to process.
- * @param int $numProcessed The number of files that have been processed,
- * including this one.
- *
- * @return void
- */
- function printProgress($file, $numFiles, $numProcessed)
- {
- if (PHP_CODESNIFFER_VERBOSITY > 0
- || $this->config->showProgress === false
- ) {
- return;
- }
-
- // Show progress information.
- if ($file->ignored === true) {
- echo 'S';
- } else {
- $errors = $file->getErrorCount();
- $warnings = $file->getWarningCount();
- $fixable = $file->getFixableCount();
- $fixed = $file->getFixedCount();
-
- if (PHP_CODESNIFFER_CBF === true) {
- // Files with fixed errors or warnings are F (green).
- // Files with unfixable errors or warnings are E (red).
- // Files with no errors or warnings are . (black).
- if ($fixable > 0) {
- if ($this->config->colors === true) {
- echo "\033[31m";
- }
-
- echo 'E';
-
- if ($this->config->colors === true) {
- echo "\033[0m";
- }
- } else if ($fixed > 0) {
- if ($this->config->colors === true) {
- echo "\033[32m";
- }
-
- echo 'F';
-
- if ($this->config->colors === true) {
- echo "\033[0m";
- }
- } else {
- echo '.';
- }//end if
- } else {
- // Files with errors are E (red).
- // Files with fixable errors are E (green).
- // Files with warnings are W (yellow).
- // Files with fixable warnings are W (green).
- // Files with no errors or warnings are . (black).
- if ($errors > 0) {
- if ($this->config->colors === true) {
- if ($fixable > 0) {
- echo "\033[32m";
- } else {
- echo "\033[31m";
- }
- }
-
- echo 'E';
-
- if ($this->config->colors === true) {
- echo "\033[0m";
- }
- } else if ($warnings > 0) {
- if ($this->config->colors === true) {
- if ($fixable > 0) {
- echo "\033[32m";
- } else {
- echo "\033[33m";
- }
- }
-
- echo 'W';
-
- if ($this->config->colors === true) {
- echo "\033[0m";
- }
- } else {
- echo '.';
- }//end if
- }//end if
- }//end if
-
- if (($numProcessed % 60) === 0) {
- $padding = (strlen($numFiles) - strlen($numProcessed));
- echo str_repeat(' ', $padding);
- $percent = round(($numProcessed / $numFiles) * 100);
- echo " $numProcessed / $numFiles ($percent%)".PHP_EOL;
- }
-
- }//end printProgress()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractPatternSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractPatternSniff.php
deleted file mode 100644
index 80d909fa..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractPatternSniff.php
+++ /dev/null
@@ -1,939 +0,0 @@
-<?php
-/**
- * Processes pattern strings and checks that the code conforms to the pattern.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Sniffs;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Util\Tokens;
-use PHP_CodeSniffer\Tokenizers\PHP;
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-
-abstract class AbstractPatternSniff implements Sniff
-{
-
- /**
- * If true, comments will be ignored if they are found in the code.
- *
- * @var boolean
- */
- public $ignoreComments = false;
-
- /**
- * The current file being checked.
- *
- * @var string
- */
- protected $currFile = '';
-
- /**
- * The parsed patterns array.
- *
- * @var array
- */
- private $parsedPatterns = array();
-
- /**
- * Tokens that this sniff wishes to process outside of the patterns.
- *
- * @var int[]
- * @see registerSupplementary()
- * @see processSupplementary()
- */
- private $supplementaryTokens = array();
-
- /**
- * Positions in the stack where errors have occurred.
- *
- * @var array<int, bool>
- */
- private $errorPos = array();
-
-
- /**
- * Constructs a AbstractPatternSniff.
- *
- * @param boolean $ignoreComments If true, comments will be ignored.
- */
- public function __construct($ignoreComments=null)
- {
- // This is here for backwards compatibility.
- if ($ignoreComments !== null) {
- $this->ignoreComments = $ignoreComments;
- }
-
- $this->supplementaryTokens = $this->registerSupplementary();
-
- }//end __construct()
-
-
- /**
- * Registers the tokens to listen to.
- *
- * Classes extending <i>AbstractPatternTest</i> should implement the
- * <i>getPatterns()</i> method to register the patterns they wish to test.
- *
- * @return int[]
- * @see process()
- */
- final public function register()
- {
- $listenTypes = array();
- $patterns = $this->getPatterns();
-
- foreach ($patterns as $pattern) {
- $parsedPattern = $this->parse($pattern);
-
- // Find a token position in the pattern that we can use
- // for a listener token.
- $pos = $this->getListenerTokenPos($parsedPattern);
- $tokenType = $parsedPattern[$pos]['token'];
- $listenTypes[] = $tokenType;
-
- $patternArray = array(
- 'listen_pos' => $pos,
- 'pattern' => $parsedPattern,
- 'pattern_code' => $pattern,
- );
-
- if (isset($this->parsedPatterns[$tokenType]) === false) {
- $this->parsedPatterns[$tokenType] = array();
- }
-
- $this->parsedPatterns[$tokenType][] = $patternArray;
- }//end foreach
-
- return array_unique(array_merge($listenTypes, $this->supplementaryTokens));
-
- }//end register()
-
-
- /**
- * Returns the token types that the specified pattern is checking for.
- *
- * Returned array is in the format:
- * <code>
- * array(
- * T_WHITESPACE => 0, // 0 is the position where the T_WHITESPACE token
- * // should occur in the pattern.
- * );
- * </code>
- *
- * @param array $pattern The parsed pattern to find the acquire the token
- * types from.
- *
- * @return array<int, int>
- */
- private function getPatternTokenTypes($pattern)
- {
- $tokenTypes = array();
- foreach ($pattern as $pos => $patternInfo) {
- if ($patternInfo['type'] === 'token') {
- if (isset($tokenTypes[$patternInfo['token']]) === false) {
- $tokenTypes[$patternInfo['token']] = $pos;
- }
- }
- }
-
- return $tokenTypes;
-
- }//end getPatternTokenTypes()
-
-
- /**
- * Returns the position in the pattern that this test should register as
- * a listener for the pattern.
- *
- * @param array $pattern The pattern to acquire the listener for.
- *
- * @return int The position in the pattern that this test should register
- * as the listener.
- * @throws RuntimeException If we could not determine a token to listen for.
- */
- private function getListenerTokenPos($pattern)
- {
- $tokenTypes = $this->getPatternTokenTypes($pattern);
- $tokenCodes = array_keys($tokenTypes);
- $token = Tokens::getHighestWeightedToken($tokenCodes);
-
- // If we could not get a token.
- if ($token === false) {
- $error = 'Could not determine a token to listen for';
- throw new RuntimeException($error);
- }
-
- return $tokenTypes[$token];
-
- }//end getListenerTokenPos()
-
-
- /**
- * Processes the test.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where the
- * token occurred.
- * @param int $stackPtr The position in the tokens stack
- * where the listening token type
- * was found.
- *
- * @return void
- * @see register()
- */
- final public function process(File $phpcsFile, $stackPtr)
- {
- $file = $phpcsFile->getFilename();
- if ($this->currFile !== $file) {
- // We have changed files, so clean up.
- $this->errorPos = array();
- $this->currFile = $file;
- }
-
- $tokens = $phpcsFile->getTokens();
-
- if (in_array($tokens[$stackPtr]['code'], $this->supplementaryTokens) === true) {
- $this->processSupplementary($phpcsFile, $stackPtr);
- }
-
- $type = $tokens[$stackPtr]['code'];
-
- // If the type is not set, then it must have been a token registered
- // with registerSupplementary().
- if (isset($this->parsedPatterns[$type]) === false) {
- return;
- }
-
- $allErrors = array();
-
- // Loop over each pattern that is listening to the current token type
- // that we are processing.
- foreach ($this->parsedPatterns[$type] as $patternInfo) {
- // If processPattern returns false, then the pattern that we are
- // checking the code with must not be designed to check that code.
- $errors = $this->processPattern($patternInfo, $phpcsFile, $stackPtr);
- if ($errors === false) {
- // The pattern didn't match.
- continue;
- } else if (empty($errors) === true) {
- // The pattern matched, but there were no errors.
- break;
- }
-
- foreach ($errors as $stackPtr => $error) {
- if (isset($this->errorPos[$stackPtr]) === false) {
- $this->errorPos[$stackPtr] = true;
- $allErrors[$stackPtr] = $error;
- }
- }
- }
-
- foreach ($allErrors as $stackPtr => $error) {
- $phpcsFile->addError($error, $stackPtr, 'Found');
- }
-
- }//end process()
-
-
- /**
- * Processes the pattern and verifies the code at $stackPtr.
- *
- * @param array $patternInfo Information about the pattern used
- * for checking, which includes are
- * parsed token representation of the
- * pattern.
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where the
- * token occurred.
- * @param int $stackPtr The position in the tokens stack where
- * the listening token type was found.
- *
- * @return array
- */
- protected function processPattern($patternInfo, File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $pattern = $patternInfo['pattern'];
- $patternCode = $patternInfo['pattern_code'];
- $errors = array();
- $found = '';
-
- $ignoreTokens = array(T_WHITESPACE);
- if ($this->ignoreComments === true) {
- $ignoreTokens
- = array_merge($ignoreTokens, Tokens::$commentTokens);
- }
-
- $origStackPtr = $stackPtr;
- $hasError = false;
-
- if ($patternInfo['listen_pos'] > 0) {
- $stackPtr--;
-
- for ($i = ($patternInfo['listen_pos'] - 1); $i >= 0; $i--) {
- if ($pattern[$i]['type'] === 'token') {
- if ($pattern[$i]['token'] === T_WHITESPACE) {
- if ($tokens[$stackPtr]['code'] === T_WHITESPACE) {
- $found = $tokens[$stackPtr]['content'].$found;
- }
-
- // Only check the size of the whitespace if this is not
- // the first token. We don't care about the size of
- // leading whitespace, just that there is some.
- if ($i !== 0) {
- if ($tokens[$stackPtr]['content'] !== $pattern[$i]['value']) {
- $hasError = true;
- }
- }
- } else {
- // Check to see if this important token is the same as the
- // previous important token in the pattern. If it is not,
- // then the pattern cannot be for this piece of code.
- $prev = $phpcsFile->findPrevious(
- $ignoreTokens,
- $stackPtr,
- null,
- true
- );
-
- if ($prev === false
- || $tokens[$prev]['code'] !== $pattern[$i]['token']
- ) {
- return false;
- }
-
- // If we skipped past some whitespace tokens, then add them
- // to the found string.
- $tokenContent = $phpcsFile->getTokensAsString(
- ($prev + 1),
- ($stackPtr - $prev - 1)
- );
-
- $found = $tokens[$prev]['content'].$tokenContent.$found;
-
- if (isset($pattern[($i - 1)]) === true
- && $pattern[($i - 1)]['type'] === 'skip'
- ) {
- $stackPtr = $prev;
- } else {
- $stackPtr = ($prev - 1);
- }
- }//end if
- } else if ($pattern[$i]['type'] === 'skip') {
- // Skip to next piece of relevant code.
- if ($pattern[$i]['to'] === 'parenthesis_closer') {
- $to = 'parenthesis_opener';
- } else {
- $to = 'scope_opener';
- }
-
- // Find the previous opener.
- $next = $phpcsFile->findPrevious(
- $ignoreTokens,
- $stackPtr,
- null,
- true
- );
-
- if ($next === false || isset($tokens[$next][$to]) === false) {
- // If there was not opener, then we must be
- // using the wrong pattern.
- return false;
- }
-
- if ($to === 'parenthesis_opener') {
- $found = '{'.$found;
- } else {
- $found = '('.$found;
- }
-
- $found = '...'.$found;
-
- // Skip to the opening token.
- $stackPtr = ($tokens[$next][$to] - 1);
- } else if ($pattern[$i]['type'] === 'string') {
- $found = 'abc';
- } else if ($pattern[$i]['type'] === 'newline') {
- if ($this->ignoreComments === true
- && isset(Tokens::$commentTokens[$tokens[$stackPtr]['code']]) === true
- ) {
- $startComment = $phpcsFile->findPrevious(
- Tokens::$commentTokens,
- ($stackPtr - 1),
- null,
- true
- );
-
- if ($tokens[$startComment]['line'] !== $tokens[($startComment + 1)]['line']) {
- $startComment++;
- }
-
- $tokenContent = $phpcsFile->getTokensAsString(
- $startComment,
- ($stackPtr - $startComment + 1)
- );
-
- $found = $tokenContent.$found;
- $stackPtr = ($startComment - 1);
- }
-
- if ($tokens[$stackPtr]['code'] === T_WHITESPACE) {
- if ($tokens[$stackPtr]['content'] !== $phpcsFile->eolChar) {
- $found = $tokens[$stackPtr]['content'].$found;
-
- // This may just be an indent that comes after a newline
- // so check the token before to make sure. If it is a newline, we
- // can ignore the error here.
- if (($tokens[($stackPtr - 1)]['content'] !== $phpcsFile->eolChar)
- && ($this->ignoreComments === true
- && isset(Tokens::$commentTokens[$tokens[($stackPtr - 1)]['code']]) === false)
- ) {
- $hasError = true;
- } else {
- $stackPtr--;
- }
- } else {
- $found = 'EOL'.$found;
- }
- } else {
- $found = $tokens[$stackPtr]['content'].$found;
- $hasError = true;
- }//end if
-
- if ($hasError === false && $pattern[($i - 1)]['type'] !== 'newline') {
- // Make sure they only have 1 newline.
- $prev = $phpcsFile->findPrevious($ignoreTokens, ($stackPtr - 1), null, true);
- if ($prev !== false && $tokens[$prev]['line'] !== $tokens[$stackPtr]['line']) {
- $hasError = true;
- }
- }
- }//end if
- }//end for
- }//end if
-
- $stackPtr = $origStackPtr;
- $lastAddedStackPtr = null;
- $patternLen = count($pattern);
-
- for ($i = $patternInfo['listen_pos']; $i < $patternLen; $i++) {
- if (isset($tokens[$stackPtr]) === false) {
- break;
- }
-
- if ($pattern[$i]['type'] === 'token') {
- if ($pattern[$i]['token'] === T_WHITESPACE) {
- if ($this->ignoreComments === true) {
- // If we are ignoring comments, check to see if this current
- // token is a comment. If so skip it.
- if (isset(Tokens::$commentTokens[$tokens[$stackPtr]['code']]) === true) {
- continue;
- }
-
- // If the next token is a comment, the we need to skip the
- // current token as we should allow a space before a
- // comment for readability.
- if (isset($tokens[($stackPtr + 1)]) === true
- && isset(Tokens::$commentTokens[$tokens[($stackPtr + 1)]['code']]) === true
- ) {
- continue;
- }
- }
-
- $tokenContent = '';
- if ($tokens[$stackPtr]['code'] === T_WHITESPACE) {
- if (isset($pattern[($i + 1)]) === false) {
- // This is the last token in the pattern, so just compare
- // the next token of content.
- $tokenContent = $tokens[$stackPtr]['content'];
- } else {
- // Get all the whitespace to the next token.
- $next = $phpcsFile->findNext(
- Tokens::$emptyTokens,
- $stackPtr,
- null,
- true
- );
-
- $tokenContent = $phpcsFile->getTokensAsString(
- $stackPtr,
- ($next - $stackPtr)
- );
-
- $lastAddedStackPtr = $stackPtr;
- $stackPtr = $next;
- }//end if
-
- if ($stackPtr !== $lastAddedStackPtr) {
- $found .= $tokenContent;
- }
- } else {
- if ($stackPtr !== $lastAddedStackPtr) {
- $found .= $tokens[$stackPtr]['content'];
- $lastAddedStackPtr = $stackPtr;
- }
- }//end if
-
- if (isset($pattern[($i + 1)]) === true
- && $pattern[($i + 1)]['type'] === 'skip'
- ) {
- // The next token is a skip token, so we just need to make
- // sure the whitespace we found has *at least* the
- // whitespace required.
- if (strpos($tokenContent, $pattern[$i]['value']) !== 0) {
- $hasError = true;
- }
- } else {
- if ($tokenContent !== $pattern[$i]['value']) {
- $hasError = true;
- }
- }
- } else {
- // Check to see if this important token is the same as the
- // next important token in the pattern. If it is not, then
- // the pattern cannot be for this piece of code.
- $next = $phpcsFile->findNext(
- $ignoreTokens,
- $stackPtr,
- null,
- true
- );
-
- if ($next === false
- || $tokens[$next]['code'] !== $pattern[$i]['token']
- ) {
- // The next important token did not match the pattern.
- return false;
- }
-
- if ($lastAddedStackPtr !== null) {
- if (($tokens[$next]['code'] === T_OPEN_CURLY_BRACKET
- || $tokens[$next]['code'] === T_CLOSE_CURLY_BRACKET)
- && isset($tokens[$next]['scope_condition']) === true
- && $tokens[$next]['scope_condition'] > $lastAddedStackPtr
- ) {
- // This is a brace, but the owner of it is after the current
- // token, which means it does not belong to any token in
- // our pattern. This means the pattern is not for us.
- return false;
- }
-
- if (($tokens[$next]['code'] === T_OPEN_PARENTHESIS
- || $tokens[$next]['code'] === T_CLOSE_PARENTHESIS)
- && isset($tokens[$next]['parenthesis_owner']) === true
- && $tokens[$next]['parenthesis_owner'] > $lastAddedStackPtr
- ) {
- // This is a bracket, but the owner of it is after the current
- // token, which means it does not belong to any token in
- // our pattern. This means the pattern is not for us.
- return false;
- }
- }//end if
-
- // If we skipped past some whitespace tokens, then add them
- // to the found string.
- if (($next - $stackPtr) > 0) {
- $hasComment = false;
- for ($j = $stackPtr; $j < $next; $j++) {
- $found .= $tokens[$j]['content'];
- if (isset(Tokens::$commentTokens[$tokens[$j]['code']]) === true) {
- $hasComment = true;
- }
- }
-
- // If we are not ignoring comments, this additional
- // whitespace or comment is not allowed. If we are
- // ignoring comments, there needs to be at least one
- // comment for this to be allowed.
- if ($this->ignoreComments === false
- || ($this->ignoreComments === true
- && $hasComment === false)
- ) {
- $hasError = true;
- }
-
- // Even when ignoring comments, we are not allowed to include
- // newlines without the pattern specifying them, so
- // everything should be on the same line.
- if ($tokens[$next]['line'] !== $tokens[$stackPtr]['line']) {
- $hasError = true;
- }
- }//end if
-
- if ($next !== $lastAddedStackPtr) {
- $found .= $tokens[$next]['content'];
- $lastAddedStackPtr = $next;
- }
-
- if (isset($pattern[($i + 1)]) === true
- && $pattern[($i + 1)]['type'] === 'skip'
- ) {
- $stackPtr = $next;
- } else {
- $stackPtr = ($next + 1);
- }
- }//end if
- } else if ($pattern[$i]['type'] === 'skip') {
- if ($pattern[$i]['to'] === 'unknown') {
- $next = $phpcsFile->findNext(
- $pattern[($i + 1)]['token'],
- $stackPtr
- );
-
- if ($next === false) {
- // Couldn't find the next token, so we must
- // be using the wrong pattern.
- return false;
- }
-
- $found .= '...';
- $stackPtr = $next;
- } else {
- // Find the previous opener.
- $next = $phpcsFile->findPrevious(
- Tokens::$blockOpeners,
- $stackPtr
- );
-
- if ($next === false
- || isset($tokens[$next][$pattern[$i]['to']]) === false
- ) {
- // If there was not opener, then we must
- // be using the wrong pattern.
- return false;
- }
-
- $found .= '...';
- if ($pattern[$i]['to'] === 'parenthesis_closer') {
- $found .= ')';
- } else {
- $found .= '}';
- }
-
- // Skip to the closing token.
- $stackPtr = ($tokens[$next][$pattern[$i]['to']] + 1);
- }//end if
- } else if ($pattern[$i]['type'] === 'string') {
- if ($tokens[$stackPtr]['code'] !== T_STRING) {
- $hasError = true;
- }
-
- if ($stackPtr !== $lastAddedStackPtr) {
- $found .= 'abc';
- $lastAddedStackPtr = $stackPtr;
- }
-
- $stackPtr++;
- } else if ($pattern[$i]['type'] === 'newline') {
- // Find the next token that contains a newline character.
- $newline = 0;
- for ($j = $stackPtr; $j < $phpcsFile->numTokens; $j++) {
- if (strpos($tokens[$j]['content'], $phpcsFile->eolChar) !== false) {
- $newline = $j;
- break;
- }
- }
-
- if ($newline === 0) {
- // We didn't find a newline character in the rest of the file.
- $next = ($phpcsFile->numTokens - 1);
- $hasError = true;
- } else {
- if ($this->ignoreComments === false) {
- // The newline character cannot be part of a comment.
- if (isset(Tokens::$commentTokens[$tokens[$newline]['code']]) === true) {
- $hasError = true;
- }
- }
-
- if ($newline === $stackPtr) {
- $next = ($stackPtr + 1);
- } else {
- // Check that there were no significant tokens that we
- // skipped over to find our newline character.
- $next = $phpcsFile->findNext(
- $ignoreTokens,
- $stackPtr,
- null,
- true
- );
-
- if ($next < $newline) {
- // We skipped a non-ignored token.
- $hasError = true;
- } else {
- $next = ($newline + 1);
- }
- }
- }//end if
-
- if ($stackPtr !== $lastAddedStackPtr) {
- $found .= $phpcsFile->getTokensAsString(
- $stackPtr,
- ($next - $stackPtr)
- );
-
- $diff = ($next - $stackPtr);
- $lastAddedStackPtr = ($next - 1);
- }
-
- $stackPtr = $next;
- }//end if
- }//end for
-
- if ($hasError === true) {
- $error = $this->prepareError($found, $patternCode);
- $errors[$origStackPtr] = $error;
- }
-
- return $errors;
-
- }//end processPattern()
-
-
- /**
- * Prepares an error for the specified patternCode.
- *
- * @param string $found The actual found string in the code.
- * @param string $patternCode The expected pattern code.
- *
- * @return string The error message.
- */
- protected function prepareError($found, $patternCode)
- {
- $found = str_replace("\r\n", '\n', $found);
- $found = str_replace("\n", '\n', $found);
- $found = str_replace("\r", '\n', $found);
- $found = str_replace("\t", '\t', $found);
- $found = str_replace('EOL', '\n', $found);
- $expected = str_replace('EOL', '\n', $patternCode);
-
- $error = "Expected \"$expected\"; found \"$found\"";
-
- return $error;
-
- }//end prepareError()
-
-
- /**
- * Returns the patterns that should be checked.
- *
- * @return string[]
- */
- abstract protected function getPatterns();
-
-
- /**
- * Registers any supplementary tokens that this test might wish to process.
- *
- * A sniff may wish to register supplementary tests when it wishes to group
- * an arbitrary validation that cannot be performed using a pattern, with
- * other pattern tests.
- *
- * @return int[]
- * @see processSupplementary()
- */
- protected function registerSupplementary()
- {
- return array();
-
- }//end registerSupplementary()
-
-
- /**
- * Processes any tokens registered with registerSupplementary().
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where to
- * process the skip.
- * @param int $stackPtr The position in the tokens stack to
- * process.
- *
- * @return void
- * @see registerSupplementary()
- */
- protected function processSupplementary(File $phpcsFile, $stackPtr)
- {
-
- }//end processSupplementary()
-
-
- /**
- * Parses a pattern string into an array of pattern steps.
- *
- * @param string $pattern The pattern to parse.
- *
- * @return array The parsed pattern array.
- * @see createSkipPattern()
- * @see createTokenPattern()
- */
- private function parse($pattern)
- {
- $patterns = array();
- $length = strlen($pattern);
- $lastToken = 0;
- $firstToken = 0;
-
- for ($i = 0; $i < $length; $i++) {
- $specialPattern = false;
- $isLastChar = ($i === ($length - 1));
- $oldFirstToken = $firstToken;
-
- if (substr($pattern, $i, 3) === '...') {
- // It's a skip pattern. The skip pattern requires the
- // content of the token in the "from" position and the token
- // to skip to.
- $specialPattern = $this->createSkipPattern($pattern, ($i - 1));
- $lastToken = ($i - $firstToken);
- $firstToken = ($i + 3);
- $i = ($i + 2);
-
- if ($specialPattern['to'] !== 'unknown') {
- $firstToken++;
- }
- } else if (substr($pattern, $i, 3) === 'abc') {
- $specialPattern = array('type' => 'string');
- $lastToken = ($i - $firstToken);
- $firstToken = ($i + 3);
- $i = ($i + 2);
- } else if (substr($pattern, $i, 3) === 'EOL') {
- $specialPattern = array('type' => 'newline');
- $lastToken = ($i - $firstToken);
- $firstToken = ($i + 3);
- $i = ($i + 2);
- }//end if
-
- if ($specialPattern !== false || $isLastChar === true) {
- // If we are at the end of the string, don't worry about a limit.
- if ($isLastChar === true) {
- // Get the string from the end of the last skip pattern, if any,
- // to the end of the pattern string.
- $str = substr($pattern, $oldFirstToken);
- } else {
- // Get the string from the end of the last special pattern,
- // if any, to the start of this special pattern.
- if ($lastToken === 0) {
- // Note that if the last special token was zero characters ago,
- // there will be nothing to process so we can skip this bit.
- // This happens if you have something like: EOL... in your pattern.
- $str = '';
- } else {
- $str = substr($pattern, $oldFirstToken, $lastToken);
- }
- }
-
- if ($str !== '') {
- $tokenPatterns = $this->createTokenPattern($str);
- foreach ($tokenPatterns as $tokenPattern) {
- $patterns[] = $tokenPattern;
- }
- }
-
- // Make sure we don't skip the last token.
- if ($isLastChar === false && $i === ($length - 1)) {
- $i--;
- }
- }//end if
-
- // Add the skip pattern *after* we have processed
- // all the tokens from the end of the last skip pattern
- // to the start of this skip pattern.
- if ($specialPattern !== false) {
- $patterns[] = $specialPattern;
- }
- }//end for
-
- return $patterns;
-
- }//end parse()
-
-
- /**
- * Creates a skip pattern.
- *
- * @param string $pattern The pattern being parsed.
- * @param string $from The token content that the skip pattern starts from.
- *
- * @return array The pattern step.
- * @see createTokenPattern()
- * @see parse()
- */
- private function createSkipPattern($pattern, $from)
- {
- $skip = array('type' => 'skip');
-
- $nestedParenthesis = 0;
- $nestedBraces = 0;
- for ($start = $from; $start >= 0; $start--) {
- switch ($pattern[$start]) {
- case '(':
- if ($nestedParenthesis === 0) {
- $skip['to'] = 'parenthesis_closer';
- }
-
- $nestedParenthesis--;
- break;
- case '{':
- if ($nestedBraces === 0) {
- $skip['to'] = 'scope_closer';
- }
-
- $nestedBraces--;
- break;
- case '}':
- $nestedBraces++;
- break;
- case ')':
- $nestedParenthesis++;
- break;
- }//end switch
-
- if (isset($skip['to']) === true) {
- break;
- }
- }//end for
-
- if (isset($skip['to']) === false) {
- $skip['to'] = 'unknown';
- }
-
- return $skip;
-
- }//end createSkipPattern()
-
-
- /**
- * Creates a token pattern.
- *
- * @param string $str The tokens string that the pattern should match.
- *
- * @return array The pattern step.
- * @see createSkipPattern()
- * @see parse()
- */
- private function createTokenPattern($str)
- {
- // Don't add a space after the closing php tag as it will add a new
- // whitespace token.
- $tokenizer = new PHP('<?php '.$str.'?>', null);
-
- // Remove the <?php tag from the front and the end php tag from the back.
- $tokens = $tokenizer->getTokens();
- $tokens = array_slice($tokens, 1, (count($tokens) - 2));
-
- $patterns = array();
- foreach ($tokens as $patternInfo) {
- $patterns[] = array(
- 'type' => 'token',
- 'token' => $patternInfo['code'],
- 'value' => $patternInfo['content'],
- );
- }
-
- return $patterns;
-
- }//end createTokenPattern()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractScopeSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractScopeSniff.php
deleted file mode 100644
index be83bed9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractScopeSniff.php
+++ /dev/null
@@ -1,175 +0,0 @@
-<?php
-/**
- * Allows tests that extend this class to listen for tokens within a particular scope.
- *
- * Below is a test that listens to methods that exist only within classes:
- * <code>
- * class ClassScopeTest extends PHP_CodeSniffer_Standards_AbstractScopeSniff
- * {
- * public function __construct()
- * {
- * parent::__construct(array(T_CLASS), array(T_FUNCTION));
- * }
- *
- * protected function processTokenWithinScope(\PHP_CodeSniffer\Files\File $phpcsFile, $)
- * {
- * $className = $phpcsFile->getDeclarationName($currScope);
- * echo 'encountered a method within class '.$className;
- * }
- * }
- * </code>
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Sniffs;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-
-abstract class AbstractScopeSniff implements Sniff
-{
-
- /**
- * The token types that this test wishes to listen to within the scope.
- *
- * @var array
- */
- private $tokens = array();
-
- /**
- * The type of scope opener tokens that this test wishes to listen to.
- *
- * @var string
- */
- private $scopeTokens = array();
-
- /**
- * True if this test should fire on tokens outside of the scope.
- *
- * @var boolean
- */
- private $listenOutside = false;
-
-
- /**
- * Constructs a new AbstractScopeTest.
- *
- * @param array $scopeTokens The type of scope the test wishes to listen to.
- * @param array $tokens The tokens that the test wishes to listen to
- * within the scope.
- * @param boolean $listenOutside If true this test will also alert the
- * extending class when a token is found outside
- * the scope, by calling the
- * processTokenOutsideScope method.
- *
- * @see PHP_CodeSniffer.getValidScopeTokeners()
- * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If the specified tokens array is empty.
- */
- public function __construct(
- array $scopeTokens,
- array $tokens,
- $listenOutside=false
- ) {
- if (empty($scopeTokens) === true) {
- $error = 'The scope tokens list cannot be empty';
- throw new RuntimeException($error);
- }
-
- if (empty($tokens) === true) {
- $error = 'The tokens list cannot be empty';
- throw new RuntimeException($error);
- }
-
- $invalidScopeTokens = array_intersect($scopeTokens, $tokens);
- if (empty($invalidScopeTokens) === false) {
- $invalid = implode(', ', $invalidScopeTokens);
- $error = "Scope tokens [$invalid] can't be in the tokens array";
- throw new RuntimeException($error);
- }
-
- $this->listenOutside = $listenOutside;
- $this->scopeTokens = array_flip($scopeTokens);
- $this->tokens = $tokens;
-
- }//end __construct()
-
-
- /**
- * The method that is called to register the tokens this test wishes to
- * listen to.
- *
- * DO NOT OVERRIDE THIS METHOD. Use the constructor of this class to register
- * for the desired tokens and scope.
- *
- * @return int[]
- * @see __constructor()
- */
- final public function register()
- {
- return $this->tokens;
-
- }//end register()
-
-
- /**
- * Processes the tokens that this test is listening for.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position in the stack where this
- * token was found.
- *
- * @return void
- * @see processTokenWithinScope()
- */
- final public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $foundScope = false;
- foreach ($tokens[$stackPtr]['conditions'] as $scope => $code) {
- if (isset($this->scopeTokens[$code]) === true) {
- $this->processTokenWithinScope($phpcsFile, $stackPtr, $scope);
- $foundScope = true;
- }
- }
-
- if ($this->listenOutside === true && $foundScope === false) {
- $this->processTokenOutsideScope($phpcsFile, $stackPtr);
- }
-
- }//end process()
-
-
- /**
- * Processes a token that is found within the scope that this test is
- * listening to.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position in the stack where this
- * token was found.
- * @param int $currScope The position in the tokens array that
- * opened the scope that this test is
- * listening for.
- *
- * @return void
- */
- abstract protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope);
-
-
- /**
- * Processes a token that is found outside the scope that this test is
- * listening to.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position in the stack where this
- * token was found.
- *
- * @return void
- */
- abstract protected function processTokenOutsideScope(File $phpcsFile, $stackPtr);
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php
deleted file mode 100644
index c71e01d3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php
+++ /dev/null
@@ -1,211 +0,0 @@
-<?php
-/**
- * A class to find T_VARIABLE tokens.
- *
- * This class can distinguish between normal T_VARIABLE tokens, and those tokens
- * that represent class members. If a class member is encountered, then the
- * processMemberVar method is called so the extending class can process it. If
- * the token is found to be a normal T_VARIABLE token, then processVariable is
- * called.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Sniffs;
-
-use PHP_CodeSniffer\Files\File;
-
-abstract class AbstractVariableSniff extends AbstractScopeSniff
-{
-
- /**
- * The end token of the current function that we are in.
- *
- * @var integer
- */
- private $endFunction = -1;
-
- /**
- * TRUE if a function is currently open.
- *
- * @var boolean
- */
- private $functionOpen = false;
-
- /**
- * The current PHP_CodeSniffer file that we are processing.
- *
- * @var \PHP_CodeSniffer\Files\File
- */
- protected $currentFile = null;
-
-
- /**
- * Constructs an AbstractVariableTest.
- */
- public function __construct()
- {
- $scopes = array(
- T_CLASS,
- T_ANON_CLASS,
- T_TRAIT,
- T_INTERFACE,
- );
-
- $listen = array(
- T_FUNCTION,
- T_VARIABLE,
- T_DOUBLE_QUOTED_STRING,
- T_HEREDOC,
- );
-
- parent::__construct($scopes, $listen, true);
-
- }//end __construct()
-
-
- /**
- * Processes the token in the specified PHP_CodeSniffer_File.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where this
- * token was found.
- * @param int $stackPtr The position where the token was found.
- * @param int $currScope The current scope opener token.
- *
- * @return void
- */
- final protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- if ($this->currentFile !== $phpcsFile) {
- $this->currentFile = $phpcsFile;
- $this->functionOpen = false;
- $this->endFunction = -1;
- }
-
- $tokens = $phpcsFile->getTokens();
-
- if ($stackPtr > $this->endFunction) {
- $this->functionOpen = false;
- }
-
- if ($tokens[$stackPtr]['code'] === T_FUNCTION
- && $this->functionOpen === false
- ) {
- $this->functionOpen = true;
-
- $methodProps = $phpcsFile->getMethodProperties($stackPtr);
-
- // If the function is abstract, or is in an interface,
- // then set the end of the function to it's closing semicolon.
- if ($methodProps['is_abstract'] === true
- || $tokens[$currScope]['code'] === T_INTERFACE
- ) {
- $this->endFunction
- = $phpcsFile->findNext(array(T_SEMICOLON), $stackPtr);
- } else {
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- $error = 'Possible parse error: non-abstract method defined as abstract';
- $phpcsFile->addWarning($error, $stackPtr, 'Internal.ParseError.NonAbstractDefinedAbstract');
- return;
- }
-
- $this->endFunction = $tokens[$stackPtr]['scope_closer'];
- }
- }//end if
-
- if ($tokens[$stackPtr]['code'] === T_DOUBLE_QUOTED_STRING
- || $tokens[$stackPtr]['code'] === T_HEREDOC
- ) {
- // Check to see if this string has a variable in it.
- $pattern = '|(?<!\\\\)(?:\\\\{2})*\${?[a-zA-Z0-9_]+}?|';
- if (preg_match($pattern, $tokens[$stackPtr]['content']) !== 0) {
- $this->processVariableInString($phpcsFile, $stackPtr);
- }
-
- return;
- }
-
- if ($this->functionOpen === true) {
- if ($tokens[$stackPtr]['code'] === T_VARIABLE) {
- $this->processVariable($phpcsFile, $stackPtr);
- }
- } else {
- // What if we assign a member variable to another?
- // ie. private $_count = $this->_otherCount + 1;.
- $this->processMemberVar($phpcsFile, $stackPtr);
- }
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes the token outside the scope in the file.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where this
- * token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- final protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- // These variables are not member vars.
- if ($tokens[$stackPtr]['code'] === T_VARIABLE) {
- $this->processVariable($phpcsFile, $stackPtr);
- } else if ($tokens[$stackPtr]['code'] === T_DOUBLE_QUOTED_STRING
- || $tokens[$stackPtr]['code'] === T_HEREDOC
- ) {
- // Check to see if this string has a variable in it.
- $pattern = '|(?<!\\\\)(?:\\\\{2})*\${?[a-zA-Z0-9_]+}?|';
- if (preg_match($pattern, $tokens[$stackPtr]['content']) !== 0) {
- $this->processVariableInString($phpcsFile, $stackPtr);
- }
- }
-
- }//end processTokenOutsideScope()
-
-
- /**
- * Called to process class member vars.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where this
- * token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- abstract protected function processMemberVar(File $phpcsFile, $stackPtr);
-
-
- /**
- * Called to process normal member vars.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where this
- * token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- abstract protected function processVariable(File $phpcsFile, $stackPtr);
-
-
- /**
- * Called to process variables found in double quoted strings or heredocs.
- *
- * Note that there may be more than one variable in the string, which will
- * result only in one call for the string or one call per line for heredocs.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where this
- * token was found.
- * @param int $stackPtr The position where the double quoted
- * string was found.
- *
- * @return void
- */
- abstract protected function processVariableInString(File $phpcsFile, $stackPtr);
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/Sniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/Sniff.php
deleted file mode 100644
index 72512c50..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Sniffs/Sniff.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/**
- * Represents a PHP_CodeSniffer sniff for sniffing coding standards.
- *
- * A sniff registers what token types it wishes to listen for, then, when
- * PHP_CodeSniffer encounters that token, the sniff is invoked and passed
- * information about where the token was found in the stack, and the
- * PHP_CodeSniffer file in which the token was found.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Sniffs;
-
-use PHP_CodeSniffer\Files\File;
-
-interface Sniff
-{
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * An example return value for a sniff that wants to listen for whitespace
- * and any comments would be:
- *
- * <code>
- * return array(
- * T_WHITESPACE,
- * T_DOC_COMMENT,
- * T_COMMENT,
- * );
- * </code>
- *
- * @return int[]
- * @see Tokens.php
- */
- public function register();
-
-
- /**
- * Called when one of the token types that this sniff is listening for
- * is found.
- *
- * The stackPtr variable indicates where in the stack the token was found.
- * A sniff can acquire information this token, along with all the other
- * tokens within the stack by first acquiring the token stack:
- *
- * <code>
- * $tokens = $phpcsFile->getTokens();
- * echo 'Encountered a '.$tokens[$stackPtr]['type'].' token';
- * echo 'token information: ';
- * print_r($tokens[$stackPtr]);
- * </code>
- *
- * If the sniff discovers an anomaly in the code, they can raise an error
- * by calling addError() on the \PHP_CodeSniffer\Files\File object, specifying an error
- * message and the position of the offending token:
- *
- * <code>
- * $phpcsFile->addError('Encountered an error', $stackPtr);
- * </code>
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where the
- * token was found.
- * @param int $stackPtr The position in the PHP_CodeSniffer
- * file's token stack where the token
- * was found.
- *
- * @return void|int Optionally returns a stack pointer. The sniff will not be
- * called again on the current file until the returned stack
- * pointer is reached. Return (count($tokens) + 1) to skip
- * the rest of the file.
- */
- public function process(File $phpcsFile, $stackPtr);
-
-
-}//end interface
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/DuplicateClassNameStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/DuplicateClassNameStandard.xml
deleted file mode 100644
index 4b0ec96d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/DuplicateClassNameStandard.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<documentation title="Duplicate Class Names">
- <standard>
- <![CDATA[
- Class and Interface names should be unique in a project. They should never be duplicated.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A unique class name.">
- <![CDATA[
-class <em>Foo</em>
-{
-}
- ]]>
- </code>
- <code title="Invalid: A class duplicated (including across multiple files).">
- <![CDATA[
-class <em>Foo</em>
-{
-}
-
-class <em>Foo</em>
-{
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml
deleted file mode 100644
index 6226a3ff..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<documentation title="Opening Brace on Same Line">
- <standard>
- <![CDATA[
- The opening brace of a class must be on the same line after the definition and must be the last thing on that line.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Opening brace on the same line.">
- <![CDATA[
-class Foo <em>{</em>
-}
- ]]>
- </code>
- <code title="Invalid: Opening brace on the next line.">
- <![CDATA[
-class Foo
-<em>{</em>
-}
- ]]>
- </code>
- <code title="Invalid: Opening brace not last thing on the line.">
- <![CDATA[
-class Foo {<em> // Start of class.</em>
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/EmptyStatementStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/EmptyStatementStandard.xml
deleted file mode 100644
index c400d75e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/EmptyStatementStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Empty Statements">
- <standard>
- <![CDATA[
- Control Structures must have at least one statement inside of the body.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: There is a statement inside the control structure.">
- <![CDATA[
-if ($test) {
- $var = 1;
-}
- ]]>
- </code>
- <code title="Invalid: The control structure has no statements.">
- <![CDATA[
-if ($test) {
- <em>// do nothing</em>
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/ForLoopShouldBeWhileLoopStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/ForLoopShouldBeWhileLoopStandard.xml
deleted file mode 100644
index 06f0b7a5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/ForLoopShouldBeWhileLoopStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Condition-Only For Loops">
- <standard>
- <![CDATA[
- For loops that have only a second expression (the condition) should be converted to while loops.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A for loop is used with all three expressions.">
- <![CDATA[
-for (<em>$i = 0</em>; $i < 10; <em>$i++</em>) {
- echo "{$i}\n";
-}
- ]]>
- </code>
- <code title="Invalid: A for loop is used without a first or third expression.">
- <![CDATA[
-for (<em></em>;$test;<em></em>) {
- $test = doSomething();
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/ForLoopWithTestFunctionCallStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/ForLoopWithTestFunctionCallStandard.xml
deleted file mode 100644
index f40d94bb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/ForLoopWithTestFunctionCallStandard.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<documentation title="For Loops With Function Calls in the Test">
- <standard>
- <![CDATA[
- For loops should not call functions inside the test for the loop when they can be computed beforehand.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A for loop that determines its end condition before the loop starts.">
- <![CDATA[
-<em>$end = count($foo);</em>
-for ($i = 0; $i < $end; $i++) {
- echo $foo[$i]."\n";
-}
- ]]>
- </code>
- <code title="Invalid: A for loop that unnecessarily computes the same value on every iteration.">
- <![CDATA[
-for ($i = 0; $i < <em>count($foo)</em>; $i++) {
- echo $foo[$i]."\n";
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/JumbledIncrementerStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/JumbledIncrementerStandard.xml
deleted file mode 100644
index 50f07828..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/JumbledIncrementerStandard.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<documentation title="Jumbled Incrementers">
- <standard>
- <![CDATA[
- Incrementers in nested loops should use different variable names.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Two different variables being used to increment.">
- <![CDATA[
-for ($i = 0; $i < 10; <em>$i++</em>) {
- for ($j = 0; $j < 10; <em>$j++</em>) {
- }
-}
- ]]>
- </code>
- <code title="Invalid: Inner incrementer is the same variable name as the outer one.">
- <![CDATA[
-for ($i = 0; $i < 10; <em>$i++</em>) {
- for ($j = 0; $j < 10; <em>$i++</em>) {
- }
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnconditionalIfStatementStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnconditionalIfStatementStandard.xml
deleted file mode 100644
index b2eaabe7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnconditionalIfStatementStandard.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<documentation title="Unconditional If Statements">
- <standard>
- <![CDATA[
- If statements that are always evaluated should not be used.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: An if statement that only executes conditionally.">
- <![CDATA[
-if (<em>$test</em>) {
- $var = 1;
-}
- ]]>
- </code>
- <code title="Invalid: An if statement that is always performed.">
- <![CDATA[
-if (<em>true</em>) {
- $var = 1;
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: An if statement that only executes conditionally.">
- <![CDATA[
-if (<em>$test</em>) {
- $var = 1;
-}
- ]]>
- </code>
- <code title="Invalid: An if statement that is never performed.">
- <![CDATA[
-if (<em>false</em>) {
- $var = 1;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnnecessaryFinalModifierStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnnecessaryFinalModifierStandard.xml
deleted file mode 100644
index 89367407..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnnecessaryFinalModifierStandard.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<documentation title="Unnecessary Final Modifiers">
- <standard>
- <![CDATA[
- Methods should not be declared final inside of classes that are declared final.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A method in a final class is not marked final.">
- <![CDATA[
-final class Foo
-{
- public function bar()
- {
- }
-}
- ]]>
- </code>
- <code title="Invalid: A method in a final class is also marked final.">
- <![CDATA[
-final class Foo
-{
- public <em>final</em> function bar()
- {
- }
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnusedFunctionParameterStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnusedFunctionParameterStandard.xml
deleted file mode 100644
index 181dff4e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnusedFunctionParameterStandard.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<documentation title="Unused function parameters">
- <standard>
- <![CDATA[
- All parameters in a functions signature should be used within the function.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: All the parameters are used.">
- <![CDATA[
-function addThree($a, $b, $c)
-{
- return <em>$a + $b + $c</em>;
-}
- ]]>
- </code>
- <code title="Invalid: One of the parameters is not being used.">
- <![CDATA[
-function addThree($a, $b, $c)
-{
- return <em>$a + $b</em>;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UselessOverridingMethodStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UselessOverridingMethodStandard.xml
deleted file mode 100644
index ba8bd7e4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UselessOverridingMethodStandard.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<documentation title="Useless Overriding Methods">
- <standard>
- <![CDATA[
- Methods should not be defined that only call the parent method.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A method that extends functionality on a parent method.">
- <![CDATA[
-final class Foo
-{
- public function bar()
- {
- parent::bar();
- <em>$this->doSomethingElse();</em>
- }
-}
- ]]>
- </code>
- <code title="Invalid: An overriding method that only calls the parent.">
- <![CDATA[
-final class Foo
-{
- public function bar()
- {
- <em>parent::bar();</em>
- }
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/FixmeStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/FixmeStandard.xml
deleted file mode 100644
index 451e5fb6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/FixmeStandard.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<documentation title="Todo Comments">
- <standard>
- <![CDATA[
- FIXME Statements should be taken care of.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A comment without a fixme.">
- <![CDATA[
-// <em>Handle strange case</em>
-if ($test) {
- $var = 1;
-}
- ]]>
- </code>
- <code title="Invalid: A fixme comment.">
- <![CDATA[
-// <em>FIXME</em>: This needs to be fixed!
-if ($test) {
- $var = 1;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/TodoStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/TodoStandard.xml
deleted file mode 100644
index c9c4fc06..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Commenting/TodoStandard.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<documentation title="Todo Comments">
- <standard>
- <![CDATA[
- TODO Statements should be taken care of.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A comment without a todo.">
- <![CDATA[
-// <em>Handle strange case</em>
-if ($test) {
- $var = 1;
-}
- ]]>
- </code>
- <code title="Invalid: A todo comment.">
- <![CDATA[
-// <em>TODO</em>: This needs to be fixed!
-if ($test) {
- $var = 1;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/ControlStructures/InlineControlStructureStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/ControlStructures/InlineControlStructureStandard.xml
deleted file mode 100644
index 06ae14b7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/ControlStructures/InlineControlStructureStandard.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<documentation title="Inline Control Structures">
- <standard>
- <![CDATA[
- Control Structures should use braces.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Braces are used around the control structure.">
- <![CDATA[
-if ($test) <em>{</em>
- $var = 1;
-<em>}</em>
- ]]>
- </code>
- <code title="Invalid: No braces are used for the control structure..">
- <![CDATA[
-if ($test)
- $var = 1;
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/CSSLintStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/CSSLintStandard.xml
deleted file mode 100644
index b57a9706..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/CSSLintStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="CSSLint">
- <standard>
- <![CDATA[
- All css files should pass the basic csslint tests.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Valid CSS Syntax is used.">
- <![CDATA[
-.foo: { width: 100<em></em>%; }
- ]]>
- </code>
- <code title="Invalid: The CSS has a typo in it.">
- <![CDATA[
-.foo: { width: 100<em> </em>%; }
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/ClosureLinterStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/ClosureLinterStandard.xml
deleted file mode 100644
index 9df9aec4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/ClosureLinterStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Closure Linter">
- <standard>
- <![CDATA[
- All javascript files should pass basic Closure Linter tests.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Valid JS Syntax is used.">
- <![CDATA[
-var foo = [1, 2<em></em>];
- ]]>
- </code>
- <code title="Invalid: Trailing comma in a javascript array.">
- <![CDATA[
-var foo = [1, 2<em>,</em>];
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/JSHintStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/JSHintStandard.xml
deleted file mode 100644
index 7525e9e6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Debug/JSHintStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="JSHint">
- <standard>
- <![CDATA[
- All javascript files should pass basic JSHint tests.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Valid JS Syntax is used.">
- <![CDATA[
-<em>var</em> foo = 5;
- ]]>
- </code>
- <code title="Invalid: The Javascript is using an undefined variable.">
- <![CDATA[
-<em></em>foo = 5;
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/ByteOrderMarkStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/ByteOrderMarkStandard.xml
deleted file mode 100644
index 88591f92..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/ByteOrderMarkStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="Byte Order Marks">
- <standard>
- <![CDATA[
- Byte Order Marks that may corrupt your application should not be used. These include 0xefbbbf (UTF-8), 0xfeff (UTF-16 BE) and 0xfffe (UTF-16 LE).
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/EndFileNewlineStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/EndFileNewlineStandard.xml
deleted file mode 100644
index aa757edc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/EndFileNewlineStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="End of File Newline">
- <standard>
- <![CDATA[
- Files should end with a newline character.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/EndFileNoNewlineStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/EndFileNoNewlineStandard.xml
deleted file mode 100644
index 227d5621..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/EndFileNoNewlineStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="No End of File Newline">
- <standard>
- <![CDATA[
- Files should not end with a newline character.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/InlineHTMLStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/InlineHTMLStandard.xml
deleted file mode 100644
index 3fbf5024..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/InlineHTMLStandard.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<documentation title="Inline HTML">
- <standard>
- <![CDATA[
- Files that contain php code should only have php code and should not have any "inline html".
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A php file with only php code in it.">
- <![CDATA[
-<?php
-$foo = 'bar';
-echo $foo . 'baz';
- ]]>
- </code>
- <code title="Invalid: A php file with html in it outside of the php tags.">
- <![CDATA[
-<em>some string here</em>
-<?php
-$foo = 'bar';
-echo $foo . 'baz';
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LineEndingsStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LineEndingsStandard.xml
deleted file mode 100644
index 4554d0f3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LineEndingsStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="Line Endings">
- <standard>
- <![CDATA[
- Unix-style line endings are preferred ("\n" instead of "\r\n").
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LineLengthStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LineLengthStandard.xml
deleted file mode 100644
index 31342e3c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LineLengthStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="Line Length">
- <standard>
- <![CDATA[
- It is recommended to keep lines at approximately 80 characters long for better code readability.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LowercasedFilenameStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LowercasedFilenameStandard.xml
deleted file mode 100644
index a1be34cb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/LowercasedFilenameStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="Lowercased Filenames">
- <standard>
- <![CDATA[
- Lowercase filenames are required.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneClassPerFileStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneClassPerFileStandard.xml
deleted file mode 100644
index 7b585763..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneClassPerFileStandard.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<documentation title="One Class Per File">
- <standard>
- <![CDATA[
- There should only be one class defined in a file.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Only one class in the file.">
- <![CDATA[
-<?php
-<em>class Foo</em>
-{
-}
- ]]>
- </code>
- <code title="Invalid: Multiple classes defined in one file.">
- <![CDATA[
-<?php
-<em>class Foo</em>
-{
-}
-
-<em>class Bar</em>
-{
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneInterfacePerFileStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneInterfacePerFileStandard.xml
deleted file mode 100644
index de975319..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Files/OneInterfacePerFileStandard.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<documentation title="One Interface Per File">
- <standard>
- <![CDATA[
- There should only be one interface defined in a file.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Only one interface in the file.">
- <![CDATA[
-<?php
-<em>interface Foo</em>
-{
-}
- ]]>
- </code>
- <code title="Invalid: Multiple interfaces defined in one file.">
- <![CDATA[
-<?php
-<em>interface Foo</em>
-{
-}
-
-<em>interface Bar</em>
-{
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/DisallowMultipleStatementsStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/DisallowMultipleStatementsStandard.xml
deleted file mode 100644
index f0d4490c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/DisallowMultipleStatementsStandard.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<documentation title="Multiple Statements On a Single Line">
- <standard>
- <![CDATA[
- Multiple statements are not allowed on a single line.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Two statements are spread out on two separate lines.">
- <![CDATA[
-$foo = 1;
-$bar = 2;
- ]]>
- </code>
- <code title="Invalid: Two statements are combined onto one line.">
- <![CDATA[
-$foo = 1; $bar = 2;
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/MultipleStatementAlignmentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/MultipleStatementAlignmentStandard.xml
deleted file mode 100644
index 9369eebc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/MultipleStatementAlignmentStandard.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<documentation title="Aligning Blocks of Assignments">
- <standard>
- <![CDATA[
- There should be one space on either side of an equals sign used to assign a value to a variable. In the case of a block of related assignments, more space may be inserted to promote readability.
- ]]>
- </standard>
- <code_comparison>
- <code title="Equals signs aligned">
- <![CDATA[
-$shortVar <em>=</em> (1 + 2);
-$veryLongVarName <em>=</em> 'string';
-$var <em>=</em> foo($bar, $baz, $quux);
- ]]>
- </code>
- <code title="Not aligned; harder to read">
- <![CDATA[
-$shortVar <em>=</em> (1 + 2);
-$veryLongVarName <em>=</em> 'string';
-$var <em>=</em> foo($bar, $baz, $quux);
- ]]>
- </code>
- </code_comparison>
- <standard>
- <![CDATA[
- When using plus-equals, minus-equals etc. still ensure the equals signs are aligned to one space after the longest variable name.
- ]]>
- </standard>
- <code_comparison>
- <code title="Equals signs aligned; only one space after longest var name">
- <![CDATA[
-$shortVar <em>+= </em>1;
-$veryLongVarName<em> = </em>1;
- ]]>
- </code>
- <code title="Two spaces after longest var name">
- <![CDATA[
-$shortVar <em> += </em>1;
-$veryLongVarName<em> = </em>1;
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Equals signs aligned">
- <![CDATA[
-$shortVar <em> = </em>1;
-$veryLongVarName<em> -= </em>1;
- ]]>
- </code>
- <code title="Equals signs not aligned">
- <![CDATA[
-$shortVar <em> = </em>1;
-$veryLongVarName<em> -= </em>1;
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/NoSpaceAfterCastStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/NoSpaceAfterCastStandard.xml
deleted file mode 100644
index 042e4f80..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/NoSpaceAfterCastStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Space After Casts">
- <standard>
- <![CDATA[
- Spaces are not allowed after casting operators.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A cast operator is immediately before its value.">
- <![CDATA[
-$foo = (string)1;
- ]]>
- </code>
- <code title="Invalid: A cast operator is followed by whitespace.">
- <![CDATA[
-$foo = (string)<em> </em>1;
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/SpaceAfterCastStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/SpaceAfterCastStandard.xml
deleted file mode 100644
index 75eba77c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Formatting/SpaceAfterCastStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Space After Casts">
- <standard>
- <![CDATA[
- Exactly one space is allowed after a cast.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A cast operator is followed by one space.">
- <![CDATA[
-$foo = (string)<em> </em>1;
- ]]>
- </code>
- <code title="Invalid: A cast operator is not followed by whitespace.">
- <![CDATA[
-$foo = (string)<em></em>1;
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/CallTimePassByReferenceStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/CallTimePassByReferenceStandard.xml
deleted file mode 100644
index 738998d4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/CallTimePassByReferenceStandard.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<documentation title="Call-Time Pass-By-Reference">
- <standard>
- <![CDATA[
- Call-time pass-by-reference is not allowed. It should be declared in the function definition.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Pass-by-reference is specified in the function definition.">
- <![CDATA[
-function foo(<em>&</em>$bar)
-{
- $bar++;
-}
-
-$baz = 1;
-foo($baz);
- ]]>
- </code>
- <code title="Invalid: Pass-by-reference is done in the call to a function.">
- <![CDATA[
-function foo($bar)
-{
- $bar++;
-}
-
-$baz = 1;
-foo(<em>&</em>$baz);
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/FunctionCallArgumentSpacingStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/FunctionCallArgumentSpacingStandard.xml
deleted file mode 100644
index 9809844d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/FunctionCallArgumentSpacingStandard.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<documentation title="Function Argument Spacing">
- <standard>
- <![CDATA[
- Function arguments should have one space after a comma, and single spaces surrounding the equals sign for default values.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Single spaces after a comma.">
- <![CDATA[
-function foo($bar,<em> </em>$baz)
-{
-}
- ]]>
- </code>
- <code title="Invalid: No spaces after a comma.">
- <![CDATA[
-function foo($bar,<em></em>$baz)
-{
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Single spaces around an equals sign in function declaration.">
- <![CDATA[
-function foo($bar, $baz<em> </em>=<em> </em>true)
-{
-}
- ]]>
- </code>
- <code title="Invalid: No spaces around an equals sign in function declaration.">
- <![CDATA[
-function foo($bar, $baz<em></em>=<em></em>true)
-{
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceBsdAllmanStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceBsdAllmanStandard.xml
deleted file mode 100644
index 414dc289..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceBsdAllmanStandard.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<documentation title="Opening Brace in Function Declarations">
- <standard>
- <![CDATA[
- Function declarations follow the "BSD/Allman style". The function brace is on the line following the function declaration and is indented to the same column as the start of the function declaration.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: brace on next line">
- <![CDATA[
-function fooFunction($arg1, $arg2 = '')
-<em>{</em>
- ...
-}
- ]]>
- </code>
- <code title="Invalid: brace on same line">
- <![CDATA[
-function fooFunction($arg1, $arg2 = '') <em>{</em>
- ...
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceKernighanRitchieStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceKernighanRitchieStandard.xml
deleted file mode 100644
index 84c2bdd8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceKernighanRitchieStandard.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<documentation title="Opening Brace in Function Declarations">
- <standard>
- <![CDATA[
- Function declarations follow the "Kernighan/Ritchie style". The function brace is on the same line as the function declaration. One space is required between the closing parenthesis and the brace.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: brace on same line">
- <![CDATA[
-function fooFunction($arg1, $arg2 = '')<em> {</em>
- ...
-}
- ]]>
- </code>
- <code title="Invalid: brace on next line">
- <![CDATA[
-function fooFunction($arg1, $arg2 = '')
-<em>{</em>
- ...
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Metrics/CyclomaticComplexityStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Metrics/CyclomaticComplexityStandard.xml
deleted file mode 100644
index a928e7db..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Metrics/CyclomaticComplexityStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="Cyclomatic Complexity">
- <standard>
- <![CDATA[
- Functions should not have a cyclomatic complexity greater than 20, and should try to stay below a complexity of 10.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Metrics/NestingLevelStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Metrics/NestingLevelStandard.xml
deleted file mode 100644
index f66cd92c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Metrics/NestingLevelStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="Nesting Level">
- <standard>
- <![CDATA[
- Functions should not have a nesting level greater than 10, and should try to stay below 5.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/CamelCapsFunctionNameStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/CamelCapsFunctionNameStandard.xml
deleted file mode 100644
index f5345b71..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/CamelCapsFunctionNameStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="camelCaps Function Names">
- <standard>
- <![CDATA[
- Functions should use camelCaps format for their names. Only PHP's magic methods should use a double underscore prefix.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A function in camelCaps format.">
- <![CDATA[
-function <em>doSomething</em>()
-{
-}
- ]]>
- </code>
- <code title="Invalid: A function in snake_case format.">
- <![CDATA[
-function <em>do_something</em>()
-{
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/ConstructorNameStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/ConstructorNameStandard.xml
deleted file mode 100644
index 9dfc175f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/ConstructorNameStandard.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<documentation title="Constructor name">
- <standard>
- <![CDATA[
- Constructors should be named __construct, not after the class.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: The constructor is named __construct.">
- <![CDATA[
-class Foo
-{
- function <em>__construct</em>()
- {
- }
-}
- ]]>
- </code>
- <code title="Invalid: The old style class name constructor is used.">
- <![CDATA[
-class Foo
-{
- function <em>Foo</em>()
- {
- }
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.xml
deleted file mode 100644
index 6ef61b93..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<documentation title="Constant Names">
- <standard>
- <![CDATA[
- Constants should always be all-uppercase, with underscores to separate words.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: all uppercase">
- <![CDATA[
-define('<em>FOO_CONSTANT</em>', 'foo');
-
-class FooClass
-{
- const <em>FOO_CONSTANT</em> = 'foo';
-}
- ]]>
- </code>
- <code title="Invalid: mixed case">
- <![CDATA[
-define('<em>Foo_Constant</em>', 'foo');
-
-class FooClass
-{
- const <em>foo_constant</em> = 'foo';
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/BacktickOperatorStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/BacktickOperatorStandard.xml
deleted file mode 100644
index 4ebd6770..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/BacktickOperatorStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="Backtick Operator">
- <standard>
- <![CDATA[
- Disallow the use of the backtick operator for execution of shell commands.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/CharacterBeforePHPOpeningTagStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/CharacterBeforePHPOpeningTagStandard.xml
deleted file mode 100644
index df5a0eba..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/CharacterBeforePHPOpeningTagStandard.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<documentation title="Opening Tag at Start of File">
- <standard>
- <![CDATA[
- The opening php tag should be the first item in the file.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A file starting with an opening php tag.">
- <![CDATA[
-<em></em><?php
-echo 'Foo';
- ]]>
- </code>
- <code title="Invalid: A file with content before the opening php tag.">
- <![CDATA[
-<em>Beginning content</em>
-<?php
-echo 'Foo';
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/ClosingPHPTagStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/ClosingPHPTagStandard.xml
deleted file mode 100644
index 09afb2d7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/ClosingPHPTagStandard.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<documentation title="Closing PHP Tags">
- <standard>
- <![CDATA[
- All opening php tags should have a corresponding closing tag.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A closing tag paired with it's opening tag.">
- <![CDATA[
-<em><?php</em>
-echo 'Foo';
-<em>?></em>
- ]]>
- </code>
- <code title="Invalid: No closing tag paired with the opening tag.">
- <![CDATA[
-<em><?php</em>
-echo 'Foo';
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DeprecatedFunctionsStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DeprecatedFunctionsStandard.xml
deleted file mode 100644
index 33b803a7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DeprecatedFunctionsStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Deprecated Functions">
- <standard>
- <![CDATA[
- Deprecated functions should not be used.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A non-deprecated function is used.">
- <![CDATA[
-$foo = <em>explode</em>('a', $bar);
- ]]>
- </code>
- <code title="Invalid: A deprecated function is used.">
- <![CDATA[
-$foo = <em>split</em>('a', $bar);
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowAlternativePHPTagsStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowAlternativePHPTagsStandard.xml
deleted file mode 100644
index bdfd5dc1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowAlternativePHPTagsStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="Alternative PHP Code Tags">
- <standard>
- <![CDATA[
- Always use <?php ?> to delimit PHP code, do not use the ASP <% %> style tags nor the <script language="php"></script> tags. This is the most portable way to include PHP code on differing operating systems and setups.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowShortOpenTagStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowShortOpenTagStandard.xml
deleted file mode 100644
index 8086ea27..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/DisallowShortOpenTagStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="PHP Code Tags">
- <standard>
- <![CDATA[
- Always use <?php ?> to delimit PHP code, not the <? ?> shorthand. This is the most portable way to include PHP code on differing operating systems and setups.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/ForbiddenFunctionsStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/ForbiddenFunctionsStandard.xml
deleted file mode 100644
index c0f18b55..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/ForbiddenFunctionsStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Forbidden Functions">
- <standard>
- <![CDATA[
- The forbidden functions sizeof() and delete() should not be used.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: count() is used in place of sizeof().">
- <![CDATA[
-$foo = <em>count</em>($bar);
- ]]>
- </code>
- <code title="Invalid: sizeof() is used.">
- <![CDATA[
-$foo = <em>sizeof</em>($bar);
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseConstantStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseConstantStandard.xml
deleted file mode 100644
index ab607c54..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseConstantStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="PHP Constants">
- <standard>
- <![CDATA[
- The <em>true</em>, <em>false</em> and <em>null</em> constants must always be lowercase.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: lowercase constants">
- <![CDATA[
-if ($var === <em>false</em> || $var === <em>null</em>) {
- $var = <em>true</em>;
-}
- ]]>
- </code>
- <code title="Invalid: uppercase constants">
- <![CDATA[
-if ($var === <em>FALSE</em> || $var === <em>NULL</em>) {
- $var = <em>TRUE</em>;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseKeywordStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseKeywordStandard.xml
deleted file mode 100644
index 965742d9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/LowerCaseKeywordStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Lowercase Keywords">
- <standard>
- <![CDATA[
- All PHP keywords should be lowercase.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Lowercase array keyword used.">
- <![CDATA[
-$foo = <em>array</em>();
- ]]>
- </code>
- <code title="Invalid: Non-lowercase array keyword used.">
- <![CDATA[
-$foo = <em>Array</em>();
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/NoSilencedErrorsStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/NoSilencedErrorsStandard.xml
deleted file mode 100644
index df698879..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/NoSilencedErrorsStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Silenced Errors">
- <standard>
- <![CDATA[
- Suppressing Errors is not allowed.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: isset() is used to verify that a variable exists before trying to use it.">
- <![CDATA[
-if (<em>isset($foo)</em> && $foo) {
- echo "Hello\n";
-}
- ]]>
- </code>
- <code title="Invalid: Errors are suppressed.">
- <![CDATA[
-if (<em>@</em>$foo) {
- echo "Hello\n";
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/SAPIUsageStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/SAPIUsageStandard.xml
deleted file mode 100644
index e74005ad..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/SAPIUsageStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="SAPI Usage">
- <standard>
- <![CDATA[
- The PHP_SAPI constant should be used instead of php_sapi_name().
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: PHP_SAPI is used.">
- <![CDATA[
-if (<em>PHP_SAPI</em> === 'cli') {
- echo "Hello, CLI user.";
-}
- ]]>
- </code>
- <code title="Invalid: php_sapi_name() is used.">
- <![CDATA[
-if (<em>php_sapi_name()</em> === 'cli') {
- echo "Hello, CLI user.";
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/UpperCaseConstantStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/UpperCaseConstantStandard.xml
deleted file mode 100644
index 26487347..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/PHP/UpperCaseConstantStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="PHP Constants">
- <standard>
- <![CDATA[
- The <em>true</em>, <em>false</em> and <em>null</em> constants must always be uppercase.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: uppercase constants">
- <![CDATA[
-if ($var === <em>FALSE</em> || $var === <em>NULL</em>) {
- $var = <em>TRUE</em>;
-}
- ]]>
- </code>
- <code title="Invalid: lowercase constants">
- <![CDATA[
-if ($var === <em>false</em> || $var === <em>null</em>) {
- $var = <em>true</em>;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Strings/UnnecessaryStringConcatStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Strings/UnnecessaryStringConcatStandard.xml
deleted file mode 100644
index a4c9887b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Strings/UnnecessaryStringConcatStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Unnecessary String Concatenation">
- <standard>
- <![CDATA[
- Strings should not be concatenated together.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A string can be concatenated with an expression.">
- <![CDATA[
-echo '5 + 2 = ' . (5 + 2);
- ]]>
- </code>
- <code title="Invalid: Strings should not be concatenated together.">
- <![CDATA[
-echo 'Hello' . ' ' . 'World';
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/VersionControl/SubversionPropertiesStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/VersionControl/SubversionPropertiesStandard.xml
deleted file mode 100644
index f4f3e19c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/VersionControl/SubversionPropertiesStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="Subversion Properties">
- <standard>
- <![CDATA[
- All php files in a subversion repository should have the svn:keywords property set to 'Author Id Revision' and the svn:eol-style property set to 'native'.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/DisallowSpaceIndentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/DisallowSpaceIndentStandard.xml
deleted file mode 100644
index 2e399b34..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/DisallowSpaceIndentStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="No Space Indentation">
- <standard>
- <![CDATA[
- Tabs should be used for indentation instead of spaces.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/DisallowTabIndentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/DisallowTabIndentStandard.xml
deleted file mode 100644
index 7013ffd9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/DisallowTabIndentStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="No Tab Indentation">
- <standard>
- <![CDATA[
- Spaces should be used for indentation instead of tabs.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/ScopeIndentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/ScopeIndentStandard.xml
deleted file mode 100644
index bdd36d49..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/ScopeIndentStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Scope Indentation">
- <standard>
- <![CDATA[
- Indentation for control structures, classes, and functions should be 4 spaces per level.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: 4 spaces are used to indent a control structure.">
- <![CDATA[
-if ($test) {
-<em> </em>$var = 1;
-}
- ]]>
- </code>
- <code title="Invalid: 8 spaces are used to indent a control structure.">
- <![CDATA[
-if ($test) {
-<em> </em>$var = 1;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowLongArraySyntaxSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowLongArraySyntaxSniff.php
deleted file mode 100644
index cf399259..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowLongArraySyntaxSniff.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
- * Bans the use of the PHP long array syntax.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowLongArraySyntaxSniff implements Sniff
-{
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_ARRAY);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $phpcsFile->recordMetric($stackPtr, 'Short array syntax used', 'no');
-
- $error = 'Short array syntax must be used to define arrays';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found');
-
- if ($fix === true) {
- $tokens = $phpcsFile->getTokens();
- $opener = $tokens[$stackPtr]['parenthesis_opener'];
- $closer = $tokens[$stackPtr]['parenthesis_closer'];
-
- $phpcsFile->fixer->beginChangeset();
-
- if ($opener === null) {
- $phpcsFile->fixer->replaceToken($stackPtr, '[]');
- } else {
- $phpcsFile->fixer->replaceToken($stackPtr, '');
- $phpcsFile->fixer->replaceToken($opener, '[');
- $phpcsFile->fixer->replaceToken($closer, ']');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowShortArraySyntaxSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowShortArraySyntaxSniff.php
deleted file mode 100644
index 54b0bfed..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/DisallowShortArraySyntaxSniff.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * Bans the use of the PHP short array syntax.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowShortArraySyntaxSniff implements Sniff
-{
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_SHORT_ARRAY);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $phpcsFile->recordMetric($stackPtr, 'Short array syntax used', 'yes');
-
- $error = 'Short array syntax is not allowed';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found');
-
- if ($fix === true) {
- $tokens = $phpcsFile->getTokens();
- $opener = $tokens[$stackPtr]['bracket_opener'];
- $closer = $tokens[$stackPtr]['bracket_closer'];
-
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($opener, 'array(');
- $phpcsFile->fixer->replaceToken($closer, ')');
- $phpcsFile->fixer->endChangeset();
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Classes/DuplicateClassNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Classes/DuplicateClassNameSniff.php
deleted file mode 100644
index aa204a64..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Classes/DuplicateClassNameSniff.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-/**
- * Reports errors if the same class or interface name is used in multiple files.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Classes;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DuplicateClassNameSniff implements Sniff
-{
-
- /**
- * List of classes that have been found during checking.
- *
- * @var array
- */
- protected $foundClasses = array();
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $namespace = '';
- $findTokens = array(
- T_CLASS,
- T_INTERFACE,
- T_NAMESPACE,
- T_CLOSE_TAG,
- );
-
- $stackPtr = $phpcsFile->findNext($findTokens, ($stackPtr + 1));
- while ($stackPtr !== false) {
- if ($tokens[$stackPtr]['code'] === T_CLOSE_TAG) {
- // We can stop here. The sniff will continue from the next open
- // tag when PHPCS reaches that token, if there is one.
- return;
- }
-
- // Keep track of what namespace we are in.
- if ($tokens[$stackPtr]['code'] === T_NAMESPACE) {
- $nsEnd = $phpcsFile->findNext(
- array(
- T_NS_SEPARATOR,
- T_STRING,
- T_WHITESPACE,
- ),
- ($stackPtr + 1),
- null,
- true
- );
-
- $namespace = trim($phpcsFile->getTokensAsString(($stackPtr + 1), ($nsEnd - $stackPtr - 1)));
- $stackPtr = $nsEnd;
- } else {
- $nameToken = $phpcsFile->findNext(T_STRING, $stackPtr);
- $name = $tokens[$nameToken]['content'];
- if ($namespace !== '') {
- $name = $namespace.'\\'.$name;
- }
-
- $compareName = strtolower($name);
- if (isset($this->foundClasses[$compareName]) === true) {
- $type = strtolower($tokens[$stackPtr]['content']);
- $file = $this->foundClasses[$compareName]['file'];
- $line = $this->foundClasses[$compareName]['line'];
- $error = 'Duplicate %s name "%s" found; first defined in %s on line %s';
- $data = array(
- $type,
- $name,
- $file,
- $line,
- );
- $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
- } else {
- $this->foundClasses[$compareName] = array(
- 'file' => $phpcsFile->getFilename(),
- 'line' => $tokens[$stackPtr]['line'],
- );
- }
- }//end if
-
- $stackPtr = $phpcsFile->findNext($findTokens, ($stackPtr + 1));
- }//end while
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Classes/OpeningBraceSameLineSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Classes/OpeningBraceSameLineSniff.php
deleted file mode 100644
index 39ca8f15..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Classes/OpeningBraceSameLineSniff.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-/**
- * Checks that the opening brace of a class/interface/trait is on the same line as the class declaration.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Classes;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class OpeningBraceSameLineSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $scopeIdentifier = $phpcsFile->findNext(T_STRING, ($stackPtr + 1));
- $errorData = array(strtolower($tokens[$stackPtr]['content']).' '.$tokens[$scopeIdentifier]['content']);
-
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- $error = 'Possible parse error: %s missing opening or closing brace';
- $phpcsFile->addWarning($error, $stackPtr, 'MissingBrace', $errorData);
- return;
- }
-
- $openingBrace = $tokens[$stackPtr]['scope_opener'];
-
- // Is the brace on the same line as the class/interface/trait declaration ?
- $lastClassLineToken = $phpcsFile->findPrevious(T_WHITESPACE, ($openingBrace - 1), $stackPtr, true);
- $lastClassLine = $tokens[$lastClassLineToken]['line'];
- $braceLine = $tokens[$openingBrace]['line'];
- $lineDifference = ($braceLine - $lastClassLine);
-
- if ($lineDifference > 0) {
- $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'new line');
- $error = 'Opening brace should be on the same line as the declaration for %s';
- $fix = $phpcsFile->addFixableError($error, $openingBrace, 'BraceOnNewLine', $errorData);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addContent($lastClassLineToken, ' {');
- $phpcsFile->fixer->replaceToken($openingBrace, '');
- $phpcsFile->fixer->endChangeset();
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'same line');
- }
-
- // Is the opening brace the last thing on the line ?
- $next = $phpcsFile->findNext(T_WHITESPACE, ($openingBrace + 1), null, true);
- if ($tokens[$next]['line'] === $tokens[$openingBrace]['line']) {
- if ($next === $tokens[$stackPtr]['scope_closer']) {
- // Ignore empty classes.
- return;
- }
-
- $error = 'Opening brace must be the last content on the line';
- $fix = $phpcsFile->addFixableError($error, $openingBrace, 'ContentAfterBrace');
- if ($fix === true) {
- $phpcsFile->fixer->addNewline($openingBrace);
- }
- }
-
- // Only continue checking if the opening brace looks good.
- if ($lineDifference > 0) {
- return;
- }
-
- // Is there precisely one space before the opening brace ?
- if ($tokens[($openingBrace - 1)]['code'] !== T_WHITESPACE) {
- $length = 0;
- } else if ($tokens[($openingBrace - 1)]['content'] === "\t") {
- $length = '\t';
- } else {
- $length = strlen($tokens[($openingBrace - 1)]['content']);
- }
-
- if ($length !== 1) {
- $error = 'Expected 1 space before opening brace; found %s';
- $data = array($length);
- $fix = $phpcsFile->addFixableError($error, $openingBrace, 'SpaceBeforeBrace', $data);
- if ($fix === true) {
- if ($length === 0 || $length === '\t') {
- $phpcsFile->fixer->addContentBefore($openingBrace, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($openingBrace - 1), ' ');
- }
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/EmptyStatementSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/EmptyStatementSniff.php
deleted file mode 100644
index 772c7061..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/EmptyStatementSniff.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-/**
- * This sniff class detected empty statement.
- *
- * This sniff implements the common algorithm for empty statement body detection.
- * A body is considered as empty if it is completely empty or it only contains
- * whitespace characters and/or comments.
- *
- * <code>
- * stmt {
- * // foo
- * }
- * stmt (conditions) {
- * // foo
- * }
- * </code>
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class EmptyStatementSniff implements Sniff
-{
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(
- T_CATCH,
- T_DO,
- T_ELSE,
- T_ELSEIF,
- T_FOR,
- T_FOREACH,
- T_IF,
- T_SWITCH,
- T_TRY,
- T_WHILE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- // Skip statements without a body.
- if (isset($token['scope_opener']) === false) {
- return;
- }
-
- $next = $phpcsFile->findNext(
- Tokens::$emptyTokens,
- ($token['scope_opener'] + 1),
- ($token['scope_closer'] - 1),
- true
- );
-
- if ($next !== false) {
- return;
- }
-
- // Get token identifier.
- $name = strtoupper($token['content']);
- $error = 'Empty %s statement detected';
- $phpcsFile->addError($error, $stackPtr, 'Detected'.$name, array($name));
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopShouldBeWhileLoopSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopShouldBeWhileLoopSniff.php
deleted file mode 100644
index bfe59fd4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopShouldBeWhileLoopSniff.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-/**
- * Detects for-loops that can be simplified to a while-loop.
- *
- * This rule is based on the PMD rule catalog. Detects for-loops that can be
- * simplified as a while-loop.
- *
- * <code>
- * class Foo
- * {
- * public function bar($x)
- * {
- * for (;true;) true; // No Init or Update part, may as well be: while (true)
- * }
- * }
- * </code>
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ForLoopShouldBeWhileLoopSniff implements Sniff
-{
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_FOR);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- // Skip invalid statement.
- if (isset($token['parenthesis_opener']) === false) {
- return;
- }
-
- $next = ++$token['parenthesis_opener'];
- $end = --$token['parenthesis_closer'];
-
- $parts = array(
- 0,
- 0,
- 0,
- );
- $index = 0;
-
- for (; $next <= $end; ++$next) {
- $code = $tokens[$next]['code'];
- if ($code === T_SEMICOLON) {
- ++$index;
- } else if (isset(Tokens::$emptyTokens[$code]) === false) {
- ++$parts[$index];
- }
- }
-
- if ($parts[0] === 0 && $parts[2] === 0 && $parts[1] > 0) {
- $error = 'This FOR loop can be simplified to a WHILE loop';
- $phpcsFile->addWarning($error, $stackPtr, 'CanSimplify');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopWithTestFunctionCallSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopWithTestFunctionCallSniff.php
deleted file mode 100644
index 88459191..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/ForLoopWithTestFunctionCallSniff.php
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-/**
- * Detects for-loops that use a function call in the test expression.
- *
- * This rule is based on the PMD rule catalog. Detects for-loops that use a
- * function call in the test expression.
- *
- * <code>
- * class Foo
- * {
- * public function bar($x)
- * {
- * $a = array(1, 2, 3, 4);
- * for ($i = 0; $i < count($a); $i++) {
- * $a[$i] *= $i;
- * }
- * }
- * }
- * </code>
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ForLoopWithTestFunctionCallSniff implements Sniff
-{
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_FOR);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- // Skip invalid statement.
- if (isset($token['parenthesis_opener']) === false) {
- return;
- }
-
- $next = ++$token['parenthesis_opener'];
- $end = --$token['parenthesis_closer'];
-
- $position = 0;
-
- for (; $next <= $end; ++$next) {
- $code = $tokens[$next]['code'];
- if ($code === T_SEMICOLON) {
- ++$position;
- }
-
- if ($position < 1) {
- continue;
- } else if ($position > 1) {
- break;
- } else if ($code !== T_VARIABLE && $code !== T_STRING) {
- continue;
- }
-
- // Find next non empty token, if it is a open curly brace we have a
- // function call.
- $index = $phpcsFile->findNext(Tokens::$emptyTokens, ($next + 1), null, true);
-
- if ($tokens[$index]['code'] === T_OPEN_PARENTHESIS) {
- $error = 'Avoid function calls in a FOR loop test part';
- $phpcsFile->addWarning($error, $stackPtr, 'NotAllowed');
- break;
- }
- }//end for
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/JumbledIncrementerSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/JumbledIncrementerSniff.php
deleted file mode 100644
index 4877c9b6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/JumbledIncrementerSniff.php
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-/**
- * Detects incrementer jumbling in for loops.
- *
- * This rule is based on the PMD rule catalog. The jumbling incrementer sniff
- * detects the usage of one and the same incrementer into an outer and an inner
- * loop. Even it is intended this is confusing code.
- *
- * <code>
- * class Foo
- * {
- * public function bar($x)
- * {
- * for ($i = 0; $i < 10; $i++)
- * {
- * for ($k = 0; $k < 20; $i++)
- * {
- * echo 'Hello';
- * }
- * }
- * }
- * }
- * </code>
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class JumbledIncrementerSniff implements Sniff
-{
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_FOR);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- // Skip for-loop without body.
- if (isset($token['scope_opener']) === false) {
- return;
- }
-
- // Find incrementors for outer loop.
- $outer = $this->findIncrementers($tokens, $token);
-
- // Skip if empty.
- if (count($outer) === 0) {
- return;
- }
-
- // Find nested for loops.
- $start = ++$token['scope_opener'];
- $end = --$token['scope_closer'];
-
- for (; $start <= $end; ++$start) {
- if ($tokens[$start]['code'] !== T_FOR) {
- continue;
- }
-
- $inner = $this->findIncrementers($tokens, $tokens[$start]);
- $diff = array_intersect($outer, $inner);
-
- if (count($diff) !== 0) {
- $error = 'Loop incrementor (%s) jumbling with inner loop';
- $data = array(join(', ', $diff));
- $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
- }
- }
-
- }//end process()
-
-
- /**
- * Get all used variables in the incrementer part of a for statement.
- *
- * @param array(integer=>array) $tokens Array with all code sniffer tokens.
- * @param array(string=>mixed) $token Current for loop token
- *
- * @return string[] List of all found incrementer variables.
- */
- protected function findIncrementers(array $tokens, array $token)
- {
- // Skip invalid statement.
- if (isset($token['parenthesis_opener']) === false) {
- return array();
- }
-
- $start = ++$token['parenthesis_opener'];
- $end = --$token['parenthesis_closer'];
-
- $incrementers = array();
- $semicolons = 0;
- for ($next = $start; $next <= $end; ++$next) {
- $code = $tokens[$next]['code'];
- if ($code === T_SEMICOLON) {
- ++$semicolons;
- } else if ($semicolons === 2 && $code === T_VARIABLE) {
- $incrementers[] = $tokens[$next]['content'];
- }
- }
-
- return $incrementers;
-
- }//end findIncrementers()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnconditionalIfStatementSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnconditionalIfStatementSniff.php
deleted file mode 100644
index a381985d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnconditionalIfStatementSniff.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-/**
- * Detects unconditional if- and elseif-statements.
- *
- * This rule is based on the PMD rule catalog. The Unconditional If Statement
- * sniff detects statement conditions that are only set to one of the constant
- * values <b>true</b> or <b>false</b>
- *
- * <code>
- * class Foo
- * {
- * public function close()
- * {
- * if (true)
- * {
- * // ...
- * }
- * }
- * }
- * </code>
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class UnconditionalIfStatementSniff implements Sniff
-{
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(
- T_IF,
- T_ELSEIF,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- // Skip for-loop without body.
- if (isset($token['parenthesis_opener']) === false) {
- return;
- }
-
- $next = ++$token['parenthesis_opener'];
- $end = --$token['parenthesis_closer'];
-
- $goodCondition = false;
- for (; $next <= $end; ++$next) {
- $code = $tokens[$next]['code'];
-
- if (isset(Tokens::$emptyTokens[$code]) === true) {
- continue;
- } else if ($code !== T_TRUE && $code !== T_FALSE) {
- $goodCondition = true;
- }
- }
-
- if ($goodCondition === false) {
- $error = 'Avoid IF statements that are always true or false';
- $phpcsFile->addWarning($error, $stackPtr, 'Found');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnnecessaryFinalModifierSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnnecessaryFinalModifierSniff.php
deleted file mode 100644
index 862e32ed..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnnecessaryFinalModifierSniff.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-/**
- * Detects unnecessary final modifiers inside of final classes.
- *
- * This rule is based on the PMD rule catalog. The Unnecessary Final Modifier
- * sniff detects the use of the final modifier inside of a final class which
- * is unnecessary.
- *
- * <code>
- * final class Foo
- * {
- * public final function bar()
- * {
- * }
- * }
- * </code>
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class UnnecessaryFinalModifierSniff implements Sniff
-{
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_CLASS);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- // Skip for-statements without body.
- if (isset($token['scope_opener']) === false) {
- return;
- }
-
- // Fetch previous token.
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
-
- // Skip for non final class.
- if ($prev === false || $tokens[$prev]['code'] !== T_FINAL) {
- return;
- }
-
- $next = ++$token['scope_opener'];
- $end = --$token['scope_closer'];
-
- for (; $next <= $end; ++$next) {
- if ($tokens[$next]['code'] === T_FINAL) {
- $error = 'Unnecessary FINAL modifier in FINAL class';
- $phpcsFile->addWarning($error, $next, 'Found');
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnusedFunctionParameterSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnusedFunctionParameterSniff.php
deleted file mode 100644
index eb2719c6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UnusedFunctionParameterSniff.php
+++ /dev/null
@@ -1,176 +0,0 @@
-<?php
-/**
- * Checks the for unused function parameters.
- *
- * This sniff checks that all function parameters are used in the function body.
- * One exception is made for empty function bodies or function bodies that only
- * contain comments. This could be useful for the classes that implement an
- * interface that defines multiple methods but the implementation only needs some
- * of them.
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class UnusedFunctionParameterSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_CLOSURE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- // Skip broken function declarations.
- if (isset($token['scope_opener']) === false || isset($token['parenthesis_opener']) === false) {
- return;
- }
-
- $params = array();
- foreach ($phpcsFile->getMethodParameters($stackPtr) as $param) {
- $params[$param['name']] = $stackPtr;
- }
-
- $next = ++$token['scope_opener'];
- $end = --$token['scope_closer'];
-
- $foundContent = false;
- $validTokens = array(
- T_HEREDOC => T_HEREDOC,
- T_NOWDOC => T_NOWDOC,
- T_END_HEREDOC => T_END_HEREDOC,
- T_END_NOWDOC => T_END_NOWDOC,
- T_DOUBLE_QUOTED_STRING => T_DOUBLE_QUOTED_STRING,
- );
- $validTokens += Tokens::$emptyTokens;
-
- for (; $next <= $end; ++$next) {
- $token = $tokens[$next];
- $code = $token['code'];
-
- // Ignorable tokens.
- if (isset(Tokens::$emptyTokens[$code]) === true) {
- continue;
- }
-
- if ($foundContent === false) {
- // A throw statement as the first content indicates an interface method.
- if ($code === T_THROW) {
- return;
- }
-
- // A return statement as the first content indicates an interface method.
- if ($code === T_RETURN) {
- $tmp = $phpcsFile->findNext(Tokens::$emptyTokens, ($next + 1), null, true);
- if ($tmp === false) {
- return;
- }
-
- // There is a return.
- if ($tokens[$tmp]['code'] === T_SEMICOLON) {
- return;
- }
-
- $tmp = $phpcsFile->findNext(Tokens::$emptyTokens, ($tmp + 1), null, true);
- if ($tmp !== false && $tokens[$tmp]['code'] === T_SEMICOLON) {
- // There is a return <token>.
- return;
- }
- }//end if
- }//end if
-
- $foundContent = true;
-
- if ($code === T_VARIABLE && isset($params[$token['content']]) === true) {
- unset($params[$token['content']]);
- } else if ($code === T_DOLLAR) {
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($next + 1), null, true);
- if ($tokens[$nextToken]['code'] === T_OPEN_CURLY_BRACKET) {
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($nextToken + 1), null, true);
- if ($tokens[$nextToken]['code'] === T_STRING) {
- $varContent = '$'.$tokens[$nextToken]['content'];
- if (isset($params[$varContent]) === true) {
- unset($params[$varContent]);
- }
- }
- }
- } else if ($code === T_DOUBLE_QUOTED_STRING
- || $code === T_START_HEREDOC
- || $code === T_START_NOWDOC
- ) {
- // Tokenize strings that can contain variables.
- // Make sure the string is re-joined if it occurs over multiple lines.
- $content = $token['content'];
- for ($i = ($next + 1); $i <= $end; $i++) {
- if (isset($validTokens[$tokens[$i]['code']]) === true) {
- $content .= $tokens[$i]['content'];
- $next++;
- } else {
- break;
- }
- }
-
- $stringTokens = token_get_all(sprintf('<?php %s;?>', $content));
- foreach ($stringTokens as $stringPtr => $stringToken) {
- if (is_array($stringToken) === false) {
- continue;
- }
-
- $varContent = '';
- if ($stringToken[0] === T_DOLLAR_OPEN_CURLY_BRACES) {
- $varContent = '$'.$stringTokens[($stringPtr + 1)][1];
- } else if ($stringToken[0] === T_VARIABLE) {
- $varContent = $stringToken[1];
- }
-
- if ($varContent !== '' && isset($params[$varContent]) === true) {
- unset($params[$varContent]);
- }
- }
- }//end if
- }//end for
-
- if ($foundContent === true && count($params) > 0) {
- foreach ($params as $paramName => $position) {
- $error = 'The method parameter %s is never used';
- $data = array($paramName);
- $phpcsFile->addWarning($error, $position, 'Found', $data);
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UselessOverridingMethodSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UselessOverridingMethodSniff.php
deleted file mode 100644
index 06f50f86..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/UselessOverridingMethodSniff.php
+++ /dev/null
@@ -1,161 +0,0 @@
-<?php
-/**
- * Detects unnecessary overridden methods that simply call their parent.
- *
- * This rule is based on the PMD rule catalog. The Useless Overriding Method
- * sniff detects the use of methods that only call their parent classes's method
- * with the same name and arguments. These methods are not required.
- *
- * <code>
- * class FooBar {
- * public function __construct($a, $b) {
- * parent::__construct($a, $b);
- * }
- * }
- * </code>
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class UselessOverridingMethodSniff implements Sniff
-{
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_FUNCTION);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- // Skip function without body.
- if (isset($token['scope_opener']) === false) {
- return;
- }
-
- // Get function name.
- $methodName = $phpcsFile->getDeclarationName($stackPtr);
-
- // Get all parameters from method signature.
- $signature = array();
- foreach ($phpcsFile->getMethodParameters($stackPtr) as $param) {
- $signature[] = $param['name'];
- }
-
- $next = ++$token['scope_opener'];
- $end = --$token['scope_closer'];
-
- for (; $next <= $end; ++$next) {
- $code = $tokens[$next]['code'];
-
- if (isset(Tokens::$emptyTokens[$code]) === true) {
- continue;
- } else if ($code === T_RETURN) {
- continue;
- }
-
- break;
- }
-
- // Any token except 'parent' indicates correct code.
- if ($tokens[$next]['code'] !== T_PARENT) {
- return;
- }
-
- // Find next non empty token index, should be double colon.
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($next + 1), null, true);
-
- // Skip for invalid code.
- if ($next === false || $tokens[$next]['code'] !== T_DOUBLE_COLON) {
- return;
- }
-
- // Find next non empty token index, should be the function name.
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($next + 1), null, true);
-
- // Skip for invalid code or other method.
- if ($next === false || $tokens[$next]['content'] !== $methodName) {
- return;
- }
-
- // Find next non empty token index, should be the open parenthesis.
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($next + 1), null, true);
-
- // Skip for invalid code.
- if ($next === false || $tokens[$next]['code'] !== T_OPEN_PARENTHESIS) {
- return;
- }
-
- $parameters = array('');
- $parenthesisCount = 1;
- $count = count($tokens);
- for (++$next; $next < $count; ++$next) {
- $code = $tokens[$next]['code'];
-
- if ($code === T_OPEN_PARENTHESIS) {
- ++$parenthesisCount;
- } else if ($code === T_CLOSE_PARENTHESIS) {
- --$parenthesisCount;
- } else if ($parenthesisCount === 1 && $code === T_COMMA) {
- $parameters[] = '';
- } else if (isset(Tokens::$emptyTokens[$code]) === false) {
- $parameters[(count($parameters) - 1)] .= $tokens[$next]['content'];
- }
-
- if ($parenthesisCount === 0) {
- break;
- }
- }//end for
-
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($next + 1), null, true);
- if ($next === false || $tokens[$next]['code'] !== T_SEMICOLON) {
- return;
- }
-
- // Check rest of the scope.
- for (++$next; $next <= $end; ++$next) {
- $code = $tokens[$next]['code'];
- // Skip for any other content.
- if (isset(Tokens::$emptyTokens[$code]) === false) {
- return;
- }
- }
-
- $parameters = array_map('trim', $parameters);
- $parameters = array_filter($parameters);
-
- if (count($parameters) === count($signature) && $parameters === $signature) {
- $phpcsFile->addWarning('Possible useless method overriding detected', $stackPtr, 'Found');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/DocCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/DocCommentSniff.php
deleted file mode 100644
index 6fddeeec..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/DocCommentSniff.php
+++ /dev/null
@@ -1,339 +0,0 @@
-<?php
-/**
- * Ensures doc blocks follow basic formatting.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DocCommentSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_DOC_COMMENT_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $commentStart = $stackPtr;
- $commentEnd = $tokens[$stackPtr]['comment_closer'];
-
- $empty = array(
- T_DOC_COMMENT_WHITESPACE,
- T_DOC_COMMENT_STAR,
- );
-
- $short = $phpcsFile->findNext($empty, ($stackPtr + 1), $commentEnd, true);
- if ($short === false) {
- // No content at all.
- $error = 'Doc comment is empty';
- $phpcsFile->addError($error, $stackPtr, 'Empty');
- return;
- }
-
- // The first line of the comment should just be the /** code.
- if ($tokens[$short]['line'] === $tokens[$stackPtr]['line']) {
- $error = 'The open comment tag must be the only content on the line';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContentAfterOpen');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addNewline($stackPtr);
- $phpcsFile->fixer->addContentBefore($short, '* ');
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- // The last line of the comment should just be the */ code.
- $prev = $phpcsFile->findPrevious($empty, ($commentEnd - 1), $stackPtr, true);
- if ($tokens[$prev]['line'] === $tokens[$commentEnd]['line']) {
- $error = 'The close comment tag must be the only content on the line';
- $fix = $phpcsFile->addFixableError($error, $commentEnd, 'ContentBeforeClose');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($commentEnd);
- }
- }
-
- // Check for additional blank lines at the end of the comment.
- if ($tokens[$prev]['line'] < ($tokens[$commentEnd]['line'] - 1)) {
- $error = 'Additional blank lines found at end of doc comment';
- $fix = $phpcsFile->addFixableError($error, $commentEnd, 'SpacingAfter');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prev + 1); $i < $commentEnd; $i++) {
- if ($tokens[($i + 1)]['line'] === $tokens[$commentEnd]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- // Check for a comment description.
- if ($tokens[$short]['code'] !== T_DOC_COMMENT_STRING) {
- $error = 'Missing short description in doc comment';
- $phpcsFile->addError($error, $stackPtr, 'MissingShort');
- return;
- }
-
- // No extra newline before short description.
- if ($tokens[$short]['line'] !== ($tokens[$stackPtr]['line'] + 1)) {
- $error = 'Doc comment short description must be on the first line';
- $fix = $phpcsFile->addFixableError($error, $short, 'SpacingBeforeShort');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = $stackPtr; $i < $short; $i++) {
- if ($tokens[$i]['line'] === $tokens[$stackPtr]['line']) {
- continue;
- } else if ($tokens[$i]['line'] === $tokens[$short]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- // Account for the fact that a short description might cover
- // multiple lines.
- $shortContent = $tokens[$short]['content'];
- $shortEnd = $short;
- for ($i = ($short + 1); $i < $commentEnd; $i++) {
- if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) {
- if ($tokens[$i]['line'] === ($tokens[$shortEnd]['line'] + 1)) {
- $shortContent .= $tokens[$i]['content'];
- $shortEnd = $i;
- } else {
- break;
- }
- }
- }
-
- if (preg_match('/^\p{Ll}/u', $shortContent) === 1) {
- $error = 'Doc comment short description must start with a capital letter';
- $phpcsFile->addError($error, $short, 'ShortNotCapital');
- }
-
- $long = $phpcsFile->findNext($empty, ($shortEnd + 1), ($commentEnd - 1), true);
- if ($long !== false && $tokens[$long]['code'] === T_DOC_COMMENT_STRING) {
- if ($tokens[$long]['line'] !== ($tokens[$shortEnd]['line'] + 2)) {
- $error = 'There must be exactly one blank line between descriptions in a doc comment';
- $fix = $phpcsFile->addFixableError($error, $long, 'SpacingBetween');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($shortEnd + 1); $i < $long; $i++) {
- if ($tokens[$i]['line'] === $tokens[$shortEnd]['line']) {
- continue;
- } else if ($tokens[$i]['line'] === ($tokens[$long]['line'] - 1)) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- if (preg_match('/^\p{Ll}/u', $tokens[$long]['content']) === 1) {
- $error = 'Doc comment long description must start with a capital letter';
- $phpcsFile->addError($error, $long, 'LongNotCapital');
- }
- }//end if
-
- if (empty($tokens[$commentStart]['comment_tags']) === true) {
- // No tags in the comment.
- return;
- }
-
- $firstTag = $tokens[$commentStart]['comment_tags'][0];
- $prev = $phpcsFile->findPrevious($empty, ($firstTag - 1), $stackPtr, true);
- if ($tokens[$firstTag]['line'] !== ($tokens[$prev]['line'] + 2)) {
- $error = 'There must be exactly one blank line before the tags in a doc comment';
- $fix = $phpcsFile->addFixableError($error, $firstTag, 'SpacingBeforeTags');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prev + 1); $i < $firstTag; $i++) {
- if ($tokens[$i]['line'] === $tokens[$firstTag]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $indent = str_repeat(' ', $tokens[$stackPtr]['column']);
- $phpcsFile->fixer->addContent($prev, $phpcsFile->eolChar.$indent.'*'.$phpcsFile->eolChar);
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- // Break out the tags into groups and check alignment within each.
- // A tag group is one where there are no blank lines between tags.
- // The param tag group is special as it requires all @param tags to be inside.
- $tagGroups = array();
- $groupid = 0;
- $paramGroupid = null;
- foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
- if ($pos > 0) {
- $prev = $phpcsFile->findPrevious(
- T_DOC_COMMENT_STRING,
- ($tag - 1),
- $tokens[$commentStart]['comment_tags'][($pos - 1)]
- );
-
- if ($prev === false) {
- $prev = $tokens[$commentStart]['comment_tags'][($pos - 1)];
- }
-
- if ($tokens[$prev]['line'] !== ($tokens[$tag]['line'] - 1)) {
- $groupid++;
- }
- }
-
- if ($tokens[$tag]['content'] === '@param') {
- if (($paramGroupid === null
- && empty($tagGroups[$groupid]) === false)
- || ($paramGroupid !== null
- && $paramGroupid !== $groupid)
- ) {
- $error = 'Parameter tags must be grouped together in a doc comment';
- $phpcsFile->addError($error, $tag, 'ParamGroup');
- }
-
- if ($paramGroupid === null) {
- $paramGroupid = $groupid;
- }
- } else if ($groupid === $paramGroupid) {
- $error = 'Tag cannot be grouped with parameter tags in a doc comment';
- $phpcsFile->addError($error, $tag, 'NonParamGroup');
- }//end if
-
- $tagGroups[$groupid][] = $tag;
- }//end foreach
-
- foreach ($tagGroups as $group) {
- $maxLength = 0;
- $paddings = array();
- foreach ($group as $pos => $tag) {
- $tagLength = strlen($tokens[$tag]['content']);
- if ($tagLength > $maxLength) {
- $maxLength = $tagLength;
- }
-
- // Check for a value. No value means no padding needed.
- $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $tag, $commentEnd);
- if ($string !== false && $tokens[$string]['line'] === $tokens[$tag]['line']) {
- $paddings[$tag] = strlen($tokens[($tag + 1)]['content']);
- }
- }
-
- // Check that there was single blank line after the tag block
- // but account for a multi-line tag comments.
- $lastTag = $group[$pos];
- $next = $phpcsFile->findNext(T_DOC_COMMENT_TAG, ($lastTag + 3), $commentEnd);
- if ($next !== false) {
- $prev = $phpcsFile->findPrevious(array(T_DOC_COMMENT_TAG, T_DOC_COMMENT_STRING), ($next - 1), $commentStart);
- if ($tokens[$next]['line'] !== ($tokens[$prev]['line'] + 2)) {
- $error = 'There must be a single blank line after a tag group';
- $fix = $phpcsFile->addFixableError($error, $lastTag, 'SpacingAfterTagGroup');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prev + 1); $i < $next; $i++) {
- if ($tokens[$i]['line'] === $tokens[$next]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $indent = str_repeat(' ', $tokens[$stackPtr]['column']);
- $phpcsFile->fixer->addContent($prev, $phpcsFile->eolChar.$indent.'*'.$phpcsFile->eolChar);
- $phpcsFile->fixer->endChangeset();
- }
- }
- }//end if
-
- // Now check paddings.
- foreach ($paddings as $tag => $padding) {
- $required = ($maxLength - strlen($tokens[$tag]['content']) + 1);
-
- if ($padding !== $required) {
- $error = 'Tag value indented incorrectly; expected %s spaces but found %s';
- $data = array(
- $required,
- $padding,
- );
-
- $fix = $phpcsFile->addFixableError($error, ($tag + 1), 'TagValueIndent', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($tag + 1), str_repeat(' ', $required));
- }
- }
- }
- }//end foreach
-
- // If there is a param group, it needs to be first.
- if ($paramGroupid !== null && $paramGroupid !== 0) {
- $error = 'Parameter tags must be defined first in a doc comment';
- $phpcsFile->addError($error, $tagGroups[$paramGroupid][0], 'ParamNotFirst');
- }
-
- $foundTags = array();
- foreach ($tokens[$stackPtr]['comment_tags'] as $pos => $tag) {
- $tagName = $tokens[$tag]['content'];
- if (isset($foundTags[$tagName]) === true) {
- $lastTag = $tokens[$stackPtr]['comment_tags'][($pos - 1)];
- if ($tokens[$lastTag]['content'] !== $tagName) {
- $error = 'Tags must be grouped together in a doc comment';
- $phpcsFile->addError($error, $tag, 'TagsNotGrouped');
- }
-
- continue;
- }
-
- $foundTags[$tagName] = true;
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/FixmeSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/FixmeSniff.php
deleted file mode 100644
index 2d2ad401..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/FixmeSniff.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/**
- * Warns about FIXME comments.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Sam Graham <php-codesniffer@illusori.co.uk>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class FixmeSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return Tokens::$commentTokens;
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $content = $tokens[$stackPtr]['content'];
- $matches = array();
- preg_match('/(?:\A|[^\p{L}]+)fixme([^\p{L}]+(.*)|\Z)/ui', $content, $matches);
- if (empty($matches) === false) {
- // Clear whitespace and some common characters not required at
- // the end of a fixme message to make the error more informative.
- $type = 'CommentFound';
- $fixmeMessage = trim($matches[1]);
- $fixmeMessage = trim($fixmeMessage, '-:[](). ');
- $error = 'Comment refers to a FIXME task';
- $data = array($fixmeMessage);
- if ($fixmeMessage !== '') {
- $type = 'TaskFound';
- $error .= ' "%s"';
- }
-
- $phpcsFile->addError($error, $stackPtr, $type, $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/TodoSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/TodoSniff.php
deleted file mode 100644
index 41746cc9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/TodoSniff.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/**
- * Warns about TODO comments.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class TodoSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return Tokens::$commentTokens;
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $content = $tokens[$stackPtr]['content'];
- $matches = array();
- preg_match('/(?:\A|[^\p{L}]+)todo([^\p{L}]+(.*)|\Z)/ui', $content, $matches);
- if (empty($matches) === false) {
- // Clear whitespace and some common characters not required at
- // the end of a to-do message to make the warning more informative.
- $type = 'CommentFound';
- $todoMessage = trim($matches[1]);
- $todoMessage = trim($todoMessage, '-:[](). ');
- $error = 'Comment refers to a TODO task';
- $data = array($todoMessage);
- if ($todoMessage !== '') {
- $type = 'TaskFound';
- $error .= ' "%s"';
- }
-
- $phpcsFile->addWarning($error, $stackPtr, $type, $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php
deleted file mode 100644
index 22578498..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php
+++ /dev/null
@@ -1,302 +0,0 @@
-<?php
-/**
- * Verifies that inline control statements are not present.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class InlineControlStructureSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * If true, an error will be thrown; otherwise a warning.
- *
- * @var boolean
- */
- public $error = true;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_IF,
- T_ELSE,
- T_ELSEIF,
- T_FOREACH,
- T_WHILE,
- T_DO,
- T_SWITCH,
- T_FOR,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['scope_opener']) === true) {
- $phpcsFile->recordMetric($stackPtr, 'Control structure defined inline', 'no');
- return;
- }
-
- // Ignore the ELSE in ELSE IF. We'll process the IF part later.
- if ($tokens[$stackPtr]['code'] === T_ELSE) {
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$next]['code'] === T_IF) {
- return;
- }
- }
-
- if ($tokens[$stackPtr]['code'] === T_WHILE) {
- // This could be from a DO WHILE, which doesn't have an opening brace.
- $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$lastContent]['code'] === T_CLOSE_CURLY_BRACKET) {
- $brace = $tokens[$lastContent];
- if (isset($brace['scope_condition']) === true) {
- $condition = $tokens[$brace['scope_condition']];
- if ($condition['code'] === T_DO) {
- return;
- }
- }
- }
-
- // In Javascript DO WHILE loops without curly braces are legal. This
- // is only valid if a single statement is present between the DO and
- // the WHILE. We can detect this by checking only a single semicolon
- // is present between them.
- if ($phpcsFile->tokenizerType === 'JS') {
- $lastDo = $phpcsFile->findPrevious(T_DO, ($stackPtr - 1));
- $lastSemicolon = $phpcsFile->findPrevious(T_SEMICOLON, ($stackPtr - 1));
- if ($lastDo !== false && $lastSemicolon !== false && $lastDo < $lastSemicolon) {
- $precedingSemicolon = $phpcsFile->findPrevious(T_SEMICOLON, ($lastSemicolon - 1));
- if ($precedingSemicolon === false || $precedingSemicolon < $lastDo) {
- return;
- }
- }
- }
- }//end if
-
- // This is a control structure without an opening brace,
- // so it is an inline statement.
- if ($this->error === true) {
- $fix = $phpcsFile->addFixableError('Inline control structures are not allowed', $stackPtr, 'NotAllowed');
- } else {
- $fix = $phpcsFile->addFixableWarning('Inline control structures are discouraged', $stackPtr, 'Discouraged');
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Control structure defined inline', 'yes');
-
- // Stop here if we are not fixing the error.
- if ($fix !== true) {
- return;
- }
-
- $phpcsFile->fixer->beginChangeset();
- if (isset($tokens[$stackPtr]['parenthesis_closer']) === true) {
- $closer = $tokens[$stackPtr]['parenthesis_closer'];
- } else {
- $closer = $stackPtr;
- }
-
- if ($tokens[($closer + 1)]['code'] === T_WHITESPACE
- || $tokens[($closer + 1)]['code'] === T_SEMICOLON
- ) {
- $phpcsFile->fixer->addContent($closer, ' {');
- } else {
- $phpcsFile->fixer->addContent($closer, ' { ');
- }
-
- $fixableScopeOpeners = $this->register();
-
- $lastNonEmpty = $closer;
- for ($end = ($closer + 1); $end < $phpcsFile->numTokens; $end++) {
- if ($tokens[$end]['code'] === T_SEMICOLON) {
- break;
- }
-
- if ($tokens[$end]['code'] === T_CLOSE_TAG) {
- $end = $lastNonEmpty;
- break;
- }
-
- if (in_array($tokens[$end]['code'], $fixableScopeOpeners) === true
- && isset($tokens[$end]['scope_opener']) === false
- ) {
- // The best way to fix nested inline scopes is middle-out.
- // So skip this one. It will be detected and fixed on a future loop.
- $phpcsFile->fixer->rollbackChangeset();
- return;
- }
-
- if (isset($tokens[$end]['scope_opener']) === true) {
- $type = $tokens[$end]['code'];
- $end = $tokens[$end]['scope_closer'];
- if ($type === T_DO || $type === T_IF || $type === T_ELSEIF || $type === T_TRY) {
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($end + 1), null, true);
- if ($next === false) {
- break;
- }
-
- $nextType = $tokens[$next]['code'];
-
- // Let additional conditions loop and find their ending.
- if (($type === T_IF
- || $type === T_ELSEIF)
- && ($nextType === T_ELSEIF
- || $nextType === T_ELSE)
- ) {
- continue;
- }
-
- // Account for DO... WHILE conditions.
- if ($type === T_DO && $nextType === T_WHILE) {
- $end = $phpcsFile->findNext(T_SEMICOLON, ($next + 1));
- }
-
- // Account for TRY... CATCH statements.
- if ($type === T_TRY && $nextType === T_CATCH) {
- $end = $tokens[$next]['scope_closer'];
- }
- }//end if
-
- if ($tokens[$end]['code'] !== T_END_HEREDOC
- && $tokens[$end]['code'] !== T_END_NOWDOC
- ) {
- break;
- }
- }//end if
-
- if (isset($tokens[$end]['parenthesis_closer']) === true) {
- $end = $tokens[$end]['parenthesis_closer'];
- $lastNonEmpty = $end;
- continue;
- }
-
- if ($tokens[$end]['code'] !== T_WHITESPACE) {
- $lastNonEmpty = $end;
- }
- }//end for
-
- if ($end === $phpcsFile->numTokens) {
- $end = $lastNonEmpty;
- }
-
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($end + 1), null, true);
-
- if ($next === false || $tokens[$next]['line'] !== $tokens[$end]['line']) {
- // Looks for completely empty statements.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($closer + 1), ($end + 1), true);
-
- // Account for a comment on the end of the line.
- for ($endLine = $end; $endLine < $phpcsFile->numTokens; $endLine++) {
- if (isset($tokens[($endLine + 1)]) === false
- || $tokens[$endLine]['line'] !== $tokens[($endLine + 1)]['line']
- ) {
- break;
- }
- }
-
- if ($tokens[$endLine]['code'] !== T_COMMENT) {
- $endLine = $end;
- }
- } else {
- $next = ($end + 1);
- $endLine = $end;
- }
-
- if ($next !== $end) {
- if ($endLine !== $end) {
- $endToken = $endLine;
- $addedContent = '';
- } else {
- $endToken = $end;
- $addedContent = $phpcsFile->eolChar;
-
- if ($tokens[$end]['code'] !== T_SEMICOLON
- && $tokens[$end]['code'] !== T_CLOSE_CURLY_BRACKET
- ) {
- $phpcsFile->fixer->addContent($end, '; ');
- }
- }
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($endToken + 1), null, true);
- if ($next !== false
- && ($tokens[$next]['code'] === T_ELSE
- || $tokens[$next]['code'] === T_ELSEIF)
- ) {
- $phpcsFile->fixer->addContentBefore($next, '} ');
- } else {
- $indent = '';
- for ($first = $stackPtr; $first > 0; $first--) {
- if ($first === 1
- || $tokens[($first - 1)]['line'] !== $tokens[$first]['line']
- ) {
- break;
- }
- }
-
- if ($tokens[$first]['code'] === T_WHITESPACE) {
- $indent = $tokens[$first]['content'];
- } else if ($tokens[$first]['code'] === T_INLINE_HTML
- || $tokens[$first]['code'] === T_OPEN_TAG
- ) {
- $addedContent = '';
- }
-
- $addedContent .= $indent.'}';
- if ($next !== false && $tokens[$endToken]['code'] === T_COMMENT) {
- $addedContent .= $phpcsFile->eolChar;
- }
-
- $phpcsFile->fixer->addContent($endToken, $addedContent);
- }//end if
- } else {
- if ($endLine !== $end) {
- $phpcsFile->fixer->replaceToken($end, '');
- $phpcsFile->fixer->addNewlineBefore($endLine);
- $phpcsFile->fixer->addContent($endLine, '}');
- } else {
- $phpcsFile->fixer->replaceToken($end, '}');
- }
- }//end if
-
- $phpcsFile->fixer->endChangeset();
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/CSSLintSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/CSSLintSniff.php
deleted file mode 100644
index c21c97a5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/CSSLintSniff.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-/**
- * Runs csslint on the file.
- *
- * @author Roman Levishchenko <index.0h@gmail.com>
- * @copyright 2013-2014 Roman Levishchenko
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Debug;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-
-class CSSLintSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $csslintPath = Config::getExecutablePath('csslint');
- if ($csslintPath === null) {
- return;
- }
-
- $fileName = $phpcsFile->getFilename();
-
- $cmd = escapeshellcmd($csslintPath).' '.escapeshellarg($fileName).' 2>&1';
- exec($cmd, $output, $retval);
-
- if (is_array($output) === false) {
- return;
- }
-
- $count = count($output);
-
- for ($i = 0; $i < $count; $i++) {
- $matches = array();
- $numMatches = preg_match(
- '/(error|warning) at line (\d+)/',
- $output[$i],
- $matches
- );
-
- if ($numMatches === 0) {
- continue;
- }
-
- $line = (int) $matches[2];
- $message = 'csslint says: '.$output[($i + 1)];
- // First line is message with error line and error code.
- // Second is error message.
- // Third is wrong line in file.
- // Fourth is empty line.
- $i += 4;
-
- $phpcsFile->addWarningOnLine($message, $line, 'ExternalTool');
- }//end for
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/ClosureLinterSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/ClosureLinterSniff.php
deleted file mode 100644
index bf103657..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/ClosureLinterSniff.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-/**
- * Runs gjslint on the file.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Debug;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-
-class ClosureLinterSniff implements Sniff
-{
-
- /**
- * A list of error codes that should show errors.
- *
- * All other error codes will show warnings.
- *
- * @var integer
- */
- public $errorCodes = array();
-
- /**
- * A list of error codes to ignore.
- *
- * @var integer
- */
- public $ignoreCodes = array();
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jslint.js could not be run
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $lintPath = Config::getExecutablePath('gjslint');
- if ($lintPath === null) {
- return;
- }
-
- $fileName = $phpcsFile->getFilename();
-
- $lintPath = escapeshellcmd($lintPath);
- $cmd = '$lintPath --nosummary --notime --unix_mode '.escapeshellarg($fileName);
- $msg = exec($cmd, $output, $retval);
-
- if (is_array($output) === false) {
- return;
- }
-
- foreach ($output as $finding) {
- $matches = array();
- $numMatches = preg_match('/^(.*):([0-9]+):\(.*?([0-9]+)\)(.*)$/', $finding, $matches);
- if ($numMatches === 0) {
- continue;
- }
-
- // Skip error codes we are ignoring.
- $code = $matches[3];
- if (in_array($code, $this->ignoreCodes) === true) {
- continue;
- }
-
- $line = (int) $matches[2];
- $error = trim($matches[4]);
-
- $message = 'gjslint says: (%s) %s';
- $data = array(
- $code,
- $error,
- );
- if (in_array($code, $this->errorCodes) === true) {
- $phpcsFile->addErrorOnLine($message, $line, 'ExternalToolError', $data);
- } else {
- $phpcsFile->addWarningOnLine($message, $line, 'ExternalTool', $data);
- }
- }//end foreach
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/ESLintSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/ESLintSniff.php
deleted file mode 100644
index 19cdc32c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/ESLintSniff.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-/**
- * Runs eslint on the file.
- *
- * @author Ryan McCue <ryan+gh@hmn.md>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Debug;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-
-class ESLintSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * ESLint configuration file path.
- *
- * @var string|null Path to eslintrc. Null to autodetect.
- */
- public $configFile = null;
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jshint.js could not be run
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $eslintPath = Config::getExecutablePath('eslint');
- if ($eslintPath === null) {
- return;
- }
-
- $filename = $phpcsFile->getFilename();
-
- $configFile = $this->configFile;
- if (empty($configFile) === true) {
- // Attempt to autodetect.
- $candidates = glob('.eslintrc{.js,.yaml,.yml,.json}', GLOB_BRACE);
- if (empty($candidates) === false) {
- $configFile = $candidates[0];
- }
- }
-
- $eslintOptions = array('--format json');
- if (empty($configFile) === false) {
- $eslintOptions[] = '--config '.escapeshellarg($configFile);
- }
-
- $cmd = escapeshellcmd(escapeshellarg($eslintPath).' '.implode(' ', $eslintOptions).' '.escapeshellarg($filename));
-
- // Execute!
- exec($cmd, $stdout, $code);
-
- if ($code <= 0) {
- // No errors, continue.
- return ($phpcsFile->numTokens + 1);
- }
-
- $data = json_decode(implode("\n", $stdout));
- if (json_last_error() !== JSON_ERROR_NONE) {
- // Ignore any errors.
- return ($phpcsFile->numTokens + 1);
- }
-
- // Data is a list of files, but we only pass a single one.
- $messages = $data[0]->messages;
- foreach ($messages as $error) {
- $message = 'eslint says: '.$error->message;
- if (empty($error->fatal) === false || $error->severity === 2) {
- $phpcsFile->addErrorOnLine($message, $error->line, 'ExternalTool');
- } else {
- $phpcsFile->addWarningOnLine($message, $error->line, 'ExternalTool');
- }
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/JSHintSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/JSHintSniff.php
deleted file mode 100644
index 0728e655..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/JSHintSniff.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * Runs jshint.js on the file.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Alexander Wei§ <aweisswa@gmx.de>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Debug;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-
-class JSHintSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jshint.js could not be run
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $rhinoPath = Config::getExecutablePath('rhino');
- $jshintPath = Config::getExecutablePath('jshint');
- if ($rhinoPath === null || $jshintPath === null) {
- return;
- }
-
- $fileName = $phpcsFile->getFilename();
-
- $rhinoPath = escapeshellcmd($rhinoPath);
- $jshintPath = escapeshellcmd($jshintPath);
-
- $cmd = "$rhinoPath \"$jshintPath\" ".escapeshellarg($fileName);
- $msg = exec($cmd, $output, $retval);
-
- if (is_array($output) === true) {
- foreach ($output as $finding) {
- $matches = array();
- $numMatches = preg_match('/^(.+)\(.+:([0-9]+).*:[0-9]+\)$/', $finding, $matches);
- if ($numMatches === 0) {
- continue;
- }
-
- $line = (int) $matches[2];
- $message = 'jshint says: '.trim($matches[1]);
- $phpcsFile->addWarningOnLine($message, $line, 'ExternalTool');
- }
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/ByteOrderMarkSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/ByteOrderMarkSniff.php
deleted file mode 100644
index 831f471e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/ByteOrderMarkSniff.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/**
- * A simple sniff for detecting BOMs that may corrupt application work.
- *
- * @author Piotr Karas <office@mediaself.pl>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2010-2014 mediaSELF Sp. z o.o.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ByteOrderMarkSniff implements Sniff
-{
-
- /**
- * List of supported BOM definitions.
- *
- * Use encoding names as keys and hex BOM representations as values.
- *
- * @var array
- */
- protected $bomDefinitions = array(
- 'UTF-8' => 'efbbbf',
- 'UTF-16 (BE)' => 'feff',
- 'UTF-16 (LE)' => 'fffe',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_INLINE_HTML);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- // The BOM will be the very first token in the file.
- if ($stackPtr !== 0) {
- return;
- }
-
- $tokens = $phpcsFile->getTokens();
-
- foreach ($this->bomDefinitions as $bomName => $expectedBomHex) {
- $bomByteLength = (strlen($expectedBomHex) / 2);
- $htmlBomHex = bin2hex(substr($tokens[$stackPtr]['content'], 0, $bomByteLength));
- if ($htmlBomHex === $expectedBomHex) {
- $errorData = array($bomName);
- $error = 'File contains %s byte order mark, which may corrupt your application';
- $phpcsFile->addError($error, $stackPtr, 'Found', $errorData);
- $phpcsFile->recordMetric($stackPtr, 'Using byte order mark', 'yes');
- return;
- }
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Using byte order mark', 'no');
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/EndFileNewlineSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/EndFileNewlineSniff.php
deleted file mode 100644
index 4a6740d7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/EndFileNewlineSniff.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-/**
- * Ensures the file ends with a newline character.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class EndFileNewlineSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- 'CSS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return int
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- // Skip to the end of the file.
- $tokens = $phpcsFile->getTokens();
- $stackPtr = ($phpcsFile->numTokens - 1);
-
- if ($tokens[$stackPtr]['content'] === '') {
- $stackPtr--;
- }
-
- $eolCharLen = strlen($phpcsFile->eolChar);
- $lastChars = substr($tokens[$stackPtr]['content'], ($eolCharLen * -1));
- if ($lastChars !== $phpcsFile->eolChar) {
- $phpcsFile->recordMetric($stackPtr, 'Newline at EOF', 'no');
-
- $error = 'File must end with a newline character';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotFound');
- if ($fix === true) {
- $phpcsFile->fixer->addNewline($stackPtr);
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Newline at EOF', 'yes');
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/EndFileNoNewlineSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/EndFileNoNewlineSniff.php
deleted file mode 100644
index 6a68633e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/EndFileNoNewlineSniff.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/**
- * Ensures the file does not end with a newline character.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class EndFileNoNewlineSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- 'CSS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return int
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- // Skip to the end of the file.
- $tokens = $phpcsFile->getTokens();
- $stackPtr = ($phpcsFile->numTokens - 1);
-
- if ($tokens[$stackPtr]['content'] === '') {
- $stackPtr--;
- }
-
- $eolCharLen = strlen($phpcsFile->eolChar);
- $lastChars = substr($tokens[$stackPtr]['content'], ($eolCharLen * -1));
- if ($lastChars === $phpcsFile->eolChar) {
- $error = 'File must not end with a newline character';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found');
- if ($fix === true) {
- $newContent = substr($tokens[$stackPtr]['content'], 0, ($eolCharLen * -1));
- $phpcsFile->fixer->replaceToken($stackPtr, $newContent);
- }
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/InlineHTMLSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/InlineHTMLSniff.php
deleted file mode 100644
index 523982ed..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/InlineHTMLSniff.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * Ensures the whole file is PHP only, with no whitespace or inline HTML.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class InlineHTMLSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_INLINE_HTML);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- // Ignore shebang lines.
- $tokens = $phpcsFile->getTokens();
- if (substr($tokens[$stackPtr]['content'], 0, 2) === '#!') {
- return;
- }
-
- $error = 'PHP files must only contain PHP code';
- $phpcsFile->addError($error, $stackPtr, 'Found');
-
- return $phpcsFile->numTokens;
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineEndingsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineEndingsSniff.php
deleted file mode 100644
index 341eb06f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineEndingsSniff.php
+++ /dev/null
@@ -1,136 +0,0 @@
-<?php
-/**
- * Checks that end of line characters are correct.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LineEndingsSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- 'CSS',
- );
-
- /**
- * The valid EOL character.
- *
- * @var string
- */
- public $eolChar = '\n';
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return int
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $found = $phpcsFile->eolChar;
- $found = str_replace("\n", '\n', $found);
- $found = str_replace("\r", '\r', $found);
-
- $phpcsFile->recordMetric($stackPtr, 'EOL char', $found);
-
- if ($found === $this->eolChar) {
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
- }
-
- // Check for single line files without an EOL. This is a very special
- // case and the EOL char is set to \n when this happens.
- if ($found === '\n') {
- $tokens = $phpcsFile->getTokens();
- $lastToken = ($phpcsFile->numTokens - 1);
- if ($tokens[$lastToken]['line'] === 1
- && $tokens[$lastToken]['content'] !== "\n"
- ) {
- return;
- }
- }
-
- $error = 'End of line character is invalid; expected "%s" but found "%s"';
- $expected = $this->eolChar;
- $expected = str_replace("\n", '\n', $expected);
- $expected = str_replace("\r", '\r', $expected);
- $data = array(
- $expected,
- $found,
- );
-
- // Errors are always reported on line 1, no matter where the first PHP tag is.
- $fix = $phpcsFile->addFixableError($error, 0, 'InvalidEOLChar', $data);
-
- if ($fix === true) {
- $tokens = $phpcsFile->getTokens();
- switch ($this->eolChar) {
- case '\n':
- $eolChar = "\n";
- break;
- case '\r':
- $eolChar = "\r";
- break;
- case '\r\n':
- $eolChar = "\r\n";
- break;
- default:
- $eolChar = $this->eolChar;
- break;
- }
-
- for ($i = 0; $i < $phpcsFile->numTokens; $i++) {
- if (isset($tokens[($i + 1)]) === false
- || $tokens[($i + 1)]['line'] > $tokens[$i]['line']
- ) {
- // Token is the last on a line.
- if (isset($tokens[$i]['orig_content']) === true) {
- $tokenContent = $tokens[$i]['orig_content'];
- } else {
- $tokenContent = $tokens[$i]['content'];
- }
-
- $newContent = rtrim($tokenContent, "\r\n");
- $newContent .= $eolChar;
- $phpcsFile->fixer->replaceToken($i, $newContent);
- }
- }
- }//end if
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineLengthSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineLengthSniff.php
deleted file mode 100644
index 6e6978d6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LineLengthSniff.php
+++ /dev/null
@@ -1,164 +0,0 @@
-<?php
-/**
- * Checks the length of all lines in a file.
- *
- * Checks all lines in the file, and throws warnings if they are over 80
- * characters in length and errors if they are over 100. Both these
- * figures can be changed in a ruleset.xml file.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LineLengthSniff implements Sniff
-{
-
- /**
- * The limit that the length of a line should not exceed.
- *
- * @var integer
- */
- public $lineLimit = 80;
-
- /**
- * The limit that the length of a line must not exceed.
- *
- * Set to zero (0) to disable.
- *
- * @var integer
- */
- public $absoluteLineLimit = 100;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return int
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- for ($i = 1; $i < $phpcsFile->numTokens; $i++) {
- if ($tokens[$i]['column'] === 1) {
- $this->checkLineLength($phpcsFile, $tokens, $i);
- }
- }
-
- $this->checkLineLength($phpcsFile, $tokens, $i);
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
- /**
- * Checks if a line is too long.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tokens The token stack.
- * @param int $stackPtr The first token on the next line.
- *
- * @return null|false
- */
- protected function checkLineLength($phpcsFile, $tokens, $stackPtr)
- {
- // The passed token is the first on the line.
- $stackPtr--;
-
- if ($tokens[$stackPtr]['column'] === 1
- && $tokens[$stackPtr]['length'] === 0
- ) {
- // Blank line.
- return;
- }
-
- if ($tokens[$stackPtr]['column'] !== 1
- && $tokens[$stackPtr]['content'] === $phpcsFile->eolChar
- ) {
- $stackPtr--;
- }
-
- $lineLength = ($tokens[$stackPtr]['column'] + $tokens[$stackPtr]['length'] - 1);
-
- // Record metrics for common line length groupings.
- if ($lineLength <= 80) {
- $phpcsFile->recordMetric($stackPtr, 'Line length', '80 or less');
- } else if ($lineLength <= 120) {
- $phpcsFile->recordMetric($stackPtr, 'Line length', '81-120');
- } else if ($lineLength <= 150) {
- $phpcsFile->recordMetric($stackPtr, 'Line length', '121-150');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Line length', '151 or more');
- }
-
- // If this is a long comment, check if it can be broken up onto multiple lines.
- // Some comments contain unbreakable strings like URLs and so it makes sense
- // to ignore the line length in these cases if the URL would be longer than the max
- // line length once you indent it to the correct level.
- if ($lineLength > $this->lineLimit
- && ($tokens[$stackPtr]['code'] === T_COMMENT
- || $tokens[$stackPtr]['code'] === T_DOC_COMMENT_STRING)
- ) {
- $oldLength = strlen($tokens[$stackPtr]['content']);
- $newLength = strlen(ltrim($tokens[$stackPtr]['content'], "/#\t "));
- $indent = (($tokens[$stackPtr]['column'] - 1) + ($oldLength - $newLength));
-
- $nonBreakingLength = $tokens[$stackPtr]['length'];
-
- $space = strrpos($tokens[$stackPtr]['content'], ' ');
- if ($space !== false) {
- $nonBreakingLength -= ($space + 1);
- }
-
- if (($nonBreakingLength + $indent) > $this->lineLimit) {
- return;
- }
- }
-
- if ($this->absoluteLineLimit > 0
- && $lineLength > $this->absoluteLineLimit
- ) {
- $data = array(
- $this->absoluteLineLimit,
- $lineLength,
- );
-
- $error = 'Line exceeds maximum limit of %s characters; contains %s characters';
- $phpcsFile->addError($error, $stackPtr, 'MaxExceeded', $data);
- } else if ($lineLength > $this->lineLimit) {
- $data = array(
- $this->lineLimit,
- $lineLength,
- );
-
- $warning = 'Line exceeds %s characters; contains %s characters';
- $phpcsFile->addWarning($warning, $stackPtr, 'TooLong', $data);
- }
-
- }//end checkLineLength()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LowercasedFilenameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LowercasedFilenameSniff.php
deleted file mode 100644
index c6930690..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/LowercasedFilenameSniff.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * Checks that all file names are lowercased.
- *
- * @author Andy Grunwald <andygrunwald@gmail.com>
- * @copyright 2010-2014 Andy Grunwald
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LowercasedFilenameSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return int
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $filename = $phpcsFile->getFilename();
- if ($filename === 'STDIN') {
- return;
- }
-
- $filename = basename($filename);
- $lowercaseFilename = strtolower($filename);
- if ($filename !== $lowercaseFilename) {
- $data = array(
- $filename,
- $lowercaseFilename,
- );
- $error = 'Filename "%s" doesn\'t match the expected filename "%s"';
- $phpcsFile->addError($error, $stackPtr, 'NotFound', $data);
- $phpcsFile->recordMetric($stackPtr, 'Lowercase filename', 'no');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Lowercase filename', 'yes');
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneClassPerFileSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneClassPerFileSniff.php
deleted file mode 100644
index 1b79ff87..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneClassPerFileSniff.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Checks that only one class is declared per file.
- *
- * @author Andy Grunwald <andygrunwald@gmail.com>
- * @copyright 2010-2014 Andy Grunwald
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class OneClassPerFileSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_CLASS);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $nextClass = $phpcsFile->findNext($this->register(), ($stackPtr + 1));
- if ($nextClass !== false) {
- $error = 'Only one class is allowed in a file';
- $phpcsFile->addError($error, $nextClass, 'MultipleFound');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneInterfacePerFileSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneInterfacePerFileSniff.php
deleted file mode 100644
index 14957c85..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneInterfacePerFileSniff.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Checks that only one interface is declared per file.
- *
- * @author Andy Grunwald <andygrunwald@gmail.com>
- * @copyright 2010-2014 Andy Grunwald
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class OneInterfacePerFileSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_INTERFACE);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $nextInterface = $phpcsFile->findNext($this->register(), ($stackPtr + 1));
- if ($nextInterface !== false) {
- $error = 'Only one interface is allowed in a file';
- $phpcsFile->addError($error, $nextInterface, 'MultipleFound');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneTraitPerFileSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneTraitPerFileSniff.php
deleted file mode 100644
index d5b7da68..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneTraitPerFileSniff.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Checks that only one trait is declared per file.
- *
- * @author Alexander Obuhovich <aik.bold@gmail.com>
- * @copyright 2010-2014 Alexander Obuhovich
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class OneTraitPerFileSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_TRAIT);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $nextClass = $phpcsFile->findNext($this->register(), ($stackPtr + 1));
- if ($nextClass !== false) {
- $error = 'Only one trait is allowed in a file';
- $phpcsFile->addError($error, $nextClass, 'MultipleFound');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/DisallowMultipleStatementsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/DisallowMultipleStatementsSniff.php
deleted file mode 100644
index 1cb5e9c5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/DisallowMultipleStatementsSniff.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-/**
- * Ensures each statement is on a line by itself.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowMultipleStatementsSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_SEMICOLON);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $prev = $phpcsFile->findPrevious(array(T_SEMICOLON, T_OPEN_TAG, T_OPEN_TAG_WITH_ECHO), ($stackPtr - 1));
- if ($prev === false
- || $tokens[$prev]['code'] === T_OPEN_TAG
- || $tokens[$prev]['code'] === T_OPEN_TAG_WITH_ECHO
- ) {
- $phpcsFile->recordMetric($stackPtr, 'Multiple statements on same line', 'no');
- return;
- }
-
- // Ignore multiple statements in a FOR condition.
- if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- foreach ($tokens[$stackPtr]['nested_parenthesis'] as $bracket) {
- if (isset($tokens[$bracket]['parenthesis_owner']) === false) {
- // Probably a closure sitting inside a function call.
- continue;
- }
-
- $owner = $tokens[$bracket]['parenthesis_owner'];
- if ($tokens[$owner]['code'] === T_FOR) {
- return;
- }
- }
- }
-
- if ($tokens[$prev]['line'] === $tokens[$stackPtr]['line']) {
- $phpcsFile->recordMetric($stackPtr, 'Multiple statements on same line', 'yes');
-
- $error = 'Each PHP statement must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SameLine');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addNewline($prev);
- if ($tokens[($prev + 1)]['code'] === T_WHITESPACE) {
- $phpcsFile->fixer->replaceToken(($prev + 1), '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Multiple statements on same line', 'no');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php
deleted file mode 100644
index a096369c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php
+++ /dev/null
@@ -1,319 +0,0 @@
-<?php
-/**
- * Checks alignment of assignments.
- *
- * If there are multiple adjacent assignments, it will check that the equals signs of
- * each assignment are aligned. It will display a warning to advise that the signs should be aligned.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class MultipleStatementAlignmentSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * If true, an error will be thrown; otherwise a warning.
- *
- * @var boolean
- */
- public $error = false;
-
- /**
- * The maximum amount of padding before the alignment is ignored.
- *
- * If the amount of padding required to align this assignment with the
- * surrounding assignments exceeds this number, the assignment will be
- * ignored and no errors or warnings will be thrown.
- *
- * @var integer
- */
- public $maxPadding = 1000;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- $tokens = Tokens::$assignmentTokens;
- unset($tokens[T_DOUBLE_ARROW]);
- return $tokens;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return int
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Ignore assignments used in a condition, like an IF or FOR.
- if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- foreach ($tokens[$stackPtr]['nested_parenthesis'] as $start => $end) {
- if (isset($tokens[$start]['parenthesis_owner']) === true) {
- return;
- }
- }
- }
-
- $lastAssign = $this->checkAlignment($phpcsFile, $stackPtr);
- return ($lastAssign + 1);
-
- }//end process()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return int
- */
- public function checkAlignment($phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $assignments = array();
- $prevAssign = null;
- $lastLine = $tokens[$stackPtr]['line'];
- $maxPadding = null;
- $stopped = null;
- $lastCode = $stackPtr;
- $lastSemi = null;
-
- $find = Tokens::$assignmentTokens;
- unset($find[T_DOUBLE_ARROW]);
-
- for ($assign = $stackPtr; $assign < $phpcsFile->numTokens; $assign++) {
- if (isset($find[$tokens[$assign]['code']]) === false) {
- // A blank line indicates that the assignment block has ended.
- if (isset(Tokens::$emptyTokens[$tokens[$assign]['code']]) === false) {
- if (($tokens[$assign]['line'] - $tokens[$lastCode]['line']) > 1) {
- break;
- }
-
- $lastCode = $assign;
-
- if ($tokens[$assign]['code'] === T_SEMICOLON) {
- if ($tokens[$assign]['conditions'] === $tokens[$stackPtr]['conditions']) {
- if ($lastSemi !== null && $prevAssign !== null && $lastSemi > $prevAssign) {
- // This statement did not have an assignment operator in it.
- break;
- } else {
- $lastSemi = $assign;
- }
- } else {
- // Statement is in a different context, so the block is over.
- break;
- }
- }
- }//end if
-
- continue;
- } else if ($assign !== $stackPtr && $tokens[$assign]['line'] === $lastLine) {
- // Skip multiple assignments on the same line. We only need to
- // try and align the first assignment.
- continue;
- }//end if
-
- if ($assign !== $stackPtr) {
- // Has to be nested inside the same conditions as the first assignment.
- if ($tokens[$assign]['conditions'] !== $tokens[$stackPtr]['conditions']) {
- break;
- }
-
- // Make sure it is not assigned inside a condition (eg. IF, FOR).
- if (isset($tokens[$assign]['nested_parenthesis']) === true) {
- foreach ($tokens[$assign]['nested_parenthesis'] as $start => $end) {
- if (isset($tokens[$start]['parenthesis_owner']) === true) {
- break(2);
- }
- }
- }
- }//end if
-
- $var = $phpcsFile->findPrevious(
- Tokens::$emptyTokens,
- ($assign - 1),
- null,
- true
- );
-
- // Make sure we wouldn't break our max padding length if we
- // aligned with this statement, or they wouldn't break the max
- // padding length if they aligned with us.
- $varEnd = $tokens[($var + 1)]['column'];
- $assignLen = $tokens[$assign]['length'];
- if ($assign !== $stackPtr) {
- if (($varEnd + 1) > $assignments[$prevAssign]['assign_col']) {
- $padding = 1;
- $assignColumn = ($varEnd + 1);
- } else {
- $padding = ($assignments[$prevAssign]['assign_col'] - $varEnd + $assignments[$prevAssign]['assign_len'] - $assignLen);
- if ($padding === 0) {
- $padding = 1;
- }
-
- if ($padding > $this->maxPadding) {
- $stopped = $assign;
- break;
- }
-
- $assignColumn = ($varEnd + $padding);
- }//end if
-
- if (($assignColumn + $assignLen) > ($assignments[$maxPadding]['assign_col'] + $assignments[$maxPadding]['assign_len'])) {
- $newPadding = ($varEnd - $assignments[$maxPadding]['var_end'] + $assignLen - $assignments[$maxPadding]['assign_len'] + 1);
- if ($newPadding > $this->maxPadding) {
- $stopped = $assign;
- break;
- } else {
- // New alignment settings for previous assignments.
- foreach ($assignments as $i => $data) {
- if ($i === $assign) {
- break;
- }
-
- $newPadding = ($varEnd - $data['var_end'] + $assignLen - $data['assign_len'] + 1);
- $assignments[$i]['expected'] = $newPadding;
- $assignments[$i]['assign_col'] = ($data['var_end'] + $newPadding);
- }
-
- $padding = 1;
- $assignColumn = ($varEnd + 1);
- }
- } else if ($padding > $assignments[$maxPadding]['expected']) {
- $maxPadding = $assign;
- }//end if
- } else {
- $padding = 1;
- $assignColumn = ($varEnd + 1);
- $maxPadding = $assign;
- }//end if
-
- $found = 0;
- if ($tokens[($var + 1)]['code'] === T_WHITESPACE) {
- $found = $tokens[($var + 1)]['length'];
- if ($found === 0) {
- // This means a newline was found.
- $found = 1;
- }
- }
-
- $assignments[$assign] = array(
- 'var_end' => $varEnd,
- 'assign_len' => $assignLen,
- 'assign_col' => $assignColumn,
- 'expected' => $padding,
- 'found' => $found,
- );
-
- $lastLine = $tokens[$assign]['line'];
- $prevAssign = $assign;
- }//end for
-
- if (empty($assignments) === true) {
- return $stackPtr;
- }
-
- $numAssignments = count($assignments);
-
- $errorGenerated = false;
- foreach ($assignments as $assignment => $data) {
- if ($data['found'] === $data['expected']) {
- continue;
- }
-
- $expectedText = $data['expected'].' space';
- if ($data['expected'] !== 1) {
- $expectedText .= 's';
- }
-
- if ($data['found'] === null) {
- $foundText = 'a new line';
- } else {
- $foundText = $data['found'].' space';
- if ($data['found'] !== 1) {
- $foundText .= 's';
- }
- }
-
- if ($numAssignments === 1) {
- $type = 'Incorrect';
- $error = 'Equals sign not aligned correctly; expected %s but found %s';
- } else {
- $type = 'NotSame';
- $error = 'Equals sign not aligned with surrounding assignments; expected %s but found %s';
- }
-
- $errorData = array(
- $expectedText,
- $foundText,
- );
-
- if ($this->error === true) {
- $fix = $phpcsFile->addFixableError($error, $assignment, $type, $errorData);
- } else {
- $fix = $phpcsFile->addFixableWarning($error, $assignment, $type.'Warning', $errorData);
- }
-
- $errorGenerated = true;
-
- if ($fix === true && $data['found'] !== null) {
- $newContent = str_repeat(' ', $data['expected']);
- if ($data['found'] === 0) {
- $phpcsFile->fixer->addContentBefore($assignment, $newContent);
- } else {
- $phpcsFile->fixer->replaceToken(($assignment - 1), $newContent);
- }
- }
- }//end foreach
-
- if ($numAssignments > 1) {
- if ($errorGenerated === true) {
- $phpcsFile->recordMetric($stackPtr, 'Adjacent assignments aligned', 'no');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Adjacent assignments aligned', 'yes');
- }
- }
-
- if ($stopped !== null) {
- return $this->checkAlignment($phpcsFile, $stopped);
- } else {
- return $assignment;
- }
-
- }//end checkAlignment()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/NoSpaceAfterCastSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/NoSpaceAfterCastSniff.php
deleted file mode 100644
index 1e0e5761..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/NoSpaceAfterCastSniff.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Ensures there is no space after cast tokens.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class NoSpaceAfterCastSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return Tokens::$castTokens;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- return;
- }
-
- $error = 'A cast statement must not be followed by a space';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceFound');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceAfterCastSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceAfterCastSniff.php
deleted file mode 100644
index 3aec9c69..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceAfterCastSniff.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/**
- * Ensures there is a single space after cast tokens.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class SpaceAfterCastSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return Tokens::$castTokens;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $error = 'A cast statement must be followed by a single space';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpace');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Spacing after cast statement', 0);
- return;
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Spacing after cast statement', $tokens[($stackPtr + 1)]['length']);
-
- if ($tokens[($stackPtr + 1)]['length'] !== 1) {
- $error = 'A cast statement must be followed by a single space';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'TooMuchSpace');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceAfterNotSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceAfterNotSniff.php
deleted file mode 100644
index d61879bb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Formatting/SpaceAfterNotSniff.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/**
- * Ensures there is a single space after a NOT operator.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class SpaceAfterNotSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_BOOLEAN_NOT);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $spacing = 0;
- if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
- $spacing = $tokens[($stackPtr + 1)]['length'];
- }
-
- if ($spacing === 1) {
- return;
- }
-
- $message = 'There must be a single space after a NOT operator; %s found';
- $fix = $phpcsFile->addFixableError($message, $stackPtr, 'Incorrect', array($spacing));
-
- if ($fix === true) {
- if ($spacing === 0) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/CallTimePassByReferenceSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/CallTimePassByReferenceSniff.php
deleted file mode 100644
index 2e64e0b3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/CallTimePassByReferenceSniff.php
+++ /dev/null
@@ -1,147 +0,0 @@
-<?php
-/**
- * Ensures that variables are not passed by reference when calling a function.
- *
- * @author Florian Grandel <jerico.dev@gmail.com>
- * @copyright 2009-2014 Florian Grandel
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class CallTimePassByReferenceSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_STRING,
- T_VARIABLE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $findTokens = array_merge(
- Tokens::$emptyTokens,
- array(T_BITWISE_AND)
- );
-
- $prev = $phpcsFile->findPrevious($findTokens, ($stackPtr - 1), null, true);
-
- // Skip tokens that are the names of functions or classes
- // within their definitions. For example: function myFunction...
- // "myFunction" is T_STRING but we should skip because it is not a
- // function or method *call*.
- $prevCode = $tokens[$prev]['code'];
- if ($prevCode === T_FUNCTION || $prevCode === T_CLASS) {
- return;
- }
-
- // If the next non-whitespace token after the function or method call
- // is not an opening parenthesis then it cant really be a *call*.
- $functionName = $stackPtr;
- $openBracket = $phpcsFile->findNext(
- Tokens::$emptyTokens,
- ($functionName + 1),
- null,
- true
- );
-
- if ($tokens[$openBracket]['code'] !== T_OPEN_PARENTHESIS) {
- return;
- }
-
- if (isset($tokens[$openBracket]['parenthesis_closer']) === false) {
- return;
- }
-
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
-
- $nextSeparator = $openBracket;
- $find = array(
- T_VARIABLE,
- T_OPEN_SHORT_ARRAY,
- );
-
- while (($nextSeparator = $phpcsFile->findNext($find, ($nextSeparator + 1), $closeBracket)) !== false) {
- if (isset($tokens[$nextSeparator]['nested_parenthesis']) === false) {
- continue;
- }
-
- if ($tokens[$nextSeparator]['code'] === T_OPEN_SHORT_ARRAY) {
- $nextSeparator = $tokens[$nextSeparator]['bracket_closer'];
- continue;
- }
-
- // Make sure the variable belongs directly to this function call
- // and is not inside a nested function call or array.
- $brackets = $tokens[$nextSeparator]['nested_parenthesis'];
- $lastBracket = array_pop($brackets);
- if ($lastBracket !== $closeBracket) {
- continue;
- }
-
- // Checking this: $value = my_function(...[*]$arg...).
- $tokenBefore = $phpcsFile->findPrevious(
- Tokens::$emptyTokens,
- ($nextSeparator - 1),
- null,
- true
- );
-
- if ($tokens[$tokenBefore]['code'] === T_BITWISE_AND) {
- // Checking this: $value = my_function(...[*]&$arg...).
- $tokenBefore = $phpcsFile->findPrevious(
- Tokens::$emptyTokens,
- ($tokenBefore - 1),
- null,
- true
- );
-
- // We have to exclude all uses of T_BITWISE_AND that are not
- // references. We use a blacklist approach as we prefer false
- // positives to not identifying a pass-by-reference call at all.
- $tokenCode = $tokens[$tokenBefore]['code'];
- if ($tokenCode === T_VARIABLE
- || $tokenCode === T_CLOSE_PARENTHESIS
- || $tokenCode === T_CLOSE_SQUARE_BRACKET
- || $tokenCode === T_LNUMBER
- || isset(Tokens::$assignmentTokens[$tokenCode]) === true
- ) {
- continue;
- }
-
- // T_BITWISE_AND represents a pass-by-reference.
- $error = 'Call-time pass-by-reference calls are prohibited';
- $phpcsFile->addError($error, $tokenBefore, 'NotAllowed');
- }//end if
- }//end while
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php
deleted file mode 100644
index b690d6bb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php
+++ /dev/null
@@ -1,165 +0,0 @@
-<?php
-/**
- * Checks that calls to methods and functions are spaced correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class FunctionCallArgumentSpacingSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- $tokens = Tokens::$functionNameTokens;
-
- // For calling closures.
- $tokens[] = T_VARIABLE;
-
- return $tokens;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Skip tokens that are the names of functions or classes
- // within their definitions. For example:
- // function myFunction...
- // "myFunction" is T_STRING but we should skip because it is not a
- // function or method *call*.
- $functionName = $stackPtr;
- $ignoreTokens = Tokens::$emptyTokens;
- $ignoreTokens[] = T_BITWISE_AND;
- $functionKeyword = $phpcsFile->findPrevious($ignoreTokens, ($stackPtr - 1), null, true);
- if ($tokens[$functionKeyword]['code'] === T_FUNCTION || $tokens[$functionKeyword]['code'] === T_CLASS) {
- return;
- }
-
- // If the next non-whitespace token after the function or method call
- // is not an opening parenthesis then it cant really be a *call*.
- $openBracket = $phpcsFile->findNext(Tokens::$emptyTokens, ($functionName + 1), null, true);
- if ($tokens[$openBracket]['code'] !== T_OPEN_PARENTHESIS) {
- return;
- }
-
- if (isset($tokens[$openBracket]['parenthesis_closer']) === false) {
- return;
- }
-
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
- $nextSeparator = $openBracket;
-
- $find = array(
- T_COMMA,
- T_VARIABLE,
- T_CLOSURE,
- T_OPEN_SHORT_ARRAY,
- );
-
- while (($nextSeparator = $phpcsFile->findNext($find, ($nextSeparator + 1), $closeBracket)) !== false) {
- if ($tokens[$nextSeparator]['code'] === T_CLOSURE) {
- // Skip closures.
- $nextSeparator = $tokens[$nextSeparator]['scope_closer'];
- continue;
- } else if ($tokens[$nextSeparator]['code'] === T_OPEN_SHORT_ARRAY) {
- // Skips arrays using short notation.
- $nextSeparator = $tokens[$nextSeparator]['bracket_closer'];
- continue;
- }
-
- // Make sure the comma or variable belongs directly to this function call,
- // and is not inside a nested function call or array.
- $brackets = $tokens[$nextSeparator]['nested_parenthesis'];
- $lastBracket = array_pop($brackets);
- if ($lastBracket !== $closeBracket) {
- continue;
- }
-
- if ($tokens[$nextSeparator]['code'] === T_COMMA) {
- if ($tokens[($nextSeparator - 1)]['code'] === T_WHITESPACE) {
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($nextSeparator - 2), null, true);
- if (isset(Tokens::$heredocTokens[$tokens[$prev]['code']]) === false) {
- $error = 'Space found before comma in function call';
- $fix = $phpcsFile->addFixableError($error, $nextSeparator, 'SpaceBeforeComma');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($nextSeparator - 1), '');
- }
- }
- }
-
- if ($tokens[($nextSeparator + 1)]['code'] !== T_WHITESPACE) {
- $error = 'No space found after comma in function call';
- $fix = $phpcsFile->addFixableError($error, $nextSeparator, 'NoSpaceAfterComma');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($nextSeparator, ' ');
- }
- } else {
- // If there is a newline in the space, then they must be formatting
- // each argument on a newline, which is valid, so ignore it.
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($nextSeparator + 1), null, true);
- if ($tokens[$next]['line'] === $tokens[$nextSeparator]['line']) {
- $space = strlen($tokens[($nextSeparator + 1)]['content']);
- if ($space > 1) {
- $error = 'Expected 1 space after comma in function call; %s found';
- $data = array($space);
- $fix = $phpcsFile->addFixableError($error, $nextSeparator, 'TooMuchSpaceAfterComma', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($nextSeparator + 1), ' ');
- }
- }
- }
- }//end if
- } else {
- // Token is a variable.
- $nextToken = $phpcsFile->findNext(Tokens::$emptyTokens, ($nextSeparator + 1), $closeBracket, true);
- if ($nextToken !== false) {
- if ($tokens[$nextToken]['code'] === T_EQUAL) {
- if (($tokens[($nextToken - 1)]['code']) !== T_WHITESPACE) {
- $error = 'Expected 1 space before = sign of default value';
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'NoSpaceBeforeEquals');
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore($nextToken, ' ');
- }
- }
-
- if ($tokens[($nextToken + 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space after = sign of default value';
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'NoSpaceAfterEquals');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($nextToken, ' ');
- }
- }
- }
- }
- }//end if
- }//end while
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceBsdAllmanSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceBsdAllmanSniff.php
deleted file mode 100644
index caf5a383..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceBsdAllmanSniff.php
+++ /dev/null
@@ -1,175 +0,0 @@
-<?php
-/**
- * Checks that the opening brace of a function is on the line after the function declaration.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class OpeningFunctionBraceBsdAllmanSniff implements Sniff
-{
-
- /**
- * Should this sniff check function braces?
- *
- * @var boolean
- */
- public $checkFunctions = true;
-
- /**
- * Should this sniff check closure braces?
- *
- * @var boolean
- */
- public $checkClosures = false;
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return void
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_CLOSURE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- return;
- }
-
- if (($tokens[$stackPtr]['code'] === T_FUNCTION
- && (bool) $this->checkFunctions === false)
- || ($tokens[$stackPtr]['code'] === T_CLOSURE
- && (bool) $this->checkClosures === false)
- ) {
- return;
- }
-
- $openingBrace = $tokens[$stackPtr]['scope_opener'];
- $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
- if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
- $use = $phpcsFile->findNext(T_USE, ($closeBracket + 1), $tokens[$stackPtr]['scope_opener']);
- if ($use !== false) {
- $openBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($use + 1));
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
- }
- }
-
- $functionLine = $tokens[$closeBracket]['line'];
- $braceLine = $tokens[$openingBrace]['line'];
-
- $lineDifference = ($braceLine - $functionLine);
-
- if ($lineDifference === 0) {
- $error = 'Opening brace should be on a new line';
- $fix = $phpcsFile->addFixableError($error, $openingBrace, 'BraceOnSameLine');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $indent = $phpcsFile->findFirstOnLine(array(), $openingBrace);
- if ($tokens[$indent]['code'] === T_WHITESPACE) {
- $phpcsFile->fixer->addContentBefore($openingBrace, $tokens[$indent]['content']);
- }
-
- $phpcsFile->fixer->addNewlineBefore($openingBrace);
- $phpcsFile->fixer->endChangeset();
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Function opening brace placement', 'same line');
- } else if ($lineDifference > 1) {
- $error = 'Opening brace should be on the line after the declaration; found %s blank line(s)';
- $data = array(($lineDifference - 1));
- $fix = $phpcsFile->addFixableError($error, $openingBrace, 'BraceSpacing', $data);
- if ($fix === true) {
- for ($i = ($tokens[$stackPtr]['parenthesis_closer'] + 1); $i < $openingBrace; $i++) {
- if ($tokens[$i]['line'] === $braceLine) {
- $phpcsFile->fixer->addNewLineBefore($i);
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
- }
- }//end if
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($openingBrace + 1), null, true);
- if ($tokens[$next]['line'] === $tokens[$openingBrace]['line']) {
- if ($next === $tokens[$stackPtr]['scope_closer']) {
- // Ignore empty functions.
- return;
- }
-
- $error = 'Opening brace must be the last content on the line';
- $fix = $phpcsFile->addFixableError($error, $openingBrace, 'ContentAfterBrace');
- if ($fix === true) {
- $phpcsFile->fixer->addNewline($openingBrace);
- }
- }
-
- // Only continue checking if the opening brace looks good.
- if ($lineDifference !== 1) {
- return;
- }
-
- // We need to actually find the first piece of content on this line,
- // as if this is a method with tokens before it (public, static etc)
- // or an if with an else before it, then we need to start the scope
- // checking from there, rather than the current token.
- $lineStart = $phpcsFile->findFirstOnLine(T_WHITESPACE, $stackPtr, true);
-
- // The opening brace is on the correct line, now it needs to be
- // checked to be correctly indented.
- $startColumn = $tokens[$lineStart]['column'];
- $braceIndent = $tokens[$openingBrace]['column'];
-
- if ($braceIndent !== $startColumn) {
- $expected = ($startColumn - 1);
- $found = ($braceIndent - 1);
-
- $error = 'Opening brace indented incorrectly; expected %s spaces, found %s';
- $data = array(
- $expected,
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $openingBrace, 'BraceIndent', $data);
- if ($fix === true) {
- $indent = str_repeat(' ', $expected);
- if ($found === 0) {
- $phpcsFile->fixer->addContentBefore($openingBrace, $indent);
- } else {
- $phpcsFile->fixer->replaceToken(($openingBrace - 1), $indent);
- }
- }
- }//end if
-
- $phpcsFile->recordMetric($stackPtr, 'Function opening brace placement', 'new line');
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceKernighanRitchieSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceKernighanRitchieSniff.php
deleted file mode 100644
index fe1bfcdf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceKernighanRitchieSniff.php
+++ /dev/null
@@ -1,173 +0,0 @@
-<?php
-/**
- * Checks that the opening brace of a function is on the same line as the function declaration.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class OpeningFunctionBraceKernighanRitchieSniff implements Sniff
-{
-
-
- /**
- * Should this sniff check function braces?
- *
- * @var boolean
- */
- public $checkFunctions = true;
-
- /**
- * Should this sniff check closure braces?
- *
- * @var boolean
- */
- public $checkClosures = false;
-
-
- /**
- * Registers the tokens that this sniff wants to listen for.
- *
- * @return void
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_CLOSURE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- return;
- }
-
- if (($tokens[$stackPtr]['code'] === T_FUNCTION
- && (bool) $this->checkFunctions === false)
- || ($tokens[$stackPtr]['code'] === T_CLOSURE
- && (bool) $this->checkClosures === false)
- ) {
- return;
- }
-
- $openingBrace = $tokens[$stackPtr]['scope_opener'];
- $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
- if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
- $use = $phpcsFile->findNext(T_USE, ($closeBracket + 1), $tokens[$stackPtr]['scope_opener']);
- if ($use !== false) {
- $openBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($use + 1));
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
- }
- }
-
- $functionLine = $tokens[$closeBracket]['line'];
- $braceLine = $tokens[$openingBrace]['line'];
-
- $lineDifference = ($braceLine - $functionLine);
-
- if ($lineDifference > 0) {
- $phpcsFile->recordMetric($stackPtr, 'Function opening brace placement', 'new line');
- $error = 'Opening brace should be on the same line as the declaration';
- $fix = $phpcsFile->addFixableError($error, $openingBrace, 'BraceOnNewLine');
- if ($fix === true) {
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($openingBrace - 1), $closeBracket, true);
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addContent($prev, ' {');
- $phpcsFile->fixer->replaceToken($openingBrace, '');
- if ($tokens[($openingBrace + 1)]['code'] === T_WHITESPACE
- && $tokens[($openingBrace + 2)]['line'] > $tokens[$openingBrace]['line']
- ) {
- // Brace is followed by a new line, so remove it to ensure we don't
- // leave behind a blank line at the top of the block.
- $phpcsFile->fixer->replaceToken(($openingBrace + 1), '');
-
- if ($tokens[($openingBrace - 1)]['code'] === T_WHITESPACE
- && $tokens[($openingBrace - 1)]['line'] === $tokens[$openingBrace]['line']
- && $tokens[($openingBrace - 2)]['line'] < $tokens[$openingBrace]['line']
- ) {
- // Brace is preceeded by indent, so remove it to ensure we don't
- // leave behind more indent than is required for the first line.
- $phpcsFile->fixer->replaceToken(($openingBrace - 1), '');
- }
- }
-
- $phpcsFile->fixer->endChangeset();
- }//end if
- }//end if
-
- $phpcsFile->recordMetric($stackPtr, 'Function opening brace placement', 'same line');
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($openingBrace + 1), null, true);
- if ($tokens[$next]['line'] === $tokens[$openingBrace]['line']) {
- if ($next === $tokens[$stackPtr]['scope_closer']) {
- // Ignore empty functions.
- return;
- }
-
- $error = 'Opening brace must be the last content on the line';
- $fix = $phpcsFile->addFixableError($error, $openingBrace, 'ContentAfterBrace');
- if ($fix === true) {
- $phpcsFile->fixer->addNewline($openingBrace);
- }
- }
-
- // Only continue checking if the opening brace looks good.
- if ($lineDifference > 0) {
- return;
- }
-
- // We are looking for tabs, even if they have been replaced, because
- // we enforce a space here.
- if (isset($tokens[($openingBrace - 1)]['orig_content']) === true) {
- $spacing = $tokens[($openingBrace - 1)]['content'];
- } else {
- $spacing = $tokens[($openingBrace - 1)]['content'];
- }
-
- if ($tokens[($openingBrace - 1)]['code'] !== T_WHITESPACE) {
- $length = 0;
- } else if ($spacing === "\t") {
- $length = '\t';
- } else {
- $length = strlen($spacing);
- }
-
- if ($length !== 1) {
- $error = 'Expected 1 space before opening brace; found %s';
- $data = array($length);
- $fix = $phpcsFile->addFixableError($error, $closeBracket, 'SpaceBeforeBrace', $data);
- if ($fix === true) {
- if ($length === 0 || $length === '\t') {
- $phpcsFile->fixer->addContentBefore($openingBrace, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($openingBrace - 1), ' ');
- }
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/CyclomaticComplexitySniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/CyclomaticComplexitySniff.php
deleted file mode 100644
index 86ed2a48..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/CyclomaticComplexitySniff.php
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-/**
- * Checks the cyclomatic complexity (McCabe) for functions.
- *
- * The cyclomatic complexity (also called McCabe code metrics)
- * indicates the complexity within a function by counting
- * the different paths the function includes.
- *
- * @author Johann-Peter Hartmann <hartmann@mayflower.de>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2007-2014 Mayflower GmbH
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class CyclomaticComplexitySniff implements Sniff
-{
-
- /**
- * A complexity higher than this value will throw a warning.
- *
- * @var integer
- */
- public $complexity = 10;
-
- /**
- * A complexity higher than this value will throw an error.
- *
- * @var integer
- */
- public $absoluteComplexity = 20;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_FUNCTION);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $this->currentFile = $phpcsFile;
-
- $tokens = $phpcsFile->getTokens();
-
- // Ignore abstract methods.
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- return;
- }
-
- // Detect start and end of this function definition.
- $start = $tokens[$stackPtr]['scope_opener'];
- $end = $tokens[$stackPtr]['scope_closer'];
-
- // Predicate nodes for PHP.
- $find = array(
- T_CASE => true,
- T_DEFAULT => true,
- T_CATCH => true,
- T_IF => true,
- T_FOR => true,
- T_FOREACH => true,
- T_WHILE => true,
- T_DO => true,
- T_ELSEIF => true,
- );
-
- $complexity = 1;
-
- // Iterate from start to end and count predicate nodes.
- for ($i = ($start + 1); $i < $end; $i++) {
- if (isset($find[$tokens[$i]['code']]) === true) {
- $complexity++;
- }
- }
-
- if ($complexity > $this->absoluteComplexity) {
- $error = 'Function\'s cyclomatic complexity (%s) exceeds allowed maximum of %s';
- $data = array(
- $complexity,
- $this->absoluteComplexity,
- );
- $phpcsFile->addError($error, $stackPtr, 'MaxExceeded', $data);
- } else if ($complexity > $this->complexity) {
- $warning = 'Function\'s cyclomatic complexity (%s) exceeds %s; consider refactoring the function';
- $data = array(
- $complexity,
- $this->complexity,
- );
- $phpcsFile->addWarning($warning, $stackPtr, 'TooHigh', $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/NestingLevelSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/NestingLevelSniff.php
deleted file mode 100644
index fc5ed39a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/NestingLevelSniff.php
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php
-/**
- * Checks the nesting level for methods.
- *
- * @author Johann-Peter Hartmann <hartmann@mayflower.de>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2007-2014 Mayflower GmbH
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class NestingLevelSniff implements Sniff
-{
-
- /**
- * A nesting level higher than this value will throw a warning.
- *
- * @var integer
- */
- public $nestingLevel = 5;
-
- /**
- * A nesting level higher than this value will throw an error.
- *
- * @var integer
- */
- public $absoluteNestingLevel = 10;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_FUNCTION);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Ignore abstract methods.
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- return;
- }
-
- // Detect start and end of this function definition.
- $start = $tokens[$stackPtr]['scope_opener'];
- $end = $tokens[$stackPtr]['scope_closer'];
-
- $nestingLevel = 0;
-
- // Find the maximum nesting level of any token in the function.
- for ($i = ($start + 1); $i < $end; $i++) {
- $level = $tokens[$i]['level'];
- if ($nestingLevel < $level) {
- $nestingLevel = $level;
- }
- }
-
- // We subtract the nesting level of the function itself.
- $nestingLevel = ($nestingLevel - $tokens[$stackPtr]['level'] - 1);
-
- if ($nestingLevel > $this->absoluteNestingLevel) {
- $error = 'Function\'s nesting level (%s) exceeds allowed maximum of %s';
- $data = array(
- $nestingLevel,
- $this->absoluteNestingLevel,
- );
- $phpcsFile->addError($error, $stackPtr, 'MaxExceeded', $data);
- } else if ($nestingLevel > $this->nestingLevel) {
- $warning = 'Function\'s nesting level (%s) exceeds %s; consider refactoring the function';
- $data = array(
- $nestingLevel,
- $this->nestingLevel,
- );
- $phpcsFile->addWarning($warning, $stackPtr, 'TooHigh', $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php
deleted file mode 100644
index ecd79dfa..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php
+++ /dev/null
@@ -1,202 +0,0 @@
-<?php
-/**
- * Ensures method and functions are named correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Sniffs\AbstractScopeSniff;
-use PHP_CodeSniffer\Util\Common;
-use PHP_CodeSniffer\Files\File;
-
-class CamelCapsFunctionNameSniff extends AbstractScopeSniff
-{
-
- /**
- * A list of all PHP magic methods.
- *
- * @var array
- */
- protected $magicMethods = array(
- 'construct' => true,
- 'destruct' => true,
- 'call' => true,
- 'callstatic' => true,
- 'get' => true,
- 'set' => true,
- 'isset' => true,
- 'unset' => true,
- 'sleep' => true,
- 'wakeup' => true,
- 'tostring' => true,
- 'set_state' => true,
- 'clone' => true,
- 'invoke' => true,
- 'debuginfo' => true,
- );
-
- /**
- * A list of all PHP non-magic methods starting with a double underscore.
- *
- * These come from PHP modules such as SOAPClient.
- *
- * @var array
- */
- protected $methodsDoubleUnderscore = array(
- 'soapcall' => true,
- 'getlastrequest' => true,
- 'getlastresponse' => true,
- 'getlastrequestheaders' => true,
- 'getlastresponseheaders' => true,
- 'getfunctions' => true,
- 'gettypes' => true,
- 'dorequest' => true,
- 'setcookie' => true,
- 'setlocation' => true,
- 'setsoapheaders' => true,
- );
-
- /**
- * A list of all PHP magic functions.
- *
- * @var array
- */
- protected $magicFunctions = array('autoload' => true);
-
- /**
- * If TRUE, the string must not have two capital letters next to each other.
- *
- * @var boolean
- */
- public $strict = true;
-
-
- /**
- * Constructs a Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff.
- */
- public function __construct()
- {
- parent::__construct(array(T_CLASS, T_ANON_CLASS, T_INTERFACE, T_TRAIT), array(T_FUNCTION), true);
-
- }//end __construct()
-
-
- /**
- * Processes the tokens within the scope.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being processed.
- * @param int $stackPtr The position where this token was
- * found.
- * @param int $currScope The position of the current scope.
- *
- * @return void
- */
- protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- $methodName = $phpcsFile->getDeclarationName($stackPtr);
- if ($methodName === null) {
- // Ignore closures.
- return;
- }
-
- $className = $phpcsFile->getDeclarationName($currScope);
- $errorData = array($className.'::'.$methodName);
-
- // Is this a magic method. i.e., is prefixed with "__" ?
- if (preg_match('|^__[^_]|', $methodName) !== 0) {
- $magicPart = strtolower(substr($methodName, 2));
- if (isset($this->magicMethods[$magicPart]) === false
- && isset($this->methodsDoubleUnderscore[$magicPart]) === false
- ) {
- $error = 'Method name "%s" is invalid; only PHP magic methods should be prefixed with a double underscore';
- $phpcsFile->addError($error, $stackPtr, 'MethodDoubleUnderscore', $errorData);
- }
-
- return;
- }
-
- // PHP4 constructors are allowed to break our rules.
- if ($methodName === $className) {
- return;
- }
-
- // PHP4 destructors are allowed to break our rules.
- if ($methodName === '_'.$className) {
- return;
- }
-
- // Ignore first underscore in methods prefixed with "_".
- $methodName = ltrim($methodName, '_');
-
- $methodProps = $phpcsFile->getMethodProperties($stackPtr);
- if (Common::isCamelCaps($methodName, false, true, $this->strict) === false) {
- if ($methodProps['scope_specified'] === true) {
- $error = '%s method name "%s" is not in camel caps format';
- $data = array(
- ucfirst($methodProps['scope']),
- $errorData[0],
- );
- $phpcsFile->addError($error, $stackPtr, 'ScopeNotCamelCaps', $data);
- } else {
- $error = 'Method name "%s" is not in camel caps format';
- $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
- }
-
- $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'no');
- return;
- } else {
- $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'yes');
- }
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes the tokens outside the scope.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being processed.
- * @param int $stackPtr The position where this token was
- * found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
- $functionName = $phpcsFile->getDeclarationName($stackPtr);
- if ($functionName === null) {
- // Ignore closures.
- return;
- }
-
- $errorData = array($functionName);
-
- // Is this a magic function. i.e., it is prefixed with "__".
- if (preg_match('|^__[^_]|', $functionName) !== 0) {
- $magicPart = strtolower(substr($functionName, 2));
- if (isset($this->magicFunctions[$magicPart]) === false) {
- $error = 'Function name "%s" is invalid; only PHP magic methods should be prefixed with a double underscore';
- $phpcsFile->addError($error, $stackPtr, 'FunctionDoubleUnderscore', $errorData);
- }
-
- return;
- }
-
- // Ignore first underscore in functions prefixed with "_".
- $functionName = ltrim($functionName, '_');
-
- if (Common::isCamelCaps($functionName, false, true, $this->strict) === false) {
- $error = 'Function name "%s" is not in camel caps format';
- $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
- $phpcsFile->recordMetric($stackPtr, 'CamelCase function name', 'no');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'yes');
- }
-
- }//end processTokenOutsideScope()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/ConstructorNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/ConstructorNameSniff.php
deleted file mode 100644
index 27b80117..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/ConstructorNameSniff.php
+++ /dev/null
@@ -1,146 +0,0 @@
-<?php
-/**
- * Bans PHP 4 style constructors.
- *
- * Favor PHP 5 constructor syntax, which uses "function __construct()".
- * Avoid PHP 4 constructor syntax, which uses "function ClassName()".
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Leif Wickland <lwickland@rightnow.com>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Sniffs\AbstractScopeSniff;
-use PHP_CodeSniffer\Files\File;
-
-class ConstructorNameSniff extends AbstractScopeSniff
-{
-
- /**
- * The name of the class we are currently checking.
- *
- * @var string
- */
- private $currentClass = '';
-
- /**
- * A list of functions in the current class.
- *
- * @var string[]
- */
- private $functionList = array();
-
-
- /**
- * Constructs the test with the tokens it wishes to listen for.
- */
- public function __construct()
- {
- parent::__construct(array(T_CLASS, T_ANON_CLASS, T_INTERFACE), array(T_FUNCTION), true);
-
- }//end __construct()
-
-
- /**
- * Processes this test when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $currScope A pointer to the start of the scope.
- *
- * @return void
- */
- protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- $className = $phpcsFile->getDeclarationName($currScope);
- if ($className !== $this->currentClass) {
- $this->loadFunctionNamesInScope($phpcsFile, $currScope);
- $this->currentClass = $className;
- }
-
- $methodName = $phpcsFile->getDeclarationName($stackPtr);
-
- if (strcasecmp($methodName, $className) === 0) {
- if (in_array('__construct', $this->functionList) === false) {
- $error = 'PHP4 style constructors are not allowed; use "__construct()" instead';
- $phpcsFile->addError($error, $stackPtr, 'OldStyle');
- }
- } else if (strcasecmp($methodName, '__construct') !== 0) {
- // Not a constructor.
- return;
- }
-
- $tokens = $phpcsFile->getTokens();
-
- $parentClassName = $phpcsFile->findExtendedClassName($currScope);
- if ($parentClassName === false) {
- return;
- }
-
- // Stop if the constructor doesn't have a body, like when it is abstract.
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- return;
- }
-
- $endFunctionIndex = $tokens[$stackPtr]['scope_closer'];
- $startIndex = $stackPtr;
- while (($doubleColonIndex = $phpcsFile->findNext(T_DOUBLE_COLON, $startIndex, $endFunctionIndex)) !== false) {
- if ($tokens[($doubleColonIndex + 1)]['code'] === T_STRING
- && $tokens[($doubleColonIndex + 1)]['content'] === $parentClassName
- ) {
- $error = 'PHP4 style calls to parent constructors are not allowed; use "parent::__construct()" instead';
- $phpcsFile->addError($error, ($doubleColonIndex + 1), 'OldStyleCall');
- }
-
- $startIndex = ($doubleColonIndex + 1);
- }
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes a token that is found within the scope that this test is
- * listening to.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position in the stack where this
- * token was found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
-
- }//end processTokenOutsideScope()
-
-
- /**
- * Extracts all the function names found in the given scope.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being scanned.
- * @param int $currScope A pointer to the start of the scope.
- *
- * @return void
- */
- protected function loadFunctionNamesInScope(File $phpcsFile, $currScope)
- {
- $this->functionList = array();
- $tokens = $phpcsFile->getTokens();
-
- for ($i = ($tokens[$currScope]['scope_opener'] + 1); $i < $tokens[$currScope]['scope_closer']; $i++) {
- if ($tokens[$i]['code'] !== T_FUNCTION) {
- continue;
- }
-
- $next = $phpcsFile->findNext(T_STRING, $i);
- $this->functionList[] = trim($tokens[$next]['content']);
- }
-
- }//end loadFunctionNamesInScope()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php
deleted file mode 100644
index adeb1263..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php
+++ /dev/null
@@ -1,172 +0,0 @@
-<?php
-/**
- * Ensures that constant names are all uppercase.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class UpperCaseConstantNameSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_STRING);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $constName = $tokens[$stackPtr]['content'];
-
- // If this token is in a heredoc, ignore it.
- if ($phpcsFile->hasCondition($stackPtr, T_START_HEREDOC) === true) {
- return;
- }
-
- // Special case for PHP 5.5 class name resolution.
- if (strtolower($constName) === 'class'
- && $tokens[($stackPtr - 1)]['code'] === T_DOUBLE_COLON
- ) {
- return;
- }
-
- // Special case for PHPUnit.
- if ($constName === 'PHPUnit_MAIN_METHOD') {
- return;
- }
-
- // If the next non-whitespace token after this token
- // is not an opening parenthesis then it is not a function call.
- for ($openBracket = ($stackPtr + 1); $openBracket < $phpcsFile->numTokens; $openBracket++) {
- if ($tokens[$openBracket]['code'] !== T_WHITESPACE) {
- break;
- }
- }
-
- if ($openBracket === $phpcsFile->numTokens) {
- return;
- }
-
- if ($tokens[$openBracket]['code'] !== T_OPEN_PARENTHESIS) {
- $functionKeyword = $phpcsFile->findPrevious(
- array(
- T_WHITESPACE,
- T_COMMA,
- T_COMMENT,
- T_STRING,
- T_NS_SEPARATOR,
- ),
- ($stackPtr - 1),
- null,
- true
- );
-
- if ($tokens[$functionKeyword]['code'] !== T_CONST) {
- return;
- }
-
- // This is a class constant.
- if (strtoupper($constName) !== $constName) {
- if (strtolower($constName) === $constName) {
- $phpcsFile->recordMetric($stackPtr, 'Constant name case', 'lower');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Constant name case', 'mixed');
- }
-
- $error = 'Class constants must be uppercase; expected %s but found %s';
- $data = array(
- strtoupper($constName),
- $constName,
- );
- $phpcsFile->addError($error, $stackPtr, 'ClassConstantNotUpperCase', $data);
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Constant name case', 'upper');
- }
-
- return;
- }//end if
-
- if (strtolower($constName) !== 'define') {
- return;
- }
-
- /*
- This may be a "define" function call.
- */
-
- // Make sure this is not a method call.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] === T_OBJECT_OPERATOR
- || $tokens[$prev]['code'] === T_DOUBLE_COLON
- ) {
- return;
- }
-
- // The next non-whitespace token must be the constant name.
- $constPtr = $phpcsFile->findNext(T_WHITESPACE, ($openBracket + 1), null, true);
- if ($tokens[$constPtr]['code'] !== T_CONSTANT_ENCAPSED_STRING) {
- return;
- }
-
- $constName = $tokens[$constPtr]['content'];
-
- // Check for constants like self::CONSTANT.
- $prefix = '';
- $splitPos = strpos($constName, '::');
- if ($splitPos !== false) {
- $prefix = substr($constName, 0, ($splitPos + 2));
- $constName = substr($constName, ($splitPos + 2));
- }
-
- // Strip namesspace from constant like /foo/bar/CONSTANT.
- $splitPos = strrpos($constName, '\\');
- if ($splitPos !== false) {
- $prefix = substr($constName, 0, ($splitPos + 1));
- $constName = substr($constName, ($splitPos + 1));
- }
-
- if (strtoupper($constName) !== $constName) {
- if (strtolower($constName) === $constName) {
- $phpcsFile->recordMetric($stackPtr, 'Constant name case', 'lower');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Constant name case', 'mixed');
- }
-
- $error = 'Constants must be uppercase; expected %s but found %s';
- $data = array(
- $prefix.strtoupper($constName),
- $prefix.$constName,
- );
- $phpcsFile->addError($error, $stackPtr, 'ConstantNotUpperCase', $data);
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Constant name case', 'upper');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/BacktickOperatorSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/BacktickOperatorSniff.php
deleted file mode 100644
index 7ef4e5df..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/BacktickOperatorSniff.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Bans the use of the backtick execution operator.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class BacktickOperatorSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_BACKTICK);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $error = 'Use of the backtick operator is forbidden';
- $phpcsFile->addError($error, $stackPtr, 'Found');
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/CharacterBeforePHPOpeningTagSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/CharacterBeforePHPOpeningTagSniff.php
deleted file mode 100644
index 4e7296c3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/CharacterBeforePHPOpeningTagSniff.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/**
- * Checks that the opening PHP tag is the first content in a file.
- *
- * @author Andy Grunwald <andygrunwald@gmail.com>
- * @copyright 2010-2014 Andy Grunwald
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class CharacterBeforePHPOpeningTagSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $expected = 0;
- if ($stackPtr > 0) {
- // Allow a shebang line.
- $tokens = $phpcsFile->getTokens();
- if (substr($tokens[0]['content'], 0, 2) === '#!') {
- $expected = 1;
- }
- }
-
- if ($stackPtr !== $expected) {
- $error = 'The opening PHP tag must be the first content in the file';
- $phpcsFile->addError($error, $stackPtr, 'Found');
- }
-
- // Skip the rest of the file so we don't pick up additional
- // open tags, typically embedded in HTML.
- return $phpcsFile->numTokens;
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ClosingPHPTagSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ClosingPHPTagSniff.php
deleted file mode 100644
index f810812c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ClosingPHPTagSniff.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Checks that open PHP tags are paired with closing tags.
- *
- * @author Stefano Kowalke <blueduck@gmx.net>
- * @copyright 2010-2014 Stefano Kowalke
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ClosingPHPTagSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $closeTag = $phpcsFile->findNext(T_CLOSE_TAG, $stackPtr);
- if ($closeTag === false) {
- $error = 'The PHP open tag does not have a corresponding PHP close tag';
- $phpcsFile->addError($error, $stackPtr, 'NotFound');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DeprecatedFunctionsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DeprecatedFunctionsSniff.php
deleted file mode 100644
index 19ca3535..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DeprecatedFunctionsSniff.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-/**
- * Discourages the use of deprecated PHP functions.
- *
- * @author Sebastian Bergmann <sb@sebastian-bergmann.de>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-class DeprecatedFunctionsSniff extends ForbiddenFunctionsSniff
-{
-
- /**
- * A list of forbidden functions with their alternatives.
- *
- * The value is NULL if no alternative exists. IE, the
- * function should just not be used.
- *
- * @var array(string => string|null)
- */
- public $forbiddenFunctions = array();
-
-
- /**
- * Constructor.
- *
- * Uses the Reflection API to get a list of deprecated functions.
- */
- public function __construct()
- {
- $functions = get_defined_functions();
-
- foreach ($functions['internal'] as $functionName) {
- $function = new \ReflectionFunction($functionName);
- if (method_exists($function, 'isDeprecated') === false) {
- break;
- }
-
- if ($function->isDeprecated() === true) {
- $this->forbiddenFunctions[$functionName] = null;
- }
- }
-
- }//end __construct()
-
-
- /**
- * Generates the error or warning for this sniff.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the forbidden function
- * in the token array.
- * @param string $function The name of the forbidden function.
- * @param string $pattern The pattern used for the match.
- *
- * @return void
- */
- protected function addError($phpcsFile, $stackPtr, $function, $pattern=null)
- {
- $data = array($function);
- $error = 'Function %s() has been deprecated';
- $type = 'Deprecated';
-
- if ($this->error === true) {
- $phpcsFile->addError($error, $stackPtr, $type, $data);
- } else {
- $phpcsFile->addWarning($error, $stackPtr, $type, $data);
- }
-
- }//end addError()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowAlternativePHPTagsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowAlternativePHPTagsSniff.php
deleted file mode 100644
index b05896a9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowAlternativePHPTagsSniff.php
+++ /dev/null
@@ -1,254 +0,0 @@
-<?php
-/**
- * Verifies that no alternative PHP tags are used.
- *
- * If alternative PHP open tags are found, this sniff can fix both the open and close tags.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-
-class DisallowAlternativePHPTagsSniff implements Sniff
-{
-
- /**
- * Whether ASP tags are enabled or not.
- *
- * @var boolean
- */
- private $aspTags = false;
-
- /**
- * The current PHP version.
- *
- * @var integer
- */
- private $phpVersion = null;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- if ($this->phpVersion === null) {
- $this->phpVersion = Config::getConfigData('php_version');
- if ($this->phpVersion === null) {
- $this->phpVersion = PHP_VERSION_ID;
- }
- }
-
- if ($this->phpVersion < 70000) {
- $this->aspTags = (boolean) ini_get('asp_tags');
- }
-
- return array(
- T_OPEN_TAG,
- T_OPEN_TAG_WITH_ECHO,
- T_INLINE_HTML,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $openTag = $tokens[$stackPtr];
- $content = $openTag['content'];
-
- if (trim($content) === '') {
- return;
- }
-
- if ($openTag['code'] === T_OPEN_TAG) {
- if ($content === '<%') {
- $error = 'ASP style opening tag used; expected "<?php" but found "%s"';
- $closer = $this->findClosingTag($phpcsFile, $tokens, $stackPtr, '%>');
- $errorCode = 'ASPOpenTagFound';
- } else if (strpos($content, '<script ') !== false) {
- $error = 'Script style opening tag used; expected "<?php" but found "%s"';
- $closer = $this->findClosingTag($phpcsFile, $tokens, $stackPtr, '</script>');
- $errorCode = 'ScriptOpenTagFound';
- }
-
- if (isset($error, $closer, $errorCode) === true) {
- $data = array($content);
-
- if ($closer === false) {
- $phpcsFile->addError($error, $stackPtr, $errorCode, $data);
- } else {
- $fix = $phpcsFile->addFixableError($error, $stackPtr, $errorCode, $data);
- if ($fix === true) {
- $this->addChangeset($phpcsFile, $tokens, $stackPtr, $closer);
- }
- }
- }
-
- return;
- }//end if
-
- if ($openTag['code'] === T_OPEN_TAG_WITH_ECHO && $content === '<%=') {
- $error = 'ASP style opening tag used with echo; expected "<?php echo %s ..." but found "%s %s ..."';
- $nextVar = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- $snippet = $this->getSnippet($tokens[$nextVar]['content']);
- $data = array(
- $snippet,
- $content,
- $snippet,
- );
-
- $closer = $this->findClosingTag($phpcsFile, $tokens, $stackPtr, '%>');
-
- if ($closer === false) {
- $phpcsFile->addError($error, $stackPtr, 'ASPShortOpenTagFound', $data);
- } else {
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ASPShortOpenTagFound', $data);
- if ($fix === true) {
- $this->addChangeset($phpcsFile, $tokens, $stackPtr, $closer, true);
- }
- }
-
- return;
- }//end if
-
- // Account for incorrect script open tags.
- // The "(?:<s)?" in the regex is to work-around a bug in PHP 5.2.
- if ($openTag['code'] === T_INLINE_HTML
- && preg_match('`((?:<s)?cript (?:[^>]+)?language=[\'"]?php[\'"]?(?:[^>]+)?>)`i', $content, $match) === 1
- ) {
- $error = 'Script style opening tag used; expected "<?php" but found "%s"';
- $snippet = $this->getSnippet($content, $match[1]);
- $data = array($match[1].$snippet);
-
- $phpcsFile->addError($error, $stackPtr, 'ScriptOpenTagFound', $data);
- return;
- }
-
- if ($openTag['code'] === T_INLINE_HTML && $this->aspTags === false) {
- if (strpos($content, '<%=') !== false) {
- $error = 'Possible use of ASP style short opening tags detected; found: %s';
- $snippet = $this->getSnippet($content, '<%=');
- $data = array('<%='.$snippet);
-
- $phpcsFile->addWarning($error, $stackPtr, 'MaybeASPShortOpenTagFound', $data);
- } else if (strpos($content, '<%') !== false) {
- $error = 'Possible use of ASP style opening tags detected; found: %s';
- $snippet = $this->getSnippet($content, '<%');
- $data = array('<%'.$snippet);
-
- $phpcsFile->addWarning($error, $stackPtr, 'MaybeASPOpenTagFound', $data);
- }
- }
-
- }//end process()
-
-
- /**
- * Get a snippet from a HTML token.
- *
- * @param string $content The content of the HTML token.
- * @param string $start Partial string to use as a starting point for the snippet.
- * @param int $length The target length of the snippet to get. Defaults to 40.
- *
- * @return string
- */
- protected function getSnippet($content, $start='', $length=40)
- {
- $startPos = 0;
-
- if ($start !== '') {
- $startPos = strpos($content, $start);
- if ($startPos !== false) {
- $startPos += strlen($start);
- }
- }
-
- $snippet = substr($content, $startPos, $length);
- if ((strlen($content) - $startPos) > $length) {
- $snippet .= '...';
- }
-
- return $snippet;
-
- }//end getSnippet()
-
-
- /**
- * Try and find a matching PHP closing tag.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tokens The token stack.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param string $content The expected content of the closing tag to match the opener.
- *
- * @return int|false Pointer to the position in the stack for the closing tag or false if not found.
- */
- protected function findClosingTag(File $phpcsFile, $tokens, $stackPtr, $content)
- {
- $closer = $phpcsFile->findNext(T_CLOSE_TAG, ($stackPtr + 1));
-
- if ($closer !== false && $content === trim($tokens[$closer]['content'])) {
- return $closer;
- }
-
- return false;
-
- }//end findClosingTag()
-
-
- /**
- * Add a changeset to replace the alternative PHP tags.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tokens The token stack.
- * @param int $openTagPointer Stack pointer to the PHP open tag.
- * @param int $closeTagPointer Stack pointer to the PHP close tag.
- * @param bool $echo Whether to add 'echo' or not.
- *
- * @return void
- */
- protected function addChangeset(File $phpcsFile, $tokens, $openTagPointer, $closeTagPointer, $echo=false)
- {
- // Build up the open tag replacement and make sure there's always whitespace behind it.
- $openReplacement = '<?php';
- if ($echo === true) {
- $openReplacement .= ' echo';
- }
-
- if ($tokens[($openTagPointer + 1)]['code'] !== T_WHITESPACE) {
- $openReplacement .= ' ';
- }
-
- // Make sure we don't remove any line breaks after the closing tag.
- $regex = '`'.preg_quote(trim($tokens[$closeTagPointer]['content'])).'`';
- $closeReplacement = preg_replace($regex, '?>', $tokens[$closeTagPointer]['content']);
-
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($openTagPointer, $openReplacement);
- $phpcsFile->fixer->replaceToken($closeTagPointer, $closeReplacement);
- $phpcsFile->fixer->endChangeset();
-
- }//end addChangeset()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php
deleted file mode 100644
index cc490e16..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php
+++ /dev/null
@@ -1,168 +0,0 @@
-<?php
-/**
- * Makes sure that shorthand PHP open tags are not used.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class DisallowShortOpenTagSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- $targets = array(
- T_OPEN_TAG,
- T_OPEN_TAG_WITH_ECHO,
- );
-
- $shortOpenTags = (boolean) ini_get('short_open_tag');
- if ($shortOpenTags === false) {
- $targets[] = T_INLINE_HTML;
- }
-
- return $targets;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $token = $tokens[$stackPtr];
-
- if ($token['code'] === T_OPEN_TAG && $token['content'] === '<?') {
- $error = 'Short PHP opening tag used; expected "<?php" but found "%s"';
- $data = array($token['content']);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found', $data);
- if ($fix === true) {
- $correctOpening = '<?php';
- if (isset($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- // Avoid creation of invalid open tags like <?phpecho if the original was <?echo .
- $correctOpening .= ' ';
- }
-
- $phpcsFile->fixer->replaceToken($stackPtr, $correctOpening);
- }
-
- $phpcsFile->recordMetric($stackPtr, 'PHP short open tag used', 'yes');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'PHP short open tag used', 'no');
- }
-
- if ($token['code'] === T_OPEN_TAG_WITH_ECHO) {
- $nextVar = $tokens[$phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 1), null, true)];
- $error = 'Short PHP opening tag used with echo; expected "<?php echo %s ..." but found "%s %s ..."';
- $data = array(
- $nextVar['content'],
- $token['content'],
- $nextVar['content'],
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'EchoFound', $data);
- if ($fix === true) {
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $phpcsFile->fixer->replaceToken($stackPtr, '<?php echo ');
- } else {
- $phpcsFile->fixer->replaceToken($stackPtr, '<?php echo');
- }
- }
- }
-
- if ($token['code'] === T_INLINE_HTML) {
- $content = $token['content'];
- $openerFound = strpos($content, '<?');
-
- if ($openerFound === false) {
- return;
- }
-
- $closerFound = false;
-
- // Inspect current token and subsequent inline HTML token to find a close tag.
- for ($i = $stackPtr; $i < $phpcsFile->numTokens; $i++) {
- if ($tokens[$i]['code'] !== T_INLINE_HTML) {
- break;
- }
-
- $closerFound = strrpos($tokens[$i]['content'], '?>');
- if ($closerFound !== false) {
- if ($i !== $stackPtr) {
- break;
- } else if ($closerFound > $openerFound) {
- break;
- } else {
- $closerFound = false;
- }
- }
- }
-
- if ($closerFound !== false) {
- $error = 'Possible use of short open tags detected; found: %s';
- $snippet = $this->getSnippet($content, '<?');
- $data = array('<?'.$snippet);
-
- $phpcsFile->addWarning($error, $stackPtr, 'PossibleFound', $data);
-
- // Skip forward to the token containing the closer.
- if (($i - 1) > $stackPtr) {
- return $i;
- }
- }
- }//end if
-
- }//end process()
-
-
- /**
- * Get a snippet from a HTML token.
- *
- * @param string $content The content of the HTML token.
- * @param string $start Partial string to use as a starting point for the snippet.
- * @param int $length The target length of the snippet to get. Defaults to 40.
- *
- * @return string
- */
- protected function getSnippet($content, $start='', $length=40)
- {
- $startPos = 0;
-
- if ($start !== '') {
- $startPos = strpos($content, $start);
- if ($startPos !== false) {
- $startPos += strlen($start);
- }
- }
-
- $snippet = substr($content, $startPos, $length);
- if ((strlen($content) - $startPos) > $length) {
- $snippet .= '...';
- }
-
- return $snippet;
-
- }//end getSnippet()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ForbiddenFunctionsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ForbiddenFunctionsSniff.php
deleted file mode 100644
index 7442bdd1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/ForbiddenFunctionsSniff.php
+++ /dev/null
@@ -1,230 +0,0 @@
-<?php
-/**
- * Discourages the use of alias functions.
- *
- * Alias functions are kept in PHP for compatibility
- * with older versions. Can be used to forbid the use of any function.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ForbiddenFunctionsSniff implements Sniff
-{
-
- /**
- * A list of forbidden functions with their alternatives.
- *
- * The value is NULL if no alternative exists. IE, the
- * function should just not be used.
- *
- * @var array<string, string|null>
- */
- public $forbiddenFunctions = array(
- 'sizeof' => 'count',
- 'delete' => 'unset',
- );
-
- /**
- * A cache of forbidden function names, for faster lookups.
- *
- * @var string[]
- */
- protected $forbiddenFunctionNames = array();
-
- /**
- * If true, forbidden functions will be considered regular expressions.
- *
- * @var boolean
- */
- protected $patternMatch = false;
-
- /**
- * If true, an error will be thrown; otherwise a warning.
- *
- * @var boolean
- */
- public $error = true;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- // Everyone has had a chance to figure out what forbidden functions
- // they want to check for, so now we can cache out the list.
- $this->forbiddenFunctionNames = array_keys($this->forbiddenFunctions);
-
- if ($this->patternMatch === true) {
- foreach ($this->forbiddenFunctionNames as $i => $name) {
- $this->forbiddenFunctionNames[$i] = '/'.$name.'/i';
- }
-
- return array(T_STRING);
- }
-
- // If we are not pattern matching, we need to work out what
- // tokens to listen for.
- $string = '<?php ';
- foreach ($this->forbiddenFunctionNames as $name) {
- $string .= $name.'();';
- }
-
- $register = array();
-
- $tokens = token_get_all($string);
- array_shift($tokens);
- foreach ($tokens as $token) {
- if (is_array($token) === true) {
- $register[] = $token[0];
- }
- }
-
- $this->forbiddenFunctionNames = array_map('strtolower', $this->forbiddenFunctionNames);
- $this->forbiddenFunctions = array_combine($this->forbiddenFunctionNames, $this->forbiddenFunctions);
-
- return array_unique($register);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $ignore = array(
- T_DOUBLE_COLON => true,
- T_OBJECT_OPERATOR => true,
- T_FUNCTION => true,
- T_CONST => true,
- T_PUBLIC => true,
- T_PRIVATE => true,
- T_PROTECTED => true,
- T_AS => true,
- T_NEW => true,
- T_INSTEADOF => true,
- T_NS_SEPARATOR => true,
- T_IMPLEMENTS => true,
- );
-
- $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
-
- // If function call is directly preceded by a NS_SEPARATOR it points to the
- // global namespace, so we should still catch it.
- if ($tokens[$prevToken]['code'] === T_NS_SEPARATOR) {
- $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($prevToken - 1), null, true);
- if ($tokens[$prevToken]['code'] === T_STRING) {
- // Not in the global namespace.
- return;
- }
- }
-
- if (isset($ignore[$tokens[$prevToken]['code']]) === true) {
- // Not a call to a PHP function.
- return;
- }
-
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if (isset($ignore[$tokens[$nextToken]['code']]) === true) {
- // Not a call to a PHP function.
- return;
- }
-
- if ($tokens[$stackPtr]['code'] === T_STRING && $tokens[$nextToken]['code'] !== T_OPEN_PARENTHESIS) {
- // Not a call to a PHP function.
- return;
- }
-
- $function = strtolower($tokens[$stackPtr]['content']);
- $pattern = null;
-
- if ($this->patternMatch === true) {
- $count = 0;
- $pattern = preg_replace(
- $this->forbiddenFunctionNames,
- $this->forbiddenFunctionNames,
- $function,
- 1,
- $count
- );
-
- if ($count === 0) {
- return;
- }
-
- // Remove the pattern delimiters and modifier.
- $pattern = substr($pattern, 1, -2);
- } else {
- if (in_array($function, $this->forbiddenFunctionNames) === false) {
- return;
- }
- }//end if
-
- $this->addError($phpcsFile, $stackPtr, $tokens[$stackPtr]['content'], $pattern);
-
- }//end process()
-
-
- /**
- * Generates the error or warning for this sniff.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the forbidden function
- * in the token array.
- * @param string $function The name of the forbidden function.
- * @param string $pattern The pattern used for the match.
- *
- * @return void
- */
- protected function addError($phpcsFile, $stackPtr, $function, $pattern=null)
- {
- $data = array($function);
- $error = 'The use of function %s() is ';
- if ($this->error === true) {
- $type = 'Found';
- $error .= 'forbidden';
- } else {
- $type = 'Discouraged';
- $error .= 'discouraged';
- }
-
- if ($pattern === null) {
- $pattern = strtolower($function);
- }
-
- if ($this->forbiddenFunctions[$pattern] !== null
- && $this->forbiddenFunctions[$pattern] !== 'null'
- ) {
- $type .= 'WithAlternative';
- $data[] = $this->forbiddenFunctions[$pattern];
- $error .= '; use %s() instead';
- }
-
- if ($this->error === true) {
- $phpcsFile->addError($error, $stackPtr, $type, $data);
- } else {
- $phpcsFile->addWarning($error, $stackPtr, $type, $data);
- }
-
- }//end addError()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php
deleted file mode 100644
index d18de1ac..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseConstantSniff.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/**
- * Checks that all uses of true, false and null are lowercase.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LowerCaseConstantSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_TRUE,
- T_FALSE,
- T_NULL,
- );
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $keyword = $tokens[$stackPtr]['content'];
- $expected = strtolower($keyword);
- if ($keyword !== $expected) {
- if ($keyword === strtoupper($keyword)) {
- $phpcsFile->recordMetric($stackPtr, 'PHP constant case', 'upper');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'PHP constant case', 'mixed');
- }
-
- $error = 'TRUE, FALSE and NULL must be lowercase; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $keyword,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, $expected);
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'PHP constant case', 'lower');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseKeywordSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseKeywordSniff.php
deleted file mode 100644
index dc88c299..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/LowerCaseKeywordSniff.php
+++ /dev/null
@@ -1,135 +0,0 @@
-<?php
-/**
- * Checks that all PHP keywords are lowercase.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LowerCaseKeywordSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_HALT_COMPILER,
- T_ABSTRACT,
- T_ARRAY,
- T_ARRAY_HINT,
- T_AS,
- T_BREAK,
- T_CALLABLE,
- T_CASE,
- T_CATCH,
- T_CLASS,
- T_CLONE,
- T_CONST,
- T_CONTINUE,
- T_DECLARE,
- T_DEFAULT,
- T_DO,
- T_ECHO,
- T_ELSE,
- T_ELSEIF,
- T_EMPTY,
- T_ENDDECLARE,
- T_ENDFOR,
- T_ENDFOREACH,
- T_ENDIF,
- T_ENDSWITCH,
- T_ENDWHILE,
- T_EVAL,
- T_EXIT,
- T_EXTENDS,
- T_FINAL,
- T_FINALLY,
- T_FOR,
- T_FOREACH,
- T_FUNCTION,
- T_GLOBAL,
- T_GOTO,
- T_IF,
- T_IMPLEMENTS,
- T_INCLUDE,
- T_INCLUDE_ONCE,
- T_INSTANCEOF,
- T_INSTEADOF,
- T_INTERFACE,
- T_ISSET,
- T_LIST,
- T_LOGICAL_AND,
- T_LOGICAL_OR,
- T_LOGICAL_XOR,
- T_NAMESPACE,
- T_NEW,
- T_PRINT,
- T_PRIVATE,
- T_PROTECTED,
- T_PUBLIC,
- T_REQUIRE,
- T_REQUIRE_ONCE,
- T_RETURN,
- T_STATIC,
- T_SWITCH,
- T_THROW,
- T_TRAIT,
- T_TRY,
- T_UNSET,
- T_USE,
- T_VAR,
- T_WHILE,
- );
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $keyword = $tokens[$stackPtr]['content'];
- if (strtolower($keyword) !== $keyword) {
- if ($keyword === strtoupper($keyword)) {
- $phpcsFile->recordMetric($stackPtr, 'PHP keyword case', 'upper');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'PHP keyword case', 'mixed');
- }
-
- $error = 'PHP keywords must be lowercase; expected "%s" but found "%s"';
- $data = array(
- strtolower($keyword),
- $keyword,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, strtolower($keyword));
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'PHP keyword case', 'lower');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/NoSilencedErrorsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/NoSilencedErrorsSniff.php
deleted file mode 100644
index c9002182..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/NoSilencedErrorsSniff.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
- * Throws an error or warning when any code prefixed with an asperand is encountered.
- *
- * <code>
- * if (@in_array($array, $needle))
- * {
- * doSomething();
- * }
- * </code>
- *
- * @author Andy Brockhurst <abrock@yahoo-inc.com>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class NoSilencedErrorsSniff implements Sniff
-{
-
- /**
- * If true, an error will be thrown; otherwise a warning.
- *
- * @var boolean
- */
- public $error = false;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_ASPERAND);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $error = 'Silencing errors is forbidden';
- if ($this->error === true) {
- $error = 'Silencing errors is forbidden';
- $phpcsFile->addError($error, $stackPtr, 'Forbidden');
- } else {
- $error = 'Silencing errors is discouraged';
- $phpcsFile->addWarning($error, $stackPtr, 'Discouraged');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/SAPIUsageSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/SAPIUsageSniff.php
deleted file mode 100644
index 983c31b2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/SAPIUsageSniff.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/**
- * Ensures the PHP_SAPI constant is used instead of php_sapi_name().
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class SAPIUsageSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_STRING);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $ignore = array(
- T_DOUBLE_COLON => true,
- T_OBJECT_OPERATOR => true,
- T_FUNCTION => true,
- T_CONST => true,
- );
-
- $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if (isset($ignore[$tokens[$prevToken]['code']]) === true) {
- // Not a call to a PHP function.
- return;
- }
-
- $function = strtolower($tokens[$stackPtr]['content']);
- if ($function === 'php_sapi_name') {
- $error = 'Use the PHP_SAPI constant instead of calling php_sapi_name()';
- $phpcsFile->addError($error, $stackPtr, 'FunctionFound');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/SyntaxSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/SyntaxSniff.php
deleted file mode 100644
index f559e180..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/SyntaxSniff.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/**
- * Ensures PHP believes the syntax is clean.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Blaine Schmeisser <blainesch@gmail.com>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-
-class SyntaxSniff implements Sniff
-{
-
- /**
- * The path to the PHP version we are checking with.
- *
- * @var string
- */
- private $phpPath = null;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- if ($this->phpPath === null) {
- $this->phpPath = Config::getExecutablePath('php');
- if ($this->phpPath === null) {
- // PHP_BINARY is available in PHP 5.4+.
- if (defined('PHP_BINARY') === true) {
- $this->phpPath = PHP_BINARY;
- } else {
- return;
- }
- }
- }
-
- $fileName = escapeshellarg($phpcsFile->getFilename());
- if (defined('HHVM_VERSION') === false) {
- $cmd = escapeshellcmd($this->phpPath)." -l -d error_prepend_string='' $fileName 2>&1";
- } else {
- $cmd = escapeshellcmd($this->phpPath)." -l $fileName 2>&1";
- }
-
- $output = shell_exec($cmd);
- $matches = array();
- if (preg_match('/^.*error:(.*) in .* on line ([0-9]+)/m', trim($output), $matches) === 1) {
- $error = trim($matches[1]);
- $line = (int) $matches[2];
- $phpcsFile->addErrorOnLine("PHP syntax error: $error", $line, 'PHPSyntax');
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/UpperCaseConstantSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/UpperCaseConstantSniff.php
deleted file mode 100644
index d8d20039..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/UpperCaseConstantSniff.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/**
- * Checks that all uses of TRUE, FALSE and NULL are uppercase.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class UpperCaseConstantSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_TRUE,
- T_FALSE,
- T_NULL,
- );
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $keyword = $tokens[$stackPtr]['content'];
- $expected = strtoupper($keyword);
- if ($keyword !== $expected) {
- if ($keyword === strtolower($keyword)) {
- $phpcsFile->recordMetric($stackPtr, 'PHP constant case', 'lower');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'PHP constant case', 'mixed');
- }
-
- $error = 'TRUE, FALSE and NULL must be uppercase; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $keyword,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, $expected);
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'PHP constant case', 'upper');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Strings/UnnecessaryStringConcatSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Strings/UnnecessaryStringConcatSniff.php
deleted file mode 100644
index 52d973d6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Strings/UnnecessaryStringConcatSniff.php
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-/**
- * Checks that two strings are not concatenated together; suggests using one string instead.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\Strings;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class UnnecessaryStringConcatSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * If true, an error will be thrown; otherwise a warning.
- *
- * @var boolean
- */
- public $error = true;
-
- /**
- * If true, strings concatenated over multiple lines are allowed.
- *
- * Useful if you break strings over multiple lines to work
- * within a max line length.
- *
- * @var boolean
- */
- public $allowMultiline = false;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_STRING_CONCAT,
- T_PLUS,
- );
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- // Work out which type of file this is for.
- $tokens = $phpcsFile->getTokens();
- if ($tokens[$stackPtr]['code'] === T_STRING_CONCAT) {
- if ($phpcsFile->tokenizerType === 'JS') {
- return;
- }
- } else {
- if ($phpcsFile->tokenizerType === 'PHP') {
- return;
- }
- }
-
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($prev === false || $next === false) {
- return;
- }
-
- if (isset(Tokens::$stringTokens[$tokens[$prev]['code']]) === true
- && isset(Tokens::$stringTokens[$tokens[$next]['code']]) === true
- ) {
- if ($tokens[$prev]['content'][0] === $tokens[$next]['content'][0]) {
- // Before we throw an error for PHP, allow strings to be
- // combined if they would have < and ? next to each other because
- // this trick is sometimes required in PHP strings.
- if ($phpcsFile->tokenizerType === 'PHP') {
- $prevChar = substr($tokens[$prev]['content'], -2, 1);
- $nextChar = $tokens[$next]['content'][1];
- $combined = $prevChar.$nextChar;
- if ($combined === '?'.'>' || $combined === '<'.'?') {
- return;
- }
- }
-
- if ($this->allowMultiline === true
- && $tokens[$prev]['line'] !== $tokens[$next]['line']
- ) {
- return;
- }
-
- $error = 'String concat is not required here; use a single string instead';
- if ($this->error === true) {
- $phpcsFile->addError($error, $stackPtr, 'Found');
- } else {
- $phpcsFile->addWarning($error, $stackPtr, 'Found');
- }
- }//end if
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/VersionControl/SubversionPropertiesSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/VersionControl/SubversionPropertiesSniff.php
deleted file mode 100644
index e1533f52..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/VersionControl/SubversionPropertiesSniff.php
+++ /dev/null
@@ -1,192 +0,0 @@
-<?php
-/**
- * Tests that the correct Subversion properties are set.
- *
- * @author Jack Bates <ms419@freezone.co.uk>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl;
-
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class SubversionPropertiesSniff implements Sniff
-{
-
- /**
- * The Subversion properties that should be set.
- *
- * Key of array is the SVN property and the value is the
- * exact value the property should have or NULL if the
- * property should just be set but the value is not fixed.
- *
- * @var array
- */
- protected $properties = array(
- 'svn:keywords' => 'Author Id Revision',
- 'svn:eol-style' => 'native',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Make sure this is the first PHP open tag so we don't process the
- // same file twice.
- $prevOpenTag = $phpcsFile->findPrevious(T_OPEN_TAG, ($stackPtr - 1));
- if ($prevOpenTag !== false) {
- return;
- }
-
- $path = $phpcsFile->getFileName();
- $properties = $this->getProperties($path);
- if ($properties === null) {
- // Not under version control.
- return;
- }
-
- $allProperties = ($properties + $this->properties);
- foreach ($allProperties as $key => $value) {
- if (isset($properties[$key]) === true
- && isset($this->properties[$key]) === false
- ) {
- $error = 'Unexpected Subversion property "%s" = "%s"';
- $data = array(
- $key,
- $properties[$key],
- );
- $phpcsFile->addError($error, $stackPtr, 'Unexpected', $data);
- continue;
- }
-
- if (isset($properties[$key]) === false
- && isset($this->properties[$key]) === true
- ) {
- $error = 'Missing Subversion property "%s" = "%s"';
- $data = array(
- $key,
- $this->properties[$key],
- );
- $phpcsFile->addError($error, $stackPtr, 'Missing', $data);
- continue;
- }
-
- if ($properties[$key] !== null
- && $properties[$key] !== $this->properties[$key]
- ) {
- $error = 'Subversion property "%s" = "%s" does not match "%s"';
- $data = array(
- $key,
- $properties[$key],
- $this->properties[$key],
- );
- $phpcsFile->addError($error, $stackPtr, 'NoMatch', $data);
- }
- }//end foreach
-
- }//end process()
-
-
- /**
- * Returns the Subversion properties which are actually set on a path.
- *
- * Returns NULL if the file is not under version control.
- *
- * @param string $path The path to return Subversion properties on.
- *
- * @return array
- * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If Subversion properties file could
- * not be opened.
- */
- protected function getProperties($path)
- {
- $properties = array();
-
- $paths = array();
- $paths[] = dirname($path).'/.svn/props/'.basename($path).'.svn-work';
- $paths[] = dirname($path).'/.svn/prop-base/'.basename($path).'.svn-base';
-
- $foundPath = false;
- foreach ($paths as $path) {
- if (file_exists($path) === true) {
- $foundPath = true;
-
- $handle = fopen($path, 'r');
- if ($handle === false) {
- $error = 'Error opening file; could not get Subversion properties';
- throw new RuntimeException($error);
- }
-
- while (feof($handle) === false) {
- // Read a key length line. Might be END, though.
- $buffer = trim(fgets($handle));
-
- // Check for the end of the hash.
- if ($buffer === 'END') {
- break;
- }
-
- // Now read that much into a buffer.
- $key = fread($handle, substr($buffer, 2));
-
- // Suck up extra newline after key data.
- fgetc($handle);
-
- // Read a value length line.
- $buffer = trim(fgets($handle));
-
- // Now read that much into a buffer.
- $length = substr($buffer, 2);
- if ($length === '0') {
- // Length of value is ZERO characters, so
- // value is actually empty.
- $value = '';
- } else {
- $value = fread($handle, $length);
- }
-
- // Suck up extra newline after value data.
- fgetc($handle);
-
- $properties[$key] = $value;
- }//end while
-
- fclose($handle);
- }//end if
- }//end foreach
-
- if ($foundPath === false) {
- return null;
- }
-
- return $properties;
-
- }//end getProperties()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/DisallowSpaceIndentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/DisallowSpaceIndentSniff.php
deleted file mode 100644
index 4218410a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/DisallowSpaceIndentSniff.php
+++ /dev/null
@@ -1,170 +0,0 @@
-<?php
-/**
- * Throws errors if spaces are used for indentation other than precision indentation.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowSpaceIndentSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- 'CSS',
- );
-
- /**
- * The --tab-width CLI value that is being used.
- *
- * @var integer
- */
- private $tabWidth = null;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile All the tokens found in the document.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- if ($this->tabWidth === null) {
- if (isset($phpcsFile->config->tabWidth) === false || $phpcsFile->config->tabWidth === 0) {
- // We have no idea how wide tabs are, so assume 4 spaces for fixing.
- // It shouldn't really matter because indent checks elsewhere in the
- // standard should fix things up.
- $this->tabWidth = 4;
- } else {
- $this->tabWidth = $phpcsFile->config->tabWidth;
- }
- }
-
- $checkTokens = array(
- T_WHITESPACE => true,
- T_INLINE_HTML => true,
- T_DOC_COMMENT_WHITESPACE => true,
- );
-
- $tokens = $phpcsFile->getTokens();
- for ($i = ($stackPtr + 1); $i < $phpcsFile->numTokens; $i++) {
- if ($tokens[$i]['column'] !== 1 || isset($checkTokens[$tokens[$i]['code']]) === false) {
- continue;
- }
-
- // If tabs are being converted to spaces by the tokeniser, the
- // original content should be checked instead of the converted content.
- if (isset($tokens[$i]['orig_content']) === true) {
- $content = $tokens[$i]['orig_content'];
- } else {
- $content = $tokens[$i]['content'];
- }
-
- // If this is an inline HTML token, split the content into
- // indentation whitespace and the actual HTML/text.
- $nonWhitespace = '';
- if ($tokens[$i]['code'] === T_INLINE_HTML && preg_match('`^(\s*)(\S.*)`s', $content, $matches) > 0) {
- if (isset($matches[1]) === true) {
- $content = $matches[1];
- }
-
- if (isset($matches[2]) === true) {
- $nonWhitespace = $matches[2];
- }
- }
-
- $hasSpaces = strpos($content, ' ');
- $hasTabs = strpos($content, "\t");
-
- if ($hasSpaces === false && $hasTabs === false) {
- // Empty line.
- continue;
- }
-
- if ($hasSpaces === false && $hasTabs !== false) {
- // All ok, nothing to do.
- $phpcsFile->recordMetric($i, 'Line indent', 'tabs');
- continue;
- }
-
- if ($tokens[$i]['code'] === T_DOC_COMMENT_WHITESPACE && $content === ' ') {
- // Ignore file/class-level DocBlock, especially for recording metrics.
- continue;
- }
-
- // OK, by now we know there will be spaces.
- // We just don't know yet whether they need to be replaced or
- // are precision indentation, nor whether they are correctly
- // placed at the end of the whitespace.
- $trimmed = str_replace(' ', '', $content);
- $numSpaces = (strlen($content) - strlen($trimmed));
- $numTabs = (int) floor($numSpaces / $this->tabWidth);
- $tabAfterSpaces = strpos($content, "\t", $hasSpaces);
-
- if ($hasTabs === false) {
- $phpcsFile->recordMetric($i, 'Line indent', 'spaces');
-
- if ($numTabs === 0) {
- // Ignore: precision indentation.
- continue;
- }
- } else {
- if ($numTabs === 0) {
- // Precision indentation.
- $phpcsFile->recordMetric($i, 'Line indent', 'tabs');
-
- if ($tabAfterSpaces === false) {
- // Ignore: precision indentation is already at the
- // end of the whitespace.
- continue;
- }
- } else {
- $phpcsFile->recordMetric($i, 'Line indent', 'mixed');
- }
- }//end if
-
- $error = 'Tabs must be used to indent lines; spaces are not allowed';
- $fix = $phpcsFile->addFixableError($error, $i, 'SpacesUsed');
- if ($fix === true) {
- $remaining = ($numSpaces % $this->tabWidth);
- $padding = str_repeat("\t", $numTabs);
- $padding .= str_repeat(' ', $remaining);
- $phpcsFile->fixer->replaceToken($i, $trimmed.$padding.$nonWhitespace);
- }
- }//end for
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php
deleted file mode 100644
index 9db1a2bd..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-/**
- * Throws errors if tabs are used for indentation.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowTabIndentSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- 'CSS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile All the tokens found in the document.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $error = 'Spaces must be used to indent lines; tabs are not allowed';
- $errorCode = 'TabsUsed';
-
- $checkTokens = array(
- T_WHITESPACE => true,
- T_INLINE_HTML => true,
- T_DOC_COMMENT_WHITESPACE => true,
- T_DOC_COMMENT_STRING => true,
- );
-
- for ($i = ($stackPtr + 1); $i < $phpcsFile->numTokens; $i++) {
- if (isset($checkTokens[$tokens[$i]['code']]) === false) {
- continue;
- }
-
- // If tabs are being converted to spaces by the tokeniser, the
- // original content should be checked instead of the converted content.
- if (isset($tokens[$i]['orig_content']) === true) {
- $content = $tokens[$i]['orig_content'];
- } else {
- $content = $tokens[$i]['content'];
- }
-
- if ($content === '') {
- continue;
- }
-
- if ($tokens[$i]['code'] === T_DOC_COMMENT_WHITESPACE && $content === ' ') {
- // Ignore file/class-level DocBlock, especially for recording metrics.
- continue;
- }
-
- $tabFound = false;
- if ($tokens[$i]['column'] === 1) {
- if ($content[0] === "\t") {
- $phpcsFile->recordMetric($i, 'Line indent', 'tabs');
- $tabFound = true;
- } else if ($content[0] === ' ') {
- if (strpos($content, "\t") !== false) {
- $phpcsFile->recordMetric($i, 'Line indent', 'mixed');
- $tabFound = true;
- } else {
- $phpcsFile->recordMetric($i, 'Line indent', 'spaces');
- }
- }
- } else {
- // Look for tabs so we can report and replace, but don't
- // record any metrics about them because they aren't
- // line indent tokens.
- if (strpos($content, "\t") !== false) {
- $tabFound = true;
- $error = 'Spaces must be used for alignment; tabs are not allowed';
- $errorCode = 'NonIndentTabsUsed';
- }
- }//end if
-
- if ($tabFound === false) {
- continue;
- }
-
- $fix = $phpcsFile->addFixableError($error, $i, $errorCode);
- if ($fix === true) {
- if (isset($tokens[$i]['orig_content']) === true) {
- // Use the replacement that PHPCS has already done.
- $phpcsFile->fixer->replaceToken($i, $tokens[$i]['content']);
- } else {
- // Replace tabs with spaces, using an indent of 4 spaces.
- // Other sniffs can then correct the indent if they need to.
- $newContent = str_replace("\t", ' ', $tokens[$i]['content']);
- $phpcsFile->fixer->replaceToken($i, $newContent);
- }
- }
- }//end for
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php
deleted file mode 100644
index ed20e201..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php
+++ /dev/null
@@ -1,1263 +0,0 @@
-<?php
-/**
- * Checks that control structures are defined and indented correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-use PHP_CodeSniffer\Config;
-
-class ScopeIndentSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
- /**
- * Does the indent need to be exactly right?
- *
- * If TRUE, indent needs to be exactly $indent spaces. If FALSE,
- * indent needs to be at least $indent spaces (but can be more).
- *
- * @var boolean
- */
- public $exact = false;
-
- /**
- * Should tabs be used for indenting?
- *
- * If TRUE, fixes will be made using tabs instead of spaces.
- * The size of each tab is important, so it should be specified
- * using the --tab-width CLI argument.
- *
- * @var boolean
- */
- public $tabIndent = false;
-
- /**
- * The --tab-width CLI value that is being used.
- *
- * @var integer
- */
- private $tabWidth = null;
-
- /**
- * List of tokens not needing to be checked for indentation.
- *
- * Useful to allow Sniffs based on this to easily ignore/skip some
- * tokens from verification. For example, inline HTML sections
- * or PHP open/close tags can escape from here and have their own
- * rules elsewhere.
- *
- * @var int[]
- */
- public $ignoreIndentationTokens = array();
-
- /**
- * List of tokens not needing to be checked for indentation.
- *
- * This is a cached copy of the public version of this var, which
- * can be set in a ruleset file, and some core ignored tokens.
- *
- * @var int[]
- */
- private $ignoreIndentation = array();
-
- /**
- * Any scope openers that should not cause an indent.
- *
- * @var int[]
- */
- protected $nonIndentingScopes = array();
-
- /**
- * Show debug output for this sniff.
- *
- * @var boolean
- */
- private $debug = false;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- if (defined('PHP_CODESNIFFER_IN_TESTS') === true) {
- $this->debug = false;
- }
-
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile All the tokens found in the document.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $debug = Config::getConfigData('scope_indent_debug');
- if ($debug !== null) {
- $this->debug = (bool) $debug;
- }
-
- if ($this->tabWidth === null) {
- if (isset($phpcsFile->config->tabWidth) === false || $phpcsFile->config->tabWidth === 0) {
- // We have no idea how wide tabs are, so assume 4 spaces for fixing.
- // It shouldn't really matter because indent checks elsewhere in the
- // standard should fix things up.
- $this->tabWidth = 4;
- } else {
- $this->tabWidth = $phpcsFile->config->tabWidth;
- }
- }
-
- $currentIndent = 0;
- $lastOpenTag = $stackPtr;
- $lastCloseTag = null;
- $openScopes = array();
- $adjustments = array();
- $setIndents = array();
-
- $tokens = $phpcsFile->getTokens();
- $first = $phpcsFile->findFirstOnLine(T_INLINE_HTML, $stackPtr);
- $trimmed = ltrim($tokens[$first]['content']);
- if ($trimmed === '') {
- $currentIndent = ($tokens[$stackPtr]['column'] - 1);
- } else {
- $currentIndent = (strlen($tokens[$first]['content']) - strlen($trimmed));
- }
-
- if ($this->debug === true) {
- $line = $tokens[$stackPtr]['line'];
- echo "Start with token $stackPtr on line $line with indent $currentIndent".PHP_EOL;
- }
-
- if (empty($this->ignoreIndentation) === true) {
- $this->ignoreIndentation = array(T_INLINE_HTML => true);
- foreach ($this->ignoreIndentationTokens as $token) {
- if (is_int($token) === false) {
- if (defined($token) === false) {
- continue;
- }
-
- $token = constant($token);
- }
-
- $this->ignoreIndentation[$token] = true;
- }
- }//end if
-
- $this->exact = (bool) $this->exact;
- $this->tabIndent = (bool) $this->tabIndent;
-
- for ($i = ($stackPtr + 1); $i < $phpcsFile->numTokens; $i++) {
- if ($i === false) {
- // Something has gone very wrong; maybe a parse error.
- break;
- }
-
- $checkToken = null;
- $checkIndent = null;
-
- $exact = (bool) $this->exact;
- if ($exact === true && isset($tokens[$i]['nested_parenthesis']) === true) {
- // Don't check indents exactly between parenthesis as they
- // tend to have custom rules, such as with multi-line function calls
- // and control structure conditions.
- $exact = false;
- }
-
- // Detect line changes and figure out where the indent is.
- if ($tokens[$i]['column'] === 1) {
- $trimmed = ltrim($tokens[$i]['content']);
- if ($trimmed === '') {
- if (isset($tokens[($i + 1)]) === true
- && $tokens[$i]['line'] === $tokens[($i + 1)]['line']
- ) {
- $checkToken = ($i + 1);
- $tokenIndent = ($tokens[($i + 1)]['column'] - 1);
- }
- } else {
- $checkToken = $i;
- $tokenIndent = (strlen($tokens[$i]['content']) - strlen($trimmed));
- }
- }
-
- // Closing parenthesis should just be indented to at least
- // the same level as where they were opened (but can be more).
- if (($checkToken !== null
- && $tokens[$checkToken]['code'] === T_CLOSE_PARENTHESIS
- && isset($tokens[$checkToken]['parenthesis_opener']) === true)
- || ($tokens[$i]['code'] === T_CLOSE_PARENTHESIS
- && isset($tokens[$i]['parenthesis_opener']) === true)
- ) {
- if ($checkToken !== null) {
- $parenCloser = $checkToken;
- } else {
- $parenCloser = $i;
- }
-
- if ($this->debug === true) {
- $line = $tokens[$i]['line'];
- echo "Closing parenthesis found on line $line".PHP_EOL;
- }
-
- $parenOpener = $tokens[$parenCloser]['parenthesis_opener'];
- if ($tokens[$parenCloser]['line'] !== $tokens[$parenOpener]['line']) {
- $parens = 0;
- if (isset($tokens[$parenCloser]['nested_parenthesis']) === true
- && empty($tokens[$parenCloser]['nested_parenthesis']) === false
- ) {
- end($tokens[$parenCloser]['nested_parenthesis']);
- $parens = key($tokens[$parenCloser]['nested_parenthesis']);
- if ($this->debug === true) {
- $line = $tokens[$parens]['line'];
- echo "\t* token has nested parenthesis $parens on line $line *".PHP_EOL;
- }
- }
-
- $condition = 0;
- if (isset($tokens[$parenCloser]['conditions']) === true
- && empty($tokens[$parenCloser]['conditions']) === false
- ) {
- end($tokens[$parenCloser]['conditions']);
- $condition = key($tokens[$parenCloser]['conditions']);
- if ($this->debug === true) {
- $line = $tokens[$condition]['line'];
- $type = $tokens[$condition]['type'];
- echo "\t* token is inside condition $condition ($type) on line $line *".PHP_EOL;
- }
- }
-
- if ($parens > $condition) {
- if ($this->debug === true) {
- echo "\t* using parenthesis *".PHP_EOL;
- }
-
- $parenOpener = $parens;
- $condition = 0;
- } else if ($condition > 0) {
- if ($this->debug === true) {
- echo "\t* using condition *".PHP_EOL;
- }
-
- $parenOpener = $condition;
- $parens = 0;
- }
-
- $exact = false;
-
- $lastOpenTagConditions = array_keys($tokens[$lastOpenTag]['conditions']);
- $lastOpenTagCondition = array_pop($lastOpenTagConditions);
-
- if ($condition > 0 && $lastOpenTagCondition === $condition) {
- if ($this->debug === true) {
- echo "\t* open tag is inside condition; using open tag *".PHP_EOL;
- }
-
- $checkIndent = ($tokens[$lastOpenTag]['column'] - 1);
- if (isset($adjustments[$condition]) === true) {
- $checkIndent += $adjustments[$condition];
- }
-
- $currentIndent = $checkIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$lastOpenTag]['type'];
- echo "\t=> checking indent of $checkIndent; main indent set to $currentIndent by token $lastOpenTag ($type)".PHP_EOL;
- }
- } else if ($condition > 0
- && isset($tokens[$condition]['scope_opener']) === true
- && isset($setIndents[$tokens[$condition]['scope_opener']]) === true
- ) {
- $checkIndent = $setIndents[$tokens[$condition]['scope_opener']];
- if (isset($adjustments[$condition]) === true) {
- $checkIndent += $adjustments[$condition];
- }
-
- $currentIndent = $checkIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$condition]['type'];
- echo "\t=> checking indent of $checkIndent; main indent set to $currentIndent by token $condition ($type)".PHP_EOL;
- }
- } else {
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $parenOpener, true);
-
- $checkIndent = ($tokens[$first]['column'] - 1);
- if (isset($adjustments[$first]) === true) {
- $checkIndent += $adjustments[$first];
- }
-
- if ($this->debug === true) {
- $line = $tokens[$first]['line'];
- $type = $tokens[$first]['type'];
- echo "\t* first token on line $line is $first ($type) *".PHP_EOL;
- }
-
- if ($first === $tokens[$parenCloser]['parenthesis_opener']) {
- // This is unlikely to be the start of the statement, so look
- // back further to find it.
- $first--;
- }
-
- $prev = $phpcsFile->findStartOfStatement($first, T_COMMA);
- if ($prev !== $first) {
- // This is not the start of the statement.
- if ($this->debug === true) {
- $line = $tokens[$prev]['line'];
- $type = $tokens[$prev]['type'];
- echo "\t* previous is $type on line $line *".PHP_EOL;
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $prev, true);
- $prev = $phpcsFile->findStartOfStatement($first, T_COMMA);
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $prev, true);
- if ($this->debug === true) {
- $line = $tokens[$first]['line'];
- $type = $tokens[$first]['type'];
- echo "\t* amended first token is $first ($type) on line $line *".PHP_EOL;
- }
- }
-
- if (isset($tokens[$first]['scope_closer']) === true
- && $tokens[$first]['scope_closer'] === $first
- ) {
- if ($this->debug === true) {
- echo "\t* first token is a scope closer *".PHP_EOL;
- }
-
- if (isset($tokens[$first]['scope_condition']) === true) {
- $scopeCloser = $first;
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $tokens[$scopeCloser]['scope_condition'], true);
-
- $currentIndent = ($tokens[$first]['column'] - 1);
- if (isset($adjustments[$first]) === true) {
- $currentIndent += $adjustments[$first];
- }
-
- // Make sure it is divisible by our expected indent.
- if ($tokens[$tokens[$scopeCloser]['scope_condition']]['code'] !== T_CLOSURE) {
- $currentIndent = (int) (ceil($currentIndent / $this->indent) * $this->indent);
- }
-
- $setIndents[$first] = $currentIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$first]['type'];
- echo "\t=> indent set to $currentIndent by token $first ($type)".PHP_EOL;
- }
- }//end if
- } else {
- // Don't force current indent to divisible because there could be custom
- // rules in place between parenthesis, such as with arrays.
- $currentIndent = ($tokens[$first]['column'] - 1);
- if (isset($adjustments[$first]) === true) {
- $currentIndent += $adjustments[$first];
- }
-
- $setIndents[$first] = $currentIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$first]['type'];
- echo "\t=> checking indent of $checkIndent; main indent set to $currentIndent by token $first ($type)".PHP_EOL;
- }
- }//end if
- }//end if
- } else if ($this->debug === true) {
- echo "\t * ignoring single-line definition *".PHP_EOL;
- }//end if
- }//end if
-
- // Closing short array bracket should just be indented to at least
- // the same level as where it was opened (but can be more).
- if ($tokens[$i]['code'] === T_CLOSE_SHORT_ARRAY
- || ($checkToken !== null
- && $tokens[$checkToken]['code'] === T_CLOSE_SHORT_ARRAY)
- ) {
- if ($checkToken !== null) {
- $arrayCloser = $checkToken;
- } else {
- $arrayCloser = $i;
- }
-
- if ($this->debug === true) {
- $line = $tokens[$arrayCloser]['line'];
- echo "Closing short array bracket found on line $line".PHP_EOL;
- }
-
- $arrayOpener = $tokens[$arrayCloser]['bracket_opener'];
- if ($tokens[$arrayCloser]['line'] !== $tokens[$arrayOpener]['line']) {
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $arrayOpener, true);
- $checkIndent = ($tokens[$first]['column'] - 1);
- if (isset($adjustments[$first]) === true) {
- $checkIndent += $adjustments[$first];
- }
-
- $exact = false;
-
- if ($this->debug === true) {
- $line = $tokens[$first]['line'];
- $type = $tokens[$first]['type'];
- echo "\t* first token on line $line is $first ($type) *".PHP_EOL;
- }
-
- if ($first === $tokens[$arrayCloser]['bracket_opener']) {
- // This is unlikely to be the start of the statement, so look
- // back further to find it.
- $first--;
- }
-
- $prev = $phpcsFile->findStartOfStatement($first, array(T_COMMA, T_DOUBLE_ARROW));
- if ($prev !== $first) {
- // This is not the start of the statement.
- if ($this->debug === true) {
- $line = $tokens[$prev]['line'];
- $type = $tokens[$prev]['type'];
- echo "\t* previous is $type on line $line *".PHP_EOL;
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $prev, true);
- $prev = $phpcsFile->findStartOfStatement($first, array(T_COMMA, T_DOUBLE_ARROW));
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $prev, true);
- if ($this->debug === true) {
- $line = $tokens[$first]['line'];
- $type = $tokens[$first]['type'];
- echo "\t* amended first token is $first ($type) on line $line *".PHP_EOL;
- }
- } else if ($tokens[$first]['code'] === T_WHITESPACE) {
- $first = $phpcsFile->findNext(T_WHITESPACE, ($first + 1), null, true);
- }
-
- if (isset($tokens[$first]['scope_closer']) === true
- && $tokens[$first]['scope_closer'] === $first
- ) {
- // The first token is a scope closer and would have already
- // been processed and set the indent level correctly, so
- // don't adjust it again.
- if ($this->debug === true) {
- echo "\t* first token is a scope closer; ignoring closing short array bracket *".PHP_EOL;
- }
-
- if (isset($setIndents[$first]) === true) {
- $currentIndent = $setIndents[$first];
- if ($this->debug === true) {
- echo "\t=> indent reset to $currentIndent".PHP_EOL;
- }
- }
- } else {
- // Don't force current indent to be divisible because there could be custom
- // rules in place for arrays.
- $currentIndent = ($tokens[$first]['column'] - 1);
- if (isset($adjustments[$first]) === true) {
- $currentIndent += $adjustments[$first];
- }
-
- $setIndents[$first] = $currentIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$first]['type'];
- echo "\t=> checking indent of $checkIndent; main indent set to $currentIndent by token $first ($type)".PHP_EOL;
- }
- }//end if
- } else if ($this->debug === true) {
- echo "\t * ignoring single-line definition *".PHP_EOL;
- }//end if
- }//end if
-
- // Adjust lines within scopes while auto-fixing.
- if ($checkToken !== null
- && $exact === false
- && (empty($tokens[$checkToken]['conditions']) === false
- || (isset($tokens[$checkToken]['scope_opener']) === true
- && $tokens[$checkToken]['scope_opener'] === $checkToken))
- ) {
- if (empty($tokens[$checkToken]['conditions']) === false) {
- end($tokens[$checkToken]['conditions']);
- $condition = key($tokens[$checkToken]['conditions']);
- } else {
- $condition = $tokens[$checkToken]['scope_condition'];
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $condition, true);
-
- if (isset($adjustments[$first]) === true
- && (($adjustments[$first] < 0 && $tokenIndent > $currentIndent)
- || ($adjustments[$first] > 0 && $tokenIndent < $currentIndent))
- ) {
- $padding = ($tokenIndent + $adjustments[$first]);
- if ($padding > 0) {
- if ($this->tabIndent === true) {
- $numTabs = floor($padding / $this->tabWidth);
- $numSpaces = ($padding - ($numTabs * $this->tabWidth));
- $padding = str_repeat("\t", $numTabs).str_repeat(' ', $numSpaces);
- } else {
- $padding = str_repeat(' ', $padding);
- }
- } else {
- $padding = '';
- }
-
- if ($phpcsFile->fixer->enabled === true) {
- if ($checkToken === $i) {
- $phpcsFile->fixer->replaceToken($checkToken, $padding.$trimmed);
- } else {
- // Easier to just replace the entire indent.
- $phpcsFile->fixer->replaceToken(($checkToken - 1), $padding);
- }
- }
-
- if ($this->debug === true) {
- $length = strlen($padding);
- $line = $tokens[$checkToken]['line'];
- $type = $tokens[$checkToken]['type'];
- echo "Indent adjusted to $length for $type on line $line".PHP_EOL;
- }
-
- $adjustments[$checkToken] = $adjustments[$first];
-
- if ($this->debug === true) {
- $line = $tokens[$checkToken]['line'];
- $type = $tokens[$checkToken]['type'];
- echo "\t=> Add adjustment of ".$adjustments[$checkToken]." for token $checkToken ($type) on line $line".PHP_EOL;
- }
- }//end if
- }//end if
-
- // Scope closers reset the required indent to the same level as the opening condition.
- if (($checkToken !== null
- && isset($openScopes[$checkToken]) === true
- || (isset($tokens[$checkToken]['scope_condition']) === true
- && isset($tokens[$checkToken]['scope_closer']) === true
- && $tokens[$checkToken]['scope_closer'] === $checkToken
- && $tokens[$checkToken]['line'] !== $tokens[$tokens[$checkToken]['scope_opener']]['line']))
- || ($checkToken === null
- && isset($openScopes[$i]) === true
- || (isset($tokens[$i]['scope_condition']) === true
- && isset($tokens[$i]['scope_closer']) === true
- && $tokens[$i]['scope_closer'] === $i
- && $tokens[$i]['line'] !== $tokens[$tokens[$i]['scope_opener']]['line']))
- ) {
- if ($this->debug === true) {
- if ($checkToken === null) {
- $type = $tokens[$tokens[$i]['scope_condition']]['type'];
- $line = $tokens[$i]['line'];
- } else {
- $type = $tokens[$tokens[$checkToken]['scope_condition']]['type'];
- $line = $tokens[$checkToken]['line'];
- }
-
- echo "Close scope ($type) on line $line".PHP_EOL;
- }
-
- $scopeCloser = $checkToken;
- if ($scopeCloser === null) {
- $scopeCloser = $i;
- } else {
- array_pop($openScopes);
- }
-
- if (isset($tokens[$scopeCloser]['scope_condition']) === true) {
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $tokens[$scopeCloser]['scope_condition'], true);
-
- $currentIndent = ($tokens[$first]['column'] - 1);
- if (isset($adjustments[$first]) === true) {
- $currentIndent += $adjustments[$first];
- }
-
- // Make sure it is divisible by our expected indent.
- if ($tokens[$tokens[$scopeCloser]['scope_condition']]['code'] !== T_CLOSURE) {
- $currentIndent = (int) (ceil($currentIndent / $this->indent) * $this->indent);
- }
-
- $setIndents[$scopeCloser] = $currentIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$scopeCloser]['type'];
- echo "\t=> indent set to $currentIndent by token $scopeCloser ($type)".PHP_EOL;
- }
-
- // We only check the indent of scope closers if they are
- // curly braces because other constructs tend to have different rules.
- if ($tokens[$scopeCloser]['code'] === T_CLOSE_CURLY_BRACKET) {
- $exact = true;
- } else {
- $checkToken = null;
- }
- }//end if
- }//end if
-
- // Handle scope for JS object notation.
- if ($phpcsFile->tokenizerType === 'JS'
- && (($checkToken !== null
- && $tokens[$checkToken]['code'] === T_CLOSE_OBJECT
- && $tokens[$checkToken]['line'] !== $tokens[$tokens[$checkToken]['bracket_opener']]['line'])
- || ($checkToken === null
- && $tokens[$i]['code'] === T_CLOSE_OBJECT
- && $tokens[$i]['line'] !== $tokens[$tokens[$i]['bracket_opener']]['line']))
- ) {
- if ($this->debug === true) {
- $line = $tokens[$i]['line'];
- echo "Close JS object on line $line".PHP_EOL;
- }
-
- $scopeCloser = $checkToken;
- if ($scopeCloser === null) {
- $scopeCloser = $i;
- } else {
- array_pop($openScopes);
- }
-
- $parens = 0;
- if (isset($tokens[$scopeCloser]['nested_parenthesis']) === true
- && empty($tokens[$scopeCloser]['nested_parenthesis']) === false
- ) {
- end($tokens[$scopeCloser]['nested_parenthesis']);
- $parens = key($tokens[$scopeCloser]['nested_parenthesis']);
- if ($this->debug === true) {
- $line = $tokens[$parens]['line'];
- echo "\t* token has nested parenthesis $parens on line $line *".PHP_EOL;
- }
- }
-
- $condition = 0;
- if (isset($tokens[$scopeCloser]['conditions']) === true
- && empty($tokens[$scopeCloser]['conditions']) === false
- ) {
- end($tokens[$scopeCloser]['conditions']);
- $condition = key($tokens[$scopeCloser]['conditions']);
- if ($this->debug === true) {
- $line = $tokens[$condition]['line'];
- $type = $tokens[$condition]['type'];
- echo "\t* token is inside condition $condition ($type) on line $line *".PHP_EOL;
- }
- }
-
- if ($parens > $condition) {
- if ($this->debug === true) {
- echo "\t* using parenthesis *".PHP_EOL;
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $parens, true);
- $condition = 0;
- } else if ($condition > 0) {
- if ($this->debug === true) {
- echo "\t* using condition *".PHP_EOL;
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $condition, true);
- $parens = 0;
- } else {
- if ($this->debug === true) {
- $line = $tokens[$tokens[$scopeCloser]['bracket_opener']]['line'];
- echo "\t* token is not in parenthesis or condition; using opener on line $line *".PHP_EOL;
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $tokens[$scopeCloser]['bracket_opener'], true);
- }//end if
-
- $currentIndent = ($tokens[$first]['column'] - 1);
- if (isset($adjustments[$first]) === true) {
- $currentIndent += $adjustments[$first];
- }
-
- if ($parens > 0 || $condition > 0) {
- $checkIndent = ($tokens[$first]['column'] - 1);
- if (isset($adjustments[$first]) === true) {
- $checkIndent += $adjustments[$first];
- }
-
- if ($condition > 0) {
- $checkIndent += $this->indent;
- $currentIndent += $this->indent;
- $exact = true;
- }
- } else {
- $checkIndent = $currentIndent;
- }
-
- // Make sure it is divisible by our expected indent.
- $currentIndent = (int) (ceil($currentIndent / $this->indent) * $this->indent);
- $checkIndent = (int) (ceil($checkIndent / $this->indent) * $this->indent);
- $setIndents[$first] = $currentIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$first]['type'];
- echo "\t=> checking indent of $checkIndent; main indent set to $currentIndent by token $first ($type)".PHP_EOL;
- }
- }//end if
-
- if ($checkToken !== null
- && isset(Tokens::$scopeOpeners[$tokens[$checkToken]['code']]) === true
- && in_array($tokens[$checkToken]['code'], $this->nonIndentingScopes) === false
- && isset($tokens[$checkToken]['scope_opener']) === true
- ) {
- $exact = true;
-
- $lastOpener = null;
- if (empty($openScopes) === false) {
- end($openScopes);
- $lastOpener = current($openScopes);
- }
-
- // A scope opener that shares a closer with another token (like multiple
- // CASEs using the same BREAK) needs to reduce the indent level so its
- // indent is checked correctly. It will then increase the indent again
- // (as all openers do) after being checked.
- if ($lastOpener !== null
- && isset($tokens[$lastOpener]['scope_closer']) === true
- && $tokens[$lastOpener]['level'] === $tokens[$checkToken]['level']
- && $tokens[$lastOpener]['scope_closer'] === $tokens[$checkToken]['scope_closer']
- ) {
- $currentIndent -= $this->indent;
- $setIndents[$lastOpener] = $currentIndent;
- if ($this->debug === true) {
- $line = $tokens[$i]['line'];
- $type = $tokens[$lastOpener]['type'];
- echo "Shared closer found on line $line".PHP_EOL;
- echo "\t=> indent set to $currentIndent by token $lastOpener ($type)".PHP_EOL;
- }
- }
-
- if ($tokens[$checkToken]['code'] === T_CLOSURE
- && $tokenIndent > $currentIndent
- ) {
- // The opener is indented more than needed, which is fine.
- // But just check that it is divisible by our expected indent.
- $checkIndent = (int) (ceil($tokenIndent / $this->indent) * $this->indent);
- $exact = false;
-
- if ($this->debug === true) {
- $line = $tokens[$i]['line'];
- echo "Closure found on line $line".PHP_EOL;
- echo "\t=> checking indent of $checkIndent; main indent remains at $currentIndent".PHP_EOL;
- }
- }
- }//end if
-
- // Method prefix indentation has to be exact or else if will break
- // the rest of the function declaration, and potentially future ones.
- if ($checkToken !== null
- && isset(Tokens::$methodPrefixes[$tokens[$checkToken]['code']]) === true
- && $tokens[($checkToken + 1)]['code'] !== T_DOUBLE_COLON
- ) {
- $exact = true;
- }
-
- // JS property indentation has to be exact or else if will break
- // things like function and object indentation.
- if ($checkToken !== null && $tokens[$checkToken]['code'] === T_PROPERTY) {
- $exact = true;
- }
-
- // PHP tags needs to be indented to exact column positions
- // so they don't cause problems with indent checks for the code
- // within them, but they don't need to line up with the current indent.
- if ($checkToken !== null
- && ($tokens[$checkToken]['code'] === T_OPEN_TAG
- || $tokens[$checkToken]['code'] === T_OPEN_TAG_WITH_ECHO
- || $tokens[$checkToken]['code'] === T_CLOSE_TAG)
- ) {
- $exact = true;
- $checkIndent = ($tokens[$checkToken]['column'] - 1);
- $checkIndent = (int) (ceil($checkIndent / $this->indent) * $this->indent);
- }
-
- // Special case for ELSE statements that are not on the same
- // line as the previous IF statements closing brace. They still need
- // to have the same indent or it will break code after the block.
- if ($checkToken !== null && $tokens[$checkToken]['code'] === T_ELSE) {
- $exact = true;
- }
-
- if ($checkIndent === null) {
- $checkIndent = $currentIndent;
- }
-
- /*
- The indent of the line is checked by the following IF block.
-
- Up until now, we've just been figuring out what the indent
- of this line should be.
-
- After this IF block, we adjust the indent again for
- the checking of future line.
- */
-
- $adjusted = false;
- if ($checkToken !== null
- && isset($this->ignoreIndentation[$tokens[$checkToken]['code']]) === false
- && (($tokenIndent !== $checkIndent && $exact === true)
- || ($tokenIndent < $checkIndent && $exact === false))
- ) {
- $type = 'IncorrectExact';
- $error = 'Line indented incorrectly; expected ';
- if ($exact === false) {
- $error .= 'at least ';
- $type = 'Incorrect';
- }
-
- if ($this->tabIndent === true) {
- $error .= '%s tabs, found %s';
- $data = array(
- floor($checkIndent / $this->tabWidth),
- floor($tokenIndent / $this->tabWidth),
- );
- } else {
- $error .= '%s spaces, found %s';
- $data = array(
- $checkIndent,
- $tokenIndent,
- );
- }
-
- if ($this->debug === true) {
- $line = $tokens[$checkToken]['line'];
- $message = vsprintf($error, $data);
- echo "[Line $line] $message".PHP_EOL;
- }
-
- $fix = $phpcsFile->addFixableError($error, $checkToken, $type, $data);
- if ($fix === true || $this->debug === true) {
- $padding = '';
- if ($this->tabIndent === true) {
- $numTabs = floor($checkIndent / $this->tabWidth);
- if ($numTabs > 0) {
- $numSpaces = ($checkIndent - ($numTabs * $this->tabWidth));
- $padding = str_repeat("\t", $numTabs).str_repeat(' ', $numSpaces);
- }
- } else if ($checkIndent > 0) {
- $padding = str_repeat(' ', $checkIndent);
- }
-
- if ($checkToken === $i) {
- $accepted = $phpcsFile->fixer->replaceToken($checkToken, $padding.$trimmed);
- } else {
- // Easier to just replace the entire indent.
- $accepted = $phpcsFile->fixer->replaceToken(($checkToken - 1), $padding);
- }
-
- if ($accepted === true) {
- $adjustments[$checkToken] = ($checkIndent - $tokenIndent);
- if ($this->debug === true) {
- $line = $tokens[$checkToken]['line'];
- $type = $tokens[$checkToken]['type'];
- echo "\t=> Add adjustment of ".$adjustments[$checkToken]." for token $checkToken ($type) on line $line".PHP_EOL;
- }
- }
- } else {
- // Assume the change would be applied and continue
- // checking indents under this assumption. This gives more
- // technically accurate error messages.
- $adjustments[$checkToken] = ($checkIndent - $tokenIndent);
- }//end if
- }//end if
-
- if ($checkToken !== null) {
- $i = $checkToken;
- }
-
- // Completely skip here/now docs as the indent is a part of the
- // content itself.
- if ($tokens[$i]['code'] === T_START_HEREDOC
- || $tokens[$i]['code'] === T_START_NOWDOC
- ) {
- $i = $phpcsFile->findNext(array(T_END_HEREDOC, T_END_NOWDOC), ($i + 1));
- continue;
- }
-
- // Completely skip multi-line strings as the indent is a part of the
- // content itself.
- if ($tokens[$i]['code'] === T_CONSTANT_ENCAPSED_STRING
- || $tokens[$i]['code'] === T_DOUBLE_QUOTED_STRING
- ) {
- $i = $phpcsFile->findNext($tokens[$i]['code'], ($i + 1), null, true);
- $i--;
- continue;
- }
-
- // Completely skip doc comments as they tend to have complex
- // indentation rules.
- if ($tokens[$i]['code'] === T_DOC_COMMENT_OPEN_TAG) {
- $i = $tokens[$i]['comment_closer'];
- continue;
- }
-
- // Open tags reset the indent level.
- if ($tokens[$i]['code'] === T_OPEN_TAG
- || $tokens[$i]['code'] === T_OPEN_TAG_WITH_ECHO
- ) {
- if ($this->debug === true) {
- $line = $tokens[$i]['line'];
- echo "Open PHP tag found on line $line".PHP_EOL;
- }
-
- if ($checkToken === null) {
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $i, true);
- $currentIndent = (strlen($tokens[$first]['content']) - strlen(ltrim($tokens[$first]['content'])));
- } else {
- $currentIndent = ($tokens[$i]['column'] - 1);
- }
-
- $lastOpenTag = $i;
-
- if (isset($adjustments[$i]) === true) {
- $currentIndent += $adjustments[$i];
- }
-
- // Make sure it is divisible by our expected indent.
- $currentIndent = (int) (ceil($currentIndent / $this->indent) * $this->indent);
- $setIndents[$i] = $currentIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$i]['type'];
- echo "\t=> indent set to $currentIndent by token $i ($type)".PHP_EOL;
- }
-
- continue;
- }//end if
-
- // Close tags reset the indent level, unless they are closing a tag
- // opened on the same line.
- if ($tokens[$i]['code'] === T_CLOSE_TAG) {
- if ($this->debug === true) {
- $line = $tokens[$i]['line'];
- echo "Close PHP tag found on line $line".PHP_EOL;
- }
-
- if ($tokens[$lastOpenTag]['line'] !== $tokens[$i]['line']) {
- $currentIndent = ($tokens[$i]['column'] - 1);
- $lastCloseTag = $i;
- } else {
- if ($lastCloseTag === null) {
- $currentIndent = 0;
- } else {
- $currentIndent = ($tokens[$lastCloseTag]['column'] - 1);
- }
- }
-
- if (isset($adjustments[$i]) === true) {
- $currentIndent += $adjustments[$i];
- }
-
- // Make sure it is divisible by our expected indent.
- $currentIndent = (int) (ceil($currentIndent / $this->indent) * $this->indent);
- $setIndents[$i] = $currentIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$i]['type'];
- echo "\t=> indent set to $currentIndent by token $i ($type)".PHP_EOL;
- }
-
- continue;
- }//end if
-
- // Anon classes and functions set the indent based on their own indent level.
- if ($tokens[$i]['code'] === T_CLOSURE || $tokens[$i]['code'] === T_ANON_CLASS) {
- $closer = $tokens[$i]['scope_closer'];
- if ($tokens[$i]['line'] === $tokens[$closer]['line']) {
- if ($this->debug === true) {
- $type = str_replace('_', ' ', strtolower(substr($tokens[$i]['type'], 2)));
- $line = $tokens[$i]['line'];
- echo "* ignoring single-line $type on line $line".PHP_EOL;
- }
-
- $i = $closer;
- continue;
- }
-
- if ($this->debug === true) {
- $type = str_replace('_', ' ', strtolower(substr($tokens[$i]['type'], 2)));
- $line = $tokens[$i]['line'];
- echo "Open $type on line $line".PHP_EOL;
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $i, true);
- $currentIndent = (($tokens[$first]['column'] - 1) + $this->indent);
- $openScopes[$tokens[$i]['scope_closer']] = $tokens[$i]['scope_condition'];
-
- if (isset($adjustments[$first]) === true) {
- $currentIndent += $adjustments[$first];
- }
-
- // Make sure it is divisible by our expected indent.
- $currentIndent = (int) (floor($currentIndent / $this->indent) * $this->indent);
- $i = $tokens[$i]['scope_opener'];
- $setIndents[$i] = $currentIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$i]['type'];
- echo "\t=> indent set to $currentIndent by token $i ($type)".PHP_EOL;
- }
-
- continue;
- }//end if
-
- // Scope openers increase the indent level.
- if (isset($tokens[$i]['scope_condition']) === true
- && isset($tokens[$i]['scope_opener']) === true
- && $tokens[$i]['scope_opener'] === $i
- ) {
- $closer = $tokens[$i]['scope_closer'];
- if ($tokens[$i]['line'] === $tokens[$closer]['line']) {
- if ($this->debug === true) {
- $line = $tokens[$i]['line'];
- $type = $tokens[$i]['type'];
- echo "* ignoring single-line $type on line $line".PHP_EOL;
- }
-
- $i = $closer;
- continue;
- }
-
- $condition = $tokens[$tokens[$i]['scope_condition']]['code'];
- if (isset(Tokens::$scopeOpeners[$condition]) === true
- && in_array($condition, $this->nonIndentingScopes) === false
- ) {
- if ($this->debug === true) {
- $line = $tokens[$i]['line'];
- $type = $tokens[$tokens[$i]['scope_condition']]['type'];
- echo "Open scope ($type) on line $line".PHP_EOL;
- }
-
- $currentIndent += $this->indent;
- $setIndents[$i] = $currentIndent;
- $openScopes[$tokens[$i]['scope_closer']] = $tokens[$i]['scope_condition'];
-
- if ($this->debug === true) {
- $type = $tokens[$i]['type'];
- echo "\t=> indent set to $currentIndent by token $i ($type)".PHP_EOL;
- }
-
- continue;
- }
- }//end if
-
- // JS objects set the indent level.
- if ($phpcsFile->tokenizerType === 'JS'
- && $tokens[$i]['code'] === T_OBJECT
- ) {
- $closer = $tokens[$i]['bracket_closer'];
- if ($tokens[$i]['line'] === $tokens[$closer]['line']) {
- if ($this->debug === true) {
- $line = $tokens[$i]['line'];
- echo "* ignoring single-line JS object on line $line".PHP_EOL;
- }
-
- $i = $closer;
- continue;
- }
-
- if ($this->debug === true) {
- $line = $tokens[$i]['line'];
- echo "Open JS object on line $line".PHP_EOL;
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $i, true);
- $currentIndent = (($tokens[$first]['column'] - 1) + $this->indent);
- if (isset($adjustments[$first]) === true) {
- $currentIndent += $adjustments[$first];
- }
-
- // Make sure it is divisible by our expected indent.
- $currentIndent = (int) (ceil($currentIndent / $this->indent) * $this->indent);
- $setIndents[$first] = $currentIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$first]['type'];
- echo "\t=> indent set to $currentIndent by token $first ($type)".PHP_EOL;
- }
-
- continue;
- }//end if
-
- // Closing an anon class or function.
- if (isset($tokens[$i]['scope_condition']) === true
- && $tokens[$i]['scope_closer'] === $i
- && ($tokens[$tokens[$i]['scope_condition']]['code'] === T_CLOSURE
- || $tokens[$tokens[$i]['scope_condition']]['code'] === T_ANON_CLASS)
- ) {
- if ($this->debug === true) {
- $type = str_replace('_', ' ', strtolower(substr($tokens[$tokens[$i]['scope_condition']]['type'], 2)));
- $line = $tokens[$i]['line'];
- echo "Close $type on line $line".PHP_EOL;
- }
-
- $prev = false;
-
- $object = 0;
- if ($phpcsFile->tokenizerType === 'JS') {
- $conditions = $tokens[$i]['conditions'];
- krsort($conditions, SORT_NUMERIC);
- foreach ($conditions as $token => $condition) {
- if ($condition === T_OBJECT) {
- $object = $token;
- break;
- }
- }
-
- if ($this->debug === true && $object !== 0) {
- $line = $tokens[$object]['line'];
- echo "\t* token is inside JS object $object on line $line *".PHP_EOL;
- }
- }
-
- $parens = 0;
- if (isset($tokens[$i]['nested_parenthesis']) === true
- && empty($tokens[$i]['nested_parenthesis']) === false
- ) {
- end($tokens[$i]['nested_parenthesis']);
- $parens = key($tokens[$i]['nested_parenthesis']);
- if ($this->debug === true) {
- $line = $tokens[$parens]['line'];
- echo "\t* token has nested parenthesis $parens on line $line *".PHP_EOL;
- }
- }
-
- $condition = 0;
- if (isset($tokens[$i]['conditions']) === true
- && empty($tokens[$i]['conditions']) === false
- ) {
- end($tokens[$i]['conditions']);
- $condition = key($tokens[$i]['conditions']);
- if ($this->debug === true) {
- $line = $tokens[$condition]['line'];
- $type = $tokens[$condition]['type'];
- echo "\t* token is inside condition $condition ($type) on line $line *".PHP_EOL;
- }
- }
-
- if ($parens > $object && $parens > $condition) {
- if ($this->debug === true) {
- echo "\t* using parenthesis *".PHP_EOL;
- }
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($parens - 1), null, true);
- $object = 0;
- $condition = 0;
- } else if ($object > 0 && $object >= $condition) {
- if ($this->debug === true) {
- echo "\t* using object *".PHP_EOL;
- }
-
- $prev = $object;
- $parens = 0;
- $condition = 0;
- } else if ($condition > 0) {
- if ($this->debug === true) {
- echo "\t* using condition *".PHP_EOL;
- }
-
- $prev = $condition;
- $object = 0;
- $parens = 0;
- }//end if
-
- if ($prev === false) {
- $prev = $phpcsFile->findPrevious(array(T_EQUAL, T_RETURN), ($tokens[$i]['scope_condition'] - 1), null, false, null, true);
- if ($prev === false) {
- $prev = $i;
- if ($this->debug === true) {
- echo "\t* could not find a previous T_EQUAL or T_RETURN token; will use current token *".PHP_EOL;
- }
- }
- }
-
- if ($this->debug === true) {
- $line = $tokens[$prev]['line'];
- $type = $tokens[$prev]['type'];
- echo "\t* previous token is $type on line $line *".PHP_EOL;
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $prev, true);
- if ($this->debug === true) {
- $line = $tokens[$first]['line'];
- $type = $tokens[$first]['type'];
- echo "\t* first token on line $line is $first ($type) *".PHP_EOL;
- }
-
- $prev = $phpcsFile->findStartOfStatement($first);
- if ($prev !== $first) {
- // This is not the start of the statement.
- if ($this->debug === true) {
- $line = $tokens[$prev]['line'];
- $type = $tokens[$prev]['type'];
- echo "\t* amended previous is $type on line $line *".PHP_EOL;
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $prev, true);
- if ($this->debug === true) {
- $line = $tokens[$first]['line'];
- $type = $tokens[$first]['type'];
- echo "\t* amended first token is $first ($type) on line $line *".PHP_EOL;
- }
- }
-
- $currentIndent = ($tokens[$first]['column'] - 1);
- if ($object > 0 || $condition > 0) {
- $currentIndent += $this->indent;
- }
-
- if (isset($tokens[$first]['scope_closer']) === true
- && $tokens[$first]['scope_closer'] === $first
- ) {
- if ($this->debug === true) {
- echo "\t* first token is a scope closer *".PHP_EOL;
- }
-
- if ($condition === 0 || $tokens[$condition]['scope_opener'] < $first) {
- $currentIndent = $setIndents[$first];
- } else if ($this->debug === true) {
- echo "\t* ignoring scope closer *".PHP_EOL;
- }
- }
-
- // Make sure it is divisible by our expected indent.
- $currentIndent = (int) (ceil($currentIndent / $this->indent) * $this->indent);
- $setIndents[$first] = $currentIndent;
-
- if ($this->debug === true) {
- $type = $tokens[$first]['type'];
- echo "\t=> indent set to $currentIndent by token $first ($type)".PHP_EOL;
- }
- }//end if
- }//end for
-
- // Don't process the rest of the file.
- return $phpcsFile->numTokens;
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.inc
deleted file mode 100644
index a82199e5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-$var = array();
-$var = [1,2,3];
-$var = array(1,2,3);
-echo $var[1];
-$foo = array($var[1],$var[2]);
-$foo = array(
- 1
- 2
- 3
- );
-$var = array/*comment*/(1,2,3);
-$var = array;
-
-function foo(array $array) {}
-
-function foo(array $array) use ($foo): array {}
-
-abstract function foo(): array;
-
-abstract function foo(): Foo\Bar;
-
-abstract function foo(): \Foo\Bar;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.inc.fixed
deleted file mode 100644
index b2db4a3d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.inc.fixed
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-$var = [];
-$var = [1,2,3];
-$var = [1,2,3];
-echo $var[1];
-$foo = [$var[1],$var[2]];
-$foo = [
- 1
- 2
- 3
- ];
-$var = /*comment*/[1,2,3];
-$var = [];
-
-function foo(array $array) {}
-
-function foo(array $array) use ($foo): array {}
-
-abstract function foo(): array;
-
-abstract function foo(): Foo\Bar;
-
-abstract function foo(): \Foo\Bar;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php
deleted file mode 100644
index d65e371f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowLongArraySyntax sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Arrays;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowLongArraySyntaxUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 4 => 1,
- 6 => 1,
- 7 => 1,
- 12 => 1,
- 13 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc
deleted file mode 100644
index bee39c39..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-$var = array();
-$var = [];
-$var = array(1,2,3);
-$var = [1,2,3];
-echo $var[1];
-$foo = [$var[1],$var[2]];
-$foo = [
- 1
- 2
- 3
- ]; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc.fixed
deleted file mode 100644
index 8ce38900..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.inc.fixed
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-$var = array();
-$var = array();
-$var = array(1,2,3);
-$var = array(1,2,3);
-echo $var[1];
-$foo = array($var[1],$var[2]);
-$foo = array(
- 1
- 2
- 3
- ); \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php
deleted file mode 100644
index 25c6e946..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowLongArraySyntax sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Arrays;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowShortArraySyntaxUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 5 => 1,
- 7 => 1,
- 8 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.1.inc
deleted file mode 100644
index 1b4be0b3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.1.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-class MyClass {}
-class YourClass {}
-interface MyInterface {}
-interface YourInterface {}
-class MyClass {}
-interface MyInterface {}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.2.inc
deleted file mode 100644
index f5af896a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.2.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-class MyClass {}
-interface MyInterface {}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.3.inc
deleted file mode 100644
index 79598959..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.3.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-namespace A\B {
- class MyClass {}
- interface MyInterface {}
-}
-
-namespace D {
- class MyClass {}
-}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.4.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.4.inc
deleted file mode 100644
index 19093758..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.4.inc
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-namespace C;
-class MyClass {}
-interface MyInterface {}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.5.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.5.inc
deleted file mode 100644
index e52aaff4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.5.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-namespace C;
-class MyClass {}
-interface YourInterface {}
-
-namespace D;
-class MyClass {}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.6.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.6.inc
deleted file mode 100644
index 43c91975..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.6.inc
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-class Test{
- public function testOne(){
- ?>
- <p>some html here</p>
- <?php
- }
-}
-
-class Test{
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php
deleted file mode 100644
index 47e4ff55..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-/**
- * Unit test class for the DuplicateClassName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DuplicateClassNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='')
- {
- switch ($testFile) {
- case 'DuplicateClassNameUnitTest.1.inc':
- return array(
- 6 => 1,
- 7 => 1,
- );
- break;
- case 'DuplicateClassNameUnitTest.2.inc':
- return array(
- 2 => 1,
- 3 => 1,
- );
- break;
- case 'DuplicateClassNameUnitTest.5.inc':
- return array(
- 3 => 1,
- 7 => 1,
- );
- break;
- case 'DuplicateClassNameUnitTest.6.inc':
- return array(10 => 1);
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc
deleted file mode 100644
index 8147b4c7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-
-// The following are all ok.
-interface Test_Interface_Ok_A {
-}
-
-class Test_Class_Ok_A {
-}
-
-class Test_Class_Ok_B extends Test_Class_Ok_A {
-}
-
-class Test_Class_Ok_C implements Test_Interface_Ok_A {
-}
-
-
-// These are all incorrect.
-interface Test_Interface_Bad_A
-{ // There should be no content after the brace.
-}
-
-class Test_Class_Bad_A
- {
- }
-
-class Test_Class_Bad_B extends Test_Class_Bad_A
-
-{ // There should be no content after the brace.
-}
-
-class Test_Class_Bad_C implements Test_Interface_Bad_A
-
-
-{
-}
-
-// These should all be flagged for wrong whitespace before opening brace.
-interface Test_Interface_Bad_C {
-}
-
-class Test_Class_Bad_G {
-}
-
-class Test_Class_Bad_H extends Test_Class_Bad_G {
-}
-
-class Test_Class_Bad_I implements Test_Interface_Bad_C{
-}
-
-// This one should be flagged as a potential parse error.
-class Test_Class_Bad_H
-
-// This is OK.
-class A_Class_With_Really_Long_Name
- extends Another_Class_With_A_Really_Long_Name {
-
-}
-
-// This is OK too.
-class A_Class_With_Really_Long_Name_2
- extends Another_Class_With_A_Really_Long_Name
- implements Some_Interface_With_A_Long_Name,
- Another_Interface_With_A_Long_Name {
-
-}
-
-// But this is not.
-class A_Class_With_Really_Long_Name_3
- extends Another_Class_With_A_Really_Long_Name
- {
-
-}
-
-// Nor is this.
-class A_Class_With_Really_Long_Name_4
- extends Another_Class_With_A_Really_Long_Name
- implements Some_Interface_With_A_Long_Name,
- Another_Interface_With_A_Long_Name
-{
-
-}
-
-// While this is ok again.
-class Test_Class_Bad_G /*some comment*/ {
-}
-
-// And this is not.
-class Test_Class_Bad_G
- /*some comment*/
-{
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc.fixed
deleted file mode 100644
index 406eb230..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.inc.fixed
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-
-// The following are all ok.
-interface Test_Interface_Ok_A {
-}
-
-class Test_Class_Ok_A {
-}
-
-class Test_Class_Ok_B extends Test_Class_Ok_A {
-}
-
-class Test_Class_Ok_C implements Test_Interface_Ok_A {
-}
-
-
-// These are all incorrect.
-interface Test_Interface_Bad_A {
- // There should be no content after the brace.
-}
-
-class Test_Class_Bad_A {
-
- }
-
-class Test_Class_Bad_B extends Test_Class_Bad_A {
-
- // There should be no content after the brace.
-}
-
-class Test_Class_Bad_C implements Test_Interface_Bad_A {
-
-
-
-}
-
-// These should all be flagged for wrong whitespace before opening brace.
-interface Test_Interface_Bad_C {
-}
-
-class Test_Class_Bad_G {
-}
-
-class Test_Class_Bad_H extends Test_Class_Bad_G {
-}
-
-class Test_Class_Bad_I implements Test_Interface_Bad_C {
-}
-
-// This one should be flagged as a potential parse error.
-class Test_Class_Bad_H
-
-// This is OK.
-class A_Class_With_Really_Long_Name
- extends Another_Class_With_A_Really_Long_Name {
-
-}
-
-// This is OK too.
-class A_Class_With_Really_Long_Name_2
- extends Another_Class_With_A_Really_Long_Name
- implements Some_Interface_With_A_Long_Name,
- Another_Interface_With_A_Long_Name {
-
-}
-
-// But this is not.
-class A_Class_With_Really_Long_Name_3
- extends Another_Class_With_A_Really_Long_Name {
-
-
-}
-
-// Nor is this.
-class A_Class_With_Really_Long_Name_4
- extends Another_Class_With_A_Really_Long_Name
- implements Some_Interface_With_A_Long_Name,
- Another_Interface_With_A_Long_Name {
-
-
-}
-
-// While this is ok again.
-class Test_Class_Bad_G /*some comment*/ {
-}
-
-// And this is not.
-class Test_Class_Bad_G
- /*some comment*/ {
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php
deleted file mode 100644
index 1680df26..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * Unit test class for the OpeningBraceSameLine sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class OpeningBraceSameLineUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
-
- return array(
- 19 => 2,
- 23 => 1,
- 28 => 2,
- 34 => 1,
- 38 => 1,
- 41 => 1,
- 44 => 1,
- 47 => 1,
- 70 => 1,
- 79 => 1,
- 90 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(51 => 1);
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.inc
deleted file mode 100644
index 83780bce..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.inc
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-switch ($foo) {
- // Empty switch statement body
-}
-
-switch ($foo) {
- case 'bar':
- break;
- default:
- break;
-}
-
-
-if ($foo) {
- // Just a comment
-} elseif ($bar) {
- // Yet another comment
-} else {
-
-}
-
-if ($foo) {
- $foo = 'bar';
-} else if ($bar) {
- $bar = 'foo';
-}
-
-for ($i = 0; $i < 10; $i++) {
- for ($j = 0; $j < 10; $j++) {
- // Just a comment
- }
-}
-
-foreach ($foo as $bar) {}
-
-foreach ($foo as $bar) {
- $bar *= 2;
-}
-
-do {
- // Just a comment
- // Just another comment
-} while ($foo);
-
-do {
- while ($bar) {
-
- }
-} while (true);
-
-while ($foo) { /* Comment in the same line */ }
-
-while ($foo) {
- try {
-
- } catch (Exception $e) {
- echo $e->getTraceAsString();
- }
-}
-
-try {
- throw Exception('Error...');
-} catch (Exception $e) {}
-
-try {
- throw Exception('Error...');
-} catch (Exception $e) {
- // TODO: Handle this exception later :-)
-}
-
-if (true) {} elseif (false) {} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php
deleted file mode 100644
index 3bd49928..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * Unit test class for the EmptyStatement sniff.
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EmptyStatementUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 15 => 1,
- 17 => 1,
- 19 => 1,
- 30 => 1,
- 35 => 1,
- 41 => 1,
- 47 => 1,
- 52 => 1,
- 55 => 1,
- 64 => 1,
- 68 => 1,
- 72 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc
deleted file mode 100644
index 6b65e628..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-for ($i = 0; $i < 10; $i++) {
- // Everything is fine
-}
-
-for (; $it->valid();) {
- $it->next();
-}
-
-for (;(($it1->valid() && $foo) || (!$it2->value && ($bar || false)));/*Could be ingored*/) {
- $it1->next();
- $it2->next();
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php
deleted file mode 100644
index 03018c1d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the ForLoopShouldBeWhileLoop sniff.
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ForLoopShouldBeWhileLoopUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 6 => 1,
- 10 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.inc
deleted file mode 100644
index ef51b5a1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-$a = array(1, 2, 3, 4);
-for ($i = 0; $i < count($a); $i++) {
- $a[$i] *= $i;
-}
-
-for ($i = 0, $c = sizeof($a); $i < $c; ++$i) {
- $a[$i] *= $i;
-}
-
-$it = new ArrayIterator($a);
-for ($it->rewind(); $it->valid(); $it->next()) {
- echo $it->current();
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php
deleted file mode 100644
index d3474ee4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the ForLoopWithTestFunctionCall sniff.
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ForLoopWithTestFunctionCallUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 4 => 1,
- 13 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.inc
deleted file mode 100644
index dc7b88e0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.inc
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-for ($i = 0; $i < 20; $i++) {
- for ($j = 0; $j < 5; $i += 2) {
- for ($k = 0; $k > 3; $i++) {
-
- }
- }
-}
-
-for ($i = 0; $i < 20; $i++) {
- for ($j = 0; $j < 5; $j += 2) {
- for ($k = 0; $k > 3; $k++) {
-
- }
- }
-}
-
-for ($i = 0; $i < 20; $i++) {
- for ($j = 0; $j < 5; $j += 2) {
- for ($k = 0; $k > 3; $j++) {
-
- }
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php
deleted file mode 100644
index c431f2eb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the JumbledIncrementer sniff.
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class JumbledIncrementerUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 3 => 2,
- 4 => 1,
- 20 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.inc
deleted file mode 100644
index 1d980ae2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-if (true) {
-
-} else if (false) {
-
-} elseif (true) {
-
-}
-
-if (file_exists(__FILE__) === true) {
-
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php
deleted file mode 100644
index 475ec3cc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the UnconditionalIfStatement sniff.
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class UnconditionalIfStatementUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 3 => 1,
- 5 => 1,
- 7 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.inc
deleted file mode 100644
index 9e8ad1a5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.inc
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-class Foo {
- public final $FOOBAR = 23;
- protected final $FOO = 42;
- private final $BAR = 17;
-}
-
-final class Foo_Bar {
- public $foobar;
- public final $FOOBAR = 23;
-
- protected $foo;
- protected final $FOO = 42;
-
- private $bar;
- private final $BAR = 17;
-}
-
-final class Bar_Foo {
- public $foobar;
- protected $foo;
- private $bar;
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.php
deleted file mode 100644
index 8e31ddba..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the UnnecessaryFinalModifier sniff.
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class UnnecessaryFinalModifierUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 11 => 1,
- 14 => 1,
- 17 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc
deleted file mode 100644
index 0f112af1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.inc
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-function foo($a, $b) {
- return $a * 2;
-}
-
-function baz($a, $b) {
- echo "baz({$a});";
-}
-
-function bar($a, $b) {
- $x = $b;
- for ($i = 0; $i <$a; $i++) {
- $x += $a * $i;
- }
- return $x;
-}
-
-function foobar($a, &$b) {
- return (preg_match('/foo/', $a, $b) !== 0);
-}
-
-class Foo {
- function barfoo($a, $b) {
- // Empty body means interface method in many cases.
- }
-
- function fooBar($a, $b) {
- return;
- }
-}
-
-function foo($bar)
-{
- print <<<BAZ
- $bar
-BAZ
-}
-
-function foo( $parameter ) {
- $wango = <<<HERE
-1 Must be a HEREdoc of at least one line
-HERE;
- $x = $parameter; // This line must be immediately after the HERE; with no intervening blank lines.
- $tango = <<<HERE
-1 Must be a HEREdoc
-2
-3
-4
-5
-6
-7
-8
-9 at least 9 lines long
-HERE;
-}
-
-function foo( $parameter ) {
- return <<<HTML
-<?xml version="1.0"?>
-<value>$parameter</value>
-HTML;
-}
-
-print foo( 'PARAMETER' );
-print "\n";
-
-function foo($bar)
-{
- print "${bar} things\n";
-}
-
-function bar($x)
-{
- return 2 * ${x};
-}
-
-function ($a, $b) {
- return $a * 2;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.php
deleted file mode 100644
index a306af42..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the UnusedFunctionParameter sniff.
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class UnusedFunctionParameterUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 3 => 1,
- 7 => 1,
- 78 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.inc
deleted file mode 100644
index f9fe67ca..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.inc
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-class FooBar {
- public function __construct($a, $b) {
- parent::__construct($a, $b);
- }
-}
-
-class BarFoo {
- public function __construct($a, $b) {
- parent::__construct($a, 'XML', $b);
- }
-}
-
-class Foo {
- public function export($a, $b = null) {
- return parent::export($a, $b);
- }
-}
-
-class Bar {
- public function export($a, $b = null) {
- return parent::export($a);
- }
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php
deleted file mode 100644
index 52eca80c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the UselessOverridingMethod sniff.
- *
- * @author Manuel Pichler <mapi@manuel-pichler.de>
- * @copyright 2007-2014 Manuel Pichler. All rights reserved.
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class UselessOverridingMethodUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 4 => 1,
- 16 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc
deleted file mode 100644
index 2d5010f4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc
+++ /dev/null
@@ -1,192 +0,0 @@
-<?php
-/**
- * Short description.
- *
- * Long description
- * over multiple lines.
- *
- * @tag1 one
- * @tag2 two
- * @tag3 three
- */
-
-/**
- * short description
- *
- * long description
- * over multiple lines.
- * @tag1 one
- */
-
-/**
- *
- * Short description
- *
- *
- * Long description
- * over multiple lines
- *
- *
- * @tag1 one
- *
- */
-
-/*
- This is not a doc block.
- */
-
-/** Short description.
- *
- * @tag one
- * @tag2 two
- * @tagThree three
- * @tagFour four
- */
-
-/**
- * Short description.
- *
- * @tag one
- *
- * @param
- * @param
- *
- */
-
-/**
- * Short description.
- * @param
- * @param
- * @tag one
- */
-
-/**
- * Short description.
- *
- *
- * @param
- *
- * @param
- *
- *
- * @tag one
- */
-
-/**
- * Short description.
- *
- * @param
- *
- * @tag one
- * @param
- */
-
-/**
- * Short description.
- *
- * @groupOne one
- * @groupOne two
- *
- * @group2 one
- * @group2 two
- *
- *
- * @g3
- * @g3 two
- */
-
-/**
- * Short description
- * over multiple lines.
- *
- * Long descrption.
- *
- * @param
- *
- * @tag one
- */
-
-/**
- * Short description.
- *
- * @tag1 one some comment across
- * multiple lines
- * @tag1 two some comment across
- * multiple lines
- * @tag1 three some comment across
- * multiple lines
- */
-
-/**
- * Returns true if the specified string is in the camel caps format.
- *
- * @param boolean $classFormat If true, check to see if the string is in the
- * class format. Class format strings must start
- * with a capital letter and contain no
- * underscores.
- * @param boolean $strict If true, the string must not have two capital
- * letters next to each other. If false, a
- * relaxed camel caps policy is used to allow
- * for acronyms.
- *
- * @return boolean
- */
-
-/**
- * Verifies that a @throws tag exists for a function that throws exceptions.
- * Verifies the number of @throws tags and the number of throw tokens matches.
- * Verifies the exception type.
- *
- * PHP version 5
- *
- * @category PHP
- * @package PHP_CodeSniffer
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Marc McIntyre <mmcintyre@squiz.net>
- * @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- * @link http://pear.php.net/package/PHP_CodeSniffer
- */
-
-/**
- * Comment
- *
- * @one
- * @two
- * @one
- *
- * @two something
- * here
- * @two foo
- * @three something
- * here
- * @three bar
- */
-
-/**
- * @ var Comment
- */
-
-/** @var Database $mockedDatabase */
-/** @var Container $mockedContainer */
-
-/**
- * 这是一条测试评论.
- */
-
-/**
- * I'm a function short-description
- * @return boolean
- */
-
-/**
- * this is a test
- * @author test
- * @param boolean $foo blah
- * @return boolean
- * @param boolean $bar Blah.
- */
-
-/**
- * étude des ...
- */
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js
deleted file mode 100644
index 188ade93..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js
+++ /dev/null
@@ -1,192 +0,0 @@
-
-/**
- * Short description.
- *
- * Long description
- * over multiple lines.
- *
- * @tag1 one
- * @tag2 two
- * @tag3 three
- */
-
-/**
- * short description
- *
- * long description
- * over multiple lines.
- * @tag1 one
- */
-
-/**
- *
- * Short description
- *
- *
- * Long description
- * over multiple lines
- *
- *
- * @tag1 one
- *
- */
-
-/*
- This is not a doc block.
- */
-
-/** Short description.
- *
- * @tag one
- * @tag2 two
- * @tagThree three
- * @tagFour four
- */
-
-/**
- * Short description.
- *
- * @tag one
- *
- * @param
- * @param
- *
- */
-
-/**
- * Short description.
- * @param
- * @param
- * @tag one
- */
-
-/**
- * Short description.
- *
- *
- * @param
- *
- * @param
- *
- *
- * @tag one
- */
-
- /**
- * Short description.
- *
- * @param
- *
- * @tag one
- * @param
- */
-
-/**
- * Short description.
- *
- * @groupOne one
- * @groupOne two
- *
- * @group2 one
- * @group2 two
- *
- *
- * @g3
- * @g3 two
- */
-
- /**
- * Short description
- * over multiple lines.
- *
- * Long descrption.
- *
- * @param
- *
- * @tag one
- */
-
-/**
- * Short description.
- *
- * @tag1 one some comment across
- * multiple lines
- * @tag1 two some comment across
- * multiple lines
- * @tag1 three some comment across
- * multiple lines
- */
-
- /**
- * Returns true if the specified string is in the camel caps format.
- *
- * @param boolean $classFormat If true, check to see if the string is in the
- * class format. Class format strings must start
- * with a capital letter and contain no
- * underscores.
- * @param boolean $strict If true, the string must not have two capital
- * letters next to each other. If false, a
- * relaxed camel caps policy is used to allow
- * for acronyms.
- *
- * @return boolean
- */
-
- /**
- * Verifies that a @throws tag exists for a function that throws exceptions.
- * Verifies the number of @throws tags and the number of throw tokens matches.
- * Verifies the exception type.
- *
- * PHP version 5
- *
- * @category PHP
- * @package PHP_CodeSniffer
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Marc McIntyre <mmcintyre@squiz.net>
- * @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- * @link http://pear.php.net/package/PHP_CodeSniffer
- */
-
- /**
- * Comment
- *
- * @one
- * @two
- * @one
- *
- * @two something
- * here
- * @two foo
- * @three something
- * here
- * @three bar
- */
-
- /**
- * @ var Comment
- */
-
-/** @var Database $mockedDatabase */
-/** @var Container $mockedContainer */
-
-/**
- * 这是一条测试评论.
- */
-
-/**
- * I'm a function short-description
- * @return boolean
- */
-
-/**
- * this is a test
- * @author test
- * @param boolean $foo blah
- * @return boolean
- * @param boolean $bar Blah.
- */
-
-/**
- * étude des ...
- */
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php
deleted file mode 100644
index f793b568..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-/**
- * Unit test class for the DocCommentSniff sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DocCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array(int => int)
- */
- public function getErrorList()
- {
- return array(
- 14 => 1,
- 16 => 1,
- 18 => 1,
- 23 => 1,
- 26 => 1,
- 30 => 1,
- 32 => 1,
- 38 => 2,
- 40 => 1,
- 41 => 1,
- 51 => 1,
- 54 => 1,
- 58 => 1,
- 60 => 2,
- 67 => 1,
- 69 => 2,
- 80 => 1,
- 81 => 2,
- 88 => 1,
- 91 => 1,
- 95 => 1,
- 156 => 1,
- 158 => 1,
- 170 => 3,
- 171 => 3,
- 179 => 1,
- 183 => 1,
- 184 => 1,
- 185 => 2,
- 186 => 1,
- 187 => 2,
- 191 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array(int => int)
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.inc
deleted file mode 100644
index 69ab3378..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-/**
- * FIXME: really need to fix this before I commit.
- * FIXME
- */
-
-// FIXME: this is broken, don't forget to fix it
-error_log('test');
-
-// FIXME remove this.
-Debug::bam('test');
-
-// fixme - fix this.
-
-// Extract info from the array.
-// FIXME: this is just a stub, fill in later
-
-// Extract info from the array (fixme: finish later)
-// To do this, use a function!
-// nofixme! NOFIXME! NOfixme!
-//FIXME.
-//éfixme
-//fixmeé
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.js
deleted file mode 100644
index 7836b9a2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.js
+++ /dev/null
@@ -1,23 +0,0 @@
-
-/**
- * FIXME: Write this comment
- * FIXME
- */
-
-// FIXME: remove this.
-alert('test');
-
-// FIXME remove this.
-alert('test');
-
-// fixme - remove this.
-
-// Extract info from the array.
-// FIXME: can this be done faster?
-
-// Extract info from the array (fixme: make it faster)
-// To do this, use a function!
-// nofixme! NOFIXME! NOfixme!
-//FIXME.
-//éfixme
-//fixmeé
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php
deleted file mode 100644
index 89f760d5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * Unit test class for the Fixme sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Sam Graham <php-codesniffer@illusori.co.uk>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FixmeUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='FixmeUnitTest.inc')
- {
- return array(
- 3 => 1,
- 4 => 1,
- 7 => 1,
- 10 => 1,
- 13 => 1,
- 16 => 1,
- 18 => 1,
- 21 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='FixmeUnitTest.inc')
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.inc
deleted file mode 100644
index 64c624ce..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-/**
- * TODO: Write this comment
- * TODO
- */
-
-// TODO: remove this.
-error_log('test');
-
-// TODO remove this.
-Debug::bam('test');
-
-// todo - remove this.
-
-// Extract info from the array.
-// TODO: can this be done faster?
-
-// Extract info from the array (todo: make it faster)
-// To do this, use a function!
-// notodo! NOTODO! NOtodo!
-//TODO.
-//étodo
-//todoé
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.js
deleted file mode 100644
index 8f01ca17..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.js
+++ /dev/null
@@ -1,23 +0,0 @@
-
-/**
- * TODO: Write this comment
- * TODO
- */
-
-// TODO: remove this.
-alert('test');
-
-// TODO remove this.
-alert('test');
-
-// todo - remove this.
-
-// Extract info from the array.
-// TODO: can this be done faster?
-
-// Extract info from the array (todo: make it faster)
-// To do this, use a function!
-// notodo! NOTODO! NOtodo!
-//TODO.
-//étodo
-//todoé
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php
deleted file mode 100644
index 0e0b8df7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * Unit test class for the Todo sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class TodoUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='TodoUnitTest.inc')
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='TodoUnitTest.inc')
- {
- return array(
- 3 => 1,
- 4 => 1,
- 7 => 1,
- 10 => 1,
- 13 => 1,
- 16 => 1,
- 18 => 1,
- 21 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc
deleted file mode 100644
index 3a6fb266..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc
+++ /dev/null
@@ -1,202 +0,0 @@
-<?php
-
-if ($something) echo 'hello';
-
-if ($something) {
- echo 'hello';
-} else echo 'hi';
-
-if ($something) {
- echo 'hello';
-} else if ($else) echo 'hi';
-
-foreach ($something as $thing) echo 'hello';
-
-for ($i; $i > 0; $i--) echo 'hello';
-
-while ($something) echo 'hello';
-
-do {
- $i--;
-} while ($something);
-
-if(true)
- $someObject->{$name};
-
-if (true) :
- $foo = true;
-endif;
-
-while (true) :
- $foo = true;
-endwhile;
-
-for ($i; $i > 0; $i--) :
- echo 'hello';
-endfor;
-
-foreach ($array as $element) :
- echo 'hello';
-endforeach;
-
-while (!$this->readLine($tokens, $tag));
-while (!$this->readLine($tokens, $tag)); //skip to end of file
-
-foreach ($cookies as $cookie)
- if ($cookie->match($uri, $matchSessionCookies, $now))
- $ret[] = $cookie;
-
-foreach ($stringParade as $hit)
- $hitParade[] = $hit + 0; //cast to integer
-
-if ($foo) :
- echo 'true';
-elseif ($something) :
- echo 'foo';
-else:
- echo 'false';
-endif;
-
-function test()
-{
- if ($a)
- $a.=' '.($b ? 'b' : ($c ? ($d ? 'd' : 'c') : ''));
-}
-
-if ($a)
- foreach ($b as $c) {
- if ($d) {
- $e=$f;
- $g=$h;
- } elseif ($i==0) {
- $j=$k;
- }
- }
-
-?>
-<div style="text-align: right;">
- <?php if ($model->scenario == 'simple') $widget->renderPager() ?>
-</div>
-
-<?php
-switch ($this->error):
- case Shop_Customer :: ERROR_INVALID_GENDER: ?>
- Ung&uuml;ltiges Geschlecht!
- <?php break;
- case Shop_Customer :: ERROR_EMAIL_IN_USE: ?>
- Die eingetragene E-Mail-Adresse ist bereits registriert.
- <?php break;
-endswitch;
-
-if ($this->allowShopping !== true):
- if ($this->status != Shop_Cart :: OK):
- switch ($this->status):
- case Shop_Cart :: NOT_FOUND:
- echo 'foo';
- endswitch;
- endif;
-else:
- echo 'foo';
-endif;
-
-// ELSE IF split over multiple lines (not inline)
-if ($test) {
-} else
- if ($test) {
- } else {
- }
-
-switch($response = \Bar::baz('bat', function ($foo) {
- return 'bar';
-})) {
- case 1:
- return 'test';
-
- case 2:
- return 'other';
-}
-
-$stuff = [1,2,3];
-foreach($stuff as $num)
- if ($num %2 ) {
- echo "even";
- } else {
- echo "odd";
- }
-
-$i = 0;
-foreach($stuff as $num)
- do {
- echo $i;
- $i++;
- } while ($i < 5);
-
-foreach($stuff as $num)
- if (true) {
- echo "true1\n";
- }
- if (true) {
- echo "true2\n";
- }
-
-if ($foo) echo 'foo';
-elseif ($bar) echo 'bar';
-else echo 'baz';
-
-switch ($type) {
- case 1:
- if ($foo) {
- return true;
- } elseif ($baz)
- return true;
- else {
- echo 'else';
- }
- break;
-}
-
-foreach ($sql as $s)
- if (!$this->execute) echo "<pre>",$s.";\n</pre>";
- else {
- $ok = $this->connDest->Execute($s);
- if (!$ok)
- if ($this->neverAbort) $ret = false;
- else return false;
- }
-
-if ($bar)
- if ($foo) echo 'hi'; // lol
-
-if ($level == 'district')
- \DB::update(<<<EOD
-some
-text
-here
-EOD
- );
-
-if ($level == 'district')
- $var = <<<EOD
-some
-text
-here
-EOD;
-
-if ($a && $a === Foo::VARIABLE && ($a === Foo::METHOD || $a === Foo::FUNCTION))
- echo 'hi';
-
-$out = array_map(function ($test) { if ($test) return 1; else return 2; }, $input); // comment
-
-for ($x=0;$x<5;$x++):
- if ($x) continue;
-endfor;
-
-for ($x=0;$x<5;$x++):
- if ($x) continue ?> <?php
-endfor;
-
-if (true)
- try {
- }
- catch(Exception $e) {
- }
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc.fixed
deleted file mode 100644
index ec2e0388..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.inc.fixed
+++ /dev/null
@@ -1,231 +0,0 @@
-<?php
-
-if ($something) { echo 'hello';
-}
-
-if ($something) {
- echo 'hello';
-} else { echo 'hi';
-}
-
-if ($something) {
- echo 'hello';
-} else if ($else) { echo 'hi';
-}
-
-foreach ($something as $thing) { echo 'hello';
-}
-
-for ($i; $i > 0; $i--) { echo 'hello';
-}
-
-while ($something) { echo 'hello';
-}
-
-do {
- $i--;
-} while ($something);
-
-if(true) {
- $someObject->{$name};
-}
-
-if (true) :
- $foo = true;
-endif;
-
-while (true) :
- $foo = true;
-endwhile;
-
-for ($i; $i > 0; $i--) :
- echo 'hello';
-endfor;
-
-foreach ($array as $element) :
- echo 'hello';
-endforeach;
-
-while (!$this->readLine($tokens, $tag)) {}
-while (!$this->readLine($tokens, $tag)) {
-//skip to end of file
-}
-foreach ($cookies as $cookie) {
- if ($cookie->match($uri, $matchSessionCookies, $now)) {
- $ret[] = $cookie;
- }
-}
-
-foreach ($stringParade as $hit) {
- $hitParade[] = $hit + 0; //cast to integer
-}
-
-if ($foo) :
- echo 'true';
-elseif ($something) :
- echo 'foo';
-else:
- echo 'false';
-endif;
-
-function test()
-{
- if ($a) {
- $a.=' '.($b ? 'b' : ($c ? ($d ? 'd' : 'c') : ''));
- }
-}
-
-if ($a) {
- foreach ($b as $c) {
- if ($d) {
- $e=$f;
- $g=$h;
- } elseif ($i==0) {
- $j=$k;
- }
- }
-}
-
-?>
-<div style="text-align: right;">
- <?php if ($model->scenario == 'simple') { $widget->renderPager(); } ?>
-</div>
-
-<?php
-switch ($this->error):
- case Shop_Customer :: ERROR_INVALID_GENDER: ?>
- Ung&uuml;ltiges Geschlecht!
- <?php break;
- case Shop_Customer :: ERROR_EMAIL_IN_USE: ?>
- Die eingetragene E-Mail-Adresse ist bereits registriert.
- <?php break;
-endswitch;
-
-if ($this->allowShopping !== true):
- if ($this->status != Shop_Cart :: OK):
- switch ($this->status):
- case Shop_Cart :: NOT_FOUND:
- echo 'foo';
- endswitch;
- endif;
-else:
- echo 'foo';
-endif;
-
-// ELSE IF split over multiple lines (not inline)
-if ($test) {
-} else
- if ($test) {
- } else {
- }
-
-switch($response = \Bar::baz('bat', function ($foo) {
- return 'bar';
-})) {
- case 1:
- return 'test';
-
- case 2:
- return 'other';
-}
-
-$stuff = [1,2,3];
-foreach($stuff as $num) {
- if ($num %2 ) {
- echo "even";
- } else {
- echo "odd";
- }
-}
-
-$i = 0;
-foreach($stuff as $num) {
- do {
- echo $i;
- $i++;
- } while ($i < 5);
-}
-
-foreach($stuff as $num) {
- if (true) {
- echo "true1\n";
- }
-}
- if (true) {
- echo "true2\n";
- }
-
-if ($foo) { echo 'foo';
-} elseif ($bar) { echo 'bar';
-} else { echo 'baz';
-}
-
-switch ($type) {
- case 1:
- if ($foo) {
- return true;
- } elseif ($baz) {
- return true;
- } else {
- echo 'else';
- }
- break;
-}
-
-foreach ($sql as $s) {
- if (!$this->execute) { echo "<pre>",$s.";\n</pre>";
- } else {
- $ok = $this->connDest->Execute($s);
- if (!$ok) {
- if ($this->neverAbort) { $ret = false;
- } else { return false;
- }
- }
- }
-}
-
-if ($bar) {
- if ($foo) { echo 'hi'; // lol
- }
-}
-
-if ($level == 'district') {
- \DB::update(<<<EOD
-some
-text
-here
-EOD
- );
-}
-
-if ($level == 'district') {
- $var = <<<EOD
-some
-text
-here
-EOD;
-}
-
-if ($a && $a === Foo::VARIABLE && ($a === Foo::METHOD || $a === Foo::FUNCTION)) {
- echo 'hi';
-}
-
-$out = array_map(function ($test) { if ($test) { return 1; } else { return 2;
-} }, $input); // comment
-
-for ($x=0;$x<5;$x++):
- if ($x) { continue;
- }
-endfor;
-
-for ($x=0;$x<5;$x++):
- if ($x) { continue;
- } ?> <?php
-endfor;
-
-if (true) {
- try {
- }
- catch(Exception $e) {
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js
deleted file mode 100644
index 4d3b1e8a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-if (something) print 'hello';
-
-if (something) {
- print 'hello';
-} else print 'hi';
-
-if (something) {
- print 'hello';
-} else if (something) print 'hi';
-
-for (i; i > 0; i--) print 'hello';
-
-while (something) print 'hello';
-
-do {
- i--;
-} while (something);
-
-do i++; while (i < 5);
-
-SomeClass.prototype.switch = function() {
- // do something
-};
-
-if ($("#myid").rotationDegrees()=='90')
- $('.modal').css({'transform': 'rotate(90deg)'});
-
-if ($("#myid").rotationDegrees()=='90')
- $foo = {'transform': 'rotate(90deg)'};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js.fixed
deleted file mode 100644
index 8f0c413e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.js.fixed
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-if (something) { print 'hello';
-}
-
-if (something) {
- print 'hello';
-} else { print 'hi';
-}
-
-if (something) {
- print 'hello';
-} else if (something) { print 'hi';
-}
-
-for (i; i > 0; i--) { print 'hello';
-}
-
-while (something) { print 'hello';
-}
-
-do {
- i--;
-} while (something);
-
-do { i++;
-} while (i < 5);
-
-SomeClass.prototype.switch = function() {
- // do something
-};
-
-if ($("#myid").rotationDegrees()=='90') {
- $('.modal').css({'transform': 'rotate(90deg)'});
-}
-
-if ($("#myid").rotationDegrees()=='90') {
- $foo = {'transform': 'rotate(90deg)'};
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php
deleted file mode 100644
index 87439ae2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-/**
- * Unit test class for the InlineControlStructure sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class InlineControlStructureUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='InlineControlStructureUnitTest.inc')
- {
- switch ($testFile) {
- case 'InlineControlStructureUnitTest.inc':
- return array(
- 3 => 1,
- 7 => 1,
- 11 => 1,
- 13 => 1,
- 15 => 1,
- 17 => 1,
- 23 => 1,
- 42 => 1,
- 43 => 1,
- 45 => 1,
- 46 => 1,
- 49 => 1,
- 62 => 1,
- 66 => 1,
- 78 => 1,
- 120 => 1,
- 128 => 1,
- 134 => 1,
- 142 => 1,
- 143 => 1,
- 144 => 1,
- 150 => 1,
- 158 => 1,
- 159 => 1,
- 162 => 1,
- 163 => 1,
- 164 => 1,
- 167 => 1,
- 168 => 1,
- 170 => 1,
- 178 => 1,
- 185 => 1,
- 188 => 2,
- 191 => 1,
- 195 => 1,
- 198 => 1,
- );
- break;
- case 'InlineControlStructureUnitTest.js':
- return array(
- 3 => 1,
- 7 => 1,
- 11 => 1,
- 13 => 1,
- 15 => 1,
- 21 => 1,
- 27 => 1,
- 30 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.inc
deleted file mode 100644
index dc3bf596..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-echo 'foo';
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php
deleted file mode 100644
index 1ee36140..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the ByteOrderMark sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ByteOrderMarkUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(1 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.css
deleted file mode 100644
index 2127f8ec..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.css
+++ /dev/null
@@ -1,3 +0,0 @@
-
-#login-container {}
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.inc
deleted file mode 100644
index ca2a7493..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-echo 'foo';
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.js
deleted file mode 100644
index a897ffba..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.1.js
+++ /dev/null
@@ -1,3 +0,0 @@
-
-alert('hi);
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.css
deleted file mode 100644
index a2d2dd76..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.css
+++ /dev/null
@@ -1,2 +0,0 @@
-
-#login-container {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.inc
deleted file mode 100644
index 1254e4a5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-echo 'foo';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.js
deleted file mode 100644
index d1ff76b7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.2.js
+++ /dev/null
@@ -1,2 +0,0 @@
-
-alert('hi);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.css
deleted file mode 100644
index 5f15bdef..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.css
+++ /dev/null
@@ -1,2 +0,0 @@
-
-#login-container {} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.inc
deleted file mode 100644
index 360abcc5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-echo 'foo'; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.js
deleted file mode 100644
index 555ce94a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.3.js
+++ /dev/null
@@ -1,2 +0,0 @@
-
-alert('hi); \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.4.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.4.inc
deleted file mode 100644
index 32193939..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.4.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-/** Why me? \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.5.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.5.inc
deleted file mode 100644
index 04d7caa7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.5.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-/** Why me?
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php
deleted file mode 100644
index 409f2b4a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-/**
- * Unit test class for the EndFileNewline sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EndFileNewlineUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'EndFileNewlineUnitTest.3.inc':
- case 'EndFileNewlineUnitTest.3.js':
- case 'EndFileNewlineUnitTest.3.css':
- return array(2 => 1);
- case 'EndFileNewlineUnitTest.4.inc':
- // HHVM just removes the entire comment token, as if it was never there.
- if (defined('HHVM_VERSION') === true) {
- return array();
- }
- return array(2 => 1);
- default:
- return array();
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='')
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.css
deleted file mode 100644
index 2127f8ec..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.css
+++ /dev/null
@@ -1,3 +0,0 @@
-
-#login-container {}
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.inc
deleted file mode 100644
index ca2a7493..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-echo 'foo';
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.js
deleted file mode 100644
index a897ffba..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.1.js
+++ /dev/null
@@ -1,3 +0,0 @@
-
-alert('hi);
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.css
deleted file mode 100644
index a2d2dd76..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.css
+++ /dev/null
@@ -1,2 +0,0 @@
-
-#login-container {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.inc
deleted file mode 100644
index a2af4f05..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-echo 'foo';
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.js
deleted file mode 100644
index d1ff76b7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.2.js
+++ /dev/null
@@ -1,2 +0,0 @@
-
-alert('hi);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.css
deleted file mode 100644
index 5f15bdef..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.css
+++ /dev/null
@@ -1,2 +0,0 @@
-
-#login-container {} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.inc
deleted file mode 100644
index 360abcc5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-echo 'foo'; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.js
deleted file mode 100644
index 555ce94a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.3.js
+++ /dev/null
@@ -1,2 +0,0 @@
-
-alert('hi); \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.4.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.4.inc
deleted file mode 100644
index bea203e6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.4.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-echo 'foo';
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.5.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.5.inc
deleted file mode 100644
index 32193939..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.5.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-/** Why me? \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.6.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.6.inc
deleted file mode 100644
index 04d7caa7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.6.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-/** Why me?
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php
deleted file mode 100644
index 01315885..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-/**
- * Unit test class for the EndFileNoNewline sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EndFileNoNewlineUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'EndFileNoNewlineUnitTest.1.inc':
- case 'EndFileNoNewlineUnitTest.1.css':
- case 'EndFileNoNewlineUnitTest.1.js':
- case 'EndFileNoNewlineUnitTest.2.inc':
- return array(3 => 1);
- case 'EndFileNoNewlineUnitTest.2.css':
- case 'EndFileNoNewlineUnitTest.2.js':
- return array(2 => 1);
- case 'EndFileNoNewlineUnitTest.5.inc':
- // HHVM just removes the entire comment token, as if it was never there.
- if (defined('HHVM_VERSION') === true) {
- return array(1 => 1);
- }
- return array();
- case 'EndFileNoNewlineUnitTest.6.inc':
- // HHVM just removes the entire comment token, as if it was never there.
- if (defined('HHVM_VERSION') === true) {
- return array(1 => 1);
- }
- return array(2 => 1);
- default:
- return array();
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='')
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.1.inc
deleted file mode 100644
index ca2a7493..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.1.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-echo 'foo';
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.2.inc
deleted file mode 100644
index a2af4f05..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.2.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-echo 'foo';
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.3.inc
deleted file mode 100644
index 08a3995f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.3.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-echo 'foo';
-?>
-<body>
-<?php
-echo 'bar';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.4.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.4.inc
deleted file mode 100644
index 7ccc53e2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.4.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<html>
-<?php echo $allTheThings; ?>
-</html>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.5.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.5.inc
deleted file mode 100644
index d027e91b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.5.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env php
-<?php
-echo 'foo';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php
deleted file mode 100644
index 6bb5c59a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * Unit test class for the InlineHTML sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class InlineHTMLUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'InlineHTMLUnitTest.3.inc':
- return array(4 => 1);
- break;
- case 'InlineHTMLUnitTest.4.inc':
- return array(1 => 1);
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='')
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.css
deleted file mode 100644
index a8c96255..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.css
+++ /dev/null
@@ -1,3 +0,0 @@
-#login-container {
- margin-left: -225px;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc
deleted file mode 100644
index a2d3ed20..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc
+++ /dev/null
@@ -1,18 +0,0 @@
-
-<?php
-echo 'hi';
-?>
-
-<?php
-echo 'hi';
-?>
-
-<?php
-function foo()
-{
- $query->group('a.id,
- uc.name,
- ag.title,
- ua.name'
- );
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc.fixed
deleted file mode 100644
index b143fb4c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.inc.fixed
+++ /dev/null
@@ -1,18 +0,0 @@
-
-<?php
-echo 'hi';
-?>
-
-<?php
-echo 'hi';
-?>
-
-<?php
-function foo()
-{
- $query->group('a.id,
- uc.name,
- ag.title,
- ua.name'
- );
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.js
deleted file mode 100644
index 49c58d8e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.js
+++ /dev/null
@@ -1,2 +0,0 @@
-alert('hi');
-alert('hi');
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php
deleted file mode 100644
index cb73c3f3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/**
- * Unit test class for the LineEndings sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LineEndingsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Get a list of CLI values to set before the file is tested.
- *
- * @param string $testFile The name of the file being tested.
- * @param \PHP_CodeSniffer\Config $config The config data for the test run.
- *
- * @return array
- */
- public function setCliValues($testFile, $config)
- {
- $config->tabWidth = 4;
-
- }//end setCliValues()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(1 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.inc
deleted file mode 100644
index 9800ae98..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.inc
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-// This line is okay... just!
-if (($reallyLongVarName === true) || (is_array($anotherLongVarName) == false)) {
- // Do something.
-}
-
-// This line is not okay... just!
-if (($reallyLongVarName === true) || (is_array($anotherLongVarName) === false)) {
- // Do something.
-}
-
-
-// This line is is too long.
-if (($anotherReallyLongVarName === true) || (is_array($anotherReallyLongVarName) === false)) {
- // Do something.
-}
-
-// This is a really really long comment that is going to go to exactly 80 chars.
-
-// This is another really really long comment that is going to go well over 80 characters.
-
-// And here is just a bunch of spaces that exceeds the line length.
-
-
-// And here are some spaces exactly 80 chars long.
-
-
-// This is a really really really really long long comment that is going to go to exactly 100 chars.
-
-// This is another really really really really really long comment that is going to go well over 100 characters.
-
-// And here is just a bunch of spaces that exceeds the max line length.
-
-
-// And here are some spaces exactly 100 chars long.
-
-?>
-<b>Hello</b>b>
-<?php
-echo 'hi';
-?>
-
-<?php
-// This is another really long comment that is going to go well over 100 characters, with no closing php tag after it.
-
-/**
- * Does something cool, blah blah, not so long line.
- *
- * We're using Wilson scoring because blah blah, see:
- * http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval#Wilson_score_interval
- */
-
-// Go here:
-// http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval#Wilson_score_interval
-
-# http://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval#Wilson_score_interval
-
-if ($foo) {
- if ($bar) {
- if ($baz) {
- // Next line can be broken:
- // foo bar baz http://en.wikipedia.org/wiki/Binomial_proportion#blahblahblahblah
- // But this one is just too long to break with this indent:
- // foo bar baz http://en.wikipedia.org/wiki/Binomial_proportion#blahblahblahblahblah
- }
- }
-}
-
-/* -------------------------------- 80 chars -------------------------------- */
-$ab = function () { /* comment */ if ($foo === true) { return (int) $foo; } };
-$ab = function () { /* comment */ if ($foo === true){ return (int)$foo; }};
-$ab = function () { /* comment */ if ($foo === true) { return (int) $foo; } };
- $ab = function () { /* comment */ if ($foo === true) { return(int) $foo; }};
- $ab = function () { /* comment */ if ($foo === true) { return(int) $foo; }};
-$ab = $ab = $ab = $ab = $ab = $ab = $ab = $ab = $ab = $ab;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php
deleted file mode 100644
index b53cffce..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/**
- * Unit test class for the LineLength sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LineLengthUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Get a list of CLI values to set before the file is tested.
- *
- * @param string $testFile The name of the file being tested.
- * @param \PHP_CodeSniffer\Config $config The config data for the test run.
- *
- * @return array
- */
- public function setCliValues($testFile, $config)
- {
- $config->tabWidth = 4;
-
- }//end setCliValues()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 31 => 1,
- 34 => 1,
- 45 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 9 => 1,
- 15 => 1,
- 21 => 1,
- 24 => 1,
- 29 => 1,
- 37 => 1,
- 63 => 1,
- 73 => 1,
- 75 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.inc
deleted file mode 100644
index 38c99bd8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-?>
-
-<?php
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.php
deleted file mode 100644
index 781db1e3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the LowercasedFilename sniff.
- *
- * @author Andy Grunwald <andygrunwald@gmail.com>
- * @copyright 2010-2014 Andy Grunwald
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LowercasedFilenameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(1 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.inc
deleted file mode 100644
index 12a71e44..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-class foo {
-
-}
-
-class bar {
-
-}
-
-class baz {
-
-}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.php
deleted file mode 100644
index 24502c35..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the OneClassPerFile sniff.
- *
- * @author Andy Grunwald <andygrunwald@gmail.com>
- * @copyright 2010-2014 Andy Grunwald
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class OneClassPerFileUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 6 => 1,
- 10 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.inc
deleted file mode 100644
index bfc0a748..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-interface foo {
-
-}
-
-interface bar {
-
-}
-
-interface baz {
-
-}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.php
deleted file mode 100644
index e86174a7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the OneInterfacePerFile sniff.
- *
- * @author Andy Grunwald <andygrunwald@gmail.com>
- * @copyright 2010-2014 Andy Grunwald
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class OneInterfacePerFileUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 6 => 1,
- 10 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.inc
deleted file mode 100644
index 43be165a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-trait foo {
-
-}
-
-trait bar {
-
-}
-
-trait baz {
-
-}
-
-$trait = 'foo';
-echo $this->trait;
-echo Something::$trait;
-echo $trait;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.php
deleted file mode 100644
index a124ebcb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/**
- * Unit test class for the OneTraitPerFile sniff.
- *
- * @author Alexander Obuhovich <aik.bold@gmail.com>
- * @copyright 2010-2014 Alexander Obuhovich
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class OneTraitPerFileUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Should this test be skipped for some reason.
- *
- * @return bool
- */
- protected function shouldSkipTest()
- {
- return (PHP_VERSION_ID < 50400);
-
- }//end shouldSkipTest()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array(int => int)
- */
- public function getErrorList()
- {
- return array(
- 6 => 1,
- 10 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array(int => int)
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.inc
deleted file mode 100644
index 7fafb56c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-$y = 2;;
-echo $y;
-for ($i = 1; $i < $length; $i++) {}
-for (; $i < $length; $i++) {}
-echo 'x'; echo $y;
-$x = 10; echo $y;
-$this->wizardid = 10; $this->paint(); echo 'x';
-?>
-<div class="<?php echo $class; ?>" id="<?php echo $id; ?>"></div>
-<div class="<?php echo $class ?>" id="<?php echo $id ?>"></div>
-<div class="<?= $class; ?>" id="<?= $id; ?>"></div>
-<div class="<?= $class ?>" id="<?= $id ?>"></div>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php
deleted file mode 100644
index 54eb1079..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowMultipleStatements sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Formatting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowMultipleStatementsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 6 => 1,
- 7 => 1,
- 8 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc
deleted file mode 100644
index 1b838d08..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc
+++ /dev/null
@@ -1,234 +0,0 @@
-<?php
-
-// Valid
-$var1 = 'var1';
-$var10 = 'var1';
-$var100 = 'var1';
-$var1000 = 'var1';
-
-// Invalid
-$var1 = 'var1';
-$var10 = 'var1';
-$var100 = 'var1';
-$var1000 = 'var1';
-
-// Valid
-$var1 = 'var1';
-$var10 = 'var1';
-
-$var100 = 'var1';
-$var1000 = 'var1';
-
-// Invalid
-$var1 = 'var1';
-$var10 = 'var1';
-
-$var100 = 'var1';
-$var1000 = 'var1';
-
-// Valid
-$var1 .= 'var1';
-$var10 .= 'var1';
-$var100 .= 'var1';
-$var1000 .= 'var1';
-
-// Invalid
-$var1 .= 'var1';
-$var10.= 'var1';
-$var100 .= 'var1';
-$var1000 .= 'var1';
-
-// Valid
-$var1 = 'var1';
-$var10 .= 'var1';
-$var100 = 'var1';
-$var1000 .= 'var1';
-
-// Invalid
-$var1 = 'var1';
-$var10 .= 'var1';
-$var100 = 'var1';
-$var1000.= 'var1';
-
-// Valid
-$var1 .= 'var1';
-$var10 .= 'var1';
-
-$var100 .= 'var1';
-$var1000 .= 'var1';
-
-// Invalid
-$var1 .= 'var1';
-$var10 .= 'var1';
-
-$var100 .= 'var1';
-$var1000 .= 'var1';
-
-// Valid
-$var = 100;
-
-// InValid
-$var = 100;
-
-$commentStart = $phpcsFile->findPrevious();
-$commentEnd = $this->_phpcsFile;
-$expected .= '...';
-
-// Invalid
-$this->okButton = new Button();
-$content = new MyClass();
-
-
-$GLOBALS['_PEAR_ERRORSTACK_SINGLETON'] = array();
-
-class MyClass
-{
- const MODE_DEBUG = 'debug';
- const MODE_DEBUG2 = 'debug';
-
- $array[$test] = 'anything';
- $var = 'anything';
-
- const MODE_DEBUG2 = 'debug';
- $array[$test] = 'anything';
- $var = 'anything';
- $array[($test + 1)] = 'anything';
- $array[($blah + (10 - $test))] = 'anything';
-}
-
-function myFunction($var=true)
-{
- if ($strict === true) {
- $length = strlen($string);
- $lastCharWasCaps = ($classFormat === false) ? false : true;
-
- for ($i = 1; $i < $length; $i++) {
- $isCaps = (strtoupper($string{$i}) === $string{$i}) ? true : false;
- if ($isCaps === true && $lastCharWasCaps === true) {
- return false;
- }
-
- $lastCharWasCaps = $isCaps;
- }
- }
-}
-
-// Valid
-for ($i = 0; $i < 10; $i += 2) {
- $i = ($i - 1);
-}
-
-// Invalid
-foreach ($files as $file) {
- $saves[$file] = array();
- $contents = stripslashes(file_get_contents($file));
- list($assetid, $time, $content) = explode("\n", $contents);
- $saves[$file]['assetid'] = $assetid;
-}
-
-$i = ($i - 10);
-$ip = ($i - 10);
-for ($i = 0; $i < 10; $i += 2) {
- $i = ($i - 10);
-}
-
-// Valid
-$variable = 12;
-$var = a_very(long_line('that', 'contains'),
- a_bunch('of long', 'parameters'),
- 'that_need to be aligned with the equal sign');
-$var2 = 12;
-
-// Valid
-$variable = 12;
-$var = 'a very long line of text that contains '
- .$someVar
- .' and some other stuff that is too long to fit on one line';
-$var2 = 12;
-
-// Invalid
-$variable = 12;
-$var = a_very(long_line('that', 'contains'),
- a_bunch('of long', 'parameters'),
- 'that_need to be aligned with the equal sign');
-$var2 = 12;
-
-// Invalid
-$variable = 12;
-$var = 'a very long line of text that contains '
- .$someVar
- .' and some other stuff that is too long to fit on one line';
-$var2 = 12;
-
-// Valid
-$variable = 12;
-$var .= 'a very long line of text that contains '
- .$someVar
- .' and some other stuff that is too long to fit on one line';
-$var2 = 12;
-
-// Valid
-$variable += 12;
-$var .= 'a very long line of text that contains '
- .$someVar
- .' and some other stuff that is too long to fit on one line';
-$var2 = 12;
-
-// Invalid
-$variable = 12;
-$var .= 'a very long line of text that contains '
- .$someVar
- .' and some other stuff that is too long to fit on one line';
-$var2 = 12;
-
-// Valid
-$error = false;
-while (list($h, $f) = each($handle)) {
- $error = true;
-}
-
-// Valid
-$value = false;
-function blah ($value = true) {
- $value = false;
- if ($value === true) {
- $value = false;
- }
-}
-
-if (TRUE) {
- $args = array('foo' => 'foo');
- $res = 'bar';
-}
-
-// @codingStandardsChangeSetting Generic.Formatting.MultipleStatementAlignment maxPadding 8
-
-$one = 'one';
-$varonetwo = 'two';
-$varonetwothree = 'three';
-$varonetwothreefour = 'four';
-
-$one = 'one';
-$varonetwo .= 'two';
-$varonetwo = 'two';
-$varonetwo .= 'two';
-$varonetwothree = 'three';
-$varonetwothreefour = 'four';
-
-// @codingStandardsChangeSetting Generic.Formatting.MultipleStatementAlignment maxPadding 1000
-
-$filterQuery = SquizRoadmap::getSearchQueryFilter($searchParams);
-Channels::addToBasket('itemid', $filterQuery);
-$query = DAL::getDALQuery('SquizRoadmapItem', 'getItemIds');
-$results = DAL::getAssoc($query, 0);
-
-$path = BaseSystem::getDataDir('SquizRoadmap').'/items/';
-$path .= FileSystem::getHashDir($itemid).'/'.$itemid;
-
-$contents .= 'if (';
-$conditions = array();
-
-$bar = 'hi';
-$foo = $moo = $test;
-$boo = 'boo';
-$foo = $moooo = 'foo';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc.fixed
deleted file mode 100644
index 407788ea..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc.fixed
+++ /dev/null
@@ -1,234 +0,0 @@
-<?php
-
-// Valid
-$var1 = 'var1';
-$var10 = 'var1';
-$var100 = 'var1';
-$var1000 = 'var1';
-
-// Invalid
-$var1 = 'var1';
-$var10 = 'var1';
-$var100 = 'var1';
-$var1000 = 'var1';
-
-// Valid
-$var1 = 'var1';
-$var10 = 'var1';
-
-$var100 = 'var1';
-$var1000 = 'var1';
-
-// Invalid
-$var1 = 'var1';
-$var10 = 'var1';
-
-$var100 = 'var1';
-$var1000 = 'var1';
-
-// Valid
-$var1 .= 'var1';
-$var10 .= 'var1';
-$var100 .= 'var1';
-$var1000 .= 'var1';
-
-// Invalid
-$var1 .= 'var1';
-$var10 .= 'var1';
-$var100 .= 'var1';
-$var1000 .= 'var1';
-
-// Valid
-$var1 = 'var1';
-$var10 .= 'var1';
-$var100 = 'var1';
-$var1000 .= 'var1';
-
-// Invalid
-$var1 = 'var1';
-$var10 .= 'var1';
-$var100 = 'var1';
-$var1000 .= 'var1';
-
-// Valid
-$var1 .= 'var1';
-$var10 .= 'var1';
-
-$var100 .= 'var1';
-$var1000 .= 'var1';
-
-// Invalid
-$var1 .= 'var1';
-$var10 .= 'var1';
-
-$var100 .= 'var1';
-$var1000 .= 'var1';
-
-// Valid
-$var = 100;
-
-// InValid
-$var = 100;
-
-$commentStart = $phpcsFile->findPrevious();
-$commentEnd = $this->_phpcsFile;
-$expected .= '...';
-
-// Invalid
-$this->okButton = new Button();
-$content = new MyClass();
-
-
-$GLOBALS['_PEAR_ERRORSTACK_SINGLETON'] = array();
-
-class MyClass
-{
- const MODE_DEBUG = 'debug';
- const MODE_DEBUG2 = 'debug';
-
- $array[$test] = 'anything';
- $var = 'anything';
-
- const MODE_DEBUG2 = 'debug';
- $array[$test] = 'anything';
- $var = 'anything';
- $array[($test + 1)] = 'anything';
- $array[($blah + (10 - $test))] = 'anything';
-}
-
-function myFunction($var=true)
-{
- if ($strict === true) {
- $length = strlen($string);
- $lastCharWasCaps = ($classFormat === false) ? false : true;
-
- for ($i = 1; $i < $length; $i++) {
- $isCaps = (strtoupper($string{$i}) === $string{$i}) ? true : false;
- if ($isCaps === true && $lastCharWasCaps === true) {
- return false;
- }
-
- $lastCharWasCaps = $isCaps;
- }
- }
-}
-
-// Valid
-for ($i = 0; $i < 10; $i += 2) {
- $i = ($i - 1);
-}
-
-// Invalid
-foreach ($files as $file) {
- $saves[$file] = array();
- $contents = stripslashes(file_get_contents($file));
- list($assetid, $time, $content) = explode("\n", $contents);
- $saves[$file]['assetid'] = $assetid;
-}
-
-$i = ($i - 10);
-$ip = ($i - 10);
-for ($i = 0; $i < 10; $i += 2) {
- $i = ($i - 10);
-}
-
-// Valid
-$variable = 12;
-$var = a_very(long_line('that', 'contains'),
- a_bunch('of long', 'parameters'),
- 'that_need to be aligned with the equal sign');
-$var2 = 12;
-
-// Valid
-$variable = 12;
-$var = 'a very long line of text that contains '
- .$someVar
- .' and some other stuff that is too long to fit on one line';
-$var2 = 12;
-
-// Invalid
-$variable = 12;
-$var = a_very(long_line('that', 'contains'),
- a_bunch('of long', 'parameters'),
- 'that_need to be aligned with the equal sign');
-$var2 = 12;
-
-// Invalid
-$variable = 12;
-$var = 'a very long line of text that contains '
- .$someVar
- .' and some other stuff that is too long to fit on one line';
-$var2 = 12;
-
-// Valid
-$variable = 12;
-$var .= 'a very long line of text that contains '
- .$someVar
- .' and some other stuff that is too long to fit on one line';
-$var2 = 12;
-
-// Valid
-$variable += 12;
-$var .= 'a very long line of text that contains '
- .$someVar
- .' and some other stuff that is too long to fit on one line';
-$var2 = 12;
-
-// Invalid
-$variable = 12;
-$var .= 'a very long line of text that contains '
- .$someVar
- .' and some other stuff that is too long to fit on one line';
-$var2 = 12;
-
-// Valid
-$error = false;
-while (list($h, $f) = each($handle)) {
- $error = true;
-}
-
-// Valid
-$value = false;
-function blah ($value = true) {
- $value = false;
- if ($value === true) {
- $value = false;
- }
-}
-
-if (TRUE) {
- $args = array('foo' => 'foo');
- $res = 'bar';
-}
-
-// @codingStandardsChangeSetting Generic.Formatting.MultipleStatementAlignment maxPadding 8
-
-$one = 'one';
-$varonetwo = 'two';
-$varonetwothree = 'three';
-$varonetwothreefour = 'four';
-
-$one = 'one';
-$varonetwo .= 'two';
-$varonetwo = 'two';
-$varonetwo .= 'two';
-$varonetwothree = 'three';
-$varonetwothreefour = 'four';
-
-// @codingStandardsChangeSetting Generic.Formatting.MultipleStatementAlignment maxPadding 1000
-
-$filterQuery = SquizRoadmap::getSearchQueryFilter($searchParams);
-Channels::addToBasket('itemid', $filterQuery);
-$query = DAL::getDALQuery('SquizRoadmapItem', 'getItemIds');
-$results = DAL::getAssoc($query, 0);
-
-$path = BaseSystem::getDataDir('SquizRoadmap').'/items/';
-$path .= FileSystem::getHashDir($itemid).'/'.$itemid;
-
-$contents .= 'if (';
-$conditions = array();
-
-$bar = 'hi';
-$foo = $moo = $test;
-$boo = 'boo';
-$foo = $moooo = 'foo';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js
deleted file mode 100644
index c55cdced..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-// Valid
-var1 = 'var1';
-var10 = 'var1';
-var100 = 'var1';
-var1000 = 'var1';
-
-// Invalid
-var1 = 'var1';
-var10 = 'var1';
-var100 = 'var1';
-var1000 = 'var1';
-
-// Valid
-var1 = 'var1';
-var10 = 'var1';
-
-var100 = 'var1';
-var1000 = 'var1';
-
-// Invalid
-var1 = 'var1';
-var10 = 'var1';
-
-var100 = 'var1';
-var1000 = 'var1';
-
-// Valid
-var1 += 'var1';
-var10 += 'var1';
-var100 += 'var1';
-var1000 += 'var1';
-
-// Invalid
-var1 += 'var1';
-var10+= 'var1';
-var100 += 'var1';
-var1000 += 'var1';
-
-// Valid
-var1 = 'var1';
-var10 += 'var1';
-var100 = 'var1';
-var1000 += 'var1';
-
-// Invalid
-var1 = 'var1';
-var10 += 'var1';
-var100 = 'var1';
-var1000+= 'var1';
-
-// Valid
-var1 += 'var1';
-var10 += 'var1';
-
-var100 += 'var1';
-var1000 += 'var1';
-
-// Invalid
-var1 += 'var1';
-var10 += 'var1';
-
-var100 += 'var1';
-var1000 += 'var1';
-
-// Valid
-var test = 100;
-
-// InValid
-var test = 100;
-
-commentStart = phpcsFile.findPrevious();
-commentEnd = this._phpcsFile;
-expected += '...';
-
-// Invalid
-this.okButton = {};
-content = {};
-
-var buttonid = [this.id, '-positionFormats-add'].join('');
-var buttonWidget = WidgetStore.get(buttonid);
-var spinButtonid = [this.id, '-positionFormats-spinButton'].join('');
-var spinButtonWidget = WidgetStore.get(spinButtonid);
-var position = spinButtonWidget.getValue();
-var posForamatsList = WidgetStore.get([self.id, '-positionFormats-list'].join(''));
-
-dfx.stripTags = function(content, allowedTags)
-{
- var match;
- var re = 'blah';
-};
-
-var contents += 'if (';
-var conditions = array();
-
-var foo = {};
-foo.blah = 'blah';
-
-var script = document.createElement('script');
-script.onload = function()
-{
- clearTimeout(t);
-};
-
-stream.match(stream.sol() ? /^\s*\/\/.*/ : /^\s+\/\/.*/);
-function() {
- if (condition)
- foo = .4
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js.fixed
deleted file mode 100644
index 36740be4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js.fixed
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-// Valid
-var1 = 'var1';
-var10 = 'var1';
-var100 = 'var1';
-var1000 = 'var1';
-
-// Invalid
-var1 = 'var1';
-var10 = 'var1';
-var100 = 'var1';
-var1000 = 'var1';
-
-// Valid
-var1 = 'var1';
-var10 = 'var1';
-
-var100 = 'var1';
-var1000 = 'var1';
-
-// Invalid
-var1 = 'var1';
-var10 = 'var1';
-
-var100 = 'var1';
-var1000 = 'var1';
-
-// Valid
-var1 += 'var1';
-var10 += 'var1';
-var100 += 'var1';
-var1000 += 'var1';
-
-// Invalid
-var1 += 'var1';
-var10 += 'var1';
-var100 += 'var1';
-var1000 += 'var1';
-
-// Valid
-var1 = 'var1';
-var10 += 'var1';
-var100 = 'var1';
-var1000 += 'var1';
-
-// Invalid
-var1 = 'var1';
-var10 += 'var1';
-var100 = 'var1';
-var1000 += 'var1';
-
-// Valid
-var1 += 'var1';
-var10 += 'var1';
-
-var100 += 'var1';
-var1000 += 'var1';
-
-// Invalid
-var1 += 'var1';
-var10 += 'var1';
-
-var100 += 'var1';
-var1000 += 'var1';
-
-// Valid
-var test = 100;
-
-// InValid
-var test = 100;
-
-commentStart = phpcsFile.findPrevious();
-commentEnd = this._phpcsFile;
-expected += '...';
-
-// Invalid
-this.okButton = {};
-content = {};
-
-var buttonid = [this.id, '-positionFormats-add'].join('');
-var buttonWidget = WidgetStore.get(buttonid);
-var spinButtonid = [this.id, '-positionFormats-spinButton'].join('');
-var spinButtonWidget = WidgetStore.get(spinButtonid);
-var position = spinButtonWidget.getValue();
-var posForamatsList = WidgetStore.get([self.id, '-positionFormats-list'].join(''));
-
-dfx.stripTags = function(content, allowedTags)
-{
- var match;
- var re = 'blah';
-};
-
-var contents += 'if (';
-var conditions = array();
-
-var foo = {};
-foo.blah = 'blah';
-
-var script = document.createElement('script');
-script.onload = function()
-{
- clearTimeout(t);
-};
-
-stream.match(stream.sol() ? /^\s*\/\/.*/ : /^\s+\/\/.*/);
-function() {
- if (condition)
- foo = .4
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php
deleted file mode 100644
index 71aa5774..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php
+++ /dev/null
@@ -1,120 +0,0 @@
-<?php
-/**
- * Unit test class for the MultipleStatementAlignment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Formatting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class MultipleStatementAlignmentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='MultipleStatementAlignmentUnitTest.inc')
- {
- switch ($testFile) {
- case 'MultipleStatementAlignmentUnitTest.inc':
- return array(
- 11 => 1,
- 12 => 1,
- 23 => 1,
- 24 => 1,
- 26 => 1,
- 27 => 1,
- 37 => 1,
- 38 => 1,
- 48 => 1,
- 50 => 1,
- 51 => 1,
- 61 => 1,
- 62 => 1,
- 64 => 1,
- 65 => 1,
- 71 => 1,
- 78 => 1,
- 79 => 1,
- 86 => 1,
- 92 => 1,
- 93 => 1,
- 94 => 1,
- 95 => 1,
- 123 => 1,
- 124 => 1,
- 126 => 1,
- 129 => 1,
- 154 => 1,
- 161 => 1,
- 178 => 1,
- 179 => 1,
- 182 => 1,
- 206 => 1,
- 207 => 1,
- );
- break;
- case 'MultipleStatementAlignmentUnitTest.js':
- return array(
- 11 => 1,
- 12 => 1,
- 23 => 1,
- 24 => 1,
- 26 => 1,
- 27 => 1,
- 37 => 1,
- 38 => 1,
- 48 => 1,
- 50 => 1,
- 51 => 1,
- 61 => 1,
- 62 => 1,
- 64 => 1,
- 65 => 1,
- 71 => 1,
- 78 => 1,
- 79 => 1,
- 81 => 1,
- 82 => 1,
- 83 => 1,
- 85 => 1,
- 86 => 1,
- 100 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc
deleted file mode 100644
index ba3bb43a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-$var = (int) $var2;
-$var = (int)$var2;
-$var = (int) $var2;
-
-$var = (integer) $var2;
-$var = (integer)$var2;
-$var = (integer) $var2;
-
-$var = (string) $var2;
-$var = (string)$var2;
-$var = (string) $var2;
-
-$var = (float) $var2;
-$var = (float)$var2;
-$var = (float) $var2;
-
-$var = (double) $var2;
-$var = (double)$var2;
-$var = (double) $var2;
-
-$var = (real) $var2;
-$var = (real)$var2;
-$var = (real) $var2;
-
-$var = (array) $var2;
-$var = (array)$var2;
-$var = (array) $var2;
-
-$var = (bool) $var2;
-$var = (bool)$var2;
-$var = (bool) $var2;
-
-$var = (boolean) $var2;
-$var = (boolean)$var2;
-$var = (boolean) $var2;
-
-$var = (object) $var2;
-$var = (object)$var2;
-$var = (object) $var2;
-
-$var = (unset) $var2;
-$var = (unset)$var2;
-$var = (unset) $var2;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc.fixed
deleted file mode 100644
index e650d084..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.inc.fixed
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-$var = (int)$var2;
-$var = (int)$var2;
-$var = (int)$var2;
-
-$var = (integer)$var2;
-$var = (integer)$var2;
-$var = (integer)$var2;
-
-$var = (string)$var2;
-$var = (string)$var2;
-$var = (string)$var2;
-
-$var = (float)$var2;
-$var = (float)$var2;
-$var = (float)$var2;
-
-$var = (double)$var2;
-$var = (double)$var2;
-$var = (double)$var2;
-
-$var = (real)$var2;
-$var = (real)$var2;
-$var = (real)$var2;
-
-$var = (array)$var2;
-$var = (array)$var2;
-$var = (array)$var2;
-
-$var = (bool)$var2;
-$var = (bool)$var2;
-$var = (bool)$var2;
-
-$var = (boolean)$var2;
-$var = (boolean)$var2;
-$var = (boolean)$var2;
-
-$var = (object)$var2;
-$var = (object)$var2;
-$var = (object)$var2;
-
-$var = (unset)$var2;
-$var = (unset)$var2;
-$var = (unset)$var2;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.php
deleted file mode 100644
index af89922d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/NoSpaceAfterCastUnitTest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**
- * Unit test class for the NoSpaceAfterCast sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Formatting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class NoSpaceAfterCastUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 5 => 1,
- 7 => 1,
- 9 => 1,
- 11 => 1,
- 13 => 1,
- 15 => 1,
- 17 => 1,
- 19 => 1,
- 21 => 1,
- 23 => 1,
- 25 => 1,
- 27 => 1,
- 29 => 1,
- 31 => 1,
- 33 => 1,
- 35 => 1,
- 37 => 1,
- 39 => 1,
- 41 => 1,
- 43 => 1,
- 45 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc
deleted file mode 100644
index ba3bb43a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-$var = (int) $var2;
-$var = (int)$var2;
-$var = (int) $var2;
-
-$var = (integer) $var2;
-$var = (integer)$var2;
-$var = (integer) $var2;
-
-$var = (string) $var2;
-$var = (string)$var2;
-$var = (string) $var2;
-
-$var = (float) $var2;
-$var = (float)$var2;
-$var = (float) $var2;
-
-$var = (double) $var2;
-$var = (double)$var2;
-$var = (double) $var2;
-
-$var = (real) $var2;
-$var = (real)$var2;
-$var = (real) $var2;
-
-$var = (array) $var2;
-$var = (array)$var2;
-$var = (array) $var2;
-
-$var = (bool) $var2;
-$var = (bool)$var2;
-$var = (bool) $var2;
-
-$var = (boolean) $var2;
-$var = (boolean)$var2;
-$var = (boolean) $var2;
-
-$var = (object) $var2;
-$var = (object)$var2;
-$var = (object) $var2;
-
-$var = (unset) $var2;
-$var = (unset)$var2;
-$var = (unset) $var2;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc.fixed
deleted file mode 100644
index 90ed8542..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.inc.fixed
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-$var = (int) $var2;
-$var = (int) $var2;
-$var = (int) $var2;
-
-$var = (integer) $var2;
-$var = (integer) $var2;
-$var = (integer) $var2;
-
-$var = (string) $var2;
-$var = (string) $var2;
-$var = (string) $var2;
-
-$var = (float) $var2;
-$var = (float) $var2;
-$var = (float) $var2;
-
-$var = (double) $var2;
-$var = (double) $var2;
-$var = (double) $var2;
-
-$var = (real) $var2;
-$var = (real) $var2;
-$var = (real) $var2;
-
-$var = (array) $var2;
-$var = (array) $var2;
-$var = (array) $var2;
-
-$var = (bool) $var2;
-$var = (bool) $var2;
-$var = (bool) $var2;
-
-$var = (boolean) $var2;
-$var = (boolean) $var2;
-$var = (boolean) $var2;
-
-$var = (object) $var2;
-$var = (object) $var2;
-$var = (object) $var2;
-
-$var = (unset) $var2;
-$var = (unset) $var2;
-$var = (unset) $var2;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php
deleted file mode 100644
index cec57b6e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**
- * Unit test class for the SpaceAfterCast sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Formatting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SpaceAfterCastUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 5 => 1,
- 8 => 1,
- 9 => 1,
- 12 => 1,
- 13 => 1,
- 16 => 1,
- 17 => 1,
- 20 => 1,
- 21 => 1,
- 24 => 1,
- 25 => 1,
- 28 => 1,
- 29 => 1,
- 32 => 1,
- 33 => 1,
- 36 => 1,
- 37 => 1,
- 40 => 1,
- 41 => 1,
- 44 => 1,
- 45 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc
deleted file mode 100644
index c2dd6326..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-if (!$someVar || !$x instanceOf 'stdClass') {}
-if (! $someVar || ! $x instanceOf 'stdClass') {}
-if (!foo() && (!$x || true)) {}
-$var = !($x || $y);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc.fixed
deleted file mode 100644
index f9a5d3c9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.inc.fixed
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-if (! $someVar || ! $x instanceOf 'stdClass') {}
-if (! $someVar || ! $x instanceOf 'stdClass') {}
-if (! foo() && (! $x || true)) {}
-$var = ! ($x || $y);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.js
deleted file mode 100644
index 3e4a4a47..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.js
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-if (!someVar || !x) {}
-if (! someVar || ! x) {}
-if (!foo() && (!x || true)) {}
-var z = !(x || y);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.js.fixed
deleted file mode 100644
index a669de42..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.js.fixed
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-if (! someVar || ! x) {}
-if (! someVar || ! x) {}
-if (! foo() && (! x || true)) {}
-var z = ! (x || y);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php
deleted file mode 100644
index 485ba302..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the SpaceAfterNot sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Formatting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SpaceAfterNotUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 2,
- 4 => 2,
- 5 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.inc
deleted file mode 100644
index 640d9fd7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-class myclass extends yourclass implements someint {
- function myfunc($var) {
- echo $var;
- }
-}
-
-$myvar = true;
-myfunc(&$myvar);
-myfunc($myvar);
-
-$this->myfunc(&$myvar);
-$this->myfunc($myvar);
-
-myclass::myfunc(&$myvar);
-myclass::myfunc($myvar);
-
-while(testfunc($var1, &$var2, $var3, &$var4) === false) {
-}
-
-sprintf("0%o", 0777 & $p);
-
-$foo(&$myvar);
-
-if (is_array($foo = &$this->bar())) {
-}
-
-Hooks::run( 'SecondaryDataUpdates', [ $title, $old, $recursive, $parserOutput, &$updates ] );
-
-$foo = Bar(&$fooBar);
-
-myfunc($myvar&$myvar);
-myfunc($myvar[0]&$myvar);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.php
deleted file mode 100644
index 3778f236..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the CallTimePassByReference sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class CallTimePassByReferenceUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 9 => 1,
- 12 => 1,
- 15 => 1,
- 18 => 2,
- 23 => 1,
- 30 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc
deleted file mode 100644
index 0516451e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-
-$result = myFunction();
-$result = myFunction($arg1, $arg2);
-$result = myFunction($arg1,$arg2);
-$result = myFunction($arg1 , $arg2);
-$result = myFunction($arg1 , $arg2);
-$result = myFunction($arg1, $arg2, $arg3,$arg4, $arg5);
-$result = myFunction($arg1, $arg2, $arg3, $arg4, $arg5);
-$result = myFunction($arg1, $arg2 = array());
-$result = myFunction($arg1 , $arg2 =array());
-$result = myFunction($arg1 , $arg2= array());
-$result = myFunction($arg1 , $arg2=array());
-
-$result = myFunction($arg1,
- $arg2 = array(),
- $arg3,
- $arg4,
- $arg5);
-
-throw new Exception("This is some massive string for a message",
- $cause);
-
-// Function definitions are ignored
-function myFunction($arg1,$arg2)
-{
-}
-
-function myFunction ($arg1,$arg2)
-{
-}
-
-function myFunction($arg1=1,$arg2=2)
-{
-}
-
-
-function myFunction($arg1 = 1,$arg2 = 2)
-{
-}
-
-$key = array_search($this->getArray($one, $two,$three),$this->arrayMap);
-$this->error($obj->getCode(),$obj->getMessage(),$obj->getFile(),$obj->getLine());
-
-make_foo($string /*the string*/ , true /*test*/);
-make_foo($string/*the string*/ , /*test*/ true);
-make_foo($string /*the string*/, /*test*/ true);
-
-class MyClass {
- function myFunction() {
- blah($foo, "{{$config['host']}}", "{$config}", "hi there{}{}{{{}{}{}}");
- }
-}
-
-// Function definition, not function call, so should be ignored
-function &myFunction($arg1=1,$arg2=2)
-{
-}
-
-return array_udiff(
- $foo,
- $bar,
- function($a, $b) {
- $foo='bar';
- return $foo;
- }
-);
-
-var_dump(<<<FOO
-foo
-FOO
-,
-<<<BAR
-bar
-BAR
-, <<<BAZ
-baz
-BAZ
-,<<<'NOW'
-now
-NOW
-, <<<'THEN'
-then
-THEN
-);
-
-if (in_array($arg1, ['foo','bar'])) {}
-if (in_array($arg1, array('foo','bar'))) {}
-
-$b = foo(
- "1", // this is a comment
- "2", // this is a comment
- "3",// this is a comment
- "4"
-);
-
-var_dump(
- <<<TEXT
-foo
-TEXT
- ,
- 'bar'
-);
-
-unset($foo,$bar);
-
-$closure($foo,$bar);
-$var = $closure() + $closure($foo,$bar) + self::$closure($foo,$bar); \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc.fixed
deleted file mode 100644
index 6eb37725..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc.fixed
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-
-$result = myFunction();
-$result = myFunction($arg1, $arg2);
-$result = myFunction($arg1, $arg2);
-$result = myFunction($arg1, $arg2);
-$result = myFunction($arg1, $arg2);
-$result = myFunction($arg1, $arg2, $arg3, $arg4, $arg5);
-$result = myFunction($arg1, $arg2, $arg3, $arg4, $arg5);
-$result = myFunction($arg1, $arg2 = array());
-$result = myFunction($arg1, $arg2 = array());
-$result = myFunction($arg1, $arg2 = array());
-$result = myFunction($arg1, $arg2 = array());
-
-$result = myFunction($arg1,
- $arg2 = array(),
- $arg3,
- $arg4,
- $arg5);
-
-throw new Exception("This is some massive string for a message",
- $cause);
-
-// Function definitions are ignored
-function myFunction($arg1,$arg2)
-{
-}
-
-function myFunction ($arg1,$arg2)
-{
-}
-
-function myFunction($arg1=1,$arg2=2)
-{
-}
-
-
-function myFunction($arg1 = 1,$arg2 = 2)
-{
-}
-
-$key = array_search($this->getArray($one, $two, $three), $this->arrayMap);
-$this->error($obj->getCode(), $obj->getMessage(), $obj->getFile(), $obj->getLine());
-
-make_foo($string /*the string*/, true /*test*/);
-make_foo($string/*the string*/, /*test*/ true);
-make_foo($string /*the string*/, /*test*/ true);
-
-class MyClass {
- function myFunction() {
- blah($foo, "{{$config['host']}}", "{$config}", "hi there{}{}{{{}{}{}}");
- }
-}
-
-// Function definition, not function call, so should be ignored
-function &myFunction($arg1=1,$arg2=2)
-{
-}
-
-return array_udiff(
- $foo,
- $bar,
- function($a, $b) {
- $foo='bar';
- return $foo;
- }
-);
-
-var_dump(<<<FOO
-foo
-FOO
-,
-<<<BAR
-bar
-BAR
-, <<<BAZ
-baz
-BAZ
-, <<<'NOW'
-now
-NOW
-, <<<'THEN'
-then
-THEN
-);
-
-if (in_array($arg1, ['foo','bar'])) {}
-if (in_array($arg1, array('foo','bar'))) {}
-
-$b = foo(
- "1", // this is a comment
- "2", // this is a comment
- "3", // this is a comment
- "4"
-);
-
-var_dump(
- <<<TEXT
-foo
-TEXT
- ,
- 'bar'
-);
-
-unset($foo, $bar);
-
-$closure($foo, $bar);
-$var = $closure() + $closure($foo, $bar) + self::$closure($foo, $bar); \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php
deleted file mode 100644
index 27b9037f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionCallArgumentSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionCallArgumentSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 5 => 1,
- 6 => 1,
- 7 => 2,
- 8 => 1,
- 11 => 2,
- 12 => 2,
- 13 => 3,
- 42 => 3,
- 43 => 3,
- 45 => 1,
- 46 => 2,
- 79 => 1,
- 82 => 1,
- 93 => 1,
- 105 => 1,
- 107 => 1,
- 108 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc
deleted file mode 100644
index 233a0130..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc
+++ /dev/null
@@ -1,198 +0,0 @@
-<?php
-
-// Brace should be on new line.
-function myFunction() {
-}
-
-// Good.
-function myFunction()
-{
-}
-
-// Too many spaces.
-function myFunction() {
-}
-
-// Too many newlines.
-function myFunction()
-
-{
-}
-
-// Space before brace.
-function myFunction()
- {
-}
-
-class myClass()
-{
- // Brace should be on new line.
- function myFunction() {
- }
-
- // Good.
- function myFunction()
- {
- }
-
- // No aligned correctly.
- function myFunction()
-{
-}
-
- // Too many spaces.
- function myFunction() {
- }
-
- // Too many newlines.
- function myFunction()
-
- {
- }
-
- // Space before brace.
- function myFunction()
- {
- }
-}
-
-
-
-/* Multi-line declarations */
-
-
-
-// Brace should be on new line.
-function myFunction($variable1, $variable2,
- $variable3, $variable4) {
-}
-
-// Good.
-function myFunction($variable1, $variable2,
- $variable3, $variable4)
-{
-}
-
-// Too many spaces.
-function myFunction($variable1, $variable2,
- $variable3, $variable4) {
-}
-
-// Too many newlines.
-function myFunction($variable1, $variable2,
- $variable3, $variable4)
-
-{
-}
-
-// Space before brace.
-function myFunction($variable1, $variable2,
- $variable3, $variable4)
- {
-}
-
-class myClass()
-{
- // Brace should be on new line.
- function myFunction($variable1, $variable2,
- $variable3, $variable4) {
- }
-
- // Good.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
- {
- }
-
- // No aligned correctly.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
-{
-}
-
- // Too many spaces.
- function myFunction($variable1, $variable2,
- $variable3, $variable4) {
- }
-
- // Too many newlines.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
-
- {
- }
-
- // Space before brace.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
- {
- }
-}
-
-interface MyInterface()
-{
- function myFunction();
-}
-
-function myFunction(
- $arg1,
- $arg2,
- $arg3,
- $arg4,
- $arg5,
- $arg6
- )
-{
-}
-
-function myFunction(
- $arg1,
- $arg2,
- $arg3,
- $arg4,
- $arg5,
- $arg6
- ) {
-}
-
-function myFunction() {}
-function myFunction()
-{}
-
-// @codingStandardsChangeSetting Generic.Functions.OpeningFunctionBraceBsdAllman checkClosures 1
-
-$closureWithArgs = function ($arg1, $arg2) {
- // body
-};
-
-$closureWithArgsAndVars = function ($arg1, $arg2) use ($var1, $var2) {
- // body
-};
-
-$test = function ($param) use ($result) {
- return null;
-}
-
-$test = function ($param) use ($result) : Something {
- return null;
-};
-
-// @codingStandardsChangeSetting Generic.Functions.OpeningFunctionBraceBsdAllman checkClosures 0
-
-$closureWithArgs = function ($arg1, $arg2) {
- // body
-};
-
-class Foo
-{
-//Comments should not affect code
- public function bar()
- {
-
- }
-//Comments should not affect code
-}
-
-function myFunction() : Something {
- return null;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc.fixed
deleted file mode 100644
index 4d634b8f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc.fixed
+++ /dev/null
@@ -1,209 +0,0 @@
-<?php
-
-// Brace should be on new line.
-function myFunction()
-{
-}
-
-// Good.
-function myFunction()
-{
-}
-
-// Too many spaces.
-function myFunction()
-{
-}
-
-// Too many newlines.
-function myFunction()
-{
-}
-
-// Space before brace.
-function myFunction()
-{
-}
-
-class myClass()
-{
- // Brace should be on new line.
- function myFunction()
- {
- }
-
- // Good.
- function myFunction()
- {
- }
-
- // No aligned correctly.
- function myFunction()
- {
-}
-
- // Too many spaces.
- function myFunction()
- {
- }
-
- // Too many newlines.
- function myFunction()
- {
- }
-
- // Space before brace.
- function myFunction()
- {
- }
-}
-
-
-
-/* Multi-line declarations */
-
-
-
-// Brace should be on new line.
-function myFunction($variable1, $variable2,
- $variable3, $variable4)
-{
-}
-
-// Good.
-function myFunction($variable1, $variable2,
- $variable3, $variable4)
-{
-}
-
-// Too many spaces.
-function myFunction($variable1, $variable2,
- $variable3, $variable4)
-{
-}
-
-// Too many newlines.
-function myFunction($variable1, $variable2,
- $variable3, $variable4)
-{
-}
-
-// Space before brace.
-function myFunction($variable1, $variable2,
- $variable3, $variable4)
-{
-}
-
-class myClass()
-{
- // Brace should be on new line.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
- {
- }
-
- // Good.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
- {
- }
-
- // No aligned correctly.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
- {
-}
-
- // Too many spaces.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
- {
- }
-
- // Too many newlines.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
- {
- }
-
- // Space before brace.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
- {
- }
-}
-
-interface MyInterface()
-{
- function myFunction();
-}
-
-function myFunction(
- $arg1,
- $arg2,
- $arg3,
- $arg4,
- $arg5,
- $arg6
- )
-{
-}
-
-function myFunction(
- $arg1,
- $arg2,
- $arg3,
- $arg4,
- $arg5,
- $arg6
- )
-{
-}
-
-function myFunction()
-{}
-function myFunction()
-{}
-
-// @codingStandardsChangeSetting Generic.Functions.OpeningFunctionBraceBsdAllman checkClosures 1
-
-$closureWithArgs = function ($arg1, $arg2)
-{
- // body
-};
-
-$closureWithArgsAndVars = function ($arg1, $arg2) use ($var1, $var2)
-{
- // body
-};
-
-$test = function ($param) use ($result)
-{
- return null;
-}
-
-$test = function ($param) use ($result) : Something
-{
- return null;
-};
-
-// @codingStandardsChangeSetting Generic.Functions.OpeningFunctionBraceBsdAllman checkClosures 0
-
-$closureWithArgs = function ($arg1, $arg2) {
- // body
-};
-
-class Foo
-{
-//Comments should not affect code
- public function bar()
- {
-
- }
-//Comments should not affect code
-}
-
-function myFunction() : Something
-{
- return null;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php
deleted file mode 100644
index 44fba0db..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-/**
- * Unit test class for the OpeningFunctionBraceBsdAllman sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class OpeningFunctionBraceBsdAllmanUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 13 => 1,
- 19 => 1,
- 24 => 1,
- 30 => 1,
- 40 => 1,
- 44 => 1,
- 50 => 1,
- 55 => 1,
- 67 => 1,
- 78 => 1,
- 85 => 1,
- 91 => 1,
- 98 => 1,
- 110 => 1,
- 115 => 1,
- 122 => 1,
- 128 => 1,
- 155 => 1,
- 158 => 1,
- 164 => 1,
- 168 => 1,
- 172 => 1,
- 176 => 1,
- 196 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc
deleted file mode 100644
index e7c988fe..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc
+++ /dev/null
@@ -1,169 +0,0 @@
-<?php
-
-// Good.
-function myFunction() {
-}
-
-// Brace should be on same line.
-function myFunction()
-{
-}
-
-// Too many spaces.
-function myFunction() {
-}
-
-// Uses tab.
-function myFunction() {
-}
-
-
-class myClass()
-{
- // Good.
- function myFunction() {
- }
-
- // Brace should be on same line.
- function myFunction()
- {
- }
-
- // Too many spaces.
- function myFunction() {
- }
-
- // Uses tab.
- function myFunction() {
- }
-}
-
-
-
-/* Multi-line declarations */
-
-// Good.
-function myFunction($variable1, $variable2,
- $variable3, $variable4) {
-}
-
-// Brace should be on same line.
-function myFunction($variable1, $variable2,
- $variable3, $variable4)
-{
-}
-
-// Too many spaces.
-function myFunction($variable1, $variable2,
- $variable3, $variable4) {
-}
-
-// Uses tab.
-function myFunction($variable1, $variable2,
- $variable3, $variable4) {
-}
-
-
-class myClass()
-{
- // Good.
- function myFunction($variable1, $variable2,
- $variable3, $variable4) {
- }
-
- // Brace should be on same line.
- function myFunction($variable1, $variable2,
- $variable3, $variable4)
- {
- }
-
- // Too many spaces.
- function myFunction($variable1, $variable2,
- $variable3, $variable4) {
- }
-
- // Uses tab.
- function myFunction($variable1, $variable2,
- $variable3, $variable4) {
- }
-}
-
-interface MyInterface()
-{
- function myFunction();
-}
-
-function myFunction(
- $arg1,
- $arg2,
- $arg3,
- $arg4,
- $arg5,
- $arg6
- )
-{
-}
-
-function myFunction(
- $arg1,
- $arg2,
- $arg3,
- $arg4,
- $arg5,
- $arg6
- ) {
-}
-
-function myFunction() {}
-function myFunction()
-{}
-
-// @codingStandardsChangeSetting Generic.Functions.OpeningFunctionBraceKernighanRitchie checkClosures 1
-
-$closureWithArgs = function ($arg1, $arg2){
- // body
-};
-
-$closureWithArgsAndVars = function ($arg1, $arg2) use ($var1, $var2){
- // body
-};
-
-$test = function ($param) use ($result)
-{
- return null;
-}
-
-$test = function ($param) use ($result) : Something
-{
- return null;
-}
-
-$test = function ($param) use ($result): Something
-{
- return null;
-}
-
-// @codingStandardsChangeSetting Generic.Functions.OpeningFunctionBraceKernighanRitchie checkClosures 0
-
-$closureWithArgs = function ($arg1, $arg2){
- // body
-};
-
-function myFunction() : Something
-{
- return null;
-}
-
-function myFunction() : Something // Break me
-{
- return null;
-}
-
-function myFunction(): Something {
- return null;
-}
-
-function myFunction(): Something
-{
- return null;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc.fixed
deleted file mode 100644
index 3a1c70e3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc.fixed
+++ /dev/null
@@ -1,159 +0,0 @@
-<?php
-
-// Good.
-function myFunction() {
-}
-
-// Brace should be on same line.
-function myFunction() {
-}
-
-// Too many spaces.
-function myFunction() {
-}
-
-// Uses tab.
-function myFunction() {
-}
-
-
-class myClass()
-{
- // Good.
- function myFunction() {
- }
-
- // Brace should be on same line.
- function myFunction() {
- }
-
- // Too many spaces.
- function myFunction() {
- }
-
- // Uses tab.
- function myFunction() {
- }
-}
-
-
-
-/* Multi-line declarations */
-
-// Good.
-function myFunction($variable1, $variable2,
- $variable3, $variable4) {
-}
-
-// Brace should be on same line.
-function myFunction($variable1, $variable2,
- $variable3, $variable4) {
-}
-
-// Too many spaces.
-function myFunction($variable1, $variable2,
- $variable3, $variable4) {
-}
-
-// Uses tab.
-function myFunction($variable1, $variable2,
- $variable3, $variable4) {
-}
-
-
-class myClass()
-{
- // Good.
- function myFunction($variable1, $variable2,
- $variable3, $variable4) {
- }
-
- // Brace should be on same line.
- function myFunction($variable1, $variable2,
- $variable3, $variable4) {
- }
-
- // Too many spaces.
- function myFunction($variable1, $variable2,
- $variable3, $variable4) {
- }
-
- // Uses tab.
- function myFunction($variable1, $variable2,
- $variable3, $variable4) {
- }
-}
-
-interface MyInterface()
-{
- function myFunction();
-}
-
-function myFunction(
- $arg1,
- $arg2,
- $arg3,
- $arg4,
- $arg5,
- $arg6
- ) {
-}
-
-function myFunction(
- $arg1,
- $arg2,
- $arg3,
- $arg4,
- $arg5,
- $arg6
- ) {
-}
-
-function myFunction() {}
-function myFunction() {
-}
-
-// @codingStandardsChangeSetting Generic.Functions.OpeningFunctionBraceKernighanRitchie checkClosures 1
-
-$closureWithArgs = function ($arg1, $arg2) {
- // body
-};
-
-$closureWithArgsAndVars = function ($arg1, $arg2) use ($var1, $var2) {
- // body
-};
-
-$test = function ($param) use ($result) {
- return null;
-}
-
-$test = function ($param) use ($result) : Something {
- return null;
-}
-
-$test = function ($param) use ($result): Something {
- return null;
-}
-
-// @codingStandardsChangeSetting Generic.Functions.OpeningFunctionBraceKernighanRitchie checkClosures 0
-
-$closureWithArgs = function ($arg1, $arg2){
- // body
-};
-
-function myFunction() : Something {
- return null;
-}
-
-function myFunction() : Something {
- // Break me
- return null;
-}
-
-function myFunction(): Something {
- return null;
-}
-
-function myFunction(): Something {
- return null;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php
deleted file mode 100644
index 045a15c0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**
- * Unit test class for the OpeningFunctionBraceKernighanRitchie sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class OpeningFunctionBraceKernighanRitchieUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 9 => 1,
- 13 => 1,
- 17 => 1,
- 29 => 1,
- 33 => 1,
- 37 => 1,
- 53 => 1,
- 58 => 1,
- 63 => 1,
- 77 => 1,
- 82 => 1,
- 87 => 1,
- 104 => 1,
- 119 => 1,
- 123 => 1,
- 127 => 1,
- 132 => 1,
- 137 => 1,
- 142 => 1,
- 153 => 1,
- 158 => 1,
- 167 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.inc
deleted file mode 100644
index 2f270edf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.inc
+++ /dev/null
@@ -1,160 +0,0 @@
-<?php
-
-function complexityOne() { }
-
-function comlexityFive()
-{
- if ($condition) {
- }
-
- switch ($condition) {
- case '1':
- break;
- case '2':
- break;
- case '3':
- break;
- }
-}
-
-function comlexityTen()
-{
- while ($condition === true) {
- if ($condition) {
- }
- }
-
- switch ($condition) {
- case '1':
- if ($condition) {
- } else if ($cond) {
- }
- break;
- case '2':
- while ($cond) {
- echo 'hi';
- }
- break;
- case '3':
- break;
- default:
- break;
- }
-}
-
-function comlexityEleven()
-{
- while ($condition === true) {
- if ($condition) {
- } else if ($cond) {
- }
- }
-
- switch ($condition) {
- case '1':
- if ($condition) {
- } else if ($cond) {
- }
- break;
- case '2':
- while ($cond) {
- echo 'hi';
- }
- break;
- case '3':
- break;
- default:
- break;
- }
-}
-
-
-function comlexityTwenty()
-{
- while ($condition === true) {
- if ($condition) {
- } else if ($cond) {
- }
- }
-
- switch ($condition) {
- case '1':
- if ($condition) {
- } else if ($cond) {
- }
- break;
- case '2':
- while ($cond) {
- echo 'hi';
- }
- break;
- case '3':
- switch ($cond) {
- case '1':
- break;
- case '2':
- break;
- }
- break;
- case '4':
- do {
- if ($condition) {
- if ($cond) {
- } else if ($con) {
- }
- }
- } while ($cond);
- break;
- default:
- if ($condition) {
- }
- break;
- }
-}
-
-
-function comlexityTwentyOne()
-{
- while ($condition === true) {
- if ($condition) {
- } else if ($cond) {
- }
- }
-
- switch ($condition) {
- case '1':
- if ($condition) {
- } else if ($cond) {
- }
- break;
- case '2':
- while ($cond) {
- echo 'hi';
- }
- break;
- case '3':
- switch ($cond) {
- case '1':
- break;
- case '2':
- break;
- }
- break;
- case '4':
- do {
- if ($condition) {
- if ($cond) {
- } else if ($con) {
- }
- }
- } while ($cond);
- break;
- default:
- if ($condition) {
- } else if ($cond) {
- }
- break;
- }
-}
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php
deleted file mode 100644
index 993048a6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the CyclomaticComplexity sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Metrics;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class CyclomaticComplexityUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(116 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 45 => 1,
- 72 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.inc
deleted file mode 100644
index 97087924..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.inc
+++ /dev/null
@@ -1,102 +0,0 @@
-<?php
-
-function nestingOne()
-{
- if ($condition) {
- echo 'hi';
- }
-}
-
-function nestingFive()
-{
- if ($condition) {
- echo 'hi';
- switch ($condition)
- {
- case '1':
- if ($condition === '1') {
- if ($cond) {
- echo 'hi';
- }
- }
- break;
- }
- }
-}
-
-function nestingSix()
-{
- if ($condition) {
- echo 'hi';
- switch ($condition)
- {
- case '1':
- if ($condition === '1') {
- if ($cond) {
- foreach ($conds as $cond) {
- echo 'hi';
- }
- }
- }
- break;
- }
- }
-}
-
-function nestingTen()
-{
- if ($condition) {
- echo 'hi';
- switch ($condition)
- {
- case '1':
- if ($condition === '1') {
- if ($cond) {
- switch ($cond) {
- case '1':
- if ($cond === '1') {
- foreach ($conds as $cond) {
- if ($cond === 'hi') {
- echo 'hi';
- }
- }
- }
- break;
- }
- }
- }
- break;
- }
- }
-}
-
-function nestingEleven()
-{
- if ($condition) {
- echo 'hi';
- switch ($condition)
- {
- case '1':
- if ($condition === '1') {
- if ($cond) {
- switch ($cond) {
- case '1':
- if ($cond === '1') {
- foreach ($conds as $cond) {
- if ($cond === 'hi') {
- if ($cond !== 'bye') {
- echo 'hi';
- }
- }
- }
- }
- break;
- }
- }
- }
- break;
- }
- }
-}
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php
deleted file mode 100644
index 2c1a7c35..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the NestingLevel sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Metrics;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class NestingLevelUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(73 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 27 => 1,
- 46 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.inc
deleted file mode 100644
index 2da49988..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.inc
+++ /dev/null
@@ -1,149 +0,0 @@
-<?php
-
-abstract class My_Class {
-
- public function __construct() {}
- public function My_Class() {}
- public function _My_Class() {}
-
- public function getSomeValue() {}
- public function parseMyDSN() {}
- public function get_some_value() {}
- public function GetSomeValue() {}
- public function getSomeValue_Again() {}
-
- protected function getSomeValue() {}
- protected function parseMyDSN() {}
- protected function get_some_value() {}
-
- private function _getSomeValue() {}
- private function parseMyDSN() {}
- private function _get_some_value() {}
-
- function getSomeValue() {}
- function parseMyDSN() {}
- function get_some_value() {}
-
-}//end class
-
-function getSomeValue() {}
-function parseMyDSN() {}
-function get_some_value() {}
-
-
-/* Test for magic functions */
-
-class Magic_Test {
- function __construct() {}
- function __destruct() {}
- function __call() {}
- function __callStatic() {}
- function __get() {}
- function __set() {}
- function __isset() {}
- function __unset() {}
- function __sleep() {}
- function __wakeup() {}
- function __toString() {}
- function __set_state() {}
- function __clone() {}
- function __autoload() {}
- function __invoke() {}
- function __myFunction() {}
- function __my_function() {}
- function __call() {}
-}
-
-function __construct() {}
-function __destruct() {}
-function __call() {}
-function __callStatic() {}
-function __get() {}
-function __set() {}
-function __isset() {}
-function __unset() {}
-function __sleep() {}
-function __wakeup() {}
-function __toString() {}
-function __set_state() {}
-function __clone() {}
-function __autoload() {}
-function __invoke() {}
-function __myFunction() {}
-function __my_function() {}
-function __call() {}
-
-class Closure_Test {
- function test() {
- $foo = function() { echo 'foo'; };
- }
-}
-
-function test() {
- $foo = function() { echo 'foo'; };
-}
-
-/* @codingStandardsIgnoreStart */
-class MyClass
-{
- /* @codingStandardsIgnoreEnd */
- public function __construct() {}
-}
-
-trait Foo
-{
- function __call() {}
-}
-
-class Magic_Case_Test {
- function __Construct() {}
- function __isSet() {}
- function __tostring() {}
-}
-function __autoLoad() {}
-
-class Foo extends \SoapClient
-{
- public function __soapCall(
- $functionName,
- $arguments,
- $options = array(),
- $inputHeaders = null,
- &$outputHeaders = array()
- ) {
- // body
- }
-}
-
-function __debugInfo() {}
-class Foo {
- function __debugInfo() {}
-}
-
-function ___tripleUnderscore() {} // Ok.
-
-class triple {
- public function ___tripleUnderscore() {} // Ok.
-}
-
-/* Magic methods in anonymous classes. */
-$a = new class {
- function __construct() {}
- function __destruct() {}
- function __call() {}
- function __callStatic() {}
- function __get() {}
- function __set() {}
- function __isset() {}
- function __unset() {}
- function __sleep() {}
- function __wakeup() {}
- function __toString() {}
- function __set_state() {}
- function __clone() {}
- function __autoload() {}
- function __invoke() {}
- function __myFunction() {}
- function __my_function() {}
- function __call() {}
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php
deleted file mode 100644
index 5a9d9435..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-/**
- * Unit test class for the CamelCapsFunctionName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class CamelCapsFunctionNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- $errors = array(
- 10 => 1,
- 11 => 1,
- 12 => 1,
- 13 => 1,
- 16 => 1,
- 17 => 1,
- 20 => 1,
- 21 => 1,
- 24 => 1,
- 25 => 1,
- 30 => 1,
- 31 => 1,
- 50 => 1,
- 52 => 1,
- 53 => 1,
- 57 => 1,
- 58 => 1,
- 59 => 1,
- 60 => 1,
- 61 => 1,
- 62 => 1,
- 63 => 1,
- 64 => 1,
- 65 => 1,
- 66 => 1,
- 67 => 1,
- 68 => 1,
- 69 => 1,
- 71 => 1,
- 72 => 1,
- 73 => 1,
- 74 => 1,
- 118 => 1,
- 144 => 1,
- 146 => 1,
- 147 => 1,
- );
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.inc
deleted file mode 100644
index ed839b34..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.inc
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-class TestClass extends MyClass
-{
-
- function TestClass() {
- parent::MyClass();
- parent::__construct();
- }
-
- function __construct() {
- parent::MyClass();
- parent::__construct();
- }
-
-}
-
-class MyClass
-{
-
- function MyClass() {
- parent::YourClass();
- parent::__construct();
- }
-
- function __construct() {
- parent::YourClass();
- parent::__construct();
- }
-
-}
-
-class MyClass extends \MyNamespace\SomeClass
-{
- function __construct() {
- something::MyNamespace();
- }
-
-}
-
-abstract class MyAbstractClass extends \MyNamespace\SomeClass
-{
- abstract public function __construct();
-}
-
-class OldClass
-{
- function OldClass()
- {
-
- }
-}
-
-foo(new class extends MyClass
-{
-
- function TestClass() {
- parent::MyClass();
- parent::__construct();
- }
-
- function __construct() {
- parent::MyClass();
- parent::__construct();
- }
-
-});
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php
deleted file mode 100644
index 28f38027..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the ConstructorName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ConstructorNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 6 => 1,
- 11 => 1,
- 47 => 1,
- 62 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.inc
deleted file mode 100644
index 0b7c0a54..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.inc
+++ /dev/null
@@ -1,171 +0,0 @@
-<?php
-use Exception as My_Exception, foo\bar, baz;
-namespace foo;
-namespace foo\bar;
-namespace bar\foo\baz;
-
-define('VALID_NAME', true);
-define('invalidName', true);
-define("VALID_NAME", true);
-define("invalidName", true);
-define('bar\foo\baz\VALID_NAME_WITH_NAMESPACE', true);
-define('bar\foo\baz\invalidNameWithNamespace', true);
-define("bar\foo\baz\VALID_NAME_WITH_NAMESPACE", true);
-define("bar\foo\baz\invalidNameWithNamespace", true);
-
-class TestClass extends MyClass, YourClass
-{
-
- const const1 = 'hello';
- const CONST2 = 'hello';
-
- function test()
- {
- echo constant('VALID_NAME');
- echo VALID_NAME;
- print VALID_NAME;
- echo(VALID_NAME);
- print(VALID_NAME);
- echo constant('invalidName');
- echo invalidName;
- print invalidName;
- echo(invalidName);
- print(invalidName);
- echo constant('VALID_NAME_WITH_NAMESPACE');
- echo VALID_NAME_WITH_NAMESPACE;
- print VALID_NAME_WITH_NAMESPACE;
- echo(VALID_NAME_WITH_NAMESPACE);
- print(VALID_NAME_WITH_NAMESPACE);
- echo constant('invalidNameWithNamespace');
- echo invalidNameWithNamespace;
- print invalidNameWithNamespace;
- echo(invalidNameWithNamespace);
- print(invalidNameWithNamespace);
-
- echo constant("VALID_NAME");
- echo constant("invalidName");
- echo constant("VALID_NAME_WITH_NAMESPACE");
- echo constant("invalidNameWithNamespace");
-
- echo 'Hello', VALID_NAME;
- echo 'Hello', invalidName;
- echo 'Hello', VALID_NAME_WITH_NAMESPACE;
- echo 'Hello', invalidNameWithNamespace;
-
- // These might look like constants to
- // poorly written code.
- echo 'Hello there';
- echo "HELLO";
- echo 'HELLO';
- print 'Hello there';
- print "HELLO";
- print 'HELLO';
- }
-
- function myFunc(PHP_CodeSniffer &$blah) {}
- function myFunc(PHP_CodeSniffer $blah) {}
-
-}
-
-interface MyInterface
-{
-}
-
-if (($object instanceof Some_Class) === false) {
- $var = <<<EOF
-This is some heredoc text.
-This is some heredoc text.
-This is some heredoc text.
-
-This is some heredoc text.
-This is some heredoc text.
-This is some heredoc text.
-EOF;
-}
-
-$var = <<<EOF
-This is some heredoc text.
-This is some heredoc text.
-This is some heredoc text.
-
-This is some heredoc text.
-This is some heredoc text.
-This is some heredoc text.
-EOF;
-
-throw new InvalidSomethingException;
-
-declare(ticks = 1) {
- foreach ($var as $bit) {
- echo $bit;
- }
-}
-
-$binary = (binary) $string;
-
-$foo->define('bar');
-$foo->getBar()->define('foo');
-
-// This is allowed as it is required for PHPUnit.
-if (PHPUnit_MAIN_METHOD == 'PHP_Shell_AllTests::main') {
- PHP_Shell_AllTests::main();
-}
-
-class ConstTest {
- const TESTER = '1';
- public function __construct() {
- echo constant('self::TESTER');
- echo constant('self::tester');
- }
-}
-
-class A {
- public static function constant($x) {}
-}
-
-A::constant('anything-not-in-uppercase');
-
-// goto
-goto gotolabel;
-
-gototarget1:
-
-function ConstTest() {
- gototarget2:
-}
-
-switch($foo)
-{
- case $bar:
- gototarget3:
-}
-
-$a = 2 * ${x} - ${minus};
-
-class Object implements IObject
-{
- use TProperties;
- use TReflected {
- TReflected::reflect insteadof TProperties;
- }
- use ListenerAggregateTrait, PreLoadUserTrait, PreLoadCompanyTrait {
- PreloadUserTrait::PreLoadUser as loadUser;
- PreloadCompanyTrait::PreLoadCompany as loadCompany;
- }
-}
-
-class MyClass {
- use Something {
- delete as protected blah;
- }
-}
-
-class Foo
-{
- public function bar()
- {
- return Bar::class;
- }
-}
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php
deleted file mode 100644
index 2c5b187e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * Unit test class for the ValidConstantName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class UpperCaseConstantNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 8 => 1,
- 10 => 1,
- 12 => 1,
- 14 => 1,
- 19 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.inc
deleted file mode 100644
index 3355c2d3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-$output = `ls -al`;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php
deleted file mode 100644
index 2c9e3eb0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/**
- * Unit test class for the BacktickOperator sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class BacktickOperatorUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(2 => 2);
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.1.inc
deleted file mode 100644
index 2bcf7505..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.1.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-Foo
-<?php
-// Some code
-?>
-
-
- <?php
-// Some code
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.2.inc
deleted file mode 100644
index 5f80ab9f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.2.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-//some code \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php
deleted file mode 100644
index 061d631c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Unit test class for the CharacterBeforePHPOpeningTag sniff.
- *
- * @author Andy Grunwald <andygrunwald@gmail.com>
- * @copyright 2010-2014 Andy Grunwald
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class CharacterBeforePHPOpeningTagUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'CharacterBeforePHPOpeningTagUnitTest.1.inc':
- return array(2 => 1);
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.inc
deleted file mode 100644
index 1037c9eb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-echo 'foo';
-?>
-<b>Bold text</b>
-<?php
-echo 'bar';
-?>
-<i>Italic text</i>
-<?php
-echo 'baz'; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php
deleted file mode 100644
index db9badcf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the ClosingPHPTag sniff.
- *
- * @author Andy Grunwald <andygrunwald@gmail.com>
- * @copyright 2010-2014 Andy Grunwald
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClosingPHPTagUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(9 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.1.inc
deleted file mode 100644
index 8b618fbc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.1.inc
+++ /dev/null
@@ -1,14 +0,0 @@
-<div>
-<?php echo $var; ?>
-Some content here.
-<script language="php">
-echo $var;
-</script>
-<script language='php'>echo $var;</script>
-<script type="text/php" language="php">
-echo $var;
-</script>
-<script language='PHP' type='text/php'>
-echo $var;
-</script>
-</div>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.1.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.1.inc.fixed
deleted file mode 100644
index 2a695c89..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.1.inc.fixed
+++ /dev/null
@@ -1,14 +0,0 @@
-<div>
-<?php echo $var; ?>
-Some content here.
-<?php
-echo $var;
-?>
-<?php echo $var;?>
-<script type="text/php" language="php">
-echo $var;
-</script>
-<script language='PHP' type='text/php'>
-echo $var;
-</script>
-</div>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.2.inc
deleted file mode 100644
index cd5a6620..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.2.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-<div>
-<% echo $var; %>
-<p>Some text <% echo $var; %> and some more text</p>
-<%= $var . ' and some more text to make sure the snippet works'; %>
-<p>Some text <%= $var %> and some more text</p>
-</div>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.2.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.2.inc.fixed
deleted file mode 100644
index 6eafb422..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.2.inc.fixed
+++ /dev/null
@@ -1,6 +0,0 @@
-<div>
-<?php echo $var; ?>
-<p>Some text <?php echo $var; ?> and some more text</p>
-<?php echo $var . ' and some more text to make sure the snippet works'; ?>
-<p>Some text <?php echo $var ?> and some more text</p>
-</div>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php
deleted file mode 100644
index db3683b9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php
+++ /dev/null
@@ -1,104 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowAlternativePHPTags sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowAlternativePHPTagsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Get a list of all test files to check.
- *
- * @param string $testFileBase The base path that the unit tests files will have.
- *
- * @return string[]
- */
- protected function getTestFiles($testFileBase)
- {
- $testFiles = array($testFileBase.'1.inc');
-
- $aspTags = false;
- if (PHP_VERSION_ID < 70000) {
- $aspTags = (boolean) ini_get('asp_tags');
- }
-
- if ($aspTags === true) {
- $testFiles[] = $testFileBase.'2.inc';
- }
-
- return $testFiles;
-
- }//end getTestFiles()
-
-
- /**
- * Skip this test on HHVM.
- *
- * @return bool Whether to skip this test.
- */
- protected function shouldSkipTest()
- {
- return defined('HHVM_VERSION');
-
- }//end shouldSkipTest()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'DisallowAlternativePHPTagsUnitTest.1.inc':
- return array(
- 4 => 1,
- 7 => 1,
- 8 => 1,
- 11 => 1,
- );
- case 'DisallowAlternativePHPTagsUnitTest.2.inc':
- return array(
- 2 => 1,
- 3 => 1,
- 4 => 1,
- 5 => 1,
- );
- default:
- return array();
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.1.inc
deleted file mode 100644
index 040e62dc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.1.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-<div>
-<?php echo $var; ?>
-Some content here.
-
-<?= $var; ?>
-Some content <?= $var ?> Some more content
-<?=
-$var;
-?>
-<?=$var; ?>
-</div>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.1.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.1.inc.fixed
deleted file mode 100644
index 1ea281a4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.1.inc.fixed
+++ /dev/null
@@ -1,11 +0,0 @@
-<div>
-<?php echo $var; ?>
-Some content here.
-
-<?php echo $var; ?>
-Some content <?php echo $var ?> Some more content
-<?php echo
-$var;
-?>
-<?php echo $var; ?>
-</div>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.2.inc
deleted file mode 100644
index 85617ded..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.2.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-<div>
-<? echo $var; ?>
-Some content <? echo $var ?> Some more content
-<?
-echo $var;
-?>
-<?echo $var; ?>
-</div>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.2.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.2.inc.fixed
deleted file mode 100644
index afe5d8f2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.2.inc.fixed
+++ /dev/null
@@ -1,8 +0,0 @@
-<div>
-<?php echo $var; ?>
-Some content <?php echo $var ?> Some more content
-<?php
-echo $var;
-?>
-<?php echo $var; ?>
-</div>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.3.inc
deleted file mode 100644
index 9b7ccd6d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.3.inc
+++ /dev/null
@@ -1,16 +0,0 @@
-// Test warning for when short_open_tag is off.
-
-Some content <? echo $var; ?> Some more content
-
-// Test multi-line.
-Some content <?
-echo $var;
-?> Some more content
-
-// Make sure skipping works.
-Some content <?
-echo '<?';
-?> Some more content
-
-// Only recognize closing tag after opener.
-Some?> content <?
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.inc
deleted file mode 100644
index 6ed7dadf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-<div>
-<?php echo $var; ?>
-Some content here.
-<?= $var; ?>
-<? echo $var; ?>
-</div>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php
deleted file mode 100644
index a20a50bd..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php
+++ /dev/null
@@ -1,122 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowShortOpenTag sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowShortOpenTagUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Get a list of all test files to check.
- *
- * @param string $testFileBase The base path that the unit tests files will have.
- *
- * @return string[]
- */
- protected function getTestFiles($testFileBase)
- {
- $testFiles = array($testFileBase.'1.inc');
-
- $option = (boolean) ini_get('short_open_tag');
- if ($option === true || defined('HHVM_VERSION') === true) {
- $testFiles[] = $testFileBase.'2.inc';
- } else {
- $testFiles[] = $testFileBase.'3.inc';
- }
-
- return $testFiles;
-
- }//end getTestFiles()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'DisallowShortOpenTagUnitTest.1.inc':
- if (PHP_VERSION_ID < 50400) {
- $option = (boolean) ini_get('short_open_tag');
- if ($option === false) {
- // Short open tags are off and PHP isn't doing short echo by default.
- return array();
- }
- }
- return array(
- 5 => 1,
- 6 => 1,
- 7 => 1,
- 10 => 1,
- );
- case 'DisallowShortOpenTagUnitTest.2.inc':
- return array(
- 2 => 1,
- 3 => 1,
- 4 => 1,
- 7 => 1,
- );
- default:
- return array();
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='')
- {
- switch ($testFile) {
- case 'DisallowShortOpenTagUnitTest.1.inc':
- if (PHP_VERSION_ID < 50400) {
- $option = (boolean) ini_get('short_open_tag');
- if ($option === false) {
- // Short open tags are off and PHP isn't doing short echo by default.
- return array(
- 5 => 1,
- 6 => 1,
- 7 => 1,
- 10 => 1,
- );
- }
- }
- return array();
- case 'DisallowShortOpenTagUnitTest.3.inc':
- return array(
- 3 => 1,
- 6 => 1,
- 11 => 1,
- );
- default:
- return array();
- }//end switch
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc
deleted file mode 100644
index 7a631525..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-$size = sizeof($array);
-$size = count($array);
-delete($filepath);
-unset($filepath);
-$size = \sizeof($array);
-$size = \my\ns\sizeof('abc');($array);
-
-// No errors thrown for class methods.
-$size = MyClass::sizeof($array);
-$size = MyClass::count($array);
-MyClass::delete($filepath);
-MyClass::unset($filepath);
-
-$size = $class->sizeof($array);
-$size = $class->count($array);
-$class->delete($filepath);
-$class->unset($filepath);
-
-function delete() {}
-function unset() {}
-function sizeof() {}
-function count() {}
-
-trait DelProvider {
- public function delete() {
- //irrelevant
- }
-}
-
-class LeftSideTest {
- use DelProvider {
- delete as protected unsetter;
- }
-}
-
-class RightSideTest {
- use DelProvider {
- delete as delete;
- }
-}
-
-class RightSideVisTest {
- use DelProvider {
- delete as protected delete;
- delete insteadof delete;
- }
-}
-
-namespace Something\sizeof;
-$var = new Sizeof();
-class SizeOf implements Something {}
-
-function mymodule_form_callback(SizeOf $sizeof) {
-}
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php
deleted file mode 100644
index 52a45785..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * Unit test class for the ForbiddenFunctions sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ForbiddenFunctionsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- $errors = array(
- 2 => 1,
- 4 => 1,
- 6 => 1,
- );
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc
deleted file mode 100644
index 63aea518..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-// True
-function myFunction($arg1, $arg2=true)
-{
-}
-function myFunction($arg1, $arg2=TRUE)
-{
-}
-function myFunction($arg1, $arg2=True)
-{
-}
-
-if ($variable === true) { }
-if ($variable === TRUE) { }
-if ($variable === True) { }
-
-
-// False
-function myFunction($arg1, $arg2=false)
-{
-}
-function myFunction($arg1, $arg2=FALSE)
-{
-}
-function myFunction($arg1, $arg2=False)
-{
-}
-
-if ($variable === false) { }
-if ($variable === FALSE) { }
-if ($variable === False) { }
-
-
-// Null
-function myFunction($arg1, $arg2=null)
-{
-}
-function myFunction($arg1, $arg2=NULL)
-{
-}
-function myFunction($arg1, $arg2=Null)
-{
-}
-
-if ($variable === null) { }
-if ($variable === NULL) { }
-if ($variable === Null) { }
-
-$x = new stdClass();
-$x->NULL = 7;
-
-use Zend\Log\Writer\NULL as NullWriter;
-new \Zend\Log\Writer\NULL();
-
-namespace False;
-
-class True extends Null implements False {}
-
-use True\Something;
-use Something\True;
-class MyClass
-{
- public function myFunction()
- {
- $var = array('foo' => new True());
- }
-}
-
-$x = $f?FALSE:true;
-$x = $f? FALSE:true;
-
-class MyClass
-{
- // Spice things up a little.
- const TRUE = false;
-}
-
-var_dump(MyClass::TRUE);
-
-function tRUE() {}
-
-$input->getFilterChain()->attachByName('Null', ['type' => Null::TYPE_STRING]);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc.fixed
deleted file mode 100644
index b3c3d8a1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.inc.fixed
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-// True
-function myFunction($arg1, $arg2=true)
-{
-}
-function myFunction($arg1, $arg2=true)
-{
-}
-function myFunction($arg1, $arg2=true)
-{
-}
-
-if ($variable === true) { }
-if ($variable === true) { }
-if ($variable === true) { }
-
-
-// False
-function myFunction($arg1, $arg2=false)
-{
-}
-function myFunction($arg1, $arg2=false)
-{
-}
-function myFunction($arg1, $arg2=false)
-{
-}
-
-if ($variable === false) { }
-if ($variable === false) { }
-if ($variable === false) { }
-
-
-// Null
-function myFunction($arg1, $arg2=null)
-{
-}
-function myFunction($arg1, $arg2=null)
-{
-}
-function myFunction($arg1, $arg2=null)
-{
-}
-
-if ($variable === null) { }
-if ($variable === null) { }
-if ($variable === null) { }
-
-$x = new stdClass();
-$x->NULL = 7;
-
-use Zend\Log\Writer\NULL as NullWriter;
-new \Zend\Log\Writer\NULL();
-
-namespace False;
-
-class True extends Null implements False {}
-
-use True\Something;
-use Something\True;
-class MyClass
-{
- public function myFunction()
- {
- $var = array('foo' => new True());
- }
-}
-
-$x = $f?false:true;
-$x = $f? false:true;
-
-class MyClass
-{
- // Spice things up a little.
- const TRUE = false;
-}
-
-var_dump(MyClass::TRUE);
-
-function tRUE() {}
-
-$input->getFilterChain()->attachByName('Null', ['type' => Null::TYPE_STRING]);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js
deleted file mode 100644
index 87cfb820..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js
+++ /dev/null
@@ -1,14 +0,0 @@
-if (variable === true) { }
-if (variable === TRUE) { }
-if (variable === True) { }
-variable = True;
-
-if (variable === false) { }
-if (variable === FALSE) { }
-if (variable === False) { }
-variable = false;
-
-if (variable === null) { }
-if (variable === NULL) { }
-if (variable === Null) { }
-variable = NULL;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js.fixed
deleted file mode 100644
index 7dbf3adf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.js.fixed
+++ /dev/null
@@ -1,14 +0,0 @@
-if (variable === true) { }
-if (variable === true) { }
-if (variable === true) { }
-variable = true;
-
-if (variable === false) { }
-if (variable === false) { }
-if (variable === false) { }
-variable = false;
-
-if (variable === null) { }
-if (variable === null) { }
-if (variable === null) { }
-variable = null;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php
deleted file mode 100644
index 749470df..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/**
- * Unit test class for the LowerCaseConstant sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LowerCaseConstantUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='LowerCaseConstantUnitTest.inc')
- {
- switch ($testFile) {
- case 'LowerCaseConstantUnitTest.inc':
- return array(
- 7 => 1,
- 10 => 1,
- 15 => 1,
- 16 => 1,
- 23 => 1,
- 26 => 1,
- 31 => 1,
- 32 => 1,
- 39 => 1,
- 42 => 1,
- 47 => 1,
- 48 => 1,
- 70 => 1,
- 71 => 1,
- );
- break;
- case 'LowerCaseConstantUnitTest.js':
- return array(
- 2 => 1,
- 3 => 1,
- 4 => 1,
- 7 => 1,
- 8 => 1,
- 12 => 1,
- 13 => 1,
- 14 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc
deleted file mode 100644
index 22fe2c1d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-// A few keywords. Obviously not valid syntax.
-class Something extends SomethingElse implements Whatever
-abstract public private protected function whatever() {}
-const array()
-for ($var as $var) { exit; }
-if ($a and $b or $c xor $d) { die; } elseif { } else
-goto a;
-
-Class Something EXTENDS SomethingElse implementS Whatever
-Abstract Public Private Protected function whatever() {}
-CONST array()
-For ($var As $var) { Exit; }
-If ($a AND $b OR $c XOR $d) { Die; } ElseIf { } Else
-GOTO a;
-function (Array $a) {}
-const PRIVATE;
-HttpStatus::CONTINUE;
-function
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc.fixed
deleted file mode 100644
index 7cdd2fe5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc.fixed
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-// A few keywords. Obviously not valid syntax.
-class Something extends SomethingElse implements Whatever
-abstract public private protected function whatever() {}
-const array()
-for ($var as $var) { exit; }
-if ($a and $b or $c xor $d) { die; } elseif { } else
-goto a;
-
-class Something extends SomethingElse implements Whatever
-abstract public private protected function whatever() {}
-const array()
-for ($var as $var) { exit; }
-if ($a and $b or $c xor $d) { die; } elseif { } else
-goto a;
-function (array $a) {}
-const PRIVATE;
-HttpStatus::CONTINUE;
-function
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php
deleted file mode 100644
index d944d489..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * Unit test class for the LowerCaseKeyword sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LowerCaseKeywordUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 10 => 3,
- 11 => 4,
- 12 => 1,
- 13 => 3,
- 14 => 7,
- 15 => 1,
- 16 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc
deleted file mode 100644
index 7ff31ba7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-/**
- * @see something
- */
-if (@in_array($array, $needle))
-{
- echo '@';
-}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php
deleted file mode 100644
index fb61d414..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the NoSilencedErrors sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class NoSilencedErrorsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(5 => 1);
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.inc
deleted file mode 100644
index 8f378c8d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-if (php_sapi_name() !== 'cli') {}
-if (PHP_SAPI !== 'cli') {}
-if ($object->php_sapi_name() === true) {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php
deleted file mode 100644
index 287db687..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the SAPIUsage sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SAPIUsageUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(2 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.inc
deleted file mode 100644
index 4f0d9d84..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-
-while {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php
deleted file mode 100644
index 3f434f6c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**
- * Unit test class for the Syntax sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @author Blaine Schmeisser <blainesch@gmail.com>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SyntaxUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Should this test be skipped for some reason.
- *
- * @return void
- */
- protected function shouldSkipTest()
- {
- if (defined('PHP_BINARY') === true) {
- return false;
- }
-
- $phpPath = Config::getExecutablePath('php');
- if ($phpPath === null) {
- return true;
- }
-
- return false;
-
- }//end shouldSkipTest()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(3 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc
deleted file mode 100644
index e7e496d3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-
-// True
-function myFunction($arg1, $arg2=TRUE)
-{
-}
-function myFunction($arg1, $arg2=true)
-{
-}
-function myFunction($arg1, $arg2=True)
-{
-}
-
-if ($variable === TRUE) { }
-if ($variable === true) { }
-if ($variable === True) { }
-
-
-// False
-function myFunction($arg1, $arg2=FALSE)
-{
-}
-function myFunction($arg1, $arg2=false)
-{
-}
-function myFunction($arg1, $arg2=False)
-{
-}
-
-if ($variable === FALSE) { }
-if ($variable === false) { }
-if ($variable === False) { }
-
-
-// Null
-function myFunction($arg1, $arg2=NULL)
-{
-}
-function myFunction($arg1, $arg2=null)
-{
-}
-function myFunction($arg1, $arg2=Null)
-{
-}
-
-if ($variable === NULL) { }
-if ($variable === null) { }
-if ($variable === Null) { }
-
-$x = new stdClass();
-$x->null = 7;
-
-use Zend\Log\Writer\Null as NullWriter;
-new \Zend\Log\Writer\Null()
-
-namespace False;
-
-class True extends Null implements False {}
-
-use True\Something;
-use Something\True;
-class MyClass
-{
- public function myFunction()
- {
- $var = array('foo' => new True());
- }
-}
-
-$x = $f?false:TRUE;
-$x = $f? false:TRUE;
-
-class MyClass
-{
- // Spice things up a little.
- const true = FALSE;
-}
-
-var_dump(MyClass::true);
-
-function true() {} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc.fixed
deleted file mode 100644
index 7d8d6b3f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.inc.fixed
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-
-// True
-function myFunction($arg1, $arg2=TRUE)
-{
-}
-function myFunction($arg1, $arg2=TRUE)
-{
-}
-function myFunction($arg1, $arg2=TRUE)
-{
-}
-
-if ($variable === TRUE) { }
-if ($variable === TRUE) { }
-if ($variable === TRUE) { }
-
-
-// False
-function myFunction($arg1, $arg2=FALSE)
-{
-}
-function myFunction($arg1, $arg2=FALSE)
-{
-}
-function myFunction($arg1, $arg2=FALSE)
-{
-}
-
-if ($variable === FALSE) { }
-if ($variable === FALSE) { }
-if ($variable === FALSE) { }
-
-
-// Null
-function myFunction($arg1, $arg2=NULL)
-{
-}
-function myFunction($arg1, $arg2=NULL)
-{
-}
-function myFunction($arg1, $arg2=NULL)
-{
-}
-
-if ($variable === NULL) { }
-if ($variable === NULL) { }
-if ($variable === NULL) { }
-
-$x = new stdClass();
-$x->null = 7;
-
-use Zend\Log\Writer\Null as NullWriter;
-new \Zend\Log\Writer\Null()
-
-namespace False;
-
-class True extends Null implements False {}
-
-use True\Something;
-use Something\True;
-class MyClass
-{
- public function myFunction()
- {
- $var = array('foo' => new True());
- }
-}
-
-$x = $f?FALSE:TRUE;
-$x = $f? FALSE:TRUE;
-
-class MyClass
-{
- // Spice things up a little.
- const true = FALSE;
-}
-
-var_dump(MyClass::true);
-
-function true() {} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php
deleted file mode 100644
index 81d7826c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/**
- * Unit test class for the UpperCaseConstant sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class UpperCaseConstantUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 7 => 1,
- 10 => 1,
- 15 => 1,
- 16 => 1,
- 23 => 1,
- 26 => 1,
- 31 => 1,
- 32 => 1,
- 39 => 1,
- 42 => 1,
- 47 => 1,
- 48 => 1,
- 70 => 1,
- 71 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.inc
deleted file mode 100644
index 7a2b2019..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-$x = 'My '.'string';
-$x = 'My '.1234;
-$x = 'My '.$y.' test';
-
-echo $data['my'.'index'];
-echo $data['my'.4];
-echo $data['my'.$x];
-echo $data[$x.$y.'My'.'String'];
-
-$code = '$actions = array();'."\n";
-$code = "$actions = array();"."\n";
-
-// No errors for these because they are needed in some cases.
-$code = ' ?'.'>';
-$code = '<'.'?php ';
-
-$string = 'This is a really long string. '
- . 'It is being used for errors. '
- . 'The message is not translated.';
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.js
deleted file mode 100644
index 6be79008..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var x = 'My ' + 'string';
-var x = 'My ' + 1234;
-var x = 'My ' + y + ' test';
-
-this.errors['test'] = x;
-this.errors['test' + 10] = x;
-this.errors['test' + y] = x;
-this.errors['test' + 'blah'] = x;
-this.errors[y] = x;
-this.errors[y + z] = x;
-this.errors[y + z + 'My' + 'String'] = x;
-
-var long = 'This is a really long string. '
- + 'It is being used for errors. '
- + 'The message is not translated.';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php
deleted file mode 100644
index 58d83fb1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/**
- * Unit test class for the UnnecessaryStringConcat sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\Strings;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class UnnecessaryStringConcatUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='UnnecessaryStringConcatUnitTest.inc')
- {
- switch ($testFile) {
- case 'UnnecessaryStringConcatUnitTest.inc':
- return array(
- 2 => 1,
- 6 => 1,
- 9 => 1,
- 12 => 1,
- 19 => 1,
- 20 => 1,
- );
- break;
- case 'UnnecessaryStringConcatUnitTest.js':
- return array(
- 1 => 1,
- 8 => 1,
- 11 => 1,
- 14 => 1,
- 15 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.css
deleted file mode 100644
index 8bd566b7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.css
+++ /dev/null
@@ -1,4 +0,0 @@
-#login-container {
- margin-left: -225px;
- width: 450px;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.css.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.css.fixed
deleted file mode 100644
index edca8e91..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.css.fixed
+++ /dev/null
@@ -1,4 +0,0 @@
-#login-container {
- margin-left: -225px;
- width: 450px;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.inc
deleted file mode 100644
index 3732d94f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.inc
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-class ExampleClass
-{
- function exampleFunction() {}
-
-}
-
- $o = <<<EOF
- this is some text
- this is some text
-EOF;
-
- $correctVar = false;
- $correctVar = true;
-
-// Indent with spaces is not allowed
- $hello = array();
- $world = '';
-// here the indention is mixed with tabs and spaces
-// [tab][space][space][space][tab]return "<$name$xmlns$type_str $atts xsi:nil=\"true\"/>";
- return "<$name$xmlns$type_str $atts xsi:nil=\"true\"/>";
-// [space][space][space][tab]return "<$name$xmlns$type_str $atts xsi:nil=\"true\"/>";
- return "<$name$xmlns$type_str $atts xsi:nil=\"true\"/>";
-// Doc comments are indent with tabs and one space
-//[tab]/**
-//[tab][space]*
- /**
- * CVS revision for HTTP headers.
- *
- * @var string
- * @access private
- */
- /**
- *
- */
-
-$str = 'hello
- there';
-
-/**
- * This PHP DocBlock should be fine, even though there is a single space at the beginning.
- *
- * @var int $x
- */
-$x = 1;
-
-?>
-<html>
- <head>
- <title>Foo</title>
- </head>
- <body>
- <div>
- <div>
- <div>
- </div>
- </div>
- </div>
- </body>
-</html>
-
-<?php
-
- // Issue #1404
- // This is a line with mixed tabs and spaces.
- echo 'And here is another line with mixed tabs and spaces.'
- echo 'And another one.'
- echo 'And another one.'
- echo 'And another one.'
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.inc.fixed
deleted file mode 100644
index e07dd241..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.inc.fixed
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-class ExampleClass
-{
- function exampleFunction() {}
-
-}
-
- $o = <<<EOF
- this is some text
- this is some text
-EOF;
-
- $correctVar = false;
- $correctVar = true;
-
-// Indent with spaces is not allowed
- $hello = array();
- $world = '';
-// here the indention is mixed with tabs and spaces
-// [tab][space][space][space][tab]return "<$name$xmlns$type_str $atts xsi:nil=\"true\"/>";
- return "<$name$xmlns$type_str $atts xsi:nil=\"true\"/>";
-// [space][space][space][tab]return "<$name$xmlns$type_str $atts xsi:nil=\"true\"/>";
- return "<$name$xmlns$type_str $atts xsi:nil=\"true\"/>";
-// Doc comments are indent with tabs and one space
-//[tab]/**
-//[tab][space]*
- /**
- * CVS revision for HTTP headers.
- *
- * @var string
- * @access private
- */
- /**
- *
- */
-
-$str = 'hello
- there';
-
-/**
- * This PHP DocBlock should be fine, even though there is a single space at the beginning.
- *
- * @var int $x
- */
-$x = 1;
-
-?>
-<html>
- <head>
- <title>Foo</title>
- </head>
- <body>
- <div>
- <div>
- <div>
- </div>
- </div>
- </div>
- </body>
-</html>
-
-<?php
-
- // Issue #1404
- // This is a line with mixed tabs and spaces.
- echo 'And here is another line with mixed tabs and spaces.'
- echo 'And another one.'
- echo 'And another one.'
- echo 'And another one.'
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.js
deleted file mode 100644
index d412fcc0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var x = {
- abc: 1,
- zyz: 2,
- abc: 5,
- mno: {
- abc: 4
- },
- abc: 5
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.js.fixed
deleted file mode 100644
index 5772278a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.js.fixed
+++ /dev/null
@@ -1,9 +0,0 @@
-var x = {
- abc: 1,
- zyz: 2,
- abc: 5,
- mno: {
- abc: 4
- },
- abc: 5
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php
deleted file mode 100644
index 3df0e617..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowSpaceIndent sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowSpaceIndentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='DisallowSpaceIndentUnitTest.inc')
- {
- switch ($testFile) {
- case 'DisallowSpaceIndentUnitTest.inc':
- return array(
- 5 => 1,
- 9 => 1,
- 15 => 1,
- 22 => 1,
- 24 => 1,
- 30 => 1,
- 35 => 1,
- 50 => 1,
- 55 => 1,
- 57 => 1,
- 58 => 1,
- 59 => 1,
- 60 => 1,
- 65 => 1,
- 66 => 1,
- 67 => 1,
- 68 => 1,
- 69 => 1,
- 70 => 1,
- );
- break;
- case 'DisallowSpaceIndentUnitTest.js':
- return array(3 => 1);
- break;
- case 'DisallowSpaceIndentUnitTest.css':
- return array(2 => 1);
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css
deleted file mode 100644
index 80870da8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css
+++ /dev/null
@@ -1,5 +0,0 @@
-#login-container {
- margin-left: -225px;
- width: 450px;
-}
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css.fixed
deleted file mode 100644
index a8fa12b9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.css.fixed
+++ /dev/null
@@ -1,5 +0,0 @@
-#login-container {
- margin-left: -225px;
- width: 450px;
-}
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc
deleted file mode 100644
index 8e5bdf61..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-class ExampleClass
-{
- function exampleFunction() {}
-
-}
-
- $o = <<<EOF
- this is some text
- this is some text
-EOF;
-
- $correctVar = true;
- $correctVar = false;
-
-class MyClass
-{
- /**
- * Short description.
- *
- * @return void
- */
- public function myFunction() { }
-}
-
-$str = 'hello
- there';
-
-$foo = array(
- 'Česká republika' => 'Czech republic',
- 'România' => 'Romania',
- 'Magyarország' => 'Hungary',
-);
-
-$var = "$hello $there";
-
-?>
-<html>
- <head>
- <title>Foo</title>
- </head>
- <body>
- <div>
- <div>
- <div>
- </div>
- </div>
- </div>
- </body>
-</html>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc.fixed
deleted file mode 100644
index 7607a06a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.inc.fixed
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-class ExampleClass
-{
- function exampleFunction() {}
-
-}
-
- $o = <<<EOF
- this is some text
- this is some text
-EOF;
-
- $correctVar = true;
- $correctVar = false;
-
-class MyClass
-{
- /**
- * Short description.
- *
- * @return void
- */
- public function myFunction() { }
-}
-
-$str = 'hello
- there';
-
-$foo = array(
- 'Česká republika' => 'Czech republic',
- 'România' => 'Romania',
- 'Magyarország' => 'Hungary',
-);
-
-$var = "$hello $there";
-
-?>
-<html>
- <head>
- <title>Foo</title>
- </head>
- <body>
- <div>
- <div>
- <div>
- </div>
- </div>
- </div>
- </body>
-</html>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js
deleted file mode 100644
index ca4d67a5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var x = {
- abc: 1,
- zyz: 2,
- abc: 5,
- mno: {
- abc: 4
- },
- abc: 5
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js.fixed
deleted file mode 100644
index 42a2837f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.js.fixed
+++ /dev/null
@@ -1,9 +0,0 @@
-var x = {
- abc: 1,
- zyz: 2,
- abc: 5,
- mno: {
- abc: 4
- },
- abc: 5
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php
deleted file mode 100644
index af20df6b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowTabIndent sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowTabIndentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Get a list of CLI values to set before the file is tested.
- *
- * @param string $testFile The name of the file being tested.
- * @param \PHP_CodeSniffer\Config $config The config data for the test run.
- *
- * @return array
- */
- public function setCliValues($testFile, $config)
- {
- $config->tabWidth = 4;
-
- }//end setCliValues()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='DisallowTabIndentUnitTest.inc')
- {
- switch ($testFile) {
- case 'DisallowTabIndentUnitTest.inc':
- return array(
- 5 => 2,
- 9 => 1,
- 15 => 1,
- 20 => 2,
- 21 => 1,
- 22 => 2,
- 23 => 1,
- 24 => 2,
- 31 => 1,
- 32 => 2,
- 33 => 2,
- 41 => 1,
- 42 => 1,
- 43 => 1,
- 44 => 1,
- 45 => 1,
- 46 => 1,
- 47 => 1,
- 48 => 1,
- );
- break;
- case 'DisallowTabIndentUnitTest.js':
- return array(
- 3 => 1,
- 5 => 1,
- 6 => 1,
- );
- break;
- case 'DisallowTabIndentUnitTest.css':
- return array(
- 1 => 1,
- 2 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc
deleted file mode 100644
index 86565e49..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc
+++ /dev/null
@@ -1,1257 +0,0 @@
-@codingStandardsChangeSetting Generic.WhiteSpace.ScopeIndent tabIndent false
-<meta name="twitter:site" content="<?php echo $metaTagsData['twitter:site']; ?>">
-<?php
-class Test {
- function __construct()
- {
- $this->hello();
- }
-
- function hello()
- {
- echo 'hello';
-}//end hello()
-
- function hello2()
- {
- if (TRUE) {
- echo 'hello'; // no error here as its more than 4 spaces.
- } else {
- echo 'bye';
- }
-
- while (TRUE) {
- echo 'hello';
- }
-
- do {
- echo 'hello';
- } while (TRUE);
- }
-
- function hello3()
- {
- switch ($hello) {
- case 'hello':
- break;
- }
- }
-
-}
-
-?>
-<pre>
-</head>
-<body>
-<?php
-if ($form->validate()) {
- $safe = $form->getSubmitValues();
-}
-?>
-</pre>
-<?php
-
-class Test2
-{
- function __construct()
- {
- // $this->open(); // error here
- }
-
- public function open()
- {
- // Some inline stuff that shouldn't error
- if (TRUE) echo 'hello';
- foreach ($tokens as $token) echo $token;
- }
-
- /**
- * This is a comment 1.
- * This is a comment 2.
- * This is a comment 3.
- * This is a comment 4.
- */
- public function close()
- {
- // All ok.
- if (TRUE) {
- if (TRUE) {
- } else if (FALSE) {
- foreach ($tokens as $token) {
- switch ($token) {
- case '1':
- case '2':
- if (true) {
- if (false) {
- if (false) {
- if (false) {
- echo 'hello';
- }
- }
- }
- }
- break;
- case '5':
- break;
- }
- do {
- while (true) {
- foreach ($tokens as $token) {
- for ($i = 0; $i < $token; $i++) {
- echo 'hello';
- }
- }
- }
- } while (true);
- }
- }
- }
- }
-
- /*
- This is another c style comment 1.
- This is another c style comment 2.
- This is another c style comment 3.
- This is another c style comment 4.
- This is another c style comment 5.
- */
-
- /* This is a T_COMMENT
- *
- *
- *
- */
-
- /** This is a T_DOC_COMMENT
- */
-
- /*
- This T_COMMENT has a newline in it.
-
- */
-
- public function read()
- {
- echo 'hello';
-
- // no errors below.
- $array = array(
- 'this',
- 'that' => array(
- 'hello',
- 'hello again' => array(
- 'hello',
- ),
- ),
- );
- }
-}
-
-abstract class Test3
-{
- public function parse()
- {
-
- foreach ($t as $ndx => $token) {
- if (is_array($token)) {
- echo 'here';
- } else {
- $ts[] = array("token" => $token, "value" => '');
-
- $last = count($ts) - 1;
-
- switch ($token) {
- case '(':
-
- if ($last >= 3 &&
- $ts[0]['token'] != T_CLASS &&
- $ts[$last - 2]['token'] == T_OBJECT_OPERATOR &&
- $ts[$last - 3]['token'] == T_VARIABLE ) {
-
-
- if (true) {
- echo 'hello';
- }
- }
- array_push($braces, $token);
- break;
- }
- }
- }
- }
-}
-
-public function test()
-{
- $o = <<<EOF
-this is some text
-this is some text
-this is some text
-this is some text
-this is some text
-this is some text
-EOF;
-
- return $o;
-}
-
-if ($a === true || $a === true || $a === true || $a === true ||
- $a === true || $a === true || $a === true || $a === true) {
-
- echo 'hello';
-}
-
-if ($true) {
- /* First comment line
- *
- * Comment test here
- * Comment test here
- *
- */
-
- /* First comment line
- *
- * Comment test here
- * Comment test here
- *
- this si something */
-}
-
-function test()
-{
- /* taken from http://de3.php.net/manual/en/reserved.php */
- # $m[] = 'declare';
- /* taken from http://de3.php.net/manual/en/reserved.php */
- # $m[] = 'declare';
-}
-
-foreach ($elements as $element) {
- if ($something) {
- // Do IF.
- } else if ($somethingElse) {
- // Do ELSE.
- }
-}
-
-if ($condition) {
- echo "This is a long
-string that spans $numLines lines
-without indenting.
-";
-}
-
-if ($condition) {
- echo 'This is a long
- string that spans multiple lines
- with indenting.
- ';
-}
-
-if ($condition) {
- echo 'This is a long
- string that spans multiple lines
- with indenting.';
-}
-
-switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- echo $string{1};
- }
- break;
-}
-
-function temp($foo, $bar) {
- switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- return $foo;
- }
- break;
- }
-}
-
-switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- if ($something) {
- echo $string{1};
- } else if ($else) {
- switch ($else) {
- default:
- }
- }
- }
- break;
-}
-
-switch ($name) {
- case "1":
- case "2":
- case "3":
- return true;
-}
-
-switch ($name) {
- case "1":
- case "2":
- case "3":
- default :
- return true;
-}
-
-function myFunction()
-{
- ?>
- <dynamic_content>
-
- </dynamic_content>
- <?php
-
-}
-
-switch ($name) {
- case "1":
- switch ($name2) {
- case "1":
- break;
- case "2":
- break;
- }
- break;
- case "2":
- break;
-}
-
-switch (true) {
- case true: {
- }
- echo 'hi';
- break;
- case false:
- case null:{
- echo 'hi';
- }
- break;
-}
-
-switch (true) {
- case true: {
- echo 'hi';
- }
- // No break here.
- case false:
- case true:
- case null:{
- echo 'hi';
- echo 'hi';
- }
- break;
-}
-
-switch (true) {
- case true: {
- if (true) {
- echo 'hi';
- }
- }
- break;
-}
-
-// Testing anon function.
-class a {
- function c()
- {
- $this->doSomething(
- function () {
- echo 123;
- }
- );
- }
-}
-
-some_function(
- function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
- }
-);
-
-some_function(
- function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
- }
-);
-
-$myFunction = function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
-}
-
-class Whatever
-{
- protected $_protectedArray = array(
- 'normalString' => 'That email address is already in use!',
- 'offendingString' => <<<'STRING'
-Each line of this string is always said to be at column 0,
- no matter how many spaces are placed
- at the beginning of each line
-and the ending STRING on the next line is reported as having to be indented.
-STRING
- );
-}
-
-class MyClass
-{
- public static function myFunction()
- {
- if (empty($keywords) === FALSE) {
- $keywords = 'foo';
- $existing = 'foo';
- }
-
- return $keywords;
-
- }//end myFunction()
-
-}//end class
-
-$var = call_user_func(
- $new_var = function () use (&$a) {
- if ($a > 0) {
- return $a++;
- } else {
- return $a--;
- }
- }
-);
-
-class AnonymousFn
-{
- public function getAnonFn()
- {
- return array(
- 'functions' => Array(
- 'function1' => function ($a, $b, $c) {
- $a = $b + $c;
- $b = $c / 2;
- return Array($a, $b, $c);
- },
- ),
- );
- }
-}
-?>
-
-<div>
- <?php
- if ($myvar == 'test') {
- echo 'something';
- }
- ?>
-<div>
-<div>
- <?php
- if ($myvar == 'test') {
- echo 'something';
- }
- ?>
-<div>
-<div>
- <?php
-if ($myvar == 'test') {
- echo 'something';
-}
- ?>
-<div>
-<body>
- <?php
- if (isset($_GET["test"])) {
- if ($_GET["test"] <> "") {
- $test = true;
- } else {
- $test = true;
- }
- }
- ?>
-</body>
-
-<?php
-if (true) {
- ?>
- <div>
- <div>
- <div>
- <?php
- if (true) {
- echo 'hello';
- } else {
- echo 'goodbye';
- }
- ?>
- </div>
- </div>
- </div>
- <?php
-} else {
- echo 'else';
-}
-?>
-<?php if (isset($param)) { ?>
- <h3>some text</h3>
-<?php }
-
-$list = [
- 'fn' => function ($a) {
- if ($a === true) {
- echo 'hi';
- }
- }
-];
-
-$list = [
- 'fn' => function ($a) {
- if ($a === true) {
- echo 'hi';
- }
- }
-];
-
-if ($foo) {
- foreach ($bar as $baz) {
- if ($baz) {
- ?>
- <div>
- <div>
- <div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- }
- }
-}
-
-?>
-<title><?= CHtml::encode($this->pageTitle); ?></title>
-
-<?php
-if ($foo) {
- echo '1';
- echo '2';
- echo '3';
-}
-
-$array = array();
-array_map(
- function($x)
- {
- return trim($x);
- },
- $array
-);
-
-function foo(){return function(){};}
-
-$mockedDatabase->expects($this->at(2))
- ->with($this->callback(
- function ($subject)
- {
- }
- )
- );
-
-/** @var Database $mockedDatabase */
-/** @var Container $mockedContainer */
-
-echo $string->append('foo')
- ->appaend('bar')
- ->appaend('baz')
- ->outputUsing(
- function ()
- {
- }
- );
-
-echo PHP_EOL;
-
-switch ($arg) {
- case 1:
- break;
- case 2:
- if ($arg2 == 'foo') {
- }
- case 3:
- default:
- echo 'default';
-}
-
-if ($tokens[$stackPtr]['content']{0} === '#') {
-} else if ($tokens[$stackPtr]['content']{0} === '/'
- && $tokens[$stackPtr]['content']{1} === '/'
-) {
-}
-
-$var = call_user_func(
- function() {
- if ($foo) {
- $new_var = function() {
- if ($a > 0) {
- return $a++;
- } else {
- return $a--;
- }
- }
- }
- }
-);
-
-a(
- function() {
- $a = function() {
- $b = false;
- };
- true
- }
-);
-
-$var = [
- [
- '1' =>
- function () {
- return true;
- },
- ],
- [
- '1' =>
- function () {
- return true;
- },
- '2' => true,
- ]
-];
-
-if ($foo) {
- ?>
- </p>
- <?php
-}
-
-function foo()
-{
- $failingTests[$testName][] = array(
- 'comment' => self::_replaceKeywords($failingComment, $result),
- 'screenshot' => Test::getScreenshotPath(
- $projectid,
- $result['class_name'],
- ),
- );
-
-}
-
-$this->mockedDatabase
- ->with(
- $this->callback(
- function () {
- return;
- }
- )
- );
-
-$this->subject->recordLogin();
-
-function a()
-{
- if (true) {
- static::$a[$b] =
- static::where($c)
- ->where($c)
- ->where(
- function ($d) {
- $d->whereNull();
- $d->orWhere();
- }
- )
- ->first();
-
- if (static::$a[$b] === null) {
- static::$a[$b] = new static(
- array(
- 'a' => $a->id,
- 'a' => $a->id,
- )
- );
- }
- }
-
- return static::$a[$b];
-}
-
-$foo->load(
- array(
- 'bar' => function ($baz) {
- $baz->call();
- }
- )
-);
-
-hello();
-
-$foo = array_unique(
- array_map(
- function ($entry) {
- return $entry * 2;
- },
- array()
- )
-);
-bar($foo);
-
-class PHP_CodeSniffer_Tokenizers_JS
-{
-
- public $scopeOpeners = array(
- T_CASE => array(
- 'end' => array(
- T_BREAK => T_BREAK,
- T_RETURN => T_RETURN,
- ),
- 'strict' => true,
- ),
- );
-}
-
-echo $string->
- append('foo')->
- appaend('bar')->
- appaend('baz')->
- outputUsing(
- function ()
- {
- }
- );
-
-$str = 'the items I want to show are: ' .
- implode(
- ', ',
- array('a', 'b', 'c')
- );
-
-echo $str;
-
-$str = 'foo'
- . '1'
- . '2';
-
-echo $str;
-
-bar([
- 'foo' => foo(function () {
- return 'foo';
- })
-]);
-
-$domains = array_unique(
- array_map(
- function ($url) {
- $urlObject = new \Purl\Url($url);
- return $urlObject->registerableDomain;
- },
- $sites
- )
-);
-
-return $domains;
-
-if ($a == 5) :
- echo "a equals 5";
- echo "...";
-elseif ($a == 6) :
- echo "a equals 6";
- echo "!!!";
-else :
- echo "a is neither 5 nor 6";
-endif;
-
-if ($foo):
-if ($bar) $foo = 1;
-elseif ($baz) $foo = 2;
-endif;
-
-$this
- ->method(array(
- 'foo' => 'bar',
- ), 'arg', array(
- 'foo' => 'bar',
- ));
-
-class Foo
-{
- use Bar {
- myMethod as renamedMethod;
- }
-}
-
-class Foo
-{
- use Bar {
- myMethod as renamedMethod;
- }
-}
-
-foo();
-
-array(
- 'key1' => function ($bar) {
- return $bar;
- },
- 'key2' => function ($foo) {
- return $foo;
- },
-);
-
-?>
-<script>
- var foo = <?php echo bar(
- 'baz'
- ); ?>;
-</script>
-<?php
-
-try {
- echo 'foo';
-} catch (\Exception $e) {
- echo 'catch';
-} finally {
- if (false) {
- echo 'finally false';
- }
-}
-
-class C0
-{
- public function m0()
- {
- }
-
- public function m1()
- {
- }
-}
-
-namespace Foo {
-
- use \Foo\Bar;
- use \Foo\Baz;
-
- function test() {
- return true;
- }
-
-}
-
-declare(ticks=1) {
-echo 'foo';
-}
-
-$a =
- (
- $b = 1
- );
-$c = 2;
-
-$a =
- [
- $b => 1,
- ];
-$c = 2;
-
-class foo
-{
- public function get()
- {
- $foo = ['b' => 'c',
- 'd' => [
- ['e' => 'f']
- ]];
- echo '42';
-
- $foo = array('b' => 'c',
- 'd' => array(
- array('e' => 'f')
- ));
- echo '42';
- }
-}
-
-switch ($foo) {
- case 1:
- return array();
- case 2:
- return '';
- case 3:
- return $function();
- case 4:
- return $functionCall($param[0]);
- case 5:
- return array() + array(); // Array Merge
- case 6:
- // String connect
- return $functionReturningString('') . $functionReturningString(array());
- case 7:
- return functionCall(
- $withMultiLineParam[0],
- array(),
- $functionReturningString(
- $withMultiLineParam[1]
- )
- );
- case 8:
- return $param[0][0];
-}
-
-class Test {
-
- public
- $foo
- ,$bar
- ,$baz = [ ]
- ;
-
- public function wtfindent() {
- }
-}
-
-switch ($x) {
- case 1:
- return [1];
- default:
- return [2];
-}
-
-switch ($foo) {
- case self::FOO:
- return $this->bar($gfoo, function ($id) {
- return FOO::bar($id);
- }, $values);
- case self::BAR:
- $values = $this->bar($foo, $values);
- break;
-}
-
-$var = array(
- 'long description' =>
- array(0, 'something'),
- 'another long description' =>
- array(1, "something else")
-);
-
-$services = array(
- 'service 1' =>
- Mockery::mock('class 1')
- ->shouldReceive('setFilter')->once()
- ->shouldReceive('getNbResults')->atLeast()->once()
- ->shouldReceive('getSlice')->once()->andReturn(array())
- ->getMock(),
- 'service 2' =>
- Mockery::mock('class 2')
- ->shouldReceive('__invoke')->once()
- ->getMock()
-);
-
-class Foo
-{
- public function setUp()
- {
- $this->foo = new class {
- public $name = 'Some value';
- };
- }
-}
-
-try {
- foo();
-} catch (\Exception $e) {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-}
-
-if ($foo) {
- foo();
-} else if (\Exception $e) {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-} else {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-}
-
-switch ($parameter) {
- case null:
- return [
- 'foo' => in_array(
- 'foo',
- []
- ),
- ];
-
- default:
- return [];
-}
-
-class SomeClass
-{
- public function someFunc()
- {
- a(function () {
- echo "a";
- })->b(function () {
- echo "b";
- });
-
- if (true) {
- echo "c";
- }
- echo "d";
- }
-}
-
-$params = self::validate_parameters(self::read_competency_framework_parameters(),
- array(
- 'id' => $id,
- ));
-
-$framework = api::read_framework($params['id']);
-self::validate_context($framework->get_context());
-$output = $PAGE->get_renderer('tool_lp');
-
-class Test123
-{
- protected static
- $prop1 = [
- 'testA' => 123,
- ],
- $prop2 = [
- 'testB' => 456,
- ],
-
- protected static
- $prop3 = array(
- 'testA' => 123,
- ),
- $prop4 = array(
- 'testB' => 456,
- ),
-
- protected static $prop5;
-}
-
-$foo = foo(
- function () {
- $foo->debug(
- $a,
- $b
- );
-
- if ($a) {
- $b = $a;
- }
- }
-);
-
-if (somethingIsTrue()) {
- ?>
- <div>
- <?php
- $someVar = doSomething(
- 'foobar',
- true,
- 'foo',
- 'bar'
- );
-
- if (somethingElseIsTrue()) {
- doOneThing();
- } else {
- doTheOtherThing();
- }
- ?>
- </div>
- <?php
-}
-
-$foo = [
- new class() implements Bar {
-
- public static function foo(): string
- {
- return 'foo';
- }
- },
-];
-
-$foo = [
- function () {
- if ($foo) {
- return 'foo';
- }
- },
-];
-
-$foo
- ->bar(foo(function () {
- }), foo(function () {
- }));
-
-echo 'foo';
-
-class Test {
-
- public function a() {
- ?>a<?php
- }
-
- public function b(
- $a
- ) {
- echo $a;
- }
-}
-
-$foo = foo(
- function () {
- $foo->debug(
- $a,
- $b
- );
-
- if ($a) {
- $b = $a;
- }
- }
-);
-
-function test()
-{
- $array = [];
- foreach ($array as $data) {
- [
- 'key1' => $var1,
- 'key2' => $var2,
- ] = $data;
- foreach ($var1 as $method) {
- echo $method . $var2;
- }
- }
-}
-
-switch ($a) {
- case 0:
- function () {
- };
- case 1:
- break;
-}
-
-class Test
-{
- public function __construct()
- {
-if (false) {
-echo 0;
- }
- }
-}
-
-return [
- 'veryLongKeySoIWantToMakeALineBreak'
- => 'veryLonValueSoIWantToMakeALineBreak',
-
- 'someOtherKey' => [
- 'someValue'
- ],
-
- 'arrayWithArraysInThere' => [
- ['Value1', 'Value1']
- ],
-];
-
-switch ($sContext) {
- case 'SOMETHING':
- case 'CONSTANT':
- do_something();
- break;
- case 'GLOBAL':
- case 'GLOBAL1':
- do_something();
- // Fall through
- default:
- {
- do_something();
- }
-}
-
- function foo()
- {
- $foo = array(
- );
-
- if ($foo) {
- echo 'foo';
- }
-
- return false;
- }
-
-?>
-<?php
- if (true) {
- }
- else if (true) {
- }
-
-$a = 1;
-
-/*
-$a = array(
- */
-);
-
-echo ""
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc.fixed
deleted file mode 100644
index f243e707..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.inc.fixed
+++ /dev/null
@@ -1,1257 +0,0 @@
-@codingStandardsChangeSetting Generic.WhiteSpace.ScopeIndent tabIndent false
-<meta name="twitter:site" content="<?php echo $metaTagsData['twitter:site']; ?>">
-<?php
-class Test {
- function __construct()
- {
- $this->hello();
- }
-
- function hello()
- {
- echo 'hello';
- }//end hello()
-
- function hello2()
- {
- if (TRUE) {
- echo 'hello'; // no error here as its more than 4 spaces.
- } else {
- echo 'bye';
- }
-
- while (TRUE) {
- echo 'hello';
- }
-
- do {
- echo 'hello';
- } while (TRUE);
- }
-
- function hello3()
- {
- switch ($hello) {
- case 'hello':
- break;
- }
- }
-
-}
-
-?>
-<pre>
-</head>
-<body>
-<?php
-if ($form->validate()) {
- $safe = $form->getSubmitValues();
-}
-?>
-</pre>
-<?php
-
-class Test2
-{
- function __construct()
- {
- // $this->open(); // error here
- }
-
- public function open()
- {
- // Some inline stuff that shouldn't error
- if (TRUE) echo 'hello';
- foreach ($tokens as $token) echo $token;
- }
-
- /**
- * This is a comment 1.
- * This is a comment 2.
- * This is a comment 3.
- * This is a comment 4.
- */
- public function close()
- {
- // All ok.
- if (TRUE) {
- if (TRUE) {
- } else if (FALSE) {
- foreach ($tokens as $token) {
- switch ($token) {
- case '1':
- case '2':
- if (true) {
- if (false) {
- if (false) {
- if (false) {
- echo 'hello';
- }
- }
- }
- }
- break;
- case '5':
- break;
- }
- do {
- while (true) {
- foreach ($tokens as $token) {
- for ($i = 0; $i < $token; $i++) {
- echo 'hello';
- }
- }
- }
- } while (true);
- }
- }
- }
- }
-
- /*
- This is another c style comment 1.
- This is another c style comment 2.
- This is another c style comment 3.
- This is another c style comment 4.
- This is another c style comment 5.
- */
-
- /* This is a T_COMMENT
- *
- *
- *
- */
-
- /** This is a T_DOC_COMMENT
- */
-
- /*
- This T_COMMENT has a newline in it.
-
- */
-
- public function read()
- {
- echo 'hello';
-
- // no errors below.
- $array = array(
- 'this',
- 'that' => array(
- 'hello',
- 'hello again' => array(
- 'hello',
- ),
- ),
- );
- }
-}
-
-abstract class Test3
-{
- public function parse()
- {
-
- foreach ($t as $ndx => $token) {
- if (is_array($token)) {
- echo 'here';
- } else {
- $ts[] = array("token" => $token, "value" => '');
-
- $last = count($ts) - 1;
-
- switch ($token) {
- case '(':
-
- if ($last >= 3 &&
- $ts[0]['token'] != T_CLASS &&
- $ts[$last - 2]['token'] == T_OBJECT_OPERATOR &&
- $ts[$last - 3]['token'] == T_VARIABLE ) {
-
-
- if (true) {
- echo 'hello';
- }
- }
- array_push($braces, $token);
- break;
- }
- }
- }
- }
-}
-
-public function test()
-{
- $o = <<<EOF
-this is some text
-this is some text
-this is some text
-this is some text
-this is some text
-this is some text
-EOF;
-
- return $o;
-}
-
-if ($a === true || $a === true || $a === true || $a === true ||
- $a === true || $a === true || $a === true || $a === true) {
-
- echo 'hello';
-}
-
-if ($true) {
- /* First comment line
- *
- * Comment test here
- * Comment test here
- *
- */
-
- /* First comment line
- *
- * Comment test here
- * Comment test here
- *
- this si something */
-}
-
-function test()
-{
- /* taken from http://de3.php.net/manual/en/reserved.php */
- # $m[] = 'declare';
- /* taken from http://de3.php.net/manual/en/reserved.php */
- # $m[] = 'declare';
-}
-
-foreach ($elements as $element) {
- if ($something) {
- // Do IF.
- } else if ($somethingElse) {
- // Do ELSE.
- }
-}
-
-if ($condition) {
- echo "This is a long
-string that spans $numLines lines
-without indenting.
-";
-}
-
-if ($condition) {
- echo 'This is a long
- string that spans multiple lines
- with indenting.
- ';
-}
-
-if ($condition) {
- echo 'This is a long
- string that spans multiple lines
- with indenting.';
-}
-
-switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- echo $string{1};
- }
- break;
-}
-
-function temp($foo, $bar) {
- switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- return $foo;
- }
- break;
- }
-}
-
-switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- if ($something) {
- echo $string{1};
- } else if ($else) {
- switch ($else) {
- default:
- }
- }
- }
- break;
-}
-
-switch ($name) {
- case "1":
- case "2":
- case "3":
- return true;
-}
-
-switch ($name) {
- case "1":
- case "2":
- case "3":
- default :
- return true;
-}
-
-function myFunction()
-{
- ?>
- <dynamic_content>
-
- </dynamic_content>
- <?php
-
-}
-
-switch ($name) {
- case "1":
- switch ($name2) {
- case "1":
- break;
- case "2":
- break;
- }
- break;
- case "2":
- break;
-}
-
-switch (true) {
- case true: {
- }
- echo 'hi';
- break;
- case false:
- case null:{
- echo 'hi';
- }
- break;
-}
-
-switch (true) {
- case true: {
- echo 'hi';
- }
- // No break here.
- case false:
- case true:
- case null:{
- echo 'hi';
- echo 'hi';
- }
- break;
-}
-
-switch (true) {
- case true: {
- if (true) {
- echo 'hi';
- }
- }
- break;
-}
-
-// Testing anon function.
-class a {
- function c()
- {
- $this->doSomething(
- function () {
- echo 123;
- }
- );
- }
-}
-
-some_function(
- function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
- }
-);
-
-some_function(
- function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
- }
-);
-
-$myFunction = function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
-}
-
-class Whatever
-{
- protected $_protectedArray = array(
- 'normalString' => 'That email address is already in use!',
- 'offendingString' => <<<'STRING'
-Each line of this string is always said to be at column 0,
- no matter how many spaces are placed
- at the beginning of each line
-and the ending STRING on the next line is reported as having to be indented.
-STRING
- );
-}
-
-class MyClass
-{
- public static function myFunction()
- {
- if (empty($keywords) === FALSE) {
- $keywords = 'foo';
- $existing = 'foo';
- }
-
- return $keywords;
-
- }//end myFunction()
-
-}//end class
-
-$var = call_user_func(
- $new_var = function () use (&$a) {
- if ($a > 0) {
- return $a++;
- } else {
- return $a--;
- }
- }
-);
-
-class AnonymousFn
-{
- public function getAnonFn()
- {
- return array(
- 'functions' => Array(
- 'function1' => function ($a, $b, $c) {
- $a = $b + $c;
- $b = $c / 2;
- return Array($a, $b, $c);
- },
- ),
- );
- }
-}
-?>
-
-<div>
- <?php
- if ($myvar == 'test') {
- echo 'something';
- }
- ?>
-<div>
-<div>
- <?php
- if ($myvar == 'test') {
- echo 'something';
- }
- ?>
-<div>
-<div>
- <?php
- if ($myvar == 'test') {
- echo 'something';
- }
- ?>
-<div>
-<body>
- <?php
- if (isset($_GET["test"])) {
- if ($_GET["test"] <> "") {
- $test = true;
- } else {
- $test = true;
- }
- }
- ?>
-</body>
-
-<?php
-if (true) {
- ?>
- <div>
- <div>
- <div>
- <?php
- if (true) {
- echo 'hello';
- } else {
- echo 'goodbye';
- }
- ?>
- </div>
- </div>
- </div>
- <?php
-} else {
- echo 'else';
-}
-?>
-<?php if (isset($param)) { ?>
- <h3>some text</h3>
-<?php }
-
-$list = [
- 'fn' => function ($a) {
- if ($a === true) {
- echo 'hi';
- }
- }
-];
-
-$list = [
- 'fn' => function ($a) {
- if ($a === true) {
- echo 'hi';
- }
- }
-];
-
-if ($foo) {
- foreach ($bar as $baz) {
- if ($baz) {
- ?>
- <div>
- <div>
- <div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- }
- }
-}
-
-?>
-<title><?= CHtml::encode($this->pageTitle); ?></title>
-
-<?php
-if ($foo) {
- echo '1';
- echo '2';
- echo '3';
-}
-
-$array = array();
-array_map(
- function($x)
- {
- return trim($x);
- },
- $array
-);
-
-function foo(){return function(){};}
-
-$mockedDatabase->expects($this->at(2))
- ->with($this->callback(
- function ($subject)
- {
- }
- )
- );
-
-/** @var Database $mockedDatabase */
-/** @var Container $mockedContainer */
-
-echo $string->append('foo')
- ->appaend('bar')
- ->appaend('baz')
- ->outputUsing(
- function ()
- {
- }
- );
-
-echo PHP_EOL;
-
-switch ($arg) {
- case 1:
- break;
- case 2:
- if ($arg2 == 'foo') {
- }
- case 3:
- default:
- echo 'default';
-}
-
-if ($tokens[$stackPtr]['content']{0} === '#') {
-} else if ($tokens[$stackPtr]['content']{0} === '/'
- && $tokens[$stackPtr]['content']{1} === '/'
-) {
-}
-
-$var = call_user_func(
- function() {
- if ($foo) {
- $new_var = function() {
- if ($a > 0) {
- return $a++;
- } else {
- return $a--;
- }
- }
- }
- }
-);
-
-a(
- function() {
- $a = function() {
- $b = false;
- };
- true
- }
-);
-
-$var = [
- [
- '1' =>
- function () {
- return true;
- },
- ],
- [
- '1' =>
- function () {
- return true;
- },
- '2' => true,
- ]
-];
-
-if ($foo) {
- ?>
- </p>
- <?php
-}
-
-function foo()
-{
- $failingTests[$testName][] = array(
- 'comment' => self::_replaceKeywords($failingComment, $result),
- 'screenshot' => Test::getScreenshotPath(
- $projectid,
- $result['class_name'],
- ),
- );
-
-}
-
-$this->mockedDatabase
- ->with(
- $this->callback(
- function () {
- return;
- }
- )
- );
-
-$this->subject->recordLogin();
-
-function a()
-{
- if (true) {
- static::$a[$b] =
- static::where($c)
- ->where($c)
- ->where(
- function ($d) {
- $d->whereNull();
- $d->orWhere();
- }
- )
- ->first();
-
- if (static::$a[$b] === null) {
- static::$a[$b] = new static(
- array(
- 'a' => $a->id,
- 'a' => $a->id,
- )
- );
- }
- }
-
- return static::$a[$b];
-}
-
-$foo->load(
- array(
- 'bar' => function ($baz) {
- $baz->call();
- }
- )
-);
-
-hello();
-
-$foo = array_unique(
- array_map(
- function ($entry) {
- return $entry * 2;
- },
- array()
- )
-);
-bar($foo);
-
-class PHP_CodeSniffer_Tokenizers_JS
-{
-
- public $scopeOpeners = array(
- T_CASE => array(
- 'end' => array(
- T_BREAK => T_BREAK,
- T_RETURN => T_RETURN,
- ),
- 'strict' => true,
- ),
- );
-}
-
-echo $string->
- append('foo')->
- appaend('bar')->
- appaend('baz')->
- outputUsing(
- function ()
- {
- }
- );
-
-$str = 'the items I want to show are: ' .
- implode(
- ', ',
- array('a', 'b', 'c')
- );
-
-echo $str;
-
-$str = 'foo'
- . '1'
- . '2';
-
-echo $str;
-
-bar([
- 'foo' => foo(function () {
- return 'foo';
- })
-]);
-
-$domains = array_unique(
- array_map(
- function ($url) {
- $urlObject = new \Purl\Url($url);
- return $urlObject->registerableDomain;
- },
- $sites
- )
-);
-
-return $domains;
-
-if ($a == 5) :
- echo "a equals 5";
- echo "...";
-elseif ($a == 6) :
- echo "a equals 6";
- echo "!!!";
-else :
- echo "a is neither 5 nor 6";
-endif;
-
-if ($foo):
- if ($bar) $foo = 1;
- elseif ($baz) $foo = 2;
-endif;
-
-$this
- ->method(array(
- 'foo' => 'bar',
- ), 'arg', array(
- 'foo' => 'bar',
- ));
-
-class Foo
-{
- use Bar {
- myMethod as renamedMethod;
- }
-}
-
-class Foo
-{
- use Bar {
- myMethod as renamedMethod;
- }
-}
-
-foo();
-
-array(
- 'key1' => function ($bar) {
- return $bar;
- },
- 'key2' => function ($foo) {
- return $foo;
- },
-);
-
-?>
-<script>
- var foo = <?php echo bar(
- 'baz'
- ); ?>;
-</script>
-<?php
-
-try {
- echo 'foo';
-} catch (\Exception $e) {
- echo 'catch';
-} finally {
- if (false) {
- echo 'finally false';
- }
-}
-
-class C0
-{
- public function m0()
- {
- }
-
- public function m1()
- {
- }
-}
-
-namespace Foo {
-
- use \Foo\Bar;
- use \Foo\Baz;
-
- function test() {
- return true;
- }
-
-}
-
-declare(ticks=1) {
- echo 'foo';
-}
-
-$a =
- (
- $b = 1
- );
-$c = 2;
-
-$a =
- [
- $b => 1,
- ];
-$c = 2;
-
-class foo
-{
- public function get()
- {
- $foo = ['b' => 'c',
- 'd' => [
- ['e' => 'f']
- ]];
- echo '42';
-
- $foo = array('b' => 'c',
- 'd' => array(
- array('e' => 'f')
- ));
- echo '42';
- }
-}
-
-switch ($foo) {
- case 1:
- return array();
- case 2:
- return '';
- case 3:
- return $function();
- case 4:
- return $functionCall($param[0]);
- case 5:
- return array() + array(); // Array Merge
- case 6:
- // String connect
- return $functionReturningString('') . $functionReturningString(array());
- case 7:
- return functionCall(
- $withMultiLineParam[0],
- array(),
- $functionReturningString(
- $withMultiLineParam[1]
- )
- );
- case 8:
- return $param[0][0];
-}
-
-class Test {
-
- public
- $foo
- ,$bar
- ,$baz = [ ]
- ;
-
- public function wtfindent() {
- }
-}
-
-switch ($x) {
- case 1:
- return [1];
- default:
- return [2];
-}
-
-switch ($foo) {
- case self::FOO:
- return $this->bar($gfoo, function ($id) {
- return FOO::bar($id);
- }, $values);
- case self::BAR:
- $values = $this->bar($foo, $values);
- break;
-}
-
-$var = array(
- 'long description' =>
- array(0, 'something'),
- 'another long description' =>
- array(1, "something else")
-);
-
-$services = array(
- 'service 1' =>
- Mockery::mock('class 1')
- ->shouldReceive('setFilter')->once()
- ->shouldReceive('getNbResults')->atLeast()->once()
- ->shouldReceive('getSlice')->once()->andReturn(array())
- ->getMock(),
- 'service 2' =>
- Mockery::mock('class 2')
- ->shouldReceive('__invoke')->once()
- ->getMock()
-);
-
-class Foo
-{
- public function setUp()
- {
- $this->foo = new class {
- public $name = 'Some value';
- };
- }
-}
-
-try {
- foo();
-} catch (\Exception $e) {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-}
-
-if ($foo) {
- foo();
-} else if (\Exception $e) {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-} else {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-}
-
-switch ($parameter) {
- case null:
- return [
- 'foo' => in_array(
- 'foo',
- []
- ),
- ];
-
- default:
- return [];
-}
-
-class SomeClass
-{
- public function someFunc()
- {
- a(function () {
- echo "a";
- })->b(function () {
- echo "b";
- });
-
- if (true) {
- echo "c";
- }
- echo "d";
- }
-}
-
-$params = self::validate_parameters(self::read_competency_framework_parameters(),
- array(
- 'id' => $id,
- ));
-
-$framework = api::read_framework($params['id']);
-self::validate_context($framework->get_context());
-$output = $PAGE->get_renderer('tool_lp');
-
-class Test123
-{
- protected static
- $prop1 = [
- 'testA' => 123,
- ],
- $prop2 = [
- 'testB' => 456,
- ],
-
- protected static
- $prop3 = array(
- 'testA' => 123,
- ),
- $prop4 = array(
- 'testB' => 456,
- ),
-
- protected static $prop5;
-}
-
-$foo = foo(
- function () {
- $foo->debug(
- $a,
- $b
- );
-
- if ($a) {
- $b = $a;
- }
- }
-);
-
-if (somethingIsTrue()) {
- ?>
- <div>
- <?php
- $someVar = doSomething(
- 'foobar',
- true,
- 'foo',
- 'bar'
- );
-
- if (somethingElseIsTrue()) {
- doOneThing();
- } else {
- doTheOtherThing();
- }
- ?>
- </div>
- <?php
-}
-
-$foo = [
- new class() implements Bar {
-
- public static function foo(): string
- {
- return 'foo';
- }
- },
-];
-
-$foo = [
- function () {
- if ($foo) {
- return 'foo';
- }
- },
-];
-
-$foo
- ->bar(foo(function () {
- }), foo(function () {
- }));
-
-echo 'foo';
-
-class Test {
-
- public function a() {
- ?>a<?php
- }
-
- public function b(
- $a
- ) {
- echo $a;
- }
-}
-
-$foo = foo(
- function () {
- $foo->debug(
- $a,
- $b
- );
-
- if ($a) {
- $b = $a;
- }
- }
-);
-
-function test()
-{
- $array = [];
- foreach ($array as $data) {
- [
- 'key1' => $var1,
- 'key2' => $var2,
- ] = $data;
- foreach ($var1 as $method) {
- echo $method . $var2;
- }
- }
-}
-
-switch ($a) {
- case 0:
- function () {
- };
- case 1:
- break;
-}
-
-class Test
-{
- public function __construct()
- {
- if (false) {
- echo 0;
- }
- }
-}
-
-return [
- 'veryLongKeySoIWantToMakeALineBreak'
- => 'veryLonValueSoIWantToMakeALineBreak',
-
- 'someOtherKey' => [
- 'someValue'
- ],
-
- 'arrayWithArraysInThere' => [
- ['Value1', 'Value1']
- ],
-];
-
-switch ($sContext) {
- case 'SOMETHING':
- case 'CONSTANT':
- do_something();
- break;
- case 'GLOBAL':
- case 'GLOBAL1':
- do_something();
- // Fall through
- default:
- {
- do_something();
- }
-}
-
-function foo()
-{
- $foo = array(
- );
-
- if ($foo) {
- echo 'foo';
- }
-
- return false;
-}
-
-?>
-<?php
-if (true) {
-}
-else if (true) {
-}
-
-$a = 1;
-
-/*
-$a = array(
- */
-);
-
-echo ""
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.js
deleted file mode 100644
index 3bb939d5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.js
+++ /dev/null
@@ -1,239 +0,0 @@
-@codingStandardsChangeSetting Generic.WhiteSpace.ScopeIndent tabIndent false
-var script = document.createElement('script');
-script.onload = function()
-{
- clearTimeout(t);
- script456.onload = null;
- script.onreadystatechange = null;
- callback.call(this);
-
-};
-
-this.callbacks[type] = {
- namespaces: {},
-others: []
-};
-
-blah = function()
-{
- print something;
-
- }
-
-test(blah, function() {
- print something;
-});
-
-var test = [{x: 10}];
-var test = [{
- x: 10,
- y: {
- b14h: 12,
- 'b14h': 12
- },
- z: 23
-}];
-
-Viper.prototype = {
-
- _removeEvents: function(elem)
- {
- if (!elem) {
- elem = this.element;
- }
-
- ViperUtil.removeEvent(elem, '.' + this.getEventNamespace());
-
- }
-
-};
-
-this.init = function(data) {
- if (_pageListWdgt) {
- GUI.getWidget('changedPagesList').addItemClickedCallback(
- function(itemid, target) {
- draftChangeTypeClicked(
- itemid,
- target,
- {
- reviewData: _reviewData,
- pageid: itemid
- }
- );
- }
- );
- }//end if
-
-};
-
-a(
- function() {
- var _a = function() {
- b = false;
-
- };
- true
- }
-);
-
-(function() {
- a = function() {
- a(function() {
- if (true) {
- a = true;
- }
- });
-
- a(
- function() {
- if (true) {
- if (true) {
- a = true;
- }
- }
- }
- );
-
- a(
- function() {
- if (true) {
- a = true;
- }
- }
- );
-
- };
-
-})();
-
-a.prototype = {
-
- a: function()
- {
- var currentSize = null;
- ViperUtil.addEvent(
- header,
- 'safedblclick',
- function() {},
- );
-
- if (topContent) {
- ViperUtil.addClass(topContent, 'Viper-popup-top');
- main.appendChild(topContent);
- }
-
- ViperUtil.addClass(midContent, 'Viper-popup-content');
- main.appendChild(midContent);
- }
-
-};
-
-a.prototype = {
-
- a: function()
- {
- ViperUtil.addClass(midContent, 'Viper-popup-content');
- main.appendChild(midContent);
-
- var mouseUpAction = function() {};
- var preventMouseUp = false;
- var self = this;
- if (clickAction) {
- }
- }
-
-};
-
-a.prototype = {
-
- a: function()
- {
- var a = function() {
- var a = 'foo';
- };
-
- if (true) {
- }
-
- },
-
- b: function()
- {
- ViperUtil.addEvent(
- function() {
- if (fullScreen !== true) {
- currentSize = {
- };
-
- showfullScreen();
- }
- }
- );
-
- },
-
- c: function()
- {
- this.a(
- {
- a: function() {
- form.onsubmit = function() {
- return false;
- };
-
- var a = true;
- }
- }
- );
-
- }
-
-};
-
-a.prototype = {
- init: function()
- {},
-
- _b: function()
- {
- }
-
-};
-
-for (var i = 0; i < 10; i++) {
- var foo = {foo:{'a':'b',
- 'c':'d'}};
-}
-
-class TestOk
-{
- destroy()
- {
- setTimeout(a, 1000);
-
- if (typeof self.callbackOnClose === "function") {
- self.callbackOnClose();
- }
- }
-}
-
-class TestBad
-{
- destroy()
- {
- setTimeout(function () {
- return;
- }, 1000);
-
- if (typeof self.callbackOnClose === "function") {
- self.callbackOnClose();
- }
- }
-}
-
-( function( $ ) {
- foo(function( value ) {
- value.bind( function( newval ) {
- $( '#bar' ).html( newval );
- } );
- } )( jQuery );
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.js.fixed
deleted file mode 100644
index bd6e95ed..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.1.js.fixed
+++ /dev/null
@@ -1,239 +0,0 @@
-@codingStandardsChangeSetting Generic.WhiteSpace.ScopeIndent tabIndent false
-var script = document.createElement('script');
-script.onload = function()
-{
- clearTimeout(t);
- script456.onload = null;
- script.onreadystatechange = null;
- callback.call(this);
-
-};
-
-this.callbacks[type] = {
- namespaces: {},
- others: []
-};
-
-blah = function()
-{
- print something;
-
-}
-
-test(blah, function() {
- print something;
-});
-
-var test = [{x: 10}];
-var test = [{
- x: 10,
- y: {
- b14h: 12,
- 'b14h': 12
- },
- z: 23
-}];
-
-Viper.prototype = {
-
- _removeEvents: function(elem)
- {
- if (!elem) {
- elem = this.element;
- }
-
- ViperUtil.removeEvent(elem, '.' + this.getEventNamespace());
-
- }
-
-};
-
-this.init = function(data) {
- if (_pageListWdgt) {
- GUI.getWidget('changedPagesList').addItemClickedCallback(
- function(itemid, target) {
- draftChangeTypeClicked(
- itemid,
- target,
- {
- reviewData: _reviewData,
- pageid: itemid
- }
- );
- }
- );
- }//end if
-
-};
-
-a(
- function() {
- var _a = function() {
- b = false;
-
- };
- true
- }
-);
-
-(function() {
- a = function() {
- a(function() {
- if (true) {
- a = true;
- }
- });
-
- a(
- function() {
- if (true) {
- if (true) {
- a = true;
- }
- }
- }
- );
-
- a(
- function() {
- if (true) {
- a = true;
- }
- }
- );
-
- };
-
-})();
-
-a.prototype = {
-
- a: function()
- {
- var currentSize = null;
- ViperUtil.addEvent(
- header,
- 'safedblclick',
- function() {},
- );
-
- if (topContent) {
- ViperUtil.addClass(topContent, 'Viper-popup-top');
- main.appendChild(topContent);
- }
-
- ViperUtil.addClass(midContent, 'Viper-popup-content');
- main.appendChild(midContent);
- }
-
-};
-
-a.prototype = {
-
- a: function()
- {
- ViperUtil.addClass(midContent, 'Viper-popup-content');
- main.appendChild(midContent);
-
- var mouseUpAction = function() {};
- var preventMouseUp = false;
- var self = this;
- if (clickAction) {
- }
- }
-
-};
-
-a.prototype = {
-
- a: function()
- {
- var a = function() {
- var a = 'foo';
- };
-
- if (true) {
- }
-
- },
-
- b: function()
- {
- ViperUtil.addEvent(
- function() {
- if (fullScreen !== true) {
- currentSize = {
- };
-
- showfullScreen();
- }
- }
- );
-
- },
-
- c: function()
- {
- this.a(
- {
- a: function() {
- form.onsubmit = function() {
- return false;
- };
-
- var a = true;
- }
- }
- );
-
- }
-
-};
-
-a.prototype = {
- init: function()
- {},
-
- _b: function()
- {
- }
-
-};
-
-for (var i = 0; i < 10; i++) {
- var foo = {foo:{'a':'b',
- 'c':'d'}};
-}
-
-class TestOk
-{
- destroy()
- {
- setTimeout(a, 1000);
-
- if (typeof self.callbackOnClose === "function") {
- self.callbackOnClose();
- }
- }
-}
-
-class TestBad
-{
- destroy()
- {
- setTimeout(function () {
- return;
- }, 1000);
-
- if (typeof self.callbackOnClose === "function") {
- self.callbackOnClose();
- }
- }
-}
-
-( function( $ ) {
- foo(function( value ) {
- value.bind( function( newval ) {
- $( '#bar' ).html( newval );
- } );
- } )( jQuery );
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc
deleted file mode 100644
index 3952a410..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc
+++ /dev/null
@@ -1,1257 +0,0 @@
-@codingStandardsChangeSetting Generic.WhiteSpace.ScopeIndent tabIndent true
-<meta name="twitter:site" content="<?php echo $metaTagsData['twitter:site']; ?>">
-<?php
-class Test {
- function __construct()
- {
- $this->hello();
- }
-
- function hello()
- {
- echo 'hello';
-}//end hello()
-
- function hello2()
- {
- if (TRUE) {
- echo 'hello'; // no error here as its more than 4 spaces.
- } else {
- echo 'bye';
- }
-
- while (TRUE) {
- echo 'hello';
- }
-
- do {
- echo 'hello';
- } while (TRUE);
- }
-
- function hello3()
- {
- switch ($hello) {
- case 'hello':
- break;
- }
- }
-
-}
-
-?>
-<pre>
-</head>
-<body>
-<?php
-if ($form->validate()) {
- $safe = $form->getSubmitValues();
-}
-?>
-</pre>
-<?php
-
-class Test2
-{
- function __construct()
- {
- // $this->open(); // error here
- }
-
- public function open()
- {
- // Some inline stuff that shouldn't error
- if (TRUE) echo 'hello';
- foreach ($tokens as $token) echo $token;
- }
-
- /**
- * This is a comment 1.
- * This is a comment 2.
- * This is a comment 3.
- * This is a comment 4.
- */
- public function close()
- {
- // All ok.
- if (TRUE) {
- if (TRUE) {
- } else if (FALSE) {
- foreach ($tokens as $token) {
- switch ($token) {
- case '1':
- case '2':
- if (true) {
- if (false) {
- if (false) {
- if (false) {
- echo 'hello';
- }
- }
- }
- }
- break;
- case '5':
- break;
- }
- do {
- while (true) {
- foreach ($tokens as $token) {
- for ($i = 0; $i < $token; $i++) {
- echo 'hello';
- }
- }
- }
- } while (true);
- }
- }
- }
- }
-
- /*
- This is another c style comment 1.
- This is another c style comment 2.
- This is another c style comment 3.
- This is another c style comment 4.
- This is another c style comment 5.
- */
-
- /* This is a T_COMMENT
- *
- *
- *
- */
-
- /** This is a T_DOC_COMMENT
- */
-
- /*
- This T_COMMENT has a newline in it.
-
- */
-
- public function read()
- {
- echo 'hello';
-
- // no errors below.
- $array = array(
- 'this',
- 'that' => array(
- 'hello',
- 'hello again' => array(
- 'hello',
- ),
- ),
- );
- }
-}
-
-abstract class Test3
-{
- public function parse()
- {
-
- foreach ($t as $ndx => $token) {
- if (is_array($token)) {
- echo 'here';
- } else {
- $ts[] = array("token" => $token, "value" => '');
-
- $last = count($ts) - 1;
-
- switch ($token) {
- case '(':
-
- if ($last >= 3 &&
- $ts[0]['token'] != T_CLASS &&
- $ts[$last - 2]['token'] == T_OBJECT_OPERATOR &&
- $ts[$last - 3]['token'] == T_VARIABLE ) {
-
-
- if (true) {
- echo 'hello';
- }
- }
- array_push($braces, $token);
- break;
- }
- }
- }
- }
-}
-
-public function test()
-{
- $o = <<<EOF
-this is some text
-this is some text
-this is some text
-this is some text
-this is some text
-this is some text
-EOF;
-
- return $o;
-}
-
-if ($a === true || $a === true || $a === true || $a === true ||
- $a === true || $a === true || $a === true || $a === true) {
-
- echo 'hello';
-}
-
-if ($true) {
- /* First comment line
- *
- * Comment test here
- * Comment test here
- *
- */
-
- /* First comment line
- *
- * Comment test here
- * Comment test here
- *
- this si something */
-}
-
-function test()
-{
- /* taken from http://de3.php.net/manual/en/reserved.php */
- # $m[] = 'declare';
- /* taken from http://de3.php.net/manual/en/reserved.php */
- # $m[] = 'declare';
-}
-
-foreach ($elements as $element) {
- if ($something) {
- // Do IF.
- } else if ($somethingElse) {
- // Do ELSE.
- }
-}
-
-if ($condition) {
- echo "This is a long
-string that spans $numLines lines
-without indenting.
-";
-}
-
-if ($condition) {
- echo 'This is a long
- string that spans multiple lines
- with indenting.
- ';
-}
-
-if ($condition) {
- echo 'This is a long
- string that spans multiple lines
- with indenting.';
-}
-
-switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- echo $string{1};
- }
- break;
-}
-
-function temp($foo, $bar) {
- switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- return $foo;
- }
- break;
- }
-}
-
-switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- if ($something) {
- echo $string{1};
- } else if ($else) {
- switch ($else) {
- default:
- }
- }
- }
- break;
-}
-
-switch ($name) {
- case "1":
- case "2":
- case "3":
- return true;
-}
-
-switch ($name) {
- case "1":
- case "2":
- case "3":
- default :
- return true;
-}
-
-function myFunction()
-{
- ?>
- <dynamic_content>
-
- </dynamic_content>
- <?php
-
-}
-
-switch ($name) {
- case "1":
- switch ($name2) {
- case "1":
- break;
- case "2":
- break;
- }
- break;
- case "2":
- break;
-}
-
-switch (true) {
- case true: {
- }
- echo 'hi';
- break;
- case false:
- case null:{
- echo 'hi';
- }
- break;
-}
-
-switch (true) {
- case true: {
- echo 'hi';
- }
- // No break here.
- case false:
- case true:
- case null:{
- echo 'hi';
- echo 'hi';
- }
- break;
-}
-
-switch (true) {
- case true: {
- if (true) {
- echo 'hi';
- }
- }
- break;
-}
-
-// Testing anon function.
-class a {
- function c()
- {
- $this->doSomething(
- function () {
- echo 123;
- }
- );
- }
-}
-
-some_function(
- function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
- }
-);
-
-some_function(
- function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
- }
-);
-
-$myFunction = function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
-}
-
-class Whatever
-{
- protected $_protectedArray = array(
- 'normalString' => 'That email address is already in use!',
- 'offendingString' => <<<'STRING'
-Each line of this string is always said to be at column 0,
- no matter how many spaces are placed
- at the beginning of each line
-and the ending STRING on the next line is reported as having to be indented.
-STRING
- );
-}
-
-class MyClass
-{
- public static function myFunction()
- {
- if (empty($keywords) === FALSE) {
- $keywords = 'foo';
- $existing = 'foo';
- }
-
- return $keywords;
-
- }//end myFunction()
-
-}//end class
-
-$var = call_user_func(
- $new_var = function () use (&$a) {
- if ($a > 0) {
- return $a++;
- } else {
- return $a--;
- }
- }
-);
-
-class AnonymousFn
-{
- public function getAnonFn()
- {
- return array(
- 'functions' => Array(
- 'function1' => function ($a, $b, $c) {
- $a = $b + $c;
- $b = $c / 2;
- return Array($a, $b, $c);
- },
- ),
- );
- }
-}
-?>
-
-<div>
- <?php
- if ($myvar == 'test') {
- echo 'something';
- }
- ?>
-<div>
-<div>
- <?php
- if ($myvar == 'test') {
- echo 'something';
- }
- ?>
-<div>
-<div>
- <?php
-if ($myvar == 'test') {
- echo 'something';
-}
- ?>
-<div>
-<body>
- <?php
- if (isset($_GET["test"])) {
- if ($_GET["test"] <> "") {
- $test = true;
- } else {
- $test = true;
- }
- }
- ?>
-</body>
-
-<?php
-if (true) {
- ?>
- <div>
- <div>
- <div>
- <?php
- if (true) {
- echo 'hello';
- } else {
- echo 'goodbye';
- }
- ?>
- </div>
- </div>
- </div>
- <?php
-} else {
- echo 'else';
-}
-?>
-<?php if (isset($param)) { ?>
- <h3>some text</h3>
-<?php }
-
-$list = [
- 'fn' => function ($a) {
- if ($a === true) {
- echo 'hi';
- }
- }
-];
-
-$list = [
- 'fn' => function ($a) {
- if ($a === true) {
- echo 'hi';
- }
- }
-];
-
-if ($foo) {
- foreach ($bar as $baz) {
- if ($baz) {
- ?>
- <div>
- <div>
- <div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- }
- }
-}
-
-?>
-<title><?= CHtml::encode($this->pageTitle); ?></title>
-
-<?php
-if ($foo) {
- echo '1';
- echo '2';
- echo '3';
-}
-
-$array = array();
-array_map(
- function($x)
- {
- return trim($x);
- },
- $array
-);
-
-function foo(){return function(){};}
-
-$mockedDatabase->expects($this->at(2))
- ->with($this->callback(
- function ($subject)
- {
- }
- )
- );
-
-/** @var Database $mockedDatabase */
-/** @var Container $mockedContainer */
-
-echo $string->append('foo')
- ->appaend('bar')
- ->appaend('baz')
- ->outputUsing(
- function ()
- {
- }
- );
-
-echo PHP_EOL;
-
-switch ($arg) {
- case 1:
- break;
- case 2:
- if ($arg2 == 'foo') {
- }
- case 3:
- default:
- echo 'default';
-}
-
-if ($tokens[$stackPtr]['content']{0} === '#') {
-} else if ($tokens[$stackPtr]['content']{0} === '/'
- && $tokens[$stackPtr]['content']{1} === '/'
-) {
-}
-
-$var = call_user_func(
- function() {
- if ($foo) {
- $new_var = function() {
- if ($a > 0) {
- return $a++;
- } else {
- return $a--;
- }
- }
- }
- }
-);
-
-a(
- function() {
- $a = function() {
- $b = false;
- };
- true
- }
-);
-
-$var = [
- [
- '1' =>
- function () {
- return true;
- },
- ],
- [
- '1' =>
- function () {
- return true;
- },
- '2' => true,
- ]
-];
-
-if ($foo) {
- ?>
- </p>
- <?php
-}
-
-function foo()
-{
- $failingTests[$testName][] = array(
- 'comment' => self::_replaceKeywords($failingComment, $result),
- 'screenshot' => Test::getScreenshotPath(
- $projectid,
- $result['class_name'],
- ),
- );
-
-}
-
-$this->mockedDatabase
- ->with(
- $this->callback(
- function () {
- return;
- }
- )
- );
-
-$this->subject->recordLogin();
-
-function a()
-{
- if (true) {
- static::$a[$b] =
- static::where($c)
- ->where($c)
- ->where(
- function ($d) {
- $d->whereNull();
- $d->orWhere();
- }
- )
- ->first();
-
- if (static::$a[$b] === null) {
- static::$a[$b] = new static(
- array(
- 'a' => $a->id,
- 'a' => $a->id,
- )
- );
- }
- }
-
- return static::$a[$b];
-}
-
-$foo->load(
- array(
- 'bar' => function ($baz) {
- $baz->call();
- }
- )
-);
-
-hello();
-
-$foo = array_unique(
- array_map(
- function ($entry) {
- return $entry * 2;
- },
- array()
- )
-);
-bar($foo);
-
-class PHP_CodeSniffer_Tokenizers_JS
-{
-
- public $scopeOpeners = array(
- T_CASE => array(
- 'end' => array(
- T_BREAK => T_BREAK,
- T_RETURN => T_RETURN,
- ),
- 'strict' => true,
- ),
- );
-}
-
-echo $string->
- append('foo')->
- appaend('bar')->
- appaend('baz')->
- outputUsing(
- function ()
- {
- }
- );
-
-$str = 'the items I want to show are: ' .
- implode(
- ', ',
- array('a', 'b', 'c')
- );
-
-echo $str;
-
-$str = 'foo'
- . '1'
- . '2';
-
-echo $str;
-
-bar([
- 'foo' => foo(function () {
- return 'foo';
- })
-]);
-
-$domains = array_unique(
- array_map(
- function ($url) {
- $urlObject = new \Purl\Url($url);
- return $urlObject->registerableDomain;
- },
- $sites
- )
-);
-
-return $domains;
-
-if ($a == 5) :
- echo "a equals 5";
- echo "...";
-elseif ($a == 6) :
- echo "a equals 6";
- echo "!!!";
-else :
- echo "a is neither 5 nor 6";
-endif;
-
-if ($foo):
-if ($bar) $foo = 1;
-elseif ($baz) $foo = 2;
-endif;
-
-$this
- ->method(array(
- 'foo' => 'bar',
- ), 'arg', array(
- 'foo' => 'bar',
- ));
-
-class Foo
-{
- use Bar {
- myMethod as renamedMethod;
- }
-}
-
-class Foo
-{
- use Bar {
- myMethod as renamedMethod;
- }
-}
-
-foo();
-
-array(
- 'key1' => function ($bar) {
- return $bar;
- },
- 'key2' => function ($foo) {
- return $foo;
- },
-);
-
-?>
-<script>
- var foo = <?php echo bar(
- 'baz'
- ); ?>;
-</script>
-<?php
-
-try {
- echo 'foo';
-} catch (\Exception $e) {
- echo 'catch';
-} finally {
- if (false) {
- echo 'finally false';
- }
-}
-
-class C0
-{
- public function m0()
- {
- }
-
- public function m1()
- {
- }
-}
-
-namespace Foo {
-
- use \Foo\Bar;
- use \Foo\Baz;
-
- function test() {
- return true;
- }
-
-}
-
-declare(ticks=1) {
-echo 'foo';
-}
-
-$a =
- (
- $b = 1
- );
-$c = 2;
-
-$a =
- [
- $b => 1,
- ];
-$c = 2;
-
-class foo
-{
- public function get()
- {
- $foo = ['b' => 'c',
- 'd' => [
- ['e' => 'f']
- ]];
- echo '42';
-
- $foo = array('b' => 'c',
- 'd' => array(
- array('e' => 'f')
- ));
- echo '42';
- }
-}
-
-switch ($foo) {
- case 1:
- return array();
- case 2:
- return '';
- case 3:
- return $function();
- case 4:
- return $functionCall($param[0]);
- case 5:
- return array() + array(); // Array Merge
- case 6:
- // String connect
- return $functionReturningString('') . $functionReturningString(array());
- case 7:
- return functionCall(
- $withMultiLineParam[0],
- array(),
- $functionReturningString(
- $withMultiLineParam[1]
- )
- );
- case 8:
- return $param[0][0];
-}
-
-class Test {
-
- public
- $foo
- ,$bar
- ,$baz = [ ]
- ;
-
- public function wtfindent() {
- }
-}
-
-switch ($x) {
- case 1:
- return [1];
- default:
- return [2];
-}
-
-switch ($foo) {
- case self::FOO:
- return $this->bar($gfoo, function ($id) {
- return FOO::bar($id);
- }, $values);
- case self::BAR:
- $values = $this->bar($foo, $values);
- break;
-}
-
-$var = array(
- 'long description' =>
- array(0, 'something'),
- 'another long description' =>
- array(1, "something else")
-);
-
-$services = array(
- 'service 1' =>
- Mockery::mock('class 1')
- ->shouldReceive('setFilter')->once()
- ->shouldReceive('getNbResults')->atLeast()->once()
- ->shouldReceive('getSlice')->once()->andReturn(array())
- ->getMock(),
- 'service 2' =>
- Mockery::mock('class 2')
- ->shouldReceive('__invoke')->once()
- ->getMock()
-);
-
-class Foo
-{
- public function setUp()
- {
- $this->foo = new class {
- public $name = 'Some value';
- };
- }
-}
-
-try {
- foo();
-} catch (\Exception $e) {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-}
-
-if ($foo) {
- foo();
-} else if (\Exception $e) {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-} else {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-}
-
-switch ($parameter) {
- case null:
- return [
- 'foo' => in_array(
- 'foo',
- []
- ),
- ];
-
- default:
- return [];
-}
-
-class SomeClass
-{
- public function someFunc()
- {
- a(function () {
- echo "a";
- })->b(function () {
- echo "b";
- });
-
- if (true) {
- echo "c";
- }
- echo "d";
- }
-}
-
-$params = self::validate_parameters(self::read_competency_framework_parameters(),
- array(
- 'id' => $id,
- ));
-
-$framework = api::read_framework($params['id']);
-self::validate_context($framework->get_context());
-$output = $PAGE->get_renderer('tool_lp');
-
-class Test123
-{
- protected static
- $prop1 = [
- 'testA' => 123,
- ],
- $prop2 = [
- 'testB' => 456,
- ],
-
- protected static
- $prop3 = array(
- 'testA' => 123,
- ),
- $prop4 = array(
- 'testB' => 456,
- ),
-
- protected static $prop5;
-}
-
-$foo = foo(
- function () {
- $foo->debug(
- $a,
- $b
- );
-
- if ($a) {
- $b = $a;
- }
- }
-);
-
-if (somethingIsTrue()) {
- ?>
- <div>
- <?php
- $someVar = doSomething(
- 'foobar',
- true,
- 'foo',
- 'bar'
- );
-
- if (somethingElseIsTrue()) {
- doOneThing();
- } else {
- doTheOtherThing();
- }
- ?>
- </div>
- <?php
-}
-
-$foo = [
- new class() implements Bar {
-
- public static function foo(): string
- {
- return 'foo';
- }
- },
-];
-
-$foo = [
- function () {
- if ($foo) {
- return 'foo';
- }
- },
-];
-
-$foo
- ->bar(foo(function () {
- }), foo(function () {
- }));
-
-echo 'foo';
-
-class Test {
-
- public function a() {
- ?>a<?php
- }
-
- public function b(
- $a
- ) {
- echo $a;
- }
-}
-
-$foo = foo(
- function () {
- $foo->debug(
- $a,
- $b
- );
-
- if ($a) {
- $b = $a;
- }
- }
-);
-
-function test()
-{
- $array = [];
- foreach ($array as $data) {
- [
- 'key1' => $var1,
- 'key2' => $var2,
- ] = $data;
- foreach ($var1 as $method) {
- echo $method . $var2;
- }
- }
-}
-
-switch ($a) {
- case 0:
- function () {
- };
- case 1:
- break;
-}
-
-class Test
-{
- public function __construct()
- {
-if (false) {
-echo 0;
- }
- }
-}
-
-return [
- 'veryLongKeySoIWantToMakeALineBreak'
- => 'veryLonValueSoIWantToMakeALineBreak',
-
- 'someOtherKey' => [
- 'someValue'
- ],
-
- 'arrayWithArraysInThere' => [
- ['Value1', 'Value1']
- ],
-];
-
-switch ($sContext) {
- case 'SOMETHING':
- case 'CONSTANT':
- do_something();
- break;
- case 'GLOBAL':
- case 'GLOBAL1':
- do_something();
- // Fall through
- default:
- {
- do_something();
- }
-}
-
- function foo()
- {
- $foo = array(
- );
-
- if ($foo) {
- echo 'foo';
- }
-
- return false;
- }
-
-?>
-<?php
- if (true) {
- }
- else if (true) {
- }
-
-$a = 1;
-
-/*
-$a = array(
- */
-);
-
-echo ""
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc.fixed
deleted file mode 100644
index b6d290ae..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.2.inc.fixed
+++ /dev/null
@@ -1,1257 +0,0 @@
-@codingStandardsChangeSetting Generic.WhiteSpace.ScopeIndent tabIndent true
-<meta name="twitter:site" content="<?php echo $metaTagsData['twitter:site']; ?>">
-<?php
-class Test {
- function __construct()
- {
- $this->hello();
- }
-
- function hello()
- {
- echo 'hello';
- }//end hello()
-
- function hello2()
- {
- if (TRUE) {
- echo 'hello'; // no error here as its more than 4 spaces.
- } else {
- echo 'bye';
- }
-
- while (TRUE) {
- echo 'hello';
- }
-
- do {
- echo 'hello';
- } while (TRUE);
- }
-
- function hello3()
- {
- switch ($hello) {
- case 'hello':
- break;
- }
- }
-
-}
-
-?>
-<pre>
-</head>
-<body>
-<?php
-if ($form->validate()) {
- $safe = $form->getSubmitValues();
-}
-?>
-</pre>
-<?php
-
-class Test2
-{
- function __construct()
- {
- // $this->open(); // error here
- }
-
- public function open()
- {
- // Some inline stuff that shouldn't error
- if (TRUE) echo 'hello';
- foreach ($tokens as $token) echo $token;
- }
-
- /**
- * This is a comment 1.
- * This is a comment 2.
- * This is a comment 3.
- * This is a comment 4.
- */
- public function close()
- {
- // All ok.
- if (TRUE) {
- if (TRUE) {
- } else if (FALSE) {
- foreach ($tokens as $token) {
- switch ($token) {
- case '1':
- case '2':
- if (true) {
- if (false) {
- if (false) {
- if (false) {
- echo 'hello';
- }
- }
- }
- }
- break;
- case '5':
- break;
- }
- do {
- while (true) {
- foreach ($tokens as $token) {
- for ($i = 0; $i < $token; $i++) {
- echo 'hello';
- }
- }
- }
- } while (true);
- }
- }
- }
- }
-
- /*
- This is another c style comment 1.
- This is another c style comment 2.
- This is another c style comment 3.
- This is another c style comment 4.
- This is another c style comment 5.
- */
-
- /* This is a T_COMMENT
- *
- *
- *
- */
-
- /** This is a T_DOC_COMMENT
- */
-
- /*
- This T_COMMENT has a newline in it.
-
- */
-
- public function read()
- {
- echo 'hello';
-
- // no errors below.
- $array = array(
- 'this',
- 'that' => array(
- 'hello',
- 'hello again' => array(
- 'hello',
- ),
- ),
- );
- }
-}
-
-abstract class Test3
-{
- public function parse()
- {
-
- foreach ($t as $ndx => $token) {
- if (is_array($token)) {
- echo 'here';
- } else {
- $ts[] = array("token" => $token, "value" => '');
-
- $last = count($ts) - 1;
-
- switch ($token) {
- case '(':
-
- if ($last >= 3 &&
- $ts[0]['token'] != T_CLASS &&
- $ts[$last - 2]['token'] == T_OBJECT_OPERATOR &&
- $ts[$last - 3]['token'] == T_VARIABLE ) {
-
-
- if (true) {
- echo 'hello';
- }
- }
- array_push($braces, $token);
- break;
- }
- }
- }
- }
-}
-
-public function test()
-{
- $o = <<<EOF
-this is some text
-this is some text
-this is some text
-this is some text
-this is some text
-this is some text
-EOF;
-
- return $o;
-}
-
-if ($a === true || $a === true || $a === true || $a === true ||
- $a === true || $a === true || $a === true || $a === true) {
-
- echo 'hello';
-}
-
-if ($true) {
- /* First comment line
- *
- * Comment test here
- * Comment test here
- *
- */
-
- /* First comment line
- *
- * Comment test here
- * Comment test here
- *
- this si something */
-}
-
-function test()
-{
- /* taken from http://de3.php.net/manual/en/reserved.php */
- # $m[] = 'declare';
- /* taken from http://de3.php.net/manual/en/reserved.php */
- # $m[] = 'declare';
-}
-
-foreach ($elements as $element) {
- if ($something) {
- // Do IF.
- } else if ($somethingElse) {
- // Do ELSE.
- }
-}
-
-if ($condition) {
- echo "This is a long
-string that spans $numLines lines
-without indenting.
-";
-}
-
-if ($condition) {
- echo 'This is a long
- string that spans multiple lines
- with indenting.
- ';
-}
-
-if ($condition) {
- echo 'This is a long
- string that spans multiple lines
- with indenting.';
-}
-
-switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- echo $string{1};
- }
- break;
-}
-
-function temp($foo, $bar) {
- switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- return $foo;
- }
- break;
- }
-}
-
-switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- if ($something) {
- echo $string{1};
- } else if ($else) {
- switch ($else) {
- default:
- }
- }
- }
- break;
-}
-
-switch ($name) {
- case "1":
- case "2":
- case "3":
- return true;
-}
-
-switch ($name) {
- case "1":
- case "2":
- case "3":
- default :
- return true;
-}
-
-function myFunction()
-{
- ?>
- <dynamic_content>
-
- </dynamic_content>
- <?php
-
-}
-
-switch ($name) {
- case "1":
- switch ($name2) {
- case "1":
- break;
- case "2":
- break;
- }
- break;
- case "2":
- break;
-}
-
-switch (true) {
- case true: {
- }
- echo 'hi';
- break;
- case false:
- case null:{
- echo 'hi';
- }
- break;
-}
-
-switch (true) {
- case true: {
- echo 'hi';
- }
- // No break here.
- case false:
- case true:
- case null:{
- echo 'hi';
- echo 'hi';
- }
- break;
-}
-
-switch (true) {
- case true: {
- if (true) {
- echo 'hi';
- }
- }
- break;
-}
-
-// Testing anon function.
-class a {
- function c()
- {
- $this->doSomething(
- function () {
- echo 123;
- }
- );
- }
-}
-
-some_function(
- function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
- }
-);
-
-some_function(
- function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
- }
-);
-
-$myFunction = function() {
- $a = 403;
- if ($a === 404) {
- $a = 403;
- }
-}
-
-class Whatever
-{
- protected $_protectedArray = array(
- 'normalString' => 'That email address is already in use!',
- 'offendingString' => <<<'STRING'
-Each line of this string is always said to be at column 0,
- no matter how many spaces are placed
- at the beginning of each line
-and the ending STRING on the next line is reported as having to be indented.
-STRING
- );
-}
-
-class MyClass
-{
- public static function myFunction()
- {
- if (empty($keywords) === FALSE) {
- $keywords = 'foo';
- $existing = 'foo';
- }
-
- return $keywords;
-
- }//end myFunction()
-
-}//end class
-
-$var = call_user_func(
- $new_var = function () use (&$a) {
- if ($a > 0) {
- return $a++;
- } else {
- return $a--;
- }
- }
-);
-
-class AnonymousFn
-{
- public function getAnonFn()
- {
- return array(
- 'functions' => Array(
- 'function1' => function ($a, $b, $c) {
- $a = $b + $c;
- $b = $c / 2;
- return Array($a, $b, $c);
- },
- ),
- );
- }
-}
-?>
-
-<div>
- <?php
- if ($myvar == 'test') {
- echo 'something';
- }
- ?>
-<div>
-<div>
- <?php
- if ($myvar == 'test') {
- echo 'something';
- }
- ?>
-<div>
-<div>
- <?php
- if ($myvar == 'test') {
- echo 'something';
- }
- ?>
-<div>
-<body>
- <?php
- if (isset($_GET["test"])) {
- if ($_GET["test"] <> "") {
- $test = true;
- } else {
- $test = true;
- }
- }
- ?>
-</body>
-
-<?php
-if (true) {
- ?>
- <div>
- <div>
- <div>
- <?php
- if (true) {
- echo 'hello';
- } else {
- echo 'goodbye';
- }
- ?>
- </div>
- </div>
- </div>
- <?php
-} else {
- echo 'else';
-}
-?>
-<?php if (isset($param)) { ?>
- <h3>some text</h3>
-<?php }
-
-$list = [
- 'fn' => function ($a) {
- if ($a === true) {
- echo 'hi';
- }
- }
-];
-
-$list = [
- 'fn' => function ($a) {
- if ($a === true) {
- echo 'hi';
- }
- }
-];
-
-if ($foo) {
- foreach ($bar as $baz) {
- if ($baz) {
- ?>
- <div>
- <div>
- <div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- if ($baz > 1) {
- echo '1';
- }
- ?>
- </div>
- <?php
- }
- }
-}
-
-?>
-<title><?= CHtml::encode($this->pageTitle); ?></title>
-
-<?php
-if ($foo) {
- echo '1';
- echo '2';
- echo '3';
-}
-
-$array = array();
-array_map(
- function($x)
- {
- return trim($x);
- },
- $array
-);
-
-function foo(){return function(){};}
-
-$mockedDatabase->expects($this->at(2))
- ->with($this->callback(
- function ($subject)
- {
- }
- )
- );
-
-/** @var Database $mockedDatabase */
-/** @var Container $mockedContainer */
-
-echo $string->append('foo')
- ->appaend('bar')
- ->appaend('baz')
- ->outputUsing(
- function ()
- {
- }
- );
-
-echo PHP_EOL;
-
-switch ($arg) {
- case 1:
- break;
- case 2:
- if ($arg2 == 'foo') {
- }
- case 3:
- default:
- echo 'default';
-}
-
-if ($tokens[$stackPtr]['content']{0} === '#') {
-} else if ($tokens[$stackPtr]['content']{0} === '/'
- && $tokens[$stackPtr]['content']{1} === '/'
-) {
-}
-
-$var = call_user_func(
- function() {
- if ($foo) {
- $new_var = function() {
- if ($a > 0) {
- return $a++;
- } else {
- return $a--;
- }
- }
- }
- }
-);
-
-a(
- function() {
- $a = function() {
- $b = false;
- };
- true
- }
-);
-
-$var = [
- [
- '1' =>
- function () {
- return true;
- },
- ],
- [
- '1' =>
- function () {
- return true;
- },
- '2' => true,
- ]
-];
-
-if ($foo) {
- ?>
- </p>
- <?php
-}
-
-function foo()
-{
- $failingTests[$testName][] = array(
- 'comment' => self::_replaceKeywords($failingComment, $result),
- 'screenshot' => Test::getScreenshotPath(
- $projectid,
- $result['class_name'],
- ),
- );
-
-}
-
-$this->mockedDatabase
- ->with(
- $this->callback(
- function () {
- return;
- }
- )
- );
-
-$this->subject->recordLogin();
-
-function a()
-{
- if (true) {
- static::$a[$b] =
- static::where($c)
- ->where($c)
- ->where(
- function ($d) {
- $d->whereNull();
- $d->orWhere();
- }
- )
- ->first();
-
- if (static::$a[$b] === null) {
- static::$a[$b] = new static(
- array(
- 'a' => $a->id,
- 'a' => $a->id,
- )
- );
- }
- }
-
- return static::$a[$b];
-}
-
-$foo->load(
- array(
- 'bar' => function ($baz) {
- $baz->call();
- }
- )
-);
-
-hello();
-
-$foo = array_unique(
- array_map(
- function ($entry) {
- return $entry * 2;
- },
- array()
- )
-);
-bar($foo);
-
-class PHP_CodeSniffer_Tokenizers_JS
-{
-
- public $scopeOpeners = array(
- T_CASE => array(
- 'end' => array(
- T_BREAK => T_BREAK,
- T_RETURN => T_RETURN,
- ),
- 'strict' => true,
- ),
- );
-}
-
-echo $string->
- append('foo')->
- appaend('bar')->
- appaend('baz')->
- outputUsing(
- function ()
- {
- }
- );
-
-$str = 'the items I want to show are: ' .
- implode(
- ', ',
- array('a', 'b', 'c')
- );
-
-echo $str;
-
-$str = 'foo'
- . '1'
- . '2';
-
-echo $str;
-
-bar([
- 'foo' => foo(function () {
- return 'foo';
- })
-]);
-
-$domains = array_unique(
- array_map(
- function ($url) {
- $urlObject = new \Purl\Url($url);
- return $urlObject->registerableDomain;
- },
- $sites
- )
-);
-
-return $domains;
-
-if ($a == 5) :
- echo "a equals 5";
- echo "...";
-elseif ($a == 6) :
- echo "a equals 6";
- echo "!!!";
-else :
- echo "a is neither 5 nor 6";
-endif;
-
-if ($foo):
- if ($bar) $foo = 1;
- elseif ($baz) $foo = 2;
-endif;
-
-$this
- ->method(array(
- 'foo' => 'bar',
- ), 'arg', array(
- 'foo' => 'bar',
- ));
-
-class Foo
-{
- use Bar {
- myMethod as renamedMethod;
- }
-}
-
-class Foo
-{
- use Bar {
- myMethod as renamedMethod;
- }
-}
-
-foo();
-
-array(
- 'key1' => function ($bar) {
- return $bar;
- },
- 'key2' => function ($foo) {
- return $foo;
- },
-);
-
-?>
-<script>
- var foo = <?php echo bar(
- 'baz'
- ); ?>;
-</script>
-<?php
-
-try {
- echo 'foo';
-} catch (\Exception $e) {
- echo 'catch';
-} finally {
- if (false) {
- echo 'finally false';
- }
-}
-
-class C0
-{
- public function m0()
- {
- }
-
- public function m1()
- {
- }
-}
-
-namespace Foo {
-
- use \Foo\Bar;
- use \Foo\Baz;
-
- function test() {
- return true;
- }
-
-}
-
-declare(ticks=1) {
- echo 'foo';
-}
-
-$a =
- (
- $b = 1
- );
-$c = 2;
-
-$a =
- [
- $b => 1,
- ];
-$c = 2;
-
-class foo
-{
- public function get()
- {
- $foo = ['b' => 'c',
- 'd' => [
- ['e' => 'f']
- ]];
- echo '42';
-
- $foo = array('b' => 'c',
- 'd' => array(
- array('e' => 'f')
- ));
- echo '42';
- }
-}
-
-switch ($foo) {
- case 1:
- return array();
- case 2:
- return '';
- case 3:
- return $function();
- case 4:
- return $functionCall($param[0]);
- case 5:
- return array() + array(); // Array Merge
- case 6:
- // String connect
- return $functionReturningString('') . $functionReturningString(array());
- case 7:
- return functionCall(
- $withMultiLineParam[0],
- array(),
- $functionReturningString(
- $withMultiLineParam[1]
- )
- );
- case 8:
- return $param[0][0];
-}
-
-class Test {
-
- public
- $foo
- ,$bar
- ,$baz = [ ]
- ;
-
- public function wtfindent() {
- }
-}
-
-switch ($x) {
- case 1:
- return [1];
- default:
- return [2];
-}
-
-switch ($foo) {
- case self::FOO:
- return $this->bar($gfoo, function ($id) {
- return FOO::bar($id);
- }, $values);
- case self::BAR:
- $values = $this->bar($foo, $values);
- break;
-}
-
-$var = array(
- 'long description' =>
- array(0, 'something'),
- 'another long description' =>
- array(1, "something else")
-);
-
-$services = array(
- 'service 1' =>
- Mockery::mock('class 1')
- ->shouldReceive('setFilter')->once()
- ->shouldReceive('getNbResults')->atLeast()->once()
- ->shouldReceive('getSlice')->once()->andReturn(array())
- ->getMock(),
- 'service 2' =>
- Mockery::mock('class 2')
- ->shouldReceive('__invoke')->once()
- ->getMock()
-);
-
-class Foo
-{
- public function setUp()
- {
- $this->foo = new class {
- public $name = 'Some value';
- };
- }
-}
-
-try {
- foo();
-} catch (\Exception $e) {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-}
-
-if ($foo) {
- foo();
-} else if (\Exception $e) {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-} else {
- $foo = function() {
- return 'foo';
- }
-
- if (true) {
- }
-}
-
-switch ($parameter) {
- case null:
- return [
- 'foo' => in_array(
- 'foo',
- []
- ),
- ];
-
- default:
- return [];
-}
-
-class SomeClass
-{
- public function someFunc()
- {
- a(function () {
- echo "a";
- })->b(function () {
- echo "b";
- });
-
- if (true) {
- echo "c";
- }
- echo "d";
- }
-}
-
-$params = self::validate_parameters(self::read_competency_framework_parameters(),
- array(
- 'id' => $id,
- ));
-
-$framework = api::read_framework($params['id']);
-self::validate_context($framework->get_context());
-$output = $PAGE->get_renderer('tool_lp');
-
-class Test123
-{
- protected static
- $prop1 = [
- 'testA' => 123,
- ],
- $prop2 = [
- 'testB' => 456,
- ],
-
- protected static
- $prop3 = array(
- 'testA' => 123,
- ),
- $prop4 = array(
- 'testB' => 456,
- ),
-
- protected static $prop5;
-}
-
-$foo = foo(
- function () {
- $foo->debug(
- $a,
- $b
- );
-
- if ($a) {
- $b = $a;
- }
- }
-);
-
-if (somethingIsTrue()) {
- ?>
- <div>
- <?php
- $someVar = doSomething(
- 'foobar',
- true,
- 'foo',
- 'bar'
- );
-
- if (somethingElseIsTrue()) {
- doOneThing();
- } else {
- doTheOtherThing();
- }
- ?>
- </div>
- <?php
-}
-
-$foo = [
- new class() implements Bar {
-
- public static function foo(): string
- {
- return 'foo';
- }
- },
-];
-
-$foo = [
- function () {
- if ($foo) {
- return 'foo';
- }
- },
-];
-
-$foo
- ->bar(foo(function () {
- }), foo(function () {
- }));
-
-echo 'foo';
-
-class Test {
-
- public function a() {
- ?>a<?php
- }
-
- public function b(
- $a
- ) {
- echo $a;
- }
-}
-
-$foo = foo(
- function () {
- $foo->debug(
- $a,
- $b
- );
-
- if ($a) {
- $b = $a;
- }
- }
-);
-
-function test()
-{
- $array = [];
- foreach ($array as $data) {
- [
- 'key1' => $var1,
- 'key2' => $var2,
- ] = $data;
- foreach ($var1 as $method) {
- echo $method . $var2;
- }
- }
-}
-
-switch ($a) {
- case 0:
- function () {
- };
- case 1:
- break;
-}
-
-class Test
-{
- public function __construct()
- {
- if (false) {
- echo 0;
- }
- }
-}
-
-return [
- 'veryLongKeySoIWantToMakeALineBreak'
- => 'veryLonValueSoIWantToMakeALineBreak',
-
- 'someOtherKey' => [
- 'someValue'
- ],
-
- 'arrayWithArraysInThere' => [
- ['Value1', 'Value1']
- ],
-];
-
-switch ($sContext) {
- case 'SOMETHING':
- case 'CONSTANT':
- do_something();
- break;
- case 'GLOBAL':
- case 'GLOBAL1':
- do_something();
- // Fall through
- default:
- {
- do_something();
- }
-}
-
-function foo()
-{
- $foo = array(
- );
-
- if ($foo) {
- echo 'foo';
- }
-
- return false;
-}
-
-?>
-<?php
-if (true) {
-}
-else if (true) {
-}
-
-$a = 1;
-
-/*
-$a = array(
- */
-);
-
-echo ""
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc
deleted file mode 100644
index ef56f60f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-@codingStandardsChangeSetting Generic.WhiteSpace.ScopeIndent tabIndent false
-@codingStandardsChangeSetting Generic.WhiteSpace.ScopeIndent exact true
-<?php
-function test()
-{
- echo 'test';
- echo 'test2';
- echo 'test3';
- if (true) {
- echo 'test3';
- }
- echo 'test3';
- $x = f1(
- 'test1', 'test2',
- 'test3'
- );
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc.fixed
deleted file mode 100644
index 3e968ec4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.3.inc.fixed
+++ /dev/null
@@ -1,17 +0,0 @@
-@codingStandardsChangeSetting Generic.WhiteSpace.ScopeIndent tabIndent false
-@codingStandardsChangeSetting Generic.WhiteSpace.ScopeIndent exact true
-<?php
-function test()
-{
- echo 'test';
- echo 'test2';
- echo 'test3';
- if (true) {
- echo 'test3';
- }
- echo 'test3';
- $x = f1(
- 'test1', 'test2',
- 'test3'
- );
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php
deleted file mode 100644
index 93515ea0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php
+++ /dev/null
@@ -1,172 +0,0 @@
-<?php
-/**
- * Unit test class for the ScopeIndent sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ScopeIndentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Get a list of CLI values to set before the file is tested.
- *
- * @param string $testFile The name of the file being tested.
- * @param \PHP_CodeSniffer\Config $config The config data for the test run.
- *
- * @return array
- */
- public function setCliValues($testFile, $config)
- {
- // Tab width setting is only needed for the tabbed file.
- if ($testFile === 'ScopeIndentUnitTest.2.inc') {
- $config->tabWidth = 4;
- } else {
- $config->tabWidth = 0;
- }
-
- }//end setCliValues()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='ScopeIndentUnitTest.inc')
- {
- if ($testFile === 'ScopeIndentUnitTest.1.js') {
- return array(
- 6 => 1,
- 14 => 1,
- 21 => 1,
- 30 => 1,
- 32 => 1,
- 33 => 1,
- 34 => 1,
- 39 => 1,
- 42 => 1,
- 59 => 1,
- 60 => 1,
- 75 => 1,
- 120 => 1,
- 121 => 1,
- 122 => 1,
- 123 => 1,
- 141 => 1,
- 142 => 1,
- 155 => 1,
- 156 => 1,
- 168 => 1,
- 184 => 1,
- );
- }//end if
-
- if ($testFile === 'ScopeIndentUnitTest.3.inc') {
- return array(
- 6 => 1,
- 7 => 1,
- 10 => 1,
- );
- }
-
- return array(
- 7 => 1,
- 10 => 1,
- 13 => 1,
- 17 => 1,
- 20 => 1,
- 24 => 1,
- 25 => 1,
- 27 => 1,
- 28 => 1,
- 29 => 1,
- 30 => 1,
- 58 => 1,
- 123 => 1,
- 224 => 1,
- 225 => 1,
- 279 => 1,
- 280 => 1,
- 281 => 1,
- 282 => 1,
- 283 => 1,
- 284 => 1,
- 285 => 1,
- 286 => 1,
- 336 => 1,
- 349 => 1,
- 380 => 1,
- 386 => 1,
- 387 => 1,
- 388 => 1,
- 389 => 1,
- 390 => 1,
- 397 => 1,
- 419 => 1,
- 420 => 1,
- 465 => 1,
- 467 => 1,
- 472 => 1,
- 473 => 1,
- 474 => 1,
- 496 => 1,
- 498 => 1,
- 500 => 1,
- 524 => 1,
- 526 => 1,
- 544 => 1,
- 545 => 1,
- 546 => 1,
- 639 => 1,
- 660 => 1,
- 662 => 1,
- 802 => 1,
- 803 => 1,
- 823 => 1,
- 858 => 1,
- 879 => 1,
- 1163 => 1,
- 1197 => 1,
- 1198 => 1,
- 1231 => 1,
- 1236 => 1,
- 1238 => 1,
- 1241 => 1,
- 1245 => 1,
- 1246 => 1,
- 1247 => 1,
- 1248 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/ruleset.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/ruleset.xml
deleted file mode 100644
index aeb5545b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Generic/ruleset.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0"?>
-<ruleset name="Generic">
- <description>A collection of generic sniffs. This standard is not designed to be used to check code.</description>
-</ruleset>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php
deleted file mode 100644
index d8859579..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/CSS/BrowserSpecificStylesSniff.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-/**
- * Ensure that browser-specific styles are not used.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class BrowserSpecificStylesSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
- /**
- * A list of specific stylesheet suffixes we allow.
- *
- * These stylesheets contain browser specific styles
- * so this sniff ignore them files in the form:
- * *_moz.css and *_ie7.css etc.
- *
- * @var array
- */
- protected $specificStylesheets = array(
- 'moz' => true,
- 'ie' => true,
- 'ie7' => true,
- 'ie8' => true,
- 'webkit' => true,
- );
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_STYLE);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- // Ignore files with browser-specific suffixes.
- $filename = $phpcsFile->getFilename();
- $breakChar = strrpos($filename, '_');
- if ($breakChar !== false && substr($filename, -4) === '.css') {
- $specific = substr($filename, ($breakChar + 1), -4);
- if (isset($this->specificStylesheets[$specific]) === true) {
- return;
- }
- }
-
- $tokens = $phpcsFile->getTokens();
- $content = $tokens[$stackPtr]['content'];
-
- if ($content{0} === '-') {
- $error = 'Browser-specific styles are not allowed';
- $phpcsFile->addError($error, $stackPtr, 'ForbiddenStyle');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php
deleted file mode 100644
index 4554d60a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/DisallowSelfActionsSniff.php
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-/**
- * Ensures that self and static are not used to call public methods in action classes.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Channels;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class DisallowSelfActionsSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_CLASS);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // We are not interested in abstract classes.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($prev !== false && $tokens[$prev]['code'] === T_ABSTRACT) {
- return;
- }
-
- // We are only interested in Action classes.
- $classNameToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- $className = $tokens[$classNameToken]['content'];
- if (substr($className, -7) !== 'Actions') {
- return;
- }
-
- $foundFunctions = array();
- $foundCalls = array();
-
- // Find all static method calls in the form self::method() in the class.
- $classEnd = $tokens[$stackPtr]['scope_closer'];
- for ($i = ($classNameToken + 1); $i < $classEnd; $i++) {
- if ($tokens[$i]['code'] !== T_DOUBLE_COLON) {
- if ($tokens[$i]['code'] === T_FUNCTION) {
- // Cache the function information.
- $funcName = $phpcsFile->findNext(T_STRING, ($i + 1));
- $funcScope = $phpcsFile->findPrevious(Tokens::$scopeModifiers, ($i - 1));
-
- $foundFunctions[$tokens[$funcName]['content']] = strtolower($tokens[$funcScope]['content']);
- }
-
- continue;
- }
-
- $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($i - 1), null, true);
- if ($tokens[$prevToken]['content'] !== 'self'
- && $tokens[$prevToken]['content'] !== 'static'
- ) {
- continue;
- }
-
- $funcNameToken = $phpcsFile->findNext(T_WHITESPACE, ($i + 1), null, true);
- if ($tokens[$funcNameToken]['code'] === T_VARIABLE) {
- // We are only interested in function calls.
- continue;
- }
-
- $funcName = $tokens[$funcNameToken]['content'];
-
- // We've found the function, now we need to find it and see if it is
- // public, private or protected. If it starts with an underscore we
- // can assume it is private.
- if ($funcName{0} === '_') {
- continue;
- }
-
- $foundCalls[$i] = array(
- 'name' => $funcName,
- 'type' => strtolower($tokens[$prevToken]['content']),
- );
- }//end for
-
- $errorClassName = substr($className, 0, -7);
-
- foreach ($foundCalls as $token => $funcData) {
- if (isset($foundFunctions[$funcData['name']]) === false) {
- // Function was not in this class, might have come from the parent.
- // Either way, we can't really check this.
- continue;
- } else if ($foundFunctions[$funcData['name']] === 'public') {
- $type = $funcData['type'];
- $error = "Static calls to public methods in Action classes must not use the $type keyword; use %s::%s() instead";
- $data = array(
- $errorClassName,
- $funcName,
- );
- $phpcsFile->addError($error, $token, 'Found'.ucfirst($funcData['type']), $data);
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php
deleted file mode 100644
index c1af6b13..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeOwnSystemSniff.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-/**
- * Ensures that a system does not include itself.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Channels;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class IncludeOwnSystemSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_DOUBLE_COLON);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $fileName = $phpcsFile->getFilename();
- $matches = array();
- if (preg_match('|/systems/(.*)/([^/]+)?actions.inc$|i', $fileName, $matches) === 0) {
- // Not an actions file.
- return;
- }
-
- $ownClass = $matches[2];
- $tokens = $phpcsFile->getTokens();
-
- $typeName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($stackPtr + 2), null, false, true);
- $typeName = trim($tokens[$typeName]['content'], " '");
- switch (strtolower($tokens[($stackPtr + 1)]['content'])) {
- case 'includesystem' :
- $included = strtolower($typeName);
- break;
- case 'includeasset' :
- $included = strtolower($typeName).'assettype';
- break;
- case 'includewidget' :
- $included = strtolower($typeName).'widgettype';
- break;
- default:
- return;
- }
-
- if ($included === strtolower($ownClass)) {
- $error = "You do not need to include \"%s\" from within the system's own actions file";
- $data = array($ownClass);
- $phpcsFile->addError($error, $stackPtr, 'NotRequired', $data);
- }
-
- }//end process()
-
-
- /**
- * Determines the included class name from given token.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param array $tokens The array of file tokens.
- * @param int $stackPtr The position in the tokens array of the
- * potentially included class.
- *
- * @return string
- */
- protected function getIncludedClassFromToken(
- $phpcsFile,
- array $tokens,
- $stackPtr
- ) {
-
- return false;
-
- }//end getIncludedClassFromToken()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php
deleted file mode 100644
index ee9330a4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php
+++ /dev/null
@@ -1,314 +0,0 @@
-<?php
-/**
- * Ensures that systems, asset types and libs are included before they are used.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Channels;
-
-use PHP_CodeSniffer\Sniffs\AbstractScopeSniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class IncludeSystemSniff extends AbstractScopeSniff
-{
-
- /**
- * A list of classes that don't need to be included.
- *
- * @var string[]
- */
- private $ignore = array(
- 'self' => true,
- 'static' => true,
- 'parent' => true,
- 'channels' => true,
- 'basesystem' => true,
- 'dal' => true,
- 'init' => true,
- 'pdo' => true,
- 'util' => true,
- 'ziparchive' => true,
- 'phpunit_framework_assert' => true,
- 'abstractmysourceunittest' => true,
- 'abstractdatacleanunittest' => true,
- 'exception' => true,
- 'abstractwidgetwidgettype' => true,
- 'domdocument' => true,
- );
-
-
- /**
- * Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
- */
- public function __construct()
- {
- parent::__construct(array(T_FUNCTION), array(T_DOUBLE_COLON, T_EXTENDS), true);
-
- }//end __construct()
-
-
- /**
- * Processes the function tokens within the class.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param integer $stackPtr The position where the token was found.
- * @param integer $currScope The current scope opener token.
- *
- * @return void
- */
- protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Determine the name of the class that the static function
- // is being called on.
- $classNameToken = $phpcsFile->findPrevious(
- T_WHITESPACE,
- ($stackPtr - 1),
- null,
- true
- );
-
- // Don't process class names represented by variables as this can be
- // an inexact science.
- if ($tokens[$classNameToken]['code'] === T_VARIABLE) {
- return;
- }
-
- $className = $tokens[$classNameToken]['content'];
- if (isset($this->ignore[strtolower($className)]) === true) {
- return;
- }
-
- $includedClasses = array();
-
- $fileName = strtolower($phpcsFile->getFilename());
- $matches = array();
- if (preg_match('|/systems/(.*)/([^/]+)?actions.inc$|', $fileName, $matches) !== 0) {
- // This is an actions file, which means we don't
- // have to include the system in which it exists.
- $includedClasses[$matches[2]] = true;
-
- // Or a system it implements.
- $class = $phpcsFile->getCondition($stackPtr, T_CLASS);
- $implements = $phpcsFile->findNext(T_IMPLEMENTS, $class, ($class + 10));
- if ($implements !== false) {
- $implementsClass = $phpcsFile->findNext(T_STRING, $implements);
- $implementsClassName = strtolower($tokens[$implementsClass]['content']);
- if (substr($implementsClassName, -7) === 'actions') {
- $includedClasses[substr($implementsClassName, 0, -7)] = true;
- }
- }
- }
-
- // Go searching for includeSystem and includeAsset calls within this
- // function, or the inclusion of .inc files, which
- // would be library files.
- for ($i = ($currScope + 1); $i < $stackPtr; $i++) {
- $name = $this->getIncludedClassFromToken($phpcsFile, $tokens, $i);
- if ($name !== false) {
- $includedClasses[$name] = true;
- // Special case for Widgets cause they are, well, special.
- } else if (strtolower($tokens[$i]['content']) === 'includewidget') {
- $typeName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($i + 1));
- $typeName = trim($tokens[$typeName]['content'], " '");
- $includedClasses[strtolower($typeName).'widgettype'] = true;
- }
- }
-
- // Now go searching for includeSystem, includeAsset or require/include
- // calls outside our scope. If we are in a class, look outside the
- // class. If we are not, look outside the function.
- $condPtr = $currScope;
- if ($phpcsFile->hasCondition($stackPtr, T_CLASS) === true) {
- foreach ($tokens[$stackPtr]['conditions'] as $condPtr => $condType) {
- if ($condType === T_CLASS) {
- break;
- }
- }
- }
-
- for ($i = 0; $i < $condPtr; $i++) {
- // Skip other scopes.
- if (isset($tokens[$i]['scope_closer']) === true) {
- $i = $tokens[$i]['scope_closer'];
- continue;
- }
-
- $name = $this->getIncludedClassFromToken($phpcsFile, $tokens, $i);
- if ($name !== false) {
- $includedClasses[$name] = true;
- }
- }
-
- // If we are in a testing class, we might have also included
- // some systems and classes in our setUp() method.
- $setupFunction = null;
- if ($phpcsFile->hasCondition($stackPtr, T_CLASS) === true) {
- foreach ($tokens[$stackPtr]['conditions'] as $condPtr => $condType) {
- if ($condType === T_CLASS) {
- // Is this is a testing class?
- $name = $phpcsFile->findNext(T_STRING, $condPtr);
- $name = $tokens[$name]['content'];
- if (substr($name, -8) === 'UnitTest') {
- // Look for a method called setUp().
- $end = $tokens[$condPtr]['scope_closer'];
- $function = $phpcsFile->findNext(T_FUNCTION, ($condPtr + 1), $end);
- while ($function !== false) {
- $name = $phpcsFile->findNext(T_STRING, $function);
- if ($tokens[$name]['content'] === 'setUp') {
- $setupFunction = $function;
- break;
- }
-
- $function = $phpcsFile->findNext(T_FUNCTION, ($function + 1), $end);
- }
- }
- }
- }//end foreach
- }//end if
-
- if ($setupFunction !== null) {
- $start = ($tokens[$setupFunction]['scope_opener'] + 1);
- $end = $tokens[$setupFunction]['scope_closer'];
- for ($i = $start; $i < $end; $i++) {
- $name = $this->getIncludedClassFromToken($phpcsFile, $tokens, $i);
- if ($name !== false) {
- $includedClasses[$name] = true;
- }
- }
- }//end if
-
- if (isset($includedClasses[strtolower($className)]) === false) {
- $error = 'Static method called on non-included class or system "%s"; include system with Channels::includeSystem() or include class with require_once';
- $data = array($className);
- $phpcsFile->addError($error, $stackPtr, 'NotIncludedCall', $data);
- }
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes a token within the scope that this test is listening to.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * this token was found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['code'] === T_EXTENDS) {
- // Find the class name.
- $classNameToken = $phpcsFile->findNext(T_STRING, ($stackPtr + 1));
- $className = $tokens[$classNameToken]['content'];
- } else {
- // Determine the name of the class that the static function
- // is being called on. But don't process class names represented by
- // variables as this can be an inexact science.
- $classNameToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$classNameToken]['code'] === T_VARIABLE) {
- return;
- }
-
- $className = $tokens[$classNameToken]['content'];
- }
-
- // Some systems are always available.
- if (isset($this->ignore[strtolower($className)]) === true) {
- return;
- }
-
- $includedClasses = array();
-
- $fileName = strtolower($phpcsFile->getFilename());
- $matches = array();
- if (preg_match('|/systems/([^/]+)/([^/]+)?actions.inc$|', $fileName, $matches) !== 0) {
- // This is an actions file, which means we don't
- // have to include the system in which it exists
- // We know the system from the path.
- $includedClasses[$matches[1]] = true;
- }
-
- // Go searching for includeSystem, includeAsset or require/include
- // calls outside our scope.
- for ($i = 0; $i < $stackPtr; $i++) {
- // Skip classes and functions as will we never get
- // into their scopes when including this file, although
- // we have a chance of getting into IF's, WHILE's etc.
- if (($tokens[$i]['code'] === T_CLASS
- || $tokens[$i]['code'] === T_INTERFACE
- || $tokens[$i]['code'] === T_FUNCTION)
- && isset($tokens[$i]['scope_closer']) === true
- ) {
- $i = $tokens[$i]['scope_closer'];
- continue;
- }
-
- $name = $this->getIncludedClassFromToken($phpcsFile, $tokens, $i);
- if ($name !== false) {
- $includedClasses[$name] = true;
- // Special case for Widgets cause they are, well, special.
- } else if (strtolower($tokens[$i]['content']) === 'includewidget') {
- $typeName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($i + 1));
- $typeName = trim($tokens[$typeName]['content'], " '");
- $includedClasses[strtolower($typeName).'widgettype'] = true;
- }
- }//end for
-
- if (isset($includedClasses[strtolower($className)]) === false) {
- if ($tokens[$stackPtr]['code'] === T_EXTENDS) {
- $error = 'Class extends non-included class or system "%s"; include system with Channels::includeSystem() or include class with require_once';
- $data = array($className);
- $phpcsFile->addError($error, $stackPtr, 'NotIncludedExtends', $data);
- } else {
- $error = 'Static method called on non-included class or system "%s"; include system with Channels::includeSystem() or include class with require_once';
- $data = array($className);
- $phpcsFile->addError($error, $stackPtr, 'NotIncludedCall', $data);
- }
- }
-
- }//end processTokenOutsideScope()
-
-
- /**
- * Determines the included class name from given token.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param array $tokens The array of file tokens.
- * @param int $stackPtr The position in the tokens array of the
- * potentially included class.
- *
- * @return string
- */
- protected function getIncludedClassFromToken(File $phpcsFile, array $tokens, $stackPtr)
- {
- if (strtolower($tokens[$stackPtr]['content']) === 'includesystem') {
- $systemName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($stackPtr + 1));
- $systemName = trim($tokens[$systemName]['content'], " '");
- return strtolower($systemName);
- } else if (strtolower($tokens[$stackPtr]['content']) === 'includeasset') {
- $typeName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($stackPtr + 1));
- $typeName = trim($tokens[$typeName]['content'], " '");
- return strtolower($typeName).'assettype';
- } else if (isset(Tokens::$includeTokens[$tokens[$stackPtr]['code']]) === true) {
- $filePath = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($stackPtr + 1));
- $filePath = $tokens[$filePath]['content'];
- $filePath = trim($filePath, " '");
- $filePath = basename($filePath, '.inc');
- return strtolower($filePath);
- }
-
- return false;
-
- }//end getIncludedClassFromToken()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/UnusedSystemSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/UnusedSystemSniff.php
deleted file mode 100644
index 75161efa..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Channels/UnusedSystemSniff.php
+++ /dev/null
@@ -1,141 +0,0 @@
-<?php
-/**
- * Ensures that systems and asset types are used if they are included.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Channels;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class UnusedSystemSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_DOUBLE_COLON);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Check if this is a call to includeSystem, includeAsset or includeWidget.
- $methodName = strtolower($tokens[($stackPtr + 1)]['content']);
- if ($methodName === 'includesystem'
- || $methodName === 'includeasset'
- || $methodName === 'includewidget'
- ) {
- $systemName = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 3), null, true);
- if ($systemName === false || $tokens[$systemName]['code'] !== T_CONSTANT_ENCAPSED_STRING) {
- // Must be using a variable instead of a specific system name.
- // We can't accurately check that.
- return;
- }
-
- $systemName = trim($tokens[$systemName]['content'], " '");
- } else {
- return;
- }
-
- if ($methodName === 'includeasset') {
- $systemName .= 'assettype';
- } else if ($methodName === 'includewidget') {
- $systemName .= 'widgettype';
- }
-
- $systemName = strtolower($systemName);
-
- // Now check if this system is used anywhere in this scope.
- $level = $tokens[$stackPtr]['level'];
- for ($i = ($stackPtr + 1); $i < $phpcsFile->numTokens; $i++) {
- if ($tokens[$i]['level'] < $level) {
- // We have gone out of scope.
- // If the original include was inside an IF statement that
- // is checking if the system exists, check the outer scope
- // as well.
- if ($tokens[$stackPtr]['level'] === $level) {
- // We are still in the base level, so this is the first
- // time we have got here.
- $conditions = array_keys($tokens[$stackPtr]['conditions']);
- if (empty($conditions) === false) {
- $cond = array_pop($conditions);
- if ($tokens[$cond]['code'] === T_IF) {
- $i = $tokens[$cond]['scope_closer'];
- $level--;
- continue;
- }
- }
- }
-
- break;
- }//end if
-
- if ($tokens[$i]['code'] !== T_DOUBLE_COLON
- && $tokens[$i]['code'] !== T_EXTENDS
- && $tokens[$i]['code'] !== T_IMPLEMENTS
- ) {
- continue;
- }
-
- switch ($tokens[$i]['code']) {
- case T_DOUBLE_COLON:
- $usedName = strtolower($tokens[($i - 1)]['content']);
- if ($usedName === $systemName) {
- // The included system was used, so it is fine.
- return;
- }
- break;
- case T_EXTENDS:
- $classNameToken = $phpcsFile->findNext(T_STRING, ($i + 1));
- $className = strtolower($tokens[$classNameToken]['content']);
- if ($className === $systemName) {
- // The included system was used, so it is fine.
- return;
- }
- break;
- case T_IMPLEMENTS:
- $endImplements = $phpcsFile->findNext(array(T_EXTENDS, T_OPEN_CURLY_BRACKET), ($i + 1));
- for ($x = ($i + 1); $x < $endImplements; $x++) {
- if ($tokens[$x]['code'] === T_STRING) {
- $className = strtolower($tokens[$x]['content']);
- if ($className === $systemName) {
- // The included system was used, so it is fine.
- return;
- }
- }
- }
- break;
- }//end switch
- }//end for
-
- // If we get to here, the system was not use.
- $error = 'Included system "%s" is never used';
- $data = array($systemName);
- $phpcsFile->addError($error, $stackPtr, 'Found', $data);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php
deleted file mode 100644
index 5d27ca27..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Commenting/FunctionCommentSniff.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/**
- * Parses and verifies the doc comments for functions.
- *
- * Same as the Squiz standard, but adds support for API tags.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FunctionCommentSniff as SquizFunctionCommentSniff;
-use PHP_CodeSniffer\Util\Tokens;
-use PHP_CodeSniffer\Files\File;
-
-class FunctionCommentSniff extends SquizFunctionCommentSniff
-{
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- parent::process($phpcsFile, $stackPtr);
-
- $tokens = $phpcsFile->getTokens();
- $find = Tokens::$methodPrefixes;
- $find[] = T_WHITESPACE;
-
- $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true);
- if ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG) {
- return;
- }
-
- $commentStart = $tokens[$commentEnd]['comment_opener'];
- $hasApiTag = false;
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- if ($tokens[$tag]['content'] === '@api') {
- if ($hasApiTag === true) {
- // We've come across an API tag already, which means
- // we were not the first tag in the API list.
- $error = 'The @api tag must come first in the @api tag list in a function comment';
- $phpcsFile->addError($error, $tag, 'ApiNotFirst');
- }
-
- $hasApiTag = true;
-
- // There needs to be a blank line before the @api tag.
- $prev = $phpcsFile->findPrevious(array(T_DOC_COMMENT_STRING, T_DOC_COMMENT_TAG), ($tag - 1));
- if ($tokens[$prev]['line'] !== ($tokens[$tag]['line'] - 2)) {
- $error = 'There must be one blank line before the @api tag in a function comment';
- $phpcsFile->addError($error, $tag, 'ApiSpacing');
- }
- } else if (substr($tokens[$tag]['content'], 0, 5) === '@api-') {
- $hasApiTag = true;
-
- $prev = $phpcsFile->findPrevious(array(T_DOC_COMMENT_STRING, T_DOC_COMMENT_TAG), ($tag - 1));
- if ($tokens[$prev]['line'] !== ($tokens[$tag]['line'] - 1)) {
- $error = 'There must be no blank line before the @%s tag in a function comment';
- $data = array($tokens[$tag]['content']);
- $phpcsFile->addError($error, $tag, 'ApiTagSpacing', $data);
- }
- }//end if
- }//end foreach
-
- if ($hasApiTag === true && substr($tokens[$tag]['content'], 0, 4) !== '@api') {
- // API tags must be the last tags in a function comment.
- $error = 'The @api tags must be the last tags in a function comment';
- $phpcsFile->addError($error, $commentEnd, 'ApiNotLast');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/DebugCodeSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/DebugCodeSniff.php
deleted file mode 100644
index ff9d4363..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/DebugCodeSniff.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Warns about the use of debug code.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Debug;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DebugCodeSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_DOUBLE_COLON);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $className = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if (strtolower($tokens[$className]['content']) === 'debug') {
- $method = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- $error = 'Call to debug function Debug::%s() must be removed';
- $data = array($tokens[$method]['content']);
- $phpcsFile->addError($error, $stackPtr, 'Found', $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/FirebugConsoleSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/FirebugConsoleSniff.php
deleted file mode 100644
index 740040e5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Debug/FirebugConsoleSniff.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/**
- * Ensures that console is not used for function or var names.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Debug;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class FirebugConsoleSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_STRING,
- T_PROPERTY,
- T_LABEL,
- T_OBJECT,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (strtolower($tokens[$stackPtr]['content']) === 'console') {
- $error = 'Variables, functions and labels must not be named "console"; name may conflict with Firebug internal variable';
- $phpcsFile->addError($error, $stackPtr, 'ConflictFound');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php
deleted file mode 100644
index c7d34bf0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-/**
- * Ensures this is not assigned to any other var but self.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Objects;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class AssignThisSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_THIS);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Ignore this.something and other uses of "this" that are not
- // direct assignments.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$next]['code'] !== T_SEMICOLON) {
- if ($tokens[$next]['line'] === $tokens[$stackPtr]['line']) {
- return;
- }
- }
-
- // Something must be assigned to "this".
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] !== T_EQUAL) {
- return;
- }
-
- // A variable needs to be assigned to "this".
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($prev - 1), null, true);
- if ($tokens[$prev]['code'] !== T_STRING) {
- return;
- }
-
- // We can only assign "this" to a var called "self".
- if ($tokens[$prev]['content'] !== 'self' && $tokens[$prev]['content'] !== '_self') {
- $error = 'Keyword "this" can only be assigned to a variable called "self" or "_self"';
- $phpcsFile->addError($error, $prev, 'NotSelf');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php
deleted file mode 100644
index 90a68136..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php
+++ /dev/null
@@ -1,217 +0,0 @@
-<?php
-/**
- * Ensures the create() method of widget types properly uses callbacks.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Objects;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class CreateWidgetTypeCallbackSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OBJECT);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $className = $phpcsFile->findPrevious(T_STRING, ($stackPtr - 1));
- if (substr(strtolower($tokens[$className]['content']), -10) !== 'widgettype') {
- return;
- }
-
- // Search for a create method.
- $create = $phpcsFile->findNext(T_PROPERTY, $stackPtr, $tokens[$stackPtr]['bracket_closer'], null, 'create');
- if ($create === false) {
- return;
- }
-
- $function = $phpcsFile->findNext(array(T_WHITESPACE, T_COLON), ($create + 1), null, true);
- if ($tokens[$function]['code'] !== T_FUNCTION
- && $tokens[$function]['code'] !== T_CLOSURE
- ) {
- return;
- }
-
- $start = ($tokens[$function]['scope_opener'] + 1);
- $end = ($tokens[$function]['scope_closer'] - 1);
-
- // Check that the first argument is called "callback".
- $arg = $phpcsFile->findNext(T_WHITESPACE, ($tokens[$function]['parenthesis_opener'] + 1), null, true);
- if ($tokens[$arg]['content'] !== 'callback') {
- $error = 'The first argument of the create() method of a widget type must be called "callback"';
- $phpcsFile->addError($error, $arg, 'FirstArgNotCallback');
- }
-
- /*
- Look for return statements within the function. They cannot return
- anything and must be preceded by the callback.call() line. The
- callback itself must contain "self" or "this" as the first argument
- and there needs to be a call to the callback function somewhere
- in the create method. All calls to the callback function must be
- followed by a return statement or the end of the method.
- */
-
- $foundCallback = false;
- $passedCallback = false;
- $nestedFunction = null;
- for ($i = $start; $i <= $end; $i++) {
- // Keep track of nested functions.
- if ($nestedFunction !== null) {
- if ($i === $nestedFunction) {
- $nestedFunction = null;
- continue;
- }
- } else if (($tokens[$i]['code'] === T_FUNCTION
- || $tokens[$i]['code'] === T_CLOSURE)
- && isset($tokens[$i]['scope_closer']) === true
- ) {
- $nestedFunction = $tokens[$i]['scope_closer'];
- continue;
- }
-
- if ($nestedFunction === null && $tokens[$i]['code'] === T_RETURN) {
- // Make sure return statements are not returning anything.
- if ($tokens[($i + 1)]['code'] !== T_SEMICOLON) {
- $error = 'The create() method of a widget type must not return a value';
- $phpcsFile->addError($error, $i, 'ReturnValue');
- }
-
- continue;
- } else if ($tokens[$i]['code'] !== T_STRING
- || $tokens[$i]['content'] !== 'callback'
- ) {
- continue;
- }
-
- // If this is the form "callback.call(" then it is a call
- // to the callback function.
- if ($tokens[($i + 1)]['code'] !== T_OBJECT_OPERATOR
- || $tokens[($i + 2)]['content'] !== 'call'
- || $tokens[($i + 3)]['code'] !== T_OPEN_PARENTHESIS
- ) {
- // One last chance; this might be the callback function
- // being passed to another function, like this
- // "this.init(something, callback, something)".
- if (isset($tokens[$i]['nested_parenthesis']) === false) {
- continue;
- }
-
- // Just make sure those brackets dont belong to anyone,
- // like an IF or FOR statement.
- foreach ($tokens[$i]['nested_parenthesis'] as $bracket) {
- if (isset($tokens[$bracket]['parenthesis_owner']) === true) {
- continue(2);
- }
- }
-
- // Note that we use this endBracket down further when checking
- // for a RETURN statement.
- $endBracket = end($tokens[$i]['nested_parenthesis']);
- $bracket = key($tokens[$i]['nested_parenthesis']);
-
- $prev = $phpcsFile->findPrevious(
- Tokens::$emptyTokens,
- ($bracket - 1),
- null,
- true
- );
-
- if ($tokens[$prev]['code'] !== T_STRING) {
- // This is not a function passing the callback.
- continue;
- }
-
- $passedCallback = true;
- }//end if
-
- $foundCallback = true;
-
- if ($passedCallback === false) {
- // The first argument must be "this" or "self".
- $arg = $phpcsFile->findNext(T_WHITESPACE, ($i + 4), null, true);
- if ($tokens[$arg]['content'] !== 'this'
- && $tokens[$arg]['content'] !== 'self'
- ) {
- $error = 'The first argument passed to the callback function must be "this" or "self"';
- $phpcsFile->addError($error, $arg, 'FirstArgNotSelf');
- }
- }
-
- // Now it must be followed by a return statement or the end of the function.
- if ($passedCallback === false) {
- $endBracket = $tokens[($i + 3)]['parenthesis_closer'];
- }
-
- for ($next = $endBracket; $next <= $end; $next++) {
- // Skip whitespace so we find the next content after the call.
- if (isset(Tokens::$emptyTokens[$tokens[$next]['code']]) === true) {
- continue;
- }
-
- // Skip closing braces like END IF because it is not executable code.
- if ($tokens[$next]['code'] === T_CLOSE_CURLY_BRACKET) {
- continue;
- }
-
- // We don't care about anything on the current line, like a
- // semicolon. It doesn't matter if there are other statements on the
- // line because another sniff will check for those.
- if ($tokens[$next]['line'] === $tokens[$endBracket]['line']) {
- continue;
- }
-
- break;
- }
-
- if ($next !== $tokens[$function]['scope_closer']
- && $tokens[$next]['code'] !== T_RETURN
- ) {
- $error = 'The call to the callback function must be followed by a return statement if it is not the last statement in the create() method';
- $phpcsFile->addError($error, $i, 'NoReturn');
- }
- }//end for
-
- if ($foundCallback === false) {
- $error = 'The create() method of a widget type must call the callback function';
- $phpcsFile->addError($error, $create, 'CallbackNotCalled');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/DisallowNewWidgetSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/DisallowNewWidgetSniff.php
deleted file mode 100644
index 18dacedf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/DisallowNewWidgetSniff.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * Ensures that widgets are not manually created.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Objects;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowNewWidgetSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_NEW);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $className = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$className]['code'] !== T_STRING) {
- return;
- }
-
- if (substr(strtolower($tokens[$className]['content']), -10) === 'widgettype') {
- $widgetType = substr($tokens[$className]['content'], 0, -10);
- $error = 'Manual creation of widget objects is banned; use Widget::getWidget(\'%s\'); instead';
- $data = array($widgetType);
- $phpcsFile->addError($error, $stackPtr, 'Found', $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php
deleted file mode 100644
index 8959a7d6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-/**
- * Ensures that values submitted via JS are not compared to NULL.
- *
- * With jQuery 1.8, the behavior of ajax requests changed so that null values are
- * submitted as null= instead of null=null.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class AjaxNullComparisonSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_FUNCTION);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Make sure it is an API function. We know this by the doc comment.
- $commentEnd = $phpcsFile->findPrevious(T_DOC_COMMENT_CLOSE_TAG, $stackPtr);
- $commentStart = $phpcsFile->findPrevious(T_DOC_COMMENT_OPEN_TAG, ($commentEnd - 1));
- $comment = $phpcsFile->getTokensAsString($commentStart, ($commentEnd - $commentStart));
- if (strpos($comment, '* @api') === false) {
- return;
- }
-
- // Find all the vars passed in as we are only interested in comparisons
- // to NULL for these specific variables.
- $foundVars = array();
- $open = $tokens[$stackPtr]['parenthesis_opener'];
- $close = $tokens[$stackPtr]['parenthesis_closer'];
- for ($i = ($open + 1); $i < $close; $i++) {
- if ($tokens[$i]['code'] === T_VARIABLE) {
- $foundVars[$tokens[$i]['content']] = true;
- }
- }
-
- if (empty($foundVars) === true) {
- return;
- }
-
- $start = $tokens[$stackPtr]['scope_opener'];
- $end = $tokens[$stackPtr]['scope_closer'];
- for ($i = ($start + 1); $i < $end; $i++) {
- if ($tokens[$i]['code'] !== T_VARIABLE
- || isset($foundVars[$tokens[$i]['content']]) === false
- ) {
- continue;
- }
-
- $operator = $phpcsFile->findNext(T_WHITESPACE, ($i + 1), null, true);
- if ($tokens[$operator]['code'] !== T_IS_IDENTICAL
- && $tokens[$operator]['code'] !== T_IS_NOT_IDENTICAL
- ) {
- continue;
- }
-
- $nullValue = $phpcsFile->findNext(T_WHITESPACE, ($operator + 1), null, true);
- if ($tokens[$nullValue]['code'] !== T_NULL) {
- continue;
- }
-
- $error = 'Values submitted via Ajax requests should not be compared directly to NULL; use empty() instead';
- $phpcsFile->addWarning($error, $nullValue, 'Found');
- }//end for
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/EvalObjectFactorySniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/EvalObjectFactorySniff.php
deleted file mode 100644
index 59e7fa2b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/EvalObjectFactorySniff.php
+++ /dev/null
@@ -1,114 +0,0 @@
-<?php
-/**
- * Ensures that eval() is not used to create objects.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class EvalObjectFactorySniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_EVAL);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- /*
- We need to find all strings that will be in the eval
- to determine if the "new" keyword is being used.
- */
-
- $openBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($stackPtr + 1));
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
-
- $strings = array();
- $vars = array();
-
- for ($i = ($openBracket + 1); $i < $closeBracket; $i++) {
- if (isset(Tokens::$stringTokens[$tokens[$i]['code']]) === true) {
- $strings[$i] = $tokens[$i]['content'];
- } else if ($tokens[$i]['code'] === T_VARIABLE) {
- $vars[$i] = $tokens[$i]['content'];
- }
- }
-
- /*
- We now have some variables that we need to expand into
- the strings that were assigned to them, if any.
- */
-
- foreach ($vars as $varPtr => $varName) {
- while (($prev = $phpcsFile->findPrevious(T_VARIABLE, ($varPtr - 1))) !== false) {
- // Make sure this is an assignment of the variable. That means
- // it will be the first thing on the line.
- $prevContent = $phpcsFile->findPrevious(T_WHITESPACE, ($prev - 1), null, true);
- if ($tokens[$prevContent]['line'] === $tokens[$prev]['line']) {
- $varPtr = $prevContent;
- continue;
- }
-
- if ($tokens[$prev]['content'] !== $varName) {
- // This variable has a different name.
- $varPtr = $prevContent;
- continue;
- }
-
- // We found one.
- break;
- }//end while
-
- if ($prev !== false) {
- // Find all strings on the line.
- $lineEnd = $phpcsFile->findNext(T_SEMICOLON, ($prev + 1));
- for ($i = ($prev + 1); $i < $lineEnd; $i++) {
- if (isset(Tokens::$stringTokens[$tokens[$i]['code']]) === true) {
- $strings[$i] = $tokens[$i]['content'];
- }
- }
- }
- }//end foreach
-
- foreach ($strings as $string) {
- // If the string has "new" in it, it is not allowed.
- // We don't bother checking if the word "new" is echo'd
- // because that is unlikely to happen. We assume the use
- // of "new" is for object instantiation.
- if (strstr($string, ' new ') !== false) {
- $error = 'Do not use eval() to create objects dynamically; use reflection instead';
- $phpcsFile->addWarning($error, $stackPtr, 'Found');
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/GetRequestDataSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/GetRequestDataSniff.php
deleted file mode 100644
index 91d217ce..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/GetRequestDataSniff.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-/**
- * Ensures that getRequestData() is used to access super globals.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class GetRequestDataSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_VARIABLE);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $varName = $tokens[$stackPtr]['content'];
- if ($varName !== '$_REQUEST'
- && $varName !== '$_GET'
- && $varName !== '$_POST'
- && $varName !== '$_FILES'
- ) {
- return;
- }
-
- // The only place these super globals can be accessed directly is
- // in the getRequestData() method of the Security class.
- $inClass = false;
- foreach ($tokens[$stackPtr]['conditions'] as $i => $type) {
- if ($tokens[$i]['code'] === T_CLASS) {
- $className = $phpcsFile->findNext(T_STRING, $i);
- $className = $tokens[$className]['content'];
- if (strtolower($className) === 'security') {
- $inClass = true;
- } else {
- // We don't have nested classes.
- break;
- }
- } else if ($inClass === true && $tokens[$i]['code'] === T_FUNCTION) {
- $funcName = $phpcsFile->findNext(T_STRING, $i);
- $funcName = $tokens[$funcName]['content'];
- if (strtolower($funcName) === 'getrequestdata') {
- // This is valid.
- return;
- } else {
- // We don't have nested functions.
- break;
- }
- }//end if
- }//end foreach
-
- // If we get to here, the super global was used incorrectly.
- // First find out how it is being used.
- $globalName = strtolower(substr($varName, 2));
- $usedVar = '';
-
- $openBracket = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$openBracket]['code'] === T_OPEN_SQUARE_BRACKET) {
- $closeBracket = $tokens[$openBracket]['bracket_closer'];
- $usedVar = $phpcsFile->getTokensAsString(($openBracket + 1), ($closeBracket - $openBracket - 1));
- }
-
- $type = 'SuperglobalAccessed';
- $error = 'The %s super global must not be accessed directly; use Security::getRequestData(';
- $data = array($varName);
- if ($usedVar !== '') {
- $type .= 'WithVar';
- $error .= '%s, \'%s\'';
- $data[] = $usedVar;
- $data[] = $globalName;
- }
-
- $error .= ') instead';
- $phpcsFile->addError($error, $stackPtr, $type, $data);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/ReturnFunctionValueSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/ReturnFunctionValueSniff.php
deleted file mode 100644
index c07ae1ad..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/ReturnFunctionValueSniff.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/**
- * Warns when function values are returned directly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ReturnFunctionValueSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_RETURN);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $functionName = $phpcsFile->findNext(T_STRING, ($stackPtr + 1), null, false, null, true);
-
- while ($functionName !== false) {
- // Check if this is really a function.
- $bracket = $phpcsFile->findNext(T_WHITESPACE, ($functionName + 1), null, true);
- if ($tokens[$bracket]['code'] !== T_OPEN_PARENTHESIS) {
- // Not a function call.
- $functionName = $phpcsFile->findNext(T_STRING, ($functionName + 1), null, false, null, true);
- continue;
- }
-
- $error = 'The result of a function call should be assigned to a variable before being returned';
- $phpcsFile->addWarning($error, $stackPtr, 'NotAssigned');
- break;
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Strings/JoinStringsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Strings/JoinStringsSniff.php
deleted file mode 100644
index b21e9b2b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Strings/JoinStringsSniff.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-/**
- * Ensures that strings are not joined using array.join().
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Sniffs\Strings;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class JoinStringsSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_STRING);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param integer $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['content'] !== 'join') {
- return;
- }
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] !== T_OBJECT_OPERATOR) {
- return;
- }
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($prev - 1), null, true);
- if ($tokens[$prev]['code'] === T_CLOSE_SQUARE_BRACKET) {
- $opener = $tokens[$prev]['bracket_opener'];
- if ($tokens[($opener - 1)]['code'] !== T_STRING) {
- // This means the array is declared inline, like x = [a,b,c].join()
- // and not elsewhere, like x = y[a].join()
- // The first is not allowed while the second is.
- $error = 'Joining strings using inline arrays is not allowed; use the + operator instead';
- $phpcsFile->addError($error, $stackPtr, 'ArrayNotAllowed');
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.css
deleted file mode 100644
index 339ee154..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.SettingsTabPaneWidgetType-tab-mid {
- background: transparent url(tab_inact_mid.png) repeat-x;
- line-height: -25px;
- cursor: pointer;
- -moz-user-select: none;
-}
-
-.AssetLineageWidgetType-item {
- float: left;
- list-style: none;
- height: 22px;
- cursor: pointer;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php
deleted file mode 100644
index 6ac2b04d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/CSS/BrowserSpecificStylesUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the BrowserSpecificStyles sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class BrowserSpecificStylesUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(5 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc
deleted file mode 100644
index 95fd04b7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-class SomethingActions
-{
-
- private static function _x()
- {
- }
-
-
- public static function y()
- {
- self::z();
- static::z();
- SomethingActions::z();
- static::_x();
- self::a();
- static::a();
- }
-
-
- public static function z()
- {
- }
-
- protected static function a()
- {
- self::a(); // recursion, yay!
- self::z();
- static::y();
- self::b();
- echo self::$_myVar;
- echo static::$yourVar;
- }
-}
-
-abstract class AbstractEditingScreenModeWidgetActions extends AbstractEditingModeWidgetActions {
-
- public static function getScreens($systemName)
- {
-
- }//end getScreens()
-
- public static function setHelpScreenTitle()
- {
- // This is allowed because we are in an abstract class.
- $screens = self::getScreens('');
-
- }//end setHelpScreenTitle()
-
-}//end class
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php
deleted file mode 100644
index 15a96fcf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowSelfActions sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\Channels;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowSelfActionsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 12 => 1,
- 13 => 1,
- 28 => 1,
- 29 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.inc
deleted file mode 100644
index ccb0273e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.inc
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php
-Channels::includeSystem('MySystem');
-Channels::includeAsset('Page');
-require_once 'libs/FileSystem2.inc';
-
-function one() {
- Channels::includeSystem('MySystem2');
- $siteid = MySystem2::getCurrentSiteId();
- Page::create();
- PageAssetType::create();
-}
-
-function two() {
- $siteid = MySystem2::getCurrentSiteId();
- $parserFiles = FileSystem2::listDirectory();
-}
-
-function three() {
- include 'libs/FileSystem.inc';
- $siteid = MySystem::getCurrentSiteId();
- $parserFiles = FileSystem::listDirectory();
-}
-
-$siteid = MySystem2::getCurrentSiteId();
-$parserFiles = FileSystem2::listDirectory();
-$siteid = MySystem::getCurrentSiteId();
-$parserFiles = FileSystem::listDirectory();
-Page::create();
-PageAssetType::create();
-
-class AssetListingAssetType extends AssetAssetType
-{
- function one() {
- Channels::includeSystem('MySystem2');
- $siteid = MySystem2::getCurrentSiteId();
- Page::create();
- PageAssetType::create();
- }
-
- function two() {
- $siteid = MySystem2::getCurrentSiteId();
- $parserFiles = FileSystem2::listDirectory();
- return parent::two();
- }
-
- function three() {
- include 'libs/FileSystem.inc';
- $siteid = MySystem::getCurrentSiteId();
- $parserFiles = FileSystem::listDirectory();
- echo self::two();
- echo static::two();
- }
-}
-
-echo Init::ROOT_DIR;
-
-Channels::includeSystem('AssetType');
-AssetType::includeAsset('User');
-AssetType::includeAsset('FolderAsset');
-UserAssetType::create();
-FolderAssetType::create();
-$query->fetch(PDO::FETCH_NUM)
-BaseSystem::getDataDir();
-Util::getArrayIndex(array(), '');
-
-
-Channels::includeSystem('Widget');
-Widget::includeWidget('AbstractContainer');
-class MyWidget extends AbstractContainerWidgetType {}
-class MyOtherWidget extends BookWidgetType {}
-
-$zip = new ZipArchive();
-$res = $zip->open($path, ZipArchive::CREATE);
-
-class AssetListingUnitTest extends AbstractMySourceUnitTest
-{
- function setUp() {
- parent::setUp();
- Channels::includeSystem('MySystem2');
- include_once 'Libs/FileSystem.inc';
- }
-
- function two() {
- $siteid = MySystem2::getCurrentSiteId();
- $parserFiles = FileSystem::listDirectory();
- }
-
- function three() {
- $siteid = MySystem3::getCurrentSiteId();
- $parserFiles = FileSystem::listDirectory();
- }
-}
-
-if (Channels::systemExists('Log') === TRUE) {
- Channels::includeSystem('Log');
-} else {
- return;
-}
-
-Log::addProjectLog('metadata.field.update', $msg);
-
-function two() {
- Widget::includeWidget('CacheAdminScreen');
- $barChart = CacheAdminScreenWidgetType::constructBarchart($data);
-}
-
-$adjustDialog->setOrientation(AbstractWidgetWidgetType::CENTER);
-
-$className = 'SquizPerspective'.ucfirst($property['type']).'PropertyType';
-Channels::includeSystem($className);
-$className::setValue($assetid, $propertyid, $perspectives, $value, (array) $property['settings']);
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php
deleted file mode 100644
index 033d31ab..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/IncludeSystemUnitTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * Unit test class for the IncludeSystem sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\Channels;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class IncludeSystemUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 9 => 1,
- 14 => 1,
- 24 => 1,
- 27 => 1,
- 28 => 1,
- 31 => 1,
- 36 => 1,
- 41 => 1,
- 61 => 1,
- 70 => 1,
- 89 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.inc
deleted file mode 100644
index c7bd4738..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.inc
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-Channels::includeSystem('OurSystem');
-Channels::includeSystem('Page');
-Channels::includeAsset('Page2');
-Channels::includeAsset('Folder');
-
-function one() {
- Channels::includeSystem('MySystem');
- $siteid = MySystem2::getCurrentSiteId();
- Page::create();
- PageAssetType::create();
-}
-
-function two() {
- Page2AssetType::create();
- Folder::getFolder();
-}
-
-Channels::includeAsset('Asset');
-class AssetListingAssetType extends AssetAssetType
-{
- function one() {
- Channels::includeSystem('MySystem2');
- Channels::includeSystem('Page2');
- $siteid = MySystem2::getCurrentSiteId();
- }
-
- function two() {
- $siteid = Page2::getCurrentSiteId();
- }
-}
-
-Channels::includeSystem('Log');
-Channels::includeSystem('Log4');
-class MyLog implements Dog, Log extends LogMe {}
-
-Channels::includeSystem('Log1');
-class MyLog implements Dog, Log1 extends LogMe {}
-
-class MyLog implements Log2 {}
-
-Channels::includeSystem('Log3');
-class MyLog implements Log3 {}
-
-if (self::systemExists($systemName) === FALSE) {
- return $actions;
-} else {
- // Shouldn't throw an error because we don't know the system name.
- self::includeSystem($systemName);
- self::includeSystem($systemNames['log']);
-}
-
-Channels::includeSystem('Widget');
-Widget::includeWidget('AbstractContainer');
-class MyOtherWidget extends BookWidgetType {}
-
-function myFunction()
-{
- if (Channels::systemExists('Log5') === TRUE) {
- Channels::includeSystem('Log5');
- } else {
- return;
- }
-
- Log5::addProjectLog('metadata.field.update', $msg);
-}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php
deleted file mode 100644
index aa8c4192..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Channels/UnusedSystemUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the UnusedSystem sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\Channels;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class UnusedSystemUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 5 => 1,
- 8 => 1,
- 24 => 1,
- 34 => 1,
- 54 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.inc
deleted file mode 100644
index 19d5c5d4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.inc
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-/**
- * Short content.
- *
- * @return void
- *
- * @api read
- * @api-privilege asset.read.content
- * @api-mustlock false
- */
-private function functionCall() {}
-
-/**
- * Short content.
- *
- * @return void
- *
- * @api read
- */
-private function functionCall() {}
-
-/**
- * Short content.
- *
- * @api read
- *
- * @return void
- */
-private function functionCall() {}
-
-/**
- * Short content.
- *
- * @return void
- *
- * @api-privilege asset.read.content
- * @api read
- * @api-mustlock false
- */
-private function functionCall() {}
-
-/**
- * Short content.
- *
- * @return void
- *
- * @api read
- *
- * @api-privilege asset.read.content
- * @api-mustlock false
- */
-private function functionCall() {}
-
-/**
- * Short content.
- *
- * @return void
- * @api read
- */
-private function functionCall() {}
-
-/**
- * Test unknown tags.
- *
- * @return void
- * @since read
- * @hello hello
- * @package Test
- */
-private function functionCall() {}
-
-/**
- * Short content.
- *
- * @return void
- *
- * @api read
- * @api-privilege asset.read.content
- * @api-mustlock false
- */
-private function functionCall() {}
-
-/**
- * Short content.
- *
- * @return void
- *
- * @api read
- * @api-mustlock false
- */
-private function functionCall() {}
-
-/**
- * Short content.
- *
- * @return void
- *
- * @api read
- */
-private function functionCall() {}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php
deleted file mode 100644
index 6d2ea09b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Commenting/FunctionCommentUnitTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 28 => 1,
- 36 => 1,
- 37 => 2,
- 49 => 1,
- 58 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.inc
deleted file mode 100644
index 34901610..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-Debug::bam('test');
-Debug::minbam($variable);
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php
deleted file mode 100644
index 77d1066d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/DebugCodeUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the DebugCode sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\Debug;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DebugCodeUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 3 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.js
deleted file mode 100644
index d5e3df57..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.js
+++ /dev/null
@@ -1,8 +0,0 @@
-console.info();
-console.warn();
-console.test();
-con.sole();
-var console = {
- console: 'string';
-};
-function console() {} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php
deleted file mode 100644
index 1cd41025..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * Unit test class for the FirebugConsole sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\Debug;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FirebugConsoleUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='FirebugConsoleUnitTest.js')
- {
- if ($testFile !== 'FirebugConsoleUnitTest.js') {
- return array();
- }
-
- return array(
- 1 => 1,
- 2 => 1,
- 3 => 1,
- 5 => 1,
- 6 => 1,
- 8 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.js
deleted file mode 100644
index 747a1008..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var self = this;
-buttonWidget.addClickEvent(function() {
- self.addDynamicSouce();
-});
-
-var x = self;
-var y = this;
-
-var test = '';
-if (true) {
- test = this
-}
-
-var itemid = this.items[i].getAttribute('itemid');
-
-for (var x = this; y < 10; y++) {
- var x = this + 1;
-}
-
-var _self = this; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php
deleted file mode 100644
index cc6fff18..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/AssignThisUnitTest.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Unit test class for the AssignThis sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\Objects;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class AssignThisUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='AssignThisUnitTest.js')
- {
- if ($testFile !== 'AssignThisUnitTest.js') {
- return array();
- }
-
- return array(
- 7 => 1,
- 11 => 1,
- 16 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.js
deleted file mode 100644
index 791ff2be..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.js
+++ /dev/null
@@ -1,186 +0,0 @@
-SampleWidgetType.prototype = {
-
- create: function(callback)
- {
- if (x === 1) {
- return;
- }
-
- if (y === 1) {
- callback.call(this);
- // A comment here to explain the return is okay.
- return;
- }
-
- if (a === 1) {
- // Cant return value even after calling callback.
- callback.call(this);
- return something;
- }
-
- if (a === 1) {
- // Need to pass self or this to callback function.
- callback.call(a);
- }
-
- callback.call(self);
-
- var self = this;
- this.createChildren(null, function() {
- callback.call(self, div);
- });
-
- // Never good to return a vaue.
- return something;
-
- callback.call(self);
- }
-
-};
-
-AnotherSampleWidgetType.prototype = {
-
- create: function(input)
- {
- return;
- }
-
- getSomething: function(input)
- {
- return 1;
- }
-
-};
-
-
-NoCreateWidgetType.prototype = {
-
- getSomething: function(input)
- {
- return;
- }
-
-};
-
-
-SomeRandom.prototype = {
-
- create: function(input)
- {
- return;
- }
-
-};
-
-SampleWidgetType.prototype = {
-
- create: function(callback)
- {
- if (a === 1) {
- // This is ok because it is the last statement,
- // even though it is conditional.
- callback.call(self);
- }
-
- }
-
-};
-
-SampleWidgetType.prototype = {
-
- create: function(callback)
- {
- var something = callback;
-
- }
-
-};
-
-SampleWidgetType.prototype = {
-
- create: function(callback)
- {
- // Also valid because we are passing the callback to
- // someone else to call.
- if (y === 1) {
- this.something(callback);
- return;
- }
-
- this.init(callback);
-
- }
-
-};
-
-SampleWidgetType.prototype = {
-
- create: function(callback)
- {
- // Also valid because we are passing the callback to
- // someone else to call.
- if (y === 1) {
- this.something(callback);
- }
-
- this.init(callback);
-
- }
-
-};
-
-SampleWidgetType.prototype = {
-
- create: function(callback)
- {
- if (a === 1) {
- // This is ok because it is the last statement,
- // even though it is conditional.
- this.something(callback);
- }
-
- }
-
-};
-
-
-SampleWidgetType.prototype = {
-
- create: function(callback)
- {
- if (dfx.isFn(callback) === true) {
- callback.call(this, cont);
- return;
- }
- }
-
-};
-
-
-SampleWidgetType.prototype = {
-
- create: function(callback)
- {
- dfx.foreach(items, function(item) {
- return true;
- });
-
- if (dfx.isFn(callback) === true) {
- callback.call(this);
- }
- }
-
-};
-
-SampleWidgetType.prototype = {
-
- create: function(callback)
- {
- var self = this;
- this.createChildren(null, function() {
- callback.call(self, div);
- return;
- });
- }
-
-}; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php
deleted file mode 100644
index 15564855..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/CreateWidgetTypeCallbackUnitTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * Unit test class for the CreateWidgetTypeCallback sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\Objects;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class CreateWidgetTypeCallbackUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js')
- {
- return array(
- 18 => 1,
- 23 => 2,
- 26 => 1,
- 30 => 1,
- 34 => 1,
- 43 => 2,
- 91 => 1,
- 123 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.inc
deleted file mode 100644
index acf9baf7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-Channels::includeSystem('Widget');
-Widget::includeWidget('PasswordField');
-$blah = new PasswordFieldWidgetType();
-Widget::getWidget('PasswordField');
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php
deleted file mode 100644
index 16e8cfc1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Objects/DisallowNewWidgetUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowNewWidget sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\Objects;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowNewWidgetUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(4 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.inc
deleted file mode 100644
index aa95b03c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.inc
+++ /dev/null
@@ -1,179 +0,0 @@
-<?php
-/**
- * Adds a new issue.
- *
- * Returns the new issue id.
- *
- * @param string $title Title of the new issue.
- * @param string $description The description of the issue.
- * @param string $reporter Asset id of the reporter.
- * @param integer $projectid Id of the project that the issue belongs to.
- * @param array $tags Array of tags.
- * @param string $status The status of the issue.
- * @param string $assignedTo The asset id of the user that the issue is
- * assigned to.
- * @param string $reportedDate If set then this date will be used instead of the
- * current date and time.
- * @param integer $reportedMilestone Reported milestone.
- *
- * @return integer
- * @throws ChannelException If there is an error.
- *
- * @api write
- * @api-permission public
- */
-public static function addIssue(
- $title,
- $description,
- $reporter=NULL,
- $projectid=NULL,
- array $tags=array(),
- $status=NULL,
- $assignedTo=NULL,
- $reportedDate=NULL,
- $reportedMilestone=NULL
-) {
- // Get current projectid if not specified.
- if ($projectid === NULL) {
- Channels::includeSystem('Project');
- $projectid = Project::getCurrentProjectId();
- Channels::modifyBasket('project', $projectid);
- }
-
- Channels::includeSystem('SquizRoadmap');
- Channels::includeSystem('Permission');
- if (Permission::hasPermission($projectid, 'ideas.contribute') === FALSE) {
- throw new ChannelException(_('You do not have permission to contribute idea'));
- }
-
- if ($assignedTo !== NULL) {
- if (Permission::hasPermission($projectid, 'ideas.edit.details') === FALSE) {
- throw new ChannelException(_('You do not have permission to assign user to idea'));
- }
-
- if (SquizRoadmap::isVisibleProject($projectid, $assignedTo) === FALSE) {
- throw new ChannelException(_('Assigned to user does not have access to issue project.'));
- }
- }
-
- // Get current user id if not specified.
- if ($reporter === NULL) {
- Channels::includeSystem('User');
- $reporter = User::getCurrentUserid();
- Channels::modifyBasket('reporter', $reporter);
- }
-
- if (SquizRoadmap::isVisibleProject($projectid, $reporter) === FALSE) {
- throw new ChannelException(_('Contributed by user does not have access to issue project.'));
- }
-
- // Make sure status is valid.
- Channels::includeSystem('SquizRoadmap');
- Channels::includeSystem('SquizRoadmapStatus');
- if ($status === NULL) {
- $statuses = SquizRoadmapStatus::getStatus($projectid);
- if (empty($statuses) === TRUE) {
- throw new ChannelException(_('No defined statuses in project'));
- }
-
- $status = $statuses[0]['status'];
- Channels::modifyBasket('status', $status);
- } else if (SquizRoadmapStatus::isValidStatus($projectid, $status) === FALSE) {
- throw new ChannelException(sprintf(_('Invalid status: %s'), $status));
- }
-
- $issueid = DAL::seqNextVal('sq_rdm_issue_seq');
- Channels::addToBasket('issueid', $issueid);
-
- if ($reportedDate === NULL) {
- include_once 'Libs/String/String.inc';
- $reportedDate = String::tsIso8601(time());
- Channels::modifyBasket('reportedDate', $reportedDate);
- }
-
- $title = trim($title);
- Channels::modifyBasket('title', $title);
- if (empty($title) === TRUE) {
- throw new ChannelException(_('Title cannot be empty'));
- }
-
- $description = SquizRoadmap::stripTags(trim($description));
- Channels::modifyBasket('description', $description);
- if (empty($description) === TRUE) {
- throw new ChannelException(_('Description cannot be empty'));
- }
-
- try {
- DAL::beginTransaction();
-
- $query = DAL::getDALQuery('SquizRoadmapIssue', 'addIssue');
- DAL::executeQuery($query);
-
- // Add tags for the new issue.
- SquizRoadmapIssue::addIssueTags($issueid, $tags);
-
- // Add reporter and assignee to watch list.
- SquizRoadmapIssue::addIssueWatch($issueid, $reporter);
-
- if ($assignedTo !== NULL) {
- SquizRoadmapIssue::addIssueWatch($issueid, $assignedTo);
- }
-
- SquizRoadmapIssue::clearIssueCache($issueid);
-
- DAL::commit();
- } catch (Exception $e) {
- DAL::rollBack();
- throw new ChannelException($e->getMessage());
- }//end try
-
- if ($something === NULL) {
- if ($bar !== NULL) {
- }
- }
-
- return $issueid;
-
-}//end addIssue()
-
-/**
- * Adds a new issue.
- *
- * Returns the new issue id.
- *
- * @param string $title Title of the new issue.
- * @param string $description The description of the issue.
- * @param string $reporter Asset id of the reporter.
- * @param integer $projectid Id of the project that the issue belongs to.
- * @param array $tags Array of tags.
- * @param string $status The status of the issue.
- * @param string $assignedTo The asset id of the user that the issue is
- * assigned to.
- * @param string $reportedDate If set then this date will be used instead of the
- * current date and time.
- * @param integer $reportedMilestone Reported milestone.
- *
- * @return integer
- * @throws ChannelException If there is an error.
- *
- */
-public static function addIssue(
- $title,
- $description,
- $reporter=NULL,
- $projectid=NULL,
- array $tags=array(),
- $status=NULL,
- $assignedTo=NULL,
- $reportedDate=NULL,
- $reportedMilestone=NULL
-) {
- // Get current projectid if not specified.
- if ($projectid === NULL) {
- Channels::includeSystem('Project');
- $projectid = Project::getCurrentProjectId();
- Channels::modifyBasket('project', $projectid);
- }
-
-}//end addIssue()
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.php
deleted file mode 100644
index 3ba70d29..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/AjaxNullComparisonUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the AjaxNullComparison sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class AjaxNullComparisonUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 37 => 1,
- 49 => 1,
- 60 => 1,
- 73 => 1,
- 88 => 1,
- 118 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc
deleted file mode 100644
index 992a7dc1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.inc
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-function getWidget($type)
-{
- eval('$obj = new '.$type.'();');
- return $obj;
-
-}//end getWidget()
-
-function getWidget2($type)
-{
- $string = '$obj = new '.$type.'();';
- eval($string);
- eval('$string = "";');
- return $obj;
-
-}//end getWidget2()
-
-function getWidget3($type)
-{
- $string = '$obj = new ';
- eval($string.$type.'();');
- return $obj;
-
-}//end getWidget3()
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php
deleted file mode 100644
index 4395845d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/EvalObjectFactoryUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the EvalObjectFactory sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EvalObjectFactoryUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 4 => 1,
- 12 => 1,
- 21 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.inc
deleted file mode 100644
index 7999763f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.inc
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-echo $_REQUEST['action'];
-Security::getRequestData('action');
-
-echo $_POST['action'];
-Security::getRequestData('action', 'post');
-
-echo $_GET[$action];
-Security::getRequestData($action, 'get');
-
-class Security
-{
- function getRequestData($var) {
- echo $_REQUEST[$var];
- }
-}
-
-class Insecurity
-{
- function getRequestData($var) {
- unset($_REQUEST[$var]);
- echo 'OMGHAX!';
- }
-}
-
-$sample = Util::getArrayIndex($_REQUEST, 'sample', '');
-$syntax = Util::getArrayIndex($_REQUEST, 'syntax', '');
-$value = Util::getArrayIndex($_FILES, $key, $default);
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php
deleted file mode 100644
index 8ea89b16..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/GetRequestDataUnitTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * Unit test class for the GetRequestData sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class GetRequestDataUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 5 => 1,
- 8 => 1,
- 21 => 1,
- 26 => 1,
- 27 => 1,
- 28 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.inc
deleted file mode 100644
index f9148a78..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-return myFunction();
-return MyClass::myFunction();
-return $obj->myFunction();
-return $obj->variable;
-return MyClass::VARIABLE;
-return $variable;
-return ($var + 1);
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php
deleted file mode 100644
index 8ed23923..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/PHP/ReturnFunctionValueUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the ReturnFunctionValue sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ReturnFunctionValueUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 2 => 1,
- 3 => 1,
- 4 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.js
deleted file mode 100644
index 46d90cf9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.js
+++ /dev/null
@@ -1,18 +0,0 @@
-one = (1 + 2);
-two = (one + 2);
-two = (one + one);
-three = ('1' + 2);
-
-four = ['1', two].join();
-four = ['1', two].join('');
-four = ['1', [one, two].join(',')].join(' ');
-four = ['1', [one, two].join()].join(' ');
-four = ['1', [one, two].join()].join();
-
-five = 'string' + ['1', [one, two].join()].join() + 'string';
-
-six = myArray.join(' ');
-six = [arrayOne, arrayTwo].join();
-
-// This is fine because the array is not created inline.
-var x = 'x' + test[x].join('p') + 't'; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php
deleted file mode 100644
index cad315c2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Strings/JoinStringsUnitTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * Unit test class for the JoinStrings sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\MySource\Tests\Strings;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class JoinStringsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='JoinStringsUnitTest.js')
- {
- if ($testFile !== 'JoinStringsUnitTest.js') {
- return array();
- }
-
- return array(
- 6 => 1,
- 7 => 1,
- 8 => 2,
- 9 => 2,
- 10 => 2,
- 12 => 2,
- 15 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/ruleset.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/ruleset.xml
deleted file mode 100644
index fe7ae666..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/MySource/ruleset.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0"?>
-<ruleset name="MySource">
- <description>The MySource coding standard builds on the Squiz coding standard. Currently used for MySource Mini development.</description>
-
- <exclude-pattern>*/Tests/*</exclude-pattern>
- <exclude-pattern>*/Oven/*</exclude-pattern>
- <exclude-pattern>*/data/*</exclude-pattern>
- <exclude-pattern>*/jquery.js</exclude-pattern>
- <exclude-pattern>*/jquery.*.js</exclude-pattern>
- <exclude-pattern>*/viper/*</exclude-pattern>
- <exclude-pattern>DALConf.inc</exclude-pattern>
-
- <!-- Include the whole Squiz standard except FunctionComment, which we override -->
- <rule ref="Squiz">
- <exclude name="Squiz.Commenting.FunctionComment"/>
- </rule>
-
-</ruleset>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Classes/ClassDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Classes/ClassDeclarationStandard.xml
deleted file mode 100644
index b5d53fdf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Classes/ClassDeclarationStandard.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<documentation title="Class Declarations">
- <standard>
- <![CDATA[
- The opening brace of a class must be on the line after the definition by itself.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Opening brace on the correct line.">
- <![CDATA[
-class Foo
-<em>{</em>
-}
- ]]>
- </code>
- <code title="Invalid: Opening brace on same line as declaration.">
- <![CDATA[
-class Foo <em>{</em>
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/ClassCommentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/ClassCommentStandard.xml
deleted file mode 100644
index fe816200..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/ClassCommentStandard.xml
+++ /dev/null
@@ -1,177 +0,0 @@
-<documentation title="Class Comments">
- <standard>
- <![CDATA[
- Classes and interfaces must have a non-empty doc comment. The short description must be on the second line of the comment. Each description must have one blank comment line before and after. There must be one blank line before the tags in the comments. A @version tag must be in Release: package_version format.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A doc comment for the class.">
- <![CDATA[
-<em>/**
- * The Foo class.
- */</em>
-class Foo
-{
-}
- ]]>
- </code>
- <code title="Invalid: No doc comment for the class.">
- <![CDATA[
-class Foo
-{
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: A doc comment for the class.">
- <![CDATA[
-<em>/**
- * The Foo class.
- */</em>
-class Foo
-{
-}
- ]]>
- </code>
- <code title="Invalid: Invalid comment type for the class.">
- <![CDATA[
-// The Foo class.
-class Foo
-{
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: A doc comment for the class.">
- <![CDATA[
-<em>/**
- * The Foo class.
- */</em>
-class Foo
-{
-}
- ]]>
- </code>
- <code title="Invalid: The blank line after the comment makes it appear as a file comment, not a class comment.">
- <![CDATA[
-<em>/**
- * The Foo class.
- */</em>
-
-class Foo
-{
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Short description is the second line of the comment.">
- <![CDATA[
-/**
- * <em>The Foo class.</em>
- */
-class Foo
-{
-}
- ]]>
- </code>
- <code title="Invalid: An extra blank line before the short description.">
- <![CDATA[
-/**
- *
- * <em>The Foo class.</em>
- */
-class Foo
-{
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Exactly one blank line around descriptions.">
- <![CDATA[
-/**
- * The Foo class.
- * <em></em>
- * A helper for the Bar class.
- * <em></em>
- * @see Bar
- */
-class Foo
-{
-}
- ]]>
- </code>
- <code title="Invalid: Extra blank lines around the descriptions.">
- <![CDATA[
-/**
- * The Foo class.
- * <em></em>
- * <em></em>
- * A helper for the Bar class.
- * <em></em>
- * <em></em>
- * @see Bar
- */
-class Foo
-{
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Exactly one blank line before the tags.">
- <![CDATA[
-/**
- * The Foo class.
- * <em></em>
- * @see Bar
- */
-class Foo
-{
-}
- ]]>
- </code>
- <code title="Invalid: Extra blank lines before the tags.">
- <![CDATA[
-/**
- * The Foo class.
- * <em></em>
- * <em></em>
- * @see Bar
- */
-class Foo
-{
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Version tag is in the correct format.">
- <![CDATA[
-/**
- * The Foo class.
- *
- * @version <em>Release: 1.0</em>
- */
-class Foo
-{
-}
- ]]>
- </code>
- <code title="Invalid: No Release: text.">
- <![CDATA[
-/**
- * The Foo class.
- *
- * @version <em>1.0</em>
- */
-class Foo
-{
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/FileCommentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/FileCommentStandard.xml
deleted file mode 100644
index eef0b4e3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/FileCommentStandard.xml
+++ /dev/null
@@ -1,286 +0,0 @@
-<documentation title="File Comments">
- <standard>
- <![CDATA[
- Files must have a non-empty doc comment. The short description must be on the second line of the comment. Each description must have one blank comment line before and after. There must be one blank line before the tags in the comments. There must be a category, package, author, license, and link tag. There may only be one category, package, subpackage, license, version, since and deprecated tag. The tags must be in the order category, package, subpackage, author, copyright, license, version, link, see, since, and deprecated. The php version must be specified.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A file comment is used.">
- <![CDATA[
-<?php
-<em>/**
- * Short description here.
- *
- * PHP version 5
- *
- * @category Foo
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */</em>
- ]]>
- </code>
- <code title="Invalid: No doc comment for the class.">
- <![CDATA[
-<?php
-<em></em>
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Short description is the second line of the comment.">
- <![CDATA[
-<?php
-/**
- * <em>Short description here.</em>
- *
- * PHP version 5
- *
- * @category Foo
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- <code title="Invalid: An extra blank line before the short description.">
- <![CDATA[
-<?php
-/**
- * <em></em>
- * <em>Short description here.</em>
- *
- * PHP version 5
- *
- * @category Foo
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Exactly one blank line around descriptions.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- * <em></em>
- * PHP version 5
- * <em></em>
- * @category Foo
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- <code title="Invalid: Extra blank lines around the descriptions.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- * <em></em>
- * <em></em>
- * PHP version 5
- * <em></em>
- * <em></em>
- * @category Foo
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Exactly one blank line before the tags.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- *
- * PHP version 5
- * <em></em>
- * @category Foo
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- <code title="Invalid: Extra blank lines before the tags.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- *
- * PHP version 5
- * <em></em>
- * <em></em>
- * @category Foo
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: All required tags are used.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- *
- * PHP version 5
- *
- * <em>@category</em> Foo
- * <em>@package</em> Foo_Helpers
- * <em>@author</em> Marty McFly <mmcfly@example.com>
- * <em>@copyright</em> 2013-2014 Foo Inc.
- * <em>@license</em> MIT License
- * <em>@link</em> http://example.com
- */
- ]]>
- </code>
- <code title="Invalid: Missing an author tag.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- *
- * PHP version 5
- *
- * @category Foo
- * @package Foo_Helpers
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Tags that should only be used once are only used once.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- *
- * PHP version 5
- *
- * <em>@category</em> Foo
- * <em>@package</em> Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * <em>@license</em> MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- <code title="Invalid: Multiple category tags.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- *
- * PHP version 5
- *
- * <em>@category</em> Foo
- * <em>@category</em> Bar
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: PHP version specified.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- *
- * <em>PHP version 5</em>
- *
- * @category Foo
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- <code title="Invalid: Category and package tags are swapped in order.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- *
- * PHP version 5
- *
- * <em>@package</em> Foo_Helpers
- * <em>@category</em> Foo
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Tags are in the correct order.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- *
- * PHP version 5
- *
- * @category Foo
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- <code title="Invalid: No php version specified.">
- <![CDATA[
-<?php
-/**
- * Short description here.
- *
- * @category Foo
- * @package Foo_Helpers
- * @author Marty McFly <mmcfly@example.com>
- * @copyright 2013-2014 Foo Inc.
- * @license MIT License
- * @link http://example.com
- */
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/FunctionCommentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/FunctionCommentStandard.xml
deleted file mode 100644
index 621649f2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/FunctionCommentStandard.xml
+++ /dev/null
@@ -1,230 +0,0 @@
-<documentation title="Function Comments">
- <standard>
- <![CDATA[
- Functions must have a non-empty doc comment. The short description must be on the second line of the comment. Each description must have one blank comment line before and after. There must be one blank line before the tags in the comments. There must be a tag for each of the parameters in the right order with the right variable names with a comment. There must be a return tag. Any throw tag must have an exception class.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A function doc comment is used.">
- <![CDATA[
-<em>/**
- * Short description here.
- *
- * @return void
- */</em>
- function foo()
- {
- }
- ]]>
- </code>
- <code title="Invalid: No doc comment for the function.">
- <![CDATA[
- function foo()
- {
- }
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Short description is the second line of the comment.">
- <![CDATA[
-/**
- * <em>Short description here.</em>
- *
- * @return void
- */
- function foo()
- {
- }
- ]]>
- </code>
- <code title="Invalid: An extra blank line before the short description.">
- <![CDATA[
-/**
- * <em></em>
- * <em>Short description here.</em>
- *
- * @return void
- */
- function foo()
- {
- }
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Exactly one blank line around descriptions.">
- <![CDATA[
-/**
- * Short description here.
- * <em></em>
- * Long description here.
- * <em></em>
- * @return void
- */
- function foo()
- {
- }
- ]]>
- </code>
- <code title="Invalid: Extra blank lines around the descriptions.">
- <![CDATA[
-/**
- * Short description here.
- * <em></em>
- * <em></em>
- * Long description here.
- * <em></em>
- * <em></em>
- * @return void
- */
- function foo()
- {
- }
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Exactly one blank line before the tags.">
- <![CDATA[
-/**
- * Short description here.
- *
- * Long description here.
- * <em></em>
- * @return void
- */
- function foo()
- {
- }
- ]]>
- </code>
- <code title="Invalid: Extra blank lines before the tags.">
- <![CDATA[
-/**
- * Short description here.
- *
- * Long description here.
- * <em></em>
- * <em></em>
- * @return void
- */
- function foo()
- {
- }
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Throws tag has an exception class.">
- <![CDATA[
-/**
- * Short description here.
- *
- * @return void
- * @throws <em>FooException</em>
- */
- function foo()
- {
- }
- ]]>
- </code>
- <code title="Invalid: No exception class given for throws tag.">
- <![CDATA[
-/**
- * Short description here.
- *
- * @return void
- * <em>@throws</em>
- */
- function foo()
- {
- }
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Return tag present.">
- <![CDATA[
-/**
- * Short description here.
- *
- * <em>@return void</em>
- */
- function foo()
- {
- }
- ]]>
- </code>
- <code title="Invalid: No return tag.">
- <![CDATA[
-/**
- * Short description here.
- */
- function foo()
- {
- }
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Param names are correct.">
- <![CDATA[
-/**
- * Short description here.
- *
- * @param string <em>$foo</em> Foo parameter
- * @param string <em>$bar</em> Bar parameter
- * @return void
- */
- function foo(<em>$foo</em>, <em>$bar</em>)
- {
- }
- ]]>
- </code>
- <code title="Invalid: Wrong parameter name doesn't match function signature.">
- <![CDATA[
-/**
- * Short description here.
- *
- * @param string $foo Foo parameter
- * @param string <em>$qux</em> Bar parameter
- * @return void
- */
- function foo($foo, <em>$bar</em>)
- {
- }
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Param names are ordered correctly.">
- <![CDATA[
-/**
- * Short description here.
- *
- * @param string <em>$foo</em> Foo parameter
- * @param string <em>$bar</em> Bar parameter
- * @return void
- */
- function foo(<em>$foo</em>, <em>$bar</em>)
- {
- }
- ]]>
- </code>
- <code title="Invalid: Wrong parameter order.">
- <![CDATA[
-/**
- * Short description here.
- *
- * @param string <em>$bar</em> Bar parameter
- * @param string <em>$foo</em> Foo parameter
- * @return void
- */
- function foo(<em>$foo</em>, <em>$bar</em>)
- {
- }
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/InlineCommentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/InlineCommentStandard.xml
deleted file mode 100644
index 53056e2a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Commenting/InlineCommentStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Inline Comments">
- <standard>
- <![CDATA[
- Perl-style # comments are not allowed.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A // style comment.">
- <![CDATA[
-<em>//</em> A comment.
- ]]>
- </code>
- <code title="Invalid: A # style comment.">
- <![CDATA[
-<em>#</em> A comment.
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/ControlStructures/ControlSignatureStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/ControlStructures/ControlSignatureStandard.xml
deleted file mode 100644
index ce430fb1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/ControlStructures/ControlSignatureStandard.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<documentation title="Control Structure Signatures">
- <standard>
- <![CDATA[
- Control structures should use one space around the parentheses in conditions. The opening brace should be preceded by one space and should be at the end of the line.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Correct spacing around the condition.">
- <![CDATA[
-if<em> </em>($foo)<em> </em>{
-}
- ]]>
- </code>
- <code title="Invalid: Incorrect spacing around the condition.">
- <![CDATA[
-if<em></em>($foo)<em></em>{
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Correct placement of the opening brace.">
- <![CDATA[
-if ($foo) <em>{</em>
-}
- ]]>
- </code>
- <code title="Invalid: Incorrect placement of the opening brace on a new line.">
- <![CDATA[
-if ($foo)
-<em>{</em>
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/ControlStructures/MultiLineConditionStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/ControlStructures/MultiLineConditionStandard.xml
deleted file mode 100644
index 96d451dc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/ControlStructures/MultiLineConditionStandard.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-<documentation title="Multi-line If Conditions">
- <standard>
- <![CDATA[
- Multi-line if conditions should be indented one level and each line should begin with a boolean operator. The end parenthesis should be on a new line.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Correct indentation.">
- <![CDATA[
-if ($foo
-<em> </em>&& $bar
-) {
-}
- ]]>
- </code>
- <code title="Invalid: No indentation used on the condition lines.">
- <![CDATA[
-if ($foo
-<em></em>&& $bar
-) {
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Boolean operator at the start of the line.">
- <![CDATA[
-if ($foo
- <em>&&</em> $bar
-) {
-}
- ]]>
- </code>
- <code title="Invalid: Boolean operator at the end of the line.">
- <![CDATA[
-if ($foo <em>&&</em>
- $bar
-) {
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: End parenthesis on a new line.">
- <![CDATA[
-if ($foo
- && $bar
-<em>)</em> {
-}
- ]]>
- </code>
- <code title="Invalid: End parenthesis not moved to a new line.">
- <![CDATA[
-if ($foo
- && $bar<em>)</em> {
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Files/IncludingFileStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Files/IncludingFileStandard.xml
deleted file mode 100644
index 6d115be7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Files/IncludingFileStandard.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<documentation title="Including Code">
- <standard>
- <![CDATA[
- Anywhere you are unconditionally including a class file, use <em>require_once</em>. Anywhere you are conditionally including a class file (for example, factory methods), use <em>include_once</em>. Either of these will ensure that class files are included only once. They share the same file list, so you don't need to worry about mixing them - a file included with <em>require_once</em> will not be included again by <em>include_once</em>.
- ]]>
- </standard>
- <standard>
- <![CDATA[
- Note that <em>include_once</em> and <em>require_once</em> are statements, not functions. Parentheses should not surround the subject filename.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: used as statement">
- <![CDATA[
-require_once 'PHP/CodeSniffer.php';
- ]]>
- </code>
- <code title="Invalid: used as function">
- <![CDATA[
-require_once<em>(</em>'PHP/CodeSniffer.php'<em>)</em>;
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Files/LineLengthStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Files/LineLengthStandard.xml
deleted file mode 100644
index e4911ef3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Files/LineLengthStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="Line Length">
- <standard>
- <![CDATA[
- It is recommended to keep lines at approximately 85 characters long for better code readability.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Formatting/MultiLineAssignmentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Formatting/MultiLineAssignmentStandard.xml
deleted file mode 100644
index e825c553..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Formatting/MultiLineAssignmentStandard.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<documentation title="Multi-Line Assignment">
- <standard>
- <![CDATA[
- Multi-line assignment should have the equals sign be the first item on the second line indented correctly.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Assignment operator at the start of the second line.">
- <![CDATA[
-$foo
- <em>=</em> $bar;
- ]]>
- </code>
- <code title="Invalid: Assignment operator at end of first line.">
- <![CDATA[
-$foo <em>=</em>
- $bar;
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Assignment operator indented one level.">
- <![CDATA[
-$foo
-<em> </em>= $bar;
- ]]>
- </code>
- <code title="Invalid: Assignment operator not indented.">
- <![CDATA[
-$foo
-<em></em>= $bar;
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionCallSignatureStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionCallSignatureStandard.xml
deleted file mode 100644
index f8742277..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionCallSignatureStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Function Calls">
- <standard>
- <![CDATA[
- Functions should be called with no spaces between the function name, the opening parenthesis, and the first parameter; and no space between the last parameter, the closing parenthesis, and the semicolon.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: spaces between parameters">
- <![CDATA[
-$var = foo($bar, $baz, $quux);
- ]]>
- </code>
- <code title="Invalid: additional spaces used">
- <![CDATA[
-$var = foo<em> </em>(<em> </em>$bar, $baz, $quux<em> </em>)<em> </em>;
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionDeclarationStandard.xml
deleted file mode 100644
index ced9ae2e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionDeclarationStandard.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<documentation title="Function Declarations">
- <standard>
- <![CDATA[
- There should be exactly 1 space after the function keyword and 1 space on each side of the use keyword. Closures should use the Kernighan/Ritchie Brace style and other single-line functions should use the BSD/Allman style. Multi-line function declarations should have the parameter lists indented one level with the closing parenthesis on a newline followed by a single space and the opening brace of the function.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Correct spacing around function and use keywords.">
- <![CDATA[
-$foo = function<em> </em>()<em> </em>use<em> </em>($bar)<em> </em>{
-};
- ]]>
- </code>
- <code title="Invalid: No spacing around function and use keywords.">
- <![CDATA[
-$foo = function<em></em>()<em></em>use<em></em>($bar)<em></em>{
-};
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Multi-line function declaration formatted properly.">
- <![CDATA[
-function foo(
-<em> </em>$bar,
-<em> </em>$baz
-<em>) {</em>
-};
- ]]>
- </code>
- <code title="Invalid: Invalid indentation and formatting of closing parenthesis.">
- <![CDATA[
-function foo(
-<em></em>$bar,
-<em></em>$baz<em>)</em>
-<em>{</em>
-};
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/ValidDefaultValueStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/ValidDefaultValueStandard.xml
deleted file mode 100644
index 56196cb6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/ValidDefaultValueStandard.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<documentation title="Default Values in Function Declarations">
- <standard>
- <![CDATA[
- Arguments with default values go at the end of the argument list.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: argument with default value at end of declaration">
- <![CDATA[
-function connect($dsn, <em>$persistent = false</em>)
-{
- ...
-}
- ]]>
- </code>
- <code title="Invalid: argument with default value at start of declaration">
- <![CDATA[
-function connect(<em>$persistent = false</em>, $dsn)
-{
- ...
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidClassNameStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidClassNameStandard.xml
deleted file mode 100644
index d1608791..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidClassNameStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Class Names">
- <standard>
- <![CDATA[
- Classes should be given descriptive names. Avoid using abbreviations where possible. Class names should always begin with an uppercase letter. The PEAR class hierarchy is also reflected in the class name, each level of the hierarchy separated with a single underscore.
- ]]>
- </standard>
- <code_comparison>
- <code title="Examples of valid class names">
- <![CDATA[
-Log
-Net_Finger
-HTML_Upload_Error
- ]]>
- </code>
- <code title="Examples of invalid class names">
- <![CDATA[
-log
-NetFinger
-HTML-Upload-Error
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidFunctionNameStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidFunctionNameStandard.xml
deleted file mode 100644
index 60841dd4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidFunctionNameStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Function and Method Names">
- <standard>
- <![CDATA[
- Functions and methods should be named using the "studly caps" style (also referred to as "bumpy case" or "camel caps"). Functions should in addition have the package name as a prefix, to avoid name collisions between packages. The initial letter of the name (after the prefix) is lowercase, and each letter that starts a new "word" is capitalized.
- ]]>
- </standard>
- <code_comparison>
- <code title="Examples of valid function names">
- <![CDATA[
-connect()
-getData()
-buildSomeWidget()
-XML_RPC_serializeData()
- ]]>
- </code>
- <code title="Examples of invalid function names">
- <![CDATA[
-Connect()
-get_data()
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidVariableNameStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidVariableNameStandard.xml
deleted file mode 100644
index 4c707bdd..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/NamingConventions/ValidVariableNameStandard.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<documentation title="Variable Names">
- <standard>
- <![CDATA[
- Private member variable names should be prefixed with an underscore and public/protected variable names should not.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Proper member variable names.">
- <![CDATA[
-class Foo
-{
- public $<em>publicVar</em>;
- protected $<em>protectedVar</em>;
- private $<em>_privateVar</em>;
-}
- ]]>
- </code>
- <code title="Invalid: underscores used on public/protected variables and not used on private variables.">
- <![CDATA[
-class Foo
-{
- public $<em>_publicVar</em>;
- protected $<em>_protectedVar</em>;
- private $<em>privateVar</em>;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ObjectOperatorIndentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ObjectOperatorIndentStandard.xml
deleted file mode 100644
index 9dee905d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ObjectOperatorIndentStandard.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<documentation title="Object Operator Indentation">
- <standard>
- <![CDATA[
- Chained object operators when spread out over multiple lines should be the first thing on the line and be indented by 1 level.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Object operator at the start of a new line.">
- <![CDATA[
-$foo
- <em>-></em>bar()
- <em>-></em>baz();
- ]]>
- </code>
- <code title="Invalid: Object operator at the end of the line.">
- <![CDATA[
-$foo<em>-></em>
- bar()<em>-></em>
- baz();
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Object operator indented correctly.">
- <![CDATA[
-$foo
-<em> </em>->bar()
-<em> </em>->baz();
- ]]>
- </code>
- <code title="Invalid: Object operator not indented correctly.">
- <![CDATA[
-$foo
-<em></em>->bar()
-<em></em>->baz();
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeClosingBraceStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeClosingBraceStandard.xml
deleted file mode 100644
index c8d6e274..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeClosingBraceStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Closing Brace Indentation">
- <standard>
- <![CDATA[
- Closing braces should be indented at the same level as the beginning of the scope.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Consistent indentation level for scope.">
- <![CDATA[
-if ($test) {
- $var = 1;
-}
- ]]>
- </code>
- <code title="Invalid: The ending brace is indented further than the if statement.">
- <![CDATA[
-if ($test) {
- $var = 1;
-<em> </em>}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeIndentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeIndentStandard.xml
deleted file mode 100644
index fafa07ac..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ScopeIndentStandard.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<documentation title="Scope Indentation">
- <standard>
- <![CDATA[
- Any scope openers except for switch statements should be indented 1 level. This includes classes, functions, and control structures.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Consistent indentation level for scope.">
- <![CDATA[
-function foo()
-{
-<em> </em>if ($test) {
-<em> </em>$var = 1;
-<em> </em>}
-}
- ]]>
- </code>
- <code title="Invalid: Indentation is not used for scope.">
- <![CDATA[
-function foo()
-{
-<em></em>if ($test) {
-<em></em>$var = 1;
-<em></em>}
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php
deleted file mode 100644
index e22d9b97..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Classes/ClassDeclarationSniff.php
+++ /dev/null
@@ -1,143 +0,0 @@
-<?php
-/**
- * Checks the declaration of the class is correct.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\Classes;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ClassDeclarationSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param integer $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $errorData = array(strtolower($tokens[$stackPtr]['content']));
-
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- $error = 'Possible parse error: %s missing opening or closing brace';
- $phpcsFile->addWarning($error, $stackPtr, 'MissingBrace', $errorData);
- return;
- }
-
- $curlyBrace = $tokens[$stackPtr]['scope_opener'];
- $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($curlyBrace - 1), $stackPtr, true);
- $classLine = $tokens[$lastContent]['line'];
- $braceLine = $tokens[$curlyBrace]['line'];
- if ($braceLine === $classLine) {
- $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'same line');
- $error = 'Opening brace of a %s must be on the line after the definition';
- $fix = $phpcsFile->addFixableError($error, $curlyBrace, 'OpenBraceNewLine', $errorData);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- if ($tokens[($curlyBrace - 1)]['code'] === T_WHITESPACE) {
- $phpcsFile->fixer->replaceToken(($curlyBrace - 1), '');
- }
-
- $phpcsFile->fixer->addNewlineBefore($curlyBrace);
- $phpcsFile->fixer->endChangeset();
- }
-
- return;
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'new line');
-
- if ($braceLine > ($classLine + 1)) {
- $error = 'Opening brace of a %s must be on the line following the %s declaration; found %s line(s)';
- $data = array(
- $tokens[$stackPtr]['content'],
- $tokens[$stackPtr]['content'],
- ($braceLine - $classLine - 1),
- );
- $fix = $phpcsFile->addFixableError($error, $curlyBrace, 'OpenBraceWrongLine', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($curlyBrace - 1); $i > $lastContent; $i--) {
- if ($tokens[$i]['line'] === ($tokens[$curlyBrace]['line'] + 1)) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- return;
- }//end if
- }//end if
-
- if ($tokens[($curlyBrace + 1)]['content'] !== $phpcsFile->eolChar) {
- $error = 'Opening %s brace must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $curlyBrace, 'OpenBraceNotAlone', $errorData);
- if ($fix === true) {
- $phpcsFile->fixer->addNewline($curlyBrace);
- }
- }
-
- if ($tokens[($curlyBrace - 1)]['code'] === T_WHITESPACE) {
- $prevContent = $tokens[($curlyBrace - 1)]['content'];
- if ($prevContent === $phpcsFile->eolChar) {
- $spaces = 0;
- } else {
- $blankSpace = substr($prevContent, strpos($prevContent, $phpcsFile->eolChar));
- $spaces = strlen($blankSpace);
- }
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $stackPtr, true);
- $expected = ($tokens[$first]['column'] - 1);
- if ($spaces !== $expected) {
- $error = 'Expected %s spaces before opening brace; %s found';
- $data = array(
- $expected,
- $spaces,
- );
-
- $fix = $phpcsFile->addFixableError($error, $curlyBrace, 'SpaceBeforeBrace', $data);
- if ($fix === true) {
- $indent = str_repeat(' ', $expected);
- if ($spaces === 0) {
- $phpcsFile->fixer->addContentBefore($curlyBrace, $indent);
- } else {
- $phpcsFile->fixer->replaceToken(($curlyBrace - 1), $indent);
- }
- }
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php
deleted file mode 100644
index 0bd39bb3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/ClassCommentSniff.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-/**
- * Parses and verifies the doc comments for classes.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ClassCommentSniff extends FileCommentSniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $this->currentFile = $phpcsFile;
-
- $tokens = $phpcsFile->getTokens();
- $type = strtolower($tokens[$stackPtr]['content']);
- $errorData = array($type);
-
- $find = Tokens::$methodPrefixes;
- $find[] = T_WHITESPACE;
-
- $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true);
- if ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
- && $tokens[$commentEnd]['code'] !== T_COMMENT
- ) {
- $phpcsFile->addError('Missing class doc comment', $stackPtr, 'Missing');
- $phpcsFile->recordMetric($stackPtr, 'Class has doc comment', 'no');
- return;
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Class has doc comment', 'yes');
-
- if ($tokens[$commentEnd]['code'] === T_COMMENT) {
- $phpcsFile->addError('You must use "/**" style comments for a class comment', $stackPtr, 'WrongStyle');
- return;
- }
-
- // Check each tag.
- $this->processTags($phpcsFile, $stackPtr, $tokens[$commentEnd]['comment_opener']);
-
- }//end process()
-
-
- /**
- * Process the version tag.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tags The tokens for these tags.
- *
- * @return void
- */
- protected function processVersion($phpcsFile, array $tags)
- {
- $tokens = $phpcsFile->getTokens();
- foreach ($tags as $tag) {
- if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- // No content.
- continue;
- }
-
- $content = $tokens[($tag + 2)]['content'];
- if ((strstr($content, 'Release:') === false)) {
- $error = 'Invalid version "%s" in doc comment; consider "Release: <package_version>" instead';
- $data = array($content);
- $phpcsFile->addWarning($error, $tag, 'InvalidVersion', $data);
- }
- }
-
- }//end processVersion()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php
deleted file mode 100644
index 74f3ef8e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php
+++ /dev/null
@@ -1,569 +0,0 @@
-<?php
-/**
- * Parses and verifies the doc comments for files.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Common;
-
-class FileCommentSniff implements Sniff
-{
-
- /**
- * Tags in correct order and related info.
- *
- * @var array
- */
- protected $tags = array(
- '@category' => array(
- 'required' => true,
- 'allow_multiple' => false,
- ),
- '@package' => array(
- 'required' => true,
- 'allow_multiple' => false,
- ),
- '@subpackage' => array(
- 'required' => false,
- 'allow_multiple' => false,
- ),
- '@author' => array(
- 'required' => true,
- 'allow_multiple' => true,
- ),
- '@copyright' => array(
- 'required' => false,
- 'allow_multiple' => true,
- ),
- '@license' => array(
- 'required' => true,
- 'allow_multiple' => false,
- ),
- '@version' => array(
- 'required' => false,
- 'allow_multiple' => false,
- ),
- '@link' => array(
- 'required' => true,
- 'allow_multiple' => true,
- ),
- '@see' => array(
- 'required' => false,
- 'allow_multiple' => true,
- ),
- '@since' => array(
- 'required' => false,
- 'allow_multiple' => false,
- ),
- '@deprecated' => array(
- 'required' => false,
- 'allow_multiple' => false,
- ),
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return int
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Find the next non whitespace token.
- $commentStart = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
-
- // Allow declare() statements at the top of the file.
- if ($tokens[$commentStart]['code'] === T_DECLARE) {
- $semicolon = $phpcsFile->findNext(T_SEMICOLON, ($commentStart + 1));
- $commentStart = $phpcsFile->findNext(T_WHITESPACE, ($semicolon + 1), null, true);
- }
-
- // Ignore vim header.
- if ($tokens[$commentStart]['code'] === T_COMMENT) {
- if (strstr($tokens[$commentStart]['content'], 'vim:') !== false) {
- $commentStart = $phpcsFile->findNext(
- T_WHITESPACE,
- ($commentStart + 1),
- null,
- true
- );
- }
- }
-
- $errorToken = ($stackPtr + 1);
- if (isset($tokens[$errorToken]) === false) {
- $errorToken--;
- }
-
- if ($tokens[$commentStart]['code'] === T_CLOSE_TAG) {
- // We are only interested if this is the first open tag.
- return ($phpcsFile->numTokens + 1);
- } else if ($tokens[$commentStart]['code'] === T_COMMENT) {
- $error = 'You must use "/**" style comments for a file comment';
- $phpcsFile->addError($error, $errorToken, 'WrongStyle');
- $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes');
- return ($phpcsFile->numTokens + 1);
- } else if ($commentStart === false
- || $tokens[$commentStart]['code'] !== T_DOC_COMMENT_OPEN_TAG
- ) {
- $phpcsFile->addError('Missing file doc comment', $errorToken, 'Missing');
- $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no');
- return ($phpcsFile->numTokens + 1);
- }
-
- $commentEnd = $tokens[$commentStart]['comment_closer'];
-
- $nextToken = $phpcsFile->findNext(
- T_WHITESPACE,
- ($commentEnd + 1),
- null,
- true
- );
-
- $ignore = array(
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- T_FUNCTION,
- T_CLOSURE,
- T_PUBLIC,
- T_PRIVATE,
- T_PROTECTED,
- T_FINAL,
- T_STATIC,
- T_ABSTRACT,
- T_CONST,
- T_PROPERTY,
- );
-
- if (in_array($tokens[$nextToken]['code'], $ignore) === true) {
- $phpcsFile->addError('Missing file doc comment', $stackPtr, 'Missing');
- $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no');
- return ($phpcsFile->numTokens + 1);
- }
-
- $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes');
-
- // Check the PHP Version, which should be in some text before the first tag.
- $found = false;
- for ($i = ($commentStart + 1); $i < $commentEnd; $i++) {
- if ($tokens[$i]['code'] === T_DOC_COMMENT_TAG) {
- break;
- } else if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING
- && strstr(strtolower($tokens[$i]['content']), 'php version') !== false
- ) {
- $found = true;
- break;
- }
- }
-
- if ($found === false) {
- $error = 'PHP version not specified';
- $phpcsFile->addWarning($error, $commentEnd, 'MissingVersion');
- }
-
- // Check each tag.
- $this->processTags($phpcsFile, $stackPtr, $commentStart);
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
- /**
- * Processes each required or optional tag.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $commentStart Position in the stack where the comment started.
- *
- * @return void
- */
- protected function processTags($phpcsFile, $stackPtr, $commentStart)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (get_class($this) === 'PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FileCommentSniff') {
- $docBlock = 'file';
- } else {
- $docBlock = 'class';
- }
-
- $commentEnd = $tokens[$commentStart]['comment_closer'];
-
- $foundTags = array();
- $tagTokens = array();
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- $name = $tokens[$tag]['content'];
- if (isset($this->tags[$name]) === false) {
- continue;
- }
-
- if ($this->tags[$name]['allow_multiple'] === false && isset($tagTokens[$name]) === true) {
- $error = 'Only one %s tag is allowed in a %s comment';
- $data = array(
- $name,
- $docBlock,
- );
- $phpcsFile->addError($error, $tag, 'Duplicate'.ucfirst(substr($name, 1)).'Tag', $data);
- }
-
- $foundTags[] = $name;
- $tagTokens[$name][] = $tag;
-
- $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $tag, $commentEnd);
- if ($string === false || $tokens[$string]['line'] !== $tokens[$tag]['line']) {
- $error = 'Content missing for %s tag in %s comment';
- $data = array(
- $name,
- $docBlock,
- );
- $phpcsFile->addError($error, $tag, 'Empty'.ucfirst(substr($name, 1)).'Tag', $data);
- continue;
- }
- }//end foreach
-
- // Check if the tags are in the correct position.
- $pos = 0;
- foreach ($this->tags as $tag => $tagData) {
- if (isset($tagTokens[$tag]) === false) {
- if ($tagData['required'] === true) {
- $error = 'Missing %s tag in %s comment';
- $data = array(
- $tag,
- $docBlock,
- );
- $phpcsFile->addError($error, $commentEnd, 'Missing'.ucfirst(substr($tag, 1)).'Tag', $data);
- }
-
- continue;
- } else {
- $method = 'process'.substr($tag, 1);
- if (method_exists($this, $method) === true) {
- // Process each tag if a method is defined.
- call_user_func(array($this, $method), $phpcsFile, $tagTokens[$tag]);
- }
- }
-
- if (isset($foundTags[$pos]) === false) {
- break;
- }
-
- if ($foundTags[$pos] !== $tag) {
- $error = 'The tag in position %s should be the %s tag';
- $data = array(
- ($pos + 1),
- $tag,
- );
- $phpcsFile->addError($error, $tokens[$commentStart]['comment_tags'][$pos], ucfirst(substr($tag, 1)).'TagOrder', $data);
- }
-
- // Account for multiple tags.
- $pos++;
- while (isset($foundTags[$pos]) === true && $foundTags[$pos] === $tag) {
- $pos++;
- }
- }//end foreach
-
- }//end processTags()
-
-
- /**
- * Process the category tag.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tags The tokens for these tags.
- *
- * @return void
- */
- protected function processCategory($phpcsFile, array $tags)
- {
- $tokens = $phpcsFile->getTokens();
- foreach ($tags as $tag) {
- if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- // No content.
- continue;
- }
-
- $content = $tokens[($tag + 2)]['content'];
- if (Common::isUnderscoreName($content) !== true) {
- $newContent = str_replace(' ', '_', $content);
- $nameBits = explode('_', $newContent);
- $firstBit = array_shift($nameBits);
- $newName = ucfirst($firstBit).'_';
- foreach ($nameBits as $bit) {
- if ($bit !== '') {
- $newName .= ucfirst($bit).'_';
- }
- }
-
- $error = 'Category name "%s" is not valid; consider "%s" instead';
- $validName = trim($newName, '_');
- $data = array(
- $content,
- $validName,
- );
- $phpcsFile->addError($error, $tag, 'InvalidCategory', $data);
- }
- }//end foreach
-
- }//end processCategory()
-
-
- /**
- * Process the package tag.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tags The tokens for these tags.
- *
- * @return void
- */
- protected function processPackage($phpcsFile, array $tags)
- {
- $tokens = $phpcsFile->getTokens();
- foreach ($tags as $tag) {
- if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- // No content.
- continue;
- }
-
- $content = $tokens[($tag + 2)]['content'];
- if (Common::isUnderscoreName($content) === true) {
- continue;
- }
-
- $newContent = str_replace(' ', '_', $content);
- $newContent = trim($newContent, '_');
- $newContent = preg_replace('/[^A-Za-z_]/', '', $newContent);
-
- if ($newContent === '') {
- $error = 'Package name "%s" is not valid';
- $data = array($content);
- $phpcsFile->addError($error, $tag, 'InvalidPackageValue', $data);
- } else {
- $nameBits = explode('_', $newContent);
- $firstBit = array_shift($nameBits);
- $newName = strtoupper($firstBit{0}).substr($firstBit, 1).'_';
- foreach ($nameBits as $bit) {
- if ($bit !== '') {
- $newName .= strtoupper($bit{0}).substr($bit, 1).'_';
- }
- }
-
- $error = 'Package name "%s" is not valid; consider "%s" instead';
- $validName = trim($newName, '_');
- $data = array(
- $content,
- $validName,
- );
- $phpcsFile->addError($error, $tag, 'InvalidPackage', $data);
- }//end if
- }//end foreach
-
- }//end processPackage()
-
-
- /**
- * Process the subpackage tag.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tags The tokens for these tags.
- *
- * @return void
- */
- protected function processSubpackage($phpcsFile, array $tags)
- {
- $tokens = $phpcsFile->getTokens();
- foreach ($tags as $tag) {
- if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- // No content.
- continue;
- }
-
- $content = $tokens[($tag + 2)]['content'];
- if (Common::isUnderscoreName($content) === true) {
- continue;
- }
-
- $newContent = str_replace(' ', '_', $content);
- $nameBits = explode('_', $newContent);
- $firstBit = array_shift($nameBits);
- $newName = strtoupper($firstBit{0}).substr($firstBit, 1).'_';
- foreach ($nameBits as $bit) {
- if ($bit !== '') {
- $newName .= strtoupper($bit{0}).substr($bit, 1).'_';
- }
- }
-
- $error = 'Subpackage name "%s" is not valid; consider "%s" instead';
- $validName = trim($newName, '_');
- $data = array(
- $content,
- $validName,
- );
- $phpcsFile->addError($error, $tag, 'InvalidSubpackage', $data);
- }//end foreach
-
- }//end processSubpackage()
-
-
- /**
- * Process the author tag(s) that this header comment has.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tags The tokens for these tags.
- *
- * @return void
- */
- protected function processAuthor($phpcsFile, array $tags)
- {
- $tokens = $phpcsFile->getTokens();
- foreach ($tags as $tag) {
- if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- // No content.
- continue;
- }
-
- $content = $tokens[($tag + 2)]['content'];
- $local = '\da-zA-Z-_+';
- // Dot character cannot be the first or last character in the local-part.
- $localMiddle = $local.'.\w';
- if (preg_match('/^([^<]*)\s+<(['.$local.'](['.$localMiddle.']*['.$local.'])*@[\da-zA-Z][-.\w]*[\da-zA-Z]\.[a-zA-Z]{2,7})>$/', $content) === 0) {
- $error = 'Content of the @author tag must be in the form "Display Name <username@example.com>"';
- $phpcsFile->addError($error, $tag, 'InvalidAuthors');
- }
- }
-
- }//end processAuthor()
-
-
- /**
- * Process the copyright tags.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tags The tokens for these tags.
- *
- * @return void
- */
- protected function processCopyright($phpcsFile, array $tags)
- {
- $tokens = $phpcsFile->getTokens();
- foreach ($tags as $tag) {
- if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- // No content.
- continue;
- }
-
- $content = $tokens[($tag + 2)]['content'];
- $matches = array();
- if (preg_match('/^([0-9]{4})((.{1})([0-9]{4}))? (.+)$/', $content, $matches) !== 0) {
- // Check earliest-latest year order.
- if ($matches[3] !== '' && $matches[3] !== null) {
- if ($matches[3] !== '-') {
- $error = 'A hyphen must be used between the earliest and latest year';
- $phpcsFile->addError($error, $tag, 'CopyrightHyphen');
- }
-
- if ($matches[4] !== '' && $matches[4] !== null && $matches[4] < $matches[1]) {
- $error = "Invalid year span \"$matches[1]$matches[3]$matches[4]\" found; consider \"$matches[4]-$matches[1]\" instead";
- $phpcsFile->addWarning($error, $tag, 'InvalidCopyright');
- }
- }
- } else {
- $error = '@copyright tag must contain a year and the name of the copyright holder';
- $phpcsFile->addError($error, $tag, 'IncompleteCopyright');
- }
- }//end foreach
-
- }//end processCopyright()
-
-
- /**
- * Process the license tag.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tags The tokens for these tags.
- *
- * @return void
- */
- protected function processLicense($phpcsFile, array $tags)
- {
- $tokens = $phpcsFile->getTokens();
- foreach ($tags as $tag) {
- if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- // No content.
- continue;
- }
-
- $content = $tokens[($tag + 2)]['content'];
- $matches = array();
- preg_match('/^([^\s]+)\s+(.*)/', $content, $matches);
- if (count($matches) !== 3) {
- $error = '@license tag must contain a URL and a license name';
- $phpcsFile->addError($error, $tag, 'IncompleteLicense');
- }
- }
-
- }//end processLicense()
-
-
- /**
- * Process the version tag.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $tags The tokens for these tags.
- *
- * @return void
- */
- protected function processVersion($phpcsFile, array $tags)
- {
- $tokens = $phpcsFile->getTokens();
- foreach ($tags as $tag) {
- if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- // No content.
- continue;
- }
-
- $content = $tokens[($tag + 2)]['content'];
- if (strstr($content, 'CVS:') === false
- && strstr($content, 'SVN:') === false
- && strstr($content, 'GIT:') === false
- && strstr($content, 'HG:') === false
- ) {
- $error = 'Invalid version "%s" in file comment; consider "CVS: <cvs_id>" or "SVN: <svn_id>" or "GIT: <git_id>" or "HG: <hg_id>" instead';
- $data = array($content);
- $phpcsFile->addWarning($error, $tag, 'InvalidVersion', $data);
- }
- }
-
- }//end processVersion()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php
deleted file mode 100644
index f35eefc4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php
+++ /dev/null
@@ -1,462 +0,0 @@
-<?php
-/**
- * Parses and verifies the doc comments for functions.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class FunctionCommentSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_FUNCTION);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $find = Tokens::$methodPrefixes;
- $find[] = T_WHITESPACE;
-
- $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true);
- if ($tokens[$commentEnd]['code'] === T_COMMENT) {
- // Inline comments might just be closing comments for
- // control structures or functions instead of function comments
- // using the wrong comment type. If there is other code on the line,
- // assume they relate to that code.
- $prev = $phpcsFile->findPrevious($find, ($commentEnd - 1), null, true);
- if ($prev !== false && $tokens[$prev]['line'] === $tokens[$commentEnd]['line']) {
- $commentEnd = $prev;
- }
- }
-
- if ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
- && $tokens[$commentEnd]['code'] !== T_COMMENT
- ) {
- $phpcsFile->addError('Missing function doc comment', $stackPtr, 'Missing');
- $phpcsFile->recordMetric($stackPtr, 'Function has doc comment', 'no');
- return;
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Function has doc comment', 'yes');
- }
-
- if ($tokens[$commentEnd]['code'] === T_COMMENT) {
- $phpcsFile->addError('You must use "/**" style comments for a function comment', $stackPtr, 'WrongStyle');
- return;
- }
-
- if ($tokens[$commentEnd]['line'] !== ($tokens[$stackPtr]['line'] - 1)) {
- $error = 'There must be no blank lines after the function comment';
- $phpcsFile->addError($error, $commentEnd, 'SpacingAfter');
- }
-
- $commentStart = $tokens[$commentEnd]['comment_opener'];
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- if ($tokens[$tag]['content'] === '@see') {
- // Make sure the tag isn't empty.
- $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $tag, $commentEnd);
- if ($string === false || $tokens[$string]['line'] !== $tokens[$tag]['line']) {
- $error = 'Content missing for @see tag in function comment';
- $phpcsFile->addError($error, $tag, 'EmptySees');
- }
- }
- }
-
- $this->processReturn($phpcsFile, $stackPtr, $commentStart);
- $this->processThrows($phpcsFile, $stackPtr, $commentStart);
- $this->processParams($phpcsFile, $stackPtr, $commentStart);
-
- }//end process()
-
-
- /**
- * Process the return comment of this function comment.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- *
- * @return void
- */
- protected function processReturn(File $phpcsFile, $stackPtr, $commentStart)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Skip constructor and destructor.
- $methodName = $phpcsFile->getDeclarationName($stackPtr);
- $isSpecialMethod = ($methodName === '__construct' || $methodName === '__destruct');
-
- $return = null;
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- if ($tokens[$tag]['content'] === '@return') {
- if ($return !== null) {
- $error = 'Only 1 @return tag is allowed in a function comment';
- $phpcsFile->addError($error, $tag, 'DuplicateReturn');
- return;
- }
-
- $return = $tag;
- }
- }
-
- if ($isSpecialMethod === true) {
- return;
- }
-
- if ($return !== null) {
- $content = $tokens[($return + 2)]['content'];
- if (empty($content) === true || $tokens[($return + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- $error = 'Return type missing for @return tag in function comment';
- $phpcsFile->addError($error, $return, 'MissingReturnType');
- }
- } else {
- $error = 'Missing @return tag in function comment';
- $phpcsFile->addError($error, $tokens[$commentStart]['comment_closer'], 'MissingReturn');
- }//end if
-
- }//end processReturn()
-
-
- /**
- * Process any throw tags that this function comment has.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- *
- * @return void
- */
- protected function processThrows(File $phpcsFile, $stackPtr, $commentStart)
- {
- $tokens = $phpcsFile->getTokens();
-
- $throws = array();
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- if ($tokens[$tag]['content'] !== '@throws') {
- continue;
- }
-
- $exception = null;
- $comment = null;
- if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
- $matches = array();
- preg_match('/([^\s]+)(?:\s+(.*))?/', $tokens[($tag + 2)]['content'], $matches);
- $exception = $matches[1];
- if (isset($matches[2]) === true) {
- $comment = $matches[2];
- }
- }
-
- if ($exception === null) {
- $error = 'Exception type missing for @throws tag in function comment';
- $phpcsFile->addError($error, $tag, 'InvalidThrows');
- }
- }//end foreach
-
- }//end processThrows()
-
-
- /**
- * Process the function parameter comments.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- *
- * @return void
- */
- protected function processParams(File $phpcsFile, $stackPtr, $commentStart)
- {
- $tokens = $phpcsFile->getTokens();
-
- $params = array();
- $maxType = 0;
- $maxVar = 0;
- foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
- if ($tokens[$tag]['content'] !== '@param') {
- continue;
- }
-
- $type = '';
- $typeSpace = 0;
- $var = '';
- $varSpace = 0;
- $comment = '';
- $commentEnd = 0;
- $commentTokens = array();
-
- if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
- $matches = array();
- preg_match('/([^$&.]+)(?:((?:\.\.\.)?(?:\$|&)[^\s]+)(?:(\s+)(.*))?)?/', $tokens[($tag + 2)]['content'], $matches);
-
- if (empty($matches) === false) {
- $typeLen = strlen($matches[1]);
- $type = trim($matches[1]);
- $typeSpace = ($typeLen - strlen($type));
- $typeLen = strlen($type);
- if ($typeLen > $maxType) {
- $maxType = $typeLen;
- }
- }
-
- if (isset($matches[2]) === true) {
- $var = $matches[2];
- $varLen = strlen($var);
- if ($varLen > $maxVar) {
- $maxVar = $varLen;
- }
-
- if (isset($matches[4]) === true) {
- $varSpace = strlen($matches[3]);
- $comment = $matches[4];
-
- // Any strings until the next tag belong to this comment.
- if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) {
- $end = $tokens[$commentStart]['comment_tags'][($pos + 1)];
- } else {
- $end = $tokens[$commentStart]['comment_closer'];
- }
-
- for ($i = ($tag + 3); $i < $end; $i++) {
- if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) {
- $comment .= ' '.$tokens[$i]['content'];
- $commentEnd = $i;
- $commentTokens[] = $i;
- }
- }
- } else {
- $error = 'Missing parameter comment';
- $phpcsFile->addError($error, $tag, 'MissingParamComment');
- }//end if
- } else {
- $error = 'Missing parameter name';
- $phpcsFile->addError($error, $tag, 'MissingParamName');
- }//end if
- } else {
- $error = 'Missing parameter type';
- $phpcsFile->addError($error, $tag, 'MissingParamType');
- }//end if
-
- $params[] = array(
- 'tag' => $tag,
- 'type' => $type,
- 'var' => $var,
- 'comment' => $comment,
- 'comment_end' => $commentEnd,
- 'comment_tokens' => $commentTokens,
- 'type_space' => $typeSpace,
- 'var_space' => $varSpace,
- );
- }//end foreach
-
- $realParams = $phpcsFile->getMethodParameters($stackPtr);
- $foundParams = array();
-
- // We want to use ... for all variable length arguments, so add
- // this prefix to the variable name so comparisons are easier.
- foreach ($realParams as $pos => $param) {
- if ($param['variable_length'] === true) {
- $realParams[$pos]['name'] = '...'.$realParams[$pos]['name'];
- }
- }
-
- foreach ($params as $pos => $param) {
- if ($param['var'] === '') {
- continue;
- }
-
- $foundParams[] = $param['var'];
-
- // Check number of spaces after the type.
- $spaces = ($maxType - strlen($param['type']) + 1);
- if ($param['type_space'] !== $spaces) {
- $error = 'Expected %s spaces after parameter type; %s found';
- $data = array(
- $spaces,
- $param['type_space'],
- );
-
- $fix = $phpcsFile->addFixableError($error, $param['tag'], 'SpacingAfterParamType', $data);
- if ($fix === true) {
- $commentToken = ($param['tag'] + 2);
-
- $content = $param['type'];
- $content .= str_repeat(' ', $spaces);
- $content .= $param['var'];
- $content .= str_repeat(' ', $param['var_space']);
-
- $wrapLength = ($tokens[$commentToken]['length'] - $param['type_space'] - $param['var_space'] - strlen($param['type']) - strlen($param['var']));
-
- $star = $phpcsFile->findPrevious(T_DOC_COMMENT_STAR, $param['tag']);
- $spaceLength = (strlen($content) + $tokens[($commentToken - 1)]['length'] + $tokens[($commentToken - 2)]['length']);
-
- $padding = str_repeat(' ', ($tokens[$star]['column'] - 1));
- $padding .= '* ';
- $padding .= str_repeat(' ', $spaceLength);
-
- $content .= wordwrap(
- $param['comment'],
- $wrapLength,
- $phpcsFile->eolChar.$padding
- );
-
- $phpcsFile->fixer->replaceToken($commentToken, $content);
- for ($i = ($commentToken + 1); $i <= $param['comment_end']; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
- }//end if
- }//end if
-
- // Make sure the param name is correct.
- if (isset($realParams[$pos]) === true) {
- $realName = $realParams[$pos]['name'];
- if ($realName !== $param['var']) {
- $code = 'ParamNameNoMatch';
- $data = array(
- $param['var'],
- $realName,
- );
-
- $error = 'Doc comment for parameter %s does not match ';
- if (strtolower($param['var']) === strtolower($realName)) {
- $error .= 'case of ';
- $code = 'ParamNameNoCaseMatch';
- }
-
- $error .= 'actual variable name %s';
-
- $phpcsFile->addError($error, $param['tag'], $code, $data);
- }
- } else if (substr($param['var'], -4) !== ',...') {
- // We must have an extra parameter comment.
- $error = 'Superfluous parameter comment';
- $phpcsFile->addError($error, $param['tag'], 'ExtraParamComment');
- }//end if
-
- if ($param['comment'] === '') {
- continue;
- }
-
- // Check number of spaces after the param name.
- $spaces = ($maxVar - strlen($param['var']) + 1);
- if ($param['var_space'] !== $spaces) {
- $error = 'Expected %s spaces after parameter name; %s found';
- $data = array(
- $spaces,
- $param['var_space'],
- );
-
- $fix = $phpcsFile->addFixableError($error, $param['tag'], 'SpacingAfterParamName', $data);
- if ($fix === true) {
- $commentToken = ($param['tag'] + 2);
-
- $content = $param['type'];
- $content .= str_repeat(' ', $param['type_space']);
- $content .= $param['var'];
- $content .= str_repeat(' ', $spaces);
-
- $wrapLength = ($tokens[$commentToken]['length'] - $param['type_space'] - $param['var_space'] - strlen($param['type']) - strlen($param['var']));
-
- $star = $phpcsFile->findPrevious(T_DOC_COMMENT_STAR, $param['tag']);
- $spaceLength = (strlen($content) + $tokens[($commentToken - 1)]['length'] + $tokens[($commentToken - 2)]['length']);
-
- $padding = str_repeat(' ', ($tokens[$star]['column'] - 1));
- $padding .= '* ';
- $padding .= str_repeat(' ', $spaceLength);
-
- $content .= wordwrap(
- $param['comment'],
- $wrapLength,
- $phpcsFile->eolChar.$padding
- );
-
- $phpcsFile->fixer->replaceToken($commentToken, $content);
- for ($i = ($commentToken + 1); $i <= $param['comment_end']; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
- }//end if
- }//end if
-
- // Check the alignment of multi-line param comments.
- if ($param['tag'] !== $param['comment_end']) {
- $wrapLength = ($tokens[($param['tag'] + 2)]['length'] - $param['type_space'] - $param['var_space'] - strlen($param['type']) - strlen($param['var']));
-
- $startColumn = ($tokens[($param['tag'] + 2)]['column'] + $tokens[($param['tag'] + 2)]['length'] - $wrapLength);
-
- $star = $phpcsFile->findPrevious(T_DOC_COMMENT_STAR, $param['tag']);
- $expected = ($startColumn - $tokens[$star]['column'] - 1);
-
- foreach ($param['comment_tokens'] as $commentToken) {
- if ($tokens[$commentToken]['column'] === $startColumn) {
- continue;
- }
-
- $found = 0;
- if ($tokens[($commentToken - 1)]['code'] === T_DOC_COMMENT_WHITESPACE) {
- $found = $tokens[($commentToken - 1)]['length'];
- }
-
- $error = 'Parameter comment not aligned correctly; expected %s spaces but found %s';
- $data = array(
- $expected,
- $found,
- );
- $fix = $phpcsFile->addFixableError($error, $commentToken, 'ParamCommentAlignment', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $expected);
- if ($tokens[($commentToken - 1)]['code'] === T_DOC_COMMENT_WHITESPACE) {
- $phpcsFile->fixer->replaceToken(($commentToken - 1), $padding);
- } else {
- $phpcsFile->fixer->addContentBefore($commentToken, $padding);
- }
- }
- }//end foreach
- }//end if
- }//end foreach
-
- $realNames = array();
- foreach ($realParams as $realParam) {
- $realNames[] = $realParam['name'];
- }
-
- // Report missing comments.
- $diff = array_diff($realNames, $foundParams);
- foreach ($diff as $neededParam) {
- $error = 'Doc comment for parameter "%s" missing';
- $data = array($neededParam);
- $phpcsFile->addError($error, $commentStart, 'MissingParamTag', $data);
- }
-
- }//end processParams()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/InlineCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/InlineCommentSniff.php
deleted file mode 100644
index 0bd1a34c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/InlineCommentSniff.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
- * Checks that no Perl-style comments are used.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class InlineCommentSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_COMMENT);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['content']{0} === '#') {
- $phpcsFile->recordMetric($stackPtr, 'Inline comment style', '# ...');
-
- $error = 'Perl-style comments are not allowed. Use "// Comment."';
- $error .= ' or "/* comment */" instead.';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'WrongStyle');
- if ($fix === true) {
- $newComment = ltrim($tokens[$stackPtr]['content'], '# ');
- $newComment = '// '.$newComment;
- $phpcsFile->fixer->replaceToken($stackPtr, $newComment);
- }
- } else if ($tokens[$stackPtr]['content']{0} === '/'
- && $tokens[$stackPtr]['content']{1} === '/'
- ) {
- $phpcsFile->recordMetric($stackPtr, 'Inline comment style', '// ...');
- } else if ($tokens[$stackPtr]['content']{0} === '/'
- && $tokens[$stackPtr]['content']{1} === '*'
- ) {
- $phpcsFile->recordMetric($stackPtr, 'Inline comment style', '/* ... */');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/ControlStructures/ControlSignatureSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/ControlStructures/ControlSignatureSniff.php
deleted file mode 100644
index 0afb63c9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/ControlStructures/ControlSignatureSniff.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-/**
- * Verifies that control statements conform to their coding standards.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\AbstractPatternSniff;
-
-class ControlSignatureSniff extends AbstractPatternSniff
-{
-
- /**
- * If true, comments will be ignored if they are found in the code.
- *
- * @var boolean
- */
- public $ignoreComments = true;
-
-
- /**
- * Returns the patterns that this test wishes to verify.
- *
- * @return string[]
- */
- protected function getPatterns()
- {
- return array(
- 'do {EOL...} while (...);EOL',
- 'while (...) {EOL',
- 'for (...) {EOL',
- 'if (...) {EOL',
- 'foreach (...) {EOL',
- '} else if (...) {EOL',
- '} elseif (...) {EOL',
- '} else {EOL',
- 'do {EOL',
- );
-
- }//end getPatterns()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/ControlStructures/MultiLineConditionSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/ControlStructures/MultiLineConditionSniff.php
deleted file mode 100644
index f6f6655c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/ControlStructures/MultiLineConditionSniff.php
+++ /dev/null
@@ -1,267 +0,0 @@
-<?php
-/**
- * Ensure multi-line IF conditions are defined correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class MultiLineConditionSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_IF,
- T_ELSEIF,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['parenthesis_opener']) === false) {
- return;
- }
-
- $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
- $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
- $spaceAfterOpen = 0;
- if ($tokens[($openBracket + 1)]['code'] === T_WHITESPACE) {
- if (strpos($tokens[($openBracket + 1)]['content'], $phpcsFile->eolChar) !== false) {
- $spaceAfterOpen = 'newline';
- } else {
- $spaceAfterOpen = strlen($tokens[($openBracket + 1)]['content']);
- }
- }
-
- if ($spaceAfterOpen !== 0) {
- $error = 'First condition of a multi-line IF statement must directly follow the opening parenthesis';
- $fix = $phpcsFile->addFixableError($error, ($openBracket + 1), 'SpacingAfterOpenBrace');
- if ($fix === true) {
- if ($spaceAfterOpen === 'newline') {
- $phpcsFile->fixer->replaceToken(($openBracket + 1), '');
- } else {
- $phpcsFile->fixer->replaceToken(($openBracket + 1), '');
- }
- }
- }
-
- // We need to work out how far indented the if statement
- // itself is, so we can work out how far to indent conditions.
- $statementIndent = 0;
- for ($i = ($stackPtr - 1); $i >= 0; $i--) {
- if ($tokens[$i]['line'] !== $tokens[$stackPtr]['line']) {
- $i++;
- break;
- }
- }
-
- if ($i >= 0 && $tokens[$i]['code'] === T_WHITESPACE) {
- $statementIndent = strlen($tokens[$i]['content']);
- }
-
- // Each line between the parenthesis should be indented 4 spaces
- // and start with an operator, unless the line is inside a
- // function call, in which case it is ignored.
- $prevLine = $tokens[$openBracket]['line'];
- for ($i = ($openBracket + 1); $i <= $closeBracket; $i++) {
- if ($i === $closeBracket && $tokens[$openBracket]['line'] !== $tokens[$i]['line']) {
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($i - 1), null, true);
- if ($tokens[$prev]['line'] === $tokens[$i]['line']) {
- // Closing bracket is on the same line as a condition.
- $error = 'Closing parenthesis of a multi-line IF statement must be on a new line';
- $fix = $phpcsFile->addFixableError($error, $closeBracket, 'CloseBracketNewLine');
- if ($fix === true) {
- // Account for a comment at the end of the line.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($closeBracket + 1), null, true);
- if ($tokens[$next]['code'] !== T_COMMENT) {
- $phpcsFile->fixer->addNewlineBefore($closeBracket);
- } else {
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($next + 1), null, true);
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($closeBracket, '');
- $phpcsFile->fixer->addContentBefore($next, ')');
- $phpcsFile->fixer->endChangeset();
- }
- }
- }
- }//end if
-
- if ($tokens[$i]['line'] !== $prevLine) {
- if ($tokens[$i]['line'] === $tokens[$closeBracket]['line']) {
- $next = $phpcsFile->findNext(T_WHITESPACE, $i, null, true);
- if ($next !== $closeBracket) {
- $expectedIndent = ($statementIndent + $this->indent);
- } else {
- // Closing brace needs to be indented to the same level
- // as the statement.
- $expectedIndent = $statementIndent;
- }//end if
- } else {
- $expectedIndent = ($statementIndent + $this->indent);
- }//end if
-
- if ($tokens[$i]['code'] === T_COMMENT) {
- $prevLine = $tokens[$i]['line'];
- continue;
- }
-
- // We changed lines, so this should be a whitespace indent token.
- if ($tokens[$i]['code'] !== T_WHITESPACE) {
- $foundIndent = 0;
- } else {
- $foundIndent = strlen($tokens[$i]['content']);
- }
-
- if ($expectedIndent !== $foundIndent) {
- $error = 'Multi-line IF statement not indented correctly; expected %s spaces but found %s';
- $data = array(
- $expectedIndent,
- $foundIndent,
- );
-
- $fix = $phpcsFile->addFixableError($error, $i, 'Alignment', $data);
- if ($fix === true) {
- $spaces = str_repeat(' ', $expectedIndent);
- if ($foundIndent === 0) {
- $phpcsFile->fixer->addContentBefore($i, $spaces);
- } else {
- $phpcsFile->fixer->replaceToken($i, $spaces);
- }
- }
- }
-
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, $i, null, true);
- if ($next !== $closeBracket) {
- if (isset(Tokens::$booleanOperators[$tokens[$next]['code']]) === false) {
- $error = 'Each line in a multi-line IF statement must begin with a boolean operator';
- $fix = $phpcsFile->addFixableError($error, $i, 'StartWithBoolean');
- if ($fix === true) {
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($i - 1), $openBracket, true);
- if (isset(Tokens::$booleanOperators[$tokens[$prev]['code']]) === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($prev, '');
- $phpcsFile->fixer->addContentBefore($next, $tokens[$prev]['content'].' ');
- $phpcsFile->fixer->endChangeset();
- } else {
- for ($x = ($prev + 1); $x < $next; $x++) {
- $phpcsFile->fixer->replaceToken($x, '');
- }
- }
- }
- }
- }//end if
-
- $prevLine = $tokens[$i]['line'];
- }//end if
-
- if ($tokens[$i]['code'] === T_STRING) {
- $next = $phpcsFile->findNext(T_WHITESPACE, ($i + 1), null, true);
- if ($tokens[$next]['code'] === T_OPEN_PARENTHESIS) {
- // This is a function call, so skip to the end as they
- // have their own indentation rules.
- $i = $tokens[$next]['parenthesis_closer'];
- $prevLine = $tokens[$i]['line'];
- continue;
- }
- }
- }//end for
-
- // From here on, we are checking the spacing of the opening and closing
- // braces. If this IF statement does not use braces, we end here.
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- return;
- }
-
- // The opening brace needs to be one space away from the closing parenthesis.
- $openBrace = $tokens[$stackPtr]['scope_opener'];
- $next = $phpcsFile->findNext(T_WHITESPACE, ($closeBracket + 1), $openBrace, true);
- if ($next !== false) {
- // Probably comments in between tokens, so don't check.
- return;
- }
-
- if ($tokens[$openBrace]['line'] > $tokens[$closeBracket]['line']) {
- $length = -1;
- } else if ($openBrace === ($closeBracket + 1)) {
- $length = 0;
- } else if ($openBrace === ($closeBracket + 2)
- && $tokens[($closeBracket + 1)]['code'] === T_WHITESPACE
- ) {
- $length = strlen($tokens[($closeBracket + 1)]['content']);
- } else {
- // Confused, so don't check.
- $length = 1;
- }
-
- if ($length === 1) {
- return;
- }
-
- $data = array($length);
- $code = 'SpaceBeforeOpenBrace';
-
- $error = 'There must be a single space between the closing parenthesis and the opening brace of a multi-line IF statement; found ';
- if ($length === -1) {
- $error .= 'newline';
- $code = 'NewlineBeforeOpenBrace';
- } else {
- $error .= '%s spaces';
- }
-
- $fix = $phpcsFile->addFixableError($error, ($closeBracket + 1), $code, $data);
- if ($fix === true) {
- if ($length === 0) {
- $phpcsFile->fixer->addContent($closeBracket, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($closeBracket + 1), ' ');
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Files/IncludingFileSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Files/IncludingFileSniff.php
deleted file mode 100644
index 6833f0fe..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Files/IncludingFileSniff.php
+++ /dev/null
@@ -1,136 +0,0 @@
-<?php
-/**
- * Ensure include_once is used in conditional situations and require_once is used elsewhere.
- *
- * Also checks that brackets do not surround the file being included.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class IncludingFileSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_INCLUDE_ONCE,
- T_REQUIRE_ONCE,
- T_REQUIRE,
- T_INCLUDE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $nextToken = $phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 1), null, true);
- if ($tokens[$nextToken]['code'] === T_OPEN_PARENTHESIS) {
- $error = '"%s" is a statement not a function; no parentheses are required';
- $data = array($tokens[$stackPtr]['content']);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'BracketsNotRequired', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($tokens[$nextToken]['parenthesis_closer'], '');
- if ($tokens[($nextToken - 1)]['code'] !== T_WHITESPACE) {
- $phpcsFile->fixer->replaceToken($nextToken, ' ');
- } else {
- $phpcsFile->fixer->replaceToken($nextToken, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- if (count($tokens[$stackPtr]['conditions']) !== 0) {
- $inCondition = true;
- } else {
- $inCondition = false;
- }
-
- // Check to see if this including statement is within the parenthesis
- // of a condition. If that's the case then we need to process it as being
- // within a condition, as they are checking the return value.
- if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- foreach ($tokens[$stackPtr]['nested_parenthesis'] as $left => $right) {
- if (isset($tokens[$left]['parenthesis_owner']) === true) {
- $inCondition = true;
- }
- }
- }
-
- // Check to see if they are assigning the return value of this
- // including call. If they are then they are probably checking it, so
- // it's conditional.
- $previous = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if (isset(Tokens::$assignmentTokens[$tokens[$previous]['code']]) === true) {
- // The have assigned the return value to it, so its conditional.
- $inCondition = true;
- }
-
- $tokenCode = $tokens[$stackPtr]['code'];
- if ($inCondition === true) {
- // We are inside a conditional statement. We need an include_once.
- if ($tokenCode === T_REQUIRE_ONCE) {
- $error = 'File is being conditionally included; ';
- $error .= 'use "include_once" instead';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'UseIncludeOnce');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, 'include_once');
- }
- } else if ($tokenCode === T_REQUIRE) {
- $error = 'File is being conditionally included; ';
- $error .= 'use "include" instead';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'UseInclude');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, 'include');
- }
- }
- } else {
- // We are unconditionally including, we need a require_once.
- if ($tokenCode === T_INCLUDE_ONCE) {
- $error = 'File is being unconditionally included; ';
- $error .= 'use "require_once" instead';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'UseRequireOnce');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, 'require_once');
- }
- } else if ($tokenCode === T_INCLUDE) {
- $error = 'File is being unconditionally included; ';
- $error .= 'use "require" instead';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'UseRequire');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, 'require');
- }
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Formatting/MultiLineAssignmentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Formatting/MultiLineAssignmentSniff.php
deleted file mode 100644
index 99f6dc3f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Formatting/MultiLineAssignmentSniff.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-/**
- * If an assignment goes over two lines, ensure the equal sign is indented.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\Formatting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class MultiLineAssignmentSniff implements Sniff
-{
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_EQUAL);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Equal sign can't be the last thing on the line.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($next === false) {
- // Bad assignment.
- return;
- }
-
- if ($tokens[$next]['line'] !== $tokens[$stackPtr]['line']) {
- $error = 'Multi-line assignments must have the equal sign on the second line';
- $phpcsFile->addError($error, $stackPtr, 'EqualSignLine');
- return;
- }
-
- // Make sure it is the first thing on the line, otherwise we ignore it.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), false, true);
- if ($prev === false) {
- // Bad assignment.
- return;
- }
-
- if ($tokens[$prev]['line'] === $tokens[$stackPtr]['line']) {
- return;
- }
-
- // Find the required indent based on the ident of the previous line.
- $assignmentIndent = 0;
- $prevLine = $tokens[$prev]['line'];
- for ($i = ($prev - 1); $i >= 0; $i--) {
- if ($tokens[$i]['line'] !== $prevLine) {
- $i++;
- break;
- }
- }
-
- if ($tokens[$i]['code'] === T_WHITESPACE) {
- $assignmentIndent = strlen($tokens[$i]['content']);
- }
-
- // Find the actual indent.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1));
-
- $expectedIndent = ($assignmentIndent + $this->indent);
- $foundIndent = strlen($tokens[$prev]['content']);
- if ($foundIndent !== $expectedIndent) {
- $error = 'Multi-line assignment not indented correctly; expected %s spaces but found %s';
- $data = array(
- $expectedIndent,
- $foundIndent,
- );
- $phpcsFile->addError($error, $stackPtr, 'Indent', $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/FunctionCallSignatureSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/FunctionCallSignatureSniff.php
deleted file mode 100644
index 3f3de524..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/FunctionCallSignatureSniff.php
+++ /dev/null
@@ -1,548 +0,0 @@
-<?php
-/**
- * Ensures function calls are formatted correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class FunctionCallSignatureSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
- /**
- * If TRUE, multiple arguments can be defined per line in a multi-line call.
- *
- * @var boolean
- */
- public $allowMultipleArguments = true;
-
- /**
- * How many spaces should follow the opening bracket.
- *
- * @var integer
- */
- public $requiredSpacesAfterOpen = 0;
-
- /**
- * How many spaces should precede the closing bracket.
- *
- * @var integer
- */
- public $requiredSpacesBeforeClose = 0;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return Tokens::$functionNameTokens;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $this->requiredSpacesAfterOpen = (int) $this->requiredSpacesAfterOpen;
- $this->requiredSpacesBeforeClose = (int) $this->requiredSpacesBeforeClose;
- $tokens = $phpcsFile->getTokens();
-
- // Find the next non-empty token.
- $openBracket = $phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 1), null, true);
-
- if ($tokens[$openBracket]['code'] !== T_OPEN_PARENTHESIS) {
- // Not a function call.
- return;
- }
-
- if (isset($tokens[$openBracket]['parenthesis_closer']) === false) {
- // Not a function call.
- return;
- }
-
- // Find the previous non-empty token.
- $search = Tokens::$emptyTokens;
- $search[] = T_BITWISE_AND;
- $previous = $phpcsFile->findPrevious($search, ($stackPtr - 1), null, true);
- if ($tokens[$previous]['code'] === T_FUNCTION) {
- // It's a function definition, not a function call.
- return;
- }
-
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
-
- if (($stackPtr + 1) !== $openBracket) {
- // Checking this: $value = my_function[*](...).
- $error = 'Space before opening parenthesis of function call prohibited';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeOpenBracket');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($stackPtr + 1); $i < $openBracket; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- // Modify the bracket as well to ensure a conflict if the bracket
- // has been changed in some way by another sniff.
- $phpcsFile->fixer->replaceToken($openBracket, '(');
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($closeBracket + 1), null, true);
- if ($tokens[$next]['code'] === T_SEMICOLON) {
- if (isset(Tokens::$emptyTokens[$tokens[($closeBracket + 1)]['code']]) === true) {
- $error = 'Space after closing parenthesis of function call prohibited';
- $fix = $phpcsFile->addFixableError($error, $closeBracket, 'SpaceAfterCloseBracket');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($closeBracket + 1); $i < $next; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- // Modify the bracket as well to ensure a conflict if the bracket
- // has been changed in some way by another sniff.
- $phpcsFile->fixer->replaceToken($closeBracket, ')');
- $phpcsFile->fixer->endChangeset();
- }
- }
- }
-
- // Check if this is a single line or multi-line function call.
- if ($this->isMultiLineCall($phpcsFile, $stackPtr, $openBracket, $tokens) === true) {
- $this->processMultiLineCall($phpcsFile, $stackPtr, $openBracket, $tokens);
- } else {
- $this->processSingleLineCall($phpcsFile, $stackPtr, $openBracket, $tokens);
- }
-
- }//end process()
-
-
- /**
- * Determine if this is a multi-line function call.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $openBracket The position of the opening bracket
- * in the stack passed in $tokens.
- * @param array $tokens The stack of tokens that make up
- * the file.
- *
- * @return void
- */
- public function isMultiLineCall(File $phpcsFile, $stackPtr, $openBracket, $tokens)
- {
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
- if ($tokens[$openBracket]['line'] !== $tokens[$closeBracket]['line']) {
- return true;
- }
-
- return false;
-
- }//end isMultiLineCall()
-
-
- /**
- * Processes single-line calls.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $openBracket The position of the opening bracket
- * in the stack passed in $tokens.
- * @param array $tokens The stack of tokens that make up
- * the file.
- *
- * @return void
- */
- public function processSingleLineCall(File $phpcsFile, $stackPtr, $openBracket, $tokens)
- {
- $closer = $tokens[$openBracket]['parenthesis_closer'];
- if ($openBracket === ($closer - 1)) {
- return;
- }
-
- if ($this->requiredSpacesAfterOpen === 0 && $tokens[($openBracket + 1)]['code'] === T_WHITESPACE) {
- // Checking this: $value = my_function([*]...).
- $error = 'Space after opening parenthesis of function call prohibited';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterOpenBracket');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($openBracket + 1), '');
- }
- } else if ($this->requiredSpacesAfterOpen > 0) {
- $spaceAfterOpen = 0;
- if ($tokens[($openBracket + 1)]['code'] === T_WHITESPACE) {
- $spaceAfterOpen = strlen($tokens[($openBracket + 1)]['content']);
- }
-
- if ($spaceAfterOpen !== $this->requiredSpacesAfterOpen) {
- $error = 'Expected %s spaces after opening bracket; %s found';
- $data = array(
- $this->requiredSpacesAfterOpen,
- $spaceAfterOpen,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterOpenBracket', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesAfterOpen);
- if ($spaceAfterOpen === 0) {
- $phpcsFile->fixer->addContent($openBracket, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($openBracket + 1), $padding);
- }
- }
- }
- }//end if
-
- // Checking this: $value = my_function(...[*]).
- $spaceBeforeClose = 0;
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($closer - 1), $openBracket, true);
- if ($tokens[$prev]['code'] === T_END_HEREDOC || $tokens[$prev]['code'] === T_END_NOWDOC) {
- // Need a newline after these tokens, so ignore this rule.
- return;
- }
-
- if ($tokens[$prev]['line'] !== $tokens[$closer]['line']) {
- $spaceBeforeClose = 'newline';
- } else if ($tokens[($closer - 1)]['code'] === T_WHITESPACE) {
- $spaceBeforeClose = strlen($tokens[($closer - 1)]['content']);
- }
-
- if ($spaceBeforeClose !== $this->requiredSpacesBeforeClose) {
- $error = 'Expected %s spaces before closing bracket; %s found';
- $data = array(
- $this->requiredSpacesBeforeClose,
- $spaceBeforeClose,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeCloseBracket', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesBeforeClose);
-
- if ($spaceBeforeClose === 0) {
- $phpcsFile->fixer->addContentBefore($closer, $padding);
- } else if ($spaceBeforeClose === 'newline') {
- $phpcsFile->fixer->beginChangeset();
-
- $closingContent = ')';
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($closer + 1), null, true);
- if ($tokens[$next]['code'] === T_SEMICOLON) {
- $closingContent .= ';';
- for ($i = ($closer + 1); $i <= $next; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
- }
-
- // We want to jump over any whitespace or inline comment and
- // move the closing parenthesis after any other token.
- $prev = ($closer - 1);
- while (isset(Tokens::$emptyTokens[$tokens[$prev]['code']]) === true) {
- if (($tokens[$prev]['code'] === T_COMMENT)
- && (strpos($tokens[$prev]['content'], '*/') !== false)
- ) {
- break;
- }
-
- $prev--;
- }
-
- $phpcsFile->fixer->addContent($prev, $padding.$closingContent);
-
- $prevNonWhitespace = $phpcsFile->findPrevious(T_WHITESPACE, ($closer - 1), null, true);
- for ($i = ($prevNonWhitespace + 1); $i <= $closer; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- } else {
- $phpcsFile->fixer->replaceToken(($closer - 1), $padding);
- }//end if
- }//end if
- }//end if
-
- }//end processSingleLineCall()
-
-
- /**
- * Processes multi-line calls.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $openBracket The position of the opening bracket
- * in the stack passed in $tokens.
- * @param array $tokens The stack of tokens that make up
- * the file.
- *
- * @return void
- */
- public function processMultiLineCall(File $phpcsFile, $stackPtr, $openBracket, $tokens)
- {
- // We need to work out how far indented the function
- // call itself is, so we can work out how far to
- // indent the arguments.
- $start = $phpcsFile->findStartOfStatement($stackPtr);
- foreach (array('stackPtr', 'start') as $checkToken) {
- $x = $$checkToken;
- for ($i = ($x - 1); $i >= 0; $i--) {
- if ($tokens[$i]['line'] !== $tokens[$x]['line']) {
- $i++;
- break;
- }
- }
-
- if ($i <= 0) {
- $functionIndent = 0;
- } else if ($tokens[$i]['code'] === T_WHITESPACE) {
- $functionIndent = strlen($tokens[$i]['content']);
- } else if ($tokens[$i]['code'] === T_CONSTANT_ENCAPSED_STRING) {
- $functionIndent = 0;
- } else {
- $trimmed = ltrim($tokens[$i]['content']);
- if ($trimmed === '') {
- if ($tokens[$i]['code'] === T_INLINE_HTML) {
- $functionIndent = strlen($tokens[$i]['content']);
- } else {
- $functionIndent = ($tokens[$i]['column'] - 1);
- }
- } else {
- $functionIndent = (strlen($tokens[$i]['content']) - strlen($trimmed));
- }
- }
-
- $varName = $checkToken.'Indent';
- $$varName = $functionIndent;
- }//end foreach
-
- $functionIndent = max($startIndent, $stackPtrIndent);
-
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($openBracket + 1), null, true);
- if ($tokens[$next]['line'] === $tokens[$openBracket]['line']) {
- $error = 'Opening parenthesis of a multi-line function call must be the last content on the line';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContentAfterOpenBracket');
- if ($fix === true) {
- $phpcsFile->fixer->addContent(
- $openBracket,
- $phpcsFile->eolChar.str_repeat(' ', ($functionIndent + $this->indent))
- );
- }
- }
-
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($closeBracket - 1), null, true);
- if ($tokens[$prev]['line'] === $tokens[$closeBracket]['line']) {
- $error = 'Closing parenthesis of a multi-line function call must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $closeBracket, 'CloseBracketLine');
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore(
- $closeBracket,
- $phpcsFile->eolChar.str_repeat(' ', ($functionIndent + $this->indent))
- );
- }
- }
-
- // Each line between the parenthesis should be indented n spaces.
- $lastLine = ($tokens[$openBracket]['line'] - 1);
- $argStart = null;
- $argEnd = null;
- $inArg = false;
-
- // Start processing at the first argument.
- $i = $phpcsFile->findNext(T_WHITESPACE, ($openBracket + 1), null, true);
- if ($tokens[($i - 1)]['code'] === T_WHITESPACE
- && $tokens[($i - 1)]['line'] === $tokens[$i]['line']
- ) {
- // Make sure we check the indent.
- $i--;
- }
-
- for ($i; $i < $closeBracket; $i++) {
- if ($i > $argStart && $i < $argEnd) {
- $inArg = true;
- } else {
- $inArg = false;
- }
-
- if ($tokens[$i]['line'] !== $lastLine) {
- $lastLine = $tokens[$i]['line'];
-
- // Ignore heredoc indentation.
- if (isset(Tokens::$heredocTokens[$tokens[$i]['code']]) === true) {
- continue;
- }
-
- // Ignore multi-line string indentation.
- if (isset(Tokens::$stringTokens[$tokens[$i]['code']]) === true
- && $tokens[$i]['code'] === $tokens[($i - 1)]['code']
- ) {
- continue;
- }
-
- // Ignore inline HTML.
- if ($tokens[$i]['code'] === T_INLINE_HTML) {
- continue;
- }
-
- if ($tokens[$i]['line'] !== $tokens[$openBracket]['line']) {
- // We changed lines, so this should be a whitespace indent token, but first make
- // sure it isn't a blank line because we don't need to check indent unless there
- // is actually some code to indent.
- if ($tokens[$i]['code'] === T_WHITESPACE) {
- $nextCode = $phpcsFile->findNext(T_WHITESPACE, ($i + 1), ($closeBracket + 1), true);
- if ($tokens[$nextCode]['line'] !== $lastLine) {
- if ($inArg === false) {
- $error = 'Empty lines are not allowed in multi-line function calls';
- $fix = $phpcsFile->addFixableError($error, $i, 'EmptyLine');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
- }
-
- continue;
- }
- } else {
- $nextCode = $i;
- }
-
- if ($tokens[$nextCode]['line'] === $tokens[$closeBracket]['line']) {
- // Closing brace needs to be indented to the same level
- // as the function call.
- $inArg = false;
- $expectedIndent = $functionIndent;
- } else {
- $expectedIndent = ($functionIndent + $this->indent);
- }
-
- if ($tokens[$i]['code'] !== T_WHITESPACE
- && $tokens[$i]['code'] !== T_DOC_COMMENT_WHITESPACE
- ) {
- // Just check if it is a multi-line block comment. If so, we can
- // calculate the indent from the whitespace before the content.
- if ($tokens[$i]['code'] === T_COMMENT
- && $tokens[($i - 1)]['code'] === T_COMMENT
- ) {
- $trimmedLength = strlen(ltrim($tokens[$i]['content']));
- if ($trimmedLength === 0) {
- // This is a blank comment line, so indenting it is
- // pointless.
- continue;
- }
-
- $foundIndent = (strlen($tokens[$i]['content']) - $trimmedLength);
- } else {
- $foundIndent = 0;
- }
- } else {
- $foundIndent = strlen($tokens[$i]['content']);
- }
-
- if ($foundIndent < $expectedIndent
- || ($inArg === false
- && $expectedIndent !== $foundIndent)
- ) {
- $error = 'Multi-line function call not indented correctly; expected %s spaces but found %s';
- $data = array(
- $expectedIndent,
- $foundIndent,
- );
-
- $fix = $phpcsFile->addFixableError($error, $i, 'Indent', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $expectedIndent);
- if ($foundIndent === 0) {
- $phpcsFile->fixer->addContentBefore($i, $padding);
- } else {
- if ($tokens[$i]['code'] === T_COMMENT) {
- $comment = $padding.ltrim($tokens[$i]['content']);
- $phpcsFile->fixer->replaceToken($i, $comment);
- } else {
- $phpcsFile->fixer->replaceToken($i, $padding);
- }
- }
- }
- }//end if
- } else {
- $nextCode = $i;
- }//end if
-
- if ($inArg === false) {
- $argStart = $nextCode;
- $argEnd = $phpcsFile->findEndOfStatement($nextCode);
- }
- }//end if
-
- // If we are within an argument we should be ignoring commas
- // as these are not signaling the end of an argument.
- if ($inArg === false && $tokens[$i]['code'] === T_COMMA) {
- $next = $phpcsFile->findNext(array(T_WHITESPACE, T_COMMENT), ($i + 1), $closeBracket, true);
- if ($next === false) {
- continue;
- }
-
- if ($this->allowMultipleArguments === false) {
- // Comma has to be the last token on the line.
- if ($tokens[$i]['line'] === $tokens[$next]['line']) {
- $error = 'Only one argument is allowed per line in a multi-line function call';
- $fix = $phpcsFile->addFixableError($error, $next, 'MultipleArguments');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($x = ($next - 1); $x > $i; $x--) {
- if ($tokens[$x]['code'] !== T_WHITESPACE) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($x, '');
- }
-
- $phpcsFile->fixer->addContentBefore(
- $next,
- $phpcsFile->eolChar.str_repeat(' ', ($functionIndent + $this->indent))
- );
- $phpcsFile->fixer->endChangeset();
- }
- }
- }//end if
-
- $argStart = $next;
- $argEnd = $phpcsFile->findEndOfStatement($next);
- }//end if
- }//end for
-
- }//end processMultiLineCall()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/FunctionDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/FunctionDeclarationSniff.php
deleted file mode 100644
index 2261275d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/FunctionDeclarationSniff.php
+++ /dev/null
@@ -1,432 +0,0 @@
-<?php
-/**
- * Ensure single and multi-line function declarations are defined correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-use PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\OpeningFunctionBraceKernighanRitchieSniff;
-use PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\OpeningFunctionBraceBsdAllmanSniff;
-
-class FunctionDeclarationSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_CLOSURE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['parenthesis_opener']) === false
- || isset($tokens[$stackPtr]['parenthesis_closer']) === false
- || $tokens[$stackPtr]['parenthesis_opener'] === null
- || $tokens[$stackPtr]['parenthesis_closer'] === null
- ) {
- return;
- }
-
- $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
- $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
-
- if (strtolower($tokens[$stackPtr]['content']) === 'function') {
- // Must be one space after the FUNCTION keyword.
- if ($tokens[($stackPtr + 1)]['content'] === $phpcsFile->eolChar) {
- $spaces = 'newline';
- } else if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
- $spaces = strlen($tokens[($stackPtr + 1)]['content']);
- } else {
- $spaces = 0;
- }
-
- if ($spaces !== 1) {
- $error = 'Expected 1 space after FUNCTION keyword; %s found';
- $data = array($spaces);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterFunction', $data);
- if ($fix === true) {
- if ($spaces === 0) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
- }
- }//end if
-
- // Must be one space before the opening parenthesis. For closures, this is
- // enforced by the first check because there is no content between the keywords
- // and the opening parenthesis.
- if ($tokens[$stackPtr]['code'] === T_FUNCTION) {
- if ($tokens[($openBracket - 1)]['content'] === $phpcsFile->eolChar) {
- $spaces = 'newline';
- } else if ($tokens[($openBracket - 1)]['code'] === T_WHITESPACE) {
- $spaces = strlen($tokens[($openBracket - 1)]['content']);
- } else {
- $spaces = 0;
- }
-
- if ($spaces !== 0) {
- $error = 'Expected 0 spaces before opening parenthesis; %s found';
- $data = array($spaces);
- $fix = $phpcsFile->addFixableError($error, $openBracket, 'SpaceBeforeOpenParen', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($openBracket - 1), '');
- }
- }
- }//end if
-
- // Must be one space before and after USE keyword for closures.
- if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
- $use = $phpcsFile->findNext(T_USE, ($closeBracket + 1), $tokens[$stackPtr]['scope_opener']);
- if ($use !== false) {
- if ($tokens[($use + 1)]['code'] !== T_WHITESPACE) {
- $length = 0;
- } else if ($tokens[($use + 1)]['content'] === "\t") {
- $length = '\t';
- } else {
- $length = strlen($tokens[($use + 1)]['content']);
- }
-
- if ($length !== 1) {
- $error = 'Expected 1 space after USE keyword; found %s';
- $data = array($length);
- $fix = $phpcsFile->addFixableError($error, $use, 'SpaceAfterUse', $data);
- if ($fix === true) {
- if ($length === 0) {
- $phpcsFile->fixer->addContent($use, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($use + 1), ' ');
- }
- }
- }
-
- if ($tokens[($use - 1)]['code'] !== T_WHITESPACE) {
- $length = 0;
- } else if ($tokens[($use - 1)]['content'] === "\t") {
- $length = '\t';
- } else {
- $length = strlen($tokens[($use - 1)]['content']);
- }
-
- if ($length !== 1) {
- $error = 'Expected 1 space before USE keyword; found %s';
- $data = array($length);
- $fix = $phpcsFile->addFixableError($error, $use, 'SpaceBeforeUse', $data);
- if ($fix === true) {
- if ($length === 0) {
- $phpcsFile->fixer->addContentBefore($use, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($use - 1), ' ');
- }
- }
- }
- }//end if
- }//end if
-
- if ($this->isMultiLineDeclaration($phpcsFile, $stackPtr, $openBracket, $tokens) === true) {
- $this->processMultiLineDeclaration($phpcsFile, $stackPtr, $tokens);
- } else {
- $this->processSingleLineDeclaration($phpcsFile, $stackPtr, $tokens);
- }
-
- }//end process()
-
-
- /**
- * Determine if this is a multi-line function declaration.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $openBracket The position of the opening bracket
- * in the stack passed in $tokens.
- * @param array $tokens The stack of tokens that make up
- * the file.
- *
- * @return void
- */
- public function isMultiLineDeclaration($phpcsFile, $stackPtr, $openBracket, $tokens)
- {
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
- if ($tokens[$openBracket]['line'] !== $tokens[$closeBracket]['line']) {
- return true;
- }
-
- // Closures may use the USE keyword and so be multi-line in this way.
- if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
- $use = $phpcsFile->findNext(T_USE, ($closeBracket + 1), $tokens[$stackPtr]['scope_opener']);
- if ($use !== false) {
- // If the opening and closing parenthesis of the use statement
- // are also on the same line, this is a single line declaration.
- $open = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($use + 1));
- $close = $tokens[$open]['parenthesis_closer'];
- if ($tokens[$open]['line'] !== $tokens[$close]['line']) {
- return true;
- }
- }
- }
-
- return false;
-
- }//end isMultiLineDeclaration()
-
-
- /**
- * Processes single-line declarations.
- *
- * Just uses the Generic BSD-Allman brace sniff.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param array $tokens The stack of tokens that make up
- * the file.
- *
- * @return void
- */
- public function processSingleLineDeclaration($phpcsFile, $stackPtr, $tokens)
- {
- if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
- $sniff = new OpeningFunctionBraceKernighanRitchieSniff();
- } else {
- $sniff = new OpeningFunctionBraceBsdAllmanSniff();
- }
-
- $sniff->checkClosures = true;
- $sniff->process($phpcsFile, $stackPtr);
-
- }//end processSingleLineDeclaration()
-
-
- /**
- * Processes multi-line declarations.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param array $tokens The stack of tokens that make up
- * the file.
- *
- * @return void
- */
- public function processMultiLineDeclaration($phpcsFile, $stackPtr, $tokens)
- {
- // We need to work out how far indented the function
- // declaration itself is, so we can work out how far to
- // indent parameters.
- $functionIndent = 0;
- for ($i = ($stackPtr - 1); $i >= 0; $i--) {
- if ($tokens[$i]['line'] !== $tokens[$stackPtr]['line']) {
- $i++;
- break;
- }
- }
-
- if ($tokens[$i]['code'] === T_WHITESPACE) {
- $functionIndent = strlen($tokens[$i]['content']);
- }
-
- // The closing parenthesis must be on a new line, even
- // when checking abstract function definitions.
- $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
- $prev = $phpcsFile->findPrevious(
- T_WHITESPACE,
- ($closeBracket - 1),
- null,
- true
- );
-
- if ($tokens[$closeBracket]['line'] !== $tokens[$tokens[$closeBracket]['parenthesis_opener']]['line']) {
- if ($tokens[$prev]['line'] === $tokens[$closeBracket]['line']) {
- $error = 'The closing parenthesis of a multi-line function declaration must be on a new line';
- $fix = $phpcsFile->addFixableError($error, $closeBracket, 'CloseBracketLine');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($closeBracket);
- }
- }
- }
-
- // If this is a closure and is using a USE statement, the closing
- // parenthesis we need to look at from now on is the closing parenthesis
- // of the USE statement.
- if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
- $use = $phpcsFile->findNext(T_USE, ($closeBracket + 1), $tokens[$stackPtr]['scope_opener']);
- if ($use !== false) {
- $open = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($use + 1));
- $closeBracket = $tokens[$open]['parenthesis_closer'];
-
- $prev = $phpcsFile->findPrevious(
- T_WHITESPACE,
- ($closeBracket - 1),
- null,
- true
- );
-
- if ($tokens[$closeBracket]['line'] !== $tokens[$tokens[$closeBracket]['parenthesis_opener']]['line']) {
- if ($tokens[$prev]['line'] === $tokens[$closeBracket]['line']) {
- $error = 'The closing parenthesis of a multi-line use declaration must be on a new line';
- $fix = $phpcsFile->addFixableError($error, $closeBracket, 'UseCloseBracketLine');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($closeBracket);
- }
- }
- }
- }//end if
- }//end if
-
- // Each line between the parenthesis should be indented 4 spaces.
- $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
- $lastLine = $tokens[$openBracket]['line'];
- for ($i = ($openBracket + 1); $i < $closeBracket; $i++) {
- if ($tokens[$i]['line'] !== $lastLine) {
- if ($i === $tokens[$stackPtr]['parenthesis_closer']
- || ($tokens[$i]['code'] === T_WHITESPACE
- && (($i + 1) === $closeBracket
- || ($i + 1) === $tokens[$stackPtr]['parenthesis_closer']))
- ) {
- // Closing braces need to be indented to the same level
- // as the function.
- $expectedIndent = $functionIndent;
- } else {
- $expectedIndent = ($functionIndent + $this->indent);
- }
-
- // We changed lines, so this should be a whitespace indent token.
- if ($tokens[$i]['code'] !== T_WHITESPACE) {
- $foundIndent = 0;
- } else if ($tokens[$i]['line'] !== $tokens[($i + 1)]['line']) {
- // This is an empty line, so don't check the indent.
- $foundIndent = $expectedIndent;
-
- $error = 'Blank lines are not allowed in a multi-line function declaration';
- $fix = $phpcsFile->addFixableError($error, $i, 'EmptyLine');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
- } else {
- $foundIndent = strlen($tokens[$i]['content']);
- }
-
- if ($expectedIndent !== $foundIndent) {
- $error = 'Multi-line function declaration not indented correctly; expected %s spaces but found %s';
- $data = array(
- $expectedIndent,
- $foundIndent,
- );
-
- $fix = $phpcsFile->addFixableError($error, $i, 'Indent', $data);
- if ($fix === true) {
- $spaces = str_repeat(' ', $expectedIndent);
- if ($foundIndent === 0) {
- $phpcsFile->fixer->addContentBefore($i, $spaces);
- } else {
- $phpcsFile->fixer->replaceToken($i, $spaces);
- }
- }
- }
-
- $lastLine = $tokens[$i]['line'];
- }//end if
-
- if ($tokens[$i]['code'] === T_ARRAY || $tokens[$i]['code'] === T_OPEN_SHORT_ARRAY) {
- // Skip arrays as they have their own indentation rules.
- if ($tokens[$i]['code'] === T_OPEN_SHORT_ARRAY) {
- $i = $tokens[$i]['bracket_closer'];
- } else {
- $i = $tokens[$i]['parenthesis_closer'];
- }
-
- $lastLine = $tokens[$i]['line'];
- continue;
- }
- }//end for
-
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- return;
- }
-
- // The opening brace needs to be one space away from the closing parenthesis.
- $opener = $tokens[$stackPtr]['scope_opener'];
- if ($tokens[$opener]['line'] !== $tokens[$closeBracket]['line']) {
- $error = 'The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line';
- $fix = $phpcsFile->addFixableError($error, $opener, 'NewlineBeforeOpenBrace');
- if ($fix === true) {
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($opener - 1), $closeBracket, true);
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addContent($prev, ' {');
- $phpcsFile->fixer->replaceToken($opener, '');
- $phpcsFile->fixer->endChangeset();
- }
- } else {
- $prev = $tokens[($opener - 1)];
- if ($prev['code'] !== T_WHITESPACE) {
- $length = 0;
- } else {
- $length = strlen($prev['content']);
- }
-
- if ($length !== 1) {
- $error = 'There must be a single space between the closing parenthesis and the opening brace of a multi-line function declaration; found %s spaces';
- $fix = $phpcsFile->addFixableError($error, ($opener - 1), 'SpaceBeforeOpenBrace', array($length));
- if ($fix === true) {
- if ($length === 0) {
- $phpcsFile->fixer->addContentBefore($opener, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($opener - 1), ' ');
- }
- }
-
- return;
- }//end if
- }//end if
-
- }//end processMultiLineDeclaration()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/ValidDefaultValueSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/ValidDefaultValueSniff.php
deleted file mode 100644
index cfe24c50..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Functions/ValidDefaultValueSniff.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/**
- * Ensures function params with default values are at the end of the declaration.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ValidDefaultValueSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_CLOSURE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $argStart = $tokens[$stackPtr]['parenthesis_opener'];
- $argEnd = $tokens[$stackPtr]['parenthesis_closer'];
-
- // Flag for when we have found a default in our arg list.
- // If there is a value without a default after this, it is an error.
- $defaultFound = false;
-
- $params = $phpcsFile->getMethodParameters($stackPtr);
- foreach ($params as $param) {
- if ($param['variable_length'] === true) {
- continue;
- }
-
- if (array_key_exists('default', $param) === true) {
- $defaultFound = true;
- // Check if the arg is type hinted and using NULL for the default.
- // This does not make the argument optional - it just allows NULL
- // to be passed in.
- if ($param['type_hint'] !== '' && strtolower($param['default']) === 'null') {
- $defaultFound = false;
- }
-
- continue;
- }
-
- if ($defaultFound === true) {
- $error = 'Arguments with default values must be at the end of the argument list';
- $phpcsFile->addError($error, $param['token'], 'NotAtEnd');
- return;
- }
- }//end foreach
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidClassNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidClassNameSniff.php
deleted file mode 100644
index a0f27b4b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidClassNameSniff.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-/**
- * Ensures class and interface names start with a capital letter and use _ separators.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ValidClassNameSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being processed.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $className = $phpcsFile->findNext(T_STRING, $stackPtr);
- $name = trim($tokens[$className]['content']);
- $errorData = array(ucfirst($tokens[$stackPtr]['content']));
-
- // Make sure the first letter is a capital.
- if (preg_match('|^[A-Z]|', $name) === 0) {
- $error = '%s name must begin with a capital letter';
- $phpcsFile->addError($error, $stackPtr, 'StartWithCapital', $errorData);
- }
-
- // Check that each new word starts with a capital as well, but don't
- // check the first word, as it is checked above.
- $validName = true;
- $nameBits = explode('_', $name);
- $firstBit = array_shift($nameBits);
- foreach ($nameBits as $bit) {
- if ($bit === '' || $bit{0} !== strtoupper($bit{0})) {
- $validName = false;
- break;
- }
- }
-
- if ($validName === false) {
- // Strip underscores because they cause the suggested name
- // to be incorrect.
- $nameBits = explode('_', trim($name, '_'));
- $firstBit = array_shift($nameBits);
- if ($firstBit === '') {
- $error = '%s name is not valid';
- $phpcsFile->addError($error, $stackPtr, 'Invalid', $errorData);
- } else {
- $newName = strtoupper($firstBit{0}).substr($firstBit, 1).'_';
- foreach ($nameBits as $bit) {
- if ($bit !== '') {
- $newName .= strtoupper($bit{0}).substr($bit, 1).'_';
- }
- }
-
- $newName = rtrim($newName, '_');
- $error = '%s name is not valid; consider %s instead';
- $data = $errorData;
- $data[] = $newName;
- $phpcsFile->addError($error, $stackPtr, 'Invalid', $data);
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidFunctionNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidFunctionNameSniff.php
deleted file mode 100644
index a002018b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidFunctionNameSniff.php
+++ /dev/null
@@ -1,279 +0,0 @@
-<?php
-/**
- * Ensures method and function names are correct.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Sniffs\AbstractScopeSniff;
-use PHP_CodeSniffer\Util\Common;
-use PHP_CodeSniffer\Files\File;
-
-class ValidFunctionNameSniff extends AbstractScopeSniff
-{
-
- /**
- * A list of all PHP magic methods.
- *
- * @var array
- */
- protected $magicMethods = array(
- 'construct' => true,
- 'destruct' => true,
- 'call' => true,
- 'callstatic' => true,
- 'get' => true,
- 'set' => true,
- 'isset' => true,
- 'unset' => true,
- 'sleep' => true,
- 'wakeup' => true,
- 'tostring' => true,
- 'set_state' => true,
- 'clone' => true,
- 'invoke' => true,
- 'debuginfo' => true,
- );
-
- /**
- * A list of all PHP magic functions.
- *
- * @var array
- */
- protected $magicFunctions = array('autoload' => true);
-
-
- /**
- * Constructs a PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.
- */
- public function __construct()
- {
- parent::__construct(array(T_CLASS, T_ANON_CLASS, T_INTERFACE, T_TRAIT), array(T_FUNCTION), true);
-
- }//end __construct()
-
-
- /**
- * Processes the tokens within the scope.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being processed.
- * @param int $stackPtr The position where this token was
- * found.
- * @param int $currScope The position of the current scope.
- *
- * @return void
- */
- protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- $methodName = $phpcsFile->getDeclarationName($stackPtr);
- if ($methodName === null) {
- // Ignore closures.
- return;
- }
-
- $className = $phpcsFile->getDeclarationName($currScope);
- $errorData = array($className.'::'.$methodName);
-
- // Is this a magic method. i.e., is prefixed with "__" ?
- if (preg_match('|^__[^_]|', $methodName) !== 0) {
- $magicPart = strtolower(substr($methodName, 2));
- if (isset($this->magicMethods[$magicPart]) === false) {
- $error = 'Method name "%s" is invalid; only PHP magic methods should be prefixed with a double underscore';
- $phpcsFile->addError($error, $stackPtr, 'MethodDoubleUnderscore', $errorData);
- }
-
- return;
- }
-
- // PHP4 constructors are allowed to break our rules.
- if ($methodName === $className) {
- return;
- }
-
- // PHP4 destructors are allowed to break our rules.
- if ($methodName === '_'.$className) {
- return;
- }
-
- $methodProps = $phpcsFile->getMethodProperties($stackPtr);
- $scope = $methodProps['scope'];
- $scopeSpecified = $methodProps['scope_specified'];
-
- if ($methodProps['scope'] === 'private') {
- $isPublic = false;
- } else {
- $isPublic = true;
- }
-
- // If it's a private method, it must have an underscore on the front.
- if ($isPublic === false) {
- if ($methodName{0} !== '_') {
- $error = 'Private method name "%s" must be prefixed with an underscore';
- $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $errorData);
- $phpcsFile->recordMetric($stackPtr, 'Private method prefixed with underscore', 'no');
- return;
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Private method prefixed with underscore', 'yes');
- }
- }
-
- // If it's not a private method, it must not have an underscore on the front.
- if ($isPublic === true && $scopeSpecified === true && $methodName{0} === '_') {
- $error = '%s method name "%s" must not be prefixed with an underscore';
- $data = array(
- ucfirst($scope),
- $errorData[0],
- );
- $phpcsFile->addError($error, $stackPtr, 'PublicUnderscore', $data);
- return;
- }
-
- // If the scope was specified on the method, then the method must be
- // camel caps and an underscore should be checked for. If it wasn't
- // specified, treat it like a public method and remove the underscore
- // prefix if there is one because we cant determine if it is private or
- // public.
- $testMethodName = $methodName;
- if ($scopeSpecified === false && $methodName{0} === '_') {
- $testMethodName = substr($methodName, 1);
- }
-
- if (Common::isCamelCaps($testMethodName, false, $isPublic, false) === false) {
- if ($scopeSpecified === true) {
- $error = '%s method name "%s" is not in camel caps format';
- $data = array(
- ucfirst($scope),
- $errorData[0],
- );
- $phpcsFile->addError($error, $stackPtr, 'ScopeNotCamelCaps', $data);
- } else {
- $error = 'Method name "%s" is not in camel caps format';
- $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
- }
-
- return;
- }
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes the tokens outside the scope.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being processed.
- * @param int $stackPtr The position where this token was
- * found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
- $functionName = $phpcsFile->getDeclarationName($stackPtr);
- if ($functionName === null) {
- // Ignore closures.
- return;
- }
-
- if (ltrim($functionName, '_') === '') {
- // Ignore special functions.
- return;
- }
-
- $errorData = array($functionName);
-
- // Is this a magic function. i.e., it is prefixed with "__".
- if (preg_match('|^__[^_]|', $functionName) !== 0) {
- $magicPart = strtolower(substr($functionName, 2));
- if (isset($this->magicFunctions[$magicPart]) === false) {
- $error = 'Function name "%s" is invalid; only PHP magic methods should be prefixed with a double underscore';
- $phpcsFile->addError($error, $stackPtr, 'FunctionDoubleUnderscore', $errorData);
- }
-
- return;
- }
-
- // Function names can be in two parts; the package name and
- // the function name.
- $packagePart = '';
- $camelCapsPart = '';
- $underscorePos = strrpos($functionName, '_');
- if ($underscorePos === false) {
- $camelCapsPart = $functionName;
- } else {
- $packagePart = substr($functionName, 0, $underscorePos);
- $camelCapsPart = substr($functionName, ($underscorePos + 1));
-
- // We don't care about _'s on the front.
- $packagePart = ltrim($packagePart, '_');
- }
-
- // If it has a package part, make sure the first letter is a capital.
- if ($packagePart !== '') {
- if ($functionName{0} === '_') {
- $error = 'Function name "%s" is invalid; only private methods should be prefixed with an underscore';
- $phpcsFile->addError($error, $stackPtr, 'FunctionUnderscore', $errorData);
- return;
- }
-
- if ($functionName{0} !== strtoupper($functionName{0})) {
- $error = 'Function name "%s" is prefixed with a package name but does not begin with a capital letter';
- $phpcsFile->addError($error, $stackPtr, 'FunctionNoCapital', $errorData);
- return;
- }
- }
-
- // If it doesn't have a camel caps part, it's not valid.
- if (trim($camelCapsPart) === '') {
- $error = 'Function name "%s" is not valid; name appears incomplete';
- $phpcsFile->addError($error, $stackPtr, 'FunctionInvalid', $errorData);
- return;
- }
-
- $validName = true;
- $newPackagePart = $packagePart;
- $newCamelCapsPart = $camelCapsPart;
-
- // Every function must have a camel caps part, so check that first.
- if (Common::isCamelCaps($camelCapsPart, false, true, false) === false) {
- $validName = false;
- $newCamelCapsPart = strtolower($camelCapsPart{0}).substr($camelCapsPart, 1);
- }
-
- if ($packagePart !== '') {
- // Check that each new word starts with a capital.
- $nameBits = explode('_', $packagePart);
- foreach ($nameBits as $bit) {
- if ($bit{0} !== strtoupper($bit{0})) {
- $newPackagePart = '';
- foreach ($nameBits as $bit) {
- $newPackagePart .= strtoupper($bit{0}).substr($bit, 1).'_';
- }
-
- $validName = false;
- break;
- }
- }
- }
-
- if ($validName === false) {
- $newName = rtrim($newPackagePart, '_').'_'.$newCamelCapsPart;
- if ($newPackagePart === '') {
- $newName = $newCamelCapsPart;
- } else {
- $newName = rtrim($newPackagePart, '_').'_'.$newCamelCapsPart;
- }
-
- $error = 'Function name "%s" is invalid; consider "%s" instead';
- $data = $errorData;
- $data[] = $newName;
- $phpcsFile->addError($error, $stackPtr, 'FunctionNameInvalid', $data);
- }
-
- }//end processTokenOutsideScope()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidVariableNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidVariableNameSniff.php
deleted file mode 100644
index 850798e3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidVariableNameSniff.php
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-/**
- * Checks the naming of member variables.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Sniffs\AbstractVariableSniff;
-use PHP_CodeSniffer\Files\File;
-
-class ValidVariableNameSniff extends AbstractVariableSniff
-{
-
-
- /**
- * Processes class member variables.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- protected function processMemberVar(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $memberProps = $phpcsFile->getMemberProperties($stackPtr);
- if (empty($memberProps) === true) {
- return;
- }
-
- $memberName = ltrim($tokens[$stackPtr]['content'], '$');
- $scope = $memberProps['scope'];
- $scopeSpecified = $memberProps['scope_specified'];
-
- if ($memberProps['scope'] === 'private') {
- $isPublic = false;
- } else {
- $isPublic = true;
- }
-
- // If it's a private member, it must have an underscore on the front.
- if ($isPublic === false && $memberName{0} !== '_') {
- $error = 'Private member variable "%s" must be prefixed with an underscore';
- $data = array($memberName);
- $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $data);
- return;
- }
-
- // If it's not a private member, it must not have an underscore on the front.
- if ($isPublic === true && $scopeSpecified === true && $memberName{0} === '_') {
- $error = '%s member variable "%s" must not be prefixed with an underscore';
- $data = array(
- ucfirst($scope),
- $memberName,
- );
- $phpcsFile->addError($error, $stackPtr, 'PublicUnderscore', $data);
- return;
- }
-
- }//end processMemberVar()
-
-
- /**
- * Processes normal variables.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processVariable(File $phpcsFile, $stackPtr)
- {
- /*
- We don't care about normal variables.
- */
-
- }//end processVariable()
-
-
- /**
- * Processes variables in double quoted strings.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processVariableInString(File $phpcsFile, $stackPtr)
- {
- /*
- We don't care about normal variables.
- */
-
- }//end processVariableInString()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ObjectOperatorIndentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ObjectOperatorIndentSniff.php
deleted file mode 100644
index 34721a5d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ObjectOperatorIndentSniff.php
+++ /dev/null
@@ -1,179 +0,0 @@
-<?php
-/**
- * Checks that object operators are indented correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ObjectOperatorIndentSniff implements Sniff
-{
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OBJECT_OPERATOR);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile All the tokens found in the document.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Make sure this is the first object operator in a chain of them.
- $varToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($varToken === false || $tokens[$varToken]['code'] !== T_VARIABLE) {
- return;
- }
-
- // Make sure this is a chained call.
- $next = $phpcsFile->findNext(
- T_OBJECT_OPERATOR,
- ($stackPtr + 1),
- null,
- false,
- null,
- true
- );
-
- if ($next === false) {
- // Not a chained call.
- return;
- }
-
- // Determine correct indent.
- for ($i = ($varToken - 1); $i >= 0; $i--) {
- if ($tokens[$i]['line'] !== $tokens[$varToken]['line']) {
- $i++;
- break;
- }
- }
-
- $requiredIndent = 0;
- if ($i >= 0 && $tokens[$i]['code'] === T_WHITESPACE) {
- $requiredIndent = strlen($tokens[$i]['content']);
- }
-
- $requiredIndent += $this->indent;
-
- // Determine the scope of the original object operator.
- $origBrackets = null;
- if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- $origBrackets = $tokens[$stackPtr]['nested_parenthesis'];
- }
-
- $origConditions = null;
- if (isset($tokens[$stackPtr]['conditions']) === true) {
- $origConditions = $tokens[$stackPtr]['conditions'];
- }
-
- // Check indentation of each object operator in the chain.
- // If the first object operator is on a different line than
- // the variable, make sure we check its indentation too.
- if ($tokens[$stackPtr]['line'] > $tokens[$varToken]['line']) {
- $next = $stackPtr;
- }
-
- while ($next !== false) {
- // Make sure it is in the same scope, otherwise don't check indent.
- $brackets = null;
- if (isset($tokens[$next]['nested_parenthesis']) === true) {
- $brackets = $tokens[$next]['nested_parenthesis'];
- }
-
- $conditions = null;
- if (isset($tokens[$next]['conditions']) === true) {
- $conditions = $tokens[$next]['conditions'];
- }
-
- if ($origBrackets === $brackets && $origConditions === $conditions) {
- // Make sure it starts a line, otherwise dont check indent.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($next - 1), $stackPtr, true);
- $indent = $tokens[($next - 1)];
- if ($tokens[$prev]['line'] !== $tokens[$next]['line']
- && $indent['code'] === T_WHITESPACE
- ) {
- if ($indent['line'] === $tokens[$next]['line']) {
- $foundIndent = strlen($indent['content']);
- } else {
- $foundIndent = 0;
- }
-
- if ($foundIndent !== $requiredIndent) {
- $error = 'Object operator not indented correctly; expected %s spaces but found %s';
- $data = array(
- $requiredIndent,
- $foundIndent,
- );
-
- $fix = $phpcsFile->addFixableError($error, $next, 'Incorrect', $data);
- if ($fix === true) {
- $spaces = str_repeat(' ', $requiredIndent);
- if ($foundIndent === 0) {
- $phpcsFile->fixer->addContentBefore($next, $spaces);
- } else {
- $phpcsFile->fixer->replaceToken(($next - 1), $spaces);
- }
- }
- }
- }//end if
-
- // It cant be the last thing on the line either.
- $content = $phpcsFile->findNext(T_WHITESPACE, ($next + 1), null, true);
- if ($tokens[$content]['line'] !== $tokens[$next]['line']) {
- $error = 'Object operator must be at the start of the line, not the end';
- $fix = $phpcsFile->addFixableError($error, $next, 'StartOfLine');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($x = ($next + 1); $x < $content; $x++) {
- $phpcsFile->fixer->replaceToken($x, '');
- }
-
- $phpcsFile->fixer->addNewlineBefore($next);
- $phpcsFile->fixer->endChangeset();
- }
- }
- }//end if
-
- $next = $phpcsFile->findNext(
- T_OBJECT_OPERATOR,
- ($next + 1),
- null,
- false,
- null,
- true
- );
- }//end while
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php
deleted file mode 100644
index d43fc922..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php
+++ /dev/null
@@ -1,179 +0,0 @@
-<?php
-/**
- * Checks that the closing braces of scopes are aligned correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ScopeClosingBraceSniff implements Sniff
-{
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return Tokens::$scopeOpeners;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile All the tokens found in the document.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // If this is an inline condition (ie. there is no scope opener), then
- // return, as this is not a new scope.
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- return;
- }
-
- $scopeStart = $tokens[$stackPtr]['scope_opener'];
- $scopeEnd = $tokens[$stackPtr]['scope_closer'];
-
- // If the scope closer doesn't think it belongs to this scope opener
- // then the opener is sharing its closer with other tokens. We only
- // want to process the closer once, so skip this one.
- if (isset($tokens[$scopeEnd]['scope_condition']) === false
- || $tokens[$scopeEnd]['scope_condition'] !== $stackPtr
- ) {
- return;
- }
-
- // We need to actually find the first piece of content on this line,
- // because if this is a method with tokens before it (public, static etc)
- // or an if with an else before it, then we need to start the scope
- // checking from there, rather than the current token.
- $lineStart = ($stackPtr - 1);
- for ($lineStart; $lineStart > 0; $lineStart--) {
- if (strpos($tokens[$lineStart]['content'], $phpcsFile->eolChar) !== false) {
- break;
- }
- }
-
- $lineStart++;
-
- $startColumn = 1;
- if ($tokens[$lineStart]['code'] === T_WHITESPACE) {
- $startColumn = $tokens[($lineStart + 1)]['column'];
- } else if ($tokens[$lineStart]['code'] === T_INLINE_HTML) {
- $trimmed = ltrim($tokens[$lineStart]['content']);
- if ($trimmed === '') {
- $startColumn = $tokens[($lineStart + 1)]['column'];
- } else {
- $startColumn = (strlen($tokens[$lineStart]['content']) - strlen($trimmed));
- }
- }
-
- // Check that the closing brace is on it's own line.
- $lastContent = $phpcsFile->findPrevious(
- array(
- T_WHITESPACE,
- T_INLINE_HTML,
- T_OPEN_TAG,
- ),
- ($scopeEnd - 1),
- $scopeStart,
- true
- );
-
- if ($tokens[$lastContent]['line'] === $tokens[$scopeEnd]['line']) {
- $error = 'Closing brace must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $scopeEnd, 'Line');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($scopeEnd);
- }
-
- return;
- }
-
- // Check now that the closing brace is lined up correctly.
- $lineStart = ($scopeEnd - 1);
- for ($lineStart; $lineStart > 0; $lineStart--) {
- if (strpos($tokens[$lineStart]['content'], $phpcsFile->eolChar) !== false) {
- break;
- }
- }
-
- $lineStart++;
-
- $braceIndent = 0;
- if ($tokens[$lineStart]['code'] === T_WHITESPACE) {
- $braceIndent = ($tokens[($lineStart + 1)]['column'] - 1);
- } else if ($tokens[$lineStart]['code'] === T_INLINE_HTML) {
- $trimmed = ltrim($tokens[$lineStart]['content']);
- if ($trimmed === '') {
- $braceIndent = ($tokens[($lineStart + 1)]['column'] - 1);
- } else {
- $braceIndent = (strlen($tokens[$lineStart]['content']) - strlen($trimmed) - 1);
- }
- }
-
- $fix = false;
- if ($tokens[$stackPtr]['code'] === T_CASE
- || $tokens[$stackPtr]['code'] === T_DEFAULT
- ) {
- // BREAK statements should be indented n spaces from the
- // CASE or DEFAULT statement.
- $expectedIndent = ($startColumn + $this->indent - 1);
- if ($braceIndent !== $expectedIndent) {
- $error = 'Case breaking statement indented incorrectly; expected %s spaces, found %s';
- $data = array(
- $expectedIndent,
- $braceIndent,
- );
- $fix = $phpcsFile->addFixableError($error, $scopeEnd, 'BreakIndent', $data);
- }
- } else {
- $expectedIndent = max(0, ($startColumn - 1));
- if ($braceIndent !== $expectedIndent) {
- $error = 'Closing brace indented incorrectly; expected %s spaces, found %s';
- $data = array(
- $expectedIndent,
- $braceIndent,
- );
- $fix = $phpcsFile->addFixableError($error, $scopeEnd, 'Indent', $data);
- }
- }//end if
-
- if ($fix === true) {
- $spaces = str_repeat(' ', $expectedIndent);
- if ($braceIndent === 0) {
- $phpcsFile->fixer->addContentBefore($lineStart, $spaces);
- } else {
- $phpcsFile->fixer->replaceToken($lineStart, ltrim($tokens[$lineStart]['content']));
- $phpcsFile->fixer->addContentBefore($lineStart, $spaces);
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeIndentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeIndentSniff.php
deleted file mode 100644
index fcc1d988..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeIndentSniff.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * Checks that control structures are structured and indented correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff as GenericScopeIndentSniff;
-
-class ScopeIndentSniff extends GenericScopeIndentSniff
-{
-
- /**
- * Any scope openers that should not cause an indent.
- *
- * @var int[]
- */
- protected $nonIndentingScopes = array(T_SWITCH);
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.inc
deleted file mode 100644
index 6b6f2184..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.inc
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-// Correct declarations.
-class CorrectClassDeclaration
-{
-
-}
-
-abstract class CorrectClassDeclarationWithExtends extends correctClassDeclaration
-{
-
-}
-
-final class CorrectClassDeclarationWithImplements implements correctClassDeclaration
-{
-
-}
-
-
-// Incorrect placement of opening braces
-class IncorrectBracePlacement {}
-class IncorrectBracePlacementWithExtends extends correctClassDeclaration {}
-class IncorrectBracePlacementWithImplements implements correctClassDeclaration {}
-
-// Incorrect code placement for opening brace.
-class IncorrectCodeAfterOpeningBrace
-{ echo phpinfo();
-
-}//end class
-
-class IncorrectClassDeclarationWithExtends extends correctClassDeclaration
-
-{
-
-}
-
-class IncorrectBracePlacement
- {
- }
-
-abstract class CodeSnifferFail
- extends
- ArrayObject
- implements
- Serializable,
- Iterator,
- Countable,
- OuterIterator,
- RecursiveIterator {
-}
-
-abstract class CodeSnifferFail
- extends
- ArrayObject
- implements
- Serializable,
- Iterator,
- Countable,
- OuterIterator,
- RecursiveIterator
-{
-}
-
-namespace A
-{
- class B
- {
- }
-}
-
-$util->setLogger(new class {});
-
-var_dump(new class(10) extends SomeClass implements SomeInterface {
- private $num;
-
- public function __construct($num)
- {
- $this->num = $num;
- }
-
- use SomeTrait;
-});
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php
deleted file mode 100644
index bb10947c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * Unit test class for the ClassDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClassDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 21 => 1,
- 22 => 1,
- 23 => 1,
- 27 => 1,
- 33 => 1,
- 38 => 1,
- 49 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.inc
deleted file mode 100644
index 0ca87512..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.inc
+++ /dev/null
@@ -1,120 +0,0 @@
-<?php
-define('OK', 1);
-
-class No_Comment
-{
-
-}//end class
-
-
-//
-// Sample class comment
-//
-//
-//
-class Invalid_Comment_Style1
-{
-
-}//end class
-
-
-/**
- *
- *
- * Sample class comment
- *
- *
- * Long description with extra blank line before and after
- *
- *
- * @category PHP
- * @package PHP_CodeSniffer
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- * @version Release: 1.0
- * @link http://pear.php.net/package/PHP_CodeSniffer
- */
-class Extra_Description_Newlines
-{
-
-}//end class
-
-
-/**
- * Sample class comment
- * @category PHP
- * @package PHP_CodeSniffer
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- * @version
- * @link http://pear.php.net/package/PHP_CodeSniffer
- */
-class Missing_Newlines_Before_Tags
-{
-
-}//end class
-
-
-/**
- * Simple class comment
- *
- * @category _wrong_category
- * @package PHP_CodeSniffer
- * @package ADDITIONAL PACKAGE TAG
- * @subpackage SUBPACKAGE TAG
- * @author Original Author <author@example.com>
- * @author Greg Sherwood gsherwood@squiz.net
- * @author Mr T <t@squiz.net>
- * @author
- * @copyright 1997~1994 The PHP Group
- * @license http://www.php.net/license/3_0.txt
- * @version INVALID VERSION CONTENT
- * @see
- * @see
- * @link sdfsdf
- * @see Net_Sample::Net_Sample()
- * @see Net_Other
- * @deprecated asd
- * @unknown Unknown tag
- * @since Class available since Release 1.2.0
- */
-class Checking_Tags
-{
- class Sub_Class {
-
- }//end class
-
-
-}//end class
-
-
-/**
- *
- *
- */
-class Empty_Class_Doc
-{
-
-}//end class
-
-
-/**
- *
- *
- */
-interface Empty_Interface_Doc
-{
-
-}//end interface
-
-
-/**
- *
- *
- */
-trait Empty_Trait_Doc
-{
-
-}//end trait
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php
deleted file mode 100644
index c6cf1fbf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-/**
- * Unit test class for the ClassComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClassCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 15 => 1,
- 51 => 1,
- 63 => 1,
- 65 => 2,
- 66 => 1,
- 68 => 1,
- 70 => 1,
- 71 => 1,
- 72 => 1,
- 74 => 2,
- 75 => 1,
- 76 => 1,
- 77 => 1,
- 85 => 1,
- 96 => 5,
- 106 => 5,
- 116 => 5,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 71 => 1,
- 73 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.inc
deleted file mode 100644
index d58d6372..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.inc
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-declare(encoding='utf-8');
-/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
-
-/**
-*
-* Short description for fileasdasd.
-*
-*
-* asdasd
-* long description for file (if any)
-* asdasdadada
-*
-* PHP versio
-*
-* LICENSE: This source file is subject to version 3.0 of the PHP license
-* that is available through the world-wide-web at the following URI:
-* http://www.php.net/license/3_0.txt. If you did not receive a copy of
-* the PHP License and are unable to obtain it through the web, please
-* send a note to license@php.net so we can mail you a copy immediately.
-* @category _wrong_category
-* @package PHP_CodeSniffer
-* @package ADDITIONAL PACKAGE TAG
-* @subpackage SUBPACKAGE TAG
-* @author Antônio Carlos Venâncio Júnior <foreign@character.net>
-* @author Greg Sherwood gsherwood@squiz.net
-* @author Mr T <t@squiz.net>
-* @author
-* @copyright 1997~1994 The PHP Group
-* @copyright 1997~1994 The PHP Group
-* @license http://www.php.net/license/3_0.txt
-* @see
-* @see
-* @version INVALID VERSION CONTENT
-* @see Net_Sample::Net_Sample()
-* @see Net_Other
-* @deprecated asd
-* @since Class available since Release 1.2.0
-* @summary An unknown summary tag
-* @package ''
-* @subpackage !!
-*/
-require_once '/some/path.php';
-?>
-<?php
-/**
-* This bit here is not qualified as file comment
-*
-* as it is not after the first open tag
-*
-*/
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php
deleted file mode 100644
index e8aa666e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/**
- * Unit test class for the FileComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FileCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 21 => 1,
- 23 => 2,
- 24 => 1,
- 26 => 1,
- 28 => 1,
- 29 => 1,
- 30 => 1,
- 31 => 1,
- 32 => 2,
- 33 => 1,
- 34 => 1,
- 35 => 1,
- 40 => 2,
- 41 => 2,
- 42 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 29 => 1,
- 30 => 1,
- 34 => 1,
- 42 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc
deleted file mode 100644
index f7d595ff..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc
+++ /dev/null
@@ -1,372 +0,0 @@
-<?php
-class PHP_CodeSniffer_File
-{
-
- /**
- * A simple function comment.
- *
- * long desc here
- *
- * @param int $stackPtr The position in @ @unknown the stack of the token
- * that opened the scope
- * @param int $detph How many scope levels down we are.
- * @param int $index The index
- * @return
- * @throws
- */
- private function _functionCall($stackPtr, $depth=1, $index)
- {
- return $stackPtr;
-
- }//end _functionCall()
-
- //
- // Sample function comment
- //
- //
- //
- public function invalidCommentStyle()
- {
-
- }//end invalidCommentStyle()
-
-
- /**
- *
- *
- * A simple function comment
- *
- *
- * Long description with extra blank line before and after
- *
- *
- * @return void
- */
- public function extraDescriptionNewlines()
- {
-
- }//end extraDescriptionNewlines()
-
-
- /**
- * A simple function comment
- * @return void
- */
- public function missingNewlinesBeforeTags()
- {
-
- }//end missingNewlinesBeforeTags()
-
-
- /**
- * Access tag should not be treated as a long description
- *
- * @access public
- * @return void
- */
- public function accessTag()
- {
-
- }//end accessTag()
-
- /**
- * Constructor
- *
- * No return tag
- */
- function PHP_CodeSniffer_File()
- {
- return;
- }
-
-
- /**
- * Destructor
- *
- * No return tag too
- */
- function _PHP_CodeSniffer_File()
- {
- return;
- }
-
-
- /**
- * Destructor PHP5
- */
- function __destruct()
- {
- return;
- }
-
-
- function missingComment()
- {
- return;
- }
-
-
- /**
- * no return tag
- *
- */
- public function noReturn($one)
- {
-
- }//end noReturn()
-
-
- /**
- * Param not immediate
- *
- * @return
- * @param int $threeSpaces
- * @param int $superfluous
- * @param missing
- * @param
- */
- public function missingDescription($threeSpaces)
- {
-
- }//end missingDescription()
-
-
- /**
- * Param not immediate
- *
- * @param int $one comment
- * @param int $two comment
- * @param string $three comment
- *
- * @return void
- */
- public function oneSpaceAfterLongestVar($one, $two, $three)
- {
-
- }//end oneSpaceAfterLongestVar()
-
-
-}//end class
-
-
-/**
- * A simple function comment
- *
- * @param string &$str The string passed in by reference
- * @param string $foo The string passed in by reference
- *
- * @return void
- */
-public function functionOutsideClass(&$str, &$foo)
-{
- return;
-}//end functionOutsideClass()
-
-function missingCommentOutsideClass()
-{
- return;
-}//end missingCommentOutsideClass()
-
-
-?><?php
-function tagBeforeComment()
-{
- return;
-}//end tagBeforeComment()
-
-
-/**
- * no return tag
- *
- *
- *
- */
-public function noReturnOutsideClass()
-{
-
-}//end noReturnOutsideClass()
-
-
-/**
- * Missing param comment
- *
- * @param int $one comment
- *
- * @return void
- * @fine Unknown tag
- */
-public function missingTwoParamComment($one, $two, $three)
-{
-
-}//end missingTwoParamComment()
-
-
-/**
- *
- */
-function emptyFunctionDocComment()
-{
-}//end emptyFunctionDocComment()
-
-
-/**
- * Test function.
- *
- * @param string $arg1 An argument
- *
- * @access public
- * @return bool
- */
-function myFunction($arg1) {}
-
-
-/**
- * Test function.
- *
- * @param string $arg1 An argument
- *
- * @access public
- * @return bool
- */
-
-echo $blah;
-
-function myFunction($arg1) {}
-
-/**
- * Test function.
- *
- * @access public
- * @return bool
- * @throws MyException
- * @throws MyException When I feel like it
- */
-function myFunction() {}
-
-class MyClass() {
- /**
- * An abstract function.
- *
- * @return string[]
- */
- abstract final protected function myFunction();
-}
-
-/**
- * Creates a map of tokens => line numbers for each token.
- *
- * @param array $tokens The array of tokens to process.
- * @param object $tokenizer The tokenizer being used to process this file.
- * @param string $eolChar The EOL character to use for splitting strings.
- *
- * @return void
- */
-public function foo(&$tokens, $tokenizer, $eolChar)
-{
-
-}//end foo()
-
-/**
- * Gettext.
- *
- */
-public function _() {
- return $foo;
-}
-
-class Baz {
- /**
- * The PHP5 constructor
- *
- * No return tag
- */
- public function __construct() {
-
- }
-}
-
-/**
- * Complete a step.
- *
- * @param string $status Status of step to complete.
- * @param array $array Array.
- * @param string $note Optional note.
- *
- * @return void
- */
-public function completeStep($status, array $array = [Class1::class, 'test'], $note = '') {
- echo 'foo';
-}
-
-/**
- * Variadic function.
- *
- * @param string $name1 Comment.
- * @param string ...$name2 Comment.
- *
- * @return void
- */
-public function myFunction(string $name1, string ...$name2) {
-}
-
-
-/**
- * Variadic function.
- *
- * @param string $name1 Comment.
- * @param string $name2 Comment.
- *
- * @return void
- */
-public function myFunction(string $name1, string ...$name2) {
-}
-
-/**
- * Completely invalid format, but should not cause PHP notices.
- *
- * @param $bar
- * Comment here.
- * @param ...
- * Additional arguments here.
- *
- * @return
- * Return value
- *
- */
-function foo($bar) {
-}
-
-/**
- * Processes the test.
- *
- * @param PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where the
- * token occurred.
- * @param int $stackPtr The position in the tokens stack
- * where the listening token type
- * was found.
- *
- * @return void
- * @see register()
- */
-function process(File $phpcsFile, $stackPtr)
-{
-
-}//end process()
-
-/**
- * Processes the test.
- *
- * @param int $phpcsFile The PHP_CodeSniffer
- * file where the
- * token occurred.
- * @param int $stackPtr The position in the tokens stack
- * where the listening token type
- * was found.
- *
- * @return void
- * @see register()
- */
-function process(File $phpcsFile, $stackPtr)
-{
-
-}//end process()
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc.fixed
deleted file mode 100644
index 46be7765..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc.fixed
+++ /dev/null
@@ -1,372 +0,0 @@
-<?php
-class PHP_CodeSniffer_File
-{
-
- /**
- * A simple function comment.
- *
- * long desc here
- *
- * @param int $stackPtr The position in @ @unknown the stack of the token
- * that opened the scope
- * @param int $detph How many scope levels down we are.
- * @param int $index The index
- * @return
- * @throws
- */
- private function _functionCall($stackPtr, $depth=1, $index)
- {
- return $stackPtr;
-
- }//end _functionCall()
-
- //
- // Sample function comment
- //
- //
- //
- public function invalidCommentStyle()
- {
-
- }//end invalidCommentStyle()
-
-
- /**
- *
- *
- * A simple function comment
- *
- *
- * Long description with extra blank line before and after
- *
- *
- * @return void
- */
- public function extraDescriptionNewlines()
- {
-
- }//end extraDescriptionNewlines()
-
-
- /**
- * A simple function comment
- * @return void
- */
- public function missingNewlinesBeforeTags()
- {
-
- }//end missingNewlinesBeforeTags()
-
-
- /**
- * Access tag should not be treated as a long description
- *
- * @access public
- * @return void
- */
- public function accessTag()
- {
-
- }//end accessTag()
-
- /**
- * Constructor
- *
- * No return tag
- */
- function PHP_CodeSniffer_File()
- {
- return;
- }
-
-
- /**
- * Destructor
- *
- * No return tag too
- */
- function _PHP_CodeSniffer_File()
- {
- return;
- }
-
-
- /**
- * Destructor PHP5
- */
- function __destruct()
- {
- return;
- }
-
-
- function missingComment()
- {
- return;
- }
-
-
- /**
- * no return tag
- *
- */
- public function noReturn($one)
- {
-
- }//end noReturn()
-
-
- /**
- * Param not immediate
- *
- * @return
- * @param int $threeSpaces
- * @param int $superfluous
- * @param missing
- * @param
- */
- public function missingDescription($threeSpaces)
- {
-
- }//end missingDescription()
-
-
- /**
- * Param not immediate
- *
- * @param int $one comment
- * @param int $two comment
- * @param string $three comment
- *
- * @return void
- */
- public function oneSpaceAfterLongestVar($one, $two, $three)
- {
-
- }//end oneSpaceAfterLongestVar()
-
-
-}//end class
-
-
-/**
- * A simple function comment
- *
- * @param string &$str The string passed in by reference
- * @param string $foo The string passed in by reference
- *
- * @return void
- */
-public function functionOutsideClass(&$str, &$foo)
-{
- return;
-}//end functionOutsideClass()
-
-function missingCommentOutsideClass()
-{
- return;
-}//end missingCommentOutsideClass()
-
-
-?><?php
-function tagBeforeComment()
-{
- return;
-}//end tagBeforeComment()
-
-
-/**
- * no return tag
- *
- *
- *
- */
-public function noReturnOutsideClass()
-{
-
-}//end noReturnOutsideClass()
-
-
-/**
- * Missing param comment
- *
- * @param int $one comment
- *
- * @return void
- * @fine Unknown tag
- */
-public function missingTwoParamComment($one, $two, $three)
-{
-
-}//end missingTwoParamComment()
-
-
-/**
- *
- */
-function emptyFunctionDocComment()
-{
-}//end emptyFunctionDocComment()
-
-
-/**
- * Test function.
- *
- * @param string $arg1 An argument
- *
- * @access public
- * @return bool
- */
-function myFunction($arg1) {}
-
-
-/**
- * Test function.
- *
- * @param string $arg1 An argument
- *
- * @access public
- * @return bool
- */
-
-echo $blah;
-
-function myFunction($arg1) {}
-
-/**
- * Test function.
- *
- * @access public
- * @return bool
- * @throws MyException
- * @throws MyException When I feel like it
- */
-function myFunction() {}
-
-class MyClass() {
- /**
- * An abstract function.
- *
- * @return string[]
- */
- abstract final protected function myFunction();
-}
-
-/**
- * Creates a map of tokens => line numbers for each token.
- *
- * @param array $tokens The array of tokens to process.
- * @param object $tokenizer The tokenizer being used to process this file.
- * @param string $eolChar The EOL character to use for splitting strings.
- *
- * @return void
- */
-public function foo(&$tokens, $tokenizer, $eolChar)
-{
-
-}//end foo()
-
-/**
- * Gettext.
- *
- */
-public function _() {
- return $foo;
-}
-
-class Baz {
- /**
- * The PHP5 constructor
- *
- * No return tag
- */
- public function __construct() {
-
- }
-}
-
-/**
- * Complete a step.
- *
- * @param string $status Status of step to complete.
- * @param array $array Array.
- * @param string $note Optional note.
- *
- * @return void
- */
-public function completeStep($status, array $array = [Class1::class, 'test'], $note = '') {
- echo 'foo';
-}
-
-/**
- * Variadic function.
- *
- * @param string $name1 Comment.
- * @param string ...$name2 Comment.
- *
- * @return void
- */
-public function myFunction(string $name1, string ...$name2) {
-}
-
-
-/**
- * Variadic function.
- *
- * @param string $name1 Comment.
- * @param string $name2 Comment.
- *
- * @return void
- */
-public function myFunction(string $name1, string ...$name2) {
-}
-
-/**
- * Completely invalid format, but should not cause PHP notices.
- *
- * @param $bar
- * Comment here.
- * @param ...
- * Additional arguments here.
- *
- * @return
- * Return value
- *
- */
-function foo($bar) {
-}
-
-/**
- * Processes the test.
- *
- * @param PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where the
- * token occurred.
- * @param int $stackPtr The position in the tokens stack
- * where the listening token type
- * was found.
- *
- * @return void
- * @see register()
- */
-function process(File $phpcsFile, $stackPtr)
-{
-
-}//end process()
-
-/**
- * Processes the test.
- *
- * @param int $phpcsFile The PHP_CodeSniffer
- * file where the
- * token occurred.
- * @param int $stackPtr The position in the tokens stack
- * where the listening token type
- * was found.
- *
- * @return void
- * @see register()
- */
-function process(File $phpcsFile, $stackPtr)
-{
-
-}//end process()
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php
deleted file mode 100644
index ab1864b7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 5 => 1,
- 10 => 1,
- 12 => 1,
- 13 => 1,
- 14 => 1,
- 15 => 1,
- 28 => 1,
- 76 => 1,
- 87 => 1,
- 103 => 1,
- 109 => 1,
- 112 => 1,
- 122 => 1,
- 123 => 2,
- 124 => 2,
- 125 => 1,
- 126 => 1,
- 137 => 1,
- 138 => 1,
- 139 => 1,
- 152 => 1,
- 155 => 1,
- 165 => 1,
- 172 => 1,
- 183 => 1,
- 190 => 2,
- 206 => 1,
- 234 => 1,
- 272 => 1,
- 313 => 1,
- 317 => 1,
- 324 => 1,
- 327 => 1,
- 329 => 1,
- 332 => 1,
- 344 => 1,
- 343 => 1,
- 345 => 1,
- 346 => 1,
- 360 => 1,
- 361 => 1,
- 363 => 1,
- 364 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc
deleted file mode 100644
index 187228c2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-// Some code goes here.
-
-// This comment contains # multiple
-// hash signs (#).
-
-/*
- * Here is a small function comment.
- */
-function test()
-{
- // Some code goes here.
-
- # This comment is banned.
-
-}//end test()
-
-/*
- A longer comment goes here.
- It spans multiple lines.
-*/
-
-# This is a long comment
-# that is banned.
-
-### use the code from the regex
-### over hre
-### ok?
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc.fixed
deleted file mode 100644
index 7bb6c3fb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.inc.fixed
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-// Some code goes here.
-
-// This comment contains # multiple
-// hash signs (#).
-
-/*
- * Here is a small function comment.
- */
-function test()
-{
- // Some code goes here.
-
- // This comment is banned.
-
-}//end test()
-
-/*
- A longer comment goes here.
- It spans multiple lines.
-*/
-
-// This is a long comment
-// that is banned.
-
-// use the code from the regex
-// over hre
-// ok?
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php
deleted file mode 100644
index 5dfce604..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the InlineComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class InlineCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 15 => 1,
- 24 => 1,
- 25 => 1,
- 27 => 1,
- 28 => 1,
- 29 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc
deleted file mode 100644
index 38af0b44..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.inc
+++ /dev/null
@@ -1,159 +0,0 @@
-<?php
-
-// do ... while
-$i = 0;
-do {
- echo $i;
-} while ($i > 0);
-
-do
-{
- echo $i;
-} while ($i > 0);
-
-do
-{
- echo $i;
-}
-while ($i > 0);
-
-do { echo $i; } while ($i > 0);
-
-do{
- echo $i;
-}while($i > 0);
-
-
-// while
-while ($i < 1) {
- echo $i;
-}
-
-while($i < 1){
- echo $i;
-}
-
-while ($i < 1) { echo $i; }
-
-
-// for
-for ($i = 1; $i < 1; $i++) {
- echo $i;
-}
-
-for($i = 1; $i < 1; $i++){
- echo $i;
-}
-
-for ($i = 1; $i < 1; $i++) { echo $i; }
-
-
-// foreach
-foreach ($items as $item) {
- echo $item;
-}
-
-foreach($items as $item){
- echo $item;
-}
-
-for ($items as $item) { echo $item; }
-
-
-// if
-if ($i == 0) {
- $i = 1;
-}
-
-if($i == 0){
- $i = 1;
-}
-
-if ($i == 0) { $i = 1; }
-
-
-// else
-if ($i == 0) {
- $i = 1;
-} else {
- $i = 0;
-}
-
-if ($i == 0) {
- $i = 1;
-}else{
- $i = 0;
-}
-
-if ($i == 0) { $i = 1; } else { $i = 0; }
-
-
-// else
-if ($i == 0) {
- $i = 1;
-} else {
- $i = 0;
-}
-
-if ($i == 0) {
- $i = 1;
-}else{
- $i = 0;
-}
-
-if ($i == 0) { $i = 1; } else { $i = 0; }
-
-
-// else if
-if ($i == 0) {
- $i = 1;
-} else if ($i == 2) {
- $i = 0;
-}
-
-if ($i == 0) {
- $i = 1;
-} elseif ($i == 2) {
- $i = 0;
-}
-
-if ($i == 0) {
- $i = 1;
-}else if($i == 2){
- $i = 0;
-}
-
-if ($i == 0) {
- $i = 1;
-}elseif($i == 2){
- $i = 0;
-}
-
-if ($i == 0) { $i = 1; } else if ($i == 2) { $i = 0; }
-if ($i == 0) { $i = 1; } elseif ($1 == 2) { $i = 0; }
-
-if ($i == 0) { // this is ok because comments are allowed
- $i = 1;
-}
-
-if ($i == 0) {// this is ok because comments are allowed
- $i = 1;
-}
-
-if ($i == 0) { /* this is ok because comments are allowed*/
- $i = 1;
-}
-
-if ($i == 0)
-{ // this is not ok
- $i = 1;
-}
-
-if ($i == 0) /* this is ok */ {
-}
-
-if ($i == 0) {
-}
-else {
-}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php
deleted file mode 100644
index c62e4268..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**
- * Unit test class for the ControlSignature sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ControlSignatureUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 9 => 1,
- 14 => 1,
- 20 => 1,
- 22 => 1,
- 32 => 1,
- 36 => 1,
- 44 => 1,
- 48 => 1,
- 56 => 1,
- 60 => 1,
- 68 => 1,
- 72 => 1,
- 84 => 1,
- 88 => 2,
- 100 => 1,
- 104 => 2,
- 122 => 2,
- 128 => 1,
- 132 => 3,
- 133 => 2,
- 147 => 1,
- 157 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc
deleted file mode 100644
index 9806c75b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc
+++ /dev/null
@@ -1,190 +0,0 @@
-<?php if (isset($param)) { ?>
- <h3>some text</h3>
-<?php }
-
-if (($condition1
- || $condition2)
- && $condition3
- && $condition4
- && $condition5
-) {
-}
-
-if (($condition1 || $condition2) && $condition3 && $condition4 && $condition5) {
-}
-
-if (($condition1 || $condition2)
- && $condition3
-) {
-}
-
-if (
- ($condition1 || $condition2)
- && $condition3
-) {
-}
-
-if (($condition1
- || $condition2)
-) {
-}
-
-if (($condition1
- || $condition2)
- && $condition3 &&
- $condition4
-) {
-}
-
-if (($condition1
- || $condition2)
- && $condition3
- && $condition4
- && $condition5
-) {
-}
-
-if (($condition1
- || $condition2)
-) {
-}
-
-if (($condition1
- || $condition2)
- ) {
-}
-
-if (
- (
- $condition1
- || $condition2
- )
- && $condition3
-) {
-}
-
-
-if ( $condition1
- || $condition2
- || $condition3
-) {
-}
-
-if ($condition1
- || $condition2
- || $condition3
-) {
-} else if ($condition1
- || $condition2
- || $condition3
-) {
-}
-
-if ($condition1
- || $condition2
- || $condition3
-) {
-} elseif (
- $condition1
- || $condition2 &&
- $condition3
-) {
-}
-
-if ($condition1
- || $condition2
-|| $condition3) {
-}
-
-if ($condition1
- || $condition2 || $condition3
-){
-}
-
-if ($condition1)
- echo 'bar';
-
-if ($condition1
- || $condition2
-|| $condition3)
- echo 'bar';
-
-
-if ($condition1
- || $condition2 || $condition3
-)
- echo 'bar';
-
-if (!empty($post)
- && (!empty($context['header'])
- xor stripos($context['header'], 'Content-Type'))
-) {
-// ...
-}
-
-if ($foo)
-{
- echo 'bar';
-}
-
-// Should be no errors even though lines are
-// not exactly aligned together. Multi-line function
-// call takes precedence.
-if (array_key_exists($key, $value)
- && array_key_exists(
- $key, $value2
- )
-) {
-}
-
-if (true) :
- $foo = true;
-endif;
-
-if ($IPP->errorCode() == 401 || // comment
- $IPP->errorCode() == 3200) /* long comment
- here
- */
-{
- return false;
-}
-
-if ($IPP->errorCode() == 401 || // comment
- $IPP->errorCode() == 3200) // long comment here
-{
- return false;
-}
-
-if ($IPP->errorCode() == 401
- // Comment explaining the next condition here.
- || $IPP->errorCode() == 3200
-) {
- return false;
-}
-
-function bar() {
- if ($a
- && $b
-) {
- return false;
- }
-}
-
-if ($a
- && foo(
- 'a',
- 'b'
- )) {
- return false;
-}
-
-?>
-<?php foreach ($blah as $boo) : ?>
- <?php if ($foo): ?>
- <?php
- if ($bar) {
- } else {
- }
- ?>
- <?php endif; ?>
-<?php endforeach; ?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc.fixed
deleted file mode 100644
index 818460f2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc.fixed
+++ /dev/null
@@ -1,187 +0,0 @@
-<?php if (isset($param)) { ?>
- <h3>some text</h3>
-<?php }
-
-if (($condition1
- || $condition2)
- && $condition3
- && $condition4
- && $condition5
-) {
-}
-
-if (($condition1 || $condition2) && $condition3 && $condition4 && $condition5) {
-}
-
-if (($condition1 || $condition2)
- && $condition3
-) {
-}
-
-if (($condition1 || $condition2)
- && $condition3
-) {
-}
-
-if (($condition1
- || $condition2)
-) {
-}
-
-if (($condition1
- || $condition2)
- && $condition3
- && $condition4
-) {
-}
-
-if (($condition1
- || $condition2)
- && $condition3
- && $condition4
- && $condition5
-) {
-}
-
-if (($condition1
- || $condition2)
-) {
-}
-
-if (($condition1
- || $condition2)
-) {
-}
-
-if (($condition1
- || $condition2)
- && $condition3
-) {
-}
-
-
-if ($condition1
- || $condition2
- || $condition3
-) {
-}
-
-if ($condition1
- || $condition2
- || $condition3
-) {
-} else if ($condition1
- || $condition2
- || $condition3
-) {
-}
-
-if ($condition1
- || $condition2
- || $condition3
-) {
-} elseif ($condition1
- || $condition2
- && $condition3
-) {
-}
-
-if ($condition1
- || $condition2
- || $condition3
-) {
-}
-
-if ($condition1
- || $condition2 || $condition3
-) {
-}
-
-if ($condition1)
- echo 'bar';
-
-if ($condition1
- || $condition2
- || $condition3
-)
- echo 'bar';
-
-
-if ($condition1
- || $condition2 || $condition3
-)
- echo 'bar';
-
-if (!empty($post)
- && (!empty($context['header'])
- xor stripos($context['header'], 'Content-Type'))
-) {
-// ...
-}
-
-if ($foo) {
- echo 'bar';
-}
-
-// Should be no errors even though lines are
-// not exactly aligned together. Multi-line function
-// call takes precedence.
-if (array_key_exists($key, $value)
- && array_key_exists(
- $key, $value2
- )
-) {
-}
-
-if (true) :
- $foo = true;
-endif;
-
-if ($IPP->errorCode() == 401 // comment
- || $IPP->errorCode() == 3200 /* long comment
- here
- */
-) {
- return false;
-}
-
-if ($IPP->errorCode() == 401 // comment
- || $IPP->errorCode() == 3200 // long comment here
-) {
- return false;
-}
-
-if ($IPP->errorCode() == 401
- // Comment explaining the next condition here.
- || $IPP->errorCode() == 3200
-) {
- return false;
-}
-
-function bar() {
- if ($a
- && $b
- ) {
- return false;
- }
-}
-
-if ($a
- && foo(
- 'a',
- 'b'
- )
-) {
- return false;
-}
-
-?>
-<?php foreach ($blah as $boo) : ?>
- <?php if ($foo) : ?>
- <?php
- if ($bar) {
- } else {
- }
- ?>
- <?php endif; ?>
-<?php endforeach; ?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.js
deleted file mode 100644
index 76b3dc8d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.js
+++ /dev/null
@@ -1,179 +0,0 @@
-if (blah(param)) {
-
-}
-
-if ((condition1
- || condition2)
- && condition3
- && condition4
- && condition5
-) {
-}
-
-if ((condition1 || condition2) && condition3 && condition4 && condition5) {
-}
-
-if ((condition1 || condition2)
- && condition3
-) {
-}
-
-if (
- (condition1 || condition2)
- && condition3
-) {
-}
-
-if ((condition1
- || condition2)
-) {
-}
-
-if ((condition1
- || condition2)
- && condition3 &&
- condition4
-) {
-}
-
-if ((condition1
- || condition2)
- && condition3
- && condition4
- && condition5
-) {
-}
-
-if (($condition1
- || $condition2)
-) {
-}
-
-if ((condition1
- || condition2)
- ) {
-}
-
-if (
- (
- condition1
- || condition2
- )
- && condition3
-) {
-}
-
-
-if ( condition1
- || condition2
- || condition3
-) {
-}
-
-if (condition1
- || condition2
- || condition3
-) {
-} else if (condition1
- || condition2
- || condition3
-) {
-}
-
-if (condition1
- || condition2
- || condition3
-) {
-} else if (
- condition1
- || condition2 &&
- condition3
-) {
-}
-
-if (condition1
- || condition2
-|| condition3) {
-}
-
-if (condition1
- || condition2 || condition3
-){
-}
-
-if (condition1)
- console.info('bar');
-
-if (condition1
- || condition2
-|| condition3)
- console.info('bar');
-
-
-if (condition1
- || condition2 || condition3
-)
- console.info('bar');
-
-if (!a(post)
- && (!a(context.header)
- ^ a(context.header, 'Content-Type'))
-) {
-// ...
-}
-
-if (foo)
-{
- console.info('bar');
-}
-
-// Should be no errors even though lines are
-// not exactly aligned together. Multi-line function
-// call takes precedence.
-if (array_key_exists(key, value)
- && foo.bar.baz(
- key, value2
- )
-) {
-}
-
-if (true) {
- foo = true;
-};
-
-if (foo == 401 || // comment
- bar == 3200) /* long comment
- here
- */
-{
- return false;
-}
-
-if (foo == 401 || // comment
- bar == 3200) // long comment here
-{
- return false;
-}
-
-if (IPP.errorCode() == 401
- // Comment explaining the next condition here.
- || IPP.errorCode() == 3200
-) {
- return false;
-}
-
-function bar() {
- if (a
- && b
-) {
- return false;
- }
-}
-
-if (a
- && foo(
- 'a',
- 'b'
- )) {
- return false;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.js.fixed
deleted file mode 100644
index 04465b95..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.js.fixed
+++ /dev/null
@@ -1,176 +0,0 @@
-if (blah(param)) {
-
-}
-
-if ((condition1
- || condition2)
- && condition3
- && condition4
- && condition5
-) {
-}
-
-if ((condition1 || condition2) && condition3 && condition4 && condition5) {
-}
-
-if ((condition1 || condition2)
- && condition3
-) {
-}
-
-if ((condition1 || condition2)
- && condition3
-) {
-}
-
-if ((condition1
- || condition2)
-) {
-}
-
-if ((condition1
- || condition2)
- && condition3
- && condition4
-) {
-}
-
-if ((condition1
- || condition2)
- && condition3
- && condition4
- && condition5
-) {
-}
-
-if (($condition1
- || $condition2)
-) {
-}
-
-if ((condition1
- || condition2)
-) {
-}
-
-if ((condition1
- || condition2)
- && condition3
-) {
-}
-
-
-if (condition1
- || condition2
- || condition3
-) {
-}
-
-if (condition1
- || condition2
- || condition3
-) {
-} else if (condition1
- || condition2
- || condition3
-) {
-}
-
-if (condition1
- || condition2
- || condition3
-) {
-} else if (condition1
- || condition2
- && condition3
-) {
-}
-
-if (condition1
- || condition2
- || condition3
-) {
-}
-
-if (condition1
- || condition2 || condition3
-) {
-}
-
-if (condition1)
- console.info('bar');
-
-if (condition1
- || condition2
- || condition3
-)
- console.info('bar');
-
-
-if (condition1
- || condition2 || condition3
-)
- console.info('bar');
-
-if (!a(post)
- && (!a(context.header)
- ^ a(context.header, 'Content-Type'))
-) {
-// ...
-}
-
-if (foo) {
- console.info('bar');
-}
-
-// Should be no errors even though lines are
-// not exactly aligned together. Multi-line function
-// call takes precedence.
-if (array_key_exists(key, value)
- && foo.bar.baz(
- key, value2
- )
-) {
-}
-
-if (true) {
- foo = true;
-};
-
-if (foo == 401 // comment
- || bar == 3200 /* long comment
- here
- */
-) {
- return false;
-}
-
-if (foo == 401 // comment
- || bar == 3200 // long comment here
-) {
- return false;
-}
-
-if (IPP.errorCode() == 401
- // Comment explaining the next condition here.
- || IPP.errorCode() == 3200
-) {
- return false;
-}
-
-function bar() {
- if (a
- && b
- ) {
- return false;
- }
-}
-
-if (a
- && foo(
- 'a',
- 'b'
- )
-) {
- return false;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php
deleted file mode 100644
index 2a65b9a0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/**
- * Unit test class for the MultiLineCondition sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class MultiLineConditionUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='MultiLineConditionUnitTest.inc')
- {
- $errors = array(
- 21 => 1,
- 22 => 1,
- 35 => 1,
- 40 => 1,
- 41 => 1,
- 42 => 1,
- 43 => 1,
- 49 => 1,
- 54 => 1,
- 57 => 1,
- 58 => 1,
- 59 => 1,
- 61 => 1,
- 67 => 1,
- 87 => 1,
- 88 => 1,
- 89 => 1,
- 90 => 1,
- 96 => 2,
- 101 => 1,
- 109 => 2,
- 125 => 1,
- 145 => 2,
- 153 => 2,
- 168 => 1,
- 177 => 1,
- );
-
- if ($testFile === 'MultiLineConditionUnitTest.inc') {
- $errors[183] = 1;
- }
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc
deleted file mode 100644
index dadfe923..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-
-// These are statements and should not have brackets.
-require_once('blank.inc');
-require('blank.inc');
-
-$test = true;
-
-// Conditionally including a class file: use include_once
-if ($test) {
- require_once 'blank.inc';
- require 'blank.inc';
-}
-
-// Unconditionally including a class file: use require_once
-include_once 'blank.inc';
-include 'blank.inc';
-
-
-// These are ok
-if ($test) {
- include_once 'blank.inc';
- include 'blank.inc';
-}
-
-require_once 'blank.inc';
-require 'blank.inc';
-
-?>
-<pre>
-Some content goes here.
-<?php
-include_once 'blank.inc';
-include 'blank.inc';
-require_once 'blank.inc';
-require 'blank.inc';
-?>
-</pre>
-<?php
-
-if (include_once 'blank.inc') {
- $var = include_once 'blank.inc';
- if ($var === true) {
- }
-}
-
-if (require_once 'blank.inc') {
- $var = require_once 'blank.inc';
- if ($var === true) {
- }
-}
-
-function get_some_value()
-{
- include_once 'blank.inc';
- include 'blank.inc';
-
- // These are ok
- if ($test) {
- include_once 'blank.inc';
- include 'blank.inc';
- }
-
- require_once 'blank.inc';
- require 'blank.inc';
-
- ?>
- <pre>
- Some content goes here.
- <?php
- include_once 'blank.inc';
- include 'blank.inc';
- require_once 'blank.inc';
- require 'blank.inc';
- ?>
- </pre>
- <?php
-
- if (include_once 'blank.inc') {
- $var = include_once 'blank.inc';
- if ($var === true) {
- }
- }
-
- if (require_once 'blank.inc') {
- $var = require_once 'blank.inc';
- if ($var === true) {
- }
- }
-}
-
-
-$var = include_once 'blank.inc';
-if ($var == false) {
-
-}
-
-require_once ('blank.inc');
-include_once ('blank.inc');
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc.fixed
deleted file mode 100644
index 6bd5dd0f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc.fixed
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-
-// These are statements and should not have brackets.
-require_once 'blank.inc';
-require 'blank.inc';
-
-$test = true;
-
-// Conditionally including a class file: use include_once
-if ($test) {
- include_once 'blank.inc';
- include 'blank.inc';
-}
-
-// Unconditionally including a class file: use require_once
-require_once 'blank.inc';
-require 'blank.inc';
-
-
-// These are ok
-if ($test) {
- include_once 'blank.inc';
- include 'blank.inc';
-}
-
-require_once 'blank.inc';
-require 'blank.inc';
-
-?>
-<pre>
-Some content goes here.
-<?php
-require_once 'blank.inc';
-require 'blank.inc';
-require_once 'blank.inc';
-require 'blank.inc';
-?>
-</pre>
-<?php
-
-if (include_once 'blank.inc') {
- $var = include_once 'blank.inc';
- if ($var === true) {
- }
-}
-
-if (include_once 'blank.inc') {
- $var = include_once 'blank.inc';
- if ($var === true) {
- }
-}
-
-function get_some_value()
-{
- include_once 'blank.inc';
- include 'blank.inc';
-
- // These are ok
- if ($test) {
- include_once 'blank.inc';
- include 'blank.inc';
- }
-
- include_once 'blank.inc';
- include 'blank.inc';
-
- ?>
- <pre>
- Some content goes here.
- <?php
- include_once 'blank.inc';
- include 'blank.inc';
- include_once 'blank.inc';
- include 'blank.inc';
- ?>
- </pre>
- <?php
-
- if (include_once 'blank.inc') {
- $var = include_once 'blank.inc';
- if ($var === true) {
- }
- }
-
- if (include_once 'blank.inc') {
- $var = include_once 'blank.inc';
- if ($var === true) {
- }
- }
-}
-
-
-$var = include_once 'blank.inc';
-if ($var == false) {
-
-}
-
-require_once 'blank.inc';
-require_once 'blank.inc';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php
deleted file mode 100644
index 7c8ea419..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/**
- * Unit test class for the IncludingFile sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class IncludingFileUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 5 => 1,
- 11 => 1,
- 12 => 1,
- 16 => 1,
- 17 => 1,
- 33 => 1,
- 34 => 1,
- 47 => 1,
- 48 => 1,
- 64 => 1,
- 65 => 1,
- 73 => 1,
- 74 => 1,
- 85 => 1,
- 86 => 1,
- 98 => 1,
- 99 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.inc
deleted file mode 100644
index 62253271..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.inc
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-$GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName]
- = $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax'));
-
-$GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName]
- = $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax'));
-
-$GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName] =
- $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax'));
-
-$GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName]
- = $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax'));
-$GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName] = 'boo'
-
-$var='string';
-
-function getInstalledStandards(
- $includeGeneric=false,
- $standardsDir=''
-) {
-}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php
deleted file mode 100644
index 9213eae3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the MultiLineAssignment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\Formatting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class MultiLineAssignmentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 6 => 1,
- 8 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc
deleted file mode 100644
index 76f2feb3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc
+++ /dev/null
@@ -1,315 +0,0 @@
-<?php test(
-);
-test();
-test($arg, $arg2);
-isset ();
-test( );
-test() ;
-test( $arg);
-empty( $arg );
-eval ( $arg );
-
-if (is_array($arg) === true) {
-
-}
-
-$something = get($arg1, $arg2);
-$something = get($arg1, $arg2) ;
-$something = get($arg1, $arg2) ;
-
-// No errors as this test only checks for function calls.
-class TestClass extends MyClass
-{
-
- const const1 = 'hello';
- const CONST2 = 'hello';
-
- public function test () { }
-}
-
-make_foo($string/*the string*/, true/*test*/);
-make_foo($string/*the string*/, true/*test*/ );
-make_foo($string /*the string*/, true /*test*/);
-make_foo(/*the string*/$string, /*test*/true);
-make_foo( /*the string*/$string, /*test*/true);
-
-// No errors should be throw here because
-// this is multi-line.
-throw new Exception(
- 'Exception text'
-);
-
-// Objects are the same as a normal call.
-$obj = new TestClass( );
-
-// Heredocs dont need to be indented.
-method_call(
-<<<EOH
-Anyone want to recomment parse errors?
-
-EOH
-);
-
-fputs(
- STDOUT,
- 'Examples:
- $ {$app} --all
- $ {$app} --all');
-
-fputs(STDOUT,
- "Examples:
- $ {$app} --all
- $ {$app} --all",
-$something
- );
-
-// This is not a function call.
-function &testFunction($arg1,
- $arg2,
-) {
-}
-
-$array = array();
-array_map(
- function($x)
- {
- return trim($x);
- },
- $array
-);
-
-array_map(
- function($x)
- {
- return trim($x);
- },
- $array
-);
-
-$bar = new stdClass(
- 4,
- 5,
- 6
-
-);
-
-$bar = new stdClass(
- 4,
- 5,
- 6
-
-);
-
-$foo = new stdClass(
- 1,
- 2,
- 3);
-
-public function doSomething()
-{
- return $this->getFoo()
- ->doBar(
- $this->getX() // no comma here
- ->doY() // this is still the first method argument
- ->doZ() // this is still the first method argument
- );
-}
-
-$var = myFunction(
-$foo,
-$bar
-);
-
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature allowMultipleArguments false
-
-fputs(
- STDOUT,
- "Examples:
- $ {$app} , --all
- $ {$app} --all", $something
-);
-
-$array = array();
-array_map(
- function($x)
- {
- return trim($x, $y);
- }, $foo,
- $array
-);
-
-$bar = new stdClass(
- 4, /* thanks */ 5, /* PSR-2 */ 6
-);
-
-public function doSomething()
-{
- return $this->getFoo()
- ->doBar(
- $this->getX() // no comma here
- ->doY() // this is still the first method argument
- ->doZ() // this is still the first method argument
- );
-}
-
-doError(
- 404, // status code
- 'Not Found', // error name
- 'Check your id' // fix
-);
-
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature allowMultipleArguments true
-
-// Don't report errors for closing braces. Leave that to other sniffs.
-foo(
- [
- 'this',
- 'is',
- 'an',
- 'array'
- ],
-[
- 'this',
- 'is',
- 'an',
- 'array'
- ],
- array(
- 'this',
- 'is',
-'an',
-'array'
- ),
- array(
- 'this',
- 'is',
- 'an',
- 'array'
- ),
- function($x)
- {
- echo 'wee';
-
- return trim($x);
- }
-);
-
-function foo()
-{
- myFunction(
- 'string'.
- // comment
- // comment
- 'string'.
- /* comment
- * comment
- */
- 'string'.
- );
-}
-
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 1
-test($arg, $arg2);
-test( $arg, $arg2 );
-test( $arg, $arg2 );
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 0
-
-?>
-<script>
- var foo = <?php echo bar(
- 'baz'
- ); ?>;
-</script>
- <script>
- var foo = <?php echo bar(
- 'baz'
- ); ?>;
- </script>
-<?php
-
-array_walk(
- $types,
- function ($title, $type) {
- $plural = 'all' !== $type ? 's' : '';
- ?>
- <li><a href="<?php esc_url('#tabs-documents-' . $type . $plural); ?>"><?php echo esc_html($title); ?></a></li>
- <?php
- }
-);
-
-$this->log(// ...
- 'error',
- sprintf(
- 'Message: %s',
- isset($e->getData()['object']['evidence_details'])
- ? $e->getData()['object']['evidence_details']['due_by']
- : ''
- ),
- array($e->getData()['object'])
-);
-
-?>
-<div>
- <?php getTemplatePart(
- 'partials/web-page/carousel-slick/item-slide/header',
- [
- 'class' => $class
- ]
- ); ?>
-</div>
-
-<?php
-if (true) {
- $test = '
- ' . function_0(
- $argument_0
- );
-}
-
-if (true) {
- $test = '
- ' . function_0(
- $argument_0,
- $argument_1
- );
-}
-
-myFunction(
- 'foo', (object) array(
- 'bar' => function ($x) {
- return true;
- },
- 'baz' => false
- )
-);
-$qux = array_filter(
- $quux, function ($x) {
- return $x;
- }
-);
-
-array_filter(
- [1, 2],
- function ($i) : bool {
- return $i === 0;
- }
-);
-
-foo(array(
- 'callback' => function () {
- $foo = 'foo';
- return;
- },
-));
-
-foo(
- $a,
- /*
- $c,
-
- $d,
- */
- $e
-);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc.fixed
deleted file mode 100644
index 3fb59f26..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.inc.fixed
+++ /dev/null
@@ -1,322 +0,0 @@
-<?php test(
-);
-test();
-test($arg, $arg2);
-isset();
-test();
-test();
-test($arg);
-empty($arg);
-eval($arg);
-
-if (is_array($arg) === true) {
-
-}
-
-$something = get($arg1, $arg2);
-$something = get($arg1, $arg2);
-$something = get($arg1, $arg2);
-
-// No errors as this test only checks for function calls.
-class TestClass extends MyClass
-{
-
- const const1 = 'hello';
- const CONST2 = 'hello';
-
- public function test () { }
-}
-
-make_foo($string/*the string*/, true/*test*/);
-make_foo($string/*the string*/, true/*test*/);
-make_foo($string /*the string*/, true /*test*/);
-make_foo(/*the string*/$string, /*test*/true);
-make_foo(/*the string*/$string, /*test*/true);
-
-// No errors should be throw here because
-// this is multi-line.
-throw new Exception(
- 'Exception text'
-);
-
-// Objects are the same as a normal call.
-$obj = new TestClass();
-
-// Heredocs dont need to be indented.
-method_call(
-<<<EOH
-Anyone want to recomment parse errors?
-
-EOH
-);
-
-fputs(
- STDOUT,
- 'Examples:
- $ {$app} --all
- $ {$app} --all'
-);
-
-fputs(
- STDOUT,
- "Examples:
- $ {$app} --all
- $ {$app} --all",
- $something
-);
-
-// This is not a function call.
-function &testFunction($arg1,
- $arg2,
-) {
-}
-
-$array = array();
-array_map(
- function($x)
- {
- return trim($x);
- },
- $array
-);
-
-array_map(
- function($x)
- {
- return trim($x);
- },
- $array
-);
-
-$bar = new stdClass(
- 4,
- 5,
- 6
-);
-
-$bar = new stdClass(
- 4,
- 5,
- 6
-);
-
-$foo = new stdClass(
- 1,
- 2,
- 3
-);
-
-public function doSomething()
-{
- return $this->getFoo()
- ->doBar(
- $this->getX() // no comma here
- ->doY() // this is still the first method argument
- ->doZ() // this is still the first method argument
- );
-}
-
-$var = myFunction(
- $foo,
- $bar
-);
-
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature allowMultipleArguments false
-
-fputs(
- STDOUT,
- "Examples:
- $ {$app} , --all
- $ {$app} --all",
- $something
-);
-
-$array = array();
-array_map(
- function($x)
- {
- return trim($x, $y);
- },
- $foo,
- $array
-);
-
-$bar = new stdClass(
- 4, /* thanks */
- 5, /* PSR-2 */
- 6
-);
-
-public function doSomething()
-{
- return $this->getFoo()
- ->doBar(
- $this->getX() // no comma here
- ->doY() // this is still the first method argument
- ->doZ() // this is still the first method argument
- );
-}
-
-doError(
- 404, // status code
- 'Not Found', // error name
- 'Check your id' // fix
-);
-
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature allowMultipleArguments true
-
-// Don't report errors for closing braces. Leave that to other sniffs.
-foo(
- [
- 'this',
- 'is',
- 'an',
- 'array'
- ],
- [
- 'this',
- 'is',
- 'an',
- 'array'
- ],
- array(
- 'this',
- 'is',
- 'an',
- 'array'
- ),
- array(
- 'this',
- 'is',
- 'an',
- 'array'
- ),
- function($x)
- {
- echo 'wee';
-
- return trim($x);
- }
-);
-
-function foo()
-{
- myFunction(
- 'string'.
- // comment
- // comment
- 'string'.
- /* comment
- * comment
- */
- 'string'.
- );
-}
-
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 1
-test( $arg, $arg2 );
-test( $arg, $arg2 );
-test( $arg, $arg2 );
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 0
-
-?>
-<script>
- var foo = <?php echo bar(
- 'baz'
- ); ?>;
-</script>
- <script>
- var foo = <?php echo bar(
- 'baz'
- ); ?>;
- </script>
-<?php
-
-array_walk(
- $types,
- function ($title, $type) {
- $plural = 'all' !== $type ? 's' : '';
- ?>
- <li><a href="<?php esc_url('#tabs-documents-' . $type . $plural); ?>"><?php echo esc_html($title); ?></a></li>
- <?php
- }
-);
-
-$this->log(// ...
- 'error',
- sprintf(
- 'Message: %s',
- isset($e->getData()['object']['evidence_details'])
- ? $e->getData()['object']['evidence_details']['due_by']
- : ''
- ),
- array($e->getData()['object'])
-);
-
-?>
-<div>
- <?php getTemplatePart(
- 'partials/web-page/carousel-slick/item-slide/header',
- [
- 'class' => $class
- ]
- ); ?>
-</div>
-
-<?php
-if (true) {
- $test = '
- ' . function_0(
- $argument_0
- );
-}
-
-if (true) {
- $test = '
- ' . function_0(
- $argument_0,
- $argument_1
- );
-}
-
-myFunction(
- 'foo', (object) array(
- 'bar' => function ($x) {
- return true;
- },
- 'baz' => false
- )
-);
-$qux = array_filter(
- $quux, function ($x) {
- return $x;
- }
-);
-
-array_filter(
- [1, 2],
- function ($i) : bool {
- return $i === 0;
- }
-);
-
-foo(
- array(
- 'callback' => function () {
- $foo = 'foo';
- return;
- },
- )
-);
-
-foo(
- $a,
- /*
- $c,
-
- $d,
- */
- $e
-);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.js
deleted file mode 100644
index 1b893c33..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.js
+++ /dev/null
@@ -1,80 +0,0 @@
-test(
-);
-test();
-test(arg, arg2);
-test ();
-test( );
-test() ;
-test( arg);
-test( arg );
-test ( arg );
-
-if (foo(arg) === true) {
-
-}
-
-var something = get(arg1, arg2);
-var something = get(arg1, arg2) ;
-var something = get(arg1, arg2) ;
-
-make_foo(string/*the string*/, true/*test*/);
-make_foo(string/*the string*/, true/*test*/ );
-make_foo(string /*the string*/, true /*test*/);
-make_foo(/*the string*/string, /*test*/true);
-make_foo( /*the string*/string, /*test*/true);
-
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 1
-test(arg, arg2);
-test( arg, arg2 );
-test( arg, arg2 );
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 0
-
-this.init = function(data) {
- a.b('').a(function(itemid, target) {
- b(
- itemid,
- target,
- {
- reviewData: _reviewData,
- pageid: itemid
- },
- '',
- function() {
- var _showAspectItems = function(itemid) {
- a.a(a.c(''), '');
- a.b(a.c('-' + itemid), '');
- };
- a.foo(function(itemid, target) {
- _foo(itemid);
- });
- }
- );
- });
-};
-
-a.prototype = {
-
- a: function()
- {
- this.addItem(
- {
- /**
- * @return void
- */
- a: function()
- {
-
- },
- /**
- * @return void
- */
- a: function()
- {
-
- },
- }
- );
- }
-};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.js.fixed
deleted file mode 100644
index a001bcfc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.js.fixed
+++ /dev/null
@@ -1,84 +0,0 @@
-test(
-);
-test();
-test(arg, arg2);
-test();
-test();
-test();
-test(arg);
-test(arg);
-test(arg);
-
-if (foo(arg) === true) {
-
-}
-
-var something = get(arg1, arg2);
-var something = get(arg1, arg2);
-var something = get(arg1, arg2);
-
-make_foo(string/*the string*/, true/*test*/);
-make_foo(string/*the string*/, true/*test*/);
-make_foo(string /*the string*/, true /*test*/);
-make_foo(/*the string*/string, /*test*/true);
-make_foo(/*the string*/string, /*test*/true);
-
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 1
-test( arg, arg2 );
-test( arg, arg2 );
-test( arg, arg2 );
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting PEAR.Functions.FunctionCallSignature requiredSpacesBeforeClose 0
-
-this.init = function(data) {
- a.b('').a(
- function(itemid, target) {
- b(
- itemid,
- target,
- {
- reviewData: _reviewData,
- pageid: itemid
- },
- '',
- function() {
- var _showAspectItems = function(itemid) {
- a.a(a.c(''), '');
- a.b(a.c('-' + itemid), '');
- };
- a.foo(
- function(itemid, target) {
- _foo(itemid);
- }
- );
- }
- );
- }
- );
-};
-
-a.prototype = {
-
- a: function()
- {
- this.addItem(
- {
- /**
- * @return void
- */
- a: function()
- {
-
- },
- /**
- * @return void
- */
- a: function()
- {
-
- },
- }
- );
- }
-};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php
deleted file mode 100644
index dd56d7e3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionCallSignature sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionCallSignatureUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='FunctionCallSignatureUnitTest.inc')
- {
- if ($testFile === 'FunctionCallSignatureUnitTest.js') {
- return array(
- 5 => 1,
- 6 => 2,
- 7 => 1,
- 8 => 1,
- 9 => 2,
- 10 => 3,
- 17 => 1,
- 18 => 1,
- 21 => 1,
- 24 => 1,
- 28 => 2,
- 30 => 2,
- 35 => 1,
- 49 => 1,
- 51 => 1,
- 54 => 1,
- 70 => 1,
- 71 => 1,
- );
- }//end if
-
- return array(
- 5 => 1,
- 6 => 2,
- 7 => 1,
- 8 => 1,
- 9 => 2,
- 10 => 3,
- 17 => 1,
- 18 => 1,
- 31 => 1,
- 34 => 1,
- 43 => 2,
- 57 => 1,
- 59 => 1,
- 63 => 1,
- 64 => 1,
- 82 => 1,
- 93 => 1,
- 100 => 1,
- 106 => 2,
- 119 => 1,
- 120 => 1,
- 129 => 1,
- 137 => 1,
- 142 => 2,
- 171 => 1,
- 180 => 1,
- 181 => 1,
- 194 => 1,
- 213 => 2,
- 215 => 2,
- 274 => 1,
- 275 => 1,
- 300 => 1,
- 305 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc
deleted file mode 100644
index 363d967e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc
+++ /dev/null
@@ -1,211 +0,0 @@
-<?php
-public function someFunctionWithAVeryLongName($firstParameter='something',
- $secondParameter='booooo', $third=null, $fourthParameter=false,
- $fifthParameter=123.12, $sixthParam=true
-){
-}
-
-function someFunctionWithAVeryLongName2($firstParameter='something',
-$secondParameter='booooo', $third=null, $fourthParameter=false,
-$fifthParameter=123.12, $sixthParam=true
-) {
-}
-
-function blah() {
-}
-
-function blah()
-{
-}
-
-class MyClass
-{
-
- public function someFunctionWithAVeryLongName($firstParameter='something',
- $secondParameter='booooo', $third=null, $fourthParameter=false,
- $fifthParameter=123.12, $sixthParam=true
- ) /** w00t */ {
- }
-
- public function someFunctionWithAVeryLongName2(
- $firstParameter='something', $secondParameter='booooo', $third=null
- ) {
- }
-
- protected abstract function processTokenWithinScope(
- PHP_CodeSniffer_File $phpcsFile,
- $stackPtr,
- $currScope
- );
-
- protected abstract function processToken(
- PHP_CodeSniffer_File $phpcsFile,
- $stackPtr,
- $currScope);
-
-}
-
-function getInstalledStandards(
- $includeGeneric=false,
- $standardsDir=''
-)
-{
-}
-
-function &testFunction($arg1,
- $arg2,
-) {
-}
-
-function testFunction($arg1,
-$arg2) {
-}
-
-function validateUrl(
- $url,
- $requireScheme=TRUE,
- array $allowedSchemes=array(
- 'http',
- 'https',
- ),
- array $notAllowedSchemes=array('ftp', 'sftp')
-) {
-}
-
-function validateUrlShort(
- $url,
- $requireScheme=TRUE,
- array $allowedSchemes=[
- 'http',
- 'https',
- ],
- array $notAllowedSchemes=['ftp', 'sftp']
-) {
-}
-
-$noArgs_longVars = function () use (
- $longVar1,
- $longerVar2,
- $muchLongerVar3
-) {
- // body
-};
-
-$longArgs_longVars = function (
- $longArgument,
- $longerArgument,
- $muchLongerArgument
-) use (
- $longVar1,
- $longerVar2,
- $muchLongerVar3
-) {
- // body
-};
-
-$longArgs_longVars = function (
- $longArgument,
- $longerArgument,
- $muchLongerArgument
- ) use (
- $longVar1,
- $longerVar2,
- $muchLongerVar3
-) {
- // body
-};
-
-$longArgs_longVars = function (
- $longArgument,
- $muchLongerArgument)use(
- $muchLongerVar3) {
- // body
-};
-
-function test()
-{
- $longArgs_longVars = function (
- $longArgument,
- $longerArgument,
- $muchLongerArgument
- ) use (
- $longVar1,
- $longerVar2,
- $muchLongerVar3
- ) {
- // body
- };
-}
-
-function
- myFunction()
-{
-}
-
-function
-myFunction()
-{
-}
-
-
-use function foo\bar;
-
-use
- function bar\baz;
-
-namespace {
- use function Name\Space\f;
- f();
-}
-
-$var = function() {return true;};
-$var = function() {return true;
-};
-function blah(){return true;
-}
-
-$closureWithArgsAndVars = function($arg1, $arg2) use ($var1, $var2){
- // body
-};
-
-function
-blah
-()
-{
- // body
-}
-
-$b = function &() {
- echo "hello";
-};
-
-function foo(
- $param1,
- $param2,
- $param3,
-) : SomeClass {
-}
-
-function foo(
- $param1,
- $param2,
- $param3,
-): SomeClass {
-}
-
-function foo(
- $param1,
- $param2,
- $param3,
-): SomeClass // Comment here
-{
-}
-
-function foo(
- $param1,
-
- $param2,
-
- $param3,
-) : SomeClass {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc.fixed
deleted file mode 100644
index 239ad18f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc.fixed
+++ /dev/null
@@ -1,214 +0,0 @@
-<?php
-public function someFunctionWithAVeryLongName($firstParameter='something',
- $secondParameter='booooo', $third=null, $fourthParameter=false,
- $fifthParameter=123.12, $sixthParam=true
-) {
-}
-
-function someFunctionWithAVeryLongName2($firstParameter='something',
- $secondParameter='booooo', $third=null, $fourthParameter=false,
- $fifthParameter=123.12, $sixthParam=true
-) {
-}
-
-function blah()
-{
-}
-
-function blah()
-{
-}
-
-class MyClass
-{
-
- public function someFunctionWithAVeryLongName($firstParameter='something',
- $secondParameter='booooo', $third=null, $fourthParameter=false,
- $fifthParameter=123.12, $sixthParam=true
- ) /** w00t */ {
- }
-
- public function someFunctionWithAVeryLongName2(
- $firstParameter='something', $secondParameter='booooo', $third=null
- ) {
- }
-
- protected abstract function processTokenWithinScope(
- PHP_CodeSniffer_File $phpcsFile,
- $stackPtr,
- $currScope
- );
-
- protected abstract function processToken(
- PHP_CodeSniffer_File $phpcsFile,
- $stackPtr,
- $currScope
-);
-
-}
-
-function getInstalledStandards(
- $includeGeneric=false,
- $standardsDir=''
-) {
-
-}
-
-function &testFunction($arg1,
- $arg2,
-) {
-}
-
-function testFunction($arg1,
- $arg2
-) {
-}
-
-function validateUrl(
- $url,
- $requireScheme=TRUE,
- array $allowedSchemes=array(
- 'http',
- 'https',
- ),
- array $notAllowedSchemes=array('ftp', 'sftp')
-) {
-}
-
-function validateUrlShort(
- $url,
- $requireScheme=TRUE,
- array $allowedSchemes=[
- 'http',
- 'https',
- ],
- array $notAllowedSchemes=['ftp', 'sftp']
-) {
-}
-
-$noArgs_longVars = function () use (
- $longVar1,
- $longerVar2,
- $muchLongerVar3
-) {
- // body
-};
-
-$longArgs_longVars = function (
- $longArgument,
- $longerArgument,
- $muchLongerArgument
-) use (
- $longVar1,
- $longerVar2,
- $muchLongerVar3
-) {
- // body
-};
-
-$longArgs_longVars = function (
- $longArgument,
- $longerArgument,
- $muchLongerArgument
-) use (
- $longVar1,
- $longerVar2,
- $muchLongerVar3
-) {
- // body
-};
-
-$longArgs_longVars = function (
- $longArgument,
- $muchLongerArgument
-) use (
- $muchLongerVar3
-) {
- // body
-};
-
-function test()
-{
- $longArgs_longVars = function (
- $longArgument,
- $longerArgument,
- $muchLongerArgument
- ) use (
- $longVar1,
- $longerVar2,
- $muchLongerVar3
- ) {
- // body
- };
-}
-
-function myFunction()
-{
-}
-
-function myFunction()
-{
-}
-
-
-use function foo\bar;
-
-use
- function bar\baz;
-
-namespace {
- use function Name\Space\f;
- f();
-}
-
-$var = function () {
-return true;};
-$var = function () {
-return true;
-};
-function blah()
-{
-return true;
-}
-
-$closureWithArgsAndVars = function ($arg1, $arg2) use ($var1, $var2) {
- // body
-};
-
-function blah()
-{
- // body
-}
-
-$b = function &() {
- echo "hello";
-};
-
-function foo(
- $param1,
- $param2,
- $param3,
-) : SomeClass {
-}
-
-function foo(
- $param1,
- $param2,
- $param3,
-): SomeClass {
-}
-
-function foo(
- $param1,
- $param2,
- $param3,
-): SomeClass { // Comment here
-
-}
-
-function foo(
- $param1,
- $param2,
- $param3,
-) : SomeClass {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js
deleted file mode 100644
index a0c96fa2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js
+++ /dev/null
@@ -1,56 +0,0 @@
-
-function someFunctionWithAVeryLongName(firstParameter='something',
- secondParameter='booooo', third=null, fourthParameter=false,
- fifthParameter=123.12, sixthParam=true
-){
-}
-
-function someFunctionWithAVeryLongName2(firstParameter='something',
-secondParameter='booooo', third=null, fourthParameter=false,
-fifthParameter=123.12, sixthParam=true
-) {
-}
-
-function blah() {
-}
-
-function blah()
-{
-}
-
-var object =
-{
-
- someFunctionWithAVeryLongName: function (firstParameter='something',
- secondParameter='booooo', third=null, fourthParameter=false,
- fifthParameter=123.12, sixthParam=true
- ) /** w00t */ {
- }
-
- someFunctionWithAVeryLongName2: function (
- firstParameter='something', secondParameter='booooo', third=null
- ) {
- }
-
-}
-
-function getInstalledStandards(
- includeGeneric=false,
- standardsDir=''
-)
-{
-}
-
-var a = Function('return 1+1');
-
-class test
-{
- myFunction() {
- return false;
- }
-
- myFunction2()
- {
- return false;
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js.fixed
deleted file mode 100644
index 92054342..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.js.fixed
+++ /dev/null
@@ -1,58 +0,0 @@
-
-function someFunctionWithAVeryLongName(firstParameter='something',
- secondParameter='booooo', third=null, fourthParameter=false,
- fifthParameter=123.12, sixthParam=true
-) {
-}
-
-function someFunctionWithAVeryLongName2(firstParameter='something',
- secondParameter='booooo', third=null, fourthParameter=false,
- fifthParameter=123.12, sixthParam=true
-) {
-}
-
-function blah()
-{
-}
-
-function blah()
-{
-}
-
-var object =
-{
-
- someFunctionWithAVeryLongName: function (firstParameter='something',
- secondParameter='booooo', third=null, fourthParameter=false,
- fifthParameter=123.12, sixthParam=true
- ) /** w00t */ {
- }
-
- someFunctionWithAVeryLongName2: function (
- firstParameter='something', secondParameter='booooo', third=null
- ) {
- }
-
-}
-
-function getInstalledStandards(
- includeGeneric=false,
- standardsDir=''
-) {
-
-}
-
-var a = Function('return 1+1');
-
-class test
-{
- myFunction()
- {
- return false;
- }
-
- myFunction2()
- {
- return false;
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php
deleted file mode 100644
index bb2086d4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='FunctionDeclarationUnitTest.inc')
- {
- if ($testFile === 'FunctionDeclarationUnitTest.inc') {
- $errors = array(
- 3 => 1,
- 4 => 1,
- 5 => 1,
- 9 => 1,
- 10 => 1,
- 11 => 1,
- 14 => 1,
- 17 => 1,
- 44 => 1,
- 52 => 1,
- 61 => 2,
- 98 => 1,
- 110 => 2,
- 120 => 3,
- 121 => 1,
- 140 => 1,
- 145 => 1,
- 161 => 2,
- 162 => 2,
- 164 => 2,
- 167 => 2,
- 171 => 1,
- 173 => 1,
- 201 => 1,
- 206 => 1,
- 208 => 1,
- );
- } else {
- $errors = array(
- 3 => 1,
- 4 => 1,
- 5 => 1,
- 9 => 1,
- 10 => 1,
- 11 => 1,
- 14 => 1,
- 17 => 1,
- 41 => 1,
- 48 => 1,
- );
- }//end if
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc
deleted file mode 100644
index 99ee0b09..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.inc
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-
-// No args.
-function myFunction()
-{
-}
-
-// No default args.
-function myFunction($arg1)
-{
-}
-
-// Valid
-function myFunction($arg1, $arg2='hello')
-{
-}
-
-// Valid with lots of args
-function myFunction($arg1, $arg2, $arg3, $arg4='hello', $arg5=array(), $arg6='hello')
-{
-}
-
-// Valid type hints
-function myFunction(array $arg1, array $arg2=array())
-{
-}
-
-// Invalid
-function myFunction($arg2='hello', $arg1)
-{
-}
-
-// Invalid with lots of args
-function myFunction($arg1, $arg2, $arg3, $arg4='hello', $arg5, $arg6='hello')
-{
-}
-
-// Invalid type hints
-function myFunction(array $arg2=array(), array $arg1)
-{
-}
-
-class myClass()
-{
- // No args.
- function myFunction()
- {
- }
-
- // No default args.
- function myFunction($arg1)
- {
- }
-
- // Valid
- function myFunction($arg1, $arg2='hello')
- {
- }
-
- // Valid with lots of args
- function myFunction($arg1, $arg2, $arg3, $arg4='hello', $arg5=array(), $arg6='hello')
- {
- }
-
- // Valid type hints
- function myFunction(array $arg1, array $arg2=array())
- {
- }
-
- // Invalid
- function myFunction($arg2='hello', $arg1)
- {
- }
-
- // Invalid with lots of args
- function myFunction($arg1, $arg2, $arg3, $arg4='hello', $arg5, $arg6='hello')
- {
- }
-
- // Invalid type hints
- function myFunction(array $arg2=array(), array $arg1)
- {
- }
-}
-
-function myFunc($req, $opt=null, ...$params) {}
-
-// Type hinting with NULL
-function foo(Foo $foo = null, $bar) {}
-function foo(Foo $foo, $bar) {}
-function foo(Foo $foo = null, $bar = true, $baz) {}
-function foo($baz, Foo $foo = null, $bar = true) {}
-function foo($baz, $bar = true, Foo $foo = null) {}
-
-// Valid closure
-function ($arg1, $arg2='hello') {}
-
-// Invalid closure
-function(array $arg2=array(), array $arg1) {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php
deleted file mode 100644
index 1a115f7b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Unit test class for the ValidDefaultValue sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ValidDefaultValueUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 29 => 1,
- 34 => 1,
- 39 => 1,
- 71 => 1,
- 76 => 1,
- 81 => 1,
- 91 => 1,
- 99 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc
deleted file mode 100644
index c6d15df7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.inc
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-
-class Valid_Name {}
-
-class invalid_Name {}
-
-class invalid_name {}
-
-class Invalid_name {}
-
-class VALID_Name {}
-
-class VALID_NAME {}
-
-class VALID_Name {}
-
-class ValidName {}
-
-class _Invalid_Name {}
-
-
-interface Valid_Name {}
-
-interface invalid_Name {}
-
-interface invalid_name {}
-
-interface Invalid_name {}
-
-interface VALID_Name {}
-
-interface VALID_NAME {}
-
-interface VALID_Name {}
-
-interface ValidName {}
-
-interface _Invalid_Name {}
-
-class ___ {}
-
-interface ___ {}
-
-class Invalid__Name {}
-
-interface Invalid__Name {}
-
-trait Valid_Name {}
-
-trait invalid_Name {}
-
-trait invalid_name {}
-
-trait Invalid_name {}
-
-trait VALID_Name {}
-
-trait VALID_NAME {}
-
-trait VALID_Name {}
-
-trait ValidName {}
-
-trait _Invalid_Name {}
-
-trait ___ {}
-
-trait Invalid__Name {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php
deleted file mode 100644
index 5c3faa45..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * Unit test class for the ValidClassName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ValidClassNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 5 => 1,
- 7 => 2,
- 9 => 1,
- 19 => 1,
- 24 => 1,
- 26 => 2,
- 28 => 1,
- 38 => 1,
- 40 => 2,
- 42 => 2,
- 44 => 1,
- 46 => 1,
- 50 => 1,
- 52 => 2,
- 54 => 1,
- 64 => 1,
- 66 => 2,
- 68 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.inc
deleted file mode 100644
index a11a8bbc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.inc
+++ /dev/null
@@ -1,231 +0,0 @@
-<?php
-
-abstract class My_Class {
-
- public function __construct() {}
- public function My_Class() {}
- public function _My_Class() {}
-
- public function getSomeValue() {}
- public function parseMyDSN() {}
- public function get_some_value() {}
- public function GetSomeValue() {}
- public function getSomeValue_Again() {}
- public function My_Package_getSomeValue() {}
- public function _getSomeValue() {}
- public function _parseMyDSN() {}
- public function _get_some_value() {}
- public function _GetSomeValue() {}
- public function _getSomeValue_Again() {}
- public function _My_Package_getSomeValue() {}
-
- protected function getSomeValue() {}
- protected function parseMyDSN() {}
- protected function get_some_value() {}
- protected function GetSomeValue() {}
- protected function getSomeValue_Again() {}
- protected function My_Package_getSomeValue() {}
- protected function _getSomeValue() {}
- protected function _parseMyDSN() {}
- protected function _get_some_value() {}
- protected function _GetSomeValue() {}
- protected function _getSomeValue_Again() {}
- protected function _My_Package_getSomeValue() {}
-
- private function getSomeValue() {}
- private function parseMyDSN() {}
- private function get_some_value() {}
- private function GetSomeValue() {}
- private function getSomeValue_Again() {}
- private function My_Package_getSomeValue() {}
- private function _getSomeValue() {}
- private function _parseMyDSN() {}
- private function _get_some_value() {}
- private function _GetSomeValue() {}
- private function _getSomeValue_Again() {}
- private function _My_Package_getSomeValue() {}
-
- function getSomeValue() {}
- function parseMyDSN() {}
- function get_some_value() {}
- function GetSomeValue() {}
- function getSomeValue_Again() {}
- function My_Package_getSomeValue() {}
- function _getSomeValue() {}
- function _parseMyDSN() {}
- function _get_some_value() {}
- function _GetSomeValue() {}
- function _getSomeValue_Again() {}
- function _My_Package_getSomeValue() {}
-
-}//end class
-
-interface My_Interface {
-
- public function getSomeValue() {}
- public function parseMyDSN() {}
- public function get_some_value() {}
- public function GetSomeValue() {}
- public function getSomeValue_Again() {}
- public function My_Package_getSomeValue() {}
- public function _getSomeValue() {}
- public function _parseMyDSN() {}
- public function _get_some_value() {}
- public function _GetSomeValue() {}
- public function _getSomeValue_Again() {}
- public function _My_Package_getSomeValue() {}
-
- protected function getSomeValue() {}
- protected function parseMyDSN() {}
- protected function get_some_value() {}
- protected function GetSomeValue() {}
- protected function getSomeValue_Again() {}
- protected function My_Package_getSomeValue() {}
- protected function _getSomeValue() {}
- protected function _parseMyDSN() {}
- protected function _get_some_value() {}
- protected function _GetSomeValue() {}
- protected function _getSomeValue_Again() {}
- protected function _My_Package_getSomeValue() {}
-
- private function getSomeValue() {}
- private function parseMyDSN() {}
- private function get_some_value() {}
- private function GetSomeValue() {}
- private function getSomeValue_Again() {}
- private function My_Package_getSomeValue() {}
- private function _getSomeValue() {}
- private function _parseMyDSN() {}
- private function _get_some_value() {}
- private function _GetSomeValue() {}
- private function _getSomeValue_Again() {}
- private function _My_Package_getSomeValue() {}
-
- function getSomeValue() {}
- function parseMyDSN() {}
- function get_some_value() {}
- function GetSomeValue() {}
- function getSomeValue_Again() {}
- function My_Package_getSomeValue() {}
- function _getSomeValue() {}
- function _parseMyDSN() {}
- function _get_some_value() {}
- function _GetSomeValue() {}
- function _getSomeValue_Again() {}
- function _My_Package_getSomeValue() {}
-
-}//end interface
-
-function My_Package_getSomeValue() {}
-function My_Package_parseMyDSN() {}
-function My_Package_get_some_value() {}
-function My_PackagegetSomeValue() {}
-function My_Package_getSomeValue_Again() {}
-function My_Package() {}
-function _My_Package_getSomeValue() {}
-function _My_Package_parseMyDSN() {}
-function _My_Package_get_some_value() {}
-function _My_PackagegetSomeValue() {}
-function _My_Package_getSomeValue_Again() {}
-function _My_Package() {}
-
-
-/* Test for magic functions */
-
-class Magic_Test {
- function __construct() {}
- function __destruct() {}
- function __call() {}
- function __callStatic() {}
- function __get() {}
- function __set() {}
- function __isset() {}
- function __unset() {}
- function __sleep() {}
- function __wakeup() {}
- function __toString() {}
- function __set_state() {}
- function __clone() {}
- function __autoload() {}
- function __invoke() {}
- function __myFunction() {}
- function __my_function() {}
-}
-
-function __construct() {}
-function __destruct() {}
-function __call() {}
-function __callStatic() {}
-function __get() {}
-function __set() {}
-function __isset() {}
-function __unset() {}
-function __sleep() {}
-function __wakeup() {}
-function __toString() {}
-function __set_state() {}
-function __clone() {}
-function __autoload() {}
-function __invoke() {}
-function __myFunction() {}
-function __my_function() {}
-
-function my_package_function() {}
-function Package_() {}
-function Package() {}
-
-class Closure_Test {
- function test() {
- $foo = function() { echo 'foo'; };
- }
-}
-
-function test() {
- $foo = function() { echo 'foo'; };
-}
-
-/* @codingStandardsIgnoreStart */
-class MyClass
-{
- /* @codingStandardsIgnoreEnd */
- public function __construct() {}
-}
-
-trait Foo
-{
- function __call() {}
-}
-
-class Magic_Case_Test {
- function __Construct() {}
- function __isSet() {}
- function __tostring() {}
-}
-function __autoLoad() {}
-function _() {}
-
-function __debugInfo() {}
-class Foo {
- function __debugInfo() {}
-}
-
-/* Magic methods in anonymous classes. */
-$a new class {
- function __construct() {}
- function __destruct() {}
- function __call() {}
- function __callStatic() {}
- function __get() {}
- function __set() {}
- function __isset() {}
- function __unset() {}
- function __sleep() {}
- function __wakeup() {}
- function __toString() {}
- function __set_state() {}
- function __clone() {}
- function __autoload() {}
- function __invoke() {}
- function __myFunction() {}
- function __my_function() {}
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php
deleted file mode 100644
index 223788bf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php
+++ /dev/null
@@ -1,161 +0,0 @@
-<?php
-/**
- * Unit test class for the ValidFunctionName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ValidFunctionNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 11 => 1,
- 12 => 1,
- 13 => 1,
- 14 => 1,
- 15 => 1,
- 16 => 1,
- 17 => 1,
- 18 => 1,
- 19 => 1,
- 20 => 1,
- 24 => 1,
- 25 => 1,
- 26 => 1,
- 27 => 1,
- 28 => 1,
- 29 => 1,
- 30 => 1,
- 31 => 1,
- 32 => 1,
- 33 => 1,
- 35 => 1,
- 36 => 1,
- 37 => 1,
- 38 => 1,
- 39 => 1,
- 40 => 1,
- 43 => 1,
- 44 => 1,
- 45 => 1,
- 46 => 1,
- 50 => 1,
- 51 => 1,
- 52 => 1,
- 53 => 1,
- 56 => 1,
- 57 => 1,
- 58 => 1,
- 59 => 1,
- 67 => 1,
- 68 => 1,
- 69 => 1,
- 70 => 1,
- 71 => 1,
- 72 => 1,
- 73 => 1,
- 74 => 1,
- 75 => 1,
- 76 => 1,
- 80 => 1,
- 81 => 1,
- 82 => 1,
- 83 => 1,
- 84 => 1,
- 85 => 1,
- 86 => 1,
- 87 => 1,
- 88 => 1,
- 89 => 1,
- 91 => 1,
- 92 => 1,
- 93 => 1,
- 94 => 1,
- 95 => 1,
- 96 => 1,
- 99 => 1,
- 100 => 1,
- 101 => 1,
- 102 => 1,
- 106 => 1,
- 107 => 1,
- 108 => 1,
- 109 => 1,
- 112 => 1,
- 113 => 1,
- 114 => 1,
- 115 => 1,
- 121 => 1,
- 122 => 1,
- 123 => 1,
- 124 => 1,
- 125 => 1,
- 126 => 1,
- 127 => 1,
- 128 => 1,
- 129 => 1,
- 130 => 1,
- 149 => 1,
- 151 => 1,
- 152 => 1,
- 155 => 1,
- 156 => 1,
- 157 => 1,
- 158 => 1,
- 159 => 1,
- 160 => 1,
- 161 => 1,
- 162 => 1,
- 163 => 1,
- 164 => 1,
- 165 => 1,
- 166 => 1,
- 167 => 1,
- 169 => 1,
- 170 => 1,
- 171 => 1,
- 173 => 1,
- 174 => 1,
- 175 => 1,
- 207 => 1,
- 227 => 1,
- 229 => 1,
- 230 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.inc
deleted file mode 100644
index 20f18445..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.inc
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-class MyClass
-{
- $varName = 'hello';
- $var_name = 'hello';
- $varname = 'hello';
- $_varName = 'hello';
-
- public $varName = 'hello';
- public $var_name = 'hello';
- public $varname = 'hello';
- public $_varName = 'hello';
-
- protected $varName = 'hello';
- protected $var_name = 'hello';
- protected $varname = 'hello';
- protected $_varName = 'hello';
-
- private $_varName = 'hello';
- private $_var_name = 'hello';
- private $_varname = 'hello';
- private $varName = 'hello';
-}
-
-class MyClass
-{
- function func1()
- {
- function func2()
- {
- return $a;
- }
- return $data;
- }
-}
-
-class MyClass
-{
- public function prepare() {}
- public function paint() {}
-}
-
-if (true) {
- class MyClass
- {
- $varName = 'hello';
- $var_name = 'hello';
- }
-}
-
-class MyClass {
- function myFunction($cc, $cv) {
- $req = "delete from blah
- where not (POP_{$cc}_A =
-'{$this->def["POP_{$cc}_A"]}'
- and POP_{$cc}_B =
-'{$this->def["POP_{$cc}_B"]}')";
- }
-}
-
-class mpgResponse{
- var $term_id;
- var $currentTag;
- function characterHandler($parser,$data){
- switch($this->currentTag)
- {
- case "term_id": {
- $this->term_id=$data;
- break;
- }
- }
- }//end characterHandler
-}//end class mpgResponse
-
-class foo
-{
- const bar = <<<BAZ
-qux
-BAZ;
-}
-
-class foo
-{
- var $c = <<<C
-ccc
-C;
-}
-
-class a
-{
- protected
- $_sheet,
- $_FieldParser,
- $_key;
-}
-
-$util->setLogger(
- new class {
- private $varName = 'hello';
- private $_varName = 'hello';
-});
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php
deleted file mode 100644
index c504bc54..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * Unit test class for the ValidVariableName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ValidVariableNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 12 => 1,
- 17 => 1,
- 22 => 1,
- 92 => 1,
- 93 => 1,
- 94 => 1,
- 99 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.inc
deleted file mode 100644
index a675e780..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.inc
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-$someObject->someFunction("some", "parameter")
-->someOtherFunc(23, 42)->
- someOtherFunc2($one, $two)
-
- ->someOtherFunc3(23, 42)
- ->andAThirdFunction();
-
- $someObject->someFunction("some", "parameter")
- ->someOtherFunc(23, 42);
-
-$someObject->someFunction("some", "parameter")->someOtherFunc(23, 42);
-
-$someObject->someFunction("some", "parameter")
- ->someOtherFunc(23, 42);
-
-func(
- $bar->foo()
-)
- ->bar();
-
-func(
- $bar->foo()
-)
- ->bar(
- $bar->foo()
- ->bar()
- ->func()
- );
-
-$object
- ->setBar($foo)
- ->setFoo($bar);
-
-if ($bar) {
- $object
- ->setBar($foo)
- ->setFoo($bar);
-}
-
-$response -> CompletedTrackDetails -> TrackDetails -> Events;
-$response
- -> CompletedTrackDetails
- -> TrackDetails
- -> Events;
-
-$response
- -> CompletedTrackDetails
--> TrackDetails
- -> Events;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php
deleted file mode 100644
index a3b1c6b9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Unit test class for the ObjectOperatorIndent sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ObjectOperatorIndentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 2,
- 6 => 1,
- 15 => 1,
- 27 => 1,
- 37 => 1,
- 38 => 1,
- 48 => 1,
- 49 => 1,
- 50 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc
deleted file mode 100644
index 61e31314..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc
+++ /dev/null
@@ -1,146 +0,0 @@
-<?php
-
-class Test
-{
- public function __construct()
- {
- }
-
- function test1()
- {
- }
-
- function test2() {}
-
- private function _test3()
- {
- }
-
-}
-
-
-class Test2
-{
- }
-
-
-public function test2()
-{
- if ($str{0}) {
- $chr = $str{0}; }
-
-
- if (!class_exists($class_name)) {
- echo $error;
- }
- $this->{$property} =& new $class_name($this->db_index);
- $this->modules[$module] =& $this->{$property};
-}
-
-foreach ($elements as $element) {
- if ($something) {
- // Do IF.
- } else if ($somethingElse) {
- // Do ELSE.
- }
-}
-
-switch ($foo) {
-case 1:
- switch ($bar) {
- default:
- if ($something) {
- echo $string{1};
- } else if ($else) {
- switch ($else) {
- case 1:
- // Do something.
- break;
- default:
- // Do something.
- break;
- }
- }
- }
-break;
-case 2:
- // Do something;
- break;
-}
-
-switch ($httpResponseCode) {
- case 100:
- case 101:
- case 102:
- default:
- return 'Unknown';
-}
-
-switch ($httpResponseCode) {
- case 100:
- case 101:
- case 102:
- return 'Processing.';
- default:
- return 'Unknown';
-}
-
-switch($i) {
-case 1: {}
-}
-
-switch ($httpResponseCode) {
- case 100:
- case 101:
- case 102:
- exit;
- default:
- exit;
-}
-
-if ($foo):
- if ($bar):
- $foo = 1;
- elseif ($baz):
- $foo = 2;
- endif;
-endif;
-
-if ($foo):
-elseif ($baz): $foo = 2;
-endif;
-
-?>
-<ul>
- <?php foreach ($array as $value) : ?>
- <li><?php echo $value ?></li>
- <?php endforeach ?>
-</ul>
-<ul>
- <?php foreach ($array as $value) : ?>
- <li><?php echo $value ?></li>
-<?php endforeach ?>
-</ul>
-<ul>
- <?php foreach ($array as $value) : ?>
- <li><?php echo $value ?></li>
- <?php endforeach ?>
-</ul>
-<?php
-switch ( $a ) {
- case 'foo':
- do {
- $a = 'b';
- } while ( $a );
- return 5;
-
- case 'bar':
- foreach ( $a as $b ) {
- $e = 'b';
- }
- return 5;
-}
-
-?>
-<?php $_cartQty = $this->getSummaryCount(); ?>
-<div id="minicart" <?php if ($_cartQty == 0): ?>class="empty"<?php endif; ?>>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed
deleted file mode 100644
index 91633962..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed
+++ /dev/null
@@ -1,150 +0,0 @@
-<?php
-
-class Test
-{
- public function __construct()
- {
- }
-
- function test1()
- {
- }
-
- function test2() {
- }
-
- private function _test3()
- {
- }
-
-}
-
-
-class Test2
-{
-}
-
-
-public function test2()
-{
- if ($str{0}) {
- $chr = $str{0};
- }
-
-
- if (!class_exists($class_name)) {
- echo $error;
- }
- $this->{$property} =& new $class_name($this->db_index);
- $this->modules[$module] =& $this->{$property};
-}
-
-foreach ($elements as $element) {
- if ($something) {
- // Do IF.
- } else if ($somethingElse) {
- // Do ELSE.
- }
-}
-
-switch ($foo) {
-case 1:
- switch ($bar) {
- default:
- if ($something) {
- echo $string{1};
- } else if ($else) {
- switch ($else) {
- case 1:
- // Do something.
- break;
- default:
- // Do something.
- break;
- }
- }
- }
- break;
-case 2:
- // Do something;
- break;
-}
-
-switch ($httpResponseCode) {
- case 100:
- case 101:
- case 102:
- default:
- return 'Unknown';
-}
-
-switch ($httpResponseCode) {
- case 100:
- case 101:
- case 102:
- return 'Processing.';
- default:
- return 'Unknown';
-}
-
-switch($i) {
-case 1: {
- }
-}
-
-switch ($httpResponseCode) {
- case 100:
- case 101:
- case 102:
- exit;
- default:
- exit;
-}
-
-if ($foo):
- if ($bar):
- $foo = 1;
- elseif ($baz):
- $foo = 2;
- endif;
-endif;
-
-if ($foo):
-elseif ($baz): $foo = 2;
-endif;
-
-?>
-<ul>
- <?php foreach ($array as $value) : ?>
- <li><?php echo $value ?></li>
- <?php endforeach ?>
-</ul>
-<ul>
- <?php foreach ($array as $value) : ?>
- <li><?php echo $value ?></li>
- <?php endforeach ?>
-</ul>
-<ul>
- <?php foreach ($array as $value) : ?>
- <li><?php echo $value ?></li>
- <?php endforeach ?>
-</ul>
-<?php
-switch ( $a ) {
- case 'foo':
- do {
- $a = 'b';
- } while ( $a );
- return 5;
-
- case 'bar':
- foreach ( $a as $b ) {
- $e = 'b';
- }
- return 5;
-}
-
-?>
-<?php $_cartQty = $this->getSummaryCount(); ?>
-<div id="minicart" <?php if ($_cartQty == 0): ?>class="empty"<?php
-endif; ?>>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php
deleted file mode 100644
index b6fb2592..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/**
- * Unit test class for the ScopeClosingBrace sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ScopeClosingBraceUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 11 => 1,
- 13 => 1,
- 24 => 1,
- 30 => 1,
- 61 => 1,
- 65 => 1,
- 85 => 1,
- 89 => 1,
- 98 => 1,
- 122 => 1,
- 127 => 1,
- 135 => 1,
- 141 => 1,
- 146 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.inc
deleted file mode 100644
index 3cc328df..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.inc
+++ /dev/null
@@ -1,314 +0,0 @@
-<?php
-
-class Test
-{
- function __construct()
- {
- $this->hello(); // error here
- }
-
- function hello() // error here
- { // no error here as brackets can be put anywhere in the pear standard
- echo 'hello';
- }
-
- function hello2()
- {
- if (TRUE) { // error here
- echo 'hello'; // no error here as its more than 4 spaces.
- } else {
- echo 'bye'; // error here
- }
-
- while (TRUE) {
- echo 'hello'; // error here
- }
-
- do { // error here
- echo 'hello'; // error here
- } while (TRUE);
- }
-
- function hello3()
- {
- switch ($hello) {
- case 'hello':
- break;
- }
- }
-
-}
-
-?>
-<pre>
-</head>
-<body>
-<?php
-if ($form->validate()) {
- $safe = $form->getSubmitValues();
-}
-?>
-</pre>
-<?php
-
-class Test2
-{
- function __construct()
- {
- // $this->open(); // error here
- }
-
- public function open()
- {
- // Some inline stuff that shouldn't error
- if (TRUE) echo 'hello';
- foreach ($tokens as $token) echo $token;
- }
-
- /**
- * This is a comment 1.
- * This is a comment 2.
- * This is a comment 3.
- * This is a comment 4.
- */
- public function close()
- {
- // All ok.
- if (TRUE) {
- if (TRUE) {
- } else if (FALSE) {
- foreach ($tokens as $token) {
- switch ($token) {
- case '1':
- case '2':
- if (true) {
- if (false) {
- if (false) {
- if (false) {
- echo 'hello';
- }
- }
- }
- }
- break;
- case '5':
- break;
- }
- do {
- while (true) {
- foreach ($tokens as $token) {
- for ($i = 0; $i < $token; $i++) {
- echo 'hello';
- }
- }
- }
- } while (true);
- }
- }
- }
- }
-
- /*
- This is another c style comment 1.
- This is another c style comment 2.
- This is another c style comment 3.
- This is another c style comment 4.
- This is another c style comment 5.
- */
-
- /*
- *
- *
- *
- */
-
- /**
- */
-
- /*
- This comment has a newline in it.
-
- */
-
- public function read()
- {
- echo 'hello';
-
- // no errors below.
- $array = array(
- 'this',
- 'that' => array(
- 'hello',
- 'hello again' => array(
- 'hello',
- ),
- ),
- );
- }
-}
-
-abstract class Test3
-{
- public function parse()
- {
-
- foreach ($t as $ndx => $token) {
- if (is_array($token)) {
- echo 'here';
- } else {
- $ts[] = array("token" => $token, "value" => '');
-
- $last = count($ts) - 1;
-
- switch ($token) {
- case '(':
-
- if ($last >= 3 &&
- $ts[0]['token'] != T_CLASS &&
- $ts[$last - 2]['token'] == T_OBJECT_OPERATOR &&
- $ts[$last - 3]['token'] == T_VARIABLE ) {
-
-
- if (true) {
- echo 'hello';
- }
- }
- array_push($braces, $token);
- break;
- }
- }
- }
- }
-}
-
-public function test()
-{
- $o = <<<EOF
-this is some text
-this is some text
-this is some text
-this is some text
-this is some text
-this is some text
-EOF;
-
- return $o;
-}
-
-if ($a === true || $a === true || $a === true || $a === true ||
- $a === true || $a === true || $a === true || $a === true) {
-
- echo 'hello';
-}
-
-if ($true) {
- /* First comment line
- *
- * Comment test here
- * Comment test here
- *
- */
-
- /* First comment line
- *
- * Comment test here
- * Comment test here
- *
- this si something */
-}
-
-function test()
-{
- /* taken from http://de3.php.net/manual/en/reserved.php */
- # $m[] = 'declare';
- /* taken from http://de3.php.net/manual/en/reserved.php */
- # $m[] = 'declare';
-}
-
-foreach ($elements as $element) {
- if ($something) {
- // Do IF.
- } else if ($somethingElse) {
- // Do ELSE.
- }
-}
-
-if ($condition) {
- echo "This is a long
-string that spans $numLines lines
-without indenting.
-";
-}
-
-if ($condition) {
- echo 'This is a long
- string that spans multiple lines
- with indenting.
- ';
-}
-
-if ($condition) {
- echo 'This is a long
- string that spans multiple lines
- with indenting.';
-}
-
-switch ($foo) {
-case 1:
- switch ($bar) {
- default:
- echo $string{1};
- }
- break;
-}
-
-function temp($foo, $bar) {
- switch ($foo) {
- case 1:
- switch ($bar) {
- default:
- return $foo;
- }
- break;
- }
-}
-
-switch ($foo) {
-case 1:
- switch ($bar) {
- default:
- if ($something) {
- echo $string{1};
- } else if ($else) {
- switch ($else) {
- default:
- }
- }
- }
- break;
-}
-
-switch ($name) {
-case "1":
-case "2":
-case "3":
- return true;
-}
-
-switch ($name) {
-case "1":
-case "2":
-case "3":
-default :
- return true;
-}
-
-// Don't check the first token in the closure.
-$array = array();
-array_map(
- function($x)
- {
- return trim($x);
- },
- $array
-); \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php
deleted file mode 100644
index c1067e65..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/**
- * Unit test class for the ScopeIndent sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ScopeIndentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 7 => 1,
- 10 => 1,
- 17 => 1,
- 20 => 1,
- 24 => 1,
- 25 => 1,
- 27 => 1,
- 28 => 1,
- 29 => 1,
- 30 => 1,
- 58 => 1,
- 123 => 1,
- 224 => 1,
- 225 => 1,
- 279 => 1,
- 284 => 1,
- 311 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/ruleset.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/ruleset.xml
deleted file mode 100644
index cf594cc0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/ruleset.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0"?>
-<ruleset name="PEAR">
- <description>The PEAR coding standard.</description>
-
- <!-- Include some additional sniffs from the Generic standard -->
- <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
- <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
- <rule ref="Generic.PHP.LowerCaseConstant"/>
- <rule ref="Generic.PHP.DisallowShortOpenTag"/>
- <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
- <rule ref="Generic.Commenting.DocComment"/>
- <rule ref="Squiz.Commenting.DocCommentAlignment"/>
-
- <!-- Lines can be 85 chars long, but never show errors -->
- <rule ref="Generic.Files.LineLength">
- <properties>
- <property name="lineLimit" value="85"/>
- <property name="absoluteLineLimit" value="0"/>
- </properties>
- </rule>
-
- <!-- Use Unix newlines -->
- <rule ref="Generic.Files.LineEndings">
- <properties>
- <property name="eolChar" value="\n"/>
- </properties>
- </rule>
-
- <!-- This message is not required as spaces are allowed for alignment -->
- <rule ref="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma">
- <severity>0</severity>
- </rule>
-
- <!-- Use warnings for inline control structures -->
- <rule ref="Generic.ControlStructures.InlineControlStructure">
- <properties>
- <property name="error" value="false"/>
- </properties>
- </rule>
-
-</ruleset>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Classes/ClassDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Classes/ClassDeclarationStandard.xml
deleted file mode 100644
index eaae99b2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Classes/ClassDeclarationStandard.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<documentation title="Class Declaration">
- <standard>
- <![CDATA[
- Each class must be in a file by itself and must be under a namespace (a top-level vendor name).
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: One class in a file.">
- <![CDATA[
-<?php
-namespace Foo;
-
-<em>class Bar</em> {
-}
- ]]>
- </code>
- <code title="Invalid: Multiple classes in a single file.">
- <![CDATA[
-<?php
-namespace Foo;
-
-<em>class Bar</em> {
-}
-
-<em>class Baz</em> {
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: A vendor-level namespace is used.">
- <![CDATA[
-<?php
-<em>namespace Foo;</em>
-
-class Bar {
-}
- ]]>
- </code>
- <code title="Invalid: No namespace used in file.">
- <![CDATA[
-<?php
-class Bar {
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Files/SideEffectsStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Files/SideEffectsStandard.xml
deleted file mode 100644
index 0ed04a07..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Docs/Files/SideEffectsStandard.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<documentation title="Side Effects">
- <standard>
- <![CDATA[
- A php file should either contain declarations with no side effects, or should just have logic (including side effects) with no declarations.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A class defined in a file by itself.">
- <![CDATA[
-<?php
-class Foo
-{
-}
- ]]>
- </code>
- <code title="Invalid: A class defined in a file with other code.">
- <![CDATA[
-<?php
-class Foo
-{
-}
-
-<em>echo "Class Foo loaded."</em>
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Classes/ClassDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Classes/ClassDeclarationSniff.php
deleted file mode 100644
index 7b0c5c8e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Classes/ClassDeclarationSniff.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-/**
- * Checks the declaration of the class is correct.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR1\Sniffs\Classes;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ClassDeclarationSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param integer $stackPtr The position of the current token in
- * the token stack.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- return;
- }
-
- $errorData = array(strtolower($tokens[$stackPtr]['content']));
-
- $nextClass = $phpcsFile->findNext(array(T_CLASS, T_INTERFACE, T_TRAIT), ($tokens[$stackPtr]['scope_closer'] + 1));
- if ($nextClass !== false) {
- $error = 'Each %s must be in a file by itself';
- $phpcsFile->addError($error, $nextClass, 'MultipleClasses', $errorData);
- $phpcsFile->recordMetric($stackPtr, 'One class per file', 'no');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'One class per file', 'yes');
- }
-
- $namespace = $phpcsFile->findNext(array(T_NAMESPACE, T_CLASS, T_INTERFACE, T_TRAIT), 0);
- if ($tokens[$namespace]['code'] !== T_NAMESPACE) {
- $error = 'Each %s must be in a namespace of at least one level (a top-level vendor name)';
- $phpcsFile->addError($error, $stackPtr, 'MissingNamespace', $errorData);
- $phpcsFile->recordMetric($stackPtr, 'Class defined in namespace', 'no');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Class defined in namespace', 'yes');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php
deleted file mode 100644
index 97c979f9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php
+++ /dev/null
@@ -1,225 +0,0 @@
-<?php
-/**
- * Ensures a file declares new symbols and causes no other side effects, or executes logic with side effects, but not both.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR1\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class SideEffectsSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the token stack.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $result = $this->searchForConflict($phpcsFile, 0, ($phpcsFile->numTokens - 1), $tokens);
-
- if ($result['symbol'] !== null && $result['effect'] !== null) {
- $error = 'A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line %s and the first side effect is on line %s.';
- $data = array(
- $tokens[$result['symbol']]['line'],
- $tokens[$result['effect']]['line'],
- );
- $phpcsFile->addWarning($error, 0, 'FoundWithSymbols', $data);
- $phpcsFile->recordMetric($stackPtr, 'Declarations and side effects mixed', 'yes');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Declarations and side effects mixed', 'no');
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
- /**
- * Searches for symbol declarations and side effects.
- *
- * Returns the positions of both the first symbol declared and the first
- * side effect in the file. A NULL value for either indicates nothing was
- * found.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $start The token to start searching from.
- * @param int $end The token to search to.
- * @param array $tokens The stack of tokens that make up
- * the file.
- *
- * @return array
- */
- private function searchForConflict($phpcsFile, $start, $end, $tokens)
- {
- $symbols = array(
- T_CLASS => T_CLASS,
- T_INTERFACE => T_INTERFACE,
- T_TRAIT => T_TRAIT,
- T_FUNCTION => T_FUNCTION,
- );
-
- $conditions = array(
- T_IF => T_IF,
- T_ELSE => T_ELSE,
- T_ELSEIF => T_ELSEIF,
- );
-
- $firstSymbol = null;
- $firstEffect = null;
- for ($i = $start; $i <= $end; $i++) {
- // Ignore whitespace and comments.
- if (isset(Tokens::$emptyTokens[$tokens[$i]['code']]) === true) {
- continue;
- }
-
- // Ignore PHP tags.
- if ($tokens[$i]['code'] === T_OPEN_TAG
- || $tokens[$i]['code'] === T_CLOSE_TAG
- ) {
- continue;
- }
-
- // Ignore shebang.
- if (substr($tokens[$i]['content'], 0, 2) === '#!') {
- continue;
- }
-
- // Ignore entire namespace, declare, const and use statements.
- if ($tokens[$i]['code'] === T_NAMESPACE
- || $tokens[$i]['code'] === T_USE
- || $tokens[$i]['code'] === T_DECLARE
- || $tokens[$i]['code'] === T_CONST
- ) {
- if (isset($tokens[$i]['scope_opener']) === true) {
- $i = $tokens[$i]['scope_closer'];
- } else {
- $semicolon = $phpcsFile->findNext(T_SEMICOLON, ($i + 1));
- if ($semicolon !== false) {
- $i = $semicolon;
- }
- }
-
- continue;
- }
-
- // Ignore function/class prefixes.
- if (isset(Tokens::$methodPrefixes[$tokens[$i]['code']]) === true) {
- continue;
- }
-
- // Ignore anon classes.
- if ($tokens[$i]['code'] === T_ANON_CLASS) {
- $i = $tokens[$i]['scope_closer'];
- continue;
- }
-
- // Detect and skip over symbols.
- if (isset($symbols[$tokens[$i]['code']]) === true
- && isset($tokens[$i]['scope_closer']) === true
- ) {
- if ($firstSymbol === null) {
- $firstSymbol = $i;
- }
-
- $i = $tokens[$i]['scope_closer'];
- continue;
- } else if ($tokens[$i]['code'] === T_STRING
- && strtolower($tokens[$i]['content']) === 'define'
- ) {
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($i - 1), null, true);
- if ($tokens[$prev]['code'] !== T_OBJECT_OPERATOR) {
- if ($firstSymbol === null) {
- $firstSymbol = $i;
- }
-
- $semicolon = $phpcsFile->findNext(T_SEMICOLON, ($i + 1));
- if ($semicolon !== false) {
- $i = $semicolon;
- }
-
- continue;
- }
- }//end if
-
- // Conditional statements are allowed in symbol files as long as the
- // contents is only a symbol definition. So don't count these as effects
- // in this case.
- if (isset($conditions[$tokens[$i]['code']]) === true) {
- if (isset($tokens[$i]['scope_opener']) === false) {
- // Probably an "else if", so just ignore.
- continue;
- }
-
- $result = $this->searchForConflict(
- $phpcsFile,
- ($tokens[$i]['scope_opener'] + 1),
- ($tokens[$i]['scope_closer'] - 1),
- $tokens
- );
-
- if ($result['symbol'] !== null) {
- if ($firstSymbol === null) {
- $firstSymbol = $result['symbol'];
- }
-
- if ($result['effect'] !== null) {
- // Found a conflict.
- $firstEffect = $result['effect'];
- break;
- }
- }
-
- if ($firstEffect === null) {
- $firstEffect = $result['effect'];
- }
-
- $i = $tokens[$i]['scope_closer'];
- continue;
- }//end if
-
- if ($firstEffect === null) {
- $firstEffect = $i;
- }
-
- if ($firstSymbol !== null) {
- // We have a conflict we have to report, so no point continuing.
- break;
- }
- }//end for
-
- return array(
- 'symbol' => $firstSymbol,
- 'effect' => $firstEffect,
- );
-
- }//end searchForConflict()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Methods/CamelCapsMethodNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Methods/CamelCapsMethodNameSniff.php
deleted file mode 100644
index 10aa20ef..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Sniffs/Methods/CamelCapsMethodNameSniff.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/**
- * Ensures method names are defined using camel case.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR1\Sniffs\Methods;
-
-use PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\CamelCapsFunctionNameSniff as GenericCamelCapsFunctionNameSniff;
-use PHP_CodeSniffer\Util\Common;
-use PHP_CodeSniffer\Files\File;
-
-class CamelCapsMethodNameSniff extends GenericCamelCapsFunctionNameSniff
-{
-
-
- /**
- * Processes the tokens within the scope.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being processed.
- * @param int $stackPtr The position where this token was
- * found.
- * @param int $currScope The position of the current scope.
- *
- * @return void
- */
- protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- $methodName = $phpcsFile->getDeclarationName($stackPtr);
- if ($methodName === null) {
- // Ignore closures.
- return;
- }
-
- // Ignore magic methods.
- if (preg_match('|^__[^_]|', $methodName) !== 0) {
- $magicPart = strtolower(substr($methodName, 2));
- if (isset($this->magicMethods[$magicPart]) === true
- || isset($this->methodsDoubleUnderscore[$magicPart]) === true
- ) {
- return;
- }
- }
-
- $testName = ltrim($methodName, '_');
- if ($testName !== '' && Common::isCamelCaps($testName, false, true, false) === false) {
- $error = 'Method name "%s" is not in camel caps format';
- $className = $phpcsFile->getDeclarationName($currScope);
- $errorData = array($className.'::'.$methodName);
- $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
- $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'no');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'yes');
- }
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes the tokens outside the scope.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being processed.
- * @param int $stackPtr The position where this token was
- * found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
-
- }//end processTokenOutsideScope()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.1.inc
deleted file mode 100644
index 58cb85e3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.1.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-class Foo {}
-class Bar {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.2.inc
deleted file mode 100644
index e14c7511..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.2.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-namespace MyProject;
-
-class Foo {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php
deleted file mode 100644
index 53b4b3bd..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * Unit test class for the ClassDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR1\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClassDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- if ($testFile === 'ClassDeclarationUnitTest.2.inc') {
- return array();
- }
-
- if (PHP_VERSION_ID >= 50300) {
- return array(
- 2 => 1,
- 3 => 2,
- );
- } else {
- return array(3 => 1);
- }
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.1.inc
deleted file mode 100644
index 3b851985..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.1.inc
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-namespace Vendor\Model;
-
-const CONSTANT1 = 1;
-const CONSTANT2 = 2;
-
-use Something;
-use SomethingElse;
-
-declare(ticks=1);
-
-declare(ticks=1) {
- // Code.
-}
-
-define("MAXSIZE", 100);
-if (defined('MINSIZE') === false) {
- define("MINSIZE", 10);
-}
-
-// Class comment.
-final class Foo
-{
- public $myvar = 'foo';
-
- // Function comment.
- function Bar() {
- echo 'hi';
- }
-}
-
-function MyFunction() {
- echo 'hi';
-}
-
-if (!function_exists('YourFunction')) {
- // Define a function.
- function YourFunction() {
- echo 'hi';
- }
-}
-
-if (!class_exists('MyClass')) {
- // Define a class.
- class MyClass
- {
- function SomeFunction() {}
- }
-} else if (!interface_exists('MyInterface')) {
- interface MyInterface {}
-} elseif (!interface_exists('MyInterface')) {
- interface MyInterface {}
-} else {
- interface MyInterface {}
-}
-
-if (!interface_exists('MyInterface')) {
- // Define an interface.
- interface MyInterface {}
-}
-
-namespace {
- class A {}
-}
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.2.inc
deleted file mode 100644
index cd3fbeb1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.2.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-include 'Somefile';
-
-const CONSTANT1 = 1;
-const CONSTANT2 = 2;
-
-if ($something) {
- echo 'hi';
-}
-
-$var = myFunction();
-print_r($var);
-echo $object->define();
-echo $object -> define();
-
-$c = new class extends Something{
-
- public function someMethod()
- {
- // ...
- }
-
-};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.3.inc
deleted file mode 100644
index d4ae77ee..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.3.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-define("MAXSIZE", 100);
-$defined = true;
-if (defined('MINSIZE') === false) {
- $defined = false;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.4.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.4.inc
deleted file mode 100644
index c5ab94dc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.4.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
-<?php
-function printHead() {
- echo '<head></head>';
-}
-
-printHead();
-?>
-<body></body>
-</html>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.5.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.5.inc
deleted file mode 100644
index 7265c637..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.5.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-define('SOME_VERSION', '0.1-foo') ?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.6.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.6.inc
deleted file mode 100644
index e02fed4b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.6.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-namespace Bar;
-
-use some\foo\{ClassA, ClassB, ClassC as C};
-use function some\foo\{fn_a, fn_b, fn_c};
-use const some\foo\{ConstA, ConstB, ConstC};
-
-class Bar {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.7.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.7.inc
deleted file mode 100644
index dcde6b07..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.7.inc
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-//some code
-function foo()
-{
- return 'bar';
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php
deleted file mode 100644
index 1c33684d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * Unit test class for the SideEffects sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR1\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SideEffectsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='')
- {
- switch ($testFile) {
- case 'SideEffectsUnitTest.3.inc':
- case 'SideEffectsUnitTest.4.inc':
- case 'SideEffectsUnitTest.5.inc':
- return array(1 => 1);
- default:
- return array();
- }//end switch
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.inc
deleted file mode 100644
index 99c50b18..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.inc
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-
-abstract class My_Class {
-
- public function __construct() {}
- public function My_Class() {}
- public function _My_Class() {}
-
- public function getSomeValue() {}
- public function parseMyDSN() {}
- public function get_some_value() {}
- public function GetSomeValue() {}
- public function getSomeValue_Again() {}
-
- protected function getSomeValue() {}
- protected function parseMyDSN() {}
- protected function get_some_value() {}
-
- private function getSomeValue() {}
- private function parseMyDSN() {}
- private function get_some_value() {}
-
- function getSomeValue() {}
- function parseMyDSN() {}
- function get_some_value() {}
- function o_toString() {}
-
-}//end class
-
-function getSomeValue() {}
-function parseMyDSN() {}
-function get_some_value() {}
-
-class Closure_Test {
- function test() {
- $foo = function() { echo 'foo'; };
- }
-}
-
-trait Foo
-{
- function __call() {}
-}
-
-class Magic_Case_Test {
- function __Construct() {}
- function __isSet() {}
- function __tostring() {}
- function __set_state() {}
-}
-function __autoLoad() {}
-
-class Foo extends \SoapClient
-{
- public function __soapCall(
- $functionName,
- $arguments,
- $options = array(),
- $inputHeaders = null,
- &$outputHeaders = array()
- ) {
- // body
- }
-
- function __() {}
-}
-
-function ___tripleUnderscore() {} // Ok.
-
-class triple {
- public function ___tripleUnderscore() {} // Ok.
-}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php
deleted file mode 100644
index 411d5ce6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Unit test class for the CamelCapsMethodName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR1\Tests\Methods;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class CamelCapsMethodNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 6 => 1,
- 7 => 1,
- 11 => 1,
- 12 => 1,
- 13 => 1,
- 17 => 1,
- 21 => 1,
- 25 => 1,
- 26 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/ruleset.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/ruleset.xml
deleted file mode 100644
index 9b0096b6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR1/ruleset.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<ruleset name="PSR1">
- <description>The PSR1 coding standard.</description>
-
- <!-- 2. Files -->
-
- <!-- 2.1. PHP Tags -->
-
- <!-- PHP code MUST use the long <?php ?> tags or the short-echo <?= ?> tags; it MUST NOT use the other tag variations. -->
- <rule ref="Generic.PHP.DisallowShortOpenTag.EchoFound">
- <severity>0</severity>
- </rule>
-
- <!-- 2.2. Character Encoding -->
-
- <!-- PHP code MUST use only UTF-8 without BOM. -->
- <rule ref="Generic.Files.ByteOrderMark"/>
-
- <!-- 2.3. Side Effects -->
-
- <!-- A file SHOULD declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it SHOULD execute logic with side effects, but SHOULD NOT do both. -->
- <!-- checked in Files/SideEffectsSniff -->
-
- <!-- 3. Namespace and Class Names -->
-
- <!-- Namespaces and classes MUST follow PSR-0.
- This means each class is in a file by itself, and is in a namespace of at least one level: a top-level vendor name. -->
- <!-- checked in Classes/ClassDeclarationSniff -->
-
- <!-- Class names MUST be declared in StudlyCaps. -->
- <rule ref="Squiz.Classes.ValidClassName"/>
-
- <!-- 4. Class Constants, Properties, and Methods -->
-
- <!-- 4.1. Constants -->
-
- <!-- Class constants MUST be declared in all upper case with underscore separators. -->
- <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
-
- <!-- 4.3. Methods -->
-
- <!-- Method names MUST be declared in camelCase(). -->
- <!-- checked in Methods/CamelCapsMethodNameSniff -->
-
-</ruleset>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Classes/ClassDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Classes/ClassDeclarationStandard.xml
deleted file mode 100644
index 4e56bc04..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Classes/ClassDeclarationStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Class Declarations">
- <standard>
- <![CDATA[
- There should be exactly 1 space between the abstract or final keyword and the class keyword and between the class keyword and the class name. The extends and implements keywords, if present, must be on the same line as the class name. When interfaces implemented are spread over multiple lines, there should be exactly 1 interface mentioned per line indented by 1 level. The closing brace of the class must go on the first line after the body of the class and must be on a line by itself.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Correct spacing around class keyword.">
- <![CDATA[
-abstract<em> </em>class<em> </em>Foo
-{
-}
- ]]>
- </code>
- <code title="Invalid: 2 spaces used around class keyword.">
- <![CDATA[
-abstract<em> </em>class<em> </em>Foo
-{
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Classes/PropertyDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Classes/PropertyDeclarationStandard.xml
deleted file mode 100644
index ab60a3b8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Classes/PropertyDeclarationStandard.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<documentation title="Property Declarations">
- <standard>
- <![CDATA[
- Property names should not be prefixed with an underscore to indicate visibility. Visibility should be used to declare properties rather than the var keyword. Only one property should be declared within a statement.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Correct property naming.">
- <![CDATA[
-class Foo
-{
- private $<em>bar</em>;
-}
- ]]>
- </code>
- <code title="Invalid: An underscore prefix used to indicate visibility.">
- <![CDATA[
-class Foo
-{
- private $<em>_bar</em>;
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Visibility of property declared.">
- <![CDATA[
-class Foo
-{
- <em>private</em> $bar;
-}
- ]]>
- </code>
- <code title="Invalid: Var keyword used to declare property.">
- <![CDATA[
-class Foo
-{
- <em>var</em> $bar;
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: One property declared per statement.">
- <![CDATA[
-class Foo
-{
- private $bar;
- private $baz;
-}
- ]]>
- </code>
- <code title="Invalid: Multiple properties declared in one statement.">
- <![CDATA[
-class Foo
-{
- private <em>$bar, $baz</em>;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml
deleted file mode 100644
index dcbe98f5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Control Structure Spacing">
- <standard>
- <![CDATA[
- Control Structures should have 0 spaces after opening parentheses and 0 spaces before closing parentheses.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Correct spacing.">
- <![CDATA[
-if (<em></em>$foo<em></em>) {
- $var = 1;
-}
- ]]>
- </code>
- <code title="Invalid: Whitespace used inside the parentheses.">
- <![CDATA[
-if (<em> </em>$foo<em> </em>) {
- $var = 1;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml
deleted file mode 100644
index a22dd179..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<documentation title="Elseif Declarations">
- <standard>
- <![CDATA[
- PHP's elseif keyword should be used instead of else if.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Single word elseif keyword used.">
- <![CDATA[
-if ($foo) {
- $var = 1;
-} <em>elseif</em> ($bar) {
- $var = 2;
-}
- ]]>
- </code>
- <code title="Invalid: Separate else and if keywords used.">
- <![CDATA[
-if ($foo) {
- $var = 1;
-} <em>else if</em> ($bar) {
- $var = 2;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/SwitchDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/SwitchDeclarationStandard.xml
deleted file mode 100644
index 1d6d053d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/SwitchDeclarationStandard.xml
+++ /dev/null
@@ -1,104 +0,0 @@
-<documentation title="Switch Declarations">
- <standard>
- <![CDATA[
- Case statements should be indented 4 spaces from the switch keyword. It should also be followed by a space. Colons in switch declarations should not be preceded by whitespace. Break statements should be indented 4 more spaces from the case statement. There must be a comment when falling through from one case into the next.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Case statement indented correctly.">
- <![CDATA[
-switch ($foo) {
-<em> </em>case 'bar':
- break;
-}
- ]]>
- </code>
- <code title="Invalid: Case statement not indented 4 spaces.">
- <![CDATA[
-switch ($foo) {
-<em></em>case 'bar':
- break;
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Case statement followed by 1 space.">
- <![CDATA[
-switch ($foo) {
- case<em> </em>'bar':
- break;
-}
- ]]>
- </code>
- <code title="Invalid: Case statement not followed by 1 space.">
- <![CDATA[
-switch ($foo) {
- case<em></em>'bar':
- break;
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Colons not prefixed by whitespace.">
- <![CDATA[
-switch ($foo) {
- case 'bar'<em></em>:
- break;
- default<em></em>:
- break;
-}
- ]]>
- </code>
- <code title="Invalid: Colons prefixed by whitespace.">
- <![CDATA[
-switch ($foo) {
- case 'bar'<em> </em>:
- break;
- default<em> </em>:
- break;
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Break statement indented correctly.">
- <![CDATA[
-switch ($foo) {
- case 'bar':
-<em> </em>break;
-}
- ]]>
- </code>
- <code title="Invalid: Break statement not indented 4 spaces.">
- <![CDATA[
-switch ($foo) {
- case 'bar':
-<em> </em>break;
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Comment marking intentional fall-through.">
- <![CDATA[
-switch ($foo) {
- case 'bar':
- <em>// no break</em>
- default<em></em>:
- break;
-}
- ]]>
- </code>
- <code title="Invalid: No comment marking intentional fall-through.">
- <![CDATA[
-switch ($foo) {
- case 'bar':
- default<em></em>:
- break;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Files/EndFileNewlineStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Files/EndFileNewlineStandard.xml
deleted file mode 100644
index d6d3aad1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Files/EndFileNewlineStandard.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<documentation title="End File Newline">
- <standard>
- <![CDATA[
- PHP Files should end with exactly one newline.
- ]]>
- </standard>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Methods/MethodDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Methods/MethodDeclarationStandard.xml
deleted file mode 100644
index e45469e8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Methods/MethodDeclarationStandard.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<documentation title="Method Declarations">
- <standard>
- <![CDATA[
- Method names should not be prefixed with an underscore to indicate visibility. The static keyword, when present, should come after the visibility declaration, and the final and abstract keywords should come before.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Correct method naming.">
- <![CDATA[
-class Foo
-{
- private function <em>bar</em>()
- {
- }
-}
- ]]>
- </code>
- <code title="Invalid: An underscore prefix used to indicate visibility.">
- <![CDATA[
-class Foo
-{
- private function <em>_bar</em>()
- {
- }
-}
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Correct ordering of method prefixes.">
- <![CDATA[
-class Foo
-{
- <em>final public static</em> function <em>bar</em>()
- {
- }
-}
- ]]>
- </code>
- <code title="Invalid: static keyword used before visibility and final used after.">
- <![CDATA[
-class Foo
-{
- <em>static public final</em> function <em>bar</em>()
- {
- }
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/NamespaceDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/NamespaceDeclarationStandard.xml
deleted file mode 100644
index 1f4d389a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/NamespaceDeclarationStandard.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<documentation title="Namespace Declarations">
- <standard>
- <![CDATA[
- There must be one blank line after the namespace declaration.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: One blank line after the namespace declaration.">
- <![CDATA[
-namespace \Foo\Bar;
-<em></em>
-use \Baz;
- ]]>
- </code>
- <code title="Invalid: No blank line after the namespace declaration.">
- <![CDATA[
-namespace \Foo\Bar;
-use \Baz;
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/UseDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/UseDeclarationStandard.xml
deleted file mode 100644
index 4082603c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Namespaces/UseDeclarationStandard.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<documentation title="Namespace Declarations">
- <standard>
- <![CDATA[
- Each use declaration must contain only one namespace and must come after the first namespace declaration. There should be one blank line after the final use statement.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: One use declaration per namespace.">
- <![CDATA[
-use \Foo;
-use \Bar;
- ]]>
- </code>
- <code title="Invalid: Multiple namespaces in a use declaration.">
- <![CDATA[
-use <em>\Foo, \Bar</em>;
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Use statements come after first namespace.">
- <![CDATA[
-namespace \Foo;
-
-use \Bar;
- ]]>
- </code>
- <code title="Invalid: Namespace declared after use.">
- <![CDATA[
-use \Bar;
-
-namespace \Foo;
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: A single blank line after the final use statement.">
- <![CDATA[
-use \Foo;
-use \Bar;
-<em></em>
-class Baz
-{
-}
- ]]>
- </code>
- <code title="Invalid: No blank line after the final use statement.">
- <![CDATA[
-use \Foo;
-use \Bar;
-class Baz
-{
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php
deleted file mode 100644
index b11eeef6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php
+++ /dev/null
@@ -1,445 +0,0 @@
-<?php
-/**
- * Checks the declaration of the class and its inheritance is correct.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes;
-
-use PHP_CodeSniffer\Standards\PEAR\Sniffs\Classes\ClassDeclarationSniff as PEARClassDeclarationSniff;
-use PHP_CodeSniffer\Util\Tokens;
-use PHP_CodeSniffer\Files\File;
-
-class ClassDeclarationSniff extends PEARClassDeclarationSniff
-{
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- // We want all the errors from the PEAR standard, plus some of our own.
- parent::process($phpcsFile, $stackPtr);
-
- // Just in case.
- $tokens = $phpcsFile->getTokens();
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- return;
- }
-
- $this->processOpen($phpcsFile, $stackPtr);
- $this->processClose($phpcsFile, $stackPtr);
-
- }//end process()
-
-
- /**
- * Processes the opening section of a class declaration.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function processOpen(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $stackPtrType = strtolower($tokens[$stackPtr]['content']);
-
- // Check alignment of the keyword and braces.
- if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
- $prevContent = $tokens[($stackPtr - 1)]['content'];
- if ($prevContent !== $phpcsFile->eolChar) {
- $blankSpace = substr($prevContent, strpos($prevContent, $phpcsFile->eolChar));
- $spaces = strlen($blankSpace);
-
- if (in_array($tokens[($stackPtr - 2)]['code'], array(T_ABSTRACT, T_FINAL)) === true
- && $spaces !== 1
- ) {
- $prevContent = strtolower($tokens[($stackPtr - 2)]['content']);
- $error = 'Expected 1 space between %s and %s keywords; %s found';
- $data = array(
- $prevContent,
- $stackPtrType,
- $spaces,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeKeyword', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
- }
- }
- } else if ($tokens[($stackPtr - 2)]['code'] === T_ABSTRACT
- || $tokens[($stackPtr - 2)]['code'] === T_FINAL
- ) {
- $prevContent = strtolower($tokens[($stackPtr - 2)]['content']);
- $error = 'Expected 1 space between %s and %s keywords; newline found';
- $data = array(
- $prevContent,
- $stackPtrType,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NewlineBeforeKeyword', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
- }
- }//end if
- }//end if
-
- // We'll need the indent of the class/interface declaration for later.
- $classIndent = 0;
- for ($i = ($stackPtr - 1); $i > 0; $i--) {
- if ($tokens[$i]['line'] === $tokens[$stackPtr]['line']) {
- continue;
- }
-
- // We changed lines.
- if ($tokens[($i + 1)]['code'] === T_WHITESPACE) {
- $classIndent = strlen($tokens[($i + 1)]['content']);
- }
-
- break;
- }
-
- $className = $phpcsFile->findNext(T_STRING, $stackPtr);
-
- // Spacing of the keyword.
- $gap = $tokens[($stackPtr + 1)]['content'];
- if (strlen($gap) !== 1) {
- $found = strlen($gap);
- $error = 'Expected 1 space between %s keyword and %s name; %s found';
- $data = array(
- $stackPtrType,
- $stackPtrType,
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterKeyword', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
-
- // Check after the class/interface name.
- if ($tokens[($className + 2)]['line'] === $tokens[$className]['line']) {
- $gap = $tokens[($className + 1)]['content'];
- if (strlen($gap) !== 1) {
- $found = strlen($gap);
- $error = 'Expected 1 space after %s name; %s found';
- $data = array(
- $stackPtrType,
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $className, 'SpaceAfterName', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($className + 1), ' ');
- }
- }
- }
-
- $openingBrace = $tokens[$stackPtr]['scope_opener'];
-
- // Check positions of the extends and implements keywords.
- foreach (array('extends', 'implements') as $keywordType) {
- $keyword = $phpcsFile->findNext(constant('T_'.strtoupper($keywordType)), ($stackPtr + 1), $openingBrace);
- if ($keyword !== false) {
- if ($tokens[$keyword]['line'] !== $tokens[$stackPtr]['line']) {
- $error = 'The '.$keywordType.' keyword must be on the same line as the %s name';
- $data = array($stackPtrType);
- $fix = $phpcsFile->addFixableError($error, $keyword, ucfirst($keywordType).'Line', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($stackPtr + 1); $i < $keyword; $i++) {
- if ($tokens[$i]['line'] !== $tokens[($i + 1)]['line']) {
- $phpcsFile->fixer->substrToken($i, 0, (strlen($phpcsFile->eolChar) * -1));
- }
- }
-
- $phpcsFile->fixer->addContentBefore($keyword, ' ');
- $phpcsFile->fixer->endChangeset();
- }
- } else {
- // Check the whitespace before. Whitespace after is checked
- // later by looking at the whitespace before the first class name
- // in the list.
- $gap = strlen($tokens[($keyword - 1)]['content']);
- if ($gap !== 1) {
- $error = 'Expected 1 space before '.$keywordType.' keyword; %s found';
- $data = array($gap);
- $fix = $phpcsFile->addFixableError($error, $keyword, 'SpaceBefore'.ucfirst($keywordType), $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($keyword - 1), ' ');
- }
- }
- }//end if
- }//end if
- }//end foreach
-
- // Check each of the extends/implements class names. If the extends/implements
- // keyword is the last content on the line, it means we need to check for
- // the multi-line format, so we do not include the class names
- // from the extends/implements list in the following check.
- // Note that classes can only extend one other class, so they can't use a
- // multi-line extends format, whereas an interface can extend multiple
- // other interfaces, and so uses a multi-line extends format.
- if ($tokens[$stackPtr]['code'] === T_INTERFACE) {
- $keywordTokenType = T_EXTENDS;
- } else {
- $keywordTokenType = T_IMPLEMENTS;
- }
-
- $implements = $phpcsFile->findNext($keywordTokenType, ($stackPtr + 1), $openingBrace);
- $multiLineImplements = false;
- if ($implements !== false) {
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($openingBrace - 1), $implements, true);
- if ($tokens[$prev]['line'] !== $tokens[$implements]['line']) {
- $multiLineImplements = true;
- }
- }
-
- $find = array(
- T_STRING,
- $keywordTokenType,
- );
-
- $classNames = array();
- $nextClass = $phpcsFile->findNext($find, ($className + 2), ($openingBrace - 1));
- while ($nextClass !== false) {
- $classNames[] = $nextClass;
- $nextClass = $phpcsFile->findNext($find, ($nextClass + 1), ($openingBrace - 1));
- }
-
- $classCount = count($classNames);
- $checkingImplements = false;
- $implementsToken = null;
- foreach ($classNames as $i => $className) {
- if ($tokens[$className]['code'] === $keywordTokenType) {
- $checkingImplements = true;
- $implementsToken = $className;
- continue;
- }
-
- if ($checkingImplements === true
- && $multiLineImplements === true
- && ($tokens[($className - 1)]['code'] !== T_NS_SEPARATOR
- || $tokens[($className - 2)]['code'] !== T_STRING)
- ) {
- $prev = $phpcsFile->findPrevious(
- array(
- T_NS_SEPARATOR,
- T_WHITESPACE,
- ),
- ($className - 1),
- $implements,
- true
- );
-
- if ($prev === $implementsToken && $tokens[$className]['line'] !== ($tokens[$prev]['line'] + 1)) {
- if ($keywordTokenType === T_EXTENDS) {
- $error = 'The first item in a multi-line extends list must be on the line following the extends keyword';
- $fix = $phpcsFile->addFixableError($error, $className, 'FirstExtendsInterfaceSameLine');
- } else {
- $error = 'The first item in a multi-line implements list must be on the line following the implements keyword';
- $fix = $phpcsFile->addFixableError($error, $className, 'FirstInterfaceSameLine');
- }
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prev + 1); $i < $className; $i++) {
- if ($tokens[$i]['code'] !== T_WHITESPACE) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->addNewline($prev);
- $phpcsFile->fixer->endChangeset();
- }
- } else if ($tokens[$prev]['line'] !== ($tokens[$className]['line'] - 1)) {
- if ($keywordTokenType === T_EXTENDS) {
- $error = 'Only one interface may be specified per line in a multi-line extends declaration';
- $fix = $phpcsFile->addFixableError($error, $className, 'ExtendsInterfaceSameLine');
- } else {
- $error = 'Only one interface may be specified per line in a multi-line implements declaration';
- $fix = $phpcsFile->addFixableError($error, $className, 'InterfaceSameLine');
- }
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prev + 1); $i < $className; $i++) {
- if ($tokens[$i]['code'] !== T_WHITESPACE) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->addNewline($prev);
- $phpcsFile->fixer->endChangeset();
- }
- } else {
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($className - 1), $implements);
- if ($tokens[$prev]['line'] !== $tokens[$className]['line']) {
- $found = 0;
- } else {
- $found = strlen($tokens[$prev]['content']);
- }
-
- $expected = ($classIndent + $this->indent);
- if ($found !== $expected) {
- $error = 'Expected %s spaces before interface name; %s found';
- $data = array(
- $expected,
- $found,
- );
- $fix = $phpcsFile->addFixableError($error, $className, 'InterfaceWrongIndent', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $expected);
- if ($found === 0) {
- $phpcsFile->fixer->addContent($prev, $padding);
- } else {
- $phpcsFile->fixer->replaceToken($prev, $padding);
- }
- }
- }
- }//end if
- } else if ($tokens[($className - 1)]['code'] !== T_NS_SEPARATOR
- || $tokens[($className - 2)]['code'] !== T_STRING
- ) {
- // Not part of a longer fully qualified class name.
- if ($tokens[($className - 1)]['code'] === T_COMMA
- || ($tokens[($className - 1)]['code'] === T_NS_SEPARATOR
- && $tokens[($className - 2)]['code'] === T_COMMA)
- ) {
- $error = 'Expected 1 space before "%s"; 0 found';
- $data = array($tokens[$className]['content']);
- $fix = $phpcsFile->addFixableError($error, ($nextComma + 1), 'NoSpaceBeforeName', $data);
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore(($nextComma + 1), ' ');
- }
- } else {
- if ($tokens[($className - 1)]['code'] === T_NS_SEPARATOR) {
- $prev = ($className - 2);
- } else {
- $prev = ($className - 1);
- }
-
- $spaceBefore = strlen($tokens[$prev]['content']);
- if ($spaceBefore !== 1) {
- $error = 'Expected 1 space before "%s"; %s found';
- $data = array(
- $tokens[$className]['content'],
- $spaceBefore,
- );
-
- $fix = $phpcsFile->addFixableError($error, $className, 'SpaceBeforeName', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($prev, ' ');
- }
- }
- }//end if
- }//end if
-
- if ($checkingImplements === true
- && $tokens[($className + 1)]['code'] !== T_NS_SEPARATOR
- && $tokens[($className + 1)]['code'] !== T_COMMA
- ) {
- if ($i !== ($classCount - 1)) {
- // This is not the last class name, and the comma
- // is not where we expect it to be.
- if ($tokens[($className + 2)]['code'] !== $keywordTokenType) {
- $error = 'Expected 0 spaces between "%s" and comma; %s found';
- $data = array(
- $tokens[$className]['content'],
- strlen($tokens[($className + 1)]['content']),
- );
-
- $fix = $phpcsFile->addFixableError($error, $className, 'SpaceBeforeComma', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($className + 1), '');
- }
- }
- }
-
- $nextComma = $phpcsFile->findNext(T_COMMA, $className);
- } else {
- $nextComma = ($className + 1);
- }//end if
- }//end foreach
-
- }//end processOpen()
-
-
- /**
- * Processes the closing section of a class declaration.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function processClose(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Check that the closing brace comes right after the code body.
- $closeBrace = $tokens[$stackPtr]['scope_closer'];
- $prevContent = $phpcsFile->findPrevious(T_WHITESPACE, ($closeBrace - 1), null, true);
- if ($prevContent !== $tokens[$stackPtr]['scope_opener']
- && $tokens[$prevContent]['line'] !== ($tokens[$closeBrace]['line'] - 1)
- ) {
- $error = 'The closing brace for the %s must go on the next line after the body';
- $data = array($tokens[$stackPtr]['content']);
- $fix = $phpcsFile->addFixableError($error, $closeBrace, 'CloseBraceAfterBody', $data);
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prevContent + 1); $i < $closeBrace; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- if (strpos($tokens[$prevContent]['content'], $phpcsFile->eolChar) === false) {
- $phpcsFile->fixer->replaceToken($closeBrace, $phpcsFile->eolChar.$tokens[$closeBrace]['content']);
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }//end if
-
- // Check the closing brace is on it's own line, but allow
- // for comments like "//end class".
- $nextContent = $phpcsFile->findNext(array(T_WHITESPACE, T_COMMENT), ($closeBrace + 1), null, true);
- if ($tokens[$nextContent]['content'] !== $phpcsFile->eolChar
- && $tokens[$nextContent]['line'] === $tokens[$closeBrace]['line']
- ) {
- $type = strtolower($tokens[$stackPtr]['content']);
- $error = 'Closing %s brace must be on a line by itself';
- $data = array($type);
- $phpcsFile->addError($error, $closeBrace, 'CloseBraceSameLine', $data);
- }
-
- }//end processClose()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php
deleted file mode 100644
index 3fcaa239..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Classes/PropertyDeclarationSniff.php
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-/**
- * Verifies that properties are declared correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes;
-
-use PHP_CodeSniffer\Sniffs\AbstractVariableSniff;
-use PHP_CodeSniffer\Util\Tokens;
-use PHP_CodeSniffer\Files\File;
-
-class PropertyDeclarationSniff extends AbstractVariableSniff
-{
-
-
- /**
- * Processes the function tokens within the class.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processMemberVar(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['content'][1] === '_') {
- $error = 'Property name "%s" should not be prefixed with an underscore to indicate visibility';
- $data = array($tokens[$stackPtr]['content']);
- $phpcsFile->addWarning($error, $stackPtr, 'Underscore', $data);
- }
-
- // Detect multiple properties defined at the same time. Throw an error
- // for this, but also only process the first property in the list so we don't
- // repeat errors.
- $find = Tokens::$scopeModifiers;
- $find = array_merge($find, array(T_VARIABLE, T_VAR, T_SEMICOLON));
- $prev = $phpcsFile->findPrevious($find, ($stackPtr - 1));
- if ($tokens[$prev]['code'] === T_VARIABLE) {
- return;
- }
-
- if ($tokens[$prev]['code'] === T_VAR) {
- $error = 'The var keyword must not be used to declare a property';
- $phpcsFile->addError($error, $stackPtr, 'VarUsed');
- }
-
- $next = $phpcsFile->findNext(array(T_VARIABLE, T_SEMICOLON), ($stackPtr + 1));
- if ($tokens[$next]['code'] === T_VARIABLE) {
- $error = 'There must not be more than one property declared per statement';
- $phpcsFile->addError($error, $stackPtr, 'Multiple');
- }
-
- $modifier = $phpcsFile->findPrevious(Tokens::$scopeModifiers, $stackPtr);
- if (($modifier === false) || ($tokens[$modifier]['line'] !== $tokens[$stackPtr]['line'])) {
- $error = 'Visibility must be declared on property "%s"';
- $data = array($tokens[$stackPtr]['content']);
- $phpcsFile->addError($error, $stackPtr, 'ScopeMissing', $data);
- }
-
- }//end processMemberVar()
-
-
- /**
- * Processes normal variables.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processVariable(File $phpcsFile, $stackPtr)
- {
- /*
- We don't care about normal variables.
- */
-
- }//end processVariable()
-
-
- /**
- * Processes variables in double quoted strings.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processVariableInString(File $phpcsFile, $stackPtr)
- {
- /*
- We don't care about normal variables.
- */
-
- }//end processVariableInString()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/ControlStructureSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/ControlStructureSpacingSniff.php
deleted file mode 100644
index 7570493c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/ControlStructureSpacingSniff.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-/**
- * Checks that control structures have the correct spacing around brackets.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ControlStructureSpacingSniff implements Sniff
-{
-
-
- /**
- * How many spaces should follow the opening bracket.
- *
- * @var integer
- */
- public $requiredSpacesAfterOpen = 0;
-
- /**
- * How many spaces should precede the closing bracket.
- *
- * @var integer
- */
- public $requiredSpacesBeforeClose = 0;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_IF,
- T_WHILE,
- T_FOREACH,
- T_FOR,
- T_SWITCH,
- T_DO,
- T_ELSE,
- T_ELSEIF,
- T_TRY,
- T_CATCH,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $this->requiredSpacesAfterOpen = (int) $this->requiredSpacesAfterOpen;
- $this->requiredSpacesBeforeClose = (int) $this->requiredSpacesBeforeClose;
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['parenthesis_opener']) === false
- || isset($tokens[$stackPtr]['parenthesis_closer']) === false
- ) {
- return;
- }
-
- $parenOpener = $tokens[$stackPtr]['parenthesis_opener'];
- $parenCloser = $tokens[$stackPtr]['parenthesis_closer'];
- $spaceAfterOpen = 0;
- if ($tokens[($parenOpener + 1)]['code'] === T_WHITESPACE) {
- if (strpos($tokens[($parenOpener + 1)]['content'], $phpcsFile->eolChar) !== false) {
- $spaceAfterOpen = 'newline';
- } else {
- $spaceAfterOpen = strlen($tokens[($parenOpener + 1)]['content']);
- }
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Spaces after control structure open parenthesis', $spaceAfterOpen);
-
- if ($spaceAfterOpen !== $this->requiredSpacesAfterOpen) {
- $error = 'Expected %s spaces after opening bracket; %s found';
- $data = array(
- $this->requiredSpacesAfterOpen,
- $spaceAfterOpen,
- );
- $fix = $phpcsFile->addFixableError($error, ($parenOpener + 1), 'SpacingAfterOpenBrace', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesAfterOpen);
- if ($spaceAfterOpen === 0) {
- $phpcsFile->fixer->addContent($parenOpener, $padding);
- } else if ($spaceAfterOpen === 'newline') {
- $phpcsFile->fixer->replaceToken(($parenOpener + 1), '');
- } else {
- $phpcsFile->fixer->replaceToken(($parenOpener + 1), $padding);
- }
- }
- }
-
- if ($tokens[$parenOpener]['line'] === $tokens[$parenCloser]['line']) {
- $spaceBeforeClose = 0;
- if ($tokens[($parenCloser - 1)]['code'] === T_WHITESPACE) {
- $spaceBeforeClose = strlen(ltrim($tokens[($parenCloser - 1)]['content'], $phpcsFile->eolChar));
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Spaces before control structure close parenthesis', $spaceBeforeClose);
-
- if ($spaceBeforeClose !== $this->requiredSpacesBeforeClose) {
- $error = 'Expected %s spaces before closing bracket; %s found';
- $data = array(
- $this->requiredSpacesBeforeClose,
- $spaceBeforeClose,
- );
- $fix = $phpcsFile->addFixableError($error, ($parenCloser - 1), 'SpaceBeforeCloseBrace', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesBeforeClose);
- if ($spaceBeforeClose === 0) {
- $phpcsFile->fixer->addContentBefore($parenCloser, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($parenCloser - 1), $padding);
- }
- }
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/ElseIfDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/ElseIfDeclarationSniff.php
deleted file mode 100644
index 14f134c0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/ElseIfDeclarationSniff.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/**
- * Verifies that there are no else if statements (elseif should be used instead).
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ElseIfDeclarationSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_ELSE,
- T_ELSEIF,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['code'] === T_ELSEIF) {
- $phpcsFile->recordMetric($stackPtr, 'Use of ELSE IF or ELSEIF', 'elseif');
- return;
- }
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$next]['code'] === T_IF) {
- $phpcsFile->recordMetric($stackPtr, 'Use of ELSE IF or ELSEIF', 'else if');
- $error = 'Usage of ELSE IF is discouraged; use ELSEIF instead';
- $fix = $phpcsFile->addFixableWarning($error, $stackPtr, 'NotAllowed');
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($stackPtr, 'elseif');
- for ($i = ($stackPtr + 1); $i <= $next; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php
deleted file mode 100644
index 2471c1d7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php
+++ /dev/null
@@ -1,321 +0,0 @@
-<?php
-/**
- * Ensures all switch statements are defined correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class SwitchDeclarationSniff implements Sniff
-{
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_SWITCH);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // We can't process SWITCH statements unless we know where they start and end.
- if (isset($tokens[$stackPtr]['scope_opener']) === false
- || isset($tokens[$stackPtr]['scope_closer']) === false
- ) {
- return;
- }
-
- $switch = $tokens[$stackPtr];
- $nextCase = $stackPtr;
- $caseAlignment = ($switch['column'] + $this->indent);
- $caseCount = 0;
- $foundDefault = false;
-
- while (($nextCase = $this->findNextCase($phpcsFile, ($nextCase + 1), $switch['scope_closer'])) !== false) {
- if ($tokens[$nextCase]['code'] === T_DEFAULT) {
- $type = 'default';
- $foundDefault = true;
- } else {
- $type = 'case';
- $caseCount++;
- }
-
- if ($tokens[$nextCase]['content'] !== strtolower($tokens[$nextCase]['content'])) {
- $expected = strtolower($tokens[$nextCase]['content']);
- $error = strtoupper($type).' keyword must be lowercase; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $tokens[$nextCase]['content'],
- );
-
- $fix = $phpcsFile->addFixableError($error, $nextCase, $type.'NotLower', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($nextCase, $expected);
- }
- }
-
- if ($type === 'case'
- && ($tokens[($nextCase + 1)]['code'] !== T_WHITESPACE
- || $tokens[($nextCase + 1)]['content'] !== ' ')
- ) {
- $error = 'CASE keyword must be followed by a single space';
- $fix = $phpcsFile->addFixableError($error, $nextCase, 'SpacingAfterCase');
- if ($fix === true) {
- if ($tokens[($nextCase + 1)]['code'] !== T_WHITESPACE) {
- $phpcsFile->fixer->addContent($nextCase, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($nextCase + 1), ' ');
- }
- }
- }
-
- $opener = $tokens[$nextCase]['scope_opener'];
- $nextCloser = $tokens[$nextCase]['scope_closer'];
- if ($tokens[$opener]['code'] === T_COLON) {
- if ($tokens[($opener - 1)]['code'] === T_WHITESPACE) {
- $error = 'There must be no space before the colon in a '.strtoupper($type).' statement';
- $fix = $phpcsFile->addFixableError($error, $nextCase, 'SpaceBeforeColon'.strtoupper($type));
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($opener - 1), '');
- }
- }
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($opener + 1), null, true);
- if ($tokens[$next]['line'] === $tokens[$opener]['line']
- && $tokens[$next]['code'] === T_COMMENT
- ) {
- // Skip comments on the same line.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($next + 1), null, true);
- }
-
- if ($tokens[$next]['line'] !== ($tokens[$opener]['line'] + 1)) {
- $error = 'The '.strtoupper($type).' body must start on the line following the statement';
- $fix = $phpcsFile->addFixableError($error, $nextCase, 'BodyOnNextLine'.strtoupper($type));
- if ($fix === true) {
- if ($tokens[$next]['line'] === $tokens[$opener]['line']) {
- $padding = str_repeat(' ', ($caseAlignment + $this->indent - 1));
- $phpcsFile->fixer->addContentBefore($next, $phpcsFile->eolChar.$padding);
- } else {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($opener + 1); $i < $next; $i++) {
- if ($tokens[$i]['line'] === $tokens[$next]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->addNewLineBefore($i);
- $phpcsFile->fixer->endChangeset();
- }
- }
- }//end if
-
- if ($tokens[$nextCloser]['scope_condition'] === $nextCase) {
- // Only need to check some things once, even if the
- // closer is shared between multiple case statements, or even
- // the default case.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($nextCloser - 1), $nextCase, true);
- if ($tokens[$prev]['line'] === $tokens[$nextCloser]['line']) {
- $error = 'Terminating statement must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $nextCloser, 'BreakNotNewLine');
- if ($fix === true) {
- $phpcsFile->fixer->addNewLine($prev);
- $phpcsFile->fixer->replaceToken($nextCloser, trim($tokens[$nextCloser]['content']));
- }
- } else {
- $diff = ($caseAlignment + $this->indent - $tokens[$nextCloser]['column']);
- if ($diff !== 0) {
- $error = 'Terminating statement must be indented to the same level as the CASE body';
- $fix = $phpcsFile->addFixableError($error, $nextCloser, 'BreakIndent');
- if ($fix === true) {
- if ($diff > 0) {
- $phpcsFile->fixer->addContentBefore($nextCloser, str_repeat(' ', $diff));
- } else {
- $phpcsFile->fixer->substrToken(($nextCloser - 1), 0, $diff);
- }
- }
- }
- }//end if
- }//end if
- } else {
- $error = strtoupper($type).' statements must be defined using a colon';
- $phpcsFile->addError($error, $nextCase, 'WrongOpener'.$type);
- }//end if
-
- // We only want cases from here on in.
- if ($type !== 'case') {
- continue;
- }
-
- $nextCode = $phpcsFile->findNext(T_WHITESPACE, ($opener + 1), $nextCloser, true);
-
- if ($tokens[$nextCode]['code'] !== T_CASE && $tokens[$nextCode]['code'] !== T_DEFAULT) {
- // This case statement has content. If the next case or default comes
- // before the closer, it means we don't have an obvious terminating
- // statement and need to make some more effort to find one. If we
- // don't, we do need a comment.
- $nextCode = $this->findNextCase($phpcsFile, ($opener + 1), $nextCloser);
- if ($nextCode !== false) {
- $prevCode = $phpcsFile->findPrevious(T_WHITESPACE, ($nextCode - 1), $nextCase, true);
- if ($tokens[$prevCode]['code'] !== T_COMMENT
- && $this->findNestedTerminator($phpcsFile, ($opener + 1), $nextCode) === false
- ) {
- $error = 'There must be a comment when fall-through is intentional in a non-empty case body';
- $phpcsFile->addError($error, $nextCase, 'TerminatingComment');
- }
- }
- }
- }//end while
-
- }//end process()
-
-
- /**
- * Find the next CASE or DEFAULT statement from a point in the file.
- *
- * Note that nested switches are ignored.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position to start looking at.
- * @param int $end The position to stop looking at.
- *
- * @return int | bool
- */
- private function findNextCase($phpcsFile, $stackPtr, $end)
- {
- $tokens = $phpcsFile->getTokens();
- while (($stackPtr = $phpcsFile->findNext(array(T_CASE, T_DEFAULT, T_SWITCH), $stackPtr, $end)) !== false) {
- // Skip nested SWITCH statements; they are handled on their own.
- if ($tokens[$stackPtr]['code'] === T_SWITCH) {
- $stackPtr = $tokens[$stackPtr]['scope_closer'];
- continue;
- }
-
- break;
- }
-
- return $stackPtr;
-
- }//end findNextCase()
-
-
- /**
- * Returns true if a nested terminating statement is found.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position to start looking at.
- * @param int $end The position to stop looking at.
- *
- * @return bool
- */
- private function findNestedTerminator($phpcsFile, $stackPtr, $end)
- {
- $tokens = $phpcsFile->getTokens();
- $terminators = array(
- T_RETURN,
- T_BREAK,
- T_CONTINUE,
- T_THROW,
- T_EXIT,
- );
-
- $lastToken = $phpcsFile->findPrevious(T_WHITESPACE, ($end - 1), $stackPtr, true);
- if ($lastToken !== false) {
- if ($tokens[$lastToken]['code'] === T_CLOSE_CURLY_BRACKET) {
- // We found a closing curly bracket and want to check if its
- // block belongs to an IF, ELSEIF or ELSE clause. If yes, we
- // continue searching for a terminating statement within that
- // block. Note that we have to make sure that every block of
- // the entire if/else statement has a terminating statement.
- $currentCloser = $lastToken;
- $hasElseBlock = false;
- do {
- $scopeOpener = $tokens[$currentCloser]['scope_opener'];
- $scopeCloser = $tokens[$currentCloser]['scope_closer'];
-
- $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($scopeOpener - 1), $stackPtr, true);
- if ($prevToken === false) {
- return false;
- }
-
- // IF and ELSEIF clauses possess a condition we have to account for.
- if ($tokens[$prevToken]['code'] === T_CLOSE_PARENTHESIS) {
- $prevToken = $tokens[$prevToken]['parenthesis_owner'];
- }
-
- if ($tokens[$prevToken]['code'] === T_IF) {
- // If we have not encountered an ELSE clause by now, we cannot
- // be sure that the whole statement terminates in every case.
- if ($hasElseBlock === false) {
- return false;
- }
-
- return $this->findNestedTerminator($phpcsFile, ($scopeOpener + 1), $scopeCloser);
- } else if ($tokens[$prevToken]['code'] === T_ELSEIF
- || $tokens[$prevToken]['code'] === T_ELSE
- ) {
- // If we find a terminating statement within this block,
- // we continue with the previous ELSEIF or IF clause.
- $hasTerminator = $this->findNestedTerminator($phpcsFile, ($scopeOpener + 1), $scopeCloser);
- if ($hasTerminator === false) {
- return false;
- }
-
- $currentCloser = $phpcsFile->findPrevious(T_WHITESPACE, ($prevToken - 1), $stackPtr, true);
- if ($tokens[$prevToken]['code'] === T_ELSE) {
- $hasElseBlock = true;
- }
- } else {
- return false;
- }//end if
- } while ($currentCloser !== false && $tokens[$currentCloser]['code'] === T_CLOSE_CURLY_BRACKET);
-
- return true;
- } else if ($tokens[$lastToken]['code'] === T_SEMICOLON) {
- // We found the last statement of the CASE. Now we want to
- // check whether it is a terminating one.
- $terminator = $phpcsFile->findStartOfStatement(($lastToken - 1));
- if (in_array($tokens[$terminator]['code'], $terminators, true) === true) {
- return $terminator;
- }
- }//end if
- }//end if
-
- return false;
-
- }//end findNestedTerminator()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/ClosingTagSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/ClosingTagSniff.php
deleted file mode 100644
index bd689c54..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/ClosingTagSniff.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-/**
- * Checks that the file does not end with a closing tag.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ClosingTagSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Make sure this file only contains PHP code.
- for ($i = 0; $i < $phpcsFile->numTokens; $i++) {
- if ($tokens[$i]['code'] === T_INLINE_HTML
- && trim($tokens[$i]['content']) !== ''
- ) {
- return $phpcsFile->numTokens;
- }
- }
-
- // Find the last non-empty token.
- for ($last = ($phpcsFile->numTokens - 1); $last > 0; $last--) {
- if (trim($tokens[$last]['content']) !== '') {
- break;
- }
- }
-
- if ($tokens[$last]['code'] === T_CLOSE_TAG) {
- $error = 'A closing tag is not permitted at the end of a PHP file';
- $fix = $phpcsFile->addFixableError($error, $last, 'NotAllowed');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($last, $phpcsFile->eolChar);
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($last - 1), null, true);
- if ($tokens[$prev]['code'] !== T_SEMICOLON
- && $tokens[$prev]['code'] !== T_CLOSE_CURLY_BRACKET
- ) {
- $phpcsFile->fixer->addContent($prev, ';');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at end of PHP-only file', 'yes');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at end of PHP-only file', 'no');
- }
-
- // Ignore the rest of the file.
- return $phpcsFile->numTokens;
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/EndFileNewlineSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/EndFileNewlineSniff.php
deleted file mode 100644
index 31c92c38..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Files/EndFileNewlineSniff.php
+++ /dev/null
@@ -1,104 +0,0 @@
-<?php
-/**
- * Ensures the file ends with a newline character.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class EndFileNewlineSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- if ($phpcsFile->findNext(T_INLINE_HTML, ($stackPtr + 1)) !== false) {
- return ($phpcsFile->numTokens + 1);
- }
-
- // Skip to the end of the file.
- $tokens = $phpcsFile->getTokens();
- $lastToken = ($phpcsFile->numTokens - 1);
-
- if ($tokens[$lastToken]['content'] === '') {
- $lastToken--;
- }
-
- // Hard-coding the expected \n in this sniff as it is PSR-2 specific and
- // PSR-2 enforces the use of unix style newlines.
- if (substr($tokens[$lastToken]['content'], -1) !== "\n") {
- $error = 'Expected 1 newline at end of file; 0 found';
- $fix = $phpcsFile->addFixableError($error, $lastToken, 'NoneFound');
- if ($fix === true) {
- $phpcsFile->fixer->addNewline($lastToken);
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Number of newlines at EOF', '0');
- return ($phpcsFile->numTokens + 1);
- }
-
- // Go looking for the last non-empty line.
- $lastLine = $tokens[$lastToken]['line'];
- if ($tokens[$lastToken]['code'] === T_WHITESPACE
- || $tokens[$lastToken]['code'] === T_DOC_COMMENT_WHITESPACE
- ) {
- $lastCode = $phpcsFile->findPrevious(array(T_WHITESPACE, T_DOC_COMMENT_WHITESPACE), ($lastToken - 1), null, true);
- } else {
- $lastCode = $lastToken;
- }
-
- $lastCodeLine = $tokens[$lastCode]['line'];
- $blankLines = ($lastLine - $lastCodeLine + 1);
- $phpcsFile->recordMetric($stackPtr, 'Number of newlines at EOF', $blankLines);
-
- if ($blankLines > 1) {
- $error = 'Expected 1 blank line at end of file; %s found';
- $data = array($blankLines);
- $fix = $phpcsFile->addFixableError($error, $lastCode, 'TooMany', $data);
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($lastCode, rtrim($tokens[$lastCode]['content']));
- for ($i = ($lastCode + 1); $i < $lastToken; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->replaceToken($lastToken, $phpcsFile->eolChar);
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- // Skip the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionCallSignatureSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionCallSignatureSniff.php
deleted file mode 100644
index 452c0b33..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionCallSignatureSniff.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-/**
- * Checks that the function call format is correct.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods;
-
-use PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff as PEARFunctionCallSignatureSniff;
-use PHP_CodeSniffer\Util\Tokens;
-use PHP_CodeSniffer\Files\File;
-
-class FunctionCallSignatureSniff extends PEARFunctionCallSignatureSniff
-{
-
- /**
- * If TRUE, multiple arguments can be defined per line in a multi-line call.
- *
- * @var boolean
- */
- public $allowMultipleArguments = false;
-
-
- /**
- * Processes single-line calls.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $openBracket The position of the opening bracket
- * in the stack passed in $tokens.
- * @param array $tokens The stack of tokens that make up
- * the file.
- *
- * @return void
- */
- public function isMultiLineCall(File $phpcsFile, $stackPtr, $openBracket, $tokens)
- {
- // If the first argument is on a new line, this is a multi-line
- // function call, even if there is only one argument.
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($openBracket + 1), null, true);
- if ($tokens[$next]['line'] !== $tokens[$stackPtr]['line']) {
- return true;
- }
-
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
-
- $end = $phpcsFile->findEndOfStatement($openBracket + 1);
- while ($tokens[$end]['code'] === T_COMMA) {
- // If the next bit of code is not on the same line, this is a
- // multi-line function call.
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($end + 1), $closeBracket, true);
- if ($next === false) {
- return false;
- }
-
- if ($tokens[$next]['line'] !== $tokens[$end]['line']) {
- return true;
- }
-
- $end = $phpcsFile->findEndOfStatement($next);
- }
-
- // We've reached the last argument, so see if the next content
- // (should be the close bracket) is also on the same line.
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($end + 1), $closeBracket, true);
- if ($next !== false && $tokens[$next]['line'] !== $tokens[$end]['line']) {
- return true;
- }
-
- return false;
-
- }//end isMultiLineCall()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionClosingBraceSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionClosingBraceSniff.php
deleted file mode 100644
index 933329dc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/FunctionClosingBraceSniff.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-/**
- * Checks that the closing brace of a function goes directly after the body.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class FunctionClosingBraceSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_CLOSURE,
- );
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- // Probably an interface method.
- return;
- }
-
- $closeBrace = $tokens[$stackPtr]['scope_closer'];
- $prevContent = $phpcsFile->findPrevious(T_WHITESPACE, ($closeBrace - 1), null, true);
- $found = ($tokens[$closeBrace]['line'] - $tokens[$prevContent]['line'] - 1);
-
- if ($found < 0) {
- // Brace isn't on a new line, so not handled by us.
- return;
- }
-
- if ($found === 0) {
- // All is good.
- return;
- }
-
- $error = 'Function closing brace must go on the next line following the body; found %s blank lines before brace';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $closeBrace, 'SpacingBeforeClose', $data);
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prevContent + 1); $i < $closeBrace; $i++) {
- if ($tokens[$i]['line'] === $tokens[$prevContent]['line']) {
- continue;
- }
-
- // Don't remove any identation before the brace.
- if ($tokens[$i]['line'] === $tokens[$closeBrace]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/MethodDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/MethodDeclarationSniff.php
deleted file mode 100644
index 52149b1f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/MethodDeclarationSniff.php
+++ /dev/null
@@ -1,155 +0,0 @@
-<?php
-/**
- * Checks that the method declaration is correct.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods;
-
-use PHP_CodeSniffer\Sniffs\AbstractScopeSniff;
-use PHP_CodeSniffer\Util\Tokens;
-use PHP_CodeSniffer\Files\File;
-
-class MethodDeclarationSniff extends AbstractScopeSniff
-{
-
-
- /**
- * Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
- */
- public function __construct()
- {
- parent::__construct(array(T_CLASS, T_INTERFACE), array(T_FUNCTION));
-
- }//end __construct()
-
-
- /**
- * Processes the function tokens within the class.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- * @param int $currScope The current scope opener token.
- *
- * @return void
- */
- protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- $tokens = $phpcsFile->getTokens();
-
- $methodName = $phpcsFile->getDeclarationName($stackPtr);
- if ($methodName === null) {
- // Ignore closures.
- return;
- }
-
- if ($methodName[0] === '_' && isset($methodName[1]) === true && $methodName[1] !== '_') {
- $error = 'Method name "%s" should not be prefixed with an underscore to indicate visibility';
- $data = array($methodName);
- $phpcsFile->addWarning($error, $stackPtr, 'Underscore', $data);
- }
-
- $visibility = 0;
- $static = 0;
- $abstract = 0;
- $final = 0;
-
- $find = Tokens::$methodPrefixes;
- $find[] = T_WHITESPACE;
- $prev = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true);
-
- $prefix = $stackPtr;
- while (($prefix = $phpcsFile->findPrevious(Tokens::$methodPrefixes, ($prefix - 1), $prev)) !== false) {
- switch ($tokens[$prefix]['code']) {
- case T_STATIC:
- $static = $prefix;
- break;
- case T_ABSTRACT:
- $abstract = $prefix;
- break;
- case T_FINAL:
- $final = $prefix;
- break;
- default:
- $visibility = $prefix;
- break;
- }
- }
-
- $fixes = array();
-
- if ($visibility !== 0 && $final > $visibility) {
- $error = 'The final declaration must precede the visibility declaration';
- $fix = $phpcsFile->addFixableError($error, $final, 'FinalAfterVisibility');
- if ($fix === true) {
- $fixes[$final] = '';
- $fixes[($final + 1)] = '';
- if (isset($fixes[$visibility]) === true) {
- $fixes[$visibility] = 'final '.$fixes[$visibility];
- } else {
- $fixes[$visibility] = 'final '.$tokens[$visibility]['content'];
- }
- }
- }
-
- if ($visibility !== 0 && $abstract > $visibility) {
- $error = 'The abstract declaration must precede the visibility declaration';
- $fix = $phpcsFile->addFixableError($error, $abstract, 'AbstractAfterVisibility');
- if ($fix === true) {
- $fixes[$abstract] = '';
- $fixes[($abstract + 1)] = '';
- if (isset($fixes[$visibility]) === true) {
- $fixes[$visibility] = 'abstract '.$fixes[$visibility];
- } else {
- $fixes[$visibility] = 'abstract '.$tokens[$visibility]['content'];
- }
- }
- }
-
- if ($static !== 0 && $static < $visibility) {
- $error = 'The static declaration must come after the visibility declaration';
- $fix = $phpcsFile->addFixableError($error, $static, 'StaticBeforeVisibility');
- if ($fix === true) {
- $fixes[$static] = '';
- $fixes[($static + 1)] = '';
- if (isset($fixes[$visibility]) === true) {
- $fixes[$visibility] = $fixes[$visibility].' static';
- } else {
- $fixes[$visibility] = $tokens[$visibility]['content'].' static';
- }
- }
- }
-
- // Batch all the fixes together to reduce the possibility of conflicts.
- if (empty($fixes) === false) {
- $phpcsFile->fixer->beginChangeset();
- foreach ($fixes as $stackPtr => $content) {
- $phpcsFile->fixer->replaceToken($stackPtr, $content);
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes a token that is found within the scope that this test is
- * listening to.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position in the stack where this
- * token was found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
-
- }//end processTokenOutsideScope()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/NamespaceDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/NamespaceDeclarationSniff.php
deleted file mode 100644
index cd9904af..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/NamespaceDeclarationSniff.php
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php
-/**
- * Ensures namespaces are declared correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class NamespaceDeclarationSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_NAMESPACE);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- for ($i = ($stackPtr + 1); $i < ($phpcsFile->numTokens - 1); $i++) {
- if ($tokens[$i]['line'] === $tokens[$stackPtr]['line']) {
- continue;
- }
-
- break;
- }
-
- // The $i var now points to the first token on the line after the
- // namespace declaration, which must be a blank line.
- $next = $phpcsFile->findNext(T_WHITESPACE, $i, $phpcsFile->numTokens, true);
- if ($next === false) {
- return;
- }
-
- $diff = ($tokens[$next]['line'] - $tokens[$i]['line']);
- if ($diff === 1) {
- return;
- }
-
- if ($diff < 0) {
- $diff = 0;
- }
-
- $error = 'There must be one blank line after the namespace declaration';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'BlankLineAfter');
-
- if ($fix === true) {
- if ($diff === 0) {
- $phpcsFile->fixer->addNewlineBefore($i);
- } else {
- $phpcsFile->fixer->beginChangeset();
- for ($x = $i; $x < $next; $x++) {
- if ($tokens[$x]['line'] === $tokens[$next]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($x, '');
- }
-
- $phpcsFile->fixer->addNewline($i);
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/UseDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/UseDeclarationSniff.php
deleted file mode 100644
index 9aeaa678..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/UseDeclarationSniff.php
+++ /dev/null
@@ -1,211 +0,0 @@
-<?php
-/**
- * Ensures USE blocks are declared correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class UseDeclarationSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_USE);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- if ($this->shouldIgnoreUse($phpcsFile, $stackPtr) === true) {
- return;
- }
-
- $tokens = $phpcsFile->getTokens();
-
- // One space after the use keyword.
- if ($tokens[($stackPtr + 1)]['content'] !== ' ') {
- $error = 'There must be a single space after the USE keyword';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterUse');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
-
- // Only one USE declaration allowed per statement.
- $next = $phpcsFile->findNext(array(T_COMMA, T_SEMICOLON, T_OPEN_USE_GROUP, T_CLOSE_TAG), ($stackPtr + 1));
- if ($next !== false
- && $tokens[$next]['code'] !== T_SEMICOLON
- && $tokens[$next]['code'] !== T_CLOSE_TAG
- ) {
- $error = 'There must be one USE keyword per declaration';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'MultipleDeclarations');
- if ($fix === true) {
- if ($tokens[$next]['code'] === T_COMMA) {
- $phpcsFile->fixer->replaceToken($next, ';'.$phpcsFile->eolChar.'use ');
- } else {
- $baseUse = rtrim($phpcsFile->getTokensAsString($stackPtr, ($next - $stackPtr)));
- $closingCurly = $phpcsFile->findNext(T_CLOSE_USE_GROUP, ($next + 1));
-
- $phpcsFile->fixer->beginChangeset();
-
- // Remove base use statement.
- for ($i = $stackPtr; $i <= $next; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- // Convert grouped use statements into full use statements.
- do {
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($next + 1), $closingCurly, true);
-
- $whitespace = $phpcsFile->findPrevious(T_WHITESPACE, ($next - 1), null, true);
- for ($i = ($whitespace + 1); $i < $next; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- if ($tokens[$next]['code'] === T_CONST || $tokens[$next]['code'] === T_FUNCTION) {
- $phpcsFile->fixer->addContentBefore($next, 'use ');
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($next + 1), $closingCurly, true);
- $phpcsFile->fixer->addContentBefore($next, str_replace('use ', '', $baseUse));
- } else {
- $phpcsFile->fixer->addContentBefore($next, $baseUse);
- }
-
- $next = $phpcsFile->findNext(T_COMMA, ($next + 1), $closingCurly);
- if ($next !== false) {
- $phpcsFile->fixer->replaceToken($next, ';'.$phpcsFile->eolChar);
- }
- } while ($next !== false);
-
- $phpcsFile->fixer->replaceToken($closingCurly, '');
-
- // Remove any trailing whitespace.
- $next = $phpcsFile->findNext(T_SEMICOLON, $closingCurly);
- $whitespace = $phpcsFile->findPrevious(T_WHITESPACE, ($closingCurly - 1), null, true);
- for ($i = ($whitespace + 1); $i < $next; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }//end if
- }//end if
- }//end if
-
- // Make sure this USE comes after the first namespace declaration.
- $prev = $phpcsFile->findPrevious(T_NAMESPACE, ($stackPtr - 1));
- if ($prev !== false) {
- $first = $phpcsFile->findNext(T_NAMESPACE, 1);
- if ($prev !== $first) {
- $error = 'USE declarations must go after the first namespace declaration';
- $phpcsFile->addError($error, $stackPtr, 'UseAfterNamespace');
- }
- }
-
- // Only interested in the last USE statement from here onwards.
- $nextUse = $phpcsFile->findNext(T_USE, ($stackPtr + 1));
- while ($this->shouldIgnoreUse($phpcsFile, $nextUse) === true) {
- $nextUse = $phpcsFile->findNext(T_USE, ($nextUse + 1));
- if ($nextUse === false) {
- break;
- }
- }
-
- if ($nextUse !== false) {
- return;
- }
-
- $end = $phpcsFile->findNext(T_SEMICOLON, ($stackPtr + 1));
- if ($end === false) {
- return;
- }
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($end + 1), null, true);
-
- if ($next === false || $tokens[$next]['code'] === T_CLOSE_TAG) {
- return;
- }
-
- $diff = ($tokens[$next]['line'] - $tokens[$end]['line'] - 1);
- if ($diff !== 1) {
- if ($diff < 0) {
- $diff = 0;
- }
-
- $error = 'There must be one blank line after the last USE statement; %s found;';
- $data = array($diff);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterLastUse', $data);
- if ($fix === true) {
- if ($diff === 0) {
- $phpcsFile->fixer->addNewline($end);
- } else {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($end + 1); $i < $next; $i++) {
- if ($tokens[$i]['line'] === $tokens[$next]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->addNewline($end);
- $phpcsFile->fixer->endChangeset();
- }
- }
- }//end if
-
- }//end process()
-
-
- /**
- * Check if this use statement is part of the namespace block.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- private function shouldIgnoreUse($phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Ignore USE keywords inside closures.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$next]['code'] === T_OPEN_PARENTHESIS) {
- return true;
- }
-
- // Ignore USE keywords for traits.
- if ($phpcsFile->hasCondition($stackPtr, array(T_CLASS, T_TRAIT)) === true) {
- return true;
- }
-
- return false;
-
- }//end shouldIgnoreUse()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc
deleted file mode 100644
index 1805d820..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc
+++ /dev/null
@@ -1,160 +0,0 @@
-<?php
-class ClassName extends ParentClass implements \ArrayAccess, \Countable
-{
- // constants, properties, methods
-}
-
-class ClassName extends ParentClass,AnotherParentClass implements \ArrayAccess,\Countable {
- // constants, properties, methods
-}
-
-class ClassName
-extends ParentClass
-implements \ArrayAccess, \Countable
-{
- // constants, properties, methods
-
-}
-
-class ClassName extends ParentClass implements
- \ArrayAccess,
- \Foo\Bar\Countable,
- \Serializable {
- // constants, properties, methods
-
-}
-
-class ClassName extends ParentClass implements \ArrayAccess,
- \Countable,
- \Serializable
-{
- // constants, properties, methods
-}
-
-class ClassName extends ParentClass implements
- \ArrayAccess, \Countable, \Foo\Serializable
-{
- // constants, properties, methods
-}
-
-// Different indent
-if ($foo) {
- class ClassName extends ParentClass implements
- \ArrayAccess,
- \Countable,
- \Serializable
- {
- // constants, properties, methods
- }
-}
-
-class Foo extends \Foo\Bar\Object
-{
-}
-
-class ClassName extends ParentClass implements
- \Foo\Bar\Countable,
- \Serializable
-{
- // constants, properties, methods
-}
-
-class ClassName extends ParentClass implements
- \Foo\Bar\Countable ,
- \Serializable
-{
- // constants, properties, methods
-}
-
-class Test
-{
- public function test() {
- if (1) 1;
- 1 ? (1 ? 1 : 1) : 1;
- }
-}
-
-class MyClass
-{
-}
-
-class MyClass
-{
-
-}
-
-class MyClass
-{
- // Foo.
-}
-
-class MyClass
-{
- // Foo.
-
-}
-
-abstract class Test implements
- TestInterface1,
- TestInterface2
-{
-}
-
-interface MyInterface extends LongInterfaceName1, LongInterfaceName2, LongInterfaceName3, LoginInterfaceName4
-{
-}
-
-interface MyInterface extends
- LongInterfaceName1,
- LongInterfaceName2,
- LongInterfaceName3,
- LoginInterfaceName4
-{
-}
-
-interface MyInterface extends
- LongInterfaceName1,
- LongInterfaceName2,
- LongInterfaceName3,
-LongInterfaceName4
-{
-}
-
-abstract
-class Test
-{
-}
-
-class ClassName implements
-
- \ArrayAccess,\Countable,
-\Serializable
-{
- // constants, properties, methods
-}
-
-class C1
-{
-
-} // C1
-
-class Base
-{
- protected $anonymous;
-
- public function __construct()
- {
- $this->anonymous = new class extends ArrayObject
- {
- public function __construct()
- {
- parent::__construct(['a' => 1, 'b' => 2]);
- }
- };
- }
-}
-
-class A extends B
- implements C
-{
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc.fixed
deleted file mode 100644
index 73eff678..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.inc.fixed
+++ /dev/null
@@ -1,158 +0,0 @@
-<?php
-class ClassName extends ParentClass implements \ArrayAccess, \Countable
-{
- // constants, properties, methods
-}
-
-class ClassName extends ParentClass, AnotherParentClass implements \ArrayAccess, \Countable
-{
- // constants, properties, methods
-}
-
-class ClassName extends ParentClass implements \ArrayAccess, \Countable
-{
- // constants, properties, methods
-}
-
-class ClassName extends ParentClass implements
- \ArrayAccess,
- \Foo\Bar\Countable,
- \Serializable
-{
- // constants, properties, methods
-}
-
-class ClassName extends ParentClass implements
- \ArrayAccess,
- \Countable,
- \Serializable
-{
- // constants, properties, methods
-}
-
-class ClassName extends ParentClass implements
- \ArrayAccess,
- \Countable,
- \Foo\Serializable
-{
- // constants, properties, methods
-}
-
-// Different indent
-if ($foo) {
- class ClassName extends ParentClass implements
- \ArrayAccess,
- \Countable,
- \Serializable
- {
- // constants, properties, methods
- }
-}
-
-class Foo extends \Foo\Bar\Object
-{
-}
-
-class ClassName extends ParentClass implements
- \Foo\Bar\Countable,
- \Serializable
-{
- // constants, properties, methods
-}
-
-class ClassName extends ParentClass implements
- \Foo\Bar\Countable,
- \Serializable
-{
- // constants, properties, methods
-}
-
-class Test
-{
- public function test() {
- if (1) 1;
- 1 ? (1 ? 1 : 1) : 1;
- }
-}
-
-class MyClass
-{
-}
-
-class MyClass
-{
-
-}
-
-class MyClass
-{
- // Foo.
-}
-
-class MyClass
-{
- // Foo.
-}
-
-abstract class Test implements
- TestInterface1,
- TestInterface2
-{
-}
-
-interface MyInterface extends LongInterfaceName1, LongInterfaceName2, LongInterfaceName3, LoginInterfaceName4
-{
-}
-
-interface MyInterface extends
- LongInterfaceName1,
- LongInterfaceName2,
- LongInterfaceName3,
- LoginInterfaceName4
-{
-}
-
-interface MyInterface extends
- LongInterfaceName1,
- LongInterfaceName2,
- LongInterfaceName3,
- LongInterfaceName4
-{
-}
-
-abstract class Test
-{
-}
-
-class ClassName implements
- \ArrayAccess,
- \Countable,
- \Serializable
-{
- // constants, properties, methods
-}
-
-class C1
-{
-
-} // C1
-
-class Base
-{
- protected $anonymous;
-
- public function __construct()
- {
- $this->anonymous = new class extends ArrayObject
- {
- public function __construct()
- {
- parent::__construct(['a' => 1, 'b' => 2]);
- }
- };
- }
-}
-
-class A extends B implements C
-{
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php
deleted file mode 100644
index a4eafa4b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/**
- * Unit test class for the ClassDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClassDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 7 => 3,
- 12 => 1,
- 13 => 1,
- 17 => 1,
- 19 => 2,
- 20 => 1,
- 21 => 1,
- 22 => 1,
- 25 => 1,
- 27 => 2,
- 34 => 1,
- 35 => 2,
- 44 => 1,
- 45 => 1,
- 63 => 1,
- 95 => 1,
- 116 => 1,
- 118 => 1,
- 119 => 1,
- 124 => 1,
- 130 => 2,
- 131 => 1,
- 158 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.inc
deleted file mode 100644
index 03356b5e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.inc
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-class MyClass
-{
- public $var = null;
- protected $var = null;
- private $var = null;
- $var = null;
-
- var $var = null;
- public var $var = null;
-
- public $_var = null;
- protected $_var = null;
- private $_var = null;
-
- public $foo, $bar, $var = null;
- public $foo,
- $bar,
- $var = null;
-}
-
-class foo
-{
- const bar = <<<BAZ
-qux
-BAZ;
-}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php
deleted file mode 100644
index bdd6578a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Unit test class for the PropertyDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class PropertyDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 7 => 1,
- 9 => 2,
- 10 => 1,
- 16 => 1,
- 17 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 12 => 1,
- 13 => 1,
- 14 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc
deleted file mode 100644
index 7757ccfd..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-if ($something) {
-}
-foreach ($this as $that ) {
-}
-while (true) {
- for ($i = 0; $i < 10; $i++) {
- }
- if ($something) {
- }
-
- foreach ($this as $that) {
- do {
- } while ( true );
-
- }
-}
-
-if ($defaultPageDesign === 0
- && $defaultCascade === TRUE
- && $defaultChildDesign === 0
-) {
- $settingsUpdated = FALSE;
-}
-
-foreach ( $blah as $var ) {
- if ( $blah ) {
- }
-}
-
-if (
- $defaultPageDesign === 0
- && $defaultCascade === TRUE
- && $defaultChildDesign === 0
-) {
- $settingsUpdated = FALSE;
-}
-
-// @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 1
-foreach ($something as $blah => $that) {}
-foreach ( $something as $blah => $that ) {}
-foreach ( $something as $blah => $that ) {}
-// @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 0
-
-$binary = b"binary string";
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc.fixed
deleted file mode 100644
index f6740052..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.inc.fixed
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-if ($something) {
-}
-foreach ($this as $that) {
-}
-while (true) {
- for ($i = 0; $i < 10; $i++) {
- }
- if ($something) {
- }
-
- foreach ($this as $that) {
- do {
- } while (true);
-
- }
-}
-
-if ($defaultPageDesign === 0
- && $defaultCascade === TRUE
- && $defaultChildDesign === 0
-) {
- $settingsUpdated = FALSE;
-}
-
-foreach ($blah as $var) {
- if ($blah) {
- }
-}
-
-if ($defaultPageDesign === 0
- && $defaultCascade === TRUE
- && $defaultChildDesign === 0
-) {
- $settingsUpdated = FALSE;
-}
-
-// @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 1
-foreach ( $something as $blah => $that ) {}
-foreach ( $something as $blah => $that ) {}
-foreach ( $something as $blah => $that ) {}
-// @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 0
-
-$binary = b"binary string";
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php
deleted file mode 100644
index f01c24bc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ControlStructureSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 14 => 2,
- 26 => 2,
- 27 => 2,
- 31 => 1,
- 41 => 2,
- 43 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc
deleted file mode 100644
index 778659c8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-if ($something) {
-} else if ($somethingElse) {
-}
-
-if ($something) {
-} elseif ($somethingElse) {
-}
-
-if ($something) {
-} else if ($somethingElse) {
-} elseif ($another) {
-} else {
-}
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc.fixed
deleted file mode 100644
index 4a7bfdc2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc.fixed
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-if ($something) {
-} elseif ($somethingElse) {
-}
-
-if ($something) {
-} elseif ($somethingElse) {
-}
-
-if ($something) {
-} elseif ($somethingElse) {
-} elseif ($another) {
-} else {
-}
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php
deleted file mode 100644
index 0d777e9b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the ElseIfDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ElseIfDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 4 => 1,
- 12 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc
deleted file mode 100644
index 13d5cf06..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc
+++ /dev/null
@@ -1,264 +0,0 @@
-<?php
-switch ($expr) {
- case 0:
- echo 'First case, with a break';
- break;
- case 1:
- echo 'Second case, which falls through';
- // no break
- case 2:
- case 3:
- Case 4:
- echo 'Third case, return instead of break';
- return;
- Default:
- echo 'Default case';
- break;
-}
-
-switch ($expr) {
- case 0:
- echo 'First case,';
-
- case 1 :
- echo 'Second case';
- // no break
- case 2:
- case 3:
- echo 'Third case';
- return;
-
- default:
- echo 'Default case';
- break;
-}
-
-switch ($foo) {
- case'Foo': {
- echo 'foo';
- break;
- }
-}
-
-while ($i < 10) {
- switch ($foo) {
- case '1':
- case '2':
- ++$i;
- continue 2;
- case '3':
- return $i;
- }
-}
-
-switch (true) {
- case is_resource($value):
- throw new Exception('foo');
- case is_object($value):
- return 'object';
-}
-
-switch (0) {
- case 0:
- switch (1) {
- case 1:
- echo 'a';
- break;
- }
- break;
-}
-
-switch ($foo) {
- case Foo::ONE:
- case Foo::TWO:
- case Foo::Class:
- break;
-}
-
-switch (true) {
- case $value instanceof StdClass:
- return 1;
- case strpos('_', get_class($value)) !== false:
- break;
-}
-
-switch (true) {
- case $value instanceof StdClass:
- if ($value) {
- return null;
- }
-}
-
-use Vendor\Test\FooBar;
-
-function test()
-{
- switch ($val) {
- case 'foo':
- echo 'foo';
- break;
- default:
- echo 'foo';
- }
-
- exit;
-}
-
-switch ($foo) {
- case 1: $bar = 1; break;
- case 2:
-
- $bar = 2; break;
- case 21:
- case 3: return 3;
- default: $bar = 0;
-}
-
-switch ($foo) {
- case 'foo': // some comment
- echo 'foo';
- break;
- case 'bar':
- // some comment
- echo 'bar';
- break;
- case 'baz': // other comment
- echo 'baz';
- break;
- case 'boo':
-
- // other comment
- echo 'boo';
- break;
- default: // other comment
- echo 'default';
- break;
-}
-
-switch($foo)
-{
- case ('foo'):
- default:
- {
- $foo = 'foo';
- break;
- }
-}
-
-switch ($foo) {
- case Foo::INTERFACE:
- return self::INTERFACE;
- case Foo::NAMESPACE:
- return self::MODULE;
- case Foo::TRAIT:
- case Foo::ARRAY:
- return self::VALUE;
-}
-
-// OK: Every clause terminates
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- return 0;
- } else {
- return 1;
- }
- case 2:
- return 2;
-}
-
-// ERROR: No else clause
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- return 0;
- } elseif ($bar < 0) {
- return 1;
- }
- case 2:
- return 2;
-}
-
-// OK: No fall-through present
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- return 0;
- } elseif ($bar < 0) {
- return 1;
- }
-}
-
-// ERROR: No else clause (nested)
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- return 0;
- } else {
- if ($foo > $bar) {
- continue;
- }
- }
- case 2:
- return 2;
-}
-
-// OK: Every clause terminates
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- return 0;
- } else {
- if ($foo > $bar) {
- continue;
- } else {
- break;
- }
- }
- case 2:
- return 2;
-}
-
-// ERROR: Non-termination IF clause
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- $offset = 0;
- } else {
- break;
- }
- case 2:
- return 2;
-}
-
-// ERROR: Non-termination IF clause (nested)
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- continue;
- } else {
- if ($foo > $bar) {
- $offset = 0;
- } else {
- break;
- }
- }
- case 2:
- return 2;
-}
-
-switch ($sContext)
-{
- case 'SOMETHING':
- case 'CONSTANT':
- do_something();
- break;
- case 'GLOBAL':
- case 'GLOBAL1':
- do_something();
- // Fall through
- default:
- {
- do_something();
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc.fixed
deleted file mode 100644
index 9373b15f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.inc.fixed
+++ /dev/null
@@ -1,267 +0,0 @@
-<?php
-switch ($expr) {
- case 0:
- echo 'First case, with a break';
- break;
- case 1:
- echo 'Second case, which falls through';
- // no break
- case 2:
- case 3:
- case 4:
- echo 'Third case, return instead of break';
- return;
- default:
- echo 'Default case';
- break;
-}
-
-switch ($expr) {
- case 0:
- echo 'First case,';
-
- case 1:
- echo 'Second case';
- // no break
- case 2:
- case 3:
- echo 'Third case';
- return;
-
- default:
- echo 'Default case';
- break;
-}
-
-switch ($foo) {
- case 'Foo': {
- echo 'foo';
- break;
- }
-}
-
-while ($i < 10) {
- switch ($foo) {
- case '1':
- case '2':
- ++$i;
- continue 2;
- case '3':
- return $i;
- }
-}
-
-switch (true) {
- case is_resource($value):
- throw new Exception('foo');
- case is_object($value):
- return 'object';
-}
-
-switch (0) {
- case 0:
- switch (1) {
- case 1:
- echo 'a';
- break;
- }
- break;
-}
-
-switch ($foo) {
- case Foo::ONE:
- case Foo::TWO:
- case Foo::Class:
- break;
-}
-
-switch (true) {
- case $value instanceof StdClass:
- return 1;
- case strpos('_', get_class($value)) !== false:
- break;
-}
-
-switch (true) {
- case $value instanceof StdClass:
- if ($value) {
- return null;
- }
-}
-
-use Vendor\Test\FooBar;
-
-function test()
-{
- switch ($val) {
- case 'foo':
- echo 'foo';
- break;
- default:
- echo 'foo';
- }
-
- exit;
-}
-
-switch ($foo) {
- case 1:
- $bar = 1;
- break;
- case 2:
- $bar = 2;
- break;
- case 21:
- case 3:
- return 3;
- default:
- $bar = 0;
-}
-
-switch ($foo) {
- case 'foo': // some comment
- echo 'foo';
- break;
- case 'bar':
- // some comment
- echo 'bar';
- break;
- case 'baz': // other comment
- echo 'baz';
- break;
- case 'boo':
- // other comment
- echo 'boo';
- break;
- default: // other comment
- echo 'default';
- break;
-}
-
-switch($foo)
-{
- case ('foo'):
- default:
- {
- $foo = 'foo';
- break;
- }
-}
-
-switch ($foo) {
- case Foo::INTERFACE:
- return self::INTERFACE;
- case Foo::NAMESPACE:
- return self::MODULE;
- case Foo::TRAIT:
- case Foo::ARRAY:
- return self::VALUE;
-}
-
-// OK: Every clause terminates
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- return 0;
- } else {
- return 1;
- }
- case 2:
- return 2;
-}
-
-// ERROR: No else clause
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- return 0;
- } elseif ($bar < 0) {
- return 1;
- }
- case 2:
- return 2;
-}
-
-// OK: No fall-through present
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- return 0;
- } elseif ($bar < 0) {
- return 1;
- }
-}
-
-// ERROR: No else clause (nested)
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- return 0;
- } else {
- if ($foo > $bar) {
- continue;
- }
- }
- case 2:
- return 2;
-}
-
-// OK: Every clause terminates
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- return 0;
- } else {
- if ($foo > $bar) {
- continue;
- } else {
- break;
- }
- }
- case 2:
- return 2;
-}
-
-// ERROR: Non-termination IF clause
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- $offset = 0;
- } else {
- break;
- }
- case 2:
- return 2;
-}
-
-// ERROR: Non-termination IF clause (nested)
-switch ($foo) {
- case 1:
- if ($bar > 0) {
- continue;
- } else {
- if ($foo > $bar) {
- $offset = 0;
- } else {
- break;
- }
- }
- case 2:
- return 2;
-}
-
-switch ($sContext)
-{
- case 'SOMETHING':
- case 'CONSTANT':
- do_something();
- break;
- case 'GLOBAL':
- case 'GLOBAL1':
- do_something();
- // Fall through
- default:
- {
- do_something();
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php
deleted file mode 100644
index e2ef986e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-/**
- * Unit test class for the SwitchDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SwitchDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 10 => 1,
- 11 => 1,
- 14 => 1,
- 16 => 1,
- 20 => 1,
- 23 => 1,
- 29 => 1,
- 33 => 1,
- 37 => 2,
- 108 => 2,
- 109 => 1,
- 111 => 1,
- 113 => 2,
- 114 => 1,
- 128 => 1,
- 141 => 1,
- 172 => 1,
- 194 => 1,
- 224 => 1,
- 236 => 1,
- 260 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.1.inc
deleted file mode 100644
index 738e70e9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.1.inc
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-echo 'hi';
-
-?>
-
-<?php
-
-echo 'bye';
-
-?>
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.1.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.1.inc.fixed
deleted file mode 100644
index f70b9eba..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.1.inc.fixed
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-echo 'hi';
-
-?>
-
-<?php
-
-echo 'bye';
-
-
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.2.inc
deleted file mode 100644
index 055a3083..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.2.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<div class="clear"></div>
- <?php include('inc.php'); ?>
-</div> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.3.inc
deleted file mode 100644
index d6a86175..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.3.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-$arr = [1, 2, 3];
-?>
-
-A: <?= $arr[0] ?>
-B: <?= $arr[1] ?>
-C: <?= $arr[2] ?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.4.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.4.inc
deleted file mode 100644
index dd103cde..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.4.inc
+++ /dev/null
@@ -1 +0,0 @@
-<?php echo $foo //hello ?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.4.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.4.inc.fixed
deleted file mode 100644
index 1058f1f3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.4.inc.fixed
+++ /dev/null
@@ -1 +0,0 @@
-<?php echo $foo; //hello
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.5.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.5.inc
deleted file mode 100644
index eb9b1b6a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.5.inc
+++ /dev/null
@@ -1 +0,0 @@
-<?php $foo = true; if ($foo) { echo 'hi'; } //hello ?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php
deleted file mode 100644
index e8cfcb36..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/**
- * Unit test class for the ClosingTag sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClosingTagUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'ClosingTagUnitTest.1.inc':
- return array(11 => 1);
-
- case 'ClosingTagUnitTest.4.inc':
- case 'ClosingTagUnitTest.5.inc':
- return array(1 => 1);
-
- default:
- return array();
- }
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.1.inc
deleted file mode 100644
index ca2a7493..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.1.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-echo 'foo';
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.10.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.10.inc
deleted file mode 100644
index 38cd658f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.10.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-/** Why me?
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.2.inc
deleted file mode 100644
index 1254e4a5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.2.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-echo 'foo';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.3.inc
deleted file mode 100644
index 360abcc5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.3.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-echo 'foo'; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.4.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.4.inc
deleted file mode 100644
index 54c65243..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.4.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-echo 'foo';
-?>
-</body>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.5.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.5.inc
deleted file mode 100644
index c3a59b67..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.5.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-echo 'foo';
-?>
-</body>
-<?php
-echo 'bar';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.6.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.6.inc
deleted file mode 100644
index b837e261..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.6.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-echo 'foo'; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.7.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.7.inc
deleted file mode 100644
index eeef8b9b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.7.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-echo 'foo';
-
-
-
-
-
-
-
-
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.8.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.8.inc
deleted file mode 100644
index 04d7caa7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.8.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-/** Why me?
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.9.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.9.inc
deleted file mode 100644
index 32193939..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.9.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php
-/** Why me? \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php
deleted file mode 100644
index 410f2507..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * Unit test class for the EndFileNewline sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EndFileNewlineUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'EndFileNewlineUnitTest.1.inc':
- case 'EndFileNewlineUnitTest.3.inc':
- case 'EndFileNewlineUnitTest.6.inc':
- case 'EndFileNewlineUnitTest.7.inc':
- return array(2 => 1);
- case 'EndFileNewlineUnitTest.9.inc':
- case 'EndFileNewlineUnitTest.10.inc':
- // HHVM just removes the entire comment token, as if it was never there.
- if (defined('HHVM_VERSION') === true) {
- return array();
- }
- return array(2 => 1);
- default:
- return array();
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='')
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc
deleted file mode 100644
index 80d9affb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc
+++ /dev/null
@@ -1,179 +0,0 @@
-<?php
-
-// ok
-somefunction1($foo, $bar, [
- // ...
-], $baz);
-
-// ok
-$app->get('/hello/{name}', function ($name) use ($app) {
- return 'Hello '.$app->escape($name);
-}, array(
- '1',
- '2',
- '3',
-));
-
-// error
-somefunction2($foo, $bar, [
- // ...
- ],
-$baz);
-
-// ok
-somefunction3(// ...
- $foo,
- $bar,
- [
- // ...
- ],
- $baz
-);
-
-// ok
-somefunction4('
- this should not
- give an error
- because it\'s actually
- one line call
- with multi-line string
-');
-
-// ok
-somefunction5("hey,
-multi-line string with some
-extra args", $foo, 12);
-
-// error
-somefunction6('
- but args in a new line
- are not ok…
- ',
- $foo
-);
-
-$this->setFoo(true
- ? 1
- : 2, false, array(
- 'value',
- 'more'));
-
-$this->setFoo('some'
- . 'long'
- . 'text', 'string');
-
-foo(bar(), $a);
-foo();bar();
-
-foo(
- true
-);
-
-myFunction(<<<END
-Foo
-END
-);
-
-var_dump(array(<<<'EOD'
-foobar!
-EOD
-));
-
-myFunction(<<<END
-Foo
-END
-, 'bar');
-
-myFunction(<<<END
-Foo
-END
-,
-'bar');
-
-if (array_filter(
- $commands,
- function ($cmd) use ($commandName) {
- return ($cmd['name'] == $commandName);
- }
-)) {
- // Do something
-}
-
-myFunction(
- 'foo', (object) array(
- 'bar' => function ($x) {
- return true;
- },
- 'baz' => false
- )
-);
-$qux = array_filter(
- $quux, function ($x) {
- return $x;
- }
-);
-
-$this->listeners[] = $events->getSharedManager()->attach(
- 'Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, [$this, 'selectLayout'], 100
-);
-
-// @codingStandardsChangeSetting PSR2.Methods.FunctionCallSignature requiredSpacesBeforeClose 1
-foo('Testing
- multiline text'
- );
-
-foo('Testing
- multiline text: ' // . $text
- );
-
-foo('Testing
- multiline text: ' /* . $text */
- );
-
-foo('Testing
- multiline text: ' /* . $text */
- // . $other_text
- );
-
-foo('Testing
- multiline text: ' /*
- . $text
-// . $text2
- */
- );
-// @codingStandardsChangeSetting PSR2.Methods.FunctionCallSignature requiredSpacesBeforeClose 0
-
-foo('Testing
- multiline text'
-);
-
-foo('Testing
- multiline text'
- );
-
-foo('Testing
- multiline text' // hello
-);
-
-foo('Testing
- multiline text' /* hello */
-);
-
-foo('Testing
- multiline text'
- // hello
-);
-
-foo('Testing
- multiline text'
- /* hello */
-);
-
-$var = foo('Testing
- multiline'
- // hi
- ) + foo('Testing
- multiline'
- // hi
- )
-;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc.fixed
deleted file mode 100644
index 51f480eb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.inc.fixed
+++ /dev/null
@@ -1,183 +0,0 @@
-<?php
-
-// ok
-somefunction1($foo, $bar, [
- // ...
-], $baz);
-
-// ok
-$app->get('/hello/{name}', function ($name) use ($app) {
- return 'Hello '.$app->escape($name);
-}, array(
- '1',
- '2',
- '3',
-));
-
-// error
-somefunction2(
- $foo,
- $bar,
- [
- // ...
- ],
- $baz
-);
-
-// ok
-somefunction3(// ...
- $foo,
- $bar,
- [
- // ...
- ],
- $baz
-);
-
-// ok
-somefunction4('
- this should not
- give an error
- because it\'s actually
- one line call
- with multi-line string
-');
-
-// ok
-somefunction5("hey,
-multi-line string with some
-extra args", $foo, 12);
-
-// error
-somefunction6(
- '
- but args in a new line
- are not ok…
- ',
- $foo
-);
-
-$this->setFoo(true
- ? 1
- : 2, false, array(
- 'value',
- 'more'));
-
-$this->setFoo('some'
- . 'long'
- . 'text', 'string');
-
-foo(bar(), $a);
-foo();bar();
-
-foo(
- true
-);
-
-myFunction(<<<END
-Foo
-END
-);
-
-var_dump(array(<<<'EOD'
-foobar!
-EOD
-));
-
-myFunction(<<<END
-Foo
-END
-, 'bar');
-
-myFunction(
- <<<END
-Foo
-END
- ,
- 'bar'
-);
-
-if (array_filter(
- $commands,
- function ($cmd) use ($commandName) {
- return ($cmd['name'] == $commandName);
- }
-)) {
- // Do something
-}
-
-myFunction(
- 'foo',
- (object) array(
- 'bar' => function ($x) {
- return true;
- },
- 'baz' => false
- )
-);
-$qux = array_filter(
- $quux,
- function ($x) {
- return $x;
- }
-);
-
-$this->listeners[] = $events->getSharedManager()->attach(
- 'Zend\Mvc\Application',
- MvcEvent::EVENT_DISPATCH,
- [$this, 'selectLayout'],
- 100
-);
-
-// @codingStandardsChangeSetting PSR2.Methods.FunctionCallSignature requiredSpacesBeforeClose 1
-foo('Testing
- multiline text' );
-
-foo('Testing
- multiline text: ' ); // . $text
-
-
-foo('Testing
- multiline text: ' /* . $text */ );
-
-foo('Testing
- multiline text: ' /* . $text */ );
- // . $other_text
-
-
-foo('Testing
- multiline text: ' /*
- . $text
-// . $text2
- */ );
-// @codingStandardsChangeSetting PSR2.Methods.FunctionCallSignature requiredSpacesBeforeClose 0
-
-foo('Testing
- multiline text');
-
-foo('Testing
- multiline text');
-
-foo('Testing
- multiline text'); // hello
-
-
-foo('Testing
- multiline text' /* hello */);
-
-foo('Testing
- multiline text');
- // hello
-
-
-foo('Testing
- multiline text'
- /* hello */);
-
-$var = foo('Testing
- multiline')
- // hi
- + foo('Testing
- multiline');
- // hi
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php
deleted file mode 100644
index e5c399d8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionCallSignature sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\Methods;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionCallSignatureUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 18 => 3,
- 21 => 1,
- 48 => 1,
- 87 => 1,
- 90 => 1,
- 91 => 1,
- 103 => 1,
- 111 => 1,
- 117 => 4,
- 121 => 1,
- 125 => 1,
- 129 => 1,
- 133 => 1,
- 138 => 1,
- 146 => 1,
- 150 => 1,
- 154 => 1,
- 158 => 1,
- 162 => 1,
- 167 => 1,
- 172 => 1,
- 175 => 1,
- 178 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc
deleted file mode 100644
index 7bf667e6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-function test()
-{
- // Body here.
-}
-
-function test()
-{
- echo 'foo';}
-
-function test()
-{
- // Body here.
-
-}
-
-function test()
-{
- // Body here.
-
-
-}
-
-class MyClass
-{
- function test()
- {
- // Body here.
- }
-
- function test()
- {
- echo 'foo';}
-
- function test()
- {
- // Body here.
-
- }
-
- function test()
- {
- // Body here.
-
-
- }
-}
-
-$foo = function test()
-{
- // Body here.
-};
-
-$foo = function test()
-{
- echo 'foo';};
-
-$foo = function test()
-{
- // Body here.
-
-};
-
-$foo = function test()
-{
- // Body here.
-
-
-};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc.fixed
deleted file mode 100644
index 27efebb6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.inc.fixed
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-function test()
-{
- // Body here.
-}
-
-function test()
-{
- echo 'foo';}
-
-function test()
-{
- // Body here.
-}
-
-function test()
-{
- // Body here.
-}
-
-class MyClass
-{
- function test()
- {
- // Body here.
- }
-
- function test()
- {
- echo 'foo';}
-
- function test()
- {
- // Body here.
- }
-
- function test()
- {
- // Body here.
- }
-}
-
-$foo = function test()
-{
- // Body here.
-};
-
-$foo = function test()
-{
- echo 'foo';};
-
-$foo = function test()
-{
- // Body here.
-};
-
-$foo = function test()
-{
- // Body here.
-};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php
deleted file mode 100644
index 07084f29..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionClosingBrace sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\Methods;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionClosingBraceUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 16 => 1,
- 23 => 1,
- 40 => 1,
- 47 => 1,
- 63 => 1,
- 70 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc
deleted file mode 100644
index e9c09b68..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-class MyClass
-{
- function _myFunction() {}
- private function myFunction() {}
- function __myFunction() {}
- public static function myFunction() {}
- static public function myFunction() {}
- final public function myFunction() {}
- public final function myFunction() {}
- abstract private function myFunction() {}
- private abstract function myFunction() {}
- final public static function myFunction() {}
- static protected final abstract function myFunction() {}
- public function _() {}
-}
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc.fixed
deleted file mode 100644
index e9466a36..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc.fixed
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-class MyClass
-{
- function _myFunction() {}
- private function myFunction() {}
- function __myFunction() {}
- public static function myFunction() {}
- public static function myFunction() {}
- final public function myFunction() {}
- final public function myFunction() {}
- abstract private function myFunction() {}
- abstract private function myFunction() {}
- final public static function myFunction() {}
- abstract final protected static function myFunction() {}
- public function _() {}
-}
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php
deleted file mode 100644
index cd8efbb8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the MethodDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\Methods;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class MethodDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 9 => 1,
- 11 => 1,
- 13 => 1,
- 15 => 3,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(5 => 1);
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.inc
deleted file mode 100644
index 9e01e768..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.inc
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-namespace Vendor\Package;
-
-use FooClass;
-
-namespace Vendor\Package;
-use BarClass as Bar;
-
-namespace Vendor\Package;
-
-
- use BarClass as Bar;
-
-namespace Vendor\Package;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.inc.fixed
deleted file mode 100644
index b674b210..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.inc.fixed
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-namespace Vendor\Package;
-
-use FooClass;
-
-namespace Vendor\Package;
-
-use BarClass as Bar;
-
-namespace Vendor\Package;
-
- use BarClass as Bar;
-
-namespace Vendor\Package;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php
deleted file mode 100644
index 7bb31776..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the NamespaceDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\Namespaces;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class NamespaceDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 6 => 1,
- 9 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc
deleted file mode 100644
index 7fd8aa91..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-namespace MyProject;
-
-use BarClass as Bar;
-use My\Full\Classname as Another;
-
-
-use Something;
-use SomethingElse;
-
-// Comment here.
-use LastThing;
-
-class Foo {
-}
-
-$var = new MyClass(
- function () use ($foo, $bar) {
- return true;
- }
-);
-
-class Container extends Component implements IContainer
-{
- use TContainer;
-}
-
-trait HelloWorld
-{
- use Hello, World;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc
deleted file mode 100644
index d7d584b4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-namespace MyProject;
-
-use BarClass as Bar;
-use My\Full\Classname as Another, My\Full\NSname;
-
-
-namespace AnotherProject;
-
-use ArrayObject;
-
-
-$foo = 'bar';
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc.fixed
deleted file mode 100644
index b48047a4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.2.inc.fixed
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-namespace MyProject;
-
-use BarClass as Bar;
-use My\Full\Classname as Another;
-use My\Full\NSname;
-
-
-namespace AnotherProject;
-
-use ArrayObject;
-
-$foo = 'bar';
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc
deleted file mode 100644
index 8b290950..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-namespace bug;
-
-use
- someNS\A;
-use someNS\B;
-class Bug
-{
- public function __construct()
- {
- $b = 1;
- $a = function () use ($b) {
- echo $b;
- };
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc.fixed
deleted file mode 100644
index a8a43cc1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc.fixed
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-namespace bug;
-
-use someNS\A;
-use someNS\B;
-
-class Bug
-{
- public function __construct()
- {
- $b = 1;
- $a = function () use ($b) {
- echo $b;
- };
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.4.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.4.inc
deleted file mode 100644
index 2a06c06d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.4.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-use My\Full\Classname as Another;
-?>
-<h1><?php echo $foo; ?></h1>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.5.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.5.inc
deleted file mode 100644
index 1185495d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.5.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-namespace MyProject;
-
-use Single\ClassA as A;
-use Grouped\Classes\{ClassB, ClassC as C};
-use const Grouped\Constants\{D, E};
-use Single\ClassF;
-use Grouped\Mixed\ {
- ClassG,
- const ConstH,
- function func_i,
- ClassJ as J
-};
-use function Grouped\Functions\ { func_k };
-
-// Some examples from the original RFC.
-use function foo\math\{ sin, cos, cosh };
-use const foo\math\{ PI, E, GAMMA, GOLDEN_RATIO };
-use foo\math\{ Math, const PI, function sin, function cos, function cosh };
-
-class PHP7 {
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.5.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.5.inc.fixed
deleted file mode 100644
index 58e28ce8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.5.inc.fixed
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-namespace MyProject;
-
-use Single\ClassA as A;
-use Grouped\Classes\ClassB;
-use Grouped\Classes\ClassC as C;
-use const Grouped\Constants\D;
-use const Grouped\Constants\E;
-use Single\ClassF;
-use Grouped\Mixed\ClassG;
-use const Grouped\Mixed\ConstH;
-use function Grouped\Mixed\func_i;
-use Grouped\Mixed\ClassJ as J;
-use function Grouped\Functions\func_k;
-
-// Some examples from the original RFC.
-use function foo\math\sin;
-use function foo\math\cos;
-use function foo\math\cosh;
-use const foo\math\PI;
-use const foo\math\E;
-use const foo\math\GAMMA;
-use const foo\math\GOLDEN_RATIO;
-use foo\math\Math;
-use const foo\math\PI;
-use function foo\math\sin;
-use function foo\math\cos;
-use function foo\math\cosh;
-
-class PHP7 {
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.6.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.6.inc
deleted file mode 100644
index affef30a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.6.inc
+++ /dev/null
@@ -1 +0,0 @@
-<?php use My\Full\Classname as Another ?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.7.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.7.inc
deleted file mode 100644
index dee56869..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.7.inc
+++ /dev/null
@@ -1 +0,0 @@
-<?php use My\Full\Classname as Another
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php
deleted file mode 100644
index 6096d23a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-/**
- * Unit test class for the UseDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\PSR2\Tests\Namespaces;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class UseDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'UseDeclarationUnitTest.2.inc':
- return array(
- 4 => 1,
- 5 => 1,
- 10 => 2,
- );
- case 'UseDeclarationUnitTest.3.inc':
- return array(
- 4 => 1,
- 6 => 1,
- );
- case 'UseDeclarationUnitTest.5.inc':
- return array(
- 5 => 1,
- 6 => 1,
- 8 => 1,
- 14 => 1,
- 17 => 1,
- 18 => 1,
- 19 => 1,
- );
- default:
- return array();
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/ruleset.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/ruleset.xml
deleted file mode 100644
index ff3f3e14..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/ruleset.xml
+++ /dev/null
@@ -1,190 +0,0 @@
-<?xml version="1.0"?>
-<ruleset name="PSR2">
- <description>The PSR-2 coding standard.</description>
- <arg name="tab-width" value="4"/>
-
- <!-- 2. General -->
-
- <!-- 2.1 Basic Coding Standard -->
-
- <!-- Include the whole PSR-1 standard -->
- <rule ref="PSR1"/>
-
- <!-- 2.2 Files -->
-
- <!-- All PHP files MUST use the Unix LF (linefeed) line ending. -->
- <rule ref="Generic.Files.LineEndings">
- <properties>
- <property name="eolChar" value="\n"/>
- </properties>
- </rule>
-
- <!-- All PHP files MUST end with a single blank line. -->
- <!-- checked in Files/EndFileNewlineSniff -->
-
- <!-- The closing ?> tag MUST be omitted from files containing only PHP. -->
- <!-- checked in Files/ClosingTagSniff -->
-
- <!-- 2.3 Lines -->
-
- <!-- The soft limit on line length MUST be 120 characters; automated style checkers MUST warn but MUST NOT error at the soft limit. -->
- <rule ref="Generic.Files.LineLength">
- <properties>
- <property name="lineLimit" value="120"/>
- <property name="absoluteLineLimit" value="0"/>
- </properties>
- </rule>
-
- <!-- There MUST NOT be trailing whitespace at the end of non-blank lines. -->
- <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
- <properties>
- <property name="ignoreBlankLines" value="true"/>
- </properties>
- </rule>
- <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile">
- <severity>0</severity>
- </rule>
- <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndFile">
- <severity>0</severity>
- </rule>
- <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
- <severity>0</severity>
- </rule>
-
- <!-- There MUST NOT be more than one statement per line. -->
- <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
-
- <!-- 2.4 Indenting -->
-
- <!-- Code MUST use an indent of 4 spaces, and MUST NOT use tabs for indenting. -->
- <rule ref="Generic.WhiteSpace.ScopeIndent">
- <properties>
- <property name="ignoreIndentationTokens" type="array" value="T_COMMENT,T_DOC_COMMENT_OPEN_TAG"/>
- </properties>
- </rule>
- <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
-
- <!-- 2.5 Keywords and True/False/Null -->
-
- <!-- PHP keywords MUST be in lower case. -->
- <rule ref="Generic.PHP.LowerCaseKeyword"/>
-
- <!-- The PHP constants true, false, and null MUST be in lower case. -->
- <rule ref="Generic.PHP.LowerCaseConstant"/>
-
- <!-- 3. Namespace and Use Declarations -->
-
- <!-- When present, there MUST be one blank line after the namespace declaration. -->
- <!-- checked in Namespaces/NamespaceDeclarationSniff -->
-
- <!-- When present, all use declarations MUST go after the namespace declaration.
- There MUST be one use keyword per declaration.
- There MUST be one blank line after the use block. -->
- <!-- checked in Namespaces/UseDeclarationSniff -->
-
- <!-- 4. Classes, Properties, and Methods -->
-
- <!-- 4.1. Extends and Implements -->
-
- <!-- The extends and implements keywords MUST be declared on the same line as the class name.
- The opening brace for the class go MUST go on its own line; the closing brace for the class MUST go on the next line after the body.
- Lists of implements MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one interface per line. -->
- <!-- checked in Classes/ClassDeclarationSniff -->
-
- <!-- 4.2. Properties -->
-
- <!-- Visibility MUST be declared on all properties.
- The var keyword MUST NOT be used to declare a property.
- There MUST NOT be more than one property declared per statement.
- Property names SHOULD NOT be prefixed with a single underscore to indicate protected or private visibility. -->
- <!-- checked in Classes/PropertyDeclarationSniff -->
-
- <!-- 4.3 Methods -->
-
- <!-- Visibility MUST be declared on all methods. -->
- <rule ref="Squiz.Scope.MethodScope"/>
- <rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing"/>
-
- <!-- Method names SHOULD NOT be prefixed with a single underscore to indicate protected or private visibility. -->
- <!-- checked in Methods/MethodDeclarationSniff -->
-
- <!-- Method names MUST NOT be declared with a space after the method name. The opening brace MUST go on its own line, and the closing brace MUST go on the next line following the body. There MUST NOT be a space after the opening parenthesis, and there MUST NOT be a space before the closing parenthesis. -->
- <!-- checked in Methods/FunctionClosingBraceSniff -->
- <rule ref="Squiz.Functions.FunctionDeclaration"/>
- <rule ref="Squiz.Functions.LowercaseFunctionKeywords"/>
-
- <!-- 4.4 Method Arguments -->
-
- <!-- In the argument list, there MUST NOT be a space before each comma, and there MUST be one space after each comma. -->
- <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
- <properties>
- <property name="equalsSpacing" value="1"/>
- </properties>
- </rule>
- <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint">
- <severity>0</severity>
- </rule>
-
- <!-- Method arguments with default values MUST go at the end of the argument list. -->
- <rule ref="PEAR.Functions.ValidDefaultValue"/>
-
- <!-- Argument lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument per line. When the argument list is split across multiple lines, the closing parenthesis and opening brace MUST be placed together on their own line with one space between them. -->
- <rule ref="Squiz.Functions.MultiLineFunctionDeclaration"/>
-
- <!-- 4.5 abstract, final, and static -->
-
- <!-- When present, the abstract and final declarations MUST precede the visibility declaration.
- When present, the static declaration MUST come after the visibility declaration. -->
- <!-- checked in Methods/MethodDeclarationSniff -->
-
- <!-- 4.6 Method and Function Calls -->
-
- <!-- When making a method or function call, there MUST NOT be a space between the method or function name and the opening parenthesis, there MUST NOT be a space after the opening parenthesis, and there MUST NOT be a space before the closing parenthesis. In the argument list, there MUST NOT be a space before each comma, and there MUST be one space after each comma.
- Argument lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument per line. -->
- <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
- <rule ref="PSR2.Methods.FunctionCallSignature.SpaceAfterCloseBracket">
- <severity>0</severity>
- </rule>
-
- <!-- 5. Control Structures -->
-
- <!-- The general style rules for control structures are as follows:
- There MUST be one space after the control structure keyword
- There MUST NOT be a space after the opening parenthesis
- There MUST NOT be a space before the closing parenthesis
- There MUST be one space between the closing parenthesis and the opening brace
- The structure body MUST be indented once
- The closing brace MUST be on the next line after the body -->
- <rule ref="Squiz.ControlStructures.ControlSignature"/>
- <rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen" />
- <rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose" />
- <rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/>
- <rule ref="Squiz.ControlStructures.ForEachLoopDeclaration"/>
- <rule ref="Squiz.ControlStructures.ForLoopDeclaration"/>
- <rule ref="Squiz.ControlStructures.LowercaseDeclaration"/>
- <!-- checked in ControlStructures/ControlStructureSpacingSniff -->
-
- <!-- The body of each structure MUST be enclosed by braces. This standardizes how the structures look, and reduces the likelihood of introducing errors as new lines get added to the body. -->
- <rule ref="Generic.ControlStructures.InlineControlStructure"/>
-
- <!-- 5.1. if, elseif, else -->
-
- <!-- The keyword elseif SHOULD be used instead of else if so that all control keywords look like single words. -->
- <!-- checked in ControlStructures/ElseIfDeclarationSniff -->
-
- <!-- 5.2. switch, case -->
-
- <!-- The case statement MUST be indented once from switch, and the break keyword (or other terminating keyword) MUST be indented at the same level as the case body. There MUST be a comment such as // no break when fall-through is intentional in a non-empty case body. -->
- <!-- checked in ControlStructures/SwitchDeclarationSniff -->
-
- <!-- 6. Closures -->
-
- <!-- Closures MUST be declared with a space after the function keyword, and a space before and after the use keyword.
- The opening brace MUST go on the same line, and the closing brace MUST go on the next line following the body.
- There MUST NOT be a space after the opening parenthesis of the argument list or variable list, and there MUST NOT be a space before the closing parenthesis of the argument list or variable list.
- In the argument list and variable list, there MUST NOT be a space before each comma, and there MUST be one space after each comma.
- Closure arguments with default values MUST go at the end of the argument list.
- Argument lists and variable lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument or variable per line.
- When the ending list (whether or arguments or variables) is split across multiple lines, the closing parenthesis and opening brace MUST be placed together on their own line with one space between them. -->
- <!-- checked in Squiz.Functions.MultiLineFunctionDeclaration -->
-</ruleset>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Arrays/ArrayBracketSpacingStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Arrays/ArrayBracketSpacingStandard.xml
deleted file mode 100644
index fc6ccbd6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Arrays/ArrayBracketSpacingStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Array Bracket Spacing">
- <standard>
- <![CDATA[
- When referencing arrays you should not put whitespace around the opening bracket or before the closing bracket.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: No spaces around the brackets.">
- <![CDATA[
-$foo<em></em>[<em></em>'bar'<em></em>];
-]]>
- </code>
- <code title="Invalid: Spaces around the brackets.">
- <![CDATA[
-$foo<em> </em>[<em> </em>'bar'<em> </em>];
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Arrays/ArrayDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Arrays/ArrayDeclarationStandard.xml
deleted file mode 100644
index 4cdfa2b0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Arrays/ArrayDeclarationStandard.xml
+++ /dev/null
@@ -1,117 +0,0 @@
-<documentation title="Array Declarations">
- <standard>
- <![CDATA[
- This standard covers all array declarations, regardless of the number and type of values contained within the array.
- ]]>
- </standard>
- <standard>
- <![CDATA[
- The <em>array</em> keyword must be lowercase.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: array keyword lowercase">
- <![CDATA[
-$array = <em>a</em>rray('val1', 'val2');
- ]]>
- </code>
- <code title="Invalid: first letter capitalised">
- <![CDATA[
-$array = <em>A</em>rray('val1', 'val2');
- ]]>
- </code>
- </code_comparison>
- <standard>
- <![CDATA[
- The first array key must begin on the line after the <em>array</em> keyword.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: first key on second line">
- <![CDATA[
-$array = array(
- <em>'key1'</em> => 'value1',
- 'key2' => 'value2',
- );
- ]]>
- </code>
- <code title="Invalid: first key on same line">
- <![CDATA[
-$array = array(<em>'key1'</em> => 'value1',
- 'key2' => 'value2',
- );
- ]]>
- </code>
- </code_comparison>
- <standard>
- <![CDATA[
- All array keys must be indented to one space after the start of the <em>array</em> keyword. The closing parenthesis must be aligned with the start of the <em>array</em> keyword.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: aligned correctly">
- <![CDATA[
-$array = array(
- <em> </em>'key1' => 'value1',
- <em> </em>'key2' => 'value2',
- );
- ]]>
- </code>
- <code title="Invalid: keys and parenthesis aligned incorrectly">
- <![CDATA[
-$array = array(
- <em>'</em>key1' => 'value1',
- <em>'</em>key2' => 'value2',
-);
- ]]>
- </code>
- </code_comparison>
- <standard>
- <![CDATA[
- All double arrow symbols must be aligned to one space after the longest array key. Alignment must be achieved using spaces.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: keys and values aligned">
- <![CDATA[
-$array = array(
- 'keyTen'<em> </em>=> 'ValueTen',
- 'keyTwenty'<em> </em>=> 'ValueTwenty',
- );
- ]]>
- </code>
- <code title="Invalid: alignment incorrect">
- <![CDATA[
-$array = array(
- 'keyTen'<em> </em>=> 'ValueTen',
- 'keyTwenty'<em> </em>=> 'ValueTwenty',
- );
- ]]>
- </code>
- </code_comparison>
- <standard>
- <![CDATA[
- All array values must be followed by a comma, including the final value.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: comma after each value">
- <![CDATA[
-$array = array(
- 'key1' => 'value1',
- 'key2' => 'value2',
- 'key3' => 'value3'<em>,</em>
- );
- ]]>
- </code>
- <code title="Invalid: no comma after last value">
- <![CDATA[
-$array = array(
- 'key1' => 'value1',
- 'key2' => 'value2',
- 'key3' => 'value3'<em> </em>
- );
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Classes/LowercaseClassKeywordsStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Classes/LowercaseClassKeywordsStandard.xml
deleted file mode 100644
index 89fcb5de..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Classes/LowercaseClassKeywordsStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Lowercase Class Keywords">
- <standard>
- <![CDATA[
- The php keywords class, interface, trait, extends, implements, abstract, final, var, and const should be lowercase.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Lowercase class keywords.">
- <![CDATA[
-<em>final</em> <em>class</em> Foo <em>extends</em> Bar
-{
-}
-]]>
- </code>
- <code title="Invalid: Initial capitalization of class keywords.">
- <![CDATA[
-<em>Final</em> <em>Class</em> Foo <em>Extends</em> Bar
-{
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Classes/SelfMemberReferenceStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Classes/SelfMemberReferenceStandard.xml
deleted file mode 100644
index 59d193ff..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Classes/SelfMemberReferenceStandard.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-<documentation title="Self Member Reference">
- <standard>
- <![CDATA[
- The self keyword should be used instead of the current class name, should be lowercase, and should not have spaces before or after it.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Lowercase self used.">
- <![CDATA[
-<em>self</em>::foo();
-]]>
- </code>
- <code title="Invalid: Uppercase self used.">
- <![CDATA[
-<em>SELF</em>::foo();
-]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Correct spacing used.">
- <![CDATA[
-self<em></em>::<em></em>foo();
-]]>
- </code>
- <code title="Invalid: Incorrect spacing used.">
- <![CDATA[
-self<em> </em>::<em> </em>foo();
-]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Self used as reference.">
- <![CDATA[
-class Foo
-{
- public static function bar()
- {
- }
-
- public static function baz()
- {
- <em>self</em>::bar();
- }
-}
-]]>
- </code>
- <code title="Invalid: Local class name used as reference.">
- <![CDATA[
-class <em>Foo</em>
-{
- public static function bar()
- {
- }
-
- public static function baz()
- {
- <em>Foo</em>::bar();
- }
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/DocCommentAlignmentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/DocCommentAlignmentStandard.xml
deleted file mode 100644
index 414b89a3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/DocCommentAlignmentStandard.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<documentation title="Doc Comment Alignment">
- <standard>
- <![CDATA[
- The asterisks in a doc comment should align, and there should be one space between the asterisk and tags.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Asterisks are aligned.">
- <![CDATA[
-/**
-<em> </em>* @see foo()
-<em> </em>*/
-]]>
- </code>
- <code title="Invalid: Asterisks are not aligned.">
- <![CDATA[
-/**
-<em> </em>* @see foo()
-<em></em>*/
-]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: One space between asterisk and tag.">
- <![CDATA[
-/**
- *<em> </em>@see foo()
- */
-]]>
- </code>
- <code title="Invalid: Incorrect spacing used.">
- <![CDATA[
-/**
- *<em> </em>@see foo()
- */
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/FunctionCommentThrowTagStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/FunctionCommentThrowTagStandard.xml
deleted file mode 100644
index 81df2e3f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/FunctionCommentThrowTagStandard.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<documentation title="Doc Comment Throws Tag">
- <standard>
- <![CDATA[
- If a function throws any exceptions, they should be documented in a @throws tag.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: @throws tag used.">
- <![CDATA[
-/**
- * <em>@throws Exception all the time</em>
- * @return void
- */
-function foo()
-{
- throw new Exception('Danger!');
-}
-]]>
- </code>
- <code title="Invalid: No @throws tag used for throwing function.">
- <![CDATA[
-/**
- * @return void
- */
-function foo()
-{
- throw new Exception('Danger!');
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/ForEachLoopDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/ForEachLoopDeclarationStandard.xml
deleted file mode 100644
index 87c61813..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/ForEachLoopDeclarationStandard.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<documentation title="Foreach Loop Declarations">
- <standard>
- <![CDATA[
- There should be a space between each element of a foreach loop and the as keyword should be lowercase.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Correct spacing used.">
- <![CDATA[
-foreach (<em></em>$foo<em> </em>as<em> </em>$bar<em> </em>=><em> </em>$baz<em></em>) {
- echo $baz;
-}
-]]>
- </code>
- <code title="Invalid: Invalid spacing used.">
- <![CDATA[
-foreach (<em> </em>$foo<em> </em>as<em> </em>$bar<em></em>=><em></em>$baz<em> </em>) {
- echo $baz;
-}
-]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Lowercase as keyword.">
- <![CDATA[
-foreach ($foo <em>as</em> $bar => $baz) {
- echo $baz;
-}
-]]>
- </code>
- <code title="Invalid: Uppercase as keyword.">
- <![CDATA[
-foreach ($foo <em>AS</em> $bar => $baz) {
- echo $baz;
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/ForLoopDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/ForLoopDeclarationStandard.xml
deleted file mode 100644
index bbc43923..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/ForLoopDeclarationStandard.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<documentation title="For Loop Declarations">
- <standard>
- <![CDATA[
- In a for loop declaration, there should be no space inside the brackets and there should be 0 spaces before and 1 space after semicolons.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Correct spacing used.">
- <![CDATA[
-for (<em></em>$i = 0; $i < 10; $i++<em></em>) {
- echo $i;
-}
-]]>
- </code>
- <code title="Invalid: Invalid spacing used inside brackets.">
- <![CDATA[
-for (<em> </em>$i = 0; $i < 10; $i++<em> </em>) {
- echo $i;
-}
-]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Correct spacing used.">
- <![CDATA[
-for ($i = 0<em></em>; $i < 10<em></em>; $i++) {
- echo $i;
-}
-]]>
- </code>
- <code title="Invalid: Invalid spacing used before semicolons.">
- <![CDATA[
-for ($i = 0<em> </em>; $i < 10<em> </em>; $i++) {
- echo $i;
-}
-]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: Correct spacing used.">
- <![CDATA[
-for ($i = 0;<em> </em>$i < 10;<em> </em>$i++) {
- echo $i;
-}
-]]>
- </code>
- <code title="Invalid: Invalid spacing used after semicolons.">
- <![CDATA[
-for ($i = 0;<em></em>$i < 10;<em></em>$i++) {
- echo $i;
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/LowercaseDeclarationStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/LowercaseDeclarationStandard.xml
deleted file mode 100644
index 699f1f09..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/LowercaseDeclarationStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Lowercase Control Structure Keywords">
- <standard>
- <![CDATA[
- The php keywords if, else, elseif, foreach, for, do, switch, while, try, and catch should be lowercase.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Lowercase if keyword.">
- <![CDATA[
-<em>if</em> ($foo) {
- $bar = true;
-}
-]]>
- </code>
- <code title="Invalid: Uppercase if keyword.">
- <![CDATA[
-<em>IF</em> ($foo) {
- $bar = true;
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Functions/FunctionDuplicateArgumentStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Functions/FunctionDuplicateArgumentStandard.xml
deleted file mode 100644
index a890aba6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Functions/FunctionDuplicateArgumentStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Lowercase Built-In functions">
- <standard>
- <![CDATA[
- All PHP built-in functions should be lowercased when called.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Lowercase function call.">
- <![CDATA[
-if (<em>isset</em>($foo)) {
- echo $foo;
-}
-]]>
- </code>
- <code title="Invalid: isset not called as lowercase.">
- <![CDATA[
-if (<em>isSet</em>($foo)) {
- echo $foo;
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Functions/LowercaseFunctionKeywordsStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Functions/LowercaseFunctionKeywordsStandard.xml
deleted file mode 100644
index 46e8a8f3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Functions/LowercaseFunctionKeywordsStandard.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<documentation title="Lowercase Function Keywords">
- <standard>
- <![CDATA[
- The php keywords function, public, private, protected, and static should be lowercase.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Lowercase function keyword.">
- <![CDATA[
-<em>function</em> foo()
-{
- return true;
-}
-]]>
- </code>
- <code title="Invalid: Uppercase function keyword.">
- <![CDATA[
-<em>FUNCTION</em> foo()
-{
- return true;
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Scope/StaticThisUsageStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Scope/StaticThisUsageStandard.xml
deleted file mode 100644
index 3c97f54e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Scope/StaticThisUsageStandard.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<documentation title="Static This Usage">
- <standard>
- <![CDATA[
- Static methods should not use $this.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Using self:: to access static variables.">
- <![CDATA[
-class Foo
-{
- <em>static</em> function bar()
- {
- return <em>self</em>::$staticMember;
- }
-}
-]]>
- </code>
- <code title="Invalid: Using $this-> to access static variables.">
- <![CDATA[
-class Foo
-{
- <em>static</em> function bar()
- {
- return <em>$this</em>->$staticMember;
- }
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Strings/EchoedStringsStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Strings/EchoedStringsStandard.xml
deleted file mode 100644
index 030f2a68..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Strings/EchoedStringsStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Echoed Strings">
- <standard>
- <![CDATA[
- Simple strings should not be enclosed in parentheses when being echoed.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Using echo without parentheses.">
- <![CDATA[
-echo<em> </em>"Hello";
-]]>
- </code>
- <code title="Invalid: Using echo with parentheses.">
- <![CDATA[
-echo<em>(</em>"Hello"<em>)</em>;
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/CastSpacingStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/CastSpacingStandard.xml
deleted file mode 100644
index 0fb195cb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/CastSpacingStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Cast Whitespace">
- <standard>
- <![CDATA[
- Casts should not have whitespace inside the parentheses.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: No spaces.">
- <![CDATA[
-$foo = (<em></em>int<em></em>)'42';
-]]>
- </code>
- <code title="Invalid: Whitespace used inside parentheses.">
- <![CDATA[
-$foo = (<em> </em>int<em> </em>)'42';
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/FunctionOpeningBraceStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/FunctionOpeningBraceStandard.xml
deleted file mode 100644
index d2bc2647..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/FunctionOpeningBraceStandard.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<documentation title="Function Opening Brace Whitespace">
- <standard>
- <![CDATA[
- The opening brace for functions should be on a new line with no blank lines surrounding it.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Opening brace is on a new line.">
- <![CDATA[
-function foo()
-<em>{</em>
-}
-]]>
- </code>
- <code title="Invalid: Opening brace is on the same line as the function declaration.">
- <![CDATA[
-function foo() <em>{</em>
-}
-]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: No blank lines after the opening brace.">
- <![CDATA[
-function foo()
-{
-<em> return 42;</em>
-}
-]]>
- </code>
- <code title="Invalid: A blank line after the opening brace.">
- <![CDATA[
-function foo()
-{
-<em></em>
- return 42;
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/LanguageConstructSpacingStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/LanguageConstructSpacingStandard.xml
deleted file mode 100644
index 608bed0b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/LanguageConstructSpacingStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Language Construct Whitespace">
- <standard>
- <![CDATA[
- The php constructs echo, print, return, include, include_once, require, require_once, and new should have one space after them.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: echo statement with a single space after it.">
- <![CDATA[
-echo<em> </em>"hi";
-]]>
- </code>
- <code title="Invalid: echo statement with no space after it.">
- <![CDATA[
-echo<em></em>"hi";
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml
deleted file mode 100644
index c6194d71..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Object Operator Spacing">
- <standard>
- <![CDATA[
- The object operator (->) should not have any space around it.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: No spaces around the object operator.">
- <![CDATA[
-$foo<em></em>-><em></em>bar();
-]]>
- </code>
- <code title="Invalid: Whitespace surrounding the object operator.">
- <![CDATA[
-$foo<em> </em>-><em> </em>bar();
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ScopeKeywordSpacingStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ScopeKeywordSpacingStandard.xml
deleted file mode 100644
index 8cadf669..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/ScopeKeywordSpacingStandard.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<documentation title="Scope Keyword Spacing">
- <standard>
- <![CDATA[
- The php keywords static, public, private, and protected should have one space after them.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A single space following the keywords.">
- <![CDATA[
-public<em> </em>static<em> </em>function foo()
-{
-}
-]]>
- </code>
- <code title="Invalid: Multiple spaces following the keywords.">
- <![CDATA[
-public<em> </em>static<em> </em>function foo()
-{
-}
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/SemicolonSpacingStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/SemicolonSpacingStandard.xml
deleted file mode 100644
index 7b227952..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/WhiteSpace/SemicolonSpacingStandard.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<documentation title="Semicolon Spacing">
- <standard>
- <![CDATA[
- Semicolons should not have spaces before them.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: No space before the semicolon.">
- <![CDATA[
-echo "hi"<em></em>;
-]]>
- </code>
- <code title="Invalid: Space before the semicolon.">
- <![CDATA[
-echo "hi"<em> </em>;
-]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayBracketSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayBracketSpacingSniff.php
deleted file mode 100644
index 919f6496..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayBracketSpacingSniff.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-/**
- * Ensure that there are no spaces around square brackets.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ArrayBracketSpacingSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_OPEN_SQUARE_BRACKET,
- T_CLOSE_SQUARE_BRACKET,
- );
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being checked.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // PHP 5.4 introduced a shorthand array declaration syntax, so we need
- // to ignore the these type of array declarations because this sniff is
- // only dealing with array usage.
- if ($tokens[$stackPtr]['code'] === T_OPEN_SQUARE_BRACKET) {
- $openBracket = $stackPtr;
- } else {
- if (isset($tokens[$stackPtr]['bracket_opener']) === false) {
- return;
- }
-
- $openBracket = $tokens[$stackPtr]['bracket_opener'];
- }
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($openBracket - 1), null, true);
- if ($tokens[$prev]['code'] === T_EQUAL) {
- return;
- }
-
- // Square brackets can not have a space before them.
- $prevType = $tokens[($stackPtr - 1)]['code'];
- if (isset(Tokens::$emptyTokens[$prevType]) === true) {
- $nonSpace = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 2), null, true);
- $expected = $tokens[$nonSpace]['content'].$tokens[$stackPtr]['content'];
- $found = $phpcsFile->getTokensAsString($nonSpace, ($stackPtr - $nonSpace)).$tokens[$stackPtr]['content'];
- $error = 'Space found before square bracket; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $found,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeBracket', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), '');
- }
- }
-
- // Open square brackets can't ever have spaces after them.
- if ($tokens[$stackPtr]['code'] === T_OPEN_SQUARE_BRACKET) {
- $nextType = $tokens[($stackPtr + 1)]['code'];
- if (isset(Tokens::$emptyTokens[$nextType]) === true) {
- $nonSpace = $phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 2), null, true);
- $expected = $tokens[$stackPtr]['content'].$tokens[$nonSpace]['content'];
- $found = $phpcsFile->getTokensAsString($stackPtr, ($nonSpace - $stackPtr + 1));
- $error = 'Space found after square bracket; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $found,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterBracket', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
- }
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php
deleted file mode 100644
index 688f5efb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php
+++ /dev/null
@@ -1,851 +0,0 @@
-<?php
-/**
- * Ensures that arrays conform to the array coding standard.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ArrayDeclarationSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_ARRAY,
- T_OPEN_SHORT_ARRAY,
- );
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being checked.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['code'] === T_ARRAY) {
- $phpcsFile->recordMetric($stackPtr, 'Short array syntax used', 'no');
-
- // Array keyword should be lower case.
- if ($tokens[$stackPtr]['content'] !== strtolower($tokens[$stackPtr]['content'])) {
- if ($tokens[$stackPtr]['content'] === strtoupper($tokens[$stackPtr]['content'])) {
- $phpcsFile->recordMetric($stackPtr, 'Array keyword case', 'upper');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Array keyword case', 'mixed');
- }
-
- $error = 'Array keyword should be lower case; expected "array" but found "%s"';
- $data = array($tokens[$stackPtr]['content']);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotLowerCase', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, 'array');
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Array keyword case', 'lower');
- }
-
- $arrayStart = $tokens[$stackPtr]['parenthesis_opener'];
- if (isset($tokens[$arrayStart]['parenthesis_closer']) === false) {
- return;
- }
-
- $arrayEnd = $tokens[$arrayStart]['parenthesis_closer'];
-
- if ($arrayStart !== ($stackPtr + 1)) {
- $error = 'There must be no space between the "array" keyword and the opening parenthesis';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterKeyword');
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($stackPtr + 1); $i < $arrayStart; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Short array syntax used', 'yes');
- $arrayStart = $stackPtr;
- $arrayEnd = $tokens[$stackPtr]['bracket_closer'];
- }//end if
-
- // Check for empty arrays.
- $content = $phpcsFile->findNext(T_WHITESPACE, ($arrayStart + 1), ($arrayEnd + 1), true);
- if ($content === $arrayEnd) {
- // Empty array, but if the brackets aren't together, there's a problem.
- if (($arrayEnd - $arrayStart) !== 1) {
- $error = 'Empty array declaration must have no space between the parentheses';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceInEmptyArray');
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($arrayStart + 1); $i < $arrayEnd; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- // We can return here because there is nothing else to check. All code
- // below can assume that the array is not empty.
- return;
- }
-
- if ($tokens[$arrayStart]['line'] === $tokens[$arrayEnd]['line']) {
- $this->processSingleLineArray($phpcsFile, $stackPtr, $arrayStart, $arrayEnd);
- } else {
- $this->processMultiLineArray($phpcsFile, $stackPtr, $arrayStart, $arrayEnd);
- }
-
- }//end process()
-
-
- /**
- * Processes a single-line array definition.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being checked.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $arrayStart The token that starts the array definition.
- * @param int $arrayEnd The token that ends the array definition.
- *
- * @return void
- */
- public function processSingleLineArray($phpcsFile, $stackPtr, $arrayStart, $arrayEnd)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Check if there are multiple values. If so, then it has to be multiple lines
- // unless it is contained inside a function call or condition.
- $valueCount = 0;
- $commas = array();
- for ($i = ($arrayStart + 1); $i < $arrayEnd; $i++) {
- // Skip bracketed statements, like function calls.
- if ($tokens[$i]['code'] === T_OPEN_PARENTHESIS) {
- $i = $tokens[$i]['parenthesis_closer'];
- continue;
- }
-
- if ($tokens[$i]['code'] === T_COMMA) {
- // Before counting this comma, make sure we are not
- // at the end of the array.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($i + 1), $arrayEnd, true);
- if ($next !== false) {
- $valueCount++;
- $commas[] = $i;
- } else {
- // There is a comma at the end of a single line array.
- $error = 'Comma not allowed after last value in single-line array declaration';
- $fix = $phpcsFile->addFixableError($error, $i, 'CommaAfterLast');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
- }
- }
- }//end for
-
- // Now check each of the double arrows (if any).
- $nextArrow = $arrayStart;
- while (($nextArrow = $phpcsFile->findNext(T_DOUBLE_ARROW, ($nextArrow + 1), $arrayEnd)) !== false) {
- if ($tokens[($nextArrow - 1)]['code'] !== T_WHITESPACE) {
- $content = $tokens[($nextArrow - 1)]['content'];
- $error = 'Expected 1 space between "%s" and double arrow; 0 found';
- $data = array($content);
- $fix = $phpcsFile->addFixableError($error, $nextArrow, 'NoSpaceBeforeDoubleArrow', $data);
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore($nextArrow, ' ');
- }
- } else {
- $spaceLength = $tokens[($nextArrow - 1)]['length'];
- if ($spaceLength !== 1) {
- $content = $tokens[($nextArrow - 2)]['content'];
- $error = 'Expected 1 space between "%s" and double arrow; %s found';
- $data = array(
- $content,
- $spaceLength,
- );
-
- $fix = $phpcsFile->addFixableError($error, $nextArrow, 'SpaceBeforeDoubleArrow', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($nextArrow - 1), ' ');
- }
- }
- }//end if
-
- if ($tokens[($nextArrow + 1)]['code'] !== T_WHITESPACE) {
- $content = $tokens[($nextArrow + 1)]['content'];
- $error = 'Expected 1 space between double arrow and "%s"; 0 found';
- $data = array($content);
- $fix = $phpcsFile->addFixableError($error, $nextArrow, 'NoSpaceAfterDoubleArrow', $data);
- if ($fix === true) {
- $phpcsFile->fixer->addContent($nextArrow, ' ');
- }
- } else {
- $spaceLength = $tokens[($nextArrow + 1)]['length'];
- if ($spaceLength !== 1) {
- $content = $tokens[($nextArrow + 2)]['content'];
- $error = 'Expected 1 space between double arrow and "%s"; %s found';
- $data = array(
- $content,
- $spaceLength,
- );
-
- $fix = $phpcsFile->addFixableError($error, $nextArrow, 'SpaceAfterDoubleArrow', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($nextArrow + 1), ' ');
- }
- }
- }//end if
- }//end while
-
- if ($valueCount > 0) {
- $conditionCheck = $phpcsFile->findPrevious(array(T_OPEN_PARENTHESIS, T_SEMICOLON), ($stackPtr - 1), null, false);
-
- if ($conditionCheck === false
- || $tokens[$conditionCheck]['line'] !== $tokens[$stackPtr]['line']
- ) {
- $error = 'Array with multiple values cannot be declared on a single line';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SingleLineNotAllowed');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addNewline($arrayStart);
- $phpcsFile->fixer->addNewlineBefore($arrayEnd);
- $phpcsFile->fixer->endChangeset();
- }
-
- return;
- }
-
- // We have a multiple value array that is inside a condition or
- // function. Check its spacing is correct.
- foreach ($commas as $comma) {
- if ($tokens[($comma + 1)]['code'] !== T_WHITESPACE) {
- $content = $tokens[($comma + 1)]['content'];
- $error = 'Expected 1 space between comma and "%s"; 0 found';
- $data = array($content);
- $fix = $phpcsFile->addFixableError($error, $comma, 'NoSpaceAfterComma', $data);
- if ($fix === true) {
- $phpcsFile->fixer->addContent($comma, ' ');
- }
- } else {
- $spaceLength = $tokens[($comma + 1)]['length'];
- if ($spaceLength !== 1) {
- $content = $tokens[($comma + 2)]['content'];
- $error = 'Expected 1 space between comma and "%s"; %s found';
- $data = array(
- $content,
- $spaceLength,
- );
-
- $fix = $phpcsFile->addFixableError($error, $comma, 'SpaceAfterComma', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($comma + 1), ' ');
- }
- }
- }//end if
-
- if ($tokens[($comma - 1)]['code'] === T_WHITESPACE) {
- $content = $tokens[($comma - 2)]['content'];
- $spaceLength = $tokens[($comma - 1)]['length'];
- $error = 'Expected 0 spaces between "%s" and comma; %s found';
- $data = array(
- $content,
- $spaceLength,
- );
-
- $fix = $phpcsFile->addFixableError($error, $comma, 'SpaceBeforeComma', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($comma - 1), '');
- }
- }
- }//end foreach
- }//end if
-
- }//end processSingleLineArray()
-
-
- /**
- * Processes a multi-line array definition.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being checked.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $arrayStart The token that starts the array definition.
- * @param int $arrayEnd The token that ends the array definition.
- *
- * @return void
- */
- public function processMultiLineArray($phpcsFile, $stackPtr, $arrayStart, $arrayEnd)
- {
- $tokens = $phpcsFile->getTokens();
- $keywordStart = $tokens[$stackPtr]['column'];
-
- // Check the closing bracket is on a new line.
- $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($arrayEnd - 1), $arrayStart, true);
- if ($tokens[$lastContent]['line'] === $tokens[$arrayEnd]['line']) {
- $error = 'Closing parenthesis of array declaration must be on a new line';
- $fix = $phpcsFile->addFixableError($error, $arrayEnd, 'CloseBraceNewLine');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($arrayEnd);
- }
- } else if ($tokens[$arrayEnd]['column'] !== $keywordStart) {
- // Check the closing bracket is lined up under the "a" in array.
- $expected = ($keywordStart - 1);
- $found = ($tokens[$arrayEnd]['column'] - 1);
- $error = 'Closing parenthesis not aligned correctly; expected %s space(s) but found %s';
- $data = array(
- $expected,
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $arrayEnd, 'CloseBraceNotAligned', $data);
- if ($fix === true) {
- if ($found === 0) {
- $phpcsFile->fixer->addContent(($arrayEnd - 1), str_repeat(' ', $expected));
- } else {
- $phpcsFile->fixer->replaceToken(($arrayEnd - 1), str_repeat(' ', $expected));
- }
- }
- }//end if
-
- $keyUsed = false;
- $singleUsed = false;
- $indices = array();
- $maxLength = 0;
-
- if ($tokens[$stackPtr]['code'] === T_ARRAY) {
- $lastToken = $tokens[$stackPtr]['parenthesis_opener'];
- } else {
- $lastToken = $stackPtr;
- }
-
- // Find all the double arrows that reside in this scope.
- for ($nextToken = ($stackPtr + 1); $nextToken < $arrayEnd; $nextToken++) {
- // Skip bracketed statements, like function calls.
- if ($tokens[$nextToken]['code'] === T_OPEN_PARENTHESIS
- && (isset($tokens[$nextToken]['parenthesis_owner']) === false
- || $tokens[$nextToken]['parenthesis_owner'] !== $stackPtr)
- ) {
- $nextToken = $tokens[$nextToken]['parenthesis_closer'];
- continue;
- }
-
- if ($tokens[$nextToken]['code'] === T_ARRAY
- || $tokens[$nextToken]['code'] === T_OPEN_SHORT_ARRAY
- || $tokens[$nextToken]['code'] === T_CLOSURE
- ) {
- // Let subsequent calls of this test handle nested arrays.
- if ($tokens[$lastToken]['code'] !== T_DOUBLE_ARROW) {
- $indices[] = array('value' => $nextToken);
- $lastToken = $nextToken;
- }
-
- if ($tokens[$nextToken]['code'] === T_ARRAY) {
- $nextToken = $tokens[$tokens[$nextToken]['parenthesis_opener']]['parenthesis_closer'];
- } else if ($tokens[$nextToken]['code'] === T_OPEN_SHORT_ARRAY) {
- $nextToken = $tokens[$nextToken]['bracket_closer'];
- } else {
- // T_CLOSURE.
- $nextToken = $tokens[$nextToken]['scope_closer'];
- }
-
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($nextToken + 1), null, true);
- if ($tokens[$nextToken]['code'] !== T_COMMA) {
- $nextToken--;
- } else {
- $lastToken = $nextToken;
- }
-
- continue;
- }//end if
-
- if ($tokens[$nextToken]['code'] !== T_DOUBLE_ARROW
- && $tokens[$nextToken]['code'] !== T_COMMA
- ) {
- continue;
- }
-
- $currentEntry = array();
-
- if ($tokens[$nextToken]['code'] === T_COMMA) {
- $stackPtrCount = 0;
- if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- $stackPtrCount = count($tokens[$stackPtr]['nested_parenthesis']);
- }
-
- $commaCount = 0;
- if (isset($tokens[$nextToken]['nested_parenthesis']) === true) {
- $commaCount = count($tokens[$nextToken]['nested_parenthesis']);
- if ($tokens[$stackPtr]['code'] === T_ARRAY) {
- // Remove parenthesis that are used to define the array.
- $commaCount--;
- }
- }
-
- if ($commaCount > $stackPtrCount) {
- // This comma is inside more parenthesis than the ARRAY keyword,
- // then there it is actually a comma used to separate arguments
- // in a function call.
- continue;
- }
-
- if ($keyUsed === true && $tokens[$lastToken]['code'] === T_COMMA) {
- $error = 'No key specified for array entry; first entry specifies key';
- $phpcsFile->addError($error, $nextToken, 'NoKeySpecified');
- return;
- }
-
- if ($keyUsed === false) {
- if ($tokens[($nextToken - 1)]['code'] === T_WHITESPACE) {
- $content = $tokens[($nextToken - 2)]['content'];
- if ($tokens[($nextToken - 1)]['content'] === $phpcsFile->eolChar) {
- $spaceLength = 'newline';
- } else {
- $spaceLength = $tokens[($nextToken - 1)]['length'];
- }
-
- $error = 'Expected 0 spaces between "%s" and comma; %s found';
- $data = array(
- $content,
- $spaceLength,
- );
-
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpaceBeforeComma', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($nextToken - 1), '');
- }
- }
-
- $valueContent = $phpcsFile->findNext(
- Tokens::$emptyTokens,
- ($lastToken + 1),
- $nextToken,
- true
- );
-
- $indices[] = array('value' => $valueContent);
- $singleUsed = true;
- }//end if
-
- $lastToken = $nextToken;
- continue;
- }//end if
-
- if ($tokens[$nextToken]['code'] === T_DOUBLE_ARROW) {
- if ($singleUsed === true) {
- $error = 'Key specified for array entry; first entry has no key';
- $phpcsFile->addError($error, $nextToken, 'KeySpecified');
- return;
- }
-
- $currentEntry['arrow'] = $nextToken;
- $keyUsed = true;
-
- // Find the start of index that uses this double arrow.
- $indexEnd = $phpcsFile->findPrevious(T_WHITESPACE, ($nextToken - 1), $arrayStart, true);
- $indexStart = $phpcsFile->findStartOfStatement($indexEnd);
-
- if ($indexStart === $indexEnd) {
- $currentEntry['index'] = $indexEnd;
- $currentEntry['index_content'] = $tokens[$indexEnd]['content'];
- } else {
- $currentEntry['index'] = $indexStart;
- $currentEntry['index_content'] = $phpcsFile->getTokensAsString($indexStart, ($indexEnd - $indexStart + 1));
- }
-
- $indexLength = strlen($currentEntry['index_content']);
- if ($maxLength < $indexLength) {
- $maxLength = $indexLength;
- }
-
- // Find the value of this index.
- $nextContent = $phpcsFile->findNext(
- Tokens::$emptyTokens,
- ($nextToken + 1),
- $arrayEnd,
- true
- );
-
- $currentEntry['value'] = $nextContent;
- $indices[] = $currentEntry;
- $lastToken = $nextToken;
- }//end if
- }//end for
-
- // Check for mutli-line arrays that should be single-line.
- $singleValue = false;
-
- if (empty($indices) === true) {
- $singleValue = true;
- } else if (count($indices) === 1 && $tokens[$lastToken]['code'] === T_COMMA) {
- // There may be another array value without a comma.
- $exclude = Tokens::$emptyTokens;
- $exclude[] = T_COMMA;
- $nextContent = $phpcsFile->findNext($exclude, ($indices[0]['value'] + 1), $arrayEnd, true);
- if ($nextContent === false) {
- $singleValue = true;
- }
- }
-
- if ($singleValue === true) {
- // Array cannot be empty, so this is a multi-line array with
- // a single value. It should be defined on single line.
- $error = 'Multi-line array contains a single value; use single-line array instead';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'MultiLineNotAllowed');
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($arrayStart + 1); $i < $arrayEnd; $i++) {
- if ($tokens[$i]['code'] !== T_WHITESPACE) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- for ($i = ($arrayEnd - 1); $i > $arrayStart; $i--) {
- if ($tokens[$i]['code'] !== T_WHITESPACE) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- return;
- }//end if
-
- /*
- This section checks for arrays that don't specify keys.
-
- Arrays such as:
- array(
- 'aaa',
- 'bbb',
- 'd',
- );
- */
-
- if ($keyUsed === false && empty($indices) === false) {
- $count = count($indices);
- $lastIndex = $indices[($count - 1)]['value'];
-
- $trailingContent = $phpcsFile->findPrevious(
- Tokens::$emptyTokens,
- ($arrayEnd - 1),
- $lastIndex,
- true
- );
-
- if ($tokens[$trailingContent]['code'] !== T_COMMA) {
- $phpcsFile->recordMetric($stackPtr, 'Array end comma', 'no');
- $error = 'Comma required after last value in array declaration';
- $fix = $phpcsFile->addFixableError($error, $trailingContent, 'NoCommaAfterLast');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($trailingContent, ',');
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Array end comma', 'yes');
- }
-
- $lastValueLine = false;
- foreach ($indices as $value) {
- if (empty($value['value']) === true) {
- // Array was malformed and we couldn't figure out
- // the array value correctly, so we have to ignore it.
- // Other parts of this sniff will correct the error.
- continue;
- }
-
- if ($lastValueLine !== false && $tokens[$value['value']]['line'] === $lastValueLine) {
- $error = 'Each value in a multi-line array must be on a new line';
- $fix = $phpcsFile->addFixableError($error, $value['value'], 'ValueNoNewline');
- if ($fix === true) {
- if ($tokens[($value['value'] - 1)]['code'] === T_WHITESPACE) {
- $phpcsFile->fixer->replaceToken(($value['value'] - 1), '');
- }
-
- $phpcsFile->fixer->addNewlineBefore($value['value']);
- }
- } else if ($tokens[($value['value'] - 1)]['code'] === T_WHITESPACE) {
- $expected = $keywordStart;
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $value['value'], true);
- $found = ($tokens[$first]['column'] - 1);
- if ($found !== $expected) {
- $error = 'Array value not aligned correctly; expected %s spaces but found %s';
- $data = array(
- $expected,
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $value['value'], 'ValueNotAligned', $data);
- if ($fix === true) {
- if ($found === 0) {
- $phpcsFile->fixer->addContent(($value['value'] - 1), str_repeat(' ', $expected));
- } else {
- $phpcsFile->fixer->replaceToken(($value['value'] - 1), str_repeat(' ', $expected));
- }
- }
- }
- }//end if
-
- $lastValueLine = $tokens[$value['value']]['line'];
- }//end foreach
- }//end if
-
- /*
- Below the actual indentation of the array is checked.
- Errors will be thrown when a key is not aligned, when
- a double arrow is not aligned, and when a value is not
- aligned correctly.
- If an error is found in one of the above areas, then errors
- are not reported for the rest of the line to avoid reporting
- spaces and columns incorrectly. Often fixing the first
- problem will fix the other 2 anyway.
-
- For example:
-
- $a = array(
- 'index' => '2',
- );
-
- or
-
- $a = [
- 'index' => '2',
- ];
-
- In this array, the double arrow is indented too far, but this
- will also cause an error in the value's alignment. If the arrow were
- to be moved back one space however, then both errors would be fixed.
- */
-
- $numValues = count($indices);
-
- $indicesStart = ($keywordStart + 1);
- $arrowStart = ($indicesStart + $maxLength + 1);
- $valueStart = ($arrowStart + 3);
- $indexLine = $tokens[$stackPtr]['line'];
- $lastIndexLine = null;
- foreach ($indices as $index) {
- if (isset($index['index']) === false) {
- // Array value only.
- if ($tokens[$index['value']]['line'] === $tokens[$stackPtr]['line'] && $numValues > 1) {
- $error = 'The first value in a multi-value array must be on a new line';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'FirstValueNoNewline');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($index['value']);
- }
- }
-
- continue;
- }
-
- $lastIndexLine = $indexLine;
- $indexLine = $tokens[$index['index']]['line'];
-
- if ($indexLine === $tokens[$stackPtr]['line']) {
- $error = 'The first index in a multi-value array must be on a new line';
- $fix = $phpcsFile->addFixableError($error, $index['index'], 'FirstIndexNoNewline');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($index['index']);
- }
-
- continue;
- }
-
- if ($indexLine === $lastIndexLine) {
- $error = 'Each index in a multi-line array must be on a new line';
- $fix = $phpcsFile->addFixableError($error, $index['index'], 'IndexNoNewline');
- if ($fix === true) {
- if ($tokens[($index['index'] - 1)]['code'] === T_WHITESPACE) {
- $phpcsFile->fixer->replaceToken(($index['index'] - 1), '');
- }
-
- $phpcsFile->fixer->addNewlineBefore($index['index']);
- }
-
- continue;
- }
-
- if ($tokens[$index['index']]['column'] !== $indicesStart) {
- $expected = ($indicesStart - 1);
- $found = ($tokens[$index['index']]['column'] - 1);
- $error = 'Array key not aligned correctly; expected %s spaces but found %s';
- $data = array(
- $expected,
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $index['index'], 'KeyNotAligned', $data);
- if ($fix === true) {
- if ($found === 0) {
- $phpcsFile->fixer->addContent(($index['index'] - 1), str_repeat(' ', $expected));
- } else {
- $phpcsFile->fixer->replaceToken(($index['index'] - 1), str_repeat(' ', $expected));
- }
- }
-
- continue;
- }
-
- if ($tokens[$index['arrow']]['column'] !== $arrowStart) {
- $expected = ($arrowStart - (strlen($index['index_content']) + $tokens[$index['index']]['column']));
- $found = ($tokens[$index['arrow']]['column'] - (strlen($index['index_content']) + $tokens[$index['index']]['column']));
- $error = 'Array double arrow not aligned correctly; expected %s space(s) but found %s';
- $data = array(
- $expected,
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $index['arrow'], 'DoubleArrowNotAligned', $data);
- if ($fix === true) {
- if ($found === 0) {
- $phpcsFile->fixer->addContent(($index['arrow'] - 1), str_repeat(' ', $expected));
- } else {
- $phpcsFile->fixer->replaceToken(($index['arrow'] - 1), str_repeat(' ', $expected));
- }
- }
-
- continue;
- }
-
- if ($tokens[$index['value']]['column'] !== $valueStart) {
- $expected = ($valueStart - ($tokens[$index['arrow']]['length'] + $tokens[$index['arrow']]['column']));
- $found = ($tokens[$index['value']]['column'] - ($tokens[$index['arrow']]['length'] + $tokens[$index['arrow']]['column']));
- if ($found < 0) {
- $found = 'newline';
- }
-
- $error = 'Array value not aligned correctly; expected %s space(s) but found %s';
- $data = array(
- $expected,
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $index['arrow'], 'ValueNotAligned', $data);
- if ($fix === true) {
- if ($found === 'newline') {
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($index['value'] - 1), null, true);
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prev + 1); $i < $index['value']; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->replaceToken(($index['value'] - 1), str_repeat(' ', $expected));
- $phpcsFile->fixer->endChangeset();
- } else if ($found === 0) {
- $phpcsFile->fixer->addContent(($index['value'] - 1), str_repeat(' ', $expected));
- } else {
- $phpcsFile->fixer->replaceToken(($index['value'] - 1), str_repeat(' ', $expected));
- }
- }
- }//end if
-
- // Check each line ends in a comma.
- $valueLine = $tokens[$index['value']]['line'];
- $nextComma = false;
- for ($i = $index['value']; $i < $arrayEnd; $i++) {
- // Skip bracketed statements, like function calls.
- if ($tokens[$i]['code'] === T_OPEN_PARENTHESIS) {
- $i = $tokens[$i]['parenthesis_closer'];
- $valueLine = $tokens[$i]['line'];
- continue;
- }
-
- if ($tokens[$i]['code'] === T_ARRAY) {
- $i = $tokens[$tokens[$i]['parenthesis_opener']]['parenthesis_closer'];
- $valueLine = $tokens[$i]['line'];
- continue;
- }
-
- // Skip to the end of multi-line strings.
- if (isset(Tokens::$stringTokens[$tokens[$i]['code']]) === true) {
- $i = $phpcsFile->findNext($tokens[$i]['code'], ($i + 1), null, true);
- $i--;
- $valueLine = $tokens[$i]['line'];
- continue;
- }
-
- if ($tokens[$i]['code'] === T_OPEN_SHORT_ARRAY) {
- $i = $tokens[$i]['bracket_closer'];
- $valueLine = $tokens[$i]['line'];
- continue;
- }
-
- if ($tokens[$i]['code'] === T_CLOSURE) {
- $i = $tokens[$i]['scope_closer'];
- $valueLine = $tokens[$i]['line'];
- continue;
- }
-
- if ($tokens[$i]['code'] === T_COMMA) {
- $nextComma = $i;
- break;
- }
- }//end for
-
- if ($nextComma === false || ($tokens[$nextComma]['line'] !== $valueLine)) {
- $error = 'Each line in an array declaration must end in a comma';
- $fix = $phpcsFile->addFixableError($error, $index['value'], 'NoComma');
-
- if ($fix === true) {
- // Find the end of the line and put a comma there.
- for ($i = ($index['value'] + 1); $i < $arrayEnd; $i++) {
- if ($tokens[$i]['line'] > $valueLine) {
- break;
- }
- }
-
- $phpcsFile->fixer->addContentBefore(($i - 1), ',');
- }
- }
-
- // Check that there is no space before the comma.
- if ($nextComma !== false && $tokens[($nextComma - 1)]['code'] === T_WHITESPACE) {
- $content = $tokens[($nextComma - 2)]['content'];
- $spaceLength = $tokens[($nextComma - 1)]['length'];
- $error = 'Expected 0 spaces between "%s" and comma; %s found';
- $data = array(
- $content,
- $spaceLength,
- );
-
- $fix = $phpcsFile->addFixableError($error, $nextComma, 'SpaceBeforeComma', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($nextComma - 1), '');
- }
- }
- }//end foreach
-
- }//end processMultiLineArray()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionClosingBraceSpaceSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionClosingBraceSpaceSniff.php
deleted file mode 100644
index 3a785e7b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionClosingBraceSpaceSniff.php
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-/**
- * Ensure there is a single blank line after the closing brace of a class definition.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
- use PHP_CodeSniffer\Sniffs\Sniff;
- use PHP_CodeSniffer\Files\File;
- use PHP_CodeSniffer\Util\Tokens;
-
-class ClassDefinitionClosingBraceSpaceSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_CLOSE_CURLY_BRACKET);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($next === false) {
- return;
- }
-
- if ($tokens[$next]['code'] !== T_CLOSE_TAG) {
- $found = (($tokens[$next]['line'] - $tokens[$stackPtr]['line']) - 1);
- if ($found !== 1) {
- $error = 'Expected one blank line after closing brace of class definition; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterClose', $data);
-
- if ($fix === true) {
- if ($found === 0) {
- $phpcsFile->fixer->addNewline($stackPtr);
- } else {
- $nextContent = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($stackPtr + 1); $i < ($nextContent - 1); $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->addNewline($i);
- $phpcsFile->fixer->endChangeset();
- }
- }
- }//end if
- }//end if
-
- // Ignore nested style definitions from here on. The spacing before the closing brace
- // (a single blank line) will be enforced by the above check, which ensures there is a
- // blank line after the last nested class.
- $found = $phpcsFile->findPrevious(
- T_CLOSE_CURLY_BRACKET,
- ($stackPtr - 1),
- $tokens[$stackPtr]['bracket_opener']
- );
-
- if ($found !== false) {
- return;
- }
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if ($prev === false) {
- return;
- }
-
- if ($tokens[$prev]['line'] === $tokens[$stackPtr]['line']) {
- $error = 'Closing brace of class definition must be on new line';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContentBeforeClose');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($stackPtr);
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionNameSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionNameSpacingSniff.php
deleted file mode 100644
index 3d651531..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionNameSpacingSniff.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-/**
- * Ensure there are no blank lines between the names of classes/IDs.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ClassDefinitionNameSpacingSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_CURLY_BRACKET);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Do not check nested style definitions as, for example, in @media style rules.
- $nested = $phpcsFile->findNext(T_OPEN_CURLY_BRACKET, ($stackPtr + 1), $tokens[$stackPtr]['bracket_closer']);
- if ($nested !== false) {
- return;
- }
-
- // Find the first blank line before this opening brace, unless we get
- // to another style definition, comment or the start of the file.
- $endTokens = array(
- T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET,
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_OPEN_TAG => T_OPEN_TAG,
- );
- $endTokens += Tokens::$commentTokens;
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
-
- $foundContent = false;
- $currentLine = $tokens[$prev]['line'];
- for ($i = ($stackPtr - 1); $i >= 0; $i--) {
- if (isset($endTokens[$tokens[$i]['code']]) === true) {
- break;
- }
-
- if ($tokens[$i]['line'] === $currentLine) {
- if ($tokens[$i]['code'] !== T_WHITESPACE) {
- $foundContent = true;
- }
-
- continue;
- }
-
- // We changed lines.
- if ($foundContent === false) {
- // Before we throw an error, make sure we are not looking
- // at a gap before the style definition.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, $i, null, true);
- if ($prev !== false
- && isset($endTokens[$tokens[$prev]['code']]) === false
- ) {
- $error = 'Blank lines are not allowed between class names';
- $phpcsFile->addError($error, ($i + 1), 'BlankLinesFound');
- }
-
- break;
- }
-
- $foundContent = false;
- $currentLine = $tokens[$i]['line'];
- }//end for
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionOpeningBraceSpaceSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionOpeningBraceSpaceSniff.php
deleted file mode 100644
index 4f0b51ac..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ClassDefinitionOpeningBraceSpaceSniff.php
+++ /dev/null
@@ -1,131 +0,0 @@
-<?php
-/**
- * Ensure a single space before, and a newline after, the class opening brace
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ClassDefinitionOpeningBraceSpaceSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_CURLY_BRACKET);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space before opening brace of class definition; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoneBefore');
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
- }
- } else {
- $content = $tokens[($stackPtr - 1)]['content'];
- if ($content !== ' ') {
- if ($tokens[($stackPtr - 1)]['line'] < $tokens[$stackPtr]['line']) {
- $length = 'newline';
- } else {
- $length = strlen($content);
- if ($length === 1) {
- $length = 'tab';
- }
- }
-
- $error = 'Expected 1 space before opening brace of class definition; %s found';
- $data = array($length);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Before', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
- }
- }
- }//end if
-
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 1), null, true);
- if ($next === false) {
- return;
- }
-
- // Check for nested class definitions.
- $nested = false;
- $found = $phpcsFile->findNext(
- T_OPEN_CURLY_BRACKET,
- ($stackPtr + 1),
- $tokens[$stackPtr]['bracket_closer']
- );
-
- if ($found !== false) {
- $nested = true;
- }
-
- if ($tokens[$next]['line'] === $tokens[$stackPtr]['line']) {
- $error = 'Opening brace should be the last content on the line';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContentBefore');
- if ($fix === true) {
- $phpcsFile->fixer->addNewline($stackPtr);
- }
- } else {
- $foundLines = ($tokens[$next]['line'] - $tokens[$stackPtr]['line'] - 1);
- if ($nested === true) {
- if ($foundLines !== 1) {
- $error = 'Expected 1 blank line after opening brace of nesting class definition; %s found';
- $data = array($foundLines);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'AfterNesting', $data);
-
- if ($fix === true) {
- if ($foundLines === 0) {
- $phpcsFile->fixer->addNewline($stackPtr);
- } else {
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($stackPtr + 1); $i < ($next + 1); $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->addNewline($stackPtr);
- $phpcsFile->fixer->endChangeset();
- }
- }
- }//end if
- }//end if
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColonSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColonSpacingSniff.php
deleted file mode 100644
index 91fbc208..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColonSpacingSniff.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-/**
- * Ensure there is no space before a colon and one space after it.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ColonSpacingSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_COLON);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] !== T_STYLE) {
- // The colon is not part of a style definition.
- return;
- }
-
- if ($tokens[$prev]['content'] === 'progid') {
- // Special case for IE filters.
- return;
- }
-
- if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
- $error = 'There must be no space before a colon in a style definition';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Before');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), '');
- }
- }
-
- if ($tokens[($stackPtr + 1)]['code'] === T_SEMICOLON) {
- // Empty style definition, ignore it.
- return;
- }
-
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space after colon in style definition; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoneAfter');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- }
- } else {
- $content = $tokens[($stackPtr + 1)]['content'];
- if (strpos($content, $phpcsFile->eolChar) === false) {
- $length = strlen($content);
- if ($length !== 1) {
- $error = 'Expected 1 space after colon in style definition; %s found';
- $data = array($length);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'After', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
- } else {
- $error = 'Expected 1 space after colon in style definition; newline found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'AfterNewline');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColourDefinitionSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColourDefinitionSniff.php
deleted file mode 100644
index 90de6be8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColourDefinitionSniff.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-/**
- * Ensure colours are defined in upper-case and use shortcuts where possible.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ColourDefinitionSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_COLOUR);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $colour = $tokens[$stackPtr]['content'];
-
- $expected = strtoupper($colour);
- if ($colour !== $expected) {
- $error = 'CSS colours must be defined in uppercase; expected %s but found %s';
- $data = array(
- $expected,
- $colour,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotUpper', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, $expected);
- }
- }
-
- // Now check if shorthand can be used.
- if (strlen($colour) !== 7) {
- return;
- }
-
- if ($colour{1} === $colour{2} && $colour{3} === $colour{4} && $colour{5} === $colour{6}) {
- $expected = '#'.$colour{1}.$colour{3}.$colour{5};
- $error = 'CSS colours must use shorthand if available; expected %s but found %s';
- $data = array(
- $expected,
- $colour,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Shorthand', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, $expected);
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DisallowMultipleStyleDefinitionsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DisallowMultipleStyleDefinitionsSniff.php
deleted file mode 100644
index ce35bf4c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DisallowMultipleStyleDefinitionsSniff.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**
- * Ensure that each style definition is on a line by itself.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowMultipleStyleDefinitionsSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_STYLE);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $next = $phpcsFile->findNext(T_STYLE, ($stackPtr + 1));
- if ($next === false) {
- return;
- }
-
- if ($tokens[$next]['content'] === 'progid') {
- // Special case for IE filters.
- return;
- }
-
- if ($tokens[$next]['line'] === $tokens[$stackPtr]['line']) {
- $error = 'Each style definition must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $next, 'Found');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($next);
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DuplicateClassDefinitionSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DuplicateClassDefinitionSniff.php
deleted file mode 100644
index 727f9701..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DuplicateClassDefinitionSniff.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-/**
- * Check for duplicate class definitions that can be merged into one.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class DuplicateClassDefinitionSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Find the content of each class definition name.
- $classNames = array();
- $next = $phpcsFile->findNext(T_OPEN_CURLY_BRACKET, ($stackPtr + 1));
- if ($next === false) {
- // No class definitions in the file.
- return;
- }
-
- // Save the class names in a "scope",
- // to prevent false positives with @media blocks.
- $scope = 'main';
-
- $find = array(
- T_CLOSE_CURLY_BRACKET,
- T_OPEN_CURLY_BRACKET,
- T_COMMENT,
- T_OPEN_TAG,
- );
-
- while ($next !== false) {
- $prev = $phpcsFile->findPrevious($find, ($next - 1));
-
- // Check if an inner block was closed.
- $beforePrev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($prev - 1), null, true);
- if ($beforePrev !== false
- && $tokens[$beforePrev]['code'] === T_CLOSE_CURLY_BRACKET
- ) {
- $scope = 'main';
- }
-
- // Create a sorted name for the class so we can compare classes
- // even when the individual names are all over the place.
- $name = '';
- for ($i = ($prev + 1); $i < $next; $i++) {
- $name .= $tokens[$i]['content'];
- }
-
- $name = trim($name);
- $name = str_replace("\n", ' ', $name);
- $name = preg_replace('|[\s]+|', ' ', $name);
- $name = str_replace(', ', ',', $name);
-
- $names = explode(',', $name);
- sort($names);
- $name = implode(',', $names);
-
- if ($name{0} === '@') {
- // Media block has its own "scope".
- $scope = $name;
- } else if (isset($classNames[$scope][$name]) === true) {
- $first = $classNames[$scope][$name];
- $error = 'Duplicate class definition found; first defined on line %s';
- $data = array($tokens[$first]['line']);
- $phpcsFile->addError($error, $next, 'Found', $data);
- } else {
- $classNames[$scope][$name] = $next;
- }
-
- $next = $phpcsFile->findNext(T_OPEN_CURLY_BRACKET, ($next + 1));
- }//end while
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DuplicateStyleDefinitionSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DuplicateStyleDefinitionSniff.php
deleted file mode 100644
index d1cb1de0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/DuplicateStyleDefinitionSniff.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/**
- * Check for duplicate style definitions in the same class.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DuplicateStyleDefinitionSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_CURLY_BRACKET);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Find the content of each style definition name.
- $styleNames = array();
-
- $next = $stackPtr;
- $end = $tokens[$stackPtr]['bracket_closer'];
-
- do {
- $next = $phpcsFile->findNext(array(T_STYLE, T_OPEN_CURLY_BRACKET), ($next + 1), $end);
- if ($next === false) {
- // Class definition is empty.
- break;
- }
-
- if ($tokens[$next]['code'] === T_OPEN_CURLY_BRACKET) {
- $next = $tokens[$next]['bracket_closer'];
- continue;
- }
-
- $name = $tokens[$next]['content'];
- if (isset($styleNames[$name]) === true) {
- $first = $styleNames[$name];
- $error = 'Duplicate style definition found; first defined on line %s';
- $data = array($tokens[$first]['line']);
- $phpcsFile->addError($error, $next, 'Found', $data);
- } else {
- $styleNames[$name] = $next;
- }
- } while ($next !== false);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyClassDefinitionSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyClassDefinitionSniff.php
deleted file mode 100644
index aa279f76..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyClassDefinitionSniff.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * Ensure that class definitions are not empty.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class EmptyClassDefinitionSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_CURLY_BRACKET);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 1), null, true);
-
- if ($next === false || $tokens[$next]['code'] === T_CLOSE_CURLY_BRACKET) {
- $error = 'Class definition is empty';
- $phpcsFile->addError($error, $stackPtr, 'Found');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyStyleDefinitionSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyStyleDefinitionSniff.php
deleted file mode 100644
index 4aed2ae8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/EmptyStyleDefinitionSniff.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/**
- * Ensure that style definitions are not empty.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class EmptyStyleDefinitionSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_STYLE);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $next = $phpcsFile->findNext(array(T_WHITESPACE, T_COLON), ($stackPtr + 1), null, true);
-
- if ($next === false || $tokens[$next]['code'] === T_SEMICOLON || $tokens[$next]['line'] !== $tokens[$stackPtr]['line']) {
- $error = 'Style definition is empty';
- $phpcsFile->addError($error, $stackPtr, 'Found');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ForbiddenStylesSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ForbiddenStylesSniff.php
deleted file mode 100644
index 4bfa5ec3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ForbiddenStylesSniff.php
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-/**
- * Bans the use of some styles, such as deprecated or browser-specific styles.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ForbiddenStylesSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
- /**
- * A list of forbidden styles with their alternatives.
- *
- * The value is NULL if no alternative exists. i.e., the
- * function should just not be used.
- *
- * @var array<string, string|null>
- */
- protected $forbiddenStyles = array(
- '-moz-border-radius' => 'border-radius',
- '-webkit-border-radius' => 'border-radius',
- '-moz-border-radius-topleft' => 'border-top-left-radius',
- '-moz-border-radius-topright' => 'border-top-right-radius',
- '-moz-border-radius-bottomright' => 'border-bottom-right-radius',
- '-moz-border-radius-bottomleft' => 'border-bottom-left-radius',
- '-moz-box-shadow' => 'box-shadow',
- '-webkit-box-shadow' => 'box-shadow',
- );
-
- /**
- * A cache of forbidden style names, for faster lookups.
- *
- * @var string[]
- */
- protected $forbiddenStyleNames = array();
-
- /**
- * If true, forbidden styles will be considered regular expressions.
- *
- * @var boolean
- */
- protected $patternMatch = false;
-
- /**
- * If true, an error will be thrown; otherwise a warning.
- *
- * @var boolean
- */
- public $error = true;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- $this->forbiddenStyleNames = array_keys($this->forbiddenStyles);
-
- if ($this->patternMatch === true) {
- foreach ($this->forbiddenStyleNames as $i => $name) {
- $this->forbiddenStyleNames[$i] = '/'.$name.'/i';
- }
- }
-
- return array(T_STYLE);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $style = strtolower($tokens[$stackPtr]['content']);
- $pattern = null;
-
- if ($this->patternMatch === true) {
- $count = 0;
- $pattern = preg_replace(
- $this->forbiddenStyleNames,
- $this->forbiddenStyleNames,
- $style,
- 1,
- $count
- );
-
- if ($count === 0) {
- return;
- }
-
- // Remove the pattern delimiters and modifier.
- $pattern = substr($pattern, 1, -2);
- } else {
- if (in_array($style, $this->forbiddenStyleNames) === false) {
- return;
- }
- }//end if
-
- $this->addError($phpcsFile, $stackPtr, $style, $pattern);
-
- }//end process()
-
-
- /**
- * Generates the error or warning for this sniff.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the forbidden style
- * in the token array.
- * @param string $style The name of the forbidden style.
- * @param string $pattern The pattern used for the match.
- *
- * @return void
- */
- protected function addError($phpcsFile, $stackPtr, $style, $pattern=null)
- {
- $data = array($style);
- $error = 'The use of style %s is ';
- if ($this->error === true) {
- $type = 'Found';
- $error .= 'forbidden';
- } else {
- $type = 'Discouraged';
- $error .= 'discouraged';
- }
-
- if ($pattern === null) {
- $pattern = $style;
- }
-
- if ($this->forbiddenStyles[$pattern] !== null) {
- $data[] = $this->forbiddenStyles[$pattern];
- if ($this->error === true) {
- $fix = $phpcsFile->addFixableError($error.'; use %s instead', $stackPtr, $type.'WithAlternative', $data);
- } else {
- $fix = $phpcsFile->addFixableWarning($error.'; use %s instead', $stackPtr, $type.'WithAlternative', $data);
- }
-
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, $this->forbiddenStyles[$pattern]);
- }
- } else {
- if ($this->error === true) {
- $phpcsFile->addError($error, $stackPtr, $type, $data);
- } else {
- $phpcsFile->addWarning($error, $stackPtr, $type, $data);
- }
- }
-
- }//end addError()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/IndentationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/IndentationSniff.php
deleted file mode 100644
index 550d1ff6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/IndentationSniff.php
+++ /dev/null
@@ -1,141 +0,0 @@
-<?php
-/**
- * Ensures styles are indented 4 spaces.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class IndentationSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $numTokens = (count($tokens) - 2);
- $indentLevel = 0;
- $nestingLevel = 0;
- for ($i = 1; $i < $numTokens; $i++) {
- if ($tokens[$i]['code'] === T_COMMENT) {
- // Don't check the indent of comments.
- continue;
- }
-
- if ($tokens[$i]['code'] === T_OPEN_CURLY_BRACKET) {
- $indentLevel++;
-
- // Check for nested class definitions.
- $found = $phpcsFile->findNext(
- T_OPEN_CURLY_BRACKET,
- ($i + 1),
- $tokens[$i]['bracket_closer']
- );
-
- if ($found !== false) {
- $nestingLevel = $indentLevel;
- }
- }
-
- if (($tokens[$i]['code'] === T_CLOSE_CURLY_BRACKET
- && $tokens[$i]['line'] !== $tokens[($i - 1)]['line'])
- || ($tokens[($i + 1)]['code'] === T_CLOSE_CURLY_BRACKET
- && $tokens[$i]['line'] === $tokens[($i + 1)]['line'])
- ) {
- $indentLevel--;
- if ($indentLevel === 0) {
- $nestingLevel = 0;
- }
- }
-
- if ($tokens[$i]['column'] !== 1
- || $tokens[$i]['code'] === T_OPEN_CURLY_BRACKET
- || $tokens[$i]['code'] === T_CLOSE_CURLY_BRACKET
- ) {
- continue;
- }
-
- // We started a new line, so check indent.
- if ($tokens[$i]['code'] === T_WHITESPACE) {
- $content = str_replace($phpcsFile->eolChar, '', $tokens[$i]['content']);
- $foundIndent = strlen($content);
- } else {
- $foundIndent = 0;
- }
-
- $expectedIndent = ($indentLevel * $this->indent);
- if ($expectedIndent > 0
- && strpos($tokens[$i]['content'], $phpcsFile->eolChar) !== false
- ) {
- if ($nestingLevel !== $indentLevel) {
- $error = 'Blank lines are not allowed in class definitions';
- $fix = $phpcsFile->addFixableError($error, $i, 'BlankLine');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
- }
- } else if ($foundIndent !== $expectedIndent) {
- $error = 'Line indented incorrectly; expected %s spaces, found %s';
- $data = array(
- $expectedIndent,
- $foundIndent,
- );
-
- $fix = $phpcsFile->addFixableError($error, $i, 'Incorrect', $data);
- if ($fix === true) {
- $indent = str_repeat(' ', $expectedIndent);
- if ($foundIndent === 0) {
- $phpcsFile->fixer->addContentBefore($i, $indent);
- } else {
- $phpcsFile->fixer->replaceToken($i, $indent);
- }
- }
- }//end if
- }//end for
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/LowercaseStyleDefinitionSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/LowercaseStyleDefinitionSniff.php
deleted file mode 100644
index 5c5893cb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/LowercaseStyleDefinitionSniff.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-/**
- * Ensure that all style definitions are in lowercase.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LowercaseStyleDefinitionSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_CURLY_BRACKET);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $start = ($stackPtr + 1);
- $end = ($tokens[$stackPtr]['bracket_closer'] - 1);
- $inStyle = null;
-
- for ($i = $start; $i <= $end; $i++) {
- // Skip nested definitions as they are checked individually.
- if ($tokens[$i]['code'] === T_OPEN_CURLY_BRACKET) {
- $i = $tokens[$i]['bracket_closer'];
- continue;
- }
-
- if ($tokens[$i]['code'] === T_STYLE) {
- $inStyle = $tokens[$i]['content'];
- }
-
- if ($tokens[$i]['code'] === T_SEMICOLON) {
- $inStyle = null;
- }
-
- if ($inStyle === 'progid') {
- // Special case for IE filters.
- continue;
- }
-
- if ($tokens[$i]['code'] === T_STYLE
- || ($inStyle !== null
- && $tokens[$i]['code'] === T_STRING)
- ) {
- $expected = strtolower($tokens[$i]['content']);
- if ($expected !== $tokens[$i]['content']) {
- $error = 'Style definitions must be lowercase; expected %s but found %s';
- $data = array(
- $expected,
- $tokens[$i]['content'],
- );
-
- $fix = $phpcsFile->addFixableError($error, $i, 'FoundUpper', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($i, $expected);
- }
- }
- }
- }//end for
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/MissingColonSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/MissingColonSniff.php
deleted file mode 100644
index 4c815d1a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/MissingColonSniff.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * Ensure that all style definitions have a colon.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class MissingColonSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_CURLY_BRACKET);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $lastLine = $tokens[$stackPtr]['line'];
- $end = $tokens[$stackPtr]['bracket_closer'];
- $endLine = $tokens[$end]['line'];
-
- // Do not check nested style definitions as, for example, in @media style rules.
- $nested = $phpcsFile->findNext(T_OPEN_CURLY_BRACKET, ($stackPtr + 1), $end);
- if ($nested !== false) {
- return;
- }
-
- $foundColon = false;
- $foundString = false;
- for ($i = ($stackPtr + 1); $i <= $end; $i++) {
- if ($tokens[$i]['line'] !== $lastLine) {
- // We changed lines.
- if ($foundColon === false && $foundString !== false) {
- // We didn't find a colon on the previous line.
- $error = 'No style definition found on line; check for missing colon';
- $phpcsFile->addError($error, $foundString, 'Found');
- }
-
- $foundColon = false;
- $foundString = false;
- $lastLine = $tokens[$i]['line'];
- }
-
- if ($tokens[$i]['code'] === T_STRING) {
- $foundString = $i;
- } else if ($tokens[$i]['code'] === T_COLON) {
- $foundColon = $i;
- }
- }//end for
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/NamedColoursSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/NamedColoursSniff.php
deleted file mode 100644
index 90c28155..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/NamedColoursSniff.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-/**
- * Ensure colour names are not used.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class NamedColoursSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * A list of named colours.
- *
- * This is the list of standard colours defined in the CSS spec.
- *
- * @var array
- */
- protected $colourNames = array(
- 'aqua' => 'aqua',
- 'black' => 'black',
- 'blue' => 'blue',
- 'fuchsia' => 'fuchsia',
- 'gray' => 'gray',
- 'green' => 'green',
- 'lime' => 'lime',
- 'maroon' => 'maroon',
- 'navy' => 'navy',
- 'olive' => 'olive',
- 'orange' => 'orange',
- 'purple' => 'purple',
- 'red' => 'red',
- 'silver' => 'silver',
- 'teal' => 'teal',
- 'white' => 'white',
- 'yellow' => 'yellow',
- );
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_STRING);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[($stackPtr - 1)]['code'] === T_HASH
- || $tokens[($stackPtr - 1)]['code'] === T_STRING_CONCAT
- ) {
- // Class name.
- return;
- }
-
- if (isset($this->colourNames[strtolower($tokens[$stackPtr]['content'])]) === true) {
- $error = 'Named colours are forbidden; use hex, rgb, or rgba values instead';
- $phpcsFile->addError($error, $stackPtr, 'Forbidden');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/OpacitySniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/OpacitySniff.php
deleted file mode 100644
index 70ea3f88..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/OpacitySniff.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-/**
- * Ensure that opacity values start with a 0 if it is not a whole number.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class OpacitySniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_STYLE);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['content'] !== 'opacity') {
- return;
- }
-
- $next = $phpcsFile->findNext(array(T_COLON, T_WHITESPACE), ($stackPtr + 1), null, true);
-
- if ($next === false
- || ($tokens[$next]['code'] !== T_DNUMBER
- && $tokens[$next]['code'] !== T_LNUMBER)
- ) {
- return;
- }
-
- $value = $tokens[$next]['content'];
- if ($tokens[$next]['code'] === T_LNUMBER) {
- if ($value !== '0' && $value !== '1') {
- $error = 'Opacity values must be between 0 and 1';
- $phpcsFile->addError($error, $next, 'Invalid');
- }
- } else {
- if (strlen($value) > 3) {
- $error = 'Opacity values must have a single value after the decimal point';
- $phpcsFile->addError($error, $next, 'DecimalPrecision');
- } else if ($value === '0.0' || $value === '1.0') {
- $error = 'Opacity value does not require decimal point; use %s instead';
- $data = array($value{0});
- $fix = $phpcsFile->addFixableError($error, $next, 'PointNotRequired', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($next, $value{0});
- }
- } else if ($value{0} === '.') {
- $error = 'Opacity values must not start with a decimal point; use 0%s instead';
- $data = array($value);
- $fix = $phpcsFile->addFixableError($error, $next, 'StartWithPoint', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($next, '0'.$value);
- }
- } else if ($value{0} !== '0') {
- $error = 'Opacity values must be between 0 and 1';
- $phpcsFile->addError($error, $next, 'Invalid');
- }//end if
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/SemicolonSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/SemicolonSpacingSniff.php
deleted file mode 100644
index 3b7b8248..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/SemicolonSpacingSniff.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**
- * Ensure each style definition has a semi-colon and it is spaced correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class SemicolonSpacingSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_STYLE);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $semicolon = $phpcsFile->findNext(T_SEMICOLON, ($stackPtr + 1));
- if ($semicolon === false || $tokens[$semicolon]['line'] !== $tokens[$stackPtr]['line']) {
- $error = 'Style definitions must end with a semicolon';
- $phpcsFile->addError($error, $stackPtr, 'NotAtEnd');
- return;
- }
-
- if ($tokens[($semicolon - 1)]['code'] === T_WHITESPACE) {
- $length = strlen($tokens[($semicolon - 1)]['content']);
- $error = 'Expected 0 spaces before semicolon in style definition; %s found';
- $data = array($length);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceFound', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($semicolon - 1), '');
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ShorthandSizeSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ShorthandSizeSniff.php
deleted file mode 100644
index acec0c4a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ShorthandSizeSniff.php
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-/**
- * Ensure sizes are defined using shorthand notation where possible.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ShorthandSizeSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('CSS');
-
- /**
- * A list of styles that we shouldn't check.
- *
- * These have values that looks like sizes, but are not.
- *
- * @var array
- */
- protected $excludeStyles = array(
- 'background-position' => 'background-position',
- 'box-shadow' => 'box-shadow',
- 'transform-origin' => 'transform-origin',
- '-webkit-transform-origin' => '-webkit-transform-origin',
- '-ms-transform-origin' => '-ms-transform-origin',
- );
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_STYLE);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Some styles look like shorthand but are not actually a set of 4 sizes.
- $style = strtolower($tokens[$stackPtr]['content']);
- if (isset($this->excludeStyles[$style]) === true) {
- return;
- }
-
- // Get the whole style content.
- $end = $phpcsFile->findNext(T_SEMICOLON, ($stackPtr + 1));
- $origContent = $phpcsFile->getTokensAsString(($stackPtr + 1), ($end - $stackPtr - 1));
- $origContent = trim($origContent, ': ');
-
- // Account for a !important annotation.
- $content = $origContent;
- if (substr($content, -10) === '!important') {
- $content = substr($content, 0, -10);
- $content = trim($content);
- }
-
- // Check if this style value is a set of numbers with optional prefixes.
- $content = preg_replace('/\s+/', ' ', $content);
- $values = array();
- $num = preg_match_all(
- '/([0-9]+)([a-zA-Z]{2}\s+|%\s+|\s+)/',
- $content.' ',
- $values,
- PREG_SET_ORDER
- );
-
- // Only interested in styles that have multiple sizes defined.
- if ($num < 2) {
- return;
- }
-
- // Rebuild the content we matched to ensure we got everything.
- $matched = '';
- foreach ($values as $value) {
- $matched .= $value[0];
- }
-
- if ($content !== trim($matched)) {
- return;
- }
-
- if ($num === 3) {
- $expected = trim($content.' '.$values[1][1].$values[1][2]);
- $error = 'Shorthand syntax not allowed here; use %s instead';
- $data = array($expected);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotAllowed', $data);
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- if (substr($origContent, -10) === '!important') {
- $expected .= ' !important';
- }
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 2), null, true);
- $phpcsFile->fixer->replaceToken($next, $expected);
- for ($next++; $next < $end; $next++) {
- $phpcsFile->fixer->replaceToken($next, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- return;
- }//end if
-
- if ($num === 2) {
- if ($values[0][0] !== $values[1][0]) {
- // Both values are different, so it is already shorthand.
- return;
- }
- } else if ($values[0][0] !== $values[2][0] || $values[1][0] !== $values[3][0]) {
- // Can't shorthand this.
- return;
- }
-
- if ($values[0][0] === $values[1][0]) {
- // All values are the same.
- $expected = $values[0][0];
- } else {
- $expected = $values[0][0].' '.$values[1][0];
- }
-
- $expected = preg_replace('/\s+/', ' ', trim($expected));
-
- $error = 'Size definitions must use shorthand if available; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $content,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotUsed', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- if (substr($origContent, -10) === '!important') {
- $expected .= ' !important';
- }
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 2), null, true);
- $phpcsFile->fixer->replaceToken($next, $expected);
- for ($next++; $next < $end; $next++) {
- $phpcsFile->fixer->replaceToken($next, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassDeclarationSniff.php
deleted file mode 100644
index 8bf54c03..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassDeclarationSniff.php
+++ /dev/null
@@ -1,199 +0,0 @@
-<?php
-/**
- * Checks the declaration of the class and its inheritance is correct.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes;
-
-use PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes\ClassDeclarationSniff as PSR2ClassDeclarationSniff;
-use PHP_CodeSniffer\Files\File;
-
-class ClassDeclarationSniff extends PSR2ClassDeclarationSniff
-{
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- // We want all the errors from the PSR2 standard, plus some of our own.
- parent::process($phpcsFile, $stackPtr);
-
- $tokens = $phpcsFile->getTokens();
-
- // Check that this is the only class or interface in the file.
- $nextClass = $phpcsFile->findNext(array(T_CLASS, T_INTERFACE), ($stackPtr + 1));
- if ($nextClass !== false) {
- // We have another, so an error is thrown.
- $error = 'Only one interface or class is allowed in a file';
- $phpcsFile->addError($error, $nextClass, 'MultipleClasses');
- }
-
- }//end process()
-
-
- /**
- * Processes the opening section of a class declaration.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function processOpen(File $phpcsFile, $stackPtr)
- {
- parent::processOpen($phpcsFile, $stackPtr);
-
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
- $prevContent = $tokens[($stackPtr - 1)]['content'];
- if ($prevContent !== $phpcsFile->eolChar) {
- $blankSpace = substr($prevContent, strpos($prevContent, $phpcsFile->eolChar));
- $spaces = strlen($blankSpace);
-
- if ($tokens[($stackPtr - 2)]['code'] !== T_ABSTRACT
- && $tokens[($stackPtr - 2)]['code'] !== T_FINAL
- ) {
- if ($spaces !== 0) {
- $type = strtolower($tokens[$stackPtr]['content']);
- $error = 'Expected 0 spaces before %s keyword; %s found';
- $data = array(
- $type,
- $spaces,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeKeyword', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), '');
- }
- }
- }
- }//end if
- }//end if
-
- }//end processOpen()
-
-
- /**
- * Processes the closing section of a class declaration.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function processClose(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- return;
- }
-
- $closeBrace = $tokens[$stackPtr]['scope_closer'];
-
- // Check that the closing brace has one blank line after it.
- for ($nextContent = ($closeBrace + 1); $nextContent < $phpcsFile->numTokens; $nextContent++) {
- // Ignore comments on the same lines as the brace.
- if ($tokens[$nextContent]['line'] === $tokens[$closeBrace]['line']
- && ($tokens[$nextContent]['code'] === T_WHITESPACE
- || $tokens[$nextContent]['code'] === T_COMMENT)
- ) {
- continue;
- }
-
- if ($tokens[$nextContent]['code'] !== T_WHITESPACE) {
- break;
- }
- }
-
- if ($nextContent === $phpcsFile->numTokens) {
- // Ignore the line check as this is the very end of the file.
- $difference = 1;
- } else {
- $difference = ($tokens[$nextContent]['line'] - $tokens[$closeBrace]['line'] - 1);
- }
-
- $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($closeBrace - 1), $stackPtr, true);
-
- if ($difference === -1
- || $tokens[$lastContent]['line'] === $tokens[$closeBrace]['line']
- ) {
- $error = 'Closing %s brace must be on a line by itself';
- $data = array($tokens[$stackPtr]['content']);
- $fix = $phpcsFile->addFixableError($error, $closeBrace, 'CloseBraceSameLine', $data);
- if ($fix === true) {
- if ($difference === -1) {
- $phpcsFile->fixer->addNewlineBefore($nextContent);
- }
-
- if ($tokens[$lastContent]['line'] === $tokens[$closeBrace]['line']) {
- $phpcsFile->fixer->addNewlineBefore($closeBrace);
- }
- }
- } else if ($tokens[($closeBrace - 1)]['code'] === T_WHITESPACE) {
- $prevContent = $tokens[($closeBrace - 1)]['content'];
- if ($prevContent !== $phpcsFile->eolChar) {
- $blankSpace = substr($prevContent, strpos($prevContent, $phpcsFile->eolChar));
- $spaces = strlen($blankSpace);
- if ($spaces !== 0) {
- if ($tokens[($closeBrace - 1)]['line'] !== $tokens[$closeBrace]['line']) {
- $error = 'Expected 0 spaces before closing brace; newline found';
- $phpcsFile->addError($error, $closeBrace, 'NewLineBeforeCloseBrace');
- } else {
- $error = 'Expected 0 spaces before closing brace; %s found';
- $data = array($spaces);
- $fix = $phpcsFile->addFixableError($error, $closeBrace, 'SpaceBeforeCloseBrace', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($closeBrace - 1), '');
- }
- }
- }
- }
- }//end if
-
- if ($difference !== -1 && $difference !== 1) {
- $error = 'Closing brace of a %s must be followed by a single blank line; found %s';
- $data = array(
- $tokens[$stackPtr]['content'],
- $difference,
- );
- $fix = $phpcsFile->addFixableError($error, $closeBrace, 'NewlinesAfterCloseBrace', $data);
- if ($fix === true) {
- if ($difference === 0) {
- $first = $phpcsFile->findFirstOnLine(array(), $nextContent, true);
- $phpcsFile->fixer->addNewlineBefore($first);
- } else {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($closeBrace + 1); $i < $nextContent; $i++) {
- if ($tokens[$i]['line'] <= ($tokens[$closeBrace]['line'] + 1)) {
- continue;
- } else if ($tokens[$i]['line'] === $tokens[$nextContent]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }
- }//end if
-
- }//end processClose()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassFileNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassFileNameSniff.php
deleted file mode 100644
index ef1e8f47..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ClassFileNameSniff.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
- * Tests that the file name and the name of the class contained within the file match.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ClassFileNameSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_CLASS,
- T_INTERFACE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $fullPath = basename($phpcsFile->getFilename());
- $fileName = substr($fullPath, 0, strrpos($fullPath, '.'));
- if ($fileName === '') {
- // No filename probably means STDIN, so we can't do this check.
- return;
- }
-
- $tokens = $phpcsFile->getTokens();
- $decName = $phpcsFile->findNext(T_STRING, $stackPtr);
-
- if ($tokens[$decName]['content'] !== $fileName) {
- $error = '%s name doesn\'t match filename; expected "%s %s"';
- $data = array(
- ucfirst($tokens[$stackPtr]['content']),
- $tokens[$stackPtr]['content'],
- $fileName,
- );
- $phpcsFile->addError($error, $stackPtr, 'NoMatch', $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/DuplicatePropertySniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/DuplicatePropertySniff.php
deleted file mode 100644
index fc55f78e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/DuplicatePropertySniff.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-/**
- * Ensures JS classes don't contain duplicate property names.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DuplicatePropertySniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OBJECT);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being processed.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $properties = array();
- $wantedTokens = array(
- T_PROPERTY,
- T_OBJECT,
- );
-
- $next = $phpcsFile->findNext($wantedTokens, ($stackPtr + 1), $tokens[$stackPtr]['bracket_closer']);
- while ($next !== false && $next < $tokens[$stackPtr]['bracket_closer']) {
- if ($tokens[$next]['code'] === T_OBJECT) {
- // Skip nested objects.
- $next = $tokens[$next]['bracket_closer'];
- } else {
- $propName = $tokens[$next]['content'];
- if (isset($properties[$propName]) === true) {
- $error = 'Duplicate property definition found for "%s"; previously defined on line %s';
- $data = array(
- $propName,
- $tokens[$properties[$propName]]['line'],
- );
- $phpcsFile->addError($error, $next, 'Found', $data);
- }
-
- $properties[$propName] = $next;
- }//end if
-
- $next = $phpcsFile->findNext($wantedTokens, ($next + 1), $tokens[$stackPtr]['bracket_closer']);
- }//end while
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/LowercaseClassKeywordsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/LowercaseClassKeywordsSniff.php
deleted file mode 100644
index 20eedc40..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/LowercaseClassKeywordsSniff.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/**
- * Ensures all class keywords are lowercase.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LowercaseClassKeywordsSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- T_EXTENDS,
- T_IMPLEMENTS,
- T_ABSTRACT,
- T_FINAL,
- T_VAR,
- T_CONST,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $content = $tokens[$stackPtr]['content'];
- if ($content !== strtolower($content)) {
- $error = '%s keyword must be lowercase; expected "%s" but found "%s"';
- $data = array(
- strtoupper($content),
- strtolower($content),
- $content,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'FoundUppercase', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, strtolower($content));
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/SelfMemberReferenceSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/SelfMemberReferenceSniff.php
deleted file mode 100644
index b012f41e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/SelfMemberReferenceSniff.php
+++ /dev/null
@@ -1,194 +0,0 @@
-<?php
-/**
- * Tests self member references.
- *
- * Verifies that :
- * - self:: is used instead of Self::
- * - self:: is used for local static member reference
- * - self:: is used instead of self ::
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes;
-
-use PHP_CodeSniffer\Sniffs\AbstractScopeSniff;
-use PHP_CodeSniffer\Files\File;
-
-class SelfMemberReferenceSniff extends AbstractScopeSniff
-{
-
-
- /**
- * Constructs a Squiz_Sniffs_Classes_SelfMemberReferenceSniff.
- */
- public function __construct()
- {
- parent::__construct(array(T_CLASS), array(T_DOUBLE_COLON));
-
- }//end __construct()
-
-
- /**
- * Processes the function tokens within the class.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- * @param int $currScope The current scope opener token.
- *
- * @return void
- */
- protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- $tokens = $phpcsFile->getTokens();
-
- $calledClassName = ($stackPtr - 1);
- if ($tokens[$calledClassName]['code'] === T_SELF) {
- if ($tokens[$calledClassName]['content'] !== 'self') {
- $error = 'Must use "self::" for local static member reference; found "%s::"';
- $data = array($tokens[$calledClassName]['content']);
- $fix = $phpcsFile->addFixableError($error, $calledClassName, 'IncorrectCase', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($calledClassName, 'self');
- }
-
- return;
- }
- } else if ($tokens[$calledClassName]['code'] === T_STRING) {
- // If the class is called with a namespace prefix, build fully qualified
- // namespace calls for both current scope class and requested class.
- if ($tokens[($calledClassName - 1)]['code'] === T_NS_SEPARATOR) {
- $declarationName = $this->getDeclarationNameWithNamespace($tokens, $calledClassName);
- $declarationName = substr($declarationName, 1);
- $fullQualifiedClassName = $this->getNamespaceOfScope($phpcsFile, $currScope);
- if ($fullQualifiedClassName === '\\') {
- $fullQualifiedClassName = '';
- } else {
- $fullQualifiedClassName .= '\\';
- }
-
- $fullQualifiedClassName .= $phpcsFile->getDeclarationName($currScope);
- } else {
- $declarationName = $phpcsFile->getDeclarationName($currScope);
- $fullQualifiedClassName = $tokens[$calledClassName]['content'];
- }
-
- if ($declarationName === $fullQualifiedClassName) {
- // Class name is the same as the current class, which is not allowed
- // except if being used inside a closure.
- if ($phpcsFile->hasCondition($stackPtr, T_CLOSURE) === false) {
- $error = 'Must use "self::" for local static member reference';
- $fix = $phpcsFile->addFixableError($error, $calledClassName, 'NotUsed');
-
- if ($fix === true) {
- $prev = $phpcsFile->findPrevious(array(T_NS_SEPARATOR, T_STRING), ($stackPtr - 1), null, true);
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prev + 1); $i < $stackPtr; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->replaceToken($stackPtr, 'self::');
- $phpcsFile->fixer->endChangeset();
- }
-
- return;
- }
- }//end if
- }//end if
-
- if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
- $found = strlen($tokens[($stackPtr - 1)]['content']);
- $error = 'Expected 0 spaces before double colon; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $calledClassName, 'SpaceBefore', $data);
-
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), '');
- }
- }
-
- if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
- $found = strlen($tokens[($stackPtr + 1)]['content']);
- $error = 'Expected 0 spaces after double colon; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $calledClassName, 'SpaceAfter', $data);
-
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
- }
- }
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes a token that is found within the scope that this test is
- * listening to.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position in the stack where this
- * token was found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
-
- }//end processTokenOutsideScope()
-
-
- /**
- * Returns the declaration names for classes/interfaces/functions with a namespace.
- *
- * @param array $tokens Token stack for this file
- * @param int $stackPtr The position where the namespace building will start.
- *
- * @return string
- */
- protected function getDeclarationNameWithNamespace(array $tokens, $stackPtr)
- {
- $nameParts = array();
- $currentPointer = $stackPtr;
- while ($tokens[$currentPointer]['code'] === T_NS_SEPARATOR
- || $tokens[$currentPointer]['code'] === T_STRING
- ) {
- $nameParts[] = $tokens[$currentPointer]['content'];
- $currentPointer--;
- }
-
- $nameParts = array_reverse($nameParts);
- return implode('', $nameParts);
-
- }//end getDeclarationNameWithNamespace()
-
-
- /**
- * Returns the namespace declaration of a file.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the search for the
- * namespace declaration will start.
- *
- * @return string
- */
- protected function getNamespaceOfScope(File $phpcsFile, $stackPtr)
- {
- $namespace = '\\';
- $namespaceDeclaration = $phpcsFile->findPrevious(T_NAMESPACE, $stackPtr);
-
- if ($namespaceDeclaration !== false) {
- $endOfNamespaceDeclaration = $phpcsFile->findNext(T_SEMICOLON, $namespaceDeclaration);
- $namespace = $this->getDeclarationNameWithNamespace(
- $phpcsFile->getTokens(),
- ($endOfNamespaceDeclaration - 1)
- );
- }
-
- return $namespace;
-
- }//end getNamespaceOfScope()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ValidClassNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ValidClassNameSniff.php
deleted file mode 100644
index 53fce265..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Classes/ValidClassNameSniff.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * Ensures classes are in camel caps, and the first letter is capitalised.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Common;
-
-class ValidClassNameSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being processed.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- $error = 'Possible parse error: %s missing opening or closing brace';
- $data = array($tokens[$stackPtr]['content']);
- $phpcsFile->addWarning($error, $stackPtr, 'MissingBrace', $data);
- return;
- }
-
- // Determine the name of the class or interface. Note that we cannot
- // simply look for the first T_STRING because a class name
- // starting with the number will be multiple tokens.
- $opener = $tokens[$stackPtr]['scope_opener'];
- $nameStart = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), $opener, true);
- $nameEnd = $phpcsFile->findNext(T_WHITESPACE, $nameStart, $opener);
- if ($nameEnd === false) {
- $name = $tokens[$nameStart]['content'];
- } else {
- $name = trim($phpcsFile->getTokensAsString($nameStart, ($nameEnd - $nameStart)));
- }
-
- // Check for camel caps format.
- $valid = Common::isCamelCaps($name, true, true, false);
- if ($valid === false) {
- $type = ucfirst($tokens[$stackPtr]['content']);
- $error = '%s name "%s" is not in camel caps format';
- $data = array(
- $type,
- $name,
- );
- $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $data);
- $phpcsFile->recordMetric($stackPtr, 'CamelCase class name', 'no');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'CamelCase class name', 'yes');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/BlockCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/BlockCommentSniff.php
deleted file mode 100644
index 83c4c402..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/BlockCommentSniff.php
+++ /dev/null
@@ -1,342 +0,0 @@
-<?php
-/**
- * Verifies that block comments are used appropriately.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class BlockCommentSniff implements Sniff
-{
-
- /**
- * The --tab-width CLI value that is being used.
- *
- * @var integer
- */
- private $tabWidth = null;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_COMMENT,
- T_DOC_COMMENT_OPEN_TAG,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- if ($this->tabWidth === null) {
- if (isset($phpcsFile->config->tabWidth) === false || $phpcsFile->config->tabWidth === 0) {
- // We have no idea how wide tabs are, so assume 4 spaces for fixing.
- $this->tabWidth = 4;
- } else {
- $this->tabWidth = $phpcsFile->config->tabWidth;
- }
- }
-
- $tokens = $phpcsFile->getTokens();
-
- // If it's an inline comment, return.
- if (substr($tokens[$stackPtr]['content'], 0, 2) !== '/*') {
- return;
- }
-
- // If this is a function/class/interface doc block comment, skip it.
- // We are only interested in inline doc block comments.
- if ($tokens[$stackPtr]['code'] === T_DOC_COMMENT_OPEN_TAG) {
- $nextToken = $phpcsFile->findNext(Tokens::$emptyTokens, ($stackPtr + 1), null, true);
- $ignore = array(
- T_CLASS => true,
- T_INTERFACE => true,
- T_TRAIT => true,
- T_FUNCTION => true,
- T_PUBLIC => true,
- T_PRIVATE => true,
- T_FINAL => true,
- T_PROTECTED => true,
- T_STATIC => true,
- T_ABSTRACT => true,
- T_CONST => true,
- T_VAR => true,
- );
- if (isset($ignore[$tokens[$nextToken]['code']]) === true) {
- return;
- }
-
- $prevToken = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if ($tokens[$prevToken]['code'] === T_OPEN_TAG) {
- return;
- }
-
- $error = 'Block comments must be started with /*';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'WrongStart');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, '/*');
- }
-
- $end = $tokens[$stackPtr]['comment_closer'];
- if ($tokens[$end]['content'] !== '*/') {
- $error = 'Block comments must be ended with */';
- $fix = $phpcsFile->addFixableError($error, $end, 'WrongEnd');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($end, '*/');
- }
- }
-
- return;
- }//end if
-
- $commentLines = array($stackPtr);
- $nextComment = $stackPtr;
- $lastLine = $tokens[$stackPtr]['line'];
- $commentString = $tokens[$stackPtr]['content'];
-
- // Construct the comment into an array.
- while (($nextComment = $phpcsFile->findNext(T_WHITESPACE, ($nextComment + 1), null, true)) !== false) {
- if ($tokens[$nextComment]['code'] !== $tokens[$stackPtr]['code']) {
- // Found the next bit of code.
- break;
- }
-
- if (($tokens[$nextComment]['line'] - 1) !== $lastLine) {
- // Not part of the block.
- break;
- }
-
- $lastLine = $tokens[$nextComment]['line'];
- $commentLines[] = $nextComment;
- $commentString .= $tokens[$nextComment]['content'];
- if ($tokens[$nextComment]['code'] === T_DOC_COMMENT_CLOSE_TAG) {
- break;
- }
- }
-
- $commentText = str_replace($phpcsFile->eolChar, '', $commentString);
- $commentText = trim($commentText, '/* ');
- if ($commentText === '') {
- $error = 'Empty block comment not allowed';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Empty');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($stackPtr, '');
- $lastToken = array_pop($commentLines);
- for ($i = ($stackPtr + 1); $i <= $lastToken; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- return;
- }
-
- if (count($commentLines) === 1) {
- $error = 'Single line block comment not allowed; use inline ("// text") comment instead';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SingleLine');
- if ($fix === true) {
- $comment = '// '.$commentText.$phpcsFile->eolChar;
- $phpcsFile->fixer->replaceToken($stackPtr, $comment);
- }
-
- return;
- }
-
- $content = trim($tokens[$stackPtr]['content']);
- if ($content !== '/*' && $content !== '/**') {
- $error = 'Block comment text must start on a new line';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoNewLine');
- if ($fix === true) {
- $indent = '';
- if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
- if (isset($tokens[($stackPtr - 1)]['orig_content']) === true) {
- $indent = $tokens[($stackPtr - 1)]['orig_content'];
- } else {
- $indent = $tokens[($stackPtr - 1)]['content'];
- }
- }
-
- $comment = preg_replace(
- '/^(\s*\/\*\*?)/',
- '$1'.$phpcsFile->eolChar.$indent,
- $tokens[$stackPtr]['content'],
- 1
- );
- $phpcsFile->fixer->replaceToken($stackPtr, $comment);
- }
-
- return;
- }//end if
-
- $starColumn = ($tokens[$stackPtr]['column'] + 3);
-
- // Make sure first line isn't blank.
- if (trim($tokens[$commentLines[1]]['content']) === '') {
- $error = 'Empty line not allowed at start of comment';
- $fix = $phpcsFile->addFixableError($error, $commentLines[1], 'HasEmptyLine');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($commentLines[1], '');
- }
- } else {
- // Check indentation of first line.
- $content = $tokens[$commentLines[1]]['content'];
- $commentText = ltrim($content);
- $leadingSpace = (strlen($content) - strlen($commentText));
- if ($leadingSpace !== $starColumn) {
- $expected = $starColumn.' space';
- if ($starColumn !== 1) {
- $expected .= 's';
- }
-
- $data = array(
- $expected,
- $leadingSpace,
- );
-
- $error = 'First line of comment not aligned correctly; expected %s but found %s';
- $fix = $phpcsFile->addFixableError($error, $commentLines[1], 'FirstLineIndent', $data);
- if ($fix === true) {
- if (isset($tokens[$commentLines[1]]['orig_content']) === true
- && $tokens[$commentLines[1]]['orig_content'][0] === "\t"
- ) {
- // Line is indented using tabs.
- $padding = str_repeat("\t", floor($starColumn / $this->tabWidth));
- } else {
- $padding = str_repeat(' ', $starColumn);
- }
-
- $phpcsFile->fixer->replaceToken($commentLines[1], $padding.ltrim($content));
- }
- }//end if
-
- if (preg_match('/^\p{Ll}/u', $commentText) === 1) {
- $error = 'Block comments must start with a capital letter';
- $phpcsFile->addError($error, $commentLines[1], 'NoCapital');
- }
- }//end if
-
- // Check that each line of the comment is indented past the star.
- foreach ($commentLines as $line) {
- $leadingSpace = (strlen($tokens[$line]['content']) - strlen(ltrim($tokens[$line]['content'])));
- // First and last lines (comment opener and closer) are handled separately.
- if ($line === $commentLines[(count($commentLines) - 1)] || $line === $commentLines[0]) {
- continue;
- }
-
- // First comment line was handled above.
- if ($line === $commentLines[1]) {
- continue;
- }
-
- // If it's empty, continue.
- if (trim($tokens[$line]['content']) === '') {
- continue;
- }
-
- if ($leadingSpace < $starColumn) {
- $expected = $starColumn.' space';
- if ($starColumn !== 1) {
- $expected .= 's';
- }
-
- $data = array(
- $expected,
- $leadingSpace,
- );
-
- $error = 'Comment line indented incorrectly; expected at least %s but found %s';
- $fix = $phpcsFile->addFixableError($error, $line, 'LineIndent', $data);
- if ($fix === true) {
- if (isset($tokens[$line]['orig_content']) === true
- && $tokens[$line]['orig_content'][0] === "\t"
- ) {
- // Line is indented using tabs.
- $padding = str_repeat("\t", floor($starColumn / $this->tabWidth));
- } else {
- $padding = str_repeat(' ', $starColumn);
- }
-
- $phpcsFile->fixer->replaceToken($line, $padding.ltrim($tokens[$line]['content']));
- }
- }//end if
- }//end foreach
-
- // Finally, test the last line is correct.
- $lastIndex = (count($commentLines) - 1);
- $content = trim($tokens[$commentLines[$lastIndex]]['content']);
- if ($content !== '*/' && $content !== '**/') {
- $error = 'Comment closer must be on a new line';
- $phpcsFile->addError($error, $commentLines[$lastIndex], 'CloserSameLine');
- } else {
- $content = $tokens[$commentLines[$lastIndex]]['content'];
- $commentText = ltrim($content);
- $leadingSpace = (strlen($content) - strlen($commentText));
- if ($leadingSpace !== ($tokens[$stackPtr]['column'] - 1)) {
- $expected = ($tokens[$stackPtr]['column'] - 1);
- if ($expected === 1) {
- $expected .= ' space';
- } else {
- $expected .= ' spaces';
- }
-
- $data = array(
- $expected,
- $leadingSpace,
- );
-
- $error = 'Last line of comment aligned incorrectly; expected %s but found %s';
- $phpcsFile->addError($error, $commentLines[$lastIndex], 'LastLineIndent', $data);
- }
- }//end if
-
- // Check that the lines before and after this comment are blank.
- $contentBefore = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if (isset($tokens[$contentBefore]['scope_closer']) === true
- && $tokens[$contentBefore]['scope_opener'] === $contentBefore
- ) {
- if (($tokens[$stackPtr]['line'] - $tokens[$contentBefore]['line']) !== 1) {
- $error = 'Empty line not required before block comment';
- $phpcsFile->addError($error, $stackPtr, 'HasEmptyLineBefore');
- }
- } else {
- if (($tokens[$stackPtr]['line'] - $tokens[$contentBefore]['line']) < 2) {
- $error = 'Empty line required before block comment';
- $phpcsFile->addError($error, $stackPtr, 'NoEmptyLineBefore');
- }
- }
-
- $commentCloser = $commentLines[$lastIndex];
- $contentAfter = $phpcsFile->findNext(T_WHITESPACE, ($commentCloser + 1), null, true);
- if ($contentAfter !== false && ($tokens[$contentAfter]['line'] - $tokens[$commentCloser]['line']) < 2) {
- $error = 'Empty line required after block comment';
- $phpcsFile->addError($error, $commentCloser, 'NoEmptyLineAfter');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/ClassCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/ClassCommentSniff.php
deleted file mode 100644
index 4a5f5267..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/ClassCommentSniff.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * Parses and verifies the class doc comment.
- *
- * Verifies that :
- * <ul>
- * <li>A class doc comment exists.</li>
- * <li>The comment uses the correct docblock style.</li>
- * <li>There are no blank lines after the class comment.</li>
- * <li>No tags are used in the docblock.</li>
- * </ul>
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ClassCommentSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_CLASS);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $find = Tokens::$methodPrefixes;
- $find[] = T_WHITESPACE;
-
- $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true);
- if ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
- && $tokens[$commentEnd]['code'] !== T_COMMENT
- ) {
- $phpcsFile->addError('Missing class doc comment', $stackPtr, 'Missing');
- $phpcsFile->recordMetric($stackPtr, 'Class has doc comment', 'no');
- return;
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Class has doc comment', 'yes');
-
- if ($tokens[$commentEnd]['code'] === T_COMMENT) {
- $phpcsFile->addError('You must use "/**" style comments for a class comment', $stackPtr, 'WrongStyle');
- return;
- }
-
- if ($tokens[$commentEnd]['line'] !== ($tokens[$stackPtr]['line'] - 1)) {
- $error = 'There must be no blank lines after the class comment';
- $phpcsFile->addError($error, $commentEnd, 'SpacingAfter');
- }
-
- $commentStart = $tokens[$commentEnd]['comment_opener'];
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- $error = '%s tag is not allowed in class comment';
- $data = array($tokens[$tag]['content']);
- $phpcsFile->addWarning($error, $tag, 'TagNotAllowed', $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/ClosingDeclarationCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/ClosingDeclarationCommentSniff.php
deleted file mode 100644
index 6555270f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/ClosingDeclarationCommentSniff.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-/**
- * Checks the //end ... comments on classes, interfaces and functions.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ClosingDeclarationCommentSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_CLASS,
- T_INTERFACE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens..
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['code'] === T_FUNCTION) {
- $methodProps = $phpcsFile->getMethodProperties($stackPtr);
-
- // Abstract methods do not require a closing comment.
- if ($methodProps['is_abstract'] === true) {
- return;
- }
-
- // If this function is in an interface then we don't require
- // a closing comment.
- if ($phpcsFile->hasCondition($stackPtr, T_INTERFACE) === true) {
- return;
- }
-
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- $error = 'Possible parse error: non-abstract method defined as abstract';
- $phpcsFile->addWarning($error, $stackPtr, 'Abstract');
- return;
- }
-
- $decName = $phpcsFile->getDeclarationName($stackPtr);
- $comment = '//end '.$decName.'()';
- } else if ($tokens[$stackPtr]['code'] === T_CLASS) {
- $comment = '//end class';
- } else {
- $comment = '//end interface';
- }//end if
-
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- $error = 'Possible parse error: %s missing opening or closing brace';
- $data = array($tokens[$stackPtr]['content']);
- $phpcsFile->addWarning($error, $stackPtr, 'MissingBrace', $data);
- return;
- }
-
- $closingBracket = $tokens[$stackPtr]['scope_closer'];
-
- if ($closingBracket === null) {
- // Possible inline structure. Other tests will handle it.
- return;
- }
-
- $data = array($comment);
- if (isset($tokens[($closingBracket + 1)]) === false || $tokens[($closingBracket + 1)]['code'] !== T_COMMENT) {
- $next = $phpcsFile->findNext(T_WHITESPACE, ($closingBracket + 1), null, true);
- if (rtrim($tokens[$next]['content']) === $comment) {
- // The comment isn't really missing; it is just in the wrong place.
- $fix = $phpcsFile->addFixableError('Expected %s directly after closing brace', $closingBracket, 'Misplaced', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($closingBracket + 1); $i < $next; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- // Just in case, because indentation fixes can add indents onto
- // these comments and cause us to be unable to fix them.
- $phpcsFile->fixer->replaceToken($next, $comment.$phpcsFile->eolChar);
- $phpcsFile->fixer->endChangeset();
- }
- } else {
- $fix = $phpcsFile->addFixableError('Expected %s', $closingBracket, 'Missing', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($closingBracket, '}'.$comment.$phpcsFile->eolChar);
- }
- }
-
- return;
- }//end if
-
- if (rtrim($tokens[($closingBracket + 1)]['content']) !== $comment) {
- $fix = $phpcsFile->addFixableError('Expected %s', $closingBracket, 'Incorrect', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($closingBracket + 1), $comment.$phpcsFile->eolChar);
- }
-
- return;
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/DocCommentAlignmentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/DocCommentAlignmentSniff.php
deleted file mode 100644
index 17f4bfd4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/DocCommentAlignmentSniff.php
+++ /dev/null
@@ -1,153 +0,0 @@
-<?php
-/**
- * Tests that the stars in a doc comment align correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class DocCommentAlignmentSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_DOC_COMMENT_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // We are only interested in function/class/interface doc block comments.
- $ignore = Tokens::$emptyTokens;
- if ($phpcsFile->tokenizerType === 'JS') {
- $ignore[] = T_EQUAL;
- $ignore[] = T_STRING;
- $ignore[] = T_OBJECT_OPERATOR;
- }
-
- $nextToken = $phpcsFile->findNext($ignore, ($stackPtr + 1), null, true);
- $ignore = array(
- T_CLASS => true,
- T_INTERFACE => true,
- T_FUNCTION => true,
- T_PUBLIC => true,
- T_PRIVATE => true,
- T_PROTECTED => true,
- T_STATIC => true,
- T_ABSTRACT => true,
- T_PROPERTY => true,
- T_OBJECT => true,
- T_PROTOTYPE => true,
- T_VAR => true,
- );
-
- if (isset($ignore[$tokens[$nextToken]['code']]) === false) {
- // Could be a file comment.
- $prevToken = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if ($tokens[$prevToken]['code'] !== T_OPEN_TAG) {
- return;
- }
- }
-
- // There must be one space after each star (unless it is an empty comment line)
- // and all the stars must be aligned correctly.
- $requiredColumn = ($tokens[$stackPtr]['column'] + 1);
- $endComment = $tokens[$stackPtr]['comment_closer'];
- for ($i = ($stackPtr + 1); $i <= $endComment; $i++) {
- if ($tokens[$i]['code'] !== T_DOC_COMMENT_STAR
- && $tokens[$i]['code'] !== T_DOC_COMMENT_CLOSE_TAG
- ) {
- continue;
- }
-
- if ($tokens[$i]['code'] === T_DOC_COMMENT_CLOSE_TAG) {
- // Can't process the close tag if it is not the first thing on the line.
- $prev = $phpcsFile->findPrevious(T_DOC_COMMENT_WHITESPACE, ($i - 1), $stackPtr, true);
- if ($tokens[$prev]['line'] === $tokens[$i]['line']) {
- continue;
- }
- }
-
- if ($tokens[$i]['column'] !== $requiredColumn) {
- $error = 'Expected %s space(s) before asterisk; %s found';
- $data = array(
- ($requiredColumn - 1),
- ($tokens[$i]['column'] - 1),
- );
- $fix = $phpcsFile->addFixableError($error, $i, 'SpaceBeforeStar', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', ($requiredColumn - 1));
- if ($tokens[$i]['column'] === 1) {
- $phpcsFile->fixer->addContentBefore($i, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($i - 1), $padding);
- }
- }
- }
-
- if ($tokens[$i]['code'] !== T_DOC_COMMENT_STAR) {
- continue;
- }
-
- if ($tokens[($i + 2)]['line'] !== $tokens[$i]['line']) {
- // Line is empty.
- continue;
- }
-
- if ($tokens[($i + 1)]['code'] !== T_DOC_COMMENT_WHITESPACE) {
- $error = 'Expected 1 space after asterisk; 0 found';
- $fix = $phpcsFile->addFixableError($error, $i, 'NoSpaceAfterStar');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($i, ' ');
- }
- } else if ($tokens[($i + 2)]['code'] === T_DOC_COMMENT_TAG
- && $tokens[($i + 1)]['content'] !== ' '
- ) {
- $error = 'Expected 1 space after asterisk; %s found';
- $data = array(strlen($tokens[($i + 1)]['content']));
- $fix = $phpcsFile->addFixableError($error, $i, 'SpaceAfterStar', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($i + 1), ' ');
- }
- }
- }//end for
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/EmptyCatchCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/EmptyCatchCommentSniff.php
deleted file mode 100644
index 30bd1c8c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/EmptyCatchCommentSniff.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Checks for empty catch clause without a comment.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class EmptyCatchCommentSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_CATCH);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile All the tokens found in the document.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $scopeStart = $tokens[$stackPtr]['scope_opener'];
- $firstContent = $phpcsFile->findNext(T_WHITESPACE, ($scopeStart + 1), $tokens[$stackPtr]['scope_closer'], true);
-
- if ($firstContent === false) {
- $error = 'Empty CATCH statement must have a comment to explain why the exception is not handled';
- $phpcsFile->addError($error, $scopeStart, 'Missing');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FileCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FileCommentSniff.php
deleted file mode 100644
index c829eada..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FileCommentSniff.php
+++ /dev/null
@@ -1,208 +0,0 @@
-<?php
-/**
- * Parses and verifies the file doc comment.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class FileCommentSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return int
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $this->currentFile = $phpcsFile;
-
- $tokens = $phpcsFile->getTokens();
- $commentStart = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
-
- if ($tokens[$commentStart]['code'] === T_COMMENT) {
- $phpcsFile->addError('You must use "/**" style comments for a file comment', $commentStart, 'WrongStyle');
- $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes');
- return ($phpcsFile->numTokens + 1);
- } else if ($commentStart === false || $tokens[$commentStart]['code'] !== T_DOC_COMMENT_OPEN_TAG) {
- $phpcsFile->addError('Missing file doc comment', $stackPtr, 'Missing');
- $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no');
- return ($phpcsFile->numTokens + 1);
- }
-
- $commentEnd = $tokens[$commentStart]['comment_closer'];
-
- $nextToken = $phpcsFile->findNext(
- T_WHITESPACE,
- ($commentEnd + 1),
- null,
- true
- );
-
- $ignore = array(
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- T_FUNCTION,
- T_CLOSURE,
- T_PUBLIC,
- T_PRIVATE,
- T_PROTECTED,
- T_FINAL,
- T_STATIC,
- T_ABSTRACT,
- T_CONST,
- T_PROPERTY,
- T_INCLUDE,
- T_INCLUDE_ONCE,
- T_REQUIRE,
- T_REQUIRE_ONCE,
- );
-
- if (in_array($tokens[$nextToken]['code'], $ignore) === true) {
- $phpcsFile->addError('Missing file doc comment', $stackPtr, 'Missing');
- $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'no');
- return ($phpcsFile->numTokens + 1);
- }
-
- $phpcsFile->recordMetric($stackPtr, 'File has doc comment', 'yes');
-
- // No blank line between the open tag and the file comment.
- if ($tokens[$commentStart]['line'] > ($tokens[$stackPtr]['line'] + 1)) {
- $error = 'There must be no blank lines before the file comment';
- $phpcsFile->addError($error, $stackPtr, 'SpacingAfterOpen');
- }
-
- // Exactly one blank line after the file comment.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($commentEnd + 1), null, true);
- if ($tokens[$next]['line'] !== ($tokens[$commentEnd]['line'] + 2)) {
- $error = 'There must be exactly one blank line after the file comment';
- $phpcsFile->addError($error, $commentEnd, 'SpacingAfterComment');
- }
-
- // Required tags in correct order.
- $required = array(
- '@package' => true,
- '@subpackage' => true,
- '@author' => true,
- '@copyright' => true,
- );
-
- $foundTags = array();
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- $name = $tokens[$tag]['content'];
- $isRequired = isset($required[$name]);
-
- if ($isRequired === true && in_array($name, $foundTags) === true) {
- $error = 'Only one %s tag is allowed in a file comment';
- $data = array($name);
- $phpcsFile->addError($error, $tag, 'Duplicate'.ucfirst(substr($name, 1)).'Tag', $data);
- }
-
- $foundTags[] = $name;
-
- if ($isRequired === false) {
- continue;
- }
-
- $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $tag, $commentEnd);
- if ($string === false || $tokens[$string]['line'] !== $tokens[$tag]['line']) {
- $error = 'Content missing for %s tag in file comment';
- $data = array($name);
- $phpcsFile->addError($error, $tag, 'Empty'.ucfirst(substr($name, 1)).'Tag', $data);
- continue;
- }
-
- if ($name === '@author') {
- if ($tokens[$string]['content'] !== 'Squiz Pty Ltd <products@squiz.net>') {
- $error = 'Expected "Squiz Pty Ltd <products@squiz.net>" for author tag';
- $fix = $phpcsFile->addFixableError($error, $tag, 'IncorrectAuthor');
- if ($fix === true) {
- $expected = 'Squiz Pty Ltd <products@squiz.net>';
- $phpcsFile->fixer->replaceToken($string, $expected);
- }
- }
- } else if ($name === '@copyright') {
- if (preg_match('/^([0-9]{4})(-[0-9]{4})? (Squiz Pty Ltd \(ABN 77 084 670 600\))$/', $tokens[$string]['content']) === 0) {
- $error = 'Expected "xxxx-xxxx Squiz Pty Ltd (ABN 77 084 670 600)" for copyright declaration';
- $fix = $phpcsFile->addFixableError($error, $tag, 'IncorrectCopyright');
- if ($fix === true) {
- $matches = array();
- preg_match('/^(([0-9]{4})(-[0-9]{4})?)?.*$/', $tokens[$string]['content'], $matches);
- if (isset($matches[1]) === false) {
- $matches[1] = date('Y');
- }
-
- $expected = $matches[1].' Squiz Pty Ltd (ABN 77 084 670 600)';
- $phpcsFile->fixer->replaceToken($string, $expected);
- }
- }
- }//end if
- }//end foreach
-
- // Check if the tags are in the correct position.
- $pos = 0;
- foreach ($required as $tag => $true) {
- if (in_array($tag, $foundTags) === false) {
- $error = 'Missing %s tag in file comment';
- $data = array($tag);
- $phpcsFile->addError($error, $commentEnd, 'Missing'.ucfirst(substr($tag, 1)).'Tag', $data);
- }
-
- if (isset($foundTags[$pos]) === false) {
- break;
- }
-
- if ($foundTags[$pos] !== $tag) {
- $error = 'The tag in position %s should be the %s tag';
- $data = array(
- ($pos + 1),
- $tag,
- );
- $phpcsFile->addError($error, $tokens[$commentStart]['comment_tags'][$pos], ucfirst(substr($tag, 1)).'TagOrder', $data);
- }
-
- $pos++;
- }//end foreach
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php
deleted file mode 100644
index 4aa63cb3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php
+++ /dev/null
@@ -1,666 +0,0 @@
-<?php
-/**
- * Parses and verifies the doc comments for functions.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FunctionCommentSniff as PEARFunctionCommentSniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Util\Common;
-
-class FunctionCommentSniff extends PEARFunctionCommentSniff
-{
-
- /**
- * The current PHP version.
- *
- * @var integer
- */
- private $phpVersion = null;
-
-
- /**
- * Process the return comment of this function comment.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- *
- * @return void
- */
- protected function processReturn(File $phpcsFile, $stackPtr, $commentStart)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Skip constructor and destructor.
- $methodName = $phpcsFile->getDeclarationName($stackPtr);
- $isSpecialMethod = ($methodName === '__construct' || $methodName === '__destruct');
-
- $return = null;
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- if ($tokens[$tag]['content'] === '@return') {
- if ($return !== null) {
- $error = 'Only 1 @return tag is allowed in a function comment';
- $phpcsFile->addError($error, $tag, 'DuplicateReturn');
- return;
- }
-
- $return = $tag;
- }
- }
-
- if ($isSpecialMethod === true) {
- return;
- }
-
- if ($return !== null) {
- $content = $tokens[($return + 2)]['content'];
- if (empty($content) === true || $tokens[($return + 2)]['code'] !== T_DOC_COMMENT_STRING) {
- $error = 'Return type missing for @return tag in function comment';
- $phpcsFile->addError($error, $return, 'MissingReturnType');
- } else {
- // Support both a return type and a description.
- $split = preg_match('`^((?:\|?(?:array\([^\)]*\)|[\\\\a-z0-9\[\]]+))*)( .*)?`i', $content, $returnParts);
- if (isset($returnParts[1]) === false) {
- return;
- }
-
- $returnType = $returnParts[1];
-
- // Check return type (can be multiple, separated by '|').
- $typeNames = explode('|', $returnType);
- $suggestedNames = array();
- foreach ($typeNames as $i => $typeName) {
- $suggestedName = Common::suggestType($typeName);
- if (in_array($suggestedName, $suggestedNames) === false) {
- $suggestedNames[] = $suggestedName;
- }
- }
-
- $suggestedType = implode('|', $suggestedNames);
- if ($returnType !== $suggestedType) {
- $error = 'Expected "%s" but found "%s" for function return type';
- $data = array(
- $suggestedType,
- $returnType,
- );
- $fix = $phpcsFile->addFixableError($error, $return, 'InvalidReturn', $data);
- if ($fix === true) {
- $replacement = $suggestedType;
- if (empty($returnParts[2]) === false) {
- $replacement .= $returnParts[2];
- }
-
- $phpcsFile->fixer->replaceToken(($return + 2), $replacement);
- unset($replacement);
- }
- }
-
- // If the return type is void, make sure there is
- // no return statement in the function.
- if ($returnType === 'void') {
- if (isset($tokens[$stackPtr]['scope_closer']) === true) {
- $endToken = $tokens[$stackPtr]['scope_closer'];
- for ($returnToken = $stackPtr; $returnToken < $endToken; $returnToken++) {
- if ($tokens[$returnToken]['code'] === T_CLOSURE
- || $tokens[$returnToken]['code'] === T_ANON_CLASS
- ) {
- $returnToken = $tokens[$returnToken]['scope_closer'];
- continue;
- }
-
- if ($tokens[$returnToken]['code'] === T_RETURN
- || $tokens[$returnToken]['code'] === T_YIELD
- || $tokens[$returnToken]['code'] === T_YIELD_FROM
- ) {
- break;
- }
- }
-
- if ($returnToken !== $endToken) {
- // If the function is not returning anything, just
- // exiting, then there is no problem.
- $semicolon = $phpcsFile->findNext(T_WHITESPACE, ($returnToken + 1), null, true);
- if ($tokens[$semicolon]['code'] !== T_SEMICOLON) {
- $error = 'Function return type is void, but function contains return statement';
- $phpcsFile->addError($error, $return, 'InvalidReturnVoid');
- }
- }
- }//end if
- } else if ($returnType !== 'mixed' && in_array('void', $typeNames, true) === false) {
- // If return type is not void, there needs to be a return statement
- // somewhere in the function that returns something.
- if (isset($tokens[$stackPtr]['scope_closer']) === true) {
- $endToken = $tokens[$stackPtr]['scope_closer'];
- $returnToken = $phpcsFile->findNext(array(T_RETURN, T_YIELD, T_YIELD_FROM), $stackPtr, $endToken);
- if ($returnToken === false) {
- $error = 'Function return type is not void, but function has no return statement';
- $phpcsFile->addError($error, $return, 'InvalidNoReturn');
- } else {
- $semicolon = $phpcsFile->findNext(T_WHITESPACE, ($returnToken + 1), null, true);
- if ($tokens[$semicolon]['code'] === T_SEMICOLON) {
- $error = 'Function return type is not void, but function is returning void here';
- $phpcsFile->addError($error, $returnToken, 'InvalidReturnNotVoid');
- }
- }
- }
- }//end if
- }//end if
- } else {
- $error = 'Missing @return tag in function comment';
- $phpcsFile->addError($error, $tokens[$commentStart]['comment_closer'], 'MissingReturn');
- }//end if
-
- }//end processReturn()
-
-
- /**
- * Process any throw tags that this function comment has.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- *
- * @return void
- */
- protected function processThrows(File $phpcsFile, $stackPtr, $commentStart)
- {
- $tokens = $phpcsFile->getTokens();
-
- $throws = array();
- foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
- if ($tokens[$tag]['content'] !== '@throws') {
- continue;
- }
-
- $exception = null;
- $comment = null;
- if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
- $matches = array();
- preg_match('/([^\s]+)(?:\s+(.*))?/', $tokens[($tag + 2)]['content'], $matches);
- $exception = $matches[1];
- if (isset($matches[2]) === true && trim($matches[2]) !== '') {
- $comment = $matches[2];
- }
- }
-
- if ($exception === null) {
- $error = 'Exception type and comment missing for @throws tag in function comment';
- $phpcsFile->addError($error, $tag, 'InvalidThrows');
- } else if ($comment === null) {
- $error = 'Comment missing for @throws tag in function comment';
- $phpcsFile->addError($error, $tag, 'EmptyThrows');
- } else {
- // Any strings until the next tag belong to this comment.
- if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) {
- $end = $tokens[$commentStart]['comment_tags'][($pos + 1)];
- } else {
- $end = $tokens[$commentStart]['comment_closer'];
- }
-
- for ($i = ($tag + 3); $i < $end; $i++) {
- if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) {
- $comment .= ' '.$tokens[$i]['content'];
- }
- }
-
- // Starts with a capital letter and ends with a fullstop.
- $firstChar = $comment{0};
- if (strtoupper($firstChar) !== $firstChar) {
- $error = '@throws tag comment must start with a capital letter';
- $phpcsFile->addError($error, ($tag + 2), 'ThrowsNotCapital');
- }
-
- $lastChar = substr($comment, -1);
- if ($lastChar !== '.') {
- $error = '@throws tag comment must end with a full stop';
- $phpcsFile->addError($error, ($tag + 2), 'ThrowsNoFullStop');
- }
- }//end if
- }//end foreach
-
- }//end processThrows()
-
-
- /**
- * Process the function parameter comments.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $commentStart The position in the stack where the comment started.
- *
- * @return void
- */
- protected function processParams(File $phpcsFile, $stackPtr, $commentStart)
- {
- if ($this->phpVersion === null) {
- $this->phpVersion = Config::getConfigData('php_version');
- if ($this->phpVersion === null) {
- $this->phpVersion = PHP_VERSION_ID;
- }
- }
-
- $tokens = $phpcsFile->getTokens();
-
- $params = array();
- $maxType = 0;
- $maxVar = 0;
- foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
- if ($tokens[$tag]['content'] !== '@param') {
- continue;
- }
-
- $type = '';
- $typeSpace = 0;
- $var = '';
- $varSpace = 0;
- $comment = '';
- $commentLines = array();
- if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
- $matches = array();
- preg_match('/([^$&.]+)(?:((?:\.\.\.)?(?:\$|&)[^\s]+)(?:(\s+)(.*))?)?/', $tokens[($tag + 2)]['content'], $matches);
-
- if (empty($matches) === false) {
- $typeLen = strlen($matches[1]);
- $type = trim($matches[1]);
- $typeSpace = ($typeLen - strlen($type));
- $typeLen = strlen($type);
- if ($typeLen > $maxType) {
- $maxType = $typeLen;
- }
- }
-
- if (isset($matches[2]) === true) {
- $var = $matches[2];
- $varLen = strlen($var);
- if ($varLen > $maxVar) {
- $maxVar = $varLen;
- }
-
- if (isset($matches[4]) === true) {
- $varSpace = strlen($matches[3]);
- $comment = $matches[4];
- $commentLines[] = array(
- 'comment' => $comment,
- 'token' => ($tag + 2),
- 'indent' => $varSpace,
- );
-
- // Any strings until the next tag belong to this comment.
- if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) {
- $end = $tokens[$commentStart]['comment_tags'][($pos + 1)];
- } else {
- $end = $tokens[$commentStart]['comment_closer'];
- }
-
- for ($i = ($tag + 3); $i < $end; $i++) {
- if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) {
- $indent = 0;
- if ($tokens[($i - 1)]['code'] === T_DOC_COMMENT_WHITESPACE) {
- $indent = strlen($tokens[($i - 1)]['content']);
- }
-
- $comment .= ' '.$tokens[$i]['content'];
- $commentLines[] = array(
- 'comment' => $tokens[$i]['content'],
- 'token' => $i,
- 'indent' => $indent,
- );
- }
- }
- } else {
- $error = 'Missing parameter comment';
- $phpcsFile->addError($error, $tag, 'MissingParamComment');
- $commentLines[] = array('comment' => '');
- }//end if
- } else {
- $error = 'Missing parameter name';
- $phpcsFile->addError($error, $tag, 'MissingParamName');
- }//end if
- } else {
- $error = 'Missing parameter type';
- $phpcsFile->addError($error, $tag, 'MissingParamType');
- }//end if
-
- $params[] = array(
- 'tag' => $tag,
- 'type' => $type,
- 'var' => $var,
- 'comment' => $comment,
- 'commentLines' => $commentLines,
- 'type_space' => $typeSpace,
- 'var_space' => $varSpace,
- );
- }//end foreach
-
- $realParams = $phpcsFile->getMethodParameters($stackPtr);
- $foundParams = array();
-
- // We want to use ... for all variable length arguments, so added
- // this prefix to the variable name so comparisons are easier.
- foreach ($realParams as $pos => $param) {
- if ($param['variable_length'] === true) {
- $realParams[$pos]['name'] = '...'.$realParams[$pos]['name'];
- }
- }
-
- foreach ($params as $pos => $param) {
- // If the type is empty, the whole line is empty.
- if ($param['type'] === '') {
- continue;
- }
-
- // Check the param type value.
- $typeNames = explode('|', $param['type']);
- $suggestedTypeNames = array();
-
- foreach ($typeNames as $typeName) {
- $suggestedName = Common::suggestType($typeName);
- $suggestedTypeNames[] = $suggestedName;
-
- if (count($typeNames) > 1) {
- continue;
- }
-
- // Check type hint for array and custom type.
- $suggestedTypeHint = '';
- if (strpos($suggestedName, 'array') !== false || substr($suggestedName, -2) === '[]') {
- $suggestedTypeHint = 'array';
- } else if (strpos($suggestedName, 'callable') !== false) {
- $suggestedTypeHint = 'callable';
- } else if (strpos($suggestedName, 'callback') !== false) {
- $suggestedTypeHint = 'callable';
- } else if (in_array($suggestedName, Common::$allowedTypes) === false) {
- $suggestedTypeHint = $suggestedName;
- }
-
- if ($this->phpVersion >= 70000) {
- if ($suggestedName === 'string') {
- $suggestedTypeHint = 'string';
- } else if ($suggestedName === 'int' || $suggestedName === 'integer') {
- $suggestedTypeHint = 'int';
- } else if ($suggestedName === 'float') {
- $suggestedTypeHint = 'float';
- } else if ($suggestedName === 'bool' || $suggestedName === 'boolean') {
- $suggestedTypeHint = 'bool';
- }
- }
-
- if ($suggestedTypeHint !== '' && isset($realParams[$pos]) === true) {
- $typeHint = $realParams[$pos]['type_hint'];
- if ($typeHint === '') {
- $error = 'Type hint "%s" missing for %s';
- $data = array(
- $suggestedTypeHint,
- $param['var'],
- );
-
- $errorCode = 'TypeHintMissing';
- if ($suggestedTypeHint === 'string'
- || $suggestedTypeHint === 'int'
- || $suggestedTypeHint === 'float'
- || $suggestedTypeHint === 'bool'
- ) {
- $errorCode = 'Scalar'.$errorCode;
- }
-
- $phpcsFile->addError($error, $stackPtr, $errorCode, $data);
- } else if ($typeHint !== substr($suggestedTypeHint, (strlen($typeHint) * -1))) {
- $error = 'Expected type hint "%s"; found "%s" for %s';
- $data = array(
- $suggestedTypeHint,
- $typeHint,
- $param['var'],
- );
- $phpcsFile->addError($error, $stackPtr, 'IncorrectTypeHint', $data);
- }//end if
- } else if ($suggestedTypeHint === '' && isset($realParams[$pos]) === true) {
- $typeHint = $realParams[$pos]['type_hint'];
- if ($typeHint !== '') {
- $error = 'Unknown type hint "%s" found for %s';
- $data = array(
- $typeHint,
- $param['var'],
- );
- $phpcsFile->addError($error, $stackPtr, 'InvalidTypeHint', $data);
- }
- }//end if
- }//end foreach
-
- $suggestedType = implode($suggestedTypeNames, '|');
- if ($param['type'] !== $suggestedType) {
- $error = 'Expected "%s" but found "%s" for parameter type';
- $data = array(
- $suggestedType,
- $param['type'],
- );
-
- $fix = $phpcsFile->addFixableError($error, $param['tag'], 'IncorrectParamVarName', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
-
- $content = $suggestedType;
- $content .= str_repeat(' ', $param['type_space']);
- $content .= $param['var'];
- $content .= str_repeat(' ', $param['var_space']);
- if (isset($param['commentLines'][0]) === true) {
- $content .= $param['commentLines'][0]['comment'];
- }
-
- $phpcsFile->fixer->replaceToken(($param['tag'] + 2), $content);
-
- // Fix up the indent of additional comment lines.
- foreach ($param['commentLines'] as $lineNum => $line) {
- if ($lineNum === 0
- || $param['commentLines'][$lineNum]['indent'] === 0
- ) {
- continue;
- }
-
- $diff = (strlen($param['type']) - strlen($suggestedType));
- $newIndent = ($param['commentLines'][$lineNum]['indent'] - $diff);
- $phpcsFile->fixer->replaceToken(
- ($param['commentLines'][$lineNum]['token'] - 1),
- str_repeat(' ', $newIndent)
- );
- }
-
- $phpcsFile->fixer->endChangeset();
- }//end if
- }//end if
-
- if ($param['var'] === '') {
- continue;
- }
-
- $foundParams[] = $param['var'];
-
- // Check number of spaces after the type.
- $this->checkSpacingAfterParamType($phpcsFile, $param, $maxType);
-
- // Make sure the param name is correct.
- if (isset($realParams[$pos]) === true) {
- $realName = $realParams[$pos]['name'];
- if ($realName !== $param['var']) {
- $code = 'ParamNameNoMatch';
- $data = array(
- $param['var'],
- $realName,
- );
-
- $error = 'Doc comment for parameter %s does not match ';
- if (strtolower($param['var']) === strtolower($realName)) {
- $error .= 'case of ';
- $code = 'ParamNameNoCaseMatch';
- }
-
- $error .= 'actual variable name %s';
-
- $phpcsFile->addError($error, $param['tag'], $code, $data);
- }
- } else if (substr($param['var'], -4) !== ',...') {
- // We must have an extra parameter comment.
- $error = 'Superfluous parameter comment';
- $phpcsFile->addError($error, $param['tag'], 'ExtraParamComment');
- }//end if
-
- if ($param['comment'] === '') {
- continue;
- }
-
- // Check number of spaces after the var name.
- $this->checkSpacingAfterParamName($phpcsFile, $param, $maxVar);
-
- // Param comments must start with a capital letter and end with the full stop.
- if (preg_match('/^(\p{Ll}|\P{L})/u', $param['comment']) === 1) {
- $error = 'Parameter comment must start with a capital letter';
- $phpcsFile->addError($error, $param['tag'], 'ParamCommentNotCapital');
- }
-
- $lastChar = substr($param['comment'], -1);
- if ($lastChar !== '.') {
- $error = 'Parameter comment must end with a full stop';
- $phpcsFile->addError($error, $param['tag'], 'ParamCommentFullStop');
- }
- }//end foreach
-
- $realNames = array();
- foreach ($realParams as $realParam) {
- $realNames[] = $realParam['name'];
- }
-
- // Report missing comments.
- $diff = array_diff($realNames, $foundParams);
- foreach ($diff as $neededParam) {
- $error = 'Doc comment for parameter "%s" missing';
- $data = array($neededParam);
- $phpcsFile->addError($error, $commentStart, 'MissingParamTag', $data);
- }
-
- }//end processParams()
-
-
- /**
- * Check the spacing after the type of a parameter.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $param The parameter to be checked.
- * @param int $maxType The maxlength of the longest parameter type.
- * @param int $spacing The number of spaces to add after the type.
- *
- * @return void
- */
- protected function checkSpacingAfterParamType(File $phpcsFile, $param, $maxType, $spacing=1)
- {
- // Check number of spaces after the type.
- $spaces = ($maxType - strlen($param['type']) + $spacing);
- if ($param['type_space'] !== $spaces) {
- $error = 'Expected %s spaces after parameter type; %s found';
- $data = array(
- $spaces,
- $param['type_space'],
- );
-
- $fix = $phpcsFile->addFixableError($error, $param['tag'], 'SpacingAfterParamType', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
-
- $content = $param['type'];
- $content .= str_repeat(' ', $spaces);
- $content .= $param['var'];
- $content .= str_repeat(' ', $param['var_space']);
- $content .= $param['commentLines'][0]['comment'];
- $phpcsFile->fixer->replaceToken(($param['tag'] + 2), $content);
-
- // Fix up the indent of additional comment lines.
- foreach ($param['commentLines'] as $lineNum => $line) {
- if ($lineNum === 0
- || $param['commentLines'][$lineNum]['indent'] === 0
- ) {
- continue;
- }
-
- $diff = ($param['type_space'] - $spaces);
- $newIndent = ($param['commentLines'][$lineNum]['indent'] - $diff);
- $phpcsFile->fixer->replaceToken(
- ($param['commentLines'][$lineNum]['token'] - 1),
- str_repeat(' ', $newIndent)
- );
- }
-
- $phpcsFile->fixer->endChangeset();
- }//end if
- }//end if
-
- }//end checkSpacingAfterParamType()
-
-
- /**
- * Check the spacing after the name of a parameter.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param array $param The parameter to be checked.
- * @param int $maxVar The maxlength of the longest parameter name.
- * @param int $spacing The number of spaces to add after the type.
- *
- * @return void
- */
- protected function checkSpacingAfterParamName(File $phpcsFile, $param, $maxVar, $spacing=1)
- {
- // Check number of spaces after the var name.
- $spaces = ($maxVar - strlen($param['var']) + $spacing);
- if ($param['var_space'] !== $spaces) {
- $error = 'Expected %s spaces after parameter name; %s found';
- $data = array(
- $spaces,
- $param['var_space'],
- );
-
- $fix = $phpcsFile->addFixableError($error, $param['tag'], 'SpacingAfterParamName', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
-
- $content = $param['type'];
- $content .= str_repeat(' ', $param['type_space']);
- $content .= $param['var'];
- $content .= str_repeat(' ', $spaces);
- $content .= $param['commentLines'][0]['comment'];
- $phpcsFile->fixer->replaceToken(($param['tag'] + 2), $content);
-
- // Fix up the indent of additional comment lines.
- foreach ($param['commentLines'] as $lineNum => $line) {
- if ($lineNum === 0
- || $param['commentLines'][$lineNum]['indent'] === 0
- ) {
- continue;
- }
-
- $diff = ($param['var_space'] - $spaces);
- $newIndent = ($param['commentLines'][$lineNum]['indent'] - $diff);
- if ($newIndent <= 0) {
- continue;
- }
-
- $phpcsFile->fixer->replaceToken(
- ($param['commentLines'][$lineNum]['token'] - 1),
- str_repeat(' ', $newIndent)
- );
- }
-
- $phpcsFile->fixer->endChangeset();
- }//end if
- }//end if
-
- }//end checkSpacingAfterParamName()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentThrowTagSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentThrowTagSniff.php
deleted file mode 100644
index 30104e85..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/FunctionCommentThrowTagSniff.php
+++ /dev/null
@@ -1,259 +0,0 @@
-<?php
-/**
- * Verifies that a @throws tag exists for each exception type a function throws.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\AbstractScopeSniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class FunctionCommentThrowTagSniff extends AbstractScopeSniff
-{
-
-
- /**
- * Constructs a Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff.
- */
- public function __construct()
- {
- parent::__construct(array(T_FUNCTION), array(T_THROW));
-
- }//end __construct()
-
-
- /**
- * Processes the function tokens within the class.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- * @param int $currScope The current scope opener token.
- *
- * @return void
- */
- protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- // Is this the first throw token within the current function scope?
- // If so, we have to validate other throw tokens within the same scope.
- $previousThrow = $phpcsFile->findPrevious(T_THROW, ($stackPtr - 1), $currScope);
- if ($previousThrow !== false) {
- return;
- }
-
- $tokens = $phpcsFile->getTokens();
-
- $find = Tokens::$methodPrefixes;
- $find[] = T_WHITESPACE;
-
- $commentEnd = $phpcsFile->findPrevious($find, ($currScope - 1), null, true);
- if ($tokens[$commentEnd]['code'] === T_COMMENT) {
- // Function is using the wrong type of comment.
- return;
- }
-
- if ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
- && $tokens[$commentEnd]['code'] !== T_COMMENT
- ) {
- // Function doesn't have a doc comment.
- return;
- }
-
- $currScopeEnd = $tokens[$currScope]['scope_closer'];
-
- // Find all the exception type token within the current scope.
- $throwTokens = array();
- $currPos = $stackPtr;
- $foundThrows = false;
- while ($currPos < $currScopeEnd && $currPos !== false) {
- if ($phpcsFile->hasCondition($currPos, T_CLOSURE) === false) {
- $foundThrows = true;
-
- /*
- If we can't find a NEW, we are probably throwing
- a variable.
-
- If we're throwing the same variable as the exception container
- from the nearest 'catch' block, we take that exception, as it is
- likely to be a re-throw.
-
- If we can't find a matching catch block, or the variable name
- is different, it's probably a different variable, so we ignore it,
- but they still need to provide at least one @throws tag, even through we
- don't know the exception class.
- */
-
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($currPos + 1), null, true);
- if ($tokens[$nextToken]['code'] === T_NEW) {
- $currException = $phpcsFile->findNext(
- array(
- T_NS_SEPARATOR,
- T_STRING,
- ),
- $currPos,
- $currScopeEnd,
- false,
- null,
- true
- );
-
- if ($currException !== false) {
- $endException = $phpcsFile->findNext(
- array(
- T_NS_SEPARATOR,
- T_STRING,
- ),
- ($currException + 1),
- $currScopeEnd,
- true,
- null,
- true
- );
-
- if ($endException === false) {
- $throwTokens[] = $tokens[$currException]['content'];
- } else {
- $throwTokens[] = $phpcsFile->getTokensAsString($currException, ($endException - $currException));
- }
- }//end if
- } else if ($tokens[$nextToken]['code'] === T_VARIABLE) {
- // Find where the nearest 'catch' block in this scope.
- $catch = $phpcsFile->findPrevious(
- T_CATCH,
- $currPos,
- $tokens[$currScope]['scope_opener'],
- false,
- null,
- false
- );
-
- if ($catch !== false) {
- // Get the start of the 'catch' exception.
- $currException = $phpcsFile->findNext(
- array(
- T_NS_SEPARATOR,
- T_STRING,
- ),
- $tokens[$catch]['parenthesis_opener'],
- $tokens[$catch]['parenthesis_closer'],
- false,
- null,
- true
- );
-
- if ($currException !== false) {
- // Find the next whitespace (which should be the end of the exception).
- $endException = $phpcsFile->findNext(
- T_WHITESPACE,
- ($currException + 1),
- $tokens[$catch]['parenthesis_closer'],
- false,
- null,
- true
- );
-
- if ($endException !== false) {
- // Find the variable that we're catching into.
- $thrownVar = $phpcsFile->findNext(
- T_VARIABLE,
- ($endException + 1),
- $tokens[$catch]["parenthesis_closer"],
- false,
- null,
- true
- );
-
- // Sanity check that the variable that the exception is caught into is the one that's thrown.
- if ($tokens[$thrownVar]['content'] === $tokens[$nextToken]['content']) {
- $throwTokens[] = $phpcsFile->getTokensAsString($currException, ($endException - $currException));
- }//end if
- }//end if
- }//end if
- }//end if
- }//end if
- }//end if
-
- $currPos = $phpcsFile->findNext(T_THROW, ($currPos + 1), $currScopeEnd);
- }//end while
-
- if ($foundThrows === false) {
- return;
- }
-
- // Only need one @throws tag for each type of exception thrown.
- $throwTokens = array_unique($throwTokens);
-
- $throwTags = array();
- $commentStart = $tokens[$commentEnd]['comment_opener'];
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- if ($tokens[$tag]['content'] !== '@throws') {
- continue;
- }
-
- if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
- $exception = $tokens[($tag + 2)]['content'];
- $space = strpos($exception, ' ');
- if ($space !== false) {
- $exception = substr($exception, 0, $space);
- }
-
- $throwTags[$exception] = true;
- }
- }
-
- if (empty($throwTags) === true) {
- $error = 'Missing @throws tag in function comment';
- $phpcsFile->addError($error, $commentEnd, 'Missing');
- return;
- } else if (empty($throwTokens) === true) {
- // If token count is zero, it means that only variables are being
- // thrown, so we need at least one @throws tag (checked above).
- // Nothing more to do.
- return;
- }
-
- // Make sure @throws tag count matches throw token count.
- $tokenCount = count($throwTokens);
- $tagCount = count($throwTags);
- if ($tokenCount !== $tagCount) {
- $error = 'Expected %s @throws tag(s) in function comment; %s found';
- $data = array(
- $tokenCount,
- $tagCount,
- );
- $phpcsFile->addError($error, $commentEnd, 'WrongNumber', $data);
- return;
- }
-
- foreach ($throwTokens as $throw) {
- if (isset($throwTags[$throw]) === false) {
- $error = 'Missing @throws tag for "%s" exception';
- $data = array($throw);
- $phpcsFile->addError($error, $commentEnd, 'Missing', $data);
- }
- }
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes a token that is found within the scope that this test is
- * listening to.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position in the stack where this
- * token was found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
-
- }//end processTokenOutsideScope()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/InlineCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/InlineCommentSniff.php
deleted file mode 100644
index 752ba698..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/InlineCommentSniff.php
+++ /dev/null
@@ -1,312 +0,0 @@
-<?php
-/**
- * Checks that there is adequate spacing between comments.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class InlineCommentSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_COMMENT,
- T_DOC_COMMENT_OPEN_TAG,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // If this is a function/class/interface doc block comment, skip it.
- // We are only interested in inline doc block comments, which are
- // not allowed.
- if ($tokens[$stackPtr]['code'] === T_DOC_COMMENT_OPEN_TAG) {
- $nextToken = $phpcsFile->findNext(
- Tokens::$emptyTokens,
- ($stackPtr + 1),
- null,
- true
- );
-
- $ignore = array(
- T_CLASS,
- T_INTERFACE,
- T_TRAIT,
- T_FUNCTION,
- T_CLOSURE,
- T_PUBLIC,
- T_PRIVATE,
- T_PROTECTED,
- T_FINAL,
- T_STATIC,
- T_ABSTRACT,
- T_CONST,
- T_PROPERTY,
- T_INCLUDE,
- T_INCLUDE_ONCE,
- T_REQUIRE,
- T_REQUIRE_ONCE,
- );
-
- if (in_array($tokens[$nextToken]['code'], $ignore) === true) {
- return;
- }
-
- if ($phpcsFile->tokenizerType === 'JS') {
- // We allow block comments if a function or object
- // is being assigned to a variable.
- $ignore = Tokens::$emptyTokens;
- $ignore[] = T_EQUAL;
- $ignore[] = T_STRING;
- $ignore[] = T_OBJECT_OPERATOR;
- $nextToken = $phpcsFile->findNext($ignore, ($nextToken + 1), null, true);
- if ($tokens[$nextToken]['code'] === T_FUNCTION
- || $tokens[$nextToken]['code'] === T_CLOSURE
- || $tokens[$nextToken]['code'] === T_OBJECT
- || $tokens[$nextToken]['code'] === T_PROTOTYPE
- ) {
- return;
- }
- }
-
- $prevToken = $phpcsFile->findPrevious(
- Tokens::$emptyTokens,
- ($stackPtr - 1),
- null,
- true
- );
-
- if ($tokens[$prevToken]['code'] === T_OPEN_TAG) {
- return;
- }
-
- if ($tokens[$stackPtr]['content'] === '/**') {
- $error = 'Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead';
- $phpcsFile->addError($error, $stackPtr, 'DocBlock');
- }
- }//end if
-
- if ($tokens[$stackPtr]['content']{0} === '#') {
- $error = 'Perl-style comments are not allowed; use "// Comment" instead';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'WrongStyle');
- if ($fix === true) {
- $comment = ltrim($tokens[$stackPtr]['content'], "# \t");
- $phpcsFile->fixer->replaceToken($stackPtr, "// $comment");
- }
- }
-
- // We don't want end of block comments. If the last comment is a closing
- // curly brace.
- $previousContent = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$previousContent]['line'] === $tokens[$stackPtr]['line']) {
- if ($tokens[$previousContent]['code'] === T_CLOSE_CURLY_BRACKET) {
- return;
- }
-
- // Special case for JS files.
- if ($tokens[$previousContent]['code'] === T_COMMA
- || $tokens[$previousContent]['code'] === T_SEMICOLON
- ) {
- $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($previousContent - 1), null, true);
- if ($tokens[$lastContent]['code'] === T_CLOSE_CURLY_BRACKET) {
- return;
- }
- }
- }
-
- $comment = rtrim($tokens[$stackPtr]['content']);
-
- // Only want inline comments.
- if (substr($comment, 0, 2) !== '//') {
- return;
- }
-
- if (trim(substr($comment, 2)) !== '') {
- $spaceCount = 0;
- $tabFound = false;
-
- $commentLength = strlen($comment);
- for ($i = 2; $i < $commentLength; $i++) {
- if ($comment[$i] === "\t") {
- $tabFound = true;
- break;
- }
-
- if ($comment[$i] !== ' ') {
- break;
- }
-
- $spaceCount++;
- }
-
- $fix = false;
- if ($tabFound === true) {
- $error = 'Tab found before comment text; expected "// %s" but found "%s"';
- $data = array(
- ltrim(substr($comment, 2)),
- $comment,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'TabBefore', $data);
- } else if ($spaceCount === 0) {
- $error = 'No space found before comment text; expected "// %s" but found "%s"';
- $data = array(
- substr($comment, 2),
- $comment,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceBefore', $data);
- } else if ($spaceCount > 1) {
- $error = 'Expected 1 space before comment text but found %s; use block comment if you need indentation';
- $data = array(
- $spaceCount,
- substr($comment, (2 + $spaceCount)),
- $comment,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBefore', $data);
- }//end if
-
- if ($fix === true) {
- $newComment = '// '.ltrim($tokens[$stackPtr]['content'], "/\t ");
- $phpcsFile->fixer->replaceToken($stackPtr, $newComment);
- }
- }//end if
-
- // The below section determines if a comment block is correctly capitalised,
- // and ends in a full-stop. It will find the last comment in a block, and
- // work its way up.
- $nextComment = $phpcsFile->findNext(array(T_COMMENT), ($stackPtr + 1), null, false);
- if (($nextComment !== false)
- && (($tokens[$nextComment]['line']) === ($tokens[$stackPtr]['line'] + 1))
- ) {
- return;
- }
-
- $topComment = $stackPtr;
- $lastComment = $stackPtr;
- while (($topComment = $phpcsFile->findPrevious(array(T_COMMENT), ($lastComment - 1), null, false)) !== false) {
- if ($tokens[$topComment]['line'] !== ($tokens[$lastComment]['line'] - 1)) {
- break;
- }
-
- $lastComment = $topComment;
- }
-
- $topComment = $lastComment;
- $commentText = '';
-
- for ($i = $topComment; $i <= $stackPtr; $i++) {
- if ($tokens[$i]['code'] === T_COMMENT) {
- $commentText .= trim(substr($tokens[$i]['content'], 2));
- }
- }
-
- if ($commentText === '') {
- $error = 'Blank comments are not allowed';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Empty');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, '');
- }
-
- return;
- }
-
- if (preg_match('/^\p{Ll}/u', $commentText) === 1) {
- $error = 'Inline comments must start with a capital letter';
- $phpcsFile->addError($error, $topComment, 'NotCapital');
- }
-
- // Only check the end of comment character if the start of the comment
- // is a letter, indicating that the comment is just standard text.
- if (preg_match('/^\p{L}/u', $commentText) === 1) {
- $commentCloser = $commentText[(strlen($commentText) - 1)];
- $acceptedClosers = array(
- 'full-stops' => '.',
- 'exclamation marks' => '!',
- 'or question marks' => '?',
- );
-
- if (in_array($commentCloser, $acceptedClosers) === false) {
- $error = 'Inline comments must end in %s';
- $ender = '';
- foreach ($acceptedClosers as $closerName => $symbol) {
- $ender .= ' '.$closerName.',';
- }
-
- $ender = trim($ender, ' ,');
- $data = array($ender);
- $phpcsFile->addError($error, $stackPtr, 'InvalidEndChar', $data);
- }
- }
-
- // Finally, the line below the last comment cannot be empty if this inline
- // comment is on a line by itself.
- if ($tokens[$previousContent]['line'] < $tokens[$stackPtr]['line']) {
- $start = false;
- for ($i = ($stackPtr + 1); $i < $phpcsFile->numTokens; $i++) {
- if ($tokens[$i]['line'] === ($tokens[$stackPtr]['line'] + 1)) {
- if ($tokens[$i]['code'] !== T_WHITESPACE) {
- return;
- }
- } else if ($tokens[$i]['line'] > ($tokens[$stackPtr]['line'] + 1)) {
- break;
- }
- }
-
- $error = 'There must be no blank line following an inline comment';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfter');
- if ($fix === true) {
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($stackPtr + 1); $i < $next; $i++) {
- if ($tokens[$i]['line'] === $tokens[$next]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/LongConditionClosingCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/LongConditionClosingCommentSniff.php
deleted file mode 100644
index 38a85fae..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/LongConditionClosingCommentSniff.php
+++ /dev/null
@@ -1,204 +0,0 @@
-<?php
-/**
- * Ensures long conditions have a comment at the end.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LongConditionClosingCommentSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * The openers that we are interested in.
- *
- * @var integer[]
- */
- private static $openers = array(
- T_SWITCH,
- T_IF,
- T_FOR,
- T_FOREACH,
- T_WHILE,
- T_TRY,
- T_CASE,
- );
-
- /**
- * The length that a code block must be before
- * requiring a closing comment.
- *
- * @var integer
- */
- public $lineLimit = 20;
-
- /**
- * The format the end comment should be in.
- *
- * The placeholder %s will be replaced with the type of condition opener.
- *
- * @var string
- */
- public $commentFormat = '//end %s';
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_CLOSE_CURLY_BRACKET);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['scope_condition']) === false) {
- // No scope condition. It is a function closer.
- return;
- }
-
- $startCondition = $tokens[$tokens[$stackPtr]['scope_condition']];
- $startBrace = $tokens[$tokens[$stackPtr]['scope_opener']];
- $endBrace = $tokens[$stackPtr];
-
- // We are only interested in some code blocks.
- if (in_array($startCondition['code'], self::$openers) === false) {
- return;
- }
-
- if ($startCondition['code'] === T_IF) {
- // If this is actually an ELSE IF, skip it as the brace
- // will be checked by the original IF.
- $else = $phpcsFile->findPrevious(T_WHITESPACE, ($tokens[$stackPtr]['scope_condition'] - 1), null, true);
- if ($tokens[$else]['code'] === T_ELSE) {
- return;
- }
-
- // IF statements that have an ELSE block need to use
- // "end if" rather than "end else" or "end elseif".
- do {
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$nextToken]['code'] === T_ELSE || $tokens[$nextToken]['code'] === T_ELSEIF) {
- // Check for ELSE IF (2 tokens) as opposed to ELSEIF (1 token).
- if ($tokens[$nextToken]['code'] === T_ELSE
- && isset($tokens[$nextToken]['scope_closer']) === false
- ) {
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($nextToken + 1), null, true);
- if ($tokens[$nextToken]['code'] !== T_IF
- || isset($tokens[$nextToken]['scope_closer']) === false
- ) {
- // Not an ELSE IF or is an inline ELSE IF.
- break;
- }
- }
-
- if (isset($tokens[$nextToken]['scope_closer']) === false) {
- // There isn't going to be anywhere to print the "end if" comment
- // because there is no closer.
- return;
- }
-
- // The end brace becomes the ELSE's end brace.
- $stackPtr = $tokens[$nextToken]['scope_closer'];
- $endBrace = $tokens[$stackPtr];
- } else {
- break;
- }//end if
- } while (isset($tokens[$nextToken]['scope_closer']) === true);
- }//end if
-
- if ($startCondition['code'] === T_TRY) {
- // TRY statements need to check until the end of all CATCH statements.
- do {
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$nextToken]['code'] === T_CATCH) {
- // The end brace becomes the CATCH's end brace.
- $stackPtr = $tokens[$nextToken]['scope_closer'];
- $endBrace = $tokens[$stackPtr];
- } else {
- break;
- }
- } while (isset($tokens[$nextToken]['scope_closer']) === true);
- }
-
- $lineDifference = ($endBrace['line'] - $startBrace['line']);
-
- $expected = sprintf($this->commentFormat, $startCondition['content']);
- $comment = $phpcsFile->findNext(array(T_COMMENT), $stackPtr, null, false);
-
- if (($comment === false) || ($tokens[$comment]['line'] !== $endBrace['line'])) {
- if ($lineDifference >= $this->lineLimit) {
- $error = 'End comment for long condition not found; expected "%s"';
- $data = array($expected);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Missing', $data);
-
- if ($fix === true) {
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($next !== false && $tokens[$next]['line'] === $tokens[$stackPtr]['line']) {
- $expected .= $phpcsFile->eolChar;
- }
-
- $phpcsFile->fixer->addContent($stackPtr, $expected);
- }
- }
-
- return;
- }
-
- if (($comment - $stackPtr) !== 1) {
- $error = 'Space found before closing comment; expected "%s"';
- $data = array($expected);
- $phpcsFile->addError($error, $stackPtr, 'SpacingBefore', $data);
- }
-
- if (trim($tokens[$comment]['content']) !== $expected) {
- $found = trim($tokens[$comment]['content']);
- $error = 'Incorrect closing comment; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Invalid', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($comment, $expected.$phpcsFile->eolChar);
- }
-
- return;
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/PostStatementCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/PostStatementCommentSniff.php
deleted file mode 100644
index 8cb9ff13..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/PostStatementCommentSniff.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-/**
- * Checks to ensure that there are no comments after statements.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class PostStatementCommentSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_COMMENT);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (substr($tokens[$stackPtr]['content'], 0, 2) !== '//') {
- return;
- }
-
- $commentLine = $tokens[$stackPtr]['line'];
- $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
-
- if ($tokens[$lastContent]['line'] !== $commentLine) {
- return;
- }
-
- if ($tokens[$lastContent]['code'] === T_CLOSE_CURLY_BRACKET) {
- return;
- }
-
- // Special case for JS files.
- if ($tokens[$lastContent]['code'] === T_COMMA
- || $tokens[$lastContent]['code'] === T_SEMICOLON
- ) {
- $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($lastContent - 1), null, true);
- if ($tokens[$lastContent]['code'] === T_CLOSE_CURLY_BRACKET) {
- return;
- }
- }
-
- $error = 'Comments may not appear after statements';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Found');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($stackPtr);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php
deleted file mode 100644
index 597d7ec8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php
+++ /dev/null
@@ -1,153 +0,0 @@
-<?php
-/**
- * Parses and verifies the variable doc comment.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting;
-
-use PHP_CodeSniffer\Sniffs\AbstractVariableSniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Common;
-
-class VariableCommentSniff extends AbstractVariableSniff
-{
-
-
- /**
- * Called to process class member vars.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function processMemberVar(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $ignore = array(
- T_PUBLIC,
- T_PRIVATE,
- T_PROTECTED,
- T_VAR,
- T_STATIC,
- T_WHITESPACE,
- );
-
- $commentEnd = $phpcsFile->findPrevious($ignore, ($stackPtr - 1), null, true);
- if ($commentEnd === false
- || ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
- && $tokens[$commentEnd]['code'] !== T_COMMENT)
- ) {
- $phpcsFile->addError('Missing member variable doc comment', $stackPtr, 'Missing');
- return;
- }
-
- if ($tokens[$commentEnd]['code'] === T_COMMENT) {
- $phpcsFile->addError('You must use "/**" style comments for a member variable comment', $stackPtr, 'WrongStyle');
- return;
- }
-
- $commentStart = $tokens[$commentEnd]['comment_opener'];
-
- $foundVar = null;
- foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
- if ($tokens[$tag]['content'] === '@var') {
- if ($foundVar !== null) {
- $error = 'Only one @var tag is allowed in a member variable comment';
- $phpcsFile->addError($error, $tag, 'DuplicateVar');
- } else {
- $foundVar = $tag;
- }
- } else if ($tokens[$tag]['content'] === '@see') {
- // Make sure the tag isn't empty.
- $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $tag, $commentEnd);
- if ($string === false || $tokens[$string]['line'] !== $tokens[$tag]['line']) {
- $error = 'Content missing for @see tag in member variable comment';
- $phpcsFile->addError($error, $tag, 'EmptySees');
- }
- } else {
- $error = '%s tag is not allowed in member variable comment';
- $data = array($tokens[$tag]['content']);
- $phpcsFile->addWarning($error, $tag, 'TagNotAllowed', $data);
- }//end if
- }//end foreach
-
- // The @var tag is the only one we require.
- if ($foundVar === null) {
- $error = 'Missing @var tag in member variable comment';
- $phpcsFile->addError($error, $commentEnd, 'MissingVar');
- return;
- }
-
- $firstTag = $tokens[$commentStart]['comment_tags'][0];
- if ($foundVar !== null && $tokens[$firstTag]['content'] !== '@var') {
- $error = 'The @var tag must be the first tag in a member variable comment';
- $phpcsFile->addError($error, $foundVar, 'VarOrder');
- }
-
- // Make sure the tag isn't empty and has the correct padding.
- $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $foundVar, $commentEnd);
- if ($string === false || $tokens[$string]['line'] !== $tokens[$foundVar]['line']) {
- $error = 'Content missing for @var tag in member variable comment';
- $phpcsFile->addError($error, $foundVar, 'EmptyVar');
- return;
- }
-
- $varType = $tokens[($foundVar + 2)]['content'];
- $suggestedType = Common::suggestType($varType);
- if ($varType !== $suggestedType) {
- $error = 'Expected "%s" but found "%s" for @var tag in member variable comment';
- $data = array(
- $suggestedType,
- $varType,
- );
-
- $fix = $phpcsFile->addFixableError($error, ($foundVar + 2), 'IncorrectVarType', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($foundVar + 2), $suggestedType);
- }
- }
-
- }//end processMemberVar()
-
-
- /**
- * Called to process a normal variable.
- *
- * Not required for this sniff.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where this token was found.
- * @param int $stackPtr The position where the double quoted
- * string was found.
- *
- * @return void
- */
- protected function processVariable(File $phpcsFile, $stackPtr)
- {
-
- }//end processVariable()
-
-
- /**
- * Called to process variables found in double quoted strings.
- *
- * Not required for this sniff.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where this token was found.
- * @param int $stackPtr The position where the double quoted
- * string was found.
- *
- * @return void
- */
- protected function processVariableInString(File $phpcsFile, $stackPtr)
- {
-
- }//end processVariableInString()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ControlSignatureSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ControlSignatureSniff.php
deleted file mode 100644
index ab0dcc32..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ControlSignatureSniff.php
+++ /dev/null
@@ -1,271 +0,0 @@
-<?php
-/**
- * Verifies that control statements conform to their coding standards.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ControlSignatureSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return int[]
- */
- public function register()
- {
- return array(
- T_TRY,
- T_CATCH,
- T_DO,
- T_WHILE,
- T_FOR,
- T_IF,
- T_FOREACH,
- T_ELSE,
- T_ELSEIF,
- T_SWITCH,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[($stackPtr + 1)]) === false) {
- return;
- }
-
- // Single space after the keyword.
- $found = 1;
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $found = 0;
- } else if ($tokens[($stackPtr + 1)]['content'] !== ' ') {
- if (strpos($tokens[($stackPtr + 1)]['content'], $phpcsFile->eolChar) !== false) {
- $found = 'newline';
- } else {
- $found = strlen($tokens[($stackPtr + 1)]['content']);
- }
- }
-
- if ($found !== 1) {
- $error = 'Expected 1 space after %s keyword; %s found';
- $data = array(
- strtoupper($tokens[$stackPtr]['content']),
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterKeyword', $data);
- if ($fix === true) {
- if ($found === 0) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
- }
-
- // Single space after closing parenthesis.
- if (isset($tokens[$stackPtr]['parenthesis_closer']) === true
- && isset($tokens[$stackPtr]['scope_opener']) === true
- ) {
- $closer = $tokens[$stackPtr]['parenthesis_closer'];
- $opener = $tokens[$stackPtr]['scope_opener'];
- $content = $phpcsFile->getTokensAsString(($closer + 1), ($opener - $closer - 1));
-
- if ($content !== ' ') {
- $error = 'Expected 1 space after closing parenthesis; found %s';
- if ($tokens[$closer]['line'] !== $tokens[$opener]['line']) {
- $found = 'newline';
- } else if (trim($content) === '') {
- $found = strlen($content);
- } else {
- $found = '"'.str_replace($phpcsFile->eolChar, '\n', $content).'"';
- }
-
- $fix = $phpcsFile->addFixableError($error, $closer, 'SpaceAfterCloseParenthesis', array($found));
- if ($fix === true) {
- if ($closer === ($opener - 1)) {
- $phpcsFile->fixer->addContent($closer, ' ');
- } else {
- $phpcsFile->fixer->beginChangeset();
- if (trim($content) === '') {
- $phpcsFile->fixer->addContent($closer, ' ');
- if ($found !== 0) {
- for ($i = ($closer + 1); $i < $opener; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
- }
- } else {
- $phpcsFile->fixer->addContent($closer, ' '.$tokens[$opener]['content']);
- $phpcsFile->fixer->replaceToken($opener, '');
-
- if ($tokens[$opener]['line'] !== $tokens[$closer]['line']) {
- $next = $phpcsFile->findNext(T_WHITESPACE, ($opener + 1), null, true);
- if ($tokens[$next]['line'] !== $tokens[$opener]['line']) {
- for ($i = ($opener + 1); $i < $next; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
- }
- }
- }
-
- $phpcsFile->fixer->endChangeset();
- }//end if
- }//end if
- }//end if
- }//end if
-
- // Single newline after opening brace.
- if (isset($tokens[$stackPtr]['scope_opener']) === true) {
- $opener = $tokens[$stackPtr]['scope_opener'];
- for ($next = ($opener + 1); $next < $phpcsFile->numTokens; $next++) {
- $code = $tokens[$next]['code'];
-
- if ($code === T_WHITESPACE
- || ($code === T_INLINE_HTML
- && trim($tokens[$next]['content']) === '')
- ) {
- continue;
- }
-
- // Skip all empty tokens on the same line as the opener.
- if ($tokens[$next]['line'] === $tokens[$opener]['line']
- && (isset(Tokens::$emptyTokens[$code]) === true
- || $code === T_CLOSE_TAG)
- ) {
- continue;
- }
-
- // We found the first bit of a code, or a comment on the
- // following line.
- break;
- }//end for
-
- if ($tokens[$next]['line'] === $tokens[$opener]['line']) {
- $error = 'Newline required after opening brace';
- $fix = $phpcsFile->addFixableError($error, $opener, 'NewlineAfterOpenBrace');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($opener + 1); $i < $next; $i++) {
- if (trim($tokens[$i]['content']) !== '') {
- break;
- }
-
- // Remove whitespace.
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->addContent($opener, $phpcsFile->eolChar);
- $phpcsFile->fixer->endChangeset();
- }
- }//end if
- } else if ($tokens[$stackPtr]['code'] === T_WHILE) {
- // Zero spaces after parenthesis closer.
- $closer = $tokens[$stackPtr]['parenthesis_closer'];
- $found = 0;
- if ($tokens[($closer + 1)]['code'] === T_WHITESPACE) {
- if (strpos($tokens[($closer + 1)]['content'], $phpcsFile->eolChar) !== false) {
- $found = 'newline';
- } else {
- $found = strlen($tokens[($closer + 1)]['content']);
- }
- }
-
- if ($found !== 0) {
- $error = 'Expected 0 spaces before semicolon; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $closer, 'SpaceBeforeSemicolon', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($closer + 1), '');
- }
- }
- }//end if
-
- // Only want to check multi-keyword structures from here on.
- if ($tokens[$stackPtr]['code'] === T_DO) {
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- return;
- }
-
- $closer = $tokens[$stackPtr]['scope_closer'];
- } else if ($tokens[$stackPtr]['code'] === T_ELSE
- || $tokens[$stackPtr]['code'] === T_ELSEIF
- || $tokens[$stackPtr]['code'] === T_CATCH
- ) {
- if (isset($tokens[$stackPtr]['scope_opener']) === true
- && $tokens[$tokens[$stackPtr]['scope_opener']]['code'] === T_COLON
- ) {
- // Special case for alternate syntax, where this token is actually
- // the closer for the previous block, so there is no spacing to check.
- return;
- }
-
- $closer = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if ($closer === false || $tokens[$closer]['code'] !== T_CLOSE_CURLY_BRACKET) {
- return;
- }
- } else {
- return;
- }//end if
-
- // Single space after closing brace.
- $found = 1;
- if ($tokens[($closer + 1)]['code'] !== T_WHITESPACE) {
- $found = 0;
- } else if ($tokens[($closer + 1)]['content'] !== ' ') {
- if (strpos($tokens[($closer + 1)]['content'], $phpcsFile->eolChar) !== false) {
- $found = 'newline';
- } else {
- $found = strlen($tokens[($closer + 1)]['content']);
- }
- }
-
- if ($found !== 1) {
- $error = 'Expected 1 space after closing brace; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $closer, 'SpaceAfterCloseBrace', $data);
- if ($fix === true) {
- if ($found === 0) {
- $phpcsFile->fixer->addContent($closer, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($closer + 1), ' ');
- }
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ElseIfDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ElseIfDeclarationSniff.php
deleted file mode 100644
index bece3882..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ElseIfDeclarationSniff.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Ensures the use of else if over elseif.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ElseIfDeclarationSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_ELSEIF);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $error = 'Usage of ELSEIF not allowed; use ELSE IF instead';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotAllowed');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, 'else if');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ForEachLoopDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ForEachLoopDeclarationSniff.php
deleted file mode 100644
index 2d3d41a1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ForEachLoopDeclarationSniff.php
+++ /dev/null
@@ -1,237 +0,0 @@
-<?php
-/**
- * Verifies that there is a space between each condition of foreach loops.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ForEachLoopDeclarationSniff implements Sniff
-{
-
-
- /**
- * How many spaces should follow the opening bracket.
- *
- * @var integer
- */
- public $requiredSpacesAfterOpen = 0;
-
- /**
- * How many spaces should precede the closing bracket.
- *
- * @var integer
- */
- public $requiredSpacesBeforeClose = 0;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_FOREACH);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $this->requiredSpacesAfterOpen = (int) $this->requiredSpacesAfterOpen;
- $this->requiredSpacesBeforeClose = (int) $this->requiredSpacesBeforeClose;
- $tokens = $phpcsFile->getTokens();
-
- $openingBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr);
- if ($openingBracket === false) {
- $error = 'Possible parse error: FOREACH has no opening parenthesis';
- $phpcsFile->addWarning($error, $stackPtr, 'MissingOpenParenthesis');
- return;
- }
-
- if (isset($tokens[$openingBracket]['parenthesis_closer']) === false) {
- $error = 'Possible parse error: FOREACH has no closing parenthesis';
- $phpcsFile->addWarning($error, $stackPtr, 'MissingCloseParenthesis');
- return;
- }
-
- $closingBracket = $tokens[$openingBracket]['parenthesis_closer'];
-
- if ($this->requiredSpacesAfterOpen === 0 && $tokens[($openingBracket + 1)]['code'] === T_WHITESPACE) {
- $error = 'Space found after opening bracket of FOREACH loop';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterOpen');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($openingBracket + 1), '');
- }
- } else if ($this->requiredSpacesAfterOpen > 0) {
- $spaceAfterOpen = 0;
- if ($tokens[($openingBracket + 1)]['code'] === T_WHITESPACE) {
- $spaceAfterOpen = strlen($tokens[($openingBracket + 1)]['content']);
- }
-
- if ($spaceAfterOpen !== $this->requiredSpacesAfterOpen) {
- $error = 'Expected %s spaces after opening bracket; %s found';
- $data = array(
- $this->requiredSpacesAfterOpen,
- $spaceAfterOpen,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterOpen', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesAfterOpen);
- if ($spaceAfterOpen === 0) {
- $phpcsFile->fixer->addContent($openingBracket, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($openingBracket + 1), $padding);
- }
- }
- }
- }//end if
-
- if ($this->requiredSpacesBeforeClose === 0 && $tokens[($closingBracket - 1)]['code'] === T_WHITESPACE) {
- $error = 'Space found before closing bracket of FOREACH loop';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeClose');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($closingBracket - 1), '');
- }
- } else if ($this->requiredSpacesBeforeClose > 0) {
- $spaceBeforeClose = 0;
- if ($tokens[($closingBracket - 1)]['code'] === T_WHITESPACE) {
- $spaceBeforeClose = strlen($tokens[($closingBracket - 1)]['content']);
- }
-
- if ($spaceBeforeClose !== $this->requiredSpacesBeforeClose) {
- $error = 'Expected %s spaces before closing bracket; %s found';
- $data = array(
- $this->requiredSpacesBeforeClose,
- $spaceBeforeClose,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceBeforeClose', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesBeforeClose);
- if ($spaceBeforeClose === 0) {
- $phpcsFile->fixer->addContentBefore($closingBracket, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($closingBracket - 1), $padding);
- }
- }
- }
- }//end if
-
- $asToken = $phpcsFile->findNext(T_AS, $openingBracket);
- if ($asToken === false) {
- $error = 'Possible parse error: FOREACH has no AS statement';
- $phpcsFile->addWarning($error, $stackPtr, 'MissingAs');
- return;
- }
-
- $content = $tokens[$asToken]['content'];
- if ($content !== strtolower($content)) {
- $expected = strtolower($content);
- $error = 'AS keyword must be lowercase; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $content,
- );
-
- $fix = $phpcsFile->addFixableError($error, $asToken, 'AsNotLower', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($asToken, $expected);
- }
- }
-
- $doubleArrow = $phpcsFile->findNext(T_DOUBLE_ARROW, $asToken, $closingBracket);
-
- if ($doubleArrow !== false) {
- if ($tokens[($doubleArrow - 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space before "=>"; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceBeforeArrow');
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore($doubleArrow, ' ');
- }
- } else {
- if (strlen($tokens[($doubleArrow - 1)]['content']) !== 1) {
- $spaces = strlen($tokens[($doubleArrow - 1)]['content']);
- $error = 'Expected 1 space before "=>"; %s found';
- $data = array($spaces);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeArrow', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($doubleArrow - 1), ' ');
- }
- }
- }
-
- if ($tokens[($doubleArrow + 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space after "=>"; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfterArrow');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($doubleArrow, ' ');
- }
- } else {
- if (strlen($tokens[($doubleArrow + 1)]['content']) !== 1) {
- $spaces = strlen($tokens[($doubleArrow + 1)]['content']);
- $error = 'Expected 1 space after "=>"; %s found';
- $data = array($spaces);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterArrow', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($doubleArrow + 1), ' ');
- }
- }
- }
- }//end if
-
- if ($tokens[($asToken - 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space before "as"; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceBeforeAs');
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore($asToken, ' ');
- }
- } else {
- if (strlen($tokens[($asToken - 1)]['content']) !== 1) {
- $spaces = strlen($tokens[($asToken - 1)]['content']);
- $error = 'Expected 1 space before "as"; %s found';
- $data = array($spaces);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeAs', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($asToken - 1), ' ');
- }
- }
- }
-
- if ($tokens[($asToken + 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space after "as"; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfterAs');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($asToken, ' ');
- }
- } else {
- if (strlen($tokens[($asToken + 1)]['content']) !== 1) {
- $spaces = strlen($tokens[($asToken + 1)]['content']);
- $error = 'Expected 1 space after "as"; %s found';
- $data = array($spaces);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterAs', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($asToken + 1), ' ');
- }
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ForLoopDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ForLoopDeclarationSniff.php
deleted file mode 100644
index dd0eb5f8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/ForLoopDeclarationSniff.php
+++ /dev/null
@@ -1,217 +0,0 @@
-<?php
-/**
- * Verifies that there is a space between each condition of for loops.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ForLoopDeclarationSniff implements Sniff
-{
-
- /**
- * How many spaces should follow the opening bracket.
- *
- * @var integer
- */
- public $requiredSpacesAfterOpen = 0;
-
- /**
- * How many spaces should precede the closing bracket.
- *
- * @var integer
- */
- public $requiredSpacesBeforeClose = 0;
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_FOR);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $this->requiredSpacesAfterOpen = (int) $this->requiredSpacesAfterOpen;
- $this->requiredSpacesBeforeClose = (int) $this->requiredSpacesBeforeClose;
- $tokens = $phpcsFile->getTokens();
-
- $openingBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr);
- if ($openingBracket === false) {
- $error = 'Possible parse error: no opening parenthesis for FOR keyword';
- $phpcsFile->addWarning($error, $stackPtr, 'NoOpenBracket');
- return;
- }
-
- $closingBracket = $tokens[$openingBracket]['parenthesis_closer'];
-
- if ($this->requiredSpacesAfterOpen === 0 && $tokens[($openingBracket + 1)]['code'] === T_WHITESPACE) {
- $error = 'Space found after opening bracket of FOR loop';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterOpen');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($openingBracket + 1), '');
- }
- } else if ($this->requiredSpacesAfterOpen > 0) {
- $spaceAfterOpen = 0;
- if ($tokens[($openingBracket + 1)]['code'] === T_WHITESPACE) {
- $spaceAfterOpen = strlen($tokens[($openingBracket + 1)]['content']);
- }
-
- if ($spaceAfterOpen !== $this->requiredSpacesAfterOpen) {
- $error = 'Expected %s spaces after opening bracket; %s found';
- $data = array(
- $this->requiredSpacesAfterOpen,
- $spaceAfterOpen,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterOpen', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesAfterOpen);
- if ($spaceAfterOpen === 0) {
- $phpcsFile->fixer->addContent($openingBracket, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($openingBracket + 1), $padding);
- }
- }
- }
- }//end if
-
- if ($this->requiredSpacesBeforeClose === 0 && $tokens[($closingBracket - 1)]['code'] === T_WHITESPACE) {
- $error = 'Space found before closing bracket of FOR loop';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeClose');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($closingBracket - 1), '');
- }
- } else if ($this->requiredSpacesBeforeClose > 0) {
- $spaceBeforeClose = 0;
- if ($tokens[($closingBracket - 1)]['code'] === T_WHITESPACE) {
- $spaceBeforeClose = strlen($tokens[($closingBracket - 1)]['content']);
- }
-
- if ($this->requiredSpacesBeforeClose !== $spaceBeforeClose) {
- $error = 'Expected %s spaces before closing bracket; %s found';
- $data = array(
- $this->requiredSpacesBeforeClose,
- $spaceBeforeClose,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeClose', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesBeforeClose);
- if ($spaceBeforeClose === 0) {
- $phpcsFile->fixer->addContentBefore($closingBracket, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($closingBracket - 1), $padding);
- }
- }
- }
- }//end if
-
- $firstSemicolon = $phpcsFile->findNext(T_SEMICOLON, $openingBracket, $closingBracket);
-
- // Check whitespace around each of the tokens.
- if ($firstSemicolon !== false) {
- if ($tokens[($firstSemicolon - 1)]['code'] === T_WHITESPACE) {
- $error = 'Space found before first semicolon of FOR loop';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeFirst');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($firstSemicolon - 1), '');
- }
- }
-
- if ($tokens[($firstSemicolon + 1)]['code'] !== T_WHITESPACE
- && $tokens[($firstSemicolon + 1)]['code'] !== T_SEMICOLON
- ) {
- $error = 'Expected 1 space after first semicolon of FOR loop; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfterFirst');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($firstSemicolon, ' ');
- }
- } else {
- if (strlen($tokens[($firstSemicolon + 1)]['content']) !== 1) {
- $spaces = strlen($tokens[($firstSemicolon + 1)]['content']);
- $error = 'Expected 1 space after first semicolon of FOR loop; %s found';
- $data = array($spaces);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterFirst', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($firstSemicolon + 1), ' ');
- }
- }
- }
-
- $secondSemicolon = $phpcsFile->findNext(T_SEMICOLON, ($firstSemicolon + 1));
-
- if ($secondSemicolon !== false) {
- if ($tokens[($secondSemicolon - 1)]['code'] === T_WHITESPACE
- && $tokens[($firstSemicolon + 1)]['code'] !== T_SEMICOLON
- ) {
- $error = 'Space found before second semicolon of FOR loop';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeSecond');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($secondSemicolon - 1), '');
- }
- }
-
- if (($secondSemicolon + 1) !== $closingBracket
- && $tokens[($secondSemicolon + 1)]['code'] !== T_WHITESPACE
- ) {
- $error = 'Expected 1 space after second semicolon of FOR loop; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfterSecond');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($secondSemicolon, ' ');
- }
- } else {
- if (strlen($tokens[($secondSemicolon + 1)]['content']) !== 1) {
- $spaces = strlen($tokens[($secondSemicolon + 1)]['content']);
- $data = array($spaces);
- if (($secondSemicolon + 2) === $closingBracket) {
- $error = 'Expected no space after second semicolon of FOR loop; %s found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterSecondNoThird', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($secondSemicolon + 1), '');
- }
- } else {
- $error = 'Expected 1 space after second semicolon of FOR loop; %s found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterSecond', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($secondSemicolon + 1), ' ');
- }
- }
- }
- }//end if
- }//end if
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/InlineIfDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/InlineIfDeclarationSniff.php
deleted file mode 100644
index 144513e5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/InlineIfDeclarationSniff.php
+++ /dev/null
@@ -1,151 +0,0 @@
-<?php
-/**
- * Tests the spacing of shorthand IF statements.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class InlineIfDeclarationSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_INLINE_THEN);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $openBracket = null;
- $closeBracket = null;
- if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- $parens = $tokens[$stackPtr]['nested_parenthesis'];
- $openBracket = array_pop($parens);
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
- }
-
- // Find the beginning of the statement. If we don't find a
- // semicolon (end of statement) or comma (end of array value)
- // then assume the content before the closing parenthesis is the end.
- $else = $phpcsFile->findNext(T_INLINE_ELSE, ($stackPtr + 1));
- $statementEnd = $phpcsFile->findNext(array(T_SEMICOLON, T_COMMA), ($else + 1), $closeBracket);
- if ($statementEnd === false) {
- $statementEnd = $phpcsFile->findPrevious(T_WHITESPACE, ($closeBracket - 1), null, true);
- }
-
- // Make sure it's all on the same line.
- if ($tokens[$statementEnd]['line'] !== $tokens[$stackPtr]['line']) {
- $error = 'Inline shorthand IF statement must be declared on a single line';
- $phpcsFile->addError($error, $stackPtr, 'NotSingleLine');
- return;
- }
-
- // Make sure there are spaces around the question mark.
- $contentBefore = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- $contentAfter = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$contentBefore]['code'] !== T_CLOSE_PARENTHESIS) {
- $error = 'Inline shorthand IF statement requires brackets around comparison';
- $phpcsFile->addError($error, $stackPtr, 'NoBrackets');
- }
-
- $spaceBefore = ($tokens[$stackPtr]['column'] - ($tokens[$contentBefore]['column'] + $tokens[$contentBefore]['length']));
- if ($spaceBefore !== 1) {
- $error = 'Inline shorthand IF statement requires 1 space before THEN; %s found';
- $data = array($spaceBefore);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeThen', $data);
- if ($fix === true) {
- if ($spaceBefore === 0) {
- $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
- }
- }
- }
-
- // If there is no content between the ? and the : operators, then they are
- // trying to replicate an elvis operator, even though PHP doesn't have one.
- // In this case, we want no spaces between the two operators so ?: looks like
- // an operator itself.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$next]['code'] === T_INLINE_ELSE) {
- $inlineElse = $next;
- if ($inlineElse !== ($stackPtr + 1)) {
- $error = 'Inline shorthand IF statement without THEN statement requires 0 spaces between THEN and ELSE';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ElvisSpacing');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
- }
- }
- } else {
- $spaceAfter = (($tokens[$contentAfter]['column']) - ($tokens[$stackPtr]['column'] + 1));
- if ($spaceAfter !== 1) {
- $error = 'Inline shorthand IF statement requires 1 space after THEN; %s found';
- $data = array($spaceAfter);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterThen', $data);
- if ($spaceAfter === 0) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
-
- // Make sure the ELSE has the correct spacing.
- $inlineElse = $phpcsFile->findNext(T_INLINE_ELSE, ($stackPtr + 1), $statementEnd, false);
- $contentBefore = $phpcsFile->findPrevious(T_WHITESPACE, ($inlineElse - 1), null, true);
- $spaceBefore = ($tokens[$inlineElse]['column'] - ($tokens[$contentBefore]['column'] + $tokens[$contentBefore]['length']));
- if ($spaceBefore !== 1) {
- $error = 'Inline shorthand IF statement requires 1 space before ELSE; %s found';
- $data = array($spaceBefore);
- $fix = $phpcsFile->addFixableError($error, $inlineElse, 'SpacingBeforeElse', $data);
- if ($fix === true) {
- if ($spaceBefore === 0) {
- $phpcsFile->fixer->addContentBefore($inlineElse, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($inlineElse - 1), ' ');
- }
- }
- }
- }//end if
-
- $contentAfter = $phpcsFile->findNext(T_WHITESPACE, ($inlineElse + 1), null, true);
- $spaceAfter = (($tokens[$contentAfter]['column']) - ($tokens[$inlineElse]['column'] + 1));
- if ($spaceAfter !== 1) {
- $error = 'Inline shorthand IF statement requires 1 space after ELSE; %s found';
- $data = array($spaceAfter);
- $fix = $phpcsFile->addFixableError($error, $inlineElse, 'SpacingAfterElse', $data);
- if ($spaceAfter === 0) {
- $phpcsFile->fixer->addContent($inlineElse, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($inlineElse + 1), ' ');
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/LowercaseDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/LowercaseDeclarationSniff.php
deleted file mode 100644
index f5e1af83..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/LowercaseDeclarationSniff.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/**
- * Ensures all control structure keywords are lowercase.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LowercaseDeclarationSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_IF,
- T_ELSE,
- T_ELSEIF,
- T_FOREACH,
- T_FOR,
- T_DO,
- T_SWITCH,
- T_WHILE,
- T_TRY,
- T_CATCH,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $content = $tokens[$stackPtr]['content'];
- if ($content !== strtolower($content)) {
- $error = '%s keyword must be lowercase; expected "%s" but found "%s"';
- $data = array(
- strtoupper($content),
- strtolower($content),
- $content,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'FoundUppercase', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, strtolower($content));
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/SwitchDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/SwitchDeclarationSniff.php
deleted file mode 100644
index 5931c062..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/ControlStructures/SwitchDeclarationSniff.php
+++ /dev/null
@@ -1,304 +0,0 @@
-<?php
-/**
- * Enforces switch statement formatting.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class SwitchDeclarationSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * The number of spaces code should be indented.
- *
- * @var integer
- */
- public $indent = 4;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_SWITCH);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // We can't process SWITCH statements unless we know where they start and end.
- if (isset($tokens[$stackPtr]['scope_opener']) === false
- || isset($tokens[$stackPtr]['scope_closer']) === false
- ) {
- return;
- }
-
- $switch = $tokens[$stackPtr];
- $nextCase = $stackPtr;
- $caseAlignment = ($switch['column'] + $this->indent);
- $caseCount = 0;
- $foundDefault = false;
-
- while (($nextCase = $phpcsFile->findNext(array(T_CASE, T_DEFAULT, T_SWITCH), ($nextCase + 1), $switch['scope_closer'])) !== false) {
- // Skip nested SWITCH statements; they are handled on their own.
- if ($tokens[$nextCase]['code'] === T_SWITCH) {
- $nextCase = $tokens[$nextCase]['scope_closer'];
- continue;
- }
-
- if ($tokens[$nextCase]['code'] === T_DEFAULT) {
- $type = 'Default';
- $foundDefault = true;
- } else {
- $type = 'Case';
- $caseCount++;
- }
-
- if ($tokens[$nextCase]['content'] !== strtolower($tokens[$nextCase]['content'])) {
- $expected = strtolower($tokens[$nextCase]['content']);
- $error = strtoupper($type).' keyword must be lowercase; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $tokens[$nextCase]['content'],
- );
-
- $fix = $phpcsFile->addFixableError($error, $nextCase, $type.'NotLower', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($nextCase, $expected);
- }
- }
-
- if ($tokens[$nextCase]['column'] !== $caseAlignment) {
- $error = strtoupper($type).' keyword must be indented '.$this->indent.' spaces from SWITCH keyword';
- $fix = $phpcsFile->addFixableError($error, $nextCase, $type.'Indent');
-
- if ($fix === true) {
- $padding = str_repeat(' ', ($caseAlignment - 1));
- if ($tokens[$nextCase]['column'] === 1
- || $tokens[($nextCase - 1)]['code'] !== T_WHITESPACE
- ) {
- $phpcsFile->fixer->addContentBefore($nextCase, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($nextCase - 1), $padding);
- }
- }
- }
-
- if ($type === 'Case'
- && ($tokens[($nextCase + 1)]['type'] !== 'T_WHITESPACE'
- || $tokens[($nextCase + 1)]['content'] !== ' ')
- ) {
- $error = 'CASE keyword must be followed by a single space';
- $fix = $phpcsFile->addFixableError($error, $nextCase, 'SpacingAfterCase');
- if ($fix === true) {
- if ($tokens[($nextCase + 1)]['type'] !== 'T_WHITESPACE') {
- $phpcsFile->fixer->addContent($nextCase, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($nextCase + 1), ' ');
- }
- }
- }
-
- if (isset($tokens[$nextCase]['scope_opener']) === false) {
- $error = 'Possible parse error: CASE missing opening colon';
- $phpcsFile->addWarning($error, $nextCase, 'MissingColon');
- continue;
- }
-
- $opener = $tokens[$nextCase]['scope_opener'];
- if ($tokens[($opener - 1)]['type'] === 'T_WHITESPACE') {
- $error = 'There must be no space before the colon in a '.strtoupper($type).' statement';
- $fix = $phpcsFile->addFixableError($error, $nextCase, 'SpaceBeforeColon'.$type);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($opener - 1), '');
- }
- }
-
- $nextBreak = $tokens[$nextCase]['scope_closer'];
- if ($tokens[$nextBreak]['code'] === T_BREAK
- || $tokens[$nextBreak]['code'] === T_RETURN
- || $tokens[$nextBreak]['code'] === T_CONTINUE
- || $tokens[$nextBreak]['code'] === T_THROW
- || $tokens[$nextBreak]['code'] === T_EXIT
- ) {
- if ($tokens[$nextBreak]['scope_condition'] === $nextCase) {
- // Only need to check a couple of things once, even if the
- // break is shared between multiple case statements, or even
- // the default case.
- if ($tokens[$nextBreak]['column'] !== $caseAlignment) {
- $error = 'Case breaking statement must be indented '.$this->indent.' spaces from SWITCH keyword';
- $fix = $phpcsFile->addFixableError($error, $nextBreak, 'BreakIndent');
-
- if ($fix === true) {
- $padding = str_repeat(' ', ($caseAlignment - 1));
- if ($tokens[$nextBreak]['column'] === 1
- || $tokens[($nextBreak - 1)]['code'] !== T_WHITESPACE
- ) {
- $phpcsFile->fixer->addContentBefore($nextBreak, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($nextBreak - 1), $padding);
- }
- }
- }
-
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($nextBreak - 1), $stackPtr, true);
- if ($tokens[$prev]['line'] !== ($tokens[$nextBreak]['line'] - 1)) {
- $error = 'Blank lines are not allowed before case breaking statements';
- $phpcsFile->addError($error, $nextBreak, 'SpacingBeforeBreak');
- }
-
- $nextLine = $tokens[$tokens[$stackPtr]['scope_closer']]['line'];
- $semicolon = $phpcsFile->findEndOfStatement($nextBreak);
- for ($i = ($semicolon + 1); $i < $tokens[$stackPtr]['scope_closer']; $i++) {
- if ($tokens[$i]['type'] !== 'T_WHITESPACE') {
- $nextLine = $tokens[$i]['line'];
- break;
- }
- }
-
- if ($type === 'Case') {
- // Ensure the BREAK statement is followed by
- // a single blank line, or the end switch brace.
- if ($nextLine !== ($tokens[$semicolon]['line'] + 2) && $i !== $tokens[$stackPtr]['scope_closer']) {
- $error = 'Case breaking statements must be followed by a single blank line';
- $fix = $phpcsFile->addFixableError($error, $nextBreak, 'SpacingAfterBreak');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($semicolon + 1); $i <= $tokens[$stackPtr]['scope_closer']; $i++) {
- if ($tokens[$i]['line'] === $nextLine) {
- $phpcsFile->fixer->addNewlineBefore($i);
- break;
- }
-
- if ($tokens[$i]['line'] === $tokens[$semicolon]['line']) {
- continue;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }//end if
- } else {
- // Ensure the BREAK statement is not followed by a blank line.
- if ($nextLine !== ($tokens[$semicolon]['line'] + 1)) {
- $error = 'Blank lines are not allowed after the DEFAULT case\'s breaking statement';
- $phpcsFile->addError($error, $nextBreak, 'SpacingAfterDefaultBreak');
- }
- }//end if
-
- $caseLine = $tokens[$nextCase]['line'];
- $nextLine = $tokens[$nextBreak]['line'];
- for ($i = ($opener + 1); $i < $nextBreak; $i++) {
- if ($tokens[$i]['type'] !== 'T_WHITESPACE') {
- $nextLine = $tokens[$i]['line'];
- break;
- }
- }
-
- if ($nextLine !== ($caseLine + 1)) {
- $error = 'Blank lines are not allowed after '.strtoupper($type).' statements';
- $phpcsFile->addError($error, $nextCase, 'SpacingAfter'.$type);
- }
- }//end if
-
- if ($tokens[$nextBreak]['code'] === T_BREAK) {
- if ($type === 'Case') {
- // Ensure empty CASE statements are not allowed.
- // They must have some code content in them. A comment is not enough.
- // But count RETURN statements as valid content if they also
- // happen to close the CASE statement.
- $foundContent = false;
- for ($i = ($tokens[$nextCase]['scope_opener'] + 1); $i < $nextBreak; $i++) {
- if ($tokens[$i]['code'] === T_CASE) {
- $i = $tokens[$i]['scope_opener'];
- continue;
- }
-
- if (isset(Tokens::$emptyTokens[$tokens[$i]['code']]) === false) {
- $foundContent = true;
- break;
- }
- }
-
- if ($foundContent === false) {
- $error = 'Empty CASE statements are not allowed';
- $phpcsFile->addError($error, $nextCase, 'EmptyCase');
- }
- } else {
- // Ensure empty DEFAULT statements are not allowed.
- // They must (at least) have a comment describing why
- // the default case is being ignored.
- $foundContent = false;
- for ($i = ($tokens[$nextCase]['scope_opener'] + 1); $i < $nextBreak; $i++) {
- if ($tokens[$i]['type'] !== 'T_WHITESPACE') {
- $foundContent = true;
- break;
- }
- }
-
- if ($foundContent === false) {
- $error = 'Comment required for empty DEFAULT case';
- $phpcsFile->addError($error, $nextCase, 'EmptyDefault');
- }
- }//end if
- }//end if
- } else if ($type === 'Default') {
- $error = 'DEFAULT case must have a breaking statement';
- $phpcsFile->addError($error, $nextCase, 'DefaultNoBreak');
- }//end if
- }//end while
-
- if ($foundDefault === false) {
- $error = 'All SWITCH statements must contain a DEFAULT case';
- $phpcsFile->addError($error, $stackPtr, 'MissingDefault');
- }
-
- if ($tokens[$switch['scope_closer']]['column'] !== $switch['column']) {
- $error = 'Closing brace of SWITCH statement must be aligned with SWITCH keyword';
- $phpcsFile->addError($error, $switch['scope_closer'], 'CloseBraceAlign');
- }
-
- if ($caseCount === 0) {
- $error = 'SWITCH statements must contain at least one CASE statement';
- $phpcsFile->addError($error, $stackPtr, 'MissingCase');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Debug/JSLintSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Debug/JSLintSniff.php
deleted file mode 100644
index c4e1d7b0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Debug/JSLintSniff.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-/**
- * Runs jslint.js on the file.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Debug;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-
-class JSLintSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- * @throws \PHP_CodeSniffer\Exceptions\RuntimeException If jslint.js could not be run
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $rhinoPath = Config::getExecutablePath('jslint');
- $jslintPath = Config::getExecutablePath('jslint');
- if ($rhinoPath === null || $jslintPath === null) {
- return;
- }
-
- $fileName = $phpcsFile->getFilename();
-
- $rhinoPath = escapeshellcmd($rhinoPath);
- $jslintPath = escapeshellcmd($jslintPath);
-
- $cmd = "$rhinoPath \"$jslintPath\" ".escapeshellarg($fileName);
- $msg = exec($cmd, $output, $retval);
-
- if (is_array($output) === true) {
- foreach ($output as $finding) {
- $matches = array();
- $numMatches = preg_match('/Lint at line ([0-9]+).*:(.*)$/', $finding, $matches);
- if ($numMatches === 0) {
- continue;
- }
-
- $line = (int) $matches[1];
- $message = 'jslint says: '.trim($matches[2]);
- $phpcsFile->addWarningOnLine($message, $line, 'ExternalTool');
- }
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Debug/JavaScriptLintSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Debug/JavaScriptLintSniff.php
deleted file mode 100644
index 539228a5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Debug/JavaScriptLintSniff.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-/**
- * Runs JavaScript Lint on the file.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Debug;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-
-class JavaScriptLintSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $jslPath = Config::getExecutablePath('jsl');
- if (is_null($jslPath) === true) {
- return;
- }
-
- $fileName = $phpcsFile->getFilename();
-
- $cmd = '"'.escapeshellcmd($jslPath).'" -nologo -nofilelisting -nocontext -nosummary -output-format __LINE__:__ERROR__ -process '.escapeshellarg($fileName);
- $msg = exec($cmd, $output, $retval);
-
- // Variable $exitCode is the last line of $output if no error occurs, on
- // error it is numeric. Try to handle various error conditions and
- // provide useful error reporting.
- if ($retval === 2 || $retval === 4) {
- if (is_array($output) === true) {
- $msg = join('\n', $output);
- }
-
- throw new RuntimeException("Failed invoking JavaScript Lint, retval was [$retval], output was [$msg]");
- }
-
- if (is_array($output) === true) {
- foreach ($output as $finding) {
- $split = strpos($finding, ':');
- $line = substr($finding, 0, $split);
- $message = substr($finding, ($split + 1));
- $phpcsFile->addWarningOnLine(trim($message), $line, 'ExternalTool');
- }
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Files/FileExtensionSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Files/FileExtensionSniff.php
deleted file mode 100644
index 4cbcb3bb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Files/FileExtensionSniff.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
- * Tests that classes and interfaces are not declared in .php files.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class FileExtensionSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return int
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $fileName = $phpcsFile->getFileName();
- $extension = substr($fileName, strrpos($fileName, '.'));
- $nextClass = $phpcsFile->findNext(array(T_CLASS, T_INTERFACE, T_TRAIT), $stackPtr);
-
- if ($nextClass !== false) {
- $phpcsFile->recordMetric($stackPtr, 'File extension for class files', $extension);
- if ($extension === '.php') {
- $error = '%s found in ".php" file; use ".inc" extension instead';
- $data = array(ucfirst($tokens[$nextClass]['content']));
- $phpcsFile->addError($error, $stackPtr, 'ClassFound', $data);
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'File extension for non-class files', $extension);
- if ($extension === '.inc') {
- $error = 'No interface or class found in ".inc" file; use ".php" extension instead';
- $phpcsFile->addError($error, $stackPtr, 'NoClass');
- }
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Formatting/OperatorBracketSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Formatting/OperatorBracketSniff.php
deleted file mode 100644
index c914fc2d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Formatting/OperatorBracketSniff.php
+++ /dev/null
@@ -1,351 +0,0 @@
-<?php
-/**
- * Tests that all arithmetic operations are bracketed.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Formatting;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class OperatorBracketSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return Tokens::$operators;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($phpcsFile->tokenizerType === 'JS' && $tokens[$stackPtr]['code'] === T_PLUS) {
- // JavaScript uses the plus operator for string concatenation as well
- // so we cannot accurately determine if it is a string concat or addition.
- // So just ignore it.
- return;
- }
-
- // If the & is a reference, then we don't want to check for brackets.
- if ($tokens[$stackPtr]['code'] === T_BITWISE_AND && $phpcsFile->isReference($stackPtr) === true) {
- return;
- }
-
- // There is one instance where brackets aren't needed, which involves
- // the minus sign being used to assign a negative number to a variable.
- if ($tokens[$stackPtr]['code'] === T_MINUS) {
- // Check to see if we are trying to return -n.
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] === T_RETURN) {
- return;
- }
-
- $number = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$number]['code'] === T_LNUMBER || $tokens[$number]['code'] === T_DNUMBER) {
- $previous = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($previous !== false) {
- $isAssignment = in_array($tokens[$previous]['code'], Tokens::$assignmentTokens);
- $isEquality = in_array($tokens[$previous]['code'], Tokens::$equalityTokens);
- $isComparison = in_array($tokens[$previous]['code'], Tokens::$comparisonTokens);
- if ($isAssignment === true || $isEquality === true || $isComparison === true) {
- // This is a negative assignment or comparison.
- // We need to check that the minus and the number are
- // adjacent.
- if (($number - $stackPtr) !== 1) {
- $error = 'No space allowed between minus sign and number';
- $phpcsFile->addError($error, $stackPtr, 'SpacingAfterMinus');
- }
-
- return;
- }
- }
- }
- }//end if
-
- $previousToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true, null, true);
- if ($previousToken !== false) {
- // A list of tokens that indicate that the token is not
- // part of an arithmetic operation.
- $invalidTokens = array(
- T_COMMA,
- T_COLON,
- T_OPEN_PARENTHESIS,
- T_OPEN_SQUARE_BRACKET,
- T_OPEN_SHORT_ARRAY,
- T_CASE,
- );
-
- if (in_array($tokens[$previousToken]['code'], $invalidTokens) === true) {
- return;
- }
- }
-
- // Tokens that are allowed inside a bracketed operation.
- $allowed = array(
- T_VARIABLE,
- T_LNUMBER,
- T_DNUMBER,
- T_STRING,
- T_WHITESPACE,
- T_NS_SEPARATOR,
- T_THIS,
- T_SELF,
- T_OBJECT_OPERATOR,
- T_DOUBLE_COLON,
- T_OPEN_SQUARE_BRACKET,
- T_CLOSE_SQUARE_BRACKET,
- T_MODULUS,
- T_NONE,
- );
-
- $allowed += Tokens::$operators;
-
- $lastBracket = false;
- if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- $parenthesis = array_reverse($tokens[$stackPtr]['nested_parenthesis'], true);
- foreach ($parenthesis as $bracket => $endBracket) {
- $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($bracket - 1), null, true);
- $prevCode = $tokens[$prevToken]['code'];
-
- if ($prevCode === T_ISSET) {
- // This operation is inside an isset() call, but has
- // no bracket of it's own.
- break;
- }
-
- if ($prevCode === T_STRING || $prevCode === T_SWITCH) {
- // We allow simple operations to not be bracketed.
- // For example, ceil($one / $two).
- for ($prev = ($stackPtr - 1); $prev > $bracket; $prev--) {
- if (in_array($tokens[$prev]['code'], $allowed) === true) {
- continue;
- }
-
- if ($tokens[$prev]['code'] === T_CLOSE_PARENTHESIS) {
- $prev = $tokens[$prev]['parenthesis_opener'];
- } else {
- break;
- }
- }
-
- if ($prev !== $bracket) {
- break;
- }
-
- for ($next = ($stackPtr + 1); $next < $endBracket; $next++) {
- if (in_array($tokens[$next]['code'], $allowed) === true) {
- continue;
- }
-
- if ($tokens[$next]['code'] === T_OPEN_PARENTHESIS) {
- $next = $tokens[$next]['parenthesis_closer'];
- } else {
- break;
- }
- }
-
- if ($next !== $endBracket) {
- break;
- }
- }//end if
-
- if (in_array($prevCode, Tokens::$scopeOpeners) === true) {
- // This operation is inside a control structure like FOREACH
- // or IF, but has no bracket of it's own.
- // The only control structure allowed to do this is SWITCH.
- if ($prevCode !== T_SWITCH) {
- break;
- }
- }
-
- if ($prevCode === T_OPEN_PARENTHESIS) {
- // These are two open parenthesis in a row. If the current
- // one doesn't enclose the operator, go to the previous one.
- if ($endBracket < $stackPtr) {
- continue;
- }
- }
-
- $lastBracket = $bracket;
- break;
- }//end foreach
- }//end if
-
- if ($lastBracket === false) {
- // It is not in a bracketed statement at all.
- $this->addMissingBracketsError($phpcsFile, $stackPtr);
- return;
- } else if ($tokens[$lastBracket]['parenthesis_closer'] < $stackPtr) {
- // There are a set of brackets in front of it that don't include it.
- $this->addMissingBracketsError($phpcsFile, $stackPtr);
- return;
- } else {
- // We are enclosed in a set of bracket, so the last thing to
- // check is that we are not also enclosed in square brackets
- // like this: ($array[$index + 1]), which is invalid.
- $brackets = array(
- T_OPEN_SQUARE_BRACKET,
- T_CLOSE_SQUARE_BRACKET,
- );
-
- $squareBracket = $phpcsFile->findPrevious($brackets, ($stackPtr - 1), $lastBracket);
- if ($squareBracket !== false && $tokens[$squareBracket]['code'] === T_OPEN_SQUARE_BRACKET) {
- $closeSquareBracket = $phpcsFile->findNext($brackets, ($stackPtr + 1));
- if ($closeSquareBracket !== false && $tokens[$closeSquareBracket]['code'] === T_CLOSE_SQUARE_BRACKET) {
- $this->addMissingBracketsError($phpcsFile, $stackPtr);
- }
- }
-
- return;
- }//end if
-
- $lastAssignment = $phpcsFile->findPrevious(Tokens::$assignmentTokens, $stackPtr, null, false, null, true);
- if ($lastAssignment !== false && $lastAssignment > $lastBracket) {
- $this->addMissingBracketsError($phpcsFile, $stackPtr);
- }
-
- }//end process()
-
-
- /**
- * Add and fix the missing brackets error.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function addMissingBracketsError($phpcsFile, $stackPtr)
- {
- $error = 'Arithmetic operation must be bracketed';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'MissingBrackets');
-
- if ($fix === false) {
- return;
- }
-
- $tokens = $phpcsFile->getTokens();
-
- $allowed = array(
- T_VARIABLE => true,
- T_LNUMBER => true,
- T_DNUMBER => true,
- T_STRING => true,
- T_WHITESPACE => true,
- T_THIS => true,
- T_SELF => true,
- T_OBJECT_OPERATOR => true,
- T_DOUBLE_COLON => true,
- T_MODULUS => true,
- T_ISSET => true,
- T_ARRAY => true,
- T_NONE => true,
- );
-
- // Find the first token in the expression.
- for ($before = ($stackPtr - 1); $before > 0; $before--) {
- // Special case for plus operators because we can't tell if they are used
- // for addition or string contact. So assume string concat to be safe.
- if ($phpcsFile->tokenizerType === 'JS' && $tokens[$before]['code'] === T_PLUS) {
- break;
- }
-
- if (isset(Tokens::$emptyTokens[$tokens[$before]['code']]) === true
- || isset(Tokens::$operators[$tokens[$before]['code']]) === true
- || isset(Tokens::$castTokens[$tokens[$before]['code']]) === true
- || isset($allowed[$tokens[$before]['code']]) === true
- ) {
- continue;
- }
-
- if ($tokens[$before]['code'] === T_CLOSE_PARENTHESIS) {
- $before = $tokens[$before]['parenthesis_opener'];
- continue;
- }
-
- if ($tokens[$before]['code'] === T_CLOSE_SQUARE_BRACKET) {
- $before = $tokens[$before]['bracket_opener'];
- continue;
- }
-
- break;
- }//end for
-
- $before = $phpcsFile->findNext(Tokens::$emptyTokens, ($before + 1), null, true);
-
- // Find the last token in the expression.
- for ($after = ($stackPtr + 1); $after < $phpcsFile->numTokens; $after++) {
- // Special case for plus operators because we can't tell if they are used
- // for addition or string contact. So assume string concat to be safe.
- if ($phpcsFile->tokenizerType === 'JS' && $tokens[$after]['code'] === T_PLUS) {
- break;
- }
-
- if (isset(Tokens::$emptyTokens[$tokens[$after]['code']]) === true
- || isset(Tokens::$operators[$tokens[$after]['code']]) === true
- || isset(Tokens::$castTokens[$tokens[$after]['code']]) === true
- || isset($allowed[$tokens[$after]['code']]) === true
- ) {
- continue;
- }
-
- if ($tokens[$after]['code'] === T_OPEN_PARENTHESIS) {
- $after = $tokens[$after]['parenthesis_closer'];
- continue;
- }
-
- if ($tokens[$after]['code'] === T_OPEN_SQUARE_BRACKET) {
- $after = $tokens[$after]['bracket_closer'];
- continue;
- }
-
- break;
- }//end for
-
- $after = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($after - 1), null, true);
-
- // Can only fix this error if both tokens are available for fixing.
- // Adding one bracket without the other will create parse errors.
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($before, '('.$tokens[$before]['content']);
- $phpcsFile->fixer->replaceToken($after, $tokens[$after]['content'].')');
- $phpcsFile->fixer->endChangeset();
-
- }//end addMissingBracketsError()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php
deleted file mode 100644
index 47e99247..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php
+++ /dev/null
@@ -1,402 +0,0 @@
-<?php
-/**
- * Checks that arguments in function declarations are spaced correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class FunctionDeclarationArgumentSpacingSniff implements Sniff
-{
-
- /**
- * How many spaces should surround the equals signs.
- *
- * @var integer
- */
- public $equalsSpacing = 0;
-
- /**
- * How many spaces should follow the opening bracket.
- *
- * @var integer
- */
- public $requiredSpacesAfterOpen = 0;
-
- /**
- * How many spaces should precede the closing bracket.
- *
- * @var integer
- */
- public $requiredSpacesBeforeClose = 0;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_CLOSURE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['parenthesis_opener']) === false
- || isset($tokens[$stackPtr]['parenthesis_closer']) === false
- || $tokens[$stackPtr]['parenthesis_opener'] === null
- || $tokens[$stackPtr]['parenthesis_closer'] === null
- ) {
- return;
- }
-
- $this->equalsSpacing = (int) $this->equalsSpacing;
- $this->requiredSpacesAfterOpen = (int) $this->requiredSpacesAfterOpen;
- $this->requiredSpacesBeforeClose = (int) $this->requiredSpacesBeforeClose;
-
- $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
- $this->processBracket($phpcsFile, $openBracket);
-
- if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
- $use = $phpcsFile->findNext(T_USE, ($tokens[$openBracket]['parenthesis_closer'] + 1), $tokens[$stackPtr]['scope_opener']);
- if ($use !== false) {
- $openBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($use + 1), null);
- $this->processBracket($phpcsFile, $openBracket);
- }
- }
-
- }//end process()
-
-
- /**
- * Processes the contents of a single set of brackets.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $openBracket The position of the open bracket
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function processBracket($phpcsFile, $openBracket)
- {
- $tokens = $phpcsFile->getTokens();
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
- $multiLine = ($tokens[$openBracket]['line'] !== $tokens[$closeBracket]['line']);
-
- $nextParam = $openBracket;
- $params = array();
- while (($nextParam = $phpcsFile->findNext(T_VARIABLE, ($nextParam + 1), $closeBracket)) !== false) {
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($nextParam + 1), ($closeBracket + 1), true);
- if ($nextToken === false) {
- break;
- }
-
- $nextCode = $tokens[$nextToken]['code'];
-
- if ($nextCode === T_EQUAL) {
- // Check parameter default spacing.
- $spacesBefore = 0;
- if (($nextToken - $nextParam) > 1) {
- $spacesBefore = strlen($tokens[($nextParam + 1)]['content']);
- }
-
- if ($spacesBefore !== $this->equalsSpacing) {
- $error = 'Incorrect spacing between argument "%s" and equals sign; expected '.$this->equalsSpacing.' but found %s';
- $data = array(
- $tokens[$nextParam]['content'],
- $spacesBefore,
- );
-
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpaceBeforeEquals', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->equalsSpacing);
- if ($spacesBefore === 0) {
- $phpcsFile->fixer->addContentBefore($nextToken, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($nextToken - 1), $padding);
- }
- }
- }//end if
-
- $spacesAfter = 0;
- if ($tokens[($nextToken + 1)]['code'] === T_WHITESPACE) {
- $spacesAfter = strlen($tokens[($nextToken + 1)]['content']);
- }
-
- if ($spacesAfter !== $this->equalsSpacing) {
- $error = 'Incorrect spacing between default value and equals sign for argument "%s"; expected '.$this->equalsSpacing.' but found %s';
- $data = array(
- $tokens[$nextParam]['content'],
- $spacesAfter,
- );
-
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpaceAfterDefault', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->equalsSpacing);
- if ($spacesAfter === 0) {
- $phpcsFile->fixer->addContent($nextToken, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($nextToken + 1), $padding);
- }
- }
- }//end if
- }//end if
-
- // Find and check the comma (if there is one).
- $nextComma = $phpcsFile->findNext(T_COMMA, ($nextParam + 1), $closeBracket);
- if ($nextComma !== false) {
- // Comma found.
- if ($tokens[($nextComma - 1)]['code'] === T_WHITESPACE) {
- $error = 'Expected 0 spaces between argument "%s" and comma; %s found';
- $data = array(
- $tokens[$nextParam]['content'],
- strlen($tokens[($nextComma - 1)]['content']),
- );
-
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpaceBeforeComma', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($nextComma - 1), '');
- }
- }
- }
-
- $checkToken = ($nextParam - 1);
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, $checkToken, null, true);
- if ($tokens[$prev]['code'] === T_ELLIPSIS) {
- $checkToken = ($prev - 1);
- }
-
- // Take references into account when expecting the
- // location of whitespace.
- if ($phpcsFile->isReference($checkToken) === true) {
- $whitespace = ($checkToken - 1);
- } else {
- $whitespace = $checkToken;
- }
-
- if (empty($params) === false) {
- // This is not the first argument in the function declaration.
- $arg = $tokens[$nextParam]['content'];
-
- // Before we throw an error, make sure there is no type hint.
- $comma = $phpcsFile->findPrevious(T_COMMA, ($nextParam - 1));
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($comma + 1), null, true);
- if ($phpcsFile->isReference($nextToken) === true) {
- $nextToken++;
- }
-
- $gap = 0;
- if ($tokens[$whitespace]['code'] === T_WHITESPACE) {
- $gap = strlen($tokens[$whitespace]['content']);
- }
-
- if ($nextToken !== $nextParam) {
- // There was a type hint, so check the spacing between
- // the hint and the variable as well.
- $hint = $tokens[$nextToken]['content'];
-
- if ($gap !== 1) {
- $error = 'Expected 1 space between type hint and argument "%s"; %s found';
- $data = array(
- $arg,
- $gap,
- );
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpacingAfterHint', $data);
- if ($fix === true) {
- if ($gap === 0) {
- $phpcsFile->fixer->addContent($whitespace, ' ');
- } else {
- $phpcsFile->fixer->replaceToken($whitespace, ' ');
- }
- }
- }
-
- if ($multiLine === false) {
- if ($tokens[($comma + 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space between comma and type hint "%s"; 0 found';
- $data = array($hint);
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'NoSpaceBeforeHint', $data);
- if ($fix === true) {
- $phpcsFile->fixer->addContent($comma, ' ');
- }
- } else {
- $gap = strlen($tokens[($comma + 1)]['content']);
- if ($gap !== 1) {
- $error = 'Expected 1 space between comma and type hint "%s"; %s found';
- $data = array(
- $hint,
- $gap,
- );
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpacingBeforeHint', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($comma + 1), ' ');
- }
- }
- }//end if
- }//end if
- } else {
- // No type hint.
- if ($gap === 0) {
- $error = 'Expected 1 space between comma and argument "%s"; 0 found';
- $data = array($arg);
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'NoSpaceBeforeArg', $data);
- if ($fix === true) {
- $phpcsFile->fixer->addContent($whitespace, ' ');
- }
- } else if ($gap !== 1) {
- // Just make sure this is not actually an indent.
- if ($tokens[$whitespace]['line'] === $tokens[($whitespace - 1)]['line']) {
- $error = 'Expected 1 space between comma and argument "%s"; %s found';
- $data = array(
- $arg,
- $gap,
- );
-
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpacingBeforeArg', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($whitespace, ' ');
- }
- }
- }//end if
- }//end if
- } else {
- $gap = 0;
- if ($tokens[$whitespace]['code'] === T_WHITESPACE) {
- $gap = strlen($tokens[$whitespace]['content']);
- }
-
- $arg = $tokens[$nextParam]['content'];
-
- // Before we throw an error, make sure there is no type hint.
- $bracket = $phpcsFile->findPrevious(T_OPEN_PARENTHESIS, ($nextParam - 1));
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($bracket + 1), null, true);
- if ($phpcsFile->isReference($nextToken) === true) {
- $nextToken++;
- }
-
- if ($tokens[$nextToken]['code'] !== T_ELLIPSIS && $nextToken !== $nextParam) {
- // There was a type hint, so check the spacing between
- // the hint and the variable as well.
- $hint = $tokens[$nextToken]['content'];
-
- if ($gap !== 1) {
- $error = 'Expected 1 space between type hint and argument "%s"; %s found';
- $data = array(
- $arg,
- $gap,
- );
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpacingAfterHint', $data);
- if ($fix === true) {
- if ($gap === 0) {
- $phpcsFile->fixer->addContent($nextToken, ' ');
- } else {
- $phpcsFile->fixer->replaceToken(($nextToken + 1), ' ');
- }
- }
- }
-
- $spaceAfterOpen = 0;
- if ($tokens[($bracket + 1)]['code'] === T_WHITESPACE) {
- $spaceAfterOpen = strlen($tokens[($bracket + 1)]['content']);
- }
-
- if ($multiLine === false && $spaceAfterOpen !== $this->requiredSpacesAfterOpen) {
- $error = 'Expected %s spaces between opening bracket and type hint "%s"; %s found';
- $data = array(
- $this->requiredSpacesAfterOpen,
- $hint,
- $spaceAfterOpen,
- );
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpacingAfterOpenHint', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesAfterOpen);
- if ($spaceAfterOpen === 0) {
- $phpcsFile->fixer->addContent($openBracket, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($openBracket + 1), $padding);
- }
- }
- }
- } else if ($multiLine === false && $gap !== $this->requiredSpacesAfterOpen) {
- $error = 'Expected %s spaces between opening bracket and argument "%s"; %s found';
- $data = array(
- $this->requiredSpacesAfterOpen,
- $arg,
- $gap,
- );
- $fix = $phpcsFile->addFixableError($error, $nextToken, 'SpacingAfterOpen', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesAfterOpen);
- if ($gap === 0) {
- $phpcsFile->fixer->addContent($openBracket, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($openBracket + 1), $padding);
- }
- }
- }//end if
- }//end if
-
- $params[] = $nextParam;
- }//end while
-
- $gap = 0;
- if ($tokens[($closeBracket - 1)]['code'] === T_WHITESPACE) {
- $gap = strlen($tokens[($closeBracket - 1)]['content']);
- }
-
- if (empty($params) === true) {
- // There are no parameters for this function.
- if (($closeBracket - $openBracket) !== 1) {
- $error = 'Expected 0 spaces between brackets of function declaration; %s found';
- $data = array($gap);
- $fix = $phpcsFile->addFixableError($error, $openBracket, 'SpacingBetween', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($openBracket + 1), '');
- }
- }
- } else if ($multiLine === false && $gap !== $this->requiredSpacesBeforeClose) {
- $lastParam = array_pop($params);
- $error = 'Expected %s spaces between argument "%s" and closing bracket; %s found';
- $data = array(
- $this->requiredSpacesBeforeClose,
- $tokens[$lastParam]['content'],
- $gap,
- );
- $fix = $phpcsFile->addFixableError($error, $closeBracket, 'SpacingBeforeClose', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $this->requiredSpacesBeforeClose);
- if ($gap === 0) {
- $phpcsFile->fixer->addContentBefore($closeBracket, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($closeBracket - 1), $padding);
- }
- }
- }//end if
-
- }//end processBracket()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationSniff.php
deleted file mode 100644
index 6fcb2a23..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationSniff.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/**
- * Checks the function declaration is correct.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\AbstractPatternSniff;
-
-class FunctionDeclarationSniff extends AbstractPatternSniff
-{
-
-
- /**
- * Returns an array of patterns to check are correct.
- *
- * @return array
- */
- protected function getPatterns()
- {
- return array(
- 'function abc(...);',
- 'function abc(...)',
- 'abstract function abc(...);',
- );
-
- }//end getPatterns()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDuplicateArgumentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDuplicateArgumentSniff.php
deleted file mode 100644
index ac823239..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/FunctionDuplicateArgumentSniff.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/**
- * Checks that duplicate arguments are not used in function declarations.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class FunctionDuplicateArgumentSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_FUNCTION);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
- $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
-
- $foundVariables = array();
- for ($i = ($openBracket + 1); $i < $closeBracket; $i++) {
- if ($tokens[$i]['code'] === T_VARIABLE) {
- $variable = $tokens[$i]['content'];
- if (in_array($variable, $foundVariables) === true) {
- $error = 'Variable "%s" appears more than once in function declaration';
- $data = array($variable);
- $phpcsFile->addError($error, $i, 'Found', $data);
- } else {
- $foundVariables[] = $variable;
- }
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/GlobalFunctionSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/GlobalFunctionSniff.php
deleted file mode 100644
index b84a7124..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/GlobalFunctionSniff.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * Tests for functions outside of classes.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class GlobalFunctionSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_FUNCTION);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (empty($tokens[$stackPtr]['conditions']) === true) {
- $functionName = $phpcsFile->getDeclarationName($stackPtr);
- if ($functionName === null) {
- return;
- }
-
- // Special exception for __autoload as it needs to be global.
- if ($functionName !== '__autoload') {
- $error = 'Consider putting global function "%s" in a static class';
- $data = array($functionName);
- $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/LowercaseFunctionKeywordsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/LowercaseFunctionKeywordsSniff.php
deleted file mode 100644
index 7f2e7d3d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/LowercaseFunctionKeywordsSniff.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/**
- * Ensures all function keywords are lowercase.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LowercaseFunctionKeywordsSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_PUBLIC,
- T_PRIVATE,
- T_PROTECTED,
- T_STATIC,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $content = $tokens[$stackPtr]['content'];
- if ($content !== strtolower($content)) {
- $error = '%s keyword must be lowercase; expected "%s" but found "%s"';
- $data = array(
- strtoupper($content),
- strtolower($content),
- $content,
- );
- $phpcsFile->addError($error, $stackPtr, 'FoundUppercase', $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/MultiLineFunctionDeclarationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/MultiLineFunctionDeclarationSniff.php
deleted file mode 100644
index 4fae4964..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Functions/MultiLineFunctionDeclarationSniff.php
+++ /dev/null
@@ -1,202 +0,0 @@
-<?php
-/**
- * Ensure single and multi-line function declarations are defined correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions;
-
-use PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionDeclarationSniff as PEARFunctionDeclarationSniff;
-use PHP_CodeSniffer\Util\Tokens;
-
-class MultiLineFunctionDeclarationSniff extends PEARFunctionDeclarationSniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Determine if this is a multi-line function declaration.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param int $openBracket The position of the opening bracket
- * in the stack passed in $tokens.
- * @param array $tokens The stack of tokens that make up
- * the file.
- *
- * @return void
- */
- public function isMultiLineDeclaration($phpcsFile, $stackPtr, $openBracket, $tokens)
- {
- $bracketsToCheck = array($stackPtr => $openBracket);
-
- // Closures may use the USE keyword and so be multi-line in this way.
- if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
- $use = $phpcsFile->findNext(T_USE, ($tokens[$openBracket]['parenthesis_closer'] + 1), $tokens[$stackPtr]['scope_opener']);
- if ($use !== false) {
- $open = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($use + 1));
- if ($open !== false) {
- $bracketsToCheck[$use] = $open;
- }
- }
- }
-
- foreach ($bracketsToCheck as $stackPtr => $openBracket) {
- // If the first argument is on a new line, this is a multi-line
- // function declaration, even if there is only one argument.
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($openBracket + 1), null, true);
- if ($tokens[$next]['line'] !== $tokens[$stackPtr]['line']) {
- return true;
- }
-
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
-
- $end = $phpcsFile->findEndOfStatement($openBracket + 1);
- while ($tokens[$end]['code'] === T_COMMA) {
- // If the next bit of code is not on the same line, this is a
- // multi-line function declaration.
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($end + 1), $closeBracket, true);
- if ($next === false) {
- continue(2);
- }
-
- if ($tokens[$next]['line'] !== $tokens[$end]['line']) {
- return true;
- }
-
- $end = $phpcsFile->findEndOfStatement($next);
- }
-
- // We've reached the last argument, so see if the next content
- // (should be the close bracket) is also on the same line.
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($end + 1), $closeBracket, true);
- if ($next !== false && $tokens[$next]['line'] !== $tokens[$end]['line']) {
- return true;
- }
- }//end foreach
-
- return false;
-
- }//end isMultiLineDeclaration()
-
-
- /**
- * Processes multi-line declarations.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param array $tokens The stack of tokens that make up
- * the file.
- *
- * @return void
- */
- public function processMultiLineDeclaration($phpcsFile, $stackPtr, $tokens)
- {
- // We do everything the parent sniff does, and a bit more.
- parent::processMultiLineDeclaration($phpcsFile, $stackPtr, $tokens);
-
- $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
- $this->processBracket($phpcsFile, $openBracket, $tokens, 'function');
-
- if ($tokens[$stackPtr]['code'] !== T_CLOSURE) {
- return;
- }
-
- $use = $phpcsFile->findNext(T_USE, ($tokens[$stackPtr]['parenthesis_closer'] + 1), $tokens[$stackPtr]['scope_opener']);
- if ($use === false) {
- return;
- }
-
- $openBracket = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($use + 1), null);
- $this->processBracket($phpcsFile, $openBracket, $tokens, 'use');
-
- // Also check spacing.
- if ($tokens[($use - 1)]['code'] === T_WHITESPACE) {
- $gap = strlen($tokens[($use - 1)]['content']);
- } else {
- $gap = 0;
- }
-
- }//end processMultiLineDeclaration()
-
-
- /**
- * Processes the contents of a single set of brackets.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $openBracket The position of the open bracket
- * in the stack passed in $tokens.
- * @param array $tokens The stack of tokens that make up
- * the file.
- * @param string $type The type of the token the brackets
- * belong to (function or use).
- *
- * @return void
- */
- public function processBracket($phpcsFile, $openBracket, $tokens, $type='function')
- {
- $errorPrefix = '';
- if ($type === 'use') {
- $errorPrefix = 'Use';
- }
-
- $closeBracket = $tokens[$openBracket]['parenthesis_closer'];
-
- // The open bracket should be the last thing on the line.
- if ($tokens[$openBracket]['line'] !== $tokens[$closeBracket]['line']) {
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, ($openBracket + 1), null, true);
- if ($tokens[$next]['line'] !== ($tokens[$openBracket]['line'] + 1)) {
- $error = 'The first parameter of a multi-line '.$type.' declaration must be on the line after the opening bracket';
- $fix = $phpcsFile->addFixableError($error, $next, $errorPrefix.'FirstParamSpacing');
- if ($fix === true) {
- $phpcsFile->fixer->addNewline($openBracket);
- }
- }
- }
-
- // Each line between the brackets should contain a single parameter.
- $lastComma = null;
- for ($i = ($openBracket + 1); $i < $closeBracket; $i++) {
- // Skip brackets, like arrays, as they can contain commas.
- if (isset($tokens[$i]['bracket_opener']) === true) {
- $i = $tokens[$i]['bracket_closer'];
- continue;
- }
-
- if (isset($tokens[$i]['parenthesis_opener']) === true) {
- $i = $tokens[$i]['parenthesis_closer'];
- continue;
- }
-
- if ($tokens[$i]['code'] !== T_COMMA) {
- continue;
- }
-
- $next = $phpcsFile->findNext(T_WHITESPACE, ($i + 1), null, true);
- if ($tokens[$next]['line'] === $tokens[$i]['line']) {
- $error = 'Multi-line '.$type.' declarations must define one parameter per line';
- $fix = $phpcsFile->addFixableError($error, $next, $errorPrefix.'OneParamPerLine');
- if ($fix === true) {
- $phpcsFile->fixer->addNewline($i);
- }
- }
- }//end for
-
- }//end processBracket()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/NamingConventions/ValidFunctionNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/NamingConventions/ValidFunctionNameSniff.php
deleted file mode 100644
index 4a0b1e1e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/NamingConventions/ValidFunctionNameSniff.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Ensures method names are correct.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions\ValidFunctionNameSniff as PEARValidFunctionNameSniff;
-use PHP_CodeSniffer\Util\Common;
-use PHP_CodeSniffer\Files\File;
-
-class ValidFunctionNameSniff extends PEARValidFunctionNameSniff
-{
-
-
- /**
- * Processes the tokens outside the scope.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being processed.
- * @param int $stackPtr The position where this token was
- * found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
- $functionName = $phpcsFile->getDeclarationName($stackPtr);
- if ($functionName === null) {
- return;
- }
-
- $errorData = array($functionName);
-
- // Does this function claim to be magical?
- if (preg_match('|^__[^_]|', $functionName) !== 0) {
- $error = 'Function name "%s" is invalid; only PHP magic methods should be prefixed with a double underscore';
- $phpcsFile->addError($error, $stackPtr, 'DoubleUnderscore', $errorData);
- return;
- }
-
- if (Common::isCamelCaps($functionName, false, true, false) === false) {
- $error = 'Function name "%s" is not in camel caps format';
- $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $errorData);
- }
-
- }//end processTokenOutsideScope()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/NamingConventions/ValidVariableNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/NamingConventions/ValidVariableNameSniff.php
deleted file mode 100644
index bd5040c9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/NamingConventions/ValidVariableNameSniff.php
+++ /dev/null
@@ -1,216 +0,0 @@
-<?php
-/**
- * Checks the naming of variables and member variables.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Sniffs\AbstractVariableSniff;
-use PHP_CodeSniffer\Util\Common;
-use PHP_CodeSniffer\Files\File;
-
-class ValidVariableNameSniff extends AbstractVariableSniff
-{
-
- /**
- * Tokens to ignore so that we can find a DOUBLE_COLON.
- *
- * @var array
- */
- private $ignore = array(
- T_WHITESPACE,
- T_COMMENT,
- );
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- protected function processVariable(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $varName = ltrim($tokens[$stackPtr]['content'], '$');
-
- $phpReservedVars = array(
- '_SERVER',
- '_GET',
- '_POST',
- '_REQUEST',
- '_SESSION',
- '_ENV',
- '_COOKIE',
- '_FILES',
- 'GLOBALS',
- 'http_response_header',
- 'HTTP_RAW_POST_DATA',
- 'php_errormsg',
- );
-
- // If it's a php reserved var, then its ok.
- if (in_array($varName, $phpReservedVars) === true) {
- return;
- }
-
- $objOperator = $phpcsFile->findNext(array(T_WHITESPACE), ($stackPtr + 1), null, true);
- if ($tokens[$objOperator]['code'] === T_OBJECT_OPERATOR) {
- // Check to see if we are using a variable from an object.
- $var = $phpcsFile->findNext(array(T_WHITESPACE), ($objOperator + 1), null, true);
- if ($tokens[$var]['code'] === T_STRING) {
- $bracket = $phpcsFile->findNext(array(T_WHITESPACE), ($var + 1), null, true);
- if ($tokens[$bracket]['code'] !== T_OPEN_PARENTHESIS) {
- $objVarName = $tokens[$var]['content'];
-
- // There is no way for us to know if the var is public or
- // private, so we have to ignore a leading underscore if there is
- // one and just check the main part of the variable name.
- $originalVarName = $objVarName;
- if (substr($objVarName, 0, 1) === '_') {
- $objVarName = substr($objVarName, 1);
- }
-
- if (Common::isCamelCaps($objVarName, false, true, false) === false) {
- $error = 'Variable "%s" is not in valid camel caps format';
- $data = array($originalVarName);
- $phpcsFile->addError($error, $var, 'NotCamelCaps', $data);
- }
- }//end if
- }//end if
- }//end if
-
- // There is no way for us to know if the var is public or private,
- // so we have to ignore a leading underscore if there is one and just
- // check the main part of the variable name.
- $originalVarName = $varName;
- if (substr($varName, 0, 1) === '_') {
- $objOperator = $phpcsFile->findPrevious(array(T_WHITESPACE), ($stackPtr - 1), null, true);
- if ($tokens[$objOperator]['code'] === T_DOUBLE_COLON) {
- // The variable lives within a class, and is referenced like
- // this: MyClass::$_variable, so we don't know its scope.
- $inClass = true;
- } else {
- $inClass = $phpcsFile->hasCondition($stackPtr, array(T_CLASS, T_INTERFACE, T_TRAIT));
- }
-
- if ($inClass === true) {
- $varName = substr($varName, 1);
- }
- }
-
- if (Common::isCamelCaps($varName, false, true, false) === false) {
- $error = 'Variable "%s" is not in valid camel caps format';
- $data = array($originalVarName);
- $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $data);
- }
-
- }//end processVariable()
-
-
- /**
- * Processes class member variables.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- protected function processMemberVar(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $varName = ltrim($tokens[$stackPtr]['content'], '$');
- $memberProps = $phpcsFile->getMemberProperties($stackPtr);
- if (empty($memberProps) === true) {
- // Couldn't get any info about this variable, which
- // generally means it is invalid or possibly has a parse
- // error. Any errors will be reported by the core, so
- // we can ignore it.
- return;
- }
-
- $public = ($memberProps['scope'] !== 'private');
- $errorData = array($varName);
-
- if ($public === true) {
- if (substr($varName, 0, 1) === '_') {
- $error = '%s member variable "%s" must not contain a leading underscore';
- $data = array(
- ucfirst($memberProps['scope']),
- $errorData[0],
- );
- $phpcsFile->addError($error, $stackPtr, 'PublicHasUnderscore', $data);
- return;
- }
- } else {
- if (substr($varName, 0, 1) !== '_') {
- $error = 'Private member variable "%s" must contain a leading underscore';
- $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $errorData);
- return;
- }
- }
-
- if (Common::isCamelCaps($varName, false, $public, false) === false) {
- $error = 'Member variable "%s" is not in valid camel caps format';
- $phpcsFile->addError($error, $stackPtr, 'MemberNotCamelCaps', $errorData);
- }
-
- }//end processMemberVar()
-
-
- /**
- * Processes the variable found within a double quoted string.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the double quoted
- * string.
- *
- * @return void
- */
- protected function processVariableInString(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $phpReservedVars = array(
- '_SERVER',
- '_GET',
- '_POST',
- '_REQUEST',
- '_SESSION',
- '_ENV',
- '_COOKIE',
- '_FILES',
- 'GLOBALS',
- 'http_response_header',
- 'HTTP_RAW_POST_DATA',
- 'php_errormsg',
- );
-
- if (preg_match_all('|[^\\\]\${?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)|', $tokens[$stackPtr]['content'], $matches) !== 0) {
- foreach ($matches[1] as $varName) {
- // If it's a php reserved var, then its ok.
- if (in_array($varName, $phpReservedVars) === true) {
- continue;
- }
-
- if (Common::isCamelCaps($varName, false, true, false) === false) {
- $error = 'Variable "%s" is not in valid camel caps format';
- $data = array($varName);
- $phpcsFile->addError($error, $stackPtr, 'StringNotCamelCaps', $data);
- }
- }
- }
-
- }//end processVariableInString()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/DisallowObjectStringIndexSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/DisallowObjectStringIndexSniff.php
deleted file mode 100644
index 88a2abe6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/DisallowObjectStringIndexSniff.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-/**
- * Ensures that object indexes are written in dot notation.
- *
- * @author Sertan Danis <sdanis@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowObjectStringIndexSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_SQUARE_BRACKET);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Check if the next non whitespace token is a string.
- $index = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$index]['code'] !== T_CONSTANT_ENCAPSED_STRING) {
- return;
- }
-
- // Make sure it is the only thing in the square brackets.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($index + 1), null, true);
- if ($tokens[$next]['code'] !== T_CLOSE_SQUARE_BRACKET) {
- return;
- }
-
- // Allow indexes that have dots in them because we can't write
- // them in dot notation.
- $content = trim($tokens[$index]['content'], '"\' ');
- if (strpos($content, '.') !== false) {
- return;
- }
-
- // Also ignore reserved words.
- if ($content === 'super') {
- return;
- }
-
- // Token before the opening square bracket cannot be a var name.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] === T_STRING) {
- $error = 'Object indexes must be written in dot notation';
- $phpcsFile->addError($error, $prev, 'Found');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/ObjectInstantiationSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/ObjectInstantiationSniff.php
deleted file mode 100644
index a6a60df7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/ObjectInstantiationSniff.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * Ensures objects are assigned to a variable when instantiated.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ObjectInstantiationSniff implements Sniff
-{
-
-
- /**
- * Registers the token types that this sniff wishes to listen to.
- *
- * @return array
- */
- public function register()
- {
- return array(T_NEW);
-
- }//end register()
-
-
- /**
- * Process the tokens that this sniff is listening for.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $allowedTokens = Tokens::$emptyTokens;
- $allowedTokens[] = T_BITWISE_AND;
-
- $prev = $phpcsFile->findPrevious($allowedTokens, ($stackPtr - 1), null, true);
-
- $allowedTokens = array(
- T_EQUAL => true,
- T_DOUBLE_ARROW => true,
- T_THROW => true,
- T_RETURN => true,
- T_INLINE_THEN => true,
- T_INLINE_ELSE => true,
- );
-
- if (isset($allowedTokens[$tokens[$prev]['code']]) === false) {
- $error = 'New objects must be assigned to a variable';
- $phpcsFile->addError($error, $stackPtr, 'NotAssigned');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/ObjectMemberCommaSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/ObjectMemberCommaSniff.php
deleted file mode 100644
index 674058e9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Objects/ObjectMemberCommaSniff.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/**
- * Ensures the last member of an object is not followed by a comma.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ObjectMemberCommaSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Registers the token types that this sniff wishes to listen to.
- *
- * @return array
- */
- public function register()
- {
- return array(T_CLOSE_OBJECT);
-
- }//end register()
-
-
- /**
- * Process the tokens that this sniff is listening for.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] === T_COMMA) {
- $error = 'Last member of object must not be followed by a comma';
- $fix = $phpcsFile->addFixableError($error, $prev, 'Missing');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($prev, '');
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ComparisonOperatorUsageSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ComparisonOperatorUsageSniff.php
deleted file mode 100644
index f3b17d88..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ComparisonOperatorUsageSniff.php
+++ /dev/null
@@ -1,211 +0,0 @@
-<?php
-/**
- * A Sniff to enforce the use of IDENTICAL type operators rather than EQUAL operators.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ComparisonOperatorUsageSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * A list of valid comparison operators.
- *
- * @var array
- */
- private static $validOps = array(
- T_IS_IDENTICAL,
- T_IS_NOT_IDENTICAL,
- T_LESS_THAN,
- T_GREATER_THAN,
- T_IS_GREATER_OR_EQUAL,
- T_IS_SMALLER_OR_EQUAL,
- T_INSTANCEOF,
- );
-
- /**
- * A list of invalid operators with their alternatives.
- *
- * @var array<int, string>
- */
- private static $invalidOps = array(
- 'PHP' => array(
- T_IS_EQUAL => '===',
- T_IS_NOT_EQUAL => '!==',
- T_BOOLEAN_NOT => '=== FALSE',
- ),
- 'JS' => array(
- T_IS_EQUAL => '===',
- T_IS_NOT_EQUAL => '!==',
- ),
- );
-
-
- /**
- * Registers the token types that this sniff wishes to listen to.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_IF,
- T_ELSEIF,
- T_INLINE_THEN,
- T_WHILE,
- T_FOR,
- );
-
- }//end register()
-
-
- /**
- * Process the tokens that this sniff is listening for.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where the token
- * was found.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $tokenizer = $phpcsFile->tokenizerType;
-
- if ($tokens[$stackPtr]['code'] === T_INLINE_THEN) {
- $end = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if ($tokens[$end]['code'] !== T_CLOSE_PARENTHESIS) {
- // This inline IF statement does not have its condition
- // bracketed, so we need to guess where it starts.
- for ($i = ($end - 1); $i >= 0; $i--) {
- if ($tokens[$i]['code'] === T_SEMICOLON) {
- // Stop here as we assume it is the end
- // of the previous statement.
- break;
- } else if ($tokens[$i]['code'] === T_OPEN_TAG) {
- // Stop here as this is the start of the file.
- break;
- } else if ($tokens[$i]['code'] === T_CLOSE_CURLY_BRACKET) {
- // Stop if this is the closing brace of
- // a code block.
- if (isset($tokens[$i]['scope_opener']) === true) {
- break;
- }
- } else if ($tokens[$i]['code'] === T_OPEN_CURLY_BRACKET) {
- // Stop if this is the opening brace of
- // a code block.
- if (isset($tokens[$i]['scope_closer']) === true) {
- break;
- }
- }
- }//end for
-
- $start = $phpcsFile->findNext(Tokens::$emptyTokens, ($i + 1), null, true);
- } else {
- if (isset($tokens[$end]['parenthesis_opener']) === false) {
- return;
- }
-
- $start = $tokens[$end]['parenthesis_opener'];
- }//end if
- } else if ($tokens[$stackPtr]['code'] === T_FOR) {
- if (isset($tokens[$stackPtr]['parenthesis_opener']) === false) {
- return;
- }
-
- $openingBracket = $tokens[$stackPtr]['parenthesis_opener'];
- $closingBracket = $tokens[$stackPtr]['parenthesis_closer'];
-
- $start = $phpcsFile->findNext(T_SEMICOLON, $openingBracket, $closingBracket);
- $end = $phpcsFile->findNext(T_SEMICOLON, ($start + 1), $closingBracket);
- if ($start === false || $end === false) {
- return;
- }
- } else {
- if (isset($tokens[$stackPtr]['parenthesis_opener']) === false) {
- return;
- }
-
- $start = $tokens[$stackPtr]['parenthesis_opener'];
- $end = $tokens[$stackPtr]['parenthesis_closer'];
- }//end if
-
- $requiredOps = 0;
- $foundOps = 0;
- $foundBools = 0;
-
- for ($i = $start; $i <= $end; $i++) {
- $type = $tokens[$i]['code'];
- if (in_array($type, array_keys(self::$invalidOps[$tokenizer])) === true) {
- $error = 'Operator %s prohibited; use %s instead';
- $data = array(
- $tokens[$i]['content'],
- self::$invalidOps[$tokenizer][$type],
- );
- $phpcsFile->addError($error, $i, 'NotAllowed', $data);
- $foundOps++;
- } else if (in_array($type, self::$validOps) === true) {
- $foundOps++;
- }
-
- if ($tokens[$i]['code'] === T_TRUE || $tokens[$i]['code'] === T_FALSE) {
- $foundBools++;
- }
-
- if ($phpcsFile->tokenizerType !== 'JS'
- && ($tokens[$i]['code'] === T_BOOLEAN_AND
- || $tokens[$i]['code'] === T_BOOLEAN_OR)
- ) {
- $requiredOps++;
-
- // When the instanceof operator is used with another operator
- // like ===, you can get more ops than are required.
- if ($foundOps > $requiredOps) {
- $foundOps = $requiredOps;
- }
-
- // If we get to here and we have not found the right number of
- // comparison operators, then we must have had an implicit
- // true operation i.e., if ($a) instead of the required
- // if ($a === true), so let's add an error.
- if ($requiredOps !== $foundOps) {
- $error = 'Implicit true comparisons prohibited; use === TRUE instead';
- $phpcsFile->addError($error, $stackPtr, 'ImplicitTrue');
- $foundOps++;
- }
- }
- }//end for
-
- $requiredOps++;
-
- if ($phpcsFile->tokenizerType !== 'JS'
- && $foundOps < $requiredOps
- && ($requiredOps !== $foundBools)
- ) {
- $error = 'Implicit true comparisons prohibited; use === TRUE instead';
- $phpcsFile->addError($error, $stackPtr, 'ImplicitTrue');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/IncrementDecrementUsageSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/IncrementDecrementUsageSniff.php
deleted file mode 100644
index cf73ef00..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/IncrementDecrementUsageSniff.php
+++ /dev/null
@@ -1,224 +0,0 @@
-<?php
-/**
- * Ensures that the ++ operators are used when possible.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class IncrementDecrementUsageSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_EQUAL,
- T_PLUS_EQUAL,
- T_MINUS_EQUAL,
- T_INC,
- T_DEC,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['code'] === T_INC || $tokens[$stackPtr]['code'] === T_DEC) {
- $this->processIncDec($phpcsFile, $stackPtr);
- } else {
- $this->processAssignment($phpcsFile, $stackPtr);
- }
-
- }//end process()
-
-
- /**
- * Checks to ensure increment and decrement operators are not confusing.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- protected function processIncDec($phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Work out where the variable is so we know where to
- // start looking for other operators.
- if ($tokens[($stackPtr - 1)]['code'] === T_VARIABLE
- || ($tokens[($stackPtr - 1)]['code'] === T_STRING
- && $tokens[($stackPtr - 2)]['code'] === T_OBJECT_OPERATOR)
- ) {
- $start = ($stackPtr + 1);
- } else {
- $start = ($stackPtr + 2);
- }
-
- $next = $phpcsFile->findNext(Tokens::$emptyTokens, $start, null, true);
- if ($next === false) {
- return;
- }
-
- if (isset(Tokens::$arithmeticTokens[$tokens[$next]['code']]) === true) {
- $error = 'Increment and decrement operators cannot be used in an arithmetic operation';
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
- return;
- }
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($start - 3), null, true);
- if ($prev === false) {
- return;
- }
-
- // Check if this is in a string concat.
- if ($tokens[$next]['code'] === T_STRING_CONCAT || $tokens[$prev]['code'] === T_STRING_CONCAT) {
- $error = 'Increment and decrement operators must be bracketed when used in string concatenation';
- $phpcsFile->addError($error, $stackPtr, 'NoBrackets');
- }
-
- }//end processIncDec()
-
-
- /**
- * Checks to ensure increment and decrement operators are used.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- protected function processAssignment($phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $assignedVar = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- // Not an assignment, return.
- if ($tokens[$assignedVar]['code'] !== T_VARIABLE) {
- return;
- }
-
- $statementEnd = $phpcsFile->findNext(array(T_SEMICOLON, T_CLOSE_PARENTHESIS, T_CLOSE_SQUARE_BRACKET, T_CLOSE_CURLY_BRACKET), $stackPtr);
-
- // If there is anything other than variables, numbers, spaces or operators we need to return.
- $noiseTokens = $phpcsFile->findNext(array(T_LNUMBER, T_VARIABLE, T_WHITESPACE, T_PLUS, T_MINUS, T_OPEN_PARENTHESIS), ($stackPtr + 1), $statementEnd, true);
-
- if ($noiseTokens !== false) {
- return;
- }
-
- // If we are already using += or -=, we need to ignore
- // the statement if a variable is being used.
- if ($tokens[$stackPtr]['code'] !== T_EQUAL) {
- $nextVar = $phpcsFile->findNext(T_VARIABLE, ($stackPtr + 1), $statementEnd);
- if ($nextVar !== false) {
- return;
- }
- }
-
- if ($tokens[$stackPtr]['code'] === T_EQUAL) {
- $nextVar = ($stackPtr + 1);
- $previousVariable = ($stackPtr + 1);
- $variableCount = 0;
- while (($nextVar = $phpcsFile->findNext(T_VARIABLE, ($nextVar + 1), $statementEnd)) !== false) {
- $previousVariable = $nextVar;
- $variableCount++;
- }
-
- if ($variableCount !== 1) {
- return;
- }
-
- $nextVar = $previousVariable;
- if ($tokens[$nextVar]['content'] !== $tokens[$assignedVar]['content']) {
- return;
- }
- }
-
- // We have only one variable, and it's the same as what is being assigned,
- // so we need to check what is being added or subtracted.
- $nextNumber = ($stackPtr + 1);
- $previousNumber = ($stackPtr + 1);
- $numberCount = 0;
- while (($nextNumber = $phpcsFile->findNext(array(T_LNUMBER), ($nextNumber + 1), $statementEnd, false)) !== false) {
- $previousNumber = $nextNumber;
- $numberCount++;
- }
-
- if ($numberCount !== 1) {
- return;
- }
-
- $nextNumber = $previousNumber;
- if ($tokens[$nextNumber]['content'] === '1') {
- if ($tokens[$stackPtr]['code'] === T_EQUAL) {
- $opToken = $phpcsFile->findNext(array(T_PLUS, T_MINUS), ($nextVar + 1), $statementEnd);
- if ($opToken === false) {
- // Operator was before the variable, like:
- // $var = 1 + $var;
- // So we ignore it.
- return;
- }
-
- $operator = $tokens[$opToken]['content'];
- } else {
- $operator = substr($tokens[$stackPtr]['content'], 0, 1);
- }
-
- // If we are adding or subtracting negative value, the operator
- // needs to be reversed.
- if ($tokens[$stackPtr]['code'] !== T_EQUAL) {
- $negative = $phpcsFile->findPrevious(T_MINUS, ($nextNumber - 1), $stackPtr);
- if ($negative !== false) {
- if ($operator === '+') {
- $operator = '-';
- } else {
- $operator = '+';
- }
- }
- }
-
- $expected = $tokens[$assignedVar]['content'].$operator.$operator;
- $found = $phpcsFile->getTokensAsString($assignedVar, ($statementEnd - $assignedVar + 1));
-
- if ($operator === '+') {
- $error = 'Increment';
- } else {
- $error = 'Decrement';
- }
-
- $error .= " operators should be used where possible; found \"$found\" but expected \"$expected\"";
- $phpcsFile->addError($error, $stackPtr, 'Found');
- }//end if
-
- }//end processAssignment()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ValidLogicalOperatorsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ValidLogicalOperatorsSniff.php
deleted file mode 100644
index dc16a253..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Operators/ValidLogicalOperatorsSniff.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * Ensures logical operators 'and' and 'or' are not used.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ValidLogicalOperatorsSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_LOGICAL_AND,
- T_LOGICAL_OR,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $replacements = array(
- 'and' => '&&',
- 'or' => '||',
- );
-
- $operator = strtolower($tokens[$stackPtr]['content']);
- if (isset($replacements[$operator]) === false) {
- return;
- }
-
- $error = 'Logical operator "%s" is prohibited; use "%s" instead';
- $data = array(
- $operator,
- $replacements[$operator],
- );
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed', $data);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/CommentedOutCodeSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/CommentedOutCodeSniff.php
deleted file mode 100644
index 3a3ec28b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/CommentedOutCodeSniff.php
+++ /dev/null
@@ -1,230 +0,0 @@
-<?php
-/**
- * Warn about commented out code.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-use PHP_CodeSniffer\Exceptions\TokenizerException;
-
-class CommentedOutCodeSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'CSS',
- );
-
- /**
- * If a comment is more than $maxPercentage% code, a warning will be shown.
- *
- * @var integer
- */
- public $maxPercentage = 35;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_COMMENT);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Process whole comment blocks at once, so skip all but the first token.
- if ($stackPtr > 0 && $tokens[$stackPtr]['code'] === $tokens[($stackPtr - 1)]['code']) {
- return;
- }
-
- // Ignore comments at the end of code blocks.
- if (substr($tokens[$stackPtr]['content'], 0, 6) === '//end ') {
- return;
- }
-
- $content = '';
- if ($phpcsFile->tokenizerType === 'PHP') {
- $content = '<?php ';
- }
-
- for ($i = $stackPtr; $i < $phpcsFile->numTokens; $i++) {
- if ($tokens[$stackPtr]['code'] !== $tokens[$i]['code']) {
- break;
- }
-
- /*
- Trim as much off the comment as possible so we don't
- have additional whitespace tokens or comment tokens
- */
-
- $tokenContent = trim($tokens[$i]['content']);
-
- if (substr($tokenContent, 0, 2) === '//') {
- $tokenContent = substr($tokenContent, 2);
- }
-
- if (substr($tokenContent, 0, 1) === '#') {
- $tokenContent = substr($tokenContent, 1);
- }
-
- if (substr($tokenContent, 0, 3) === '/**') {
- $tokenContent = substr($tokenContent, 3);
- }
-
- if (substr($tokenContent, 0, 2) === '/*') {
- $tokenContent = substr($tokenContent, 2);
- }
-
- if (substr($tokenContent, -2) === '*/') {
- $tokenContent = substr($tokenContent, 0, -2);
- }
-
- if (substr($tokenContent, 0, 1) === '*') {
- $tokenContent = substr($tokenContent, 1);
- }
-
- $content .= $tokenContent.$phpcsFile->eolChar;
- }//end for
-
- $content = trim($content);
-
- if ($phpcsFile->tokenizerType === 'PHP') {
- $content .= ' ?>';
- }
-
- // Quite a few comments use multiple dashes, equals signs etc
- // to frame comments and licence headers.
- $content = preg_replace('/[-=*]+/', '-', $content);
-
- // Random numbers sitting inside the content can throw parse errors
- // for invalid literals in PHP7+, so strip those.
- $content = preg_replace('/\d+/', '', $content);
-
- // Because we are not really parsing code, the tokenizer can throw all sorts
- // of errors that don't mean anything, so ignore them.
- $oldErrors = ini_get('error_reporting');
- ini_set('error_reporting', 0);
- try {
- $tokenizerClass = get_class($phpcsFile->tokenizer);
- $tokenizer = new $tokenizerClass($content, $phpcsFile->config, $phpcsFile->eolChar);
- $stringTokens = $tokenizer->getTokens();
- } catch (TokenizerException $e) {
- // We couldn't check the comment, so ignore it.
- ini_set('error_reporting', $oldErrors);
- return;
- }
-
- ini_set('error_reporting', $oldErrors);
-
- $emptyTokens = array(
- T_WHITESPACE => true,
- T_STRING => true,
- T_STRING_CONCAT => true,
- T_ENCAPSED_AND_WHITESPACE => true,
- T_NONE => true,
- T_COMMENT => true,
- );
-
- $numTokens = count($stringTokens);
-
- /*
- We know what the first two and last two tokens should be
- (because we put them there) so ignore this comment if those
- tokens were not parsed correctly. It obviously means this is not
- valid code.
- */
-
- // First token is always the opening PHP tag.
- if ($stringTokens[0]['code'] !== T_OPEN_TAG) {
- return;
- }
-
- // Last token is always the closing PHP tag, unless something went wrong.
- if (isset($stringTokens[($numTokens - 1)]) === false
- || $stringTokens[($numTokens - 1)]['code'] !== T_CLOSE_TAG
- ) {
- return;
- }
-
- // Second last token is always whitespace or a comment, depending
- // on the code inside the comment.
- if ($phpcsFile->tokenizerType === 'PHP'
- && isset(Tokens::$emptyTokens[$stringTokens[($numTokens - 2)]['code']]) === false
- ) {
- return;
- }
-
- $numComment = 0;
- $numPossible = 0;
- $numCode = 0;
-
- for ($i = 0; $i < $numTokens; $i++) {
- if (isset($emptyTokens[$stringTokens[$i]['code']]) === true) {
- // Looks like comment.
- $numComment++;
- } else if (in_array($stringTokens[$i]['code'], Tokens::$comparisonTokens) === true
- || in_array($stringTokens[$i]['code'], Tokens::$arithmeticTokens) === true
- || $stringTokens[$i]['code'] === T_GOTO_LABEL
- ) {
- // Commented out HTML/XML and other docs contain a lot of these
- // characters, so it is best to not use them directly.
- $numPossible++;
- } else {
- // Looks like code.
- $numCode++;
- }
- }
-
- // We subtract 3 from the token number so we ignore the start/end tokens
- // and their surrounding whitespace. We take 2 off the number of code
- // tokens so we ignore the start/end tokens.
- if ($numTokens > 3) {
- $numTokens -= 3;
- }
-
- if ($numCode >= 2) {
- $numCode -= 2;
- }
-
- $percentCode = ceil((($numCode / $numTokens) * 100));
- if ($percentCode > $this->maxPercentage) {
- // Just in case.
- $percentCode = min(100, $percentCode);
-
- $error = 'This comment is %s%% valid code; is this commented out code?';
- $data = array($percentCode);
- $phpcsFile->addWarning($error, $stackPtr, 'Found', $data);
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowBooleanStatementSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowBooleanStatementSniff.php
deleted file mode 100644
index 3fe9590a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowBooleanStatementSniff.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/**
- * Ensures that boolean operators are only used inside control structure conditions.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class DisallowBooleanStatementSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return Tokens::$booleanOperators;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- $foundOwner = false;
- foreach ($tokens[$stackPtr]['nested_parenthesis'] as $open => $close) {
- if (isset($tokens[$open]['parenthesis_owner']) === true) {
- // Any owner means we are not just a simple statement.
- return;
- }
- }
- }
-
- $error = 'Boolean operators are not allowed outside of control structure conditions';
- $phpcsFile->addError($error, $stackPtr, 'Found');
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowComparisonAssignmentSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowComparisonAssignmentSniff.php
deleted file mode 100644
index a09afdb8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowComparisonAssignmentSniff.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-/**
- * Ensures that the value of a comparison is not assigned to a variable.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class DisallowComparisonAssignmentSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_EQUAL);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Ignore default value assignments in function definitions.
- $function = $phpcsFile->findPrevious(T_FUNCTION, ($stackPtr - 1), null, false, null, true);
- if ($function !== false) {
- $opener = $tokens[$function]['parenthesis_opener'];
- $closer = $tokens[$function]['parenthesis_closer'];
- if ($opener < $stackPtr && $closer > $stackPtr) {
- return;
- }
- }
-
- // Ignore values in array definitions.
- $array = $phpcsFile->findNext(
- T_ARRAY,
- ($stackPtr + 1),
- null,
- false,
- null,
- true
- );
-
- if ($array !== false) {
- return;
- }
-
- // Ignore function calls.
- $ignore = array(
- T_STRING,
- T_WHITESPACE,
- T_OBJECT_OPERATOR,
- );
-
- $next = $phpcsFile->findNext($ignore, ($stackPtr + 1), null, true);
- if ($tokens[$next]['code'] === T_OPEN_PARENTHESIS
- && $tokens[($next - 1)]['code'] === T_STRING
- ) {
- // Code will look like: $var = myFunction(
- // and will be ignored.
- return;
- }
-
- $endStatement = $phpcsFile->findNext(T_SEMICOLON, ($stackPtr + 1));
- if ($tokens[$stackPtr]['conditions'] !== $tokens[$endStatement]['conditions']) {
- // This statement doesn't end with a semicolon, which is the case for
- // the last expression in a for loop.
- return;
- }
-
- for ($i = ($stackPtr + 1); $i < $endStatement; $i++) {
- if (isset(Tokens::$comparisonTokens[$tokens[$i]['code']]) === true
- || $tokens[$i]['code'] === T_INLINE_THEN
- ) {
- $error = 'The value of a comparison must not be assigned to a variable';
- $phpcsFile->addError($error, $stackPtr, 'AssignedComparison');
- break;
- }
-
- if (isset(Tokens::$booleanOperators[$tokens[$i]['code']]) === true
- || $tokens[$i]['code'] === T_BOOLEAN_NOT
- ) {
- $error = 'The value of a boolean operation must not be assigned to a variable';
- $phpcsFile->addError($error, $stackPtr, 'AssignedBool');
- break;
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowInlineIfSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowInlineIfSniff.php
deleted file mode 100644
index 325e98bb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowInlineIfSniff.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Stops inline IF statements from being used.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowInlineIfSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_INLINE_THEN);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $phpcsFile->addError('Inline IF statements are not allowed', $stackPtr, 'Found');
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowMultipleAssignmentsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowMultipleAssignmentsSniff.php
deleted file mode 100644
index 6205f8f6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowMultipleAssignmentsSniff.php
+++ /dev/null
@@ -1,170 +0,0 @@
-<?php
-/**
- * Ensures there is only one assignment on a line, and that it is the first thing on the line.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class DisallowMultipleAssignmentsSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_EQUAL);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Ignore default value assignments in function definitions.
- $function = $phpcsFile->findPrevious(array(T_FUNCTION, T_CLOSURE), ($stackPtr - 1), null, false, null, true);
- if ($function !== false) {
- $opener = $tokens[$function]['parenthesis_opener'];
- $closer = $tokens[$function]['parenthesis_closer'];
- if ($opener < $stackPtr && $closer > $stackPtr) {
- return;
- }
- }
-
- /*
- The general rule is:
- Find an equal sign and go backwards along the line. If you hit an
- end bracket, skip to the opening bracket. When you find a variable,
- stop. That variable must be the first non-empty token on the line
- or in the statement. If not, throw an error.
- */
-
- for ($varToken = ($stackPtr - 1); $varToken >= 0; $varToken--) {
- // Skip brackets.
- if (isset($tokens[$varToken]['parenthesis_opener']) === true && $tokens[$varToken]['parenthesis_opener'] < $varToken) {
- $varToken = $tokens[$varToken]['parenthesis_opener'];
- continue;
- }
-
- if (isset($tokens[$varToken]['bracket_opener']) === true) {
- $varToken = $tokens[$varToken]['bracket_opener'];
- continue;
- }
-
- if ($tokens[$varToken]['code'] === T_SEMICOLON) {
- // We've reached the next statement, so we
- // didn't find a variable.
- return;
- }
-
- if ($tokens[$varToken]['code'] === T_VARIABLE) {
- // We found our variable.
- break;
- }
- }//end for
-
- if ($varToken <= 0) {
- // Didn't find a variable.
- return;
- }
-
- // Deal with this type of variable: self::$var by setting the var
- // token to be "self" rather than "$var".
- if ($tokens[($varToken - 1)]['code'] === T_DOUBLE_COLON) {
- $varToken = ($varToken - 2);
- }
-
- // Deal with this type of variable: $obj->$var by setting the var
- // token to be "$obj" rather than "$var".
- if ($tokens[($varToken - 1)]['code'] === T_OBJECT_OPERATOR) {
- $varToken = ($varToken - 2);
- }
-
- // Deal with this type of variable: $$var by setting the var
- // token to be "$" rather than "$var".
- if ($tokens[($varToken - 1)]['content'] === '$') {
- $varToken--;
- }
-
- // Ignore member var definitions.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($varToken - 1), null, true);
- if (isset(Tokens::$scopeModifiers[$tokens[$prev]['code']]) === true
- || $tokens[$prev]['code'] === T_VAR
- ) {
- return;
- }
-
- if ($tokens[$prev]['code'] === T_STATIC) {
- return;
- }
-
- // Make sure this variable is the first thing in the statement.
- $varLine = $tokens[$varToken]['line'];
- $prevLine = 0;
- for ($i = ($varToken - 1); $i >= 0; $i--) {
- if ($tokens[$i]['code'] === T_SEMICOLON) {
- // We reached the end of the statement.
- return;
- }
-
- if ($tokens[$i]['code'] === T_INLINE_THEN) {
- // We reached the end of the inline THEN statement.
- return;
- }
-
- if ($tokens[$i]['code'] === T_INLINE_ELSE) {
- // We reached the end of the inline ELSE statement.
- return;
- }
-
- if ($tokens[$i]['code'] === T_OPEN_TAG) {
- // We reached the end of the code block.
- return;
- }
-
- if (isset(Tokens::$emptyTokens[$tokens[$i]['code']]) === false) {
- $prevLine = $tokens[$i]['line'];
- break;
- }
- }//end for
-
- // Ignore the first part of FOR loops as we are allowed to
- // assign variables there even though the variable is not the
- // first thing on the line. Also ignore WHILE loops.
- if ($tokens[$i]['code'] === T_OPEN_PARENTHESIS && isset($tokens[$i]['parenthesis_owner']) === true) {
- $owner = $tokens[$i]['parenthesis_owner'];
- if ($tokens[$owner]['code'] === T_FOR || $tokens[$owner]['code'] === T_WHILE) {
- return;
- }
- }
-
- if ($prevLine === $varLine) {
- $error = 'Assignments must be the first block of code on a line';
- $phpcsFile->addError($error, $stackPtr, 'Found');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowObEndFlushSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowObEndFlushSniff.php
deleted file mode 100644
index 11ac21e7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowObEndFlushSniff.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Checks the indenting used when an ob_start() call occurs.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowObEndFlushSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_STRING);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['content'] === 'ob_end_flush') {
- $phpcsFile->addError('Use of ob_end_flush() is not allowed; use ob_get_contents() and ob_end_clean() instead', $stackPtr, 'Found');
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowSizeFunctionsInLoopsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowSizeFunctionsInLoopsSniff.php
deleted file mode 100644
index 3f4dbe36..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowSizeFunctionsInLoopsSniff.php
+++ /dev/null
@@ -1,114 +0,0 @@
-<?php
-/**
- * Bans the use of size-based functions in loop conditions.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DisallowSizeFunctionsInLoopsSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * An array of functions we don't want in the condition of loops.
- *
- * @var array
- */
- protected $forbiddenFunctions = array(
- 'PHP' => array(
- 'sizeof' => true,
- 'strlen' => true,
- 'count' => true,
- ),
- 'JS' => array('length' => true),
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_WHILE,
- T_FOR,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $tokenizer = $phpcsFile->tokenizerType;
- $openBracket = $tokens[$stackPtr]['parenthesis_opener'];
- $closeBracket = $tokens[$stackPtr]['parenthesis_closer'];
-
- if ($tokens[$stackPtr]['code'] === T_FOR) {
- // We only want to check the condition in FOR loops.
- $start = $phpcsFile->findNext(T_SEMICOLON, ($openBracket + 1));
- $end = $phpcsFile->findPrevious(T_SEMICOLON, ($closeBracket - 1));
- } else {
- $start = $openBracket;
- $end = $closeBracket;
- }
-
- for ($i = ($start + 1); $i < $end; $i++) {
- if ($tokens[$i]['code'] === T_STRING
- && isset($this->forbiddenFunctions[$tokenizer][$tokens[$i]['content']]) === true
- ) {
- $functionName = $tokens[$i]['content'];
- if ($tokenizer === 'JS') {
- // Needs to be in the form object.function to be valid.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($i - 1), null, true);
- if ($prev === false || $tokens[$prev]['code'] !== T_OBJECT_OPERATOR) {
- continue;
- }
-
- $functionName = 'object.'.$functionName;
- } else {
- // Make sure it isn't a member var.
- if ($tokens[($i - 1)]['code'] === T_OBJECT_OPERATOR) {
- continue;
- }
-
- $functionName .= '()';
- }
-
- $error = 'The use of %s inside a loop condition is not allowed; assign the return value to a variable and use the variable in the loop condition instead';
- $data = array($functionName);
- $phpcsFile->addError($error, $i, 'Found', $data);
- }//end if
- }//end for
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DiscouragedFunctionsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DiscouragedFunctionsSniff.php
deleted file mode 100644
index d47949aa..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DiscouragedFunctionsSniff.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/**
- * Discourages the use of debug functions.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff as GenericForbiddenFunctionsSniff;
-
-class DiscouragedFunctionsSniff extends GenericForbiddenFunctionsSniff
-{
-
- /**
- * A list of forbidden functions with their alternatives.
- *
- * The value is NULL if no alternative exists. IE, the
- * function should just not be used.
- *
- * @var array<string, string|null>
- */
- public $forbiddenFunctions = array(
- 'error_log' => null,
- 'print_r' => null,
- 'var_dump' => null,
- );
-
- /**
- * If true, an error will be thrown; otherwise a warning.
- *
- * @var boolean
- */
- public $error = false;
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/EmbeddedPhpSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/EmbeddedPhpSniff.php
deleted file mode 100644
index bda2821c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/EmbeddedPhpSniff.php
+++ /dev/null
@@ -1,397 +0,0 @@
-<?php
-/**
- * Checks the indentation of embedded PHP code segments.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class EmbeddedPhpSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // If the close php tag is on the same line as the opening
- // then we have an inline embedded PHP block.
- $closeTag = $phpcsFile->findNext(T_CLOSE_TAG, $stackPtr);
- if ($closeTag === false || $tokens[$stackPtr]['line'] !== $tokens[$closeTag]['line']) {
- $this->validateMultilineEmbeddedPhp($phpcsFile, $stackPtr);
- } else {
- $this->validateInlineEmbeddedPhp($phpcsFile, $stackPtr);
- }
-
- }//end process()
-
-
- /**
- * Validates embedded PHP that exists on multiple lines.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- private function validateMultilineEmbeddedPhp($phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $prevTag = $phpcsFile->findPrevious(T_OPEN_TAG, ($stackPtr - 1));
- if ($prevTag === false) {
- // This is the first open tag.
- return;
- }
-
- $firstContent = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- $closingTag = $phpcsFile->findNext(T_CLOSE_TAG, $stackPtr);
- if ($closingTag !== false) {
- $nextContent = $phpcsFile->findNext(T_WHITESPACE, ($closingTag + 1), $phpcsFile->numTokens, true);
- if ($nextContent === false) {
- // Final closing tag. It will be handled elsewhere.
- return;
- }
-
- // We have an opening and a closing tag, that lie within other content.
- if ($firstContent === $closingTag) {
- $error = 'Empty embedded PHP tag found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Empty');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = $stackPtr; $i <= $closingTag; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- return;
- }
- }//end if
-
- if ($tokens[$firstContent]['line'] === $tokens[$stackPtr]['line']) {
- $error = 'Opening PHP tag must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContentAfterOpen');
- if ($fix === true) {
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $stackPtr, true);
- $padding = (strlen($tokens[$first]['content']) - strlen(ltrim($tokens[$first]['content'])));
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addNewline($stackPtr);
- $phpcsFile->fixer->addContent($stackPtr, str_repeat(' ', $padding));
- $phpcsFile->fixer->endChangeset();
- }
- } else {
- // Check the indent of the first line, except if it is a scope closer.
- if (isset($tokens[$firstContent]['scope_closer']) === false
- || $tokens[$firstContent]['scope_closer'] !== $firstContent
- ) {
- // Check for a blank line at the top.
- if ($tokens[$firstContent]['line'] > ($tokens[$stackPtr]['line'] + 1)) {
- // Find a token on the blank line to throw the error on.
- $i = $stackPtr;
- do {
- $i++;
- } while ($tokens[$i]['line'] !== ($tokens[$stackPtr]['line'] + 1));
-
- $error = 'Blank line found at start of embedded PHP content';
- $fix = $phpcsFile->addFixableError($error, $i, 'SpacingBefore');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($stackPtr + 1); $i < $firstContent; $i++) {
- if ($tokens[$i]['line'] === $tokens[$firstContent]['line']
- || $tokens[$i]['line'] === $tokens[$stackPtr]['line']
- ) {
- continue;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }//end if
-
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $stackPtr);
- if ($first === false) {
- $first = $phpcsFile->findFirstOnLine(T_INLINE_HTML, $stackPtr);
- $indent = (strlen($tokens[$first]['content']) - strlen(ltrim($tokens[$first]['content'])));
- } else {
- $indent = ($tokens[($first + 1)]['column'] - 1);
- }
-
- $contentColumn = ($tokens[$firstContent]['column'] - 1);
- if ($contentColumn !== $indent) {
- $error = 'First line of embedded PHP code must be indented %s spaces; %s found';
- $data = array(
- $indent,
- $contentColumn,
- );
- $fix = $phpcsFile->addFixableError($error, $firstContent, 'Indent', $data);
- if ($fix === true) {
- $padding = str_repeat(' ', $indent);
- if ($contentColumn === 0) {
- $phpcsFile->fixer->addContentBefore($firstContent, $padding);
- } else {
- $phpcsFile->fixer->replaceToken(($firstContent - 1), $padding);
- }
- }
- }
- }//end if
- }//end if
-
- $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$lastContent]['line'] === $tokens[$stackPtr]['line']
- && trim($tokens[$lastContent]['content']) !== ''
- ) {
- $error = 'Opening PHP tag must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContentBeforeOpen');
- if ($fix === true) {
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $stackPtr);
- if ($first === false) {
- $first = $phpcsFile->findFirstOnLine(T_INLINE_HTML, $stackPtr);
- $padding = (strlen($tokens[$first]['content']) - strlen(ltrim($tokens[$first]['content'])));
- } else {
- $padding = ($tokens[($first + 1)]['column'] - 1);
- }
-
- $phpcsFile->fixer->addContentBefore($stackPtr, $phpcsFile->eolChar.str_repeat(' ', $padding));
- }
- } else {
- // Find the first token on the first non-empty line we find.
- for ($first = ($stackPtr - 1); $first > 0; $first--) {
- if ($tokens[$first]['line'] === $tokens[$stackPtr]['line']) {
- continue;
- } else if (trim($tokens[$first]['content']) !== '') {
- $first = $phpcsFile->findFirstOnLine(array(), $first, true);
- break;
- }
- }
-
- $expected = 0;
- if ($tokens[$first]['code'] === T_INLINE_HTML
- && trim($tokens[$first]['content']) !== ''
- ) {
- $expected = (strlen($tokens[$first]['content']) - strlen(ltrim($tokens[$first]['content'])));
- } else if ($tokens[$first]['code'] === T_WHITESPACE) {
- $expected = ($tokens[($first + 1)]['column'] - 1);
- }
-
- $expected += 4;
- $found = ($tokens[$stackPtr]['column'] - 1);
- if ($found > $expected) {
- $error = 'Opening PHP tag indent incorrect; expected no more than %s spaces but found %s';
- $data = array(
- $expected,
- $found,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'OpenTagIndent', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), str_repeat(' ', $expected));
- }
- }
- }//end if
-
- if ($closingTag === false) {
- return;
- }
-
- $lastContent = $phpcsFile->findPrevious(T_WHITESPACE, ($closingTag - 1), ($stackPtr + 1), true);
- $nextContent = $phpcsFile->findNext(T_WHITESPACE, ($closingTag + 1), null, true);
-
- if ($tokens[$lastContent]['line'] === $tokens[$closingTag]['line']) {
- $error = 'Closing PHP tag must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $closingTag, 'ContentBeforeEnd');
- if ($fix === true) {
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $closingTag, true);
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addContentBefore($closingTag, str_repeat(' ', ($tokens[$first]['column'] - 1)));
- $phpcsFile->fixer->addNewlineBefore($closingTag);
- $phpcsFile->fixer->endChangeset();
- }
- } else if ($tokens[$nextContent]['line'] === $tokens[$closingTag]['line']) {
- $error = 'Closing PHP tag must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $closingTag, 'ContentAfterEnd');
- if ($fix === true) {
- $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $closingTag, true);
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->addNewline($closingTag);
- $phpcsFile->fixer->addContent($closingTag, str_repeat(' ', ($tokens[$first]['column'] - 1)));
- $phpcsFile->fixer->endChangeset();
- }
- }//end if
-
- $next = $phpcsFile->findNext(T_OPEN_TAG, ($closingTag + 1));
- if ($next === false) {
- return;
- }
-
- // Check for a blank line at the bottom.
- if ((isset($tokens[$lastContent]['scope_closer']) === false
- || $tokens[$lastContent]['scope_closer'] !== $lastContent)
- && $tokens[$lastContent]['line'] < ($tokens[$closingTag]['line'] - 1)
- ) {
- // Find a token on the blank line to throw the error on.
- $i = $closingTag;
- do {
- $i--;
- } while ($tokens[$i]['line'] !== ($tokens[$closingTag]['line'] - 1));
-
- $error = 'Blank line found at end of embedded PHP content';
- $fix = $phpcsFile->addFixableError($error, $i, 'SpacingAfter');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($lastContent + 1); $i < $closingTag; $i++) {
- if ($tokens[$i]['line'] === $tokens[$lastContent]['line']
- || $tokens[$i]['line'] === $tokens[$closingTag]['line']
- ) {
- continue;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }//end if
-
- }//end validateMultilineEmbeddedPhp()
-
-
- /**
- * Validates embedded PHP that exists on one line.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- private function validateInlineEmbeddedPhp($phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // We only want one line PHP sections, so return if the closing tag is
- // on the next line.
- $closeTag = $phpcsFile->findNext(T_CLOSE_TAG, $stackPtr, null, false);
- if ($tokens[$stackPtr]['line'] !== $tokens[$closeTag]['line']) {
- return;
- }
-
- // Check that there is one, and only one space at the start of the statement.
- $firstContent = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), ($closeTag - 1), true);
-
- if ($firstContent === false) {
- $error = 'Empty embedded PHP tag found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Empty');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = $stackPtr; $i <= $closeTag; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- return;
- }
-
- // The open tag token always contains a single space after it.
- $leadingSpace = 1;
- if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
- $leadingSpace = (strlen($tokens[($stackPtr + 1)]['content']) + 1);
- }
-
- if ($leadingSpace !== 1) {
- $error = 'Expected 1 space after opening PHP tag; %s found';
- $data = array($leadingSpace);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterOpen', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
- }
- }
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($closeTag - 1), $stackPtr, true);
- if ((isset($tokens[$prev]['scope_opener']) === false
- || $tokens[$prev]['scope_opener'] !== $prev)
- && (isset($tokens[$prev]['scope_closer']) === false
- || $tokens[$prev]['scope_closer'] !== $prev)
- && $tokens[$prev]['code'] !== T_SEMICOLON
- ) {
- $error = 'Inline PHP statement must end with a semicolon';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSemicolon');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($prev, ';');
- }
- } else if ($tokens[$prev]['code'] === T_SEMICOLON) {
- $statementCount = 1;
- for ($i = ($stackPtr + 1); $i < $prev; $i++) {
- if ($tokens[$i]['code'] === T_SEMICOLON) {
- $statementCount++;
- }
- }
-
- if ($statementCount > 1) {
- $error = 'Inline PHP statement must contain a single statement; %s found';
- $data = array($statementCount);
- $phpcsFile->addError($error, $stackPtr, 'MultipleStatements', $data);
- }
- }
-
- $trailingSpace = 0;
- if ($tokens[($closeTag - 1)]['code'] === T_WHITESPACE) {
- $trailingSpace = strlen($tokens[($closeTag - 1)]['content']);
- } else if ($tokens[($closeTag - 1)]['code'] === T_COMMENT
- && substr($tokens[($closeTag - 1)]['content'], -1) === ' '
- ) {
- $trailingSpace = (strlen($tokens[($closeTag - 1)]['content']) - strlen(rtrim($tokens[($closeTag - 1)]['content'])));
- }
-
- if ($trailingSpace !== 1) {
- $error = 'Expected 1 space before closing PHP tag; %s found';
- $data = array($trailingSpace);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeClose', $data);
- if ($fix === true) {
- if ($trailingSpace === 0) {
- $phpcsFile->fixer->addContentBefore($closeTag, ' ');
- } else if ($tokens[($closeTag - 1)]['code'] === T_COMMENT) {
- $phpcsFile->fixer->replaceToken(($closeTag - 1), rtrim($tokens[($closeTag - 1)]['content']).' ');
- } else {
- $phpcsFile->fixer->replaceToken(($closeTag - 1), ' ');
- }
- }
- }
-
- }//end validateInlineEmbeddedPhp()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/EvalSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/EvalSniff.php
deleted file mode 100644
index ef701495..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/EvalSniff.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * The use of eval() is discouraged.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class EvalSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_EVAL);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $error = 'Use of eval() is discouraged';
- $phpcsFile->addWarning($error, $stackPtr, 'Discouraged');
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/ForbiddenFunctionsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/ForbiddenFunctionsSniff.php
deleted file mode 100644
index 23728ddf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/ForbiddenFunctionsSniff.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
- * Discourages the use of alias functions.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff as GenericForbiddenFunctionsSniff;
-
-class ForbiddenFunctionsSniff extends GenericForbiddenFunctionsSniff
-{
-
- /**
- * A list of forbidden functions with their alternatives.
- *
- * The value is NULL if no alternative exists. IE, the
- * function should just not be used.
- *
- * @var array<string, string|null>
- */
- public $forbiddenFunctions = array(
- 'sizeof' => 'count',
- 'delete' => 'unset',
- 'print' => 'echo',
- 'is_null' => null,
- 'create_function' => null,
- );
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/GlobalKeywordSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/GlobalKeywordSniff.php
deleted file mode 100644
index 282f9d49..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/GlobalKeywordSniff.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Stops the usage of the "global" keyword.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class GlobalKeywordSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_GLOBAL);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $nextVar = $tokens[$phpcsFile->findNext(array(T_VARIABLE), $stackPtr)];
- $varName = str_replace('$', '', $nextVar['content']);
- $error = 'Use of the "global" keyword is forbidden; use "$GLOBALS[\'%s\']" instead';
- $data = array($varName);
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed', $data);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/HeredocSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/HeredocSniff.php
deleted file mode 100644
index 557ced42..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/HeredocSniff.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Bans the use of heredocs and nowdocs.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class HeredocSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_START_HEREDOC,
- T_START_NOWDOC,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $error = 'Use of heredoc and nowdoc syntax ("<<<") is not allowed; use standard strings or inline HTML instead';
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/InnerFunctionsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/InnerFunctionsSniff.php
deleted file mode 100644
index 3eea6c15..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/InnerFunctionsSniff.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
- * Ensures that functions within functions are never used.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class InnerFunctionsSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_FUNCTION);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $function = $phpcsFile->getCondition($stackPtr, T_FUNCTION);
- if ($function === false) {
- // Not a nested function.
- return;
- }
-
- $class = $phpcsFile->getCondition($stackPtr, T_ANON_CLASS);
- if ($class !== false && $class > $function) {
- // Ignore methods in anon classes.
- return;
- }
-
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] === T_EQUAL) {
- // Ignore closures.
- return;
- }
-
- $error = 'The use of inner functions is forbidden';
- $phpcsFile->addError($error, $stackPtr, 'NotAllowed');
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/LowercasePHPFunctionsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/LowercasePHPFunctionsSniff.php
deleted file mode 100644
index 16bf2dbc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/LowercasePHPFunctionsSniff.php
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-/**
- * Ensures all calls to inbuilt PHP functions are lowercase.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LowercasePHPFunctionsSniff implements Sniff
-{
-
- /**
- * String -> int hash map of all php built in function names
- *
- * @var array
- */
- private $builtInFunctions;
-
-
- /**
- * Construct the LowercasePHPFunctionSniff
- */
- public function __construct()
- {
-
- $allFunctions = get_defined_functions();
- $this->builtInFunctions = array_flip($allFunctions['internal']);
-
- }//end __construct()
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_STRING);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Make sure this is a function call.
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($next === false) {
- // Not a function call.
- return;
- }
-
- if ($tokens[$next]['code'] !== T_OPEN_PARENTHESIS) {
- // Not a function call.
- return;
- }
-
- $prev = $phpcsFile->findPrevious(array(T_WHITESPACE, T_BITWISE_AND), ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] === T_FUNCTION) {
- // Function declaration, not a function call.
- return;
- }
-
- if ($tokens[$prev]['code'] === T_NS_SEPARATOR) {
- // Namespaced class/function, not an inbuilt function.
- return;
- }
-
- if ($tokens[$prev]['code'] === T_NEW) {
- // Object creation, not an inbuilt function.
- return;
- }
-
- if ($tokens[$prev]['code'] === T_OBJECT_OPERATOR) {
- // Not an inbuilt function.
- return;
- }
-
- if ($tokens[$prev]['code'] === T_DOUBLE_COLON) {
- // Not an inbuilt function.
- return;
- }
-
- // Make sure it is an inbuilt PHP function.
- // PHP_CodeSniffer can possibly include user defined functions
- // through the use of vendor/autoload.php.
- $content = $tokens[$stackPtr]['content'];
- if (isset($this->builtInFunctions[strtolower($content)]) === false) {
- return;
- }
-
- if ($content !== strtolower($content)) {
- $error = 'Calls to inbuilt PHP functions must be lowercase; expected "%s" but found "%s"';
- $data = array(
- strtolower($content),
- $content,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'CallUppercase', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, strtolower($content));
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/NonExecutableCodeSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/NonExecutableCodeSniff.php
deleted file mode 100644
index 470bacad..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/NonExecutableCodeSniff.php
+++ /dev/null
@@ -1,255 +0,0 @@
-<?php
-/**
- * Warns about code that can never been executed.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class NonExecutableCodeSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_BREAK,
- T_CONTINUE,
- T_RETURN,
- T_THROW,
- T_EXIT,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // If this token is preceded with an "or", it only relates to one line
- // and should be ignored. For example: fopen() or die().
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] === T_LOGICAL_OR || $tokens[$prev]['code'] === T_BOOLEAN_OR) {
- return;
- }
-
- // Check if this token is actually part of a one-line IF or ELSE statement.
- for ($i = ($stackPtr - 1); $i > 0; $i--) {
- if ($tokens[$i]['code'] === T_CLOSE_PARENTHESIS) {
- $i = $tokens[$i]['parenthesis_opener'];
- continue;
- } else if (isset(Tokens::$emptyTokens[$tokens[$i]['code']]) === true) {
- continue;
- }
-
- break;
- }
-
- if ($tokens[$i]['code'] === T_IF
- || $tokens[$i]['code'] === T_ELSE
- || $tokens[$i]['code'] === T_ELSEIF
- ) {
- return;
- }
-
- if ($tokens[$stackPtr]['code'] === T_RETURN) {
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$next]['code'] === T_SEMICOLON) {
- $next = $phpcsFile->findNext(T_WHITESPACE, ($next + 1), null, true);
- if ($tokens[$next]['code'] === T_CLOSE_CURLY_BRACKET) {
- // If this is the closing brace of a function
- // then this return statement doesn't return anything
- // and is not required anyway.
- $owner = $tokens[$next]['scope_condition'];
- if ($tokens[$owner]['code'] === T_FUNCTION) {
- $warning = 'Empty return statement not required here';
- $phpcsFile->addWarning($warning, $stackPtr, 'ReturnNotRequired');
- return;
- }
- }
- }
- }
-
- if (isset($tokens[$stackPtr]['scope_opener']) === true) {
- $owner = $tokens[$stackPtr]['scope_condition'];
- if ($tokens[$owner]['code'] === T_CASE || $tokens[$owner]['code'] === T_DEFAULT) {
- // This token closes the scope of a CASE or DEFAULT statement
- // so any code between this statement and the next CASE, DEFAULT or
- // end of SWITCH token will not be executable.
- $end = $phpcsFile->findEndOfStatement($stackPtr);
- $next = $phpcsFile->findNext(
- array(
- T_CASE,
- T_DEFAULT,
- T_CLOSE_CURLY_BRACKET,
- ),
- ($end + 1)
- );
-
- if ($next !== false) {
- $lastLine = $tokens[$end]['line'];
- for ($i = ($stackPtr + 1); $i < $next; $i++) {
- if (isset(Tokens::$emptyTokens[$tokens[$i]['code']]) === true) {
- continue;
- }
-
- $line = $tokens[$i]['line'];
- if ($line > $lastLine) {
- $type = substr($tokens[$stackPtr]['type'], 2);
- $warning = 'Code after %s statement cannot be executed';
- $data = array($type);
- $phpcsFile->addWarning($warning, $i, 'Unreachable', $data);
- $lastLine = $line;
- }
- }
- }//end if
-
- // That's all we have to check for these types of statements.
- return;
- }//end if
- }//end if
-
- // This token may be part of an inline condition.
- // If we find a closing parenthesis that belongs to a condition
- // we should ignore this token.
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 1), null, true);
- if (isset($tokens[$prev]['parenthesis_owner']) === true) {
- $owner = $tokens[$prev]['parenthesis_owner'];
- $ignore = array(
- T_IF => true,
- T_ELSE => true,
- T_ELSEIF => true,
- );
- if (isset($ignore[$tokens[$owner]['code']]) === true) {
- return;
- }
- }
-
- $ourConditions = array_keys($tokens[$stackPtr]['conditions']);
-
- if (empty($ourConditions) === false) {
- $condition = array_pop($ourConditions);
-
- if (isset($tokens[$condition]['scope_closer']) === false) {
- return;
- }
-
- // Special case for BREAK statements sitting directly inside SWITCH
- // statements. If we get to this point, we know the BREAK is not being
- // used to close a CASE statement, so it is most likely non-executable
- // code itself (as is the case when you put return; break; at the end of
- // a case). So we need to ignore this token.
- if ($tokens[$condition]['code'] === T_SWITCH
- && $tokens[$stackPtr]['code'] === T_BREAK
- ) {
- return;
- }
-
- $closer = $tokens[$condition]['scope_closer'];
-
- // If the closer for our condition is shared with other openers,
- // we will need to throw errors from this token to the next
- // shared opener (if there is one), not to the scope closer.
- $nextOpener = null;
- for ($i = ($stackPtr + 1); $i < $closer; $i++) {
- if (isset($tokens[$i]['scope_closer']) === true) {
- if ($tokens[$i]['scope_closer'] === $closer) {
- // We found an opener that shares the same
- // closing token as us.
- $nextOpener = $i;
- break;
- }
- }
- }//end for
-
- if ($nextOpener === null) {
- $end = $closer;
- } else {
- $end = ($nextOpener - 1);
- }
- } else {
- // This token is in the global scope.
- if ($tokens[$stackPtr]['code'] === T_BREAK) {
- return;
- }
-
- // Throw an error for all lines until the end of the file.
- $end = ($phpcsFile->numTokens - 1);
- }//end if
-
- // Find the semicolon that ends this statement, skipping
- // nested statements like FOR loops and closures.
- for ($start = ($stackPtr + 1); $start < $phpcsFile->numTokens; $start++) {
- if ($start === $end) {
- break;
- }
-
- if ($tokens[$start]['code'] === T_OPEN_PARENTHESIS) {
- $start = $tokens[$start]['parenthesis_closer'];
- continue;
- }
-
- if ($tokens[$start]['code'] === T_OPEN_CURLY_BRACKET) {
- $start = $tokens[$start]['bracket_closer'];
- continue;
- }
-
- if ($tokens[$start]['code'] === T_SEMICOLON) {
- break;
- }
- }//end for
-
- $lastLine = $tokens[$start]['line'];
- for ($i = ($start + 1); $i < $end; $i++) {
- if (isset(Tokens::$emptyTokens[$tokens[$i]['code']]) === true
- || isset(Tokens::$bracketTokens[$tokens[$i]['code']]) === true
- ) {
- continue;
- }
-
- // Skip whole functions and classes/interfaces because they are not
- // technically executed code, but rather declarations that may be used.
- if ($tokens[$i]['code'] === T_FUNCTION
- || $tokens[$i]['code'] === T_CLASS
- || $tokens[$i]['code'] === T_INTERFACE
- ) {
- $i = $tokens[$i]['scope_closer'];
- continue;
- }
-
- $line = $tokens[$i]['line'];
- if ($line > $lastLine) {
- $type = substr($tokens[$stackPtr]['type'], 2);
- $warning = 'Code after %s statement cannot be executed';
- $data = array($type);
- $phpcsFile->addWarning($warning, $i, 'Unreachable', $data);
- $lastLine = $line;
- }
- }//end for
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MemberVarScopeSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MemberVarScopeSniff.php
deleted file mode 100644
index 6ae3df76..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MemberVarScopeSniff.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-/**
- * Verifies that class members have scope modifiers.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope;
-
-use PHP_CodeSniffer\Sniffs\AbstractVariableSniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class MemberVarScopeSniff extends AbstractVariableSniff
-{
-
-
- /**
- * Processes the function tokens within the class.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processMemberVar(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $modifier = null;
- for ($i = ($stackPtr - 1); $i > 0; $i--) {
- if ($tokens[$i]['line'] < $tokens[$stackPtr]['line']) {
- break;
- } else if (isset(Tokens::$scopeModifiers[$tokens[$i]['code']]) === true) {
- $modifier = $i;
- break;
- }
- }
-
- if ($modifier === null) {
- $error = 'Scope modifier not specified for member variable "%s"';
- $data = array($tokens[$stackPtr]['content']);
- $phpcsFile->addError($error, $stackPtr, 'Missing', $data);
- }
-
- }//end processMemberVar()
-
-
- /**
- * Processes normal variables.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processVariable(File $phpcsFile, $stackPtr)
- {
- /*
- We don't care about normal variables.
- */
-
- }//end processVariable()
-
-
- /**
- * Processes variables in double quoted strings.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processVariableInString(File $phpcsFile, $stackPtr)
- {
- /*
- We don't care about normal variables.
- */
-
- }//end processVariableInString()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MethodScopeSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MethodScopeSniff.php
deleted file mode 100644
index 6739ab40..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MethodScopeSniff.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-/**
- * Verifies that class methods have scope modifiers.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope;
-
-use PHP_CodeSniffer\Sniffs\AbstractScopeSniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class MethodScopeSniff extends AbstractScopeSniff
-{
-
-
- /**
- * Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
- */
- public function __construct()
- {
- parent::__construct(array(T_CLASS, T_INTERFACE, T_TRAIT), array(T_FUNCTION));
-
- }//end __construct()
-
-
- /**
- * Processes the function tokens within the class.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- * @param int $currScope The current scope opener token.
- *
- * @return void
- */
- protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- $tokens = $phpcsFile->getTokens();
-
- $methodName = $phpcsFile->getDeclarationName($stackPtr);
- if ($methodName === null) {
- // Ignore closures.
- return;
- }
-
- if ($phpcsFile->hasCondition($stackPtr, T_FUNCTION) === true) {
- // Ignore nested functions.
- return;
- }
-
- $modifier = null;
- for ($i = ($stackPtr - 1); $i > 0; $i--) {
- if ($tokens[$i]['line'] < $tokens[$stackPtr]['line']) {
- break;
- } else if (isset(Tokens::$scopeModifiers[$tokens[$i]['code']]) === true) {
- $modifier = $i;
- break;
- }
- }
-
- if ($modifier === null) {
- $error = 'Visibility must be declared on method "%s"';
- $data = array($methodName);
- $phpcsFile->addError($error, $stackPtr, 'Missing', $data);
- }
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes a token that is found within the scope that this test is
- * listening to.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position in the stack where this
- * token was found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
-
- }//end processTokenOutsideScope()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/StaticThisUsageSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/StaticThisUsageSniff.php
deleted file mode 100644
index da732047..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/StaticThisUsageSniff.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-/**
- * Checks for usage of $this in static methods, which will cause runtime errors.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope;
-
-use PHP_CodeSniffer\Sniffs\AbstractScopeSniff;
-use PHP_CodeSniffer\Files\File;
-
-class StaticThisUsageSniff extends AbstractScopeSniff
-{
-
-
- /**
- * Constructs the test with the tokens it wishes to listen for.
- */
- public function __construct()
- {
- parent::__construct(array(T_CLASS), array(T_FUNCTION));
-
- }//end __construct()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- * @param int $currScope A pointer to the start of the scope.
- *
- * @return void
- */
- public function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope)
- {
- $tokens = $phpcsFile->getTokens();
- $function = $tokens[($stackPtr + 2)];
-
- if ($function['code'] !== T_STRING) {
- return;
- }
-
- $functionName = $function['content'];
- $classOpener = $tokens[$currScope]['scope_condition'];
- $className = $tokens[($classOpener + 2)]['content'];
-
- $methodProps = $phpcsFile->getMethodProperties($stackPtr);
-
- if ($methodProps['is_static'] === true) {
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- // There is no scope opener or closer, so the function
- // must be abstract.
- return;
- }
-
- $thisUsage = $stackPtr;
- while (($thisUsage = $phpcsFile->findNext(array(T_VARIABLE), ($thisUsage + 1), $tokens[$stackPtr]['scope_closer'], false, '$this')) !== false) {
- if ($thisUsage === false) {
- return;
- }
-
- $error = 'Usage of "$this" in static methods will cause runtime errors';
- $phpcsFile->addError($error, $thisUsage, 'Found');
- }
- }//end if
-
- }//end processTokenWithinScope()
-
-
- /**
- * Processes a token that is found within the scope that this test is
- * listening to.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position in the stack where this
- * token was found.
- *
- * @return void
- */
- protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
- {
-
- }//end processTokenOutsideScope()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/ConcatenationSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/ConcatenationSpacingSniff.php
deleted file mode 100644
index 369bb769..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/ConcatenationSpacingSniff.php
+++ /dev/null
@@ -1,143 +0,0 @@
-<?php
-/**
- * Makes sure there are no spaces around the concatenation operator.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ConcatenationSpacingSniff implements Sniff
-{
-
- /**
- * The number of spaces before and after a string concat.
- *
- * @var integer
- */
- public $spacing = 0;
-
- /**
- * Allow newlines instead of spaces.
- *
- * @var boolean
- */
- public $ignoreNewlines = false;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_STRING_CONCAT);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $this->spacing = (int) $this->spacing;
-
- $tokens = $phpcsFile->getTokens();
- if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
- $before = 0;
- } else {
- if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) {
- $before = 'newline';
- } else {
- $before = $tokens[($stackPtr - 1)]['length'];
- }
- }
-
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $after = 0;
- } else {
- if ($tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']) {
- $after = 'newline';
- } else {
- $after = $tokens[($stackPtr + 1)]['length'];
- }
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Spacing before string concat', $before);
- $phpcsFile->recordMetric($stackPtr, 'Spacing after string concat', $after);
-
- if (($before === $this->spacing || ($before === 'newline' && $this->ignoreNewlines === true))
- && ($after === $this->spacing || ($after === 'newline' && $this->ignoreNewlines === true))
- ) {
- return;
- }
-
- if ($this->spacing === 0) {
- $message = 'Concat operator must not be surrounded by spaces';
- $data = array();
- } else {
- if ($this->spacing > 1) {
- $message = 'Concat operator must be surrounded by %s spaces';
- } else {
- $message = 'Concat operator must be surrounded by a single space';
- }
-
- $data = array($this->spacing);
- }
-
- $fix = $phpcsFile->addFixableError($message, $stackPtr, 'PaddingFound', $data);
-
- if ($fix === true) {
- $padding = str_repeat(' ', $this->spacing);
- if ($before !== 'newline' || $this->ignoreNewlines === false) {
- if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), $padding);
- if ($this->spacing === 0
- && ($tokens[($stackPtr - 2)]['code'] === T_LNUMBER
- || $tokens[($stackPtr - 2)]['code'] === T_DNUMBER)
- ) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 2), '('.$tokens[($stackPtr - 2)]['content'].')');
- }
-
- $phpcsFile->fixer->endChangeset();
- } else if ($this->spacing > 0) {
- $phpcsFile->fixer->addContent(($stackPtr - 1), $padding);
- }
- }
-
- if ($after !== 'newline' || $this->ignoreNewlines === false) {
- if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), $padding);
- if ($this->spacing === 0
- && ($tokens[($stackPtr + 2)]['code'] === T_LNUMBER
- || $tokens[($stackPtr + 2)]['code'] === T_DNUMBER)
- ) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 2), '('.$tokens[($stackPtr + 2)]['content'].')');
- }
-
- $phpcsFile->fixer->endChangeset();
- } else if ($this->spacing > 0) {
- $phpcsFile->fixer->addContent($stackPtr, $padding);
- }
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/DoubleQuoteUsageSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/DoubleQuoteUsageSniff.php
deleted file mode 100644
index c1369aa6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/DoubleQuoteUsageSniff.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-/**
- * Makes sure that any use of double quotes strings are warranted.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class DoubleQuoteUsageSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_CONSTANT_ENCAPSED_STRING,
- T_DOUBLE_QUOTED_STRING,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // We are only interested in the first token in a multi-line string.
- if ($tokens[$stackPtr]['code'] === $tokens[($stackPtr - 1)]['code']) {
- return;
- }
-
- $workingString = $tokens[$stackPtr]['content'];
- $lastStringToken = $stackPtr;
-
- $i = ($stackPtr + 1);
- if (isset($tokens[$i]) === true) {
- while ($i < $phpcsFile->numTokens
- && $tokens[$i]['code'] === $tokens[$stackPtr]['code']
- ) {
- $workingString .= $tokens[$i]['content'];
- $lastStringToken = $i;
- $i++;
- }
- }
-
- // Check if it's a double quoted string.
- if (strpos($workingString, '"') === false) {
- return;
- }
-
- // Make sure it's not a part of a string started in a previous line.
- // If it is, then we have already checked it.
- if ($workingString[0] !== '"') {
- return;
- }
-
- // The use of variables in double quoted strings is not allowed.
- if ($tokens[$stackPtr]['code'] === T_DOUBLE_QUOTED_STRING) {
- $stringTokens = token_get_all('<?php '.$workingString);
- foreach ($stringTokens as $token) {
- if (is_array($token) === true && $token[0] === T_VARIABLE) {
- $error = 'Variable "%s" not allowed in double quoted string; use concatenation instead';
- $data = array($token[1]);
- $phpcsFile->addError($error, $stackPtr, 'ContainsVar', $data);
- }
- }
-
- return;
- }//end if
-
- $allowedChars = array(
- '\0',
- '\1',
- '\2',
- '\3',
- '\4',
- '\5',
- '\6',
- '\7',
- '\n',
- '\r',
- '\f',
- '\t',
- '\v',
- '\x',
- '\b',
- '\e',
- '\u',
- '\'',
- );
-
- foreach ($allowedChars as $testChar) {
- if (strpos($workingString, $testChar) !== false) {
- return;
- }
- }
-
- $error = 'String %s does not require double quotes; use single quotes instead';
- $data = array(str_replace(array("\r", "\n"), array('\r', '\n'), $workingString));
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotRequired', $data);
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $innerContent = substr($workingString, 1, -1);
- $innerContent = str_replace('\"', '"', $innerContent);
- $innerContent = str_replace('\\$', '$', $innerContent);
- $phpcsFile->fixer->replaceToken($stackPtr, "'$innerContent'");
- while ($lastStringToken !== $stackPtr) {
- $phpcsFile->fixer->replaceToken($lastStringToken, '');
- $lastStringToken--;
- }
-
- $phpcsFile->fixer->endChangeset();
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/EchoedStringsSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/EchoedStringsSniff.php
deleted file mode 100644
index af1a798e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Strings/EchoedStringsSniff.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-/**
- * Makes sure that any strings that are "echoed" are not enclosed in brackets.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class EchoedStringsSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_ECHO);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $firstContent = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- // If the first non-whitespace token is not an opening parenthesis, then we are not concerned.
- if ($tokens[$firstContent]['code'] !== T_OPEN_PARENTHESIS) {
- $phpcsFile->recordMetric($stackPtr, 'Brackets around echoed strings', 'no');
- return;
- }
-
- $end = $phpcsFile->findNext(array(T_SEMICOLON, T_CLOSE_TAG), $stackPtr, null, false);
-
- // If the token before the semi-colon is not a closing parenthesis, then we are not concerned.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($end - 1), null, true);
- if ($tokens[$prev]['code'] !== T_CLOSE_PARENTHESIS) {
- $phpcsFile->recordMetric($stackPtr, 'Brackets around echoed strings', 'no');
- return;
- }
-
- // If the parenthesis don't match, then we are not concerned.
- if ($tokens[$firstContent]['parenthesis_closer'] !== $prev) {
- $phpcsFile->recordMetric($stackPtr, 'Brackets around echoed strings', 'no');
- return;
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Brackets around echoed strings', 'yes');
-
- if (($phpcsFile->findNext(Tokens::$operators, $stackPtr, $end, false)) === false) {
- // There are no arithmetic operators in this.
- $error = 'Echoed strings should not be bracketed';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'HasBracket');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $phpcsFile->fixer->replaceToken($firstContent, '');
- if ($tokens[($firstContent - 1)]['code'] !== T_WHITESPACE) {
- $phpcsFile->fixer->addContent(($firstContent - 1), ' ');
- }
-
- $phpcsFile->fixer->replaceToken($prev, '');
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/CastSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/CastSpacingSniff.php
deleted file mode 100644
index d9468611..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/CastSpacingSniff.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-/**
- * Ensure cast statements don't contain whitespace.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class CastSpacingSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return Tokens::$castTokens;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $content = $tokens[$stackPtr]['content'];
- $expected = str_replace(' ', '', $content);
- $expected = str_replace("\t", '', $expected);
-
- if ($content !== $expected) {
- $error = 'Cast statements must not contain whitespace; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $content,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'ContainsWhiteSpace', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, $expected);
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php
deleted file mode 100644
index f3ef3189..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php
+++ /dev/null
@@ -1,312 +0,0 @@
-<?php
-/**
- * Checks that control structures have the correct spacing around brackets.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ControlStructureSpacingSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_IF,
- T_WHILE,
- T_FOREACH,
- T_FOR,
- T_SWITCH,
- T_DO,
- T_ELSE,
- T_ELSEIF,
- T_TRY,
- T_CATCH,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['parenthesis_opener']) === true
- && isset($tokens[$stackPtr]['parenthesis_closer']) === true
- ) {
- $parenOpener = $tokens[$stackPtr]['parenthesis_opener'];
- $parenCloser = $tokens[$stackPtr]['parenthesis_closer'];
- if ($tokens[($parenOpener + 1)]['code'] === T_WHITESPACE) {
- $gap = $tokens[($parenOpener + 1)]['length'];
-
- if ($gap === 0) {
- $phpcsFile->recordMetric($stackPtr, 'Spaces after control structure open parenthesis', 'newline');
- $gap = 'newline';
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Spaces after control structure open parenthesis', $gap);
- }
-
- $error = 'Expected 0 spaces after opening bracket; %s found';
- $data = array($gap);
- $fix = $phpcsFile->addFixableError($error, ($parenOpener + 1), 'SpacingAfterOpenBrace', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($parenOpener + 1), '');
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Spaces after control structure open parenthesis', 0);
- }
-
- if ($tokens[$parenOpener]['line'] === $tokens[$parenCloser]['line']
- && $tokens[($parenCloser - 1)]['code'] === T_WHITESPACE
- ) {
- $gap = $tokens[($parenCloser - 1)]['length'];
- $error = 'Expected 0 spaces before closing bracket; %s found';
- $data = array($gap);
- $fix = $phpcsFile->addFixableError($error, ($parenCloser - 1), 'SpaceBeforeCloseBrace', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($parenCloser - 1), '');
- }
-
- if ($gap === 0) {
- $phpcsFile->recordMetric($stackPtr, 'Spaces before control structure close parenthesis', 'newline');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Spaces before control structure close parenthesis', $gap);
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Spaces before control structure close parenthesis', 0);
- }
- }//end if
-
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- return;
- }
-
- $scopeOpener = $tokens[$stackPtr]['scope_opener'];
- $scopeCloser = $tokens[$stackPtr]['scope_closer'];
-
- for ($firstContent = ($scopeOpener + 1); $firstContent < $phpcsFile->numTokens; $firstContent++) {
- if ($tokens[$firstContent]['code'] !== T_WHITESPACE) {
- break;
- }
- }
-
- // We ignore spacing for some structures that tend to have their own rules.
- $ignore = array(
- T_FUNCTION => true,
- T_CLASS => true,
- T_INTERFACE => true,
- T_TRAIT => true,
- T_DOC_COMMENT_OPEN_TAG => true,
- );
-
- if (isset($ignore[$tokens[$firstContent]['code']]) === false
- && $tokens[$firstContent]['line'] >= ($tokens[$scopeOpener]['line'] + 2)
- ) {
- $gap = ($tokens[$firstContent]['line'] - $tokens[$scopeOpener]['line'] - 1);
- $phpcsFile->recordMetric($stackPtr, 'Blank lines at start of control structure', $gap);
-
- $error = 'Blank line found at start of control structure';
- $fix = $phpcsFile->addFixableError($error, $scopeOpener, 'SpacingAfterOpen');
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $i = ($scopeOpener + 1);
- while ($tokens[$i]['line'] !== $tokens[$firstContent]['line']) {
- $phpcsFile->fixer->replaceToken($i, '');
- $i++;
- }
-
- $phpcsFile->fixer->addNewline($scopeOpener);
- $phpcsFile->fixer->endChangeset();
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Blank lines at start of control structure', 0);
- }//end if
-
- if ($firstContent !== $scopeCloser) {
- $lastContent = $phpcsFile->findPrevious(
- T_WHITESPACE,
- ($scopeCloser - 1),
- null,
- true
- );
-
- $lastNonEmptyContent = $phpcsFile->findPrevious(
- Tokens::$emptyTokens,
- ($scopeCloser - 1),
- null,
- true
- );
-
- $checkToken = $lastContent;
- if (isset($tokens[$lastNonEmptyContent]['scope_condition']) === true) {
- $checkToken = $tokens[$lastNonEmptyContent]['scope_condition'];
- }
-
- if (isset($ignore[$tokens[$checkToken]['code']]) === false
- && $tokens[$lastContent]['line'] <= ($tokens[$scopeCloser]['line'] - 2)
- ) {
- $errorToken = $scopeCloser;
- for ($i = ($scopeCloser - 1); $i > $lastContent; $i--) {
- if ($tokens[$i]['line'] < $tokens[$scopeCloser]['line']) {
- $errorToken = $i;
- break;
- }
- }
-
- $gap = ($tokens[$scopeCloser]['line'] - $tokens[$lastContent]['line'] - 1);
- $phpcsFile->recordMetric($stackPtr, 'Blank lines at end of control structure', $gap);
-
- $error = 'Blank line found at end of control structure';
- $fix = $phpcsFile->addFixableError($error, $errorToken, 'SpacingBeforeClose');
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $i = ($scopeCloser - 1);
- for ($i = ($scopeCloser - 1); $i > $lastContent; $i--) {
- if ($tokens[$i]['line'] === $tokens[$scopeCloser]['line']) {
- continue;
- }
-
- if ($tokens[$i]['line'] === $tokens[$lastContent]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- } else {
- $phpcsFile->recordMetric($stackPtr, 'Blank lines at end of control structure', 0);
- }//end if
- }//end if
-
- $trailingContent = $phpcsFile->findNext(
- T_WHITESPACE,
- ($scopeCloser + 1),
- null,
- true
- );
-
- if ($tokens[$trailingContent]['code'] === T_COMMENT) {
- // Special exception for code where the comment about
- // an ELSE or ELSEIF is written between the control structures.
- $nextCode = $phpcsFile->findNext(
- Tokens::$emptyTokens,
- ($scopeCloser + 1),
- null,
- true
- );
-
- if ($tokens[$nextCode]['code'] === T_ELSE
- || $tokens[$nextCode]['code'] === T_ELSEIF
- ) {
- $trailingContent = $nextCode;
- }
- }//end if
-
- if ($tokens[$trailingContent]['code'] === T_ELSE) {
- if ($tokens[$stackPtr]['code'] === T_IF) {
- // IF with ELSE.
- return;
- }
- }
-
- if ($tokens[$trailingContent]['code'] === T_WHILE
- && $tokens[$stackPtr]['code'] === T_DO
- ) {
- // DO with WHILE.
- return;
- }
-
- if ($tokens[$trailingContent]['code'] === T_CLOSE_TAG) {
- // At the end of the script or embedded code.
- return;
- }
-
- if (isset($tokens[$trailingContent]['scope_condition']) === true
- && $tokens[$trailingContent]['scope_condition'] !== $trailingContent
- && isset($tokens[$trailingContent]['scope_opener']) === true
- && $tokens[$trailingContent]['scope_opener'] !== $trailingContent
- ) {
- // Another control structure's closing brace.
- $owner = $tokens[$trailingContent]['scope_condition'];
- if ($tokens[$owner]['code'] === T_FUNCTION) {
- // The next content is the closing brace of a function
- // so normal function rules apply and we can ignore it.
- return;
- }
-
- if ($tokens[$owner]['code'] === T_CLOSURE
- && ($phpcsFile->hasCondition($stackPtr, T_FUNCTION) === true
- || $phpcsFile->hasCondition($stackPtr, T_CLOSURE) === true
- || isset($tokens[$stackPtr]['nested_parenthesis']) === true)
- ) {
- return;
- }
-
- if ($tokens[$trailingContent]['line'] !== ($tokens[$scopeCloser]['line'] + 1)) {
- $error = 'Blank line found after control structure';
- $fix = $phpcsFile->addFixableError($error, $scopeCloser, 'LineAfterClose');
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $i = ($scopeCloser + 1);
- while ($tokens[$i]['line'] !== $tokens[$trailingContent]['line']) {
- $phpcsFile->fixer->replaceToken($i, '');
- $i++;
- }
-
- $phpcsFile->fixer->addNewline($scopeCloser);
- $phpcsFile->fixer->endChangeset();
- }
- }
- } else if ($tokens[$trailingContent]['code'] !== T_ELSE
- && $tokens[$trailingContent]['code'] !== T_ELSEIF
- && $tokens[$trailingContent]['code'] !== T_CATCH
- && $tokens[$trailingContent]['line'] === ($tokens[$scopeCloser]['line'] + 1)
- ) {
- $error = 'No blank line found after control structure';
- $fix = $phpcsFile->addFixableError($error, $scopeCloser, 'NoLineAfterClose');
- if ($fix === true) {
- $phpcsFile->fixer->addNewline($scopeCloser);
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionClosingBraceSpaceSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionClosingBraceSpaceSniff.php
deleted file mode 100644
index e0f31287..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionClosingBraceSpaceSniff.php
+++ /dev/null
@@ -1,167 +0,0 @@
-<?php
-/**
- * Checks that there is one empty line before the closing brace of a function.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class FunctionClosingBraceSpaceSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_CLOSURE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- // Probably an interface method.
- return;
- }
-
- $closeBrace = $tokens[$stackPtr]['scope_closer'];
- $prevContent = $phpcsFile->findPrevious(T_WHITESPACE, ($closeBrace - 1), null, true);
-
- // Special case for empty JS functions.
- if ($phpcsFile->tokenizerType === 'JS' && $prevContent === $tokens[$stackPtr]['scope_opener']) {
- // In this case, the opening and closing brace must be
- // right next to each other.
- if ($tokens[$stackPtr]['scope_closer'] !== ($tokens[$stackPtr]['scope_opener'] + 1)) {
- $error = 'The opening and closing braces of empty functions must be directly next to each other; e.g., function () {}';
- $fix = $phpcsFile->addFixableError($error, $closeBrace, 'SpacingBetween');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($tokens[$stackPtr]['scope_opener'] + 1); $i < $closeBrace; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- return;
- }
-
- $nestedFunction = false;
- if ($phpcsFile->hasCondition($stackPtr, T_FUNCTION) === true
- || $phpcsFile->hasCondition($stackPtr, T_CLOSURE) === true
- || isset($tokens[$stackPtr]['nested_parenthesis']) === true
- ) {
- $nestedFunction = true;
- }
-
- $braceLine = $tokens[$closeBrace]['line'];
- $prevLine = $tokens[$prevContent]['line'];
- $found = ($braceLine - $prevLine - 1);
-
- $afterKeyword = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- $beforeKeyword = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($nestedFunction === true) {
- if ($found < 0) {
- $error = 'Closing brace of nested function must be on a new line';
- $fix = $phpcsFile->addFixableError($error, $closeBrace, 'ContentBeforeClose');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($closeBrace);
- }
- } else if ($found > 0) {
- $error = 'Expected 0 blank lines before closing brace of nested function; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $closeBrace, 'SpacingBeforeNestedClose', $data);
-
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $changeMade = false;
- for ($i = ($prevContent + 1); $i < $closeBrace; $i++) {
- // Try and maintain indentation.
- if ($tokens[$i]['line'] === ($braceLine - 1)) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- $changeMade = true;
- }
-
- // Special case for when the last content contains the newline
- // token as well, like with a comment.
- if ($changeMade === false) {
- $phpcsFile->fixer->replaceToken(($prevContent + 1), '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }//end if
- }//end if
- } else {
- if ($found !== 1) {
- if ($found < 0) {
- $found = 0;
- }
-
- $error = 'Expected 1 blank line before closing function brace; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $closeBrace, 'SpacingBeforeClose', $data);
-
- if ($fix === true) {
- if ($found > 1) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prevContent + 1); $i < ($closeBrace - 1); $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->replaceToken($i, $phpcsFile->eolChar);
- $phpcsFile->fixer->endChangeset();
- } else {
- // Try and maintain indentation.
- if ($tokens[($closeBrace - 1)]['code'] === T_WHITESPACE) {
- $phpcsFile->fixer->addNewlineBefore($closeBrace - 1);
- } else {
- $phpcsFile->fixer->addNewlineBefore($closeBrace);
- }
- }
- }
- }//end if
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php
deleted file mode 100644
index 3ab66778..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-/**
- * Checks that there is no empty line after the opening brace of a function.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class FunctionOpeningBraceSpaceSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_FUNCTION,
- T_CLOSURE,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if (isset($tokens[$stackPtr]['scope_opener']) === false) {
- // Probably an interface method.
- return;
- }
-
- $openBrace = $tokens[$stackPtr]['scope_opener'];
- $nextContent = $phpcsFile->findNext(T_WHITESPACE, ($openBrace + 1), null, true);
-
- if ($nextContent === $tokens[$stackPtr]['scope_closer']) {
- // The next bit of content is the closing brace, so this
- // is an empty function and should have a blank line
- // between the opening and closing braces.
- return;
- }
-
- $braceLine = $tokens[$openBrace]['line'];
- $nextLine = $tokens[$nextContent]['line'];
-
- $found = ($nextLine - $braceLine - 1);
- if ($found > 0) {
- $error = 'Expected 0 blank lines after opening function brace; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $openBrace, 'SpacingAfter', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($openBrace + 1); $i < $nextContent; $i++) {
- if ($tokens[$i]['line'] === $nextLine) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->addNewline($openBrace);
- $phpcsFile->fixer->endChangeset();
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionSpacingSniff.php
deleted file mode 100644
index 1699a251..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionSpacingSniff.php
+++ /dev/null
@@ -1,230 +0,0 @@
-<?php
-/**
- * Checks the separation between methods in a class or interface.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class FunctionSpacingSniff implements Sniff
-{
-
- /**
- * The number of blank lines between functions.
- *
- * @var integer
- */
- public $spacing = 2;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_FUNCTION);
-
- }//end register()
-
-
- /**
- * Processes this sniff when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $this->spacing = (int) $this->spacing;
-
- /*
- Check the number of blank lines
- after the function.
- */
-
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- // Must be an interface method, so the closer is the semicolon.
- $closer = $phpcsFile->findNext(T_SEMICOLON, $stackPtr);
- } else {
- $closer = $tokens[$stackPtr]['scope_closer'];
- }
-
- // Allow for comments on the same line as the closer.
- for ($nextLineToken = ($closer + 1); $nextLineToken < $phpcsFile->numTokens; $nextLineToken++) {
- if ($tokens[$nextLineToken]['line'] !== $tokens[$closer]['line']) {
- break;
- }
- }
-
- $foundLines = 0;
- if ($nextLineToken === ($phpcsFile->numTokens - 1)) {
- // We are at the end of the file.
- // Don't check spacing after the function because this
- // should be done by an EOF sniff.
- $foundLines = $this->spacing;
- } else {
- $nextContent = $phpcsFile->findNext(T_WHITESPACE, $nextLineToken, null, true);
- if ($nextContent === false) {
- // We are at the end of the file.
- // Don't check spacing after the function because this
- // should be done by an EOF sniff.
- $foundLines = $this->spacing;
- } else {
- $foundLines += ($tokens[$nextContent]['line'] - $tokens[$nextLineToken]['line']);
- }
- }
-
- if ($foundLines !== $this->spacing) {
- $error = 'Expected %s blank line';
- if ($this->spacing !== 1) {
- $error .= 's';
- }
-
- $error .= ' after function; %s found';
- $data = array(
- $this->spacing,
- $foundLines,
- );
-
- $fix = $phpcsFile->addFixableError($error, $closer, 'After', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = $nextLineToken; $i <= $nextContent; $i++) {
- if ($tokens[$i]['line'] === $tokens[$nextContent]['line']) {
- $phpcsFile->fixer->addContentBefore($i, str_repeat($phpcsFile->eolChar, $this->spacing));
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }//end if
- }//end if
-
- /*
- Check the number of blank lines
- before the function.
- */
-
- $prevLineToken = null;
- for ($i = $stackPtr; $i > 0; $i--) {
- if (strpos($tokens[$i]['content'], $phpcsFile->eolChar) === false) {
- continue;
- } else {
- $prevLineToken = $i;
- break;
- }
- }
-
- if (is_null($prevLineToken) === true) {
- // Never found the previous line, which means
- // there are 0 blank lines before the function.
- $foundLines = 0;
- $prevContent = 0;
- } else {
- $currentLine = $tokens[$stackPtr]['line'];
-
- $prevContent = $phpcsFile->findPrevious(T_WHITESPACE, $prevLineToken, null, true);
- if ($tokens[$prevContent]['code'] === T_COMMENT) {
- // Ignore comments as they can have different spacing rules, and this
- // isn't a proper function comment anyway.
- return;
- }
-
- if ($tokens[$prevContent]['code'] === T_DOC_COMMENT_CLOSE_TAG
- && $tokens[$prevContent]['line'] === ($currentLine - 1)
- ) {
- // Account for function comments.
- $prevContent = $phpcsFile->findPrevious(T_WHITESPACE, ($tokens[$prevContent]['comment_opener'] - 1), null, true);
- }
-
- // Before we throw an error, check that we are not throwing an error
- // for another function. We don't want to error for no blank lines after
- // the previous function and no blank lines before this one as well.
- $prevLine = ($tokens[$prevContent]['line'] - 1);
- $i = ($stackPtr - 1);
- $foundLines = 0;
- while ($currentLine !== $prevLine && $currentLine > 1 && $i > 0) {
- if (isset($tokens[$i]['scope_condition']) === true) {
- $scopeCondition = $tokens[$i]['scope_condition'];
- if ($tokens[$scopeCondition]['code'] === T_FUNCTION) {
- // Found a previous function.
- return;
- }
- } else if ($tokens[$i]['code'] === T_FUNCTION) {
- // Found another interface function.
- return;
- }
-
- $currentLine = $tokens[$i]['line'];
- if ($currentLine === $prevLine) {
- break;
- }
-
- if ($tokens[($i - 1)]['line'] < $currentLine && $tokens[($i + 1)]['line'] > $currentLine) {
- // This token is on a line by itself. If it is whitespace, the line is empty.
- if ($tokens[$i]['code'] === T_WHITESPACE) {
- $foundLines++;
- }
- }
-
- $i--;
- }//end while
- }//end if
-
- if ($foundLines !== $this->spacing) {
- $error = 'Expected %s blank line';
- if ($this->spacing !== 1) {
- $error .= 's';
- }
-
- $error .= ' before function; %s found';
- $data = array(
- $this->spacing,
- $foundLines,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Before', $data);
- if ($fix === true) {
- if ($prevContent === 0) {
- $nextSpace = 0;
- } else {
- $nextSpace = $phpcsFile->findNext(T_WHITESPACE, ($prevContent + 1), $stackPtr);
- if ($nextSpace === false) {
- $nextSpace = ($stackPtr - 1);
- }
- }
-
- if ($foundLines < $this->spacing) {
- $padding = str_repeat($phpcsFile->eolChar, ($this->spacing - $foundLines));
- $phpcsFile->fixer->addContent($nextSpace, $padding);
- } else {
- $nextContent = $phpcsFile->findNext(T_WHITESPACE, ($nextSpace + 1), null, true);
- $phpcsFile->fixer->beginChangeset();
- for ($i = $nextSpace; $i < ($nextContent - 1); $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->replaceToken($i, str_repeat($phpcsFile->eolChar, $this->spacing));
- $phpcsFile->fixer->endChangeset();
- }
- }//end if
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/LanguageConstructSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/LanguageConstructSpacingSniff.php
deleted file mode 100644
index 13b717a4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/LanguageConstructSpacingSniff.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/**
- * Ensures all language constructs contain a single space between themselves and their content.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class LanguageConstructSpacingSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_ECHO,
- T_PRINT,
- T_RETURN,
- T_INCLUDE,
- T_INCLUDE_ONCE,
- T_REQUIRE,
- T_REQUIRE_ONCE,
- T_NEW,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[($stackPtr + 1)]['code'] === T_SEMICOLON) {
- // No content for this language construct.
- return;
- }
-
- if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
- $content = $tokens[($stackPtr + 1)]['content'];
- $contentLength = strlen($content);
- if ($contentLength !== 1) {
- $error = 'Language constructs must be followed by a single space; expected 1 space but found %s';
- $data = array($contentLength);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'IncorrectSingle', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
- } else if ($tokens[($stackPtr + 1)]['code'] !== T_OPEN_PARENTHESIS) {
- $error = 'Language constructs must be followed by a single space; expected "%s" but found "%s"';
- $data = array(
- $tokens[$stackPtr]['content'].' '.$tokens[($stackPtr + 1)]['content'],
- $tokens[$stackPtr]['content'].$tokens[($stackPtr + 1)]['content'],
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data);
- if ($fix === true) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/LogicalOperatorSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/LogicalOperatorSpacingSniff.php
deleted file mode 100644
index f3257b78..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/LogicalOperatorSpacingSniff.php
+++ /dev/null
@@ -1,102 +0,0 @@
-<?php
-/**
- * Verifies that operators have valid spacing surrounding them.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class LogicalOperatorSpacingSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return Tokens::$booleanOperators;
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being checked.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Check there is one space before the operator.
- if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space before logical operator; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceBefore');
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
- }
- } else {
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$stackPtr]['line'] === $tokens[$prev]['line']
- && strlen($tokens[($stackPtr - 1)]['content']) !== 1
- ) {
- $found = strlen($tokens[($stackPtr - 1)]['content']);
- $error = 'Expected 1 space before logical operator; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'TooMuchSpaceBefore', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
- }
- }
- }
-
- // Check there is one space after the operator.
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space after logical operator; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfter');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- }
- } else {
- $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- if ($tokens[$stackPtr]['line'] === $tokens[$next]['line']
- && strlen($tokens[($stackPtr + 1)]['content']) !== 1
- ) {
- $found = strlen($tokens[($stackPtr + 1)]['content']);
- $error = 'Expected 1 space after logical operator; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'TooMuchSpaceAfter', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/MemberVarSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/MemberVarSpacingSniff.php
deleted file mode 100644
index 0644e273..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/MemberVarSpacingSniff.php
+++ /dev/null
@@ -1,151 +0,0 @@
-<?php
-/**
- * Verifies that class members are spaced correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\AbstractVariableSniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class MemberVarSpacingSniff extends AbstractVariableSniff
-{
-
-
- /**
- * Processes the function tokens within the class.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processMemberVar(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $ignore = Tokens::$methodPrefixes;
- $ignore[] = T_VAR;
- $ignore[] = T_WHITESPACE;
-
- $start = $stackPtr;
- $prev = $phpcsFile->findPrevious($ignore, ($stackPtr - 1), null, true);
- if (isset(Tokens::$commentTokens[$tokens[$prev]['code']]) === true) {
- // Assume the comment belongs to the member var if it is on a line by itself.
- $prevContent = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($prev - 1), null, true);
- if ($tokens[$prevContent]['line'] !== $tokens[$prev]['line']) {
- // Check the spacing, but then skip it.
- $foundLines = ($tokens[$stackPtr]['line'] - $tokens[$prev]['line'] - 1);
- if ($foundLines > 0) {
- $error = 'Expected 0 blank lines after member var comment; %s found';
- $data = array($foundLines);
- $fix = $phpcsFile->addFixableError($error, $prev, 'AfterComment', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- // Inline comments have the newline included in the content but
- // docblock do not.
- if ($tokens[$prev]['code'] === T_COMMENT) {
- $phpcsFile->fixer->replaceToken($prev, rtrim($tokens[$prev]['content']));
- }
-
- for ($i = ($prev + 1); $i <= $stackPtr; $i++) {
- if ($tokens[$i]['line'] === $tokens[$stackPtr]['line']) {
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->addNewline($prev);
- $phpcsFile->fixer->endChangeset();
- }
- }//end if
-
- $start = $prev;
- }//end if
- }//end if
-
- // There needs to be 1 blank line before the var, not counting comments.
- if ($start === $stackPtr) {
- // No comment found.
- $first = $phpcsFile->findFirstOnLine(Tokens::$emptyTokens, $start, true);
- if ($first === false) {
- $first = $start;
- }
- } else if ($tokens[$start]['code'] === T_DOC_COMMENT_CLOSE_TAG) {
- $first = $tokens[$start]['comment_opener'];
- } else {
- $first = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($start - 1), null, true);
- $first = $phpcsFile->findNext(Tokens::$commentTokens, ($first + 1));
- }
-
- $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($first - 1), null, true);
- $foundLines = ($tokens[$first]['line'] - $tokens[$prev]['line'] - 1);
- if ($foundLines === 1) {
- return;
- }
-
- $error = 'Expected 1 blank line before member var; %s found';
- $data = array($foundLines);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($prev + 1); $i < $first; $i++) {
- if ($tokens[$i]['line'] === $tokens[$prev]['line']) {
- continue;
- }
-
- if ($tokens[$i]['line'] === $tokens[$first]['line']) {
- $phpcsFile->fixer->addNewline(($i - 1));
- break;
- }
-
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }//end if
-
- }//end processMemberVar()
-
-
- /**
- * Processes normal variables.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processVariable(File $phpcsFile, $stackPtr)
- {
- /*
- We don't care about normal variables.
- */
-
- }//end processVariable()
-
-
- /**
- * Processes variables in double quoted strings.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
- * @param int $stackPtr The position where the token was found.
- *
- * @return void
- */
- protected function processVariableInString(File $phpcsFile, $stackPtr)
- {
- /*
- We don't care about normal variables.
- */
-
- }//end processVariableInString()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php
deleted file mode 100644
index c8048c36..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-/**
- * Ensure there is no whitespace before/after an object operator.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ObjectOperatorSpacingSniff implements Sniff
-{
-
- /**
- * Allow newlines instead of spaces.
- *
- * @var boolean
- */
- public $ignoreNewlines = false;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OBJECT_OPERATOR);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
- $before = 0;
- } else {
- if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) {
- $before = 'newline';
- } else {
- $before = $tokens[($stackPtr - 1)]['length'];
- }
- }
-
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $after = 0;
- } else {
- if ($tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']) {
- $after = 'newline';
- } else {
- $after = $tokens[($stackPtr + 1)]['length'];
- }
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Spacing before object operator', $before);
- $phpcsFile->recordMetric($stackPtr, 'Spacing after object operator', $after);
-
- $this->checkSpacingBeforeOperator($phpcsFile, $stackPtr, $before);
- $this->checkSpacingAfterOperator($phpcsFile, $stackPtr, $after);
-
- }//end process()
-
-
- /**
- * Check the spacing before the operator.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param mixed $before The number of spaces found before the
- * operator or the string 'newline'.
- *
- * @return boolean true if there was no error, false otherwise.
- */
- protected function checkSpacingBeforeOperator(File $phpcsFile, $stackPtr, $before)
- {
- if ($before !== 0
- && ($before !== 'newline' || $this->ignoreNewlines === false)
- ) {
- $error = 'Space found before object operator';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Before');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), '');
- }
-
- return false;
- }
-
- return true;
-
- }//end checkSpacingBeforeOperator()
-
-
- /**
- * Check the spacing after the operator.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- * @param mixed $after The number of spaces found after the
- * operator or the string 'newline'.
- *
- * @return boolean true if there was no error, false otherwise.
- */
- protected function checkSpacingAfterOperator(File $phpcsFile, $stackPtr, $after)
- {
- if ($after !== 0
- && ($after !== 'newline' || $this->ignoreNewlines === false)
- ) {
- $error = 'Space found after object operator';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'After');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
- }
-
- return false;
- }
-
- return true;
-
- }//end checkSpacingAfterOperator()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php
deleted file mode 100644
index 5ab9c690..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php
+++ /dev/null
@@ -1,313 +0,0 @@
-<?php
-/**
- * Verifies that operators have valid spacing surrounding them.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class OperatorSpacingSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
- /**
- * Allow newlines instead of spaces.
- *
- * @var boolean
- */
- public $ignoreNewlines = false;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- $comparison = Tokens::$comparisonTokens;
- $operators = Tokens::$operators;
- $assignment = Tokens::$assignmentTokens;
- $inlineIf = array(
- T_INLINE_THEN,
- T_INLINE_ELSE,
- );
-
- return array_unique(
- array_merge($comparison, $operators, $assignment, $inlineIf)
- );
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being checked.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // Skip default values in function declarations.
- // Skip declare statements.
- if ($tokens[$stackPtr]['code'] === T_EQUAL
- || $tokens[$stackPtr]['code'] === T_MINUS
- ) {
- if (isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
- $parenthesis = array_keys($tokens[$stackPtr]['nested_parenthesis']);
- $bracket = array_pop($parenthesis);
- if (isset($tokens[$bracket]['parenthesis_owner']) === true) {
- $function = $tokens[$bracket]['parenthesis_owner'];
- if ($tokens[$function]['code'] === T_FUNCTION
- || $tokens[$function]['code'] === T_CLOSURE
- || $tokens[$function]['code'] === T_DECLARE
- ) {
- return;
- }
- }
- }
- }
-
- if ($tokens[$stackPtr]['code'] === T_EQUAL) {
- // Skip for '=&' case.
- if (isset($tokens[($stackPtr + 1)]) === true
- && $tokens[($stackPtr + 1)]['code'] === T_BITWISE_AND
- ) {
- return;
- }
- }
-
- if ($tokens[$stackPtr]['code'] === T_BITWISE_AND) {
- // If it's not a reference, then we expect one space either side of the
- // bitwise operator.
- if ($phpcsFile->isReference($stackPtr) === true) {
- return;
- }
-
- // Check there is one space before the & operator.
- if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space before "&" operator; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceBeforeAmp');
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Space before operator', 0);
- } else {
- if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) {
- $found = 'newline';
- } else {
- $found = $tokens[($stackPtr - 1)]['length'];
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Space before operator', $found);
- if ($found !== 1
- && ($found !== 'newline' || $this->ignoreNewlines === false)
- ) {
- $error = 'Expected 1 space before "&" operator; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBeforeAmp', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
- }
- }
- }//end if
-
- // Check there is one space after the & operator.
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- $error = 'Expected 1 space after "&" operator; 0 found';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfterAmp');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Space after operator', 0);
- } else {
- if ($tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']) {
- $found = 'newline';
- } else {
- $found = $tokens[($stackPtr + 1)]['length'];
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Space after operator', $found);
- if ($found !== 1
- && ($found !== 'newline' || $this->ignoreNewlines === false)
- ) {
- $error = 'Expected 1 space after "&" operator; %s found';
- $data = array($found);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfterAmp', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
- }//end if
-
- return;
- }//end if
-
- if ($tokens[$stackPtr]['code'] === T_MINUS || $tokens[$stackPtr]['code'] === T_PLUS) {
- // Check minus spacing, but make sure we aren't just assigning
- // a minus value or returning one.
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- if ($tokens[$prev]['code'] === T_RETURN) {
- // Just returning a negative value; eg. (return -1).
- return;
- }
-
- if (isset(Tokens::$operators[$tokens[$prev]['code']]) === true) {
- // Just trying to operate on a negative value; eg. ($var * -1).
- return;
- }
-
- if (isset(Tokens::$comparisonTokens[$tokens[$prev]['code']]) === true) {
- // Just trying to compare a negative value; eg. ($var === -1).
- return;
- }
-
- if (isset(Tokens::$booleanOperators[$tokens[$prev]['code']]) === true) {
- // Just trying to compare a negative value; eg. ($var || -1 === $b).
- return;
- }
-
- if (isset(Tokens::$assignmentTokens[$tokens[$prev]['code']]) === true) {
- // Just trying to assign a negative value; eg. ($var = -1).
- return;
- }
-
- // A list of tokens that indicate that the token is not
- // part of an arithmetic operation.
- $invalidTokens = array(
- T_COMMA => true,
- T_OPEN_PARENTHESIS => true,
- T_OPEN_SQUARE_BRACKET => true,
- T_OPEN_SHORT_ARRAY => true,
- T_DOUBLE_ARROW => true,
- T_COLON => true,
- T_INLINE_THEN => true,
- T_INLINE_ELSE => true,
- T_CASE => true,
- );
-
- if (isset($invalidTokens[$tokens[$prev]['code']]) === true) {
- // Just trying to use a negative value; eg. myFunction($var, -2).
- return;
- }
- }//end if
-
- $operator = $tokens[$stackPtr]['content'];
-
- if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE
- && (($tokens[($stackPtr - 1)]['code'] === T_INLINE_THEN
- && $tokens[($stackPtr )]['code'] === T_INLINE_ELSE) === false)
- ) {
- $error = "Expected 1 space before \"$operator\"; 0 found";
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceBefore');
- if ($fix === true) {
- $phpcsFile->fixer->addContentBefore($stackPtr, ' ');
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Space before operator', 0);
- } else if (isset(Tokens::$assignmentTokens[$tokens[$stackPtr]['code']]) === false) {
- // Don't throw an error for assignments, because other standards allow
- // multiple spaces there to align multiple assignments.
- if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) {
- $found = 'newline';
- } else {
- $found = $tokens[($stackPtr - 1)]['length'];
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Space before operator', $found);
- if ($found !== 1
- && ($found !== 'newline' || $this->ignoreNewlines === false)
- ) {
- $error = 'Expected 1 space before "%s"; %s found';
- $data = array(
- $operator,
- $found,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingBefore', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- if ($found === 'newline') {
- $i = ($stackPtr - 2);
- while ($tokens[$i]['code'] === T_WHITESPACE) {
- $phpcsFile->fixer->replaceToken($i, '');
- $i--;
- }
- }
-
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), ' ');
- $phpcsFile->fixer->endChangeset();
- }
- }//end if
- }//end if
-
- if (isset($tokens[($stackPtr + 1)]) === false) {
- return;
- }
-
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- // Skip short ternary such as: "$foo = $bar ?: true;".
- if (($tokens[$stackPtr]['code'] === T_INLINE_THEN
- && $tokens[($stackPtr + 1)]['code'] === T_INLINE_ELSE)
- ) {
- return;
- }
-
- $error = "Expected 1 space after \"$operator\"; 0 found";
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'NoSpaceAfter');
- if ($fix === true) {
- $phpcsFile->fixer->addContent($stackPtr, ' ');
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Space after operator', 0);
- } else {
- if (isset($tokens[($stackPtr + 2)]) === true
- && $tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']
- ) {
- $found = 'newline';
- } else {
- $found = $tokens[($stackPtr + 1)]['length'];
- }
-
- $phpcsFile->recordMetric($stackPtr, 'Space after operator', $found);
- if ($found !== 1
- && ($found !== 'newline' || $this->ignoreNewlines === false)
- ) {
- $error = 'Expected 1 space after "%s"; %s found';
- $data = array(
- $operator,
- $found,
- );
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpacingAfter', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/PropertyLabelSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/PropertyLabelSpacingSniff.php
deleted file mode 100644
index bf99f219..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/PropertyLabelSpacingSniff.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-/**
- * Ensures that a property or label colon has a single space after it and no space before it.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class PropertyLabelSpacingSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array('JS');
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_PROPERTY,
- T_LABEL,
- );
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $colon = $phpcsFile->findNext(T_COLON, ($stackPtr + 1));
-
- if ($colon !== ($stackPtr + 1)) {
- $error = 'There must be no space before the colon in a property/label declaration';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Before');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
- }
- }
-
- if ($tokens[($colon + 1)]['code'] !== T_WHITESPACE || $tokens[($colon + 1)]['content'] !== ' ') {
- $error = 'There must be a single space after the colon in a property/label declaration';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'After');
- if ($fix === true) {
- if ($tokens[($colon + 1)]['code'] === T_WHITESPACE) {
- $phpcsFile->fixer->replaceToken(($colon + 1), ' ');
- } else {
- $phpcsFile->fixer->addContent($colon, ' ');
- }
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php
deleted file mode 100644
index 5d7eea4f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php
-/**
- * Checks that the closing braces of scopes are aligned correctly.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ScopeClosingBraceSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return Tokens::$scopeOpeners;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile All the tokens found in the document.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- // If this is an inline condition (ie. there is no scope opener), then
- // return, as this is not a new scope.
- if (isset($tokens[$stackPtr]['scope_closer']) === false) {
- return;
- }
-
- // We need to actually find the first piece of content on this line,
- // as if this is a method with tokens before it (public, static etc)
- // or an if with an else before it, then we need to start the scope
- // checking from there, rather than the current token.
- $lineStart = $phpcsFile->findFirstOnLine(array(T_WHITESPACE, T_INLINE_HTML), $stackPtr, true);
-
- $startColumn = $tokens[$lineStart]['column'];
- $scopeStart = $tokens[$stackPtr]['scope_opener'];
- $scopeEnd = $tokens[$stackPtr]['scope_closer'];
-
- // Check that the closing brace is on it's own line.
- $lastContent = $phpcsFile->findPrevious(array(T_INLINE_HTML, T_WHITESPACE, T_OPEN_TAG), ($scopeEnd - 1), $scopeStart, true);
- if ($tokens[$lastContent]['line'] === $tokens[$scopeEnd]['line']) {
- $error = 'Closing brace must be on a line by itself';
- $fix = $phpcsFile->addFixableError($error, $scopeEnd, 'ContentBefore');
- if ($fix === true) {
- $phpcsFile->fixer->addNewlineBefore($scopeEnd);
- }
-
- return;
- }
-
- // Check now that the closing brace is lined up correctly.
- $lineStart = $phpcsFile->findFirstOnLine(array(T_WHITESPACE, T_INLINE_HTML), $scopeEnd, true);
- $braceIndent = $tokens[$lineStart]['column'];
- if ($tokens[$stackPtr]['code'] !== T_DEFAULT
- && $tokens[$stackPtr]['code'] !== T_CASE
- && $braceIndent !== $startColumn
- ) {
- $error = 'Closing brace indented incorrectly; expected %s spaces, found %s';
- $data = array(
- ($startColumn - 1),
- ($braceIndent - 1),
- );
-
- $fix = $phpcsFile->addFixableError($error, $scopeEnd, 'Indent', $data);
- if ($fix === true) {
- $diff = ($startColumn - $braceIndent);
- if ($diff > 0) {
- $phpcsFile->fixer->addContentBefore($lineStart, str_repeat(' ', $diff));
- } else {
- $phpcsFile->fixer->substrToken(($lineStart - 1), 0, $diff);
- }
- }
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ScopeKeywordSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ScopeKeywordSpacingSniff.php
deleted file mode 100644
index 26d589bc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/ScopeKeywordSpacingSniff.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/**
- * Ensure there is a single space after scope keywords.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class ScopeKeywordSpacingSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- $register = Tokens::$scopeModifiers;
- $register[] = T_STATIC;
- return $register;
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
-
- if ($tokens[$stackPtr]['code'] === T_STATIC
- && ($tokens[$nextToken]['code'] === T_DOUBLE_COLON
- || $tokens[$prevToken]['code'] === T_NEW)
- ) {
- // Late static binding, e.g., static:: OR new static() usage.
- return;
- }
-
- if ($tokens[$prevToken]['code'] === T_AS) {
- // Trait visibilty change, e.g., "use HelloWorld { sayHello as private; }".
- return;
- }
-
- $nextToken = $tokens[($stackPtr + 1)];
- if (strlen($nextToken['content']) !== 1
- || $nextToken['content'] === $phpcsFile->eolChar
- ) {
- $error = 'Scope keyword "%s" must be followed by a single space';
- $data = array($tokens[$stackPtr]['content']);
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data);
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
- }
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SemicolonSpacingSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SemicolonSpacingSniff.php
deleted file mode 100644
index 71caed01..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SemicolonSpacingSniff.php
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php
-/**
- * Ensure there is no whitespace before a semicolon.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Util\Tokens;
-
-class SemicolonSpacingSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- );
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_SEMICOLON);
-
- }//end register()
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token
- * in the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $prevType = $tokens[($stackPtr - 1)]['code'];
- if (isset(Tokens::$emptyTokens[$prevType]) === false) {
- return;
- }
-
- $nonSpace = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($stackPtr - 2), null, true);
- if ($tokens[$nonSpace]['code'] === T_SEMICOLON) {
- // Empty statement.
- return;
- }
-
- $expected = $tokens[$nonSpace]['content'].';';
- $found = $phpcsFile->getTokensAsString($nonSpace, ($stackPtr - $nonSpace)).';';
- $error = 'Space found before semicolon; expected "%s" but found "%s"';
- $data = array(
- $expected,
- $found,
- );
-
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'Incorrect', $data);
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $i = ($stackPtr - 1);
- while (($tokens[$i]['code'] === T_WHITESPACE) && ($i > $nonSpace)) {
- $phpcsFile->fixer->replaceToken($i, '');
- $i--;
- }
-
- $phpcsFile->fixer->addContent($nonSpace, ';');
- $phpcsFile->fixer->replaceToken($stackPtr, '');
-
- $phpcsFile->fixer->endChangeset();
- }
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SuperfluousWhitespaceSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SuperfluousWhitespaceSniff.php
deleted file mode 100644
index 9d040a30..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SuperfluousWhitespaceSniff.php
+++ /dev/null
@@ -1,252 +0,0 @@
-<?php
-/**
- * Checks for unneeded whitespace.
- *
- * Checks that no whitespace preceeds the first content of the file, exists
- * after the last content of the file, resides after content on any line, or
- * are two empty lines in functions.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class SuperfluousWhitespaceSniff implements Sniff
-{
-
- /**
- * A list of tokenizers this sniff supports.
- *
- * @var array
- */
- public $supportedTokenizers = array(
- 'PHP',
- 'JS',
- 'CSS',
- );
-
- /**
- * If TRUE, whitespace rules are not checked for blank lines.
- *
- * Blank lines are those that contain only whitespace.
- *
- * @var boolean
- */
- public $ignoreBlankLines = false;
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(
- T_OPEN_TAG,
- T_CLOSE_TAG,
- T_WHITESPACE,
- T_COMMENT,
- T_DOC_COMMENT_WHITESPACE,
- T_CLOSURE,
- );
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- if ($tokens[$stackPtr]['code'] === T_OPEN_TAG) {
- /*
- Check for start of file whitespace.
- */
-
- if ($phpcsFile->tokenizerType !== 'PHP') {
- // The first token is always the open tag inserted when tokenizsed
- // and the second token is always the first piece of content in
- // the file. If the second token is whitespace, there was
- // whitespace at the start of the file.
- if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
- return;
- }
-
- if ($phpcsFile->fixer->enabled === true) {
- $stackPtr = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
- }
- } else {
- // If it's the first token, then there is no space.
- if ($stackPtr === 0) {
- return;
- }
-
- for ($i = ($stackPtr - 1); $i >= 0; $i--) {
- // If we find something that isn't inline html then there is something previous in the file.
- if ($tokens[$i]['type'] !== 'T_INLINE_HTML') {
- return;
- }
-
- // If we have ended up with inline html make sure it isn't just whitespace.
- $tokenContent = trim($tokens[$i]['content']);
- if ($tokenContent !== '') {
- return;
- }
- }
- }//end if
-
- $fix = $phpcsFile->addFixableError('Additional whitespace found at start of file', $stackPtr, 'StartFile');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = 0; $i < $stackPtr; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- } else if ($tokens[$stackPtr]['code'] === T_CLOSE_TAG) {
- /*
- Check for end of file whitespace.
- */
-
- if ($phpcsFile->tokenizerType === 'PHP') {
- if (isset($tokens[($stackPtr + 1)]) === false) {
- // The close PHP token is the last in the file.
- return;
- }
-
- for ($i = ($stackPtr + 1); $i < $phpcsFile->numTokens; $i++) {
- // If we find something that isn't inline HTML then there
- // is more to the file.
- if ($tokens[$i]['type'] !== 'T_INLINE_HTML') {
- return;
- }
-
- // If we have ended up with inline html make sure it
- // isn't just whitespace.
- $tokenContent = trim($tokens[$i]['content']);
- if (empty($tokenContent) === false) {
- return;
- }
- }
- } else {
- // The last token is always the close tag inserted when tokenized
- // and the second last token is always the last piece of content in
- // the file. If the second last token is whitespace, there was
- // whitespace at the end of the file.
- $stackPtr--;
-
- // The pointer is now looking at the last content in the file and
- // not the fake PHP end tag the tokenizer inserted.
- if ($tokens[$stackPtr]['code'] !== T_WHITESPACE) {
- return;
- }
-
- // Allow a single newline at the end of the last line in the file.
- if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE
- && $tokens[$stackPtr]['content'] === $phpcsFile->eolChar
- ) {
- return;
- }
-
- if ($phpcsFile->fixer->enabled === true) {
- $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
- $stackPtr = ($prev + 1);
- }
- }//end if
-
- $fix = $phpcsFile->addFixableError('Additional whitespace found at end of file', $stackPtr, 'EndFile');
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- for ($i = ($stackPtr + 1); $i < $phpcsFile->numTokens; $i++) {
- $phpcsFile->fixer->replaceToken($i, '');
- }
-
- $phpcsFile->fixer->endChangeset();
- }
- } else {
- /*
- Check for end of line whitespace.
- */
-
- // Ignore whitespace that is not at the end of a line.
- if (isset($tokens[($stackPtr + 1)]['line']) === true
- && $tokens[($stackPtr + 1)]['line'] === $tokens[$stackPtr]['line']
- ) {
- return;
- }
-
- // Ignore blank lines if required.
- if ($this->ignoreBlankLines === true
- && $tokens[($stackPtr - 1)]['line'] !== $tokens[$stackPtr]['line']
- ) {
- return;
- }
-
- $tokenContent = rtrim($tokens[$stackPtr]['content'], $phpcsFile->eolChar);
- if (empty($tokenContent) === false) {
- if ($tokenContent !== rtrim($tokenContent)) {
- $fix = $phpcsFile->addFixableError('Whitespace found at end of line', $stackPtr, 'EndLine');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($stackPtr, rtrim($tokenContent).$phpcsFile->eolChar);
- }
- }
- } else if ($tokens[($stackPtr - 1)]['content'] !== rtrim($tokens[($stackPtr - 1)]['content'])
- && $tokens[($stackPtr - 1)]['line'] === $tokens[$stackPtr]['line']
- ) {
- $fix = $phpcsFile->addFixableError('Whitespace found at end of line', ($stackPtr - 1), 'EndLine');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken(($stackPtr - 1), rtrim($tokens[($stackPtr - 1)]['content']));
- }
- }
-
- /*
- Check for multiple blank lines in a function.
- */
-
- if (($phpcsFile->hasCondition($stackPtr, T_FUNCTION) === true
- || $phpcsFile->hasCondition($stackPtr, T_CLOSURE) === true)
- && $tokens[($stackPtr - 1)]['line'] < $tokens[$stackPtr]['line']
- && $tokens[($stackPtr - 2)]['line'] === $tokens[($stackPtr - 1)]['line']
- ) {
- // This is an empty line and the line before this one is not
- // empty, so this could be the start of a multiple empty
- // line block.
- $next = $phpcsFile->findNext(T_WHITESPACE, $stackPtr, null, true);
- $lines = ($tokens[$next]['line'] - $tokens[$stackPtr]['line']);
- if ($lines > 1) {
- $error = 'Functions must not contain multiple empty lines in a row; found %s empty lines';
- $fix = $phpcsFile->addFixableError($error, $stackPtr, 'EmptyLines', array($lines));
- if ($fix === true) {
- $phpcsFile->fixer->beginChangeset();
- $i = $stackPtr;
- while ($tokens[$i]['line'] !== $tokens[$next]['line']) {
- $phpcsFile->fixer->replaceToken($i, '');
- $i++;
- }
-
- $phpcsFile->fixer->addNewlineBefore($i);
- $phpcsFile->fixer->endChangeset();
- }
- }
- }//end if
- }//end if
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc
deleted file mode 100644
index b50e4fe6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-$myArray['key'] = $value;
-$myArray[/* key start */'key'] = $value;
-$myArray[/* key start */'key'/* key end */] = $value;
-$myArray [ 'key' ] = $value;
-if ($array[($index + 1)] === true) {
-} else if ($array [ ($index + 1) ] === null) {
-}
-$array = [
- 'foo' => 'bar',
- 'bar' => 'foo',
-];
-
-if ($foo) {}
-[$a, $b] = $c;
-
-echo foo()[ 1 ];
-
-echo $this->addedCustomFunctions['nonce'];
-echo $this->deprecated_functions[ $function_name ]['version'];
-
-echo [ 1,2,3 ][0];
-echo [ 1,2,3 ][ 0 ];
-echo 'PHP'[ 0 ];
-
-$array = [];
-$var = $var[$var[$var]]]; // Syntax error
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php
deleted file mode 100644
index c654b228..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Unit test class for the ArrayBracketSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Arrays;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ArrayBracketSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 4 => 2,
- 5 => 3,
- 7 => 3,
- 17 => 2,
- 20 => 2,
- 23 => 2,
- 24 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc
deleted file mode 100644
index f65d3a19..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc
+++ /dev/null
@@ -1,339 +0,0 @@
-<?php
-
-function test()
-{
- $a = array();
-
- $b = Array ();
-
- $c = Array(
- 'a' => 1,
- );
-}
-
-
-class TestClass
-{
- public $good = array(
- 'width' => '',
- 'height' => '',
- );
-
- private $_bad = Array(
- 'width' => '',
- 'height' => ''
- );
-
-
- public function test()
- {
- $truck = array(
- 'width' => '',
- 'height' => '',
- );
-
- $plane = Array(
- 'width' => '',
- 'height' => '',
- );
-
- $car = array(
- 'width' => '',
- 'height' => '',
- );
-
- $bus = array(
- 'width' => '',
- 'height' => ''
- );
-
- $train = array (
- TRUE,
- FALSE,
- 'aaa'
- );
-
- $inline = array('aaa', 'bbb', 'ccc');
- $inline = array('aaa');
- $inline = Array('aaa');
-
- $bigone = array(
- 'name' => 'bigone',
- 'children' => Array(
- '1a' => 'child',
- '11b' => 'child',
- '111c' => 'child',
- 'children' => Array(
- 'child' => 'aaa',
- ),
- ),
- 'short_name' => 'big'
- );
- }
-
-}//end class
-
-$value = array ( );
-$value = array( );
-$value = array('1'=>$one, '2' => $two, '3'=> $three, '4' =>$four);
-$value = array('1'=>$one);
-
-if (in_array('1', array('1','2','3')) === TRUE) {
- $value = in_array('1', array('1' , '2', '3','4'));
-}
-
-$value = array(
- '1'=> TRUE,
- FALSE,
- '3' => 'aaa',);
-
-$value = array(
- '1'=> TRUE,
- FALSE,
- );
-
-$value = array(
- TRUE,
- '1' => FALSE,
- );
-
-$value = array(1,
- 2 ,
- 3 ,
- );
-
-$value = array(1 => $one,
- 2 => $two ,
- 3 => $three ,
- );
-
-$value = array(
- 'tag' => $tag,
- 'space' => $this->_getIndentation($tag, $tagElement),
- );
-
-$expected = array(
- array(
- '1' => 1,
- '1' => 2,
- ),
- );
-
-$expected = array(
- array(
- '1' => 1,
- '1' => 2
- )
- );
-
-// Space in second arg.
-$args = array(
- '"'.$this->id.'"',
- (int) $hasSessions,
- );
-
-// No errors.
-$paths = array(
- Init::ROOT_DIR.'/Systems' => 'Systems',
- Init::ROOT_DIR.'/Installer' => 'Systems',
- );
-
-$x = array(
- );
-
-$x = array('test'
- );
-$x = array('test',
- );
-$x = array('name' => 'test',
- );
-
-$x = array(
- $x,
- );
-
-$func = array(
- $x,
- 'get'.$x.'Replacement'
- );
-
-$array = array(
- 'input_one' => 'one',
- 'inputTwo' => 'two',
- 'input_3' => 3,
- );
-
-$array = array(
- 'input_one',
- 'inputTwo',
- 'input_3',
- );
-
-// Malformed
-$foo = array(1
-, 2);
-
-$listItems[$aliasPath] = array('itemContent' => implode('<br/>', $aliases));
-
-$listItems[$aliasPath] = array(
- 'itemContent' => implode('<br/>', $aliases)
- );
-
-$x = array
- (
- $x,
- $y,
- );
-
-$x = array
-(
- $x,
- $y,
- );
-
-$x = array(
-
- $x,
- $y,
- );
-
-$test = array(
- 'test' => TestFunction::blah(
- $value1,
- $value2
- ),
- );
-
-$c = array('a' => 1,);
-
-function b()
-{
- $a = array(
- 'a' => a('a'),
-
- );
-
-}
-
-$foo = Array('[',']',':',"\n","\r");
-$bar = Array('&#91;','&#93;','&#58;','&#10;','&#13;');
-
-function foo()
-{
- return array($a, $b->screen);
-}
-
-$array = array(
- 'name' => 'contactSubject',
- 'required' => TRUE,
- 'validators' => array(
- new \Zend\Validator\InArray(array('haystack' => array_keys($aSubjects))),
- ),
- );
-
-$var = array(
- 'ViewHelper',
- array('Foo'),
- 'Errors',
- );
-
-$data = array(
- 'first',
- 'second',
- 'third',
- // Add more here
- );
-
-$data = array(
- 'first',
- 'second',
- //'third',
- );
-
-$data = array(
- 'first',
- 'second'
- //'third',
- );
-
-$foo = array(
- $this->getViewName() . '.id' => 'value',
- $this->getViewName() . '.title' => 'value',
- );
-
-$foo = array(
- $this->getViewName() . '.id',
- $this->getViewName() . '.title',
- );
-
-$weightings = array(
- T_CLOSURE => 100,
-
- /*
- Conditions.
- */
-
- T_WHILE => 50,
-
- /*
- Operators and arithmetic.
- */
-
- T_BITWISE_AND => 8,
-
- T_BOOLEAN_AND => 5,
-
- /*
- Equality.
- */
-
- T_IS_GREATER_OR_EQUAL => 5,
- );
-
-foreach (array(
- 'foo' => 'bar',
- 'foobaz' => 'bazzy',
- ) as $key => $value) {
-}
-
-$ids = array(
- '1', // Foo.
- '13', // Bar.
- );
-
-array(
- 'key1' => function($bar) {
- return $bar;
- },
- 'key2' => function($foo) {
- return $foo;
- },
- 'key3' => function($bar) {
- return $bar;
- }
-);
-
-array(
- 'key1' => array(
- '1',
- '2',
- )
-);
-
-$var = array(
- 'tab_template' => '
- <li>%s</li>',
- 'panel_template' => '
- <div id="%s">
- %s
- </div>',
- );
-
-function test() : array
-{
- return [];
-}
-
-$fields = array(
- 'id' => array('type' => 'INT'),
- 'value' => array('type' => 'VARCHAR'));
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc.fixed
deleted file mode 100644
index 668b2967..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.1.inc.fixed
+++ /dev/null
@@ -1,357 +0,0 @@
-<?php
-
-function test()
-{
- $a = array();
-
- $b = array();
-
- $c = array('a' => 1);
-}
-
-
-class TestClass
-{
- public $good = array(
- 'width' => '',
- 'height' => '',
- );
-
- private $_bad = array(
- 'width' => '',
- 'height' => '',
- );
-
-
- public function test()
- {
- $truck = array(
- 'width' => '',
- 'height' => '',
- );
-
- $plane = array(
- 'width' => '',
- 'height' => '',
- );
-
- $car = array(
- 'width' => '',
- 'height' => '',
- );
-
- $bus = array(
- 'width' => '',
- 'height' => '',
- );
-
- $train = array(
- TRUE,
- FALSE,
- 'aaa',
- );
-
- $inline = array(
- 'aaa',
- 'bbb',
- 'ccc',
- );
- $inline = array('aaa');
- $inline = array('aaa');
-
- $bigone = array(
- 'name' => 'bigone',
- 'children' => array(
- '1a' => 'child',
- '11b' => 'child',
- '111c' => 'child',
- 'children' => array('child' => 'aaa'),
- ),
- 'short_name' => 'big',
- );
- }
-
-}//end class
-
-$value = array();
-$value = array();
-$value = array(
- '1' => $one,
- '2' => $two,
- '3' => $three,
- '4' => $four,
- );
-$value = array('1' => $one);
-
-if (in_array('1', array('1', '2', '3')) === TRUE) {
- $value = in_array('1', array('1', '2', '3', '4'));
-}
-
-$value = array(
- '1'=> TRUE,
- FALSE,
- '3' => 'aaa',
- );
-
-$value = array(
- '1'=> TRUE,
- FALSE,
- );
-
-$value = array(
- TRUE,
- '1' => FALSE,
- );
-
-$value = array(
- 1,
- 2,
- 3,
- );
-
-$value = array(
- 1 => $one,
- 2 => $two,
- 3 => $three,
- );
-
-$value = array(
- 'tag' => $tag,
- 'space' => $this->_getIndentation($tag, $tagElement),
- );
-
-$expected = array(
- array(
- '1' => 1,
- '1' => 2,
- ),
- );
-
-$expected = array(
- array(
- '1' => 1,
- '1' => 2,
- ),
- );
-
-// Space in second arg.
-$args = array(
- '"'.$this->id.'"',
- (int) $hasSessions,
- );
-
-// No errors.
-$paths = array(
- Init::ROOT_DIR.'/Systems' => 'Systems',
- Init::ROOT_DIR.'/Installer' => 'Systems',
- );
-
-$x = array();
-
-$x = array('test');
-$x = array('test');
-$x = array('name' => 'test');
-
-$x = array($x);
-
-$func = array(
- $x,
- 'get'.$x.'Replacement',
- );
-
-$array = array(
- 'input_one' => 'one',
- 'inputTwo' => 'two',
- 'input_3' => 3,
- );
-
-$array = array(
- 'input_one',
- 'inputTwo',
- 'input_3',
- );
-
-// Malformed
-$foo = array(
- 1,
- 2,
- );
-
-$listItems[$aliasPath] = array('itemContent' => implode('<br/>', $aliases));
-
-$listItems[$aliasPath] = array(
- 'itemContent' => implode('<br/>', $aliases),
- );
-
-$x = array(
- $x,
- $y,
- );
-
-$x = array(
- $x,
- $y,
- );
-
-$x = array(
-
- $x,
- $y,
- );
-
-$test = array(
- 'test' => TestFunction::blah(
- $value1,
- $value2
- ),
- );
-
-$c = array('a' => 1);
-
-function b()
-{
- $a = array(
- 'a' => a('a'),
-
- );
-
-}
-
-$foo = array(
- '[',
- ']',
- ':',
- "\n",
- "\r",
- );
-$bar = array(
- '&#91;',
- '&#93;',
- '&#58;',
- '&#10;',
- '&#13;',
- );
-
-function foo()
-{
- return array(
- $a,
- $b->screen,
- );
-}
-
-$array = array(
- 'name' => 'contactSubject',
- 'required' => TRUE,
- 'validators' => array(
- new \Zend\Validator\InArray(array('haystack' => array_keys($aSubjects))),
- ),
- );
-
-$var = array(
- 'ViewHelper',
- array('Foo'),
- 'Errors',
- );
-
-$data = array(
- 'first',
- 'second',
- 'third',
- // Add more here
- );
-
-$data = array(
- 'first',
- 'second',
- //'third',
- );
-
-$data = array(
- 'first',
- 'second',
- //'third',
- );
-
-$foo = array(
- $this->getViewName() . '.id' => 'value',
- $this->getViewName() . '.title' => 'value',
- );
-
-$foo = array(
- $this->getViewName() . '.id',
- $this->getViewName() . '.title',
- );
-
-$weightings = array(
- T_CLOSURE => 100,
-
- /*
- Conditions.
- */
-
- T_WHILE => 50,
-
- /*
- Operators and arithmetic.
- */
-
- T_BITWISE_AND => 8,
-
- T_BOOLEAN_AND => 5,
-
- /*
- Equality.
- */
-
- T_IS_GREATER_OR_EQUAL => 5,
- );
-
-foreach (array(
- 'foo' => 'bar',
- 'foobaz' => 'bazzy',
- ) as $key => $value) {
-}
-
-$ids = array(
- '1', // Foo.
- '13', // Bar.
- );
-
-array(
- 'key1' => function($bar) {
- return $bar;
- },
- 'key2' => function($foo) {
- return $foo;
- },
- 'key3' => function($bar) {
- return $bar;
- },
-);
-
-array(
- 'key1' => array(
- '1',
- '2',
- ),
-);
-
-$var = array(
- 'tab_template' => '
- <li>%s</li>',
- 'panel_template' => '
- <div id="%s">
- %s
- </div>',
- );
-
-function test() : array
-{
- return [];
-}
-
-$fields = array(
- 'id' => array('type' => 'INT'),
- 'value' => array('type' => 'VARCHAR'),
- );
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc
deleted file mode 100644
index fe0de4a9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc
+++ /dev/null
@@ -1,335 +0,0 @@
-<?php
-
-function test()
-{
- $a = [];
-
- $b = [];
-
- $c = [
- 'a' => 1,
- ];
-}
-
-
-class TestClass
-{
- public $good = [
- 'width' => '',
- 'height' => '',
- ];
-
- private $_bad = [
- 'width' => '',
- 'height' => ''
- ];
-
-
- public function test()
- {
- $truck = [
- 'width' => '',
- 'height' => '',
- ];
-
- $plane = [
- 'width' => '',
- 'height' => '',
- ];
-
- $car = [
- 'width' => '',
- 'height' => '',
- ];
-
- $bus = [
- 'width' => '',
- 'height' => ''
- ];
-
- $train = [
- TRUE,
- FALSE,
- 'aaa'
- ];
-
- $inline = ['aaa', 'bbb', 'ccc'];
- $inline = ['aaa'];
- $inline = ['aaa'];
-
- $bigone = [
- 'name' => 'bigone',
- 'children' => [
- '1a' => 'child',
- '11b' => 'child',
- '111c' => 'child',
- 'children' => [
- 'child' => 'aaa',
- ],
- ],
- 'short_name' => 'big'
- ];
- }
-
-}//end class
-
-$value = [ ];
-$value = [ ];
-$value = ['1'=>$one, '2' => $two, '3'=> $three, '4' =>$four];
-$value = ['1'=>$one];
-
-if (in_array('1', ['1','2','3']) === TRUE) {
- $value = in_array('1', ['1' , '2', '3','4']);
-}
-
-$value = [
- '1'=> TRUE,
- FALSE,
- '3' => 'aaa',];
-
-$value = [
- '1'=> TRUE,
- FALSE,
- ];
-
-$value = [
- TRUE,
- '1' => FALSE,
- ];
-
-$value = [1,
- 2 ,
- 3 ,
- ];
-
-$value = [1 => $one,
- 2 => $two ,
- 3 => $three ,
- ];
-
-$value = [
- 'tag' => $tag,
- 'space' => $this->_getIndentation($tag, $tagElement),
- ];
-
-$expected = [
- [
- '1' => 1,
- '1' => 2,
- ],
- ];
-
-$expected = [
- [
- '1' => 1,
- '1' => 2
- ]
- ];
-
-// Space in second arg.
-$args = [
- '"'.$this->id.'"',
- (int) $hasSessions,
- ];
-
-// No errors.
-$paths = [
- Init::ROOT_DIR.'/Systems' => 'Systems',
- Init::ROOT_DIR.'/Installer' => 'Systems',
- ];
-
-$x = [
- ];
-
-$x = ['test'
- ];
-$x = ['test',
- ];
-$x = ['name' => 'test',
- ];
-
-$x = [
- $x,
- ];
-
-$func = [
- $x,
- 'get'.$x.'Replacement'
- ];
-
-$array = [
- 'input_one' => 'one',
- 'inputTwo' => 'two',
- 'input_3' => 3,
- ];
-
-$array = [
- 'input_one',
- 'inputTwo',
- 'input_3',
- ];
-
-// Malformed
-$foo = [1
-, 2];
-
-$listItems[$aliasPath] = ['itemContent' => implode('<br/>', $aliases)];
-
-$listItems[$aliasPath] = [
- 'itemContent' => implode('<br/>', $aliases)
- ];
-
-$x =
- [
- $x,
- $y,
- ];
-
-$x =
-[
- $x,
- $y,
- ];
-
-$x = [
-
- $x,
- $y,
- ];
-
-$test = [
- 'test' => TestFunction::blah(
- $value1,
- $value2
- ),
- ];
-
-$c = ['a' => 1,];
-$c->{$var}[ ] = 2;
-
-$foo = ['[',']',':',"\n","\r"];
-$bar = ['&#91;','&#93;','&#58;','&#10;','&#13;'];
-
-function foo()
-{
- return [$a, $b->screen];
-}
-
-$array = [
- 'name' => 'contactSubject',
- 'required' => TRUE,
- 'validators' => [
- new \Zend\Validator\InArray(['haystack' => array_keys($aSubjects)]),
- ],
- ];
-
-$var = [
- 'ViewHelper',
- ['Foo'],
- 'Errors',
- ];
-
-$data = [
- 'first',
- 'second',
- 'third',
- // Add more here
- ];
-
-$data = [
- 'first',
- 'second',
- //'third',
- ];
-
-$data = [
- 'first',
- 'second'
- //'third',
- ];
-
-$foo = [
- $this->getViewName() . '.id' => 'value',
- $this->getViewName() . '.title' => 'value',
- ];
-
-$foo = [
- $this->getViewName() . '.id',
- $this->getViewName() . '.title',
- ];
-
-$weightings = [
- T_CLOSURE => 100,
-
- /*
- Conditions.
- */
-
- T_WHILE => 50,
-
- /*
- Operators and arithmetic.
- */
-
- T_BITWISE_AND => 8,
-
- T_BOOLEAN_AND => 5,
-
- /*
- Equality.
- */
-
- T_IS_GREATER_OR_EQUAL => 5,
- ];
-
-foreach ([
- 'foo' => 'bar',
- 'foobaz' => 'bazzy',
- ] as $key => $value) {
-}
-
-$ids = [
- '1', // Foo.
- '13', // Bar.
- ];
-
-[
- 'key1' => function($bar) {
- return $bar;
- },
- 'key2' => function($foo) {
- return $foo;
- },
- 'key3' => function($bar) {
- return $bar;
- }
-];
-
-[
- 'key1' => [
- '1',
- '2',
- ]
-];
-
-$var = [
- 'tab_template' => '
- <li>%s</li>',
- 'panel_template' => '
- <div id="%s">
- %s
- </div>',
- ];
-
-function test() : array
-{
- return [];
-}
-
-$fields = [
- 'id' => ['type' => 'INT'],
- 'value' => ['type' => 'VARCHAR']];
-
-echo [1][0];
-echo 'PHP'[0];
-echo [1][0, 1, 2]; // not valid code, but should not be picked up here
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc.fixed
deleted file mode 100644
index 69014757..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.2.inc.fixed
+++ /dev/null
@@ -1,355 +0,0 @@
-<?php
-
-function test()
-{
- $a = [];
-
- $b = [];
-
- $c = ['a' => 1];
-}
-
-
-class TestClass
-{
- public $good = [
- 'width' => '',
- 'height' => '',
- ];
-
- private $_bad = [
- 'width' => '',
- 'height' => '',
- ];
-
-
- public function test()
- {
- $truck = [
- 'width' => '',
- 'height' => '',
- ];
-
- $plane = [
- 'width' => '',
- 'height' => '',
- ];
-
- $car = [
- 'width' => '',
- 'height' => '',
- ];
-
- $bus = [
- 'width' => '',
- 'height' => '',
- ];
-
- $train = [
- TRUE,
- FALSE,
- 'aaa',
- ];
-
- $inline = [
- 'aaa',
- 'bbb',
- 'ccc',
- ];
- $inline = ['aaa'];
- $inline = ['aaa'];
-
- $bigone = [
- 'name' => 'bigone',
- 'children' => [
- '1a' => 'child',
- '11b' => 'child',
- '111c' => 'child',
- 'children' => ['child' => 'aaa'],
- ],
- 'short_name' => 'big',
- ];
- }
-
-}//end class
-
-$value = [];
-$value = [];
-$value = [
- '1' => $one,
- '2' => $two,
- '3' => $three,
- '4' => $four,
- ];
-$value = ['1' => $one];
-
-if (in_array('1', ['1', '2', '3']) === TRUE) {
- $value = in_array('1', ['1', '2', '3', '4']);
-}
-
-$value = [
- '1'=> TRUE,
- FALSE,
- '3' => 'aaa',
- ];
-
-$value = [
- '1'=> TRUE,
- FALSE,
- ];
-
-$value = [
- TRUE,
- '1' => FALSE,
- ];
-
-$value = [
- 1,
- 2,
- 3,
- ];
-
-$value = [
- 1 => $one,
- 2 => $two,
- 3 => $three,
- ];
-
-$value = [
- 'tag' => $tag,
- 'space' => $this->_getIndentation($tag, $tagElement),
- ];
-
-$expected = [
- [
- '1' => 1,
- '1' => 2,
- ],
- ];
-
-$expected = [
- [
- '1' => 1,
- '1' => 2,
- ],
- ];
-
-// Space in second arg.
-$args = [
- '"'.$this->id.'"',
- (int) $hasSessions,
- ];
-
-// No errors.
-$paths = [
- Init::ROOT_DIR.'/Systems' => 'Systems',
- Init::ROOT_DIR.'/Installer' => 'Systems',
- ];
-
-$x = [];
-
-$x = ['test'];
-$x = ['test'];
-$x = ['name' => 'test'];
-
-$x = [$x];
-
-$func = [
- $x,
- 'get'.$x.'Replacement',
- ];
-
-$array = [
- 'input_one' => 'one',
- 'inputTwo' => 'two',
- 'input_3' => 3,
- ];
-
-$array = [
- 'input_one',
- 'inputTwo',
- 'input_3',
- ];
-
-// Malformed
-$foo = [
- 1,
- 2,
- ];
-
-$listItems[$aliasPath] = ['itemContent' => implode('<br/>', $aliases)];
-
-$listItems[$aliasPath] = [
- 'itemContent' => implode('<br/>', $aliases),
- ];
-
-$x =
- [
- $x,
- $y,
- ];
-
-$x =
-[
- $x,
- $y,
-];
-
-$x = [
-
- $x,
- $y,
- ];
-
-$test = [
- 'test' => TestFunction::blah(
- $value1,
- $value2
- ),
- ];
-
-$c = ['a' => 1];
-$c->{$var}[ ] = 2;
-
-$foo = [
- '[',
- ']',
- ':',
- "\n",
- "\r",
- ];
-$bar = [
- '&#91;',
- '&#93;',
- '&#58;',
- '&#10;',
- '&#13;',
- ];
-
-function foo()
-{
- return [
- $a,
- $b->screen,
- ];
-}
-
-$array = [
- 'name' => 'contactSubject',
- 'required' => TRUE,
- 'validators' => [
- new \Zend\Validator\InArray(['haystack' => array_keys($aSubjects)]),
- ],
- ];
-
-$var = [
- 'ViewHelper',
- ['Foo'],
- 'Errors',
- ];
-
-$data = [
- 'first',
- 'second',
- 'third',
- // Add more here
- ];
-
-$data = [
- 'first',
- 'second',
- //'third',
- ];
-
-$data = [
- 'first',
- 'second',
- //'third',
- ];
-
-$foo = [
- $this->getViewName() . '.id' => 'value',
- $this->getViewName() . '.title' => 'value',
- ];
-
-$foo = [
- $this->getViewName() . '.id',
- $this->getViewName() . '.title',
- ];
-
-$weightings = [
- T_CLOSURE => 100,
-
- /*
- Conditions.
- */
-
- T_WHILE => 50,
-
- /*
- Operators and arithmetic.
- */
-
- T_BITWISE_AND => 8,
-
- T_BOOLEAN_AND => 5,
-
- /*
- Equality.
- */
-
- T_IS_GREATER_OR_EQUAL => 5,
- ];
-
-foreach ([
- 'foo' => 'bar',
- 'foobaz' => 'bazzy',
- ] as $key => $value) {
-}
-
-$ids = [
- '1', // Foo.
- '13', // Bar.
- ];
-
-[
- 'key1' => function($bar) {
- return $bar;
- },
- 'key2' => function($foo) {
- return $foo;
- },
- 'key3' => function($bar) {
- return $bar;
- },
-];
-
-[
- 'key1' => [
- '1',
- '2',
- ],
-];
-
-$var = [
- 'tab_template' => '
- <li>%s</li>',
- 'panel_template' => '
- <div id="%s">
- %s
- </div>',
- ];
-
-function test() : array
-{
- return [];
-}
-
-$fields = [
- 'id' => ['type' => 'INT'],
- 'value' => ['type' => 'VARCHAR'],
- ];
-
-echo [1][0];
-echo 'PHP'[0];
-echo [1][0, 1, 2]; // not valid code, but should not be picked up here
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php
deleted file mode 100644
index 60d29939..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php
+++ /dev/null
@@ -1,182 +0,0 @@
-<?php
-/**
- * Unit test class for the ArrayDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Arrays;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ArrayDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'ArrayDeclarationUnitTest.1.inc':
- return array(
- 7 => 2,
- 9 => 2,
- 22 => 1,
- 23 => 1,
- 24 => 1,
- 25 => 1,
- 31 => 1,
- 35 => 1,
- 36 => 1,
- 41 => 1,
- 46 => 1,
- 47 => 1,
- 50 => 1,
- 51 => 1,
- 53 => 1,
- 56 => 1,
- 58 => 1,
- 61 => 1,
- 62 => 1,
- 63 => 1,
- 64 => 1,
- 65 => 1,
- 66 => 3,
- 70 => 1,
- 76 => 2,
- 77 => 1,
- 78 => 7,
- 79 => 2,
- 81 => 2,
- 82 => 4,
- 87 => 1,
- 88 => 1,
- 92 => 1,
- 97 => 1,
- 100 => 1,
- 101 => 1,
- 102 => 1,
- 105 => 1,
- 106 => 1,
- 107 => 1,
- 125 => 1,
- 126 => 1,
- 141 => 1,
- 144 => 1,
- 146 => 1,
- 148 => 1,
- 151 => 1,
- 157 => 1,
- 174 => 3,
- 179 => 1,
- 182 => 1,
- 188 => 1,
- 207 => 1,
- 212 => 1,
- 214 => 1,
- 218 => 2,
- 219 => 2,
- 223 => 1,
- 255 => 1,
- 294 => 1,
- 295 => 1,
- 296 => 1,
- 311 => 1,
- 317 => 1,
- 339 => 2,
- );
- case 'ArrayDeclarationUnitTest.2.inc':
- return array(
- 9 => 1,
- 23 => 1,
- 24 => 1,
- 25 => 1,
- 31 => 1,
- 36 => 1,
- 41 => 1,
- 46 => 1,
- 47 => 1,
- 51 => 1,
- 53 => 1,
- 56 => 1,
- 61 => 1,
- 63 => 1,
- 64 => 1,
- 65 => 1,
- 66 => 2,
- 70 => 1,
- 76 => 1,
- 77 => 1,
- 78 => 7,
- 79 => 2,
- 81 => 2,
- 82 => 4,
- 87 => 1,
- 88 => 1,
- 92 => 1,
- 97 => 1,
- 100 => 1,
- 101 => 1,
- 102 => 1,
- 105 => 1,
- 106 => 1,
- 107 => 1,
- 125 => 1,
- 126 => 1,
- 141 => 1,
- 144 => 1,
- 146 => 1,
- 148 => 1,
- 151 => 1,
- 157 => 1,
- 174 => 3,
- 179 => 1,
- 190 => 1,
- 191 => 1,
- 192 => 1,
- 207 => 1,
- 210 => 1,
- 211 => 1,
- 215 => 1,
- 247 => 1,
- 286 => 1,
- 287 => 1,
- 288 => 1,
- 303 => 1,
- 309 => 1,
- 331 => 2,
- );
- default:
- return array();
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.css
deleted file mode 100644
index bdc65b00..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.css
+++ /dev/null
@@ -1,47 +0,0 @@
-.my-style {
-}
-
-
-.my-style {
-}
-
-/* Comment */
-
-.my-style {
-}
-
-
-/* Comment */
-
-.my-style {
- float: left;
-
-}
-
-.AssetLineageWidgetType-item {
- color: #CCC;
-}
-
-/*.AssetLineageWidgetType-item2 .selected,
-.AssetLineageWidgetType-item .selected {
-}*/
-
-.AssetLineageWidgetType-item.selected {
-}
-
-@media screen and (max-device-width: 769px) {
-
- header #logo img {
- max-width: 100%;
- }
-
-}
-
-@media screen and (max-device-width: 769px) {
-
- header #logo img {
- max-width: 100%;
- }
-}
-
-.GUITextBox.container:after {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.php
deleted file mode 100644
index 75dffa28..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionClosingBraceSpaceUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the ClassDefinitionClosingBraceSpace sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClassDefinitionClosingBraceSpaceUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 11 => 1,
- 44 => 1,
- 47 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.css
deleted file mode 100644
index bb3fd0e3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.css
+++ /dev/null
@@ -1,62 +0,0 @@
-.AssetListingEditWidgetType-BottomPanel select,
-#EditEditingModeWidgetType-assetEditor-filters-assetTypes-addNew {
- float: left;
-}
-
-.AssetListingEditWidgetType-BottomPanel select,
-
-#EditEditingModeWidgetType-assetEditor-filters-assetTypes-addNew {
- float: left;
-}
-
-.AssetListingEditWidgetType-BottomPanel select,
-/*.AssetListingEditWidgetType-BottomPanel ul,*/
-#EditEditingModeWidgetType-assetEditor-filters-assetTypes-addNew {
- float: left;
-}
-
-.AssetListingEditWidgetType-BottomPanel select,
-
-.AssetListingEditWidgetType-BottomPanel ul,
-#EditEditingModeWidgetType-assetEditor-filters-assetTypes-addNew {
- float: left;
-}
-
-#SuperUsersSystemConfigScreen-table {
- display: block;
- left: 50%;
- margin-left: -500px;
- margin-top: 180px;
- position: relative;
- width: 1000px;
-}
-
-/**
- * More styles below here.
- */
-
-td.TableWidgetType-header.TableWidgetType-header-lastLogin,
-td.TableWidgetType-header.TableWidgetType-header-remove,
-td.TableWidgetType-header.TableWidgetType-header-email,
-td.TableWidgetType-header.TableWidgetType-header-userName {
- background: url(images/ScreenImages/table_header_bg.png) repeat-x;
- border-top: 1px solid #D4D4D4;
- color: #787878;
- height: 33px;
- padding-left: 12px;
- width: 150px;
-}
-
-@media screen and (max-device-width: 769px) {
-
- header #logo img {
- max-width: 100%;
- padding: 20px;
- margin: 40px;
- }
-}
-
-.foo
-{
- border: none;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.php
deleted file mode 100644
index 95c3e040..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionNameSpacingUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the ClassDefinitionNameSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClassDefinitionNameSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 7 => 1,
- 19 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.css
deleted file mode 100644
index 953c9be1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.css
+++ /dev/null
@@ -1,43 +0,0 @@
-.HelpWidgetType-new-bug-title {
- float: left;
-}
-.HelpWidgetType-new-bug-title {
- float: left;
-}
-.HelpWidgetType-new-bug-title {
- float: left;
-}
-.HelpWidgetType-new-bug-title{
- float: left;
-}
-.HelpWidgetType-new-bug-title {
-
- float: left;
-}
-
-@media screen and (max-device-width: 769px) {
-
- header #logo img {
- max-width: 100%;
- }
-
-}
-
-@media screen and (max-device-width: 769px) {
- header #logo img {
- max-width: 100%;
- }
-
-}
-
-@media screen and (max-device-width: 769px) {
-
-
-
- header #logo img {
- max-width: 100%;
- }
-
-}
-
-.GUITextBox.container:after {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.php
deleted file mode 100644
index c22017ca..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ClassDefinitionOpeningBraceSpaceUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the ClassDefinitionOpeningBraceSpace sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClassDefinitionOpeningBraceSpaceUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 7 => 1,
- 10 => 1,
- 26 => 1,
- 33 => 1,
- 43 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.css
deleted file mode 100644
index f4bd3271..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.css
+++ /dev/null
@@ -1,39 +0,0 @@
-body {
-font-family: Arial, Helvetica, sans-serif;
-margin : 40px 0 0 0;
-padding : 0;
-background: #8FB7DB url(diag_lines_bg.gif) top left;
-margin-top:
-10px;
-margin-bottom:
-0px;
-}
-
-.TableWidgetType .recover:hover {
- background-color: #FFF;
-}
-
-#clearCache-settings:rootNodes-list_0 {
- border-top: none;
-}
-
-.LookupEditScreenWidgetType-urls a, .LookupEditScreenWidgetType-urls a:visited {
- text-decoration: none;
- color: #444;
-}
-
-/* checking embedded PHP */
-li {
- background:url(<?php print $staticserver; ?>/images/<?php print $staticdir; ?>/bullet.gif) left <?php print $left; ?>px no-repeat;
- margin:0px;
- padding-left:10px;
- margin-bottom:<?php echo $marginBottom; ?>px;
- margin-top: <?php echo $marginTop; ?>px;
- line-height:13px;
- filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#2e62a8, endColorstr=#123363);
-}
-
-/* empty style def */
-.p {
- margin:;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.php
deleted file mode 100644
index 249f0cc4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColonSpacingUnitTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * Unit test class for the ColonSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ColonSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 4 => 2,
- 5 => 1,
- 6 => 1,
- 8 => 1,
- 27 => 1,
- 28 => 1,
- 29 => 1,
- 30 => 1,
- 32 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.css
deleted file mode 100644
index 2cafb36d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.css
+++ /dev/null
@@ -1,10 +0,0 @@
-#title-bar-bottom-right {
- background-color: #333333;
- padding: 10px;
- border-bottom: 1px dotted #F0F0F0;
- border-top: 1px dotted #FF00FF;
- background: #08f7db url(diag_lines_bg.gif) top left;
-}
-
-#add-new-comment {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.php
deleted file mode 100644
index 170bcabc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ColourDefinitionUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the ColourDefinition sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ColourDefinitionUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 5 => 1,
- 6 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.css
deleted file mode 100644
index 36245d6c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.css
+++ /dev/null
@@ -1,12 +0,0 @@
-.SettingsTabPaneWidgetType-tab-mid {
- background: transparent url(tab_inact_mid.png) repeat-x;
- height: 100%;float: left;
- line-height: -25px;
- cursor: pointer; margin: 10px; float: right;
-}
-
-/* testing embedded PHP */
-li {
- background:url(<?php print $staticserver; ?>/images/<?php print $staticdir; ?>/bullet.gif) left <?php print $left; ?>px no-repeat; margin:0px; padding-left:10px; margin-bottom:<?php echo $marginBottom; ?>px; line-height:13px;
- filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#2e62a8, endColorstr=#123363);
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.php
deleted file mode 100644
index 7bd0f92e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DisallowMultipleStyleDefinitionsUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowMultipleStyleDefinitions sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowMultipleStyleDefinitionsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 5 => 2,
- 10 => 4,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.css
deleted file mode 100644
index 2bd91b09..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.css
+++ /dev/null
@@ -1,70 +0,0 @@
-.AssetLineageWidgetType-item {
- color: #FFF;
-}
-
-.AssetLineageWidgetType-title {
- color: #CCC;
-}
-
-.AssetLineageWidgetType-item {
- color: #CCC;
-}
-
-.AssetLineageWidgetType-item .selected {
-}
-
-.AssetLineageWidgetType-item.selected {
-}
-
-#Blah .AssetLineageWidgetType-item {
-}
-
-#X.selected,
-.AssetLineageWidgetType-item {
-}
-
-.MyClass, .YourClass {
-}
-
-.YourClass, .MyClass {
-}
-
-.YourClass, .MyClass, .OurClass {
-}
-
-
-.ClassAtTopOfMediaBlock {
-}
-
-@media print {
- .ClassAtTopOfMediaBlock {
- }
-
- .ClassInMultipleMediaBlocks {
- }
-}
-
-.ClassNotAtTopOfMediaBlock {
-}
-
-@media handheld {
- .SameClassInMediaBlock {
- }
-
- .ClassNotAtTopOfMediaBlock {
- }
-
- .SameClassInMediaBlock {
- }
-}
-
-@media braille {
- .PlaceholderClass {
- }
-
- .ClassNotAtTopOfMediaBlock {
- }
-
- .ClassInMultipleMediaBlocks {
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.php
deleted file mode 100644
index e006f1ce..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateClassDefinitionUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the DuplicateClassDefinition sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DuplicateClassDefinitionUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 9 => 1,
- 29 => 1,
- 57 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.css
deleted file mode 100644
index 3167109d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.css
+++ /dev/null
@@ -1,23 +0,0 @@
-.ViperSubToolbar-wrapper {
- height: 34px;
- left: 0;
- position: fixed;
- top: 60px;
- z-index: 997;
- left: 50%;
-}
-
-.expandable {
- -moz-transition-property: margin-left, margin-right;
- -moz-transition-duration: 0.2s;
- -moz-transition-timing-function: ease;
- -webkit-transition-property: margin-left, margin-right;
- -webkit-transition-duration: 0.2s;
- -webkit-transition-timing-function: ease;
- z-index: 2;
-}
-
-@media only screen and (max-width: 480px) {
- header nav.meta a { display: none; }
- header nav.meta a.search { display: block; }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.php
deleted file mode 100644
index 600403d0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/DuplicateStyleDefinitionUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the DuplicateStyleDefinition sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DuplicateStyleDefinitionUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(7 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.css
deleted file mode 100644
index 801dcda1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.css
+++ /dev/null
@@ -1,15 +0,0 @@
-.HelpWidgetType-new-bug-title {}
-.HelpWidgetType-new-bug-title {
-}
-.HelpWidgetType-new-bug-title {
-
-}
-.HelpWidgetType-new-bug-title {
-
-}
-.HelpWidgetType-new-bug-title {
- /* Nothing to see here */
-}
-.HelpWidgetType-new-bug-title {
- float: left;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.php
deleted file mode 100644
index a564066b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyClassDefinitionUnitTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * Unit test class for the EmptyClassDefinition sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EmptyClassDefinitionUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 1 => 1,
- 2 => 1,
- 4 => 1,
- 7 => 1,
- 10 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.css
deleted file mode 100644
index 88699a85..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.css
+++ /dev/null
@@ -1,5 +0,0 @@
-#MetadataAdminScreen-addField-fieldType {
- margin-left: 10px;
- margin-right:
- float: ;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.php
deleted file mode 100644
index 83c1942b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/EmptyStyleDefinitionUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the EmptyStyleDefinition sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EmptyStyleDefinitionUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 4 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.css
deleted file mode 100644
index dbd54870..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.css
+++ /dev/null
@@ -1,18 +0,0 @@
-#add-new-comment {
- -moz-border-radius: 1px;
- -webkit-border-radius: 1px;
- border-radius: 1px;
-
- -moz-border-radius-topleft: 1px;
- -moz-border-radius-topright: 1px;
- -moz-border-radius-bottomright: 1px;
- -moz-border-radius-bottomleft: 1px;
- border-top-left-radius: 1px;
- border-top-right-radius: 1px;
- border-bottom-right-radius: 1px;
- border-bottom-left-radius: 1px;
-
- -moz-box-shadow: 1px;
- -webkit-box-shadow: 1px;
- box-shadow: 1px;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.php
deleted file mode 100644
index cb3147d2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ForbiddenStylesUnitTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Unit test class for the ForbiddenStyles sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ForbiddenStylesUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 3 => 1,
- 6 => 1,
- 7 => 1,
- 8 => 1,
- 9 => 1,
- 15 => 1,
- 16 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.css
deleted file mode 100644
index 728196f2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.css
+++ /dev/null
@@ -1,75 +0,0 @@
-body {
-
- font-family: Arial, Helvetica, sans-serif;
- margin: 40px 0 0 0;
-padding: 0;
- background: #8FB7DB url(diag_lines_bg.gif) top left;
-
-}
-
-td {
- margin: 40px;
-
- padding: 20px;
-}
-
-/*
-#AdminScreenModeWidgetType-tab_pane-containers .TabPaneWidgetType-tab-selected-left {
- background: transparent url(images/ScreenImages/tab_on_left.png) no-repeat;
-}
-#AdminScreenModeWidgetType-tab_pane-containers .TabPaneWidgetType-tab-selected-right {
- background: transparent url(images/ScreenImages/tab_on_right.png) no-repeat;
-}
-*/
-
-.GUITextBox.container:after {}
-
-@media screen and (max-device-width: 769px) {
-
- header #logo img {
- max-width: 100%;
- padding: 20px;
- margin: 40px;
- }
-}
-
-@media screen and (max-device-width: 769px) {
-
- header #logo img {
- max-width: 100%;
- }
-
- header #logo img {
- min-width: 100%;
- }
-
-}
-
-td {
- margin: 40px;
-
- padding: 20px;
-
-
-}
-
-.GUIFileUpload {
-/* opacity: 0.25; */
-}
-
-.foo
-{
- border: none;
-}
-
-.mortgage-calculator h2 {
- background: #072237;
- color: #fff;
- font-weight: normal;
- height: 50px;
- line-height: 50px;
- padding: 0 0 0 30px;
- }
-
-/* syntax error */
---------------------------------------------- */
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.css.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.css.fixed
deleted file mode 100644
index 5ffa2036..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.css.fixed
+++ /dev/null
@@ -1,69 +0,0 @@
-body {
- font-family: Arial, Helvetica, sans-serif;
- margin: 40px 0 0 0;
- padding: 0;
- background: #8FB7DB url(diag_lines_bg.gif) top left;
-}
-
-td {
- margin: 40px;
- padding: 20px;
-}
-
-/*
-#AdminScreenModeWidgetType-tab_pane-containers .TabPaneWidgetType-tab-selected-left {
- background: transparent url(images/ScreenImages/tab_on_left.png) no-repeat;
-}
-#AdminScreenModeWidgetType-tab_pane-containers .TabPaneWidgetType-tab-selected-right {
- background: transparent url(images/ScreenImages/tab_on_right.png) no-repeat;
-}
-*/
-
-.GUITextBox.container:after {}
-
-@media screen and (max-device-width: 769px) {
-
- header #logo img {
- max-width: 100%;
- padding: 20px;
- margin: 40px;
- }
-}
-
-@media screen and (max-device-width: 769px) {
-
- header #logo img {
- max-width: 100%;
- }
-
- header #logo img {
- min-width: 100%;
- }
-
-}
-
-td {
- margin: 40px;
- padding: 20px;
-}
-
-.GUIFileUpload {
-/* opacity: 0.25; */
-}
-
-.foo
-{
- border: none;
-}
-
-.mortgage-calculator h2 {
- background: #072237;
- color: #fff;
- font-weight: normal;
- height: 50px;
- line-height: 50px;
- padding: 0 0 0 30px;
-}
-
-/* syntax error */
---------------------------------------------- */
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.php
deleted file mode 100644
index 47e0d07d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/IndentationUnitTest.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * Unit test class for the Indentation sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class IndentationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 3 => 1,
- 5 => 1,
- 6 => 1,
- 7 => 1,
- 12 => 1,
- 30 => 1,
- 32 => 1,
- 50 => 1,
- 52 => 1,
- 53 => 1,
- 66 => 1,
- 67 => 1,
- 68 => 1,
- 69 => 1,
- 70 => 1,
- 71 => 1,
- 72 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.css
deleted file mode 100644
index d0f2982f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.css
+++ /dev/null
@@ -1,14 +0,0 @@
-.SettingsTabPaneWidgetType-tab-mid {
- font-family: Arial;
- Font-Family: arial;
- background-color: #DA9393;
- BACKGROUND-IMAGE: URL(Warning_Close.png);
-}
-
-@media screen and (max-device-width: 769px) {
-
- .SettingsTabPaneWidgetType-tab-mid {
- Font-Family: arial;
- filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#2e62a8, endColorstr=#123363);
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.php
deleted file mode 100644
index 980e003b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/LowercaseStyleDefinitionUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the LowercaseStyleDefinition sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LowercaseStyleDefinitionUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 3 => 1,
- 5 => 2,
- 11 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/MissingColonUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/MissingColonUnitTest.css
deleted file mode 100644
index 19242abd..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/MissingColonUnitTest.css
+++ /dev/null
@@ -1,17 +0,0 @@
-.my-style {
- margin-right 15px;
- float: left;
- margin-left 15px;
- margin-top: 15px;
- margin-bottom 15px;
-}
-
-@media screen and (max-device-width: 769px) {
- header #logo img {
- max-width: 100%;
- margin-bottom 15px;
- }
-}
-
-#foo { background-color: #FF0000;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/MissingColonUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/MissingColonUnitTest.php
deleted file mode 100644
index a546f3ec..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/MissingColonUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the MissingColon sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class MissingColonUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 4 => 1,
- 6 => 1,
- 12 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/NamedColoursUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/NamedColoursUnitTest.css
deleted file mode 100644
index 05637a60..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/NamedColoursUnitTest.css
+++ /dev/null
@@ -1,25 +0,0 @@
-#red {
- background-color: red;
-}
-
-.red {
- border-bottom: 1px dotted black;
- border-top: 1px dotted gray;
-}
-
-#red.yellow {
- background: yellow url(diag_lines_bg.gif) top left;
- text-shadow: 0 1px 0 white;
-}
-
-.something--white {
- border: 0;
-}
-
-.something--------------white {
- border: 0;
-}
-
-.-white {
- border: 0;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/NamedColoursUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/NamedColoursUnitTest.php
deleted file mode 100644
index 293db938..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/NamedColoursUnitTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * Unit test class for the NamedColours sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class NamedColoursUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 6 => 1,
- 7 => 1,
- 11 => 1,
- 12 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.css
deleted file mode 100644
index 5208586b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.css
+++ /dev/null
@@ -1,27 +0,0 @@
-.my-style {
- opacity: 0;
- opacity: 0.0;
- opacity: 1;
- opacity: 1.0;
- opacity: 1.5;
- opacity: .5;
- opacity: 0.5;
- opacity: 2;
- opacity: -1;
- opacity: 0.55;
-}
-
-div {
- font-size: 1.2em;
- background: linear-gradient(to bottom, #00F, #0F0) repeat scroll 50% 50% #EEE;
- min-width: 250px;
- max-width: 100%;
- padding-bottom: 50px;
- box-shadow: 2px -3px 3px rgba(100, 100, 100, 0.33);
- border-left: 1px solid #000;
- border-right: 1px solid #000;
- border-top: 1px solid #000;
- border-bottom: 1px dotted #000;
- background: url(../1/2/3/4-5-6_7_100x100.png) repeat scroll 50% 50% #EEE;
- opacity: -1;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.php
deleted file mode 100644
index 7181c41a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/OpacityUnitTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Unit test class for the Opacity sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class OpacityUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 5 => 1,
- 6 => 1,
- 7 => 1,
- 9 => 1,
- 10 => 1,
- 11 => 1,
- 26 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.css
deleted file mode 100644
index a46cc266..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.css
+++ /dev/null
@@ -1,27 +0,0 @@
-.HelpWidgetType-new-bug-title {
- width: 308px
- float: left;
-}
-
-#MetadataAdminScreen-addField-add {
- float: left ;
-}
-
-.TableWidgetType .recover:hover {
- background-color: #FFF;
-}
-
-#clearCache-settings:rootNodes-list_0 {
- border-top: none;
-}
-
-.HelpWidgetType-list {
- list-style-image: url();
-}
-
-@media (min-width: 320px) and (max-width: 961px) {
- .tooltipsrt:hover span.tltp,
- .tooltipstp:hover span.tltp {
- visibility: hidden;
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.php
deleted file mode 100644
index 4a45109a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/SemicolonSpacingUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the SemicolonSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SemicolonSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 7 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.css
deleted file mode 100644
index e4bb771a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.css
+++ /dev/null
@@ -1,26 +0,0 @@
-#add-new-comment {
- background-color: #333333;
- padding: 10px;
- border-bottom: 1px dotted #F0F0F0;
- border-top: 1px dotted #FF00FF;
- background: #8fb7db url(diag_lines_bg.gif) top left;
- page-break-inside: 1;
- margin: 8px 8px 8px 8px;
- margin: 8px 8px;
- margin: 0 0 0 0;
- margin: 0 8px 0 8px;
- margin: 8px 4px 8px 4px;
- margin: 8px 4% 8px 4%;
- margin: 6px 2px 9px 2px;
- margin: 6px 2px 9px;
- border-radius: 2px 2px 2px 2px !important;
- border-width: 2px 2px 2px 2px;
- border-width: 1px 2px 2px 4px;
- margin: 97px auto 0 auto;
- text-shadow: 0 1px 0 #fff;
-
- /* These are black-listed style names. */
- background-position: 0 0;
- box-shadow: 2px 2px 2px 2px;
- transform-origin: 0 110% 0;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.php
deleted file mode 100644
index ff9c2a40..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/CSS/ShorthandSizeUnitTest.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Unit test class for the ShorthandSize sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\CSS;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ShorthandSizeUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 8 => 1,
- 9 => 1,
- 10 => 1,
- 11 => 1,
- 12 => 1,
- 13 => 1,
- 15 => 1,
- 16 => 1,
- 17 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc
deleted file mode 100644
index f96ae4d6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-
-
-
- class ClassDeclaration
-{
-
-}
-
-abstract class CorrectClassDeclarationWithExtends extends correctClassDeclaration
-{
-
-}
-
-final class CorrectClassDeclarationWithImplements implements correctClassDeclaration
-{
-
-}
-
-
-// Incorrect placement of opening/closing braces, including indent.
-class IncorrectBracePlacement {}
-class IncorrectBracePlacementWithExtends extends correctClassDeclaration {}
-class IncorrectBracePlacementWithImplements implements correctClassDeclaration {}
-
-
- class IncorrectIndentedClass
- {
-
- }//end class
-
-
-// Incorrect code placement for opening/closing brace.
-class IncorrectCodeAfterOpeningBrace
-{ echo phpinfo();
-
-}//end class
-
-class IncorrectCodeAfterClosingBrace
-{
-
-} echo phpinfo();
-
-
-class IncorrectCodeBeforeClosingBrace
-{
-
-echo phpinfo(); }
-
- class IncorrectIndentedClass
-{
-
-}
-
-class ClassOne implements ClassTwo, ClassThree
-{
-}//end class
-
-class ClassOne implements ClassFour ,ClassFive, ClassSix
-{
-}//end class
-
-class CorrectClassDeclarationWithExtends extends correctClassDeclaration
-
-{
-
-}
-
-class CorrectClassDeclarationWithExtends extends correctClassDeclaration
-{
-
-}//end class
-
-class CorrectClassDeclaration
-{
-
-}//end class
-
-
-class CorrectClassDeclaration extends CorrectClassDeclaration2 implements ICorrectClassDeclaration
-{
-
-}//end class
-
-class File implements \Zend_Auth_Storage_Interface,\Zend_Auth_Storage, \Zend_Foo
-{
-}
-
-interface MyInterface
-{
-
-}
-?>
-
-<?php
-
-class CorrectClassDeclaration
-{
-
-}//end class
-
-// Class comment here, but wrong comment type.
-class testing
-{
-} /* end class */ echo 'hi';
-
-class IncorrectCodeBeforeClosingBrace
-{
-
-echo phpinfo();}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc.fixed
deleted file mode 100644
index 7e2fd30c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.inc.fixed
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-
-
-
-class ClassDeclaration
-{
-
-}
-
-abstract class CorrectClassDeclarationWithExtends extends correctClassDeclaration
-{
-
-}
-
-final class CorrectClassDeclarationWithImplements implements correctClassDeclaration
-{
-
-}
-
-// Incorrect placement of opening/closing braces, including indent.
-class IncorrectBracePlacement
-{
-}
-
-class IncorrectBracePlacementWithExtends extends correctClassDeclaration
-{
-}
-
-class IncorrectBracePlacementWithImplements implements correctClassDeclaration
-{
-}
-
-class IncorrectIndentedClass
-{
-
-}//end class
-
-// Incorrect code placement for opening/closing brace.
-class IncorrectCodeAfterOpeningBrace
-{
- echo phpinfo();
-
-}//end class
-
-class IncorrectCodeAfterClosingBrace
-{
-
-}
-
-echo phpinfo();
-
-
-class IncorrectCodeBeforeClosingBrace
-{
-
-echo phpinfo();
-}
-
-class IncorrectIndentedClass
-{
-
-}
-
-class ClassOne implements ClassTwo, ClassThree
-{
-}//end class
-
-class ClassOne implements ClassFour, ClassFive, ClassSix
-{
-}//end class
-
-class CorrectClassDeclarationWithExtends extends correctClassDeclaration
-{
-
-}
-
-class CorrectClassDeclarationWithExtends extends correctClassDeclaration
-{
-
-}//end class
-
-class CorrectClassDeclaration
-{
-
-}//end class
-
-class CorrectClassDeclaration extends CorrectClassDeclaration2 implements ICorrectClassDeclaration
-{
-
-}//end class
-
-class File implements \Zend_Auth_Storage_Interface, \Zend_Auth_Storage, \Zend_Foo
-{
-}
-
-interface MyInterface
-{
-
-}
-
-?>
-
-<?php
-
-class CorrectClassDeclaration
-{
-
-}//end class
-
-// Class comment here, but wrong comment type.
-class testing
-{
-} /* end class */
-
-echo 'hi';
-
-class IncorrectCodeBeforeClosingBrace
-{
-
-echo phpinfo();
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php
deleted file mode 100644
index dc488ffe..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-/**
- * Unit test class for the ClassDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClassDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 5 => 1,
- 6 => 1,
- 10 => 1,
- 15 => 2,
- 18 => 1,
- 22 => 4,
- 23 => 4,
- 24 => 4,
- 27 => 2,
- 30 => 2,
- 34 => 1,
- 35 => 1,
- 39 => 1,
- 42 => 1,
- 45 => 1,
- 48 => 1,
- 50 => 2,
- 51 => 1,
- 55 => 1,
- 59 => 4,
- 63 => 1,
- 65 => 1,
- 69 => 3,
- 74 => 2,
- 77 => 1,
- 80 => 1,
- 85 => 3,
- 89 => 1,
- 92 => 1,
- 97 => 1,
- 103 => 1,
- 105 => 1,
- 107 => 1,
- 110 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc
deleted file mode 100644
index d0e089cd..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-
-// Valid class name (matching filename).
-class ClassFileNameUnitTest {}
-
-
-// Invalid filename matching class name (case sensitive).
-class classFileNameUnitTest {}
-class classfilenameunittest {}
-class CLASSFILENAMEUNITTEST {}
-
-
-// Invalid non-filename matching class names.
-class CompletelyWrongClassName {}
-class ClassFileNameUnitTestExtra {}
-class ClassFileNameUnitTestInc {}
-class ExtraClassFileNameUnitTest {}
-
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php
deleted file mode 100644
index 7f113ca2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * Unit test class for the ClassFileName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClassFileNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 9 => 1,
- 10 => 1,
- 11 => 1,
- 15 => 1,
- 16 => 1,
- 17 => 1,
- 18 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.js
deleted file mode 100644
index 04126f86..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var x = {
- abc: 1,
- zyz: 2,
- abc: 5,
- mno: {
- abc: 4
- },
- abc: 5
-
- this.request({
- action: 'getSubmissions'
- });
-
- this.request({
- action: 'deleteSubmission'
- });
-}
-
-
-LinkingEditScreenWidgetType.prototype = {
-
- _addDeleteButtonEvent: function(parentid)
- {
- var params = {
- screen: 'LinkingEditScreenWidget',
- assetid: self.assetid,
- parentid: parentid,
- assetid: parentid,
- op: 'deleteLink'
- };
-
- },
-
- saveDesignEdit: function()
- {
- var params = {
- screen: [this.id, 'Widget'].join(''),
- assetid: this.assetid,
- changes: dfx.jsonEncode(this.currnetLinksWdgt.getChanges()),
- op: 'saveLinkEdit'
- };
-
- }
-
-}; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.php
deleted file mode 100644
index c0834b5c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/DuplicatePropertyUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the DuplicateProperty sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DuplicatePropertyUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 8 => 1,
- 28 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc
deleted file mode 100644
index 557a9e26..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.inc
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-Abstract Class MyClass Extends MyClass {}
-Final Class MyClass Implements MyInterface {}
-Interface MyInterface {}
-Trait MyTrait {}
-
-class MyClass
-{
- Var $myVar = null;
- Const myConst = true;
-}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php
deleted file mode 100644
index 95a432ed..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Unit test class for the LowercaseClassKeywords sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LowercaseClassKeywordsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- $errors = array(
- 2 => 3,
- 3 => 3,
- 4 => 1,
- 5 => 1,
- 9 => 1,
- 10 => 1,
- );
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc
deleted file mode 100644
index 91fdd144..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-
-
-class SelfMemberReferenceUnitTestExample
-{
-
-
- private $testCount = 0;
-
-
- private $testResults = array();
-
-
- public function SelfMemberReferenceUnitTestExample()
- {
- $testResults =& $this->testResults;
-
-
- // Correct call to self.
- $testResults[] = self::selfMemberReferenceUnitTestFunction();
- $testResults[] = parent::selfMemberReferenceUnitTestFunction();
-
- // Incorrect case.
- $testResults[] = Self::selfMemberReferenceUnitTestFunction();
- $testResults[] = SELF::selfMemberReferenceUnitTestFunction();
- $testResults[] = SelfMemberReferenceUnitTestExample::selfMemberReferenceUnitTestFunction();
-
-
- // Incorrect spacing.
- $testResults[] = self ::selfMemberReferenceUnitTestFunction();
- $testResults[] = self:: selfMemberReferenceUnitTestFunction();
- $testResults[] = self :: selfMemberReferenceUnitTestFunction();
-
- }
-
-
- function selfMemberReferenceUnitTestFunction()
- {
- $this->testCount = $this->testCount + 1;
- return $this->testCount;
-
- }
-
-
-}
-
-
-class MyClass {
-
- public static function test($value) {
- echo "$value\n";
- }
-
- public static function walk() {
- $callback = function($value, $key) {
- // This is valid because you cant use self:: in a closure
- MyClass::test($value);
- };
-
- $array = array(1,2,3);
- array_walk($array, $callback);
- }
-}
-
-MyClass::walk();
-
-class Controller
-{
- public function Action()
- {
- Doctrine\Common\Util\Debug::dump();
- }
-}
-
-class Foo
-{
- public static function bar()
- {
- \Foo::baz();
- }
-}
-
-namespace TYPO3\CMS\Reports;
-
-class Status {
- const NOTICE = -2;
- const INFO = -1;
- const OK = 0;
- const WARNING = 1;
- const ERROR = 2;
-}
-
-namespace TYPO3\CMS\Reports\Report\Status;
-
-class Status implements \TYPO3\CMS\Reports\ReportInterface {
- public function getHighestSeverity(array $statusCollection) {
- $highestSeverity = \TYPO3\CMS\Reports\Status::NOTICE;
- }
-}
-
-namespace Foo;
-
-class Bar {
-
- function myFunction()
- {
- \Foo\Whatever::something();
- \Foo\Bar::something();
- }
-}
-
-namespace Foo\Bar;
-
-class Baz {
-
- function myFunction()
- {
- \Foo\Bar\Whatever::something();
- \Foo\Bar\Baz::something();
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc.fixed
deleted file mode 100644
index 53bc9316..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.inc.fixed
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-
-
-class SelfMemberReferenceUnitTestExample
-{
-
-
- private $testCount = 0;
-
-
- private $testResults = array();
-
-
- public function SelfMemberReferenceUnitTestExample()
- {
- $testResults =& $this->testResults;
-
-
- // Correct call to self.
- $testResults[] = self::selfMemberReferenceUnitTestFunction();
- $testResults[] = parent::selfMemberReferenceUnitTestFunction();
-
- // Incorrect case.
- $testResults[] = self::selfMemberReferenceUnitTestFunction();
- $testResults[] = self::selfMemberReferenceUnitTestFunction();
- $testResults[] = self::selfMemberReferenceUnitTestFunction();
-
-
- // Incorrect spacing.
- $testResults[] = self::selfMemberReferenceUnitTestFunction();
- $testResults[] = self::selfMemberReferenceUnitTestFunction();
- $testResults[] = self::selfMemberReferenceUnitTestFunction();
-
- }
-
-
- function selfMemberReferenceUnitTestFunction()
- {
- $this->testCount = $this->testCount + 1;
- return $this->testCount;
-
- }
-
-
-}
-
-
-class MyClass {
-
- public static function test($value) {
- echo "$value\n";
- }
-
- public static function walk() {
- $callback = function($value, $key) {
- // This is valid because you cant use self:: in a closure
- MyClass::test($value);
- };
-
- $array = array(1,2,3);
- array_walk($array, $callback);
- }
-}
-
-MyClass::walk();
-
-class Controller
-{
- public function Action()
- {
- Doctrine\Common\Util\Debug::dump();
- }
-}
-
-class Foo
-{
- public static function bar()
- {
- self::baz();
- }
-}
-
-namespace TYPO3\CMS\Reports;
-
-class Status {
- const NOTICE = -2;
- const INFO = -1;
- const OK = 0;
- const WARNING = 1;
- const ERROR = 2;
-}
-
-namespace TYPO3\CMS\Reports\Report\Status;
-
-class Status implements \TYPO3\CMS\Reports\ReportInterface {
- public function getHighestSeverity(array $statusCollection) {
- $highestSeverity = \TYPO3\CMS\Reports\Status::NOTICE;
- }
-}
-
-namespace Foo;
-
-class Bar {
-
- function myFunction()
- {
- \Foo\Whatever::something();
- self::something();
- }
-}
-
-namespace Foo\Bar;
-
-class Baz {
-
- function myFunction()
- {
- \Foo\Bar\Whatever::something();
- self::something();
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php
deleted file mode 100644
index 0d6ac959..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Unit test class for the SelfMemberReference sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SelfMemberReferenceUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 24 => 1,
- 25 => 1,
- 26 => 1,
- 30 => 1,
- 31 => 1,
- 32 => 2,
- 79 => 1,
- 108 => 1,
- 119 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.inc
deleted file mode 100644
index 133c63ee..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.inc
+++ /dev/null
@@ -1,138 +0,0 @@
-<?php
-
-
-// Valid class name.
-class ValidCamelCaseClass extends MyClass {}
-
-
-// Incorrect usage of camel case.
-class invalidCamelCaseClass extends MyClass {}
-class Invalid_Camel_Case_Class_With_Underscores implements MyClass {}
-
-
-// All lowercase.
-class invalidlowercaseclass extends MyClass {}
-class invalid_lowercase_class_with_underscores extends MyClass {}
-
-
-// All uppercase.
-class VALIDUPPERCASECLASS extends MyClass {}
-class INVALID_UPPERCASE_CLASS_WITH_UNDERSCORES extends MyClass {}
-
-
-// Mix camel case with uppercase.
-class ValidCamelCaseClassWithUPPERCASE extends MyClass {}
-
-
-// Usage of numeric characters.
-class ValidCamelCaseClassWith1Number extends MyClass {}
-class ValidCamelCaseClassWith12345Numbers extends MyClass {}
-class 5InvalidCamelCaseClassStartingWithNumber extends MyClass {}
-class ValidCamelCaseClassEndingWithNumber5 extends MyClass {}
-class 12345 extends MyClass {}
-
-class Testing{}
-
-class Base
-{
- protected $anonymous;
-
- public function __construct()
- {
- $this->anonymous = new class extends ArrayObject
- {
- public function __construct()
- {
- parent::__construct(['a' => 1, 'b' => 2]);
- }
- };
- }
-}
-
-// Valid interface name.
-interface ValidCamelCaseClass extends MyClass {}
-
-
-// Incorrect usage of camel case.
-interface invalidCamelCaseClass extends MyClass {}
-interface Invalid_Camel_Case_Class_With_Underscores implements MyClass {}
-
-
-// All lowercase.
-interface invalidlowercaseclass extends MyClass {}
-interface invalid_lowercase_class_with_underscores extends MyClass {}
-
-
-// All uppercase.
-interface VALIDUPPERCASECLASS extends MyClass {}
-interface INVALID_UPPERCASE_CLASS_WITH_UNDERSCORES extends MyClass {}
-
-
-// Mix camel case with uppercase.
-interface ValidCamelCaseClassWithUPPERCASE extends MyClass {}
-
-
-// Usage of numeric characters.
-interface ValidCamelCaseClassWith1Number extends MyClass {}
-interface ValidCamelCaseClassWith12345Numbers extends MyClass {}
-interface 5InvalidCamelCaseClassStartingWithNumber extends MyClass {}
-interface ValidCamelCaseClassEndingWithNumber5 extends MyClass {}
-interface 12345 extends MyClass {}
-
-interface Testing{}
-
-interface Base
-{
- protected $anonymous;
-
- public function __construct();
-}
-
-
-// Valid trait name.
-trait ValidCamelCaseClass extends MyClass {}
-
-
-// Incorrect usage of camel case.
-trait invalidCamelCaseClass extends MyClass {}
-trait Invalid_Camel_Case_Class_With_Underscores implements MyClass {}
-
-
-// All lowercase.
-trait invalidlowercaseclass extends MyClass {}
-trait invalid_lowercase_class_with_underscores extends MyClass {}
-
-
-// All uppercase.
-trait VALIDUPPERCASECLASS extends MyClass {}
-trait INVALID_UPPERCASE_CLASS_WITH_UNDERSCORES extends MyClass {}
-
-
-// Mix camel case with uppercase.
-trait ValidCamelCaseClassWithUPPERCASE extends MyClass {}
-
-
-// Usage of numeric characters.
-trait ValidCamelCaseClassWith1Number extends MyClass {}
-trait ValidCamelCaseClassWith12345Numbers extends MyClass {}
-trait 5InvalidCamelCaseClassStartingWithNumber extends MyClass {}
-trait ValidCamelCaseClassEndingWithNumber5 extends MyClass {}
-trait 12345 extends MyClass {}
-
-trait Testing{}
-
-trait Base
-{
- protected $anonymous;
-
- public function __construct()
- {
- $this->anonymous = new class extends ArrayObject
- {
- public function __construct()
- {
- parent::__construct(['a' => 1, 'b' => 2]);
- }
- };
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php
deleted file mode 100644
index cff83564..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-/**
- * Unit test class for the ValidClassName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ValidClassNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 9 => 1,
- 10 => 1,
- 14 => 1,
- 15 => 1,
- 20 => 1,
- 30 => 1,
- 32 => 1,
- 57 => 1,
- 58 => 1,
- 62 => 1,
- 63 => 1,
- 68 => 1,
- 78 => 1,
- 80 => 1,
- 97 => 1,
- 98 => 1,
- 102 => 1,
- 103 => 1,
- 108 => 1,
- 118 => 1,
- 120 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc
deleted file mode 100644
index 33db8944..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc
+++ /dev/null
@@ -1,222 +0,0 @@
-<?php
-
-/*
- Comments need to be indented 4 space.
-*/
-
-/*
- same with multi-line
- comments.
-*/
-
-/*
- But they can:
- - be indented more than 4
- - but not less than 4
-*/
-
-/*
- - This is valid:
- Not indented correctly.
-*/
-
-/*
- Comments need to be indented 4 space.
-*/
-
-/*
- Comments need to be indented 4 space.
- Comments need to be indented 4 space.
- Comments need to be indented 4 space.
- Comments need to be indented 4 space.
-
- Comments need to be indented 4 space.
- Comments need to be indented 4 space.
-*/
-
-/*
- Block comments require a blank
- line after them.
-*/
-$code = 'should not be here';
-
-/*
- Closing comment not aligned
- */
-
-/*
- Closing comment not aligned
- */
-
-/* Not allowed */
-
-/* Not allowed
- either.
-*/
-
-/* */
-
-$code = 'should not be here';
-/*
-
- Block comments require a blank
- line before them. */
-
-/*
-*/
-
-/** Not allowed */
-
-/** Not allowed
- either.
-**/
-
-/*
- no capital
- letter.
-*/
-
-echo 'hi';
-
-function func()
-{
- echo 1;
- /**
- test
- here
- **/
- echo 'test';
- /**
- Test
- here
- **/
-
-}//end func()
-
-public static function test()
-{
- /*
- Block comments do not require a blank line before them
- if they are after T_OPEN_CURLY_BRACKET.
- */
-
- $code = '';
-
-}//end test()
-
-
-public static function test()
-{
-
- /*
- Block comments do not require a blank line before them
- if they are after T_OPEN_CURLY_BRACKET.
- */
-
- $code = '';
-
-}//end test()
-
-class MyClass
-{
-
- /**
- * Comment should be ignored.
- *
- * @var integer
- * @since 4.0.0
- */
- const LEFT = 1;
-
-}
-
-/**
- * Comment should be ignored.
- *
- */
-final class MyClass
-{
- /**
- * Comment should be ignored.
- *
- */
- final public function test() {}
-}
-
-switch ($var) {
- case 'foo':
- /*
- Foo comment.
- This is a multiple
- line comment for Foo.
- */
-
- echo 'Foo';
- break;
-
- default:
-
- /*
- Foo comment.
- This is a multiple
- line comment for Foo.
- */
-
- echo 'Default';
- break;
-}//end switch
-
-/**
- * Comment should be ignored in PHP < 5.4.
- *
- */
-trait MyTrait {
-
-}
-
-/*
- 这是一条测试评论.
-*/
-
-/*Channels::includeSystem('Permission');
-if (Permission::hasPermission($projectid, 'project.metadata.add') === FALSE) {
- throw new PermissionException(_('You do not have permission to add metadata field'));
-}*/
-
-/*
- Comment goes here
-*/
-$two = (1 + 1); // I'm not a comment closer!
-
-class Foo
-{
-
- /**
- * Comment here.
- *
- * @var array
- */
- var $bar = array();
-
-}
-
-class TabTest {
- public function bar() {
- /*
- * Comment line 1.
- * Comment line 2.
- */
-
- if ($foo) {
- echo 'foo';
- }
-
- /* Comment line 1.
- Comment line 2.
- */
-
- if ($foo) {
- echo 'foo';
- }
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc.fixed
deleted file mode 100644
index ef572c63..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.inc.fixed
+++ /dev/null
@@ -1,226 +0,0 @@
-<?php
-
-/*
- Comments need to be indented 4 space.
-*/
-
-/*
- same with multi-line
- comments.
-*/
-
-/*
- But they can:
- - be indented more than 4
- - but not less than 4
-*/
-
-/*
- - This is valid:
- Not indented correctly.
-*/
-
-/*
- Comments need to be indented 4 space.
-*/
-
-/*
- Comments need to be indented 4 space.
- Comments need to be indented 4 space.
- Comments need to be indented 4 space.
- Comments need to be indented 4 space.
-
- Comments need to be indented 4 space.
- Comments need to be indented 4 space.
-*/
-
-/*
- Block comments require a blank
- line after them.
-*/
-$code = 'should not be here';
-
-/*
- Closing comment not aligned
- */
-
-/*
- Closing comment not aligned
- */
-
-// Not allowed
-
-
-/*
- Not allowed
- either.
-*/
-
-
-
-$code = 'should not be here';
-/*
- Block comments require a blank
- line before them. */
-
-
-
-// Not allowed
-
-
-/*
- Not allowed
- either.
-*/
-
-/*
- no capital
- letter.
-*/
-
-echo 'hi';
-
-function func()
-{
- echo 1;
- /*
- test
- here
- */
- echo 'test';
- /*
- Test
- here
- */
-
-}//end func()
-
-public static function test()
-{
- /*
- Block comments do not require a blank line before them
- if they are after T_OPEN_CURLY_BRACKET.
- */
-
- $code = '';
-
-}//end test()
-
-
-public static function test()
-{
-
- /*
- Block comments do not require a blank line before them
- if they are after T_OPEN_CURLY_BRACKET.
- */
-
- $code = '';
-
-}//end test()
-
-class MyClass
-{
-
- /**
- * Comment should be ignored.
- *
- * @var integer
- * @since 4.0.0
- */
- const LEFT = 1;
-
-}
-
-/**
- * Comment should be ignored.
- *
- */
-final class MyClass
-{
- /**
- * Comment should be ignored.
- *
- */
- final public function test() {}
-}
-
-switch ($var) {
- case 'foo':
- /*
- Foo comment.
- This is a multiple
- line comment for Foo.
- */
-
- echo 'Foo';
- break;
-
- default:
-
- /*
- Foo comment.
- This is a multiple
- line comment for Foo.
- */
-
- echo 'Default';
- break;
-}//end switch
-
-/**
- * Comment should be ignored in PHP < 5.4.
- *
- */
-trait MyTrait {
-
-}
-
-/*
- 这是一条测试评论.
-*/
-
-/*
- Channels::includeSystem('Permission');
- if (Permission::hasPermission($projectid, 'project.metadata.add') === FALSE) {
- throw new PermissionException(_('You do not have permission to add metadata field'));
-}*/
-
-/*
- Comment goes here
-*/
-$two = (1 + 1); // I'm not a comment closer!
-
-class Foo
-{
-
- /**
- * Comment here.
- *
- * @var array
- */
- var $bar = array();
-
-}
-
-class TabTest {
- public function bar() {
- /*
- * Comment line 1.
- * Comment line 2.
- */
-
- if ($foo) {
- echo 'foo';
- }
-
- /*
- Comment line 1.
- Comment line 2.
- */
-
- if ($foo) {
- echo 'foo';
- }
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php
deleted file mode 100644
index df5dcd8a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-/**
- * Unit test class for the BlockComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class BlockCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Get a list of CLI values to set before the file is tested.
- *
- * @param string $testFile The name of the file being tested.
- * @param \PHP_CodeSniffer\Config $config The config data for the test run.
- *
- * @return array
- */
- public function setCliValues($testFile, $config)
- {
- $config->tabWidth = 4;
-
- }//end setCliValues()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- $errors = array(
- 8 => 1,
- 20 => 1,
- 24 => 1,
- 30 => 1,
- 31 => 1,
- 34 => 1,
- 40 => 1,
- 45 => 1,
- 49 => 1,
- 51 => 1,
- 53 => 1,
- 57 => 1,
- 60 => 1,
- 61 => 1,
- 63 => 1,
- 65 => 1,
- 68 => 1,
- 70 => 1,
- 72 => 1,
- 75 => 1,
- 84 => 1,
- 87 => 1,
- 89 => 1,
- 92 => 1,
- 111 => 1,
- 159 => 1,
- 181 => 1,
- 188 => 1,
- 206 => 1,
- 207 => 1,
- 214 => 1,
- );
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.inc
deleted file mode 100644
index eefa44c9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.inc
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-/** Class doc comment */
-
-class Comment
-{
-
-}//end class
-
-
-//
-// Sample class comment
-//
-//
-//
-class Invalid_Comment_Style1
-{
-
-}//end class
-
-/**
- *
- *
- * Sample class comment.
- *
- *
- * Long description with extra blank line before and after
- *
- *
- * @version Release: 1.0
- * @link http://pear.php.net/package/PHP_CodeSniffer
- */
-
-class Extra_Description_Newlines
-{
-
-}//end class
-
-
-/**
- * Sample class comment...
- */
-class Missing_Newlines_Before_Tags
-{
-
-}//end class
-
-/**
- * Simple class comment
- *
- * @deprecated asd
- */
-class Checking_Tags
-{
- class Sub_Class {
-
- }//end class
-
-
-}//end class
-
-/**
- * Simple class comment
- * that spans multiple line
- * and not end with a full stop
- *
- * @hello Hello tag
- * @package phpcs
- */
-class Unknown_Hello_Tag
-{
-
-}//end class
-
-/**
- *
- *
- *
- */
-class Empty_Class_Doc
-{
-
-}//end class
-
-/**
- */
-class Missing_Short_Desc
-{
-
-}//end class
-
-/**
- * sample class comment.
- *
- * - long description with extra blank line before and after
- */
-class Incorrect_Case
-{
-
-}//end class
-
-/**
- * 0sample class comment.
- *
- * long description with extra blank line before and after
- */
-class Incorrect_Case2
-{
-
-}//end class
-
-/** Sample class comment.
- */
-class Start_Tag_Incorrect
-{
-
-}//end class
-
-/**
- * 这是一条测试评论.
- *
- */
-class Space_At_end
-{
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php
deleted file mode 100644
index 2052e29c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * Unit test class for the ClassComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClassCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 15 => 1,
- 31 => 1,
- 54 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 29 => 1,
- 30 => 1,
- 50 => 1,
- 66 => 1,
- 67 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.inc
deleted file mode 100644
index 9c3255cf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.inc
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-function __construct()
-{
-}//end __construct()
-
-function myFunction()
-{
-}//end myFunction()
-
-function ourFunction()
-{
-}//end ourFunction
-
-function yourFunction()
-{
-}//end myFunction()
-
-class TestClass
-{
- function __construct()
- {
- }//end __construct()
-
- function myFunction()
- {
- }//end myFunction()
-
- function yourFunction()
- {
- }//end myFunction()
-
-}//end class
-
-abstract class TestClass
-{
- abstract function myFunction();
-
- function ourFunction()
- {
- }//end myFunction()
-
- function yourFunction()
- {
- }//end yourFunction()
-
-}//end class
-
-interface TestClass
-{
- function myFunction();
- function ourFunction();
- function yourFunction();
-
-}//end interface
-
-class TestClass
-{
-}
-
-abstract class TestClass
-{
-}
-
-interface TestClass
-{
-}
-
-class MyClass
-{
- public function myFunction();
-}//end class
-
-// Closures don't need end comments.
-echo preg_replace_callback('~-([a-z])~', function ($match) { return strtoupper($match[1]); }, 'hello-world');
-
-class TestClass
-{
-}
-//end class
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php
deleted file mode 100644
index 06d0cb33..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Unit test class for the ClosingDeclarationComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClosingDeclarationCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 13 => 1,
- 17 => 1,
- 31 => 1,
- 41 => 1,
- 59 => 1,
- 63 => 1,
- 67 => 1,
- 79 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(71 => 1);
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc
deleted file mode 100644
index 9bd5c7cc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/**
-* Some info about the class here
- *
- */
-class MyClass
-{
- /**
- * Some info about the function here.
- *
- *@return void
- */
- function myFunction() {}
-}
-
-/**
- * Some info about the class here
- *
- */
-class MyClass
-{
- /**
- *Some info about the function here.
- *
- * @return void
- */
- function myFunction() {}
-}
-
-/**
- * Some info about the class here
- *
-*/
-class MyClass
-{
- /**
- * Some info about the function here.
- *
- * @return void
- */
- function myFunction() {}
-}
-
-/** @var Database $mockedDatabase */
-/** @var Container $mockedContainer */
-
-function myFunction()
-{
- echo 'hi';
- /**
- Comment here.
- */
-}
-
-/**
- * Creates a map of tokens => line numbers for each token.
- *
- * Long description with some points:
- * - one
- * - two
- * - three
- *
- * @param array &$tokens The array of tokens to process.
- * @param object $tokenizer The tokenizer being used to
- * process this file.
- * @param string $eolChar The EOL character to use for splitting strings.
- *
- * @return void
- */
-function myFunction() {}
-
-class MyClass2
-{
- /**
- * Some info about the variable here.
- */
- var $x;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc.fixed
deleted file mode 100644
index c58f933c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.inc.fixed
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/**
- * Some info about the class here
- *
- */
-class MyClass
-{
- /**
- * Some info about the function here.
- *
- * @return void
- */
- function myFunction() {}
-}
-
-/**
- * Some info about the class here
- *
- */
-class MyClass
-{
- /**
- * Some info about the function here.
- *
- * @return void
- */
- function myFunction() {}
-}
-
-/**
- * Some info about the class here
- *
- */
-class MyClass
-{
- /**
- * Some info about the function here.
- *
- * @return void
- */
- function myFunction() {}
-}
-
-/** @var Database $mockedDatabase */
-/** @var Container $mockedContainer */
-
-function myFunction()
-{
- echo 'hi';
- /**
- Comment here.
- */
-}
-
-/**
- * Creates a map of tokens => line numbers for each token.
- *
- * Long description with some points:
- * - one
- * - two
- * - three
- *
- * @param array &$tokens The array of tokens to process.
- * @param object $tokenizer The tokenizer being used to
- * process this file.
- * @param string $eolChar The EOL character to use for splitting strings.
- *
- * @return void
- */
-function myFunction() {}
-
-class MyClass2
-{
- /**
- * Some info about the variable here.
- */
- var $x;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.js
deleted file mode 100644
index 6e1a8781..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.js
+++ /dev/null
@@ -1,76 +0,0 @@
-
-/**
-* Some info about the class here
- *
- */
-foo.prototype = {
-
- /**
- * Some info about the function here.
- *
- *@return void
- */
- bar: function() {}
-}
-
-/**
- * Some info about the class here
- *
- */
-foo.prototype = {
-
- /**
- *Some info about the function here.
- *
- * @return void
- */
- bar: function() {}
-}
-
-/**
- * Some info about the class here
- *
-*/
-foo.prototype = {
-
- /**
- * Some info about the function here.
- *
- * @return void
- */
- bar: function() {}
-}
-
-/** @var Database $mockedDatabase */
-/** @var Container $mockedContainer */
-
-function myFunction()
-{
- console.info('hi');
- /**
- Comment here.
- */
-}
-
-/**
- * Creates a map of tokens => line numbers for each token.
- *
- * Long description with some points:
- * - one
- * - two
- * - three
- *
- * @param array &$tokens The array of tokens to process.
- * @param object $tokenizer The tokenizer being used to
- * process this file.
- * @param string $eolChar The EOL character to use for splitting strings.
- *
- * @return void
- */
-function myFunction() {}
-
-$.extend(Datepicker.prototype, {
- _widgetDatepicker: function() {
- },
- /* Action for selecting a new month/year. */
-});
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.js.fixed
deleted file mode 100644
index 9edb4ccc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.js.fixed
+++ /dev/null
@@ -1,76 +0,0 @@
-
-/**
- * Some info about the class here
- *
- */
-foo.prototype = {
-
- /**
- * Some info about the function here.
- *
- * @return void
- */
- bar: function() {}
-}
-
-/**
- * Some info about the class here
- *
- */
-foo.prototype = {
-
- /**
- * Some info about the function here.
- *
- * @return void
- */
- bar: function() {}
-}
-
-/**
- * Some info about the class here
- *
- */
-foo.prototype = {
-
- /**
- * Some info about the function here.
- *
- * @return void
- */
- bar: function() {}
-}
-
-/** @var Database $mockedDatabase */
-/** @var Container $mockedContainer */
-
-function myFunction()
-{
- console.info('hi');
- /**
- Comment here.
- */
-}
-
-/**
- * Creates a map of tokens => line numbers for each token.
- *
- * Long description with some points:
- * - one
- * - two
- * - three
- *
- * @param array &$tokens The array of tokens to process.
- * @param object $tokenizer The tokenizer being used to
- * process this file.
- * @param string $eolChar The EOL character to use for splitting strings.
- *
- * @return void
- */
-function myFunction() {}
-
-$.extend(Datepicker.prototype, {
- _widgetDatepicker: function() {
- },
- /* Action for selecting a new month/year. */
-});
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php
deleted file mode 100644
index 82ccdfcf..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-/**
- * Unit test class for the DocCommentAlignment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DocCommentAlignmentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='DocCommentAlignmentUnitTest.inc')
- {
- $errors = array(
- 3 => 1,
- 11 => 1,
- 17 => 1,
- 18 => 1,
- 19 => 1,
- 23 => 2,
- 24 => 1,
- 25 => 2,
- 26 => 1,
- 32 => 1,
- 33 => 1,
- 38 => 1,
- 39 => 1,
- );
-
- if ($testFile === 'DocCommentAlignmentUnitTest.inc') {
- $errors[75] = 1;
- }
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc
deleted file mode 100644
index cde6e462..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.inc
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-try {
- // Try something.
- $variable = 'string';
-} catch (Exception $e) {
- // Comment.
- echo 'something broke';
-}
-
-try {
- // Try something.
- $variable = 'string';
-} catch (Exception $e) {
-}
-
-try {
- // Try something.
- $variable = 'string';
-} catch (Exception $e) {
- // Dont want to do anything.
-}
-
-try {
- $variable = 'string';
-} catch (MyException $e) {
- echo 'something broke';
-} catch (Exception $e) {
- echo 'something broke';
-}
-
-try {
- $variable = 'string';
-} catch (MyException $e) {
-
-} catch (Exception $e) {
- echo 'something broke';
-}
-
-try {
- $variable = 'string';
-} catch (MyException $e) {
- // Dont do anything.
-} catch (Exception $e) {
- // Do nothing.
-}
-
-try {
- $variable = 'string';
-} catch (MyException $e) {
-} catch (YourException $e) {
-} catch (OurException $e) {
-} catch (Exception $e) {
-}
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php
deleted file mode 100644
index 5448b4f0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the EmptyCatchComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EmptyCatchCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 13 => 1,
- 33 => 1,
- 49 => 1,
- 50 => 1,
- 51 => 1,
- 52 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.inc
deleted file mode 100644
index 520d3497..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-/**
- * File comment.
- *
- * @package Package
- * @subpackage Subpackage
- * @author Squiz Pty Ltd <products@squiz.net>
- * @copyright 2010-2014 Squiz Pty Ltd (ABN 77 084 670 600)
- */
-
-echo 'hi'; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.js
deleted file mode 100644
index 4bb4d50d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * File comment.
- *
- * @package Package
- * @subpackage Subpackage
- * @author Squiz Pty Ltd <products@squiz.net>
- * @copyright 2010-2014 Squiz Pty Ltd (ABN 77 084 670 600)
- */
-
-print 'hi'; \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.inc
deleted file mode 100644
index 1db2861b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.inc
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-
-
-/**
-*
-* 0Multi-line short description without full stop
-*
-*
-* asdasd
-* long description for file (if any)
-* asdasdadada
-*
-* PHP versio
-*
-* LICENSE: This source file is subject to version 3.0 of the PHP license
-* that is available through the world-wide-web at the following URI:
-* http://www.php.net/license/3_0.txt. If you did not receive a copy of
-* the PHP License and are unable to obtain it through the web, please
-* send a note to license@php.net so we can mail you a copy immediately.
-* @package SquizCMS
-* @package ADDITIONAL PACKAGE TAG
-* @subpkg not_camelcased
-* @author Antônio Carlos Venâncio Júnior <foreign@character.net>
-* @author
-* @copyright 1997~1994 The PHP Group
-* @copyright 1994-1997 The PHP Group
-* @copyright The PHP Group
-* @license http://www.php.net/license/3_0.txt
-* @summary An unknown summary tag
-*
-*/
-
-
-?>
-<?php
-/**
-* This bit here is not qualified as file comment
-*
-* as it is not after the first open tag
-*
-*/
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.js
deleted file mode 100644
index 57d8d37a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.js
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-/**
-*
-* 0Multi-line short description without full stop
-*
-*
-* asdasd
-* long description for file (if any)
-* asdasdadada
-*
-* PHP versio
-*
-* LICENSE: This source file is subject to version 3.0 of the PHP license
-* that is available through the world-wide-web at the following URI:
-* http://www.php.net/license/3_0.txt. If you did not receive a copy of
-* the PHP License and are unable to obtain it through the web, please
-* send a note to license@php.net so we can mail you a copy immediately.
-* @package SquizCMS
-* @package ADDITIONAL PACKAGE TAG
-* @subpkg not_camelcased
-* @author Antônio Carlos Venâncio Júnior <foreign@character.net>
-* @author
-* @copyright 1997~1994 The PHP Group
-* @copyright 1994-1997 The PHP Group
-* @copyright The PHP Group
-* @license http://www.php.net/license/3_0.txt
-* @summary An unknown summary tag
-*
-*/
-
-
-/**
-* This bit here is not qualified as file comment
-*
-* as it is not the first comment in the file
-*
-*/
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php
deleted file mode 100644
index e22a360e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/**
- * Unit test class for the FileComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FileCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='FileCommentUnitTest.inc')
- {
- switch ($testFile) {
- case 'FileCommentUnitTest.inc':
- case 'FileCommentUnitTest.js':
- return array(
- 1 => 1,
- 22 => 2,
- 23 => 1,
- 24 => 2,
- 25 => 2,
- 26 => 1,
- 27 => 2,
- 28 => 2,
- 32 => 2,
- );
- default:
- return array();
- }
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.inc
deleted file mode 100644
index 5d280ed1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.inc
+++ /dev/null
@@ -1,324 +0,0 @@
-<?php
-class FunctionCommentThrowTagUnitTest
-{
-
-
- /**
- * Missing throw tag.
- *
- */
- public function missingThrowTag()
- {
- throw new PHP_Exception('Error');
-
- }//end missingThrowTag()
-
-
- /**
- * Tag and token number mismatch.
- *
- * @throws PHP_Exception1
- */
- public function oneMoreThrowsTagNeeded()
- {
- throw new PHP_Exception1('Error');
- throw new PHP_Exception2('Error');
-
- }//end oneMoreThrowsTagNeeded()
-
-
- /**
- * Tag and token number mismatch.
- *
- * @throws PHP_Exception1
- * @throws PHP_Exception2
- */
- public function oneLessThrowsTagNeeded()
- {
- throw new PHP_Exception1('Error');
-
- }//end oneLessThrowsTagNeeded()
-
-
- /**
- * Wrong exception type name.
- *
- * @throws PHP_Wrong_Exception
- */
- public function wrongExceptionName()
- {
- throw new PHP_Correct_Exception('Error');
-
- }//end wrongExceptionName()
-
-
- /**
- * Wrong exception type name.
- *
- * @throws PHP_Correct_Exception1
- * @throws PHP_Wrong_Exception2
- * @throws PHP_Wrong_Exception3
- */
- public function moreWrongExceptionName()
- {
- throw new PHP_Correct_Exception1('Error');
- throw new PHP_Correct_Exception2('Error');
- throw new PHP_Correct_Exception3('Error');
-
- }//end moreWrongExceptionName()
-
-
- /**
- * Wrong exception type name.
- *
- * @throws PHP_Correct_Exception
- */
- public function sameExceptionName()
- {
- throw new PHP_Correct_Exception('Error');
- throw new PHP_Correct_Exception('Error');
-
- }//end sameExceptionName()
-
-
- /**
- * This is a valid chunk.
- *
- * @throws PHP_Exception1
- * @throws PHP_Exception2
- */
- public function thisShouldWorkOK()
- {
- throw new PHP_Exception2('Error');
- throw new PHP_Exception1('Error');
- throw new PHP_Exception2('Error');
- throw new PHP_Exception1('Error');
- throw new PHP_Exception2('Error');
-
- }//end thisShouldWorkOK()
-
-
- /**
- * This is not OK, missing 2 @throws tag.
- *
- * @throws PHP_Exception1
- * @throws PHP_Exception2
- */
- public function notOK()
- {
- throw new PHP_Missing_Exception1('Error');
- throw new PHP_Exception2('Error');
- throw new PHP_Missing_Exception2('Error');
- throw new PHP_Missing_Exception2('Error');
- throw new PHP_Exception1('Error');
- throw new PHP_Exception2('Error');
- throw new PHP_Missing_Exception1('Error');
-
- }//end notOK()
-
-
- /**
- * Needs at least 1 throws tag, even though we
- * don't know what it is.
- */
- public function notOKVariable()
- {
- try {
- // Do something.
- } catch (PHP_Exception2 $e) {
- logError();
- throw $e;
- }
-
- }//end notOKVariable()
-
-
- /**
- * Needs at least 1 throws tag, even though we
- * don't know what it is.
- *
- * @throws PHP_Exception1
- */
- public function okVariable()
- {
- throw new PHP_Exception1('Error');
-
- try {
- // Do something.
- } catch (PHP_Exception1 $e) {
- logError();
- throw $e;
- }
-
- }//end okVariable()
-
-
- /**
- * Needs 1 @throws tag.
- *
- * @throws Exception Unknown exception type.
- */
- function okVariable()
- {
- throw $e;
-
- }//end okVariable()
-
-
- /**
- * Needs 1 @throws tag.
- *
- * @throws Exception Unknown exception type.
- */
- function okFunction()
- {
- throw $this->callSomeFunction();
-
- }//end okFunction()
-
-
- /**
- * Comment inside function.
- *
- * @throws Exception
- */
- function okFunction()
- {
- /**
- * @var FooClass
- */
- $foo = FooFactory::factory();
- throw new Exception;
-
- }//end okFunction
-
- /**
- * Needs at throws tag for rethrown exception,
- * even though we have one throws tag.
- *
- * @throws PHP_Exception1
- */
- public function notOkVariableRethrown()
- {
- throw new PHP_Exception1('Error');
-
- try {
- // Do something.
- } catch (PHP_Exception2 $e) {
- logError();
- throw $e;
- }
-
- }//end notOkVariableRethrown()
-
- /**
- * Has correct throws tags for all exceptions
- *
- * @throws PHP_Exception1
- * @throws PHP_Exception2
- */
- public function okVariableRethrown()
- {
- throw new PHP_Exception1('Error');
-
- try {
- // Do something.
- } catch (PHP_Exception2 $e) {
- logError();
- throw $e;
- }
-
- }//end okVariableRethrown()
-}//end class
-
-class NamespacedException {
- /**
- * @throws \Exception
- */
- public function foo() {
- throw new \Exception();
- }
-
- /**
- * @throws \Foo\Bar\FooBarException
- */
- public function fooBar2() {
- throw new \Foo\Bar\FooBarException();
- }
-
- /**
- * @throws FooBarException
- */
- public function fooBar2() {
- throw new \Foo\Bar\FooBarException();
- }
-}
-
-class Foo {
- /**
- * Comment
- */
- public function foo() {
- }//end foo()
-
- public function bar() {
- throw new Exception();
- }
-
- /**
- * Returns information for a test.
- *
- * This info includes parameters, their valid values.
- *
- * @param integer $projectid Id of the project.
- *
- * @return array
- * @throws ChannelException If the project is invalid.
- */
- public static function getTestInfo($projectid=NULL)
- {
- try {
- DAL::beginTransaction();
- DAL::commit();
- } catch (DALException $e) {
- DAL::rollBack();
- throw new ChannelException($e);
- }
- }
-}
-
-class Test
-{
- /**
- * Folder name.
- *
- * @var string
- */
- protected $folderName;
-
- protected function setUp()
- {
- parent::setUp();
-
- if ( !strlen($this->folderName) ) {
- throw new \RuntimeException('The $this->folderName must be specified before proceeding.');
- }
- }
-
- /*
- *
- */
- protected function foo()
- {
- }
-
- /**
- * @return Closure
- */
- public function getStuff()
- {
- return function () {
- throw new RuntimeException("bam!");
- };
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php
deleted file mode 100644
index a4463445..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionCommentThrowTag sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionCommentThrowTagUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 9 => 1,
- 21 => 1,
- 35 => 1,
- 47 => 1,
- 61 => 2,
- 106 => 1,
- 123 => 1,
- 200 => 1,
- 251 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc
deleted file mode 100644
index da4fbafb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc
+++ /dev/null
@@ -1,900 +0,0 @@
-<?php
-class PHP_CodeSniffer_File
-{
-
- /**
- * a simple function comment.
- *
- * long desc here
- *
- * @param bool $stackPtr The position in @ @unknown the stack of the token
- * that opened the scope
- * @param int $detph How many scope levels down we are.
- * @param string $index The index
- * @return
- * @throws
- */
- private function _functionCall($stackPtr, $depth=1, $index)
- {
- return $stackPtr;
-
- }//end _functionCall()
-
- //
- // Sample function comment
- //
- //
- //
- public function invalidCommentStyle()
- {
-
- }//end invalidCommentStyle()
-
-
- /**
- *
- * A simple function comment
- * Span multiple line
- *
- *
- * 0Long description with extra blank line before and after
- *
- *
- * @return void
- */
- public function extraDescriptionNewlines()
- {
- return true;
- }//end extraDescriptionNewlines()
-
-
- /**
- * -A simple function comment.
- * @return void
- */
- public function missingNewlinesBeforeTags()
- {
- return;
- }//end missingNewlinesBeforeTags()
-
-
- /**
- * Access tag should not be treated as a long description.
- *
- * @access public
- * @return void
- */
- public function accessTag()
- {
-
- }//end accessTag()
-
- /**
- * Constructor.
- *
- * No return tag
- */
- function PHP_CodeSniffer_File()
- {
- return;
- }
-
-
- /**
- * Destructor.
- *
- * No return tag too
- */
- function _PHP_CodeSniffer_File()
- {
- return;
- }
-
-
- /**
- * Destructor PHP5.
- */
- function __destruct()
- {
- return;
- }
-
-
- function missingComment()
- {
- return;
- }
-
-
- /**
- * no return tag.
- *
- */
- public function noReturn($one)
- {
-
- }//end noReturn()
-
-
- /**
- * Param not immediate.
- *
- * @return
- * @param int $threeSpaces
- * @param integer $superfluous
- * @param miss
- * @param
- */
- public function missingDescription($threeSpaces)
- {
-
- }//end missingDescription()
-
-
- /**
- * Comments not capitalised.
- *
- * @param integer $one comment
- * @param array $two -comment
- * @param MyClas $three 0comment
- *
- * @return void
- */
- public function oneSpaceAfterLongestVar($one, $two, MyClass $three)
- {
-
- }//end oneSpaceAfterLongestVar()
-
-
-}//end class
-
-
-/**
- * A simple function comment.
- *
- * @param string &$str The string passed in by reference
- * @param string $foo The string passed in by reference.
- *
- * @return void
- * @return
- */
-public function functionOutsideClass(&$str, &$foo)
-{
- return;
-}//end functionOutsideClass()
-
-function missingCommentOutsideClass()
-{
- return;
-}//end missingCommentOutsideClass()
-
-
-?><?php
-function tagBeforeComment()
-{
- return;
-}//end tagBeforeComment()
-
-
-/**
- * no return tag.
- *
- * @see FunctionCommentSniff.php
- */
-public function noReturnOutsideClass()
-{
-
-}//end noReturnOutsideClass()
-
-
-/**
- * Missing param comment.
- *
- * @param integer $one comment
- *
- * @see wrong indent
- * @see
- * @return void
- * @extra Invalid tag
- * @throws UnknownException unknown
- */
-public function missingTwoParamComment($one, $two, $three)
-{
-
-}//end missingTwoParamComment()
-
-
-/**
- * Missing return type.
- *
- * @throws ExceptionWithNoComment
- * @return
- */
-public function missingReturnType()
-{
-
-}//end missingReturnType()
-
-
-/**
- * Case-sensitive var type check with multiple return type.
- *
- * @param String $a1 Comment here.
- * @param BoOL $a2 Comment here.
- * @param INT $a3 Comment here.
- * @param aRRay $a4 Comment here.
- * @param real $a5 Comment here.
- * @param double $a6 Comment here.
- * @param Myclass $a7 Comment here.
- *
- * @return int|object|double|float|array(int=>MyClass)
- */
-public function caseSensitive($a1, $a2, $a3, arRay $a4, $a5, $a6, myclas $a7)
-{
-
-}//end caseSensitive()
-
-
-/**
- * More type hint check for custom type and array.
- *
- * @param array $a1 Comment here.
- * @param array $a2 Comment here.
- * @param MyClass $a3 Comment here.
- * @param MyClass $a4 Comment here.
- *
- * @return array(int => MyClass)
- */
-public function typeHint(MyClass $a1, $a2, myclass $a3, $a4)
-{
- return (3 => 'myclass obj');
-
-}//end typeHint()
-
-
-/**
- * Mixed variable type separated by a '|'.
- *
- * @param array|string $a1 Comment here.
- * @param mixed $a2 Comment here.
- * @param string|array $a3 Comment here.
- * @param MyClass|int $a4 Comment here.
- *
- * @return bool
- */
-public function mixedType($a1, $a2, $a3, $a4)
-{
- return true;
-
-}//end mixedType()
-
-
-/**
- * Array type.
- *
- * @param array(MyClass) $a1 OK.
- * @param array() $a2 Invalid type.
- * @param array( $a3 Typo.
- * @param array(int) $a4 Use 'array(integer)' instead.
- * @param array(int => integer) $a5 Use 'array(integer => integer)' instead.
- * @param array(integer => bool) $a6 Use 'array(integer => boolean)' instead.
- * @param aRRay $a7 Use 'array' instead.
- * @param string $a8 String with unknown type hint.
- *
- * @return int
- */
-public function mixedArrayType($a1, $a2, array $a3, $a4, $a5, $a6, $a7, unknownTypeHint $a8)
-{
- return 1;
-
-}//end mixedArrayType()
-
-
-/**
- */
-function empty1()
-{
-}//end empty1()
-
-
-/**
- *
- */
-function empty2()
-{
-}//end empty2()
-
-
-/**
- *
- *
- *
- */
-function empty3()
-{
-}//end empty3
-
-
-/**
- * @return boolean
- */
-public function missingShortDescriptionInFunctionComment()
-{
- return true;
-
-}//end missingShortDescriptionInFunctionComment()
-
-
-class Another_Class
-{
-
- /**
- * Destructor should not include a return tag.
- *
- * @return void
- */
- function __destruct()
- {
- return;
- }
-
- /**
- * Constructor should not include a return tag.
- *
- * @return void
- */
- function __construct()
- {
- return;
- }
-
-}//end class
-
-
-/**
- * Comment param alignment test.
- *
- * @param string $varrr1 Comment1..
- * @param string $vr2 Comment2.
- * @param string $var3 Comment3..
- *
- * @return void
- */
-public static function paramAlign($varrr1, $vr2, $var3)
-{
-
-}//end paramAlign()
-
-
-/**
- * Comment.
- *
- * @param string $id Comment.
- * @param array $design Comment.
- *
- * @return void
- */
-public static function paint($id, array $design)
-{
-
-}//end paint()
-
-
-/**
- * Adds specified class name to class attribute of this widget.
- *
- * @since 4.0.0
- * @return string
- */
-public function myFunction()
-{
- if ($condition === FALSE) {
- echo 'hi';
- }
-
-}//end myFunction()
-
-
-/**
- * Adds specified class name to class attribute of this widget.
- *
- * @return string
- */
-public function myFunction()
-{
- if ($condition === FALSE) {
- echo 'hi';
- return;
- }
-
- return 'blah';
-
-}//end myFunction()
-
-
-/**
- * Adds specified class name to class attribute of this widget.
- *
- * @return string
- */
-public function myFunction()
-{
- if ($condition === FALSE) {
- echo 'hi';
- }
-
- return 'blah';
-
-}//end myFunction()
-
-/**
- * Test function.
- *
- * @param string $arg1 An argument
- *
- * @access public
- * @return bool
- */
-
-echo $blah;
-
-function myFunction($arg1) {}
-
-class MyClass() {
- /**
- * An abstract function.
- *
- * @return string[]
- */
- abstract final protected function myFunction();
-}
-
-/**
- * Comment.
- *
- * @param mixed $test An argument.
- *
- * @return mixed
- */
-function test($test)
-{
- if ($test === TRUE) {
- return;
- }
-
- return $test;
-
-}//end test()
-
-
-/** Comment.
- *
- * @return mixed
- *
- */
-function test()
-{
-
-}//end test()
-
-/**
- * Comment.
- *
- * @param \other\ns\item $test An argument.
- *
- * @return mixed
- */
-function test(\other\ns\item $test)
-{
- return $test;
-
-}//end test()
-
-/**
- * Comment.
- *
- * @param item $test An argument.
- *
- * @return mixed
- */
-function test(\other\ns\item $test)
-{
- return $test;
-
-}//end test()
-
-/**
- * Comment.
- *
- * @param \first\ns\item $test An argument.
- *
- * @return mixed
- */
-function test(\first\ns\item $test = \second\ns::CONSTANT)
-{
- return $test;
-
-}//end test()
-
-/**
- * Comment.
- *
- * @param \first\item $test An argument.
- *
- * @return mixed
- */
-function test(\first\ns\item $test = \second\ns::CONSTANT)
-{
- return $test;
-
-}//end test()
-
-// Closures should be ignored.
-preg_replace_callback(
- '~-([a-z])~',
- function ($match) {
- return strtoupper($match[1]);
- },
- 'hello-world'
-);
-
-$callback = function ($bar) use ($foo)
- {
- $bar += $foo;
- };
-
-/**
- * Comment should end with '*', not '**' before the slash.
- **/
-function test123() {
-
-}
-
-/**
- * Cant use resource for type hint.
- *
- * @param resource $test An argument.
- *
- * @return mixed
- */
-function test($test)
-{
- return $test;
-
-}//end test()
-
-/**
- * Variable number of args.
- *
- * @param string $a1 Comment here.
- * @param string $a2 Comment here.
- * @param string $a2,... Comment here.
- *
- * @return boolean
- */
-public function variableArgs($a1, $a2)
-{
- return true;
-
-}//end variableArgs()
-
-/**
- * Contains closure.
- *
- * @return void
- */
-public function containsClosure()
-{
- function ($e) {
- return new Event($e);
- },
-
-}//end containsClosure()
-
-/**
- * 这是一条测试评论.
- *
- * @return void
- */
-public function test()
-{
-
-}//end variableArgs()
-
-/**
- * Uses callable.
- *
- * @param callable $cb Test parameter.
- *
- * @return void
- */
-public function usesCallable(callable $cb) {
- $cb();
-}//end usesCallable()
-
-/**
- * Creates a map of tokens => line numbers for each token.
- *
- * @param array $tokens The array of tokens to process.
- * @param object $tokenizer The tokenizer being used to process this file.
- * @param string $eolChar The EOL character
- * to use for splitting strings.
- *
- * @return void
- * @throws Exception If something really bad
- * happens while doing foo.
- */
-public function foo(array &$tokens, $tokenizer, $eolChar)
-{
-
-}//end foo()
-
-/**
- * Some description.
- *
- * @param \Vendor\Package\SomeClass $someclass Some class.
- * @param \OtherVendor\Package\SomeClass2 $someclass2 Some class.
- * @param \OtherVendor\Package\SomeClass2 $someclass3 Some class.
- *
- * @return void
- */
-public function foo(SomeClass $someclass, \OtherVendor\Package\SomeClass2 $someclass2, SomeClass3 $someclass3)
-{
-}
-
-/**
- * Gettext.
- *
- * @return string
- */
-public function _() {
- return $foo;
-}
-
-class Baz {
- /**
- * The PHP5 constructor
- *
- * No return tag
- */
- public function __construct() {
-
- }
-}
-
-/**
- * Test
- *
- * @return void
- * @throws E
- */
-function myFunction() {}
-
-/**
- * Yield test
- *
- * @return integer
- */
-function yieldTest()
-{
- for ($i = 0; $i < 5; $i++) {
- yield $i;
- }
-}
-
-/**
- * Yield test
- *
- * @return void
- */
-function yieldTest()
-{
- for ($i = 0; $i < 5; $i++) {
- yield $i;
- }
-}
-
-/**
- * Using "array" as a type hint should satisfy a specified array parameter type.
- *
- * @param MyClass[] $values An array of MyClass objects.
- *
- * @return void
- */
-public function specifiedArray(array $values) {
-
-}// end specifiedArray()
-
-/**
- * Using "callable" as a type hint should satisfy a "callback" parameter type.
- *
- * @param callback $cb A callback.
- *
- * @return void
- */
-public function callableCallback(callable $cb) {
-
-}// end callableCallback()
-
-/**
- * PHP7 type hints.
- *
- * @param string $name1 Comment.
- * @param integer $name2 Comment.
- * @param float $name3 Comment.
- * @param boolean $name4 Comment.
- *
- * @return void
- */
-public function myFunction (string $name1, int $name2, float $name3, bool $name4) {
-}
-
-/**
- * Variadic function.
- *
- * @param string $name1 Comment.
- * @param string ...$name2 Comment.
- *
- * @return void
- */
-public function myFunction(string $name1, string ...$name2) {
-}
-
-
-/**
- * Variadic function.
- *
- * @param string $name1 Comment.
- * @param string $name2 Comment.
- *
- * @return void
- */
-public function myFunction(string $name1, string ...$name2) {
-}
-
-/**
- * Return description function + correct type.
- *
- * @return integer This is a description.
- */
-public function myFunction() {
- return 5;
-}
-
-/**
- * Return description function + incorrect type.
- *
- * @return int This is a description.
- */
-public function myFunction() {
- return 5;
-}
-
-/**
- * Return description function + no return.
- *
- * @return void This is a description.
- */
-public function myFunction() {
-}
-
-/**
- * Return description function + mixed return.
- *
- * @return mixed This is a description.
- */
-public function myFunction() {
-}
-
-/**
- * Function comment.
- *
- * @param $bar
- * Comment here.
- * @param ...
- * Additional arguments here.
- *
- * @return
- * Return value
- *
- */
-function foo($bar) {
-}
-
-/**
- * Do something.
- *
- * @return void
- */
-public function someFunc(): void
-{
- $class = new class
- {
- /**
- * Do something.
- *
- * @return string
- */
- public function getString(): string
- {
- return 'some string';
- }
- };
-}
-
-/**
- * Return description function + mixed return types.
- *
- * @return bool|int This is a description.
- */
-function returnTypeWithDescriptionA()
-{
- return 5;
-
-}//end returnTypeWithDescriptionA()
-
-
-/**
- * Return description function + mixed return types.
- *
- * @return real|bool This is a description.
- */
-function returnTypeWithDescriptionB()
-{
- return 5;
-
-}//end returnTypeWithDescriptionB()
-
-
-/**
- * Return description function + lots of different mixed return types.
- *
- * @return int|object|string[]|real|double|float|bool|array(int=>MyClass)|callable And here we have a description
- */
-function returnTypeWithDescriptionC()
-{
- return 5;
-
-}//end returnTypeWithDescriptionC()
-
-
-/**
- * Return description function + lots of different mixed return types.
- *
- * @return array(int=>bool)|\OtherVendor\Package\SomeClass2|MyClass[]|void And here we have a description
- */
-function returnTypeWithDescriptionD()
-{
-
-}//end returnTypeWithDescriptionD()
-
-/**
- * Yield from test
- *
- * @return int[]
- */
-function yieldFromTest()
-{
- yield from foo();
-}
-
-/**
- * Audio
- *
- * Generates an audio element to embed sounds
- *
- * @param mixed $src Either a source string or
- * an array of sources.
- * @param mixed $unsupportedMessage The message to display
- * if the media tag is not supported by the browser.
- * @param mixed $attributes HTML attributes.
- * @return string
- */
-function audio(
- $src,
- $unsupportedMessage = '',
- $attributes = '',
-)
-{
- return 'test';
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc.fixed
deleted file mode 100644
index 1492611b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc.fixed
+++ /dev/null
@@ -1,900 +0,0 @@
-<?php
-class PHP_CodeSniffer_File
-{
-
- /**
- * a simple function comment.
- *
- * long desc here
- *
- * @param boolean $stackPtr The position in @ @unknown the stack of the token
- * that opened the scope
- * @param integer $detph How many scope levels down we are.
- * @param string $index The index
- * @return
- * @throws
- */
- private function _functionCall($stackPtr, $depth=1, $index)
- {
- return $stackPtr;
-
- }//end _functionCall()
-
- //
- // Sample function comment
- //
- //
- //
- public function invalidCommentStyle()
- {
-
- }//end invalidCommentStyle()
-
-
- /**
- *
- * A simple function comment
- * Span multiple line
- *
- *
- * 0Long description with extra blank line before and after
- *
- *
- * @return void
- */
- public function extraDescriptionNewlines()
- {
- return true;
- }//end extraDescriptionNewlines()
-
-
- /**
- * -A simple function comment.
- * @return void
- */
- public function missingNewlinesBeforeTags()
- {
- return;
- }//end missingNewlinesBeforeTags()
-
-
- /**
- * Access tag should not be treated as a long description.
- *
- * @access public
- * @return void
- */
- public function accessTag()
- {
-
- }//end accessTag()
-
- /**
- * Constructor.
- *
- * No return tag
- */
- function PHP_CodeSniffer_File()
- {
- return;
- }
-
-
- /**
- * Destructor.
- *
- * No return tag too
- */
- function _PHP_CodeSniffer_File()
- {
- return;
- }
-
-
- /**
- * Destructor PHP5.
- */
- function __destruct()
- {
- return;
- }
-
-
- function missingComment()
- {
- return;
- }
-
-
- /**
- * no return tag.
- *
- */
- public function noReturn($one)
- {
-
- }//end noReturn()
-
-
- /**
- * Param not immediate.
- *
- * @return
- * @param integer $threeSpaces
- * @param integer $superfluous
- * @param miss
- * @param
- */
- public function missingDescription($threeSpaces)
- {
-
- }//end missingDescription()
-
-
- /**
- * Comments not capitalised.
- *
- * @param integer $one comment
- * @param array $two -comment
- * @param MyClas $three 0comment
- *
- * @return void
- */
- public function oneSpaceAfterLongestVar($one, $two, MyClass $three)
- {
-
- }//end oneSpaceAfterLongestVar()
-
-
-}//end class
-
-
-/**
- * A simple function comment.
- *
- * @param string &$str The string passed in by reference
- * @param string $foo The string passed in by reference.
- *
- * @return void
- * @return
- */
-public function functionOutsideClass(&$str, &$foo)
-{
- return;
-}//end functionOutsideClass()
-
-function missingCommentOutsideClass()
-{
- return;
-}//end missingCommentOutsideClass()
-
-
-?><?php
-function tagBeforeComment()
-{
- return;
-}//end tagBeforeComment()
-
-
-/**
- * no return tag.
- *
- * @see FunctionCommentSniff.php
- */
-public function noReturnOutsideClass()
-{
-
-}//end noReturnOutsideClass()
-
-
-/**
- * Missing param comment.
- *
- * @param integer $one comment
- *
- * @see wrong indent
- * @see
- * @return void
- * @extra Invalid tag
- * @throws UnknownException unknown
- */
-public function missingTwoParamComment($one, $two, $three)
-{
-
-}//end missingTwoParamComment()
-
-
-/**
- * Missing return type.
- *
- * @throws ExceptionWithNoComment
- * @return
- */
-public function missingReturnType()
-{
-
-}//end missingReturnType()
-
-
-/**
- * Case-sensitive var type check with multiple return type.
- *
- * @param string $a1 Comment here.
- * @param boolean $a2 Comment here.
- * @param integer $a3 Comment here.
- * @param array $a4 Comment here.
- * @param float $a5 Comment here.
- * @param float $a6 Comment here.
- * @param Myclass $a7 Comment here.
- *
- * @return integer|object|float|array(integer => MyClass)
- */
-public function caseSensitive($a1, $a2, $a3, arRay $a4, $a5, $a6, myclas $a7)
-{
-
-}//end caseSensitive()
-
-
-/**
- * More type hint check for custom type and array.
- *
- * @param array $a1 Comment here.
- * @param array $a2 Comment here.
- * @param MyClass $a3 Comment here.
- * @param MyClass $a4 Comment here.
- *
- * @return array(integer => MyClass)
- */
-public function typeHint(MyClass $a1, $a2, myclass $a3, $a4)
-{
- return (3 => 'myclass obj');
-
-}//end typeHint()
-
-
-/**
- * Mixed variable type separated by a '|'.
- *
- * @param array|string $a1 Comment here.
- * @param mixed $a2 Comment here.
- * @param string|array $a3 Comment here.
- * @param MyClass|integer $a4 Comment here.
- *
- * @return boolean
- */
-public function mixedType($a1, $a2, $a3, $a4)
-{
- return true;
-
-}//end mixedType()
-
-
-/**
- * Array type.
- *
- * @param array(MyClass) $a1 OK.
- * @param array $a2 Invalid type.
- * @param array $a3 Typo.
- * @param array(integer) $a4 Use 'array(integer)' instead.
- * @param array(integer => integer) $a5 Use 'array(integer => integer)' instead.
- * @param array(integer => boolean) $a6 Use 'array(integer => boolean)' instead.
- * @param array $a7 Use 'array' instead.
- * @param string $a8 String with unknown type hint.
- *
- * @return integer
- */
-public function mixedArrayType($a1, $a2, array $a3, $a4, $a5, $a6, $a7, unknownTypeHint $a8)
-{
- return 1;
-
-}//end mixedArrayType()
-
-
-/**
- */
-function empty1()
-{
-}//end empty1()
-
-
-/**
- *
- */
-function empty2()
-{
-}//end empty2()
-
-
-/**
- *
- *
- *
- */
-function empty3()
-{
-}//end empty3
-
-
-/**
- * @return boolean
- */
-public function missingShortDescriptionInFunctionComment()
-{
- return true;
-
-}//end missingShortDescriptionInFunctionComment()
-
-
-class Another_Class
-{
-
- /**
- * Destructor should not include a return tag.
- *
- * @return void
- */
- function __destruct()
- {
- return;
- }
-
- /**
- * Constructor should not include a return tag.
- *
- * @return void
- */
- function __construct()
- {
- return;
- }
-
-}//end class
-
-
-/**
- * Comment param alignment test.
- *
- * @param string $varrr1 Comment1..
- * @param string $vr2 Comment2.
- * @param string $var3 Comment3..
- *
- * @return void
- */
-public static function paramAlign($varrr1, $vr2, $var3)
-{
-
-}//end paramAlign()
-
-
-/**
- * Comment.
- *
- * @param string $id Comment.
- * @param array $design Comment.
- *
- * @return void
- */
-public static function paint($id, array $design)
-{
-
-}//end paint()
-
-
-/**
- * Adds specified class name to class attribute of this widget.
- *
- * @since 4.0.0
- * @return string
- */
-public function myFunction()
-{
- if ($condition === FALSE) {
- echo 'hi';
- }
-
-}//end myFunction()
-
-
-/**
- * Adds specified class name to class attribute of this widget.
- *
- * @return string
- */
-public function myFunction()
-{
- if ($condition === FALSE) {
- echo 'hi';
- return;
- }
-
- return 'blah';
-
-}//end myFunction()
-
-
-/**
- * Adds specified class name to class attribute of this widget.
- *
- * @return string
- */
-public function myFunction()
-{
- if ($condition === FALSE) {
- echo 'hi';
- }
-
- return 'blah';
-
-}//end myFunction()
-
-/**
- * Test function.
- *
- * @param string $arg1 An argument
- *
- * @access public
- * @return bool
- */
-
-echo $blah;
-
-function myFunction($arg1) {}
-
-class MyClass() {
- /**
- * An abstract function.
- *
- * @return string[]
- */
- abstract final protected function myFunction();
-}
-
-/**
- * Comment.
- *
- * @param mixed $test An argument.
- *
- * @return mixed
- */
-function test($test)
-{
- if ($test === TRUE) {
- return;
- }
-
- return $test;
-
-}//end test()
-
-
-/** Comment.
- *
- * @return mixed
- *
- */
-function test()
-{
-
-}//end test()
-
-/**
- * Comment.
- *
- * @param \other\ns\item $test An argument.
- *
- * @return mixed
- */
-function test(\other\ns\item $test)
-{
- return $test;
-
-}//end test()
-
-/**
- * Comment.
- *
- * @param item $test An argument.
- *
- * @return mixed
- */
-function test(\other\ns\item $test)
-{
- return $test;
-
-}//end test()
-
-/**
- * Comment.
- *
- * @param \first\ns\item $test An argument.
- *
- * @return mixed
- */
-function test(\first\ns\item $test = \second\ns::CONSTANT)
-{
- return $test;
-
-}//end test()
-
-/**
- * Comment.
- *
- * @param \first\item $test An argument.
- *
- * @return mixed
- */
-function test(\first\ns\item $test = \second\ns::CONSTANT)
-{
- return $test;
-
-}//end test()
-
-// Closures should be ignored.
-preg_replace_callback(
- '~-([a-z])~',
- function ($match) {
- return strtoupper($match[1]);
- },
- 'hello-world'
-);
-
-$callback = function ($bar) use ($foo)
- {
- $bar += $foo;
- };
-
-/**
- * Comment should end with '*', not '**' before the slash.
- **/
-function test123() {
-
-}
-
-/**
- * Cant use resource for type hint.
- *
- * @param resource $test An argument.
- *
- * @return mixed
- */
-function test($test)
-{
- return $test;
-
-}//end test()
-
-/**
- * Variable number of args.
- *
- * @param string $a1 Comment here.
- * @param string $a2 Comment here.
- * @param string $a2,... Comment here.
- *
- * @return boolean
- */
-public function variableArgs($a1, $a2)
-{
- return true;
-
-}//end variableArgs()
-
-/**
- * Contains closure.
- *
- * @return void
- */
-public function containsClosure()
-{
- function ($e) {
- return new Event($e);
- },
-
-}//end containsClosure()
-
-/**
- * 这是一条测试评论.
- *
- * @return void
- */
-public function test()
-{
-
-}//end variableArgs()
-
-/**
- * Uses callable.
- *
- * @param callable $cb Test parameter.
- *
- * @return void
- */
-public function usesCallable(callable $cb) {
- $cb();
-}//end usesCallable()
-
-/**
- * Creates a map of tokens => line numbers for each token.
- *
- * @param array $tokens The array of tokens to process.
- * @param object $tokenizer The tokenizer being used to process this file.
- * @param string $eolChar The EOL character
- * to use for splitting strings.
- *
- * @return void
- * @throws Exception If something really bad
- * happens while doing foo.
- */
-public function foo(array &$tokens, $tokenizer, $eolChar)
-{
-
-}//end foo()
-
-/**
- * Some description.
- *
- * @param \Vendor\Package\SomeClass $someclass Some class.
- * @param \OtherVendor\Package\SomeClass2 $someclass2 Some class.
- * @param \OtherVendor\Package\SomeClass2 $someclass3 Some class.
- *
- * @return void
- */
-public function foo(SomeClass $someclass, \OtherVendor\Package\SomeClass2 $someclass2, SomeClass3 $someclass3)
-{
-}
-
-/**
- * Gettext.
- *
- * @return string
- */
-public function _() {
- return $foo;
-}
-
-class Baz {
- /**
- * The PHP5 constructor
- *
- * No return tag
- */
- public function __construct() {
-
- }
-}
-
-/**
- * Test
- *
- * @return void
- * @throws E
- */
-function myFunction() {}
-
-/**
- * Yield test
- *
- * @return integer
- */
-function yieldTest()
-{
- for ($i = 0; $i < 5; $i++) {
- yield $i;
- }
-}
-
-/**
- * Yield test
- *
- * @return void
- */
-function yieldTest()
-{
- for ($i = 0; $i < 5; $i++) {
- yield $i;
- }
-}
-
-/**
- * Using "array" as a type hint should satisfy a specified array parameter type.
- *
- * @param MyClass[] $values An array of MyClass objects.
- *
- * @return void
- */
-public function specifiedArray(array $values) {
-
-}// end specifiedArray()
-
-/**
- * Using "callable" as a type hint should satisfy a "callback" parameter type.
- *
- * @param callback $cb A callback.
- *
- * @return void
- */
-public function callableCallback(callable $cb) {
-
-}// end callableCallback()
-
-/**
- * PHP7 type hints.
- *
- * @param string $name1 Comment.
- * @param integer $name2 Comment.
- * @param float $name3 Comment.
- * @param boolean $name4 Comment.
- *
- * @return void
- */
-public function myFunction (string $name1, int $name2, float $name3, bool $name4) {
-}
-
-/**
- * Variadic function.
- *
- * @param string $name1 Comment.
- * @param string ...$name2 Comment.
- *
- * @return void
- */
-public function myFunction(string $name1, string ...$name2) {
-}
-
-
-/**
- * Variadic function.
- *
- * @param string $name1 Comment.
- * @param string $name2 Comment.
- *
- * @return void
- */
-public function myFunction(string $name1, string ...$name2) {
-}
-
-/**
- * Return description function + correct type.
- *
- * @return integer This is a description.
- */
-public function myFunction() {
- return 5;
-}
-
-/**
- * Return description function + incorrect type.
- *
- * @return integer This is a description.
- */
-public function myFunction() {
- return 5;
-}
-
-/**
- * Return description function + no return.
- *
- * @return void This is a description.
- */
-public function myFunction() {
-}
-
-/**
- * Return description function + mixed return.
- *
- * @return mixed This is a description.
- */
-public function myFunction() {
-}
-
-/**
- * Function comment.
- *
- * @param $bar
- * Comment here.
- * @param ...
- * Additional arguments here.
- *
- * @return
- * Return value
- *
- */
-function foo($bar) {
-}
-
-/**
- * Do something.
- *
- * @return void
- */
-public function someFunc(): void
-{
- $class = new class
- {
- /**
- * Do something.
- *
- * @return string
- */
- public function getString(): string
- {
- return 'some string';
- }
- };
-}
-
-/**
- * Return description function + mixed return types.
- *
- * @return boolean|integer This is a description.
- */
-function returnTypeWithDescriptionA()
-{
- return 5;
-
-}//end returnTypeWithDescriptionA()
-
-
-/**
- * Return description function + mixed return types.
- *
- * @return float|boolean This is a description.
- */
-function returnTypeWithDescriptionB()
-{
- return 5;
-
-}//end returnTypeWithDescriptionB()
-
-
-/**
- * Return description function + lots of different mixed return types.
- *
- * @return integer|object|string[]|float|boolean|array(integer => MyClass)|callable And here we have a description
- */
-function returnTypeWithDescriptionC()
-{
- return 5;
-
-}//end returnTypeWithDescriptionC()
-
-
-/**
- * Return description function + lots of different mixed return types.
- *
- * @return array(integer => boolean)|\OtherVendor\Package\SomeClass2|MyClass[]|void And here we have a description
- */
-function returnTypeWithDescriptionD()
-{
-
-}//end returnTypeWithDescriptionD()
-
-/**
- * Yield from test
- *
- * @return int[]
- */
-function yieldFromTest()
-{
- yield from foo();
-}
-
-/**
- * Audio
- *
- * Generates an audio element to embed sounds
- *
- * @param mixed $src Either a source string or
- * an array of sources.
- * @param mixed $unsupportedMessage The message to display
- * if the media tag is not supported by the browser.
- * @param mixed $attributes HTML attributes.
- * @return string
- */
-function audio(
- $src,
- $unsupportedMessage = '',
- $attributes = '',
-)
-{
- return 'test';
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php
deleted file mode 100644
index db0aa0e1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php
+++ /dev/null
@@ -1,162 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- $errors = array(
- 5 => 1,
- 10 => 3,
- 12 => 2,
- 13 => 2,
- 14 => 1,
- 15 => 1,
- 28 => 1,
- 43 => 1,
- 76 => 1,
- 87 => 1,
- 103 => 1,
- 109 => 1,
- 112 => 1,
- 122 => 1,
- 123 => 3,
- 124 => 2,
- 125 => 1,
- 126 => 1,
- 137 => 4,
- 138 => 4,
- 139 => 4,
- 143 => 2,
- 152 => 1,
- 155 => 2,
- 159 => 1,
- 166 => 1,
- 173 => 1,
- 183 => 1,
- 190 => 2,
- 193 => 2,
- 196 => 1,
- 199 => 2,
- 210 => 1,
- 211 => 1,
- 222 => 1,
- 223 => 1,
- 224 => 1,
- 225 => 1,
- 226 => 1,
- 227 => 1,
- 230 => 2,
- 232 => 2,
- 246 => 1,
- 248 => 4,
- 261 => 1,
- 263 => 1,
- 276 => 1,
- 277 => 1,
- 278 => 1,
- 279 => 1,
- 280 => 1,
- 281 => 1,
- 284 => 1,
- 286 => 7,
- 294 => 1,
- 302 => 1,
- 312 => 1,
- 358 => 1,
- 359 => 2,
- 372 => 1,
- 373 => 1,
- 387 => 1,
- 407 => 1,
- 441 => 1,
- 500 => 1,
- 526 => 1,
- 548 => 1,
- 641 => 1,
- 669 => 1,
- 744 => 1,
- 748 => 1,
- 767 => 1,
- 789 => 1,
- 792 => 1,
- 794 => 1,
- 797 => 1,
- 801 => 1,
- 828 => 1,
- 840 => 1,
- 852 => 1,
- 864 => 1,
- 886 => 1,
- 888 => 1,
- 890 => 1,
- );
-
- // The yield tests will only work in PHP versions where yield exists and
- // will throw errors in earlier versions.
- if (PHP_VERSION_ID < 50500) {
- $errors[676] = 1;
- $errors[874] = 1;
- } else {
- $errors[688] = 1;
- }
-
- // Scalar type hints only work from PHP 7 onwards.
- if (PHP_VERSION_ID >= 70000) {
- $errors[17] = 3;
- $errors[128] = 1;
- $errors[143] = 3;
- $errors[161] = 2;
- $errors[201] = 1;
- $errors[232] = 7;
- $errors[363] = 3;
- $errors[377] = 1;
- $errors[575] = 2;
- $errors[627] = 1;
- } else {
- $errors[729] = 4;
- $errors[740] = 2;
- $errors[752] = 2;
- }
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc
deleted file mode 100644
index 33316a88..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc
+++ /dev/null
@@ -1,124 +0,0 @@
-<?php
-// Some code goes here.
-$code = 'hello';
-
-// This comment contains # multiple
-// hash signs (#).
-$code = 'hello';
-
-/*
- * Here is a small function comment.
- */
-function test()
-{
- // Some code goes here.
- $code = 'hello';
-
- # This comment is banned.
- $code = 'hello';
-
-}//end test()
-
-/*
- A longer comment goes here.
- It spans multiple lines.
-*/
-
-# This is a long comment
-# that is banned.
-
-
-
-// some code goes here!
-
-// This comment contains # multiple
-// hash signs (#) but no
-// full stop
-$code = 'hello';
-
-/*
- * Here is a small function comment
- */
-function test()
-{
- // Some code goes here
-
-}//end test()
-
-/*
- A longer comment goes here.
- It spans multiple lines!!
- Or does it?
-*/
-
-// 0This is a simple multi-line
-// comment!
-$code = 'hello';
-
-//This is not valid.
-$code = 'hello';
-
-// Neither is this!
-$code = 'hello';
-
-//
-$code = 'hello';
-
-/** Neither is this! **/
-$code = 'hello';
-
-class MyClass
-{
- /**
- * Represents a left orientation for the widget.
- *
- * @var integer
- * @since 4.0.0
- */
- const LEFT = 1;
-}
-
-/**
- * Comment should be ignored.
- *
- */
-final class MyClass
-{
- /**
- * Comment should be ignored.
- *
- */
- final public function test() {}
-}
-
-// 这是一条测试评论
-// -> One
-// -> One.One
-// -> Two
-
-/*
- Here is some inline example code:
- -> One
- -> One.One
- -> Two
-*/
-
-/**
- * Comment should be ignored in PHP 5.4.
- *
- */
-trait MyTrait {
-
-}
-
-$foo = 'foo'; // Var set to foo.
-
-echo $foo;
-
-// Comment here.
-echo $foo;
-
-/**
- * Comments about the include
- */
-include_once($blah);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc.fixed
deleted file mode 100644
index b23d3f62..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.inc.fixed
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-// Some code goes here.
-$code = 'hello';
-
-// This comment contains # multiple
-// hash signs (#).
-$code = 'hello';
-
-/*
- * Here is a small function comment.
- */
-function test()
-{
- // Some code goes here.
- $code = 'hello';
-
- // This comment is banned.
- $code = 'hello';
-
-}//end test()
-
-/*
- A longer comment goes here.
- It spans multiple lines.
-*/
-
-// This is a long comment
-// that is banned.
-// some code goes here!
-// This comment contains # multiple
-// hash signs (#) but no
-// full stop
-$code = 'hello';
-
-/*
- * Here is a small function comment
- */
-function test()
-{
- // Some code goes here
-}//end test()
-
-/*
- A longer comment goes here.
- It spans multiple lines!!
- Or does it?
-*/
-
-// 0This is a simple multi-line
-// comment!
-$code = 'hello';
-
-// This is not valid.
-$code = 'hello';
-
-// Neither is this!
-$code = 'hello';
-
-$code = 'hello';
-
-/** Neither is this! **/
-$code = 'hello';
-
-class MyClass
-{
- /**
- * Represents a left orientation for the widget.
- *
- * @var integer
- * @since 4.0.0
- */
- const LEFT = 1;
-}
-
-/**
- * Comment should be ignored.
- *
- */
-final class MyClass
-{
- /**
- * Comment should be ignored.
- *
- */
- final public function test() {}
-}
-
-// 这是一条测试评论
-// -> One
-// -> One.One
-// -> Two
-/*
- Here is some inline example code:
- -> One
- -> One.One
- -> Two
-*/
-
-/**
- * Comment should be ignored in PHP 5.4.
- *
- */
-trait MyTrait {
-
-}
-
-$foo = 'foo'; // Var set to foo.
-
-echo $foo;
-
-// Comment here.
-echo $foo;
-
-/**
- * Comments about the include
- */
-include_once($blah);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.js
deleted file mode 100644
index 7d8bd15d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.js
+++ /dev/null
@@ -1,123 +0,0 @@
-// Some content here.
-var code = 'hello';
-
-// This comment contains # multiple
-// hash signs (#).
-code = 'hello';
-
-/**
- * This is the first line of a function comment.
- * This is the second line.
- */
-function testFunction()
-{
- // Callback methods which are added by external objects.
- this.callbacks = {};
-
-}//end testFunction()
-
-/**
- * This is the first line of a class comment.
- * This is the second line.
- */
-myClass.prototype = {
-
- /**
- * This is the first line of a method comment.
- * This is the second line.
- */
- load: function(url, callback)
- {
- // Some code here.
-
- }
-};
-
-// some code goes here!
-
-/*
- A longer comment goes here.
- It spans multiple lines!!
- Or does it?
-*/
-
-// 0This is a simple multi-line
-// comment!
-code = 'hello';
-
-//This is not valid.
-code = 'hello';
-
-// Neither is this!
-code = 'hello';
-
-//
-code = 'hello';
-
-/** Neither is this! **/
-code = 'hello';
-
-/**
- * This is the first line of a function comment.
- * This is the second line.
- */
-var myFunction = function() {
-}
-
-/**
- * This is the first line of a function comment.
- * This is the second line.
- */
-myFunction = function() {
-}
-
-/**
- * This is the first line of a function comment.
- * This is the second line.
- */
-myClass.myFunction = function() {
-}
-
-dfx.getIframeDocument = function(iframe)
-{
- return doc;
-
-};//end dfx.getIframeDocument()
-
-mig.Gallery.prototype = {
-
- init: function(cb)
- {
-
- },//end init()
-
- imageClicked: function(id)
- {
-
- }//end imageClicked()
-
-};
-
-// Here is some inline example code:
-// -> One
-// -> One.One
-// -> Two
-
-/*
- Here is some inline example code:
- -> One
- -> One.One
- -> Two
-*/
-
-
-var foo = 'foo'; // Var set to foo.
-
-console.info(foo);
-
-// Comment here.
-console.info(foo);
-
-//**
-* invalid comment
-*/
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php
deleted file mode 100644
index 07d6365f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * Unit test class for the InlineComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class InlineCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='InlineCommentUnitTest.inc')
- {
- switch ($testFile) {
- case 'InlineCommentUnitTest.inc':
- $errors = array(
- 17 => 1,
- 27 => 1,
- 28 => 1,
- 32 => 2,
- 36 => 1,
- 44 => 2,
- 58 => 1,
- 61 => 1,
- 64 => 1,
- 67 => 1,
- 95 => 1,
- 96 => 1,
- 97 => 3,
- 118 => 1,
- );
-
- return $errors;
- case 'InlineCommentUnitTest.js':
- return array(
- 31 => 1,
- 36 => 2,
- 48 => 1,
- 51 => 1,
- 54 => 1,
- 57 => 1,
- 102 => 1,
- 103 => 1,
- 104 => 3,
- 118 => 1,
- 121 => 1,
- );
- default:
- return array();
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc
deleted file mode 100644
index 4bce7300..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc
+++ /dev/null
@@ -1,934 +0,0 @@
-<?php
-
-function long_function()
-{
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- }//end if
-
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- }
-
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- } else {
- // Short ELSE
- }//end if
-
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- } else {
- // Short ELSE
- }
-}
-
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end foreach
-
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- foreach ($blah as $val) {
- // Short foreach.
- }
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}
-
-for ($var =1; $var < 20; $var++) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end for
-
-for ($var =1; $var < 20; $var++) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- for ($val =1; $val < 20; $val++) {
- // Short for.
- }
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}
-
-while ($var < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end while looping
-
-while ($var < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- while ($something) {
- // Short while.
- }
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}
-
-if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
-} //end if
-
-if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
-} else {
- // Short ELSE
-} //end if
-
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} //end foreach
-
-for ($var =1; $var < 20; $var++) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} //end for
-
-while ($var < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} //end while
-
-while ($var < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end for
-
-if (true) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} else if ($condition) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} elseif ($cond) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} else {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end if
-
-if ($something) {
- // Line 1
- // Line 2
-} else if ($somethingElse) {
- // Line 1
- // Line 2
-} else {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}
-
-switch ($something) {
- case '1':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '2':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '3':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '4':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '5':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
-}
-
-// Wrong comment
-if ($condition) {
- echo "true";
-}//end foreach
-
-if ($condition) {
- echo "true";
-} //end if
-
-try {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-} catch (Exception $e) {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-}
-
-try {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-} catch (Exception $e) {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-}
-
-try {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-} catch (Exception $e) {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-}//end catch
-
-try {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-} catch (DALException $e) {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-} catch (ChannelException $e) {
- // some code here.
-} catch (Exception $e) {
- // some code here.
-}
-
-switch ($foo) {
- case 'one' : {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- break;
- }
- case 'one' :
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- break;
-}//end switch
-
-// Yes, code like this does exist.
-if ($foo) {
- return $foo;
-} elseif ($bar)
- return $bar;
-
-switch ($foo) {
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- case 14:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 26:
- case 27:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- echo $foo;
- break;
-}
-
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment lineLimit 5
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment commentFormat //Dragonbait-%s
-
-function quite_long_function()
-{
- // Ok - below limit
- if ($longFunction) {
- $variable = 'hello';
- }
-
- // Ok - correct comment
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- }//Dragonbait-if
-
- // This should be caught - wrong comment
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
- } else {
- // Short ELSE
- }//end if
-
- // This should be caught - no comment
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
- } else {
- // Short ELSE
- }
-}
-
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment lineLimit 30
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment commentFormat // Bye-Bye %s()
-
-// Ok - below limit
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
-}
-
-// Ok - has correct comment
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
- // Line 21
- // Line 22
- // Line 23
- // Line 24
- // Line 25
- // Line 26
- // Line 27
- // Line 28
- // Line 29
- // Line 30
-}// Bye-Bye foreach()
-
-// This should be caught - wrong comment
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
- // Line 21
- // Line 22
- // Line 23
- // Line 24
- // Line 25
- // Line 26
- // Line 27
- // Line 28
- // Line 29
- // Line 30
-}//end foreach
-
-// This should be caught - no comment
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
- // Line 21
- // Line 22
- // Line 23
- // Line 24
- // Line 25
- // Line 26
- // Line 27
- // Line 28
- // Line 29
- // Line 30
-}
-
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment lineLimit 20
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment commentFormat //end %s \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc.fixed
deleted file mode 100644
index edc835e7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.inc.fixed
+++ /dev/null
@@ -1,934 +0,0 @@
-<?php
-
-function long_function()
-{
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- }//end if
-
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- }//end if
-
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- } else {
- // Short ELSE
- }//end if
-
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- } else {
- // Short ELSE
- }//end if
-}
-
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end foreach
-
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- foreach ($blah as $val) {
- // Short foreach.
- }
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end foreach
-
-for ($var =1; $var < 20; $var++) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end for
-
-for ($var =1; $var < 20; $var++) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- for ($val =1; $val < 20; $val++) {
- // Short for.
- }
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end for
-
-while ($var < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end while
-
-while ($var < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- while ($something) {
- // Short while.
- }
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end while
-
-if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
-} //end if
-
-if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if ($variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
-} else {
- // Short ELSE
-} //end if
-
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} //end foreach
-
-for ($var =1; $var < 20; $var++) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} //end for
-
-while ($var < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} //end while
-
-while ($var < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end while
-
-if (true) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} else if ($condition) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} elseif ($cond) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} else {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end if
-
-if ($something) {
- // Line 1
- // Line 2
-} else if ($somethingElse) {
- // Line 1
- // Line 2
-} else {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end if
-
-switch ($something) {
- case '1':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '2':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '3':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '4':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '5':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
-}//end switch
-
-// Wrong comment
-if ($condition) {
- echo "true";
-}//end if
-
-if ($condition) {
- echo "true";
-} //end if
-
-try {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-} catch (Exception $e) {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-}//end try
-
-try {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-} catch (Exception $e) {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-}
-
-try {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-} catch (Exception $e) {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-}//end try
-
-try {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-} catch (DALException $e) {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
-} catch (ChannelException $e) {
- // some code here.
-} catch (Exception $e) {
- // some code here.
-}//end try
-
-switch ($foo) {
- case 'one' : {
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- break;
- }//end case
- case 'one' :
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- // some code here.
- break;
-}//end switch
-
-// Yes, code like this does exist.
-if ($foo) {
- return $foo;
-} elseif ($bar)
- return $bar;
-
-switch ($foo) {
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- case 14:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 26:
- case 27:
- case 28:
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- case 45:
- case 46:
- case 47:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- echo $foo;
- break;
-}//end switch
-
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment lineLimit 5
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment commentFormat //Dragonbait-%s
-
-function quite_long_function()
-{
- // Ok - below limit
- if ($longFunction) {
- $variable = 'hello';
- }
-
- // Ok - correct comment
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- }//Dragonbait-if
-
- // This should be caught - wrong comment
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
- } else {
- // Short ELSE
- }//Dragonbait-if
-
- // This should be caught - no comment
- if ($longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- $variable = 'hello';
- } else {
- // Short ELSE
- }//Dragonbait-if
-}
-
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment lineLimit 30
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment commentFormat // Bye-Bye %s()
-
-// Ok - below limit
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
-}
-
-// Ok - has correct comment
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
- // Line 21
- // Line 22
- // Line 23
- // Line 24
- // Line 25
- // Line 26
- // Line 27
- // Line 28
- // Line 29
- // Line 30
-}// Bye-Bye foreach()
-
-// This should be caught - wrong comment
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
- // Line 21
- // Line 22
- // Line 23
- // Line 24
- // Line 25
- // Line 26
- // Line 27
- // Line 28
- // Line 29
- // Line 30
-}// Bye-Bye foreach()
-
-// This should be caught - no comment
-foreach ($var as $val) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
- // Line 21
- // Line 22
- // Line 23
- // Line 24
- // Line 25
- // Line 26
- // Line 27
- // Line 28
- // Line 29
- // Line 30
-}// Bye-Bye foreach()
-
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment lineLimit 20
-// @codingStandardsChangeSetting Squiz.Commenting.LongConditionClosingComment commentFormat //end %s \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.js
deleted file mode 100644
index 1aeaac9d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.js
+++ /dev/null
@@ -1,444 +0,0 @@
-function long_function()
-{
- if (longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- variable = 'hello';
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- }//end if
-
- if (longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- variable = 'hello';
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- }
-
- if (longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- variable = 'hello';
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- } else {
- // Short ELSE
- }//end if
-
- if (longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- variable = 'hello';
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
- } else {
- // Short ELSE
- }
-}
-
-for (variable=1; variable < 20; variable++) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end for
-
-for (variable=1; variable < 20; variable++) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- for (val =1; val < 20; val++) {
- // Short for.
- }
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}
-
-while (variable < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end while
-
-while (variable < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- while (something) {
- // Short while.
- }
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}
-
-if (longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- variable = 'hello';
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
-} //end if
-
-if (longFunction) {
- // This is a long
- // IF statement
- // that does
- // not have
- // an ELSE
- // block on it
- variable = 'hello';
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- }
-
- if (variable === 'hello') {
- // This is a short
- // IF statement
- } else {
- // This is a short ELSE
- // statement
- }
-} else {
- // Short ELSE
-} //end if
-
-for (variable=1; variable < 20; variable++) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} //end for
-
-while (variable < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} //end while
-
-while (variable < 20) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end for
-
-if (true) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} else if (condition) {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-} else {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}//end if
-
-if (something) {
- // Line 1
- // Line 2
-} else if (somethingElse) {
- // Line 1
- // Line 2
-} else {
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- // Line 6
- // Line 7
- // Line 8
- // Line 9
- // Line 10
- // Line 11
- // Line 12
- // Line 13
- // Line 14
- // Line 15
- // Line 16
- // Line 17
- // Line 18
- // Line 19
- // Line 20
-}
-
-switch (something) {
- case '1':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '2':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '3':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '4':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
- case '5':
- // Line 1
- // Line 2
- // Line 3
- // Line 4
- // Line 5
- break;
-}
-
-// Wrong comment
-if (condition) {
- condition = true;
-}//end foreach \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php
deleted file mode 100644
index 76a73032..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-/**
- * Unit test class for the LongConditionClosingComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LongConditionClosingCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='LongConditionClosingCommentUnitTest.inc')
- {
- switch ($testFile) {
- case 'LongConditionClosingCommentUnitTest.inc':
- return array(
- 49 => 1,
- 99 => 1,
- 146 => 1,
- 192 => 1,
- 215 => 1,
- 238 => 1,
- 261 => 1,
- 286 => 1,
- 309 => 1,
- 332 => 1,
- 355 => 1,
- 378 => 1,
- 493 => 1,
- 531 => 1,
- 536 => 1,
- 540 => 1,
- 562 => 1,
- 601 => 1,
- 629 => 1,
- 663 => 1,
- 765 => 1,
- 798 => 1,
- 811 => 1,
- 897 => 1,
- 931 => 1,
- );
- break;
- case 'LongConditionClosingCommentUnitTest.js':
- return array(
- 47 => 1,
- 97 => 1,
- 144 => 1,
- 190 => 1,
- 213 => 1,
- 238 => 1,
- 261 => 1,
- 284 => 1,
- 307 => 1,
- 401 => 1,
- 439 => 1,
- 444 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.inc
deleted file mode 100644
index a731ccf2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.inc
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-function test()
-{
- $string = 'hello';
- $string = 'hello'; // Set string to hello.
- // Valid comment.
-}
-
-function test() // This is a function
-{
-
-}//end test()
-
-
-class TestClass
-{
- public $good = true; // Indeed.
-
-}//end class
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.js
deleted file mode 100644
index 65537236..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.js
+++ /dev/null
@@ -1,30 +0,0 @@
-function test(id, buttons) // cool function
-{
- alert('hello');
- alert('hello again'); // And again.
- // Valid comment.
-
-}//end test()
-
-var good = true; // Indeed.
-
-mig.Gallery.prototype = {
-
- init: function(cb)
- {
-
- },//end init()
-
- imageClicked: function(id)
- {
-
- }//end imageClicked()
-
-};
-
-dfx.getIframeDocument = function(iframe)
-{
-
- return doc;
-
-};//end dfx.getIframeDocument() \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php
deleted file mode 100644
index 9ef7079b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
- * Unit test class for the PostStatementComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class PostStatementCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='PostStatementCommentUnitTest.inc')
- {
- switch ($testFile) {
- case 'PostStatementCommentUnitTest.inc':
- return array(
- 6 => 1,
- 10 => 1,
- 18 => 1,
- );
- break;
- case 'PostStatementCommentUnitTest.js':
- return array(
- 1 => 1,
- 4 => 1,
- 9 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc
deleted file mode 100644
index 46024c26..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc
+++ /dev/null
@@ -1,339 +0,0 @@
-<?php
-class VariableCommentUnitTest
-{
-
- /**
- * Short description of the member variable.
- *
- * Long description of member variable. Can span over multiple
- * lines and can have multiple paragraphs.
- *
- * @var array
- * @see otherFunctions()
- * @see anotherFunctions()
- */
- public $variableName = array();
-
-
- // Not "/**" style comment.
- //
- // @var string
- private $_incorrectCommentStyle = '';
-
-
- protected $noComment = '';
-
-
- /**
- *
- * Extra newline before short comment.
- *
- * @var string
- */
- public $extraNewlineBeforeShort = '';
-
-
- /**
- * Extra newline between short description.
- *
- *
- *
- * Long description.
- *
- * @var string
- */
- private $_extraNewlineBetween = '';
-
-
- /**
- * Extra newline before tags.
- *
- * Long description,
- * with two var tags.
- *
- *
- * @var string
- * @var array
- */
- protected $extraNewlineBeforeTags = '';
-
-
- /**
- * No newline before tags, var tag missing.
- * @see otherFunctions()
- */
- protected $noNewlineBeforeTags = '';
-
-
- /**
- * Short comment that spans multiple
- * lines and does not end with a full stop
- * also var type is missing
- *
- * @var
- */
- public $singleLineFullStopShortComment = '';
-
-
- /**
- * Incorrect tag indentation.
- *
- * @var string
- * @see otherFunctions()
- * @see anotherFunctions()
- * @see
- */
- public $singleLineFullStopShortComment = '';
-
-
- /**
- * Unknown summary tag
- *
- * @var string
- * @summary unknown tag
- */
- public $missingSinceTag = '';
-
-
- /**
- * T_VARIABLE check, without scope.
- *
- * @var string
- */
- $variableCheck = '';
-
- /**
- * T_VARIABLE check, var in string and in function.
- *
- * @param integer $var1 First variable.
- * @param integer $var2 Second variable.
- *
- * @return integer
- */
- protected function checkVariable($var1, $var2)
- {
- $var4 = 'A normal variable';
- $var5 = PHP_CodeSniffer_Tokens::$operators;
- echo "Printing $var1 $var2 and unknown $var3 in a double quoted string\n";
- foreach (self::$_array as $index => $content) {
- echo $content;
- }
-
- return $var1;
-
- }//end checkVariable()
-
-
- /**
- *
- *
- */
- $emptyVarDoc = '';
-
- /**
- * Var type checking (int v.s. integer).
- *
- * @var int
- */
- private $_varSimpleTypeCheck;
-
-
- /**
- * Var type checking (array(int => string) v.s. array(int => string)).
- *
- * @var array(int => string)
- */
- private $_varArrayTypeCheck;
-
-
- /**
- * Boolean @var tag Capitalized
- *
- * @var Boolean
- */
- public $CapBoolTag = true;
-
-
- /**
- * Boolean @var tag Capitalized
- *
- * @var BOOLEAN
- */
- public $CapBoolTag2 = true;
-
-
- /**
- * Double @var tag Capitalized
- *
- * @var Double
- */
- public $CapDoubleTag = 1;
-
-
- /**
- * Double @var tag Capitalized
- *
- * @var DOUBLE
- */
- public $CapDoubleTag2 = 1;
-
-
- /**
- * Real @var tag Capitalized
- *
- * @var Real
- */
- public $CapRealTag = 1;
-
-
- /**
- * Real @var tag Capitalized
- *
- * @var REAL
- */
- public $CapRealTag2 = 1;
-
-
- /**
- * Float @var tag Capitalized
- *
- * @var Float
- */
- public $CapFloatTag = 1;
-
-
- /**
- * Float @var tag Capitalized
- *
- * @var FLOAT
- */
- public $CapFloatTag2 = 1;
-
-
- /**
- * Int @var tag Capitalized
- *
- * @var Int
- */
- public $CapIntTag = 1;
-
-
- /**
- * Int @var tag Capitalized
- *
- * @var INT
- */
- public $CapIntTag2 = 1;
-
-
- /**
- * Integer @var tag Capitalized
- *
- * @var Integer
- */
- public $CapIntTag3 = 1;
-
-
- /**
- * Integer @var tag Capitalized
- *
- * @var INTEGER
- */
- public $CapIntTag4 = 1;
-
-
- /**
- * Array @var tag Capitalized
- *
- * @var Array
- */
- public $CapVarTag = [];
-
-
- /**
- * Array @var tag All Caps
- *
- * @var ARRAY
- */
- public $CapVarTag2 = [];
-
-
- /**
- * Array @var tag Capitalized
- *
- * @var Array()
- */
- public $CapVarTag3 = [];
-
-
- /**
- * Array @var tag All Caps
- *
- * @var ARRAY()
- */
- public $CapVarTag4 = [];
-
-
- /**
- * Var type checking (STRING v.s. string).
- *
- * @var STRING
- */
- private $_varCaseTypeCheck;
-
-
- /**
- * @var integer
- */
- private $_varWithNoShortComment;
-
- protected $noComment2 = '';
-
-
-}//end class
-
-
-/**
- * VariableCommentUnitTest2.
- *
- * Long description goes here.
- *
- */
-class VariableCommentUnitTest2
-{
-
- public $hello;
-
- /** Comment starts here.
- *
- * @var string
- *
- */
- private $_varCaseTypeCheck;
-
- /**
- * 这是一条测试评论.
- *
- * @var string
- */
- public $foo;
-
-}//end class
-
-
-/*
- * Class comment
- */
-class Foo
-{
-
- protected $bar;
-
- /**
- * Short description of the member variable.
- *
- * @var array
- */
- public static $variableName = array();
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc.fixed
deleted file mode 100644
index 55f76d8c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.inc.fixed
+++ /dev/null
@@ -1,339 +0,0 @@
-<?php
-class VariableCommentUnitTest
-{
-
- /**
- * Short description of the member variable.
- *
- * Long description of member variable. Can span over multiple
- * lines and can have multiple paragraphs.
- *
- * @var array
- * @see otherFunctions()
- * @see anotherFunctions()
- */
- public $variableName = array();
-
-
- // Not "/**" style comment.
- //
- // @var string
- private $_incorrectCommentStyle = '';
-
-
- protected $noComment = '';
-
-
- /**
- *
- * Extra newline before short comment.
- *
- * @var string
- */
- public $extraNewlineBeforeShort = '';
-
-
- /**
- * Extra newline between short description.
- *
- *
- *
- * Long description.
- *
- * @var string
- */
- private $_extraNewlineBetween = '';
-
-
- /**
- * Extra newline before tags.
- *
- * Long description,
- * with two var tags.
- *
- *
- * @var string
- * @var array
- */
- protected $extraNewlineBeforeTags = '';
-
-
- /**
- * No newline before tags, var tag missing.
- * @see otherFunctions()
- */
- protected $noNewlineBeforeTags = '';
-
-
- /**
- * Short comment that spans multiple
- * lines and does not end with a full stop
- * also var type is missing
- *
- * @var
- */
- public $singleLineFullStopShortComment = '';
-
-
- /**
- * Incorrect tag indentation.
- *
- * @var string
- * @see otherFunctions()
- * @see anotherFunctions()
- * @see
- */
- public $singleLineFullStopShortComment = '';
-
-
- /**
- * Unknown summary tag
- *
- * @var string
- * @summary unknown tag
- */
- public $missingSinceTag = '';
-
-
- /**
- * T_VARIABLE check, without scope.
- *
- * @var string
- */
- $variableCheck = '';
-
- /**
- * T_VARIABLE check, var in string and in function.
- *
- * @param integer $var1 First variable.
- * @param integer $var2 Second variable.
- *
- * @return integer
- */
- protected function checkVariable($var1, $var2)
- {
- $var4 = 'A normal variable';
- $var5 = PHP_CodeSniffer_Tokens::$operators;
- echo "Printing $var1 $var2 and unknown $var3 in a double quoted string\n";
- foreach (self::$_array as $index => $content) {
- echo $content;
- }
-
- return $var1;
-
- }//end checkVariable()
-
-
- /**
- *
- *
- */
- $emptyVarDoc = '';
-
- /**
- * Var type checking (int v.s. integer).
- *
- * @var integer
- */
- private $_varSimpleTypeCheck;
-
-
- /**
- * Var type checking (array(int => string) v.s. array(int => string)).
- *
- * @var array(integer => string)
- */
- private $_varArrayTypeCheck;
-
-
- /**
- * Boolean @var tag Capitalized
- *
- * @var boolean
- */
- public $CapBoolTag = true;
-
-
- /**
- * Boolean @var tag Capitalized
- *
- * @var boolean
- */
- public $CapBoolTag2 = true;
-
-
- /**
- * Double @var tag Capitalized
- *
- * @var float
- */
- public $CapDoubleTag = 1;
-
-
- /**
- * Double @var tag Capitalized
- *
- * @var float
- */
- public $CapDoubleTag2 = 1;
-
-
- /**
- * Real @var tag Capitalized
- *
- * @var float
- */
- public $CapRealTag = 1;
-
-
- /**
- * Real @var tag Capitalized
- *
- * @var float
- */
- public $CapRealTag2 = 1;
-
-
- /**
- * Float @var tag Capitalized
- *
- * @var float
- */
- public $CapFloatTag = 1;
-
-
- /**
- * Float @var tag Capitalized
- *
- * @var float
- */
- public $CapFloatTag2 = 1;
-
-
- /**
- * Int @var tag Capitalized
- *
- * @var integer
- */
- public $CapIntTag = 1;
-
-
- /**
- * Int @var tag Capitalized
- *
- * @var integer
- */
- public $CapIntTag2 = 1;
-
-
- /**
- * Integer @var tag Capitalized
- *
- * @var integer
- */
- public $CapIntTag3 = 1;
-
-
- /**
- * Integer @var tag Capitalized
- *
- * @var integer
- */
- public $CapIntTag4 = 1;
-
-
- /**
- * Array @var tag Capitalized
- *
- * @var array
- */
- public $CapVarTag = [];
-
-
- /**
- * Array @var tag All Caps
- *
- * @var array
- */
- public $CapVarTag2 = [];
-
-
- /**
- * Array @var tag Capitalized
- *
- * @var array
- */
- public $CapVarTag3 = [];
-
-
- /**
- * Array @var tag All Caps
- *
- * @var array
- */
- public $CapVarTag4 = [];
-
-
- /**
- * Var type checking (STRING v.s. string).
- *
- * @var string
- */
- private $_varCaseTypeCheck;
-
-
- /**
- * @var integer
- */
- private $_varWithNoShortComment;
-
- protected $noComment2 = '';
-
-
-}//end class
-
-
-/**
- * VariableCommentUnitTest2.
- *
- * Long description goes here.
- *
- */
-class VariableCommentUnitTest2
-{
-
- public $hello;
-
- /** Comment starts here.
- *
- * @var string
- *
- */
- private $_varCaseTypeCheck;
-
- /**
- * 这是一条测试评论.
- *
- * @var string
- */
- public $foo;
-
-}//end class
-
-
-/*
- * Class comment
- */
-class Foo
-{
-
- protected $bar;
-
- /**
- * Short description of the member variable.
- *
- * @var array
- */
- public static $variableName = array();
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php
deleted file mode 100644
index 934a3f98..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/**
- * Unit test class for the VariableComment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class VariableCommentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 21 => 1,
- 24 => 1,
- 56 => 1,
- 64 => 1,
- 73 => 1,
- 84 => 1,
- 130 => 1,
- 136 => 1,
- 144 => 1,
- 152 => 1,
- 160 => 1,
- 168 => 1,
- 176 => 1,
- 184 => 1,
- 192 => 1,
- 200 => 1,
- 208 => 1,
- 216 => 1,
- 224 => 1,
- 232 => 1,
- 240 => 1,
- 248 => 1,
- 256 => 1,
- 264 => 1,
- 272 => 1,
- 280 => 1,
- 290 => 1,
- 305 => 1,
- 330 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(93 => 1);
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc
deleted file mode 100644
index 0cb0d3b6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc
+++ /dev/null
@@ -1,213 +0,0 @@
-<?php
-$i = 0;
-do {
- echo $i;
-} while ($i > 0);
-
-do
-{
- echo $i;
-} while ($i > 0);
-
-do
-{
- echo $i;
-}
-while ($i > 0);
-
-do { echo $i; } while ($i > 0);
-
-do{
- echo $i;
-}while($i > 0);
-
-while ($i < 1) {
- echo $i;
-}
-
-while($i < 1){
- echo $i;
-}
-
-while ($i < 1) { echo $i; }
-
-for ($i = 1; $i < 1; $i++) {
- echo $i;
-}
-
-for($i = 1; $i < 1; $i++){
- echo $i;
-}
-
-for ($i = 1; $i < 1; $i++) { echo $i; }
-
-if ($i == 0) {
- $i = 1;
-}
-
-if($i == 0){
- $i = 1;
-}
-
-if ($i == 0) { $i = 1; }
-
-if ($i == 0) {
- $i = 1;
-} else {
- $i = 0;
-}
-
-if ($i == 0) {
- $i = 1;
-}else{
- $i = 0;
-}
-
-if ($i == 0) { $i = 1; } else { $i = 0; }
-
-if ($i == 0) {
- $i = 1;
-} else if ($i == 2) {
- $i = 0;
-}
-
-if ($i == 0) {
- $i = 1;
-}else if($i == 2){
- $i = 0;
-}
-
-if ($i == 0) { $i = 1; } else if ($i == 2) { $i = 0; }
-
-if ($i == 0) { // comments are allowed
- $i = 1;
-}
-
-if ($i == 0) {// comments are allowed
- $i = 1;
-}
-
-if ($i == 0) { /* comments are allowed*/
- $i = 1;
-}
-
-if ($i == 0)
-{ // this is ok
- $i = 1;
-}
-
-if ($i == 0) /* this is ok */ {
-}
-
-try {
- $code = 'this';
-} catch (Exception $e) {
- // Caught!
-}
-
-try { $code = 'this'; } catch (Exception $e) {
- // Caught!
-}
-
-do { echo $i;
-} while ($i > 0);
-
-if ($i === 0) {
-
- $i = 1
-}
-
-if ($a) {
-
-}
-elseif ($b) {
-}
-
-foreach ($items as $item) {
- echo $item;
-}
-
-foreach($items as $item){
- echo $item;
-}
-
-if ($a && $b) // && $c)
-{
-}
-
-if ($a == 5) :
- echo "a equals 5";
- echo "...";
-elseif ($a == 6) :
- echo "a equals 6";
- echo "!!!";
-else :
- echo "a is neither 5 nor 6";
-endif;
-
-try {
- // try body
-}
-catch (FirstExceptionType $e) {
- // catch body
-}
-catch (OtherExceptionType $e) {
- // catch body
-}
-
-switch($foo) {
-
- case 'bar':
- break;
-
-}
-
-if ($foo) :
-endif;
-
-?>
-
-<?php while($row = $data->getRow()): ?>
- <p><?= $val ?></p>
-<?php endwhile; ?>
-
-<?php
-if ($foo === 1) {
- ?>
- <table><tr><td>
- <?php
- echo '2';
- ?>
- </td></tr></table>
- <?php
-}
-
-if ($test) { /*one space after the bracket*/
- echo 'true';
-}
-
-?>
-<?php foreach($formset['Fieldset'] as $fieldset): ?>
- <?php foreach($fieldset['Field'] as $field): ?>
- <?php endforeach; ?>
-<?php endforeach; ?>
-
-<?php foreach ($formset['Fieldset'] as $fieldset) : ?> hello
-<?php endforeach; ?>
-
-<?php foreach ($formset['Fieldset'] as $fieldset) :
- ?>
- hello
-<?php endforeach; ?>
-
-<?php
-$a = 1; $b = true;
-if (1 === $a) :
- if ($b) {
- echo 'b';
- } else {
- echo 'not b';
- }
-else :
- echo 'not 1';
-endif;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed
deleted file mode 100644
index c7f9f24a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed
+++ /dev/null
@@ -1,216 +0,0 @@
-<?php
-$i = 0;
-do {
- echo $i;
-} while ($i > 0);
-
-do {
- echo $i;
-} while ($i > 0);
-
-do {
- echo $i;
-} while ($i > 0);
-
-do {
-echo $i; } while ($i > 0);
-
-do {
- echo $i;
-} while ($i > 0);
-
-while ($i < 1) {
- echo $i;
-}
-
-while ($i < 1) {
- echo $i;
-}
-
-while ($i < 1) {
-echo $i; }
-
-for ($i = 1; $i < 1; $i++) {
- echo $i;
-}
-
-for ($i = 1; $i < 1; $i++) {
- echo $i;
-}
-
-for ($i = 1; $i < 1; $i++) {
-echo $i; }
-
-if ($i == 0) {
- $i = 1;
-}
-
-if ($i == 0) {
- $i = 1;
-}
-
-if ($i == 0) {
-$i = 1; }
-
-if ($i == 0) {
- $i = 1;
-} else {
- $i = 0;
-}
-
-if ($i == 0) {
- $i = 1;
-} else {
- $i = 0;
-}
-
-if ($i == 0) {
-$i = 1; } else {
-$i = 0; }
-
-if ($i == 0) {
- $i = 1;
-} else if ($i == 2) {
- $i = 0;
-}
-
-if ($i == 0) {
- $i = 1;
-} else if ($i == 2) {
- $i = 0;
-}
-
-if ($i == 0) {
-$i = 1; } else if ($i == 2) {
-$i = 0; }
-
-if ($i == 0) { // comments are allowed
- $i = 1;
-}
-
-if ($i == 0) {// comments are allowed
- $i = 1;
-}
-
-if ($i == 0) { /* comments are allowed*/
- $i = 1;
-}
-
-if ($i == 0) { // this is ok
- $i = 1;
-}
-
-if ($i == 0) { /* this is ok */
-}
-
-try {
- $code = 'this';
-} catch (Exception $e) {
- // Caught!
-}
-
-try {
-$code = 'this'; } catch (Exception $e) {
- // Caught!
-}
-
-do {
-echo $i;
-} while ($i > 0);
-
-if ($i === 0) {
-
- $i = 1
-}
-
-if ($a) {
-
-} elseif ($b) {
-}
-
-foreach ($items as $item) {
- echo $item;
-}
-
-foreach ($items as $item) {
- echo $item;
-}
-
-if ($a && $b) { // && $c)
-}
-
-if ($a == 5) :
- echo "a equals 5";
- echo "...";
-elseif ($a == 6) :
- echo "a equals 6";
- echo "!!!";
-else :
- echo "a is neither 5 nor 6";
-endif;
-
-try {
- // try body
-} catch (FirstExceptionType $e) {
- // catch body
-} catch (OtherExceptionType $e) {
- // catch body
-}
-
-switch ($foo) {
-
- case 'bar':
- break;
-
-}
-
-if ($foo) :
-endif;
-
-?>
-
-<?php while ($row = $data->getRow()) : ?>
- <p><?= $val ?></p>
-<?php endwhile; ?>
-
-<?php
-if ($foo === 1) {
- ?>
- <table><tr><td>
- <?php
- echo '2';
- ?>
- </td></tr></table>
- <?php
-}
-
-if ($test) { /*one space after the bracket*/
- echo 'true';
-}
-
-?>
-<?php foreach ($formset['Fieldset'] as $fieldset) : ?>
- <?php foreach ($fieldset['Field'] as $field) : ?>
- <?php endforeach; ?>
-<?php endforeach; ?>
-
-<?php foreach ($formset['Fieldset'] as $fieldset) :
-?> hello
-<?php endforeach; ?>
-
-<?php foreach ($formset['Fieldset'] as $fieldset) :
- ?>
- hello
-<?php endforeach; ?>
-
-<?php
-$a = 1; $b = true;
-if (1 === $a) :
- if ($b) {
- echo 'b';
- } else {
- echo 'not b';
- }
-else :
- echo 'not 1';
-endif;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js
deleted file mode 100644
index 6c2e9ffe..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js
+++ /dev/null
@@ -1,135 +0,0 @@
-
-i = 0;
-do {
- i = 0;
-} while (i > 0);
-
-do
-{
- i = 0;
-} while (i > 0);
-
-do
-{
- i = 0;
-}
-while (i > 0);
-
-do { i = 0; } while (i > 0);
-
-do{
- i = 0;
-}while(i > 0);
-
-while (i < 1) {
- i = 0;
-}
-
-while(i < 1){
- i = 0;
-}
-
-while (i < 1) { i = 0; }
-
-for (i = 1; i < 1; i++) {
- i = 0;
-}
-
-for(i = 1; i < 1; i++){
- i = 0;
-}
-
-for (i = 1; i < 1; i++) { i = 0; }
-
-if (i == 0) {
- i = 1;
-}
-
-if(i == 0){
- i = 1;
-}
-
-if (i == 0) { i = 1; }
-
-if (i == 0) {
- i = 1;
-} else {
- i = 0;
-}
-
-if (i == 0) {
- i = 1;
-}else{
- i = 0;
-}
-
-if (i == 0) { i = 1; } else { i = 0; }
-
-if (i == 0) {
- i = 1;
-} else if (i == 2) {
- i = 0;
-}
-
-if (i == 0) {
- i = 1;
-}else if(i == 2){
- i = 0;
-}
-
-if (i == 0) { i = 1; } else if (i == 2) { i = 0; }
-
-if (i == 0) { // comments are allowed
- i = 1;
-}
-
-if (i == 0) {// comments are allowed
- i = 1;
-}
-
-if (i == 0) { /* comments are allowed*/
- i = 1;
-}
-
-if (i == 0)
-{ // this is ok
- i = 1;
-}
-
-if (i == 0) /* this is ok */ {
-}
-
-try {
- code = 'this';
-} catch (e) {
- // Caught!
-}
-
-try { code = 'this'; } catch (e) {
- // Caught!
-}
-
-do { i = 0;
-} while (i > 0);
-
-if (i === 0) {
-
- i = 1
-}
-
-if (window.jQuery)(function($) {
- $.fn.reset = function() {
- return this.each(function() {
- try {
- this.reset();
- } catch (e) {
- }
- });
- };
-})(jQuery);
-
-if ($("#myid").rotationDegrees()=='90')
- $('.modal').css({'transform': 'rotate(90deg)'});
-
-if ($("#myid").rotationDegrees()=='90')
- $foo = {'transform': 'rotate(90deg)'};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js.fixed
deleted file mode 100644
index e3ed6de7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.js.fixed
+++ /dev/null
@@ -1,141 +0,0 @@
-
-i = 0;
-do {
- i = 0;
-} while (i > 0);
-
-do {
- i = 0;
-} while (i > 0);
-
-do {
- i = 0;
-} while (i > 0);
-
-do {
-i = 0; } while (i > 0);
-
-do {
- i = 0;
-} while (i > 0);
-
-while (i < 1) {
- i = 0;
-}
-
-while (i < 1) {
- i = 0;
-}
-
-while (i < 1) {
-i = 0; }
-
-for (i = 1; i < 1; i++) {
- i = 0;
-}
-
-for (i = 1; i < 1; i++) {
- i = 0;
-}
-
-for (i = 1; i < 1; i++) {
-i = 0; }
-
-if (i == 0) {
- i = 1;
-}
-
-if (i == 0) {
- i = 1;
-}
-
-if (i == 0) {
-i = 1; }
-
-if (i == 0) {
- i = 1;
-} else {
- i = 0;
-}
-
-if (i == 0) {
- i = 1;
-} else {
- i = 0;
-}
-
-if (i == 0) {
-i = 1; } else {
-i = 0; }
-
-if (i == 0) {
- i = 1;
-} else if (i == 2) {
- i = 0;
-}
-
-if (i == 0) {
- i = 1;
-} else if (i == 2) {
- i = 0;
-}
-
-if (i == 0) {
-i = 1; } else if (i == 2) {
-i = 0; }
-
-if (i == 0) { // comments are allowed
- i = 1;
-}
-
-if (i == 0) {// comments are allowed
- i = 1;
-}
-
-if (i == 0) { /* comments are allowed*/
- i = 1;
-}
-
-if (i == 0) { // this is ok
- i = 1;
-}
-
-if (i == 0) { /* this is ok */
-}
-
-try {
- code = 'this';
-} catch (e) {
- // Caught!
-}
-
-try {
-code = 'this'; } catch (e) {
- // Caught!
-}
-
-do {
-i = 0;
-} while (i > 0);
-
-if (i === 0) {
-
- i = 1
-}
-
-if (window.jQuery)(function($) {
- $.fn.reset = function() {
- return this.each(function() {
- try {
- this.reset();
- } catch (e) {
- }
- });
- };
-})(jQuery);
-
-if ($("#myid").rotationDegrees()=='90')
- $('.modal').css({'transform': 'rotate(90deg)'});
-
-if ($("#myid").rotationDegrees()=='90')
- $foo = {'transform': 'rotate(90deg)'};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php
deleted file mode 100644
index a760e528..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-/**
- * Unit test class for the ControlSignature sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ControlSignatureUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='ControlSignatureUnitTest.inc')
- {
- $errors = array(
- 7 => 1,
- 12 => 1,
- 15 => 1,
- 18 => 1,
- 20 => 1,
- 22 => 2,
- 28 => 2,
- 32 => 1,
- 38 => 2,
- 42 => 1,
- 48 => 2,
- 52 => 1,
- 62 => 2,
- 66 => 2,
- 76 => 4,
- 80 => 2,
- 94 => 1,
- 99 => 1,
- 108 => 1,
- 112 => 1,
- );
-
- if ($testFile === 'ControlSignatureUnitTest.inc') {
- $errors[122] = 1;
- $errors[130] = 2;
- $errors[134] = 1;
- $errors[150] = 1;
- $errors[153] = 1;
- $errors[158] = 1;
- $errors[165] = 1;
- $errors[170] = 2;
- $errors[185] = 1;
- $errors[190] = 2;
- $errors[191] = 2;
- $errors[195] = 1;
- }
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc
deleted file mode 100644
index 18d01ae0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.inc
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-if ($something) {
-} else if ($somethingElse) {
-}
-
-if ($something) {
-} elseif ($somethingElse) {
-}
-
-if ($something) {
-} else if ($somethingElse) {
-} elseif ($another) {
-}
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php
deleted file mode 100644
index 7948e9d1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the ElseIfDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ElseIfDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 8 => 1,
- 13 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc
deleted file mode 100644
index 40b53234..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-// Valid.
-foreach ($something as $blah => $that) {
-}
-
-// Invalid.
-foreach ( $something as $blah => $that ) {
-}
-
-foreach ($something as $blah => $that) {
-}
-
-foreach ($something as $blah => $that) {
-}
-
-foreach (${something}AS$blah=>$that) {
-}
-
-// The works.
-foreach ( $something aS $blah => $that ) {
-}
-
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesBeforeClose 1
-foreach ($something as $blah => $that) {}
-foreach ( $something as $blah => $that ) {}
-foreach ( $something as $blah => $that ) {}
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesBeforeClose 0
-
-foreach ([
- 'foo' => 'bar',
- 'foobaz' => 'bazzy',
- ] as $key => $value) {
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc.fixed
deleted file mode 100644
index e0e5f8b4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.inc.fixed
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-// Valid.
-foreach ($something as $blah => $that) {
-}
-
-// Invalid.
-foreach ($something as $blah => $that) {
-}
-
-foreach ($something as $blah => $that) {
-}
-
-foreach ($something as $blah => $that) {
-}
-
-foreach (${something} as $blah => $that) {
-}
-
-// The works.
-foreach ($something as $blah => $that) {
-}
-
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesBeforeClose 1
-foreach ( $something as $blah => $that ) {}
-foreach ( $something as $blah => $that ) {}
-foreach ( $something as $blah => $that ) {}
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesBeforeClose 0
-
-foreach ([
- 'foo' => 'bar',
- 'foobaz' => 'bazzy',
- ] as $key => $value) {
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php
deleted file mode 100644
index 9d448155..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * Unit test class for the ForEachLoopDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ForEachLoopDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 8 => 2,
- 11 => 2,
- 14 => 2,
- 17 => 5,
- 21 => 7,
- 26 => 2,
- 28 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.inc
deleted file mode 100644
index 1c9dd32e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-// Valid.
-for ($i = 0; $i < 10; $i++) {
-}
-
-// Invalid.
-for ( $i = 0; $i < 10; $i++ ) {
-}
-
-for ($i = 0; $i < 10; $i++) {
-}
-
-for ($i = 0 ; $i < 10 ; $i++) {
-}
-
-for ($i = 0;$i < 10;$i++) {
-}
-
-// The works.
-for ( $i = 0 ; $i < 10 ; $i++ ) {
-}
-
-for ($i = 0; $i < 10;) {
-}
-
-for ($i = 0; $i < 10; ) {
-}
-
-for ($i = 0; ; $i++) {
-}
-for ($i = 0;; $i++) {
-}
-
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForLoopDeclaration requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForLoopDeclaration requiredSpacesBeforeClose 1
-for ($i = 0; $i < 10; $i++) {}
-for ( $i = 0; $i < 10; $i++ ) {}
-for ( $i = 0; $i < 10; $i++ ) {}
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForLoopDeclaration requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForLoopDeclaration requiredSpacesBeforeClose 0
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.js
deleted file mode 100644
index 5882a8e0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// Valid.
-for (var i = 0; i < 10; i++) {
-}
-
-// Invalid.
-for ( i = 0; i < 10; i++ ) {
-}
-
-for (i = 0; i < 10; i++) {
-}
-
-for (var i = 0 ; i < 10 ; i++) {
-}
-
-for (i = 0;i < 10;i++) {
-}
-
-// The works.
-for ( var i = 0 ; i < 10 ; i++ ) {
-}
-
-this.formats = {};
-dfx.inherits('ContentFormat', 'Widget');
-
-for (var widgetid in this.loadedContents) {
- if (dfx.isset(widget) === true) {
- widget.loadAutoSaveCWidgetStore.setData('activeScreen', null);widget.getContents(this.loadedContents[widgetid], function() {self.widgetLoaded(widget.id);});
- }
-}
-
-for (var i = 0; i < 10;) {
-}
-for (var i = 0; i < 10; ) {
-}
-
-for (var i = 0; ; i++) {
-}
-for (var i = 0;; i++) {
-}
-
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForLoopDeclaration requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForLoopDeclaration requiredSpacesBeforeClose 1
-for (var i = 0; i < 10; i++) {}
-for ( var i = 0; i < 10; i++ ) {}
-for ( var i = 0; i < 10; i++ ) {}
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForLoopDeclaration requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting Squiz.ControlStructures.ForLoopDeclaration requiredSpacesBeforeClose 0 \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php
deleted file mode 100644
index 8387a34f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/**
- * Unit test class for the ForLoopDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ForLoopDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='ForLoopDeclarationUnitTest.inc')
- {
- switch ($testFile) {
- case 'ForLoopDeclarationUnitTest.inc':
- return array(
- 8 => 2,
- 11 => 2,
- 14 => 2,
- 17 => 2,
- 21 => 6,
- 27 => 1,
- 30 => 1,
- 37 => 2,
- 39 => 2,
- );
- break;
- case 'ForLoopDeclarationUnitTest.js':
- return array(
- 6 => 2,
- 9 => 2,
- 12 => 2,
- 15 => 2,
- 19 => 6,
- 33 => 1,
- 36 => 1,
- 43 => 2,
- 45 => 2,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc
deleted file mode 100644
index f54ed8af..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-echo 'var is '.($var < 0 ? 'negative' : 'positive');
-echo 'var is '.(($var < 0) ? 'negative' :'positive');
-echo 'var is '.(($var < 0) ? 'negative': 'positive');
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-
-echo 'var is '.(($var < 0)
- ? 'negative'
- : 'positive');
-
-$args = array(
- '"'.$this->id.'"',
- '"'.$this->stepInfo['title'].'"',
- '"'.((isset($this->stepInfo['description']) === TRUE) ? $this->stepInfo['description'] : '').'"',
- '"'.(isset($this->stepInfo['description']) === TRUE ? $this->stepInfo['description'] : '').'"',
- '"'.$this->stepInfo['title'].'"',
- );
-
-echo (TRUE)?'Hello':'Bye';
-
-$array = array(
- 'one' => ($test == 1) ? true : false,
- 'two' => (($test == 1) ? true : false),
- 'three' => (($test == 1) ? true : false)
-);
-$var = ($test == 1) ? true : false;
-$var = (myFunc(1,2,3) == 1) ? true : false;
-
-set('config', function() {
- $foo = ($bar === "on") ? "1" : "2";
-});
-
-$config = function() {
- $foo = ($bar === "on") ? "1" : "2";
-};
-
-rand(0, 1) ? 'ěščřžýáí' : NULL;
-
-$c = ($argv[1]) ? : "";
-$filepath = realpath($argv[1]) ?: $argv[1];
-$c = ($argv[1]) ? /* comment */ : "";
-$c = ($argv[1]) ?
-: "";
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc.fixed
deleted file mode 100644
index f7aa1d67..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc.fixed
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-echo 'var is '.($var < 0 ? 'negative' : 'positive');
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-echo 'var is '.(($var < 0) ? 'negative' : 'positive');
-
-echo 'var is '.(($var < 0)
- ? 'negative'
- : 'positive');
-
-$args = array(
- '"'.$this->id.'"',
- '"'.$this->stepInfo['title'].'"',
- '"'.((isset($this->stepInfo['description']) === TRUE) ? $this->stepInfo['description'] : '').'"',
- '"'.(isset($this->stepInfo['description']) === TRUE ? $this->stepInfo['description'] : '').'"',
- '"'.$this->stepInfo['title'].'"',
- );
-
-echo (TRUE) ? 'Hello' : 'Bye';
-
-$array = array(
- 'one' => ($test == 1) ? true : false,
- 'two' => (($test == 1) ? true : false),
- 'three' => (($test == 1) ? true : false)
-);
-$var = ($test == 1) ? true : false;
-$var = (myFunc(1,2,3) == 1) ? true : false;
-
-set('config', function() {
- $foo = ($bar === "on") ? "1" : "2";
-});
-
-$config = function() {
- $foo = ($bar === "on") ? "1" : "2";
-};
-
-rand(0, 1) ? 'ěščřžýáí' : NULL;
-
-$c = ($argv[1]) ?: "";
-$filepath = realpath($argv[1]) ?: $argv[1];
-$c = ($argv[1]) ? /* comment */ : "";
-$c = ($argv[1]) ?
-: "";
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php
deleted file mode 100644
index ae37bb99..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-/**
- * Unit test class for the InlineIfDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class InlineIfDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Get a list of CLI values to set befor the file is tested.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array
- */
- public function getCliValues($testFile)
- {
- return array('--encoding=utf-8');
-
- }//end getCliValues()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 5 => 1,
- 6 => 1,
- 7 => 1,
- 8 => 1,
- 9 => 1,
- 10 => 1,
- 13 => 1,
- 20 => 1,
- 24 => 4,
- 44 => 1,
- 47 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.inc
deleted file mode 100644
index 4c26db7b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-Foreach ($condition as $cond) {}
-
-FOR ($i = 1; $i < 10; $i++) {}
-
-wHile ($i < 10) {}
-
-DO {
-} While ($1 < 10)
-
-Switch ($condition) {}
-
-If ($condition) {
-} elsE if ($condition) {
-} elseIf ($condition) {
-} else {
-}
-
-TRY {
-} Catch (Exception $e) {
-}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php
deleted file mode 100644
index 750b5418..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/**
- * Unit test class for the LowercaseDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LowercaseDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 5 => 1,
- 7 => 1,
- 9 => 1,
- 10 => 1,
- 12 => 1,
- 14 => 1,
- 15 => 1,
- 16 => 1,
- 20 => 1,
- 21 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc
deleted file mode 100644
index 5c711614..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.inc
+++ /dev/null
@@ -1,317 +0,0 @@
-<?php
-
-// Valid SWITCH statement.
-switch ($something) {
- case '1':
- $case = '1';
- break;
-
- case '2':
- case '3':
- $case = '5';
- break;
-
- case '4':
- $case = '4';
- break;
-
- default:
- $case = null;
- break;
-}
-
-// Alignment wrong.
-switch ($something) {
- case '1':
- $case = '1';
- return '1';
-
-case '2':
- case '3':
- $case = '5';
- break;
-
-case '4':
- $case = '4';
-break;
-
- default:
- $case = null;
- break;
-}
-
-// Closing brace wrong.
-switch ($something) {
- case '1':
- $case = '1';
- break;
- }
-
-// PEAR style.
-switch ($something) {
-case '1':
- $case = '1';
- break;
-case '2':
-case '3':
- $case = '5';
- break;
-case '4':
- $case = '4';
- break;
-default:
- $case = null;
- break;
-}
-
-// Valid, but missing BREAKS.
-switch ($something) {
- case '1':
- $case = '1';
-
- case '2':
- case '3':
- $case = '5';
-
- case '4':
- $case = '4';
-
- default:
- $case = null;
-}
-
-// Invalid, and missing BREAKS.
-switch ($something) {
- Case '1' :
- $case = '1';
-
-case '2':
- case '3' :
- $case = '5';
-
- case'4':
- $case = '4';
-
- Default :
- $case = null;
- $something = 'hello';
- $other = 'hi';
- }
-
-// Valid
-switch ($condition) {
- case 'string':
- $varStr = 'test';
-
- default:
- // Ignore the default.
- break;
-}
-
-// No default comment
-switch ($condition) {
- case 'string':
- $varStr = 'test';
-
- default:
- break;
-}
-
-// Break problems
-switch ($condition) {
- case 'string':
-
-
- $varStr = 'test';
-
- break;
-
-
- case 'bool':
- $varStr = 'test';
-
-
- break;
- default:
-
- $varStr = 'test';
- break;
-
-}
-
-switch ($var) {
- case 'one':
- case 'two':
- break;
-
- case 'three':
- // Nothing to do.
- break;
-
- case 'four':
- echo $hi;
- break;
-
- default:
- // No default.
- break;
-}
-
-switch ($var) {
- case 'one':
- if ($blah) {
- }
-
- break;
-
- default:
- // No default.
- break;
-}
-
-switch ($name) {
- case "1":
- switch ($name2) {
- case "1":
- return true;
- break;
-
- case "2":
- return true;
- break;
-
- default:
- // No default.
- break;
- }
- break;
-
- case "2":
-switch ($name2) {
- case "1":
- return true;
- break;
-
- case "2":
- return true;
- break;
-
- default:
- // No default.
- break;
-}
- break;
-}
-
-switch ($name) {
- case "1":
- switch ($name2) {
- case "1":
- return true;
-
- default:
- // No default.
- break;
- }
- break;
-
- default:
- // No default.
- break;
-}
-
-switch ($name2) {
- default:
- // No default.
- break;
-}
-
-switch ($foo) {
- case "1":
- return true;
-
- default:
- if ($foo === FALSE) {
- break(2);
- }
- break;
-}
-
-// Valid SWITCH statement.
-switch ($something) {
- case '1';
- $case = '1';
- return '1';
-
- case '2';
- case '3';
- $case = '5';
- return '2';
-
- case '4';
- $case = '4';
- return '3';
-
- default;
- $case = null;
- return '4';
-}
-
-switch ($something) {
- case '1':
- $case = '1';
- break;
-
- case '2':
- throw new Exception('message');
-
- default:
- throw new Exception('message');
-}
-
-switch ($something) {
- case '1';
- echo 'one';
- break;
-
- default:
- echo 'default';
- exit;
-}
-
-switch ($foo) {
- case '1':
- return; // comment
- break;
-
-}
-
-// Correct Multi line breaking statement with return.
-switch ($foo) {
- case 1:
- return array(
- 'whiz',
- 'bang',
- );
-
- case 2:
- return helper_func(
- 'whiz',
- 'bang'
- );
-
- default:
- throw new Exception();
-}
-
-switch ($foo) {
- case 'bar':
- throw new \Exception(
- 'bar'
- );
-
- default:
- throw new \Exception(
- 'bar'
- );
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.js
deleted file mode 100644
index 08e1c3ff..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.js
+++ /dev/null
@@ -1,287 +0,0 @@
-
-
-// Valid SWITCH statement.
-switch (something) {
- case '1':
- myvar = '1';
- break;
-
- case '2':
- case '3':
- myvar = '5';
- break;
-
- case '4':
- myvar = '4';
- break;
-
- default:
- myvar = null;
- break;
-}
-
-// Alignment wrong.
-switch (something) {
- case '1':
- myvar = '1';
- break;
-
-case '2':
- case '3':
- myvar = '5';
- break;
-
-case '4':
- myvar = '4';
-break;
-
- default:
- myvar = null;
- break;
-}
-
-// Closing brace wrong.
-switch (something) {
- case '1':
- myvar = '1';
- break;
- }
-
-// PEAR style.
-switch (something) {
-case '1':
- myvar = '1';
- break;
-case '2':
-case '3':
- myvar = '5';
- break;
-case '4':
- myvar = '4';
- break;
-default:
- myvar = null;
- break;
-}
-
-// Valid, but missing BREAKS.
-switch (something) {
- case '1':
- myvar = '1';
-
- case '2':
- case '3':
- myvar = '5';
-
- case '4':
- myvar = '4';
-
- default:
- myvar = null;
-}
-
-// Invalid, and missing BREAKS.
-switch (something) {
- Case '1' :
- myvar = '1';
-
-case '2':
- case '3' :
- myvar = '5';
-
- case'4':
- myvar = '4';
-
- Default :
- myvar = null;
- something = 'hello';
- other = 'hi';
- }
-
-// Valid
-switch (condition) {
- case 'string':
- varStr = 'test';
-
- default:
- // Ignore the default.
- break;
-}
-
-// No default comment
-switch (condition) {
- case 'string':
- varStr = 'test';
-
- default:
- break;
-}
-
-// Break problems
-switch (condition) {
- case 'string':
-
-
- varStr = 'test';
-
- break;
-
-
- case 'bool':
- varStr = 'test';
-
-
- break;
- default:
-
- varStr = 'test';
- break;
-
-}
-
-switch (var) {
- case 'one':
- case 'two':
- break;
-
- case 'three':
- // Nothing to do.
- break;
-
- case 'four':
- echo hi;
- break;
-
- default:
- // No default.
- break;
-}
-
-switch (var) {
- case 'one':
- if (blah) {
- }
-
- break;
-
- default:
- // No default.
- break;
-}
-
-switch (name) {
- case "1":
- switch (name2) {
- case "1":
- return true;
- break;
-
- case "2":
- return true;
- break;
-
- default:
- // No default.
- break;
- }
- break;
-
- case "2":
-switch (name2) {
- case "1":
- return true;
- break;
-
- case "2":
- return true;
- break;
-
- default:
- // No default.
- break;
-}
- break;
-}
-
-switch (name) {
- case "1":
- switch (name2) {
- case "1":
- return true;
-
- default:
- // No default.
- break;
- }
- break;
-
- default:
- // No default.
- break;
-}
-
-switch (name2) {
- default:
- // No default.
- break;
-}
-
-switch (foo) {
- case "1":
- return true;
-
- default:
- if (foo === false) {
- break;
- }
- break;
-}
-
-// Valid SWITCH statement.
-switch (something) {
- case '1':
- myvar = '1';
- return '1';
-
- case '2':
- case '3':
- myvar = '5';
- return '2';
-
- case '4':
- myvar = '4';
- return '3';
-
- default:
- myvar = null;
- return '4';
-}
-
-switch (something) {
- case '1':
- myvar = '1';
- break;
-
- case '2':
- throw 'message';
-
- default:
- throw 'message';
-}
-
-switch (something) {
- case '1';
- print('one');
- break;
-
- default:
- print('default');
- return;
-}
-
-switch (foo) {
- case '1':
- return; // comment
- break;
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php
deleted file mode 100644
index 85df3069..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-/**
- * Unit test class for the SwitchDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SwitchDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='SwitchDeclarationUnitTest.inc')
- {
- return array(
- 27 => 1,
- 29 => 1,
- 34 => 1,
- 36 => 1,
- 44 => 1,
- 48 => 1,
- 52 => 1,
- 54 => 1,
- 55 => 1,
- 56 => 1,
- 58 => 1,
- 59 => 1,
- 61 => 1,
- 62 => 1,
- 79 => 1,
- 85 => 2,
- 88 => 2,
- 89 => 2,
- 92 => 1,
- 95 => 3,
- 99 => 1,
- 116 => 1,
- 122 => 1,
- 127 => 2,
- 134 => 2,
- 135 => 1,
- 138 => 1,
- 143 => 1,
- 144 => 1,
- 147 => 1,
- 165 => 1,
- 172 => 1,
- 176 => 2,
- 180 => 1,
- 192 => 2,
- 196 => 1,
- 223 => 1,
- 266 => 1,
- 282 => 1,
- 284 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='SwitchDeclarationUnitTest.inc')
- {
- if ($testFile === 'SwitchDeclarationUnitTest.js') {
- return array(273 => 1);
- }
-
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JSLintUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JSLintUnitTest.js
deleted file mode 100644
index 797e0eea..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JSLintUnitTest.js
+++ /dev/null
@@ -1,2 +0,0 @@
-alert('hi')
-alert('hi');
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JSLintUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JSLintUnitTest.php
deleted file mode 100644
index b926ebb1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JSLintUnitTest.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * Unit test class for the JSLint sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Debug;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-use PHP_CodeSniffer\Config;
-
-class JSLintUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Should this test be skipped for some reason.
- *
- * @return void
- */
- protected function shouldSkipTest()
- {
- $jslPath = Config::getExecutablePath('jslint');
- return (is_null($jslPath));
-
- }//end shouldSkipTest()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 1 => 2,
- 2 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.js
deleted file mode 100644
index 797e0eea..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.js
+++ /dev/null
@@ -1,2 +0,0 @@
-alert('hi')
-alert('hi');
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.php
deleted file mode 100644
index aed0593c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Debug/JavaScriptLintUnitTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * Unit test class for the JavaScriptLint sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Debug;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-use PHP_CodeSniffer\Config;
-
-class JavaScriptLintUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Should this test be skipped for some reason.
- *
- * @return void
- */
- protected function shouldSkipTest()
- {
- $jslPath = Config::getExecutablePath('jsl');
- return (is_null($jslPath));
-
- }//end shouldSkipTest()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(2 => 1);
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.1.inc
deleted file mode 100644
index 3279edb5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.1.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-function myFunction() {}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.2.inc
deleted file mode 100644
index 05be6330..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.2.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-class MyClass {}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.3.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.3.inc
deleted file mode 100644
index ec1b0239..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.3.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-interface MyInterface {}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.4.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.4.inc
deleted file mode 100644
index ed045646..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.4.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-trait MyTrait {}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php
deleted file mode 100644
index 4efa0aee..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the FileExtension sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FileExtensionUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- switch ($testFile) {
- case 'FileExtensionUnitTest.1.inc':
- return array(1 => 1);
- default:
- return array();
- }
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc
deleted file mode 100644
index 8342b38c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc
+++ /dev/null
@@ -1,154 +0,0 @@
-<?php
-$value = ($one + $two);
-$value = $one + $two;
-
-$value = ($one - $two);
-$value = $one - $two;
-
-$value = ($one * $two);
-$value = $one * $two;
-
-$value = ($one / $two);
-$value = $one / $two;
-
-$value = ($one % $two);
-$value = $one % $two;
-
-$value = ($one + $two + $three);
-$value = $one + $two + $three;
-$value = ($one + ($two + $three));
-$value = $one + ($two + $three);
-
-$value++;
-$value--;
-$value = -1;
-$value = - 1;
-
-$value = (1 + 2);
-$value = 1 + 2;
-
-$value = (1 - 2);
-$value = 1 - 2;
-
-$value = (1 * 2);
-$value = 1 * 2;
-
-$value = (1 / 2);
-$value = 1 / 2;
-
-$value = (1 % 2);
-$value = 1 % 2;
-
-$value = (1 + 2 + 3);
-$value = 1 + 2 + 3;
-$value = (1 + (2 + 3));
-$value = 1 + (2 + 3);
-
-$value = $one + 2 + 3 - ($four * $five * (6 + 7)) + $nine + 2;
-$value = myFunction($tokens[$stackPtr - 1]);
-
-for ($i = 1 + 2; $i < 4 + 5; $i++) {
-}
-
-function myFunction()
-{
- $value = ($one + 1) + ($two + 2) + (myFunction() + 2);
- $value = myFunction() + 2;
- $value = (myFunction($var) + myFunction2($var));
- return -1;
-}
-
-$line = substr($line, 0, -2);
-$words = preg_split('|(\s+)|', $line."\n", -1, $flags);
-if (!isset($this->words[$wordPos-1]) || $this->words[$wordPos-1] !== ' ') {
-} else if ($this->tokens[$pos + 1] === "\n") {
-}
-
-if ($pos === count($this->tokens) - 1) {
- $file = '...'.substr($file, (($padding * -1) + 3));
-}
-
-if (substr($basename, -5) !== 'Sniff') {
- $i = ($this->_tokens[$i]['parenthesis_closer'] + 1);
-}
-
-$pos = $this->_getShortCommentEndPos();
-if ($pos === -1) {
- $stackPtr = ($tokens[$next][$to] - 1);
- $stackPtr = ($tokens[$next][$pattern[$i]['to']] + 1);
- $var = (($var1 + $var2) + $var3 + $var4)
-}
-
-$commentStart = ($phpcsFile->findPrevious(T_DOC_COMMENT, ($commentEnd - 1), null, true) + 1);
-$commentEnd = ($this->_phpcsFile->findNext(T_DOC_COMMENT, ($commentStart + 1), null, true) - 1);
-$expected .= '...'.substr($tokens[($stackPtr - 2)]['content'], -5).$tokens[$stackPtr]['content'];
-
-if (($tokens[$nextToken - 1]['code']) !== T_WHITESPACE) {
- $errorPos = ($params[(count($params) - 1)]->getLine() + $commentStart);
-}
-
-while (($nextSpace = $phpcsFile->findNext(T_WHITESPACE, $nextSpace + 1, $nextBreak)) !== false) {
-}
-
-foreach ($attributes as $id => &$attribute) {
-}
-
-class MyClass
-{
-
-
- public function &myFunction(array &$one, array &$two)
- {
-
- }//end myFunction()
-
-
-}//end class
-
-if ($index < -1) $index = 0;
-if ($index < - 1) $index = 0;
-
-$three = ceil($one / $two);
-$three = ceil(($one / $two) / $four);
-$three = ceil($one / ($two / $four));
-
-$four = -0.25;
-
-$three = ceil($one[1] / $two);
-
-switch ($number % 10) {
- case -1:
- $suffix = 'st';
- break;
-}
-
-$expectedPermission = array(
- 'granted' => 4,
- 'denied' => 1,
- 'cascade' => TRUE,
- 'blockergranted' => 2,
- 'blockerdenied' => - 3,
- 'effective' => TRUE,
- );
-
-$value = (int) isset($blah) + 2;
-$value = (int) isset($blah) + (int) isset($foo) + (int) isset($bar);
-
-doSomething(getValue($var, 2)) - $y;
-
-$codeFiles = array($global => $codeFiles[$global]) + $codeFiles;
-
-$var = array(-1);
-$var = [-1];
-$var = [0, -1, -2];
-
-$cntPages = ceil(count($items) / self::ON_PAGE);
-
-error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
-error_reporting(E_ALL & ~E_NOTICE | ~E_WARNING);
-$results = $stmt->fetchAll(\PDO::FETCH_ASSOC | \PDO::FETCH_GROUP | \PDO::FETCH_UNIQUE);
-foo(1 + 2 + 3);
-
-if (empty($foo[-1]) === true) {
- $foo[-1] = 'foo';
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc.fixed
deleted file mode 100644
index b061e4d7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.inc.fixed
+++ /dev/null
@@ -1,154 +0,0 @@
-<?php
-$value = ($one + $two);
-$value = ($one + $two);
-
-$value = ($one - $two);
-$value = ($one - $two);
-
-$value = ($one * $two);
-$value = ($one * $two);
-
-$value = ($one / $two);
-$value = ($one / $two);
-
-$value = ($one % $two);
-$value = ($one % $two);
-
-$value = ($one + $two + $three);
-$value = ($one + $two + $three);
-$value = ($one + ($two + $three));
-$value = ($one + ($two + $three));
-
-$value++;
-$value--;
-$value = -1;
-$value = - 1;
-
-$value = (1 + 2);
-$value = (1 + 2);
-
-$value = (1 - 2);
-$value = (1 - 2);
-
-$value = (1 * 2);
-$value = (1 * 2);
-
-$value = (1 / 2);
-$value = (1 / 2);
-
-$value = (1 % 2);
-$value = (1 % 2);
-
-$value = (1 + 2 + 3);
-$value = (1 + 2 + 3);
-$value = (1 + (2 + 3));
-$value = (1 + (2 + 3));
-
-$value = ($one + 2 + 3 - ($four * $five * (6 + 7)) + $nine + 2);
-$value = myFunction($tokens[($stackPtr - 1)]);
-
-for ($i = (1 + 2); $i < (4 + 5); $i++) {
-}
-
-function myFunction()
-{
- $value = (($one + 1) + ($two + 2) + (myFunction() + 2));
- $value = (myFunction() + 2);
- $value = (myFunction($var) + myFunction2($var));
- return -1;
-}
-
-$line = substr($line, 0, -2);
-$words = preg_split('|(\s+)|', $line."\n", -1, $flags);
-if (!isset($this->words[($wordPos-1)]) || $this->words[($wordPos-1)] !== ' ') {
-} else if ($this->tokens[($pos + 1)] === "\n") {
-}
-
-if ($pos === (count($this->tokens) - 1)) {
- $file = '...'.substr($file, (($padding * -1) + 3));
-}
-
-if (substr($basename, -5) !== 'Sniff') {
- $i = ($this->_tokens[$i]['parenthesis_closer'] + 1);
-}
-
-$pos = $this->_getShortCommentEndPos();
-if ($pos === -1) {
- $stackPtr = ($tokens[$next][$to] - 1);
- $stackPtr = ($tokens[$next][$pattern[$i]['to']] + 1);
- $var = (($var1 + $var2) + $var3 + $var4)
-}
-
-$commentStart = ($phpcsFile->findPrevious(T_DOC_COMMENT, ($commentEnd - 1), null, true) + 1);
-$commentEnd = ($this->_phpcsFile->findNext(T_DOC_COMMENT, ($commentStart + 1), null, true) - 1);
-$expected .= '...'.substr($tokens[($stackPtr - 2)]['content'], -5).$tokens[$stackPtr]['content'];
-
-if (($tokens[($nextToken - 1)]['code']) !== T_WHITESPACE) {
- $errorPos = ($params[(count($params) - 1)]->getLine() + $commentStart);
-}
-
-while (($nextSpace = $phpcsFile->findNext(T_WHITESPACE, ($nextSpace + 1), $nextBreak)) !== false) {
-}
-
-foreach ($attributes as $id => &$attribute) {
-}
-
-class MyClass
-{
-
-
- public function &myFunction(array &$one, array &$two)
- {
-
- }//end myFunction()
-
-
-}//end class
-
-if ($index < -1) $index = 0;
-if ($index < - 1) $index = 0;
-
-$three = ceil($one / $two);
-$three = ceil(($one / $two) / $four);
-$three = ceil($one / ($two / $four));
-
-$four = -0.25;
-
-$three = ceil($one[1] / $two);
-
-switch ($number % 10) {
- case -1:
- $suffix = 'st';
- break;
-}
-
-$expectedPermission = array(
- 'granted' => 4,
- 'denied' => 1,
- 'cascade' => TRUE,
- 'blockergranted' => 2,
- 'blockerdenied' => - 3,
- 'effective' => TRUE,
- );
-
-$value = ((int) isset($blah) + 2);
-$value = ((int) isset($blah) + (int) isset($foo) + (int) isset($bar));
-
-(doSomething(getValue($var, 2)) - $y);
-
-$codeFiles = (array($global => $codeFiles[$global]) + $codeFiles);
-
-$var = array(-1);
-$var = [-1];
-$var = [0, -1, -2];
-
-$cntPages = ceil(count($items) / self::ON_PAGE);
-
-error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
-error_reporting(E_ALL & ~E_NOTICE | ~E_WARNING);
-$results = $stmt->fetchAll(\PDO::FETCH_ASSOC | \PDO::FETCH_GROUP | \PDO::FETCH_UNIQUE);
-foo(1 + 2 + 3);
-
-if (empty($foo[-1]) === true) {
- $foo[-1] = 'foo';
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js
deleted file mode 100644
index 73006d98..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js
+++ /dev/null
@@ -1,116 +0,0 @@
-value = (one + two);
-value = one + two;
-
-value = (one - two);
-value = one - two;
-
-value = (one * two);
-value = one * two;
-
-value = (one / two);
-value = one / two;
-
-value = (one % two);
-value = one % two;
-
-value = (one + two + three);
-value = one + two + three;
-value = (one + (two + three));
-value = one + (two + three);
-
-value++;
-value--;
-value = -1;
-value = - 1;
-
-value = (1 + 2);
-value = 1 + 2;
-
-value = (1 - 2);
-value = 1 - 2;
-
-value = (1 * 2);
-value = 1 * 2;
-
-value = (1 / 2);
-value = 1 / 2;
-
-value = (1 % 2);
-value = 1 % 2;
-
-value = (1 + 2 + 3);
-value = 1 + 2 + 3;
-value = (1 + (2 + 3));
-value = 1 + (2 + 3);
-
-value = one + 2 + 3 - (four * five * (6 + 7)) + nine + 2;
-value = myFunction(tokens[stackPtr - 1]);
-
-for (i = 1 + 2; i < 4 + 5; i++) {
-}
-
-function myFunction()
-{
- value = (one + 1) + (two + 2) + (myFunction() + 2);
- value = myFunction() + 2;
- value = (myFunction(mvar) + myFunction2(mvar));
- return -1;
-}
-
-params['mode'] = id.replace(/WidgetType/, '');
-
-if (index < -1) index = 0;
-if (index < - 1) index = 0;
-
-var classN = prvId.replace(/\./g, '-');
-
-three = myFunction(one / two);
-three = myFunction((one / two) / four);
-three = myFunction(one / (two / four));
-
-four = -0.25;
-
-id = id.replace(/row\/:/gi, '');
-return /MSIE/.test(navigator.userAgent);
-
-var re = new RegExp(/<\/?(\w+)((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>/gim);
-
-var options = {
- minVal: -1,
- maxVal: -1
-};
-
-stepWidth = Math.round(this.width / 5);
-
-date.setMonth(d[2] - 1);
-
-switch (number % 10) {
- case -1:
- suffix = 'st';
- break;
-}
-
-var pathSplit = ipt.value.split(/\/|\\/);
-
-if (pairs[i].search(/=/) !== -1) {
-}
-
-if (urlValue.search(/[a-zA-z]+:\/\//) !== 0) {
-}
-
-if (urlValue.search(/[a-zA-z]+:\/\/*/) !== 0) {
-}
-
-if (!value || /^\s*$/.test(value)) {
- return true;
-}
-
-parseInt(dfx.attr(selectors[idx], 'elemOffsetTop'), 10) - scrollCoords.y + 'px'
-
-if (something === true
- ^ somethingElse === true
-) {
- return false;
-}
-
-if (true === /^\d*\.?\d*$/.test(input)) return true;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js.fixed
deleted file mode 100644
index bff62466..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.js.fixed
+++ /dev/null
@@ -1,116 +0,0 @@
-value = (one + two);
-value = one + two;
-
-value = (one - two);
-value = (one - two);
-
-value = (one * two);
-value = (one * two);
-
-value = (one / two);
-value = (one / two);
-
-value = (one % two);
-value = (one % two);
-
-value = (one + two + three);
-value = one + two + three;
-value = (one + (two + three));
-value = one + (two + three);
-
-value++;
-value--;
-value = -1;
-value = - 1;
-
-value = (1 + 2);
-value = 1 + 2;
-
-value = (1 - 2);
-value = (1 - 2);
-
-value = (1 * 2);
-value = (1 * 2);
-
-value = (1 / 2);
-value = (1 / 2);
-
-value = (1 % 2);
-value = (1 % 2);
-
-value = (1 + 2 + 3);
-value = 1 + 2 + 3;
-value = (1 + (2 + 3));
-value = 1 + (2 + 3);
-
-value = one + 2 + (3 - (four * five * (6 + 7))) + nine + 2;
-value = myFunction(tokens[(stackPtr - 1)]);
-
-for (i = 1 + 2; i < 4 + 5; i++) {
-}
-
-function myFunction()
-{
- value = (one + 1) + (two + 2) + (myFunction() + 2);
- value = myFunction() + 2;
- value = (myFunction(mvar) + myFunction2(mvar));
- return -1;
-}
-
-params['mode'] = id.replace(/WidgetType/, '');
-
-if (index < -1) index = 0;
-if (index < - 1) index = 0;
-
-var classN = prvId.replace(/\./g, '-');
-
-three = myFunction(one / two);
-three = myFunction((one / two) / four);
-three = myFunction(one / (two / four));
-
-four = -0.25;
-
-id = id.replace(/row\/:/gi, '');
-return /MSIE/.test(navigator.userAgent);
-
-var re = new RegExp(/<\/?(\w+)((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>/gim);
-
-var options = {
- minVal: -1,
- maxVal: -1
-};
-
-stepWidth = Math.round(this.width / 5);
-
-date.setMonth(d[2] - 1);
-
-switch (number % 10) {
- case -1:
- suffix = 'st';
- break;
-}
-
-var pathSplit = ipt.value.split(/\/|\\/);
-
-if (pairs[i].search(/=/) !== -1) {
-}
-
-if (urlValue.search(/[a-zA-z]+:\/\//) !== 0) {
-}
-
-if (urlValue.search(/[a-zA-z]+:\/\/*/) !== 0) {
-}
-
-if (!value || /^\s*$/.test(value)) {
- return true;
-}
-
-(parseInt(dfx.attr(selectors[idx], 'elemOffsetTop'), 10) - scrollCoords.y) + 'px'
-
-if (something === true
- ^ somethingElse === true
-) {
- return false;
-}
-
-if (true === /^\d*\.?\d*$/.test(input)) return true;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php
deleted file mode 100644
index 0bf43b1e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-/**
- * Unit test class for the OperatorBracket sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Formatting;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class OperatorBracketUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='OperatorBracketUnitTest.inc')
- {
- switch ($testFile) {
- case 'OperatorBracketUnitTest.inc':
- return array(
- 3 => 1,
- 6 => 1,
- 9 => 1,
- 12 => 1,
- 15 => 1,
- 18 => 2,
- 20 => 1,
- 25 => 1,
- 28 => 1,
- 31 => 1,
- 34 => 1,
- 37 => 1,
- 40 => 1,
- 43 => 2,
- 45 => 1,
- 47 => 5,
- 48 => 1,
- 50 => 2,
- 55 => 2,
- 56 => 1,
- 63 => 2,
- 64 => 1,
- 67 => 1,
- 86 => 1,
- 90 => 1,
- 109 => 1,
- 130 => 1,
- 134 => 1,
- 135 => 2,
- 137 => 1,
- 139 => 1,
- );
- break;
- case 'OperatorBracketUnitTest.js':
- return array(
- 5 => 1,
- 8 => 1,
- 11 => 1,
- 14 => 1,
- 24 => 1,
- 30 => 1,
- 33 => 1,
- 36 => 1,
- 39 => 1,
- 46 => 1,
- 47 => 1,
- 63 => 1,
- 108 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc
deleted file mode 100644
index d2d80f0e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-function myFunc() {}
-function myFunc( ) {}
-function myFunc($blah) {}
-function myFunc( $blah ) {}
-function myFunc($blah, $blah2, $blah3) {}
-function myFunc($blah , $blah2, $blah3 ) {}
-function myFunc($blah,$blah2,$blah3) {}
-function myFunc($blah, $blah2, $blah3) {}
-function myFunc($blah='hello') {}
-function myFunc($blah = 'hello') {}
-function myFunc(PHP_CodeSniffer $object, array $array=array(), $blah3='yo') {}
-function myFunc( $blah='hello' , $blah2= 'hi', $blah3 = 'yo' ) {}
-function myFunc(PHP_CodeSniffer $object, array $array=array(), $blah3='yo') {}
-function myFunc( PHP_CodeSniffer $object, array $array=array(), $blah3='yo') {}
-function myFunc( array &$one, array &$two) {}
-function myFunc(&$blah) {}
-function myFunc( &$blah ) {}
-
-function multiLineFunction(
- array $flatList,
- $markup,
- array $otherList,
- $lastOffset=0
-) {
-}
-
-function multiLineFunction(
- $markup,
- array $otherList,
- $lastOffset=0
-) {
-}
-
-$noArgs_longVars = function ($longVar1, $longerVar2= false) use (
- $longVar1 , $longerVar2= false,
- $muchLongerVar3
-) {
- // body
-};
-
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing equalsSpacing 1
-function myFunc($blah = 'hello') {}
-function myFunc($blah = 'hello') {}
-function myFunc($blah = 'hello') {}
-function myFunc($blah = 'hello') {}
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing equalsSpacing 0
-
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesBeforeClose 1
-function myFunc($blah) {}
-function myFunc( $blah ) {}
-function myFunc( $blah ) {}
-function myFunc( array $blah ) {}
-function myFunc(array $blah ) {}
-function myFunc( array $blah ) {}
-function myFunc() {}
-function myFunc( ) {}
-
-function multiLineFunction(
- array $flatList,
- $markup,
- array $otherList,
- $lastOffset=0
-) {
-}
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesBeforeClose 0
-
-function myFunc($req, $opt=null, ...$params) {}
-function myFunc($param, &...$moreParams) {}
-
-function MissingParamTypeInDocBlock(array$a = null, callable$c, \ArrayObject$o, $foo = []) {}
-
-function myFunc(...$args) {}
-function myFunc( ...$args) {}
-function myFunc(... $args) {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc.fixed
deleted file mode 100644
index 449d9c1a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc.fixed
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-function myFunc() {}
-function myFunc() {}
-function myFunc($blah) {}
-function myFunc($blah) {}
-function myFunc($blah, $blah2, $blah3) {}
-function myFunc($blah, $blah2, $blah3) {}
-function myFunc($blah, $blah2, $blah3) {}
-function myFunc($blah, $blah2, $blah3) {}
-function myFunc($blah='hello') {}
-function myFunc($blah='hello') {}
-function myFunc(PHP_CodeSniffer $object, array $array=array(), $blah3='yo') {}
-function myFunc($blah='hello', $blah2='hi', $blah3='yo') {}
-function myFunc(PHP_CodeSniffer $object, array $array=array(), $blah3='yo') {}
-function myFunc(PHP_CodeSniffer $object, array $array=array(), $blah3='yo') {}
-function myFunc(array &$one, array &$two) {}
-function myFunc(&$blah) {}
-function myFunc(&$blah) {}
-
-function multiLineFunction(
- array $flatList,
- $markup,
- array $otherList,
- $lastOffset=0
-) {
-}
-
-function multiLineFunction(
- $markup,
- array $otherList,
- $lastOffset=0
-) {
-}
-
-$noArgs_longVars = function ($longVar1, $longerVar2=false) use (
- $longVar1, $longerVar2=false,
- $muchLongerVar3
-) {
- // body
-};
-
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing equalsSpacing 1
-function myFunc($blah = 'hello') {}
-function myFunc($blah = 'hello') {}
-function myFunc($blah = 'hello') {}
-function myFunc($blah = 'hello') {}
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing equalsSpacing 0
-
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesAfterOpen 1
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesBeforeClose 1
-function myFunc( $blah ) {}
-function myFunc( $blah ) {}
-function myFunc( $blah ) {}
-function myFunc( array $blah ) {}
-function myFunc( array $blah ) {}
-function myFunc( array $blah ) {}
-function myFunc() {}
-function myFunc() {}
-
-function multiLineFunction(
- array $flatList,
- $markup,
- array $otherList,
- $lastOffset=0
-) {
-}
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesAfterOpen 0
-// @codingStandardsChangeSetting Squiz.Functions.FunctionDeclarationArgumentSpacing requiredSpacesBeforeClose 0
-
-function myFunc($req, $opt=null, ...$params) {}
-function myFunc($param, &...$moreParams) {}
-
-function MissingParamTypeInDocBlock(array $a=null, callable $c, \ArrayObject $o, $foo=[]) {}
-
-function myFunc(...$args) {}
-function myFunc(...$args) {}
-function myFunc(... $args) {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php
deleted file mode 100644
index 3c85c763..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionDeclarationArgumentSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionDeclarationArgumentSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 5 => 2,
- 7 => 2,
- 8 => 2,
- 9 => 2,
- 11 => 2,
- 13 => 7,
- 14 => 2,
- 15 => 2,
- 16 => 4,
- 18 => 2,
- 35 => 2,
- 36 => 3,
- 44 => 2,
- 45 => 1,
- 46 => 1,
- 51 => 2,
- 53 => 2,
- 55 => 1,
- 56 => 1,
- 58 => 1,
- 73 => 7,
- 76 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.inc
deleted file mode 100644
index e7842d2d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.inc
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-
-
-function func1()
-{
-
-}//end func1()
-
-
-function func1() {
-
-}//end func1()
-
-
-class MyClass
-{
-
-
- private function func1()
- {
-
- }//end func1()
-
-
- public function func1() {
-
- }//end func1()
-
-
-}//end class
-
-
-abstract class MyClass
-{
-
-
- abstract function func1();
-
-
- public function func1() {
-
- }//end func1()
-
-
-}//end class
-
-
-interface MyInterface
-{
-
-
- function func1();
-
-
- function func2() ;
-
-
-}//end interface
-
-function recurseCreateTree(
- array $flatList,
- $markup,
- $lastOffset=0
-) {
-}
-
-
-function test ( ){}
-
-function parent() {}
-function self() {}
-function false() {}
-function true() {}
-function null() {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php
deleted file mode 100644
index 6ab31e45..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 55 => 1,
- 68 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.inc
deleted file mode 100644
index 27102d05..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-function myFunc($blah, $x, $blah) {}
-function myFunc($a, $b, $c) {}
-function myFunc($a, $a, $a) {}
-function myFunc($a='1', $b='1', $a='2') {}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php
deleted file mode 100644
index c8ca9235..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionDuplicateArgument sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionDuplicateArgumentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 4 => 2,
- 5 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.inc
deleted file mode 100644
index b7b7f205..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-function func1() {}
-
-class MyClass
-{
- function func1() {}
-}
-
-interface MyInterface
-{
- function func1() {}
-}
-
-function __autoload($class) {}
-
-echo preg_replace_callback('~-([a-z])~', function ($match) { return strtoupper($match[1]); }, 'hello-world');
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php
deleted file mode 100644
index ca93fc94..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the GlobalFunction sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class GlobalFunctionUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(2 => 1);
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.inc
deleted file mode 100644
index a44f5ccd..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-Function MyFunction() {}
-Public function MyFunction() {}
-Private function MyFunction() {}
-Protected function MyFunction() {}
-Static function MyFunction() {}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php
deleted file mode 100644
index d1529b4c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * Unit test class for the LowercaseFunctionKeywords sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LowercaseFunctionKeywordsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 3 => 1,
- 4 => 1,
- 5 => 1,
- 6 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.inc
deleted file mode 100644
index 469694ea..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.inc
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-public function someFunctionWithAVeryLongName($firstParameter='something',
- $secondParameter='booooo',
- $third=null, $fourthParameter=false,
- $fifthParameter=123.12,
- $sixthParam=true
-){
-}
-
-function someFunctionWithAVeryLongName2(
-$firstParameter='something',
-$secondParameter='booooo',
-) {
-}
-
-function blah() {
-}
-
-function blah()
-{
-}
-
-class MyClass
-{
-
- public function someFunctionWithAVeryLongName(
- $firstParameter='something',
- $secondParameter='booooo',
- $third=null,
- $fourthParameter=false,
- $fifthParameter=123.12,
- $sixthParam=true
- ) /** w00t */ {
- }
-
- public function someFunctionWithAVeryLongName2($firstParameter='something',
- $secondParameter='booooo',
- $third=null
- ) {
- }
-
- public function someFunctionWithAVeryLongName3(
- $firstParameter, $secondParameter, $third=null
- ) {
- }
-
- public function someFunctionWithAVeryLongName4(
- $firstParameter, $secondParameter
- ) {
- }
-
- public function someFunctionWithAVeryLongName5(
- $firstParameter,
- $secondParameter=array(1,2,3),
- $third=null
- ) {
- }
-
-}
-
-$noArgs_longVars = function () use (
- $longVar1,
- $longerVar2,
- $muchLongerVar3
-) {
- // body
-};
-
-$longArgs_longVars = function (
- $longArgument,
- $longerArgument,
- $muchLongerArgument
-) use (
- $longVar1,
- $longerVar2,
- $muchLongerVar3
-) {
- // body
-};
-
-$longArgs_longVars = function ($longArgument,
- $muchLongerArgument) use ($muchLongerVar3
-) {
- // body
-};
-
-$noArgs_longVars = function () use (
- $longVar1, $longerVar2,
- $muchLongerVar3
-) {
- // body
-};
-
-usort(
- $data,
- function ($a, $b) {
- // body
- }
-);
-
-function myFunction(
- $firstParameter,$secondParameter=[1,2,3],$third=null
-) {
-}
-
-if (array_filter(
- $commands,
- function ($cmd) use ($commandName) {
- return ($cmd['name'] == $commandName);
- }
-)) {
- // Do something
-}
-
-function foo( // comment
- $bar,
- $baz
-) { // comment
- // ...
-}
-
-function foo($bar = [
- 1,
- 2,
-], $foo)
-{
- // body
-}
-
-$foo = function ($bar = [
- 1,
- 2,
-]) use ($longVar1, $longerVar2) {
- // body
-};
-
-function foo($bar = [
- 1,
- 2,
-],
-$foo)
-{
- // body
-}
-
-function foo(
- $bar = [
- 1,
- 2,
- ],
- $foo
-) {
- // body
-}
-
-function foo(
- $param1,
-
- $param2,
-
- $param3,
-) : SomeClass {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.js
deleted file mode 100644
index c3a8ddf8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.js
+++ /dev/null
@@ -1,73 +0,0 @@
-
-function someFunctionWithAVeryLongName(firstParameter='something',
- secondParameter='booooo',
- third=null, fourthParameter=false,
- fifthParameter=123.12,
- sixthParam=true
-){
-}
-
-function someFunctionWithAVeryLongName2(
-firstParameter='something',
-secondParameter='booooo',
-) {
-}
-
-function blah() {
-}
-
-function blah()
-{
-}
-
-var object =
-{
-
- someFunctionWithAVeryLongName: function(
- firstParameter='something',
- secondParameter='booooo',
- third=null,
- fourthParameter=false,
- fifthParameter=123.12,
- sixthParam=true
- ) /** w00t */ {
- }
-
- someFunctionWithAVeryLongName2: function (firstParameter='something',
- secondParameter='booooo',
- third=null
- ) {
- }
-
- someFunctionWithAVeryLongName3: function (
- firstParameter, secondParameter, third=null
- ) {
- }
-
- someFunctionWithAVeryLongName4: function (
- firstParameter, secondParameter
- ) {
- }
-
- someFunctionWithAVeryLongName5: function (
- firstParameter,
- secondParameter=array(1,2,3),
- third=null
- ) {
- }
-
-}
-
-var a = Function('return 1+1');
-
-class test
-{
- myFunction() {
- return false;
- }
-
- myFunction2()
- {
- return false;
- }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php
deleted file mode 100644
index 23004759..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-/**
- * Unit test class for the MultiLineFunctionDeclaration sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class MultiLineFunctionDeclarationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='MultiLineFunctionDeclarationUnitTest.inc')
- {
- if ($testFile === 'MultiLineFunctionDeclarationUnitTest.inc') {
- $errors = array(
- 2 => 1,
- 3 => 1,
- 4 => 2,
- 5 => 1,
- 7 => 1,
- 11 => 1,
- 12 => 1,
- 13 => 1,
- 16 => 1,
- 36 => 1,
- 43 => 2,
- 48 => 1,
- 81 => 1,
- 82 => 2,
- 88 => 1,
- 102 => 2,
- 137 => 1,
- 141 => 2,
- 142 => 1,
- 158 => 1,
- 160 => 1,
- );
- } else {
- $errors = array(
- 2 => 1,
- 3 => 1,
- 4 => 2,
- 5 => 1,
- 7 => 1,
- 11 => 1,
- 12 => 1,
- 13 => 1,
- 16 => 1,
- 26 => 1,
- 36 => 1,
- 43 => 2,
- 48 => 1,
- 65 => 1,
- );
- }//end if
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.inc
deleted file mode 100644
index aacef347..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-function getSomeValue() {}
-function parseMyDSN() {}
-function get_some_value() {}
-function getSomeValue_Again() {}
-function _getSomeValue() {}
-function _parseMyDSN() {}
-function _get_some_value() {}
-function _getSomeValue_Again() {}
-
-function __construct() {}
-function __destruct() {}
-function __myFunction() {}
-function __my_function() {}
-
-function XMLParser() {}
-function xmlParser() {}
-
-echo preg_replace_callback('~-([a-z])~', function ($match) { return strtoupper($match[1]); }, 'hello-world');
-
-/* @codingStandardsIgnoreStart */
-class MyClass
-{
- /* @codingStandardsIgnoreEnd */
- public function __construct() {}
-}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php
deleted file mode 100644
index bad979e8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * Unit test class for the ValidFunctionName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\NamingConventions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ValidFunctionNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 5 => 1,
- 6 => 1,
- 7 => 1,
- 8 => 1,
- 9 => 1,
- 11 => 1,
- 12 => 1,
- 13 => 1,
- 14 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.inc
deleted file mode 100644
index ef608bd5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.inc
+++ /dev/null
@@ -1,119 +0,0 @@
-<?php
-$varName = 'hello';
-$var_name = 'hello';
-$varname = 'hello';
-$_varName = 'hello';
-
-class MyClass
-{
- $varName = 'hello';
- $var_name = 'hello';
- $varname = 'hello';
- $_varName = 'hello';
-
- public $varName = 'hello';
- public $var_name = 'hello';
- public $varname = 'hello';
- public $_varName = 'hello';
-
- protected $varName = 'hello';
- protected $var_name = 'hello';
- protected $varname = 'hello';
- protected $_varName = 'hello';
-
- private $_varName = 'hello';
- private $_var_name = 'hello';
- private $_varname = 'hello';
- private $varName = 'hello';
-}
-
-echo $varName;
-echo $var_name;
-echo $varname;
-echo $_varName;
-
-echo "Hello $varName";
-echo "Hello $var_name";
-echo "Hello ${var_name}";
-echo "Hello $varname";
-echo "Hello $_varName";
-
-echo 'Hello '.$varName;
-echo 'Hello '.$var_name;
-echo 'Hello '.$varname;
-echo 'Hello '.$_varName;
-
-echo $_SERVER['var_name'];
-echo $_REQUEST['var_name'];
-echo $_GET['var_name'];
-echo $_POST['var_name'];
-echo $GLOBALS['var_name'];
-
-echo MyClass::$varName;
-echo MyClass::$var_name;
-echo MyClass::$varname;
-echo MyClass::$_varName;
-
-echo $this->varName2;
-echo $this->var_name2;
-echo $this->varname2;
-echo $this->_varName2;
-echo $object->varName2;
-echo $object->var_name2;
-echo $object_name->varname2;
-echo $object_name->_varName2;
-
-echo $this->myFunction($one, $two);
-echo $object->myFunction($one_two);
-
-$error = "format is \$GLOBALS['$varName']";
-
-echo $_SESSION['var_name'];
-echo $_FILES['var_name'];
-echo $_ENV['var_name'];
-echo $_COOKIE['var_name'];
-
-$XML = 'hello';
-$myXML = 'hello';
-$XMLParser = 'hello';
-$xmlParser = 'hello';
-
-echo "{$_SERVER['HOSTNAME']} $var_name";
-
-// Need to be the last thing in this test file.
-$obj->$classVar = $prefix.'-'.$type;
-
-class foo
-{
- const bar = <<<BAZ
-qux
-BAZ;
-}
-
-$foo = <<<'BAR'
-$123
-"$456"
-BAR;
-
-$foo = <<<BAR
-$123
-"$456"
-BAR;
-
-class a
-{
- protected
- $_sheet,
- $_FieldParser,
- $_key;
-}
-
-var_dump($http_response_header);
-var_dump($HTTP_RAW_POST_DATA);
-var_dump($php_errormsg);
-
-trait MyTrait
-{
- public $_varName = 'hello';
- private $_varName = 'hello';
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php
deleted file mode 100644
index 5e14e733..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-/**
- * Unit test class for the ValidVariableName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\NamingConventions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ValidVariableNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- $errors = array(
- 3 => 1,
- 5 => 1,
- 10 => 1,
- 12 => 1,
- 15 => 1,
- 17 => 1,
- 20 => 1,
- 22 => 1,
- 25 => 1,
- 27 => 1,
- 31 => 1,
- 33 => 1,
- 36 => 1,
- 37 => 1,
- 39 => 1,
- 42 => 1,
- 44 => 1,
- 53 => 1,
- 58 => 1,
- 62 => 1,
- 63 => 1,
- 64 => 1,
- 67 => 1,
- 81 => 1,
- 106 => 1,
- 107 => 1,
- 108 => 1,
- 117 => 1,
- );
-
- return $errors;
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js
deleted file mode 100644
index 1c61fbfb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js
+++ /dev/null
@@ -1,37 +0,0 @@
-function test(id)
-{
-
- this.id = id;
-
-}
-/**/
-test.prototype = {
- init: function()
- {
- var x = {};
- x.name = 'test';
- x['phone'] = 123124324;
- var t = ['test', 'this'].join('');
- var y = ['test'].join('');
- var a = x[0];
- var z = x[x['name']];
- var p = x[x.name];
- }
-
-};
-
-function test() {
- this.errors['step_' + step] = errors;
- this.errors['test'] = x;
- this.errors['test' + 10] = x;
- this.errors['test' + y] = x;
- this.errors['test' + 'blah'] = x;
- this.errors[y] = x;
- this.errors[y + z] = x;
- this.permissions['workflow.cancel'] = x;
-}
-
-if (child.prototype) {
- above.prototype['constructor'] = parent;
- child.prototype['super'] = new above();
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.php
deleted file mode 100644
index 9f243187..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowObjectStringIndex sniff.
- *
- * @author Sertan Danis <sdanis@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Objects;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowObjectStringIndexUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='DisallowObjectStringIndexUnitTest.js')
- {
- if ($testFile !== 'DisallowObjectStringIndexUnitTest.js') {
- return array();
- }
-
- return array(
- 13 => 1,
- 17 => 1,
- 25 => 1,
- 35 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.inc
deleted file mode 100644
index 8a5c2323..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-$obj = new MyClass();
-$obj =& new MyClass();
-$obj = &new MyClass();
-new MyClass();
-
-$objects = array('one' => new MyClass());
-$object->myFunction(new MyClass());
-
-throw new MyException($msg);
-
-function foo() { return new MyClass(); }
-
-$doodad = $x ? new Foo : new Bar;
-
-function new
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php
deleted file mode 100644
index 8524f798..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the ObjectInstantiation sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Objects;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ObjectInstantiationUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 5 => 1,
- 8 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.js
deleted file mode 100644
index 8adcdd99..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.js
+++ /dev/null
@@ -1,39 +0,0 @@
-this.request({ action: 'getTypeFormatContents', });
-
-addTypeFormatButton.addClickEvent(function() {
- self.addNewTypeFormat();
-});
-
-var x = {};
-
-var y = {
- VarOne : 'If you ask me, thats if you ask',
- VarTwo : ['Alonzo played you', 'for a fool', 'esse'],
- VarThree: function(arg) {
- console.info(1);
- }
-};
-
-var z = {
- VarOne : 'If you ask me, thats if you ask',
- VarTwo : ['Alonzo played you', 'for a fool', 'esse'],
- VarThree: function(arg) {
- console.info(1);
- },
-};
-
-var x = function() {
- console.info(2);
-};
-
-AssetListingEditWidgetType.prototype = {
- init: function(data, assetid, editables)
- {
- }
-};
-
-AssetListingEditWidgetType.prototype = {
- init: function(data, assetid, editables)
- {
- },
-};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.php
deleted file mode 100644
index 2fba3341..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/ObjectMemberCommaUnitTest.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/**
- * Unit test class for the ObjectMemberComma sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Objects;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ObjectMemberCommaUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='ObjectMemberCommaUnitTest.js')
- {
- if ($testFile !== 'ObjectMemberCommaUnitTest.js') {
- return array();
- }
-
- return array(
- 1 => 1,
- 22 => 1,
- 38 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc
deleted file mode 100644
index fa8043cc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.inc
+++ /dev/null
@@ -1,133 +0,0 @@
-<?php
-if ($value === TRUE) {
-} else if ($value === FALSE) {
-}
-
-if ($value == TRUE) {
-} else if ($value == FALSE) {
-}
-
-if ($value) {
-} else if (!$value) {
-}
-
-if (is_array($array) === TRUE) {
-} else if (myFunction($value) === FALSE) {
-}
-
-if (is_array($array) == TRUE) {
-} else if (myFunction($value) == FALSE) {
-}
-
-if (is_array($array)) {
-} else if (!myFunction($value)) {
-}
-
-if ($value === TRUE || $other === FALSE) {
-}
-
-if ($value == TRUE || $other == FALSE) {
-}
-
-if ($value || !$other) {
-}
-
-if ($one === TRUE || $two === TRUE || $three === FALSE || $four === TRUE) {
-}
-
-if ($one || $two || !$three || $four) {
-}
-
-if ($var instanceof PHP_CodeSniffer) {
-}
-
-if (($var instanceof PHP_CodeSniffer) === false) {
-}
-
-if ($good && ($var instanceof PHP_CodeSniffer) === false && $good) {
-}
-
-if ($good === true && ($var instanceof PHP_CodeSniffer) === false) {
-}
-
-// Without brackets around inline IF condition.
-$var1 === TRUE
- ? $var2 = 0
- : $var2 = 1;
-
-$var1 === TRUE ? $var2 = 0 : $var2 = 1;
-?>
-<?php
-$var1 === TRUE ? $var2 = 0 : $var2 = 1;
-
-if ($var2 === TRUE) {
- $var1 === TRUE ? $var2 = 0 : $var2 = 1;
-}
-$var1 === TRUE ? $var2 = 0 : $var2 = 1;
-
-$var1
- ? $var2 = 0
- : $var2 = 1;
-
-$var1 ? $var2 = 0 : $var2 = 1;
-
-
-$var1 ? $var2 = 0 : $var2 = 1;
-
-if ($var2 === TRUE) {
- $var1 ? $var2 = 0 : $var2 = 1;
-}
-$var1 ? $var2 = 0 : $var2 = 1;
-
-if ($value) {
-} elseif (!$value) {
-}
-
-if (false === ($parent instanceof Foo) && ($parent instanceof Bar) === false) {
-}
-
-if (false === ($parent instanceof Foo) && $foo) {
-}
-
-while ($var1) {
-}
-
-while ($var1 === TRUE) {
-}
-
-do {
-
-} while ($var1);
-
-do {
-
-} while ($var1 === TRUE);
-
-for ($var1 = 10; $var1; $var1--) {
-}
-
-for ($var1 = 10; $var1 !== 0; $var1--) {
-}
-
-for ($var1 = ($var2 === 10); $var1; $var1--) {
-}
-
-while (TRUE) {
-}
-
-while (FALSE) {
-}
-
-$var = ($var1 === true) ? $var1 : "foobar";
-
-$var = ($var1 == true) ? $var1 : "foobar";
-
-$var = ($var1 === false) ? $var1 : "foobar";
-
-$var = ($var1 == false) ? $var1 : "foobar";
-
-$var = ($var1 === 0) ? $var1 : "foobar";
-
-$var = ($var1 == 0) ? $var1 : "foobar";
-
-function foo(string $bar, array $baz, ?MyClass $object) : MyClass {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.js
deleted file mode 100644
index 048223ba..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.js
+++ /dev/null
@@ -1,71 +0,0 @@
-if (value === TRUE) {
-} else if (value === FALSE) {
-}
-
-if (value == TRUE) {
-} else if (value == FALSE) {
-}
-
-if (value) {
-} else if (!value) {
-}
-
-if (value.isSomething === TRUE) {
-} else if (myFunction(value) === FALSE) {
-}
-
-if (value.isSomething == TRUE) {
-} else if (myFunction(value) == FALSE) {
-}
-
-if (value.isSomething) {
-} else if (!myFunction(value)) {
-}
-
-if (value === TRUE || other === FALSE) {
-}
-
-if (value == TRUE || other == FALSE) {
-}
-
-if (value || !other) {
-}
-
-if (one === TRUE || two === TRUE || three === FALSE || four === TRUE) {
-}
-
-if (one || two || !three || four) {
-}
-
-while (one == true) {
-}
-
-while (one === true) {
-}
-
-do {
-} while (one == true);
-
-do {
-} while (one === true);
-
-for (one = 10; one != 0; one--) {
-}
-
-for (one = 10; one !== 0; one--) {
-}
-
-for (type in types) {
-}
-
-variable = (variable2 === true) ? variable1 : "foobar";
-
-variable = (variable2 == true) ? variable1 : "foobar";
-
-variable = (variable2 === false) ? variable1 : "foobar";
-
-variable = (variable2 == false) ? variable1 : "foobar";
-
-variable = (variable2 === 0) ? variable1 : "foobar";
-
-variable = (variable2 == 0) ? variable1 : "foobar";
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php
deleted file mode 100644
index cd780843..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php
-/**
- * Unit test class for the ComparisonOperatorUsage sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Operators;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ComparisonOperatorUsageUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='ComparisonOperatorUsageUnitTest.inc')
- {
- switch ($testFile) {
- case 'ComparisonOperatorUsageUnitTest.inc':
- return array(
- 6 => 1,
- 7 => 1,
- 10 => 1,
- 11 => 1,
- 18 => 1,
- 19 => 1,
- 22 => 1,
- 23 => 1,
- 29 => 2,
- 32 => 2,
- 38 => 4,
- 47 => 2,
- 69 => 1,
- 72 => 1,
- 75 => 1,
- 78 => 1,
- 80 => 1,
- 82 => 1,
- 83 => 1,
- 89 => 1,
- 92 => 1,
- 100 => 1,
- 106 => 1,
- 112 => 1,
- 123 => 1,
- 127 => 1,
- 131 => 1,
- );
- break;
- case 'ComparisonOperatorUsageUnitTest.js':
- return array(
- 5 => 1,
- 6 => 1,
- 17 => 1,
- 18 => 1,
- 28 => 2,
- 40 => 1,
- 47 => 1,
- 52 => 1,
- 63 => 1,
- 67 => 1,
- 71 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.inc
deleted file mode 100644
index e8d3beb9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.inc
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-$var = ($var + 1);
-$var = ($one + 1);
-$var = ($var + 2);
-$var = ($one + $two + 1);
-$var += 1;
-$var += 2;
-$var += $one;
-$var += (1 + 2)
-$var = myFunction($var, ($one + 1));
-
-$var = ($var - 1);
-$var = ($one - 1);
-$var = ($var - 2);
-$var = ($one - $two - 1);
-$var -= 1;
-$var -= 2;
-$var -= $one;
-$var -= (1 + 2)
-$var = myFunction($var, ($one - 1));
-
-$var -= $var - 1;
-$var += $var - 1;
-
-$id = $id.'_'.($i-- - $x--).'_'.$x;
-$id = $id.'_'.(++$i - $x--).'_'.$x;
-$id = $id.'_'.(--$i - $x++).'_'.$x;
-
-$id = $id.'_'.$i++;
-$id = $id.'_'.($i++);
-$id = $id.'_'.$i--.'_';
-$id = $id.'_'.($i--).'_';
-
-$var = (1 - $var);
-$var = (1 + $var);
-
-$expected[$i]['sort_order'] = ($i + 1);
-$expected[($i + 1)]['sort_order'] = ($i + 1);
-
-$id = $id.($this->i++).$id;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php
deleted file mode 100644
index 28b07a56..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/**
- * Unit test class for the IncrementDecrementUsage sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Operators;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class IncrementDecrementUsageUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 6 => 1,
- 12 => 1,
- 16 => 1,
- 25 => 1,
- 26 => 1,
- 27 => 1,
- 29 => 1,
- 31 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.inc
deleted file mode 100644
index 328ccc5d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.inc
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-if ($value === TRUE || $other === FALSE) {
-}
-
-if ($value === TRUE OR $other === FALSE) {
-}
-
-if ($value === TRUE && $other === FALSE) {
-}
-
-if ($value === TRUE and $other === FALSE) {
-}
-
-if ($one === TRUE && ($two === TRUE || $three === TRUE)) {
-}
-
-if ($one === TRUE AND ($two === TRUE or $three === TRUE)) {
-}
-
-if ($a ^ $b) {
-}
-
-if ($a xor $b) {
-}
-
-if ($a XOR $b) {
-}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php
deleted file mode 100644
index d810a50f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the ValidLogicalOperators sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Operators;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ValidLogicalOperatorsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 5 => 1,
- 11 => 1,
- 17 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.css
deleted file mode 100644
index 94cc8f27..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.css
+++ /dev/null
@@ -1,23 +0,0 @@
-/* CSS Document */
-
-body {
-font-family: Arial, Helvetica, sans-serif;
-margin : 40px 0 0 0;
-padding : 0;
-/*background: #8FB7DB url(login_glow_bg.jpg) no-repeat 30% 0;*/
-background: #8FB7DB url(diag_lines_bg.gif) top left;
-}
-
-#login-container {
- margin-left: -225px;
- margin-top: -161px;
- position:absolute;
- top :50%;
- /*left :50%;*/
- width:450px;
-}
-
-#cacheConfig-dayLabel, #cacheConfig-hourLabel, #cacheConfig-minuteLabel {
- float: left;
- padding-right: 8px;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.inc
deleted file mode 100644
index 92dd49bc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.inc
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
-// This is a normal block comment that might
-// talk about functions like echo and print and if/else but
-// is not commented out code.
-
-// if (empty($this)) {echo 'This is will not work';}
-
-/*
-function myFunction()
-{
-
-}//end myFunction()
-*/
-
-//eval('$var = 4;');
-//$string = '$var = 4;';
-//eval($string);
-
-#eval('$var = 4;');
-#$string = '$var = 4;';
-#eval($string);
-
-if ($blah) {
- // This is a multi-line comment that goes over two indented
- // lines.
-
- // If it's null, then there must be no parameters for this
- // method.
-}
-
-// short.
-
-// Continue, as we're done with this token.
-
-/**
- * The listeners array.
- *
- * @var array(PHP_CodeSniffer_Sniff)
- */
-
-//
-
-/*
-*/
-
-function myFunction()
-{
-}//end myFunction()
-
-// ----------------------------
-// | A comment block |
-// ----------------------------
-
-// =============================
-// | A comment block |
-// =============================
-
-// *****************************
-// | A comment block |
-// *****************************
-
-/**
- * List of panels.
- *
- * XML structure:
- * <panels>
- * <panel_one_id>
- * <title>Title</title>
- * <panelContent>Contents</panelContent>
- * <panels>
- * <child_panel_id>...</child_panel_id>
- * </panels>
- * </panel_one_id>
- * </panels>
- *
- * @return void
- */
-
-/*
- [^\'"]
-*/
-
-// http://www.google.com
-
-// Base config function.
-
-// function ()
-
-// T_STRING is not a function call or not listed in _getFunctionListWithCallableArgument().
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php
deleted file mode 100644
index c7217c1d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/**
- * Unit test class for the CommentedOutCode sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class CommentedOutCodeUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getWarningList($testFile='CommentedOutCodeUnitTest.inc')
- {
- switch ($testFile) {
- case 'CommentedOutCodeUnitTest.inc':
- return array(
- 6 => 1,
- 8 => 1,
- 15 => 1,
- 19 => 1,
- 87 => 1,
- );
- break;
- case 'CommentedOutCodeUnitTest.css':
- return array(
- 7 => 1,
- 16 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.inc
deleted file mode 100644
index 4701c23e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-trySomething() || trySomethingElse();
-if (trySomething() === FALSE) {
- trySomethingElse();
-}
-
-$success || fail();
-if ($success === FALSE) {
- fail();
-}
-
-$foo = ($bar || $foo);
-
-doSomething() || die();
-
-if ($something || somethingElse()) {
- while ($foo && $bar) {
- }
-
- do {
- // Code here.
- }
- while ($foo && $bar);
-}
-
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.php
deleted file mode 100644
index 5fa63a5d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowBooleanStatement sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowBooleanStatementUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 8 => 1,
- 13 => 1,
- 15 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.inc
deleted file mode 100644
index 72f6e6d6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.inc
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-$var = TRUE;
-$var = ($foo === $bar);
-$var = ($foo * $bar);
-$var = !$foo;
-$var = ($foo || $bar);
-$var = ($foo === TRUE);
-$var = ($foo === TRUE
- || $bar === FALSE);
-$var = (!$foo);
-
-$var = is_array($foo);
-$var = myFunction($one, $two);
-$var = myFunction(
- 'one',
- 'two'
- );
-
-for ($i = ($stackPtr + 1); $i < $endStatement; $i++) {
-}
-
-// These conditions are allowed by this sniff.
-$var = myFunction(!$var);
-
-$depthAdv = array(
- $this,
- !$directLinks,
- FALSE,
- );
-
-$var = myFunction(
- $var,
- array(
- $this,
- !$directLinks,
- FALSE,
- );
-);
-
-for ($node = $fieldsTag->nextSibling; $node; $node = $node->nextSibling) {
- if ($node->nodeType !== XML_ELEMENT_NODE) {
- continue;
- }
-
- for ($node = $fields->nextSibling; $node; $node = $node->nextSibling) {
- if ($node->nodeType !== XML_ELEMENT_NODE) {
- continue;
- }
- }
-}
-
-$a = $b ? $c : $d;
-$a = $b === true ? $c : $d;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php
deleted file mode 100644
index a608bb42..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowComparisonAssignment sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowComparisonAssignmentUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 5 => 1,
- 6 => 1,
- 7 => 1,
- 8 => 1,
- 10 => 1,
- 52 => 1,
- 53 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.inc
deleted file mode 100644
index 46fbdab2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-if ($var1) {
- $var2 = 0;
-} else {
- $var2 = 1;
-}
-
-$var1 ? $var2 = 0 : $var2 = 1;
-
-function foo(string $bar, array $baz, ?MyClass $object) : MyClass {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.js
deleted file mode 100644
index 56387c06..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.js
+++ /dev/null
@@ -1,2 +0,0 @@
-x = (x?a:x);
-id = id.replace(/row\/:/gi, '');
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php
deleted file mode 100644
index 6af03dbb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowObEndFlush sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowInlineIfUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='DisallowInlineIfUnitTest.inc')
- {
- switch ($testFile) {
- case 'DisallowInlineIfUnitTest.inc':
- return array(8 => 1);
- break;
- case 'DisallowInlineIfUnitTest.js':
- return array(1 => 1);
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.inc
deleted file mode 100644
index e78322ac..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.inc
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-function getVar($varname='var', $var='var')
-{
- $var = $var2 = getVar();
- $var = $var2 = $var3 = '';
-
- if ($varname === 'var' || $var2 === 'varname' || $var = true) {
- $var[($var + 1)] = $var2;
- $var[($var = 1)] = $var2;
- }
-
- for ($i = $var; (null !== ($key = key($i))); next($i)) {
- while ($i = true) {
- echo $i = getVar();
- }
- }
-
- while ($row = $query->fetch(PDO::FETCH_NUM)) {
- $result[$row[0]] = array()
- $result[$row[0]][] = $current;
-
- self::$_inTransaction = TRUE;
- $$varName = $varValue;
- }
-
-}//end getVar()
-
-class myClass
-{
- private static $_dbh = NULL;
- public $dbh = NULL;
- protected $dbh = NULL;
- var $dbh = NULL; // Old PHP4 compatible code.
-}
-
-$var = $var2;
-list ($a, $b) = explode(',', $c);
-$var1 ? $var2 = 0 : $var2 = 1;
-
-$obj->$classVar = $prefix.'-'.$type;
-
-$closureWithDefaultParamter = function(array $testArray=array()) {};
-?>
-<?php $var = false; ?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php
deleted file mode 100644
index 0b2315ad..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowMultipleAssignments sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowMultipleAssignmentsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 5 => 2,
- 7 => 1,
- 9 => 1,
- 12 => 1,
- 14 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.inc
deleted file mode 100644
index b421c8c0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.inc
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-ob_start();
- echo 'hello';
- $contents = ob_get_contents();
-ob_end_clean();
-
-ob_start();
- echo 'hello';
-ob_end_flush();
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.php
deleted file mode 100644
index f67f41bb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowObEndFlushUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowObEndFlush sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowObEndFlushUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(9 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc
deleted file mode 100644
index 76ec4996..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.inc
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-for ($i = 0; $i < count($array); $i++) {
-}
-
-$num = count($array);
-
-while ($i < count($array)) {
-}
-
-do {
-} while ($i < count($array));
-
-for ($i = 0; $i < count($this->children); $i++) {
-}
-
-
-
-for ($i = 0; $i < sizeof($array); $i++) {
-}
-
-$num = sizeof($array);
-
-while ($i < sizeof($array)) {
-}
-
-do {
-} while ($i < sizeof($array));
-
-for ($i = 0; $i < sizeof($this->children); $i++) {
-}
-
-
-
-
-for ($i = 0; $i < strlen($string); $i++) {
-}
-
-$num = strlen($string);
-
-while ($i < strlen($string)) {
-}
-
-do {
-} while ($i < strlen($string));
-
-for ($i = 0; $i < strlen($this->string); $i++) {
-}
-
-for ($i = sizeof($array); $i > 0; $i--) {
-}
-
-do {
- echo $a->count;
- $a->count--;
-} while($a->count);
-
-for ($i = 0; $i < $a->count; $i++) {}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.js
deleted file mode 100644
index 8f7f7b94..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.js
+++ /dev/null
@@ -1,13 +0,0 @@
-for (var i = 0; i < permissions.length; i++) {
- // Code here.
-}
-
-var permLen = permissions.length;
-for (var length = 0; i < permLen; i++) {
- // Code here.
-}
-
-var myArray = [1, 2, 3, 4];
-for (var i = myArray.length; i >= 0; i--) {
- var x = i;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php
deleted file mode 100644
index 908f8650..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/**
- * Unit test class for the DisallowSizeFunctionsInLoops sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DisallowSizeFunctionsInLoopsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='DisallowSizeFunctionsInLoopsUnitTest.inc')
- {
- switch ($testFile) {
- case 'DisallowSizeFunctionsInLoopsUnitTest.inc':
- return array(
- 2 => 1,
- 7 => 1,
- 11 => 1,
- 13 => 1,
- 18 => 1,
- 23 => 1,
- 27 => 1,
- 29 => 1,
- 35 => 1,
- 40 => 1,
- 44 => 1,
- 46 => 1,
- );
- break;
- case 'DisallowSizeFunctionsInLoopsUnitTest.js':
- return array(1 => 1);
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.inc
deleted file mode 100644
index ca457a2e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.inc
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-error_log('test');
-print_r($array);
-var_dump($array);
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php
deleted file mode 100644
index 6e992254..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the DiscouragedFunctions sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DiscouragedFunctionsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 2 => 1,
- 3 => 1,
- 4 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc
deleted file mode 100644
index bd9e4483..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
- // Not embedded. Do not check here.
- echo 'hello';
-?>
-<html>
-<head>
-<title><?php echo $title ?></title>
-<script><?php echo $script; ?></script>
-</head>
-<body>
- <?php
- echo $body;
- ?>
- hello
- <?php
- echo $moreBody;
- ?>
- <?php echo 'hi'; ?>
- <?php echo 'hi'; ?>
- <?php echo 'hi;' ?>
- <?php echo 'hi'; echo 'hi;'; ?>
- <?php echo 'hi'; echo 'hi;'; ?>
-
- <?php
- ?>
- <?php ?>
-
- <?php
-
- echo $moreBody;
-
- ?>
- <?php
-
- echo $moreBody;
-
- ?>
-
- <?php
- echo $moreBody; ?>
- <?php echo $moreBody;
- ?>
-
- <?php
- echo 'hi';
- ?>
-
- <?php
-echo 'hi';
- ?>
-</body>
-</html>
-<?php
-function test()
-{
- foreach ($root->section as $section) {
- ?>
- <table>
- <?php if ($foo) {
- ?>
- <tr>
- </tr>
- <?php }
- ?>
- <?php
- foreach ($bar as $bar) {
- echo $bar;
- }
- }
-
- foreach ($root->section as $section) {
- ?>
- <table>
- <?php
- if ($foo) {
- ?>
- <tr>
- </tr>
- <?php
-}
- ?>
- <?php
- foreach ($bar as $bar) {
- echo $bar;
- }
- }
-}
-
-echo 'goodbye';
-
-function foo()
-{
-
- ?><a onClick="Javascript: set_hidden_field('<?php echo $link_offset - $num_per_page; ?>'); set_hidden_field('process_form', '0'); submit_form(); return false;"><?php
-
-}
-
-?>
-
- <strong><?php
- echo 'foo';
- ?></strong>
-
-?>
-
-</html>
-
-<?php if ($foo) { ?>
-<?php } ?>
-
-<?php echo 'oops'; // Something. ?>
-<?php echo 'oops'; // Something. ?>
-<?php echo 'oops'; // Something.?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc.fixed
deleted file mode 100644
index 88b009fa..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc.fixed
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
- // Not embedded. Do not check here.
- echo 'hello';
-?>
-<html>
-<head>
-<title><?php echo $title; ?></title>
-<script><?php echo $script; ?></script>
-</head>
-<body>
- <?php
- echo $body;
- ?>
- hello
- <?php
- echo $moreBody;
- ?>
- <?php echo 'hi'; ?>
- <?php echo 'hi'; ?>
- <?php echo 'hi;'; ?>
- <?php echo 'hi'; echo 'hi;'; ?>
- <?php echo 'hi'; echo 'hi;'; ?>
-
-
- <?php
- echo $moreBody;
- ?>
- <?php
- echo $moreBody;
- ?>
-
- <?php
- echo $moreBody;
- ?>
- <?php
- echo $moreBody;
- ?>
-
- <?php
- echo 'hi';
- ?>
-
- <?php
- echo 'hi';
- ?>
-</body>
-</html>
-<?php
-function test()
-{
- foreach ($root->section as $section) {
- ?>
- <table>
- <?php
- if ($foo) {
- ?>
- <tr>
- </tr>
- <?php
- }
- ?>
- <?php
- foreach ($bar as $bar) {
- echo $bar;
- }
- }
-
- foreach ($root->section as $section) {
- ?>
- <table>
- <?php
- if ($foo) {
- ?>
- <tr>
- </tr>
- <?php
-}
- ?>
- <?php
- foreach ($bar as $bar) {
- echo $bar;
- }
- }
-}
-
-echo 'goodbye';
-
-function foo()
-{
- ?>
- <a onClick="Javascript: set_hidden_field('<?php echo $link_offset - $num_per_page; ?>'); set_hidden_field('process_form', '0'); submit_form(); return false;">
- <?php
-
-}
-
-?>
-
- <strong>
- <?php
- echo 'foo';
- ?>
- </strong>
-
-?>
-
-</html>
-
-<?php if ($foo) { ?>
-<?php } ?>
-
-<?php echo 'oops'; // Something. ?>
-<?php echo 'oops'; // Something. ?>
-<?php echo 'oops'; // Something. ?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php
deleted file mode 100644
index ec33788b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-/**
- * Unit test class for the EmbeddedPhp sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EmbeddedPhpUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 7 => 1,
- 12 => 1,
- 18 => 1,
- 19 => 2,
- 20 => 1,
- 21 => 1,
- 22 => 3,
- 24 => 1,
- 26 => 1,
- 29 => 1,
- 30 => 1,
- 31 => 1,
- 34 => 1,
- 36 => 1,
- 40 => 1,
- 41 => 1,
- 44 => 1,
- 45 => 1,
- 49 => 1,
- 59 => 1,
- 63 => 1,
- 93 => 1,
- 94 => 2,
- 100 => 1,
- 102 => 1,
- 112 => 1,
- 113 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EvalUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EvalUnitTest.inc
deleted file mode 100644
index ee4c73e5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EvalUnitTest.inc
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-eval('$var = 4;');
-$string = '$var = 4;';
-eval($string);
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EvalUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EvalUnitTest.php
deleted file mode 100644
index 7f96ea03..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EvalUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the Eval sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EvalUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 2 => 1,
- 4 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.inc
deleted file mode 100644
index a315d92a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.inc
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-$newfunc = create_function('$a,$b', 'return "ln($a) + ln($b) = " . log($a * $b);');
-print 'hi';
-print($var);
-if (is_null($blah) === TRUE) {
-}
-
-class Test
-{
- const DELETE = 'delete';
-}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.php
deleted file mode 100644
index 7772fd3c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/ForbiddenFunctionsUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the ForbiddenFunctions sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ForbiddenFunctionsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 3 => 1,
- 4 => 1,
- 5 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.inc
deleted file mode 100644
index 4b2a2109..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-$var = 'hello';
-$var2 = 'hello';
-$GLOBALS['var'] = 'hello';
-
-function func1()
-{
- global $var;
- global $var, $var2;
- echo $var;
- echo $GLOBALS['var'];
-}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php
deleted file mode 100644
index e3404e74..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the GlobalKeyword sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class GlobalKeywordUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 8 => 1,
- 9 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.inc
deleted file mode 100644
index b5061006..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.inc
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-$str = <<<EOD
-Example of string
-spanning multiple lines
-using heredoc syntax.
-EOD;
-
-echo <<<'EOT'
-My name is "$name". I am printing some $foo->foo.
-Now, I am printing some {$foo->bar[1]}.
-This should not print a capital 'A': \x41
-EOT;
-
-function test()
- {
- $arr = array(
- 'a' => 'a'
-<<<<<<< HEAD
- 'b' => 'b'
-=======
- 'c' => 'c'
->>>>>>> master
- );
- }
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php
deleted file mode 100644
index 41369ca1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the Heredoc sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class HeredocUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 8 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.inc
deleted file mode 100644
index 73240296..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.inc
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-function outer()
-{
- if (!function_exists('inner')) {
- function inner() {
- }
- }
-}
-
-// Closures are allowed.
-function myFunc($foo)
-{
- $callback = function ($bar) use ($foo)
- {
- $bar += $foo;
- };
-}
-
-// Anon class methods are allowed.
-function test()
-{
- return new class {
-
- public function foo()
- {
- // do something
- }
- };
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php
deleted file mode 100644
index 482c02c5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the InnerFunctions sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class InnerFunctionsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(5 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.inc
deleted file mode 100644
index 051ed738..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-if (Function_Exists('myFunction') === TRUE) {
- $retval = MyFunction(true);
- $keys = Array_Keys($array);
-}
-
-function getType() {}
-
-$obj = new Date();
-
-$count = $object->Count();
-$count = $object::Count();
-$count = $object->count();
-$count = $object::count();
-class MyClass {
- public function Count() {}
-}
-
-function &Sort() {
-
-}
-
-$connection = new Db\Adapter\Pdo\Mysql($config);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php
deleted file mode 100644
index f818ef16..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the LowercasePHPFunctions sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LowercasePHPFunctionsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 4 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.inc
deleted file mode 100644
index 951f336b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.inc
+++ /dev/null
@@ -1,261 +0,0 @@
-<?php
-switch ($var) {
- case '1':
- return;
- echo 'hi';
-
- case '2':
- case '3':
- if ($something === true) {
- break;
- echo 'hi';
- }
- break;
- default:
- return;
-
- if ($something === true) {
- break;
- echo 'hi';
- }
-
-}
-
-function myFunction($var)
-{
- if ($something === TRUE) {
- return;
- echo 'hi';
- }
-
- return;
- return FALSE;
- if ($something === TRUE) {
- return TRUE;
- }
-
-}//end myFunction()
-
-foreach ($vars as $var) {
- if ($something === TRUE) {
- continue;
- break;
- } else {
- continue;
- echo 'hi';
- }
-
- echo $var."\n";
-}
-
-switch ($lowerVarType) {
- case 'bool':
- return 'boolean';
- echo 'hi';
- case 'double':
- case 'real':
- return 'float';
- echo 'hi';
-}
-
-while ($line=fgets($fp,2*1024*1024))
-{
- if (!preg_match("/^<([a-z0-9_]+)/",$line,$matches))
- continue;
- print $line;
-}
-
-switch ($var) {
- case 1:
- echo '1';
- break;
-
- echo 'non-executable';
- default:
- echo '2';
- break;
-}
-
-switch (0) {
- case 1:
- return '1';
-
- echo 'non-executable';
- default:
- break;
-}
-
-function myFunction()
-{
- if ($something === TRUE) {
- return;
- }
-
- echo 'foo';
- return;
-
-}//end myFunction()
-
-function myFunction()
-{
- return uksort(
- $array,
- function() {
- return mt_rand(-1, 1);
- echo 'done';
- }
- );
-
-}//end myFunction()
-
-public static function thisCausesAnError() {
-return new foo(function() {return $foo;}
-);
-}
-
-function myFunction()
-{
- if ($something === TRUE) {
- throw new Exception('exception');
- }
-
- throw new Exception('exception');
- echo 'non-executable';
-}//end myFunction()
-
-switch ($var) {
- case 1: {
- return '1';
- }
-
- case 2: {
- return '2';
- }
-}
-
-defined('FOO') or die('error');
-defined('FOO') || die('error');
-interface myInterface {
- function myFunc();
-}
-echo 'hello';
-
-function foo($color) {
- switch ($color) {
- case 'red':
- return 'yuck';
- break;
- case 'blue':
- return 'yuck';
- break;
- case 'orange':
- return 'yay';
- break;
- default:
- return 'boring';
- }
-}
-
-function returnOverMultipleLines($color) {
- switch ($color) {
- case 'red':
- return someFunction(
- 'multiple',
- 'arguments'
- );
- echo $foo;
- default:
- return array(
- 'multiline',
- 'array'
- );
- }
-}
-
-function test() {
- return array(
- 'multiline',
- 'array'
- );
- echo $foo;
-}
-
-function test(){
- switch($a) {
- case 1:
- if (empty($b))
- return 0;
- break;
- default:
- return 2;
- }
-
- if (empty($a))
- echo '1';
- elseif ($empty($b))
- return 0;
- else
- return 1;
-
- echo "oi";
- return 1;
-}
-
-switch ($foo) {
- case 'foo':
- if ($foo)
- return $foo;
- return $bar;
- default:
- return $bar;
-}
-
-function foo()
-{
- return $bar->{$action . 'JsonAction'}();
-}
-
-switch (true) {
- case 1:
- return foo(
- function () {
- $foo = $bar; // when this is removed it works ok
- return false; // from here on it reports unreachable
- }
- );
-}
-
-exit();
-
-
-// Errors are thrown from here down from the exit() above.
-foreach ($vars as $var) {
- if ($something === TRUE) {
- break;
- break;
- }
-}
-
-exit();
-
-function test() {
- echo 'no error';
-}
-
-class myClass {
- function myFunc() {
- echo 'no error';
- }
-}
-
-function bar() {
- return function() {
- echo "1";
- };
-}
-
-class HttpStatus
-{
- const CONTINUE = 100;
- const SWITCHING_PROTOCOLS = 101;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php
deleted file mode 100644
index f1ef5c01..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/**
- * Unit test class for the NonExecutableCode sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class NonExecutableCodeUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 5 => 1,
- 11 => 1,
- 17 => 1,
- 18 => 1,
- 19 => 2,
- 28 => 1,
- 32 => 1,
- 33 => 2,
- 34 => 2,
- 42 => 1,
- 45 => 1,
- 54 => 1,
- 58 => 1,
- 73 => 1,
- 83 => 1,
- 95 => 1,
- 105 => 1,
- 123 => 1,
- 147 => 1,
- 150 => 1,
- 153 => 1,
- 166 => 1,
- 180 => 1,
- 232 => 1,
- 233 => 1,
- 234 => 1,
- 235 => 2,
- 239 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.inc
deleted file mode 100644
index 3a14db90..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.inc
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-class MyClass
-{
- private $var1 = null;
- protected $var2 = null;
- public $var3 = null;
- $var4 = null;
-}
-
-class foo
-{
- const bar = <<<BAZ
-qux
-BAZ;
-}
-
-class Foo {
- public static function default(): ObjectA
- {
- return new self(1);
- }
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php
deleted file mode 100644
index dd946e56..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * Unit test class for the MemberVarScope sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Scope;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class MemberVarScopeUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(7 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.inc
deleted file mode 100644
index fbbbf946..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.inc
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-function func1() {}
-
-class MyClass
-{
- function func1() {}
- public function func1() {}
- private function func1() {}
- protected function func1() {}
-}
-
-class Closure_Test {
- public function test() {
- $foo = function() { echo 'foo'; };
-
- function my_sort() {
- // ...
- }
-
- $a = array();
- usort($a, 'my_sort');
- }
-}
-
-function test() {
- $foo = function() { echo 'foo'; };
-}
-
-trait Trait_Test {
- function func1() {}
- public function func1() {}
- private function func1() {}
- protected function func1() {}
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php
deleted file mode 100644
index 4e8010ee..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Unit test class for the MethodScope sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Scope;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class MethodScopeUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 6 => 1,
- 30 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.inc
deleted file mode 100644
index c88ca30a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.inc
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-class MyClass
-{
- public static function func1()
- {
- $value = 'hello';
- $newValue = array($this->func2());
- $result = $this->getValue($value);
- return $this->setValue($result);
- }
-
- public function func1()
- {
- $value = 'hello';
- $newValue = array($this->func2());
- $result = $this->getValue($value);
- return $this->setValue($result);
- }
-
- function func1()
- {
- $value = 'hello';
- $newValue = array($this->func2());
- $result = $this->getValue($value);
- return $this->setValue($result);
- }
-}
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php
deleted file mode 100644
index 894d9371..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Unit test class for the StaticThisUsage sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Scope;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class StaticThisUsageUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 7 => 1,
- 8 => 1,
- 9 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc
deleted file mode 100644
index 7f051425..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-$string = 'Hello'.$there.'. How are'.$you.$going."today $okay";
-$string = 'Hello' . $there . '. How are' . $you . $going . "today $okay";
-$string = 'Hello'.$there;
-$string = 'Hello'. $there;
-$string = 'Hello' .$there;
-
-$y = '1'
- . '2'
- . '3';
-
-echo 1 . 'test';
-echo 1.1 . 'test';
-echo 'test' . 1;
-echo 'test' . 1.1;
-echo 'test' . 1 . 'test' . 2.2 . 'test' . 3;
-
-// @codingStandardsChangeSetting Squiz.Strings.ConcatenationSpacing spacing 1
-
-$string = 'Hello'.$there.'. How are'.$you.$going. "today $okay";
-$string = 'Hello' . $there . '. How are' . $you . $going . "today $okay";
-$string = 'Hello'.$there;
-$string = 'Hello'. $there;
-$string = 'Hello' .$there;
-
-// @codingStandardsChangeSetting Squiz.Strings.ConcatenationSpacing ignoreNewlines true
-$y = '1'
- . '2'
- . '3';
-
-$y = '1' .
- '2' .
- '3';
-
-$y = '1'
-. '2'
-. '3';
-
-$y = '1'
- .'2'.
- '3'
- . '4';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc.fixed
deleted file mode 100644
index 75ff184f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.inc.fixed
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-$string = 'Hello'.$there.'. How are'.$you.$going."today $okay";
-$string = 'Hello'.$there.'. How are'.$you.$going."today $okay";
-$string = 'Hello'.$there;
-$string = 'Hello'.$there;
-$string = 'Hello'.$there;
-
-$y = '1'.'2'.'3';
-
-echo (1).'test';
-echo (1.1).'test';
-echo 'test'.(1);
-echo 'test'.(1.1);
-echo 'test'.(1).'test'.(2.2).'test'.(3);
-
-// @codingStandardsChangeSetting Squiz.Strings.ConcatenationSpacing spacing 1
-
-$string = 'Hello' . $there . '. How are' . $you . $going . "today $okay";
-$string = 'Hello' . $there . '. How are' . $you . $going . "today $okay";
-$string = 'Hello' . $there;
-$string = 'Hello' . $there;
-$string = 'Hello' . $there;
-
-// @codingStandardsChangeSetting Squiz.Strings.ConcatenationSpacing ignoreNewlines true
-$y = '1'
- . '2'
- . '3';
-
-$y = '1' .
- '2' .
- '3';
-
-$y = '1'
-. '2'
-. '3';
-
-$y = '1'
- . '2' .
- '3'
- . '4';
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php
deleted file mode 100644
index 55757288..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-/**
- * Unit test class for the ConcatenationSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Strings;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ConcatenationSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 5,
- 5 => 1,
- 6 => 1,
- 9 => 1,
- 10 => 1,
- 12 => 1,
- 13 => 1,
- 14 => 1,
- 15 => 1,
- 16 => 5,
- 20 => 5,
- 22 => 1,
- 23 => 1,
- 24 => 1,
- 40 => 2,
- 42 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc
deleted file mode 100644
index d0b22ceb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-$string = "Hello\tThere";
-$string = "Hello There\r\n";
-$string = "Hello There";
-$string = "Hello $there";
-$string = 'Hello'."$there '".'hi';
-$string = "My name is 'Greg'";
-$string = "Hello"." There"."\n";
-$string = "Hello There\f";
-$string = "Hello There\b";
-$string = "Hello\vThere";
-$string = "\x0";
-$string = 'Hello '.$there.' Greg';
-$string = "<div class='$class'>";
-$string = "Value: $var[test]";
-$string = "\0";
-$string = "\$var";
-
-$x = "bar = '$z',
-baz = '" . $a . "'...$x";
-
-$string = "Hello
-there";
-$string = 'Hello
-there';
-
-$string = "\123 \234"."\u123"."\e";
-
-echo "window.location = \"".$url."\";\n";
-echo ""
-
-function test() {
- echo "It Worked';
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc.fixed
deleted file mode 100644
index fb142e54..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.inc.fixed
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-$string = "Hello\tThere";
-$string = "Hello There\r\n";
-$string = 'Hello There';
-$string = "Hello $there";
-$string = 'Hello'."$there '".'hi';
-$string = "My name is 'Greg'";
-$string = 'Hello'.' There'."\n";
-$string = "Hello There\f";
-$string = "Hello There\b";
-$string = "Hello\vThere";
-$string = "\x0";
-$string = 'Hello '.$there.' Greg';
-$string = "<div class='$class'>";
-$string = "Value: $var[test]";
-$string = "\0";
-$string = '$var';
-
-$x = "bar = '$z',
-baz = '" . $a . "'...$x";
-
-$string = 'Hello
-there';
-$string = 'Hello
-there';
-
-$string = "\123 \234"."\u123"."\e";
-
-echo 'window.location = "'.$url."\";\n";
-echo ''
-
-function test() {
- echo "It Worked';
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php
deleted file mode 100644
index 83036db7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * Unit test class for the DoubleQuoteUsage sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Strings;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class DoubleQuoteUsageUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 5 => 1,
- 6 => 1,
- 8 => 2,
- 14 => 1,
- 15 => 1,
- 17 => 1,
- 19 => 1,
- 20 => 1,
- 22 => 1,
- 29 => 1,
- 30 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc
deleted file mode 100644
index 9e0391da..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-$string = 'hello';
-echo $string;
-echo 'hello';
-echo('hello');
-echo($hello);
-echo ('hello');
-echo ($hello);
-echo($y) ;
-echo ($loan_device->returndate == 0) ? 'Not returned' : date('d/m/Y', $loan_device->returndate);
-?>
-<p><?php echo ($foo) ? 'true' : 'false' ?></p>
-<p><?php echo ($foo) ?></p>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc.fixed
deleted file mode 100644
index 37c7d24c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.inc.fixed
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-$string = 'hello';
-echo $string;
-echo 'hello';
-echo 'hello';
-echo $hello;
-echo 'hello';
-echo $hello;
-echo $y ;
-echo ($loan_device->returndate == 0) ? 'Not returned' : date('d/m/Y', $loan_device->returndate);
-?>
-<p><?php echo ($foo) ? 'true' : 'false' ?></p>
-<p><?php echo $foo ?></p>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php
deleted file mode 100644
index 95954d01..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the EchoedStrings sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\Strings;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class EchoedStringsUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 5 => 1,
- 6 => 1,
- 7 => 1,
- 8 => 1,
- 9 => 1,
- 13 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.inc
deleted file mode 100644
index c0dd255f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.inc
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-$var = (int) $var2;
-$var = ( int ) $var2;
-$var = (int ) $var2;
-$var = ( int) $var2;
-$var = ( int ) $var2;
-?> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php
deleted file mode 100644
index ee54cdab..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the CastSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class CastSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 4 => 1,
- 5 => 1,
- 6 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc
deleted file mode 100644
index 74b88ab8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc
+++ /dev/null
@@ -1,220 +0,0 @@
-<?php
-if ($something) {
-}
-foreach ($this as $that) {
-}
-while (true) {
- for ($i = 0; $i < 10; $i++) {
- }
- if ($something) {
- }
-
- foreach ($this as $that) {
- do {
- } while (true);
-
- }
-}
-
-if ($one) {
-} else ($two) {
-} else if ($three) {
-} elseif ($four) {
-}
-if ($one) {
-} else ($two) {
-} else if ($three) {
-} elseif ($four) {
-}
-?>
-<table>
- <tr>
- <td align="center" valign="center">
- <?php
- foreach ($this->children as $child) {
- // There should be no error after this
- // foreach, because it is followed by a
- // close PHP tag.
- }
- ?>
- </td>
- </tr>
-</table>
-<?php
-
-switch ($blah) {
- case 'one':
- if ($blah) {
- // There are no spaces before break.
- }
- break;
-
- default:
- if ($blah) {
- // There are no spaces before break.
- }
- break;
-}
-
-switch ($blah) {
- case 'one':
- if ($blah) {
- // There are no spaces before break.
- }
- break;
-
- default:
- if ($blah) {
- // Code here.
- }
-}
-
-foreach ($blah as $var) {
- if ($blah) {
- }
- break;
-}
-
-while (true) {
- for ($i = 0; $i < 10; $i++) {
-
- if ($something) {
- }
-
- }
-
- foreach ($this as $that) {
- do {
-
- echo $i;
- } while (true);
- }
-}
-
-function myFunction()
-{
- if ($blah) {
- }
-
-}//end myFunction()
-
-foreach ($this->children as $child) {
- echo $child;
-
-}
-
-if ($defaultPageDesign === 0
- && $defaultCascade === TRUE
- && $defaultChildDesign === 0
-) {
- $settingsUpdated = FALSE;
-}
-
-foreach ( $blah as $var ) {
- if ( $blah ) {
- }
-}
-
-if (
- $defaultPageDesign === 0
- && $defaultCascade === TRUE
- && $defaultChildDesign === 0
-) {
- $settingsUpdated = FALSE;
-}
-
-$moo = 'blar';
-switch ($moo)
-{
- case 'blar':
- if ($moo === 'blar2') {
- $moo = 'blar'
- }
- return $moo;
-
- default:
- $moo = 'moo';
- break;
-}
-
-do {
-}
-while (true);
-
-try {
- // Something
-} catch (Exception $e) {
- // Something
-}
-
-try {
-
- // Something
-
-} catch (Exception $e) {
-
- // Something
-
-}
-
-if ($one) {
-}
-elseif ($two) {
-}
-// else if something
-else if ($three) {
-} // else do something
-else {
-}
-
-if ($one) {
-
-}
-
-do {
- echo 'hi';
-} while ( $blah );
-
-if ($one) {
-}
-// No blank line here.
-if ($two) {
-}
-
-switch ($moo)
-{
- case 'blar':
- if ($moo === 'blar2') {
- $moo = 'blar'
- }
-
- return $moo;
-}
-
-try {
- // Something
-}
-catch (Exception $e) {
- // Something
-}
-
-if ($foo) {
-
-
- /**
- * Comment
- */
- function foo() {
- // Code here
- }
-
-
- /**
- * Comment
- */
- class bar() {
-
- }//end class
-
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc.fixed
deleted file mode 100644
index db085b3a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.inc.fixed
+++ /dev/null
@@ -1,214 +0,0 @@
-<?php
-if ($something) {
-}
-
-foreach ($this as $that) {
-}
-
-while (true) {
- for ($i = 0; $i < 10; $i++) {
- }
-
- if ($something) {
- }
-
- foreach ($this as $that) {
- do {
- } while (true);
- }
-}
-
-if ($one) {
-} else ($two) {
-} else if ($three) {
-} elseif ($four) {
-}
-
-if ($one) {
-} else ($two) {
-} else if ($three) {
-} elseif ($four) {
-}
-?>
-<table>
- <tr>
- <td align="center" valign="center">
- <?php
- foreach ($this->children as $child) {
- // There should be no error after this
- // foreach, because it is followed by a
- // close PHP tag.
- }
- ?>
- </td>
- </tr>
-</table>
-<?php
-
-switch ($blah) {
- case 'one':
- if ($blah) {
- // There are no spaces before break.
- }
- break;
-
- default:
- if ($blah) {
- // There are no spaces before break.
- }
- break;
-}
-
-switch ($blah) {
- case 'one':
- if ($blah) {
- // There are no spaces before break.
- }
- break;
-
- default:
- if ($blah) {
- // Code here.
- }
-}
-
-foreach ($blah as $var) {
- if ($blah) {
- }
-
- break;
-}
-
-while (true) {
- for ($i = 0; $i < 10; $i++) {
- if ($something) {
- }
- }
-
- foreach ($this as $that) {
- do {
- echo $i;
- } while (true);
- }
-}
-
-function myFunction()
-{
- if ($blah) {
- }
-
-}//end myFunction()
-
-foreach ($this->children as $child) {
- echo $child;
-}
-
-if ($defaultPageDesign === 0
- && $defaultCascade === TRUE
- && $defaultChildDesign === 0
-) {
- $settingsUpdated = FALSE;
-}
-
-foreach ($blah as $var) {
- if ($blah) {
- }
-}
-
-if ($defaultPageDesign === 0
- && $defaultCascade === TRUE
- && $defaultChildDesign === 0
-) {
- $settingsUpdated = FALSE;
-}
-
-$moo = 'blar';
-switch ($moo)
-{
- case 'blar':
- if ($moo === 'blar2') {
- $moo = 'blar'
- }
- return $moo;
-
- default:
- $moo = 'moo';
- break;
-}
-
-do {
-}
-while (true);
-
-try {
- // Something
-} catch (Exception $e) {
- // Something
-}
-
-try {
- // Something
-} catch (Exception $e) {
- // Something
-}
-
-if ($one) {
-}
-elseif ($two) {
-}
-// else if something
-else if ($three) {
-} // else do something
-else {
-}
-
-if ($one) {
-}
-
-do {
- echo 'hi';
-} while ($blah);
-
-if ($one) {
-}
-
-// No blank line here.
-if ($two) {
-}
-
-switch ($moo)
-{
- case 'blar':
- if ($moo === 'blar2') {
- $moo = 'blar'
- }
- return $moo;
-}
-
-try {
- // Something
-}
-catch (Exception $e) {
- // Something
-}
-
-if ($foo) {
-
-
- /**
- * Comment
- */
- function foo() {
- // Code here
- }
-
-
- /**
- * Comment
- */
- class bar() {
-
- }//end class
-
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js
deleted file mode 100644
index 1c889a1c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js
+++ /dev/null
@@ -1,93 +0,0 @@
-
-if (something) {
-}
-for (i = 0; i < 10; i++) {
-}
-
-while (true) {
- for (i = 0; i < 10; i++) {
- }
- if (something) {
- }
-
- do {
- } while (true);
-
-}
-
-if (one) {
-} else (two) {
-} else if (three) {
-}
-if (one) {
-} else (two) {
-} else if (three) {
-}
-
-switch (blah) {
- case 'one':
- if (blah) {
- // There are no spaces before break.
- }
- break;
-
- default:
- if (blah) {
- // There are no spaces before break.
- }
- break;
-}
-
-switch (blah) {
- case 'one':
- if (blah) {
- // There are no spaces before break.
- }
- break;
-
- default:
- if (blah) {
- // Code here.
- }
-}
-
-for (i = 0; i < 10; i++) {
- if (blah) {
- }
- break;
-}
-
-while (true) {
- for (i = 0; i < 10; i++) {
-
- if (something) {
- }
-
- }
-
- do {
-
- alert(i);
- } while (true);
-}
-
-for ( i = 0; i < 10; i++ ) {
- if ( blah ) {
- }
-}
-
-var x = {
- a: function () {
- if (blah) {
- }
-
- },
-};
-
-if (one) {
-}
-// else if something
-else if (two) {
-} // else do something
-else {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js.fixed
deleted file mode 100644
index bb979bc8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.js.fixed
+++ /dev/null
@@ -1,93 +0,0 @@
-
-if (something) {
-}
-
-for (i = 0; i < 10; i++) {
-}
-
-while (true) {
- for (i = 0; i < 10; i++) {
- }
-
- if (something) {
- }
-
- do {
- } while (true);
-}
-
-if (one) {
-} else (two) {
-} else if (three) {
-}
-
-if (one) {
-} else (two) {
-} else if (three) {
-}
-
-switch (blah) {
- case 'one':
- if (blah) {
- // There are no spaces before break.
- }
- break;
-
- default:
- if (blah) {
- // There are no spaces before break.
- }
- break;
-}
-
-switch (blah) {
- case 'one':
- if (blah) {
- // There are no spaces before break.
- }
- break;
-
- default:
- if (blah) {
- // Code here.
- }
-}
-
-for (i = 0; i < 10; i++) {
- if (blah) {
- }
-
- break;
-}
-
-while (true) {
- for (i = 0; i < 10; i++) {
- if (something) {
- }
- }
-
- do {
- alert(i);
- } while (true);
-}
-
-for (i = 0; i < 10; i++) {
- if (blah) {
- }
-}
-
-var x = {
- a: function () {
- if (blah) {
- }
-
- },
-};
-
-if (one) {
-}
-// else if something
-else if (two) {
-} // else do something
-else {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php
deleted file mode 100644
index dcb5bc6c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php
+++ /dev/null
@@ -1,95 +0,0 @@
-<?php
-/**
- * Unit test class for the ControlStructureSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ControlStructureSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='ControlStructureSpacingUnitTest.inc')
- {
- switch ($testFile) {
- case 'ControlStructureSpacingUnitTest.inc':
- return array(
- 3 => 1,
- 5 => 1,
- 8 => 1,
- 15 => 1,
- 23 => 1,
- 74 => 1,
- 79 => 1,
- 82 => 1,
- 83 => 1,
- 87 => 1,
- 103 => 1,
- 113 => 2,
- 114 => 2,
- 118 => 1,
- 150 => 1,
- 153 => 1,
- 154 => 1,
- 157 => 1,
- 170 => 1,
- 176 => 2,
- 179 => 1,
- 189 => 1,
- );
- break;
- case 'ControlStructureSpacingUnitTest.js':
- return array(
- 3 => 1,
- 9 => 1,
- 15 => 1,
- 21 => 1,
- 56 => 1,
- 61 => 1,
- 64 => 1,
- 65 => 1,
- 68 => 1,
- 74 => 2,
- 75 => 2,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc
deleted file mode 100644
index e831e257..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-function MyFunction1() {
- // Some code goes here.
-
-}
-
-function MyFunction2() {
- // Some code goes here.
-}
-
-class MyClass
-{
- function MyFunction3() {
- // Some code goes here.
-
- }
-
- function MyFunction4() {
- // Some code goes here.
- }
-
- public function register();
-}
-
-public function register();
-
-function foo() { }
-function foo() {}
-function foo() {
-}
-
-function foo()
-{
- for ($i = 0; $i < $bar; $i++) {
- }//end for
-
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc.fixed
deleted file mode 100644
index c567dbb2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.inc.fixed
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-function MyFunction1() {
- // Some code goes here.
-
-}
-
-function MyFunction2() {
- // Some code goes here.
-
-}
-
-class MyClass
-{
- function MyFunction3() {
- // Some code goes here.
-
- }
-
- function MyFunction4() {
- // Some code goes here.
-
- }
-
- public function register();
-}
-
-public function register();
-
-function foo() {
-
- }
-function foo() {
-
-}
-function foo() {
-
-}
-
-function foo()
-{
- for ($i = 0; $i < $bar; $i++) {
- }//end for
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js
deleted file mode 100644
index fc7521fa..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js
+++ /dev/null
@@ -1,132 +0,0 @@
-function FuncOne()
-{
- // Code here.
-
-}//end AdjustModalDialogWidgetType
-
-
-Testing.prototype = {
-
- doSomething: function()
- {
- // Code here.
- },
-
- doSomethingElse: function()
- {
- // Code here.
-
- },
-};
-
-function FuncFour()
-{
- // Code here.
-}
-
-function FuncFive()
-{
- // Code here.
-
-
-}
-
-function valid()
-{
- if (true) {
- test = {
- namespaces: {}
- };
- }
-
-}
-
-dfx.addEvent(this.rightScroll, 'mousedown', function() {
- t = setInterval(function() {
- pos -= 10;
- }, 30);
-});
-
-// Valid because function is empty.
-if (dfx.isFn(callback) === false) {
- callback = function() {};
- callback = function() { };
-}
-
-AbstractAttributeEditorWidgetType.prototype = {
- isActive: function() {
- return this.active;
- },
-
- activate: function(data)
- {
- var x = {
- test: function () {
- alert('This is ok');
-
- }
- };
-
- this.active = true;
-
- }
-
-};
-
-var myFunc = function()
-{
- var x = 1;
-
- blah(function() {
- alert(2);
- });
-
- blah(function() { alert(2); });
-
- return x;
-
-}
-
-a.prototype = {
-
- a: function()
- {
- var settings = {
- default: ''
- };
-
- },
-
- b: function()
- {
- var self = this;
-
- }
-
-};
-
-var a = new function()
-{
- this.initScreen = function(usersFolderid)
- {
- for (var i = 0; i < paramSelectors.length; i++) {
- }//end for
- }
-
-};
-
-a.prototype = {
-
- this.addItem(
- id,
- {
- b: function()
- {
- for (var i = 0; i < paramSelectors.length; i++) {
- }//end for
-
- }
- }
- )
-
-};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js.fixed
deleted file mode 100644
index db272adc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.js.fixed
+++ /dev/null
@@ -1,133 +0,0 @@
-function FuncOne()
-{
- // Code here.
-
-}//end AdjustModalDialogWidgetType
-
-
-Testing.prototype = {
-
- doSomething: function()
- {
- // Code here.
-
- },
-
- doSomethingElse: function()
- {
- // Code here.
-
- },
-};
-
-function FuncFour()
-{
- // Code here.
-
-}
-
-function FuncFive()
-{
- // Code here.
-
-}
-
-function valid()
-{
- if (true) {
- test = {
- namespaces: {}
- };
- }
-
-}
-
-dfx.addEvent(this.rightScroll, 'mousedown', function() {
- t = setInterval(function() {
- pos -= 10;
- }, 30);
-});
-
-// Valid because function is empty.
-if (dfx.isFn(callback) === false) {
- callback = function() {};
- callback = function() {};
-}
-
-AbstractAttributeEditorWidgetType.prototype = {
- isActive: function() {
- return this.active;
-
- },
-
- activate: function(data)
- {
- var x = {
- test: function () {
- alert('This is ok');
- }
- };
-
- this.active = true;
-
- }
-
-};
-
-var myFunc = function()
-{
- var x = 1;
-
- blah(function() {
- alert(2);
- });
-
- blah(function() { alert(2);
-});
-
- return x;
-
-}
-
-a.prototype = {
-
- a: function()
- {
- var settings = {
- default: ''
- };
-
- },
-
- b: function()
- {
- var self = this;
-
- }
-
-};
-
-var a = new function()
-{
- this.initScreen = function(usersFolderid)
- {
- for (var i = 0; i < paramSelectors.length; i++) {
- }//end for
- }
-
-};
-
-a.prototype = {
-
- this.addItem(
- id,
- {
- b: function()
- {
- for (var i = 0; i < paramSelectors.length; i++) {
- }//end for
- }
- }
- )
-
-};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php
deleted file mode 100644
index b08253d6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionClosingBraceSpace sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionClosingBraceSpaceUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='FunctionClosingBraceSpaceUnitTest.inc')
- {
- switch ($testFile) {
- case 'FunctionClosingBraceSpaceUnitTest.inc':
- return array(
- 10 => 1,
- 21 => 1,
- 28 => 1,
- 29 => 1,
- 31 => 1,
- 39 => 1,
- );
- break;
- case 'FunctionClosingBraceSpaceUnitTest.js':
- return array(
- 13 => 1,
- 25 => 1,
- 32 => 1,
- 53 => 1,
- 59 => 1,
- 67 => 1,
- 84 => 1,
- 128 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc
deleted file mode 100644
index f1811663..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.inc
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-function MyFunction1()
-{
- // Some code goes here.
- echo $code;
-}
-
-function MyFunction2()
-{
-
- // Some code goes here.
- echo $code;
-}
-
-class MyClass
-{
- function MyFunction1()
- {
- // Some code goes here.
- echo $code;
- }
-
- function MyFunction2()
- {
-
- // Some code goes here.
- echo $code;
- }
-
- public function register();
-}
-
-function emptyFunction()
-{
-
-}//end emptyFunction();
-
-public function register();
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.js
deleted file mode 100644
index 71fd2a94..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.js
+++ /dev/null
@@ -1,115 +0,0 @@
-function FuncOne()
-{
- // Code here.
-
-}//end AdjustModalDialogWidgetType
-
-
-Testing.prototype = {
-
- doSomething: function()
- {
-
- // Code here.
-
- },
-
- doSomethingElse: function()
- {
- // Code here.
-
- },
-
- start: function()
- {
- this.toolbarPlugin.addButton('Image', 'imageEditor', 'Insert/Edit Image', function () { self.editImage() });
-
- },
-};
-
-function FuncFour()
-{
-
-
- // Code here.
-}
-
-AbstractAttributeEditorWidgetType.prototype = {
- isActive: function() {
-
- return this.active;
-
- },
-
- activate: function(data)
- {
- var x = {
- test: function () {
- alert('This is ok');
- }
- };
-
- this.active = true;
-
- }
-
-};
-
-function test() {
- var x = 1;
- var y = function()
- {
- alert(1);
- }
-
- return x;
-
-}
-
-var myFunc = function()
-{
- var x = 1;
-
- blah(x, y, function()
- {
- alert(2);
- }, z);
-
- blah(function() { alert(2); });
-
- return x;
-
-}
-
-HelpWidgetType.prototype = {
- init: function() {
- var x = 1;
- var y = {
- test: function() {
-
-
- alert(3);
- }
- }
- return x;
-
- }
-}
-
-CustomFormEditWidgetType.prototype = {
-
- addQuestion: function()
- {
- var settings = {
- default: ''
- };
-
- },
-
- addQuestionRulesEvent: function()
- {
- var self = this;
-
- }
-
-};
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php
deleted file mode 100644
index f6ff6e44..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionOpeningBraceSpace sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionOpeningBraceSpaceUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='FunctionOpeningBraceSpaceUnitTest.inc')
- {
- switch ($testFile) {
- case 'FunctionOpeningBraceSpaceUnitTest.inc':
- return array(
- 10 => 1,
- 25 => 1,
- );
- break;
- case 'FunctionOpeningBraceSpaceUnitTest.js':
- return array(
- 11 => 1,
- 31 => 1,
- 38 => 1,
- 88 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc
deleted file mode 100644
index 2834e4fe..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc
+++ /dev/null
@@ -1,302 +0,0 @@
-<?php
-/**
-* Comment
-*/
-
-
-include $blah;
-
-
-/**
-* Comment
-*/
-
-
-/**
-* Comment
-*/
-function foo()
-{
-}//end foo()
-
-function func1() {
-
-}//end func1()
-
-
-function func2() {
-
-}//end func2()
-
-function func3() {
-
-}//end func3()
-
-
-class MyClass
-{
- function func1() {
-
- }//end func1()
-
-
- function func2() {
-
- }//end func2()
-
- function func3() {
-
- }//end func3()
-}//end class
-
-
-interface MyInterface
-{
- function func1();
-
-
- function func2();
-
- function func3();
-}//end interface
-
-
-class MyClass
-{
-
-
- function func1() {
-
- }//end func1()
-
-
- function func2() {
-
- }//end func2()
-
-
-
- function func3() {
-
- }//end func3()
-
-
-}//end class
-
-
-interface MyInterface
-{
-
-
- function func1();
-
-
- function func2();
-
-
-
- function func3();
-
-
-}//end interface
-
-class MyClass
-{
- function func1() {
-
- }//end func1()
-}//end class
-
-
-interface MyInterface
-{
- function func1();
-}//end interface
-
-
-class MyClass
-{
-
- /**
- * The tag that this element represents (omiting the @ symbol).
- *
- * @var string
- */
- protected $tag = '';
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func1() {
-
- }//end func1()
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func2() {
-
- }//end func2()
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func3() {
-
- }//end func3()
-
-}//end class
-
-
-interface MyInterface
-{
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func1();
-
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func2();
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func3();
-
-}//end interface
-
-class MyClass
-{
-
- protected $tag = '';
-
- protected $tag = '';
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func1() {
-
- }//end func1()
-
-
-}//end class
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.FunctionSpacing spacing 1
-
-interface MyInterface
-{
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func1();
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func2();
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func3();
-
-
-}//end interface
-
-class MyClass
-{
-
- protected $tag = '';
-
- protected $tag = '';
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func1() {
-
- }//end func1()
-
-
-}//end class
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.FunctionSpacing spacing 2
-
-// Closures should be ignored.
-preg_replace_callback(
- '~-([a-z])~',
- function ($match) {
- return strtoupper($match[1]);
- },
- 'hello-world'
-);
-
-$callback = function ($bar) use ($foo)
- {
- $bar += $foo;
- };
-
-class MyClass
-{
- function func1() {
- }
-}
-
-
-function test() {
-
-}//end test()
-
-
-if ($foo) {
- /**
- * Comment
- */
- function foo() {
- // Code here
- }
- /**
- * Comment
- */
- function bar() {
- // Code here
- }
-}
-
-// foo
-function foo() {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc.fixed
deleted file mode 100644
index 0eed4ade..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.inc.fixed
+++ /dev/null
@@ -1,330 +0,0 @@
-<?php
-/**
-* Comment
-*/
-
-
-include $blah;
-
-
-/**
-* Comment
-*/
-
-
-/**
-* Comment
-*/
-function foo()
-{
-}//end foo()
-
-
-function func1() {
-
-}//end func1()
-
-
-function func2() {
-
-}//end func2()
-
-
-function func3() {
-
-}//end func3()
-
-
-class MyClass
-{
-
-
- function func1() {
-
- }//end func1()
-
-
- function func2() {
-
- }//end func2()
-
-
- function func3() {
-
- }//end func3()
-
-
-}//end class
-
-
-interface MyInterface
-{
-
-
- function func1();
-
-
- function func2();
-
-
- function func3();
-
-
-}//end interface
-
-
-class MyClass
-{
-
-
- function func1() {
-
- }//end func1()
-
-
- function func2() {
-
- }//end func2()
-
-
- function func3() {
-
- }//end func3()
-
-
-}//end class
-
-
-interface MyInterface
-{
-
-
- function func1();
-
-
- function func2();
-
-
- function func3();
-
-
-}//end interface
-
-class MyClass
-{
-
-
- function func1() {
-
- }//end func1()
-
-
-}//end class
-
-
-interface MyInterface
-{
-
-
- function func1();
-
-
-}//end interface
-
-
-class MyClass
-{
-
- /**
- * The tag that this element represents (omiting the @ symbol).
- *
- * @var string
- */
- protected $tag = '';
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func1() {
-
- }//end func1()
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func2() {
-
- }//end func2()
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func3() {
-
- }//end func3()
-
-
-}//end class
-
-
-interface MyInterface
-{
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func1();
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func2();
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func3();
-
-
-}//end interface
-
-class MyClass
-{
-
- protected $tag = '';
-
- protected $tag = '';
-
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func1() {
-
- }//end func1()
-
-
-}//end class
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.FunctionSpacing spacing 1
-
-interface MyInterface
-{
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func1();
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func2();
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func3();
-
-}//end interface
-
-class MyClass
-{
-
- protected $tag = '';
-
- protected $tag = '';
-
- /**
- * Function comment.
- *
- * @return boolean
- */
- function func1() {
-
- }//end func1()
-
-}//end class
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.FunctionSpacing spacing 2
-
-// Closures should be ignored.
-preg_replace_callback(
- '~-([a-z])~',
- function ($match) {
- return strtoupper($match[1]);
- },
- 'hello-world'
-);
-
-$callback = function ($bar) use ($foo)
- {
- $bar += $foo;
- };
-
-class MyClass
-{
-
-
- function func1() {
- }
-
-
-}
-
-
-function test() {
-
-}//end test()
-
-
-if ($foo) {
-
-
- /**
- * Comment
- */
- function foo() {
- // Code here
- }
-
-
- /**
- * Comment
- */
- function bar() {
- // Code here
- }
-
-
-}
-
-// foo
-function foo() {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php
deleted file mode 100644
index 38c2fdf5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-/**
- * Unit test class for the FunctionSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class FunctionSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 20 => 1,
- 29 => 1,
- 38 => 1,
- 45 => 1,
- 49 => 1,
- 55 => 1,
- 58 => 1,
- 60 => 1,
- 75 => 1,
- 94 => 1,
- 105 => 1,
- 107 => 1,
- 113 => 2,
- 135 => 1,
- 154 => 1,
- 167 => 2,
- 184 => 1,
- 218 => 1,
- 233 => 1,
- 252 => 1,
- 275 => 1,
- 276 => 1,
- 289 => 1,
- 291 => 1,
- 297 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc
deleted file mode 100644
index e70acdca..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-echo $blah;
-echo $blah;
-echo($blah);
-
-print $blah;
-print $blah;
-print($blah);
-
-include $blah;
-include $blah;
-include($blah);
-
-include_once $blah;
-include_once $blah;
-include_once($blah);
-
-require $blah;
-require $blah;
-require($blah);
-
-require_once $blah;
-require_once $blah;
-require_once($blah);
-
-$obj = new MyClass();
-$obj = new MyClass();
-
-return;
-return $blah;
-return $blah;
-return($blah);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc.fixed
deleted file mode 100644
index 5a0d0852..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.inc.fixed
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-echo $blah;
-echo $blah;
-echo($blah);
-
-print $blah;
-print $blah;
-print($blah);
-
-include $blah;
-include $blah;
-include($blah);
-
-include_once $blah;
-include_once $blah;
-include_once($blah);
-
-require $blah;
-require $blah;
-require($blah);
-
-require_once $blah;
-require_once $blah;
-require_once($blah);
-
-$obj = new MyClass();
-$obj = new MyClass();
-
-return;
-return $blah;
-return $blah;
-return($blah);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php
deleted file mode 100644
index c442050b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Unit test class for the LanguageConstructSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LanguageConstructSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 7 => 1,
- 11 => 1,
- 15 => 1,
- 19 => 1,
- 23 => 1,
- 27 => 1,
- 31 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.inc
deleted file mode 100644
index 0c46c6e3..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-if ($foo || $bar) {}
-if ($foo||$bar && $baz) {}
-if ($foo|| $bar&&$baz) {}
-if ($foo || $bar && $baz) {}
-
-// Spacing after || below is ignored as it is EOL whitespace.
-if ($foo ||
- $bar
- && $baz
-) {
-}
-
-if ($foo||
- $bar
- &&$baz
-) {
-}
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.js
deleted file mode 100644
index 694fbc61..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.js
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-if (foo || bar) {}
-if (foo||bar && baz) {}
-if (foo|| bar&&baz) {}
-if (foo || bar && baz) {}
-
-// Spacing after || below is ignored as it is EOL whitespace.
-if (foo ||
- bar
- && baz
-) {
-}
-
-if (foo||
- bar
- &&baz
-) {
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php
deleted file mode 100644
index ccdd0a23..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * Unit test class for the LogicalOperatorSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class LogicalOperatorSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='LogicalOperatorSpacingUnitTest.inc')
- {
- return array(
- 4 => 2,
- 5 => 3,
- 6 => 3,
- 15 => 1,
- 17 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc
deleted file mode 100644
index ebaadffb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc
+++ /dev/null
@@ -1,154 +0,0 @@
-<?php
-class MyClass
-{
- public $var1 = 'value';
-
-
- public $var2 = 'value';
-
- public $var3 = 'value';
-
-}//end class
-
-
-interface MyInterface
-{
-
- public $var1 = 'value';
-
-
- public $var2 = 'value';
-
- protected $var3 = 'value';
-}//end interface
-
-
-class MyClass
-{
-
-
- public $var1 = 'value';
-
- private $var2 = 'value';
-
-
- protected $var3 = 'value';
-
-
-}//end class
-
-
-
-class MyClass
-{
- public $var1 = 'value';
-}//end class
-
-
-interface MyInterface
-{
- public $var1 = 'value';
- function myFunction();
-}//end interface
-
-
-class MyClass
-{
-
- /**
- * The actions that this wizard step requires.
- *
- * @var array
- * @since 4.0.0
- */
- protected $actions = array();
-
-
- /**
- * TRUE if this step should be performed after the asset is created.
- *
- * @var boolean
- * @since 4.0.0
- */
- protected $postStep = FALSE;
-
-
-}//end class
-
-class MyClass
-{
- /**
- * The actions that this wizard step requires.
- *
- * @var array
- * @since 4.0.0
- */
- protected $actions = array();
-
-}//end class
-
-class MyClass
-{
-
- /**
- * The actions that this wizard step requires.
- *
- * @var array
- * @since 4.0.0
- */
- var $actions = array();
-
- /**
- * The actions that this wizard step requires.
- *
- * @var array
- * @since 4.0.0
- */
-
- protected $actions = array();
- /**
- * The actions that this wizard step requires.
- *
- * @var array
- * @since 4.0.0
- */
- protected $actions = array();
-
-}//end class
-
-class Foo
-{
-
- private $foo; // comment
-
- private $bar;
-
-}
-
-class Foo
-{
-
- private $foo; // comment
-
- /**
- * @var type
- */
- private $bar;
-
-}
-
-class Foo
-{
-
- /**
- * @var integer
- */
- private $foo; // comment
-
- private $bar;
-
- // here comes the comment
-
- private $caseStudy = null;
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc.fixed
deleted file mode 100644
index 26109aec..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.inc.fixed
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-class MyClass
-{
-
- public $var1 = 'value';
-
- public $var2 = 'value';
-
- public $var3 = 'value';
-
-}//end class
-
-
-interface MyInterface
-{
-
- public $var1 = 'value';
-
- public $var2 = 'value';
-
- protected $var3 = 'value';
-}//end interface
-
-
-class MyClass
-{
-
- public $var1 = 'value';
-
- private $var2 = 'value';
-
- protected $var3 = 'value';
-
-
-}//end class
-
-
-
-class MyClass
-{
-
- public $var1 = 'value';
-}//end class
-
-
-interface MyInterface
-{
-
- public $var1 = 'value';
- function myFunction();
-}//end interface
-
-
-class MyClass
-{
-
- /**
- * The actions that this wizard step requires.
- *
- * @var array
- * @since 4.0.0
- */
- protected $actions = array();
-
- /**
- * TRUE if this step should be performed after the asset is created.
- *
- * @var boolean
- * @since 4.0.0
- */
- protected $postStep = FALSE;
-
-
-}//end class
-
-class MyClass
-{
-
- /**
- * The actions that this wizard step requires.
- *
- * @var array
- * @since 4.0.0
- */
- protected $actions = array();
-
-}//end class
-
-class MyClass
-{
-
- /**
- * The actions that this wizard step requires.
- *
- * @var array
- * @since 4.0.0
- */
- var $actions = array();
-
- /**
- * The actions that this wizard step requires.
- *
- * @var array
- * @since 4.0.0
- */
- protected $actions = array();
-
- /**
- * The actions that this wizard step requires.
- *
- * @var array
- * @since 4.0.0
- */
- protected $actions = array();
-
-}//end class
-
-class Foo
-{
-
- private $foo; // comment
-
- private $bar;
-
-}
-
-class Foo
-{
-
- private $foo; // comment
-
- /**
- * @var type
- */
- private $bar;
-
-}
-
-class Foo
-{
-
- /**
- * @var integer
- */
- private $foo; // comment
-
- private $bar;
-
- // here comes the comment
- private $caseStudy = null;
-
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php
deleted file mode 100644
index e4e47cdb..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/**
- * Unit test class for the MemberVarSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class MemberVarSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 4 => 1,
- 7 => 1,
- 20 => 1,
- 30 => 1,
- 35 => 1,
- 44 => 1,
- 50 => 1,
- 73 => 1,
- 86 => 1,
- 106 => 1,
- 115 => 1,
- 150 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc
deleted file mode 100644
index 1c873219..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.inc
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-$this->testThis();
-$this-> testThis();
-$this -> testThis();
-$this->/* comment here */testThis();
-$this/* comment here */ -> testThis();
-$this
- ->testThis();
-$this->
- testThis();
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.ObjectOperatorSpacing ignoreNewlines true
-
-$this->testThis();
-$this-> testThis();
-$this -> testThis();
-$this->/* comment here */testThis();
-$this/* comment here */ -> testThis();
-$this
- ->testThis();
-$this->
- testThis();
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.ObjectOperatorSpacing ignoreNewlines false
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php
deleted file mode 100644
index 8fae2c76..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Unit test class for the ObjectOperatorSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ObjectOperatorSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 4 => 2,
- 6 => 2,
- 8 => 1,
- 9 => 1,
- 15 => 1,
- 16 => 2,
- 18 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc
deleted file mode 100644
index 1bd22e67..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc
+++ /dev/null
@@ -1,203 +0,0 @@
-<?php
-
-$result = 1 + 2;
-$result = 1 + 2;
-$result = 1 + 2;
-$result = 1 +2;
-$result = 1+ 2;
-$result = 1+2;
-
-$result = 1 - 2;
-$result = 1 - 2;
-$result = 1 - 2;
-$result = 1 -2;
-$result = 1- 2;
-$result = 1-2;
-
-$result = 1 * 2;
-$result = 1 * 2;
-$result = 1 * 2;
-$result = 1 *2;
-$result = 1* 2;
-$result = 1*2;
-
-$result = 1 / 2;
-$result = 1 / 2;
-$result = 1 / 2;
-$result = 1 /2;
-$result = 1/ 2;
-$result = 1/2;
-
-$result = 1 % 2;
-$result = 1 % 2;
-$result = 1 % 2;
-$result = 1 %2;
-$result = 1% 2;
-$result = 1%2;
-$result = '100%';
-
-$result += 4;
-$result+=4;
-$result -= 4;
-$result-=4;
-$result /= 4;
-$result/=4;
-$result *=4;
-$result*=4;
-
-$result =& $thing;
-if ($result & 4) {
- if ($result | 4) {
- }
-}
-if ($result&4 && $result & 4) {
- if ($result |4 || $result | 4) {
- }
-}
-
-$result = ((1 + 2) - (3 * 4 / 5) % 6);
-$result = ((1+ 2) - (3*4/5) % 6);
-return -1;
-$file = '...'.substr($file, (($padding * -1) + 3));
-
-$totalErrors += $errors['errors'];
-$totalWarnings += $errors['warnings'];
-
-if (substr($line, 0, 3) === '/**') {
- $line = substr($line, 3);
-} else if (substr($line, -2, 2) === '*/') {
- $line = substr(-2, 0, -2);
-} else if ($line{0} === '*') {
- $line = substr($line, 1);
-}
-
-if ($pos === -1) {
-}
-
-for ($i=0; $i<=5; $i++) {
- $j^= $i;
- $k %=$i;
- $l&=$i;
- $m.= 'Hello ';
-}
-
-$z = ($a+ $b- $c* $d/ $e% $f^ $g);
-$z = ($a +$b -$c *$d /$e %$f ^$g);
-
-$a== $b && $c!= $d && $e=== $f && $g!== $h;
-$i> $j && $k< $l && $m>= $n && $o<= $p && $q<> $r;
-
-$a ==$b && $c !=$d && $e ===$f && $g !==$h;
-$i >$j && $k <$l && $m >=$n && $o <=$p && $q <>$r;
-
-function myFunction($variable=0, $var2='string') {}
-
-if (index > -1) {
-}
-
-array_walk_recursive($array, function(&$item) use (&$something) {
-});
-
-$var = saveFile(&$model, &$foo);
-
-// This is all valid.
-$boo = -$foo;
-function foo($boo = -1) {}
-$foo = array('boo' => -1);
-$x = $test ? -1 : 1;
-$y = $test ? 1 : -1;
-$z = $test ?: false;
-
-$closureWithDefaultParameter = function (array $testArray=array()) {};
-
-switch ($foo) {
- case -1:
- break;
-}
-
-$y = 1 * -1;
-$y = -1 * 1;
-$y = -1 * $var;
-$y = 10 / -2;
-$y = -10 / 2;
-$y = (-10 / 2);
-$y = (-10 / $var);
-$y = 10 + -2;
-$y = -10 + 2;
-
-$a = $x?$y:$z;
-$a = $x ? $y : $z;
-
-$y = 1
- + 2
- - 3;
-
-$y = 1 +
- 2 -
- 3;
-
-$y = 1
-+ 2
-- 3;
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.OperatorSpacing ignoreNewlines true
-$y = 1
- + 2
- - 3;
-
-$y = 1 +
- 2 -
- 3;
-
-$y = 1
-+ 2
-- 3;
-// @codingStandardsChangeSetting Squiz.WhiteSpace.OperatorSpacing ignoreNewlines false
-
-if (true || -1 == $b) {
-}
-
-$var = array(-1);
-$var = [-1];
-$var = [0, -1, -2];
-
-$y = array(&$x);
-$y = [&$x];
-$y = array(&$a, &$b, &$c);
-$y = [&$a, &$b, &$c];
-$y = array(&$a => 1, 2 => &$b, &$c);
-$y = [&$a => 1, 2 => &$b, &$c];
-
-if ($a <=> $b) {
-}
-
-if ($a <=>$b) {
-}
-
-$a |= $b;
-$a **= $b;
-$a ??= $b;
-
-$a = +1;
-
-function bar($boo = +1) {}
-
-$username = $_GET['user']??'nobody';
-
-function foo(string $bar, array $baz, ?MyClass $object) : MyClass {}
-
-declare(strict_types=1);
-
-function foo($c = ((BAR)?10:100)) {}
-
-$res = $a ?: $b;
-$res = $a ?: $b;
-$res = $a ?: $b;
-$res = $a ?: $b;
-
-$res = $a ? : $b;
-$res = $a ? : $b;
-$res = $a ? : $b;
-$res = $a ? : $b;
-
-function foo(string $a = '', ?string $b = ''): ?string {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc.fixed
deleted file mode 100644
index 9f344cb1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.inc.fixed
+++ /dev/null
@@ -1,197 +0,0 @@
-<?php
-
-$result = 1 + 2;
-$result = 1 + 2;
-$result = 1 + 2;
-$result = 1 + 2;
-$result = 1 + 2;
-$result = 1 + 2;
-
-$result = 1 - 2;
-$result = 1 - 2;
-$result = 1 - 2;
-$result = 1 - 2;
-$result = 1 - 2;
-$result = 1 - 2;
-
-$result = 1 * 2;
-$result = 1 * 2;
-$result = 1 * 2;
-$result = 1 * 2;
-$result = 1 * 2;
-$result = 1 * 2;
-
-$result = 1 / 2;
-$result = 1 / 2;
-$result = 1 / 2;
-$result = 1 / 2;
-$result = 1 / 2;
-$result = 1 / 2;
-
-$result = 1 % 2;
-$result = 1 % 2;
-$result = 1 % 2;
-$result = 1 % 2;
-$result = 1 % 2;
-$result = 1 % 2;
-$result = '100%';
-
-$result += 4;
-$result += 4;
-$result -= 4;
-$result -= 4;
-$result /= 4;
-$result /= 4;
-$result *= 4;
-$result *= 4;
-
-$result =& $thing;
-if ($result & 4) {
- if ($result | 4) {
- }
-}
-if ($result & 4 && $result & 4) {
- if ($result | 4 || $result | 4) {
- }
-}
-
-$result = ((1 + 2) - (3 * 4 / 5) % 6);
-$result = ((1 + 2) - (3 * 4 / 5) % 6);
-return -1;
-$file = '...'.substr($file, (($padding * -1) + 3));
-
-$totalErrors += $errors['errors'];
-$totalWarnings += $errors['warnings'];
-
-if (substr($line, 0, 3) === '/**') {
- $line = substr($line, 3);
-} else if (substr($line, -2, 2) === '*/') {
- $line = substr(-2, 0, -2);
-} else if ($line{0} === '*') {
- $line = substr($line, 1);
-}
-
-if ($pos === -1) {
-}
-
-for ($i = 0; $i <= 5; $i++) {
- $j ^= $i;
- $k %= $i;
- $l &= $i;
- $m .= 'Hello ';
-}
-
-$z = ($a + $b - $c * $d / $e % $f ^ $g);
-$z = ($a + $b - $c * $d / $e % $f ^ $g);
-
-$a == $b && $c != $d && $e === $f && $g !== $h;
-$i > $j && $k < $l && $m >= $n && $o <= $p && $q <> $r;
-
-$a == $b && $c != $d && $e === $f && $g !== $h;
-$i > $j && $k < $l && $m >= $n && $o <= $p && $q <> $r;
-
-function myFunction($variable=0, $var2='string') {}
-
-if (index > -1) {
-}
-
-array_walk_recursive($array, function(&$item) use (&$something) {
-});
-
-$var = saveFile(&$model, &$foo);
-
-// This is all valid.
-$boo = -$foo;
-function foo($boo = -1) {}
-$foo = array('boo' => -1);
-$x = $test ? -1 : 1;
-$y = $test ? 1 : -1;
-$z = $test ?: false;
-
-$closureWithDefaultParameter = function (array $testArray=array()) {};
-
-switch ($foo) {
- case -1:
- break;
-}
-
-$y = 1 * -1;
-$y = -1 * 1;
-$y = -1 * $var;
-$y = 10 / -2;
-$y = -10 / 2;
-$y = (-10 / 2);
-$y = (-10 / $var);
-$y = 10 + -2;
-$y = -10 + 2;
-
-$a = $x ? $y : $z;
-$a = $x ? $y : $z;
-
-$y = 1 + 2 - 3;
-
-$y = 1 + 2 - 3;
-
-$y = 1 + 2 - 3;
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.OperatorSpacing ignoreNewlines true
-$y = 1
- + 2
- - 3;
-
-$y = 1 +
- 2 -
- 3;
-
-$y = 1
-+ 2
-- 3;
-// @codingStandardsChangeSetting Squiz.WhiteSpace.OperatorSpacing ignoreNewlines false
-
-if (true || -1 == $b) {
-}
-
-$var = array(-1);
-$var = [-1];
-$var = [0, -1, -2];
-
-$y = array(&$x);
-$y = [&$x];
-$y = array(&$a, &$b, &$c);
-$y = [&$a, &$b, &$c];
-$y = array(&$a => 1, 2 => &$b, &$c);
-$y = [&$a => 1, 2 => &$b, &$c];
-
-if ($a <=> $b) {
-}
-
-if ($a <=> $b) {
-}
-
-$a |= $b;
-$a **= $b;
-$a ??= $b;
-
-$a = +1;
-
-function bar($boo = +1) {}
-
-$username = $_GET['user'] ?? 'nobody';
-
-function foo(string $bar, array $baz, ?MyClass $object) : MyClass {}
-
-declare(strict_types=1);
-
-function foo($c = ((BAR) ? 10 : 100)) {}
-
-$res = $a ?: $b;
-$res = $a ?: $b;
-$res = $a ?: $b;
-$res = $a ?: $b;
-
-$res = $a ? : $b;
-$res = $a ? : $b;
-$res = $a ? : $b;
-$res = $a ? : $b;
-
-function foo(string $a = '', ?string $b = ''): ?string {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js
deleted file mode 100644
index 4566d133..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
-result = 1 + 2;
-result = 1 + 2;
-result = 1 + 2;
-result = 1 +2;
-result = 1+ 2;
-result = 1+2;
-
-result = 1 - 2;
-result = 1 - 2;
-result = 1 - 2;
-result = 1 -2;
-result = 1- 2;
-result = 1-2;
-
-result = 1 * 2;
-result = 1 * 2;
-result = 1 * 2;
-result = 1 *2;
-result = 1* 2;
-result = 1*2;
-
-result = 1 / 2;
-result = 1 / 2;
-result = 1 / 2;
-result = 1 /2;
-result = 1/ 2;
-result = 1/2;
-
-result = 1 % 2;
-result = 1 % 2;
-result = 1 % 2;
-result = 1 %2;
-result = 1% 2;
-result = 1%2;
-result = '100%';
-
-result += 4;
-result+=4;
-result -= 4;
-result-=4;
-result /= 4;
-result/=4;
-result *=4;
-result*=4;
-
-$.localScroll({offset: {top: -32}});
-
-switch (result) {
- case -1:
- break;
-}
-
-result = x?y:z;
-result = x ? y : z;
-
-if (something === true
- ^ somethingElse === true
-) {
- return false;
-}
-
-y = 1
- + 2
- - 3;
-
-y = 1 +
- 2 -
- 3;
-
-y = 1
-+ 2
-- 3;
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.OperatorSpacing ignoreNewlines true
-y = 1
- + 2
- - 3;
-
-y = 1 +
- 2 -
- 3;
-
-y = 1
-+ 2
-- 3;
-// @codingStandardsChangeSetting Squiz.WhiteSpace.OperatorSpacing ignoreNewlines false
-
-if (true || -1 == b) {
-}
-
-x = x << y;
-x <<= y;
-x = x >> y;
-x >>= y;
-x = x >>> y;
-x >>>= y;
-
-var foo = bar.map(baz=> baz.length);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js.fixed
deleted file mode 100644
index 64a56802..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.js.fixed
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-result = 1 + 2;
-result = 1 + 2;
-result = 1 + 2;
-result = 1 + 2;
-result = 1 + 2;
-result = 1 + 2;
-
-result = 1 - 2;
-result = 1 - 2;
-result = 1 - 2;
-result = 1 - 2;
-result = 1 - 2;
-result = 1 - 2;
-
-result = 1 * 2;
-result = 1 * 2;
-result = 1 * 2;
-result = 1 * 2;
-result = 1 * 2;
-result = 1 * 2;
-
-result = 1 / 2;
-result = 1 / 2;
-result = 1 / 2;
-result = 1 / 2;
-result = 1 / 2;
-result = 1 / 2;
-
-result = 1 % 2;
-result = 1 % 2;
-result = 1 % 2;
-result = 1 % 2;
-result = 1 % 2;
-result = 1 % 2;
-result = '100%';
-
-result += 4;
-result += 4;
-result -= 4;
-result -= 4;
-result /= 4;
-result /= 4;
-result *= 4;
-result *= 4;
-
-$.localScroll({offset: {top: -32}});
-
-switch (result) {
- case -1:
- break;
-}
-
-result = x ? y : z;
-result = x ? y : z;
-
-if (something === true
- ^ somethingElse === true
-) {
- return false;
-}
-
-y = 1 + 2 - 3;
-
-y = 1 + 2 - 3;
-
-y = 1 + 2 - 3;
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.OperatorSpacing ignoreNewlines true
-y = 1
- + 2
- - 3;
-
-y = 1 +
- 2 -
- 3;
-
-y = 1
-+ 2
-- 3;
-// @codingStandardsChangeSetting Squiz.WhiteSpace.OperatorSpacing ignoreNewlines false
-
-if (true || -1 == b) {
-}
-
-x = x << y;
-x <<= y;
-x = x >> y;
-x >>= y;
-x = x >>> y;
-x >>>= y;
-
-var foo = bar.map(baz => baz.length);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php
deleted file mode 100644
index dc0c9f48..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php
+++ /dev/null
@@ -1,164 +0,0 @@
-<?php
-/**
- * Unit test class for the OperatorSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class OperatorSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='OperatorSpacingUnitTest.inc')
- {
- switch ($testFile) {
- case 'OperatorSpacingUnitTest.inc':
- return array(
- 4 => 1,
- 5 => 2,
- 6 => 1,
- 7 => 1,
- 8 => 2,
- 11 => 1,
- 12 => 2,
- 13 => 1,
- 14 => 1,
- 15 => 2,
- 18 => 1,
- 19 => 2,
- 20 => 1,
- 21 => 1,
- 22 => 2,
- 25 => 1,
- 26 => 2,
- 27 => 1,
- 28 => 1,
- 29 => 2,
- 32 => 1,
- 33 => 2,
- 34 => 1,
- 35 => 1,
- 36 => 2,
- 40 => 2,
- 42 => 2,
- 44 => 2,
- 45 => 1,
- 46 => 2,
- 53 => 4,
- 54 => 3,
- 59 => 10,
- 64 => 1,
- 77 => 4,
- 78 => 1,
- 79 => 1,
- 80 => 2,
- 81 => 1,
- 84 => 6,
- 85 => 6,
- 87 => 4,
- 88 => 5,
- 90 => 4,
- 91 => 5,
- 128 => 4,
- 132 => 1,
- 133 => 1,
- 135 => 1,
- 136 => 1,
- 140 => 1,
- 141 => 1,
- 174 => 1,
- 177 => 1,
- 178 => 1,
- 179 => 1,
- 185 => 2,
- 191 => 4,
- 194 => 1,
- 195 => 1,
- 196 => 2,
- 199 => 1,
- 200 => 1,
- 201 => 2,
- );
- break;
- case 'OperatorSpacingUnitTest.js':
- return array(
- 4 => 1,
- 5 => 2,
- 6 => 1,
- 7 => 1,
- 8 => 2,
- 11 => 1,
- 12 => 2,
- 13 => 1,
- 14 => 1,
- 15 => 2,
- 18 => 1,
- 19 => 2,
- 20 => 1,
- 21 => 1,
- 22 => 2,
- 25 => 1,
- 26 => 2,
- 27 => 1,
- 28 => 1,
- 29 => 2,
- 32 => 1,
- 33 => 2,
- 34 => 1,
- 35 => 1,
- 36 => 2,
- 40 => 2,
- 42 => 2,
- 44 => 2,
- 45 => 1,
- 46 => 2,
- 55 => 4,
- 65 => 1,
- 66 => 1,
- 68 => 1,
- 69 => 1,
- 73 => 1,
- 74 => 1,
- 100 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js
deleted file mode 100644
index 15890b96..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var x = {
- b: 'x',
- xasd: x,
- abc:x,
- a: function () {
- alert('thats right');
- x = (x?a:x);
- },
- casdasd : 123123,
- omgwtfbbq: {
- a: 1,
- b: 2
- }
-};
-
-id = id.replace(/row\/:/gi, '');
-
-outer_loop:
-for (i=0; i<3; i++) {
- for (j=0; j<5; j++) {
- if (j==x)
- break outer_loop;
- }
-}
-alert('hi');
-
-even_number: if ((i % 2) == 0) {
- if (i == 12)
- break even_number;
-}
-
-switch (blah) {
- case dfx.DOM_VK_LEFT:
- this.caretLeft(shiftKey);
- break;
- default:
- if (blah) {
- }
- break;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js.fixed
deleted file mode 100644
index f332878e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.js.fixed
+++ /dev/null
@@ -1,39 +0,0 @@
-var x = {
- b: 'x',
- xasd: x,
- abc: x,
- a: function () {
- alert('thats right');
- x = (x?a:x);
- },
- casdasd: 123123,
- omgwtfbbq: {
- a: 1,
- b: 2
- }
-};
-
-id = id.replace(/row\/:/gi, '');
-
-outer_loop: for (i=0; i<3; i++) {
- for (j=0; j<5; j++) {
- if (j==x)
- break outer_loop;
- }
-}
-alert('hi');
-
-even_number: if ((i % 2) == 0) {
- if (i == 12)
- break even_number;
-}
-
-switch (blah) {
- case dfx.DOM_VK_LEFT:
- this.caretLeft(shiftKey);
- break;
- default:
- if (blah) {
- }
- break;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.php
deleted file mode 100644
index 1cff360a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/PropertyLabelSpacingUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the PropertyLabel sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class PropertyLabelSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 2 => 1,
- 4 => 1,
- 9 => 2,
- 10 => 1,
- 12 => 1,
- 18 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc
deleted file mode 100644
index eb0e6334..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-use some\foo\{ClassA, ClassB, ClassC as C};
-class Test
-{
- public function __construct()
- {
- }
-
- function test1()
- {
- }
-
- function test2() {}
-
- private function _test3()
- {
- }
-
-}
-
-
-class Test2
-{
- }
-
-
-public function test2()
-{
- if ($str{0}) {
- $chr = $str{0};
- }
-
- if (!class_exists($class_name)) {
- echo $error;
- }
- $this->{$property} =& new $class_name($this->db_index);
- $this->modules[$module] =& $this->{$property};
-}
-
-foreach ($elements as $element) {
- if ($something) {
- // Do IF.
- } else if ($somethingElse) {
- // Do ELSE.
- }
-}
-
-if ($token['code'] === T_COMMENT
- && $multiLineComment === false
- && (substr($token['content'], 0, 2) === '//'
- || $token['content']{0} === '#')
-) {
-}
-
-switch ($blah) {
- case 'one':
- echo 'one';
- break;
- default:
- echo 'another';
-}
-
-?>
-
-<?php while($row = $data->getRow()): ?>
- <p><?= $val ?></p>
-<?php endwhile; ?>
-
-<body>
- <div>
- <?php if (true == false) : ?>
- <h1>o hai!</h1>
- <?php endif; ?>
- </div>
-</body>
-
-<?php
- if ($foo) {
- ?>
- <?php } ?>
-
-<?php
- if ($foo) {
- ?>
- <?php } ?>
-
-<?php
- if ($foo) {
- ?>
- <?php } ?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed
deleted file mode 100644
index ada9eaae..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-use some\foo\{ClassA, ClassB, ClassC as C};
-class Test
-{
- public function __construct()
- {
- }
-
- function test1()
- {
- }
-
- function test2() {
- }
-
- private function _test3()
- {
- }
-
-}
-
-
-class Test2
-{
-}
-
-
-public function test2()
-{
- if ($str{0}) {
- $chr = $str{0};
- }
-
- if (!class_exists($class_name)) {
- echo $error;
- }
- $this->{$property} =& new $class_name($this->db_index);
- $this->modules[$module] =& $this->{$property};
-}
-
-foreach ($elements as $element) {
- if ($something) {
- // Do IF.
- } else if ($somethingElse) {
- // Do ELSE.
- }
-}
-
-if ($token['code'] === T_COMMENT
- && $multiLineComment === false
- && (substr($token['content'], 0, 2) === '//'
- || $token['content']{0} === '#')
-) {
-}
-
-switch ($blah) {
- case 'one':
- echo 'one';
- break;
- default:
- echo 'another';
-}
-
-?>
-
-<?php while($row = $data->getRow()): ?>
- <p><?= $val ?></p>
-<?php endwhile; ?>
-
-<body>
- <div>
- <?php if (true == false) : ?>
- <h1>o hai!</h1>
- <?php endif; ?>
- </div>
-</body>
-
-<?php
- if ($foo) {
- ?>
- <?php } ?>
-
-<?php
- if ($foo) {
- ?>
- <?php } ?>
-
-<?php
- if ($foo) {
- ?>
- <?php } ?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php
deleted file mode 100644
index b7b634b6..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Unit test class for the ScopeClosingBrace sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ScopeClosingBraceUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 11 => 1,
- 13 => 1,
- 24 => 1,
- 80 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.inc
deleted file mode 100644
index b4b36293..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.inc
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-class MyClass
-{
- public static $var = null;
- protected $var = null;
-
- public static $var = null;
- protected $var = null;
-
- private function myFunction() {}
- public static function myFunction() {}
-
- private function myFunction() {}
- public static function myFunction() {}
- private static function myFunction() {}
-
- private static
- function myFunction() {}
-
- public static function output()
- {
- // New in PHP 5.3
- static::bar();
- }
-}
-
-abstract class Foo
-{
- public static function getInstance()
- {
- return new static();
- }
-}
-
-if ($geometry instanceof static) {
- echo 'foo';
-}
-
-class MyClass1 {
- use HelloWorld { sayHello as private; }
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php
deleted file mode 100644
index 7f733c46..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * Unit test class for the ScopeKeywordSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ScopeKeywordSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 7 => 2,
- 8 => 1,
- 13 => 1,
- 14 => 1,
- 15 => 1,
- 17 => 2,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc
deleted file mode 100644
index 3f82bec8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-$test = $this->testThis();
-$test = $this->testThis() ;
-$test = $this->testThis() ;
-for ($var = 1 ; $var < 10 ; $var++) {
- echo $var ;
-}
-$test = $this->testThis() /* comment here */;
-$test = $this->testThis() /* comment here */ ;
-
-$hello ='foo';
-;
-
-$sum = $a /* + $b */;
-$sum = $a // + $b
-;
-$sum = $a /* + $b
- + $c */ ;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc.fixed
deleted file mode 100644
index 368970d0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.inc.fixed
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-$test = $this->testThis();
-$test = $this->testThis();
-$test = $this->testThis();
-for ($var = 1; $var < 10; $var++) {
- echo $var;
-}
-$test = $this->testThis(); /* comment here */
-$test = $this->testThis(); /* comment here */
-
-$hello ='foo';
-;
-
-$sum = $a; /* + $b */
-$sum = $a; // + $b
-
-$sum = $a; /* + $b
- + $c */
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js
deleted file mode 100644
index 3aafd6da..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var x = {
- a: function () {
- alert('thats right') ;
- x = (x?a:x) ;
- },
-} ;
-
-id = id.replace(/row\/:;/gi, '');
-
-for (i=0 ; i<3 ; i++) {
- for (j=0; j<5 ; j++) {
- if (j==x)
- break ;
- }
-}
-alert('hi');
-;
-
-var sum = a /* + b */;
-
-var sum = a // +b
-;
-
-var sum = a /* +b
- + c */ ;
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js.fixed
deleted file mode 100644
index a547144d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.js.fixed
+++ /dev/null
@@ -1,25 +0,0 @@
-var x = {
- a: function () {
- alert('thats right');
- x = (x?a:x);
- },
-};
-
-id = id.replace(/row\/:;/gi, '');
-
-for (i=0; i<3; i++) {
- for (j=0; j<5; j++) {
- if (j==x)
- break;
- }
-}
-alert('hi');
-;
-
-var sum = a; /* + b */
-
-var sum = a; // +b
-
-
-var sum = a; /* +b
- + c */
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php
deleted file mode 100644
index 7e9a10e7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/**
- * Unit test class for the SemicolonSpacing sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SemicolonSpacingUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='SemicolonSpacingUnitTest.inc')
- {
- switch ($testFile) {
- case 'SemicolonSpacingUnitTest.inc':
- return array(
- 3 => 1,
- 4 => 1,
- 5 => 2,
- 6 => 1,
- 8 => 1,
- 9 => 1,
- 14 => 1,
- 16 => 1,
- 18 => 1,
- );
- break;
- case 'SemicolonSpacingUnitTest.js':
- return array(
- 3 => 1,
- 4 => 1,
- 6 => 1,
- 10 => 2,
- 11 => 1,
- 13 => 1,
- 19 => 1,
- 22 => 1,
- 25 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.css
deleted file mode 100644
index 2404028f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.css
+++ /dev/null
@@ -1,25 +0,0 @@
-
-.HelpWidgetType-new-bug-title {
- float: left;
-}
-.HelpWidgetType-new-bug-title {
- float: left;
-}
-.HelpWidgetType-new-bug-title {
- float: left;
-}
-
-.HelpWidgetType-new-bug-title{
- float: left;
-}
-
-/* @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines true */
-.HelpWidgetType-new-bug-title{
- float: left;
-}
-
-.HelpWidgetType-new-bug-title{
- float: left;
-}
-/* @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines false */
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.css.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.css.fixed
deleted file mode 100644
index 269ffee4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.css.fixed
+++ /dev/null
@@ -1,23 +0,0 @@
-.HelpWidgetType-new-bug-title {
- float: left;
-}
-.HelpWidgetType-new-bug-title {
- float: left;
-}
-.HelpWidgetType-new-bug-title {
- float: left;
-}
-
-.HelpWidgetType-new-bug-title{
- float: left;
-}
-
-/* @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines true */
-.HelpWidgetType-new-bug-title{
- float: left;
-}
-
-.HelpWidgetType-new-bug-title{
- float: left;
-}
-/* @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines false */
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.js
deleted file mode 100644
index 9f36e4c2..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.js
+++ /dev/null
@@ -1,56 +0,0 @@
-
-alert('hi');
-alert('hello');
-
-if (something) {
-
-}
-
-
-function myFunction()
-{
- alert('code here');
-
- alert('code here');
-
-
- // Hello.
-
- /*
- HI
- */
-
-
-}
-
-function myFunction2()
-{
- alert('code here');
-
-
- alert('code here');
-
-}
-
-MyFunction = function()
-{
- alert('code here');
-
-
- alert('code here');
-
-};
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines true
-
-function myFunction2()
-{
- alert('code here');
-
- alert('code here');
-
-}
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines false
-
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.js.fixed
deleted file mode 100644
index 1a555806..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.1.js.fixed
+++ /dev/null
@@ -1,50 +0,0 @@
-alert('hi');
-alert('hello');
-
-if (something) {
-
-}
-
-
-function myFunction()
-{
- alert('code here');
-
- alert('code here');
-
- // Hello.
-
- /*
- HI
- */
-
-}
-
-function myFunction2()
-{
- alert('code here');
-
- alert('code here');
-
-}
-
-MyFunction = function()
-{
- alert('code here');
-
- alert('code here');
-
-};
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines true
-
-function myFunction2()
-{
- alert('code here');
-
- alert('code here');
-
-}
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines false
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.css
deleted file mode 100644
index 2025eeb1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.HelpWidgetType-new-bug-title {
- float: left;
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.css.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.css.fixed
deleted file mode 100644
index 2025eeb1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.css.fixed
+++ /dev/null
@@ -1,3 +0,0 @@
-.HelpWidgetType-new-bug-title {
- float: left;
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.js
deleted file mode 100644
index 7b0c8eac..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.js
+++ /dev/null
@@ -1 +0,0 @@
-alert('hi'); \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.js.fixed
deleted file mode 100644
index 7b0c8eac..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.2.js.fixed
+++ /dev/null
@@ -1 +0,0 @@
-alert('hi'); \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.css b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.css
deleted file mode 100644
index 9f794a08..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.HelpWidgetType-new-bug-title {
- float: left;
-}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.css.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.css.fixed
deleted file mode 100644
index 2025eeb1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.css.fixed
+++ /dev/null
@@ -1,3 +0,0 @@
-.HelpWidgetType-new-bug-title {
- float: left;
-} \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.js b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.js
deleted file mode 100644
index 70f67193..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.js
+++ /dev/null
@@ -1 +0,0 @@
-alert('hi');
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.js.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.js.fixed
deleted file mode 100644
index 70f67193..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.3.js.fixed
+++ /dev/null
@@ -1 +0,0 @@
-alert('hi');
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc
deleted file mode 100644
index fdd089bd..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc
+++ /dev/null
@@ -1,54 +0,0 @@
-
-<?php
-echo 'hi';
-echo 'hello';
-
-if ($something) {
-
-}
-
-
-function myFunction()
-{
- echo 'code here';
-
- echo 'code here';
-
-
- // Hello.
-
- /*
- HI
- */
-
-
-}
-
-/**
- * Doc comment with a white space at the end.
- */
-function myFunction2()
-{
- echo 'code here';
-
-
- echo 'code here';
-
-}
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines true
-
-function myFunction2()
-{
- echo 'code here';
-
- echo 'code here';
-
-}
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines false
-
-// Уберём из системных свойств все кроме информации об услугах
-
-?>
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc.fixed b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc.fixed
deleted file mode 100644
index ef1af1a7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.inc.fixed
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-echo 'hi';
-echo 'hello';
-
-if ($something) {
-
-}
-
-
-function myFunction()
-{
- echo 'code here';
-
- echo 'code here';
-
- // Hello.
-
- /*
- HI
- */
-
-}
-
-/**
- * Doc comment with a white space at the end.
- */
-function myFunction2()
-{
- echo 'code here';
-
- echo 'code here';
-
-}
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines true
-
-function myFunction2()
-{
- echo 'code here';
-
- echo 'code here';
-
-}
-
-// @codingStandardsChangeSetting Squiz.WhiteSpace.SuperfluousWhitespace ignoreBlankLines false
-
-// Уберём из системных свойств все кроме информации об услугах
-
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php
deleted file mode 100644
index 7d908163..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-/**
- * Unit test class for the SuperfluousWhitespace sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class SuperfluousWhitespaceUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='SuperfluousWhitespaceUnitTest.inc')
- {
- switch ($testFile) {
- case 'SuperfluousWhitespaceUnitTest.inc':
- return array(
- 2 => 1,
- 4 => 1,
- 5 => 1,
- 6 => 1,
- 7 => 1,
- 16 => 1,
- 23 => 1,
- 28 => 1,
- 33 => 1,
- 53 => 1,
- );
- break;
- case 'SuperfluousWhitespaceUnitTest.1.js':
- return array(
- 1 => 1,
- 3 => 1,
- 4 => 1,
- 5 => 1,
- 6 => 1,
- 15 => 1,
- 22 => 1,
- 29 => 1,
- 38 => 1,
- 56 => 1,
- );
- break;
- case 'SuperfluousWhitespaceUnitTest.1.css':
- return array(
- 1 => 1,
- 8 => 1,
- 9 => 1,
- 11 => 1,
- 25 => 1,
- );
- break;
- default:
- return array();
- break;
- }//end switch
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/ruleset.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/ruleset.xml
deleted file mode 100644
index 0246ca38..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/ruleset.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0"?>
-<ruleset name="Squiz">
- <description>The Squiz coding standard.</description>
-
- <!-- Include some specific sniffs -->
- <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
- <rule ref="Generic.CodeAnalysis.EmptyStatement"/>
- <rule ref="Generic.Commenting.Todo"/>
- <rule ref="Generic.Commenting.DocComment"/>
- <rule ref="Generic.ControlStructures.InlineControlStructure"/>
- <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
- <rule ref="Generic.Formatting.SpaceAfterCast"/>
- <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
- <rule ref="Generic.NamingConventions.ConstructorName"/>
- <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
- <rule ref="Generic.PHP.DeprecatedFunctions"/>
- <rule ref="Generic.PHP.DisallowShortOpenTag"/>
- <rule ref="Generic.PHP.LowerCaseKeyword"/>
- <rule ref="Generic.PHP.LowerCaseConstant"/>
- <rule ref="Generic.Strings.UnnecessaryStringConcat"/>
- <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
- <rule ref="Generic.WhiteSpace.ScopeIndent"/>
- <rule ref="PEAR.ControlStructures.MultiLineCondition"/>
- <rule ref="PEAR.Files.IncludingFile"/>
- <rule ref="PEAR.Formatting.MultiLineAssignment"/>
- <rule ref="PEAR.Functions.ValidDefaultValue"/>
- <rule ref="PSR2.Files.EndFileNewline"/>
- <rule ref="Zend.Files.ClosingTag"/>
- <rule ref="Zend.Debug.CodeAnalyzer"/>
-
- <!-- Lines can be 120 chars long, but never show errors -->
- <rule ref="Generic.Files.LineLength">
- <properties>
- <property name="lineLimit" value="120"/>
- <property name="absoluteLineLimit" value="0"/>
- </properties>
- </rule>
-
- <!-- Use Unix newlines -->
- <rule ref="Generic.Files.LineEndings">
- <properties>
- <property name="eolChar" value="\n"/>
- </properties>
- </rule>
-
- <!-- Have 20 chars padding maximum and always show as errors -->
- <rule ref="Generic.Formatting.MultipleStatementAlignment">
- <properties>
- <property name="maxPadding" value="20"/>
- <property name="error" value="true"/>
- </properties>
- </rule>
-
- <!-- We allow empty catch statements -->
- <rule ref="Generic.CodeAnalysis.EmptyStatement.DetectedCATCH">
- <severity>0</severity>
- </rule>
-
- <!-- We don't want gsjlint throwing errors for things we already check -->
- <rule ref="Generic.Debug.ClosureLinter">
- <properties>
- <property name="errorCodes" type="array" value="0210"/>
- <property name="ignoreCodes" type="array" value="0001,0110,0240"/>
- </properties>
- </rule>
- <rule ref="Generic.Debug.ClosureLinter.ExternalToolError">
- <message>%2$s</message>
- </rule>
-
- <!-- Only one argument per line in multi-line function calls -->
- <rule ref="PEAR.Functions.FunctionCallSignature">
- <properties>
- <property name="allowMultipleArguments" value="false"/>
- </properties>
- </rule>
-
-</ruleset>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/Debug/CodeAnalyzerStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/Debug/CodeAnalyzerStandard.xml
deleted file mode 100644
index c462b4f8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/Debug/CodeAnalyzerStandard.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<documentation title="Zend Code Analyzer">
- <standard>
- <![CDATA[
- PHP Code should pass the zend code analyzer.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: Valid PHP Code.">
- <![CDATA[
-function foo($bar, $baz)
-{
- return <em>$bar + $baz</em>;
-}
- ]]>
- </code>
- <code title="Invalid: There is an unused function parameter.">
- <![CDATA[
-function foo($bar, $baz)
-{
- return <em>$bar + 2</em>;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/Files/ClosingTagStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/Files/ClosingTagStandard.xml
deleted file mode 100644
index aa60b8ab..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/Files/ClosingTagStandard.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<documentation title="Closing PHP Tags">
- <standard>
- <![CDATA[
- Files should not have closing php tags.
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: No closing tag at the end of the file.">
- <![CDATA[
-<?php
-$var = 1;
- ]]>
- </code>
- <code title="Invalid: A closing php tag is included at the end of the file.">
- <![CDATA[
-<?php
-$var = 1;
-<em>?></em>
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/NamingConventions/ValidVariableNameStandard.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/NamingConventions/ValidVariableNameStandard.xml
deleted file mode 100644
index 5bcde4b8..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Docs/NamingConventions/ValidVariableNameStandard.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<documentation title="Variable Names">
- <standard>
- <![CDATA[
- Variable names should be camelCased with the first letter lowercase. Private and protected member variables should begin with an underscore
- ]]>
- </standard>
- <code_comparison>
- <code title="Valid: A multi-word variable uses camel casing.">
- <![CDATA[
-<em>$testNumber</em> = 1;
- ]]>
- </code>
- <code title="Invalid: A multi-word variable uses underscores and initial capitalization.">
- <![CDATA[
-<em>$Test_Number</em> = 1;
- ]]>
- </code>
- </code_comparison>
- <code_comparison>
- <code title="Valid: A private member variable begins with an underscore.">
- <![CDATA[
-class Foo
-{
- private $<em>_</em>bar;
-}
- ]]>
- </code>
- <code title="Invalid: A private member variable does not begin with an underscore.">
- <![CDATA[
-class Foo
-{
- private $bar;
-}
- ]]>
- </code>
- </code_comparison>
-</documentation>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/Debug/CodeAnalyzerSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/Debug/CodeAnalyzerSniff.php
deleted file mode 100644
index 20a1a7c7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/Debug/CodeAnalyzerSniff.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<?php
-/**
- * Runs the Zend Code Analyzer (from Zend Studio) on the file.
- *
- * @author Holger Kral <holger.kral@zend.com>
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Zend\Sniffs\Debug;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-
-class CodeAnalyzerSniff implements Sniff
-{
-
-
- /**
- * Returns the token types that this sniff is interested in.
- *
- * @return int[]
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes the tokens that this sniff is interested in.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.
- * @param int $stackPtr The position in the stack where
- * the token was found.
- *
- * @return int
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- $analyzerPath = Config::getExecutablePath('zend_ca');
- if (is_null($analyzerPath) === true) {
- return;
- }
-
- $fileName = $phpcsFile->getFilename();
-
- // In the command, 2>&1 is important because the code analyzer sends its
- // findings to stderr. $output normally contains only stdout, so using 2>&1
- // will pipe even stderr to stdout.
- $cmd = escapeshellcmd($analyzerPath).' '.escapeshellarg($fileName).' 2>&1';
-
- // There is the possibility to pass "--ide" as an option to the analyzer.
- // This would result in an output format which would be easier to parse.
- // The problem here is that no cleartext error messages are returnwd; only
- // error-code-labels. So for a start we go for cleartext output.
- $exitCode = exec($cmd, $output, $retval);
-
- // Variable $exitCode is the last line of $output if no error occures, on
- // error it is numeric. Try to handle various error conditions and
- // provide useful error reporting.
- if (is_numeric($exitCode) === true && $exitCode > 0) {
- if (is_array($output) === true) {
- $msg = join('\n', $output);
- }
-
- throw new RuntimeException("Failed invoking ZendCodeAnalyzer, exitcode was [$exitCode], retval was [$retval], output was [$msg]");
- }
-
- if (is_array($output) === true) {
- foreach ($output as $finding) {
- // The first two lines of analyzer output contain
- // something like this:
- // > Zend Code Analyzer 1.2.2
- // > Analyzing <filename>...
- // So skip these...
- $res = preg_match("/^.+\(line ([0-9]+)\):(.+)$/", $finding, $regs);
- if (empty($regs) === true || $res === false) {
- continue;
- }
-
- $phpcsFile->addWarningOnLine(trim($regs[2]), $regs[1], 'ExternalTool');
- }
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/Files/ClosingTagSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/Files/ClosingTagSniff.php
deleted file mode 100644
index 82413f5f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/Files/ClosingTagSniff.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
- * Checks that the file does not end with a closing tag.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Zend\Sniffs\Files;
-
-use PHP_CodeSniffer\Sniffs\Sniff;
-use PHP_CodeSniffer\Files\File;
-
-class ClosingTagSniff implements Sniff
-{
-
-
- /**
- * Returns an array of tokens this test wants to listen for.
- *
- * @return array
- */
- public function register()
- {
- return array(T_OPEN_TAG);
-
- }//end register()
-
-
- /**
- * Processes this sniff, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in
- * the stack passed in $tokens.
- *
- * @return void
- */
- public function process(File $phpcsFile, $stackPtr)
- {
- // Find the last non-empty token.
- $tokens = $phpcsFile->getTokens();
- for ($last = ($phpcsFile->numTokens - 1); $last > 0; $last--) {
- if (trim($tokens[$last]['content']) !== '') {
- break;
- }
- }
-
- if ($tokens[$last]['code'] === T_CLOSE_TAG) {
- $error = 'A closing tag is not permitted at the end of a PHP file';
- $fix = $phpcsFile->addFixableError($error, $last, 'NotAllowed');
- if ($fix === true) {
- $phpcsFile->fixer->replaceToken($last, '');
- }
-
- $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at EOF', 'yes');
- } else {
- $phpcsFile->recordMetric($stackPtr, 'PHP closing tag at EOF', 'no');
- }
-
- // Ignore the rest of the file.
- return ($phpcsFile->numTokens + 1);
-
- }//end process()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/NamingConventions/ValidVariableNameSniff.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/NamingConventions/ValidVariableNameSniff.php
deleted file mode 100644
index 47654382..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/NamingConventions/ValidVariableNameSniff.php
+++ /dev/null
@@ -1,227 +0,0 @@
-<?php
-/**
- * Checks the naming of variables and member variables.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Zend\Sniffs\NamingConventions;
-
-use PHP_CodeSniffer\Sniffs\AbstractVariableSniff;
-use PHP_CodeSniffer\Util\Common;
-use PHP_CodeSniffer\Files\File;
-
-class ValidVariableNameSniff extends AbstractVariableSniff
-{
-
- /**
- * Tokens to ignore so that we can find a DOUBLE_COLON.
- *
- * @var array
- */
- private $ignore = array(
- T_WHITESPACE,
- T_COMMENT,
- );
-
-
- /**
- * Processes this test, when one of its tokens is encountered.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- protected function processVariable(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $varName = ltrim($tokens[$stackPtr]['content'], '$');
-
- $phpReservedVars = array(
- '_SERVER' => true,
- '_GET' => true,
- '_POST' => true,
- '_REQUEST' => true,
- '_SESSION' => true,
- '_ENV' => true,
- '_COOKIE' => true,
- '_FILES' => true,
- 'GLOBALS' => true,
- 'http_response_header' => true,
- 'HTTP_RAW_POST_DATA' => true,
- 'php_errormsg' => true,
- );
-
- // If it's a php reserved var, then its ok.
- if (isset($phpReservedVars[$varName]) === true) {
- return;
- }
-
- $objOperator = $phpcsFile->findNext(array(T_WHITESPACE), ($stackPtr + 1), null, true);
- if ($tokens[$objOperator]['code'] === T_OBJECT_OPERATOR) {
- // Check to see if we are using a variable from an object.
- $var = $phpcsFile->findNext(array(T_WHITESPACE), ($objOperator + 1), null, true);
- if ($tokens[$var]['code'] === T_STRING) {
- // Either a var name or a function call, so check for bracket.
- $bracket = $phpcsFile->findNext(array(T_WHITESPACE), ($var + 1), null, true);
-
- if ($tokens[$bracket]['code'] !== T_OPEN_PARENTHESIS) {
- $objVarName = $tokens[$var]['content'];
-
- // There is no way for us to know if the var is public or private,
- // so we have to ignore a leading underscore if there is one and just
- // check the main part of the variable name.
- $originalVarName = $objVarName;
- if (substr($objVarName, 0, 1) === '_') {
- $objVarName = substr($objVarName, 1);
- }
-
- if (Common::isCamelCaps($objVarName, false, true, false) === false) {
- $error = 'Variable "%s" is not in valid camel caps format';
- $data = array($originalVarName);
- $phpcsFile->addError($error, $var, 'NotCamelCaps', $data);
- } else if (preg_match('|\d|', $objVarName) === 1) {
- $warning = 'Variable "%s" contains numbers but this is discouraged';
- $data = array($originalVarName);
- $phpcsFile->addWarning($warning, $stackPtr, 'ContainsNumbers', $data);
- }
- }//end if
- }//end if
- }//end if
-
- // There is no way for us to know if the var is public or private,
- // so we have to ignore a leading underscore if there is one and just
- // check the main part of the variable name.
- $originalVarName = $varName;
- if (substr($varName, 0, 1) === '_') {
- $objOperator = $phpcsFile->findPrevious(array(T_WHITESPACE), ($stackPtr - 1), null, true);
- if ($tokens[$objOperator]['code'] === T_DOUBLE_COLON) {
- // The variable lives within a class, and is referenced like
- // this: MyClass::$_variable, so we don't know its scope.
- $inClass = true;
- } else {
- $inClass = $phpcsFile->hasCondition($stackPtr, array(T_CLASS, T_INTERFACE, T_TRAIT));
- }
-
- if ($inClass === true) {
- $varName = substr($varName, 1);
- }
- }
-
- if (Common::isCamelCaps($varName, false, true, false) === false) {
- $error = 'Variable "%s" is not in valid camel caps format';
- $data = array($originalVarName);
- $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $data);
- } else if (preg_match('|\d|', $varName) === 1) {
- $warning = 'Variable "%s" contains numbers but this is discouraged';
- $data = array($originalVarName);
- $phpcsFile->addWarning($warning, $stackPtr, 'ContainsNumbers', $data);
- }
-
- }//end processVariable()
-
-
- /**
- * Processes class member variables.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the current token in the
- * stack passed in $tokens.
- *
- * @return void
- */
- protected function processMemberVar(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
- $varName = ltrim($tokens[$stackPtr]['content'], '$');
- $memberProps = $phpcsFile->getMemberProperties($stackPtr);
- $public = ($memberProps['scope'] === 'public');
-
- if ($public === true) {
- if (substr($varName, 0, 1) === '_') {
- $error = 'Public member variable "%s" must not contain a leading underscore';
- $data = array($varName);
- $phpcsFile->addError($error, $stackPtr, 'PublicHasUnderscore', $data);
- return;
- }
- } else {
- if (substr($varName, 0, 1) !== '_') {
- $scope = ucfirst($memberProps['scope']);
- $error = '%s member variable "%s" must contain a leading underscore';
- $data = array(
- $scope,
- $varName,
- );
- $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $data);
- return;
- }
- }
-
- if (Common::isCamelCaps($varName, false, $public, false) === false) {
- $error = 'Member variable "%s" is not in valid camel caps format';
- $data = array($varName);
- $phpcsFile->addError($error, $stackPtr, 'MemberVarNotCamelCaps', $data);
- } else if (preg_match('|\d|', $varName) === 1) {
- $warning = 'Member variable "%s" contains numbers but this is discouraged';
- $data = array($varName);
- $phpcsFile->addWarning($warning, $stackPtr, 'MemberVarContainsNumbers', $data);
- }
-
- }//end processMemberVar()
-
-
- /**
- * Processes the variable found within a double quoted string.
- *
- * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
- * @param int $stackPtr The position of the double quoted
- * string.
- *
- * @return void
- */
- protected function processVariableInString(File $phpcsFile, $stackPtr)
- {
- $tokens = $phpcsFile->getTokens();
-
- $phpReservedVars = array(
- '_SERVER',
- '_GET',
- '_POST',
- '_REQUEST',
- '_SESSION',
- '_ENV',
- '_COOKIE',
- '_FILES',
- 'GLOBALS',
- 'http_response_header',
- 'HTTP_RAW_POST_DATA',
- 'php_errormsg',
- );
-
- if (preg_match_all('|[^\\\]\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)|', $tokens[$stackPtr]['content'], $matches) !== 0) {
- foreach ($matches[1] as $varName) {
- // If it's a php reserved var, then its ok.
- if (in_array($varName, $phpReservedVars) === true) {
- continue;
- }
-
- if (Common::isCamelCaps($varName, false, true, false) === false) {
- $error = 'Variable "%s" is not in valid camel caps format';
- $data = array($varName);
- $phpcsFile->addError($error, $stackPtr, 'StringVarNotCamelCaps', $data);
- } else if (preg_match('|\d|', $varName) === 1) {
- $warning = 'Variable "%s" contains numbers but this is discouraged';
- $data = array($varName);
- $phpcsFile->addWarning($warning, $stackPtr, 'StringVarContainsNumbers', $data);
- }
- }//end foreach
- }//end if
-
- }//end processVariableInString()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.inc
deleted file mode 100644
index c8d0499d..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-function myFunction($variable) {
- // $variable is unused.
- echo 'hi';
-}
-?>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.php
deleted file mode 100644
index a24eaff4..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Debug/CodeAnalyzerUnitTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * Unit test class for the CodeAnalyzer sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Zend\Tests\Debug;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-use PHP_CodeSniffer\Config;
-
-class CodeAnalyzerUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Should this test be skipped for some reason.
- *
- * @return void
- */
- protected function shouldSkipTest()
- {
- $analyzerPath = Config::getExecutablePath('zend_ca');
- return (is_null($analyzerPath));
-
- }//end shouldSkipTest()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array();
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(2 => 1);
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.1.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.1.inc
deleted file mode 100644
index 7e7089dc..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.1.inc
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-echo 'hi';
-
-?>
-
-<?php
-
-echo 'bye';
-
-?>
-
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.2.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.2.inc
deleted file mode 100644
index 055a3083..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.2.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-<div class="clear"></div>
- <?php include('inc.php'); ?>
-</div> \ No newline at end of file
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.php
deleted file mode 100644
index 4d3dd6dd..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * Unit test class for the ClosingTag sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Zend\Tests\Files;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ClosingTagUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @param string $testFile The name of the file being tested.
- *
- * @return array<int, int>
- */
- public function getErrorList($testFile='')
- {
- if ($testFile !== 'ClosingTagUnitTest.1.inc') {
- return array();
- }
-
- return array(11 => 1);
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array();
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.inc
deleted file mode 100644
index d438ab7f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.inc
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-$varName = 'hello';
-$var_name = 'hello';
-$varname = 'hello';
-$_varName = 'hello';
-$varname2 = 'hello';
-
-class MyClass
-{
- $varName = 'hello';
- $var_name = 'hello';
- $varname = 'hello';
- $_varName = 'hello';
- $varName2 = 'hello';
-
- public $varName = 'hello';
- public $var_name = 'hello';
- public $varname = 'hello';
- public $_varName = 'hello';
- public $varName2 = 'hello';
-
- protected $_varName = 'hello';
- protected $_var_name = 'hello';
- protected $_varname = 'hello';
- protected $varName = 'hello';
- protected $_varName2 = 'hello';
-
- private $_varName = 'hello';
- private $_var_name = 'hello';
- private $_varname = 'hello';
- private $varName = 'hello';
- private $_varName2 = 'hello';
-}
-
-echo $varName;
-echo $var_name;
-echo $varname;
-echo $_varName;
-echo $varName2;
-
-echo "Hello $varName";
-echo "Hello $var_name";
-echo "Hello $varname";
-echo "Hello $_varName";
-echo "Hello $varName2";
-
-echo 'Hello '.$varName;
-echo 'Hello '.$var_name;
-echo 'Hello '.$varname;
-echo 'Hello '.$_varName;
-echo 'Hello '.$varName2;
-
-echo $_SERVER['var_name'];
-echo $_REQUEST['var_name'];
-echo $_GET['var_name'];
-echo $_POST['var_name'];
-echo $GLOBALS['var_name'];
-echo $GLOBALS['var_name2'];
-
-echo MyClass::$varName;
-echo MyClass::$var_name;
-echo MyClass::$varname;
-echo MyClass::$_varName;
-echo MyClass::$varName2;
-
-echo $this->varName;
-echo $this->var_name;
-echo $this->varname;
-echo $this->_varName;
-echo $this->varName2;
-echo $object->varName;
-echo $object->var_name;
-echo $object->varName2;
-echo $object_name->varname;
-echo $object_name->_varName;
-echo $object_name->varName2;
-
-echo $this->myFunction($one, $two);
-echo $object->myFunction($one_two, $var2);
-
-$error = "format is \$GLOBALS['$varName']";
-$error = "format is \$GLOBALS['$varName2']";
-
-echo $_SESSION['var_name'];
-echo $_FILES['var_name'];
-echo $_ENV['var_name'];
-echo $_COOKIE['var_name'];
-echo $_COOKIE['var_name2'];
-
-$XML = 'hello';
-$myXML = 'hello';
-$XMLParser = 'hello';
-$xmlParser = 'hello';
-$xmlParser2 = 'hello';
-
-echo "{$_SERVER['HOSTNAME']} $var_name";
-
-$someObject->{$name};
-$someObject->my_function($var_name);
-
-var_dump($http_response_header);
-var_dump($HTTP_RAW_POST_DATA);
-var_dump($php_errormsg);
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php
deleted file mode 100644
index ebd0a6ff..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-/**
- * Unit test class for the ValidVariableName sniff.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Standards\Zend\Tests\NamingConventions;
-
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-class ValidVariableNameUnitTest extends AbstractSniffUnitTest
-{
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getErrorList()
- {
- return array(
- 3 => 1,
- 5 => 1,
- 11 => 1,
- 13 => 1,
- 17 => 1,
- 19 => 1,
- 23 => 1,
- 25 => 1,
- 29 => 1,
- 31 => 1,
- 36 => 1,
- 38 => 1,
- 42 => 1,
- 44 => 1,
- 48 => 1,
- 50 => 1,
- 61 => 1,
- 67 => 1,
- 72 => 1,
- 74 => 1,
- 75 => 1,
- 76 => 1,
- 79 => 1,
- 96 => 1,
- 99 => 1,
- );
-
- }//end getErrorList()
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array<int, int>
- */
- public function getWarningList()
- {
- return array(
- 6 => 1,
- 14 => 1,
- 20 => 1,
- 26 => 1,
- 32 => 1,
- 39 => 1,
- 45 => 1,
- 51 => 1,
- 64 => 1,
- 70 => 1,
- 73 => 1,
- 76 => 1,
- 79 => 1,
- 82 => 1,
- 94 => 1,
- );
-
- }//end getWarningList()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/ruleset.xml b/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/ruleset.xml
deleted file mode 100644
index d3031512..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Standards/Zend/ruleset.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0"?>
-<ruleset name="Zend">
- <description>A coding standard based on an early Zend Framework coding standard. Note that this standard is out of date.</description>
-
- <!-- Include some sniffs from all around the place -->
- <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
- <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
- <rule ref="Generic.PHP.DisallowShortOpenTag"/>
- <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
- <rule ref="PEAR.Classes.ClassDeclaration"/>
- <rule ref="PEAR.ControlStructures.ControlSignature"/>
- <rule ref="PEAR.Functions.FunctionCallSignature"/>
- <rule ref="PEAR.Functions.ValidDefaultValue"/>
- <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
- <rule ref="Squiz.Functions.GlobalFunction"/>
-
- <!-- Lines can be 80 chars long, show errors at 120 chars -->
- <rule ref="Generic.Files.LineLength">
- <properties>
- <property name="lineLimit" value="80"/>
- <property name="absoluteLineLimit" value="120"/>
- </properties>
- </rule>
-
- <!-- Use Unix newlines -->
- <rule ref="Generic.Files.LineEndings">
- <properties>
- <property name="eolChar" value="\n"/>
- </properties>
- </rule>
-
-</ruleset>
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/CSS.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/CSS.php
deleted file mode 100644
index 3bf2ab8a..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/CSS.php
+++ /dev/null
@@ -1,535 +0,0 @@
-<?php
-/**
- * Tokenizes CSS code.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tokenizers;
-
-use PHP_CodeSniffer\Util;
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Exceptions\TokenizerException;
-
-class CSS extends PHP
-{
-
-
- /**
- * Initialise the tokenizer.
- *
- * Pre-checks the content to see if it looks minified.
- *
- * @param string $content The content to tokenize,
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- * @param string $eolChar The EOL char used in the content.
- *
- * @return void
- * @throws TokenizerException If the file appears to be minified.
- */
- public function __construct($content, Config $config, $eolChar='\n')
- {
- if ($this->isMinifiedContent($content, $eolChar) === true) {
- throw new TokenizerException('File appears to be minified and cannot be processed');
- }
-
- return parent::__construct($content, $config, $eolChar);
-
- }//end __construct()
-
-
- /**
- * Creates an array of tokens when given some CSS code.
- *
- * Uses the PHP tokenizer to do all the tricky work
- *
- * @param string $string The string to tokenize.
- *
- * @return array
- */
- public function tokenize($string)
- {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** START CSS TOKENIZING 1ST PASS ***".PHP_EOL;
- }
-
- // If the content doesn't have an EOL char on the end, add one so
- // the open and close tags we add are parsed correctly.
- $eolAdded = false;
- if (substr($string, (strlen($this->eolChar) * -1)) !== $this->eolChar) {
- $string .= $this->eolChar;
- $eolAdded = true;
- }
-
- $string = str_replace('<?php', '^PHPCS_CSS_T_OPEN_TAG^', $string);
- $string = str_replace('?>', '^PHPCS_CSS_T_CLOSE_TAG^', $string);
- $tokens = parent::tokenize('<?php '.$string.'?>');
-
- $finalTokens = array();
- $finalTokens[0] = array(
- 'code' => T_OPEN_TAG,
- 'type' => 'T_OPEN_TAG',
- 'content' => '',
- );
-
- $newStackPtr = 1;
- $numTokens = count($tokens);
- $multiLineComment = false;
- for ($stackPtr = 1; $stackPtr < $numTokens; $stackPtr++) {
- $token = $tokens[$stackPtr];
-
- // CSS files don't have lists, breaks etc, so convert these to
- // standard strings early so they can be converted into T_STYLE
- // tokens and joined with other strings if needed.
- if ($token['code'] === T_BREAK
- || $token['code'] === T_LIST
- || $token['code'] === T_DEFAULT
- || $token['code'] === T_SWITCH
- || $token['code'] === T_FOR
- || $token['code'] === T_FOREACH
- || $token['code'] === T_WHILE
- || $token['code'] === T_DEC
- ) {
- $token['type'] = 'T_STRING';
- $token['code'] = T_STRING;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $token['type'];
- $content = Util\Common::prepareForOutput($token['content']);
- echo "\tProcess token $stackPtr: $type => $content".PHP_EOL;
- }
-
- if ($token['code'] === T_BITWISE_XOR
- && $tokens[($stackPtr + 1)]['content'] === 'PHPCS_CSS_T_OPEN_TAG'
- ) {
- $content = '<?php';
- for ($stackPtr = ($stackPtr + 3); $stackPtr < $numTokens; $stackPtr++) {
- if ($tokens[$stackPtr]['code'] === T_BITWISE_XOR
- && $tokens[($stackPtr + 1)]['content'] === 'PHPCS_CSS_T_CLOSE_TAG'
- ) {
- // Add the end tag and ignore the * we put at the end.
- $content .= '?>';
- $stackPtr += 2;
- break;
- } else {
- $content .= $tokens[$stackPtr]['content'];
- }
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t=> Found embedded PHP code: ";
- $cleanContent = Util\Common::prepareForOutput($content);
- echo $cleanContent.PHP_EOL;
- }
-
- $finalTokens[$newStackPtr] = array(
- 'type' => 'T_EMBEDDED_PHP',
- 'code' => T_EMBEDDED_PHP,
- 'content' => $content,
- );
-
- $newStackPtr++;
- continue;
- }//end if
-
- if ($token['code'] === T_GOTO_LABEL) {
- // Convert these back to T_STRING followed by T_COLON so we can
- // more easily process style definitions.
- $finalTokens[$newStackPtr] = array(
- 'type' => 'T_STRING',
- 'code' => T_STRING,
- 'content' => substr($token['content'], 0, -1),
- );
- $newStackPtr++;
- $finalTokens[$newStackPtr] = array(
- 'type' => 'T_COLON',
- 'code' => T_COLON,
- 'content' => ':',
- );
- $newStackPtr++;
- continue;
- }
-
- if ($token['code'] === T_FUNCTION) {
- // There are no functions in CSS, so convert this to a string.
- $finalTokens[$newStackPtr] = array(
- 'type' => 'T_STRING',
- 'code' => T_STRING,
- 'content' => $token['content'],
- );
-
- $newStackPtr++;
- continue;
- }
-
- if ($token['code'] === T_COMMENT
- && substr($token['content'], 0, 2) === '/*'
- ) {
- // Multi-line comment. Record it so we can ignore other
- // comment tags until we get out of this one.
- $multiLineComment = true;
- }
-
- if ($token['code'] === T_COMMENT
- && $multiLineComment === false
- && (substr($token['content'], 0, 2) === '//'
- || $token['content']{0} === '#')
- ) {
- $content = ltrim($token['content'], '#/');
-
- // Guard against PHP7+ syntax errors by stripping
- // leading zeros so the content doesn't look like an invalid int.
- $leadingZero = false;
- if ($content{0} === '0') {
- $content = '1'.$content;
- $leadingZero = true;
- }
-
- $commentTokens = parent::tokenize('<?php '.$content.'?>');
-
- // The first and last tokens are the open/close tags.
- array_shift($commentTokens);
- array_pop($commentTokens);
-
- if ($leadingZero === true) {
- $commentTokens[0]['content'] = substr($commentTokens[0]['content'], 1);
- $content = substr($content, 1);
- }
-
- if ($token['content']{0} === '#') {
- // The # character is not a comment in CSS files, so
- // determine what it means in this context.
- $firstContent = $commentTokens[0]['content'];
-
- // If the first content is just a number, it is probably a
- // colour like 8FB7DB, which PHP splits into 8 and FB7DB.
- if (($commentTokens[0]['code'] === T_LNUMBER
- || $commentTokens[0]['code'] === T_DNUMBER)
- && $commentTokens[1]['code'] === T_STRING
- ) {
- $firstContent .= $commentTokens[1]['content'];
- array_shift($commentTokens);
- }
-
- // If the first content looks like a colour and not a class
- // definition, join the tokens together.
- if (preg_match('/^[ABCDEF0-9]+$/i', $firstContent) === 1
- && $commentTokens[1]['content'] !== '-'
- ) {
- array_shift($commentTokens);
- // Work out what we trimmed off above and remember to re-add it.
- $trimmed = substr($token['content'], 0, (strlen($token['content']) - strlen($content)));
- $finalTokens[$newStackPtr] = array(
- 'type' => 'T_COLOUR',
- 'code' => T_COLOUR,
- 'content' => $trimmed.$firstContent,
- );
- } else {
- $finalTokens[$newStackPtr] = array(
- 'type' => 'T_HASH',
- 'code' => T_HASH,
- 'content' => '#',
- );
- }
- } else {
- $finalTokens[$newStackPtr] = array(
- 'type' => 'T_STRING',
- 'code' => T_STRING,
- 'content' => '//',
- );
- }//end if
-
- $newStackPtr++;
-
- array_splice($tokens, $stackPtr, 1, $commentTokens);
- $numTokens = count($tokens);
- $stackPtr--;
- continue;
- }//end if
-
- if ($token['code'] === T_COMMENT
- && substr($token['content'], -2) === '*/'
- ) {
- // Multi-line comment is done.
- $multiLineComment = false;
- }
-
- $finalTokens[$newStackPtr] = $token;
- $newStackPtr++;
- }//end for
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** END CSS TOKENIZING 1ST PASS ***".PHP_EOL;
- echo "\t*** START CSS TOKENIZING 2ND PASS ***".PHP_EOL;
- }
-
- // A flag to indicate if we are inside a style definition,
- // which is defined using curly braces.
- $inStyleDef = false;
-
- // A flag to indicate if an At-rule like "@media" is used, which will result
- // in nested curly brackets.
- $asperandStart = false;
-
- $numTokens = count($finalTokens);
- for ($stackPtr = 0; $stackPtr < $numTokens; $stackPtr++) {
- $token = $finalTokens[$stackPtr];
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $token['type'];
- $content = Util\Common::prepareForOutput($token['content']);
- echo "\tProcess token $stackPtr: $type => $content".PHP_EOL;
- }
-
- switch ($token['code']) {
- case T_OPEN_CURLY_BRACKET:
- // Opening curly brackets for an At-rule do not start a style
- // definition. We also reset the asperand flag here because the next
- // opening curly bracket could be indeed the start of a style
- // definition.
- if ($asperandStart === true) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- if ($inStyleDef === true) {
- echo "\t\t* style definition closed *".PHP_EOL;
- }
-
- if ($asperandStart === true) {
- echo "\t\t* at-rule definition closed *".PHP_EOL;
- }
- }
-
- $inStyleDef = false;
- $asperandStart = false;
- } else {
- $inStyleDef = true;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* style definition opened *".PHP_EOL;
- }
- }
- break;
- case T_CLOSE_CURLY_BRACKET:
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- if ($inStyleDef === true) {
- echo "\t\t* style definition closed *".PHP_EOL;
- }
-
- if ($asperandStart === true) {
- echo "\t\t* at-rule definition closed *".PHP_EOL;
- }
- }
-
- $inStyleDef = false;
- $asperandStart = false;
- break;
- case T_MINUS:
- // Minus signs are often used instead of spaces inside
- // class names, IDs and styles.
- if ($finalTokens[($stackPtr + 1)]['code'] === T_STRING) {
- if ($finalTokens[($stackPtr - 1)]['code'] === T_STRING) {
- $newContent = $finalTokens[($stackPtr - 1)]['content'].'-'.$finalTokens[($stackPtr + 1)]['content'];
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* token is a string joiner; ignoring this and previous token".PHP_EOL;
- $old = Util\Common::prepareForOutput($finalTokens[($stackPtr + 1)]['content']);
- $new = Util\Common::prepareForOutput($newContent);
- echo "\t\t=> token ".($stackPtr + 1)." content changed from \"$old\" to \"$new\"".PHP_EOL;
- }
-
- $finalTokens[($stackPtr + 1)]['content'] = $newContent;
- unset($finalTokens[$stackPtr]);
- unset($finalTokens[($stackPtr - 1)]);
- } else {
- $newContent = '-'.$finalTokens[($stackPtr + 1)]['content'];
-
- $finalTokens[($stackPtr + 1)]['content'] = $newContent;
- unset($finalTokens[$stackPtr]);
- }
- } else if ($finalTokens[($stackPtr + 1)]['code'] === T_LNUMBER) {
- // They can also be used to provide negative numbers.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* token is part of a negative number; adding content to next token and ignoring *".PHP_EOL;
- $content = Util\Common::prepareForOutput($finalTokens[($stackPtr + 1)]['content']);
- echo "\t\t=> token ".($stackPtr + 1)." content changed from \"$content\" to \"-$content\"".PHP_EOL;
- }
-
- $finalTokens[($stackPtr + 1)]['content'] = '-'.$finalTokens[($stackPtr + 1)]['content'];
- unset($finalTokens[$stackPtr]);
- }//end if
-
- break;
- case T_COLON:
- // Only interested in colons that are defining styles.
- if ($inStyleDef === false) {
- break;
- }
-
- for ($x = ($stackPtr - 1); $x >= 0; $x--) {
- if (isset(Util\Tokens::$emptyTokens[$finalTokens[$x]['code']]) === false) {
- break;
- }
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $finalTokens[$x]['type'];
- echo "\t\t=> token $x changed from $type to T_STYLE".PHP_EOL;
- }
-
- $finalTokens[$x]['type'] = 'T_STYLE';
- $finalTokens[$x]['code'] = T_STYLE;
- break;
- case T_STRING:
- if (strtolower($token['content']) === 'url') {
- // Find the next content.
- for ($x = ($stackPtr + 1); $x < $numTokens; $x++) {
- if (isset(Util\Tokens::$emptyTokens[$finalTokens[$x]['code']]) === false) {
- break;
- }
- }
-
- // Needs to be in the format "url(" for it to be a URL.
- if ($finalTokens[$x]['code'] !== T_OPEN_PARENTHESIS) {
- continue;
- }
-
- // Make sure the content isn't empty.
- for ($y = ($x + 1); $y < $numTokens; $y++) {
- if (isset(Util\Tokens::$emptyTokens[$finalTokens[$y]['code']]) === false) {
- break;
- }
- }
-
- if ($finalTokens[$y]['code'] === T_CLOSE_PARENTHESIS) {
- continue;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- for ($i = ($stackPtr + 1); $i <= $y; $i++) {
- $type = $finalTokens[$i]['type'];
- $content = Util\Common::prepareForOutput($finalTokens[$i]['content']);
- echo "\tProcess token $i: $type => $content".PHP_EOL;
- }
-
- echo "\t\t* token starts a URL *".PHP_EOL;
- }
-
- // Join all the content together inside the url() statement.
- $newContent = '';
- for ($i = ($x + 2); $i < $numTokens; $i++) {
- if ($finalTokens[$i]['code'] === T_CLOSE_PARENTHESIS) {
- break;
- }
-
- $newContent .= $finalTokens[$i]['content'];
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($finalTokens[$i]['content']);
- echo "\t\t=> token $i added to URL string and ignored: $content".PHP_EOL;
- }
-
- unset($finalTokens[$i]);
- }
-
- $stackPtr = $i;
-
- // If the content inside the "url()" is in double quotes
- // there will only be one token and so we don't have to do
- // anything except change its type. If it is not empty,
- // we need to do some token merging.
- $finalTokens[($x + 1)]['type'] = 'T_URL';
- $finalTokens[($x + 1)]['code'] = T_URL;
-
- if ($newContent !== '') {
- $finalTokens[($x + 1)]['content'] .= $newContent;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($finalTokens[($x + 1)]['content']);
- echo "\t\t=> token content changed to: $content".PHP_EOL;
- }
- }
- } else if ($finalTokens[$stackPtr]['content'][0] === '-'
- && $finalTokens[($stackPtr + 1)]['code'] === T_STRING
- ) {
- if (isset($finalTokens[($stackPtr - 1)]) === true
- && $finalTokens[($stackPtr - 1)]['code'] === T_STRING
- ) {
- $newContent = $finalTokens[($stackPtr - 1)]['content'].$finalTokens[$stackPtr]['content'].$finalTokens[($stackPtr + 1)]['content'];
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* token is a string joiner; ignoring this and previous token".PHP_EOL;
- $old = PHP_CodeSniffer::prepareForOutput($finalTokens[($stackPtr + 1)]['content']);
- $new = PHP_CodeSniffer::prepareForOutput($newContent);
- echo "\t\t=> token ".($stackPtr + 1)." content changed from \"$old\" to \"$new\"".PHP_EOL;
- }
-
- $finalTokens[($stackPtr + 1)]['content'] = $newContent;
- unset($finalTokens[$stackPtr]);
- unset($finalTokens[($stackPtr - 1)]);
- } else {
- $newContent = $finalTokens[$stackPtr]['content'].$finalTokens[($stackPtr + 1)]['content'];
-
- $finalTokens[($stackPtr + 1)]['content'] = $newContent;
- unset($finalTokens[$stackPtr]);
- }
- }//end if
-
- break;
- case T_ASPERAND:
- $asperandStart = true;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* at-rule definition opened *".PHP_EOL;
- }
- break;
- default:
- // Nothing special to be done with this token.
- break;
- }//end switch
- }//end for
-
- // Reset the array keys to avoid gaps.
- $finalTokens = array_values($finalTokens);
- $numTokens = count($finalTokens);
-
- // Blank out the content of the end tag.
- $finalTokens[($numTokens - 1)]['content'] = '';
-
- if ($eolAdded === true) {
- // Strip off the extra EOL char we added for tokenizing.
- $finalTokens[($numTokens - 2)]['content'] = substr(
- $finalTokens[($numTokens - 2)]['content'],
- 0,
- (strlen($this->eolChar) * -1)
- );
-
- if ($finalTokens[($numTokens - 2)]['content'] === '') {
- unset($finalTokens[($numTokens - 2)]);
- $finalTokens = array_values($finalTokens);
- $numTokens = count($finalTokens);
- }
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** END CSS TOKENIZING 2ND PASS ***".PHP_EOL;
- }
-
- return $finalTokens;
-
- }//end tokenize()
-
-
- /**
- * Performs additional processing after main tokenizing.
- *
- * @return void
- */
- public function processAdditional()
- {
- /*
- We override this method because we don't want the PHP version to
- run during CSS processing because it is wasted processing time.
- */
-
- }//end processAdditional()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/Comment.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/Comment.php
deleted file mode 100644
index aee87e34..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/Comment.php
+++ /dev/null
@@ -1,275 +0,0 @@
-<?php
-/**
- * Tokenizes doc block comments.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tokenizers;
-
-use PHP_CodeSniffer\Util;
-
-class Comment
-{
-
-
- /**
- * Creates an array of tokens when given some PHP code.
- *
- * Starts by using token_get_all() but does a lot of extra processing
- * to insert information about the context of the token.
- *
- * @param string $string The string to tokenize.
- * @param string $eolChar The EOL character to use for splitting strings.
- * @param int $stackPtr The position of the first token in the file.
- *
- * @return array
- */
- public function tokenizeString($string, $eolChar, $stackPtr)
- {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t*** START COMMENT TOKENIZING ***".PHP_EOL;
- }
-
- $tokens = array();
- $numChars = strlen($string);
-
- /*
- Doc block comments start with /*, but typically contain an
- extra star when they are used for function and class comments.
- */
-
- $char = ($numChars - strlen(ltrim($string, '/*')));
- $openTag = substr($string, 0, $char);
- $string = ltrim($string, '/*');
-
- $tokens[$stackPtr] = array(
- 'content' => $openTag,
- 'code' => T_DOC_COMMENT_OPEN_TAG,
- 'type' => 'T_DOC_COMMENT_OPEN_TAG',
- 'comment_tags' => array(),
- );
-
- $openPtr = $stackPtr;
- $stackPtr++;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($openTag);
- echo "\t\tCreate comment token: T_DOC_COMMENT_OPEN_TAG => $content".PHP_EOL;
- }
-
- /*
- Strip off the close tag so it doesn't interfere with any
- of our comment line processing. The token will be added to the
- stack just before we return it.
- */
-
- $closeTag = array(
- 'content' => substr($string, strlen(rtrim($string, '/*'))),
- 'code' => T_DOC_COMMENT_CLOSE_TAG,
- 'type' => 'T_DOC_COMMENT_CLOSE_TAG',
- 'comment_opener' => $openPtr,
- );
-
- if ($closeTag['content'] === false) {
- $closeTag['content'] = '';
- }
-
- $string = rtrim($string, '/*');
-
- /*
- Process each line of the comment.
- */
-
- $lines = explode($eolChar, $string);
- $numLines = count($lines);
- foreach ($lines as $lineNum => $string) {
- if ($lineNum !== ($numLines - 1)) {
- $string .= $eolChar;
- }
-
- $char = 0;
- $numChars = strlen($string);
-
- // We've started a new line, so process the indent.
- $space = $this->collectWhitespace($string, $char, $numChars);
- if ($space !== null) {
- $tokens[$stackPtr] = $space;
- $stackPtr++;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($space['content']);
- echo "\t\tCreate comment token: T_DOC_COMMENT_WHITESPACE => $content".PHP_EOL;
- }
-
- $char += strlen($space['content']);
- if ($char === $numChars) {
- break;
- }
- }
-
- if ($string === '') {
- continue;
- }
-
- if ($string[$char] === '*') {
- // This is a function or class doc block line.
- $char++;
- $tokens[$stackPtr] = array(
- 'content' => '*',
- 'code' => T_DOC_COMMENT_STAR,
- 'type' => 'T_DOC_COMMENT_STAR',
- );
-
- $stackPtr++;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\tCreate comment token: T_DOC_COMMENT_STAR => *".PHP_EOL;
- }
- }
-
- // Now we are ready to process the actual content of the line.
- $lineTokens = $this->processLine($string, $eolChar, $char, $numChars);
- foreach ($lineTokens as $lineToken) {
- $tokens[$stackPtr] = $lineToken;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($lineToken['content']);
- $type = $lineToken['type'];
- echo "\t\tCreate comment token: $type => $content".PHP_EOL;
- }
-
- if ($lineToken['code'] === T_DOC_COMMENT_TAG) {
- $tokens[$openPtr]['comment_tags'][] = $stackPtr;
- }
-
- $stackPtr++;
- }
- }//end foreach
-
- $tokens[$stackPtr] = $closeTag;
- $tokens[$openPtr]['comment_closer'] = $stackPtr;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($closeTag['content']);
- echo "\t\tCreate comment token: T_DOC_COMMENT_CLOSE_TAG => $content".PHP_EOL;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t*** END COMMENT TOKENIZING ***".PHP_EOL;
- }
-
- return $tokens;
-
- }//end tokenizeString()
-
-
- /**
- * Process a single line of a comment.
- *
- * @param string $string The comment string being tokenized.
- * @param string $eolChar The EOL character to use for splitting strings.
- * @param int $start The position in the string to start processing.
- * @param int $end The position in the string to end processing.
- *
- * @return array
- */
- private function processLine($string, $eolChar, $start, $end)
- {
- $tokens = array();
-
- // Collect content padding.
- $space = $this->collectWhitespace($string, $start, $end);
- if ($space !== null) {
- $tokens[] = $space;
- $start += strlen($space['content']);
- }
-
- if (isset($string[$start]) === false) {
- return $tokens;
- }
-
- if ($string[$start] === '@') {
- // The content up until the first whitespace is the tag name.
- $matches = array();
- preg_match('/@[^\s]+/', $string, $matches, 0, $start);
- if (isset($matches[0]) === true) {
- $tagName = $matches[0];
- $start += strlen($tagName);
- $tokens[] = array(
- 'content' => $tagName,
- 'code' => T_DOC_COMMENT_TAG,
- 'type' => 'T_DOC_COMMENT_TAG',
- );
-
- // Then there will be some whitespace.
- $space = $this->collectWhitespace($string, $start, $end);
- if ($space !== null) {
- $tokens[] = $space;
- $start += strlen($space['content']);
- }
- }
- }//end if
-
- // Process the rest of the line.
- $eol = strpos($string, $eolChar, $start);
- if ($eol === false) {
- $eol = $end;
- }
-
- if ($eol > $start) {
- $tokens[] = array(
- 'content' => substr($string, $start, ($eol - $start)),
- 'code' => T_DOC_COMMENT_STRING,
- 'type' => 'T_DOC_COMMENT_STRING',
- );
- }
-
- if ($eol !== $end) {
- $tokens[] = array(
- 'content' => substr($string, $eol, strlen($eolChar)),
- 'code' => T_DOC_COMMENT_WHITESPACE,
- 'type' => 'T_DOC_COMMENT_WHITESPACE',
- );
- }
-
- return $tokens;
-
- }//end processLine()
-
-
- /**
- * Collect consecutive whitespace into a single token.
- *
- * @param string $string The comment string being tokenized.
- * @param int $start The position in the string to start processing.
- * @param int $end The position in the string to end processing.
- *
- * @return array|null
- */
- private function collectWhitespace($string, $start, $end)
- {
- $space = '';
- for ($start; $start < $end; $start++) {
- if ($string[$start] !== ' ' && $string[$start] !== "\t") {
- break;
- }
-
- $space .= $string[$start];
- }
-
- if ($space === '') {
- return null;
- }
-
- $token = array(
- 'content' => $space,
- 'code' => T_DOC_COMMENT_WHITESPACE,
- 'type' => 'T_DOC_COMMENT_WHITESPACE',
- );
-
- return $token;
-
- }//end collectWhitespace()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/JS.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/JS.php
deleted file mode 100644
index 2ac27c5e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/JS.php
+++ /dev/null
@@ -1,1248 +0,0 @@
-<?php
-/**
- * Tokenizes JS code.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tokenizers;
-
-use PHP_CodeSniffer\Util;
-use PHP_CodeSniffer\Exceptions\TokenizerException;
-use PHP_CodeSniffer\Config;
-
-class JS extends Tokenizer
-{
-
-
- /**
- * A list of tokens that are allowed to open a scope.
- *
- * This array also contains information about what kind of token the scope
- * opener uses to open and close the scope, if the token strictly requires
- * an opener, if the token can share a scope closer, and who it can be shared
- * with. An example of a token that shares a scope closer is a CASE scope.
- *
- * @var array
- */
- public $scopeOpeners = array(
- T_IF => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_TRY => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_CATCH => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_ELSE => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_FOR => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_CLASS => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_FUNCTION => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_WHILE => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_DO => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_SWITCH => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_CASE => array(
- 'start' => array(T_COLON => T_COLON),
- 'end' => array(
- T_BREAK => T_BREAK,
- T_RETURN => T_RETURN,
- T_CONTINUE => T_CONTINUE,
- T_THROW => T_THROW,
- ),
- 'strict' => true,
- 'shared' => true,
- 'with' => array(
- T_DEFAULT => T_DEFAULT,
- T_CASE => T_CASE,
- T_SWITCH => T_SWITCH,
- ),
- ),
- T_DEFAULT => array(
- 'start' => array(T_COLON => T_COLON),
- 'end' => array(
- T_BREAK => T_BREAK,
- T_RETURN => T_RETURN,
- T_CONTINUE => T_CONTINUE,
- T_THROW => T_THROW,
- ),
- 'strict' => true,
- 'shared' => true,
- 'with' => array(
- T_CASE => T_CASE,
- T_SWITCH => T_SWITCH,
- ),
- ),
- );
-
- /**
- * A list of tokens that end the scope.
- *
- * This array is just a unique collection of the end tokens
- * from the _scopeOpeners array. The data is duplicated here to
- * save time during parsing of the file.
- *
- * @var array
- */
- public $endScopeTokens = array(
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_BREAK => T_BREAK,
- );
-
- /**
- * A list of special JS tokens and their types.
- *
- * @var array
- */
- protected $tokenValues = array(
- 'class' => 'T_CLASS',
- 'function' => 'T_FUNCTION',
- 'prototype' => 'T_PROTOTYPE',
- 'try' => 'T_TRY',
- 'catch' => 'T_CATCH',
- 'return' => 'T_RETURN',
- 'throw' => 'T_THROW',
- 'break' => 'T_BREAK',
- 'switch' => 'T_SWITCH',
- 'continue' => 'T_CONTINUE',
- 'if' => 'T_IF',
- 'else' => 'T_ELSE',
- 'do' => 'T_DO',
- 'while' => 'T_WHILE',
- 'for' => 'T_FOR',
- 'var' => 'T_VAR',
- 'case' => 'T_CASE',
- 'default' => 'T_DEFAULT',
- 'true' => 'T_TRUE',
- 'false' => 'T_FALSE',
- 'null' => 'T_NULL',
- 'this' => 'T_THIS',
- 'typeof' => 'T_TYPEOF',
- '(' => 'T_OPEN_PARENTHESIS',
- ')' => 'T_CLOSE_PARENTHESIS',
- '{' => 'T_OPEN_CURLY_BRACKET',
- '}' => 'T_CLOSE_CURLY_BRACKET',
- '[' => 'T_OPEN_SQUARE_BRACKET',
- ']' => 'T_CLOSE_SQUARE_BRACKET',
- '?' => 'T_INLINE_THEN',
- '.' => 'T_OBJECT_OPERATOR',
- '+' => 'T_PLUS',
- '-' => 'T_MINUS',
- '*' => 'T_MULTIPLY',
- '%' => 'T_MODULUS',
- '/' => 'T_DIVIDE',
- '^' => 'T_LOGICAL_XOR',
- ',' => 'T_COMMA',
- ';' => 'T_SEMICOLON',
- ':' => 'T_COLON',
- '<' => 'T_LESS_THAN',
- '>' => 'T_GREATER_THAN',
- '<<' => 'T_SL',
- '>>' => 'T_SR',
- '>>>' => 'T_ZSR',
- '<<=' => 'T_SL_EQUAL',
- '>>=' => 'T_SR_EQUAL',
- '>>>=' => 'T_ZSR_EQUAL',
- '<=' => 'T_IS_SMALLER_OR_EQUAL',
- '>=' => 'T_IS_GREATER_OR_EQUAL',
- '=>' => 'T_DOUBLE_ARROW',
- '!' => 'T_BOOLEAN_NOT',
- '||' => 'T_BOOLEAN_OR',
- '&&' => 'T_BOOLEAN_AND',
- '|' => 'T_BITWISE_OR',
- '&' => 'T_BITWISE_AND',
- '!=' => 'T_IS_NOT_EQUAL',
- '!==' => 'T_IS_NOT_IDENTICAL',
- '=' => 'T_EQUAL',
- '==' => 'T_IS_EQUAL',
- '===' => 'T_IS_IDENTICAL',
- '-=' => 'T_MINUS_EQUAL',
- '+=' => 'T_PLUS_EQUAL',
- '*=' => 'T_MUL_EQUAL',
- '/=' => 'T_DIV_EQUAL',
- '%=' => 'T_MOD_EQUAL',
- '++' => 'T_INC',
- '--' => 'T_DEC',
- '//' => 'T_COMMENT',
- '/*' => 'T_COMMENT',
- '/**' => 'T_DOC_COMMENT',
- '*/' => 'T_COMMENT',
- );
-
- /**
- * A list string delimiters.
- *
- * @var array
- */
- protected $stringTokens = array(
- '\'' => '\'',
- '"' => '"',
- );
-
- /**
- * A list tokens that start and end comments.
- *
- * @var array
- */
- protected $commentTokens = array(
- '//' => null,
- '/*' => '*/',
- '/**' => '*/',
- );
-
-
- /**
- * Initialise the tokenizer.
- *
- * Pre-checks the content to see if it looks minified.
- *
- * @param string $content The content to tokenize,
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- * @param string $eolChar The EOL char used in the content.
- *
- * @return void
- * @throws TokenizerException If the file appears to be minified.
- */
- public function __construct($content, Config $config, $eolChar='\n')
- {
- if ($this->isMinifiedContent($content, $eolChar) === true) {
- throw new TokenizerException('File appears to be minified and cannot be processed');
- }
-
- return parent::__construct($content, $config, $eolChar);
-
- }//end __construct()
-
-
- /**
- * Creates an array of tokens when given some JS code.
- *
- * @param string $string The string to tokenize.
- *
- * @return array
- */
- public function tokenize($string)
- {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** START JS TOKENIZING ***".PHP_EOL;
- }
-
- $maxTokenLength = 0;
- foreach ($this->tokenValues as $token => $values) {
- if (strlen($token) > $maxTokenLength) {
- $maxTokenLength = strlen($token);
- }
- }
-
- $tokens = array();
- $inString = '';
- $stringChar = null;
- $inComment = '';
- $buffer = '';
- $preStringBuffer = '';
- $cleanBuffer = false;
-
- $commentTokenizer = new Comment();
-
- $tokens[] = array(
- 'code' => T_OPEN_TAG,
- 'type' => 'T_OPEN_TAG',
- 'content' => '',
- );
-
- // Convert newlines to single characters for ease of
- // processing. We will change them back later.
- $string = str_replace($this->eolChar, "\n", $string);
-
- $chars = str_split($string);
- $numChars = count($chars);
- for ($i = 0; $i < $numChars; $i++) {
- $char = $chars[$i];
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($char);
- $bufferContent = Util\Common::prepareForOutput($buffer);
-
- if ($inString !== '') {
- echo "\t";
- }
-
- if ($inComment !== '') {
- echo "\t";
- }
-
- echo "\tProcess char $i => $content (buffer: $bufferContent)".PHP_EOL;
- }//end if
-
- if ($inString === '' && $inComment === '' && $buffer !== '') {
- // If the buffer only has whitespace and we are about to
- // add a character, store the whitespace first.
- if (trim($char) !== '' && trim($buffer) === '') {
- $tokens[] = array(
- 'code' => T_WHITESPACE,
- 'type' => 'T_WHITESPACE',
- 'content' => str_replace("\n", $this->eolChar, $buffer),
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($buffer);
- echo "\t=> Added token T_WHITESPACE ($content)".PHP_EOL;
- }
-
- $buffer = '';
- }
-
- // If the buffer is not whitespace and we are about to
- // add a whitespace character, store the content first.
- if ($inString === ''
- && $inComment === ''
- && trim($char) === ''
- && trim($buffer) !== ''
- ) {
- $tokens[] = array(
- 'code' => T_STRING,
- 'type' => 'T_STRING',
- 'content' => str_replace("\n", $this->eolChar, $buffer),
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($buffer);
- echo "\t=> Added token T_STRING ($content)".PHP_EOL;
- }
-
- $buffer = '';
- }
- }//end if
-
- // Process strings.
- if ($inComment === '' && isset($this->stringTokens[$char]) === true) {
- if ($inString === $char) {
- // This could be the end of the string, but make sure it
- // is not escaped first.
- $escapes = 0;
- for ($x = ($i - 1); $x >= 0; $x--) {
- if ($chars[$x] !== '\\') {
- break;
- }
-
- $escapes++;
- }
-
- if ($escapes === 0 || ($escapes % 2) === 0) {
- // There is an even number escape chars,
- // so this is not escaped, it is the end of the string.
- $tokens[] = array(
- 'code' => T_CONSTANT_ENCAPSED_STRING,
- 'type' => 'T_CONSTANT_ENCAPSED_STRING',
- 'content' => str_replace("\n", $this->eolChar, $buffer).$char,
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* found end of string *".PHP_EOL;
- $content = Util\Common::prepareForOutput($buffer.$char);
- echo "\t=> Added token T_CONSTANT_ENCAPSED_STRING ($content)".PHP_EOL;
- }
-
- $buffer = '';
- $preStringBuffer = '';
- $inString = '';
- $stringChar = null;
- continue;
- }//end if
- } else if ($inString === '') {
- $inString = $char;
- $stringChar = $i;
- $preStringBuffer = $buffer;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* looking for string closer *".PHP_EOL;
- }
- }//end if
- }//end if
-
- if ($inString !== '' && $char === "\n") {
- // Unless this newline character is escaped, the string did not
- // end before the end of the line, which means it probably
- // wasn't a string at all (maybe a regex).
- if ($chars[($i - 1)] !== '\\') {
- $i = $stringChar;
- $buffer = $preStringBuffer;
- $preStringBuffer = '';
- $inString = '';
- $stringChar = null;
- $char = $chars[$i];
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* found newline before end of string, bailing *".PHP_EOL;
- }
- }
- }
-
- $buffer .= $char;
-
- // We don't look for special tokens inside strings,
- // so if we are in a string, we can continue here now
- // that the current char is in the buffer.
- if ($inString !== '') {
- continue;
- }
-
- // Special case for T_DIVIDE which can actually be
- // the start of a regular expression.
- if ($buffer === $char && $char === '/' && $chars[($i + 1)] !== '*') {
- $regex = $this->getRegexToken(
- $i,
- $string,
- $chars,
- $tokens,
- $this->eolChar
- );
-
- if ($regex !== null) {
- $tokens[] = array(
- 'code' => T_REGULAR_EXPRESSION,
- 'type' => 'T_REGULAR_EXPRESSION',
- 'content' => $regex['content'],
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($regex['content']);
- echo "\t=> Added token T_REGULAR_EXPRESSION ($content)".PHP_EOL;
- }
-
- $i = $regex['end'];
- $buffer = '';
- $cleanBuffer = false;
- continue;
- }//end if
- }//end if
-
- // Check for known tokens, but ignore tokens found that are not at
- // the end of a string, like FOR and this.FORmat.
- if (isset($this->tokenValues[strtolower($buffer)]) === true
- && (preg_match('|[a-zA-z0-9_]|', $char) === 0
- || isset($chars[($i + 1)]) === false
- || preg_match('|[a-zA-z0-9_]|', $chars[($i + 1)]) === 0)
- ) {
- $matchedToken = false;
- $lookAheadLength = ($maxTokenLength - strlen($buffer));
-
- if ($lookAheadLength > 0) {
- // The buffer contains a token type, but we need
- // to look ahead at the next chars to see if this is
- // actually part of a larger token. For example,
- // FOR and FOREACH.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* buffer possibly contains token, looking ahead $lookAheadLength chars *".PHP_EOL;
- }
-
- $charBuffer = $buffer;
- for ($x = 1; $x <= $lookAheadLength; $x++) {
- if (isset($chars[($i + $x)]) === false) {
- break;
- }
-
- $charBuffer .= $chars[($i + $x)];
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($charBuffer);
- echo "\t\t=> Looking ahead $x chars => $content".PHP_EOL;
- }
-
- if (isset($this->tokenValues[strtolower($charBuffer)]) === true) {
- // We've found something larger that matches
- // so we can ignore this char. Except for 1 very specific
- // case where a comment like /**/ needs to tokenize as
- // T_COMMENT and not T_DOC_COMMENT.
- $oldType = $this->tokenValues[strtolower($buffer)];
- $newType = $this->tokenValues[strtolower($charBuffer)];
- if ($oldType === 'T_COMMENT'
- && $newType === 'T_DOC_COMMENT'
- && $chars[($i + $x + 1)] === '/'
- ) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* look ahead ignored T_DOC_COMMENT, continuing *".PHP_EOL;
- }
- } else {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* look ahead found more specific token ($newType), ignoring $i *".PHP_EOL;
- }
-
- $matchedToken = true;
- break;
- }
- }//end if
- }//end for
- }//end if
-
- if ($matchedToken === false) {
- if (PHP_CODESNIFFER_VERBOSITY > 1 && $lookAheadLength > 0) {
- echo "\t\t* look ahead found nothing *".PHP_EOL;
- }
-
- $value = $this->tokenValues[strtolower($buffer)];
-
- if ($value === 'T_FUNCTION' && $buffer !== 'function') {
- // The function keyword needs to be all lowercase or else
- // it is just a function called "Function".
- $value = 'T_STRING';
- }
-
- $tokens[] = array(
- 'code' => constant($value),
- 'type' => $value,
- 'content' => $buffer,
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($buffer);
- echo "\t=> Added token $value ($content)".PHP_EOL;
- }
-
- $cleanBuffer = true;
- }//end if
- } else if (isset($this->tokenValues[strtolower($char)]) === true) {
- // No matter what token we end up using, we don't
- // need the content in the buffer any more because we have
- // found a valid token.
- $newContent = substr(str_replace("\n", $this->eolChar, $buffer), 0, -1);
- if ($newContent !== '') {
- $tokens[] = array(
- 'code' => T_STRING,
- 'type' => 'T_STRING',
- 'content' => $newContent,
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput(substr($buffer, 0, -1));
- echo "\t=> Added token T_STRING ($content)".PHP_EOL;
- }
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* char is token, looking ahead ".($maxTokenLength - 1).' chars *'.PHP_EOL;
- }
-
- // The char is a token type, but we need to look ahead at the
- // next chars to see if this is actually part of a larger token.
- // For example, = and ===.
- $charBuffer = $char;
- $matchedToken = false;
- for ($x = 1; $x <= $maxTokenLength; $x++) {
- if (isset($chars[($i + $x)]) === false) {
- break;
- }
-
- $charBuffer .= $chars[($i + $x)];
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($charBuffer);
- echo "\t\t=> Looking ahead $x chars => $content".PHP_EOL;
- }
-
- if (isset($this->tokenValues[strtolower($charBuffer)]) === true) {
- // We've found something larger that matches
- // so we can ignore this char.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokenValues[strtolower($charBuffer)];
- echo "\t\t* look ahead found more specific token ($type), ignoring $i *".PHP_EOL;
- }
-
- $matchedToken = true;
- break;
- }
- }//end for
-
- if ($matchedToken === false) {
- $value = $this->tokenValues[strtolower($char)];
- $tokens[] = array(
- 'code' => constant($value),
- 'type' => $value,
- 'content' => $char,
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* look ahead found nothing *".PHP_EOL;
- $content = Util\Common::prepareForOutput($char);
- echo "\t=> Added token $value ($content)".PHP_EOL;
- }
-
- $cleanBuffer = true;
- } else {
- $buffer = $char;
- }//end if
- }//end if
-
- // Keep track of content inside comments.
- if ($inComment === ''
- && array_key_exists($buffer, $this->commentTokens) === true
- ) {
- // This is not really a comment if the content
- // looks like \// (i.e., it is escaped).
- if (isset($chars[($i - 2)]) === true && $chars[($i - 2)] === '\\') {
- $lastToken = array_pop($tokens);
- $lastContent = $lastToken['content'];
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $value = $this->tokenValues[strtolower($lastContent)];
- $content = Util\Common::prepareForOutput($lastContent);
- echo "\t=> Removed token $value ($content)".PHP_EOL;
- }
-
- $lastChars = str_split($lastContent);
- $lastNumChars = count($lastChars);
- for ($x = 0; $x < $lastNumChars; $x++) {
- $lastChar = $lastChars[$x];
- $value = $this->tokenValues[strtolower($lastChar)];
- $tokens[] = array(
- 'code' => constant($value),
- 'type' => $value,
- 'content' => $lastChar,
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($lastChar);
- echo "\t=> Added token $value ($content)".PHP_EOL;
- }
- }
- } else {
- // We have started a comment.
- $inComment = $buffer;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* looking for end of comment *".PHP_EOL;
- }
- }//end if
- } else if ($inComment !== '') {
- if ($this->commentTokens[$inComment] === null) {
- // Comment ends at the next newline.
- if (strpos($buffer, "\n") !== false) {
- $inComment = '';
- }
- } else {
- if ($this->commentTokens[$inComment] === $buffer) {
- $inComment = '';
- }
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- if ($inComment === '') {
- echo "\t\t* found end of comment *".PHP_EOL;
- }
- }
-
- if ($inComment === '' && $cleanBuffer === false) {
- $tokens[] = array(
- 'code' => T_STRING,
- 'type' => 'T_STRING',
- 'content' => str_replace("\n", $this->eolChar, $buffer),
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($buffer);
- echo "\t=> Added token T_STRING ($content)".PHP_EOL;
- }
-
- $buffer = '';
- }
- }//end if
-
- if ($cleanBuffer === true) {
- $buffer = '';
- $cleanBuffer = false;
- }
- }//end for
-
- if (empty($buffer) === false) {
- // Buffer contains whitespace from the end of the file.
- $tokens[] = array(
- 'code' => T_WHITESPACE,
- 'type' => 'T_WHITESPACE',
- 'content' => str_replace("\n", $this->eolChar, $buffer),
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $content = Util\Common::prepareForOutput($buffer);
- echo "\t=> Added token T_WHITESPACE ($content)".PHP_EOL;
- }
- }
-
- $tokens[] = array(
- 'code' => T_CLOSE_TAG,
- 'type' => 'T_CLOSE_TAG',
- 'content' => '',
- );
-
- /*
- Now that we have done some basic tokenizing, we need to
- modify the tokens to join some together and split some apart
- so they match what the PHP tokenizer does.
- */
-
- $finalTokens = array();
- $newStackPtr = 0;
- $numTokens = count($tokens);
- for ($stackPtr = 0; $stackPtr < $numTokens; $stackPtr++) {
- $token = $tokens[$stackPtr];
-
- /*
- Look for comments and join the tokens together.
- */
-
- if ($token['code'] === T_COMMENT || $token['code'] === T_DOC_COMMENT) {
- $newContent = '';
- $tokenContent = $token['content'];
-
- $endContent = null;
- if (isset($this->commentTokens[$tokenContent]) === true) {
- $endContent = $this->commentTokens[$tokenContent];
- }
-
- while ($tokenContent !== $endContent) {
- if ($endContent === null
- && strpos($tokenContent, $this->eolChar) !== false
- ) {
- // A null end token means the comment ends at the end of
- // the line so we look for newlines and split the token.
- $tokens[$stackPtr]['content'] = substr(
- $tokenContent,
- (strpos($tokenContent, $this->eolChar) + strlen($this->eolChar))
- );
-
- $tokenContent = substr(
- $tokenContent,
- 0,
- (strpos($tokenContent, $this->eolChar) + strlen($this->eolChar))
- );
-
- // If the substr failed, skip the token as the content
- // will now be blank.
- if ($tokens[$stackPtr]['content'] !== false
- && $tokens[$stackPtr]['content'] !== ''
- ) {
- $stackPtr--;
- }
-
- break;
- }//end if
-
- $stackPtr++;
- $newContent .= $tokenContent;
- if (isset($tokens[$stackPtr]) === false) {
- break;
- }
-
- $tokenContent = $tokens[$stackPtr]['content'];
- }//end while
-
- if ($token['code'] === T_DOC_COMMENT) {
- $commentTokens = $commentTokenizer->tokenizeString($newContent.$tokenContent, $this->eolChar, $newStackPtr);
- foreach ($commentTokens as $commentToken) {
- $finalTokens[$newStackPtr] = $commentToken;
- $newStackPtr++;
- }
-
- continue;
- } else {
- // Save the new content in the current token so
- // the code below can chop it up on newlines.
- $token['content'] = $newContent.$tokenContent;
- }
- }//end if
-
- /*
- If this token has newlines in its content, split each line up
- and create a new token for each line. We do this so it's easier
- to ascertain where errors occur on a line.
- Note that $token[1] is the token's content.
- */
-
- if (strpos($token['content'], $this->eolChar) !== false) {
- $tokenLines = explode($this->eolChar, $token['content']);
- $numLines = count($tokenLines);
-
- for ($i = 0; $i < $numLines; $i++) {
- $newToken['content'] = $tokenLines[$i];
- if ($i === ($numLines - 1)) {
- if ($tokenLines[$i] === '') {
- break;
- }
- } else {
- $newToken['content'] .= $this->eolChar;
- }
-
- $newToken['type'] = $token['type'];
- $newToken['code'] = $token['code'];
- $finalTokens[$newStackPtr] = $newToken;
- $newStackPtr++;
- }
- } else {
- $finalTokens[$newStackPtr] = $token;
- $newStackPtr++;
- }//end if
-
- // Convert numbers, including decimals.
- if ($token['code'] === T_STRING
- || $token['code'] === T_OBJECT_OPERATOR
- ) {
- $newContent = '';
- $oldStackPtr = $stackPtr;
- while (preg_match('|^[0-9\.]+$|', $tokens[$stackPtr]['content']) !== 0) {
- $newContent .= $tokens[$stackPtr]['content'];
- $stackPtr++;
- }
-
- if ($newContent !== '' && $newContent !== '.') {
- $finalTokens[($newStackPtr - 1)]['content'] = $newContent;
- if (ctype_digit($newContent) === true) {
- $finalTokens[($newStackPtr - 1)]['code'] = constant('T_LNUMBER');
- $finalTokens[($newStackPtr - 1)]['type'] = 'T_LNUMBER';
- } else {
- $finalTokens[($newStackPtr - 1)]['code'] = constant('T_DNUMBER');
- $finalTokens[($newStackPtr - 1)]['type'] = 'T_DNUMBER';
- }
-
- $stackPtr--;
- continue;
- } else {
- $stackPtr = $oldStackPtr;
- }
- }//end if
-
- // Convert the token after an object operator into a string, in most cases.
- if ($token['code'] === T_OBJECT_OPERATOR) {
- for ($i = ($stackPtr + 1); $i < $numTokens; $i++) {
- if (isset(Util\Tokens::$emptyTokens[$tokens[$i]['code']]) === true) {
- continue;
- }
-
- if ($tokens[$i]['code'] !== T_PROTOTYPE
- && $tokens[$i]['code'] !== T_LNUMBER
- && $tokens[$i]['code'] !== T_DNUMBER
- ) {
- $tokens[$i]['code'] = T_STRING;
- $tokens[$i]['type'] = 'T_STRING';
- }
-
- break;
- }
- }
- }//end for
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** END TOKENIZING ***".PHP_EOL;
- }
-
- return $finalTokens;
-
- }//end tokenize()
-
-
- /**
- * Tokenizes a regular expression if one is found.
- *
- * If a regular expression is not found, NULL is returned.
- *
- * @param string $char The index of the possible regex start character.
- * @param string $string The complete content of the string being tokenized.
- * @param string $chars An array of characters being tokenized.
- * @param string $tokens The current array of tokens found in the string.
- *
- * @return void
- */
- public function getRegexToken($char, $string, $chars, $tokens)
- {
- $beforeTokens = array(
- T_EQUAL => true,
- T_IS_NOT_EQUAL => true,
- T_IS_IDENTICAL => true,
- T_IS_NOT_IDENTICAL => true,
- T_OPEN_PARENTHESIS => true,
- T_OPEN_SQUARE_BRACKET => true,
- T_RETURN => true,
- T_BOOLEAN_OR => true,
- T_BOOLEAN_AND => true,
- T_BITWISE_OR => true,
- T_BITWISE_AND => true,
- T_COMMA => true,
- T_COLON => true,
- T_TYPEOF => true,
- T_INLINE_THEN => true,
- T_INLINE_ELSE => true,
- );
-
- $afterTokens = array(
- ',' => true,
- ')' => true,
- ']' => true,
- ';' => true,
- ' ' => true,
- '.' => true,
- ':' => true,
- $this->eolChar => true,
- );
-
- // Find the last non-whitespace token that was added
- // to the tokens array.
- $numTokens = count($tokens);
- for ($prev = ($numTokens - 1); $prev >= 0; $prev--) {
- if (isset(Util\Tokens::$emptyTokens[$tokens[$prev]['code']]) === false) {
- break;
- }
- }
-
- if (isset($beforeTokens[$tokens[$prev]['code']]) === false) {
- return null;
- }
-
- // This is probably a regular expression, so look for the end of it.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t* token possibly starts a regular expression *".PHP_EOL;
- }
-
- $numChars = count($chars);
- for ($next = ($char + 1); $next < $numChars; $next++) {
- if ($chars[$next] === '/') {
- // Just make sure this is not escaped first.
- if ($chars[($next - 1)] !== '\\') {
- // In the simple form: /.../ so we found the end.
- break;
- } else if ($chars[($next - 2)] === '\\') {
- // In the form: /...\\/ so we found the end.
- break;
- }
- } else {
- $possibleEolChar = substr($string, $next, strlen($this->eolChar));
- if ($possibleEolChar === $this->eolChar) {
- // This is the last token on the line and regular
- // expressions need to be defined on a single line,
- // so this is not a regular expression.
- break;
- }
- }
- }
-
- if ($chars[$next] !== '/') {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t* could not find end of regular expression *".PHP_EOL;
- }
-
- return null;
- }
-
- while (preg_match('|[a-zA-Z]|', $chars[($next + 1)]) !== 0) {
- // The token directly after the end of the regex can
- // be modifiers like global and case insensitive
- // (.e.g, /pattern/gi).
- $next++;
- }
-
- $regexEnd = $next;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t* found end of regular expression at token $regexEnd *".PHP_EOL;
- }
-
- for ($next = ($next + 1); $next < $numChars; $next++) {
- if ($chars[$next] !== ' ') {
- break;
- } else {
- $possibleEolChar = substr($string, $next, strlen($this->eolChar));
- if ($possibleEolChar === $this->eolChar) {
- // This is the last token on the line.
- break;
- }
- }
- }
-
- if (isset($afterTokens[$chars[$next]]) === false) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t* tokens after regular expression do not look correct *".PHP_EOL;
- }
-
- return null;
- }
-
- // This is a regular expression, so join all the tokens together.
- $content = '';
- for ($x = $char; $x <= $regexEnd; $x++) {
- $content .= $chars[$x];
- }
-
- $token = array(
- 'start' => $char,
- 'end' => $regexEnd,
- 'content' => $content,
- );
-
- return $token;
-
- }//end getRegexToken()
-
-
- /**
- * Performs additional processing after main tokenizing.
- *
- * This additional processing looks for properties, closures, labels and objects.
- *
- * @return void
- */
- public function processAdditional()
- {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** START ADDITIONAL JS PROCESSING ***".PHP_EOL;
- }
-
- $numTokens = count($this->tokens);
- $classStack = array();
-
- for ($i = 0; $i < $numTokens; $i++) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$i]['type'];
- $content = Util\Common::prepareForOutput($this->tokens[$i]['content']);
-
- echo str_repeat("\t", count($classStack));
- echo "\tProcess token $i: $type => $content".PHP_EOL;
- }
-
- // Looking for functions that are actually closures.
- if ($this->tokens[$i]['code'] === T_FUNCTION && isset($this->tokens[$i]['scope_opener']) === true) {
- for ($x = ($i + 1); $x < $numTokens; $x++) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$x]['code']]) === false) {
- break;
- }
- }
-
- if ($this->tokens[$x]['code'] === T_OPEN_PARENTHESIS) {
- $this->tokens[$i]['code'] = T_CLOSURE;
- $this->tokens[$i]['type'] = 'T_CLOSURE';
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$i]['line'];
- echo str_repeat("\t", count($classStack));
- echo "\t* token $i on line $line changed from T_FUNCTION to T_CLOSURE *".PHP_EOL;
- }
-
- for ($x = ($this->tokens[$i]['scope_opener'] + 1); $x < $this->tokens[$i]['scope_closer']; $x++) {
- if (isset($this->tokens[$x]['conditions'][$i]) === false) {
- continue;
- }
-
- $this->tokens[$x]['conditions'][$i] = T_CLOSURE;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$x]['type'];
- echo str_repeat("\t", count($classStack));
- echo "\t\t* cleaned $x ($type) *".PHP_EOL;
- }
- }
- }//end if
-
- continue;
- } else if ($this->tokens[$i]['code'] === T_OPEN_CURLY_BRACKET
- && isset($this->tokens[$i]['scope_condition']) === false
- && isset($this->tokens[$i]['bracket_closer']) === true
- ) {
- $condition = end($this->tokens[$i]['conditions']);
- reset($this->tokens[$i]['conditions']);
- if ($condition === T_CLASS) {
- // Possibly an ES6 method. To be classified as one, the previous
- // non-empty tokens need to be a set of parenthesis, and then a string
- // (the method name).
- for ($parenCloser = ($i - 1); $parenCloser > 0; $parenCloser--) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$parenCloser]['code']]) === false) {
- break;
- }
- }
-
- if ($this->tokens[$parenCloser]['code'] === T_CLOSE_PARENTHESIS) {
- $parenOpener = $this->tokens[$parenCloser]['parenthesis_opener'];
- for ($name = ($parenOpener - 1); $name > 0; $name--) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$name]['code']]) === false) {
- break;
- }
- }
-
- if ($this->tokens[$name]['code'] === T_STRING) {
- // We found a method name.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$name]['line'];
- echo str_repeat("\t", count($classStack));
- echo "\t* token $name on line $line changed from T_STRING to T_FUNCTION *".PHP_EOL;
- }
-
- $closer = $this->tokens[$i]['bracket_closer'];
-
- $this->tokens[$name]['code'] = T_FUNCTION;
- $this->tokens[$name]['type'] = 'T_FUNCTION';
-
- foreach (array($name, $i, $closer) as $token) {
- $this->tokens[$token]['scope_condition'] = $name;
- $this->tokens[$token]['scope_opener'] = $i;
- $this->tokens[$token]['scope_closer'] = $closer;
- $this->tokens[$token]['parenthesis_opener'] = $parenOpener;
- $this->tokens[$token]['parenthesis_closer'] = $parenCloser;
- $this->tokens[$token]['parenthesis_owner'] = $name;
- }
-
- $this->tokens[$parenOpener]['parenthesis_owner'] = $name;
- $this->tokens[$parenCloser]['parenthesis_owner'] = $name;
-
- for ($x = ($i + 1); $x < $closer; $x++) {
- $this->tokens[$x]['conditions'][$name] = T_FUNCTION;
- ksort($this->tokens[$x]['conditions'], SORT_NUMERIC);
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$x]['type'];
- echo str_repeat("\t", count($classStack));
- echo "\t\t* added T_FUNCTION condition to $x ($type) *".PHP_EOL;
- }
- }
-
- continue;
- }//end if
- }//end if
- }//end if
-
- $classStack[] = $i;
-
- $closer = $this->tokens[$i]['bracket_closer'];
- $this->tokens[$i]['code'] = T_OBJECT;
- $this->tokens[$i]['type'] = 'T_OBJECT';
- $this->tokens[$closer]['code'] = T_CLOSE_OBJECT;
- $this->tokens[$closer]['type'] = 'T_CLOSE_OBJECT';
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", count($classStack));
- echo "\t* token $i converted from T_OPEN_CURLY_BRACKET to T_OBJECT *".PHP_EOL;
- echo str_repeat("\t", count($classStack));
- echo "\t* token $closer converted from T_CLOSE_CURLY_BRACKET to T_CLOSE_OBJECT *".PHP_EOL;
- }
-
- for ($x = ($i + 1); $x < $closer; $x++) {
- $this->tokens[$x]['conditions'][$i] = T_OBJECT;
- ksort($this->tokens[$x]['conditions'], SORT_NUMERIC);
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$x]['type'];
- echo str_repeat("\t", count($classStack));
- echo "\t\t* added T_OBJECT condition to $x ($type) *".PHP_EOL;
- }
- }
- } else if ($this->tokens[$i]['code'] === T_CLOSE_OBJECT) {
- $opener = array_pop($classStack);
- } else if ($this->tokens[$i]['code'] === T_COLON) {
- // If it is a scope opener, it belongs to a
- // DEFAULT or CASE statement.
- if (isset($this->tokens[$i]['scope_condition']) === true) {
- continue;
- }
-
- // Make sure this is not part of an inline IF statement.
- for ($x = ($i - 1); $x >= 0; $x--) {
- if ($this->tokens[$x]['code'] === T_INLINE_THEN) {
- $this->tokens[$i]['code'] = T_INLINE_ELSE;
- $this->tokens[$i]['type'] = 'T_INLINE_ELSE';
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", count($classStack));
- echo "\t* token $i converted from T_COLON to T_INLINE_THEN *".PHP_EOL;
- }
-
- continue(2);
- } else if ($this->tokens[$x]['line'] < $this->tokens[$i]['line']) {
- break;
- }
- }
-
- // The string to the left of the colon is either a property or label.
- for ($label = ($i - 1); $label >= 0; $label--) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$label]['code']]) === false) {
- break;
- }
- }
-
- if ($this->tokens[$label]['code'] !== T_STRING
- && $this->tokens[$label]['code'] !== T_CONSTANT_ENCAPSED_STRING
- ) {
- continue;
- }
-
- if (empty($classStack) === false) {
- $this->tokens[$label]['code'] = T_PROPERTY;
- $this->tokens[$label]['type'] = 'T_PROPERTY';
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", count($classStack));
- echo "\t* token $label converted from T_STRING to T_PROPERTY *".PHP_EOL;
- }
- } else {
- $this->tokens[$label]['code'] = T_LABEL;
- $this->tokens[$label]['type'] = 'T_LABEL';
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", count($classStack));
- echo "\t* token $label converted from T_STRING to T_LABEL *".PHP_EOL;
- }
- }//end if
- }//end if
- }//end for
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** END ADDITIONAL JS PROCESSING ***".PHP_EOL;
- }
-
- }//end processAdditional()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/PHP.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/PHP.php
deleted file mode 100644
index e918dcb0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/PHP.php
+++ /dev/null
@@ -1,1871 +0,0 @@
-<?php
-/**
- * Tokenizes PHP code.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tokenizers;
-
-use PHP_CodeSniffer\Util;
-
-class PHP extends Tokenizer
-{
-
-
- /**
- * A list of tokens that are allowed to open a scope.
- *
- * This array also contains information about what kind of token the scope
- * opener uses to open and close the scope, if the token strictly requires
- * an opener, if the token can share a scope closer, and who it can be shared
- * with. An example of a token that shares a scope closer is a CASE scope.
- *
- * @var array
- */
- public $scopeOpeners = array(
- T_IF => array(
- 'start' => array(
- T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET,
- T_COLON => T_COLON,
- ),
- 'end' => array(
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_ENDIF => T_ENDIF,
- T_ELSE => T_ELSE,
- T_ELSEIF => T_ELSEIF,
- ),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(
- T_ELSE => T_ELSE,
- T_ELSEIF => T_ELSEIF,
- ),
- ),
- T_TRY => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_CATCH => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_FINALLY => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_ELSE => array(
- 'start' => array(
- T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET,
- T_COLON => T_COLON,
- ),
- 'end' => array(
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_ENDIF => T_ENDIF,
- ),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(
- T_IF => T_IF,
- T_ELSEIF => T_ELSEIF,
- ),
- ),
- T_ELSEIF => array(
- 'start' => array(
- T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET,
- T_COLON => T_COLON,
- ),
- 'end' => array(
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_ENDIF => T_ENDIF,
- T_ELSE => T_ELSE,
- T_ELSEIF => T_ELSEIF,
- ),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(
- T_IF => T_IF,
- T_ELSE => T_ELSE,
- ),
- ),
- T_FOR => array(
- 'start' => array(
- T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET,
- T_COLON => T_COLON,
- ),
- 'end' => array(
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_ENDFOR => T_ENDFOR,
- ),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_FOREACH => array(
- 'start' => array(
- T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET,
- T_COLON => T_COLON,
- ),
- 'end' => array(
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_ENDFOREACH => T_ENDFOREACH,
- ),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_INTERFACE => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_FUNCTION => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_CLASS => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_TRAIT => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_USE => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_DECLARE => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_NAMESPACE => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_WHILE => array(
- 'start' => array(
- T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET,
- T_COLON => T_COLON,
- ),
- 'end' => array(
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_ENDWHILE => T_ENDWHILE,
- ),
- 'strict' => false,
- 'shared' => false,
- 'with' => array(),
- ),
- T_DO => array(
- 'start' => array(T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET),
- 'end' => array(T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_SWITCH => array(
- 'start' => array(
- T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET,
- T_COLON => T_COLON,
- ),
- 'end' => array(
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_ENDSWITCH => T_ENDSWITCH,
- ),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_CASE => array(
- 'start' => array(
- T_COLON => T_COLON,
- T_SEMICOLON => T_SEMICOLON,
- ),
- 'end' => array(
- T_BREAK => T_BREAK,
- T_RETURN => T_RETURN,
- T_CONTINUE => T_CONTINUE,
- T_THROW => T_THROW,
- T_EXIT => T_EXIT,
- ),
- 'strict' => true,
- 'shared' => true,
- 'with' => array(
- T_DEFAULT => T_DEFAULT,
- T_CASE => T_CASE,
- T_SWITCH => T_SWITCH,
- ),
- ),
- T_DEFAULT => array(
- 'start' => array(
- T_COLON => T_COLON,
- T_SEMICOLON => T_SEMICOLON,
- ),
- 'end' => array(
- T_BREAK => T_BREAK,
- T_RETURN => T_RETURN,
- T_CONTINUE => T_CONTINUE,
- T_THROW => T_THROW,
- T_EXIT => T_EXIT,
- ),
- 'strict' => true,
- 'shared' => true,
- 'with' => array(
- T_CASE => T_CASE,
- T_SWITCH => T_SWITCH,
- ),
- ),
- T_START_HEREDOC => array(
- 'start' => array(T_START_HEREDOC => T_START_HEREDOC),
- 'end' => array(T_END_HEREDOC => T_END_HEREDOC),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- T_START_NOWDOC => array(
- 'start' => array(T_START_NOWDOC => T_START_NOWDOC),
- 'end' => array(T_END_NOWDOC => T_END_NOWDOC),
- 'strict' => true,
- 'shared' => false,
- 'with' => array(),
- ),
- );
-
- /**
- * A list of tokens that end the scope.
- *
- * This array is just a unique collection of the end tokens
- * from the _scopeOpeners array. The data is duplicated here to
- * save time during parsing of the file.
- *
- * @var array
- */
- public $endScopeTokens = array(
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_ENDIF => T_ENDIF,
- T_ENDFOR => T_ENDFOR,
- T_ENDFOREACH => T_ENDFOREACH,
- T_ENDWHILE => T_ENDWHILE,
- T_ENDSWITCH => T_ENDSWITCH,
- T_BREAK => T_BREAK,
- T_END_HEREDOC => T_END_HEREDOC,
- );
-
- /**
- * Known lengths of tokens.
- *
- * @var array<int, int>
- */
- public $knownLengths = array(
- T_ABSTRACT => 8,
- T_AND_EQUAL => 2,
- T_ARRAY => 5,
- T_AS => 2,
- T_BOOLEAN_AND => 2,
- T_BOOLEAN_OR => 2,
- T_BREAK => 5,
- T_CALLABLE => 8,
- T_CASE => 4,
- T_CATCH => 5,
- T_CLASS => 5,
- T_CLASS_C => 9,
- T_CLONE => 5,
- T_CONCAT_EQUAL => 2,
- T_CONST => 5,
- T_CONTINUE => 8,
- T_CURLY_OPEN => 2,
- T_DEC => 2,
- T_DECLARE => 7,
- T_DEFAULT => 7,
- T_DIR => 7,
- T_DIV_EQUAL => 2,
- T_DO => 2,
- T_DOLLAR_OPEN_CURLY_BRACES => 2,
- T_DOUBLE_ARROW => 2,
- T_DOUBLE_COLON => 2,
- T_ECHO => 4,
- T_ELSE => 4,
- T_ELSEIF => 6,
- T_EMPTY => 5,
- T_ENDDECLARE => 10,
- T_ENDFOR => 6,
- T_ENDFOREACH => 10,
- T_ENDIF => 5,
- T_ENDSWITCH => 9,
- T_ENDWHILE => 8,
- T_EVAL => 4,
- T_EXTENDS => 7,
- T_FILE => 8,
- T_FINAL => 5,
- T_FINALLY => 7,
- T_FOR => 3,
- T_FOREACH => 7,
- T_FUNCTION => 8,
- T_FUNC_C => 12,
- T_GLOBAL => 6,
- T_GOTO => 4,
- T_HALT_COMPILER => 15,
- T_IF => 2,
- T_IMPLEMENTS => 10,
- T_INC => 2,
- T_INCLUDE => 7,
- T_INCLUDE_ONCE => 12,
- T_INSTANCEOF => 10,
- T_INSTEADOF => 9,
- T_INTERFACE => 9,
- T_ISSET => 5,
- T_IS_EQUAL => 2,
- T_IS_GREATER_OR_EQUAL => 2,
- T_IS_IDENTICAL => 3,
- T_IS_NOT_EQUAL => 2,
- T_IS_NOT_IDENTICAL => 3,
- T_IS_SMALLER_OR_EQUAL => 2,
- T_LINE => 8,
- T_LIST => 4,
- T_LOGICAL_AND => 3,
- T_LOGICAL_OR => 2,
- T_LOGICAL_XOR => 3,
- T_METHOD_C => 10,
- T_MINUS_EQUAL => 2,
- T_POW_EQUAL => 3,
- T_MOD_EQUAL => 2,
- T_MUL_EQUAL => 2,
- T_NAMESPACE => 9,
- T_NS_C => 13,
- T_NS_SEPARATOR => 1,
- T_NEW => 3,
- T_OBJECT_OPERATOR => 2,
- T_OPEN_TAG_WITH_ECHO => 3,
- T_OR_EQUAL => 2,
- T_PLUS_EQUAL => 2,
- T_PRINT => 5,
- T_PRIVATE => 7,
- T_PUBLIC => 6,
- T_PROTECTED => 9,
- T_REQUIRE => 7,
- T_REQUIRE_ONCE => 12,
- T_RETURN => 6,
- T_STATIC => 6,
- T_SWITCH => 6,
- T_THROW => 5,
- T_TRAIT => 5,
- T_TRAIT_C => 9,
- T_TRY => 3,
- T_UNSET => 5,
- T_USE => 3,
- T_VAR => 3,
- T_WHILE => 5,
- T_XOR_EQUAL => 2,
- T_YIELD => 5,
- T_OPEN_CURLY_BRACKET => 1,
- T_CLOSE_CURLY_BRACKET => 1,
- T_OPEN_SQUARE_BRACKET => 1,
- T_CLOSE_SQUARE_BRACKET => 1,
- T_OPEN_PARENTHESIS => 1,
- T_CLOSE_PARENTHESIS => 1,
- T_COLON => 1,
- T_STRING_CONCAT => 1,
- T_INLINE_THEN => 1,
- T_INLINE_ELSE => 1,
- T_NULLABLE => 1,
- T_NULL => 4,
- T_FALSE => 5,
- T_TRUE => 4,
- T_SEMICOLON => 1,
- T_EQUAL => 1,
- T_MULTIPLY => 1,
- T_DIVIDE => 1,
- T_PLUS => 1,
- T_MINUS => 1,
- T_MODULUS => 1,
- T_POW => 2,
- T_SPACESHIP => 3,
- T_COALESCE => 2,
- T_COALESCE_EQUAL => 3,
- T_BITWISE_AND => 1,
- T_BITWISE_OR => 1,
- T_BITWISE_XOR => 1,
- T_SL => 2,
- T_SR => 2,
- T_SL_EQUAL => 3,
- T_SR_EQUAL => 3,
- T_ARRAY_HINT => 5,
- T_GREATER_THAN => 1,
- T_LESS_THAN => 1,
- T_BOOLEAN_NOT => 1,
- T_SELF => 4,
- T_PARENT => 6,
- T_COMMA => 1,
- T_THIS => 4,
- T_CLOSURE => 8,
- T_BACKTICK => 1,
- T_OPEN_SHORT_ARRAY => 1,
- T_CLOSE_SHORT_ARRAY => 1,
- );
-
-
- /**
- * A cache of different token types, resolved into arrays.
- *
- * @var array
- * @see standardiseToken()
- */
- private static $resolveTokenCache = array();
-
-
- /**
- * Creates an array of tokens when given some PHP code.
- *
- * Starts by using token_get_all() but does a lot of extra processing
- * to insert information about the context of the token.
- *
- * @param string $string The string to tokenize.
- *
- * @return array
- */
- protected function tokenize($string)
- {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** START PHP TOKENIZING ***".PHP_EOL;
- $isWin = false;
- if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
- $isWin = true;
- }
- }
-
- $tokens = @token_get_all($string);
- $finalTokens = array();
-
- $newStackPtr = 0;
- $numTokens = count($tokens);
- $lastNotEmptyToken = 0;
-
- $insideInlineIf = array();
- $insideUseGroup = false;
-
- $commentTokenizer = new Comment();
-
- for ($stackPtr = 0; $stackPtr < $numTokens; $stackPtr++) {
- $token = (array) $tokens[$stackPtr];
- $tokenIsArray = isset($token[1]);
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- if ($tokenIsArray === true) {
- $type = Util\Tokens::tokenName($token[0]);
- $content = Util\Common::prepareForOutput($token[1]);
- } else {
- $newToken = self::resolveSimpleToken($token[0]);
- $type = $newToken['type'];
- $content = Util\Common::prepareForOutput($token[0]);
- }
-
- echo "\tProcess token ";
- if ($tokenIsArray === true) {
- echo "[$stackPtr]";
- } else {
- echo " $stackPtr ";
- }
-
- echo ": $type => $content";
- }//end if
-
- if ($newStackPtr > 0 && $finalTokens[($newStackPtr - 1)]['code'] !== T_WHITESPACE) {
- $lastNotEmptyToken = ($newStackPtr - 1);
- }
-
- /*
- If we are using \r\n newline characters, the \r and \n are sometimes
- split over two tokens. This normally occurs after comments. We need
- to merge these two characters together so that our line endings are
- consistent for all lines.
- */
-
- if ($tokenIsArray === true && substr($token[1], -1) === "\r") {
- if (isset($tokens[($stackPtr + 1)]) === true
- && is_array($tokens[($stackPtr + 1)]) === true
- && $tokens[($stackPtr + 1)][1][0] === "\n"
- ) {
- $token[1] .= "\n";
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- if ($isWin === true) {
- echo '\n';
- } else {
- echo "\033[30;1m\\n\033[0m";
- }
- }
-
- if ($tokens[($stackPtr + 1)][1] === "\n") {
- // This token's content has been merged into the previous,
- // so we can skip it.
- $tokens[($stackPtr + 1)] = '';
- } else {
- $tokens[($stackPtr + 1)][1] = substr($tokens[($stackPtr + 1)][1], 1);
- }
- }
- }//end if
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo PHP_EOL;
- }
-
- /*
- Parse doc blocks into something that can be easily iterated over.
- */
-
- if ($tokenIsArray === true && $token[0] === T_DOC_COMMENT) {
- $commentTokens = $commentTokenizer->tokenizeString($token[1], $this->eolChar, $newStackPtr);
- foreach ($commentTokens as $commentToken) {
- $finalTokens[$newStackPtr] = $commentToken;
- $newStackPtr++;
- }
-
- continue;
- }
-
- /*
- If this is a double quoted string, PHP will tokenize the whole
- thing which causes problems with the scope map when braces are
- within the string. So we need to merge the tokens together to
- provide a single string.
- */
-
- if ($tokenIsArray === false && ($token[0] === '"' || $token[0] === 'b"')) {
- // Binary casts need a special token.
- if ($token[0] === 'b"') {
- $finalTokens[$newStackPtr] = array(
- 'code' => T_BINARY_CAST,
- 'type' => 'T_BINARY_CAST',
- 'content' => 'b',
- );
- $newStackPtr++;
- }
-
- $tokenContent = '"';
- $nestedVars = array();
- for ($i = ($stackPtr + 1); $i < $numTokens; $i++) {
- $subToken = (array) $tokens[$i];
- $subTokenIsArray = isset($subToken[1]);
-
- if ($subTokenIsArray === true) {
- $tokenContent .= $subToken[1];
- if ($subToken[1] === '{'
- && $subToken[0] !== T_ENCAPSED_AND_WHITESPACE
- ) {
- $nestedVars[] = $i;
- }
- } else {
- $tokenContent .= $subToken[0];
- if ($subToken[0] === '}') {
- array_pop($nestedVars);
- }
- }
-
- if ($subTokenIsArray === false
- && $subToken[0] === '"'
- && empty($nestedVars) === true
- ) {
- // We found the other end of the double quoted string.
- break;
- }
- }//end for
-
- $stackPtr = $i;
-
- // Convert each line within the double quoted string to a
- // new token, so it conforms with other multiple line tokens.
- $tokenLines = explode($this->eolChar, $tokenContent);
- $numLines = count($tokenLines);
- $newToken = array();
-
- for ($j = 0; $j < $numLines; $j++) {
- $newToken['content'] = $tokenLines[$j];
- if ($j === ($numLines - 1)) {
- if ($tokenLines[$j] === '') {
- break;
- }
- } else {
- $newToken['content'] .= $this->eolChar;
- }
-
- $newToken['code'] = T_DOUBLE_QUOTED_STRING;
- $newToken['type'] = 'T_DOUBLE_QUOTED_STRING';
- $finalTokens[$newStackPtr] = $newToken;
- $newStackPtr++;
- }
-
- // Continue, as we're done with this token.
- continue;
- }//end if
-
- /*
- If this is a heredoc, PHP will tokenize the whole
- thing which causes problems when heredocs don't
- contain real PHP code, which is almost never.
- We want to leave the start and end heredoc tokens
- alone though.
- */
-
- if ($tokenIsArray === true && $token[0] === T_START_HEREDOC) {
- // Add the start heredoc token to the final array.
- $finalTokens[$newStackPtr] = self::standardiseToken($token);
-
- // Check if this is actually a nowdoc and use a different token
- // to help the sniffs.
- $nowdoc = false;
- if ($token[1][3] === "'") {
- $finalTokens[$newStackPtr]['code'] = T_START_NOWDOC;
- $finalTokens[$newStackPtr]['type'] = 'T_START_NOWDOC';
- $nowdoc = true;
- }
-
- $tokenContent = '';
- for ($i = ($stackPtr + 1); $i < $numTokens; $i++) {
- $subTokenIsArray = is_array($tokens[$i]);
- if ($subTokenIsArray === true
- && $tokens[$i][0] === T_END_HEREDOC
- ) {
- // We found the other end of the heredoc.
- break;
- }
-
- if ($subTokenIsArray === true) {
- $tokenContent .= $tokens[$i][1];
- } else {
- $tokenContent .= $tokens[$i];
- }
- }
-
- if ($i === $numTokens) {
- // We got to the end of the file and never
- // found the closing token, so this probably wasn't
- // a heredoc.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $finalTokens[$newStackPtr]['type'];
- echo "\t\t* failed to find the end of the here/nowdoc".PHP_EOL;
- echo "\t\t* token $stackPtr changed from $type to T_STRING".PHP_EOL;
- }
-
- $finalTokens[$newStackPtr]['code'] = T_STRING;
- $finalTokens[$newStackPtr]['type'] = 'T_STRING';
- $newStackPtr++;
- continue;
- }
-
- $stackPtr = $i;
- $newStackPtr++;
-
- // Convert each line within the heredoc to a
- // new token, so it conforms with other multiple line tokens.
- $tokenLines = explode($this->eolChar, $tokenContent);
- $numLines = count($tokenLines);
- $newToken = array();
-
- for ($j = 0; $j < $numLines; $j++) {
- $newToken['content'] = $tokenLines[$j];
- if ($j === ($numLines - 1)) {
- if ($tokenLines[$j] === '') {
- break;
- }
- } else {
- $newToken['content'] .= $this->eolChar;
- }
-
- if ($nowdoc === true) {
- $newToken['code'] = T_NOWDOC;
- $newToken['type'] = 'T_NOWDOC';
- } else {
- $newToken['code'] = T_HEREDOC;
- $newToken['type'] = 'T_HEREDOC';
- }
-
- $finalTokens[$newStackPtr] = $newToken;
- $newStackPtr++;
- }//end for
-
- // Add the end heredoc token to the final array.
- $finalTokens[$newStackPtr] = self::standardiseToken($tokens[$stackPtr]);
-
- if ($nowdoc === true) {
- $finalTokens[$newStackPtr]['code'] = T_END_NOWDOC;
- $finalTokens[$newStackPtr]['type'] = 'T_END_NOWDOC';
- $nowdoc = true;
- }
-
- $newStackPtr++;
-
- // Continue, as we're done with this token.
- continue;
- }//end if
-
- /*
- Before PHP 5.6, the ... operator was tokenized as three
- T_STRING_CONCAT tokens in a row. So look for and combine
- these tokens in earlier versions.
- */
-
- if ($tokenIsArray === false
- && $token[0] === '.'
- && isset($tokens[($stackPtr + 1)]) === true
- && isset($tokens[($stackPtr + 2)]) === true
- && $tokens[($stackPtr + 1)] === '.'
- && $tokens[($stackPtr + 2)] === '.'
- ) {
- $newToken = array();
- $newToken['code'] = T_ELLIPSIS;
- $newToken['type'] = 'T_ELLIPSIS';
- $newToken['content'] = '...';
- $finalTokens[$newStackPtr] = $newToken;
-
- $newStackPtr++;
- $stackPtr += 2;
- continue;
- }
-
- /*
- Before PHP 5.6, the ** operator was tokenized as two
- T_MULTIPLY tokens in a row. So look for and combine
- these tokens in earlier versions.
- */
-
- if ($tokenIsArray === false
- && $token[0] === '*'
- && isset($tokens[($stackPtr + 1)]) === true
- && $tokens[($stackPtr + 1)] === '*'
- ) {
- $newToken = array();
- $newToken['code'] = T_POW;
- $newToken['type'] = 'T_POW';
- $newToken['content'] = '**';
- $finalTokens[$newStackPtr] = $newToken;
-
- $newStackPtr++;
- $stackPtr++;
- continue;
- }
-
- /*
- Before PHP 5.6, the **= operator was tokenized as
- T_MULTIPLY followed by T_MUL_EQUAL. So look for and combine
- these tokens in earlier versions.
- */
-
- if ($tokenIsArray === false
- && $token[0] === '*'
- && isset($tokens[($stackPtr + 1)]) === true
- && is_array($tokens[($stackPtr + 1)]) === true
- && $tokens[($stackPtr + 1)][1] === '*='
- ) {
- $newToken = array();
- $newToken['code'] = T_POW_EQUAL;
- $newToken['type'] = 'T_POW_EQUAL';
- $newToken['content'] = '**=';
- $finalTokens[$newStackPtr] = $newToken;
-
- $newStackPtr++;
- $stackPtr++;
- continue;
- }
-
- /*
- Before PHP 7, the ??= operator was tokenized as
- T_INLINE_THEN, T_INLINE_THEN, T_EQUAL.
- Between PHP 7.0 and 7.2, the ??= operator was tokenized as
- T_COALESCE, T_EQUAL.
- So look for and combine these tokens in earlier versions.
- */
-
- if (($tokenIsArray === false
- && $token[0] === '?'
- && isset($tokens[($stackPtr + 1)]) === true
- && $tokens[($stackPtr + 1)][0] === '?'
- && isset($tokens[($stackPtr + 2)]) === true
- && $tokens[($stackPtr + 2)][0] === '=')
- || ($tokenIsArray === true
- && $token[0] === T_COALESCE
- && isset($tokens[($stackPtr + 1)]) === true
- && $tokens[($stackPtr + 1)][0] === '=')
- ) {
- $newToken = array();
- $newToken['code'] = T_COALESCE_EQUAL;
- $newToken['type'] = 'T_COALESCE_EQUAL';
- $newToken['content'] = '??=';
- $finalTokens[$newStackPtr] = $newToken;
-
- $newStackPtr++;
- $stackPtr++;
-
- if ($tokenIsArray === false) {
- // Pre PHP 7.
- $stackPtr++;
- }
-
- continue;
- }
-
- /*
- Before PHP 7, the ?? operator was tokenized as
- T_INLINE_THEN followed by T_INLINE_THEN.
- So look for and combine these tokens in earlier versions.
- */
-
- if ($tokenIsArray === false
- && $token[0] === '?'
- && isset($tokens[($stackPtr + 1)]) === true
- && $tokens[($stackPtr + 1)][0] === '?'
- ) {
- $newToken = array();
- $newToken['code'] = T_COALESCE;
- $newToken['type'] = 'T_COALESCE';
- $newToken['content'] = '??';
- $finalTokens[$newStackPtr] = $newToken;
-
- $newStackPtr++;
- $stackPtr++;
- continue;
- }
-
- /*
- Convert ? to T_NULLABLE OR T_INLINE_THEN
- */
-
- if ($tokenIsArray === false && $token[0] === '?') {
- $newToken = array();
- $newToken['content'] = '?';
-
- $prevNonEmpty = null;
- for ($i = ($stackPtr - 1); $i >= 0; $i--) {
- if (is_array($tokens[$i]) === true) {
- $tokenType = $tokens[$i][0];
- } else {
- $tokenType = $tokens[$i];
- }
-
- if ($prevNonEmpty === null
- && isset(Util\Tokens::$emptyTokens[$tokenType]) === false
- ) {
- // Found the previous non-empty token.
- if ($tokenType === ':' || $tokenType === ',') {
- $newToken['code'] = T_NULLABLE;
- $newToken['type'] = 'T_NULLABLE';
- break;
- }
-
- $prevNonEmpty = $tokenType;
- }
-
- if ($tokenType === T_FUNCTION) {
- $newToken['code'] = T_NULLABLE;
- $newToken['type'] = 'T_NULLABLE';
- break;
- } else if (in_array($tokenType, array(T_OPEN_TAG, T_OPEN_TAG_WITH_ECHO, '=', '{', ';')) === true) {
- $newToken['code'] = T_INLINE_THEN;
- $newToken['type'] = 'T_INLINE_THEN';
-
- $insideInlineIf[] = $stackPtr;
- break;
- }
- }//end for
-
- $finalTokens[$newStackPtr] = $newToken;
- $newStackPtr++;
- continue;
- }//end if
-
- /*
- Tokens after a double colon may be look like scope openers,
- such as when writing code like Foo::NAMESPACE, but they are
- only ever variables or strings.
- */
-
- if ($stackPtr > 1
- && (is_array($tokens[($stackPtr - 1)]) === true
- && $tokens[($stackPtr - 1)][0] === T_PAAMAYIM_NEKUDOTAYIM)
- && $tokenIsArray === true
- && $token[0] !== T_STRING
- && $token[0] !== T_VARIABLE
- && $token[0] !== T_DOLLAR
- && isset(Util\Tokens::$emptyTokens[$token[0]]) === false
- ) {
- $newToken = array();
- $newToken['code'] = T_STRING;
- $newToken['type'] = 'T_STRING';
- $newToken['content'] = $token[1];
- $finalTokens[$newStackPtr] = $newToken;
-
- $newStackPtr++;
- continue;
- }
-
- /*
- The string-like token after a function keyword should always be
- tokenized as T_STRING even if it appears to be a different token,
- such as when writing code like: function default(): foo
- so go forward and change the token type before it is processed.
- */
-
- if ($tokenIsArray === true && $token[0] === T_FUNCTION
- && $finalTokens[$lastNotEmptyToken]['code'] !== T_USE
- ) {
- for ($x = ($stackPtr + 1); $x < $numTokens; $x++) {
- if (is_array($tokens[$x]) === false
- || isset(Util\Tokens::$emptyTokens[$tokens[$x][0]]) === false
- ) {
- // Non-empty content.
- break;
- }
- }
-
- if ($x < $numTokens && is_array($tokens[$x]) === true) {
- $tokens[$x][0] = T_STRING;
- }
- }
-
- /*
- Before PHP 7, the <=> operator was tokenized as
- T_IS_SMALLER_OR_EQUAL followed by T_GREATER_THAN.
- So look for and combine these tokens in earlier versions.
- */
-
- if ($tokenIsArray === true
- && $token[0] === T_IS_SMALLER_OR_EQUAL
- && isset($tokens[($stackPtr + 1)]) === true
- && $tokens[($stackPtr + 1)][0] === '>'
- ) {
- $newToken = array();
- $newToken['code'] = T_SPACESHIP;
- $newToken['type'] = 'T_SPACESHIP';
- $newToken['content'] = '<=>';
- $finalTokens[$newStackPtr] = $newToken;
-
- $newStackPtr++;
- $stackPtr++;
- continue;
- }
-
- /*
- PHP doesn't assign a token to goto labels, so we have to.
- These are just string tokens with a single colon after them. Double
- colons are already tokenized and so don't interfere with this check.
- But we do have to account for CASE statements, that look just like
- goto labels.
- */
-
- if ($tokenIsArray === true
- && $token[0] === T_STRING
- && isset($tokens[($stackPtr + 1)]) === true
- && $tokens[($stackPtr + 1)] === ':'
- && $tokens[($stackPtr - 1)][0] !== T_PAAMAYIM_NEKUDOTAYIM
- ) {
- $stopTokens = array(
- T_CASE => true,
- T_SEMICOLON => true,
- T_OPEN_CURLY_BRACKET => true,
- T_INLINE_THEN => true,
- );
-
- for ($x = ($newStackPtr - 1); $x > 0; $x--) {
- if (isset($stopTokens[$finalTokens[$x]['code']]) === true) {
- break;
- }
- }
-
- if ($finalTokens[$x]['code'] !== T_CASE
- && $finalTokens[$x]['code'] !== T_INLINE_THEN
- ) {
- $finalTokens[$newStackPtr] = array(
- 'content' => $token[1].':',
- 'code' => T_GOTO_LABEL,
- 'type' => 'T_GOTO_LABEL',
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* token $stackPtr changed from T_STRING to T_GOTO_LABEL".PHP_EOL;
- echo "\t\t* skipping T_COLON token ".($stackPtr + 1).PHP_EOL;
- }
-
- $newStackPtr++;
- $stackPtr++;
- continue;
- }
- }//end if
-
- /*
- HHVM 3.5 tokenizes "else[\s]+if" as a T_ELSEIF token while PHP
- proper only tokenizes "elseif" as a T_ELSEIF token. So split
- up the HHVM token to make it looks like proper PHP.
- */
-
- if ($tokenIsArray === true
- && $token[0] === T_ELSEIF
- && strtolower($token[1]) !== 'elseif'
- ) {
- $finalTokens[$newStackPtr] = array(
- 'content' => substr($token[1], 0, 4),
- 'code' => T_ELSE,
- 'type' => 'T_ELSE',
- );
-
- $newStackPtr++;
- $finalTokens[$newStackPtr] = array(
- 'content' => substr($token[1], 4, -2),
- 'code' => T_WHITESPACE,
- 'type' => 'T_WHITESPACE',
- );
-
- $newStackPtr++;
- $finalTokens[$newStackPtr] = array(
- 'content' => substr($token[1], -2),
- 'code' => T_IF,
- 'type' => 'T_IF',
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* token $stackPtr changed from T_ELSEIF to T_ELSE/T_WHITESPACE/T_IF".PHP_EOL;
- }
-
- $newStackPtr++;
- continue;
- }//end if
-
- /*
- HHVM 3.5 and 3.6 tokenizes a hashbang line such as #!/usr/bin/php
- as T_HASHBANG while PHP proper uses T_INLINE_HTML.
- */
-
- if ($tokenIsArray === true && token_name($token[0]) === 'T_HASHBANG') {
- $finalTokens[$newStackPtr] = array(
- 'content' => $token[1],
- 'code' => T_INLINE_HTML,
- 'type' => 'T_INLINE_HTML',
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t* token $stackPtr changed from T_HASHBANG to T_INLINE_HTML".PHP_EOL;
- }
-
- $newStackPtr++;
- continue;
- }//end if
-
- /*
- If this token has newlines in its content, split each line up
- and create a new token for each line. We do this so it's easier
- to ascertain where errors occur on a line.
- Note that $token[1] is the token's content.
- */
-
- if ($tokenIsArray === true && strpos($token[1], $this->eolChar) !== false) {
- $tokenLines = explode($this->eolChar, $token[1]);
- $numLines = count($tokenLines);
- $newToken = array(
- 'type' => token_name($token[0]),
- 'code' => $token[0],
- 'content' => '',
- );
-
- for ($i = 0; $i < $numLines; $i++) {
- $newToken['content'] = $tokenLines[$i];
- if ($i === ($numLines - 1)) {
- if ($tokenLines[$i] === '') {
- break;
- }
- } else {
- $newToken['content'] .= $this->eolChar;
- }
-
- $finalTokens[$newStackPtr] = $newToken;
- $newStackPtr++;
- }
- } else {
- if ($tokenIsArray === true && $token[0] === T_STRING) {
- // Some T_STRING tokens should remain that way
- // due to their context.
- $context = array(
- T_OBJECT_OPERATOR => true,
- T_FUNCTION => true,
- T_CLASS => true,
- T_EXTENDS => true,
- T_IMPLEMENTS => true,
- T_NEW => true,
- T_CONST => true,
- T_NS_SEPARATOR => true,
- T_USE => true,
- T_NAMESPACE => true,
- T_PAAMAYIM_NEKUDOTAYIM => true,
- );
- if (isset($context[$finalTokens[$lastNotEmptyToken]['code']]) === true) {
- // Special case for syntax like: return new self
- // where self should not be a string.
- if ($finalTokens[$lastNotEmptyToken]['code'] === T_NEW
- && strtolower($token[1]) === 'self'
- ) {
- $finalTokens[$newStackPtr] = array(
- 'content' => $token[1],
- 'code' => T_SELF,
- 'type' => 'T_SELF',
- );
- } else {
- $finalTokens[$newStackPtr] = array(
- 'content' => $token[1],
- 'code' => T_STRING,
- 'type' => 'T_STRING',
- );
- }
-
- $newStackPtr++;
- continue;
- }//end if
- }//end if
-
- $newToken = null;
- if ($tokenIsArray === false) {
- if (isset(self::$resolveTokenCache[$token[0]]) === true) {
- $newToken = self::$resolveTokenCache[$token[0]];
- }
- } else {
- $cacheKey = null;
- if ($token[0] === T_STRING) {
- $cacheKey = strtolower($token[1]);
- } else if ($token[0] !== T_CURLY_OPEN) {
- $cacheKey = $token[0];
- }
-
- if ($cacheKey !== null && isset(self::$resolveTokenCache[$cacheKey]) === true) {
- $newToken = self::$resolveTokenCache[$cacheKey];
- $newToken['content'] = $token[1];
- }
- }
-
- if ($newToken === null) {
- $newToken = self::standardiseToken($token);
- }
-
- // Convert colons that are actually the ELSE component of an
- // inline IF statement.
- if (empty($insideInlineIf) === false && $newToken['code'] === T_COLON) {
- array_pop($insideInlineIf);
- $newToken['code'] = T_INLINE_ELSE;
- $newToken['type'] = 'T_INLINE_ELSE';
- }
-
- // This is a special condition for T_ARRAY tokens used for
- // type hinting function arguments as being arrays. We want to keep
- // the parenthesis map clean, so let's tag these tokens as
- // T_ARRAY_HINT.
- if ($newToken['code'] === T_ARRAY) {
- for ($i = $stackPtr; $i < $numTokens; $i++) {
- if ($tokens[$i] === '(') {
- break;
- } else if ($tokens[$i][0] === T_VARIABLE) {
- $newToken['code'] = T_ARRAY_HINT;
- $newToken['type'] = 'T_ARRAY_HINT';
- break;
- }
- }
- }
-
- // This is a special case when checking PHP 5.5+ code in PHP < 5.5
- // where "finally" should be T_FINALLY instead of T_STRING.
- if ($newToken['code'] === T_STRING
- && strtolower($newToken['content']) === 'finally'
- ) {
- $newToken['code'] = T_FINALLY;
- $newToken['type'] = 'T_FINALLY';
- }
-
- // This is a special case for the PHP 5.5 classname::class syntax
- // where "class" should be T_STRING instead of T_CLASS.
- if (($newToken['code'] === T_CLASS
- || $newToken['code'] === T_FUNCTION)
- && $finalTokens[($newStackPtr - 1)]['code'] === T_DOUBLE_COLON
- ) {
- $newToken['code'] = T_STRING;
- $newToken['type'] = 'T_STRING';
- }
-
- // This is a special case for PHP 5.6 use function and use const
- // where "function" and "const" should be T_STRING instead of T_FUNCTION
- // and T_CONST.
- if (($newToken['code'] === T_FUNCTION
- || $newToken['code'] === T_CONST)
- && $finalTokens[$lastNotEmptyToken]['code'] === T_USE
- ) {
- $newToken['code'] = T_STRING;
- $newToken['type'] = 'T_STRING';
- }
-
- // This is a special case for use groups in PHP 7+ where leaving
- // the curly braces as their normal tokens would confuse
- // the scope map and sniffs.
- if ($newToken['code'] === T_OPEN_CURLY_BRACKET
- && $finalTokens[$lastNotEmptyToken]['code'] === T_NS_SEPARATOR
- ) {
- $newToken['code'] = T_OPEN_USE_GROUP;
- $newToken['type'] = 'T_OPEN_USE_GROUP';
- $insideUseGroup = true;
- }
-
- if ($insideUseGroup === true && $newToken['code'] === T_CLOSE_CURLY_BRACKET) {
- $newToken['code'] = T_CLOSE_USE_GROUP;
- $newToken['type'] = 'T_CLOSE_USE_GROUP';
- $insideUseGroup = false;
- }
-
- $finalTokens[$newStackPtr] = $newToken;
- $newStackPtr++;
- }//end if
- }//end for
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** END PHP TOKENIZING ***".PHP_EOL;
- }
-
- return $finalTokens;
-
- }//end tokenize()
-
-
- /**
- * Performs additional processing after main tokenizing.
- *
- * This additional processing checks for CASE statements that are using curly
- * braces for scope openers and closers. It also turns some T_FUNCTION tokens
- * into T_CLOSURE when they are not standard function definitions. It also
- * detects short array syntax and converts those square brackets into new tokens.
- * It also corrects some usage of the static and class keywords. It also
- * assigns tokens to function return types.
- *
- * @return void
- */
- protected function processAdditional()
- {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** START ADDITIONAL PHP PROCESSING ***".PHP_EOL;
- }
-
- $numTokens = count($this->tokens);
- for ($i = ($numTokens - 1); $i >= 0; $i--) {
- // Check for any unset scope conditions due to alternate IF/ENDIF syntax.
- if (isset($this->tokens[$i]['scope_opener']) === true
- && isset($this->tokens[$i]['scope_condition']) === false
- ) {
- $this->tokens[$i]['scope_condition'] = $this->tokens[$this->tokens[$i]['scope_opener']]['scope_condition'];
- }
-
- if ($this->tokens[$i]['code'] === T_FUNCTION) {
- /*
- Detect functions that are actually closures and
- assign them a different token.
- */
-
- if (isset($this->tokens[$i]['scope_opener']) === true) {
- for ($x = ($i + 1); $x < $numTokens; $x++) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$x]['code']]) === false
- && $this->tokens[$x]['code'] !== T_BITWISE_AND
- ) {
- break;
- }
- }
-
- if ($this->tokens[$x]['code'] === T_OPEN_PARENTHESIS) {
- $this->tokens[$i]['code'] = T_CLOSURE;
- $this->tokens[$i]['type'] = 'T_CLOSURE';
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$i]['line'];
- echo "\t* token $i on line $line changed from T_FUNCTION to T_CLOSURE".PHP_EOL;
- }
-
- for ($x = ($this->tokens[$i]['scope_opener'] + 1); $x < $this->tokens[$i]['scope_closer']; $x++) {
- if (isset($this->tokens[$x]['conditions'][$i]) === false) {
- continue;
- }
-
- $this->tokens[$x]['conditions'][$i] = T_CLOSURE;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$x]['type'];
- echo "\t\t* cleaned $x ($type) *".PHP_EOL;
- }
- }
- }
-
- $tokenAfterReturnTypeHint = $this->tokens[$i]['scope_opener'];
- } else if (isset($this->tokens[$i]['parenthesis_closer']) === true) {
- $tokenAfterReturnTypeHint = null;
- for ($x = ($this->tokens[$i]['parenthesis_closer'] + 1); $x < $numTokens; $x++) {
- if ($this->tokens[$x]['code'] === T_SEMICOLON) {
- $tokenAfterReturnTypeHint = $x;
- break;
- }
- }
-
- if ($tokenAfterReturnTypeHint === null) {
- // Probably a syntax error.
- continue;
- }
- } else {
- // Probably a syntax error.
- continue;
- }//end if
-
- /*
- Detect function return values and assign them
- a special token, because PHP doesn't.
- */
-
- for ($x = ($tokenAfterReturnTypeHint - 1); $x > $i; $x--) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$x]['code']]) === false) {
- if (in_array($this->tokens[$x]['code'], array(T_STRING, T_ARRAY, T_ARRAY_HINT, T_CALLABLE, T_SELF, T_PARENT), true) === true) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$x]['line'];
- $type = $this->tokens[$x]['type'];
- echo "\t* token $x on line $line changed from $type to T_RETURN_TYPE".PHP_EOL;
- }
-
- $this->tokens[$x]['code'] = T_RETURN_TYPE;
- $this->tokens[$x]['type'] = 'T_RETURN_TYPE';
-
- if (array_key_exists('parenthesis_opener', $this->tokens[$x]) === true) {
- unset($this->tokens[$x]['parenthesis_opener']);
- }
-
- if (array_key_exists('parenthesis_closer', $this->tokens[$x]) === true) {
- unset($this->tokens[$x]['parenthesis_closer']);
- }
-
- if (array_key_exists('parenthesis_owner', $this->tokens[$x]) === true) {
- unset($this->tokens[$x]['parenthesis_owner']);
- }
- }//end if
-
- break;
- }//end if
- }//end for
-
- continue;
- } else if ($this->tokens[$i]['code'] === T_CLASS && isset($this->tokens[$i]['scope_opener']) === true) {
- /*
- Detect anonymous classes and assign them a different token.
- */
-
- for ($x = ($i + 1); $x < $numTokens; $x++) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$x]['code']]) === false) {
- break;
- }
- }
-
- if ($this->tokens[$x]['code'] === T_OPEN_PARENTHESIS
- || $this->tokens[$x]['code'] === T_OPEN_CURLY_BRACKET
- || $this->tokens[$x]['code'] === T_EXTENDS
- || $this->tokens[$x]['code'] === T_IMPLEMENTS
- ) {
- $this->tokens[$i]['code'] = T_ANON_CLASS;
- $this->tokens[$i]['type'] = 'T_ANON_CLASS';
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$i]['line'];
- echo "\t* token $i on line $line changed from T_CLASS to T_ANON_CLASS".PHP_EOL;
- }
-
- for ($x = ($this->tokens[$i]['scope_opener'] + 1); $x < $this->tokens[$i]['scope_closer']; $x++) {
- if (isset($this->tokens[$x]['conditions'][$i]) === false) {
- continue;
- }
-
- $this->tokens[$x]['conditions'][$i] = T_ANON_CLASS;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$x]['type'];
- echo "\t\t* cleaned $x ($type) *".PHP_EOL;
- }
- }
- }
-
- continue;
- } else if ($this->tokens[$i]['code'] === T_OPEN_SQUARE_BRACKET) {
- if (isset($this->tokens[$i]['bracket_closer']) === false) {
- continue;
- }
-
- // Unless there is a variable or a bracket before this token,
- // it is the start of an array being defined using the short syntax.
- $isShortArray = false;
- $allowed = array(
- T_CLOSE_SQUARE_BRACKET => T_CLOSE_SQUARE_BRACKET,
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_CLOSE_PARENTHESIS => T_CLOSE_PARENTHESIS,
- T_VARIABLE => T_VARIABLE,
- T_OBJECT_OPERATOR => T_OBJECT_OPERATOR,
- T_STRING => T_STRING,
- T_CONSTANT_ENCAPSED_STRING => T_CONSTANT_ENCAPSED_STRING,
- );
-
- for ($x = ($i - 1); $x > 0; $x--) {
- // If we hit a scope opener, the statement has ended
- // without finding anything, so it's probably an array
- // using PHP 7.1 short list syntax.
- if (isset($this->tokens[$x]['scope_opener']) === true) {
- $isShortArray = true;
- break;
- }
-
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$x]['code']]) === false) {
- if (isset($allowed[$this->tokens[$x]['code']]) === false) {
- $isShortArray = true;
- }
-
- break;
- }
- }
-
- if ($isShortArray === true) {
- $this->tokens[$i]['code'] = T_OPEN_SHORT_ARRAY;
- $this->tokens[$i]['type'] = 'T_OPEN_SHORT_ARRAY';
-
- $closer = $this->tokens[$i]['bracket_closer'];
- $this->tokens[$closer]['code'] = T_CLOSE_SHORT_ARRAY;
- $this->tokens[$closer]['type'] = 'T_CLOSE_SHORT_ARRAY';
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$i]['line'];
- echo "\t* token $i on line $line changed from T_OPEN_SQUARE_BRACKET to T_OPEN_SHORT_ARRAY".PHP_EOL;
- $line = $this->tokens[$closer]['line'];
- echo "\t* token $closer on line $line changed from T_CLOSE_SQUARE_BRACKET to T_CLOSE_SHORT_ARRAY".PHP_EOL;
- }
- }
-
- continue;
- } else if ($this->tokens[$i]['code'] === T_STATIC) {
- for ($x = ($i - 1); $x > 0; $x--) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$x]['code']]) === false) {
- break;
- }
- }
-
- if ($this->tokens[$x]['code'] === T_INSTANCEOF) {
- $this->tokens[$i]['code'] = T_STRING;
- $this->tokens[$i]['type'] = 'T_STRING';
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$i]['line'];
- echo "\t* token $i on line $line changed from T_STATIC to T_STRING".PHP_EOL;
- }
- }
-
- continue;
- } else if ($this->tokens[$i]['code'] === T_ECHO && $this->tokens[$i]['content'] === '<?=') {
- // HHVM tokenizes <?= as T_ECHO but it should be T_OPEN_TAG_WITH_ECHO.
- $this->tokens[$i]['code'] = T_OPEN_TAG_WITH_ECHO;
- $this->tokens[$i]['type'] = 'T_OPEN_TAG_WITH_ECHO';
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$i]['line'];
- echo "\t* token $i on line $line changed from T_ECHO to T_OPEN_TAG_WITH_ECHO".PHP_EOL;
- }
- } else if ($this->tokens[$i]['code'] === T_TRUE
- || $this->tokens[$i]['code'] === T_FALSE
- || $this->tokens[$i]['code'] === T_NULL
- ) {
- for ($x = ($i + 1); $i < $numTokens; $x++) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$x]['code']]) === false) {
- // Non-whitespace content.
- break;
- }
- }
-
- $context = array(
- T_OBJECT_OPERATOR => true,
- T_NS_SEPARATOR => true,
- T_PAAMAYIM_NEKUDOTAYIM => true,
- );
- if (isset($context[$this->tokens[$x]['code']]) === true) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$i]['line'];
- $type = $this->tokens[$i]['type'];
- echo "\t* token $i on line $line changed from $type to T_STRING".PHP_EOL;
- }
-
- $this->tokens[$i]['code'] = T_STRING;
- $this->tokens[$i]['type'] = 'T_STRING';
- }
- } else if ($this->tokens[$i]['code'] === T_CONST) {
- // Context sensitive keywords support.
- for ($x = ($i + 1); $i < $numTokens; $x++) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$x]['code']]) === false) {
- // Non-whitespace content.
- break;
- }
- }
-
- if ($this->tokens[$x]['code'] !== T_STRING) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$x]['line'];
- $type = $this->tokens[$x]['type'];
- echo "\t* token $x on line $line changed from $type to T_STRING".PHP_EOL;
- }
-
- $this->tokens[$x]['code'] = T_STRING;
- $this->tokens[$x]['type'] = 'T_STRING';
- }
- }//end if
-
- if (($this->tokens[$i]['code'] !== T_CASE
- && $this->tokens[$i]['code'] !== T_DEFAULT)
- || isset($this->tokens[$i]['scope_opener']) === false
- ) {
- // Only interested in CASE and DEFAULT statements from here on in.
- continue;
- }
-
- $scopeOpener = $this->tokens[$i]['scope_opener'];
- $scopeCloser = $this->tokens[$i]['scope_closer'];
-
- // If the first char after the opener is a curly brace
- // and that brace has been ignored, it is actually
- // opening this case statement and the opener and closer are
- // probably set incorrectly.
- for ($x = ($scopeOpener + 1); $x < $numTokens; $x++) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$x]['code']]) === false) {
- // Non-whitespace content.
- break;
- }
- }
-
- if ($this->tokens[$x]['code'] === T_CASE || $this->tokens[$x]['code'] === T_DEFAULT) {
- // Special case for multiple CASE statements that share the same
- // closer. Because we are going backwards through the file, this next
- // CASE statement is already fixed, so just use its closer and don't
- // worry about fixing anything.
- $newCloser = $this->tokens[$x]['scope_closer'];
- $this->tokens[$i]['scope_closer'] = $newCloser;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $oldType = $this->tokens[$scopeCloser]['type'];
- $newType = $this->tokens[$newCloser]['type'];
- $line = $this->tokens[$i]['line'];
- echo "\t* token $i (T_CASE) on line $line closer changed from $scopeCloser ($oldType) to $newCloser ($newType)".PHP_EOL;
- }
-
- continue;
- }
-
- if ($this->tokens[$x]['code'] !== T_OPEN_CURLY_BRACKET
- || isset($this->tokens[$x]['scope_condition']) === true
- ) {
- // Not a CASE/DEFAULT with a curly brace opener.
- continue;
- }
-
- // The closer for this CASE/DEFAULT should be the closing curly brace and
- // not whatever it already is. The opener needs to be the opening curly
- // brace so everything matches up.
- $newCloser = $this->tokens[$x]['bracket_closer'];
- foreach (array($i, $x, $newCloser) as $index) {
- $this->tokens[$index]['scope_condition'] = $i;
- $this->tokens[$index]['scope_opener'] = $x;
- $this->tokens[$index]['scope_closer'] = $newCloser;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$i]['line'];
- $tokenType = $this->tokens[$i]['type'];
-
- $oldType = $this->tokens[$scopeOpener]['type'];
- $newType = $this->tokens[$x]['type'];
- echo "\t* token $i ($tokenType) on line $line opener changed from $scopeOpener ($oldType) to $x ($newType)".PHP_EOL;
-
- $oldType = $this->tokens[$scopeCloser]['type'];
- $newType = $this->tokens[$newCloser]['type'];
- echo "\t* token $i ($tokenType) on line $line closer changed from $scopeCloser ($oldType) to $newCloser ($newType)".PHP_EOL;
- }
-
- if ($this->tokens[$scopeOpener]['scope_condition'] === $i) {
- unset($this->tokens[$scopeOpener]['scope_condition']);
- unset($this->tokens[$scopeOpener]['scope_opener']);
- unset($this->tokens[$scopeOpener]['scope_closer']);
- }
-
- if ($this->tokens[$scopeCloser]['scope_condition'] === $i) {
- unset($this->tokens[$scopeCloser]['scope_condition']);
- unset($this->tokens[$scopeCloser]['scope_opener']);
- unset($this->tokens[$scopeCloser]['scope_closer']);
- } else {
- // We were using a shared closer. All tokens that were
- // sharing this closer with us, except for the scope condition
- // and it's opener, need to now point to the new closer.
- $condition = $this->tokens[$scopeCloser]['scope_condition'];
- $start = ($this->tokens[$condition]['scope_opener'] + 1);
- for ($y = $start; $y < $scopeCloser; $y++) {
- if (isset($this->tokens[$y]['scope_closer']) === true
- && $this->tokens[$y]['scope_closer'] === $scopeCloser
- ) {
- $this->tokens[$y]['scope_closer'] = $newCloser;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $line = $this->tokens[$y]['line'];
- $tokenType = $this->tokens[$y]['type'];
- $oldType = $this->tokens[$scopeCloser]['type'];
- $newType = $this->tokens[$newCloser]['type'];
- echo "\t\t* token $y ($tokenType) on line $line closer changed from $scopeCloser ($oldType) to $newCloser ($newType)".PHP_EOL;
- }
- }
- }
- }//end if
-
- unset($this->tokens[$x]['bracket_opener']);
- unset($this->tokens[$x]['bracket_closer']);
- unset($this->tokens[$newCloser]['bracket_opener']);
- unset($this->tokens[$newCloser]['bracket_closer']);
- $this->tokens[$scopeCloser]['conditions'][] = $i;
-
- // Now fix up all the tokens that think they are
- // inside the CASE/DEFAULT statement when they are really outside.
- for ($x = $newCloser; $x < $scopeCloser; $x++) {
- foreach ($this->tokens[$x]['conditions'] as $num => $oldCond) {
- if ($oldCond === $this->tokens[$i]['code']) {
- $oldConditions = $this->tokens[$x]['conditions'];
- unset($this->tokens[$x]['conditions'][$num]);
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$x]['type'];
- $oldConds = '';
- foreach ($oldConditions as $condition) {
- $oldConds .= Util\Tokens::tokenName($condition).',';
- }
-
- $oldConds = rtrim($oldConds, ',');
-
- $newConds = '';
- foreach ($this->tokens[$x]['conditions'] as $condition) {
- $newConds .= Util\Tokens::tokenName($condition).',';
- }
-
- $newConds = rtrim($newConds, ',');
-
- echo "\t\t* cleaned $x ($type) *".PHP_EOL;
- echo "\t\t\t=> conditions changed from $oldConds to $newConds".PHP_EOL;
- }
-
- break;
- }//end if
- }//end foreach
- }//end for
- }//end for
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** END ADDITIONAL PHP PROCESSING ***".PHP_EOL;
- }
-
- }//end processAdditional()
-
-
- /**
- * Takes a token produced from <code>token_get_all()</code> and produces a
- * more uniform token.
- *
- * @param string|array $token The token to convert.
- *
- * @return array The new token.
- */
- public static function standardiseToken($token)
- {
- if (isset($token[1]) === false) {
- if (isset(self::$resolveTokenCache[$token[0]]) === true) {
- return self::$resolveTokenCache[$token[0]];
- }
- } else {
- $cacheKey = null;
- if ($token[0] === T_STRING) {
- $cacheKey = strtolower($token[1]);
- } else if ($token[0] !== T_CURLY_OPEN) {
- $cacheKey = $token[0];
- }
-
- if ($cacheKey !== null && isset(self::$resolveTokenCache[$cacheKey]) === true) {
- $newToken = self::$resolveTokenCache[$cacheKey];
- $newToken['content'] = $token[1];
- return $newToken;
- }
- }
-
- if (isset($token[1]) === false) {
- return self::resolveSimpleToken($token[0]);
- }
-
- if ($token[0] === T_STRING) {
- switch ($cacheKey) {
- case 'false':
- $newToken['type'] = 'T_FALSE';
- break;
- case 'true':
- $newToken['type'] = 'T_TRUE';
- break;
- case 'null':
- $newToken['type'] = 'T_NULL';
- break;
- case 'self':
- $newToken['type'] = 'T_SELF';
- break;
- case 'parent':
- $newToken['type'] = 'T_PARENT';
- break;
- default:
- $newToken['type'] = 'T_STRING';
- break;
- }
-
- $newToken['code'] = constant($newToken['type']);
-
- self::$resolveTokenCache[$cacheKey] = $newToken;
- } else if ($token[0] === T_CURLY_OPEN) {
- $newToken = array(
- 'code' => T_OPEN_CURLY_BRACKET,
- 'type' => 'T_OPEN_CURLY_BRACKET',
- );
- } else {
- $newToken = array(
- 'code' => $token[0],
- 'type' => token_name($token[0]),
- );
-
- self::$resolveTokenCache[$token[0]] = $newToken;
- }//end if
-
- $newToken['content'] = $token[1];
- return $newToken;
-
- }//end standardiseToken()
-
-
- /**
- * Converts simple tokens into a format that conforms to complex tokens
- * produced by token_get_all().
- *
- * Simple tokens are tokens that are not in array form when produced from
- * token_get_all().
- *
- * @param string $token The simple token to convert.
- *
- * @return array The new token in array format.
- */
- public static function resolveSimpleToken($token)
- {
- $newToken = array();
-
- switch ($token) {
- case '{':
- $newToken['type'] = 'T_OPEN_CURLY_BRACKET';
- break;
- case '}':
- $newToken['type'] = 'T_CLOSE_CURLY_BRACKET';
- break;
- case '[':
- $newToken['type'] = 'T_OPEN_SQUARE_BRACKET';
- break;
- case ']':
- $newToken['type'] = 'T_CLOSE_SQUARE_BRACKET';
- break;
- case '(':
- $newToken['type'] = 'T_OPEN_PARENTHESIS';
- break;
- case ')':
- $newToken['type'] = 'T_CLOSE_PARENTHESIS';
- break;
- case ':':
- $newToken['type'] = 'T_COLON';
- break;
- case '.':
- $newToken['type'] = 'T_STRING_CONCAT';
- break;
- case ';':
- $newToken['type'] = 'T_SEMICOLON';
- break;
- case '=':
- $newToken['type'] = 'T_EQUAL';
- break;
- case '*':
- $newToken['type'] = 'T_MULTIPLY';
- break;
- case '/':
- $newToken['type'] = 'T_DIVIDE';
- break;
- case '+':
- $newToken['type'] = 'T_PLUS';
- break;
- case '-':
- $newToken['type'] = 'T_MINUS';
- break;
- case '%':
- $newToken['type'] = 'T_MODULUS';
- break;
- case '^':
- $newToken['type'] = 'T_BITWISE_XOR';
- break;
- case '&':
- $newToken['type'] = 'T_BITWISE_AND';
- break;
- case '|':
- $newToken['type'] = 'T_BITWISE_OR';
- break;
- case '<':
- $newToken['type'] = 'T_LESS_THAN';
- break;
- case '>':
- $newToken['type'] = 'T_GREATER_THAN';
- break;
- case '!':
- $newToken['type'] = 'T_BOOLEAN_NOT';
- break;
- case ',':
- $newToken['type'] = 'T_COMMA';
- break;
- case '@':
- $newToken['type'] = 'T_ASPERAND';
- break;
- case '$':
- $newToken['type'] = 'T_DOLLAR';
- break;
- case '`':
- $newToken['type'] = 'T_BACKTICK';
- break;
- default:
- $newToken['type'] = 'T_NONE';
- break;
- }//end switch
-
- $newToken['code'] = constant($newToken['type']);
- $newToken['content'] = $token;
-
- self::$resolveTokenCache[$token] = $newToken;
- return $newToken;
-
- }//end resolveSimpleToken()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/Tokenizer.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/Tokenizer.php
deleted file mode 100644
index f66d72d5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Tokenizers/Tokenizer.php
+++ /dev/null
@@ -1,1308 +0,0 @@
-<?php
-/**
- * The base tokenizer class.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tokenizers;
-
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-use PHP_CodeSniffer\Util;
-
-abstract class Tokenizer
-{
-
- /**
- * The config data for the run.
- *
- * @var \PHP_CodeSniffer\Config
- */
- protected $config = null;
-
- /**
- * The EOL char used in the content.
- *
- * @var string
- */
- protected $eolChar = array();
-
- /**
- * A token-based representation of the content.
- *
- * @var array
- */
- protected $tokens = array();
-
- /**
- * Known lengths of tokens.
- *
- * @var array<int, int>
- */
- public $knownLengths = array();
-
- /**
- * A list of lines being ignored due to error suppression comments.
- *
- * @var array
- */
- public $ignoredLines = array();
-
-
- /**
- * Initialise and run the tokenizer.
- *
- * @param string $content The content to tokenize,
- * @param \PHP_CodeSniffer\Config | null $config The config data for the run.
- * @param string $eolChar The EOL char used in the content.
- *
- * @return void
- * @throws TokenizerException If the file appears to be minified.
- */
- public function __construct($content, $config, $eolChar='\n')
- {
- $this->eolChar = $eolChar;
-
- $this->config = $config;
- $this->tokens = $this->tokenize($content);
-
- if ($config === null) {
- return;
- }
-
- $this->createPositionMap();
- $this->createTokenMap();
- $this->createParenthesisNestingMap();
- $this->createScopeMap();
- $this->createLevelMap();
-
- // Allow the tokenizer to do additional processing if required.
- $this->processAdditional();
-
- }//end __construct()
-
-
- /**
- * Checks the content to see if it looks minified.
- *
- * @param string $content The content to tokenize,
- * @param string $eolChar The EOL char used in the content.
- *
- * @return boolean
- */
- protected function isMinifiedContent($content, $eolChar='\n')
- {
- // Minified files often have a very large number of characters per line
- // and cause issues when tokenizing.
- $numChars = strlen($content);
- $numLines = (substr_count($content, $eolChar) + 1);
- $average = ($numChars / $numLines);
- if ($average > 100) {
- return true;
- }
-
- return false;
-
- }//end isMinifiedContent()
-
-
- /**
- * Gets the array of tokens.
- *
- * @return array
- */
- public function getTokens()
- {
- return $this->tokens;
-
- }//end getTokens()
-
-
- /**
- * Creates an array of tokens when given some content.
- *
- * @param string $string The string to tokenize.
- *
- * @return array
- */
- abstract protected function tokenize($string);
-
-
- /**
- * Performs additional processing after main tokenizing.
- *
- * @return void
- */
- abstract protected function processAdditional();
-
-
- /**
- * Sets token position information.
- *
- * Can also convert tabs into spaces. Each tab can represent between
- * 1 and $width spaces, so this cannot be a straight string replace.
- *
- * @return void
- */
- private function createPositionMap()
- {
- $currColumn = 1;
- $lineNumber = 1;
- $eolLen = (strlen($this->eolChar) * -1);
- $ignoring = false;
- $inTests = defined('PHP_CODESNIFFER_IN_TESTS');
-
- $checkEncoding = false;
- if (function_exists('iconv_strlen') === true) {
- $checkEncoding = true;
- }
-
- $checkAnnotations = $this->config->annotations;
-
- $this->tokensWithTabs = array(
- T_WHITESPACE => true,
- T_COMMENT => true,
- T_DOC_COMMENT => true,
- T_DOC_COMMENT_WHITESPACE => true,
- T_DOC_COMMENT_STRING => true,
- T_CONSTANT_ENCAPSED_STRING => true,
- T_DOUBLE_QUOTED_STRING => true,
- T_HEREDOC => true,
- T_NOWDOC => true,
- T_INLINE_HTML => true,
- );
-
- $this->numTokens = count($this->tokens);
- for ($i = 0; $i < $this->numTokens; $i++) {
- $this->tokens[$i]['line'] = $lineNumber;
- $this->tokens[$i]['column'] = $currColumn;
-
- if (isset($this->knownLengths[$this->tokens[$i]['code']]) === true) {
- // There are no tabs in the tokens we know the length of.
- $length = $this->knownLengths[$this->tokens[$i]['code']];
- $currColumn += $length;
- } else if ($this->config->tabWidth === 0
- || isset($this->tokensWithTabs[$this->tokens[$i]['code']]) === false
- || strpos($this->tokens[$i]['content'], "\t") === false
- ) {
- // There are no tabs in this content, or we aren't replacing them.
- if ($checkEncoding === true) {
- // Not using the default encoding, so take a bit more care.
- $length = @iconv_strlen($this->tokens[$i]['content'], $this->config->encoding);
- if ($length === false) {
- // String contained invalid characters, so revert to default.
- $length = strlen($this->tokens[$i]['content']);
- }
- } else {
- $length = strlen($this->tokens[$i]['content']);
- }
-
- $currColumn += $length;
- } else {
- $this->replaceTabsInToken($this->tokens[$i]);
- $length = $this->tokens[$i]['length'];
- $currColumn += $length;
- }//end if
-
- $this->tokens[$i]['length'] = $length;
-
- if (isset($this->knownLengths[$this->tokens[$i]['code']]) === false
- && strpos($this->tokens[$i]['content'], $this->eolChar) !== false
- ) {
- $lineNumber++;
- $currColumn = 1;
-
- // Newline chars are not counted in the token length.
- $this->tokens[$i]['length'] += $eolLen;
- }
-
- if ($checkAnnotations === true
- && ($this->tokens[$i]['code'] === T_COMMENT
- || $this->tokens[$i]['code'] === T_DOC_COMMENT_TAG
- || ($inTests === true && $this->tokens[$i]['code'] === T_INLINE_HTML))
- ) {
- if (strpos($this->tokens[$i]['content'], '@codingStandards') !== false) {
- if ($ignoring === false
- && strpos($this->tokens[$i]['content'], '@codingStandardsIgnoreStart') !== false
- ) {
- $ignoring = true;
- } else if ($ignoring === true
- && strpos($this->tokens[$i]['content'], '@codingStandardsIgnoreEnd') !== false
- ) {
- $ignoring = false;
- // Ignore this comment too.
- $this->ignoredLines[$this->tokens[$i]['line']] = true;
- } else if ($ignoring === false
- && strpos($this->tokens[$i]['content'], '@codingStandardsIgnoreLine') !== false
- ) {
- $this->ignoredLines[($this->tokens[$i]['line'] + 1)] = true;
- // Ignore this comment too.
- $this->ignoredLines[$this->tokens[$i]['line']] = true;
- }
- }
- }//end if
-
- if ($ignoring === true) {
- $this->ignoredLines[$this->tokens[$i]['line']] = true;
- }
- }//end for
-
- }//end createPositionMap()
-
-
- /**
- * Replaces tabs in original token content with spaces.
- *
- * Each tab can represent between 1 and $config->tabWidth spaces,
- * so this cannot be a straight string replace. The original content
- * is placed into an orig_content index and the new token length is also
- * set in the length index.
- *
- * @param array $token The token to replace tabs inside.
- * @param string $prefix The character to use to represent the start of a tab.
- * @param string $padding The character to use to represent the end of a tab.
- *
- * @return void
- */
- public function replaceTabsInToken(&$token, $prefix=' ', $padding=' ')
- {
- $checkEncoding = false;
- if (function_exists('iconv_strlen') === true) {
- $checkEncoding = true;
- }
-
- $currColumn = $token['column'];
- $tabWidth = $this->config->tabWidth;
- if ($tabWidth === 0) {
- $tabWidth = 1;
- }
-
- if (str_replace("\t", '', $token['content']) === '') {
- // String only contains tabs, so we can shortcut the process.
- $numTabs = strlen($token['content']);
-
- $newContent = '';
- $firstTabSize = ($tabWidth - (($currColumn - 1) % $tabWidth));
- $length = ($firstTabSize + ($tabWidth * ($numTabs - 1)));
- $currColumn += $length;
- $newContent = $prefix.str_repeat($padding, ($length - 1));
- } else {
- // We need to determine the length of each tab.
- $tabs = explode("\t", $token['content']);
-
- $numTabs = (count($tabs) - 1);
- $tabNum = 0;
- $newContent = '';
- $length = 0;
-
- foreach ($tabs as $content) {
- if ($content !== '') {
- $newContent .= $content;
- if ($checkEncoding === true) {
- // Not using the default encoding, so take a bit more care.
- $contentLength = @iconv_strlen($content, $this->config->encoding);
- if ($contentLength === false) {
- // String contained invalid characters, so revert to default.
- $contentLength = strlen($content);
- }
- } else {
- $contentLength = strlen($content);
- }
-
- $currColumn += $contentLength;
- $length += $contentLength;
- }
-
- // The last piece of content does not have a tab after it.
- if ($tabNum === $numTabs) {
- break;
- }
-
- // Process the tab that comes after the content.
- $lastCurrColumn = $currColumn;
- $tabNum++;
-
- // Move the pointer to the next tab stop.
- if (($currColumn % $tabWidth) === 0) {
- // This is the first tab, and we are already at a
- // tab stop, so this tab counts as a single space.
- $currColumn++;
- } else {
- $currColumn++;
- while (($currColumn % $tabWidth) !== 0) {
- $currColumn++;
- }
-
- $currColumn++;
- }
-
- $length += ($currColumn - $lastCurrColumn);
- $newContent .= $prefix.str_repeat($padding, ($currColumn - $lastCurrColumn - 1));
- }//end foreach
- }//end if
-
- $token['orig_content'] = $token['content'];
- $token['content'] = $newContent;
- $token['length'] = $length;
-
- }//end replaceTabsInToken()
-
-
- /**
- * Creates a map of brackets positions.
- *
- * @return void
- */
- private function createTokenMap()
- {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** START TOKEN MAP ***".PHP_EOL;
- }
-
- $squareOpeners = array();
- $curlyOpeners = array();
- $this->numTokens = count($this->tokens);
-
- $openers = array();
- $openOwner = null;
-
- for ($i = 0; $i < $this->numTokens; $i++) {
- /*
- Parenthesis mapping.
- */
-
- if (isset(Util\Tokens::$parenthesisOpeners[$this->tokens[$i]['code']]) === true) {
- $this->tokens[$i]['parenthesis_opener'] = null;
- $this->tokens[$i]['parenthesis_closer'] = null;
- $this->tokens[$i]['parenthesis_owner'] = $i;
- $openOwner = $i;
- } else if ($this->tokens[$i]['code'] === T_OPEN_PARENTHESIS) {
- $openers[] = $i;
- $this->tokens[$i]['parenthesis_opener'] = $i;
- if ($openOwner !== null) {
- $this->tokens[$openOwner]['parenthesis_opener'] = $i;
- $this->tokens[$i]['parenthesis_owner'] = $openOwner;
- $openOwner = null;
- }
- } else if ($this->tokens[$i]['code'] === T_CLOSE_PARENTHESIS) {
- // Did we set an owner for this set of parenthesis?
- $numOpeners = count($openers);
- if ($numOpeners !== 0) {
- $opener = array_pop($openers);
- if (isset($this->tokens[$opener]['parenthesis_owner']) === true) {
- $owner = $this->tokens[$opener]['parenthesis_owner'];
-
- $this->tokens[$owner]['parenthesis_closer'] = $i;
- $this->tokens[$i]['parenthesis_owner'] = $owner;
- }
-
- $this->tokens[$i]['parenthesis_opener'] = $opener;
- $this->tokens[$i]['parenthesis_closer'] = $i;
- $this->tokens[$opener]['parenthesis_closer'] = $i;
- }
- }//end if
-
- /*
- Bracket mapping.
- */
-
- switch ($this->tokens[$i]['code']) {
- case T_OPEN_SQUARE_BRACKET:
- $squareOpeners[] = $i;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", count($squareOpeners));
- echo str_repeat("\t", count($curlyOpeners));
- echo "=> Found square bracket opener at $i".PHP_EOL;
- }
- break;
- case T_OPEN_CURLY_BRACKET:
- if (isset($this->tokens[$i]['scope_closer']) === false) {
- $curlyOpeners[] = $i;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", count($squareOpeners));
- echo str_repeat("\t", count($curlyOpeners));
- echo "=> Found curly bracket opener at $i".PHP_EOL;
- }
- }
- break;
- case T_CLOSE_SQUARE_BRACKET:
- if (empty($squareOpeners) === false) {
- $opener = array_pop($squareOpeners);
- $this->tokens[$i]['bracket_opener'] = $opener;
- $this->tokens[$i]['bracket_closer'] = $i;
- $this->tokens[$opener]['bracket_opener'] = $opener;
- $this->tokens[$opener]['bracket_closer'] = $i;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", count($squareOpeners));
- echo str_repeat("\t", count($curlyOpeners));
- echo "\t=> Found square bracket closer at $i for $opener".PHP_EOL;
- }
- }
- break;
- case T_CLOSE_CURLY_BRACKET:
- if (empty($curlyOpeners) === false
- && isset($this->tokens[$i]['scope_opener']) === false
- ) {
- $opener = array_pop($curlyOpeners);
- $this->tokens[$i]['bracket_opener'] = $opener;
- $this->tokens[$i]['bracket_closer'] = $i;
- $this->tokens[$opener]['bracket_opener'] = $opener;
- $this->tokens[$opener]['bracket_closer'] = $i;
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", count($squareOpeners));
- echo str_repeat("\t", count($curlyOpeners));
- echo "\t=> Found curly bracket closer at $i for $opener".PHP_EOL;
- }
- }
- break;
- default:
- continue;
- }//end switch
- }//end for
-
- // Cleanup for any openers that we didn't find closers for.
- // This typically means there was a syntax error breaking things.
- foreach ($openers as $opener) {
- unset($this->tokens[$opener]['parenthesis_opener']);
- unset($this->tokens[$opener]['parenthesis_owner']);
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** END TOKEN MAP ***".PHP_EOL;
- }
-
- }//end createTokenMap()
-
-
- /**
- * Creates a map for the parenthesis tokens that surround other tokens.
- *
- * @return void
- */
- private function createParenthesisNestingMap()
- {
- $map = array();
- for ($i = 0; $i < $this->numTokens; $i++) {
- if (isset($this->tokens[$i]['parenthesis_opener']) === true
- && $i === $this->tokens[$i]['parenthesis_opener']
- ) {
- if (empty($map) === false) {
- $this->tokens[$i]['nested_parenthesis'] = $map;
- }
-
- if (isset($this->tokens[$i]['parenthesis_closer']) === true) {
- $map[$this->tokens[$i]['parenthesis_opener']]
- = $this->tokens[$i]['parenthesis_closer'];
- }
- } else if (isset($this->tokens[$i]['parenthesis_closer']) === true
- && $i === $this->tokens[$i]['parenthesis_closer']
- ) {
- array_pop($map);
- if (empty($map) === false) {
- $this->tokens[$i]['nested_parenthesis'] = $map;
- }
- } else {
- if (empty($map) === false) {
- $this->tokens[$i]['nested_parenthesis'] = $map;
- }
- }//end if
- }//end for
-
- }//end createParenthesisNestingMap()
-
-
- /**
- * Creates a scope map of tokens that open scopes.
- *
- * @return void
- * @see recurseScopeMap()
- */
- private function createScopeMap()
- {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** START SCOPE MAP ***".PHP_EOL;
- }
-
- for ($i = 0; $i < $this->numTokens; $i++) {
- // Check to see if the current token starts a new scope.
- if (isset($this->scopeOpeners[$this->tokens[$i]['code']]) === true) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$i]['type'];
- $content = Util\Common::prepareForOutput($this->tokens[$i]['content']);
- echo "\tStart scope map at $i:$type => $content".PHP_EOL;
- }
-
- if (isset($this->tokens[$i]['scope_condition']) === true) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t* already processed, skipping *".PHP_EOL;
- }
-
- continue;
- }
-
- $i = $this->recurseScopeMap($i);
- }//end if
- }//end for
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** END SCOPE MAP ***".PHP_EOL;
- }
-
- }//end createScopeMap()
-
-
- /**
- * Recurses though the scope openers to build a scope map.
- *
- * @param int $stackPtr The position in the stack of the token that
- * opened the scope (eg. an IF token or FOR token).
- * @param int $depth How many scope levels down we are.
- * @param int $ignore How many curly braces we are ignoring.
- *
- * @return int The position in the stack that closed the scope.
- */
- private function recurseScopeMap($stackPtr, $depth=1, &$ignore=0)
- {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "=> Begin scope map recursion at token $stackPtr with depth $depth".PHP_EOL;
- }
-
- $opener = null;
- $currType = $this->tokens[$stackPtr]['code'];
- $startLine = $this->tokens[$stackPtr]['line'];
-
- // We will need this to restore the value if we end up
- // returning a token ID that causes our calling function to go back
- // over already ignored braces.
- $originalIgnore = $ignore;
-
- // If the start token for this scope opener is the same as
- // the scope token, we have already found our opener.
- if (isset($this->scopeOpeners[$currType]['start'][$currType]) === true) {
- $opener = $stackPtr;
- }
-
- for ($i = ($stackPtr + 1); $i < $this->numTokens; $i++) {
- $tokenType = $this->tokens[$i]['code'];
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$i]['type'];
- $line = $this->tokens[$i]['line'];
- $content = Util\Common::prepareForOutput($this->tokens[$i]['content']);
-
- echo str_repeat("\t", $depth);
- echo "Process token $i on line $line [";
- if ($opener !== null) {
- echo "opener:$opener;";
- }
-
- if ($ignore > 0) {
- echo "ignore=$ignore;";
- }
-
- echo "]: $type => $content".PHP_EOL;
- }//end if
-
- // Very special case for IF statements in PHP that can be defined without
- // scope tokens. E.g., if (1) 1; 1 ? (1 ? 1 : 1) : 1;
- // If an IF statement below this one has an opener but no
- // keyword, the opener will be incorrectly assigned to this IF statement.
- // The same case also applies to USE statements, which don't have to have
- // openers, so a following USE statement can cause an incorrect brace match.
- if (($currType === T_IF || $currType === T_ELSE || $currType === T_USE)
- && $opener === null
- && ($this->tokens[$i]['code'] === T_SEMICOLON
- || $this->tokens[$i]['code'] === T_CLOSE_TAG)
- ) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- echo str_repeat("\t", $depth);
- if ($this->tokens[$i]['code'] === T_SEMICOLON) {
- $closerType = 'semicolon';
- } else {
- $closerType = 'close tag';
- }
-
- echo "=> Found $closerType before scope opener for $stackPtr:$type, bailing".PHP_EOL;
- }
-
- return $i;
- }
-
- // Special case for PHP control structures that have no braces.
- // If we find a curly brace closer before we find the opener,
- // we're not going to find an opener. That closer probably belongs to
- // a control structure higher up.
- if ($opener === null
- && $ignore === 0
- && $tokenType === T_CLOSE_CURLY_BRACKET
- && isset($this->scopeOpeners[$currType]['end'][$tokenType]) === true
- ) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- echo str_repeat("\t", $depth);
- echo "=> Found curly brace closer before scope opener for $stackPtr:$type, bailing".PHP_EOL;
- }
-
- return ($i - 1);
- }
-
- if ($opener !== null
- && (isset($this->tokens[$i]['scope_opener']) === false
- || $this->scopeOpeners[$this->tokens[$stackPtr]['code']]['shared'] === true)
- && isset($this->scopeOpeners[$currType]['end'][$tokenType]) === true
- ) {
- if ($ignore > 0 && $tokenType === T_CLOSE_CURLY_BRACKET) {
- // The last opening bracket must have been for a string
- // offset or alike, so let's ignore it.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* finished ignoring curly brace *'.PHP_EOL;
- }
-
- $ignore--;
- continue;
- } else if ($this->tokens[$opener]['code'] === T_OPEN_CURLY_BRACKET
- && $tokenType !== T_CLOSE_CURLY_BRACKET
- ) {
- // The opener is a curly bracket so the closer must be a curly bracket as well.
- // We ignore this closer to handle cases such as T_ELSE or T_ELSEIF being considered
- // a closer of T_IF when it should not.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- echo str_repeat("\t", $depth);
- echo "=> Ignoring non-curly scope closer for $stackPtr:$type".PHP_EOL;
- }
- } else {
- $scopeCloser = $i;
- $todo = array(
- $stackPtr,
- $opener,
- );
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- $closerType = $this->tokens[$scopeCloser]['type'];
- echo str_repeat("\t", $depth);
- echo "=> Found scope closer ($scopeCloser:$closerType) for $stackPtr:$type".PHP_EOL;
- }
-
- $validCloser = true;
- if (($this->tokens[$stackPtr]['code'] === T_IF || $this->tokens[$stackPtr]['code'] === T_ELSEIF)
- && ($tokenType === T_ELSE || $tokenType === T_ELSEIF)
- ) {
- // To be a closer, this token must have an opener.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "* closer needs to be tested *".PHP_EOL;
- }
-
- $i = self::recurseScopeMap($i, ($depth + 1), $ignore);
-
- if (isset($this->tokens[$scopeCloser]['scope_opener']) === false) {
- $validCloser = false;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "* closer is not valid (no opener found) *".PHP_EOL;
- }
- } else if ($this->tokens[$this->tokens[$scopeCloser]['scope_opener']]['code'] !== $this->tokens[$opener]['code']) {
- $validCloser = false;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- $type = $this->tokens[$this->tokens[$scopeCloser]['scope_opener']]['type'];
- $openerType = $this->tokens[$opener]['type'];
- echo "* closer is not valid (mismatched opener type; $type != $openerType) *".PHP_EOL;
- }
- } else if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo "* closer was valid *".PHP_EOL;
- }
- } else {
- // The closer was not processed, so we need to
- // complete that token as well.
- $todo[] = $scopeCloser;
- }//end if
-
- if ($validCloser === true) {
- foreach ($todo as $token) {
- $this->tokens[$token]['scope_condition'] = $stackPtr;
- $this->tokens[$token]['scope_opener'] = $opener;
- $this->tokens[$token]['scope_closer'] = $scopeCloser;
- }
-
- if ($this->scopeOpeners[$this->tokens[$stackPtr]['code']]['shared'] === true) {
- // As we are going back to where we started originally, restore
- // the ignore value back to its original value.
- $ignore = $originalIgnore;
- return $opener;
- } else if ($scopeCloser === $i
- && isset($this->scopeOpeners[$tokenType]) === true
- ) {
- // Unset scope_condition here or else the token will appear to have
- // already been processed, and it will be skipped. Normally we want that,
- // but in this case, the token is both a closer and an opener, so
- // it needs to act like an opener. This is also why we return the
- // token before this one; so the closer has a chance to be processed
- // a second time, but as an opener.
- unset($this->tokens[$scopeCloser]['scope_condition']);
- return ($i - 1);
- } else {
- return $i;
- }
- } else {
- continue;
- }//end if
- }//end if
- }//end if
-
- // Is this an opening condition ?
- if (isset($this->scopeOpeners[$tokenType]) === true) {
- if ($opener === null) {
- if ($tokenType === T_USE) {
- // PHP use keywords are special because they can be
- // used as blocks but also inline in function definitions.
- // So if we find them nested inside another opener, just skip them.
- continue;
- }
-
- if ($tokenType === T_FUNCTION
- && $this->tokens[$stackPtr]['code'] !== T_FUNCTION
- ) {
- // Probably a closure, so process it manually.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- echo str_repeat("\t", $depth);
- echo "=> Found function before scope opener for $stackPtr:$type, processing manually".PHP_EOL;
- }
-
- if (isset($this->tokens[$i]['scope_closer']) === true) {
- // We've already processed this closure.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* already processed, skipping *'.PHP_EOL;
- }
-
- $i = $this->tokens[$i]['scope_closer'];
- continue;
- }
-
- $i = self::recurseScopeMap($i, ($depth + 1), $ignore);
- continue;
- }//end if
-
- // Found another opening condition but still haven't
- // found our opener, so we are never going to find one.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- echo str_repeat("\t", $depth);
- echo "=> Found new opening condition before scope opener for $stackPtr:$type, ";
- }
-
- if (($this->tokens[$stackPtr]['code'] === T_IF
- || $this->tokens[$stackPtr]['code'] === T_ELSEIF
- || $this->tokens[$stackPtr]['code'] === T_ELSE)
- && ($this->tokens[$i]['code'] === T_ELSE
- || $this->tokens[$i]['code'] === T_ELSEIF)
- ) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "continuing".PHP_EOL;
- }
-
- return ($i - 1);
- } else {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "backtracking".PHP_EOL;
- }
-
- return $stackPtr;
- }
- }//end if
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* token is an opening condition *'.PHP_EOL;
- }
-
- $isShared = ($this->scopeOpeners[$tokenType]['shared'] === true);
-
- if (isset($this->tokens[$i]['scope_condition']) === true) {
- // We've been here before.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* already processed, skipping *'.PHP_EOL;
- }
-
- if ($isShared === false
- && isset($this->tokens[$i]['scope_closer']) === true
- ) {
- $i = $this->tokens[$i]['scope_closer'];
- }
-
- continue;
- } else if ($currType === $tokenType
- && $isShared === false
- && $opener === null
- ) {
- // We haven't yet found our opener, but we have found another
- // scope opener which is the same type as us, and we don't
- // share openers, so we will never find one.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* it was another token\'s opener, bailing *'.PHP_EOL;
- }
-
- return $stackPtr;
- } else {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* searching for opener *'.PHP_EOL;
- }
-
- if (isset($this->scopeOpeners[$tokenType]['end'][T_CLOSE_CURLY_BRACKET]) === true) {
- $oldIgnore = $ignore;
- $ignore = 0;
- }
-
- // PHP has a max nesting level for functions. Stop before we hit that limit
- // because too many loops means we've run into trouble anyway.
- if ($depth > 50) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* reached maximum nesting level; aborting *'.PHP_EOL;
- }
-
- throw new RuntimeException('Maximum nesting level reached; file could not be processed');
- }
-
- $oldDepth = $depth;
- if ($isShared === true
- && isset($this->scopeOpeners[$tokenType]['with'][$currType]) === true
- ) {
- // Don't allow the depth to increment because this is
- // possibly not a true nesting if we are sharing our closer.
- // This can happen, for example, when a SWITCH has a large
- // number of CASE statements with the same shared BREAK.
- $depth--;
- }
-
- $i = self::recurseScopeMap($i, ($depth + 1), $ignore);
- $depth = $oldDepth;
-
- if (isset($this->scopeOpeners[$tokenType]['end'][T_CLOSE_CURLY_BRACKET]) === true) {
- $ignore = $oldIgnore;
- }
- }//end if
- }//end if
-
- if (isset($this->scopeOpeners[$currType]['start'][$tokenType]) === true
- && $opener === null
- ) {
- if ($tokenType === T_OPEN_CURLY_BRACKET) {
- if (isset($this->tokens[$stackPtr]['parenthesis_closer']) === true
- && $i < $this->tokens[$stackPtr]['parenthesis_closer']
- ) {
- // We found a curly brace inside the condition of the
- // current scope opener, so it must be a string offset.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* ignoring curly brace inside condition *'.PHP_EOL;
- }
-
- $ignore++;
- } else {
- // Make sure this is actually an opener and not a
- // string offset (e.g., $var{0}).
- for ($x = ($i - 1); $x > 0; $x--) {
- if (isset(Util\Tokens::$emptyTokens[$this->tokens[$x]['code']]) === true) {
- continue;
- } else {
- // If the first non-whitespace/comment token looks like this
- // brace is a string offset, or this brace is mid-way through
- // a new statement, it isn't a scope opener.
- $disallowed = Util\Tokens::$assignmentTokens;
- $disallowed += array(
- T_VARIABLE => true,
- T_OBJECT_OPERATOR => true,
- T_COMMA => true,
- T_OPEN_PARENTHESIS => true,
- );
-
- if (isset($disallowed[$this->tokens[$x]['code']]) === true) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* ignoring curly brace *'.PHP_EOL;
- }
-
- $ignore++;
- }
-
- break;
- }//end if
- }//end for
- }//end if
- }//end if
-
- if ($ignore === 0 || $tokenType !== T_OPEN_CURLY_BRACKET) {
- // We found the opening scope token for $currType.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- echo str_repeat("\t", $depth);
- echo "=> Found scope opener for $stackPtr:$type".PHP_EOL;
- }
-
- $opener = $i;
- }
- } else if ($tokenType === T_OPEN_PARENTHESIS) {
- if (isset($this->tokens[$i]['parenthesis_owner']) === true) {
- $owner = $this->tokens[$i]['parenthesis_owner'];
- if (isset(Util\Tokens::$scopeOpeners[$this->tokens[$owner]['code']]) === true
- && isset($this->tokens[$i]['parenthesis_closer']) === true
- ) {
- // If we get into here, then we opened a parenthesis for
- // a scope (eg. an if or else if) so we need to update the
- // start of the line so that when we check to see
- // if the closing parenthesis is more than 3 lines away from
- // the statement, we check from the closing parenthesis.
- $startLine = $this->tokens[$this->tokens[$i]['parenthesis_closer']]['line'];
- }
- }
- } else if ($tokenType === T_OPEN_CURLY_BRACKET && $opener !== null) {
- // We opened something that we don't have a scope opener for.
- // Examples of this are curly brackets for string offsets etc.
- // We want to ignore this so that we don't have an invalid scope
- // map.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* ignoring curly brace *'.PHP_EOL;
- }
-
- $ignore++;
- } else if ($tokenType === T_CLOSE_CURLY_BRACKET && $ignore > 0) {
- // We found the end token for the opener we were ignoring.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* finished ignoring curly brace *'.PHP_EOL;
- }
-
- $ignore--;
- } else if ($opener === null
- && isset($this->scopeOpeners[$currType]) === true
- ) {
- // If we still haven't found the opener after 3 lines,
- // we're not going to find it, unless we know it requires
- // an opener (in which case we better keep looking) or the last
- // token was empty (in which case we'll just confirm there is
- // more code in this file and not just a big comment).
- if ($this->tokens[$i]['line'] >= ($startLine + 3)
- && isset(Util\Tokens::$emptyTokens[$this->tokens[($i - 1)]['code']]) === false
- ) {
- if ($this->scopeOpeners[$currType]['strict'] === true) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- $lines = ($this->tokens[$i]['line'] - $startLine);
- echo str_repeat("\t", $depth);
- echo "=> Still looking for $stackPtr:$type scope opener after $lines lines".PHP_EOL;
- }
- } else {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- echo str_repeat("\t", $depth);
- echo "=> Couldn't find scope opener for $stackPtr:$type, bailing".PHP_EOL;
- }
-
- return $stackPtr;
- }
- }
- } else if ($opener !== null
- && $tokenType !== T_BREAK
- && isset($this->endScopeTokens[$tokenType]) === true
- ) {
- if (isset($this->tokens[$i]['scope_condition']) === false) {
- if ($ignore > 0) {
- // We found the end token for the opener we were ignoring.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", $depth);
- echo '* finished ignoring curly brace *'.PHP_EOL;
- }
-
- $ignore--;
- } else {
- // We found a token that closes the scope but it doesn't
- // have a condition, so it belongs to another token and
- // our token doesn't have a closer, so pretend this is
- // the closer.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- echo str_repeat("\t", $depth);
- echo "=> Found (unexpected) scope closer for $stackPtr:$type".PHP_EOL;
- }
-
- foreach (array($stackPtr, $opener) as $token) {
- $this->tokens[$token]['scope_condition'] = $stackPtr;
- $this->tokens[$token]['scope_opener'] = $opener;
- $this->tokens[$token]['scope_closer'] = $i;
- }
-
- return ($i - 1);
- }//end if
- }//end if
- }//end if
- }//end for
-
- return $stackPtr;
-
- }//end recurseScopeMap()
-
-
- /**
- * Constructs the level map.
- *
- * The level map adds a 'level' index to each token which indicates the
- * depth that a token within a set of scope blocks. It also adds a
- * 'condition' index which is an array of the scope conditions that opened
- * each of the scopes - position 0 being the first scope opener.
- *
- * @return void
- */
- private function createLevelMap()
- {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** START LEVEL MAP ***".PHP_EOL;
- }
-
- $this->numTokens = count($this->tokens);
- $level = 0;
- $conditions = array();
- $lastOpener = null;
- $openers = array();
-
- for ($i = 0; $i < $this->numTokens; $i++) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$i]['type'];
- $line = $this->tokens[$i]['line'];
- $len = $this->tokens[$i]['length'];
- $col = $this->tokens[$i]['column'];
-
- $content = Util\Common::prepareForOutput($this->tokens[$i]['content']);
-
- echo str_repeat("\t", ($level + 1));
- echo "Process token $i on line $line [col:$col;len:$len;lvl:$level;";
- if (empty($conditions) !== true) {
- $condString = 'conds;';
- foreach ($conditions as $condition) {
- $condString .= Util\Tokens::tokenName($condition).',';
- }
-
- echo rtrim($condString, ',').';';
- }
-
- echo "]: $type => $content".PHP_EOL;
- }//end if
-
- $this->tokens[$i]['level'] = $level;
- $this->tokens[$i]['conditions'] = $conditions;
-
- if (isset($this->tokens[$i]['scope_condition']) === true) {
- // Check to see if this token opened the scope.
- if ($this->tokens[$i]['scope_opener'] === $i) {
- $stackPtr = $this->tokens[$i]['scope_condition'];
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- echo str_repeat("\t", ($level + 1));
- echo "=> Found scope opener for $stackPtr:$type".PHP_EOL;
- }
-
- $stackPtr = $this->tokens[$i]['scope_condition'];
-
- // If we find a scope opener that has a shared closer,
- // then we need to go back over the condition map that we
- // just created and fix ourselves as we just added some
- // conditions where there was none. This happens for T_CASE
- // statements that are using the same break statement.
- if ($lastOpener !== null && $this->tokens[$lastOpener]['scope_closer'] === $this->tokens[$i]['scope_closer']) {
- // This opener shares its closer with the previous opener,
- // but we still need to check if the two openers share their
- // closer with each other directly (like CASE and DEFAULT)
- // or if they are just sharing because one doesn't have a
- // closer (like CASE with no BREAK using a SWITCHes closer).
- $thisType = $this->tokens[$this->tokens[$i]['scope_condition']]['code'];
- $opener = $this->tokens[$lastOpener]['scope_condition'];
-
- $isShared = isset($this->scopeOpeners[$thisType]['with'][$this->tokens[$opener]['code']]);
-
- reset($this->scopeOpeners[$thisType]['end']);
- reset($this->scopeOpeners[$this->tokens[$opener]['code']]['end']);
- $sameEnd = (current($this->scopeOpeners[$thisType]['end']) === current($this->scopeOpeners[$this->tokens[$opener]['code']]['end']));
-
- if ($isShared === true && $sameEnd === true) {
- $badToken = $opener;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$badToken]['type'];
- echo str_repeat("\t", ($level + 1));
- echo "* shared closer, cleaning up $badToken:$type *".PHP_EOL;
- }
-
- for ($x = $this->tokens[$i]['scope_condition']; $x <= $i; $x++) {
- $oldConditions = $this->tokens[$x]['conditions'];
- $oldLevel = $this->tokens[$x]['level'];
- $this->tokens[$x]['level']--;
- unset($this->tokens[$x]['conditions'][$badToken]);
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$x]['type'];
- $oldConds = '';
- foreach ($oldConditions as $condition) {
- $oldConds .= Util\Tokens::tokenName($condition).',';
- }
-
- $oldConds = rtrim($oldConds, ',');
-
- $newConds = '';
- foreach ($this->tokens[$x]['conditions'] as $condition) {
- $newConds .= Util\Tokens::tokenName($condition).',';
- }
-
- $newConds = rtrim($newConds, ',');
-
- $newLevel = $this->tokens[$x]['level'];
- echo str_repeat("\t", ($level + 1));
- echo "* cleaned $x:$type *".PHP_EOL;
- echo str_repeat("\t", ($level + 2));
- echo "=> level changed from $oldLevel to $newLevel".PHP_EOL;
- echo str_repeat("\t", ($level + 2));
- echo "=> conditions changed from $oldConds to $newConds".PHP_EOL;
- }//end if
- }//end for
-
- unset($conditions[$badToken]);
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$badToken]['type'];
- echo str_repeat("\t", ($level + 1));
- echo "* token $badToken:$type removed from conditions array *".PHP_EOL;
- }
-
- unset($openers[$lastOpener]);
-
- $level--;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", ($level + 2));
- echo '* level decreased *'.PHP_EOL;
- }
- }//end if
- }//end if
-
- $level++;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", ($level + 1));
- echo '* level increased *'.PHP_EOL;
- }
-
- $conditions[$stackPtr] = $this->tokens[$stackPtr]['code'];
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$stackPtr]['type'];
- echo str_repeat("\t", ($level + 1));
- echo "* token $stackPtr:$type added to conditions array *".PHP_EOL;
- }
-
- $lastOpener = $this->tokens[$i]['scope_opener'];
- if ($lastOpener !== null) {
- $openers[$lastOpener] = $lastOpener;
- }
- } else if ($lastOpener !== null && $this->tokens[$lastOpener]['scope_closer'] === $i) {
- foreach (array_reverse($openers) as $opener) {
- if ($this->tokens[$opener]['scope_closer'] === $i) {
- $oldOpener = array_pop($openers);
- if (empty($openers) === false) {
- $lastOpener = array_pop($openers);
- $openers[$lastOpener] = $lastOpener;
- } else {
- $lastOpener = null;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$oldOpener]['type'];
- echo str_repeat("\t", ($level + 1));
- echo "=> Found scope closer for $oldOpener:$type".PHP_EOL;
- }
-
- $oldCondition = array_pop($conditions);
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", ($level + 1));
- echo '* token '.Util\Tokens::tokenName($oldCondition).' removed from conditions array *'.PHP_EOL;
- }
-
- // Make sure this closer actually belongs to us.
- // Either the condition also has to think this is the
- // closer, or it has to allow sharing with us.
- $condition = $this->tokens[$this->tokens[$i]['scope_condition']]['code'];
- if ($condition !== $oldCondition) {
- if (isset($this->scopeOpeners[$oldCondition]['with'][$condition]) === false) {
- $badToken = $this->tokens[$oldOpener]['scope_condition'];
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = Util\Tokens::tokenName($oldCondition);
- echo str_repeat("\t", ($level + 1));
- echo "* scope closer was bad, cleaning up $badToken:$type *".PHP_EOL;
- }
-
- for ($x = ($oldOpener + 1); $x <= $i; $x++) {
- $oldConditions = $this->tokens[$x]['conditions'];
- $oldLevel = $this->tokens[$x]['level'];
- $this->tokens[$x]['level']--;
- unset($this->tokens[$x]['conditions'][$badToken]);
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- $type = $this->tokens[$x]['type'];
- $oldConds = '';
- foreach ($oldConditions as $condition) {
- $oldConds .= Util\Tokens::tokenName($condition).',';
- }
-
- $oldConds = rtrim($oldConds, ',');
-
- $newConds = '';
- foreach ($this->tokens[$x]['conditions'] as $condition) {
- $newConds .= Util\Tokens::tokenName($condition).',';
- }
-
- $newConds = rtrim($newConds, ',');
-
- $newLevel = $this->tokens[$x]['level'];
- echo str_repeat("\t", ($level + 1));
- echo "* cleaned $x:$type *".PHP_EOL;
- echo str_repeat("\t", ($level + 2));
- echo "=> level changed from $oldLevel to $newLevel".PHP_EOL;
- echo str_repeat("\t", ($level + 2));
- echo "=> conditions changed from $oldConds to $newConds".PHP_EOL;
- }//end if
- }//end for
- }//end if
- }//end if
-
- $level--;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo str_repeat("\t", ($level + 2));
- echo '* level decreased *'.PHP_EOL;
- }
-
- $this->tokens[$i]['level'] = $level;
- $this->tokens[$i]['conditions'] = $conditions;
- }//end if
- }//end foreach
- }//end if
- }//end if
- }//end for
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t*** END LEVEL MAP ***".PHP_EOL;
- }
-
- }//end createLevelMap()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Cache.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Cache.php
deleted file mode 100644
index 08ab53e9..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Cache.php
+++ /dev/null
@@ -1,328 +0,0 @@
-<?php
-/**
- * Function for caching between runs.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Util;
-
-use PHP_CodeSniffer\Autoload;
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Util\Common;
-
-class Cache
-{
-
- /**
- * The filesystem location of the cache file.
- *
- * @var void
- */
- private static $path = '';
-
- /**
- * The cached data.
- *
- * @var array<string, mixed>
- */
- private static $cache = array();
-
-
- /**
- * Loads existing cache data for the run, if any.
- *
- * @param \PHP_CodeSniffer\Ruleset $ruleset The ruleset used for the run.
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- *
- * @return void
- */
- public static function load(Ruleset $ruleset, Config $config)
- {
- // Look at every loaded sniff class so far and use their file contents
- // to generate a hash for the code used during the run.
- // At this point, the loaded class list contains the core PHPCS code
- // and all sniffs that have been loaded as part of the run.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo PHP_EOL."\tGenerating loaded file list for code hash".PHP_EOL;
- }
-
- $codeHash = '';
- $classes = array_keys(Autoload::getLoadedClasses());
- sort($classes);
-
- $installDir = dirname(__DIR__);
- $installDirLen = strlen($installDir);
- $standardDir = $installDir.DIRECTORY_SEPARATOR.'Standards';
- $standardDirLen = strlen($standardDir);
- foreach ($classes as $file) {
- if (substr($file, 0, $standardDirLen) !== $standardDir) {
- if (substr($file, 0, $installDirLen) === $installDir) {
- // We are only interested in sniffs here.
- continue;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t=> external file: $file".PHP_EOL;
- }
- } else if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t=> internal sniff: $file".PHP_EOL;
- }
-
- $codeHash .= md5_file($file);
- }
-
- // Add the content of the used rulesets to the hash so that sniff setting
- // changes in the ruleset invalidate the cache.
- $rulesets = $ruleset->paths;
- sort($rulesets);
- foreach ($rulesets as $file) {
- if (substr($file, 0, $standardDirLen) !== $standardDir) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t=> external ruleset: $file".PHP_EOL;
- }
- } else if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t=> internal ruleset: $file".PHP_EOL;
- }
-
- $codeHash .= md5_file($file);
- }
-
- // Go through the core PHPCS code and add those files to the file
- // hash. This ensures that core PHPCS changes will also invalidate the cache.
- // Note that we ignore sniffs here, and any files that don't affect
- // the outcome of the run.
- $di = new \RecursiveIteratorIterator(
- new \RecursiveDirectoryIterator($installDir),
- 0,
- \RecursiveIteratorIterator::CATCH_GET_CHILD
- );
-
- $di = new \RecursiveDirectoryIterator($installDir);
- $filter = new \RecursiveCallbackFilterIterator(
- $di,
- function ($file, $key, $iterator) {
- // Skip hidden files.
- $filename = $file->getFilename();
- if (substr($filename, 0, 1) === '.') {
- return false;
- }
-
- $filePath = Common::realpath($file->getPathname());
- if ($filePath === false) {
- return false;
- }
-
- if (is_dir($filePath) === true
- && ($filename === 'Standards'
- || $filename === 'Exceptions'
- || $filename === 'Reports'
- || $filename === 'Generators')
- ) {
- return false;
- }
-
- return true;
- }
- );
-
- $iterator = new \RecursiveIteratorIterator($filter);
- foreach ($iterator as $file) {
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t=> core file: $file".PHP_EOL;
- }
-
- $codeHash .= md5_file($file);
- }
-
- $codeHash = md5($codeHash);
-
- // Along with the code hash, use various settings that can affect
- // the results of a run to create a new hash. This hash will be used
- // in the cache file name.
- $rulesetHash = md5(var_export($ruleset->ignorePatterns, true).var_export($ruleset->includePatterns, true));
- $configData = array(
- 'tabWidth' => $config->tabWidth,
- 'encoding' => $config->encoding,
- 'recordErrors' => $config->recordErrors,
- 'annotations' => $config->annotations,
- 'codeHash' => $codeHash,
- 'rulesetHash' => $rulesetHash,
- );
-
- $configString = implode(',', $configData);
- $cacheHash = substr(sha1($configString), 0, 12);
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\tGenerating cache key data".PHP_EOL;
- echo "\t\t=> tabWidth: ".$configData['tabWidth'].PHP_EOL;
- echo "\t\t=> encoding: ".$configData['encoding'].PHP_EOL;
- echo "\t\t=> recordErrors: ".(int) $configData['recordErrors'].PHP_EOL;
- echo "\t\t=> annotations: ".(int) $configData['annotations'].PHP_EOL;
- echo "\t\t=> codeHash: ".$configData['codeHash'].PHP_EOL;
- echo "\t\t=> rulesetHash: ".$configData['rulesetHash'].PHP_EOL;
- echo "\t\t=> cacheHash: $cacheHash".PHP_EOL;
- }
-
- if ($config->cacheFile !== null) {
- $cacheFile = $config->cacheFile;
- } else {
- // Determine the common paths for all files being checked.
- // We can use this to locate an existing cache file, or to
- // determine where to create a new one.
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\tChecking possible cache file paths".PHP_EOL;
- }
-
- $paths = array();
- foreach ($config->files as $file) {
- $file = Common::realpath($file);
- while ($file !== DIRECTORY_SEPARATOR) {
- if (isset($paths[$file]) === false) {
- $paths[$file] = 1;
- } else {
- $paths[$file]++;
- }
-
- $lastFile = $file;
- $file = dirname($file);
- if ($file === $lastFile) {
- // Just in case something went wrong,
- // we don't want to end up in an infinite loop.
- break;
- }
- }
- }
-
- ksort($paths);
- $paths = array_reverse($paths);
-
- $numFiles = count($config->files);
- $tmpDir = sys_get_temp_dir();
- $cacheFile = null;
- foreach ($paths as $file => $count) {
- if ($count !== $numFiles) {
- unset($paths[$file]);
- continue;
- }
-
- $fileHash = substr(sha1($file), 0, 12);
- $testFile = $tmpDir.DIRECTORY_SEPARATOR."phpcs.$fileHash.$cacheHash.cache";
- if ($cacheFile === null) {
- // This will be our default location if we can't find
- // an existing file.
- $cacheFile = $testFile;
- }
-
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t\t=> $testFile".PHP_EOL;
- echo "\t\t\t * based on shared location: $file *".PHP_EOL;
- }
-
- if (file_exists($testFile) === true) {
- $cacheFile = $testFile;
- break;
- }
- }//end foreach
-
- if ($cacheFile === null) {
- // Unlikely, but just in case $paths is empty for some reason.
- $cacheFile = $tmpDir.DIRECTORY_SEPARATOR."phpcs.$cacheHash.cache";
- }
- }//end if
-
- self::$path = $cacheFile;
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t=> Using cache file: ".self::$path.PHP_EOL;
- }
-
- if (file_exists(self::$path) === true) {
- self::$cache = json_decode(file_get_contents(self::$path), true);
-
- // Verify the contents of the cache file.
- if (self::$cache['config'] !== $configData) {
- self::$cache = array();
- if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t* cache was invalid and has been cleared *".PHP_EOL;
- }
- }
- } else if (PHP_CODESNIFFER_VERBOSITY > 1) {
- echo "\t* cache file does not exist *".PHP_EOL;
- }
-
- self::$cache['config'] = $configData;
-
- }//end load()
-
-
- /**
- * Saves the current cache to the filesystem.
- *
- * @return void
- */
- public static function save()
- {
- file_put_contents(self::$path, json_encode(self::$cache));
-
- }//end save()
-
-
- /**
- * Retrieves a single entry from the cache.
- *
- * @param string $key The key of the data to get. If NULL,
- * everything in the cache is returned.
- *
- * @return mixed
- */
- public static function get($key=null)
- {
- if ($key === null) {
- return self::$cache;
- }
-
- if (isset(self::$cache[$key]) === true) {
- return self::$cache[$key];
- }
-
- return false;
-
- }//end get()
-
-
- /**
- * Retrieves a single entry from the cache.
- *
- * @param string $key The key of the data to set. If NULL,
- * sets the entire cache.
- * @param mixed $value The value to set.
- *
- * @return void
- */
- public static function set($key, $value)
- {
- if ($key === null) {
- self::$cache = $value;
- } else {
- self::$cache[$key] = $value;
- }
-
- }//end set()
-
-
- /**
- * Retrieves the number of cache entries.
- *
- * @return int
- */
- public static function getSize()
- {
- return (count(self::$cache) - 1);
-
- }//end getSize()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Common.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Common.php
deleted file mode 100644
index ca8b5b81..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Common.php
+++ /dev/null
@@ -1,459 +0,0 @@
-<?php
-/**
- * Basic util functions.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Util;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-
-class Common
-{
-
- /**
- * An array of variable types for param/var we will check.
- *
- * @var string[]
- */
- public static $allowedTypes = array(
- 'array',
- 'boolean',
- 'float',
- 'integer',
- 'mixed',
- 'object',
- 'string',
- 'resource',
- 'callable',
- );
-
-
- /**
- * Return TRUE if the path is a PHAR file.
- *
- * @param string $path The path to use.
- *
- * @return mixed
- */
- public static function isPharFile($path)
- {
- if (strpos($path, 'phar://') === 0) {
- return true;
- }
-
- return false;
-
- }//end isPharFile()
-
-
- /**
- * CodeSniffer alternative for realpath.
- *
- * Allows for PHAR support.
- *
- * @param string $path The path to use.
- *
- * @return mixed
- */
- public static function realpath($path)
- {
- // Support the path replacement of ~ with the user's home directory.
- if (substr($path, 0, 2) === '~/') {
- $homeDir = getenv('HOME');
- if ($homeDir !== false) {
- $path = $homeDir.substr($path, 1);
- }
- }
-
- // No extra work needed if this is not a phar file.
- if (self::isPharFile($path) === false) {
- return realpath($path);
- }
-
- // Before trying to break down the file path,
- // check if it exists first because it will mostly not
- // change after running the below code.
- if (file_exists($path) === true) {
- return $path;
- }
-
- $phar = \Phar::running(false);
- $extra = str_replace('phar://'.$phar, '', $path);
- $path = realpath($phar);
- if ($path === false) {
- return false;
- }
-
- $path = 'phar://'.$path.$extra;
- if (file_exists($path) === true) {
- return $path;
- }
-
- return false;
-
- }//end realpath()
-
-
- /**
- * Removes a base path from the front of a file path.
- *
- * @param string $path The path of the file.
- * @param string $basepath The base path to remove. This should not end
- * with a directory separator.
- *
- * @return string
- */
- public static function stripBasepath($path, $basepath)
- {
- if (empty($basepath) === true) {
- return $path;
- }
-
- $basepathLen = strlen($basepath);
- if (substr($path, 0, $basepathLen) === $basepath) {
- $path = substr($path, $basepathLen);
- }
-
- $path = ltrim($path, DIRECTORY_SEPARATOR);
- if ($path === '') {
- $path = '.';
- }
-
- return $path;
-
- }//end stripBasepath()
-
-
- /**
- * Detects the EOL character being used in a string.
- *
- * @param string $contents The contents to check.
- *
- * @return string
- */
- public static function detectLineEndings($contents)
- {
- if (preg_match("/\r\n?|\n/", $contents, $matches) !== 1) {
- // Assume there are no newlines.
- $eolChar = "\n";
- } else {
- $eolChar = $matches[0];
- }
-
- return $eolChar;
-
- }//end detectLineEndings()
-
-
- /**
- * Prepares token content for output to screen.
- *
- * Replaces invisible characters so they are visible. On non-Windows
- * OSes it will also colour the invisible characters.
- *
- * @param string $content The content to prepare.
- * @param string[] $exclude A list of characters to leave invisible.
- * Can contain \r, \n, \t and a space.
- *
- * @return string
- */
- public static function prepareForOutput($content, $exclude=array())
- {
- if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
- if (in_array("\r", $exclude) === false) {
- $content = str_replace("\r", '\r', $content);
- }
-
- if (in_array("\n", $exclude) === false) {
- $content = str_replace("\n", '\n', $content);
- }
-
- if (in_array("\t", $exclude) === false) {
- $content = str_replace("\t", '\t', $content);
- }
- } else {
- if (in_array("\r", $exclude) === false) {
- $content = str_replace("\r", "\033[30;1m\\r\033[0m", $content);
- }
-
- if (in_array("\n", $exclude) === false) {
- $content = str_replace("\n", "\033[30;1m\\n\033[0m", $content);
- }
-
- if (in_array("\t", $exclude) === false) {
- $content = str_replace("\t", "\033[30;1m\\t\033[0m", $content);
- }
-
- if (in_array(' ', $exclude) === false) {
- $content = str_replace(' ', "\033[30;1m·\033[0m", $content);
- }
- }//end if
-
- return $content;
-
- }//end prepareForOutput()
-
-
- /**
- * Returns true if the specified string is in the camel caps format.
- *
- * @param string $string The string the verify.
- * @param boolean $classFormat If true, check to see if the string is in the
- * class format. Class format strings must start
- * with a capital letter and contain no
- * underscores.
- * @param boolean $public If true, the first character in the string
- * must be an a-z character. If false, the
- * character must be an underscore. This
- * argument is only applicable if $classFormat
- * is false.
- * @param boolean $strict If true, the string must not have two capital
- * letters next to each other. If false, a
- * relaxed camel caps policy is used to allow
- * for acronyms.
- *
- * @return boolean
- */
- public static function isCamelCaps(
- $string,
- $classFormat=false,
- $public=true,
- $strict=true
- ) {
- // Check the first character first.
- if ($classFormat === false) {
- $legalFirstChar = '';
- if ($public === false) {
- $legalFirstChar = '[_]';
- }
-
- if ($strict === false) {
- // Can either start with a lowercase letter, or multiple uppercase
- // in a row, representing an acronym.
- $legalFirstChar .= '([A-Z]{2,}|[a-z])';
- } else {
- $legalFirstChar .= '[a-z]';
- }
- } else {
- $legalFirstChar = '[A-Z]';
- }
-
- if (preg_match("/^$legalFirstChar/", $string) === 0) {
- return false;
- }
-
- // Check that the name only contains legal characters.
- $legalChars = 'a-zA-Z0-9';
- if (preg_match("|[^$legalChars]|", substr($string, 1)) > 0) {
- return false;
- }
-
- if ($strict === true) {
- // Check that there are not two capital letters next to each other.
- $length = strlen($string);
- $lastCharWasCaps = $classFormat;
-
- for ($i = 1; $i < $length; $i++) {
- $ascii = ord($string{$i});
- if ($ascii >= 48 && $ascii <= 57) {
- // The character is a number, so it cant be a capital.
- $isCaps = false;
- } else {
- if (strtoupper($string{$i}) === $string{$i}) {
- $isCaps = true;
- } else {
- $isCaps = false;
- }
- }
-
- if ($isCaps === true && $lastCharWasCaps === true) {
- return false;
- }
-
- $lastCharWasCaps = $isCaps;
- }
- }//end if
-
- return true;
-
- }//end isCamelCaps()
-
-
- /**
- * Returns true if the specified string is in the underscore caps format.
- *
- * @param string $string The string to verify.
- *
- * @return boolean
- */
- public static function isUnderscoreName($string)
- {
- // If there are space in the name, it can't be valid.
- if (strpos($string, ' ') !== false) {
- return false;
- }
-
- $validName = true;
- $nameBits = explode('_', $string);
-
- if (preg_match('|^[A-Z]|', $string) === 0) {
- // Name does not begin with a capital letter.
- $validName = false;
- } else {
- foreach ($nameBits as $bit) {
- if ($bit === '') {
- continue;
- }
-
- if ($bit{0} !== strtoupper($bit{0})) {
- $validName = false;
- break;
- }
- }
- }
-
- return $validName;
-
- }//end isUnderscoreName()
-
-
- /**
- * Returns a valid variable type for param/var tag.
- *
- * If type is not one of the standard type, it must be a custom type.
- * Returns the correct type name suggestion if type name is invalid.
- *
- * @param string $varType The variable type to process.
- *
- * @return string
- */
- public static function suggestType($varType)
- {
- if ($varType === '') {
- return '';
- }
-
- if (in_array($varType, self::$allowedTypes) === true) {
- return $varType;
- } else {
- $lowerVarType = strtolower($varType);
- switch ($lowerVarType) {
- case 'bool':
- case 'boolean':
- return 'boolean';
- case 'double':
- case 'real':
- case 'float':
- return 'float';
- case 'int':
- case 'integer':
- return 'integer';
- case 'array()':
- case 'array':
- return 'array';
- }//end switch
-
- if (strpos($lowerVarType, 'array(') !== false) {
- // Valid array declaration:
- // array, array(type), array(type1 => type2).
- $matches = array();
- $pattern = '/^array\(\s*([^\s^=^>]*)(\s*=>\s*(.*))?\s*\)/i';
- if (preg_match($pattern, $varType, $matches) !== 0) {
- $type1 = '';
- if (isset($matches[1]) === true) {
- $type1 = $matches[1];
- }
-
- $type2 = '';
- if (isset($matches[3]) === true) {
- $type2 = $matches[3];
- }
-
- $type1 = self::suggestType($type1);
- $type2 = self::suggestType($type2);
- if ($type2 !== '') {
- $type2 = ' => '.$type2;
- }
-
- return "array($type1$type2)";
- } else {
- return 'array';
- }//end if
- } else if (in_array($lowerVarType, self::$allowedTypes) === true) {
- // A valid type, but not lower cased.
- return $lowerVarType;
- } else {
- // Must be a custom type name.
- return $varType;
- }//end if
- }//end if
-
- }//end suggestType()
-
-
- /**
- * Given a sniff class name, returns the code for the sniff.
- *
- * @param string $sniffClass The fully qualified sniff class name.
- *
- * @return string
- */
- public static function getSniffCode($sniffClass)
- {
- $parts = explode('\\', $sniffClass);
- $sniff = array_pop($parts);
-
- if (substr($sniff, -5) === 'Sniff') {
- // Sniff class name.
- $sniff = substr($sniff, 0, -5);
- } else {
- // Unit test class name.
- $sniff = substr($sniff, 0, -8);
- }
-
- $category = array_pop($parts);
- $sniffDir = array_pop($parts);
- $standard = array_pop($parts);
- $code = $standard.'.'.$category.'.'.$sniff;
- return $code;
-
- }//end getSniffCode()
-
-
- /**
- * Removes project-specific information from a sniff class name.
- *
- * @param string $sniffClass The fully qualified sniff class name.
- *
- * @return string
- */
- public static function cleanSniffClass($sniffClass)
- {
- $newName = strtolower($sniffClass);
-
- $sniffPos = strrpos($newName, '\sniffs\\');
- if ($sniffPos === false) {
- // Nothing we can do as it isn't in a known format.
- return $newName;
- }
-
- $end = (strlen($newName) - $sniffPos + 1);
- $start = strrpos($newName, '\\', ($end * -1));
-
- if ($start === false) {
- // Nothing needs to be cleaned.
- return $newName;
- }
-
- $newName = substr($newName, ($start + 1));
- return $newName;
-
- }//end cleanSniffClass()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Standards.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Standards.php
deleted file mode 100644
index 7dc18ae1..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Standards.php
+++ /dev/null
@@ -1,314 +0,0 @@
-<?php
-/**
- * Functions for helping process standards.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Util;
-
-use PHP_CodeSniffer\Config;
-
-class Standards
-{
-
-
- /**
- * Get a list paths where standards are installed.
- *
- * @return array
- */
- public static function getInstalledStandardPaths()
- {
- $ds = DIRECTORY_SEPARATOR;
-
- $installedPaths = array(dirname(dirname(__DIR__)).$ds.'src'.$ds.'Standards');
- $configPaths = Config::getConfigData('installed_paths');
- if ($configPaths !== null) {
- $installedPaths = array_merge($installedPaths, explode(',', $configPaths));
- }
-
- $resolvedInstalledPaths = array();
- foreach ($installedPaths as $installedPath) {
- if (substr($installedPath, 0, 1) === '.') {
- $installedPath = Common::realPath(__DIR__.$ds.'..'.$ds.'..'.$ds.$installedPath);
- }
-
- $resolvedInstalledPaths[] = $installedPath;
- }
-
- return $resolvedInstalledPaths;
-
- }//end getInstalledStandardPaths()
-
-
- /**
- * Get the details of all coding standards installed.
- *
- * Coding standards are directories located in the
- * CodeSniffer/Standards directory. Valid coding standards
- * include a Sniffs subdirectory.
- *
- * The details returned for each standard are:
- * - path: the path to the coding standard's main directory
- * - name: the name of the coding standard, as sourced from the ruleset.xml file
- * - namespace: the namespace used by the coding standard, as sourced from the ruleset.xml file
- *
- * If you only need the paths to the installed standards,
- * use getInstalledStandardPaths() instead as it performs less work to
- * retrieve coding standard names.
- *
- * @param boolean $includeGeneric If true, the special "Generic"
- * coding standard will be included
- * if installed.
- * @param string $standardsDir A specific directory to look for standards
- * in. If not specified, PHP_CodeSniffer will
- * look in its default locations.
- *
- * @return array
- * @see getInstalledStandardPaths()
- */
- public static function getInstalledStandardDetails(
- $includeGeneric=false,
- $standardsDir=''
- ) {
- $rulesets = array();
-
- if ($standardsDir === '') {
- $installedPaths = self::getInstalledStandardPaths();
- } else {
- $installedPaths = array($standardsDir);
- }
-
- foreach ($installedPaths as $standardsDir) {
- // Check if the installed dir is actually a standard itself.
- $csFile = $standardsDir.'/ruleset.xml';
- if (is_file($csFile) === true) {
- $rulesets[] = $csFile;
- continue;
- }
-
- $di = new \DirectoryIterator($standardsDir);
- foreach ($di as $file) {
- if ($file->isDir() === true && $file->isDot() === false) {
- $filename = $file->getFilename();
-
- // Ignore the special "Generic" standard.
- if ($includeGeneric === false && $filename === 'Generic') {
- continue;
- }
-
- // Valid coding standard dirs include a ruleset.
- $csFile = $file->getPathname().'/ruleset.xml';
- if (is_file($csFile) === true) {
- $rulesets[] = $csFile;
- }
- }
- }
- }//end foreach
-
- $installedStandards = array();
-
- foreach ($rulesets as $rulesetPath) {
- $ruleset = simplexml_load_string(file_get_contents($rulesetPath));
- if ($ruleset === false) {
- continue;
- }
-
- $standardName = (string) $ruleset['name'];
- $dirname = basename(dirname($rulesetPath));
-
- if (isset($ruleset['namespace']) === true) {
- $namespace = (string) $ruleset['namespace'];
- } else {
- $namespace = $dirname;
- }
-
- $installedStandards[$dirname] = array(
- 'path' => dirname($rulesetPath),
- 'name' => $standardName,
- 'namespace' => $namespace,
- );
- }//end foreach
-
- return $installedStandards;
-
- }//end getInstalledStandardDetails()
-
-
- /**
- * Get a list of all coding standards installed.
- *
- * Coding standards are directories located in the
- * CodeSniffer/Standards directory. Valid coding standards
- * include a Sniffs subdirectory.
- *
- * @param boolean $includeGeneric If true, the special "Generic"
- * coding standard will be included
- * if installed.
- * @param string $standardsDir A specific directory to look for standards
- * in. If not specified, PHP_CodeSniffer will
- * look in its default locations.
- *
- * @return array
- * @see isInstalledStandard()
- */
- public static function getInstalledStandards(
- $includeGeneric=false,
- $standardsDir=''
- ) {
- $installedStandards = array();
-
- if ($standardsDir === '') {
- $installedPaths = self::getInstalledStandardPaths();
- } else {
- $installedPaths = array($standardsDir);
- }
-
- foreach ($installedPaths as $standardsDir) {
- // Check if the installed dir is actually a standard itself.
- $csFile = $standardsDir.'/ruleset.xml';
- if (is_file($csFile) === true) {
- $installedStandards[] = basename($standardsDir);
- continue;
- }
-
- if (is_dir($standardsDir) === false) {
- // Doesn't exist.
- continue;
- }
-
- $di = new \DirectoryIterator($standardsDir);
- foreach ($di as $file) {
- if ($file->isDir() === true && $file->isDot() === false) {
- $filename = $file->getFilename();
-
- // Ignore the special "Generic" standard.
- if ($includeGeneric === false && $filename === 'Generic') {
- continue;
- }
-
- // Valid coding standard dirs include a ruleset.
- $csFile = $file->getPathname().'/ruleset.xml';
- if (is_file($csFile) === true) {
- $installedStandards[] = $filename;
- }
- }
- }
- }//end foreach
-
- return $installedStandards;
-
- }//end getInstalledStandards()
-
-
- /**
- * Determine if a standard is installed.
- *
- * Coding standards are directories located in the
- * CodeSniffer/Standards directory. Valid coding standards
- * include a ruleset.xml file.
- *
- * @param string $standard The name of the coding standard.
- *
- * @return boolean
- * @see getInstalledStandards()
- */
- public static function isInstalledStandard($standard)
- {
- $path = self::getInstalledStandardPath($standard);
- if ($path !== null && strpos($path, 'ruleset.xml') !== false) {
- return true;
- } else {
- // This could be a custom standard, installed outside our
- // standards directory.
- $standard = Common::realPath($standard);
-
- // Might be an actual ruleset file itUtil.
- // If it has an XML extension, let's at least try it.
- if (is_file($standard) === true
- && (substr(strtolower($standard), -4) === '.xml'
- || substr(strtolower($standard), -9) === '.xml.dist')
- ) {
- return true;
- }
-
- // If it is a directory with a ruleset.xml file in it,
- // it is a standard.
- $ruleset = rtrim($standard, ' /\\').DIRECTORY_SEPARATOR.'ruleset.xml';
- if (is_file($ruleset) === true) {
- return true;
- }
- }//end if
-
- return false;
-
- }//end isInstalledStandard()
-
-
- /**
- * Return the path of an installed coding standard.
- *
- * Coding standards are directories located in the
- * CodeSniffer/Standards directory. Valid coding standards
- * include a ruleset.xml file.
- *
- * @param string $standard The name of the coding standard.
- *
- * @return string|null
- */
- public static function getInstalledStandardPath($standard)
- {
- $installedPaths = self::getInstalledStandardPaths();
- foreach ($installedPaths as $installedPath) {
- $standardPath = $installedPath.DIRECTORY_SEPARATOR.$standard;
- if (file_exists($standardPath) === false && basename($installedPath) === $standard) {
- $standardPath = $installedPath;
- }
-
- $path = Common::realpath($standardPath.DIRECTORY_SEPARATOR.'ruleset.xml');
-
- if (is_file($path) === true) {
- return $path;
- } else if (Common::isPharFile($standardPath) === true) {
- $path = Common::realpath($standardPath);
- if ($path !== false) {
- return $path;
- }
- }
- }
-
- return null;
-
- }//end getInstalledStandardPath()
-
-
- /**
- * Prints out a list of installed coding standards.
- *
- * @return void
- */
- public static function printInstalledStandards()
- {
- $installedStandards = self::getInstalledStandards();
- $numStandards = count($installedStandards);
-
- if ($numStandards === 0) {
- echo 'No coding standards are installed.'.PHP_EOL;
- } else {
- $lastStandard = array_pop($installedStandards);
- if ($numStandards === 1) {
- echo "The only coding standard installed is $lastStandard".PHP_EOL;
- } else {
- $standardList = implode(', ', $installedStandards);
- $standardList .= ' and '.$lastStandard;
- echo 'The installed coding standards are '.$standardList.PHP_EOL;
- }
- }
-
- }//end printInstalledStandards()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Timing.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Timing.php
deleted file mode 100644
index 26e0151c..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Timing.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * Timing functions for the run.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Util;
-
-class Timing
-{
-
- /**
- * The start time of the run.
- *
- * @var float
- */
- private static $startTime;
-
- /**
- * Used to make sure we only print the run time once per run.
- *
- * @var boolean
- */
- private static $printed = false;
-
-
- /**
- * Start recording time for the run.
- *
- * @return void
- */
- public static function startTiming()
- {
-
- self::$startTime = microtime(true);
-
- }//end startTiming()
-
-
- /**
- * Print information about the run.
- *
- * @param boolean $force If TRUE, prints the output even if it has
- * already been printed during the run.
- *
- * @return void
- */
- public static function printRunTime($force=false)
- {
- if ($force === false && self::$printed === true) {
- // A double call.
- return;
- }
-
- if (self::$startTime === null) {
- // Timing was never started.
- return;
- }
-
- $time = ((microtime(true) - self::$startTime) * 1000);
-
- if ($time > 60000) {
- $mins = floor($time / 60000);
- $secs = round((($time % 60000) / 1000), 2);
- $time = $mins.' mins';
- if ($secs !== 0) {
- $time .= ", $secs secs";
- }
- } else if ($time > 1000) {
- $time = round(($time / 1000), 2).' secs';
- } else {
- $time = round($time).'ms';
- }
-
- $mem = round((memory_get_peak_usage(true) / (1024 * 1024)), 2).'Mb';
- echo "Time: $time; Memory: $mem".PHP_EOL.PHP_EOL;
-
- self::$printed = true;
-
- }//end printRunTime()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Tokens.php b/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Tokens.php
deleted file mode 100644
index b64078ac..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/src/Util/Tokens.php
+++ /dev/null
@@ -1,598 +0,0 @@
-<?php
-/**
- * Stores weightings and groupings of tokens.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Util;
-
-define('T_NONE', 'PHPCS_T_NONE');
-define('T_OPEN_CURLY_BRACKET', 'PHPCS_T_OPEN_CURLY_BRACKET');
-define('T_CLOSE_CURLY_BRACKET', 'PHPCS_T_CLOSE_CURLY_BRACKET');
-define('T_OPEN_SQUARE_BRACKET', 'PHPCS_T_OPEN_SQUARE_BRACKET');
-define('T_CLOSE_SQUARE_BRACKET', 'PHPCS_T_CLOSE_SQUARE_BRACKET');
-define('T_OPEN_PARENTHESIS', 'PHPCS_T_OPEN_PARENTHESIS');
-define('T_CLOSE_PARENTHESIS', 'PHPCS_T_CLOSE_PARENTHESIS');
-define('T_COLON', 'PHPCS_T_COLON');
-define('T_NULLABLE', 'PHPCS_T_NULLABLE');
-define('T_STRING_CONCAT', 'PHPCS_T_STRING_CONCAT');
-define('T_INLINE_THEN', 'PHPCS_T_INLINE_THEN');
-define('T_INLINE_ELSE', 'PHPCS_T_INLINE_ELSE');
-define('T_NULL', 'PHPCS_T_NULL');
-define('T_FALSE', 'PHPCS_T_FALSE');
-define('T_TRUE', 'PHPCS_T_TRUE');
-define('T_SEMICOLON', 'PHPCS_T_SEMICOLON');
-define('T_EQUAL', 'PHPCS_T_EQUAL');
-define('T_MULTIPLY', 'PHPCS_T_MULTIPLY');
-define('T_DIVIDE', 'PHPCS_T_DIVIDE');
-define('T_PLUS', 'PHPCS_T_PLUS');
-define('T_MINUS', 'PHPCS_T_MINUS');
-define('T_MODULUS', 'PHPCS_T_MODULUS');
-define('T_BITWISE_AND', 'PHPCS_T_BITWISE_AND');
-define('T_BITWISE_OR', 'PHPCS_T_BITWISE_OR');
-define('T_BITWISE_XOR', 'PHPCS_T_BITWISE_XOR');
-define('T_ARRAY_HINT', 'PHPCS_T_ARRAY_HINT');
-define('T_GREATER_THAN', 'PHPCS_T_GREATER_THAN');
-define('T_LESS_THAN', 'PHPCS_T_LESS_THAN');
-define('T_BOOLEAN_NOT', 'PHPCS_T_BOOLEAN_NOT');
-define('T_SELF', 'PHPCS_T_SELF');
-define('T_PARENT', 'PHPCS_T_PARENT');
-define('T_DOUBLE_QUOTED_STRING', 'PHPCS_T_DOUBLE_QUOTED_STRING');
-define('T_COMMA', 'PHPCS_T_COMMA');
-define('T_HEREDOC', 'PHPCS_T_HEREDOC');
-define('T_PROTOTYPE', 'PHPCS_T_PROTOTYPE');
-define('T_THIS', 'PHPCS_T_THIS');
-define('T_REGULAR_EXPRESSION', 'PHPCS_T_REGULAR_EXPRESSION');
-define('T_PROPERTY', 'PHPCS_T_PROPERTY');
-define('T_LABEL', 'PHPCS_T_LABEL');
-define('T_OBJECT', 'PHPCS_T_OBJECT');
-define('T_CLOSE_OBJECT', 'PHPCS_T_CLOSE_OBJECT');
-define('T_COLOUR', 'PHPCS_T_COLOUR');
-define('T_HASH', 'PHPCS_T_HASH');
-define('T_URL', 'PHPCS_T_URL');
-define('T_STYLE', 'PHPCS_T_STYLE');
-define('T_ASPERAND', 'PHPCS_T_ASPERAND');
-define('T_DOLLAR', 'PHPCS_T_DOLLAR');
-define('T_TYPEOF', 'PHPCS_T_TYPEOF');
-define('T_CLOSURE', 'PHPCS_T_CLOSURE');
-define('T_ANON_CLASS', 'PHPCS_T_ANON_CLASS');
-define('T_BACKTICK', 'PHPCS_T_BACKTICK');
-define('T_START_NOWDOC', 'PHPCS_T_START_NOWDOC');
-define('T_NOWDOC', 'PHPCS_T_NOWDOC');
-define('T_END_NOWDOC', 'PHPCS_T_END_NOWDOC');
-define('T_OPEN_SHORT_ARRAY', 'PHPCS_T_OPEN_SHORT_ARRAY');
-define('T_CLOSE_SHORT_ARRAY', 'PHPCS_T_CLOSE_SHORT_ARRAY');
-define('T_GOTO_LABEL', 'PHPCS_T_GOTO_LABEL');
-define('T_BINARY_CAST', 'PHPCS_T_BINARY_CAST');
-define('T_EMBEDDED_PHP', 'PHPCS_T_EMBEDDED_PHP');
-define('T_RETURN_TYPE', 'PHPCS_T_RETURN_TYPE');
-define('T_OPEN_USE_GROUP', 'PHPCS_T_OPEN_USE_GROUP');
-define('T_CLOSE_USE_GROUP', 'PHPCS_T_CLOSE_USE_GROUP');
-define('T_ZSR', 'PHPCS_T_ZSR');
-define('T_ZSR_EQUAL', 'PHPCS_T_ZSR_EQUAL');
-
-// Some PHP 5.5 tokens, replicated for lower versions.
-if (defined('T_FINALLY') === false) {
- define('T_FINALLY', 'PHPCS_T_FINALLY');
-}
-
-if (defined('T_YIELD') === false) {
- define('T_YIELD', 'PHPCS_T_YIELD');
-}
-
-// Some PHP 5.6 tokens, replicated for lower versions.
-if (defined('T_ELLIPSIS') === false) {
- define('T_ELLIPSIS', 'PHPCS_T_ELLIPSIS');
-}
-
-if (defined('T_POW') === false) {
- define('T_POW', 'PHPCS_T_POW');
-}
-
-if (defined('T_POW_EQUAL') === false) {
- define('T_POW_EQUAL', 'PHPCS_T_POW_EQUAL');
-}
-
-// Some PHP 7 tokens, replicated for lower versions.
-if (defined('T_SPACESHIP') === false) {
- define('T_SPACESHIP', 'PHPCS_T_SPACESHIP');
-}
-
-if (defined('T_COALESCE') === false) {
- define('T_COALESCE', 'PHPCS_T_COALESCE');
-}
-
-if (defined('T_COALESCE_EQUAL') === false) {
- define('T_COALESCE_EQUAL', 'PHPCS_T_COALESCE_EQUAL');
-}
-
-if (defined('T_YIELD_FROM') === false) {
- define('T_YIELD_FROM', 'PHPCS_T_YIELD_FROM');
-}
-
-// Tokens used for parsing doc blocks.
-define('T_DOC_COMMENT_STAR', 'PHPCS_T_DOC_COMMENT_STAR');
-define('T_DOC_COMMENT_WHITESPACE', 'PHPCS_T_DOC_COMMENT_WHITESPACE');
-define('T_DOC_COMMENT_TAG', 'PHPCS_T_DOC_COMMENT_TAG');
-define('T_DOC_COMMENT_OPEN_TAG', 'PHPCS_T_DOC_COMMENT_OPEN_TAG');
-define('T_DOC_COMMENT_CLOSE_TAG', 'PHPCS_T_DOC_COMMENT_CLOSE_TAG');
-define('T_DOC_COMMENT_STRING', 'PHPCS_T_DOC_COMMENT_STRING');
-
-final class Tokens
-{
-
- /**
- * The token weightings.
- *
- * @var array<int, int>
- */
- public static $weightings = array(
- T_CLASS => 1000,
- T_INTERFACE => 1000,
- T_TRAIT => 1000,
- T_NAMESPACE => 1000,
- T_FUNCTION => 100,
- T_CLOSURE => 100,
-
- /*
- Conditions.
- */
-
- T_WHILE => 50,
- T_FOR => 50,
- T_FOREACH => 50,
- T_IF => 50,
- T_ELSE => 50,
- T_ELSEIF => 50,
- T_DO => 50,
- T_TRY => 50,
- T_CATCH => 50,
- T_FINALLY => 50,
- T_SWITCH => 50,
-
- T_SELF => 25,
- T_PARENT => 25,
-
- /*
- Operators and arithmetic.
- */
-
- T_BITWISE_AND => 8,
- T_BITWISE_OR => 8,
- T_BITWISE_XOR => 8,
-
- T_MULTIPLY => 5,
- T_DIVIDE => 5,
- T_PLUS => 5,
- T_MINUS => 5,
- T_MODULUS => 5,
- T_POW => 5,
- T_SPACESHIP => 5,
- T_COALESCE => 5,
- T_COALESCE_EQUAL => 5,
-
- T_SL => 5,
- T_SR => 5,
- T_SL_EQUAL => 5,
- T_SR_EQUAL => 5,
-
- T_EQUAL => 5,
- T_AND_EQUAL => 5,
- T_CONCAT_EQUAL => 5,
- T_DIV_EQUAL => 5,
- T_MINUS_EQUAL => 5,
- T_MOD_EQUAL => 5,
- T_MUL_EQUAL => 5,
- T_OR_EQUAL => 5,
- T_PLUS_EQUAL => 5,
- T_XOR_EQUAL => 5,
-
- T_BOOLEAN_AND => 5,
- T_BOOLEAN_OR => 5,
-
- /*
- Equality.
- */
-
- T_IS_EQUAL => 5,
- T_IS_NOT_EQUAL => 5,
- T_IS_IDENTICAL => 5,
- T_IS_NOT_IDENTICAL => 5,
- T_IS_SMALLER_OR_EQUAL => 5,
- T_IS_GREATER_OR_EQUAL => 5,
- );
-
- /**
- * Tokens that represent assignments.
- *
- * @var array<int, int>
- */
- public static $assignmentTokens = array(
- T_EQUAL => T_EQUAL,
- T_AND_EQUAL => T_AND_EQUAL,
- T_OR_EQUAL => T_OR_EQUAL,
- T_CONCAT_EQUAL => T_CONCAT_EQUAL,
- T_DIV_EQUAL => T_DIV_EQUAL,
- T_MINUS_EQUAL => T_MINUS_EQUAL,
- T_POW_EQUAL => T_POW_EQUAL,
- T_MOD_EQUAL => T_MOD_EQUAL,
- T_MUL_EQUAL => T_MUL_EQUAL,
- T_PLUS_EQUAL => T_PLUS_EQUAL,
- T_XOR_EQUAL => T_XOR_EQUAL,
- T_DOUBLE_ARROW => T_DOUBLE_ARROW,
- T_SL_EQUAL => T_SL_EQUAL,
- T_SR_EQUAL => T_SR_EQUAL,
- T_COALESCE_EQUAL => T_COALESCE_EQUAL,
- );
-
- /**
- * Tokens that represent equality comparisons.
- *
- * @var array<int, int>
- */
- public static $equalityTokens = array(
- T_IS_EQUAL => T_IS_EQUAL,
- T_IS_NOT_EQUAL => T_IS_NOT_EQUAL,
- T_IS_IDENTICAL => T_IS_IDENTICAL,
- T_IS_NOT_IDENTICAL => T_IS_NOT_IDENTICAL,
- T_IS_SMALLER_OR_EQUAL => T_IS_SMALLER_OR_EQUAL,
- T_IS_GREATER_OR_EQUAL => T_IS_GREATER_OR_EQUAL,
- );
-
- /**
- * Tokens that represent comparison operator.
- *
- * @var array<int, int>
- */
- public static $comparisonTokens = array(
- T_IS_EQUAL => T_IS_EQUAL,
- T_IS_IDENTICAL => T_IS_IDENTICAL,
- T_IS_NOT_EQUAL => T_IS_NOT_EQUAL,
- T_IS_NOT_IDENTICAL => T_IS_NOT_IDENTICAL,
- T_LESS_THAN => T_LESS_THAN,
- T_GREATER_THAN => T_GREATER_THAN,
- T_IS_SMALLER_OR_EQUAL => T_IS_SMALLER_OR_EQUAL,
- T_IS_GREATER_OR_EQUAL => T_IS_GREATER_OR_EQUAL,
- T_SPACESHIP => T_SPACESHIP,
- T_COALESCE => T_COALESCE,
- );
-
- /**
- * Tokens that represent arithmetic operators.
- *
- * @var array<int, int>
- */
- public static $arithmeticTokens = array(
- T_PLUS => T_PLUS,
- T_MINUS => T_MINUS,
- T_MULTIPLY => T_MULTIPLY,
- T_DIVIDE => T_DIVIDE,
- T_MODULUS => T_MODULUS,
- T_POW => T_POW,
- );
-
- /**
- * Tokens that represent casting.
- *
- * @var array<int, int>
- */
- public static $castTokens = array(
- T_INT_CAST => T_INT_CAST,
- T_STRING_CAST => T_STRING_CAST,
- T_DOUBLE_CAST => T_DOUBLE_CAST,
- T_ARRAY_CAST => T_ARRAY_CAST,
- T_BOOL_CAST => T_BOOL_CAST,
- T_OBJECT_CAST => T_OBJECT_CAST,
- T_UNSET_CAST => T_UNSET_CAST,
- T_BINARY_CAST => T_BINARY_CAST,
- );
-
- /**
- * Token types that open parenthesis.
- *
- * @var array<int, int>
- */
- public static $parenthesisOpeners = array(
- T_ARRAY => T_ARRAY,
- T_FUNCTION => T_FUNCTION,
- T_CLOSURE => T_CLOSURE,
- T_WHILE => T_WHILE,
- T_FOR => T_FOR,
- T_FOREACH => T_FOREACH,
- T_SWITCH => T_SWITCH,
- T_IF => T_IF,
- T_ELSEIF => T_ELSEIF,
- T_CATCH => T_CATCH,
- T_DECLARE => T_DECLARE,
- );
-
- /**
- * Tokens that are allowed to open scopes.
- *
- * @var array<int, int>
- */
- public static $scopeOpeners = array(
- T_CLASS => T_CLASS,
- T_ANON_CLASS => T_ANON_CLASS,
- T_INTERFACE => T_INTERFACE,
- T_TRAIT => T_TRAIT,
- T_NAMESPACE => T_NAMESPACE,
- T_FUNCTION => T_FUNCTION,
- T_CLOSURE => T_CLOSURE,
- T_IF => T_IF,
- T_SWITCH => T_SWITCH,
- T_CASE => T_CASE,
- T_DECLARE => T_DECLARE,
- T_DEFAULT => T_DEFAULT,
- T_WHILE => T_WHILE,
- T_ELSE => T_ELSE,
- T_ELSEIF => T_ELSEIF,
- T_FOR => T_FOR,
- T_FOREACH => T_FOREACH,
- T_DO => T_DO,
- T_TRY => T_TRY,
- T_CATCH => T_CATCH,
- T_FINALLY => T_FINALLY,
- T_PROPERTY => T_PROPERTY,
- T_OBJECT => T_OBJECT,
- T_USE => T_USE,
- );
-
- /**
- * Tokens that represent scope modifiers.
- *
- * @var array<int, int>
- */
- public static $scopeModifiers = array(
- T_PRIVATE => T_PRIVATE,
- T_PUBLIC => T_PUBLIC,
- T_PROTECTED => T_PROTECTED,
- );
-
- /**
- * Tokens that can prefix a method name
- *
- * @var array<int, int>
- */
- public static $methodPrefixes = array(
- T_PRIVATE => T_PRIVATE,
- T_PUBLIC => T_PUBLIC,
- T_PROTECTED => T_PROTECTED,
- T_ABSTRACT => T_ABSTRACT,
- T_STATIC => T_STATIC,
- T_FINAL => T_FINAL,
- );
-
- /**
- * Tokens that perform operations.
- *
- * @var array<int, int>
- */
- public static $operators = array(
- T_MINUS => T_MINUS,
- T_PLUS => T_PLUS,
- T_MULTIPLY => T_MULTIPLY,
- T_DIVIDE => T_DIVIDE,
- T_MODULUS => T_MODULUS,
- T_POW => T_POW,
- T_SPACESHIP => T_SPACESHIP,
- T_COALESCE => T_COALESCE,
- T_BITWISE_AND => T_BITWISE_AND,
- T_BITWISE_OR => T_BITWISE_OR,
- T_BITWISE_XOR => T_BITWISE_XOR,
- T_SL => T_SL,
- T_SR => T_SR,
- );
-
- /**
- * Tokens that perform boolean operations.
- *
- * @var array<int, int>
- */
- public static $booleanOperators = array(
- T_BOOLEAN_AND => T_BOOLEAN_AND,
- T_BOOLEAN_OR => T_BOOLEAN_OR,
- T_LOGICAL_AND => T_LOGICAL_AND,
- T_LOGICAL_OR => T_LOGICAL_OR,
- T_LOGICAL_XOR => T_LOGICAL_XOR,
- );
-
- /**
- * Tokens that open code blocks.
- *
- * @var array<int, int>
- */
- public static $blockOpeners = array(
- T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET,
- T_OPEN_SQUARE_BRACKET => T_OPEN_SQUARE_BRACKET,
- T_OPEN_PARENTHESIS => T_OPEN_PARENTHESIS,
- T_OBJECT => T_OBJECT,
- );
-
- /**
- * Tokens that don't represent code.
- *
- * @var array<int, int>
- */
- public static $emptyTokens = array(
- T_WHITESPACE => T_WHITESPACE,
- T_COMMENT => T_COMMENT,
- T_DOC_COMMENT => T_DOC_COMMENT,
- T_DOC_COMMENT_STAR => T_DOC_COMMENT_STAR,
- T_DOC_COMMENT_WHITESPACE => T_DOC_COMMENT_WHITESPACE,
- T_DOC_COMMENT_TAG => T_DOC_COMMENT_TAG,
- T_DOC_COMMENT_OPEN_TAG => T_DOC_COMMENT_OPEN_TAG,
- T_DOC_COMMENT_CLOSE_TAG => T_DOC_COMMENT_CLOSE_TAG,
- T_DOC_COMMENT_STRING => T_DOC_COMMENT_STRING,
- );
-
- /**
- * Tokens that are comments.
- *
- * @var array<int, int>
- */
- public static $commentTokens = array(
- T_COMMENT => T_COMMENT,
- T_DOC_COMMENT => T_DOC_COMMENT,
- T_DOC_COMMENT_STAR => T_DOC_COMMENT_STAR,
- T_DOC_COMMENT_WHITESPACE => T_DOC_COMMENT_WHITESPACE,
- T_DOC_COMMENT_TAG => T_DOC_COMMENT_TAG,
- T_DOC_COMMENT_OPEN_TAG => T_DOC_COMMENT_OPEN_TAG,
- T_DOC_COMMENT_CLOSE_TAG => T_DOC_COMMENT_CLOSE_TAG,
- T_DOC_COMMENT_STRING => T_DOC_COMMENT_STRING,
- );
-
- /**
- * Tokens that represent strings.
- *
- * Note that T_STRINGS are NOT represented in this list.
- *
- * @var array<int, int>
- */
- public static $stringTokens = array(
- T_CONSTANT_ENCAPSED_STRING => T_CONSTANT_ENCAPSED_STRING,
- T_DOUBLE_QUOTED_STRING => T_DOUBLE_QUOTED_STRING,
- );
-
- /**
- * Tokens that represent text strings.
- *
- * @var array<int, int>
- */
- public static $textStringTokens = array(
- T_CONSTANT_ENCAPSED_STRING => T_CONSTANT_ENCAPSED_STRING,
- T_DOUBLE_QUOTED_STRING => T_DOUBLE_QUOTED_STRING,
- T_INLINE_HTML => T_INLINE_HTML,
- T_HEREDOC => T_HEREDOC,
- T_NOWDOC => T_NOWDOC,
- );
-
- /**
- * Tokens that represent brackets and parenthesis.
- *
- * @var array<int, int>
- */
- public static $bracketTokens = array(
- T_OPEN_CURLY_BRACKET => T_OPEN_CURLY_BRACKET,
- T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,
- T_OPEN_SQUARE_BRACKET => T_OPEN_SQUARE_BRACKET,
- T_CLOSE_SQUARE_BRACKET => T_CLOSE_SQUARE_BRACKET,
- T_OPEN_PARENTHESIS => T_OPEN_PARENTHESIS,
- T_CLOSE_PARENTHESIS => T_CLOSE_PARENTHESIS,
- );
-
- /**
- * Tokens that include files.
- *
- * @var array<int, int>
- */
- public static $includeTokens = array(
- T_REQUIRE_ONCE => T_REQUIRE_ONCE,
- T_REQUIRE => T_REQUIRE,
- T_INCLUDE_ONCE => T_INCLUDE_ONCE,
- T_INCLUDE => T_INCLUDE,
- );
-
- /**
- * Tokens that make up a heredoc string.
- *
- * @var array<int, int>
- */
- public static $heredocTokens = array(
- T_START_HEREDOC => T_START_HEREDOC,
- T_END_HEREDOC => T_END_HEREDOC,
- T_HEREDOC => T_HEREDOC,
- T_START_NOWDOC => T_START_NOWDOC,
- T_END_NOWDOC => T_END_NOWDOC,
- T_NOWDOC => T_NOWDOC,
- );
-
- /**
- * Tokens that represent the names of called functions.
- *
- * Mostly, these are just strings. But PHP tokenizes some language
- * constructs and functions using their own tokens.
- *
- * @var array<int, int>
- */
- public static $functionNameTokens = array(
- T_STRING => T_STRING,
- T_EVAL => T_EVAL,
- T_EXIT => T_EXIT,
- T_INCLUDE => T_INCLUDE,
- T_INCLUDE_ONCE => T_INCLUDE_ONCE,
- T_REQUIRE => T_REQUIRE,
- T_REQUIRE_ONCE => T_REQUIRE_ONCE,
- T_ISSET => T_ISSET,
- T_UNSET => T_UNSET,
- T_EMPTY => T_EMPTY,
- );
-
-
- /**
- * Given a token, returns the name of the token.
- *
- * If passed an integer, the token name is sourced from PHP's token_name()
- * function. If passed a string, it is assumed to be a PHPCS-supplied token
- * that begins with PHPCS_T_, so the name is sourced from the token value itself.
- *
- * @param int|string $token The token to get the name for.
- *
- * @return string
- */
- public static function tokenName($token)
- {
- if (is_string($token) === false) {
- // PHP-supplied token name.
- return token_name($token);
- }
-
- return substr($token, 6);
-
- }//end tokenName()
-
-
- /**
- * Returns the highest weighted token type.
- *
- * Tokens are weighted by their approximate frequency of appearance in code
- * - the less frequently they appear in the code, the higher the weighting.
- * For example T_CLASS tokens appear very infrequently in a file, and
- * therefore have a high weighting.
- *
- * Returns false if there are no weightings for any of the specified tokens.
- *
- * @param array<int, int> $tokens The token types to get the highest weighted
- * type for.
- *
- * @return int The highest weighted token.
- */
- public static function getHighestWeightedToken(array $tokens)
- {
- $highest = -1;
- $highestType = false;
-
- $weights = self::$weightings;
-
- foreach ($tokens as $token) {
- if (isset($weights[$token]) === true) {
- $weight = $weights[$token];
- } else {
- $weight = 0;
- }
-
- if ($weight > $highest) {
- $highest = $weight;
- $highestType = $token;
- }
- }
-
- return $highestType;
-
- }//end getHighestWeightedToken()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/AllTests.php b/www/wiki/vendor/squizlabs/php_codesniffer/tests/AllTests.php
deleted file mode 100644
index 979b239b..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/AllTests.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/**
- * A test class for running all PHP_CodeSniffer unit tests.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tests;
-
-use PHP_CodeSniffer\Util\Tokens;
-
-if (defined('PHP_CODESNIFFER_IN_TESTS') === false) {
- define('PHP_CODESNIFFER_IN_TESTS', true);
-}
-
-if (defined('PHP_CODESNIFFER_CBF') === false) {
- define('PHP_CODESNIFFER_CBF', false);
-}
-
-if (defined('PHP_CODESNIFFER_VERBOSITY') === false) {
- define('PHP_CODESNIFFER_VERBOSITY', 0);
-}
-
-if (is_file(__DIR__.'/../autoload.php') === true) {
- include_once __DIR__.'/../autoload.php';
- include_once 'Core/AllTests.php';
- include_once 'Standards/AllSniffs.php';
-} else {
- include_once 'PHP/CodeSniffer/autoload.php';
- include_once 'CodeSniffer/Core/AllTests.php';
- include_once 'CodeSniffer/Standards/AllSniffs.php';
-}
-
-require_once 'TestSuite.php';
-
-$tokens = new Tokens();
-
-class PHP_CodeSniffer_AllTests
-{
-
-
- /**
- * Prepare the test runner.
- *
- * @return void
- */
- public static function main()
- {
- \PHPUnit_TextUI_TestRunner::run(self::suite());
-
- }//end main()
-
-
- /**
- * Add all PHP_CodeSniffer test suites into a single test suite.
- *
- * @return \PHPUnit_Framework_TestSuite
- */
- public static function suite()
- {
- $GLOBALS['PHP_CODESNIFFER_STANDARD_DIRS'] = array();
- $GLOBALS['PHP_CODESNIFFER_TEST_DIRS'] = array();
-
- // Use a special PHP_CodeSniffer test suite so that we can
- // unset our autoload function after the run.
- $suite = new TestSuite('PHP CodeSniffer');
-
- $suite->addTest(Core\AllTests::suite());
- $suite->addTest(Standards\AllSniffs::suite());
-
- return $suite;
-
- }//end suite()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/AllTests.php b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/AllTests.php
deleted file mode 100644
index 551cb920..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/AllTests.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-/**
- * A test class for testing the core.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tests\Core;
-
-use PHP_CodeSniffer\Util\Tokens;
-
-if (defined('PHP_CODESNIFFER_IN_TESTS') === false) {
- define('PHP_CODESNIFFER_IN_TESTS', true);
-}
-
-if (defined('PHP_CODESNIFFER_CBF') === false) {
- define('PHP_CODESNIFFER_CBF', false);
-}
-
-if (defined('PHP_CODESNIFFER_VERBOSITY') === false) {
- define('PHP_CODESNIFFER_VERBOSITY', 0);
-}
-
-if (is_file(__DIR__.'/../../autoload.php') === true) {
- include_once __DIR__.'/../../autoload.php';
-} else {
- include_once 'PHP/CodeSniffer/autoload.php';
-}
-
-$tokens = new Tokens();
-
-require_once 'IsCamelCapsTest.php';
-require_once 'ErrorSuppressionTest.php';
-require_once 'File/GetMethodParametersTest.php';
-require_once 'File/FindExtendedClassNameTest.php';
-require_once 'File/FindImplementedInterfaceNamesTest.php';
-
-class AllTests
-{
-
-
- /**
- * Prepare the test runner.
- *
- * @return void
- */
- public static function main()
- {
- \PHPUnit2_TextUI_TestRunner::run(self::suite());
-
- }//end main()
-
-
- /**
- * Add all core unit tests into a test suite.
- *
- * @return \PHPUnit_Framework_TestSuite
- */
- public static function suite()
- {
- $suite = new \PHPUnit_Framework_TestSuite('PHP CodeSniffer Core');
- $suite->addTestSuite('PHP_CodeSniffer\Tests\Core\IsCamelCapsTest');
- $suite->addTestSuite('PHP_CodeSniffer\Tests\Core\ErrorSuppressionTest');
- $suite->addTestSuite('PHP_CodeSniffer\Tests\Core\File\GetMethodParametersTest');
- $suite->addTestSuite('PHP_CodeSniffer\Tests\Core\File\FindExtendedClassNameTest');
- $suite->addTestSuite('PHP_CodeSniffer\Tests\Core\File\FindImplementedInterfaceNamesTest');
- return $suite;
-
- }//end suite()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/ErrorSuppressionTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/ErrorSuppressionTest.php
deleted file mode 100644
index 32b71114..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/ErrorSuppressionTest.php
+++ /dev/null
@@ -1,340 +0,0 @@
-<?php
-/**
- * Tests for PHP_CodeSniffer error suppression tags.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tests\Core;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Files\DummyFile;
-
-class ErrorSuppressionTest extends \PHPUnit_Framework_TestCase
-{
-
-
- /**
- * Test suppressing a single error.
- *
- * @return void
- */
- public function testSuppressError()
- {
- $config = new Config();
- $config->standards = array('Generic');
- $config->sniffs = array('Generic.PHP.LowerCaseConstant');
-
- $ruleset = new Ruleset($config);
-
- // Process without suppression.
- $content = '<?php '.PHP_EOL.'$var = FALSE;';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(1, $numErrors);
- $this->assertEquals(1, count($errors));
-
- // Process with inline comment suppression.
- $content = '<?php '.PHP_EOL.'// @codingStandardsIgnoreStart'.PHP_EOL.'$var = FALSE;'.PHP_EOL.'// @codingStandardsIgnoreEnd';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(0, $numErrors);
- $this->assertEquals(0, count($errors));
-
- // Process with block comment suppression.
- $content = '<?php '.PHP_EOL.'/* @codingStandardsIgnoreStart */'.PHP_EOL.'$var = FALSE;'.PHP_EOL.'/* @codingStandardsIgnoreEnd */';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(0, $numErrors);
- $this->assertEquals(0, count($errors));
-
- // Process with a docblock suppression.
- $content = '<?php '.PHP_EOL.'/** @codingStandardsIgnoreStart */'.PHP_EOL.'$var = FALSE;'.PHP_EOL.'/** @codingStandardsIgnoreEnd */';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(0, $numErrors);
- $this->assertEquals(0, count($errors));
-
- }//end testSuppressError()
-
-
- /**
- * Test suppressing 1 out of 2 errors.
- *
- * @return void
- */
- public function testSuppressSomeErrors()
- {
- $config = new Config();
- $config->standards = array('Generic');
- $config->sniffs = array('Generic.PHP.LowerCaseConstant');
-
- $ruleset = new Ruleset($config);
-
- // Process without suppression.
- $content = '<?php '.PHP_EOL.'$var = FALSE;'.PHP_EOL.'$var = TRUE;';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(2, $numErrors);
- $this->assertEquals(2, count($errors));
-
- // Process with suppression.
- $content = '<?php '.PHP_EOL.'// @codingStandardsIgnoreStart'.PHP_EOL.'$var = FALSE;'.PHP_EOL.'// @codingStandardsIgnoreEnd'.PHP_EOL.'$var = TRUE;';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(1, $numErrors);
- $this->assertEquals(1, count($errors));
-
- // Process with a PHPDoc block suppression.
- $content = '<?php '.PHP_EOL.'/** @codingStandardsIgnoreStart */'.PHP_EOL.'$var = FALSE;'.PHP_EOL.'/** @codingStandardsIgnoreEnd */'.PHP_EOL.'$var = TRUE;';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(1, $numErrors);
- $this->assertEquals(1, count($errors));
-
- }//end testSuppressSomeErrors()
-
-
- /**
- * Test suppressing a single warning.
- *
- * @return void
- */
- public function testSuppressWarning()
- {
- $config = new Config();
- $config->standards = array('Generic');
- $config->sniffs = array('Generic.Commenting.Todo');
-
- $ruleset = new Ruleset($config);
-
- // Process without suppression.
- $content = '<?php '.PHP_EOL.'//TODO: write some code';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $warnings = $file->getWarnings();
- $numWarnings = $file->getWarningCount();
- $this->assertEquals(1, $numWarnings);
- $this->assertEquals(1, count($warnings));
-
- // Process with suppression.
- $content = '<?php '.PHP_EOL.'// @codingStandardsIgnoreStart'.PHP_EOL.'//TODO: write some code'.PHP_EOL.'// @codingStandardsIgnoreEnd';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $warnings = $file->getWarnings();
- $numWarnings = $file->getWarningCount();
- $this->assertEquals(0, $numWarnings);
- $this->assertEquals(0, count($warnings));
-
- // Process with a docblock suppression.
- $content = '<?php '.PHP_EOL.'/** @codingStandardsIgnoreStart */'.PHP_EOL.'//TODO: write some code'.PHP_EOL.'/** @codingStandardsIgnoreEnd */';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $warnings = $file->getWarnings();
- $numWarnings = $file->getWarningCount();
- $this->assertEquals(0, $numWarnings);
- $this->assertEquals(0, count($warnings));
-
- }//end testSuppressWarning()
-
-
- /**
- * Test suppressing a single error using a single line ignore.
- *
- * @return void
- */
- public function testSuppressLine()
- {
- $config = new Config();
- $config->standards = array('Generic');
- $config->sniffs = array('Generic.PHP.LowerCaseConstant');
-
- $ruleset = new Ruleset($config);
-
- // Process without suppression.
- $content = '<?php '.PHP_EOL.'$var = FALSE;'.PHP_EOL.'$var = FALSE;';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(2, $numErrors);
- $this->assertEquals(2, count($errors));
-
- // Process with suppression.
- $content = '<?php '.PHP_EOL.'// @codingStandardsIgnoreLine'.PHP_EOL.'$var = FALSE;'.PHP_EOL.'$var = FALSE;';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(1, $numErrors);
- $this->assertEquals(1, count($errors));
-
- }//end testSuppressLine()
-
-
- /**
- * Test that using a single line ignore does not interfere with other suppressions.
- *
- * @return void
- */
- public function testNestedSuppressLine()
- {
- $config = new Config();
- $config->standards = array('Generic');
- $config->sniffs = array('Generic.PHP.LowerCaseConstant');
-
- $ruleset = new Ruleset($config);
-
- // Process with codingStandardsIgnore[Start|End] suppression and no single line suppression.
- $content = '<?php '.PHP_EOL.'// @codingStandardsIgnoreStart'.PHP_EOL.'$var = FALSE;'.PHP_EOL.'$var = TRUE;'.PHP_EOL.'// @codingStandardsIgnoreEnd';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(0, $numErrors);
- $this->assertEquals(0, count($errors));
-
- // Process with codingStandardsIgnoreLine suppression
- // nested within codingStandardsIgnore[Start|End] suppression.
- $content = '<?php '.PHP_EOL.'// @codingStandardsIgnoreStart'.PHP_EOL.'// @codingStandardsIgnoreLine'.PHP_EOL.'$var = FALSE;'.PHP_EOL.'$var = TRUE;'.PHP_EOL.'// @codingStandardsIgnoreEnd';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(0, $numErrors);
- $this->assertEquals(0, count($errors));
-
- }//end testNestedSuppressLine()
-
-
- /**
- * Test suppressing a scope opener.
- *
- * @return void
- */
- public function testSuppressScope()
- {
- return;
- $phpcs = new PHP_CodeSniffer();
- $phpcs->initStandard('PEAR', array('PEAR.NamingConventions.ValidVariableName'));
-
- // Process without suppression.
- $content = '<?php '.PHP_EOL.'class MyClass() {'.PHP_EOL.'function myFunction() {'.PHP_EOL.'$this->foo();'.PHP_EOL.'}'.PHP_EOL.'}';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(0, $numErrors);
- $this->assertEquals(0, count($errors));
-
- // Process with suppression.
- $content = '<?php '.PHP_EOL.'class MyClass() {'.PHP_EOL.'//@codingStandardsIgnoreStart'.PHP_EOL.'function myFunction() {'.PHP_EOL.'//@codingStandardsIgnoreEnd'.PHP_EOL.'$this->foo();'.PHP_EOL.'}'.PHP_EOL.'}';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(0, $numErrors);
- $this->assertEquals(0, count($errors));
-
- // Process with a docblock suppression.
- $content = '<?php '.PHP_EOL.'class MyClass() {'.PHP_EOL.'/** @codingStandardsIgnoreStart */'.PHP_EOL.'function myFunction() {'.PHP_EOL.'/** @codingStandardsIgnoreEnd */'.PHP_EOL.'$this->foo();'.PHP_EOL.'}'.PHP_EOL.'}';
- $file = $phpcs->processFile('suppressionTest.php', $content);
-
- $errors = $file->getErrors();
- $numErrors = $file->getErrorCount();
- $this->assertEquals(0, $numErrors);
- $this->assertEquals(0, count($errors));
-
- }//end testSuppressScope()
-
-
- /**
- * Test suppressing a whole file.
- *
- * @return void
- */
- public function testSuppressFile()
- {
- $config = new Config();
- $config->standards = array('Generic');
- $config->sniffs = array('Generic.Commenting.Todo');
-
- $ruleset = new Ruleset($config);
-
- // Process without suppression.
- $content = '<?php '.PHP_EOL.'//TODO: write some code';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $warnings = $file->getWarnings();
- $numWarnings = $file->getWarningCount();
- $this->assertEquals(1, $numWarnings);
- $this->assertEquals(1, count($warnings));
-
- // Process with suppression.
- $content = '<?php '.PHP_EOL.'// @codingStandardsIgnoreFile'.PHP_EOL.'//TODO: write some code';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $warnings = $file->getWarnings();
- $numWarnings = $file->getWarningCount();
- $this->assertEquals(0, $numWarnings);
- $this->assertEquals(0, count($warnings));
-
- // Process with a block comment suppression.
- $content = '<?php '.PHP_EOL.'/* @codingStandardsIgnoreFile */'.PHP_EOL.'//TODO: write some code';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $warnings = $file->getWarnings();
- $numWarnings = $file->getWarningCount();
- $this->assertEquals(0, $numWarnings);
- $this->assertEquals(0, count($warnings));
-
- // Process with docblock suppression.
- $content = '<?php '.PHP_EOL.'/** @codingStandardsIgnoreFile */'.PHP_EOL.'//TODO: write some code';
- $file = new DummyFile($content, $ruleset, $config);
- $file->process();
-
- $warnings = $file->getWarnings();
- $numWarnings = $file->getWarningCount();
- $this->assertEquals(0, $numWarnings);
- $this->assertEquals(0, count($warnings));
-
- }//end testSuppressFile()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.inc
deleted file mode 100644
index f1d02840..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.inc
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/* @codingStandardsIgnoreFile */
-
-namespace PHP_CodeSniffer\Tests\Core\File;
-
-class testFECNClass {}
-
-/* testExtendedClass */
-class testFECNExtendedClass extends testFECNClass {}
-
-/* testNamespacedClass */
-class testFECNNamespacedClass extends \PHP_CodeSniffer\Tests\Core\File\testFECNClass {}
-
-/* testNonExtendedClass */
-class testFECNNonExtendedClass {}
-
-/* testInterface */
-interface testFECNInterface {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.php
deleted file mode 100644
index 34d06228..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindExtendedClassNameTest.php
+++ /dev/null
@@ -1,149 +0,0 @@
-<?php
-/**
- * Tests for the \PHP_CodeSniffer\Files\File:findExtendedClassName method.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tests\Core\File;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Files\DummyFile;
-
-class FindExtendedClassNameTest extends \PHPUnit_Framework_TestCase
-{
-
- /**
- * The PHP_CodeSniffer_File object containing parsed contents of the test case file.
- *
- * @var \PHP_CodeSniffer\Files\File
- */
- private $phpcsFile;
-
-
- /**
- * Initialize & tokenize \PHP_CodeSniffer\Files\File with code from the test case file.
- *
- * Methods used for these tests can be found in a test case file in the same
- * directory and with the same name, using the .inc extension.
- *
- * @return void
- */
- public function setUp()
- {
- $config = new Config();
- $config->standards = array('Generic');
-
- $ruleset = new Ruleset($config);
-
- $pathToTestFile = dirname(__FILE__).'/'.basename(__FILE__, '.php').'.inc';
- $this->phpcsFile = new DummyFile(file_get_contents($pathToTestFile), $ruleset, $config);
- $this->phpcsFile->process();
-
- }//end setUp()
-
-
- /**
- * Clean up after finished test.
- *
- * @return void
- */
- public function tearDown()
- {
- unset($this->phpcsFile);
-
- }//end tearDown()
-
-
- /**
- * Test a class that extends another.
- *
- * @return void
- */
- public function testExtendedClass()
- {
- $start = ($this->phpcsFile->numTokens - 1);
- $class = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testExtendedClass */'
- );
-
- $found = $this->phpcsFile->findExtendedClassName(($class + 2));
- $this->assertSame('testFECNClass', $found);
-
- }//end testExtendedClass()
-
-
- /**
- * Test a class that extends another, using namespaces.
- *
- * @return void
- */
- public function testNamespacedClass()
- {
- $start = ($this->phpcsFile->numTokens - 1);
- $class = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testNamespacedClass */'
- );
-
- $found = $this->phpcsFile->findExtendedClassName(($class + 2));
- $this->assertSame('\PHP_CodeSniffer\Tests\Core\File\testFECNClass', $found);
-
- }//end testNamespacedClass()
-
-
- /**
- * Test a class that doesn't extend another.
- *
- * @return void
- */
- public function testNonExtendedClass()
- {
- $start = ($this->phpcsFile->numTokens - 1);
- $class = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testNonExtendedClass */'
- );
-
- $found = $this->phpcsFile->findExtendedClassName(($class + 2));
- $this->assertFalse($found);
-
- }//end testNonExtendedClass()
-
-
- /**
- * Test an interface.
- *
- * @return void
- */
- public function testInterface()
- {
- $start = ($this->phpcsFile->numTokens - 1);
- $class = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testInterface */'
- );
-
- $found = $this->phpcsFile->findExtendedClassName(($class + 2));
- $this->assertFalse($found);
-
- }//end testInterface()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.inc
deleted file mode 100644
index 151c5c9e..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.inc
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-/* @codingStandardsIgnoreFile */
-
-namespace PHP_CodeSniffer\Tests\Core\File;
-
-\PHP_CodeSniffer\Tests\Core\File\testFECNClass
-interface testFIINInterface2 {}
-
-/* testInterface */
-interface testFIINInterface {}
-
-/* testImplementedClass */
-class testFIINImplementedClass implements testFIINInterface {}
-
-/* testMultiImplementedClass */
-class testFIINMultiImplementedClass implements testFIINInterface, testFIINInterface2 {}
-
-/* testNamespacedClass */
-class testFIINNamespacedClass implements \PHP_CodeSniffer\Tests\Core\File\testFIINInterface {}
-
-/* testNonImplementedClass */
-class testFIINNonImplementedClass {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.php
deleted file mode 100644
index bfcb3789..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/FindImplementedInterfaceNamesTest.php
+++ /dev/null
@@ -1,171 +0,0 @@
-<?php
-/**
- * Tests for the \PHP_CodeSniffer\Files\File:findImplementedInterfaceNames method.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tests\Core\File;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Files\DummyFile;
-
-class FindImplementedInterfaceNamesTest extends \PHPUnit_Framework_TestCase
-{
-
- /**
- * The \PHP_CodeSniffer\Files\File object containing parsed contents of the test case file.
- *
- * @var \PHP_CodeSniffer\Files\File
- */
- private $phpcsFile;
-
-
- /**
- * Initialize & tokenize \PHP_CodeSniffer\Files\File with code from the test case file.
- *
- * Methods used for these tests can be found in a test case file in the same
- * directory and with the same name, using the .inc extension.
- *
- * @return void
- */
- public function setUp()
- {
- $config = new Config();
- $config->standards = array('Generic');
-
- $ruleset = new Ruleset($config);
-
- $pathToTestFile = dirname(__FILE__).'/'.basename(__FILE__, '.php').'.inc';
- $this->phpcsFile = new DummyFile(file_get_contents($pathToTestFile), $ruleset, $config);
- $this->phpcsFile->process();
-
- }//end setUp()
-
-
- /**
- * Clean up after finished test.
- *
- * @return void
- */
- public function tearDown()
- {
- unset($this->phpcsFile);
-
- }//end tearDown()
-
-
- /**
- * Test a class that implements a single interface.
- *
- * @return void
- */
- public function testImplementedClass()
- {
- $start = ($this->phpcsFile->numTokens - 1);
- $class = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testImplementedClass */'
- );
-
- $found = $this->phpcsFile->findImplementedInterfaceNames(($class + 2));
- $this->assertSame(array('testFIINInterface'), $found);
-
- }//end testImplementedClass()
-
-
- /**
- * Test a class that implements multiple interfaces.
- *
- * @return void
- */
- public function testMultiImplementedClass()
- {
- $start = ($this->phpcsFile->numTokens - 1);
- $class = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testMultiImplementedClass */'
- );
-
- $found = $this->phpcsFile->findImplementedInterfaceNames(($class + 2));
- $this->assertSame(array('testFIINInterface', 'testFIINInterface2'), $found);
-
- }//end testMultiImplementedClass()
-
-
- /**
- * Test a class that implements an interface, using namespaces.
- *
- * @return void
- */
- public function testNamespacedClass()
- {
- $start = ($this->phpcsFile->numTokens - 1);
- $class = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testNamespacedClass */'
- );
-
- $found = $this->phpcsFile->findImplementedInterfaceNames(($class + 2));
- $this->assertSame(array('\PHP_CodeSniffer\Tests\Core\File\testFIINInterface'), $found);
-
- }//end testNamespacedClass()
-
-
- /**
- * Test a class that doesn't implement an interface.
- *
- * @return void
- */
- public function testNonImplementedClass()
- {
- $start = ($this->phpcsFile->numTokens - 1);
- $class = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testNonImplementedClass */'
- );
-
- $found = $this->phpcsFile->findImplementedInterfaceNames(($class + 2));
- $this->assertFalse($found);
-
- }//end testNonImplementedClass()
-
-
- /**
- * Test an interface.
- *
- * @return void
- */
- public function testInterface()
- {
- $start = ($this->phpcsFile->numTokens - 1);
- $class = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testInterface */'
- );
-
- $found = $this->phpcsFile->findImplementedInterfaceNames(($class + 2));
- $this->assertFalse($found);
-
- }//end testInterface()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersTest.inc b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersTest.inc
deleted file mode 100644
index 59a931e7..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersTest.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/* @codingStandardsIgnoreFile */
-
-/* testPassByReference */
-function passByReference(&$var) {}
-
-/* testArrayHint */
-function arrayHint(array $var) {}
-
-/* testVariable */
-function variable($var) {}
-
-/* testSingleDefaultValue */
-function defaultValue($var1=self::CONSTANT) {}
-
-/* testDefaultValues */
-function defaultValues($var1=1, $var2='value') {}
-
-/* testTypeHint */
-function typeHint(foo $var1, bar $var2) {}
-
-class MyClass {
-/* testSelfTypeHint */ function typeSelfHint(self $var) {}
-}
-
-/* testNullableTypeHint */
-function nullableTypeHint(?int $var1, ?\bar $var2) {}
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersTest.php
deleted file mode 100644
index d0c99578..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodParametersTest.php
+++ /dev/null
@@ -1,357 +0,0 @@
-<?php
-/**
- * Tests for the \PHP_CodeSniffer\Files\File:getMethodParameters method.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tests\Core\File;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Files\DummyFile;
-
-class GetMethodParametersTest extends \PHPUnit_Framework_TestCase
-{
-
- /**
- * The PHP_CodeSniffer_File object containing parsed contents of the test case file.
- *
- * @var \PHP_CodeSniffer\Files\File
- */
- private $phpcsFile;
-
-
- /**
- * Initialize & tokenize PHP_CodeSniffer_File with code from the test case file.
- *
- * Methods used for these tests can be found in a test case file in the same
- * directory and with the same name, using the .inc extension.
- *
- * @return void
- */
- public function setUp()
- {
- $config = new Config();
- $config->standards = array('Generic');
-
- $ruleset = new Ruleset($config);
-
- $pathToTestFile = dirname(__FILE__).'/'.basename(__FILE__, '.php').'.inc';
- $this->phpcsFile = new DummyFile(file_get_contents($pathToTestFile), $ruleset, $config);
- $this->phpcsFile->process();
-
- }//end setUp()
-
-
- /**
- * Clean up after finished test.
- *
- * @return void
- */
- public function tearDown()
- {
- unset($this->phpcsFile);
-
- }//end tearDown()
-
-
- /**
- * Verify pass-by-reference parsing.
- *
- * @return void
- */
- public function testPassByReference()
- {
- $expected = array();
- $expected[0] = array(
- 'name' => '$var',
- 'content' => '&$var',
- 'pass_by_reference' => true,
- 'variable_length' => false,
- 'type_hint' => '',
- 'nullable_type' => false,
- );
-
- $start = ($this->phpcsFile->numTokens - 1);
- $function = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testPassByReference */'
- );
-
- $found = $this->phpcsFile->getMethodParameters(($function + 2));
- unset($found[0]['token']);
- $this->assertSame($expected, $found);
-
- }//end testPassByReference()
-
-
- /**
- * Verify array hint parsing.
- *
- * @return void
- */
- public function testArrayHint()
- {
- $expected = array();
- $expected[0] = array(
- 'name' => '$var',
- 'content' => 'array $var',
- 'pass_by_reference' => false,
- 'variable_length' => false,
- 'type_hint' => 'array',
- 'nullable_type' => false,
- );
-
- $start = ($this->phpcsFile->numTokens - 1);
- $function = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testArrayHint */'
- );
-
- $found = $this->phpcsFile->getMethodParameters(($function + 2));
- unset($found[0]['token']);
- $this->assertSame($expected, $found);
-
- }//end testArrayHint()
-
-
- /**
- * Verify type hint parsing.
- *
- * @return void
- */
- public function testTypeHint()
- {
- $expected = array();
- $expected[0] = array(
- 'name' => '$var1',
- 'content' => 'foo $var1',
- 'pass_by_reference' => false,
- 'variable_length' => false,
- 'type_hint' => 'foo',
- 'nullable_type' => false,
- );
-
- $expected[1] = array(
- 'name' => '$var2',
- 'content' => 'bar $var2',
- 'pass_by_reference' => false,
- 'variable_length' => false,
- 'type_hint' => 'bar',
- 'nullable_type' => false,
- );
-
- $start = ($this->phpcsFile->numTokens - 1);
- $function = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testTypeHint */'
- );
-
- $found = $this->phpcsFile->getMethodParameters(($function + 2));
- unset($found[0]['token']);
- unset($found[1]['token']);
- $this->assertSame($expected, $found);
-
- }//end testTypeHint()
-
-
- /**
- * Verify self type hint parsing.
- *
- * @return void
- */
- public function testSelfTypeHint()
- {
- $expected = array();
- $expected[0] = array(
- 'name' => '$var',
- 'content' => 'self $var',
- 'pass_by_reference' => false,
- 'variable_length' => false,
- 'type_hint' => 'self',
- 'nullable_type' => false,
- );
-
- $start = ($this->phpcsFile->numTokens - 1);
- $function = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testSelfTypeHint */'
- );
-
- $found = $this->phpcsFile->getMethodParameters(($function + 2));
- unset($found[0]['token']);
- $this->assertSame($expected, $found);
-
- }//end testSelfTypeHint()
-
-
- /**
- * Verify nullable type hint parsing.
- *
- * @return void
- */
- public function testNullableTypeHint()
- {
- $expected = array();
- $expected[0] = array(
- 'name' => '$var1',
- 'content' => '?int $var1',
- 'pass_by_reference' => false,
- 'variable_length' => false,
- 'type_hint' => '?int',
- 'nullable_type' => true,
- );
-
- $expected[1] = array(
- 'name' => '$var2',
- 'content' => '?\bar $var2',
- 'pass_by_reference' => false,
- 'variable_length' => false,
- 'type_hint' => '?\bar',
- 'nullable_type' => true,
- );
-
- $start = ($this->phpcsFile->numTokens - 1);
- $function = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testNullableTypeHint */'
- );
-
- $found = $this->phpcsFile->getMethodParameters(($function + 2));
- unset($found[0]['token']);
- unset($found[1]['token']);
- $this->assertSame($expected, $found);
-
- }//end testNullableTypeHint()
-
-
- /**
- * Verify variable.
- *
- * @return void
- */
- public function testVariable()
- {
- $expected = array();
- $expected[0] = array(
- 'name' => '$var',
- 'content' => '$var',
- 'pass_by_reference' => false,
- 'variable_length' => false,
- 'type_hint' => '',
- 'nullable_type' => false,
- );
-
- $start = ($this->phpcsFile->numTokens - 1);
- $function = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testVariable */'
- );
-
- $found = $this->phpcsFile->getMethodParameters(($function + 2));
- unset($found[0]['token']);
- $this->assertSame($expected, $found);
-
- }//end testVariable()
-
-
- /**
- * Verify default value parsing with a single function param.
- *
- * @return void
- */
- public function testSingleDefaultValue()
- {
- $expected = array();
- $expected[0] = array(
- 'name' => '$var1',
- 'content' => '$var1=self::CONSTANT',
- 'default' => 'self::CONSTANT',
- 'pass_by_reference' => false,
- 'variable_length' => false,
- 'type_hint' => '',
- 'nullable_type' => false,
- );
-
- $start = ($this->phpcsFile->numTokens - 1);
- $function = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testSingleDefaultValue */'
- );
-
- $found = $this->phpcsFile->getMethodParameters(($function + 2));
- unset($found[0]['token']);
- $this->assertSame($expected, $found);
-
- }//end testSingleDefaultValue()
-
-
- /**
- * Verify default value parsing.
- *
- * @return void
- */
- public function testDefaultValues()
- {
- $expected = array();
- $expected[0] = array(
- 'name' => '$var1',
- 'content' => '$var1=1',
- 'default' => '1',
- 'pass_by_reference' => false,
- 'variable_length' => false,
- 'type_hint' => '',
- 'nullable_type' => false,
- );
- $expected[1] = array(
- 'name' => '$var2',
- 'content' => "\$var2='value'",
- 'default' => "'value'",
- 'pass_by_reference' => false,
- 'variable_length' => false,
- 'type_hint' => '',
- 'nullable_type' => false,
- );
-
- $start = ($this->phpcsFile->numTokens - 1);
- $function = $this->phpcsFile->findPrevious(
- T_COMMENT,
- $start,
- null,
- false,
- '/* testDefaultValues */'
- );
-
- $found = $this->phpcsFile->getMethodParameters(($function + 2));
- unset($found[0]['token']);
- unset($found[1]['token']);
- $this->assertSame($expected, $found);
-
- }//end testDefaultValues()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/IsCamelCapsTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/IsCamelCapsTest.php
deleted file mode 100644
index 9b7a3755..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Core/IsCamelCapsTest.php
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-/**
- * Tests for the \PHP_CodeSniffer\Util\Common::isCamelCaps method.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tests\Core;
-
-use PHP_CodeSniffer\Util\Common;
-
-class IsCamelCapsTest extends \PHPUnit_Framework_TestCase
-{
-
-
- /**
- * Test valid public function/method names.
- *
- * @return void
- */
- public function testValidNotClassFormatPublic()
- {
- $this->assertTrue(Common::isCamelCaps('thisIsCamelCaps', false, true, true));
- $this->assertTrue(Common::isCamelCaps('thisISCamelCaps', false, true, false));
-
- }//end testValidNotClassFormatPublic()
-
-
- /**
- * Test invalid public function/method names.
- *
- * @return void
- */
- public function testInvalidNotClassFormatPublic()
- {
- $this->assertFalse(Common::isCamelCaps('_thisIsCamelCaps', false, true, true));
- $this->assertFalse(Common::isCamelCaps('thisISCamelCaps', false, true, true));
- $this->assertFalse(Common::isCamelCaps('ThisIsCamelCaps', false, true, true));
-
- $this->assertFalse(Common::isCamelCaps('3thisIsCamelCaps', false, true, true));
- $this->assertFalse(Common::isCamelCaps('*thisIsCamelCaps', false, true, true));
- $this->assertFalse(Common::isCamelCaps('-thisIsCamelCaps', false, true, true));
-
- $this->assertFalse(Common::isCamelCaps('this*IsCamelCaps', false, true, true));
- $this->assertFalse(Common::isCamelCaps('this-IsCamelCaps', false, true, true));
- $this->assertFalse(Common::isCamelCaps('this_IsCamelCaps', false, true, true));
- $this->assertFalse(Common::isCamelCaps('this_is_camel_caps', false, true, true));
-
- }//end testInvalidNotClassFormatPublic()
-
-
- /**
- * Test valid private method names.
- *
- * @return void
- */
- public function testValidNotClassFormatPrivate()
- {
- $this->assertTrue(Common::isCamelCaps('_thisIsCamelCaps', false, false, true));
- $this->assertTrue(Common::isCamelCaps('_thisISCamelCaps', false, false, false));
- $this->assertTrue(Common::isCamelCaps('_i18N', false, false, true));
- $this->assertTrue(Common::isCamelCaps('_i18n', false, false, true));
-
- }//end testValidNotClassFormatPrivate()
-
-
- /**
- * Test invalid private method names.
- *
- * @return void
- */
- public function testInvalidNotClassFormatPrivate()
- {
- $this->assertFalse(Common::isCamelCaps('thisIsCamelCaps', false, false, true));
- $this->assertFalse(Common::isCamelCaps('_thisISCamelCaps', false, false, true));
- $this->assertFalse(Common::isCamelCaps('_ThisIsCamelCaps', false, false, true));
- $this->assertFalse(Common::isCamelCaps('__thisIsCamelCaps', false, false, true));
- $this->assertFalse(Common::isCamelCaps('__thisISCamelCaps', false, false, false));
-
- $this->assertFalse(Common::isCamelCaps('3thisIsCamelCaps', false, false, true));
- $this->assertFalse(Common::isCamelCaps('*thisIsCamelCaps', false, false, true));
- $this->assertFalse(Common::isCamelCaps('-thisIsCamelCaps', false, false, true));
- $this->assertFalse(Common::isCamelCaps('_this_is_camel_caps', false, false, true));
-
- }//end testInvalidNotClassFormatPrivate()
-
-
- /**
- * Test valid class names.
- *
- * @return void
- */
- public function testValidClassFormatPublic()
- {
- $this->assertTrue(Common::isCamelCaps('ThisIsCamelCaps', true, true, true));
- $this->assertTrue(Common::isCamelCaps('ThisISCamelCaps', true, true, false));
- $this->assertTrue(Common::isCamelCaps('This3IsCamelCaps', true, true, false));
-
- }//end testValidClassFormatPublic()
-
-
- /**
- * Test invalid class names.
- *
- * @return void
- */
- public function testInvalidClassFormat()
- {
- $this->assertFalse(Common::isCamelCaps('thisIsCamelCaps', true));
- $this->assertFalse(Common::isCamelCaps('This-IsCamelCaps', true));
- $this->assertFalse(Common::isCamelCaps('This_Is_Camel_Caps', true));
-
- }//end testInvalidClassFormat()
-
-
- /**
- * Test invalid class names with the private flag set.
- *
- * Note that the private flag is ignored if the class format
- * flag is set, so these names are all invalid.
- *
- * @return void
- */
- public function testInvalidClassFormatPrivate()
- {
- $this->assertFalse(Common::isCamelCaps('_ThisIsCamelCaps', true, true));
- $this->assertFalse(Common::isCamelCaps('_ThisIsCamelCaps', true, false));
-
- }//end testInvalidClassFormatPrivate()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Standards/AbstractSniffUnitTest.php b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Standards/AbstractSniffUnitTest.php
deleted file mode 100644
index 7eaec5a5..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Standards/AbstractSniffUnitTest.php
+++ /dev/null
@@ -1,444 +0,0 @@
-<?php
-/**
- * An abstract class that all sniff unit tests must extend.
- *
- * A sniff unit test checks a .inc file for expected violations of a single
- * coding standard. Expected errors and warnings that are not found, or
- * warnings and errors that are not expected, are considered test failures.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tests\Standards;
-
-use PHP_CodeSniffer\Config;
-use PHP_CodeSniffer\Exceptions\RuntimeException;
-use PHP_CodeSniffer\Ruleset;
-use PHP_CodeSniffer\Files\LocalFile;
-use PHP_CodeSniffer\Util\Common;
-
-abstract class AbstractSniffUnitTest extends \PHPUnit_Framework_TestCase
-{
-
- /**
- * Enable or disable the backup and restoration of the $GLOBALS array.
- * Overwrite this attribute in a child class of TestCase.
- * Setting this attribute in setUp() has no effect!
- *
- * @var boolean
- */
- protected $backupGlobals = false;
-
- /**
- * The path to the standard's main directory.
- *
- * @var string
- */
- public $standardsDir = null;
-
- /**
- * The path to the standard's test directory.
- *
- * @var string
- */
- public $testsDir = null;
-
-
- /**
- * Sets up this unit test.
- *
- * @return void
- */
- protected function setUp()
- {
- $class = get_class($this);
- $this->standardsDir = $GLOBALS['PHP_CODESNIFFER_STANDARD_DIRS'][$class];
- $this->testsDir = $GLOBALS['PHP_CODESNIFFER_TEST_DIRS'][$class];
-
- }//end setUp()
-
-
- /**
- * Get a list of all test files to check.
- *
- * These will have the same base as the sniff name but different extensions.
- * We ignore the .php file as it is the class.
- *
- * @param string $testFileBase The base path that the unit tests files will have.
- *
- * @return string[]
- */
- protected function getTestFiles($testFileBase)
- {
- $testFiles = array();
-
- $dir = substr($testFileBase, 0, strrpos($testFileBase, DIRECTORY_SEPARATOR));
- $di = new \DirectoryIterator($dir);
-
- foreach ($di as $file) {
- $path = $file->getPathname();
- if (substr($path, 0, strlen($testFileBase)) === $testFileBase) {
- if ($path !== $testFileBase.'php' && substr($path, -5) !== 'fixed') {
- $testFiles[] = $path;
- }
- }
- }
-
- // Put them in order.
- sort($testFiles);
-
- return $testFiles;
-
- }//end getTestFiles()
-
-
- /**
- * Should this test be skipped for some reason.
- *
- * @return void
- */
- protected function shouldSkipTest()
- {
- return false;
-
- }//end shouldSkipTest()
-
-
- /**
- * Tests the extending classes Sniff class.
- *
- * @return void
- * @throws PHPUnit_Framework_Error
- */
- final public function testSniff()
- {
- // Skip this test if we can't run in this environment.
- if ($this->shouldSkipTest() === true) {
- $this->markTestSkipped();
- }
-
- $sniffCode = Common::getSniffCode(get_class($this));
- list($standardName, $categoryName, $sniffName) = explode('.', $sniffCode);
-
- $testFileBase = $this->testsDir.$categoryName.DIRECTORY_SEPARATOR.$sniffName.'UnitTest.';
-
- // Get a list of all test files to check.
- $testFiles = $this->getTestFiles($testFileBase);
-
- if (isset($GLOBALS['PHP_CODESNIFFER_CONFIG']) === true) {
- $config = $GLOBALS['PHP_CODESNIFFER_CONFIG'];
- } else {
- $config = new Config();
- $config->cache = false;
- $GLOBALS['PHP_CODESNIFFER_CONFIG'] = $config;
- }
-
- $config->standards = array($standardName);
- $config->sniffs = array($sniffCode);
- $config->ignored = array();
-
- if (isset($GLOBALS['PHP_CODESNIFFER_RULESET']) === true) {
- $ruleset = $GLOBALS['PHP_CODESNIFFER_RULESET'];
-
- $sniffFile = $this->standardsDir.DIRECTORY_SEPARATOR.'Sniffs'.DIRECTORY_SEPARATOR.$categoryName.DIRECTORY_SEPARATOR.$sniffName.'Sniff.php';
-
- $sniffClassName = substr(get_class($this), 0, -8).'Sniff';
- $sniffClassName = str_replace('\Tests\\', '\Sniffs\\', $sniffClassName);
- $sniffClassName = Common::cleanSniffClass($sniffClassName);
-
- $restrictions = array(strtolower($sniffClassName) => true);
- $ruleset->registerSniffs(array($sniffFile), $restrictions, array());
- $ruleset->populateTokenListeners();
- } else {
- $ruleset = new Ruleset($config);
- $GLOBALS['PHP_CODESNIFFER_RULESET'] = $ruleset;
- }
-
- $failureMessages = array();
- foreach ($testFiles as $testFile) {
- $filename = basename($testFile);
- $oldConfig = $config->getSettings();
-
- try {
- $this->setCliValues($filename, $config);
- $phpcsFile = new LocalFile($testFile, $ruleset, $config);
- $phpcsFile->process();
- } catch (RuntimeException $e) {
- $this->fail('An unexpected exception has been caught: '.$e->getMessage());
- }
-
- $failures = $this->generateFailureMessages($phpcsFile);
- $failureMessages = array_merge($failureMessages, $failures);
-
- if ($phpcsFile->getFixableCount() > 0) {
- // Attempt to fix the errors.
- $phpcsFile->fixer->fixFile();
- $fixable = $phpcsFile->getFixableCount();
- if ($fixable > 0) {
- $failureMessages[] = "Failed to fix $fixable fixable violations in $filename";
- }
-
- // Check for a .fixed file to check for accuracy of fixes.
- $fixedFile = $testFile.'.fixed';
- if (file_exists($fixedFile) === true) {
- $diff = $phpcsFile->fixer->generateDiff($fixedFile);
- if (trim($diff) !== '') {
- $filename = basename($testFile);
- $fixedFilename = basename($fixedFile);
- $failureMessages[] = "Fixed version of $filename does not match expected version in $fixedFilename; the diff is\n$diff";
- }
- }
- }
-
- // Restore the config.
- $config->setSettings($oldConfig);
- }//end foreach
-
- if (empty($failureMessages) === false) {
- $this->fail(implode(PHP_EOL, $failureMessages));
- }
-
- }//end testSniff()
-
-
- /**
- * Generate a list of test failures for a given sniffed file.
- *
- * @param \PHP_CodeSniffer\Files\LocalFile $file The file being tested.
- *
- * @return array
- * @throws \PHP_CodeSniffer\Exceptions\RuntimeException
- */
- public function generateFailureMessages(LocalFile $file)
- {
- $testFile = $file->getFilename();
-
- $foundErrors = $file->getErrors();
- $foundWarnings = $file->getWarnings();
- $expectedErrors = $this->getErrorList(basename($testFile));
- $expectedWarnings = $this->getWarningList(basename($testFile));
-
- if (is_array($expectedErrors) === false) {
- throw new RuntimeException('getErrorList() must return an array');
- }
-
- if (is_array($expectedWarnings) === false) {
- throw new RuntimeException('getWarningList() must return an array');
- }
-
- /*
- We merge errors and warnings together to make it easier
- to iterate over them and produce the errors string. In this way,
- we can report on errors and warnings in the same line even though
- it's not really structured to allow that.
- */
-
- $allProblems = array();
- $failureMessages = array();
-
- foreach ($foundErrors as $line => $lineErrors) {
- foreach ($lineErrors as $column => $errors) {
- if (isset($allProblems[$line]) === false) {
- $allProblems[$line] = array(
- 'expected_errors' => 0,
- 'expected_warnings' => 0,
- 'found_errors' => array(),
- 'found_warnings' => array(),
- );
- }
-
- $foundErrorsTemp = array();
- foreach ($allProblems[$line]['found_errors'] as $foundError) {
- $foundErrorsTemp[] = $foundError;
- }
-
- $errorsTemp = array();
- foreach ($errors as $foundError) {
- $errorsTemp[] = $foundError['message'].' ('.$foundError['source'].')';
-
- $source = $foundError['source'];
- if (in_array($source, $GLOBALS['PHP_CODESNIFFER_SNIFF_CODES']) === false) {
- $GLOBALS['PHP_CODESNIFFER_SNIFF_CODES'][] = $source;
- }
-
- if ($foundError['fixable'] === true
- && in_array($source, $GLOBALS['PHP_CODESNIFFER_FIXABLE_CODES']) === false
- ) {
- $GLOBALS['PHP_CODESNIFFER_FIXABLE_CODES'][] = $source;
- }
- }
-
- $allProblems[$line]['found_errors'] = array_merge($foundErrorsTemp, $errorsTemp);
- }//end foreach
-
- if (isset($expectedErrors[$line]) === true) {
- $allProblems[$line]['expected_errors'] = $expectedErrors[$line];
- } else {
- $allProblems[$line]['expected_errors'] = 0;
- }
-
- unset($expectedErrors[$line]);
- }//end foreach
-
- foreach ($expectedErrors as $line => $numErrors) {
- if (isset($allProblems[$line]) === false) {
- $allProblems[$line] = array(
- 'expected_errors' => 0,
- 'expected_warnings' => 0,
- 'found_errors' => array(),
- 'found_warnings' => array(),
- );
- }
-
- $allProblems[$line]['expected_errors'] = $numErrors;
- }
-
- foreach ($foundWarnings as $line => $lineWarnings) {
- foreach ($lineWarnings as $column => $warnings) {
- if (isset($allProblems[$line]) === false) {
- $allProblems[$line] = array(
- 'expected_errors' => 0,
- 'expected_warnings' => 0,
- 'found_errors' => array(),
- 'found_warnings' => array(),
- );
- }
-
- $foundWarningsTemp = array();
- foreach ($allProblems[$line]['found_warnings'] as $foundWarning) {
- $foundWarningsTemp[] = $foundWarning;
- }
-
- $warningsTemp = array();
- foreach ($warnings as $warning) {
- $warningsTemp[] = $warning['message'].' ('.$warning['source'].')';
- }
-
- $allProblems[$line]['found_warnings'] = array_merge($foundWarningsTemp, $warningsTemp);
- }//end foreach
-
- if (isset($expectedWarnings[$line]) === true) {
- $allProblems[$line]['expected_warnings'] = $expectedWarnings[$line];
- } else {
- $allProblems[$line]['expected_warnings'] = 0;
- }
-
- unset($expectedWarnings[$line]);
- }//end foreach
-
- foreach ($expectedWarnings as $line => $numWarnings) {
- if (isset($allProblems[$line]) === false) {
- $allProblems[$line] = array(
- 'expected_errors' => 0,
- 'expected_warnings' => 0,
- 'found_errors' => array(),
- 'found_warnings' => array(),
- );
- }
-
- $allProblems[$line]['expected_warnings'] = $numWarnings;
- }
-
- // Order the messages by line number.
- ksort($allProblems);
-
- foreach ($allProblems as $line => $problems) {
- $numErrors = count($problems['found_errors']);
- $numWarnings = count($problems['found_warnings']);
- $expectedErrors = $problems['expected_errors'];
- $expectedWarnings = $problems['expected_warnings'];
-
- $errors = '';
- $foundString = '';
-
- if ($expectedErrors !== $numErrors || $expectedWarnings !== $numWarnings) {
- $lineMessage = "[LINE $line]";
- $expectedMessage = 'Expected ';
- $foundMessage = 'in '.basename($testFile).' but found ';
-
- if ($expectedErrors !== $numErrors) {
- $expectedMessage .= "$expectedErrors error(s)";
- $foundMessage .= "$numErrors error(s)";
- if ($numErrors !== 0) {
- $foundString .= 'error(s)';
- $errors .= implode(PHP_EOL.' -> ', $problems['found_errors']);
- }
-
- if ($expectedWarnings !== $numWarnings) {
- $expectedMessage .= ' and ';
- $foundMessage .= ' and ';
- if ($numWarnings !== 0) {
- if ($foundString !== '') {
- $foundString .= ' and ';
- }
- }
- }
- }
-
- if ($expectedWarnings !== $numWarnings) {
- $expectedMessage .= "$expectedWarnings warning(s)";
- $foundMessage .= "$numWarnings warning(s)";
- if ($numWarnings !== 0) {
- $foundString .= 'warning(s)';
- if (empty($errors) === false) {
- $errors .= PHP_EOL.' -> ';
- }
-
- $errors .= implode(PHP_EOL.' -> ', $problems['found_warnings']);
- }
- }
-
- $fullMessage = "$lineMessage $expectedMessage $foundMessage.";
- if ($errors !== '') {
- $fullMessage .= " The $foundString found were:".PHP_EOL." -> $errors";
- }
-
- $failureMessages[] = $fullMessage;
- }//end if
- }//end foreach
-
- return $failureMessages;
-
- }//end generateFailureMessages()
-
-
- /**
- * Get a list of CLI values to set before the file is tested.
- *
- * @param string $filename The name of the file being tested.
- * @param \PHP_CodeSniffer\Config $config The config data for the run.
- *
- * @return array
- */
- public function setCliValues($filename, $config)
- {
- return;
-
- }//end setCliValues()
-
-
- /**
- * Returns the lines where errors should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of errors that should occur on that line.
- *
- * @return array<int, int>
- */
- abstract protected function getErrorList();
-
-
- /**
- * Returns the lines where warnings should occur.
- *
- * The key of the array should represent the line number and the value
- * should represent the number of warnings that should occur on that line.
- *
- * @return array(int => int)
- */
- abstract protected function getWarningList();
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php b/www/wiki/vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php
deleted file mode 100644
index ff67a37f..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php
+++ /dev/null
@@ -1,138 +0,0 @@
-<?php
-/**
- * A test class for testing all sniffs for installed standards.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tests\Standards;
-
-use PHP_CodeSniffer\Util\Tokens;
-use PHP_CodeSniffer\Util\Standards;
-use PHP_CodeSniffer\Autoload;
-use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
-
-if (defined('PHP_CODESNIFFER_IN_TESTS') === false) {
- define('PHP_CODESNIFFER_IN_TESTS', true);
-}
-
-if (defined('PHP_CODESNIFFER_CBF') === false) {
- define('PHP_CODESNIFFER_CBF', false);
-}
-
-if (defined('PHP_CODESNIFFER_VERBOSITY') === false) {
- define('PHP_CODESNIFFER_VERBOSITY', 0);
-}
-
-if (is_file(__DIR__.'/../../autoload.php') === true) {
- include_once __DIR__.'/../../autoload.php';
-} else {
- include_once 'PHP/CodeSniffer/autoload.php';
-}
-
-$tokens = new Tokens();
-
-class AllSniffs
-{
-
-
- /**
- * Prepare the test runner.
- *
- * @return void
- */
- public static function main()
- {
- \PHPUnit_TextUI_TestRunner::run(self::suite());
-
- }//end main()
-
-
- /**
- * Add all sniff unit tests into a test suite.
- *
- * Sniff unit tests are found by recursing through the 'Tests' directory
- * of each installed coding standard.
- *
- * @return \PHPUnit_Framework_TestSuite
- */
- public static function suite()
- {
- $GLOBALS['PHP_CODESNIFFER_SNIFF_CODES'] = array();
- $GLOBALS['PHP_CODESNIFFER_FIXABLE_CODES'] = array();
-
- $suite = new \PHPUnit_Framework_TestSuite('PHP CodeSniffer Standards');
-
- $isInstalled = !is_file(__DIR__.'/../../autoload.php');
-
- // Optionally allow for ignoring the tests for one or more standards.
- $ignoreTestsForStandards = getenv('PHPCS_IGNORE_TESTS');
- if ($ignoreTestsForStandards === false) {
- $ignoreTestsForStandards = array();
- } else {
- $ignoreTestsForStandards = explode(',', $ignoreTestsForStandards);
- }
-
- $installedPaths = Standards::getInstalledStandardPaths();
-
- foreach ($installedPaths as $path) {
- $standards = Standards::getInstalledStandards(true, $path);
-
- // If the test is running PEAR installed, the built-in standards
- // are split into different directories; one for the sniffs and
- // a different file system location for tests.
- if ($isInstalled === true && is_dir($path.DIRECTORY_SEPARATOR.'Generic') === true) {
- $testPath = realpath(__DIR__.'/../../src/Standards');
- } else {
- $testPath = $path;
- }
-
- foreach ($standards as $standard) {
- if (in_array($standard, $ignoreTestsForStandards) === true) {
- continue;
- }
-
- $standardDir = $path.DIRECTORY_SEPARATOR.$standard;
- $testsDir = $testPath.DIRECTORY_SEPARATOR.$standard.DIRECTORY_SEPARATOR.'Tests'.DIRECTORY_SEPARATOR;
-
- if (is_dir($testsDir) === false) {
- // Check if the installed path is actually a standard itself.
- $standardDir = $path;
- $testsDir = $testPath.DIRECTORY_SEPARATOR.'Tests'.DIRECTORY_SEPARATOR;
- if (is_dir($testsDir) === false) {
- // No tests for this standard.
- continue;
- }
- }
-
- $di = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($testsDir));
-
- foreach ($di as $file) {
- // Skip hidden files.
- if (substr($file->getFilename(), 0, 1) === '.') {
- continue;
- }
-
- // Tests must have the extension 'php'.
- $parts = explode('.', $file);
- $ext = array_pop($parts);
- if ($ext !== 'php') {
- continue;
- }
-
- $className = Autoload::loadFile($file->getPathname());
- $GLOBALS['PHP_CODESNIFFER_STANDARD_DIRS'][$className] = $standardDir;
- $GLOBALS['PHP_CODESNIFFER_TEST_DIRS'][$className] = $testsDir;
- $suite->addTestSuite($className);
- }
- }//end foreach
- }//end foreach
-
- return $suite;
-
- }//end suite()
-
-
-}//end class
diff --git a/www/wiki/vendor/squizlabs/php_codesniffer/tests/TestSuite.php b/www/wiki/vendor/squizlabs/php_codesniffer/tests/TestSuite.php
deleted file mode 100644
index df2496d0..00000000
--- a/www/wiki/vendor/squizlabs/php_codesniffer/tests/TestSuite.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-/**
- * A PHP_CodeSniffer specific test suite for PHPUnit.
- *
- * @author Greg Sherwood <gsherwood@squiz.net>
- * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
- * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
- */
-
-namespace PHP_CodeSniffer\Tests;
-
-class TestSuite extends \PHPUnit_Framework_TestSuite
-{
-
-
- /**
- * Runs the tests and collects their result in a TestResult.
- *
- * @param \PHPUnit_Framework_TestResult $result A test result.
- * @param mixed $filter The filter passed to each test.
- *
- * @return \PHPUnit_Framework_TestResult
- */
- public function run(\PHPUnit_Framework_TestResult $result=null, $filter=false)
- {
- $result = parent::run($result, $filter);
-
- $codes = count($GLOBALS['PHP_CODESNIFFER_SNIFF_CODES']);
-
- echo PHP_EOL.PHP_EOL;
- echo "Tests generated $codes unique error codes";
- if ($codes > 0) {
- $fixes = count($GLOBALS['PHP_CODESNIFFER_FIXABLE_CODES']);
- $percent = round(($fixes / $codes * 100), 2);
- echo "; $fixes were fixable ($percent%)";
- }
-
- return $result;
-
- }//end run()
-
-
-}//end class
diff --git a/www/wiki/vendor/symfony/console/.gitignore b/www/wiki/vendor/symfony/console/.gitignore
deleted file mode 100644
index c49a5d8d..00000000
--- a/www/wiki/vendor/symfony/console/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-vendor/
-composer.lock
-phpunit.xml
diff --git a/www/wiki/vendor/symfony/console/Application.php b/www/wiki/vendor/symfony/console/Application.php
deleted file mode 100644
index 6cc5f5c5..00000000
--- a/www/wiki/vendor/symfony/console/Application.php
+++ /dev/null
@@ -1,1245 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Command\HelpCommand;
-use Symfony\Component\Console\Command\ListCommand;
-use Symfony\Component\Console\CommandLoader\CommandLoaderInterface;
-use Symfony\Component\Console\Event\ConsoleCommandEvent;
-use Symfony\Component\Console\Event\ConsoleErrorEvent;
-use Symfony\Component\Console\Event\ConsoleExceptionEvent;
-use Symfony\Component\Console\Event\ConsoleTerminateEvent;
-use Symfony\Component\Console\Exception\CommandNotFoundException;
-use Symfony\Component\Console\Exception\ExceptionInterface;
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Helper\DebugFormatterHelper;
-use Symfony\Component\Console\Helper\FormatterHelper;
-use Symfony\Component\Console\Helper\Helper;
-use Symfony\Component\Console\Helper\HelperSet;
-use Symfony\Component\Console\Helper\ProcessHelper;
-use Symfony\Component\Console\Helper\QuestionHelper;
-use Symfony\Component\Console\Input\ArgvInput;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputAwareInterface;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\StreamableInputInterface;
-use Symfony\Component\Console\Output\ConsoleOutput;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Debug\ErrorHandler;
-use Symfony\Component\Debug\Exception\FatalThrowableError;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
-
-/**
- * An Application is the container for a collection of commands.
- *
- * It is the main entry point of a Console application.
- *
- * This class is optimized for a standard CLI environment.
- *
- * Usage:
- *
- * $app = new Application('myapp', '1.0 (stable)');
- * $app->add(new SimpleCommand());
- * $app->run();
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class Application
-{
- private $commands = [];
- private $wantHelps = false;
- private $runningCommand;
- private $name;
- private $version;
- private $commandLoader;
- private $catchExceptions = true;
- private $autoExit = true;
- private $definition;
- private $helperSet;
- private $dispatcher;
- private $terminal;
- private $defaultCommand;
- private $singleCommand = false;
- private $initialized;
-
- /**
- * @param string $name The name of the application
- * @param string $version The version of the application
- */
- public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
- {
- $this->name = $name;
- $this->version = $version;
- $this->terminal = new Terminal();
- $this->defaultCommand = 'list';
- }
-
- public function setDispatcher(EventDispatcherInterface $dispatcher)
- {
- $this->dispatcher = $dispatcher;
- }
-
- public function setCommandLoader(CommandLoaderInterface $commandLoader)
- {
- $this->commandLoader = $commandLoader;
- }
-
- /**
- * Runs the current application.
- *
- * @return int 0 if everything went fine, or an error code
- *
- * @throws \Exception When running fails. Bypass this when {@link setCatchExceptions()}.
- */
- public function run(InputInterface $input = null, OutputInterface $output = null)
- {
- putenv('LINES='.$this->terminal->getHeight());
- putenv('COLUMNS='.$this->terminal->getWidth());
-
- if (null === $input) {
- $input = new ArgvInput();
- }
-
- if (null === $output) {
- $output = new ConsoleOutput();
- }
-
- $renderException = function ($e) use ($output) {
- if (!$e instanceof \Exception) {
- $e = class_exists(FatalThrowableError::class) ? new FatalThrowableError($e) : new \ErrorException($e->getMessage(), $e->getCode(), E_ERROR, $e->getFile(), $e->getLine());
- }
- if ($output instanceof ConsoleOutputInterface) {
- $this->renderException($e, $output->getErrorOutput());
- } else {
- $this->renderException($e, $output);
- }
- };
- if ($phpHandler = set_exception_handler($renderException)) {
- restore_exception_handler();
- if (!\is_array($phpHandler) || !$phpHandler[0] instanceof ErrorHandler) {
- $debugHandler = true;
- } elseif ($debugHandler = $phpHandler[0]->setExceptionHandler($renderException)) {
- $phpHandler[0]->setExceptionHandler($debugHandler);
- }
- }
-
- if (null !== $this->dispatcher && $this->dispatcher->hasListeners(ConsoleEvents::EXCEPTION)) {
- @trigger_error(sprintf('The "ConsoleEvents::EXCEPTION" event is deprecated since Symfony 3.3 and will be removed in 4.0. Listen to the "ConsoleEvents::ERROR" event instead.'), E_USER_DEPRECATED);
- }
-
- $this->configureIO($input, $output);
-
- try {
- $exitCode = $this->doRun($input, $output);
- } catch (\Exception $e) {
- if (!$this->catchExceptions) {
- throw $e;
- }
-
- $renderException($e);
-
- $exitCode = $e->getCode();
- if (is_numeric($exitCode)) {
- $exitCode = (int) $exitCode;
- if (0 === $exitCode) {
- $exitCode = 1;
- }
- } else {
- $exitCode = 1;
- }
- } finally {
- // if the exception handler changed, keep it
- // otherwise, unregister $renderException
- if (!$phpHandler) {
- if (set_exception_handler($renderException) === $renderException) {
- restore_exception_handler();
- }
- restore_exception_handler();
- } elseif (!$debugHandler) {
- $finalHandler = $phpHandler[0]->setExceptionHandler(null);
- if ($finalHandler !== $renderException) {
- $phpHandler[0]->setExceptionHandler($finalHandler);
- }
- }
- }
-
- if ($this->autoExit) {
- if ($exitCode > 255) {
- $exitCode = 255;
- }
-
- exit($exitCode);
- }
-
- return $exitCode;
- }
-
- /**
- * Runs the current application.
- *
- * @return int 0 if everything went fine, or an error code
- */
- public function doRun(InputInterface $input, OutputInterface $output)
- {
- if (true === $input->hasParameterOption(['--version', '-V'], true)) {
- $output->writeln($this->getLongVersion());
-
- return 0;
- }
-
- try {
- // Makes ArgvInput::getFirstArgument() able to distinguish an option from an argument.
- $input->bind($this->getDefinition());
- } catch (ExceptionInterface $e) {
- // Errors must be ignored, full binding/validation happens later when the command is known.
- }
-
- $name = $this->getCommandName($input);
- if (true === $input->hasParameterOption(['--help', '-h'], true)) {
- if (!$name) {
- $name = 'help';
- $input = new ArrayInput(['command_name' => $this->defaultCommand]);
- } else {
- $this->wantHelps = true;
- }
- }
-
- if (!$name) {
- $name = $this->defaultCommand;
- $definition = $this->getDefinition();
- $definition->setArguments(array_merge(
- $definition->getArguments(),
- [
- 'command' => new InputArgument('command', InputArgument::OPTIONAL, $definition->getArgument('command')->getDescription(), $name),
- ]
- ));
- }
-
- try {
- $e = $this->runningCommand = null;
- // the command name MUST be the first element of the input
- $command = $this->find($name);
- } catch (\Exception $e) {
- } catch (\Throwable $e) {
- }
- if (null !== $e) {
- if (null !== $this->dispatcher) {
- $event = new ConsoleErrorEvent($input, $output, $e);
- $this->dispatcher->dispatch(ConsoleEvents::ERROR, $event);
- $e = $event->getError();
-
- if (0 === $event->getExitCode()) {
- return 0;
- }
- }
-
- throw $e;
- }
-
- $this->runningCommand = $command;
- $exitCode = $this->doRunCommand($command, $input, $output);
- $this->runningCommand = null;
-
- return $exitCode;
- }
-
- public function setHelperSet(HelperSet $helperSet)
- {
- $this->helperSet = $helperSet;
- }
-
- /**
- * Get the helper set associated with the command.
- *
- * @return HelperSet The HelperSet instance associated with this command
- */
- public function getHelperSet()
- {
- if (!$this->helperSet) {
- $this->helperSet = $this->getDefaultHelperSet();
- }
-
- return $this->helperSet;
- }
-
- public function setDefinition(InputDefinition $definition)
- {
- $this->definition = $definition;
- }
-
- /**
- * Gets the InputDefinition related to this Application.
- *
- * @return InputDefinition The InputDefinition instance
- */
- public function getDefinition()
- {
- if (!$this->definition) {
- $this->definition = $this->getDefaultInputDefinition();
- }
-
- if ($this->singleCommand) {
- $inputDefinition = $this->definition;
- $inputDefinition->setArguments();
-
- return $inputDefinition;
- }
-
- return $this->definition;
- }
-
- /**
- * Gets the help message.
- *
- * @return string A help message
- */
- public function getHelp()
- {
- return $this->getLongVersion();
- }
-
- /**
- * Gets whether to catch exceptions or not during commands execution.
- *
- * @return bool Whether to catch exceptions or not during commands execution
- */
- public function areExceptionsCaught()
- {
- return $this->catchExceptions;
- }
-
- /**
- * Sets whether to catch exceptions or not during commands execution.
- *
- * @param bool $boolean Whether to catch exceptions or not during commands execution
- */
- public function setCatchExceptions($boolean)
- {
- $this->catchExceptions = (bool) $boolean;
- }
-
- /**
- * Gets whether to automatically exit after a command execution or not.
- *
- * @return bool Whether to automatically exit after a command execution or not
- */
- public function isAutoExitEnabled()
- {
- return $this->autoExit;
- }
-
- /**
- * Sets whether to automatically exit after a command execution or not.
- *
- * @param bool $boolean Whether to automatically exit after a command execution or not
- */
- public function setAutoExit($boolean)
- {
- $this->autoExit = (bool) $boolean;
- }
-
- /**
- * Gets the name of the application.
- *
- * @return string The application name
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Sets the application name.
- *
- * @param string $name The application name
- */
- public function setName($name)
- {
- $this->name = $name;
- }
-
- /**
- * Gets the application version.
- *
- * @return string The application version
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Sets the application version.
- *
- * @param string $version The application version
- */
- public function setVersion($version)
- {
- $this->version = $version;
- }
-
- /**
- * Returns the long version of the application.
- *
- * @return string The long application version
- */
- public function getLongVersion()
- {
- if ('UNKNOWN' !== $this->getName()) {
- if ('UNKNOWN' !== $this->getVersion()) {
- return sprintf('%s <info>%s</info>', $this->getName(), $this->getVersion());
- }
-
- return $this->getName();
- }
-
- return 'Console Tool';
- }
-
- /**
- * Registers a new command.
- *
- * @param string $name The command name
- *
- * @return Command The newly created command
- */
- public function register($name)
- {
- return $this->add(new Command($name));
- }
-
- /**
- * Adds an array of command objects.
- *
- * If a Command is not enabled it will not be added.
- *
- * @param Command[] $commands An array of commands
- */
- public function addCommands(array $commands)
- {
- foreach ($commands as $command) {
- $this->add($command);
- }
- }
-
- /**
- * Adds a command object.
- *
- * If a command with the same name already exists, it will be overridden.
- * If the command is not enabled it will not be added.
- *
- * @return Command|null The registered command if enabled or null
- */
- public function add(Command $command)
- {
- $this->init();
-
- $command->setApplication($this);
-
- if (!$command->isEnabled()) {
- $command->setApplication(null);
-
- return;
- }
-
- if (null === $command->getDefinition()) {
- throw new LogicException(sprintf('Command class "%s" is not correctly initialized. You probably forgot to call the parent constructor.', \get_class($command)));
- }
-
- if (!$command->getName()) {
- throw new LogicException(sprintf('The command defined in "%s" cannot have an empty name.', \get_class($command)));
- }
-
- $this->commands[$command->getName()] = $command;
-
- foreach ($command->getAliases() as $alias) {
- $this->commands[$alias] = $command;
- }
-
- return $command;
- }
-
- /**
- * Returns a registered command by name or alias.
- *
- * @param string $name The command name or alias
- *
- * @return Command A Command object
- *
- * @throws CommandNotFoundException When given command name does not exist
- */
- public function get($name)
- {
- $this->init();
-
- if (!$this->has($name)) {
- throw new CommandNotFoundException(sprintf('The command "%s" does not exist.', $name));
- }
-
- $command = $this->commands[$name];
-
- if ($this->wantHelps) {
- $this->wantHelps = false;
-
- $helpCommand = $this->get('help');
- $helpCommand->setCommand($command);
-
- return $helpCommand;
- }
-
- return $command;
- }
-
- /**
- * Returns true if the command exists, false otherwise.
- *
- * @param string $name The command name or alias
- *
- * @return bool true if the command exists, false otherwise
- */
- public function has($name)
- {
- $this->init();
-
- return isset($this->commands[$name]) || ($this->commandLoader && $this->commandLoader->has($name) && $this->add($this->commandLoader->get($name)));
- }
-
- /**
- * Returns an array of all unique namespaces used by currently registered commands.
- *
- * It does not return the global namespace which always exists.
- *
- * @return string[] An array of namespaces
- */
- public function getNamespaces()
- {
- $namespaces = [];
- foreach ($this->all() as $command) {
- $namespaces = array_merge($namespaces, $this->extractAllNamespaces($command->getName()));
-
- foreach ($command->getAliases() as $alias) {
- $namespaces = array_merge($namespaces, $this->extractAllNamespaces($alias));
- }
- }
-
- return array_values(array_unique(array_filter($namespaces)));
- }
-
- /**
- * Finds a registered namespace by a name or an abbreviation.
- *
- * @param string $namespace A namespace or abbreviation to search for
- *
- * @return string A registered namespace
- *
- * @throws CommandNotFoundException When namespace is incorrect or ambiguous
- */
- public function findNamespace($namespace)
- {
- $allNamespaces = $this->getNamespaces();
- $expr = preg_replace_callback('{([^:]+|)}', function ($matches) { return preg_quote($matches[1]).'[^:]*'; }, $namespace);
- $namespaces = preg_grep('{^'.$expr.'}', $allNamespaces);
-
- if (empty($namespaces)) {
- $message = sprintf('There are no commands defined in the "%s" namespace.', $namespace);
-
- if ($alternatives = $this->findAlternatives($namespace, $allNamespaces)) {
- if (1 == \count($alternatives)) {
- $message .= "\n\nDid you mean this?\n ";
- } else {
- $message .= "\n\nDid you mean one of these?\n ";
- }
-
- $message .= implode("\n ", $alternatives);
- }
-
- throw new CommandNotFoundException($message, $alternatives);
- }
-
- $exact = \in_array($namespace, $namespaces, true);
- if (\count($namespaces) > 1 && !$exact) {
- throw new CommandNotFoundException(sprintf("The namespace \"%s\" is ambiguous.\nDid you mean one of these?\n%s", $namespace, $this->getAbbreviationSuggestions(array_values($namespaces))), array_values($namespaces));
- }
-
- return $exact ? $namespace : reset($namespaces);
- }
-
- /**
- * Finds a command by name or alias.
- *
- * Contrary to get, this command tries to find the best
- * match if you give it an abbreviation of a name or alias.
- *
- * @param string $name A command name or a command alias
- *
- * @return Command A Command instance
- *
- * @throws CommandNotFoundException When command name is incorrect or ambiguous
- */
- public function find($name)
- {
- $this->init();
-
- $aliases = [];
- $allCommands = $this->commandLoader ? array_merge($this->commandLoader->getNames(), array_keys($this->commands)) : array_keys($this->commands);
- $expr = preg_replace_callback('{([^:]+|)}', function ($matches) { return preg_quote($matches[1]).'[^:]*'; }, $name);
- $commands = preg_grep('{^'.$expr.'}', $allCommands);
-
- if (empty($commands)) {
- $commands = preg_grep('{^'.$expr.'}i', $allCommands);
- }
-
- // if no commands matched or we just matched namespaces
- if (empty($commands) || \count(preg_grep('{^'.$expr.'$}i', $commands)) < 1) {
- if (false !== $pos = strrpos($name, ':')) {
- // check if a namespace exists and contains commands
- $this->findNamespace(substr($name, 0, $pos));
- }
-
- $message = sprintf('Command "%s" is not defined.', $name);
-
- if ($alternatives = $this->findAlternatives($name, $allCommands)) {
- if (1 == \count($alternatives)) {
- $message .= "\n\nDid you mean this?\n ";
- } else {
- $message .= "\n\nDid you mean one of these?\n ";
- }
- $message .= implode("\n ", $alternatives);
- }
-
- throw new CommandNotFoundException($message, $alternatives);
- }
-
- // filter out aliases for commands which are already on the list
- if (\count($commands) > 1) {
- $commandList = $this->commandLoader ? array_merge(array_flip($this->commandLoader->getNames()), $this->commands) : $this->commands;
- $commands = array_unique(array_filter($commands, function ($nameOrAlias) use ($commandList, $commands, &$aliases) {
- $commandName = $commandList[$nameOrAlias] instanceof Command ? $commandList[$nameOrAlias]->getName() : $nameOrAlias;
- $aliases[$nameOrAlias] = $commandName;
-
- return $commandName === $nameOrAlias || !\in_array($commandName, $commands);
- }));
- }
-
- $exact = \in_array($name, $commands, true) || isset($aliases[$name]);
- if (\count($commands) > 1 && !$exact) {
- $usableWidth = $this->terminal->getWidth() - 10;
- $abbrevs = array_values($commands);
- $maxLen = 0;
- foreach ($abbrevs as $abbrev) {
- $maxLen = max(Helper::strlen($abbrev), $maxLen);
- }
- $abbrevs = array_map(function ($cmd) use ($commandList, $usableWidth, $maxLen) {
- if (!$commandList[$cmd] instanceof Command) {
- return $cmd;
- }
- $abbrev = str_pad($cmd, $maxLen, ' ').' '.$commandList[$cmd]->getDescription();
-
- return Helper::strlen($abbrev) > $usableWidth ? Helper::substr($abbrev, 0, $usableWidth - 3).'...' : $abbrev;
- }, array_values($commands));
- $suggestions = $this->getAbbreviationSuggestions($abbrevs);
-
- throw new CommandNotFoundException(sprintf("Command \"%s\" is ambiguous.\nDid you mean one of these?\n%s", $name, $suggestions), array_values($commands));
- }
-
- return $this->get($exact ? $name : reset($commands));
- }
-
- /**
- * Gets the commands (registered in the given namespace if provided).
- *
- * The array keys are the full names and the values the command instances.
- *
- * @param string $namespace A namespace name
- *
- * @return Command[] An array of Command instances
- */
- public function all($namespace = null)
- {
- $this->init();
-
- if (null === $namespace) {
- if (!$this->commandLoader) {
- return $this->commands;
- }
-
- $commands = $this->commands;
- foreach ($this->commandLoader->getNames() as $name) {
- if (!isset($commands[$name]) && $this->has($name)) {
- $commands[$name] = $this->get($name);
- }
- }
-
- return $commands;
- }
-
- $commands = [];
- foreach ($this->commands as $name => $command) {
- if ($namespace === $this->extractNamespace($name, substr_count($namespace, ':') + 1)) {
- $commands[$name] = $command;
- }
- }
-
- if ($this->commandLoader) {
- foreach ($this->commandLoader->getNames() as $name) {
- if (!isset($commands[$name]) && $namespace === $this->extractNamespace($name, substr_count($namespace, ':') + 1) && $this->has($name)) {
- $commands[$name] = $this->get($name);
- }
- }
- }
-
- return $commands;
- }
-
- /**
- * Returns an array of possible abbreviations given a set of names.
- *
- * @param array $names An array of names
- *
- * @return array An array of abbreviations
- */
- public static function getAbbreviations($names)
- {
- $abbrevs = [];
- foreach ($names as $name) {
- for ($len = \strlen($name); $len > 0; --$len) {
- $abbrev = substr($name, 0, $len);
- $abbrevs[$abbrev][] = $name;
- }
- }
-
- return $abbrevs;
- }
-
- /**
- * Renders a caught exception.
- */
- public function renderException(\Exception $e, OutputInterface $output)
- {
- $output->writeln('', OutputInterface::VERBOSITY_QUIET);
-
- $this->doRenderException($e, $output);
-
- if (null !== $this->runningCommand) {
- $output->writeln(sprintf('<info>%s</info>', sprintf($this->runningCommand->getSynopsis(), $this->getName())), OutputInterface::VERBOSITY_QUIET);
- $output->writeln('', OutputInterface::VERBOSITY_QUIET);
- }
- }
-
- protected function doRenderException(\Exception $e, OutputInterface $output)
- {
- do {
- $message = trim($e->getMessage());
- if ('' === $message || OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
- $title = sprintf(' [%s%s] ', \get_class($e), 0 !== ($code = $e->getCode()) ? ' ('.$code.')' : '');
- $len = Helper::strlen($title);
- } else {
- $len = 0;
- }
-
- $width = $this->terminal->getWidth() ? $this->terminal->getWidth() - 1 : PHP_INT_MAX;
- // HHVM only accepts 32 bits integer in str_split, even when PHP_INT_MAX is a 64 bit integer: https://github.com/facebook/hhvm/issues/1327
- if (\defined('HHVM_VERSION') && $width > 1 << 31) {
- $width = 1 << 31;
- }
- $lines = [];
- foreach ('' !== $message ? preg_split('/\r?\n/', $message) : [] as $line) {
- foreach ($this->splitStringByWidth($line, $width - 4) as $line) {
- // pre-format lines to get the right string length
- $lineLength = Helper::strlen($line) + 4;
- $lines[] = [$line, $lineLength];
-
- $len = max($lineLength, $len);
- }
- }
-
- $messages = [];
- if (!$e instanceof ExceptionInterface || OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
- $messages[] = sprintf('<comment>%s</comment>', OutputFormatter::escape(sprintf('In %s line %s:', basename($e->getFile()) ?: 'n/a', $e->getLine() ?: 'n/a')));
- }
- $messages[] = $emptyLine = sprintf('<error>%s</error>', str_repeat(' ', $len));
- if ('' === $message || OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
- $messages[] = sprintf('<error>%s%s</error>', $title, str_repeat(' ', max(0, $len - Helper::strlen($title))));
- }
- foreach ($lines as $line) {
- $messages[] = sprintf('<error> %s %s</error>', OutputFormatter::escape($line[0]), str_repeat(' ', $len - $line[1]));
- }
- $messages[] = $emptyLine;
- $messages[] = '';
-
- $output->writeln($messages, OutputInterface::VERBOSITY_QUIET);
-
- if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
- $output->writeln('<comment>Exception trace:</comment>', OutputInterface::VERBOSITY_QUIET);
-
- // exception related properties
- $trace = $e->getTrace();
-
- array_unshift($trace, [
- 'function' => '',
- 'file' => $e->getFile() ?: 'n/a',
- 'line' => $e->getLine() ?: 'n/a',
- 'args' => [],
- ]);
-
- for ($i = 0, $count = \count($trace); $i < $count; ++$i) {
- $class = isset($trace[$i]['class']) ? $trace[$i]['class'] : '';
- $type = isset($trace[$i]['type']) ? $trace[$i]['type'] : '';
- $function = $trace[$i]['function'];
- $file = isset($trace[$i]['file']) ? $trace[$i]['file'] : 'n/a';
- $line = isset($trace[$i]['line']) ? $trace[$i]['line'] : 'n/a';
-
- $output->writeln(sprintf(' %s%s%s() at <info>%s:%s</info>', $class, $type, $function, $file, $line), OutputInterface::VERBOSITY_QUIET);
- }
-
- $output->writeln('', OutputInterface::VERBOSITY_QUIET);
- }
- } while ($e = $e->getPrevious());
- }
-
- /**
- * Tries to figure out the terminal width in which this application runs.
- *
- * @return int|null
- *
- * @deprecated since version 3.2, to be removed in 4.0. Create a Terminal instance instead.
- */
- protected function getTerminalWidth()
- {
- @trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
-
- return $this->terminal->getWidth();
- }
-
- /**
- * Tries to figure out the terminal height in which this application runs.
- *
- * @return int|null
- *
- * @deprecated since version 3.2, to be removed in 4.0. Create a Terminal instance instead.
- */
- protected function getTerminalHeight()
- {
- @trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
-
- return $this->terminal->getHeight();
- }
-
- /**
- * Tries to figure out the terminal dimensions based on the current environment.
- *
- * @return array Array containing width and height
- *
- * @deprecated since version 3.2, to be removed in 4.0. Create a Terminal instance instead.
- */
- public function getTerminalDimensions()
- {
- @trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
-
- return [$this->terminal->getWidth(), $this->terminal->getHeight()];
- }
-
- /**
- * Sets terminal dimensions.
- *
- * Can be useful to force terminal dimensions for functional tests.
- *
- * @param int $width The width
- * @param int $height The height
- *
- * @return $this
- *
- * @deprecated since version 3.2, to be removed in 4.0. Set the COLUMNS and LINES env vars instead.
- */
- public function setTerminalDimensions($width, $height)
- {
- @trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Set the COLUMNS and LINES env vars instead.', __METHOD__), E_USER_DEPRECATED);
-
- putenv('COLUMNS='.$width);
- putenv('LINES='.$height);
-
- return $this;
- }
-
- /**
- * Configures the input and output instances based on the user arguments and options.
- */
- protected function configureIO(InputInterface $input, OutputInterface $output)
- {
- if (true === $input->hasParameterOption(['--ansi'], true)) {
- $output->setDecorated(true);
- } elseif (true === $input->hasParameterOption(['--no-ansi'], true)) {
- $output->setDecorated(false);
- }
-
- if (true === $input->hasParameterOption(['--no-interaction', '-n'], true)) {
- $input->setInteractive(false);
- } elseif (\function_exists('posix_isatty')) {
- $inputStream = null;
-
- if ($input instanceof StreamableInputInterface) {
- $inputStream = $input->getStream();
- }
-
- // This check ensures that calling QuestionHelper::setInputStream() works
- // To be removed in 4.0 (in the same time as QuestionHelper::setInputStream)
- if (!$inputStream && $this->getHelperSet()->has('question')) {
- $inputStream = $this->getHelperSet()->get('question')->getInputStream(false);
- }
-
- if (!@posix_isatty($inputStream) && false === getenv('SHELL_INTERACTIVE')) {
- $input->setInteractive(false);
- }
- }
-
- switch ($shellVerbosity = (int) getenv('SHELL_VERBOSITY')) {
- case -1: $output->setVerbosity(OutputInterface::VERBOSITY_QUIET); break;
- case 1: $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE); break;
- case 2: $output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE); break;
- case 3: $output->setVerbosity(OutputInterface::VERBOSITY_DEBUG); break;
- default: $shellVerbosity = 0; break;
- }
-
- if (true === $input->hasParameterOption(['--quiet', '-q'], true)) {
- $output->setVerbosity(OutputInterface::VERBOSITY_QUIET);
- $shellVerbosity = -1;
- } else {
- if ($input->hasParameterOption('-vvv', true) || $input->hasParameterOption('--verbose=3', true) || 3 === $input->getParameterOption('--verbose', false, true)) {
- $output->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
- $shellVerbosity = 3;
- } elseif ($input->hasParameterOption('-vv', true) || $input->hasParameterOption('--verbose=2', true) || 2 === $input->getParameterOption('--verbose', false, true)) {
- $output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE);
- $shellVerbosity = 2;
- } elseif ($input->hasParameterOption('-v', true) || $input->hasParameterOption('--verbose=1', true) || $input->hasParameterOption('--verbose', true) || $input->getParameterOption('--verbose', false, true)) {
- $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
- $shellVerbosity = 1;
- }
- }
-
- if (-1 === $shellVerbosity) {
- $input->setInteractive(false);
- }
-
- putenv('SHELL_VERBOSITY='.$shellVerbosity);
- $_ENV['SHELL_VERBOSITY'] = $shellVerbosity;
- $_SERVER['SHELL_VERBOSITY'] = $shellVerbosity;
- }
-
- /**
- * Runs the current command.
- *
- * If an event dispatcher has been attached to the application,
- * events are also dispatched during the life-cycle of the command.
- *
- * @return int 0 if everything went fine, or an error code
- */
- protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output)
- {
- foreach ($command->getHelperSet() as $helper) {
- if ($helper instanceof InputAwareInterface) {
- $helper->setInput($input);
- }
- }
-
- if (null === $this->dispatcher) {
- return $command->run($input, $output);
- }
-
- // bind before the console.command event, so the listeners have access to input options/arguments
- try {
- $command->mergeApplicationDefinition();
- $input->bind($command->getDefinition());
- } catch (ExceptionInterface $e) {
- // ignore invalid options/arguments for now, to allow the event listeners to customize the InputDefinition
- }
-
- $event = new ConsoleCommandEvent($command, $input, $output);
- $e = null;
-
- try {
- $this->dispatcher->dispatch(ConsoleEvents::COMMAND, $event);
-
- if ($event->commandShouldRun()) {
- $exitCode = $command->run($input, $output);
- } else {
- $exitCode = ConsoleCommandEvent::RETURN_CODE_DISABLED;
- }
- } catch (\Exception $e) {
- } catch (\Throwable $e) {
- }
- if (null !== $e) {
- if ($this->dispatcher->hasListeners(ConsoleEvents::EXCEPTION)) {
- $x = $e instanceof \Exception ? $e : new FatalThrowableError($e);
- $event = new ConsoleExceptionEvent($command, $input, $output, $x, $x->getCode());
- $this->dispatcher->dispatch(ConsoleEvents::EXCEPTION, $event);
-
- if ($x !== $event->getException()) {
- $e = $event->getException();
- }
- }
- $event = new ConsoleErrorEvent($input, $output, $e, $command);
- $this->dispatcher->dispatch(ConsoleEvents::ERROR, $event);
- $e = $event->getError();
-
- if (0 === $exitCode = $event->getExitCode()) {
- $e = null;
- }
- }
-
- $event = new ConsoleTerminateEvent($command, $input, $output, $exitCode);
- $this->dispatcher->dispatch(ConsoleEvents::TERMINATE, $event);
-
- if (null !== $e) {
- throw $e;
- }
-
- return $event->getExitCode();
- }
-
- /**
- * Gets the name of the command based on input.
- *
- * @return string The command name
- */
- protected function getCommandName(InputInterface $input)
- {
- return $this->singleCommand ? $this->defaultCommand : $input->getFirstArgument();
- }
-
- /**
- * Gets the default input definition.
- *
- * @return InputDefinition An InputDefinition instance
- */
- protected function getDefaultInputDefinition()
- {
- return new InputDefinition([
- new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),
-
- new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message'),
- new InputOption('--quiet', '-q', InputOption::VALUE_NONE, 'Do not output any message'),
- new InputOption('--verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug'),
- new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this application version'),
- new InputOption('--ansi', '', InputOption::VALUE_NONE, 'Force ANSI output'),
- new InputOption('--no-ansi', '', InputOption::VALUE_NONE, 'Disable ANSI output'),
- new InputOption('--no-interaction', '-n', InputOption::VALUE_NONE, 'Do not ask any interactive question'),
- ]);
- }
-
- /**
- * Gets the default commands that should always be available.
- *
- * @return Command[] An array of default Command instances
- */
- protected function getDefaultCommands()
- {
- return [new HelpCommand(), new ListCommand()];
- }
-
- /**
- * Gets the default helper set with the helpers that should always be available.
- *
- * @return HelperSet A HelperSet instance
- */
- protected function getDefaultHelperSet()
- {
- return new HelperSet([
- new FormatterHelper(),
- new DebugFormatterHelper(),
- new ProcessHelper(),
- new QuestionHelper(),
- ]);
- }
-
- /**
- * Returns abbreviated suggestions in string format.
- *
- * @param array $abbrevs Abbreviated suggestions to convert
- *
- * @return string A formatted string of abbreviated suggestions
- */
- private function getAbbreviationSuggestions($abbrevs)
- {
- return ' '.implode("\n ", $abbrevs);
- }
-
- /**
- * Returns the namespace part of the command name.
- *
- * This method is not part of public API and should not be used directly.
- *
- * @param string $name The full name of the command
- * @param string $limit The maximum number of parts of the namespace
- *
- * @return string The namespace of the command
- */
- public function extractNamespace($name, $limit = null)
- {
- $parts = explode(':', $name);
- array_pop($parts);
-
- return implode(':', null === $limit ? $parts : \array_slice($parts, 0, $limit));
- }
-
- /**
- * Finds alternative of $name among $collection,
- * if nothing is found in $collection, try in $abbrevs.
- *
- * @param string $name The string
- * @param iterable $collection The collection
- *
- * @return string[] A sorted array of similar string
- */
- private function findAlternatives($name, $collection)
- {
- $threshold = 1e3;
- $alternatives = [];
-
- $collectionParts = [];
- foreach ($collection as $item) {
- $collectionParts[$item] = explode(':', $item);
- }
-
- foreach (explode(':', $name) as $i => $subname) {
- foreach ($collectionParts as $collectionName => $parts) {
- $exists = isset($alternatives[$collectionName]);
- if (!isset($parts[$i]) && $exists) {
- $alternatives[$collectionName] += $threshold;
- continue;
- } elseif (!isset($parts[$i])) {
- continue;
- }
-
- $lev = levenshtein($subname, $parts[$i]);
- if ($lev <= \strlen($subname) / 3 || '' !== $subname && false !== strpos($parts[$i], $subname)) {
- $alternatives[$collectionName] = $exists ? $alternatives[$collectionName] + $lev : $lev;
- } elseif ($exists) {
- $alternatives[$collectionName] += $threshold;
- }
- }
- }
-
- foreach ($collection as $item) {
- $lev = levenshtein($name, $item);
- if ($lev <= \strlen($name) / 3 || false !== strpos($item, $name)) {
- $alternatives[$item] = isset($alternatives[$item]) ? $alternatives[$item] - $lev : $lev;
- }
- }
-
- $alternatives = array_filter($alternatives, function ($lev) use ($threshold) { return $lev < 2 * $threshold; });
- ksort($alternatives, SORT_NATURAL | SORT_FLAG_CASE);
-
- return array_keys($alternatives);
- }
-
- /**
- * Sets the default Command name.
- *
- * @param string $commandName The Command name
- * @param bool $isSingleCommand Set to true if there is only one command in this application
- *
- * @return self
- */
- public function setDefaultCommand($commandName, $isSingleCommand = false)
- {
- $this->defaultCommand = $commandName;
-
- if ($isSingleCommand) {
- // Ensure the command exist
- $this->find($commandName);
-
- $this->singleCommand = true;
- }
-
- return $this;
- }
-
- /**
- * @internal
- */
- public function isSingleCommand()
- {
- return $this->singleCommand;
- }
-
- private function splitStringByWidth($string, $width)
- {
- // str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly.
- // additionally, array_slice() is not enough as some character has doubled width.
- // we need a function to split string not by character count but by string width
- if (false === $encoding = mb_detect_encoding($string, null, true)) {
- return str_split($string, $width);
- }
-
- $utf8String = mb_convert_encoding($string, 'utf8', $encoding);
- $lines = [];
- $line = '';
- foreach (preg_split('//u', $utf8String) as $char) {
- // test if $char could be appended to current line
- if (mb_strwidth($line.$char, 'utf8') <= $width) {
- $line .= $char;
- continue;
- }
- // if not, push current line to array and make new line
- $lines[] = str_pad($line, $width);
- $line = $char;
- }
-
- $lines[] = \count($lines) ? str_pad($line, $width) : $line;
-
- mb_convert_variables($encoding, 'utf8', $lines);
-
- return $lines;
- }
-
- /**
- * Returns all namespaces of the command name.
- *
- * @param string $name The full name of the command
- *
- * @return string[] The namespaces of the command
- */
- private function extractAllNamespaces($name)
- {
- // -1 as third argument is needed to skip the command short name when exploding
- $parts = explode(':', $name, -1);
- $namespaces = [];
-
- foreach ($parts as $part) {
- if (\count($namespaces)) {
- $namespaces[] = end($namespaces).':'.$part;
- } else {
- $namespaces[] = $part;
- }
- }
-
- return $namespaces;
- }
-
- private function init()
- {
- if ($this->initialized) {
- return;
- }
- $this->initialized = true;
-
- foreach ($this->getDefaultCommands() as $command) {
- $this->add($command);
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/CHANGELOG.md b/www/wiki/vendor/symfony/console/CHANGELOG.md
deleted file mode 100644
index 946ff1e0..00000000
--- a/www/wiki/vendor/symfony/console/CHANGELOG.md
+++ /dev/null
@@ -1,112 +0,0 @@
-CHANGELOG
-=========
-
-3.4.0
------
-
- * added `SHELL_VERBOSITY` env var to control verbosity
- * added `CommandLoaderInterface`, `FactoryCommandLoader` and PSR-11
- `ContainerCommandLoader` for commands lazy-loading
- * added a case-insensitive command name matching fallback
- * added static `Command::$defaultName/getDefaultName()`, allowing for
- commands to be registered at compile time in the application command loader.
- Setting the `$defaultName` property avoids the need for filling the `command`
- attribute on the `console.command` tag when using `AddConsoleCommandPass`.
-
-3.3.0
------
-
-* added `ExceptionListener`
-* added `AddConsoleCommandPass` (originally in FrameworkBundle)
-* [BC BREAK] `Input::getOption()` no longer returns the default value for options
- with value optional explicitly passed empty
-* added console.error event to catch exceptions thrown by other listeners
-* deprecated console.exception event in favor of console.error
-* added ability to handle `CommandNotFoundException` through the
- `console.error` event
-* deprecated default validation in `SymfonyQuestionHelper::ask`
-
-3.2.0
-------
-
-* added `setInputs()` method to CommandTester for ease testing of commands expecting inputs
-* added `setStream()` and `getStream()` methods to Input (implement StreamableInputInterface)
-* added StreamableInputInterface
-* added LockableTrait
-
-3.1.0
------
-
- * added truncate method to FormatterHelper
- * added setColumnWidth(s) method to Table
-
-2.8.3
------
-
- * remove readline support from the question helper as it caused issues
-
-2.8.0
------
-
- * use readline for user input in the question helper when available to allow
- the use of arrow keys
-
-2.6.0
------
-
- * added a Process helper
- * added a DebugFormatter helper
-
-2.5.0
------
-
- * deprecated the dialog helper (use the question helper instead)
- * deprecated TableHelper in favor of Table
- * deprecated ProgressHelper in favor of ProgressBar
- * added ConsoleLogger
- * added a question helper
- * added a way to set the process name of a command
- * added a way to set a default command instead of `ListCommand`
-
-2.4.0
------
-
- * added a way to force terminal dimensions
- * added a convenient method to detect verbosity level
- * [BC BREAK] made descriptors use output instead of returning a string
-
-2.3.0
------
-
- * added multiselect support to the select dialog helper
- * added Table Helper for tabular data rendering
- * added support for events in `Application`
- * added a way to normalize EOLs in `ApplicationTester::getDisplay()` and `CommandTester::getDisplay()`
- * added a way to set the progress bar progress via the `setCurrent` method
- * added support for multiple InputOption shortcuts, written as `'-a|-b|-c'`
- * added two additional verbosity levels, VERBOSITY_VERY_VERBOSE and VERBOSITY_DEBUG
-
-2.2.0
------
-
- * added support for colorization on Windows via ConEmu
- * add a method to Dialog Helper to ask for a question and hide the response
- * added support for interactive selections in console (DialogHelper::select())
- * added support for autocompletion as you type in Dialog Helper
-
-2.1.0
------
-
- * added ConsoleOutputInterface
- * added the possibility to disable a command (Command::isEnabled())
- * added suggestions when a command does not exist
- * added a --raw option to the list command
- * added support for STDERR in the console output class (errors are now sent
- to STDERR)
- * made the defaults (helper set, commands, input definition) in Application
- more easily customizable
- * added support for the shell even if readline is not available
- * added support for process isolation in Symfony shell via
- `--process-isolation` switch
- * added support for `--`, which disables options parsing after that point
- (tokens will be parsed as arguments)
diff --git a/www/wiki/vendor/symfony/console/Command/Command.php b/www/wiki/vendor/symfony/console/Command/Command.php
deleted file mode 100644
index 5f30da7a..00000000
--- a/www/wiki/vendor/symfony/console/Command/Command.php
+++ /dev/null
@@ -1,664 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Command;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Exception\ExceptionInterface;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Helper\HelperSet;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Base class for all commands.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class Command
-{
- /**
- * @var string|null The default command name
- */
- protected static $defaultName;
-
- private $application;
- private $name;
- private $processTitle;
- private $aliases = [];
- private $definition;
- private $hidden = false;
- private $help;
- private $description;
- private $ignoreValidationErrors = false;
- private $applicationDefinitionMerged = false;
- private $applicationDefinitionMergedWithArgs = false;
- private $code;
- private $synopsis = [];
- private $usages = [];
- private $helperSet;
-
- /**
- * @return string|null The default command name or null when no default name is set
- */
- public static function getDefaultName()
- {
- $class = \get_called_class();
- $r = new \ReflectionProperty($class, 'defaultName');
-
- return $class === $r->class ? static::$defaultName : null;
- }
-
- /**
- * @param string|null $name The name of the command; passing null means it must be set in configure()
- *
- * @throws LogicException When the command name is empty
- */
- public function __construct($name = null)
- {
- $this->definition = new InputDefinition();
-
- if (null !== $name || null !== $name = static::getDefaultName()) {
- $this->setName($name);
- }
-
- $this->configure();
- }
-
- /**
- * Ignores validation errors.
- *
- * This is mainly useful for the help command.
- */
- public function ignoreValidationErrors()
- {
- $this->ignoreValidationErrors = true;
- }
-
- public function setApplication(Application $application = null)
- {
- $this->application = $application;
- if ($application) {
- $this->setHelperSet($application->getHelperSet());
- } else {
- $this->helperSet = null;
- }
- }
-
- public function setHelperSet(HelperSet $helperSet)
- {
- $this->helperSet = $helperSet;
- }
-
- /**
- * Gets the helper set.
- *
- * @return HelperSet A HelperSet instance
- */
- public function getHelperSet()
- {
- return $this->helperSet;
- }
-
- /**
- * Gets the application instance for this command.
- *
- * @return Application An Application instance
- */
- public function getApplication()
- {
- return $this->application;
- }
-
- /**
- * Checks whether the command is enabled or not in the current environment.
- *
- * Override this to check for x or y and return false if the command can not
- * run properly under the current conditions.
- *
- * @return bool
- */
- public function isEnabled()
- {
- return true;
- }
-
- /**
- * Configures the current command.
- */
- protected function configure()
- {
- }
-
- /**
- * Executes the current command.
- *
- * This method is not abstract because you can use this class
- * as a concrete class. In this case, instead of defining the
- * execute() method, you set the code to execute by passing
- * a Closure to the setCode() method.
- *
- * @return int|null null or 0 if everything went fine, or an error code
- *
- * @throws LogicException When this abstract method is not implemented
- *
- * @see setCode()
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- throw new LogicException('You must override the execute() method in the concrete command class.');
- }
-
- /**
- * Interacts with the user.
- *
- * This method is executed before the InputDefinition is validated.
- * This means that this is the only place where the command can
- * interactively ask for values of missing required arguments.
- */
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- }
-
- /**
- * Initializes the command after the input has been bound and before the input
- * is validated.
- *
- * This is mainly useful when a lot of commands extends one main command
- * where some things need to be initialized based on the input arguments and options.
- *
- * @see InputInterface::bind()
- * @see InputInterface::validate()
- */
- protected function initialize(InputInterface $input, OutputInterface $output)
- {
- }
-
- /**
- * Runs the command.
- *
- * The code to execute is either defined directly with the
- * setCode() method or by overriding the execute() method
- * in a sub-class.
- *
- * @return int The command exit code
- *
- * @throws \Exception When binding input fails. Bypass this by calling {@link ignoreValidationErrors()}.
- *
- * @see setCode()
- * @see execute()
- */
- public function run(InputInterface $input, OutputInterface $output)
- {
- // force the creation of the synopsis before the merge with the app definition
- $this->getSynopsis(true);
- $this->getSynopsis(false);
-
- // add the application arguments and options
- $this->mergeApplicationDefinition();
-
- // bind the input against the command specific arguments/options
- try {
- $input->bind($this->definition);
- } catch (ExceptionInterface $e) {
- if (!$this->ignoreValidationErrors) {
- throw $e;
- }
- }
-
- $this->initialize($input, $output);
-
- if (null !== $this->processTitle) {
- if (\function_exists('cli_set_process_title')) {
- if (!@cli_set_process_title($this->processTitle)) {
- if ('Darwin' === PHP_OS) {
- $output->writeln('<comment>Running "cli_set_process_title" as an unprivileged user is not supported on MacOS.</comment>', OutputInterface::VERBOSITY_VERY_VERBOSE);
- } else {
- cli_set_process_title($this->processTitle);
- }
- }
- } elseif (\function_exists('setproctitle')) {
- setproctitle($this->processTitle);
- } elseif (OutputInterface::VERBOSITY_VERY_VERBOSE === $output->getVerbosity()) {
- $output->writeln('<comment>Install the proctitle PECL to be able to change the process title.</comment>');
- }
- }
-
- if ($input->isInteractive()) {
- $this->interact($input, $output);
- }
-
- // The command name argument is often omitted when a command is executed directly with its run() method.
- // It would fail the validation if we didn't make sure the command argument is present,
- // since it's required by the application.
- if ($input->hasArgument('command') && null === $input->getArgument('command')) {
- $input->setArgument('command', $this->getName());
- }
-
- $input->validate();
-
- if ($this->code) {
- $statusCode = \call_user_func($this->code, $input, $output);
- } else {
- $statusCode = $this->execute($input, $output);
- }
-
- return is_numeric($statusCode) ? (int) $statusCode : 0;
- }
-
- /**
- * Sets the code to execute when running this command.
- *
- * If this method is used, it overrides the code defined
- * in the execute() method.
- *
- * @param callable $code A callable(InputInterface $input, OutputInterface $output)
- *
- * @return $this
- *
- * @throws InvalidArgumentException
- *
- * @see execute()
- */
- public function setCode(callable $code)
- {
- if ($code instanceof \Closure) {
- $r = new \ReflectionFunction($code);
- if (null === $r->getClosureThis()) {
- if (\PHP_VERSION_ID < 70000) {
- // Bug in PHP5: https://bugs.php.net/bug.php?id=64761
- // This means that we cannot bind static closures and therefore we must
- // ignore any errors here. There is no way to test if the closure is
- // bindable.
- $code = @\Closure::bind($code, $this);
- } else {
- $code = \Closure::bind($code, $this);
- }
- }
- }
-
- $this->code = $code;
-
- return $this;
- }
-
- /**
- * Merges the application definition with the command definition.
- *
- * This method is not part of public API and should not be used directly.
- *
- * @param bool $mergeArgs Whether to merge or not the Application definition arguments to Command definition arguments
- */
- public function mergeApplicationDefinition($mergeArgs = true)
- {
- if (null === $this->application || (true === $this->applicationDefinitionMerged && ($this->applicationDefinitionMergedWithArgs || !$mergeArgs))) {
- return;
- }
-
- $this->definition->addOptions($this->application->getDefinition()->getOptions());
-
- $this->applicationDefinitionMerged = true;
-
- if ($mergeArgs) {
- $currentArguments = $this->definition->getArguments();
- $this->definition->setArguments($this->application->getDefinition()->getArguments());
- $this->definition->addArguments($currentArguments);
-
- $this->applicationDefinitionMergedWithArgs = true;
- }
- }
-
- /**
- * Sets an array of argument and option instances.
- *
- * @param array|InputDefinition $definition An array of argument and option instances or a definition instance
- *
- * @return $this
- */
- public function setDefinition($definition)
- {
- if ($definition instanceof InputDefinition) {
- $this->definition = $definition;
- } else {
- $this->definition->setDefinition($definition);
- }
-
- $this->applicationDefinitionMerged = false;
-
- return $this;
- }
-
- /**
- * Gets the InputDefinition attached to this Command.
- *
- * @return InputDefinition An InputDefinition instance
- */
- public function getDefinition()
- {
- return $this->definition;
- }
-
- /**
- * Gets the InputDefinition to be used to create representations of this Command.
- *
- * Can be overridden to provide the original command representation when it would otherwise
- * be changed by merging with the application InputDefinition.
- *
- * This method is not part of public API and should not be used directly.
- *
- * @return InputDefinition An InputDefinition instance
- */
- public function getNativeDefinition()
- {
- return $this->getDefinition();
- }
-
- /**
- * Adds an argument.
- *
- * @param string $name The argument name
- * @param int|null $mode The argument mode: InputArgument::REQUIRED or InputArgument::OPTIONAL
- * @param string $description A description text
- * @param string|string[]|null $default The default value (for InputArgument::OPTIONAL mode only)
- *
- * @throws InvalidArgumentException When argument mode is not valid
- *
- * @return $this
- */
- public function addArgument($name, $mode = null, $description = '', $default = null)
- {
- $this->definition->addArgument(new InputArgument($name, $mode, $description, $default));
-
- return $this;
- }
-
- /**
- * Adds an option.
- *
- * @param string $name The option name
- * @param string|array|null $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
- * @param int|null $mode The option mode: One of the InputOption::VALUE_* constants
- * @param string $description A description text
- * @param string|string[]|int|bool|null $default The default value (must be null for InputOption::VALUE_NONE)
- *
- * @throws InvalidArgumentException If option mode is invalid or incompatible
- *
- * @return $this
- */
- public function addOption($name, $shortcut = null, $mode = null, $description = '', $default = null)
- {
- $this->definition->addOption(new InputOption($name, $shortcut, $mode, $description, $default));
-
- return $this;
- }
-
- /**
- * Sets the name of the command.
- *
- * This method can set both the namespace and the name if
- * you separate them by a colon (:)
- *
- * $command->setName('foo:bar');
- *
- * @param string $name The command name
- *
- * @return $this
- *
- * @throws InvalidArgumentException When the name is invalid
- */
- public function setName($name)
- {
- $this->validateName($name);
-
- $this->name = $name;
-
- return $this;
- }
-
- /**
- * Sets the process title of the command.
- *
- * This feature should be used only when creating a long process command,
- * like a daemon.
- *
- * PHP 5.5+ or the proctitle PECL library is required
- *
- * @param string $title The process title
- *
- * @return $this
- */
- public function setProcessTitle($title)
- {
- $this->processTitle = $title;
-
- return $this;
- }
-
- /**
- * Returns the command name.
- *
- * @return string The command name
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * @param bool $hidden Whether or not the command should be hidden from the list of commands
- *
- * @return Command The current instance
- */
- public function setHidden($hidden)
- {
- $this->hidden = (bool) $hidden;
-
- return $this;
- }
-
- /**
- * @return bool whether the command should be publicly shown or not
- */
- public function isHidden()
- {
- return $this->hidden;
- }
-
- /**
- * Sets the description for the command.
- *
- * @param string $description The description for the command
- *
- * @return $this
- */
- public function setDescription($description)
- {
- $this->description = $description;
-
- return $this;
- }
-
- /**
- * Returns the description for the command.
- *
- * @return string The description for the command
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Sets the help for the command.
- *
- * @param string $help The help for the command
- *
- * @return $this
- */
- public function setHelp($help)
- {
- $this->help = $help;
-
- return $this;
- }
-
- /**
- * Returns the help for the command.
- *
- * @return string The help for the command
- */
- public function getHelp()
- {
- return $this->help;
- }
-
- /**
- * Returns the processed help for the command replacing the %command.name% and
- * %command.full_name% patterns with the real values dynamically.
- *
- * @return string The processed help for the command
- */
- public function getProcessedHelp()
- {
- $name = $this->name;
- $isSingleCommand = $this->application && $this->application->isSingleCommand();
-
- $placeholders = [
- '%command.name%',
- '%command.full_name%',
- ];
- $replacements = [
- $name,
- $isSingleCommand ? $_SERVER['PHP_SELF'] : $_SERVER['PHP_SELF'].' '.$name,
- ];
-
- return str_replace($placeholders, $replacements, $this->getHelp() ?: $this->getDescription());
- }
-
- /**
- * Sets the aliases for the command.
- *
- * @param string[] $aliases An array of aliases for the command
- *
- * @return $this
- *
- * @throws InvalidArgumentException When an alias is invalid
- */
- public function setAliases($aliases)
- {
- if (!\is_array($aliases) && !$aliases instanceof \Traversable) {
- throw new InvalidArgumentException('$aliases must be an array or an instance of \Traversable');
- }
-
- foreach ($aliases as $alias) {
- $this->validateName($alias);
- }
-
- $this->aliases = $aliases;
-
- return $this;
- }
-
- /**
- * Returns the aliases for the command.
- *
- * @return array An array of aliases for the command
- */
- public function getAliases()
- {
- return $this->aliases;
- }
-
- /**
- * Returns the synopsis for the command.
- *
- * @param bool $short Whether to show the short version of the synopsis (with options folded) or not
- *
- * @return string The synopsis
- */
- public function getSynopsis($short = false)
- {
- $key = $short ? 'short' : 'long';
-
- if (!isset($this->synopsis[$key])) {
- $this->synopsis[$key] = trim(sprintf('%s %s', $this->name, $this->definition->getSynopsis($short)));
- }
-
- return $this->synopsis[$key];
- }
-
- /**
- * Add a command usage example.
- *
- * @param string $usage The usage, it'll be prefixed with the command name
- *
- * @return $this
- */
- public function addUsage($usage)
- {
- if (0 !== strpos($usage, $this->name)) {
- $usage = sprintf('%s %s', $this->name, $usage);
- }
-
- $this->usages[] = $usage;
-
- return $this;
- }
-
- /**
- * Returns alternative usages of the command.
- *
- * @return array
- */
- public function getUsages()
- {
- return $this->usages;
- }
-
- /**
- * Gets a helper instance by name.
- *
- * @param string $name The helper name
- *
- * @return mixed The helper value
- *
- * @throws LogicException if no HelperSet is defined
- * @throws InvalidArgumentException if the helper is not defined
- */
- public function getHelper($name)
- {
- if (null === $this->helperSet) {
- throw new LogicException(sprintf('Cannot retrieve helper "%s" because there is no HelperSet defined. Did you forget to add your command to the application or to set the application on the command using the setApplication() method? You can also set the HelperSet directly using the setHelperSet() method.', $name));
- }
-
- return $this->helperSet->get($name);
- }
-
- /**
- * Validates a command name.
- *
- * It must be non-empty and parts can optionally be separated by ":".
- *
- * @param string $name
- *
- * @throws InvalidArgumentException When the name is invalid
- */
- private function validateName($name)
- {
- if (!preg_match('/^[^\:]++(\:[^\:]++)*$/', $name)) {
- throw new InvalidArgumentException(sprintf('Command name "%s" is invalid.', $name));
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Command/HelpCommand.php b/www/wiki/vendor/symfony/console/Command/HelpCommand.php
deleted file mode 100644
index 23847766..00000000
--- a/www/wiki/vendor/symfony/console/Command/HelpCommand.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Command;
-
-use Symfony\Component\Console\Helper\DescriptorHelper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * HelpCommand displays the help for a given command.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class HelpCommand extends Command
-{
- private $command;
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this->ignoreValidationErrors();
-
- $this
- ->setName('help')
- ->setDefinition([
- new InputArgument('command_name', InputArgument::OPTIONAL, 'The command name', 'help'),
- new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt, xml, json, or md)', 'txt'),
- new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw command help'),
- ])
- ->setDescription('Displays help for a command')
- ->setHelp(<<<'EOF'
-The <info>%command.name%</info> command displays help for a given command:
-
- <info>php %command.full_name% list</info>
-
-You can also output the help in other formats by using the <comment>--format</comment> option:
-
- <info>php %command.full_name% --format=xml list</info>
-
-To display the list of available commands, please use the <info>list</info> command.
-EOF
- )
- ;
- }
-
- public function setCommand(Command $command)
- {
- $this->command = $command;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- if (null === $this->command) {
- $this->command = $this->getApplication()->find($input->getArgument('command_name'));
- }
-
- $helper = new DescriptorHelper();
- $helper->describe($output, $this->command, [
- 'format' => $input->getOption('format'),
- 'raw_text' => $input->getOption('raw'),
- ]);
-
- $this->command = null;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Command/ListCommand.php b/www/wiki/vendor/symfony/console/Command/ListCommand.php
deleted file mode 100644
index 7259b126..00000000
--- a/www/wiki/vendor/symfony/console/Command/ListCommand.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Command;
-
-use Symfony\Component\Console\Helper\DescriptorHelper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * ListCommand displays the list of all available commands for the application.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class ListCommand extends Command
-{
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setName('list')
- ->setDefinition($this->createDefinition())
- ->setDescription('Lists commands')
- ->setHelp(<<<'EOF'
-The <info>%command.name%</info> command lists all commands:
-
- <info>php %command.full_name%</info>
-
-You can also display the commands for a specific namespace:
-
- <info>php %command.full_name% test</info>
-
-You can also output the information in other formats by using the <comment>--format</comment> option:
-
- <info>php %command.full_name% --format=xml</info>
-
-It's also possible to get raw list of commands (useful for embedding command runner):
-
- <info>php %command.full_name% --raw</info>
-EOF
- )
- ;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getNativeDefinition()
- {
- return $this->createDefinition();
- }
-
- /**
- * {@inheritdoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $helper = new DescriptorHelper();
- $helper->describe($output, $this->getApplication(), [
- 'format' => $input->getOption('format'),
- 'raw_text' => $input->getOption('raw'),
- 'namespace' => $input->getArgument('namespace'),
- ]);
- }
-
- /**
- * {@inheritdoc}
- */
- private function createDefinition()
- {
- return new InputDefinition([
- new InputArgument('namespace', InputArgument::OPTIONAL, 'The namespace name'),
- new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw command list'),
- new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt, xml, json, or md)', 'txt'),
- ]);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Command/LockableTrait.php b/www/wiki/vendor/symfony/console/Command/LockableTrait.php
deleted file mode 100644
index 308ebf28..00000000
--- a/www/wiki/vendor/symfony/console/Command/LockableTrait.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Command;
-
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Exception\RuntimeException;
-use Symfony\Component\Lock\Factory;
-use Symfony\Component\Lock\Lock;
-use Symfony\Component\Lock\Store\FlockStore;
-use Symfony\Component\Lock\Store\SemaphoreStore;
-
-/**
- * Basic lock feature for commands.
- *
- * @author Geoffrey Brier <geoffrey.brier@gmail.com>
- */
-trait LockableTrait
-{
- /** @var Lock */
- private $lock;
-
- /**
- * Locks a command.
- *
- * @return bool
- */
- private function lock($name = null, $blocking = false)
- {
- if (!class_exists(SemaphoreStore::class)) {
- throw new RuntimeException('To enable the locking feature you must install the symfony/lock component.');
- }
-
- if (null !== $this->lock) {
- throw new LogicException('A lock is already in place.');
- }
-
- if (SemaphoreStore::isSupported($blocking)) {
- $store = new SemaphoreStore();
- } else {
- $store = new FlockStore();
- }
-
- $this->lock = (new Factory($store))->createLock($name ?: $this->getName());
- if (!$this->lock->acquire($blocking)) {
- $this->lock = null;
-
- return false;
- }
-
- return true;
- }
-
- /**
- * Releases the command lock if there is one.
- */
- private function release()
- {
- if ($this->lock) {
- $this->lock->release();
- $this->lock = null;
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php b/www/wiki/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php
deleted file mode 100644
index 9462996f..00000000
--- a/www/wiki/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-namespace Symfony\Component\Console\CommandLoader;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Exception\CommandNotFoundException;
-
-/**
- * @author Robin Chalas <robin.chalas@gmail.com>
- */
-interface CommandLoaderInterface
-{
- /**
- * Loads a command.
- *
- * @param string $name
- *
- * @return Command
- *
- * @throws CommandNotFoundException
- */
- public function get($name);
-
- /**
- * Checks if a command exists.
- *
- * @param string $name
- *
- * @return bool
- */
- public function has($name);
-
- /**
- * @return string[] All registered command names
- */
- public function getNames();
-}
diff --git a/www/wiki/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php b/www/wiki/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php
deleted file mode 100644
index 753ad0fb..00000000
--- a/www/wiki/vendor/symfony/console/CommandLoader/ContainerCommandLoader.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-namespace Symfony\Component\Console\CommandLoader;
-
-use Psr\Container\ContainerInterface;
-use Symfony\Component\Console\Exception\CommandNotFoundException;
-
-/**
- * Loads commands from a PSR-11 container.
- *
- * @author Robin Chalas <robin.chalas@gmail.com>
- */
-class ContainerCommandLoader implements CommandLoaderInterface
-{
- private $container;
- private $commandMap;
-
- /**
- * @param ContainerInterface $container A container from which to load command services
- * @param array $commandMap An array with command names as keys and service ids as values
- */
- public function __construct(ContainerInterface $container, array $commandMap)
- {
- $this->container = $container;
- $this->commandMap = $commandMap;
- }
-
- /**
- * {@inheritdoc}
- */
- public function get($name)
- {
- if (!$this->has($name)) {
- throw new CommandNotFoundException(sprintf('Command "%s" does not exist.', $name));
- }
-
- return $this->container->get($this->commandMap[$name]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function has($name)
- {
- return isset($this->commandMap[$name]) && $this->container->has($this->commandMap[$name]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getNames()
- {
- return array_keys($this->commandMap);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php b/www/wiki/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php
deleted file mode 100644
index d9c20557..00000000
--- a/www/wiki/vendor/symfony/console/CommandLoader/FactoryCommandLoader.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\CommandLoader;
-
-use Symfony\Component\Console\Exception\CommandNotFoundException;
-
-/**
- * A simple command loader using factories to instantiate commands lazily.
- *
- * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
- */
-class FactoryCommandLoader implements CommandLoaderInterface
-{
- private $factories;
-
- /**
- * @param callable[] $factories Indexed by command names
- */
- public function __construct(array $factories)
- {
- $this->factories = $factories;
- }
-
- /**
- * {@inheritdoc}
- */
- public function has($name)
- {
- return isset($this->factories[$name]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function get($name)
- {
- if (!isset($this->factories[$name])) {
- throw new CommandNotFoundException(sprintf('Command "%s" does not exist.', $name));
- }
-
- $factory = $this->factories[$name];
-
- return $factory();
- }
-
- /**
- * {@inheritdoc}
- */
- public function getNames()
- {
- return array_keys($this->factories);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/ConsoleEvents.php b/www/wiki/vendor/symfony/console/ConsoleEvents.php
deleted file mode 100644
index bf6cab9a..00000000
--- a/www/wiki/vendor/symfony/console/ConsoleEvents.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console;
-
-/**
- * Contains all events dispatched by an Application.
- *
- * @author Francesco Levorato <git@flevour.net>
- */
-final class ConsoleEvents
-{
- /**
- * The COMMAND event allows you to attach listeners before any command is
- * executed by the console. It also allows you to modify the command, input and output
- * before they are handled to the command.
- *
- * @Event("Symfony\Component\Console\Event\ConsoleCommandEvent")
- */
- const COMMAND = 'console.command';
-
- /**
- * The TERMINATE event allows you to attach listeners after a command is
- * executed by the console.
- *
- * @Event("Symfony\Component\Console\Event\ConsoleTerminateEvent")
- */
- const TERMINATE = 'console.terminate';
-
- /**
- * The EXCEPTION event occurs when an uncaught exception appears
- * while executing Command#run().
- *
- * This event allows you to deal with the exception or
- * to modify the thrown exception.
- *
- * @Event("Symfony\Component\Console\Event\ConsoleExceptionEvent")
- *
- * @deprecated The console.exception event is deprecated since version 3.3 and will be removed in 4.0. Use the console.error event instead.
- */
- const EXCEPTION = 'console.exception';
-
- /**
- * The ERROR event occurs when an uncaught exception or error appears.
- *
- * This event allows you to deal with the exception/error or
- * to modify the thrown exception.
- *
- * @Event("Symfony\Component\Console\Event\ConsoleErrorEvent")
- */
- const ERROR = 'console.error';
-}
diff --git a/www/wiki/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php b/www/wiki/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php
deleted file mode 100644
index f656d6a8..00000000
--- a/www/wiki/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\DependencyInjection;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\CommandLoader\ContainerCommandLoader;
-use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
-use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
-use Symfony\Component\DependencyInjection\TypedReference;
-
-/**
- * Registers console commands.
- *
- * @author Grégoire Pineau <lyrixx@lyrixx.info>
- */
-class AddConsoleCommandPass implements CompilerPassInterface
-{
- private $commandLoaderServiceId;
- private $commandTag;
-
- public function __construct($commandLoaderServiceId = 'console.command_loader', $commandTag = 'console.command')
- {
- $this->commandLoaderServiceId = $commandLoaderServiceId;
- $this->commandTag = $commandTag;
- }
-
- public function process(ContainerBuilder $container)
- {
- $commandServices = $container->findTaggedServiceIds($this->commandTag, true);
- $lazyCommandMap = [];
- $lazyCommandRefs = [];
- $serviceIds = [];
- $lazyServiceIds = [];
-
- foreach ($commandServices as $id => $tags) {
- $definition = $container->getDefinition($id);
- $class = $container->getParameterBag()->resolveValue($definition->getClass());
-
- $commandId = 'console.command.'.strtolower(str_replace('\\', '_', $class));
-
- if (isset($tags[0]['command'])) {
- $commandName = $tags[0]['command'];
- } else {
- if (!$r = $container->getReflectionClass($class)) {
- throw new InvalidArgumentException(sprintf('Class "%s" used for service "%s" cannot be found.', $class, $id));
- }
- if (!$r->isSubclassOf(Command::class)) {
- throw new InvalidArgumentException(sprintf('The service "%s" tagged "%s" must be a subclass of "%s".', $id, $this->commandTag, Command::class));
- }
- $commandName = $class::getDefaultName();
- }
-
- if (null === $commandName) {
- if (isset($serviceIds[$commandId]) || $container->hasAlias($commandId)) {
- $commandId = $commandId.'_'.$id;
- }
- if (!$definition->isPublic() || $definition->isPrivate()) {
- $container->setAlias($commandId, $id)->setPublic(true);
- $id = $commandId;
- }
- $serviceIds[$commandId] = $id;
-
- continue;
- }
-
- $serviceIds[$commandId] = $id;
- $lazyServiceIds[$id] = true;
- unset($tags[0]);
- $lazyCommandMap[$commandName] = $id;
- $lazyCommandRefs[$id] = new TypedReference($id, $class);
- $aliases = [];
-
- foreach ($tags as $tag) {
- if (isset($tag['command'])) {
- $aliases[] = $tag['command'];
- $lazyCommandMap[$tag['command']] = $id;
- }
- }
-
- $definition->addMethodCall('setName', [$commandName]);
-
- if ($aliases) {
- $definition->addMethodCall('setAliases', [$aliases]);
- }
- }
-
- $container
- ->register($this->commandLoaderServiceId, ContainerCommandLoader::class)
- ->setPublic(true)
- ->setArguments([ServiceLocatorTagPass::register($container, $lazyCommandRefs), $lazyCommandMap]);
-
- $container->setParameter('console.command.ids', $serviceIds);
- $container->setParameter('console.lazy_command.ids', $lazyServiceIds);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Descriptor/ApplicationDescription.php b/www/wiki/vendor/symfony/console/Descriptor/ApplicationDescription.php
deleted file mode 100644
index 79a358fb..00000000
--- a/www/wiki/vendor/symfony/console/Descriptor/ApplicationDescription.php
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Exception\CommandNotFoundException;
-
-/**
- * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
- *
- * @internal
- */
-class ApplicationDescription
-{
- const GLOBAL_NAMESPACE = '_global';
-
- private $application;
- private $namespace;
- private $showHidden;
-
- /**
- * @var array
- */
- private $namespaces;
-
- /**
- * @var Command[]
- */
- private $commands;
-
- /**
- * @var Command[]
- */
- private $aliases;
-
- /**
- * @param Application $application
- * @param string|null $namespace
- * @param bool $showHidden
- */
- public function __construct(Application $application, $namespace = null, $showHidden = false)
- {
- $this->application = $application;
- $this->namespace = $namespace;
- $this->showHidden = $showHidden;
- }
-
- /**
- * @return array
- */
- public function getNamespaces()
- {
- if (null === $this->namespaces) {
- $this->inspectApplication();
- }
-
- return $this->namespaces;
- }
-
- /**
- * @return Command[]
- */
- public function getCommands()
- {
- if (null === $this->commands) {
- $this->inspectApplication();
- }
-
- return $this->commands;
- }
-
- /**
- * @param string $name
- *
- * @return Command
- *
- * @throws CommandNotFoundException
- */
- public function getCommand($name)
- {
- if (!isset($this->commands[$name]) && !isset($this->aliases[$name])) {
- throw new CommandNotFoundException(sprintf('Command %s does not exist.', $name));
- }
-
- return isset($this->commands[$name]) ? $this->commands[$name] : $this->aliases[$name];
- }
-
- private function inspectApplication()
- {
- $this->commands = [];
- $this->namespaces = [];
-
- $all = $this->application->all($this->namespace ? $this->application->findNamespace($this->namespace) : null);
- foreach ($this->sortCommands($all) as $namespace => $commands) {
- $names = [];
-
- /** @var Command $command */
- foreach ($commands as $name => $command) {
- if (!$command->getName() || (!$this->showHidden && $command->isHidden())) {
- continue;
- }
-
- if ($command->getName() === $name) {
- $this->commands[$name] = $command;
- } else {
- $this->aliases[$name] = $command;
- }
-
- $names[] = $name;
- }
-
- $this->namespaces[$namespace] = ['id' => $namespace, 'commands' => $names];
- }
- }
-
- /**
- * @return array
- */
- private function sortCommands(array $commands)
- {
- $namespacedCommands = [];
- $globalCommands = [];
- foreach ($commands as $name => $command) {
- $key = $this->application->extractNamespace($name, 1);
- if (!$key) {
- $globalCommands['_global'][$name] = $command;
- } else {
- $namespacedCommands[$key][$name] = $command;
- }
- }
- ksort($namespacedCommands);
- $namespacedCommands = array_merge($globalCommands, $namespacedCommands);
-
- foreach ($namespacedCommands as &$commandsSet) {
- ksort($commandsSet);
- }
- // unset reference to keep scope clear
- unset($commandsSet);
-
- return $namespacedCommands;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Descriptor/Descriptor.php b/www/wiki/vendor/symfony/console/Descriptor/Descriptor.php
deleted file mode 100644
index d25a708e..00000000
--- a/www/wiki/vendor/symfony/console/Descriptor/Descriptor.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
- *
- * @internal
- */
-abstract class Descriptor implements DescriptorInterface
-{
- /**
- * @var OutputInterface
- */
- protected $output;
-
- /**
- * {@inheritdoc}
- */
- public function describe(OutputInterface $output, $object, array $options = [])
- {
- $this->output = $output;
-
- switch (true) {
- case $object instanceof InputArgument:
- $this->describeInputArgument($object, $options);
- break;
- case $object instanceof InputOption:
- $this->describeInputOption($object, $options);
- break;
- case $object instanceof InputDefinition:
- $this->describeInputDefinition($object, $options);
- break;
- case $object instanceof Command:
- $this->describeCommand($object, $options);
- break;
- case $object instanceof Application:
- $this->describeApplication($object, $options);
- break;
- default:
- throw new InvalidArgumentException(sprintf('Object of type "%s" is not describable.', \get_class($object)));
- }
- }
-
- /**
- * Writes content to output.
- *
- * @param string $content
- * @param bool $decorated
- */
- protected function write($content, $decorated = false)
- {
- $this->output->write($content, false, $decorated ? OutputInterface::OUTPUT_NORMAL : OutputInterface::OUTPUT_RAW);
- }
-
- /**
- * Describes an InputArgument instance.
- *
- * @return string|mixed
- */
- abstract protected function describeInputArgument(InputArgument $argument, array $options = []);
-
- /**
- * Describes an InputOption instance.
- *
- * @return string|mixed
- */
- abstract protected function describeInputOption(InputOption $option, array $options = []);
-
- /**
- * Describes an InputDefinition instance.
- *
- * @return string|mixed
- */
- abstract protected function describeInputDefinition(InputDefinition $definition, array $options = []);
-
- /**
- * Describes a Command instance.
- *
- * @return string|mixed
- */
- abstract protected function describeCommand(Command $command, array $options = []);
-
- /**
- * Describes an Application instance.
- *
- * @return string|mixed
- */
- abstract protected function describeApplication(Application $application, array $options = []);
-}
diff --git a/www/wiki/vendor/symfony/console/Descriptor/DescriptorInterface.php b/www/wiki/vendor/symfony/console/Descriptor/DescriptorInterface.php
deleted file mode 100644
index fbc07df8..00000000
--- a/www/wiki/vendor/symfony/console/Descriptor/DescriptorInterface.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Descriptor interface.
- *
- * @author Jean-François Simon <contact@jfsimon.fr>
- */
-interface DescriptorInterface
-{
- /**
- * Describes an object if supported.
- *
- * @param OutputInterface $output
- * @param object $object
- * @param array $options
- */
- public function describe(OutputInterface $output, $object, array $options = []);
-}
diff --git a/www/wiki/vendor/symfony/console/Descriptor/JsonDescriptor.php b/www/wiki/vendor/symfony/console/Descriptor/JsonDescriptor.php
deleted file mode 100644
index 197b843d..00000000
--- a/www/wiki/vendor/symfony/console/Descriptor/JsonDescriptor.php
+++ /dev/null
@@ -1,168 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-/**
- * JSON descriptor.
- *
- * @author Jean-François Simon <contact@jfsimon.fr>
- *
- * @internal
- */
-class JsonDescriptor extends Descriptor
-{
- /**
- * {@inheritdoc}
- */
- protected function describeInputArgument(InputArgument $argument, array $options = [])
- {
- $this->writeData($this->getInputArgumentData($argument), $options);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeInputOption(InputOption $option, array $options = [])
- {
- $this->writeData($this->getInputOptionData($option), $options);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeInputDefinition(InputDefinition $definition, array $options = [])
- {
- $this->writeData($this->getInputDefinitionData($definition), $options);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeCommand(Command $command, array $options = [])
- {
- $this->writeData($this->getCommandData($command), $options);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeApplication(Application $application, array $options = [])
- {
- $describedNamespace = isset($options['namespace']) ? $options['namespace'] : null;
- $description = new ApplicationDescription($application, $describedNamespace, true);
- $commands = [];
-
- foreach ($description->getCommands() as $command) {
- $commands[] = $this->getCommandData($command);
- }
-
- $data = [];
- if ('UNKNOWN' !== $application->getName()) {
- $data['application']['name'] = $application->getName();
- if ('UNKNOWN' !== $application->getVersion()) {
- $data['application']['version'] = $application->getVersion();
- }
- }
-
- $data['commands'] = $commands;
-
- if ($describedNamespace) {
- $data['namespace'] = $describedNamespace;
- } else {
- $data['namespaces'] = array_values($description->getNamespaces());
- }
-
- $this->writeData($data, $options);
- }
-
- /**
- * Writes data as json.
- *
- * @return array|string
- */
- private function writeData(array $data, array $options)
- {
- $this->write(json_encode($data, isset($options['json_encoding']) ? $options['json_encoding'] : 0));
- }
-
- /**
- * @return array
- */
- private function getInputArgumentData(InputArgument $argument)
- {
- return [
- 'name' => $argument->getName(),
- 'is_required' => $argument->isRequired(),
- 'is_array' => $argument->isArray(),
- 'description' => preg_replace('/\s*[\r\n]\s*/', ' ', $argument->getDescription()),
- 'default' => INF === $argument->getDefault() ? 'INF' : $argument->getDefault(),
- ];
- }
-
- /**
- * @return array
- */
- private function getInputOptionData(InputOption $option)
- {
- return [
- 'name' => '--'.$option->getName(),
- 'shortcut' => $option->getShortcut() ? '-'.str_replace('|', '|-', $option->getShortcut()) : '',
- 'accept_value' => $option->acceptValue(),
- 'is_value_required' => $option->isValueRequired(),
- 'is_multiple' => $option->isArray(),
- 'description' => preg_replace('/\s*[\r\n]\s*/', ' ', $option->getDescription()),
- 'default' => INF === $option->getDefault() ? 'INF' : $option->getDefault(),
- ];
- }
-
- /**
- * @return array
- */
- private function getInputDefinitionData(InputDefinition $definition)
- {
- $inputArguments = [];
- foreach ($definition->getArguments() as $name => $argument) {
- $inputArguments[$name] = $this->getInputArgumentData($argument);
- }
-
- $inputOptions = [];
- foreach ($definition->getOptions() as $name => $option) {
- $inputOptions[$name] = $this->getInputOptionData($option);
- }
-
- return ['arguments' => $inputArguments, 'options' => $inputOptions];
- }
-
- /**
- * @return array
- */
- private function getCommandData(Command $command)
- {
- $command->getSynopsis();
- $command->mergeApplicationDefinition(false);
-
- return [
- 'name' => $command->getName(),
- 'usage' => array_merge([$command->getSynopsis()], $command->getUsages(), $command->getAliases()),
- 'description' => $command->getDescription(),
- 'help' => $command->getProcessedHelp(),
- 'definition' => $this->getInputDefinitionData($command->getNativeDefinition()),
- 'hidden' => $command->isHidden(),
- ];
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Descriptor/MarkdownDescriptor.php b/www/wiki/vendor/symfony/console/Descriptor/MarkdownDescriptor.php
deleted file mode 100644
index e6245778..00000000
--- a/www/wiki/vendor/symfony/console/Descriptor/MarkdownDescriptor.php
+++ /dev/null
@@ -1,182 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\Helper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Markdown descriptor.
- *
- * @author Jean-François Simon <contact@jfsimon.fr>
- *
- * @internal
- */
-class MarkdownDescriptor extends Descriptor
-{
- /**
- * {@inheritdoc}
- */
- public function describe(OutputInterface $output, $object, array $options = [])
- {
- $decorated = $output->isDecorated();
- $output->setDecorated(false);
-
- parent::describe($output, $object, $options);
-
- $output->setDecorated($decorated);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function write($content, $decorated = true)
- {
- parent::write($content, $decorated);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeInputArgument(InputArgument $argument, array $options = [])
- {
- $this->write(
- '#### `'.($argument->getName() ?: '<none>')."`\n\n"
- .($argument->getDescription() ? preg_replace('/\s*[\r\n]\s*/', "\n", $argument->getDescription())."\n\n" : '')
- .'* Is required: '.($argument->isRequired() ? 'yes' : 'no')."\n"
- .'* Is array: '.($argument->isArray() ? 'yes' : 'no')."\n"
- .'* Default: `'.str_replace("\n", '', var_export($argument->getDefault(), true)).'`'
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeInputOption(InputOption $option, array $options = [])
- {
- $name = '--'.$option->getName();
- if ($option->getShortcut()) {
- $name .= '|-'.str_replace('|', '|-', $option->getShortcut()).'';
- }
-
- $this->write(
- '#### `'.$name.'`'."\n\n"
- .($option->getDescription() ? preg_replace('/\s*[\r\n]\s*/', "\n", $option->getDescription())."\n\n" : '')
- .'* Accept value: '.($option->acceptValue() ? 'yes' : 'no')."\n"
- .'* Is value required: '.($option->isValueRequired() ? 'yes' : 'no')."\n"
- .'* Is multiple: '.($option->isArray() ? 'yes' : 'no')."\n"
- .'* Default: `'.str_replace("\n", '', var_export($option->getDefault(), true)).'`'
- );
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeInputDefinition(InputDefinition $definition, array $options = [])
- {
- if ($showArguments = \count($definition->getArguments()) > 0) {
- $this->write('### Arguments');
- foreach ($definition->getArguments() as $argument) {
- $this->write("\n\n");
- $this->write($this->describeInputArgument($argument));
- }
- }
-
- if (\count($definition->getOptions()) > 0) {
- if ($showArguments) {
- $this->write("\n\n");
- }
-
- $this->write('### Options');
- foreach ($definition->getOptions() as $option) {
- $this->write("\n\n");
- $this->write($this->describeInputOption($option));
- }
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeCommand(Command $command, array $options = [])
- {
- $command->getSynopsis();
- $command->mergeApplicationDefinition(false);
-
- $this->write(
- '`'.$command->getName()."`\n"
- .str_repeat('-', Helper::strlen($command->getName()) + 2)."\n\n"
- .($command->getDescription() ? $command->getDescription()."\n\n" : '')
- .'### Usage'."\n\n"
- .array_reduce(array_merge([$command->getSynopsis()], $command->getAliases(), $command->getUsages()), function ($carry, $usage) {
- return $carry.'* `'.$usage.'`'."\n";
- })
- );
-
- if ($help = $command->getProcessedHelp()) {
- $this->write("\n");
- $this->write($help);
- }
-
- if ($command->getNativeDefinition()) {
- $this->write("\n\n");
- $this->describeInputDefinition($command->getNativeDefinition());
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeApplication(Application $application, array $options = [])
- {
- $describedNamespace = isset($options['namespace']) ? $options['namespace'] : null;
- $description = new ApplicationDescription($application, $describedNamespace);
- $title = $this->getApplicationTitle($application);
-
- $this->write($title."\n".str_repeat('=', Helper::strlen($title)));
-
- foreach ($description->getNamespaces() as $namespace) {
- if (ApplicationDescription::GLOBAL_NAMESPACE !== $namespace['id']) {
- $this->write("\n\n");
- $this->write('**'.$namespace['id'].':**');
- }
-
- $this->write("\n\n");
- $this->write(implode("\n", array_map(function ($commandName) use ($description) {
- return sprintf('* [`%s`](#%s)', $commandName, str_replace(':', '', $description->getCommand($commandName)->getName()));
- }, $namespace['commands'])));
- }
-
- foreach ($description->getCommands() as $command) {
- $this->write("\n\n");
- $this->write($this->describeCommand($command));
- }
- }
-
- private function getApplicationTitle(Application $application)
- {
- if ('UNKNOWN' !== $application->getName()) {
- if ('UNKNOWN' !== $application->getVersion()) {
- return sprintf('%s %s', $application->getName(), $application->getVersion());
- }
-
- return $application->getName();
- }
-
- return 'Console Tool';
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Descriptor/TextDescriptor.php b/www/wiki/vendor/symfony/console/Descriptor/TextDescriptor.php
deleted file mode 100644
index af9088c7..00000000
--- a/www/wiki/vendor/symfony/console/Descriptor/TextDescriptor.php
+++ /dev/null
@@ -1,342 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Helper\Helper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-/**
- * Text descriptor.
- *
- * @author Jean-François Simon <contact@jfsimon.fr>
- *
- * @internal
- */
-class TextDescriptor extends Descriptor
-{
- /**
- * {@inheritdoc}
- */
- protected function describeInputArgument(InputArgument $argument, array $options = [])
- {
- if (null !== $argument->getDefault() && (!\is_array($argument->getDefault()) || \count($argument->getDefault()))) {
- $default = sprintf('<comment> [default: %s]</comment>', $this->formatDefaultValue($argument->getDefault()));
- } else {
- $default = '';
- }
-
- $totalWidth = isset($options['total_width']) ? $options['total_width'] : Helper::strlen($argument->getName());
- $spacingWidth = $totalWidth - \strlen($argument->getName());
-
- $this->writeText(sprintf(' <info>%s</info> %s%s%s',
- $argument->getName(),
- str_repeat(' ', $spacingWidth),
- // + 4 = 2 spaces before <info>, 2 spaces after </info>
- preg_replace('/\s*[\r\n]\s*/', "\n".str_repeat(' ', $totalWidth + 4), $argument->getDescription()),
- $default
- ), $options);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeInputOption(InputOption $option, array $options = [])
- {
- if ($option->acceptValue() && null !== $option->getDefault() && (!\is_array($option->getDefault()) || \count($option->getDefault()))) {
- $default = sprintf('<comment> [default: %s]</comment>', $this->formatDefaultValue($option->getDefault()));
- } else {
- $default = '';
- }
-
- $value = '';
- if ($option->acceptValue()) {
- $value = '='.strtoupper($option->getName());
-
- if ($option->isValueOptional()) {
- $value = '['.$value.']';
- }
- }
-
- $totalWidth = isset($options['total_width']) ? $options['total_width'] : $this->calculateTotalWidthForOptions([$option]);
- $synopsis = sprintf('%s%s',
- $option->getShortcut() ? sprintf('-%s, ', $option->getShortcut()) : ' ',
- sprintf('--%s%s', $option->getName(), $value)
- );
-
- $spacingWidth = $totalWidth - Helper::strlen($synopsis);
-
- $this->writeText(sprintf(' <info>%s</info> %s%s%s%s',
- $synopsis,
- str_repeat(' ', $spacingWidth),
- // + 4 = 2 spaces before <info>, 2 spaces after </info>
- preg_replace('/\s*[\r\n]\s*/', "\n".str_repeat(' ', $totalWidth + 4), $option->getDescription()),
- $default,
- $option->isArray() ? '<comment> (multiple values allowed)</comment>' : ''
- ), $options);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeInputDefinition(InputDefinition $definition, array $options = [])
- {
- $totalWidth = $this->calculateTotalWidthForOptions($definition->getOptions());
- foreach ($definition->getArguments() as $argument) {
- $totalWidth = max($totalWidth, Helper::strlen($argument->getName()));
- }
-
- if ($definition->getArguments()) {
- $this->writeText('<comment>Arguments:</comment>', $options);
- $this->writeText("\n");
- foreach ($definition->getArguments() as $argument) {
- $this->describeInputArgument($argument, array_merge($options, ['total_width' => $totalWidth]));
- $this->writeText("\n");
- }
- }
-
- if ($definition->getArguments() && $definition->getOptions()) {
- $this->writeText("\n");
- }
-
- if ($definition->getOptions()) {
- $laterOptions = [];
-
- $this->writeText('<comment>Options:</comment>', $options);
- foreach ($definition->getOptions() as $option) {
- if (\strlen($option->getShortcut()) > 1) {
- $laterOptions[] = $option;
- continue;
- }
- $this->writeText("\n");
- $this->describeInputOption($option, array_merge($options, ['total_width' => $totalWidth]));
- }
- foreach ($laterOptions as $option) {
- $this->writeText("\n");
- $this->describeInputOption($option, array_merge($options, ['total_width' => $totalWidth]));
- }
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeCommand(Command $command, array $options = [])
- {
- $command->getSynopsis(true);
- $command->getSynopsis(false);
- $command->mergeApplicationDefinition(false);
-
- $this->writeText('<comment>Usage:</comment>', $options);
- foreach (array_merge([$command->getSynopsis(true)], $command->getAliases(), $command->getUsages()) as $usage) {
- $this->writeText("\n");
- $this->writeText(' '.OutputFormatter::escape($usage), $options);
- }
- $this->writeText("\n");
-
- $definition = $command->getNativeDefinition();
- if ($definition->getOptions() || $definition->getArguments()) {
- $this->writeText("\n");
- $this->describeInputDefinition($definition, $options);
- $this->writeText("\n");
- }
-
- if ($help = $command->getProcessedHelp()) {
- $this->writeText("\n");
- $this->writeText('<comment>Help:</comment>', $options);
- $this->writeText("\n");
- $this->writeText(' '.str_replace("\n", "\n ", $help), $options);
- $this->writeText("\n");
- }
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeApplication(Application $application, array $options = [])
- {
- $describedNamespace = isset($options['namespace']) ? $options['namespace'] : null;
- $description = new ApplicationDescription($application, $describedNamespace);
-
- if (isset($options['raw_text']) && $options['raw_text']) {
- $width = $this->getColumnWidth($description->getCommands());
-
- foreach ($description->getCommands() as $command) {
- $this->writeText(sprintf("%-{$width}s %s", $command->getName(), $command->getDescription()), $options);
- $this->writeText("\n");
- }
- } else {
- if ('' != $help = $application->getHelp()) {
- $this->writeText("$help\n\n", $options);
- }
-
- $this->writeText("<comment>Usage:</comment>\n", $options);
- $this->writeText(" command [options] [arguments]\n\n", $options);
-
- $this->describeInputDefinition(new InputDefinition($application->getDefinition()->getOptions()), $options);
-
- $this->writeText("\n");
- $this->writeText("\n");
-
- $commands = $description->getCommands();
- $namespaces = $description->getNamespaces();
- if ($describedNamespace && $namespaces) {
- // make sure all alias commands are included when describing a specific namespace
- $describedNamespaceInfo = reset($namespaces);
- foreach ($describedNamespaceInfo['commands'] as $name) {
- $commands[$name] = $description->getCommand($name);
- }
- }
-
- // calculate max. width based on available commands per namespace
- $width = $this->getColumnWidth(\call_user_func_array('array_merge', array_map(function ($namespace) use ($commands) {
- return array_intersect($namespace['commands'], array_keys($commands));
- }, $namespaces)));
-
- if ($describedNamespace) {
- $this->writeText(sprintf('<comment>Available commands for the "%s" namespace:</comment>', $describedNamespace), $options);
- } else {
- $this->writeText('<comment>Available commands:</comment>', $options);
- }
-
- foreach ($namespaces as $namespace) {
- $namespace['commands'] = array_filter($namespace['commands'], function ($name) use ($commands) {
- return isset($commands[$name]);
- });
-
- if (!$namespace['commands']) {
- continue;
- }
-
- if (!$describedNamespace && ApplicationDescription::GLOBAL_NAMESPACE !== $namespace['id']) {
- $this->writeText("\n");
- $this->writeText(' <comment>'.$namespace['id'].'</comment>', $options);
- }
-
- foreach ($namespace['commands'] as $name) {
- $this->writeText("\n");
- $spacingWidth = $width - Helper::strlen($name);
- $command = $commands[$name];
- $commandAliases = $name === $command->getName() ? $this->getCommandAliasesText($command) : '';
- $this->writeText(sprintf(' <info>%s</info>%s%s', $name, str_repeat(' ', $spacingWidth), $commandAliases.$command->getDescription()), $options);
- }
- }
-
- $this->writeText("\n");
- }
- }
-
- /**
- * {@inheritdoc}
- */
- private function writeText($content, array $options = [])
- {
- $this->write(
- isset($options['raw_text']) && $options['raw_text'] ? strip_tags($content) : $content,
- isset($options['raw_output']) ? !$options['raw_output'] : true
- );
- }
-
- /**
- * Formats command aliases to show them in the command description.
- *
- * @return string
- */
- private function getCommandAliasesText(Command $command)
- {
- $text = '';
- $aliases = $command->getAliases();
-
- if ($aliases) {
- $text = '['.implode('|', $aliases).'] ';
- }
-
- return $text;
- }
-
- /**
- * Formats input option/argument default value.
- *
- * @param mixed $default
- *
- * @return string
- */
- private function formatDefaultValue($default)
- {
- if (INF === $default) {
- return 'INF';
- }
-
- if (\is_string($default)) {
- $default = OutputFormatter::escape($default);
- } elseif (\is_array($default)) {
- foreach ($default as $key => $value) {
- if (\is_string($value)) {
- $default[$key] = OutputFormatter::escape($value);
- }
- }
- }
-
- return str_replace('\\\\', '\\', json_encode($default, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
- }
-
- /**
- * @param (Command|string)[] $commands
- *
- * @return int
- */
- private function getColumnWidth(array $commands)
- {
- $widths = [];
-
- foreach ($commands as $command) {
- if ($command instanceof Command) {
- $widths[] = Helper::strlen($command->getName());
- foreach ($command->getAliases() as $alias) {
- $widths[] = Helper::strlen($alias);
- }
- } else {
- $widths[] = Helper::strlen($command);
- }
- }
-
- return $widths ? max($widths) + 2 : 0;
- }
-
- /**
- * @param InputOption[] $options
- *
- * @return int
- */
- private function calculateTotalWidthForOptions(array $options)
- {
- $totalWidth = 0;
- foreach ($options as $option) {
- // "-" + shortcut + ", --" + name
- $nameLength = 1 + max(Helper::strlen($option->getShortcut()), 1) + 4 + Helper::strlen($option->getName());
-
- if ($option->acceptValue()) {
- $valueLength = 1 + Helper::strlen($option->getName()); // = + value
- $valueLength += $option->isValueOptional() ? 2 : 0; // [ + ]
-
- $nameLength += $valueLength;
- }
- $totalWidth = max($totalWidth, $nameLength);
- }
-
- return $totalWidth;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Descriptor/XmlDescriptor.php b/www/wiki/vendor/symfony/console/Descriptor/XmlDescriptor.php
deleted file mode 100644
index 0cc0c990..00000000
--- a/www/wiki/vendor/symfony/console/Descriptor/XmlDescriptor.php
+++ /dev/null
@@ -1,251 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-/**
- * XML descriptor.
- *
- * @author Jean-François Simon <contact@jfsimon.fr>
- *
- * @internal
- */
-class XmlDescriptor extends Descriptor
-{
- /**
- * @return \DOMDocument
- */
- public function getInputDefinitionDocument(InputDefinition $definition)
- {
- $dom = new \DOMDocument('1.0', 'UTF-8');
- $dom->appendChild($definitionXML = $dom->createElement('definition'));
-
- $definitionXML->appendChild($argumentsXML = $dom->createElement('arguments'));
- foreach ($definition->getArguments() as $argument) {
- $this->appendDocument($argumentsXML, $this->getInputArgumentDocument($argument));
- }
-
- $definitionXML->appendChild($optionsXML = $dom->createElement('options'));
- foreach ($definition->getOptions() as $option) {
- $this->appendDocument($optionsXML, $this->getInputOptionDocument($option));
- }
-
- return $dom;
- }
-
- /**
- * @return \DOMDocument
- */
- public function getCommandDocument(Command $command)
- {
- $dom = new \DOMDocument('1.0', 'UTF-8');
- $dom->appendChild($commandXML = $dom->createElement('command'));
-
- $command->getSynopsis();
- $command->mergeApplicationDefinition(false);
-
- $commandXML->setAttribute('id', $command->getName());
- $commandXML->setAttribute('name', $command->getName());
- $commandXML->setAttribute('hidden', $command->isHidden() ? 1 : 0);
-
- $commandXML->appendChild($usagesXML = $dom->createElement('usages'));
-
- foreach (array_merge([$command->getSynopsis()], $command->getAliases(), $command->getUsages()) as $usage) {
- $usagesXML->appendChild($dom->createElement('usage', $usage));
- }
-
- $commandXML->appendChild($descriptionXML = $dom->createElement('description'));
- $descriptionXML->appendChild($dom->createTextNode(str_replace("\n", "\n ", $command->getDescription())));
-
- $commandXML->appendChild($helpXML = $dom->createElement('help'));
- $helpXML->appendChild($dom->createTextNode(str_replace("\n", "\n ", $command->getProcessedHelp())));
-
- $definitionXML = $this->getInputDefinitionDocument($command->getNativeDefinition());
- $this->appendDocument($commandXML, $definitionXML->getElementsByTagName('definition')->item(0));
-
- return $dom;
- }
-
- /**
- * @param Application $application
- * @param string|null $namespace
- *
- * @return \DOMDocument
- */
- public function getApplicationDocument(Application $application, $namespace = null)
- {
- $dom = new \DOMDocument('1.0', 'UTF-8');
- $dom->appendChild($rootXml = $dom->createElement('symfony'));
-
- if ('UNKNOWN' !== $application->getName()) {
- $rootXml->setAttribute('name', $application->getName());
- if ('UNKNOWN' !== $application->getVersion()) {
- $rootXml->setAttribute('version', $application->getVersion());
- }
- }
-
- $rootXml->appendChild($commandsXML = $dom->createElement('commands'));
-
- $description = new ApplicationDescription($application, $namespace, true);
-
- if ($namespace) {
- $commandsXML->setAttribute('namespace', $namespace);
- }
-
- foreach ($description->getCommands() as $command) {
- $this->appendDocument($commandsXML, $this->getCommandDocument($command));
- }
-
- if (!$namespace) {
- $rootXml->appendChild($namespacesXML = $dom->createElement('namespaces'));
-
- foreach ($description->getNamespaces() as $namespaceDescription) {
- $namespacesXML->appendChild($namespaceArrayXML = $dom->createElement('namespace'));
- $namespaceArrayXML->setAttribute('id', $namespaceDescription['id']);
-
- foreach ($namespaceDescription['commands'] as $name) {
- $namespaceArrayXML->appendChild($commandXML = $dom->createElement('command'));
- $commandXML->appendChild($dom->createTextNode($name));
- }
- }
- }
-
- return $dom;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeInputArgument(InputArgument $argument, array $options = [])
- {
- $this->writeDocument($this->getInputArgumentDocument($argument));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeInputOption(InputOption $option, array $options = [])
- {
- $this->writeDocument($this->getInputOptionDocument($option));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeInputDefinition(InputDefinition $definition, array $options = [])
- {
- $this->writeDocument($this->getInputDefinitionDocument($definition));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeCommand(Command $command, array $options = [])
- {
- $this->writeDocument($this->getCommandDocument($command));
- }
-
- /**
- * {@inheritdoc}
- */
- protected function describeApplication(Application $application, array $options = [])
- {
- $this->writeDocument($this->getApplicationDocument($application, isset($options['namespace']) ? $options['namespace'] : null));
- }
-
- /**
- * Appends document children to parent node.
- */
- private function appendDocument(\DOMNode $parentNode, \DOMNode $importedParent)
- {
- foreach ($importedParent->childNodes as $childNode) {
- $parentNode->appendChild($parentNode->ownerDocument->importNode($childNode, true));
- }
- }
-
- /**
- * Writes DOM document.
- *
- * @return \DOMDocument|string
- */
- private function writeDocument(\DOMDocument $dom)
- {
- $dom->formatOutput = true;
- $this->write($dom->saveXML());
- }
-
- /**
- * @return \DOMDocument
- */
- private function getInputArgumentDocument(InputArgument $argument)
- {
- $dom = new \DOMDocument('1.0', 'UTF-8');
-
- $dom->appendChild($objectXML = $dom->createElement('argument'));
- $objectXML->setAttribute('name', $argument->getName());
- $objectXML->setAttribute('is_required', $argument->isRequired() ? 1 : 0);
- $objectXML->setAttribute('is_array', $argument->isArray() ? 1 : 0);
- $objectXML->appendChild($descriptionXML = $dom->createElement('description'));
- $descriptionXML->appendChild($dom->createTextNode($argument->getDescription()));
-
- $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
- $defaults = \is_array($argument->getDefault()) ? $argument->getDefault() : (\is_bool($argument->getDefault()) ? [var_export($argument->getDefault(), true)] : ($argument->getDefault() ? [$argument->getDefault()] : []));
- foreach ($defaults as $default) {
- $defaultsXML->appendChild($defaultXML = $dom->createElement('default'));
- $defaultXML->appendChild($dom->createTextNode($default));
- }
-
- return $dom;
- }
-
- /**
- * @return \DOMDocument
- */
- private function getInputOptionDocument(InputOption $option)
- {
- $dom = new \DOMDocument('1.0', 'UTF-8');
-
- $dom->appendChild($objectXML = $dom->createElement('option'));
- $objectXML->setAttribute('name', '--'.$option->getName());
- $pos = strpos($option->getShortcut(), '|');
- if (false !== $pos) {
- $objectXML->setAttribute('shortcut', '-'.substr($option->getShortcut(), 0, $pos));
- $objectXML->setAttribute('shortcuts', '-'.str_replace('|', '|-', $option->getShortcut()));
- } else {
- $objectXML->setAttribute('shortcut', $option->getShortcut() ? '-'.$option->getShortcut() : '');
- }
- $objectXML->setAttribute('accept_value', $option->acceptValue() ? 1 : 0);
- $objectXML->setAttribute('is_value_required', $option->isValueRequired() ? 1 : 0);
- $objectXML->setAttribute('is_multiple', $option->isArray() ? 1 : 0);
- $objectXML->appendChild($descriptionXML = $dom->createElement('description'));
- $descriptionXML->appendChild($dom->createTextNode($option->getDescription()));
-
- if ($option->acceptValue()) {
- $defaults = \is_array($option->getDefault()) ? $option->getDefault() : (\is_bool($option->getDefault()) ? [var_export($option->getDefault(), true)] : ($option->getDefault() ? [$option->getDefault()] : []));
- $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
-
- if (!empty($defaults)) {
- foreach ($defaults as $default) {
- $defaultsXML->appendChild($defaultXML = $dom->createElement('default'));
- $defaultXML->appendChild($dom->createTextNode($default));
- }
- }
- }
-
- return $dom;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Event/ConsoleCommandEvent.php b/www/wiki/vendor/symfony/console/Event/ConsoleCommandEvent.php
deleted file mode 100644
index 2f517c1d..00000000
--- a/www/wiki/vendor/symfony/console/Event/ConsoleCommandEvent.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Event;
-
-/**
- * Allows to do things before the command is executed, like skipping the command or changing the input.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class ConsoleCommandEvent extends ConsoleEvent
-{
- /**
- * The return code for skipped commands, this will also be passed into the terminate event.
- */
- const RETURN_CODE_DISABLED = 113;
-
- /**
- * Indicates if the command should be run or skipped.
- */
- private $commandShouldRun = true;
-
- /**
- * Disables the command, so it won't be run.
- *
- * @return bool
- */
- public function disableCommand()
- {
- return $this->commandShouldRun = false;
- }
-
- /**
- * Enables the command.
- *
- * @return bool
- */
- public function enableCommand()
- {
- return $this->commandShouldRun = true;
- }
-
- /**
- * Returns true if the command is runnable, false otherwise.
- *
- * @return bool
- */
- public function commandShouldRun()
- {
- return $this->commandShouldRun;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Event/ConsoleErrorEvent.php b/www/wiki/vendor/symfony/console/Event/ConsoleErrorEvent.php
deleted file mode 100644
index 51a5f56d..00000000
--- a/www/wiki/vendor/symfony/console/Event/ConsoleErrorEvent.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Event;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Allows to handle throwables thrown while running a command.
- *
- * @author Wouter de Jong <wouter@wouterj.nl>
- */
-final class ConsoleErrorEvent extends ConsoleEvent
-{
- private $error;
- private $exitCode;
-
- public function __construct(InputInterface $input, OutputInterface $output, $error, Command $command = null)
- {
- parent::__construct($command, $input, $output);
-
- $this->setError($error);
- }
-
- /**
- * Returns the thrown error/exception.
- *
- * @return \Throwable
- */
- public function getError()
- {
- return $this->error;
- }
-
- /**
- * Replaces the thrown error/exception.
- *
- * @param \Throwable $error
- */
- public function setError($error)
- {
- if (!$error instanceof \Throwable && !$error instanceof \Exception) {
- throw new InvalidArgumentException(sprintf('The error passed to ConsoleErrorEvent must be an instance of \Throwable or \Exception, "%s" was passed instead.', \is_object($error) ? \get_class($error) : \gettype($error)));
- }
-
- $this->error = $error;
- }
-
- /**
- * Sets the exit code.
- *
- * @param int $exitCode The command exit code
- */
- public function setExitCode($exitCode)
- {
- $this->exitCode = (int) $exitCode;
-
- $r = new \ReflectionProperty($this->error, 'code');
- $r->setAccessible(true);
- $r->setValue($this->error, $this->exitCode);
- }
-
- /**
- * Gets the exit code.
- *
- * @return int The command exit code
- */
- public function getExitCode()
- {
- return null !== $this->exitCode ? $this->exitCode : (\is_int($this->error->getCode()) && 0 !== $this->error->getCode() ? $this->error->getCode() : 1);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Event/ConsoleEvent.php b/www/wiki/vendor/symfony/console/Event/ConsoleEvent.php
deleted file mode 100644
index 5440da21..00000000
--- a/www/wiki/vendor/symfony/console/Event/ConsoleEvent.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Event;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\EventDispatcher\Event;
-
-/**
- * Allows to inspect input and output of a command.
- *
- * @author Francesco Levorato <git@flevour.net>
- */
-class ConsoleEvent extends Event
-{
- protected $command;
-
- private $input;
- private $output;
-
- public function __construct(Command $command = null, InputInterface $input, OutputInterface $output)
- {
- $this->command = $command;
- $this->input = $input;
- $this->output = $output;
- }
-
- /**
- * Gets the command that is executed.
- *
- * @return Command|null A Command instance
- */
- public function getCommand()
- {
- return $this->command;
- }
-
- /**
- * Gets the input instance.
- *
- * @return InputInterface An InputInterface instance
- */
- public function getInput()
- {
- return $this->input;
- }
-
- /**
- * Gets the output instance.
- *
- * @return OutputInterface An OutputInterface instance
- */
- public function getOutput()
- {
- return $this->output;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Event/ConsoleExceptionEvent.php b/www/wiki/vendor/symfony/console/Event/ConsoleExceptionEvent.php
deleted file mode 100644
index 0adfaf9a..00000000
--- a/www/wiki/vendor/symfony/console/Event/ConsoleExceptionEvent.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Event;
-
-@trigger_error(sprintf('The "%s" class is deprecated since Symfony 3.3 and will be removed in 4.0. Use the ConsoleErrorEvent instead.', ConsoleExceptionEvent::class), E_USER_DEPRECATED);
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Allows to handle exception thrown in a command.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- *
- * @deprecated since version 3.3, to be removed in 4.0. Use ConsoleErrorEvent instead.
- */
-class ConsoleExceptionEvent extends ConsoleEvent
-{
- private $exception;
- private $exitCode;
-
- public function __construct(Command $command, InputInterface $input, OutputInterface $output, \Exception $exception, $exitCode)
- {
- parent::__construct($command, $input, $output);
-
- $this->setException($exception);
- $this->exitCode = (int) $exitCode;
- }
-
- /**
- * Returns the thrown exception.
- *
- * @return \Exception The thrown exception
- */
- public function getException()
- {
- return $this->exception;
- }
-
- /**
- * Replaces the thrown exception.
- *
- * This exception will be thrown if no response is set in the event.
- *
- * @param \Exception $exception The thrown exception
- */
- public function setException(\Exception $exception)
- {
- $this->exception = $exception;
- }
-
- /**
- * Gets the exit code.
- *
- * @return int The command exit code
- */
- public function getExitCode()
- {
- return $this->exitCode;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Event/ConsoleTerminateEvent.php b/www/wiki/vendor/symfony/console/Event/ConsoleTerminateEvent.php
deleted file mode 100644
index b6a5d7c0..00000000
--- a/www/wiki/vendor/symfony/console/Event/ConsoleTerminateEvent.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Event;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Allows to manipulate the exit code of a command after its execution.
- *
- * @author Francesco Levorato <git@flevour.net>
- */
-class ConsoleTerminateEvent extends ConsoleEvent
-{
- /**
- * The exit code of the command.
- *
- * @var int
- */
- private $exitCode;
-
- public function __construct(Command $command, InputInterface $input, OutputInterface $output, $exitCode)
- {
- parent::__construct($command, $input, $output);
-
- $this->setExitCode($exitCode);
- }
-
- /**
- * Sets the exit code.
- *
- * @param int $exitCode The command exit code
- */
- public function setExitCode($exitCode)
- {
- $this->exitCode = (int) $exitCode;
- }
-
- /**
- * Gets the exit code.
- *
- * @return int The command exit code
- */
- public function getExitCode()
- {
- return $this->exitCode;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/EventListener/ErrorListener.php b/www/wiki/vendor/symfony/console/EventListener/ErrorListener.php
deleted file mode 100644
index 212ad1d9..00000000
--- a/www/wiki/vendor/symfony/console/EventListener/ErrorListener.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\EventListener;
-
-use Psr\Log\LoggerInterface;
-use Symfony\Component\Console\ConsoleEvents;
-use Symfony\Component\Console\Event\ConsoleErrorEvent;
-use Symfony\Component\Console\Event\ConsoleEvent;
-use Symfony\Component\Console\Event\ConsoleTerminateEvent;
-use Symfony\Component\EventDispatcher\EventSubscriberInterface;
-
-/**
- * @author James Halsall <james.t.halsall@googlemail.com>
- * @author Robin Chalas <robin.chalas@gmail.com>
- */
-class ErrorListener implements EventSubscriberInterface
-{
- private $logger;
-
- public function __construct(LoggerInterface $logger = null)
- {
- $this->logger = $logger;
- }
-
- public function onConsoleError(ConsoleErrorEvent $event)
- {
- if (null === $this->logger) {
- return;
- }
-
- $error = $event->getError();
-
- if (!$inputString = $this->getInputString($event)) {
- return $this->logger->error('An error occurred while using the console. Message: "{message}"', ['exception' => $error, 'message' => $error->getMessage()]);
- }
-
- $this->logger->error('Error thrown while running command "{command}". Message: "{message}"', ['exception' => $error, 'command' => $inputString, 'message' => $error->getMessage()]);
- }
-
- public function onConsoleTerminate(ConsoleTerminateEvent $event)
- {
- if (null === $this->logger) {
- return;
- }
-
- $exitCode = $event->getExitCode();
-
- if (0 === $exitCode) {
- return;
- }
-
- if (!$inputString = $this->getInputString($event)) {
- return $this->logger->debug('The console exited with code "{code}"', ['code' => $exitCode]);
- }
-
- $this->logger->debug('Command "{command}" exited with code "{code}"', ['command' => $inputString, 'code' => $exitCode]);
- }
-
- public static function getSubscribedEvents()
- {
- return [
- ConsoleEvents::ERROR => ['onConsoleError', -128],
- ConsoleEvents::TERMINATE => ['onConsoleTerminate', -128],
- ];
- }
-
- private static function getInputString(ConsoleEvent $event)
- {
- $commandName = $event->getCommand() ? $event->getCommand()->getName() : null;
- $input = $event->getInput();
-
- if (method_exists($input, '__toString')) {
- if ($commandName) {
- return str_replace(["'$commandName'", "\"$commandName\""], $commandName, (string) $input);
- }
-
- return (string) $input;
- }
-
- return $commandName;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Exception/CommandNotFoundException.php b/www/wiki/vendor/symfony/console/Exception/CommandNotFoundException.php
deleted file mode 100644
index d28fceb1..00000000
--- a/www/wiki/vendor/symfony/console/Exception/CommandNotFoundException.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Exception;
-
-/**
- * Represents an incorrect command name typed in the console.
- *
- * @author Jérôme Tamarelle <jerome@tamarelle.net>
- */
-class CommandNotFoundException extends \InvalidArgumentException implements ExceptionInterface
-{
- private $alternatives;
-
- /**
- * @param string $message Exception message to throw
- * @param array $alternatives List of similar defined names
- * @param int $code Exception code
- * @param \Exception $previous Previous exception used for the exception chaining
- */
- public function __construct($message, array $alternatives = [], $code = 0, \Exception $previous = null)
- {
- parent::__construct($message, $code, $previous);
-
- $this->alternatives = $alternatives;
- }
-
- /**
- * @return array A list of similar defined names
- */
- public function getAlternatives()
- {
- return $this->alternatives;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Exception/ExceptionInterface.php b/www/wiki/vendor/symfony/console/Exception/ExceptionInterface.php
deleted file mode 100644
index 491cc4c6..00000000
--- a/www/wiki/vendor/symfony/console/Exception/ExceptionInterface.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Exception;
-
-/**
- * ExceptionInterface.
- *
- * @author Jérôme Tamarelle <jerome@tamarelle.net>
- */
-interface ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/symfony/console/Exception/InvalidArgumentException.php b/www/wiki/vendor/symfony/console/Exception/InvalidArgumentException.php
deleted file mode 100644
index 07cc0b61..00000000
--- a/www/wiki/vendor/symfony/console/Exception/InvalidArgumentException.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Exception;
-
-/**
- * @author Jérôme Tamarelle <jerome@tamarelle.net>
- */
-class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/symfony/console/Exception/InvalidOptionException.php b/www/wiki/vendor/symfony/console/Exception/InvalidOptionException.php
deleted file mode 100644
index b2eec616..00000000
--- a/www/wiki/vendor/symfony/console/Exception/InvalidOptionException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Exception;
-
-/**
- * Represents an incorrect option name typed in the console.
- *
- * @author Jérôme Tamarelle <jerome@tamarelle.net>
- */
-class InvalidOptionException extends \InvalidArgumentException implements ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/symfony/console/Exception/LogicException.php b/www/wiki/vendor/symfony/console/Exception/LogicException.php
deleted file mode 100644
index fc37b8d8..00000000
--- a/www/wiki/vendor/symfony/console/Exception/LogicException.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Exception;
-
-/**
- * @author Jérôme Tamarelle <jerome@tamarelle.net>
- */
-class LogicException extends \LogicException implements ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/symfony/console/Exception/RuntimeException.php b/www/wiki/vendor/symfony/console/Exception/RuntimeException.php
deleted file mode 100644
index 51d7d80a..00000000
--- a/www/wiki/vendor/symfony/console/Exception/RuntimeException.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Exception;
-
-/**
- * @author Jérôme Tamarelle <jerome@tamarelle.net>
- */
-class RuntimeException extends \RuntimeException implements ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/symfony/console/Formatter/OutputFormatter.php b/www/wiki/vendor/symfony/console/Formatter/OutputFormatter.php
deleted file mode 100644
index adfcdc87..00000000
--- a/www/wiki/vendor/symfony/console/Formatter/OutputFormatter.php
+++ /dev/null
@@ -1,243 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Formatter;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-/**
- * Formatter class for console output.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class OutputFormatter implements OutputFormatterInterface
-{
- private $decorated;
- private $styles = [];
- private $styleStack;
-
- /**
- * Escapes "<" special char in given text.
- *
- * @param string $text Text to escape
- *
- * @return string Escaped text
- */
- public static function escape($text)
- {
- $text = preg_replace('/([^\\\\]?)</', '$1\\<', $text);
-
- return self::escapeTrailingBackslash($text);
- }
-
- /**
- * Escapes trailing "\" in given text.
- *
- * @param string $text Text to escape
- *
- * @return string Escaped text
- *
- * @internal
- */
- public static function escapeTrailingBackslash($text)
- {
- if ('\\' === substr($text, -1)) {
- $len = \strlen($text);
- $text = rtrim($text, '\\');
- $text = str_replace("\0", '', $text);
- $text .= str_repeat("\0", $len - \strlen($text));
- }
-
- return $text;
- }
-
- /**
- * Initializes console output formatter.
- *
- * @param bool $decorated Whether this formatter should actually decorate strings
- * @param OutputFormatterStyleInterface[] $styles Array of "name => FormatterStyle" instances
- */
- public function __construct($decorated = false, array $styles = [])
- {
- $this->decorated = (bool) $decorated;
-
- $this->setStyle('error', new OutputFormatterStyle('white', 'red'));
- $this->setStyle('info', new OutputFormatterStyle('green'));
- $this->setStyle('comment', new OutputFormatterStyle('yellow'));
- $this->setStyle('question', new OutputFormatterStyle('black', 'cyan'));
-
- foreach ($styles as $name => $style) {
- $this->setStyle($name, $style);
- }
-
- $this->styleStack = new OutputFormatterStyleStack();
- }
-
- /**
- * {@inheritdoc}
- */
- public function setDecorated($decorated)
- {
- $this->decorated = (bool) $decorated;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isDecorated()
- {
- return $this->decorated;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setStyle($name, OutputFormatterStyleInterface $style)
- {
- $this->styles[strtolower($name)] = $style;
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasStyle($name)
- {
- return isset($this->styles[strtolower($name)]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getStyle($name)
- {
- if (!$this->hasStyle($name)) {
- throw new InvalidArgumentException(sprintf('Undefined style: %s', $name));
- }
-
- return $this->styles[strtolower($name)];
- }
-
- /**
- * {@inheritdoc}
- */
- public function format($message)
- {
- $message = (string) $message;
- $offset = 0;
- $output = '';
- $tagRegex = '[a-z][a-z0-9,_=;-]*+';
- preg_match_all("#<(($tagRegex) | /($tagRegex)?)>#ix", $message, $matches, PREG_OFFSET_CAPTURE);
- foreach ($matches[0] as $i => $match) {
- $pos = $match[1];
- $text = $match[0];
-
- if (0 != $pos && '\\' == $message[$pos - 1]) {
- continue;
- }
-
- // add the text up to the next tag
- $output .= $this->applyCurrentStyle(substr($message, $offset, $pos - $offset));
- $offset = $pos + \strlen($text);
-
- // opening tag?
- if ($open = '/' != $text[1]) {
- $tag = $matches[1][$i][0];
- } else {
- $tag = isset($matches[3][$i][0]) ? $matches[3][$i][0] : '';
- }
-
- if (!$open && !$tag) {
- // </>
- $this->styleStack->pop();
- } elseif (false === $style = $this->createStyleFromString($tag)) {
- $output .= $this->applyCurrentStyle($text);
- } elseif ($open) {
- $this->styleStack->push($style);
- } else {
- $this->styleStack->pop($style);
- }
- }
-
- $output .= $this->applyCurrentStyle(substr($message, $offset));
-
- if (false !== strpos($output, "\0")) {
- return strtr($output, ["\0" => '\\', '\\<' => '<']);
- }
-
- return str_replace('\\<', '<', $output);
- }
-
- /**
- * @return OutputFormatterStyleStack
- */
- public function getStyleStack()
- {
- return $this->styleStack;
- }
-
- /**
- * Tries to create new style instance from string.
- *
- * @param string $string
- *
- * @return OutputFormatterStyle|false false if string is not format string
- */
- private function createStyleFromString($string)
- {
- if (isset($this->styles[$string])) {
- return $this->styles[$string];
- }
-
- if (!preg_match_all('/([^=]+)=([^;]+)(;|$)/', $string, $matches, PREG_SET_ORDER)) {
- return false;
- }
-
- $style = new OutputFormatterStyle();
- foreach ($matches as $match) {
- array_shift($match);
- $match[0] = strtolower($match[0]);
-
- if ('fg' == $match[0]) {
- $style->setForeground(strtolower($match[1]));
- } elseif ('bg' == $match[0]) {
- $style->setBackground(strtolower($match[1]));
- } elseif ('options' === $match[0]) {
- preg_match_all('([^,;]+)', strtolower($match[1]), $options);
- $options = array_shift($options);
- foreach ($options as $option) {
- try {
- $style->setOption($option);
- } catch (\InvalidArgumentException $e) {
- @trigger_error(sprintf('Unknown style options are deprecated since Symfony 3.2 and will be removed in 4.0. Exception "%s".', $e->getMessage()), E_USER_DEPRECATED);
-
- return false;
- }
- }
- } else {
- return false;
- }
- }
-
- return $style;
- }
-
- /**
- * Applies current style from stack to text, if must be applied.
- *
- * @param string $text Input text
- *
- * @return string Styled text
- */
- private function applyCurrentStyle($text)
- {
- return $this->isDecorated() && \strlen($text) > 0 ? $this->styleStack->getCurrent()->apply($text) : $text;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Formatter/OutputFormatterInterface.php b/www/wiki/vendor/symfony/console/Formatter/OutputFormatterInterface.php
deleted file mode 100644
index 281e240c..00000000
--- a/www/wiki/vendor/symfony/console/Formatter/OutputFormatterInterface.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Formatter;
-
-/**
- * Formatter interface for console output.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface OutputFormatterInterface
-{
- /**
- * Sets the decorated flag.
- *
- * @param bool $decorated Whether to decorate the messages or not
- */
- public function setDecorated($decorated);
-
- /**
- * Gets the decorated flag.
- *
- * @return bool true if the output will decorate messages, false otherwise
- */
- public function isDecorated();
-
- /**
- * Sets a new style.
- *
- * @param string $name The style name
- * @param OutputFormatterStyleInterface $style The style instance
- */
- public function setStyle($name, OutputFormatterStyleInterface $style);
-
- /**
- * Checks if output formatter has style with specified name.
- *
- * @param string $name
- *
- * @return bool
- */
- public function hasStyle($name);
-
- /**
- * Gets style options from style with specified name.
- *
- * @param string $name
- *
- * @return OutputFormatterStyleInterface
- *
- * @throws \InvalidArgumentException When style isn't defined
- */
- public function getStyle($name);
-
- /**
- * Formats a message according to the given styles.
- *
- * @param string $message The message to style
- *
- * @return string The styled message
- */
- public function format($message);
-}
diff --git a/www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyle.php b/www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyle.php
deleted file mode 100644
index b27439a7..00000000
--- a/www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyle.php
+++ /dev/null
@@ -1,203 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Formatter;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-/**
- * Formatter style class for defining styles.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-class OutputFormatterStyle implements OutputFormatterStyleInterface
-{
- private static $availableForegroundColors = [
- 'black' => ['set' => 30, 'unset' => 39],
- 'red' => ['set' => 31, 'unset' => 39],
- 'green' => ['set' => 32, 'unset' => 39],
- 'yellow' => ['set' => 33, 'unset' => 39],
- 'blue' => ['set' => 34, 'unset' => 39],
- 'magenta' => ['set' => 35, 'unset' => 39],
- 'cyan' => ['set' => 36, 'unset' => 39],
- 'white' => ['set' => 37, 'unset' => 39],
- 'default' => ['set' => 39, 'unset' => 39],
- ];
- private static $availableBackgroundColors = [
- 'black' => ['set' => 40, 'unset' => 49],
- 'red' => ['set' => 41, 'unset' => 49],
- 'green' => ['set' => 42, 'unset' => 49],
- 'yellow' => ['set' => 43, 'unset' => 49],
- 'blue' => ['set' => 44, 'unset' => 49],
- 'magenta' => ['set' => 45, 'unset' => 49],
- 'cyan' => ['set' => 46, 'unset' => 49],
- 'white' => ['set' => 47, 'unset' => 49],
- 'default' => ['set' => 49, 'unset' => 49],
- ];
- private static $availableOptions = [
- 'bold' => ['set' => 1, 'unset' => 22],
- 'underscore' => ['set' => 4, 'unset' => 24],
- 'blink' => ['set' => 5, 'unset' => 25],
- 'reverse' => ['set' => 7, 'unset' => 27],
- 'conceal' => ['set' => 8, 'unset' => 28],
- ];
-
- private $foreground;
- private $background;
- private $options = [];
-
- /**
- * Initializes output formatter style.
- *
- * @param string|null $foreground The style foreground color name
- * @param string|null $background The style background color name
- * @param array $options The style options
- */
- public function __construct($foreground = null, $background = null, array $options = [])
- {
- if (null !== $foreground) {
- $this->setForeground($foreground);
- }
- if (null !== $background) {
- $this->setBackground($background);
- }
- if (\count($options)) {
- $this->setOptions($options);
- }
- }
-
- /**
- * Sets style foreground color.
- *
- * @param string|null $color The color name
- *
- * @throws InvalidArgumentException When the color name isn't defined
- */
- public function setForeground($color = null)
- {
- if (null === $color) {
- $this->foreground = null;
-
- return;
- }
-
- if (!isset(static::$availableForegroundColors[$color])) {
- throw new InvalidArgumentException(sprintf('Invalid foreground color specified: "%s". Expected one of (%s)', $color, implode(', ', array_keys(static::$availableForegroundColors))));
- }
-
- $this->foreground = static::$availableForegroundColors[$color];
- }
-
- /**
- * Sets style background color.
- *
- * @param string|null $color The color name
- *
- * @throws InvalidArgumentException When the color name isn't defined
- */
- public function setBackground($color = null)
- {
- if (null === $color) {
- $this->background = null;
-
- return;
- }
-
- if (!isset(static::$availableBackgroundColors[$color])) {
- throw new InvalidArgumentException(sprintf('Invalid background color specified: "%s". Expected one of (%s)', $color, implode(', ', array_keys(static::$availableBackgroundColors))));
- }
-
- $this->background = static::$availableBackgroundColors[$color];
- }
-
- /**
- * Sets some specific style option.
- *
- * @param string $option The option name
- *
- * @throws InvalidArgumentException When the option name isn't defined
- */
- public function setOption($option)
- {
- if (!isset(static::$availableOptions[$option])) {
- throw new InvalidArgumentException(sprintf('Invalid option specified: "%s". Expected one of (%s)', $option, implode(', ', array_keys(static::$availableOptions))));
- }
-
- if (!\in_array(static::$availableOptions[$option], $this->options)) {
- $this->options[] = static::$availableOptions[$option];
- }
- }
-
- /**
- * Unsets some specific style option.
- *
- * @param string $option The option name
- *
- * @throws InvalidArgumentException When the option name isn't defined
- */
- public function unsetOption($option)
- {
- if (!isset(static::$availableOptions[$option])) {
- throw new InvalidArgumentException(sprintf('Invalid option specified: "%s". Expected one of (%s)', $option, implode(', ', array_keys(static::$availableOptions))));
- }
-
- $pos = array_search(static::$availableOptions[$option], $this->options);
- if (false !== $pos) {
- unset($this->options[$pos]);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function setOptions(array $options)
- {
- $this->options = [];
-
- foreach ($options as $option) {
- $this->setOption($option);
- }
- }
-
- /**
- * Applies the style to a given text.
- *
- * @param string $text The text to style
- *
- * @return string
- */
- public function apply($text)
- {
- $setCodes = [];
- $unsetCodes = [];
-
- if (null !== $this->foreground) {
- $setCodes[] = $this->foreground['set'];
- $unsetCodes[] = $this->foreground['unset'];
- }
- if (null !== $this->background) {
- $setCodes[] = $this->background['set'];
- $unsetCodes[] = $this->background['unset'];
- }
- if (\count($this->options)) {
- foreach ($this->options as $option) {
- $setCodes[] = $option['set'];
- $unsetCodes[] = $option['unset'];
- }
- }
-
- if (0 === \count($setCodes)) {
- return $text;
- }
-
- return sprintf("\033[%sm%s\033[%sm", implode(';', $setCodes), $text, implode(';', $unsetCodes));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php b/www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php
deleted file mode 100644
index 4c7dc413..00000000
--- a/www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Formatter;
-
-/**
- * Formatter style interface for defining styles.
- *
- * @author Konstantin Kudryashov <ever.zet@gmail.com>
- */
-interface OutputFormatterStyleInterface
-{
- /**
- * Sets style foreground color.
- *
- * @param string $color The color name
- */
- public function setForeground($color = null);
-
- /**
- * Sets style background color.
- *
- * @param string $color The color name
- */
- public function setBackground($color = null);
-
- /**
- * Sets some specific style option.
- *
- * @param string $option The option name
- */
- public function setOption($option);
-
- /**
- * Unsets some specific style option.
- *
- * @param string $option The option name
- */
- public function unsetOption($option);
-
- /**
- * Sets multiple style options at once.
- */
- public function setOptions(array $options);
-
- /**
- * Applies the style to a given text.
- *
- * @param string $text The text to style
- *
- * @return string
- */
- public function apply($text);
-}
diff --git a/www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php b/www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php
deleted file mode 100644
index 50666499..00000000
--- a/www/wiki/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php
+++ /dev/null
@@ -1,109 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Formatter;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-/**
- * @author Jean-François Simon <contact@jfsimon.fr>
- */
-class OutputFormatterStyleStack
-{
- /**
- * @var OutputFormatterStyleInterface[]
- */
- private $styles;
-
- private $emptyStyle;
-
- public function __construct(OutputFormatterStyleInterface $emptyStyle = null)
- {
- $this->emptyStyle = $emptyStyle ?: new OutputFormatterStyle();
- $this->reset();
- }
-
- /**
- * Resets stack (ie. empty internal arrays).
- */
- public function reset()
- {
- $this->styles = [];
- }
-
- /**
- * Pushes a style in the stack.
- */
- public function push(OutputFormatterStyleInterface $style)
- {
- $this->styles[] = $style;
- }
-
- /**
- * Pops a style from the stack.
- *
- * @return OutputFormatterStyleInterface
- *
- * @throws InvalidArgumentException When style tags incorrectly nested
- */
- public function pop(OutputFormatterStyleInterface $style = null)
- {
- if (empty($this->styles)) {
- return $this->emptyStyle;
- }
-
- if (null === $style) {
- return array_pop($this->styles);
- }
-
- foreach (array_reverse($this->styles, true) as $index => $stackedStyle) {
- if ($style->apply('') === $stackedStyle->apply('')) {
- $this->styles = \array_slice($this->styles, 0, $index);
-
- return $stackedStyle;
- }
- }
-
- throw new InvalidArgumentException('Incorrectly nested style tag found.');
- }
-
- /**
- * Computes current style with stacks top codes.
- *
- * @return OutputFormatterStyle
- */
- public function getCurrent()
- {
- if (empty($this->styles)) {
- return $this->emptyStyle;
- }
-
- return $this->styles[\count($this->styles) - 1];
- }
-
- /**
- * @return $this
- */
- public function setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)
- {
- $this->emptyStyle = $emptyStyle;
-
- return $this;
- }
-
- /**
- * @return OutputFormatterStyleInterface
- */
- public function getEmptyStyle()
- {
- return $this->emptyStyle;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/DebugFormatterHelper.php b/www/wiki/vendor/symfony/console/Helper/DebugFormatterHelper.php
deleted file mode 100644
index 16d11755..00000000
--- a/www/wiki/vendor/symfony/console/Helper/DebugFormatterHelper.php
+++ /dev/null
@@ -1,127 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-/**
- * Helps outputting debug information when running an external program from a command.
- *
- * An external program can be a Process, an HTTP request, or anything else.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class DebugFormatterHelper extends Helper
-{
- private $colors = ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white', 'default'];
- private $started = [];
- private $count = -1;
-
- /**
- * Starts a debug formatting session.
- *
- * @param string $id The id of the formatting session
- * @param string $message The message to display
- * @param string $prefix The prefix to use
- *
- * @return string
- */
- public function start($id, $message, $prefix = 'RUN')
- {
- $this->started[$id] = ['border' => ++$this->count % \count($this->colors)];
-
- return sprintf("%s<bg=blue;fg=white> %s </> <fg=blue>%s</>\n", $this->getBorder($id), $prefix, $message);
- }
-
- /**
- * Adds progress to a formatting session.
- *
- * @param string $id The id of the formatting session
- * @param string $buffer The message to display
- * @param bool $error Whether to consider the buffer as error
- * @param string $prefix The prefix for output
- * @param string $errorPrefix The prefix for error output
- *
- * @return string
- */
- public function progress($id, $buffer, $error = false, $prefix = 'OUT', $errorPrefix = 'ERR')
- {
- $message = '';
-
- if ($error) {
- if (isset($this->started[$id]['out'])) {
- $message .= "\n";
- unset($this->started[$id]['out']);
- }
- if (!isset($this->started[$id]['err'])) {
- $message .= sprintf('%s<bg=red;fg=white> %s </> ', $this->getBorder($id), $errorPrefix);
- $this->started[$id]['err'] = true;
- }
-
- $message .= str_replace("\n", sprintf("\n%s<bg=red;fg=white> %s </> ", $this->getBorder($id), $errorPrefix), $buffer);
- } else {
- if (isset($this->started[$id]['err'])) {
- $message .= "\n";
- unset($this->started[$id]['err']);
- }
- if (!isset($this->started[$id]['out'])) {
- $message .= sprintf('%s<bg=green;fg=white> %s </> ', $this->getBorder($id), $prefix);
- $this->started[$id]['out'] = true;
- }
-
- $message .= str_replace("\n", sprintf("\n%s<bg=green;fg=white> %s </> ", $this->getBorder($id), $prefix), $buffer);
- }
-
- return $message;
- }
-
- /**
- * Stops a formatting session.
- *
- * @param string $id The id of the formatting session
- * @param string $message The message to display
- * @param bool $successful Whether to consider the result as success
- * @param string $prefix The prefix for the end output
- *
- * @return string
- */
- public function stop($id, $message, $successful, $prefix = 'RES')
- {
- $trailingEOL = isset($this->started[$id]['out']) || isset($this->started[$id]['err']) ? "\n" : '';
-
- if ($successful) {
- return sprintf("%s%s<bg=green;fg=white> %s </> <fg=green>%s</>\n", $trailingEOL, $this->getBorder($id), $prefix, $message);
- }
-
- $message = sprintf("%s%s<bg=red;fg=white> %s </> <fg=red>%s</>\n", $trailingEOL, $this->getBorder($id), $prefix, $message);
-
- unset($this->started[$id]['out'], $this->started[$id]['err']);
-
- return $message;
- }
-
- /**
- * @param string $id The id of the formatting session
- *
- * @return string
- */
- private function getBorder($id)
- {
- return sprintf('<bg=%s> </>', $this->colors[$this->started[$id]['border']]);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getName()
- {
- return 'debug_formatter';
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/DescriptorHelper.php b/www/wiki/vendor/symfony/console/Helper/DescriptorHelper.php
deleted file mode 100644
index f8a3847b..00000000
--- a/www/wiki/vendor/symfony/console/Helper/DescriptorHelper.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Descriptor\DescriptorInterface;
-use Symfony\Component\Console\Descriptor\JsonDescriptor;
-use Symfony\Component\Console\Descriptor\MarkdownDescriptor;
-use Symfony\Component\Console\Descriptor\TextDescriptor;
-use Symfony\Component\Console\Descriptor\XmlDescriptor;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * This class adds helper method to describe objects in various formats.
- *
- * @author Jean-François Simon <contact@jfsimon.fr>
- */
-class DescriptorHelper extends Helper
-{
- /**
- * @var DescriptorInterface[]
- */
- private $descriptors = [];
-
- public function __construct()
- {
- $this
- ->register('txt', new TextDescriptor())
- ->register('xml', new XmlDescriptor())
- ->register('json', new JsonDescriptor())
- ->register('md', new MarkdownDescriptor())
- ;
- }
-
- /**
- * Describes an object if supported.
- *
- * Available options are:
- * * format: string, the output format name
- * * raw_text: boolean, sets output type as raw
- *
- * @param OutputInterface $output
- * @param object $object
- * @param array $options
- *
- * @throws InvalidArgumentException when the given format is not supported
- */
- public function describe(OutputInterface $output, $object, array $options = [])
- {
- $options = array_merge([
- 'raw_text' => false,
- 'format' => 'txt',
- ], $options);
-
- if (!isset($this->descriptors[$options['format']])) {
- throw new InvalidArgumentException(sprintf('Unsupported format "%s".', $options['format']));
- }
-
- $descriptor = $this->descriptors[$options['format']];
- $descriptor->describe($output, $object, $options);
- }
-
- /**
- * Registers a descriptor.
- *
- * @param string $format
- * @param DescriptorInterface $descriptor
- *
- * @return $this
- */
- public function register($format, DescriptorInterface $descriptor)
- {
- $this->descriptors[$format] = $descriptor;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getName()
- {
- return 'descriptor';
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/FormatterHelper.php b/www/wiki/vendor/symfony/console/Helper/FormatterHelper.php
deleted file mode 100644
index 4ad63856..00000000
--- a/www/wiki/vendor/symfony/console/Helper/FormatterHelper.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Formatter\OutputFormatter;
-
-/**
- * The Formatter class provides helpers to format messages.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class FormatterHelper extends Helper
-{
- /**
- * Formats a message within a section.
- *
- * @param string $section The section name
- * @param string $message The message
- * @param string $style The style to apply to the section
- *
- * @return string The format section
- */
- public function formatSection($section, $message, $style = 'info')
- {
- return sprintf('<%s>[%s]</%s> %s', $style, $section, $style, $message);
- }
-
- /**
- * Formats a message as a block of text.
- *
- * @param string|array $messages The message to write in the block
- * @param string $style The style to apply to the whole block
- * @param bool $large Whether to return a large block
- *
- * @return string The formatter message
- */
- public function formatBlock($messages, $style, $large = false)
- {
- if (!\is_array($messages)) {
- $messages = [$messages];
- }
-
- $len = 0;
- $lines = [];
- foreach ($messages as $message) {
- $message = OutputFormatter::escape($message);
- $lines[] = sprintf($large ? ' %s ' : ' %s ', $message);
- $len = max($this->strlen($message) + ($large ? 4 : 2), $len);
- }
-
- $messages = $large ? [str_repeat(' ', $len)] : [];
- for ($i = 0; isset($lines[$i]); ++$i) {
- $messages[] = $lines[$i].str_repeat(' ', $len - $this->strlen($lines[$i]));
- }
- if ($large) {
- $messages[] = str_repeat(' ', $len);
- }
-
- for ($i = 0; isset($messages[$i]); ++$i) {
- $messages[$i] = sprintf('<%s>%s</%s>', $style, $messages[$i], $style);
- }
-
- return implode("\n", $messages);
- }
-
- /**
- * Truncates a message to the given length.
- *
- * @param string $message
- * @param int $length
- * @param string $suffix
- *
- * @return string
- */
- public function truncate($message, $length, $suffix = '...')
- {
- $computedLength = $length - $this->strlen($suffix);
-
- if ($computedLength > $this->strlen($message)) {
- return $message;
- }
-
- if (false === $encoding = mb_detect_encoding($message, null, true)) {
- return substr($message, 0, $length).$suffix;
- }
-
- return mb_substr($message, 0, $length, $encoding).$suffix;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getName()
- {
- return 'formatter';
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/Helper.php b/www/wiki/vendor/symfony/console/Helper/Helper.php
deleted file mode 100644
index 0ddddf6b..00000000
--- a/www/wiki/vendor/symfony/console/Helper/Helper.php
+++ /dev/null
@@ -1,138 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-/**
- * Helper is the base class for all helper classes.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-abstract class Helper implements HelperInterface
-{
- protected $helperSet = null;
-
- /**
- * {@inheritdoc}
- */
- public function setHelperSet(HelperSet $helperSet = null)
- {
- $this->helperSet = $helperSet;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getHelperSet()
- {
- return $this->helperSet;
- }
-
- /**
- * Returns the length of a string, using mb_strwidth if it is available.
- *
- * @param string $string The string to check its length
- *
- * @return int The length of the string
- */
- public static function strlen($string)
- {
- if (false === $encoding = mb_detect_encoding($string, null, true)) {
- return \strlen($string);
- }
-
- return mb_strwidth($string, $encoding);
- }
-
- /**
- * Returns the subset of a string, using mb_substr if it is available.
- *
- * @param string $string String to subset
- * @param int $from Start offset
- * @param int|null $length Length to read
- *
- * @return string The string subset
- */
- public static function substr($string, $from, $length = null)
- {
- if (false === $encoding = mb_detect_encoding($string, null, true)) {
- return substr($string, $from, $length);
- }
-
- return mb_substr($string, $from, $length, $encoding);
- }
-
- public static function formatTime($secs)
- {
- static $timeFormats = [
- [0, '< 1 sec'],
- [1, '1 sec'],
- [2, 'secs', 1],
- [60, '1 min'],
- [120, 'mins', 60],
- [3600, '1 hr'],
- [7200, 'hrs', 3600],
- [86400, '1 day'],
- [172800, 'days', 86400],
- ];
-
- foreach ($timeFormats as $index => $format) {
- if ($secs >= $format[0]) {
- if ((isset($timeFormats[$index + 1]) && $secs < $timeFormats[$index + 1][0])
- || $index == \count($timeFormats) - 1
- ) {
- if (2 == \count($format)) {
- return $format[1];
- }
-
- return floor($secs / $format[2]).' '.$format[1];
- }
- }
- }
- }
-
- public static function formatMemory($memory)
- {
- if ($memory >= 1024 * 1024 * 1024) {
- return sprintf('%.1f GiB', $memory / 1024 / 1024 / 1024);
- }
-
- if ($memory >= 1024 * 1024) {
- return sprintf('%.1f MiB', $memory / 1024 / 1024);
- }
-
- if ($memory >= 1024) {
- return sprintf('%d KiB', $memory / 1024);
- }
-
- return sprintf('%d B', $memory);
- }
-
- public static function strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
- {
- return self::strlen(self::removeDecoration($formatter, $string));
- }
-
- public static function removeDecoration(OutputFormatterInterface $formatter, $string)
- {
- $isDecorated = $formatter->isDecorated();
- $formatter->setDecorated(false);
- // remove <...> formatting
- $string = $formatter->format($string);
- // remove already formatted characters
- $string = preg_replace("/\033\[[^m]*m/", '', $string);
- $formatter->setDecorated($isDecorated);
-
- return $string;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/HelperInterface.php b/www/wiki/vendor/symfony/console/Helper/HelperInterface.php
deleted file mode 100644
index 1ce82358..00000000
--- a/www/wiki/vendor/symfony/console/Helper/HelperInterface.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-/**
- * HelperInterface is the interface all helpers must implement.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-interface HelperInterface
-{
- /**
- * Sets the helper set associated with this helper.
- */
- public function setHelperSet(HelperSet $helperSet = null);
-
- /**
- * Gets the helper set associated with this helper.
- *
- * @return HelperSet A HelperSet instance
- */
- public function getHelperSet();
-
- /**
- * Returns the canonical name of this helper.
- *
- * @return string The canonical name
- */
- public function getName();
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/HelperSet.php b/www/wiki/vendor/symfony/console/Helper/HelperSet.php
deleted file mode 100644
index c73fecd4..00000000
--- a/www/wiki/vendor/symfony/console/Helper/HelperSet.php
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-/**
- * HelperSet represents a set of helpers to be used with a command.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class HelperSet implements \IteratorAggregate
-{
- /**
- * @var Helper[]
- */
- private $helpers = [];
- private $command;
-
- /**
- * @param Helper[] $helpers An array of helper
- */
- public function __construct(array $helpers = [])
- {
- foreach ($helpers as $alias => $helper) {
- $this->set($helper, \is_int($alias) ? null : $alias);
- }
- }
-
- /**
- * Sets a helper.
- *
- * @param HelperInterface $helper The helper instance
- * @param string $alias An alias
- */
- public function set(HelperInterface $helper, $alias = null)
- {
- $this->helpers[$helper->getName()] = $helper;
- if (null !== $alias) {
- $this->helpers[$alias] = $helper;
- }
-
- $helper->setHelperSet($this);
- }
-
- /**
- * Returns true if the helper if defined.
- *
- * @param string $name The helper name
- *
- * @return bool true if the helper is defined, false otherwise
- */
- public function has($name)
- {
- return isset($this->helpers[$name]);
- }
-
- /**
- * Gets a helper value.
- *
- * @param string $name The helper name
- *
- * @return HelperInterface The helper instance
- *
- * @throws InvalidArgumentException if the helper is not defined
- */
- public function get($name)
- {
- if (!$this->has($name)) {
- throw new InvalidArgumentException(sprintf('The helper "%s" is not defined.', $name));
- }
-
- return $this->helpers[$name];
- }
-
- public function setCommand(Command $command = null)
- {
- $this->command = $command;
- }
-
- /**
- * Gets the command associated with this helper set.
- *
- * @return Command A Command instance
- */
- public function getCommand()
- {
- return $this->command;
- }
-
- /**
- * @return Helper[]
- */
- public function getIterator()
- {
- return new \ArrayIterator($this->helpers);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/InputAwareHelper.php b/www/wiki/vendor/symfony/console/Helper/InputAwareHelper.php
deleted file mode 100644
index 0d0dba23..00000000
--- a/www/wiki/vendor/symfony/console/Helper/InputAwareHelper.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Input\InputAwareInterface;
-use Symfony\Component\Console\Input\InputInterface;
-
-/**
- * An implementation of InputAwareInterface for Helpers.
- *
- * @author Wouter J <waldio.webdesign@gmail.com>
- */
-abstract class InputAwareHelper extends Helper implements InputAwareInterface
-{
- protected $input;
-
- /**
- * {@inheritdoc}
- */
- public function setInput(InputInterface $input)
- {
- $this->input = $input;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/ProcessHelper.php b/www/wiki/vendor/symfony/console/Helper/ProcessHelper.php
deleted file mode 100644
index 666f114a..00000000
--- a/www/wiki/vendor/symfony/console/Helper/ProcessHelper.php
+++ /dev/null
@@ -1,141 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Process\Exception\ProcessFailedException;
-use Symfony\Component\Process\Process;
-
-/**
- * The ProcessHelper class provides helpers to run external processes.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class ProcessHelper extends Helper
-{
- /**
- * Runs an external process.
- *
- * @param OutputInterface $output An OutputInterface instance
- * @param string|array|Process $cmd An instance of Process or an array of arguments to escape and run or a command to run
- * @param string|null $error An error message that must be displayed if something went wrong
- * @param callable|null $callback A PHP callback to run whenever there is some
- * output available on STDOUT or STDERR
- * @param int $verbosity The threshold for verbosity
- *
- * @return Process The process that ran
- */
- public function run(OutputInterface $output, $cmd, $error = null, callable $callback = null, $verbosity = OutputInterface::VERBOSITY_VERY_VERBOSE)
- {
- if ($output instanceof ConsoleOutputInterface) {
- $output = $output->getErrorOutput();
- }
-
- $formatter = $this->getHelperSet()->get('debug_formatter');
-
- if ($cmd instanceof Process) {
- $process = $cmd;
- } else {
- $process = new Process($cmd);
- }
-
- if ($verbosity <= $output->getVerbosity()) {
- $output->write($formatter->start(spl_object_hash($process), $this->escapeString($process->getCommandLine())));
- }
-
- if ($output->isDebug()) {
- $callback = $this->wrapCallback($output, $process, $callback);
- }
-
- $process->run($callback);
-
- if ($verbosity <= $output->getVerbosity()) {
- $message = $process->isSuccessful() ? 'Command ran successfully' : sprintf('%s Command did not run successfully', $process->getExitCode());
- $output->write($formatter->stop(spl_object_hash($process), $message, $process->isSuccessful()));
- }
-
- if (!$process->isSuccessful() && null !== $error) {
- $output->writeln(sprintf('<error>%s</error>', $this->escapeString($error)));
- }
-
- return $process;
- }
-
- /**
- * Runs the process.
- *
- * This is identical to run() except that an exception is thrown if the process
- * exits with a non-zero exit code.
- *
- * @param OutputInterface $output An OutputInterface instance
- * @param string|Process $cmd An instance of Process or a command to run
- * @param string|null $error An error message that must be displayed if something went wrong
- * @param callable|null $callback A PHP callback to run whenever there is some
- * output available on STDOUT or STDERR
- *
- * @return Process The process that ran
- *
- * @throws ProcessFailedException
- *
- * @see run()
- */
- public function mustRun(OutputInterface $output, $cmd, $error = null, callable $callback = null)
- {
- $process = $this->run($output, $cmd, $error, $callback);
-
- if (!$process->isSuccessful()) {
- throw new ProcessFailedException($process);
- }
-
- return $process;
- }
-
- /**
- * Wraps a Process callback to add debugging output.
- *
- * @param OutputInterface $output An OutputInterface interface
- * @param Process $process The Process
- * @param callable|null $callback A PHP callable
- *
- * @return callable
- */
- public function wrapCallback(OutputInterface $output, Process $process, callable $callback = null)
- {
- if ($output instanceof ConsoleOutputInterface) {
- $output = $output->getErrorOutput();
- }
-
- $formatter = $this->getHelperSet()->get('debug_formatter');
-
- return function ($type, $buffer) use ($output, $process, $callback, $formatter) {
- $output->write($formatter->progress(spl_object_hash($process), $this->escapeString($buffer), Process::ERR === $type));
-
- if (null !== $callback) {
- \call_user_func($callback, $type, $buffer);
- }
- };
- }
-
- private function escapeString($str)
- {
- return str_replace('<', '\\<', $str);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getName()
- {
- return 'process';
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/ProgressBar.php b/www/wiki/vendor/symfony/console/Helper/ProgressBar.php
deleted file mode 100644
index 17256551..00000000
--- a/www/wiki/vendor/symfony/console/Helper/ProgressBar.php
+++ /dev/null
@@ -1,614 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Terminal;
-
-/**
- * The ProgressBar provides helpers to display progress output.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- * @author Chris Jones <leeked@gmail.com>
- */
-final class ProgressBar
-{
- private $barWidth = 28;
- private $barChar;
- private $emptyBarChar = '-';
- private $progressChar = '>';
- private $format;
- private $internalFormat;
- private $redrawFreq = 1;
- private $output;
- private $step = 0;
- private $max;
- private $startTime;
- private $stepWidth;
- private $percent = 0.0;
- private $formatLineCount;
- private $messages = [];
- private $overwrite = true;
- private $terminal;
- private $firstRun = true;
-
- private static $formatters;
- private static $formats;
-
- /**
- * @param OutputInterface $output An OutputInterface instance
- * @param int $max Maximum steps (0 if unknown)
- */
- public function __construct(OutputInterface $output, $max = 0)
- {
- if ($output instanceof ConsoleOutputInterface) {
- $output = $output->getErrorOutput();
- }
-
- $this->output = $output;
- $this->setMaxSteps($max);
- $this->terminal = new Terminal();
-
- if (!$this->output->isDecorated()) {
- // disable overwrite when output does not support ANSI codes.
- $this->overwrite = false;
-
- // set a reasonable redraw frequency so output isn't flooded
- $this->setRedrawFrequency($max / 10);
- }
-
- $this->startTime = time();
- }
-
- /**
- * Sets a placeholder formatter for a given name.
- *
- * This method also allow you to override an existing placeholder.
- *
- * @param string $name The placeholder name (including the delimiter char like %)
- * @param callable $callable A PHP callable
- */
- public static function setPlaceholderFormatterDefinition($name, callable $callable)
- {
- if (!self::$formatters) {
- self::$formatters = self::initPlaceholderFormatters();
- }
-
- self::$formatters[$name] = $callable;
- }
-
- /**
- * Gets the placeholder formatter for a given name.
- *
- * @param string $name The placeholder name (including the delimiter char like %)
- *
- * @return callable|null A PHP callable
- */
- public static function getPlaceholderFormatterDefinition($name)
- {
- if (!self::$formatters) {
- self::$formatters = self::initPlaceholderFormatters();
- }
-
- return isset(self::$formatters[$name]) ? self::$formatters[$name] : null;
- }
-
- /**
- * Sets a format for a given name.
- *
- * This method also allow you to override an existing format.
- *
- * @param string $name The format name
- * @param string $format A format string
- */
- public static function setFormatDefinition($name, $format)
- {
- if (!self::$formats) {
- self::$formats = self::initFormats();
- }
-
- self::$formats[$name] = $format;
- }
-
- /**
- * Gets the format for a given name.
- *
- * @param string $name The format name
- *
- * @return string|null A format string
- */
- public static function getFormatDefinition($name)
- {
- if (!self::$formats) {
- self::$formats = self::initFormats();
- }
-
- return isset(self::$formats[$name]) ? self::$formats[$name] : null;
- }
-
- /**
- * Associates a text with a named placeholder.
- *
- * The text is displayed when the progress bar is rendered but only
- * when the corresponding placeholder is part of the custom format line
- * (by wrapping the name with %).
- *
- * @param string $message The text to associate with the placeholder
- * @param string $name The name of the placeholder
- */
- public function setMessage($message, $name = 'message')
- {
- $this->messages[$name] = $message;
- }
-
- public function getMessage($name = 'message')
- {
- return $this->messages[$name];
- }
-
- /**
- * Gets the progress bar start time.
- *
- * @return int The progress bar start time
- */
- public function getStartTime()
- {
- return $this->startTime;
- }
-
- /**
- * Gets the progress bar maximal steps.
- *
- * @return int The progress bar max steps
- */
- public function getMaxSteps()
- {
- return $this->max;
- }
-
- /**
- * Gets the current step position.
- *
- * @return int The progress bar step
- */
- public function getProgress()
- {
- return $this->step;
- }
-
- /**
- * Gets the progress bar step width.
- *
- * @return int The progress bar step width
- */
- private function getStepWidth()
- {
- return $this->stepWidth;
- }
-
- /**
- * Gets the current progress bar percent.
- *
- * @return float The current progress bar percent
- */
- public function getProgressPercent()
- {
- return $this->percent;
- }
-
- /**
- * Sets the progress bar width.
- *
- * @param int $size The progress bar size
- */
- public function setBarWidth($size)
- {
- $this->barWidth = max(1, (int) $size);
- }
-
- /**
- * Gets the progress bar width.
- *
- * @return int The progress bar size
- */
- public function getBarWidth()
- {
- return $this->barWidth;
- }
-
- /**
- * Sets the bar character.
- *
- * @param string $char A character
- */
- public function setBarCharacter($char)
- {
- $this->barChar = $char;
- }
-
- /**
- * Gets the bar character.
- *
- * @return string A character
- */
- public function getBarCharacter()
- {
- if (null === $this->barChar) {
- return $this->max ? '=' : $this->emptyBarChar;
- }
-
- return $this->barChar;
- }
-
- /**
- * Sets the empty bar character.
- *
- * @param string $char A character
- */
- public function setEmptyBarCharacter($char)
- {
- $this->emptyBarChar = $char;
- }
-
- /**
- * Gets the empty bar character.
- *
- * @return string A character
- */
- public function getEmptyBarCharacter()
- {
- return $this->emptyBarChar;
- }
-
- /**
- * Sets the progress bar character.
- *
- * @param string $char A character
- */
- public function setProgressCharacter($char)
- {
- $this->progressChar = $char;
- }
-
- /**
- * Gets the progress bar character.
- *
- * @return string A character
- */
- public function getProgressCharacter()
- {
- return $this->progressChar;
- }
-
- /**
- * Sets the progress bar format.
- *
- * @param string $format The format
- */
- public function setFormat($format)
- {
- $this->format = null;
- $this->internalFormat = $format;
- }
-
- /**
- * Sets the redraw frequency.
- *
- * @param int|float $freq The frequency in steps
- */
- public function setRedrawFrequency($freq)
- {
- $this->redrawFreq = max((int) $freq, 1);
- }
-
- /**
- * Starts the progress output.
- *
- * @param int|null $max Number of steps to complete the bar (0 if indeterminate), null to leave unchanged
- */
- public function start($max = null)
- {
- $this->startTime = time();
- $this->step = 0;
- $this->percent = 0.0;
-
- if (null !== $max) {
- $this->setMaxSteps($max);
- }
-
- $this->display();
- }
-
- /**
- * Advances the progress output X steps.
- *
- * @param int $step Number of steps to advance
- */
- public function advance($step = 1)
- {
- $this->setProgress($this->step + $step);
- }
-
- /**
- * Sets whether to overwrite the progressbar, false for new line.
- *
- * @param bool $overwrite
- */
- public function setOverwrite($overwrite)
- {
- $this->overwrite = (bool) $overwrite;
- }
-
- /**
- * Sets the current progress.
- *
- * @param int $step The current progress
- */
- public function setProgress($step)
- {
- $step = (int) $step;
-
- if ($this->max && $step > $this->max) {
- $this->max = $step;
- } elseif ($step < 0) {
- $step = 0;
- }
-
- $prevPeriod = (int) ($this->step / $this->redrawFreq);
- $currPeriod = (int) ($step / $this->redrawFreq);
- $this->step = $step;
- $this->percent = $this->max ? (float) $this->step / $this->max : 0;
- if ($prevPeriod !== $currPeriod || $this->max === $step) {
- $this->display();
- }
- }
-
- /**
- * Finishes the progress output.
- */
- public function finish()
- {
- if (!$this->max) {
- $this->max = $this->step;
- }
-
- if ($this->step === $this->max && !$this->overwrite) {
- // prevent double 100% output
- return;
- }
-
- $this->setProgress($this->max);
- }
-
- /**
- * Outputs the current progress string.
- */
- public function display()
- {
- if (OutputInterface::VERBOSITY_QUIET === $this->output->getVerbosity()) {
- return;
- }
-
- if (null === $this->format) {
- $this->setRealFormat($this->internalFormat ?: $this->determineBestFormat());
- }
-
- $this->overwrite($this->buildLine());
- }
-
- /**
- * Removes the progress bar from the current line.
- *
- * This is useful if you wish to write some output
- * while a progress bar is running.
- * Call display() to show the progress bar again.
- */
- public function clear()
- {
- if (!$this->overwrite) {
- return;
- }
-
- if (null === $this->format) {
- $this->setRealFormat($this->internalFormat ?: $this->determineBestFormat());
- }
-
- $this->overwrite('');
- }
-
- /**
- * Sets the progress bar format.
- *
- * @param string $format The format
- */
- private function setRealFormat($format)
- {
- // try to use the _nomax variant if available
- if (!$this->max && null !== self::getFormatDefinition($format.'_nomax')) {
- $this->format = self::getFormatDefinition($format.'_nomax');
- } elseif (null !== self::getFormatDefinition($format)) {
- $this->format = self::getFormatDefinition($format);
- } else {
- $this->format = $format;
- }
-
- $this->formatLineCount = substr_count($this->format, "\n");
- }
-
- /**
- * Sets the progress bar maximal steps.
- *
- * @param int $max The progress bar max steps
- */
- private function setMaxSteps($max)
- {
- $this->max = max(0, (int) $max);
- $this->stepWidth = $this->max ? Helper::strlen($this->max) : 4;
- }
-
- /**
- * Overwrites a previous message to the output.
- *
- * @param string $message The message
- */
- private function overwrite($message)
- {
- if ($this->overwrite) {
- if (!$this->firstRun) {
- // Erase previous lines
- if ($this->formatLineCount > 0) {
- $message = str_repeat("\x1B[1A\x1B[2K", $this->formatLineCount).$message;
- }
-
- // Move the cursor to the beginning of the line and erase the line
- $message = "\x0D\x1B[2K$message";
- }
- } elseif ($this->step > 0) {
- $message = PHP_EOL.$message;
- }
-
- $this->firstRun = false;
-
- $this->output->write($message);
- }
-
- private function determineBestFormat()
- {
- switch ($this->output->getVerbosity()) {
- // OutputInterface::VERBOSITY_QUIET: display is disabled anyway
- case OutputInterface::VERBOSITY_VERBOSE:
- return $this->max ? 'verbose' : 'verbose_nomax';
- case OutputInterface::VERBOSITY_VERY_VERBOSE:
- return $this->max ? 'very_verbose' : 'very_verbose_nomax';
- case OutputInterface::VERBOSITY_DEBUG:
- return $this->max ? 'debug' : 'debug_nomax';
- default:
- return $this->max ? 'normal' : 'normal_nomax';
- }
- }
-
- private static function initPlaceholderFormatters()
- {
- return [
- 'bar' => function (self $bar, OutputInterface $output) {
- $completeBars = floor($bar->getMaxSteps() > 0 ? $bar->getProgressPercent() * $bar->getBarWidth() : $bar->getProgress() % $bar->getBarWidth());
- $display = str_repeat($bar->getBarCharacter(), $completeBars);
- if ($completeBars < $bar->getBarWidth()) {
- $emptyBars = $bar->getBarWidth() - $completeBars - Helper::strlenWithoutDecoration($output->getFormatter(), $bar->getProgressCharacter());
- $display .= $bar->getProgressCharacter().str_repeat($bar->getEmptyBarCharacter(), $emptyBars);
- }
-
- return $display;
- },
- 'elapsed' => function (self $bar) {
- return Helper::formatTime(time() - $bar->getStartTime());
- },
- 'remaining' => function (self $bar) {
- if (!$bar->getMaxSteps()) {
- throw new LogicException('Unable to display the remaining time if the maximum number of steps is not set.');
- }
-
- if (!$bar->getProgress()) {
- $remaining = 0;
- } else {
- $remaining = round((time() - $bar->getStartTime()) / $bar->getProgress() * ($bar->getMaxSteps() - $bar->getProgress()));
- }
-
- return Helper::formatTime($remaining);
- },
- 'estimated' => function (self $bar) {
- if (!$bar->getMaxSteps()) {
- throw new LogicException('Unable to display the estimated time if the maximum number of steps is not set.');
- }
-
- if (!$bar->getProgress()) {
- $estimated = 0;
- } else {
- $estimated = round((time() - $bar->getStartTime()) / $bar->getProgress() * $bar->getMaxSteps());
- }
-
- return Helper::formatTime($estimated);
- },
- 'memory' => function (self $bar) {
- return Helper::formatMemory(memory_get_usage(true));
- },
- 'current' => function (self $bar) {
- return str_pad($bar->getProgress(), $bar->getStepWidth(), ' ', STR_PAD_LEFT);
- },
- 'max' => function (self $bar) {
- return $bar->getMaxSteps();
- },
- 'percent' => function (self $bar) {
- return floor($bar->getProgressPercent() * 100);
- },
- ];
- }
-
- private static function initFormats()
- {
- return [
- 'normal' => ' %current%/%max% [%bar%] %percent:3s%%',
- 'normal_nomax' => ' %current% [%bar%]',
-
- 'verbose' => ' %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%',
- 'verbose_nomax' => ' %current% [%bar%] %elapsed:6s%',
-
- 'very_verbose' => ' %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%/%estimated:-6s%',
- 'very_verbose_nomax' => ' %current% [%bar%] %elapsed:6s%',
-
- 'debug' => ' %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%/%estimated:-6s% %memory:6s%',
- 'debug_nomax' => ' %current% [%bar%] %elapsed:6s% %memory:6s%',
- ];
- }
-
- /**
- * @return string
- */
- private function buildLine()
- {
- $regex = "{%([a-z\-_]+)(?:\:([^%]+))?%}i";
- $callback = function ($matches) {
- if ($formatter = $this::getPlaceholderFormatterDefinition($matches[1])) {
- $text = \call_user_func($formatter, $this, $this->output);
- } elseif (isset($this->messages[$matches[1]])) {
- $text = $this->messages[$matches[1]];
- } else {
- return $matches[0];
- }
-
- if (isset($matches[2])) {
- $text = sprintf('%'.$matches[2], $text);
- }
-
- return $text;
- };
- $line = preg_replace_callback($regex, $callback, $this->format);
-
- // gets string length for each sub line with multiline format
- $linesLength = array_map(function ($subLine) {
- return Helper::strlenWithoutDecoration($this->output->getFormatter(), rtrim($subLine, "\r"));
- }, explode("\n", $line));
-
- $linesWidth = max($linesLength);
-
- $terminalWidth = $this->terminal->getWidth();
- if ($linesWidth <= $terminalWidth) {
- return $line;
- }
-
- $this->setBarWidth($this->barWidth - $linesWidth + $terminalWidth);
-
- return preg_replace_callback($regex, $callback, $this->format);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/ProgressIndicator.php b/www/wiki/vendor/symfony/console/Helper/ProgressIndicator.php
deleted file mode 100644
index 3f5751fa..00000000
--- a/www/wiki/vendor/symfony/console/Helper/ProgressIndicator.php
+++ /dev/null
@@ -1,271 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * @author Kevin Bond <kevinbond@gmail.com>
- */
-class ProgressIndicator
-{
- private $output;
- private $startTime;
- private $format;
- private $message;
- private $indicatorValues;
- private $indicatorCurrent;
- private $indicatorChangeInterval;
- private $indicatorUpdateTime;
- private $started = false;
-
- private static $formatters;
- private static $formats;
-
- /**
- * @param OutputInterface $output
- * @param string|null $format Indicator format
- * @param int $indicatorChangeInterval Change interval in milliseconds
- * @param array|null $indicatorValues Animated indicator characters
- */
- public function __construct(OutputInterface $output, $format = null, $indicatorChangeInterval = 100, $indicatorValues = null)
- {
- $this->output = $output;
-
- if (null === $format) {
- $format = $this->determineBestFormat();
- }
-
- if (null === $indicatorValues) {
- $indicatorValues = ['-', '\\', '|', '/'];
- }
-
- $indicatorValues = array_values($indicatorValues);
-
- if (2 > \count($indicatorValues)) {
- throw new InvalidArgumentException('Must have at least 2 indicator value characters.');
- }
-
- $this->format = self::getFormatDefinition($format);
- $this->indicatorChangeInterval = $indicatorChangeInterval;
- $this->indicatorValues = $indicatorValues;
- $this->startTime = time();
- }
-
- /**
- * Sets the current indicator message.
- *
- * @param string|null $message
- */
- public function setMessage($message)
- {
- $this->message = $message;
-
- $this->display();
- }
-
- /**
- * Starts the indicator output.
- *
- * @param $message
- */
- public function start($message)
- {
- if ($this->started) {
- throw new LogicException('Progress indicator already started.');
- }
-
- $this->message = $message;
- $this->started = true;
- $this->startTime = time();
- $this->indicatorUpdateTime = $this->getCurrentTimeInMilliseconds() + $this->indicatorChangeInterval;
- $this->indicatorCurrent = 0;
-
- $this->display();
- }
-
- /**
- * Advances the indicator.
- */
- public function advance()
- {
- if (!$this->started) {
- throw new LogicException('Progress indicator has not yet been started.');
- }
-
- if (!$this->output->isDecorated()) {
- return;
- }
-
- $currentTime = $this->getCurrentTimeInMilliseconds();
-
- if ($currentTime < $this->indicatorUpdateTime) {
- return;
- }
-
- $this->indicatorUpdateTime = $currentTime + $this->indicatorChangeInterval;
- ++$this->indicatorCurrent;
-
- $this->display();
- }
-
- /**
- * Finish the indicator with message.
- *
- * @param $message
- */
- public function finish($message)
- {
- if (!$this->started) {
- throw new LogicException('Progress indicator has not yet been started.');
- }
-
- $this->message = $message;
- $this->display();
- $this->output->writeln('');
- $this->started = false;
- }
-
- /**
- * Gets the format for a given name.
- *
- * @param string $name The format name
- *
- * @return string|null A format string
- */
- public static function getFormatDefinition($name)
- {
- if (!self::$formats) {
- self::$formats = self::initFormats();
- }
-
- return isset(self::$formats[$name]) ? self::$formats[$name] : null;
- }
-
- /**
- * Sets a placeholder formatter for a given name.
- *
- * This method also allow you to override an existing placeholder.
- *
- * @param string $name The placeholder name (including the delimiter char like %)
- * @param callable $callable A PHP callable
- */
- public static function setPlaceholderFormatterDefinition($name, $callable)
- {
- if (!self::$formatters) {
- self::$formatters = self::initPlaceholderFormatters();
- }
-
- self::$formatters[$name] = $callable;
- }
-
- /**
- * Gets the placeholder formatter for a given name.
- *
- * @param string $name The placeholder name (including the delimiter char like %)
- *
- * @return callable|null A PHP callable
- */
- public static function getPlaceholderFormatterDefinition($name)
- {
- if (!self::$formatters) {
- self::$formatters = self::initPlaceholderFormatters();
- }
-
- return isset(self::$formatters[$name]) ? self::$formatters[$name] : null;
- }
-
- private function display()
- {
- if (OutputInterface::VERBOSITY_QUIET === $this->output->getVerbosity()) {
- return;
- }
-
- $self = $this;
-
- $this->overwrite(preg_replace_callback("{%([a-z\-_]+)(?:\:([^%]+))?%}i", function ($matches) use ($self) {
- if ($formatter = $self::getPlaceholderFormatterDefinition($matches[1])) {
- return \call_user_func($formatter, $self);
- }
-
- return $matches[0];
- }, $this->format));
- }
-
- private function determineBestFormat()
- {
- switch ($this->output->getVerbosity()) {
- // OutputInterface::VERBOSITY_QUIET: display is disabled anyway
- case OutputInterface::VERBOSITY_VERBOSE:
- return $this->output->isDecorated() ? 'verbose' : 'verbose_no_ansi';
- case OutputInterface::VERBOSITY_VERY_VERBOSE:
- case OutputInterface::VERBOSITY_DEBUG:
- return $this->output->isDecorated() ? 'very_verbose' : 'very_verbose_no_ansi';
- default:
- return $this->output->isDecorated() ? 'normal' : 'normal_no_ansi';
- }
- }
-
- /**
- * Overwrites a previous message to the output.
- *
- * @param string $message The message
- */
- private function overwrite($message)
- {
- if ($this->output->isDecorated()) {
- $this->output->write("\x0D\x1B[2K");
- $this->output->write($message);
- } else {
- $this->output->writeln($message);
- }
- }
-
- private function getCurrentTimeInMilliseconds()
- {
- return round(microtime(true) * 1000);
- }
-
- private static function initPlaceholderFormatters()
- {
- return [
- 'indicator' => function (self $indicator) {
- return $indicator->indicatorValues[$indicator->indicatorCurrent % \count($indicator->indicatorValues)];
- },
- 'message' => function (self $indicator) {
- return $indicator->message;
- },
- 'elapsed' => function (self $indicator) {
- return Helper::formatTime(time() - $indicator->startTime);
- },
- 'memory' => function () {
- return Helper::formatMemory(memory_get_usage(true));
- },
- ];
- }
-
- private static function initFormats()
- {
- return [
- 'normal' => ' %indicator% %message%',
- 'normal_no_ansi' => ' %message%',
-
- 'verbose' => ' %indicator% %message% (%elapsed:6s%)',
- 'verbose_no_ansi' => ' %message% (%elapsed:6s%)',
-
- 'very_verbose' => ' %indicator% %message% (%elapsed:6s%, %memory:6s%)',
- 'very_verbose_no_ansi' => ' %message% (%elapsed:6s%, %memory:6s%)',
- ];
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/QuestionHelper.php b/www/wiki/vendor/symfony/console/Helper/QuestionHelper.php
deleted file mode 100644
index 9c200fe8..00000000
--- a/www/wiki/vendor/symfony/console/Helper/QuestionHelper.php
+++ /dev/null
@@ -1,483 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\RuntimeException;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\StreamableInputInterface;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Question\ChoiceQuestion;
-use Symfony\Component\Console\Question\Question;
-
-/**
- * The QuestionHelper class provides helpers to interact with the user.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class QuestionHelper extends Helper
-{
- private $inputStream;
- private static $shell;
- private static $stty;
-
- /**
- * Asks a question to the user.
- *
- * @return mixed The user answer
- *
- * @throws RuntimeException If there is no data to read in the input stream
- */
- public function ask(InputInterface $input, OutputInterface $output, Question $question)
- {
- if ($output instanceof ConsoleOutputInterface) {
- $output = $output->getErrorOutput();
- }
-
- if (!$input->isInteractive()) {
- $default = $question->getDefault();
-
- if (null !== $default && $question instanceof ChoiceQuestion) {
- $choices = $question->getChoices();
-
- if (!$question->isMultiselect()) {
- return isset($choices[$default]) ? $choices[$default] : $default;
- }
-
- $default = explode(',', $default);
- foreach ($default as $k => $v) {
- $v = trim($v);
- $default[$k] = isset($choices[$v]) ? $choices[$v] : $v;
- }
- }
-
- return $default;
- }
-
- if ($input instanceof StreamableInputInterface && $stream = $input->getStream()) {
- $this->inputStream = $stream;
- }
-
- if (!$question->getValidator()) {
- return $this->doAsk($output, $question);
- }
-
- $interviewer = function () use ($output, $question) {
- return $this->doAsk($output, $question);
- };
-
- return $this->validateAttempts($interviewer, $output, $question);
- }
-
- /**
- * Sets the input stream to read from when interacting with the user.
- *
- * This is mainly useful for testing purpose.
- *
- * @deprecated since version 3.2, to be removed in 4.0. Use
- * StreamableInputInterface::setStream() instead.
- *
- * @param resource $stream The input stream
- *
- * @throws InvalidArgumentException In case the stream is not a resource
- */
- public function setInputStream($stream)
- {
- @trigger_error(sprintf('The %s() method is deprecated since Symfony 3.2 and will be removed in 4.0. Use %s::setStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
-
- if (!\is_resource($stream)) {
- throw new InvalidArgumentException('Input stream must be a valid resource.');
- }
-
- $this->inputStream = $stream;
- }
-
- /**
- * Returns the helper's input stream.
- *
- * @deprecated since version 3.2, to be removed in 4.0. Use
- * StreamableInputInterface::getStream() instead.
- *
- * @return resource
- */
- public function getInputStream()
- {
- if (0 === \func_num_args() || func_get_arg(0)) {
- @trigger_error(sprintf('The %s() method is deprecated since Symfony 3.2 and will be removed in 4.0. Use %s::getStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
- }
-
- return $this->inputStream;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getName()
- {
- return 'question';
- }
-
- /**
- * Prevents usage of stty.
- */
- public static function disableStty()
- {
- self::$stty = false;
- }
-
- /**
- * Asks the question to the user.
- *
- * @return bool|mixed|string|null
- *
- * @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden
- */
- private function doAsk(OutputInterface $output, Question $question)
- {
- $this->writePrompt($output, $question);
-
- $inputStream = $this->inputStream ?: STDIN;
- $autocomplete = $question->getAutocompleterValues();
-
- if (null === $autocomplete || !$this->hasSttyAvailable()) {
- $ret = false;
- if ($question->isHidden()) {
- try {
- $ret = trim($this->getHiddenResponse($output, $inputStream));
- } catch (RuntimeException $e) {
- if (!$question->isHiddenFallback()) {
- throw $e;
- }
- }
- }
-
- if (false === $ret) {
- $ret = fgets($inputStream, 4096);
- if (false === $ret) {
- throw new RuntimeException('Aborted.');
- }
- $ret = trim($ret);
- }
- } else {
- $ret = trim($this->autocomplete($output, $question, $inputStream, \is_array($autocomplete) ? $autocomplete : iterator_to_array($autocomplete, false)));
- }
-
- $ret = \strlen($ret) > 0 ? $ret : $question->getDefault();
-
- if ($normalizer = $question->getNormalizer()) {
- return $normalizer($ret);
- }
-
- return $ret;
- }
-
- /**
- * Outputs the question prompt.
- */
- protected function writePrompt(OutputInterface $output, Question $question)
- {
- $message = $question->getQuestion();
-
- if ($question instanceof ChoiceQuestion) {
- $maxWidth = max(array_map([$this, 'strlen'], array_keys($question->getChoices())));
-
- $messages = (array) $question->getQuestion();
- foreach ($question->getChoices() as $key => $value) {
- $width = $maxWidth - $this->strlen($key);
- $messages[] = ' [<info>'.$key.str_repeat(' ', $width).'</info>] '.$value;
- }
-
- $output->writeln($messages);
-
- $message = $question->getPrompt();
- }
-
- $output->write($message);
- }
-
- /**
- * Outputs an error message.
- */
- protected function writeError(OutputInterface $output, \Exception $error)
- {
- if (null !== $this->getHelperSet() && $this->getHelperSet()->has('formatter')) {
- $message = $this->getHelperSet()->get('formatter')->formatBlock($error->getMessage(), 'error');
- } else {
- $message = '<error>'.$error->getMessage().'</error>';
- }
-
- $output->writeln($message);
- }
-
- /**
- * Autocompletes a question.
- *
- * @param OutputInterface $output
- * @param Question $question
- * @param resource $inputStream
- * @param array $autocomplete
- *
- * @return string
- */
- private function autocomplete(OutputInterface $output, Question $question, $inputStream, array $autocomplete)
- {
- $ret = '';
-
- $i = 0;
- $ofs = -1;
- $matches = $autocomplete;
- $numMatches = \count($matches);
-
- $sttyMode = shell_exec('stty -g');
-
- // Disable icanon (so we can fread each keypress) and echo (we'll do echoing here instead)
- shell_exec('stty -icanon -echo');
-
- // Add highlighted text style
- $output->getFormatter()->setStyle('hl', new OutputFormatterStyle('black', 'white'));
-
- // Read a keypress
- while (!feof($inputStream)) {
- $c = fread($inputStream, 1);
-
- // as opposed to fgets(), fread() returns an empty string when the stream content is empty, not false.
- if (false === $c || ('' === $ret && '' === $c && null === $question->getDefault())) {
- throw new RuntimeException('Aborted.');
- } elseif ("\177" === $c) { // Backspace Character
- if (0 === $numMatches && 0 !== $i) {
- --$i;
- // Move cursor backwards
- $output->write("\033[1D");
- }
-
- if (0 === $i) {
- $ofs = -1;
- $matches = $autocomplete;
- $numMatches = \count($matches);
- } else {
- $numMatches = 0;
- }
-
- // Pop the last character off the end of our string
- $ret = substr($ret, 0, $i);
- } elseif ("\033" === $c) {
- // Did we read an escape sequence?
- $c .= fread($inputStream, 2);
-
- // A = Up Arrow. B = Down Arrow
- if (isset($c[2]) && ('A' === $c[2] || 'B' === $c[2])) {
- if ('A' === $c[2] && -1 === $ofs) {
- $ofs = 0;
- }
-
- if (0 === $numMatches) {
- continue;
- }
-
- $ofs += ('A' === $c[2]) ? -1 : 1;
- $ofs = ($numMatches + $ofs) % $numMatches;
- }
- } elseif (\ord($c) < 32) {
- if ("\t" === $c || "\n" === $c) {
- if ($numMatches > 0 && -1 !== $ofs) {
- $ret = $matches[$ofs];
- // Echo out remaining chars for current match
- $output->write(substr($ret, $i));
- $i = \strlen($ret);
- }
-
- if ("\n" === $c) {
- $output->write($c);
- break;
- }
-
- $numMatches = 0;
- }
-
- continue;
- } else {
- if ("\x80" <= $c) {
- $c .= fread($inputStream, ["\xC0" => 1, "\xD0" => 1, "\xE0" => 2, "\xF0" => 3][$c & "\xF0"]);
- }
-
- $output->write($c);
- $ret .= $c;
- ++$i;
-
- $numMatches = 0;
- $ofs = 0;
-
- foreach ($autocomplete as $value) {
- // If typed characters match the beginning chunk of value (e.g. [AcmeDe]moBundle)
- if (0 === strpos($value, $ret)) {
- $matches[$numMatches++] = $value;
- }
- }
- }
-
- // Erase characters from cursor to end of line
- $output->write("\033[K");
-
- if ($numMatches > 0 && -1 !== $ofs) {
- // Save cursor position
- $output->write("\0337");
- // Write highlighted text
- $output->write('<hl>'.OutputFormatter::escapeTrailingBackslash(substr($matches[$ofs], $i)).'</hl>');
- // Restore cursor position
- $output->write("\0338");
- }
- }
-
- // Reset stty so it behaves normally again
- shell_exec(sprintf('stty %s', $sttyMode));
-
- return $ret;
- }
-
- /**
- * Gets a hidden response from user.
- *
- * @param OutputInterface $output An Output instance
- * @param resource $inputStream The handler resource
- *
- * @return string The answer
- *
- * @throws RuntimeException In case the fallback is deactivated and the response cannot be hidden
- */
- private function getHiddenResponse(OutputInterface $output, $inputStream)
- {
- if ('\\' === \DIRECTORY_SEPARATOR) {
- $exe = __DIR__.'/../Resources/bin/hiddeninput.exe';
-
- // handle code running from a phar
- if ('phar:' === substr(__FILE__, 0, 5)) {
- $tmpExe = sys_get_temp_dir().'/hiddeninput.exe';
- copy($exe, $tmpExe);
- $exe = $tmpExe;
- }
-
- $value = rtrim(shell_exec($exe));
- $output->writeln('');
-
- if (isset($tmpExe)) {
- unlink($tmpExe);
- }
-
- return $value;
- }
-
- if ($this->hasSttyAvailable()) {
- $sttyMode = shell_exec('stty -g');
-
- shell_exec('stty -echo');
- $value = fgets($inputStream, 4096);
- shell_exec(sprintf('stty %s', $sttyMode));
-
- if (false === $value) {
- throw new RuntimeException('Aborted.');
- }
-
- $value = trim($value);
- $output->writeln('');
-
- return $value;
- }
-
- if (false !== $shell = $this->getShell()) {
- $readCmd = 'csh' === $shell ? 'set mypassword = $<' : 'read -r mypassword';
- $command = sprintf("/usr/bin/env %s -c 'stty -echo; %s; stty echo; echo \$mypassword'", $shell, $readCmd);
- $value = rtrim(shell_exec($command));
- $output->writeln('');
-
- return $value;
- }
-
- throw new RuntimeException('Unable to hide the response.');
- }
-
- /**
- * Validates an attempt.
- *
- * @param callable $interviewer A callable that will ask for a question and return the result
- * @param OutputInterface $output An Output instance
- * @param Question $question A Question instance
- *
- * @return mixed The validated response
- *
- * @throws \Exception In case the max number of attempts has been reached and no valid response has been given
- */
- private function validateAttempts(callable $interviewer, OutputInterface $output, Question $question)
- {
- $error = null;
- $attempts = $question->getMaxAttempts();
- while (null === $attempts || $attempts--) {
- if (null !== $error) {
- $this->writeError($output, $error);
- }
-
- try {
- return \call_user_func($question->getValidator(), $interviewer());
- } catch (RuntimeException $e) {
- throw $e;
- } catch (\Exception $error) {
- }
- }
-
- throw $error;
- }
-
- /**
- * Returns a valid unix shell.
- *
- * @return string|bool The valid shell name, false in case no valid shell is found
- */
- private function getShell()
- {
- if (null !== self::$shell) {
- return self::$shell;
- }
-
- self::$shell = false;
-
- if (file_exists('/usr/bin/env')) {
- // handle other OSs with bash/zsh/ksh/csh if available to hide the answer
- $test = "/usr/bin/env %s -c 'echo OK' 2> /dev/null";
- foreach (['bash', 'zsh', 'ksh', 'csh'] as $sh) {
- if ('OK' === rtrim(shell_exec(sprintf($test, $sh)))) {
- self::$shell = $sh;
- break;
- }
- }
- }
-
- return self::$shell;
- }
-
- /**
- * Returns whether Stty is available or not.
- *
- * @return bool
- */
- private function hasSttyAvailable()
- {
- if (null !== self::$stty) {
- return self::$stty;
- }
-
- exec('stty 2>&1', $output, $exitcode);
-
- return self::$stty = 0 === $exitcode;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/SymfonyQuestionHelper.php b/www/wiki/vendor/symfony/console/Helper/SymfonyQuestionHelper.php
deleted file mode 100644
index 5937741a..00000000
--- a/www/wiki/vendor/symfony/console/Helper/SymfonyQuestionHelper.php
+++ /dev/null
@@ -1,124 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Question\ChoiceQuestion;
-use Symfony\Component\Console\Question\ConfirmationQuestion;
-use Symfony\Component\Console\Question\Question;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-/**
- * Symfony Style Guide compliant question helper.
- *
- * @author Kevin Bond <kevinbond@gmail.com>
- */
-class SymfonyQuestionHelper extends QuestionHelper
-{
- /**
- * {@inheritdoc}
- *
- * To be removed in 4.0
- */
- public function ask(InputInterface $input, OutputInterface $output, Question $question)
- {
- $validator = $question->getValidator();
- $question->setValidator(function ($value) use ($validator) {
- if (null !== $validator) {
- $value = $validator($value);
- } else {
- // make required
- if (!\is_array($value) && !\is_bool($value) && 0 === \strlen($value)) {
- @trigger_error('The default question validator is deprecated since Symfony 3.3 and will not be used anymore in version 4.0. Set a custom question validator if needed.', E_USER_DEPRECATED);
-
- throw new LogicException('A value is required.');
- }
- }
-
- return $value;
- });
-
- return parent::ask($input, $output, $question);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function writePrompt(OutputInterface $output, Question $question)
- {
- $text = OutputFormatter::escapeTrailingBackslash($question->getQuestion());
- $default = $question->getDefault();
-
- switch (true) {
- case null === $default:
- $text = sprintf(' <info>%s</info>:', $text);
-
- break;
-
- case $question instanceof ConfirmationQuestion:
- $text = sprintf(' <info>%s (yes/no)</info> [<comment>%s</comment>]:', $text, $default ? 'yes' : 'no');
-
- break;
-
- case $question instanceof ChoiceQuestion && $question->isMultiselect():
- $choices = $question->getChoices();
- $default = explode(',', $default);
-
- foreach ($default as $key => $value) {
- $default[$key] = $choices[trim($value)];
- }
-
- $text = sprintf(' <info>%s</info> [<comment>%s</comment>]:', $text, OutputFormatter::escape(implode(', ', $default)));
-
- break;
-
- case $question instanceof ChoiceQuestion:
- $choices = $question->getChoices();
- $text = sprintf(' <info>%s</info> [<comment>%s</comment>]:', $text, OutputFormatter::escape(isset($choices[$default]) ? $choices[$default] : $default));
-
- break;
-
- default:
- $text = sprintf(' <info>%s</info> [<comment>%s</comment>]:', $text, OutputFormatter::escape($default));
- }
-
- $output->writeln($text);
-
- if ($question instanceof ChoiceQuestion) {
- $width = max(array_map('strlen', array_keys($question->getChoices())));
-
- foreach ($question->getChoices() as $key => $value) {
- $output->writeln(sprintf(" [<comment>%-${width}s</comment>] %s", $key, $value));
- }
- }
-
- $output->write(' > ');
- }
-
- /**
- * {@inheritdoc}
- */
- protected function writeError(OutputInterface $output, \Exception $error)
- {
- if ($output instanceof SymfonyStyle) {
- $output->newLine();
- $output->error($error->getMessage());
-
- return;
- }
-
- parent::writeError($output, $error);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/Table.php b/www/wiki/vendor/symfony/console/Helper/Table.php
deleted file mode 100644
index 1c439dc1..00000000
--- a/www/wiki/vendor/symfony/console/Helper/Table.php
+++ /dev/null
@@ -1,705 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Provides helpers to display a table.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- * @author Саша Стаменковић <umpirsky@gmail.com>
- * @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
- * @author Max Grigorian <maxakawizard@gmail.com>
- */
-class Table
-{
- /**
- * Table headers.
- */
- private $headers = [];
-
- /**
- * Table rows.
- */
- private $rows = [];
-
- /**
- * Column widths cache.
- */
- private $effectiveColumnWidths = [];
-
- /**
- * Number of columns cache.
- *
- * @var int
- */
- private $numberOfColumns;
-
- /**
- * @var OutputInterface
- */
- private $output;
-
- /**
- * @var TableStyle
- */
- private $style;
-
- /**
- * @var array
- */
- private $columnStyles = [];
-
- /**
- * User set column widths.
- *
- * @var array
- */
- private $columnWidths = [];
-
- private static $styles;
-
- public function __construct(OutputInterface $output)
- {
- $this->output = $output;
-
- if (!self::$styles) {
- self::$styles = self::initStyles();
- }
-
- $this->setStyle('default');
- }
-
- /**
- * Sets a style definition.
- *
- * @param string $name The style name
- * @param TableStyle $style A TableStyle instance
- */
- public static function setStyleDefinition($name, TableStyle $style)
- {
- if (!self::$styles) {
- self::$styles = self::initStyles();
- }
-
- self::$styles[$name] = $style;
- }
-
- /**
- * Gets a style definition by name.
- *
- * @param string $name The style name
- *
- * @return TableStyle
- */
- public static function getStyleDefinition($name)
- {
- if (!self::$styles) {
- self::$styles = self::initStyles();
- }
-
- if (isset(self::$styles[$name])) {
- return self::$styles[$name];
- }
-
- throw new InvalidArgumentException(sprintf('Style "%s" is not defined.', $name));
- }
-
- /**
- * Sets table style.
- *
- * @param TableStyle|string $name The style name or a TableStyle instance
- *
- * @return $this
- */
- public function setStyle($name)
- {
- $this->style = $this->resolveStyle($name);
-
- return $this;
- }
-
- /**
- * Gets the current table style.
- *
- * @return TableStyle
- */
- public function getStyle()
- {
- return $this->style;
- }
-
- /**
- * Sets table column style.
- *
- * @param int $columnIndex Column index
- * @param TableStyle|string $name The style name or a TableStyle instance
- *
- * @return $this
- */
- public function setColumnStyle($columnIndex, $name)
- {
- $columnIndex = (int) $columnIndex;
-
- $this->columnStyles[$columnIndex] = $this->resolveStyle($name);
-
- return $this;
- }
-
- /**
- * Gets the current style for a column.
- *
- * If style was not set, it returns the global table style.
- *
- * @param int $columnIndex Column index
- *
- * @return TableStyle
- */
- public function getColumnStyle($columnIndex)
- {
- if (isset($this->columnStyles[$columnIndex])) {
- return $this->columnStyles[$columnIndex];
- }
-
- return $this->getStyle();
- }
-
- /**
- * Sets the minimum width of a column.
- *
- * @param int $columnIndex Column index
- * @param int $width Minimum column width in characters
- *
- * @return $this
- */
- public function setColumnWidth($columnIndex, $width)
- {
- $this->columnWidths[(int) $columnIndex] = (int) $width;
-
- return $this;
- }
-
- /**
- * Sets the minimum width of all columns.
- *
- * @param array $widths
- *
- * @return $this
- */
- public function setColumnWidths(array $widths)
- {
- $this->columnWidths = [];
- foreach ($widths as $index => $width) {
- $this->setColumnWidth($index, $width);
- }
-
- return $this;
- }
-
- public function setHeaders(array $headers)
- {
- $headers = array_values($headers);
- if (!empty($headers) && !\is_array($headers[0])) {
- $headers = [$headers];
- }
-
- $this->headers = $headers;
-
- return $this;
- }
-
- public function setRows(array $rows)
- {
- $this->rows = [];
-
- return $this->addRows($rows);
- }
-
- public function addRows(array $rows)
- {
- foreach ($rows as $row) {
- $this->addRow($row);
- }
-
- return $this;
- }
-
- public function addRow($row)
- {
- if ($row instanceof TableSeparator) {
- $this->rows[] = $row;
-
- return $this;
- }
-
- if (!\is_array($row)) {
- throw new InvalidArgumentException('A row must be an array or a TableSeparator instance.');
- }
-
- $this->rows[] = array_values($row);
-
- return $this;
- }
-
- public function setRow($column, array $row)
- {
- $this->rows[$column] = $row;
-
- return $this;
- }
-
- /**
- * Renders table to output.
- *
- * Example:
- *
- * +---------------+-----------------------+------------------+
- * | ISBN | Title | Author |
- * +---------------+-----------------------+------------------+
- * | 99921-58-10-7 | Divine Comedy | Dante Alighieri |
- * | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
- * | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
- * +---------------+-----------------------+------------------+
- */
- public function render()
- {
- $this->calculateNumberOfColumns();
- $rows = $this->buildTableRows($this->rows);
- $headers = $this->buildTableRows($this->headers);
-
- $this->calculateColumnsWidth(array_merge($headers, $rows));
-
- $this->renderRowSeparator();
- if (!empty($headers)) {
- foreach ($headers as $header) {
- $this->renderRow($header, $this->style->getCellHeaderFormat());
- $this->renderRowSeparator();
- }
- }
- foreach ($rows as $row) {
- if ($row instanceof TableSeparator) {
- $this->renderRowSeparator();
- } else {
- $this->renderRow($row, $this->style->getCellRowFormat());
- }
- }
- if (!empty($rows)) {
- $this->renderRowSeparator();
- }
-
- $this->cleanup();
- }
-
- /**
- * Renders horizontal header separator.
- *
- * Example:
- *
- * +-----+-----------+-------+
- */
- private function renderRowSeparator()
- {
- if (0 === $count = $this->numberOfColumns) {
- return;
- }
-
- if (!$this->style->getHorizontalBorderChar() && !$this->style->getCrossingChar()) {
- return;
- }
-
- $markup = $this->style->getCrossingChar();
- for ($column = 0; $column < $count; ++$column) {
- $markup .= str_repeat($this->style->getHorizontalBorderChar(), $this->effectiveColumnWidths[$column]).$this->style->getCrossingChar();
- }
-
- $this->output->writeln(sprintf($this->style->getBorderFormat(), $markup));
- }
-
- /**
- * Renders vertical column separator.
- */
- private function renderColumnSeparator()
- {
- return sprintf($this->style->getBorderFormat(), $this->style->getVerticalBorderChar());
- }
-
- /**
- * Renders table row.
- *
- * Example:
- *
- * | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
- *
- * @param array $row
- * @param string $cellFormat
- */
- private function renderRow(array $row, $cellFormat)
- {
- if (empty($row)) {
- return;
- }
-
- $rowContent = $this->renderColumnSeparator();
- foreach ($this->getRowColumns($row) as $column) {
- $rowContent .= $this->renderCell($row, $column, $cellFormat);
- $rowContent .= $this->renderColumnSeparator();
- }
- $this->output->writeln($rowContent);
- }
-
- /**
- * Renders table cell with padding.
- *
- * @param array $row
- * @param int $column
- * @param string $cellFormat
- */
- private function renderCell(array $row, $column, $cellFormat)
- {
- $cell = isset($row[$column]) ? $row[$column] : '';
- $width = $this->effectiveColumnWidths[$column];
- if ($cell instanceof TableCell && $cell->getColspan() > 1) {
- // add the width of the following columns(numbers of colspan).
- foreach (range($column + 1, $column + $cell->getColspan() - 1) as $nextColumn) {
- $width += $this->getColumnSeparatorWidth() + $this->effectiveColumnWidths[$nextColumn];
- }
- }
-
- // str_pad won't work properly with multi-byte strings, we need to fix the padding
- if (false !== $encoding = mb_detect_encoding($cell, null, true)) {
- $width += \strlen($cell) - mb_strwidth($cell, $encoding);
- }
-
- $style = $this->getColumnStyle($column);
-
- if ($cell instanceof TableSeparator) {
- return sprintf($style->getBorderFormat(), str_repeat($style->getHorizontalBorderChar(), $width));
- }
-
- $width += Helper::strlen($cell) - Helper::strlenWithoutDecoration($this->output->getFormatter(), $cell);
- $content = sprintf($style->getCellRowContentFormat(), $cell);
-
- return sprintf($cellFormat, str_pad($content, $width, $style->getPaddingChar(), $style->getPadType()));
- }
-
- /**
- * Calculate number of columns for this table.
- */
- private function calculateNumberOfColumns()
- {
- if (null !== $this->numberOfColumns) {
- return;
- }
-
- $columns = [0];
- foreach (array_merge($this->headers, $this->rows) as $row) {
- if ($row instanceof TableSeparator) {
- continue;
- }
-
- $columns[] = $this->getNumberOfColumns($row);
- }
-
- $this->numberOfColumns = max($columns);
- }
-
- private function buildTableRows($rows)
- {
- $unmergedRows = [];
- for ($rowKey = 0; $rowKey < \count($rows); ++$rowKey) {
- $rows = $this->fillNextRows($rows, $rowKey);
-
- // Remove any new line breaks and replace it with a new line
- foreach ($rows[$rowKey] as $column => $cell) {
- if (!strstr($cell, "\n")) {
- continue;
- }
- $lines = explode("\n", str_replace("\n", "<fg=default;bg=default>\n</>", $cell));
- foreach ($lines as $lineKey => $line) {
- if ($cell instanceof TableCell) {
- $line = new TableCell($line, ['colspan' => $cell->getColspan()]);
- }
- if (0 === $lineKey) {
- $rows[$rowKey][$column] = $line;
- } else {
- $unmergedRows[$rowKey][$lineKey][$column] = $line;
- }
- }
- }
- }
-
- $tableRows = [];
- foreach ($rows as $rowKey => $row) {
- $tableRows[] = $this->fillCells($row);
- if (isset($unmergedRows[$rowKey])) {
- $tableRows = array_merge($tableRows, $unmergedRows[$rowKey]);
- }
- }
-
- return $tableRows;
- }
-
- /**
- * fill rows that contains rowspan > 1.
- *
- * @param array $rows
- * @param int $line
- *
- * @return array
- *
- * @throws InvalidArgumentException
- */
- private function fillNextRows(array $rows, $line)
- {
- $unmergedRows = [];
- foreach ($rows[$line] as $column => $cell) {
- if (null !== $cell && !$cell instanceof TableCell && !is_scalar($cell) && !(\is_object($cell) && method_exists($cell, '__toString'))) {
- throw new InvalidArgumentException(sprintf('A cell must be a TableCell, a scalar or an object implementing __toString, %s given.', \gettype($cell)));
- }
- if ($cell instanceof TableCell && $cell->getRowspan() > 1) {
- $nbLines = $cell->getRowspan() - 1;
- $lines = [$cell];
- if (strstr($cell, "\n")) {
- $lines = explode("\n", str_replace("\n", "<fg=default;bg=default>\n</>", $cell));
- $nbLines = \count($lines) > $nbLines ? substr_count($cell, "\n") : $nbLines;
-
- $rows[$line][$column] = new TableCell($lines[0], ['colspan' => $cell->getColspan()]);
- unset($lines[0]);
- }
-
- // create a two dimensional array (rowspan x colspan)
- $unmergedRows = array_replace_recursive(array_fill($line + 1, $nbLines, []), $unmergedRows);
- foreach ($unmergedRows as $unmergedRowKey => $unmergedRow) {
- $value = isset($lines[$unmergedRowKey - $line]) ? $lines[$unmergedRowKey - $line] : '';
- $unmergedRows[$unmergedRowKey][$column] = new TableCell($value, ['colspan' => $cell->getColspan()]);
- if ($nbLines === $unmergedRowKey - $line) {
- break;
- }
- }
- }
- }
-
- foreach ($unmergedRows as $unmergedRowKey => $unmergedRow) {
- // we need to know if $unmergedRow will be merged or inserted into $rows
- if (isset($rows[$unmergedRowKey]) && \is_array($rows[$unmergedRowKey]) && ($this->getNumberOfColumns($rows[$unmergedRowKey]) + $this->getNumberOfColumns($unmergedRows[$unmergedRowKey]) <= $this->numberOfColumns)) {
- foreach ($unmergedRow as $cellKey => $cell) {
- // insert cell into row at cellKey position
- array_splice($rows[$unmergedRowKey], $cellKey, 0, [$cell]);
- }
- } else {
- $row = $this->copyRow($rows, $unmergedRowKey - 1);
- foreach ($unmergedRow as $column => $cell) {
- if (!empty($cell)) {
- $row[$column] = $unmergedRow[$column];
- }
- }
- array_splice($rows, $unmergedRowKey, 0, [$row]);
- }
- }
-
- return $rows;
- }
-
- /**
- * fill cells for a row that contains colspan > 1.
- *
- * @return array
- */
- private function fillCells($row)
- {
- $newRow = [];
- foreach ($row as $column => $cell) {
- $newRow[] = $cell;
- if ($cell instanceof TableCell && $cell->getColspan() > 1) {
- foreach (range($column + 1, $column + $cell->getColspan() - 1) as $position) {
- // insert empty value at column position
- $newRow[] = '';
- }
- }
- }
-
- return $newRow ?: $row;
- }
-
- /**
- * @param array $rows
- * @param int $line
- *
- * @return array
- */
- private function copyRow(array $rows, $line)
- {
- $row = $rows[$line];
- foreach ($row as $cellKey => $cellValue) {
- $row[$cellKey] = '';
- if ($cellValue instanceof TableCell) {
- $row[$cellKey] = new TableCell('', ['colspan' => $cellValue->getColspan()]);
- }
- }
-
- return $row;
- }
-
- /**
- * Gets number of columns by row.
- *
- * @return int
- */
- private function getNumberOfColumns(array $row)
- {
- $columns = \count($row);
- foreach ($row as $column) {
- $columns += $column instanceof TableCell ? ($column->getColspan() - 1) : 0;
- }
-
- return $columns;
- }
-
- /**
- * Gets list of columns for the given row.
- *
- * @return array
- */
- private function getRowColumns(array $row)
- {
- $columns = range(0, $this->numberOfColumns - 1);
- foreach ($row as $cellKey => $cell) {
- if ($cell instanceof TableCell && $cell->getColspan() > 1) {
- // exclude grouped columns.
- $columns = array_diff($columns, range($cellKey + 1, $cellKey + $cell->getColspan() - 1));
- }
- }
-
- return $columns;
- }
-
- /**
- * Calculates columns widths.
- */
- private function calculateColumnsWidth(array $rows)
- {
- for ($column = 0; $column < $this->numberOfColumns; ++$column) {
- $lengths = [];
- foreach ($rows as $row) {
- if ($row instanceof TableSeparator) {
- continue;
- }
-
- foreach ($row as $i => $cell) {
- if ($cell instanceof TableCell) {
- $textContent = Helper::removeDecoration($this->output->getFormatter(), $cell);
- $textLength = Helper::strlen($textContent);
- if ($textLength > 0) {
- $contentColumns = str_split($textContent, ceil($textLength / $cell->getColspan()));
- foreach ($contentColumns as $position => $content) {
- $row[$i + $position] = $content;
- }
- }
- }
- }
-
- $lengths[] = $this->getCellWidth($row, $column);
- }
-
- $this->effectiveColumnWidths[$column] = max($lengths) + Helper::strlen($this->style->getCellRowContentFormat()) - 2;
- }
- }
-
- /**
- * Gets column width.
- *
- * @return int
- */
- private function getColumnSeparatorWidth()
- {
- return Helper::strlen(sprintf($this->style->getBorderFormat(), $this->style->getVerticalBorderChar()));
- }
-
- /**
- * Gets cell width.
- *
- * @param array $row
- * @param int $column
- *
- * @return int
- */
- private function getCellWidth(array $row, $column)
- {
- $cellWidth = 0;
-
- if (isset($row[$column])) {
- $cell = $row[$column];
- $cellWidth = Helper::strlenWithoutDecoration($this->output->getFormatter(), $cell);
- }
-
- $columnWidth = isset($this->columnWidths[$column]) ? $this->columnWidths[$column] : 0;
-
- return max($cellWidth, $columnWidth);
- }
-
- /**
- * Called after rendering to cleanup cache data.
- */
- private function cleanup()
- {
- $this->effectiveColumnWidths = [];
- $this->numberOfColumns = null;
- }
-
- private static function initStyles()
- {
- $borderless = new TableStyle();
- $borderless
- ->setHorizontalBorderChar('=')
- ->setVerticalBorderChar(' ')
- ->setCrossingChar(' ')
- ;
-
- $compact = new TableStyle();
- $compact
- ->setHorizontalBorderChar('')
- ->setVerticalBorderChar(' ')
- ->setCrossingChar('')
- ->setCellRowContentFormat('%s')
- ;
-
- $styleGuide = new TableStyle();
- $styleGuide
- ->setHorizontalBorderChar('-')
- ->setVerticalBorderChar(' ')
- ->setCrossingChar(' ')
- ->setCellHeaderFormat('%s')
- ;
-
- return [
- 'default' => new TableStyle(),
- 'borderless' => $borderless,
- 'compact' => $compact,
- 'symfony-style-guide' => $styleGuide,
- ];
- }
-
- private function resolveStyle($name)
- {
- if ($name instanceof TableStyle) {
- return $name;
- }
-
- if (isset(self::$styles[$name])) {
- return self::$styles[$name];
- }
-
- throw new InvalidArgumentException(sprintf('Style "%s" is not defined.', $name));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/TableCell.php b/www/wiki/vendor/symfony/console/Helper/TableCell.php
deleted file mode 100644
index cc514532..00000000
--- a/www/wiki/vendor/symfony/console/Helper/TableCell.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-/**
- * @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
- */
-class TableCell
-{
- private $value;
- private $options = [
- 'rowspan' => 1,
- 'colspan' => 1,
- ];
-
- /**
- * @param string $value
- * @param array $options
- */
- public function __construct($value = '', array $options = [])
- {
- if (is_numeric($value) && !\is_string($value)) {
- $value = (string) $value;
- }
-
- $this->value = $value;
-
- // check option names
- if ($diff = array_diff(array_keys($options), array_keys($this->options))) {
- throw new InvalidArgumentException(sprintf('The TableCell does not support the following options: \'%s\'.', implode('\', \'', $diff)));
- }
-
- $this->options = array_merge($this->options, $options);
- }
-
- /**
- * Returns the cell value.
- *
- * @return string
- */
- public function __toString()
- {
- return $this->value;
- }
-
- /**
- * Gets number of colspan.
- *
- * @return int
- */
- public function getColspan()
- {
- return (int) $this->options['colspan'];
- }
-
- /**
- * Gets number of rowspan.
- *
- * @return int
- */
- public function getRowspan()
- {
- return (int) $this->options['rowspan'];
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/TableSeparator.php b/www/wiki/vendor/symfony/console/Helper/TableSeparator.php
deleted file mode 100644
index e541c531..00000000
--- a/www/wiki/vendor/symfony/console/Helper/TableSeparator.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-/**
- * Marks a row as being a separator.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class TableSeparator extends TableCell
-{
- public function __construct(array $options = [])
- {
- parent::__construct('', $options);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Helper/TableStyle.php b/www/wiki/vendor/symfony/console/Helper/TableStyle.php
deleted file mode 100644
index bc9c7e94..00000000
--- a/www/wiki/vendor/symfony/console/Helper/TableStyle.php
+++ /dev/null
@@ -1,258 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-
-/**
- * Defines the styles for a Table.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- * @author Саша Стаменковић <umpirsky@gmail.com>
- */
-class TableStyle
-{
- private $paddingChar = ' ';
- private $horizontalBorderChar = '-';
- private $verticalBorderChar = '|';
- private $crossingChar = '+';
- private $cellHeaderFormat = '<info>%s</info>';
- private $cellRowFormat = '%s';
- private $cellRowContentFormat = ' %s ';
- private $borderFormat = '%s';
- private $padType = STR_PAD_RIGHT;
-
- /**
- * Sets padding character, used for cell padding.
- *
- * @param string $paddingChar
- *
- * @return $this
- */
- public function setPaddingChar($paddingChar)
- {
- if (!$paddingChar) {
- throw new LogicException('The padding char must not be empty');
- }
-
- $this->paddingChar = $paddingChar;
-
- return $this;
- }
-
- /**
- * Gets padding character, used for cell padding.
- *
- * @return string
- */
- public function getPaddingChar()
- {
- return $this->paddingChar;
- }
-
- /**
- * Sets horizontal border character.
- *
- * @param string $horizontalBorderChar
- *
- * @return $this
- */
- public function setHorizontalBorderChar($horizontalBorderChar)
- {
- $this->horizontalBorderChar = $horizontalBorderChar;
-
- return $this;
- }
-
- /**
- * Gets horizontal border character.
- *
- * @return string
- */
- public function getHorizontalBorderChar()
- {
- return $this->horizontalBorderChar;
- }
-
- /**
- * Sets vertical border character.
- *
- * @param string $verticalBorderChar
- *
- * @return $this
- */
- public function setVerticalBorderChar($verticalBorderChar)
- {
- $this->verticalBorderChar = $verticalBorderChar;
-
- return $this;
- }
-
- /**
- * Gets vertical border character.
- *
- * @return string
- */
- public function getVerticalBorderChar()
- {
- return $this->verticalBorderChar;
- }
-
- /**
- * Sets crossing character.
- *
- * @param string $crossingChar
- *
- * @return $this
- */
- public function setCrossingChar($crossingChar)
- {
- $this->crossingChar = $crossingChar;
-
- return $this;
- }
-
- /**
- * Gets crossing character.
- *
- * @return string
- */
- public function getCrossingChar()
- {
- return $this->crossingChar;
- }
-
- /**
- * Sets header cell format.
- *
- * @param string $cellHeaderFormat
- *
- * @return $this
- */
- public function setCellHeaderFormat($cellHeaderFormat)
- {
- $this->cellHeaderFormat = $cellHeaderFormat;
-
- return $this;
- }
-
- /**
- * Gets header cell format.
- *
- * @return string
- */
- public function getCellHeaderFormat()
- {
- return $this->cellHeaderFormat;
- }
-
- /**
- * Sets row cell format.
- *
- * @param string $cellRowFormat
- *
- * @return $this
- */
- public function setCellRowFormat($cellRowFormat)
- {
- $this->cellRowFormat = $cellRowFormat;
-
- return $this;
- }
-
- /**
- * Gets row cell format.
- *
- * @return string
- */
- public function getCellRowFormat()
- {
- return $this->cellRowFormat;
- }
-
- /**
- * Sets row cell content format.
- *
- * @param string $cellRowContentFormat
- *
- * @return $this
- */
- public function setCellRowContentFormat($cellRowContentFormat)
- {
- $this->cellRowContentFormat = $cellRowContentFormat;
-
- return $this;
- }
-
- /**
- * Gets row cell content format.
- *
- * @return string
- */
- public function getCellRowContentFormat()
- {
- return $this->cellRowContentFormat;
- }
-
- /**
- * Sets table border format.
- *
- * @param string $borderFormat
- *
- * @return $this
- */
- public function setBorderFormat($borderFormat)
- {
- $this->borderFormat = $borderFormat;
-
- return $this;
- }
-
- /**
- * Gets table border format.
- *
- * @return string
- */
- public function getBorderFormat()
- {
- return $this->borderFormat;
- }
-
- /**
- * Sets cell padding type.
- *
- * @param int $padType STR_PAD_*
- *
- * @return $this
- */
- public function setPadType($padType)
- {
- if (!\in_array($padType, [STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH], true)) {
- throw new InvalidArgumentException('Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).');
- }
-
- $this->padType = $padType;
-
- return $this;
- }
-
- /**
- * Gets cell padding type.
- *
- * @return int
- */
- public function getPadType()
- {
- return $this->padType;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Input/ArgvInput.php b/www/wiki/vendor/symfony/console/Input/ArgvInput.php
deleted file mode 100644
index f604057e..00000000
--- a/www/wiki/vendor/symfony/console/Input/ArgvInput.php
+++ /dev/null
@@ -1,370 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\RuntimeException;
-
-/**
- * ArgvInput represents an input coming from the CLI arguments.
- *
- * Usage:
- *
- * $input = new ArgvInput();
- *
- * By default, the `$_SERVER['argv']` array is used for the input values.
- *
- * This can be overridden by explicitly passing the input values in the constructor:
- *
- * $input = new ArgvInput($_SERVER['argv']);
- *
- * If you pass it yourself, don't forget that the first element of the array
- * is the name of the running application.
- *
- * When passing an argument to the constructor, be sure that it respects
- * the same rules as the argv one. It's almost always better to use the
- * `StringInput` when you want to provide your own input.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- *
- * @see http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html
- * @see http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02
- */
-class ArgvInput extends Input
-{
- private $tokens;
- private $parsed;
-
- /**
- * @param array|null $argv An array of parameters from the CLI (in the argv format)
- * @param InputDefinition|null $definition A InputDefinition instance
- */
- public function __construct(array $argv = null, InputDefinition $definition = null)
- {
- if (null === $argv) {
- $argv = $_SERVER['argv'];
- }
-
- // strip the application name
- array_shift($argv);
-
- $this->tokens = $argv;
-
- parent::__construct($definition);
- }
-
- protected function setTokens(array $tokens)
- {
- $this->tokens = $tokens;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function parse()
- {
- $parseOptions = true;
- $this->parsed = $this->tokens;
- while (null !== $token = array_shift($this->parsed)) {
- if ($parseOptions && '' == $token) {
- $this->parseArgument($token);
- } elseif ($parseOptions && '--' == $token) {
- $parseOptions = false;
- } elseif ($parseOptions && 0 === strpos($token, '--')) {
- $this->parseLongOption($token);
- } elseif ($parseOptions && '-' === $token[0] && '-' !== $token) {
- $this->parseShortOption($token);
- } else {
- $this->parseArgument($token);
- }
- }
- }
-
- /**
- * Parses a short option.
- *
- * @param string $token The current token
- */
- private function parseShortOption($token)
- {
- $name = substr($token, 1);
-
- if (\strlen($name) > 1) {
- if ($this->definition->hasShortcut($name[0]) && $this->definition->getOptionForShortcut($name[0])->acceptValue()) {
- // an option with a value (with no space)
- $this->addShortOption($name[0], substr($name, 1));
- } else {
- $this->parseShortOptionSet($name);
- }
- } else {
- $this->addShortOption($name, null);
- }
- }
-
- /**
- * Parses a short option set.
- *
- * @param string $name The current token
- *
- * @throws RuntimeException When option given doesn't exist
- */
- private function parseShortOptionSet($name)
- {
- $len = \strlen($name);
- for ($i = 0; $i < $len; ++$i) {
- if (!$this->definition->hasShortcut($name[$i])) {
- $encoding = mb_detect_encoding($name, null, true);
- throw new RuntimeException(sprintf('The "-%s" option does not exist.', false === $encoding ? $name[$i] : mb_substr($name, $i, 1, $encoding)));
- }
-
- $option = $this->definition->getOptionForShortcut($name[$i]);
- if ($option->acceptValue()) {
- $this->addLongOption($option->getName(), $i === $len - 1 ? null : substr($name, $i + 1));
-
- break;
- } else {
- $this->addLongOption($option->getName(), null);
- }
- }
- }
-
- /**
- * Parses a long option.
- *
- * @param string $token The current token
- */
- private function parseLongOption($token)
- {
- $name = substr($token, 2);
-
- if (false !== $pos = strpos($name, '=')) {
- if (0 === \strlen($value = substr($name, $pos + 1))) {
- // if no value after "=" then substr() returns "" since php7 only, false before
- // see http://php.net/manual/fr/migration70.incompatible.php#119151
- if (\PHP_VERSION_ID < 70000 && false === $value) {
- $value = '';
- }
- array_unshift($this->parsed, $value);
- }
- $this->addLongOption(substr($name, 0, $pos), $value);
- } else {
- $this->addLongOption($name, null);
- }
- }
-
- /**
- * Parses an argument.
- *
- * @param string $token The current token
- *
- * @throws RuntimeException When too many arguments are given
- */
- private function parseArgument($token)
- {
- $c = \count($this->arguments);
-
- // if input is expecting another argument, add it
- if ($this->definition->hasArgument($c)) {
- $arg = $this->definition->getArgument($c);
- $this->arguments[$arg->getName()] = $arg->isArray() ? [$token] : $token;
-
- // if last argument isArray(), append token to last argument
- } elseif ($this->definition->hasArgument($c - 1) && $this->definition->getArgument($c - 1)->isArray()) {
- $arg = $this->definition->getArgument($c - 1);
- $this->arguments[$arg->getName()][] = $token;
-
- // unexpected argument
- } else {
- $all = $this->definition->getArguments();
- if (\count($all)) {
- throw new RuntimeException(sprintf('Too many arguments, expected arguments "%s".', implode('" "', array_keys($all))));
- }
-
- throw new RuntimeException(sprintf('No arguments expected, got "%s".', $token));
- }
- }
-
- /**
- * Adds a short option value.
- *
- * @param string $shortcut The short option key
- * @param mixed $value The value for the option
- *
- * @throws RuntimeException When option given doesn't exist
- */
- private function addShortOption($shortcut, $value)
- {
- if (!$this->definition->hasShortcut($shortcut)) {
- throw new RuntimeException(sprintf('The "-%s" option does not exist.', $shortcut));
- }
-
- $this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value);
- }
-
- /**
- * Adds a long option value.
- *
- * @param string $name The long option key
- * @param mixed $value The value for the option
- *
- * @throws RuntimeException When option given doesn't exist
- */
- private function addLongOption($name, $value)
- {
- if (!$this->definition->hasOption($name)) {
- throw new RuntimeException(sprintf('The "--%s" option does not exist.', $name));
- }
-
- $option = $this->definition->getOption($name);
-
- if (null !== $value && !$option->acceptValue()) {
- throw new RuntimeException(sprintf('The "--%s" option does not accept a value.', $name));
- }
-
- if (\in_array($value, ['', null], true) && $option->acceptValue() && \count($this->parsed)) {
- // if option accepts an optional or mandatory argument
- // let's see if there is one provided
- $next = array_shift($this->parsed);
- if ((isset($next[0]) && '-' !== $next[0]) || \in_array($next, ['', null], true)) {
- $value = $next;
- } else {
- array_unshift($this->parsed, $next);
- }
- }
-
- if (null === $value) {
- if ($option->isValueRequired()) {
- throw new RuntimeException(sprintf('The "--%s" option requires a value.', $name));
- }
-
- if (!$option->isArray() && !$option->isValueOptional()) {
- $value = true;
- }
- }
-
- if ($option->isArray()) {
- $this->options[$name][] = $value;
- } else {
- $this->options[$name] = $value;
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFirstArgument()
- {
- $isOption = false;
- foreach ($this->tokens as $i => $token) {
- if ($token && '-' === $token[0]) {
- if (false !== strpos($token, '=') || !isset($this->tokens[$i + 1])) {
- continue;
- }
-
- // If it's a long option, consider that everything after "--" is the option name.
- // Otherwise, use the last char (if it's a short option set, only the last one can take a value with space separator)
- $name = '-' === $token[1] ? substr($token, 2) : substr($token, -1);
- if (!isset($this->options[$name]) && !$this->definition->hasShortcut($name)) {
- // noop
- } elseif ((isset($this->options[$name]) || isset($this->options[$name = $this->definition->shortcutToName($name)])) && $this->tokens[$i + 1] === $this->options[$name]) {
- $isOption = true;
- }
-
- continue;
- }
-
- if ($isOption) {
- $isOption = false;
- continue;
- }
-
- return $token;
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasParameterOption($values, $onlyParams = false)
- {
- $values = (array) $values;
-
- foreach ($this->tokens as $token) {
- if ($onlyParams && '--' === $token) {
- return false;
- }
- foreach ($values as $value) {
- // Options with values:
- // For long options, test for '--option=' at beginning
- // For short options, test for '-o' at beginning
- $leading = 0 === strpos($value, '--') ? $value.'=' : $value;
- if ($token === $value || '' !== $leading && 0 === strpos($token, $leading)) {
- return true;
- }
- }
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getParameterOption($values, $default = false, $onlyParams = false)
- {
- $values = (array) $values;
- $tokens = $this->tokens;
-
- while (0 < \count($tokens)) {
- $token = array_shift($tokens);
- if ($onlyParams && '--' === $token) {
- return $default;
- }
-
- foreach ($values as $value) {
- if ($token === $value) {
- return array_shift($tokens);
- }
- // Options with values:
- // For long options, test for '--option=' at beginning
- // For short options, test for '-o' at beginning
- $leading = 0 === strpos($value, '--') ? $value.'=' : $value;
- if ('' !== $leading && 0 === strpos($token, $leading)) {
- return substr($token, \strlen($leading));
- }
- }
- }
-
- return $default;
- }
-
- /**
- * Returns a stringified representation of the args passed to the command.
- *
- * @return string
- */
- public function __toString()
- {
- $tokens = array_map(function ($token) {
- if (preg_match('{^(-[^=]+=)(.+)}', $token, $match)) {
- return $match[1].$this->escapeToken($match[2]);
- }
-
- if ($token && '-' !== $token[0]) {
- return $this->escapeToken($token);
- }
-
- return $token;
- }, $this->tokens);
-
- return implode(' ', $tokens);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Input/ArrayInput.php b/www/wiki/vendor/symfony/console/Input/ArrayInput.php
deleted file mode 100644
index 44c2f0d5..00000000
--- a/www/wiki/vendor/symfony/console/Input/ArrayInput.php
+++ /dev/null
@@ -1,206 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\InvalidOptionException;
-
-/**
- * ArrayInput represents an input provided as an array.
- *
- * Usage:
- *
- * $input = new ArrayInput(['command' => 'foo:bar', 'foo' => 'bar', '--bar' => 'foobar']);
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class ArrayInput extends Input
-{
- private $parameters;
-
- public function __construct(array $parameters, InputDefinition $definition = null)
- {
- $this->parameters = $parameters;
-
- parent::__construct($definition);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFirstArgument()
- {
- foreach ($this->parameters as $key => $value) {
- if ($key && '-' === $key[0]) {
- continue;
- }
-
- return $value;
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasParameterOption($values, $onlyParams = false)
- {
- $values = (array) $values;
-
- foreach ($this->parameters as $k => $v) {
- if (!\is_int($k)) {
- $v = $k;
- }
-
- if ($onlyParams && '--' === $v) {
- return false;
- }
-
- if (\in_array($v, $values)) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getParameterOption($values, $default = false, $onlyParams = false)
- {
- $values = (array) $values;
-
- foreach ($this->parameters as $k => $v) {
- if ($onlyParams && ('--' === $k || (\is_int($k) && '--' === $v))) {
- return $default;
- }
-
- if (\is_int($k)) {
- if (\in_array($v, $values)) {
- return true;
- }
- } elseif (\in_array($k, $values)) {
- return $v;
- }
- }
-
- return $default;
- }
-
- /**
- * Returns a stringified representation of the args passed to the command.
- *
- * @return string
- */
- public function __toString()
- {
- $params = [];
- foreach ($this->parameters as $param => $val) {
- if ($param && '-' === $param[0]) {
- if (\is_array($val)) {
- foreach ($val as $v) {
- $params[] = $param.('' != $v ? '='.$this->escapeToken($v) : '');
- }
- } else {
- $params[] = $param.('' != $val ? '='.$this->escapeToken($val) : '');
- }
- } else {
- $params[] = \is_array($val) ? implode(' ', array_map([$this, 'escapeToken'], $val)) : $this->escapeToken($val);
- }
- }
-
- return implode(' ', $params);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function parse()
- {
- foreach ($this->parameters as $key => $value) {
- if ('--' === $key) {
- return;
- }
- if (0 === strpos($key, '--')) {
- $this->addLongOption(substr($key, 2), $value);
- } elseif ('-' === $key[0]) {
- $this->addShortOption(substr($key, 1), $value);
- } else {
- $this->addArgument($key, $value);
- }
- }
- }
-
- /**
- * Adds a short option value.
- *
- * @param string $shortcut The short option key
- * @param mixed $value The value for the option
- *
- * @throws InvalidOptionException When option given doesn't exist
- */
- private function addShortOption($shortcut, $value)
- {
- if (!$this->definition->hasShortcut($shortcut)) {
- throw new InvalidOptionException(sprintf('The "-%s" option does not exist.', $shortcut));
- }
-
- $this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value);
- }
-
- /**
- * Adds a long option value.
- *
- * @param string $name The long option key
- * @param mixed $value The value for the option
- *
- * @throws InvalidOptionException When option given doesn't exist
- * @throws InvalidOptionException When a required value is missing
- */
- private function addLongOption($name, $value)
- {
- if (!$this->definition->hasOption($name)) {
- throw new InvalidOptionException(sprintf('The "--%s" option does not exist.', $name));
- }
-
- $option = $this->definition->getOption($name);
-
- if (null === $value) {
- if ($option->isValueRequired()) {
- throw new InvalidOptionException(sprintf('The "--%s" option requires a value.', $name));
- }
-
- if (!$option->isValueOptional()) {
- $value = true;
- }
- }
-
- $this->options[$name] = $value;
- }
-
- /**
- * Adds an argument value.
- *
- * @param string $name The argument name
- * @param mixed $value The value for the argument
- *
- * @throws InvalidArgumentException When argument given doesn't exist
- */
- private function addArgument($name, $value)
- {
- if (!$this->definition->hasArgument($name)) {
- throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
- }
-
- $this->arguments[$name] = $value;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Input/Input.php b/www/wiki/vendor/symfony/console/Input/Input.php
deleted file mode 100644
index c1220316..00000000
--- a/www/wiki/vendor/symfony/console/Input/Input.php
+++ /dev/null
@@ -1,203 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\RuntimeException;
-
-/**
- * Input is the base class for all concrete Input classes.
- *
- * Three concrete classes are provided by default:
- *
- * * `ArgvInput`: The input comes from the CLI arguments (argv)
- * * `StringInput`: The input is provided as a string
- * * `ArrayInput`: The input is provided as an array
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-abstract class Input implements InputInterface, StreamableInputInterface
-{
- protected $definition;
- protected $stream;
- protected $options = [];
- protected $arguments = [];
- protected $interactive = true;
-
- public function __construct(InputDefinition $definition = null)
- {
- if (null === $definition) {
- $this->definition = new InputDefinition();
- } else {
- $this->bind($definition);
- $this->validate();
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function bind(InputDefinition $definition)
- {
- $this->arguments = [];
- $this->options = [];
- $this->definition = $definition;
-
- $this->parse();
- }
-
- /**
- * Processes command line arguments.
- */
- abstract protected function parse();
-
- /**
- * {@inheritdoc}
- */
- public function validate()
- {
- $definition = $this->definition;
- $givenArguments = $this->arguments;
-
- $missingArguments = array_filter(array_keys($definition->getArguments()), function ($argument) use ($definition, $givenArguments) {
- return !\array_key_exists($argument, $givenArguments) && $definition->getArgument($argument)->isRequired();
- });
-
- if (\count($missingArguments) > 0) {
- throw new RuntimeException(sprintf('Not enough arguments (missing: "%s").', implode(', ', $missingArguments)));
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function isInteractive()
- {
- return $this->interactive;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setInteractive($interactive)
- {
- $this->interactive = (bool) $interactive;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getArguments()
- {
- return array_merge($this->definition->getArgumentDefaults(), $this->arguments);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getArgument($name)
- {
- if (!$this->definition->hasArgument($name)) {
- throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
- }
-
- return isset($this->arguments[$name]) ? $this->arguments[$name] : $this->definition->getArgument($name)->getDefault();
- }
-
- /**
- * {@inheritdoc}
- */
- public function setArgument($name, $value)
- {
- if (!$this->definition->hasArgument($name)) {
- throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
- }
-
- $this->arguments[$name] = $value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasArgument($name)
- {
- return $this->definition->hasArgument($name);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getOptions()
- {
- return array_merge($this->definition->getOptionDefaults(), $this->options);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getOption($name)
- {
- if (!$this->definition->hasOption($name)) {
- throw new InvalidArgumentException(sprintf('The "%s" option does not exist.', $name));
- }
-
- return \array_key_exists($name, $this->options) ? $this->options[$name] : $this->definition->getOption($name)->getDefault();
- }
-
- /**
- * {@inheritdoc}
- */
- public function setOption($name, $value)
- {
- if (!$this->definition->hasOption($name)) {
- throw new InvalidArgumentException(sprintf('The "%s" option does not exist.', $name));
- }
-
- $this->options[$name] = $value;
- }
-
- /**
- * {@inheritdoc}
- */
- public function hasOption($name)
- {
- return $this->definition->hasOption($name);
- }
-
- /**
- * Escapes a token through escapeshellarg if it contains unsafe chars.
- *
- * @param string $token
- *
- * @return string
- */
- public function escapeToken($token)
- {
- return preg_match('{^[\w-]+$}', $token) ? $token : escapeshellarg($token);
- }
-
- /**
- * {@inheritdoc}
- */
- public function setStream($stream)
- {
- $this->stream = $stream;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getStream()
- {
- return $this->stream;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Input/InputArgument.php b/www/wiki/vendor/symfony/console/Input/InputArgument.php
deleted file mode 100644
index 4c2b6a66..00000000
--- a/www/wiki/vendor/symfony/console/Input/InputArgument.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-
-/**
- * Represents a command line argument.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class InputArgument
-{
- const REQUIRED = 1;
- const OPTIONAL = 2;
- const IS_ARRAY = 4;
-
- private $name;
- private $mode;
- private $default;
- private $description;
-
- /**
- * @param string $name The argument name
- * @param int|null $mode The argument mode: self::REQUIRED or self::OPTIONAL
- * @param string $description A description text
- * @param string|string[]|null $default The default value (for self::OPTIONAL mode only)
- *
- * @throws InvalidArgumentException When argument mode is not valid
- */
- public function __construct($name, $mode = null, $description = '', $default = null)
- {
- if (null === $mode) {
- $mode = self::OPTIONAL;
- } elseif (!\is_int($mode) || $mode > 7 || $mode < 1) {
- throw new InvalidArgumentException(sprintf('Argument mode "%s" is not valid.', $mode));
- }
-
- $this->name = $name;
- $this->mode = $mode;
- $this->description = $description;
-
- $this->setDefault($default);
- }
-
- /**
- * Returns the argument name.
- *
- * @return string The argument name
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Returns true if the argument is required.
- *
- * @return bool true if parameter mode is self::REQUIRED, false otherwise
- */
- public function isRequired()
- {
- return self::REQUIRED === (self::REQUIRED & $this->mode);
- }
-
- /**
- * Returns true if the argument can take multiple values.
- *
- * @return bool true if mode is self::IS_ARRAY, false otherwise
- */
- public function isArray()
- {
- return self::IS_ARRAY === (self::IS_ARRAY & $this->mode);
- }
-
- /**
- * Sets the default value.
- *
- * @param string|string[]|null $default The default value
- *
- * @throws LogicException When incorrect default value is given
- */
- public function setDefault($default = null)
- {
- if (self::REQUIRED === $this->mode && null !== $default) {
- throw new LogicException('Cannot set a default value except for InputArgument::OPTIONAL mode.');
- }
-
- if ($this->isArray()) {
- if (null === $default) {
- $default = [];
- } elseif (!\is_array($default)) {
- throw new LogicException('A default value for an array argument must be an array.');
- }
- }
-
- $this->default = $default;
- }
-
- /**
- * Returns the default value.
- *
- * @return string|string[]|null The default value
- */
- public function getDefault()
- {
- return $this->default;
- }
-
- /**
- * Returns the description text.
- *
- * @return string The description text
- */
- public function getDescription()
- {
- return $this->description;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Input/InputAwareInterface.php b/www/wiki/vendor/symfony/console/Input/InputAwareInterface.php
deleted file mode 100644
index 5a288de5..00000000
--- a/www/wiki/vendor/symfony/console/Input/InputAwareInterface.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Input;
-
-/**
- * InputAwareInterface should be implemented by classes that depends on the
- * Console Input.
- *
- * @author Wouter J <waldio.webdesign@gmail.com>
- */
-interface InputAwareInterface
-{
- /**
- * Sets the Console Input.
- */
- public function setInput(InputInterface $input);
-}
diff --git a/www/wiki/vendor/symfony/console/Input/InputDefinition.php b/www/wiki/vendor/symfony/console/Input/InputDefinition.php
deleted file mode 100644
index 53f41d73..00000000
--- a/www/wiki/vendor/symfony/console/Input/InputDefinition.php
+++ /dev/null
@@ -1,404 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-
-/**
- * A InputDefinition represents a set of valid command line arguments and options.
- *
- * Usage:
- *
- * $definition = new InputDefinition([
- * new InputArgument('name', InputArgument::REQUIRED),
- * new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
- * ]);
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class InputDefinition
-{
- private $arguments;
- private $requiredCount;
- private $hasAnArrayArgument = false;
- private $hasOptional;
- private $options;
- private $shortcuts;
-
- /**
- * @param array $definition An array of InputArgument and InputOption instance
- */
- public function __construct(array $definition = [])
- {
- $this->setDefinition($definition);
- }
-
- /**
- * Sets the definition of the input.
- */
- public function setDefinition(array $definition)
- {
- $arguments = [];
- $options = [];
- foreach ($definition as $item) {
- if ($item instanceof InputOption) {
- $options[] = $item;
- } else {
- $arguments[] = $item;
- }
- }
-
- $this->setArguments($arguments);
- $this->setOptions($options);
- }
-
- /**
- * Sets the InputArgument objects.
- *
- * @param InputArgument[] $arguments An array of InputArgument objects
- */
- public function setArguments($arguments = [])
- {
- $this->arguments = [];
- $this->requiredCount = 0;
- $this->hasOptional = false;
- $this->hasAnArrayArgument = false;
- $this->addArguments($arguments);
- }
-
- /**
- * Adds an array of InputArgument objects.
- *
- * @param InputArgument[] $arguments An array of InputArgument objects
- */
- public function addArguments($arguments = [])
- {
- if (null !== $arguments) {
- foreach ($arguments as $argument) {
- $this->addArgument($argument);
- }
- }
- }
-
- /**
- * @throws LogicException When incorrect argument is given
- */
- public function addArgument(InputArgument $argument)
- {
- if (isset($this->arguments[$argument->getName()])) {
- throw new LogicException(sprintf('An argument with name "%s" already exists.', $argument->getName()));
- }
-
- if ($this->hasAnArrayArgument) {
- throw new LogicException('Cannot add an argument after an array argument.');
- }
-
- if ($argument->isRequired() && $this->hasOptional) {
- throw new LogicException('Cannot add a required argument after an optional one.');
- }
-
- if ($argument->isArray()) {
- $this->hasAnArrayArgument = true;
- }
-
- if ($argument->isRequired()) {
- ++$this->requiredCount;
- } else {
- $this->hasOptional = true;
- }
-
- $this->arguments[$argument->getName()] = $argument;
- }
-
- /**
- * Returns an InputArgument by name or by position.
- *
- * @param string|int $name The InputArgument name or position
- *
- * @return InputArgument An InputArgument object
- *
- * @throws InvalidArgumentException When argument given doesn't exist
- */
- public function getArgument($name)
- {
- if (!$this->hasArgument($name)) {
- throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
- }
-
- $arguments = \is_int($name) ? array_values($this->arguments) : $this->arguments;
-
- return $arguments[$name];
- }
-
- /**
- * Returns true if an InputArgument object exists by name or position.
- *
- * @param string|int $name The InputArgument name or position
- *
- * @return bool true if the InputArgument object exists, false otherwise
- */
- public function hasArgument($name)
- {
- $arguments = \is_int($name) ? array_values($this->arguments) : $this->arguments;
-
- return isset($arguments[$name]);
- }
-
- /**
- * Gets the array of InputArgument objects.
- *
- * @return InputArgument[] An array of InputArgument objects
- */
- public function getArguments()
- {
- return $this->arguments;
- }
-
- /**
- * Returns the number of InputArguments.
- *
- * @return int The number of InputArguments
- */
- public function getArgumentCount()
- {
- return $this->hasAnArrayArgument ? PHP_INT_MAX : \count($this->arguments);
- }
-
- /**
- * Returns the number of required InputArguments.
- *
- * @return int The number of required InputArguments
- */
- public function getArgumentRequiredCount()
- {
- return $this->requiredCount;
- }
-
- /**
- * Gets the default values.
- *
- * @return array An array of default values
- */
- public function getArgumentDefaults()
- {
- $values = [];
- foreach ($this->arguments as $argument) {
- $values[$argument->getName()] = $argument->getDefault();
- }
-
- return $values;
- }
-
- /**
- * Sets the InputOption objects.
- *
- * @param InputOption[] $options An array of InputOption objects
- */
- public function setOptions($options = [])
- {
- $this->options = [];
- $this->shortcuts = [];
- $this->addOptions($options);
- }
-
- /**
- * Adds an array of InputOption objects.
- *
- * @param InputOption[] $options An array of InputOption objects
- */
- public function addOptions($options = [])
- {
- foreach ($options as $option) {
- $this->addOption($option);
- }
- }
-
- /**
- * @throws LogicException When option given already exist
- */
- public function addOption(InputOption $option)
- {
- if (isset($this->options[$option->getName()]) && !$option->equals($this->options[$option->getName()])) {
- throw new LogicException(sprintf('An option named "%s" already exists.', $option->getName()));
- }
-
- if ($option->getShortcut()) {
- foreach (explode('|', $option->getShortcut()) as $shortcut) {
- if (isset($this->shortcuts[$shortcut]) && !$option->equals($this->options[$this->shortcuts[$shortcut]])) {
- throw new LogicException(sprintf('An option with shortcut "%s" already exists.', $shortcut));
- }
- }
- }
-
- $this->options[$option->getName()] = $option;
- if ($option->getShortcut()) {
- foreach (explode('|', $option->getShortcut()) as $shortcut) {
- $this->shortcuts[$shortcut] = $option->getName();
- }
- }
- }
-
- /**
- * Returns an InputOption by name.
- *
- * @param string $name The InputOption name
- *
- * @return InputOption A InputOption object
- *
- * @throws InvalidArgumentException When option given doesn't exist
- */
- public function getOption($name)
- {
- if (!$this->hasOption($name)) {
- throw new InvalidArgumentException(sprintf('The "--%s" option does not exist.', $name));
- }
-
- return $this->options[$name];
- }
-
- /**
- * Returns true if an InputOption object exists by name.
- *
- * This method can't be used to check if the user included the option when
- * executing the command (use getOption() instead).
- *
- * @param string $name The InputOption name
- *
- * @return bool true if the InputOption object exists, false otherwise
- */
- public function hasOption($name)
- {
- return isset($this->options[$name]);
- }
-
- /**
- * Gets the array of InputOption objects.
- *
- * @return InputOption[] An array of InputOption objects
- */
- public function getOptions()
- {
- return $this->options;
- }
-
- /**
- * Returns true if an InputOption object exists by shortcut.
- *
- * @param string $name The InputOption shortcut
- *
- * @return bool true if the InputOption object exists, false otherwise
- */
- public function hasShortcut($name)
- {
- return isset($this->shortcuts[$name]);
- }
-
- /**
- * Gets an InputOption by shortcut.
- *
- * @param string $shortcut The Shortcut name
- *
- * @return InputOption An InputOption object
- */
- public function getOptionForShortcut($shortcut)
- {
- return $this->getOption($this->shortcutToName($shortcut));
- }
-
- /**
- * Gets an array of default values.
- *
- * @return array An array of all default values
- */
- public function getOptionDefaults()
- {
- $values = [];
- foreach ($this->options as $option) {
- $values[$option->getName()] = $option->getDefault();
- }
-
- return $values;
- }
-
- /**
- * Returns the InputOption name given a shortcut.
- *
- * @param string $shortcut The shortcut
- *
- * @return string The InputOption name
- *
- * @throws InvalidArgumentException When option given does not exist
- *
- * @internal
- */
- public function shortcutToName($shortcut)
- {
- if (!isset($this->shortcuts[$shortcut])) {
- throw new InvalidArgumentException(sprintf('The "-%s" option does not exist.', $shortcut));
- }
-
- return $this->shortcuts[$shortcut];
- }
-
- /**
- * Gets the synopsis.
- *
- * @param bool $short Whether to return the short version (with options folded) or not
- *
- * @return string The synopsis
- */
- public function getSynopsis($short = false)
- {
- $elements = [];
-
- if ($short && $this->getOptions()) {
- $elements[] = '[options]';
- } elseif (!$short) {
- foreach ($this->getOptions() as $option) {
- $value = '';
- if ($option->acceptValue()) {
- $value = sprintf(
- ' %s%s%s',
- $option->isValueOptional() ? '[' : '',
- strtoupper($option->getName()),
- $option->isValueOptional() ? ']' : ''
- );
- }
-
- $shortcut = $option->getShortcut() ? sprintf('-%s|', $option->getShortcut()) : '';
- $elements[] = sprintf('[%s--%s%s]', $shortcut, $option->getName(), $value);
- }
- }
-
- if (\count($elements) && $this->getArguments()) {
- $elements[] = '[--]';
- }
-
- foreach ($this->getArguments() as $argument) {
- $element = '<'.$argument->getName().'>';
- if (!$argument->isRequired()) {
- $element = '['.$element.']';
- } elseif ($argument->isArray()) {
- $element .= ' ('.$element.')';
- }
-
- if ($argument->isArray()) {
- $element .= '...';
- }
-
- $elements[] = $element;
- }
-
- return implode(' ', $elements);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Input/InputInterface.php b/www/wiki/vendor/symfony/console/Input/InputInterface.php
deleted file mode 100644
index b9bcf3bb..00000000
--- a/www/wiki/vendor/symfony/console/Input/InputInterface.php
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\RuntimeException;
-
-/**
- * InputInterface is the interface implemented by all input classes.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-interface InputInterface
-{
- /**
- * Returns the first argument from the raw parameters (not parsed).
- *
- * @return string|null The value of the first argument or null otherwise
- */
- public function getFirstArgument();
-
- /**
- * Returns true if the raw parameters (not parsed) contain a value.
- *
- * This method is to be used to introspect the input parameters
- * before they have been validated. It must be used carefully.
- * Does not necessarily return the correct result for short options
- * when multiple flags are combined in the same option.
- *
- * @param string|array $values The values to look for in the raw parameters (can be an array)
- * @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal
- *
- * @return bool true if the value is contained in the raw parameters
- */
- public function hasParameterOption($values, $onlyParams = false);
-
- /**
- * Returns the value of a raw option (not parsed).
- *
- * This method is to be used to introspect the input parameters
- * before they have been validated. It must be used carefully.
- * Does not necessarily return the correct result for short options
- * when multiple flags are combined in the same option.
- *
- * @param string|array $values The value(s) to look for in the raw parameters (can be an array)
- * @param mixed $default The default value to return if no result is found
- * @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal
- *
- * @return mixed The option value
- */
- public function getParameterOption($values, $default = false, $onlyParams = false);
-
- /**
- * Binds the current Input instance with the given arguments and options.
- *
- * @throws RuntimeException
- */
- public function bind(InputDefinition $definition);
-
- /**
- * Validates the input.
- *
- * @throws RuntimeException When not enough arguments are given
- */
- public function validate();
-
- /**
- * Returns all the given arguments merged with the default values.
- *
- * @return array
- */
- public function getArguments();
-
- /**
- * Returns the argument value for a given argument name.
- *
- * @param string $name The argument name
- *
- * @return string|string[]|null The argument value
- *
- * @throws InvalidArgumentException When argument given doesn't exist
- */
- public function getArgument($name);
-
- /**
- * Sets an argument value by name.
- *
- * @param string $name The argument name
- * @param string|string[]|null $value The argument value
- *
- * @throws InvalidArgumentException When argument given doesn't exist
- */
- public function setArgument($name, $value);
-
- /**
- * Returns true if an InputArgument object exists by name or position.
- *
- * @param string|int $name The InputArgument name or position
- *
- * @return bool true if the InputArgument object exists, false otherwise
- */
- public function hasArgument($name);
-
- /**
- * Returns all the given options merged with the default values.
- *
- * @return array
- */
- public function getOptions();
-
- /**
- * Returns the option value for a given option name.
- *
- * @param string $name The option name
- *
- * @return string|string[]|bool|null The option value
- *
- * @throws InvalidArgumentException When option given doesn't exist
- */
- public function getOption($name);
-
- /**
- * Sets an option value by name.
- *
- * @param string $name The option name
- * @param string|string[]|bool|null $value The option value
- *
- * @throws InvalidArgumentException When option given doesn't exist
- */
- public function setOption($name, $value);
-
- /**
- * Returns true if an InputOption object exists by name.
- *
- * @param string $name The InputOption name
- *
- * @return bool true if the InputOption object exists, false otherwise
- */
- public function hasOption($name);
-
- /**
- * Is this input means interactive?
- *
- * @return bool
- */
- public function isInteractive();
-
- /**
- * Sets the input interactivity.
- *
- * @param bool $interactive If the input should be interactive
- */
- public function setInteractive($interactive);
-}
diff --git a/www/wiki/vendor/symfony/console/Input/InputOption.php b/www/wiki/vendor/symfony/console/Input/InputOption.php
deleted file mode 100644
index b0bd28f5..00000000
--- a/www/wiki/vendor/symfony/console/Input/InputOption.php
+++ /dev/null
@@ -1,208 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-
-/**
- * Represents a command line option.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class InputOption
-{
- const VALUE_NONE = 1;
- const VALUE_REQUIRED = 2;
- const VALUE_OPTIONAL = 4;
- const VALUE_IS_ARRAY = 8;
-
- private $name;
- private $shortcut;
- private $mode;
- private $default;
- private $description;
-
- /**
- * @param string $name The option name
- * @param string|array|null $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
- * @param int|null $mode The option mode: One of the VALUE_* constants
- * @param string $description A description text
- * @param string|string[]|int|bool|null $default The default value (must be null for self::VALUE_NONE)
- *
- * @throws InvalidArgumentException If option mode is invalid or incompatible
- */
- public function __construct($name, $shortcut = null, $mode = null, $description = '', $default = null)
- {
- if (0 === strpos($name, '--')) {
- $name = substr($name, 2);
- }
-
- if (empty($name)) {
- throw new InvalidArgumentException('An option name cannot be empty.');
- }
-
- if (empty($shortcut)) {
- $shortcut = null;
- }
-
- if (null !== $shortcut) {
- if (\is_array($shortcut)) {
- $shortcut = implode('|', $shortcut);
- }
- $shortcuts = preg_split('{(\|)-?}', ltrim($shortcut, '-'));
- $shortcuts = array_filter($shortcuts);
- $shortcut = implode('|', $shortcuts);
-
- if (empty($shortcut)) {
- throw new InvalidArgumentException('An option shortcut cannot be empty.');
- }
- }
-
- if (null === $mode) {
- $mode = self::VALUE_NONE;
- } elseif (!\is_int($mode) || $mode > 15 || $mode < 1) {
- throw new InvalidArgumentException(sprintf('Option mode "%s" is not valid.', $mode));
- }
-
- $this->name = $name;
- $this->shortcut = $shortcut;
- $this->mode = $mode;
- $this->description = $description;
-
- if ($this->isArray() && !$this->acceptValue()) {
- throw new InvalidArgumentException('Impossible to have an option mode VALUE_IS_ARRAY if the option does not accept a value.');
- }
-
- $this->setDefault($default);
- }
-
- /**
- * Returns the option shortcut.
- *
- * @return string|null The shortcut
- */
- public function getShortcut()
- {
- return $this->shortcut;
- }
-
- /**
- * Returns the option name.
- *
- * @return string The name
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Returns true if the option accepts a value.
- *
- * @return bool true if value mode is not self::VALUE_NONE, false otherwise
- */
- public function acceptValue()
- {
- return $this->isValueRequired() || $this->isValueOptional();
- }
-
- /**
- * Returns true if the option requires a value.
- *
- * @return bool true if value mode is self::VALUE_REQUIRED, false otherwise
- */
- public function isValueRequired()
- {
- return self::VALUE_REQUIRED === (self::VALUE_REQUIRED & $this->mode);
- }
-
- /**
- * Returns true if the option takes an optional value.
- *
- * @return bool true if value mode is self::VALUE_OPTIONAL, false otherwise
- */
- public function isValueOptional()
- {
- return self::VALUE_OPTIONAL === (self::VALUE_OPTIONAL & $this->mode);
- }
-
- /**
- * Returns true if the option can take multiple values.
- *
- * @return bool true if mode is self::VALUE_IS_ARRAY, false otherwise
- */
- public function isArray()
- {
- return self::VALUE_IS_ARRAY === (self::VALUE_IS_ARRAY & $this->mode);
- }
-
- /**
- * Sets the default value.
- *
- * @param string|string[]|int|bool|null $default The default value
- *
- * @throws LogicException When incorrect default value is given
- */
- public function setDefault($default = null)
- {
- if (self::VALUE_NONE === (self::VALUE_NONE & $this->mode) && null !== $default) {
- throw new LogicException('Cannot set a default value when using InputOption::VALUE_NONE mode.');
- }
-
- if ($this->isArray()) {
- if (null === $default) {
- $default = [];
- } elseif (!\is_array($default)) {
- throw new LogicException('A default value for an array option must be an array.');
- }
- }
-
- $this->default = $this->acceptValue() ? $default : false;
- }
-
- /**
- * Returns the default value.
- *
- * @return string|string[]|int|bool|null The default value
- */
- public function getDefault()
- {
- return $this->default;
- }
-
- /**
- * Returns the description text.
- *
- * @return string The description text
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Checks whether the given option equals this one.
- *
- * @return bool
- */
- public function equals(self $option)
- {
- return $option->getName() === $this->getName()
- && $option->getShortcut() === $this->getShortcut()
- && $option->getDefault() === $this->getDefault()
- && $option->isArray() === $this->isArray()
- && $option->isValueRequired() === $this->isValueRequired()
- && $option->isValueOptional() === $this->isValueOptional()
- ;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Input/StreamableInputInterface.php b/www/wiki/vendor/symfony/console/Input/StreamableInputInterface.php
deleted file mode 100644
index d7e462f2..00000000
--- a/www/wiki/vendor/symfony/console/Input/StreamableInputInterface.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Input;
-
-/**
- * StreamableInputInterface is the interface implemented by all input classes
- * that have an input stream.
- *
- * @author Robin Chalas <robin.chalas@gmail.com>
- */
-interface StreamableInputInterface extends InputInterface
-{
- /**
- * Sets the input stream to read from when interacting with the user.
- *
- * This is mainly useful for testing purpose.
- *
- * @param resource $stream The input stream
- */
- public function setStream($stream);
-
- /**
- * Returns the input stream.
- *
- * @return resource|null
- */
- public function getStream();
-}
diff --git a/www/wiki/vendor/symfony/console/Input/StringInput.php b/www/wiki/vendor/symfony/console/Input/StringInput.php
deleted file mode 100644
index 32d270fa..00000000
--- a/www/wiki/vendor/symfony/console/Input/StringInput.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-/**
- * StringInput represents an input provided as a string.
- *
- * Usage:
- *
- * $input = new StringInput('foo --bar="foobar"');
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class StringInput extends ArgvInput
-{
- const REGEX_STRING = '([^\s]+?)(?:\s|(?<!\\\\)"|(?<!\\\\)\'|$)';
- const REGEX_QUOTED_STRING = '(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\')';
-
- /**
- * @param string $input A string representing the parameters from the CLI
- */
- public function __construct($input)
- {
- parent::__construct([]);
-
- $this->setTokens($this->tokenize($input));
- }
-
- /**
- * Tokenizes a string.
- *
- * @param string $input The input to tokenize
- *
- * @return array An array of tokens
- *
- * @throws InvalidArgumentException When unable to parse input (should never happen)
- */
- private function tokenize($input)
- {
- $tokens = [];
- $length = \strlen($input);
- $cursor = 0;
- while ($cursor < $length) {
- if (preg_match('/\s+/A', $input, $match, null, $cursor)) {
- } elseif (preg_match('/([^="\'\s]+?)(=?)('.self::REGEX_QUOTED_STRING.'+)/A', $input, $match, null, $cursor)) {
- $tokens[] = $match[1].$match[2].stripcslashes(str_replace(['"\'', '\'"', '\'\'', '""'], '', substr($match[3], 1, \strlen($match[3]) - 2)));
- } elseif (preg_match('/'.self::REGEX_QUOTED_STRING.'/A', $input, $match, null, $cursor)) {
- $tokens[] = stripcslashes(substr($match[0], 1, \strlen($match[0]) - 2));
- } elseif (preg_match('/'.self::REGEX_STRING.'/A', $input, $match, null, $cursor)) {
- $tokens[] = stripcslashes($match[1]);
- } else {
- // should never happen
- throw new InvalidArgumentException(sprintf('Unable to parse input near "... %s ..."', substr($input, $cursor, 10)));
- }
-
- $cursor += \strlen($match[0]);
- }
-
- return $tokens;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/LICENSE b/www/wiki/vendor/symfony/console/LICENSE
deleted file mode 100644
index a677f437..00000000
--- a/www/wiki/vendor/symfony/console/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2004-2019 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/symfony/console/Logger/ConsoleLogger.php b/www/wiki/vendor/symfony/console/Logger/ConsoleLogger.php
deleted file mode 100644
index e531bb1c..00000000
--- a/www/wiki/vendor/symfony/console/Logger/ConsoleLogger.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Logger;
-
-use Psr\Log\AbstractLogger;
-use Psr\Log\InvalidArgumentException;
-use Psr\Log\LogLevel;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * PSR-3 compliant console logger.
- *
- * @author Kévin Dunglas <dunglas@gmail.com>
- *
- * @see http://www.php-fig.org/psr/psr-3/
- */
-class ConsoleLogger extends AbstractLogger
-{
- const INFO = 'info';
- const ERROR = 'error';
-
- private $output;
- private $verbosityLevelMap = [
- LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::NOTICE => OutputInterface::VERBOSITY_VERBOSE,
- LogLevel::INFO => OutputInterface::VERBOSITY_VERY_VERBOSE,
- LogLevel::DEBUG => OutputInterface::VERBOSITY_DEBUG,
- ];
- private $formatLevelMap = [
- LogLevel::EMERGENCY => self::ERROR,
- LogLevel::ALERT => self::ERROR,
- LogLevel::CRITICAL => self::ERROR,
- LogLevel::ERROR => self::ERROR,
- LogLevel::WARNING => self::INFO,
- LogLevel::NOTICE => self::INFO,
- LogLevel::INFO => self::INFO,
- LogLevel::DEBUG => self::INFO,
- ];
- private $errored = false;
-
- public function __construct(OutputInterface $output, array $verbosityLevelMap = [], array $formatLevelMap = [])
- {
- $this->output = $output;
- $this->verbosityLevelMap = $verbosityLevelMap + $this->verbosityLevelMap;
- $this->formatLevelMap = $formatLevelMap + $this->formatLevelMap;
- }
-
- /**
- * {@inheritdoc}
- */
- public function log($level, $message, array $context = [])
- {
- if (!isset($this->verbosityLevelMap[$level])) {
- throw new InvalidArgumentException(sprintf('The log level "%s" does not exist.', $level));
- }
-
- $output = $this->output;
-
- // Write to the error output if necessary and available
- if (self::ERROR === $this->formatLevelMap[$level]) {
- if ($this->output instanceof ConsoleOutputInterface) {
- $output = $output->getErrorOutput();
- }
- $this->errored = true;
- }
-
- // the if condition check isn't necessary -- it's the same one that $output will do internally anyway.
- // We only do it for efficiency here as the message formatting is relatively expensive.
- if ($output->getVerbosity() >= $this->verbosityLevelMap[$level]) {
- $output->writeln(sprintf('<%1$s>[%2$s] %3$s</%1$s>', $this->formatLevelMap[$level], $level, $this->interpolate($message, $context)), $this->verbosityLevelMap[$level]);
- }
- }
-
- /**
- * Returns true when any messages have been logged at error levels.
- *
- * @return bool
- */
- public function hasErrored()
- {
- return $this->errored;
- }
-
- /**
- * Interpolates context values into the message placeholders.
- *
- * @author PHP Framework Interoperability Group
- *
- * @param string $message
- * @param array $context
- *
- * @return string
- */
- private function interpolate($message, array $context)
- {
- if (false === strpos($message, '{')) {
- return $message;
- }
-
- $replacements = [];
- foreach ($context as $key => $val) {
- if (null === $val || is_scalar($val) || (\is_object($val) && method_exists($val, '__toString'))) {
- $replacements["{{$key}}"] = $val;
- } elseif ($val instanceof \DateTimeInterface) {
- $replacements["{{$key}}"] = $val->format(\DateTime::RFC3339);
- } elseif (\is_object($val)) {
- $replacements["{{$key}}"] = '[object '.\get_class($val).']';
- } else {
- $replacements["{{$key}}"] = '['.\gettype($val).']';
- }
- }
-
- return strtr($message, $replacements);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Output/BufferedOutput.php b/www/wiki/vendor/symfony/console/Output/BufferedOutput.php
deleted file mode 100644
index 8afc8931..00000000
--- a/www/wiki/vendor/symfony/console/Output/BufferedOutput.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Output;
-
-/**
- * @author Jean-François Simon <contact@jfsimon.fr>
- */
-class BufferedOutput extends Output
-{
- private $buffer = '';
-
- /**
- * Empties buffer and returns its content.
- *
- * @return string
- */
- public function fetch()
- {
- $content = $this->buffer;
- $this->buffer = '';
-
- return $content;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doWrite($message, $newline)
- {
- $this->buffer .= $message;
-
- if ($newline) {
- $this->buffer .= PHP_EOL;
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Output/ConsoleOutput.php b/www/wiki/vendor/symfony/console/Output/ConsoleOutput.php
deleted file mode 100644
index 61dc7cbd..00000000
--- a/www/wiki/vendor/symfony/console/Output/ConsoleOutput.php
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Output;
-
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-/**
- * ConsoleOutput is the default class for all CLI output. It uses STDOUT and STDERR.
- *
- * This class is a convenient wrapper around `StreamOutput` for both STDOUT and STDERR.
- *
- * $output = new ConsoleOutput();
- *
- * This is equivalent to:
- *
- * $output = new StreamOutput(fopen('php://stdout', 'w'));
- * $stdErr = new StreamOutput(fopen('php://stderr', 'w'));
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface
-{
- private $stderr;
-
- /**
- * @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
- * @param bool|null $decorated Whether to decorate messages (null for auto-guessing)
- * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
- */
- public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)
- {
- parent::__construct($this->openOutputStream(), $verbosity, $decorated, $formatter);
-
- $actualDecorated = $this->isDecorated();
- $this->stderr = new StreamOutput($this->openErrorStream(), $verbosity, $decorated, $this->getFormatter());
-
- if (null === $decorated) {
- $this->setDecorated($actualDecorated && $this->stderr->isDecorated());
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function setDecorated($decorated)
- {
- parent::setDecorated($decorated);
- $this->stderr->setDecorated($decorated);
- }
-
- /**
- * {@inheritdoc}
- */
- public function setFormatter(OutputFormatterInterface $formatter)
- {
- parent::setFormatter($formatter);
- $this->stderr->setFormatter($formatter);
- }
-
- /**
- * {@inheritdoc}
- */
- public function setVerbosity($level)
- {
- parent::setVerbosity($level);
- $this->stderr->setVerbosity($level);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getErrorOutput()
- {
- return $this->stderr;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setErrorOutput(OutputInterface $error)
- {
- $this->stderr = $error;
- }
-
- /**
- * Returns true if current environment supports writing console output to
- * STDOUT.
- *
- * @return bool
- */
- protected function hasStdoutSupport()
- {
- return false === $this->isRunningOS400();
- }
-
- /**
- * Returns true if current environment supports writing console output to
- * STDERR.
- *
- * @return bool
- */
- protected function hasStderrSupport()
- {
- return false === $this->isRunningOS400();
- }
-
- /**
- * Checks if current executing environment is IBM iSeries (OS400), which
- * doesn't properly convert character-encodings between ASCII to EBCDIC.
- *
- * @return bool
- */
- private function isRunningOS400()
- {
- $checks = [
- \function_exists('php_uname') ? php_uname('s') : '',
- getenv('OSTYPE'),
- PHP_OS,
- ];
-
- return false !== stripos(implode(';', $checks), 'OS400');
- }
-
- /**
- * @return resource
- */
- private function openOutputStream()
- {
- if (!$this->hasStdoutSupport()) {
- return fopen('php://output', 'w');
- }
-
- return @fopen('php://stdout', 'w') ?: fopen('php://output', 'w');
- }
-
- /**
- * @return resource
- */
- private function openErrorStream()
- {
- return fopen($this->hasStderrSupport() ? 'php://stderr' : 'php://output', 'w');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Output/ConsoleOutputInterface.php b/www/wiki/vendor/symfony/console/Output/ConsoleOutputInterface.php
deleted file mode 100644
index b44ea7e0..00000000
--- a/www/wiki/vendor/symfony/console/Output/ConsoleOutputInterface.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Output;
-
-/**
- * ConsoleOutputInterface is the interface implemented by ConsoleOutput class.
- * This adds information about stderr output stream.
- *
- * @author Dariusz Górecki <darek.krk@gmail.com>
- */
-interface ConsoleOutputInterface extends OutputInterface
-{
- /**
- * Gets the OutputInterface for errors.
- *
- * @return OutputInterface
- */
- public function getErrorOutput();
-
- public function setErrorOutput(OutputInterface $error);
-}
diff --git a/www/wiki/vendor/symfony/console/Output/NullOutput.php b/www/wiki/vendor/symfony/console/Output/NullOutput.php
deleted file mode 100644
index 218f285b..00000000
--- a/www/wiki/vendor/symfony/console/Output/NullOutput.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Output;
-
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-/**
- * NullOutput suppresses all output.
- *
- * $output = new NullOutput();
- *
- * @author Fabien Potencier <fabien@symfony.com>
- * @author Tobias Schultze <http://tobion.de>
- */
-class NullOutput implements OutputInterface
-{
- /**
- * {@inheritdoc}
- */
- public function setFormatter(OutputFormatterInterface $formatter)
- {
- // do nothing
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFormatter()
- {
- // to comply with the interface we must return a OutputFormatterInterface
- return new OutputFormatter();
- }
-
- /**
- * {@inheritdoc}
- */
- public function setDecorated($decorated)
- {
- // do nothing
- }
-
- /**
- * {@inheritdoc}
- */
- public function isDecorated()
- {
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setVerbosity($level)
- {
- // do nothing
- }
-
- /**
- * {@inheritdoc}
- */
- public function getVerbosity()
- {
- return self::VERBOSITY_QUIET;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isQuiet()
- {
- return true;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isVerbose()
- {
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isVeryVerbose()
- {
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isDebug()
- {
- return false;
- }
-
- /**
- * {@inheritdoc}
- */
- public function writeln($messages, $options = self::OUTPUT_NORMAL)
- {
- // do nothing
- }
-
- /**
- * {@inheritdoc}
- */
- public function write($messages, $newline = false, $options = self::OUTPUT_NORMAL)
- {
- // do nothing
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Output/Output.php b/www/wiki/vendor/symfony/console/Output/Output.php
deleted file mode 100644
index c3856cc5..00000000
--- a/www/wiki/vendor/symfony/console/Output/Output.php
+++ /dev/null
@@ -1,175 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Output;
-
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-/**
- * Base class for output classes.
- *
- * There are five levels of verbosity:
- *
- * * normal: no option passed (normal output)
- * * verbose: -v (more output)
- * * very verbose: -vv (highly extended output)
- * * debug: -vvv (all debug output)
- * * quiet: -q (no output)
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-abstract class Output implements OutputInterface
-{
- private $verbosity;
- private $formatter;
-
- /**
- * @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
- * @param bool $decorated Whether to decorate messages
- * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
- */
- public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = false, OutputFormatterInterface $formatter = null)
- {
- $this->verbosity = null === $verbosity ? self::VERBOSITY_NORMAL : $verbosity;
- $this->formatter = $formatter ?: new OutputFormatter();
- $this->formatter->setDecorated($decorated);
- }
-
- /**
- * {@inheritdoc}
- */
- public function setFormatter(OutputFormatterInterface $formatter)
- {
- $this->formatter = $formatter;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFormatter()
- {
- return $this->formatter;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setDecorated($decorated)
- {
- $this->formatter->setDecorated($decorated);
- }
-
- /**
- * {@inheritdoc}
- */
- public function isDecorated()
- {
- return $this->formatter->isDecorated();
- }
-
- /**
- * {@inheritdoc}
- */
- public function setVerbosity($level)
- {
- $this->verbosity = (int) $level;
- }
-
- /**
- * {@inheritdoc}
- */
- public function getVerbosity()
- {
- return $this->verbosity;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isQuiet()
- {
- return self::VERBOSITY_QUIET === $this->verbosity;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isVerbose()
- {
- return self::VERBOSITY_VERBOSE <= $this->verbosity;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isVeryVerbose()
- {
- return self::VERBOSITY_VERY_VERBOSE <= $this->verbosity;
- }
-
- /**
- * {@inheritdoc}
- */
- public function isDebug()
- {
- return self::VERBOSITY_DEBUG <= $this->verbosity;
- }
-
- /**
- * {@inheritdoc}
- */
- public function writeln($messages, $options = self::OUTPUT_NORMAL)
- {
- $this->write($messages, true, $options);
- }
-
- /**
- * {@inheritdoc}
- */
- public function write($messages, $newline = false, $options = self::OUTPUT_NORMAL)
- {
- $messages = (array) $messages;
-
- $types = self::OUTPUT_NORMAL | self::OUTPUT_RAW | self::OUTPUT_PLAIN;
- $type = $types & $options ?: self::OUTPUT_NORMAL;
-
- $verbosities = self::VERBOSITY_QUIET | self::VERBOSITY_NORMAL | self::VERBOSITY_VERBOSE | self::VERBOSITY_VERY_VERBOSE | self::VERBOSITY_DEBUG;
- $verbosity = $verbosities & $options ?: self::VERBOSITY_NORMAL;
-
- if ($verbosity > $this->getVerbosity()) {
- return;
- }
-
- foreach ($messages as $message) {
- switch ($type) {
- case OutputInterface::OUTPUT_NORMAL:
- $message = $this->formatter->format($message);
- break;
- case OutputInterface::OUTPUT_RAW:
- break;
- case OutputInterface::OUTPUT_PLAIN:
- $message = strip_tags($this->formatter->format($message));
- break;
- }
-
- $this->doWrite($message, $newline);
- }
- }
-
- /**
- * Writes a message to the output.
- *
- * @param string $message A message to write to the output
- * @param bool $newline Whether to add a newline or not
- */
- abstract protected function doWrite($message, $newline);
-}
diff --git a/www/wiki/vendor/symfony/console/Output/OutputInterface.php b/www/wiki/vendor/symfony/console/Output/OutputInterface.php
deleted file mode 100644
index ad785a4c..00000000
--- a/www/wiki/vendor/symfony/console/Output/OutputInterface.php
+++ /dev/null
@@ -1,114 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Output;
-
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-/**
- * OutputInterface is the interface implemented by all Output classes.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-interface OutputInterface
-{
- const VERBOSITY_QUIET = 16;
- const VERBOSITY_NORMAL = 32;
- const VERBOSITY_VERBOSE = 64;
- const VERBOSITY_VERY_VERBOSE = 128;
- const VERBOSITY_DEBUG = 256;
-
- const OUTPUT_NORMAL = 1;
- const OUTPUT_RAW = 2;
- const OUTPUT_PLAIN = 4;
-
- /**
- * Writes a message to the output.
- *
- * @param string|array $messages The message as an array of strings or a single string
- * @param bool $newline Whether to add a newline
- * @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
- */
- public function write($messages, $newline = false, $options = 0);
-
- /**
- * Writes a message to the output and adds a newline at the end.
- *
- * @param string|array $messages The message as an array of strings or a single string
- * @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
- */
- public function writeln($messages, $options = 0);
-
- /**
- * Sets the verbosity of the output.
- *
- * @param int $level The level of verbosity (one of the VERBOSITY constants)
- */
- public function setVerbosity($level);
-
- /**
- * Gets the current verbosity of the output.
- *
- * @return int The current level of verbosity (one of the VERBOSITY constants)
- */
- public function getVerbosity();
-
- /**
- * Returns whether verbosity is quiet (-q).
- *
- * @return bool true if verbosity is set to VERBOSITY_QUIET, false otherwise
- */
- public function isQuiet();
-
- /**
- * Returns whether verbosity is verbose (-v).
- *
- * @return bool true if verbosity is set to VERBOSITY_VERBOSE, false otherwise
- */
- public function isVerbose();
-
- /**
- * Returns whether verbosity is very verbose (-vv).
- *
- * @return bool true if verbosity is set to VERBOSITY_VERY_VERBOSE, false otherwise
- */
- public function isVeryVerbose();
-
- /**
- * Returns whether verbosity is debug (-vvv).
- *
- * @return bool true if verbosity is set to VERBOSITY_DEBUG, false otherwise
- */
- public function isDebug();
-
- /**
- * Sets the decorated flag.
- *
- * @param bool $decorated Whether to decorate the messages
- */
- public function setDecorated($decorated);
-
- /**
- * Gets the decorated flag.
- *
- * @return bool true if the output will decorate messages, false otherwise
- */
- public function isDecorated();
-
- public function setFormatter(OutputFormatterInterface $formatter);
-
- /**
- * Returns current output formatter instance.
- *
- * @return OutputFormatterInterface
- */
- public function getFormatter();
-}
diff --git a/www/wiki/vendor/symfony/console/Output/StreamOutput.php b/www/wiki/vendor/symfony/console/Output/StreamOutput.php
deleted file mode 100644
index 7ff60276..00000000
--- a/www/wiki/vendor/symfony/console/Output/StreamOutput.php
+++ /dev/null
@@ -1,124 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Output;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\RuntimeException;
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-/**
- * StreamOutput writes the output to a given stream.
- *
- * Usage:
- *
- * $output = new StreamOutput(fopen('php://stdout', 'w'));
- *
- * As `StreamOutput` can use any stream, you can also use a file:
- *
- * $output = new StreamOutput(fopen('/path/to/output.log', 'a', false));
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class StreamOutput extends Output
-{
- private $stream;
-
- /**
- * @param resource $stream A stream resource
- * @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
- * @param bool|null $decorated Whether to decorate messages (null for auto-guessing)
- * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
- *
- * @throws InvalidArgumentException When first argument is not a real stream
- */
- public function __construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)
- {
- if (!\is_resource($stream) || 'stream' !== get_resource_type($stream)) {
- throw new InvalidArgumentException('The StreamOutput class needs a stream as its first argument.');
- }
-
- $this->stream = $stream;
-
- if (null === $decorated) {
- $decorated = $this->hasColorSupport();
- }
-
- parent::__construct($verbosity, $decorated, $formatter);
- }
-
- /**
- * Gets the stream attached to this StreamOutput instance.
- *
- * @return resource A stream resource
- */
- public function getStream()
- {
- return $this->stream;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function doWrite($message, $newline)
- {
- if ($newline) {
- $message .= PHP_EOL;
- }
-
- if (false === @fwrite($this->stream, $message)) {
- // should never happen
- throw new RuntimeException('Unable to write output.');
- }
-
- fflush($this->stream);
- }
-
- /**
- * Returns true if the stream supports colorization.
- *
- * Colorization is disabled if not supported by the stream:
- *
- * This is tricky on Windows, because Cygwin, Msys2 etc emulate pseudo
- * terminals via named pipes, so we can only check the environment.
- *
- * Reference: Composer\XdebugHandler\Process::supportsColor
- * https://github.com/composer/xdebug-handler
- *
- * @return bool true if the stream supports colorization, false otherwise
- */
- protected function hasColorSupport()
- {
- if ('Hyper' === getenv('TERM_PROGRAM')) {
- return true;
- }
-
- if (\DIRECTORY_SEPARATOR === '\\') {
- return (\function_exists('sapi_windows_vt100_support')
- && @sapi_windows_vt100_support($this->stream))
- || false !== getenv('ANSICON')
- || 'ON' === getenv('ConEmuANSI')
- || 'xterm' === getenv('TERM');
- }
-
- if (\function_exists('stream_isatty')) {
- return @stream_isatty($this->stream);
- }
-
- if (\function_exists('posix_isatty')) {
- return @posix_isatty($this->stream);
- }
-
- $stat = @fstat($this->stream);
- // Check if formatted mode is S_IFCHR
- return $stat ? 0020000 === ($stat['mode'] & 0170000) : false;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Question/ChoiceQuestion.php b/www/wiki/vendor/symfony/console/Question/ChoiceQuestion.php
deleted file mode 100644
index 5cb50569..00000000
--- a/www/wiki/vendor/symfony/console/Question/ChoiceQuestion.php
+++ /dev/null
@@ -1,189 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Question;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-/**
- * Represents a choice question.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class ChoiceQuestion extends Question
-{
- private $choices;
- private $multiselect = false;
- private $prompt = ' > ';
- private $errorMessage = 'Value "%s" is invalid';
-
- /**
- * @param string $question The question to ask to the user
- * @param array $choices The list of available choices
- * @param mixed $default The default answer to return
- */
- public function __construct($question, array $choices, $default = null)
- {
- if (!$choices) {
- throw new \LogicException('Choice question must have at least 1 choice available.');
- }
-
- parent::__construct($question, $default);
-
- $this->choices = $choices;
- $this->setValidator($this->getDefaultValidator());
- $this->setAutocompleterValues($choices);
- }
-
- /**
- * Returns available choices.
- *
- * @return array
- */
- public function getChoices()
- {
- return $this->choices;
- }
-
- /**
- * Sets multiselect option.
- *
- * When multiselect is set to true, multiple choices can be answered.
- *
- * @param bool $multiselect
- *
- * @return $this
- */
- public function setMultiselect($multiselect)
- {
- $this->multiselect = $multiselect;
- $this->setValidator($this->getDefaultValidator());
-
- return $this;
- }
-
- /**
- * Returns whether the choices are multiselect.
- *
- * @return bool
- */
- public function isMultiselect()
- {
- return $this->multiselect;
- }
-
- /**
- * Gets the prompt for choices.
- *
- * @return string
- */
- public function getPrompt()
- {
- return $this->prompt;
- }
-
- /**
- * Sets the prompt for choices.
- *
- * @param string $prompt
- *
- * @return $this
- */
- public function setPrompt($prompt)
- {
- $this->prompt = $prompt;
-
- return $this;
- }
-
- /**
- * Sets the error message for invalid values.
- *
- * The error message has a string placeholder (%s) for the invalid value.
- *
- * @param string $errorMessage
- *
- * @return $this
- */
- public function setErrorMessage($errorMessage)
- {
- $this->errorMessage = $errorMessage;
- $this->setValidator($this->getDefaultValidator());
-
- return $this;
- }
-
- /**
- * Returns the default answer validator.
- *
- * @return callable
- */
- private function getDefaultValidator()
- {
- $choices = $this->choices;
- $errorMessage = $this->errorMessage;
- $multiselect = $this->multiselect;
- $isAssoc = $this->isAssoc($choices);
-
- return function ($selected) use ($choices, $errorMessage, $multiselect, $isAssoc) {
- // Collapse all spaces.
- $selectedChoices = str_replace(' ', '', $selected);
-
- if ($multiselect) {
- // Check for a separated comma values
- if (!preg_match('/^[^,]+(?:,[^,]+)*$/', $selectedChoices, $matches)) {
- throw new InvalidArgumentException(sprintf($errorMessage, $selected));
- }
- $selectedChoices = explode(',', $selectedChoices);
- } else {
- $selectedChoices = [$selected];
- }
-
- $multiselectChoices = [];
- foreach ($selectedChoices as $value) {
- $results = [];
- foreach ($choices as $key => $choice) {
- if ($choice === $value) {
- $results[] = $key;
- }
- }
-
- if (\count($results) > 1) {
- throw new InvalidArgumentException(sprintf('The provided answer is ambiguous. Value should be one of %s.', implode(' or ', $results)));
- }
-
- $result = array_search($value, $choices);
-
- if (!$isAssoc) {
- if (false !== $result) {
- $result = $choices[$result];
- } elseif (isset($choices[$value])) {
- $result = $choices[$value];
- }
- } elseif (false === $result && isset($choices[$value])) {
- $result = $value;
- }
-
- if (false === $result) {
- throw new InvalidArgumentException(sprintf($errorMessage, $value));
- }
-
- $multiselectChoices[] = (string) $result;
- }
-
- if ($multiselect) {
- return $multiselectChoices;
- }
-
- return current($multiselectChoices);
- };
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Question/ConfirmationQuestion.php b/www/wiki/vendor/symfony/console/Question/ConfirmationQuestion.php
deleted file mode 100644
index d871fb8a..00000000
--- a/www/wiki/vendor/symfony/console/Question/ConfirmationQuestion.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Question;
-
-/**
- * Represents a yes/no question.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class ConfirmationQuestion extends Question
-{
- private $trueAnswerRegex;
-
- /**
- * @param string $question The question to ask to the user
- * @param bool $default The default answer to return, true or false
- * @param string $trueAnswerRegex A regex to match the "yes" answer
- */
- public function __construct($question, $default = true, $trueAnswerRegex = '/^y/i')
- {
- parent::__construct($question, (bool) $default);
-
- $this->trueAnswerRegex = $trueAnswerRegex;
- $this->setNormalizer($this->getDefaultNormalizer());
- }
-
- /**
- * Returns the default answer normalizer.
- *
- * @return callable
- */
- private function getDefaultNormalizer()
- {
- $default = $this->getDefault();
- $regex = $this->trueAnswerRegex;
-
- return function ($answer) use ($default, $regex) {
- if (\is_bool($answer)) {
- return $answer;
- }
-
- $answerIsTrue = (bool) preg_match($regex, $answer);
- if (false === $default) {
- return $answer && $answerIsTrue;
- }
-
- return '' === $answer || $answerIsTrue;
- };
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Question/Question.php b/www/wiki/vendor/symfony/console/Question/Question.php
deleted file mode 100644
index 92b9b693..00000000
--- a/www/wiki/vendor/symfony/console/Question/Question.php
+++ /dev/null
@@ -1,246 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Question;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-
-/**
- * Represents a Question.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class Question
-{
- private $question;
- private $attempts;
- private $hidden = false;
- private $hiddenFallback = true;
- private $autocompleterValues;
- private $validator;
- private $default;
- private $normalizer;
-
- /**
- * @param string $question The question to ask to the user
- * @param mixed $default The default answer to return if the user enters nothing
- */
- public function __construct($question, $default = null)
- {
- $this->question = $question;
- $this->default = $default;
- }
-
- /**
- * Returns the question.
- *
- * @return string
- */
- public function getQuestion()
- {
- return $this->question;
- }
-
- /**
- * Returns the default answer.
- *
- * @return mixed
- */
- public function getDefault()
- {
- return $this->default;
- }
-
- /**
- * Returns whether the user response must be hidden.
- *
- * @return bool
- */
- public function isHidden()
- {
- return $this->hidden;
- }
-
- /**
- * Sets whether the user response must be hidden or not.
- *
- * @param bool $hidden
- *
- * @return $this
- *
- * @throws LogicException In case the autocompleter is also used
- */
- public function setHidden($hidden)
- {
- if ($this->autocompleterValues) {
- throw new LogicException('A hidden question cannot use the autocompleter.');
- }
-
- $this->hidden = (bool) $hidden;
-
- return $this;
- }
-
- /**
- * In case the response can not be hidden, whether to fallback on non-hidden question or not.
- *
- * @return bool
- */
- public function isHiddenFallback()
- {
- return $this->hiddenFallback;
- }
-
- /**
- * Sets whether to fallback on non-hidden question if the response can not be hidden.
- *
- * @param bool $fallback
- *
- * @return $this
- */
- public function setHiddenFallback($fallback)
- {
- $this->hiddenFallback = (bool) $fallback;
-
- return $this;
- }
-
- /**
- * Gets values for the autocompleter.
- *
- * @return iterable|null
- */
- public function getAutocompleterValues()
- {
- return $this->autocompleterValues;
- }
-
- /**
- * Sets values for the autocompleter.
- *
- * @param iterable|null $values
- *
- * @return $this
- *
- * @throws InvalidArgumentException
- * @throws LogicException
- */
- public function setAutocompleterValues($values)
- {
- if (\is_array($values)) {
- $values = $this->isAssoc($values) ? array_merge(array_keys($values), array_values($values)) : array_values($values);
- }
-
- if (null !== $values && !\is_array($values) && !$values instanceof \Traversable) {
- throw new InvalidArgumentException('Autocompleter values can be either an array, `null` or a `Traversable` object.');
- }
-
- if ($this->hidden) {
- throw new LogicException('A hidden question cannot use the autocompleter.');
- }
-
- $this->autocompleterValues = $values;
-
- return $this;
- }
-
- /**
- * Sets a validator for the question.
- *
- * @param callable|null $validator
- *
- * @return $this
- */
- public function setValidator(callable $validator = null)
- {
- $this->validator = $validator;
-
- return $this;
- }
-
- /**
- * Gets the validator for the question.
- *
- * @return callable|null
- */
- public function getValidator()
- {
- return $this->validator;
- }
-
- /**
- * Sets the maximum number of attempts.
- *
- * Null means an unlimited number of attempts.
- *
- * @param int|null $attempts
- *
- * @return $this
- *
- * @throws InvalidArgumentException in case the number of attempts is invalid
- */
- public function setMaxAttempts($attempts)
- {
- if (null !== $attempts && $attempts < 1) {
- throw new InvalidArgumentException('Maximum number of attempts must be a positive value.');
- }
-
- $this->attempts = $attempts;
-
- return $this;
- }
-
- /**
- * Gets the maximum number of attempts.
- *
- * Null means an unlimited number of attempts.
- *
- * @return int|null
- */
- public function getMaxAttempts()
- {
- return $this->attempts;
- }
-
- /**
- * Sets a normalizer for the response.
- *
- * The normalizer can be a callable (a string), a closure or a class implementing __invoke.
- *
- * @param callable $normalizer
- *
- * @return $this
- */
- public function setNormalizer(callable $normalizer)
- {
- $this->normalizer = $normalizer;
-
- return $this;
- }
-
- /**
- * Gets the normalizer for the response.
- *
- * The normalizer can ba a callable (a string), a closure or a class implementing __invoke.
- *
- * @return callable
- */
- public function getNormalizer()
- {
- return $this->normalizer;
- }
-
- protected function isAssoc($array)
- {
- return (bool) \count(array_filter(array_keys($array), 'is_string'));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/README.md b/www/wiki/vendor/symfony/console/README.md
deleted file mode 100644
index 664a37c0..00000000
--- a/www/wiki/vendor/symfony/console/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-Console Component
-=================
-
-The Console component eases the creation of beautiful and testable command line
-interfaces.
-
-Resources
----------
-
- * [Documentation](https://symfony.com/doc/current/components/console/index.html)
- * [Contributing](https://symfony.com/doc/current/contributing/index.html)
- * [Report issues](https://github.com/symfony/symfony/issues) and
- [send Pull Requests](https://github.com/symfony/symfony/pulls)
- in the [main Symfony repository](https://github.com/symfony/symfony)
-
-Credits
--------
-
-`Resources/bin/hiddeninput.exe` is a third party binary provided within this
-component. Find sources and license at https://github.com/Seldaek/hidden-input.
diff --git a/www/wiki/vendor/symfony/console/Resources/bin/hiddeninput.exe b/www/wiki/vendor/symfony/console/Resources/bin/hiddeninput.exe
deleted file mode 100644
index c8cf65e8..00000000
--- a/www/wiki/vendor/symfony/console/Resources/bin/hiddeninput.exe
+++ /dev/null
Binary files differ
diff --git a/www/wiki/vendor/symfony/console/Style/OutputStyle.php b/www/wiki/vendor/symfony/console/Style/OutputStyle.php
deleted file mode 100644
index b1262b55..00000000
--- a/www/wiki/vendor/symfony/console/Style/OutputStyle.php
+++ /dev/null
@@ -1,155 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Style;
-
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-use Symfony\Component\Console\Helper\ProgressBar;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-/**
- * Decorates output to add console style guide helpers.
- *
- * @author Kevin Bond <kevinbond@gmail.com>
- */
-abstract class OutputStyle implements OutputInterface, StyleInterface
-{
- private $output;
-
- public function __construct(OutputInterface $output)
- {
- $this->output = $output;
- }
-
- /**
- * {@inheritdoc}
- */
- public function newLine($count = 1)
- {
- $this->output->write(str_repeat(PHP_EOL, $count));
- }
-
- /**
- * @param int $max
- *
- * @return ProgressBar
- */
- public function createProgressBar($max = 0)
- {
- return new ProgressBar($this->output, $max);
- }
-
- /**
- * {@inheritdoc}
- */
- public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
- {
- $this->output->write($messages, $newline, $type);
- }
-
- /**
- * {@inheritdoc}
- */
- public function writeln($messages, $type = self::OUTPUT_NORMAL)
- {
- $this->output->writeln($messages, $type);
- }
-
- /**
- * {@inheritdoc}
- */
- public function setVerbosity($level)
- {
- $this->output->setVerbosity($level);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getVerbosity()
- {
- return $this->output->getVerbosity();
- }
-
- /**
- * {@inheritdoc}
- */
- public function setDecorated($decorated)
- {
- $this->output->setDecorated($decorated);
- }
-
- /**
- * {@inheritdoc}
- */
- public function isDecorated()
- {
- return $this->output->isDecorated();
- }
-
- /**
- * {@inheritdoc}
- */
- public function setFormatter(OutputFormatterInterface $formatter)
- {
- $this->output->setFormatter($formatter);
- }
-
- /**
- * {@inheritdoc}
- */
- public function getFormatter()
- {
- return $this->output->getFormatter();
- }
-
- /**
- * {@inheritdoc}
- */
- public function isQuiet()
- {
- return $this->output->isQuiet();
- }
-
- /**
- * {@inheritdoc}
- */
- public function isVerbose()
- {
- return $this->output->isVerbose();
- }
-
- /**
- * {@inheritdoc}
- */
- public function isVeryVerbose()
- {
- return $this->output->isVeryVerbose();
- }
-
- /**
- * {@inheritdoc}
- */
- public function isDebug()
- {
- return $this->output->isDebug();
- }
-
- protected function getErrorOutput()
- {
- if (!$this->output instanceof ConsoleOutputInterface) {
- return $this->output;
- }
-
- return $this->output->getErrorOutput();
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Style/StyleInterface.php b/www/wiki/vendor/symfony/console/Style/StyleInterface.php
deleted file mode 100644
index 475c268f..00000000
--- a/www/wiki/vendor/symfony/console/Style/StyleInterface.php
+++ /dev/null
@@ -1,154 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Style;
-
-/**
- * Output style helpers.
- *
- * @author Kevin Bond <kevinbond@gmail.com>
- */
-interface StyleInterface
-{
- /**
- * Formats a command title.
- *
- * @param string $message
- */
- public function title($message);
-
- /**
- * Formats a section title.
- *
- * @param string $message
- */
- public function section($message);
-
- /**
- * Formats a list.
- */
- public function listing(array $elements);
-
- /**
- * Formats informational text.
- *
- * @param string|array $message
- */
- public function text($message);
-
- /**
- * Formats a success result bar.
- *
- * @param string|array $message
- */
- public function success($message);
-
- /**
- * Formats an error result bar.
- *
- * @param string|array $message
- */
- public function error($message);
-
- /**
- * Formats an warning result bar.
- *
- * @param string|array $message
- */
- public function warning($message);
-
- /**
- * Formats a note admonition.
- *
- * @param string|array $message
- */
- public function note($message);
-
- /**
- * Formats a caution admonition.
- *
- * @param string|array $message
- */
- public function caution($message);
-
- /**
- * Formats a table.
- */
- public function table(array $headers, array $rows);
-
- /**
- * Asks a question.
- *
- * @param string $question
- * @param string|null $default
- * @param callable|null $validator
- *
- * @return mixed
- */
- public function ask($question, $default = null, $validator = null);
-
- /**
- * Asks a question with the user input hidden.
- *
- * @param string $question
- * @param callable|null $validator
- *
- * @return mixed
- */
- public function askHidden($question, $validator = null);
-
- /**
- * Asks for confirmation.
- *
- * @param string $question
- * @param bool $default
- *
- * @return bool
- */
- public function confirm($question, $default = true);
-
- /**
- * Asks a choice question.
- *
- * @param string $question
- * @param array $choices
- * @param string|int|null $default
- *
- * @return mixed
- */
- public function choice($question, array $choices, $default = null);
-
- /**
- * Add newline(s).
- *
- * @param int $count The number of newlines
- */
- public function newLine($count = 1);
-
- /**
- * Starts the progress output.
- *
- * @param int $max Maximum steps (0 if unknown)
- */
- public function progressStart($max = 0);
-
- /**
- * Advances the progress output X steps.
- *
- * @param int $step Number of steps to advance
- */
- public function progressAdvance($step = 1);
-
- /**
- * Finishes the progress output.
- */
- public function progressFinish();
-}
diff --git a/www/wiki/vendor/symfony/console/Style/SymfonyStyle.php b/www/wiki/vendor/symfony/console/Style/SymfonyStyle.php
deleted file mode 100644
index e0ced01b..00000000
--- a/www/wiki/vendor/symfony/console/Style/SymfonyStyle.php
+++ /dev/null
@@ -1,429 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Style;
-
-use Symfony\Component\Console\Exception\RuntimeException;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Helper\Helper;
-use Symfony\Component\Console\Helper\ProgressBar;
-use Symfony\Component\Console\Helper\SymfonyQuestionHelper;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\BufferedOutput;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Question\ChoiceQuestion;
-use Symfony\Component\Console\Question\ConfirmationQuestion;
-use Symfony\Component\Console\Question\Question;
-use Symfony\Component\Console\Terminal;
-
-/**
- * Output decorator helpers for the Symfony Style Guide.
- *
- * @author Kevin Bond <kevinbond@gmail.com>
- */
-class SymfonyStyle extends OutputStyle
-{
- const MAX_LINE_LENGTH = 120;
-
- private $input;
- private $questionHelper;
- private $progressBar;
- private $lineLength;
- private $bufferedOutput;
-
- public function __construct(InputInterface $input, OutputInterface $output)
- {
- $this->input = $input;
- $this->bufferedOutput = new BufferedOutput($output->getVerbosity(), false, clone $output->getFormatter());
- // Windows cmd wraps lines as soon as the terminal width is reached, whether there are following chars or not.
- $width = (new Terminal())->getWidth() ?: self::MAX_LINE_LENGTH;
- $this->lineLength = min($width - (int) (\DIRECTORY_SEPARATOR === '\\'), self::MAX_LINE_LENGTH);
-
- parent::__construct($output);
- }
-
- /**
- * Formats a message as a block of text.
- *
- * @param string|array $messages The message to write in the block
- * @param string|null $type The block type (added in [] on first line)
- * @param string|null $style The style to apply to the whole block
- * @param string $prefix The prefix for the block
- * @param bool $padding Whether to add vertical padding
- * @param bool $escape Whether to escape the message
- */
- public function block($messages, $type = null, $style = null, $prefix = ' ', $padding = false, $escape = true)
- {
- $messages = \is_array($messages) ? array_values($messages) : [$messages];
-
- $this->autoPrependBlock();
- $this->writeln($this->createBlock($messages, $type, $style, $prefix, $padding, $escape));
- $this->newLine();
- }
-
- /**
- * {@inheritdoc}
- */
- public function title($message)
- {
- $this->autoPrependBlock();
- $this->writeln([
- sprintf('<comment>%s</>', OutputFormatter::escapeTrailingBackslash($message)),
- sprintf('<comment>%s</>', str_repeat('=', Helper::strlenWithoutDecoration($this->getFormatter(), $message))),
- ]);
- $this->newLine();
- }
-
- /**
- * {@inheritdoc}
- */
- public function section($message)
- {
- $this->autoPrependBlock();
- $this->writeln([
- sprintf('<comment>%s</>', OutputFormatter::escapeTrailingBackslash($message)),
- sprintf('<comment>%s</>', str_repeat('-', Helper::strlenWithoutDecoration($this->getFormatter(), $message))),
- ]);
- $this->newLine();
- }
-
- /**
- * {@inheritdoc}
- */
- public function listing(array $elements)
- {
- $this->autoPrependText();
- $elements = array_map(function ($element) {
- return sprintf(' * %s', $element);
- }, $elements);
-
- $this->writeln($elements);
- $this->newLine();
- }
-
- /**
- * {@inheritdoc}
- */
- public function text($message)
- {
- $this->autoPrependText();
-
- $messages = \is_array($message) ? array_values($message) : [$message];
- foreach ($messages as $message) {
- $this->writeln(sprintf(' %s', $message));
- }
- }
-
- /**
- * Formats a command comment.
- *
- * @param string|array $message
- */
- public function comment($message)
- {
- $this->block($message, null, null, '<fg=default;bg=default> // </>', false, false);
- }
-
- /**
- * {@inheritdoc}
- */
- public function success($message)
- {
- $this->block($message, 'OK', 'fg=black;bg=green', ' ', true);
- }
-
- /**
- * {@inheritdoc}
- */
- public function error($message)
- {
- $this->block($message, 'ERROR', 'fg=white;bg=red', ' ', true);
- }
-
- /**
- * {@inheritdoc}
- */
- public function warning($message)
- {
- $this->block($message, 'WARNING', 'fg=white;bg=red', ' ', true);
- }
-
- /**
- * {@inheritdoc}
- */
- public function note($message)
- {
- $this->block($message, 'NOTE', 'fg=yellow', ' ! ');
- }
-
- /**
- * {@inheritdoc}
- */
- public function caution($message)
- {
- $this->block($message, 'CAUTION', 'fg=white;bg=red', ' ! ', true);
- }
-
- /**
- * {@inheritdoc}
- */
- public function table(array $headers, array $rows)
- {
- $style = clone Table::getStyleDefinition('symfony-style-guide');
- $style->setCellHeaderFormat('<info>%s</info>');
-
- $table = new Table($this);
- $table->setHeaders($headers);
- $table->setRows($rows);
- $table->setStyle($style);
-
- $table->render();
- $this->newLine();
- }
-
- /**
- * {@inheritdoc}
- */
- public function ask($question, $default = null, $validator = null)
- {
- $question = new Question($question, $default);
- $question->setValidator($validator);
-
- return $this->askQuestion($question);
- }
-
- /**
- * {@inheritdoc}
- */
- public function askHidden($question, $validator = null)
- {
- $question = new Question($question);
-
- $question->setHidden(true);
- $question->setValidator($validator);
-
- return $this->askQuestion($question);
- }
-
- /**
- * {@inheritdoc}
- */
- public function confirm($question, $default = true)
- {
- return $this->askQuestion(new ConfirmationQuestion($question, $default));
- }
-
- /**
- * {@inheritdoc}
- */
- public function choice($question, array $choices, $default = null)
- {
- if (null !== $default) {
- $values = array_flip($choices);
- $default = $values[$default];
- }
-
- return $this->askQuestion(new ChoiceQuestion($question, $choices, $default));
- }
-
- /**
- * {@inheritdoc}
- */
- public function progressStart($max = 0)
- {
- $this->progressBar = $this->createProgressBar($max);
- $this->progressBar->start();
- }
-
- /**
- * {@inheritdoc}
- */
- public function progressAdvance($step = 1)
- {
- $this->getProgressBar()->advance($step);
- }
-
- /**
- * {@inheritdoc}
- */
- public function progressFinish()
- {
- $this->getProgressBar()->finish();
- $this->newLine(2);
- $this->progressBar = null;
- }
-
- /**
- * {@inheritdoc}
- */
- public function createProgressBar($max = 0)
- {
- $progressBar = parent::createProgressBar($max);
-
- if ('\\' !== \DIRECTORY_SEPARATOR || 'Hyper' === getenv('TERM_PROGRAM')) {
- $progressBar->setEmptyBarCharacter('░'); // light shade character \u2591
- $progressBar->setProgressCharacter('');
- $progressBar->setBarCharacter('▓'); // dark shade character \u2593
- }
-
- return $progressBar;
- }
-
- /**
- * @return mixed
- */
- public function askQuestion(Question $question)
- {
- if ($this->input->isInteractive()) {
- $this->autoPrependBlock();
- }
-
- if (!$this->questionHelper) {
- $this->questionHelper = new SymfonyQuestionHelper();
- }
-
- $answer = $this->questionHelper->ask($this->input, $this, $question);
-
- if ($this->input->isInteractive()) {
- $this->newLine();
- $this->bufferedOutput->write("\n");
- }
-
- return $answer;
- }
-
- /**
- * {@inheritdoc}
- */
- public function writeln($messages, $type = self::OUTPUT_NORMAL)
- {
- parent::writeln($messages, $type);
- $this->bufferedOutput->writeln($this->reduceBuffer($messages), $type);
- }
-
- /**
- * {@inheritdoc}
- */
- public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
- {
- parent::write($messages, $newline, $type);
- $this->bufferedOutput->write($this->reduceBuffer($messages), $newline, $type);
- }
-
- /**
- * {@inheritdoc}
- */
- public function newLine($count = 1)
- {
- parent::newLine($count);
- $this->bufferedOutput->write(str_repeat("\n", $count));
- }
-
- /**
- * Returns a new instance which makes use of stderr if available.
- *
- * @return self
- */
- public function getErrorStyle()
- {
- return new self($this->input, $this->getErrorOutput());
- }
-
- /**
- * @return ProgressBar
- */
- private function getProgressBar()
- {
- if (!$this->progressBar) {
- throw new RuntimeException('The ProgressBar is not started.');
- }
-
- return $this->progressBar;
- }
-
- private function autoPrependBlock()
- {
- $chars = substr(str_replace(PHP_EOL, "\n", $this->bufferedOutput->fetch()), -2);
-
- if (!isset($chars[0])) {
- return $this->newLine(); //empty history, so we should start with a new line.
- }
- //Prepend new line for each non LF chars (This means no blank line was output before)
- $this->newLine(2 - substr_count($chars, "\n"));
- }
-
- private function autoPrependText()
- {
- $fetched = $this->bufferedOutput->fetch();
- //Prepend new line if last char isn't EOL:
- if ("\n" !== substr($fetched, -1)) {
- $this->newLine();
- }
- }
-
- private function reduceBuffer($messages)
- {
- // We need to know if the two last chars are PHP_EOL
- // Preserve the last 4 chars inserted (PHP_EOL on windows is two chars) in the history buffer
- return array_map(function ($value) {
- return substr($value, -4);
- }, array_merge([$this->bufferedOutput->fetch()], (array) $messages));
- }
-
- private function createBlock($messages, $type = null, $style = null, $prefix = ' ', $padding = false, $escape = false)
- {
- $indentLength = 0;
- $prefixLength = Helper::strlenWithoutDecoration($this->getFormatter(), $prefix);
- $lines = [];
-
- if (null !== $type) {
- $type = sprintf('[%s] ', $type);
- $indentLength = \strlen($type);
- $lineIndentation = str_repeat(' ', $indentLength);
- }
-
- // wrap and add newlines for each element
- foreach ($messages as $key => $message) {
- if ($escape) {
- $message = OutputFormatter::escape($message);
- }
-
- $lines = array_merge($lines, explode(PHP_EOL, wordwrap($message, $this->lineLength - $prefixLength - $indentLength, PHP_EOL, true)));
-
- if (\count($messages) > 1 && $key < \count($messages) - 1) {
- $lines[] = '';
- }
- }
-
- $firstLineIndex = 0;
- if ($padding && $this->isDecorated()) {
- $firstLineIndex = 1;
- array_unshift($lines, '');
- $lines[] = '';
- }
-
- foreach ($lines as $i => &$line) {
- if (null !== $type) {
- $line = $firstLineIndex === $i ? $type.$line : $lineIndentation.$line;
- }
-
- $line = $prefix.$line;
- $line .= str_repeat(' ', $this->lineLength - Helper::strlenWithoutDecoration($this->getFormatter(), $line));
-
- if ($style) {
- $line = sprintf('<%s>%s</>', $style, $line);
- }
- }
-
- return $lines;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Terminal.php b/www/wiki/vendor/symfony/console/Terminal.php
deleted file mode 100644
index 456cca11..00000000
--- a/www/wiki/vendor/symfony/console/Terminal.php
+++ /dev/null
@@ -1,137 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console;
-
-class Terminal
-{
- private static $width;
- private static $height;
-
- /**
- * Gets the terminal width.
- *
- * @return int
- */
- public function getWidth()
- {
- $width = getenv('COLUMNS');
- if (false !== $width) {
- return (int) trim($width);
- }
-
- if (null === self::$width) {
- self::initDimensions();
- }
-
- return self::$width ?: 80;
- }
-
- /**
- * Gets the terminal height.
- *
- * @return int
- */
- public function getHeight()
- {
- $height = getenv('LINES');
- if (false !== $height) {
- return (int) trim($height);
- }
-
- if (null === self::$height) {
- self::initDimensions();
- }
-
- return self::$height ?: 50;
- }
-
- private static function initDimensions()
- {
- if ('\\' === \DIRECTORY_SEPARATOR) {
- if (preg_match('/^(\d+)x(\d+)(?: \((\d+)x(\d+)\))?$/', trim(getenv('ANSICON')), $matches)) {
- // extract [w, H] from "wxh (WxH)"
- // or [w, h] from "wxh"
- self::$width = (int) $matches[1];
- self::$height = isset($matches[4]) ? (int) $matches[4] : (int) $matches[2];
- } elseif (null !== $dimensions = self::getConsoleMode()) {
- // extract [w, h] from "wxh"
- self::$width = (int) $dimensions[0];
- self::$height = (int) $dimensions[1];
- }
- } elseif ($sttyString = self::getSttyColumns()) {
- if (preg_match('/rows.(\d+);.columns.(\d+);/i', $sttyString, $matches)) {
- // extract [w, h] from "rows h; columns w;"
- self::$width = (int) $matches[2];
- self::$height = (int) $matches[1];
- } elseif (preg_match('/;.(\d+).rows;.(\d+).columns/i', $sttyString, $matches)) {
- // extract [w, h] from "; h rows; w columns"
- self::$width = (int) $matches[2];
- self::$height = (int) $matches[1];
- }
- }
- }
-
- /**
- * Runs and parses mode CON if it's available, suppressing any error output.
- *
- * @return int[]|null An array composed of the width and the height or null if it could not be parsed
- */
- private static function getConsoleMode()
- {
- if (!\function_exists('proc_open')) {
- return;
- }
-
- $descriptorspec = [
- 1 => ['pipe', 'w'],
- 2 => ['pipe', 'w'],
- ];
- $process = proc_open('mode CON', $descriptorspec, $pipes, null, null, ['suppress_errors' => true]);
- if (\is_resource($process)) {
- $info = stream_get_contents($pipes[1]);
- fclose($pipes[1]);
- fclose($pipes[2]);
- proc_close($process);
-
- if (preg_match('/--------+\r?\n.+?(\d+)\r?\n.+?(\d+)\r?\n/', $info, $matches)) {
- return [(int) $matches[2], (int) $matches[1]];
- }
- }
- }
-
- /**
- * Runs and parses stty -a if it's available, suppressing any error output.
- *
- * @return string|null
- */
- private static function getSttyColumns()
- {
- if (!\function_exists('proc_open')) {
- return;
- }
-
- $descriptorspec = [
- 1 => ['pipe', 'w'],
- 2 => ['pipe', 'w'],
- ];
-
- $process = proc_open('stty -a | grep columns', $descriptorspec, $pipes, null, null, ['suppress_errors' => true]);
- if (\is_resource($process)) {
- $info = stream_get_contents($pipes[1]);
- fclose($pipes[1]);
- fclose($pipes[2]);
- proc_close($process);
-
- return $info;
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tester/ApplicationTester.php b/www/wiki/vendor/symfony/console/Tester/ApplicationTester.php
deleted file mode 100644
index dc970182..00000000
--- a/www/wiki/vendor/symfony/console/Tester/ApplicationTester.php
+++ /dev/null
@@ -1,176 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tester;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\ConsoleOutput;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Output\StreamOutput;
-
-/**
- * Eases the testing of console applications.
- *
- * When testing an application, don't forget to disable the auto exit flag:
- *
- * $application = new Application();
- * $application->setAutoExit(false);
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class ApplicationTester
-{
- private $application;
- private $input;
- private $statusCode;
- /**
- * @var OutputInterface
- */
- private $output;
- private $captureStreamsIndependently = false;
-
- public function __construct(Application $application)
- {
- $this->application = $application;
- }
-
- /**
- * Executes the application.
- *
- * Available options:
- *
- * * interactive: Sets the input interactive flag
- * * decorated: Sets the output decorated flag
- * * verbosity: Sets the output verbosity flag
- * * capture_stderr_separately: Make output of stdOut and stdErr separately available
- *
- * @param array $input An array of arguments and options
- * @param array $options An array of options
- *
- * @return int The command exit code
- */
- public function run(array $input, $options = [])
- {
- $this->input = new ArrayInput($input);
- if (isset($options['interactive'])) {
- $this->input->setInteractive($options['interactive']);
- }
-
- $this->captureStreamsIndependently = \array_key_exists('capture_stderr_separately', $options) && $options['capture_stderr_separately'];
- if (!$this->captureStreamsIndependently) {
- $this->output = new StreamOutput(fopen('php://memory', 'w', false));
- if (isset($options['decorated'])) {
- $this->output->setDecorated($options['decorated']);
- }
- if (isset($options['verbosity'])) {
- $this->output->setVerbosity($options['verbosity']);
- }
- } else {
- $this->output = new ConsoleOutput(
- isset($options['verbosity']) ? $options['verbosity'] : ConsoleOutput::VERBOSITY_NORMAL,
- isset($options['decorated']) ? $options['decorated'] : null
- );
-
- $errorOutput = new StreamOutput(fopen('php://memory', 'w', false));
- $errorOutput->setFormatter($this->output->getFormatter());
- $errorOutput->setVerbosity($this->output->getVerbosity());
- $errorOutput->setDecorated($this->output->isDecorated());
-
- $reflectedOutput = new \ReflectionObject($this->output);
- $strErrProperty = $reflectedOutput->getProperty('stderr');
- $strErrProperty->setAccessible(true);
- $strErrProperty->setValue($this->output, $errorOutput);
-
- $reflectedParent = $reflectedOutput->getParentClass();
- $streamProperty = $reflectedParent->getProperty('stream');
- $streamProperty->setAccessible(true);
- $streamProperty->setValue($this->output, fopen('php://memory', 'w', false));
- }
-
- return $this->statusCode = $this->application->run($this->input, $this->output);
- }
-
- /**
- * Gets the display returned by the last execution of the application.
- *
- * @param bool $normalize Whether to normalize end of lines to \n or not
- *
- * @return string The display
- */
- public function getDisplay($normalize = false)
- {
- rewind($this->output->getStream());
-
- $display = stream_get_contents($this->output->getStream());
-
- if ($normalize) {
- $display = str_replace(PHP_EOL, "\n", $display);
- }
-
- return $display;
- }
-
- /**
- * Gets the output written to STDERR by the application.
- *
- * @param bool $normalize Whether to normalize end of lines to \n or not
- *
- * @return string
- */
- public function getErrorOutput($normalize = false)
- {
- if (!$this->captureStreamsIndependently) {
- throw new \LogicException('The error output is not available when the tester is run without "capture_stderr_separately" option set.');
- }
-
- rewind($this->output->getErrorOutput()->getStream());
-
- $display = stream_get_contents($this->output->getErrorOutput()->getStream());
-
- if ($normalize) {
- $display = str_replace(PHP_EOL, "\n", $display);
- }
-
- return $display;
- }
-
- /**
- * Gets the input instance used by the last execution of the application.
- *
- * @return InputInterface The current input instance
- */
- public function getInput()
- {
- return $this->input;
- }
-
- /**
- * Gets the output instance used by the last execution of the application.
- *
- * @return OutputInterface The current output instance
- */
- public function getOutput()
- {
- return $this->output;
- }
-
- /**
- * Gets the status code returned by the last execution of the application.
- *
- * @return int The status code
- */
- public function getStatusCode()
- {
- return $this->statusCode;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tester/CommandTester.php b/www/wiki/vendor/symfony/console/Tester/CommandTester.php
deleted file mode 100644
index f869995e..00000000
--- a/www/wiki/vendor/symfony/console/Tester/CommandTester.php
+++ /dev/null
@@ -1,158 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tester;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Output\StreamOutput;
-
-/**
- * Eases the testing of console commands.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- * @author Robin Chalas <robin.chalas@gmail.com>
- */
-class CommandTester
-{
- private $command;
- private $input;
- private $output;
- private $inputs = [];
- private $statusCode;
-
- public function __construct(Command $command)
- {
- $this->command = $command;
- }
-
- /**
- * Executes the command.
- *
- * Available execution options:
- *
- * * interactive: Sets the input interactive flag
- * * decorated: Sets the output decorated flag
- * * verbosity: Sets the output verbosity flag
- *
- * @param array $input An array of command arguments and options
- * @param array $options An array of execution options
- *
- * @return int The command exit code
- */
- public function execute(array $input, array $options = [])
- {
- // set the command name automatically if the application requires
- // this argument and no command name was passed
- if (!isset($input['command'])
- && (null !== $application = $this->command->getApplication())
- && $application->getDefinition()->hasArgument('command')
- ) {
- $input = array_merge(['command' => $this->command->getName()], $input);
- }
-
- $this->input = new ArrayInput($input);
- // Use an in-memory input stream even if no inputs are set so that QuestionHelper::ask() does not rely on the blocking STDIN.
- $this->input->setStream(self::createStream($this->inputs));
-
- if (isset($options['interactive'])) {
- $this->input->setInteractive($options['interactive']);
- }
-
- $this->output = new StreamOutput(fopen('php://memory', 'w', false));
- $this->output->setDecorated(isset($options['decorated']) ? $options['decorated'] : false);
- if (isset($options['verbosity'])) {
- $this->output->setVerbosity($options['verbosity']);
- }
-
- return $this->statusCode = $this->command->run($this->input, $this->output);
- }
-
- /**
- * Gets the display returned by the last execution of the command.
- *
- * @param bool $normalize Whether to normalize end of lines to \n or not
- *
- * @return string The display
- */
- public function getDisplay($normalize = false)
- {
- rewind($this->output->getStream());
-
- $display = stream_get_contents($this->output->getStream());
-
- if ($normalize) {
- $display = str_replace(PHP_EOL, "\n", $display);
- }
-
- return $display;
- }
-
- /**
- * Gets the input instance used by the last execution of the command.
- *
- * @return InputInterface The current input instance
- */
- public function getInput()
- {
- return $this->input;
- }
-
- /**
- * Gets the output instance used by the last execution of the command.
- *
- * @return OutputInterface The current output instance
- */
- public function getOutput()
- {
- return $this->output;
- }
-
- /**
- * Gets the status code returned by the last execution of the application.
- *
- * @return int The status code
- */
- public function getStatusCode()
- {
- return $this->statusCode;
- }
-
- /**
- * Sets the user inputs.
- *
- * @param array $inputs An array of strings representing each input
- * passed to the command input stream
- *
- * @return CommandTester
- */
- public function setInputs(array $inputs)
- {
- $this->inputs = $inputs;
-
- return $this;
- }
-
- private static function createStream(array $inputs)
- {
- $stream = fopen('php://memory', 'r+', false);
-
- foreach ($inputs as $input) {
- fwrite($stream, $input.PHP_EOL);
- }
-
- rewind($stream);
-
- return $stream;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/ApplicationTest.php b/www/wiki/vendor/symfony/console/Tests/ApplicationTest.php
deleted file mode 100644
index ae9d130f..00000000
--- a/www/wiki/vendor/symfony/console/Tests/ApplicationTest.php
+++ /dev/null
@@ -1,1753 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\CommandLoader\FactoryCommandLoader;
-use Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass;
-use Symfony\Component\Console\Event\ConsoleCommandEvent;
-use Symfony\Component\Console\Event\ConsoleErrorEvent;
-use Symfony\Component\Console\Event\ConsoleExceptionEvent;
-use Symfony\Component\Console\Event\ConsoleTerminateEvent;
-use Symfony\Component\Console\Exception\CommandNotFoundException;
-use Symfony\Component\Console\Helper\FormatterHelper;
-use Symfony\Component\Console\Helper\HelperSet;
-use Symfony\Component\Console\Input\ArgvInput;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\NullOutput;
-use Symfony\Component\Console\Output\Output;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Output\StreamOutput;
-use Symfony\Component\Console\Tester\ApplicationTester;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\EventDispatcher\EventDispatcher;
-
-class ApplicationTest extends TestCase
-{
- protected static $fixturesPath;
-
- public static function setUpBeforeClass()
- {
- self::$fixturesPath = realpath(__DIR__.'/Fixtures/');
- require_once self::$fixturesPath.'/FooCommand.php';
- require_once self::$fixturesPath.'/FooOptCommand.php';
- require_once self::$fixturesPath.'/Foo1Command.php';
- require_once self::$fixturesPath.'/Foo2Command.php';
- require_once self::$fixturesPath.'/Foo3Command.php';
- require_once self::$fixturesPath.'/Foo4Command.php';
- require_once self::$fixturesPath.'/Foo5Command.php';
- require_once self::$fixturesPath.'/FooSameCaseUppercaseCommand.php';
- require_once self::$fixturesPath.'/FooSameCaseLowercaseCommand.php';
- require_once self::$fixturesPath.'/FoobarCommand.php';
- require_once self::$fixturesPath.'/BarBucCommand.php';
- require_once self::$fixturesPath.'/FooSubnamespaced1Command.php';
- require_once self::$fixturesPath.'/FooSubnamespaced2Command.php';
- require_once self::$fixturesPath.'/TestTiti.php';
- require_once self::$fixturesPath.'/TestToto.php';
- }
-
- protected function normalizeLineBreaks($text)
- {
- return str_replace(PHP_EOL, "\n", $text);
- }
-
- /**
- * Replaces the dynamic placeholders of the command help text with a static version.
- * The placeholder %command.full_name% includes the script path that is not predictable
- * and can not be tested against.
- */
- protected function ensureStaticCommandHelp(Application $application)
- {
- foreach ($application->all() as $command) {
- $command->setHelp(str_replace('%command.full_name%', 'app/console %command.name%', $command->getHelp()));
- }
- }
-
- public function testConstructor()
- {
- $application = new Application('foo', 'bar');
- $this->assertEquals('foo', $application->getName(), '__construct() takes the application name as its first argument');
- $this->assertEquals('bar', $application->getVersion(), '__construct() takes the application version as its second argument');
- $this->assertEquals(['help', 'list'], array_keys($application->all()), '__construct() registered the help and list commands by default');
- }
-
- public function testSetGetName()
- {
- $application = new Application();
- $application->setName('foo');
- $this->assertEquals('foo', $application->getName(), '->setName() sets the name of the application');
- }
-
- public function testSetGetVersion()
- {
- $application = new Application();
- $application->setVersion('bar');
- $this->assertEquals('bar', $application->getVersion(), '->setVersion() sets the version of the application');
- }
-
- public function testGetLongVersion()
- {
- $application = new Application('foo', 'bar');
- $this->assertEquals('foo <info>bar</info>', $application->getLongVersion(), '->getLongVersion() returns the long version of the application');
- }
-
- public function testHelp()
- {
- $application = new Application();
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_gethelp.txt', $this->normalizeLineBreaks($application->getHelp()), '->getHelp() returns a help message');
- }
-
- public function testAll()
- {
- $application = new Application();
- $commands = $application->all();
- $this->assertInstanceOf('Symfony\\Component\\Console\\Command\\HelpCommand', $commands['help'], '->all() returns the registered commands');
-
- $application->add(new \FooCommand());
- $commands = $application->all('foo');
- $this->assertCount(1, $commands, '->all() takes a namespace as its first argument');
- }
-
- public function testAllWithCommandLoader()
- {
- $application = new Application();
- $commands = $application->all();
- $this->assertInstanceOf('Symfony\\Component\\Console\\Command\\HelpCommand', $commands['help'], '->all() returns the registered commands');
-
- $application->add(new \FooCommand());
- $commands = $application->all('foo');
- $this->assertCount(1, $commands, '->all() takes a namespace as its first argument');
-
- $application->setCommandLoader(new FactoryCommandLoader([
- 'foo:bar1' => function () { return new \Foo1Command(); },
- ]));
- $commands = $application->all('foo');
- $this->assertCount(2, $commands, '->all() takes a namespace as its first argument');
- $this->assertInstanceOf(\FooCommand::class, $commands['foo:bar'], '->all() returns the registered commands');
- $this->assertInstanceOf(\Foo1Command::class, $commands['foo:bar1'], '->all() returns the registered commands');
- }
-
- public function testRegister()
- {
- $application = new Application();
- $command = $application->register('foo');
- $this->assertEquals('foo', $command->getName(), '->register() registers a new command');
- }
-
- public function testAdd()
- {
- $application = new Application();
- $application->add($foo = new \FooCommand());
- $commands = $application->all();
- $this->assertEquals($foo, $commands['foo:bar'], '->add() registers a command');
-
- $application = new Application();
- $application->addCommands([$foo = new \FooCommand(), $foo1 = new \Foo1Command()]);
- $commands = $application->all();
- $this->assertEquals([$foo, $foo1], [$commands['foo:bar'], $commands['foo:bar1']], '->addCommands() registers an array of commands');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Command class "Foo5Command" is not correctly initialized. You probably forgot to call the parent constructor.
- */
- public function testAddCommandWithEmptyConstructor()
- {
- $application = new Application();
- $application->add(new \Foo5Command());
- }
-
- public function testHasGet()
- {
- $application = new Application();
- $this->assertTrue($application->has('list'), '->has() returns true if a named command is registered');
- $this->assertFalse($application->has('afoobar'), '->has() returns false if a named command is not registered');
-
- $application->add($foo = new \FooCommand());
- $this->assertTrue($application->has('afoobar'), '->has() returns true if an alias is registered');
- $this->assertEquals($foo, $application->get('foo:bar'), '->get() returns a command by name');
- $this->assertEquals($foo, $application->get('afoobar'), '->get() returns a command by alias');
-
- $application = new Application();
- $application->add($foo = new \FooCommand());
- // simulate --help
- $r = new \ReflectionObject($application);
- $p = $r->getProperty('wantHelps');
- $p->setAccessible(true);
- $p->setValue($application, true);
- $command = $application->get('foo:bar');
- $this->assertInstanceOf('Symfony\Component\Console\Command\HelpCommand', $command, '->get() returns the help command if --help is provided as the input');
- }
-
- public function testHasGetWithCommandLoader()
- {
- $application = new Application();
- $this->assertTrue($application->has('list'), '->has() returns true if a named command is registered');
- $this->assertFalse($application->has('afoobar'), '->has() returns false if a named command is not registered');
-
- $application->add($foo = new \FooCommand());
- $this->assertTrue($application->has('afoobar'), '->has() returns true if an alias is registered');
- $this->assertEquals($foo, $application->get('foo:bar'), '->get() returns a command by name');
- $this->assertEquals($foo, $application->get('afoobar'), '->get() returns a command by alias');
-
- $application->setCommandLoader(new FactoryCommandLoader([
- 'foo:bar1' => function () { return new \Foo1Command(); },
- ]));
-
- $this->assertTrue($application->has('afoobar'), '->has() returns true if an instance is registered for an alias even with command loader');
- $this->assertEquals($foo, $application->get('foo:bar'), '->get() returns an instance by name even with command loader');
- $this->assertEquals($foo, $application->get('afoobar'), '->get() returns an instance by alias even with command loader');
- $this->assertTrue($application->has('foo:bar1'), '->has() returns true for commands registered in the loader');
- $this->assertInstanceOf(\Foo1Command::class, $foo1 = $application->get('foo:bar1'), '->get() returns a command by name from the command loader');
- $this->assertTrue($application->has('afoobar1'), '->has() returns true for commands registered in the loader');
- $this->assertEquals($foo1, $application->get('afoobar1'), '->get() returns a command by name from the command loader');
- }
-
- public function testSilentHelp()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $tester = new ApplicationTester($application);
- $tester->run(['-h' => true, '-q' => true], ['decorated' => false]);
-
- $this->assertEmpty($tester->getDisplay(true));
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
- * @expectedExceptionMessage The command "foofoo" does not exist.
- */
- public function testGetInvalidCommand()
- {
- $application = new Application();
- $application->get('foofoo');
- }
-
- public function testGetNamespaces()
- {
- $application = new Application();
- $application->add(new \FooCommand());
- $application->add(new \Foo1Command());
- $this->assertEquals(['foo'], $application->getNamespaces(), '->getNamespaces() returns an array of unique used namespaces');
- }
-
- public function testFindNamespace()
- {
- $application = new Application();
- $application->add(new \FooCommand());
- $this->assertEquals('foo', $application->findNamespace('foo'), '->findNamespace() returns the given namespace if it exists');
- $this->assertEquals('foo', $application->findNamespace('f'), '->findNamespace() finds a namespace given an abbreviation');
- $application->add(new \Foo2Command());
- $this->assertEquals('foo', $application->findNamespace('foo'), '->findNamespace() returns the given namespace if it exists');
- }
-
- public function testFindNamespaceWithSubnamespaces()
- {
- $application = new Application();
- $application->add(new \FooSubnamespaced1Command());
- $application->add(new \FooSubnamespaced2Command());
- $this->assertEquals('foo', $application->findNamespace('foo'), '->findNamespace() returns commands even if the commands are only contained in subnamespaces');
- }
-
- public function testFindAmbiguousNamespace()
- {
- $application = new Application();
- $application->add(new \BarBucCommand());
- $application->add(new \FooCommand());
- $application->add(new \Foo2Command());
-
- $expectedMsg = "The namespace \"f\" is ambiguous.\nDid you mean one of these?\n foo\n foo1";
-
- if (method_exists($this, 'expectException')) {
- $this->expectException(CommandNotFoundException::class);
- $this->expectExceptionMessage($expectedMsg);
- } else {
- $this->setExpectedException(CommandNotFoundException::class, $expectedMsg);
- }
-
- $application->findNamespace('f');
- }
-
- public function testFindNonAmbiguous()
- {
- $application = new Application();
- $application->add(new \TestTiti());
- $application->add(new \TestToto());
- $this->assertEquals('test-toto', $application->find('test')->getName());
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
- * @expectedExceptionMessage There are no commands defined in the "bar" namespace.
- */
- public function testFindInvalidNamespace()
- {
- $application = new Application();
- $application->findNamespace('bar');
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
- * @expectedExceptionMessage Command "foo1" is not defined
- */
- public function testFindUniqueNameButNamespaceName()
- {
- $application = new Application();
- $application->add(new \FooCommand());
- $application->add(new \Foo1Command());
- $application->add(new \Foo2Command());
-
- $application->find($commandName = 'foo1');
- }
-
- public function testFind()
- {
- $application = new Application();
- $application->add(new \FooCommand());
-
- $this->assertInstanceOf('FooCommand', $application->find('foo:bar'), '->find() returns a command if its name exists');
- $this->assertInstanceOf('Symfony\Component\Console\Command\HelpCommand', $application->find('h'), '->find() returns a command if its name exists');
- $this->assertInstanceOf('FooCommand', $application->find('f:bar'), '->find() returns a command if the abbreviation for the namespace exists');
- $this->assertInstanceOf('FooCommand', $application->find('f:b'), '->find() returns a command if the abbreviation for the namespace and the command name exist');
- $this->assertInstanceOf('FooCommand', $application->find('a'), '->find() returns a command if the abbreviation exists for an alias');
- }
-
- public function testFindCaseSensitiveFirst()
- {
- $application = new Application();
- $application->add(new \FooSameCaseUppercaseCommand());
- $application->add(new \FooSameCaseLowercaseCommand());
-
- $this->assertInstanceOf('FooSameCaseUppercaseCommand', $application->find('f:B'), '->find() returns a command if the abbreviation is the correct case');
- $this->assertInstanceOf('FooSameCaseUppercaseCommand', $application->find('f:BAR'), '->find() returns a command if the abbreviation is the correct case');
- $this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('f:b'), '->find() returns a command if the abbreviation is the correct case');
- $this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('f:bar'), '->find() returns a command if the abbreviation is the correct case');
- }
-
- public function testFindCaseInsensitiveAsFallback()
- {
- $application = new Application();
- $application->add(new \FooSameCaseLowercaseCommand());
-
- $this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('f:b'), '->find() returns a command if the abbreviation is the correct case');
- $this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('f:B'), '->find() will fallback to case insensitivity');
- $this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('FoO:BaR'), '->find() will fallback to case insensitivity');
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
- * @expectedExceptionMessage Command "FoO:BaR" is ambiguous
- */
- public function testFindCaseInsensitiveSuggestions()
- {
- $application = new Application();
- $application->add(new \FooSameCaseLowercaseCommand());
- $application->add(new \FooSameCaseUppercaseCommand());
-
- $this->assertInstanceOf('FooSameCaseLowercaseCommand', $application->find('FoO:BaR'), '->find() will find two suggestions with case insensitivity');
- }
-
- public function testFindWithCommandLoader()
- {
- $application = new Application();
- $application->setCommandLoader(new FactoryCommandLoader([
- 'foo:bar' => $f = function () { return new \FooCommand(); },
- ]));
-
- $this->assertInstanceOf('FooCommand', $application->find('foo:bar'), '->find() returns a command if its name exists');
- $this->assertInstanceOf('Symfony\Component\Console\Command\HelpCommand', $application->find('h'), '->find() returns a command if its name exists');
- $this->assertInstanceOf('FooCommand', $application->find('f:bar'), '->find() returns a command if the abbreviation for the namespace exists');
- $this->assertInstanceOf('FooCommand', $application->find('f:b'), '->find() returns a command if the abbreviation for the namespace and the command name exist');
- $this->assertInstanceOf('FooCommand', $application->find('a'), '->find() returns a command if the abbreviation exists for an alias');
- }
-
- /**
- * @dataProvider provideAmbiguousAbbreviations
- */
- public function testFindWithAmbiguousAbbreviations($abbreviation, $expectedExceptionMessage)
- {
- if (method_exists($this, 'expectException')) {
- $this->expectException('Symfony\Component\Console\Exception\CommandNotFoundException');
- $this->expectExceptionMessage($expectedExceptionMessage);
- } else {
- $this->setExpectedException('Symfony\Component\Console\Exception\CommandNotFoundException', $expectedExceptionMessage);
- }
-
- $application = new Application();
- $application->add(new \FooCommand());
- $application->add(new \Foo1Command());
- $application->add(new \Foo2Command());
-
- $application->find($abbreviation);
- }
-
- public function provideAmbiguousAbbreviations()
- {
- return [
- ['f', 'Command "f" is not defined.'],
- [
- 'a',
- "Command \"a\" is ambiguous.\nDid you mean one of these?\n".
- " afoobar The foo:bar command\n".
- " afoobar1 The foo:bar1 command\n".
- ' afoobar2 The foo1:bar command',
- ],
- [
- 'foo:b',
- "Command \"foo:b\" is ambiguous.\nDid you mean one of these?\n".
- " foo:bar The foo:bar command\n".
- " foo:bar1 The foo:bar1 command\n".
- ' foo1:bar The foo1:bar command',
- ],
- ];
- }
-
- public function testFindCommandEqualNamespace()
- {
- $application = new Application();
- $application->add(new \Foo3Command());
- $application->add(new \Foo4Command());
-
- $this->assertInstanceOf('Foo3Command', $application->find('foo3:bar'), '->find() returns the good command even if a namespace has same name');
- $this->assertInstanceOf('Foo4Command', $application->find('foo3:bar:toh'), '->find() returns a command even if its namespace equals another command name');
- }
-
- public function testFindCommandWithAmbiguousNamespacesButUniqueName()
- {
- $application = new Application();
- $application->add(new \FooCommand());
- $application->add(new \FoobarCommand());
-
- $this->assertInstanceOf('FoobarCommand', $application->find('f:f'));
- }
-
- public function testFindCommandWithMissingNamespace()
- {
- $application = new Application();
- $application->add(new \Foo4Command());
-
- $this->assertInstanceOf('Foo4Command', $application->find('f::t'));
- }
-
- /**
- * @dataProvider provideInvalidCommandNamesSingle
- * @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
- * @expectedExceptionMessage Did you mean this
- */
- public function testFindAlternativeExceptionMessageSingle($name)
- {
- $application = new Application();
- $application->add(new \Foo3Command());
- $application->find($name);
- }
-
- public function provideInvalidCommandNamesSingle()
- {
- return [
- ['foo3:barr'],
- ['fooo3:bar'],
- ];
- }
-
- public function testFindAlternativeExceptionMessageMultiple()
- {
- $application = new Application();
- $application->add(new \FooCommand());
- $application->add(new \Foo1Command());
- $application->add(new \Foo2Command());
-
- // Command + plural
- try {
- $application->find('foo:baR');
- $this->fail('->find() throws a CommandNotFoundException if command does not exist, with alternatives');
- } catch (\Exception $e) {
- $this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if command does not exist, with alternatives');
- $this->assertRegExp('/Did you mean one of these/', $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, with alternatives');
- $this->assertRegExp('/foo1:bar/', $e->getMessage());
- $this->assertRegExp('/foo:bar/', $e->getMessage());
- }
-
- // Namespace + plural
- try {
- $application->find('foo2:bar');
- $this->fail('->find() throws a CommandNotFoundException if command does not exist, with alternatives');
- } catch (\Exception $e) {
- $this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if command does not exist, with alternatives');
- $this->assertRegExp('/Did you mean one of these/', $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, with alternatives');
- $this->assertRegExp('/foo1/', $e->getMessage());
- }
-
- $application->add(new \Foo3Command());
- $application->add(new \Foo4Command());
-
- // Subnamespace + plural
- try {
- $a = $application->find('foo3:');
- $this->fail('->find() should throw an Symfony\Component\Console\Exception\CommandNotFoundException if a command is ambiguous because of a subnamespace, with alternatives');
- } catch (\Exception $e) {
- $this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e);
- $this->assertRegExp('/foo3:bar/', $e->getMessage());
- $this->assertRegExp('/foo3:bar:toh/', $e->getMessage());
- }
- }
-
- public function testFindAlternativeCommands()
- {
- $application = new Application();
-
- $application->add(new \FooCommand());
- $application->add(new \Foo1Command());
- $application->add(new \Foo2Command());
-
- try {
- $application->find($commandName = 'Unknown command');
- $this->fail('->find() throws a CommandNotFoundException if command does not exist');
- } catch (\Exception $e) {
- $this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if command does not exist');
- $this->assertSame([], $e->getAlternatives());
- $this->assertEquals(sprintf('Command "%s" is not defined.', $commandName), $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, without alternatives');
- }
-
- // Test if "bar1" command throw a "CommandNotFoundException" and does not contain
- // "foo:bar" as alternative because "bar1" is too far from "foo:bar"
- try {
- $application->find($commandName = 'bar1');
- $this->fail('->find() throws a CommandNotFoundException if command does not exist');
- } catch (\Exception $e) {
- $this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if command does not exist');
- $this->assertSame(['afoobar1', 'foo:bar1'], $e->getAlternatives());
- $this->assertRegExp(sprintf('/Command "%s" is not defined./', $commandName), $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, with alternatives');
- $this->assertRegExp('/afoobar1/', $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, with alternative : "afoobar1"');
- $this->assertRegExp('/foo:bar1/', $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, with alternative : "foo:bar1"');
- $this->assertNotRegExp('/foo:bar(?>!1)/', $e->getMessage(), '->find() throws a CommandNotFoundException if command does not exist, without "foo:bar" alternative');
- }
- }
-
- public function testFindAlternativeCommandsWithAnAlias()
- {
- $fooCommand = new \FooCommand();
- $fooCommand->setAliases(['foo2']);
-
- $application = new Application();
- $application->add($fooCommand);
-
- $result = $application->find('foo');
-
- $this->assertSame($fooCommand, $result);
- }
-
- public function testFindAlternativeNamespace()
- {
- $application = new Application();
-
- $application->add(new \FooCommand());
- $application->add(new \Foo1Command());
- $application->add(new \Foo2Command());
- $application->add(new \Foo3Command());
-
- try {
- $application->find('Unknown-namespace:Unknown-command');
- $this->fail('->find() throws a CommandNotFoundException if namespace does not exist');
- } catch (\Exception $e) {
- $this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if namespace does not exist');
- $this->assertSame([], $e->getAlternatives());
- $this->assertEquals('There are no commands defined in the "Unknown-namespace" namespace.', $e->getMessage(), '->find() throws a CommandNotFoundException if namespace does not exist, without alternatives');
- }
-
- try {
- $application->find('foo2:command');
- $this->fail('->find() throws a CommandNotFoundException if namespace does not exist');
- } catch (\Exception $e) {
- $this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if namespace does not exist');
- $this->assertCount(3, $e->getAlternatives());
- $this->assertContains('foo', $e->getAlternatives());
- $this->assertContains('foo1', $e->getAlternatives());
- $this->assertContains('foo3', $e->getAlternatives());
- $this->assertRegExp('/There are no commands defined in the "foo2" namespace./', $e->getMessage(), '->find() throws a CommandNotFoundException if namespace does not exist, with alternative');
- $this->assertRegExp('/foo/', $e->getMessage(), '->find() throws a CommandNotFoundException if namespace does not exist, with alternative : "foo"');
- $this->assertRegExp('/foo1/', $e->getMessage(), '->find() throws a CommandNotFoundException if namespace does not exist, with alternative : "foo1"');
- $this->assertRegExp('/foo3/', $e->getMessage(), '->find() throws a CommandNotFoundException if namespace does not exist, with alternative : "foo3"');
- }
- }
-
- public function testFindAlternativesOutput()
- {
- $application = new Application();
-
- $application->add(new \FooCommand());
- $application->add(new \Foo1Command());
- $application->add(new \Foo2Command());
- $application->add(new \Foo3Command());
-
- $expectedAlternatives = [
- 'afoobar',
- 'afoobar1',
- 'afoobar2',
- 'foo1:bar',
- 'foo3:bar',
- 'foo:bar',
- 'foo:bar1',
- ];
-
- try {
- $application->find('foo');
- $this->fail('->find() throws a CommandNotFoundException if command is not defined');
- } catch (\Exception $e) {
- $this->assertInstanceOf('Symfony\Component\Console\Exception\CommandNotFoundException', $e, '->find() throws a CommandNotFoundException if command is not defined');
- $this->assertSame($expectedAlternatives, $e->getAlternatives());
-
- $this->assertRegExp('/Command "foo" is not defined\..*Did you mean one of these\?.*/Ums', $e->getMessage());
- }
- }
-
- public function testFindNamespaceDoesNotFailOnDeepSimilarNamespaces()
- {
- $application = $this->getMockBuilder('Symfony\Component\Console\Application')->setMethods(['getNamespaces'])->getMock();
- $application->expects($this->once())
- ->method('getNamespaces')
- ->will($this->returnValue(['foo:sublong', 'bar:sub']));
-
- $this->assertEquals('foo:sublong', $application->findNamespace('f:sub'));
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
- * @expectedExceptionMessage Command "foo::bar" is not defined.
- */
- public function testFindWithDoubleColonInNameThrowsException()
- {
- $application = new Application();
- $application->add(new \FooCommand());
- $application->add(new \Foo4Command());
- $application->find('foo::bar');
- }
-
- public function testSetCatchExceptions()
- {
- $application = new Application();
- $application->setAutoExit(false);
- putenv('COLUMNS=120');
- $tester = new ApplicationTester($application);
-
- $application->setCatchExceptions(true);
- $this->assertTrue($application->areExceptionsCaught());
-
- $tester->run(['command' => 'foo'], ['decorated' => false]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception1.txt', $tester->getDisplay(true), '->setCatchExceptions() sets the catch exception flag');
-
- $tester->run(['command' => 'foo'], ['decorated' => false, 'capture_stderr_separately' => true]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception1.txt', $tester->getErrorOutput(true), '->setCatchExceptions() sets the catch exception flag');
- $this->assertSame('', $tester->getDisplay(true));
-
- $application->setCatchExceptions(false);
- try {
- $tester->run(['command' => 'foo'], ['decorated' => false]);
- $this->fail('->setCatchExceptions() sets the catch exception flag');
- } catch (\Exception $e) {
- $this->assertInstanceOf('\Exception', $e, '->setCatchExceptions() sets the catch exception flag');
- $this->assertEquals('Command "foo" is not defined.', $e->getMessage(), '->setCatchExceptions() sets the catch exception flag');
- }
- }
-
- public function testAutoExitSetting()
- {
- $application = new Application();
- $this->assertTrue($application->isAutoExitEnabled());
-
- $application->setAutoExit(false);
- $this->assertFalse($application->isAutoExitEnabled());
- }
-
- public function testRenderException()
- {
- $application = new Application();
- $application->setAutoExit(false);
- putenv('COLUMNS=120');
- $tester = new ApplicationTester($application);
-
- $tester->run(['command' => 'foo'], ['decorated' => false, 'capture_stderr_separately' => true]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception1.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exception');
-
- $tester->run(['command' => 'foo'], ['decorated' => false, 'verbosity' => Output::VERBOSITY_VERBOSE, 'capture_stderr_separately' => true]);
- $this->assertContains('Exception trace', $tester->getErrorOutput(), '->renderException() renders a pretty exception with a stack trace when verbosity is verbose');
-
- $tester->run(['command' => 'list', '--foo' => true], ['decorated' => false, 'capture_stderr_separately' => true]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception2.txt', $tester->getErrorOutput(true), '->renderException() renders the command synopsis when an exception occurs in the context of a command');
-
- $application->add(new \Foo3Command());
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo3:bar'], ['decorated' => false, 'capture_stderr_separately' => true]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception3.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
-
- $tester->run(['command' => 'foo3:bar'], ['decorated' => false, 'verbosity' => Output::VERBOSITY_VERBOSE]);
- $this->assertRegExp('/\[Exception\]\s*First exception/', $tester->getDisplay(), '->renderException() renders a pretty exception without code exception when code exception is default and verbosity is verbose');
- $this->assertRegExp('/\[Exception\]\s*Second exception/', $tester->getDisplay(), '->renderException() renders a pretty exception without code exception when code exception is 0 and verbosity is verbose');
- $this->assertRegExp('/\[Exception \(404\)\]\s*Third exception/', $tester->getDisplay(), '->renderException() renders a pretty exception with code exception when code exception is 404 and verbosity is verbose');
-
- $tester->run(['command' => 'foo3:bar'], ['decorated' => true]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception3decorated.txt', $tester->getDisplay(true), '->renderException() renders a pretty exceptions with previous exceptions');
-
- $tester->run(['command' => 'foo3:bar'], ['decorated' => true, 'capture_stderr_separately' => true]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception3decorated.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
-
- $application = new Application();
- $application->setAutoExit(false);
- putenv('COLUMNS=32');
- $tester = new ApplicationTester($application);
-
- $tester->run(['command' => 'foo'], ['decorated' => false, 'capture_stderr_separately' => true]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception4.txt', $tester->getErrorOutput(true), '->renderException() wraps messages when they are bigger than the terminal');
- putenv('COLUMNS=120');
- }
-
- public function testRenderExceptionWithDoubleWidthCharacters()
- {
- $application = new Application();
- $application->setAutoExit(false);
- putenv('COLUMNS=120');
- $application->register('foo')->setCode(function () {
- throw new \Exception('エラーメッセージ');
- });
- $tester = new ApplicationTester($application);
-
- $tester->run(['command' => 'foo'], ['decorated' => false, 'capture_stderr_separately' => true]);
- $this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_doublewidth1.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
-
- $tester->run(['command' => 'foo'], ['decorated' => true, 'capture_stderr_separately' => true]);
- $this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_doublewidth1decorated.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
-
- $application = new Application();
- $application->setAutoExit(false);
- putenv('COLUMNS=32');
- $application->register('foo')->setCode(function () {
- throw new \Exception('コマンドの実行中にエラーが発生しました。');
- });
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo'], ['decorated' => false, 'capture_stderr_separately' => true]);
- $this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_doublewidth2.txt', $tester->getErrorOutput(true), '->renderException() wraps messages when they are bigger than the terminal');
- putenv('COLUMNS=120');
- }
-
- public function testRenderExceptionEscapesLines()
- {
- $application = new Application();
- $application->setAutoExit(false);
- putenv('COLUMNS=22');
- $application->register('foo')->setCode(function () {
- throw new \Exception('dont break here <info>!</info>');
- });
- $tester = new ApplicationTester($application);
-
- $tester->run(['command' => 'foo'], ['decorated' => false]);
- $this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_escapeslines.txt', $tester->getDisplay(true), '->renderException() escapes lines containing formatting');
- putenv('COLUMNS=120');
- }
-
- public function testRenderExceptionLineBreaks()
- {
- $application = $this->getMockBuilder('Symfony\Component\Console\Application')->setMethods(['getTerminalWidth'])->getMock();
- $application->setAutoExit(false);
- $application->expects($this->any())
- ->method('getTerminalWidth')
- ->will($this->returnValue(120));
- $application->register('foo')->setCode(function () {
- throw new \InvalidArgumentException("\n\nline 1 with extra spaces \nline 2\n\nline 4\n");
- });
- $tester = new ApplicationTester($application);
-
- $tester->run(['command' => 'foo'], ['decorated' => false]);
- $this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_linebreaks.txt', $tester->getDisplay(true), '->renderException() keep multiple line breaks');
- }
-
- public function testRenderExceptionStackTraceContainsRootException()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->register('foo')->setCode(function () {
- throw new \Exception('Verbose exception');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo'], ['decorated' => false, 'verbosity' => Output::VERBOSITY_VERBOSE]);
-
- $this->assertContains(sprintf('() at %s:', __FILE__), $tester->getDisplay());
- }
-
- public function testRun()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
- $application->add($command = new \Foo1Command());
- $_SERVER['argv'] = ['cli.php', 'foo:bar1'];
-
- ob_start();
- $application->run();
- ob_end_clean();
-
- $this->assertInstanceOf('Symfony\Component\Console\Input\ArgvInput', $command->input, '->run() creates an ArgvInput by default if none is given');
- $this->assertInstanceOf('Symfony\Component\Console\Output\ConsoleOutput', $command->output, '->run() creates a ConsoleOutput by default if none is given');
-
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $this->ensureStaticCommandHelp($application);
- $tester = new ApplicationTester($application);
-
- $tester->run([], ['decorated' => false]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_run1.txt', $tester->getDisplay(true), '->run() runs the list command if no argument is passed');
-
- $tester->run(['--help' => true], ['decorated' => false]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_run2.txt', $tester->getDisplay(true), '->run() runs the help command if --help is passed');
-
- $tester->run(['-h' => true], ['decorated' => false]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_run2.txt', $tester->getDisplay(true), '->run() runs the help command if -h is passed');
-
- $tester->run(['command' => 'list', '--help' => true], ['decorated' => false]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_run3.txt', $tester->getDisplay(true), '->run() displays the help if --help is passed');
-
- $tester->run(['command' => 'list', '-h' => true], ['decorated' => false]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_run3.txt', $tester->getDisplay(true), '->run() displays the help if -h is passed');
-
- $tester->run(['--ansi' => true]);
- $this->assertTrue($tester->getOutput()->isDecorated(), '->run() forces color output if --ansi is passed');
-
- $tester->run(['--no-ansi' => true]);
- $this->assertFalse($tester->getOutput()->isDecorated(), '->run() forces color output to be disabled if --no-ansi is passed');
-
- $tester->run(['--version' => true], ['decorated' => false]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_run4.txt', $tester->getDisplay(true), '->run() displays the program version if --version is passed');
-
- $tester->run(['-V' => true], ['decorated' => false]);
- $this->assertStringEqualsFile(self::$fixturesPath.'/application_run4.txt', $tester->getDisplay(true), '->run() displays the program version if -v is passed');
-
- $tester->run(['command' => 'list', '--quiet' => true]);
- $this->assertSame('', $tester->getDisplay(), '->run() removes all output if --quiet is passed');
- $this->assertFalse($tester->getInput()->isInteractive(), '->run() sets off the interactive mode if --quiet is passed');
-
- $tester->run(['command' => 'list', '-q' => true]);
- $this->assertSame('', $tester->getDisplay(), '->run() removes all output if -q is passed');
- $this->assertFalse($tester->getInput()->isInteractive(), '->run() sets off the interactive mode if -q is passed');
-
- $tester->run(['command' => 'list', '--verbose' => true]);
- $this->assertSame(Output::VERBOSITY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if --verbose is passed');
-
- $tester->run(['command' => 'list', '--verbose' => 1]);
- $this->assertSame(Output::VERBOSITY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if --verbose=1 is passed');
-
- $tester->run(['command' => 'list', '--verbose' => 2]);
- $this->assertSame(Output::VERBOSITY_VERY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to very verbose if --verbose=2 is passed');
-
- $tester->run(['command' => 'list', '--verbose' => 3]);
- $this->assertSame(Output::VERBOSITY_DEBUG, $tester->getOutput()->getVerbosity(), '->run() sets the output to debug if --verbose=3 is passed');
-
- $tester->run(['command' => 'list', '--verbose' => 4]);
- $this->assertSame(Output::VERBOSITY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if unknown --verbose level is passed');
-
- $tester->run(['command' => 'list', '-v' => true]);
- $this->assertSame(Output::VERBOSITY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if -v is passed');
-
- $tester->run(['command' => 'list', '-vv' => true]);
- $this->assertSame(Output::VERBOSITY_VERY_VERBOSE, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if -v is passed');
-
- $tester->run(['command' => 'list', '-vvv' => true]);
- $this->assertSame(Output::VERBOSITY_DEBUG, $tester->getOutput()->getVerbosity(), '->run() sets the output to verbose if -v is passed');
-
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
- $application->add(new \FooCommand());
- $tester = new ApplicationTester($application);
-
- $tester->run(['command' => 'foo:bar', '--no-interaction' => true], ['decorated' => false]);
- $this->assertSame('called'.PHP_EOL, $tester->getDisplay(), '->run() does not call interact() if --no-interaction is passed');
-
- $tester->run(['command' => 'foo:bar', '-n' => true], ['decorated' => false]);
- $this->assertSame('called'.PHP_EOL, $tester->getDisplay(), '->run() does not call interact() if -n is passed');
- }
-
- public function testRunWithGlobalOptionAndNoCommand()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
- $application->getDefinition()->addOption(new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL));
-
- $output = new StreamOutput(fopen('php://memory', 'w', false));
- $input = new ArgvInput(['cli.php', '--foo', 'bar']);
-
- $this->assertSame(0, $application->run($input, $output));
- }
-
- /**
- * Issue #9285.
- *
- * If the "verbose" option is just before an argument in ArgvInput,
- * an argument value should not be treated as verbosity value.
- * This test will fail with "Not enough arguments." if broken
- */
- public function testVerboseValueNotBreakArguments()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
- $application->add(new \FooCommand());
-
- $output = new StreamOutput(fopen('php://memory', 'w', false));
-
- $input = new ArgvInput(['cli.php', '-v', 'foo:bar']);
- $application->run($input, $output);
-
- $this->addToAssertionCount(1);
-
- $input = new ArgvInput(['cli.php', '--verbose', 'foo:bar']);
- $application->run($input, $output);
-
- $this->addToAssertionCount(1);
- }
-
- public function testRunReturnsIntegerExitCode()
- {
- $exception = new \Exception('', 4);
-
- $application = $this->getMockBuilder('Symfony\Component\Console\Application')->setMethods(['doRun'])->getMock();
- $application->setAutoExit(false);
- $application->expects($this->once())
- ->method('doRun')
- ->willThrowException($exception);
-
- $exitCode = $application->run(new ArrayInput([]), new NullOutput());
-
- $this->assertSame(4, $exitCode, '->run() returns integer exit code extracted from raised exception');
- }
-
- public function testRunDispatchesIntegerExitCode()
- {
- $passedRightValue = false;
-
- // We can assume here that some other test asserts that the event is dispatched at all
- $dispatcher = new EventDispatcher();
- $dispatcher->addListener('console.terminate', function (ConsoleTerminateEvent $event) use (&$passedRightValue) {
- $passedRightValue = (4 === $event->getExitCode());
- });
-
- $application = new Application();
- $application->setDispatcher($dispatcher);
- $application->setAutoExit(false);
-
- $application->register('test')->setCode(function (InputInterface $input, OutputInterface $output) {
- throw new \Exception('', 4);
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'test']);
-
- $this->assertTrue($passedRightValue, '-> exit code 4 was passed in the console.terminate event');
- }
-
- public function testRunReturnsExitCodeOneForExceptionCodeZero()
- {
- $exception = new \Exception('', 0);
-
- $application = $this->getMockBuilder('Symfony\Component\Console\Application')->setMethods(['doRun'])->getMock();
- $application->setAutoExit(false);
- $application->expects($this->once())
- ->method('doRun')
- ->willThrowException($exception);
-
- $exitCode = $application->run(new ArrayInput([]), new NullOutput());
-
- $this->assertSame(1, $exitCode, '->run() returns exit code 1 when exception code is 0');
- }
-
- public function testRunDispatchesExitCodeOneForExceptionCodeZero()
- {
- $passedRightValue = false;
-
- // We can assume here that some other test asserts that the event is dispatched at all
- $dispatcher = new EventDispatcher();
- $dispatcher->addListener('console.terminate', function (ConsoleTerminateEvent $event) use (&$passedRightValue) {
- $passedRightValue = (1 === $event->getExitCode());
- });
-
- $application = new Application();
- $application->setDispatcher($dispatcher);
- $application->setAutoExit(false);
-
- $application->register('test')->setCode(function (InputInterface $input, OutputInterface $output) {
- throw new \Exception();
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'test']);
-
- $this->assertTrue($passedRightValue, '-> exit code 1 was passed in the console.terminate event');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage An option with shortcut "e" already exists.
- */
- public function testAddingOptionWithDuplicateShortcut()
- {
- $dispatcher = new EventDispatcher();
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
- $application->setDispatcher($dispatcher);
-
- $application->getDefinition()->addOption(new InputOption('--env', '-e', InputOption::VALUE_REQUIRED, 'Environment'));
-
- $application
- ->register('foo')
- ->setAliases(['f'])
- ->setDefinition([new InputOption('survey', 'e', InputOption::VALUE_REQUIRED, 'My option with a shortcut.')])
- ->setCode(function (InputInterface $input, OutputInterface $output) {})
- ;
-
- $input = new ArrayInput(['command' => 'foo']);
- $output = new NullOutput();
-
- $application->run($input, $output);
- }
-
- /**
- * @expectedException \LogicException
- * @dataProvider getAddingAlreadySetDefinitionElementData
- */
- public function testAddingAlreadySetDefinitionElementData($def)
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
- $application
- ->register('foo')
- ->setDefinition([$def])
- ->setCode(function (InputInterface $input, OutputInterface $output) {})
- ;
-
- $input = new ArrayInput(['command' => 'foo']);
- $output = new NullOutput();
- $application->run($input, $output);
- }
-
- public function getAddingAlreadySetDefinitionElementData()
- {
- return [
- [new InputArgument('command', InputArgument::REQUIRED)],
- [new InputOption('quiet', '', InputOption::VALUE_NONE)],
- [new InputOption('query', 'q', InputOption::VALUE_NONE)],
- ];
- }
-
- public function testGetDefaultHelperSetReturnsDefaultValues()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $helperSet = $application->getHelperSet();
-
- $this->assertTrue($helperSet->has('formatter'));
- }
-
- public function testAddingSingleHelperSetOverwritesDefaultValues()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $application->setHelperSet(new HelperSet([new FormatterHelper()]));
-
- $helperSet = $application->getHelperSet();
-
- $this->assertTrue($helperSet->has('formatter'));
-
- // no other default helper set should be returned
- $this->assertFalse($helperSet->has('dialog'));
- $this->assertFalse($helperSet->has('progress'));
- }
-
- public function testOverwritingDefaultHelperSetOverwritesDefaultValues()
- {
- $application = new CustomApplication();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $application->setHelperSet(new HelperSet([new FormatterHelper()]));
-
- $helperSet = $application->getHelperSet();
-
- $this->assertTrue($helperSet->has('formatter'));
-
- // no other default helper set should be returned
- $this->assertFalse($helperSet->has('dialog'));
- $this->assertFalse($helperSet->has('progress'));
- }
-
- public function testGetDefaultInputDefinitionReturnsDefaultValues()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $inputDefinition = $application->getDefinition();
-
- $this->assertTrue($inputDefinition->hasArgument('command'));
-
- $this->assertTrue($inputDefinition->hasOption('help'));
- $this->assertTrue($inputDefinition->hasOption('quiet'));
- $this->assertTrue($inputDefinition->hasOption('verbose'));
- $this->assertTrue($inputDefinition->hasOption('version'));
- $this->assertTrue($inputDefinition->hasOption('ansi'));
- $this->assertTrue($inputDefinition->hasOption('no-ansi'));
- $this->assertTrue($inputDefinition->hasOption('no-interaction'));
- }
-
- public function testOverwritingDefaultInputDefinitionOverwritesDefaultValues()
- {
- $application = new CustomApplication();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $inputDefinition = $application->getDefinition();
-
- // check whether the default arguments and options are not returned any more
- $this->assertFalse($inputDefinition->hasArgument('command'));
-
- $this->assertFalse($inputDefinition->hasOption('help'));
- $this->assertFalse($inputDefinition->hasOption('quiet'));
- $this->assertFalse($inputDefinition->hasOption('verbose'));
- $this->assertFalse($inputDefinition->hasOption('version'));
- $this->assertFalse($inputDefinition->hasOption('ansi'));
- $this->assertFalse($inputDefinition->hasOption('no-ansi'));
- $this->assertFalse($inputDefinition->hasOption('no-interaction'));
-
- $this->assertTrue($inputDefinition->hasOption('custom'));
- }
-
- public function testSettingCustomInputDefinitionOverwritesDefaultValues()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $application->setDefinition(new InputDefinition([new InputOption('--custom', '-c', InputOption::VALUE_NONE, 'Set the custom input definition.')]));
-
- $inputDefinition = $application->getDefinition();
-
- // check whether the default arguments and options are not returned any more
- $this->assertFalse($inputDefinition->hasArgument('command'));
-
- $this->assertFalse($inputDefinition->hasOption('help'));
- $this->assertFalse($inputDefinition->hasOption('quiet'));
- $this->assertFalse($inputDefinition->hasOption('verbose'));
- $this->assertFalse($inputDefinition->hasOption('version'));
- $this->assertFalse($inputDefinition->hasOption('ansi'));
- $this->assertFalse($inputDefinition->hasOption('no-ansi'));
- $this->assertFalse($inputDefinition->hasOption('no-interaction'));
-
- $this->assertTrue($inputDefinition->hasOption('custom'));
- }
-
- public function testRunWithDispatcher()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setDispatcher($this->getDispatcher());
-
- $application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('foo.');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo']);
- $this->assertEquals('before.foo.after.'.PHP_EOL, $tester->getDisplay());
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage error
- */
- public function testRunWithExceptionAndDispatcher()
- {
- $application = new Application();
- $application->setDispatcher($this->getDispatcher());
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
- throw new \RuntimeException('foo');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo']);
- }
-
- public function testRunDispatchesAllEventsWithException()
- {
- $application = new Application();
- $application->setDispatcher($this->getDispatcher());
- $application->setAutoExit(false);
-
- $application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('foo.');
-
- throw new \RuntimeException('foo');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo']);
- $this->assertContains('before.foo.error.after.', $tester->getDisplay());
- }
-
- public function testRunDispatchesAllEventsWithExceptionInListener()
- {
- $dispatcher = $this->getDispatcher();
- $dispatcher->addListener('console.command', function () {
- throw new \RuntimeException('foo');
- });
-
- $application = new Application();
- $application->setDispatcher($dispatcher);
- $application->setAutoExit(false);
-
- $application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('foo.');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo']);
- $this->assertContains('before.error.after.', $tester->getDisplay());
- }
-
- /**
- * @requires PHP 7
- */
- public function testRunWithError()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $application->register('dym')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('dym.');
-
- throw new \Error('dymerr');
- });
-
- $tester = new ApplicationTester($application);
-
- try {
- $tester->run(['command' => 'dym']);
- $this->fail('Error expected.');
- } catch (\Error $e) {
- $this->assertSame('dymerr', $e->getMessage());
- }
- }
-
- public function testRunAllowsErrorListenersToSilenceTheException()
- {
- $dispatcher = $this->getDispatcher();
- $dispatcher->addListener('console.error', function (ConsoleErrorEvent $event) {
- $event->getOutput()->write('silenced.');
-
- $event->setExitCode(0);
- });
-
- $dispatcher->addListener('console.command', function () {
- throw new \RuntimeException('foo');
- });
-
- $application = new Application();
- $application->setDispatcher($dispatcher);
- $application->setAutoExit(false);
-
- $application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('foo.');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo']);
- $this->assertContains('before.error.silenced.after.', $tester->getDisplay());
- $this->assertEquals(ConsoleCommandEvent::RETURN_CODE_DISABLED, $tester->getStatusCode());
- }
-
- public function testConsoleErrorEventIsTriggeredOnCommandNotFound()
- {
- $dispatcher = new EventDispatcher();
- $dispatcher->addListener('console.error', function (ConsoleErrorEvent $event) {
- $this->assertNull($event->getCommand());
- $this->assertInstanceOf(CommandNotFoundException::class, $event->getError());
- $event->getOutput()->write('silenced command not found');
- });
-
- $application = new Application();
- $application->setDispatcher($dispatcher);
- $application->setAutoExit(false);
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'unknown']);
- $this->assertContains('silenced command not found', $tester->getDisplay());
- $this->assertEquals(1, $tester->getStatusCode());
- }
-
- /**
- * @group legacy
- * @expectedDeprecation The "ConsoleEvents::EXCEPTION" event is deprecated since Symfony 3.3 and will be removed in 4.0. Listen to the "ConsoleEvents::ERROR" event instead.
- */
- public function testLegacyExceptionListenersAreStillTriggered()
- {
- $dispatcher = $this->getDispatcher();
- $dispatcher->addListener('console.exception', function (ConsoleExceptionEvent $event) {
- $event->getOutput()->write('caught.');
-
- $event->setException(new \RuntimeException('replaced in caught.'));
- });
-
- $application = new Application();
- $application->setDispatcher($dispatcher);
- $application->setAutoExit(false);
-
- $application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
- throw new \RuntimeException('foo');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo']);
- $this->assertContains('before.caught.error.after.', $tester->getDisplay());
- $this->assertContains('replaced in caught.', $tester->getDisplay());
- }
-
- /**
- * @requires PHP 7
- */
- public function testErrorIsRethrownIfNotHandledByConsoleErrorEvent()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
- $application->setDispatcher(new EventDispatcher());
-
- $application->register('dym')->setCode(function (InputInterface $input, OutputInterface $output) {
- new \UnknownClass();
- });
-
- $tester = new ApplicationTester($application);
-
- try {
- $tester->run(['command' => 'dym']);
- $this->fail('->run() should rethrow PHP errors if not handled via ConsoleErrorEvent.');
- } catch (\Error $e) {
- $this->assertSame($e->getMessage(), 'Class \'UnknownClass\' not found');
- }
- }
-
- /**
- * @requires PHP 7
- * @expectedException \LogicException
- * @expectedExceptionMessage error
- */
- public function testRunWithErrorAndDispatcher()
- {
- $application = new Application();
- $application->setDispatcher($this->getDispatcher());
- $application->setAutoExit(false);
- $application->setCatchExceptions(false);
-
- $application->register('dym')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('dym.');
-
- throw new \Error('dymerr');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'dym']);
- $this->assertContains('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
- }
-
- /**
- * @requires PHP 7
- */
- public function testRunDispatchesAllEventsWithError()
- {
- $application = new Application();
- $application->setDispatcher($this->getDispatcher());
- $application->setAutoExit(false);
-
- $application->register('dym')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('dym.');
-
- throw new \Error('dymerr');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'dym']);
- $this->assertContains('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
- }
-
- /**
- * @requires PHP 7
- */
- public function testRunWithErrorFailingStatusCode()
- {
- $application = new Application();
- $application->setDispatcher($this->getDispatcher());
- $application->setAutoExit(false);
-
- $application->register('dus')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('dus.');
-
- throw new \Error('duserr');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'dus']);
- $this->assertSame(1, $tester->getStatusCode(), 'Status code should be 1');
- }
-
- public function testRunWithDispatcherSkippingCommand()
- {
- $application = new Application();
- $application->setDispatcher($this->getDispatcher(true));
- $application->setAutoExit(false);
-
- $application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('foo.');
- });
-
- $tester = new ApplicationTester($application);
- $exitCode = $tester->run(['command' => 'foo']);
- $this->assertContains('before.after.', $tester->getDisplay());
- $this->assertEquals(ConsoleCommandEvent::RETURN_CODE_DISABLED, $exitCode);
- }
-
- public function testRunWithDispatcherAccessingInputOptions()
- {
- $noInteractionValue = null;
- $quietValue = null;
-
- $dispatcher = $this->getDispatcher();
- $dispatcher->addListener('console.command', function (ConsoleCommandEvent $event) use (&$noInteractionValue, &$quietValue) {
- $input = $event->getInput();
-
- $noInteractionValue = $input->getOption('no-interaction');
- $quietValue = $input->getOption('quiet');
- });
-
- $application = new Application();
- $application->setDispatcher($dispatcher);
- $application->setAutoExit(false);
-
- $application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('foo.');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo', '--no-interaction' => true]);
-
- $this->assertTrue($noInteractionValue);
- $this->assertFalse($quietValue);
- }
-
- public function testRunWithDispatcherAddingInputOptions()
- {
- $extraValue = null;
-
- $dispatcher = $this->getDispatcher();
- $dispatcher->addListener('console.command', function (ConsoleCommandEvent $event) use (&$extraValue) {
- $definition = $event->getCommand()->getDefinition();
- $input = $event->getInput();
-
- $definition->addOption(new InputOption('extra', null, InputOption::VALUE_REQUIRED));
- $input->bind($definition);
-
- $extraValue = $input->getOption('extra');
- });
-
- $application = new Application();
- $application->setDispatcher($dispatcher);
- $application->setAutoExit(false);
-
- $application->register('foo')->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->write('foo.');
- });
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'foo', '--extra' => 'some test value']);
-
- $this->assertEquals('some test value', $extraValue);
- }
-
- /**
- * @group legacy
- */
- public function testTerminalDimensions()
- {
- $application = new Application();
- $originalDimensions = $application->getTerminalDimensions();
- $this->assertCount(2, $originalDimensions);
-
- $width = 80;
- if ($originalDimensions[0] == $width) {
- $width = 100;
- }
-
- $application->setTerminalDimensions($width, 80);
- $this->assertSame([$width, 80], $application->getTerminalDimensions());
- }
-
- public function testSetRunCustomDefaultCommand()
- {
- $command = new \FooCommand();
-
- $application = new Application();
- $application->setAutoExit(false);
- $application->add($command);
- $application->setDefaultCommand($command->getName());
-
- $tester = new ApplicationTester($application);
- $tester->run([], ['interactive' => false]);
- $this->assertEquals('called'.PHP_EOL, $tester->getDisplay(), 'Application runs the default set command if different from \'list\' command');
-
- $application = new CustomDefaultCommandApplication();
- $application->setAutoExit(false);
-
- $tester = new ApplicationTester($application);
- $tester->run([], ['interactive' => false]);
-
- $this->assertEquals('called'.PHP_EOL, $tester->getDisplay(), 'Application runs the default set command if different from \'list\' command');
- }
-
- public function testSetRunCustomDefaultCommandWithOption()
- {
- $command = new \FooOptCommand();
-
- $application = new Application();
- $application->setAutoExit(false);
- $application->add($command);
- $application->setDefaultCommand($command->getName());
-
- $tester = new ApplicationTester($application);
- $tester->run(['--fooopt' => 'opt'], ['interactive' => false]);
-
- $this->assertEquals('called'.PHP_EOL.'opt'.PHP_EOL, $tester->getDisplay(), 'Application runs the default set command if different from \'list\' command');
- }
-
- public function testSetRunCustomSingleCommand()
- {
- $command = new \FooCommand();
-
- $application = new Application();
- $application->setAutoExit(false);
- $application->add($command);
- $application->setDefaultCommand($command->getName(), true);
-
- $tester = new ApplicationTester($application);
-
- $tester->run([]);
- $this->assertContains('called', $tester->getDisplay());
-
- $tester->run(['--help' => true]);
- $this->assertContains('The foo:bar command', $tester->getDisplay());
- }
-
- /**
- * @requires function posix_isatty
- */
- public function testCanCheckIfTerminalIsInteractive()
- {
- $application = new CustomDefaultCommandApplication();
- $application->setAutoExit(false);
-
- $tester = new ApplicationTester($application);
- $tester->run(['command' => 'help']);
-
- $this->assertFalse($tester->getInput()->hasParameterOption(['--no-interaction', '-n']));
-
- $inputStream = $tester->getInput()->getStream();
- $this->assertEquals($tester->getInput()->isInteractive(), @posix_isatty($inputStream));
- }
-
- public function testRunLazyCommandService()
- {
- $container = new ContainerBuilder();
- $container->addCompilerPass(new AddConsoleCommandPass());
- $container
- ->register('lazy-command', LazyCommand::class)
- ->addTag('console.command', ['command' => 'lazy:command'])
- ->addTag('console.command', ['command' => 'lazy:alias'])
- ->addTag('console.command', ['command' => 'lazy:alias2']);
- $container->compile();
-
- $application = new Application();
- $application->setCommandLoader($container->get('console.command_loader'));
- $application->setAutoExit(false);
-
- $tester = new ApplicationTester($application);
-
- $tester->run(['command' => 'lazy:command']);
- $this->assertSame("lazy-command called\n", $tester->getDisplay(true));
-
- $tester->run(['command' => 'lazy:alias']);
- $this->assertSame("lazy-command called\n", $tester->getDisplay(true));
-
- $tester->run(['command' => 'lazy:alias2']);
- $this->assertSame("lazy-command called\n", $tester->getDisplay(true));
-
- $command = $application->get('lazy:command');
- $this->assertSame(['lazy:alias', 'lazy:alias2'], $command->getAliases());
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
- */
- public function testGetDisabledLazyCommand()
- {
- $application = new Application();
- $application->setCommandLoader(new FactoryCommandLoader(['disabled' => function () { return new DisabledCommand(); }]));
- $application->get('disabled');
- }
-
- public function testHasReturnsFalseForDisabledLazyCommand()
- {
- $application = new Application();
- $application->setCommandLoader(new FactoryCommandLoader(['disabled' => function () { return new DisabledCommand(); }]));
- $this->assertFalse($application->has('disabled'));
- }
-
- public function testAllExcludesDisabledLazyCommand()
- {
- $application = new Application();
- $application->setCommandLoader(new FactoryCommandLoader(['disabled' => function () { return new DisabledCommand(); }]));
- $this->assertArrayNotHasKey('disabled', $application->all());
- }
-
- protected function getDispatcher($skipCommand = false)
- {
- $dispatcher = new EventDispatcher();
- $dispatcher->addListener('console.command', function (ConsoleCommandEvent $event) use ($skipCommand) {
- $event->getOutput()->write('before.');
-
- if ($skipCommand) {
- $event->disableCommand();
- }
- });
- $dispatcher->addListener('console.terminate', function (ConsoleTerminateEvent $event) use ($skipCommand) {
- $event->getOutput()->writeln('after.');
-
- if (!$skipCommand) {
- $event->setExitCode(ConsoleCommandEvent::RETURN_CODE_DISABLED);
- }
- });
- $dispatcher->addListener('console.error', function (ConsoleErrorEvent $event) {
- $event->getOutput()->write('error.');
-
- $event->setError(new \LogicException('error.', $event->getExitCode(), $event->getError()));
- });
-
- return $dispatcher;
- }
-
- /**
- * @requires PHP 7
- */
- public function testErrorIsRethrownIfNotHandledByConsoleErrorEventWithCatchingEnabled()
- {
- $application = new Application();
- $application->setAutoExit(false);
- $application->setDispatcher(new EventDispatcher());
-
- $application->register('dym')->setCode(function (InputInterface $input, OutputInterface $output) {
- new \UnknownClass();
- });
-
- $tester = new ApplicationTester($application);
-
- try {
- $tester->run(['command' => 'dym']);
- $this->fail('->run() should rethrow PHP errors if not handled via ConsoleErrorEvent.');
- } catch (\Error $e) {
- $this->assertSame($e->getMessage(), 'Class \'UnknownClass\' not found');
- }
- }
-
- protected function tearDown()
- {
- putenv('SHELL_VERBOSITY');
- unset($_ENV['SHELL_VERBOSITY']);
- unset($_SERVER['SHELL_VERBOSITY']);
- }
-}
-
-class CustomApplication extends Application
-{
- /**
- * Overwrites the default input definition.
- *
- * @return InputDefinition An InputDefinition instance
- */
- protected function getDefaultInputDefinition()
- {
- return new InputDefinition([new InputOption('--custom', '-c', InputOption::VALUE_NONE, 'Set the custom input definition.')]);
- }
-
- /**
- * Gets the default helper set with the helpers that should always be available.
- *
- * @return HelperSet A HelperSet instance
- */
- protected function getDefaultHelperSet()
- {
- return new HelperSet([new FormatterHelper()]);
- }
-}
-
-class CustomDefaultCommandApplication extends Application
-{
- /**
- * Overwrites the constructor in order to set a different default command.
- */
- public function __construct()
- {
- parent::__construct();
-
- $command = new \FooCommand();
- $this->add($command);
- $this->setDefaultCommand($command->getName());
- }
-}
-
-class LazyCommand extends Command
-{
- public function execute(InputInterface $input, OutputInterface $output)
- {
- $output->writeln('lazy-command called');
- }
-}
-
-class DisabledCommand extends Command
-{
- public function isEnabled()
- {
- return false;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Command/CommandTest.php b/www/wiki/vendor/symfony/console/Tests/Command/CommandTest.php
deleted file mode 100644
index b3ce4022..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Command/CommandTest.php
+++ /dev/null
@@ -1,442 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Command;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\FormatterHelper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\StringInput;
-use Symfony\Component\Console\Output\NullOutput;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Tester\CommandTester;
-
-class CommandTest extends TestCase
-{
- protected static $fixturesPath;
-
- public static function setUpBeforeClass()
- {
- self::$fixturesPath = __DIR__.'/../Fixtures/';
- require_once self::$fixturesPath.'/TestCommand.php';
- }
-
- public function testConstructor()
- {
- $command = new Command('foo:bar');
- $this->assertEquals('foo:bar', $command->getName(), '__construct() takes the command name as its first argument');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage The command defined in "Symfony\Component\Console\Command\Command" cannot have an empty name.
- */
- public function testCommandNameCannotBeEmpty()
- {
- (new Application())->add(new Command());
- }
-
- public function testSetApplication()
- {
- $application = new Application();
- $command = new \TestCommand();
- $command->setApplication($application);
- $this->assertEquals($application, $command->getApplication(), '->setApplication() sets the current application');
- $this->assertEquals($application->getHelperSet(), $command->getHelperSet());
- }
-
- public function testSetApplicationNull()
- {
- $command = new \TestCommand();
- $command->setApplication(null);
- $this->assertNull($command->getHelperSet());
- }
-
- public function testSetGetDefinition()
- {
- $command = new \TestCommand();
- $ret = $command->setDefinition($definition = new InputDefinition());
- $this->assertEquals($command, $ret, '->setDefinition() implements a fluent interface');
- $this->assertEquals($definition, $command->getDefinition(), '->setDefinition() sets the current InputDefinition instance');
- $command->setDefinition([new InputArgument('foo'), new InputOption('bar')]);
- $this->assertTrue($command->getDefinition()->hasArgument('foo'), '->setDefinition() also takes an array of InputArguments and InputOptions as an argument');
- $this->assertTrue($command->getDefinition()->hasOption('bar'), '->setDefinition() also takes an array of InputArguments and InputOptions as an argument');
- $command->setDefinition(new InputDefinition());
- }
-
- public function testAddArgument()
- {
- $command = new \TestCommand();
- $ret = $command->addArgument('foo');
- $this->assertEquals($command, $ret, '->addArgument() implements a fluent interface');
- $this->assertTrue($command->getDefinition()->hasArgument('foo'), '->addArgument() adds an argument to the command');
- }
-
- public function testAddOption()
- {
- $command = new \TestCommand();
- $ret = $command->addOption('foo');
- $this->assertEquals($command, $ret, '->addOption() implements a fluent interface');
- $this->assertTrue($command->getDefinition()->hasOption('foo'), '->addOption() adds an option to the command');
- }
-
- public function testSetHidden()
- {
- $command = new \TestCommand();
- $command->setHidden(true);
- $this->assertTrue($command->isHidden());
- }
-
- public function testGetNamespaceGetNameSetName()
- {
- $command = new \TestCommand();
- $this->assertEquals('namespace:name', $command->getName(), '->getName() returns the command name');
- $command->setName('foo');
- $this->assertEquals('foo', $command->getName(), '->setName() sets the command name');
-
- $ret = $command->setName('foobar:bar');
- $this->assertEquals($command, $ret, '->setName() implements a fluent interface');
- $this->assertEquals('foobar:bar', $command->getName(), '->setName() sets the command name');
- }
-
- /**
- * @dataProvider provideInvalidCommandNames
- */
- public function testInvalidCommandNames($name)
- {
- if (method_exists($this, 'expectException')) {
- $this->expectException('InvalidArgumentException');
- $this->expectExceptionMessage(sprintf('Command name "%s" is invalid.', $name));
- } else {
- $this->setExpectedException('InvalidArgumentException', sprintf('Command name "%s" is invalid.', $name));
- }
-
- $command = new \TestCommand();
- $command->setName($name);
- }
-
- public function provideInvalidCommandNames()
- {
- return [
- [''],
- ['foo:'],
- ];
- }
-
- public function testGetSetDescription()
- {
- $command = new \TestCommand();
- $this->assertEquals('description', $command->getDescription(), '->getDescription() returns the description');
- $ret = $command->setDescription('description1');
- $this->assertEquals($command, $ret, '->setDescription() implements a fluent interface');
- $this->assertEquals('description1', $command->getDescription(), '->setDescription() sets the description');
- }
-
- public function testGetSetHelp()
- {
- $command = new \TestCommand();
- $this->assertEquals('help', $command->getHelp(), '->getHelp() returns the help');
- $ret = $command->setHelp('help1');
- $this->assertEquals($command, $ret, '->setHelp() implements a fluent interface');
- $this->assertEquals('help1', $command->getHelp(), '->setHelp() sets the help');
- $command->setHelp('');
- $this->assertEquals('', $command->getHelp(), '->getHelp() does not fall back to the description');
- }
-
- public function testGetProcessedHelp()
- {
- $command = new \TestCommand();
- $command->setHelp('The %command.name% command does... Example: php %command.full_name%.');
- $this->assertContains('The namespace:name command does...', $command->getProcessedHelp(), '->getProcessedHelp() replaces %command.name% correctly');
- $this->assertNotContains('%command.full_name%', $command->getProcessedHelp(), '->getProcessedHelp() replaces %command.full_name%');
-
- $command = new \TestCommand();
- $command->setHelp('');
- $this->assertContains('description', $command->getProcessedHelp(), '->getProcessedHelp() falls back to the description');
-
- $command = new \TestCommand();
- $command->setHelp('The %command.name% command does... Example: php %command.full_name%.');
- $application = new Application();
- $application->add($command);
- $application->setDefaultCommand('namespace:name', true);
- $this->assertContains('The namespace:name command does...', $command->getProcessedHelp(), '->getProcessedHelp() replaces %command.name% correctly in single command applications');
- $this->assertNotContains('%command.full_name%', $command->getProcessedHelp(), '->getProcessedHelp() replaces %command.full_name% in single command applications');
- }
-
- public function testGetSetAliases()
- {
- $command = new \TestCommand();
- $this->assertEquals(['name'], $command->getAliases(), '->getAliases() returns the aliases');
- $ret = $command->setAliases(['name1']);
- $this->assertEquals($command, $ret, '->setAliases() implements a fluent interface');
- $this->assertEquals(['name1'], $command->getAliases(), '->setAliases() sets the aliases');
- }
-
- public function testSetAliasesNull()
- {
- $command = new \TestCommand();
- $this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('InvalidArgumentException');
- $command->setAliases(null);
- }
-
- public function testGetSynopsis()
- {
- $command = new \TestCommand();
- $command->addOption('foo');
- $command->addArgument('bar');
- $this->assertEquals('namespace:name [--foo] [--] [<bar>]', $command->getSynopsis(), '->getSynopsis() returns the synopsis');
- }
-
- public function testAddGetUsages()
- {
- $command = new \TestCommand();
- $command->addUsage('foo1');
- $command->addUsage('foo2');
- $this->assertContains('namespace:name foo1', $command->getUsages());
- $this->assertContains('namespace:name foo2', $command->getUsages());
- }
-
- public function testGetHelper()
- {
- $application = new Application();
- $command = new \TestCommand();
- $command->setApplication($application);
- $formatterHelper = new FormatterHelper();
- $this->assertEquals($formatterHelper->getName(), $command->getHelper('formatter')->getName(), '->getHelper() returns the correct helper');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Cannot retrieve helper "formatter" because there is no HelperSet defined.
- */
- public function testGetHelperWithoutHelperSet()
- {
- $command = new \TestCommand();
- $command->getHelper('formatter');
- }
-
- public function testMergeApplicationDefinition()
- {
- $application1 = new Application();
- $application1->getDefinition()->addArguments([new InputArgument('foo')]);
- $application1->getDefinition()->addOptions([new InputOption('bar')]);
- $command = new \TestCommand();
- $command->setApplication($application1);
- $command->setDefinition($definition = new InputDefinition([new InputArgument('bar'), new InputOption('foo')]));
-
- $r = new \ReflectionObject($command);
- $m = $r->getMethod('mergeApplicationDefinition');
- $m->setAccessible(true);
- $m->invoke($command);
- $this->assertTrue($command->getDefinition()->hasArgument('foo'), '->mergeApplicationDefinition() merges the application arguments and the command arguments');
- $this->assertTrue($command->getDefinition()->hasArgument('bar'), '->mergeApplicationDefinition() merges the application arguments and the command arguments');
- $this->assertTrue($command->getDefinition()->hasOption('foo'), '->mergeApplicationDefinition() merges the application options and the command options');
- $this->assertTrue($command->getDefinition()->hasOption('bar'), '->mergeApplicationDefinition() merges the application options and the command options');
-
- $m->invoke($command);
- $this->assertEquals(3, $command->getDefinition()->getArgumentCount(), '->mergeApplicationDefinition() does not try to merge twice the application arguments and options');
- }
-
- public function testMergeApplicationDefinitionWithoutArgsThenWithArgsAddsArgs()
- {
- $application1 = new Application();
- $application1->getDefinition()->addArguments([new InputArgument('foo')]);
- $application1->getDefinition()->addOptions([new InputOption('bar')]);
- $command = new \TestCommand();
- $command->setApplication($application1);
- $command->setDefinition($definition = new InputDefinition([]));
-
- $r = new \ReflectionObject($command);
- $m = $r->getMethod('mergeApplicationDefinition');
- $m->setAccessible(true);
- $m->invoke($command, false);
- $this->assertTrue($command->getDefinition()->hasOption('bar'), '->mergeApplicationDefinition(false) merges the application and the command options');
- $this->assertFalse($command->getDefinition()->hasArgument('foo'), '->mergeApplicationDefinition(false) does not merge the application arguments');
-
- $m->invoke($command, true);
- $this->assertTrue($command->getDefinition()->hasArgument('foo'), '->mergeApplicationDefinition(true) merges the application arguments and the command arguments');
-
- $m->invoke($command);
- $this->assertEquals(2, $command->getDefinition()->getArgumentCount(), '->mergeApplicationDefinition() does not try to merge twice the application arguments');
- }
-
- public function testRunInteractive()
- {
- $tester = new CommandTester(new \TestCommand());
-
- $tester->execute([], ['interactive' => true]);
-
- $this->assertEquals('interact called'.PHP_EOL.'execute called'.PHP_EOL, $tester->getDisplay(), '->run() calls the interact() method if the input is interactive');
- }
-
- public function testRunNonInteractive()
- {
- $tester = new CommandTester(new \TestCommand());
-
- $tester->execute([], ['interactive' => false]);
-
- $this->assertEquals('execute called'.PHP_EOL, $tester->getDisplay(), '->run() does not call the interact() method if the input is not interactive');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage You must override the execute() method in the concrete command class.
- */
- public function testExecuteMethodNeedsToBeOverridden()
- {
- $command = new Command('foo');
- $command->run(new StringInput(''), new NullOutput());
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\InvalidOptionException
- * @expectedExceptionMessage The "--bar" option does not exist.
- */
- public function testRunWithInvalidOption()
- {
- $command = new \TestCommand();
- $tester = new CommandTester($command);
- $tester->execute(['--bar' => true]);
- }
-
- public function testRunReturnsIntegerExitCode()
- {
- $command = new \TestCommand();
- $exitCode = $command->run(new StringInput(''), new NullOutput());
- $this->assertSame(0, $exitCode, '->run() returns integer exit code (treats null as 0)');
-
- $command = $this->getMockBuilder('TestCommand')->setMethods(['execute'])->getMock();
- $command->expects($this->once())
- ->method('execute')
- ->will($this->returnValue('2.3'));
- $exitCode = $command->run(new StringInput(''), new NullOutput());
- $this->assertSame(2, $exitCode, '->run() returns integer exit code (casts numeric to int)');
- }
-
- public function testRunWithApplication()
- {
- $command = new \TestCommand();
- $command->setApplication(new Application());
- $exitCode = $command->run(new StringInput(''), new NullOutput());
-
- $this->assertSame(0, $exitCode, '->run() returns an integer exit code');
- }
-
- public function testRunReturnsAlwaysInteger()
- {
- $command = new \TestCommand();
-
- $this->assertSame(0, $command->run(new StringInput(''), new NullOutput()));
- }
-
- public function testRunWithProcessTitle()
- {
- $command = new \TestCommand();
- $command->setApplication(new Application());
- $command->setProcessTitle('foo');
- $this->assertSame(0, $command->run(new StringInput(''), new NullOutput()));
- if (\function_exists('cli_set_process_title')) {
- if (null === @cli_get_process_title() && 'Darwin' === PHP_OS) {
- $this->markTestSkipped('Running "cli_get_process_title" as an unprivileged user is not supported on MacOS.');
- }
- $this->assertEquals('foo', cli_get_process_title());
- }
- }
-
- public function testSetCode()
- {
- $command = new \TestCommand();
- $ret = $command->setCode(function (InputInterface $input, OutputInterface $output) {
- $output->writeln('from the code...');
- });
- $this->assertEquals($command, $ret, '->setCode() implements a fluent interface');
- $tester = new CommandTester($command);
- $tester->execute([]);
- $this->assertEquals('interact called'.PHP_EOL.'from the code...'.PHP_EOL, $tester->getDisplay());
- }
-
- public function getSetCodeBindToClosureTests()
- {
- return [
- [true, 'not bound to the command'],
- [false, 'bound to the command'],
- ];
- }
-
- /**
- * @dataProvider getSetCodeBindToClosureTests
- */
- public function testSetCodeBindToClosure($previouslyBound, $expected)
- {
- $code = createClosure();
- if ($previouslyBound) {
- $code = $code->bindTo($this);
- }
-
- $command = new \TestCommand();
- $command->setCode($code);
- $tester = new CommandTester($command);
- $tester->execute([]);
- $this->assertEquals('interact called'.PHP_EOL.$expected.PHP_EOL, $tester->getDisplay());
- }
-
- public function testSetCodeWithStaticClosure()
- {
- $command = new \TestCommand();
- $command->setCode(self::createClosure());
- $tester = new CommandTester($command);
- $tester->execute([]);
-
- if (\PHP_VERSION_ID < 70000) {
- // Cannot bind static closures in PHP 5
- $this->assertEquals('interact called'.PHP_EOL.'not bound'.PHP_EOL, $tester->getDisplay());
- } else {
- // Can bind static closures in PHP 7
- $this->assertEquals('interact called'.PHP_EOL.'bound'.PHP_EOL, $tester->getDisplay());
- }
- }
-
- private static function createClosure()
- {
- return function (InputInterface $input, OutputInterface $output) {
- $output->writeln(isset($this) ? 'bound' : 'not bound');
- };
- }
-
- public function testSetCodeWithNonClosureCallable()
- {
- $command = new \TestCommand();
- $ret = $command->setCode([$this, 'callableMethodCommand']);
- $this->assertEquals($command, $ret, '->setCode() implements a fluent interface');
- $tester = new CommandTester($command);
- $tester->execute([]);
- $this->assertEquals('interact called'.PHP_EOL.'from the code...'.PHP_EOL, $tester->getDisplay());
- }
-
- public function callableMethodCommand(InputInterface $input, OutputInterface $output)
- {
- $output->writeln('from the code...');
- }
-}
-
-// In order to get an unbound closure, we should create it outside a class
-// scope.
-function createClosure()
-{
- return function (InputInterface $input, OutputInterface $output) {
- $output->writeln($this instanceof Command ? 'bound to the command' : 'not bound to the command');
- };
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Command/HelpCommandTest.php b/www/wiki/vendor/symfony/console/Tests/Command/HelpCommandTest.php
deleted file mode 100644
index ce9d8d4f..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Command/HelpCommandTest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Command;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\HelpCommand;
-use Symfony\Component\Console\Command\ListCommand;
-use Symfony\Component\Console\Tester\CommandTester;
-
-class HelpCommandTest extends TestCase
-{
- public function testExecuteForCommandAlias()
- {
- $command = new HelpCommand();
- $command->setApplication(new Application());
- $commandTester = new CommandTester($command);
- $commandTester->execute(['command_name' => 'li'], ['decorated' => false]);
- $this->assertContains('list [options] [--] [<namespace>]', $commandTester->getDisplay(), '->execute() returns a text help for the given command alias');
- $this->assertContains('format=FORMAT', $commandTester->getDisplay(), '->execute() returns a text help for the given command alias');
- $this->assertContains('raw', $commandTester->getDisplay(), '->execute() returns a text help for the given command alias');
- }
-
- public function testExecuteForCommand()
- {
- $command = new HelpCommand();
- $commandTester = new CommandTester($command);
- $command->setCommand(new ListCommand());
- $commandTester->execute([], ['decorated' => false]);
- $this->assertContains('list [options] [--] [<namespace>]', $commandTester->getDisplay(), '->execute() returns a text help for the given command');
- $this->assertContains('format=FORMAT', $commandTester->getDisplay(), '->execute() returns a text help for the given command');
- $this->assertContains('raw', $commandTester->getDisplay(), '->execute() returns a text help for the given command');
- }
-
- public function testExecuteForCommandWithXmlOption()
- {
- $command = new HelpCommand();
- $commandTester = new CommandTester($command);
- $command->setCommand(new ListCommand());
- $commandTester->execute(['--format' => 'xml']);
- $this->assertContains('<command', $commandTester->getDisplay(), '->execute() returns an XML help text if --xml is passed');
- }
-
- public function testExecuteForApplicationCommand()
- {
- $application = new Application();
- $commandTester = new CommandTester($application->get('help'));
- $commandTester->execute(['command_name' => 'list']);
- $this->assertContains('list [options] [--] [<namespace>]', $commandTester->getDisplay(), '->execute() returns a text help for the given command');
- $this->assertContains('format=FORMAT', $commandTester->getDisplay(), '->execute() returns a text help for the given command');
- $this->assertContains('raw', $commandTester->getDisplay(), '->execute() returns a text help for the given command');
- }
-
- public function testExecuteForApplicationCommandWithXmlOption()
- {
- $application = new Application();
- $commandTester = new CommandTester($application->get('help'));
- $commandTester->execute(['command_name' => 'list', '--format' => 'xml']);
- $this->assertContains('list [--raw] [--format FORMAT] [--] [&lt;namespace&gt;]', $commandTester->getDisplay(), '->execute() returns a text help for the given command');
- $this->assertContains('<command', $commandTester->getDisplay(), '->execute() returns an XML help text if --format=xml is passed');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Command/ListCommandTest.php b/www/wiki/vendor/symfony/console/Tests/Command/ListCommandTest.php
deleted file mode 100644
index 57687d4c..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Command/ListCommandTest.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Command;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Tester\CommandTester;
-
-class ListCommandTest extends TestCase
-{
- public function testExecuteListsCommands()
- {
- $application = new Application();
- $commandTester = new CommandTester($command = $application->get('list'));
- $commandTester->execute(['command' => $command->getName()], ['decorated' => false]);
-
- $this->assertRegExp('/help\s{2,}Displays help for a command/', $commandTester->getDisplay(), '->execute() returns a list of available commands');
- }
-
- public function testExecuteListsCommandsWithXmlOption()
- {
- $application = new Application();
- $commandTester = new CommandTester($command = $application->get('list'));
- $commandTester->execute(['command' => $command->getName(), '--format' => 'xml']);
- $this->assertRegExp('/<command id="list" name="list" hidden="0">/', $commandTester->getDisplay(), '->execute() returns a list of available commands in XML if --xml is passed');
- }
-
- public function testExecuteListsCommandsWithRawOption()
- {
- $application = new Application();
- $commandTester = new CommandTester($command = $application->get('list'));
- $commandTester->execute(['command' => $command->getName(), '--raw' => true]);
- $output = <<<'EOF'
-help Displays help for a command
-list Lists commands
-
-EOF;
-
- $this->assertEquals($output, $commandTester->getDisplay(true));
- }
-
- public function testExecuteListsCommandsWithNamespaceArgument()
- {
- require_once realpath(__DIR__.'/../Fixtures/FooCommand.php');
- $application = new Application();
- $application->add(new \FooCommand());
- $commandTester = new CommandTester($command = $application->get('list'));
- $commandTester->execute(['command' => $command->getName(), 'namespace' => 'foo', '--raw' => true]);
- $output = <<<'EOF'
-foo:bar The foo:bar command
-
-EOF;
-
- $this->assertEquals($output, $commandTester->getDisplay(true));
- }
-
- public function testExecuteListsCommandsOrder()
- {
- require_once realpath(__DIR__.'/../Fixtures/Foo6Command.php');
- $application = new Application();
- $application->add(new \Foo6Command());
- $commandTester = new CommandTester($command = $application->get('list'));
- $commandTester->execute(['command' => $command->getName()], ['decorated' => false]);
- $output = <<<'EOF'
-Console Tool
-
-Usage:
- command [options] [arguments]
-
-Options:
- -h, --help Display this help message
- -q, --quiet Do not output any message
- -V, --version Display this application version
- --ansi Force ANSI output
- --no-ansi Disable ANSI output
- -n, --no-interaction Do not ask any interactive question
- -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-Available commands:
- help Displays help for a command
- list Lists commands
- 0foo
- 0foo:bar 0foo:bar command
-EOF;
-
- $this->assertEquals($output, trim($commandTester->getDisplay(true)));
- }
-
- public function testExecuteListsCommandsOrderRaw()
- {
- require_once realpath(__DIR__.'/../Fixtures/Foo6Command.php');
- $application = new Application();
- $application->add(new \Foo6Command());
- $commandTester = new CommandTester($command = $application->get('list'));
- $commandTester->execute(['command' => $command->getName(), '--raw' => true]);
- $output = <<<'EOF'
-help Displays help for a command
-list Lists commands
-0foo:bar 0foo:bar command
-EOF;
-
- $this->assertEquals($output, trim($commandTester->getDisplay(true)));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Command/LockableTraitTest.php b/www/wiki/vendor/symfony/console/Tests/Command/LockableTraitTest.php
deleted file mode 100644
index 6a72706e..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Command/LockableTraitTest.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Command;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Tester\CommandTester;
-use Symfony\Component\Lock\Factory;
-use Symfony\Component\Lock\Store\FlockStore;
-use Symfony\Component\Lock\Store\SemaphoreStore;
-
-class LockableTraitTest extends TestCase
-{
- protected static $fixturesPath;
-
- public static function setUpBeforeClass()
- {
- self::$fixturesPath = __DIR__.'/../Fixtures/';
- require_once self::$fixturesPath.'/FooLockCommand.php';
- require_once self::$fixturesPath.'/FooLock2Command.php';
- }
-
- public function testLockIsReleased()
- {
- $command = new \FooLockCommand();
-
- $tester = new CommandTester($command);
- $this->assertSame(2, $tester->execute([]));
- $this->assertSame(2, $tester->execute([]));
- }
-
- public function testLockReturnsFalseIfAlreadyLockedByAnotherCommand()
- {
- $command = new \FooLockCommand();
-
- if (SemaphoreStore::isSupported(false)) {
- $store = new SemaphoreStore();
- } else {
- $store = new FlockStore();
- }
-
- $lock = (new Factory($store))->createLock($command->getName());
- $lock->acquire();
-
- $tester = new CommandTester($command);
- $this->assertSame(1, $tester->execute([]));
-
- $lock->release();
- $this->assertSame(2, $tester->execute([]));
- }
-
- public function testMultipleLockCallsThrowLogicException()
- {
- $command = new \FooLock2Command();
-
- $tester = new CommandTester($command);
- $this->assertSame(1, $tester->execute([]));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/CommandLoader/ContainerCommandLoaderTest.php b/www/wiki/vendor/symfony/console/Tests/CommandLoader/ContainerCommandLoaderTest.php
deleted file mode 100644
index 18d6e77b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/CommandLoader/ContainerCommandLoaderTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\CommandLoader;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\CommandLoader\ContainerCommandLoader;
-use Symfony\Component\DependencyInjection\ServiceLocator;
-
-class ContainerCommandLoaderTest extends TestCase
-{
- public function testHas()
- {
- $loader = new ContainerCommandLoader(new ServiceLocator([
- 'foo-service' => function () { return new Command('foo'); },
- 'bar-service' => function () { return new Command('bar'); },
- ]), ['foo' => 'foo-service', 'bar' => 'bar-service']);
-
- $this->assertTrue($loader->has('foo'));
- $this->assertTrue($loader->has('bar'));
- $this->assertFalse($loader->has('baz'));
- }
-
- public function testGet()
- {
- $loader = new ContainerCommandLoader(new ServiceLocator([
- 'foo-service' => function () { return new Command('foo'); },
- 'bar-service' => function () { return new Command('bar'); },
- ]), ['foo' => 'foo-service', 'bar' => 'bar-service']);
-
- $this->assertInstanceOf(Command::class, $loader->get('foo'));
- $this->assertInstanceOf(Command::class, $loader->get('bar'));
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
- */
- public function testGetUnknownCommandThrows()
- {
- (new ContainerCommandLoader(new ServiceLocator([]), []))->get('unknown');
- }
-
- public function testGetCommandNames()
- {
- $loader = new ContainerCommandLoader(new ServiceLocator([
- 'foo-service' => function () { return new Command('foo'); },
- 'bar-service' => function () { return new Command('bar'); },
- ]), ['foo' => 'foo-service', 'bar' => 'bar-service']);
-
- $this->assertSame(['foo', 'bar'], $loader->getNames());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/CommandLoader/FactoryCommandLoaderTest.php b/www/wiki/vendor/symfony/console/Tests/CommandLoader/FactoryCommandLoaderTest.php
deleted file mode 100644
index 7b9ec837..00000000
--- a/www/wiki/vendor/symfony/console/Tests/CommandLoader/FactoryCommandLoaderTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\CommandLoader;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\CommandLoader\FactoryCommandLoader;
-
-class FactoryCommandLoaderTest extends TestCase
-{
- public function testHas()
- {
- $loader = new FactoryCommandLoader([
- 'foo' => function () { return new Command('foo'); },
- 'bar' => function () { return new Command('bar'); },
- ]);
-
- $this->assertTrue($loader->has('foo'));
- $this->assertTrue($loader->has('bar'));
- $this->assertFalse($loader->has('baz'));
- }
-
- public function testGet()
- {
- $loader = new FactoryCommandLoader([
- 'foo' => function () { return new Command('foo'); },
- 'bar' => function () { return new Command('bar'); },
- ]);
-
- $this->assertInstanceOf(Command::class, $loader->get('foo'));
- $this->assertInstanceOf(Command::class, $loader->get('bar'));
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
- */
- public function testGetUnknownCommandThrows()
- {
- (new FactoryCommandLoader([]))->get('unknown');
- }
-
- public function testGetCommandNames()
- {
- $loader = new FactoryCommandLoader([
- 'foo' => function () { return new Command('foo'); },
- 'bar' => function () { return new Command('bar'); },
- ]);
-
- $this->assertSame(['foo', 'bar'], $loader->getNames());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/DependencyInjection/AddConsoleCommandPassTest.php b/www/wiki/vendor/symfony/console/Tests/DependencyInjection/AddConsoleCommandPassTest.php
deleted file mode 100644
index b97d0a8f..00000000
--- a/www/wiki/vendor/symfony/console/Tests/DependencyInjection/AddConsoleCommandPassTest.php
+++ /dev/null
@@ -1,262 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\DependencyInjection;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\CommandLoader\ContainerCommandLoader;
-use Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass;
-use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument;
-use Symfony\Component\DependencyInjection\ChildDefinition;
-use Symfony\Component\DependencyInjection\Compiler\PassConfig;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Definition;
-use Symfony\Component\DependencyInjection\TypedReference;
-
-class AddConsoleCommandPassTest extends TestCase
-{
- /**
- * @dataProvider visibilityProvider
- */
- public function testProcess($public)
- {
- $container = new ContainerBuilder();
- $container->addCompilerPass(new AddConsoleCommandPass(), PassConfig::TYPE_BEFORE_REMOVING);
- $container->setParameter('my-command.class', 'Symfony\Component\Console\Tests\DependencyInjection\MyCommand');
-
- $definition = new Definition('%my-command.class%');
- $definition->setPublic($public);
- $definition->addTag('console.command');
- $container->setDefinition('my-command', $definition);
-
- $container->compile();
-
- $alias = 'console.command.symfony_component_console_tests_dependencyinjection_mycommand';
-
- if ($public) {
- $this->assertFalse($container->hasAlias($alias));
- $id = 'my-command';
- } else {
- $id = $alias;
- // The alias is replaced by a Definition by the ReplaceAliasByActualDefinitionPass
- // in case the original service is private
- $this->assertFalse($container->hasDefinition('my-command'));
- $this->assertTrue($container->hasDefinition($alias));
- }
-
- $this->assertTrue($container->hasParameter('console.command.ids'));
- $this->assertSame([$alias => $id], $container->getParameter('console.command.ids'));
- }
-
- public function testProcessRegistersLazyCommands()
- {
- $container = new ContainerBuilder();
- $command = $container
- ->register('my-command', MyCommand::class)
- ->setPublic(false)
- ->addTag('console.command', ['command' => 'my:command'])
- ->addTag('console.command', ['command' => 'my:alias'])
- ;
-
- (new AddConsoleCommandPass())->process($container);
-
- $commandLoader = $container->getDefinition('console.command_loader');
- $commandLocator = $container->getDefinition((string) $commandLoader->getArgument(0));
-
- $this->assertSame(ContainerCommandLoader::class, $commandLoader->getClass());
- $this->assertSame(['my:command' => 'my-command', 'my:alias' => 'my-command'], $commandLoader->getArgument(1));
- $this->assertEquals([['my-command' => new ServiceClosureArgument(new TypedReference('my-command', MyCommand::class))]], $commandLocator->getArguments());
- $this->assertSame(['console.command.symfony_component_console_tests_dependencyinjection_mycommand' => 'my-command'], $container->getParameter('console.command.ids'));
- $this->assertSame(['my-command' => true], $container->getParameter('console.lazy_command.ids'));
- $this->assertSame([['setName', ['my:command']], ['setAliases', [['my:alias']]]], $command->getMethodCalls());
- }
-
- public function testProcessFallsBackToDefaultName()
- {
- $container = new ContainerBuilder();
- $container
- ->register('with-default-name', NamedCommand::class)
- ->setPublic(false)
- ->addTag('console.command')
- ;
-
- $pass = new AddConsoleCommandPass();
- $pass->process($container);
-
- $commandLoader = $container->getDefinition('console.command_loader');
- $commandLocator = $container->getDefinition((string) $commandLoader->getArgument(0));
-
- $this->assertSame(ContainerCommandLoader::class, $commandLoader->getClass());
- $this->assertSame(['default' => 'with-default-name'], $commandLoader->getArgument(1));
- $this->assertEquals([['with-default-name' => new ServiceClosureArgument(new TypedReference('with-default-name', NamedCommand::class))]], $commandLocator->getArguments());
- $this->assertSame(['console.command.symfony_component_console_tests_dependencyinjection_namedcommand' => 'with-default-name'], $container->getParameter('console.command.ids'));
- $this->assertSame(['with-default-name' => true], $container->getParameter('console.lazy_command.ids'));
-
- $container = new ContainerBuilder();
- $container
- ->register('with-default-name', NamedCommand::class)
- ->setPublic(false)
- ->addTag('console.command', ['command' => 'new-name'])
- ;
-
- $pass->process($container);
-
- $this->assertSame(['new-name' => 'with-default-name'], $container->getDefinition('console.command_loader')->getArgument(1));
- }
-
- public function visibilityProvider()
- {
- return [
- [true],
- [false],
- ];
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The service "my-command" tagged "console.command" must not be abstract.
- */
- public function testProcessThrowAnExceptionIfTheServiceIsAbstract()
- {
- $container = new ContainerBuilder();
- $container->setResourceTracking(false);
- $container->addCompilerPass(new AddConsoleCommandPass(), PassConfig::TYPE_BEFORE_REMOVING);
-
- $definition = new Definition('Symfony\Component\Console\Tests\DependencyInjection\MyCommand');
- $definition->addTag('console.command');
- $definition->setAbstract(true);
- $container->setDefinition('my-command', $definition);
-
- $container->compile();
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The service "my-command" tagged "console.command" must be a subclass of "Symfony\Component\Console\Command\Command".
- */
- public function testProcessThrowAnExceptionIfTheServiceIsNotASubclassOfCommand()
- {
- $container = new ContainerBuilder();
- $container->setResourceTracking(false);
- $container->addCompilerPass(new AddConsoleCommandPass(), PassConfig::TYPE_BEFORE_REMOVING);
-
- $definition = new Definition('SplObjectStorage');
- $definition->addTag('console.command');
- $container->setDefinition('my-command', $definition);
-
- $container->compile();
- }
-
- public function testProcessPrivateServicesWithSameCommand()
- {
- $container = new ContainerBuilder();
- $className = 'Symfony\Component\Console\Tests\DependencyInjection\MyCommand';
-
- $definition1 = new Definition($className);
- $definition1->addTag('console.command')->setPublic(false);
-
- $definition2 = new Definition($className);
- $definition2->addTag('console.command')->setPublic(false);
-
- $container->setDefinition('my-command1', $definition1);
- $container->setDefinition('my-command2', $definition2);
-
- (new AddConsoleCommandPass())->process($container);
-
- $alias1 = 'console.command.symfony_component_console_tests_dependencyinjection_mycommand';
- $alias2 = $alias1.'_my-command2';
- $this->assertTrue($container->hasAlias($alias1));
- $this->assertTrue($container->hasAlias($alias2));
- }
-
- public function testProcessOnChildDefinitionWithClass()
- {
- $container = new ContainerBuilder();
- $container->addCompilerPass(new AddConsoleCommandPass(), PassConfig::TYPE_BEFORE_REMOVING);
- $className = 'Symfony\Component\Console\Tests\DependencyInjection\MyCommand';
-
- $parentId = 'my-parent-command';
- $childId = 'my-child-command';
-
- $parentDefinition = new Definition(/* no class */);
- $parentDefinition->setAbstract(true)->setPublic(false);
-
- $childDefinition = new ChildDefinition($parentId);
- $childDefinition->addTag('console.command')->setPublic(true);
- $childDefinition->setClass($className);
-
- $container->setDefinition($parentId, $parentDefinition);
- $container->setDefinition($childId, $childDefinition);
-
- $container->compile();
- $command = $container->get($childId);
-
- $this->assertInstanceOf($className, $command);
- }
-
- public function testProcessOnChildDefinitionWithParentClass()
- {
- $container = new ContainerBuilder();
- $container->addCompilerPass(new AddConsoleCommandPass(), PassConfig::TYPE_BEFORE_REMOVING);
- $className = 'Symfony\Component\Console\Tests\DependencyInjection\MyCommand';
-
- $parentId = 'my-parent-command';
- $childId = 'my-child-command';
-
- $parentDefinition = new Definition($className);
- $parentDefinition->setAbstract(true)->setPublic(false);
-
- $childDefinition = new ChildDefinition($parentId);
- $childDefinition->addTag('console.command')->setPublic(true);
-
- $container->setDefinition($parentId, $parentDefinition);
- $container->setDefinition($childId, $childDefinition);
-
- $container->compile();
- $command = $container->get($childId);
-
- $this->assertInstanceOf($className, $command);
- }
-
- /**
- * @expectedException \RuntimeException
- * @expectedExceptionMessage The definition for "my-child-command" has no class.
- */
- public function testProcessOnChildDefinitionWithoutClass()
- {
- $container = new ContainerBuilder();
- $container->addCompilerPass(new AddConsoleCommandPass(), PassConfig::TYPE_BEFORE_REMOVING);
-
- $parentId = 'my-parent-command';
- $childId = 'my-child-command';
-
- $parentDefinition = new Definition();
- $parentDefinition->setAbstract(true)->setPublic(false);
-
- $childDefinition = new ChildDefinition($parentId);
- $childDefinition->addTag('console.command')->setPublic(true);
-
- $container->setDefinition($parentId, $parentDefinition);
- $container->setDefinition($childId, $childDefinition);
-
- $container->compile();
- }
-}
-
-class MyCommand extends Command
-{
-}
-
-class NamedCommand extends Command
-{
- protected static $defaultName = 'default';
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php b/www/wiki/vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
deleted file mode 100644
index 320a4fb9..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Descriptor;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\BufferedOutput;
-
-abstract class AbstractDescriptorTest extends TestCase
-{
- /** @dataProvider getDescribeInputArgumentTestData */
- public function testDescribeInputArgument(InputArgument $argument, $expectedDescription)
- {
- $this->assertDescription($expectedDescription, $argument);
- }
-
- /** @dataProvider getDescribeInputOptionTestData */
- public function testDescribeInputOption(InputOption $option, $expectedDescription)
- {
- $this->assertDescription($expectedDescription, $option);
- }
-
- /** @dataProvider getDescribeInputDefinitionTestData */
- public function testDescribeInputDefinition(InputDefinition $definition, $expectedDescription)
- {
- $this->assertDescription($expectedDescription, $definition);
- }
-
- /** @dataProvider getDescribeCommandTestData */
- public function testDescribeCommand(Command $command, $expectedDescription)
- {
- $this->assertDescription($expectedDescription, $command);
- }
-
- /** @dataProvider getDescribeApplicationTestData */
- public function testDescribeApplication(Application $application, $expectedDescription)
- {
- // Replaces the dynamic placeholders of the command help text with a static version.
- // The placeholder %command.full_name% includes the script path that is not predictable
- // and can not be tested against.
- foreach ($application->all() as $command) {
- $command->setHelp(str_replace('%command.full_name%', 'app/console %command.name%', $command->getHelp()));
- }
-
- $this->assertDescription($expectedDescription, $application);
- }
-
- public function getDescribeInputArgumentTestData()
- {
- return $this->getDescriptionTestData(ObjectsProvider::getInputArguments());
- }
-
- public function getDescribeInputOptionTestData()
- {
- return $this->getDescriptionTestData(ObjectsProvider::getInputOptions());
- }
-
- public function getDescribeInputDefinitionTestData()
- {
- return $this->getDescriptionTestData(ObjectsProvider::getInputDefinitions());
- }
-
- public function getDescribeCommandTestData()
- {
- return $this->getDescriptionTestData(ObjectsProvider::getCommands());
- }
-
- public function getDescribeApplicationTestData()
- {
- return $this->getDescriptionTestData(ObjectsProvider::getApplications());
- }
-
- abstract protected function getDescriptor();
-
- abstract protected function getFormat();
-
- protected function getDescriptionTestData(array $objects)
- {
- $data = [];
- foreach ($objects as $name => $object) {
- $description = file_get_contents(sprintf('%s/../Fixtures/%s.%s', __DIR__, $name, $this->getFormat()));
- $data[] = [$object, $description];
- }
-
- return $data;
- }
-
- protected function assertDescription($expectedDescription, $describedObject, array $options = [])
- {
- $output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
- $this->getDescriptor()->describe($output, $describedObject, $options + ['raw_output' => true]);
- $this->assertEquals(trim($expectedDescription), trim(str_replace(PHP_EOL, "\n", $output->fetch())));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Descriptor/JsonDescriptorTest.php b/www/wiki/vendor/symfony/console/Tests/Descriptor/JsonDescriptorTest.php
deleted file mode 100644
index fb596b8d..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Descriptor/JsonDescriptorTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Descriptor;
-
-use Symfony\Component\Console\Descriptor\JsonDescriptor;
-use Symfony\Component\Console\Output\BufferedOutput;
-
-class JsonDescriptorTest extends AbstractDescriptorTest
-{
- protected function getDescriptor()
- {
- return new JsonDescriptor();
- }
-
- protected function getFormat()
- {
- return 'json';
- }
-
- protected function assertDescription($expectedDescription, $describedObject, array $options = [])
- {
- $output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
- $this->getDescriptor()->describe($output, $describedObject, $options + ['raw_output' => true]);
- $this->assertEquals(json_decode(trim($expectedDescription), true), json_decode(trim(str_replace(PHP_EOL, "\n", $output->fetch())), true));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Descriptor/MarkdownDescriptorTest.php b/www/wiki/vendor/symfony/console/Tests/Descriptor/MarkdownDescriptorTest.php
deleted file mode 100644
index a8f11cb4..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Descriptor/MarkdownDescriptorTest.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Descriptor;
-
-use Symfony\Component\Console\Descriptor\MarkdownDescriptor;
-use Symfony\Component\Console\Tests\Fixtures\DescriptorApplicationMbString;
-use Symfony\Component\Console\Tests\Fixtures\DescriptorCommandMbString;
-
-class MarkdownDescriptorTest extends AbstractDescriptorTest
-{
- public function getDescribeCommandTestData()
- {
- return $this->getDescriptionTestData(array_merge(
- ObjectsProvider::getCommands(),
- ['command_mbstring' => new DescriptorCommandMbString()]
- ));
- }
-
- public function getDescribeApplicationTestData()
- {
- return $this->getDescriptionTestData(array_merge(
- ObjectsProvider::getApplications(),
- ['application_mbstring' => new DescriptorApplicationMbString()]
- ));
- }
-
- protected function getDescriptor()
- {
- return new MarkdownDescriptor();
- }
-
- protected function getFormat()
- {
- return 'md';
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Descriptor/ObjectsProvider.php b/www/wiki/vendor/symfony/console/Tests/Descriptor/ObjectsProvider.php
deleted file mode 100644
index d46d6f18..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Descriptor/ObjectsProvider.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Descriptor;
-
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Tests\Fixtures\DescriptorApplication1;
-use Symfony\Component\Console\Tests\Fixtures\DescriptorApplication2;
-use Symfony\Component\Console\Tests\Fixtures\DescriptorCommand1;
-use Symfony\Component\Console\Tests\Fixtures\DescriptorCommand2;
-
-/**
- * @author Jean-François Simon <contact@jfsimon.fr>
- */
-class ObjectsProvider
-{
- public static function getInputArguments()
- {
- return [
- 'input_argument_1' => new InputArgument('argument_name', InputArgument::REQUIRED),
- 'input_argument_2' => new InputArgument('argument_name', InputArgument::IS_ARRAY, 'argument description'),
- 'input_argument_3' => new InputArgument('argument_name', InputArgument::OPTIONAL, 'argument description', 'default_value'),
- 'input_argument_4' => new InputArgument('argument_name', InputArgument::REQUIRED, "multiline\nargument description"),
- 'input_argument_with_style' => new InputArgument('argument_name', InputArgument::OPTIONAL, 'argument description', '<comment>style</>'),
- 'input_argument_with_default_inf_value' => new InputArgument('argument_name', InputArgument::OPTIONAL, 'argument description', INF),
- ];
- }
-
- public static function getInputOptions()
- {
- return [
- 'input_option_1' => new InputOption('option_name', 'o', InputOption::VALUE_NONE),
- 'input_option_2' => new InputOption('option_name', 'o', InputOption::VALUE_OPTIONAL, 'option description', 'default_value'),
- 'input_option_3' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, 'option description'),
- 'input_option_4' => new InputOption('option_name', 'o', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'option description', []),
- 'input_option_5' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, "multiline\noption description"),
- 'input_option_6' => new InputOption('option_name', ['o', 'O'], InputOption::VALUE_REQUIRED, 'option with multiple shortcuts'),
- 'input_option_with_style' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, 'option description', '<comment>style</>'),
- 'input_option_with_style_array' => new InputOption('option_name', 'o', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'option description', ['<comment>Hello</comment>', '<info>world</info>']),
- 'input_option_with_default_inf_value' => new InputOption('option_name', 'o', InputOption::VALUE_OPTIONAL, 'option description', INF),
- ];
- }
-
- public static function getInputDefinitions()
- {
- return [
- 'input_definition_1' => new InputDefinition(),
- 'input_definition_2' => new InputDefinition([new InputArgument('argument_name', InputArgument::REQUIRED)]),
- 'input_definition_3' => new InputDefinition([new InputOption('option_name', 'o', InputOption::VALUE_NONE)]),
- 'input_definition_4' => new InputDefinition([
- new InputArgument('argument_name', InputArgument::REQUIRED),
- new InputOption('option_name', 'o', InputOption::VALUE_NONE),
- ]),
- ];
- }
-
- public static function getCommands()
- {
- return [
- 'command_1' => new DescriptorCommand1(),
- 'command_2' => new DescriptorCommand2(),
- ];
- }
-
- public static function getApplications()
- {
- return [
- 'application_1' => new DescriptorApplication1(),
- 'application_2' => new DescriptorApplication2(),
- ];
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php b/www/wiki/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
deleted file mode 100644
index 26bbd907..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Descriptor;
-
-use Symfony\Component\Console\Descriptor\TextDescriptor;
-use Symfony\Component\Console\Tests\Fixtures\DescriptorApplication2;
-use Symfony\Component\Console\Tests\Fixtures\DescriptorApplicationMbString;
-use Symfony\Component\Console\Tests\Fixtures\DescriptorCommandMbString;
-
-class TextDescriptorTest extends AbstractDescriptorTest
-{
- public function getDescribeCommandTestData()
- {
- return $this->getDescriptionTestData(array_merge(
- ObjectsProvider::getCommands(),
- ['command_mbstring' => new DescriptorCommandMbString()]
- ));
- }
-
- public function getDescribeApplicationTestData()
- {
- return $this->getDescriptionTestData(array_merge(
- ObjectsProvider::getApplications(),
- ['application_mbstring' => new DescriptorApplicationMbString()]
- ));
- }
-
- public function testDescribeApplicationWithFilteredNamespace()
- {
- $application = new DescriptorApplication2();
-
- $this->assertDescription(file_get_contents(__DIR__.'/../Fixtures/application_filtered_namespace.txt'), $application, ['namespace' => 'command4']);
- }
-
- protected function getDescriptor()
- {
- return new TextDescriptor();
- }
-
- protected function getFormat()
- {
- return 'txt';
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Descriptor/XmlDescriptorTest.php b/www/wiki/vendor/symfony/console/Tests/Descriptor/XmlDescriptorTest.php
deleted file mode 100644
index 59a5d1ed..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Descriptor/XmlDescriptorTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Descriptor;
-
-use Symfony\Component\Console\Descriptor\XmlDescriptor;
-
-class XmlDescriptorTest extends AbstractDescriptorTest
-{
- protected function getDescriptor()
- {
- return new XmlDescriptor();
- }
-
- protected function getFormat()
- {
- return 'xml';
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/EventListener/ErrorListenerTest.php b/www/wiki/vendor/symfony/console/Tests/EventListener/ErrorListenerTest.php
deleted file mode 100644
index 39766db3..00000000
--- a/www/wiki/vendor/symfony/console/Tests/EventListener/ErrorListenerTest.php
+++ /dev/null
@@ -1,156 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\EventListener;
-
-use PHPUnit\Framework\TestCase;
-use Psr\Log\LoggerInterface;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Event\ConsoleErrorEvent;
-use Symfony\Component\Console\Event\ConsoleTerminateEvent;
-use Symfony\Component\Console\EventListener\ErrorListener;
-use Symfony\Component\Console\Input\ArgvInput;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\Input;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\StringInput;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class ErrorListenerTest extends TestCase
-{
- public function testOnConsoleError()
- {
- $error = new \TypeError('An error occurred');
-
- $logger = $this->getLogger();
- $logger
- ->expects($this->once())
- ->method('error')
- ->with('Error thrown while running command "{command}". Message: "{message}"', ['exception' => $error, 'command' => 'test:run --foo=baz buzz', 'message' => 'An error occurred'])
- ;
-
- $listener = new ErrorListener($logger);
- $listener->onConsoleError(new ConsoleErrorEvent(new ArgvInput(['console.php', 'test:run', '--foo=baz', 'buzz']), $this->getOutput(), $error, new Command('test:run')));
- }
-
- public function testOnConsoleErrorWithNoCommandAndNoInputString()
- {
- $error = new \RuntimeException('An error occurred');
-
- $logger = $this->getLogger();
- $logger
- ->expects($this->once())
- ->method('error')
- ->with('An error occurred while using the console. Message: "{message}"', ['exception' => $error, 'message' => 'An error occurred'])
- ;
-
- $listener = new ErrorListener($logger);
- $listener->onConsoleError(new ConsoleErrorEvent(new NonStringInput(), $this->getOutput(), $error));
- }
-
- public function testOnConsoleTerminateForNonZeroExitCodeWritesToLog()
- {
- $logger = $this->getLogger();
- $logger
- ->expects($this->once())
- ->method('debug')
- ->with('Command "{command}" exited with code "{code}"', ['command' => 'test:run', 'code' => 255])
- ;
-
- $listener = new ErrorListener($logger);
- $listener->onConsoleTerminate($this->getConsoleTerminateEvent(new ArgvInput(['console.php', 'test:run']), 255));
- }
-
- public function testOnConsoleTerminateForZeroExitCodeDoesNotWriteToLog()
- {
- $logger = $this->getLogger();
- $logger
- ->expects($this->never())
- ->method('debug')
- ;
-
- $listener = new ErrorListener($logger);
- $listener->onConsoleTerminate($this->getConsoleTerminateEvent(new ArgvInput(['console.php', 'test:run']), 0));
- }
-
- public function testGetSubscribedEvents()
- {
- $this->assertEquals(
- [
- 'console.error' => ['onConsoleError', -128],
- 'console.terminate' => ['onConsoleTerminate', -128],
- ],
- ErrorListener::getSubscribedEvents()
- );
- }
-
- public function testAllKindsOfInputCanBeLogged()
- {
- $logger = $this->getLogger();
- $logger
- ->expects($this->exactly(3))
- ->method('debug')
- ->with('Command "{command}" exited with code "{code}"', ['command' => 'test:run --foo=bar', 'code' => 255])
- ;
-
- $listener = new ErrorListener($logger);
- $listener->onConsoleTerminate($this->getConsoleTerminateEvent(new ArgvInput(['console.php', 'test:run', '--foo=bar']), 255));
- $listener->onConsoleTerminate($this->getConsoleTerminateEvent(new ArrayInput(['name' => 'test:run', '--foo' => 'bar']), 255));
- $listener->onConsoleTerminate($this->getConsoleTerminateEvent(new StringInput('test:run --foo=bar'), 255));
- }
-
- public function testCommandNameIsDisplayedForNonStringableInput()
- {
- $logger = $this->getLogger();
- $logger
- ->expects($this->once())
- ->method('debug')
- ->with('Command "{command}" exited with code "{code}"', ['command' => 'test:run', 'code' => 255])
- ;
-
- $listener = new ErrorListener($logger);
- $listener->onConsoleTerminate($this->getConsoleTerminateEvent($this->getMockBuilder(InputInterface::class)->getMock(), 255));
- }
-
- private function getLogger()
- {
- return $this->getMockForAbstractClass(LoggerInterface::class);
- }
-
- private function getConsoleTerminateEvent(InputInterface $input, $exitCode)
- {
- return new ConsoleTerminateEvent(new Command('test:run'), $input, $this->getOutput(), $exitCode);
- }
-
- private function getOutput()
- {
- return $this->getMockBuilder(OutputInterface::class)->getMock();
- }
-}
-
-class NonStringInput extends Input
-{
- public function getFirstArgument()
- {
- }
-
- public function hasParameterOption($values, $onlyParams = false)
- {
- }
-
- public function getParameterOption($values, $default = false, $onlyParams = false)
- {
- }
-
- public function parse()
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/BarBucCommand.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/BarBucCommand.php
deleted file mode 100644
index 52b619e8..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/BarBucCommand.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-
-class BarBucCommand extends Command
-{
- protected function configure()
- {
- $this->setName('bar:buc');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplication1.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplication1.php
deleted file mode 100644
index 132b6d57..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplication1.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Fixtures;
-
-use Symfony\Component\Console\Application;
-
-class DescriptorApplication1 extends Application
-{
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplication2.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplication2.php
deleted file mode 100644
index 7bb02fa5..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplication2.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Fixtures;
-
-use Symfony\Component\Console\Application;
-
-class DescriptorApplication2 extends Application
-{
- public function __construct()
- {
- parent::__construct('My Symfony application', 'v1.0');
- $this->add(new DescriptorCommand1());
- $this->add(new DescriptorCommand2());
- $this->add(new DescriptorCommand3());
- $this->add(new DescriptorCommand4());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplicationMbString.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplicationMbString.php
deleted file mode 100644
index bf170c44..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorApplicationMbString.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Fixtures;
-
-use Symfony\Component\Console\Application;
-
-class DescriptorApplicationMbString extends Application
-{
- public function __construct()
- {
- parent::__construct('MbString åpplicätion');
-
- $this->add(new DescriptorCommandMbString());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand1.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand1.php
deleted file mode 100644
index 14bb2048..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand1.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Fixtures;
-
-use Symfony\Component\Console\Command\Command;
-
-class DescriptorCommand1 extends Command
-{
- protected function configure()
- {
- $this
- ->setName('descriptor:command1')
- ->setAliases(['alias1', 'alias2'])
- ->setDescription('command 1 description')
- ->setHelp('command 1 help')
- ;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand2.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand2.php
deleted file mode 100644
index 51106b96..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand2.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Fixtures;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
-
-class DescriptorCommand2 extends Command
-{
- protected function configure()
- {
- $this
- ->setName('descriptor:command2')
- ->setDescription('command 2 description')
- ->setHelp('command 2 help')
- ->addUsage('-o|--option_name <argument_name>')
- ->addUsage('<argument_name>')
- ->addArgument('argument_name', InputArgument::REQUIRED)
- ->addOption('option_name', 'o', InputOption::VALUE_NONE)
- ;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand3.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand3.php
deleted file mode 100644
index 77f92e23..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand3.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Fixtures;
-
-use Symfony\Component\Console\Command\Command;
-
-class DescriptorCommand3 extends Command
-{
- protected function configure()
- {
- $this
- ->setName('descriptor:command3')
- ->setDescription('command 3 description')
- ->setHelp('command 3 help')
- ->setHidden(true)
- ;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand4.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand4.php
deleted file mode 100644
index 22dcae0e..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommand4.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Fixtures;
-
-use Symfony\Component\Console\Command\Command;
-
-class DescriptorCommand4 extends Command
-{
- protected function configure()
- {
- $this
- ->setName('descriptor:command4')
- ->setAliases(['descriptor:alias_command4', 'command4:descriptor'])
- ;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommandMbString.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommandMbString.php
deleted file mode 100644
index 66de917e..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/DescriptorCommandMbString.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Fixtures;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
-
-class DescriptorCommandMbString extends Command
-{
- protected function configure()
- {
- $this
- ->setName('descriptor:åèä')
- ->setDescription('command åèä description')
- ->setHelp('command åèä help')
- ->addUsage('-o|--option_name <argument_name>')
- ->addUsage('<argument_name>')
- ->addArgument('argument_åèä', InputArgument::REQUIRED)
- ->addOption('option_åèä', 'o', InputOption::VALUE_NONE)
- ;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/DummyOutput.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
deleted file mode 100644
index e9cf6ce7..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/DummyOutput.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Fixtures;
-
-use Symfony\Component\Console\Output\BufferedOutput;
-
-/**
- * Dummy output.
- *
- * @author Kévin Dunglas <dunglas@gmail.com>
- */
-class DummyOutput extends BufferedOutput
-{
- /**
- * @return array
- */
- public function getLogs()
- {
- $logs = [];
- foreach (explode(PHP_EOL, trim($this->fetch())) as $message) {
- preg_match('/^\[(.*)\] (.*)/', $message, $matches);
- $logs[] = sprintf('%s %s', $matches[1], $matches[2]);
- }
-
- return $logs;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo1Command.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo1Command.php
deleted file mode 100644
index 6069576d..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo1Command.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class Foo1Command extends Command
-{
- public $input;
- public $output;
-
- protected function configure()
- {
- $this
- ->setName('foo:bar1')
- ->setDescription('The foo:bar1 command')
- ->setAliases(['afoobar1'])
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->input = $input;
- $this->output = $output;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo2Command.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo2Command.php
deleted file mode 100644
index 0d988401..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo2Command.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class Foo2Command extends Command
-{
- protected function configure()
- {
- $this
- ->setName('foo1:bar')
- ->setDescription('The foo1:bar command')
- ->setAliases(['afoobar2'])
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo3Command.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo3Command.php
deleted file mode 100644
index adb3a2d8..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo3Command.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class Foo3Command extends Command
-{
- protected function configure()
- {
- $this
- ->setName('foo3:bar')
- ->setDescription('The foo3:bar command')
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- try {
- try {
- throw new \Exception('First exception <p>this is html</p>');
- } catch (\Exception $e) {
- throw new \Exception('Second exception <comment>comment</comment>', 0, $e);
- }
- } catch (\Exception $e) {
- throw new \Exception('Third exception <fg=blue;bg=red>comment</>', 404, $e);
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo4Command.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo4Command.php
deleted file mode 100644
index 1c546399..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo4Command.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-
-class Foo4Command extends Command
-{
- protected function configure()
- {
- $this->setName('foo3:bar:toh');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo5Command.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo5Command.php
deleted file mode 100644
index a1c60827..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo5Command.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-
-class Foo5Command extends Command
-{
- public function __construct()
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo6Command.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo6Command.php
deleted file mode 100644
index ef5bd770..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Foo6Command.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-
-class Foo6Command extends Command
-{
- protected function configure()
- {
- $this->setName('0foo:bar')->setDescription('0foo:bar command');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooCommand.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/FooCommand.php
deleted file mode 100644
index 31446004..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooCommand.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class FooCommand extends Command
-{
- public $input;
- public $output;
-
- protected function configure()
- {
- $this
- ->setName('foo:bar')
- ->setDescription('The foo:bar command')
- ->setAliases(['afoobar'])
- ;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $output->writeln('interact called');
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->input = $input;
- $this->output = $output;
-
- $output->writeln('called');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooLock2Command.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/FooLock2Command.php
deleted file mode 100644
index 4e4656f2..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooLock2Command.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Command\LockableTrait;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class FooLock2Command extends Command
-{
- use LockableTrait;
-
- protected function configure()
- {
- $this->setName('foo:lock2');
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- try {
- $this->lock();
- $this->lock();
- } catch (LogicException $e) {
- return 1;
- }
-
- return 2;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooLockCommand.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/FooLockCommand.php
deleted file mode 100644
index dfa28a6b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooLockCommand.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Command\LockableTrait;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class FooLockCommand extends Command
-{
- use LockableTrait;
-
- protected function configure()
- {
- $this->setName('foo:lock');
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- if (!$this->lock()) {
- return 1;
- }
-
- $this->release();
-
- return 2;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooOptCommand.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/FooOptCommand.php
deleted file mode 100644
index c9054671..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooOptCommand.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class FooOptCommand extends Command
-{
- public $input;
- public $output;
-
- protected function configure()
- {
- $this
- ->setName('foo:bar')
- ->setDescription('The foo:bar command')
- ->setAliases(['afoobar'])
- ->addOption('fooopt', 'fo', InputOption::VALUE_OPTIONAL, 'fooopt description')
- ;
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $output->writeln('interact called');
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->input = $input;
- $this->output = $output;
-
- $output->writeln('called');
- $output->writeln($this->input->getOption('fooopt'));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSameCaseLowercaseCommand.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSameCaseLowercaseCommand.php
deleted file mode 100644
index c875be0c..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSameCaseLowercaseCommand.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-
-class FooSameCaseLowercaseCommand extends Command
-{
- protected function configure()
- {
- $this->setName('foo:bar')->setDescription('foo:bar command');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSameCaseUppercaseCommand.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSameCaseUppercaseCommand.php
deleted file mode 100644
index 75c8d002..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSameCaseUppercaseCommand.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-
-class FooSameCaseUppercaseCommand extends Command
-{
- protected function configure()
- {
- $this->setName('foo:BAR')->setDescription('foo:BAR command');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced1Command.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced1Command.php
deleted file mode 100644
index 95a4e615..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced1Command.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class FooSubnamespaced1Command extends Command
-{
- public $input;
- public $output;
-
- protected function configure()
- {
- $this
- ->setName('foo:bar:baz')
- ->setDescription('The foo:bar:baz command')
- ->setAliases(['foobarbaz'])
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->input = $input;
- $this->output = $output;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced2Command.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced2Command.php
deleted file mode 100644
index 08c5ff72..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced2Command.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class FooSubnamespaced2Command extends Command
-{
- public $input;
- public $output;
-
- protected function configure()
- {
- $this
- ->setName('foo:go:bret')
- ->setDescription('The foo:bar:go command')
- ->setAliases(['foobargo'])
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->input = $input;
- $this->output = $output;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/FoobarCommand.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/FoobarCommand.php
deleted file mode 100644
index 96816280..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/FoobarCommand.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class FoobarCommand extends Command
-{
- public $input;
- public $output;
-
- protected function configure()
- {
- $this
- ->setName('foobar:foo')
- ->setDescription('The foobar:foo command')
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $this->input = $input;
- $this->output = $output;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_0.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_0.php
deleted file mode 100644
index 8fe7c077..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_0.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure has single blank line at start when using block element
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $output->caution('Lorem ipsum dolor sit amet');
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_1.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_1.php
deleted file mode 100644
index e5c700d6..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_1.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure has single blank line between titles and blocks
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $output->title('Title');
- $output->warning('Lorem ipsum dolor sit amet');
- $output->title('Title');
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_10.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_10.php
deleted file mode 100644
index 3111873d..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_10.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure that all lines are aligned to the begin of the first line in a very long line block
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $output->block(
- 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
- 'CUSTOM',
- 'fg=white;bg=green',
- 'X ',
- true
- );
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_11.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_11.php
deleted file mode 100644
index 3ed897de..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_11.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-// ensure long words are properly wrapped in blocks
-return function (InputInterface $input, OutputInterface $output) {
- $word = 'Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon';
- $sfStyle = new SymfonyStyle($input, $output);
- $sfStyle->block($word, 'CUSTOM', 'fg=white;bg=blue', ' § ', false);
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_12.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_12.php
deleted file mode 100644
index 8c458ae7..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_12.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-// ensure that all lines are aligned to the begin of the first one and start with '//' in a very long line comment
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $output->comment(
- 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum'
- );
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_13.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_13.php
deleted file mode 100644
index 827cbad1..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_13.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-// ensure that nested tags have no effect on the color of the '//' prefix
-return function (InputInterface $input, OutputInterface $output) {
- $output->setDecorated(true);
- $output = new SymfonyStyle($input, $output);
- $output->comment(
- 'Lorem ipsum dolor sit <comment>amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</comment> Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum'
- );
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_14.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_14.php
deleted file mode 100644
index a893a48b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_14.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-// ensure that block() behaves properly with a prefix and without type
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $output->block(
- 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
- null,
- null,
- '$ ',
- true
- );
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_15.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_15.php
deleted file mode 100644
index 68402cd4..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_15.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-// ensure that block() behaves properly with a type and without prefix
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $output->block(
- 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
- 'TEST'
- );
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_16.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_16.php
deleted file mode 100644
index 66e81796..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_16.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-// ensure that block() output is properly formatted (even padding lines)
-return function (InputInterface $input, OutputInterface $output) {
- $output->setDecorated(true);
- $output = new SymfonyStyle($input, $output);
- $output->success(
- 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
- 'TEST'
- );
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_17.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_17.php
deleted file mode 100644
index 311e6b39..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_17.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure symfony style helper methods handle trailing backslashes properly when decorating user texts
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
-
- $output->title('Title ending with \\');
- $output->section('Section ending with \\');
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_2.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_2.php
deleted file mode 100644
index 791b626f..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_2.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure has single blank line between blocks
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $output->warning('Warning');
- $output->caution('Caution');
- $output->error('Error');
- $output->success('Success');
- $output->note('Note');
- $output->block('Custom block', 'CUSTOM', 'fg=white;bg=green', 'X ', true);
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_3.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_3.php
deleted file mode 100644
index 99253a6c..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_3.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure has single blank line between two titles
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $output->title('First title');
- $output->title('Second title');
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_4.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_4.php
deleted file mode 100644
index b2f3d995..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_4.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure has single blank line after any text and a title
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
-
- $output->write('Lorem ipsum dolor sit amet');
- $output->title('First title');
-
- $output->writeln('Lorem ipsum dolor sit amet');
- $output->title('Second title');
-
- $output->write('Lorem ipsum dolor sit amet');
- $output->write('');
- $output->title('Third title');
-
- //Ensure edge case by appending empty strings to history:
- $output->write('Lorem ipsum dolor sit amet');
- $output->write(['', '', '']);
- $output->title('Fourth title');
-
- //Ensure have manual control over number of blank lines:
- $output->writeln('Lorem ipsum dolor sit amet');
- $output->writeln(['', '']); //Should append an extra blank line
- $output->title('Fifth title');
-
- $output->writeln('Lorem ipsum dolor sit amet');
- $output->newLine(2); //Should append an extra blank line
- $output->title('Fifth title');
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
deleted file mode 100644
index 6fba5737..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure has proper line ending before outputting a text block like with SymfonyStyle::listing() or SymfonyStyle::text()
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
-
- $output->writeln('Lorem ipsum dolor sit amet');
- $output->listing([
- 'Lorem ipsum dolor sit amet',
- 'consectetur adipiscing elit',
- ]);
-
- //Even using write:
- $output->write('Lorem ipsum dolor sit amet');
- $output->listing([
- 'Lorem ipsum dolor sit amet',
- 'consectetur adipiscing elit',
- ]);
-
- $output->write('Lorem ipsum dolor sit amet');
- $output->text([
- 'Lorem ipsum dolor sit amet',
- 'consectetur adipiscing elit',
- ]);
-
- $output->newLine();
-
- $output->write('Lorem ipsum dolor sit amet');
- $output->comment([
- 'Lorem ipsum dolor sit amet',
- 'consectetur adipiscing elit',
- ]);
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_6.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_6.php
deleted file mode 100644
index 3278f6ea..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_6.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure has proper blank line after text block when using a block like with SymfonyStyle::success
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
-
- $output->listing([
- 'Lorem ipsum dolor sit amet',
- 'consectetur adipiscing elit',
- ]);
- $output->success('Lorem ipsum dolor sit amet');
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_7.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_7.php
deleted file mode 100644
index 037c6ab6..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_7.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure questions do not output anything when input is non-interactive
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $output->title('Title');
- $output->askHidden('Hidden question');
- $output->choice('Choice question with default', ['choice1', 'choice2'], 'choice1');
- $output->confirm('Confirmation with yes default', true);
- $output->text('Duis aute irure dolor in reprehenderit in voluptate velit esse');
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_8.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_8.php
deleted file mode 100644
index fe9d484d..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_8.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Helper\TableCell;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure formatting tables when using multiple headers with TableCell
-return function (InputInterface $input, OutputInterface $output) {
- $headers = [
- [new TableCell('Main table title', ['colspan' => 3])],
- ['ISBN', 'Title', 'Author'],
- ];
-
- $rows = [
- [
- '978-0521567817',
- 'De Monarchia',
- new TableCell("Dante Alighieri\nspans multiple rows", ['rowspan' => 2]),
- ],
- ['978-0804169127', 'Divine Comedy'],
- ];
-
- $output = new SymfonyStyle($input, $output);
- $output->table($headers, $rows);
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_9.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_9.php
deleted file mode 100644
index 73af4ae1..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_9.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure that all lines are aligned to the begin of the first line in a multi-line block
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $output->block(['Custom block', 'Second custom block line'], 'CUSTOM', 'fg=white;bg=green', 'X ', true);
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/interactive_command_1.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/interactive_command_1.php
deleted file mode 100644
index 3c9c7440..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/interactive_command_1.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-//Ensure that questions have the expected outputs
-return function (InputInterface $input, OutputInterface $output) {
- $output = new SymfonyStyle($input, $output);
- $stream = fopen('php://memory', 'r+', false);
-
- fwrite($stream, "Foo\nBar\nBaz");
- rewind($stream);
- $input->setStream($stream);
-
- $output->ask('What\'s your name?');
- $output->ask('How are you?');
- $output->ask('Where do you come from?');
-};
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/interactive_output_1.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/interactive_output_1.txt
deleted file mode 100644
index 6fc7d7eb..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/interactive_output_1.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
- What's your name?:
- >
- How are you?:
- >
- Where do you come from?:
- >
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_0.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_0.txt
deleted file mode 100644
index a42e0f79..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_0.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-
- ! [CAUTION] Lorem ipsum dolor sit amet
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_1.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_1.txt
deleted file mode 100644
index 334875f7..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_1.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-
-Title
-=====
-
- [WARNING] Lorem ipsum dolor sit amet
-
-Title
-=====
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_10.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_10.txt
deleted file mode 100644
index 385c6a28..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_10.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-X [CUSTOM] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
-X dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
-X commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
-X nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
-X anim id est laborum
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_11.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_11.txt
deleted file mode 100644
index 190d7840..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_11.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-
- § [CUSTOM] Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophatto
- § peristeralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_12.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_12.txt
deleted file mode 100644
index 9983af83..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_12.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-
- // Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
- // aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
- // Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
- // sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_13.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_13.txt
deleted file mode 100644
index 0f3704b7..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_13.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
- // Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et 
- // dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
- // commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla 
- // pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim
- // id est laborum
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_14.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_14.txt
deleted file mode 100644
index 1d0d37e7..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_14.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-
-$ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
-$ aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-$ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
-$ occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_15.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_15.txt
deleted file mode 100644
index 66404b81..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_15.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
- [TEST] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
- magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
- pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
- laborum
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_16.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_16.txt
deleted file mode 100644
index a0d18016..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_16.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-
- 
- [OK] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore 
- magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. 
- Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum 
- 
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_17.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_17.txt
deleted file mode 100644
index 59d00e04..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_17.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-Title ending with \
-===================
-
-Section ending with \
----------------------
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_2.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_2.txt
deleted file mode 100644
index ca609760..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_2.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-
- [WARNING] Warning
-
- ! [CAUTION] Caution
-
- [ERROR] Error
-
- [OK] Success
-
- ! [NOTE] Note
-
-X [CUSTOM] Custom block
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_3.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_3.txt
deleted file mode 100644
index f4b6d582..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_3.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-First title
-===========
-
-Second title
-============
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_4.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_4.txt
deleted file mode 100644
index 2646d858..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_4.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-Lorem ipsum dolor sit amet
-
-First title
-===========
-
-Lorem ipsum dolor sit amet
-
-Second title
-============
-
-Lorem ipsum dolor sit amet
-
-Third title
-===========
-
-Lorem ipsum dolor sit amet
-
-Fourth title
-============
-
-Lorem ipsum dolor sit amet
-
-
-Fifth title
-===========
-
-Lorem ipsum dolor sit amet
-
-
-Fifth title
-===========
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_5.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_5.txt
deleted file mode 100644
index be4a2db6..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_5.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-Lorem ipsum dolor sit amet
- * Lorem ipsum dolor sit amet
- * consectetur adipiscing elit
-
-Lorem ipsum dolor sit amet
- * Lorem ipsum dolor sit amet
- * consectetur adipiscing elit
-
-Lorem ipsum dolor sit amet
- Lorem ipsum dolor sit amet
- consectetur adipiscing elit
-
-Lorem ipsum dolor sit amet
-
- // Lorem ipsum dolor sit amet
- //
- // consectetur adipiscing elit
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_6.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_6.txt
deleted file mode 100644
index 5f2d33c1..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_6.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-
- * Lorem ipsum dolor sit amet
- * consectetur adipiscing elit
-
- [OK] Lorem ipsum dolor sit amet
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_7.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_7.txt
deleted file mode 100644
index ecea9778..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_7.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-
-Title
-=====
-
- Duis aute irure dolor in reprehenderit in voluptate velit esse
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_8.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_8.txt
deleted file mode 100644
index 005b846e..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_8.txt
+++ /dev/null
@@ -1,9 +0,0 @@
- ---------------- --------------- ---------------------
- Main table title
- ---------------- --------------- ---------------------
- ISBN Title Author
- ---------------- --------------- ---------------------
- 978-0521567817 De Monarchia Dante Alighieri
- 978-0804169127 Divine Comedy spans multiple rows
- ---------------- --------------- ---------------------
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_9.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_9.txt
deleted file mode 100644
index 069c0d51..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_9.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-
-X [CUSTOM] Custom block
-X
-X Second custom block line
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/TestCommand.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/TestCommand.php
deleted file mode 100644
index eb7ccb33..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/TestCommand.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class TestCommand extends Command
-{
- protected function configure()
- {
- $this
- ->setName('namespace:name')
- ->setAliases(['name'])
- ->setDescription('description')
- ->setHelp('help')
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $output->writeln('execute called');
- }
-
- protected function interact(InputInterface $input, OutputInterface $output)
- {
- $output->writeln('interact called');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/TestTiti.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/TestTiti.php
deleted file mode 100644
index 72e29d2a..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/TestTiti.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class TestTiti extends Command
-{
- protected function configure()
- {
- $this
- ->setName('test-titi')
- ->setDescription('The test:titi command')
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $output->write('test-titi');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/TestToto.php b/www/wiki/vendor/symfony/console/Tests/Fixtures/TestToto.php
deleted file mode 100644
index 2e6a8195..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/TestToto.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class TestToto extends Command
-{
- protected function configure()
- {
- $this
- ->setName('test-toto')
- ->setDescription('The test-toto command')
- ->setAliases(['test'])
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $output->write('test-toto');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.json
deleted file mode 100644
index 29faa826..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "commands": [
- {
- "name": "help",
- "hidden": false,
- "usage": [
- "help [--format FORMAT] [--raw] [--] [<command_name>]"
- ],
- "description": "Displays help for a command",
- "help": "The <info>help<\/info> command displays help for a given command:\n\n <info>php app\/console help list<\/info>\n\nYou can also output the help in other formats by using the <comment>--format<\/comment> option:\n\n <info>php app\/console help --format=xml list<\/info>\n\nTo display the list of available commands, please use the <info>list<\/info> command.",
- "definition": {
- "arguments": {
- "command_name": {
- "name": "command_name",
- "is_required": false,
- "is_array": false,
- "description": "The command name",
- "default": "help"
- }
- },
- "options": {
- "format": {
- "name": "--format",
- "shortcut": "",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": false,
- "description": "The output format (txt, xml, json, or md)",
- "default": "txt"
- },
- "raw": {
- "name": "--raw",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "To output raw command help",
- "default": false
- },
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- },
- {
- "name": "list",
- "hidden": false,
- "usage": [
- "list [--raw] [--format FORMAT] [--] [<namespace>]"
- ],
- "description": "Lists commands",
- "help": "The <info>list<\/info> command lists all commands:\n\n <info>php app\/console list<\/info>\n\nYou can also display the commands for a specific namespace:\n\n <info>php app\/console list test<\/info>\n\nYou can also output the information in other formats by using the <comment>--format<\/comment> option:\n\n <info>php app\/console list --format=xml<\/info>\n\nIt's also possible to get raw list of commands (useful for embedding command runner):\n\n <info>php app\/console list --raw<\/info>",
- "definition": {
- "arguments": {
- "namespace": {
- "name": "namespace",
- "is_required": false,
- "is_array": false,
- "description": "The namespace name",
- "default": null
- }
- },
- "options": {
- "raw": {
- "name": "--raw",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "To output raw command list",
- "default": false
- },
- "format": {
- "name": "--format",
- "shortcut": "",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": false,
- "description": "The output format (txt, xml, json, or md)",
- "default": "txt"
- }
- }
- }
- }
- ],
- "namespaces": [
- {
- "id": "_global",
- "commands": [
- "help",
- "list"
- ]
- }
- ]
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.md
deleted file mode 100644
index b46c975a..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.md
+++ /dev/null
@@ -1,172 +0,0 @@
-Console Tool
-============
-
-* [`help`](#help)
-* [`list`](#list)
-
-`help`
-------
-
-Displays help for a command
-
-### Usage
-
-* `help [--format FORMAT] [--raw] [--] [<command_name>]`
-
-The help command displays help for a given command:
-
- php app/console help list
-
-You can also output the help in other formats by using the --format option:
-
- php app/console help --format=xml list
-
-To display the list of available commands, please use the list command.
-
-### Arguments
-
-#### `command_name`
-
-The command name
-
-* Is required: no
-* Is array: no
-* Default: `'help'`
-
-### Options
-
-#### `--format`
-
-The output format (txt, xml, json, or md)
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: no
-* Default: `'txt'`
-
-#### `--raw`
-
-To output raw command help
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--help|-h`
-
-Display this help message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--quiet|-q`
-
-Do not output any message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--verbose|-v|-vv|-vvv`
-
-Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--version|-V`
-
-Display this application version
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--ansi`
-
-Force ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-ansi`
-
-Disable ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-interaction|-n`
-
-Do not ask any interactive question
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-`list`
-------
-
-Lists commands
-
-### Usage
-
-* `list [--raw] [--format FORMAT] [--] [<namespace>]`
-
-The list command lists all commands:
-
- php app/console list
-
-You can also display the commands for a specific namespace:
-
- php app/console list test
-
-You can also output the information in other formats by using the --format option:
-
- php app/console list --format=xml
-
-It's also possible to get raw list of commands (useful for embedding command runner):
-
- php app/console list --raw
-
-### Arguments
-
-#### `namespace`
-
-The namespace name
-
-* Is required: no
-* Is array: no
-* Default: `NULL`
-
-### Options
-
-#### `--raw`
-
-To output raw command list
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--format`
-
-The output format (txt, xml, json, or md)
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: no
-* Default: `'txt'`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.txt
deleted file mode 100644
index 8a7b47e0..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-Console Tool
-
-<comment>Usage:</comment>
- command [options] [arguments]
-
-<comment>Options:</comment>
- <info>-h, --help</info> Display this help message
- <info>-q, --quiet</info> Do not output any message
- <info>-V, --version</info> Display this application version
- <info> --ansi</info> Force ANSI output
- <info> --no-ansi</info> Disable ANSI output
- <info>-n, --no-interaction</info> Do not ask any interactive question
- <info>-v|vv|vvv, --verbose</info> Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-<comment>Available commands:</comment>
- <info>help</info> Displays help for a command
- <info>list</info> Lists commands
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.xml
deleted file mode 100644
index a0bd076c..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_1.xml
+++ /dev/null
@@ -1,104 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<symfony>
- <commands>
- <command id="help" name="help" hidden="0">
- <usages>
- <usage>help [--format FORMAT] [--raw] [--] [&lt;command_name&gt;]</usage>
- </usages>
- <description>Displays help for a command</description>
- <help>The &lt;info&gt;help&lt;/info&gt; command displays help for a given command:
-
- &lt;info&gt;php app/console help list&lt;/info&gt;
-
- You can also output the help in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
-
- &lt;info&gt;php app/console help --format=xml list&lt;/info&gt;
-
- To display the list of available commands, please use the &lt;info&gt;list&lt;/info&gt; command.</help>
- <arguments>
- <argument name="command_name" is_required="0" is_array="0">
- <description>The command name</description>
- <defaults>
- <default>help</default>
- </defaults>
- </argument>
- </arguments>
- <options>
- <option name="--format" shortcut="" accept_value="1" is_value_required="1" is_multiple="0">
- <description>The output format (txt, xml, json, or md)</description>
- <defaults>
- <default>txt</default>
- </defaults>
- </option>
- <option name="--raw" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>To output raw command help</description>
- </option>
- <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this help message</description>
- </option>
- <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not output any message</description>
- </option>
- <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
- </option>
- <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this application version</description>
- </option>
- <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Force ANSI output</description>
- </option>
- <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Disable ANSI output</description>
- </option>
- <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not ask any interactive question</description>
- </option>
- </options>
- </command>
- <command id="list" name="list" hidden="0">
- <usages>
- <usage>list [--raw] [--format FORMAT] [--] [&lt;namespace&gt;]</usage>
- </usages>
- <description>Lists commands</description>
- <help>The &lt;info&gt;list&lt;/info&gt; command lists all commands:
-
- &lt;info&gt;php app/console list&lt;/info&gt;
-
- You can also display the commands for a specific namespace:
-
- &lt;info&gt;php app/console list test&lt;/info&gt;
-
- You can also output the information in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
-
- &lt;info&gt;php app/console list --format=xml&lt;/info&gt;
-
- It's also possible to get raw list of commands (useful for embedding command runner):
-
- &lt;info&gt;php app/console list --raw&lt;/info&gt;</help>
- <arguments>
- <argument name="namespace" is_required="0" is_array="0">
- <description>The namespace name</description>
- <defaults/>
- </argument>
- </arguments>
- <options>
- <option name="--raw" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>To output raw command list</description>
- </option>
- <option name="--format" shortcut="" accept_value="1" is_value_required="1" is_multiple="0">
- <description>The output format (txt, xml, json, or md)</description>
- <defaults>
- <default>txt</default>
- </defaults>
- </option>
- </options>
- </command>
- </commands>
- <namespaces>
- <namespace id="_global">
- <command>help</command>
- <command>list</command>
- </namespace>
- </namespaces>
-</symfony>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.json
deleted file mode 100644
index 4777a60b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.json
+++ /dev/null
@@ -1,509 +0,0 @@
-{
- "application": {
- "name": "My Symfony application",
- "version": "v1.0"
- },
- "commands": [
- {
- "name": "help",
- "hidden": false,
- "usage": [
- "help [--format FORMAT] [--raw] [--] [<command_name>]"
- ],
- "description": "Displays help for a command",
- "help": "The <info>help<\/info> command displays help for a given command:\n\n <info>php app\/console help list<\/info>\n\nYou can also output the help in other formats by using the <comment>--format<\/comment> option:\n\n <info>php app\/console help --format=xml list<\/info>\n\nTo display the list of available commands, please use the <info>list<\/info> command.",
- "definition": {
- "arguments": {
- "command_name": {
- "name": "command_name",
- "is_required": false,
- "is_array": false,
- "description": "The command name",
- "default": "help"
- }
- },
- "options": {
- "format": {
- "name": "--format",
- "shortcut": "",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": false,
- "description": "The output format (txt, xml, json, or md)",
- "default": "txt"
- },
- "raw": {
- "name": "--raw",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "To output raw command help",
- "default": false
- },
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- },
- {
- "name": "list",
- "hidden": false,
- "usage": [
- "list [--raw] [--format FORMAT] [--] [<namespace>]"
- ],
- "description": "Lists commands",
- "help": "The <info>list<\/info> command lists all commands:\n\n <info>php app\/console list<\/info>\n\nYou can also display the commands for a specific namespace:\n\n <info>php app\/console list test<\/info>\n\nYou can also output the information in other formats by using the <comment>--format<\/comment> option:\n\n <info>php app\/console list --format=xml<\/info>\n\nIt's also possible to get raw list of commands (useful for embedding command runner):\n\n <info>php app\/console list --raw<\/info>",
- "definition": {
- "arguments": {
- "namespace": {
- "name": "namespace",
- "is_required": false,
- "is_array": false,
- "description": "The namespace name",
- "default": null
- }
- },
- "options": {
- "raw": {
- "name": "--raw",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "To output raw command list",
- "default": false
- },
- "format": {
- "name": "--format",
- "shortcut": "",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": false,
- "description": "The output format (txt, xml, json, or md)",
- "default": "txt"
- }
- }
- }
- },
- {
- "name": "descriptor:command1",
- "hidden": false,
- "usage": [
- "descriptor:command1",
- "alias1",
- "alias2"
- ],
- "description": "command 1 description",
- "help": "command 1 help",
- "definition": {
- "arguments": [],
- "options": {
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- },
- {
- "name": "descriptor:command2",
- "hidden": false,
- "usage": [
- "descriptor:command2 [-o|--option_name] [--] <argument_name>",
- "descriptor:command2 -o|--option_name <argument_name>",
- "descriptor:command2 <argument_name>"
- ],
- "description": "command 2 description",
- "help": "command 2 help",
- "definition": {
- "arguments": {
- "argument_name": {
- "name": "argument_name",
- "is_required": true,
- "is_array": false,
- "description": "",
- "default": null
- }
- },
- "options": {
- "option_name": {
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "",
- "default": false
- },
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- },
- {
- "name": "descriptor:command3",
- "hidden": true,
- "usage": [
- "descriptor:command3"
- ],
- "description": "command 3 description",
- "help": "command 3 help",
- "definition": {
- "arguments": {},
- "options": {
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- },
- {
- "name": "descriptor:command4",
- "hidden": false,
- "usage": [
- "descriptor:command4",
- "descriptor:alias_command4",
- "command4:descriptor"
- ],
- "description": null,
- "help": "",
- "definition": {
- "arguments": {},
- "options": {
- "help": {
- "name": "--help",
- "shortcut": "-h",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this help message",
- "default": false
- },
- "quiet": {
- "name": "--quiet",
- "shortcut": "-q",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not output any message",
- "default": false
- },
- "verbose": {
- "name": "--verbose",
- "shortcut": "-v|-vv|-vvv",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
- "default": false
- },
- "version": {
- "name": "--version",
- "shortcut": "-V",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Display this application version",
- "default": false
- },
- "ansi": {
- "name": "--ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Force ANSI output",
- "default": false
- },
- "no-ansi": {
- "name": "--no-ansi",
- "shortcut": "",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Disable ANSI output",
- "default": false
- },
- "no-interaction": {
- "name": "--no-interaction",
- "shortcut": "-n",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "Do not ask any interactive question",
- "default": false
- }
- }
- }
- }
- ],
- "namespaces": [
- {
- "id": "_global",
- "commands": [
- "alias1",
- "alias2",
- "help",
- "list"
- ]
- },
- {
- "id": "command4",
- "commands": [
- "command4:descriptor"
- ]
- },
- {
- "id": "descriptor",
- "commands": [
- "descriptor:alias_command4",
- "descriptor:command1",
- "descriptor:command2",
- "descriptor:command3",
- "descriptor:command4"
- ]
- }
- ]
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.md
deleted file mode 100644
index 5b4896c0..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.md
+++ /dev/null
@@ -1,431 +0,0 @@
-My Symfony application v1.0
-===========================
-
-* [`alias1`](#descriptorcommand1)
-* [`alias2`](#descriptorcommand1)
-* [`help`](#help)
-* [`list`](#list)
-
-**command4:**
-
-* [`command4:descriptor`](#descriptorcommand4)
-
-**descriptor:**
-
-* [`descriptor:alias_command4`](#descriptorcommand4)
-* [`descriptor:command1`](#descriptorcommand1)
-* [`descriptor:command2`](#descriptorcommand2)
-* [`descriptor:command4`](#descriptorcommand4)
-
-`help`
-------
-
-Displays help for a command
-
-### Usage
-
-* `help [--format FORMAT] [--raw] [--] [<command_name>]`
-
-The help command displays help for a given command:
-
- php app/console help list
-
-You can also output the help in other formats by using the --format option:
-
- php app/console help --format=xml list
-
-To display the list of available commands, please use the list command.
-
-### Arguments
-
-#### `command_name`
-
-The command name
-
-* Is required: no
-* Is array: no
-* Default: `'help'`
-
-### Options
-
-#### `--format`
-
-The output format (txt, xml, json, or md)
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: no
-* Default: `'txt'`
-
-#### `--raw`
-
-To output raw command help
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--help|-h`
-
-Display this help message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--quiet|-q`
-
-Do not output any message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--verbose|-v|-vv|-vvv`
-
-Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--version|-V`
-
-Display this application version
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--ansi`
-
-Force ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-ansi`
-
-Disable ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-interaction|-n`
-
-Do not ask any interactive question
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-`list`
-------
-
-Lists commands
-
-### Usage
-
-* `list [--raw] [--format FORMAT] [--] [<namespace>]`
-
-The list command lists all commands:
-
- php app/console list
-
-You can also display the commands for a specific namespace:
-
- php app/console list test
-
-You can also output the information in other formats by using the --format option:
-
- php app/console list --format=xml
-
-It's also possible to get raw list of commands (useful for embedding command runner):
-
- php app/console list --raw
-
-### Arguments
-
-#### `namespace`
-
-The namespace name
-
-* Is required: no
-* Is array: no
-* Default: `NULL`
-
-### Options
-
-#### `--raw`
-
-To output raw command list
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--format`
-
-The output format (txt, xml, json, or md)
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: no
-* Default: `'txt'`
-
-`descriptor:command1`
----------------------
-
-command 1 description
-
-### Usage
-
-* `descriptor:command1`
-* `alias1`
-* `alias2`
-
-command 1 help
-
-### Options
-
-#### `--help|-h`
-
-Display this help message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--quiet|-q`
-
-Do not output any message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--verbose|-v|-vv|-vvv`
-
-Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--version|-V`
-
-Display this application version
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--ansi`
-
-Force ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-ansi`
-
-Disable ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-interaction|-n`
-
-Do not ask any interactive question
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-`descriptor:command2`
----------------------
-
-command 2 description
-
-### Usage
-
-* `descriptor:command2 [-o|--option_name] [--] <argument_name>`
-* `descriptor:command2 -o|--option_name <argument_name>`
-* `descriptor:command2 <argument_name>`
-
-command 2 help
-
-### Arguments
-
-#### `argument_name`
-
-* Is required: yes
-* Is array: no
-* Default: `NULL`
-
-### Options
-
-#### `--option_name|-o`
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--help|-h`
-
-Display this help message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--quiet|-q`
-
-Do not output any message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--verbose|-v|-vv|-vvv`
-
-Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--version|-V`
-
-Display this application version
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--ansi`
-
-Force ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-ansi`
-
-Disable ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-interaction|-n`
-
-Do not ask any interactive question
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-`descriptor:command4`
----------------------
-
-### Usage
-
-* `descriptor:command4`
-* `descriptor:alias_command4`
-* `command4:descriptor`
-
-
-### Options
-
-#### `--help|-h`
-
-Display this help message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--quiet|-q`
-
-Do not output any message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--verbose|-v|-vv|-vvv`
-
-Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--version|-V`
-
-Display this application version
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--ansi`
-
-Force ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-ansi`
-
-Disable ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-interaction|-n`
-
-Do not ask any interactive question
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.txt
deleted file mode 100644
index d624f194..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-My Symfony application <info>v1.0</info>
-
-<comment>Usage:</comment>
- command [options] [arguments]
-
-<comment>Options:</comment>
- <info>-h, --help</info> Display this help message
- <info>-q, --quiet</info> Do not output any message
- <info>-V, --version</info> Display this application version
- <info> --ansi</info> Force ANSI output
- <info> --no-ansi</info> Disable ANSI output
- <info>-n, --no-interaction</info> Do not ask any interactive question
- <info>-v|vv|vvv, --verbose</info> Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-<comment>Available commands:</comment>
- <info>help</info> Displays help for a command
- <info>list</info> Lists commands
- <comment>descriptor</comment>
- <info>descriptor:command1</info> [alias1|alias2] command 1 description
- <info>descriptor:command2</info> command 2 description
- <info>descriptor:command4</info> [descriptor:alias_command4|command4:descriptor]
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.xml
deleted file mode 100644
index 5f0f98bd..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_2.xml
+++ /dev/null
@@ -1,254 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<symfony name="My Symfony application" version="v1.0">
- <commands>
- <command id="help" name="help" hidden="0">
- <usages>
- <usage>help [--format FORMAT] [--raw] [--] [&lt;command_name&gt;]</usage>
- </usages>
- <description>Displays help for a command</description>
- <help>The &lt;info&gt;help&lt;/info&gt; command displays help for a given command:
-
- &lt;info&gt;php app/console help list&lt;/info&gt;
-
- You can also output the help in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
-
- &lt;info&gt;php app/console help --format=xml list&lt;/info&gt;
-
- To display the list of available commands, please use the &lt;info&gt;list&lt;/info&gt; command.</help>
- <arguments>
- <argument name="command_name" is_required="0" is_array="0">
- <description>The command name</description>
- <defaults>
- <default>help</default>
- </defaults>
- </argument>
- </arguments>
- <options>
- <option name="--format" shortcut="" accept_value="1" is_value_required="1" is_multiple="0">
- <description>The output format (txt, xml, json, or md)</description>
- <defaults>
- <default>txt</default>
- </defaults>
- </option>
- <option name="--raw" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>To output raw command help</description>
- </option>
- <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this help message</description>
- </option>
- <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not output any message</description>
- </option>
- <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
- </option>
- <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this application version</description>
- </option>
- <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Force ANSI output</description>
- </option>
- <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Disable ANSI output</description>
- </option>
- <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not ask any interactive question</description>
- </option>
- </options>
- </command>
- <command id="list" name="list" hidden="0">
- <usages>
- <usage>list [--raw] [--format FORMAT] [--] [&lt;namespace&gt;]</usage>
- </usages>
- <description>Lists commands</description>
- <help>The &lt;info&gt;list&lt;/info&gt; command lists all commands:
-
- &lt;info&gt;php app/console list&lt;/info&gt;
-
- You can also display the commands for a specific namespace:
-
- &lt;info&gt;php app/console list test&lt;/info&gt;
-
- You can also output the information in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
-
- &lt;info&gt;php app/console list --format=xml&lt;/info&gt;
-
- It's also possible to get raw list of commands (useful for embedding command runner):
-
- &lt;info&gt;php app/console list --raw&lt;/info&gt;</help>
- <arguments>
- <argument name="namespace" is_required="0" is_array="0">
- <description>The namespace name</description>
- <defaults/>
- </argument>
- </arguments>
- <options>
- <option name="--raw" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>To output raw command list</description>
- </option>
- <option name="--format" shortcut="" accept_value="1" is_value_required="1" is_multiple="0">
- <description>The output format (txt, xml, json, or md)</description>
- <defaults>
- <default>txt</default>
- </defaults>
- </option>
- </options>
- </command>
- <command id="descriptor:command1" name="descriptor:command1" hidden="0">
- <usages>
- <usage>descriptor:command1</usage>
- <usage>alias1</usage>
- <usage>alias2</usage>
- </usages>
- <description>command 1 description</description>
- <help>command 1 help</help>
- <arguments/>
- <options>
- <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this help message</description>
- </option>
- <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not output any message</description>
- </option>
- <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
- </option>
- <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this application version</description>
- </option>
- <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Force ANSI output</description>
- </option>
- <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Disable ANSI output</description>
- </option>
- <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not ask any interactive question</description>
- </option>
- </options>
- </command>
- <command id="descriptor:command2" name="descriptor:command2" hidden="0">
- <usages>
- <usage>descriptor:command2 [-o|--option_name] [--] &lt;argument_name&gt;</usage>
- <usage>descriptor:command2 -o|--option_name &lt;argument_name&gt;</usage>
- <usage>descriptor:command2 &lt;argument_name&gt;</usage>
- </usages>
- <description>command 2 description</description>
- <help>command 2 help</help>
- <arguments>
- <argument name="argument_name" is_required="1" is_array="0">
- <description></description>
- <defaults/>
- </argument>
- </arguments>
- <options>
- <option name="--option_name" shortcut="-o" accept_value="0" is_value_required="0" is_multiple="0">
- <description></description>
- </option>
- <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this help message</description>
- </option>
- <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not output any message</description>
- </option>
- <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
- </option>
- <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this application version</description>
- </option>
- <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Force ANSI output</description>
- </option>
- <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Disable ANSI output</description>
- </option>
- <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not ask any interactive question</description>
- </option>
- </options>
- </command>
- <command id="descriptor:command3" name="descriptor:command3" hidden="1">
- <usages>
- <usage>descriptor:command3</usage>
- </usages>
- <description>command 3 description</description>
- <help>command 3 help</help>
- <arguments/>
- <options>
- <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this help message</description>
- </option>
- <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not output any message</description>
- </option>
- <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
- </option>
- <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this application version</description>
- </option>
- <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Force ANSI output</description>
- </option>
- <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Disable ANSI output</description>
- </option>
- <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not ask any interactive question</description>
- </option>
- </options>
- </command>
- <command id="descriptor:command4" name="descriptor:command4" hidden="0">
- <usages>
- <usage>descriptor:command4</usage>
- <usage>descriptor:alias_command4</usage>
- <usage>command4:descriptor</usage>
- </usages>
- <description></description>
- <help></help>
- <arguments/>
- <options>
- <option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this help message</description>
- </option>
- <option name="--quiet" shortcut="-q" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not output any message</description>
- </option>
- <option name="--verbose" shortcut="-v" shortcuts="-v|-vv|-vvv" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</description>
- </option>
- <option name="--version" shortcut="-V" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Display this application version</description>
- </option>
- <option name="--ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Force ANSI output</description>
- </option>
- <option name="--no-ansi" shortcut="" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Disable ANSI output</description>
- </option>
- <option name="--no-interaction" shortcut="-n" accept_value="0" is_value_required="0" is_multiple="0">
- <description>Do not ask any interactive question</description>
- </option>
- </options>
- </command>
- </commands>
- <namespaces>
- <namespace id="_global">
- <command>alias1</command>
- <command>alias2</command>
- <command>help</command>
- <command>list</command>
- </namespace>
- <namespace id="command4">
- <command>command4:descriptor</command>
- </namespace>
- <namespace id="descriptor">
- <command>descriptor:alias_command4</command>
- <command>descriptor:command1</command>
- <command>descriptor:command2</command>
- <command>descriptor:command3</command>
- <command>descriptor:command4</command>
- </namespace>
- </namespaces>
-</symfony>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_filtered_namespace.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_filtered_namespace.txt
deleted file mode 100644
index 3bca2700..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_filtered_namespace.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-My Symfony application <info>v1.0</info>
-
-<comment>Usage:</comment>
- command [options] [arguments]
-
-<comment>Options:</comment>
- <info>-h, --help</info> Display this help message
- <info>-q, --quiet</info> Do not output any message
- <info>-V, --version</info> Display this application version
- <info> --ansi</info> Force ANSI output
- <info> --no-ansi</info> Disable ANSI output
- <info>-n, --no-interaction</info> Do not ask any interactive question
- <info>-v|vv|vvv, --verbose</info> Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-<comment>Available commands for the "command4" namespace:</comment>
- <info>command4:descriptor</info>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_gethelp.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_gethelp.txt
deleted file mode 100644
index 5a5920d0..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_gethelp.txt
+++ /dev/null
@@ -1 +0,0 @@
-Console Tool \ No newline at end of file
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_mbstring.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_mbstring.md
deleted file mode 100644
index f34e5585..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_mbstring.md
+++ /dev/null
@@ -1,269 +0,0 @@
-MbString åpplicätion
-====================
-
-* [`help`](#help)
-* [`list`](#list)
-
-**descriptor:**
-
-* [`descriptor:åèä`](#descriptoråèä)
-
-`help`
-------
-
-Displays help for a command
-
-### Usage
-
-* `help [--format FORMAT] [--raw] [--] [<command_name>]`
-
-The help command displays help for a given command:
-
- php app/console help list
-
-You can also output the help in other formats by using the --format option:
-
- php app/console help --format=xml list
-
-To display the list of available commands, please use the list command.
-
-### Arguments
-
-#### `command_name`
-
-The command name
-
-* Is required: no
-* Is array: no
-* Default: `'help'`
-
-### Options
-
-#### `--format`
-
-The output format (txt, xml, json, or md)
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: no
-* Default: `'txt'`
-
-#### `--raw`
-
-To output raw command help
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--help|-h`
-
-Display this help message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--quiet|-q`
-
-Do not output any message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--verbose|-v|-vv|-vvv`
-
-Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--version|-V`
-
-Display this application version
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--ansi`
-
-Force ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-ansi`
-
-Disable ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-interaction|-n`
-
-Do not ask any interactive question
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-`list`
-------
-
-Lists commands
-
-### Usage
-
-* `list [--raw] [--format FORMAT] [--] [<namespace>]`
-
-The list command lists all commands:
-
- php app/console list
-
-You can also display the commands for a specific namespace:
-
- php app/console list test
-
-You can also output the information in other formats by using the --format option:
-
- php app/console list --format=xml
-
-It's also possible to get raw list of commands (useful for embedding command runner):
-
- php app/console list --raw
-
-### Arguments
-
-#### `namespace`
-
-The namespace name
-
-* Is required: no
-* Is array: no
-* Default: `NULL`
-
-### Options
-
-#### `--raw`
-
-To output raw command list
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--format`
-
-The output format (txt, xml, json, or md)
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: no
-* Default: `'txt'`
-
-`descriptor:åèä`
-----------------
-
-command åèä description
-
-### Usage
-
-* `descriptor:åèä [-o|--option_åèä] [--] <argument_åèä>`
-* `descriptor:åèä -o|--option_name <argument_name>`
-* `descriptor:åèä <argument_name>`
-
-command åèä help
-
-### Arguments
-
-#### `argument_åèä`
-
-* Is required: yes
-* Is array: no
-* Default: `NULL`
-
-### Options
-
-#### `--option_åèä|-o`
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--help|-h`
-
-Display this help message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--quiet|-q`
-
-Do not output any message
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--verbose|-v|-vv|-vvv`
-
-Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--version|-V`
-
-Display this application version
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--ansi`
-
-Force ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-ansi`
-
-Disable ANSI output
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
-
-#### `--no-interaction|-n`
-
-Do not ask any interactive question
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_mbstring.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_mbstring.txt
deleted file mode 100644
index b409d188..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_mbstring.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-MbString åpplicätion
-
-<comment>Usage:</comment>
- command [options] [arguments]
-
-<comment>Options:</comment>
- <info>-h, --help</info> Display this help message
- <info>-q, --quiet</info> Do not output any message
- <info>-V, --version</info> Display this application version
- <info> --ansi</info> Force ANSI output
- <info> --no-ansi</info> Disable ANSI output
- <info>-n, --no-interaction</info> Do not ask any interactive question
- <info>-v|vv|vvv, --verbose</info> Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-<comment>Available commands:</comment>
- <info>help</info> Displays help for a command
- <info>list</info> Lists commands
- <comment>descriptor</comment>
- <info>descriptor:åèä</info> command åèä description
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception1.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception1.txt
deleted file mode 100644
index 1df5bd64..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception1.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- Command "foo" is not defined.
-
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception2.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception2.txt
deleted file mode 100644
index 932063d7..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception2.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
- The "--foo" option does not exist.
-
-
-list [--raw] [--format FORMAT] [--] [<namespace>]
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception3.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception3.txt
deleted file mode 100644
index 5366b84f..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception3.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-
-In Foo3Command.php line 26:
-
- Third exception <fg=blue;bg=red>comment</>
-
-
-In Foo3Command.php line 23:
-
- Second exception <comment>comment</comment>
-
-
-In Foo3Command.php line 21:
-
- First exception <p>this is html</p>
-
-
-foo3:bar
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception3decorated.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception3decorated.txt
deleted file mode 100644
index 59937092..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception3decorated.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-
-In Foo3Command.php line 26:
- 
- Third exception <fg=blue;bg=red>comment</> 
- 
-
-In Foo3Command.php line 23:
- 
- Second exception <comment>comment</comment> 
- 
-
-In Foo3Command.php line 21:
- 
- First exception <p>this is html</p> 
- 
-
-foo3:bar
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception4.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception4.txt
deleted file mode 100644
index 548a13e5..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception4.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- Command "foo" is not define
- d.
-
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth1.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth1.txt
deleted file mode 100644
index 4677c18e..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth1.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-
-In ApplicationTest.php line %d:
-
- エラーメッセージ
-
-
-foo
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth1decorated.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth1decorated.txt
deleted file mode 100644
index 33d32655..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth1decorated.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-
-In ApplicationTest.php line %d:
- 
- エラーメッセージ 
- 
-
-foo
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth2.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth2.txt
deleted file mode 100644
index 2ee72e22..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_doublewidth2.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-
-In ApplicationTest.php line %d:
-
- コマンドの実行中にエラーが
- 発生しました。
-
-
-foo
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_escapeslines.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_escapeslines.txt
deleted file mode 100644
index ff7b7b39..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_escapeslines.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-
-In ApplicationTest.php line %d:
-
- dont break here <
- info>!</info>
-
-
-foo
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_linebreaks.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_linebreaks.txt
deleted file mode 100644
index 0e5c4b16..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_renderexception_linebreaks.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-
-In ApplicationTest.php line %d:
-
- line 1 with extra spaces
- line 2
-
- line 4
-
-
-foo
-
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run1.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run1.txt
deleted file mode 100644
index 0dc27309..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run1.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-Console Tool
-
-Usage:
- command [options] [arguments]
-
-Options:
- -h, --help Display this help message
- -q, --quiet Do not output any message
- -V, --version Display this application version
- --ansi Force ANSI output
- --no-ansi Disable ANSI output
- -n, --no-interaction Do not ask any interactive question
- -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
-
-Available commands:
- help Displays help for a command
- list Lists commands
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run2.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run2.txt
deleted file mode 100644
index 65a685d0..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run2.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-Usage:
- list [options] [--] [<namespace>]
-
-Arguments:
- namespace The namespace name
-
-Options:
- --raw To output raw command list
- --format=FORMAT The output format (txt, xml, json, or md) [default: "txt"]
-
-Help:
- The list command lists all commands:
-
- php app/console list
-
- You can also display the commands for a specific namespace:
-
- php app/console list test
-
- You can also output the information in other formats by using the --format option:
-
- php app/console list --format=xml
-
- It's also possible to get raw list of commands (useful for embedding command runner):
-
- php app/console list --raw
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run3.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run3.txt
deleted file mode 100644
index 65a685d0..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run3.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-Usage:
- list [options] [--] [<namespace>]
-
-Arguments:
- namespace The namespace name
-
-Options:
- --raw To output raw command list
- --format=FORMAT The output format (txt, xml, json, or md) [default: "txt"]
-
-Help:
- The list command lists all commands:
-
- php app/console list
-
- You can also display the commands for a specific namespace:
-
- php app/console list test
-
- You can also output the information in other formats by using the --format option:
-
- php app/console list --format=xml
-
- It's also possible to get raw list of commands (useful for embedding command runner):
-
- php app/console list --raw
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run4.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run4.txt
deleted file mode 100644
index 47187fc2..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/application_run4.txt
+++ /dev/null
@@ -1 +0,0 @@
-Console Tool
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.json
deleted file mode 100644
index 09087900..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "descriptor:command1",
- "hidden": false,
- "usage": [
- "descriptor:command1",
- "alias1",
- "alias2"
- ],
- "description": "command 1 description",
- "help": "command 1 help",
- "definition": {
- "arguments": [],
- "options": []
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.md
deleted file mode 100644
index e9a0180b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.md
+++ /dev/null
@@ -1,12 +0,0 @@
-`descriptor:command1`
----------------------
-
-command 1 description
-
-### Usage
-
-* `descriptor:command1`
-* `alias1`
-* `alias2`
-
-command 1 help
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.txt
deleted file mode 100644
index e5e93ee0..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-<comment>Usage:</comment>
- descriptor:command1
- alias1
- alias2
-
-<comment>Help:</comment>
- command 1 help
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.xml
deleted file mode 100644
index fa0cca08..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_1.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<command id="descriptor:command1" name="descriptor:command1" hidden="0">
- <usages>
- <usage>descriptor:command1</usage>
- <usage>alias1</usage>
- <usage>alias2</usage>
- </usages>
- <description>command 1 description</description>
- <help>command 1 help</help>
- <arguments/>
- <options/>
-</command>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.json
deleted file mode 100644
index 8a1ec023..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "name": "descriptor:command2",
- "hidden": false,
- "usage": [
- "descriptor:command2 [-o|--option_name] [--] <argument_name>",
- "descriptor:command2 -o|--option_name <argument_name>",
- "descriptor:command2 <argument_name>"
- ],
- "description": "command 2 description",
- "help": "command 2 help",
- "definition": {
- "arguments": {
- "argument_name": {
- "name": "argument_name",
- "is_required": true,
- "is_array": false,
- "description": "",
- "default": null
- }
- },
- "options": {
- "option_name": {
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "",
- "default": false
- }
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.md
deleted file mode 100644
index 41f51f01..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.md
+++ /dev/null
@@ -1,29 +0,0 @@
-`descriptor:command2`
----------------------
-
-command 2 description
-
-### Usage
-
-* `descriptor:command2 [-o|--option_name] [--] <argument_name>`
-* `descriptor:command2 -o|--option_name <argument_name>`
-* `descriptor:command2 <argument_name>`
-
-command 2 help
-
-### Arguments
-
-#### `argument_name`
-
-* Is required: yes
-* Is array: no
-* Default: `NULL`
-
-### Options
-
-#### `--option_name|-o`
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.txt
deleted file mode 100644
index 2864c7bd..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-<comment>Usage:</comment>
- descriptor:command2 [options] [--] \<argument_name>
- descriptor:command2 -o|--option_name \<argument_name>
- descriptor:command2 \<argument_name>
-
-<comment>Arguments:</comment>
- <info>argument_name</info>
-
-<comment>Options:</comment>
- <info>-o, --option_name</info>
-
-<comment>Help:</comment>
- command 2 help
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.xml
deleted file mode 100644
index ae69e2f4..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_2.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<command id="descriptor:command2" name="descriptor:command2" hidden="0">
- <usages>
- <usage>descriptor:command2 [-o|--option_name] [--] &lt;argument_name&gt;</usage>
- <usage>descriptor:command2 -o|--option_name &lt;argument_name&gt;</usage>
- <usage>descriptor:command2 &lt;argument_name&gt;</usage>
- </usages>
- <description>command 2 description</description>
- <help>command 2 help</help>
- <arguments>
- <argument name="argument_name" is_required="1" is_array="0">
- <description></description>
- <defaults/>
- </argument>
- </arguments>
- <options>
- <option name="--option_name" shortcut="-o" accept_value="0" is_value_required="0" is_multiple="0">
- <description></description>
- </option>
- </options>
-</command>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_mbstring.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/command_mbstring.md
deleted file mode 100644
index 7ef40d7b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_mbstring.md
+++ /dev/null
@@ -1,29 +0,0 @@
-`descriptor:åèä`
-----------------
-
-command åèä description
-
-### Usage
-
-* `descriptor:åèä [-o|--option_åèä] [--] <argument_åèä>`
-* `descriptor:åèä -o|--option_name <argument_name>`
-* `descriptor:åèä <argument_name>`
-
-command åèä help
-
-### Arguments
-
-#### `argument_åèä`
-
-* Is required: yes
-* Is array: no
-* Default: `NULL`
-
-### Options
-
-#### `--option_åèä|-o`
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_mbstring.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/command_mbstring.txt
deleted file mode 100644
index cde457dc..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/command_mbstring.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-<comment>Usage:</comment>
- descriptor:åèä [options] [--] \<argument_åèä>
- descriptor:åèä -o|--option_name \<argument_name>
- descriptor:åèä \<argument_name>
-
-<comment>Arguments:</comment>
- <info>argument_åèä</info>
-
-<comment>Options:</comment>
- <info>-o, --option_åèä</info>
-
-<comment>Help:</comment>
- command åèä help
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.json
deleted file mode 100644
index 0ab93296..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "argument_name",
- "is_required": true,
- "is_array": false,
- "description": "",
- "default": null
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.md
deleted file mode 100644
index 7516cbd4..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.md
+++ /dev/null
@@ -1,5 +0,0 @@
-#### `argument_name`
-
-* Is required: yes
-* Is array: no
-* Default: `NULL`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.txt
deleted file mode 100644
index 55035183..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>argument_name</info>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.xml
deleted file mode 100644
index cb37f812..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_1.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<argument name="argument_name" is_required="1" is_array="0">
- <description></description>
- <defaults/>
-</argument>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.json
deleted file mode 100644
index 7450016f..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "argument_name",
- "is_required": false,
- "is_array": true,
- "description": "argument description",
- "default": []
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.md
deleted file mode 100644
index 2e7e7580..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.md
+++ /dev/null
@@ -1,7 +0,0 @@
-#### `argument_name`
-
-argument description
-
-* Is required: no
-* Is array: yes
-* Default: `array ()`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.txt
deleted file mode 100644
index e7136607..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>argument_name</info> argument description
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.xml
deleted file mode 100644
index 629da5a9..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_2.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<argument name="argument_name" is_required="0" is_array="1">
- <description>argument description</description>
- <defaults/>
-</argument>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.json
deleted file mode 100644
index 9a83c5a5..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "argument_name",
- "is_required": false,
- "is_array": false,
- "description": "argument description",
- "default": "default_value"
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.md
deleted file mode 100644
index b0dd8785..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.md
+++ /dev/null
@@ -1,7 +0,0 @@
-#### `argument_name`
-
-argument description
-
-* Is required: no
-* Is array: no
-* Default: `'default_value'`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.txt
deleted file mode 100644
index 6b76639e..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>argument_name</info> argument description<comment> [default: "default_value"]</comment>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.xml
deleted file mode 100644
index 399a5c86..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_3.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<argument name="argument_name" is_required="0" is_array="0">
- <description>argument description</description>
- <defaults>
- <default>default_value</default>
- </defaults>
-</argument>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.json
deleted file mode 100644
index cbcb19b3..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "argument_name",
- "is_required": true,
- "is_array": false,
- "description": "multiline argument description",
- "default": null
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.md
deleted file mode 100644
index b9bb7edc..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.md
+++ /dev/null
@@ -1,8 +0,0 @@
-#### `argument_name`
-
-multiline
-argument description
-
-* Is required: yes
-* Is array: no
-* Default: `NULL`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.txt
deleted file mode 100644
index fc7d669a..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.txt
+++ /dev/null
@@ -1,2 +0,0 @@
- <info>argument_name</info> multiline
- argument description
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.xml
deleted file mode 100644
index 5ca135ec..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_4.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<argument name="argument_name" is_required="1" is_array="0">
- <description>multiline
-argument description</description>
- <defaults/>
-</argument>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.json
deleted file mode 100644
index b61ecf7b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "argument_name",
- "is_required": false,
- "is_array": false,
- "description": "argument description",
- "default": "INF"
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.md
deleted file mode 100644
index 4f4d9b16..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.md
+++ /dev/null
@@ -1,7 +0,0 @@
-#### `argument_name`
-
-argument description
-
-* Is required: no
-* Is array: no
-* Default: `INF`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.txt
deleted file mode 100644
index c32d768c..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>argument_name</info> argument description<comment> [default: INF]</comment>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.xml
deleted file mode 100644
index d4572600..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_default_inf_value.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<argument name="argument_name" is_required="0" is_array="0">
- <description>argument description</description>
- <defaults>
- <default>INF</default>
- </defaults>
-</argument>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.json
deleted file mode 100644
index 93342351..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "argument_name",
- "is_required": false,
- "is_array": false,
- "description": "argument description",
- "default": "<comment>style</>"
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.md
deleted file mode 100644
index a2be9672..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.md
+++ /dev/null
@@ -1,7 +0,0 @@
-#### `argument_name`
-
-argument description
-
-* Is required: no
-* Is array: no
-* Default: `'style'`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.txt
deleted file mode 100644
index 35384a6b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>argument_name</info> argument description<comment> [default: "\<comment>style\</>"]</comment>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.xml
deleted file mode 100644
index 73332c79..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_argument_with_style.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<argument name="argument_name" is_required="0" is_array="0">
- <description>argument description</description>
- <defaults>
- <default>&lt;comment&gt;style&lt;/&gt;</default>
- </defaults>
-</argument>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.json
deleted file mode 100644
index 44aa2c2e..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "arguments": [],
- "options": []
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.md
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.md
+++ /dev/null
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.txt
deleted file mode 100644
index e69de29b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.txt
+++ /dev/null
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.xml
deleted file mode 100644
index b5481ce1..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_1.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definition>
- <arguments/>
- <options/>
-</definition>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.json
deleted file mode 100644
index 7cfd57e5..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "arguments": {
- "argument_name": {
- "name": "argument_name",
- "is_required": true,
- "is_array": false,
- "description": "",
- "default": null
- }
- },
- "options": []
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.md
deleted file mode 100644
index ffc2bbbe..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.md
+++ /dev/null
@@ -1,7 +0,0 @@
-### Arguments
-
-#### `argument_name`
-
-* Is required: yes
-* Is array: no
-* Default: `NULL`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.txt
deleted file mode 100644
index 73b0f308..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-<comment>Arguments:</comment>
- <info>argument_name</info>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.xml
deleted file mode 100644
index 102efc14..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_2.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definition>
- <arguments>
- <argument name="argument_name" is_required="1" is_array="0">
- <description></description>
- <defaults/>
- </argument>
- </arguments>
- <options/>
-</definition>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.json
deleted file mode 100644
index 3b3cf73c..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "arguments": [],
- "options": {
- "option_name": {
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "",
- "default": false
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.md
deleted file mode 100644
index 11f7cd6b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.md
+++ /dev/null
@@ -1,8 +0,0 @@
-### Options
-
-#### `--option_name|-o`
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.txt
deleted file mode 100644
index c02766fd..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-<comment>Options:</comment>
- <info>-o, --option_name</info>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.xml
deleted file mode 100644
index bc951515..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_3.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definition>
- <arguments/>
- <options>
- <option name="--option_name" shortcut="-o" accept_value="0" is_value_required="0" is_multiple="0">
- <description></description>
- </option>
- </options>
-</definition>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.json
deleted file mode 100644
index d4a51e82..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "arguments": {
- "argument_name": {
- "name": "argument_name",
- "is_required": true,
- "is_array": false,
- "description": "",
- "default": null
- }
- },
- "options": {
- "option_name": {
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "",
- "default": false
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.md
deleted file mode 100644
index c4f947f5..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.md
+++ /dev/null
@@ -1,16 +0,0 @@
-### Arguments
-
-#### `argument_name`
-
-* Is required: yes
-* Is array: no
-* Default: `NULL`
-
-### Options
-
-#### `--option_name|-o`
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.txt
deleted file mode 100644
index 63aa81d2..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-<comment>Arguments:</comment>
- <info>argument_name</info>
-
-<comment>Options:</comment>
- <info>-o, --option_name</info>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.xml
deleted file mode 100644
index cffceece..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_definition_4.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definition>
- <arguments>
- <argument name="argument_name" is_required="1" is_array="0">
- <description></description>
- <defaults/>
- </argument>
- </arguments>
- <options>
- <option name="--option_name" shortcut="-o" accept_value="0" is_value_required="0" is_multiple="0">
- <description></description>
- </option>
- </options>
-</definition>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.json
deleted file mode 100644
index f86bf967..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": false,
- "is_value_required": false,
- "is_multiple": false,
- "description": "",
- "default": false
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.md
deleted file mode 100644
index c544a4e6..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.md
+++ /dev/null
@@ -1,6 +0,0 @@
-#### `--option_name|-o`
-
-* Accept value: no
-* Is value required: no
-* Is multiple: no
-* Default: `false`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.txt
deleted file mode 100644
index 3a5e4eed..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>-o, --option_name</info>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.xml
deleted file mode 100644
index 8a64ea65..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_1.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<option name="--option_name" shortcut="-o" accept_value="0" is_value_required="0" is_multiple="0">
- <description></description>
-</option>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.json
deleted file mode 100644
index 32dbab21..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": true,
- "is_value_required": false,
- "is_multiple": false,
- "description": "option description",
- "default": "default_value"
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.md
deleted file mode 100644
index 293e6179..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.md
+++ /dev/null
@@ -1,8 +0,0 @@
-#### `--option_name|-o`
-
-option description
-
-* Accept value: yes
-* Is value required: no
-* Is multiple: no
-* Default: `'default_value'`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.txt
deleted file mode 100644
index 1009eff1..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>-o, --option_name[=OPTION_NAME]</info> option description<comment> [default: "default_value"]</comment>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.xml
deleted file mode 100644
index 4afac5b0..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_2.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<option name="--option_name" shortcut="-o" accept_value="1" is_value_required="0" is_multiple="0">
- <description>option description</description>
- <defaults>
- <default>default_value</default>
- </defaults>
-</option>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.json
deleted file mode 100644
index 6d55a6ef..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": false,
- "description": "option description",
- "default": null
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.md
deleted file mode 100644
index 7e89d697..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.md
+++ /dev/null
@@ -1,8 +0,0 @@
-#### `--option_name|-o`
-
-option description
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: no
-* Default: `NULL`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.txt
deleted file mode 100644
index 947bb652..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>-o, --option_name=OPTION_NAME</info> option description
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.xml
deleted file mode 100644
index dcc0631c..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_3.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<option name="--option_name" shortcut="-o" accept_value="1" is_value_required="1" is_multiple="0">
- <description>option description</description>
- <defaults/>
-</option>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.json
deleted file mode 100644
index 788a8ed4..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": true,
- "is_value_required": false,
- "is_multiple": true,
- "description": "option description",
- "default": []
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.md
deleted file mode 100644
index 7eb2d2ae..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.md
+++ /dev/null
@@ -1,8 +0,0 @@
-#### `--option_name|-o`
-
-option description
-
-* Accept value: yes
-* Is value required: no
-* Is multiple: yes
-* Default: `array ()`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.txt
deleted file mode 100644
index 27edf77b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>-o, --option_name[=OPTION_NAME]</info> option description<comment> (multiple values allowed)</comment>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.xml
deleted file mode 100644
index 5e2418b1..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_4.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<option name="--option_name" shortcut="-o" accept_value="1" is_value_required="0" is_multiple="1">
- <description>option description</description>
- <defaults/>
-</option>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.json
deleted file mode 100644
index 9f34d832..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": false,
- "description": "multiline option description",
- "default": null
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.md
deleted file mode 100644
index 72ca4391..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.md
+++ /dev/null
@@ -1,9 +0,0 @@
-#### `--option_name|-o`
-
-multiline
-option description
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: no
-* Default: `NULL`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.txt
deleted file mode 100644
index 9563b4ca..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.txt
+++ /dev/null
@@ -1,2 +0,0 @@
- <info>-o, --option_name=OPTION_NAME</info> multiline
- option description
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.xml
deleted file mode 100644
index 90040ccd..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_5.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<option name="--option_name" shortcut="-o" accept_value="1" is_value_required="1" is_multiple="0">
- <description>multiline
-option description</description>
- <defaults/>
-</option>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.json
deleted file mode 100644
index 0638de03..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "--option_name",
- "shortcut": "-o|-O",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": false,
- "description": "option with multiple shortcuts",
- "default": null
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.md
deleted file mode 100644
index 87acd8b9..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.md
+++ /dev/null
@@ -1,8 +0,0 @@
-#### `--option_name|-o|-O`
-
-option with multiple shortcuts
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: no
-* Default: `NULL`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.txt
deleted file mode 100644
index 0e6c9759..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>-o|O, --option_name=OPTION_NAME</info> option with multiple shortcuts
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.xml
deleted file mode 100644
index 06126a2f..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_6.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<option name="--option_name" shortcut="-o" shortcuts="-o|-O" accept_value="1" is_value_required="1" is_multiple="0">
- <description>option with multiple shortcuts</description>
- <defaults/>
-</option>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.json
deleted file mode 100644
index 7c96ad30..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": true,
- "is_value_required": false,
- "is_multiple": false,
- "description": "option description",
- "default": "INF"
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.md
deleted file mode 100644
index c27e30a0..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.md
+++ /dev/null
@@ -1,8 +0,0 @@
-#### `--option_name|-o`
-
-option description
-
-* Accept value: yes
-* Is value required: no
-* Is multiple: no
-* Default: `INF`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.txt
deleted file mode 100644
index d467dcf4..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>-o, --option_name[=OPTION_NAME]</info> option description<comment> [default: INF]</comment>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.xml
deleted file mode 100644
index 5d1d2175..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_default_inf_value.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<option name="--option_name" shortcut="-o" accept_value="1" is_value_required="0" is_multiple="0">
- <description>option description</description>
- <defaults>
- <default>INF</default>
- </defaults>
-</option>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.json
deleted file mode 100644
index df328bf8..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": false,
- "description": "option description",
- "default": "<comment>style</>"
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.md
deleted file mode 100644
index e07a5643..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.md
+++ /dev/null
@@ -1,8 +0,0 @@
-#### `--option_name|-o`
-
-option description
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: no
-* Default: `'style'`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.txt
deleted file mode 100644
index 880a5351..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>-o, --option_name=OPTION_NAME</info> option description<comment> [default: "\<comment>style\</>"]</comment>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.xml
deleted file mode 100644
index 764b9e65..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<option name="--option_name" shortcut="-o" accept_value="1" is_value_required="1" is_multiple="0">
- <description>option description</description>
- <defaults>
- <default>&lt;comment&gt;style&lt;/&gt;</default>
- </defaults>
-</option>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.json b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.json
deleted file mode 100644
index b1754550..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "name": "--option_name",
- "shortcut": "-o",
- "accept_value": true,
- "is_value_required": true,
- "is_multiple": true,
- "description": "option description",
- "default": [
- "<comment>Hello</comment>",
- "<info>world</info>"
- ]
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.md b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.md
deleted file mode 100644
index 16a045bc..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.md
+++ /dev/null
@@ -1,8 +0,0 @@
-#### `--option_name|-o`
-
-option description
-
-* Accept value: yes
-* Is value required: yes
-* Is multiple: yes
-* Default: `array ( 0 => 'Hello', 1 => 'world',)`
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.txt b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.txt
deleted file mode 100644
index 265c18c5..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.txt
+++ /dev/null
@@ -1 +0,0 @@
- <info>-o, --option_name=OPTION_NAME</info> option description<comment> [default: ["\<comment>Hello\</comment>","\<info>world\</info>"]]</comment><comment> (multiple values allowed)</comment>
diff --git a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.xml b/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.xml
deleted file mode 100644
index 09dc8658..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Fixtures/input_option_with_style_array.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<option name="--option_name" shortcut="-o" accept_value="1" is_value_required="1" is_multiple="1">
- <description>option description</description>
- <defaults>
- <default>&lt;comment&gt;Hello&lt;/comment&gt;</default>
- <default>&lt;info&gt;world&lt;/info&gt;</default>
- </defaults>
-</option>
diff --git a/www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleStackTest.php b/www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleStackTest.php
deleted file mode 100644
index e212bf25..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleStackTest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Formatter;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-use Symfony\Component\Console\Formatter\OutputFormatterStyleStack;
-
-class OutputFormatterStyleStackTest extends TestCase
-{
- public function testPush()
- {
- $stack = new OutputFormatterStyleStack();
- $stack->push($s1 = new OutputFormatterStyle('white', 'black'));
- $stack->push($s2 = new OutputFormatterStyle('yellow', 'blue'));
-
- $this->assertEquals($s2, $stack->getCurrent());
-
- $stack->push($s3 = new OutputFormatterStyle('green', 'red'));
-
- $this->assertEquals($s3, $stack->getCurrent());
- }
-
- public function testPop()
- {
- $stack = new OutputFormatterStyleStack();
- $stack->push($s1 = new OutputFormatterStyle('white', 'black'));
- $stack->push($s2 = new OutputFormatterStyle('yellow', 'blue'));
-
- $this->assertEquals($s2, $stack->pop());
- $this->assertEquals($s1, $stack->pop());
- }
-
- public function testPopEmpty()
- {
- $stack = new OutputFormatterStyleStack();
- $style = new OutputFormatterStyle();
-
- $this->assertEquals($style, $stack->pop());
- }
-
- public function testPopNotLast()
- {
- $stack = new OutputFormatterStyleStack();
- $stack->push($s1 = new OutputFormatterStyle('white', 'black'));
- $stack->push($s2 = new OutputFormatterStyle('yellow', 'blue'));
- $stack->push($s3 = new OutputFormatterStyle('green', 'red'));
-
- $this->assertEquals($s2, $stack->pop($s2));
- $this->assertEquals($s1, $stack->pop());
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testInvalidPop()
- {
- $stack = new OutputFormatterStyleStack();
- $stack->push(new OutputFormatterStyle('white', 'black'));
- $stack->pop(new OutputFormatterStyle('yellow', 'blue'));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleTest.php b/www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleTest.php
deleted file mode 100644
index d47760fe..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleTest.php
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Formatter;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-
-class OutputFormatterStyleTest extends TestCase
-{
- public function testConstructor()
- {
- $style = new OutputFormatterStyle('green', 'black', ['bold', 'underscore']);
- $this->assertEquals("\033[32;40;1;4mfoo\033[39;49;22;24m", $style->apply('foo'));
-
- $style = new OutputFormatterStyle('red', null, ['blink']);
- $this->assertEquals("\033[31;5mfoo\033[39;25m", $style->apply('foo'));
-
- $style = new OutputFormatterStyle(null, 'white');
- $this->assertEquals("\033[47mfoo\033[49m", $style->apply('foo'));
- }
-
- public function testForeground()
- {
- $style = new OutputFormatterStyle();
-
- $style->setForeground('black');
- $this->assertEquals("\033[30mfoo\033[39m", $style->apply('foo'));
-
- $style->setForeground('blue');
- $this->assertEquals("\033[34mfoo\033[39m", $style->apply('foo'));
-
- $style->setForeground('default');
- $this->assertEquals("\033[39mfoo\033[39m", $style->apply('foo'));
-
- $this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('InvalidArgumentException');
- $style->setForeground('undefined-color');
- }
-
- public function testBackground()
- {
- $style = new OutputFormatterStyle();
-
- $style->setBackground('black');
- $this->assertEquals("\033[40mfoo\033[49m", $style->apply('foo'));
-
- $style->setBackground('yellow');
- $this->assertEquals("\033[43mfoo\033[49m", $style->apply('foo'));
-
- $style->setBackground('default');
- $this->assertEquals("\033[49mfoo\033[49m", $style->apply('foo'));
-
- $this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('InvalidArgumentException');
- $style->setBackground('undefined-color');
- }
-
- public function testOptions()
- {
- $style = new OutputFormatterStyle();
-
- $style->setOptions(['reverse', 'conceal']);
- $this->assertEquals("\033[7;8mfoo\033[27;28m", $style->apply('foo'));
-
- $style->setOption('bold');
- $this->assertEquals("\033[7;8;1mfoo\033[27;28;22m", $style->apply('foo'));
-
- $style->unsetOption('reverse');
- $this->assertEquals("\033[8;1mfoo\033[28;22m", $style->apply('foo'));
-
- $style->setOption('bold');
- $this->assertEquals("\033[8;1mfoo\033[28;22m", $style->apply('foo'));
-
- $style->setOptions(['bold']);
- $this->assertEquals("\033[1mfoo\033[22m", $style->apply('foo'));
-
- try {
- $style->setOption('foo');
- $this->fail('->setOption() throws an \InvalidArgumentException when the option does not exist in the available options');
- } catch (\Exception $e) {
- $this->assertInstanceOf('\InvalidArgumentException', $e, '->setOption() throws an \InvalidArgumentException when the option does not exist in the available options');
- $this->assertContains('Invalid option specified: "foo"', $e->getMessage(), '->setOption() throws an \InvalidArgumentException when the option does not exist in the available options');
- }
-
- try {
- $style->unsetOption('foo');
- $this->fail('->unsetOption() throws an \InvalidArgumentException when the option does not exist in the available options');
- } catch (\Exception $e) {
- $this->assertInstanceOf('\InvalidArgumentException', $e, '->unsetOption() throws an \InvalidArgumentException when the option does not exist in the available options');
- $this->assertContains('Invalid option specified: "foo"', $e->getMessage(), '->unsetOption() throws an \InvalidArgumentException when the option does not exist in the available options');
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php b/www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php
deleted file mode 100644
index c5c2daed..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Formatter/OutputFormatterTest.php
+++ /dev/null
@@ -1,344 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Formatter;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-
-class OutputFormatterTest extends TestCase
-{
- public function testEmptyTag()
- {
- $formatter = new OutputFormatter(true);
- $this->assertEquals('foo<>bar', $formatter->format('foo<>bar'));
- }
-
- public function testLGCharEscaping()
- {
- $formatter = new OutputFormatter(true);
-
- $this->assertEquals('foo<bar', $formatter->format('foo\\<bar'));
- $this->assertEquals('foo << bar', $formatter->format('foo << bar'));
- $this->assertEquals('foo << bar \\', $formatter->format('foo << bar \\'));
- $this->assertEquals("foo << \033[32mbar \\ baz\033[39m \\", $formatter->format('foo << <info>bar \\ baz</info> \\'));
- $this->assertEquals('<info>some info</info>', $formatter->format('\\<info>some info\\</info>'));
- $this->assertEquals('\\<info>some info\\</info>', OutputFormatter::escape('<info>some info</info>'));
-
- $this->assertEquals(
- "\033[33mSymfony\\Component\\Console does work very well!\033[39m",
- $formatter->format('<comment>Symfony\Component\Console does work very well!</comment>')
- );
- }
-
- public function testBundledStyles()
- {
- $formatter = new OutputFormatter(true);
-
- $this->assertTrue($formatter->hasStyle('error'));
- $this->assertTrue($formatter->hasStyle('info'));
- $this->assertTrue($formatter->hasStyle('comment'));
- $this->assertTrue($formatter->hasStyle('question'));
-
- $this->assertEquals(
- "\033[37;41msome error\033[39;49m",
- $formatter->format('<error>some error</error>')
- );
- $this->assertEquals(
- "\033[32msome info\033[39m",
- $formatter->format('<info>some info</info>')
- );
- $this->assertEquals(
- "\033[33msome comment\033[39m",
- $formatter->format('<comment>some comment</comment>')
- );
- $this->assertEquals(
- "\033[30;46msome question\033[39;49m",
- $formatter->format('<question>some question</question>')
- );
- }
-
- public function testNestedStyles()
- {
- $formatter = new OutputFormatter(true);
-
- $this->assertEquals(
- "\033[37;41msome \033[39;49m\033[32msome info\033[39m\033[37;41m error\033[39;49m",
- $formatter->format('<error>some <info>some info</info> error</error>')
- );
- }
-
- public function testAdjacentStyles()
- {
- $formatter = new OutputFormatter(true);
-
- $this->assertEquals(
- "\033[37;41msome error\033[39;49m\033[32msome info\033[39m",
- $formatter->format('<error>some error</error><info>some info</info>')
- );
- }
-
- public function testStyleMatchingNotGreedy()
- {
- $formatter = new OutputFormatter(true);
-
- $this->assertEquals(
- "(\033[32m>=2.0,<2.3\033[39m)",
- $formatter->format('(<info>>=2.0,<2.3</info>)')
- );
- }
-
- public function testStyleEscaping()
- {
- $formatter = new OutputFormatter(true);
-
- $this->assertEquals(
- "(\033[32mz>=2.0,<<<a2.3\\\033[39m)",
- $formatter->format('(<info>'.$formatter->escape('z>=2.0,<\\<<a2.3\\').'</info>)')
- );
-
- $this->assertEquals(
- "\033[32m<error>some error</error>\033[39m",
- $formatter->format('<info>'.$formatter->escape('<error>some error</error>').'</info>')
- );
- }
-
- public function testDeepNestedStyles()
- {
- $formatter = new OutputFormatter(true);
-
- $this->assertEquals(
- "\033[37;41merror\033[39;49m\033[32minfo\033[39m\033[33mcomment\033[39m\033[37;41merror\033[39;49m",
- $formatter->format('<error>error<info>info<comment>comment</info>error</error>')
- );
- }
-
- public function testNewStyle()
- {
- $formatter = new OutputFormatter(true);
-
- $style = new OutputFormatterStyle('blue', 'white');
- $formatter->setStyle('test', $style);
-
- $this->assertEquals($style, $formatter->getStyle('test'));
- $this->assertNotEquals($style, $formatter->getStyle('info'));
-
- $style = new OutputFormatterStyle('blue', 'white');
- $formatter->setStyle('b', $style);
-
- $this->assertEquals("\033[34;47msome \033[39;49m\033[34;47mcustom\033[39;49m\033[34;47m msg\033[39;49m", $formatter->format('<test>some <b>custom</b> msg</test>'));
- }
-
- public function testRedefineStyle()
- {
- $formatter = new OutputFormatter(true);
-
- $style = new OutputFormatterStyle('blue', 'white');
- $formatter->setStyle('info', $style);
-
- $this->assertEquals("\033[34;47msome custom msg\033[39;49m", $formatter->format('<info>some custom msg</info>'));
- }
-
- public function testInlineStyle()
- {
- $formatter = new OutputFormatter(true);
-
- $this->assertEquals("\033[34;41msome text\033[39;49m", $formatter->format('<fg=blue;bg=red>some text</>'));
- $this->assertEquals("\033[34;41msome text\033[39;49m", $formatter->format('<fg=blue;bg=red>some text</fg=blue;bg=red>'));
- }
-
- /**
- * @param string $tag
- * @param string|null $expected
- * @param string|null $input
- *
- * @dataProvider provideInlineStyleOptionsCases
- */
- public function testInlineStyleOptions($tag, $expected = null, $input = null)
- {
- $styleString = substr($tag, 1, -1);
- $formatter = new OutputFormatter(true);
- $method = new \ReflectionMethod($formatter, 'createStyleFromString');
- $method->setAccessible(true);
- $result = $method->invoke($formatter, $styleString);
- if (null === $expected) {
- $this->assertFalse($result);
- $expected = $tag.$input.'</'.$styleString.'>';
- $this->assertSame($expected, $formatter->format($expected));
- } else {
- /* @var OutputFormatterStyle $result */
- $this->assertInstanceOf(OutputFormatterStyle::class, $result);
- $this->assertSame($expected, $formatter->format($tag.$input.'</>'));
- $this->assertSame($expected, $formatter->format($tag.$input.'</'.$styleString.'>'));
- }
- }
-
- public function provideInlineStyleOptionsCases()
- {
- return [
- ['<unknown=_unknown_>'],
- ['<unknown=_unknown_;a=1;b>'],
- ['<fg=green;>', "\033[32m[test]\033[39m", '[test]'],
- ['<fg=green;bg=blue;>', "\033[32;44ma\033[39;49m", 'a'],
- ['<fg=green;options=bold>', "\033[32;1mb\033[39;22m", 'b'],
- ['<fg=green;options=reverse;>', "\033[32;7m<a>\033[39;27m", '<a>'],
- ['<fg=green;options=bold,underscore>', "\033[32;1;4mz\033[39;22;24m", 'z'],
- ['<fg=green;options=bold,underscore,reverse;>', "\033[32;1;4;7md\033[39;22;24;27m", 'd'],
- ];
- }
-
- /**
- * @group legacy
- * @dataProvider provideInlineStyleTagsWithUnknownOptions
- * @expectedDeprecation Unknown style options are deprecated since Symfony 3.2 and will be removed in 4.0. Exception "Invalid option specified: "%s". Expected one of (bold, underscore, blink, reverse, conceal)".
- */
- public function testInlineStyleOptionsUnknownAreDeprecated($tag, $option)
- {
- $formatter = new OutputFormatter(true);
- $formatter->format($tag);
- }
-
- public function provideInlineStyleTagsWithUnknownOptions()
- {
- return [
- ['<options=abc;>', 'abc'],
- ['<options=abc,def;>', 'abc'],
- ['<fg=green;options=xyz;>', 'xyz'],
- ['<fg=green;options=efg,abc>', 'efg'],
- ];
- }
-
- public function testNonStyleTag()
- {
- $formatter = new OutputFormatter(true);
-
- $this->assertEquals("\033[32msome \033[39m\033[32m<tag>\033[39m\033[32m \033[39m\033[32m<setting=value>\033[39m\033[32m styled \033[39m\033[32m<p>\033[39m\033[32msingle-char tag\033[39m\033[32m</p>\033[39m", $formatter->format('<info>some <tag> <setting=value> styled <p>single-char tag</p></info>'));
- }
-
- public function testFormatLongString()
- {
- $formatter = new OutputFormatter(true);
- $long = str_repeat('\\', 14000);
- $this->assertEquals("\033[37;41msome error\033[39;49m".$long, $formatter->format('<error>some error</error>'.$long));
- }
-
- public function testFormatToStringObject()
- {
- $formatter = new OutputFormatter(false);
- $this->assertEquals(
- 'some info', $formatter->format(new TableCell())
- );
- }
-
- public function testNotDecoratedFormatter()
- {
- $formatter = new OutputFormatter(false);
-
- $this->assertTrue($formatter->hasStyle('error'));
- $this->assertTrue($formatter->hasStyle('info'));
- $this->assertTrue($formatter->hasStyle('comment'));
- $this->assertTrue($formatter->hasStyle('question'));
-
- $this->assertEquals(
- 'some error', $formatter->format('<error>some error</error>')
- );
- $this->assertEquals(
- 'some info', $formatter->format('<info>some info</info>')
- );
- $this->assertEquals(
- 'some comment', $formatter->format('<comment>some comment</comment>')
- );
- $this->assertEquals(
- 'some question', $formatter->format('<question>some question</question>')
- );
- $this->assertEquals(
- 'some text with inline style', $formatter->format('<fg=red>some text with inline style</>')
- );
-
- $formatter->setDecorated(true);
-
- $this->assertEquals(
- "\033[37;41msome error\033[39;49m", $formatter->format('<error>some error</error>')
- );
- $this->assertEquals(
- "\033[32msome info\033[39m", $formatter->format('<info>some info</info>')
- );
- $this->assertEquals(
- "\033[33msome comment\033[39m", $formatter->format('<comment>some comment</comment>')
- );
- $this->assertEquals(
- "\033[30;46msome question\033[39;49m", $formatter->format('<question>some question</question>')
- );
- $this->assertEquals(
- "\033[31msome text with inline style\033[39m", $formatter->format('<fg=red>some text with inline style</>')
- );
- }
-
- public function testContentWithLineBreaks()
- {
- $formatter = new OutputFormatter(true);
-
- $this->assertEquals(<<<EOF
-\033[32m
-some text\033[39m
-EOF
- , $formatter->format(<<<'EOF'
-<info>
-some text</info>
-EOF
- ));
-
- $this->assertEquals(<<<EOF
-\033[32msome text
-\033[39m
-EOF
- , $formatter->format(<<<'EOF'
-<info>some text
-</info>
-EOF
- ));
-
- $this->assertEquals(<<<EOF
-\033[32m
-some text
-\033[39m
-EOF
- , $formatter->format(<<<'EOF'
-<info>
-some text
-</info>
-EOF
- ));
-
- $this->assertEquals(<<<EOF
-\033[32m
-some text
-more text
-\033[39m
-EOF
- , $formatter->format(<<<'EOF'
-<info>
-some text
-more text
-</info>
-EOF
- ));
- }
-}
-
-class TableCell
-{
- public function __toString()
- {
- return '<info>some info</info>';
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/AbstractQuestionHelperTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/AbstractQuestionHelperTest.php
deleted file mode 100644
index 56dd65f6..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/AbstractQuestionHelperTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Input\StreamableInputInterface;
-
-abstract class AbstractQuestionHelperTest extends TestCase
-{
- protected function createStreamableInputInterfaceMock($stream = null, $interactive = true)
- {
- $mock = $this->getMockBuilder(StreamableInputInterface::class)->getMock();
- $mock->expects($this->any())
- ->method('isInteractive')
- ->will($this->returnValue($interactive));
-
- if ($stream) {
- $mock->expects($this->any())
- ->method('getStream')
- ->willReturn($stream);
- }
-
- return $mock;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/FormatterHelperTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/FormatterHelperTest.php
deleted file mode 100644
index 934e11ac..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/FormatterHelperTest.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Helper\FormatterHelper;
-
-class FormatterHelperTest extends TestCase
-{
- public function testFormatSection()
- {
- $formatter = new FormatterHelper();
-
- $this->assertEquals(
- '<info>[cli]</info> Some text to display',
- $formatter->formatSection('cli', 'Some text to display'),
- '::formatSection() formats a message in a section'
- );
- }
-
- public function testFormatBlock()
- {
- $formatter = new FormatterHelper();
-
- $this->assertEquals(
- '<error> Some text to display </error>',
- $formatter->formatBlock('Some text to display', 'error'),
- '::formatBlock() formats a message in a block'
- );
-
- $this->assertEquals(
- '<error> Some text to display </error>'."\n".
- '<error> foo bar </error>',
- $formatter->formatBlock(['Some text to display', 'foo bar'], 'error'),
- '::formatBlock() formats a message in a block'
- );
-
- $this->assertEquals(
- '<error> </error>'."\n".
- '<error> Some text to display </error>'."\n".
- '<error> </error>',
- $formatter->formatBlock('Some text to display', 'error', true),
- '::formatBlock() formats a message in a block'
- );
- }
-
- public function testFormatBlockWithDiacriticLetters()
- {
- $formatter = new FormatterHelper();
-
- $this->assertEquals(
- '<error> </error>'."\n".
- '<error> Du texte à afficher </error>'."\n".
- '<error> </error>',
- $formatter->formatBlock('Du texte à afficher', 'error', true),
- '::formatBlock() formats a message in a block'
- );
- }
-
- public function testFormatBlockWithDoubleWidthDiacriticLetters()
- {
- $formatter = new FormatterHelper();
- $this->assertEquals(
- '<error> </error>'."\n".
- '<error> 表示するテキスト </error>'."\n".
- '<error> </error>',
- $formatter->formatBlock('表示するテキスト', 'error', true),
- '::formatBlock() formats a message in a block'
- );
- }
-
- public function testFormatBlockLGEscaping()
- {
- $formatter = new FormatterHelper();
-
- $this->assertEquals(
- '<error> </error>'."\n".
- '<error> \<info>some info\</info> </error>'."\n".
- '<error> </error>',
- $formatter->formatBlock('<info>some info</info>', 'error', true),
- '::formatBlock() escapes \'<\' chars'
- );
- }
-
- public function testTruncatingWithShorterLengthThanMessageWithSuffix()
- {
- $formatter = new FormatterHelper();
- $message = 'testing truncate';
-
- $this->assertSame('test...', $formatter->truncate($message, 4));
- $this->assertSame('testing truncat...', $formatter->truncate($message, 15));
- $this->assertSame('testing truncate...', $formatter->truncate($message, 16));
- $this->assertSame('zażółć gęślą...', $formatter->truncate('zażółć gęślą jaźń', 12));
- }
-
- public function testTruncatingMessageWithCustomSuffix()
- {
- $formatter = new FormatterHelper();
- $message = 'testing truncate';
-
- $this->assertSame('test!', $formatter->truncate($message, 4, '!'));
- }
-
- public function testTruncatingWithLongerLengthThanMessageWithSuffix()
- {
- $formatter = new FormatterHelper();
- $message = 'test';
-
- $this->assertSame($message, $formatter->truncate($message, 10));
- }
-
- public function testTruncatingWithNegativeLength()
- {
- $formatter = new FormatterHelper();
- $message = 'testing truncate';
-
- $this->assertSame('testing tru...', $formatter->truncate($message, -5));
- $this->assertSame('...', $formatter->truncate($message, -100));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/HelperSetTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/HelperSetTest.php
deleted file mode 100644
index 826bc51d..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/HelperSetTest.php
+++ /dev/null
@@ -1,127 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\HelperSet;
-
-class HelperSetTest extends TestCase
-{
- public function testConstructor()
- {
- $mock_helper = $this->getGenericMockHelper('fake_helper');
- $helperset = new HelperSet(['fake_helper_alias' => $mock_helper]);
-
- $this->assertEquals($mock_helper, $helperset->get('fake_helper_alias'), '__construct sets given helper to helpers');
- $this->assertTrue($helperset->has('fake_helper_alias'), '__construct sets helper alias for given helper');
- }
-
- public function testSet()
- {
- $helperset = new HelperSet();
- $helperset->set($this->getGenericMockHelper('fake_helper', $helperset));
- $this->assertTrue($helperset->has('fake_helper'), '->set() adds helper to helpers');
-
- $helperset = new HelperSet();
- $helperset->set($this->getGenericMockHelper('fake_helper_01', $helperset));
- $helperset->set($this->getGenericMockHelper('fake_helper_02', $helperset));
- $this->assertTrue($helperset->has('fake_helper_01'), '->set() will set multiple helpers on consecutive calls');
- $this->assertTrue($helperset->has('fake_helper_02'), '->set() will set multiple helpers on consecutive calls');
-
- $helperset = new HelperSet();
- $helperset->set($this->getGenericMockHelper('fake_helper', $helperset), 'fake_helper_alias');
- $this->assertTrue($helperset->has('fake_helper'), '->set() adds helper alias when set');
- $this->assertTrue($helperset->has('fake_helper_alias'), '->set() adds helper alias when set');
- }
-
- public function testHas()
- {
- $helperset = new HelperSet(['fake_helper_alias' => $this->getGenericMockHelper('fake_helper')]);
- $this->assertTrue($helperset->has('fake_helper'), '->has() finds set helper');
- $this->assertTrue($helperset->has('fake_helper_alias'), '->has() finds set helper by alias');
- }
-
- public function testGet()
- {
- $helper_01 = $this->getGenericMockHelper('fake_helper_01');
- $helper_02 = $this->getGenericMockHelper('fake_helper_02');
- $helperset = new HelperSet(['fake_helper_01_alias' => $helper_01, 'fake_helper_02_alias' => $helper_02]);
- $this->assertEquals($helper_01, $helperset->get('fake_helper_01'), '->get() returns correct helper by name');
- $this->assertEquals($helper_01, $helperset->get('fake_helper_01_alias'), '->get() returns correct helper by alias');
- $this->assertEquals($helper_02, $helperset->get('fake_helper_02'), '->get() returns correct helper by name');
- $this->assertEquals($helper_02, $helperset->get('fake_helper_02_alias'), '->get() returns correct helper by alias');
-
- $helperset = new HelperSet();
- try {
- $helperset->get('foo');
- $this->fail('->get() throws InvalidArgumentException when helper not found');
- } catch (\Exception $e) {
- $this->assertInstanceOf('\InvalidArgumentException', $e, '->get() throws InvalidArgumentException when helper not found');
- $this->assertInstanceOf('Symfony\Component\Console\Exception\ExceptionInterface', $e, '->get() throws domain specific exception when helper not found');
- $this->assertContains('The helper "foo" is not defined.', $e->getMessage(), '->get() throws InvalidArgumentException when helper not found');
- }
- }
-
- public function testSetCommand()
- {
- $cmd_01 = new Command('foo');
- $cmd_02 = new Command('bar');
-
- $helperset = new HelperSet();
- $helperset->setCommand($cmd_01);
- $this->assertEquals($cmd_01, $helperset->getCommand(), '->setCommand() stores given command');
-
- $helperset = new HelperSet();
- $helperset->setCommand($cmd_01);
- $helperset->setCommand($cmd_02);
- $this->assertEquals($cmd_02, $helperset->getCommand(), '->setCommand() overwrites stored command with consecutive calls');
- }
-
- public function testGetCommand()
- {
- $cmd = new Command('foo');
- $helperset = new HelperSet();
- $helperset->setCommand($cmd);
- $this->assertEquals($cmd, $helperset->getCommand(), '->getCommand() retrieves stored command');
- }
-
- public function testIteration()
- {
- $helperset = new HelperSet();
- $helperset->set($this->getGenericMockHelper('fake_helper_01', $helperset));
- $helperset->set($this->getGenericMockHelper('fake_helper_02', $helperset));
-
- $helpers = ['fake_helper_01', 'fake_helper_02'];
- $i = 0;
-
- foreach ($helperset as $helper) {
- $this->assertEquals($helpers[$i++], $helper->getName());
- }
- }
-
- private function getGenericMockHelper($name, HelperSet $helperset = null)
- {
- $mock_helper = $this->getMockBuilder('\Symfony\Component\Console\Helper\HelperInterface')->getMock();
- $mock_helper->expects($this->any())
- ->method('getName')
- ->will($this->returnValue($name));
-
- if ($helperset) {
- $mock_helper->expects($this->any())
- ->method('setHelperSet')
- ->with($this->equalTo($helperset));
- }
-
- return $mock_helper;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/HelperTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/HelperTest.php
deleted file mode 100644
index 184d86e0..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/HelperTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Helper\Helper;
-
-class HelperTest extends TestCase
-{
- public function formatTimeProvider()
- {
- return [
- [0, '< 1 sec'],
- [1, '1 sec'],
- [2, '2 secs'],
- [59, '59 secs'],
- [60, '1 min'],
- [61, '1 min'],
- [119, '1 min'],
- [120, '2 mins'],
- [121, '2 mins'],
- [3599, '59 mins'],
- [3600, '1 hr'],
- [7199, '1 hr'],
- [7200, '2 hrs'],
- [7201, '2 hrs'],
- [86399, '23 hrs'],
- [86400, '1 day'],
- [86401, '1 day'],
- [172799, '1 day'],
- [172800, '2 days'],
- [172801, '2 days'],
- ];
- }
-
- /**
- * @dataProvider formatTimeProvider
- *
- * @param int $secs
- * @param string $expectedFormat
- */
- public function testFormatTime($secs, $expectedFormat)
- {
- $this->assertEquals($expectedFormat, Helper::formatTime($secs));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/ProcessHelperTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/ProcessHelperTest.php
deleted file mode 100644
index 044c690d..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/ProcessHelperTest.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Helper\DebugFormatterHelper;
-use Symfony\Component\Console\Helper\HelperSet;
-use Symfony\Component\Console\Helper\ProcessHelper;
-use Symfony\Component\Console\Output\StreamOutput;
-use Symfony\Component\Process\Process;
-
-class ProcessHelperTest extends TestCase
-{
- /**
- * @dataProvider provideCommandsAndOutput
- */
- public function testVariousProcessRuns($expected, $cmd, $verbosity, $error)
- {
- $helper = new ProcessHelper();
- $helper->setHelperSet(new HelperSet([new DebugFormatterHelper()]));
- $output = $this->getOutputStream($verbosity);
- $helper->run($output, $cmd, $error);
- $this->assertEquals($expected, $this->getOutput($output));
- }
-
- public function testPassedCallbackIsExecuted()
- {
- $helper = new ProcessHelper();
- $helper->setHelperSet(new HelperSet([new DebugFormatterHelper()]));
- $output = $this->getOutputStream(StreamOutput::VERBOSITY_NORMAL);
-
- $executed = false;
- $callback = function () use (&$executed) { $executed = true; };
-
- $helper->run($output, 'php -r "echo 42;"', null, $callback);
- $this->assertTrue($executed);
- }
-
- public function provideCommandsAndOutput()
- {
- $successOutputVerbose = <<<'EOT'
- RUN php -r "echo 42;"
- RES Command ran successfully
-
-EOT;
- $successOutputDebug = <<<'EOT'
- RUN php -r "echo 42;"
- OUT 42
- RES Command ran successfully
-
-EOT;
- $successOutputDebugWithTags = <<<'EOT'
- RUN php -r "echo '<info>42</info>';"
- OUT <info>42</info>
- RES Command ran successfully
-
-EOT;
- $successOutputProcessDebug = <<<'EOT'
- RUN 'php' '-r' 'echo 42;'
- OUT 42
- RES Command ran successfully
-
-EOT;
- $syntaxErrorOutputVerbose = <<<'EOT'
- RUN php -r "fwrite(STDERR, 'error message');usleep(50000);fwrite(STDOUT, 'out message');exit(252);"
- RES 252 Command did not run successfully
-
-EOT;
- $syntaxErrorOutputDebug = <<<'EOT'
- RUN php -r "fwrite(STDERR, 'error message');usleep(500000);fwrite(STDOUT, 'out message');exit(252);"
- ERR error message
- OUT out message
- RES 252 Command did not run successfully
-
-EOT;
-
- $errorMessage = 'An error occurred';
- $args = new Process(['php', '-r', 'echo 42;']);
- $args = $args->getCommandLine();
- $successOutputProcessDebug = str_replace("'php' '-r' 'echo 42;'", $args, $successOutputProcessDebug);
-
- return [
- ['', 'php -r "echo 42;"', StreamOutput::VERBOSITY_VERBOSE, null],
- [$successOutputVerbose, 'php -r "echo 42;"', StreamOutput::VERBOSITY_VERY_VERBOSE, null],
- [$successOutputDebug, 'php -r "echo 42;"', StreamOutput::VERBOSITY_DEBUG, null],
- [$successOutputDebugWithTags, 'php -r "echo \'<info>42</info>\';"', StreamOutput::VERBOSITY_DEBUG, null],
- ['', 'php -r "syntax error"', StreamOutput::VERBOSITY_VERBOSE, null],
- [$syntaxErrorOutputVerbose, 'php -r "fwrite(STDERR, \'error message\');usleep(50000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_VERY_VERBOSE, null],
- [$syntaxErrorOutputDebug, 'php -r "fwrite(STDERR, \'error message\');usleep(500000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_DEBUG, null],
- [$errorMessage.PHP_EOL, 'php -r "fwrite(STDERR, \'error message\');usleep(50000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_VERBOSE, $errorMessage],
- [$syntaxErrorOutputVerbose.$errorMessage.PHP_EOL, 'php -r "fwrite(STDERR, \'error message\');usleep(50000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_VERY_VERBOSE, $errorMessage],
- [$syntaxErrorOutputDebug.$errorMessage.PHP_EOL, 'php -r "fwrite(STDERR, \'error message\');usleep(500000);fwrite(STDOUT, \'out message\');exit(252);"', StreamOutput::VERBOSITY_DEBUG, $errorMessage],
- [$successOutputProcessDebug, ['php', '-r', 'echo 42;'], StreamOutput::VERBOSITY_DEBUG, null],
- [$successOutputDebug, new Process('php -r "echo 42;"'), StreamOutput::VERBOSITY_DEBUG, null],
- ];
- }
-
- private function getOutputStream($verbosity)
- {
- return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, false);
- }
-
- private function getOutput(StreamOutput $output)
- {
- rewind($output->getStream());
-
- return stream_get_contents($output->getStream());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/ProgressBarTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/ProgressBarTest.php
deleted file mode 100644
index e352311c..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/ProgressBarTest.php
+++ /dev/null
@@ -1,792 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Helper\Helper;
-use Symfony\Component\Console\Helper\ProgressBar;
-use Symfony\Component\Console\Output\StreamOutput;
-
-/**
- * @group time-sensitive
- */
-class ProgressBarTest extends TestCase
-{
- public function testMultipleStart()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->start();
- $bar->advance();
- $bar->start();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.
- $this->generateOutput(' 1 [->--------------------------]').
- $this->generateOutput(' 0 [>---------------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testAdvance()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->start();
- $bar->advance();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.
- $this->generateOutput(' 1 [->--------------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testAdvanceWithStep()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->start();
- $bar->advance(5);
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.
- $this->generateOutput(' 5 [----->----------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testAdvanceMultipleTimes()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->start();
- $bar->advance(3);
- $bar->advance(2);
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.
- $this->generateOutput(' 3 [--->------------------------]').
- $this->generateOutput(' 5 [----->----------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testAdvanceOverMax()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 10);
- $bar->setProgress(9);
- $bar->advance();
- $bar->advance();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 9/10 [=========================>--] 90%'.
- $this->generateOutput(' 10/10 [============================] 100%').
- $this->generateOutput(' 11/11 [============================] 100%'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testRegress()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->start();
- $bar->advance();
- $bar->advance();
- $bar->advance(-1);
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.
- $this->generateOutput(' 1 [->--------------------------]').
- $this->generateOutput(' 2 [-->-------------------------]').
- $this->generateOutput(' 1 [->--------------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testRegressWithStep()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->start();
- $bar->advance(4);
- $bar->advance(4);
- $bar->advance(-2);
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.
- $this->generateOutput(' 4 [---->-----------------------]').
- $this->generateOutput(' 8 [-------->-------------------]').
- $this->generateOutput(' 6 [------>---------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testRegressMultipleTimes()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->start();
- $bar->advance(3);
- $bar->advance(3);
- $bar->advance(-1);
- $bar->advance(-2);
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.
- $this->generateOutput(' 3 [--->------------------------]').
- $this->generateOutput(' 6 [------>---------------------]').
- $this->generateOutput(' 5 [----->----------------------]').
- $this->generateOutput(' 3 [--->------------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testRegressBelowMin()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 10);
- $bar->setProgress(1);
- $bar->advance(-1);
- $bar->advance(-1);
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 1/10 [==>-------------------------] 10%'.
- $this->generateOutput(' 0/10 [>---------------------------] 0%'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testFormat()
- {
- $expected =
- ' 0/10 [>---------------------------] 0%'.
- $this->generateOutput(' 10/10 [============================] 100%').
- $this->generateOutput(' 10/10 [============================] 100%')
- ;
-
- // max in construct, no format
- $bar = new ProgressBar($output = $this->getOutputStream(), 10);
- $bar->start();
- $bar->advance(10);
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals($expected, stream_get_contents($output->getStream()));
-
- // max in start, no format
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->start(10);
- $bar->advance(10);
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals($expected, stream_get_contents($output->getStream()));
-
- // max in construct, explicit format before
- $bar = new ProgressBar($output = $this->getOutputStream(), 10);
- $bar->setFormat('normal');
- $bar->start();
- $bar->advance(10);
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals($expected, stream_get_contents($output->getStream()));
-
- // max in start, explicit format before
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->setFormat('normal');
- $bar->start(10);
- $bar->advance(10);
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals($expected, stream_get_contents($output->getStream()));
- }
-
- public function testCustomizations()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 10);
- $bar->setBarWidth(10);
- $bar->setBarCharacter('_');
- $bar->setEmptyBarCharacter(' ');
- $bar->setProgressCharacter('/');
- $bar->setFormat(' %current%/%max% [%bar%] %percent:3s%%');
- $bar->start();
- $bar->advance();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/10 [/ ] 0%'.
- $this->generateOutput(' 1/10 [_/ ] 10%'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testDisplayWithoutStart()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 50);
- $bar->display();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/50 [>---------------------------] 0%',
- stream_get_contents($output->getStream())
- );
- }
-
- public function testDisplayWithQuietVerbosity()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(true, StreamOutput::VERBOSITY_QUIET), 50);
- $bar->display();
-
- rewind($output->getStream());
- $this->assertEquals(
- '',
- stream_get_contents($output->getStream())
- );
- }
-
- public function testFinishWithoutStart()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 50);
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 50/50 [============================] 100%',
- stream_get_contents($output->getStream())
- );
- }
-
- public function testPercent()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 50);
- $bar->start();
- $bar->display();
- $bar->advance();
- $bar->advance();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/50 [>---------------------------] 0%'.
- $this->generateOutput(' 0/50 [>---------------------------] 0%').
- $this->generateOutput(' 1/50 [>---------------------------] 2%').
- $this->generateOutput(' 2/50 [=>--------------------------] 4%'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testOverwriteWithShorterLine()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 50);
- $bar->setFormat(' %current%/%max% [%bar%] %percent:3s%%');
- $bar->start();
- $bar->display();
- $bar->advance();
-
- // set shorter format
- $bar->setFormat(' %current%/%max% [%bar%]');
- $bar->advance();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/50 [>---------------------------] 0%'.
- $this->generateOutput(' 0/50 [>---------------------------] 0%').
- $this->generateOutput(' 1/50 [>---------------------------] 2%').
- $this->generateOutput(' 2/50 [=>--------------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testStartWithMax()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->setFormat('%current%/%max% [%bar%]');
- $bar->start(50);
- $bar->advance();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/50 [>---------------------------]'.
- $this->generateOutput(' 1/50 [>---------------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testSetCurrentProgress()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 50);
- $bar->start();
- $bar->display();
- $bar->advance();
- $bar->setProgress(15);
- $bar->setProgress(25);
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/50 [>---------------------------] 0%'.
- $this->generateOutput(' 0/50 [>---------------------------] 0%').
- $this->generateOutput(' 1/50 [>---------------------------] 2%').
- $this->generateOutput(' 15/50 [========>-------------------] 30%').
- $this->generateOutput(' 25/50 [==============>-------------] 50%'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testSetCurrentBeforeStarting()
- {
- $bar = new ProgressBar($this->getOutputStream());
- $bar->setProgress(15);
- $this->assertNotNull($bar->getStartTime());
- }
-
- public function testRedrawFrequency()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 6);
- $bar->setRedrawFrequency(2);
- $bar->start();
- $bar->setProgress(1);
- $bar->advance(2);
- $bar->advance(2);
- $bar->advance(1);
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/6 [>---------------------------] 0%'.
- $this->generateOutput(' 3/6 [==============>-------------] 50%').
- $this->generateOutput(' 5/6 [=======================>----] 83%').
- $this->generateOutput(' 6/6 [============================] 100%'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testRedrawFrequencyIsAtLeastOneIfZeroGiven()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->setRedrawFrequency(0);
- $bar->start();
- $bar->advance();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.
- $this->generateOutput(' 1 [->--------------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testRedrawFrequencyIsAtLeastOneIfSmallerOneGiven()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->setRedrawFrequency(0.9);
- $bar->start();
- $bar->advance();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.
- $this->generateOutput(' 1 [->--------------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testMultiByteSupport()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->start();
- $bar->setBarCharacter('■');
- $bar->advance(3);
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.
- $this->generateOutput(' 3 [■■■>------------------------]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testClear()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 50);
- $bar->start();
- $bar->setProgress(25);
- $bar->clear();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/50 [>---------------------------] 0%'.
- $this->generateOutput(' 25/50 [==============>-------------] 50%').
- $this->generateOutput(''),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testPercentNotHundredBeforeComplete()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 200);
- $bar->start();
- $bar->display();
- $bar->advance(199);
- $bar->advance();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/200 [>---------------------------] 0%'.
- $this->generateOutput(' 0/200 [>---------------------------] 0%').
- $this->generateOutput(' 199/200 [===========================>] 99%').
- $this->generateOutput(' 200/200 [============================] 100%'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testNonDecoratedOutput()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(false), 200);
- $bar->start();
-
- for ($i = 0; $i < 200; ++$i) {
- $bar->advance();
- }
-
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/200 [>---------------------------] 0%'.PHP_EOL.
- ' 20/200 [==>-------------------------] 10%'.PHP_EOL.
- ' 40/200 [=====>----------------------] 20%'.PHP_EOL.
- ' 60/200 [========>-------------------] 30%'.PHP_EOL.
- ' 80/200 [===========>----------------] 40%'.PHP_EOL.
- ' 100/200 [==============>-------------] 50%'.PHP_EOL.
- ' 120/200 [================>-----------] 60%'.PHP_EOL.
- ' 140/200 [===================>--------] 70%'.PHP_EOL.
- ' 160/200 [======================>-----] 80%'.PHP_EOL.
- ' 180/200 [=========================>--] 90%'.PHP_EOL.
- ' 200/200 [============================] 100%',
- stream_get_contents($output->getStream())
- );
- }
-
- public function testNonDecoratedOutputWithClear()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(false), 50);
- $bar->start();
- $bar->setProgress(25);
- $bar->clear();
- $bar->setProgress(50);
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/50 [>---------------------------] 0%'.PHP_EOL.
- ' 25/50 [==============>-------------] 50%'.PHP_EOL.
- ' 50/50 [============================] 100%',
- stream_get_contents($output->getStream())
- );
- }
-
- public function testNonDecoratedOutputWithoutMax()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(false));
- $bar->start();
- $bar->advance();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]'.PHP_EOL.
- ' 1 [->--------------------------]',
- stream_get_contents($output->getStream())
- );
- }
-
- public function testParallelBars()
- {
- $output = $this->getOutputStream();
- $bar1 = new ProgressBar($output, 2);
- $bar2 = new ProgressBar($output, 3);
- $bar2->setProgressCharacter('#');
- $bar3 = new ProgressBar($output);
-
- $bar1->start();
- $output->write("\n");
- $bar2->start();
- $output->write("\n");
- $bar3->start();
-
- for ($i = 1; $i <= 3; ++$i) {
- // up two lines
- $output->write("\033[2A");
- if ($i <= 2) {
- $bar1->advance();
- }
- $output->write("\n");
- $bar2->advance();
- $output->write("\n");
- $bar3->advance();
- }
- $output->write("\033[2A");
- $output->write("\n");
- $output->write("\n");
- $bar3->finish();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/2 [>---------------------------] 0%'."\n".
- ' 0/3 [#---------------------------] 0%'."\n".
- rtrim(' 0 [>---------------------------]').
-
- "\033[2A".
- $this->generateOutput(' 1/2 [==============>-------------] 50%')."\n".
- $this->generateOutput(' 1/3 [=========#------------------] 33%')."\n".
- rtrim($this->generateOutput(' 1 [->--------------------------]')).
-
- "\033[2A".
- $this->generateOutput(' 2/2 [============================] 100%')."\n".
- $this->generateOutput(' 2/3 [==================#---------] 66%')."\n".
- rtrim($this->generateOutput(' 2 [-->-------------------------]')).
-
- "\033[2A".
- "\n".
- $this->generateOutput(' 3/3 [============================] 100%')."\n".
- rtrim($this->generateOutput(' 3 [--->------------------------]')).
-
- "\033[2A".
- "\n".
- "\n".
- rtrim($this->generateOutput(' 3 [============================]')),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testWithoutMax()
- {
- $output = $this->getOutputStream();
-
- $bar = new ProgressBar($output);
- $bar->start();
- $bar->advance();
- $bar->advance();
- $bar->advance();
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals(
- rtrim(' 0 [>---------------------------]').
- rtrim($this->generateOutput(' 1 [->--------------------------]')).
- rtrim($this->generateOutput(' 2 [-->-------------------------]')).
- rtrim($this->generateOutput(' 3 [--->------------------------]')).
- rtrim($this->generateOutput(' 3 [============================]')),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testWithSmallScreen()
- {
- $output = $this->getOutputStream();
-
- $bar = new ProgressBar($output);
- putenv('COLUMNS=12');
- $bar->start();
- $bar->advance();
- putenv('COLUMNS=120');
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---]'.
- $this->generateOutput(' 1 [->--]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testAddingPlaceholderFormatter()
- {
- ProgressBar::setPlaceholderFormatterDefinition('remaining_steps', function (ProgressBar $bar) {
- return $bar->getMaxSteps() - $bar->getProgress();
- });
- $bar = new ProgressBar($output = $this->getOutputStream(), 3);
- $bar->setFormat(' %remaining_steps% [%bar%]');
-
- $bar->start();
- $bar->advance();
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals(
- ' 3 [>---------------------------]'.
- $this->generateOutput(' 2 [=========>------------------]').
- $this->generateOutput(' 0 [============================]'),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testMultilineFormat()
- {
- $bar = new ProgressBar($output = $this->getOutputStream(), 3);
- $bar->setFormat("%bar%\nfoobar");
-
- $bar->start();
- $bar->advance();
- $bar->clear();
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals(
- ">---------------------------\nfoobar".
- $this->generateOutput("=========>------------------\nfoobar").
- "\x0D\x1B[2K\x1B[1A\x1B[2K".
- $this->generateOutput("============================\nfoobar"),
- stream_get_contents($output->getStream())
- );
- }
-
- public function testAnsiColorsAndEmojis()
- {
- putenv('COLUMNS=156');
-
- $bar = new ProgressBar($output = $this->getOutputStream(), 15);
- ProgressBar::setPlaceholderFormatterDefinition('memory', function (ProgressBar $bar) {
- static $i = 0;
- $mem = 100000 * $i;
- $colors = $i++ ? '41;37' : '44;37';
-
- return "\033[".$colors.'m '.Helper::formatMemory($mem)." \033[0m";
- });
- $bar->setFormat(" \033[44;37m %title:-37s% \033[0m\n %current%/%max% %bar% %percent:3s%%\n 🏁 %remaining:-10s% %memory:37s%");
- $bar->setBarCharacter($done = "\033[32m●\033[0m");
- $bar->setEmptyBarCharacter($empty = "\033[31m●\033[0m");
- $bar->setProgressCharacter($progress = "\033[32m➤ \033[0m");
-
- $bar->setMessage('Starting the demo... fingers crossed', 'title');
- $bar->start();
-
- rewind($output->getStream());
- $this->assertEquals(
- " \033[44;37m Starting the demo... fingers crossed \033[0m\n".
- ' 0/15 '.$progress.str_repeat($empty, 26)." 0%\n".
- " \xf0\x9f\x8f\x81 < 1 sec \033[44;37m 0 B \033[0m",
- stream_get_contents($output->getStream())
- );
- ftruncate($output->getStream(), 0);
- rewind($output->getStream());
-
- $bar->setMessage('Looks good to me...', 'title');
- $bar->advance(4);
-
- rewind($output->getStream());
- $this->assertEquals(
- $this->generateOutput(
- " \033[44;37m Looks good to me... \033[0m\n".
- ' 4/15 '.str_repeat($done, 7).$progress.str_repeat($empty, 19)." 26%\n".
- " \xf0\x9f\x8f\x81 < 1 sec \033[41;37m 97 KiB \033[0m"
- ),
- stream_get_contents($output->getStream())
- );
- ftruncate($output->getStream(), 0);
- rewind($output->getStream());
-
- $bar->setMessage('Thanks, bye', 'title');
- $bar->finish();
-
- rewind($output->getStream());
- $this->assertEquals(
- $this->generateOutput(
- " \033[44;37m Thanks, bye \033[0m\n".
- ' 15/15 '.str_repeat($done, 28)." 100%\n".
- " \xf0\x9f\x8f\x81 < 1 sec \033[41;37m 195 KiB \033[0m"
- ),
- stream_get_contents($output->getStream())
- );
- putenv('COLUMNS=120');
- }
-
- public function testSetFormat()
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->setFormat('normal');
- $bar->start();
- rewind($output->getStream());
- $this->assertEquals(
- ' 0 [>---------------------------]',
- stream_get_contents($output->getStream())
- );
-
- $bar = new ProgressBar($output = $this->getOutputStream(), 10);
- $bar->setFormat('normal');
- $bar->start();
- rewind($output->getStream());
- $this->assertEquals(
- ' 0/10 [>---------------------------] 0%',
- stream_get_contents($output->getStream())
- );
- }
-
- /**
- * @dataProvider provideFormat
- */
- public function testFormatsWithoutMax($format)
- {
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->setFormat($format);
- $bar->start();
-
- rewind($output->getStream());
- $this->assertNotEmpty(stream_get_contents($output->getStream()));
- }
-
- /**
- * Provides each defined format.
- *
- * @return array
- */
- public function provideFormat()
- {
- return [
- ['normal'],
- ['verbose'],
- ['very_verbose'],
- ['debug'],
- ];
- }
-
- protected function getOutputStream($decorated = true, $verbosity = StreamOutput::VERBOSITY_NORMAL)
- {
- return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated);
- }
-
- protected function generateOutput($expected)
- {
- $count = substr_count($expected, "\n");
-
- return "\x0D\x1B[2K".($count ? str_repeat("\x1B[1A\x1B[2K", $count) : '').$expected;
- }
-
- public function testBarWidthWithMultilineFormat()
- {
- putenv('COLUMNS=10');
-
- $bar = new ProgressBar($output = $this->getOutputStream());
- $bar->setFormat("%bar%\n0123456789");
-
- // before starting
- $bar->setBarWidth(5);
- $this->assertEquals(5, $bar->getBarWidth());
-
- // after starting
- $bar->start();
- rewind($output->getStream());
- $this->assertEquals(5, $bar->getBarWidth(), stream_get_contents($output->getStream()));
- putenv('COLUMNS=120');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/ProgressIndicatorTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/ProgressIndicatorTest.php
deleted file mode 100644
index 6c6f86f3..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/ProgressIndicatorTest.php
+++ /dev/null
@@ -1,183 +0,0 @@
-<?php
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Helper\ProgressIndicator;
-use Symfony\Component\Console\Output\StreamOutput;
-
-/**
- * @group time-sensitive
- */
-class ProgressIndicatorTest extends TestCase
-{
- public function testDefaultIndicator()
- {
- $bar = new ProgressIndicator($output = $this->getOutputStream());
- $bar->start('Starting...');
- usleep(101000);
- $bar->advance();
- usleep(101000);
- $bar->advance();
- usleep(101000);
- $bar->advance();
- usleep(101000);
- $bar->advance();
- usleep(101000);
- $bar->advance();
- usleep(101000);
- $bar->setMessage('Advancing...');
- $bar->advance();
- $bar->finish('Done...');
- $bar->start('Starting Again...');
- usleep(101000);
- $bar->advance();
- $bar->finish('Done Again...');
-
- rewind($output->getStream());
-
- $this->assertEquals(
- $this->generateOutput(' - Starting...').
- $this->generateOutput(' \\ Starting...').
- $this->generateOutput(' | Starting...').
- $this->generateOutput(' / Starting...').
- $this->generateOutput(' - Starting...').
- $this->generateOutput(' \\ Starting...').
- $this->generateOutput(' \\ Advancing...').
- $this->generateOutput(' | Advancing...').
- $this->generateOutput(' | Done...').
- PHP_EOL.
- $this->generateOutput(' - Starting Again...').
- $this->generateOutput(' \\ Starting Again...').
- $this->generateOutput(' \\ Done Again...').
- PHP_EOL,
- stream_get_contents($output->getStream())
- );
- }
-
- public function testNonDecoratedOutput()
- {
- $bar = new ProgressIndicator($output = $this->getOutputStream(false));
-
- $bar->start('Starting...');
- $bar->advance();
- $bar->advance();
- $bar->setMessage('Midway...');
- $bar->advance();
- $bar->advance();
- $bar->finish('Done...');
-
- rewind($output->getStream());
-
- $this->assertEquals(
- ' Starting...'.PHP_EOL.
- ' Midway...'.PHP_EOL.
- ' Done...'.PHP_EOL.PHP_EOL,
- stream_get_contents($output->getStream())
- );
- }
-
- public function testCustomIndicatorValues()
- {
- $bar = new ProgressIndicator($output = $this->getOutputStream(), null, 100, ['a', 'b', 'c']);
-
- $bar->start('Starting...');
- usleep(101000);
- $bar->advance();
- usleep(101000);
- $bar->advance();
- usleep(101000);
- $bar->advance();
-
- rewind($output->getStream());
-
- $this->assertEquals(
- $this->generateOutput(' a Starting...').
- $this->generateOutput(' b Starting...').
- $this->generateOutput(' c Starting...').
- $this->generateOutput(' a Starting...'),
- stream_get_contents($output->getStream())
- );
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage Must have at least 2 indicator value characters.
- */
- public function testCannotSetInvalidIndicatorCharacters()
- {
- $bar = new ProgressIndicator($this->getOutputStream(), null, 100, ['1']);
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Progress indicator already started.
- */
- public function testCannotStartAlreadyStartedIndicator()
- {
- $bar = new ProgressIndicator($this->getOutputStream());
- $bar->start('Starting...');
- $bar->start('Starting Again.');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Progress indicator has not yet been started.
- */
- public function testCannotAdvanceUnstartedIndicator()
- {
- $bar = new ProgressIndicator($this->getOutputStream());
- $bar->advance();
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Progress indicator has not yet been started.
- */
- public function testCannotFinishUnstartedIndicator()
- {
- $bar = new ProgressIndicator($this->getOutputStream());
- $bar->finish('Finished');
- }
-
- /**
- * @dataProvider provideFormat
- */
- public function testFormats($format)
- {
- $bar = new ProgressIndicator($output = $this->getOutputStream(), $format);
- $bar->start('Starting...');
- $bar->advance();
-
- rewind($output->getStream());
-
- $this->assertNotEmpty(stream_get_contents($output->getStream()));
- }
-
- /**
- * Provides each defined format.
- *
- * @return array
- */
- public function provideFormat()
- {
- return [
- ['normal'],
- ['verbose'],
- ['very_verbose'],
- ['debug'],
- ];
- }
-
- protected function getOutputStream($decorated = true, $verbosity = StreamOutput::VERBOSITY_NORMAL)
- {
- return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated);
- }
-
- protected function generateOutput($expected)
- {
- $count = substr_count($expected, "\n");
-
- return "\x0D\x1B[2K".($count ? sprintf("\033[%dA", $count) : '').$expected;
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/QuestionHelperTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/QuestionHelperTest.php
deleted file mode 100644
index 46cfe818..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/QuestionHelperTest.php
+++ /dev/null
@@ -1,1063 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Helper\FormatterHelper;
-use Symfony\Component\Console\Helper\HelperSet;
-use Symfony\Component\Console\Helper\QuestionHelper;
-use Symfony\Component\Console\Output\StreamOutput;
-use Symfony\Component\Console\Question\ChoiceQuestion;
-use Symfony\Component\Console\Question\ConfirmationQuestion;
-use Symfony\Component\Console\Question\Question;
-
-/**
- * @group tty
- */
-class QuestionHelperTest extends AbstractQuestionHelperTest
-{
- public function testAskChoice()
- {
- $questionHelper = new QuestionHelper();
-
- $helperSet = new HelperSet([new FormatterHelper()]);
- $questionHelper->setHelperSet($helperSet);
-
- $heroes = ['Superman', 'Batman', 'Spiderman'];
-
- $inputStream = $this->getInputStream("\n1\n 1 \nFabien\n1\nFabien\n1\n0,2\n 0 , 2 \n\n\n");
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '2');
- $question->setMaxAttempts(1);
- // first answer is an empty answer, we're supposed to receive the default value
- $this->assertEquals('Spiderman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes);
- $question->setMaxAttempts(1);
- $this->assertEquals('Batman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('Batman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes);
- $question->setErrorMessage('Input "%s" is not a superhero!');
- $question->setMaxAttempts(2);
- $this->assertEquals('Batman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $output = $this->createOutputInterface(), $question));
-
- rewind($output->getStream());
- $stream = stream_get_contents($output->getStream());
- $this->assertContains('Input "Fabien" is not a superhero!', $stream);
-
- try {
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '1');
- $question->setMaxAttempts(1);
- $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $output = $this->createOutputInterface(), $question);
- $this->fail();
- } catch (\InvalidArgumentException $e) {
- $this->assertEquals('Value "Fabien" is invalid', $e->getMessage());
- }
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, null);
- $question->setMaxAttempts(1);
- $question->setMultiselect(true);
-
- $this->assertEquals(['Batman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals(['Superman', 'Spiderman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals(['Superman', 'Spiderman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '0,1');
- $question->setMaxAttempts(1);
- $question->setMultiselect(true);
-
- $this->assertEquals(['Superman', 'Batman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, ' 0 , 1 ');
- $question->setMaxAttempts(1);
- $question->setMultiselect(true);
-
- $this->assertEquals(['Superman', 'Batman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, 0);
- // We are supposed to get the default value since we are not in interactive mode
- $this->assertEquals('Superman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, true), $this->createOutputInterface(), $question));
- }
-
- public function testAskChoiceNonInteractive()
- {
- $questionHelper = new QuestionHelper();
-
- $helperSet = new HelperSet([new FormatterHelper()]);
- $questionHelper->setHelperSet($helperSet);
- $inputStream = $this->getInputStream("\n1\n 1 \nFabien\n1\nFabien\n1\n0,2\n 0 , 2 \n\n\n");
-
- $heroes = ['Superman', 'Batman', 'Spiderman'];
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '0');
-
- $this->assertSame('Superman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, false), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, 'Batman');
- $this->assertSame('Batman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, false), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, null);
- $this->assertNull($questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, false), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '0');
- $question->setValidator(null);
- $this->assertSame('Superman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, false), $this->createOutputInterface(), $question));
-
- try {
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, null);
- $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, false), $this->createOutputInterface(), $question);
- } catch (\InvalidArgumentException $e) {
- $this->assertSame('Value "" is invalid', $e->getMessage());
- }
-
- $question = new ChoiceQuestion('Who are your favorite superheros?', $heroes, '0, 1');
- $question->setMultiselect(true);
- $this->assertSame(['Superman', 'Batman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, false), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('Who are your favorite superheros?', $heroes, '0, 1');
- $question->setMultiselect(true);
- $question->setValidator(null);
- $this->assertSame(['Superman', 'Batman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, false), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('Who are your favorite superheros?', $heroes, '0, Batman');
- $question->setMultiselect(true);
- $this->assertSame(['Superman', 'Batman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, false), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('Who are your favorite superheros?', $heroes, null);
- $question->setMultiselect(true);
- $this->assertNull($questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, false), $this->createOutputInterface(), $question));
-
- try {
- $question = new ChoiceQuestion('Who are your favorite superheros?', $heroes, '');
- $question->setMultiselect(true);
- $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream, false), $this->createOutputInterface(), $question);
- } catch (\InvalidArgumentException $e) {
- $this->assertSame('Value "" is invalid', $e->getMessage());
- }
- }
-
- public function testAsk()
- {
- $dialog = new QuestionHelper();
-
- $inputStream = $this->getInputStream("\n8AM\n");
-
- $question = new Question('What time is it?', '2PM');
- $this->assertEquals('2PM', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
-
- $question = new Question('What time is it?', '2PM');
- $this->assertEquals('8AM', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $output = $this->createOutputInterface(), $question));
-
- rewind($output->getStream());
- $this->assertEquals('What time is it?', stream_get_contents($output->getStream()));
- }
-
- public function testAskWithAutocomplete()
- {
- if (!$this->hasSttyAvailable()) {
- $this->markTestSkipped('`stty` is required to test autocomplete functionality');
- }
-
- // Acm<NEWLINE>
- // Ac<BACKSPACE><BACKSPACE>s<TAB>Test<NEWLINE>
- // <NEWLINE>
- // <UP ARROW><UP ARROW><NEWLINE>
- // <UP ARROW><UP ARROW><UP ARROW><UP ARROW><UP ARROW><TAB>Test<NEWLINE>
- // <DOWN ARROW><NEWLINE>
- // S<BACKSPACE><BACKSPACE><DOWN ARROW><DOWN ARROW><NEWLINE>
- // F00<BACKSPACE><BACKSPACE>oo<TAB><NEWLINE>
- $inputStream = $this->getInputStream("Acm\nAc\177\177s\tTest\n\n\033[A\033[A\n\033[A\033[A\033[A\033[A\033[A\tTest\n\033[B\nS\177\177\033[B\033[B\nF00\177\177oo\t\n");
-
- $dialog = new QuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new Question('Please select a bundle', 'FrameworkBundle');
- $question->setAutocompleterValues(['AcmeDemoBundle', 'AsseticBundle', 'SecurityBundle', 'FooBundle']);
-
- $this->assertEquals('AcmeDemoBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('AsseticBundleTest', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('FrameworkBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('SecurityBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('FooBundleTest', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('AcmeDemoBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('AsseticBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('FooBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- }
-
- public function testAskWithAutocompleteWithNonSequentialKeys()
- {
- if (!$this->hasSttyAvailable()) {
- $this->markTestSkipped('`stty` is required to test autocomplete functionality');
- }
-
- // <UP ARROW><UP ARROW><NEWLINE><DOWN ARROW><DOWN ARROW><NEWLINE>
- $inputStream = $this->getInputStream("\033[A\033[A\n\033[B\033[B\n");
-
- $dialog = new QuestionHelper();
- $dialog->setHelperSet(new HelperSet([new FormatterHelper()]));
-
- $question = new ChoiceQuestion('Please select a bundle', [1 => 'AcmeDemoBundle', 4 => 'AsseticBundle']);
- $question->setMaxAttempts(1);
-
- $this->assertEquals('AcmeDemoBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('AsseticBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- }
-
- public function testAskWithAutocompleteWithExactMatch()
- {
- if (!$this->hasSttyAvailable()) {
- $this->markTestSkipped('`stty` is required to test autocomplete functionality');
- }
-
- $inputStream = $this->getInputStream("b\n");
-
- $possibleChoices = [
- 'a' => 'berlin',
- 'b' => 'copenhagen',
- 'c' => 'amsterdam',
- ];
-
- $dialog = new QuestionHelper();
- $dialog->setHelperSet(new HelperSet([new FormatterHelper()]));
-
- $question = new ChoiceQuestion('Please select a city', $possibleChoices);
- $question->setMaxAttempts(1);
-
- $this->assertSame('b', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- }
-
- public function getInputs()
- {
- return [
- ['$'], // 1 byte character
- ['¢'], // 2 bytes character
- ['€'], // 3 bytes character
- ['𐍈'], // 4 bytes character
- ];
- }
-
- /**
- * @dataProvider getInputs
- */
- public function testAskWithAutocompleteWithMultiByteCharacter($character)
- {
- if (!$this->hasSttyAvailable()) {
- $this->markTestSkipped('`stty` is required to test autocomplete functionality');
- }
-
- $inputStream = $this->getInputStream("$character\n");
-
- $possibleChoices = [
- '$' => '1 byte character',
- '¢' => '2 bytes character',
- '€' => '3 bytes character',
- '𐍈' => '4 bytes character',
- ];
-
- $dialog = new QuestionHelper();
- $dialog->setHelperSet(new HelperSet([new FormatterHelper()]));
-
- $question = new ChoiceQuestion('Please select a character', $possibleChoices);
- $question->setMaxAttempts(1);
-
- $this->assertSame($character, $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- }
-
- public function testAutocompleteWithTrailingBackslash()
- {
- if (!$this->hasSttyAvailable()) {
- $this->markTestSkipped('`stty` is required to test autocomplete functionality');
- }
-
- $inputStream = $this->getInputStream('E');
-
- $dialog = new QuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new Question('');
- $expectedCompletion = 'ExampleNamespace\\';
- $question->setAutocompleterValues([$expectedCompletion]);
-
- $output = $this->createOutputInterface();
- $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $output, $question);
-
- $outputStream = $output->getStream();
- rewind($outputStream);
- $actualOutput = stream_get_contents($outputStream);
-
- // Shell control (esc) sequences are not so important: we only care that
- // <hl> tag is interpreted correctly and replaced
- $irrelevantEscSequences = [
- "\0337" => '', // Save cursor position
- "\0338" => '', // Restore cursor position
- "\033[K" => '', // Clear line from cursor till the end
- ];
-
- $importantActualOutput = strtr($actualOutput, $irrelevantEscSequences);
-
- // Remove colors (e.g. "\033[30m", "\033[31;41m")
- $importantActualOutput = preg_replace('/\033\[\d+(;\d+)?m/', '', $importantActualOutput);
-
- $this->assertEquals($expectedCompletion, $importantActualOutput);
- }
-
- public function testAskHiddenResponse()
- {
- if ('\\' === \DIRECTORY_SEPARATOR) {
- $this->markTestSkipped('This test is not supported on Windows');
- }
-
- $dialog = new QuestionHelper();
-
- $question = new Question('What time is it?');
- $question->setHidden(true);
-
- $this->assertEquals('8AM', $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream("8AM\n")), $this->createOutputInterface(), $question));
- }
-
- /**
- * @dataProvider getAskConfirmationData
- */
- public function testAskConfirmation($question, $expected, $default = true)
- {
- $dialog = new QuestionHelper();
-
- $inputStream = $this->getInputStream($question."\n");
- $question = new ConfirmationQuestion('Do you like French fries?', $default);
- $this->assertEquals($expected, $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question), 'confirmation question should '.($expected ? 'pass' : 'cancel'));
- }
-
- public function getAskConfirmationData()
- {
- return [
- ['', true],
- ['', false, false],
- ['y', true],
- ['yes', true],
- ['n', false],
- ['no', false],
- ];
- }
-
- public function testAskConfirmationWithCustomTrueAnswer()
- {
- $dialog = new QuestionHelper();
-
- $inputStream = $this->getInputStream("j\ny\n");
- $question = new ConfirmationQuestion('Do you like French fries?', false, '/^(j|y)/i');
- $this->assertTrue($dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $question = new ConfirmationQuestion('Do you like French fries?', false, '/^(j|y)/i');
- $this->assertTrue($dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- }
-
- public function testAskAndValidate()
- {
- $dialog = new QuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $error = 'This is not a color!';
- $validator = function ($color) use ($error) {
- if (!\in_array($color, ['white', 'black'])) {
- throw new \InvalidArgumentException($error);
- }
-
- return $color;
- };
-
- $question = new Question('What color was the white horse of Henry IV?', 'white');
- $question->setValidator($validator);
- $question->setMaxAttempts(2);
-
- $inputStream = $this->getInputStream("\nblack\n");
- $this->assertEquals('white', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('black', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
-
- try {
- $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream("green\nyellow\norange\n")), $this->createOutputInterface(), $question);
- $this->fail();
- } catch (\InvalidArgumentException $e) {
- $this->assertEquals($error, $e->getMessage());
- }
- }
-
- /**
- * @dataProvider simpleAnswerProvider
- */
- public function testSelectChoiceFromSimpleChoices($providedAnswer, $expectedValue)
- {
- $possibleChoices = [
- 'My environment 1',
- 'My environment 2',
- 'My environment 3',
- ];
-
- $dialog = new QuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new ChoiceQuestion('Please select the environment to load', $possibleChoices);
- $question->setMaxAttempts(1);
- $answer = $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream($providedAnswer."\n")), $this->createOutputInterface(), $question);
-
- $this->assertSame($expectedValue, $answer);
- }
-
- public function simpleAnswerProvider()
- {
- return [
- [0, 'My environment 1'],
- [1, 'My environment 2'],
- [2, 'My environment 3'],
- ['My environment 1', 'My environment 1'],
- ['My environment 2', 'My environment 2'],
- ['My environment 3', 'My environment 3'],
- ];
- }
-
- /**
- * @dataProvider specialCharacterInMultipleChoice
- */
- public function testSpecialCharacterChoiceFromMultipleChoiceList($providedAnswer, $expectedValue)
- {
- $possibleChoices = [
- '.',
- 'src',
- ];
-
- $dialog = new QuestionHelper();
- $inputStream = $this->getInputStream($providedAnswer."\n");
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new ChoiceQuestion('Please select the directory', $possibleChoices);
- $question->setMaxAttempts(1);
- $question->setMultiselect(true);
- $answer = $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question);
-
- $this->assertSame($expectedValue, $answer);
- }
-
- public function specialCharacterInMultipleChoice()
- {
- return [
- ['.', ['.']],
- ['., src', ['.', 'src']],
- ];
- }
-
- /**
- * @dataProvider mixedKeysChoiceListAnswerProvider
- */
- public function testChoiceFromChoicelistWithMixedKeys($providedAnswer, $expectedValue)
- {
- $possibleChoices = [
- '0' => 'No environment',
- '1' => 'My environment 1',
- 'env_2' => 'My environment 2',
- 3 => 'My environment 3',
- ];
-
- $dialog = new QuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new ChoiceQuestion('Please select the environment to load', $possibleChoices);
- $question->setMaxAttempts(1);
- $answer = $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream($providedAnswer."\n")), $this->createOutputInterface(), $question);
-
- $this->assertSame($expectedValue, $answer);
- }
-
- public function mixedKeysChoiceListAnswerProvider()
- {
- return [
- ['0', '0'],
- ['No environment', '0'],
- ['1', '1'],
- ['env_2', 'env_2'],
- [3, '3'],
- ['My environment 1', '1'],
- ];
- }
-
- /**
- * @dataProvider answerProvider
- */
- public function testSelectChoiceFromChoiceList($providedAnswer, $expectedValue)
- {
- $possibleChoices = [
- 'env_1' => 'My environment 1',
- 'env_2' => 'My environment',
- 'env_3' => 'My environment',
- ];
-
- $dialog = new QuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new ChoiceQuestion('Please select the environment to load', $possibleChoices);
- $question->setMaxAttempts(1);
- $answer = $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream($providedAnswer."\n")), $this->createOutputInterface(), $question);
-
- $this->assertSame($expectedValue, $answer);
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The provided answer is ambiguous. Value should be one of env_2 or env_3.
- */
- public function testAmbiguousChoiceFromChoicelist()
- {
- $possibleChoices = [
- 'env_1' => 'My first environment',
- 'env_2' => 'My environment',
- 'env_3' => 'My environment',
- ];
-
- $dialog = new QuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new ChoiceQuestion('Please select the environment to load', $possibleChoices);
- $question->setMaxAttempts(1);
-
- $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream("My environment\n")), $this->createOutputInterface(), $question);
- }
-
- public function answerProvider()
- {
- return [
- ['env_1', 'env_1'],
- ['env_2', 'env_2'],
- ['env_3', 'env_3'],
- ['My environment 1', 'env_1'],
- ];
- }
-
- public function testNoInteraction()
- {
- $dialog = new QuestionHelper();
- $question = new Question('Do you have a job?', 'not yet');
- $this->assertEquals('not yet', $dialog->ask($this->createStreamableInputInterfaceMock(null, false), $this->createOutputInterface(), $question));
- }
-
- /**
- * @requires function mb_strwidth
- */
- public function testChoiceOutputFormattingQuestionForUtf8Keys()
- {
- $question = 'Lorem ipsum?';
- $possibleChoices = [
- 'foo' => 'foo',
- 'żółw' => 'bar',
- 'łabądź' => 'baz',
- ];
- $outputShown = [
- $question,
- ' [<info>foo </info>] foo',
- ' [<info>żółw </info>] bar',
- ' [<info>łabądź</info>] baz',
- ];
- $output = $this->getMockBuilder('\Symfony\Component\Console\Output\OutputInterface')->getMock();
- $output->method('getFormatter')->willReturn(new OutputFormatter());
-
- $dialog = new QuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $output->expects($this->once())->method('writeln')->with($this->equalTo($outputShown));
-
- $question = new ChoiceQuestion($question, $possibleChoices, 'foo');
- $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream("\n")), $output, $question);
- }
-
- /**
- * @group legacy
- */
- public function testLegacyAskChoice()
- {
- $questionHelper = new QuestionHelper();
-
- $helperSet = new HelperSet([new FormatterHelper()]);
- $questionHelper->setHelperSet($helperSet);
-
- $heroes = ['Superman', 'Batman', 'Spiderman'];
-
- $questionHelper->setInputStream($this->getInputStream("\n1\n 1 \nFabien\n1\nFabien\n1\n0,2\n 0 , 2 \n\n\n"));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '2');
- $question->setMaxAttempts(1);
- // first answer is an empty answer, we're supposed to receive the default value
- $this->assertEquals('Spiderman', $questionHelper->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes);
- $question->setMaxAttempts(1);
- $this->assertEquals('Batman', $questionHelper->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals('Batman', $questionHelper->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes);
- $question->setErrorMessage('Input "%s" is not a superhero!');
- $question->setMaxAttempts(2);
- $this->assertEquals('Batman', $questionHelper->ask($this->createInputInterfaceMock(), $output = $this->createOutputInterface(), $question));
-
- rewind($output->getStream());
- $stream = stream_get_contents($output->getStream());
- $this->assertContains('Input "Fabien" is not a superhero!', $stream);
-
- try {
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '1');
- $question->setMaxAttempts(1);
- $questionHelper->ask($this->createInputInterfaceMock(), $output = $this->createOutputInterface(), $question);
- $this->fail();
- } catch (\InvalidArgumentException $e) {
- $this->assertEquals('Value "Fabien" is invalid', $e->getMessage());
- }
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, null);
- $question->setMaxAttempts(1);
- $question->setMultiselect(true);
-
- $this->assertEquals(['Batman'], $questionHelper->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals(['Superman', 'Spiderman'], $questionHelper->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals(['Superman', 'Spiderman'], $questionHelper->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '0,1');
- $question->setMaxAttempts(1);
- $question->setMultiselect(true);
-
- $this->assertEquals(['Superman', 'Batman'], $questionHelper->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, ' 0 , 1 ');
- $question->setMaxAttempts(1);
- $question->setMultiselect(true);
-
- $this->assertEquals(['Superman', 'Batman'], $questionHelper->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- }
-
- /**
- * @group legacy
- */
- public function testLegacyAsk()
- {
- $dialog = new QuestionHelper();
-
- $dialog->setInputStream($this->getInputStream("\n8AM\n"));
-
- $question = new Question('What time is it?', '2PM');
- $this->assertEquals('2PM', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
-
- $question = new Question('What time is it?', '2PM');
- $this->assertEquals('8AM', $dialog->ask($this->createInputInterfaceMock(), $output = $this->createOutputInterface(), $question));
-
- rewind($output->getStream());
- $this->assertEquals('What time is it?', stream_get_contents($output->getStream()));
- }
-
- /**
- * @group legacy
- */
- public function testLegacyAskWithAutocomplete()
- {
- if (!$this->hasSttyAvailable()) {
- $this->markTestSkipped('`stty` is required to test autocomplete functionality');
- }
-
- // Acm<NEWLINE>
- // Ac<BACKSPACE><BACKSPACE>s<TAB>Test<NEWLINE>
- // <NEWLINE>
- // <UP ARROW><UP ARROW><NEWLINE>
- // <UP ARROW><UP ARROW><UP ARROW><UP ARROW><UP ARROW><TAB>Test<NEWLINE>
- // <DOWN ARROW><NEWLINE>
- // S<BACKSPACE><BACKSPACE><DOWN ARROW><DOWN ARROW><NEWLINE>
- // F00<BACKSPACE><BACKSPACE>oo<TAB><NEWLINE>
- $inputStream = $this->getInputStream("Acm\nAc\177\177s\tTest\n\n\033[A\033[A\n\033[A\033[A\033[A\033[A\033[A\tTest\n\033[B\nS\177\177\033[B\033[B\nF00\177\177oo\t\n");
-
- $dialog = new QuestionHelper();
- $dialog->setInputStream($inputStream);
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new Question('Please select a bundle', 'FrameworkBundle');
- $question->setAutocompleterValues(['AcmeDemoBundle', 'AsseticBundle', 'SecurityBundle', 'FooBundle']);
-
- $this->assertEquals('AcmeDemoBundle', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals('AsseticBundleTest', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals('FrameworkBundle', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals('SecurityBundle', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals('FooBundleTest', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals('AcmeDemoBundle', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals('AsseticBundle', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals('FooBundle', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- }
-
- /**
- * @group legacy
- */
- public function testLegacyAskWithAutocompleteWithNonSequentialKeys()
- {
- if (!$this->hasSttyAvailable()) {
- $this->markTestSkipped('`stty` is required to test autocomplete functionality');
- }
-
- // <UP ARROW><UP ARROW><NEWLINE><DOWN ARROW><DOWN ARROW><NEWLINE>
- $inputStream = $this->getInputStream("\033[A\033[A\n\033[B\033[B\n");
-
- $dialog = new QuestionHelper();
- $dialog->setInputStream($inputStream);
- $dialog->setHelperSet(new HelperSet([new FormatterHelper()]));
-
- $question = new ChoiceQuestion('Please select a bundle', [1 => 'AcmeDemoBundle', 4 => 'AsseticBundle']);
- $question->setMaxAttempts(1);
-
- $this->assertEquals('AcmeDemoBundle', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals('AsseticBundle', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- }
-
- /**
- * @group legacy
- */
- public function testLegacyAskHiddenResponse()
- {
- if ('\\' === \DIRECTORY_SEPARATOR) {
- $this->markTestSkipped('This test is not supported on Windows');
- }
-
- $dialog = new QuestionHelper();
- $dialog->setInputStream($this->getInputStream("8AM\n"));
-
- $question = new Question('What time is it?');
- $question->setHidden(true);
-
- $this->assertEquals('8AM', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- }
-
- /**
- * @group legacy
- * @dataProvider getAskConfirmationData
- */
- public function testLegacyAskConfirmation($question, $expected, $default = true)
- {
- $dialog = new QuestionHelper();
-
- $dialog->setInputStream($this->getInputStream($question."\n"));
- $question = new ConfirmationQuestion('Do you like French fries?', $default);
- $this->assertEquals($expected, $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question), 'confirmation question should '.($expected ? 'pass' : 'cancel'));
- }
-
- /**
- * @group legacy
- */
- public function testLegacyAskConfirmationWithCustomTrueAnswer()
- {
- $dialog = new QuestionHelper();
-
- $dialog->setInputStream($this->getInputStream("j\ny\n"));
- $question = new ConfirmationQuestion('Do you like French fries?', false, '/^(j|y)/i');
- $this->assertTrue($dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $question = new ConfirmationQuestion('Do you like French fries?', false, '/^(j|y)/i');
- $this->assertTrue($dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- }
-
- /**
- * @group legacy
- */
- public function testLegacyAskAndValidate()
- {
- $dialog = new QuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $error = 'This is not a color!';
- $validator = function ($color) use ($error) {
- if (!\in_array($color, ['white', 'black'])) {
- throw new \InvalidArgumentException($error);
- }
-
- return $color;
- };
-
- $question = new Question('What color was the white horse of Henry IV?', 'white');
- $question->setValidator($validator);
- $question->setMaxAttempts(2);
-
- $dialog->setInputStream($this->getInputStream("\nblack\n"));
- $this->assertEquals('white', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
- $this->assertEquals('black', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question));
-
- $dialog->setInputStream($this->getInputStream("green\nyellow\norange\n"));
- try {
- $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question);
- $this->fail();
- } catch (\InvalidArgumentException $e) {
- $this->assertEquals($error, $e->getMessage());
- }
- }
-
- /**
- * @group legacy
- * @dataProvider simpleAnswerProvider
- */
- public function testLegacySelectChoiceFromSimpleChoices($providedAnswer, $expectedValue)
- {
- $possibleChoices = [
- 'My environment 1',
- 'My environment 2',
- 'My environment 3',
- ];
-
- $dialog = new QuestionHelper();
- $dialog->setInputStream($this->getInputStream($providedAnswer."\n"));
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new ChoiceQuestion('Please select the environment to load', $possibleChoices);
- $question->setMaxAttempts(1);
- $answer = $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question);
-
- $this->assertSame($expectedValue, $answer);
- }
-
- /**
- * @group legacy
- * @dataProvider mixedKeysChoiceListAnswerProvider
- */
- public function testLegacyChoiceFromChoicelistWithMixedKeys($providedAnswer, $expectedValue)
- {
- $possibleChoices = [
- '0' => 'No environment',
- '1' => 'My environment 1',
- 'env_2' => 'My environment 2',
- 3 => 'My environment 3',
- ];
-
- $dialog = new QuestionHelper();
- $dialog->setInputStream($this->getInputStream($providedAnswer."\n"));
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new ChoiceQuestion('Please select the environment to load', $possibleChoices);
- $question->setMaxAttempts(1);
- $answer = $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question);
-
- $this->assertSame($expectedValue, $answer);
- }
-
- /**
- * @group legacy
- * @dataProvider answerProvider
- */
- public function testLegacySelectChoiceFromChoiceList($providedAnswer, $expectedValue)
- {
- $possibleChoices = [
- 'env_1' => 'My environment 1',
- 'env_2' => 'My environment',
- 'env_3' => 'My environment',
- ];
-
- $dialog = new QuestionHelper();
- $dialog->setInputStream($this->getInputStream($providedAnswer."\n"));
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new ChoiceQuestion('Please select the environment to load', $possibleChoices);
- $question->setMaxAttempts(1);
- $answer = $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question);
-
- $this->assertSame($expectedValue, $answer);
- }
-
- /**
- * @group legacy
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The provided answer is ambiguous. Value should be one of env_2 or env_3.
- */
- public function testLegacyAmbiguousChoiceFromChoicelist()
- {
- $possibleChoices = [
- 'env_1' => 'My first environment',
- 'env_2' => 'My environment',
- 'env_3' => 'My environment',
- ];
-
- $dialog = new QuestionHelper();
- $dialog->setInputStream($this->getInputStream("My environment\n"));
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new ChoiceQuestion('Please select the environment to load', $possibleChoices);
- $question->setMaxAttempts(1);
-
- $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question);
- }
-
- /**
- * @requires function mb_strwidth
- * @group legacy
- */
- public function testLegacyChoiceOutputFormattingQuestionForUtf8Keys()
- {
- $question = 'Lorem ipsum?';
- $possibleChoices = [
- 'foo' => 'foo',
- 'żółw' => 'bar',
- 'łabądź' => 'baz',
- ];
- $outputShown = [
- $question,
- ' [<info>foo </info>] foo',
- ' [<info>żółw </info>] bar',
- ' [<info>łabądź</info>] baz',
- ];
- $output = $this->getMockBuilder('\Symfony\Component\Console\Output\OutputInterface')->getMock();
- $output->method('getFormatter')->willReturn(new OutputFormatter());
-
- $dialog = new QuestionHelper();
- $dialog->setInputStream($this->getInputStream("\n"));
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $output->expects($this->once())->method('writeln')->with($this->equalTo($outputShown));
-
- $question = new ChoiceQuestion($question, $possibleChoices, 'foo');
- $dialog->ask($this->createInputInterfaceMock(), $output, $question);
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\RuntimeException
- * @expectedExceptionMessage Aborted.
- */
- public function testAskThrowsExceptionOnMissingInput()
- {
- $dialog = new QuestionHelper();
- $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream('')), $this->createOutputInterface(), new Question('What\'s your name?'));
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\RuntimeException
- * @expectedExceptionMessage Aborted.
- */
- public function testAskThrowsExceptionOnMissingInputForChoiceQuestion()
- {
- $dialog = new QuestionHelper();
- $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream('')), $this->createOutputInterface(), new ChoiceQuestion('Choice', ['a', 'b']));
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\RuntimeException
- * @expectedExceptionMessage Aborted.
- */
- public function testAskThrowsExceptionOnMissingInputWithValidator()
- {
- $dialog = new QuestionHelper();
-
- $question = new Question('What\'s your name?');
- $question->setValidator(function () {
- if (!$value) {
- throw new \Exception('A value is required.');
- }
- });
-
- $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream('')), $this->createOutputInterface(), $question);
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Choice question must have at least 1 choice available.
- */
- public function testEmptyChoices()
- {
- new ChoiceQuestion('Question', [], 'irrelevant');
- }
-
- public function testTraversableAutocomplete()
- {
- if (!$this->hasSttyAvailable()) {
- $this->markTestSkipped('`stty` is required to test autocomplete functionality');
- }
-
- // Acm<NEWLINE>
- // Ac<BACKSPACE><BACKSPACE>s<TAB>Test<NEWLINE>
- // <NEWLINE>
- // <UP ARROW><UP ARROW><NEWLINE>
- // <UP ARROW><UP ARROW><UP ARROW><UP ARROW><UP ARROW><TAB>Test<NEWLINE>
- // <DOWN ARROW><NEWLINE>
- // S<BACKSPACE><BACKSPACE><DOWN ARROW><DOWN ARROW><NEWLINE>
- // F00<BACKSPACE><BACKSPACE>oo<TAB><NEWLINE>
- $inputStream = $this->getInputStream("Acm\nAc\177\177s\tTest\n\n\033[A\033[A\n\033[A\033[A\033[A\033[A\033[A\tTest\n\033[B\nS\177\177\033[B\033[B\nF00\177\177oo\t\n");
-
- $dialog = new QuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $dialog->setHelperSet($helperSet);
-
- $question = new Question('Please select a bundle', 'FrameworkBundle');
- $question->setAutocompleterValues(new AutocompleteValues(['irrelevant' => 'AcmeDemoBundle', 'AsseticBundle', 'SecurityBundle', 'FooBundle']));
-
- $this->assertEquals('AcmeDemoBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('AsseticBundleTest', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('FrameworkBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('SecurityBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('FooBundleTest', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('AcmeDemoBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('AsseticBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('FooBundle', $dialog->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- }
-
- protected function getInputStream($input)
- {
- $stream = fopen('php://memory', 'r+', false);
- fwrite($stream, $input);
- rewind($stream);
-
- return $stream;
- }
-
- protected function createOutputInterface()
- {
- return new StreamOutput(fopen('php://memory', 'r+', false));
- }
-
- protected function createInputInterfaceMock($interactive = true)
- {
- $mock = $this->getMockBuilder('Symfony\Component\Console\Input\InputInterface')->getMock();
- $mock->expects($this->any())
- ->method('isInteractive')
- ->will($this->returnValue($interactive));
-
- return $mock;
- }
-
- private function hasSttyAvailable()
- {
- exec('stty 2>&1', $output, $exitcode);
-
- return 0 === $exitcode;
- }
-}
-
-class AutocompleteValues implements \IteratorAggregate
-{
- private $values;
-
- public function __construct(array $values)
- {
- $this->values = $values;
- }
-
- public function getIterator()
- {
- return new \ArrayIterator($this->values);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/SymfonyQuestionHelperTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/SymfonyQuestionHelperTest.php
deleted file mode 100644
index cf7a78c3..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/SymfonyQuestionHelperTest.php
+++ /dev/null
@@ -1,168 +0,0 @@
-<?php
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use Symfony\Component\Console\Helper\FormatterHelper;
-use Symfony\Component\Console\Helper\HelperSet;
-use Symfony\Component\Console\Helper\SymfonyQuestionHelper;
-use Symfony\Component\Console\Output\StreamOutput;
-use Symfony\Component\Console\Question\ChoiceQuestion;
-use Symfony\Component\Console\Question\Question;
-
-/**
- * @group tty
- */
-class SymfonyQuestionHelperTest extends AbstractQuestionHelperTest
-{
- public function testAskChoice()
- {
- $questionHelper = new SymfonyQuestionHelper();
-
- $helperSet = new HelperSet([new FormatterHelper()]);
- $questionHelper->setHelperSet($helperSet);
-
- $heroes = ['Superman', 'Batman', 'Spiderman'];
-
- $inputStream = $this->getInputStream("\n1\n 1 \nFabien\n1\nFabien\n1\n0,2\n 0 , 2 \n\n\n");
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '2');
- $question->setMaxAttempts(1);
- // first answer is an empty answer, we're supposed to receive the default value
- $this->assertEquals('Spiderman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $output = $this->createOutputInterface(), $question));
- $this->assertOutputContains('What is your favorite superhero? [Spiderman]', $output);
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes);
- $question->setMaxAttempts(1);
- $this->assertEquals('Batman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals('Batman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes);
- $question->setErrorMessage('Input "%s" is not a superhero!');
- $question->setMaxAttempts(2);
- $this->assertEquals('Batman', $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $output = $this->createOutputInterface(), $question));
- $this->assertOutputContains('Input "Fabien" is not a superhero!', $output);
-
- try {
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '1');
- $question->setMaxAttempts(1);
- $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $output = $this->createOutputInterface(), $question);
- $this->fail();
- } catch (\InvalidArgumentException $e) {
- $this->assertEquals('Value "Fabien" is invalid', $e->getMessage());
- }
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, null);
- $question->setMaxAttempts(1);
- $question->setMultiselect(true);
-
- $this->assertEquals(['Batman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals(['Superman', 'Spiderman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
- $this->assertEquals(['Superman', 'Spiderman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $this->createOutputInterface(), $question));
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, '0,1');
- $question->setMaxAttempts(1);
- $question->setMultiselect(true);
-
- $this->assertEquals(['Superman', 'Batman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $output = $this->createOutputInterface(), $question));
- $this->assertOutputContains('What is your favorite superhero? [Superman, Batman]', $output);
-
- $question = new ChoiceQuestion('What is your favorite superhero?', $heroes, ' 0 , 1 ');
- $question->setMaxAttempts(1);
- $question->setMultiselect(true);
-
- $this->assertEquals(['Superman', 'Batman'], $questionHelper->ask($this->createStreamableInputInterfaceMock($inputStream), $output = $this->createOutputInterface(), $question));
- $this->assertOutputContains('What is your favorite superhero? [Superman, Batman]', $output);
- }
-
- public function testAskChoiceWithChoiceValueAsDefault()
- {
- $questionHelper = new SymfonyQuestionHelper();
- $helperSet = new HelperSet([new FormatterHelper()]);
- $questionHelper->setHelperSet($helperSet);
- $question = new ChoiceQuestion('What is your favorite superhero?', ['Superman', 'Batman', 'Spiderman'], 'Batman');
- $question->setMaxAttempts(1);
-
- $this->assertSame('Batman', $questionHelper->ask($this->createStreamableInputInterfaceMock($this->getInputStream("Batman\n")), $output = $this->createOutputInterface(), $question));
- $this->assertOutputContains('What is your favorite superhero? [Batman]', $output);
- }
-
- public function testAskReturnsNullIfValidatorAllowsIt()
- {
- $questionHelper = new SymfonyQuestionHelper();
- $question = new Question('What is your favorite superhero?');
- $question->setValidator(function ($value) { return $value; });
- $input = $this->createStreamableInputInterfaceMock($this->getInputStream("\n"));
- $this->assertNull($questionHelper->ask($input, $this->createOutputInterface(), $question));
- }
-
- public function testAskEscapeDefaultValue()
- {
- $helper = new SymfonyQuestionHelper();
- $input = $this->createStreamableInputInterfaceMock($this->getInputStream('\\'));
- $helper->ask($input, $output = $this->createOutputInterface(), new Question('Can I have a backslash?', '\\'));
-
- $this->assertOutputContains('Can I have a backslash? [\]', $output);
- }
-
- public function testAskEscapeAndFormatLabel()
- {
- $helper = new SymfonyQuestionHelper();
- $input = $this->createStreamableInputInterfaceMock($this->getInputStream('Foo\\Bar'));
- $helper->ask($input, $output = $this->createOutputInterface(), new Question('Do you want to use Foo\\Bar <comment>or</comment> Foo\\Baz\\?', 'Foo\\Baz'));
-
- $this->assertOutputContains('Do you want to use Foo\\Bar or Foo\\Baz\\? [Foo\\Baz]:', $output);
- }
-
- public function testLabelTrailingBackslash()
- {
- $helper = new SymfonyQuestionHelper();
- $input = $this->createStreamableInputInterfaceMock($this->getInputStream('sure'));
- $helper->ask($input, $output = $this->createOutputInterface(), new Question('Question with a trailing \\'));
-
- $this->assertOutputContains('Question with a trailing \\', $output);
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\RuntimeException
- * @expectedExceptionMessage Aborted.
- */
- public function testAskThrowsExceptionOnMissingInput()
- {
- $dialog = new SymfonyQuestionHelper();
- $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream('')), $this->createOutputInterface(), new Question('What\'s your name?'));
- }
-
- protected function getInputStream($input)
- {
- $stream = fopen('php://memory', 'r+', false);
- fwrite($stream, $input);
- rewind($stream);
-
- return $stream;
- }
-
- protected function createOutputInterface()
- {
- $output = new StreamOutput(fopen('php://memory', 'r+', false));
- $output->setDecorated(false);
-
- return $output;
- }
-
- protected function createInputInterfaceMock($interactive = true)
- {
- $mock = $this->getMockBuilder('Symfony\Component\Console\Input\InputInterface')->getMock();
- $mock->expects($this->any())
- ->method('isInteractive')
- ->will($this->returnValue($interactive));
-
- return $mock;
- }
-
- private function assertOutputContains($expected, StreamOutput $output)
- {
- rewind($output->getStream());
- $stream = stream_get_contents($output->getStream());
- $this->assertContains($expected, $stream);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/TableStyleTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/TableStyleTest.php
deleted file mode 100644
index 13e918b3..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/TableStyleTest.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Helper\TableStyle;
-
-class TableStyleTest extends TestCase
-{
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).
- */
- public function testSetPadTypeWithInvalidType()
- {
- $style = new TableStyle();
- $style->setPadType('TEST');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Helper/TableTest.php b/www/wiki/vendor/symfony/console/Tests/Helper/TableTest.php
deleted file mode 100644
index d58a5036..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Helper/TableTest.php
+++ /dev/null
@@ -1,874 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Helper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Helper\TableCell;
-use Symfony\Component\Console\Helper\TableSeparator;
-use Symfony\Component\Console\Helper\TableStyle;
-use Symfony\Component\Console\Output\StreamOutput;
-
-class TableTest extends TestCase
-{
- protected $stream;
-
- protected function setUp()
- {
- $this->stream = fopen('php://memory', 'r+');
- }
-
- protected function tearDown()
- {
- fclose($this->stream);
- $this->stream = null;
- }
-
- /**
- * @dataProvider renderProvider
- */
- public function testRender($headers, $rows, $style, $expected, $decorated = false)
- {
- $table = new Table($output = $this->getOutputStream($decorated));
- $table
- ->setHeaders($headers)
- ->setRows($rows)
- ->setStyle($style)
- ;
- $table->render();
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- /**
- * @dataProvider renderProvider
- */
- public function testRenderAddRows($headers, $rows, $style, $expected, $decorated = false)
- {
- $table = new Table($output = $this->getOutputStream($decorated));
- $table
- ->setHeaders($headers)
- ->addRows($rows)
- ->setStyle($style)
- ;
- $table->render();
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- /**
- * @dataProvider renderProvider
- */
- public function testRenderAddRowsOneByOne($headers, $rows, $style, $expected, $decorated = false)
- {
- $table = new Table($output = $this->getOutputStream($decorated));
- $table
- ->setHeaders($headers)
- ->setStyle($style)
- ;
- foreach ($rows as $row) {
- $table->addRow($row);
- }
- $table->render();
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- public function renderProvider()
- {
- $books = [
- ['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'],
- ['9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens'],
- ['960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'],
- ['80-902734-1-6', 'And Then There Were None', 'Agatha Christie'],
- ];
-
- return [
- [
- ['ISBN', 'Title', 'Author'],
- $books,
- 'default',
-<<<'TABLE'
-+---------------+--------------------------+------------------+
-| ISBN | Title | Author |
-+---------------+--------------------------+------------------+
-| 99921-58-10-7 | Divine Comedy | Dante Alighieri |
-| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
-| 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
-| 80-902734-1-6 | And Then There Were None | Agatha Christie |
-+---------------+--------------------------+------------------+
-
-TABLE
- ],
- [
- ['ISBN', 'Title', 'Author'],
- $books,
- 'compact',
-<<<'TABLE'
- ISBN Title Author
- 99921-58-10-7 Divine Comedy Dante Alighieri
- 9971-5-0210-0 A Tale of Two Cities Charles Dickens
- 960-425-059-0 The Lord of the Rings J. R. R. Tolkien
- 80-902734-1-6 And Then There Were None Agatha Christie
-
-TABLE
- ],
- [
- ['ISBN', 'Title', 'Author'],
- $books,
- 'borderless',
-<<<'TABLE'
- =============== ========================== ==================
- ISBN Title Author
- =============== ========================== ==================
- 99921-58-10-7 Divine Comedy Dante Alighieri
- 9971-5-0210-0 A Tale of Two Cities Charles Dickens
- 960-425-059-0 The Lord of the Rings J. R. R. Tolkien
- 80-902734-1-6 And Then There Were None Agatha Christie
- =============== ========================== ==================
-
-TABLE
- ],
- [
- ['ISBN', 'Title'],
- [
- ['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'],
- ['9971-5-0210-0'],
- ['960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'],
- ['80-902734-1-6', 'And Then There Were None', 'Agatha Christie'],
- ],
- 'default',
-<<<'TABLE'
-+---------------+--------------------------+------------------+
-| ISBN | Title | |
-+---------------+--------------------------+------------------+
-| 99921-58-10-7 | Divine Comedy | Dante Alighieri |
-| 9971-5-0210-0 | | |
-| 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
-| 80-902734-1-6 | And Then There Were None | Agatha Christie |
-+---------------+--------------------------+------------------+
-
-TABLE
- ],
- [
- [],
- [
- ['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'],
- ['9971-5-0210-0'],
- ['960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'],
- ['80-902734-1-6', 'And Then There Were None', 'Agatha Christie'],
- ],
- 'default',
-<<<'TABLE'
-+---------------+--------------------------+------------------+
-| 99921-58-10-7 | Divine Comedy | Dante Alighieri |
-| 9971-5-0210-0 | | |
-| 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
-| 80-902734-1-6 | And Then There Were None | Agatha Christie |
-+---------------+--------------------------+------------------+
-
-TABLE
- ],
- [
- ['ISBN', 'Title', 'Author'],
- [
- ['99921-58-10-7', "Divine\nComedy", 'Dante Alighieri'],
- ['9971-5-0210-2', "Harry Potter\nand the Chamber of Secrets", "Rowling\nJoanne K."],
- ['9971-5-0210-2', "Harry Potter\nand the Chamber of Secrets", "Rowling\nJoanne K."],
- ['960-425-059-0', 'The Lord of the Rings', "J. R. R.\nTolkien"],
- ],
- 'default',
-<<<'TABLE'
-+---------------+----------------------------+-----------------+
-| ISBN | Title | Author |
-+---------------+----------------------------+-----------------+
-| 99921-58-10-7 | Divine | Dante Alighieri |
-| | Comedy | |
-| 9971-5-0210-2 | Harry Potter | Rowling |
-| | and the Chamber of Secrets | Joanne K. |
-| 9971-5-0210-2 | Harry Potter | Rowling |
-| | and the Chamber of Secrets | Joanne K. |
-| 960-425-059-0 | The Lord of the Rings | J. R. R. |
-| | | Tolkien |
-+---------------+----------------------------+-----------------+
-
-TABLE
- ],
- [
- ['ISBN', 'Title'],
- [],
- 'default',
-<<<'TABLE'
-+------+-------+
-| ISBN | Title |
-+------+-------+
-
-TABLE
- ],
- [
- [],
- [],
- 'default',
- '',
- ],
- 'Cell text with tags used for Output styling' => [
- ['ISBN', 'Title', 'Author'],
- [
- ['<info>99921-58-10-7</info>', '<error>Divine Comedy</error>', '<fg=blue;bg=white>Dante Alighieri</fg=blue;bg=white>'],
- ['9971-5-0210-0', 'A Tale of Two Cities', '<info>Charles Dickens</>'],
- ],
- 'default',
-<<<'TABLE'
-+---------------+----------------------+-----------------+
-| ISBN | Title | Author |
-+---------------+----------------------+-----------------+
-| 99921-58-10-7 | Divine Comedy | Dante Alighieri |
-| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
-+---------------+----------------------+-----------------+
-
-TABLE
- ],
- 'Cell text with tags not used for Output styling' => [
- ['ISBN', 'Title', 'Author'],
- [
- ['<strong>99921-58-10-700</strong>', '<f>Divine Com</f>', 'Dante Alighieri'],
- ['9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens'],
- ],
- 'default',
-<<<'TABLE'
-+----------------------------------+----------------------+-----------------+
-| ISBN | Title | Author |
-+----------------------------------+----------------------+-----------------+
-| <strong>99921-58-10-700</strong> | <f>Divine Com</f> | Dante Alighieri |
-| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
-+----------------------------------+----------------------+-----------------+
-
-TABLE
- ],
- 'Cell with colspan' => [
- ['ISBN', 'Title', 'Author'],
- [
- ['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'],
- new TableSeparator(),
- [new TableCell('Divine Comedy(Dante Alighieri)', ['colspan' => 3])],
- new TableSeparator(),
- [
- new TableCell('Arduino: A Quick-Start Guide', ['colspan' => 2]),
- 'Mark Schmidt',
- ],
- new TableSeparator(),
- [
- '9971-5-0210-0',
- new TableCell("A Tale of \nTwo Cities", ['colspan' => 2]),
- ],
- new TableSeparator(),
- [
- new TableCell('Cupiditate dicta atque porro, tempora exercitationem modi animi nulla nemo vel nihil!', ['colspan' => 3]),
- ],
- ],
- 'default',
-<<<'TABLE'
-+-------------------------------+-------------------------------+-----------------------------+
-| ISBN | Title | Author |
-+-------------------------------+-------------------------------+-----------------------------+
-| 99921-58-10-7 | Divine Comedy | Dante Alighieri |
-+-------------------------------+-------------------------------+-----------------------------+
-| Divine Comedy(Dante Alighieri) |
-+-------------------------------+-------------------------------+-----------------------------+
-| Arduino: A Quick-Start Guide | Mark Schmidt |
-+-------------------------------+-------------------------------+-----------------------------+
-| 9971-5-0210-0 | A Tale of |
-| | Two Cities |
-+-------------------------------+-------------------------------+-----------------------------+
-| Cupiditate dicta atque porro, tempora exercitationem modi animi nulla nemo vel nihil! |
-+-------------------------------+-------------------------------+-----------------------------+
-
-TABLE
- ],
- 'Cell with rowspan' => [
- ['ISBN', 'Title', 'Author'],
- [
- [
- new TableCell('9971-5-0210-0', ['rowspan' => 3]),
- new TableCell('Divine Comedy', ['rowspan' => 2]),
- 'Dante Alighieri',
- ],
- [],
- ["The Lord of \nthe Rings", "J. R. \nR. Tolkien"],
- new TableSeparator(),
- ['80-902734-1-6', new TableCell("And Then \nThere \nWere None", ['rowspan' => 3]), 'Agatha Christie'],
- ['80-902734-1-7', 'Test'],
- ],
- 'default',
-<<<'TABLE'
-+---------------+---------------+-----------------+
-| ISBN | Title | Author |
-+---------------+---------------+-----------------+
-| 9971-5-0210-0 | Divine Comedy | Dante Alighieri |
-| | | |
-| | The Lord of | J. R. |
-| | the Rings | R. Tolkien |
-+---------------+---------------+-----------------+
-| 80-902734-1-6 | And Then | Agatha Christie |
-| 80-902734-1-7 | There | Test |
-| | Were None | |
-+---------------+---------------+-----------------+
-
-TABLE
- ],
- 'Cell with rowspan and colspan' => [
- ['ISBN', 'Title', 'Author'],
- [
- [
- new TableCell('9971-5-0210-0', ['rowspan' => 2, 'colspan' => 2]),
- 'Dante Alighieri',
- ],
- ['Charles Dickens'],
- new TableSeparator(),
- [
- 'Dante Alighieri',
- new TableCell('9971-5-0210-0', ['rowspan' => 3, 'colspan' => 2]),
- ],
- ['J. R. R. Tolkien'],
- ['J. R. R'],
- ],
- 'default',
-<<<'TABLE'
-+------------------+---------+-----------------+
-| ISBN | Title | Author |
-+------------------+---------+-----------------+
-| 9971-5-0210-0 | Dante Alighieri |
-| | Charles Dickens |
-+------------------+---------+-----------------+
-| Dante Alighieri | 9971-5-0210-0 |
-| J. R. R. Tolkien | |
-| J. R. R | |
-+------------------+---------+-----------------+
-
-TABLE
- ],
- 'Cell with rowspan and colspan contains new line break' => [
- ['ISBN', 'Title', 'Author'],
- [
- [
- new TableCell("9971\n-5-\n021\n0-0", ['rowspan' => 2, 'colspan' => 2]),
- 'Dante Alighieri',
- ],
- ['Charles Dickens'],
- new TableSeparator(),
- [
- 'Dante Alighieri',
- new TableCell("9971\n-5-\n021\n0-0", ['rowspan' => 2, 'colspan' => 2]),
- ],
- ['Charles Dickens'],
- new TableSeparator(),
- [
- new TableCell("9971\n-5-\n021\n0-0", ['rowspan' => 2, 'colspan' => 2]),
- new TableCell("Dante \nAlighieri", ['rowspan' => 2, 'colspan' => 1]),
- ],
- ],
- 'default',
-<<<'TABLE'
-+-----------------+-------+-----------------+
-| ISBN | Title | Author |
-+-----------------+-------+-----------------+
-| 9971 | Dante Alighieri |
-| -5- | Charles Dickens |
-| 021 | |
-| 0-0 | |
-+-----------------+-------+-----------------+
-| Dante Alighieri | 9971 |
-| Charles Dickens | -5- |
-| | 021 |
-| | 0-0 |
-+-----------------+-------+-----------------+
-| 9971 | Dante |
-| -5- | Alighieri |
-| 021 | |
-| 0-0 | |
-+-----------------+-------+-----------------+
-
-TABLE
- ],
- 'Cell with rowspan and colspan without using TableSeparator' => [
- ['ISBN', 'Title', 'Author'],
- [
- [
- new TableCell("9971\n-5-\n021\n0-0", ['rowspan' => 2, 'colspan' => 2]),
- 'Dante Alighieri',
- ],
- ['Charles Dickens'],
- [
- 'Dante Alighieri',
- new TableCell("9971\n-5-\n021\n0-0", ['rowspan' => 2, 'colspan' => 2]),
- ],
- ['Charles Dickens'],
- ],
- 'default',
-<<<'TABLE'
-+-----------------+-------+-----------------+
-| ISBN | Title | Author |
-+-----------------+-------+-----------------+
-| 9971 | Dante Alighieri |
-| -5- | Charles Dickens |
-| 021 | |
-| 0-0 | |
-| Dante Alighieri | 9971 |
-| Charles Dickens | -5- |
-| | 021 |
-| | 0-0 |
-+-----------------+-------+-----------------+
-
-TABLE
- ],
- 'Cell with rowspan and colspan with separator inside a rowspan' => [
- ['ISBN', 'Author'],
- [
- [
- new TableCell('9971-5-0210-0', ['rowspan' => 3, 'colspan' => 1]),
- 'Dante Alighieri',
- ],
- [new TableSeparator()],
- ['Charles Dickens'],
- ],
- 'default',
-<<<'TABLE'
-+---------------+-----------------+
-| ISBN | Author |
-+---------------+-----------------+
-| 9971-5-0210-0 | Dante Alighieri |
-| |-----------------|
-| | Charles Dickens |
-+---------------+-----------------+
-
-TABLE
- ],
- 'Multiple header lines' => [
- [
- [new TableCell('Main title', ['colspan' => 3])],
- ['ISBN', 'Title', 'Author'],
- ],
- [],
- 'default',
-<<<'TABLE'
-+------+-------+--------+
-| Main title |
-+------+-------+--------+
-| ISBN | Title | Author |
-+------+-------+--------+
-
-TABLE
- ],
- 'Row with multiple cells' => [
- [],
- [
- [
- new TableCell('1', ['colspan' => 3]),
- new TableCell('2', ['colspan' => 2]),
- new TableCell('3', ['colspan' => 2]),
- new TableCell('4', ['colspan' => 2]),
- ],
- ],
- 'default',
-<<<'TABLE'
-+---+--+--+---+--+---+--+---+--+
-| 1 | 2 | 3 | 4 |
-+---+--+--+---+--+---+--+---+--+
-
-TABLE
- ],
- 'Coslpan and table cells with comment style' => [
- [
- new TableCell('<comment>Long Title</comment>', ['colspan' => 3]),
- ],
- [
- [
- new TableCell('9971-5-0210-0', ['colspan' => 3]),
- ],
- new TableSeparator(),
- [
- 'Dante Alighieri',
- 'J. R. R. Tolkien',
- 'J. R. R',
- ],
- ],
- 'default',
- <<<TABLE
-+-----------------+------------------+---------+
-|\033[32m \033[39m\033[33mLong Title\033[39m\033[32m \033[39m|
-+-----------------+------------------+---------+
-| 9971-5-0210-0 |
-+-----------------+------------------+---------+
-| Dante Alighieri | J. R. R. Tolkien | J. R. R |
-+-----------------+------------------+---------+
-
-TABLE
- ,
- true,
- ],
- 'Row with formatted cells containing a newline' => [
- [],
- [
- [
- new TableCell('<error>Dont break'."\n".'here</error>', ['colspan' => 2]),
- ],
- new TableSeparator(),
- [
- 'foo',
- new TableCell('<error>Dont break'."\n".'here</error>', ['rowspan' => 2]),
- ],
- [
- 'bar',
- ],
- ],
- 'default',
- <<<'TABLE'
-+-------+------------+
-| Dont break |
-| here |
-+-------+------------+
-| foo | Dont break |
-| bar | here |
-+-------+------------+
-
-TABLE
- ,
- true,
- ],
- ];
- }
-
- public function testRenderMultiByte()
- {
- $table = new Table($output = $this->getOutputStream());
- $table
- ->setHeaders(['■■'])
- ->setRows([[1234]])
- ->setStyle('default')
- ;
- $table->render();
-
- $expected =
-<<<'TABLE'
-+------+
-| ■■ |
-+------+
-| 1234 |
-+------+
-
-TABLE;
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- public function testTableCellWithNumericIntValue()
- {
- $table = new Table($output = $this->getOutputStream());
-
- $table->setRows([[new TableCell(12345)]]);
- $table->render();
-
- $expected =
-<<<'TABLE'
-+-------+
-| 12345 |
-+-------+
-
-TABLE;
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- public function testTableCellWithNumericFloatValue()
- {
- $table = new Table($output = $this->getOutputStream());
-
- $table->setRows([[new TableCell(12345.01)]]);
- $table->render();
-
- $expected =
-<<<'TABLE'
-+----------+
-| 12345.01 |
-+----------+
-
-TABLE;
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- public function testStyle()
- {
- $style = new TableStyle();
- $style
- ->setHorizontalBorderChar('.')
- ->setVerticalBorderChar('.')
- ->setCrossingChar('.')
- ;
-
- Table::setStyleDefinition('dotfull', $style);
- $table = new Table($output = $this->getOutputStream());
- $table
- ->setHeaders(['Foo'])
- ->setRows([['Bar']])
- ->setStyle('dotfull');
- $table->render();
-
- $expected =
-<<<'TABLE'
-.......
-. Foo .
-.......
-. Bar .
-.......
-
-TABLE;
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- public function testRowSeparator()
- {
- $table = new Table($output = $this->getOutputStream());
- $table
- ->setHeaders(['Foo'])
- ->setRows([
- ['Bar1'],
- new TableSeparator(),
- ['Bar2'],
- new TableSeparator(),
- ['Bar3'],
- ]);
- $table->render();
-
- $expected =
-<<<'TABLE'
-+------+
-| Foo |
-+------+
-| Bar1 |
-+------+
-| Bar2 |
-+------+
-| Bar3 |
-+------+
-
-TABLE;
-
- $this->assertEquals($expected, $this->getOutputContent($output));
-
- $this->assertEquals($table, $table->addRow(new TableSeparator()), 'fluent interface on addRow() with a single TableSeparator() works');
- }
-
- public function testRenderMultiCalls()
- {
- $table = new Table($output = $this->getOutputStream());
- $table->setRows([
- [new TableCell('foo', ['colspan' => 2])],
- ]);
- $table->render();
- $table->render();
- $table->render();
-
- $expected =
-<<<TABLE
-+----+---+
-| foo |
-+----+---+
-+----+---+
-| foo |
-+----+---+
-+----+---+
-| foo |
-+----+---+
-
-TABLE;
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- public function testColumnStyle()
- {
- $table = new Table($output = $this->getOutputStream());
- $table
- ->setHeaders(['ISBN', 'Title', 'Author', 'Price'])
- ->setRows([
- ['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri', '9.95'],
- ['9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens', '139.25'],
- ]);
-
- $style = new TableStyle();
- $style->setPadType(STR_PAD_LEFT);
- $table->setColumnStyle(3, $style);
-
- $table->render();
-
- $expected =
- <<<TABLE
-+---------------+----------------------+-----------------+--------+
-| ISBN | Title | Author | Price |
-+---------------+----------------------+-----------------+--------+
-| 99921-58-10-7 | Divine Comedy | Dante Alighieri | 9.95 |
-| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens | 139.25 |
-+---------------+----------------------+-----------------+--------+
-
-TABLE;
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\InvalidArgumentException
- * @expectedExceptionMessage A cell must be a TableCell, a scalar or an object implementing __toString, array given.
- */
- public function testThrowsWhenTheCellInAnArray()
- {
- $table = new Table($output = $this->getOutputStream());
- $table
- ->setHeaders(['ISBN', 'Title', 'Author', 'Price'])
- ->setRows([
- ['99921-58-10-7', [], 'Dante Alighieri', '9.95'],
- ]);
-
- $table->render();
- }
-
- public function testColumnWidth()
- {
- $table = new Table($output = $this->getOutputStream());
- $table
- ->setHeaders(['ISBN', 'Title', 'Author', 'Price'])
- ->setRows([
- ['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri', '9.95'],
- ['9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens', '139.25'],
- ])
- ->setColumnWidth(0, 15)
- ->setColumnWidth(3, 10);
-
- $style = new TableStyle();
- $style->setPadType(STR_PAD_LEFT);
- $table->setColumnStyle(3, $style);
-
- $table->render();
-
- $expected =
- <<<TABLE
-+-----------------+----------------------+-----------------+------------+
-| ISBN | Title | Author | Price |
-+-----------------+----------------------+-----------------+------------+
-| 99921-58-10-7 | Divine Comedy | Dante Alighieri | 9.95 |
-| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens | 139.25 |
-+-----------------+----------------------+-----------------+------------+
-
-TABLE;
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- public function testColumnWidths()
- {
- $table = new Table($output = $this->getOutputStream());
- $table
- ->setHeaders(['ISBN', 'Title', 'Author', 'Price'])
- ->setRows([
- ['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri', '9.95'],
- ['9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens', '139.25'],
- ])
- ->setColumnWidths([15, 0, -1, 10]);
-
- $style = new TableStyle();
- $style->setPadType(STR_PAD_LEFT);
- $table->setColumnStyle(3, $style);
-
- $table->render();
-
- $expected =
- <<<TABLE
-+-----------------+----------------------+-----------------+------------+
-| ISBN | Title | Author | Price |
-+-----------------+----------------------+-----------------+------------+
-| 99921-58-10-7 | Divine Comedy | Dante Alighieri | 9.95 |
-| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens | 139.25 |
-+-----------------+----------------------+-----------------+------------+
-
-TABLE;
-
- $this->assertEquals($expected, $this->getOutputContent($output));
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\InvalidArgumentException
- * @expectedExceptionMessage Style "absent" is not defined.
- */
- public function testIsNotDefinedStyleException()
- {
- $table = new Table($this->getOutputStream());
- $table->setStyle('absent');
- }
-
- /**
- * @expectedException \Symfony\Component\Console\Exception\InvalidArgumentException
- * @expectedExceptionMessage Style "absent" is not defined.
- */
- public function testGetStyleDefinition()
- {
- Table::getStyleDefinition('absent');
- }
-
- public function testBoxedStyleWithColspan()
- {
- $boxed = new TableStyle();
- $boxed
- ->setHorizontalBorderChar('─')
- ->setVerticalBorderChar('│')
- ->setCrossingChar('┼')
- ;
-
- $table = new Table($output = $this->getOutputStream());
- $table->setStyle($boxed);
- $table
- ->setHeaders(['ISBN', 'Title', 'Author'])
- ->setRows([
- ['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'],
- new TableSeparator(),
- [new TableCell('This value spans 3 columns.', ['colspan' => 3])],
- ])
- ;
- $table->render();
-
- $expected =
- <<<TABLE
-┼───────────────┼───────────────┼─────────────────┼
-│ ISBN │ Title │ Author │
-┼───────────────┼───────────────┼─────────────────┼
-│ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri │
-┼───────────────┼───────────────┼─────────────────┼
-│ This value spans 3 columns. │
-┼───────────────┼───────────────┼─────────────────┼
-
-TABLE;
-
- $this->assertSame($expected, $this->getOutputContent($output));
- }
-
- protected function getOutputStream($decorated = false)
- {
- return new StreamOutput($this->stream, StreamOutput::VERBOSITY_NORMAL, $decorated);
- }
-
- protected function getOutputContent(StreamOutput $output)
- {
- rewind($output->getStream());
-
- return str_replace(PHP_EOL, "\n", stream_get_contents($output->getStream()));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Input/ArgvInputTest.php b/www/wiki/vendor/symfony/console/Tests/Input/ArgvInputTest.php
deleted file mode 100644
index e20bcdd2..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Input/ArgvInputTest.php
+++ /dev/null
@@ -1,466 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Input;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Input\ArgvInput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-class ArgvInputTest extends TestCase
-{
- public function testConstructor()
- {
- $_SERVER['argv'] = ['cli.php', 'foo'];
- $input = new ArgvInput();
- $r = new \ReflectionObject($input);
- $p = $r->getProperty('tokens');
- $p->setAccessible(true);
-
- $this->assertEquals(['foo'], $p->getValue($input), '__construct() automatically get its input from the argv server variable');
- }
-
- public function testParseArguments()
- {
- $input = new ArgvInput(['cli.php', 'foo']);
- $input->bind(new InputDefinition([new InputArgument('name')]));
- $this->assertEquals(['name' => 'foo'], $input->getArguments(), '->parse() parses required arguments');
-
- $input->bind(new InputDefinition([new InputArgument('name')]));
- $this->assertEquals(['name' => 'foo'], $input->getArguments(), '->parse() is stateless');
- }
-
- /**
- * @dataProvider provideOptions
- */
- public function testParseOptions($input, $options, $expectedOptions, $message)
- {
- $input = new ArgvInput($input);
- $input->bind(new InputDefinition($options));
-
- $this->assertSame($expectedOptions, $input->getOptions(), $message);
- }
-
- public function provideOptions()
- {
- return [
- [
- ['cli.php', '--foo'],
- [new InputOption('foo')],
- ['foo' => true],
- '->parse() parses long options without a value',
- ],
- [
- ['cli.php', '--foo=bar'],
- [new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)],
- ['foo' => 'bar'],
- '->parse() parses long options with a required value (with a = separator)',
- ],
- [
- ['cli.php', '--foo', 'bar'],
- [new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)],
- ['foo' => 'bar'],
- '->parse() parses long options with a required value (with a space separator)',
- ],
- [
- ['cli.php', '--foo='],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)],
- ['foo' => ''],
- '->parse() parses long options with optional value which is empty (with a = separator) as empty string',
- ],
- [
- ['cli.php', '--foo=', 'bar'],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('name', InputArgument::REQUIRED)],
- ['foo' => ''],
- '->parse() parses long options with optional value without value specified or an empty string (with a = separator) followed by an argument as empty string',
- ],
- [
- ['cli.php', 'bar', '--foo'],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('name', InputArgument::REQUIRED)],
- ['foo' => null],
- '->parse() parses long options with optional value which is empty (with a = separator) preceded by an argument',
- ],
- [
- ['cli.php', '--foo', '', 'bar'],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('name', InputArgument::REQUIRED)],
- ['foo' => ''],
- '->parse() parses long options with optional value which is empty as empty string even followed by an argument',
- ],
- [
- ['cli.php', '--foo'],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)],
- ['foo' => null],
- '->parse() parses long options with optional value specified with no separator and no value as null',
- ],
- [
- ['cli.php', '-f'],
- [new InputOption('foo', 'f')],
- ['foo' => true],
- '->parse() parses short options without a value',
- ],
- [
- ['cli.php', '-fbar'],
- [new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)],
- ['foo' => 'bar'],
- '->parse() parses short options with a required value (with no separator)',
- ],
- [
- ['cli.php', '-f', 'bar'],
- [new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)],
- ['foo' => 'bar'],
- '->parse() parses short options with a required value (with a space separator)',
- ],
- [
- ['cli.php', '-f', ''],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)],
- ['foo' => ''],
- '->parse() parses short options with an optional empty value',
- ],
- [
- ['cli.php', '-f', '', 'foo'],
- [new InputArgument('name'), new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)],
- ['foo' => ''],
- '->parse() parses short options with an optional empty value followed by an argument',
- ],
- [
- ['cli.php', '-f', '', '-b'],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputOption('bar', 'b')],
- ['foo' => '', 'bar' => true],
- '->parse() parses short options with an optional empty value followed by an option',
- ],
- [
- ['cli.php', '-f', '-b', 'foo'],
- [new InputArgument('name'), new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputOption('bar', 'b')],
- ['foo' => null, 'bar' => true],
- '->parse() parses short options with an optional value which is not present',
- ],
- [
- ['cli.php', '-fb'],
- [new InputOption('foo', 'f'), new InputOption('bar', 'b')],
- ['foo' => true, 'bar' => true],
- '->parse() parses short options when they are aggregated as a single one',
- ],
- [
- ['cli.php', '-fb', 'bar'],
- [new InputOption('foo', 'f'), new InputOption('bar', 'b', InputOption::VALUE_REQUIRED)],
- ['foo' => true, 'bar' => 'bar'],
- '->parse() parses short options when they are aggregated as a single one and the last one has a required value',
- ],
- [
- ['cli.php', '-fb', 'bar'],
- [new InputOption('foo', 'f'), new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL)],
- ['foo' => true, 'bar' => 'bar'],
- '->parse() parses short options when they are aggregated as a single one and the last one has an optional value',
- ],
- [
- ['cli.php', '-fbbar'],
- [new InputOption('foo', 'f'), new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL)],
- ['foo' => true, 'bar' => 'bar'],
- '->parse() parses short options when they are aggregated as a single one and the last one has an optional value with no separator',
- ],
- [
- ['cli.php', '-fbbar'],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputOption('bar', 'b', InputOption::VALUE_OPTIONAL)],
- ['foo' => 'bbar', 'bar' => null],
- '->parse() parses short options when they are aggregated as a single one and one of them takes a value',
- ],
- ];
- }
-
- /**
- * @dataProvider provideInvalidInput
- */
- public function testInvalidInput($argv, $definition, $expectedExceptionMessage)
- {
- if (method_exists($this, 'expectException')) {
- $this->expectException('RuntimeException');
- $this->expectExceptionMessage($expectedExceptionMessage);
- } else {
- $this->setExpectedException('RuntimeException', $expectedExceptionMessage);
- }
-
- $input = new ArgvInput($argv);
- $input->bind($definition);
- }
-
- public function provideInvalidInput()
- {
- return [
- [
- ['cli.php', '--foo'],
- new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)]),
- 'The "--foo" option requires a value.',
- ],
- [
- ['cli.php', '-f'],
- new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)]),
- 'The "--foo" option requires a value.',
- ],
- [
- ['cli.php', '-ffoo'],
- new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_NONE)]),
- 'The "-o" option does not exist.',
- ],
- [
- ['cli.php', '--foo=bar'],
- new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_NONE)]),
- 'The "--foo" option does not accept a value.',
- ],
- [
- ['cli.php', 'foo', 'bar'],
- new InputDefinition(),
- 'No arguments expected, got "foo".',
- ],
- [
- ['cli.php', 'foo', 'bar'],
- new InputDefinition([new InputArgument('number')]),
- 'Too many arguments, expected arguments "number".',
- ],
- [
- ['cli.php', 'foo', 'bar', 'zzz'],
- new InputDefinition([new InputArgument('number'), new InputArgument('county')]),
- 'Too many arguments, expected arguments "number" "county".',
- ],
- [
- ['cli.php', '--foo'],
- new InputDefinition(),
- 'The "--foo" option does not exist.',
- ],
- [
- ['cli.php', '-f'],
- new InputDefinition(),
- 'The "-f" option does not exist.',
- ],
- [
- ['cli.php', '-1'],
- new InputDefinition([new InputArgument('number')]),
- 'The "-1" option does not exist.',
- ],
- [
- ['cli.php', '-fЩ'],
- new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_NONE)]),
- 'The "-Щ" option does not exist.',
- ],
- ];
- }
-
- public function testParseArrayArgument()
- {
- $input = new ArgvInput(['cli.php', 'foo', 'bar', 'baz', 'bat']);
- $input->bind(new InputDefinition([new InputArgument('name', InputArgument::IS_ARRAY)]));
-
- $this->assertEquals(['name' => ['foo', 'bar', 'baz', 'bat']], $input->getArguments(), '->parse() parses array arguments');
- }
-
- public function testParseArrayOption()
- {
- $input = new ArgvInput(['cli.php', '--name=foo', '--name=bar', '--name=baz']);
- $input->bind(new InputDefinition([new InputOption('name', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY)]));
-
- $this->assertEquals(['name' => ['foo', 'bar', 'baz']], $input->getOptions(), '->parse() parses array options ("--option=value" syntax)');
-
- $input = new ArgvInput(['cli.php', '--name', 'foo', '--name', 'bar', '--name', 'baz']);
- $input->bind(new InputDefinition([new InputOption('name', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY)]));
- $this->assertEquals(['name' => ['foo', 'bar', 'baz']], $input->getOptions(), '->parse() parses array options ("--option value" syntax)');
-
- $input = new ArgvInput(['cli.php', '--name=foo', '--name=bar', '--name=']);
- $input->bind(new InputDefinition([new InputOption('name', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY)]));
- $this->assertSame(['name' => ['foo', 'bar', '']], $input->getOptions(), '->parse() parses empty array options as null ("--option=value" syntax)');
-
- $input = new ArgvInput(['cli.php', '--name', 'foo', '--name', 'bar', '--name', '--anotherOption']);
- $input->bind(new InputDefinition([
- new InputOption('name', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY),
- new InputOption('anotherOption', null, InputOption::VALUE_NONE),
- ]));
- $this->assertSame(['name' => ['foo', 'bar', null], 'anotherOption' => true], $input->getOptions(), '->parse() parses empty array options ("--option value" syntax)');
- }
-
- public function testParseNegativeNumberAfterDoubleDash()
- {
- $input = new ArgvInput(['cli.php', '--', '-1']);
- $input->bind(new InputDefinition([new InputArgument('number')]));
- $this->assertEquals(['number' => '-1'], $input->getArguments(), '->parse() parses arguments with leading dashes as arguments after having encountered a double-dash sequence');
-
- $input = new ArgvInput(['cli.php', '-f', 'bar', '--', '-1']);
- $input->bind(new InputDefinition([new InputArgument('number'), new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)]));
- $this->assertEquals(['foo' => 'bar'], $input->getOptions(), '->parse() parses arguments with leading dashes as options before having encountered a double-dash sequence');
- $this->assertEquals(['number' => '-1'], $input->getArguments(), '->parse() parses arguments with leading dashes as arguments after having encountered a double-dash sequence');
- }
-
- public function testParseEmptyStringArgument()
- {
- $input = new ArgvInput(['cli.php', '-f', 'bar', '']);
- $input->bind(new InputDefinition([new InputArgument('empty'), new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)]));
-
- $this->assertEquals(['empty' => ''], $input->getArguments(), '->parse() parses empty string arguments');
- }
-
- public function testGetFirstArgument()
- {
- $input = new ArgvInput(['cli.php', '-fbbar']);
- $this->assertNull($input->getFirstArgument(), '->getFirstArgument() returns null when there is no arguments');
-
- $input = new ArgvInput(['cli.php', '-fbbar', 'foo']);
- $this->assertEquals('foo', $input->getFirstArgument(), '->getFirstArgument() returns the first argument from the raw input');
-
- $input = new ArgvInput(['cli.php', '--foo', 'fooval', 'bar']);
- $input->bind(new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('arg')]));
- $this->assertSame('bar', $input->getFirstArgument());
-
- $input = new ArgvInput(['cli.php', '-bf', 'fooval', 'argval']);
- $input->bind(new InputDefinition([new InputOption('bar', 'b', InputOption::VALUE_NONE), new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('arg')]));
- $this->assertSame('argval', $input->getFirstArgument());
- }
-
- public function testHasParameterOption()
- {
- $input = new ArgvInput(['cli.php', '-f', 'foo']);
- $this->assertTrue($input->hasParameterOption('-f'), '->hasParameterOption() returns true if the given short option is in the raw input');
-
- $input = new ArgvInput(['cli.php', '-etest']);
- $this->assertTrue($input->hasParameterOption('-e'), '->hasParameterOption() returns true if the given short option is in the raw input');
- $this->assertFalse($input->hasParameterOption('-s'), '->hasParameterOption() returns true if the given short option is in the raw input');
-
- $input = new ArgvInput(['cli.php', '--foo', 'foo']);
- $this->assertTrue($input->hasParameterOption('--foo'), '->hasParameterOption() returns true if the given short option is in the raw input');
-
- $input = new ArgvInput(['cli.php', 'foo']);
- $this->assertFalse($input->hasParameterOption('--foo'), '->hasParameterOption() returns false if the given short option is not in the raw input');
-
- $input = new ArgvInput(['cli.php', '--foo=bar']);
- $this->assertTrue($input->hasParameterOption('--foo'), '->hasParameterOption() returns true if the given option with provided value is in the raw input');
- }
-
- public function testHasParameterOptionOnlyOptions()
- {
- $input = new ArgvInput(['cli.php', '-f', 'foo']);
- $this->assertTrue($input->hasParameterOption('-f', true), '->hasParameterOption() returns true if the given short option is in the raw input');
-
- $input = new ArgvInput(['cli.php', '--foo', '--', 'foo']);
- $this->assertTrue($input->hasParameterOption('--foo', true), '->hasParameterOption() returns true if the given long option is in the raw input');
-
- $input = new ArgvInput(['cli.php', '--foo=bar', 'foo']);
- $this->assertTrue($input->hasParameterOption('--foo', true), '->hasParameterOption() returns true if the given long option with provided value is in the raw input');
-
- $input = new ArgvInput(['cli.php', '--', '--foo']);
- $this->assertFalse($input->hasParameterOption('--foo', true), '->hasParameterOption() returns false if the given option is in the raw input but after an end of options signal');
- }
-
- public function testHasParameterOptionEdgeCasesAndLimitations()
- {
- $input = new ArgvInput(['cli.php', '-fh']);
- // hasParameterOption does not know if the previous short option, -f,
- // takes a value or not. If -f takes a value, then -fh does NOT include
- // -h; Otherwise it does. Since we do not know which short options take
- // values, hasParameterOption does not support this use-case.
- $this->assertFalse($input->hasParameterOption('-h'), '->hasParameterOption() returns true if the given short option is in the raw input');
- // hasParameterOption does detect that `-fh` contains `-f`, since
- // `-f` is the first short option in the set.
- $this->assertTrue($input->hasParameterOption('-f'), '->hasParameterOption() returns true if the given short option is in the raw input');
- // The test below happens to pass, although it might make more sense
- // to disallow it, and require the use of
- // $input->hasParameterOption('-f') && $input->hasParameterOption('-h')
- // instead.
- $this->assertTrue($input->hasParameterOption('-fh'), '->hasParameterOption() returns true if the given short option is in the raw input');
- // In theory, if -fh is supported, then -hf should also work.
- // However, this is not supported.
- $this->assertFalse($input->hasParameterOption('-hf'), '->hasParameterOption() returns true if the given short option is in the raw input');
-
- $input = new ArgvInput(['cli.php', '-f', '-h']);
- // If hasParameterOption('-fh') is supported for 'cli.php -fh', then
- // one might also expect that it should also be supported for
- // 'cli.php -f -h'. However, this is not supported.
- $this->assertFalse($input->hasParameterOption('-fh'), '->hasParameterOption() returns true if the given short option is in the raw input');
- }
-
- public function testNoWarningOnInvalidParameterOption()
- {
- $input = new ArgvInput(['cli.php', '-edev']);
-
- $this->assertTrue($input->hasParameterOption(['-e', '']));
- // No warning thrown
- $this->assertFalse($input->hasParameterOption(['-m', '']));
-
- $this->assertEquals('dev', $input->getParameterOption(['-e', '']));
- // No warning thrown
- $this->assertFalse($input->getParameterOption(['-m', '']));
- }
-
- public function testToString()
- {
- $input = new ArgvInput(['cli.php', '-f', 'foo']);
- $this->assertEquals('-f foo', (string) $input);
-
- $input = new ArgvInput(['cli.php', '-f', '--bar=foo', 'a b c d', "A\nB'C"]);
- $this->assertEquals('-f --bar=foo '.escapeshellarg('a b c d').' '.escapeshellarg("A\nB'C"), (string) $input);
- }
-
- /**
- * @dataProvider provideGetParameterOptionValues
- */
- public function testGetParameterOptionEqualSign($argv, $key, $default, $onlyParams, $expected)
- {
- $input = new ArgvInput($argv);
- $this->assertEquals($expected, $input->getParameterOption($key, $default, $onlyParams), '->getParameterOption() returns the expected value');
- }
-
- public function provideGetParameterOptionValues()
- {
- return [
- [['app/console', 'foo:bar'], '-e', 'default', false, 'default'],
- [['app/console', 'foo:bar', '-e', 'dev'], '-e', 'default', false, 'dev'],
- [['app/console', 'foo:bar', '--env=dev'], '--env', 'default', false, 'dev'],
- [['app/console', 'foo:bar', '-e', 'dev'], ['-e', '--env'], 'default', false, 'dev'],
- [['app/console', 'foo:bar', '--env=dev'], ['-e', '--env'], 'default', false, 'dev'],
- [['app/console', 'foo:bar', '--env=dev', '--en=1'], ['--en'], 'default', false, '1'],
- [['app/console', 'foo:bar', '--env=dev', '', '--en=1'], ['--en'], 'default', false, '1'],
- [['app/console', 'foo:bar', '--env', 'val'], '--env', 'default', false, 'val'],
- [['app/console', 'foo:bar', '--env', 'val', '--dummy'], '--env', 'default', false, 'val'],
- [['app/console', 'foo:bar', '--', '--env=dev'], '--env', 'default', false, 'dev'],
- [['app/console', 'foo:bar', '--', '--env=dev'], '--env', 'default', true, 'default'],
- ];
- }
-
- public function testParseSingleDashAsArgument()
- {
- $input = new ArgvInput(['cli.php', '-']);
- $input->bind(new InputDefinition([new InputArgument('file')]));
- $this->assertEquals(['file' => '-'], $input->getArguments(), '->parse() parses single dash as an argument');
- }
-
- public function testParseOptionWithValueOptionalGivenEmptyAndRequiredArgument()
- {
- $input = new ArgvInput(['cli.php', '--foo=', 'bar']);
- $input->bind(new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('name', InputArgument::REQUIRED)]));
- $this->assertEquals(['foo' => null], $input->getOptions(), '->parse() parses optional options with empty value as null');
- $this->assertEquals(['name' => 'bar'], $input->getArguments(), '->parse() parses required arguments');
-
- $input = new ArgvInput(['cli.php', '--foo=0', 'bar']);
- $input->bind(new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('name', InputArgument::REQUIRED)]));
- $this->assertEquals(['foo' => '0'], $input->getOptions(), '->parse() parses optional options with empty value as null');
- $this->assertEquals(['name' => 'bar'], $input->getArguments(), '->parse() parses required arguments');
- }
-
- public function testParseOptionWithValueOptionalGivenEmptyAndOptionalArgument()
- {
- $input = new ArgvInput(['cli.php', '--foo=', 'bar']);
- $input->bind(new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('name', InputArgument::OPTIONAL)]));
- $this->assertEquals(['foo' => null], $input->getOptions(), '->parse() parses optional options with empty value as null');
- $this->assertEquals(['name' => 'bar'], $input->getArguments(), '->parse() parses optional arguments');
-
- $input = new ArgvInput(['cli.php', '--foo=0', 'bar']);
- $input->bind(new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL), new InputArgument('name', InputArgument::OPTIONAL)]));
- $this->assertEquals(['foo' => '0'], $input->getOptions(), '->parse() parses optional options with empty value as null');
- $this->assertEquals(['name' => 'bar'], $input->getArguments(), '->parse() parses optional arguments');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Input/ArrayInputTest.php b/www/wiki/vendor/symfony/console/Tests/Input/ArrayInputTest.php
deleted file mode 100644
index afe74831..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Input/ArrayInputTest.php
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Input;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-class ArrayInputTest extends TestCase
-{
- public function testGetFirstArgument()
- {
- $input = new ArrayInput([]);
- $this->assertNull($input->getFirstArgument(), '->getFirstArgument() returns null if no argument were passed');
- $input = new ArrayInput(['name' => 'Fabien']);
- $this->assertEquals('Fabien', $input->getFirstArgument(), '->getFirstArgument() returns the first passed argument');
- $input = new ArrayInput(['--foo' => 'bar', 'name' => 'Fabien']);
- $this->assertEquals('Fabien', $input->getFirstArgument(), '->getFirstArgument() returns the first passed argument');
- }
-
- public function testHasParameterOption()
- {
- $input = new ArrayInput(['name' => 'Fabien', '--foo' => 'bar']);
- $this->assertTrue($input->hasParameterOption('--foo'), '->hasParameterOption() returns true if an option is present in the passed parameters');
- $this->assertFalse($input->hasParameterOption('--bar'), '->hasParameterOption() returns false if an option is not present in the passed parameters');
-
- $input = new ArrayInput(['--foo']);
- $this->assertTrue($input->hasParameterOption('--foo'), '->hasParameterOption() returns true if an option is present in the passed parameters');
-
- $input = new ArrayInput(['--foo', '--', '--bar']);
- $this->assertTrue($input->hasParameterOption('--bar'), '->hasParameterOption() returns true if an option is present in the passed parameters');
- $this->assertFalse($input->hasParameterOption('--bar', true), '->hasParameterOption() returns false if an option is present in the passed parameters after an end of options signal');
- }
-
- public function testGetParameterOption()
- {
- $input = new ArrayInput(['name' => 'Fabien', '--foo' => 'bar']);
- $this->assertEquals('bar', $input->getParameterOption('--foo'), '->getParameterOption() returns the option of specified name');
- $this->assertEquals('default', $input->getParameterOption('--bar', 'default'), '->getParameterOption() returns the default value if an option is not present in the passed parameters');
-
- $input = new ArrayInput(['Fabien', '--foo' => 'bar']);
- $this->assertEquals('bar', $input->getParameterOption('--foo'), '->getParameterOption() returns the option of specified name');
-
- $input = new ArrayInput(['--foo', '--', '--bar' => 'woop']);
- $this->assertEquals('woop', $input->getParameterOption('--bar'), '->getParameterOption() returns the correct value if an option is present in the passed parameters');
- $this->assertEquals('default', $input->getParameterOption('--bar', 'default', true), '->getParameterOption() returns the default value if an option is present in the passed parameters after an end of options signal');
- }
-
- public function testParseArguments()
- {
- $input = new ArrayInput(['name' => 'foo'], new InputDefinition([new InputArgument('name')]));
-
- $this->assertEquals(['name' => 'foo'], $input->getArguments(), '->parse() parses required arguments');
- }
-
- /**
- * @dataProvider provideOptions
- */
- public function testParseOptions($input, $options, $expectedOptions, $message)
- {
- $input = new ArrayInput($input, new InputDefinition($options));
-
- $this->assertEquals($expectedOptions, $input->getOptions(), $message);
- }
-
- public function provideOptions()
- {
- return [
- [
- ['--foo' => 'bar'],
- [new InputOption('foo')],
- ['foo' => 'bar'],
- '->parse() parses long options',
- ],
- [
- ['--foo' => 'bar'],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, '', 'default')],
- ['foo' => 'bar'],
- '->parse() parses long options with a default value',
- ],
- [
- [],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, '', 'default')],
- ['foo' => 'default'],
- '->parse() uses the default value for long options with value optional which are not passed',
- ],
- [
- ['--foo' => null],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, '', 'default')],
- ['foo' => null],
- '->parse() parses long options with a default value',
- ],
- [
- ['-f' => 'bar'],
- [new InputOption('foo', 'f')],
- ['foo' => 'bar'],
- '->parse() parses short options',
- ],
- [
- ['--' => null, '-f' => 'bar'],
- [new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, '', 'default')],
- ['foo' => 'default'],
- '->parse() does not parse opts after an end of options signal',
- ],
- [
- ['--' => null],
- [],
- [],
- '->parse() does not choke on end of options signal',
- ],
- ];
- }
-
- /**
- * @dataProvider provideInvalidInput
- */
- public function testParseInvalidInput($parameters, $definition, $expectedExceptionMessage)
- {
- if (method_exists($this, 'expectException')) {
- $this->expectException('InvalidArgumentException');
- $this->expectExceptionMessage($expectedExceptionMessage);
- } else {
- $this->setExpectedException('InvalidArgumentException', $expectedExceptionMessage);
- }
-
- new ArrayInput($parameters, $definition);
- }
-
- public function provideInvalidInput()
- {
- return [
- [
- ['foo' => 'foo'],
- new InputDefinition([new InputArgument('name')]),
- 'The "foo" argument does not exist.',
- ],
- [
- ['--foo' => null],
- new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)]),
- 'The "--foo" option requires a value.',
- ],
- [
- ['--foo' => 'foo'],
- new InputDefinition(),
- 'The "--foo" option does not exist.',
- ],
- [
- ['-o' => 'foo'],
- new InputDefinition(),
- 'The "-o" option does not exist.',
- ],
- ];
- }
-
- public function testToString()
- {
- $input = new ArrayInput(['-f' => null, '-b' => 'bar', '--foo' => 'b a z', '--lala' => null, 'test' => 'Foo', 'test2' => "A\nB'C"]);
- $this->assertEquals('-f -b=bar --foo='.escapeshellarg('b a z').' --lala Foo '.escapeshellarg("A\nB'C"), (string) $input);
-
- $input = new ArrayInput(['-b' => ['bval_1', 'bval_2'], '--f' => ['fval_1', 'fval_2']]);
- $this->assertSame('-b=bval_1 -b=bval_2 --f=fval_1 --f=fval_2', (string) $input);
-
- $input = new ArrayInput(['array_arg' => ['val_1', 'val_2']]);
- $this->assertSame('val_1 val_2', (string) $input);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Input/InputArgumentTest.php b/www/wiki/vendor/symfony/console/Tests/Input/InputArgumentTest.php
deleted file mode 100644
index 7561e10a..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Input/InputArgumentTest.php
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Input;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Input\InputArgument;
-
-class InputArgumentTest extends TestCase
-{
- public function testConstructor()
- {
- $argument = new InputArgument('foo');
- $this->assertEquals('foo', $argument->getName(), '__construct() takes a name as its first argument');
- }
-
- public function testModes()
- {
- $argument = new InputArgument('foo');
- $this->assertFalse($argument->isRequired(), '__construct() gives a "InputArgument::OPTIONAL" mode by default');
-
- $argument = new InputArgument('foo', null);
- $this->assertFalse($argument->isRequired(), '__construct() can take "InputArgument::OPTIONAL" as its mode');
-
- $argument = new InputArgument('foo', InputArgument::OPTIONAL);
- $this->assertFalse($argument->isRequired(), '__construct() can take "InputArgument::OPTIONAL" as its mode');
-
- $argument = new InputArgument('foo', InputArgument::REQUIRED);
- $this->assertTrue($argument->isRequired(), '__construct() can take "InputArgument::REQUIRED" as its mode');
- }
-
- /**
- * @dataProvider provideInvalidModes
- */
- public function testInvalidModes($mode)
- {
- if (method_exists($this, 'expectException')) {
- $this->expectException('InvalidArgumentException');
- $this->expectExceptionMessage(sprintf('Argument mode "%s" is not valid.', $mode));
- } else {
- $this->setExpectedException('InvalidArgumentException', sprintf('Argument mode "%s" is not valid.', $mode));
- }
-
- new InputArgument('foo', $mode);
- }
-
- public function provideInvalidModes()
- {
- return [
- ['ANOTHER_ONE'],
- [-1],
- ];
- }
-
- public function testIsArray()
- {
- $argument = new InputArgument('foo', InputArgument::IS_ARRAY);
- $this->assertTrue($argument->isArray(), '->isArray() returns true if the argument can be an array');
- $argument = new InputArgument('foo', InputArgument::OPTIONAL | InputArgument::IS_ARRAY);
- $this->assertTrue($argument->isArray(), '->isArray() returns true if the argument can be an array');
- $argument = new InputArgument('foo', InputArgument::OPTIONAL);
- $this->assertFalse($argument->isArray(), '->isArray() returns false if the argument can not be an array');
- }
-
- public function testGetDescription()
- {
- $argument = new InputArgument('foo', null, 'Some description');
- $this->assertEquals('Some description', $argument->getDescription(), '->getDescription() return the message description');
- }
-
- public function testGetDefault()
- {
- $argument = new InputArgument('foo', InputArgument::OPTIONAL, '', 'default');
- $this->assertEquals('default', $argument->getDefault(), '->getDefault() return the default value');
- }
-
- public function testSetDefault()
- {
- $argument = new InputArgument('foo', InputArgument::OPTIONAL, '', 'default');
- $argument->setDefault(null);
- $this->assertNull($argument->getDefault(), '->setDefault() can reset the default value by passing null');
- $argument->setDefault('another');
- $this->assertEquals('another', $argument->getDefault(), '->setDefault() changes the default value');
-
- $argument = new InputArgument('foo', InputArgument::OPTIONAL | InputArgument::IS_ARRAY);
- $argument->setDefault([1, 2]);
- $this->assertEquals([1, 2], $argument->getDefault(), '->setDefault() changes the default value');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Cannot set a default value except for InputArgument::OPTIONAL mode.
- */
- public function testSetDefaultWithRequiredArgument()
- {
- $argument = new InputArgument('foo', InputArgument::REQUIRED);
- $argument->setDefault('default');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage A default value for an array argument must be an array.
- */
- public function testSetDefaultWithArrayArgument()
- {
- $argument = new InputArgument('foo', InputArgument::IS_ARRAY);
- $argument->setDefault('default');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Input/InputDefinitionTest.php b/www/wiki/vendor/symfony/console/Tests/Input/InputDefinitionTest.php
deleted file mode 100644
index 5fdcb981..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Input/InputDefinitionTest.php
+++ /dev/null
@@ -1,406 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Input;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-class InputDefinitionTest extends TestCase
-{
- protected static $fixtures;
-
- protected $foo;
- protected $bar;
- protected $foo1;
- protected $foo2;
-
- public static function setUpBeforeClass()
- {
- self::$fixtures = __DIR__.'/../Fixtures/';
- }
-
- public function testConstructorArguments()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $this->assertEquals([], $definition->getArguments(), '__construct() creates a new InputDefinition object');
-
- $definition = new InputDefinition([$this->foo, $this->bar]);
- $this->assertEquals(['foo' => $this->foo, 'bar' => $this->bar], $definition->getArguments(), '__construct() takes an array of InputArgument objects as its first argument');
- }
-
- public function testConstructorOptions()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition();
- $this->assertEquals([], $definition->getOptions(), '__construct() creates a new InputDefinition object');
-
- $definition = new InputDefinition([$this->foo, $this->bar]);
- $this->assertEquals(['foo' => $this->foo, 'bar' => $this->bar], $definition->getOptions(), '__construct() takes an array of InputOption objects as its first argument');
- }
-
- public function testSetArguments()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->setArguments([$this->foo]);
- $this->assertEquals(['foo' => $this->foo], $definition->getArguments(), '->setArguments() sets the array of InputArgument objects');
- $definition->setArguments([$this->bar]);
-
- $this->assertEquals(['bar' => $this->bar], $definition->getArguments(), '->setArguments() clears all InputArgument objects');
- }
-
- public function testAddArguments()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->addArguments([$this->foo]);
- $this->assertEquals(['foo' => $this->foo], $definition->getArguments(), '->addArguments() adds an array of InputArgument objects');
- $definition->addArguments([$this->bar]);
- $this->assertEquals(['foo' => $this->foo, 'bar' => $this->bar], $definition->getArguments(), '->addArguments() does not clear existing InputArgument objects');
- }
-
- public function testAddArgument()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->addArgument($this->foo);
- $this->assertEquals(['foo' => $this->foo], $definition->getArguments(), '->addArgument() adds a InputArgument object');
- $definition->addArgument($this->bar);
- $this->assertEquals(['foo' => $this->foo, 'bar' => $this->bar], $definition->getArguments(), '->addArgument() adds a InputArgument object');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage An argument with name "foo" already exists.
- */
- public function testArgumentsMustHaveDifferentNames()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->addArgument($this->foo);
- $definition->addArgument($this->foo1);
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Cannot add an argument after an array argument.
- */
- public function testArrayArgumentHasToBeLast()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->addArgument(new InputArgument('fooarray', InputArgument::IS_ARRAY));
- $definition->addArgument(new InputArgument('anotherbar'));
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Cannot add a required argument after an optional one.
- */
- public function testRequiredArgumentCannotFollowAnOptionalOne()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->addArgument($this->foo);
- $definition->addArgument($this->foo2);
- }
-
- public function testGetArgument()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->addArguments([$this->foo]);
- $this->assertEquals($this->foo, $definition->getArgument('foo'), '->getArgument() returns a InputArgument by its name');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The "bar" argument does not exist.
- */
- public function testGetInvalidArgument()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->addArguments([$this->foo]);
- $definition->getArgument('bar');
- }
-
- public function testHasArgument()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->addArguments([$this->foo]);
-
- $this->assertTrue($definition->hasArgument('foo'), '->hasArgument() returns true if a InputArgument exists for the given name');
- $this->assertFalse($definition->hasArgument('bar'), '->hasArgument() returns false if a InputArgument exists for the given name');
- }
-
- public function testGetArgumentRequiredCount()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->addArgument($this->foo2);
- $this->assertEquals(1, $definition->getArgumentRequiredCount(), '->getArgumentRequiredCount() returns the number of required arguments');
- $definition->addArgument($this->foo);
- $this->assertEquals(1, $definition->getArgumentRequiredCount(), '->getArgumentRequiredCount() returns the number of required arguments');
- }
-
- public function testGetArgumentCount()
- {
- $this->initializeArguments();
-
- $definition = new InputDefinition();
- $definition->addArgument($this->foo2);
- $this->assertEquals(1, $definition->getArgumentCount(), '->getArgumentCount() returns the number of arguments');
- $definition->addArgument($this->foo);
- $this->assertEquals(2, $definition->getArgumentCount(), '->getArgumentCount() returns the number of arguments');
- }
-
- public function testGetArgumentDefaults()
- {
- $definition = new InputDefinition([
- new InputArgument('foo1', InputArgument::OPTIONAL),
- new InputArgument('foo2', InputArgument::OPTIONAL, '', 'default'),
- new InputArgument('foo3', InputArgument::OPTIONAL | InputArgument::IS_ARRAY),
- // new InputArgument('foo4', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, '', [1, 2]),
- ]);
- $this->assertEquals(['foo1' => null, 'foo2' => 'default', 'foo3' => []], $definition->getArgumentDefaults(), '->getArgumentDefaults() return the default values for each argument');
-
- $definition = new InputDefinition([
- new InputArgument('foo4', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, '', [1, 2]),
- ]);
- $this->assertEquals(['foo4' => [1, 2]], $definition->getArgumentDefaults(), '->getArgumentDefaults() return the default values for each argument');
- }
-
- public function testSetOptions()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition([$this->foo]);
- $this->assertEquals(['foo' => $this->foo], $definition->getOptions(), '->setOptions() sets the array of InputOption objects');
- $definition->setOptions([$this->bar]);
- $this->assertEquals(['bar' => $this->bar], $definition->getOptions(), '->setOptions() clears all InputOption objects');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The "-f" option does not exist.
- */
- public function testSetOptionsClearsOptions()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition([$this->foo]);
- $definition->setOptions([$this->bar]);
- $definition->getOptionForShortcut('f');
- }
-
- public function testAddOptions()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition([$this->foo]);
- $this->assertEquals(['foo' => $this->foo], $definition->getOptions(), '->addOptions() adds an array of InputOption objects');
- $definition->addOptions([$this->bar]);
- $this->assertEquals(['foo' => $this->foo, 'bar' => $this->bar], $definition->getOptions(), '->addOptions() does not clear existing InputOption objects');
- }
-
- public function testAddOption()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition();
- $definition->addOption($this->foo);
- $this->assertEquals(['foo' => $this->foo], $definition->getOptions(), '->addOption() adds a InputOption object');
- $definition->addOption($this->bar);
- $this->assertEquals(['foo' => $this->foo, 'bar' => $this->bar], $definition->getOptions(), '->addOption() adds a InputOption object');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage An option named "foo" already exists.
- */
- public function testAddDuplicateOption()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition();
- $definition->addOption($this->foo);
- $definition->addOption($this->foo2);
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage An option with shortcut "f" already exists.
- */
- public function testAddDuplicateShortcutOption()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition();
- $definition->addOption($this->foo);
- $definition->addOption($this->foo1);
- }
-
- public function testGetOption()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition([$this->foo]);
- $this->assertEquals($this->foo, $definition->getOption('foo'), '->getOption() returns a InputOption by its name');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The "--bar" option does not exist.
- */
- public function testGetInvalidOption()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition([$this->foo]);
- $definition->getOption('bar');
- }
-
- public function testHasOption()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition([$this->foo]);
- $this->assertTrue($definition->hasOption('foo'), '->hasOption() returns true if a InputOption exists for the given name');
- $this->assertFalse($definition->hasOption('bar'), '->hasOption() returns false if a InputOption exists for the given name');
- }
-
- public function testHasShortcut()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition([$this->foo]);
- $this->assertTrue($definition->hasShortcut('f'), '->hasShortcut() returns true if a InputOption exists for the given shortcut');
- $this->assertFalse($definition->hasShortcut('b'), '->hasShortcut() returns false if a InputOption exists for the given shortcut');
- }
-
- public function testGetOptionForShortcut()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition([$this->foo]);
- $this->assertEquals($this->foo, $definition->getOptionForShortcut('f'), '->getOptionForShortcut() returns a InputOption by its shortcut');
- }
-
- public function testGetOptionForMultiShortcut()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition([$this->multi]);
- $this->assertEquals($this->multi, $definition->getOptionForShortcut('m'), '->getOptionForShortcut() returns a InputOption by its shortcut');
- $this->assertEquals($this->multi, $definition->getOptionForShortcut('mmm'), '->getOptionForShortcut() returns a InputOption by its shortcut');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The "-l" option does not exist.
- */
- public function testGetOptionForInvalidShortcut()
- {
- $this->initializeOptions();
-
- $definition = new InputDefinition([$this->foo]);
- $definition->getOptionForShortcut('l');
- }
-
- public function testGetOptionDefaults()
- {
- $definition = new InputDefinition([
- new InputOption('foo1', null, InputOption::VALUE_NONE),
- new InputOption('foo2', null, InputOption::VALUE_REQUIRED),
- new InputOption('foo3', null, InputOption::VALUE_REQUIRED, '', 'default'),
- new InputOption('foo4', null, InputOption::VALUE_OPTIONAL),
- new InputOption('foo5', null, InputOption::VALUE_OPTIONAL, '', 'default'),
- new InputOption('foo6', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY),
- new InputOption('foo7', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, '', [1, 2]),
- ]);
- $defaults = [
- 'foo1' => false,
- 'foo2' => null,
- 'foo3' => 'default',
- 'foo4' => null,
- 'foo5' => 'default',
- 'foo6' => [],
- 'foo7' => [1, 2],
- ];
- $this->assertSame($defaults, $definition->getOptionDefaults(), '->getOptionDefaults() returns the default values for all options');
- }
-
- /**
- * @dataProvider getGetSynopsisData
- */
- public function testGetSynopsis(InputDefinition $definition, $expectedSynopsis, $message = null)
- {
- $this->assertEquals($expectedSynopsis, $definition->getSynopsis(), $message ? '->getSynopsis() '.$message : '');
- }
-
- public function getGetSynopsisData()
- {
- return [
- [new InputDefinition([new InputOption('foo')]), '[--foo]', 'puts optional options in square brackets'],
- [new InputDefinition([new InputOption('foo', 'f')]), '[-f|--foo]', 'separates shortcut with a pipe'],
- [new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_REQUIRED)]), '[-f|--foo FOO]', 'uses shortcut as value placeholder'],
- [new InputDefinition([new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL)]), '[-f|--foo [FOO]]', 'puts optional values in square brackets'],
-
- [new InputDefinition([new InputArgument('foo', InputArgument::REQUIRED)]), '<foo>', 'puts arguments in angle brackets'],
- [new InputDefinition([new InputArgument('foo')]), '[<foo>]', 'puts optional arguments in square brackets'],
- [new InputDefinition([new InputArgument('foo', InputArgument::IS_ARRAY)]), '[<foo>]...', 'uses an ellipsis for array arguments'],
- [new InputDefinition([new InputArgument('foo', InputArgument::REQUIRED | InputArgument::IS_ARRAY)]), '<foo> (<foo>)...', 'uses parenthesis and ellipsis for required array arguments'],
-
- [new InputDefinition([new InputOption('foo'), new InputArgument('foo', InputArgument::REQUIRED)]), '[--foo] [--] <foo>', 'puts [--] between options and arguments'],
- ];
- }
-
- public function testGetShortSynopsis()
- {
- $definition = new InputDefinition([new InputOption('foo'), new InputOption('bar'), new InputArgument('cat')]);
- $this->assertEquals('[options] [--] [<cat>]', $definition->getSynopsis(true), '->getSynopsis(true) groups options in [options]');
- }
-
- protected function initializeArguments()
- {
- $this->foo = new InputArgument('foo');
- $this->bar = new InputArgument('bar');
- $this->foo1 = new InputArgument('foo');
- $this->foo2 = new InputArgument('foo2', InputArgument::REQUIRED);
- }
-
- protected function initializeOptions()
- {
- $this->foo = new InputOption('foo', 'f');
- $this->bar = new InputOption('bar', 'b');
- $this->foo1 = new InputOption('fooBis', 'f');
- $this->foo2 = new InputOption('foo', 'p');
- $this->multi = new InputOption('multi', 'm|mm|mmm');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Input/InputOptionTest.php b/www/wiki/vendor/symfony/console/Tests/Input/InputOptionTest.php
deleted file mode 100644
index 413cb527..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Input/InputOptionTest.php
+++ /dev/null
@@ -1,210 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Input;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Input\InputOption;
-
-class InputOptionTest extends TestCase
-{
- public function testConstructor()
- {
- $option = new InputOption('foo');
- $this->assertEquals('foo', $option->getName(), '__construct() takes a name as its first argument');
- $option = new InputOption('--foo');
- $this->assertEquals('foo', $option->getName(), '__construct() removes the leading -- of the option name');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage Impossible to have an option mode VALUE_IS_ARRAY if the option does not accept a value.
- */
- public function testArrayModeWithoutValue()
- {
- new InputOption('foo', 'f', InputOption::VALUE_IS_ARRAY);
- }
-
- public function testShortcut()
- {
- $option = new InputOption('foo', 'f');
- $this->assertEquals('f', $option->getShortcut(), '__construct() can take a shortcut as its second argument');
- $option = new InputOption('foo', '-f|-ff|fff');
- $this->assertEquals('f|ff|fff', $option->getShortcut(), '__construct() removes the leading - of the shortcuts');
- $option = new InputOption('foo', ['f', 'ff', '-fff']);
- $this->assertEquals('f|ff|fff', $option->getShortcut(), '__construct() removes the leading - of the shortcuts');
- $option = new InputOption('foo');
- $this->assertNull($option->getShortcut(), '__construct() makes the shortcut null by default');
- }
-
- public function testModes()
- {
- $option = new InputOption('foo', 'f');
- $this->assertFalse($option->acceptValue(), '__construct() gives a "InputOption::VALUE_NONE" mode by default');
- $this->assertFalse($option->isValueRequired(), '__construct() gives a "InputOption::VALUE_NONE" mode by default');
- $this->assertFalse($option->isValueOptional(), '__construct() gives a "InputOption::VALUE_NONE" mode by default');
-
- $option = new InputOption('foo', 'f', null);
- $this->assertFalse($option->acceptValue(), '__construct() can take "InputOption::VALUE_NONE" as its mode');
- $this->assertFalse($option->isValueRequired(), '__construct() can take "InputOption::VALUE_NONE" as its mode');
- $this->assertFalse($option->isValueOptional(), '__construct() can take "InputOption::VALUE_NONE" as its mode');
-
- $option = new InputOption('foo', 'f', InputOption::VALUE_NONE);
- $this->assertFalse($option->acceptValue(), '__construct() can take "InputOption::VALUE_NONE" as its mode');
- $this->assertFalse($option->isValueRequired(), '__construct() can take "InputOption::VALUE_NONE" as its mode');
- $this->assertFalse($option->isValueOptional(), '__construct() can take "InputOption::VALUE_NONE" as its mode');
-
- $option = new InputOption('foo', 'f', InputOption::VALUE_REQUIRED);
- $this->assertTrue($option->acceptValue(), '__construct() can take "InputOption::VALUE_REQUIRED" as its mode');
- $this->assertTrue($option->isValueRequired(), '__construct() can take "InputOption::VALUE_REQUIRED" as its mode');
- $this->assertFalse($option->isValueOptional(), '__construct() can take "InputOption::VALUE_REQUIRED" as its mode');
-
- $option = new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL);
- $this->assertTrue($option->acceptValue(), '__construct() can take "InputOption::VALUE_OPTIONAL" as its mode');
- $this->assertFalse($option->isValueRequired(), '__construct() can take "InputOption::VALUE_OPTIONAL" as its mode');
- $this->assertTrue($option->isValueOptional(), '__construct() can take "InputOption::VALUE_OPTIONAL" as its mode');
- }
-
- /**
- * @dataProvider provideInvalidModes
- */
- public function testInvalidModes($mode)
- {
- if (method_exists($this, 'expectException')) {
- $this->expectException('InvalidArgumentException');
- $this->expectExceptionMessage(sprintf('Option mode "%s" is not valid.', $mode));
- } else {
- $this->setExpectedException('InvalidArgumentException', sprintf('Option mode "%s" is not valid.', $mode));
- }
-
- new InputOption('foo', 'f', $mode);
- }
-
- public function provideInvalidModes()
- {
- return [
- ['ANOTHER_ONE'],
- [-1],
- ];
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testEmptyNameIsInvalid()
- {
- new InputOption('');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testDoubleDashNameIsInvalid()
- {
- new InputOption('--');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- */
- public function testSingleDashOptionIsInvalid()
- {
- new InputOption('foo', '-');
- }
-
- public function testIsArray()
- {
- $option = new InputOption('foo', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY);
- $this->assertTrue($option->isArray(), '->isArray() returns true if the option can be an array');
- $option = new InputOption('foo', null, InputOption::VALUE_NONE);
- $this->assertFalse($option->isArray(), '->isArray() returns false if the option can not be an array');
- }
-
- public function testGetDescription()
- {
- $option = new InputOption('foo', 'f', null, 'Some description');
- $this->assertEquals('Some description', $option->getDescription(), '->getDescription() returns the description message');
- }
-
- public function testGetDefault()
- {
- $option = new InputOption('foo', null, InputOption::VALUE_OPTIONAL, '', 'default');
- $this->assertEquals('default', $option->getDefault(), '->getDefault() returns the default value');
-
- $option = new InputOption('foo', null, InputOption::VALUE_REQUIRED, '', 'default');
- $this->assertEquals('default', $option->getDefault(), '->getDefault() returns the default value');
-
- $option = new InputOption('foo', null, InputOption::VALUE_REQUIRED);
- $this->assertNull($option->getDefault(), '->getDefault() returns null if no default value is configured');
-
- $option = new InputOption('foo', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY);
- $this->assertEquals([], $option->getDefault(), '->getDefault() returns an empty array if option is an array');
-
- $option = new InputOption('foo', null, InputOption::VALUE_NONE);
- $this->assertFalse($option->getDefault(), '->getDefault() returns false if the option does not take a value');
- }
-
- public function testSetDefault()
- {
- $option = new InputOption('foo', null, InputOption::VALUE_REQUIRED, '', 'default');
- $option->setDefault(null);
- $this->assertNull($option->getDefault(), '->setDefault() can reset the default value by passing null');
- $option->setDefault('another');
- $this->assertEquals('another', $option->getDefault(), '->setDefault() changes the default value');
-
- $option = new InputOption('foo', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY);
- $option->setDefault([1, 2]);
- $this->assertEquals([1, 2], $option->getDefault(), '->setDefault() changes the default value');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage Cannot set a default value when using InputOption::VALUE_NONE mode.
- */
- public function testDefaultValueWithValueNoneMode()
- {
- $option = new InputOption('foo', 'f', InputOption::VALUE_NONE);
- $option->setDefault('default');
- }
-
- /**
- * @expectedException \LogicException
- * @expectedExceptionMessage A default value for an array option must be an array.
- */
- public function testDefaultValueWithIsArrayMode()
- {
- $option = new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY);
- $option->setDefault('default');
- }
-
- public function testEquals()
- {
- $option = new InputOption('foo', 'f', null, 'Some description');
- $option2 = new InputOption('foo', 'f', null, 'Alternative description');
- $this->assertTrue($option->equals($option2));
-
- $option = new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, 'Some description');
- $option2 = new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, 'Some description', true);
- $this->assertFalse($option->equals($option2));
-
- $option = new InputOption('foo', 'f', null, 'Some description');
- $option2 = new InputOption('bar', 'f', null, 'Some description');
- $this->assertFalse($option->equals($option2));
-
- $option = new InputOption('foo', 'f', null, 'Some description');
- $option2 = new InputOption('foo', '', null, 'Some description');
- $this->assertFalse($option->equals($option2));
-
- $option = new InputOption('foo', 'f', null, 'Some description');
- $option2 = new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL, 'Some description');
- $this->assertFalse($option->equals($option2));
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Input/InputTest.php b/www/wiki/vendor/symfony/console/Tests/Input/InputTest.php
deleted file mode 100644
index 61608bf2..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Input/InputTest.php
+++ /dev/null
@@ -1,149 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Input;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-class InputTest extends TestCase
-{
- public function testConstructor()
- {
- $input = new ArrayInput(['name' => 'foo'], new InputDefinition([new InputArgument('name')]));
- $this->assertEquals('foo', $input->getArgument('name'), '->__construct() takes a InputDefinition as an argument');
- }
-
- public function testOptions()
- {
- $input = new ArrayInput(['--name' => 'foo'], new InputDefinition([new InputOption('name')]));
- $this->assertEquals('foo', $input->getOption('name'), '->getOption() returns the value for the given option');
-
- $input->setOption('name', 'bar');
- $this->assertEquals('bar', $input->getOption('name'), '->setOption() sets the value for a given option');
- $this->assertEquals(['name' => 'bar'], $input->getOptions(), '->getOptions() returns all option values');
-
- $input = new ArrayInput(['--name' => 'foo'], new InputDefinition([new InputOption('name'), new InputOption('bar', '', InputOption::VALUE_OPTIONAL, '', 'default')]));
- $this->assertEquals('default', $input->getOption('bar'), '->getOption() returns the default value for optional options');
- $this->assertEquals(['name' => 'foo', 'bar' => 'default'], $input->getOptions(), '->getOptions() returns all option values, even optional ones');
-
- $input = new ArrayInput(['--name' => 'foo', '--bar' => ''], new InputDefinition([new InputOption('name'), new InputOption('bar', '', InputOption::VALUE_OPTIONAL, '', 'default')]));
- $this->assertEquals('', $input->getOption('bar'), '->getOption() returns null for options explicitly passed without value (or an empty value)');
- $this->assertEquals(['name' => 'foo', 'bar' => ''], $input->getOptions(), '->getOptions() returns all option values.');
-
- $input = new ArrayInput(['--name' => 'foo', '--bar' => null], new InputDefinition([new InputOption('name'), new InputOption('bar', '', InputOption::VALUE_OPTIONAL, '', 'default')]));
- $this->assertNull($input->getOption('bar'), '->getOption() returns null for options explicitly passed without value (or an empty value)');
- $this->assertEquals(['name' => 'foo', 'bar' => null], $input->getOptions(), '->getOptions() returns all option values');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The "foo" option does not exist.
- */
- public function testSetInvalidOption()
- {
- $input = new ArrayInput(['--name' => 'foo'], new InputDefinition([new InputOption('name'), new InputOption('bar', '', InputOption::VALUE_OPTIONAL, '', 'default')]));
- $input->setOption('foo', 'bar');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The "foo" option does not exist.
- */
- public function testGetInvalidOption()
- {
- $input = new ArrayInput(['--name' => 'foo'], new InputDefinition([new InputOption('name'), new InputOption('bar', '', InputOption::VALUE_OPTIONAL, '', 'default')]));
- $input->getOption('foo');
- }
-
- public function testArguments()
- {
- $input = new ArrayInput(['name' => 'foo'], new InputDefinition([new InputArgument('name')]));
- $this->assertEquals('foo', $input->getArgument('name'), '->getArgument() returns the value for the given argument');
-
- $input->setArgument('name', 'bar');
- $this->assertEquals('bar', $input->getArgument('name'), '->setArgument() sets the value for a given argument');
- $this->assertEquals(['name' => 'bar'], $input->getArguments(), '->getArguments() returns all argument values');
-
- $input = new ArrayInput(['name' => 'foo'], new InputDefinition([new InputArgument('name'), new InputArgument('bar', InputArgument::OPTIONAL, '', 'default')]));
- $this->assertEquals('default', $input->getArgument('bar'), '->getArgument() returns the default value for optional arguments');
- $this->assertEquals(['name' => 'foo', 'bar' => 'default'], $input->getArguments(), '->getArguments() returns all argument values, even optional ones');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The "foo" argument does not exist.
- */
- public function testSetInvalidArgument()
- {
- $input = new ArrayInput(['name' => 'foo'], new InputDefinition([new InputArgument('name'), new InputArgument('bar', InputArgument::OPTIONAL, '', 'default')]));
- $input->setArgument('foo', 'bar');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The "foo" argument does not exist.
- */
- public function testGetInvalidArgument()
- {
- $input = new ArrayInput(['name' => 'foo'], new InputDefinition([new InputArgument('name'), new InputArgument('bar', InputArgument::OPTIONAL, '', 'default')]));
- $input->getArgument('foo');
- }
-
- /**
- * @expectedException \RuntimeException
- * @expectedExceptionMessage Not enough arguments (missing: "name").
- */
- public function testValidateWithMissingArguments()
- {
- $input = new ArrayInput([]);
- $input->bind(new InputDefinition([new InputArgument('name', InputArgument::REQUIRED)]));
- $input->validate();
- }
-
- /**
- * @expectedException \RuntimeException
- * @expectedExceptionMessage Not enough arguments (missing: "name").
- */
- public function testValidateWithMissingRequiredArguments()
- {
- $input = new ArrayInput(['bar' => 'baz']);
- $input->bind(new InputDefinition([new InputArgument('name', InputArgument::REQUIRED), new InputArgument('bar', InputArgument::OPTIONAL)]));
- $input->validate();
- }
-
- public function testValidate()
- {
- $input = new ArrayInput(['name' => 'foo']);
- $input->bind(new InputDefinition([new InputArgument('name', InputArgument::REQUIRED)]));
-
- $this->assertNull($input->validate());
- }
-
- public function testSetGetInteractive()
- {
- $input = new ArrayInput([]);
- $this->assertTrue($input->isInteractive(), '->isInteractive() returns whether the input should be interactive or not');
- $input->setInteractive(false);
- $this->assertFalse($input->isInteractive(), '->setInteractive() changes the interactive flag');
- }
-
- public function testSetGetStream()
- {
- $input = new ArrayInput([]);
- $stream = fopen('php://memory', 'r+', false);
- $input->setStream($stream);
- $this->assertSame($stream, $input->getStream());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Input/StringInputTest.php b/www/wiki/vendor/symfony/console/Tests/Input/StringInputTest.php
deleted file mode 100644
index 7f218945..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Input/StringInputTest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Input;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\StringInput;
-
-class StringInputTest extends TestCase
-{
- /**
- * @dataProvider getTokenizeData
- */
- public function testTokenize($input, $tokens, $message)
- {
- $input = new StringInput($input);
- $r = new \ReflectionClass('Symfony\Component\Console\Input\ArgvInput');
- $p = $r->getProperty('tokens');
- $p->setAccessible(true);
- $this->assertEquals($tokens, $p->getValue($input), $message);
- }
-
- public function testInputOptionWithGivenString()
- {
- $definition = new InputDefinition(
- [new InputOption('foo', null, InputOption::VALUE_REQUIRED)]
- );
-
- // call to bind
- $input = new StringInput('--foo=bar');
- $input->bind($definition);
- $this->assertEquals('bar', $input->getOption('foo'));
- }
-
- public function getTokenizeData()
- {
- return [
- ['', [], '->tokenize() parses an empty string'],
- ['foo', ['foo'], '->tokenize() parses arguments'],
- [' foo bar ', ['foo', 'bar'], '->tokenize() ignores whitespaces between arguments'],
- ['"quoted"', ['quoted'], '->tokenize() parses quoted arguments'],
- ["'quoted'", ['quoted'], '->tokenize() parses quoted arguments'],
- ["'a\rb\nc\td'", ["a\rb\nc\td"], '->tokenize() parses whitespace chars in strings'],
- ["'a'\r'b'\n'c'\t'd'", ['a', 'b', 'c', 'd'], '->tokenize() parses whitespace chars between args as spaces'],
- ['\"quoted\"', ['"quoted"'], '->tokenize() parses escaped-quoted arguments'],
- ["\'quoted\'", ['\'quoted\''], '->tokenize() parses escaped-quoted arguments'],
- ['-a', ['-a'], '->tokenize() parses short options'],
- ['-azc', ['-azc'], '->tokenize() parses aggregated short options'],
- ['-awithavalue', ['-awithavalue'], '->tokenize() parses short options with a value'],
- ['-a"foo bar"', ['-afoo bar'], '->tokenize() parses short options with a value'],
- ['-a"foo bar""foo bar"', ['-afoo barfoo bar'], '->tokenize() parses short options with a value'],
- ['-a\'foo bar\'', ['-afoo bar'], '->tokenize() parses short options with a value'],
- ['-a\'foo bar\'\'foo bar\'', ['-afoo barfoo bar'], '->tokenize() parses short options with a value'],
- ['-a\'foo bar\'"foo bar"', ['-afoo barfoo bar'], '->tokenize() parses short options with a value'],
- ['--long-option', ['--long-option'], '->tokenize() parses long options'],
- ['--long-option=foo', ['--long-option=foo'], '->tokenize() parses long options with a value'],
- ['--long-option="foo bar"', ['--long-option=foo bar'], '->tokenize() parses long options with a value'],
- ['--long-option="foo bar""another"', ['--long-option=foo baranother'], '->tokenize() parses long options with a value'],
- ['--long-option=\'foo bar\'', ['--long-option=foo bar'], '->tokenize() parses long options with a value'],
- ["--long-option='foo bar''another'", ['--long-option=foo baranother'], '->tokenize() parses long options with a value'],
- ["--long-option='foo bar'\"another\"", ['--long-option=foo baranother'], '->tokenize() parses long options with a value'],
- ['foo -a -ffoo --long bar', ['foo', '-a', '-ffoo', '--long', 'bar'], '->tokenize() parses when several arguments and options'],
- ];
- }
-
- public function testToString()
- {
- $input = new StringInput('-f foo');
- $this->assertEquals('-f foo', (string) $input);
-
- $input = new StringInput('-f --bar=foo "a b c d"');
- $this->assertEquals('-f --bar=foo '.escapeshellarg('a b c d'), (string) $input);
-
- $input = new StringInput('-f --bar=foo \'a b c d\' '."'A\nB\\'C'");
- $this->assertEquals('-f --bar=foo '.escapeshellarg('a b c d').' '.escapeshellarg("A\nB'C"), (string) $input);
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Logger/ConsoleLoggerTest.php b/www/wiki/vendor/symfony/console/Tests/Logger/ConsoleLoggerTest.php
deleted file mode 100644
index efeec423..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Logger/ConsoleLoggerTest.php
+++ /dev/null
@@ -1,215 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Logger;
-
-use PHPUnit\Framework\TestCase;
-use Psr\Log\LoggerInterface;
-use Psr\Log\LogLevel;
-use Symfony\Component\Console\Logger\ConsoleLogger;
-use Symfony\Component\Console\Output\BufferedOutput;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Tests\Fixtures\DummyOutput;
-
-/**
- * Console logger test.
- *
- * @author Kévin Dunglas <dunglas@gmail.com>
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class ConsoleLoggerTest extends TestCase
-{
- /**
- * @var DummyOutput
- */
- protected $output;
-
- /**
- * @return LoggerInterface
- */
- public function getLogger()
- {
- $this->output = new DummyOutput(OutputInterface::VERBOSITY_VERBOSE);
-
- return new ConsoleLogger($this->output, [
- LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::INFO => OutputInterface::VERBOSITY_NORMAL,
- LogLevel::DEBUG => OutputInterface::VERBOSITY_NORMAL,
- ]);
- }
-
- /**
- * Return the log messages in order.
- *
- * @return string[]
- */
- public function getLogs()
- {
- return $this->output->getLogs();
- }
-
- /**
- * @dataProvider provideOutputMappingParams
- */
- public function testOutputMapping($logLevel, $outputVerbosity, $isOutput, $addVerbosityLevelMap = [])
- {
- $out = new BufferedOutput($outputVerbosity);
- $logger = new ConsoleLogger($out, $addVerbosityLevelMap);
- $logger->log($logLevel, 'foo bar');
- $logs = $out->fetch();
- $this->assertEquals($isOutput ? "[$logLevel] foo bar".PHP_EOL : '', $logs);
- }
-
- public function provideOutputMappingParams()
- {
- $quietMap = [LogLevel::EMERGENCY => OutputInterface::VERBOSITY_QUIET];
-
- return [
- [LogLevel::EMERGENCY, OutputInterface::VERBOSITY_NORMAL, true],
- [LogLevel::WARNING, OutputInterface::VERBOSITY_NORMAL, true],
- [LogLevel::INFO, OutputInterface::VERBOSITY_NORMAL, false],
- [LogLevel::DEBUG, OutputInterface::VERBOSITY_NORMAL, false],
- [LogLevel::INFO, OutputInterface::VERBOSITY_VERBOSE, false],
- [LogLevel::INFO, OutputInterface::VERBOSITY_VERY_VERBOSE, true],
- [LogLevel::DEBUG, OutputInterface::VERBOSITY_VERY_VERBOSE, false],
- [LogLevel::DEBUG, OutputInterface::VERBOSITY_DEBUG, true],
- [LogLevel::ALERT, OutputInterface::VERBOSITY_QUIET, false],
- [LogLevel::EMERGENCY, OutputInterface::VERBOSITY_QUIET, false],
- [LogLevel::ALERT, OutputInterface::VERBOSITY_QUIET, false, $quietMap],
- [LogLevel::EMERGENCY, OutputInterface::VERBOSITY_QUIET, true, $quietMap],
- ];
- }
-
- public function testHasErrored()
- {
- $logger = new ConsoleLogger(new BufferedOutput());
-
- $this->assertFalse($logger->hasErrored());
-
- $logger->warning('foo');
- $this->assertFalse($logger->hasErrored());
-
- $logger->error('bar');
- $this->assertTrue($logger->hasErrored());
- }
-
- public function testImplements()
- {
- $this->assertInstanceOf('Psr\Log\LoggerInterface', $this->getLogger());
- }
-
- /**
- * @dataProvider provideLevelsAndMessages
- */
- public function testLogsAtAllLevels($level, $message)
- {
- $logger = $this->getLogger();
- $logger->{$level}($message, ['user' => 'Bob']);
- $logger->log($level, $message, ['user' => 'Bob']);
-
- $expected = [
- $level.' message of level '.$level.' with context: Bob',
- $level.' message of level '.$level.' with context: Bob',
- ];
- $this->assertEquals($expected, $this->getLogs());
- }
-
- public function provideLevelsAndMessages()
- {
- return [
- LogLevel::EMERGENCY => [LogLevel::EMERGENCY, 'message of level emergency with context: {user}'],
- LogLevel::ALERT => [LogLevel::ALERT, 'message of level alert with context: {user}'],
- LogLevel::CRITICAL => [LogLevel::CRITICAL, 'message of level critical with context: {user}'],
- LogLevel::ERROR => [LogLevel::ERROR, 'message of level error with context: {user}'],
- LogLevel::WARNING => [LogLevel::WARNING, 'message of level warning with context: {user}'],
- LogLevel::NOTICE => [LogLevel::NOTICE, 'message of level notice with context: {user}'],
- LogLevel::INFO => [LogLevel::INFO, 'message of level info with context: {user}'],
- LogLevel::DEBUG => [LogLevel::DEBUG, 'message of level debug with context: {user}'],
- ];
- }
-
- /**
- * @expectedException \Psr\Log\InvalidArgumentException
- */
- public function testThrowsOnInvalidLevel()
- {
- $logger = $this->getLogger();
- $logger->log('invalid level', 'Foo');
- }
-
- public function testContextReplacement()
- {
- $logger = $this->getLogger();
- $logger->info('{Message {nothing} {user} {foo.bar} a}', ['user' => 'Bob', 'foo.bar' => 'Bar']);
-
- $expected = ['info {Message {nothing} Bob Bar a}'];
- $this->assertEquals($expected, $this->getLogs());
- }
-
- public function testObjectCastToString()
- {
- if (method_exists($this, 'createPartialMock')) {
- $dummy = $this->createPartialMock('Symfony\Component\Console\Tests\Logger\DummyTest', ['__toString']);
- } else {
- $dummy = $this->getMock('Symfony\Component\Console\Tests\Logger\DummyTest', ['__toString']);
- }
- $dummy->method('__toString')->will($this->returnValue('DUMMY'));
-
- $this->getLogger()->warning($dummy);
-
- $expected = ['warning DUMMY'];
- $this->assertEquals($expected, $this->getLogs());
- }
-
- public function testContextCanContainAnything()
- {
- $context = [
- 'bool' => true,
- 'null' => null,
- 'string' => 'Foo',
- 'int' => 0,
- 'float' => 0.5,
- 'nested' => ['with object' => new DummyTest()],
- 'object' => new \DateTime(),
- 'resource' => fopen('php://memory', 'r'),
- ];
-
- $this->getLogger()->warning('Crazy context data', $context);
-
- $expected = ['warning Crazy context data'];
- $this->assertEquals($expected, $this->getLogs());
- }
-
- public function testContextExceptionKeyCanBeExceptionOrOtherValues()
- {
- $logger = $this->getLogger();
- $logger->warning('Random message', ['exception' => 'oops']);
- $logger->critical('Uncaught Exception!', ['exception' => new \LogicException('Fail')]);
-
- $expected = [
- 'warning Random message',
- 'critical Uncaught Exception!',
- ];
- $this->assertEquals($expected, $this->getLogs());
- }
-}
-
-class DummyTest
-{
- public function __toString()
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Output/ConsoleOutputTest.php b/www/wiki/vendor/symfony/console/Tests/Output/ConsoleOutputTest.php
deleted file mode 100644
index db39a02b..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Output/ConsoleOutputTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Output;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Output\ConsoleOutput;
-use Symfony\Component\Console\Output\Output;
-
-class ConsoleOutputTest extends TestCase
-{
- public function testConstructor()
- {
- $output = new ConsoleOutput(Output::VERBOSITY_QUIET, true);
- $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity(), '__construct() takes the verbosity as its first argument');
- $this->assertSame($output->getFormatter(), $output->getErrorOutput()->getFormatter(), '__construct() takes a formatter or null as the third argument');
- }
-
- public function testSetFormatter()
- {
- $output = new ConsoleOutput();
- $outputFormatter = new OutputFormatter();
- $output->setFormatter($outputFormatter);
- $this->assertSame($outputFormatter, $output->getFormatter());
- }
-
- public function testSetVerbosity()
- {
- $output = new ConsoleOutput();
- $output->setVerbosity(Output::VERBOSITY_VERBOSE);
- $this->assertSame(Output::VERBOSITY_VERBOSE, $output->getVerbosity());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Output/NullOutputTest.php b/www/wiki/vendor/symfony/console/Tests/Output/NullOutputTest.php
deleted file mode 100644
index b7ff4be3..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Output/NullOutputTest.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Output;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Output\NullOutput;
-use Symfony\Component\Console\Output\Output;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class NullOutputTest extends TestCase
-{
- public function testConstructor()
- {
- $output = new NullOutput();
-
- ob_start();
- $output->write('foo');
- $buffer = ob_get_clean();
-
- $this->assertSame('', $buffer, '->write() does nothing (at least nothing is printed)');
- $this->assertFalse($output->isDecorated(), '->isDecorated() returns false');
- }
-
- public function testVerbosity()
- {
- $output = new NullOutput();
- $this->assertSame(OutputInterface::VERBOSITY_QUIET, $output->getVerbosity(), '->getVerbosity() returns VERBOSITY_QUIET for NullOutput by default');
-
- $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
- $this->assertSame(OutputInterface::VERBOSITY_QUIET, $output->getVerbosity(), '->getVerbosity() always returns VERBOSITY_QUIET for NullOutput');
- }
-
- public function testSetFormatter()
- {
- $output = new NullOutput();
- $outputFormatter = new OutputFormatter();
- $output->setFormatter($outputFormatter);
- $this->assertNotSame($outputFormatter, $output->getFormatter());
- }
-
- public function testSetVerbosity()
- {
- $output = new NullOutput();
- $output->setVerbosity(Output::VERBOSITY_NORMAL);
- $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity());
- }
-
- public function testSetDecorated()
- {
- $output = new NullOutput();
- $output->setDecorated(true);
- $this->assertFalse($output->isDecorated());
- }
-
- public function testIsQuiet()
- {
- $output = new NullOutput();
- $this->assertTrue($output->isQuiet());
- }
-
- public function testIsVerbose()
- {
- $output = new NullOutput();
- $this->assertFalse($output->isVerbose());
- }
-
- public function testIsVeryVerbose()
- {
- $output = new NullOutput();
- $this->assertFalse($output->isVeryVerbose());
- }
-
- public function testIsDebug()
- {
- $output = new NullOutput();
- $this->assertFalse($output->isDebug());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Output/OutputTest.php b/www/wiki/vendor/symfony/console/Tests/Output/OutputTest.php
deleted file mode 100644
index 58659f28..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Output/OutputTest.php
+++ /dev/null
@@ -1,176 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Output;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-use Symfony\Component\Console\Output\Output;
-
-class OutputTest extends TestCase
-{
- public function testConstructor()
- {
- $output = new TestOutput(Output::VERBOSITY_QUIET, true);
- $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity(), '__construct() takes the verbosity as its first argument');
- $this->assertTrue($output->isDecorated(), '__construct() takes the decorated flag as its second argument');
- }
-
- public function testSetIsDecorated()
- {
- $output = new TestOutput();
- $output->setDecorated(true);
- $this->assertTrue($output->isDecorated(), 'setDecorated() sets the decorated flag');
- }
-
- public function testSetGetVerbosity()
- {
- $output = new TestOutput();
- $output->setVerbosity(Output::VERBOSITY_QUIET);
- $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity(), '->setVerbosity() sets the verbosity');
-
- $this->assertTrue($output->isQuiet());
- $this->assertFalse($output->isVerbose());
- $this->assertFalse($output->isVeryVerbose());
- $this->assertFalse($output->isDebug());
-
- $output->setVerbosity(Output::VERBOSITY_NORMAL);
- $this->assertFalse($output->isQuiet());
- $this->assertFalse($output->isVerbose());
- $this->assertFalse($output->isVeryVerbose());
- $this->assertFalse($output->isDebug());
-
- $output->setVerbosity(Output::VERBOSITY_VERBOSE);
- $this->assertFalse($output->isQuiet());
- $this->assertTrue($output->isVerbose());
- $this->assertFalse($output->isVeryVerbose());
- $this->assertFalse($output->isDebug());
-
- $output->setVerbosity(Output::VERBOSITY_VERY_VERBOSE);
- $this->assertFalse($output->isQuiet());
- $this->assertTrue($output->isVerbose());
- $this->assertTrue($output->isVeryVerbose());
- $this->assertFalse($output->isDebug());
-
- $output->setVerbosity(Output::VERBOSITY_DEBUG);
- $this->assertFalse($output->isQuiet());
- $this->assertTrue($output->isVerbose());
- $this->assertTrue($output->isVeryVerbose());
- $this->assertTrue($output->isDebug());
- }
-
- public function testWriteWithVerbosityQuiet()
- {
- $output = new TestOutput(Output::VERBOSITY_QUIET);
- $output->writeln('foo');
- $this->assertEquals('', $output->output, '->writeln() outputs nothing if verbosity is set to VERBOSITY_QUIET');
- }
-
- public function testWriteAnArrayOfMessages()
- {
- $output = new TestOutput();
- $output->writeln(['foo', 'bar']);
- $this->assertEquals("foo\nbar\n", $output->output, '->writeln() can take an array of messages to output');
- }
-
- /**
- * @dataProvider provideWriteArguments
- */
- public function testWriteRawMessage($message, $type, $expectedOutput)
- {
- $output = new TestOutput();
- $output->writeln($message, $type);
- $this->assertEquals($expectedOutput, $output->output);
- }
-
- public function provideWriteArguments()
- {
- return [
- ['<info>foo</info>', Output::OUTPUT_RAW, "<info>foo</info>\n"],
- ['<info>foo</info>', Output::OUTPUT_PLAIN, "foo\n"],
- ];
- }
-
- public function testWriteWithDecorationTurnedOff()
- {
- $output = new TestOutput();
- $output->setDecorated(false);
- $output->writeln('<info>foo</info>');
- $this->assertEquals("foo\n", $output->output, '->writeln() strips decoration tags if decoration is set to false');
- }
-
- public function testWriteDecoratedMessage()
- {
- $fooStyle = new OutputFormatterStyle('yellow', 'red', ['blink']);
- $output = new TestOutput();
- $output->getFormatter()->setStyle('FOO', $fooStyle);
- $output->setDecorated(true);
- $output->writeln('<foo>foo</foo>');
- $this->assertEquals("\033[33;41;5mfoo\033[39;49;25m\n", $output->output, '->writeln() decorates the output');
- }
-
- public function testWriteWithInvalidStyle()
- {
- $output = new TestOutput();
-
- $output->clear();
- $output->write('<bar>foo</bar>');
- $this->assertEquals('<bar>foo</bar>', $output->output, '->write() do nothing when a style does not exist');
-
- $output->clear();
- $output->writeln('<bar>foo</bar>');
- $this->assertEquals("<bar>foo</bar>\n", $output->output, '->writeln() do nothing when a style does not exist');
- }
-
- /**
- * @dataProvider verbosityProvider
- */
- public function testWriteWithVerbosityOption($verbosity, $expected, $msg)
- {
- $output = new TestOutput();
-
- $output->setVerbosity($verbosity);
- $output->clear();
- $output->write('1', false);
- $output->write('2', false, Output::VERBOSITY_QUIET);
- $output->write('3', false, Output::VERBOSITY_NORMAL);
- $output->write('4', false, Output::VERBOSITY_VERBOSE);
- $output->write('5', false, Output::VERBOSITY_VERY_VERBOSE);
- $output->write('6', false, Output::VERBOSITY_DEBUG);
- $this->assertEquals($expected, $output->output, $msg);
- }
-
- public function verbosityProvider()
- {
- return [
- [Output::VERBOSITY_QUIET, '2', '->write() in QUIET mode only outputs when an explicit QUIET verbosity is passed'],
- [Output::VERBOSITY_NORMAL, '123', '->write() in NORMAL mode outputs anything below an explicit VERBOSE verbosity'],
- [Output::VERBOSITY_VERBOSE, '1234', '->write() in VERBOSE mode outputs anything below an explicit VERY_VERBOSE verbosity'],
- [Output::VERBOSITY_VERY_VERBOSE, '12345', '->write() in VERY_VERBOSE mode outputs anything below an explicit DEBUG verbosity'],
- [Output::VERBOSITY_DEBUG, '123456', '->write() in DEBUG mode outputs everything'],
- ];
- }
-}
-
-class TestOutput extends Output
-{
- public $output = '';
-
- public function clear()
- {
- $this->output = '';
- }
-
- protected function doWrite($message, $newline)
- {
- $this->output .= $message.($newline ? "\n" : '');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Output/StreamOutputTest.php b/www/wiki/vendor/symfony/console/Tests/Output/StreamOutputTest.php
deleted file mode 100644
index 780b5681..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Output/StreamOutputTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Output;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Output\Output;
-use Symfony\Component\Console\Output\StreamOutput;
-
-class StreamOutputTest extends TestCase
-{
- protected $stream;
-
- protected function setUp()
- {
- $this->stream = fopen('php://memory', 'a', false);
- }
-
- protected function tearDown()
- {
- $this->stream = null;
- }
-
- public function testConstructor()
- {
- $output = new StreamOutput($this->stream, Output::VERBOSITY_QUIET, true);
- $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity(), '__construct() takes the verbosity as its first argument');
- $this->assertTrue($output->isDecorated(), '__construct() takes the decorated flag as its second argument');
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The StreamOutput class needs a stream as its first argument.
- */
- public function testStreamIsRequired()
- {
- new StreamOutput('foo');
- }
-
- public function testGetStream()
- {
- $output = new StreamOutput($this->stream);
- $this->assertEquals($this->stream, $output->getStream(), '->getStream() returns the current stream');
- }
-
- public function testDoWrite()
- {
- $output = new StreamOutput($this->stream);
- $output->writeln('foo');
- rewind($output->getStream());
- $this->assertEquals('foo'.PHP_EOL, stream_get_contents($output->getStream()), '->doWrite() writes to the stream');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Question/ConfirmationQuestionTest.php b/www/wiki/vendor/symfony/console/Tests/Question/ConfirmationQuestionTest.php
deleted file mode 100644
index 83899772..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Question/ConfirmationQuestionTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Question;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Question\ConfirmationQuestion;
-
-class ConfirmationQuestionTest extends TestCase
-{
- /**
- * @dataProvider normalizerUsecases
- */
- public function testDefaultRegexUsecases($default, $answers, $expected, $message)
- {
- $sut = new ConfirmationQuestion('A question', $default);
-
- foreach ($answers as $answer) {
- $normalizer = $sut->getNormalizer();
- $actual = $normalizer($answer);
- $this->assertEquals($expected, $actual, sprintf($message, $answer));
- }
- }
-
- public function normalizerUsecases()
- {
- return [
- [
- true,
- ['y', 'Y', 'yes', 'YES', 'yEs', ''],
- true,
- 'When default is true, the normalizer must return true for "%s"',
- ],
- [
- true,
- ['n', 'N', 'no', 'NO', 'nO', 'foo', '1', '0'],
- false,
- 'When default is true, the normalizer must return false for "%s"',
- ],
- [
- false,
- ['y', 'Y', 'yes', 'YES', 'yEs'],
- true,
- 'When default is false, the normalizer must return true for "%s"',
- ],
- [
- false,
- ['n', 'N', 'no', 'NO', 'nO', 'foo', '1', '0', ''],
- false,
- 'When default is false, the normalizer must return false for "%s"',
- ],
- ];
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Style/SymfonyStyleTest.php b/www/wiki/vendor/symfony/console/Tests/Style/SymfonyStyleTest.php
deleted file mode 100644
index e6e061f4..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Style/SymfonyStyleTest.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Style;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-use Symfony\Component\Console\Tester\CommandTester;
-
-class SymfonyStyleTest extends TestCase
-{
- /** @var Command */
- protected $command;
- /** @var CommandTester */
- protected $tester;
-
- protected function setUp()
- {
- putenv('COLUMNS=121');
- $this->command = new Command('sfstyle');
- $this->tester = new CommandTester($this->command);
- }
-
- protected function tearDown()
- {
- putenv('COLUMNS');
- $this->command = null;
- $this->tester = null;
- }
-
- /**
- * @dataProvider inputCommandToOutputFilesProvider
- */
- public function testOutputs($inputCommandFilepath, $outputFilepath)
- {
- $code = require $inputCommandFilepath;
- $this->command->setCode($code);
- $this->tester->execute([], ['interactive' => false, 'decorated' => false]);
- $this->assertStringEqualsFile($outputFilepath, $this->tester->getDisplay(true));
- }
-
- /**
- * @dataProvider inputInteractiveCommandToOutputFilesProvider
- */
- public function testInteractiveOutputs($inputCommandFilepath, $outputFilepath)
- {
- $code = require $inputCommandFilepath;
- $this->command->setCode($code);
- $this->tester->execute([], ['interactive' => true, 'decorated' => false]);
- $this->assertStringEqualsFile($outputFilepath, $this->tester->getDisplay(true));
- }
-
- public function inputInteractiveCommandToOutputFilesProvider()
- {
- $baseDir = __DIR__.'/../Fixtures/Style/SymfonyStyle';
-
- return array_map(null, glob($baseDir.'/command/interactive_command_*.php'), glob($baseDir.'/output/interactive_output_*.txt'));
- }
-
- public function inputCommandToOutputFilesProvider()
- {
- $baseDir = __DIR__.'/../Fixtures/Style/SymfonyStyle';
-
- return array_map(null, glob($baseDir.'/command/command_*.php'), glob($baseDir.'/output/output_*.txt'));
- }
-
- public function testGetErrorStyle()
- {
- $input = $this->getMockBuilder(InputInterface::class)->getMock();
-
- $errorOutput = $this->getMockBuilder(OutputInterface::class)->getMock();
- $errorOutput
- ->method('getFormatter')
- ->willReturn(new OutputFormatter());
- $errorOutput
- ->expects($this->once())
- ->method('write');
-
- $output = $this->getMockBuilder(ConsoleOutputInterface::class)->getMock();
- $output
- ->method('getFormatter')
- ->willReturn(new OutputFormatter());
- $output
- ->expects($this->once())
- ->method('getErrorOutput')
- ->willReturn($errorOutput);
-
- $io = new SymfonyStyle($input, $output);
- $io->getErrorStyle()->write('');
- }
-
- public function testGetErrorStyleUsesTheCurrentOutputIfNoErrorOutputIsAvailable()
- {
- $output = $this->getMockBuilder(OutputInterface::class)->getMock();
- $output
- ->method('getFormatter')
- ->willReturn(new OutputFormatter());
-
- $style = new SymfonyStyle($this->getMockBuilder(InputInterface::class)->getMock(), $output);
-
- $this->assertInstanceOf(SymfonyStyle::class, $style->getErrorStyle());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/TerminalTest.php b/www/wiki/vendor/symfony/console/Tests/TerminalTest.php
deleted file mode 100644
index 91af1d0a..00000000
--- a/www/wiki/vendor/symfony/console/Tests/TerminalTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Terminal;
-
-class TerminalTest extends TestCase
-{
- public function test()
- {
- putenv('COLUMNS=100');
- putenv('LINES=50');
- $terminal = new Terminal();
- $this->assertSame(100, $terminal->getWidth());
- $this->assertSame(50, $terminal->getHeight());
-
- putenv('COLUMNS=120');
- putenv('LINES=60');
- $terminal = new Terminal();
- $this->assertSame(120, $terminal->getWidth());
- $this->assertSame(60, $terminal->getHeight());
- }
-
- public function test_zero_values()
- {
- putenv('COLUMNS=0');
- putenv('LINES=0');
-
- $terminal = new Terminal();
-
- $this->assertSame(0, $terminal->getWidth());
- $this->assertSame(0, $terminal->getHeight());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Tester/ApplicationTesterTest.php b/www/wiki/vendor/symfony/console/Tests/Tester/ApplicationTesterTest.php
deleted file mode 100644
index 74c35620..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Tester/ApplicationTesterTest.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Tester;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Output\Output;
-use Symfony\Component\Console\Tester\ApplicationTester;
-
-class ApplicationTesterTest extends TestCase
-{
- protected $application;
- protected $tester;
-
- protected function setUp()
- {
- $this->application = new Application();
- $this->application->setAutoExit(false);
- $this->application->register('foo')
- ->addArgument('foo')
- ->setCode(function ($input, $output) { $output->writeln('foo'); })
- ;
-
- $this->tester = new ApplicationTester($this->application);
- $this->tester->run(['command' => 'foo', 'foo' => 'bar'], ['interactive' => false, 'decorated' => false, 'verbosity' => Output::VERBOSITY_VERBOSE]);
- }
-
- protected function tearDown()
- {
- $this->application = null;
- $this->tester = null;
- }
-
- public function testRun()
- {
- $this->assertFalse($this->tester->getInput()->isInteractive(), '->execute() takes an interactive option');
- $this->assertFalse($this->tester->getOutput()->isDecorated(), '->execute() takes a decorated option');
- $this->assertEquals(Output::VERBOSITY_VERBOSE, $this->tester->getOutput()->getVerbosity(), '->execute() takes a verbosity option');
- }
-
- public function testGetInput()
- {
- $this->assertEquals('bar', $this->tester->getInput()->getArgument('foo'), '->getInput() returns the current input instance');
- }
-
- public function testGetOutput()
- {
- rewind($this->tester->getOutput()->getStream());
- $this->assertEquals('foo'.PHP_EOL, stream_get_contents($this->tester->getOutput()->getStream()), '->getOutput() returns the current output instance');
- }
-
- public function testGetDisplay()
- {
- $this->assertEquals('foo'.PHP_EOL, $this->tester->getDisplay(), '->getDisplay() returns the display of the last execution');
- }
-
- public function testGetStatusCode()
- {
- $this->assertSame(0, $this->tester->getStatusCode(), '->getStatusCode() returns the status code');
- }
-}
diff --git a/www/wiki/vendor/symfony/console/Tests/Tester/CommandTesterTest.php b/www/wiki/vendor/symfony/console/Tests/Tester/CommandTesterTest.php
deleted file mode 100644
index f916b182..00000000
--- a/www/wiki/vendor/symfony/console/Tests/Tester/CommandTesterTest.php
+++ /dev/null
@@ -1,216 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Console\Tests\Tester;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\HelperSet;
-use Symfony\Component\Console\Helper\QuestionHelper;
-use Symfony\Component\Console\Output\Output;
-use Symfony\Component\Console\Question\ChoiceQuestion;
-use Symfony\Component\Console\Question\Question;
-use Symfony\Component\Console\Style\SymfonyStyle;
-use Symfony\Component\Console\Tester\CommandTester;
-
-class CommandTesterTest extends TestCase
-{
- protected $command;
- protected $tester;
-
- protected function setUp()
- {
- $this->command = new Command('foo');
- $this->command->addArgument('command');
- $this->command->addArgument('foo');
- $this->command->setCode(function ($input, $output) { $output->writeln('foo'); });
-
- $this->tester = new CommandTester($this->command);
- $this->tester->execute(['foo' => 'bar'], ['interactive' => false, 'decorated' => false, 'verbosity' => Output::VERBOSITY_VERBOSE]);
- }
-
- protected function tearDown()
- {
- $this->command = null;
- $this->tester = null;
- }
-
- public function testExecute()
- {
- $this->assertFalse($this->tester->getInput()->isInteractive(), '->execute() takes an interactive option');
- $this->assertFalse($this->tester->getOutput()->isDecorated(), '->execute() takes a decorated option');
- $this->assertEquals(Output::VERBOSITY_VERBOSE, $this->tester->getOutput()->getVerbosity(), '->execute() takes a verbosity option');
- }
-
- public function testGetInput()
- {
- $this->assertEquals('bar', $this->tester->getInput()->getArgument('foo'), '->getInput() returns the current input instance');
- }
-
- public function testGetOutput()
- {
- rewind($this->tester->getOutput()->getStream());
- $this->assertEquals('foo'.PHP_EOL, stream_get_contents($this->tester->getOutput()->getStream()), '->getOutput() returns the current output instance');
- }
-
- public function testGetDisplay()
- {
- $this->assertEquals('foo'.PHP_EOL, $this->tester->getDisplay(), '->getDisplay() returns the display of the last execution');
- }
-
- public function testGetStatusCode()
- {
- $this->assertSame(0, $this->tester->getStatusCode(), '->getStatusCode() returns the status code');
- }
-
- public function testCommandFromApplication()
- {
- $application = new Application();
- $application->setAutoExit(false);
-
- $command = new Command('foo');
- $command->setCode(function ($input, $output) { $output->writeln('foo'); });
-
- $application->add($command);
-
- $tester = new CommandTester($application->find('foo'));
-
- // check that there is no need to pass the command name here
- $this->assertEquals(0, $tester->execute([]));
- }
-
- public function testCommandWithInputs()
- {
- $questions = [
- 'What\'s your name?',
- 'How are you?',
- 'Where do you come from?',
- ];
-
- $command = new Command('foo');
- $command->setHelperSet(new HelperSet([new QuestionHelper()]));
- $command->setCode(function ($input, $output) use ($questions, $command) {
- $helper = $command->getHelper('question');
- $helper->ask($input, $output, new Question($questions[0]));
- $helper->ask($input, $output, new Question($questions[1]));
- $helper->ask($input, $output, new Question($questions[2]));
- });
-
- $tester = new CommandTester($command);
- $tester->setInputs(['Bobby', 'Fine', 'France']);
- $tester->execute([]);
-
- $this->assertEquals(0, $tester->getStatusCode());
- $this->assertEquals(implode('', $questions), $tester->getDisplay(true));
- }
-
- public function testCommandWithDefaultInputs()
- {
- $questions = [
- 'What\'s your name?',
- 'How are you?',
- 'Where do you come from?',
- ];
-
- $command = new Command('foo');
- $command->setHelperSet(new HelperSet([new QuestionHelper()]));
- $command->setCode(function ($input, $output) use ($questions, $command) {
- $helper = $command->getHelper('question');
- $helper->ask($input, $output, new Question($questions[0], 'Bobby'));
- $helper->ask($input, $output, new Question($questions[1], 'Fine'));
- $helper->ask($input, $output, new Question($questions[2], 'France'));
- });
-
- $tester = new CommandTester($command);
- $tester->setInputs(['', '', '']);
- $tester->execute([]);
-
- $this->assertEquals(0, $tester->getStatusCode());
- $this->assertEquals(implode('', $questions), $tester->getDisplay(true));
- }
-
- /**
- * @expectedException \RuntimeException
- * @expectedExceptionMessage Aborted.
- */
- public function testCommandWithWrongInputsNumber()
- {
- $questions = [
- 'What\'s your name?',
- 'How are you?',
- 'Where do you come from?',
- ];
-
- $command = new Command('foo');
- $command->setHelperSet(new HelperSet([new QuestionHelper()]));
- $command->setCode(function ($input, $output) use ($questions, $command) {
- $helper = $command->getHelper('question');
- $helper->ask($input, $output, new ChoiceQuestion('choice', ['a', 'b']));
- $helper->ask($input, $output, new Question($questions[0]));
- $helper->ask($input, $output, new Question($questions[1]));
- $helper->ask($input, $output, new Question($questions[2]));
- });
-
- $tester = new CommandTester($command);
- $tester->setInputs(['a', 'Bobby', 'Fine']);
- $tester->execute([]);
- }
-
- /**
- * @expectedException \RuntimeException
- * @expectedExceptionMessage Aborted.
- */
- public function testCommandWithQuestionsButNoInputs()
- {
- $questions = [
- 'What\'s your name?',
- 'How are you?',
- 'Where do you come from?',
- ];
-
- $command = new Command('foo');
- $command->setHelperSet(new HelperSet([new QuestionHelper()]));
- $command->setCode(function ($input, $output) use ($questions, $command) {
- $helper = $command->getHelper('question');
- $helper->ask($input, $output, new ChoiceQuestion('choice', ['a', 'b']));
- $helper->ask($input, $output, new Question($questions[0]));
- $helper->ask($input, $output, new Question($questions[1]));
- $helper->ask($input, $output, new Question($questions[2]));
- });
-
- $tester = new CommandTester($command);
- $tester->execute([]);
- }
-
- public function testSymfonyStyleCommandWithInputs()
- {
- $questions = [
- 'What\'s your name?',
- 'How are you?',
- 'Where do you come from?',
- ];
-
- $command = new Command('foo');
- $command->setCode(function ($input, $output) use ($questions, $command) {
- $io = new SymfonyStyle($input, $output);
- $io->ask($questions[0]);
- $io->ask($questions[1]);
- $io->ask($questions[2]);
- });
-
- $tester = new CommandTester($command);
- $tester->setInputs(['Bobby', 'Fine', 'France']);
- $tester->execute([]);
-
- $this->assertEquals(0, $tester->getStatusCode());
- }
-}
diff --git a/www/wiki/vendor/symfony/console/composer.json b/www/wiki/vendor/symfony/console/composer.json
deleted file mode 100644
index d994a460..00000000
--- a/www/wiki/vendor/symfony/console/composer.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "name": "symfony/console",
- "type": "library",
- "description": "Symfony Console Component",
- "keywords": [],
- "homepage": "https://symfony.com",
- "license": "MIT",
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-mbstring": "~1.0",
- "symfony/debug": "~2.8|~3.0|~4.0"
- },
- "require-dev": {
- "symfony/config": "~3.3|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0",
- "psr/log": "~1.0"
- },
- "provide": {
- "psr/log-implementation": "1.0"
- },
- "suggest": {
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": "",
- "psr/log": "For using the console logger"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "autoload": {
- "psr-4": { "Symfony\\Component\\Console\\": "" },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "minimum-stability": "dev",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/console/phpunit.xml.dist b/www/wiki/vendor/symfony/console/phpunit.xml.dist
deleted file mode 100644
index 15e7e52a..00000000
--- a/www/wiki/vendor/symfony/console/phpunit.xml.dist
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.2/phpunit.xsd"
- backupGlobals="false"
- colors="true"
- bootstrap="vendor/autoload.php"
- failOnRisky="true"
- failOnWarning="true"
->
- <php>
- <ini name="error_reporting" value="-1" />
- </php>
-
- <testsuites>
- <testsuite name="Symfony Console Component Test Suite">
- <directory>./Tests/</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist>
- <directory>./</directory>
- <exclude>
- <directory>./Resources</directory>
- <directory>./Tests</directory>
- <directory>./vendor</directory>
- </exclude>
- </whitelist>
- </filter>
-
- <listeners>
- <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
- <arguments>
- <array>
- <element key="time-sensitive"><string>Symfony\Component\Console</string></element>
- </array>
- </arguments>
- </listener>
- </listeners>
-</phpunit>
diff --git a/www/wiki/vendor/symfony/debug/.gitignore b/www/wiki/vendor/symfony/debug/.gitignore
deleted file mode 100644
index c49a5d8d..00000000
--- a/www/wiki/vendor/symfony/debug/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-vendor/
-composer.lock
-phpunit.xml
diff --git a/www/wiki/vendor/symfony/debug/BufferingLogger.php b/www/wiki/vendor/symfony/debug/BufferingLogger.php
deleted file mode 100644
index e7db3a4c..00000000
--- a/www/wiki/vendor/symfony/debug/BufferingLogger.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug;
-
-use Psr\Log\AbstractLogger;
-
-/**
- * A buffering logger that stacks logs for later.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class BufferingLogger extends AbstractLogger
-{
- private $logs = [];
-
- public function log($level, $message, array $context = [])
- {
- $this->logs[] = [$level, $message, $context];
- }
-
- public function cleanLogs()
- {
- $logs = $this->logs;
- $this->logs = [];
-
- return $logs;
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/CHANGELOG.md b/www/wiki/vendor/symfony/debug/CHANGELOG.md
deleted file mode 100644
index 31c67eb6..00000000
--- a/www/wiki/vendor/symfony/debug/CHANGELOG.md
+++ /dev/null
@@ -1,64 +0,0 @@
-CHANGELOG
-=========
-
-3.4.0
------
-
-* deprecated `ErrorHandler::stackErrors()` and `ErrorHandler::unstackErrors()`
-
-3.3.0
------
-
-* deprecated the `ContextErrorException` class: use \ErrorException directly now
-
-3.2.0
------
-
-* `FlattenException::getTrace()` now returns additional type descriptions
- `integer` and `float`.
-
-
-3.0.0
------
-
-* removed classes, methods and interfaces deprecated in 2.x
-
-2.8.0
------
-
-* added BufferingLogger for errors that happen before a proper logger is configured
-* allow throwing from `__toString()` with `return trigger_error($e, E_USER_ERROR);`
-* deprecate ExceptionHandler::createResponse
-
-2.7.0
------
-
-* added deprecations checking for parent interfaces/classes to DebugClassLoader
-* added ZTS support to symfony_debug extension
-* added symfony_debug_backtrace() to symfony_debug extension
- to track the backtrace of fatal errors
-
-2.6.0
------
-
-* generalized ErrorHandler and ExceptionHandler,
- with some new methods and others deprecated
-* enhanced error messages for uncaught exceptions
-
-2.5.0
------
-
-* added ExceptionHandler::setHandler()
-* added UndefinedMethodFatalErrorHandler
-* deprecated DummyException
-
-2.4.0
------
-
- * added a DebugClassLoader able to wrap any autoloader providing a findFile method
- * improved error messages for not found classes and functions
-
-2.3.0
------
-
- * added the component
diff --git a/www/wiki/vendor/symfony/debug/Debug.php b/www/wiki/vendor/symfony/debug/Debug.php
deleted file mode 100644
index 498d3093..00000000
--- a/www/wiki/vendor/symfony/debug/Debug.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug;
-
-/**
- * Registers all the debug tools.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class Debug
-{
- private static $enabled = false;
-
- /**
- * Enables the debug tools.
- *
- * This method registers an error handler, an exception handler and a special class loader.
- *
- * @param int $errorReportingLevel The level of error reporting you want
- * @param bool $displayErrors Whether to display errors (for development) or just log them (for production)
- */
- public static function enable($errorReportingLevel = E_ALL, $displayErrors = true)
- {
- if (static::$enabled) {
- return;
- }
-
- static::$enabled = true;
-
- if (null !== $errorReportingLevel) {
- error_reporting($errorReportingLevel);
- } else {
- error_reporting(E_ALL);
- }
-
- if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
- ini_set('display_errors', 0);
- ExceptionHandler::register();
- } elseif ($displayErrors && (!filter_var(ini_get('log_errors'), FILTER_VALIDATE_BOOLEAN) || ini_get('error_log'))) {
- // CLI - display errors only if they're not already logged to STDERR
- ini_set('display_errors', 1);
- }
- if ($displayErrors) {
- ErrorHandler::register(new ErrorHandler(new BufferingLogger()));
- } else {
- ErrorHandler::register()->throwAt(0, true);
- }
-
- DebugClassLoader::enable();
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/DebugClassLoader.php b/www/wiki/vendor/symfony/debug/DebugClassLoader.php
deleted file mode 100644
index 310f7d4e..00000000
--- a/www/wiki/vendor/symfony/debug/DebugClassLoader.php
+++ /dev/null
@@ -1,447 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug;
-
-/**
- * Autoloader checking if the class is really defined in the file found.
- *
- * The ClassLoader will wrap all registered autoloaders
- * and will throw an exception if a file is found but does
- * not declare the class.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- * @author Christophe Coevoet <stof@notk.org>
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class DebugClassLoader
-{
- private $classLoader;
- private $isFinder;
- private $loaded = [];
- private static $caseCheck;
- private static $checkedClasses = [];
- private static $final = [];
- private static $finalMethods = [];
- private static $deprecated = [];
- private static $internal = [];
- private static $internalMethods = [];
- private static $php7Reserved = ['int' => 1, 'float' => 1, 'bool' => 1, 'string' => 1, 'true' => 1, 'false' => 1, 'null' => 1];
- private static $darwinCache = ['/' => ['/', []]];
-
- public function __construct(callable $classLoader)
- {
- $this->classLoader = $classLoader;
- $this->isFinder = \is_array($classLoader) && method_exists($classLoader[0], 'findFile');
-
- if (!isset(self::$caseCheck)) {
- $file = file_exists(__FILE__) ? __FILE__ : rtrim(realpath('.'), \DIRECTORY_SEPARATOR);
- $i = strrpos($file, \DIRECTORY_SEPARATOR);
- $dir = substr($file, 0, 1 + $i);
- $file = substr($file, 1 + $i);
- $test = strtoupper($file) === $file ? strtolower($file) : strtoupper($file);
- $test = realpath($dir.$test);
-
- if (false === $test || false === $i) {
- // filesystem is case sensitive
- self::$caseCheck = 0;
- } elseif (substr($test, -\strlen($file)) === $file) {
- // filesystem is case insensitive and realpath() normalizes the case of characters
- self::$caseCheck = 1;
- } elseif (false !== stripos(PHP_OS, 'darwin')) {
- // on MacOSX, HFS+ is case insensitive but realpath() doesn't normalize the case of characters
- self::$caseCheck = 2;
- } else {
- // filesystem case checks failed, fallback to disabling them
- self::$caseCheck = 0;
- }
- }
- }
-
- /**
- * Gets the wrapped class loader.
- *
- * @return callable The wrapped class loader
- */
- public function getClassLoader()
- {
- return $this->classLoader;
- }
-
- /**
- * Wraps all autoloaders.
- */
- public static function enable()
- {
- // Ensures we don't hit https://bugs.php.net/42098
- class_exists('Symfony\Component\Debug\ErrorHandler');
- class_exists('Psr\Log\LogLevel');
-
- if (!\is_array($functions = spl_autoload_functions())) {
- return;
- }
-
- foreach ($functions as $function) {
- spl_autoload_unregister($function);
- }
-
- foreach ($functions as $function) {
- if (!\is_array($function) || !$function[0] instanceof self) {
- $function = [new static($function), 'loadClass'];
- }
-
- spl_autoload_register($function);
- }
- }
-
- /**
- * Disables the wrapping.
- */
- public static function disable()
- {
- if (!\is_array($functions = spl_autoload_functions())) {
- return;
- }
-
- foreach ($functions as $function) {
- spl_autoload_unregister($function);
- }
-
- foreach ($functions as $function) {
- if (\is_array($function) && $function[0] instanceof self) {
- $function = $function[0]->getClassLoader();
- }
-
- spl_autoload_register($function);
- }
- }
-
- /**
- * @return string|null
- */
- public function findFile($class)
- {
- return $this->isFinder ? $this->classLoader[0]->findFile($class) ?: null : null;
- }
-
- /**
- * Loads the given class or interface.
- *
- * @param string $class The name of the class
- *
- * @throws \RuntimeException
- */
- public function loadClass($class)
- {
- $e = error_reporting(error_reporting() | E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR);
-
- try {
- if ($this->isFinder && !isset($this->loaded[$class])) {
- $this->loaded[$class] = true;
- if (!$file = $this->classLoader[0]->findFile($class) ?: false) {
- // no-op
- } elseif (\function_exists('opcache_is_script_cached') && @opcache_is_script_cached($file)) {
- require $file;
-
- return;
- } else {
- require $file;
- }
- } else {
- \call_user_func($this->classLoader, $class);
- $file = false;
- }
- } finally {
- error_reporting($e);
- }
-
- $this->checkClass($class, $file);
- }
-
- private function checkClass($class, $file = null)
- {
- $exists = null === $file || \class_exists($class, false) || \interface_exists($class, false) || \trait_exists($class, false);
-
- if (null !== $file && $class && '\\' === $class[0]) {
- $class = substr($class, 1);
- }
-
- if ($exists) {
- if (isset(self::$checkedClasses[$class])) {
- return;
- }
- self::$checkedClasses[$class] = true;
-
- $refl = new \ReflectionClass($class);
- if (null === $file && $refl->isInternal()) {
- return;
- }
- $name = $refl->getName();
-
- if ($name !== $class && 0 === \strcasecmp($name, $class)) {
- throw new \RuntimeException(sprintf('Case mismatch between loaded and declared class names: "%s" vs "%s".', $class, $name));
- }
-
- $deprecations = $this->checkAnnotations($refl, $name);
-
- if (isset(self::$php7Reserved[\strtolower($refl->getShortName())])) {
- $deprecations[] = sprintf('The "%s" class uses the reserved name "%s", it will break on PHP 7 and higher', $name, $refl->getShortName());
- }
-
- foreach ($deprecations as $message) {
- @trigger_error($message, E_USER_DEPRECATED);
- }
- }
-
- if (!$file) {
- return;
- }
-
- if (!$exists) {
- if (false !== strpos($class, '/')) {
- throw new \RuntimeException(sprintf('Trying to autoload a class with an invalid name "%s". Be careful that the namespace separator is "\" in PHP, not "/".', $class));
- }
-
- throw new \RuntimeException(sprintf('The autoloader expected class "%s" to be defined in file "%s". The file was found but the class was not in it, the class name or namespace probably has a typo.', $class, $file));
- }
-
- if (self::$caseCheck && $message = $this->checkCase($refl, $file, $class)) {
- throw new \RuntimeException(sprintf('Case mismatch between class and real file names: "%s" vs "%s" in "%s".', $message[0], $message[1], $message[2]));
- }
- }
-
- public function checkAnnotations(\ReflectionClass $refl, $class)
- {
- $deprecations = [];
-
- // Don't trigger deprecations for classes in the same vendor
- if (2 > $len = 1 + (\strpos($class, '\\') ?: \strpos($class, '_'))) {
- $len = 0;
- $ns = '';
- } else {
- $ns = \str_replace('_', '\\', \substr($class, 0, $len));
- }
-
- // Detect annotations on the class
- if (false !== $doc = $refl->getDocComment()) {
- foreach (['final', 'deprecated', 'internal'] as $annotation) {
- if (false !== \strpos($doc, $annotation) && preg_match('#\n\s+\* @'.$annotation.'(?:( .+?)\.?)?\r?\n\s+\*(?: @|/$)#s', $doc, $notice)) {
- self::${$annotation}[$class] = isset($notice[1]) ? preg_replace('#\.?\r?\n( \*)? *(?= |\r?\n|$)#', '', $notice[1]) : '';
- }
- }
- }
-
- $parent = \get_parent_class($class);
- $parentAndOwnInterfaces = $this->getOwnInterfaces($class, $parent);
- if ($parent) {
- $parentAndOwnInterfaces[$parent] = $parent;
-
- if (!isset(self::$checkedClasses[$parent])) {
- $this->checkClass($parent);
- }
-
- if (isset(self::$final[$parent])) {
- $deprecations[] = sprintf('The "%s" class is considered final%s. It may change without further notice as of its next major version. You should not extend it from "%s".', $parent, self::$final[$parent], $class);
- }
- }
-
- // Detect if the parent is annotated
- foreach ($parentAndOwnInterfaces + \class_uses($class, false) as $use) {
- if (!isset(self::$checkedClasses[$use])) {
- $this->checkClass($use);
- }
- if (isset(self::$deprecated[$use]) && \strncmp($ns, \str_replace('_', '\\', $use), $len)) {
- $type = class_exists($class, false) ? 'class' : (interface_exists($class, false) ? 'interface' : 'trait');
- $verb = class_exists($use, false) || interface_exists($class, false) ? 'extends' : (interface_exists($use, false) ? 'implements' : 'uses');
-
- $deprecations[] = sprintf('The "%s" %s %s "%s" that is deprecated%s.', $class, $type, $verb, $use, self::$deprecated[$use]);
- }
- if (isset(self::$internal[$use]) && \strncmp($ns, \str_replace('_', '\\', $use), $len)) {
- $deprecations[] = sprintf('The "%s" %s is considered internal%s. It may change without further notice. You should not use it from "%s".', $use, class_exists($use, false) ? 'class' : (interface_exists($use, false) ? 'interface' : 'trait'), self::$internal[$use], $class);
- }
- }
-
- if (\trait_exists($class)) {
- return $deprecations;
- }
-
- // Inherit @final and @internal annotations for methods
- self::$finalMethods[$class] = [];
- self::$internalMethods[$class] = [];
- foreach ($parentAndOwnInterfaces as $use) {
- foreach (['finalMethods', 'internalMethods'] as $property) {
- if (isset(self::${$property}[$use])) {
- self::${$property}[$class] = self::${$property}[$class] ? self::${$property}[$use] + self::${$property}[$class] : self::${$property}[$use];
- }
- }
- }
-
- foreach ($refl->getMethods(\ReflectionMethod::IS_PUBLIC | \ReflectionMethod::IS_PROTECTED) as $method) {
- if ($method->class !== $class) {
- continue;
- }
-
- if ($parent && isset(self::$finalMethods[$parent][$method->name])) {
- list($declaringClass, $message) = self::$finalMethods[$parent][$method->name];
- $deprecations[] = sprintf('The "%s::%s()" method is considered final%s. It may change without further notice as of its next major version. You should not extend it from "%s".', $declaringClass, $method->name, $message, $class);
- }
-
- if (isset(self::$internalMethods[$class][$method->name])) {
- list($declaringClass, $message) = self::$internalMethods[$class][$method->name];
- if (\strncmp($ns, $declaringClass, $len)) {
- $deprecations[] = sprintf('The "%s::%s()" method is considered internal%s. It may change without further notice. You should not extend it from "%s".', $declaringClass, $method->name, $message, $class);
- }
- }
-
- // Detect method annotations
- if (false === $doc = $method->getDocComment()) {
- continue;
- }
-
- foreach (['final', 'internal'] as $annotation) {
- if (false !== \strpos($doc, $annotation) && preg_match('#\n\s+\* @'.$annotation.'(?:( .+?)\.?)?\r?\n\s+\*(?: @|/$)#s', $doc, $notice)) {
- $message = isset($notice[1]) ? preg_replace('#\.?\r?\n( \*)? *(?= |\r?\n|$)#', '', $notice[1]) : '';
- self::${$annotation.'Methods'}[$class][$method->name] = [$class, $message];
- }
- }
- }
-
- return $deprecations;
- }
-
- public function checkCase(\ReflectionClass $refl, $file, $class)
- {
- $real = explode('\\', $class.strrchr($file, '.'));
- $tail = explode(\DIRECTORY_SEPARATOR, str_replace('/', \DIRECTORY_SEPARATOR, $file));
-
- $i = \count($tail) - 1;
- $j = \count($real) - 1;
-
- while (isset($tail[$i], $real[$j]) && $tail[$i] === $real[$j]) {
- --$i;
- --$j;
- }
-
- array_splice($tail, 0, $i + 1);
-
- if (!$tail) {
- return;
- }
-
- $tail = \DIRECTORY_SEPARATOR.implode(\DIRECTORY_SEPARATOR, $tail);
- $tailLen = \strlen($tail);
- $real = $refl->getFileName();
-
- if (2 === self::$caseCheck) {
- $real = $this->darwinRealpath($real);
- }
-
- if (0 === substr_compare($real, $tail, -$tailLen, $tailLen, true)
- && 0 !== substr_compare($real, $tail, -$tailLen, $tailLen, false)
- ) {
- return [substr($tail, -$tailLen + 1), substr($real, -$tailLen + 1), substr($real, 0, -$tailLen + 1)];
- }
- }
-
- /**
- * `realpath` on MacOSX doesn't normalize the case of characters.
- */
- private function darwinRealpath($real)
- {
- $i = 1 + strrpos($real, '/');
- $file = substr($real, $i);
- $real = substr($real, 0, $i);
-
- if (isset(self::$darwinCache[$real])) {
- $kDir = $real;
- } else {
- $kDir = strtolower($real);
-
- if (isset(self::$darwinCache[$kDir])) {
- $real = self::$darwinCache[$kDir][0];
- } else {
- $dir = getcwd();
- chdir($real);
- $real = getcwd().'/';
- chdir($dir);
-
- $dir = $real;
- $k = $kDir;
- $i = \strlen($dir) - 1;
- while (!isset(self::$darwinCache[$k])) {
- self::$darwinCache[$k] = [$dir, []];
- self::$darwinCache[$dir] = &self::$darwinCache[$k];
-
- while ('/' !== $dir[--$i]) {
- }
- $k = substr($k, 0, ++$i);
- $dir = substr($dir, 0, $i--);
- }
- }
- }
-
- $dirFiles = self::$darwinCache[$kDir][1];
-
- if (!isset($dirFiles[$file]) && ') : eval()\'d code' === substr($file, -17)) {
- // Get the file name from "file_name.php(123) : eval()'d code"
- $file = substr($file, 0, strrpos($file, '(', -17));
- }
-
- if (isset($dirFiles[$file])) {
- return $real .= $dirFiles[$file];
- }
-
- $kFile = strtolower($file);
-
- if (!isset($dirFiles[$kFile])) {
- foreach (scandir($real, 2) as $f) {
- if ('.' !== $f[0]) {
- $dirFiles[$f] = $f;
- if ($f === $file) {
- $kFile = $k = $file;
- } elseif ($f !== $k = strtolower($f)) {
- $dirFiles[$k] = $f;
- }
- }
- }
- self::$darwinCache[$kDir][1] = $dirFiles;
- }
-
- return $real .= $dirFiles[$kFile];
- }
-
- /**
- * `class_implements` includes interfaces from the parents so we have to manually exclude them.
- *
- * @param string $class
- * @param string|false $parent
- *
- * @return string[]
- */
- private function getOwnInterfaces($class, $parent)
- {
- $ownInterfaces = class_implements($class, false);
-
- if ($parent) {
- foreach (class_implements($parent, false) as $interface) {
- unset($ownInterfaces[$interface]);
- }
- }
-
- foreach ($ownInterfaces as $interface) {
- foreach (class_implements($interface) as $interface) {
- unset($ownInterfaces[$interface]);
- }
- }
-
- return $ownInterfaces;
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/ErrorHandler.php b/www/wiki/vendor/symfony/debug/ErrorHandler.php
deleted file mode 100644
index d871b915..00000000
--- a/www/wiki/vendor/symfony/debug/ErrorHandler.php
+++ /dev/null
@@ -1,781 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug;
-
-use Psr\Log\LoggerInterface;
-use Psr\Log\LogLevel;
-use Symfony\Component\Debug\Exception\ContextErrorException;
-use Symfony\Component\Debug\Exception\FatalErrorException;
-use Symfony\Component\Debug\Exception\FatalThrowableError;
-use Symfony\Component\Debug\Exception\OutOfMemoryException;
-use Symfony\Component\Debug\Exception\SilencedErrorContext;
-use Symfony\Component\Debug\FatalErrorHandler\ClassNotFoundFatalErrorHandler;
-use Symfony\Component\Debug\FatalErrorHandler\FatalErrorHandlerInterface;
-use Symfony\Component\Debug\FatalErrorHandler\UndefinedFunctionFatalErrorHandler;
-use Symfony\Component\Debug\FatalErrorHandler\UndefinedMethodFatalErrorHandler;
-
-/**
- * A generic ErrorHandler for the PHP engine.
- *
- * Provides five bit fields that control how errors are handled:
- * - thrownErrors: errors thrown as \ErrorException
- * - loggedErrors: logged errors, when not @-silenced
- * - scopedErrors: errors thrown or logged with their local context
- * - tracedErrors: errors logged with their stack trace
- * - screamedErrors: never @-silenced errors
- *
- * Each error level can be logged by a dedicated PSR-3 logger object.
- * Screaming only applies to logging.
- * Throwing takes precedence over logging.
- * Uncaught exceptions are logged as E_ERROR.
- * E_DEPRECATED and E_USER_DEPRECATED levels never throw.
- * E_RECOVERABLE_ERROR and E_USER_ERROR levels always throw.
- * Non catchable errors that can be detected at shutdown time are logged when the scream bit field allows so.
- * As errors have a performance cost, repeated errors are all logged, so that the developer
- * can see them and weight them as more important to fix than others of the same level.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- * @author Grégoire Pineau <lyrixx@lyrixx.info>
- */
-class ErrorHandler
-{
- private $levels = [
- E_DEPRECATED => 'Deprecated',
- E_USER_DEPRECATED => 'User Deprecated',
- E_NOTICE => 'Notice',
- E_USER_NOTICE => 'User Notice',
- E_STRICT => 'Runtime Notice',
- E_WARNING => 'Warning',
- E_USER_WARNING => 'User Warning',
- E_COMPILE_WARNING => 'Compile Warning',
- E_CORE_WARNING => 'Core Warning',
- E_USER_ERROR => 'User Error',
- E_RECOVERABLE_ERROR => 'Catchable Fatal Error',
- E_COMPILE_ERROR => 'Compile Error',
- E_PARSE => 'Parse Error',
- E_ERROR => 'Error',
- E_CORE_ERROR => 'Core Error',
- ];
-
- private $loggers = [
- E_DEPRECATED => [null, LogLevel::INFO],
- E_USER_DEPRECATED => [null, LogLevel::INFO],
- E_NOTICE => [null, LogLevel::WARNING],
- E_USER_NOTICE => [null, LogLevel::WARNING],
- E_STRICT => [null, LogLevel::WARNING],
- E_WARNING => [null, LogLevel::WARNING],
- E_USER_WARNING => [null, LogLevel::WARNING],
- E_COMPILE_WARNING => [null, LogLevel::WARNING],
- E_CORE_WARNING => [null, LogLevel::WARNING],
- E_USER_ERROR => [null, LogLevel::CRITICAL],
- E_RECOVERABLE_ERROR => [null, LogLevel::CRITICAL],
- E_COMPILE_ERROR => [null, LogLevel::CRITICAL],
- E_PARSE => [null, LogLevel::CRITICAL],
- E_ERROR => [null, LogLevel::CRITICAL],
- E_CORE_ERROR => [null, LogLevel::CRITICAL],
- ];
-
- private $thrownErrors = 0x1FFF; // E_ALL - E_DEPRECATED - E_USER_DEPRECATED
- private $scopedErrors = 0x1FFF; // E_ALL - E_DEPRECATED - E_USER_DEPRECATED
- private $tracedErrors = 0x77FB; // E_ALL - E_STRICT - E_PARSE
- private $screamedErrors = 0x55; // E_ERROR + E_CORE_ERROR + E_COMPILE_ERROR + E_PARSE
- private $loggedErrors = 0;
- private $traceReflector;
-
- private $isRecursive = 0;
- private $isRoot = false;
- private $exceptionHandler;
- private $bootstrappingLogger;
-
- private static $reservedMemory;
- private static $stackedErrors = [];
- private static $stackedErrorLevels = [];
- private static $toStringException = null;
- private static $silencedErrorCache = [];
- private static $silencedErrorCount = 0;
- private static $exitCode = 0;
-
- /**
- * Registers the error handler.
- *
- * @param self|null $handler The handler to register
- * @param bool $replace Whether to replace or not any existing handler
- *
- * @return self The registered error handler
- */
- public static function register(self $handler = null, $replace = true)
- {
- if (null === self::$reservedMemory) {
- self::$reservedMemory = str_repeat('x', 10240);
- register_shutdown_function(__CLASS__.'::handleFatalError');
- }
-
- if ($handlerIsNew = null === $handler) {
- $handler = new static();
- }
-
- if (null === $prev = set_error_handler([$handler, 'handleError'])) {
- restore_error_handler();
- // Specifying the error types earlier would expose us to https://bugs.php.net/63206
- set_error_handler([$handler, 'handleError'], $handler->thrownErrors | $handler->loggedErrors);
- $handler->isRoot = true;
- }
-
- if ($handlerIsNew && \is_array($prev) && $prev[0] instanceof self) {
- $handler = $prev[0];
- $replace = false;
- }
- if (!$replace && $prev) {
- restore_error_handler();
- $handlerIsRegistered = \is_array($prev) && $handler === $prev[0];
- } else {
- $handlerIsRegistered = true;
- }
- if (\is_array($prev = set_exception_handler([$handler, 'handleException'])) && $prev[0] instanceof self) {
- restore_exception_handler();
- if (!$handlerIsRegistered) {
- $handler = $prev[0];
- } elseif ($handler !== $prev[0] && $replace) {
- set_exception_handler([$handler, 'handleException']);
- $p = $prev[0]->setExceptionHandler(null);
- $handler->setExceptionHandler($p);
- $prev[0]->setExceptionHandler($p);
- }
- } else {
- $handler->setExceptionHandler($prev);
- }
-
- $handler->throwAt(E_ALL & $handler->thrownErrors, true);
-
- return $handler;
- }
-
- public function __construct(BufferingLogger $bootstrappingLogger = null)
- {
- if ($bootstrappingLogger) {
- $this->bootstrappingLogger = $bootstrappingLogger;
- $this->setDefaultLogger($bootstrappingLogger);
- }
- $this->traceReflector = new \ReflectionProperty('Exception', 'trace');
- $this->traceReflector->setAccessible(true);
- }
-
- /**
- * Sets a logger to non assigned errors levels.
- *
- * @param LoggerInterface $logger A PSR-3 logger to put as default for the given levels
- * @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants
- * @param bool $replace Whether to replace or not any existing logger
- */
- public function setDefaultLogger(LoggerInterface $logger, $levels = E_ALL, $replace = false)
- {
- $loggers = [];
-
- if (\is_array($levels)) {
- foreach ($levels as $type => $logLevel) {
- if (empty($this->loggers[$type][0]) || $replace || $this->loggers[$type][0] === $this->bootstrappingLogger) {
- $loggers[$type] = [$logger, $logLevel];
- }
- }
- } else {
- if (null === $levels) {
- $levels = E_ALL;
- }
- foreach ($this->loggers as $type => $log) {
- if (($type & $levels) && (empty($log[0]) || $replace || $log[0] === $this->bootstrappingLogger)) {
- $log[0] = $logger;
- $loggers[$type] = $log;
- }
- }
- }
-
- $this->setLoggers($loggers);
- }
-
- /**
- * Sets a logger for each error level.
- *
- * @param array $loggers Error levels to [LoggerInterface|null, LogLevel::*] map
- *
- * @return array The previous map
- *
- * @throws \InvalidArgumentException
- */
- public function setLoggers(array $loggers)
- {
- $prevLogged = $this->loggedErrors;
- $prev = $this->loggers;
- $flush = [];
-
- foreach ($loggers as $type => $log) {
- if (!isset($prev[$type])) {
- throw new \InvalidArgumentException('Unknown error type: '.$type);
- }
- if (!\is_array($log)) {
- $log = [$log];
- } elseif (!\array_key_exists(0, $log)) {
- throw new \InvalidArgumentException('No logger provided');
- }
- if (null === $log[0]) {
- $this->loggedErrors &= ~$type;
- } elseif ($log[0] instanceof LoggerInterface) {
- $this->loggedErrors |= $type;
- } else {
- throw new \InvalidArgumentException('Invalid logger provided');
- }
- $this->loggers[$type] = $log + $prev[$type];
-
- if ($this->bootstrappingLogger && $prev[$type][0] === $this->bootstrappingLogger) {
- $flush[$type] = $type;
- }
- }
- $this->reRegister($prevLogged | $this->thrownErrors);
-
- if ($flush) {
- foreach ($this->bootstrappingLogger->cleanLogs() as $log) {
- $type = $log[2]['exception'] instanceof \ErrorException ? $log[2]['exception']->getSeverity() : E_ERROR;
- if (!isset($flush[$type])) {
- $this->bootstrappingLogger->log($log[0], $log[1], $log[2]);
- } elseif ($this->loggers[$type][0]) {
- $this->loggers[$type][0]->log($this->loggers[$type][1], $log[1], $log[2]);
- }
- }
- }
-
- return $prev;
- }
-
- /**
- * Sets a user exception handler.
- *
- * @param callable $handler A handler that will be called on Exception
- *
- * @return callable|null The previous exception handler
- */
- public function setExceptionHandler(callable $handler = null)
- {
- $prev = $this->exceptionHandler;
- $this->exceptionHandler = $handler;
-
- return $prev;
- }
-
- /**
- * Sets the PHP error levels that throw an exception when a PHP error occurs.
- *
- * @param int $levels A bit field of E_* constants for thrown errors
- * @param bool $replace Replace or amend the previous value
- *
- * @return int The previous value
- */
- public function throwAt($levels, $replace = false)
- {
- $prev = $this->thrownErrors;
- $this->thrownErrors = ($levels | E_RECOVERABLE_ERROR | E_USER_ERROR) & ~E_USER_DEPRECATED & ~E_DEPRECATED;
- if (!$replace) {
- $this->thrownErrors |= $prev;
- }
- $this->reRegister($prev | $this->loggedErrors);
-
- return $prev;
- }
-
- /**
- * Sets the PHP error levels for which local variables are preserved.
- *
- * @param int $levels A bit field of E_* constants for scoped errors
- * @param bool $replace Replace or amend the previous value
- *
- * @return int The previous value
- */
- public function scopeAt($levels, $replace = false)
- {
- $prev = $this->scopedErrors;
- $this->scopedErrors = (int) $levels;
- if (!$replace) {
- $this->scopedErrors |= $prev;
- }
-
- return $prev;
- }
-
- /**
- * Sets the PHP error levels for which the stack trace is preserved.
- *
- * @param int $levels A bit field of E_* constants for traced errors
- * @param bool $replace Replace or amend the previous value
- *
- * @return int The previous value
- */
- public function traceAt($levels, $replace = false)
- {
- $prev = $this->tracedErrors;
- $this->tracedErrors = (int) $levels;
- if (!$replace) {
- $this->tracedErrors |= $prev;
- }
-
- return $prev;
- }
-
- /**
- * Sets the error levels where the @-operator is ignored.
- *
- * @param int $levels A bit field of E_* constants for screamed errors
- * @param bool $replace Replace or amend the previous value
- *
- * @return int The previous value
- */
- public function screamAt($levels, $replace = false)
- {
- $prev = $this->screamedErrors;
- $this->screamedErrors = (int) $levels;
- if (!$replace) {
- $this->screamedErrors |= $prev;
- }
-
- return $prev;
- }
-
- /**
- * Re-registers as a PHP error handler if levels changed.
- */
- private function reRegister($prev)
- {
- if ($prev !== $this->thrownErrors | $this->loggedErrors) {
- $handler = set_error_handler('var_dump');
- $handler = \is_array($handler) ? $handler[0] : null;
- restore_error_handler();
- if ($handler === $this) {
- restore_error_handler();
- if ($this->isRoot) {
- set_error_handler([$this, 'handleError'], $this->thrownErrors | $this->loggedErrors);
- } else {
- set_error_handler([$this, 'handleError']);
- }
- }
- }
- }
-
- /**
- * Handles errors by filtering then logging them according to the configured bit fields.
- *
- * @param int $type One of the E_* constants
- * @param string $message
- * @param string $file
- * @param int $line
- *
- * @return bool Returns false when no handling happens so that the PHP engine can handle the error itself
- *
- * @throws \ErrorException When $this->thrownErrors requests so
- *
- * @internal
- */
- public function handleError($type, $message, $file, $line)
- {
- // Level is the current error reporting level to manage silent error.
- $level = error_reporting();
- $silenced = 0 === ($level & $type);
- // Strong errors are not authorized to be silenced.
- $level |= E_RECOVERABLE_ERROR | E_USER_ERROR | E_DEPRECATED | E_USER_DEPRECATED;
- $log = $this->loggedErrors & $type;
- $throw = $this->thrownErrors & $type & $level;
- $type &= $level | $this->screamedErrors;
-
- if (!$type || (!$log && !$throw)) {
- return !$silenced && $type && $log;
- }
- $scope = $this->scopedErrors & $type;
-
- if (4 < $numArgs = \func_num_args()) {
- $context = $scope ? (func_get_arg(4) ?: []) : [];
- $backtrace = 5 < $numArgs ? func_get_arg(5) : null; // defined on HHVM
- } else {
- $context = [];
- $backtrace = null;
- }
-
- if (isset($context['GLOBALS']) && $scope) {
- $e = $context; // Whatever the signature of the method,
- unset($e['GLOBALS'], $context); // $context is always a reference in 5.3
- $context = $e;
- }
-
- if (null !== $backtrace && $type & E_ERROR) {
- // E_ERROR fatal errors are triggered on HHVM when
- // hhvm.error_handling.call_user_handler_on_fatals=1
- // which is the way to get their backtrace.
- $this->handleFatalError(compact('type', 'message', 'file', 'line', 'backtrace'));
-
- return true;
- }
-
- $logMessage = $this->levels[$type].': '.$message;
-
- if (null !== self::$toStringException) {
- $errorAsException = self::$toStringException;
- self::$toStringException = null;
- } elseif (!$throw && !($type & $level)) {
- if (!isset(self::$silencedErrorCache[$id = $file.':'.$line])) {
- $lightTrace = $this->tracedErrors & $type ? $this->cleanTrace(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3), $type, $file, $line, false) : [];
- $errorAsException = new SilencedErrorContext($type, $file, $line, $lightTrace);
- } elseif (isset(self::$silencedErrorCache[$id][$message])) {
- $lightTrace = null;
- $errorAsException = self::$silencedErrorCache[$id][$message];
- ++$errorAsException->count;
- } else {
- $lightTrace = [];
- $errorAsException = null;
- }
-
- if (100 < ++self::$silencedErrorCount) {
- self::$silencedErrorCache = $lightTrace = [];
- self::$silencedErrorCount = 1;
- }
- if ($errorAsException) {
- self::$silencedErrorCache[$id][$message] = $errorAsException;
- }
- if (null === $lightTrace) {
- return;
- }
- } else {
- if ($scope) {
- $errorAsException = new ContextErrorException($logMessage, 0, $type, $file, $line, $context);
- } else {
- $errorAsException = new \ErrorException($logMessage, 0, $type, $file, $line);
- }
-
- // Clean the trace by removing function arguments and the first frames added by the error handler itself.
- if ($throw || $this->tracedErrors & $type) {
- $backtrace = $backtrace ?: $errorAsException->getTrace();
- $lightTrace = $this->cleanTrace($backtrace, $type, $file, $line, $throw);
- $this->traceReflector->setValue($errorAsException, $lightTrace);
- } else {
- $this->traceReflector->setValue($errorAsException, []);
- }
- }
-
- if ($throw) {
- if (E_USER_ERROR & $type) {
- for ($i = 1; isset($backtrace[$i]); ++$i) {
- if (isset($backtrace[$i]['function'], $backtrace[$i]['type'], $backtrace[$i - 1]['function'])
- && '__toString' === $backtrace[$i]['function']
- && '->' === $backtrace[$i]['type']
- && !isset($backtrace[$i - 1]['class'])
- && ('trigger_error' === $backtrace[$i - 1]['function'] || 'user_error' === $backtrace[$i - 1]['function'])
- ) {
- // Here, we know trigger_error() has been called from __toString().
- // HHVM is fine with throwing from __toString() but PHP triggers a fatal error instead.
- // A small convention allows working around the limitation:
- // given a caught $e exception in __toString(), quitting the method with
- // `return trigger_error($e, E_USER_ERROR);` allows this error handler
- // to make $e get through the __toString() barrier.
-
- foreach ($context as $e) {
- if (($e instanceof \Exception || $e instanceof \Throwable) && $e->__toString() === $message) {
- if (1 === $i) {
- // On HHVM
- $errorAsException = $e;
- break;
- }
- self::$toStringException = $e;
-
- return true;
- }
- }
-
- if (1 < $i) {
- // On PHP (not on HHVM), display the original error message instead of the default one.
- $this->handleException($errorAsException);
-
- // Stop the process by giving back the error to the native handler.
- return false;
- }
- }
- }
- }
-
- throw $errorAsException;
- }
-
- if ($this->isRecursive) {
- $log = 0;
- } elseif (self::$stackedErrorLevels) {
- self::$stackedErrors[] = [
- $this->loggers[$type][0],
- ($type & $level) ? $this->loggers[$type][1] : LogLevel::DEBUG,
- $logMessage,
- $errorAsException ? ['exception' => $errorAsException] : [],
- ];
- } else {
- if (!\defined('HHVM_VERSION')) {
- $currentErrorHandler = set_error_handler('var_dump');
- restore_error_handler();
- }
-
- try {
- $this->isRecursive = true;
- $level = ($type & $level) ? $this->loggers[$type][1] : LogLevel::DEBUG;
- $this->loggers[$type][0]->log($level, $logMessage, $errorAsException ? ['exception' => $errorAsException] : []);
- } finally {
- $this->isRecursive = false;
-
- if (!\defined('HHVM_VERSION')) {
- set_error_handler($currentErrorHandler);
- }
- }
- }
-
- return !$silenced && $type && $log;
- }
-
- /**
- * Handles an exception by logging then forwarding it to another handler.
- *
- * @param \Exception|\Throwable $exception An exception to handle
- * @param array $error An array as returned by error_get_last()
- *
- * @internal
- */
- public function handleException($exception, array $error = null)
- {
- if (null === $error) {
- self::$exitCode = 255;
- }
- if (!$exception instanceof \Exception) {
- $exception = new FatalThrowableError($exception);
- }
- $type = $exception instanceof FatalErrorException ? $exception->getSeverity() : E_ERROR;
- $handlerException = null;
-
- if (($this->loggedErrors & $type) || $exception instanceof FatalThrowableError) {
- if ($exception instanceof FatalErrorException) {
- if ($exception instanceof FatalThrowableError) {
- $error = [
- 'type' => $type,
- 'message' => $message = $exception->getMessage(),
- 'file' => $exception->getFile(),
- 'line' => $exception->getLine(),
- ];
- } else {
- $message = 'Fatal '.$exception->getMessage();
- }
- } elseif ($exception instanceof \ErrorException) {
- $message = 'Uncaught '.$exception->getMessage();
- } else {
- $message = 'Uncaught Exception: '.$exception->getMessage();
- }
- }
- if ($this->loggedErrors & $type) {
- try {
- $this->loggers[$type][0]->log($this->loggers[$type][1], $message, ['exception' => $exception]);
- } catch (\Exception $handlerException) {
- } catch (\Throwable $handlerException) {
- }
- }
- if ($exception instanceof FatalErrorException && !$exception instanceof OutOfMemoryException && $error) {
- foreach ($this->getFatalErrorHandlers() as $handler) {
- if ($e = $handler->handleError($error, $exception)) {
- $exception = $e;
- break;
- }
- }
- }
- $exceptionHandler = $this->exceptionHandler;
- $this->exceptionHandler = null;
- try {
- if (null !== $exceptionHandler) {
- return \call_user_func($exceptionHandler, $exception);
- }
- $handlerException = $handlerException ?: $exception;
- } catch (\Exception $handlerException) {
- } catch (\Throwable $handlerException) {
- }
- if ($exception === $handlerException) {
- self::$reservedMemory = null; // Disable the fatal error handler
- throw $exception; // Give back $exception to the native handler
- }
- $this->handleException($handlerException);
- }
-
- /**
- * Shutdown registered function for handling PHP fatal errors.
- *
- * @param array $error An array as returned by error_get_last()
- *
- * @internal
- */
- public static function handleFatalError(array $error = null)
- {
- if (null === self::$reservedMemory) {
- return;
- }
-
- $handler = self::$reservedMemory = null;
- $handlers = [];
- $previousHandler = null;
- $sameHandlerLimit = 10;
-
- while (!\is_array($handler) || !$handler[0] instanceof self) {
- $handler = set_exception_handler('var_dump');
- restore_exception_handler();
-
- if (!$handler) {
- break;
- }
- restore_exception_handler();
-
- if ($handler !== $previousHandler) {
- array_unshift($handlers, $handler);
- $previousHandler = $handler;
- } elseif (0 === --$sameHandlerLimit) {
- $handler = null;
- break;
- }
- }
- foreach ($handlers as $h) {
- set_exception_handler($h);
- }
- if (!$handler) {
- return;
- }
- if ($handler !== $h) {
- $handler[0]->setExceptionHandler($h);
- }
- $handler = $handler[0];
- $handlers = [];
-
- if ($exit = null === $error) {
- $error = error_get_last();
- }
-
- try {
- while (self::$stackedErrorLevels) {
- static::unstackErrors();
- }
- } catch (\Exception $exception) {
- // Handled below
- } catch (\Throwable $exception) {
- // Handled below
- }
-
- if ($error && $error['type'] &= E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR) {
- // Let's not throw anymore but keep logging
- $handler->throwAt(0, true);
- $trace = isset($error['backtrace']) ? $error['backtrace'] : null;
-
- if (0 === strpos($error['message'], 'Allowed memory') || 0 === strpos($error['message'], 'Out of memory')) {
- $exception = new OutOfMemoryException($handler->levels[$error['type']].': '.$error['message'], 0, $error['type'], $error['file'], $error['line'], 2, false, $trace);
- } else {
- $exception = new FatalErrorException($handler->levels[$error['type']].': '.$error['message'], 0, $error['type'], $error['file'], $error['line'], 2, true, $trace);
- }
- }
-
- try {
- if (isset($exception)) {
- self::$exitCode = 255;
- $handler->handleException($exception, $error);
- }
- } catch (FatalErrorException $e) {
- // Ignore this re-throw
- }
-
- if ($exit && self::$exitCode) {
- $exitCode = self::$exitCode;
- register_shutdown_function('register_shutdown_function', function () use ($exitCode) { exit($exitCode); });
- }
- }
-
- /**
- * Configures the error handler for delayed handling.
- * Ensures also that non-catchable fatal errors are never silenced.
- *
- * As shown by http://bugs.php.net/42098 and http://bugs.php.net/60724
- * PHP has a compile stage where it behaves unusually. To workaround it,
- * we plug an error handler that only stacks errors for later.
- *
- * The most important feature of this is to prevent
- * autoloading until unstackErrors() is called.
- *
- * @deprecated since version 3.4, to be removed in 4.0.
- */
- public static function stackErrors()
- {
- @trigger_error('Support for stacking errors is deprecated since Symfony 3.4 and will be removed in 4.0.', E_USER_DEPRECATED);
-
- self::$stackedErrorLevels[] = error_reporting(error_reporting() | E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR);
- }
-
- /**
- * Unstacks stacked errors and forwards to the logger.
- *
- * @deprecated since version 3.4, to be removed in 4.0.
- */
- public static function unstackErrors()
- {
- @trigger_error('Support for unstacking errors is deprecated since Symfony 3.4 and will be removed in 4.0.', E_USER_DEPRECATED);
-
- $level = array_pop(self::$stackedErrorLevels);
-
- if (null !== $level) {
- $errorReportingLevel = error_reporting($level);
- if ($errorReportingLevel !== ($level | E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR)) {
- // If the user changed the error level, do not overwrite it
- error_reporting($errorReportingLevel);
- }
- }
-
- if (empty(self::$stackedErrorLevels)) {
- $errors = self::$stackedErrors;
- self::$stackedErrors = [];
-
- foreach ($errors as $error) {
- $error[0]->log($error[1], $error[2], $error[3]);
- }
- }
- }
-
- /**
- * Gets the fatal error handlers.
- *
- * Override this method if you want to define more fatal error handlers.
- *
- * @return FatalErrorHandlerInterface[] An array of FatalErrorHandlerInterface
- */
- protected function getFatalErrorHandlers()
- {
- return [
- new UndefinedFunctionFatalErrorHandler(),
- new UndefinedMethodFatalErrorHandler(),
- new ClassNotFoundFatalErrorHandler(),
- ];
- }
-
- private function cleanTrace($backtrace, $type, $file, $line, $throw)
- {
- $lightTrace = $backtrace;
-
- for ($i = 0; isset($backtrace[$i]); ++$i) {
- if (isset($backtrace[$i]['file'], $backtrace[$i]['line']) && $backtrace[$i]['line'] === $line && $backtrace[$i]['file'] === $file) {
- $lightTrace = \array_slice($lightTrace, 1 + $i);
- break;
- }
- }
- if (!($throw || $this->scopedErrors & $type)) {
- for ($i = 0; isset($lightTrace[$i]); ++$i) {
- unset($lightTrace[$i]['args'], $lightTrace[$i]['object']);
- }
- }
-
- return $lightTrace;
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Exception/ClassNotFoundException.php b/www/wiki/vendor/symfony/debug/Exception/ClassNotFoundException.php
deleted file mode 100644
index de5c4564..00000000
--- a/www/wiki/vendor/symfony/debug/Exception/ClassNotFoundException.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Exception;
-
-/**
- * Class (or Trait or Interface) Not Found Exception.
- *
- * @author Konstanton Myakshin <koc-dp@yandex.ru>
- */
-class ClassNotFoundException extends FatalErrorException
-{
- public function __construct($message, \ErrorException $previous)
- {
- parent::__construct(
- $message,
- $previous->getCode(),
- $previous->getSeverity(),
- $previous->getFile(),
- $previous->getLine(),
- null,
- true,
- null,
- $previous->getPrevious()
- );
- $this->setTrace($previous->getTrace());
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Exception/ContextErrorException.php b/www/wiki/vendor/symfony/debug/Exception/ContextErrorException.php
deleted file mode 100644
index 930f3777..00000000
--- a/www/wiki/vendor/symfony/debug/Exception/ContextErrorException.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Exception;
-
-/**
- * Error Exception with Variable Context.
- *
- * @author Christian Sciberras <uuf6429@gmail.com>
- *
- * @deprecated since version 3.3. Instead, \ErrorException will be used directly in 4.0.
- */
-class ContextErrorException extends \ErrorException
-{
- private $context = [];
-
- public function __construct($message, $code, $severity, $filename, $lineno, $context = [])
- {
- parent::__construct($message, $code, $severity, $filename, $lineno);
- $this->context = $context;
- }
-
- /**
- * @return array Array of variables that existed when the exception occurred
- */
- public function getContext()
- {
- @trigger_error(sprintf('The %s class is deprecated since Symfony 3.3 and will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
-
- return $this->context;
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Exception/FatalErrorException.php b/www/wiki/vendor/symfony/debug/Exception/FatalErrorException.php
deleted file mode 100644
index 0f70ef92..00000000
--- a/www/wiki/vendor/symfony/debug/Exception/FatalErrorException.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Exception;
-
-/**
- * Fatal Error Exception.
- *
- * @author Konstanton Myakshin <koc-dp@yandex.ru>
- */
-class FatalErrorException extends \ErrorException
-{
- public function __construct($message, $code, $severity, $filename, $lineno, $traceOffset = null, $traceArgs = true, array $trace = null, $previous = null)
- {
- parent::__construct($message, $code, $severity, $filename, $lineno, $previous);
-
- if (null !== $trace) {
- if (!$traceArgs) {
- foreach ($trace as &$frame) {
- unset($frame['args'], $frame['this'], $frame);
- }
- }
-
- $this->setTrace($trace);
- } elseif (null !== $traceOffset) {
- if (\function_exists('xdebug_get_function_stack')) {
- $trace = xdebug_get_function_stack();
- if (0 < $traceOffset) {
- array_splice($trace, -$traceOffset);
- }
-
- foreach ($trace as &$frame) {
- if (!isset($frame['type'])) {
- // XDebug pre 2.1.1 doesn't currently set the call type key http://bugs.xdebug.org/view.php?id=695
- if (isset($frame['class'])) {
- $frame['type'] = '::';
- }
- } elseif ('dynamic' === $frame['type']) {
- $frame['type'] = '->';
- } elseif ('static' === $frame['type']) {
- $frame['type'] = '::';
- }
-
- // XDebug also has a different name for the parameters array
- if (!$traceArgs) {
- unset($frame['params'], $frame['args']);
- } elseif (isset($frame['params']) && !isset($frame['args'])) {
- $frame['args'] = $frame['params'];
- unset($frame['params']);
- }
- }
-
- unset($frame);
- $trace = array_reverse($trace);
- } elseif (\function_exists('symfony_debug_backtrace')) {
- $trace = symfony_debug_backtrace();
- if (0 < $traceOffset) {
- array_splice($trace, 0, $traceOffset);
- }
- } else {
- $trace = [];
- }
-
- $this->setTrace($trace);
- }
- }
-
- protected function setTrace($trace)
- {
- $traceReflector = new \ReflectionProperty('Exception', 'trace');
- $traceReflector->setAccessible(true);
- $traceReflector->setValue($this, $trace);
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Exception/FatalThrowableError.php b/www/wiki/vendor/symfony/debug/Exception/FatalThrowableError.php
deleted file mode 100644
index fafc9226..00000000
--- a/www/wiki/vendor/symfony/debug/Exception/FatalThrowableError.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Exception;
-
-/**
- * Fatal Throwable Error.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class FatalThrowableError extends FatalErrorException
-{
- public function __construct(\Throwable $e)
- {
- if ($e instanceof \ParseError) {
- $message = 'Parse error: '.$e->getMessage();
- $severity = E_PARSE;
- } elseif ($e instanceof \TypeError) {
- $message = 'Type error: '.$e->getMessage();
- $severity = E_RECOVERABLE_ERROR;
- } else {
- $message = $e->getMessage();
- $severity = E_ERROR;
- }
-
- \ErrorException::__construct(
- $message,
- $e->getCode(),
- $severity,
- $e->getFile(),
- $e->getLine(),
- $e->getPrevious()
- );
-
- $this->setTrace($e->getTrace());
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Exception/FlattenException.php b/www/wiki/vendor/symfony/debug/Exception/FlattenException.php
deleted file mode 100644
index 9514bdc5..00000000
--- a/www/wiki/vendor/symfony/debug/Exception/FlattenException.php
+++ /dev/null
@@ -1,263 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Exception;
-
-use Symfony\Component\HttpFoundation\Exception\RequestExceptionInterface;
-use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
-
-/**
- * FlattenException wraps a PHP Exception to be able to serialize it.
- *
- * Basically, this class removes all objects from the trace.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class FlattenException
-{
- private $message;
- private $code;
- private $previous;
- private $trace;
- private $class;
- private $statusCode;
- private $headers;
- private $file;
- private $line;
-
- public static function create(\Exception $exception, $statusCode = null, array $headers = [])
- {
- $e = new static();
- $e->setMessage($exception->getMessage());
- $e->setCode($exception->getCode());
-
- if ($exception instanceof HttpExceptionInterface) {
- $statusCode = $exception->getStatusCode();
- $headers = array_merge($headers, $exception->getHeaders());
- } elseif ($exception instanceof RequestExceptionInterface) {
- $statusCode = 400;
- }
-
- if (null === $statusCode) {
- $statusCode = 500;
- }
-
- $e->setStatusCode($statusCode);
- $e->setHeaders($headers);
- $e->setTraceFromException($exception);
- $e->setClass(\get_class($exception));
- $e->setFile($exception->getFile());
- $e->setLine($exception->getLine());
-
- $previous = $exception->getPrevious();
-
- if ($previous instanceof \Exception) {
- $e->setPrevious(static::create($previous));
- } elseif ($previous instanceof \Throwable) {
- $e->setPrevious(static::create(new FatalThrowableError($previous)));
- }
-
- return $e;
- }
-
- public function toArray()
- {
- $exceptions = [];
- foreach (array_merge([$this], $this->getAllPrevious()) as $exception) {
- $exceptions[] = [
- 'message' => $exception->getMessage(),
- 'class' => $exception->getClass(),
- 'trace' => $exception->getTrace(),
- ];
- }
-
- return $exceptions;
- }
-
- public function getStatusCode()
- {
- return $this->statusCode;
- }
-
- public function setStatusCode($code)
- {
- $this->statusCode = $code;
- }
-
- public function getHeaders()
- {
- return $this->headers;
- }
-
- public function setHeaders(array $headers)
- {
- $this->headers = $headers;
- }
-
- public function getClass()
- {
- return $this->class;
- }
-
- public function setClass($class)
- {
- $this->class = $class;
- }
-
- public function getFile()
- {
- return $this->file;
- }
-
- public function setFile($file)
- {
- $this->file = $file;
- }
-
- public function getLine()
- {
- return $this->line;
- }
-
- public function setLine($line)
- {
- $this->line = $line;
- }
-
- public function getMessage()
- {
- return $this->message;
- }
-
- public function setMessage($message)
- {
- $this->message = $message;
- }
-
- public function getCode()
- {
- return $this->code;
- }
-
- public function setCode($code)
- {
- $this->code = $code;
- }
-
- public function getPrevious()
- {
- return $this->previous;
- }
-
- public function setPrevious(self $previous)
- {
- $this->previous = $previous;
- }
-
- public function getAllPrevious()
- {
- $exceptions = [];
- $e = $this;
- while ($e = $e->getPrevious()) {
- $exceptions[] = $e;
- }
-
- return $exceptions;
- }
-
- public function getTrace()
- {
- return $this->trace;
- }
-
- public function setTraceFromException(\Exception $exception)
- {
- $this->setTrace($exception->getTrace(), $exception->getFile(), $exception->getLine());
- }
-
- public function setTrace($trace, $file, $line)
- {
- $this->trace = [];
- $this->trace[] = [
- 'namespace' => '',
- 'short_class' => '',
- 'class' => '',
- 'type' => '',
- 'function' => '',
- 'file' => $file,
- 'line' => $line,
- 'args' => [],
- ];
- foreach ($trace as $entry) {
- $class = '';
- $namespace = '';
- if (isset($entry['class'])) {
- $parts = explode('\\', $entry['class']);
- $class = array_pop($parts);
- $namespace = implode('\\', $parts);
- }
-
- $this->trace[] = [
- 'namespace' => $namespace,
- 'short_class' => $class,
- 'class' => isset($entry['class']) ? $entry['class'] : '',
- 'type' => isset($entry['type']) ? $entry['type'] : '',
- 'function' => isset($entry['function']) ? $entry['function'] : null,
- 'file' => isset($entry['file']) ? $entry['file'] : null,
- 'line' => isset($entry['line']) ? $entry['line'] : null,
- 'args' => isset($entry['args']) ? $this->flattenArgs($entry['args']) : [],
- ];
- }
- }
-
- private function flattenArgs($args, $level = 0, &$count = 0)
- {
- $result = [];
- foreach ($args as $key => $value) {
- if (++$count > 1e4) {
- return ['array', '*SKIPPED over 10000 entries*'];
- }
- if ($value instanceof \__PHP_Incomplete_Class) {
- // is_object() returns false on PHP<=7.1
- $result[$key] = ['incomplete-object', $this->getClassNameFromIncomplete($value)];
- } elseif (\is_object($value)) {
- $result[$key] = ['object', \get_class($value)];
- } elseif (\is_array($value)) {
- if ($level > 10) {
- $result[$key] = ['array', '*DEEP NESTED ARRAY*'];
- } else {
- $result[$key] = ['array', $this->flattenArgs($value, $level + 1, $count)];
- }
- } elseif (null === $value) {
- $result[$key] = ['null', null];
- } elseif (\is_bool($value)) {
- $result[$key] = ['boolean', $value];
- } elseif (\is_int($value)) {
- $result[$key] = ['integer', $value];
- } elseif (\is_float($value)) {
- $result[$key] = ['float', $value];
- } elseif (\is_resource($value)) {
- $result[$key] = ['resource', get_resource_type($value)];
- } else {
- $result[$key] = ['string', (string) $value];
- }
- }
-
- return $result;
- }
-
- private function getClassNameFromIncomplete(\__PHP_Incomplete_Class $value)
- {
- $array = new \ArrayObject($value);
-
- return $array['__PHP_Incomplete_Class_Name'];
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Exception/OutOfMemoryException.php b/www/wiki/vendor/symfony/debug/Exception/OutOfMemoryException.php
deleted file mode 100644
index fec19798..00000000
--- a/www/wiki/vendor/symfony/debug/Exception/OutOfMemoryException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Exception;
-
-/**
- * Out of memory exception.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class OutOfMemoryException extends FatalErrorException
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Exception/SilencedErrorContext.php b/www/wiki/vendor/symfony/debug/Exception/SilencedErrorContext.php
deleted file mode 100644
index f862b74f..00000000
--- a/www/wiki/vendor/symfony/debug/Exception/SilencedErrorContext.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Exception;
-
-/**
- * Data Object that represents a Silenced Error.
- *
- * @author Grégoire Pineau <lyrixx@lyrixx.info>
- */
-class SilencedErrorContext implements \JsonSerializable
-{
- public $count = 1;
-
- private $severity;
- private $file;
- private $line;
- private $trace;
-
- public function __construct($severity, $file, $line, array $trace = [], $count = 1)
- {
- $this->severity = $severity;
- $this->file = $file;
- $this->line = $line;
- $this->trace = $trace;
- $this->count = $count;
- }
-
- public function getSeverity()
- {
- return $this->severity;
- }
-
- public function getFile()
- {
- return $this->file;
- }
-
- public function getLine()
- {
- return $this->line;
- }
-
- public function getTrace()
- {
- return $this->trace;
- }
-
- public function JsonSerialize()
- {
- return [
- 'severity' => $this->severity,
- 'file' => $this->file,
- 'line' => $this->line,
- 'trace' => $this->trace,
- 'count' => $this->count,
- ];
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Exception/UndefinedFunctionException.php b/www/wiki/vendor/symfony/debug/Exception/UndefinedFunctionException.php
deleted file mode 100644
index 8f5f454e..00000000
--- a/www/wiki/vendor/symfony/debug/Exception/UndefinedFunctionException.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Exception;
-
-/**
- * Undefined Function Exception.
- *
- * @author Konstanton Myakshin <koc-dp@yandex.ru>
- */
-class UndefinedFunctionException extends FatalErrorException
-{
- public function __construct($message, \ErrorException $previous)
- {
- parent::__construct(
- $message,
- $previous->getCode(),
- $previous->getSeverity(),
- $previous->getFile(),
- $previous->getLine(),
- null,
- true,
- null,
- $previous->getPrevious()
- );
- $this->setTrace($previous->getTrace());
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Exception/UndefinedMethodException.php b/www/wiki/vendor/symfony/debug/Exception/UndefinedMethodException.php
deleted file mode 100644
index f7e340ba..00000000
--- a/www/wiki/vendor/symfony/debug/Exception/UndefinedMethodException.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Exception;
-
-/**
- * Undefined Method Exception.
- *
- * @author Grégoire Pineau <lyrixx@lyrixx.info>
- */
-class UndefinedMethodException extends FatalErrorException
-{
- public function __construct($message, \ErrorException $previous)
- {
- parent::__construct(
- $message,
- $previous->getCode(),
- $previous->getSeverity(),
- $previous->getFile(),
- $previous->getLine(),
- null,
- true,
- null,
- $previous->getPrevious()
- );
- $this->setTrace($previous->getTrace());
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/ExceptionHandler.php b/www/wiki/vendor/symfony/debug/ExceptionHandler.php
deleted file mode 100644
index 2f3d5660..00000000
--- a/www/wiki/vendor/symfony/debug/ExceptionHandler.php
+++ /dev/null
@@ -1,440 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug;
-
-use Symfony\Component\Debug\Exception\FlattenException;
-use Symfony\Component\Debug\Exception\OutOfMemoryException;
-use Symfony\Component\HttpKernel\Debug\FileLinkFormatter;
-
-/**
- * ExceptionHandler converts an exception to a Response object.
- *
- * It is mostly useful in debug mode to replace the default PHP/XDebug
- * output with something prettier and more useful.
- *
- * As this class is mainly used during Kernel boot, where nothing is yet
- * available, the Response content is always HTML.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class ExceptionHandler
-{
- private $debug;
- private $charset;
- private $handler;
- private $caughtBuffer;
- private $caughtLength;
- private $fileLinkFormat;
-
- public function __construct($debug = true, $charset = null, $fileLinkFormat = null)
- {
- $this->debug = $debug;
- $this->charset = $charset ?: ini_get('default_charset') ?: 'UTF-8';
- $this->fileLinkFormat = $fileLinkFormat;
- }
-
- /**
- * Registers the exception handler.
- *
- * @param bool $debug Enable/disable debug mode, where the stack trace is displayed
- * @param string|null $charset The charset used by exception messages
- * @param string|null $fileLinkFormat The IDE link template
- *
- * @return static
- */
- public static function register($debug = true, $charset = null, $fileLinkFormat = null)
- {
- $handler = new static($debug, $charset, $fileLinkFormat);
-
- $prev = set_exception_handler([$handler, 'handle']);
- if (\is_array($prev) && $prev[0] instanceof ErrorHandler) {
- restore_exception_handler();
- $prev[0]->setExceptionHandler([$handler, 'handle']);
- }
-
- return $handler;
- }
-
- /**
- * Sets a user exception handler.
- *
- * @param callable $handler An handler that will be called on Exception
- *
- * @return callable|null The previous exception handler if any
- */
- public function setHandler(callable $handler = null)
- {
- $old = $this->handler;
- $this->handler = $handler;
-
- return $old;
- }
-
- /**
- * Sets the format for links to source files.
- *
- * @param string|FileLinkFormatter $fileLinkFormat The format for links to source files
- *
- * @return string The previous file link format
- */
- public function setFileLinkFormat($fileLinkFormat)
- {
- $old = $this->fileLinkFormat;
- $this->fileLinkFormat = $fileLinkFormat;
-
- return $old;
- }
-
- /**
- * Sends a response for the given Exception.
- *
- * To be as fail-safe as possible, the exception is first handled
- * by our simple exception handler, then by the user exception handler.
- * The latter takes precedence and any output from the former is cancelled,
- * if and only if nothing bad happens in this handling path.
- */
- public function handle(\Exception $exception)
- {
- if (null === $this->handler || $exception instanceof OutOfMemoryException) {
- $this->sendPhpResponse($exception);
-
- return;
- }
-
- $caughtLength = $this->caughtLength = 0;
-
- ob_start(function ($buffer) {
- $this->caughtBuffer = $buffer;
-
- return '';
- });
-
- $this->sendPhpResponse($exception);
- while (null === $this->caughtBuffer && ob_end_flush()) {
- // Empty loop, everything is in the condition
- }
- if (isset($this->caughtBuffer[0])) {
- ob_start(function ($buffer) {
- if ($this->caughtLength) {
- // use substr_replace() instead of substr() for mbstring overloading resistance
- $cleanBuffer = substr_replace($buffer, '', 0, $this->caughtLength);
- if (isset($cleanBuffer[0])) {
- $buffer = $cleanBuffer;
- }
- }
-
- return $buffer;
- });
-
- echo $this->caughtBuffer;
- $caughtLength = ob_get_length();
- }
- $this->caughtBuffer = null;
-
- try {
- \call_user_func($this->handler, $exception);
- $this->caughtLength = $caughtLength;
- } catch (\Exception $e) {
- if (!$caughtLength) {
- // All handlers failed. Let PHP handle that now.
- throw $exception;
- }
- }
- }
-
- /**
- * Sends the error associated with the given Exception as a plain PHP response.
- *
- * This method uses plain PHP functions like header() and echo to output
- * the response.
- *
- * @param \Exception|FlattenException $exception An \Exception or FlattenException instance
- */
- public function sendPhpResponse($exception)
- {
- if (!$exception instanceof FlattenException) {
- $exception = FlattenException::create($exception);
- }
-
- if (!headers_sent()) {
- header(sprintf('HTTP/1.0 %s', $exception->getStatusCode()));
- foreach ($exception->getHeaders() as $name => $value) {
- header($name.': '.$value, false);
- }
- header('Content-Type: text/html; charset='.$this->charset);
- }
-
- echo $this->decorate($this->getContent($exception), $this->getStylesheet($exception));
- }
-
- /**
- * Gets the full HTML content associated with the given exception.
- *
- * @param \Exception|FlattenException $exception An \Exception or FlattenException instance
- *
- * @return string The HTML content as a string
- */
- public function getHtml($exception)
- {
- if (!$exception instanceof FlattenException) {
- $exception = FlattenException::create($exception);
- }
-
- return $this->decorate($this->getContent($exception), $this->getStylesheet($exception));
- }
-
- /**
- * Gets the HTML content associated with the given exception.
- *
- * @return string The content as a string
- */
- public function getContent(FlattenException $exception)
- {
- switch ($exception->getStatusCode()) {
- case 404:
- $title = 'Sorry, the page you are looking for could not be found.';
- break;
- default:
- $title = 'Whoops, looks like something went wrong.';
- }
-
- if (!$this->debug) {
- return <<<EOF
- <div class="container">
- <h1>$title</h1>
- </div>
-EOF;
- }
-
- $content = '';
- try {
- $count = \count($exception->getAllPrevious());
- $total = $count + 1;
- foreach ($exception->toArray() as $position => $e) {
- $ind = $count - $position + 1;
- $class = $this->formatClass($e['class']);
- $message = nl2br($this->escapeHtml($e['message']));
- $content .= sprintf(<<<'EOF'
- <div class="trace trace-as-html">
- <table class="trace-details">
- <thead class="trace-head"><tr><th>
- <h3 class="trace-class">
- <span class="text-muted">(%d/%d)</span>
- <span class="exception_title">%s</span>
- </h3>
- <p class="break-long-words trace-message">%s</p>
- </th></tr></thead>
- <tbody>
-EOF
- , $ind, $total, $class, $message);
- foreach ($e['trace'] as $trace) {
- $content .= '<tr><td>';
- if ($trace['function']) {
- $content .= sprintf('at <span class="trace-class">%s</span><span class="trace-type">%s</span><span class="trace-method">%s</span>(<span class="trace-arguments">%s</span>)', $this->formatClass($trace['class']), $trace['type'], $trace['function'], $this->formatArgs($trace['args']));
- }
- if (isset($trace['file']) && isset($trace['line'])) {
- $content .= $this->formatPath($trace['file'], $trace['line']);
- }
- $content .= "</td></tr>\n";
- }
-
- $content .= "</tbody>\n</table>\n</div>\n";
- }
- } catch (\Exception $e) {
- // something nasty happened and we cannot throw an exception anymore
- if ($this->debug) {
- $title = sprintf('Exception thrown when handling an exception (%s: %s)', \get_class($e), $this->escapeHtml($e->getMessage()));
- } else {
- $title = 'Whoops, looks like something went wrong.';
- }
- }
-
- $symfonyGhostImageContents = $this->getSymfonyGhostAsSvg();
-
- return <<<EOF
- <div class="exception-summary">
- <div class="container">
- <div class="exception-message-wrapper">
- <h1 class="break-long-words exception-message">$title</h1>
- <div class="exception-illustration hidden-xs-down">$symfonyGhostImageContents</div>
- </div>
- </div>
- </div>
-
- <div class="container">
- $content
- </div>
-EOF;
- }
-
- /**
- * Gets the stylesheet associated with the given exception.
- *
- * @return string The stylesheet as a string
- */
- public function getStylesheet(FlattenException $exception)
- {
- if (!$this->debug) {
- return <<<'EOF'
- body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
- .container { margin: 30px; max-width: 600px; }
- h1 { color: #dc3545; font-size: 24px; }
-EOF;
- }
-
- return <<<'EOF'
- body { background-color: #F9F9F9; color: #222; font: 14px/1.4 Helvetica, Arial, sans-serif; margin: 0; padding-bottom: 45px; }
-
- a { cursor: pointer; text-decoration: none; }
- a:hover { text-decoration: underline; }
- abbr[title] { border-bottom: none; cursor: help; text-decoration: none; }
-
- code, pre { font: 13px/1.5 Consolas, Monaco, Menlo, "Ubuntu Mono", "Liberation Mono", monospace; }
-
- table, tr, th, td { background: #FFF; border-collapse: collapse; vertical-align: top; }
- table { background: #FFF; border: 1px solid #E0E0E0; box-shadow: 0px 0px 1px rgba(128, 128, 128, .2); margin: 1em 0; width: 100%; }
- table th, table td { border: solid #E0E0E0; border-width: 1px 0; padding: 8px 10px; }
- table th { background-color: #E0E0E0; font-weight: bold; text-align: left; }
-
- .hidden-xs-down { display: none; }
- .block { display: block; }
- .break-long-words { -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }
- .text-muted { color: #999; }
-
- .container { max-width: 1024px; margin: 0 auto; padding: 0 15px; }
- .container::after { content: ""; display: table; clear: both; }
-
- .exception-summary { background: #B0413E; border-bottom: 2px solid rgba(0, 0, 0, 0.1); border-top: 1px solid rgba(0, 0, 0, .3); flex: 0 0 auto; margin-bottom: 30px; }
-
- .exception-message-wrapper { display: flex; align-items: center; min-height: 70px; }
- .exception-message { flex-grow: 1; padding: 30px 0; }
- .exception-message, .exception-message a { color: #FFF; font-size: 21px; font-weight: 400; margin: 0; }
- .exception-message.long { font-size: 18px; }
- .exception-message a { border-bottom: 1px solid rgba(255, 255, 255, 0.5); font-size: inherit; text-decoration: none; }
- .exception-message a:hover { border-bottom-color: #ffffff; }
-
- .exception-illustration { flex-basis: 111px; flex-shrink: 0; height: 66px; margin-left: 15px; opacity: .7; }
-
- .trace + .trace { margin-top: 30px; }
- .trace-head .trace-class { color: #222; font-size: 18px; font-weight: bold; line-height: 1.3; margin: 0; position: relative; }
-
- .trace-message { font-size: 14px; font-weight: normal; margin: .5em 0 0; }
-
- .trace-file-path, .trace-file-path a { color: #222; margin-top: 3px; font-size: 13px; }
- .trace-class { color: #B0413E; }
- .trace-type { padding: 0 2px; }
- .trace-method { color: #B0413E; font-weight: bold; }
- .trace-arguments { color: #777; font-weight: normal; padding-left: 2px; }
-
- @media (min-width: 575px) {
- .hidden-xs-down { display: initial; }
- }
-EOF;
- }
-
- private function decorate($content, $css)
- {
- return <<<EOF
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="{$this->charset}" />
- <meta name="robots" content="noindex,nofollow" />
- <style>$css</style>
- </head>
- <body>
- $content
- </body>
-</html>
-EOF;
- }
-
- private function formatClass($class)
- {
- $parts = explode('\\', $class);
-
- return sprintf('<abbr title="%s">%s</abbr>', $class, array_pop($parts));
- }
-
- private function formatPath($path, $line)
- {
- $file = $this->escapeHtml(preg_match('#[^/\\\\]*+$#', $path, $file) ? $file[0] : $path);
- $fmt = $this->fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
-
- if (!$fmt) {
- return sprintf('<span class="block trace-file-path">in <a title="%s%3$s"><strong>%s</strong>%s</a></span>', $this->escapeHtml($path), $file, 0 < $line ? ' line '.$line : '');
- }
-
- if (\is_string($fmt)) {
- $i = strpos($f = $fmt, '&', max(strrpos($f, '%f'), strrpos($f, '%l'))) ?: \strlen($f);
- $fmt = [substr($f, 0, $i)] + preg_split('/&([^>]++)>/', substr($f, $i), -1, PREG_SPLIT_DELIM_CAPTURE);
-
- for ($i = 1; isset($fmt[$i]); ++$i) {
- if (0 === strpos($path, $k = $fmt[$i++])) {
- $path = substr_replace($path, $fmt[$i], 0, \strlen($k));
- break;
- }
- }
-
- $link = strtr($fmt[0], ['%f' => $path, '%l' => $line]);
- } else {
- $link = $fmt->format($path, $line);
- }
-
- return sprintf('<span class="block trace-file-path">in <a href="%s" title="Go to source"><strong>%s</string>%s</a></span>', $this->escapeHtml($link), $file, 0 < $line ? ' line '.$line : '');
- }
-
- /**
- * Formats an array as a string.
- *
- * @param array $args The argument array
- *
- * @return string
- */
- private function formatArgs(array $args)
- {
- $result = [];
- foreach ($args as $key => $item) {
- if ('object' === $item[0]) {
- $formattedValue = sprintf('<em>object</em>(%s)', $this->formatClass($item[1]));
- } elseif ('array' === $item[0]) {
- $formattedValue = sprintf('<em>array</em>(%s)', \is_array($item[1]) ? $this->formatArgs($item[1]) : $item[1]);
- } elseif ('null' === $item[0]) {
- $formattedValue = '<em>null</em>';
- } elseif ('boolean' === $item[0]) {
- $formattedValue = '<em>'.strtolower(var_export($item[1], true)).'</em>';
- } elseif ('resource' === $item[0]) {
- $formattedValue = '<em>resource</em>';
- } else {
- $formattedValue = str_replace("\n", '', $this->escapeHtml(var_export($item[1], true)));
- }
-
- $result[] = \is_int($key) ? $formattedValue : sprintf("'%s' => %s", $this->escapeHtml($key), $formattedValue);
- }
-
- return implode(', ', $result);
- }
-
- /**
- * HTML-encodes a string.
- */
- private function escapeHtml($str)
- {
- return htmlspecialchars($str, ENT_COMPAT | ENT_SUBSTITUTE, $this->charset);
- }
-
- private function getSymfonyGhostAsSvg()
- {
- return '<svg viewBox="0 0 136 81" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M92.358 20.403a23.168 23.168 0 0 1 9.003 1.881 23.67 23.67 0 0 1 5.197 3.079 24.257 24.257 0 0 1 3.457 3.296 24.771 24.771 0 0 1 5.042 9.396c.486 1.72.78 3.492.895 5.28l.008.142.028.158.015.246v13.875c.116.034.232.065.348.098.193.054.383.116.577.168.487.125.989.191 1.49.215.338.016.689.023 1.021-.059.021-.005.032-.029.048-.044l.095-.1c.243-.265.461-.552.663-.851.277-.408.523-.837.746-1.279l.042-.087c-.066-.012-.131-.026-.197-.04l-.099-.023a5.536 5.536 0 0 1-.694-.242 5.649 5.649 0 0 1-2.374-1.845 5.694 5.694 0 0 1-.824-1.594 6.514 6.514 0 0 1-.267-2.781c.045-.394.126-.779.233-1.159.079-.278.162-.562.307-.812.094-.163.129-.196.247-.341l.79-.882c.143-.143.174-.186.34-.303.249-.174.536-.289.834-.333.074-.011.15-.014.224-.02l1.188-.037c.173.004.217-.002.388.028s.211.05.375.105l.018.007c.059.026.119.05.176.079.151.076.179.104.313.2l.006-.021c.073-.187.084-.238.187-.41.077-.129.167-.249.27-.357.051-.054.108-.103.162-.154l1.124-.95c.14-.107.172-.14.327-.224.155-.085.199-.094.363-.154l.019-.006c.169-.043.211-.06.385-.077.174-.016.218-.007.392.003l1.446.158c.193.033.244.033.43.098.278.097.534.259.744.47.053.053.1.112.149.167l.923 1.158.149.213.028.054.017-.014.184-.125c.196-.104.196-.104.402-.184l1.386-.451c.064-.018.126-.038.19-.052.129-.028.259-.042.39-.043.16-.002.321.017.478.047.364.069.711.21 1.032.396.162.094.316.199.469.308.088.063.176.132.27.188l.021.011c.19.123.245.146.409.305.185.178.336.393.443.63.035.079.061.162.091.243l.439 1.428c.045.175.062.219.081.4.02.193.006.381-.015.573a7.79 7.79 0 0 1-.101.645c-.09.455-.212.901-.365 1.339-.128.366-.273.73-.445 1.077-.658 1.335-1.652 2.512-2.917 3.265a6.399 6.399 0 0 1-1.019.489 6.097 6.097 0 0 1-.631.203c-.226.058-.455.1-.686.134l-.096.012-.061.007c-.01.176-.022.352-.036.528-.034.39-.082.778-.153 1.163a14.258 14.258 0 0 1-.574 2.114c-.229.654-.484 1.306-.806 1.918a9.16 9.16 0 0 1-.386.656c-.219.348-.451.686-.697 1.013-.448.594-.946 1.148-1.521 1.614-.255.207-.52.397-.808.553-.9.489-1.919.648-2.921.735-.493.038-.986.059-1.478.099-.162.015-.324.033-.486.049-.145.011-.289.022-.434.03a15.768 15.768 0 0 1-2.778-.118c0 1.416.007 2.832-.001 4.248a9.737 9.737 0 0 1-.684 3.479 9.615 9.615 0 0 1-1.72 2.804 9.326 9.326 0 0 1-3.04 2.279 9.046 9.046 0 0 1-5.33.715 9.064 9.064 0 0 1-2.988-1.079 9.363 9.363 0 0 1-2.761-2.429 10.078 10.078 0 0 1-1.05 1.16 9.281 9.281 0 0 1-1.871 1.358 9.033 9.033 0 0 1-2.495.926 9.04 9.04 0 0 1-6.462-1.072 9.395 9.395 0 0 1-2.602-2.292l-.062-.08a10.896 10.896 0 0 1-.53.635 9.266 9.266 0 0 1-2.671 2.032 9.028 9.028 0 0 1-6.044.751 9.048 9.048 0 0 1-2.436-.934 9.343 9.343 0 0 1-2.286-1.803 9.572 9.572 0 0 1-1.783-2.757 9.705 9.705 0 0 1-.773-3.693V67.244c-.157.024-.314.047-.472.067-.487.06-.977.103-1.469.109-.313.004-.627-.009-.94-.028-.426-.025-.85-.065-1.273-.125-1.833-.264-3.65-.92-5.109-2.117a8.172 8.172 0 0 1-1.064-1.049 10.155 10.155 0 0 1-.878-1.236 15.277 15.277 0 0 1-.7-1.274 20.835 20.835 0 0 1-1.889-6.194l-.018-.142-.008-.061a6.47 6.47 0 0 1-.99-.297 6.135 6.135 0 0 1-.61-.285 6.587 6.587 0 0 1-.889-.562c-1.228-.924-2.124-2.259-2.668-3.711a9.947 9.947 0 0 1-.307-.99 10.288 10.288 0 0 1-.318-1.923c-.009-.147-.011-.293-.015-.44v-.037c.008-.175.004-.22.037-.393.033-.173.053-.213.11-.378l.561-1.417c.031-.068.06-.139.095-.206a2.028 2.028 0 0 1 .771-.803c.093-.054.194-.095.289-.145l.311-.179c.352-.194.714-.358 1.107-.44.213-.044.426-.061.643-.061l.034.001c.177.014.223.01.396.052.174.041.214.065.379.132l1.347.635c.073.04.15.076.221.121.142.091.272.2.388.325.154.166.176.222.297.414l.022.047.722-.762.168-.158c.165-.122.202-.161.385-.253.206-.102.429-.168.656-.193.076-.008.152-.008.228-.011l1.46.013c.177.011.223.007.397.046.175.038.215.061.381.126l.018.008c.154.08.196.094.338.196.142.102.169.137.294.259l.853.912.152-.067.191-.063.019-.005.196-.042c.177-.019.222-.031.401-.022.066.003.133.013.199.02l1.185.182c.073.016.147.027.219.047.288.08.558.227.784.428.151.135.177.181.303.339l.714 1.004c.097.152.127.187.201.352.077.172.123.352.164.536.029.134.056.269.08.404.063.361.102.725.112 1.091.021.78-.08 1.566-.321 2.307a5.906 5.906 0 0 1-.532 1.183 5.463 5.463 0 0 1-3.257 2.489l-.03.008c.195.584.433 1.155.712 1.701.215.422.453.833.735 1.211.026.035.026.034.053.068l.058.072c.056.024.113.042.171.06.319.09.653.121.982.14.488.027.978.013 1.461-.06.167-.028.333-.062.499-.089.134-.022.267-.042.401-.066l.28-.056c.154-.023.308-.049.462-.076l.115-.021V43.881c.011-.203.006-.203.042-.404a26.66 26.66 0 0 1 .226-2.241 24.737 24.737 0 0 1 5.72-12.577 24.204 24.204 0 0 1 3.457-3.296 23.653 23.653 0 0 1 4.937-2.966 23.215 23.215 0 0 1 5.604-1.681 23.703 23.703 0 0 1 3.958-.313zm-.287 2.042a21.169 21.169 0 0 0-8.012 1.622 21.636 21.636 0 0 0-4.799 2.766 22.233 22.233 0 0 0-3.205 2.985 22.705 22.705 0 0 0-4.897 9.196 23.383 23.383 0 0 0-.737 4.867h-.025v15.744c-.258.053-.258.052-.517.101-.28.051-.56.1-.841.144-.211.04-.421.079-.632.115l-.232.037-.411.078c-.116.02-.233.035-.348.057-.305.056-.609.11-.917.14a9.929 9.929 0 0 1-1.883-.017c-.514-.056-1.044-.155-1.51-.397a1.762 1.762 0 0 1-.33-.218 1.925 1.925 0 0 1-.234-.252 5.248 5.248 0 0 1-.174-.22 8.97 8.97 0 0 1-.582-.883 13.806 13.806 0 0 1-.941-1.971 14.348 14.348 0 0 1-.608-1.954 14.04 14.04 0 0 1-.169-.86l-.015-.11-.015-.109c.161-.007.16-.007.321-.016a12.793 12.793 0 0 0 1.413-.182 4.43 4.43 0 0 0 .28-.074 3.56 3.56 0 0 0 1.199-.616c.309-.244.576-.543.786-.88.163-.261.292-.544.387-.838.123-.378.192-.774.214-1.172a5.102 5.102 0 0 0-.024-.865 7.192 7.192 0 0 0-.145-.799l-.714-1.005-1.184-.182-.019.005-.946.758-.12 1.229a4.953 4.953 0 0 1 .111.455c.032.181.052.36.043.544a1.04 1.04 0 0 1-.056.303c-.11.301-.419.451-.696.548-.402.142-.813.25-1.229.339l.07-.648c.022-.191.047-.381.08-.57.036-.207.079-.413.152-.61.077-.211.182-.412.296-.605.044-.074.092-.146.135-.222.029-.048.031-.047.055-.098.016-.033.031-.064.045-.098l-.026-1.551-1.042-1.116-.018-.008-1.459-.014-1.022 1.079c-.049.128-.08.258-.111.393a5.274 5.274 0 0 0-.1.651 5.55 5.55 0 0 0-.031.466c-.009.687.104 1.37.294 2.028.11.382.262.753.402 1.123-.115-.029-.228-.06-.342-.092a9.526 9.526 0 0 1-1.176-.446c-.108-.05-.111-.048-.191-.097a1.921 1.921 0 0 1-.327-.249c-.416-.4-.589-.986-.671-1.55a5.643 5.643 0 0 1-.057-.549c-.007-.143-.006-.286-.007-.429-.001-.186.005-.372.011-.558l.001-.039-.567-1.446-1.347-.634c-.316-.008-.599.144-.867.299-.109.063-.218.126-.33.185a2.058 2.058 0 0 1-.125.061l-.042.019-.561 1.416c0 .209.014.416.036.624.04.377.106.75.196 1.118.076.309.164.616.275.913.415 1.109 1.093 2.146 2.043 2.838.234.171.485.317.746.442.183.088.371.161.565.22.263.079.532.13.803.17.296.045.594.075.892.095l.108.007c.004.151.01.302.017.453.011.177.023.353.038.529a18.13 18.13 0 0 0 .762 3.752c.239.76.522 1.505.857 2.225.23.494.483.977.767 1.44.288.469.608.915.989 1.308 1.001 1.028 2.324 1.648 3.687 1.976.643.155 1.298.243 1.955.287.311.021.622.036.933.033.418-.006.835-.041 1.25-.094.238-.03.477-.064.713-.11.117-.023.232-.053.348-.081.196-.048.392-.097.586-.151.147-.041.291-.094.436-.144.204-.069.408-.139.608-.217l.006-.003c0 2.207-.013 4.414.001 6.62a7.942 7.942 0 0 0 .13 1.32 7.545 7.545 0 0 0 2.383 4.243 7.23 7.23 0 0 0 2.258 1.372 7.094 7.094 0 0 0 7.012-1.164 7.504 7.504 0 0 0 2.035-2.613 7.727 7.727 0 0 0 .676-2.401l.009-.088.038-.765a8.16 8.16 0 0 0 .113 1.324c.121.694.338 1.37.643 2.001a7.49 7.49 0 0 0 1.692 2.275 7.266 7.266 0 0 0 2.24 1.399 7.11 7.11 0 0 0 4.615.19 7.212 7.212 0 0 0 2.351-1.218 7.501 7.501 0 0 0 2.128-2.64 7.763 7.763 0 0 0 .702-2.39l.01-.088.009-.088.038-.765a9.339 9.339 0 0 0 .021.575 7.626 7.626 0 0 0 .621 2.504 7.507 7.507 0 0 0 2.35 2.972 7.1 7.1 0 0 0 7.026.881 7.275 7.275 0 0 0 2.268-1.515 7.525 7.525 0 0 0 1.612-2.338 7.58 7.58 0 0 0 .572-2.033c.048-.347.069-.696.071-1.046v-6.721c.136.051.271.101.408.148a12.153 12.153 0 0 0 1.976.443c.264.035.529.055.794.071.33.02.66.031.991.027.245-.002.49-.012.735-.031.245-.018.49-.048.735-.068.407-.03.814-.051 1.221-.079a9.493 9.493 0 0 0 1.384-.188c.315-.073.626-.174.912-.329a3.53 3.53 0 0 0 .586-.418c.46-.386.85-.85 1.205-1.337a12.178 12.178 0 0 0 .801-1.246c.122-.232.229-.471.33-.712a15.873 15.873 0 0 0 .681-1.988c.136-.525.23-1.058.282-1.598.035-.41.052-.822.088-1.232.03-.317.078-.632.121-.947l.018-.145.016-.145c.144.009.287.016.431.021.459.009.924.007 1.378-.07a4.456 4.456 0 0 0 1.353-.482c.989-.55 1.752-1.466 2.258-2.488.116-.235.214-.48.304-.727a7.58 7.58 0 0 0 .377-1.43c.016-.109.027-.218.039-.328l.001-.009-.438-1.428a5.206 5.206 0 0 1-.16-.096c-.158-.105-.311-.219-.467-.326a3.829 3.829 0 0 0-.159-.1 1.356 1.356 0 0 0-.509-.18l-.01-.001-1.386.452-.681 1.323c-.016.212-.023.424-.043.636a5.66 5.66 0 0 1-.139.873c-.118.494-.316.999-.702 1.338a1.865 1.865 0 0 1-.496.301l-.272.087a9.57 9.57 0 0 1-.83.205 8.797 8.797 0 0 1-.582.091l.229-.462c.079-.163.158-.325.229-.492.051-.118.096-.239.139-.36.036-.103.076-.209.103-.315.019-.075.031-.153.041-.229.017-.132.031-.263.043-.395.035-.368.06-.737.094-1.104.02-.187.048-.372.067-.559.015-.167.015-.336.012-.505a4.76 4.76 0 0 0-.074-.826c-.012-.065-.03-.13-.045-.194l-.003-.009-.923-1.157-1.446-.159-.019.006-1.124.95-.154 1.489c.011.034.024.066.037.099.044.115.107.221.161.331.046.096.088.193.13.29l.031.076c.013.033.017.07.023.105.012.096.022.191.031.287.031.364.047.73.081 1.093.013.102.028.202.04.303.014.145.027.29.033.435.014.28.016.561.023.841a9.588 9.588 0 0 1-.862-.323c-.063-.027-.128-.062-.193-.084a1.325 1.325 0 0 0-.067-.013c-.081-.01-.162-.017-.243-.025-.245-.02-.49-.037-.734-.061-.066-.007-.132-.014-.198-.028l-.017-.005c-.03-.013-.029-.014-.067-.038a1.614 1.614 0 0 1-.161-.108.863.863 0 0 1-.22-.242c-.089-.155-.102-.34-.09-.517.02-.299.117-.591.228-.866l.004-.009-.018-1.197-.874-.84-.018-.007-1.188.036-.79.882c-.037.112-.074.224-.106.338a4.756 4.756 0 0 0-.171 1.906c.039.329.115.654.233.963a3.542 3.542 0 0 0 1.263 1.636c.313.222.659.393 1.019.517.237.082.487.111.734.145.479.06.959.106 1.438.166.121.017.241.037.362.058l.158.026a12.12 12.12 0 0 1-.923 2.565 13.221 13.221 0 0 1-.829 1.474 9.474 9.474 0 0 1-.984 1.286c-.08.087-.163.17-.248.252a1.655 1.655 0 0 1-.329.262 2.376 2.376 0 0 1-.722.247c-.457.089-.927.093-1.39.071-.391-.018-.781-.06-1.168-.123a7.817 7.817 0 0 1-.609-.124c-.226-.056-.448-.124-.671-.191-.065-.019-.131-.035-.197-.054a14.75 14.75 0 0 1-.543-.165 23.384 23.384 0 0 1-.453-.128c-.196-.059-.195-.059-.39-.12l-.276-.077V43.881h-.025a34.633 34.633 0 0 0-.031-.557 23.606 23.606 0 0 0-.4-2.994 22.743 22.743 0 0 0-1.492-4.708 22.567 22.567 0 0 0-4.593-6.748 21.865 21.865 0 0 0-6.882-4.706 21.175 21.175 0 0 0-8.115-1.722l-.411-.001zm9.15 33.69c.109.015.214.038.315.085a1.012 1.012 0 0 1 .574.771c.021.132.013.268.009.4a8.38 8.38 0 0 1-.026.476 8.767 8.767 0 0 1-1.564 4.282c-.306.437-.65.846-1.024 1.222a10.09 10.09 0 0 1-4.612 2.627c-1.32.343-2.704.427-4.055.254a10.422 10.422 0 0 1-2.67-.709 9.917 9.917 0 0 1-3.57-2.503 9.312 9.312 0 0 1-.775-.984 8.933 8.933 0 0 1-.731-1.288 8.648 8.648 0 0 1-.795-3.377c-.003-.104-.008-.211 0-.316a1.042 1.042 0 0 1 .254-.609.98.98 0 0 1 1.337-.125 1.023 1.023 0 0 1 .385.719c.007.151.006.303.014.454a6.547 6.547 0 0 0 .524 2.217c.257.595.599 1.15 1.006 1.648.325.398.691.759 1.087 1.081.312.253.642.482.987.684 2.592 1.522 5.945 1.538 8.553.047a7.982 7.982 0 0 0 1.069-.731 7.619 7.619 0 0 0 1.142-1.15 6.949 6.949 0 0 0 1.018-1.741 6.538 6.538 0 0 0 .467-2.425l.004-.084a1.012 1.012 0 0 1 .672-.876c.08-.028.158-.04.241-.05.082-.003.082-.003.164.001zm-70.51-12.426c-15.5.93-28.544-5.922-30.126-16.443C-1.156 15.689 11.64 4.024 29.14 1.235c17.501-2.79 33.123 4.345 34.864 15.922 1.575 10.475-8.749 21.021-23.691 25.001l.001.099a31.185 31.185 0 0 0 .042.833c.007.094.019.188.021.282.006.178.013.356.024.534.011.16.024.32.039.48.017.154.038.306.058.459.036.273.077.544.144.811a4.723 4.723 0 0 0 .449 1.128c.192.332.434.628.702.898l.047.05c.151.139.302.275.461.403.24.192.492.367.748.537.474.314.962.6 1.457.877l.041.023.588.735-.729.586c-.376.112-.755.216-1.135.309a11.193 11.193 0 0 1-2.562.355 8.575 8.575 0 0 1-2.995-.486 8.461 8.461 0 0 1-.96-.413 11.194 11.194 0 0 1-1.836-1.152 13.345 13.345 0 0 1-1.07-.934c-.23-.221-.454-.448-.672-.681-.121-.129-.246-.258-.36-.395a23.448 23.448 0 0 1-1.328-1.773c-.051-.076-.049-.077-.095-.155l-.277-.477-.072-.13c-.081-.177-.159-.357-.238-.535l-.003-.01-.092-.707zm52.409-7.804c3.557 0 6.444 3.201 6.444 7.145 0 3.944-2.887 7.146-6.444 7.146s-6.444-3.202-6.444-7.146 2.887-7.145 6.444-7.145zm18.062 0c3.557 0 6.444 3.201 6.444 7.145 0 3.944-2.887 7.146-6.444 7.146s-6.444-3.202-6.444-7.146 2.887-7.145 6.444-7.145zM83.12 42.029c1.915 0 3.47 1.601 3.47 3.573s-1.555 3.573-3.47 3.573c-1.915 0-3.47-1.601-3.47-3.573s1.555-3.573 3.47-3.573zm17.846 0c1.915 0 3.47 1.601 3.47 3.573s-1.555 3.573-3.47 3.573c-1.915 0-3.47-1.601-3.47-3.573s1.555-3.573 3.47-3.573zM17.019 28c-.368 1.65-1.848 5.008-5.178 5.799-2.572.611-4.153-.815-4.544-2.559-.424-1.891.722-3.532 2.121-4.575a3.473 3.473 0 0 1-1.446-2.099c-.421-1.875.867-3.637 3.184-4.187 1.917-.455 3.185.248 3.462 1.482.265 1.184-.534 2.275-1.828 2.582-.878.209-1.574-.042-1.718-.683a1.4 1.4 0 0 1 .044-.704s.287.227.894.083c.751-.179 1.086-.709.972-1.219-.14-.625-.892-.827-1.739-.626-1.054.25-2.06 1.096-1.713 2.642.232 1.036.871 1.56 1.483 1.813.245-.11.481-.183.688-.233.943-.224 1.48-.005 1.587.472.092.411-.144.935-1.166 1.178a3.255 3.255 0 0 1-1.548.004c-.837.771-1.58 1.883-1.27 3.264.276 1.234 1.267 2.125 2.944 1.726 2.598-.617 3.861-3.638 4.277-4.883-.353-.574-.615-1.153-.732-1.676-.107-.477.145-1.005.863-1.175.48-.114.702.127.846.769a2.77 2.77 0 0 1-.03.995c.209.331.443.622.735.951.616-1.983 1.369-3.877 1.737-3.964.591-.141 1.492.65 1.492.65-.815.644-1.689 2.376-2.333 4.158.804.658 1.627 1.103 2.139.982.43-.102.735-.577.95-1.151-.323-2.226.975-4.331 2.31-4.648.703-.167 1.257.204 1.39.796.114.51-.044 1.379-.854 1.745-.236-1.053-.672-1.348-.944-1.283-.495.117-.844 1.413-.538 2.778.232 1.037.712 1.529 1.351 1.377.756-.179 1.333-1.176 1.699-2.128-.265-2.095.877-4.166 2.221-4.486.671-.159 1.214.162 1.391.952.332 1.48-.986 2.885-2.173 3.444.265.734.673 1.053 1.281.909.96-.229 1.578-1.465 1.923-2.506-.125-1.267-.26-2.385-.406-3.035l-.055-.247s1.568-.286 1.778.652l.019.082c.238-.663.67-1.216 1.309-1.368.83-.197 1.526.504 1.755 1.524.497 2.22-.556 4.428-1.834 4.732-.368.087-.642.066-.883-.033.121 1.288.292 2.651.542 3.77.126.559.272 1.061.448 1.47-.464.11-1.797.392-1.978-.414-.16-.716-.342-3.206-.554-5.612-.504 1.107-1.311 2.192-2.441 2.46-1.008.24-1.685-.303-2.055-1.182-.491 1.082-1.281 2.148-2.381 2.409-.817.194-1.554-.117-1.988-1.013-.36.843-.875 1.555-1.54 1.713-.639.152-1.53-.295-2.4-1.024-.239.888-.384 1.668-.39 2.241 0 0-.701.028-.804-.433-.096-.427.065-1.436.341-2.61a10.315 10.315 0 0 1-.713-.848zm38.163-17.803c.068.157.185.527.266.889.424 1.892.37 4.451.739 6.42-.065.61-.387 3.077-1.352 3.307-.192.045-.333-.06-.422-.454-.14-.626-.091-1.607-.293-2.512-.258-1.152-.782-1.686-1.517-1.511-.767.182-1.287 1.016-1.643 2.054-.022-.099-.053-.386-.093-.567-.211-.938-1.779-.652-1.779-.652a6.2 6.2 0 0 1 .457 1.364c.07.31.119.618.155.921-.246.495-.637.996-1.225 1.135-.064.015-.128.031-.195.029a6.977 6.977 0 0 0-.126-.784c-.258-1.152-.871-2.011-1.526-1.855a.712.712 0 0 0-.423.291c-1.337.317-2.358 2.107-2.118 3.919-.214.889-.551 1.757-1.059 1.877-.415.099-.724-.452-1.03-1.817-.059-.263-.09-.706-.122-1.149.142-.64.177-1.237.081-1.665-.107-.477-.417-.733-.816-.638-.715.17-.909 1.75-.52 3.801-.238.92-.639 1.915-1.278 2.067-.464.11-.835-.27-1.012-1.059-.158-.708-.196-1.929-.236-3.08 1.201-.424 1.911-1.009 1.775-1.617-.114-.51-.739-.743-.739-.743s-.124.722-1.064 1.258c-.029-.582-.064-1.111-.137-1.44-.137-.609-.458-.914-1.688-.622.158.327.274.698.359 1.076.103.46.162.949.189 1.445-.611.128-.947.052-.947.052s-.1.457-.041.72c.078.345.432.348 1.026.224.02 1.364-.067 2.701.143 3.639.306 1.365 1.231 1.89 2.046 1.697.907-.216 1.539-1.275 1.914-2.36.407 1.245 1.031 1.955 1.951 1.736.731-.174 1.261-1.142 1.587-2.195.431.765 1.15 1.129 1.983.931 1.214-.289 1.742-1.54 1.835-2.775 0 0 .147-.018.243-.04.526-.125.949-.488 1.26-.915.04.788.053 1.518.194 2.146.111.493.339.612.595.552.495-.118 1.081-.881 1.081-.881a3.93 3.93 0 0 1-.383-1.035c-.284-1.267.317-3.541.988-3.7.208-.049.377.257.492.767.057.255.092.504.115.751l.098 1.469c.024.246.059.496.116.751.158.707.63 1.236 1.381 1.058 1.317-.313 2.07-2.634 2.178-3.956.228.157.536.175.909.086-.505-2.253.089-6.136-.298-7.864-.1-.444-1.001-.58-1.607-.583l-.467.037zM33.729 22.293c.415-.099.711.246.885 1.02.287 1.283-.222 2.616-.797 2.753-.191.045-.695-.025-.961-1.21-.025-.115-.051-.23-.061-.349.05-1.277.439-2.097.934-2.214zm-5.187.955c.271-.065.511.104.588.449.137.609-.338 1.345-1.275 1.966-.255-1.36.159-2.29.687-2.415zm18.032-.403c-.607.144-1.062-.458-1.239-1.248-.217-.97.001-2.097.644-2.457.001.155.038.32.075.484.147.658.554 1.497 1.268 1.83-.017.749-.253 1.273-.748 1.391zm9.877-1.654c.103.461.496.714 1.039.585.799-.19.973-.993.847-1.553-.125-.559-.461-.93-.988-.805-.543.13-1.108.836-.898 1.773zm-14.21-5.442c-.104-.461-.497-.714-1.056-.581-.783.186-.972.993-.847 1.552.126.56.461.93.908.824.56-.133 1.172-1.006.995-1.795z" fill="#fff" fill-opacity=".6"></path></svg>';
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php b/www/wiki/vendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php
deleted file mode 100644
index 1ac18ac8..00000000
--- a/www/wiki/vendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php
+++ /dev/null
@@ -1,206 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\FatalErrorHandler;
-
-use Composer\Autoload\ClassLoader as ComposerClassLoader;
-use Symfony\Component\ClassLoader\ClassLoader as SymfonyClassLoader;
-use Symfony\Component\Debug\DebugClassLoader;
-use Symfony\Component\Debug\Exception\ClassNotFoundException;
-use Symfony\Component\Debug\Exception\FatalErrorException;
-
-/**
- * ErrorHandler for classes that do not exist.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class ClassNotFoundFatalErrorHandler implements FatalErrorHandlerInterface
-{
- /**
- * {@inheritdoc}
- */
- public function handleError(array $error, FatalErrorException $exception)
- {
- $messageLen = \strlen($error['message']);
- $notFoundSuffix = '\' not found';
- $notFoundSuffixLen = \strlen($notFoundSuffix);
- if ($notFoundSuffixLen > $messageLen) {
- return;
- }
-
- if (0 !== substr_compare($error['message'], $notFoundSuffix, -$notFoundSuffixLen)) {
- return;
- }
-
- foreach (['class', 'interface', 'trait'] as $typeName) {
- $prefix = ucfirst($typeName).' \'';
- $prefixLen = \strlen($prefix);
- if (0 !== strpos($error['message'], $prefix)) {
- continue;
- }
-
- $fullyQualifiedClassName = substr($error['message'], $prefixLen, -$notFoundSuffixLen);
- if (false !== $namespaceSeparatorIndex = strrpos($fullyQualifiedClassName, '\\')) {
- $className = substr($fullyQualifiedClassName, $namespaceSeparatorIndex + 1);
- $namespacePrefix = substr($fullyQualifiedClassName, 0, $namespaceSeparatorIndex);
- $message = sprintf('Attempted to load %s "%s" from namespace "%s".', $typeName, $className, $namespacePrefix);
- $tail = ' for another namespace?';
- } else {
- $className = $fullyQualifiedClassName;
- $message = sprintf('Attempted to load %s "%s" from the global namespace.', $typeName, $className);
- $tail = '?';
- }
-
- if ($candidates = $this->getClassCandidates($className)) {
- $tail = array_pop($candidates).'"?';
- if ($candidates) {
- $tail = ' for e.g. "'.implode('", "', $candidates).'" or "'.$tail;
- } else {
- $tail = ' for "'.$tail;
- }
- }
- $message .= "\nDid you forget a \"use\" statement".$tail;
-
- return new ClassNotFoundException($message, $exception);
- }
- }
-
- /**
- * Tries to guess the full namespace for a given class name.
- *
- * By default, it looks for PSR-0 and PSR-4 classes registered via a Symfony or a Composer
- * autoloader (that should cover all common cases).
- *
- * @param string $class A class name (without its namespace)
- *
- * @return array An array of possible fully qualified class names
- */
- private function getClassCandidates($class)
- {
- if (!\is_array($functions = spl_autoload_functions())) {
- return [];
- }
-
- // find Symfony and Composer autoloaders
- $classes = [];
-
- foreach ($functions as $function) {
- if (!\is_array($function)) {
- continue;
- }
- // get class loaders wrapped by DebugClassLoader
- if ($function[0] instanceof DebugClassLoader) {
- $function = $function[0]->getClassLoader();
-
- if (!\is_array($function)) {
- continue;
- }
- }
-
- if ($function[0] instanceof ComposerClassLoader || $function[0] instanceof SymfonyClassLoader) {
- foreach ($function[0]->getPrefixes() as $prefix => $paths) {
- foreach ($paths as $path) {
- $classes = array_merge($classes, $this->findClassInPath($path, $class, $prefix));
- }
- }
- }
- if ($function[0] instanceof ComposerClassLoader) {
- foreach ($function[0]->getPrefixesPsr4() as $prefix => $paths) {
- foreach ($paths as $path) {
- $classes = array_merge($classes, $this->findClassInPath($path, $class, $prefix));
- }
- }
- }
- }
-
- return array_unique($classes);
- }
-
- /**
- * @param string $path
- * @param string $class
- * @param string $prefix
- *
- * @return array
- */
- private function findClassInPath($path, $class, $prefix)
- {
- if (!$path = realpath($path.'/'.strtr($prefix, '\\_', '//')) ?: realpath($path.'/'.\dirname(strtr($prefix, '\\_', '//'))) ?: realpath($path)) {
- return [];
- }
-
- $classes = [];
- $filename = $class.'.php';
- foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::LEAVES_ONLY) as $file) {
- if ($filename == $file->getFileName() && $class = $this->convertFileToClass($path, $file->getPathName(), $prefix)) {
- $classes[] = $class;
- }
- }
-
- return $classes;
- }
-
- /**
- * @param string $path
- * @param string $file
- * @param string $prefix
- *
- * @return string|null
- */
- private function convertFileToClass($path, $file, $prefix)
- {
- $candidates = [
- // namespaced class
- $namespacedClass = str_replace([$path.\DIRECTORY_SEPARATOR, '.php', '/'], ['', '', '\\'], $file),
- // namespaced class (with target dir)
- $prefix.$namespacedClass,
- // namespaced class (with target dir and separator)
- $prefix.'\\'.$namespacedClass,
- // PEAR class
- str_replace('\\', '_', $namespacedClass),
- // PEAR class (with target dir)
- str_replace('\\', '_', $prefix.$namespacedClass),
- // PEAR class (with target dir and separator)
- str_replace('\\', '_', $prefix.'\\'.$namespacedClass),
- ];
-
- if ($prefix) {
- $candidates = array_filter($candidates, function ($candidate) use ($prefix) { return 0 === strpos($candidate, $prefix); });
- }
-
- // We cannot use the autoloader here as most of them use require; but if the class
- // is not found, the new autoloader call will require the file again leading to a
- // "cannot redeclare class" error.
- foreach ($candidates as $candidate) {
- if ($this->classExists($candidate)) {
- return $candidate;
- }
- }
-
- require_once $file;
-
- foreach ($candidates as $candidate) {
- if ($this->classExists($candidate)) {
- return $candidate;
- }
- }
- }
-
- /**
- * @param string $class
- *
- * @return bool
- */
- private function classExists($class)
- {
- return class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false);
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.php b/www/wiki/vendor/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.php
deleted file mode 100644
index 6b87eb30..00000000
--- a/www/wiki/vendor/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\FatalErrorHandler;
-
-use Symfony\Component\Debug\Exception\FatalErrorException;
-
-/**
- * Attempts to convert fatal errors to exceptions.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-interface FatalErrorHandlerInterface
-{
- /**
- * Attempts to convert an error into an exception.
- *
- * @param array $error An array as returned by error_get_last()
- * @param FatalErrorException $exception A FatalErrorException instance
- *
- * @return FatalErrorException|null A FatalErrorException instance if the class is able to convert the error, null otherwise
- */
- public function handleError(array $error, FatalErrorException $exception);
-}
diff --git a/www/wiki/vendor/symfony/debug/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php b/www/wiki/vendor/symfony/debug/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php
deleted file mode 100644
index 9eddeba5..00000000
--- a/www/wiki/vendor/symfony/debug/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\FatalErrorHandler;
-
-use Symfony\Component\Debug\Exception\FatalErrorException;
-use Symfony\Component\Debug\Exception\UndefinedFunctionException;
-
-/**
- * ErrorHandler for undefined functions.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class UndefinedFunctionFatalErrorHandler implements FatalErrorHandlerInterface
-{
- /**
- * {@inheritdoc}
- */
- public function handleError(array $error, FatalErrorException $exception)
- {
- $messageLen = \strlen($error['message']);
- $notFoundSuffix = '()';
- $notFoundSuffixLen = \strlen($notFoundSuffix);
- if ($notFoundSuffixLen > $messageLen) {
- return;
- }
-
- if (0 !== substr_compare($error['message'], $notFoundSuffix, -$notFoundSuffixLen)) {
- return;
- }
-
- $prefix = 'Call to undefined function ';
- $prefixLen = \strlen($prefix);
- if (0 !== strpos($error['message'], $prefix)) {
- return;
- }
-
- $fullyQualifiedFunctionName = substr($error['message'], $prefixLen, -$notFoundSuffixLen);
- if (false !== $namespaceSeparatorIndex = strrpos($fullyQualifiedFunctionName, '\\')) {
- $functionName = substr($fullyQualifiedFunctionName, $namespaceSeparatorIndex + 1);
- $namespacePrefix = substr($fullyQualifiedFunctionName, 0, $namespaceSeparatorIndex);
- $message = sprintf('Attempted to call function "%s" from namespace "%s".', $functionName, $namespacePrefix);
- } else {
- $functionName = $fullyQualifiedFunctionName;
- $message = sprintf('Attempted to call function "%s" from the global namespace.', $functionName);
- }
-
- $candidates = [];
- foreach (get_defined_functions() as $type => $definedFunctionNames) {
- foreach ($definedFunctionNames as $definedFunctionName) {
- if (false !== $namespaceSeparatorIndex = strrpos($definedFunctionName, '\\')) {
- $definedFunctionNameBasename = substr($definedFunctionName, $namespaceSeparatorIndex + 1);
- } else {
- $definedFunctionNameBasename = $definedFunctionName;
- }
-
- if ($definedFunctionNameBasename === $functionName) {
- $candidates[] = '\\'.$definedFunctionName;
- }
- }
- }
-
- if ($candidates) {
- sort($candidates);
- $last = array_pop($candidates).'"?';
- if ($candidates) {
- $candidates = 'e.g. "'.implode('", "', $candidates).'" or "'.$last;
- } else {
- $candidates = '"'.$last;
- }
- $message .= "\nDid you mean to call ".$candidates;
- }
-
- return new UndefinedFunctionException($message, $exception);
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php b/www/wiki/vendor/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php
deleted file mode 100644
index 1318cb13..00000000
--- a/www/wiki/vendor/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\FatalErrorHandler;
-
-use Symfony\Component\Debug\Exception\FatalErrorException;
-use Symfony\Component\Debug\Exception\UndefinedMethodException;
-
-/**
- * ErrorHandler for undefined methods.
- *
- * @author Grégoire Pineau <lyrixx@lyrixx.info>
- */
-class UndefinedMethodFatalErrorHandler implements FatalErrorHandlerInterface
-{
- /**
- * {@inheritdoc}
- */
- public function handleError(array $error, FatalErrorException $exception)
- {
- preg_match('/^Call to undefined method (.*)::(.*)\(\)$/', $error['message'], $matches);
- if (!$matches) {
- return;
- }
-
- $className = $matches[1];
- $methodName = $matches[2];
-
- $message = sprintf('Attempted to call an undefined method named "%s" of class "%s".', $methodName, $className);
-
- if (!class_exists($className) || null === $methods = get_class_methods($className)) {
- // failed to get the class or its methods on which an unknown method was called (for example on an anonymous class)
- return new UndefinedMethodException($message, $exception);
- }
-
- $candidates = [];
- foreach ($methods as $definedMethodName) {
- $lev = levenshtein($methodName, $definedMethodName);
- if ($lev <= \strlen($methodName) / 3 || false !== strpos($definedMethodName, $methodName)) {
- $candidates[] = $definedMethodName;
- }
- }
-
- if ($candidates) {
- sort($candidates);
- $last = array_pop($candidates).'"?';
- if ($candidates) {
- $candidates = 'e.g. "'.implode('", "', $candidates).'" or "'.$last;
- } else {
- $candidates = '"'.$last;
- }
-
- $message .= "\nDid you mean to call ".$candidates;
- }
-
- return new UndefinedMethodException($message, $exception);
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/LICENSE b/www/wiki/vendor/symfony/debug/LICENSE
deleted file mode 100644
index a677f437..00000000
--- a/www/wiki/vendor/symfony/debug/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2004-2019 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/symfony/debug/README.md b/www/wiki/vendor/symfony/debug/README.md
deleted file mode 100644
index a1d16175..00000000
--- a/www/wiki/vendor/symfony/debug/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-Debug Component
-===============
-
-The Debug component provides tools to ease debugging PHP code.
-
-Resources
----------
-
- * [Documentation](https://symfony.com/doc/current/components/debug/index.html)
- * [Contributing](https://symfony.com/doc/current/contributing/index.html)
- * [Report issues](https://github.com/symfony/symfony/issues) and
- [send Pull Requests](https://github.com/symfony/symfony/pulls)
- in the [main Symfony repository](https://github.com/symfony/symfony)
diff --git a/www/wiki/vendor/symfony/debug/Resources/ext/README.md b/www/wiki/vendor/symfony/debug/Resources/ext/README.md
deleted file mode 100644
index 2df00ecd..00000000
--- a/www/wiki/vendor/symfony/debug/Resources/ext/README.md
+++ /dev/null
@@ -1,134 +0,0 @@
-Symfony Debug Extension for PHP 5
-=================================
-
-This extension publishes several functions to help building powerful debugging tools.
-It is compatible with PHP 5.3, 5.4, 5.5 and 5.6; with ZTS and non-ZTS modes.
-It is not required thus not provided for PHP 7.
-
-symfony_zval_info()
--------------------
-
-- exposes zval_hash/refcounts, allowing e.g. efficient exploration of arbitrary structures in PHP,
-- does work with references, preventing memory copying.
-
-Its behavior is about the same as:
-
-```php
-<?php
-
-function symfony_zval_info($key, $array, $options = 0)
-{
-
- // $options is currently not used, but could be in future version.
-
- if (!array_key_exists($key, $array)) {
- return null;
- }
-
- $info = [
- 'type' => gettype($array[$key]),
- 'zval_hash' => /* hashed memory address of $array[$key] */,
- 'zval_refcount' => /* internal zval refcount of $array[$key] */,
- 'zval_isref' => /* is_ref status of $array[$key] */,
- ];
-
- switch ($info['type']) {
- case 'object':
- $info += [
- 'object_class' => get_class($array[$key]),
- 'object_refcount' => /* internal object refcount of $array[$key] */,
- 'object_hash' => spl_object_hash($array[$key]),
- 'object_handle' => /* internal object handle $array[$key] */,
- ];
- break;
-
- case 'resource':
- $info += [
- 'resource_handle' => (int) $array[$key],
- 'resource_type' => get_resource_type($array[$key]),
- 'resource_refcount' => /* internal resource refcount of $array[$key] */,
- ];
- break;
-
- case 'array':
- $info += [
- 'array_count' => count($array[$key]),
- ];
- break;
-
- case 'string':
- $info += [
- 'strlen' => strlen($array[$key]),
- ];
- break;
- }
-
- return $info;
-}
-```
-
-symfony_debug_backtrace()
--------------------------
-
-This function works like debug_backtrace(), except that it can fetch the full backtrace in case of fatal errors:
-
-```php
-function foo() { fatal(); }
-function bar() { foo(); }
-
-function sd() { var_dump(symfony_debug_backtrace()); }
-
-register_shutdown_function('sd');
-
-bar();
-
-/* Will output
-Fatal error: Call to undefined function fatal() in foo.php on line 42
-array(3) {
- [0]=>
- array(2) {
- ["function"]=>
- string(2) "sd"
- ["args"]=>
- array(0) {
- }
- }
- [1]=>
- array(4) {
- ["file"]=>
- string(7) "foo.php"
- ["line"]=>
- int(1)
- ["function"]=>
- string(3) "foo"
- ["args"]=>
- array(0) {
- }
- }
- [2]=>
- array(4) {
- ["file"]=>
- string(102) "foo.php"
- ["line"]=>
- int(2)
- ["function"]=>
- string(3) "bar"
- ["args"]=>
- array(0) {
- }
- }
-}
-*/
-```
-
-Usage
------
-
-To enable the extension from source, run:
-
-```
- phpize
- ./configure
- make
- sudo make install
-```
diff --git a/www/wiki/vendor/symfony/debug/Resources/ext/config.m4 b/www/wiki/vendor/symfony/debug/Resources/ext/config.m4
deleted file mode 100644
index 3c560471..00000000
--- a/www/wiki/vendor/symfony/debug/Resources/ext/config.m4
+++ /dev/null
@@ -1,63 +0,0 @@
-dnl $Id$
-dnl config.m4 for extension symfony_debug
-
-dnl Comments in this file start with the string 'dnl'.
-dnl Remove where necessary. This file will not work
-dnl without editing.
-
-dnl If your extension references something external, use with:
-
-dnl PHP_ARG_WITH(symfony_debug, for symfony_debug support,
-dnl Make sure that the comment is aligned:
-dnl [ --with-symfony_debug Include symfony_debug support])
-
-dnl Otherwise use enable:
-
-PHP_ARG_ENABLE(symfony_debug, whether to enable symfony_debug support,
-dnl Make sure that the comment is aligned:
-[ --enable-symfony_debug Enable symfony_debug support])
-
-if test "$PHP_SYMFONY_DEBUG" != "no"; then
- dnl Write more examples of tests here...
-
- dnl # --with-symfony_debug -> check with-path
- dnl SEARCH_PATH="/usr/local /usr" # you might want to change this
- dnl SEARCH_FOR="/include/symfony_debug.h" # you most likely want to change this
- dnl if test -r $PHP_SYMFONY_DEBUG/$SEARCH_FOR; then # path given as parameter
- dnl SYMFONY_DEBUG_DIR=$PHP_SYMFONY_DEBUG
- dnl else # search default path list
- dnl AC_MSG_CHECKING([for symfony_debug files in default path])
- dnl for i in $SEARCH_PATH ; do
- dnl if test -r $i/$SEARCH_FOR; then
- dnl SYMFONY_DEBUG_DIR=$i
- dnl AC_MSG_RESULT(found in $i)
- dnl fi
- dnl done
- dnl fi
- dnl
- dnl if test -z "$SYMFONY_DEBUG_DIR"; then
- dnl AC_MSG_RESULT([not found])
- dnl AC_MSG_ERROR([Please reinstall the symfony_debug distribution])
- dnl fi
-
- dnl # --with-symfony_debug -> add include path
- dnl PHP_ADD_INCLUDE($SYMFONY_DEBUG_DIR/include)
-
- dnl # --with-symfony_debug -> check for lib and symbol presence
- dnl LIBNAME=symfony_debug # you may want to change this
- dnl LIBSYMBOL=symfony_debug # you most likely want to change this
-
- dnl PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
- dnl [
- dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $SYMFONY_DEBUG_DIR/lib, SYMFONY_DEBUG_SHARED_LIBADD)
- dnl AC_DEFINE(HAVE_SYMFONY_DEBUGLIB,1,[ ])
- dnl ],[
- dnl AC_MSG_ERROR([wrong symfony_debug lib version or lib not found])
- dnl ],[
- dnl -L$SYMFONY_DEBUG_DIR/lib -lm
- dnl ])
- dnl
- dnl PHP_SUBST(SYMFONY_DEBUG_SHARED_LIBADD)
-
- PHP_NEW_EXTENSION(symfony_debug, symfony_debug.c, $ext_shared)
-fi
diff --git a/www/wiki/vendor/symfony/debug/Resources/ext/config.w32 b/www/wiki/vendor/symfony/debug/Resources/ext/config.w32
deleted file mode 100644
index 487e6913..00000000
--- a/www/wiki/vendor/symfony/debug/Resources/ext/config.w32
+++ /dev/null
@@ -1,13 +0,0 @@
-// $Id$
-// vim:ft=javascript
-
-// If your extension references something external, use ARG_WITH
-// ARG_WITH("symfony_debug", "for symfony_debug support", "no");
-
-// Otherwise, use ARG_ENABLE
-// ARG_ENABLE("symfony_debug", "enable symfony_debug support", "no");
-
-if (PHP_SYMFONY_DEBUG != "no") {
- EXTENSION("symfony_debug", "symfony_debug.c");
-}
-
diff --git a/www/wiki/vendor/symfony/debug/Resources/ext/php_symfony_debug.h b/www/wiki/vendor/symfony/debug/Resources/ext/php_symfony_debug.h
deleted file mode 100644
index 26d0e8c0..00000000
--- a/www/wiki/vendor/symfony/debug/Resources/ext/php_symfony_debug.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-#ifndef PHP_SYMFONY_DEBUG_H
-#define PHP_SYMFONY_DEBUG_H
-
-extern zend_module_entry symfony_debug_module_entry;
-#define phpext_symfony_debug_ptr &symfony_debug_module_entry
-
-#define PHP_SYMFONY_DEBUG_VERSION "2.7"
-
-#ifdef PHP_WIN32
-# define PHP_SYMFONY_DEBUG_API __declspec(dllexport)
-#elif defined(__GNUC__) && __GNUC__ >= 4
-# define PHP_SYMFONY_DEBUG_API __attribute__ ((visibility("default")))
-#else
-# define PHP_SYMFONY_DEBUG_API
-#endif
-
-#ifdef ZTS
-#include "TSRM.h"
-#endif
-
-ZEND_BEGIN_MODULE_GLOBALS(symfony_debug)
- intptr_t req_rand_init;
- void (*old_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
- zval *debug_bt;
-ZEND_END_MODULE_GLOBALS(symfony_debug)
-
-PHP_MINIT_FUNCTION(symfony_debug);
-PHP_MSHUTDOWN_FUNCTION(symfony_debug);
-PHP_RINIT_FUNCTION(symfony_debug);
-PHP_RSHUTDOWN_FUNCTION(symfony_debug);
-PHP_MINFO_FUNCTION(symfony_debug);
-PHP_GINIT_FUNCTION(symfony_debug);
-PHP_GSHUTDOWN_FUNCTION(symfony_debug);
-
-PHP_FUNCTION(symfony_zval_info);
-PHP_FUNCTION(symfony_debug_backtrace);
-
-static char *_symfony_debug_memory_address_hash(void * TSRMLS_DC);
-static const char *_symfony_debug_zval_type(zval *);
-static const char* _symfony_debug_get_resource_type(long TSRMLS_DC);
-static int _symfony_debug_get_resource_refcount(long TSRMLS_DC);
-
-void symfony_debug_error_cb(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
-
-#ifdef ZTS
-#define SYMFONY_DEBUG_G(v) TSRMG(symfony_debug_globals_id, zend_symfony_debug_globals *, v)
-#else
-#define SYMFONY_DEBUG_G(v) (symfony_debug_globals.v)
-#endif
-
-#endif /* PHP_SYMFONY_DEBUG_H */
diff --git a/www/wiki/vendor/symfony/debug/Resources/ext/symfony_debug.c b/www/wiki/vendor/symfony/debug/Resources/ext/symfony_debug.c
deleted file mode 100644
index 0d7cb602..00000000
--- a/www/wiki/vendor/symfony/debug/Resources/ext/symfony_debug.c
+++ /dev/null
@@ -1,283 +0,0 @@
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "php.h"
-#ifdef ZTS
-#include "TSRM.h"
-#endif
-#include "php_ini.h"
-#include "ext/standard/info.h"
-#include "php_symfony_debug.h"
-#include "ext/standard/php_rand.h"
-#include "ext/standard/php_lcg.h"
-#include "ext/spl/php_spl.h"
-#include "Zend/zend_gc.h"
-#include "Zend/zend_builtin_functions.h"
-#include "Zend/zend_extensions.h" /* for ZEND_EXTENSION_API_NO */
-#include "ext/standard/php_array.h"
-#include "Zend/zend_interfaces.h"
-#include "SAPI.h"
-
-#define IS_PHP_53 ZEND_EXTENSION_API_NO == 220090626
-
-ZEND_DECLARE_MODULE_GLOBALS(symfony_debug)
-
-ZEND_BEGIN_ARG_INFO_EX(symfony_zval_arginfo, 0, 0, 2)
- ZEND_ARG_INFO(0, key)
- ZEND_ARG_ARRAY_INFO(0, array, 0)
- ZEND_ARG_INFO(0, options)
-ZEND_END_ARG_INFO()
-
-const zend_function_entry symfony_debug_functions[] = {
- PHP_FE(symfony_zval_info, symfony_zval_arginfo)
- PHP_FE(symfony_debug_backtrace, NULL)
- PHP_FE_END
-};
-
-PHP_FUNCTION(symfony_debug_backtrace)
-{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
-#if IS_PHP_53
- zend_fetch_debug_backtrace(return_value, 1, 0 TSRMLS_CC);
-#else
- zend_fetch_debug_backtrace(return_value, 1, 0, 0 TSRMLS_CC);
-#endif
-
- if (!SYMFONY_DEBUG_G(debug_bt)) {
- return;
- }
-
- php_array_merge(Z_ARRVAL_P(return_value), Z_ARRVAL_P(SYMFONY_DEBUG_G(debug_bt)), 0 TSRMLS_CC);
-}
-
-PHP_FUNCTION(symfony_zval_info)
-{
- zval *key = NULL, *arg = NULL;
- zval **data = NULL;
- HashTable *array = NULL;
- long options = 0;
-
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zh|l", &key, &array, &options) == FAILURE) {
- return;
- }
-
- switch (Z_TYPE_P(key)) {
- case IS_STRING:
- if (zend_symtable_find(array, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, (void **)&data) == FAILURE) {
- return;
- }
- break;
- case IS_LONG:
- if (zend_hash_index_find(array, Z_LVAL_P(key), (void **)&data)) {
- return;
- }
- break;
- }
-
- arg = *data;
-
- array_init(return_value);
-
- add_assoc_string(return_value, "type", (char *)_symfony_debug_zval_type(arg), 1);
- add_assoc_stringl(return_value, "zval_hash", _symfony_debug_memory_address_hash((void *)arg TSRMLS_CC), 16, 0);
- add_assoc_long(return_value, "zval_refcount", Z_REFCOUNT_P(arg));
- add_assoc_bool(return_value, "zval_isref", (zend_bool)Z_ISREF_P(arg));
-
- if (Z_TYPE_P(arg) == IS_OBJECT) {
- char hash[33] = {0};
-
- php_spl_object_hash(arg, (char *)hash TSRMLS_CC);
- add_assoc_stringl(return_value, "object_class", (char *)Z_OBJCE_P(arg)->name, Z_OBJCE_P(arg)->name_length, 1);
- add_assoc_long(return_value, "object_refcount", EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(arg)].bucket.obj.refcount);
- add_assoc_string(return_value, "object_hash", hash, 1);
- add_assoc_long(return_value, "object_handle", Z_OBJ_HANDLE_P(arg));
- } else if (Z_TYPE_P(arg) == IS_ARRAY) {
- add_assoc_long(return_value, "array_count", zend_hash_num_elements(Z_ARRVAL_P(arg)));
- } else if(Z_TYPE_P(arg) == IS_RESOURCE) {
- add_assoc_long(return_value, "resource_handle", Z_LVAL_P(arg));
- add_assoc_string(return_value, "resource_type", (char *)_symfony_debug_get_resource_type(Z_LVAL_P(arg) TSRMLS_CC), 1);
- add_assoc_long(return_value, "resource_refcount", _symfony_debug_get_resource_refcount(Z_LVAL_P(arg) TSRMLS_CC));
- } else if (Z_TYPE_P(arg) == IS_STRING) {
- add_assoc_long(return_value, "strlen", Z_STRLEN_P(arg));
- }
-}
-
-void symfony_debug_error_cb(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args)
-{
- TSRMLS_FETCH();
- zval *retval;
-
- switch (type) {
- case E_ERROR:
- case E_PARSE:
- case E_CORE_ERROR:
- case E_CORE_WARNING:
- case E_COMPILE_ERROR:
- case E_COMPILE_WARNING:
- ALLOC_INIT_ZVAL(retval);
-#if IS_PHP_53
- zend_fetch_debug_backtrace(retval, 1, 0 TSRMLS_CC);
-#else
- zend_fetch_debug_backtrace(retval, 1, 0, 0 TSRMLS_CC);
-#endif
- SYMFONY_DEBUG_G(debug_bt) = retval;
- }
-
- SYMFONY_DEBUG_G(old_error_cb)(type, error_filename, error_lineno, format, args);
-}
-
-static const char* _symfony_debug_get_resource_type(long rsid TSRMLS_DC)
-{
- const char *res_type;
- res_type = zend_rsrc_list_get_rsrc_type(rsid TSRMLS_CC);
-
- if (!res_type) {
- return "Unknown";
- }
-
- return res_type;
-}
-
-static int _symfony_debug_get_resource_refcount(long rsid TSRMLS_DC)
-{
- zend_rsrc_list_entry *le;
-
- if (zend_hash_index_find(&EG(regular_list), rsid, (void **) &le)==SUCCESS) {
- return le->refcount;
- }
-
- return 0;
-}
-
-static char *_symfony_debug_memory_address_hash(void *address TSRMLS_DC)
-{
- char *result = NULL;
- intptr_t address_rand;
-
- if (!SYMFONY_DEBUG_G(req_rand_init)) {
- if (!BG(mt_rand_is_seeded)) {
- php_mt_srand(GENERATE_SEED() TSRMLS_CC);
- }
- SYMFONY_DEBUG_G(req_rand_init) = (intptr_t)php_mt_rand(TSRMLS_C);
- }
-
- address_rand = (intptr_t)address ^ SYMFONY_DEBUG_G(req_rand_init);
-
- spprintf(&result, 17, "%016zx", address_rand);
-
- return result;
-}
-
-static const char *_symfony_debug_zval_type(zval *zv)
-{
- switch (Z_TYPE_P(zv)) {
- case IS_NULL:
- return "NULL";
- break;
-
- case IS_BOOL:
- return "boolean";
- break;
-
- case IS_LONG:
- return "integer";
- break;
-
- case IS_DOUBLE:
- return "double";
- break;
-
- case IS_STRING:
- return "string";
- break;
-
- case IS_ARRAY:
- return "array";
- break;
-
- case IS_OBJECT:
- return "object";
-
- case IS_RESOURCE:
- return "resource";
-
- default:
- return "unknown type";
- }
-}
-
-zend_module_entry symfony_debug_module_entry = {
- STANDARD_MODULE_HEADER,
- "symfony_debug",
- symfony_debug_functions,
- PHP_MINIT(symfony_debug),
- PHP_MSHUTDOWN(symfony_debug),
- PHP_RINIT(symfony_debug),
- PHP_RSHUTDOWN(symfony_debug),
- PHP_MINFO(symfony_debug),
- PHP_SYMFONY_DEBUG_VERSION,
- PHP_MODULE_GLOBALS(symfony_debug),
- PHP_GINIT(symfony_debug),
- PHP_GSHUTDOWN(symfony_debug),
- NULL,
- STANDARD_MODULE_PROPERTIES_EX
-};
-
-#ifdef COMPILE_DL_SYMFONY_DEBUG
-ZEND_GET_MODULE(symfony_debug)
-#endif
-
-PHP_GINIT_FUNCTION(symfony_debug)
-{
- memset(symfony_debug_globals, 0 , sizeof(*symfony_debug_globals));
-}
-
-PHP_GSHUTDOWN_FUNCTION(symfony_debug)
-{
-
-}
-
-PHP_MINIT_FUNCTION(symfony_debug)
-{
- SYMFONY_DEBUG_G(old_error_cb) = zend_error_cb;
- zend_error_cb = symfony_debug_error_cb;
-
- return SUCCESS;
-}
-
-PHP_MSHUTDOWN_FUNCTION(symfony_debug)
-{
- zend_error_cb = SYMFONY_DEBUG_G(old_error_cb);
-
- return SUCCESS;
-}
-
-PHP_RINIT_FUNCTION(symfony_debug)
-{
- return SUCCESS;
-}
-
-PHP_RSHUTDOWN_FUNCTION(symfony_debug)
-{
- return SUCCESS;
-}
-
-PHP_MINFO_FUNCTION(symfony_debug)
-{
- php_info_print_table_start();
- php_info_print_table_header(2, "Symfony Debug support", "enabled");
- php_info_print_table_header(2, "Symfony Debug version", PHP_SYMFONY_DEBUG_VERSION);
- php_info_print_table_end();
-}
diff --git a/www/wiki/vendor/symfony/debug/Resources/ext/tests/001.phpt b/www/wiki/vendor/symfony/debug/Resources/ext/tests/001.phpt
deleted file mode 100644
index 86a9427c..00000000
--- a/www/wiki/vendor/symfony/debug/Resources/ext/tests/001.phpt
+++ /dev/null
@@ -1,155 +0,0 @@
---TEST--
-Test symfony_zval_info API
---SKIPIF--
-<?php if (!extension_loaded('symfony_debug')) {
- echo 'skip';
-} ?>
---FILE--
-<?php
-
-$int = 42;
-$float = 42.42;
-$str = 'foobar';
-$object = new StdClass();
-$array = ['foo', 'bar'];
-$resource = tmpfile();
-$null = null;
-$bool = true;
-
-$anotherint = 42;
-$refcount2 = &$anotherint;
-
-$var = [
- 'int' => $int,
- 'float' => $float,
- 'str' => $str,
- 'object' => $object,
- 'array' => $array,
- 'resource' => $resource,
- 'null' => $null,
- 'bool' => $bool,
- 'refcount' => &$refcount2,
-];
-
-var_dump(symfony_zval_info('int', $var));
-var_dump(symfony_zval_info('float', $var));
-var_dump(symfony_zval_info('str', $var));
-var_dump(symfony_zval_info('object', $var));
-var_dump(symfony_zval_info('array', $var));
-var_dump(symfony_zval_info('resource', $var));
-var_dump(symfony_zval_info('null', $var));
-var_dump(symfony_zval_info('bool', $var));
-
-var_dump(symfony_zval_info('refcount', $var));
-var_dump(symfony_zval_info('not-exist', $var));
-?>
---EXPECTF--
-array(4) {
- ["type"]=>
- string(7) "integer"
- ["zval_hash"]=>
- string(16) "%s"
- ["zval_refcount"]=>
- int(2)
- ["zval_isref"]=>
- bool(false)
-}
-array(4) {
- ["type"]=>
- string(6) "double"
- ["zval_hash"]=>
- string(16) "%s"
- ["zval_refcount"]=>
- int(2)
- ["zval_isref"]=>
- bool(false)
-}
-array(5) {
- ["type"]=>
- string(6) "string"
- ["zval_hash"]=>
- string(16) "%s"
- ["zval_refcount"]=>
- int(2)
- ["zval_isref"]=>
- bool(false)
- ["strlen"]=>
- int(6)
-}
-array(8) {
- ["type"]=>
- string(6) "object"
- ["zval_hash"]=>
- string(16) "%s"
- ["zval_refcount"]=>
- int(2)
- ["zval_isref"]=>
- bool(false)
- ["object_class"]=>
- string(8) "stdClass"
- ["object_refcount"]=>
- int(1)
- ["object_hash"]=>
- string(32) "%s"
- ["object_handle"]=>
- int(%d)
-}
-array(5) {
- ["type"]=>
- string(5) "array"
- ["zval_hash"]=>
- string(16) "%s"
- ["zval_refcount"]=>
- int(2)
- ["zval_isref"]=>
- bool(false)
- ["array_count"]=>
- int(2)
-}
-array(7) {
- ["type"]=>
- string(8) "resource"
- ["zval_hash"]=>
- string(16) "%s"
- ["zval_refcount"]=>
- int(2)
- ["zval_isref"]=>
- bool(false)
- ["resource_handle"]=>
- int(%d)
- ["resource_type"]=>
- string(6) "stream"
- ["resource_refcount"]=>
- int(1)
-}
-array(4) {
- ["type"]=>
- string(4) "NULL"
- ["zval_hash"]=>
- string(16) "%s"
- ["zval_refcount"]=>
- int(2)
- ["zval_isref"]=>
- bool(false)
-}
-array(4) {
- ["type"]=>
- string(7) "boolean"
- ["zval_hash"]=>
- string(16) "%s"
- ["zval_refcount"]=>
- int(2)
- ["zval_isref"]=>
- bool(false)
-}
-array(4) {
- ["type"]=>
- string(7) "integer"
- ["zval_hash"]=>
- string(16) "%s"
- ["zval_refcount"]=>
- int(3)
- ["zval_isref"]=>
- bool(true)
-}
-NULL
diff --git a/www/wiki/vendor/symfony/debug/Resources/ext/tests/002.phpt b/www/wiki/vendor/symfony/debug/Resources/ext/tests/002.phpt
deleted file mode 100644
index afc7bb49..00000000
--- a/www/wiki/vendor/symfony/debug/Resources/ext/tests/002.phpt
+++ /dev/null
@@ -1,65 +0,0 @@
---TEST--
-Test symfony_debug_backtrace in case of fatal error
---SKIPIF--
-<?php if (!extension_loaded('symfony_debug')) {
- echo 'skip';
-} ?>
---FILE--
-<?php
-
-function bar()
-{
- foo();
-}
-
-function foo()
-{
- notexist();
-}
-
-function bt()
-{
- print_r(symfony_debug_backtrace());
-}
-
-register_shutdown_function('bt');
-
-bar();
-
-?>
---EXPECTF--
-Fatal error: Call to undefined function notexist() in %s on line %d
-Array
-(
- [0] => Array
- (
- [function] => bt
- [args] => Array
- (
- )
-
- )
-
- [1] => Array
- (
- [file] => %s
- [line] => %d
- [function] => foo
- [args] => Array
- (
- )
-
- )
-
- [2] => Array
- (
- [file] => %s
- [line] => %d
- [function] => bar
- [args] => Array
- (
- )
-
- )
-
-)
diff --git a/www/wiki/vendor/symfony/debug/Resources/ext/tests/002_1.phpt b/www/wiki/vendor/symfony/debug/Resources/ext/tests/002_1.phpt
deleted file mode 100644
index 86de3e17..00000000
--- a/www/wiki/vendor/symfony/debug/Resources/ext/tests/002_1.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-Test symfony_debug_backtrace in case of non fatal error
---SKIPIF--
-<?php if (!extension_loaded('symfony_debug')) {
- echo 'skip';
-} ?>
---FILE--
-<?php
-
-function bar()
-{
- bt();
-}
-
-function bt()
-{
- print_r(symfony_debug_backtrace());
-}
-
-bar();
-
-?>
---EXPECTF--
-Array
-(
- [0] => Array
- (
- [file] => %s
- [line] => %d
- [function] => bt
- [args] => Array
- (
- )
-
- )
-
- [1] => Array
- (
- [file] => %s
- [line] => %d
- [function] => bar
- [args] => Array
- (
- )
-
- )
-
-)
diff --git a/www/wiki/vendor/symfony/debug/Resources/ext/tests/003.phpt b/www/wiki/vendor/symfony/debug/Resources/ext/tests/003.phpt
deleted file mode 100644
index 4e764503..00000000
--- a/www/wiki/vendor/symfony/debug/Resources/ext/tests/003.phpt
+++ /dev/null
@@ -1,87 +0,0 @@
---TEST--
-Test ErrorHandler in case of fatal error
---SKIPIF--
-<?php if (!extension_loaded('symfony_debug')) {
- echo 'skip';
-} ?>
---FILE--
-<?php
-
-namespace Psr\Log;
-
-class LogLevel
-{
- const EMERGENCY = 'emergency';
- const ALERT = 'alert';
- const CRITICAL = 'critical';
- const ERROR = 'error';
- const WARNING = 'warning';
- const NOTICE = 'notice';
- const INFO = 'info';
- const DEBUG = 'debug';
-}
-
-namespace Symfony\Component\Debug;
-
-$dir = __DIR__.'/../../../';
-require $dir.'ErrorHandler.php';
-require $dir.'Exception/FatalErrorException.php';
-require $dir.'Exception/UndefinedFunctionException.php';
-require $dir.'FatalErrorHandler/FatalErrorHandlerInterface.php';
-require $dir.'FatalErrorHandler/ClassNotFoundFatalErrorHandler.php';
-require $dir.'FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php';
-require $dir.'FatalErrorHandler/UndefinedMethodFatalErrorHandler.php';
-
-function bar()
-{
- foo();
-}
-
-function foo()
-{
- notexist();
-}
-
-$handler = ErrorHandler::register();
-$handler->setExceptionHandler('print_r');
-
-if (\function_exists('xdebug_disable')) {
- xdebug_disable();
-}
-
-bar();
-?>
---EXPECTF--
-Fatal error: Call to undefined function Symfony\Component\Debug\notexist() in %s on line %d
-Symfony\Component\Debug\Exception\UndefinedFunctionException Object
-(
- [message:protected] => Attempted to call function "notexist" from namespace "Symfony\Component\Debug".
- [string:Exception:private] =>
- [code:protected] => 0
- [file:protected] => %s
- [line:protected] => %d
- [trace:Exception:private] => Array
- (
- [0] => Array
- (
-%A [function] => Symfony\Component\Debug\foo
-%A [args] => Array
- (
- )
-
- )
-
- [1] => Array
- (
-%A [function] => Symfony\Component\Debug\bar
-%A [args] => Array
- (
- )
-
- )
-%A
- )
-
- [previous:Exception:private] =>
- [severity:protected] => 1
-)
diff --git a/www/wiki/vendor/symfony/debug/Tests/DebugClassLoaderTest.php b/www/wiki/vendor/symfony/debug/Tests/DebugClassLoaderTest.php
deleted file mode 100644
index c6bc3f7d..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/DebugClassLoaderTest.php
+++ /dev/null
@@ -1,451 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Debug\DebugClassLoader;
-use Symfony\Component\Debug\ErrorHandler;
-
-class DebugClassLoaderTest extends TestCase
-{
- /**
- * @var int Error reporting level before running tests
- */
- private $errorReporting;
-
- private $loader;
-
- protected function setUp()
- {
- $this->errorReporting = error_reporting(E_ALL);
- $this->loader = new ClassLoader();
- spl_autoload_register([$this->loader, 'loadClass'], true, true);
- DebugClassLoader::enable();
- }
-
- protected function tearDown()
- {
- DebugClassLoader::disable();
- spl_autoload_unregister([$this->loader, 'loadClass']);
- error_reporting($this->errorReporting);
- }
-
- public function testIdempotence()
- {
- DebugClassLoader::enable();
-
- $functions = spl_autoload_functions();
- foreach ($functions as $function) {
- if (\is_array($function) && $function[0] instanceof DebugClassLoader) {
- $reflClass = new \ReflectionClass($function[0]);
- $reflProp = $reflClass->getProperty('classLoader');
- $reflProp->setAccessible(true);
-
- $this->assertNotInstanceOf('Symfony\Component\Debug\DebugClassLoader', $reflProp->getValue($function[0]));
-
- return;
- }
- }
-
- $this->fail('DebugClassLoader did not register');
- }
-
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage boo
- */
- public function testThrowingClass()
- {
- try {
- class_exists(__NAMESPACE__.'\Fixtures\Throwing');
- $this->fail('Exception expected');
- } catch (\Exception $e) {
- $this->assertSame('boo', $e->getMessage());
- }
-
- // the second call also should throw
- class_exists(__NAMESPACE__.'\Fixtures\Throwing');
- }
-
- public function testUnsilencing()
- {
- if (\PHP_VERSION_ID >= 70000) {
- $this->markTestSkipped('PHP7 throws exceptions, unsilencing is not required anymore.');
- }
- if (\defined('HHVM_VERSION')) {
- $this->markTestSkipped('HHVM is not handled in this test case.');
- }
-
- ob_start();
-
- $this->iniSet('log_errors', 0);
- $this->iniSet('display_errors', 1);
-
- // See below: this will fail with parse error
- // but this should not be @-silenced.
- @class_exists(__NAMESPACE__.'\TestingUnsilencing', true);
-
- $output = ob_get_clean();
-
- $this->assertStringMatchesFormat('%aParse error%a', $output);
- }
-
- public function testStacking()
- {
- // the ContextErrorException must not be loaded to test the workaround
- // for https://bugs.php.net/65322.
- if (class_exists('Symfony\Component\Debug\Exception\ContextErrorException', false)) {
- $this->markTestSkipped('The ContextErrorException class is already loaded.');
- }
- if (\defined('HHVM_VERSION')) {
- $this->markTestSkipped('HHVM is not handled in this test case.');
- }
-
- ErrorHandler::register();
-
- try {
- // Trigger autoloading + E_STRICT at compile time
- // which in turn triggers $errorHandler->handle()
- // that again triggers autoloading for ContextErrorException.
- // Error stacking works around the bug above and everything is fine.
-
- eval('
- namespace '.__NAMESPACE__.';
- class ChildTestingStacking extends TestingStacking { function foo($bar) {} }
- ');
- $this->fail('ContextErrorException expected');
- } catch (\ErrorException $exception) {
- // if an exception is thrown, the test passed
- $this->assertStringStartsWith(__FILE__, $exception->getFile());
- if (\PHP_VERSION_ID < 70000) {
- $this->assertRegExp('/^Runtime Notice: Declaration/', $exception->getMessage());
- $this->assertEquals(E_STRICT, $exception->getSeverity());
- } else {
- $this->assertRegExp('/^Warning: Declaration/', $exception->getMessage());
- $this->assertEquals(E_WARNING, $exception->getSeverity());
- }
- } finally {
- restore_error_handler();
- restore_exception_handler();
- }
- }
-
- /**
- * @expectedException \RuntimeException
- * @expectedExceptionMessage Case mismatch between loaded and declared class names
- */
- public function testNameCaseMismatch()
- {
- class_exists(__NAMESPACE__.'\TestingCaseMismatch', true);
- }
-
- /**
- * @expectedException \RuntimeException
- * @expectedExceptionMessage Case mismatch between class and real file names
- */
- public function testFileCaseMismatch()
- {
- if (!file_exists(__DIR__.'/Fixtures/CaseMismatch.php')) {
- $this->markTestSkipped('Can only be run on case insensitive filesystems');
- }
-
- class_exists(__NAMESPACE__.'\Fixtures\CaseMismatch', true);
- }
-
- /**
- * @expectedException \RuntimeException
- * @expectedExceptionMessage Case mismatch between loaded and declared class names
- */
- public function testPsr4CaseMismatch()
- {
- class_exists(__NAMESPACE__.'\Fixtures\Psr4CaseMismatch', true);
- }
-
- public function testNotPsr0()
- {
- $this->assertTrue(class_exists(__NAMESPACE__.'\Fixtures\NotPSR0', true));
- }
-
- public function testNotPsr0Bis()
- {
- $this->assertTrue(class_exists(__NAMESPACE__.'\Fixtures\NotPSR0bis', true));
- }
-
- public function testClassAlias()
- {
- $this->assertTrue(class_exists(__NAMESPACE__.'\Fixtures\ClassAlias', true));
- }
-
- /**
- * @dataProvider provideDeprecatedSuper
- */
- public function testDeprecatedSuper($class, $super, $type)
- {
- set_error_handler(function () { return false; });
- $e = error_reporting(0);
- @trigger_error('', E_USER_DEPRECATED);
-
- class_exists('Test\\'.__NAMESPACE__.'\\'.$class, true);
-
- error_reporting($e);
- restore_error_handler();
-
- $lastError = error_get_last();
- unset($lastError['file'], $lastError['line']);
-
- $xError = [
- 'type' => E_USER_DEPRECATED,
- 'message' => 'The "Test\Symfony\Component\Debug\Tests\\'.$class.'" class '.$type.' "Symfony\Component\Debug\Tests\Fixtures\\'.$super.'" that is deprecated but this is a test deprecation notice.',
- ];
-
- $this->assertSame($xError, $lastError);
- }
-
- public function provideDeprecatedSuper()
- {
- return [
- ['DeprecatedInterfaceClass', 'DeprecatedInterface', 'implements'],
- ['DeprecatedParentClass', 'DeprecatedClass', 'extends'],
- ];
- }
-
- public function testInterfaceExtendsDeprecatedInterface()
- {
- set_error_handler(function () { return false; });
- $e = error_reporting(0);
- trigger_error('', E_USER_NOTICE);
-
- class_exists('Test\\'.__NAMESPACE__.'\\NonDeprecatedInterfaceClass', true);
-
- error_reporting($e);
- restore_error_handler();
-
- $lastError = error_get_last();
- unset($lastError['file'], $lastError['line']);
-
- $xError = [
- 'type' => E_USER_NOTICE,
- 'message' => '',
- ];
-
- $this->assertSame($xError, $lastError);
- }
-
- public function testDeprecatedSuperInSameNamespace()
- {
- set_error_handler(function () { return false; });
- $e = error_reporting(0);
- trigger_error('', E_USER_NOTICE);
-
- class_exists('Symfony\Bridge\Debug\Tests\Fixtures\ExtendsDeprecatedParent', true);
-
- error_reporting($e);
- restore_error_handler();
-
- $lastError = error_get_last();
- unset($lastError['file'], $lastError['line']);
-
- $xError = [
- 'type' => E_USER_NOTICE,
- 'message' => '',
- ];
-
- $this->assertSame($xError, $lastError);
- }
-
- public function testReservedForPhp7()
- {
- if (\PHP_VERSION_ID >= 70000) {
- $this->markTestSkipped('PHP7 already prevents using reserved names.');
- }
-
- set_error_handler(function () { return false; });
- $e = error_reporting(0);
- trigger_error('', E_USER_NOTICE);
-
- class_exists('Test\\'.__NAMESPACE__.'\\Float', true);
-
- error_reporting($e);
- restore_error_handler();
-
- $lastError = error_get_last();
- unset($lastError['file'], $lastError['line']);
-
- $xError = [
- 'type' => E_USER_DEPRECATED,
- 'message' => 'The "Test\Symfony\Component\Debug\Tests\Float" class uses the reserved name "Float", it will break on PHP 7 and higher',
- ];
-
- $this->assertSame($xError, $lastError);
- }
-
- public function testExtendedFinalClass()
- {
- $deprecations = [];
- set_error_handler(function ($type, $msg) use (&$deprecations) { $deprecations[] = $msg; });
- $e = error_reporting(E_USER_DEPRECATED);
-
- require __DIR__.'/Fixtures/FinalClasses.php';
-
- $i = 1;
- while (class_exists($finalClass = __NAMESPACE__.'\\Fixtures\\FinalClass'.$i++, false)) {
- spl_autoload_call($finalClass);
- class_exists('Test\\'.__NAMESPACE__.'\\Extends'.substr($finalClass, strrpos($finalClass, '\\') + 1), true);
- }
-
- error_reporting($e);
- restore_error_handler();
-
- $this->assertSame([
- 'The "Symfony\Component\Debug\Tests\Fixtures\FinalClass1" class is considered final since version 3.3. It may change without further notice as of its next major version. You should not extend it from "Test\Symfony\Component\Debug\Tests\ExtendsFinalClass1".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\FinalClass2" class is considered final. It may change without further notice as of its next major version. You should not extend it from "Test\Symfony\Component\Debug\Tests\ExtendsFinalClass2".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\FinalClass3" class is considered final comment with @@@ and ***. It may change without further notice as of its next major version. You should not extend it from "Test\Symfony\Component\Debug\Tests\ExtendsFinalClass3".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\FinalClass4" class is considered final. It may change without further notice as of its next major version. You should not extend it from "Test\Symfony\Component\Debug\Tests\ExtendsFinalClass4".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\FinalClass5" class is considered final multiline comment. It may change without further notice as of its next major version. You should not extend it from "Test\Symfony\Component\Debug\Tests\ExtendsFinalClass5".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\FinalClass6" class is considered final. It may change without further notice as of its next major version. You should not extend it from "Test\Symfony\Component\Debug\Tests\ExtendsFinalClass6".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\FinalClass7" class is considered final another multiline comment... It may change without further notice as of its next major version. You should not extend it from "Test\Symfony\Component\Debug\Tests\ExtendsFinalClass7".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\FinalClass8" class is considered final. It may change without further notice as of its next major version. You should not extend it from "Test\Symfony\Component\Debug\Tests\ExtendsFinalClass8".',
- ], $deprecations);
- }
-
- public function testExtendedFinalMethod()
- {
- $deprecations = [];
- set_error_handler(function ($type, $msg) use (&$deprecations) { $deprecations[] = $msg; });
- $e = error_reporting(E_USER_DEPRECATED);
-
- class_exists(__NAMESPACE__.'\\Fixtures\\ExtendedFinalMethod', true);
-
- error_reporting($e);
- restore_error_handler();
-
- $xError = [
- 'The "Symfony\Component\Debug\Tests\Fixtures\FinalMethod::finalMethod()" method is considered final since version 3.3. It may change without further notice as of its next major version. You should not extend it from "Symfony\Component\Debug\Tests\Fixtures\ExtendedFinalMethod".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\FinalMethod::finalMethod2()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Symfony\Component\Debug\Tests\Fixtures\ExtendedFinalMethod".',
- ];
-
- $this->assertSame($xError, $deprecations);
- }
-
- public function testExtendedDeprecatedMethodDoesntTriggerAnyNotice()
- {
- set_error_handler(function () { return false; });
- $e = error_reporting(0);
- trigger_error('', E_USER_NOTICE);
-
- class_exists('Test\\'.__NAMESPACE__.'\\ExtendsAnnotatedClass', true);
-
- error_reporting($e);
- restore_error_handler();
-
- $lastError = error_get_last();
- unset($lastError['file'], $lastError['line']);
-
- $this->assertSame(['type' => E_USER_NOTICE, 'message' => ''], $lastError);
- }
-
- public function testInternalsUse()
- {
- $deprecations = [];
- set_error_handler(function ($type, $msg) use (&$deprecations) { $deprecations[] = $msg; });
- $e = error_reporting(E_USER_DEPRECATED);
-
- class_exists('Test\\'.__NAMESPACE__.'\\ExtendsInternals', true);
-
- error_reporting($e);
- restore_error_handler();
-
- $this->assertSame($deprecations, [
- 'The "Symfony\Component\Debug\Tests\Fixtures\InternalInterface" interface is considered internal. It may change without further notice. You should not use it from "Test\Symfony\Component\Debug\Tests\ExtendsInternalsParent".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\InternalClass" class is considered internal since version 3.4. It may change without further notice. You should not use it from "Test\Symfony\Component\Debug\Tests\ExtendsInternalsParent".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\InternalTrait" trait is considered internal. It may change without further notice. You should not use it from "Test\Symfony\Component\Debug\Tests\ExtendsInternals".',
- 'The "Symfony\Component\Debug\Tests\Fixtures\InternalClass::internalMethod()" method is considered internal since version 3.4. It may change without further notice. You should not extend it from "Test\Symfony\Component\Debug\Tests\ExtendsInternals".',
- ]);
- }
-
- public function testUseTraitWithInternalMethod()
- {
- $deprecations = [];
- set_error_handler(function ($type, $msg) use (&$deprecations) { $deprecations[] = $msg; });
- $e = error_reporting(E_USER_DEPRECATED);
-
- class_exists('Test\\'.__NAMESPACE__.'\\UseTraitWithInternalMethod', true);
-
- error_reporting($e);
- restore_error_handler();
-
- $this->assertSame([], $deprecations);
- }
-
- public function testEvaluatedCode()
- {
- $this->assertTrue(class_exists(__NAMESPACE__.'\Fixtures\DefinitionInEvaluatedCode', true));
- }
-}
-
-class ClassLoader
-{
- public function loadClass($class)
- {
- }
-
- public function getClassMap()
- {
- return [__NAMESPACE__.'\Fixtures\NotPSR0bis' => __DIR__.'/Fixtures/notPsr0Bis.php'];
- }
-
- public function findFile($class)
- {
- $fixtureDir = __DIR__.\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR;
-
- if (__NAMESPACE__.'\TestingUnsilencing' === $class) {
- eval('-- parse error --');
- } elseif (__NAMESPACE__.'\TestingStacking' === $class) {
- eval('namespace '.__NAMESPACE__.'; class TestingStacking { function foo() {} }');
- } elseif (__NAMESPACE__.'\TestingCaseMismatch' === $class) {
- eval('namespace '.__NAMESPACE__.'; class TestingCaseMisMatch {}');
- } elseif (__NAMESPACE__.'\Fixtures\Psr4CaseMismatch' === $class) {
- return $fixtureDir.'psr4'.\DIRECTORY_SEPARATOR.'Psr4CaseMismatch.php';
- } elseif (__NAMESPACE__.'\Fixtures\NotPSR0' === $class) {
- return $fixtureDir.'reallyNotPsr0.php';
- } elseif (__NAMESPACE__.'\Fixtures\NotPSR0bis' === $class) {
- return $fixtureDir.'notPsr0Bis.php';
- } elseif ('Symfony\Bridge\Debug\Tests\Fixtures\ExtendsDeprecatedParent' === $class) {
- eval('namespace Symfony\Bridge\Debug\Tests\Fixtures; class ExtendsDeprecatedParent extends \\'.__NAMESPACE__.'\Fixtures\DeprecatedClass {}');
- } elseif ('Test\\'.__NAMESPACE__.'\DeprecatedParentClass' === $class) {
- eval('namespace Test\\'.__NAMESPACE__.'; class DeprecatedParentClass extends \\'.__NAMESPACE__.'\Fixtures\DeprecatedClass {}');
- } elseif ('Test\\'.__NAMESPACE__.'\DeprecatedInterfaceClass' === $class) {
- eval('namespace Test\\'.__NAMESPACE__.'; class DeprecatedInterfaceClass implements \\'.__NAMESPACE__.'\Fixtures\DeprecatedInterface {}');
- } elseif ('Test\\'.__NAMESPACE__.'\NonDeprecatedInterfaceClass' === $class) {
- eval('namespace Test\\'.__NAMESPACE__.'; class NonDeprecatedInterfaceClass implements \\'.__NAMESPACE__.'\Fixtures\NonDeprecatedInterface {}');
- } elseif ('Test\\'.__NAMESPACE__.'\Float' === $class) {
- eval('namespace Test\\'.__NAMESPACE__.'; class Float {}');
- } elseif (0 === strpos($class, 'Test\\'.__NAMESPACE__.'\ExtendsFinalClass')) {
- $classShortName = substr($class, strrpos($class, '\\') + 1);
- eval('namespace Test\\'.__NAMESPACE__.'; class '.$classShortName.' extends \\'.__NAMESPACE__.'\Fixtures\\'.substr($classShortName, 7).' {}');
- } elseif ('Test\\'.__NAMESPACE__.'\ExtendsAnnotatedClass' === $class) {
- eval('namespace Test\\'.__NAMESPACE__.'; class ExtendsAnnotatedClass extends \\'.__NAMESPACE__.'\Fixtures\AnnotatedClass {
- public function deprecatedMethod() { }
- }');
- } elseif ('Test\\'.__NAMESPACE__.'\ExtendsInternals' === $class) {
- eval('namespace Test\\'.__NAMESPACE__.'; class ExtendsInternals extends ExtendsInternalsParent {
- use \\'.__NAMESPACE__.'\Fixtures\InternalTrait;
-
- public function internalMethod() { }
- }');
- } elseif ('Test\\'.__NAMESPACE__.'\ExtendsInternalsParent' === $class) {
- eval('namespace Test\\'.__NAMESPACE__.'; class ExtendsInternalsParent extends \\'.__NAMESPACE__.'\Fixtures\InternalClass implements \\'.__NAMESPACE__.'\Fixtures\InternalInterface { }');
- } elseif ('Test\\'.__NAMESPACE__.'\UseTraitWithInternalMethod' === $class) {
- eval('namespace Test\\'.__NAMESPACE__.'; class UseTraitWithInternalMethod { use \\'.__NAMESPACE__.'\Fixtures\TraitWithInternalMethod; }');
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/ErrorHandlerTest.php b/www/wiki/vendor/symfony/debug/Tests/ErrorHandlerTest.php
deleted file mode 100644
index c1dea75b..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/ErrorHandlerTest.php
+++ /dev/null
@@ -1,645 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Psr\Log\LogLevel;
-use Psr\Log\NullLogger;
-use Symfony\Component\Debug\BufferingLogger;
-use Symfony\Component\Debug\ErrorHandler;
-use Symfony\Component\Debug\Exception\SilencedErrorContext;
-use Symfony\Component\Debug\Tests\Fixtures\ErrorHandlerThatUsesThePreviousOne;
-use Symfony\Component\Debug\Tests\Fixtures\LoggerThatSetAnErrorHandler;
-
-/**
- * ErrorHandlerTest.
- *
- * @author Robert Schönthal <seroscho@googlemail.com>
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class ErrorHandlerTest extends TestCase
-{
- public function testRegister()
- {
- $handler = ErrorHandler::register();
-
- try {
- $this->assertInstanceOf('Symfony\Component\Debug\ErrorHandler', $handler);
- $this->assertSame($handler, ErrorHandler::register());
-
- $newHandler = new ErrorHandler();
-
- $this->assertSame($handler, ErrorHandler::register($newHandler, false));
- $h = set_error_handler('var_dump');
- restore_error_handler();
- $this->assertSame([$handler, 'handleError'], $h);
-
- try {
- $this->assertSame($newHandler, ErrorHandler::register($newHandler, true));
- $h = set_error_handler('var_dump');
- restore_error_handler();
- $this->assertSame([$newHandler, 'handleError'], $h);
- } catch (\Exception $e) {
- }
-
- restore_error_handler();
- restore_exception_handler();
-
- if (isset($e)) {
- throw $e;
- }
- } catch (\Exception $e) {
- }
-
- restore_error_handler();
- restore_exception_handler();
-
- if (isset($e)) {
- throw $e;
- }
- }
-
- public function testErrorGetLast()
- {
- $handler = ErrorHandler::register();
- $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
- $handler->setDefaultLogger($logger);
- $handler->screamAt(E_ALL);
-
- try {
- @trigger_error('Hello', E_USER_WARNING);
- $expected = [
- 'type' => E_USER_WARNING,
- 'message' => 'Hello',
- 'file' => __FILE__,
- 'line' => __LINE__ - 5,
- ];
- $this->assertSame($expected, error_get_last());
- } catch (\Exception $e) {
- restore_error_handler();
- restore_exception_handler();
-
- throw $e;
- }
- }
-
- public function testNotice()
- {
- ErrorHandler::register();
-
- try {
- self::triggerNotice($this);
- $this->fail('ErrorException expected');
- } catch (\ErrorException $exception) {
- // if an exception is thrown, the test passed
- $this->assertEquals(E_NOTICE, $exception->getSeverity());
- $this->assertEquals(__FILE__, $exception->getFile());
- $this->assertRegExp('/^Notice: Undefined variable: (foo|bar)/', $exception->getMessage());
-
- $trace = $exception->getTrace();
-
- $this->assertEquals(__FILE__, $trace[0]['file']);
- $this->assertEquals(__CLASS__, $trace[0]['class']);
- $this->assertEquals('triggerNotice', $trace[0]['function']);
- $this->assertEquals('::', $trace[0]['type']);
-
- $this->assertEquals(__FILE__, $trace[0]['file']);
- $this->assertEquals(__CLASS__, $trace[1]['class']);
- $this->assertEquals(__FUNCTION__, $trace[1]['function']);
- $this->assertEquals('->', $trace[1]['type']);
- } finally {
- restore_error_handler();
- restore_exception_handler();
- }
- }
-
- // dummy function to test trace in error handler.
- private static function triggerNotice($that)
- {
- $that->assertSame('', $foo.$foo.$bar);
- }
-
- public function testConstruct()
- {
- try {
- $handler = ErrorHandler::register();
- $handler->throwAt(3, true);
- $this->assertEquals(3 | E_RECOVERABLE_ERROR | E_USER_ERROR, $handler->throwAt(0));
- } finally {
- restore_error_handler();
- restore_exception_handler();
- }
- }
-
- public function testDefaultLogger()
- {
- try {
- $handler = ErrorHandler::register();
-
- $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
-
- $handler->setDefaultLogger($logger, E_NOTICE);
- $handler->setDefaultLogger($logger, [E_USER_NOTICE => LogLevel::CRITICAL]);
-
- $loggers = [
- E_DEPRECATED => [null, LogLevel::INFO],
- E_USER_DEPRECATED => [null, LogLevel::INFO],
- E_NOTICE => [$logger, LogLevel::WARNING],
- E_USER_NOTICE => [$logger, LogLevel::CRITICAL],
- E_STRICT => [null, LogLevel::WARNING],
- E_WARNING => [null, LogLevel::WARNING],
- E_USER_WARNING => [null, LogLevel::WARNING],
- E_COMPILE_WARNING => [null, LogLevel::WARNING],
- E_CORE_WARNING => [null, LogLevel::WARNING],
- E_USER_ERROR => [null, LogLevel::CRITICAL],
- E_RECOVERABLE_ERROR => [null, LogLevel::CRITICAL],
- E_COMPILE_ERROR => [null, LogLevel::CRITICAL],
- E_PARSE => [null, LogLevel::CRITICAL],
- E_ERROR => [null, LogLevel::CRITICAL],
- E_CORE_ERROR => [null, LogLevel::CRITICAL],
- ];
- $this->assertSame($loggers, $handler->setLoggers([]));
- } finally {
- restore_error_handler();
- restore_exception_handler();
- }
- }
-
- public function testHandleError()
- {
- try {
- $handler = ErrorHandler::register();
- $handler->throwAt(0, true);
- $this->assertFalse($handler->handleError(0, 'foo', 'foo.php', 12, []));
-
- restore_error_handler();
- restore_exception_handler();
-
- $handler = ErrorHandler::register();
- $handler->throwAt(3, true);
- $this->assertFalse($handler->handleError(4, 'foo', 'foo.php', 12, []));
-
- restore_error_handler();
- restore_exception_handler();
-
- $handler = ErrorHandler::register();
- $handler->throwAt(3, true);
- try {
- $handler->handleError(4, 'foo', 'foo.php', 12, []);
- } catch (\ErrorException $e) {
- $this->assertSame('Parse Error: foo', $e->getMessage());
- $this->assertSame(4, $e->getSeverity());
- $this->assertSame('foo.php', $e->getFile());
- $this->assertSame(12, $e->getLine());
- }
-
- restore_error_handler();
- restore_exception_handler();
-
- $handler = ErrorHandler::register();
- $handler->throwAt(E_USER_DEPRECATED, true);
- $this->assertFalse($handler->handleError(E_USER_DEPRECATED, 'foo', 'foo.php', 12, []));
-
- restore_error_handler();
- restore_exception_handler();
-
- $handler = ErrorHandler::register();
- $handler->throwAt(E_DEPRECATED, true);
- $this->assertFalse($handler->handleError(E_DEPRECATED, 'foo', 'foo.php', 12, []));
-
- restore_error_handler();
- restore_exception_handler();
-
- $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
-
- $warnArgCheck = function ($logLevel, $message, $context) {
- $this->assertEquals('info', $logLevel);
- $this->assertEquals('User Deprecated: foo', $message);
- $this->assertArrayHasKey('exception', $context);
- $exception = $context['exception'];
- $this->assertInstanceOf(\ErrorException::class, $exception);
- $this->assertSame('User Deprecated: foo', $exception->getMessage());
- $this->assertSame(E_USER_DEPRECATED, $exception->getSeverity());
- };
-
- $logger
- ->expects($this->once())
- ->method('log')
- ->will($this->returnCallback($warnArgCheck))
- ;
-
- $handler = ErrorHandler::register();
- $handler->setDefaultLogger($logger, E_USER_DEPRECATED);
- $this->assertTrue($handler->handleError(E_USER_DEPRECATED, 'foo', 'foo.php', 12, []));
-
- restore_error_handler();
- restore_exception_handler();
-
- $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
-
- $line = null;
- $logArgCheck = function ($level, $message, $context) use (&$line) {
- $this->assertEquals('Notice: Undefined variable: undefVar', $message);
- $this->assertArrayHasKey('exception', $context);
- $exception = $context['exception'];
- $this->assertInstanceOf(SilencedErrorContext::class, $exception);
- $this->assertSame(E_NOTICE, $exception->getSeverity());
- $this->assertSame(__FILE__, $exception->getFile());
- $this->assertSame($line, $exception->getLine());
- $this->assertNotEmpty($exception->getTrace());
- $this->assertSame(1, $exception->count);
- };
-
- $logger
- ->expects($this->once())
- ->method('log')
- ->will($this->returnCallback($logArgCheck))
- ;
-
- $handler = ErrorHandler::register();
- $handler->setDefaultLogger($logger, E_NOTICE);
- $handler->screamAt(E_NOTICE);
- unset($undefVar);
- $line = __LINE__ + 1;
- @$undefVar++;
-
- restore_error_handler();
- restore_exception_handler();
- } catch (\Exception $e) {
- restore_error_handler();
- restore_exception_handler();
-
- throw $e;
- }
- }
-
- public function testHandleUserError()
- {
- try {
- $handler = ErrorHandler::register();
- $handler->throwAt(0, true);
-
- $e = null;
- $x = new \Exception('Foo');
-
- try {
- $f = new Fixtures\ToStringThrower($x);
- $f .= ''; // Trigger $f->__toString()
- } catch (\Exception $e) {
- }
-
- $this->assertSame($x, $e);
- } finally {
- restore_error_handler();
- restore_exception_handler();
- }
- }
-
- public function testHandleDeprecation()
- {
- $logArgCheck = function ($level, $message, $context) {
- $this->assertEquals(LogLevel::INFO, $level);
- $this->assertArrayHasKey('exception', $context);
- $exception = $context['exception'];
- $this->assertInstanceOf(\ErrorException::class, $exception);
- $this->assertSame('User Deprecated: Foo deprecation', $exception->getMessage());
- };
-
- $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
- $logger
- ->expects($this->once())
- ->method('log')
- ->will($this->returnCallback($logArgCheck))
- ;
-
- $handler = new ErrorHandler();
- $handler->setDefaultLogger($logger);
- @$handler->handleError(E_USER_DEPRECATED, 'Foo deprecation', __FILE__, __LINE__, []);
-
- restore_error_handler();
- }
-
- /**
- * @group no-hhvm
- */
- public function testHandleException()
- {
- try {
- $handler = ErrorHandler::register();
-
- $exception = new \Exception('foo');
-
- $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
-
- $logArgCheck = function ($level, $message, $context) {
- $this->assertSame('Uncaught Exception: foo', $message);
- $this->assertArrayHasKey('exception', $context);
- $this->assertInstanceOf(\Exception::class, $context['exception']);
- };
-
- $logger
- ->expects($this->exactly(2))
- ->method('log')
- ->will($this->returnCallback($logArgCheck))
- ;
-
- $handler->setDefaultLogger($logger, E_ERROR);
-
- try {
- $handler->handleException($exception);
- $this->fail('Exception expected');
- } catch (\Exception $e) {
- $this->assertSame($exception, $e);
- }
-
- $handler->setExceptionHandler(function ($e) use ($exception) {
- $this->assertSame($exception, $e);
- });
-
- $handler->handleException($exception);
- } finally {
- restore_error_handler();
- restore_exception_handler();
- }
- }
-
- /**
- * @group legacy
- */
- public function testErrorStacking()
- {
- try {
- $handler = ErrorHandler::register();
- $handler->screamAt(E_USER_WARNING);
-
- $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
-
- $logger
- ->expects($this->exactly(2))
- ->method('log')
- ->withConsecutive(
- [$this->equalTo(LogLevel::WARNING), $this->equalTo('Dummy log')],
- [$this->equalTo(LogLevel::DEBUG), $this->equalTo('User Warning: Silenced warning')]
- )
- ;
-
- $handler->setDefaultLogger($logger, [E_USER_WARNING => LogLevel::WARNING]);
-
- ErrorHandler::stackErrors();
- @trigger_error('Silenced warning', E_USER_WARNING);
- $logger->log(LogLevel::WARNING, 'Dummy log');
- ErrorHandler::unstackErrors();
- } finally {
- restore_error_handler();
- restore_exception_handler();
- }
- }
-
- public function testBootstrappingLogger()
- {
- $bootLogger = new BufferingLogger();
- $handler = new ErrorHandler($bootLogger);
-
- $loggers = [
- E_DEPRECATED => [$bootLogger, LogLevel::INFO],
- E_USER_DEPRECATED => [$bootLogger, LogLevel::INFO],
- E_NOTICE => [$bootLogger, LogLevel::WARNING],
- E_USER_NOTICE => [$bootLogger, LogLevel::WARNING],
- E_STRICT => [$bootLogger, LogLevel::WARNING],
- E_WARNING => [$bootLogger, LogLevel::WARNING],
- E_USER_WARNING => [$bootLogger, LogLevel::WARNING],
- E_COMPILE_WARNING => [$bootLogger, LogLevel::WARNING],
- E_CORE_WARNING => [$bootLogger, LogLevel::WARNING],
- E_USER_ERROR => [$bootLogger, LogLevel::CRITICAL],
- E_RECOVERABLE_ERROR => [$bootLogger, LogLevel::CRITICAL],
- E_COMPILE_ERROR => [$bootLogger, LogLevel::CRITICAL],
- E_PARSE => [$bootLogger, LogLevel::CRITICAL],
- E_ERROR => [$bootLogger, LogLevel::CRITICAL],
- E_CORE_ERROR => [$bootLogger, LogLevel::CRITICAL],
- ];
-
- $this->assertSame($loggers, $handler->setLoggers([]));
-
- $handler->handleError(E_DEPRECATED, 'Foo message', __FILE__, 123, []);
-
- $logs = $bootLogger->cleanLogs();
-
- $this->assertCount(1, $logs);
- $log = $logs[0];
- $this->assertSame('info', $log[0]);
- $this->assertSame('Deprecated: Foo message', $log[1]);
- $this->assertArrayHasKey('exception', $log[2]);
- $exception = $log[2]['exception'];
- $this->assertInstanceOf(\ErrorException::class, $exception);
- $this->assertSame('Deprecated: Foo message', $exception->getMessage());
- $this->assertSame(__FILE__, $exception->getFile());
- $this->assertSame(123, $exception->getLine());
- $this->assertSame(E_DEPRECATED, $exception->getSeverity());
-
- $bootLogger->log(LogLevel::WARNING, 'Foo message', ['exception' => $exception]);
-
- $mockLogger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
- $mockLogger->expects($this->once())
- ->method('log')
- ->with(LogLevel::WARNING, 'Foo message', ['exception' => $exception]);
-
- $handler->setLoggers([E_DEPRECATED => [$mockLogger, LogLevel::WARNING]]);
- }
-
- /**
- * @group no-hhvm
- */
- public function testSettingLoggerWhenExceptionIsBuffered()
- {
- $bootLogger = new BufferingLogger();
- $handler = new ErrorHandler($bootLogger);
-
- $exception = new \Exception('Foo message');
-
- $mockLogger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
- $mockLogger->expects($this->once())
- ->method('log')
- ->with(LogLevel::CRITICAL, 'Uncaught Exception: Foo message', ['exception' => $exception]);
-
- $handler->setExceptionHandler(function () use ($handler, $mockLogger) {
- $handler->setDefaultLogger($mockLogger);
- });
-
- $handler->handleException($exception);
- }
-
- /**
- * @group no-hhvm
- */
- public function testHandleFatalError()
- {
- try {
- $handler = ErrorHandler::register();
-
- $error = [
- 'type' => E_PARSE,
- 'message' => 'foo',
- 'file' => 'bar',
- 'line' => 123,
- ];
-
- $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
-
- $logArgCheck = function ($level, $message, $context) {
- $this->assertEquals('Fatal Parse Error: foo', $message);
- $this->assertArrayHasKey('exception', $context);
- $this->assertInstanceOf(\Exception::class, $context['exception']);
- };
-
- $logger
- ->expects($this->once())
- ->method('log')
- ->will($this->returnCallback($logArgCheck))
- ;
-
- $handler->setDefaultLogger($logger, E_PARSE);
-
- $handler->handleFatalError($error);
-
- restore_error_handler();
- restore_exception_handler();
- } catch (\Exception $e) {
- restore_error_handler();
- restore_exception_handler();
-
- throw $e;
- }
- }
-
- /**
- * @requires PHP 7
- */
- public function testHandleErrorException()
- {
- $exception = new \Error("Class 'Foo' not found");
-
- $handler = new ErrorHandler();
- $handler->setExceptionHandler(function () use (&$args) {
- $args = \func_get_args();
- });
-
- $handler->handleException($exception);
-
- $this->assertInstanceOf('Symfony\Component\Debug\Exception\ClassNotFoundException', $args[0]);
- $this->assertStringStartsWith("Attempted to load class \"Foo\" from the global namespace.\nDid you forget a \"use\" statement", $args[0]->getMessage());
- }
-
- /**
- * @group no-hhvm
- */
- public function testHandleFatalErrorOnHHVM()
- {
- try {
- $handler = ErrorHandler::register();
-
- $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
- $logger
- ->expects($this->once())
- ->method('log')
- ->with(
- $this->equalTo(LogLevel::CRITICAL),
- $this->equalTo('Fatal Error: foo')
- )
- ;
-
- $handler->setDefaultLogger($logger, E_ERROR);
-
- $error = [
- 'type' => E_ERROR + 0x1000000, // This error level is used by HHVM for fatal errors
- 'message' => 'foo',
- 'file' => 'bar',
- 'line' => 123,
- 'context' => [123],
- 'backtrace' => [456],
- ];
-
- \call_user_func_array([$handler, 'handleError'], $error);
- $handler->handleFatalError($error);
- } finally {
- restore_error_handler();
- restore_exception_handler();
- }
- }
-
- /**
- * @expectedException \Exception
- * @group no-hhvm
- */
- public function testCustomExceptionHandler()
- {
- $handler = new ErrorHandler();
- $handler->setExceptionHandler(function ($e) use ($handler) {
- $handler->handleException($e);
- });
-
- $handler->handleException(new \Exception());
- }
-
- /**
- * @dataProvider errorHandlerWhenLoggingProvider
- */
- public function testErrorHandlerWhenLogging($previousHandlerWasDefined, $loggerSetsAnotherHandler, $nextHandlerIsDefined)
- {
- try {
- if ($previousHandlerWasDefined) {
- set_error_handler('count');
- }
-
- $logger = $loggerSetsAnotherHandler ? new LoggerThatSetAnErrorHandler() : new NullLogger();
-
- $handler = ErrorHandler::register();
- $handler->setDefaultLogger($logger);
-
- if ($nextHandlerIsDefined) {
- $handler = ErrorHandlerThatUsesThePreviousOne::register();
- }
-
- @trigger_error('foo', E_USER_DEPRECATED);
- @trigger_error('bar', E_USER_DEPRECATED);
-
- $this->assertSame([$handler, 'handleError'], set_error_handler('var_dump'));
-
- if ($logger instanceof LoggerThatSetAnErrorHandler) {
- $this->assertCount(2, $logger->cleanLogs());
- }
-
- restore_error_handler();
-
- if ($previousHandlerWasDefined) {
- restore_error_handler();
- }
-
- if ($nextHandlerIsDefined) {
- restore_error_handler();
- }
- } finally {
- restore_error_handler();
- restore_exception_handler();
- }
- }
-
- public function errorHandlerWhenLoggingProvider()
- {
- foreach ([false, true] as $previousHandlerWasDefined) {
- foreach ([false, true] as $loggerSetsAnotherHandler) {
- foreach ([false, true] as $nextHandlerIsDefined) {
- yield [$previousHandlerWasDefined, $loggerSetsAnotherHandler, $nextHandlerIsDefined];
- }
- }
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Exception/FlattenExceptionTest.php b/www/wiki/vendor/symfony/debug/Tests/Exception/FlattenExceptionTest.php
deleted file mode 100644
index f755a78c..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Exception/FlattenExceptionTest.php
+++ /dev/null
@@ -1,302 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Tests\Exception;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Debug\Exception\FlattenException;
-use Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException;
-use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
-use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
-use Symfony\Component\HttpKernel\Exception\ConflictHttpException;
-use Symfony\Component\HttpKernel\Exception\GoneHttpException;
-use Symfony\Component\HttpKernel\Exception\LengthRequiredHttpException;
-use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
-use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException;
-use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
-use Symfony\Component\HttpKernel\Exception\PreconditionFailedHttpException;
-use Symfony\Component\HttpKernel\Exception\PreconditionRequiredHttpException;
-use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException;
-use Symfony\Component\HttpKernel\Exception\TooManyRequestsHttpException;
-use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
-use Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException;
-
-class FlattenExceptionTest extends TestCase
-{
- public function testStatusCode()
- {
- $flattened = FlattenException::create(new \RuntimeException(), 403);
- $this->assertEquals('403', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new \RuntimeException());
- $this->assertEquals('500', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new NotFoundHttpException());
- $this->assertEquals('404', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new UnauthorizedHttpException('Basic realm="My Realm"'));
- $this->assertEquals('401', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new BadRequestHttpException());
- $this->assertEquals('400', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new NotAcceptableHttpException());
- $this->assertEquals('406', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new ConflictHttpException());
- $this->assertEquals('409', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new MethodNotAllowedHttpException(['POST']));
- $this->assertEquals('405', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new AccessDeniedHttpException());
- $this->assertEquals('403', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new GoneHttpException());
- $this->assertEquals('410', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new LengthRequiredHttpException());
- $this->assertEquals('411', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new PreconditionFailedHttpException());
- $this->assertEquals('412', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new PreconditionRequiredHttpException());
- $this->assertEquals('428', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new ServiceUnavailableHttpException());
- $this->assertEquals('503', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new TooManyRequestsHttpException());
- $this->assertEquals('429', $flattened->getStatusCode());
-
- $flattened = FlattenException::create(new UnsupportedMediaTypeHttpException());
- $this->assertEquals('415', $flattened->getStatusCode());
-
- if (class_exists(SuspiciousOperationException::class)) {
- $flattened = FlattenException::create(new SuspiciousOperationException());
- $this->assertEquals('400', $flattened->getStatusCode());
- }
- }
-
- public function testHeadersForHttpException()
- {
- $flattened = FlattenException::create(new MethodNotAllowedHttpException(['POST']));
- $this->assertEquals(['Allow' => 'POST'], $flattened->getHeaders());
-
- $flattened = FlattenException::create(new UnauthorizedHttpException('Basic realm="My Realm"'));
- $this->assertEquals(['WWW-Authenticate' => 'Basic realm="My Realm"'], $flattened->getHeaders());
-
- $flattened = FlattenException::create(new ServiceUnavailableHttpException('Fri, 31 Dec 1999 23:59:59 GMT'));
- $this->assertEquals(['Retry-After' => 'Fri, 31 Dec 1999 23:59:59 GMT'], $flattened->getHeaders());
-
- $flattened = FlattenException::create(new ServiceUnavailableHttpException(120));
- $this->assertEquals(['Retry-After' => 120], $flattened->getHeaders());
-
- $flattened = FlattenException::create(new TooManyRequestsHttpException('Fri, 31 Dec 1999 23:59:59 GMT'));
- $this->assertEquals(['Retry-After' => 'Fri, 31 Dec 1999 23:59:59 GMT'], $flattened->getHeaders());
-
- $flattened = FlattenException::create(new TooManyRequestsHttpException(120));
- $this->assertEquals(['Retry-After' => 120], $flattened->getHeaders());
- }
-
- /**
- * @dataProvider flattenDataProvider
- */
- public function testFlattenHttpException(\Exception $exception)
- {
- $flattened = FlattenException::create($exception);
- $flattened2 = FlattenException::create($exception);
-
- $flattened->setPrevious($flattened2);
-
- $this->assertEquals($exception->getMessage(), $flattened->getMessage(), 'The message is copied from the original exception.');
- $this->assertEquals($exception->getCode(), $flattened->getCode(), 'The code is copied from the original exception.');
- $this->assertInstanceOf($flattened->getClass(), $exception, 'The class is set to the class of the original exception');
- }
-
- /**
- * @dataProvider flattenDataProvider
- */
- public function testPrevious(\Exception $exception)
- {
- $flattened = FlattenException::create($exception);
- $flattened2 = FlattenException::create($exception);
-
- $flattened->setPrevious($flattened2);
-
- $this->assertSame($flattened2, $flattened->getPrevious());
-
- $this->assertSame([$flattened2], $flattened->getAllPrevious());
- }
-
- /**
- * @requires PHP 7.0
- */
- public function testPreviousError()
- {
- $exception = new \Exception('test', 123, new \ParseError('Oh noes!', 42));
-
- $flattened = FlattenException::create($exception)->getPrevious();
-
- $this->assertEquals($flattened->getMessage(), 'Parse error: Oh noes!', 'The message is copied from the original exception.');
- $this->assertEquals($flattened->getCode(), 42, 'The code is copied from the original exception.');
- $this->assertEquals($flattened->getClass(), 'Symfony\Component\Debug\Exception\FatalThrowableError', 'The class is set to the class of the original exception');
- }
-
- /**
- * @dataProvider flattenDataProvider
- */
- public function testLine(\Exception $exception)
- {
- $flattened = FlattenException::create($exception);
- $this->assertSame($exception->getLine(), $flattened->getLine());
- }
-
- /**
- * @dataProvider flattenDataProvider
- */
- public function testFile(\Exception $exception)
- {
- $flattened = FlattenException::create($exception);
- $this->assertSame($exception->getFile(), $flattened->getFile());
- }
-
- /**
- * @dataProvider flattenDataProvider
- */
- public function testToArray(\Exception $exception)
- {
- $flattened = FlattenException::create($exception);
- $flattened->setTrace([], 'foo.php', 123);
-
- $this->assertEquals([
- [
- 'message' => 'test',
- 'class' => 'Exception',
- 'trace' => [[
- 'namespace' => '', 'short_class' => '', 'class' => '', 'type' => '', 'function' => '', 'file' => 'foo.php', 'line' => 123,
- 'args' => [],
- ]],
- ],
- ], $flattened->toArray());
- }
-
- public function flattenDataProvider()
- {
- return [
- [new \Exception('test', 123)],
- ];
- }
-
- public function testArguments()
- {
- $dh = opendir(__DIR__);
- $fh = tmpfile();
-
- $incomplete = unserialize('O:14:"BogusTestClass":0:{}');
-
- $exception = $this->createException([
- (object) ['foo' => 1],
- new NotFoundHttpException(),
- $incomplete,
- $dh,
- $fh,
- function () {},
- [1, 2],
- ['foo' => 123],
- null,
- true,
- false,
- 0,
- 0.0,
- '0',
- '',
- INF,
- NAN,
- ]);
-
- $flattened = FlattenException::create($exception);
- $trace = $flattened->getTrace();
- $args = $trace[1]['args'];
- $array = $args[0][1];
-
- closedir($dh);
- fclose($fh);
-
- $i = 0;
- $this->assertSame(['object', 'stdClass'], $array[$i++]);
- $this->assertSame(['object', 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException'], $array[$i++]);
- $this->assertSame(['incomplete-object', 'BogusTestClass'], $array[$i++]);
- $this->assertSame(['resource', \defined('HHVM_VERSION') ? 'Directory' : 'stream'], $array[$i++]);
- $this->assertSame(['resource', 'stream'], $array[$i++]);
-
- $args = $array[$i++];
- $this->assertSame($args[0], 'object');
- $this->assertTrue('Closure' === $args[1] || is_subclass_of($args[1], '\Closure'), 'Expect object class name to be Closure or a subclass of Closure.');
-
- $this->assertSame(['array', [['integer', 1], ['integer', 2]]], $array[$i++]);
- $this->assertSame(['array', ['foo' => ['integer', 123]]], $array[$i++]);
- $this->assertSame(['null', null], $array[$i++]);
- $this->assertSame(['boolean', true], $array[$i++]);
- $this->assertSame(['boolean', false], $array[$i++]);
- $this->assertSame(['integer', 0], $array[$i++]);
- $this->assertSame(['float', 0.0], $array[$i++]);
- $this->assertSame(['string', '0'], $array[$i++]);
- $this->assertSame(['string', ''], $array[$i++]);
- $this->assertSame(['float', INF], $array[$i++]);
-
- // assertEquals() does not like NAN values.
- $this->assertEquals($array[$i][0], 'float');
- $this->assertTrue(is_nan($array[$i++][1]));
- }
-
- public function testRecursionInArguments()
- {
- $a = null;
- $a = ['foo', [2, &$a]];
- $exception = $this->createException($a);
-
- $flattened = FlattenException::create($exception);
- $trace = $flattened->getTrace();
- $this->assertContains('*DEEP NESTED ARRAY*', serialize($trace));
- }
-
- public function testTooBigArray()
- {
- $a = [];
- for ($i = 0; $i < 20; ++$i) {
- for ($j = 0; $j < 50; ++$j) {
- for ($k = 0; $k < 10; ++$k) {
- $a[$i][$j][$k] = 'value';
- }
- }
- }
- $a[20] = 'value';
- $a[21] = 'value1';
- $exception = $this->createException($a);
-
- $flattened = FlattenException::create($exception);
- $trace = $flattened->getTrace();
-
- $this->assertSame($trace[1]['args'][0], ['array', ['array', '*SKIPPED over 10000 entries*']]);
-
- $serializeTrace = serialize($trace);
-
- $this->assertContains('*SKIPPED over 10000 entries*', $serializeTrace);
- $this->assertNotContains('*value1*', $serializeTrace);
- }
-
- private function createException($foo)
- {
- return new \Exception();
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/ExceptionHandlerTest.php b/www/wiki/vendor/symfony/debug/Tests/ExceptionHandlerTest.php
deleted file mode 100644
index e166136c..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/ExceptionHandlerTest.php
+++ /dev/null
@@ -1,133 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Debug\Exception\OutOfMemoryException;
-use Symfony\Component\Debug\ExceptionHandler;
-use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
-use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
-
-require_once __DIR__.'/HeaderMock.php';
-
-class ExceptionHandlerTest extends TestCase
-{
- protected function setUp()
- {
- testHeader();
- }
-
- protected function tearDown()
- {
- testHeader();
- }
-
- public function testDebug()
- {
- $handler = new ExceptionHandler(false);
-
- ob_start();
- $handler->sendPhpResponse(new \RuntimeException('Foo'));
- $response = ob_get_clean();
-
- $this->assertContains('Whoops, looks like something went wrong.', $response);
- $this->assertNotContains('<div class="trace trace-as-html">', $response);
-
- $handler = new ExceptionHandler(true);
-
- ob_start();
- $handler->sendPhpResponse(new \RuntimeException('Foo'));
- $response = ob_get_clean();
-
- $this->assertContains('Whoops, looks like something went wrong.', $response);
- $this->assertContains('<div class="trace trace-as-html">', $response);
- }
-
- public function testStatusCode()
- {
- $handler = new ExceptionHandler(false, 'iso8859-1');
-
- ob_start();
- $handler->sendPhpResponse(new NotFoundHttpException('Foo'));
- $response = ob_get_clean();
-
- $this->assertContains('Sorry, the page you are looking for could not be found.', $response);
-
- $expectedHeaders = [
- ['HTTP/1.0 404', true, null],
- ['Content-Type: text/html; charset=iso8859-1', true, null],
- ];
-
- $this->assertSame($expectedHeaders, testHeader());
- }
-
- public function testHeaders()
- {
- $handler = new ExceptionHandler(false, 'iso8859-1');
-
- ob_start();
- $handler->sendPhpResponse(new MethodNotAllowedHttpException(['POST']));
- $response = ob_get_clean();
-
- $expectedHeaders = [
- ['HTTP/1.0 405', true, null],
- ['Allow: POST', false, null],
- ['Content-Type: text/html; charset=iso8859-1', true, null],
- ];
-
- $this->assertSame($expectedHeaders, testHeader());
- }
-
- public function testNestedExceptions()
- {
- $handler = new ExceptionHandler(true);
- ob_start();
- $handler->sendPhpResponse(new \RuntimeException('Foo', 0, new \RuntimeException('Bar')));
- $response = ob_get_clean();
-
- $this->assertStringMatchesFormat('%A<p class="break-long-words trace-message">Foo</p>%A<p class="break-long-words trace-message">Bar</p>%A', $response);
- }
-
- public function testHandle()
- {
- $exception = new \Exception('foo');
-
- $handler = $this->getMockBuilder('Symfony\Component\Debug\ExceptionHandler')->setMethods(['sendPhpResponse'])->getMock();
- $handler
- ->expects($this->exactly(2))
- ->method('sendPhpResponse');
-
- $handler->handle($exception);
-
- $handler->setHandler(function ($e) use ($exception) {
- $this->assertSame($exception, $e);
- });
-
- $handler->handle($exception);
- }
-
- public function testHandleOutOfMemoryException()
- {
- $exception = new OutOfMemoryException('foo', 0, E_ERROR, __FILE__, __LINE__);
-
- $handler = $this->getMockBuilder('Symfony\Component\Debug\ExceptionHandler')->setMethods(['sendPhpResponse'])->getMock();
- $handler
- ->expects($this->once())
- ->method('sendPhpResponse');
-
- $handler->setHandler(function ($e) {
- $this->fail('OutOfMemoryException should bypass the handler');
- });
-
- $handler->handle($exception);
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php b/www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php
deleted file mode 100644
index 8e615ac6..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php
+++ /dev/null
@@ -1,176 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Tests\FatalErrorHandler;
-
-use Composer\Autoload\ClassLoader as ComposerClassLoader;
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Debug\DebugClassLoader;
-use Symfony\Component\Debug\Exception\FatalErrorException;
-use Symfony\Component\Debug\FatalErrorHandler\ClassNotFoundFatalErrorHandler;
-
-class ClassNotFoundFatalErrorHandlerTest extends TestCase
-{
- public static function setUpBeforeClass()
- {
- foreach (spl_autoload_functions() as $function) {
- if (!\is_array($function)) {
- continue;
- }
-
- // get class loaders wrapped by DebugClassLoader
- if ($function[0] instanceof DebugClassLoader) {
- $function = $function[0]->getClassLoader();
- }
-
- if ($function[0] instanceof ComposerClassLoader) {
- $function[0]->add('Symfony_Component_Debug_Tests_Fixtures', \dirname(\dirname(\dirname(\dirname(\dirname(__DIR__))))));
- break;
- }
- }
- }
-
- /**
- * @dataProvider provideClassNotFoundData
- */
- public function testHandleClassNotFound($error, $translatedMessage, $autoloader = null)
- {
- if ($autoloader) {
- // Unregister all autoloaders to ensure the custom provided
- // autoloader is the only one to be used during the test run.
- $autoloaders = spl_autoload_functions();
- array_map('spl_autoload_unregister', $autoloaders);
- spl_autoload_register($autoloader);
- }
-
- $handler = new ClassNotFoundFatalErrorHandler();
-
- $exception = $handler->handleError($error, new FatalErrorException('', 0, $error['type'], $error['file'], $error['line']));
-
- if ($autoloader) {
- spl_autoload_unregister($autoloader);
- array_map('spl_autoload_register', $autoloaders);
- }
-
- $this->assertInstanceOf('Symfony\Component\Debug\Exception\ClassNotFoundException', $exception);
- $this->assertSame($translatedMessage, $exception->getMessage());
- $this->assertSame($error['type'], $exception->getSeverity());
- $this->assertSame($error['file'], $exception->getFile());
- $this->assertSame($error['line'], $exception->getLine());
- }
-
- public function provideClassNotFoundData()
- {
- $autoloader = new ComposerClassLoader();
- $autoloader->add('Symfony\Component\Debug\Exception\\', realpath(__DIR__.'/../../Exception'));
-
- $debugClassLoader = new DebugClassLoader([$autoloader, 'loadClass']);
-
- return [
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Class \'WhizBangFactory\' not found',
- ],
- "Attempted to load class \"WhizBangFactory\" from the global namespace.\nDid you forget a \"use\" statement?",
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Class \'Foo\\Bar\\WhizBangFactory\' not found',
- ],
- "Attempted to load class \"WhizBangFactory\" from namespace \"Foo\\Bar\".\nDid you forget a \"use\" statement for another namespace?",
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Class \'UndefinedFunctionException\' not found',
- ],
- "Attempted to load class \"UndefinedFunctionException\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony\Component\Debug\Exception\UndefinedFunctionException\"?",
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Class \'PEARClass\' not found',
- ],
- "Attempted to load class \"PEARClass\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony_Component_Debug_Tests_Fixtures_PEARClass\"?",
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
- ],
- "Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\Debug\Exception\UndefinedFunctionException\"?",
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
- ],
- "Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\Debug\Exception\UndefinedFunctionException\"?",
- [$autoloader, 'loadClass'],
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
- ],
- "Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\Debug\Exception\UndefinedFunctionException\"?",
- [$debugClassLoader, 'loadClass'],
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
- ],
- "Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\Bar\".\nDid you forget a \"use\" statement for another namespace?",
- function ($className) { /* do nothing here */ },
- ],
- ];
- }
-
- public function testCannotRedeclareClass()
- {
- if (!file_exists(__DIR__.'/../FIXTURES2/REQUIREDTWICE.PHP')) {
- $this->markTestSkipped('Can only be run on case insensitive filesystems');
- }
-
- require_once __DIR__.'/../FIXTURES2/REQUIREDTWICE.PHP';
-
- $error = [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Class \'Foo\\Bar\\RequiredTwice\' not found',
- ];
-
- $handler = new ClassNotFoundFatalErrorHandler();
- $exception = $handler->handleError($error, new FatalErrorException('', 0, $error['type'], $error['file'], $error['line']));
-
- $this->assertInstanceOf('Symfony\Component\Debug\Exception\ClassNotFoundException', $exception);
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php b/www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php
deleted file mode 100644
index 2de44a25..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Tests\FatalErrorHandler;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Debug\Exception\FatalErrorException;
-use Symfony\Component\Debug\FatalErrorHandler\UndefinedFunctionFatalErrorHandler;
-
-class UndefinedFunctionFatalErrorHandlerTest extends TestCase
-{
- /**
- * @dataProvider provideUndefinedFunctionData
- */
- public function testUndefinedFunction($error, $translatedMessage)
- {
- $handler = new UndefinedFunctionFatalErrorHandler();
- $exception = $handler->handleError($error, new FatalErrorException('', 0, $error['type'], $error['file'], $error['line']));
-
- $this->assertInstanceOf('Symfony\Component\Debug\Exception\UndefinedFunctionException', $exception);
- // class names are case insensitive and PHP/HHVM do not return the same
- $this->assertSame(strtolower($translatedMessage), strtolower($exception->getMessage()));
- $this->assertSame($error['type'], $exception->getSeverity());
- $this->assertSame($error['file'], $exception->getFile());
- $this->assertSame($error['line'], $exception->getLine());
- }
-
- public function provideUndefinedFunctionData()
- {
- return [
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Call to undefined function test_namespaced_function()',
- ],
- "Attempted to call function \"test_namespaced_function\" from the global namespace.\nDid you mean to call \"\\symfony\\component\\debug\\tests\\fatalerrorhandler\\test_namespaced_function\"?",
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Call to undefined function Foo\\Bar\\Baz\\test_namespaced_function()',
- ],
- "Attempted to call function \"test_namespaced_function\" from namespace \"Foo\\Bar\\Baz\".\nDid you mean to call \"\\symfony\\component\\debug\\tests\\fatalerrorhandler\\test_namespaced_function\"?",
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Call to undefined function foo()',
- ],
- 'Attempted to call function "foo" from the global namespace.',
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Call to undefined function Foo\\Bar\\Baz\\foo()',
- ],
- 'Attempted to call function "foo" from namespace "Foo\Bar\Baz".',
- ],
- ];
- }
-}
-
-function test_namespaced_function()
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php b/www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php
deleted file mode 100644
index 268a8413..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Tests\FatalErrorHandler;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Debug\Exception\FatalErrorException;
-use Symfony\Component\Debug\FatalErrorHandler\UndefinedMethodFatalErrorHandler;
-
-class UndefinedMethodFatalErrorHandlerTest extends TestCase
-{
- /**
- * @dataProvider provideUndefinedMethodData
- */
- public function testUndefinedMethod($error, $translatedMessage)
- {
- $handler = new UndefinedMethodFatalErrorHandler();
- $exception = $handler->handleError($error, new FatalErrorException('', 0, $error['type'], $error['file'], $error['line']));
-
- $this->assertInstanceOf('Symfony\Component\Debug\Exception\UndefinedMethodException', $exception);
- $this->assertSame($translatedMessage, $exception->getMessage());
- $this->assertSame($error['type'], $exception->getSeverity());
- $this->assertSame($error['file'], $exception->getFile());
- $this->assertSame($error['line'], $exception->getLine());
- }
-
- public function provideUndefinedMethodData()
- {
- return [
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Call to undefined method SplObjectStorage::what()',
- ],
- 'Attempted to call an undefined method named "what" of class "SplObjectStorage".',
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Call to undefined method SplObjectStorage::walid()',
- ],
- "Attempted to call an undefined method named \"walid\" of class \"SplObjectStorage\".\nDid you mean to call \"valid\"?",
- ],
- [
- [
- 'type' => 1,
- 'line' => 12,
- 'file' => 'foo.php',
- 'message' => 'Call to undefined method SplObjectStorage::offsetFet()',
- ],
- "Attempted to call an undefined method named \"offsetFet\" of class \"SplObjectStorage\".\nDid you mean to call e.g. \"offsetGet\", \"offsetSet\" or \"offsetUnset\"?",
- ],
- [
- [
- 'type' => 1,
- 'message' => 'Call to undefined method class@anonymous::test()',
- 'file' => '/home/possum/work/symfony/test.php',
- 'line' => 11,
- ],
- 'Attempted to call an undefined method named "test" of class "class@anonymous".',
- ],
- ];
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/AnnotatedClass.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/AnnotatedClass.php
deleted file mode 100644
index dff9517d..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/AnnotatedClass.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-class AnnotatedClass
-{
- /**
- * @deprecated since version 3.4.
- */
- public function deprecatedMethod()
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/ClassAlias.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/ClassAlias.php
deleted file mode 100644
index 9d6dbaa7..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/ClassAlias.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-
-class_alias('Symfony\Component\Debug\Tests\Fixtures\NotPSR0bis', 'Symfony\Component\Debug\Tests\Fixtures\ClassAlias');
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/DefinitionInEvaluatedCode.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/DefinitionInEvaluatedCode.php
deleted file mode 100644
index ff6976e0..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/DefinitionInEvaluatedCode.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-eval('
- namespace Symfony\Component\Debug\Tests\Fixtures;
-
- class DefinitionInEvaluatedCode
- {
- }
-');
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/DeprecatedClass.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/DeprecatedClass.php
deleted file mode 100644
index 51fde5af..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/DeprecatedClass.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-/**
- * @deprecated but this is a test
- * deprecation notice
- * @foobar
- */
-class DeprecatedClass
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/DeprecatedInterface.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/DeprecatedInterface.php
deleted file mode 100644
index 6bab62f9..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/DeprecatedInterface.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-/**
- * @deprecated but this is a test
- * deprecation notice
- * @foobar
- */
-interface DeprecatedInterface
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php
deleted file mode 100644
index d449c40c..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-class ErrorHandlerThatUsesThePreviousOne
-{
- private static $previous;
-
- public static function register()
- {
- $handler = new static();
-
- self::$previous = set_error_handler([$handler, 'handleError']);
-
- return $handler;
- }
-
- public function handleError($type, $message, $file, $line, $context)
- {
- return \call_user_func(self::$previous, $type, $message, $file, $line, $context);
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/ExtendedFinalMethod.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/ExtendedFinalMethod.php
deleted file mode 100644
index 050d19ff..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/ExtendedFinalMethod.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-class ExtendedFinalMethod extends FinalMethod
-{
- use FinalMethod2Trait;
-
- /**
- * {@inheritdoc}
- */
- public function finalMethod()
- {
- }
-
- public function anotherMethod()
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalClasses.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalClasses.php
deleted file mode 100644
index 0f51f9f4..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalClasses.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-/**
- * @final since version 3.3.
- */
-class FinalClass1
-{
- // simple comment
-}
-
-/**
- * @final
- */
-class FinalClass2
-{
- // no comment
-}
-
-/**
- * @final comment with @@@ and ***
- *
- * @author John Doe
- */
-class FinalClass3
-{
- // with comment and a tag after
-}
-
-/**
- * @final
- * @author John Doe
- */
-class FinalClass4
-{
- // without comment and a tag after
-}
-
-/**
- * @author John Doe
- *
- *
- * @final multiline
- * comment
- */
-class FinalClass5
-{
- // with comment and a tag before
-}
-
-/**
- * @author John Doe
- *
- * @final
- */
-class FinalClass6
-{
- // without comment and a tag before
-}
-
-/**
- * @author John Doe
- *
- * @final another
- *
- * multiline comment...
- *
- * @return string
- */
-class FinalClass7
-{
- // with comment and a tag before and after
-}
-
-/**
- * @author John Doe
- * @final
- * @return string
- */
-class FinalClass8
-{
- // without comment and a tag before and after
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalMethod.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalMethod.php
deleted file mode 100644
index 98a47524..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalMethod.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-class FinalMethod
-{
- /**
- * @final since version 3.3.
- */
- public function finalMethod()
- {
- }
-
- /**
- * @final
- */
- public function finalMethod2()
- {
- }
-
- public function anotherMethod()
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalMethod2Trait.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalMethod2Trait.php
deleted file mode 100644
index 8547f3af..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/FinalMethod2Trait.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-trait FinalMethod2Trait
-{
- public function finalMethod2()
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalClass.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalClass.php
deleted file mode 100644
index 119842c2..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalClass.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-/**
- * @internal since version 3.4.
- */
-class InternalClass
-{
- use InternalTrait2;
-
- public function usedInInternalClass()
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalInterface.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalInterface.php
deleted file mode 100644
index dd79f501..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalInterface.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-/**
- * @internal
- */
-interface InternalInterface
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalTrait.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalTrait.php
deleted file mode 100644
index 7bb4635c..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalTrait.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-/**
- * @internal
- */
-trait InternalTrait
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalTrait2.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalTrait2.php
deleted file mode 100644
index 05f18e83..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/InternalTrait2.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-/**
- * @internal
- */
-trait InternalTrait2
-{
- /**
- * @internal since version 3.4
- */
- public function internalMethod()
- {
- }
-
- /**
- * @internal but should not trigger a deprecation
- */
- public function usedInInternalClass()
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/LoggerThatSetAnErrorHandler.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/LoggerThatSetAnErrorHandler.php
deleted file mode 100644
index dd856362..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/LoggerThatSetAnErrorHandler.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-use Symfony\Component\Debug\BufferingLogger;
-
-class LoggerThatSetAnErrorHandler extends BufferingLogger
-{
- public function log($level, $message, array $context = [])
- {
- set_error_handler('is_string');
- parent::log($level, $message, $context);
- restore_error_handler();
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/NonDeprecatedInterface.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/NonDeprecatedInterface.php
deleted file mode 100644
index a4179a57..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/NonDeprecatedInterface.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-interface NonDeprecatedInterface extends DeprecatedInterface
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/PEARClass.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/PEARClass.php
deleted file mode 100644
index 39f22818..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/PEARClass.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-class Symfony_Component_Debug_Tests_Fixtures_PEARClass
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/Throwing.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/Throwing.php
deleted file mode 100644
index 21e0aba1..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/Throwing.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-
-throw new \Exception('boo');
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php
deleted file mode 100644
index 24ac8926..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-class ToStringThrower
-{
- private $exception;
-
- public function __construct(\Exception $e)
- {
- $this->exception = $e;
- }
-
- public function __toString()
- {
- try {
- throw $this->exception;
- } catch (\Exception $e) {
- // Using user_error() here is on purpose so we do not forget
- // that this alias also should work alongside with trigger_error().
- return trigger_error($e, E_USER_ERROR);
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/TraitWithInternalMethod.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/TraitWithInternalMethod.php
deleted file mode 100644
index 4c3dae37..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/TraitWithInternalMethod.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-trait TraitWithInternalMethod
-{
- /**
- * @internal
- */
- public function foo()
- {
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/casemismatch.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/casemismatch.php
deleted file mode 100644
index 691d660f..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/casemismatch.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-class CaseMismatch
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/notPsr0Bis.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/notPsr0Bis.php
deleted file mode 100644
index 4cf52671..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/notPsr0Bis.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-class NotPSR0bis
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/psr4/Psr4CaseMismatch.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/psr4/Psr4CaseMismatch.php
deleted file mode 100644
index ec48dd22..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/psr4/Psr4CaseMismatch.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-class PSR4CaseMismatch
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures/reallyNotPsr0.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures/reallyNotPsr0.php
deleted file mode 100644
index 8554725a..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures/reallyNotPsr0.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-class NotPSR0
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/Fixtures2/RequiredTwice.php b/www/wiki/vendor/symfony/debug/Tests/Fixtures2/RequiredTwice.php
deleted file mode 100644
index 604bc37f..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/Fixtures2/RequiredTwice.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures2;
-
-class RequiredTwice
-{
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/HeaderMock.php b/www/wiki/vendor/symfony/debug/Tests/HeaderMock.php
deleted file mode 100644
index d7564db4..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/HeaderMock.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug;
-
-function headers_sent()
-{
- return false;
-}
-
-function header($str, $replace = true, $status = null)
-{
- Tests\testHeader($str, $replace, $status);
-}
-
-namespace Symfony\Component\Debug\Tests;
-
-function testHeader()
-{
- static $headers = [];
-
- if (!$h = \func_get_args()) {
- $h = $headers;
- $headers = [];
-
- return $h;
- }
-
- $headers[] = \func_get_args();
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/MockExceptionHandler.php b/www/wiki/vendor/symfony/debug/Tests/MockExceptionHandler.php
deleted file mode 100644
index 2d6ce564..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/MockExceptionHandler.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Debug\Tests;
-
-use Symfony\Component\Debug\ExceptionHandler;
-
-class MockExceptionHandler extends ExceptionHandler
-{
- public $e;
-
- public function handle(\Exception $e)
- {
- $this->e = $e;
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/phpt/debug_class_loader.phpt b/www/wiki/vendor/symfony/debug/Tests/phpt/debug_class_loader.phpt
deleted file mode 100644
index 26b3abf4..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/phpt/debug_class_loader.phpt
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-Test DebugClassLoader with previously loaded parents
---FILE--
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-use Symfony\Component\Debug\DebugClassLoader;
-
-$vendor = __DIR__;
-while (!file_exists($vendor.'/vendor')) {
- $vendor = \dirname($vendor);
-}
-require $vendor.'/vendor/autoload.php';
-
-class_exists(FinalMethod::class);
-
-set_error_handler(function ($type, $msg) { echo $msg, "\n"; });
-
-DebugClassLoader::enable();
-
-class_exists(ExtendedFinalMethod::class);
-
-?>
---EXPECTF--
-The "Symfony\Component\Debug\Tests\Fixtures\FinalMethod::finalMethod()" method is considered final since version 3.3. It may change without further notice as of its next major version. You should not extend it from "Symfony\Component\Debug\Tests\Fixtures\ExtendedFinalMethod".
-The "Symfony\Component\Debug\Tests\Fixtures\FinalMethod::finalMethod2()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Symfony\Component\Debug\Tests\Fixtures\ExtendedFinalMethod".
diff --git a/www/wiki/vendor/symfony/debug/Tests/phpt/decorate_exception_hander.phpt b/www/wiki/vendor/symfony/debug/Tests/phpt/decorate_exception_hander.phpt
deleted file mode 100644
index 9cd44388..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/phpt/decorate_exception_hander.phpt
+++ /dev/null
@@ -1,47 +0,0 @@
---TEST--
-Test catching fatal errors when handlers are nested
---INI--
-display_errors=0
---FILE--
-<?php
-
-namespace Symfony\Component\Debug;
-
-$vendor = __DIR__;
-while (!file_exists($vendor.'/vendor')) {
- $vendor = \dirname($vendor);
-}
-require $vendor.'/vendor/autoload.php';
-
-set_error_handler('var_dump');
-set_exception_handler('var_dump');
-
-ErrorHandler::register(null, false);
-
-if (true) {
- class foo extends missing
- {
- }
-}
-
-?>
---EXPECTF--
-object(Symfony\Component\Debug\Exception\ClassNotFoundException)#%d (8) {
- ["message":protected]=>
- string(131) "Attempted to load class "missing" from namespace "Symfony\Component\Debug".
-Did you forget a "use" statement for another namespace?"
- ["string":"Exception":private]=>
- string(0) ""
- ["code":protected]=>
- int(0)
- ["file":protected]=>
- string(%d) "%s"
- ["line":protected]=>
- int(%d)
- ["trace":"Exception":private]=>
- array(%d) {%A}
- ["previous":"Exception":private]=>
- NULL
- ["severity":protected]=>
- int(1)
-}
diff --git a/www/wiki/vendor/symfony/debug/Tests/phpt/exception_rethrown.phpt b/www/wiki/vendor/symfony/debug/Tests/phpt/exception_rethrown.phpt
deleted file mode 100644
index b743d93a..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/phpt/exception_rethrown.phpt
+++ /dev/null
@@ -1,35 +0,0 @@
---TEST--
-Test rethrowing in custom exception handler
---FILE--
-<?php
-
-namespace Symfony\Component\Debug;
-
-$vendor = __DIR__;
-while (!file_exists($vendor.'/vendor')) {
- $vendor = \dirname($vendor);
-}
-require $vendor.'/vendor/autoload.php';
-
-if (true) {
- class TestLogger extends \Psr\Log\AbstractLogger
- {
- public function log($level, $message, array $context = [])
- {
- echo $message, "\n";
- }
- }
-}
-
-set_exception_handler(function ($e) { echo 123; throw $e; });
-ErrorHandler::register()->setDefaultLogger(new TestLogger());
-ini_set('display_errors', 1);
-
-throw new \Exception('foo');
-?>
---EXPECTF--
-Uncaught Exception: foo
-123
-Fatal error: Uncaught %s:25
-Stack trace:
-%a
diff --git a/www/wiki/vendor/symfony/debug/Tests/phpt/fatal_with_nested_handlers.phpt b/www/wiki/vendor/symfony/debug/Tests/phpt/fatal_with_nested_handlers.phpt
deleted file mode 100644
index b3f0e0eb..00000000
--- a/www/wiki/vendor/symfony/debug/Tests/phpt/fatal_with_nested_handlers.phpt
+++ /dev/null
@@ -1,42 +0,0 @@
---TEST--
-Test catching fatal errors when handlers are nested
---FILE--
-<?php
-
-namespace Symfony\Component\Debug;
-
-$vendor = __DIR__;
-while (!file_exists($vendor.'/vendor')) {
- $vendor = \dirname($vendor);
-}
-require $vendor.'/vendor/autoload.php';
-
-Debug::enable();
-ini_set('display_errors', 0);
-
-$eHandler = set_error_handler('var_dump');
-$xHandler = set_exception_handler('var_dump');
-
-var_dump([
- $eHandler[0] === $xHandler[0] ? 'Error and exception handlers do match' : 'Error and exception handlers are different',
-]);
-
-$eHandler[0]->setExceptionHandler('print_r');
-
-if (true) {
- class Broken implements \Serializable
- {
- }
-}
-
-?>
---EXPECTF--
-array(1) {
- [0]=>
- string(37) "Error and exception handlers do match"
-}
-object(Symfony\Component\Debug\Exception\FatalErrorException)#%d (%d) {
- ["message":protected]=>
- string(199) "Error: Class Symfony\Component\Debug\Broken contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Serializable::serialize, Serializable::unserialize)"
-%a
-}
diff --git a/www/wiki/vendor/symfony/debug/composer.json b/www/wiki/vendor/symfony/debug/composer.json
deleted file mode 100644
index f98a5d07..00000000
--- a/www/wiki/vendor/symfony/debug/composer.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "name": "symfony/debug",
- "type": "library",
- "description": "Symfony Debug Component",
- "keywords": [],
- "homepage": "https://symfony.com",
- "license": "MIT",
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
- },
- "autoload": {
- "psr-4": { "Symfony\\Component\\Debug\\": "" },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "minimum-stability": "dev",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/debug/phpunit.xml.dist b/www/wiki/vendor/symfony/debug/phpunit.xml.dist
deleted file mode 100644
index a51bbff9..00000000
--- a/www/wiki/vendor/symfony/debug/phpunit.xml.dist
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.2/phpunit.xsd"
- backupGlobals="false"
- colors="true"
- bootstrap="vendor/autoload.php"
- failOnRisky="true"
- failOnWarning="true"
->
- <php>
- <ini name="error_reporting" value="-1" />
- </php>
-
- <testsuites>
- <testsuite name="Symfony Debug Component Test Suite">
- <directory>./Tests/</directory>
- </testsuite>
- <testsuite name="Symfony Debug Extension Test Suite">
- <directory suffix=".phpt">./Resources/ext/tests/</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist>
- <directory>./</directory>
- <exclude>
- <directory>./Tests</directory>
- <directory>./vendor</directory>
- </exclude>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/symfony/polyfill-ctype/Ctype.php b/www/wiki/vendor/symfony/polyfill-ctype/Ctype.php
deleted file mode 100644
index 58414dc7..00000000
--- a/www/wiki/vendor/symfony/polyfill-ctype/Ctype.php
+++ /dev/null
@@ -1,227 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Polyfill\Ctype;
-
-/**
- * Ctype implementation through regex.
- *
- * @internal
- *
- * @author Gert de Pagter <BackEndTea@gmail.com>
- */
-final class Ctype
-{
- /**
- * Returns TRUE if every character in text is either a letter or a digit, FALSE otherwise.
- *
- * @see https://php.net/ctype-alnum
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_alnum($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z0-9]/', $text);
- }
-
- /**
- * Returns TRUE if every character in text is a letter, FALSE otherwise.
- *
- * @see https://php.net/ctype-alpha
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_alpha($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z]/', $text);
- }
-
- /**
- * Returns TRUE if every character in text is a control character from the current locale, FALSE otherwise.
- *
- * @see https://php.net/ctype-cntrl
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_cntrl($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^\x00-\x1f\x7f]/', $text);
- }
-
- /**
- * Returns TRUE if every character in the string text is a decimal digit, FALSE otherwise.
- *
- * @see https://php.net/ctype-digit
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_digit($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^0-9]/', $text);
- }
-
- /**
- * Returns TRUE if every character in text is printable and actually creates visible output (no white space), FALSE otherwise.
- *
- * @see https://php.net/ctype-graph
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_graph($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^!-~]/', $text);
- }
-
- /**
- * Returns TRUE if every character in text is a lowercase letter.
- *
- * @see https://php.net/ctype-lower
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_lower($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^a-z]/', $text);
- }
-
- /**
- * Returns TRUE if every character in text will actually create output (including blanks). Returns FALSE if text contains control characters or characters that do not have any output or control function at all.
- *
- * @see https://php.net/ctype-print
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_print($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^ -~]/', $text);
- }
-
- /**
- * Returns TRUE if every character in text is printable, but neither letter, digit or blank, FALSE otherwise.
- *
- * @see https://php.net/ctype-punct
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_punct($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^!-\/\:-@\[-`\{-~]/', $text);
- }
-
- /**
- * Returns TRUE if every character in text creates some sort of white space, FALSE otherwise. Besides the blank character this also includes tab, vertical tab, line feed, carriage return and form feed characters.
- *
- * @see https://php.net/ctype-space
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_space($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^\s]/', $text);
- }
-
- /**
- * Returns TRUE if every character in text is an uppercase letter.
- *
- * @see https://php.net/ctype-upper
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_upper($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^A-Z]/', $text);
- }
-
- /**
- * Returns TRUE if every character in text is a hexadecimal 'digit', that is a decimal digit or a character from [A-Fa-f] , FALSE otherwise.
- *
- * @see https://php.net/ctype-xdigit
- *
- * @param string|int $text
- *
- * @return bool
- */
- public static function ctype_xdigit($text)
- {
- $text = self::convert_int_to_char_for_ctype($text);
-
- return \is_string($text) && '' !== $text && !preg_match('/[^A-Fa-f0-9]/', $text);
- }
-
- /**
- * Converts integers to their char versions according to normal ctype behaviour, if needed.
- *
- * If an integer between -128 and 255 inclusive is provided,
- * it is interpreted as the ASCII value of a single character
- * (negative values have 256 added in order to allow characters in the Extended ASCII range).
- * Any other integer is interpreted as a string containing the decimal digits of the integer.
- *
- * @param string|int $int
- *
- * @return mixed
- */
- private static function convert_int_to_char_for_ctype($int)
- {
- if (!\is_int($int)) {
- return $int;
- }
-
- if ($int < -128 || $int > 255) {
- return (string) $int;
- }
-
- if ($int < 0) {
- $int += 256;
- }
-
- return \chr($int);
- }
-}
diff --git a/www/wiki/vendor/symfony/polyfill-ctype/LICENSE b/www/wiki/vendor/symfony/polyfill-ctype/LICENSE
deleted file mode 100644
index ad399a79..00000000
--- a/www/wiki/vendor/symfony/polyfill-ctype/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2018 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/symfony/polyfill-ctype/README.md b/www/wiki/vendor/symfony/polyfill-ctype/README.md
deleted file mode 100644
index 8add1ab0..00000000
--- a/www/wiki/vendor/symfony/polyfill-ctype/README.md
+++ /dev/null
@@ -1,12 +0,0 @@
-Symfony Polyfill / Ctype
-========================
-
-This component provides `ctype_*` functions to users who run php versions without the ctype extension.
-
-More information can be found in the
-[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
-
-License
-=======
-
-This library is released under the [MIT license](LICENSE).
diff --git a/www/wiki/vendor/symfony/polyfill-ctype/bootstrap.php b/www/wiki/vendor/symfony/polyfill-ctype/bootstrap.php
deleted file mode 100644
index 14d1d0fa..00000000
--- a/www/wiki/vendor/symfony/polyfill-ctype/bootstrap.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use Symfony\Polyfill\Ctype as p;
-
-if (!function_exists('ctype_alnum')) {
- function ctype_alnum($text) { return p\Ctype::ctype_alnum($text); }
- function ctype_alpha($text) { return p\Ctype::ctype_alpha($text); }
- function ctype_cntrl($text) { return p\Ctype::ctype_cntrl($text); }
- function ctype_digit($text) { return p\Ctype::ctype_digit($text); }
- function ctype_graph($text) { return p\Ctype::ctype_graph($text); }
- function ctype_lower($text) { return p\Ctype::ctype_lower($text); }
- function ctype_print($text) { return p\Ctype::ctype_print($text); }
- function ctype_punct($text) { return p\Ctype::ctype_punct($text); }
- function ctype_space($text) { return p\Ctype::ctype_space($text); }
- function ctype_upper($text) { return p\Ctype::ctype_upper($text); }
- function ctype_xdigit($text) { return p\Ctype::ctype_xdigit($text); }
-}
diff --git a/www/wiki/vendor/symfony/polyfill-ctype/composer.json b/www/wiki/vendor/symfony/polyfill-ctype/composer.json
deleted file mode 100644
index 094f8d86..00000000
--- a/www/wiki/vendor/symfony/polyfill-ctype/composer.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "symfony/polyfill-ctype",
- "type": "library",
- "description": "Symfony polyfill for ctype functions",
- "keywords": ["polyfill", "compatibility", "portable", "ctype"],
- "homepage": "https://symfony.com",
- "license": "MIT",
- "authors": [
- {
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "require": {
- "php": ">=5.3.3"
- },
- "autoload": {
- "psr-4": { "Symfony\\Polyfill\\Ctype\\": "" },
- "files": [ "bootstrap.php" ]
- },
- "suggest": {
- "ext-ctype": "For best performance"
- },
- "minimum-stability": "dev",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/polyfill-mbstring/LICENSE b/www/wiki/vendor/symfony/polyfill-mbstring/LICENSE
deleted file mode 100644
index 24fa32c2..00000000
--- a/www/wiki/vendor/symfony/polyfill-mbstring/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2015-2018 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/symfony/polyfill-mbstring/Mbstring.php b/www/wiki/vendor/symfony/polyfill-mbstring/Mbstring.php
deleted file mode 100644
index a5e4a8fd..00000000
--- a/www/wiki/vendor/symfony/polyfill-mbstring/Mbstring.php
+++ /dev/null
@@ -1,800 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Polyfill\Mbstring;
-
-/**
- * Partial mbstring implementation in PHP, iconv based, UTF-8 centric.
- *
- * Implemented:
- * - mb_chr - Returns a specific character from its Unicode code point
- * - mb_convert_encoding - Convert character encoding
- * - mb_convert_variables - Convert character code in variable(s)
- * - mb_decode_mimeheader - Decode string in MIME header field
- * - mb_encode_mimeheader - Encode string for MIME header XXX NATIVE IMPLEMENTATION IS REALLY BUGGED
- * - mb_decode_numericentity - Decode HTML numeric string reference to character
- * - mb_encode_numericentity - Encode character to HTML numeric string reference
- * - mb_convert_case - Perform case folding on a string
- * - mb_detect_encoding - Detect character encoding
- * - mb_get_info - Get internal settings of mbstring
- * - mb_http_input - Detect HTTP input character encoding
- * - mb_http_output - Set/Get HTTP output character encoding
- * - mb_internal_encoding - Set/Get internal character encoding
- * - mb_list_encodings - Returns an array of all supported encodings
- * - mb_ord - Returns the Unicode code point of a character
- * - mb_output_handler - Callback function converts character encoding in output buffer
- * - mb_scrub - Replaces ill-formed byte sequences with substitute characters
- * - mb_strlen - Get string length
- * - mb_strpos - Find position of first occurrence of string in a string
- * - mb_strrpos - Find position of last occurrence of a string in a string
- * - mb_strtolower - Make a string lowercase
- * - mb_strtoupper - Make a string uppercase
- * - mb_substitute_character - Set/Get substitution character
- * - mb_substr - Get part of string
- * - mb_stripos - Finds position of first occurrence of a string within another, case insensitive
- * - mb_stristr - Finds first occurrence of a string within another, case insensitive
- * - mb_strrchr - Finds the last occurrence of a character in a string within another
- * - mb_strrichr - Finds the last occurrence of a character in a string within another, case insensitive
- * - mb_strripos - Finds position of last occurrence of a string within another, case insensitive
- * - mb_strstr - Finds first occurrence of a string within another
- * - mb_strwidth - Return width of string
- * - mb_substr_count - Count the number of substring occurrences
- *
- * Not implemented:
- * - mb_convert_kana - Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
- * - mb_ereg_* - Regular expression with multibyte support
- * - mb_parse_str - Parse GET/POST/COOKIE data and set global variable
- * - mb_preferred_mime_name - Get MIME charset string
- * - mb_regex_encoding - Returns current encoding for multibyte regex as string
- * - mb_regex_set_options - Set/Get the default options for mbregex functions
- * - mb_send_mail - Send encoded mail
- * - mb_split - Split multibyte string using regular expression
- * - mb_strcut - Get part of string
- * - mb_strimwidth - Get truncated string with specified width
- *
- * @author Nicolas Grekas <p@tchwork.com>
- *
- * @internal
- */
-final class Mbstring
-{
- const MB_CASE_FOLD = PHP_INT_MAX;
-
- private static $encodingList = array('ASCII', 'UTF-8');
- private static $language = 'neutral';
- private static $internalEncoding = 'UTF-8';
- private static $caseFold = array(
- array('µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"),
- array('μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι'),
- );
-
- public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null)
- {
- if (\is_array($fromEncoding) || false !== strpos($fromEncoding, ',')) {
- $fromEncoding = self::mb_detect_encoding($s, $fromEncoding);
- } else {
- $fromEncoding = self::getEncoding($fromEncoding);
- }
-
- $toEncoding = self::getEncoding($toEncoding);
-
- if ('BASE64' === $fromEncoding) {
- $s = base64_decode($s);
- $fromEncoding = $toEncoding;
- }
-
- if ('BASE64' === $toEncoding) {
- return base64_encode($s);
- }
-
- if ('HTML-ENTITIES' === $toEncoding || 'HTML' === $toEncoding) {
- if ('HTML-ENTITIES' === $fromEncoding || 'HTML' === $fromEncoding) {
- $fromEncoding = 'Windows-1252';
- }
- if ('UTF-8' !== $fromEncoding) {
- $s = iconv($fromEncoding, 'UTF-8//IGNORE', $s);
- }
-
- return preg_replace_callback('/[\x80-\xFF]+/', array(__CLASS__, 'html_encoding_callback'), $s);
- }
-
- if ('HTML-ENTITIES' === $fromEncoding) {
- $s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
- $fromEncoding = 'UTF-8';
- }
-
- return iconv($fromEncoding, $toEncoding.'//IGNORE', $s);
- }
-
- public static function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null)
- {
- $vars = array(&$a, &$b, &$c, &$d, &$e, &$f);
-
- $ok = true;
- array_walk_recursive($vars, function (&$v) use (&$ok, $toEncoding, $fromEncoding) {
- if (false === $v = Mbstring::mb_convert_encoding($v, $toEncoding, $fromEncoding)) {
- $ok = false;
- }
- });
-
- return $ok ? $fromEncoding : false;
- }
-
- public static function mb_decode_mimeheader($s)
- {
- return iconv_mime_decode($s, 2, self::$internalEncoding);
- }
-
- public static function mb_encode_mimeheader($s, $charset = null, $transferEncoding = null, $linefeed = null, $indent = null)
- {
- trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', E_USER_WARNING);
- }
-
- public static function mb_decode_numericentity($s, $convmap, $encoding = null)
- {
- if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
- trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
-
- return null;
- }
-
- if (!\is_array($convmap) || !$convmap) {
- return false;
- }
-
- if (null !== $encoding && !\is_scalar($encoding)) {
- trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
-
- return ''; // Instead of null (cf. mb_encode_numericentity).
- }
-
- $s = (string) $s;
- if ('' === $s) {
- return '';
- }
-
- $encoding = self::getEncoding($encoding);
-
- if ('UTF-8' === $encoding) {
- $encoding = null;
- if (!preg_match('//u', $s)) {
- $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
- }
- } else {
- $s = iconv($encoding, 'UTF-8//IGNORE', $s);
- }
-
- $cnt = floor(\count($convmap) / 4) * 4;
-
- for ($i = 0; $i < $cnt; $i += 4) {
- // collector_decode_htmlnumericentity ignores $convmap[$i + 3]
- $convmap[$i] += $convmap[$i + 2];
- $convmap[$i + 1] += $convmap[$i + 2];
- }
-
- $s = preg_replace_callback('/&#(?:0*([0-9]+)|x0*([0-9a-fA-F]+))(?!&);?/', function (array $m) use ($cnt, $convmap) {
- $c = isset($m[2]) ? (int) hexdec($m[2]) : $m[1];
- for ($i = 0; $i < $cnt; $i += 4) {
- if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) {
- return Mbstring::mb_chr($c - $convmap[$i + 2]);
- }
- }
-
- return $m[0];
- }, $s);
-
- if (null === $encoding) {
- return $s;
- }
-
- return iconv('UTF-8', $encoding.'//IGNORE', $s);
- }
-
- public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false)
- {
- if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
- trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
-
- return null;
- }
-
- if (!\is_array($convmap) || !$convmap) {
- return false;
- }
-
- if (null !== $encoding && !\is_scalar($encoding)) {
- trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
-
- return null; // Instead of '' (cf. mb_decode_numericentity).
- }
-
- if (null !== $is_hex && !\is_scalar($is_hex)) {
- trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', E_USER_WARNING);
-
- return null;
- }
-
- $s = (string) $s;
- if ('' === $s) {
- return '';
- }
-
- $encoding = self::getEncoding($encoding);
-
- if ('UTF-8' === $encoding) {
- $encoding = null;
- if (!preg_match('//u', $s)) {
- $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
- }
- } else {
- $s = iconv($encoding, 'UTF-8//IGNORE', $s);
- }
-
- static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
-
- $cnt = floor(\count($convmap) / 4) * 4;
- $i = 0;
- $len = \strlen($s);
- $result = '';
-
- while ($i < $len) {
- $ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"];
- $uchr = substr($s, $i, $ulen);
- $i += $ulen;
- $c = self::mb_ord($uchr);
-
- for ($j = 0; $j < $cnt; $j += 4) {
- if ($c >= $convmap[$j] && $c <= $convmap[$j + 1]) {
- $cOffset = ($c + $convmap[$j + 2]) & $convmap[$j + 3];
- $result .= $is_hex ? sprintf('&#x%X;', $cOffset) : '&#'.$cOffset.';';
- continue 2;
- }
- }
- $result .= $uchr;
- }
-
- if (null === $encoding) {
- return $result;
- }
-
- return iconv('UTF-8', $encoding.'//IGNORE', $result);
- }
-
- public static function mb_convert_case($s, $mode, $encoding = null)
- {
- $s = (string) $s;
- if ('' === $s) {
- return '';
- }
-
- $encoding = self::getEncoding($encoding);
-
- if ('UTF-8' === $encoding) {
- $encoding = null;
- if (!preg_match('//u', $s)) {
- $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
- }
- } else {
- $s = iconv($encoding, 'UTF-8//IGNORE', $s);
- }
-
- if (MB_CASE_TITLE == $mode) {
- static $titleRegexp = null;
- if (null === $titleRegexp) {
- $titleRegexp = self::getData('titleCaseRegexp');
- }
- $s = preg_replace_callback($titleRegexp, array(__CLASS__, 'title_case'), $s);
- } else {
- if (MB_CASE_UPPER == $mode) {
- static $upper = null;
- if (null === $upper) {
- $upper = self::getData('upperCase');
- }
- $map = $upper;
- } else {
- if (self::MB_CASE_FOLD === $mode) {
- $s = str_replace(self::$caseFold[0], self::$caseFold[1], $s);
- }
-
- static $lower = null;
- if (null === $lower) {
- $lower = self::getData('lowerCase');
- }
- $map = $lower;
- }
-
- static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
-
- $i = 0;
- $len = \strlen($s);
-
- while ($i < $len) {
- $ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"];
- $uchr = substr($s, $i, $ulen);
- $i += $ulen;
-
- if (isset($map[$uchr])) {
- $uchr = $map[$uchr];
- $nlen = \strlen($uchr);
-
- if ($nlen == $ulen) {
- $nlen = $i;
- do {
- $s[--$nlen] = $uchr[--$ulen];
- } while ($ulen);
- } else {
- $s = substr_replace($s, $uchr, $i - $ulen, $ulen);
- $len += $nlen - $ulen;
- $i += $nlen - $ulen;
- }
- }
- }
- }
-
- if (null === $encoding) {
- return $s;
- }
-
- return iconv('UTF-8', $encoding.'//IGNORE', $s);
- }
-
- public static function mb_internal_encoding($encoding = null)
- {
- if (null === $encoding) {
- return self::$internalEncoding;
- }
-
- $encoding = self::getEncoding($encoding);
-
- if ('UTF-8' === $encoding || false !== @iconv($encoding, $encoding, ' ')) {
- self::$internalEncoding = $encoding;
-
- return true;
- }
-
- return false;
- }
-
- public static function mb_language($lang = null)
- {
- if (null === $lang) {
- return self::$language;
- }
-
- switch ($lang = strtolower($lang)) {
- case 'uni':
- case 'neutral':
- self::$language = $lang;
-
- return true;
- }
-
- return false;
- }
-
- public static function mb_list_encodings()
- {
- return array('UTF-8');
- }
-
- public static function mb_encoding_aliases($encoding)
- {
- switch (strtoupper($encoding)) {
- case 'UTF8':
- case 'UTF-8':
- return array('utf8');
- }
-
- return false;
- }
-
- public static function mb_check_encoding($var = null, $encoding = null)
- {
- if (null === $encoding) {
- if (null === $var) {
- return false;
- }
- $encoding = self::$internalEncoding;
- }
-
- return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var);
- }
-
- public static function mb_detect_encoding($str, $encodingList = null, $strict = false)
- {
- if (null === $encodingList) {
- $encodingList = self::$encodingList;
- } else {
- if (!\is_array($encodingList)) {
- $encodingList = array_map('trim', explode(',', $encodingList));
- }
- $encodingList = array_map('strtoupper', $encodingList);
- }
-
- foreach ($encodingList as $enc) {
- switch ($enc) {
- case 'ASCII':
- if (!preg_match('/[\x80-\xFF]/', $str)) {
- return $enc;
- }
- break;
-
- case 'UTF8':
- case 'UTF-8':
- if (preg_match('//u', $str)) {
- return 'UTF-8';
- }
- break;
-
- default:
- if (0 === strncmp($enc, 'ISO-8859-', 9)) {
- return $enc;
- }
- }
- }
-
- return false;
- }
-
- public static function mb_detect_order($encodingList = null)
- {
- if (null === $encodingList) {
- return self::$encodingList;
- }
-
- if (!\is_array($encodingList)) {
- $encodingList = array_map('trim', explode(',', $encodingList));
- }
- $encodingList = array_map('strtoupper', $encodingList);
-
- foreach ($encodingList as $enc) {
- switch ($enc) {
- default:
- if (strncmp($enc, 'ISO-8859-', 9)) {
- return false;
- }
- // no break
- case 'ASCII':
- case 'UTF8':
- case 'UTF-8':
- }
- }
-
- self::$encodingList = $encodingList;
-
- return true;
- }
-
- public static function mb_strlen($s, $encoding = null)
- {
- $encoding = self::getEncoding($encoding);
- if ('CP850' === $encoding || 'ASCII' === $encoding) {
- return \strlen($s);
- }
-
- return @iconv_strlen($s, $encoding);
- }
-
- public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null)
- {
- $encoding = self::getEncoding($encoding);
- if ('CP850' === $encoding || 'ASCII' === $encoding) {
- return strpos($haystack, $needle, $offset);
- }
-
- $needle = (string) $needle;
- if ('' === $needle) {
- trigger_error(__METHOD__.': Empty delimiter', E_USER_WARNING);
-
- return false;
- }
-
- return iconv_strpos($haystack, $needle, $offset, $encoding);
- }
-
- public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null)
- {
- $encoding = self::getEncoding($encoding);
- if ('CP850' === $encoding || 'ASCII' === $encoding) {
- return strrpos($haystack, $needle, $offset);
- }
-
- if ($offset != (int) $offset) {
- $offset = 0;
- } elseif ($offset = (int) $offset) {
- if ($offset < 0) {
- $haystack = self::mb_substr($haystack, 0, $offset, $encoding);
- $offset = 0;
- } else {
- $haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding);
- }
- }
-
- $pos = iconv_strrpos($haystack, $needle, $encoding);
-
- return false !== $pos ? $offset + $pos : false;
- }
-
- public static function mb_strtolower($s, $encoding = null)
- {
- return self::mb_convert_case($s, MB_CASE_LOWER, $encoding);
- }
-
- public static function mb_strtoupper($s, $encoding = null)
- {
- return self::mb_convert_case($s, MB_CASE_UPPER, $encoding);
- }
-
- public static function mb_substitute_character($c = null)
- {
- if (0 === strcasecmp($c, 'none')) {
- return true;
- }
-
- return null !== $c ? false : 'none';
- }
-
- public static function mb_substr($s, $start, $length = null, $encoding = null)
- {
- $encoding = self::getEncoding($encoding);
- if ('CP850' === $encoding || 'ASCII' === $encoding) {
- return substr($s, $start, null === $length ? 2147483647 : $length);
- }
-
- if ($start < 0) {
- $start = iconv_strlen($s, $encoding) + $start;
- if ($start < 0) {
- $start = 0;
- }
- }
-
- if (null === $length) {
- $length = 2147483647;
- } elseif ($length < 0) {
- $length = iconv_strlen($s, $encoding) + $length - $start;
- if ($length < 0) {
- return '';
- }
- }
-
- return (string) iconv_substr($s, $start, $length, $encoding);
- }
-
- public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null)
- {
- $haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
- $needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
-
- return self::mb_strpos($haystack, $needle, $offset, $encoding);
- }
-
- public static function mb_stristr($haystack, $needle, $part = false, $encoding = null)
- {
- $pos = self::mb_stripos($haystack, $needle, 0, $encoding);
-
- return self::getSubpart($pos, $part, $haystack, $encoding);
- }
-
- public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null)
- {
- $encoding = self::getEncoding($encoding);
- if ('CP850' === $encoding || 'ASCII' === $encoding) {
- return strrchr($haystack, $needle, $part);
- }
- $needle = self::mb_substr($needle, 0, 1, $encoding);
- $pos = iconv_strrpos($haystack, $needle, $encoding);
-
- return self::getSubpart($pos, $part, $haystack, $encoding);
- }
-
- public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null)
- {
- $needle = self::mb_substr($needle, 0, 1, $encoding);
- $pos = self::mb_strripos($haystack, $needle, $encoding);
-
- return self::getSubpart($pos, $part, $haystack, $encoding);
- }
-
- public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null)
- {
- $haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
- $needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
-
- return self::mb_strrpos($haystack, $needle, $offset, $encoding);
- }
-
- public static function mb_strstr($haystack, $needle, $part = false, $encoding = null)
- {
- $pos = strpos($haystack, $needle);
- if (false === $pos) {
- return false;
- }
- if ($part) {
- return substr($haystack, 0, $pos);
- }
-
- return substr($haystack, $pos);
- }
-
- public static function mb_get_info($type = 'all')
- {
- $info = array(
- 'internal_encoding' => self::$internalEncoding,
- 'http_output' => 'pass',
- 'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)',
- 'func_overload' => 0,
- 'func_overload_list' => 'no overload',
- 'mail_charset' => 'UTF-8',
- 'mail_header_encoding' => 'BASE64',
- 'mail_body_encoding' => 'BASE64',
- 'illegal_chars' => 0,
- 'encoding_translation' => 'Off',
- 'language' => self::$language,
- 'detect_order' => self::$encodingList,
- 'substitute_character' => 'none',
- 'strict_detection' => 'Off',
- );
-
- if ('all' === $type) {
- return $info;
- }
- if (isset($info[$type])) {
- return $info[$type];
- }
-
- return false;
- }
-
- public static function mb_http_input($type = '')
- {
- return false;
- }
-
- public static function mb_http_output($encoding = null)
- {
- return null !== $encoding ? 'pass' === $encoding : 'pass';
- }
-
- public static function mb_strwidth($s, $encoding = null)
- {
- $encoding = self::getEncoding($encoding);
-
- if ('UTF-8' !== $encoding) {
- $s = iconv($encoding, 'UTF-8//IGNORE', $s);
- }
-
- $s = preg_replace('/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u', '', $s, -1, $wide);
-
- return ($wide << 1) + iconv_strlen($s, 'UTF-8');
- }
-
- public static function mb_substr_count($haystack, $needle, $encoding = null)
- {
- return substr_count($haystack, $needle);
- }
-
- public static function mb_output_handler($contents, $status)
- {
- return $contents;
- }
-
- public static function mb_chr($code, $encoding = null)
- {
- if (0x80 > $code %= 0x200000) {
- $s = \chr($code);
- } elseif (0x800 > $code) {
- $s = \chr(0xC0 | $code >> 6).\chr(0x80 | $code & 0x3F);
- } elseif (0x10000 > $code) {
- $s = \chr(0xE0 | $code >> 12).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
- } else {
- $s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
- }
-
- if ('UTF-8' !== $encoding = self::getEncoding($encoding)) {
- $s = mb_convert_encoding($s, $encoding, 'UTF-8');
- }
-
- return $s;
- }
-
- public static function mb_ord($s, $encoding = null)
- {
- if ('UTF-8' !== $encoding = self::getEncoding($encoding)) {
- $s = mb_convert_encoding($s, 'UTF-8', $encoding);
- }
-
- if (1 === \strlen($s)) {
- return \ord($s);
- }
-
- $code = ($s = unpack('C*', substr($s, 0, 4))) ? $s[1] : 0;
- if (0xF0 <= $code) {
- return (($code - 0xF0) << 18) + (($s[2] - 0x80) << 12) + (($s[3] - 0x80) << 6) + $s[4] - 0x80;
- }
- if (0xE0 <= $code) {
- return (($code - 0xE0) << 12) + (($s[2] - 0x80) << 6) + $s[3] - 0x80;
- }
- if (0xC0 <= $code) {
- return (($code - 0xC0) << 6) + $s[2] - 0x80;
- }
-
- return $code;
- }
-
- private static function getSubpart($pos, $part, $haystack, $encoding)
- {
- if (false === $pos) {
- return false;
- }
- if ($part) {
- return self::mb_substr($haystack, 0, $pos, $encoding);
- }
-
- return self::mb_substr($haystack, $pos, null, $encoding);
- }
-
- private static function html_encoding_callback(array $m)
- {
- $i = 1;
- $entities = '';
- $m = unpack('C*', htmlentities($m[0], ENT_COMPAT, 'UTF-8'));
-
- while (isset($m[$i])) {
- if (0x80 > $m[$i]) {
- $entities .= \chr($m[$i++]);
- continue;
- }
- if (0xF0 <= $m[$i]) {
- $c = (($m[$i++] - 0xF0) << 18) + (($m[$i++] - 0x80) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80;
- } elseif (0xE0 <= $m[$i]) {
- $c = (($m[$i++] - 0xE0) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80;
- } else {
- $c = (($m[$i++] - 0xC0) << 6) + $m[$i++] - 0x80;
- }
-
- $entities .= '&#'.$c.';';
- }
-
- return $entities;
- }
-
- private static function title_case(array $s)
- {
- return self::mb_convert_case($s[1], MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], MB_CASE_LOWER, 'UTF-8');
- }
-
- private static function getData($file)
- {
- if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) {
- return require $file;
- }
-
- return false;
- }
-
- private static function getEncoding($encoding)
- {
- if (null === $encoding) {
- return self::$internalEncoding;
- }
-
- $encoding = strtoupper($encoding);
-
- if ('8BIT' === $encoding || 'BINARY' === $encoding) {
- return 'CP850';
- }
- if ('UTF8' === $encoding) {
- return 'UTF-8';
- }
-
- return $encoding;
- }
-}
diff --git a/www/wiki/vendor/symfony/polyfill-mbstring/README.md b/www/wiki/vendor/symfony/polyfill-mbstring/README.md
deleted file mode 100644
index 342e8286..00000000
--- a/www/wiki/vendor/symfony/polyfill-mbstring/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-Symfony Polyfill / Mbstring
-===========================
-
-This component provides a partial, native PHP implementation for the
-[Mbstring](http://php.net/mbstring) extension.
-
-More information can be found in the
-[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
-
-License
-=======
-
-This library is released under the [MIT license](LICENSE).
diff --git a/www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php b/www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
deleted file mode 100644
index e6fbfa64..00000000
--- a/www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
+++ /dev/null
@@ -1,1096 +0,0 @@
-<?php
-
-return array(
- 'A' => 'a',
- 'B' => 'b',
- 'C' => 'c',
- 'D' => 'd',
- 'E' => 'e',
- 'F' => 'f',
- 'G' => 'g',
- 'H' => 'h',
- 'I' => 'i',
- 'J' => 'j',
- 'K' => 'k',
- 'L' => 'l',
- 'M' => 'm',
- 'N' => 'n',
- 'O' => 'o',
- 'P' => 'p',
- 'Q' => 'q',
- 'R' => 'r',
- 'S' => 's',
- 'T' => 't',
- 'U' => 'u',
- 'V' => 'v',
- 'W' => 'w',
- 'X' => 'x',
- 'Y' => 'y',
- 'Z' => 'z',
- 'À' => 'à',
- 'Á' => 'á',
- 'Â' => 'â',
- 'Ã' => 'ã',
- 'Ä' => 'ä',
- 'Å' => 'å',
- 'Æ' => 'æ',
- 'Ç' => 'ç',
- 'È' => 'è',
- 'É' => 'é',
- 'Ê' => 'ê',
- 'Ë' => 'ë',
- 'Ì' => 'ì',
- 'Í' => 'í',
- 'Î' => 'î',
- 'Ï' => 'ï',
- 'Ð' => 'ð',
- 'Ñ' => 'ñ',
- 'Ò' => 'ò',
- 'Ó' => 'ó',
- 'Ô' => 'ô',
- 'Õ' => 'õ',
- 'Ö' => 'ö',
- 'Ø' => 'ø',
- 'Ù' => 'ù',
- 'Ú' => 'ú',
- 'Û' => 'û',
- 'Ü' => 'ü',
- 'Ý' => 'ý',
- 'Þ' => 'þ',
- 'Ā' => 'ā',
- 'Ă' => 'ă',
- 'Ą' => 'ą',
- 'Ć' => 'ć',
- 'Ĉ' => 'ĉ',
- 'Ċ' => 'ċ',
- 'Č' => 'č',
- 'Ď' => 'ď',
- 'Đ' => 'đ',
- 'Ē' => 'ē',
- 'Ĕ' => 'ĕ',
- 'Ė' => 'ė',
- 'Ę' => 'ę',
- 'Ě' => 'ě',
- 'Ĝ' => 'ĝ',
- 'Ğ' => 'ğ',
- 'Ġ' => 'ġ',
- 'Ģ' => 'ģ',
- 'Ĥ' => 'ĥ',
- 'Ħ' => 'ħ',
- 'Ĩ' => 'ĩ',
- 'Ī' => 'ī',
- 'Ĭ' => 'ĭ',
- 'Į' => 'į',
- 'İ' => 'i',
- 'IJ' => 'ij',
- 'Ĵ' => 'ĵ',
- 'Ķ' => 'ķ',
- 'Ĺ' => 'ĺ',
- 'Ļ' => 'ļ',
- 'Ľ' => 'ľ',
- 'Ŀ' => 'ŀ',
- 'Ł' => 'ł',
- 'Ń' => 'ń',
- 'Ņ' => 'ņ',
- 'Ň' => 'ň',
- 'Ŋ' => 'ŋ',
- 'Ō' => 'ō',
- 'Ŏ' => 'ŏ',
- 'Ő' => 'ő',
- 'Œ' => 'œ',
- 'Ŕ' => 'ŕ',
- 'Ŗ' => 'ŗ',
- 'Ř' => 'ř',
- 'Ś' => 'ś',
- 'Ŝ' => 'ŝ',
- 'Ş' => 'ş',
- 'Š' => 'š',
- 'Ţ' => 'ţ',
- 'Ť' => 'ť',
- 'Ŧ' => 'ŧ',
- 'Ũ' => 'ũ',
- 'Ū' => 'ū',
- 'Ŭ' => 'ŭ',
- 'Ů' => 'ů',
- 'Ű' => 'ű',
- 'Ų' => 'ų',
- 'Ŵ' => 'ŵ',
- 'Ŷ' => 'ŷ',
- 'Ÿ' => 'ÿ',
- 'Ź' => 'ź',
- 'Ż' => 'ż',
- 'Ž' => 'ž',
- 'Ɓ' => 'ɓ',
- 'Ƃ' => 'ƃ',
- 'Ƅ' => 'ƅ',
- 'Ɔ' => 'ɔ',
- 'Ƈ' => 'ƈ',
- 'Ɖ' => 'ɖ',
- 'Ɗ' => 'ɗ',
- 'Ƌ' => 'ƌ',
- 'Ǝ' => 'ǝ',
- 'Ə' => 'ə',
- 'Ɛ' => 'ɛ',
- 'Ƒ' => 'ƒ',
- 'Ɠ' => 'ɠ',
- 'Ɣ' => 'ɣ',
- 'Ɩ' => 'ɩ',
- 'Ɨ' => 'ɨ',
- 'Ƙ' => 'ƙ',
- 'Ɯ' => 'ɯ',
- 'Ɲ' => 'ɲ',
- 'Ɵ' => 'ɵ',
- 'Ơ' => 'ơ',
- 'Ƣ' => 'ƣ',
- 'Ƥ' => 'ƥ',
- 'Ʀ' => 'ʀ',
- 'Ƨ' => 'ƨ',
- 'Ʃ' => 'ʃ',
- 'Ƭ' => 'ƭ',
- 'Ʈ' => 'ʈ',
- 'Ư' => 'ư',
- 'Ʊ' => 'ʊ',
- 'Ʋ' => 'ʋ',
- 'Ƴ' => 'ƴ',
- 'Ƶ' => 'ƶ',
- 'Ʒ' => 'ʒ',
- 'Ƹ' => 'ƹ',
- 'Ƽ' => 'ƽ',
- 'DŽ' => 'dž',
- 'Dž' => 'dž',
- 'LJ' => 'lj',
- 'Lj' => 'lj',
- 'NJ' => 'nj',
- 'Nj' => 'nj',
- 'Ǎ' => 'ǎ',
- 'Ǐ' => 'ǐ',
- 'Ǒ' => 'ǒ',
- 'Ǔ' => 'ǔ',
- 'Ǖ' => 'ǖ',
- 'Ǘ' => 'ǘ',
- 'Ǚ' => 'ǚ',
- 'Ǜ' => 'ǜ',
- 'Ǟ' => 'ǟ',
- 'Ǡ' => 'ǡ',
- 'Ǣ' => 'ǣ',
- 'Ǥ' => 'ǥ',
- 'Ǧ' => 'ǧ',
- 'Ǩ' => 'ǩ',
- 'Ǫ' => 'ǫ',
- 'Ǭ' => 'ǭ',
- 'Ǯ' => 'ǯ',
- 'DZ' => 'dz',
- 'Dz' => 'dz',
- 'Ǵ' => 'ǵ',
- 'Ƕ' => 'ƕ',
- 'Ƿ' => 'ƿ',
- 'Ǹ' => 'ǹ',
- 'Ǻ' => 'ǻ',
- 'Ǽ' => 'ǽ',
- 'Ǿ' => 'ǿ',
- 'Ȁ' => 'ȁ',
- 'Ȃ' => 'ȃ',
- 'Ȅ' => 'ȅ',
- 'Ȇ' => 'ȇ',
- 'Ȉ' => 'ȉ',
- 'Ȋ' => 'ȋ',
- 'Ȍ' => 'ȍ',
- 'Ȏ' => 'ȏ',
- 'Ȑ' => 'ȑ',
- 'Ȓ' => 'ȓ',
- 'Ȕ' => 'ȕ',
- 'Ȗ' => 'ȗ',
- 'Ș' => 'ș',
- 'Ț' => 'ț',
- 'Ȝ' => 'ȝ',
- 'Ȟ' => 'ȟ',
- 'Ƞ' => 'ƞ',
- 'Ȣ' => 'ȣ',
- 'Ȥ' => 'ȥ',
- 'Ȧ' => 'ȧ',
- 'Ȩ' => 'ȩ',
- 'Ȫ' => 'ȫ',
- 'Ȭ' => 'ȭ',
- 'Ȯ' => 'ȯ',
- 'Ȱ' => 'ȱ',
- 'Ȳ' => 'ȳ',
- 'Ⱥ' => 'ⱥ',
- 'Ȼ' => 'ȼ',
- 'Ƚ' => 'ƚ',
- 'Ⱦ' => 'ⱦ',
- 'Ɂ' => 'ɂ',
- 'Ƀ' => 'ƀ',
- 'Ʉ' => 'ʉ',
- 'Ʌ' => 'ʌ',
- 'Ɇ' => 'ɇ',
- 'Ɉ' => 'ɉ',
- 'Ɋ' => 'ɋ',
- 'Ɍ' => 'ɍ',
- 'Ɏ' => 'ɏ',
- 'Ͱ' => 'ͱ',
- 'Ͳ' => 'ͳ',
- 'Ͷ' => 'ͷ',
- 'Ϳ' => 'ϳ',
- 'Ά' => 'ά',
- 'Έ' => 'έ',
- 'Ή' => 'ή',
- 'Ί' => 'ί',
- 'Ό' => 'ό',
- 'Ύ' => 'ύ',
- 'Ώ' => 'ώ',
- 'Α' => 'α',
- 'Β' => 'β',
- 'Γ' => 'γ',
- 'Δ' => 'δ',
- 'Ε' => 'ε',
- 'Ζ' => 'ζ',
- 'Η' => 'η',
- 'Θ' => 'θ',
- 'Ι' => 'ι',
- 'Κ' => 'κ',
- 'Λ' => 'λ',
- 'Μ' => 'μ',
- 'Ν' => 'ν',
- 'Ξ' => 'ξ',
- 'Ο' => 'ο',
- 'Π' => 'π',
- 'Ρ' => 'ρ',
- 'Σ' => 'σ',
- 'Τ' => 'τ',
- 'Υ' => 'υ',
- 'Φ' => 'φ',
- 'Χ' => 'χ',
- 'Ψ' => 'ψ',
- 'Ω' => 'ω',
- 'Ϊ' => 'ϊ',
- 'Ϋ' => 'ϋ',
- 'Ϗ' => 'ϗ',
- 'Ϙ' => 'ϙ',
- 'Ϛ' => 'ϛ',
- 'Ϝ' => 'ϝ',
- 'Ϟ' => 'ϟ',
- 'Ϡ' => 'ϡ',
- 'Ϣ' => 'ϣ',
- 'Ϥ' => 'ϥ',
- 'Ϧ' => 'ϧ',
- 'Ϩ' => 'ϩ',
- 'Ϫ' => 'ϫ',
- 'Ϭ' => 'ϭ',
- 'Ϯ' => 'ϯ',
- 'ϴ' => 'θ',
- 'Ϸ' => 'ϸ',
- 'Ϲ' => 'ϲ',
- 'Ϻ' => 'ϻ',
- 'Ͻ' => 'ͻ',
- 'Ͼ' => 'ͼ',
- 'Ͽ' => 'ͽ',
- 'Ѐ' => 'ѐ',
- 'Ё' => 'ё',
- 'Ђ' => 'ђ',
- 'Ѓ' => 'ѓ',
- 'Є' => 'є',
- 'Ѕ' => 'ѕ',
- 'І' => 'і',
- 'Ї' => 'ї',
- 'Ј' => 'ј',
- 'Љ' => 'љ',
- 'Њ' => 'њ',
- 'Ћ' => 'ћ',
- 'Ќ' => 'ќ',
- 'Ѝ' => 'ѝ',
- 'Ў' => 'ў',
- 'Џ' => 'џ',
- 'А' => 'а',
- 'Б' => 'б',
- 'В' => 'в',
- 'Г' => 'г',
- 'Д' => 'д',
- 'Е' => 'е',
- 'Ж' => 'ж',
- 'З' => 'з',
- 'И' => 'и',
- 'Й' => 'й',
- 'К' => 'к',
- 'Л' => 'л',
- 'М' => 'м',
- 'Н' => 'н',
- 'О' => 'о',
- 'П' => 'п',
- 'Р' => 'р',
- 'С' => 'с',
- 'Т' => 'т',
- 'У' => 'у',
- 'Ф' => 'ф',
- 'Х' => 'х',
- 'Ц' => 'ц',
- 'Ч' => 'ч',
- 'Ш' => 'ш',
- 'Щ' => 'щ',
- 'Ъ' => 'ъ',
- 'Ы' => 'ы',
- 'Ь' => 'ь',
- 'Э' => 'э',
- 'Ю' => 'ю',
- 'Я' => 'я',
- 'Ѡ' => 'ѡ',
- 'Ѣ' => 'ѣ',
- 'Ѥ' => 'ѥ',
- 'Ѧ' => 'ѧ',
- 'Ѩ' => 'ѩ',
- 'Ѫ' => 'ѫ',
- 'Ѭ' => 'ѭ',
- 'Ѯ' => 'ѯ',
- 'Ѱ' => 'ѱ',
- 'Ѳ' => 'ѳ',
- 'Ѵ' => 'ѵ',
- 'Ѷ' => 'ѷ',
- 'Ѹ' => 'ѹ',
- 'Ѻ' => 'ѻ',
- 'Ѽ' => 'ѽ',
- 'Ѿ' => 'ѿ',
- 'Ҁ' => 'ҁ',
- 'Ҋ' => 'ҋ',
- 'Ҍ' => 'ҍ',
- 'Ҏ' => 'ҏ',
- 'Ґ' => 'ґ',
- 'Ғ' => 'ғ',
- 'Ҕ' => 'ҕ',
- 'Җ' => 'җ',
- 'Ҙ' => 'ҙ',
- 'Қ' => 'қ',
- 'Ҝ' => 'ҝ',
- 'Ҟ' => 'ҟ',
- 'Ҡ' => 'ҡ',
- 'Ң' => 'ң',
- 'Ҥ' => 'ҥ',
- 'Ҧ' => 'ҧ',
- 'Ҩ' => 'ҩ',
- 'Ҫ' => 'ҫ',
- 'Ҭ' => 'ҭ',
- 'Ү' => 'ү',
- 'Ұ' => 'ұ',
- 'Ҳ' => 'ҳ',
- 'Ҵ' => 'ҵ',
- 'Ҷ' => 'ҷ',
- 'Ҹ' => 'ҹ',
- 'Һ' => 'һ',
- 'Ҽ' => 'ҽ',
- 'Ҿ' => 'ҿ',
- 'Ӏ' => 'ӏ',
- 'Ӂ' => 'ӂ',
- 'Ӄ' => 'ӄ',
- 'Ӆ' => 'ӆ',
- 'Ӈ' => 'ӈ',
- 'Ӊ' => 'ӊ',
- 'Ӌ' => 'ӌ',
- 'Ӎ' => 'ӎ',
- 'Ӑ' => 'ӑ',
- 'Ӓ' => 'ӓ',
- 'Ӕ' => 'ӕ',
- 'Ӗ' => 'ӗ',
- 'Ә' => 'ә',
- 'Ӛ' => 'ӛ',
- 'Ӝ' => 'ӝ',
- 'Ӟ' => 'ӟ',
- 'Ӡ' => 'ӡ',
- 'Ӣ' => 'ӣ',
- 'Ӥ' => 'ӥ',
- 'Ӧ' => 'ӧ',
- 'Ө' => 'ө',
- 'Ӫ' => 'ӫ',
- 'Ӭ' => 'ӭ',
- 'Ӯ' => 'ӯ',
- 'Ӱ' => 'ӱ',
- 'Ӳ' => 'ӳ',
- 'Ӵ' => 'ӵ',
- 'Ӷ' => 'ӷ',
- 'Ӹ' => 'ӹ',
- 'Ӻ' => 'ӻ',
- 'Ӽ' => 'ӽ',
- 'Ӿ' => 'ӿ',
- 'Ԁ' => 'ԁ',
- 'Ԃ' => 'ԃ',
- 'Ԅ' => 'ԅ',
- 'Ԇ' => 'ԇ',
- 'Ԉ' => 'ԉ',
- 'Ԋ' => 'ԋ',
- 'Ԍ' => 'ԍ',
- 'Ԏ' => 'ԏ',
- 'Ԑ' => 'ԑ',
- 'Ԓ' => 'ԓ',
- 'Ԕ' => 'ԕ',
- 'Ԗ' => 'ԗ',
- 'Ԙ' => 'ԙ',
- 'Ԛ' => 'ԛ',
- 'Ԝ' => 'ԝ',
- 'Ԟ' => 'ԟ',
- 'Ԡ' => 'ԡ',
- 'Ԣ' => 'ԣ',
- 'Ԥ' => 'ԥ',
- 'Ԧ' => 'ԧ',
- 'Ԩ' => 'ԩ',
- 'Ԫ' => 'ԫ',
- 'Ԭ' => 'ԭ',
- 'Ԯ' => 'ԯ',
- 'Ա' => 'ա',
- 'Բ' => 'բ',
- 'Գ' => 'գ',
- 'Դ' => 'դ',
- 'Ե' => 'ե',
- 'Զ' => 'զ',
- 'Է' => 'է',
- 'Ը' => 'ը',
- 'Թ' => 'թ',
- 'Ժ' => 'ժ',
- 'Ի' => 'ի',
- 'Լ' => 'լ',
- 'Խ' => 'խ',
- 'Ծ' => 'ծ',
- 'Կ' => 'կ',
- 'Հ' => 'հ',
- 'Ձ' => 'ձ',
- 'Ղ' => 'ղ',
- 'Ճ' => 'ճ',
- 'Մ' => 'մ',
- 'Յ' => 'յ',
- 'Ն' => 'ն',
- 'Շ' => 'շ',
- 'Ո' => 'ո',
- 'Չ' => 'չ',
- 'Պ' => 'պ',
- 'Ջ' => 'ջ',
- 'Ռ' => 'ռ',
- 'Ս' => 'ս',
- 'Վ' => 'վ',
- 'Տ' => 'տ',
- 'Ր' => 'ր',
- 'Ց' => 'ց',
- 'Ւ' => 'ւ',
- 'Փ' => 'փ',
- 'Ք' => 'ք',
- 'Օ' => 'օ',
- 'Ֆ' => 'ֆ',
- 'Ⴀ' => 'ⴀ',
- 'Ⴁ' => 'ⴁ',
- 'Ⴂ' => 'ⴂ',
- 'Ⴃ' => 'ⴃ',
- 'Ⴄ' => 'ⴄ',
- 'Ⴅ' => 'ⴅ',
- 'Ⴆ' => 'ⴆ',
- 'Ⴇ' => 'ⴇ',
- 'Ⴈ' => 'ⴈ',
- 'Ⴉ' => 'ⴉ',
- 'Ⴊ' => 'ⴊ',
- 'Ⴋ' => 'ⴋ',
- 'Ⴌ' => 'ⴌ',
- 'Ⴍ' => 'ⴍ',
- 'Ⴎ' => 'ⴎ',
- 'Ⴏ' => 'ⴏ',
- 'Ⴐ' => 'ⴐ',
- 'Ⴑ' => 'ⴑ',
- 'Ⴒ' => 'ⴒ',
- 'Ⴓ' => 'ⴓ',
- 'Ⴔ' => 'ⴔ',
- 'Ⴕ' => 'ⴕ',
- 'Ⴖ' => 'ⴖ',
- 'Ⴗ' => 'ⴗ',
- 'Ⴘ' => 'ⴘ',
- 'Ⴙ' => 'ⴙ',
- 'Ⴚ' => 'ⴚ',
- 'Ⴛ' => 'ⴛ',
- 'Ⴜ' => 'ⴜ',
- 'Ⴝ' => 'ⴝ',
- 'Ⴞ' => 'ⴞ',
- 'Ⴟ' => 'ⴟ',
- 'Ⴠ' => 'ⴠ',
- 'Ⴡ' => 'ⴡ',
- 'Ⴢ' => 'ⴢ',
- 'Ⴣ' => 'ⴣ',
- 'Ⴤ' => 'ⴤ',
- 'Ⴥ' => 'ⴥ',
- 'Ⴧ' => 'ⴧ',
- 'Ⴭ' => 'ⴭ',
- 'Ḁ' => 'ḁ',
- 'Ḃ' => 'ḃ',
- 'Ḅ' => 'ḅ',
- 'Ḇ' => 'ḇ',
- 'Ḉ' => 'ḉ',
- 'Ḋ' => 'ḋ',
- 'Ḍ' => 'ḍ',
- 'Ḏ' => 'ḏ',
- 'Ḑ' => 'ḑ',
- 'Ḓ' => 'ḓ',
- 'Ḕ' => 'ḕ',
- 'Ḗ' => 'ḗ',
- 'Ḙ' => 'ḙ',
- 'Ḛ' => 'ḛ',
- 'Ḝ' => 'ḝ',
- 'Ḟ' => 'ḟ',
- 'Ḡ' => 'ḡ',
- 'Ḣ' => 'ḣ',
- 'Ḥ' => 'ḥ',
- 'Ḧ' => 'ḧ',
- 'Ḩ' => 'ḩ',
- 'Ḫ' => 'ḫ',
- 'Ḭ' => 'ḭ',
- 'Ḯ' => 'ḯ',
- 'Ḱ' => 'ḱ',
- 'Ḳ' => 'ḳ',
- 'Ḵ' => 'ḵ',
- 'Ḷ' => 'ḷ',
- 'Ḹ' => 'ḹ',
- 'Ḻ' => 'ḻ',
- 'Ḽ' => 'ḽ',
- 'Ḿ' => 'ḿ',
- 'Ṁ' => 'ṁ',
- 'Ṃ' => 'ṃ',
- 'Ṅ' => 'ṅ',
- 'Ṇ' => 'ṇ',
- 'Ṉ' => 'ṉ',
- 'Ṋ' => 'ṋ',
- 'Ṍ' => 'ṍ',
- 'Ṏ' => 'ṏ',
- 'Ṑ' => 'ṑ',
- 'Ṓ' => 'ṓ',
- 'Ṕ' => 'ṕ',
- 'Ṗ' => 'ṗ',
- 'Ṙ' => 'ṙ',
- 'Ṛ' => 'ṛ',
- 'Ṝ' => 'ṝ',
- 'Ṟ' => 'ṟ',
- 'Ṡ' => 'ṡ',
- 'Ṣ' => 'ṣ',
- 'Ṥ' => 'ṥ',
- 'Ṧ' => 'ṧ',
- 'Ṩ' => 'ṩ',
- 'Ṫ' => 'ṫ',
- 'Ṭ' => 'ṭ',
- 'Ṯ' => 'ṯ',
- 'Ṱ' => 'ṱ',
- 'Ṳ' => 'ṳ',
- 'Ṵ' => 'ṵ',
- 'Ṷ' => 'ṷ',
- 'Ṹ' => 'ṹ',
- 'Ṻ' => 'ṻ',
- 'Ṽ' => 'ṽ',
- 'Ṿ' => 'ṿ',
- 'Ẁ' => 'ẁ',
- 'Ẃ' => 'ẃ',
- 'Ẅ' => 'ẅ',
- 'Ẇ' => 'ẇ',
- 'Ẉ' => 'ẉ',
- 'Ẋ' => 'ẋ',
- 'Ẍ' => 'ẍ',
- 'Ẏ' => 'ẏ',
- 'Ẑ' => 'ẑ',
- 'Ẓ' => 'ẓ',
- 'Ẕ' => 'ẕ',
- 'ẞ' => 'ß',
- 'Ạ' => 'ạ',
- 'Ả' => 'ả',
- 'Ấ' => 'ấ',
- 'Ầ' => 'ầ',
- 'Ẩ' => 'ẩ',
- 'Ẫ' => 'ẫ',
- 'Ậ' => 'ậ',
- 'Ắ' => 'ắ',
- 'Ằ' => 'ằ',
- 'Ẳ' => 'ẳ',
- 'Ẵ' => 'ẵ',
- 'Ặ' => 'ặ',
- 'Ẹ' => 'ẹ',
- 'Ẻ' => 'ẻ',
- 'Ẽ' => 'ẽ',
- 'Ế' => 'ế',
- 'Ề' => 'ề',
- 'Ể' => 'ể',
- 'Ễ' => 'ễ',
- 'Ệ' => 'ệ',
- 'Ỉ' => 'ỉ',
- 'Ị' => 'ị',
- 'Ọ' => 'ọ',
- 'Ỏ' => 'ỏ',
- 'Ố' => 'ố',
- 'Ồ' => 'ồ',
- 'Ổ' => 'ổ',
- 'Ỗ' => 'ỗ',
- 'Ộ' => 'ộ',
- 'Ớ' => 'ớ',
- 'Ờ' => 'ờ',
- 'Ở' => 'ở',
- 'Ỡ' => 'ỡ',
- 'Ợ' => 'ợ',
- 'Ụ' => 'ụ',
- 'Ủ' => 'ủ',
- 'Ứ' => 'ứ',
- 'Ừ' => 'ừ',
- 'Ử' => 'ử',
- 'Ữ' => 'ữ',
- 'Ự' => 'ự',
- 'Ỳ' => 'ỳ',
- 'Ỵ' => 'ỵ',
- 'Ỷ' => 'ỷ',
- 'Ỹ' => 'ỹ',
- 'Ỻ' => 'ỻ',
- 'Ỽ' => 'ỽ',
- 'Ỿ' => 'ỿ',
- 'Ἀ' => 'ἀ',
- 'Ἁ' => 'ἁ',
- 'Ἂ' => 'ἂ',
- 'Ἃ' => 'ἃ',
- 'Ἄ' => 'ἄ',
- 'Ἅ' => 'ἅ',
- 'Ἆ' => 'ἆ',
- 'Ἇ' => 'ἇ',
- 'Ἐ' => 'ἐ',
- 'Ἑ' => 'ἑ',
- 'Ἒ' => 'ἒ',
- 'Ἓ' => 'ἓ',
- 'Ἔ' => 'ἔ',
- 'Ἕ' => 'ἕ',
- 'Ἠ' => 'ἠ',
- 'Ἡ' => 'ἡ',
- 'Ἢ' => 'ἢ',
- 'Ἣ' => 'ἣ',
- 'Ἤ' => 'ἤ',
- 'Ἥ' => 'ἥ',
- 'Ἦ' => 'ἦ',
- 'Ἧ' => 'ἧ',
- 'Ἰ' => 'ἰ',
- 'Ἱ' => 'ἱ',
- 'Ἲ' => 'ἲ',
- 'Ἳ' => 'ἳ',
- 'Ἴ' => 'ἴ',
- 'Ἵ' => 'ἵ',
- 'Ἶ' => 'ἶ',
- 'Ἷ' => 'ἷ',
- 'Ὀ' => 'ὀ',
- 'Ὁ' => 'ὁ',
- 'Ὂ' => 'ὂ',
- 'Ὃ' => 'ὃ',
- 'Ὄ' => 'ὄ',
- 'Ὅ' => 'ὅ',
- 'Ὑ' => 'ὑ',
- 'Ὓ' => 'ὓ',
- 'Ὕ' => 'ὕ',
- 'Ὗ' => 'ὗ',
- 'Ὠ' => 'ὠ',
- 'Ὡ' => 'ὡ',
- 'Ὢ' => 'ὢ',
- 'Ὣ' => 'ὣ',
- 'Ὤ' => 'ὤ',
- 'Ὥ' => 'ὥ',
- 'Ὦ' => 'ὦ',
- 'Ὧ' => 'ὧ',
- 'ᾈ' => 'ᾀ',
- 'ᾉ' => 'ᾁ',
- 'ᾊ' => 'ᾂ',
- 'ᾋ' => 'ᾃ',
- 'ᾌ' => 'ᾄ',
- 'ᾍ' => 'ᾅ',
- 'ᾎ' => 'ᾆ',
- 'ᾏ' => 'ᾇ',
- 'ᾘ' => 'ᾐ',
- 'ᾙ' => 'ᾑ',
- 'ᾚ' => 'ᾒ',
- 'ᾛ' => 'ᾓ',
- 'ᾜ' => 'ᾔ',
- 'ᾝ' => 'ᾕ',
- 'ᾞ' => 'ᾖ',
- 'ᾟ' => 'ᾗ',
- 'ᾨ' => 'ᾠ',
- 'ᾩ' => 'ᾡ',
- 'ᾪ' => 'ᾢ',
- 'ᾫ' => 'ᾣ',
- 'ᾬ' => 'ᾤ',
- 'ᾭ' => 'ᾥ',
- 'ᾮ' => 'ᾦ',
- 'ᾯ' => 'ᾧ',
- 'Ᾰ' => 'ᾰ',
- 'Ᾱ' => 'ᾱ',
- 'Ὰ' => 'ὰ',
- 'Ά' => 'ά',
- 'ᾼ' => 'ᾳ',
- 'Ὲ' => 'ὲ',
- 'Έ' => 'έ',
- 'Ὴ' => 'ὴ',
- 'Ή' => 'ή',
- 'ῌ' => 'ῃ',
- 'Ῐ' => 'ῐ',
- 'Ῑ' => 'ῑ',
- 'Ὶ' => 'ὶ',
- 'Ί' => 'ί',
- 'Ῠ' => 'ῠ',
- 'Ῡ' => 'ῡ',
- 'Ὺ' => 'ὺ',
- 'Ύ' => 'ύ',
- 'Ῥ' => 'ῥ',
- 'Ὸ' => 'ὸ',
- 'Ό' => 'ό',
- 'Ὼ' => 'ὼ',
- 'Ώ' => 'ώ',
- 'ῼ' => 'ῳ',
- 'Ω' => 'ω',
- 'K' => 'k',
- 'Å' => 'å',
- 'Ⅎ' => 'ⅎ',
- 'Ⅰ' => 'ⅰ',
- 'Ⅱ' => 'ⅱ',
- 'Ⅲ' => 'ⅲ',
- 'Ⅳ' => 'ⅳ',
- 'Ⅴ' => 'ⅴ',
- 'Ⅵ' => 'ⅵ',
- 'Ⅶ' => 'ⅶ',
- 'Ⅷ' => 'ⅷ',
- 'Ⅸ' => 'ⅸ',
- 'Ⅹ' => 'ⅹ',
- 'Ⅺ' => 'ⅺ',
- 'Ⅻ' => 'ⅻ',
- 'Ⅼ' => 'ⅼ',
- 'Ⅽ' => 'ⅽ',
- 'Ⅾ' => 'ⅾ',
- 'Ⅿ' => 'ⅿ',
- 'Ↄ' => 'ↄ',
- 'Ⓐ' => 'ⓐ',
- 'Ⓑ' => 'ⓑ',
- 'Ⓒ' => 'ⓒ',
- 'Ⓓ' => 'ⓓ',
- 'Ⓔ' => 'ⓔ',
- 'Ⓕ' => 'ⓕ',
- 'Ⓖ' => 'ⓖ',
- 'Ⓗ' => 'ⓗ',
- 'Ⓘ' => 'ⓘ',
- 'Ⓙ' => 'ⓙ',
- 'Ⓚ' => 'ⓚ',
- 'Ⓛ' => 'ⓛ',
- 'Ⓜ' => 'ⓜ',
- 'Ⓝ' => 'ⓝ',
- 'Ⓞ' => 'ⓞ',
- 'Ⓟ' => 'ⓟ',
- 'Ⓠ' => 'ⓠ',
- 'Ⓡ' => 'ⓡ',
- 'Ⓢ' => 'ⓢ',
- 'Ⓣ' => 'ⓣ',
- 'Ⓤ' => 'ⓤ',
- 'Ⓥ' => 'ⓥ',
- 'Ⓦ' => 'ⓦ',
- 'Ⓧ' => 'ⓧ',
- 'Ⓨ' => 'ⓨ',
- 'Ⓩ' => 'ⓩ',
- 'Ⰰ' => 'ⰰ',
- 'Ⰱ' => 'ⰱ',
- 'Ⰲ' => 'ⰲ',
- 'Ⰳ' => 'ⰳ',
- 'Ⰴ' => 'ⰴ',
- 'Ⰵ' => 'ⰵ',
- 'Ⰶ' => 'ⰶ',
- 'Ⰷ' => 'ⰷ',
- 'Ⰸ' => 'ⰸ',
- 'Ⰹ' => 'ⰹ',
- 'Ⰺ' => 'ⰺ',
- 'Ⰻ' => 'ⰻ',
- 'Ⰼ' => 'ⰼ',
- 'Ⰽ' => 'ⰽ',
- 'Ⰾ' => 'ⰾ',
- 'Ⰿ' => 'ⰿ',
- 'Ⱀ' => 'ⱀ',
- 'Ⱁ' => 'ⱁ',
- 'Ⱂ' => 'ⱂ',
- 'Ⱃ' => 'ⱃ',
- 'Ⱄ' => 'ⱄ',
- 'Ⱅ' => 'ⱅ',
- 'Ⱆ' => 'ⱆ',
- 'Ⱇ' => 'ⱇ',
- 'Ⱈ' => 'ⱈ',
- 'Ⱉ' => 'ⱉ',
- 'Ⱊ' => 'ⱊ',
- 'Ⱋ' => 'ⱋ',
- 'Ⱌ' => 'ⱌ',
- 'Ⱍ' => 'ⱍ',
- 'Ⱎ' => 'ⱎ',
- 'Ⱏ' => 'ⱏ',
- 'Ⱐ' => 'ⱐ',
- 'Ⱑ' => 'ⱑ',
- 'Ⱒ' => 'ⱒ',
- 'Ⱓ' => 'ⱓ',
- 'Ⱔ' => 'ⱔ',
- 'Ⱕ' => 'ⱕ',
- 'Ⱖ' => 'ⱖ',
- 'Ⱗ' => 'ⱗ',
- 'Ⱘ' => 'ⱘ',
- 'Ⱙ' => 'ⱙ',
- 'Ⱚ' => 'ⱚ',
- 'Ⱛ' => 'ⱛ',
- 'Ⱜ' => 'ⱜ',
- 'Ⱝ' => 'ⱝ',
- 'Ⱞ' => 'ⱞ',
- 'Ⱡ' => 'ⱡ',
- 'Ɫ' => 'ɫ',
- 'Ᵽ' => 'ᵽ',
- 'Ɽ' => 'ɽ',
- 'Ⱨ' => 'ⱨ',
- 'Ⱪ' => 'ⱪ',
- 'Ⱬ' => 'ⱬ',
- 'Ɑ' => 'ɑ',
- 'Ɱ' => 'ɱ',
- 'Ɐ' => 'ɐ',
- 'Ɒ' => 'ɒ',
- 'Ⱳ' => 'ⱳ',
- 'Ⱶ' => 'ⱶ',
- 'Ȿ' => 'ȿ',
- 'Ɀ' => 'ɀ',
- 'Ⲁ' => 'ⲁ',
- 'Ⲃ' => 'ⲃ',
- 'Ⲅ' => 'ⲅ',
- 'Ⲇ' => 'ⲇ',
- 'Ⲉ' => 'ⲉ',
- 'Ⲋ' => 'ⲋ',
- 'Ⲍ' => 'ⲍ',
- 'Ⲏ' => 'ⲏ',
- 'Ⲑ' => 'ⲑ',
- 'Ⲓ' => 'ⲓ',
- 'Ⲕ' => 'ⲕ',
- 'Ⲗ' => 'ⲗ',
- 'Ⲙ' => 'ⲙ',
- 'Ⲛ' => 'ⲛ',
- 'Ⲝ' => 'ⲝ',
- 'Ⲟ' => 'ⲟ',
- 'Ⲡ' => 'ⲡ',
- 'Ⲣ' => 'ⲣ',
- 'Ⲥ' => 'ⲥ',
- 'Ⲧ' => 'ⲧ',
- 'Ⲩ' => 'ⲩ',
- 'Ⲫ' => 'ⲫ',
- 'Ⲭ' => 'ⲭ',
- 'Ⲯ' => 'ⲯ',
- 'Ⲱ' => 'ⲱ',
- 'Ⲳ' => 'ⲳ',
- 'Ⲵ' => 'ⲵ',
- 'Ⲷ' => 'ⲷ',
- 'Ⲹ' => 'ⲹ',
- 'Ⲻ' => 'ⲻ',
- 'Ⲽ' => 'ⲽ',
- 'Ⲿ' => 'ⲿ',
- 'Ⳁ' => 'ⳁ',
- 'Ⳃ' => 'ⳃ',
- 'Ⳅ' => 'ⳅ',
- 'Ⳇ' => 'ⳇ',
- 'Ⳉ' => 'ⳉ',
- 'Ⳋ' => 'ⳋ',
- 'Ⳍ' => 'ⳍ',
- 'Ⳏ' => 'ⳏ',
- 'Ⳑ' => 'ⳑ',
- 'Ⳓ' => 'ⳓ',
- 'Ⳕ' => 'ⳕ',
- 'Ⳗ' => 'ⳗ',
- 'Ⳙ' => 'ⳙ',
- 'Ⳛ' => 'ⳛ',
- 'Ⳝ' => 'ⳝ',
- 'Ⳟ' => 'ⳟ',
- 'Ⳡ' => 'ⳡ',
- 'Ⳣ' => 'ⳣ',
- 'Ⳬ' => 'ⳬ',
- 'Ⳮ' => 'ⳮ',
- 'Ⳳ' => 'ⳳ',
- 'Ꙁ' => 'ꙁ',
- 'Ꙃ' => 'ꙃ',
- 'Ꙅ' => 'ꙅ',
- 'Ꙇ' => 'ꙇ',
- 'Ꙉ' => 'ꙉ',
- 'Ꙋ' => 'ꙋ',
- 'Ꙍ' => 'ꙍ',
- 'Ꙏ' => 'ꙏ',
- 'Ꙑ' => 'ꙑ',
- 'Ꙓ' => 'ꙓ',
- 'Ꙕ' => 'ꙕ',
- 'Ꙗ' => 'ꙗ',
- 'Ꙙ' => 'ꙙ',
- 'Ꙛ' => 'ꙛ',
- 'Ꙝ' => 'ꙝ',
- 'Ꙟ' => 'ꙟ',
- 'Ꙡ' => 'ꙡ',
- 'Ꙣ' => 'ꙣ',
- 'Ꙥ' => 'ꙥ',
- 'Ꙧ' => 'ꙧ',
- 'Ꙩ' => 'ꙩ',
- 'Ꙫ' => 'ꙫ',
- 'Ꙭ' => 'ꙭ',
- 'Ꚁ' => 'ꚁ',
- 'Ꚃ' => 'ꚃ',
- 'Ꚅ' => 'ꚅ',
- 'Ꚇ' => 'ꚇ',
- 'Ꚉ' => 'ꚉ',
- 'Ꚋ' => 'ꚋ',
- 'Ꚍ' => 'ꚍ',
- 'Ꚏ' => 'ꚏ',
- 'Ꚑ' => 'ꚑ',
- 'Ꚓ' => 'ꚓ',
- 'Ꚕ' => 'ꚕ',
- 'Ꚗ' => 'ꚗ',
- 'Ꚙ' => 'ꚙ',
- 'Ꚛ' => 'ꚛ',
- 'Ꜣ' => 'ꜣ',
- 'Ꜥ' => 'ꜥ',
- 'Ꜧ' => 'ꜧ',
- 'Ꜩ' => 'ꜩ',
- 'Ꜫ' => 'ꜫ',
- 'Ꜭ' => 'ꜭ',
- 'Ꜯ' => 'ꜯ',
- 'Ꜳ' => 'ꜳ',
- 'Ꜵ' => 'ꜵ',
- 'Ꜷ' => 'ꜷ',
- 'Ꜹ' => 'ꜹ',
- 'Ꜻ' => 'ꜻ',
- 'Ꜽ' => 'ꜽ',
- 'Ꜿ' => 'ꜿ',
- 'Ꝁ' => 'ꝁ',
- 'Ꝃ' => 'ꝃ',
- 'Ꝅ' => 'ꝅ',
- 'Ꝇ' => 'ꝇ',
- 'Ꝉ' => 'ꝉ',
- 'Ꝋ' => 'ꝋ',
- 'Ꝍ' => 'ꝍ',
- 'Ꝏ' => 'ꝏ',
- 'Ꝑ' => 'ꝑ',
- 'Ꝓ' => 'ꝓ',
- 'Ꝕ' => 'ꝕ',
- 'Ꝗ' => 'ꝗ',
- 'Ꝙ' => 'ꝙ',
- 'Ꝛ' => 'ꝛ',
- 'Ꝝ' => 'ꝝ',
- 'Ꝟ' => 'ꝟ',
- 'Ꝡ' => 'ꝡ',
- 'Ꝣ' => 'ꝣ',
- 'Ꝥ' => 'ꝥ',
- 'Ꝧ' => 'ꝧ',
- 'Ꝩ' => 'ꝩ',
- 'Ꝫ' => 'ꝫ',
- 'Ꝭ' => 'ꝭ',
- 'Ꝯ' => 'ꝯ',
- 'Ꝺ' => 'ꝺ',
- 'Ꝼ' => 'ꝼ',
- 'Ᵹ' => 'ᵹ',
- 'Ꝿ' => 'ꝿ',
- 'Ꞁ' => 'ꞁ',
- 'Ꞃ' => 'ꞃ',
- 'Ꞅ' => 'ꞅ',
- 'Ꞇ' => 'ꞇ',
- 'Ꞌ' => 'ꞌ',
- 'Ɥ' => 'ɥ',
- 'Ꞑ' => 'ꞑ',
- 'Ꞓ' => 'ꞓ',
- 'Ꞗ' => 'ꞗ',
- 'Ꞙ' => 'ꞙ',
- 'Ꞛ' => 'ꞛ',
- 'Ꞝ' => 'ꞝ',
- 'Ꞟ' => 'ꞟ',
- 'Ꞡ' => 'ꞡ',
- 'Ꞣ' => 'ꞣ',
- 'Ꞥ' => 'ꞥ',
- 'Ꞧ' => 'ꞧ',
- 'Ꞩ' => 'ꞩ',
- 'Ɦ' => 'ɦ',
- 'Ɜ' => 'ɜ',
- 'Ɡ' => 'ɡ',
- 'Ɬ' => 'ɬ',
- 'Ʞ' => 'ʞ',
- 'Ʇ' => 'ʇ',
- 'A' => 'a',
- 'B' => 'b',
- 'C' => 'c',
- 'D' => 'd',
- 'E' => 'e',
- 'F' => 'f',
- 'G' => 'g',
- 'H' => 'h',
- 'I' => 'i',
- 'J' => 'j',
- 'K' => 'k',
- 'L' => 'l',
- 'M' => 'm',
- 'N' => 'n',
- 'O' => 'o',
- 'P' => 'p',
- 'Q' => 'q',
- 'R' => 'r',
- 'S' => 's',
- 'T' => 't',
- 'U' => 'u',
- 'V' => 'v',
- 'W' => 'w',
- 'X' => 'x',
- 'Y' => 'y',
- 'Z' => 'z',
- '𐐀' => '𐐨',
- '𐐁' => '𐐩',
- '𐐂' => '𐐪',
- '𐐃' => '𐐫',
- '𐐄' => '𐐬',
- '𐐅' => '𐐭',
- '𐐆' => '𐐮',
- '𐐇' => '𐐯',
- '𐐈' => '𐐰',
- '𐐉' => '𐐱',
- '𐐊' => '𐐲',
- '𐐋' => '𐐳',
- '𐐌' => '𐐴',
- '𐐍' => '𐐵',
- '𐐎' => '𐐶',
- '𐐏' => '𐐷',
- '𐐐' => '𐐸',
- '𐐑' => '𐐹',
- '𐐒' => '𐐺',
- '𐐓' => '𐐻',
- '𐐔' => '𐐼',
- '𐐕' => '𐐽',
- '𐐖' => '𐐾',
- '𐐗' => '𐐿',
- '𐐘' => '𐑀',
- '𐐙' => '𐑁',
- '𐐚' => '𐑂',
- '𐐛' => '𐑃',
- '𐐜' => '𐑄',
- '𐐝' => '𐑅',
- '𐐞' => '𐑆',
- '𐐟' => '𐑇',
- '𐐠' => '𐑈',
- '𐐡' => '𐑉',
- '𐐢' => '𐑊',
- '𐐣' => '𐑋',
- '𐐤' => '𐑌',
- '𐐥' => '𐑍',
- '𐐦' => '𐑎',
- '𐐧' => '𐑏',
- '𑢠' => '𑣀',
- '𑢡' => '𑣁',
- '𑢢' => '𑣂',
- '𑢣' => '𑣃',
- '𑢤' => '𑣄',
- '𑢥' => '𑣅',
- '𑢦' => '𑣆',
- '𑢧' => '𑣇',
- '𑢨' => '𑣈',
- '𑢩' => '𑣉',
- '𑢪' => '𑣊',
- '𑢫' => '𑣋',
- '𑢬' => '𑣌',
- '𑢭' => '𑣍',
- '𑢮' => '𑣎',
- '𑢯' => '𑣏',
- '𑢰' => '𑣐',
- '𑢱' => '𑣑',
- '𑢲' => '𑣒',
- '𑢳' => '𑣓',
- '𑢴' => '𑣔',
- '𑢵' => '𑣕',
- '𑢶' => '𑣖',
- '𑢷' => '𑣗',
- '𑢸' => '𑣘',
- '𑢹' => '𑣙',
- '𑢺' => '𑣚',
- '𑢻' => '𑣛',
- '𑢼' => '𑣜',
- '𑢽' => '𑣝',
- '𑢾' => '𑣞',
- '𑢿' => '𑣟',
-);
diff --git a/www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php b/www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php
deleted file mode 100644
index 2a8f6e73..00000000
--- a/www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-// from Case_Ignorable in https://unicode.org/Public/UNIDATA/DerivedCoreProperties.txt
-
-return '/(?<![\x{0027}\x{002E}\x{003A}\x{005E}\x{0060}\x{00A8}\x{00AD}\x{00AF}\x{00B4}\x{00B7}\x{00B8}\x{02B0}-\x{02C1}\x{02C2}-\x{02C5}\x{02C6}-\x{02D1}\x{02D2}-\x{02DF}\x{02E0}-\x{02E4}\x{02E5}-\x{02EB}\x{02EC}\x{02ED}\x{02EE}\x{02EF}-\x{02FF}\x{0300}-\x{036F}\x{0374}\x{0375}\x{037A}\x{0384}-\x{0385}\x{0387}\x{0483}-\x{0487}\x{0488}-\x{0489}\x{0559}\x{0591}-\x{05BD}\x{05BF}\x{05C1}-\x{05C2}\x{05C4}-\x{05C5}\x{05C7}\x{05F4}\x{0600}-\x{0605}\x{0610}-\x{061A}\x{061C}\x{0640}\x{064B}-\x{065F}\x{0670}\x{06D6}-\x{06DC}\x{06DD}\x{06DF}-\x{06E4}\x{06E5}-\x{06E6}\x{06E7}-\x{06E8}\x{06EA}-\x{06ED}\x{070F}\x{0711}\x{0730}-\x{074A}\x{07A6}-\x{07B0}\x{07EB}-\x{07F3}\x{07F4}-\x{07F5}\x{07FA}\x{07FD}\x{0816}-\x{0819}\x{081A}\x{081B}-\x{0823}\x{0824}\x{0825}-\x{0827}\x{0828}\x{0829}-\x{082D}\x{0859}-\x{085B}\x{08D3}-\x{08E1}\x{08E2}\x{08E3}-\x{0902}\x{093A}\x{093C}\x{0941}-\x{0948}\x{094D}\x{0951}-\x{0957}\x{0962}-\x{0963}\x{0971}\x{0981}\x{09BC}\x{09C1}-\x{09C4}\x{09CD}\x{09E2}-\x{09E3}\x{09FE}\x{0A01}-\x{0A02}\x{0A3C}\x{0A41}-\x{0A42}\x{0A47}-\x{0A48}\x{0A4B}-\x{0A4D}\x{0A51}\x{0A70}-\x{0A71}\x{0A75}\x{0A81}-\x{0A82}\x{0ABC}\x{0AC1}-\x{0AC5}\x{0AC7}-\x{0AC8}\x{0ACD}\x{0AE2}-\x{0AE3}\x{0AFA}-\x{0AFF}\x{0B01}\x{0B3C}\x{0B3F}\x{0B41}-\x{0B44}\x{0B4D}\x{0B56}\x{0B62}-\x{0B63}\x{0B82}\x{0BC0}\x{0BCD}\x{0C00}\x{0C04}\x{0C3E}-\x{0C40}\x{0C46}-\x{0C48}\x{0C4A}-\x{0C4D}\x{0C55}-\x{0C56}\x{0C62}-\x{0C63}\x{0C81}\x{0CBC}\x{0CBF}\x{0CC6}\x{0CCC}-\x{0CCD}\x{0CE2}-\x{0CE3}\x{0D00}-\x{0D01}\x{0D3B}-\x{0D3C}\x{0D41}-\x{0D44}\x{0D4D}\x{0D62}-\x{0D63}\x{0DCA}\x{0DD2}-\x{0DD4}\x{0DD6}\x{0E31}\x{0E34}-\x{0E3A}\x{0E46}\x{0E47}-\x{0E4E}\x{0EB1}\x{0EB4}-\x{0EB9}\x{0EBB}-\x{0EBC}\x{0EC6}\x{0EC8}-\x{0ECD}\x{0F18}-\x{0F19}\x{0F35}\x{0F37}\x{0F39}\x{0F71}-\x{0F7E}\x{0F80}-\x{0F84}\x{0F86}-\x{0F87}\x{0F8D}-\x{0F97}\x{0F99}-\x{0FBC}\x{0FC6}\x{102D}-\x{1030}\x{1032}-\x{1037}\x{1039}-\x{103A}\x{103D}-\x{103E}\x{1058}-\x{1059}\x{105E}-\x{1060}\x{1071}-\x{1074}\x{1082}\x{1085}-\x{1086}\x{108D}\x{109D}\x{10FC}\x{135D}-\x{135F}\x{1712}-\x{1714}\x{1732}-\x{1734}\x{1752}-\x{1753}\x{1772}-\x{1773}\x{17B4}-\x{17B5}\x{17B7}-\x{17BD}\x{17C6}\x{17C9}-\x{17D3}\x{17D7}\x{17DD}\x{180B}-\x{180D}\x{180E}\x{1843}\x{1885}-\x{1886}\x{18A9}\x{1920}-\x{1922}\x{1927}-\x{1928}\x{1932}\x{1939}-\x{193B}\x{1A17}-\x{1A18}\x{1A1B}\x{1A56}\x{1A58}-\x{1A5E}\x{1A60}\x{1A62}\x{1A65}-\x{1A6C}\x{1A73}-\x{1A7C}\x{1A7F}\x{1AA7}\x{1AB0}-\x{1ABD}\x{1ABE}\x{1B00}-\x{1B03}\x{1B34}\x{1B36}-\x{1B3A}\x{1B3C}\x{1B42}\x{1B6B}-\x{1B73}\x{1B80}-\x{1B81}\x{1BA2}-\x{1BA5}\x{1BA8}-\x{1BA9}\x{1BAB}-\x{1BAD}\x{1BE6}\x{1BE8}-\x{1BE9}\x{1BED}\x{1BEF}-\x{1BF1}\x{1C2C}-\x{1C33}\x{1C36}-\x{1C37}\x{1C78}-\x{1C7D}\x{1CD0}-\x{1CD2}\x{1CD4}-\x{1CE0}\x{1CE2}-\x{1CE8}\x{1CED}\x{1CF4}\x{1CF8}-\x{1CF9}\x{1D2C}-\x{1D6A}\x{1D78}\x{1D9B}-\x{1DBF}\x{1DC0}-\x{1DF9}\x{1DFB}-\x{1DFF}\x{1FBD}\x{1FBF}-\x{1FC1}\x{1FCD}-\x{1FCF}\x{1FDD}-\x{1FDF}\x{1FED}-\x{1FEF}\x{1FFD}-\x{1FFE}\x{200B}-\x{200F}\x{2018}\x{2019}\x{2024}\x{2027}\x{202A}-\x{202E}\x{2060}-\x{2064}\x{2066}-\x{206F}\x{2071}\x{207F}\x{2090}-\x{209C}\x{20D0}-\x{20DC}\x{20DD}-\x{20E0}\x{20E1}\x{20E2}-\x{20E4}\x{20E5}-\x{20F0}\x{2C7C}-\x{2C7D}\x{2CEF}-\x{2CF1}\x{2D6F}\x{2D7F}\x{2DE0}-\x{2DFF}\x{2E2F}\x{3005}\x{302A}-\x{302D}\x{3031}-\x{3035}\x{303B}\x{3099}-\x{309A}\x{309B}-\x{309C}\x{309D}-\x{309E}\x{30FC}-\x{30FE}\x{A015}\x{A4F8}-\x{A4FD}\x{A60C}\x{A66F}\x{A670}-\x{A672}\x{A674}-\x{A67D}\x{A67F}\x{A69C}-\x{A69D}\x{A69E}-\x{A69F}\x{A6F0}-\x{A6F1}\x{A700}-\x{A716}\x{A717}-\x{A71F}\x{A720}-\x{A721}\x{A770}\x{A788}\x{A789}-\x{A78A}\x{A7F8}-\x{A7F9}\x{A802}\x{A806}\x{A80B}\x{A825}-\x{A826}\x{A8C4}-\x{A8C5}\x{A8E0}-\x{A8F1}\x{A8FF}\x{A926}-\x{A92D}\x{A947}-\x{A951}\x{A980}-\x{A982}\x{A9B3}\x{A9B6}-\x{A9B9}\x{A9BC}\x{A9CF}\x{A9E5}\x{A9E6}\x{AA29}-\x{AA2E}\x{AA31}-\x{AA32}\x{AA35}-\x{AA36}\x{AA43}\x{AA4C}\x{AA70}\x{AA7C}\x{AAB0}\x{AAB2}-\x{AAB4}\x{AAB7}-\x{AAB8}\x{AABE}-\x{AABF}\x{AAC1}\x{AADD}\x{AAEC}-\x{AAED}\x{AAF3}-\x{AAF4}\x{AAF6}\x{AB5B}\x{AB5C}-\x{AB5F}\x{ABE5}\x{ABE8}\x{ABED}\x{FB1E}\x{FBB2}-\x{FBC1}\x{FE00}-\x{FE0F}\x{FE13}\x{FE20}-\x{FE2F}\x{FE52}\x{FE55}\x{FEFF}\x{FF07}\x{FF0E}\x{FF1A}\x{FF3E}\x{FF40}\x{FF70}\x{FF9E}-\x{FF9F}\x{FFE3}\x{FFF9}-\x{FFFB}\x{101FD}\x{102E0}\x{10376}-\x{1037A}\x{10A01}-\x{10A03}\x{10A05}-\x{10A06}\x{10A0C}-\x{10A0F}\x{10A38}-\x{10A3A}\x{10A3F}\x{10AE5}-\x{10AE6}\x{10D24}-\x{10D27}\x{10F46}-\x{10F50}\x{11001}\x{11038}-\x{11046}\x{1107F}-\x{11081}\x{110B3}-\x{110B6}\x{110B9}-\x{110BA}\x{110BD}\x{110CD}\x{11100}-\x{11102}\x{11127}-\x{1112B}\x{1112D}-\x{11134}\x{11173}\x{11180}-\x{11181}\x{111B6}-\x{111BE}\x{111C9}-\x{111CC}\x{1122F}-\x{11231}\x{11234}\x{11236}-\x{11237}\x{1123E}\x{112DF}\x{112E3}-\x{112EA}\x{11300}-\x{11301}\x{1133B}-\x{1133C}\x{11340}\x{11366}-\x{1136C}\x{11370}-\x{11374}\x{11438}-\x{1143F}\x{11442}-\x{11444}\x{11446}\x{1145E}\x{114B3}-\x{114B8}\x{114BA}\x{114BF}-\x{114C0}\x{114C2}-\x{114C3}\x{115B2}-\x{115B5}\x{115BC}-\x{115BD}\x{115BF}-\x{115C0}\x{115DC}-\x{115DD}\x{11633}-\x{1163A}\x{1163D}\x{1163F}-\x{11640}\x{116AB}\x{116AD}\x{116B0}-\x{116B5}\x{116B7}\x{1171D}-\x{1171F}\x{11722}-\x{11725}\x{11727}-\x{1172B}\x{1182F}-\x{11837}\x{11839}-\x{1183A}\x{11A01}-\x{11A0A}\x{11A33}-\x{11A38}\x{11A3B}-\x{11A3E}\x{11A47}\x{11A51}-\x{11A56}\x{11A59}-\x{11A5B}\x{11A8A}-\x{11A96}\x{11A98}-\x{11A99}\x{11C30}-\x{11C36}\x{11C38}-\x{11C3D}\x{11C3F}\x{11C92}-\x{11CA7}\x{11CAA}-\x{11CB0}\x{11CB2}-\x{11CB3}\x{11CB5}-\x{11CB6}\x{11D31}-\x{11D36}\x{11D3A}\x{11D3C}-\x{11D3D}\x{11D3F}-\x{11D45}\x{11D47}\x{11D90}-\x{11D91}\x{11D95}\x{11D97}\x{11EF3}-\x{11EF4}\x{16AF0}-\x{16AF4}\x{16B30}-\x{16B36}\x{16B40}-\x{16B43}\x{16F8F}-\x{16F92}\x{16F93}-\x{16F9F}\x{16FE0}-\x{16FE1}\x{1BC9D}-\x{1BC9E}\x{1BCA0}-\x{1BCA3}\x{1D167}-\x{1D169}\x{1D173}-\x{1D17A}\x{1D17B}-\x{1D182}\x{1D185}-\x{1D18B}\x{1D1AA}-\x{1D1AD}\x{1D242}-\x{1D244}\x{1DA00}-\x{1DA36}\x{1DA3B}-\x{1DA6C}\x{1DA75}\x{1DA84}\x{1DA9B}-\x{1DA9F}\x{1DAA1}-\x{1DAAF}\x{1E000}-\x{1E006}\x{1E008}-\x{1E018}\x{1E01B}-\x{1E021}\x{1E023}-\x{1E024}\x{1E026}-\x{1E02A}\x{1E8D0}-\x{1E8D6}\x{1E944}-\x{1E94A}\x{1F3FB}-\x{1F3FF}\x{E0001}\x{E0020}-\x{E007F}\x{E0100}-\x{E01EF}])(\pL)(\pL*+)/u';
diff --git a/www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php b/www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
deleted file mode 100644
index b8103b2e..00000000
--- a/www/wiki/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
+++ /dev/null
@@ -1,1104 +0,0 @@
-<?php
-
-return array(
- 'a' => 'A',
- 'b' => 'B',
- 'c' => 'C',
- 'd' => 'D',
- 'e' => 'E',
- 'f' => 'F',
- 'g' => 'G',
- 'h' => 'H',
- 'i' => 'I',
- 'j' => 'J',
- 'k' => 'K',
- 'l' => 'L',
- 'm' => 'M',
- 'n' => 'N',
- 'o' => 'O',
- 'p' => 'P',
- 'q' => 'Q',
- 'r' => 'R',
- 's' => 'S',
- 't' => 'T',
- 'u' => 'U',
- 'v' => 'V',
- 'w' => 'W',
- 'x' => 'X',
- 'y' => 'Y',
- 'z' => 'Z',
- 'µ' => 'Μ',
- 'à' => 'À',
- 'á' => 'Á',
- 'â' => 'Â',
- 'ã' => 'Ã',
- 'ä' => 'Ä',
- 'å' => 'Å',
- 'æ' => 'Æ',
- 'ç' => 'Ç',
- 'è' => 'È',
- 'é' => 'É',
- 'ê' => 'Ê',
- 'ë' => 'Ë',
- 'ì' => 'Ì',
- 'í' => 'Í',
- 'î' => 'Î',
- 'ï' => 'Ï',
- 'ð' => 'Ð',
- 'ñ' => 'Ñ',
- 'ò' => 'Ò',
- 'ó' => 'Ó',
- 'ô' => 'Ô',
- 'õ' => 'Õ',
- 'ö' => 'Ö',
- 'ø' => 'Ø',
- 'ù' => 'Ù',
- 'ú' => 'Ú',
- 'û' => 'Û',
- 'ü' => 'Ü',
- 'ý' => 'Ý',
- 'þ' => 'Þ',
- 'ÿ' => 'Ÿ',
- 'ā' => 'Ā',
- 'ă' => 'Ă',
- 'ą' => 'Ą',
- 'ć' => 'Ć',
- 'ĉ' => 'Ĉ',
- 'ċ' => 'Ċ',
- 'č' => 'Č',
- 'ď' => 'Ď',
- 'đ' => 'Đ',
- 'ē' => 'Ē',
- 'ĕ' => 'Ĕ',
- 'ė' => 'Ė',
- 'ę' => 'Ę',
- 'ě' => 'Ě',
- 'ĝ' => 'Ĝ',
- 'ğ' => 'Ğ',
- 'ġ' => 'Ġ',
- 'ģ' => 'Ģ',
- 'ĥ' => 'Ĥ',
- 'ħ' => 'Ħ',
- 'ĩ' => 'Ĩ',
- 'ī' => 'Ī',
- 'ĭ' => 'Ĭ',
- 'į' => 'Į',
- 'ı' => 'I',
- 'ij' => 'IJ',
- 'ĵ' => 'Ĵ',
- 'ķ' => 'Ķ',
- 'ĺ' => 'Ĺ',
- 'ļ' => 'Ļ',
- 'ľ' => 'Ľ',
- 'ŀ' => 'Ŀ',
- 'ł' => 'Ł',
- 'ń' => 'Ń',
- 'ņ' => 'Ņ',
- 'ň' => 'Ň',
- 'ŋ' => 'Ŋ',
- 'ō' => 'Ō',
- 'ŏ' => 'Ŏ',
- 'ő' => 'Ő',
- 'œ' => 'Œ',
- 'ŕ' => 'Ŕ',
- 'ŗ' => 'Ŗ',
- 'ř' => 'Ř',
- 'ś' => 'Ś',
- 'ŝ' => 'Ŝ',
- 'ş' => 'Ş',
- 'š' => 'Š',
- 'ţ' => 'Ţ',
- 'ť' => 'Ť',
- 'ŧ' => 'Ŧ',
- 'ũ' => 'Ũ',
- 'ū' => 'Ū',
- 'ŭ' => 'Ŭ',
- 'ů' => 'Ů',
- 'ű' => 'Ű',
- 'ų' => 'Ų',
- 'ŵ' => 'Ŵ',
- 'ŷ' => 'Ŷ',
- 'ź' => 'Ź',
- 'ż' => 'Ż',
- 'ž' => 'Ž',
- 'ſ' => 'S',
- 'ƀ' => 'Ƀ',
- 'ƃ' => 'Ƃ',
- 'ƅ' => 'Ƅ',
- 'ƈ' => 'Ƈ',
- 'ƌ' => 'Ƌ',
- 'ƒ' => 'Ƒ',
- 'ƕ' => 'Ƕ',
- 'ƙ' => 'Ƙ',
- 'ƚ' => 'Ƚ',
- 'ƞ' => 'Ƞ',
- 'ơ' => 'Ơ',
- 'ƣ' => 'Ƣ',
- 'ƥ' => 'Ƥ',
- 'ƨ' => 'Ƨ',
- 'ƭ' => 'Ƭ',
- 'ư' => 'Ư',
- 'ƴ' => 'Ƴ',
- 'ƶ' => 'Ƶ',
- 'ƹ' => 'Ƹ',
- 'ƽ' => 'Ƽ',
- 'ƿ' => 'Ƿ',
- 'Dž' => 'DŽ',
- 'dž' => 'DŽ',
- 'Lj' => 'LJ',
- 'lj' => 'LJ',
- 'Nj' => 'NJ',
- 'nj' => 'NJ',
- 'ǎ' => 'Ǎ',
- 'ǐ' => 'Ǐ',
- 'ǒ' => 'Ǒ',
- 'ǔ' => 'Ǔ',
- 'ǖ' => 'Ǖ',
- 'ǘ' => 'Ǘ',
- 'ǚ' => 'Ǚ',
- 'ǜ' => 'Ǜ',
- 'ǝ' => 'Ǝ',
- 'ǟ' => 'Ǟ',
- 'ǡ' => 'Ǡ',
- 'ǣ' => 'Ǣ',
- 'ǥ' => 'Ǥ',
- 'ǧ' => 'Ǧ',
- 'ǩ' => 'Ǩ',
- 'ǫ' => 'Ǫ',
- 'ǭ' => 'Ǭ',
- 'ǯ' => 'Ǯ',
- 'Dz' => 'DZ',
- 'dz' => 'DZ',
- 'ǵ' => 'Ǵ',
- 'ǹ' => 'Ǹ',
- 'ǻ' => 'Ǻ',
- 'ǽ' => 'Ǽ',
- 'ǿ' => 'Ǿ',
- 'ȁ' => 'Ȁ',
- 'ȃ' => 'Ȃ',
- 'ȅ' => 'Ȅ',
- 'ȇ' => 'Ȇ',
- 'ȉ' => 'Ȉ',
- 'ȋ' => 'Ȋ',
- 'ȍ' => 'Ȍ',
- 'ȏ' => 'Ȏ',
- 'ȑ' => 'Ȑ',
- 'ȓ' => 'Ȓ',
- 'ȕ' => 'Ȕ',
- 'ȗ' => 'Ȗ',
- 'ș' => 'Ș',
- 'ț' => 'Ț',
- 'ȝ' => 'Ȝ',
- 'ȟ' => 'Ȟ',
- 'ȣ' => 'Ȣ',
- 'ȥ' => 'Ȥ',
- 'ȧ' => 'Ȧ',
- 'ȩ' => 'Ȩ',
- 'ȫ' => 'Ȫ',
- 'ȭ' => 'Ȭ',
- 'ȯ' => 'Ȯ',
- 'ȱ' => 'Ȱ',
- 'ȳ' => 'Ȳ',
- 'ȼ' => 'Ȼ',
- 'ȿ' => 'Ȿ',
- 'ɀ' => 'Ɀ',
- 'ɂ' => 'Ɂ',
- 'ɇ' => 'Ɇ',
- 'ɉ' => 'Ɉ',
- 'ɋ' => 'Ɋ',
- 'ɍ' => 'Ɍ',
- 'ɏ' => 'Ɏ',
- 'ɐ' => 'Ɐ',
- 'ɑ' => 'Ɑ',
- 'ɒ' => 'Ɒ',
- 'ɓ' => 'Ɓ',
- 'ɔ' => 'Ɔ',
- 'ɖ' => 'Ɖ',
- 'ɗ' => 'Ɗ',
- 'ə' => 'Ə',
- 'ɛ' => 'Ɛ',
- 'ɜ' => 'Ɜ',
- 'ɠ' => 'Ɠ',
- 'ɡ' => 'Ɡ',
- 'ɣ' => 'Ɣ',
- 'ɥ' => 'Ɥ',
- 'ɦ' => 'Ɦ',
- 'ɨ' => 'Ɨ',
- 'ɩ' => 'Ɩ',
- 'ɫ' => 'Ɫ',
- 'ɬ' => 'Ɬ',
- 'ɯ' => 'Ɯ',
- 'ɱ' => 'Ɱ',
- 'ɲ' => 'Ɲ',
- 'ɵ' => 'Ɵ',
- 'ɽ' => 'Ɽ',
- 'ʀ' => 'Ʀ',
- 'ʃ' => 'Ʃ',
- 'ʇ' => 'Ʇ',
- 'ʈ' => 'Ʈ',
- 'ʉ' => 'Ʉ',
- 'ʊ' => 'Ʊ',
- 'ʋ' => 'Ʋ',
- 'ʌ' => 'Ʌ',
- 'ʒ' => 'Ʒ',
- 'ʞ' => 'Ʞ',
- 'ͅ' => 'Ι',
- 'ͱ' => 'Ͱ',
- 'ͳ' => 'Ͳ',
- 'ͷ' => 'Ͷ',
- 'ͻ' => 'Ͻ',
- 'ͼ' => 'Ͼ',
- 'ͽ' => 'Ͽ',
- 'ά' => 'Ά',
- 'έ' => 'Έ',
- 'ή' => 'Ή',
- 'ί' => 'Ί',
- 'α' => 'Α',
- 'β' => 'Β',
- 'γ' => 'Γ',
- 'δ' => 'Δ',
- 'ε' => 'Ε',
- 'ζ' => 'Ζ',
- 'η' => 'Η',
- 'θ' => 'Θ',
- 'ι' => 'Ι',
- 'κ' => 'Κ',
- 'λ' => 'Λ',
- 'μ' => 'Μ',
- 'ν' => 'Ν',
- 'ξ' => 'Ξ',
- 'ο' => 'Ο',
- 'π' => 'Π',
- 'ρ' => 'Ρ',
- 'ς' => 'Σ',
- 'σ' => 'Σ',
- 'τ' => 'Τ',
- 'υ' => 'Υ',
- 'φ' => 'Φ',
- 'χ' => 'Χ',
- 'ψ' => 'Ψ',
- 'ω' => 'Ω',
- 'ϊ' => 'Ϊ',
- 'ϋ' => 'Ϋ',
- 'ό' => 'Ό',
- 'ύ' => 'Ύ',
- 'ώ' => 'Ώ',
- 'ϐ' => 'Β',
- 'ϑ' => 'Θ',
- 'ϕ' => 'Φ',
- 'ϖ' => 'Π',
- 'ϗ' => 'Ϗ',
- 'ϙ' => 'Ϙ',
- 'ϛ' => 'Ϛ',
- 'ϝ' => 'Ϝ',
- 'ϟ' => 'Ϟ',
- 'ϡ' => 'Ϡ',
- 'ϣ' => 'Ϣ',
- 'ϥ' => 'Ϥ',
- 'ϧ' => 'Ϧ',
- 'ϩ' => 'Ϩ',
- 'ϫ' => 'Ϫ',
- 'ϭ' => 'Ϭ',
- 'ϯ' => 'Ϯ',
- 'ϰ' => 'Κ',
- 'ϱ' => 'Ρ',
- 'ϲ' => 'Ϲ',
- 'ϳ' => 'Ϳ',
- 'ϵ' => 'Ε',
- 'ϸ' => 'Ϸ',
- 'ϻ' => 'Ϻ',
- 'а' => 'А',
- 'б' => 'Б',
- 'в' => 'В',
- 'г' => 'Г',
- 'д' => 'Д',
- 'е' => 'Е',
- 'ж' => 'Ж',
- 'з' => 'З',
- 'и' => 'И',
- 'й' => 'Й',
- 'к' => 'К',
- 'л' => 'Л',
- 'м' => 'М',
- 'н' => 'Н',
- 'о' => 'О',
- 'п' => 'П',
- 'р' => 'Р',
- 'с' => 'С',
- 'т' => 'Т',
- 'у' => 'У',
- 'ф' => 'Ф',
- 'х' => 'Х',
- 'ц' => 'Ц',
- 'ч' => 'Ч',
- 'ш' => 'Ш',
- 'щ' => 'Щ',
- 'ъ' => 'Ъ',
- 'ы' => 'Ы',
- 'ь' => 'Ь',
- 'э' => 'Э',
- 'ю' => 'Ю',
- 'я' => 'Я',
- 'ѐ' => 'Ѐ',
- 'ё' => 'Ё',
- 'ђ' => 'Ђ',
- 'ѓ' => 'Ѓ',
- 'є' => 'Є',
- 'ѕ' => 'Ѕ',
- 'і' => 'І',
- 'ї' => 'Ї',
- 'ј' => 'Ј',
- 'љ' => 'Љ',
- 'њ' => 'Њ',
- 'ћ' => 'Ћ',
- 'ќ' => 'Ќ',
- 'ѝ' => 'Ѝ',
- 'ў' => 'Ў',
- 'џ' => 'Џ',
- 'ѡ' => 'Ѡ',
- 'ѣ' => 'Ѣ',
- 'ѥ' => 'Ѥ',
- 'ѧ' => 'Ѧ',
- 'ѩ' => 'Ѩ',
- 'ѫ' => 'Ѫ',
- 'ѭ' => 'Ѭ',
- 'ѯ' => 'Ѯ',
- 'ѱ' => 'Ѱ',
- 'ѳ' => 'Ѳ',
- 'ѵ' => 'Ѵ',
- 'ѷ' => 'Ѷ',
- 'ѹ' => 'Ѹ',
- 'ѻ' => 'Ѻ',
- 'ѽ' => 'Ѽ',
- 'ѿ' => 'Ѿ',
- 'ҁ' => 'Ҁ',
- 'ҋ' => 'Ҋ',
- 'ҍ' => 'Ҍ',
- 'ҏ' => 'Ҏ',
- 'ґ' => 'Ґ',
- 'ғ' => 'Ғ',
- 'ҕ' => 'Ҕ',
- 'җ' => 'Җ',
- 'ҙ' => 'Ҙ',
- 'қ' => 'Қ',
- 'ҝ' => 'Ҝ',
- 'ҟ' => 'Ҟ',
- 'ҡ' => 'Ҡ',
- 'ң' => 'Ң',
- 'ҥ' => 'Ҥ',
- 'ҧ' => 'Ҧ',
- 'ҩ' => 'Ҩ',
- 'ҫ' => 'Ҫ',
- 'ҭ' => 'Ҭ',
- 'ү' => 'Ү',
- 'ұ' => 'Ұ',
- 'ҳ' => 'Ҳ',
- 'ҵ' => 'Ҵ',
- 'ҷ' => 'Ҷ',
- 'ҹ' => 'Ҹ',
- 'һ' => 'Һ',
- 'ҽ' => 'Ҽ',
- 'ҿ' => 'Ҿ',
- 'ӂ' => 'Ӂ',
- 'ӄ' => 'Ӄ',
- 'ӆ' => 'Ӆ',
- 'ӈ' => 'Ӈ',
- 'ӊ' => 'Ӊ',
- 'ӌ' => 'Ӌ',
- 'ӎ' => 'Ӎ',
- 'ӏ' => 'Ӏ',
- 'ӑ' => 'Ӑ',
- 'ӓ' => 'Ӓ',
- 'ӕ' => 'Ӕ',
- 'ӗ' => 'Ӗ',
- 'ә' => 'Ә',
- 'ӛ' => 'Ӛ',
- 'ӝ' => 'Ӝ',
- 'ӟ' => 'Ӟ',
- 'ӡ' => 'Ӡ',
- 'ӣ' => 'Ӣ',
- 'ӥ' => 'Ӥ',
- 'ӧ' => 'Ӧ',
- 'ө' => 'Ө',
- 'ӫ' => 'Ӫ',
- 'ӭ' => 'Ӭ',
- 'ӯ' => 'Ӯ',
- 'ӱ' => 'Ӱ',
- 'ӳ' => 'Ӳ',
- 'ӵ' => 'Ӵ',
- 'ӷ' => 'Ӷ',
- 'ӹ' => 'Ӹ',
- 'ӻ' => 'Ӻ',
- 'ӽ' => 'Ӽ',
- 'ӿ' => 'Ӿ',
- 'ԁ' => 'Ԁ',
- 'ԃ' => 'Ԃ',
- 'ԅ' => 'Ԅ',
- 'ԇ' => 'Ԇ',
- 'ԉ' => 'Ԉ',
- 'ԋ' => 'Ԋ',
- 'ԍ' => 'Ԍ',
- 'ԏ' => 'Ԏ',
- 'ԑ' => 'Ԑ',
- 'ԓ' => 'Ԓ',
- 'ԕ' => 'Ԕ',
- 'ԗ' => 'Ԗ',
- 'ԙ' => 'Ԙ',
- 'ԛ' => 'Ԛ',
- 'ԝ' => 'Ԝ',
- 'ԟ' => 'Ԟ',
- 'ԡ' => 'Ԡ',
- 'ԣ' => 'Ԣ',
- 'ԥ' => 'Ԥ',
- 'ԧ' => 'Ԧ',
- 'ԩ' => 'Ԩ',
- 'ԫ' => 'Ԫ',
- 'ԭ' => 'Ԭ',
- 'ԯ' => 'Ԯ',
- 'ա' => 'Ա',
- 'բ' => 'Բ',
- 'գ' => 'Գ',
- 'դ' => 'Դ',
- 'ե' => 'Ե',
- 'զ' => 'Զ',
- 'է' => 'Է',
- 'ը' => 'Ը',
- 'թ' => 'Թ',
- 'ժ' => 'Ժ',
- 'ի' => 'Ի',
- 'լ' => 'Լ',
- 'խ' => 'Խ',
- 'ծ' => 'Ծ',
- 'կ' => 'Կ',
- 'հ' => 'Հ',
- 'ձ' => 'Ձ',
- 'ղ' => 'Ղ',
- 'ճ' => 'Ճ',
- 'մ' => 'Մ',
- 'յ' => 'Յ',
- 'ն' => 'Ն',
- 'շ' => 'Շ',
- 'ո' => 'Ո',
- 'չ' => 'Չ',
- 'պ' => 'Պ',
- 'ջ' => 'Ջ',
- 'ռ' => 'Ռ',
- 'ս' => 'Ս',
- 'վ' => 'Վ',
- 'տ' => 'Տ',
- 'ր' => 'Ր',
- 'ց' => 'Ց',
- 'ւ' => 'Ւ',
- 'փ' => 'Փ',
- 'ք' => 'Ք',
- 'օ' => 'Օ',
- 'ֆ' => 'Ֆ',
- 'ᵹ' => 'Ᵹ',
- 'ᵽ' => 'Ᵽ',
- 'ḁ' => 'Ḁ',
- 'ḃ' => 'Ḃ',
- 'ḅ' => 'Ḅ',
- 'ḇ' => 'Ḇ',
- 'ḉ' => 'Ḉ',
- 'ḋ' => 'Ḋ',
- 'ḍ' => 'Ḍ',
- 'ḏ' => 'Ḏ',
- 'ḑ' => 'Ḑ',
- 'ḓ' => 'Ḓ',
- 'ḕ' => 'Ḕ',
- 'ḗ' => 'Ḗ',
- 'ḙ' => 'Ḙ',
- 'ḛ' => 'Ḛ',
- 'ḝ' => 'Ḝ',
- 'ḟ' => 'Ḟ',
- 'ḡ' => 'Ḡ',
- 'ḣ' => 'Ḣ',
- 'ḥ' => 'Ḥ',
- 'ḧ' => 'Ḧ',
- 'ḩ' => 'Ḩ',
- 'ḫ' => 'Ḫ',
- 'ḭ' => 'Ḭ',
- 'ḯ' => 'Ḯ',
- 'ḱ' => 'Ḱ',
- 'ḳ' => 'Ḳ',
- 'ḵ' => 'Ḵ',
- 'ḷ' => 'Ḷ',
- 'ḹ' => 'Ḹ',
- 'ḻ' => 'Ḻ',
- 'ḽ' => 'Ḽ',
- 'ḿ' => 'Ḿ',
- 'ṁ' => 'Ṁ',
- 'ṃ' => 'Ṃ',
- 'ṅ' => 'Ṅ',
- 'ṇ' => 'Ṇ',
- 'ṉ' => 'Ṉ',
- 'ṋ' => 'Ṋ',
- 'ṍ' => 'Ṍ',
- 'ṏ' => 'Ṏ',
- 'ṑ' => 'Ṑ',
- 'ṓ' => 'Ṓ',
- 'ṕ' => 'Ṕ',
- 'ṗ' => 'Ṗ',
- 'ṙ' => 'Ṙ',
- 'ṛ' => 'Ṛ',
- 'ṝ' => 'Ṝ',
- 'ṟ' => 'Ṟ',
- 'ṡ' => 'Ṡ',
- 'ṣ' => 'Ṣ',
- 'ṥ' => 'Ṥ',
- 'ṧ' => 'Ṧ',
- 'ṩ' => 'Ṩ',
- 'ṫ' => 'Ṫ',
- 'ṭ' => 'Ṭ',
- 'ṯ' => 'Ṯ',
- 'ṱ' => 'Ṱ',
- 'ṳ' => 'Ṳ',
- 'ṵ' => 'Ṵ',
- 'ṷ' => 'Ṷ',
- 'ṹ' => 'Ṹ',
- 'ṻ' => 'Ṻ',
- 'ṽ' => 'Ṽ',
- 'ṿ' => 'Ṿ',
- 'ẁ' => 'Ẁ',
- 'ẃ' => 'Ẃ',
- 'ẅ' => 'Ẅ',
- 'ẇ' => 'Ẇ',
- 'ẉ' => 'Ẉ',
- 'ẋ' => 'Ẋ',
- 'ẍ' => 'Ẍ',
- 'ẏ' => 'Ẏ',
- 'ẑ' => 'Ẑ',
- 'ẓ' => 'Ẓ',
- 'ẕ' => 'Ẕ',
- 'ẛ' => 'Ṡ',
- 'ạ' => 'Ạ',
- 'ả' => 'Ả',
- 'ấ' => 'Ấ',
- 'ầ' => 'Ầ',
- 'ẩ' => 'Ẩ',
- 'ẫ' => 'Ẫ',
- 'ậ' => 'Ậ',
- 'ắ' => 'Ắ',
- 'ằ' => 'Ằ',
- 'ẳ' => 'Ẳ',
- 'ẵ' => 'Ẵ',
- 'ặ' => 'Ặ',
- 'ẹ' => 'Ẹ',
- 'ẻ' => 'Ẻ',
- 'ẽ' => 'Ẽ',
- 'ế' => 'Ế',
- 'ề' => 'Ề',
- 'ể' => 'Ể',
- 'ễ' => 'Ễ',
- 'ệ' => 'Ệ',
- 'ỉ' => 'Ỉ',
- 'ị' => 'Ị',
- 'ọ' => 'Ọ',
- 'ỏ' => 'Ỏ',
- 'ố' => 'Ố',
- 'ồ' => 'Ồ',
- 'ổ' => 'Ổ',
- 'ỗ' => 'Ỗ',
- 'ộ' => 'Ộ',
- 'ớ' => 'Ớ',
- 'ờ' => 'Ờ',
- 'ở' => 'Ở',
- 'ỡ' => 'Ỡ',
- 'ợ' => 'Ợ',
- 'ụ' => 'Ụ',
- 'ủ' => 'Ủ',
- 'ứ' => 'Ứ',
- 'ừ' => 'Ừ',
- 'ử' => 'Ử',
- 'ữ' => 'Ữ',
- 'ự' => 'Ự',
- 'ỳ' => 'Ỳ',
- 'ỵ' => 'Ỵ',
- 'ỷ' => 'Ỷ',
- 'ỹ' => 'Ỹ',
- 'ỻ' => 'Ỻ',
- 'ỽ' => 'Ỽ',
- 'ỿ' => 'Ỿ',
- 'ἀ' => 'Ἀ',
- 'ἁ' => 'Ἁ',
- 'ἂ' => 'Ἂ',
- 'ἃ' => 'Ἃ',
- 'ἄ' => 'Ἄ',
- 'ἅ' => 'Ἅ',
- 'ἆ' => 'Ἆ',
- 'ἇ' => 'Ἇ',
- 'ἐ' => 'Ἐ',
- 'ἑ' => 'Ἑ',
- 'ἒ' => 'Ἒ',
- 'ἓ' => 'Ἓ',
- 'ἔ' => 'Ἔ',
- 'ἕ' => 'Ἕ',
- 'ἠ' => 'Ἠ',
- 'ἡ' => 'Ἡ',
- 'ἢ' => 'Ἢ',
- 'ἣ' => 'Ἣ',
- 'ἤ' => 'Ἤ',
- 'ἥ' => 'Ἥ',
- 'ἦ' => 'Ἦ',
- 'ἧ' => 'Ἧ',
- 'ἰ' => 'Ἰ',
- 'ἱ' => 'Ἱ',
- 'ἲ' => 'Ἲ',
- 'ἳ' => 'Ἳ',
- 'ἴ' => 'Ἴ',
- 'ἵ' => 'Ἵ',
- 'ἶ' => 'Ἶ',
- 'ἷ' => 'Ἷ',
- 'ὀ' => 'Ὀ',
- 'ὁ' => 'Ὁ',
- 'ὂ' => 'Ὂ',
- 'ὃ' => 'Ὃ',
- 'ὄ' => 'Ὄ',
- 'ὅ' => 'Ὅ',
- 'ὑ' => 'Ὑ',
- 'ὓ' => 'Ὓ',
- 'ὕ' => 'Ὕ',
- 'ὗ' => 'Ὗ',
- 'ὠ' => 'Ὠ',
- 'ὡ' => 'Ὡ',
- 'ὢ' => 'Ὢ',
- 'ὣ' => 'Ὣ',
- 'ὤ' => 'Ὤ',
- 'ὥ' => 'Ὥ',
- 'ὦ' => 'Ὦ',
- 'ὧ' => 'Ὧ',
- 'ὰ' => 'Ὰ',
- 'ά' => 'Ά',
- 'ὲ' => 'Ὲ',
- 'έ' => 'Έ',
- 'ὴ' => 'Ὴ',
- 'ή' => 'Ή',
- 'ὶ' => 'Ὶ',
- 'ί' => 'Ί',
- 'ὸ' => 'Ὸ',
- 'ό' => 'Ό',
- 'ὺ' => 'Ὺ',
- 'ύ' => 'Ύ',
- 'ὼ' => 'Ὼ',
- 'ώ' => 'Ώ',
- 'ᾀ' => 'ᾈ',
- 'ᾁ' => 'ᾉ',
- 'ᾂ' => 'ᾊ',
- 'ᾃ' => 'ᾋ',
- 'ᾄ' => 'ᾌ',
- 'ᾅ' => 'ᾍ',
- 'ᾆ' => 'ᾎ',
- 'ᾇ' => 'ᾏ',
- 'ᾐ' => 'ᾘ',
- 'ᾑ' => 'ᾙ',
- 'ᾒ' => 'ᾚ',
- 'ᾓ' => 'ᾛ',
- 'ᾔ' => 'ᾜ',
- 'ᾕ' => 'ᾝ',
- 'ᾖ' => 'ᾞ',
- 'ᾗ' => 'ᾟ',
- 'ᾠ' => 'ᾨ',
- 'ᾡ' => 'ᾩ',
- 'ᾢ' => 'ᾪ',
- 'ᾣ' => 'ᾫ',
- 'ᾤ' => 'ᾬ',
- 'ᾥ' => 'ᾭ',
- 'ᾦ' => 'ᾮ',
- 'ᾧ' => 'ᾯ',
- 'ᾰ' => 'Ᾰ',
- 'ᾱ' => 'Ᾱ',
- 'ᾳ' => 'ᾼ',
- 'ι' => 'Ι',
- 'ῃ' => 'ῌ',
- 'ῐ' => 'Ῐ',
- 'ῑ' => 'Ῑ',
- 'ῠ' => 'Ῠ',
- 'ῡ' => 'Ῡ',
- 'ῥ' => 'Ῥ',
- 'ῳ' => 'ῼ',
- 'ⅎ' => 'Ⅎ',
- 'ⅰ' => 'Ⅰ',
- 'ⅱ' => 'Ⅱ',
- 'ⅲ' => 'Ⅲ',
- 'ⅳ' => 'Ⅳ',
- 'ⅴ' => 'Ⅴ',
- 'ⅵ' => 'Ⅵ',
- 'ⅶ' => 'Ⅶ',
- 'ⅷ' => 'Ⅷ',
- 'ⅸ' => 'Ⅸ',
- 'ⅹ' => 'Ⅹ',
- 'ⅺ' => 'Ⅺ',
- 'ⅻ' => 'Ⅻ',
- 'ⅼ' => 'Ⅼ',
- 'ⅽ' => 'Ⅽ',
- 'ⅾ' => 'Ⅾ',
- 'ⅿ' => 'Ⅿ',
- 'ↄ' => 'Ↄ',
- 'ⓐ' => 'Ⓐ',
- 'ⓑ' => 'Ⓑ',
- 'ⓒ' => 'Ⓒ',
- 'ⓓ' => 'Ⓓ',
- 'ⓔ' => 'Ⓔ',
- 'ⓕ' => 'Ⓕ',
- 'ⓖ' => 'Ⓖ',
- 'ⓗ' => 'Ⓗ',
- 'ⓘ' => 'Ⓘ',
- 'ⓙ' => 'Ⓙ',
- 'ⓚ' => 'Ⓚ',
- 'ⓛ' => 'Ⓛ',
- 'ⓜ' => 'Ⓜ',
- 'ⓝ' => 'Ⓝ',
- 'ⓞ' => 'Ⓞ',
- 'ⓟ' => 'Ⓟ',
- 'ⓠ' => 'Ⓠ',
- 'ⓡ' => 'Ⓡ',
- 'ⓢ' => 'Ⓢ',
- 'ⓣ' => 'Ⓣ',
- 'ⓤ' => 'Ⓤ',
- 'ⓥ' => 'Ⓥ',
- 'ⓦ' => 'Ⓦ',
- 'ⓧ' => 'Ⓧ',
- 'ⓨ' => 'Ⓨ',
- 'ⓩ' => 'Ⓩ',
- 'ⰰ' => 'Ⰰ',
- 'ⰱ' => 'Ⰱ',
- 'ⰲ' => 'Ⰲ',
- 'ⰳ' => 'Ⰳ',
- 'ⰴ' => 'Ⰴ',
- 'ⰵ' => 'Ⰵ',
- 'ⰶ' => 'Ⰶ',
- 'ⰷ' => 'Ⰷ',
- 'ⰸ' => 'Ⰸ',
- 'ⰹ' => 'Ⰹ',
- 'ⰺ' => 'Ⰺ',
- 'ⰻ' => 'Ⰻ',
- 'ⰼ' => 'Ⰼ',
- 'ⰽ' => 'Ⰽ',
- 'ⰾ' => 'Ⰾ',
- 'ⰿ' => 'Ⰿ',
- 'ⱀ' => 'Ⱀ',
- 'ⱁ' => 'Ⱁ',
- 'ⱂ' => 'Ⱂ',
- 'ⱃ' => 'Ⱃ',
- 'ⱄ' => 'Ⱄ',
- 'ⱅ' => 'Ⱅ',
- 'ⱆ' => 'Ⱆ',
- 'ⱇ' => 'Ⱇ',
- 'ⱈ' => 'Ⱈ',
- 'ⱉ' => 'Ⱉ',
- 'ⱊ' => 'Ⱊ',
- 'ⱋ' => 'Ⱋ',
- 'ⱌ' => 'Ⱌ',
- 'ⱍ' => 'Ⱍ',
- 'ⱎ' => 'Ⱎ',
- 'ⱏ' => 'Ⱏ',
- 'ⱐ' => 'Ⱐ',
- 'ⱑ' => 'Ⱑ',
- 'ⱒ' => 'Ⱒ',
- 'ⱓ' => 'Ⱓ',
- 'ⱔ' => 'Ⱔ',
- 'ⱕ' => 'Ⱕ',
- 'ⱖ' => 'Ⱖ',
- 'ⱗ' => 'Ⱗ',
- 'ⱘ' => 'Ⱘ',
- 'ⱙ' => 'Ⱙ',
- 'ⱚ' => 'Ⱚ',
- 'ⱛ' => 'Ⱛ',
- 'ⱜ' => 'Ⱜ',
- 'ⱝ' => 'Ⱝ',
- 'ⱞ' => 'Ⱞ',
- 'ⱡ' => 'Ⱡ',
- 'ⱥ' => 'Ⱥ',
- 'ⱦ' => 'Ⱦ',
- 'ⱨ' => 'Ⱨ',
- 'ⱪ' => 'Ⱪ',
- 'ⱬ' => 'Ⱬ',
- 'ⱳ' => 'Ⱳ',
- 'ⱶ' => 'Ⱶ',
- 'ⲁ' => 'Ⲁ',
- 'ⲃ' => 'Ⲃ',
- 'ⲅ' => 'Ⲅ',
- 'ⲇ' => 'Ⲇ',
- 'ⲉ' => 'Ⲉ',
- 'ⲋ' => 'Ⲋ',
- 'ⲍ' => 'Ⲍ',
- 'ⲏ' => 'Ⲏ',
- 'ⲑ' => 'Ⲑ',
- 'ⲓ' => 'Ⲓ',
- 'ⲕ' => 'Ⲕ',
- 'ⲗ' => 'Ⲗ',
- 'ⲙ' => 'Ⲙ',
- 'ⲛ' => 'Ⲛ',
- 'ⲝ' => 'Ⲝ',
- 'ⲟ' => 'Ⲟ',
- 'ⲡ' => 'Ⲡ',
- 'ⲣ' => 'Ⲣ',
- 'ⲥ' => 'Ⲥ',
- 'ⲧ' => 'Ⲧ',
- 'ⲩ' => 'Ⲩ',
- 'ⲫ' => 'Ⲫ',
- 'ⲭ' => 'Ⲭ',
- 'ⲯ' => 'Ⲯ',
- 'ⲱ' => 'Ⲱ',
- 'ⲳ' => 'Ⲳ',
- 'ⲵ' => 'Ⲵ',
- 'ⲷ' => 'Ⲷ',
- 'ⲹ' => 'Ⲹ',
- 'ⲻ' => 'Ⲻ',
- 'ⲽ' => 'Ⲽ',
- 'ⲿ' => 'Ⲿ',
- 'ⳁ' => 'Ⳁ',
- 'ⳃ' => 'Ⳃ',
- 'ⳅ' => 'Ⳅ',
- 'ⳇ' => 'Ⳇ',
- 'ⳉ' => 'Ⳉ',
- 'ⳋ' => 'Ⳋ',
- 'ⳍ' => 'Ⳍ',
- 'ⳏ' => 'Ⳏ',
- 'ⳑ' => 'Ⳑ',
- 'ⳓ' => 'Ⳓ',
- 'ⳕ' => 'Ⳕ',
- 'ⳗ' => 'Ⳗ',
- 'ⳙ' => 'Ⳙ',
- 'ⳛ' => 'Ⳛ',
- 'ⳝ' => 'Ⳝ',
- 'ⳟ' => 'Ⳟ',
- 'ⳡ' => 'Ⳡ',
- 'ⳣ' => 'Ⳣ',
- 'ⳬ' => 'Ⳬ',
- 'ⳮ' => 'Ⳮ',
- 'ⳳ' => 'Ⳳ',
- 'ⴀ' => 'Ⴀ',
- 'ⴁ' => 'Ⴁ',
- 'ⴂ' => 'Ⴂ',
- 'ⴃ' => 'Ⴃ',
- 'ⴄ' => 'Ⴄ',
- 'ⴅ' => 'Ⴅ',
- 'ⴆ' => 'Ⴆ',
- 'ⴇ' => 'Ⴇ',
- 'ⴈ' => 'Ⴈ',
- 'ⴉ' => 'Ⴉ',
- 'ⴊ' => 'Ⴊ',
- 'ⴋ' => 'Ⴋ',
- 'ⴌ' => 'Ⴌ',
- 'ⴍ' => 'Ⴍ',
- 'ⴎ' => 'Ⴎ',
- 'ⴏ' => 'Ⴏ',
- 'ⴐ' => 'Ⴐ',
- 'ⴑ' => 'Ⴑ',
- 'ⴒ' => 'Ⴒ',
- 'ⴓ' => 'Ⴓ',
- 'ⴔ' => 'Ⴔ',
- 'ⴕ' => 'Ⴕ',
- 'ⴖ' => 'Ⴖ',
- 'ⴗ' => 'Ⴗ',
- 'ⴘ' => 'Ⴘ',
- 'ⴙ' => 'Ⴙ',
- 'ⴚ' => 'Ⴚ',
- 'ⴛ' => 'Ⴛ',
- 'ⴜ' => 'Ⴜ',
- 'ⴝ' => 'Ⴝ',
- 'ⴞ' => 'Ⴞ',
- 'ⴟ' => 'Ⴟ',
- 'ⴠ' => 'Ⴠ',
- 'ⴡ' => 'Ⴡ',
- 'ⴢ' => 'Ⴢ',
- 'ⴣ' => 'Ⴣ',
- 'ⴤ' => 'Ⴤ',
- 'ⴥ' => 'Ⴥ',
- 'ⴧ' => 'Ⴧ',
- 'ⴭ' => 'Ⴭ',
- 'ꙁ' => 'Ꙁ',
- 'ꙃ' => 'Ꙃ',
- 'ꙅ' => 'Ꙅ',
- 'ꙇ' => 'Ꙇ',
- 'ꙉ' => 'Ꙉ',
- 'ꙋ' => 'Ꙋ',
- 'ꙍ' => 'Ꙍ',
- 'ꙏ' => 'Ꙏ',
- 'ꙑ' => 'Ꙑ',
- 'ꙓ' => 'Ꙓ',
- 'ꙕ' => 'Ꙕ',
- 'ꙗ' => 'Ꙗ',
- 'ꙙ' => 'Ꙙ',
- 'ꙛ' => 'Ꙛ',
- 'ꙝ' => 'Ꙝ',
- 'ꙟ' => 'Ꙟ',
- 'ꙡ' => 'Ꙡ',
- 'ꙣ' => 'Ꙣ',
- 'ꙥ' => 'Ꙥ',
- 'ꙧ' => 'Ꙧ',
- 'ꙩ' => 'Ꙩ',
- 'ꙫ' => 'Ꙫ',
- 'ꙭ' => 'Ꙭ',
- 'ꚁ' => 'Ꚁ',
- 'ꚃ' => 'Ꚃ',
- 'ꚅ' => 'Ꚅ',
- 'ꚇ' => 'Ꚇ',
- 'ꚉ' => 'Ꚉ',
- 'ꚋ' => 'Ꚋ',
- 'ꚍ' => 'Ꚍ',
- 'ꚏ' => 'Ꚏ',
- 'ꚑ' => 'Ꚑ',
- 'ꚓ' => 'Ꚓ',
- 'ꚕ' => 'Ꚕ',
- 'ꚗ' => 'Ꚗ',
- 'ꚙ' => 'Ꚙ',
- 'ꚛ' => 'Ꚛ',
- 'ꜣ' => 'Ꜣ',
- 'ꜥ' => 'Ꜥ',
- 'ꜧ' => 'Ꜧ',
- 'ꜩ' => 'Ꜩ',
- 'ꜫ' => 'Ꜫ',
- 'ꜭ' => 'Ꜭ',
- 'ꜯ' => 'Ꜯ',
- 'ꜳ' => 'Ꜳ',
- 'ꜵ' => 'Ꜵ',
- 'ꜷ' => 'Ꜷ',
- 'ꜹ' => 'Ꜹ',
- 'ꜻ' => 'Ꜻ',
- 'ꜽ' => 'Ꜽ',
- 'ꜿ' => 'Ꜿ',
- 'ꝁ' => 'Ꝁ',
- 'ꝃ' => 'Ꝃ',
- 'ꝅ' => 'Ꝅ',
- 'ꝇ' => 'Ꝇ',
- 'ꝉ' => 'Ꝉ',
- 'ꝋ' => 'Ꝋ',
- 'ꝍ' => 'Ꝍ',
- 'ꝏ' => 'Ꝏ',
- 'ꝑ' => 'Ꝑ',
- 'ꝓ' => 'Ꝓ',
- 'ꝕ' => 'Ꝕ',
- 'ꝗ' => 'Ꝗ',
- 'ꝙ' => 'Ꝙ',
- 'ꝛ' => 'Ꝛ',
- 'ꝝ' => 'Ꝝ',
- 'ꝟ' => 'Ꝟ',
- 'ꝡ' => 'Ꝡ',
- 'ꝣ' => 'Ꝣ',
- 'ꝥ' => 'Ꝥ',
- 'ꝧ' => 'Ꝧ',
- 'ꝩ' => 'Ꝩ',
- 'ꝫ' => 'Ꝫ',
- 'ꝭ' => 'Ꝭ',
- 'ꝯ' => 'Ꝯ',
- 'ꝺ' => 'Ꝺ',
- 'ꝼ' => 'Ꝼ',
- 'ꝿ' => 'Ꝿ',
- 'ꞁ' => 'Ꞁ',
- 'ꞃ' => 'Ꞃ',
- 'ꞅ' => 'Ꞅ',
- 'ꞇ' => 'Ꞇ',
- 'ꞌ' => 'Ꞌ',
- 'ꞑ' => 'Ꞑ',
- 'ꞓ' => 'Ꞓ',
- 'ꞗ' => 'Ꞗ',
- 'ꞙ' => 'Ꞙ',
- 'ꞛ' => 'Ꞛ',
- 'ꞝ' => 'Ꞝ',
- 'ꞟ' => 'Ꞟ',
- 'ꞡ' => 'Ꞡ',
- 'ꞣ' => 'Ꞣ',
- 'ꞥ' => 'Ꞥ',
- 'ꞧ' => 'Ꞧ',
- 'ꞩ' => 'Ꞩ',
- 'a' => 'A',
- 'b' => 'B',
- 'c' => 'C',
- 'd' => 'D',
- 'e' => 'E',
- 'f' => 'F',
- 'g' => 'G',
- 'h' => 'H',
- 'i' => 'I',
- 'j' => 'J',
- 'k' => 'K',
- 'l' => 'L',
- 'm' => 'M',
- 'n' => 'N',
- 'o' => 'O',
- 'p' => 'P',
- 'q' => 'Q',
- 'r' => 'R',
- 's' => 'S',
- 't' => 'T',
- 'u' => 'U',
- 'v' => 'V',
- 'w' => 'W',
- 'x' => 'X',
- 'y' => 'Y',
- 'z' => 'Z',
- '𐐨' => '𐐀',
- '𐐩' => '𐐁',
- '𐐪' => '𐐂',
- '𐐫' => '𐐃',
- '𐐬' => '𐐄',
- '𐐭' => '𐐅',
- '𐐮' => '𐐆',
- '𐐯' => '𐐇',
- '𐐰' => '𐐈',
- '𐐱' => '𐐉',
- '𐐲' => '𐐊',
- '𐐳' => '𐐋',
- '𐐴' => '𐐌',
- '𐐵' => '𐐍',
- '𐐶' => '𐐎',
- '𐐷' => '𐐏',
- '𐐸' => '𐐐',
- '𐐹' => '𐐑',
- '𐐺' => '𐐒',
- '𐐻' => '𐐓',
- '𐐼' => '𐐔',
- '𐐽' => '𐐕',
- '𐐾' => '𐐖',
- '𐐿' => '𐐗',
- '𐑀' => '𐐘',
- '𐑁' => '𐐙',
- '𐑂' => '𐐚',
- '𐑃' => '𐐛',
- '𐑄' => '𐐜',
- '𐑅' => '𐐝',
- '𐑆' => '𐐞',
- '𐑇' => '𐐟',
- '𐑈' => '𐐠',
- '𐑉' => '𐐡',
- '𐑊' => '𐐢',
- '𐑋' => '𐐣',
- '𐑌' => '𐐤',
- '𐑍' => '𐐥',
- '𐑎' => '𐐦',
- '𐑏' => '𐐧',
- '𑣀' => '𑢠',
- '𑣁' => '𑢡',
- '𑣂' => '𑢢',
- '𑣃' => '𑢣',
- '𑣄' => '𑢤',
- '𑣅' => '𑢥',
- '𑣆' => '𑢦',
- '𑣇' => '𑢧',
- '𑣈' => '𑢨',
- '𑣉' => '𑢩',
- '𑣊' => '𑢪',
- '𑣋' => '𑢫',
- '𑣌' => '𑢬',
- '𑣍' => '𑢭',
- '𑣎' => '𑢮',
- '𑣏' => '𑢯',
- '𑣐' => '𑢰',
- '𑣑' => '𑢱',
- '𑣒' => '𑢲',
- '𑣓' => '𑢳',
- '𑣔' => '𑢴',
- '𑣕' => '𑢵',
- '𑣖' => '𑢶',
- '𑣗' => '𑢷',
- '𑣘' => '𑢸',
- '𑣙' => '𑢹',
- '𑣚' => '𑢺',
- '𑣛' => '𑢻',
- '𑣜' => '𑢼',
- '𑣝' => '𑢽',
- '𑣞' => '𑢾',
- '𑣟' => '𑢿',
-);
diff --git a/www/wiki/vendor/symfony/polyfill-mbstring/bootstrap.php b/www/wiki/vendor/symfony/polyfill-mbstring/bootstrap.php
deleted file mode 100644
index 2fdcc5a6..00000000
--- a/www/wiki/vendor/symfony/polyfill-mbstring/bootstrap.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use Symfony\Polyfill\Mbstring as p;
-
-if (!function_exists('mb_strlen')) {
- define('MB_CASE_UPPER', 0);
- define('MB_CASE_LOWER', 1);
- define('MB_CASE_TITLE', 2);
-
- function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); }
- function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); }
- function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); }
- function mb_decode_numericentity($s, $convmap, $enc = null) { return p\Mbstring::mb_decode_numericentity($s, $convmap, $enc); }
- function mb_encode_numericentity($s, $convmap, $enc = null, $is_hex = false) { return p\Mbstring::mb_encode_numericentity($s, $convmap, $enc, $is_hex); }
- function mb_convert_case($s, $mode, $enc = null) { return p\Mbstring::mb_convert_case($s, $mode, $enc); }
- function mb_internal_encoding($enc = null) { return p\Mbstring::mb_internal_encoding($enc); }
- function mb_language($lang = null) { return p\Mbstring::mb_language($lang); }
- function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
- function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
- function mb_check_encoding($var = null, $encoding = null) { return p\Mbstring::mb_check_encoding($var, $encoding); }
- function mb_detect_encoding($str, $encodingList = null, $strict = false) { return p\Mbstring::mb_detect_encoding($str, $encodingList, $strict); }
- function mb_detect_order($encodingList = null) { return p\Mbstring::mb_detect_order($encodingList); }
- function mb_parse_str($s, &$result = array()) { parse_str($s, $result); }
- function mb_strlen($s, $enc = null) { return p\Mbstring::mb_strlen($s, $enc); }
- function mb_strpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strpos($s, $needle, $offset, $enc); }
- function mb_strtolower($s, $enc = null) { return p\Mbstring::mb_strtolower($s, $enc); }
- function mb_strtoupper($s, $enc = null) { return p\Mbstring::mb_strtoupper($s, $enc); }
- function mb_substitute_character($char = null) { return p\Mbstring::mb_substitute_character($char); }
- function mb_substr($s, $start, $length = 2147483647, $enc = null) { return p\Mbstring::mb_substr($s, $start, $length, $enc); }
- function mb_stripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_stripos($s, $needle, $offset, $enc); }
- function mb_stristr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_stristr($s, $needle, $part, $enc); }
- function mb_strrchr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); }
- function mb_strrichr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrichr($s, $needle, $part, $enc); }
- function mb_strripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strripos($s, $needle, $offset, $enc); }
- function mb_strrpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strrpos($s, $needle, $offset, $enc); }
- function mb_strstr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strstr($s, $needle, $part, $enc); }
- function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
- function mb_http_output($enc = null) { return p\Mbstring::mb_http_output($enc); }
- function mb_strwidth($s, $enc = null) { return p\Mbstring::mb_strwidth($s, $enc); }
- function mb_substr_count($haystack, $needle, $enc = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $enc); }
- function mb_output_handler($contents, $status) { return p\Mbstring::mb_output_handler($contents, $status); }
- function mb_http_input($type = '') { return p\Mbstring::mb_http_input($type); }
- function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) { return p\Mbstring::mb_convert_variables($toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f); }
-}
-if (!function_exists('mb_chr')) {
- function mb_ord($s, $enc = null) { return p\Mbstring::mb_ord($s, $enc); }
- function mb_chr($code, $enc = null) { return p\Mbstring::mb_chr($code, $enc); }
- function mb_scrub($s, $enc = null) { $enc = null === $enc ? mb_internal_encoding() : $enc; return mb_convert_encoding($s, $enc, $enc); }
-}
diff --git a/www/wiki/vendor/symfony/polyfill-mbstring/composer.json b/www/wiki/vendor/symfony/polyfill-mbstring/composer.json
deleted file mode 100644
index 50ea12f1..00000000
--- a/www/wiki/vendor/symfony/polyfill-mbstring/composer.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "symfony/polyfill-mbstring",
- "type": "library",
- "description": "Symfony polyfill for the Mbstring extension",
- "keywords": ["polyfill", "shim", "compatibility", "portable", "mbstring"],
- "homepage": "https://symfony.com",
- "license": "MIT",
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "require": {
- "php": ">=5.3.3"
- },
- "autoload": {
- "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" },
- "files": [ "bootstrap.php" ]
- },
- "suggest": {
- "ext-mbstring": "For best performance"
- },
- "minimum-stability": "dev",
- "extra": {
- "branch-alias": {
- "dev-master": "1.9-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/.gitignore b/www/wiki/vendor/symfony/var-dumper/.gitignore
deleted file mode 100644
index 5414c2c6..00000000
--- a/www/wiki/vendor/symfony/var-dumper/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-composer.lock
-phpunit.xml
-vendor/
diff --git a/www/wiki/vendor/symfony/var-dumper/CHANGELOG.md b/www/wiki/vendor/symfony/var-dumper/CHANGELOG.md
deleted file mode 100644
index 2d44cad2..00000000
--- a/www/wiki/vendor/symfony/var-dumper/CHANGELOG.md
+++ /dev/null
@@ -1,13 +0,0 @@
-CHANGELOG
-=========
-
-3.4.0
------
-
- * added `AbstractCloner::setMinDepth()` function to ensure minimum tree depth
- * deprecated `MongoCaster`
-
-2.7.0
------
-
- * deprecated Cloner\Data::getLimitedClone(). Use withMaxDepth, withMaxItemsPerDepth or withRefHandles instead.
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/AmqpCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/AmqpCaster.php
deleted file mode 100644
index 19bdc295..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/AmqpCaster.php
+++ /dev/null
@@ -1,210 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts Amqp related classes to array representation.
- *
- * @author Grégoire Pineau <lyrixx@lyrixx.info>
- */
-class AmqpCaster
-{
- private static $flags = [
- AMQP_DURABLE => 'AMQP_DURABLE',
- AMQP_PASSIVE => 'AMQP_PASSIVE',
- AMQP_EXCLUSIVE => 'AMQP_EXCLUSIVE',
- AMQP_AUTODELETE => 'AMQP_AUTODELETE',
- AMQP_INTERNAL => 'AMQP_INTERNAL',
- AMQP_NOLOCAL => 'AMQP_NOLOCAL',
- AMQP_AUTOACK => 'AMQP_AUTOACK',
- AMQP_IFEMPTY => 'AMQP_IFEMPTY',
- AMQP_IFUNUSED => 'AMQP_IFUNUSED',
- AMQP_MANDATORY => 'AMQP_MANDATORY',
- AMQP_IMMEDIATE => 'AMQP_IMMEDIATE',
- AMQP_MULTIPLE => 'AMQP_MULTIPLE',
- AMQP_NOWAIT => 'AMQP_NOWAIT',
- AMQP_REQUEUE => 'AMQP_REQUEUE',
- ];
-
- private static $exchangeTypes = [
- AMQP_EX_TYPE_DIRECT => 'AMQP_EX_TYPE_DIRECT',
- AMQP_EX_TYPE_FANOUT => 'AMQP_EX_TYPE_FANOUT',
- AMQP_EX_TYPE_TOPIC => 'AMQP_EX_TYPE_TOPIC',
- AMQP_EX_TYPE_HEADERS => 'AMQP_EX_TYPE_HEADERS',
- ];
-
- public static function castConnection(\AMQPConnection $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- $a += [
- $prefix.'is_connected' => $c->isConnected(),
- ];
-
- // Recent version of the extension already expose private properties
- if (isset($a["\x00AMQPConnection\x00login"])) {
- return $a;
- }
-
- // BC layer in the amqp lib
- if (method_exists($c, 'getReadTimeout')) {
- $timeout = $c->getReadTimeout();
- } else {
- $timeout = $c->getTimeout();
- }
-
- $a += [
- $prefix.'is_connected' => $c->isConnected(),
- $prefix.'login' => $c->getLogin(),
- $prefix.'password' => $c->getPassword(),
- $prefix.'host' => $c->getHost(),
- $prefix.'vhost' => $c->getVhost(),
- $prefix.'port' => $c->getPort(),
- $prefix.'read_timeout' => $timeout,
- ];
-
- return $a;
- }
-
- public static function castChannel(\AMQPChannel $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- $a += [
- $prefix.'is_connected' => $c->isConnected(),
- $prefix.'channel_id' => $c->getChannelId(),
- ];
-
- // Recent version of the extension already expose private properties
- if (isset($a["\x00AMQPChannel\x00connection"])) {
- return $a;
- }
-
- $a += [
- $prefix.'connection' => $c->getConnection(),
- $prefix.'prefetch_size' => $c->getPrefetchSize(),
- $prefix.'prefetch_count' => $c->getPrefetchCount(),
- ];
-
- return $a;
- }
-
- public static function castQueue(\AMQPQueue $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- $a += [
- $prefix.'flags' => self::extractFlags($c->getFlags()),
- ];
-
- // Recent version of the extension already expose private properties
- if (isset($a["\x00AMQPQueue\x00name"])) {
- return $a;
- }
-
- $a += [
- $prefix.'connection' => $c->getConnection(),
- $prefix.'channel' => $c->getChannel(),
- $prefix.'name' => $c->getName(),
- $prefix.'arguments' => $c->getArguments(),
- ];
-
- return $a;
- }
-
- public static function castExchange(\AMQPExchange $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- $a += [
- $prefix.'flags' => self::extractFlags($c->getFlags()),
- ];
-
- $type = isset(self::$exchangeTypes[$c->getType()]) ? new ConstStub(self::$exchangeTypes[$c->getType()], $c->getType()) : $c->getType();
-
- // Recent version of the extension already expose private properties
- if (isset($a["\x00AMQPExchange\x00name"])) {
- $a["\x00AMQPExchange\x00type"] = $type;
-
- return $a;
- }
-
- $a += [
- $prefix.'connection' => $c->getConnection(),
- $prefix.'channel' => $c->getChannel(),
- $prefix.'name' => $c->getName(),
- $prefix.'type' => $type,
- $prefix.'arguments' => $c->getArguments(),
- ];
-
- return $a;
- }
-
- public static function castEnvelope(\AMQPEnvelope $c, array $a, Stub $stub, $isNested, $filter = 0)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- $deliveryMode = new ConstStub($c->getDeliveryMode().(2 === $c->getDeliveryMode() ? ' (persistent)' : ' (non-persistent)'), $c->getDeliveryMode());
-
- // Recent version of the extension already expose private properties
- if (isset($a["\x00AMQPEnvelope\x00body"])) {
- $a["\0AMQPEnvelope\0delivery_mode"] = $deliveryMode;
-
- return $a;
- }
-
- if (!($filter & Caster::EXCLUDE_VERBOSE)) {
- $a += [$prefix.'body' => $c->getBody()];
- }
-
- $a += [
- $prefix.'delivery_tag' => $c->getDeliveryTag(),
- $prefix.'is_redelivery' => $c->isRedelivery(),
- $prefix.'exchange_name' => $c->getExchangeName(),
- $prefix.'routing_key' => $c->getRoutingKey(),
- $prefix.'content_type' => $c->getContentType(),
- $prefix.'content_encoding' => $c->getContentEncoding(),
- $prefix.'headers' => $c->getHeaders(),
- $prefix.'delivery_mode' => $deliveryMode,
- $prefix.'priority' => $c->getPriority(),
- $prefix.'correlation_id' => $c->getCorrelationId(),
- $prefix.'reply_to' => $c->getReplyTo(),
- $prefix.'expiration' => $c->getExpiration(),
- $prefix.'message_id' => $c->getMessageId(),
- $prefix.'timestamp' => $c->getTimeStamp(),
- $prefix.'type' => $c->getType(),
- $prefix.'user_id' => $c->getUserId(),
- $prefix.'app_id' => $c->getAppId(),
- ];
-
- return $a;
- }
-
- private static function extractFlags($flags)
- {
- $flagsArray = [];
-
- foreach (self::$flags as $value => $name) {
- if ($flags & $value) {
- $flagsArray[] = $name;
- }
- }
-
- if (!$flagsArray) {
- $flagsArray = ['AMQP_NOPARAM'];
- }
-
- return new ConstStub(implode('|', $flagsArray), $flags);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/ArgsStub.php b/www/wiki/vendor/symfony/var-dumper/Caster/ArgsStub.php
deleted file mode 100644
index 081fb47e..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/ArgsStub.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Represents a list of function arguments.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class ArgsStub extends EnumStub
-{
- private static $parameters = [];
-
- public function __construct(array $args, $function, $class)
- {
- list($variadic, $params) = self::getParameters($function, $class);
-
- $values = [];
- foreach ($args as $k => $v) {
- $values[$k] = !is_scalar($v) && !$v instanceof Stub ? new CutStub($v) : $v;
- }
- if (null === $params) {
- parent::__construct($values, false);
-
- return;
- }
- if (\count($values) < \count($params)) {
- $params = \array_slice($params, 0, \count($values));
- } elseif (\count($values) > \count($params)) {
- $values[] = new EnumStub(array_splice($values, \count($params)), false);
- $params[] = $variadic;
- }
- if (['...'] === $params) {
- $this->dumpKeys = false;
- $this->value = $values[0]->value;
- } else {
- $this->value = array_combine($params, $values);
- }
- }
-
- private static function getParameters($function, $class)
- {
- if (isset(self::$parameters[$k = $class.'::'.$function])) {
- return self::$parameters[$k];
- }
-
- try {
- $r = null !== $class ? new \ReflectionMethod($class, $function) : new \ReflectionFunction($function);
- } catch (\ReflectionException $e) {
- return [null, null];
- }
-
- $variadic = '...';
- $params = [];
- foreach ($r->getParameters() as $v) {
- $k = '$'.$v->name;
- if ($v->isPassedByReference()) {
- $k = '&'.$k;
- }
- if (method_exists($v, 'isVariadic') && $v->isVariadic()) {
- $variadic .= $k;
- } else {
- $params[] = $k;
- }
- }
-
- return self::$parameters[$k] = [$variadic, $params];
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/Caster.php b/www/wiki/vendor/symfony/var-dumper/Caster/Caster.php
deleted file mode 100644
index 93d0ce2b..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/Caster.php
+++ /dev/null
@@ -1,162 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Helper for filtering out properties in casters.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- *
- * @final
- */
-class Caster
-{
- const EXCLUDE_VERBOSE = 1;
- const EXCLUDE_VIRTUAL = 2;
- const EXCLUDE_DYNAMIC = 4;
- const EXCLUDE_PUBLIC = 8;
- const EXCLUDE_PROTECTED = 16;
- const EXCLUDE_PRIVATE = 32;
- const EXCLUDE_NULL = 64;
- const EXCLUDE_EMPTY = 128;
- const EXCLUDE_NOT_IMPORTANT = 256;
- const EXCLUDE_STRICT = 512;
-
- const PREFIX_VIRTUAL = "\0~\0";
- const PREFIX_DYNAMIC = "\0+\0";
- const PREFIX_PROTECTED = "\0*\0";
-
- /**
- * Casts objects to arrays and adds the dynamic property prefix.
- *
- * @param object $obj The object to cast
- * @param string $class The class of the object
- * @param bool $hasDebugInfo Whether the __debugInfo method exists on $obj or not
- *
- * @return array The array-cast of the object, with prefixed dynamic properties
- */
- public static function castObject($obj, $class, $hasDebugInfo = false)
- {
- if ($class instanceof \ReflectionClass) {
- @trigger_error(sprintf('Passing a ReflectionClass to "%s()" is deprecated since Symfony 3.3 and will be unsupported in 4.0. Pass the class name as string instead.', __METHOD__), E_USER_DEPRECATED);
- $hasDebugInfo = $class->hasMethod('__debugInfo');
- $class = $class->name;
- }
- if ($hasDebugInfo) {
- $a = $obj->__debugInfo();
- } elseif ($obj instanceof \Closure) {
- $a = [];
- } else {
- $a = (array) $obj;
- }
- if ($obj instanceof \__PHP_Incomplete_Class) {
- return $a;
- }
-
- if ($a) {
- static $publicProperties = [];
-
- $i = 0;
- $prefixedKeys = [];
- foreach ($a as $k => $v) {
- if (isset($k[0]) ? "\0" !== $k[0] : \PHP_VERSION_ID >= 70200) {
- if (!isset($publicProperties[$class])) {
- foreach (get_class_vars($class) as $prop => $v) {
- $publicProperties[$class][$prop] = true;
- }
- }
- if (!isset($publicProperties[$class][$k])) {
- $prefixedKeys[$i] = self::PREFIX_DYNAMIC.$k;
- }
- } elseif (isset($k[16]) && "\0" === $k[16] && 0 === strpos($k, "\0class@anonymous\0")) {
- $prefixedKeys[$i] = "\0".get_parent_class($class).'@anonymous'.strrchr($k, "\0");
- }
- ++$i;
- }
- if ($prefixedKeys) {
- $keys = array_keys($a);
- foreach ($prefixedKeys as $i => $k) {
- $keys[$i] = $k;
- }
- $a = array_combine($keys, $a);
- }
- }
-
- return $a;
- }
-
- /**
- * Filters out the specified properties.
- *
- * By default, a single match in the $filter bit field filters properties out, following an "or" logic.
- * When EXCLUDE_STRICT is set, an "and" logic is applied: all bits must match for a property to be removed.
- *
- * @param array $a The array containing the properties to filter
- * @param int $filter A bit field of Caster::EXCLUDE_* constants specifying which properties to filter out
- * @param string[] $listedProperties List of properties to exclude when Caster::EXCLUDE_VERBOSE is set, and to preserve when Caster::EXCLUDE_NOT_IMPORTANT is set
- * @param int &$count Set to the number of removed properties
- *
- * @return array The filtered array
- */
- public static function filter(array $a, $filter, array $listedProperties = [], &$count = 0)
- {
- $count = 0;
-
- foreach ($a as $k => $v) {
- $type = self::EXCLUDE_STRICT & $filter;
-
- if (null === $v) {
- $type |= self::EXCLUDE_NULL & $filter;
- $type |= self::EXCLUDE_EMPTY & $filter;
- } elseif (false === $v || '' === $v || '0' === $v || 0 === $v || 0.0 === $v || [] === $v) {
- $type |= self::EXCLUDE_EMPTY & $filter;
- }
- if ((self::EXCLUDE_NOT_IMPORTANT & $filter) && !\in_array($k, $listedProperties, true)) {
- $type |= self::EXCLUDE_NOT_IMPORTANT;
- }
- if ((self::EXCLUDE_VERBOSE & $filter) && \in_array($k, $listedProperties, true)) {
- $type |= self::EXCLUDE_VERBOSE;
- }
-
- if (!isset($k[1]) || "\0" !== $k[0]) {
- $type |= self::EXCLUDE_PUBLIC & $filter;
- } elseif ('~' === $k[1]) {
- $type |= self::EXCLUDE_VIRTUAL & $filter;
- } elseif ('+' === $k[1]) {
- $type |= self::EXCLUDE_DYNAMIC & $filter;
- } elseif ('*' === $k[1]) {
- $type |= self::EXCLUDE_PROTECTED & $filter;
- } else {
- $type |= self::EXCLUDE_PRIVATE & $filter;
- }
-
- if ((self::EXCLUDE_STRICT & $filter) ? $type === $filter : $type) {
- unset($a[$k]);
- ++$count;
- }
- }
-
- return $a;
- }
-
- public static function castPhpIncompleteClass(\__PHP_Incomplete_Class $c, array $a, Stub $stub, $isNested)
- {
- if (isset($a['__PHP_Incomplete_Class_Name'])) {
- $stub->class .= '('.$a['__PHP_Incomplete_Class_Name'].')';
- unset($a['__PHP_Incomplete_Class_Name']);
- }
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/ClassStub.php b/www/wiki/vendor/symfony/var-dumper/Caster/ClassStub.php
deleted file mode 100644
index 1a85098e..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/ClassStub.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-/**
- * Represents a PHP class identifier.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class ClassStub extends ConstStub
-{
- /**
- * @param string $identifier A PHP identifier, e.g. a class, method, interface, etc. name
- * @param callable $callable The callable targeted by the identifier when it is ambiguous or not a real PHP identifier
- */
- public function __construct($identifier, $callable = null)
- {
- $this->value = $identifier;
-
- if (0 < $i = strrpos($identifier, '\\')) {
- $this->attr['ellipsis'] = \strlen($identifier) - $i;
- $this->attr['ellipsis-type'] = 'class';
- $this->attr['ellipsis-tail'] = 1;
- }
-
- try {
- if (null !== $callable) {
- if ($callable instanceof \Closure) {
- $r = new \ReflectionFunction($callable);
- } elseif (\is_object($callable)) {
- $r = [$callable, '__invoke'];
- } elseif (\is_array($callable)) {
- $r = $callable;
- } elseif (false !== $i = strpos($callable, '::')) {
- $r = [substr($callable, 0, $i), substr($callable, 2 + $i)];
- } else {
- $r = new \ReflectionFunction($callable);
- }
- } elseif (0 < $i = strpos($identifier, '::') ?: strpos($identifier, '->')) {
- $r = [substr($identifier, 0, $i), substr($identifier, 2 + $i)];
- } else {
- $r = new \ReflectionClass($identifier);
- }
-
- if (\is_array($r)) {
- try {
- $r = new \ReflectionMethod($r[0], $r[1]);
- } catch (\ReflectionException $e) {
- $r = new \ReflectionClass($r[0]);
- }
- }
- } catch (\ReflectionException $e) {
- return;
- }
-
- if ($f = $r->getFileName()) {
- $this->attr['file'] = $f;
- $this->attr['line'] = $r->getStartLine();
- }
- }
-
- public static function wrapCallable($callable)
- {
- if (\is_object($callable) || !\is_callable($callable)) {
- return $callable;
- }
-
- if (!\is_array($callable)) {
- $callable = new static($callable);
- } elseif (\is_string($callable[0])) {
- $callable[0] = new static($callable[0]);
- } else {
- $callable[1] = new static($callable[1], $callable);
- }
-
- return $callable;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/ConstStub.php b/www/wiki/vendor/symfony/var-dumper/Caster/ConstStub.php
deleted file mode 100644
index 26c0010b..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/ConstStub.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Represents a PHP constant and its value.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class ConstStub extends Stub
-{
- public function __construct($name, $value)
- {
- $this->class = $name;
- $this->value = $value;
- }
-
- public function __toString()
- {
- return (string) $this->value;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/CutArrayStub.php b/www/wiki/vendor/symfony/var-dumper/Caster/CutArrayStub.php
deleted file mode 100644
index 0e4fb363..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/CutArrayStub.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-/**
- * Represents a cut array.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class CutArrayStub extends CutStub
-{
- public $preservedSubset;
-
- public function __construct(array $value, array $preservedKeys)
- {
- parent::__construct($value);
-
- $this->preservedSubset = array_intersect_key($value, array_flip($preservedKeys));
- $this->cut -= \count($this->preservedSubset);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/CutStub.php b/www/wiki/vendor/symfony/var-dumper/Caster/CutStub.php
deleted file mode 100644
index 690338f5..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/CutStub.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Represents the main properties of a PHP variable, pre-casted by a caster.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class CutStub extends Stub
-{
- public function __construct($value)
- {
- $this->value = $value;
-
- switch (\gettype($value)) {
- case 'object':
- $this->type = self::TYPE_OBJECT;
- $this->class = \get_class($value);
- $this->cut = -1;
- break;
-
- case 'array':
- $this->type = self::TYPE_ARRAY;
- $this->class = self::ARRAY_ASSOC;
- $this->cut = $this->value = \count($value);
- break;
-
- case 'resource':
- case 'unknown type':
- case 'resource (closed)':
- $this->type = self::TYPE_RESOURCE;
- $this->handle = (int) $value;
- if ('Unknown' === $this->class = @get_resource_type($value)) {
- $this->class = 'Closed';
- }
- $this->cut = -1;
- break;
-
- case 'string':
- $this->type = self::TYPE_STRING;
- $this->class = preg_match('//u', $value) ? self::STRING_UTF8 : self::STRING_BINARY;
- $this->cut = self::STRING_BINARY === $this->class ? \strlen($value) : mb_strlen($value, 'UTF-8');
- $this->value = '';
- break;
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/DOMCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/DOMCaster.php
deleted file mode 100644
index 65151b4f..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/DOMCaster.php
+++ /dev/null
@@ -1,302 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts DOM related classes to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class DOMCaster
-{
- private static $errorCodes = [
- DOM_PHP_ERR => 'DOM_PHP_ERR',
- DOM_INDEX_SIZE_ERR => 'DOM_INDEX_SIZE_ERR',
- DOMSTRING_SIZE_ERR => 'DOMSTRING_SIZE_ERR',
- DOM_HIERARCHY_REQUEST_ERR => 'DOM_HIERARCHY_REQUEST_ERR',
- DOM_WRONG_DOCUMENT_ERR => 'DOM_WRONG_DOCUMENT_ERR',
- DOM_INVALID_CHARACTER_ERR => 'DOM_INVALID_CHARACTER_ERR',
- DOM_NO_DATA_ALLOWED_ERR => 'DOM_NO_DATA_ALLOWED_ERR',
- DOM_NO_MODIFICATION_ALLOWED_ERR => 'DOM_NO_MODIFICATION_ALLOWED_ERR',
- DOM_NOT_FOUND_ERR => 'DOM_NOT_FOUND_ERR',
- DOM_NOT_SUPPORTED_ERR => 'DOM_NOT_SUPPORTED_ERR',
- DOM_INUSE_ATTRIBUTE_ERR => 'DOM_INUSE_ATTRIBUTE_ERR',
- DOM_INVALID_STATE_ERR => 'DOM_INVALID_STATE_ERR',
- DOM_SYNTAX_ERR => 'DOM_SYNTAX_ERR',
- DOM_INVALID_MODIFICATION_ERR => 'DOM_INVALID_MODIFICATION_ERR',
- DOM_NAMESPACE_ERR => 'DOM_NAMESPACE_ERR',
- DOM_INVALID_ACCESS_ERR => 'DOM_INVALID_ACCESS_ERR',
- DOM_VALIDATION_ERR => 'DOM_VALIDATION_ERR',
- ];
-
- private static $nodeTypes = [
- XML_ELEMENT_NODE => 'XML_ELEMENT_NODE',
- XML_ATTRIBUTE_NODE => 'XML_ATTRIBUTE_NODE',
- XML_TEXT_NODE => 'XML_TEXT_NODE',
- XML_CDATA_SECTION_NODE => 'XML_CDATA_SECTION_NODE',
- XML_ENTITY_REF_NODE => 'XML_ENTITY_REF_NODE',
- XML_ENTITY_NODE => 'XML_ENTITY_NODE',
- XML_PI_NODE => 'XML_PI_NODE',
- XML_COMMENT_NODE => 'XML_COMMENT_NODE',
- XML_DOCUMENT_NODE => 'XML_DOCUMENT_NODE',
- XML_DOCUMENT_TYPE_NODE => 'XML_DOCUMENT_TYPE_NODE',
- XML_DOCUMENT_FRAG_NODE => 'XML_DOCUMENT_FRAG_NODE',
- XML_NOTATION_NODE => 'XML_NOTATION_NODE',
- XML_HTML_DOCUMENT_NODE => 'XML_HTML_DOCUMENT_NODE',
- XML_DTD_NODE => 'XML_DTD_NODE',
- XML_ELEMENT_DECL_NODE => 'XML_ELEMENT_DECL_NODE',
- XML_ATTRIBUTE_DECL_NODE => 'XML_ATTRIBUTE_DECL_NODE',
- XML_ENTITY_DECL_NODE => 'XML_ENTITY_DECL_NODE',
- XML_NAMESPACE_DECL_NODE => 'XML_NAMESPACE_DECL_NODE',
- ];
-
- public static function castException(\DOMException $e, array $a, Stub $stub, $isNested)
- {
- $k = Caster::PREFIX_PROTECTED.'code';
- if (isset($a[$k], self::$errorCodes[$a[$k]])) {
- $a[$k] = new ConstStub(self::$errorCodes[$a[$k]], $a[$k]);
- }
-
- return $a;
- }
-
- public static function castLength($dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'length' => $dom->length,
- ];
-
- return $a;
- }
-
- public static function castImplementation($dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- Caster::PREFIX_VIRTUAL.'Core' => '1.0',
- Caster::PREFIX_VIRTUAL.'XML' => '2.0',
- ];
-
- return $a;
- }
-
- public static function castNode(\DOMNode $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'nodeName' => $dom->nodeName,
- 'nodeValue' => new CutStub($dom->nodeValue),
- 'nodeType' => new ConstStub(self::$nodeTypes[$dom->nodeType], $dom->nodeType),
- 'parentNode' => new CutStub($dom->parentNode),
- 'childNodes' => $dom->childNodes,
- 'firstChild' => new CutStub($dom->firstChild),
- 'lastChild' => new CutStub($dom->lastChild),
- 'previousSibling' => new CutStub($dom->previousSibling),
- 'nextSibling' => new CutStub($dom->nextSibling),
- 'attributes' => $dom->attributes,
- 'ownerDocument' => new CutStub($dom->ownerDocument),
- 'namespaceURI' => $dom->namespaceURI,
- 'prefix' => $dom->prefix,
- 'localName' => $dom->localName,
- 'baseURI' => $dom->baseURI ? new LinkStub($dom->baseURI) : $dom->baseURI,
- 'textContent' => new CutStub($dom->textContent),
- ];
-
- return $a;
- }
-
- public static function castNameSpaceNode(\DOMNameSpaceNode $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'nodeName' => $dom->nodeName,
- 'nodeValue' => new CutStub($dom->nodeValue),
- 'nodeType' => new ConstStub(self::$nodeTypes[$dom->nodeType], $dom->nodeType),
- 'prefix' => $dom->prefix,
- 'localName' => $dom->localName,
- 'namespaceURI' => $dom->namespaceURI,
- 'ownerDocument' => new CutStub($dom->ownerDocument),
- 'parentNode' => new CutStub($dom->parentNode),
- ];
-
- return $a;
- }
-
- public static function castDocument(\DOMDocument $dom, array $a, Stub $stub, $isNested, $filter = 0)
- {
- $a += [
- 'doctype' => $dom->doctype,
- 'implementation' => $dom->implementation,
- 'documentElement' => new CutStub($dom->documentElement),
- 'actualEncoding' => $dom->actualEncoding,
- 'encoding' => $dom->encoding,
- 'xmlEncoding' => $dom->xmlEncoding,
- 'standalone' => $dom->standalone,
- 'xmlStandalone' => $dom->xmlStandalone,
- 'version' => $dom->version,
- 'xmlVersion' => $dom->xmlVersion,
- 'strictErrorChecking' => $dom->strictErrorChecking,
- 'documentURI' => $dom->documentURI ? new LinkStub($dom->documentURI) : $dom->documentURI,
- 'config' => $dom->config,
- 'formatOutput' => $dom->formatOutput,
- 'validateOnParse' => $dom->validateOnParse,
- 'resolveExternals' => $dom->resolveExternals,
- 'preserveWhiteSpace' => $dom->preserveWhiteSpace,
- 'recover' => $dom->recover,
- 'substituteEntities' => $dom->substituteEntities,
- ];
-
- if (!($filter & Caster::EXCLUDE_VERBOSE)) {
- $formatOutput = $dom->formatOutput;
- $dom->formatOutput = true;
- $a += [Caster::PREFIX_VIRTUAL.'xml' => $dom->saveXML()];
- $dom->formatOutput = $formatOutput;
- }
-
- return $a;
- }
-
- public static function castCharacterData(\DOMCharacterData $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'data' => $dom->data,
- 'length' => $dom->length,
- ];
-
- return $a;
- }
-
- public static function castAttr(\DOMAttr $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'name' => $dom->name,
- 'specified' => $dom->specified,
- 'value' => $dom->value,
- 'ownerElement' => $dom->ownerElement,
- 'schemaTypeInfo' => $dom->schemaTypeInfo,
- ];
-
- return $a;
- }
-
- public static function castElement(\DOMElement $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'tagName' => $dom->tagName,
- 'schemaTypeInfo' => $dom->schemaTypeInfo,
- ];
-
- return $a;
- }
-
- public static function castText(\DOMText $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'wholeText' => $dom->wholeText,
- ];
-
- return $a;
- }
-
- public static function castTypeinfo(\DOMTypeinfo $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'typeName' => $dom->typeName,
- 'typeNamespace' => $dom->typeNamespace,
- ];
-
- return $a;
- }
-
- public static function castDomError(\DOMDomError $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'severity' => $dom->severity,
- 'message' => $dom->message,
- 'type' => $dom->type,
- 'relatedException' => $dom->relatedException,
- 'related_data' => $dom->related_data,
- 'location' => $dom->location,
- ];
-
- return $a;
- }
-
- public static function castLocator(\DOMLocator $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'lineNumber' => $dom->lineNumber,
- 'columnNumber' => $dom->columnNumber,
- 'offset' => $dom->offset,
- 'relatedNode' => $dom->relatedNode,
- 'uri' => $dom->uri ? new LinkStub($dom->uri, $dom->lineNumber) : $dom->uri,
- ];
-
- return $a;
- }
-
- public static function castDocumentType(\DOMDocumentType $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'name' => $dom->name,
- 'entities' => $dom->entities,
- 'notations' => $dom->notations,
- 'publicId' => $dom->publicId,
- 'systemId' => $dom->systemId,
- 'internalSubset' => $dom->internalSubset,
- ];
-
- return $a;
- }
-
- public static function castNotation(\DOMNotation $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'publicId' => $dom->publicId,
- 'systemId' => $dom->systemId,
- ];
-
- return $a;
- }
-
- public static function castEntity(\DOMEntity $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'publicId' => $dom->publicId,
- 'systemId' => $dom->systemId,
- 'notationName' => $dom->notationName,
- 'actualEncoding' => $dom->actualEncoding,
- 'encoding' => $dom->encoding,
- 'version' => $dom->version,
- ];
-
- return $a;
- }
-
- public static function castProcessingInstruction(\DOMProcessingInstruction $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'target' => $dom->target,
- 'data' => $dom->data,
- ];
-
- return $a;
- }
-
- public static function castXPath(\DOMXPath $dom, array $a, Stub $stub, $isNested)
- {
- $a += [
- 'document' => $dom->document,
- ];
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/DateCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/DateCaster.php
deleted file mode 100644
index 3b030b73..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/DateCaster.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts DateTimeInterface related classes to array representation.
- *
- * @author Dany Maillard <danymaillard93b@gmail.com>
- */
-class DateCaster
-{
- public static function castDateTime(\DateTimeInterface $d, array $a, Stub $stub, $isNested, $filter)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
- $location = $d->getTimezone()->getLocation();
- $fromNow = (new \DateTime())->diff($d);
-
- $title = $d->format('l, F j, Y')
- ."\n".self::formatInterval($fromNow).' from now'
- .($location ? ($d->format('I') ? "\nDST On" : "\nDST Off") : '')
- ;
-
- $a = [];
- $a[$prefix.'date'] = new ConstStub(self::formatDateTime($d, $location ? ' e (P)' : ' P'), $title);
-
- $stub->class .= $d->format(' @U');
-
- return $a;
- }
-
- public static function castInterval(\DateInterval $interval, array $a, Stub $stub, $isNested, $filter)
- {
- $now = new \DateTimeImmutable();
- $numberOfSeconds = $now->add($interval)->getTimestamp() - $now->getTimestamp();
- $title = number_format($numberOfSeconds, 0, '.', ' ').'s';
-
- $i = [Caster::PREFIX_VIRTUAL.'interval' => new ConstStub(self::formatInterval($interval), $title)];
-
- return $filter & Caster::EXCLUDE_VERBOSE ? $i : $i + $a;
- }
-
- private static function formatInterval(\DateInterval $i)
- {
- $format = '%R ';
-
- if (0 === $i->y && 0 === $i->m && ($i->h >= 24 || $i->i >= 60 || $i->s >= 60)) {
- $i = date_diff($d = new \DateTime(), date_add(clone $d, $i)); // recalculate carry over points
- $format .= 0 < $i->days ? '%ad ' : '';
- } else {
- $format .= ($i->y ? '%yy ' : '').($i->m ? '%mm ' : '').($i->d ? '%dd ' : '');
- }
-
- if (\PHP_VERSION_ID >= 70100 && isset($i->f)) {
- $format .= $i->h || $i->i || $i->s || $i->f ? '%H:%I:'.self::formatSeconds($i->s, substr($i->f, 2)) : '';
- } else {
- $format .= $i->h || $i->i || $i->s ? '%H:%I:%S' : '';
- }
-
- $format = '%R ' === $format ? '0s' : $format;
-
- return $i->format(rtrim($format));
- }
-
- public static function castTimeZone(\DateTimeZone $timeZone, array $a, Stub $stub, $isNested, $filter)
- {
- $location = $timeZone->getLocation();
- $formatted = (new \DateTime('now', $timeZone))->format($location ? 'e (P)' : 'P');
- $title = $location && \extension_loaded('intl') ? \Locale::getDisplayRegion('-'.$location['country_code'], \Locale::getDefault()) : '';
-
- $z = [Caster::PREFIX_VIRTUAL.'timezone' => new ConstStub($formatted, $title)];
-
- return $filter & Caster::EXCLUDE_VERBOSE ? $z : $z + $a;
- }
-
- public static function castPeriod(\DatePeriod $p, array $a, Stub $stub, $isNested, $filter)
- {
- if (\defined('HHVM_VERSION_ID') || \PHP_VERSION_ID < 50620 || (\PHP_VERSION_ID >= 70000 && \PHP_VERSION_ID < 70005)) { // see https://bugs.php.net/bug.php?id=71635
- return $a;
- }
-
- $dates = [];
- if (\PHP_VERSION_ID >= 70107) { // see https://bugs.php.net/bug.php?id=74639
- foreach (clone $p as $i => $d) {
- if (3 === $i) {
- $now = new \DateTimeImmutable();
- $dates[] = sprintf('%s more', ($end = $p->getEndDate())
- ? ceil(($end->format('U.u') - $d->format('U.u')) / ($now->add($p->getDateInterval())->format('U.u') - $now->format('U.u')))
- : $p->recurrences - $i
- );
- break;
- }
- $dates[] = sprintf('%s) %s', $i + 1, self::formatDateTime($d));
- }
- }
-
- $period = sprintf(
- 'every %s, from %s (%s) %s',
- self::formatInterval($p->getDateInterval()),
- self::formatDateTime($p->getStartDate()),
- $p->include_start_date ? 'included' : 'excluded',
- ($end = $p->getEndDate()) ? 'to '.self::formatDateTime($end) : 'recurring '.$p->recurrences.' time/s'
- );
-
- $p = [Caster::PREFIX_VIRTUAL.'period' => new ConstStub($period, implode("\n", $dates))];
-
- return $filter & Caster::EXCLUDE_VERBOSE ? $p : $p + $a;
- }
-
- private static function formatDateTime(\DateTimeInterface $d, $extra = '')
- {
- return $d->format('Y-m-d H:i:'.self::formatSeconds($d->format('s'), $d->format('u')).$extra);
- }
-
- private static function formatSeconds($s, $us)
- {
- return sprintf('%02d.%s', $s, 0 === ($len = \strlen($t = rtrim($us, '0'))) ? '0' : ($len <= 3 ? str_pad($t, 3, '0') : $us));
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/DoctrineCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/DoctrineCaster.php
deleted file mode 100644
index 696b8781..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/DoctrineCaster.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Doctrine\Common\Proxy\Proxy as CommonProxy;
-use Doctrine\ORM\PersistentCollection;
-use Doctrine\ORM\Proxy\Proxy as OrmProxy;
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts Doctrine related classes to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class DoctrineCaster
-{
- public static function castCommonProxy(CommonProxy $proxy, array $a, Stub $stub, $isNested)
- {
- foreach (['__cloner__', '__initializer__'] as $k) {
- if (\array_key_exists($k, $a)) {
- unset($a[$k]);
- ++$stub->cut;
- }
- }
-
- return $a;
- }
-
- public static function castOrmProxy(OrmProxy $proxy, array $a, Stub $stub, $isNested)
- {
- foreach (['_entityPersister', '_identifier'] as $k) {
- if (\array_key_exists($k = "\0Doctrine\\ORM\\Proxy\\Proxy\0".$k, $a)) {
- unset($a[$k]);
- ++$stub->cut;
- }
- }
-
- return $a;
- }
-
- public static function castPersistentCollection(PersistentCollection $coll, array $a, Stub $stub, $isNested)
- {
- foreach (['snapshot', 'association', 'typeClass'] as $k) {
- if (\array_key_exists($k = "\0Doctrine\\ORM\\PersistentCollection\0".$k, $a)) {
- $a[$k] = new CutStub($a[$k]);
- }
- }
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/EnumStub.php b/www/wiki/vendor/symfony/var-dumper/Caster/EnumStub.php
deleted file mode 100644
index 3cee23ea..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/EnumStub.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Represents an enumeration of values.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class EnumStub extends Stub
-{
- public $dumpKeys = true;
-
- public function __construct(array $values, $dumpKeys = true)
- {
- $this->value = $values;
- $this->dumpKeys = $dumpKeys;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/ExceptionCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/ExceptionCaster.php
deleted file mode 100644
index e0acbe39..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/ExceptionCaster.php
+++ /dev/null
@@ -1,349 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\Debug\Exception\SilencedErrorContext;
-use Symfony\Component\VarDumper\Cloner\Stub;
-use Symfony\Component\VarDumper\Exception\ThrowingCasterException;
-
-/**
- * Casts common Exception classes to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class ExceptionCaster
-{
- public static $srcContext = 1;
- public static $traceArgs = true;
- public static $errorTypes = [
- E_DEPRECATED => 'E_DEPRECATED',
- E_USER_DEPRECATED => 'E_USER_DEPRECATED',
- E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR',
- E_ERROR => 'E_ERROR',
- E_WARNING => 'E_WARNING',
- E_PARSE => 'E_PARSE',
- E_NOTICE => 'E_NOTICE',
- E_CORE_ERROR => 'E_CORE_ERROR',
- E_CORE_WARNING => 'E_CORE_WARNING',
- E_COMPILE_ERROR => 'E_COMPILE_ERROR',
- E_COMPILE_WARNING => 'E_COMPILE_WARNING',
- E_USER_ERROR => 'E_USER_ERROR',
- E_USER_WARNING => 'E_USER_WARNING',
- E_USER_NOTICE => 'E_USER_NOTICE',
- E_STRICT => 'E_STRICT',
- ];
-
- private static $framesCache = [];
-
- public static function castError(\Error $e, array $a, Stub $stub, $isNested, $filter = 0)
- {
- return self::filterExceptionArray($stub->class, $a, "\0Error\0", $filter);
- }
-
- public static function castException(\Exception $e, array $a, Stub $stub, $isNested, $filter = 0)
- {
- return self::filterExceptionArray($stub->class, $a, "\0Exception\0", $filter);
- }
-
- public static function castErrorException(\ErrorException $e, array $a, Stub $stub, $isNested)
- {
- if (isset($a[$s = Caster::PREFIX_PROTECTED.'severity'], self::$errorTypes[$a[$s]])) {
- $a[$s] = new ConstStub(self::$errorTypes[$a[$s]], $a[$s]);
- }
-
- return $a;
- }
-
- public static function castThrowingCasterException(ThrowingCasterException $e, array $a, Stub $stub, $isNested)
- {
- $trace = Caster::PREFIX_VIRTUAL.'trace';
- $prefix = Caster::PREFIX_PROTECTED;
- $xPrefix = "\0Exception\0";
-
- if (isset($a[$xPrefix.'previous'], $a[$trace]) && $a[$xPrefix.'previous'] instanceof \Exception) {
- $b = (array) $a[$xPrefix.'previous'];
- self::traceUnshift($b[$xPrefix.'trace'], \get_class($a[$xPrefix.'previous']), $b[$prefix.'file'], $b[$prefix.'line']);
- $a[$trace] = new TraceStub($b[$xPrefix.'trace'], false, 0, -\count($a[$trace]->value));
- }
-
- unset($a[$xPrefix.'previous'], $a[$prefix.'code'], $a[$prefix.'file'], $a[$prefix.'line']);
-
- return $a;
- }
-
- public static function castSilencedErrorContext(SilencedErrorContext $e, array $a, Stub $stub, $isNested)
- {
- $sPrefix = "\0".SilencedErrorContext::class."\0";
-
- if (!isset($a[$s = $sPrefix.'severity'])) {
- return $a;
- }
-
- if (isset(self::$errorTypes[$a[$s]])) {
- $a[$s] = new ConstStub(self::$errorTypes[$a[$s]], $a[$s]);
- }
-
- $trace = [[
- 'file' => $a[$sPrefix.'file'],
- 'line' => $a[$sPrefix.'line'],
- ]];
-
- if (isset($a[$sPrefix.'trace'])) {
- $trace = array_merge($trace, $a[$sPrefix.'trace']);
- }
-
- unset($a[$sPrefix.'file'], $a[$sPrefix.'line'], $a[$sPrefix.'trace']);
- $a[Caster::PREFIX_VIRTUAL.'trace'] = new TraceStub($trace, self::$traceArgs);
-
- return $a;
- }
-
- public static function castTraceStub(TraceStub $trace, array $a, Stub $stub, $isNested)
- {
- if (!$isNested) {
- return $a;
- }
- $stub->class = '';
- $stub->handle = 0;
- $frames = $trace->value;
- $prefix = Caster::PREFIX_VIRTUAL;
-
- $a = [];
- $j = \count($frames);
- if (0 > $i = $trace->sliceOffset) {
- $i = max(0, $j + $i);
- }
- if (!isset($trace->value[$i])) {
- return [];
- }
- $lastCall = isset($frames[$i]['function']) ? (isset($frames[$i]['class']) ? $frames[0]['class'].$frames[$i]['type'] : '').$frames[$i]['function'].'()' : '';
- $frames[] = ['function' => ''];
- $collapse = false;
-
- for ($j += $trace->numberingOffset - $i++; isset($frames[$i]); ++$i, --$j) {
- $f = $frames[$i];
- $call = isset($f['function']) ? (isset($f['class']) ? $f['class'].$f['type'] : '').$f['function'] : '???';
-
- $frame = new FrameStub(
- [
- 'object' => isset($f['object']) ? $f['object'] : null,
- 'class' => isset($f['class']) ? $f['class'] : null,
- 'type' => isset($f['type']) ? $f['type'] : null,
- 'function' => isset($f['function']) ? $f['function'] : null,
- ] + $frames[$i - 1],
- false,
- true
- );
- $f = self::castFrameStub($frame, [], $frame, true);
- if (isset($f[$prefix.'src'])) {
- foreach ($f[$prefix.'src']->value as $label => $frame) {
- if (0 === strpos($label, "\0~collapse=0")) {
- if ($collapse) {
- $label = substr_replace($label, '1', 11, 1);
- } else {
- $collapse = true;
- }
- }
- $label = substr_replace($label, "title=Stack level $j.&", 2, 0);
- }
- $f = $frames[$i - 1];
- if ($trace->keepArgs && !empty($f['args']) && $frame instanceof EnumStub) {
- $frame->value['arguments'] = new ArgsStub($f['args'], isset($f['function']) ? $f['function'] : null, isset($f['class']) ? $f['class'] : null);
- }
- } elseif ('???' !== $lastCall) {
- $label = new ClassStub($lastCall);
- if (isset($label->attr['ellipsis'])) {
- $label->attr['ellipsis'] += 2;
- $label = substr_replace($prefix, "ellipsis-type=class&ellipsis={$label->attr['ellipsis']}&ellipsis-tail=1&title=Stack level $j.", 2, 0).$label->value.'()';
- } else {
- $label = substr_replace($prefix, "title=Stack level $j.", 2, 0).$label->value.'()';
- }
- } else {
- $label = substr_replace($prefix, "title=Stack level $j.", 2, 0).$lastCall;
- }
- $a[substr_replace($label, sprintf('separator=%s&', $frame instanceof EnumStub ? ' ' : ':'), 2, 0)] = $frame;
-
- $lastCall = $call;
- }
- if (null !== $trace->sliceLength) {
- $a = \array_slice($a, 0, $trace->sliceLength, true);
- }
-
- return $a;
- }
-
- public static function castFrameStub(FrameStub $frame, array $a, Stub $stub, $isNested)
- {
- if (!$isNested) {
- return $a;
- }
- $f = $frame->value;
- $prefix = Caster::PREFIX_VIRTUAL;
-
- if (isset($f['file'], $f['line'])) {
- $cacheKey = $f;
- unset($cacheKey['object'], $cacheKey['args']);
- $cacheKey[] = self::$srcContext;
- $cacheKey = implode('-', $cacheKey);
-
- if (isset(self::$framesCache[$cacheKey])) {
- $a[$prefix.'src'] = self::$framesCache[$cacheKey];
- } else {
- if (preg_match('/\((\d+)\)(?:\([\da-f]{32}\))? : (?:eval\(\)\'d code|runtime-created function)$/', $f['file'], $match)) {
- $f['file'] = substr($f['file'], 0, -\strlen($match[0]));
- $f['line'] = (int) $match[1];
- }
- $caller = isset($f['function']) ? sprintf('in %s() on line %d', (isset($f['class']) ? $f['class'].$f['type'] : '').$f['function'], $f['line']) : null;
- $src = $f['line'];
- $srcKey = $f['file'];
- $ellipsis = new LinkStub($srcKey, 0);
- $srcAttr = 'collapse='.(int) $ellipsis->inVendor;
- $ellipsisTail = isset($ellipsis->attr['ellipsis-tail']) ? $ellipsis->attr['ellipsis-tail'] : 0;
- $ellipsis = isset($ellipsis->attr['ellipsis']) ? $ellipsis->attr['ellipsis'] : 0;
-
- if (file_exists($f['file']) && 0 <= self::$srcContext) {
- if (!empty($f['class']) && (is_subclass_of($f['class'], 'Twig\Template') || is_subclass_of($f['class'], 'Twig_Template')) && method_exists($f['class'], 'getDebugInfo')) {
- $template = isset($f['object']) ? $f['object'] : unserialize(sprintf('O:%d:"%s":0:{}', \strlen($f['class']), $f['class']));
-
- $ellipsis = 0;
- $templateSrc = method_exists($template, 'getSourceContext') ? $template->getSourceContext()->getCode() : (method_exists($template, 'getSource') ? $template->getSource() : '');
- $templateInfo = $template->getDebugInfo();
- if (isset($templateInfo[$f['line']])) {
- if (!method_exists($template, 'getSourceContext') || !file_exists($templatePath = $template->getSourceContext()->getPath())) {
- $templatePath = null;
- }
- if ($templateSrc) {
- $src = self::extractSource($templateSrc, $templateInfo[$f['line']], self::$srcContext, $caller, 'twig', $templatePath);
- $srcKey = ($templatePath ?: $template->getTemplateName()).':'.$templateInfo[$f['line']];
- }
- }
- }
- if ($srcKey == $f['file']) {
- $src = self::extractSource(file_get_contents($f['file']), $f['line'], self::$srcContext, $caller, 'php', $f['file']);
- $srcKey .= ':'.$f['line'];
- if ($ellipsis) {
- $ellipsis += 1 + \strlen($f['line']);
- }
- }
- $srcAttr .= '&separator= ';
- } else {
- $srcAttr .= '&separator=:';
- }
- $srcAttr .= $ellipsis ? '&ellipsis-type=path&ellipsis='.$ellipsis.'&ellipsis-tail='.$ellipsisTail : '';
- self::$framesCache[$cacheKey] = $a[$prefix.'src'] = new EnumStub(["\0~$srcAttr\0$srcKey" => $src]);
- }
- }
-
- unset($a[$prefix.'args'], $a[$prefix.'line'], $a[$prefix.'file']);
- if ($frame->inTraceStub) {
- unset($a[$prefix.'class'], $a[$prefix.'type'], $a[$prefix.'function']);
- }
- foreach ($a as $k => $v) {
- if (!$v) {
- unset($a[$k]);
- }
- }
- if ($frame->keepArgs && !empty($f['args'])) {
- $a[$prefix.'arguments'] = new ArgsStub($f['args'], $f['function'], $f['class']);
- }
-
- return $a;
- }
-
- private static function filterExceptionArray($xClass, array $a, $xPrefix, $filter)
- {
- if (isset($a[$xPrefix.'trace'])) {
- $trace = $a[$xPrefix.'trace'];
- unset($a[$xPrefix.'trace']); // Ensures the trace is always last
- } else {
- $trace = [];
- }
-
- if (!($filter & Caster::EXCLUDE_VERBOSE) && $trace) {
- if (isset($a[Caster::PREFIX_PROTECTED.'file'], $a[Caster::PREFIX_PROTECTED.'line'])) {
- self::traceUnshift($trace, $xClass, $a[Caster::PREFIX_PROTECTED.'file'], $a[Caster::PREFIX_PROTECTED.'line']);
- }
- $a[Caster::PREFIX_VIRTUAL.'trace'] = new TraceStub($trace, self::$traceArgs);
- }
- if (empty($a[$xPrefix.'previous'])) {
- unset($a[$xPrefix.'previous']);
- }
- unset($a[$xPrefix.'string'], $a[Caster::PREFIX_DYNAMIC.'xdebug_message'], $a[Caster::PREFIX_DYNAMIC.'__destructorException']);
-
- if (isset($a[Caster::PREFIX_PROTECTED.'file'], $a[Caster::PREFIX_PROTECTED.'line'])) {
- $a[Caster::PREFIX_PROTECTED.'file'] = new LinkStub($a[Caster::PREFIX_PROTECTED.'file'], $a[Caster::PREFIX_PROTECTED.'line']);
- }
-
- return $a;
- }
-
- private static function traceUnshift(&$trace, $class, $file, $line)
- {
- if (isset($trace[0]['file'], $trace[0]['line']) && $trace[0]['file'] === $file && $trace[0]['line'] === $line) {
- return;
- }
- array_unshift($trace, [
- 'function' => $class ? 'new '.$class : null,
- 'file' => $file,
- 'line' => $line,
- ]);
- }
-
- private static function extractSource($srcLines, $line, $srcContext, $title, $lang, $file = null)
- {
- $srcLines = explode("\n", $srcLines);
- $src = [];
-
- for ($i = $line - 1 - $srcContext; $i <= $line - 1 + $srcContext; ++$i) {
- $src[] = (isset($srcLines[$i]) ? $srcLines[$i] : '')."\n";
- }
-
- $srcLines = [];
- $ltrim = 0;
- do {
- $pad = null;
- for ($i = $srcContext << 1; $i >= 0; --$i) {
- if (isset($src[$i][$ltrim]) && "\r" !== ($c = $src[$i][$ltrim]) && "\n" !== $c) {
- if (null === $pad) {
- $pad = $c;
- }
- if ((' ' !== $c && "\t" !== $c) || $pad !== $c) {
- break;
- }
- }
- }
- ++$ltrim;
- } while (0 > $i && null !== $pad);
-
- --$ltrim;
-
- foreach ($src as $i => $c) {
- if ($ltrim) {
- $c = isset($c[$ltrim]) && "\r" !== $c[$ltrim] ? substr($c, $ltrim) : ltrim($c, " \t");
- }
- $c = substr($c, 0, -1);
- if ($i !== $srcContext) {
- $c = new ConstStub('default', $c);
- } else {
- $c = new ConstStub($c, $title);
- if (null !== $file) {
- $c->attr['file'] = $file;
- $c->attr['line'] = $line;
- }
- }
- $c->attr['lang'] = $lang;
- $srcLines[sprintf("\0~separator=› &%d\0", $i + $line - $srcContext)] = $c;
- }
-
- return new EnumStub($srcLines);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/FrameStub.php b/www/wiki/vendor/symfony/var-dumper/Caster/FrameStub.php
deleted file mode 100644
index 1e1194dc..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/FrameStub.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-/**
- * Represents a single backtrace frame as returned by debug_backtrace() or Exception->getTrace().
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class FrameStub extends EnumStub
-{
- public $keepArgs;
- public $inTraceStub;
-
- public function __construct(array $frame, $keepArgs = true, $inTraceStub = false)
- {
- $this->value = $frame;
- $this->keepArgs = $keepArgs;
- $this->inTraceStub = $inTraceStub;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/LinkStub.php b/www/wiki/vendor/symfony/var-dumper/Caster/LinkStub.php
deleted file mode 100644
index b589b502..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/LinkStub.php
+++ /dev/null
@@ -1,108 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-/**
- * Represents a file or a URL.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class LinkStub extends ConstStub
-{
- public $inVendor = false;
-
- private static $vendorRoots;
- private static $composerRoots;
-
- public function __construct($label, $line = 0, $href = null)
- {
- $this->value = $label;
-
- if (null === $href) {
- $href = $label;
- }
- if (!\is_string($href)) {
- return;
- }
- if (0 === strpos($href, 'file://')) {
- if ($href === $label) {
- $label = substr($label, 7);
- }
- $href = substr($href, 7);
- } elseif (false !== strpos($href, '://')) {
- $this->attr['href'] = $href;
-
- return;
- }
- if (!file_exists($href)) {
- return;
- }
- if ($line) {
- $this->attr['line'] = $line;
- }
- if ($label !== $this->attr['file'] = realpath($href) ?: $href) {
- return;
- }
- if ($composerRoot = $this->getComposerRoot($href, $this->inVendor)) {
- $this->attr['ellipsis'] = \strlen($href) - \strlen($composerRoot) + 1;
- $this->attr['ellipsis-type'] = 'path';
- $this->attr['ellipsis-tail'] = 1 + ($this->inVendor ? 2 + \strlen(implode('', \array_slice(explode(\DIRECTORY_SEPARATOR, substr($href, 1 - $this->attr['ellipsis'])), 0, 2))) : 0);
- } elseif (3 < \count($ellipsis = explode(\DIRECTORY_SEPARATOR, $href))) {
- $this->attr['ellipsis'] = 2 + \strlen(implode('', \array_slice($ellipsis, -2)));
- $this->attr['ellipsis-type'] = 'path';
- $this->attr['ellipsis-tail'] = 1;
- }
- }
-
- private function getComposerRoot($file, &$inVendor)
- {
- if (null === self::$vendorRoots) {
- self::$vendorRoots = [];
-
- foreach (get_declared_classes() as $class) {
- if ('C' === $class[0] && 0 === strpos($class, 'ComposerAutoloaderInit')) {
- $r = new \ReflectionClass($class);
- $v = \dirname(\dirname($r->getFileName()));
- if (file_exists($v.'/composer/installed.json')) {
- self::$vendorRoots[] = $v.\DIRECTORY_SEPARATOR;
- }
- }
- }
- }
- $inVendor = false;
-
- if (isset(self::$composerRoots[$dir = \dirname($file)])) {
- return self::$composerRoots[$dir];
- }
-
- foreach (self::$vendorRoots as $root) {
- if ($inVendor = 0 === strpos($file, $root)) {
- return $root;
- }
- }
-
- $parent = $dir;
- while (!@file_exists($parent.'/composer.json')) {
- if (!@file_exists($parent)) {
- // open_basedir restriction in effect
- break;
- }
- if ($parent === \dirname($parent)) {
- return self::$composerRoots[$dir] = false;
- }
-
- $parent = \dirname($parent);
- }
-
- return self::$composerRoots[$dir] = $parent.\DIRECTORY_SEPARATOR;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/MongoCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/MongoCaster.php
deleted file mode 100644
index 3b8fb338..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/MongoCaster.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-@trigger_error('The '.__NAMESPACE__.'\MongoCaster class is deprecated since Symfony 3.4 and will be removed in 4.0.', E_USER_DEPRECATED);
-
-/**
- * Casts classes from the MongoDb extension to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- *
- * @deprecated since version 3.4, to be removed in 4.0.
- */
-class MongoCaster
-{
- public static function castCursor(\MongoCursorInterface $cursor, array $a, Stub $stub, $isNested)
- {
- if ($info = $cursor->info()) {
- foreach ($info as $k => $v) {
- $a[Caster::PREFIX_VIRTUAL.$k] = $v;
- }
- }
- $a[Caster::PREFIX_VIRTUAL.'dead'] = $cursor->dead();
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/PdoCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/PdoCaster.php
deleted file mode 100644
index 8af51829..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/PdoCaster.php
+++ /dev/null
@@ -1,120 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts PDO related classes to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class PdoCaster
-{
- private static $pdoAttributes = [
- 'CASE' => [
- \PDO::CASE_LOWER => 'LOWER',
- \PDO::CASE_NATURAL => 'NATURAL',
- \PDO::CASE_UPPER => 'UPPER',
- ],
- 'ERRMODE' => [
- \PDO::ERRMODE_SILENT => 'SILENT',
- \PDO::ERRMODE_WARNING => 'WARNING',
- \PDO::ERRMODE_EXCEPTION => 'EXCEPTION',
- ],
- 'TIMEOUT',
- 'PREFETCH',
- 'AUTOCOMMIT',
- 'PERSISTENT',
- 'DRIVER_NAME',
- 'SERVER_INFO',
- 'ORACLE_NULLS' => [
- \PDO::NULL_NATURAL => 'NATURAL',
- \PDO::NULL_EMPTY_STRING => 'EMPTY_STRING',
- \PDO::NULL_TO_STRING => 'TO_STRING',
- ],
- 'CLIENT_VERSION',
- 'SERVER_VERSION',
- 'STATEMENT_CLASS',
- 'EMULATE_PREPARES',
- 'CONNECTION_STATUS',
- 'STRINGIFY_FETCHES',
- 'DEFAULT_FETCH_MODE' => [
- \PDO::FETCH_ASSOC => 'ASSOC',
- \PDO::FETCH_BOTH => 'BOTH',
- \PDO::FETCH_LAZY => 'LAZY',
- \PDO::FETCH_NUM => 'NUM',
- \PDO::FETCH_OBJ => 'OBJ',
- ],
- ];
-
- public static function castPdo(\PDO $c, array $a, Stub $stub, $isNested)
- {
- $attr = [];
- $errmode = $c->getAttribute(\PDO::ATTR_ERRMODE);
- $c->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
-
- foreach (self::$pdoAttributes as $k => $v) {
- if (!isset($k[0])) {
- $k = $v;
- $v = [];
- }
-
- try {
- $attr[$k] = 'ERRMODE' === $k ? $errmode : $c->getAttribute(\constant('PDO::ATTR_'.$k));
- if ($v && isset($v[$attr[$k]])) {
- $attr[$k] = new ConstStub($v[$attr[$k]], $attr[$k]);
- }
- } catch (\Exception $e) {
- }
- }
- if (isset($attr[$k = 'STATEMENT_CLASS'][1])) {
- if ($attr[$k][1]) {
- $attr[$k][1] = new ArgsStub($attr[$k][1], '__construct', $attr[$k][0]);
- }
- $attr[$k][0] = new ClassStub($attr[$k][0]);
- }
-
- $prefix = Caster::PREFIX_VIRTUAL;
- $a += [
- $prefix.'inTransaction' => method_exists($c, 'inTransaction'),
- $prefix.'errorInfo' => $c->errorInfo(),
- $prefix.'attributes' => new EnumStub($attr),
- ];
-
- if ($a[$prefix.'inTransaction']) {
- $a[$prefix.'inTransaction'] = $c->inTransaction();
- } else {
- unset($a[$prefix.'inTransaction']);
- }
-
- if (!isset($a[$prefix.'errorInfo'][1], $a[$prefix.'errorInfo'][2])) {
- unset($a[$prefix.'errorInfo']);
- }
-
- $c->setAttribute(\PDO::ATTR_ERRMODE, $errmode);
-
- return $a;
- }
-
- public static function castPdoStatement(\PDOStatement $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
- $a[$prefix.'errorInfo'] = $c->errorInfo();
-
- if (!isset($a[$prefix.'errorInfo'][1], $a[$prefix.'errorInfo'][2])) {
- unset($a[$prefix.'errorInfo']);
- }
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/PgSqlCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/PgSqlCaster.php
deleted file mode 100644
index cd6bf5b5..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/PgSqlCaster.php
+++ /dev/null
@@ -1,154 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts pqsql resources to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class PgSqlCaster
-{
- private static $paramCodes = [
- 'server_encoding',
- 'client_encoding',
- 'is_superuser',
- 'session_authorization',
- 'DateStyle',
- 'TimeZone',
- 'IntervalStyle',
- 'integer_datetimes',
- 'application_name',
- 'standard_conforming_strings',
- ];
-
- private static $transactionStatus = [
- PGSQL_TRANSACTION_IDLE => 'PGSQL_TRANSACTION_IDLE',
- PGSQL_TRANSACTION_ACTIVE => 'PGSQL_TRANSACTION_ACTIVE',
- PGSQL_TRANSACTION_INTRANS => 'PGSQL_TRANSACTION_INTRANS',
- PGSQL_TRANSACTION_INERROR => 'PGSQL_TRANSACTION_INERROR',
- PGSQL_TRANSACTION_UNKNOWN => 'PGSQL_TRANSACTION_UNKNOWN',
- ];
-
- private static $resultStatus = [
- PGSQL_EMPTY_QUERY => 'PGSQL_EMPTY_QUERY',
- PGSQL_COMMAND_OK => 'PGSQL_COMMAND_OK',
- PGSQL_TUPLES_OK => 'PGSQL_TUPLES_OK',
- PGSQL_COPY_OUT => 'PGSQL_COPY_OUT',
- PGSQL_COPY_IN => 'PGSQL_COPY_IN',
- PGSQL_BAD_RESPONSE => 'PGSQL_BAD_RESPONSE',
- PGSQL_NONFATAL_ERROR => 'PGSQL_NONFATAL_ERROR',
- PGSQL_FATAL_ERROR => 'PGSQL_FATAL_ERROR',
- ];
-
- private static $diagCodes = [
- 'severity' => PGSQL_DIAG_SEVERITY,
- 'sqlstate' => PGSQL_DIAG_SQLSTATE,
- 'message' => PGSQL_DIAG_MESSAGE_PRIMARY,
- 'detail' => PGSQL_DIAG_MESSAGE_DETAIL,
- 'hint' => PGSQL_DIAG_MESSAGE_HINT,
- 'statement position' => PGSQL_DIAG_STATEMENT_POSITION,
- 'internal position' => PGSQL_DIAG_INTERNAL_POSITION,
- 'internal query' => PGSQL_DIAG_INTERNAL_QUERY,
- 'context' => PGSQL_DIAG_CONTEXT,
- 'file' => PGSQL_DIAG_SOURCE_FILE,
- 'line' => PGSQL_DIAG_SOURCE_LINE,
- 'function' => PGSQL_DIAG_SOURCE_FUNCTION,
- ];
-
- public static function castLargeObject($lo, array $a, Stub $stub, $isNested)
- {
- $a['seek position'] = pg_lo_tell($lo);
-
- return $a;
- }
-
- public static function castLink($link, array $a, Stub $stub, $isNested)
- {
- $a['status'] = pg_connection_status($link);
- $a['status'] = new ConstStub(PGSQL_CONNECTION_OK === $a['status'] ? 'PGSQL_CONNECTION_OK' : 'PGSQL_CONNECTION_BAD', $a['status']);
- $a['busy'] = pg_connection_busy($link);
-
- $a['transaction'] = pg_transaction_status($link);
- if (isset(self::$transactionStatus[$a['transaction']])) {
- $a['transaction'] = new ConstStub(self::$transactionStatus[$a['transaction']], $a['transaction']);
- }
-
- $a['pid'] = pg_get_pid($link);
- $a['last error'] = pg_last_error($link);
- $a['last notice'] = pg_last_notice($link);
- $a['host'] = pg_host($link);
- $a['port'] = pg_port($link);
- $a['dbname'] = pg_dbname($link);
- $a['options'] = pg_options($link);
- $a['version'] = pg_version($link);
-
- foreach (self::$paramCodes as $v) {
- if (false !== $s = pg_parameter_status($link, $v)) {
- $a['param'][$v] = $s;
- }
- }
-
- $a['param']['client_encoding'] = pg_client_encoding($link);
- $a['param'] = new EnumStub($a['param']);
-
- return $a;
- }
-
- public static function castResult($result, array $a, Stub $stub, $isNested)
- {
- $a['num rows'] = pg_num_rows($result);
- $a['status'] = pg_result_status($result);
- if (isset(self::$resultStatus[$a['status']])) {
- $a['status'] = new ConstStub(self::$resultStatus[$a['status']], $a['status']);
- }
- $a['command-completion tag'] = pg_result_status($result, PGSQL_STATUS_STRING);
-
- if (-1 === $a['num rows']) {
- foreach (self::$diagCodes as $k => $v) {
- $a['error'][$k] = pg_result_error_field($result, $v);
- }
- }
-
- $a['affected rows'] = pg_affected_rows($result);
- $a['last OID'] = pg_last_oid($result);
-
- $fields = pg_num_fields($result);
-
- for ($i = 0; $i < $fields; ++$i) {
- $field = [
- 'name' => pg_field_name($result, $i),
- 'table' => sprintf('%s (OID: %s)', pg_field_table($result, $i), pg_field_table($result, $i, true)),
- 'type' => sprintf('%s (OID: %s)', pg_field_type($result, $i), pg_field_type_oid($result, $i)),
- 'nullable' => (bool) pg_field_is_null($result, $i),
- 'storage' => pg_field_size($result, $i).' bytes',
- 'display' => pg_field_prtlen($result, $i).' chars',
- ];
- if (' (OID: )' === $field['table']) {
- $field['table'] = null;
- }
- if ('-1 bytes' === $field['storage']) {
- $field['storage'] = 'variable size';
- } elseif ('1 bytes' === $field['storage']) {
- $field['storage'] = '1 byte';
- }
- if ('1 chars' === $field['display']) {
- $field['display'] = '1 char';
- }
- $a['fields'][] = new EnumStub($field);
- }
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/RedisCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/RedisCaster.php
deleted file mode 100644
index 1e2fb399..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/RedisCaster.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts Redis class from ext-redis to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class RedisCaster
-{
- private static $serializer = [
- \Redis::SERIALIZER_NONE => 'NONE',
- \Redis::SERIALIZER_PHP => 'PHP',
- 2 => 'IGBINARY', // Optional Redis::SERIALIZER_IGBINARY
- ];
-
- public static function castRedis(\Redis $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- if (\defined('HHVM_VERSION_ID')) {
- if (isset($a[Caster::PREFIX_PROTECTED.'serializer'])) {
- $ser = $a[Caster::PREFIX_PROTECTED.'serializer'];
- $a[Caster::PREFIX_PROTECTED.'serializer'] = isset(self::$serializer[$ser]) ? new ConstStub(self::$serializer[$ser], $ser) : $ser;
- }
-
- return $a;
- }
-
- if (!$connected = $c->isConnected()) {
- return $a + [
- $prefix.'isConnected' => $connected,
- ];
- }
-
- $ser = $c->getOption(\Redis::OPT_SERIALIZER);
- $retry = \defined('Redis::OPT_SCAN') ? $c->getOption(\Redis::OPT_SCAN) : 0;
-
- return $a + [
- $prefix.'isConnected' => $connected,
- $prefix.'host' => $c->getHost(),
- $prefix.'port' => $c->getPort(),
- $prefix.'auth' => $c->getAuth(),
- $prefix.'dbNum' => $c->getDbNum(),
- $prefix.'timeout' => $c->getTimeout(),
- $prefix.'persistentId' => $c->getPersistentID(),
- $prefix.'options' => new EnumStub([
- 'READ_TIMEOUT' => $c->getOption(\Redis::OPT_READ_TIMEOUT),
- 'SERIALIZER' => isset(self::$serializer[$ser]) ? new ConstStub(self::$serializer[$ser], $ser) : $ser,
- 'PREFIX' => $c->getOption(\Redis::OPT_PREFIX),
- 'SCAN' => new ConstStub($retry ? 'RETRY' : 'NORETRY', $retry),
- ]),
- ];
- }
-
- public static function castRedisArray(\RedisArray $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- return $a + [
- $prefix.'hosts' => $c->_hosts(),
- $prefix.'function' => ClassStub::wrapCallable($c->_function()),
- ];
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/ReflectionCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/ReflectionCaster.php
deleted file mode 100644
index 1543bbfd..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/ReflectionCaster.php
+++ /dev/null
@@ -1,341 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts Reflector related classes to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class ReflectionCaster
-{
- private static $extraMap = [
- 'docComment' => 'getDocComment',
- 'extension' => 'getExtensionName',
- 'isDisabled' => 'isDisabled',
- 'isDeprecated' => 'isDeprecated',
- 'isInternal' => 'isInternal',
- 'isUserDefined' => 'isUserDefined',
- 'isGenerator' => 'isGenerator',
- 'isVariadic' => 'isVariadic',
- ];
-
- public static function castClosure(\Closure $c, array $a, Stub $stub, $isNested, $filter = 0)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
- $c = new \ReflectionFunction($c);
-
- $stub->class = 'Closure'; // HHVM generates unique class names for closures
- $a = static::castFunctionAbstract($c, $a, $stub, $isNested, $filter);
-
- if (false === strpos($c->name, '{closure}')) {
- $stub->class = isset($a[$prefix.'class']) ? $a[$prefix.'class']->value.'::'.$c->name : $c->name;
- unset($a[$prefix.'class']);
- }
-
- if (isset($a[$prefix.'parameters'])) {
- foreach ($a[$prefix.'parameters']->value as &$v) {
- $param = $v;
- $v = new EnumStub([]);
- foreach (static::castParameter($param, [], $stub, true) as $k => $param) {
- if ("\0" === $k[0]) {
- $v->value[substr($k, 3)] = $param;
- }
- }
- unset($v->value['position'], $v->value['isVariadic'], $v->value['byReference'], $v);
- }
- }
-
- if (!($filter & Caster::EXCLUDE_VERBOSE) && $f = $c->getFileName()) {
- $a[$prefix.'file'] = new LinkStub($f, $c->getStartLine());
- $a[$prefix.'line'] = $c->getStartLine().' to '.$c->getEndLine();
- }
-
- $prefix = Caster::PREFIX_DYNAMIC;
- unset($a['name'], $a[$prefix.'this'], $a[$prefix.'parameter'], $a[Caster::PREFIX_VIRTUAL.'extra']);
-
- return $a;
- }
-
- public static function castGenerator(\Generator $c, array $a, Stub $stub, $isNested)
- {
- if (!class_exists('ReflectionGenerator', false)) {
- return $a;
- }
-
- // Cannot create ReflectionGenerator based on a terminated Generator
- try {
- $reflectionGenerator = new \ReflectionGenerator($c);
- } catch (\Exception $e) {
- $a[Caster::PREFIX_VIRTUAL.'closed'] = true;
-
- return $a;
- }
-
- return self::castReflectionGenerator($reflectionGenerator, $a, $stub, $isNested);
- }
-
- public static function castType(\ReflectionType $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- $a += [
- $prefix.'name' => $c instanceof \ReflectionNamedType ? $c->getName() : $c->__toString(),
- $prefix.'allowsNull' => $c->allowsNull(),
- $prefix.'isBuiltin' => $c->isBuiltin(),
- ];
-
- return $a;
- }
-
- public static function castReflectionGenerator(\ReflectionGenerator $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- if ($c->getThis()) {
- $a[$prefix.'this'] = new CutStub($c->getThis());
- }
- $function = $c->getFunction();
- $frame = [
- 'class' => isset($function->class) ? $function->class : null,
- 'type' => isset($function->class) ? ($function->isStatic() ? '::' : '->') : null,
- 'function' => $function->name,
- 'file' => $c->getExecutingFile(),
- 'line' => $c->getExecutingLine(),
- ];
- if ($trace = $c->getTrace(DEBUG_BACKTRACE_IGNORE_ARGS)) {
- $function = new \ReflectionGenerator($c->getExecutingGenerator());
- array_unshift($trace, [
- 'function' => 'yield',
- 'file' => $function->getExecutingFile(),
- 'line' => $function->getExecutingLine() - 1,
- ]);
- $trace[] = $frame;
- $a[$prefix.'trace'] = new TraceStub($trace, false, 0, -1, -1);
- } else {
- $function = new FrameStub($frame, false, true);
- $function = ExceptionCaster::castFrameStub($function, [], $function, true);
- $a[$prefix.'executing'] = new EnumStub([
- "\0~separator= \0".$frame['class'].$frame['type'].$frame['function'].'()' => $function[$prefix.'src'],
- ]);
- }
-
- $a[Caster::PREFIX_VIRTUAL.'closed'] = false;
-
- return $a;
- }
-
- public static function castClass(\ReflectionClass $c, array $a, Stub $stub, $isNested, $filter = 0)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- if ($n = \Reflection::getModifierNames($c->getModifiers())) {
- $a[$prefix.'modifiers'] = implode(' ', $n);
- }
-
- self::addMap($a, $c, [
- 'extends' => 'getParentClass',
- 'implements' => 'getInterfaceNames',
- 'constants' => 'getConstants',
- ]);
-
- foreach ($c->getProperties() as $n) {
- $a[$prefix.'properties'][$n->name] = $n;
- }
-
- foreach ($c->getMethods() as $n) {
- $a[$prefix.'methods'][$n->name] = $n;
- }
-
- if (!($filter & Caster::EXCLUDE_VERBOSE) && !$isNested) {
- self::addExtra($a, $c);
- }
-
- return $a;
- }
-
- public static function castFunctionAbstract(\ReflectionFunctionAbstract $c, array $a, Stub $stub, $isNested, $filter = 0)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- self::addMap($a, $c, [
- 'returnsReference' => 'returnsReference',
- 'returnType' => 'getReturnType',
- 'class' => 'getClosureScopeClass',
- 'this' => 'getClosureThis',
- ]);
-
- if (isset($a[$prefix.'returnType'])) {
- $v = $a[$prefix.'returnType'];
- $v = $v instanceof \ReflectionNamedType ? $v->getName() : $v->__toString();
- $a[$prefix.'returnType'] = new ClassStub($a[$prefix.'returnType']->allowsNull() ? '?'.$v : $v, [class_exists($v, false) || interface_exists($v, false) || trait_exists($v, false) ? $v : '', '']);
- }
- if (isset($a[$prefix.'class'])) {
- $a[$prefix.'class'] = new ClassStub($a[$prefix.'class']);
- }
- if (isset($a[$prefix.'this'])) {
- $a[$prefix.'this'] = new CutStub($a[$prefix.'this']);
- }
-
- foreach ($c->getParameters() as $v) {
- $k = '$'.$v->name;
- if (method_exists($v, 'isVariadic') && $v->isVariadic()) {
- $k = '...'.$k;
- }
- if ($v->isPassedByReference()) {
- $k = '&'.$k;
- }
- $a[$prefix.'parameters'][$k] = $v;
- }
- if (isset($a[$prefix.'parameters'])) {
- $a[$prefix.'parameters'] = new EnumStub($a[$prefix.'parameters']);
- }
-
- if ($v = $c->getStaticVariables()) {
- foreach ($v as $k => &$v) {
- if (\is_object($v)) {
- $a[$prefix.'use']['$'.$k] = new CutStub($v);
- } else {
- $a[$prefix.'use']['$'.$k] = &$v;
- }
- }
- unset($v);
- $a[$prefix.'use'] = new EnumStub($a[$prefix.'use']);
- }
-
- if (!($filter & Caster::EXCLUDE_VERBOSE) && !$isNested) {
- self::addExtra($a, $c);
- }
-
- // Added by HHVM
- unset($a[Caster::PREFIX_DYNAMIC.'static']);
-
- return $a;
- }
-
- public static function castMethod(\ReflectionMethod $c, array $a, Stub $stub, $isNested)
- {
- $a[Caster::PREFIX_VIRTUAL.'modifiers'] = implode(' ', \Reflection::getModifierNames($c->getModifiers()));
-
- return $a;
- }
-
- public static function castParameter(\ReflectionParameter $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
-
- // Added by HHVM
- unset($a['info']);
-
- self::addMap($a, $c, [
- 'position' => 'getPosition',
- 'isVariadic' => 'isVariadic',
- 'byReference' => 'isPassedByReference',
- 'allowsNull' => 'allowsNull',
- ]);
-
- if (method_exists($c, 'getType')) {
- if ($v = $c->getType()) {
- $a[$prefix.'typeHint'] = $v instanceof \ReflectionNamedType ? $v->getName() : $v->__toString();
- }
- } elseif (preg_match('/^(?:[^ ]++ ){4}([a-zA-Z_\x7F-\xFF][^ ]++)/', $c, $v)) {
- $a[$prefix.'typeHint'] = $v[1];
- }
-
- if (isset($a[$prefix.'typeHint'])) {
- $v = $a[$prefix.'typeHint'];
- $a[$prefix.'typeHint'] = new ClassStub($v, [class_exists($v, false) || interface_exists($v, false) || trait_exists($v, false) ? $v : '', '']);
- } else {
- unset($a[$prefix.'allowsNull']);
- }
-
- try {
- $a[$prefix.'default'] = $v = $c->getDefaultValue();
- if (method_exists($c, 'isDefaultValueConstant') && $c->isDefaultValueConstant()) {
- $a[$prefix.'default'] = new ConstStub($c->getDefaultValueConstantName(), $v);
- }
- if (null === $v) {
- unset($a[$prefix.'allowsNull']);
- }
- } catch (\ReflectionException $e) {
- if (isset($a[$prefix.'typeHint']) && $c->allowsNull() && !class_exists('ReflectionNamedType', false)) {
- $a[$prefix.'default'] = null;
- unset($a[$prefix.'allowsNull']);
- }
- }
-
- return $a;
- }
-
- public static function castProperty(\ReflectionProperty $c, array $a, Stub $stub, $isNested)
- {
- $a[Caster::PREFIX_VIRTUAL.'modifiers'] = implode(' ', \Reflection::getModifierNames($c->getModifiers()));
- self::addExtra($a, $c);
-
- return $a;
- }
-
- public static function castExtension(\ReflectionExtension $c, array $a, Stub $stub, $isNested)
- {
- self::addMap($a, $c, [
- 'version' => 'getVersion',
- 'dependencies' => 'getDependencies',
- 'iniEntries' => 'getIniEntries',
- 'isPersistent' => 'isPersistent',
- 'isTemporary' => 'isTemporary',
- 'constants' => 'getConstants',
- 'functions' => 'getFunctions',
- 'classes' => 'getClasses',
- ]);
-
- return $a;
- }
-
- public static function castZendExtension(\ReflectionZendExtension $c, array $a, Stub $stub, $isNested)
- {
- self::addMap($a, $c, [
- 'version' => 'getVersion',
- 'author' => 'getAuthor',
- 'copyright' => 'getCopyright',
- 'url' => 'getURL',
- ]);
-
- return $a;
- }
-
- private static function addExtra(&$a, \Reflector $c)
- {
- $x = isset($a[Caster::PREFIX_VIRTUAL.'extra']) ? $a[Caster::PREFIX_VIRTUAL.'extra']->value : [];
-
- if (method_exists($c, 'getFileName') && $m = $c->getFileName()) {
- $x['file'] = new LinkStub($m, $c->getStartLine());
- $x['line'] = $c->getStartLine().' to '.$c->getEndLine();
- }
-
- self::addMap($x, $c, self::$extraMap, '');
-
- if ($x) {
- $a[Caster::PREFIX_VIRTUAL.'extra'] = new EnumStub($x);
- }
- }
-
- private static function addMap(&$a, \Reflector $c, $map, $prefix = Caster::PREFIX_VIRTUAL)
- {
- foreach ($map as $k => $m) {
- if (method_exists($c, $m) && false !== ($m = $c->$m()) && null !== $m) {
- $a[$prefix.$k] = $m instanceof \Reflector ? $m->name : $m;
- }
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/ResourceCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/ResourceCaster.php
deleted file mode 100644
index 3cdb27c3..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/ResourceCaster.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts common resource types to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class ResourceCaster
-{
- public static function castCurl($h, array $a, Stub $stub, $isNested)
- {
- return curl_getinfo($h);
- }
-
- public static function castDba($dba, array $a, Stub $stub, $isNested)
- {
- $list = dba_list();
- $a['file'] = $list[(int) $dba];
-
- return $a;
- }
-
- public static function castProcess($process, array $a, Stub $stub, $isNested)
- {
- return proc_get_status($process);
- }
-
- public static function castStream($stream, array $a, Stub $stub, $isNested)
- {
- $a = stream_get_meta_data($stream) + static::castStreamContext($stream, $a, $stub, $isNested);
- if (isset($a['uri'])) {
- $a['uri'] = new LinkStub($a['uri']);
- }
-
- return $a;
- }
-
- public static function castStreamContext($stream, array $a, Stub $stub, $isNested)
- {
- return @stream_context_get_params($stream) ?: $a;
- }
-
- public static function castGd($gd, array $a, Stub $stub, $isNested)
- {
- $a['size'] = imagesx($gd).'x'.imagesy($gd);
- $a['trueColor'] = imageistruecolor($gd);
-
- return $a;
- }
-
- public static function castMysqlLink($h, array $a, Stub $stub, $isNested)
- {
- $a['host'] = mysql_get_host_info($h);
- $a['protocol'] = mysql_get_proto_info($h);
- $a['server'] = mysql_get_server_info($h);
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/SplCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/SplCaster.php
deleted file mode 100644
index a223adb7..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/SplCaster.php
+++ /dev/null
@@ -1,213 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts SPL related classes to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class SplCaster
-{
- private static $splFileObjectFlags = [
- \SplFileObject::DROP_NEW_LINE => 'DROP_NEW_LINE',
- \SplFileObject::READ_AHEAD => 'READ_AHEAD',
- \SplFileObject::SKIP_EMPTY => 'SKIP_EMPTY',
- \SplFileObject::READ_CSV => 'READ_CSV',
- ];
-
- public static function castArrayObject(\ArrayObject $c, array $a, Stub $stub, $isNested)
- {
- return self::castSplArray($c, $a, $stub, $isNested);
- }
-
- public static function castArrayIterator(\ArrayIterator $c, array $a, Stub $stub, $isNested)
- {
- return self::castSplArray($c, $a, $stub, $isNested);
- }
-
- public static function castHeap(\Iterator $c, array $a, Stub $stub, $isNested)
- {
- $a += [
- Caster::PREFIX_VIRTUAL.'heap' => iterator_to_array(clone $c),
- ];
-
- return $a;
- }
-
- public static function castDoublyLinkedList(\SplDoublyLinkedList $c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
- $mode = $c->getIteratorMode();
- $c->setIteratorMode(\SplDoublyLinkedList::IT_MODE_KEEP | $mode & ~\SplDoublyLinkedList::IT_MODE_DELETE);
-
- $a += [
- $prefix.'mode' => new ConstStub((($mode & \SplDoublyLinkedList::IT_MODE_LIFO) ? 'IT_MODE_LIFO' : 'IT_MODE_FIFO').' | '.(($mode & \SplDoublyLinkedList::IT_MODE_DELETE) ? 'IT_MODE_DELETE' : 'IT_MODE_KEEP'), $mode),
- $prefix.'dllist' => iterator_to_array($c),
- ];
- $c->setIteratorMode($mode);
-
- return $a;
- }
-
- public static function castFileInfo(\SplFileInfo $c, array $a, Stub $stub, $isNested)
- {
- static $map = [
- 'path' => 'getPath',
- 'filename' => 'getFilename',
- 'basename' => 'getBasename',
- 'pathname' => 'getPathname',
- 'extension' => 'getExtension',
- 'realPath' => 'getRealPath',
- 'aTime' => 'getATime',
- 'mTime' => 'getMTime',
- 'cTime' => 'getCTime',
- 'inode' => 'getInode',
- 'size' => 'getSize',
- 'perms' => 'getPerms',
- 'owner' => 'getOwner',
- 'group' => 'getGroup',
- 'type' => 'getType',
- 'writable' => 'isWritable',
- 'readable' => 'isReadable',
- 'executable' => 'isExecutable',
- 'file' => 'isFile',
- 'dir' => 'isDir',
- 'link' => 'isLink',
- 'linkTarget' => 'getLinkTarget',
- ];
-
- $prefix = Caster::PREFIX_VIRTUAL;
-
- foreach ($map as $key => $accessor) {
- try {
- $a[$prefix.$key] = $c->$accessor();
- } catch (\Exception $e) {
- }
- }
-
- if (isset($a[$prefix.'realPath'])) {
- $a[$prefix.'realPath'] = new LinkStub($a[$prefix.'realPath']);
- }
-
- if (isset($a[$prefix.'perms'])) {
- $a[$prefix.'perms'] = new ConstStub(sprintf('0%o', $a[$prefix.'perms']), $a[$prefix.'perms']);
- }
-
- static $mapDate = ['aTime', 'mTime', 'cTime'];
- foreach ($mapDate as $key) {
- if (isset($a[$prefix.$key])) {
- $a[$prefix.$key] = new ConstStub(date('Y-m-d H:i:s', $a[$prefix.$key]), $a[$prefix.$key]);
- }
- }
-
- return $a;
- }
-
- public static function castFileObject(\SplFileObject $c, array $a, Stub $stub, $isNested)
- {
- static $map = [
- 'csvControl' => 'getCsvControl',
- 'flags' => 'getFlags',
- 'maxLineLen' => 'getMaxLineLen',
- 'fstat' => 'fstat',
- 'eof' => 'eof',
- 'key' => 'key',
- ];
-
- $prefix = Caster::PREFIX_VIRTUAL;
-
- foreach ($map as $key => $accessor) {
- try {
- $a[$prefix.$key] = $c->$accessor();
- } catch (\Exception $e) {
- }
- }
-
- if (isset($a[$prefix.'flags'])) {
- $flagsArray = [];
- foreach (self::$splFileObjectFlags as $value => $name) {
- if ($a[$prefix.'flags'] & $value) {
- $flagsArray[] = $name;
- }
- }
- $a[$prefix.'flags'] = new ConstStub(implode('|', $flagsArray), $a[$prefix.'flags']);
- }
-
- if (isset($a[$prefix.'fstat'])) {
- $a[$prefix.'fstat'] = new CutArrayStub($a[$prefix.'fstat'], ['dev', 'ino', 'nlink', 'rdev', 'blksize', 'blocks']);
- }
-
- return $a;
- }
-
- public static function castFixedArray(\SplFixedArray $c, array $a, Stub $stub, $isNested)
- {
- $a += [
- Caster::PREFIX_VIRTUAL.'storage' => $c->toArray(),
- ];
-
- return $a;
- }
-
- public static function castObjectStorage(\SplObjectStorage $c, array $a, Stub $stub, $isNested)
- {
- $storage = [];
- unset($a[Caster::PREFIX_DYNAMIC."\0gcdata"]); // Don't hit https://bugs.php.net/65967
-
- $clone = clone $c;
- foreach ($clone as $obj) {
- $storage[] = [
- 'object' => $obj,
- 'info' => $clone->getInfo(),
- ];
- }
-
- $a += [
- Caster::PREFIX_VIRTUAL.'storage' => $storage,
- ];
-
- return $a;
- }
-
- public static function castOuterIterator(\OuterIterator $c, array $a, Stub $stub, $isNested)
- {
- $a[Caster::PREFIX_VIRTUAL.'innerIterator'] = $c->getInnerIterator();
-
- return $a;
- }
-
- private static function castSplArray($c, array $a, Stub $stub, $isNested)
- {
- $prefix = Caster::PREFIX_VIRTUAL;
- $class = $stub->class;
- $flags = $c->getFlags();
-
- if (!($flags & \ArrayObject::STD_PROP_LIST)) {
- $c->setFlags(\ArrayObject::STD_PROP_LIST);
- $a = Caster::castObject($c, $class);
- $c->setFlags($flags);
- }
- $a += [
- $prefix.'flag::STD_PROP_LIST' => (bool) ($flags & \ArrayObject::STD_PROP_LIST),
- $prefix.'flag::ARRAY_AS_PROPS' => (bool) ($flags & \ArrayObject::ARRAY_AS_PROPS),
- ];
- if ($c instanceof \ArrayObject) {
- $a[$prefix.'iteratorClass'] = new ClassStub($c->getIteratorClass());
- }
- $a[$prefix.'storage'] = $c->getArrayCopy();
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/StubCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/StubCaster.php
deleted file mode 100644
index 9927d426..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/StubCaster.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts a caster's Stub.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class StubCaster
-{
- public static function castStub(Stub $c, array $a, Stub $stub, $isNested)
- {
- if ($isNested) {
- $stub->type = $c->type;
- $stub->class = $c->class;
- $stub->value = $c->value;
- $stub->handle = $c->handle;
- $stub->cut = $c->cut;
- $stub->attr = $c->attr;
-
- if (Stub::TYPE_REF === $c->type && !$c->class && \is_string($c->value) && !preg_match('//u', $c->value)) {
- $stub->type = Stub::TYPE_STRING;
- $stub->class = Stub::STRING_BINARY;
- }
-
- $a = [];
- }
-
- return $a;
- }
-
- public static function castCutArray(CutArrayStub $c, array $a, Stub $stub, $isNested)
- {
- return $isNested ? $c->preservedSubset : $a;
- }
-
- public static function cutInternals($obj, array $a, Stub $stub, $isNested)
- {
- if ($isNested) {
- $stub->cut += \count($a);
-
- return [];
- }
-
- return $a;
- }
-
- public static function castEnum(EnumStub $c, array $a, Stub $stub, $isNested)
- {
- if ($isNested) {
- $stub->class = $c->dumpKeys ? '' : null;
- $stub->handle = 0;
- $stub->value = null;
- $stub->cut = $c->cut;
- $stub->attr = $c->attr;
-
- $a = [];
-
- if ($c->value) {
- foreach (array_keys($c->value) as $k) {
- $keys[] = !isset($k[0]) || "\0" !== $k[0] ? Caster::PREFIX_VIRTUAL.$k : $k;
- }
- // Preserve references with array_combine()
- $a = array_combine($keys, $c->value);
- }
- }
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/SymfonyCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/SymfonyCaster.php
deleted file mode 100644
index ae7134f5..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/SymfonyCaster.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-class SymfonyCaster
-{
- private static $requestGetters = [
- 'pathInfo' => 'getPathInfo',
- 'requestUri' => 'getRequestUri',
- 'baseUrl' => 'getBaseUrl',
- 'basePath' => 'getBasePath',
- 'method' => 'getMethod',
- 'format' => 'getRequestFormat',
- ];
-
- public static function castRequest(Request $request, array $a, Stub $stub, $isNested)
- {
- $clone = null;
-
- foreach (self::$requestGetters as $prop => $getter) {
- if (null === $a[Caster::PREFIX_PROTECTED.$prop]) {
- if (null === $clone) {
- $clone = clone $request;
- }
- $a[Caster::PREFIX_VIRTUAL.$prop] = $clone->{$getter}();
- }
- }
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/TraceStub.php b/www/wiki/vendor/symfony/var-dumper/Caster/TraceStub.php
deleted file mode 100644
index 59548aca..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/TraceStub.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Represents a backtrace as returned by debug_backtrace() or Exception->getTrace().
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class TraceStub extends Stub
-{
- public $keepArgs;
- public $sliceOffset;
- public $sliceLength;
- public $numberingOffset;
-
- public function __construct(array $trace, $keepArgs = true, $sliceOffset = 0, $sliceLength = null, $numberingOffset = 0)
- {
- $this->value = $trace;
- $this->keepArgs = $keepArgs;
- $this->sliceOffset = $sliceOffset;
- $this->sliceLength = $sliceLength;
- $this->numberingOffset = $numberingOffset;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php
deleted file mode 100644
index 3ae9ec0b..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts XmlReader class to array representation.
- *
- * @author Baptiste Clavié <clavie.b@gmail.com>
- */
-class XmlReaderCaster
-{
- private static $nodeTypes = [
- \XMLReader::NONE => 'NONE',
- \XMLReader::ELEMENT => 'ELEMENT',
- \XMLReader::ATTRIBUTE => 'ATTRIBUTE',
- \XMLReader::TEXT => 'TEXT',
- \XMLReader::CDATA => 'CDATA',
- \XMLReader::ENTITY_REF => 'ENTITY_REF',
- \XMLReader::ENTITY => 'ENTITY',
- \XMLReader::PI => 'PI (Processing Instruction)',
- \XMLReader::COMMENT => 'COMMENT',
- \XMLReader::DOC => 'DOC',
- \XMLReader::DOC_TYPE => 'DOC_TYPE',
- \XMLReader::DOC_FRAGMENT => 'DOC_FRAGMENT',
- \XMLReader::NOTATION => 'NOTATION',
- \XMLReader::WHITESPACE => 'WHITESPACE',
- \XMLReader::SIGNIFICANT_WHITESPACE => 'SIGNIFICANT_WHITESPACE',
- \XMLReader::END_ELEMENT => 'END_ELEMENT',
- \XMLReader::END_ENTITY => 'END_ENTITY',
- \XMLReader::XML_DECLARATION => 'XML_DECLARATION',
- ];
-
- public static function castXmlReader(\XMLReader $reader, array $a, Stub $stub, $isNested)
- {
- $props = Caster::PREFIX_VIRTUAL.'parserProperties';
- $info = [
- 'localName' => $reader->localName,
- 'prefix' => $reader->prefix,
- 'nodeType' => new ConstStub(self::$nodeTypes[$reader->nodeType], $reader->nodeType),
- 'depth' => $reader->depth,
- 'isDefault' => $reader->isDefault,
- 'isEmptyElement' => \XMLReader::NONE === $reader->nodeType ? null : $reader->isEmptyElement,
- 'xmlLang' => $reader->xmlLang,
- 'attributeCount' => $reader->attributeCount,
- 'value' => $reader->value,
- 'namespaceURI' => $reader->namespaceURI,
- 'baseURI' => $reader->baseURI ? new LinkStub($reader->baseURI) : $reader->baseURI,
- $props => [
- 'LOADDTD' => $reader->getParserProperty(\XMLReader::LOADDTD),
- 'DEFAULTATTRS' => $reader->getParserProperty(\XMLReader::DEFAULTATTRS),
- 'VALIDATE' => $reader->getParserProperty(\XMLReader::VALIDATE),
- 'SUBST_ENTITIES' => $reader->getParserProperty(\XMLReader::SUBST_ENTITIES),
- ],
- ];
-
- if ($info[$props] = Caster::filter($info[$props], Caster::EXCLUDE_EMPTY, [], $count)) {
- $info[$props] = new EnumStub($info[$props]);
- $info[$props]->cut = $count;
- }
-
- $info = Caster::filter($info, Caster::EXCLUDE_EMPTY, [], $count);
- // +2 because hasValue and hasAttributes are always filtered
- $stub->cut += $count + 2;
-
- return $a + $info;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Caster/XmlResourceCaster.php b/www/wiki/vendor/symfony/var-dumper/Caster/XmlResourceCaster.php
deleted file mode 100644
index 117138c7..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Caster/XmlResourceCaster.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Caster;
-
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * Casts XML resources to array representation.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class XmlResourceCaster
-{
- private static $xmlErrors = [
- XML_ERROR_NONE => 'XML_ERROR_NONE',
- XML_ERROR_NO_MEMORY => 'XML_ERROR_NO_MEMORY',
- XML_ERROR_SYNTAX => 'XML_ERROR_SYNTAX',
- XML_ERROR_NO_ELEMENTS => 'XML_ERROR_NO_ELEMENTS',
- XML_ERROR_INVALID_TOKEN => 'XML_ERROR_INVALID_TOKEN',
- XML_ERROR_UNCLOSED_TOKEN => 'XML_ERROR_UNCLOSED_TOKEN',
- XML_ERROR_PARTIAL_CHAR => 'XML_ERROR_PARTIAL_CHAR',
- XML_ERROR_TAG_MISMATCH => 'XML_ERROR_TAG_MISMATCH',
- XML_ERROR_DUPLICATE_ATTRIBUTE => 'XML_ERROR_DUPLICATE_ATTRIBUTE',
- XML_ERROR_JUNK_AFTER_DOC_ELEMENT => 'XML_ERROR_JUNK_AFTER_DOC_ELEMENT',
- XML_ERROR_PARAM_ENTITY_REF => 'XML_ERROR_PARAM_ENTITY_REF',
- XML_ERROR_UNDEFINED_ENTITY => 'XML_ERROR_UNDEFINED_ENTITY',
- XML_ERROR_RECURSIVE_ENTITY_REF => 'XML_ERROR_RECURSIVE_ENTITY_REF',
- XML_ERROR_ASYNC_ENTITY => 'XML_ERROR_ASYNC_ENTITY',
- XML_ERROR_BAD_CHAR_REF => 'XML_ERROR_BAD_CHAR_REF',
- XML_ERROR_BINARY_ENTITY_REF => 'XML_ERROR_BINARY_ENTITY_REF',
- XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF => 'XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF',
- XML_ERROR_MISPLACED_XML_PI => 'XML_ERROR_MISPLACED_XML_PI',
- XML_ERROR_UNKNOWN_ENCODING => 'XML_ERROR_UNKNOWN_ENCODING',
- XML_ERROR_INCORRECT_ENCODING => 'XML_ERROR_INCORRECT_ENCODING',
- XML_ERROR_UNCLOSED_CDATA_SECTION => 'XML_ERROR_UNCLOSED_CDATA_SECTION',
- XML_ERROR_EXTERNAL_ENTITY_HANDLING => 'XML_ERROR_EXTERNAL_ENTITY_HANDLING',
- ];
-
- public static function castXml($h, array $a, Stub $stub, $isNested)
- {
- $a['current_byte_index'] = xml_get_current_byte_index($h);
- $a['current_column_number'] = xml_get_current_column_number($h);
- $a['current_line_number'] = xml_get_current_line_number($h);
- $a['error_code'] = xml_get_error_code($h);
-
- if (isset(self::$xmlErrors[$a['error_code']])) {
- $a['error_code'] = new ConstStub(self::$xmlErrors[$a['error_code']], $a['error_code']);
- }
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Cloner/AbstractCloner.php b/www/wiki/vendor/symfony/var-dumper/Cloner/AbstractCloner.php
deleted file mode 100644
index de09f180..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Cloner/AbstractCloner.php
+++ /dev/null
@@ -1,332 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Cloner;
-
-use Symfony\Component\VarDumper\Caster\Caster;
-use Symfony\Component\VarDumper\Exception\ThrowingCasterException;
-
-/**
- * AbstractCloner implements a generic caster mechanism for objects and resources.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-abstract class AbstractCloner implements ClonerInterface
-{
- public static $defaultCasters = [
- '__PHP_Incomplete_Class' => ['Symfony\Component\VarDumper\Caster\Caster', 'castPhpIncompleteClass'],
-
- 'Symfony\Component\VarDumper\Caster\CutStub' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'castStub'],
- 'Symfony\Component\VarDumper\Caster\CutArrayStub' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'castCutArray'],
- 'Symfony\Component\VarDumper\Caster\ConstStub' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'castStub'],
- 'Symfony\Component\VarDumper\Caster\EnumStub' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'castEnum'],
-
- 'Closure' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castClosure'],
- 'Generator' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castGenerator'],
- 'ReflectionType' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castType'],
- 'ReflectionGenerator' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castReflectionGenerator'],
- 'ReflectionClass' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castClass'],
- 'ReflectionFunctionAbstract' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castFunctionAbstract'],
- 'ReflectionMethod' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castMethod'],
- 'ReflectionParameter' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castParameter'],
- 'ReflectionProperty' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castProperty'],
- 'ReflectionExtension' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castExtension'],
- 'ReflectionZendExtension' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castZendExtension'],
-
- 'Doctrine\Common\Persistence\ObjectManager' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'],
- 'Doctrine\Common\Proxy\Proxy' => ['Symfony\Component\VarDumper\Caster\DoctrineCaster', 'castCommonProxy'],
- 'Doctrine\ORM\Proxy\Proxy' => ['Symfony\Component\VarDumper\Caster\DoctrineCaster', 'castOrmProxy'],
- 'Doctrine\ORM\PersistentCollection' => ['Symfony\Component\VarDumper\Caster\DoctrineCaster', 'castPersistentCollection'],
-
- 'DOMException' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castException'],
- 'DOMStringList' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castLength'],
- 'DOMNameList' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castLength'],
- 'DOMImplementation' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castImplementation'],
- 'DOMImplementationList' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castLength'],
- 'DOMNode' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castNode'],
- 'DOMNameSpaceNode' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castNameSpaceNode'],
- 'DOMDocument' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDocument'],
- 'DOMNodeList' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castLength'],
- 'DOMNamedNodeMap' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castLength'],
- 'DOMCharacterData' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castCharacterData'],
- 'DOMAttr' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castAttr'],
- 'DOMElement' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castElement'],
- 'DOMText' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castText'],
- 'DOMTypeinfo' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castTypeinfo'],
- 'DOMDomError' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDomError'],
- 'DOMLocator' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castLocator'],
- 'DOMDocumentType' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDocumentType'],
- 'DOMNotation' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castNotation'],
- 'DOMEntity' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castEntity'],
- 'DOMProcessingInstruction' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castProcessingInstruction'],
- 'DOMXPath' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castXPath'],
-
- 'XmlReader' => ['Symfony\Component\VarDumper\Caster\XmlReaderCaster', 'castXmlReader'],
-
- 'ErrorException' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castErrorException'],
- 'Exception' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castException'],
- 'Error' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castError'],
- 'Symfony\Component\DependencyInjection\ContainerInterface' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'],
- 'Symfony\Component\HttpFoundation\Request' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castRequest'],
- 'Symfony\Component\VarDumper\Exception\ThrowingCasterException' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castThrowingCasterException'],
- 'Symfony\Component\VarDumper\Caster\TraceStub' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castTraceStub'],
- 'Symfony\Component\VarDumper\Caster\FrameStub' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castFrameStub'],
- 'Symfony\Component\Debug\Exception\SilencedErrorContext' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castSilencedErrorContext'],
-
- 'PHPUnit_Framework_MockObject_MockObject' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'],
- 'Prophecy\Prophecy\ProphecySubjectInterface' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'],
- 'Mockery\MockInterface' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'],
-
- 'PDO' => ['Symfony\Component\VarDumper\Caster\PdoCaster', 'castPdo'],
- 'PDOStatement' => ['Symfony\Component\VarDumper\Caster\PdoCaster', 'castPdoStatement'],
-
- 'AMQPConnection' => ['Symfony\Component\VarDumper\Caster\AmqpCaster', 'castConnection'],
- 'AMQPChannel' => ['Symfony\Component\VarDumper\Caster\AmqpCaster', 'castChannel'],
- 'AMQPQueue' => ['Symfony\Component\VarDumper\Caster\AmqpCaster', 'castQueue'],
- 'AMQPExchange' => ['Symfony\Component\VarDumper\Caster\AmqpCaster', 'castExchange'],
- 'AMQPEnvelope' => ['Symfony\Component\VarDumper\Caster\AmqpCaster', 'castEnvelope'],
-
- 'ArrayObject' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castArrayObject'],
- 'ArrayIterator' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castArrayIterator'],
- 'SplDoublyLinkedList' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castDoublyLinkedList'],
- 'SplFileInfo' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castFileInfo'],
- 'SplFileObject' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castFileObject'],
- 'SplFixedArray' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castFixedArray'],
- 'SplHeap' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castHeap'],
- 'SplObjectStorage' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castObjectStorage'],
- 'SplPriorityQueue' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castHeap'],
- 'OuterIterator' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castOuterIterator'],
-
- 'MongoCursorInterface' => ['Symfony\Component\VarDumper\Caster\MongoCaster', 'castCursor'],
-
- 'Redis' => ['Symfony\Component\VarDumper\Caster\RedisCaster', 'castRedis'],
- 'RedisArray' => ['Symfony\Component\VarDumper\Caster\RedisCaster', 'castRedisArray'],
-
- 'DateTimeInterface' => ['Symfony\Component\VarDumper\Caster\DateCaster', 'castDateTime'],
- 'DateInterval' => ['Symfony\Component\VarDumper\Caster\DateCaster', 'castInterval'],
- 'DateTimeZone' => ['Symfony\Component\VarDumper\Caster\DateCaster', 'castTimeZone'],
- 'DatePeriod' => ['Symfony\Component\VarDumper\Caster\DateCaster', 'castPeriod'],
-
- ':curl' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castCurl'],
- ':dba' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castDba'],
- ':dba persistent' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castDba'],
- ':gd' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castGd'],
- ':mysql link' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castMysqlLink'],
- ':pgsql large object' => ['Symfony\Component\VarDumper\Caster\PgSqlCaster', 'castLargeObject'],
- ':pgsql link' => ['Symfony\Component\VarDumper\Caster\PgSqlCaster', 'castLink'],
- ':pgsql link persistent' => ['Symfony\Component\VarDumper\Caster\PgSqlCaster', 'castLink'],
- ':pgsql result' => ['Symfony\Component\VarDumper\Caster\PgSqlCaster', 'castResult'],
- ':process' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castProcess'],
- ':stream' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castStream'],
- ':persistent stream' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castStream'],
- ':stream-context' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castStreamContext'],
- ':xml' => ['Symfony\Component\VarDumper\Caster\XmlResourceCaster', 'castXml'],
- ];
-
- protected $maxItems = 2500;
- protected $maxString = -1;
- protected $minDepth = 1;
- protected $useExt;
-
- private $casters = [];
- private $prevErrorHandler;
- private $classInfo = [];
- private $filter = 0;
-
- /**
- * @param callable[]|null $casters A map of casters
- *
- * @see addCasters
- */
- public function __construct(array $casters = null)
- {
- if (null === $casters) {
- $casters = static::$defaultCasters;
- }
- $this->addCasters($casters);
- $this->useExt = \extension_loaded('symfony_debug');
- }
-
- /**
- * Adds casters for resources and objects.
- *
- * Maps resources or objects types to a callback.
- * Types are in the key, with a callable caster for value.
- * Resource types are to be prefixed with a `:`,
- * see e.g. static::$defaultCasters.
- *
- * @param callable[] $casters A map of casters
- */
- public function addCasters(array $casters)
- {
- foreach ($casters as $type => $callback) {
- $this->casters[strtolower($type)][] = \is_string($callback) && false !== strpos($callback, '::') ? explode('::', $callback, 2) : $callback;
- }
- }
-
- /**
- * Sets the maximum number of items to clone past the minimum depth in nested structures.
- *
- * @param int $maxItems
- */
- public function setMaxItems($maxItems)
- {
- $this->maxItems = (int) $maxItems;
- }
-
- /**
- * Sets the maximum cloned length for strings.
- *
- * @param int $maxString
- */
- public function setMaxString($maxString)
- {
- $this->maxString = (int) $maxString;
- }
-
- /**
- * Sets the minimum tree depth where we are guaranteed to clone all the items. After this
- * depth is reached, only setMaxItems items will be cloned.
- *
- * @param int $minDepth
- */
- public function setMinDepth($minDepth)
- {
- $this->minDepth = (int) $minDepth;
- }
-
- /**
- * Clones a PHP variable.
- *
- * @param mixed $var Any PHP variable
- * @param int $filter A bit field of Caster::EXCLUDE_* constants
- *
- * @return Data The cloned variable represented by a Data object
- */
- public function cloneVar($var, $filter = 0)
- {
- $this->prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) {
- if (E_RECOVERABLE_ERROR === $type || E_USER_ERROR === $type) {
- // Cloner never dies
- throw new \ErrorException($msg, 0, $type, $file, $line);
- }
-
- if ($this->prevErrorHandler) {
- return \call_user_func($this->prevErrorHandler, $type, $msg, $file, $line, $context);
- }
-
- return false;
- });
- $this->filter = $filter;
-
- if ($gc = gc_enabled()) {
- gc_disable();
- }
- try {
- return new Data($this->doClone($var));
- } finally {
- if ($gc) {
- gc_enable();
- }
- restore_error_handler();
- $this->prevErrorHandler = null;
- }
- }
-
- /**
- * Effectively clones the PHP variable.
- *
- * @param mixed $var Any PHP variable
- *
- * @return array The cloned variable represented in an array
- */
- abstract protected function doClone($var);
-
- /**
- * Casts an object to an array representation.
- *
- * @param Stub $stub The Stub for the casted object
- * @param bool $isNested True if the object is nested in the dumped structure
- *
- * @return array The object casted as array
- */
- protected function castObject(Stub $stub, $isNested)
- {
- $obj = $stub->value;
- $class = $stub->class;
-
- if (isset($class[15]) && "\0" === $class[15] && 0 === strpos($class, "class@anonymous\x00")) {
- $stub->class = get_parent_class($class).'@anonymous';
- }
- if (isset($this->classInfo[$class])) {
- list($i, $parents, $hasDebugInfo) = $this->classInfo[$class];
- } else {
- $i = 2;
- $parents = [strtolower($class)];
- $hasDebugInfo = method_exists($class, '__debugInfo');
-
- foreach (class_parents($class) as $p) {
- $parents[] = strtolower($p);
- ++$i;
- }
- foreach (class_implements($class) as $p) {
- $parents[] = strtolower($p);
- ++$i;
- }
- $parents[] = '*';
-
- $this->classInfo[$class] = [$i, $parents, $hasDebugInfo];
- }
-
- $a = Caster::castObject($obj, $class, $hasDebugInfo);
-
- try {
- while ($i--) {
- if (!empty($this->casters[$p = $parents[$i]])) {
- foreach ($this->casters[$p] as $callback) {
- $a = $callback($obj, $a, $stub, $isNested, $this->filter);
- }
- }
- }
- } catch (\Exception $e) {
- $a = [(Stub::TYPE_OBJECT === $stub->type ? Caster::PREFIX_VIRTUAL : '').'⚠' => new ThrowingCasterException($e)] + $a;
- }
-
- return $a;
- }
-
- /**
- * Casts a resource to an array representation.
- *
- * @param Stub $stub The Stub for the casted resource
- * @param bool $isNested True if the object is nested in the dumped structure
- *
- * @return array The resource casted as array
- */
- protected function castResource(Stub $stub, $isNested)
- {
- $a = [];
- $res = $stub->value;
- $type = $stub->class;
-
- try {
- if (!empty($this->casters[':'.$type])) {
- foreach ($this->casters[':'.$type] as $callback) {
- $a = $callback($res, $a, $stub, $isNested, $this->filter);
- }
- }
- } catch (\Exception $e) {
- $a = [(Stub::TYPE_OBJECT === $stub->type ? Caster::PREFIX_VIRTUAL : '').'⚠' => new ThrowingCasterException($e)] + $a;
- }
-
- return $a;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Cloner/ClonerInterface.php b/www/wiki/vendor/symfony/var-dumper/Cloner/ClonerInterface.php
deleted file mode 100644
index 7ed287a2..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Cloner/ClonerInterface.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Cloner;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-interface ClonerInterface
-{
- /**
- * Clones a PHP variable.
- *
- * @param mixed $var Any PHP variable
- *
- * @return Data The cloned variable represented by a Data object
- */
- public function cloneVar($var);
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Cloner/Cursor.php b/www/wiki/vendor/symfony/var-dumper/Cloner/Cursor.php
deleted file mode 100644
index 5b0542f6..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Cloner/Cursor.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Cloner;
-
-/**
- * Represents the current state of a dumper while dumping.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class Cursor
-{
- const HASH_INDEXED = Stub::ARRAY_INDEXED;
- const HASH_ASSOC = Stub::ARRAY_ASSOC;
- const HASH_OBJECT = Stub::TYPE_OBJECT;
- const HASH_RESOURCE = Stub::TYPE_RESOURCE;
-
- public $depth = 0;
- public $refIndex = 0;
- public $softRefTo = 0;
- public $softRefCount = 0;
- public $softRefHandle = 0;
- public $hardRefTo = 0;
- public $hardRefCount = 0;
- public $hardRefHandle = 0;
- public $hashType;
- public $hashKey;
- public $hashKeyIsBinary;
- public $hashIndex = 0;
- public $hashLength = 0;
- public $hashCut = 0;
- public $stop = false;
- public $attr = [];
- public $skipChildren = false;
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Cloner/Data.php b/www/wiki/vendor/symfony/var-dumper/Cloner/Data.php
deleted file mode 100644
index bb5ee94d..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Cloner/Data.php
+++ /dev/null
@@ -1,437 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Cloner;
-
-use Symfony\Component\VarDumper\Caster\Caster;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class Data implements \ArrayAccess, \Countable, \IteratorAggregate
-{
- private $data;
- private $position = 0;
- private $key = 0;
- private $maxDepth = 20;
- private $maxItemsPerDepth = -1;
- private $useRefHandles = -1;
-
- /**
- * @param array $data An array as returned by ClonerInterface::cloneVar()
- */
- public function __construct(array $data)
- {
- $this->data = $data;
- }
-
- /**
- * @return string The type of the value
- */
- public function getType()
- {
- $item = $this->data[$this->position][$this->key];
-
- if ($item instanceof Stub && Stub::TYPE_REF === $item->type && !$item->position) {
- $item = $item->value;
- }
- if (!$item instanceof Stub) {
- return \gettype($item);
- }
- if (Stub::TYPE_STRING === $item->type) {
- return 'string';
- }
- if (Stub::TYPE_ARRAY === $item->type) {
- return 'array';
- }
- if (Stub::TYPE_OBJECT === $item->type) {
- return $item->class;
- }
- if (Stub::TYPE_RESOURCE === $item->type) {
- return $item->class.' resource';
- }
- }
-
- /**
- * @param bool $recursive Whether values should be resolved recursively or not
- *
- * @return string|int|float|bool|array|Data[]|null A native representation of the original value
- */
- public function getValue($recursive = false)
- {
- $item = $this->data[$this->position][$this->key];
-
- if ($item instanceof Stub && Stub::TYPE_REF === $item->type && !$item->position) {
- $item = $item->value;
- }
- if (!($item = $this->getStub($item)) instanceof Stub) {
- return $item;
- }
- if (Stub::TYPE_STRING === $item->type) {
- return $item->value;
- }
-
- $children = $item->position ? $this->data[$item->position] : [];
-
- foreach ($children as $k => $v) {
- if ($recursive && !($v = $this->getStub($v)) instanceof Stub) {
- continue;
- }
- $children[$k] = clone $this;
- $children[$k]->key = $k;
- $children[$k]->position = $item->position;
-
- if ($recursive) {
- if (Stub::TYPE_REF === $v->type && ($v = $this->getStub($v->value)) instanceof Stub) {
- $recursive = (array) $recursive;
- if (isset($recursive[$v->position])) {
- continue;
- }
- $recursive[$v->position] = true;
- }
- $children[$k] = $children[$k]->getValue($recursive);
- }
- }
-
- return $children;
- }
-
- public function count()
- {
- return \count($this->getValue());
- }
-
- public function getIterator()
- {
- if (!\is_array($value = $this->getValue())) {
- throw new \LogicException(sprintf('%s object holds non-iterable type "%s".', self::class, \gettype($value)));
- }
-
- foreach ($value as $k => $v) {
- yield $k => $v;
- }
- }
-
- public function __get($key)
- {
- if (null !== $data = $this->seek($key)) {
- $item = $this->getStub($data->data[$data->position][$data->key]);
-
- return $item instanceof Stub || [] === $item ? $data : $item;
- }
- }
-
- public function __isset($key)
- {
- return null !== $this->seek($key);
- }
-
- public function offsetExists($key)
- {
- return $this->__isset($key);
- }
-
- public function offsetGet($key)
- {
- return $this->__get($key);
- }
-
- public function offsetSet($key, $value)
- {
- throw new \BadMethodCallException(self::class.' objects are immutable.');
- }
-
- public function offsetUnset($key)
- {
- throw new \BadMethodCallException(self::class.' objects are immutable.');
- }
-
- public function __toString()
- {
- $value = $this->getValue();
-
- if (!\is_array($value)) {
- return (string) $value;
- }
-
- return sprintf('%s (count=%d)', $this->getType(), \count($value));
- }
-
- /**
- * @return array The raw data structure
- *
- * @deprecated since version 3.3. Use array or object access instead.
- */
- public function getRawData()
- {
- @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.3 and will be removed in 4.0. Use the array or object access instead.', __METHOD__));
-
- return $this->data;
- }
-
- /**
- * Returns a depth limited clone of $this.
- *
- * @param int $maxDepth The max dumped depth level
- *
- * @return self A clone of $this
- */
- public function withMaxDepth($maxDepth)
- {
- $data = clone $this;
- $data->maxDepth = (int) $maxDepth;
-
- return $data;
- }
-
- /**
- * Limits the number of elements per depth level.
- *
- * @param int $maxItemsPerDepth The max number of items dumped per depth level
- *
- * @return self A clone of $this
- */
- public function withMaxItemsPerDepth($maxItemsPerDepth)
- {
- $data = clone $this;
- $data->maxItemsPerDepth = (int) $maxItemsPerDepth;
-
- return $data;
- }
-
- /**
- * Enables/disables objects' identifiers tracking.
- *
- * @param bool $useRefHandles False to hide global ref. handles
- *
- * @return self A clone of $this
- */
- public function withRefHandles($useRefHandles)
- {
- $data = clone $this;
- $data->useRefHandles = $useRefHandles ? -1 : 0;
-
- return $data;
- }
-
- /**
- * Seeks to a specific key in nested data structures.
- *
- * @param string|int $key The key to seek to
- *
- * @return self|null A clone of $this or null if the key is not set
- */
- public function seek($key)
- {
- $item = $this->data[$this->position][$this->key];
-
- if ($item instanceof Stub && Stub::TYPE_REF === $item->type && !$item->position) {
- $item = $item->value;
- }
- if (!($item = $this->getStub($item)) instanceof Stub || !$item->position) {
- return;
- }
- $keys = [$key];
-
- switch ($item->type) {
- case Stub::TYPE_OBJECT:
- $keys[] = Caster::PREFIX_DYNAMIC.$key;
- $keys[] = Caster::PREFIX_PROTECTED.$key;
- $keys[] = Caster::PREFIX_VIRTUAL.$key;
- $keys[] = "\0$item->class\0$key";
- // no break
- case Stub::TYPE_ARRAY:
- case Stub::TYPE_RESOURCE:
- break;
- default:
- return;
- }
-
- $data = null;
- $children = $this->data[$item->position];
-
- foreach ($keys as $key) {
- if (isset($children[$key]) || \array_key_exists($key, $children)) {
- $data = clone $this;
- $data->key = $key;
- $data->position = $item->position;
- break;
- }
- }
-
- return $data;
- }
-
- /**
- * Dumps data with a DumperInterface dumper.
- */
- public function dump(DumperInterface $dumper)
- {
- $refs = [0];
- $this->dumpItem($dumper, new Cursor(), $refs, $this->data[$this->position][$this->key]);
- }
-
- /**
- * Depth-first dumping of items.
- *
- * @param DumperInterface $dumper The dumper being used for dumping
- * @param Cursor $cursor A cursor used for tracking dumper state position
- * @param array &$refs A map of all references discovered while dumping
- * @param mixed $item A Stub object or the original value being dumped
- */
- private function dumpItem($dumper, $cursor, &$refs, $item)
- {
- $cursor->refIndex = 0;
- $cursor->softRefTo = $cursor->softRefHandle = $cursor->softRefCount = 0;
- $cursor->hardRefTo = $cursor->hardRefHandle = $cursor->hardRefCount = 0;
- $firstSeen = true;
-
- if (!$item instanceof Stub) {
- $cursor->attr = [];
- $type = \gettype($item);
- if ($item && 'array' === $type) {
- $item = $this->getStub($item);
- }
- } elseif (Stub::TYPE_REF === $item->type) {
- if ($item->handle) {
- if (!isset($refs[$r = $item->handle - (PHP_INT_MAX >> 1)])) {
- $cursor->refIndex = $refs[$r] = $cursor->refIndex ?: ++$refs[0];
- } else {
- $firstSeen = false;
- }
- $cursor->hardRefTo = $refs[$r];
- $cursor->hardRefHandle = $this->useRefHandles & $item->handle;
- $cursor->hardRefCount = $item->refCount;
- }
- $cursor->attr = $item->attr;
- $type = $item->class ?: \gettype($item->value);
- $item = $this->getStub($item->value);
- }
- if ($item instanceof Stub) {
- if ($item->refCount) {
- if (!isset($refs[$r = $item->handle])) {
- $cursor->refIndex = $refs[$r] = $cursor->refIndex ?: ++$refs[0];
- } else {
- $firstSeen = false;
- }
- $cursor->softRefTo = $refs[$r];
- }
- $cursor->softRefHandle = $this->useRefHandles & $item->handle;
- $cursor->softRefCount = $item->refCount;
- $cursor->attr = $item->attr;
- $cut = $item->cut;
-
- if ($item->position && $firstSeen) {
- $children = $this->data[$item->position];
-
- if ($cursor->stop) {
- if ($cut >= 0) {
- $cut += \count($children);
- }
- $children = [];
- }
- } else {
- $children = [];
- }
- switch ($item->type) {
- case Stub::TYPE_STRING:
- $dumper->dumpString($cursor, $item->value, Stub::STRING_BINARY === $item->class, $cut);
- break;
-
- case Stub::TYPE_ARRAY:
- $item = clone $item;
- $item->type = $item->class;
- $item->class = $item->value;
- // no break
- case Stub::TYPE_OBJECT:
- case Stub::TYPE_RESOURCE:
- $withChildren = $children && $cursor->depth !== $this->maxDepth && $this->maxItemsPerDepth;
- $dumper->enterHash($cursor, $item->type, $item->class, $withChildren);
- if ($withChildren) {
- if ($cursor->skipChildren) {
- $withChildren = false;
- $cut = -1;
- } else {
- $cut = $this->dumpChildren($dumper, $cursor, $refs, $children, $cut, $item->type, null !== $item->class);
- }
- } elseif ($children && 0 <= $cut) {
- $cut += \count($children);
- }
- $cursor->skipChildren = false;
- $dumper->leaveHash($cursor, $item->type, $item->class, $withChildren, $cut);
- break;
-
- default:
- throw new \RuntimeException(sprintf('Unexpected Stub type: %s', $item->type));
- }
- } elseif ('array' === $type) {
- $dumper->enterHash($cursor, Cursor::HASH_INDEXED, 0, false);
- $dumper->leaveHash($cursor, Cursor::HASH_INDEXED, 0, false, 0);
- } elseif ('string' === $type) {
- $dumper->dumpString($cursor, $item, false, 0);
- } else {
- $dumper->dumpScalar($cursor, $type, $item);
- }
- }
-
- /**
- * Dumps children of hash structures.
- *
- * @param DumperInterface $dumper
- * @param Cursor $parentCursor The cursor of the parent hash
- * @param array &$refs A map of all references discovered while dumping
- * @param array $children The children to dump
- * @param int $hashCut The number of items removed from the original hash
- * @param string $hashType A Cursor::HASH_* const
- * @param bool $dumpKeys Whether keys should be dumped or not
- *
- * @return int The final number of removed items
- */
- private function dumpChildren($dumper, $parentCursor, &$refs, $children, $hashCut, $hashType, $dumpKeys)
- {
- $cursor = clone $parentCursor;
- ++$cursor->depth;
- $cursor->hashType = $hashType;
- $cursor->hashIndex = 0;
- $cursor->hashLength = \count($children);
- $cursor->hashCut = $hashCut;
- foreach ($children as $key => $child) {
- $cursor->hashKeyIsBinary = isset($key[0]) && !preg_match('//u', $key);
- $cursor->hashKey = $dumpKeys ? $key : null;
- $this->dumpItem($dumper, $cursor, $refs, $child);
- if (++$cursor->hashIndex === $this->maxItemsPerDepth || $cursor->stop) {
- $parentCursor->stop = true;
-
- return $hashCut >= 0 ? $hashCut + $cursor->hashLength - $cursor->hashIndex : $hashCut;
- }
- }
-
- return $hashCut;
- }
-
- private function getStub($item)
- {
- if (!$item || !\is_array($item)) {
- return $item;
- }
-
- $stub = new Stub();
- $stub->type = Stub::TYPE_ARRAY;
- foreach ($item as $stub->class => $stub->position) {
- }
- if (isset($item[0])) {
- $stub->cut = $item[0];
- }
- $stub->value = $stub->cut + ($stub->position ? \count($this->data[$stub->position]) : 0);
-
- return $stub;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Cloner/DumperInterface.php b/www/wiki/vendor/symfony/var-dumper/Cloner/DumperInterface.php
deleted file mode 100644
index cb498ff7..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Cloner/DumperInterface.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Cloner;
-
-/**
- * DumperInterface used by Data objects.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-interface DumperInterface
-{
- /**
- * Dumps a scalar value.
- *
- * @param Cursor $cursor The Cursor position in the dump
- * @param string $type The PHP type of the value being dumped
- * @param string|int|float|bool $value The scalar value being dumped
- */
- public function dumpScalar(Cursor $cursor, $type, $value);
-
- /**
- * Dumps a string.
- *
- * @param Cursor $cursor The Cursor position in the dump
- * @param string $str The string being dumped
- * @param bool $bin Whether $str is UTF-8 or binary encoded
- * @param int $cut The number of characters $str has been cut by
- */
- public function dumpString(Cursor $cursor, $str, $bin, $cut);
-
- /**
- * Dumps while entering an hash.
- *
- * @param Cursor $cursor The Cursor position in the dump
- * @param int $type A Cursor::HASH_* const for the type of hash
- * @param string $class The object class, resource type or array count
- * @param bool $hasChild When the dump of the hash has child item
- */
- public function enterHash(Cursor $cursor, $type, $class, $hasChild);
-
- /**
- * Dumps while leaving an hash.
- *
- * @param Cursor $cursor The Cursor position in the dump
- * @param int $type A Cursor::HASH_* const for the type of hash
- * @param string $class The object class, resource type or array count
- * @param bool $hasChild When the dump of the hash has child item
- * @param int $cut The number of items the hash has been cut by
- */
- public function leaveHash(Cursor $cursor, $type, $class, $hasChild, $cut);
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Cloner/Stub.php b/www/wiki/vendor/symfony/var-dumper/Cloner/Stub.php
deleted file mode 100644
index 27dd3ef3..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Cloner/Stub.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Cloner;
-
-/**
- * Represents the main properties of a PHP variable.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class Stub
-{
- const TYPE_REF = 1;
- const TYPE_STRING = 2;
- const TYPE_ARRAY = 3;
- const TYPE_OBJECT = 4;
- const TYPE_RESOURCE = 5;
-
- const STRING_BINARY = 1;
- const STRING_UTF8 = 2;
-
- const ARRAY_ASSOC = 1;
- const ARRAY_INDEXED = 2;
-
- public $type = self::TYPE_REF;
- public $class = '';
- public $value;
- public $cut = 0;
- public $handle = 0;
- public $refCount = 0;
- public $position = 0;
- public $attr = [];
-
- private static $defaultProperties = [];
-
- /**
- * @internal
- */
- public function __sleep()
- {
- $properties = [];
-
- if (!isset(self::$defaultProperties[$c = \get_class($this)])) {
- self::$defaultProperties[$c] = get_class_vars($c);
-
- foreach ((new \ReflectionClass($c))->getStaticProperties() as $k => $v) {
- unset(self::$defaultProperties[$c][$k]);
- }
- }
-
- foreach (self::$defaultProperties[$c] as $k => $v) {
- if ($this->$k !== $v) {
- $properties[] = $k;
- }
- }
-
- return $properties;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Cloner/VarCloner.php b/www/wiki/vendor/symfony/var-dumper/Cloner/VarCloner.php
deleted file mode 100644
index f418aa08..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Cloner/VarCloner.php
+++ /dev/null
@@ -1,329 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Cloner;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class VarCloner extends AbstractCloner
-{
- private static $gid;
- private static $hashMask = 0;
- private static $hashOffset = 0;
- private static $arrayCache = [];
-
- /**
- * {@inheritdoc}
- */
- protected function doClone($var)
- {
- $len = 1; // Length of $queue
- $pos = 0; // Number of cloned items past the minimum depth
- $refsCounter = 0; // Hard references counter
- $queue = [[$var]]; // This breadth-first queue is the return value
- $indexedArrays = []; // Map of queue indexes that hold numerically indexed arrays
- $hardRefs = []; // Map of original zval hashes to stub objects
- $objRefs = []; // Map of original object handles to their stub object counterpart
- $objects = []; // Keep a ref to objects to ensure their handle cannot be reused while cloning
- $resRefs = []; // Map of original resource handles to their stub object counterpart
- $values = []; // Map of stub objects' hashes to original values
- $maxItems = $this->maxItems;
- $maxString = $this->maxString;
- $minDepth = $this->minDepth;
- $currentDepth = 0; // Current tree depth
- $currentDepthFinalIndex = 0; // Final $queue index for current tree depth
- $minimumDepthReached = 0 === $minDepth; // Becomes true when minimum tree depth has been reached
- $cookie = (object) []; // Unique object used to detect hard references
- $a = null; // Array cast for nested structures
- $stub = null; // Stub capturing the main properties of an original item value
- // or null if the original value is used directly
-
- if (!self::$hashMask) {
- self::$gid = uniqid(mt_rand(), true); // Unique string used to detect the special $GLOBALS variable
- self::initHashMask();
- }
- $gid = self::$gid;
- $hashMask = self::$hashMask;
- $hashOffset = self::$hashOffset;
- $arrayStub = new Stub();
- $arrayStub->type = Stub::TYPE_ARRAY;
- $fromObjCast = false;
-
- for ($i = 0; $i < $len; ++$i) {
- // Detect when we move on to the next tree depth
- if ($i > $currentDepthFinalIndex) {
- ++$currentDepth;
- $currentDepthFinalIndex = $len - 1;
- if ($currentDepth >= $minDepth) {
- $minimumDepthReached = true;
- }
- }
-
- $refs = $vals = $queue[$i];
- if (\PHP_VERSION_ID < 70200 && empty($indexedArrays[$i])) {
- // see https://wiki.php.net/rfc/convert_numeric_keys_in_object_array_casts
- foreach ($vals as $k => $v) {
- if (\is_int($k)) {
- continue;
- }
- foreach ([$k => true] as $gk => $gv) {
- }
- if ($gk !== $k) {
- $fromObjCast = true;
- $refs = $vals = \array_values($queue[$i]);
- break;
- }
- }
- }
- foreach ($vals as $k => $v) {
- // $v is the original value or a stub object in case of hard references
- $refs[$k] = $cookie;
- if ($zvalIsRef = $vals[$k] === $cookie) {
- $vals[$k] = &$stub; // Break hard references to make $queue completely
- unset($stub); // independent from the original structure
- if ($v instanceof Stub && isset($hardRefs[\spl_object_hash($v)])) {
- $vals[$k] = $refs[$k] = $v;
- if ($v->value instanceof Stub && (Stub::TYPE_OBJECT === $v->value->type || Stub::TYPE_RESOURCE === $v->value->type)) {
- ++$v->value->refCount;
- }
- ++$v->refCount;
- continue;
- }
- $refs[$k] = $vals[$k] = new Stub();
- $refs[$k]->value = $v;
- $h = \spl_object_hash($refs[$k]);
- $hardRefs[$h] = &$refs[$k];
- $values[$h] = $v;
- $vals[$k]->handle = ++$refsCounter;
- }
- // Create $stub when the original value $v can not be used directly
- // If $v is a nested structure, put that structure in array $a
- switch (true) {
- case null === $v:
- case \is_bool($v):
- case \is_int($v):
- case \is_float($v):
- continue 2;
-
- case \is_string($v):
- if ('' === $v) {
- continue 2;
- }
- if (!\preg_match('//u', $v)) {
- $stub = new Stub();
- $stub->type = Stub::TYPE_STRING;
- $stub->class = Stub::STRING_BINARY;
- if (0 <= $maxString && 0 < $cut = \strlen($v) - $maxString) {
- $stub->cut = $cut;
- $stub->value = \substr($v, 0, -$cut);
- } else {
- $stub->value = $v;
- }
- } elseif (0 <= $maxString && isset($v[1 + ($maxString >> 2)]) && 0 < $cut = \mb_strlen($v, 'UTF-8') - $maxString) {
- $stub = new Stub();
- $stub->type = Stub::TYPE_STRING;
- $stub->class = Stub::STRING_UTF8;
- $stub->cut = $cut;
- $stub->value = \mb_substr($v, 0, $maxString, 'UTF-8');
- } else {
- continue 2;
- }
- $a = null;
- break;
-
- case \is_array($v):
- if (!$v) {
- continue 2;
- }
- $stub = $arrayStub;
- $stub->class = Stub::ARRAY_INDEXED;
-
- $j = -1;
- foreach ($v as $gk => $gv) {
- if ($gk !== ++$j) {
- $stub->class = Stub::ARRAY_ASSOC;
- break;
- }
- }
- $a = $v;
-
- if (Stub::ARRAY_ASSOC === $stub->class) {
- // Copies of $GLOBALS have very strange behavior,
- // let's detect them with some black magic
- $a[$gid] = true;
-
- // Happens with copies of $GLOBALS
- if (isset($v[$gid])) {
- unset($v[$gid]);
- $a = [];
- foreach ($v as $gk => &$gv) {
- $a[$gk] = &$gv;
- }
- unset($gv);
- } else {
- $a = $v;
- }
- } elseif (\PHP_VERSION_ID < 70200) {
- $indexedArrays[$len] = true;
- }
- break;
-
- case \is_object($v):
- case $v instanceof \__PHP_Incomplete_Class:
- if (empty($objRefs[$h = $hashMask ^ \hexdec(\substr(\spl_object_hash($v), $hashOffset, \PHP_INT_SIZE))])) {
- $stub = new Stub();
- $stub->type = Stub::TYPE_OBJECT;
- $stub->class = \get_class($v);
- $stub->value = $v;
- $stub->handle = $h;
- $a = $this->castObject($stub, 0 < $i);
- if ($v !== $stub->value) {
- if (Stub::TYPE_OBJECT !== $stub->type || null === $stub->value) {
- break;
- }
- $h = $hashMask ^ \hexdec(\substr(\spl_object_hash($stub->value), $hashOffset, \PHP_INT_SIZE));
- $stub->handle = $h;
- }
- $stub->value = null;
- if (0 <= $maxItems && $maxItems <= $pos && $minimumDepthReached) {
- $stub->cut = \count($a);
- $a = null;
- }
- }
- if (empty($objRefs[$h])) {
- $objRefs[$h] = $stub;
- $objects[] = $v;
- } else {
- $stub = $objRefs[$h];
- ++$stub->refCount;
- $a = null;
- }
- break;
-
- default: // resource
- if (empty($resRefs[$h = (int) $v])) {
- $stub = new Stub();
- $stub->type = Stub::TYPE_RESOURCE;
- if ('Unknown' === $stub->class = @\get_resource_type($v)) {
- $stub->class = 'Closed';
- }
- $stub->value = $v;
- $stub->handle = $h;
- $a = $this->castResource($stub, 0 < $i);
- $stub->value = null;
- if (0 <= $maxItems && $maxItems <= $pos && $minimumDepthReached) {
- $stub->cut = \count($a);
- $a = null;
- }
- }
- if (empty($resRefs[$h])) {
- $resRefs[$h] = $stub;
- } else {
- $stub = $resRefs[$h];
- ++$stub->refCount;
- $a = null;
- }
- break;
- }
-
- if ($a) {
- if (!$minimumDepthReached || 0 > $maxItems) {
- $queue[$len] = $a;
- $stub->position = $len++;
- } elseif ($pos < $maxItems) {
- if ($maxItems < $pos += \count($a)) {
- $a = \array_slice($a, 0, $maxItems - $pos);
- if ($stub->cut >= 0) {
- $stub->cut += $pos - $maxItems;
- }
- }
- $queue[$len] = $a;
- $stub->position = $len++;
- } elseif ($stub->cut >= 0) {
- $stub->cut += \count($a);
- $stub->position = 0;
- }
- }
-
- if ($arrayStub === $stub) {
- if ($arrayStub->cut) {
- $stub = [$arrayStub->cut, $arrayStub->class => $arrayStub->position];
- $arrayStub->cut = 0;
- } elseif (isset(self::$arrayCache[$arrayStub->class][$arrayStub->position])) {
- $stub = self::$arrayCache[$arrayStub->class][$arrayStub->position];
- } else {
- self::$arrayCache[$arrayStub->class][$arrayStub->position] = $stub = [$arrayStub->class => $arrayStub->position];
- }
- }
-
- if ($zvalIsRef) {
- $refs[$k]->value = $stub;
- } else {
- $vals[$k] = $stub;
- }
- }
-
- if ($fromObjCast) {
- $fromObjCast = false;
- $refs = $vals;
- $vals = [];
- $j = -1;
- foreach ($queue[$i] as $k => $v) {
- foreach ([$k => true] as $gk => $gv) {
- }
- if ($gk !== $k) {
- $vals = (object) $vals;
- $vals->{$k} = $refs[++$j];
- $vals = (array) $vals;
- } else {
- $vals[$k] = $refs[++$j];
- }
- }
- }
-
- $queue[$i] = $vals;
- }
-
- foreach ($values as $h => $v) {
- $hardRefs[$h] = $v;
- }
-
- return $queue;
- }
-
- private static function initHashMask()
- {
- $obj = (object) [];
- self::$hashOffset = 16 - PHP_INT_SIZE;
- self::$hashMask = -1;
-
- if (\defined('HHVM_VERSION')) {
- self::$hashOffset += 16;
- } else {
- // check if we are nested in an output buffering handler to prevent a fatal error with ob_start() below
- $obFuncs = ['ob_clean', 'ob_end_clean', 'ob_flush', 'ob_end_flush', 'ob_get_contents', 'ob_get_flush'];
- foreach (debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) as $frame) {
- if (isset($frame['function'][0]) && !isset($frame['class']) && 'o' === $frame['function'][0] && \in_array($frame['function'], $obFuncs)) {
- $frame['line'] = 0;
- break;
- }
- }
- if (!empty($frame['line'])) {
- ob_start();
- debug_zval_dump($obj);
- self::$hashMask = (int) substr(ob_get_clean(), 17);
- }
- }
-
- self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE));
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Dumper/AbstractDumper.php b/www/wiki/vendor/symfony/var-dumper/Dumper/AbstractDumper.php
deleted file mode 100644
index 30cd1a1b..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Dumper/AbstractDumper.php
+++ /dev/null
@@ -1,211 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Dumper;
-
-use Symfony\Component\VarDumper\Cloner\Data;
-use Symfony\Component\VarDumper\Cloner\DumperInterface;
-
-/**
- * Abstract mechanism for dumping a Data object.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-abstract class AbstractDumper implements DataDumperInterface, DumperInterface
-{
- const DUMP_LIGHT_ARRAY = 1;
- const DUMP_STRING_LENGTH = 2;
- const DUMP_COMMA_SEPARATOR = 4;
- const DUMP_TRAILING_COMMA = 8;
-
- public static $defaultOutput = 'php://output';
-
- protected $line = '';
- protected $lineDumper;
- protected $outputStream;
- protected $decimalPoint; // This is locale dependent
- protected $indentPad = ' ';
- protected $flags;
-
- private $charset;
-
- /**
- * @param callable|resource|string|null $output A line dumper callable, an opened stream or an output path, defaults to static::$defaultOutput
- * @param string|null $charset The default character encoding to use for non-UTF8 strings
- * @param int $flags A bit field of static::DUMP_* constants to fine tune dumps representation
- */
- public function __construct($output = null, $charset = null, $flags = 0)
- {
- $this->flags = (int) $flags;
- $this->setCharset($charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8');
- $this->decimalPoint = localeconv();
- $this->decimalPoint = $this->decimalPoint['decimal_point'];
- $this->setOutput($output ?: static::$defaultOutput);
- if (!$output && \is_string(static::$defaultOutput)) {
- static::$defaultOutput = $this->outputStream;
- }
- }
-
- /**
- * Sets the output destination of the dumps.
- *
- * @param callable|resource|string $output A line dumper callable, an opened stream or an output path
- *
- * @return callable|resource|string The previous output destination
- */
- public function setOutput($output)
- {
- $prev = null !== $this->outputStream ? $this->outputStream : $this->lineDumper;
-
- if (\is_callable($output)) {
- $this->outputStream = null;
- $this->lineDumper = $output;
- } else {
- if (\is_string($output)) {
- $output = fopen($output, 'wb');
- }
- $this->outputStream = $output;
- $this->lineDumper = [$this, 'echoLine'];
- }
-
- return $prev;
- }
-
- /**
- * Sets the default character encoding to use for non-UTF8 strings.
- *
- * @param string $charset The default character encoding to use for non-UTF8 strings
- *
- * @return string The previous charset
- */
- public function setCharset($charset)
- {
- $prev = $this->charset;
-
- $charset = strtoupper($charset);
- $charset = null === $charset || 'UTF-8' === $charset || 'UTF8' === $charset ? 'CP1252' : $charset;
-
- $this->charset = $charset;
-
- return $prev;
- }
-
- /**
- * Sets the indentation pad string.
- *
- * @param string $pad A string that will be prepended to dumped lines, repeated by nesting level
- *
- * @return string The previous indent pad
- */
- public function setIndentPad($pad)
- {
- $prev = $this->indentPad;
- $this->indentPad = $pad;
-
- return $prev;
- }
-
- /**
- * Dumps a Data object.
- *
- * @param Data $data A Data object
- * @param callable|resource|string|true|null $output A line dumper callable, an opened stream, an output path or true to return the dump
- *
- * @return string|null The dump as string when $output is true
- */
- public function dump(Data $data, $output = null)
- {
- $this->decimalPoint = localeconv();
- $this->decimalPoint = $this->decimalPoint['decimal_point'];
-
- if ($locale = $this->flags & (self::DUMP_COMMA_SEPARATOR | self::DUMP_TRAILING_COMMA) ? setlocale(LC_NUMERIC, 0) : null) {
- setlocale(LC_NUMERIC, 'C');
- }
-
- if ($returnDump = true === $output) {
- $output = fopen('php://memory', 'r+b');
- }
- if ($output) {
- $prevOutput = $this->setOutput($output);
- }
- try {
- $data->dump($this);
- $this->dumpLine(-1);
-
- if ($returnDump) {
- $result = stream_get_contents($output, -1, 0);
- fclose($output);
-
- return $result;
- }
- } finally {
- if ($output) {
- $this->setOutput($prevOutput);
- }
- if ($locale) {
- setlocale(LC_NUMERIC, $locale);
- }
- }
- }
-
- /**
- * Dumps the current line.
- *
- * @param int $depth The recursive depth in the dumped structure for the line being dumped,
- * or -1 to signal the end-of-dump to the line dumper callable
- */
- protected function dumpLine($depth)
- {
- \call_user_func($this->lineDumper, $this->line, $depth, $this->indentPad);
- $this->line = '';
- }
-
- /**
- * Generic line dumper callback.
- *
- * @param string $line The line to write
- * @param int $depth The recursive depth in the dumped structure
- * @param string $indentPad The line indent pad
- */
- protected function echoLine($line, $depth, $indentPad)
- {
- if (-1 !== $depth) {
- fwrite($this->outputStream, str_repeat($indentPad, $depth).$line."\n");
- }
- }
-
- /**
- * Converts a non-UTF-8 string to UTF-8.
- *
- * @param string $s The non-UTF-8 string to convert
- *
- * @return string The string converted to UTF-8
- */
- protected function utf8Encode($s)
- {
- if (preg_match('//u', $s)) {
- return $s;
- }
-
- if (!\function_exists('iconv')) {
- throw new \RuntimeException('Unable to convert a non-UTF-8 string to UTF-8: required function iconv() does not exist. You should install ext-iconv or symfony/polyfill-iconv.');
- }
-
- if (false !== $c = @iconv($this->charset, 'UTF-8', $s)) {
- return $c;
- }
- if ('CP1252' !== $this->charset && false !== $c = @iconv('CP1252', 'UTF-8', $s)) {
- return $c;
- }
-
- return iconv('CP850', 'UTF-8', $s);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Dumper/CliDumper.php b/www/wiki/vendor/symfony/var-dumper/Dumper/CliDumper.php
deleted file mode 100644
index 2bd347d9..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Dumper/CliDumper.php
+++ /dev/null
@@ -1,597 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Dumper;
-
-use Symfony\Component\VarDumper\Cloner\Cursor;
-use Symfony\Component\VarDumper\Cloner\Stub;
-
-/**
- * CliDumper dumps variables for command line output.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class CliDumper extends AbstractDumper
-{
- public static $defaultColors;
- public static $defaultOutput = 'php://stdout';
-
- protected $colors;
- protected $maxStringWidth = 0;
- protected $styles = [
- // See http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
- 'default' => '38;5;208',
- 'num' => '1;38;5;38',
- 'const' => '1;38;5;208',
- 'str' => '1;38;5;113',
- 'note' => '38;5;38',
- 'ref' => '38;5;247',
- 'public' => '',
- 'protected' => '',
- 'private' => '',
- 'meta' => '38;5;170',
- 'key' => '38;5;113',
- 'index' => '38;5;38',
- ];
-
- protected static $controlCharsRx = '/[\x00-\x1F\x7F]+/';
- protected static $controlCharsMap = [
- "\t" => '\t',
- "\n" => '\n',
- "\v" => '\v',
- "\f" => '\f',
- "\r" => '\r',
- "\033" => '\e',
- ];
-
- protected $collapseNextHash = false;
- protected $expandNextHash = false;
-
- /**
- * {@inheritdoc}
- */
- public function __construct($output = null, $charset = null, $flags = 0)
- {
- parent::__construct($output, $charset, $flags);
-
- if ('\\' === \DIRECTORY_SEPARATOR && !$this->isWindowsTrueColor()) {
- // Use only the base 16 xterm colors when using ANSICON or standard Windows 10 CLI
- $this->setStyles([
- 'default' => '31',
- 'num' => '1;34',
- 'const' => '1;31',
- 'str' => '1;32',
- 'note' => '34',
- 'ref' => '1;30',
- 'meta' => '35',
- 'key' => '32',
- 'index' => '34',
- ]);
- }
- }
-
- /**
- * Enables/disables colored output.
- *
- * @param bool $colors
- */
- public function setColors($colors)
- {
- $this->colors = (bool) $colors;
- }
-
- /**
- * Sets the maximum number of characters per line for dumped strings.
- *
- * @param int $maxStringWidth
- */
- public function setMaxStringWidth($maxStringWidth)
- {
- $this->maxStringWidth = (int) $maxStringWidth;
- }
-
- /**
- * Configures styles.
- *
- * @param array $styles A map of style names to style definitions
- */
- public function setStyles(array $styles)
- {
- $this->styles = $styles + $this->styles;
- }
-
- /**
- * {@inheritdoc}
- */
- public function dumpScalar(Cursor $cursor, $type, $value)
- {
- $this->dumpKey($cursor);
-
- $style = 'const';
- $attr = $cursor->attr;
-
- switch ($type) {
- case 'default':
- $style = 'default';
- break;
-
- case 'integer':
- $style = 'num';
- break;
-
- case 'double':
- $style = 'num';
-
- switch (true) {
- case INF === $value: $value = 'INF'; break;
- case -INF === $value: $value = '-INF'; break;
- case is_nan($value): $value = 'NAN'; break;
- default:
- $value = (string) $value;
- if (false === strpos($value, $this->decimalPoint)) {
- $value .= $this->decimalPoint.'0';
- }
- break;
- }
- break;
-
- case 'NULL':
- $value = 'null';
- break;
-
- case 'boolean':
- $value = $value ? 'true' : 'false';
- break;
-
- default:
- $attr += ['value' => $this->utf8Encode($value)];
- $value = $this->utf8Encode($type);
- break;
- }
-
- $this->line .= $this->style($style, $value, $attr);
-
- $this->endValue($cursor);
- }
-
- /**
- * {@inheritdoc}
- */
- public function dumpString(Cursor $cursor, $str, $bin, $cut)
- {
- $this->dumpKey($cursor);
- $attr = $cursor->attr;
-
- if ($bin) {
- $str = $this->utf8Encode($str);
- }
- if ('' === $str) {
- $this->line .= '""';
- $this->endValue($cursor);
- } else {
- $attr += [
- 'length' => 0 <= $cut ? mb_strlen($str, 'UTF-8') + $cut : 0,
- 'binary' => $bin,
- ];
- $str = explode("\n", $str);
- if (isset($str[1]) && !isset($str[2]) && !isset($str[1][0])) {
- unset($str[1]);
- $str[0] .= "\n";
- }
- $m = \count($str) - 1;
- $i = $lineCut = 0;
-
- if (self::DUMP_STRING_LENGTH & $this->flags) {
- $this->line .= '('.$attr['length'].') ';
- }
- if ($bin) {
- $this->line .= 'b';
- }
-
- if ($m) {
- $this->line .= '"""';
- $this->dumpLine($cursor->depth);
- } else {
- $this->line .= '"';
- }
-
- foreach ($str as $str) {
- if ($i < $m) {
- $str .= "\n";
- }
- if (0 < $this->maxStringWidth && $this->maxStringWidth < $len = mb_strlen($str, 'UTF-8')) {
- $str = mb_substr($str, 0, $this->maxStringWidth, 'UTF-8');
- $lineCut = $len - $this->maxStringWidth;
- }
- if ($m && 0 < $cursor->depth) {
- $this->line .= $this->indentPad;
- }
- if ('' !== $str) {
- $this->line .= $this->style('str', $str, $attr);
- }
- if ($i++ == $m) {
- if ($m) {
- if ('' !== $str) {
- $this->dumpLine($cursor->depth);
- if (0 < $cursor->depth) {
- $this->line .= $this->indentPad;
- }
- }
- $this->line .= '"""';
- } else {
- $this->line .= '"';
- }
- if ($cut < 0) {
- $this->line .= '…';
- $lineCut = 0;
- } elseif ($cut) {
- $lineCut += $cut;
- }
- }
- if ($lineCut) {
- $this->line .= '…'.$lineCut;
- $lineCut = 0;
- }
-
- if ($i > $m) {
- $this->endValue($cursor);
- } else {
- $this->dumpLine($cursor->depth);
- }
- }
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function enterHash(Cursor $cursor, $type, $class, $hasChild)
- {
- $this->dumpKey($cursor);
-
- if ($this->collapseNextHash) {
- $cursor->skipChildren = true;
- $this->collapseNextHash = $hasChild = false;
- }
-
- $class = $this->utf8Encode($class);
- if (Cursor::HASH_OBJECT === $type) {
- $prefix = $class && 'stdClass' !== $class ? $this->style('note', $class).' {' : '{';
- } elseif (Cursor::HASH_RESOURCE === $type) {
- $prefix = $this->style('note', $class.' resource').($hasChild ? ' {' : ' ');
- } else {
- $prefix = $class && !(self::DUMP_LIGHT_ARRAY & $this->flags) ? $this->style('note', 'array:'.$class).' [' : '[';
- }
-
- if ($cursor->softRefCount || 0 < $cursor->softRefHandle) {
- $prefix .= $this->style('ref', (Cursor::HASH_RESOURCE === $type ? '@' : '#').(0 < $cursor->softRefHandle ? $cursor->softRefHandle : $cursor->softRefTo), ['count' => $cursor->softRefCount]);
- } elseif ($cursor->hardRefTo && !$cursor->refIndex && $class) {
- $prefix .= $this->style('ref', '&'.$cursor->hardRefTo, ['count' => $cursor->hardRefCount]);
- } elseif (!$hasChild && Cursor::HASH_RESOURCE === $type) {
- $prefix = substr($prefix, 0, -1);
- }
-
- $this->line .= $prefix;
-
- if ($hasChild) {
- $this->dumpLine($cursor->depth);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function leaveHash(Cursor $cursor, $type, $class, $hasChild, $cut)
- {
- $this->dumpEllipsis($cursor, $hasChild, $cut);
- $this->line .= Cursor::HASH_OBJECT === $type ? '}' : (Cursor::HASH_RESOURCE !== $type ? ']' : ($hasChild ? '}' : ''));
- $this->endValue($cursor);
- }
-
- /**
- * Dumps an ellipsis for cut children.
- *
- * @param Cursor $cursor The Cursor position in the dump
- * @param bool $hasChild When the dump of the hash has child item
- * @param int $cut The number of items the hash has been cut by
- */
- protected function dumpEllipsis(Cursor $cursor, $hasChild, $cut)
- {
- if ($cut) {
- $this->line .= ' …';
- if (0 < $cut) {
- $this->line .= $cut;
- }
- if ($hasChild) {
- $this->dumpLine($cursor->depth + 1);
- }
- }
- }
-
- /**
- * Dumps a key in a hash structure.
- *
- * @param Cursor $cursor The Cursor position in the dump
- */
- protected function dumpKey(Cursor $cursor)
- {
- if (null !== $key = $cursor->hashKey) {
- if ($cursor->hashKeyIsBinary) {
- $key = $this->utf8Encode($key);
- }
- $attr = ['binary' => $cursor->hashKeyIsBinary];
- $bin = $cursor->hashKeyIsBinary ? 'b' : '';
- $style = 'key';
- switch ($cursor->hashType) {
- default:
- case Cursor::HASH_INDEXED:
- if (self::DUMP_LIGHT_ARRAY & $this->flags) {
- break;
- }
- $style = 'index';
- // no break
- case Cursor::HASH_ASSOC:
- if (\is_int($key)) {
- $this->line .= $this->style($style, $key).' => ';
- } else {
- $this->line .= $bin.'"'.$this->style($style, $key).'" => ';
- }
- break;
-
- case Cursor::HASH_RESOURCE:
- $key = "\0~\0".$key;
- // no break
- case Cursor::HASH_OBJECT:
- if (!isset($key[0]) || "\0" !== $key[0]) {
- $this->line .= '+'.$bin.$this->style('public', $key).': ';
- } elseif (0 < strpos($key, "\0", 1)) {
- $key = explode("\0", substr($key, 1), 2);
-
- switch ($key[0][0]) {
- case '+': // User inserted keys
- $attr['dynamic'] = true;
- $this->line .= '+'.$bin.'"'.$this->style('public', $key[1], $attr).'": ';
- break 2;
- case '~':
- $style = 'meta';
- if (isset($key[0][1])) {
- parse_str(substr($key[0], 1), $attr);
- $attr += ['binary' => $cursor->hashKeyIsBinary];
- }
- break;
- case '*':
- $style = 'protected';
- $bin = '#'.$bin;
- break;
- default:
- $attr['class'] = $key[0];
- $style = 'private';
- $bin = '-'.$bin;
- break;
- }
-
- if (isset($attr['collapse'])) {
- if ($attr['collapse']) {
- $this->collapseNextHash = true;
- } else {
- $this->expandNextHash = true;
- }
- }
-
- $this->line .= $bin.$this->style($style, $key[1], $attr).(isset($attr['separator']) ? $attr['separator'] : ': ');
- } else {
- // This case should not happen
- $this->line .= '-'.$bin.'"'.$this->style('private', $key, ['class' => '']).'": ';
- }
- break;
- }
-
- if ($cursor->hardRefTo) {
- $this->line .= $this->style('ref', '&'.($cursor->hardRefCount ? $cursor->hardRefTo : ''), ['count' => $cursor->hardRefCount]).' ';
- }
- }
- }
-
- /**
- * Decorates a value with some style.
- *
- * @param string $style The type of style being applied
- * @param string $value The value being styled
- * @param array $attr Optional context information
- *
- * @return string The value with style decoration
- */
- protected function style($style, $value, $attr = [])
- {
- if (null === $this->colors) {
- $this->colors = $this->supportsColors();
- }
-
- if (isset($attr['ellipsis'], $attr['ellipsis-type'])) {
- $prefix = substr($value, 0, -$attr['ellipsis']);
- if ('cli' === \PHP_SAPI && 'path' === $attr['ellipsis-type'] && isset($_SERVER[$pwd = '\\' === \DIRECTORY_SEPARATOR ? 'CD' : 'PWD']) && 0 === strpos($prefix, $_SERVER[$pwd])) {
- $prefix = '.'.substr($prefix, \strlen($_SERVER[$pwd]));
- }
- if (!empty($attr['ellipsis-tail'])) {
- $prefix .= substr($value, -$attr['ellipsis'], $attr['ellipsis-tail']);
- $value = substr($value, -$attr['ellipsis'] + $attr['ellipsis-tail']);
- } else {
- $value = substr($value, -$attr['ellipsis']);
- }
-
- return $this->style('default', $prefix).$this->style($style, $value);
- }
-
- $style = $this->styles[$style];
-
- $map = static::$controlCharsMap;
- $startCchr = $this->colors ? "\033[m\033[{$this->styles['default']}m" : '';
- $endCchr = $this->colors ? "\033[m\033[{$style}m" : '';
- $value = preg_replace_callback(static::$controlCharsRx, function ($c) use ($map, $startCchr, $endCchr) {
- $s = $startCchr;
- $c = $c[$i = 0];
- do {
- $s .= isset($map[$c[$i]]) ? $map[$c[$i]] : sprintf('\x%02X', \ord($c[$i]));
- } while (isset($c[++$i]));
-
- return $s.$endCchr;
- }, $value, -1, $cchrCount);
-
- if ($this->colors) {
- if ($cchrCount && "\033" === $value[0]) {
- $value = substr($value, \strlen($startCchr));
- } else {
- $value = "\033[{$style}m".$value;
- }
- if ($cchrCount && $endCchr === substr($value, -\strlen($endCchr))) {
- $value = substr($value, 0, -\strlen($endCchr));
- } else {
- $value .= "\033[{$this->styles['default']}m";
- }
- }
-
- return $value;
- }
-
- /**
- * @return bool Tells if the current output stream supports ANSI colors or not
- */
- protected function supportsColors()
- {
- if ($this->outputStream !== static::$defaultOutput) {
- return $this->hasColorSupport($this->outputStream);
- }
- if (null !== static::$defaultColors) {
- return static::$defaultColors;
- }
- if (isset($_SERVER['argv'][1])) {
- $colors = $_SERVER['argv'];
- $i = \count($colors);
- while (--$i > 0) {
- if (isset($colors[$i][5])) {
- switch ($colors[$i]) {
- case '--ansi':
- case '--color':
- case '--color=yes':
- case '--color=force':
- case '--color=always':
- return static::$defaultColors = true;
-
- case '--no-ansi':
- case '--color=no':
- case '--color=none':
- case '--color=never':
- return static::$defaultColors = false;
- }
- }
- }
- }
-
- $h = stream_get_meta_data($this->outputStream) + ['wrapper_type' => null];
- $h = 'Output' === $h['stream_type'] && 'PHP' === $h['wrapper_type'] ? fopen('php://stdout', 'wb') : $this->outputStream;
-
- return static::$defaultColors = $this->hasColorSupport($h);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function dumpLine($depth, $endOfValue = false)
- {
- if ($this->colors) {
- $this->line = sprintf("\033[%sm%s\033[m", $this->styles['default'], $this->line);
- }
- parent::dumpLine($depth);
- }
-
- protected function endValue(Cursor $cursor)
- {
- if (Stub::ARRAY_INDEXED === $cursor->hashType || Stub::ARRAY_ASSOC === $cursor->hashType) {
- if (self::DUMP_TRAILING_COMMA & $this->flags && 0 < $cursor->depth) {
- $this->line .= ',';
- } elseif (self::DUMP_COMMA_SEPARATOR & $this->flags && 1 < $cursor->hashLength - $cursor->hashIndex) {
- $this->line .= ',';
- }
- }
-
- $this->dumpLine($cursor->depth, true);
- }
-
- /**
- * Returns true if the stream supports colorization.
- *
- * Reference: Composer\XdebugHandler\Process::supportsColor
- * https://github.com/composer/xdebug-handler
- *
- * @param mixed $stream A CLI output stream
- *
- * @return bool
- */
- private function hasColorSupport($stream)
- {
- if (!\is_resource($stream) || 'stream' !== get_resource_type($stream)) {
- return false;
- }
-
- if ('Hyper' === getenv('TERM_PROGRAM')) {
- return true;
- }
-
- if (\DIRECTORY_SEPARATOR === '\\') {
- return (\function_exists('sapi_windows_vt100_support')
- && @sapi_windows_vt100_support($stream))
- || false !== getenv('ANSICON')
- || 'ON' === getenv('ConEmuANSI')
- || 'xterm' === getenv('TERM');
- }
-
- if (\function_exists('stream_isatty')) {
- return @stream_isatty($stream);
- }
-
- if (\function_exists('posix_isatty')) {
- return @posix_isatty($stream);
- }
-
- $stat = @fstat($stream);
- // Check if formatted mode is S_IFCHR
- return $stat ? 0020000 === ($stat['mode'] & 0170000) : false;
- }
-
- /**
- * Returns true if the Windows terminal supports true color.
- *
- * Note that this does not check an output stream, but relies on environment
- * variables from known implementations, or a PHP and Windows version that
- * supports true color.
- *
- * @return bool
- */
- private function isWindowsTrueColor()
- {
- $result = 183 <= getenv('ANSICON_VER')
- || 'ON' === getenv('ConEmuANSI')
- || 'xterm' === getenv('TERM')
- || 'Hyper' === getenv('TERM_PROGRAM');
-
- if (!$result && \PHP_VERSION_ID >= 70200) {
- $version = sprintf(
- '%s.%s.%s',
- PHP_WINDOWS_VERSION_MAJOR,
- PHP_WINDOWS_VERSION_MINOR,
- PHP_WINDOWS_VERSION_BUILD
- );
- $result = $version >= '10.0.15063';
- }
-
- return $result;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Dumper/DataDumperInterface.php b/www/wiki/vendor/symfony/var-dumper/Dumper/DataDumperInterface.php
deleted file mode 100644
index b173bccf..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Dumper/DataDumperInterface.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Dumper;
-
-use Symfony\Component\VarDumper\Cloner\Data;
-
-/**
- * DataDumperInterface for dumping Data objects.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-interface DataDumperInterface
-{
- public function dump(Data $data);
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Dumper/HtmlDumper.php b/www/wiki/vendor/symfony/var-dumper/Dumper/HtmlDumper.php
deleted file mode 100644
index 2e617c7c..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Dumper/HtmlDumper.php
+++ /dev/null
@@ -1,908 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Dumper;
-
-use Symfony\Component\VarDumper\Cloner\Cursor;
-use Symfony\Component\VarDumper\Cloner\Data;
-
-/**
- * HtmlDumper dumps variables as HTML.
- *
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class HtmlDumper extends CliDumper
-{
- public static $defaultOutput = 'php://output';
-
- protected $dumpHeader;
- protected $dumpPrefix = '<pre class=sf-dump id=%s data-indent-pad="%s">';
- protected $dumpSuffix = '</pre><script>Sfdump(%s)</script>';
- protected $dumpId = 'sf-dump';
- protected $colors = true;
- protected $headerIsDumped = false;
- protected $lastDepth = -1;
- protected $styles = [
- 'default' => 'background-color:#18171B; color:#FF8400; line-height:1.2em; font:12px Menlo, Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:99999; word-break: break-all',
- 'num' => 'font-weight:bold; color:#1299DA',
- 'const' => 'font-weight:bold',
- 'str' => 'font-weight:bold; color:#56DB3A',
- 'note' => 'color:#1299DA',
- 'ref' => 'color:#A0A0A0',
- 'public' => 'color:#FFFFFF',
- 'protected' => 'color:#FFFFFF',
- 'private' => 'color:#FFFFFF',
- 'meta' => 'color:#B729D9',
- 'key' => 'color:#56DB3A',
- 'index' => 'color:#1299DA',
- 'ellipsis' => 'color:#FF8400',
- ];
-
- private $displayOptions = [
- 'maxDepth' => 1,
- 'maxStringLength' => 160,
- 'fileLinkFormat' => null,
- ];
- private $extraDisplayOptions = [];
-
- /**
- * {@inheritdoc}
- */
- public function __construct($output = null, $charset = null, $flags = 0)
- {
- AbstractDumper::__construct($output, $charset, $flags);
- $this->dumpId = 'sf-dump-'.mt_rand();
- $this->displayOptions['fileLinkFormat'] = ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
- }
-
- /**
- * {@inheritdoc}
- */
- public function setStyles(array $styles)
- {
- $this->headerIsDumped = false;
- $this->styles = $styles + $this->styles;
- }
-
- /**
- * Configures display options.
- *
- * @param array $displayOptions A map of display options to customize the behavior
- */
- public function setDisplayOptions(array $displayOptions)
- {
- $this->headerIsDumped = false;
- $this->displayOptions = $displayOptions + $this->displayOptions;
- }
-
- /**
- * Sets an HTML header that will be dumped once in the output stream.
- *
- * @param string $header An HTML string
- */
- public function setDumpHeader($header)
- {
- $this->dumpHeader = $header;
- }
-
- /**
- * Sets an HTML prefix and suffix that will encapse every single dump.
- *
- * @param string $prefix The prepended HTML string
- * @param string $suffix The appended HTML string
- */
- public function setDumpBoundaries($prefix, $suffix)
- {
- $this->dumpPrefix = $prefix;
- $this->dumpSuffix = $suffix;
- }
-
- /**
- * {@inheritdoc}
- */
- public function dump(Data $data, $output = null, array $extraDisplayOptions = [])
- {
- $this->extraDisplayOptions = $extraDisplayOptions;
- $result = parent::dump($data, $output);
- $this->dumpId = 'sf-dump-'.mt_rand();
-
- return $result;
- }
-
- /**
- * Dumps the HTML header.
- */
- protected function getDumpHeader()
- {
- $this->headerIsDumped = null !== $this->outputStream ? $this->outputStream : $this->lineDumper;
-
- if (null !== $this->dumpHeader) {
- return $this->dumpHeader;
- }
-
- $line = str_replace('{$options}', json_encode($this->displayOptions, JSON_FORCE_OBJECT), <<<'EOHTML'
-<script>
-Sfdump = window.Sfdump || (function (doc) {
-
-var refStyle = doc.createElement('style'),
- rxEsc = /([.*+?^${}()|\[\]\/\\])/g,
- idRx = /\bsf-dump-\d+-ref[012]\w+\b/,
- keyHint = 0 <= navigator.platform.toUpperCase().indexOf('MAC') ? 'Cmd' : 'Ctrl',
- addEventListener = function (e, n, cb) {
- e.addEventListener(n, cb, false);
- };
-
-(doc.documentElement.firstElementChild || doc.documentElement.children[0]).appendChild(refStyle);
-
-if (!doc.addEventListener) {
- addEventListener = function (element, eventName, callback) {
- element.attachEvent('on' + eventName, function (e) {
- e.preventDefault = function () {e.returnValue = false;};
- e.target = e.srcElement;
- callback(e);
- });
- };
-}
-
-function toggle(a, recursive) {
- var s = a.nextSibling || {}, oldClass = s.className, arrow, newClass;
-
- if (/\bsf-dump-compact\b/.test(oldClass)) {
- arrow = '▼';
- newClass = 'sf-dump-expanded';
- } else if (/\bsf-dump-expanded\b/.test(oldClass)) {
- arrow = '▶';
- newClass = 'sf-dump-compact';
- } else {
- return false;
- }
-
- if (doc.createEvent && s.dispatchEvent) {
- var event = doc.createEvent('Event');
- event.initEvent('sf-dump-expanded' === newClass ? 'sfbeforedumpexpand' : 'sfbeforedumpcollapse', true, false);
-
- s.dispatchEvent(event);
- }
-
- a.lastChild.innerHTML = arrow;
- s.className = s.className.replace(/\bsf-dump-(compact|expanded)\b/, newClass);
-
- if (recursive) {
- try {
- a = s.querySelectorAll('.'+oldClass);
- for (s = 0; s < a.length; ++s) {
- if (-1 == a[s].className.indexOf(newClass)) {
- a[s].className = newClass;
- a[s].previousSibling.lastChild.innerHTML = arrow;
- }
- }
- } catch (e) {
- }
- }
-
- return true;
-};
-
-function collapse(a, recursive) {
- var s = a.nextSibling || {}, oldClass = s.className;
-
- if (/\bsf-dump-expanded\b/.test(oldClass)) {
- toggle(a, recursive);
-
- return true;
- }
-
- return false;
-};
-
-function expand(a, recursive) {
- var s = a.nextSibling || {}, oldClass = s.className;
-
- if (/\bsf-dump-compact\b/.test(oldClass)) {
- toggle(a, recursive);
-
- return true;
- }
-
- return false;
-};
-
-function collapseAll(root) {
- var a = root.querySelector('a.sf-dump-toggle');
- if (a) {
- collapse(a, true);
- expand(a);
-
- return true;
- }
-
- return false;
-}
-
-function reveal(node) {
- var previous, parents = [];
-
- while ((node = node.parentNode || {}) && (previous = node.previousSibling) && 'A' === previous.tagName) {
- parents.push(previous);
- }
-
- if (0 !== parents.length) {
- parents.forEach(function (parent) {
- expand(parent);
- });
-
- return true;
- }
-
- return false;
-}
-
-function highlight(root, activeNode, nodes) {
- resetHighlightedNodes(root);
-
- Array.from(nodes||[]).forEach(function (node) {
- if (!/\bsf-dump-highlight\b/.test(node.className)) {
- node.className = node.className + ' sf-dump-highlight';
- }
- });
-
- if (!/\bsf-dump-highlight-active\b/.test(activeNode.className)) {
- activeNode.className = activeNode.className + ' sf-dump-highlight-active';
- }
-}
-
-function resetHighlightedNodes(root) {
- Array.from(root.querySelectorAll('.sf-dump-str, .sf-dump-key, .sf-dump-public, .sf-dump-protected, .sf-dump-private')).forEach(function (strNode) {
- strNode.className = strNode.className.replace(/\bsf-dump-highlight\b/, '');
- strNode.className = strNode.className.replace(/\bsf-dump-highlight-active\b/, '');
- });
-}
-
-return function (root, x) {
- root = doc.getElementById(root);
-
- var indentRx = new RegExp('^('+(root.getAttribute('data-indent-pad') || ' ').replace(rxEsc, '\\$1')+')+', 'm'),
- options = {$options},
- elt = root.getElementsByTagName('A'),
- len = elt.length,
- i = 0, s, h,
- t = [];
-
- while (i < len) t.push(elt[i++]);
-
- for (i in x) {
- options[i] = x[i];
- }
-
- function a(e, f) {
- addEventListener(root, e, function (e) {
- if ('A' == e.target.tagName) {
- f(e.target, e);
- } else if ('A' == e.target.parentNode.tagName) {
- f(e.target.parentNode, e);
- } else if (e.target.nextElementSibling && 'A' == e.target.nextElementSibling.tagName) {
- f(e.target.nextElementSibling, e, true);
- }
- });
- };
- function isCtrlKey(e) {
- return e.ctrlKey || e.metaKey;
- }
- function xpathString(str) {
- var parts = str.match(/[^'"]+|['"]/g).map(function (part) {
- if ("'" == part) {
- return '"\'"';
- }
- if ('"' == part) {
- return "'\"'";
- }
-
- return "'" + part + "'";
- });
-
- return "concat(" + parts.join(",") + ", '')";
- }
- function xpathHasClass(className) {
- return "contains(concat(' ', normalize-space(@class), ' '), ' " + className +" ')";
- }
- addEventListener(root, 'mouseover', function (e) {
- if ('' != refStyle.innerHTML) {
- refStyle.innerHTML = '';
- }
- });
- a('mouseover', function (a, e, c) {
- if (c) {
- e.target.style.cursor = "pointer";
- } else if (a = idRx.exec(a.className)) {
- try {
- refStyle.innerHTML = 'pre.sf-dump .'+a[0]+'{background-color: #B729D9; color: #FFF !important; border-radius: 2px}';
- } catch (e) {
- }
- }
- });
- a('click', function (a, e, c) {
- if (/\bsf-dump-toggle\b/.test(a.className)) {
- e.preventDefault();
- if (!toggle(a, isCtrlKey(e))) {
- var r = doc.getElementById(a.getAttribute('href').substr(1)),
- s = r.previousSibling,
- f = r.parentNode,
- t = a.parentNode;
- t.replaceChild(r, a);
- f.replaceChild(a, s);
- t.insertBefore(s, r);
- f = f.firstChild.nodeValue.match(indentRx);
- t = t.firstChild.nodeValue.match(indentRx);
- if (f && t && f[0] !== t[0]) {
- r.innerHTML = r.innerHTML.replace(new RegExp('^'+f[0].replace(rxEsc, '\\$1'), 'mg'), t[0]);
- }
- if (/\bsf-dump-compact\b/.test(r.className)) {
- toggle(s, isCtrlKey(e));
- }
- }
-
- if (c) {
- } else if (doc.getSelection) {
- try {
- doc.getSelection().removeAllRanges();
- } catch (e) {
- doc.getSelection().empty();
- }
- } else {
- doc.selection.empty();
- }
- } else if (/\bsf-dump-str-toggle\b/.test(a.className)) {
- e.preventDefault();
- e = a.parentNode.parentNode;
- e.className = e.className.replace(/\bsf-dump-str-(expand|collapse)\b/, a.parentNode.className);
- }
- });
-
- elt = root.getElementsByTagName('SAMP');
- len = elt.length;
- i = 0;
-
- while (i < len) t.push(elt[i++]);
- len = t.length;
-
- for (i = 0; i < len; ++i) {
- elt = t[i];
- if ('SAMP' == elt.tagName) {
- a = elt.previousSibling || {};
- if ('A' != a.tagName) {
- a = doc.createElement('A');
- a.className = 'sf-dump-ref';
- elt.parentNode.insertBefore(a, elt);
- } else {
- a.innerHTML += ' ';
- }
- a.title = (a.title ? a.title+'\n[' : '[')+keyHint+'+click] Expand all children';
- a.innerHTML += '<span>▼</span>';
- a.className += ' sf-dump-toggle';
-
- x = 1;
- if ('sf-dump' != elt.parentNode.className) {
- x += elt.parentNode.getAttribute('data-depth')/1;
- }
- elt.setAttribute('data-depth', x);
- var className = elt.className;
- elt.className = 'sf-dump-expanded';
- if (className ? 'sf-dump-expanded' !== className : (x > options.maxDepth)) {
- toggle(a);
- }
- } else if (/\bsf-dump-ref\b/.test(elt.className) && (a = elt.getAttribute('href'))) {
- a = a.substr(1);
- elt.className += ' '+a;
-
- if (/[\[{]$/.test(elt.previousSibling.nodeValue)) {
- a = a != elt.nextSibling.id && doc.getElementById(a);
- try {
- s = a.nextSibling;
- elt.appendChild(a);
- s.parentNode.insertBefore(a, s);
- if (/^[@#]/.test(elt.innerHTML)) {
- elt.innerHTML += ' <span>▶</span>';
- } else {
- elt.innerHTML = '<span>▶</span>';
- elt.className = 'sf-dump-ref';
- }
- elt.className += ' sf-dump-toggle';
- } catch (e) {
- if ('&' == elt.innerHTML.charAt(0)) {
- elt.innerHTML = '…';
- elt.className = 'sf-dump-ref';
- }
- }
- }
- }
- }
-
- if (doc.evaluate && Array.from && root.children.length > 1) {
- root.setAttribute('tabindex', 0);
-
- SearchState = function () {
- this.nodes = [];
- this.idx = 0;
- };
- SearchState.prototype = {
- next: function () {
- if (this.isEmpty()) {
- return this.current();
- }
- this.idx = this.idx < (this.nodes.length - 1) ? this.idx + 1 : 0;
-
- return this.current();
- },
- previous: function () {
- if (this.isEmpty()) {
- return this.current();
- }
- this.idx = this.idx > 0 ? this.idx - 1 : (this.nodes.length - 1);
-
- return this.current();
- },
- isEmpty: function () {
- return 0 === this.count();
- },
- current: function () {
- if (this.isEmpty()) {
- return null;
- }
- return this.nodes[this.idx];
- },
- reset: function () {
- this.nodes = [];
- this.idx = 0;
- },
- count: function () {
- return this.nodes.length;
- },
- };
-
- function showCurrent(state)
- {
- var currentNode = state.current();
- if (currentNode) {
- reveal(currentNode);
- highlight(root, currentNode, state.nodes);
- }
- counter.textContent = (state.isEmpty() ? 0 : state.idx + 1) + ' of ' + state.count();
- }
-
- var search = doc.createElement('div');
- search.className = 'sf-dump-search-wrapper sf-dump-search-hidden';
- search.innerHTML = '
- <input type="text" class="sf-dump-search-input">
- <span class="sf-dump-search-count">0 of 0<\/span>
- <button type="button" class="sf-dump-search-input-previous" tabindex="-1">
- <svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
- <path d="M1683 1331l-166 165q-19 19-45 19t-45-19l-531-531-531 531q-19 19-45 19t-45-19l-166-165q-19-19-19-45.5t19-45.5l742-741q19-19 45-19t45 19l742 741q19 19 19 45.5t-19 45.5z"\/>
- <\/svg>
- <\/button>
- <button type="button" class="sf-dump-search-input-next" tabindex="-1">
- <svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
- <path d="M1683 808l-742 741q-19 19-45 19t-45-19l-742-741q-19-19-19-45.5t19-45.5l166-165q19-19 45-19t45 19l531 531 531-531q19-19 45-19t45 19l166 165q19 19 19 45.5t-19 45.5z"\/>
- <\/svg>
- <\/button>
- ';
- root.insertBefore(search, root.firstChild);
-
- var state = new SearchState();
- var searchInput = search.querySelector('.sf-dump-search-input');
- var counter = search.querySelector('.sf-dump-search-count');
- var searchInputTimer = 0;
- var previousSearchQuery = '';
-
- addEventListener(searchInput, 'keyup', function (e) {
- var searchQuery = e.target.value;
- /* Don't perform anything if the pressed key didn't change the query */
- if (searchQuery === previousSearchQuery) {
- return;
- }
- previousSearchQuery = searchQuery;
- clearTimeout(searchInputTimer);
- searchInputTimer = setTimeout(function () {
- state.reset();
- collapseAll(root);
- resetHighlightedNodes(root);
- if ('' === searchQuery) {
- counter.textContent = '0 of 0';
-
- return;
- }
-
- var classMatches = [
- "sf-dump-str",
- "sf-dump-key",
- "sf-dump-public",
- "sf-dump-protected",
- "sf-dump-private",
- ].map(xpathHasClass).join(' or ');
-
- var xpathResult = doc.evaluate('.//span[' + classMatches + '][contains(translate(child::text(), ' + xpathString(searchQuery.toUpperCase()) + ', ' + xpathString(searchQuery.toLowerCase()) + '), ' + xpathString(searchQuery.toLowerCase()) + ')]', root, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);
-
- while (node = xpathResult.iterateNext()) state.nodes.push(node);
-
- showCurrent(state);
- }, 400);
- });
-
- Array.from(search.querySelectorAll('.sf-dump-search-input-next, .sf-dump-search-input-previous')).forEach(function (btn) {
- addEventListener(btn, 'click', function (e) {
- e.preventDefault();
- -1 !== e.target.className.indexOf('next') ? state.next() : state.previous();
- searchInput.focus();
- collapseAll(root);
- showCurrent(state);
- })
- });
-
- addEventListener(root, 'keydown', function (e) {
- var isSearchActive = !/\bsf-dump-search-hidden\b/.test(search.className);
- if ((114 === e.keyCode && !isSearchActive) || (isCtrlKey(e) && 70 === e.keyCode)) {
- /* F3 or CMD/CTRL + F */
- e.preventDefault();
- search.className = search.className.replace(/\bsf-dump-search-hidden\b/, '');
- searchInput.focus();
- } else if (isSearchActive) {
- if (27 === e.keyCode) {
- /* ESC key */
- search.className += ' sf-dump-search-hidden';
- e.preventDefault();
- resetHighlightedNodes(root);
- searchInput.value = '';
- } else if (
- (isCtrlKey(e) && 71 === e.keyCode) /* CMD/CTRL + G */
- || 13 === e.keyCode /* Enter */
- || 114 === e.keyCode /* F3 */
- ) {
- e.preventDefault();
- e.shiftKey ? state.previous() : state.next();
- collapseAll(root);
- showCurrent(state);
- }
- }
- });
- }
-
- if (0 >= options.maxStringLength) {
- return;
- }
- try {
- elt = root.querySelectorAll('.sf-dump-str');
- len = elt.length;
- i = 0;
- t = [];
-
- while (i < len) t.push(elt[i++]);
- len = t.length;
-
- for (i = 0; i < len; ++i) {
- elt = t[i];
- s = elt.innerText || elt.textContent;
- x = s.length - options.maxStringLength;
- if (0 < x) {
- h = elt.innerHTML;
- elt[elt.innerText ? 'innerText' : 'textContent'] = s.substring(0, options.maxStringLength);
- elt.className += ' sf-dump-str-collapse';
- elt.innerHTML = '<span class=sf-dump-str-collapse>'+h+'<a class="sf-dump-ref sf-dump-str-toggle" title="Collapse"> ◀</a></span>'+
- '<span class=sf-dump-str-expand>'+elt.innerHTML+'<a class="sf-dump-ref sf-dump-str-toggle" title="'+x+' remaining characters"> ▶</a></span>';
- }
- }
- } catch (e) {
- }
-};
-
-})(document);
-</script><style>
-pre.sf-dump {
- display: block;
- white-space: pre;
- padding: 5px;
-}
-pre.sf-dump:after {
- content: "";
- visibility: hidden;
- display: block;
- height: 0;
- clear: both;
-}
-pre.sf-dump span {
- display: inline;
-}
-pre.sf-dump .sf-dump-compact {
- display: none;
-}
-pre.sf-dump abbr {
- text-decoration: none;
- border: none;
- cursor: help;
-}
-pre.sf-dump a {
- text-decoration: none;
- cursor: pointer;
- border: 0;
- outline: none;
- color: inherit;
-}
-pre.sf-dump .sf-dump-ellipsis {
- display: inline-block;
- overflow: visible;
- text-overflow: ellipsis;
- max-width: 5em;
- white-space: nowrap;
- overflow: hidden;
- vertical-align: top;
-}
-pre.sf-dump .sf-dump-ellipsis+.sf-dump-ellipsis {
- max-width: none;
-}
-pre.sf-dump code {
- display:inline;
- padding:0;
- background:none;
-}
-.sf-dump-str-collapse .sf-dump-str-collapse {
- display: none;
-}
-.sf-dump-str-expand .sf-dump-str-expand {
- display: none;
-}
-.sf-dump-public.sf-dump-highlight,
-.sf-dump-protected.sf-dump-highlight,
-.sf-dump-private.sf-dump-highlight,
-.sf-dump-str.sf-dump-highlight,
-.sf-dump-key.sf-dump-highlight {
- background: rgba(111, 172, 204, 0.3);
- border: 1px solid #7DA0B1;
- border-radius: 3px;
-}
-.sf-dump-public.sf-dump-highlight-active,
-.sf-dump-protected.sf-dump-highlight-active,
-.sf-dump-private.sf-dump-highlight-active,
-.sf-dump-str.sf-dump-highlight-active,
-.sf-dump-key.sf-dump-highlight-active {
- background: rgba(253, 175, 0, 0.4);
- border: 1px solid #ffa500;
- border-radius: 3px;
-}
-pre.sf-dump .sf-dump-search-hidden {
- display: none;
-}
-pre.sf-dump .sf-dump-search-wrapper {
- float: right;
- font-size: 0;
- white-space: nowrap;
- max-width: 100%;
- text-align: right;
-}
-pre.sf-dump .sf-dump-search-wrapper > * {
- vertical-align: top;
- box-sizing: border-box;
- height: 21px;
- font-weight: normal;
- border-radius: 0;
- background: #FFF;
- color: #757575;
- border: 1px solid #BBB;
-}
-pre.sf-dump .sf-dump-search-wrapper > input.sf-dump-search-input {
- padding: 3px;
- height: 21px;
- font-size: 12px;
- border-right: none;
- width: 140px;
- border-top-left-radius: 3px;
- border-bottom-left-radius: 3px;
- color: #000;
-}
-pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next,
-pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-previous {
- background: #F2F2F2;
- outline: none;
- border-left: none;
- font-size: 0;
- line-height: 0;
-}
-pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next {
- border-top-right-radius: 3px;
- border-bottom-right-radius: 3px;
-}
-pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next > svg,
-pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-previous > svg {
- pointer-events: none;
- width: 12px;
- height: 12px;
-}
-pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-count {
- display: inline-block;
- padding: 0 5px;
- margin: 0;
- border-left: none;
- line-height: 21px;
- font-size: 12px;
-}
-EOHTML
- );
-
- foreach ($this->styles as $class => $style) {
- $line .= 'pre.sf-dump'.('default' === $class ? ', pre.sf-dump' : '').' .sf-dump-'.$class.'{'.$style.'}';
- }
-
- return $this->dumpHeader = preg_replace('/\s+/', ' ', $line).'</style>'.$this->dumpHeader;
- }
-
- /**
- * {@inheritdoc}
- */
- public function enterHash(Cursor $cursor, $type, $class, $hasChild)
- {
- parent::enterHash($cursor, $type, $class, false);
-
- if ($cursor->skipChildren) {
- $cursor->skipChildren = false;
- $eol = ' class=sf-dump-compact>';
- } elseif ($this->expandNextHash) {
- $this->expandNextHash = false;
- $eol = ' class=sf-dump-expanded>';
- } else {
- $eol = '>';
- }
-
- if ($hasChild) {
- $this->line .= '<samp';
- if ($cursor->refIndex) {
- $r = Cursor::HASH_OBJECT !== $type ? 1 - (Cursor::HASH_RESOURCE !== $type) : 2;
- $r .= $r && 0 < $cursor->softRefHandle ? $cursor->softRefHandle : $cursor->refIndex;
-
- $this->line .= sprintf(' id=%s-ref%s', $this->dumpId, $r);
- }
- $this->line .= $eol;
- $this->dumpLine($cursor->depth);
- }
- }
-
- /**
- * {@inheritdoc}
- */
- public function leaveHash(Cursor $cursor, $type, $class, $hasChild, $cut)
- {
- $this->dumpEllipsis($cursor, $hasChild, $cut);
- if ($hasChild) {
- $this->line .= '</samp>';
- }
- parent::leaveHash($cursor, $type, $class, $hasChild, 0);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function style($style, $value, $attr = [])
- {
- if ('' === $value) {
- return '';
- }
-
- $v = esc($value);
-
- if ('ref' === $style) {
- if (empty($attr['count'])) {
- return sprintf('<a class=sf-dump-ref>%s</a>', $v);
- }
- $r = ('#' !== $v[0] ? 1 - ('@' !== $v[0]) : 2).substr($value, 1);
-
- return sprintf('<a class=sf-dump-ref href=#%s-ref%s title="%d occurrences">%s</a>', $this->dumpId, $r, 1 + $attr['count'], $v);
- }
-
- if ('const' === $style && isset($attr['value'])) {
- $style .= sprintf(' title="%s"', esc(is_scalar($attr['value']) ? $attr['value'] : json_encode($attr['value'])));
- } elseif ('public' === $style) {
- $style .= sprintf(' title="%s"', empty($attr['dynamic']) ? 'Public property' : 'Runtime added dynamic property');
- } elseif ('str' === $style && 1 < $attr['length']) {
- $style .= sprintf(' title="%d%s characters"', $attr['length'], $attr['binary'] ? ' binary or non-UTF-8' : '');
- } elseif ('note' === $style && false !== $c = strrpos($v, '\\')) {
- return sprintf('<abbr title="%s" class=sf-dump-%s>%s</abbr>', $v, $style, substr($v, $c + 1));
- } elseif ('protected' === $style) {
- $style .= ' title="Protected property"';
- } elseif ('meta' === $style && isset($attr['title'])) {
- $style .= sprintf(' title="%s"', esc($this->utf8Encode($attr['title'])));
- } elseif ('private' === $style) {
- $style .= sprintf(' title="Private property defined in class:&#10;`%s`"', esc($this->utf8Encode($attr['class'])));
- }
- $map = static::$controlCharsMap;
-
- if (isset($attr['ellipsis'])) {
- $class = 'sf-dump-ellipsis';
- if (isset($attr['ellipsis-type'])) {
- $class = sprintf('"%s sf-dump-ellipsis-%s"', $class, $attr['ellipsis-type']);
- }
- $label = esc(substr($value, -$attr['ellipsis']));
- $style = str_replace(' title="', " title=\"$v\n", $style);
- $v = sprintf('<span class=%s>%s</span>', $class, substr($v, 0, -\strlen($label)));
-
- if (!empty($attr['ellipsis-tail'])) {
- $tail = \strlen(esc(substr($value, -$attr['ellipsis'], $attr['ellipsis-tail'])));
- $v .= sprintf('<span class=sf-dump-ellipsis>%s</span>%s', substr($label, 0, $tail), substr($label, $tail));
- } else {
- $v .= $label;
- }
- }
-
- $v = "<span class=sf-dump-{$style}>".preg_replace_callback(static::$controlCharsRx, function ($c) use ($map) {
- $s = '<span class=sf-dump-default>';
- $c = $c[$i = 0];
- do {
- $s .= isset($map[$c[$i]]) ? $map[$c[$i]] : sprintf('\x%02X', \ord($c[$i]));
- } while (isset($c[++$i]));
-
- return $s.'</span>';
- }, $v).'</span>';
-
- if (isset($attr['file']) && $href = $this->getSourceLink($attr['file'], isset($attr['line']) ? $attr['line'] : 0)) {
- $attr['href'] = $href;
- }
- if (isset($attr['href'])) {
- $target = isset($attr['file']) ? '' : ' target="_blank"';
- $v = sprintf('<a href="%s"%s rel="noopener noreferrer">%s</a>', esc($this->utf8Encode($attr['href'])), $target, $v);
- }
- if (isset($attr['lang'])) {
- $v = sprintf('<code class="%s">%s</code>', esc($attr['lang']), $v);
- }
-
- return $v;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function dumpLine($depth, $endOfValue = false)
- {
- if (-1 === $this->lastDepth) {
- $this->line = sprintf($this->dumpPrefix, $this->dumpId, $this->indentPad).$this->line;
- }
- if ($this->headerIsDumped !== (null !== $this->outputStream ? $this->outputStream : $this->lineDumper)) {
- $this->line = $this->getDumpHeader().$this->line;
- }
-
- if (-1 === $depth) {
- $args = ['"'.$this->dumpId.'"'];
- if ($this->extraDisplayOptions) {
- $args[] = json_encode($this->extraDisplayOptions, JSON_FORCE_OBJECT);
- }
- // Replace is for BC
- $this->line .= sprintf(str_replace('"%s"', '%s', $this->dumpSuffix), implode(', ', $args));
- }
- $this->lastDepth = $depth;
-
- $this->line = mb_convert_encoding($this->line, 'HTML-ENTITIES', 'UTF-8');
-
- if (-1 === $depth) {
- AbstractDumper::dumpLine(0);
- }
- AbstractDumper::dumpLine($depth);
- }
-
- private function getSourceLink($file, $line)
- {
- $options = $this->extraDisplayOptions + $this->displayOptions;
-
- if ($fmt = $options['fileLinkFormat']) {
- return \is_string($fmt) ? strtr($fmt, ['%f' => $file, '%l' => $line]) : $fmt->format($file, $line);
- }
-
- return false;
- }
-}
-
-function esc($str)
-{
- return htmlspecialchars($str, ENT_QUOTES, 'UTF-8');
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Exception/ThrowingCasterException.php b/www/wiki/vendor/symfony/var-dumper/Exception/ThrowingCasterException.php
deleted file mode 100644
index af47753a..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Exception/ThrowingCasterException.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Exception;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class ThrowingCasterException extends \Exception
-{
- /**
- * @param \Exception $prev The exception thrown from the caster
- */
- public function __construct(\Exception $prev)
- {
- parent::__construct('Unexpected '.\get_class($prev).' thrown from a caster: '.$prev->getMessage(), 0, $prev);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/LICENSE b/www/wiki/vendor/symfony/var-dumper/LICENSE
deleted file mode 100644
index cf8b3ebe..00000000
--- a/www/wiki/vendor/symfony/var-dumper/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2014-2019 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/symfony/var-dumper/README.md b/www/wiki/vendor/symfony/var-dumper/README.md
deleted file mode 100644
index 3b5d55f5..00000000
--- a/www/wiki/vendor/symfony/var-dumper/README.md
+++ /dev/null
@@ -1,15 +0,0 @@
-VarDumper Component
-===================
-
-The VarDumper component provides mechanisms for walking through any arbitrary
-PHP variable. Built on top, it provides a better `dump()` function that you
-can use instead of `var_dump`.
-
-Resources
----------
-
- * [Documentation](https://symfony.com/doc/current/components/var_dumper/introduction.html)
- * [Contributing](https://symfony.com/doc/current/contributing/index.html)
- * [Report issues](https://github.com/symfony/symfony/issues) and
- [send Pull Requests](https://github.com/symfony/symfony/pulls)
- in the [main Symfony repository](https://github.com/symfony/symfony)
diff --git a/www/wiki/vendor/symfony/var-dumper/Resources/functions/dump.php b/www/wiki/vendor/symfony/var-dumper/Resources/functions/dump.php
deleted file mode 100644
index 0e0e4d04..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Resources/functions/dump.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-use Symfony\Component\VarDumper\VarDumper;
-
-if (!function_exists('dump')) {
- /**
- * @author Nicolas Grekas <p@tchwork.com>
- */
- function dump($var)
- {
- foreach (func_get_args() as $v) {
- VarDumper::dump($v);
- }
-
- if (1 < func_num_args()) {
- return func_get_args();
- }
-
- return $var;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Test/VarDumperTestTrait.php b/www/wiki/vendor/symfony/var-dumper/Test/VarDumperTestTrait.php
deleted file mode 100644
index aae113b6..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Test/VarDumperTestTrait.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Test;
-
-use Symfony\Component\VarDumper\Cloner\VarCloner;
-use Symfony\Component\VarDumper\Dumper\CliDumper;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-trait VarDumperTestTrait
-{
- public function assertDumpEquals($dump, $data, $filter = 0, $message = '')
- {
- if (\is_string($filter)) {
- @trigger_error(sprintf('The $message argument of the "%s()" method at the 3rd position is deprecated since Symfony 3.4 and will be moved at the 4th position in 4.0.', __METHOD__), E_USER_DEPRECATED);
- $message = $filter;
- $filter = 0;
- }
-
- $this->assertSame(rtrim($dump), $this->getDump($data, null, $filter), $message);
- }
-
- public function assertDumpMatchesFormat($dump, $data, $filter = 0, $message = '')
- {
- if (\is_string($filter)) {
- @trigger_error(sprintf('The $message argument of the "%s()" method at the 3rd position is deprecated since Symfony 3.4 and will be moved at the 4th position in 4.0.', __METHOD__), E_USER_DEPRECATED);
- $message = $filter;
- $filter = 0;
- }
-
- $this->assertStringMatchesFormat(rtrim($dump), $this->getDump($data, null, $filter), $message);
- }
-
- protected function getDump($data, $key = null, $filter = 0)
- {
- $flags = getenv('DUMP_LIGHT_ARRAY') ? CliDumper::DUMP_LIGHT_ARRAY : 0;
- $flags |= getenv('DUMP_STRING_LENGTH') ? CliDumper::DUMP_STRING_LENGTH : 0;
-
- $cloner = new VarCloner();
- $cloner->setMaxItems(-1);
- $dumper = new CliDumper(null, null, $flags);
- $dumper->setColors(false);
- $data = $cloner->cloneVar($data, $filter)->withRefHandles(false);
- if (null !== $key && null === $data = $data->seek($key)) {
- return;
- }
-
- return rtrim($dumper->dump($data, true));
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/CasterTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Caster/CasterTest.php
deleted file mode 100644
index 728697b4..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/CasterTest.php
+++ /dev/null
@@ -1,181 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Caster;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Caster\Caster;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class CasterTest extends TestCase
-{
- use VarDumperTestTrait;
-
- private $referenceArray = [
- 'null' => null,
- 'empty' => false,
- 'public' => 'pub',
- "\0~\0virtual" => 'virt',
- "\0+\0dynamic" => 'dyn',
- "\0*\0protected" => 'prot',
- "\0Foo\0private" => 'priv',
- ];
-
- /**
- * @dataProvider provideFilter
- */
- public function testFilter($filter, $expectedDiff, $listedProperties = null)
- {
- if (null === $listedProperties) {
- $filteredArray = Caster::filter($this->referenceArray, $filter);
- } else {
- $filteredArray = Caster::filter($this->referenceArray, $filter, $listedProperties);
- }
-
- $this->assertSame($expectedDiff, array_diff_assoc($this->referenceArray, $filteredArray));
- }
-
- public function provideFilter()
- {
- return [
- [
- 0,
- [],
- ],
- [
- Caster::EXCLUDE_PUBLIC,
- [
- 'null' => null,
- 'empty' => false,
- 'public' => 'pub',
- ],
- ],
- [
- Caster::EXCLUDE_NULL,
- [
- 'null' => null,
- ],
- ],
- [
- Caster::EXCLUDE_EMPTY,
- [
- 'null' => null,
- 'empty' => false,
- ],
- ],
- [
- Caster::EXCLUDE_VIRTUAL,
- [
- "\0~\0virtual" => 'virt',
- ],
- ],
- [
- Caster::EXCLUDE_DYNAMIC,
- [
- "\0+\0dynamic" => 'dyn',
- ],
- ],
- [
- Caster::EXCLUDE_PROTECTED,
- [
- "\0*\0protected" => 'prot',
- ],
- ],
- [
- Caster::EXCLUDE_PRIVATE,
- [
- "\0Foo\0private" => 'priv',
- ],
- ],
- [
- Caster::EXCLUDE_VERBOSE,
- [
- 'public' => 'pub',
- "\0*\0protected" => 'prot',
- ],
- ['public', "\0*\0protected"],
- ],
- [
- Caster::EXCLUDE_NOT_IMPORTANT,
- [
- 'null' => null,
- 'empty' => false,
- "\0~\0virtual" => 'virt',
- "\0+\0dynamic" => 'dyn',
- "\0Foo\0private" => 'priv',
- ],
- ['public', "\0*\0protected"],
- ],
- [
- Caster::EXCLUDE_VIRTUAL | Caster::EXCLUDE_DYNAMIC,
- [
- "\0~\0virtual" => 'virt',
- "\0+\0dynamic" => 'dyn',
- ],
- ],
- [
- Caster::EXCLUDE_NOT_IMPORTANT | Caster::EXCLUDE_VERBOSE,
- $this->referenceArray,
- ['public', "\0*\0protected"],
- ],
- [
- Caster::EXCLUDE_NOT_IMPORTANT | Caster::EXCLUDE_EMPTY,
- [
- 'null' => null,
- 'empty' => false,
- "\0~\0virtual" => 'virt',
- "\0+\0dynamic" => 'dyn',
- "\0*\0protected" => 'prot',
- "\0Foo\0private" => 'priv',
- ],
- ['public', 'empty'],
- ],
- [
- Caster::EXCLUDE_VERBOSE | Caster::EXCLUDE_EMPTY | Caster::EXCLUDE_STRICT,
- [
- 'empty' => false,
- ],
- ['public', 'empty'],
- ],
- ];
- }
-
- /**
- * @requires PHP 7.0
- */
- public function testAnonymousClass()
- {
- $c = eval('return new class extends stdClass { private $foo = "foo"; };');
-
- $this->assertDumpMatchesFormat(
- <<<'EOTXT'
-stdClass@anonymous {
- -foo: "foo"
-}
-EOTXT
- , $c
- );
-
- $c = eval('return new class { private $foo = "foo"; };');
-
- $this->assertDumpMatchesFormat(
- <<<'EOTXT'
-@anonymous {
- -foo: "foo"
-}
-EOTXT
- , $c
- );
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/DateCasterTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Caster/DateCasterTest.php
deleted file mode 100644
index da8b4d0f..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/DateCasterTest.php
+++ /dev/null
@@ -1,426 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Caster;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Caster\Caster;
-use Symfony\Component\VarDumper\Caster\DateCaster;
-use Symfony\Component\VarDumper\Cloner\Stub;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-
-/**
- * @author Dany Maillard <danymaillard93b@gmail.com>
- */
-class DateCasterTest extends TestCase
-{
- use VarDumperTestTrait;
-
- /**
- * @dataProvider provideDateTimes
- */
- public function testDumpDateTime($time, $timezone, $xDate, $xTimestamp)
- {
- if ((\defined('HHVM_VERSION_ID') || \PHP_VERSION_ID <= 50509) && preg_match('/[-+]\d{2}:\d{2}/', $timezone)) {
- $this->markTestSkipped('DateTimeZone GMT offsets are supported since 5.5.10. See https://github.com/facebook/hhvm/issues/5875 for HHVM.');
- }
-
- $date = new \DateTime($time, new \DateTimeZone($timezone));
-
- $xDump = <<<EODUMP
-DateTime @$xTimestamp {
- date: $xDate
-}
-EODUMP;
-
- $this->assertDumpEquals($xDump, $date);
- }
-
- /**
- * @dataProvider provideDateTimes
- */
- public function testCastDateTime($time, $timezone, $xDate, $xTimestamp, $xInfos)
- {
- if ((\defined('HHVM_VERSION_ID') || \PHP_VERSION_ID <= 50509) && preg_match('/[-+]\d{2}:\d{2}/', $timezone)) {
- $this->markTestSkipped('DateTimeZone GMT offsets are supported since 5.5.10. See https://github.com/facebook/hhvm/issues/5875 for HHVM.');
- }
-
- $stub = new Stub();
- $date = new \DateTime($time, new \DateTimeZone($timezone));
- $cast = DateCaster::castDateTime($date, ['foo' => 'bar'], $stub, false, 0);
-
- $xDump = <<<EODUMP
-array:1 [
- "\\x00~\\x00date" => $xDate
-]
-EODUMP;
-
- $this->assertDumpEquals($xDump, $cast);
-
- $xDump = <<<EODUMP
-Symfony\Component\VarDumper\Caster\ConstStub {
- +type: 1
- +class: "$xDate"
- +value: "%A$xInfos%A"
- +cut: 0
- +handle: 0
- +refCount: 0
- +position: 0
- +attr: []
-}
-EODUMP;
-
- $this->assertDumpMatchesFormat($xDump, $cast["\0~\0date"]);
- }
-
- public function provideDateTimes()
- {
- return [
- ['2017-04-30 00:00:00.000000', 'Europe/Zurich', '2017-04-30 00:00:00.0 Europe/Zurich (+02:00)', 1493503200, 'Sunday, April 30, 2017%Afrom now%ADST On'],
- ['2017-12-31 00:00:00.000000', 'Europe/Zurich', '2017-12-31 00:00:00.0 Europe/Zurich (+01:00)', 1514674800, 'Sunday, December 31, 2017%Afrom now%ADST Off'],
- ['2017-04-30 00:00:00.000000', '+02:00', '2017-04-30 00:00:00.0 +02:00', 1493503200, 'Sunday, April 30, 2017%Afrom now'],
-
- ['2017-04-30 00:00:00.100000', '+00:00', '2017-04-30 00:00:00.100 +00:00', 1493510400, 'Sunday, April 30, 2017%Afrom now'],
- ['2017-04-30 00:00:00.120000', '+00:00', '2017-04-30 00:00:00.120 +00:00', 1493510400, 'Sunday, April 30, 2017%Afrom now'],
- ['2017-04-30 00:00:00.123000', '+00:00', '2017-04-30 00:00:00.123 +00:00', 1493510400, 'Sunday, April 30, 2017%Afrom now'],
- ['2017-04-30 00:00:00.123400', '+00:00', '2017-04-30 00:00:00.123400 +00:00', 1493510400, 'Sunday, April 30, 2017%Afrom now'],
- ['2017-04-30 00:00:00.123450', '+00:00', '2017-04-30 00:00:00.123450 +00:00', 1493510400, 'Sunday, April 30, 2017%Afrom now'],
- ['2017-04-30 00:00:00.123456', '+00:00', '2017-04-30 00:00:00.123456 +00:00', 1493510400, 'Sunday, April 30, 2017%Afrom now'],
- ];
- }
-
- /**
- * @dataProvider provideIntervals
- */
- public function testDumpInterval($intervalSpec, $ms, $invert, $expected)
- {
- if ($ms && \PHP_VERSION_ID >= 70200 && version_compare(PHP_VERSION, '7.2.0rc3', '<=')) {
- $this->markTestSkipped('Skipped on 7.2 before rc4 because of php bug #75354.');
- }
-
- $interval = $this->createInterval($intervalSpec, $ms, $invert);
-
- $xDump = <<<EODUMP
-DateInterval {
- interval: $expected
-%A}
-EODUMP;
-
- $this->assertDumpMatchesFormat($xDump, $interval);
- }
-
- /**
- * @dataProvider provideIntervals
- */
- public function testDumpIntervalExcludingVerbosity($intervalSpec, $ms, $invert, $expected)
- {
- if ($ms && \PHP_VERSION_ID >= 70200 && version_compare(PHP_VERSION, '7.2.0rc3', '<=')) {
- $this->markTestSkipped('Skipped on 7.2 before rc4 because of php bug #75354.');
- }
-
- $interval = $this->createInterval($intervalSpec, $ms, $invert);
-
- $xDump = <<<EODUMP
-DateInterval {
- interval: $expected
-}
-EODUMP;
-
- $this->assertDumpEquals($xDump, $interval, Caster::EXCLUDE_VERBOSE);
- }
-
- /**
- * @dataProvider provideIntervals
- */
- public function testCastInterval($intervalSpec, $ms, $invert, $xInterval, $xSeconds)
- {
- if ($ms && \PHP_VERSION_ID >= 70200 && version_compare(PHP_VERSION, '7.2.0rc3', '<=')) {
- $this->markTestSkipped('Skipped on 7.2 before rc4 because of php bug #75354.');
- }
-
- $interval = $this->createInterval($intervalSpec, $ms, $invert);
- $stub = new Stub();
-
- $cast = DateCaster::castInterval($interval, ['foo' => 'bar'], $stub, false, Caster::EXCLUDE_VERBOSE);
-
- $xDump = <<<EODUMP
-array:1 [
- "\\x00~\\x00interval" => $xInterval
-]
-EODUMP;
-
- $this->assertDumpEquals($xDump, $cast);
-
- if (null === $xSeconds) {
- return;
- }
-
- $xDump = <<<EODUMP
-Symfony\Component\VarDumper\Caster\ConstStub {
- +type: 1
- +class: "$xInterval"
- +value: "$xSeconds"
- +cut: 0
- +handle: 0
- +refCount: 0
- +position: 0
- +attr: []
-}
-EODUMP;
-
- $this->assertDumpMatchesFormat($xDump, $cast["\0~\0interval"]);
- }
-
- public function provideIntervals()
- {
- $i = new \DateInterval('PT0S');
- $ms = ($withMs = \PHP_VERSION_ID >= 70100 && isset($i->f)) ? '.0' : '';
-
- return [
- ['PT0S', 0, 0, '0s', '0s'],
- ['PT0S', 0.1, 0, $withMs ? '+ 00:00:00.100' : '0s', '%is'],
- ['PT1S', 0, 0, '+ 00:00:01'.$ms, '%is'],
- ['PT2M', 0, 0, '+ 00:02:00'.$ms, '%is'],
- ['PT3H', 0, 0, '+ 03:00:00'.$ms, '%ss'],
- ['P4D', 0, 0, '+ 4d', '%ss'],
- ['P5M', 0, 0, '+ 5m', null],
- ['P6Y', 0, 0, '+ 6y', null],
- ['P1Y2M3DT4H5M6S', 0, 0, '+ 1y 2m 3d 04:05:06'.$ms, null],
- ['PT1M60S', 0, 0, '+ 00:02:00'.$ms, null],
- ['PT1H60M', 0, 0, '+ 02:00:00'.$ms, null],
- ['P1DT24H', 0, 0, '+ 2d', null],
- ['P1M32D', 0, 0, '+ 1m 32d', null],
-
- ['PT0S', 0, 1, '0s', '0s'],
- ['PT0S', 0.1, 1, $withMs ? '- 00:00:00.100' : '0s', '%is'],
- ['PT1S', 0, 1, '- 00:00:01'.$ms, '%is'],
- ['PT2M', 0, 1, '- 00:02:00'.$ms, '%is'],
- ['PT3H', 0, 1, '- 03:00:00'.$ms, '%ss'],
- ['P4D', 0, 1, '- 4d', '%ss'],
- ['P5M', 0, 1, '- 5m', null],
- ['P6Y', 0, 1, '- 6y', null],
- ['P1Y2M3DT4H5M6S', 0, 1, '- 1y 2m 3d 04:05:06'.$ms, null],
- ['PT1M60S', 0, 1, '- 00:02:00'.$ms, null],
- ['PT1H60M', 0, 1, '- 02:00:00'.$ms, null],
- ['P1DT24H', 0, 1, '- 2d', null],
- ['P1M32D', 0, 1, '- 1m 32d', null],
- ];
- }
-
- /**
- * @dataProvider provideTimeZones
- */
- public function testDumpTimeZone($timezone, $expected)
- {
- if ((\defined('HHVM_VERSION_ID') || \PHP_VERSION_ID <= 50509) && !preg_match('/\w+\/\w+/', $timezone)) {
- $this->markTestSkipped('DateTimeZone GMT offsets are supported since 5.5.10. See https://github.com/facebook/hhvm/issues/5875 for HHVM.');
- }
-
- $timezone = new \DateTimeZone($timezone);
-
- $xDump = <<<EODUMP
-DateTimeZone {
- timezone: $expected
-%A}
-EODUMP;
-
- $this->assertDumpMatchesFormat($xDump, $timezone);
- }
-
- /**
- * @dataProvider provideTimeZones
- */
- public function testDumpTimeZoneExcludingVerbosity($timezone, $expected)
- {
- if ((\defined('HHVM_VERSION_ID') || \PHP_VERSION_ID <= 50509) && !preg_match('/\w+\/\w+/', $timezone)) {
- $this->markTestSkipped('DateTimeZone GMT offsets are supported since 5.5.10. See https://github.com/facebook/hhvm/issues/5875 for HHVM.');
- }
-
- $timezone = new \DateTimeZone($timezone);
-
- $xDump = <<<EODUMP
-DateTimeZone {
- timezone: $expected
-}
-EODUMP;
-
- $this->assertDumpMatchesFormat($xDump, $timezone, Caster::EXCLUDE_VERBOSE);
- }
-
- /**
- * @dataProvider provideTimeZones
- */
- public function testCastTimeZone($timezone, $xTimezone, $xRegion)
- {
- if ((\defined('HHVM_VERSION_ID') || \PHP_VERSION_ID <= 50509) && !preg_match('/\w+\/\w+/', $timezone)) {
- $this->markTestSkipped('DateTimeZone GMT offsets are supported since 5.5.10. See https://github.com/facebook/hhvm/issues/5875 for HHVM.');
- }
-
- $timezone = new \DateTimeZone($timezone);
- $stub = new Stub();
-
- $cast = DateCaster::castTimeZone($timezone, ['foo' => 'bar'], $stub, false, Caster::EXCLUDE_VERBOSE);
-
- $xDump = <<<EODUMP
-array:1 [
- "\\x00~\\x00timezone" => $xTimezone
-]
-EODUMP;
-
- $this->assertDumpMatchesFormat($xDump, $cast);
-
- $xDump = <<<EODUMP
-Symfony\Component\VarDumper\Caster\ConstStub {
- +type: 1
- +class: "$xTimezone"
- +value: "$xRegion"
- +cut: 0
- +handle: 0
- +refCount: 0
- +position: 0
- +attr: []
-}
-EODUMP;
-
- $this->assertDumpMatchesFormat($xDump, $cast["\0~\0timezone"]);
- }
-
- public function provideTimeZones()
- {
- $xRegion = \extension_loaded('intl') ? '%s' : '';
-
- return [
- // type 1 (UTC offset)
- ['-12:00', '-12:00', ''],
- ['+00:00', '+00:00', ''],
- ['+14:00', '+14:00', ''],
-
- // type 2 (timezone abbreviation)
- ['GMT', '+00:00', ''],
- ['a', '+01:00', ''],
- ['b', '+02:00', ''],
- ['z', '+00:00', ''],
-
- // type 3 (timezone identifier)
- ['Africa/Tunis', 'Africa/Tunis (%s:00)', $xRegion],
- ['America/Panama', 'America/Panama (%s:00)', $xRegion],
- ['Asia/Jerusalem', 'Asia/Jerusalem (%s:00)', $xRegion],
- ['Atlantic/Canary', 'Atlantic/Canary (%s:00)', $xRegion],
- ['Australia/Perth', 'Australia/Perth (%s:00)', $xRegion],
- ['Europe/Zurich', 'Europe/Zurich (%s:00)', $xRegion],
- ['Pacific/Tahiti', 'Pacific/Tahiti (%s:00)', $xRegion],
- ];
- }
-
- /**
- * @dataProvider providePeriods
- */
- public function testDumpPeriod($start, $interval, $end, $options, $expected)
- {
- if (\defined('HHVM_VERSION_ID') || \PHP_VERSION_ID < 50620 || (\PHP_VERSION_ID >= 70000 && \PHP_VERSION_ID < 70005)) {
- $this->markTestSkipped();
- }
-
- $p = new \DatePeriod(new \DateTime($start), new \DateInterval($interval), \is_int($end) ? $end : new \DateTime($end), $options);
-
- $xDump = <<<EODUMP
-DatePeriod {
- period: $expected
-%A}
-EODUMP;
-
- $this->assertDumpMatchesFormat($xDump, $p);
- }
-
- /**
- * @dataProvider providePeriods
- */
- public function testCastPeriod($start, $interval, $end, $options, $xPeriod, $xDates)
- {
- if (\defined('HHVM_VERSION_ID') || \PHP_VERSION_ID < 50620 || (\PHP_VERSION_ID >= 70000 && \PHP_VERSION_ID < 70005)) {
- $this->markTestSkipped();
- }
-
- $p = new \DatePeriod(new \DateTime($start), new \DateInterval($interval), \is_int($end) ? $end : new \DateTime($end), $options);
- $stub = new Stub();
-
- $cast = DateCaster::castPeriod($p, [], $stub, false, 0);
-
- $xDump = <<<EODUMP
-array:1 [
- "\\x00~\\x00period" => $xPeriod
-]
-EODUMP;
-
- $this->assertDumpEquals($xDump, $cast);
-
- $xDump = <<<EODUMP
-Symfony\Component\VarDumper\Caster\ConstStub {
- +type: 1
- +class: "$xPeriod"
- +value: "%A$xDates%A"
- +cut: 0
- +handle: 0
- +refCount: 0
- +position: 0
- +attr: []
-}
-EODUMP;
-
- $this->assertDumpMatchesFormat($xDump, $cast["\0~\0period"]);
- }
-
- public function providePeriods()
- {
- $i = new \DateInterval('PT0S');
- $ms = \PHP_VERSION_ID >= 70100 && isset($i->f) ? '.0' : '';
-
- $periods = [
- ['2017-01-01', 'P1D', '2017-01-03', 0, 'every + 1d, from 2017-01-01 00:00:00.0 (included) to 2017-01-03 00:00:00.0', '1) 2017-01-01%a2) 2017-01-02'],
- ['2017-01-01', 'P1D', 1, 0, 'every + 1d, from 2017-01-01 00:00:00.0 (included) recurring 2 time/s', '1) 2017-01-01%a2) 2017-01-02'],
-
- ['2017-01-01', 'P1D', '2017-01-04', 0, 'every + 1d, from 2017-01-01 00:00:00.0 (included) to 2017-01-04 00:00:00.0', '1) 2017-01-01%a2) 2017-01-02%a3) 2017-01-03'],
- ['2017-01-01', 'P1D', 2, 0, 'every + 1d, from 2017-01-01 00:00:00.0 (included) recurring 3 time/s', '1) 2017-01-01%a2) 2017-01-02%a3) 2017-01-03'],
-
- ['2017-01-01', 'P1D', '2017-01-05', 0, 'every + 1d, from 2017-01-01 00:00:00.0 (included) to 2017-01-05 00:00:00.0', '1) 2017-01-01%a2) 2017-01-02%a1 more'],
- ['2017-01-01', 'P1D', 3, 0, 'every + 1d, from 2017-01-01 00:00:00.0 (included) recurring 4 time/s', '1) 2017-01-01%a2) 2017-01-02%a3) 2017-01-03%a1 more'],
-
- ['2017-01-01', 'P1D', '2017-01-21', 0, 'every + 1d, from 2017-01-01 00:00:00.0 (included) to 2017-01-21 00:00:00.0', '1) 2017-01-01%a17 more'],
- ['2017-01-01', 'P1D', 19, 0, 'every + 1d, from 2017-01-01 00:00:00.0 (included) recurring 20 time/s', '1) 2017-01-01%a17 more'],
-
- ['2017-01-01 01:00:00', 'P1D', '2017-01-03 01:00:00', 0, 'every + 1d, from 2017-01-01 01:00:00.0 (included) to 2017-01-03 01:00:00.0', '1) 2017-01-01 01:00:00.0%a2) 2017-01-02 01:00:00.0'],
- ['2017-01-01 01:00:00', 'P1D', 1, 0, 'every + 1d, from 2017-01-01 01:00:00.0 (included) recurring 2 time/s', '1) 2017-01-01 01:00:00.0%a2) 2017-01-02 01:00:00.0'],
-
- ['2017-01-01', 'P1DT1H', '2017-01-03', 0, "every + 1d 01:00:00$ms, from 2017-01-01 00:00:00.0 (included) to 2017-01-03 00:00:00.0", '1) 2017-01-01 00:00:00.0%a2) 2017-01-02 01:00:00.0'],
- ['2017-01-01', 'P1DT1H', 1, 0, "every + 1d 01:00:00$ms, from 2017-01-01 00:00:00.0 (included) recurring 2 time/s", '1) 2017-01-01 00:00:00.0%a2) 2017-01-02 01:00:00.0'],
-
- ['2017-01-01', 'P1D', '2017-01-04', \DatePeriod::EXCLUDE_START_DATE, 'every + 1d, from 2017-01-01 00:00:00.0 (excluded) to 2017-01-04 00:00:00.0', '1) 2017-01-02%a2) 2017-01-03'],
- ['2017-01-01', 'P1D', 2, \DatePeriod::EXCLUDE_START_DATE, 'every + 1d, from 2017-01-01 00:00:00.0 (excluded) recurring 2 time/s', '1) 2017-01-02%a2) 2017-01-03'],
- ];
-
- if (\PHP_VERSION_ID < 70107) {
- array_walk($periods, function (&$i) { $i[5] = ''; });
- }
-
- return $periods;
- }
-
- private function createInterval($intervalSpec, $ms, $invert)
- {
- $interval = new \DateInterval($intervalSpec);
- if (\PHP_VERSION_ID >= 70100 && isset($interval->f)) {
- $interval->f = $ms;
- }
- $interval->invert = $invert;
-
- return $interval;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/ExceptionCasterTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Caster/ExceptionCasterTest.php
deleted file mode 100644
index ea83e771..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/ExceptionCasterTest.php
+++ /dev/null
@@ -1,230 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Caster;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Caster\Caster;
-use Symfony\Component\VarDumper\Caster\ExceptionCaster;
-use Symfony\Component\VarDumper\Caster\FrameStub;
-use Symfony\Component\VarDumper\Cloner\VarCloner;
-use Symfony\Component\VarDumper\Dumper\HtmlDumper;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-
-class ExceptionCasterTest extends TestCase
-{
- use VarDumperTestTrait;
-
- private function getTestException($msg, &$ref = null)
- {
- return new \Exception(''.$msg);
- }
-
- protected function tearDown()
- {
- ExceptionCaster::$srcContext = 1;
- ExceptionCaster::$traceArgs = true;
- }
-
- public function testDefaultSettings()
- {
- $ref = ['foo'];
- $e = $this->getTestException('foo', $ref);
-
- $expectedDump = <<<'EODUMP'
-Exception {
- #message: "foo"
- #code: 0
- #file: "%sExceptionCasterTest.php"
- #line: 28
- trace: {
- %s%eTests%eCaster%eExceptionCasterTest.php:28 {
- › {
- › return new \Exception(''.$msg);
- › }
- }
- %s%eTests%eCaster%eExceptionCasterTest.php:40 { …}
- Symfony\Component\VarDumper\Tests\Caster\ExceptionCasterTest->testDefaultSettings() {}
-%A
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $e);
- $this->assertSame(['foo'], $ref);
- }
-
- public function testSeek()
- {
- $e = $this->getTestException(2);
-
- $expectedDump = <<<'EODUMP'
-{
- %s%eTests%eCaster%eExceptionCasterTest.php:28 {
- › {
- › return new \Exception(''.$msg);
- › }
- }
- %s%eTests%eCaster%eExceptionCasterTest.php:65 { …}
- Symfony\Component\VarDumper\Tests\Caster\ExceptionCasterTest->testSeek() {}
-%A
-EODUMP;
-
- $this->assertStringMatchesFormat($expectedDump, $this->getDump($e, 'trace'));
- }
-
- public function testNoArgs()
- {
- $e = $this->getTestException(1);
- ExceptionCaster::$traceArgs = false;
-
- $expectedDump = <<<'EODUMP'
-Exception {
- #message: "1"
- #code: 0
- #file: "%sExceptionCasterTest.php"
- #line: 28
- trace: {
- %sExceptionCasterTest.php:28 {
- › {
- › return new \Exception(''.$msg);
- › }
- }
- %s%eTests%eCaster%eExceptionCasterTest.php:84 { …}
- Symfony\Component\VarDumper\Tests\Caster\ExceptionCasterTest->testNoArgs() {}
-%A
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $e);
- }
-
- public function testNoSrcContext()
- {
- $e = $this->getTestException(1);
- ExceptionCaster::$srcContext = -1;
-
- $expectedDump = <<<'EODUMP'
-Exception {
- #message: "1"
- #code: 0
- #file: "%sExceptionCasterTest.php"
- #line: 28
- trace: {
- %s%eTests%eCaster%eExceptionCasterTest.php:28
- %s%eTests%eCaster%eExceptionCasterTest.php:%d
-%A
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $e);
- }
-
- public function testHtmlDump()
- {
- if (ini_get('xdebug.file_link_format') || get_cfg_var('xdebug.file_link_format')) {
- $this->markTestSkipped('A custom file_link_format is defined.');
- }
-
- $e = $this->getTestException(1);
- ExceptionCaster::$srcContext = -1;
-
- $cloner = new VarCloner();
- $cloner->setMaxItems(1);
- $dumper = new HtmlDumper();
- $dumper->setDumpHeader('<foo></foo>');
- $dumper->setDumpBoundaries('<bar>', '</bar>');
- $dump = $dumper->dump($cloner->cloneVar($e)->withRefHandles(false), true);
-
- $expectedDump = <<<'EODUMP'
-<foo></foo><bar><span class=sf-dump-note>Exception</span> {<samp>
- #<span class=sf-dump-protected title="Protected property">message</span>: "<span class=sf-dump-str>1</span>"
- #<span class=sf-dump-protected title="Protected property">code</span>: <span class=sf-dump-num>0</span>
- #<span class=sf-dump-protected title="Protected property">file</span>: "<span class=sf-dump-str title="%sExceptionCasterTest.php
-%d characters"><span class="sf-dump-ellipsis sf-dump-ellipsis-path">%s%eVarDumper</span><span class=sf-dump-ellipsis>%e</span>Tests%eCaster%eExceptionCasterTest.php</span>"
- #<span class=sf-dump-protected title="Protected property">line</span>: <span class=sf-dump-num>28</span>
- <span class=sf-dump-meta>trace</span>: {<samp>
- <span class=sf-dump-meta title="%sExceptionCasterTest.php
-Stack level %d."><span class="sf-dump-ellipsis sf-dump-ellipsis-path">%s%eVarDumper</span><span class=sf-dump-ellipsis>%e</span>Tests%eCaster%eExceptionCasterTest.php</span>:<span class=sf-dump-num>28</span>
- &hellip;%d
- </samp>}
-</samp>}
-</bar>
-EODUMP;
-
- $this->assertStringMatchesFormat($expectedDump, $dump);
- }
-
- /**
- * @requires function Twig\Template::getSourceContext
- */
- public function testFrameWithTwig()
- {
- require_once \dirname(__DIR__).'/Fixtures/Twig.php';
-
- $f = [
- new FrameStub([
- 'file' => \dirname(__DIR__).'/Fixtures/Twig.php',
- 'line' => 20,
- 'class' => '__TwigTemplate_VarDumperFixture_u75a09',
- ]),
- new FrameStub([
- 'file' => \dirname(__DIR__).'/Fixtures/Twig.php',
- 'line' => 21,
- 'class' => '__TwigTemplate_VarDumperFixture_u75a09',
- 'object' => new \__TwigTemplate_VarDumperFixture_u75a09(null, __FILE__),
- ]),
- ];
-
- $expectedDump = <<<'EODUMP'
-array:2 [
- 0 => {
- class: "__TwigTemplate_VarDumperFixture_u75a09"
- src: {
- %sTwig.php:1 {
- ›
- › foo bar
- › twig source
- }
- }
- }
- 1 => {
- class: "__TwigTemplate_VarDumperFixture_u75a09"
- object: __TwigTemplate_VarDumperFixture_u75a09 {
- %A
- }
- src: {
- %sExceptionCasterTest.php:2 {
- › foo bar
- › twig source
- ›
- }
- }
- }
-]
-
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $f);
- }
-
- public function testExcludeVerbosity()
- {
- $e = $this->getTestException('foo');
-
- $expectedDump = <<<'EODUMP'
-Exception {
- #message: "foo"
- #code: 0
- #file: "%sExceptionCasterTest.php"
- #line: 28
-}
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $e, Caster::EXCLUDE_VERBOSE);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/PdoCasterTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Caster/PdoCasterTest.php
deleted file mode 100644
index 19bbe0f8..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/PdoCasterTest.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Caster;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Caster\PdoCaster;
-use Symfony\Component\VarDumper\Cloner\Stub;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class PdoCasterTest extends TestCase
-{
- use VarDumperTestTrait;
-
- /**
- * @requires extension pdo_sqlite
- */
- public function testCastPdo()
- {
- $pdo = new \PDO('sqlite::memory:');
- $pdo->setAttribute(\PDO::ATTR_STATEMENT_CLASS, ['PDOStatement', [$pdo]]);
-
- $cast = PdoCaster::castPdo($pdo, [], new Stub(), false);
-
- $this->assertInstanceOf('Symfony\Component\VarDumper\Caster\EnumStub', $cast["\0~\0attributes"]);
-
- $attr = $cast["\0~\0attributes"] = $cast["\0~\0attributes"]->value;
- $this->assertInstanceOf('Symfony\Component\VarDumper\Caster\ConstStub', $attr['CASE']);
- $this->assertSame('NATURAL', $attr['CASE']->class);
- $this->assertSame('BOTH', $attr['DEFAULT_FETCH_MODE']->class);
-
- $xDump = <<<'EODUMP'
-array:2 [
- "\x00~\x00inTransaction" => false
- "\x00~\x00attributes" => array:9 [
- "CASE" => NATURAL
- "ERRMODE" => SILENT
- "PERSISTENT" => false
- "DRIVER_NAME" => "sqlite"
- "ORACLE_NULLS" => NATURAL
- "CLIENT_VERSION" => "%s"
- "SERVER_VERSION" => "%s"
- "STATEMENT_CLASS" => array:%d [
- 0 => "PDOStatement"%A
- ]
- "DEFAULT_FETCH_MODE" => BOTH
- ]
-]
-EODUMP;
-
- $this->assertDumpMatchesFormat($xDump, $cast);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/RedisCasterTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Caster/RedisCasterTest.php
deleted file mode 100644
index ed14494e..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/RedisCasterTest.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Caster;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- * @requires extension redis
- */
-class RedisCasterTest extends TestCase
-{
- use VarDumperTestTrait;
-
- public function testNotConnected()
- {
- $redis = new \Redis();
-
- if (\defined('HHVM_VERSION_ID')) {
- $xCast = <<<'EODUMP'
-Redis {
- #host: ""
-%A
-}
-EODUMP;
- } else {
- $xCast = <<<'EODUMP'
-Redis {
- isConnected: false
-}
-EODUMP;
- }
-
- $this->assertDumpMatchesFormat($xCast, $redis);
- }
-
- public function testConnected()
- {
- $redis = new \Redis();
- if (!@$redis->connect('127.0.0.1')) {
- $e = error_get_last();
- self::markTestSkipped($e['message']);
- }
-
- if (\defined('HHVM_VERSION_ID')) {
- $xCast = <<<'EODUMP'
-Redis {
- #host: "127.0.0.1"
-%A
-}
-EODUMP;
- } else {
- $xCast = <<<'EODUMP'
-Redis {%A
- isConnected: true
- host: "127.0.0.1"
- port: 6379
- auth: null
- dbNum: 0
- timeout: 0.0
- persistentId: null
- options: {
- READ_TIMEOUT: 0.0
- SERIALIZER: NONE
- PREFIX: null
- SCAN: NORETRY
- }
-}
-EODUMP;
- }
-
- $this->assertDumpMatchesFormat($xCast, $redis);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/ReflectionCasterTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Caster/ReflectionCasterTest.php
deleted file mode 100644
index 96cb80eb..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/ReflectionCasterTest.php
+++ /dev/null
@@ -1,270 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Caster;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Caster\Caster;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-use Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo;
-use Symfony\Component\VarDumper\Tests\Fixtures\NotLoadableClass;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class ReflectionCasterTest extends TestCase
-{
- use VarDumperTestTrait;
-
- public function testReflectionCaster()
- {
- $var = new \ReflectionClass('ReflectionClass');
-
- $this->assertDumpMatchesFormat(
- <<<'EOTXT'
-ReflectionClass {
- +name: "ReflectionClass"
-%Aimplements: array:%d [
- 0 => "Reflector"
-%A]
- constants: array:3 [
- "IS_IMPLICIT_ABSTRACT" => 16
- "IS_EXPLICIT_ABSTRACT" => 32
- "IS_FINAL" => %d
- ]
- properties: array:%d [
- "name" => ReflectionProperty {
-%A +name: "name"
- +class: "ReflectionClass"
-%A modifiers: "public"
- }
-%A]
- methods: array:%d [
-%A
- "export" => ReflectionMethod {
- +name: "export"
- +class: "ReflectionClass"
-%A parameters: {
- $%s: ReflectionParameter {
-%A position: 0
-%A
-}
-EOTXT
- , $var
- );
- }
-
- public function testClosureCaster()
- {
- $a = $b = 123;
- $var = function ($x) use ($a, &$b) {};
-
- $this->assertDumpMatchesFormat(
- <<<EOTXT
-Closure {
-%Aparameters: {
- \$x: {}
- }
- use: {
- \$a: 123
- \$b: & 123
- }
- file: "%sReflectionCasterTest.php"
- line: "68 to 68"
-}
-EOTXT
- , $var
- );
- }
-
- public function testFromCallableClosureCaster()
- {
- if (\defined('HHVM_VERSION_ID')) {
- $this->markTestSkipped('Not for HHVM.');
- }
- $var = [
- (new \ReflectionMethod($this, __FUNCTION__))->getClosure($this),
- (new \ReflectionMethod(__CLASS__, 'tearDownAfterClass'))->getClosure(),
- ];
-
- $this->assertDumpMatchesFormat(
- <<<EOTXT
-array:2 [
- 0 => Symfony\Component\VarDumper\Tests\Caster\ReflectionCasterTest::testFromCallableClosureCaster {
- this: Symfony\Component\VarDumper\Tests\Caster\ReflectionCasterTest { …}
- file: "%sReflectionCasterTest.php"
- line: "%d to %d"
- }
- 1 => %sTestCase::tearDownAfterClass {
- file: "%sTestCase.php"
- line: "%d to %d"
- }
-]
-EOTXT
- , $var
- );
- }
-
- public function testClosureCasterExcludingVerbosity()
- {
- $var = function () {};
-
- $expectedDump = <<<EOTXT
-Closure {
- class: "Symfony\Component\VarDumper\Tests\Caster\ReflectionCasterTest"
- this: Symfony\Component\VarDumper\Tests\Caster\ReflectionCasterTest { …}
-}
-EOTXT;
-
- $this->assertDumpEquals($expectedDump, $var, Caster::EXCLUDE_VERBOSE);
- }
-
- public function testReflectionParameter()
- {
- $var = new \ReflectionParameter(__NAMESPACE__.'\reflectionParameterFixture', 0);
-
- $this->assertDumpMatchesFormat(
- <<<'EOTXT'
-ReflectionParameter {
- +name: "arg1"
- position: 0
- typeHint: "Symfony\Component\VarDumper\Tests\Fixtures\NotLoadableClass"
- default: null
-}
-EOTXT
- , $var
- );
- }
-
- /**
- * @requires PHP 7.0
- */
- public function testReflectionParameterScalar()
- {
- $f = eval('return function (int $a) {};');
- $var = new \ReflectionParameter($f, 0);
-
- $this->assertDumpMatchesFormat(
- <<<'EOTXT'
-ReflectionParameter {
- +name: "a"
- position: 0
- typeHint: "int"
-}
-EOTXT
- , $var
- );
- }
-
- /**
- * @requires PHP 7.0
- */
- public function testReturnType()
- {
- $f = eval('return function ():int {};');
- $line = __LINE__ - 1;
-
- $this->assertDumpMatchesFormat(
- <<<EOTXT
-Closure {
- returnType: "int"
- class: "Symfony\Component\VarDumper\Tests\Caster\ReflectionCasterTest"
- this: Symfony\Component\VarDumper\Tests\Caster\ReflectionCasterTest { …}
- file: "%sReflectionCasterTest.php($line) : eval()'d code"
- line: "1 to 1"
-}
-EOTXT
- , $f
- );
- }
-
- /**
- * @requires PHP 7.0
- */
- public function testGenerator()
- {
- if (\extension_loaded('xdebug')) {
- $this->markTestSkipped('xdebug is active');
- }
-
- $generator = new GeneratorDemo();
- $generator = $generator->baz();
-
- $expectedDump = <<<'EODUMP'
-Generator {
- this: Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo { …}
- executing: {
- Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo->baz() {
- %sGeneratorDemo.php:14 {
- › {
- › yield from bar();
- › }
- }
- }
- }
- closed: false
-}
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $generator);
-
- foreach ($generator as $v) {
- break;
- }
-
- $expectedDump = <<<'EODUMP'
-array:2 [
- 0 => ReflectionGenerator {
- this: Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo { …}
- trace: {
- %s%eTests%eFixtures%eGeneratorDemo.php:9 {
- › {
- › yield 1;
- › }
- }
- %s%eTests%eFixtures%eGeneratorDemo.php:20 { …}
- %s%eTests%eFixtures%eGeneratorDemo.php:14 { …}
- }
- closed: false
- }
- 1 => Generator {
- executing: {
- Symfony\Component\VarDumper\Tests\Fixtures\GeneratorDemo::foo() {
- %sGeneratorDemo.php:10 {
- › yield 1;
- › }
- ›
- }
- }
- }
- closed: false
- }
-]
-EODUMP;
-
- $r = new \ReflectionGenerator($generator);
- $this->assertDumpMatchesFormat($expectedDump, [$r, $r->getExecutingGenerator()]);
-
- foreach ($generator as $v) {
- }
-
- $expectedDump = <<<'EODUMP'
-Generator {
- closed: true
-}
-EODUMP;
- $this->assertDumpMatchesFormat($expectedDump, $generator);
- }
-}
-
-function reflectionParameterFixture(NotLoadableClass $arg1 = null, $arg2)
-{
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/SplCasterTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Caster/SplCasterTest.php
deleted file mode 100644
index 984b340c..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/SplCasterTest.php
+++ /dev/null
@@ -1,213 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Caster;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-
-/**
- * @author Grégoire Pineau <lyrixx@lyrixx.info>
- */
-class SplCasterTest extends TestCase
-{
- use VarDumperTestTrait;
-
- public function getCastFileInfoTests()
- {
- return [
- [__FILE__, <<<'EOTXT'
-SplFileInfo {
-%Apath: "%sCaster"
- filename: "SplCasterTest.php"
- basename: "SplCasterTest.php"
- pathname: "%sSplCasterTest.php"
- extension: "php"
- realPath: "%sSplCasterTest.php"
- aTime: %s-%s-%d %d:%d:%d
- mTime: %s-%s-%d %d:%d:%d
- cTime: %s-%s-%d %d:%d:%d
- inode: %i
- size: %d
- perms: 0%d
- owner: %d
- group: %d
- type: "file"
- writable: true
- readable: true
- executable: false
- file: true
- dir: false
- link: false
-%A}
-EOTXT
- ],
- ['https://google.com/about', <<<'EOTXT'
-SplFileInfo {
-%Apath: "https://google.com"
- filename: "about"
- basename: "about"
- pathname: "https://google.com/about"
- extension: ""
- realPath: false
-%A}
-EOTXT
- ],
- ];
- }
-
- /** @dataProvider getCastFileInfoTests */
- public function testCastFileInfo($file, $dump)
- {
- $this->assertDumpMatchesFormat($dump, new \SplFileInfo($file));
- }
-
- public function testCastFileObject()
- {
- $var = new \SplFileObject(__FILE__);
- $var->setFlags(\SplFileObject::DROP_NEW_LINE | \SplFileObject::SKIP_EMPTY);
- $dump = <<<'EOTXT'
-SplFileObject {
-%Apath: "%sCaster"
- filename: "SplCasterTest.php"
- basename: "SplCasterTest.php"
- pathname: "%sSplCasterTest.php"
- extension: "php"
- realPath: "%sSplCasterTest.php"
- aTime: %s-%s-%d %d:%d:%d
- mTime: %s-%s-%d %d:%d:%d
- cTime: %s-%s-%d %d:%d:%d
- inode: %i
- size: %d
- perms: 0%d
- owner: %d
- group: %d
- type: "file"
- writable: true
- readable: true
- executable: false
- file: true
- dir: false
- link: false
-%AcsvControl: array:%d [
- 0 => ","
- 1 => """
-%A]
- flags: DROP_NEW_LINE|SKIP_EMPTY
- maxLineLen: 0
- fstat: array:26 [
- "dev" => %d
- "ino" => %i
- "nlink" => %d
- "rdev" => 0
- "blksize" => %i
- "blocks" => %i
- …20
- ]
- eof: false
- key: 0
-}
-EOTXT;
- $this->assertDumpMatchesFormat($dump, $var);
- }
-
- /**
- * @dataProvider provideCastSplDoublyLinkedList
- */
- public function testCastSplDoublyLinkedList($modeValue, $modeDump)
- {
- $var = new \SplDoublyLinkedList();
- $var->setIteratorMode($modeValue);
- $dump = <<<EOTXT
-SplDoublyLinkedList {
-%Amode: $modeDump
- dllist: []
-}
-EOTXT;
- $this->assertDumpMatchesFormat($dump, $var);
- }
-
- public function provideCastSplDoublyLinkedList()
- {
- return [
- [\SplDoublyLinkedList::IT_MODE_FIFO, 'IT_MODE_FIFO | IT_MODE_KEEP'],
- [\SplDoublyLinkedList::IT_MODE_LIFO, 'IT_MODE_LIFO | IT_MODE_KEEP'],
- [\SplDoublyLinkedList::IT_MODE_FIFO | \SplDoublyLinkedList::IT_MODE_DELETE, 'IT_MODE_FIFO | IT_MODE_DELETE'],
- [\SplDoublyLinkedList::IT_MODE_LIFO | \SplDoublyLinkedList::IT_MODE_DELETE, 'IT_MODE_LIFO | IT_MODE_DELETE'],
- ];
- }
-
- public function testCastObjectStorageIsntModified()
- {
- $var = new \SplObjectStorage();
- $var->attach(new \stdClass());
- $var->rewind();
- $current = $var->current();
-
- $this->assertDumpMatchesFormat('%A', $var);
- $this->assertSame($current, $var->current());
- }
-
- public function testCastObjectStorageDumpsInfo()
- {
- $var = new \SplObjectStorage();
- $var->attach(new \stdClass(), new \DateTime());
-
- $this->assertDumpMatchesFormat('%ADateTime%A', $var);
- }
-
- public function testCastArrayObject()
- {
- if (\defined('HHVM_VERSION')) {
- $this->markTestSkipped('HHVM as different internal details.');
- }
- $var = new \ArrayObject([123]);
- $var->foo = 234;
-
- $expected = <<<EOTXT
-ArrayObject {
- +"foo": 234
- flag::STD_PROP_LIST: false
- flag::ARRAY_AS_PROPS: false
- iteratorClass: "ArrayIterator"
- storage: array:1 [
- 0 => 123
- ]
-}
-EOTXT;
- $this->assertDumpEquals($expected, $var);
- }
-
- public function testArrayIterator()
- {
- if (\defined('HHVM_VERSION')) {
- $this->markTestSkipped('HHVM as different internal details.');
- }
- $var = new MyArrayIterator([234]);
-
- $expected = <<<EOTXT
-Symfony\Component\VarDumper\Tests\Caster\MyArrayIterator {
- -foo: 123
- flag::STD_PROP_LIST: false
- flag::ARRAY_AS_PROPS: false
- storage: array:1 [
- 0 => 234
- ]
-}
-EOTXT;
- $this->assertDumpEquals($expected, $var);
- }
-}
-
-class MyArrayIterator extends \ArrayIterator
-{
- private $foo = 123;
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/StubCasterTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Caster/StubCasterTest.php
deleted file mode 100644
index 945833eb..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/StubCasterTest.php
+++ /dev/null
@@ -1,192 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Caster;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Caster\ArgsStub;
-use Symfony\Component\VarDumper\Caster\ClassStub;
-use Symfony\Component\VarDumper\Caster\LinkStub;
-use Symfony\Component\VarDumper\Cloner\VarCloner;
-use Symfony\Component\VarDumper\Dumper\HtmlDumper;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-use Symfony\Component\VarDumper\Tests\Fixtures\FooInterface;
-
-class StubCasterTest extends TestCase
-{
- use VarDumperTestTrait;
-
- public function testArgsStubWithDefaults($foo = 234, $bar = 456)
- {
- $args = [new ArgsStub([123], __FUNCTION__, __CLASS__)];
-
- $expectedDump = <<<'EODUMP'
-array:1 [
- 0 => {
- $foo: 123
- }
-]
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $args);
- }
-
- public function testArgsStubWithExtraArgs($foo = 234)
- {
- $args = [new ArgsStub([123, 456], __FUNCTION__, __CLASS__)];
-
- $expectedDump = <<<'EODUMP'
-array:1 [
- 0 => {
- $foo: 123
- ...: {
- 456
- }
- }
-]
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $args);
- }
-
- public function testArgsStubNoParamWithExtraArgs()
- {
- $args = [new ArgsStub([123], __FUNCTION__, __CLASS__)];
-
- $expectedDump = <<<'EODUMP'
-array:1 [
- 0 => {
- 123
- }
-]
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $args);
- }
-
- public function testArgsStubWithClosure()
- {
- $args = [new ArgsStub([123], '{closure}', null)];
-
- $expectedDump = <<<'EODUMP'
-array:1 [
- 0 => {
- 123
- }
-]
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $args);
- }
-
- public function testLinkStub()
- {
- $var = [new LinkStub(__CLASS__, 0, __FILE__)];
-
- $cloner = new VarCloner();
- $dumper = new HtmlDumper();
- $dumper->setDumpHeader('<foo></foo>');
- $dumper->setDumpBoundaries('<bar>', '</bar>');
- $dumper->setDisplayOptions(['fileLinkFormat' => '%f:%l']);
- $dump = $dumper->dump($cloner->cloneVar($var), true);
-
- $expectedDump = <<<'EODUMP'
-<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
- <span class=sf-dump-index>0</span> => "<a href="%sStubCasterTest.php:0" rel="noopener noreferrer"><span class=sf-dump-str title="55 characters">Symfony\Component\VarDumper\Tests\Caster\StubCasterTest</span></a>"
-</samp>]
-</bar>
-EODUMP;
-
- $this->assertStringMatchesFormat($expectedDump, $dump);
- }
-
- public function testLinkStubWithNoFileLink()
- {
- $var = [new LinkStub('example.com', 0, 'http://example.com')];
-
- $cloner = new VarCloner();
- $dumper = new HtmlDumper();
- $dumper->setDumpHeader('<foo></foo>');
- $dumper->setDumpBoundaries('<bar>', '</bar>');
- $dumper->setDisplayOptions(['fileLinkFormat' => '%f:%l']);
- $dump = $dumper->dump($cloner->cloneVar($var), true);
-
- $expectedDump = <<<'EODUMP'
-<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
- <span class=sf-dump-index>0</span> => "<a href="http://example.com" target="_blank" rel="noopener noreferrer"><span class=sf-dump-str title="11 characters">example.com</span></a>"
-</samp>]
-</bar>
-EODUMP;
-
- $this->assertStringMatchesFormat($expectedDump, $dump);
- }
-
- public function testClassStub()
- {
- $var = [new ClassStub('hello', [FooInterface::class, 'foo'])];
-
- $cloner = new VarCloner();
- $dumper = new HtmlDumper();
- $dumper->setDumpHeader('<foo></foo>');
- $dumper->setDumpBoundaries('<bar>', '</bar>');
- $dump = $dumper->dump($cloner->cloneVar($var), true, ['fileLinkFormat' => '%f:%l']);
-
- $expectedDump = <<<'EODUMP'
-<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
- <span class=sf-dump-index>0</span> => "<a href="%sFooInterface.php:10" rel="noopener noreferrer"><span class=sf-dump-str title="5 characters">hello</span></a>"
-</samp>]
-</bar>
-EODUMP;
-
- $this->assertStringMatchesFormat($expectedDump, $dump);
- }
-
- public function testClassStubWithNotExistingClass()
- {
- $var = [new ClassStub(NotExisting::class)];
-
- $cloner = new VarCloner();
- $dumper = new HtmlDumper();
- $dumper->setDumpHeader('<foo></foo>');
- $dumper->setDumpBoundaries('<bar>', '</bar>');
- $dump = $dumper->dump($cloner->cloneVar($var), true);
-
- $expectedDump = <<<'EODUMP'
-<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
- <span class=sf-dump-index>0</span> => "<span class=sf-dump-str title="Symfony\Component\VarDumper\Tests\Caster\NotExisting
-52 characters"><span class="sf-dump-ellipsis sf-dump-ellipsis-class">Symfony\Component\VarDumper\Tests\Caster</span><span class=sf-dump-ellipsis>\</span>NotExisting</span>"
-</samp>]
-</bar>
-EODUMP;
-
- $this->assertStringMatchesFormat($expectedDump, $dump);
- }
-
- public function testClassStubWithNotExistingMethod()
- {
- $var = [new ClassStub('hello', [FooInterface::class, 'missing'])];
-
- $cloner = new VarCloner();
- $dumper = new HtmlDumper();
- $dumper->setDumpHeader('<foo></foo>');
- $dumper->setDumpBoundaries('<bar>', '</bar>');
- $dump = $dumper->dump($cloner->cloneVar($var), true, ['fileLinkFormat' => '%f:%l']);
-
- $expectedDump = <<<'EODUMP'
-<foo></foo><bar><span class=sf-dump-note>array:1</span> [<samp>
- <span class=sf-dump-index>0</span> => "<a href="%sFooInterface.php:5" rel="noopener noreferrer"><span class=sf-dump-str title="5 characters">hello</span></a>"
-</samp>]
-</bar>
-EODUMP;
-
- $this->assertStringMatchesFormat($expectedDump, $dump);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/XmlReaderCasterTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Caster/XmlReaderCasterTest.php
deleted file mode 100644
index 1d7b3f62..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Caster/XmlReaderCasterTest.php
+++ /dev/null
@@ -1,248 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Caster;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-
-/**
- * @author Baptiste Clavié <clavie.b@gmail.com>
- */
-class XmlReaderCasterTest extends TestCase
-{
- use VarDumperTestTrait;
-
- /** @var \XmlReader */
- private $reader;
-
- protected function setUp()
- {
- $this->reader = new \XmlReader();
- $this->reader->open(__DIR__.'/../Fixtures/xml_reader.xml');
- }
-
- protected function tearDown()
- {
- $this->reader->close();
- }
-
- public function testParserProperty()
- {
- $this->reader->setParserProperty(\XMLReader::SUBST_ENTITIES, true);
-
- $expectedDump = <<<'EODUMP'
-XMLReader {
- +nodeType: NONE
- parserProperties: {
- SUBST_ENTITIES: true
- …3
- }
- …12
-}
-EODUMP;
-
- $this->assertDumpMatchesFormat($expectedDump, $this->reader);
- }
-
- /**
- * @dataProvider provideNodes
- */
- public function testNodes($seek, $expectedDump)
- {
- while ($seek--) {
- $this->reader->read();
- }
- $this->assertDumpMatchesFormat($expectedDump, $this->reader);
- }
-
- public function provideNodes()
- {
- return [
- [0, <<<'EODUMP'
-XMLReader {
- +nodeType: NONE
- …13
-}
-EODUMP
- ],
- [1, <<<'EODUMP'
-XMLReader {
- +localName: "foo"
- +nodeType: ELEMENT
- +baseURI: "%sxml_reader.xml"
- …11
-}
-EODUMP
- ],
- [2, <<<'EODUMP'
-XMLReader {
- +localName: "#text"
- +nodeType: SIGNIFICANT_WHITESPACE
- +depth: 1
- +value: """
- \n
-
- """
- +baseURI: "%sxml_reader.xml"
- …9
-}
-EODUMP
- ],
- [3, <<<'EODUMP'
-XMLReader {
- +localName: "bar"
- +nodeType: ELEMENT
- +depth: 1
- +baseURI: "%sxml_reader.xml"
- …10
-}
-EODUMP
- ],
- [4, <<<'EODUMP'
-XMLReader {
- +localName: "bar"
- +nodeType: END_ELEMENT
- +depth: 1
- +baseURI: "%sxml_reader.xml"
- …10
-}
-EODUMP
- ],
- [6, <<<'EODUMP'
-XMLReader {
- +localName: "bar"
- +nodeType: ELEMENT
- +depth: 1
- +isEmptyElement: true
- +baseURI: "%sxml_reader.xml"
- …9
-}
-EODUMP
- ],
- [9, <<<'EODUMP'
-XMLReader {
- +localName: "#text"
- +nodeType: TEXT
- +depth: 2
- +value: "With text"
- +baseURI: "%sxml_reader.xml"
- …9
-}
-EODUMP
- ],
- [12, <<<'EODUMP'
-XMLReader {
- +localName: "bar"
- +nodeType: ELEMENT
- +depth: 1
- +attributeCount: 2
- +baseURI: "%sxml_reader.xml"
- …9
-}
-EODUMP
- ],
- [13, <<<'EODUMP'
-XMLReader {
- +localName: "bar"
- +nodeType: END_ELEMENT
- +depth: 1
- +baseURI: "%sxml_reader.xml"
- …10
-}
-EODUMP
- ],
- [15, <<<'EODUMP'
-XMLReader {
- +localName: "bar"
- +nodeType: ELEMENT
- +depth: 1
- +attributeCount: 1
- +baseURI: "%sxml_reader.xml"
- …9
-}
-EODUMP
- ],
- [16, <<<'EODUMP'
-XMLReader {
- +localName: "#text"
- +nodeType: SIGNIFICANT_WHITESPACE
- +depth: 2
- +value: """
- \n
-
- """
- +baseURI: "%sxml_reader.xml"
- …9
-}
-EODUMP
- ],
- [17, <<<'EODUMP'
-XMLReader {
- +localName: "baz"
- +prefix: "baz"
- +nodeType: ELEMENT
- +depth: 2
- +namespaceURI: "http://symfony.com"
- +baseURI: "%sxml_reader.xml"
- …8
-}
-EODUMP
- ],
- [18, <<<'EODUMP'
-XMLReader {
- +localName: "baz"
- +prefix: "baz"
- +nodeType: END_ELEMENT
- +depth: 2
- +namespaceURI: "http://symfony.com"
- +baseURI: "%sxml_reader.xml"
- …8
-}
-EODUMP
- ],
- [19, <<<'EODUMP'
-XMLReader {
- +localName: "#text"
- +nodeType: SIGNIFICANT_WHITESPACE
- +depth: 2
- +value: """
- \n
-
- """
- +baseURI: "%sxml_reader.xml"
- …9
-}
-EODUMP
- ],
- [21, <<<'EODUMP'
-XMLReader {
- +localName: "#text"
- +nodeType: SIGNIFICANT_WHITESPACE
- +depth: 1
- +value: "\n"
- +baseURI: "%sxml_reader.xml"
- …9
-}
-EODUMP
- ],
- [22, <<<'EODUMP'
-XMLReader {
- +localName: "foo"
- +nodeType: END_ELEMENT
- +baseURI: "%sxml_reader.xml"
- …11
-}
-EODUMP
- ],
- ];
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Cloner/DataTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Cloner/DataTest.php
deleted file mode 100644
index 7d20bced..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Cloner/DataTest.php
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Cloner;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Caster\Caster;
-use Symfony\Component\VarDumper\Caster\ClassStub;
-use Symfony\Component\VarDumper\Cloner\Data;
-use Symfony\Component\VarDumper\Cloner\VarCloner;
-
-class DataTest extends TestCase
-{
- public function testBasicData()
- {
- $values = [1 => 123, 4.5, 'abc', null, false];
- $data = $this->cloneVar($values);
- $clonedValues = [];
-
- $this->assertInstanceOf(Data::class, $data);
- $this->assertCount(\count($values), $data);
- $this->assertFalse(isset($data->{0}));
- $this->assertFalse(isset($data[0]));
-
- foreach ($data as $k => $v) {
- $this->assertTrue(isset($data->{$k}));
- $this->assertTrue(isset($data[$k]));
- $this->assertSame(\gettype($values[$k]), $data->seek($k)->getType());
- $this->assertSame($values[$k], $data->seek($k)->getValue());
- $this->assertSame($values[$k], $data->{$k});
- $this->assertSame($values[$k], $data[$k]);
- $this->assertSame((string) $values[$k], (string) $data->seek($k));
-
- $clonedValues[$k] = $v->getValue();
- }
-
- $this->assertSame($values, $clonedValues);
- }
-
- public function testObject()
- {
- $data = $this->cloneVar(new \Exception('foo'));
-
- $this->assertSame('Exception', $data->getType());
-
- $this->assertSame('foo', $data->message);
- $this->assertSame('foo', $data->{Caster::PREFIX_PROTECTED.'message'});
-
- $this->assertSame('foo', $data['message']);
- $this->assertSame('foo', $data[Caster::PREFIX_PROTECTED.'message']);
-
- $this->assertStringMatchesFormat('Exception (count=%d)', (string) $data);
- }
-
- public function testArray()
- {
- $values = [[], [123]];
- $data = $this->cloneVar($values);
-
- $this->assertSame($values, $data->getValue(true));
-
- $children = $data->getValue();
-
- $this->assertInternalType('array', $children);
-
- $this->assertInstanceOf(Data::class, $children[0]);
- $this->assertInstanceOf(Data::class, $children[1]);
-
- $this->assertEquals($children[0], $data[0]);
- $this->assertEquals($children[1], $data[1]);
-
- $this->assertSame($values[0], $children[0]->getValue(true));
- $this->assertSame($values[1], $children[1]->getValue(true));
- }
-
- public function testStub()
- {
- $data = $this->cloneVar([new ClassStub('stdClass')]);
- $data = $data[0];
-
- $this->assertSame('string', $data->getType());
- $this->assertSame('stdClass', $data->getValue());
- $this->assertSame('stdClass', (string) $data);
- }
-
- public function testHardRefs()
- {
- $values = [[]];
- $values[1] = &$values[0];
- $values[2][0] = &$values[2];
-
- $data = $this->cloneVar($values);
-
- $this->assertSame([], $data[0]->getValue());
- $this->assertSame([], $data[1]->getValue());
- $this->assertEquals([$data[2]->getValue()], $data[2]->getValue(true));
-
- $this->assertSame('array (count=3)', (string) $data);
- }
-
- private function cloneVar($value)
- {
- $cloner = new VarCloner();
-
- return $cloner->cloneVar($value);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Cloner/VarClonerTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Cloner/VarClonerTest.php
deleted file mode 100644
index 3b180af4..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Cloner/VarClonerTest.php
+++ /dev/null
@@ -1,437 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Cloner;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Cloner\VarCloner;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class VarClonerTest extends TestCase
-{
- public function testMaxIntBoundary()
- {
- $data = [PHP_INT_MAX => 123];
-
- $cloner = new VarCloner();
- $clone = $cloner->cloneVar($data);
-
- $expected = <<<EOTXT
-Symfony\Component\VarDumper\Cloner\Data Object
-(
- [data:Symfony\Component\VarDumper\Cloner\Data:private] => Array
- (
- [0] => Array
- (
- [0] => Array
- (
- [1] => 1
- )
-
- )
-
- [1] => Array
- (
- [%s] => 123
- )
-
- )
-
- [position:Symfony\Component\VarDumper\Cloner\Data:private] => 0
- [key:Symfony\Component\VarDumper\Cloner\Data:private] => 0
- [maxDepth:Symfony\Component\VarDumper\Cloner\Data:private] => 20
- [maxItemsPerDepth:Symfony\Component\VarDumper\Cloner\Data:private] => -1
- [useRefHandles:Symfony\Component\VarDumper\Cloner\Data:private] => -1
-)
-
-EOTXT;
- $this->assertSame(sprintf($expected, PHP_INT_MAX), print_r($clone, true));
- }
-
- public function testClone()
- {
- $json = json_decode('{"1":{"var":"val"},"2":{"var":"val"}}');
-
- $cloner = new VarCloner();
- $clone = $cloner->cloneVar($json);
-
- $expected = <<<EOTXT
-Symfony\Component\VarDumper\Cloner\Data Object
-(
- [data:Symfony\Component\VarDumper\Cloner\Data:private] => Array
- (
- [0] => Array
- (
- [0] => Symfony\Component\VarDumper\Cloner\Stub Object
- (
- [type] => 4
- [class] => stdClass
- [value] =>
- [cut] => 0
- [handle] => %i
- [refCount] => 0
- [position] => 1
- [attr] => Array
- (
- )
-
- )
-
- )
-
- [1] => Array
- (
- [\000+\0001] => Symfony\Component\VarDumper\Cloner\Stub Object
- (
- [type] => 4
- [class] => stdClass
- [value] =>
- [cut] => 0
- [handle] => %i
- [refCount] => 0
- [position] => 2
- [attr] => Array
- (
- )
-
- )
-
- [\000+\0002] => Symfony\Component\VarDumper\Cloner\Stub Object
- (
- [type] => 4
- [class] => stdClass
- [value] =>
- [cut] => 0
- [handle] => %i
- [refCount] => 0
- [position] => 3
- [attr] => Array
- (
- )
-
- )
-
- )
-
- [2] => Array
- (
- [\000+\000var] => val
- )
-
- [3] => Array
- (
- [\000+\000var] => val
- )
-
- )
-
- [position:Symfony\Component\VarDumper\Cloner\Data:private] => 0
- [key:Symfony\Component\VarDumper\Cloner\Data:private] => 0
- [maxDepth:Symfony\Component\VarDumper\Cloner\Data:private] => 20
- [maxItemsPerDepth:Symfony\Component\VarDumper\Cloner\Data:private] => -1
- [useRefHandles:Symfony\Component\VarDumper\Cloner\Data:private] => -1
-)
-
-EOTXT;
- $this->assertStringMatchesFormat($expected, print_r($clone, true));
- }
-
- public function testLimits()
- {
- // Level 0:
- $data = [
- // Level 1:
- [
- // Level 2:
- [
- // Level 3:
- 'Level 3 Item 0',
- 'Level 3 Item 1',
- 'Level 3 Item 2',
- 'Level 3 Item 3',
- ],
- [
- 'Level 3 Item 4',
- 'Level 3 Item 5',
- 'Level 3 Item 6',
- ],
- [
- 'Level 3 Item 7',
- ],
- ],
- [
- [
- 'Level 3 Item 8',
- ],
- 'Level 2 Item 0',
- ],
- [
- 'Level 2 Item 1',
- ],
- 'Level 1 Item 0',
- [
- // Test setMaxString:
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
- 'SHORT',
- ],
- ];
-
- $cloner = new VarCloner();
- $cloner->setMinDepth(2);
- $cloner->setMaxItems(5);
- $cloner->setMaxString(20);
- $clone = $cloner->cloneVar($data);
-
- $expected = <<<EOTXT
-Symfony\Component\VarDumper\Cloner\Data Object
-(
- [data:Symfony\Component\VarDumper\Cloner\Data:private] => Array
- (
- [0] => Array
- (
- [0] => Array
- (
- [2] => 1
- )
-
- )
-
- [1] => Array
- (
- [0] => Array
- (
- [2] => 2
- )
-
- [1] => Array
- (
- [2] => 3
- )
-
- [2] => Array
- (
- [2] => 4
- )
-
- [3] => Level 1 Item 0
- [4] => Array
- (
- [2] => 5
- )
-
- )
-
- [2] => Array
- (
- [0] => Array
- (
- [2] => 6
- )
-
- [1] => Array
- (
- [0] => 2
- [2] => 7
- )
-
- [2] => Array
- (
- [0] => 1
- [2] => 0
- )
-
- )
-
- [3] => Array
- (
- [0] => Array
- (
- [0] => 1
- [2] => 0
- )
-
- [1] => Level 2 Item 0
- )
-
- [4] => Array
- (
- [0] => Level 2 Item 1
- )
-
- [5] => Array
- (
- [0] => Symfony\Component\VarDumper\Cloner\Stub Object
- (
- [type] => 2
- [class] => 2
- [value] => ABCDEFGHIJKLMNOPQRST
- [cut] => 6
- [handle] => 0
- [refCount] => 0
- [position] => 0
- [attr] => Array
- (
- )
-
- )
-
- [1] => SHORT
- )
-
- [6] => Array
- (
- [0] => Level 3 Item 0
- [1] => Level 3 Item 1
- [2] => Level 3 Item 2
- [3] => Level 3 Item 3
- )
-
- [7] => Array
- (
- [0] => Level 3 Item 4
- )
-
- )
-
- [position:Symfony\Component\VarDumper\Cloner\Data:private] => 0
- [key:Symfony\Component\VarDumper\Cloner\Data:private] => 0
- [maxDepth:Symfony\Component\VarDumper\Cloner\Data:private] => 20
- [maxItemsPerDepth:Symfony\Component\VarDumper\Cloner\Data:private] => -1
- [useRefHandles:Symfony\Component\VarDumper\Cloner\Data:private] => -1
-)
-
-EOTXT;
- $this->assertStringMatchesFormat($expected, print_r($clone, true));
- }
-
- public function testJsonCast()
- {
- if (2 == ini_get('xdebug.overload_var_dump')) {
- $this->markTestSkipped('xdebug is active');
- }
-
- $data = (array) json_decode('{"1":{}}');
-
- $cloner = new VarCloner();
- $clone = $cloner->cloneVar($data);
-
- $expected = <<<'EOTXT'
-object(Symfony\Component\VarDumper\Cloner\Data)#%i (6) {
- ["data":"Symfony\Component\VarDumper\Cloner\Data":private]=>
- array(2) {
- [0]=>
- array(1) {
- [0]=>
- array(1) {
- [1]=>
- int(1)
- }
- }
- [1]=>
- array(1) {
- ["1"]=>
- object(Symfony\Component\VarDumper\Cloner\Stub)#%i (8) {
- ["type"]=>
- int(4)
- ["class"]=>
- string(8) "stdClass"
- ["value"]=>
- NULL
- ["cut"]=>
- int(0)
- ["handle"]=>
- int(%i)
- ["refCount"]=>
- int(0)
- ["position"]=>
- int(0)
- ["attr"]=>
- array(0) {
- }
- }
- }
- }
- ["position":"Symfony\Component\VarDumper\Cloner\Data":private]=>
- int(0)
- ["key":"Symfony\Component\VarDumper\Cloner\Data":private]=>
- int(0)
- ["maxDepth":"Symfony\Component\VarDumper\Cloner\Data":private]=>
- int(20)
- ["maxItemsPerDepth":"Symfony\Component\VarDumper\Cloner\Data":private]=>
- int(-1)
- ["useRefHandles":"Symfony\Component\VarDumper\Cloner\Data":private]=>
- int(-1)
-}
-
-EOTXT;
- ob_start();
- var_dump($clone);
- $this->assertStringMatchesFormat(\PHP_VERSION_ID >= 70200 ? str_replace('"1"', '1', $expected) : $expected, ob_get_clean());
- }
-
- public function testCaster()
- {
- $cloner = new VarCloner([
- '*' => function ($obj, $array) {
- return ['foo' => 123];
- },
- __CLASS__ => function ($obj, $array) {
- ++$array['foo'];
-
- return $array;
- },
- ]);
- $clone = $cloner->cloneVar($this);
-
- $expected = <<<EOTXT
-Symfony\Component\VarDumper\Cloner\Data Object
-(
- [data:Symfony\Component\VarDumper\Cloner\Data:private] => Array
- (
- [0] => Array
- (
- [0] => Symfony\Component\VarDumper\Cloner\Stub Object
- (
- [type] => 4
- [class] => %s
- [value] =>
- [cut] => 0
- [handle] => %i
- [refCount] => 0
- [position] => 1
- [attr] => Array
- (
- )
-
- )
-
- )
-
- [1] => Array
- (
- [foo] => 124
- )
-
- )
-
- [position:Symfony\Component\VarDumper\Cloner\Data:private] => 0
- [key:Symfony\Component\VarDumper\Cloner\Data:private] => 0
- [maxDepth:Symfony\Component\VarDumper\Cloner\Data:private] => 20
- [maxItemsPerDepth:Symfony\Component\VarDumper\Cloner\Data:private] => -1
- [useRefHandles:Symfony\Component\VarDumper\Cloner\Data:private] => -1
-)
-
-EOTXT;
- $this->assertStringMatchesFormat($expected, print_r($clone, true));
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Dumper/CliDumperTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Dumper/CliDumperTest.php
deleted file mode 100644
index 9520b4fe..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Dumper/CliDumperTest.php
+++ /dev/null
@@ -1,591 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Dumper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Cloner\VarCloner;
-use Symfony\Component\VarDumper\Dumper\CliDumper;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-use Twig\Environment;
-use Twig\Loader\FilesystemLoader;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class CliDumperTest extends TestCase
-{
- use VarDumperTestTrait;
-
- public function testGet()
- {
- require __DIR__.'/../Fixtures/dumb-var.php';
-
- $dumper = new CliDumper('php://output');
- $dumper->setColors(false);
- $cloner = new VarCloner();
- $cloner->addCasters([
- ':stream' => function ($res, $a) {
- unset($a['uri'], $a['wrapper_data']);
-
- return $a;
- },
- ]);
- $data = $cloner->cloneVar($var);
-
- ob_start();
- $dumper->dump($data);
- $out = ob_get_clean();
- $out = preg_replace('/[ \t]+$/m', '', $out);
- $intMax = PHP_INT_MAX;
- $res = (int) $var['res'];
-
- $r = \defined('HHVM_VERSION') ? '' : '#%d';
- $this->assertStringMatchesFormat(
- <<<EOTXT
-array:24 [
- "number" => 1
- 0 => &1 null
- "const" => 1.1
- 1 => true
- 2 => false
- 3 => NAN
- 4 => INF
- 5 => -INF
- 6 => {$intMax}
- "str" => "déjà\\n"
- 7 => b"é\\x00"
- "[]" => []
- "res" => stream resource {@{$res}
-%A wrapper_type: "plainfile"
- stream_type: "STDIO"
- mode: "r"
- unread_bytes: 0
- seekable: true
-%A options: []
- }
- "obj" => Symfony\Component\VarDumper\Tests\Fixture\DumbFoo {#%d
- +foo: "foo"
- +"bar": "bar"
- }
- "closure" => Closure {{$r}
- class: "Symfony\Component\VarDumper\Tests\Dumper\CliDumperTest"
- this: Symfony\Component\VarDumper\Tests\Dumper\CliDumperTest {{$r} …}
- parameters: {
- \$a: {}
- &\$b: {
- typeHint: "PDO"
- default: null
- }
- }
- file: "%s%eTests%eFixtures%edumb-var.php"
- line: "{$var['line']} to {$var['line']}"
- }
- "line" => {$var['line']}
- "nobj" => array:1 [
- 0 => &3 {#%d}
- ]
- "recurs" => &4 array:1 [
- 0 => &4 array:1 [&4]
- ]
- 8 => &1 null
- "sobj" => Symfony\Component\VarDumper\Tests\Fixture\DumbFoo {#%d}
- "snobj" => &3 {#%d}
- "snobj2" => {#%d}
- "file" => "{$var['file']}"
- b"bin-key-é" => ""
-]
-
-EOTXT
- ,
- $out
- );
- }
-
- /**
- * @dataProvider provideDumpWithCommaFlagTests
- */
- public function testDumpWithCommaFlag($expected, $flags)
- {
- $dumper = new CliDumper(null, null, $flags);
- $dumper->setColors(false);
- $cloner = new VarCloner();
-
- $var = [
- 'array' => ['a', 'b'],
- 'string' => 'hello',
- 'multiline string' => "this\nis\na\multiline\nstring",
- ];
-
- $dump = $dumper->dump($cloner->cloneVar($var), true);
-
- $this->assertSame($expected, $dump);
- }
-
- public function testDumpWithCommaFlagsAndExceptionCodeExcerpt()
- {
- $dumper = new CliDumper(null, null, CliDumper::DUMP_TRAILING_COMMA);
- $dumper->setColors(false);
- $cloner = new VarCloner();
-
- $ex = new \RuntimeException('foo');
-
- $dump = $dumper->dump($cloner->cloneVar($ex)->withRefHandles(false), true);
-
- $this->assertStringMatchesFormat(<<<'EOTXT'
-RuntimeException {
- #message: "foo"
- #code: 0
- #file: "%ACliDumperTest.php"
- #line: %d
- trace: {
- %ACliDumperTest.php:%d {
- ›
- › $ex = new \RuntimeException('foo');
- ›
- }
- %A
- }
-}
-
-EOTXT
- , $dump);
- }
-
- public function provideDumpWithCommaFlagTests()
- {
- $expected = <<<'EOTXT'
-array:3 [
- "array" => array:2 [
- 0 => "a",
- 1 => "b"
- ],
- "string" => "hello",
- "multiline string" => """
- this\n
- is\n
- a\multiline\n
- string
- """
-]
-
-EOTXT;
-
- yield [$expected, CliDumper::DUMP_COMMA_SEPARATOR];
-
- $expected = <<<'EOTXT'
-array:3 [
- "array" => array:2 [
- 0 => "a",
- 1 => "b",
- ],
- "string" => "hello",
- "multiline string" => """
- this\n
- is\n
- a\multiline\n
- string
- """,
-]
-
-EOTXT;
-
- yield [$expected, CliDumper::DUMP_TRAILING_COMMA];
- }
-
- /**
- * @requires extension xml
- */
- public function testXmlResource()
- {
- $var = xml_parser_create();
-
- $this->assertDumpMatchesFormat(
- <<<'EOTXT'
-xml resource {
- current_byte_index: %i
- current_column_number: %i
- current_line_number: 1
- error_code: XML_ERROR_NONE
-}
-EOTXT
- ,
- $var
- );
- }
-
- public function testJsonCast()
- {
- $var = (array) json_decode('{"0":{},"1":null}');
- foreach ($var as &$v) {
- }
- $var[] = &$v;
- $var[''] = 2;
-
- if (\PHP_VERSION_ID >= 70200) {
- $this->assertDumpMatchesFormat(
- <<<'EOTXT'
-array:4 [
- 0 => {}
- 1 => &1 null
- 2 => &1 null
- "" => 2
-]
-EOTXT
- ,
- $var
- );
- } else {
- $this->assertDumpMatchesFormat(
- <<<'EOTXT'
-array:4 [
- "0" => {}
- "1" => &1 null
- 0 => &1 null
- "" => 2
-]
-EOTXT
- ,
- $var
- );
- }
- }
-
- public function testObjectCast()
- {
- $var = (object) [1 => 1];
- $var->{1} = 2;
-
- if (\PHP_VERSION_ID >= 70200) {
- $this->assertDumpMatchesFormat(
- <<<'EOTXT'
-{
- +"1": 2
-}
-EOTXT
- ,
- $var
- );
- } else {
- $this->assertDumpMatchesFormat(
- <<<'EOTXT'
-{
- +1: 1
- +"1": 2
-}
-EOTXT
- ,
- $var
- );
- }
- }
-
- public function testClosedResource()
- {
- if (\defined('HHVM_VERSION') && HHVM_VERSION_ID < 30600) {
- $this->markTestSkipped();
- }
-
- $var = fopen(__FILE__, 'r');
- fclose($var);
-
- $dumper = new CliDumper('php://output');
- $dumper->setColors(false);
- $cloner = new VarCloner();
- $data = $cloner->cloneVar($var);
-
- ob_start();
- $dumper->dump($data);
- $out = ob_get_clean();
- $res = (int) $var;
-
- $this->assertStringMatchesFormat(
- <<<EOTXT
-Closed resource @{$res}
-
-EOTXT
- ,
- $out
- );
- }
-
- public function testFlags()
- {
- putenv('DUMP_LIGHT_ARRAY=1');
- putenv('DUMP_STRING_LENGTH=1');
-
- $var = [
- range(1, 3),
- ['foo', 2 => 'bar'],
- ];
-
- $this->assertDumpEquals(
- <<<EOTXT
-[
- [
- 1
- 2
- 3
- ]
- [
- 0 => (3) "foo"
- 2 => (3) "bar"
- ]
-]
-EOTXT
- ,
- $var
- );
-
- putenv('DUMP_LIGHT_ARRAY=');
- putenv('DUMP_STRING_LENGTH=');
- }
-
- /**
- * @requires function Twig\Template::getSourceContext
- */
- public function testThrowingCaster()
- {
- $out = fopen('php://memory', 'r+b');
-
- require_once __DIR__.'/../Fixtures/Twig.php';
- $twig = new \__TwigTemplate_VarDumperFixture_u75a09(new Environment(new FilesystemLoader()));
-
- $dumper = new CliDumper();
- $dumper->setColors(false);
- $cloner = new VarCloner();
- $cloner->addCasters([
- ':stream' => function ($res, $a) {
- unset($a['wrapper_data']);
-
- return $a;
- },
- ]);
- $cloner->addCasters([
- ':stream' => eval('return function () use ($twig) {
- try {
- $twig->render([]);
- } catch (\Twig\Error\RuntimeError $e) {
- throw $e->getPrevious();
- }
- };'),
- ]);
- $ref = (int) $out;
-
- $data = $cloner->cloneVar($out);
- $dumper->dump($data, $out);
- $out = stream_get_contents($out, -1, 0);
-
- $r = \defined('HHVM_VERSION') ? '' : '#%d';
- $this->assertStringMatchesFormat(
- <<<EOTXT
-stream resource {@{$ref}
- ⚠: Symfony\Component\VarDumper\Exception\ThrowingCasterException {{$r}
- #message: "Unexpected Exception thrown from a caster: Foobar"
- trace: {
- %sTwig.php:2 {
- › foo bar
- › twig source
- ›
- }
- %s%eTemplate.php:%d { …}
- %s%eTemplate.php:%d { …}
- %s%eTemplate.php:%d { …}
- %s%eTests%eDumper%eCliDumperTest.php:%d { …}
-%A }
- }
-%Awrapper_type: "PHP"
- stream_type: "MEMORY"
- mode: "%s+b"
- unread_bytes: 0
- seekable: true
- uri: "php://memory"
-%Aoptions: []
-}
-
-EOTXT
- ,
- $out
- );
- }
-
- public function testRefsInProperties()
- {
- $var = (object) ['foo' => 'foo'];
- $var->bar = &$var->foo;
-
- $dumper = new CliDumper();
- $dumper->setColors(false);
- $cloner = new VarCloner();
-
- $data = $cloner->cloneVar($var);
- $out = $dumper->dump($data, true);
-
- $r = \defined('HHVM_VERSION') ? '' : '#%d';
- $this->assertStringMatchesFormat(
- <<<EOTXT
-{{$r}
- +"foo": &1 "foo"
- +"bar": &1 "foo"
-}
-
-EOTXT
- ,
- $out
- );
- }
-
- /**
- * @runInSeparateProcess
- * @preserveGlobalState disabled
- * @requires PHP 5.6
- */
- public function testSpecialVars56()
- {
- $var = $this->getSpecialVars();
-
- $this->assertDumpEquals(
- <<<'EOTXT'
-array:3 [
- 0 => array:1 [
- 0 => &1 array:1 [
- 0 => &1 array:1 [&1]
- ]
- ]
- 1 => array:1 [
- "GLOBALS" => &2 array:1 [
- "GLOBALS" => &2 array:1 [&2]
- ]
- ]
- 2 => &2 array:1 [&2]
-]
-EOTXT
- ,
- $var
- );
- }
-
- /**
- * @runInSeparateProcess
- * @preserveGlobalState disabled
- */
- public function testGlobalsNoExt()
- {
- $var = $this->getSpecialVars();
- unset($var[0]);
- $out = '';
-
- $dumper = new CliDumper(function ($line, $depth) use (&$out) {
- if ($depth >= 0) {
- $out .= str_repeat(' ', $depth).$line."\n";
- }
- });
- $dumper->setColors(false);
- $cloner = new VarCloner();
-
- $refl = new \ReflectionProperty($cloner, 'useExt');
- $refl->setAccessible(true);
- $refl->setValue($cloner, false);
-
- $data = $cloner->cloneVar($var);
- $dumper->dump($data);
-
- $this->assertSame(
- <<<'EOTXT'
-array:2 [
- 1 => array:1 [
- "GLOBALS" => &1 array:1 [
- "GLOBALS" => &1 array:1 [&1]
- ]
- ]
- 2 => &1 array:1 [&1]
-]
-
-EOTXT
- ,
- $out
- );
- }
-
- /**
- * @runInSeparateProcess
- * @preserveGlobalState disabled
- */
- public function testBuggyRefs()
- {
- if (\PHP_VERSION_ID >= 50600) {
- $this->markTestSkipped('PHP 5.6 fixed refs counting');
- }
-
- $var = $this->getSpecialVars();
- $var = $var[0];
-
- $dumper = new CliDumper();
- $dumper->setColors(false);
- $cloner = new VarCloner();
-
- $data = $cloner->cloneVar($var)->withMaxDepth(3);
- $out = '';
- $dumper->dump($data, function ($line, $depth) use (&$out) {
- if ($depth >= 0) {
- $out .= str_repeat(' ', $depth).$line."\n";
- }
- });
-
- $this->assertSame(
- <<<'EOTXT'
-array:1 [
- 0 => array:1 [
- 0 => array:1 [
- 0 => array:1 [ …1]
- ]
- ]
-]
-
-EOTXT
- ,
- $out
- );
- }
-
- public function testIncompleteClass()
- {
- $unserializeCallbackHandler = ini_set('unserialize_callback_func', null);
- $var = unserialize('O:8:"Foo\Buzz":0:{}');
- ini_set('unserialize_callback_func', $unserializeCallbackHandler);
-
- $this->assertDumpMatchesFormat(
- <<<EOTXT
-__PHP_Incomplete_Class(Foo\Buzz) {}
-EOTXT
- ,
- $var
- );
- }
-
- private function getSpecialVars()
- {
- foreach (array_keys($GLOBALS) as $var) {
- if ('GLOBALS' !== $var) {
- unset($GLOBALS[$var]);
- }
- }
-
- $var = function &() {
- $var = [];
- $var[] = &$var;
-
- return $var;
- };
-
- return [$var(), $GLOBALS, &$GLOBALS];
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Dumper/FunctionsTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Dumper/FunctionsTest.php
deleted file mode 100644
index 0bd596c2..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Dumper/FunctionsTest.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Dumper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Cloner\VarCloner;
-use Symfony\Component\VarDumper\Dumper\CliDumper;
-use Symfony\Component\VarDumper\VarDumper;
-
-class FunctionsTest extends TestCase
-{
- public function testDumpReturnsFirstArg()
- {
- $this->setupVarDumper();
-
- $var1 = 'a';
-
- ob_start();
- $return = dump($var1);
- $out = ob_get_clean();
-
- $this->assertEquals($var1, $return);
- }
-
- public function testDumpReturnsAllArgsInArray()
- {
- $this->setupVarDumper();
-
- $var1 = 'a';
- $var2 = 'b';
- $var3 = 'c';
-
- ob_start();
- $return = dump($var1, $var2, $var3);
- $out = ob_get_clean();
-
- $this->assertEquals([$var1, $var2, $var3], $return);
- }
-
- protected function setupVarDumper()
- {
- $cloner = new VarCloner();
- $dumper = new CliDumper('php://output');
- VarDumper::setHandler(function ($var) use ($cloner, $dumper) {
- $dumper->dump($cloner->cloneVar($var));
- });
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Dumper/HtmlDumperTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Dumper/HtmlDumperTest.php
deleted file mode 100644
index 8a7e68eb..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Dumper/HtmlDumperTest.php
+++ /dev/null
@@ -1,168 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Dumper;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Cloner\VarCloner;
-use Symfony\Component\VarDumper\Dumper\HtmlDumper;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class HtmlDumperTest extends TestCase
-{
- public function testGet()
- {
- if (ini_get('xdebug.file_link_format') || get_cfg_var('xdebug.file_link_format')) {
- $this->markTestSkipped('A custom file_link_format is defined.');
- }
-
- require __DIR__.'/../Fixtures/dumb-var.php';
-
- $dumper = new HtmlDumper('php://output');
- $dumper->setDumpHeader('<foo></foo>');
- $dumper->setDumpBoundaries('<bar>', '</bar>');
- $cloner = new VarCloner();
- $cloner->addCasters([
- ':stream' => function ($res, $a) {
- unset($a['uri'], $a['wrapper_data']);
-
- return $a;
- },
- ]);
- $data = $cloner->cloneVar($var);
-
- ob_start();
- $dumper->dump($data);
- $out = ob_get_clean();
- $out = preg_replace('/[ \t]+$/m', '', $out);
- $var['file'] = htmlspecialchars($var['file'], ENT_QUOTES, 'UTF-8');
- $intMax = PHP_INT_MAX;
- preg_match('/sf-dump-\d+/', $out, $dumpId);
- $dumpId = $dumpId[0];
- $res = (int) $var['res'];
-
- $r = \defined('HHVM_VERSION') ? '' : '<a class=sf-dump-ref>#%d</a>';
- $this->assertStringMatchesFormat(
- <<<EOTXT
-<foo></foo><bar><span class=sf-dump-note>array:24</span> [<samp>
- "<span class=sf-dump-key>number</span>" => <span class=sf-dump-num>1</span>
- <span class=sf-dump-key>0</span> => <a class=sf-dump-ref href=#{$dumpId}-ref01 title="2 occurrences">&amp;1</a> <span class=sf-dump-const>null</span>
- "<span class=sf-dump-key>const</span>" => <span class=sf-dump-num>1.1</span>
- <span class=sf-dump-key>1</span> => <span class=sf-dump-const>true</span>
- <span class=sf-dump-key>2</span> => <span class=sf-dump-const>false</span>
- <span class=sf-dump-key>3</span> => <span class=sf-dump-num>NAN</span>
- <span class=sf-dump-key>4</span> => <span class=sf-dump-num>INF</span>
- <span class=sf-dump-key>5</span> => <span class=sf-dump-num>-INF</span>
- <span class=sf-dump-key>6</span> => <span class=sf-dump-num>{$intMax}</span>
- "<span class=sf-dump-key>str</span>" => "<span class=sf-dump-str title="5 characters">d&%s;j&%s;<span class=sf-dump-default>\\n</span></span>"
- <span class=sf-dump-key>7</span> => b"<span class=sf-dump-str title="2 binary or non-UTF-8 characters">&%s;<span class=sf-dump-default>\\x00</span></span>"
- "<span class=sf-dump-key>[]</span>" => []
- "<span class=sf-dump-key>res</span>" => <span class=sf-dump-note>stream resource</span> <a class=sf-dump-ref>@{$res}</a><samp>
-%A <span class=sf-dump-meta>wrapper_type</span>: "<span class=sf-dump-str title="9 characters">plainfile</span>"
- <span class=sf-dump-meta>stream_type</span>: "<span class=sf-dump-str title="5 characters">STDIO</span>"
- <span class=sf-dump-meta>mode</span>: "<span class=sf-dump-str>r</span>"
- <span class=sf-dump-meta>unread_bytes</span>: <span class=sf-dump-num>0</span>
- <span class=sf-dump-meta>seekable</span>: <span class=sf-dump-const>true</span>
-%A <span class=sf-dump-meta>options</span>: []
- </samp>}
- "<span class=sf-dump-key>obj</span>" => <abbr title="Symfony\Component\VarDumper\Tests\Fixture\DumbFoo" class=sf-dump-note>DumbFoo</abbr> {<a class=sf-dump-ref href=#{$dumpId}-ref2%d title="2 occurrences">#%d</a><samp id={$dumpId}-ref2%d>
- +<span class=sf-dump-public title="Public property">foo</span>: "<span class=sf-dump-str title="3 characters">foo</span>"
- +"<span class=sf-dump-public title="Runtime added dynamic property">bar</span>": "<span class=sf-dump-str title="3 characters">bar</span>"
- </samp>}
- "<span class=sf-dump-key>closure</span>" => <span class=sf-dump-note>Closure</span> {{$r}<samp>
- <span class=sf-dump-meta>class</span>: "<span class=sf-dump-str title="Symfony\Component\VarDumper\Tests\Dumper\HtmlDumperTest
-55 characters"><span class="sf-dump-ellipsis sf-dump-ellipsis-class">Symfony\Component\VarDumper\Tests\Dumper</span><span class=sf-dump-ellipsis>\</span>HtmlDumperTest</span>"
- <span class=sf-dump-meta>this</span>: <abbr title="Symfony\Component\VarDumper\Tests\Dumper\HtmlDumperTest" class=sf-dump-note>HtmlDumperTest</abbr> {{$r} &%s;}
- <span class=sf-dump-meta>parameters</span>: {<samp>
- <span class=sf-dump-meta>\$a</span>: {}
- <span class=sf-dump-meta>&amp;\$b</span>: {<samp>
- <span class=sf-dump-meta>typeHint</span>: "<span class=sf-dump-str title="3 characters">PDO</span>"
- <span class=sf-dump-meta>default</span>: <span class=sf-dump-const>null</span>
- </samp>}
- </samp>}
- <span class=sf-dump-meta>file</span>: "<span class=sf-dump-str title="{$var['file']}
-%d characters"><span class="sf-dump-ellipsis sf-dump-ellipsis-path">%s%eVarDumper</span><span class=sf-dump-ellipsis>%e</span>Tests%eFixtures%edumb-var.php</span>"
- <span class=sf-dump-meta>line</span>: "<span class=sf-dump-str title="%d characters">{$var['line']} to {$var['line']}</span>"
- </samp>}
- "<span class=sf-dump-key>line</span>" => <span class=sf-dump-num>{$var['line']}</span>
- "<span class=sf-dump-key>nobj</span>" => <span class=sf-dump-note>array:1</span> [<samp>
- <span class=sf-dump-index>0</span> => <a class=sf-dump-ref href=#{$dumpId}-ref03 title="2 occurrences">&amp;3</a> {<a class=sf-dump-ref href=#{$dumpId}-ref2%d title="3 occurrences">#%d</a>}
- </samp>]
- "<span class=sf-dump-key>recurs</span>" => <a class=sf-dump-ref href=#{$dumpId}-ref04 title="2 occurrences">&amp;4</a> <span class=sf-dump-note>array:1</span> [<samp id={$dumpId}-ref04>
- <span class=sf-dump-index>0</span> => <a class=sf-dump-ref href=#{$dumpId}-ref04 title="2 occurrences">&amp;4</a> <span class=sf-dump-note>array:1</span> [<a class=sf-dump-ref href=#{$dumpId}-ref04 title="2 occurrences">&amp;4</a>]
- </samp>]
- <span class=sf-dump-key>8</span> => <a class=sf-dump-ref href=#{$dumpId}-ref01 title="2 occurrences">&amp;1</a> <span class=sf-dump-const>null</span>
- "<span class=sf-dump-key>sobj</span>" => <abbr title="Symfony\Component\VarDumper\Tests\Fixture\DumbFoo" class=sf-dump-note>DumbFoo</abbr> {<a class=sf-dump-ref href=#{$dumpId}-ref2%d title="2 occurrences">#%d</a>}
- "<span class=sf-dump-key>snobj</span>" => <a class=sf-dump-ref href=#{$dumpId}-ref03 title="2 occurrences">&amp;3</a> {<a class=sf-dump-ref href=#{$dumpId}-ref2%d title="3 occurrences">#%d</a>}
- "<span class=sf-dump-key>snobj2</span>" => {<a class=sf-dump-ref href=#{$dumpId}-ref2%d title="3 occurrences">#%d</a>}
- "<span class=sf-dump-key>file</span>" => "<span class=sf-dump-str title="%d characters">{$var['file']}</span>"
- b"<span class=sf-dump-key>bin-key-&%s;</span>" => ""
-</samp>]
-</bar>
-
-EOTXT
- ,
-
- $out
- );
- }
-
- public function testCharset()
- {
- $var = mb_convert_encoding('Словарь', 'CP1251', 'UTF-8');
-
- $dumper = new HtmlDumper('php://output', 'CP1251');
- $dumper->setDumpHeader('<foo></foo>');
- $dumper->setDumpBoundaries('<bar>', '</bar>');
- $cloner = new VarCloner();
-
- $data = $cloner->cloneVar($var);
- $out = $dumper->dump($data, true);
-
- $this->assertStringMatchesFormat(
- <<<'EOTXT'
-<foo></foo><bar>b"<span class=sf-dump-str title="7 binary or non-UTF-8 characters">&#1057;&#1083;&#1086;&#1074;&#1072;&#1088;&#1100;</span>"
-</bar>
-
-EOTXT
- ,
- $out
- );
- }
-
- public function testAppend()
- {
- $out = fopen('php://memory', 'r+b');
-
- $dumper = new HtmlDumper();
- $dumper->setDumpHeader('<foo></foo>');
- $dumper->setDumpBoundaries('<bar>', '</bar>');
- $cloner = new VarCloner();
-
- $dumper->dump($cloner->cloneVar(123), $out);
- $dumper->dump($cloner->cloneVar(456), $out);
-
- $out = stream_get_contents($out, -1, 0);
-
- $this->assertSame(<<<'EOTXT'
-<foo></foo><bar><span class=sf-dump-num>123</span>
-</bar>
-<bar><span class=sf-dump-num>456</span>
-</bar>
-
-EOTXT
- ,
- $out
- );
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/FooInterface.php b/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/FooInterface.php
deleted file mode 100644
index 874110a5..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/FooInterface.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-namespace Symfony\Component\VarDumper\Tests\Fixtures;
-
-interface FooInterface
-{
- /**
- * Hello.
- */
- public function foo();
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/GeneratorDemo.php b/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/GeneratorDemo.php
deleted file mode 100644
index e2d24c8c..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/GeneratorDemo.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-namespace Symfony\Component\VarDumper\Tests\Fixtures;
-
-class GeneratorDemo
-{
- public static function foo()
- {
- yield 1;
- }
-
- public function baz()
- {
- yield from bar();
- }
-}
-
-function bar()
-{
- yield from GeneratorDemo::foo();
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/NotLoadableClass.php b/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/NotLoadableClass.php
deleted file mode 100644
index d8e0cb35..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/NotLoadableClass.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-namespace Symfony\Component\VarDumper\Tests\Fixtures;
-
-class NotLoadableClass extends NotLoadableClass
-{
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php b/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php
deleted file mode 100644
index 8b84d820..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-/* foo.twig */
-class __TwigTemplate_VarDumperFixture_u75a09 extends Twig\Template
-{
- private $path;
-
- public function __construct(Twig\Environment $env = null, $path = null)
- {
- if (null !== $env) {
- parent::__construct($env);
- }
- $this->parent = false;
- $this->blocks = [];
- $this->path = $path;
- }
-
- protected function doDisplay(array $context, array $blocks = [])
- {
- // line 2
- throw new \Exception('Foobar');
- }
-
- public function getTemplateName()
- {
- return 'foo.twig';
- }
-
- public function getDebugInfo()
- {
- return [20 => 1, 21 => 2];
- }
-
- public function getSourceContext()
- {
- return new Twig\Source(" foo bar\n twig source\n\n", 'foo.twig', $this->path ?: __FILE__);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/dumb-var.php b/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/dumb-var.php
deleted file mode 100644
index de51cebc..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/dumb-var.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-namespace Symfony\Component\VarDumper\Tests\Fixture;
-
-if (!class_exists('Symfony\Component\VarDumper\Tests\Fixture\DumbFoo')) {
- class DumbFoo
- {
- public $foo = 'foo';
- }
-}
-
-$foo = new DumbFoo();
-$foo->bar = 'bar';
-
-$g = fopen(__FILE__, 'r');
-
-$var = [
- 'number' => 1, null,
- 'const' => 1.1, true, false, NAN, INF, -INF, PHP_INT_MAX,
- 'str' => "déjà\n", "\xE9\x00",
- '[]' => [],
- 'res' => $g,
- 'obj' => $foo,
- 'closure' => function ($a, \PDO &$b = null) {},
- 'line' => __LINE__ - 1,
- 'nobj' => [(object) []],
-];
-
-$r = [];
-$r[] = &$r;
-
-$var['recurs'] = &$r;
-$var[] = &$var[0];
-$var['sobj'] = $var['obj'];
-$var['snobj'] = &$var['nobj'][0];
-$var['snobj2'] = $var['nobj'][0];
-$var['file'] = __FILE__;
-$var["bin-key-\xE9"] = '';
-
-unset($g, $r);
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/xml_reader.xml b/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/xml_reader.xml
deleted file mode 100644
index 740c399f..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Fixtures/xml_reader.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<foo>
- <bar></bar>
- <bar />
- <bar>With text</bar>
- <bar foo="bar" baz="fubar"></bar>
- <bar xmlns:baz="http://symfony.com">
- <baz:baz></baz:baz>
- </bar>
-</foo>
diff --git a/www/wiki/vendor/symfony/var-dumper/Tests/Test/VarDumperTestTraitTest.php b/www/wiki/vendor/symfony/var-dumper/Tests/Test/VarDumperTestTraitTest.php
deleted file mode 100644
index 18042fb3..00000000
--- a/www/wiki/vendor/symfony/var-dumper/Tests/Test/VarDumperTestTraitTest.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper\Tests\Test;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
-
-class VarDumperTestTraitTest extends TestCase
-{
- use VarDumperTestTrait;
-
- public function testItComparesLargeData()
- {
- $howMany = 700;
- $data = array_fill_keys(range(0, $howMany), ['a', 'b', 'c', 'd']);
-
- $expected = sprintf("array:%d [\n", $howMany + 1);
- for ($i = 0; $i <= $howMany; ++$i) {
- $expected .= <<<EODUMP
- $i => array:4 [
- 0 => "a"
- 1 => "b"
- 2 => "c"
- 3 => "d"
- ]\n
-EODUMP;
- }
- $expected .= "]\n";
-
- $this->assertDumpEquals($expected, $data);
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/VarDumper.php b/www/wiki/vendor/symfony/var-dumper/VarDumper.php
deleted file mode 100644
index 2ef20c06..00000000
--- a/www/wiki/vendor/symfony/var-dumper/VarDumper.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\VarDumper;
-
-use Symfony\Component\VarDumper\Cloner\VarCloner;
-use Symfony\Component\VarDumper\Dumper\CliDumper;
-use Symfony\Component\VarDumper\Dumper\HtmlDumper;
-
-// Load the global dump() function
-require_once __DIR__.'/Resources/functions/dump.php';
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- */
-class VarDumper
-{
- private static $handler;
-
- public static function dump($var)
- {
- if (null === self::$handler) {
- $cloner = new VarCloner();
- $dumper = \in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) ? new CliDumper() : new HtmlDumper();
- self::$handler = function ($var) use ($cloner, $dumper) {
- $dumper->dump($cloner->cloneVar($var));
- };
- }
-
- return \call_user_func(self::$handler, $var);
- }
-
- public static function setHandler(callable $callable = null)
- {
- $prevHandler = self::$handler;
- self::$handler = $callable;
-
- return $prevHandler;
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/composer.json b/www/wiki/vendor/symfony/var-dumper/composer.json
deleted file mode 100644
index d31e0b49..00000000
--- a/www/wiki/vendor/symfony/var-dumper/composer.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "name": "symfony/var-dumper",
- "type": "library",
- "description": "Symfony mechanism for exploring and dumping PHP variables",
- "keywords": ["dump", "debug"],
- "homepage": "https://symfony.com",
- "license": "MIT",
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "require-dev": {
- "ext-iconv": "*",
- "twig/twig": "~1.34|~2.4"
- },
- "conflict": {
- "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0"
- },
- "suggest": {
- "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).",
- "ext-intl": "To show region name in time zone dump",
- "ext-symfony_debug": ""
- },
- "autoload": {
- "files": [ "Resources/functions/dump.php" ],
- "psr-4": { "Symfony\\Component\\VarDumper\\": "" },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "minimum-stability": "dev",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/var-dumper/phpunit.xml.dist b/www/wiki/vendor/symfony/var-dumper/phpunit.xml.dist
deleted file mode 100644
index 3243fcd0..00000000
--- a/www/wiki/vendor/symfony/var-dumper/phpunit.xml.dist
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.2/phpunit.xsd"
- backupGlobals="false"
- colors="true"
- bootstrap="vendor/autoload.php"
- failOnRisky="true"
- failOnWarning="true"
->
- <php>
- <ini name="error_reporting" value="-1" />
- <env name="DUMP_LIGHT_ARRAY" value="" />
- <env name="DUMP_STRING_LENGTH" value="" />
- </php>
-
- <testsuites>
- <testsuite name="Symfony VarDumper Component Test Suite">
- <directory>./Tests/</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist>
- <directory>./</directory>
- <exclude>
- <directory>./Resources</directory>
- <directory>./Tests</directory>
- <directory>./vendor</directory>
- </exclude>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/symfony/yaml/.gitignore b/www/wiki/vendor/symfony/yaml/.gitignore
deleted file mode 100644
index c49a5d8d..00000000
--- a/www/wiki/vendor/symfony/yaml/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-vendor/
-composer.lock
-phpunit.xml
diff --git a/www/wiki/vendor/symfony/yaml/CHANGELOG.md b/www/wiki/vendor/symfony/yaml/CHANGELOG.md
deleted file mode 100644
index fd41c9dd..00000000
--- a/www/wiki/vendor/symfony/yaml/CHANGELOG.md
+++ /dev/null
@@ -1,149 +0,0 @@
-CHANGELOG
-=========
-
-3.4.0
------
-
- * added support for parsing YAML files using the `Yaml::parseFile()` or `Parser::parseFile()` method
-
- * the `Dumper`, `Parser`, and `Yaml` classes are marked as final
-
- * Deprecated the `!php/object:` tag which will be replaced by the
- `!php/object` tag (without the colon) in 4.0.
-
- * Deprecated the `!php/const:` tag which will be replaced by the
- `!php/const` tag (without the colon) in 4.0.
-
- * Support for the `!str` tag is deprecated, use the `!!str` tag instead.
-
- * Deprecated using the non-specific tag `!` as its behavior will change in 4.0.
- It will force non-evaluating your values in 4.0. Use plain integers or `!!float` instead.
-
-3.3.0
------
-
- * Starting an unquoted string with a question mark followed by a space is
- deprecated and will throw a `ParseException` in Symfony 4.0.
-
- * Deprecated support for implicitly parsing non-string mapping keys as strings.
- Mapping keys that are no strings will lead to a `ParseException` in Symfony
- 4.0. Use quotes to opt-in for keys to be parsed as strings.
-
- Before:
-
- ```php
- $yaml = <<<YAML
- null: null key
- true: boolean true
- 2.0: float key
- YAML;
-
- Yaml::parse($yaml);
- ```
-
- After:
-
- ```php
-
- $yaml = <<<YAML
- "null": null key
- "true": boolean true
- "2.0": float key
- YAML;
-
- Yaml::parse($yaml);
- ```
-
- * Omitted mapping values will be parsed as `null`.
-
- * Omitting the key of a mapping is deprecated and will throw a `ParseException` in Symfony 4.0.
-
- * Added support for dumping empty PHP arrays as YAML sequences:
-
- ```php
- Yaml::dump([], 0, 0, Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE);
- ```
-
-3.2.0
------
-
- * Mappings with a colon (`:`) that is not followed by a whitespace are deprecated
- when the mapping key is not quoted and will lead to a `ParseException` in
- Symfony 4.0 (e.g. `foo:bar` must be `foo: bar`).
-
- * Added support for parsing PHP constants:
-
- ```php
- Yaml::parse('!php/const:PHP_INT_MAX', Yaml::PARSE_CONSTANT);
- ```
-
- * Support for silently ignoring duplicate mapping keys in YAML has been
- deprecated and will lead to a `ParseException` in Symfony 4.0.
-
-3.1.0
------
-
- * Added support to dump `stdClass` and `ArrayAccess` objects as YAML mappings
- through the `Yaml::DUMP_OBJECT_AS_MAP` flag.
-
- * Strings that are not UTF-8 encoded will be dumped as base64 encoded binary
- data.
-
- * Added support for dumping multi line strings as literal blocks.
-
- * Added support for parsing base64 encoded binary data when they are tagged
- with the `!!binary` tag.
-
- * Added support for parsing timestamps as `\DateTime` objects:
-
- ```php
- Yaml::parse('2001-12-15 21:59:43.10 -5', Yaml::PARSE_DATETIME);
- ```
-
- * `\DateTime` and `\DateTimeImmutable` objects are dumped as YAML timestamps.
-
- * Deprecated usage of `%` at the beginning of an unquoted string.
-
- * Added support for customizing the YAML parser behavior through an optional bit field:
-
- ```php
- Yaml::parse('{ "foo": "bar", "fiz": "cat" }', Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE | Yaml::PARSE_OBJECT | Yaml::PARSE_OBJECT_FOR_MAP);
- ```
-
- * Added support for customizing the dumped YAML string through an optional bit field:
-
- ```php
- Yaml::dump(['foo' => new A(), 'bar' => 1], 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE | Yaml::DUMP_OBJECT);
- ```
-
-3.0.0
------
-
- * Yaml::parse() now throws an exception when a blackslash is not escaped
- in double-quoted strings
-
-2.8.0
------
-
- * Deprecated usage of a colon in an unquoted mapping value
- * Deprecated usage of @, \`, | and > at the beginning of an unquoted string
- * When surrounding strings with double-quotes, you must now escape `\` characters. Not
- escaping those characters (when surrounded by double-quotes) is deprecated.
-
- Before:
-
- ```yml
- class: "Foo\Var"
- ```
-
- After:
-
- ```yml
- class: "Foo\\Var"
- ```
-
-2.1.0
------
-
- * Yaml::parse() does not evaluate loaded files as PHP files by default
- anymore (call Yaml::enablePhpParsing() to get back the old behavior)
diff --git a/www/wiki/vendor/symfony/yaml/Command/LintCommand.php b/www/wiki/vendor/symfony/yaml/Command/LintCommand.php
deleted file mode 100644
index cc19a565..00000000
--- a/www/wiki/vendor/symfony/yaml/Command/LintCommand.php
+++ /dev/null
@@ -1,250 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Command;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\RuntimeException;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Style\SymfonyStyle;
-use Symfony\Component\Yaml\Exception\ParseException;
-use Symfony\Component\Yaml\Parser;
-use Symfony\Component\Yaml\Yaml;
-
-/**
- * Validates YAML files syntax and outputs encountered errors.
- *
- * @author Grégoire Pineau <lyrixx@lyrixx.info>
- * @author Robin Chalas <robin.chalas@gmail.com>
- */
-class LintCommand extends Command
-{
- protected static $defaultName = 'lint:yaml';
-
- private $parser;
- private $format;
- private $displayCorrectFiles;
- private $directoryIteratorProvider;
- private $isReadableProvider;
-
- public function __construct($name = null, $directoryIteratorProvider = null, $isReadableProvider = null)
- {
- parent::__construct($name);
-
- $this->directoryIteratorProvider = $directoryIteratorProvider;
- $this->isReadableProvider = $isReadableProvider;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function configure()
- {
- $this
- ->setDescription('Lints a file and outputs encountered errors')
- ->addArgument('filename', null, 'A file or a directory or STDIN')
- ->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format', 'txt')
- ->addOption('parse-tags', null, InputOption::VALUE_NONE, 'Parse custom tags')
- ->setHelp(<<<EOF
-The <info>%command.name%</info> command lints a YAML file and outputs to STDOUT
-the first encountered syntax error.
-
-You can validates YAML contents passed from STDIN:
-
- <info>cat filename | php %command.full_name%</info>
-
-You can also validate the syntax of a file:
-
- <info>php %command.full_name% filename</info>
-
-Or of a whole directory:
-
- <info>php %command.full_name% dirname</info>
- <info>php %command.full_name% dirname --format=json</info>
-
-EOF
- )
- ;
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $io = new SymfonyStyle($input, $output);
- $filename = $input->getArgument('filename');
- $this->format = $input->getOption('format');
- $this->displayCorrectFiles = $output->isVerbose();
- $flags = $input->getOption('parse-tags') ? Yaml::PARSE_CUSTOM_TAGS : 0;
-
- if (!$filename) {
- if (!$stdin = $this->getStdin()) {
- throw new RuntimeException('Please provide a filename or pipe file content to STDIN.');
- }
-
- return $this->display($io, [$this->validate($stdin, $flags)]);
- }
-
- if (!$this->isReadable($filename)) {
- throw new RuntimeException(sprintf('File or directory "%s" is not readable.', $filename));
- }
-
- $filesInfo = [];
- foreach ($this->getFiles($filename) as $file) {
- $filesInfo[] = $this->validate(file_get_contents($file), $flags, $file);
- }
-
- return $this->display($io, $filesInfo);
- }
-
- private function validate($content, $flags, $file = null)
- {
- $prevErrorHandler = set_error_handler(function ($level, $message, $file, $line) use (&$prevErrorHandler) {
- if (E_USER_DEPRECATED === $level) {
- throw new ParseException($message, $this->getParser()->getRealCurrentLineNb() + 1);
- }
-
- return $prevErrorHandler ? $prevErrorHandler($level, $message, $file, $line) : false;
- });
-
- try {
- $this->getParser()->parse($content, Yaml::PARSE_CONSTANT | $flags);
- } catch (ParseException $e) {
- return ['file' => $file, 'line' => $e->getParsedLine(), 'valid' => false, 'message' => $e->getMessage()];
- } finally {
- restore_error_handler();
- }
-
- return ['file' => $file, 'valid' => true];
- }
-
- private function display(SymfonyStyle $io, array $files)
- {
- switch ($this->format) {
- case 'txt':
- return $this->displayTxt($io, $files);
- case 'json':
- return $this->displayJson($io, $files);
- default:
- throw new InvalidArgumentException(sprintf('The format "%s" is not supported.', $this->format));
- }
- }
-
- private function displayTxt(SymfonyStyle $io, array $filesInfo)
- {
- $countFiles = \count($filesInfo);
- $erroredFiles = 0;
-
- foreach ($filesInfo as $info) {
- if ($info['valid'] && $this->displayCorrectFiles) {
- $io->comment('<info>OK</info>'.($info['file'] ? sprintf(' in %s', $info['file']) : ''));
- } elseif (!$info['valid']) {
- ++$erroredFiles;
- $io->text('<error> ERROR </error>'.($info['file'] ? sprintf(' in %s', $info['file']) : ''));
- $io->text(sprintf('<error> >> %s</error>', $info['message']));
- }
- }
-
- if (0 === $erroredFiles) {
- $io->success(sprintf('All %d YAML files contain valid syntax.', $countFiles));
- } else {
- $io->warning(sprintf('%d YAML files have valid syntax and %d contain errors.', $countFiles - $erroredFiles, $erroredFiles));
- }
-
- return min($erroredFiles, 1);
- }
-
- private function displayJson(SymfonyStyle $io, array $filesInfo)
- {
- $errors = 0;
-
- array_walk($filesInfo, function (&$v) use (&$errors) {
- $v['file'] = (string) $v['file'];
- if (!$v['valid']) {
- ++$errors;
- }
- });
-
- $io->writeln(json_encode($filesInfo, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
-
- return min($errors, 1);
- }
-
- private function getFiles($fileOrDirectory)
- {
- if (is_file($fileOrDirectory)) {
- yield new \SplFileInfo($fileOrDirectory);
-
- return;
- }
-
- foreach ($this->getDirectoryIterator($fileOrDirectory) as $file) {
- if (!\in_array($file->getExtension(), ['yml', 'yaml'])) {
- continue;
- }
-
- yield $file;
- }
- }
-
- private function getStdin()
- {
- if (0 !== ftell(STDIN)) {
- return;
- }
-
- $inputs = '';
- while (!feof(STDIN)) {
- $inputs .= fread(STDIN, 1024);
- }
-
- return $inputs;
- }
-
- private function getParser()
- {
- if (!$this->parser) {
- $this->parser = new Parser();
- }
-
- return $this->parser;
- }
-
- private function getDirectoryIterator($directory)
- {
- $default = function ($directory) {
- return new \RecursiveIteratorIterator(
- new \RecursiveDirectoryIterator($directory, \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS),
- \RecursiveIteratorIterator::LEAVES_ONLY
- );
- };
-
- if (null !== $this->directoryIteratorProvider) {
- return \call_user_func($this->directoryIteratorProvider, $directory, $default);
- }
-
- return $default($directory);
- }
-
- private function isReadable($fileOrDirectory)
- {
- $default = function ($fileOrDirectory) {
- return is_readable($fileOrDirectory);
- };
-
- if (null !== $this->isReadableProvider) {
- return \call_user_func($this->isReadableProvider, $fileOrDirectory, $default);
- }
-
- return $default($fileOrDirectory);
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/Dumper.php b/www/wiki/vendor/symfony/yaml/Dumper.php
deleted file mode 100644
index d2a2ebcf..00000000
--- a/www/wiki/vendor/symfony/yaml/Dumper.php
+++ /dev/null
@@ -1,132 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml;
-
-/**
- * Dumper dumps PHP variables to YAML strings.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- *
- * @final since version 3.4
- */
-class Dumper
-{
- /**
- * The amount of spaces to use for indentation of nested nodes.
- *
- * @var int
- */
- protected $indentation;
-
- /**
- * @param int $indentation
- */
- public function __construct($indentation = 4)
- {
- if ($indentation < 1) {
- throw new \InvalidArgumentException('The indentation must be greater than zero.');
- }
-
- $this->indentation = $indentation;
- }
-
- /**
- * Sets the indentation.
- *
- * @param int $num The amount of spaces to use for indentation of nested nodes
- *
- * @deprecated since version 3.1, to be removed in 4.0. Pass the indentation to the constructor instead.
- */
- public function setIndentation($num)
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since Symfony 3.1 and will be removed in 4.0. Pass the indentation to the constructor instead.', E_USER_DEPRECATED);
-
- $this->indentation = (int) $num;
- }
-
- /**
- * Dumps a PHP value to YAML.
- *
- * @param mixed $input The PHP value
- * @param int $inline The level where you switch to inline YAML
- * @param int $indent The level of indentation (used internally)
- * @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
- *
- * @return string The YAML representation of the PHP value
- */
- public function dump($input, $inline = 0, $indent = 0, $flags = 0)
- {
- if (\is_bool($flags)) {
- @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED);
-
- if ($flags) {
- $flags = Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE;
- } else {
- $flags = 0;
- }
- }
-
- if (\func_num_args() >= 5) {
- @trigger_error('Passing a boolean flag to toggle object support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::DUMP_OBJECT flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(4)) {
- $flags |= Yaml::DUMP_OBJECT;
- }
- }
-
- $output = '';
- $prefix = $indent ? str_repeat(' ', $indent) : '';
- $dumpObjectAsInlineMap = true;
-
- if (Yaml::DUMP_OBJECT_AS_MAP & $flags && ($input instanceof \ArrayObject || $input instanceof \stdClass)) {
- $dumpObjectAsInlineMap = empty((array) $input);
- }
-
- if ($inline <= 0 || (!\is_array($input) && $dumpObjectAsInlineMap) || empty($input)) {
- $output .= $prefix.Inline::dump($input, $flags);
- } else {
- $dumpAsMap = Inline::isHash($input);
-
- foreach ($input as $key => $value) {
- if ($inline >= 1 && Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $flags && \is_string($value) && false !== strpos($value, "\n") && false === strpos($value, "\r\n")) {
- // If the first line starts with a space character, the spec requires a blockIndicationIndicator
- // http://www.yaml.org/spec/1.2/spec.html#id2793979
- $blockIndentationIndicator = (' ' === substr($value, 0, 1)) ? (string) $this->indentation : '';
- $output .= sprintf("%s%s%s |%s\n", $prefix, $dumpAsMap ? Inline::dump($key, $flags).':' : '-', '', $blockIndentationIndicator);
-
- foreach (preg_split('/\n|\r\n/', $value) as $row) {
- $output .= sprintf("%s%s%s\n", $prefix, str_repeat(' ', $this->indentation), $row);
- }
-
- continue;
- }
-
- $dumpObjectAsInlineMap = true;
-
- if (Yaml::DUMP_OBJECT_AS_MAP & $flags && ($value instanceof \ArrayObject || $value instanceof \stdClass)) {
- $dumpObjectAsInlineMap = empty((array) $value);
- }
-
- $willBeInlined = $inline - 1 <= 0 || !\is_array($value) && $dumpObjectAsInlineMap || empty($value);
-
- $output .= sprintf('%s%s%s%s',
- $prefix,
- $dumpAsMap ? Inline::dump($key, $flags).':' : '-',
- $willBeInlined ? ' ' : "\n",
- $this->dump($value, $inline - 1, $willBeInlined ? 0 : $indent + $this->indentation, $flags)
- ).($willBeInlined ? "\n" : '');
- }
- }
-
- return $output;
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/Escaper.php b/www/wiki/vendor/symfony/yaml/Escaper.php
deleted file mode 100644
index 4d3ce244..00000000
--- a/www/wiki/vendor/symfony/yaml/Escaper.php
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml;
-
-/**
- * Escaper encapsulates escaping rules for single and double-quoted
- * YAML strings.
- *
- * @author Matthew Lewinski <matthew@lewinski.org>
- *
- * @internal
- */
-class Escaper
-{
- // Characters that would cause a dumped string to require double quoting.
- const REGEX_CHARACTER_TO_ESCAPE = "[\\x00-\\x1f]|\xc2\x85|\xc2\xa0|\xe2\x80\xa8|\xe2\x80\xa9";
-
- // Mapping arrays for escaping a double quoted string. The backslash is
- // first to ensure proper escaping because str_replace operates iteratively
- // on the input arrays. This ordering of the characters avoids the use of strtr,
- // which performs more slowly.
- private static $escapees = ['\\', '\\\\', '\\"', '"',
- "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07",
- "\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f",
- "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17",
- "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f",
- "\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9",
- ];
- private static $escaped = ['\\\\', '\\"', '\\\\', '\\"',
- '\\0', '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a',
- '\\b', '\\t', '\\n', '\\v', '\\f', '\\r', '\\x0e', '\\x0f',
- '\\x10', '\\x11', '\\x12', '\\x13', '\\x14', '\\x15', '\\x16', '\\x17',
- '\\x18', '\\x19', '\\x1a', '\\e', '\\x1c', '\\x1d', '\\x1e', '\\x1f',
- '\\N', '\\_', '\\L', '\\P',
- ];
-
- /**
- * Determines if a PHP value would require double quoting in YAML.
- *
- * @param string $value A PHP value
- *
- * @return bool True if the value would require double quotes
- */
- public static function requiresDoubleQuoting($value)
- {
- return 0 < preg_match('/'.self::REGEX_CHARACTER_TO_ESCAPE.'/u', $value);
- }
-
- /**
- * Escapes and surrounds a PHP value with double quotes.
- *
- * @param string $value A PHP value
- *
- * @return string The quoted, escaped string
- */
- public static function escapeWithDoubleQuotes($value)
- {
- return sprintf('"%s"', str_replace(self::$escapees, self::$escaped, $value));
- }
-
- /**
- * Determines if a PHP value would require single quoting in YAML.
- *
- * @param string $value A PHP value
- *
- * @return bool True if the value would require single quotes
- */
- public static function requiresSingleQuoting($value)
- {
- // Determines if a PHP value is entirely composed of a value that would
- // require single quoting in YAML.
- if (\in_array(strtolower($value), ['null', '~', 'true', 'false', 'y', 'n', 'yes', 'no', 'on', 'off'])) {
- return true;
- }
-
- // Determines if the PHP value contains any single characters that would
- // cause it to require single quoting in YAML.
- return 0 < preg_match('/[ \s \' " \: \{ \} \[ \] , & \* \# \?] | \A[ \- ? | < > = ! % @ ` ]/x', $value);
- }
-
- /**
- * Escapes and surrounds a PHP value with single quotes.
- *
- * @param string $value A PHP value
- *
- * @return string The quoted, escaped string
- */
- public static function escapeWithSingleQuotes($value)
- {
- return sprintf("'%s'", str_replace('\'', '\'\'', $value));
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/Exception/DumpException.php b/www/wiki/vendor/symfony/yaml/Exception/DumpException.php
deleted file mode 100644
index cce972f2..00000000
--- a/www/wiki/vendor/symfony/yaml/Exception/DumpException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Exception;
-
-/**
- * Exception class thrown when an error occurs during dumping.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class DumpException extends RuntimeException
-{
-}
diff --git a/www/wiki/vendor/symfony/yaml/Exception/ExceptionInterface.php b/www/wiki/vendor/symfony/yaml/Exception/ExceptionInterface.php
deleted file mode 100644
index ad850eea..00000000
--- a/www/wiki/vendor/symfony/yaml/Exception/ExceptionInterface.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Exception;
-
-/**
- * Exception interface for all exceptions thrown by the component.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-interface ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/symfony/yaml/Exception/ParseException.php b/www/wiki/vendor/symfony/yaml/Exception/ParseException.php
deleted file mode 100644
index be79960b..00000000
--- a/www/wiki/vendor/symfony/yaml/Exception/ParseException.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Exception;
-
-/**
- * Exception class thrown when an error occurs during parsing.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
-class ParseException extends RuntimeException
-{
- private $parsedFile;
- private $parsedLine;
- private $snippet;
- private $rawMessage;
-
- /**
- * @param string $message The error message
- * @param int $parsedLine The line where the error occurred
- * @param string|null $snippet The snippet of code near the problem
- * @param string|null $parsedFile The file name where the error occurred
- * @param \Exception|null $previous The previous exception
- */
- public function __construct($message, $parsedLine = -1, $snippet = null, $parsedFile = null, \Exception $previous = null)
- {
- $this->parsedFile = $parsedFile;
- $this->parsedLine = $parsedLine;
- $this->snippet = $snippet;
- $this->rawMessage = $message;
-
- $this->updateRepr();
-
- parent::__construct($this->message, 0, $previous);
- }
-
- /**
- * Gets the snippet of code near the error.
- *
- * @return string The snippet of code
- */
- public function getSnippet()
- {
- return $this->snippet;
- }
-
- /**
- * Sets the snippet of code near the error.
- *
- * @param string $snippet The code snippet
- */
- public function setSnippet($snippet)
- {
- $this->snippet = $snippet;
-
- $this->updateRepr();
- }
-
- /**
- * Gets the filename where the error occurred.
- *
- * This method returns null if a string is parsed.
- *
- * @return string The filename
- */
- public function getParsedFile()
- {
- return $this->parsedFile;
- }
-
- /**
- * Sets the filename where the error occurred.
- *
- * @param string $parsedFile The filename
- */
- public function setParsedFile($parsedFile)
- {
- $this->parsedFile = $parsedFile;
-
- $this->updateRepr();
- }
-
- /**
- * Gets the line where the error occurred.
- *
- * @return int The file line
- */
- public function getParsedLine()
- {
- return $this->parsedLine;
- }
-
- /**
- * Sets the line where the error occurred.
- *
- * @param int $parsedLine The file line
- */
- public function setParsedLine($parsedLine)
- {
- $this->parsedLine = $parsedLine;
-
- $this->updateRepr();
- }
-
- private function updateRepr()
- {
- $this->message = $this->rawMessage;
-
- $dot = false;
- if ('.' === substr($this->message, -1)) {
- $this->message = substr($this->message, 0, -1);
- $dot = true;
- }
-
- if (null !== $this->parsedFile) {
- $this->message .= sprintf(' in %s', json_encode($this->parsedFile, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
- }
-
- if ($this->parsedLine >= 0) {
- $this->message .= sprintf(' at line %d', $this->parsedLine);
- }
-
- if ($this->snippet) {
- $this->message .= sprintf(' (near "%s")', $this->snippet);
- }
-
- if ($dot) {
- $this->message .= '.';
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/Exception/RuntimeException.php b/www/wiki/vendor/symfony/yaml/Exception/RuntimeException.php
deleted file mode 100644
index 3f36b73b..00000000
--- a/www/wiki/vendor/symfony/yaml/Exception/RuntimeException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Exception;
-
-/**
- * Exception class thrown when an error occurs during parsing.
- *
- * @author Romain Neutron <imprec@gmail.com>
- */
-class RuntimeException extends \RuntimeException implements ExceptionInterface
-{
-}
diff --git a/www/wiki/vendor/symfony/yaml/Inline.php b/www/wiki/vendor/symfony/yaml/Inline.php
deleted file mode 100644
index 5d71a1f3..00000000
--- a/www/wiki/vendor/symfony/yaml/Inline.php
+++ /dev/null
@@ -1,903 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml;
-
-use Symfony\Component\Yaml\Exception\DumpException;
-use Symfony\Component\Yaml\Exception\ParseException;
-use Symfony\Component\Yaml\Tag\TaggedValue;
-
-/**
- * Inline implements a YAML parser/dumper for the YAML inline syntax.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- *
- * @internal
- */
-class Inline
-{
- const REGEX_QUOTED_STRING = '(?:"([^"\\\\]*+(?:\\\\.[^"\\\\]*+)*+)"|\'([^\']*+(?:\'\'[^\']*+)*+)\')';
-
- public static $parsedLineNumber = -1;
- public static $parsedFilename;
-
- private static $exceptionOnInvalidType = false;
- private static $objectSupport = false;
- private static $objectForMap = false;
- private static $constantSupport = false;
-
- /**
- * @param int $flags
- * @param int|null $parsedLineNumber
- * @param string|null $parsedFilename
- */
- public static function initialize($flags, $parsedLineNumber = null, $parsedFilename = null)
- {
- self::$exceptionOnInvalidType = (bool) (Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE & $flags);
- self::$objectSupport = (bool) (Yaml::PARSE_OBJECT & $flags);
- self::$objectForMap = (bool) (Yaml::PARSE_OBJECT_FOR_MAP & $flags);
- self::$constantSupport = (bool) (Yaml::PARSE_CONSTANT & $flags);
- self::$parsedFilename = $parsedFilename;
-
- if (null !== $parsedLineNumber) {
- self::$parsedLineNumber = $parsedLineNumber;
- }
- }
-
- /**
- * Converts a YAML string to a PHP value.
- *
- * @param string $value A YAML string
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
- * @param array $references Mapping of variable names to values
- *
- * @return mixed A PHP value
- *
- * @throws ParseException
- */
- public static function parse($value, $flags = 0, $references = [])
- {
- if (\is_bool($flags)) {
- @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED);
-
- if ($flags) {
- $flags = Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE;
- } else {
- $flags = 0;
- }
- }
-
- if (\func_num_args() >= 3 && !\is_array($references)) {
- @trigger_error('Passing a boolean flag to toggle object support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT flag instead.', E_USER_DEPRECATED);
-
- if ($references) {
- $flags |= Yaml::PARSE_OBJECT;
- }
-
- if (\func_num_args() >= 4) {
- @trigger_error('Passing a boolean flag to toggle object for map support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT_FOR_MAP flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(3)) {
- $flags |= Yaml::PARSE_OBJECT_FOR_MAP;
- }
- }
-
- if (\func_num_args() >= 5) {
- $references = func_get_arg(4);
- } else {
- $references = [];
- }
- }
-
- self::initialize($flags);
-
- $value = trim($value);
-
- if ('' === $value) {
- return '';
- }
-
- if (2 /* MB_OVERLOAD_STRING */ & (int) ini_get('mbstring.func_overload')) {
- $mbEncoding = mb_internal_encoding();
- mb_internal_encoding('ASCII');
- }
-
- try {
- $i = 0;
- $tag = self::parseTag($value, $i, $flags);
- switch ($value[$i]) {
- case '[':
- $result = self::parseSequence($value, $flags, $i, $references);
- ++$i;
- break;
- case '{':
- $result = self::parseMapping($value, $flags, $i, $references);
- ++$i;
- break;
- default:
- $result = self::parseScalar($value, $flags, null, $i, null === $tag, $references);
- }
-
- if (null !== $tag) {
- return new TaggedValue($tag, $result);
- }
-
- // some comments are allowed at the end
- if (preg_replace('/\s+#.*$/A', '', substr($value, $i))) {
- throw new ParseException(sprintf('Unexpected characters near "%s".', substr($value, $i)), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
- }
-
- return $result;
- } finally {
- if (isset($mbEncoding)) {
- mb_internal_encoding($mbEncoding);
- }
- }
- }
-
- /**
- * Dumps a given PHP variable to a YAML string.
- *
- * @param mixed $value The PHP variable to convert
- * @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
- *
- * @return string The YAML string representing the PHP value
- *
- * @throws DumpException When trying to dump PHP resource
- */
- public static function dump($value, $flags = 0)
- {
- if (\is_bool($flags)) {
- @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED);
-
- if ($flags) {
- $flags = Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE;
- } else {
- $flags = 0;
- }
- }
-
- if (\func_num_args() >= 3) {
- @trigger_error('Passing a boolean flag to toggle object support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::DUMP_OBJECT flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(2)) {
- $flags |= Yaml::DUMP_OBJECT;
- }
- }
-
- switch (true) {
- case \is_resource($value):
- if (Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE & $flags) {
- throw new DumpException(sprintf('Unable to dump PHP resources in a YAML file ("%s").', get_resource_type($value)));
- }
-
- return 'null';
- case $value instanceof \DateTimeInterface:
- return $value->format('c');
- case \is_object($value):
- if ($value instanceof TaggedValue) {
- return '!'.$value->getTag().' '.self::dump($value->getValue(), $flags);
- }
-
- if (Yaml::DUMP_OBJECT & $flags) {
- return '!php/object '.self::dump(serialize($value));
- }
-
- if (Yaml::DUMP_OBJECT_AS_MAP & $flags && ($value instanceof \stdClass || $value instanceof \ArrayObject)) {
- return self::dumpArray($value, $flags & ~Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE);
- }
-
- if (Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE & $flags) {
- throw new DumpException('Object support when dumping a YAML file has been disabled.');
- }
-
- return 'null';
- case \is_array($value):
- return self::dumpArray($value, $flags);
- case null === $value:
- return 'null';
- case true === $value:
- return 'true';
- case false === $value:
- return 'false';
- case ctype_digit($value):
- return \is_string($value) ? "'$value'" : (int) $value;
- case is_numeric($value):
- $locale = setlocale(LC_NUMERIC, 0);
- if (false !== $locale) {
- setlocale(LC_NUMERIC, 'C');
- }
- if (\is_float($value)) {
- $repr = (string) $value;
- if (is_infinite($value)) {
- $repr = str_ireplace('INF', '.Inf', $repr);
- } elseif (floor($value) == $value && $repr == $value) {
- // Preserve float data type since storing a whole number will result in integer value.
- $repr = '!!float '.$repr;
- }
- } else {
- $repr = \is_string($value) ? "'$value'" : (string) $value;
- }
- if (false !== $locale) {
- setlocale(LC_NUMERIC, $locale);
- }
-
- return $repr;
- case '' == $value:
- return "''";
- case self::isBinaryString($value):
- return '!!binary '.base64_encode($value);
- case Escaper::requiresDoubleQuoting($value):
- return Escaper::escapeWithDoubleQuotes($value);
- case Escaper::requiresSingleQuoting($value):
- case Parser::preg_match('{^[0-9]+[_0-9]*$}', $value):
- case Parser::preg_match(self::getHexRegex(), $value):
- case Parser::preg_match(self::getTimestampRegex(), $value):
- return Escaper::escapeWithSingleQuotes($value);
- default:
- return $value;
- }
- }
-
- /**
- * Check if given array is hash or just normal indexed array.
- *
- * @internal
- *
- * @param array|\ArrayObject|\stdClass $value The PHP array or array-like object to check
- *
- * @return bool true if value is hash array, false otherwise
- */
- public static function isHash($value)
- {
- if ($value instanceof \stdClass || $value instanceof \ArrayObject) {
- return true;
- }
-
- $expectedKey = 0;
-
- foreach ($value as $key => $val) {
- if ($key !== $expectedKey++) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * Dumps a PHP array to a YAML string.
- *
- * @param array $value The PHP array to dump
- * @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
- *
- * @return string The YAML string representing the PHP array
- */
- private static function dumpArray($value, $flags)
- {
- // array
- if (($value || Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE & $flags) && !self::isHash($value)) {
- $output = [];
- foreach ($value as $val) {
- $output[] = self::dump($val, $flags);
- }
-
- return sprintf('[%s]', implode(', ', $output));
- }
-
- // hash
- $output = [];
- foreach ($value as $key => $val) {
- $output[] = sprintf('%s: %s', self::dump($key, $flags), self::dump($val, $flags));
- }
-
- return sprintf('{ %s }', implode(', ', $output));
- }
-
- /**
- * Parses a YAML scalar.
- *
- * @param string $scalar
- * @param int $flags
- * @param string[] $delimiters
- * @param int &$i
- * @param bool $evaluate
- * @param array $references
- *
- * @return string
- *
- * @throws ParseException When malformed inline YAML string is parsed
- *
- * @internal
- */
- public static function parseScalar($scalar, $flags = 0, $delimiters = null, &$i = 0, $evaluate = true, $references = [], $legacyOmittedKeySupport = false)
- {
- if (\in_array($scalar[$i], ['"', "'"])) {
- // quoted scalar
- $output = self::parseQuotedScalar($scalar, $i);
-
- if (null !== $delimiters) {
- $tmp = ltrim(substr($scalar, $i), ' ');
- if ('' === $tmp) {
- throw new ParseException(sprintf('Unexpected end of line, expected one of "%s".', implode('', $delimiters)), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
- if (!\in_array($tmp[0], $delimiters)) {
- throw new ParseException(sprintf('Unexpected characters (%s).', substr($scalar, $i)), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
- }
- } else {
- // "normal" string
- if (!$delimiters) {
- $output = substr($scalar, $i);
- $i += \strlen($output);
-
- // remove comments
- if (Parser::preg_match('/[ \t]+#/', $output, $match, PREG_OFFSET_CAPTURE)) {
- $output = substr($output, 0, $match[0][1]);
- }
- } elseif (Parser::preg_match('/^(.'.($legacyOmittedKeySupport ? '+' : '*').'?)('.implode('|', $delimiters).')/', substr($scalar, $i), $match)) {
- $output = $match[1];
- $i += \strlen($output);
- } else {
- throw new ParseException(sprintf('Malformed inline YAML string: %s.', $scalar), self::$parsedLineNumber + 1, null, self::$parsedFilename);
- }
-
- // a non-quoted string cannot start with @ or ` (reserved) nor with a scalar indicator (| or >)
- if ($output && ('@' === $output[0] || '`' === $output[0] || '|' === $output[0] || '>' === $output[0])) {
- throw new ParseException(sprintf('The reserved indicator "%s" cannot start a plain scalar; you need to quote the scalar.', $output[0]), self::$parsedLineNumber + 1, $output, self::$parsedFilename);
- }
-
- if ($output && '%' === $output[0]) {
- @trigger_error(self::getDeprecationMessage(sprintf('Not quoting the scalar "%s" starting with the "%%" indicator character is deprecated since Symfony 3.1 and will throw a ParseException in 4.0.', $output)), E_USER_DEPRECATED);
- }
-
- if ($evaluate) {
- $output = self::evaluateScalar($output, $flags, $references);
- }
- }
-
- return $output;
- }
-
- /**
- * Parses a YAML quoted scalar.
- *
- * @param string $scalar
- * @param int &$i
- *
- * @return string
- *
- * @throws ParseException When malformed inline YAML string is parsed
- */
- private static function parseQuotedScalar($scalar, &$i)
- {
- if (!Parser::preg_match('/'.self::REGEX_QUOTED_STRING.'/Au', substr($scalar, $i), $match)) {
- throw new ParseException(sprintf('Malformed inline YAML string: %s.', substr($scalar, $i)), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
-
- $output = substr($match[0], 1, \strlen($match[0]) - 2);
-
- $unescaper = new Unescaper();
- if ('"' == $scalar[$i]) {
- $output = $unescaper->unescapeDoubleQuotedString($output);
- } else {
- $output = $unescaper->unescapeSingleQuotedString($output);
- }
-
- $i += \strlen($match[0]);
-
- return $output;
- }
-
- /**
- * Parses a YAML sequence.
- *
- * @param string $sequence
- * @param int $flags
- * @param int &$i
- * @param array $references
- *
- * @return array
- *
- * @throws ParseException When malformed inline YAML string is parsed
- */
- private static function parseSequence($sequence, $flags, &$i = 0, $references = [])
- {
- $output = [];
- $len = \strlen($sequence);
- ++$i;
-
- // [foo, bar, ...]
- while ($i < $len) {
- if (']' === $sequence[$i]) {
- return $output;
- }
- if (',' === $sequence[$i] || ' ' === $sequence[$i]) {
- ++$i;
-
- continue;
- }
-
- $tag = self::parseTag($sequence, $i, $flags);
- switch ($sequence[$i]) {
- case '[':
- // nested sequence
- $value = self::parseSequence($sequence, $flags, $i, $references);
- break;
- case '{':
- // nested mapping
- $value = self::parseMapping($sequence, $flags, $i, $references);
- break;
- default:
- $isQuoted = \in_array($sequence[$i], ['"', "'"]);
- $value = self::parseScalar($sequence, $flags, [',', ']'], $i, null === $tag, $references);
-
- // the value can be an array if a reference has been resolved to an array var
- if (\is_string($value) && !$isQuoted && false !== strpos($value, ': ')) {
- // embedded mapping?
- try {
- $pos = 0;
- $value = self::parseMapping('{'.$value.'}', $flags, $pos, $references);
- } catch (\InvalidArgumentException $e) {
- // no, it's not
- }
- }
-
- --$i;
- }
-
- if (null !== $tag) {
- $value = new TaggedValue($tag, $value);
- }
-
- $output[] = $value;
-
- ++$i;
- }
-
- throw new ParseException(sprintf('Malformed inline YAML string: %s.', $sequence), self::$parsedLineNumber + 1, null, self::$parsedFilename);
- }
-
- /**
- * Parses a YAML mapping.
- *
- * @param string $mapping
- * @param int $flags
- * @param int &$i
- * @param array $references
- *
- * @return array|\stdClass
- *
- * @throws ParseException When malformed inline YAML string is parsed
- */
- private static function parseMapping($mapping, $flags, &$i = 0, $references = [])
- {
- $output = [];
- $len = \strlen($mapping);
- ++$i;
- $allowOverwrite = false;
-
- // {foo: bar, bar:foo, ...}
- while ($i < $len) {
- switch ($mapping[$i]) {
- case ' ':
- case ',':
- ++$i;
- continue 2;
- case '}':
- if (self::$objectForMap) {
- return (object) $output;
- }
-
- return $output;
- }
-
- // key
- $isKeyQuoted = \in_array($mapping[$i], ['"', "'"], true);
- $key = self::parseScalar($mapping, $flags, [':', ' '], $i, false, [], true);
-
- if (':' !== $key && false === $i = strpos($mapping, ':', $i)) {
- break;
- }
-
- if (':' === $key) {
- @trigger_error(self::getDeprecationMessage('Omitting the key of a mapping is deprecated and will throw a ParseException in 4.0.'), E_USER_DEPRECATED);
- }
-
- if (!$isKeyQuoted) {
- $evaluatedKey = self::evaluateScalar($key, $flags, $references);
-
- if ('' !== $key && $evaluatedKey !== $key && !\is_string($evaluatedKey) && !\is_int($evaluatedKey)) {
- @trigger_error(self::getDeprecationMessage('Implicit casting of incompatible mapping keys to strings is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead.'), E_USER_DEPRECATED);
- }
- }
-
- if (':' !== $key && !$isKeyQuoted && (!isset($mapping[$i + 1]) || !\in_array($mapping[$i + 1], [' ', ',', '[', ']', '{', '}'], true))) {
- @trigger_error(self::getDeprecationMessage('Using a colon after an unquoted mapping key that is not followed by an indication character (i.e. " ", ",", "[", "]", "{", "}") is deprecated since Symfony 3.2 and will throw a ParseException in 4.0.'), E_USER_DEPRECATED);
- }
-
- if ('<<' === $key) {
- $allowOverwrite = true;
- }
-
- while ($i < $len) {
- if (':' === $mapping[$i] || ' ' === $mapping[$i]) {
- ++$i;
-
- continue;
- }
-
- $tag = self::parseTag($mapping, $i, $flags);
- switch ($mapping[$i]) {
- case '[':
- // nested sequence
- $value = self::parseSequence($mapping, $flags, $i, $references);
- // Spec: Keys MUST be unique; first one wins.
- // Parser cannot abort this mapping earlier, since lines
- // are processed sequentially.
- // But overwriting is allowed when a merge node is used in current block.
- if ('<<' === $key) {
- foreach ($value as $parsedValue) {
- $output += $parsedValue;
- }
- } elseif ($allowOverwrite || !isset($output[$key])) {
- if (null !== $tag) {
- $output[$key] = new TaggedValue($tag, $value);
- } else {
- $output[$key] = $value;
- }
- } elseif (isset($output[$key])) {
- @trigger_error(self::getDeprecationMessage(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since Symfony 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.', $key)), E_USER_DEPRECATED);
- }
- break;
- case '{':
- // nested mapping
- $value = self::parseMapping($mapping, $flags, $i, $references);
- // Spec: Keys MUST be unique; first one wins.
- // Parser cannot abort this mapping earlier, since lines
- // are processed sequentially.
- // But overwriting is allowed when a merge node is used in current block.
- if ('<<' === $key) {
- $output += $value;
- } elseif ($allowOverwrite || !isset($output[$key])) {
- if (null !== $tag) {
- $output[$key] = new TaggedValue($tag, $value);
- } else {
- $output[$key] = $value;
- }
- } elseif (isset($output[$key])) {
- @trigger_error(self::getDeprecationMessage(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since Symfony 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.', $key)), E_USER_DEPRECATED);
- }
- break;
- default:
- $value = self::parseScalar($mapping, $flags, [',', '}'], $i, null === $tag, $references);
- // Spec: Keys MUST be unique; first one wins.
- // Parser cannot abort this mapping earlier, since lines
- // are processed sequentially.
- // But overwriting is allowed when a merge node is used in current block.
- if ('<<' === $key) {
- $output += $value;
- } elseif ($allowOverwrite || !isset($output[$key])) {
- if (null !== $tag) {
- $output[$key] = new TaggedValue($tag, $value);
- } else {
- $output[$key] = $value;
- }
- } elseif (isset($output[$key])) {
- @trigger_error(self::getDeprecationMessage(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since Symfony 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.', $key)), E_USER_DEPRECATED);
- }
- --$i;
- }
- ++$i;
-
- continue 2;
- }
- }
-
- throw new ParseException(sprintf('Malformed inline YAML string: %s.', $mapping), self::$parsedLineNumber + 1, null, self::$parsedFilename);
- }
-
- /**
- * Evaluates scalars and replaces magic values.
- *
- * @param string $scalar
- * @param int $flags
- * @param array $references
- *
- * @return mixed The evaluated YAML string
- *
- * @throws ParseException when object parsing support was disabled and the parser detected a PHP object or when a reference could not be resolved
- */
- private static function evaluateScalar($scalar, $flags, $references = [])
- {
- $scalar = trim($scalar);
- $scalarLower = strtolower($scalar);
-
- if (0 === strpos($scalar, '*')) {
- if (false !== $pos = strpos($scalar, '#')) {
- $value = substr($scalar, 1, $pos - 2);
- } else {
- $value = substr($scalar, 1);
- }
-
- // an unquoted *
- if (false === $value || '' === $value) {
- throw new ParseException('A reference must contain at least one character.', self::$parsedLineNumber + 1, $value, self::$parsedFilename);
- }
-
- if (!\array_key_exists($value, $references)) {
- throw new ParseException(sprintf('Reference "%s" does not exist.', $value), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
- }
-
- return $references[$value];
- }
-
- switch (true) {
- case 'null' === $scalarLower:
- case '' === $scalar:
- case '~' === $scalar:
- return;
- case 'true' === $scalarLower:
- return true;
- case 'false' === $scalarLower:
- return false;
- case '!' === $scalar[0]:
- switch (true) {
- case 0 === strpos($scalar, '!str'):
- @trigger_error(self::getDeprecationMessage('Support for the !str tag is deprecated since Symfony 3.4. Use the !!str tag instead.'), E_USER_DEPRECATED);
-
- return (string) substr($scalar, 5);
- case 0 === strpos($scalar, '!!str '):
- return (string) substr($scalar, 6);
- case 0 === strpos($scalar, '! '):
- @trigger_error(self::getDeprecationMessage('Using the non-specific tag "!" is deprecated since Symfony 3.4 as its behavior will change in 4.0. It will force non-evaluating your values in 4.0. Use plain integers or !!float instead.'), E_USER_DEPRECATED);
-
- return (int) self::parseScalar(substr($scalar, 2), $flags);
- case 0 === strpos($scalar, '!php/object:'):
- if (self::$objectSupport) {
- @trigger_error(self::getDeprecationMessage('The !php/object: tag to indicate dumped PHP objects is deprecated since Symfony 3.4 and will be removed in 4.0. Use the !php/object (without the colon) tag instead.'), E_USER_DEPRECATED);
-
- return unserialize(substr($scalar, 12));
- }
-
- if (self::$exceptionOnInvalidType) {
- throw new ParseException('Object support when parsing a YAML file has been disabled.', self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
-
- return;
- case 0 === strpos($scalar, '!!php/object:'):
- if (self::$objectSupport) {
- @trigger_error(self::getDeprecationMessage('The !!php/object: tag to indicate dumped PHP objects is deprecated since Symfony 3.1 and will be removed in 4.0. Use the !php/object (without the colon) tag instead.'), E_USER_DEPRECATED);
-
- return unserialize(substr($scalar, 13));
- }
-
- if (self::$exceptionOnInvalidType) {
- throw new ParseException('Object support when parsing a YAML file has been disabled.', self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
-
- return;
- case 0 === strpos($scalar, '!php/object'):
- if (self::$objectSupport) {
- return unserialize(self::parseScalar(substr($scalar, 12)));
- }
-
- if (self::$exceptionOnInvalidType) {
- throw new ParseException('Object support when parsing a YAML file has been disabled.', self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
-
- return;
- case 0 === strpos($scalar, '!php/const:'):
- if (self::$constantSupport) {
- @trigger_error(self::getDeprecationMessage('The !php/const: tag to indicate dumped PHP constants is deprecated since Symfony 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead.'), E_USER_DEPRECATED);
-
- if (\defined($const = substr($scalar, 11))) {
- return \constant($const);
- }
-
- throw new ParseException(sprintf('The constant "%s" is not defined.', $const), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
- if (self::$exceptionOnInvalidType) {
- throw new ParseException(sprintf('The string "%s" could not be parsed as a constant. Have you forgotten to pass the "Yaml::PARSE_CONSTANT" flag to the parser?', $scalar), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
-
- return;
- case 0 === strpos($scalar, '!php/const'):
- if (self::$constantSupport) {
- $i = 0;
- if (\defined($const = self::parseScalar(substr($scalar, 11), 0, null, $i, false))) {
- return \constant($const);
- }
-
- throw new ParseException(sprintf('The constant "%s" is not defined.', $const), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
- if (self::$exceptionOnInvalidType) {
- throw new ParseException(sprintf('The string "%s" could not be parsed as a constant. Have you forgotten to pass the "Yaml::PARSE_CONSTANT" flag to the parser?', $scalar), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
-
- return;
- case 0 === strpos($scalar, '!!float '):
- return (float) substr($scalar, 8);
- case 0 === strpos($scalar, '!!binary '):
- return self::evaluateBinaryScalar(substr($scalar, 9));
- default:
- @trigger_error(self::getDeprecationMessage(sprintf('Using the unquoted scalar value "%s" is deprecated since Symfony 3.3 and will be considered as a tagged value in 4.0. You must quote it.', $scalar)), E_USER_DEPRECATED);
- }
-
- // Optimize for returning strings.
- // no break
- case '+' === $scalar[0] || '-' === $scalar[0] || '.' === $scalar[0] || is_numeric($scalar[0]):
- switch (true) {
- case Parser::preg_match('{^[+-]?[0-9][0-9_]*$}', $scalar):
- $scalar = str_replace('_', '', (string) $scalar);
- // omitting the break / return as integers are handled in the next case
- // no break
- case ctype_digit($scalar):
- $raw = $scalar;
- $cast = (int) $scalar;
-
- return '0' == $scalar[0] ? octdec($scalar) : (((string) $raw == (string) $cast) ? $cast : $raw);
- case '-' === $scalar[0] && ctype_digit(substr($scalar, 1)):
- $raw = $scalar;
- $cast = (int) $scalar;
-
- return '0' == $scalar[1] ? octdec($scalar) : (((string) $raw === (string) $cast) ? $cast : $raw);
- case is_numeric($scalar):
- case Parser::preg_match(self::getHexRegex(), $scalar):
- $scalar = str_replace('_', '', $scalar);
-
- return '0x' === $scalar[0].$scalar[1] ? hexdec($scalar) : (float) $scalar;
- case '.inf' === $scalarLower:
- case '.nan' === $scalarLower:
- return -log(0);
- case '-.inf' === $scalarLower:
- return log(0);
- case Parser::preg_match('/^(-|\+)?[0-9][0-9,]*(\.[0-9_]+)?$/', $scalar):
- case Parser::preg_match('/^(-|\+)?[0-9][0-9_]*(\.[0-9_]+)?$/', $scalar):
- if (false !== strpos($scalar, ',')) {
- @trigger_error(self::getDeprecationMessage('Using the comma as a group separator for floats is deprecated since Symfony 3.2 and will be removed in 4.0.'), E_USER_DEPRECATED);
- }
-
- return (float) str_replace([',', '_'], '', $scalar);
- case Parser::preg_match(self::getTimestampRegex(), $scalar):
- if (Yaml::PARSE_DATETIME & $flags) {
- // When no timezone is provided in the parsed date, YAML spec says we must assume UTC.
- return new \DateTime($scalar, new \DateTimeZone('UTC'));
- }
-
- $timeZone = date_default_timezone_get();
- date_default_timezone_set('UTC');
- $time = strtotime($scalar);
- date_default_timezone_set($timeZone);
-
- return $time;
- }
- }
-
- return (string) $scalar;
- }
-
- /**
- * @param string $value
- * @param int &$i
- * @param int $flags
- *
- * @return string|null
- */
- private static function parseTag($value, &$i, $flags)
- {
- if ('!' !== $value[$i]) {
- return;
- }
-
- $tagLength = strcspn($value, " \t\n", $i + 1);
- $tag = substr($value, $i + 1, $tagLength);
-
- $nextOffset = $i + $tagLength + 1;
- $nextOffset += strspn($value, ' ', $nextOffset);
-
- // Is followed by a scalar
- if ((!isset($value[$nextOffset]) || !\in_array($value[$nextOffset], ['[', '{'], true)) && 'tagged' !== $tag) {
- // Manage non-whitelisted scalars in {@link self::evaluateScalar()}
- return;
- }
-
- // Built-in tags
- if ($tag && '!' === $tag[0]) {
- throw new ParseException(sprintf('The built-in tag "!%s" is not implemented.', $tag), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
- }
-
- if (Yaml::PARSE_CUSTOM_TAGS & $flags) {
- $i = $nextOffset;
-
- return $tag;
- }
-
- throw new ParseException(sprintf('Tags support is not enabled. Enable the `Yaml::PARSE_CUSTOM_TAGS` flag to use "!%s".', $tag), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
- }
-
- /**
- * @param string $scalar
- *
- * @return string
- *
- * @internal
- */
- public static function evaluateBinaryScalar($scalar)
- {
- $parsedBinaryData = self::parseScalar(preg_replace('/\s/', '', $scalar));
-
- if (0 !== (\strlen($parsedBinaryData) % 4)) {
- throw new ParseException(sprintf('The normalized base64 encoded data (data without whitespace characters) length must be a multiple of four (%d bytes given).', \strlen($parsedBinaryData)), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
-
- if (!Parser::preg_match('#^[A-Z0-9+/]+={0,2}$#i', $parsedBinaryData)) {
- throw new ParseException(sprintf('The base64 encoded data (%s) contains invalid characters.', $parsedBinaryData), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
- }
-
- return base64_decode($parsedBinaryData, true);
- }
-
- private static function isBinaryString($value)
- {
- return !preg_match('//u', $value) || preg_match('/[^\x00\x07-\x0d\x1B\x20-\xff]/', $value);
- }
-
- /**
- * Gets a regex that matches a YAML date.
- *
- * @return string The regular expression
- *
- * @see http://www.yaml.org/spec/1.2/spec.html#id2761573
- */
- private static function getTimestampRegex()
- {
- return <<<EOF
- ~^
- (?P<year>[0-9][0-9][0-9][0-9])
- -(?P<month>[0-9][0-9]?)
- -(?P<day>[0-9][0-9]?)
- (?:(?:[Tt]|[ \t]+)
- (?P<hour>[0-9][0-9]?)
- :(?P<minute>[0-9][0-9])
- :(?P<second>[0-9][0-9])
- (?:\.(?P<fraction>[0-9]*))?
- (?:[ \t]*(?P<tz>Z|(?P<tz_sign>[-+])(?P<tz_hour>[0-9][0-9]?)
- (?::(?P<tz_minute>[0-9][0-9]))?))?)?
- $~x
-EOF;
- }
-
- /**
- * Gets a regex that matches a YAML number in hexadecimal notation.
- *
- * @return string
- */
- private static function getHexRegex()
- {
- return '~^0x[0-9a-f_]++$~i';
- }
-
- private static function getDeprecationMessage($message)
- {
- $message = rtrim($message, '.');
-
- if (null !== self::$parsedFilename) {
- $message .= ' in '.self::$parsedFilename;
- }
-
- if (-1 !== self::$parsedLineNumber) {
- $message .= ' on line '.(self::$parsedLineNumber + 1);
- }
-
- return $message.'.';
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/LICENSE b/www/wiki/vendor/symfony/yaml/LICENSE
deleted file mode 100644
index a677f437..00000000
--- a/www/wiki/vendor/symfony/yaml/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2004-2019 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/www/wiki/vendor/symfony/yaml/Parser.php b/www/wiki/vendor/symfony/yaml/Parser.php
deleted file mode 100644
index cc094085..00000000
--- a/www/wiki/vendor/symfony/yaml/Parser.php
+++ /dev/null
@@ -1,1138 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml;
-
-use Symfony\Component\Yaml\Exception\ParseException;
-use Symfony\Component\Yaml\Tag\TaggedValue;
-
-/**
- * Parser parses YAML strings to convert them to PHP arrays.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- *
- * @final since version 3.4
- */
-class Parser
-{
- const TAG_PATTERN = '(?P<tag>![\w!.\/:-]+)';
- const BLOCK_SCALAR_HEADER_PATTERN = '(?P<separator>\||>)(?P<modifiers>\+|\-|\d+|\+\d+|\-\d+|\d+\+|\d+\-)?(?P<comments> +#.*)?';
-
- private $filename;
- private $offset = 0;
- private $totalNumberOfLines;
- private $lines = [];
- private $currentLineNb = -1;
- private $currentLine = '';
- private $refs = [];
- private $skippedLineNumbers = [];
- private $locallySkippedLineNumbers = [];
- private $refsBeingParsed = [];
-
- public function __construct()
- {
- if (\func_num_args() > 0) {
- @trigger_error(sprintf('The constructor arguments $offset, $totalNumberOfLines, $skippedLineNumbers of %s are deprecated and will be removed in 4.0', self::class), E_USER_DEPRECATED);
-
- $this->offset = func_get_arg(0);
- if (\func_num_args() > 1) {
- $this->totalNumberOfLines = func_get_arg(1);
- }
- if (\func_num_args() > 2) {
- $this->skippedLineNumbers = func_get_arg(2);
- }
- }
- }
-
- /**
- * Parses a YAML file into a PHP value.
- *
- * @param string $filename The path to the YAML file to be parsed
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
- *
- * @return mixed The YAML converted to a PHP value
- *
- * @throws ParseException If the file could not be read or the YAML is not valid
- */
- public function parseFile($filename, $flags = 0)
- {
- if (!is_file($filename)) {
- throw new ParseException(sprintf('File "%s" does not exist.', $filename));
- }
-
- if (!is_readable($filename)) {
- throw new ParseException(sprintf('File "%s" cannot be read.', $filename));
- }
-
- $this->filename = $filename;
-
- try {
- return $this->parse(file_get_contents($filename), $flags);
- } finally {
- $this->filename = null;
- }
- }
-
- /**
- * Parses a YAML string to a PHP value.
- *
- * @param string $value A YAML string
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
- *
- * @return mixed A PHP value
- *
- * @throws ParseException If the YAML is not valid
- */
- public function parse($value, $flags = 0)
- {
- if (\is_bool($flags)) {
- @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED);
-
- if ($flags) {
- $flags = Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE;
- } else {
- $flags = 0;
- }
- }
-
- if (\func_num_args() >= 3) {
- @trigger_error('Passing a boolean flag to toggle object support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(2)) {
- $flags |= Yaml::PARSE_OBJECT;
- }
- }
-
- if (\func_num_args() >= 4) {
- @trigger_error('Passing a boolean flag to toggle object for map support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT_FOR_MAP flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(3)) {
- $flags |= Yaml::PARSE_OBJECT_FOR_MAP;
- }
- }
-
- if (Yaml::PARSE_KEYS_AS_STRINGS & $flags) {
- @trigger_error('Using the Yaml::PARSE_KEYS_AS_STRINGS flag is deprecated since Symfony 3.4 as it will be removed in 4.0. Quote your keys when they are evaluable instead.', E_USER_DEPRECATED);
- }
-
- if (false === preg_match('//u', $value)) {
- throw new ParseException('The YAML value does not appear to be valid UTF-8.', -1, null, $this->filename);
- }
-
- $this->refs = [];
-
- $mbEncoding = null;
- $e = null;
- $data = null;
-
- if (2 /* MB_OVERLOAD_STRING */ & (int) ini_get('mbstring.func_overload')) {
- $mbEncoding = mb_internal_encoding();
- mb_internal_encoding('UTF-8');
- }
-
- try {
- $data = $this->doParse($value, $flags);
- } catch (\Exception $e) {
- } catch (\Throwable $e) {
- }
-
- if (null !== $mbEncoding) {
- mb_internal_encoding($mbEncoding);
- }
-
- $this->lines = [];
- $this->currentLine = '';
- $this->refs = [];
- $this->skippedLineNumbers = [];
- $this->locallySkippedLineNumbers = [];
-
- if (null !== $e) {
- throw $e;
- }
-
- return $data;
- }
-
- private function doParse($value, $flags)
- {
- $this->currentLineNb = -1;
- $this->currentLine = '';
- $value = $this->cleanup($value);
- $this->lines = explode("\n", $value);
- $this->locallySkippedLineNumbers = [];
-
- if (null === $this->totalNumberOfLines) {
- $this->totalNumberOfLines = \count($this->lines);
- }
-
- if (!$this->moveToNextLine()) {
- return null;
- }
-
- $data = [];
- $context = null;
- $allowOverwrite = false;
-
- while ($this->isCurrentLineEmpty()) {
- if (!$this->moveToNextLine()) {
- return null;
- }
- }
-
- // Resolves the tag and returns if end of the document
- if (null !== ($tag = $this->getLineTag($this->currentLine, $flags, false)) && !$this->moveToNextLine()) {
- return new TaggedValue($tag, '');
- }
-
- do {
- if ($this->isCurrentLineEmpty()) {
- continue;
- }
-
- // tab?
- if ("\t" === $this->currentLine[0]) {
- throw new ParseException('A YAML file cannot contain tabs as indentation.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
- }
-
- Inline::initialize($flags, $this->getRealCurrentLineNb(), $this->filename);
-
- $isRef = $mergeNode = false;
- if (self::preg_match('#^\-((?P<leadspaces>\s+)(?P<value>.+))?$#u', rtrim($this->currentLine), $values)) {
- if ($context && 'mapping' == $context) {
- throw new ParseException('You cannot define a sequence item when in a mapping', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
- }
- $context = 'sequence';
-
- if (isset($values['value']) && self::preg_match('#^&(?P<ref>[^ ]+) *(?P<value>.*)#u', $values['value'], $matches)) {
- $isRef = $matches['ref'];
- $this->refsBeingParsed[] = $isRef;
- $values['value'] = $matches['value'];
- }
-
- if (isset($values['value'][1]) && '?' === $values['value'][0] && ' ' === $values['value'][1]) {
- @trigger_error($this->getDeprecationMessage('Starting an unquoted string with a question mark followed by a space is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.'), E_USER_DEPRECATED);
- }
-
- // array
- if (!isset($values['value']) || '' == trim($values['value'], ' ') || 0 === strpos(ltrim($values['value'], ' '), '#')) {
- $data[] = $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(null, true), $flags);
- } elseif (null !== $subTag = $this->getLineTag(ltrim($values['value'], ' '), $flags)) {
- $data[] = new TaggedValue(
- $subTag,
- $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(null, true), $flags)
- );
- } else {
- if (isset($values['leadspaces'])
- && self::preg_match('#^(?P<key>'.Inline::REGEX_QUOTED_STRING.'|[^ \'"\{\[].*?) *\:(\s+(?P<value>.+?))?\s*$#u', $this->trimTag($values['value']), $matches)
- ) {
- // this is a compact notation element, add to next block and parse
- $block = $values['value'];
- if ($this->isNextLineIndented()) {
- $block .= "\n".$this->getNextEmbedBlock($this->getCurrentLineIndentation() + \strlen($values['leadspaces']) + 1);
- }
-
- $data[] = $this->parseBlock($this->getRealCurrentLineNb(), $block, $flags);
- } else {
- $data[] = $this->parseValue($values['value'], $flags, $context);
- }
- }
- if ($isRef) {
- $this->refs[$isRef] = end($data);
- array_pop($this->refsBeingParsed);
- }
- } elseif (
- self::preg_match('#^(?P<key>(?:![^\s]++\s++)?(?:'.Inline::REGEX_QUOTED_STRING.'|(?:!?!php/const:)?[^ \'"\[\{!].*?)) *\:(\s++(?P<value>.+))?$#u', rtrim($this->currentLine), $values)
- && (false === strpos($values['key'], ' #') || \in_array($values['key'][0], ['"', "'"]))
- ) {
- if ($context && 'sequence' == $context) {
- throw new ParseException('You cannot define a mapping item when in a sequence', $this->currentLineNb + 1, $this->currentLine, $this->filename);
- }
- $context = 'mapping';
-
- try {
- $i = 0;
- $evaluateKey = !(Yaml::PARSE_KEYS_AS_STRINGS & $flags);
-
- // constants in key will be evaluated anyway
- if (isset($values['key'][0]) && '!' === $values['key'][0] && Yaml::PARSE_CONSTANT & $flags) {
- $evaluateKey = true;
- }
-
- $key = Inline::parseScalar($values['key'], 0, null, $i, $evaluateKey);
- } catch (ParseException $e) {
- $e->setParsedLine($this->getRealCurrentLineNb() + 1);
- $e->setSnippet($this->currentLine);
-
- throw $e;
- }
-
- if (!\is_string($key) && !\is_int($key)) {
- $keyType = is_numeric($key) ? 'numeric key' : 'non-string key';
- @trigger_error($this->getDeprecationMessage(sprintf('Implicit casting of %s to string is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead.', $keyType)), E_USER_DEPRECATED);
- }
-
- // Convert float keys to strings, to avoid being converted to integers by PHP
- if (\is_float($key)) {
- $key = (string) $key;
- }
-
- if ('<<' === $key && (!isset($values['value']) || !self::preg_match('#^&(?P<ref>[^ ]+)#u', $values['value'], $refMatches))) {
- $mergeNode = true;
- $allowOverwrite = true;
- if (isset($values['value'][0]) && '*' === $values['value'][0]) {
- $refName = substr(rtrim($values['value']), 1);
- if (!\array_key_exists($refName, $this->refs)) {
- if (false !== $pos = array_search($refName, $this->refsBeingParsed, true)) {
- throw new ParseException(sprintf('Circular reference [%s, %s] detected for reference "%s".', implode(', ', \array_slice($this->refsBeingParsed, $pos)), $refName, $refName), $this->currentLineNb + 1, $this->currentLine, $this->filename);
- }
-
- throw new ParseException(sprintf('Reference "%s" does not exist.', $refName), $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
- }
-
- $refValue = $this->refs[$refName];
-
- if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $refValue instanceof \stdClass) {
- $refValue = (array) $refValue;
- }
-
- if (!\is_array($refValue)) {
- throw new ParseException('YAML merge keys used with a scalar value instead of an array.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
- }
-
- $data += $refValue; // array union
- } else {
- if (isset($values['value']) && '' !== $values['value']) {
- $value = $values['value'];
- } else {
- $value = $this->getNextEmbedBlock();
- }
- $parsed = $this->parseBlock($this->getRealCurrentLineNb() + 1, $value, $flags);
-
- if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $parsed instanceof \stdClass) {
- $parsed = (array) $parsed;
- }
-
- if (!\is_array($parsed)) {
- throw new ParseException('YAML merge keys used with a scalar value instead of an array.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
- }
-
- if (isset($parsed[0])) {
- // If the value associated with the merge key is a sequence, then this sequence is expected to contain mapping nodes
- // and each of these nodes is merged in turn according to its order in the sequence. Keys in mapping nodes earlier
- // in the sequence override keys specified in later mapping nodes.
- foreach ($parsed as $parsedItem) {
- if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $parsedItem instanceof \stdClass) {
- $parsedItem = (array) $parsedItem;
- }
-
- if (!\is_array($parsedItem)) {
- throw new ParseException('Merge items must be arrays.', $this->getRealCurrentLineNb() + 1, $parsedItem, $this->filename);
- }
-
- $data += $parsedItem; // array union
- }
- } else {
- // If the value associated with the key is a single mapping node, each of its key/value pairs is inserted into the
- // current mapping, unless the key already exists in it.
- $data += $parsed; // array union
- }
- }
- } elseif ('<<' !== $key && isset($values['value']) && self::preg_match('#^&(?P<ref>[^ ]++) *+(?P<value>.*)#u', $values['value'], $matches)) {
- $isRef = $matches['ref'];
- $this->refsBeingParsed[] = $isRef;
- $values['value'] = $matches['value'];
- }
-
- $subTag = null;
- if ($mergeNode) {
- // Merge keys
- } elseif (!isset($values['value']) || '' === $values['value'] || 0 === strpos($values['value'], '#') || (null !== $subTag = $this->getLineTag($values['value'], $flags)) || '<<' === $key) {
- // hash
- // if next line is less indented or equal, then it means that the current value is null
- if (!$this->isNextLineIndented() && !$this->isNextLineUnIndentedCollection()) {
- // Spec: Keys MUST be unique; first one wins.
- // But overwriting is allowed when a merge node is used in current block.
- if ($allowOverwrite || !isset($data[$key])) {
- if (null !== $subTag) {
- $data[$key] = new TaggedValue($subTag, '');
- } else {
- $data[$key] = null;
- }
- } else {
- @trigger_error($this->getDeprecationMessage(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since Symfony 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.', $key)), E_USER_DEPRECATED);
- }
- } else {
- $value = $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(), $flags);
- if ('<<' === $key) {
- $this->refs[$refMatches['ref']] = $value;
-
- if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && $value instanceof \stdClass) {
- $value = (array) $value;
- }
-
- $data += $value;
- } elseif ($allowOverwrite || !isset($data[$key])) {
- // Spec: Keys MUST be unique; first one wins.
- // But overwriting is allowed when a merge node is used in current block.
- if (null !== $subTag) {
- $data[$key] = new TaggedValue($subTag, $value);
- } else {
- $data[$key] = $value;
- }
- } else {
- @trigger_error($this->getDeprecationMessage(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since Symfony 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.', $key)), E_USER_DEPRECATED);
- }
- }
- } else {
- $value = $this->parseValue(rtrim($values['value']), $flags, $context);
- // Spec: Keys MUST be unique; first one wins.
- // But overwriting is allowed when a merge node is used in current block.
- if ($allowOverwrite || !isset($data[$key])) {
- $data[$key] = $value;
- } else {
- @trigger_error($this->getDeprecationMessage(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since Symfony 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.', $key)), E_USER_DEPRECATED);
- }
- }
- if ($isRef) {
- $this->refs[$isRef] = $data[$key];
- array_pop($this->refsBeingParsed);
- }
- } else {
- // multiple documents are not supported
- if ('---' === $this->currentLine) {
- throw new ParseException('Multiple documents are not supported.', $this->currentLineNb + 1, $this->currentLine, $this->filename);
- }
-
- if ($deprecatedUsage = (isset($this->currentLine[1]) && '?' === $this->currentLine[0] && ' ' === $this->currentLine[1])) {
- @trigger_error($this->getDeprecationMessage('Starting an unquoted string with a question mark followed by a space is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.'), E_USER_DEPRECATED);
- }
-
- // 1-liner optionally followed by newline(s)
- if (\is_string($value) && $this->lines[0] === trim($value)) {
- try {
- $value = Inline::parse($this->lines[0], $flags, $this->refs);
- } catch (ParseException $e) {
- $e->setParsedLine($this->getRealCurrentLineNb() + 1);
- $e->setSnippet($this->currentLine);
-
- throw $e;
- }
-
- return $value;
- }
-
- // try to parse the value as a multi-line string as a last resort
- if (0 === $this->currentLineNb) {
- $previousLineWasNewline = false;
- $previousLineWasTerminatedWithBackslash = false;
- $value = '';
-
- foreach ($this->lines as $line) {
- // If the indentation is not consistent at offset 0, it is to be considered as a ParseError
- if (0 === $this->offset && !$deprecatedUsage && isset($line[0]) && ' ' === $line[0]) {
- throw new ParseException('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
- }
- if ('' === trim($line)) {
- $value .= "\n";
- } elseif (!$previousLineWasNewline && !$previousLineWasTerminatedWithBackslash) {
- $value .= ' ';
- }
-
- if ('' !== trim($line) && '\\' === substr($line, -1)) {
- $value .= ltrim(substr($line, 0, -1));
- } elseif ('' !== trim($line)) {
- $value .= trim($line);
- }
-
- if ('' === trim($line)) {
- $previousLineWasNewline = true;
- $previousLineWasTerminatedWithBackslash = false;
- } elseif ('\\' === substr($line, -1)) {
- $previousLineWasNewline = false;
- $previousLineWasTerminatedWithBackslash = true;
- } else {
- $previousLineWasNewline = false;
- $previousLineWasTerminatedWithBackslash = false;
- }
- }
-
- try {
- return Inline::parse(trim($value));
- } catch (ParseException $e) {
- // fall-through to the ParseException thrown below
- }
- }
-
- throw new ParseException('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
- }
- } while ($this->moveToNextLine());
-
- if (null !== $tag) {
- $data = new TaggedValue($tag, $data);
- }
-
- if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && !\is_object($data) && 'mapping' === $context) {
- $object = new \stdClass();
-
- foreach ($data as $key => $value) {
- $object->$key = $value;
- }
-
- $data = $object;
- }
-
- return empty($data) ? null : $data;
- }
-
- private function parseBlock($offset, $yaml, $flags)
- {
- $skippedLineNumbers = $this->skippedLineNumbers;
-
- foreach ($this->locallySkippedLineNumbers as $lineNumber) {
- if ($lineNumber < $offset) {
- continue;
- }
-
- $skippedLineNumbers[] = $lineNumber;
- }
-
- $parser = new self();
- $parser->offset = $offset;
- $parser->totalNumberOfLines = $this->totalNumberOfLines;
- $parser->skippedLineNumbers = $skippedLineNumbers;
- $parser->refs = &$this->refs;
- $parser->refsBeingParsed = $this->refsBeingParsed;
-
- return $parser->doParse($yaml, $flags);
- }
-
- /**
- * Returns the current line number (takes the offset into account).
- *
- * @internal
- *
- * @return int The current line number
- */
- public function getRealCurrentLineNb()
- {
- $realCurrentLineNumber = $this->currentLineNb + $this->offset;
-
- foreach ($this->skippedLineNumbers as $skippedLineNumber) {
- if ($skippedLineNumber > $realCurrentLineNumber) {
- break;
- }
-
- ++$realCurrentLineNumber;
- }
-
- return $realCurrentLineNumber;
- }
-
- /**
- * Returns the current line indentation.
- *
- * @return int The current line indentation
- */
- private function getCurrentLineIndentation()
- {
- return \strlen($this->currentLine) - \strlen(ltrim($this->currentLine, ' '));
- }
-
- /**
- * Returns the next embed block of YAML.
- *
- * @param int $indentation The indent level at which the block is to be read, or null for default
- * @param bool $inSequence True if the enclosing data structure is a sequence
- *
- * @return string A YAML string
- *
- * @throws ParseException When indentation problem are detected
- */
- private function getNextEmbedBlock($indentation = null, $inSequence = false)
- {
- $oldLineIndentation = $this->getCurrentLineIndentation();
-
- if (!$this->moveToNextLine()) {
- return;
- }
-
- if (null === $indentation) {
- $newIndent = null;
- $movements = 0;
-
- do {
- $EOF = false;
-
- // empty and comment-like lines do not influence the indentation depth
- if ($this->isCurrentLineEmpty() || $this->isCurrentLineComment()) {
- $EOF = !$this->moveToNextLine();
-
- if (!$EOF) {
- ++$movements;
- }
- } else {
- $newIndent = $this->getCurrentLineIndentation();
- }
- } while (!$EOF && null === $newIndent);
-
- for ($i = 0; $i < $movements; ++$i) {
- $this->moveToPreviousLine();
- }
-
- $unindentedEmbedBlock = $this->isStringUnIndentedCollectionItem();
-
- if (!$this->isCurrentLineEmpty() && 0 === $newIndent && !$unindentedEmbedBlock) {
- throw new ParseException('Indentation problem.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
- }
- } else {
- $newIndent = $indentation;
- }
-
- $data = [];
- if ($this->getCurrentLineIndentation() >= $newIndent) {
- $data[] = substr($this->currentLine, $newIndent);
- } elseif ($this->isCurrentLineEmpty() || $this->isCurrentLineComment()) {
- $data[] = $this->currentLine;
- } else {
- $this->moveToPreviousLine();
-
- return;
- }
-
- if ($inSequence && $oldLineIndentation === $newIndent && isset($data[0][0]) && '-' === $data[0][0]) {
- // the previous line contained a dash but no item content, this line is a sequence item with the same indentation
- // and therefore no nested list or mapping
- $this->moveToPreviousLine();
-
- return;
- }
-
- $isItUnindentedCollection = $this->isStringUnIndentedCollectionItem();
-
- while ($this->moveToNextLine()) {
- $indent = $this->getCurrentLineIndentation();
-
- if ($isItUnindentedCollection && !$this->isCurrentLineEmpty() && !$this->isStringUnIndentedCollectionItem() && $newIndent === $indent) {
- $this->moveToPreviousLine();
- break;
- }
-
- if ($this->isCurrentLineBlank()) {
- $data[] = substr($this->currentLine, $newIndent);
- continue;
- }
-
- if ($indent >= $newIndent) {
- $data[] = substr($this->currentLine, $newIndent);
- } elseif ($this->isCurrentLineComment()) {
- $data[] = $this->currentLine;
- } elseif (0 == $indent) {
- $this->moveToPreviousLine();
-
- break;
- } else {
- throw new ParseException('Indentation problem.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
- }
- }
-
- return implode("\n", $data);
- }
-
- /**
- * Moves the parser to the next line.
- *
- * @return bool
- */
- private function moveToNextLine()
- {
- if ($this->currentLineNb >= \count($this->lines) - 1) {
- return false;
- }
-
- $this->currentLine = $this->lines[++$this->currentLineNb];
-
- return true;
- }
-
- /**
- * Moves the parser to the previous line.
- *
- * @return bool
- */
- private function moveToPreviousLine()
- {
- if ($this->currentLineNb < 1) {
- return false;
- }
-
- $this->currentLine = $this->lines[--$this->currentLineNb];
-
- return true;
- }
-
- /**
- * Parses a YAML value.
- *
- * @param string $value A YAML value
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
- * @param string $context The parser context (either sequence or mapping)
- *
- * @return mixed A PHP value
- *
- * @throws ParseException When reference does not exist
- */
- private function parseValue($value, $flags, $context)
- {
- if (0 === strpos($value, '*')) {
- if (false !== $pos = strpos($value, '#')) {
- $value = substr($value, 1, $pos - 2);
- } else {
- $value = substr($value, 1);
- }
-
- if (!\array_key_exists($value, $this->refs)) {
- if (false !== $pos = array_search($value, $this->refsBeingParsed, true)) {
- throw new ParseException(sprintf('Circular reference [%s, %s] detected for reference "%s".', implode(', ', \array_slice($this->refsBeingParsed, $pos)), $value, $value), $this->currentLineNb + 1, $this->currentLine, $this->filename);
- }
-
- throw new ParseException(sprintf('Reference "%s" does not exist.', $value), $this->currentLineNb + 1, $this->currentLine, $this->filename);
- }
-
- return $this->refs[$value];
- }
-
- if (self::preg_match('/^(?:'.self::TAG_PATTERN.' +)?'.self::BLOCK_SCALAR_HEADER_PATTERN.'$/', $value, $matches)) {
- $modifiers = isset($matches['modifiers']) ? $matches['modifiers'] : '';
-
- $data = $this->parseBlockScalar($matches['separator'], preg_replace('#\d+#', '', $modifiers), (int) abs($modifiers));
-
- if ('' !== $matches['tag']) {
- if ('!!binary' === $matches['tag']) {
- return Inline::evaluateBinaryScalar($data);
- } elseif ('tagged' === $matches['tag']) {
- return new TaggedValue(substr($matches['tag'], 1), $data);
- } elseif ('!' !== $matches['tag']) {
- @trigger_error($this->getDeprecationMessage(sprintf('Using the custom tag "%s" for the value "%s" is deprecated since Symfony 3.3. It will be replaced by an instance of %s in 4.0.', $matches['tag'], $data, TaggedValue::class)), E_USER_DEPRECATED);
- }
- }
-
- return $data;
- }
-
- try {
- $quotation = '' !== $value && ('"' === $value[0] || "'" === $value[0]) ? $value[0] : null;
-
- // do not take following lines into account when the current line is a quoted single line value
- if (null !== $quotation && self::preg_match('/^'.$quotation.'.*'.$quotation.'(\s*#.*)?$/', $value)) {
- return Inline::parse($value, $flags, $this->refs);
- }
-
- $lines = [];
-
- while ($this->moveToNextLine()) {
- // unquoted strings end before the first unindented line
- if (null === $quotation && 0 === $this->getCurrentLineIndentation()) {
- $this->moveToPreviousLine();
-
- break;
- }
-
- $lines[] = trim($this->currentLine);
-
- // quoted string values end with a line that is terminated with the quotation character
- if ('' !== $this->currentLine && substr($this->currentLine, -1) === $quotation) {
- break;
- }
- }
-
- for ($i = 0, $linesCount = \count($lines), $previousLineBlank = false; $i < $linesCount; ++$i) {
- if ('' === $lines[$i]) {
- $value .= "\n";
- $previousLineBlank = true;
- } elseif ($previousLineBlank) {
- $value .= $lines[$i];
- $previousLineBlank = false;
- } else {
- $value .= ' '.$lines[$i];
- $previousLineBlank = false;
- }
- }
-
- Inline::$parsedLineNumber = $this->getRealCurrentLineNb();
-
- $parsedValue = Inline::parse($value, $flags, $this->refs);
-
- if ('mapping' === $context && \is_string($parsedValue) && '"' !== $value[0] && "'" !== $value[0] && '[' !== $value[0] && '{' !== $value[0] && '!' !== $value[0] && false !== strpos($parsedValue, ': ')) {
- throw new ParseException('A colon cannot be used in an unquoted mapping value.', $this->getRealCurrentLineNb() + 1, $value, $this->filename);
- }
-
- return $parsedValue;
- } catch (ParseException $e) {
- $e->setParsedLine($this->getRealCurrentLineNb() + 1);
- $e->setSnippet($this->currentLine);
-
- throw $e;
- }
- }
-
- /**
- * Parses a block scalar.
- *
- * @param string $style The style indicator that was used to begin this block scalar (| or >)
- * @param string $chomping The chomping indicator that was used to begin this block scalar (+ or -)
- * @param int $indentation The indentation indicator that was used to begin this block scalar
- *
- * @return string The text value
- */
- private function parseBlockScalar($style, $chomping = '', $indentation = 0)
- {
- $notEOF = $this->moveToNextLine();
- if (!$notEOF) {
- return '';
- }
-
- $isCurrentLineBlank = $this->isCurrentLineBlank();
- $blockLines = [];
-
- // leading blank lines are consumed before determining indentation
- while ($notEOF && $isCurrentLineBlank) {
- // newline only if not EOF
- if ($notEOF = $this->moveToNextLine()) {
- $blockLines[] = '';
- $isCurrentLineBlank = $this->isCurrentLineBlank();
- }
- }
-
- // determine indentation if not specified
- if (0 === $indentation) {
- if (self::preg_match('/^ +/', $this->currentLine, $matches)) {
- $indentation = \strlen($matches[0]);
- }
- }
-
- if ($indentation > 0) {
- $pattern = sprintf('/^ {%d}(.*)$/', $indentation);
-
- while (
- $notEOF && (
- $isCurrentLineBlank ||
- self::preg_match($pattern, $this->currentLine, $matches)
- )
- ) {
- if ($isCurrentLineBlank && \strlen($this->currentLine) > $indentation) {
- $blockLines[] = substr($this->currentLine, $indentation);
- } elseif ($isCurrentLineBlank) {
- $blockLines[] = '';
- } else {
- $blockLines[] = $matches[1];
- }
-
- // newline only if not EOF
- if ($notEOF = $this->moveToNextLine()) {
- $isCurrentLineBlank = $this->isCurrentLineBlank();
- }
- }
- } elseif ($notEOF) {
- $blockLines[] = '';
- }
-
- if ($notEOF) {
- $blockLines[] = '';
- $this->moveToPreviousLine();
- } elseif (!$notEOF && !$this->isCurrentLineLastLineInDocument()) {
- $blockLines[] = '';
- }
-
- // folded style
- if ('>' === $style) {
- $text = '';
- $previousLineIndented = false;
- $previousLineBlank = false;
-
- for ($i = 0, $blockLinesCount = \count($blockLines); $i < $blockLinesCount; ++$i) {
- if ('' === $blockLines[$i]) {
- $text .= "\n";
- $previousLineIndented = false;
- $previousLineBlank = true;
- } elseif (' ' === $blockLines[$i][0]) {
- $text .= "\n".$blockLines[$i];
- $previousLineIndented = true;
- $previousLineBlank = false;
- } elseif ($previousLineIndented) {
- $text .= "\n".$blockLines[$i];
- $previousLineIndented = false;
- $previousLineBlank = false;
- } elseif ($previousLineBlank || 0 === $i) {
- $text .= $blockLines[$i];
- $previousLineIndented = false;
- $previousLineBlank = false;
- } else {
- $text .= ' '.$blockLines[$i];
- $previousLineIndented = false;
- $previousLineBlank = false;
- }
- }
- } else {
- $text = implode("\n", $blockLines);
- }
-
- // deal with trailing newlines
- if ('' === $chomping) {
- $text = preg_replace('/\n+$/', "\n", $text);
- } elseif ('-' === $chomping) {
- $text = preg_replace('/\n+$/', '', $text);
- }
-
- return $text;
- }
-
- /**
- * Returns true if the next line is indented.
- *
- * @return bool Returns true if the next line is indented, false otherwise
- */
- private function isNextLineIndented()
- {
- $currentIndentation = $this->getCurrentLineIndentation();
- $movements = 0;
-
- do {
- $EOF = !$this->moveToNextLine();
-
- if (!$EOF) {
- ++$movements;
- }
- } while (!$EOF && ($this->isCurrentLineEmpty() || $this->isCurrentLineComment()));
-
- if ($EOF) {
- return false;
- }
-
- $ret = $this->getCurrentLineIndentation() > $currentIndentation;
-
- for ($i = 0; $i < $movements; ++$i) {
- $this->moveToPreviousLine();
- }
-
- return $ret;
- }
-
- /**
- * Returns true if the current line is blank or if it is a comment line.
- *
- * @return bool Returns true if the current line is empty or if it is a comment line, false otherwise
- */
- private function isCurrentLineEmpty()
- {
- return $this->isCurrentLineBlank() || $this->isCurrentLineComment();
- }
-
- /**
- * Returns true if the current line is blank.
- *
- * @return bool Returns true if the current line is blank, false otherwise
- */
- private function isCurrentLineBlank()
- {
- return '' == trim($this->currentLine, ' ');
- }
-
- /**
- * Returns true if the current line is a comment line.
- *
- * @return bool Returns true if the current line is a comment line, false otherwise
- */
- private function isCurrentLineComment()
- {
- //checking explicitly the first char of the trim is faster than loops or strpos
- $ltrimmedLine = ltrim($this->currentLine, ' ');
-
- return '' !== $ltrimmedLine && '#' === $ltrimmedLine[0];
- }
-
- private function isCurrentLineLastLineInDocument()
- {
- return ($this->offset + $this->currentLineNb) >= ($this->totalNumberOfLines - 1);
- }
-
- /**
- * Cleanups a YAML string to be parsed.
- *
- * @param string $value The input YAML string
- *
- * @return string A cleaned up YAML string
- */
- private function cleanup($value)
- {
- $value = str_replace(["\r\n", "\r"], "\n", $value);
-
- // strip YAML header
- $count = 0;
- $value = preg_replace('#^\%YAML[: ][\d\.]+.*\n#u', '', $value, -1, $count);
- $this->offset += $count;
-
- // remove leading comments
- $trimmedValue = preg_replace('#^(\#.*?\n)+#s', '', $value, -1, $count);
- if (1 === $count) {
- // items have been removed, update the offset
- $this->offset += substr_count($value, "\n") - substr_count($trimmedValue, "\n");
- $value = $trimmedValue;
- }
-
- // remove start of the document marker (---)
- $trimmedValue = preg_replace('#^\-\-\-.*?\n#s', '', $value, -1, $count);
- if (1 === $count) {
- // items have been removed, update the offset
- $this->offset += substr_count($value, "\n") - substr_count($trimmedValue, "\n");
- $value = $trimmedValue;
-
- // remove end of the document marker (...)
- $value = preg_replace('#\.\.\.\s*$#', '', $value);
- }
-
- return $value;
- }
-
- /**
- * Returns true if the next line starts unindented collection.
- *
- * @return bool Returns true if the next line starts unindented collection, false otherwise
- */
- private function isNextLineUnIndentedCollection()
- {
- $currentIndentation = $this->getCurrentLineIndentation();
- $movements = 0;
-
- do {
- $EOF = !$this->moveToNextLine();
-
- if (!$EOF) {
- ++$movements;
- }
- } while (!$EOF && ($this->isCurrentLineEmpty() || $this->isCurrentLineComment()));
-
- if ($EOF) {
- return false;
- }
-
- $ret = $this->getCurrentLineIndentation() === $currentIndentation && $this->isStringUnIndentedCollectionItem();
-
- for ($i = 0; $i < $movements; ++$i) {
- $this->moveToPreviousLine();
- }
-
- return $ret;
- }
-
- /**
- * Returns true if the string is un-indented collection item.
- *
- * @return bool Returns true if the string is un-indented collection item, false otherwise
- */
- private function isStringUnIndentedCollectionItem()
- {
- return '-' === rtrim($this->currentLine) || 0 === strpos($this->currentLine, '- ');
- }
-
- /**
- * A local wrapper for `preg_match` which will throw a ParseException if there
- * is an internal error in the PCRE engine.
- *
- * This avoids us needing to check for "false" every time PCRE is used
- * in the YAML engine
- *
- * @throws ParseException on a PCRE internal error
- *
- * @see preg_last_error()
- *
- * @internal
- */
- public static function preg_match($pattern, $subject, &$matches = null, $flags = 0, $offset = 0)
- {
- if (false === $ret = preg_match($pattern, $subject, $matches, $flags, $offset)) {
- switch (preg_last_error()) {
- case PREG_INTERNAL_ERROR:
- $error = 'Internal PCRE error.';
- break;
- case PREG_BACKTRACK_LIMIT_ERROR:
- $error = 'pcre.backtrack_limit reached.';
- break;
- case PREG_RECURSION_LIMIT_ERROR:
- $error = 'pcre.recursion_limit reached.';
- break;
- case PREG_BAD_UTF8_ERROR:
- $error = 'Malformed UTF-8 data.';
- break;
- case PREG_BAD_UTF8_OFFSET_ERROR:
- $error = 'Offset doesn\'t correspond to the begin of a valid UTF-8 code point.';
- break;
- default:
- $error = 'Error.';
- }
-
- throw new ParseException($error);
- }
-
- return $ret;
- }
-
- /**
- * Trim the tag on top of the value.
- *
- * Prevent values such as `!foo {quz: bar}` to be considered as
- * a mapping block.
- */
- private function trimTag($value)
- {
- if ('!' === $value[0]) {
- return ltrim(substr($value, 1, strcspn($value, " \r\n", 1)), ' ');
- }
-
- return $value;
- }
-
- private function getLineTag($value, $flags, $nextLineCheck = true)
- {
- if ('' === $value || '!' !== $value[0] || 1 !== self::preg_match('/^'.self::TAG_PATTERN.' *( +#.*)?$/', $value, $matches)) {
- return;
- }
-
- if ($nextLineCheck && !$this->isNextLineIndented()) {
- return;
- }
-
- $tag = substr($matches['tag'], 1);
-
- // Built-in tags
- if ($tag && '!' === $tag[0]) {
- throw new ParseException(sprintf('The built-in tag "!%s" is not implemented.', $tag), $this->getRealCurrentLineNb() + 1, $value, $this->filename);
- }
-
- if (Yaml::PARSE_CUSTOM_TAGS & $flags) {
- return $tag;
- }
-
- throw new ParseException(sprintf('Tags support is not enabled. You must use the flag `Yaml::PARSE_CUSTOM_TAGS` to use "%s".', $matches['tag']), $this->getRealCurrentLineNb() + 1, $value, $this->filename);
- }
-
- private function getDeprecationMessage($message)
- {
- $message = rtrim($message, '.');
-
- if (null !== $this->filename) {
- $message .= ' in '.$this->filename;
- }
-
- $message .= ' on line '.($this->getRealCurrentLineNb() + 1);
-
- return $message.'.';
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/README.md b/www/wiki/vendor/symfony/yaml/README.md
deleted file mode 100644
index 0d324881..00000000
--- a/www/wiki/vendor/symfony/yaml/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-Yaml Component
-==============
-
-The Yaml component loads and dumps YAML files.
-
-Resources
----------
-
- * [Documentation](https://symfony.com/doc/current/components/yaml/index.html)
- * [Contributing](https://symfony.com/doc/current/contributing/index.html)
- * [Report issues](https://github.com/symfony/symfony/issues) and
- [send Pull Requests](https://github.com/symfony/symfony/pulls)
- in the [main Symfony repository](https://github.com/symfony/symfony)
diff --git a/www/wiki/vendor/symfony/yaml/Tag/TaggedValue.php b/www/wiki/vendor/symfony/yaml/Tag/TaggedValue.php
deleted file mode 100644
index 000c1d99..00000000
--- a/www/wiki/vendor/symfony/yaml/Tag/TaggedValue.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Tag;
-
-/**
- * @author Nicolas Grekas <p@tchwork.com>
- * @author Guilhem N. <egetick@gmail.com>
- */
-final class TaggedValue
-{
- private $tag;
- private $value;
-
- /**
- * @param string $tag
- * @param mixed $value
- */
- public function __construct($tag, $value)
- {
- $this->tag = $tag;
- $this->value = $value;
- }
-
- /**
- * @return string
- */
- public function getTag()
- {
- return $this->tag;
- }
-
- /**
- * @return mixed
- */
- public function getValue()
- {
- return $this->value;
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Command/LintCommandTest.php b/www/wiki/vendor/symfony/yaml/Tests/Command/LintCommandTest.php
deleted file mode 100644
index 2bf0286b..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Command/LintCommandTest.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Tests\Command;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Tester\CommandTester;
-use Symfony\Component\Yaml\Command\LintCommand;
-
-/**
- * Tests the YamlLintCommand.
- *
- * @author Robin Chalas <robin.chalas@gmail.com>
- */
-class LintCommandTest extends TestCase
-{
- private $files;
-
- public function testLintCorrectFile()
- {
- $tester = $this->createCommandTester();
- $filename = $this->createFile('foo: bar');
-
- $ret = $tester->execute(['filename' => $filename], ['verbosity' => OutputInterface::VERBOSITY_VERBOSE, 'decorated' => false]);
-
- $this->assertEquals(0, $ret, 'Returns 0 in case of success');
- $this->assertRegExp('/^\/\/ OK in /', trim($tester->getDisplay()));
- }
-
- public function testLintIncorrectFile()
- {
- $incorrectContent = '
-foo:
-bar';
- $tester = $this->createCommandTester();
- $filename = $this->createFile($incorrectContent);
-
- $ret = $tester->execute(['filename' => $filename], ['decorated' => false]);
-
- $this->assertEquals(1, $ret, 'Returns 1 in case of error');
- $this->assertContains('Unable to parse at line 3 (near "bar").', trim($tester->getDisplay()));
- }
-
- public function testConstantAsKey()
- {
- $yaml = <<<YAML
-!php/const 'Symfony\Component\Yaml\Tests\Command\Foo::TEST': bar
-YAML;
- $ret = $this->createCommandTester()->execute(['filename' => $this->createFile($yaml)], ['verbosity' => OutputInterface::VERBOSITY_VERBOSE, 'decorated' => false]);
- $this->assertSame(0, $ret, 'lint:yaml exits with code 0 in case of success');
- }
-
- public function testCustomTags()
- {
- $yaml = <<<YAML
-foo: !my_tag {foo: bar}
-YAML;
- $ret = $this->createCommandTester()->execute(['filename' => $this->createFile($yaml), '--parse-tags' => true], ['verbosity' => OutputInterface::VERBOSITY_VERBOSE, 'decorated' => false]);
- $this->assertSame(0, $ret, 'lint:yaml exits with code 0 in case of success');
- }
-
- public function testCustomTagsError()
- {
- $yaml = <<<YAML
-foo: !my_tag {foo: bar}
-YAML;
- $ret = $this->createCommandTester()->execute(['filename' => $this->createFile($yaml)], ['verbosity' => OutputInterface::VERBOSITY_VERBOSE, 'decorated' => false]);
- $this->assertSame(1, $ret, 'lint:yaml exits with code 1 in case of error');
- }
-
- /**
- * @expectedException \RuntimeException
- */
- public function testLintFileNotReadable()
- {
- $tester = $this->createCommandTester();
- $filename = $this->createFile('');
- unlink($filename);
-
- $ret = $tester->execute(['filename' => $filename], ['decorated' => false]);
- }
-
- /**
- * @return string Path to the new file
- */
- private function createFile($content)
- {
- $filename = tempnam(sys_get_temp_dir().'/framework-yml-lint-test', 'sf-');
- file_put_contents($filename, $content);
-
- $this->files[] = $filename;
-
- return $filename;
- }
-
- /**
- * @return CommandTester
- */
- protected function createCommandTester()
- {
- $application = new Application();
- $application->add(new LintCommand());
- $command = $application->find('lint:yaml');
-
- return new CommandTester($command);
- }
-
- protected function setUp()
- {
- $this->files = [];
- @mkdir(sys_get_temp_dir().'/framework-yml-lint-test');
- }
-
- protected function tearDown()
- {
- foreach ($this->files as $file) {
- if (file_exists($file)) {
- unlink($file);
- }
- }
-
- rmdir(sys_get_temp_dir().'/framework-yml-lint-test');
- }
-}
-
-class Foo
-{
- const TEST = 'foo';
-}
diff --git a/www/wiki/vendor/symfony/yaml/Tests/DumperTest.php b/www/wiki/vendor/symfony/yaml/Tests/DumperTest.php
deleted file mode 100644
index e7a763ab..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/DumperTest.php
+++ /dev/null
@@ -1,495 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Yaml\Dumper;
-use Symfony\Component\Yaml\Parser;
-use Symfony\Component\Yaml\Yaml;
-
-class DumperTest extends TestCase
-{
- protected $parser;
- protected $dumper;
- protected $path;
-
- protected $array = [
- '' => 'bar',
- 'foo' => '#bar',
- 'foo\'bar' => [],
- 'bar' => [1, 'foo'],
- 'foobar' => [
- 'foo' => 'bar',
- 'bar' => [1, 'foo'],
- 'foobar' => [
- 'foo' => 'bar',
- 'bar' => [1, 'foo'],
- ],
- ],
- ];
-
- protected function setUp()
- {
- $this->parser = new Parser();
- $this->dumper = new Dumper();
- $this->path = __DIR__.'/Fixtures';
- }
-
- protected function tearDown()
- {
- $this->parser = null;
- $this->dumper = null;
- $this->path = null;
- $this->array = null;
- }
-
- public function testIndentationInConstructor()
- {
- $dumper = new Dumper(7);
- $expected = <<<'EOF'
-'': bar
-foo: '#bar'
-'foo''bar': { }
-bar:
- - 1
- - foo
-foobar:
- foo: bar
- bar:
- - 1
- - foo
- foobar:
- foo: bar
- bar:
- - 1
- - foo
-
-EOF;
- $this->assertEquals($expected, $dumper->dump($this->array, 4, 0));
- }
-
- /**
- * @group legacy
- */
- public function testSetIndentation()
- {
- $this->dumper->setIndentation(7);
-
- $expected = <<<'EOF'
-'': bar
-foo: '#bar'
-'foo''bar': { }
-bar:
- - 1
- - foo
-foobar:
- foo: bar
- bar:
- - 1
- - foo
- foobar:
- foo: bar
- bar:
- - 1
- - foo
-
-EOF;
- $this->assertEquals($expected, $this->dumper->dump($this->array, 4, 0));
- }
-
- public function testSpecifications()
- {
- $files = $this->parser->parse(file_get_contents($this->path.'/index.yml'));
- foreach ($files as $file) {
- $yamls = file_get_contents($this->path.'/'.$file.'.yml');
-
- // split YAMLs documents
- foreach (preg_split('/^---( %YAML\:1\.0)?/m', $yamls) as $yaml) {
- if (!$yaml) {
- continue;
- }
-
- $test = $this->parser->parse($yaml);
- if (isset($test['dump_skip']) && $test['dump_skip']) {
- continue;
- } elseif (isset($test['todo']) && $test['todo']) {
- // TODO
- } else {
- eval('$expected = '.trim($test['php']).';');
- $this->assertSame($expected, $this->parser->parse($this->dumper->dump($expected, 10)), $test['test']);
- }
- }
- }
- }
-
- public function testInlineLevel()
- {
- $expected = <<<'EOF'
-{ '': bar, foo: '#bar', 'foo''bar': { }, bar: [1, foo], foobar: { foo: bar, bar: [1, foo], foobar: { foo: bar, bar: [1, foo] } } }
-EOF;
- $this->assertEquals($expected, $this->dumper->dump($this->array, -10), '->dump() takes an inline level argument');
- $this->assertEquals($expected, $this->dumper->dump($this->array, 0), '->dump() takes an inline level argument');
-
- $expected = <<<'EOF'
-'': bar
-foo: '#bar'
-'foo''bar': { }
-bar: [1, foo]
-foobar: { foo: bar, bar: [1, foo], foobar: { foo: bar, bar: [1, foo] } }
-
-EOF;
- $this->assertEquals($expected, $this->dumper->dump($this->array, 1), '->dump() takes an inline level argument');
-
- $expected = <<<'EOF'
-'': bar
-foo: '#bar'
-'foo''bar': { }
-bar:
- - 1
- - foo
-foobar:
- foo: bar
- bar: [1, foo]
- foobar: { foo: bar, bar: [1, foo] }
-
-EOF;
- $this->assertEquals($expected, $this->dumper->dump($this->array, 2), '->dump() takes an inline level argument');
-
- $expected = <<<'EOF'
-'': bar
-foo: '#bar'
-'foo''bar': { }
-bar:
- - 1
- - foo
-foobar:
- foo: bar
- bar:
- - 1
- - foo
- foobar:
- foo: bar
- bar: [1, foo]
-
-EOF;
- $this->assertEquals($expected, $this->dumper->dump($this->array, 3), '->dump() takes an inline level argument');
-
- $expected = <<<'EOF'
-'': bar
-foo: '#bar'
-'foo''bar': { }
-bar:
- - 1
- - foo
-foobar:
- foo: bar
- bar:
- - 1
- - foo
- foobar:
- foo: bar
- bar:
- - 1
- - foo
-
-EOF;
- $this->assertEquals($expected, $this->dumper->dump($this->array, 4), '->dump() takes an inline level argument');
- $this->assertEquals($expected, $this->dumper->dump($this->array, 10), '->dump() takes an inline level argument');
- }
-
- public function testObjectSupportEnabled()
- {
- $dump = $this->dumper->dump(['foo' => new A(), 'bar' => 1], 0, 0, Yaml::DUMP_OBJECT);
-
- $this->assertEquals('{ foo: !php/object \'O:30:"Symfony\Component\Yaml\Tests\A":1:{s:1:"a";s:3:"foo";}\', bar: 1 }', $dump, '->dump() is able to dump objects');
- }
-
- /**
- * @group legacy
- */
- public function testObjectSupportEnabledPassingTrue()
- {
- $dump = $this->dumper->dump(['foo' => new A(), 'bar' => 1], 0, 0, false, true);
-
- $this->assertEquals('{ foo: !php/object \'O:30:"Symfony\Component\Yaml\Tests\A":1:{s:1:"a";s:3:"foo";}\', bar: 1 }', $dump, '->dump() is able to dump objects');
- }
-
- public function testObjectSupportDisabledButNoExceptions()
- {
- $dump = $this->dumper->dump(['foo' => new A(), 'bar' => 1]);
-
- $this->assertEquals('{ foo: null, bar: 1 }', $dump, '->dump() does not dump objects when disabled');
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\DumpException
- */
- public function testObjectSupportDisabledWithExceptions()
- {
- $this->dumper->dump(['foo' => new A(), 'bar' => 1], 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE);
- }
-
- /**
- * @group legacy
- * @expectedException \Symfony\Component\Yaml\Exception\DumpException
- */
- public function testObjectSupportDisabledWithExceptionsPassingTrue()
- {
- $this->dumper->dump(['foo' => new A(), 'bar' => 1], 0, 0, true);
- }
-
- public function testEmptyArray()
- {
- $dump = $this->dumper->dump([]);
- $this->assertEquals('{ }', $dump);
-
- $dump = $this->dumper->dump([], 0, 0, Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE);
- $this->assertEquals('[]', $dump);
-
- $dump = $this->dumper->dump([], 9, 0, Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE);
- $this->assertEquals('[]', $dump);
-
- $dump = $this->dumper->dump(new \ArrayObject(), 0, 0, Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE | Yaml::DUMP_OBJECT_AS_MAP);
- $this->assertEquals('{ }', $dump);
-
- $dump = $this->dumper->dump(new \stdClass(), 0, 0, Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE | Yaml::DUMP_OBJECT_AS_MAP);
- $this->assertEquals('{ }', $dump);
- }
-
- /**
- * @dataProvider getEscapeSequences
- */
- public function testEscapedEscapeSequencesInQuotedScalar($input, $expected)
- {
- $this->assertEquals($expected, $this->dumper->dump($input));
- }
-
- public function getEscapeSequences()
- {
- return [
- 'empty string' => ['', "''"],
- 'null' => ["\x0", '"\\0"'],
- 'bell' => ["\x7", '"\\a"'],
- 'backspace' => ["\x8", '"\\b"'],
- 'horizontal-tab' => ["\t", '"\\t"'],
- 'line-feed' => ["\n", '"\\n"'],
- 'vertical-tab' => ["\v", '"\\v"'],
- 'form-feed' => ["\xC", '"\\f"'],
- 'carriage-return' => ["\r", '"\\r"'],
- 'escape' => ["\x1B", '"\\e"'],
- 'space' => [' ', "' '"],
- 'double-quote' => ['"', "'\"'"],
- 'slash' => ['/', '/'],
- 'backslash' => ['\\', '\\'],
- 'next-line' => ["\xC2\x85", '"\\N"'],
- 'non-breaking-space' => ["\xc2\xa0", '"\\_"'],
- 'line-separator' => ["\xE2\x80\xA8", '"\\L"'],
- 'paragraph-separator' => ["\xE2\x80\xA9", '"\\P"'],
- 'colon' => [':', "':'"],
- ];
- }
-
- public function testBinaryDataIsDumpedBase64Encoded()
- {
- $binaryData = file_get_contents(__DIR__.'/Fixtures/arrow.gif');
- $expected = '{ data: !!binary '.base64_encode($binaryData).' }';
-
- $this->assertSame($expected, $this->dumper->dump(['data' => $binaryData]));
- }
-
- public function testNonUtf8DataIsDumpedBase64Encoded()
- {
- // "für" (ISO-8859-1 encoded)
- $this->assertSame('!!binary ZsM/cg==', $this->dumper->dump("f\xc3\x3fr"));
- }
-
- /**
- * @dataProvider objectAsMapProvider
- */
- public function testDumpObjectAsMap($object, $expected)
- {
- $yaml = $this->dumper->dump($object, 0, 0, Yaml::DUMP_OBJECT_AS_MAP);
-
- $this->assertEquals($expected, Yaml::parse($yaml, Yaml::PARSE_OBJECT_FOR_MAP));
- }
-
- public function objectAsMapProvider()
- {
- $tests = [];
-
- $bar = new \stdClass();
- $bar->class = 'classBar';
- $bar->args = ['bar'];
- $zar = new \stdClass();
- $foo = new \stdClass();
- $foo->bar = $bar;
- $foo->zar = $zar;
- $object = new \stdClass();
- $object->foo = $foo;
- $tests['stdClass'] = [$object, $object];
-
- $arrayObject = new \ArrayObject();
- $arrayObject['foo'] = 'bar';
- $arrayObject['baz'] = 'foobar';
- $parsedArrayObject = new \stdClass();
- $parsedArrayObject->foo = 'bar';
- $parsedArrayObject->baz = 'foobar';
- $tests['ArrayObject'] = [$arrayObject, $parsedArrayObject];
-
- $a = new A();
- $tests['arbitrary-object'] = [$a, null];
-
- return $tests;
- }
-
- public function testDumpingArrayObjectInstancesRespectsInlineLevel()
- {
- $deep = new \ArrayObject(['deep1' => 'd', 'deep2' => 'e']);
- $inner = new \ArrayObject(['inner1' => 'b', 'inner2' => 'c', 'inner3' => $deep]);
- $outer = new \ArrayObject(['outer1' => 'a', 'outer2' => $inner]);
-
- $yaml = $this->dumper->dump($outer, 2, 0, Yaml::DUMP_OBJECT_AS_MAP);
-
- $expected = <<<YAML
-outer1: a
-outer2:
- inner1: b
- inner2: c
- inner3: { deep1: d, deep2: e }
-
-YAML;
- $this->assertSame($expected, $yaml);
- }
-
- public function testDumpingArrayObjectInstancesWithNumericKeysInlined()
- {
- $deep = new \ArrayObject(['d', 'e']);
- $inner = new \ArrayObject(['b', 'c', $deep]);
- $outer = new \ArrayObject(['a', $inner]);
-
- $yaml = $this->dumper->dump($outer, 0, 0, Yaml::DUMP_OBJECT_AS_MAP);
- $expected = <<<YAML
-{ 0: a, 1: { 0: b, 1: c, 2: { 0: d, 1: e } } }
-YAML;
- $this->assertSame($expected, $yaml);
- }
-
- public function testDumpingArrayObjectInstancesWithNumericKeysRespectsInlineLevel()
- {
- $deep = new \ArrayObject(['d', 'e']);
- $inner = new \ArrayObject(['b', 'c', $deep]);
- $outer = new \ArrayObject(['a', $inner]);
- $yaml = $this->dumper->dump($outer, 2, 0, Yaml::DUMP_OBJECT_AS_MAP);
- $expected = <<<YAML
-0: a
-1:
- 0: b
- 1: c
- 2: { 0: d, 1: e }
-
-YAML;
- $this->assertEquals($expected, $yaml);
- }
-
- public function testDumpEmptyArrayObjectInstanceAsMap()
- {
- $this->assertSame('{ }', $this->dumper->dump(new \ArrayObject(), 2, 0, Yaml::DUMP_OBJECT_AS_MAP));
- }
-
- public function testDumpEmptyStdClassInstanceAsMap()
- {
- $this->assertSame('{ }', $this->dumper->dump(new \stdClass(), 2, 0, Yaml::DUMP_OBJECT_AS_MAP));
- }
-
- public function testDumpingStdClassInstancesRespectsInlineLevel()
- {
- $deep = new \stdClass();
- $deep->deep1 = 'd';
- $deep->deep2 = 'e';
-
- $inner = new \stdClass();
- $inner->inner1 = 'b';
- $inner->inner2 = 'c';
- $inner->inner3 = $deep;
-
- $outer = new \stdClass();
- $outer->outer1 = 'a';
- $outer->outer2 = $inner;
-
- $yaml = $this->dumper->dump($outer, 2, 0, Yaml::DUMP_OBJECT_AS_MAP);
-
- $expected = <<<YAML
-outer1: a
-outer2:
- inner1: b
- inner2: c
- inner3: { deep1: d, deep2: e }
-
-YAML;
- $this->assertSame($expected, $yaml);
- }
-
- public function testDumpMultiLineStringAsScalarBlock()
- {
- $data = [
- 'data' => [
- 'single_line' => 'foo bar baz',
- 'multi_line' => "foo\nline with trailing spaces:\n \nbar\ninteger like line:\n123456789\nempty line:\n\nbaz",
- 'multi_line_with_carriage_return' => "foo\nbar\r\nbaz",
- 'nested_inlined_multi_line_string' => [
- 'inlined_multi_line' => "foo\nbar\r\nempty line:\n\nbaz",
- ],
- ],
- ];
-
- $this->assertSame(file_get_contents(__DIR__.'/Fixtures/multiple_lines_as_literal_block.yml'), $this->dumper->dump($data, 2, 0, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK));
- }
-
- public function testDumpMultiLineStringAsScalarBlockWhenFirstLineHasLeadingSpace()
- {
- $data = [
- 'data' => [
- 'multi_line' => " the first line has leading spaces\nThe second line does not.",
- ],
- ];
-
- $this->assertSame(file_get_contents(__DIR__.'/Fixtures/multiple_lines_as_literal_block_leading_space_in_first_line.yml'), $this->dumper->dump($data, 2, 0, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK));
- }
-
- public function testCarriageReturnIsMaintainedWhenDumpingAsMultiLineLiteralBlock()
- {
- $this->assertSame("- \"a\\r\\nb\\nc\"\n", $this->dumper->dump(["a\r\nb\nc"], 2, 0, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK));
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The indentation must be greater than zero
- */
- public function testZeroIndentationThrowsException()
- {
- new Dumper(0);
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The indentation must be greater than zero
- */
- public function testNegativeIndentationThrowsException()
- {
- new Dumper(-4);
- }
-}
-
-class A
-{
- public $a = 'foo';
-}
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsAnchorAlias.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsAnchorAlias.yml
deleted file mode 100644
index 81b4129a..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsAnchorAlias.yml
+++ /dev/null
@@ -1,31 +0,0 @@
---- %YAML:1.0
-test: Simple Alias Example
-brief: >
- If you need to refer to the same item of data twice,
- you can give that item an alias. The alias is a plain
- string, starting with an ampersand. The item may then
- be referred to by the alias throughout your document
- by using an asterisk before the name of the alias.
- This is called an anchor.
-yaml: |
- - &showell Steve
- - Clark
- - Brian
- - Oren
- - *showell
-php: |
- ['Steve', 'Clark', 'Brian', 'Oren', 'Steve']
-
----
-test: Alias of a Mapping
-brief: >
- An alias can be used on any item of data, including
- sequences, mappings, and other complex data types.
-yaml: |
- - &hello
- Meat: pork
- Starch: potato
- - banana
- - *hello
-php: |
- [['Meat'=>'pork', 'Starch'=>'potato'], 'banana', ['Meat'=>'pork', 'Starch'=>'potato']]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsBasicTests.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsBasicTests.yml
deleted file mode 100644
index 1a08d8ea..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsBasicTests.yml
+++ /dev/null
@@ -1,202 +0,0 @@
---- %YAML:1.0
-test: Simple Sequence
-brief: |
- You can specify a list in YAML by placing each
- member of the list on a new line with an opening
- dash. These lists are called sequences.
-yaml: |
- - apple
- - banana
- - carrot
-php: |
- ['apple', 'banana', 'carrot']
----
-test: Sequence With Item Being Null In The Middle
-brief: |
- You can specify a list in YAML by placing each
- member of the list on a new line with an opening
- dash. These lists are called sequences.
-yaml: |
- - apple
- -
- - carrot
-php: |
- ['apple', null, 'carrot']
----
-test: Sequence With Last Item Being Null
-brief: |
- You can specify a list in YAML by placing each
- member of the list on a new line with an opening
- dash. These lists are called sequences.
-yaml: |
- - apple
- - banana
- -
-php: |
- ['apple', 'banana', null]
----
-test: Nested Sequences
-brief: |
- You can include a sequence within another
- sequence by giving the sequence an empty
- dash, followed by an indented list.
-yaml: |
- -
- - foo
- - bar
- - baz
-php: |
- [['foo', 'bar', 'baz']]
----
-test: Mixed Sequences
-brief: |
- Sequences can contain any YAML data,
- including strings and other sequences.
-yaml: |
- - apple
- -
- - foo
- - bar
- - x123
- - banana
- - carrot
-php: |
- ['apple', ['foo', 'bar', 'x123'], 'banana', 'carrot']
----
-test: Deeply Nested Sequences
-brief: |
- Sequences can be nested even deeper, with each
- level of indentation representing a level of
- depth.
-yaml: |
- -
- -
- - uno
- - dos
-php: |
- [[['uno', 'dos']]]
----
-test: Simple Mapping
-brief: |
- You can add a keyed list (also known as a dictionary or
- hash) to your document by placing each member of the
- list on a new line, with a colon separating the key
- from its value. In YAML, this type of list is called
- a mapping.
-yaml: |
- foo: whatever
- bar: stuff
-php: |
- ['foo' => 'whatever', 'bar' => 'stuff']
----
-test: Sequence in a Mapping
-brief: |
- A value in a mapping can be a sequence.
-yaml: |
- foo: whatever
- bar:
- - uno
- - dos
-php: |
- ['foo' => 'whatever', 'bar' => ['uno', 'dos']]
----
-test: Nested Mappings
-brief: |
- A value in a mapping can be another mapping.
-yaml: |
- foo: whatever
- bar:
- fruit: apple
- name: steve
- sport: baseball
-php: |
- [
- 'foo' => 'whatever',
- 'bar' => [
- 'fruit' => 'apple',
- 'name' => 'steve',
- 'sport' => 'baseball'
- ]
- ]
----
-test: Mixed Mapping
-brief: |
- A mapping can contain any assortment
- of mappings and sequences as values.
-yaml: |
- foo: whatever
- bar:
- -
- fruit: apple
- name: steve
- sport: baseball
- - more
- -
- python: rocks
- perl: papers
- ruby: scissorses
-php: |
- [
- 'foo' => 'whatever',
- 'bar' => [
- [
- 'fruit' => 'apple',
- 'name' => 'steve',
- 'sport' => 'baseball'
- ],
- 'more',
- [
- 'python' => 'rocks',
- 'perl' => 'papers',
- 'ruby' => 'scissorses'
- ]
- ]
- ]
----
-test: Mapping-in-Sequence Shortcut
-todo: true
-brief: |
- If you are adding a mapping to a sequence, you
- can place the mapping on the same line as the
- dash as a shortcut.
-yaml: |
- - work on YAML.py:
- - work on Store
-php: |
- [['work on YAML.py' => ['work on Store']]]
----
-test: Sequence-in-Mapping Shortcut
-todo: true
-brief: |
- The dash in a sequence counts as indentation, so
- you can add a sequence inside of a mapping without
- needing spaces as indentation.
-yaml: |
- allow:
- - 'localhost'
- - '%.sourceforge.net'
- - '%.freepan.org'
-php: |
- ['allow' => ['localhost', '%.sourceforge.net', '%.freepan.org']]
----
-todo: true
-test: Merge key
-brief: |
- A merge key ('<<') can be used in a mapping to insert other mappings. If
- the value associated with the merge key is a mapping, each of its key/value
- pairs is inserted into the current mapping.
-yaml: |
- mapping:
- name: Joe
- job: Accountant
- <<:
- age: 38
-php: |
- [
- 'mapping' =>
- [
- 'name' => 'Joe',
- 'job' => 'Accountant',
- 'age' => 38
- ]
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsBlockMapping.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsBlockMapping.yml
deleted file mode 100644
index 1f3a2e54..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsBlockMapping.yml
+++ /dev/null
@@ -1,51 +0,0 @@
----
-test: One Element Mapping
-brief: |
- A mapping with one key/value pair
-yaml: |
- foo: bar
-php: |
- ['foo' => 'bar']
----
-test: Multi Element Mapping
-brief: |
- More than one key/value pair
-yaml: |
- red: baron
- white: walls
- blue: berries
-php: |
- [
- 'red' => 'baron',
- 'white' => 'walls',
- 'blue' => 'berries',
- ]
----
-test: Values aligned
-brief: |
- Often times human editors of documents will align the values even
- though YAML emitters generally don't.
-yaml: |
- red: baron
- white: walls
- blue: berries
-php: |
- [
- 'red' => 'baron',
- 'white' => 'walls',
- 'blue' => 'berries',
- ]
----
-test: Colons aligned
-brief: |
- Spaces can come before the ': ' key/value separator.
-yaml: |
- red : baron
- white : walls
- blue : berries
-php: |
- [
- 'red' => 'baron',
- 'white' => 'walls',
- 'blue' => 'berries',
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsDocumentSeparator.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsDocumentSeparator.yml
deleted file mode 100644
index 67cb47ad..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsDocumentSeparator.yml
+++ /dev/null
@@ -1,85 +0,0 @@
---- %YAML:1.0
-test: Trailing Document Separator
-todo: true
-brief: >
- You can separate YAML documents
- with a string of three dashes.
-yaml: |
- - foo: 1
- bar: 2
- ---
- more: stuff
-python: |
- [
- [ { 'foo': 1, 'bar': 2 } ],
- { 'more': 'stuff' }
- ]
-ruby: |
- [ { 'foo' => 1, 'bar' => 2 } ]
-
----
-test: Leading Document Separator
-todo: true
-brief: >
- You can explicitly give an opening
- document separator to your YAML stream.
-yaml: |
- ---
- - foo: 1
- bar: 2
- ---
- more: stuff
-python: |
- [
- [ {'foo': 1, 'bar': 2}],
- {'more': 'stuff'}
- ]
-ruby: |
- [ { 'foo' => 1, 'bar' => 2 } ]
-
----
-test: YAML Header
-todo: true
-brief: >
- The opening separator can contain directives
- to the YAML parser, such as the version
- number.
-yaml: |
- --- %YAML:1.0
- foo: 1
- bar: 2
-php: |
- ['foo' => 1, 'bar' => 2]
-documents: 1
-
----
-test: Red Herring Document Separator
-brief: >
- Separators included in blocks or strings
- are treated as blocks or strings, as the
- document separator should have no indentation
- preceding it.
-yaml: |
- foo: |
- ---
-php: |
- ['foo' => "---\n"]
-
----
-test: Multiple Document Separators in Block
-brief: >
- This technique allows you to embed other YAML
- documents within literal blocks.
-yaml: |
- foo: |
- ---
- foo: bar
- ---
- yo: baz
- bar: |
- fooness
-php: |
- [
- 'foo' => "---\nfoo: bar\n---\nyo: baz\n",
- 'bar' => "fooness\n"
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsErrorTests.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsErrorTests.yml
deleted file mode 100644
index e8697f93..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsErrorTests.yml
+++ /dev/null
@@ -1,25 +0,0 @@
----
-test: Missing value for hash item
-todo: true
-brief: |
- Third item in this hash doesn't have a value
-yaml: |
- okay: value
- also okay: ~
- causes error because no value specified
- last key: value okay here too
-python-error: causes error because no value specified
-
----
-test: Not indenting enough
-brief: |
- There was a bug in PyYaml where it was off by one
- in the indentation check. It was allowing the YAML
- below.
-# This is actually valid YAML now. Someone should tell showell.
-yaml: |
- foo:
- firstline: 1
- secondline: 2
-php: |
- ['foo' => null, 'firstline' => 1, 'secondline' => 2]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsFlowCollections.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsFlowCollections.yml
deleted file mode 100644
index cc562cd9..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsFlowCollections.yml
+++ /dev/null
@@ -1,60 +0,0 @@
----
-test: Simple Inline Array
-brief: >
- Sequences can be contained on a
- single line, using the inline syntax.
- Separate each entry with commas and
- enclose in square brackets.
-yaml: |
- seq: [ a, b, c ]
-php: |
- ['seq' => ['a', 'b', 'c']]
----
-test: Simple Inline Hash
-brief: >
- Mapping can also be contained on
- a single line, using the inline
- syntax. Each key-value pair is
- separated by a colon, with a comma
- between each entry in the mapping.
- Enclose with curly braces.
-yaml: |
- hash: { name: Steve, foo: bar }
-php: |
- ['hash' => ['name' => 'Steve', 'foo' => 'bar']]
----
-test: Multi-line Inline Collections
-todo: true
-brief: >
- Both inline sequences and inline mappings
- can span multiple lines, provided that you
- indent the additional lines.
-yaml: |
- languages: [ Ruby,
- Perl,
- Python ]
- websites: { YAML: yaml.org,
- Ruby: ruby-lang.org,
- Python: python.org,
- Perl: use.perl.org }
-php: |
- [
- 'languages' => ['Ruby', 'Perl', 'Python'],
- 'websites' => [
- 'YAML' => 'yaml.org',
- 'Ruby' => 'ruby-lang.org',
- 'Python' => 'python.org',
- 'Perl' => 'use.perl.org'
- ]
- ]
----
-test: Commas in Values (not in the spec!)
-todo: true
-brief: >
- List items in collections are delimited by commas, but
- there must be a space after each comma. This allows you
- to add numbers without quoting.
-yaml: |
- attendances: [ 45,123, 70,000, 17,222 ]
-php: |
- ['attendances' => [45123, 70000, 17222]]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsFoldedScalars.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsFoldedScalars.yml
deleted file mode 100644
index 2895202a..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsFoldedScalars.yml
+++ /dev/null
@@ -1,176 +0,0 @@
---- %YAML:1.0
-test: Single ending newline
-brief: >
- A pipe character, followed by an indented
- block of text is treated as a literal
- block, in which newlines are preserved
- throughout the block, including the final
- newline.
-yaml: |
- ---
- this: |
- Foo
- Bar
-php: |
- ['this' => "Foo\nBar\n"]
----
-test: The '+' indicator
-brief: >
- The '+' indicator says to keep newlines at the end of text
- blocks.
-yaml: |
- normal: |
- extra new lines not kept
-
- preserving: |+
- extra new lines are kept
-
-
- dummy: value
-php: |
- [
- 'normal' => "extra new lines not kept\n",
- 'preserving' => "extra new lines are kept\n\n\n",
- 'dummy' => 'value'
- ]
----
-test: Three trailing newlines in literals
-brief: >
- To give you more control over how space
- is preserved in text blocks, YAML has
- the keep '+' and chomp '-' indicators.
- The keep indicator will preserve all
- ending newlines, while the chomp indicator
- will strip all ending newlines.
-yaml: |
- clipped: |
- This has one newline.
-
-
-
- same as "clipped" above: "This has one newline.\n"
-
- stripped: |-
- This has no newline.
-
-
-
- same as "stripped" above: "This has no newline."
-
- kept: |+
- This has four newlines.
-
-
-
- same as "kept" above: "This has four newlines.\n\n\n\n"
-php: |
- [
- 'clipped' => "This has one newline.\n",
- 'same as "clipped" above' => "This has one newline.\n",
- 'stripped' => 'This has no newline.',
- 'same as "stripped" above' => 'This has no newline.',
- 'kept' => "This has four newlines.\n\n\n\n",
- 'same as "kept" above' => "This has four newlines.\n\n\n\n"
- ]
----
-test: Extra trailing newlines with spaces
-todo: true
-brief: >
- Normally, only a single newline is kept
- from the end of a literal block, unless the
- keep '+' character is used in combination
- with the pipe. The following example
- will preserve all ending whitespace
- since the last line of both literal blocks
- contains spaces which extend past the indentation
- level.
-yaml: |
- ---
- this: |
- Foo
-
-
- kept: |+
- Foo
-
-
-php: |
- ['this' => "Foo\n\n \n",
- 'kept' => "Foo\n\n \n"]
-
----
-test: Folded Block in a Sequence
-brief: >
- A greater-then character, followed by an indented
- block of text is treated as a folded block, in
- which lines of text separated by a single newline
- are concatenated as a single line.
-yaml: |
- ---
- - apple
- - banana
- - >
- can't you see
- the beauty of yaml?
- hmm
- - dog
-php: |
- [
- 'apple',
- 'banana',
- "can't you see the beauty of yaml? hmm\n",
- 'dog'
- ]
----
-test: Folded Block as a Mapping Value
-brief: >
- Both literal and folded blocks can be
- used in collections, as values in a
- sequence or a mapping.
-yaml: |
- ---
- quote: >
- Mark McGwire's
- year was crippled
- by a knee injury.
- source: espn
-php: |
- [
- 'quote' => "Mark McGwire's year was crippled by a knee injury.\n",
- 'source' => 'espn'
- ]
----
-test: Three trailing newlines in folded blocks
-brief: >
- The keep and chomp indicators can also
- be applied to folded blocks.
-yaml: |
- clipped: >
- This has one newline.
-
-
-
- same as "clipped" above: "This has one newline.\n"
-
- stripped: >-
- This has no newline.
-
-
-
- same as "stripped" above: "This has no newline."
-
- kept: >+
- This has four newlines.
-
-
-
- same as "kept" above: "This has four newlines.\n\n\n\n"
-php: |
- [
- 'clipped' => "This has one newline.\n",
- 'same as "clipped" above' => "This has one newline.\n",
- 'stripped' => 'This has no newline.',
- 'same as "stripped" above' => 'This has no newline.',
- 'kept' => "This has four newlines.\n\n\n\n",
- 'same as "kept" above' => "This has four newlines.\n\n\n\n"
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsNullsAndEmpties.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsNullsAndEmpties.yml
deleted file mode 100644
index ea8e36ed..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsNullsAndEmpties.yml
+++ /dev/null
@@ -1,45 +0,0 @@
---- %YAML:1.0
-test: Empty Sequence
-brief: >
- You can represent the empty sequence
- with an empty inline sequence.
-yaml: |
- empty: []
-php: |
- ['empty' => []]
----
-test: Empty Mapping
-brief: >
- You can represent the empty mapping
- with an empty inline mapping.
-yaml: |
- empty: {}
-php: |
- ['empty' => []]
----
-test: Empty Sequence as Entire Document
-yaml: |
- []
-php: |
- []
----
-test: Empty Mapping as Entire Document
-yaml: |
- {}
-php: |
- []
----
-test: Null as Document
-yaml: |
- ~
-php: |
- null
----
-test: Empty String
-brief: >
- You can represent an empty string
- with a pair of quotes.
-yaml: |
- ''
-php: |
- ''
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsSpecificationExamples.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsSpecificationExamples.yml
deleted file mode 100644
index 4ecd828f..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsSpecificationExamples.yml
+++ /dev/null
@@ -1,1701 +0,0 @@
---- %YAML:1.0
-test: Sequence of scalars
-spec: 2.1
-yaml: |
- - Mark McGwire
- - Sammy Sosa
- - Ken Griffey
-php: |
- ['Mark McGwire', 'Sammy Sosa', 'Ken Griffey']
----
-test: Mapping of scalars to scalars
-spec: 2.2
-yaml: |
- hr: 65
- avg: 0.278
- rbi: 147
-php: |
- ['hr' => 65, 'avg' => 0.278, 'rbi' => 147]
----
-test: Mapping of scalars to sequences
-spec: 2.3
-yaml: |
- american:
- - Boston Red Sox
- - Detroit Tigers
- - New York Yankees
- national:
- - New York Mets
- - Chicago Cubs
- - Atlanta Braves
-php: |
- ['american' =>
- ['Boston Red Sox', 'Detroit Tigers',
- 'New York Yankees'],
- 'national' =>
- ['New York Mets', 'Chicago Cubs',
- 'Atlanta Braves']
- ]
----
-test: Sequence of mappings
-spec: 2.4
-yaml: |
- -
- name: Mark McGwire
- hr: 65
- avg: 0.278
- -
- name: Sammy Sosa
- hr: 63
- avg: 0.288
-php: |
- [
- ['name' => 'Mark McGwire', 'hr' => 65, 'avg' => 0.278],
- ['name' => 'Sammy Sosa', 'hr' => 63, 'avg' => 0.288]
- ]
----
-test: Legacy A5
-todo: true
-spec: legacy_A5
-yaml: |
- ?
- - New York Yankees
- - Atlanta Braves
- :
- - 2001-07-02
- - 2001-08-12
- - 2001-08-14
- ?
- - Detroit Tigers
- - Chicago Cubs
- :
- - 2001-07-23
-perl-busted: >
- YAML.pm will be able to emulate this behavior soon. In this regard
- it may be somewhat more correct than Python's native behaviour which
- can only use tuples as mapping keys. PyYAML will also need to figure
- out some clever way to roundtrip structured keys.
-python: |
- [
- {
- ('New York Yankees', 'Atlanta Braves'):
- [yaml.timestamp('2001-07-02'),
- yaml.timestamp('2001-08-12'),
- yaml.timestamp('2001-08-14')],
- ('Detroit Tigers', 'Chicago Cubs'):
- [yaml.timestamp('2001-07-23')]
- }
- ]
-ruby: |
- {
- [ 'New York Yankees', 'Atlanta Braves' ] =>
- [ Date.new( 2001, 7, 2 ), Date.new( 2001, 8, 12 ), Date.new( 2001, 8, 14 ) ],
- [ 'Detroit Tigers', 'Chicago Cubs' ] =>
- [ Date.new( 2001, 7, 23 ) ]
- }
-syck: |
- struct test_node seq1[] = {
- { T_STR, 0, "New York Yankees" },
- { T_STR, 0, "Atlanta Braves" },
- end_node
- };
- struct test_node seq2[] = {
- { T_STR, 0, "2001-07-02" },
- { T_STR, 0, "2001-08-12" },
- { T_STR, 0, "2001-08-14" },
- end_node
- };
- struct test_node seq3[] = {
- { T_STR, 0, "Detroit Tigers" },
- { T_STR, 0, "Chicago Cubs" },
- end_node
- };
- struct test_node seq4[] = {
- { T_STR, 0, "2001-07-23" },
- end_node
- };
- struct test_node map[] = {
- { T_SEQ, 0, 0, seq1 },
- { T_SEQ, 0, 0, seq2 },
- { T_SEQ, 0, 0, seq3 },
- { T_SEQ, 0, 0, seq4 },
- end_node
- };
- struct test_node stream[] = {
- { T_MAP, 0, 0, map },
- end_node
- };
-
----
-test: Sequence of sequences
-spec: 2.5
-yaml: |
- - [ name , hr , avg ]
- - [ Mark McGwire , 65 , 0.278 ]
- - [ Sammy Sosa , 63 , 0.288 ]
-php: |
- [
- [ 'name', 'hr', 'avg' ],
- [ 'Mark McGwire', 65, 0.278 ],
- [ 'Sammy Sosa', 63, 0.288 ]
- ]
----
-test: Mapping of mappings
-todo: true
-spec: 2.6
-yaml: |
- Mark McGwire: {hr: 65, avg: 0.278}
- Sammy Sosa: {
- hr: 63,
- avg: 0.288
- }
-php: |
- [
- 'Mark McGwire' =>
- [ 'hr' => 65, 'avg' => 0.278 ],
- 'Sammy Sosa' =>
- [ 'hr' => 63, 'avg' => 0.288 ]
- ]
----
-test: Two documents in a stream each with a leading comment
-todo: true
-spec: 2.7
-yaml: |
- # Ranking of 1998 home runs
- ---
- - Mark McGwire
- - Sammy Sosa
- - Ken Griffey
-
- # Team ranking
- ---
- - Chicago Cubs
- - St Louis Cardinals
-ruby: |
- y = YAML::Stream.new
- y.add( [ 'Mark McGwire', 'Sammy Sosa', 'Ken Griffey' ] )
- y.add( [ 'Chicago Cubs', 'St Louis Cardinals' ] )
-documents: 2
-
----
-test: Play by play feed from a game
-todo: true
-spec: 2.8
-yaml: |
- ---
- time: 20:03:20
- player: Sammy Sosa
- action: strike (miss)
- ...
- ---
- time: 20:03:47
- player: Sammy Sosa
- action: grand slam
- ...
-perl: |
- [ 'Mark McGwire', 'Sammy Sosa', 'Ken Griffey' ]
-documents: 2
-
----
-test: Single document with two comments
-spec: 2.9
-yaml: |
- hr: # 1998 hr ranking
- - Mark McGwire
- - Sammy Sosa
- rbi:
- # 1998 rbi ranking
- - Sammy Sosa
- - Ken Griffey
-php: |
- [
- 'hr' => [ 'Mark McGwire', 'Sammy Sosa' ],
- 'rbi' => [ 'Sammy Sosa', 'Ken Griffey' ]
- ]
----
-test: Node for Sammy Sosa appears twice in this document
-spec: 2.10
-yaml: |
- ---
- hr:
- - Mark McGwire
- # Following node labeled SS
- - &SS Sammy Sosa
- rbi:
- - *SS # Subsequent occurrence
- - Ken Griffey
-php: |
- [
- 'hr' =>
- ['Mark McGwire', 'Sammy Sosa'],
- 'rbi' =>
- ['Sammy Sosa', 'Ken Griffey']
- ]
----
-test: Mapping between sequences
-todo: true
-spec: 2.11
-yaml: |
- ? # PLAY SCHEDULE
- - Detroit Tigers
- - Chicago Cubs
- :
- - 2001-07-23
-
- ? [ New York Yankees,
- Atlanta Braves ]
- : [ 2001-07-02, 2001-08-12,
- 2001-08-14 ]
-ruby: |
- {
- [ 'Detroit Tigers', 'Chicago Cubs' ] => [ Date.new( 2001, 7, 23 ) ],
- [ 'New York Yankees', 'Atlanta Braves' ] => [ Date.new( 2001, 7, 2 ), Date.new( 2001, 8, 12 ), Date.new( 2001, 8, 14 ) ]
- }
-syck: |
- struct test_node seq1[] = {
- { T_STR, 0, "New York Yankees" },
- { T_STR, 0, "Atlanta Braves" },
- end_node
- };
- struct test_node seq2[] = {
- { T_STR, 0, "2001-07-02" },
- { T_STR, 0, "2001-08-12" },
- { T_STR, 0, "2001-08-14" },
- end_node
- };
- struct test_node seq3[] = {
- { T_STR, 0, "Detroit Tigers" },
- { T_STR, 0, "Chicago Cubs" },
- end_node
- };
- struct test_node seq4[] = {
- { T_STR, 0, "2001-07-23" },
- end_node
- };
- struct test_node map[] = {
- { T_SEQ, 0, 0, seq3 },
- { T_SEQ, 0, 0, seq4 },
- { T_SEQ, 0, 0, seq1 },
- { T_SEQ, 0, 0, seq2 },
- end_node
- };
- struct test_node stream[] = {
- { T_MAP, 0, 0, map },
- end_node
- };
-
----
-test: Sequence key shortcut
-spec: 2.12
-yaml: |
- ---
- # products purchased
- - item : Super Hoop
- quantity: 1
- - item : Basketball
- quantity: 4
- - item : Big Shoes
- quantity: 1
-php: |
- [
- [
- 'item' => 'Super Hoop',
- 'quantity' => 1,
- ],
- [
- 'item' => 'Basketball',
- 'quantity' => 4,
- ],
- [
- 'item' => 'Big Shoes',
- 'quantity' => 1,
- ]
- ]
-perl: |
- [
- { item => 'Super Hoop', quantity => 1 },
- { item => 'Basketball', quantity => 4 },
- { item => 'Big Shoes', quantity => 1 }
- ]
-
-ruby: |
- [
- { 'item' => 'Super Hoop', 'quantity' => 1 },
- { 'item' => 'Basketball', 'quantity' => 4 },
- { 'item' => 'Big Shoes', 'quantity' => 1 }
- ]
-python: |
- [
- { 'item': 'Super Hoop', 'quantity': 1 },
- { 'item': 'Basketball', 'quantity': 4 },
- { 'item': 'Big Shoes', 'quantity': 1 }
- ]
-syck: |
- struct test_node map1[] = {
- { T_STR, 0, "item" },
- { T_STR, 0, "Super Hoop" },
- { T_STR, 0, "quantity" },
- { T_STR, 0, "1" },
- end_node
- };
- struct test_node map2[] = {
- { T_STR, 0, "item" },
- { T_STR, 0, "Basketball" },
- { T_STR, 0, "quantity" },
- { T_STR, 0, "4" },
- end_node
- };
- struct test_node map3[] = {
- { T_STR, 0, "item" },
- { T_STR, 0, "Big Shoes" },
- { T_STR, 0, "quantity" },
- { T_STR, 0, "1" },
- end_node
- };
- struct test_node seq[] = {
- { T_MAP, 0, 0, map1 },
- { T_MAP, 0, 0, map2 },
- { T_MAP, 0, 0, map3 },
- end_node
- };
- struct test_node stream[] = {
- { T_SEQ, 0, 0, seq },
- end_node
- };
-
-
----
-test: Literal perserves newlines
-todo: true
-spec: 2.13
-yaml: |
- # ASCII Art
- --- |
- \//||\/||
- // || ||_
-perl: |
- "\\//||\\/||\n// || ||_\n"
-ruby: |
- "\\//||\\/||\n// || ||_\n"
-python: |
- [
- flushLeft(
- """
- \//||\/||
- // || ||_
- """
- )
- ]
-syck: |
- struct test_node stream[] = {
- { T_STR, 0, "\\//||\\/||\n// || ||_\n" },
- end_node
- };
-
----
-test: Folded treats newlines as a space
-todo: true
-spec: 2.14
-yaml: |
- ---
- Mark McGwire's
- year was crippled
- by a knee injury.
-perl: |
- "Mark McGwire's year was crippled by a knee injury."
-ruby: |
- "Mark McGwire's year was crippled by a knee injury."
-python: |
- [ "Mark McGwire's year was crippled by a knee injury." ]
-syck: |
- struct test_node stream[] = {
- { T_STR, 0, "Mark McGwire's year was crippled by a knee injury." },
- end_node
- };
-
----
-test: Newlines preserved for indented and blank lines
-todo: true
-spec: 2.15
-yaml: |
- --- >
- Sammy Sosa completed another
- fine season with great stats.
-
- 63 Home Runs
- 0.288 Batting Average
-
- What a year!
-perl: |
- "Sammy Sosa completed another fine season with great stats.\n\n 63 Home Runs\n 0.288 Batting Average\n\nWhat a year!\n"
-ruby: |
- "Sammy Sosa completed another fine season with great stats.\n\n 63 Home Runs\n 0.288 Batting Average\n\nWhat a year!\n"
-python: |
- [
- flushLeft(
- """
- Sammy Sosa completed another fine season with great stats.
-
- 63 Home Runs
- 0.288 Batting Average
-
- What a year!
- """
- )
- ]
-syck: |
- struct test_node stream[] = {
- { T_STR, 0, "Sammy Sosa completed another fine season with great stats.\n\n 63 Home Runs\n 0.288 Batting Average\n\nWhat a year!\n" },
- end_node
- };
-
-
----
-test: Indentation determines scope
-spec: 2.16
-yaml: |
- name: Mark McGwire
- accomplishment: >
- Mark set a major league
- home run record in 1998.
- stats: |
- 65 Home Runs
- 0.278 Batting Average
-php: |
- [
- 'name' => 'Mark McGwire',
- 'accomplishment' => "Mark set a major league home run record in 1998.\n",
- 'stats' => "65 Home Runs\n0.278 Batting Average\n"
- ]
----
-test: Quoted scalars
-todo: true
-spec: 2.17
-yaml: |
- unicode: "Sosa did fine.\u263A"
- control: "\b1998\t1999\t2000\n"
- hexesc: "\x0D\x0A is \r\n"
-
- single: '"Howdy!" he cried.'
- quoted: ' # not a ''comment''.'
- tie-fighter: '|\-*-/|'
-ruby: |
- {
- "tie-fighter" => "|\\-*-/|",
- "control"=>"\0101998\t1999\t2000\n",
- "unicode"=>"Sosa did fine." + ["263A".hex ].pack('U*'),
- "quoted"=>" # not a 'comment'.",
- "single"=>"\"Howdy!\" he cried.",
- "hexesc"=>"\r\n is \r\n"
- }
----
-test: Multiline flow scalars
-todo: true
-spec: 2.18
-yaml: |
- plain:
- This unquoted scalar
- spans many lines.
-
- quoted: "So does this
- quoted scalar.\n"
-ruby: |
- {
- 'plain' => 'This unquoted scalar spans many lines.',
- 'quoted' => "So does this quoted scalar.\n"
- }
----
-test: Integers
-spec: 2.19
-yaml: |
- canonical: 12345
- octal: 014
- hexadecimal: 0xC
-php: |
- [
- 'canonical' => 12345,
- 'octal' => 014,
- 'hexadecimal' => 0xC
- ]
----
-test: Decimal Integer
-deprecated: true
-spec: 2.19
-yaml: |
- decimal: +12,345
-php: |
- [
- 'decimal' => 12345.0,
- ]
----
-# FIX: spec shows parens around -inf and NaN
-test: Floating point
-spec: 2.20
-yaml: |
- canonical: 1.23015e+3
- exponential: 12.3015e+02
- negative infinity: -.inf
- not a number: .NaN
- float as whole number: !!float 1
-php: |
- [
- 'canonical' => 1230.15,
- 'exponential' => 1230.15,
- 'negative infinity' => log(0),
- 'not a number' => -log(0),
- 'float as whole number' => (float) 1
- ]
----
-test: Fixed Floating point
-deprecated: true
-spec: 2.20
-yaml: |
- fixed: 1,230.15
-php: |
- [
- 'fixed' => 1230.15,
- ]
----
-test: Timestamps
-todo: true
-spec: 2.22
-yaml: |
- canonical: 2001-12-15T02:59:43.1Z
- iso8601: 2001-12-14t21:59:43.10-05:00
- spaced: 2001-12-14 21:59:43.10 -05:00
- date: 2002-12-14 # Time is noon UTC
-php: |
- [
- 'canonical' => YAML::mktime( 2001, 12, 15, 2, 59, 43, 0.10 ),
- 'iso8601' => YAML::mktime( 2001, 12, 14, 21, 59, 43, 0.10, "-05:00" ),
- 'spaced' => YAML::mktime( 2001, 12, 14, 21, 59, 43, 0.10, "-05:00" ),
- 'date' => Date.new( 2002, 12, 14 )
- ]
----
-test: legacy Timestamps test
-todo: true
-spec: legacy D4
-yaml: |
- canonical: 2001-12-15T02:59:43.00Z
- iso8601: 2001-02-28t21:59:43.00-05:00
- spaced: 2001-12-14 21:59:43.00 -05:00
- date: 2002-12-14
-php: |
- [
- 'canonical' => Time::utc( 2001, 12, 15, 2, 59, 43, 0 ),
- 'iso8601' => YAML::mktime( 2001, 2, 28, 21, 59, 43, 0, "-05:00" ),
- 'spaced' => YAML::mktime( 2001, 12, 14, 21, 59, 43, 0, "-05:00" ),
- 'date' => Date.new( 2002, 12, 14 )
- ]
----
-test: Various explicit families
-todo: true
-spec: 2.23
-yaml: |
- not-date: !!str 2002-04-28
- picture: !binary |
- R0lGODlhDAAMAIQAAP//9/X
- 17unp5WZmZgAAAOfn515eXv
- Pz7Y6OjuDg4J+fn5OTk6enp
- 56enmleECcgggoBADs=
-
- application specific tag: !!something |
- The semantics of the tag
- above may be different for
- different documents.
-
-ruby-setup: |
- YAML.add_private_type( "something" ) do |type, val|
- "SOMETHING: #{val}"
- end
-ruby: |
- {
- 'not-date' => '2002-04-28',
- 'picture' => "GIF89a\f\000\f\000\204\000\000\377\377\367\365\365\356\351\351\345fff\000\000\000\347\347\347^^^\363\363\355\216\216\216\340\340\340\237\237\237\223\223\223\247\247\247\236\236\236i^\020' \202\n\001\000;",
- 'application specific tag' => "SOMETHING: The semantics of the tag\nabove may be different for\ndifferent documents.\n"
- }
----
-test: Application specific family
-todo: true
-spec: 2.24
-yaml: |
- # Establish a tag prefix
- --- !clarkevans.com,2002/graph/^shape
- # Use the prefix: shorthand for
- # !clarkevans.com,2002/graph/circle
- - !^circle
- center: &ORIGIN {x: 73, 'y': 129}
- radius: 7
- - !^line # !clarkevans.com,2002/graph/line
- start: *ORIGIN
- finish: { x: 89, 'y': 102 }
- - !^label
- start: *ORIGIN
- color: 0xFFEEBB
- value: Pretty vector drawing.
-ruby-setup: |
- YAML.add_domain_type( "clarkevans.com,2002", 'graph/shape' ) { |type, val|
- if Array === val
- val << "Shape Container"
- val
- else
- raise YAML::Error, "Invalid graph of class #{ val.class }: " + val.inspect
- end
- }
- one_shape_proc = Proc.new { |type, val|
- scheme, domain, type = type.split( /:/, 3 )
- if val.is_a? ::Hash
- val['TYPE'] = "Shape: #{type}"
- val
- else
- raise YAML::Error, "Invalid graph of class #{ val.class }: " + val.inspect
- end
- }
- YAML.add_domain_type( "clarkevans.com,2002", 'graph/circle', &one_shape_proc )
- YAML.add_domain_type( "clarkevans.com,2002", 'graph/line', &one_shape_proc )
- YAML.add_domain_type( "clarkevans.com,2002", 'graph/label', &one_shape_proc )
-ruby: |
- [
- {
- "radius" => 7,
- "center"=>
- {
- "x" => 73,
- "y" => 129
- },
- "TYPE" => "Shape: graph/circle"
- }, {
- "finish" =>
- {
- "x" => 89,
- "y" => 102
- },
- "TYPE" => "Shape: graph/line",
- "start" =>
- {
- "x" => 73,
- "y" => 129
- }
- }, {
- "TYPE" => "Shape: graph/label",
- "value" => "Pretty vector drawing.",
- "start" =>
- {
- "x" => 73,
- "y" => 129
- },
- "color" => 16772795
- },
- "Shape Container"
- ]
-# ---
-# test: Unordered set
-# spec: 2.25
-# yaml: |
-# # sets are represented as a
-# # mapping where each key is
-# # associated with the empty string
-# --- !set
-# ? Mark McGwire
-# ? Sammy Sosa
-# ? Ken Griff
----
-test: Ordered mappings
-todo: true
-spec: 2.26
-yaml: |
- # ordered maps are represented as
- # a sequence of mappings, with
- # each mapping having one key
- --- !omap
- - Mark McGwire: 65
- - Sammy Sosa: 63
- - Ken Griffy: 58
-ruby: |
- YAML::Omap[
- 'Mark McGwire', 65,
- 'Sammy Sosa', 63,
- 'Ken Griffy', 58
- ]
----
-test: Invoice
-dump_skip: true
-spec: 2.27
-yaml: |
- --- !clarkevans.com,2002/^invoice
- invoice: 34843
- date : 2001-01-23
- bill-to: &id001
- given : Chris
- family : Dumars
- address:
- lines: |
- 458 Walkman Dr.
- Suite #292
- city : Royal Oak
- state : MI
- postal : 48046
- ship-to: *id001
- product:
- -
- sku : BL394D
- quantity : 4
- description : Basketball
- price : 450.00
- -
- sku : BL4438H
- quantity : 1
- description : Super Hoop
- price : 2392.00
- tax : 251.42
- total: 4443.52
- comments: >
- Late afternoon is best.
- Backup contact is Nancy
- Billsmer @ 338-4338.
-php: |
- [
- 'invoice' => 34843, 'date' => gmmktime(0, 0, 0, 1, 23, 2001),
- 'bill-to' =>
- [ 'given' => 'Chris', 'family' => 'Dumars', 'address' => [ 'lines' => "458 Walkman Dr.\nSuite #292\n", 'city' => 'Royal Oak', 'state' => 'MI', 'postal' => 48046 ] ]
- , 'ship-to' =>
- [ 'given' => 'Chris', 'family' => 'Dumars', 'address' => [ 'lines' => "458 Walkman Dr.\nSuite #292\n", 'city' => 'Royal Oak', 'state' => 'MI', 'postal' => 48046 ] ]
- , 'product' =>
- [
- [ 'sku' => 'BL394D', 'quantity' => 4, 'description' => 'Basketball', 'price' => 450.00 ],
- [ 'sku' => 'BL4438H', 'quantity' => 1, 'description' => 'Super Hoop', 'price' => 2392.00 ]
- ],
- 'tax' => 251.42, 'total' => 4443.52,
- 'comments' => "Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338.\n"
- ]
----
-test: Log file
-todo: true
-spec: 2.28
-yaml: |
- ---
- Time: 2001-11-23 15:01:42 -05:00
- User: ed
- Warning: >
- This is an error message
- for the log file
- ---
- Time: 2001-11-23 15:02:31 -05:00
- User: ed
- Warning: >
- A slightly different error
- message.
- ---
- Date: 2001-11-23 15:03:17 -05:00
- User: ed
- Fatal: >
- Unknown variable "bar"
- Stack:
- - file: TopClass.py
- line: 23
- code: |
- x = MoreObject("345\n")
- - file: MoreClass.py
- line: 58
- code: |-
- foo = bar
-ruby: |
- y = YAML::Stream.new
- y.add( { 'Time' => YAML::mktime( 2001, 11, 23, 15, 01, 42, 00, "-05:00" ),
- 'User' => 'ed', 'Warning' => "This is an error message for the log file\n" } )
- y.add( { 'Time' => YAML::mktime( 2001, 11, 23, 15, 02, 31, 00, "-05:00" ),
- 'User' => 'ed', 'Warning' => "A slightly different error message.\n" } )
- y.add( { 'Date' => YAML::mktime( 2001, 11, 23, 15, 03, 17, 00, "-05:00" ),
- 'User' => 'ed', 'Fatal' => "Unknown variable \"bar\"\n",
- 'Stack' => [
- { 'file' => 'TopClass.py', 'line' => 23, 'code' => "x = MoreObject(\"345\\n\")\n" },
- { 'file' => 'MoreClass.py', 'line' => 58, 'code' => "foo = bar" } ] } )
-documents: 3
-
----
-test: Throwaway comments
-yaml: |
- ### These are four throwaway comment ###
-
- ### lines (the second line is empty). ###
- this: | # Comments may trail lines.
- contains three lines of text.
- The third one starts with a
- # character. This isn't a comment.
-
- # These are three throwaway comment
- # lines (the first line is empty).
-php: |
- [
- 'this' => "contains three lines of text.\nThe third one starts with a\n# character. This isn't a comment.\n"
- ]
----
-test: Document with a single value
-todo: true
-yaml: |
- --- >
- This YAML stream contains a single text value.
- The next stream is a log file - a sequence of
- log entries. Adding an entry to the log is a
- simple matter of appending it at the end.
-ruby: |
- "This YAML stream contains a single text value. The next stream is a log file - a sequence of log entries. Adding an entry to the log is a simple matter of appending it at the end.\n"
----
-test: Document stream
-todo: true
-yaml: |
- ---
- at: 2001-08-12 09:25:00.00 Z
- type: GET
- HTTP: '1.0'
- url: '/index.html'
- ---
- at: 2001-08-12 09:25:10.00 Z
- type: GET
- HTTP: '1.0'
- url: '/toc.html'
-ruby: |
- y = YAML::Stream.new
- y.add( {
- 'at' => Time::utc( 2001, 8, 12, 9, 25, 00 ),
- 'type' => 'GET',
- 'HTTP' => '1.0',
- 'url' => '/index.html'
- } )
- y.add( {
- 'at' => Time::utc( 2001, 8, 12, 9, 25, 10 ),
- 'type' => 'GET',
- 'HTTP' => '1.0',
- 'url' => '/toc.html'
- } )
-documents: 2
-
----
-test: Top level mapping
-yaml: |
- # This stream is an example of a top-level mapping.
- invoice : 34843
- date : 2001-01-23
- total : 4443.52
-php: |
- [
- 'invoice' => 34843,
- 'date' => gmmktime(0, 0, 0, 1, 23, 2001),
- 'total' => 4443.52
- ]
----
-test: Single-line documents
-todo: true
-yaml: |
- # The following is a sequence of three documents.
- # The first contains an empty mapping, the second
- # an empty sequence, and the last an empty string.
- --- {}
- --- [ ]
- --- ''
-ruby: |
- y = YAML::Stream.new
- y.add( {} )
- y.add( [] )
- y.add( '' )
-documents: 3
-
----
-test: Document with pause
-todo: true
-yaml: |
- # A communication channel based on a YAML stream.
- ---
- sent at: 2002-06-06 11:46:25.10 Z
- payload: Whatever
- # Receiver can process this as soon as the following is sent:
- ...
- # Even if the next message is sent long after:
- ---
- sent at: 2002-06-06 12:05:53.47 Z
- payload: Whatever
- ...
-ruby: |
- y = YAML::Stream.new
- y.add(
- { 'sent at' => YAML::mktime( 2002, 6, 6, 11, 46, 25, 0.10 ),
- 'payload' => 'Whatever' }
- )
- y.add(
- { "payload" => "Whatever", "sent at" => YAML::mktime( 2002, 6, 6, 12, 5, 53, 0.47 ) }
- )
-documents: 2
-
----
-test: Explicit typing
-deprecated: Using the non-specific tag "!" is deprecated since Symfony 3.4 as its behavior will change in 4.0.
-yaml: |
- integer: 12
- also int: ! "12"
- string: !!str 12
-php: |
- [ 'integer' => 12, 'also int' => 12, 'string' => '12' ]
----
-test: Private types
-todo: true
-yaml: |
- # Both examples below make use of the 'x-private:ball'
- # type family URI, but with different semantics.
- ---
- pool: !!ball
- number: 8
- color: black
- ---
- bearing: !!ball
- material: steel
-ruby: |
- y = YAML::Stream.new
- y.add( { 'pool' =>
- YAML::PrivateType.new( 'ball',
- { 'number' => 8, 'color' => 'black' } ) }
- )
- y.add( { 'bearing' =>
- YAML::PrivateType.new( 'ball',
- { 'material' => 'steel' } ) }
- )
-documents: 2
-
----
-test: Type family under yaml.org
-yaml: |
- # The URI is 'tag:yaml.org,2002:str'
- - !!str a Unicode string
-php: |
- [ 'a Unicode string' ]
----
-test: Type family under perl.yaml.org
-todo: true
-yaml: |
- # The URI is 'tag:perl.yaml.org,2002:Text::Tabs'
- - !perl/Text::Tabs {}
-ruby: |
- [ YAML::DomainType.new( 'perl.yaml.org,2002', 'Text::Tabs', {} ) ]
----
-test: Type family under clarkevans.com
-todo: true
-yaml: |
- # The URI is 'tag:clarkevans.com,2003-02:timesheet'
- - !clarkevans.com,2003-02/timesheet {}
-ruby: |
- [ YAML::DomainType.new( 'clarkevans.com,2003-02', 'timesheet', {} ) ]
----
-test: URI Escaping
-todo: true
-yaml: |
- same:
- - !domain.tld,2002/type\x30 value
- - !domain.tld,2002/type0 value
- different: # As far as the YAML parser is concerned
- - !domain.tld,2002/type%30 value
- - !domain.tld,2002/type0 value
-ruby-setup: |
- YAML.add_domain_type( "domain.tld,2002", "type0" ) { |type, val|
- "ONE: #{val}"
- }
- YAML.add_domain_type( "domain.tld,2002", "type%30" ) { |type, val|
- "TWO: #{val}"
- }
-ruby: |
- { 'same' => [ 'ONE: value', 'ONE: value' ], 'different' => [ 'TWO: value', 'ONE: value' ] }
----
-test: URI Prefixing
-todo: true
-yaml: |
- # 'tag:domain.tld,2002:invoice' is some type family.
- invoice: !domain.tld,2002/^invoice
- # 'seq' is shorthand for 'tag:yaml.org,2002:seq'.
- # This does not effect '^customer' below
- # because it is does not specify a prefix.
- customers: !seq
- # '^customer' is shorthand for the full
- # notation 'tag:domain.tld,2002:customer'.
- - !^customer
- given : Chris
- family : Dumars
-ruby-setup: |
- YAML.add_domain_type( "domain.tld,2002", /(invoice|customer)/ ) { |type, val|
- if val.is_a? ::Hash
- scheme, domain, type = type.split( /:/, 3 )
- val['type'] = "domain #{type}"
- val
- else
- raise YAML::Error, "Not a Hash in domain.tld/invoice: " + val.inspect
- end
- }
-ruby: |
- { "invoice"=> { "customers"=> [ { "given"=>"Chris", "type"=>"domain customer", "family"=>"Dumars" } ], "type"=>"domain invoice" } }
-
----
-test: Overriding anchors
-yaml: |
- anchor : &A001 This scalar has an anchor.
- override : &A001 >
- The alias node below is a
- repeated use of this value.
- alias : *A001
-php: |
- [ 'anchor' => 'This scalar has an anchor.',
- 'override' => "The alias node below is a repeated use of this value.\n",
- 'alias' => "The alias node below is a repeated use of this value.\n"]
----
-test: Flow and block formatting
-todo: true
-yaml: |
- empty: []
- flow: [ one, two, three # May span lines,
- , four, # indentation is
- five ] # mostly ignored.
- block:
- - First item in top sequence
- -
- - Subordinate sequence entry
- - >
- A folded sequence entry
- - Sixth item in top sequence
-ruby: |
- { 'empty' => [], 'flow' => [ 'one', 'two', 'three', 'four', 'five' ],
- 'block' => [ 'First item in top sequence', [ 'Subordinate sequence entry' ],
- "A folded sequence entry\n", 'Sixth item in top sequence' ] }
----
-test: Complete mapping test
-todo: true
-yaml: |
- empty: {}
- flow: { one: 1, two: 2 }
- spanning: { one: 1,
- two: 2 }
- block:
- first : First entry
- second:
- key: Subordinate mapping
- third:
- - Subordinate sequence
- - { }
- - Previous mapping is empty.
- - A key: value pair in a sequence.
- A second: key:value pair.
- - The previous entry is equal to the following one.
- -
- A key: value pair in a sequence.
- A second: key:value pair.
- !float 12 : This key is a float.
- ? >
- ?
- : This key had to be protected.
- "\a" : This key had to be escaped.
- ? >
- This is a
- multi-line
- folded key
- : Whose value is
- also multi-line.
- ? this also works as a key
- : with a value at the next line.
- ?
- - This key
- - is a sequence
- :
- - With a sequence value.
- ?
- This: key
- is a: mapping
- :
- with a: mapping value.
-ruby: |
- { 'empty' => {}, 'flow' => { 'one' => 1, 'two' => 2 },
- 'spanning' => { 'one' => 1, 'two' => 2 },
- 'block' => { 'first' => 'First entry', 'second' =>
- { 'key' => 'Subordinate mapping' }, 'third' =>
- [ 'Subordinate sequence', {}, 'Previous mapping is empty.',
- { 'A key' => 'value pair in a sequence.', 'A second' => 'key:value pair.' },
- 'The previous entry is equal to the following one.',
- { 'A key' => 'value pair in a sequence.', 'A second' => 'key:value pair.' } ],
- 12.0 => 'This key is a float.', "?\n" => 'This key had to be protected.',
- "\a" => 'This key had to be escaped.',
- "This is a multi-line folded key\n" => "Whose value is also multi-line.",
- 'this also works as a key' => 'with a value at the next line.',
- [ 'This key', 'is a sequence' ] => [ 'With a sequence value.' ] } }
- # Couldn't recreate map exactly, so we'll do a detailed check to be sure it's entact
- obj_y['block'].keys.each { |k|
- if Hash === k
- v = obj_y['block'][k]
- if k['This'] == 'key' and k['is a'] == 'mapping' and v['with a'] == 'mapping value.'
- obj_r['block'][k] = v
- end
- end
- }
----
-test: Literal explicit indentation
-yaml: |
- # Explicit indentation must
- # be given in all the three
- # following cases.
- leading spaces: |2
- This value starts with four spaces.
-
- leading line break: |2
-
- This value starts with a line break.
-
- leading comment indicator: |2
- # first line starts with a
- # character.
-
- # Explicit indentation may
- # also be given when it is
- # not required.
- redundant: |2
- This value is indented 2 spaces.
-php: |
- [
- 'leading spaces' => " This value starts with four spaces.\n",
- 'leading line break' => "\nThis value starts with a line break.\n",
- 'leading comment indicator' => "# first line starts with a\n# character.\n",
- 'redundant' => "This value is indented 2 spaces.\n"
- ]
----
-test: Chomping and keep modifiers
-yaml: |
- clipped: |
- This has one newline.
-
- same as "clipped" above: "This has one newline.\n"
-
- stripped: |-
- This has no newline.
-
- same as "stripped" above: "This has no newline."
-
- kept: |+
- This has two newlines.
-
- same as "kept" above: "This has two newlines.\n\n"
-php: |
- [
- 'clipped' => "This has one newline.\n",
- 'same as "clipped" above' => "This has one newline.\n",
- 'stripped' => 'This has no newline.',
- 'same as "stripped" above' => 'This has no newline.',
- 'kept' => "This has two newlines.\n\n",
- 'same as "kept" above' => "This has two newlines.\n\n"
- ]
----
-test: Literal combinations
-todo: true
-yaml: |
- empty: |
-
- literal: |
- The \ ' " characters may be
- freely used. Leading white
- space is significant.
-
- Line breaks are significant.
- Thus this value contains one
- empty line and ends with a
- single line break, but does
- not start with one.
-
- is equal to: "The \\ ' \" characters may \
- be\nfreely used. Leading white\n space \
- is significant.\n\nLine breaks are \
- significant.\nThus this value contains \
- one\nempty line and ends with a\nsingle \
- line break, but does\nnot start with one.\n"
-
- # Comments may follow a block
- # scalar value. They must be
- # less indented.
-
- # Modifiers may be combined in any order.
- indented and chomped: |2-
- This has no newline.
-
- also written as: |-2
- This has no newline.
-
- both are equal to: " This has no newline."
-php: |
- [
- 'empty' => '',
- 'literal' => "The \\ ' \" characters may be\nfreely used. Leading white\n space " +
- "is significant.\n\nLine breaks are significant.\nThus this value contains one\n" +
- "empty line and ends with a\nsingle line break, but does\nnot start with one.\n",
- 'is equal to' => "The \\ ' \" characters may be\nfreely used. Leading white\n space " +
- "is significant.\n\nLine breaks are significant.\nThus this value contains one\n" +
- "empty line and ends with a\nsingle line break, but does\nnot start with one.\n",
- 'indented and chomped' => ' This has no newline.',
- 'also written as' => ' This has no newline.',
- 'both are equal to' => ' This has no newline.'
- [
----
-test: Folded combinations
-todo: true
-yaml: |
- empty: >
-
- one paragraph: >
- Line feeds are converted
- to spaces, so this value
- contains no line breaks
- except for the final one.
-
- multiple paragraphs: >2
-
- An empty line, either
- at the start or in
- the value:
-
- Is interpreted as a
- line break. Thus this
- value contains three
- line breaks.
-
- indented text: >
- This is a folded
- paragraph followed
- by a list:
- * first entry
- * second entry
- Followed by another
- folded paragraph,
- another list:
-
- * first entry
-
- * second entry
-
- And a final folded
- paragraph.
-
- above is equal to: |
- This is a folded paragraph followed by a list:
- * first entry
- * second entry
- Followed by another folded paragraph, another list:
-
- * first entry
-
- * second entry
-
- And a final folded paragraph.
-
- # Explicit comments may follow
- # but must be less indented.
-php: |
- [
- 'empty' => '',
- 'one paragraph' => 'Line feeds are converted to spaces, so this value'.
- " contains no line breaks except for the final one.\n",
- 'multiple paragraphs' => "\nAn empty line, either at the start or in the value:\n".
- "Is interpreted as a line break. Thus this value contains three line breaks.\n",
- 'indented text' => "This is a folded paragraph followed by a list:\n".
- " * first entry\n * second entry\nFollowed by another folded paragraph, ".
- "another list:\n\n * first entry\n\n * second entry\n\nAnd a final folded paragraph.\n",
- 'above is equal to' => "This is a folded paragraph followed by a list:\n".
- " * first entry\n * second entry\nFollowed by another folded paragraph, ".
- "another list:\n\n * first entry\n\n * second entry\n\nAnd a final folded paragraph.\n"
- ]
----
-test: Single quotes
-todo: true
-yaml: |
- empty: ''
- second: '! : \ etc. can be used freely.'
- third: 'a single quote '' must be escaped.'
- span: 'this contains
- six spaces
-
- and one
- line break'
- is same as: "this contains six spaces\nand one line break"
-php: |
- [
- 'empty' => '',
- 'second' => '! : \\ etc. can be used freely.',
- 'third' => "a single quote ' must be escaped.",
- 'span' => "this contains six spaces\nand one line break",
- 'is same as' => "this contains six spaces\nand one line break"
- ]
----
-test: Double quotes
-todo: true
-yaml: |
- empty: ""
- second: "! : etc. can be used freely."
- third: "a \" or a \\ must be escaped."
- fourth: "this value ends with an LF.\n"
- span: "this contains
- four \
- spaces"
- is equal to: "this contains four spaces"
-php: |
- [
- 'empty' => '',
- 'second' => '! : etc. can be used freely.',
- 'third' => 'a " or a \\ must be escaped.',
- 'fourth' => "this value ends with an LF.\n",
- 'span' => "this contains four spaces",
- 'is equal to' => "this contains four spaces"
- ]
----
-test: Unquoted strings
-todo: true
-yaml: |
- first: There is no unquoted empty string.
-
- second: 12 ## This is an integer.
-
- third: !!str 12 ## This is a string.
-
- span: this contains
- six spaces
-
- and one
- line break
-
- indicators: this has no comments.
- #:foo and bar# are
- both text.
-
- flow: [ can span
- lines, # comment
- like
- this ]
-
- note: { one-line keys: but multi-line values }
-
-php: |
- [
- 'first' => 'There is no unquoted empty string.',
- 'second' => 12,
- 'third' => '12',
- 'span' => "this contains six spaces\nand one line break",
- 'indicators' => "this has no comments. #:foo and bar# are both text.",
- 'flow' => [ 'can span lines', 'like this' ],
- 'note' => { 'one-line keys' => 'but multi-line values' }
- ]
----
-test: Spanning sequences
-todo: true
-yaml: |
- # The following are equal seqs
- # with different identities.
- flow: [ one, two ]
- spanning: [ one,
- two ]
- block:
- - one
- - two
-php: |
- [
- 'flow' => [ 'one', 'two' ],
- 'spanning' => [ 'one', 'two' ],
- 'block' => [ 'one', 'two' ]
- ]
----
-test: Flow mappings
-yaml: |
- # The following are equal maps
- # with different identities.
- flow: { one: 1, two: 2 }
- block:
- one: 1
- two: 2
-php: |
- [
- 'flow' => [ 'one' => 1, 'two' => 2 ],
- 'block' => [ 'one' => 1, 'two' => 2 ]
- ]
----
-test: Representations of 12
-todo: true
-yaml: |
- - 12 # An integer
- # The following scalars
- # are loaded to the
- # string value '1' '2'.
- - !!str 12
- - '12'
- - "12"
- - "\
- 1\
- 2\
- "
- # Strings containing paths and regexps can be unquoted:
- - /foo/bar
- - d:/foo/bar
- - foo/bar
- - /a.*b/
-php: |
- [ 12, '12', '12', '12', '12', '/foo/bar', 'd:/foo/bar', 'foo/bar', '/a.*b/' ]
----
-test: "Null"
-todo: true
-yaml: |
- canonical: ~
-
- english: null
-
- # This sequence has five
- # entries, two with values.
- sparse:
- - ~
- - 2nd entry
- - Null
- - 4th entry
- -
-
- four: This mapping has five keys,
- only two with values.
-
-php: |
- [
- 'canonical' => null,
- 'english' => null,
- 'sparse' => [ null, '2nd entry', null, '4th entry', null ]],
- 'four' => 'This mapping has five keys, only two with values.'
- ]
----
-test: Omap
-todo: true
-yaml: |
- # Explicitly typed dictionary.
- Bestiary: !omap
- - aardvark: African pig-like ant eater. Ugly.
- - anteater: South-American ant eater. Two species.
- - anaconda: South-American constrictor snake. Scary.
- # Etc.
-ruby: |
- {
- 'Bestiary' => YAML::Omap[
- 'aardvark', 'African pig-like ant eater. Ugly.',
- 'anteater', 'South-American ant eater. Two species.',
- 'anaconda', 'South-American constrictor snake. Scary.'
- ]
- }
-
----
-test: Pairs
-todo: true
-yaml: |
- # Explicitly typed pairs.
- tasks: !pairs
- - meeting: with team.
- - meeting: with boss.
- - break: lunch.
- - meeting: with client.
-ruby: |
- {
- 'tasks' => YAML::Pairs[
- 'meeting', 'with team.',
- 'meeting', 'with boss.',
- 'break', 'lunch.',
- 'meeting', 'with client.'
- ]
- }
-
----
-test: Set
-todo: true
-yaml: |
- # Explicitly typed set.
- baseball players: !set
- Mark McGwire:
- Sammy Sosa:
- Ken Griffey:
-ruby: |
- {
- 'baseball players' => YAML::Set[
- 'Mark McGwire', nil,
- 'Sammy Sosa', nil,
- 'Ken Griffey', nil
- ]
- }
-
----
-test: Integer
-yaml: |
- canonical: 12345
- octal: 014
- hexadecimal: 0xC
-php: |
- [
- 'canonical' => 12345,
- 'octal' => 12,
- 'hexadecimal' => 12
- ]
----
-test: Decimal
-deprecated: true
-yaml: |
- decimal: +12,345
-php: |
- [
- 'decimal' => 12345.0,
- ]
----
-test: Fixed Float
-deprecated: true
-yaml: |
- fixed: 1,230.15
-php: |
- [
- 'fixed' => 1230.15,
- ]
----
-test: Float
-yaml: |
- canonical: 1.23015e+3
- exponential: 12.3015e+02
- negative infinity: -.inf
- not a number: .NaN
-php: |
- [
- 'canonical' => 1230.15,
- 'exponential' => 1230.15,
- 'negative infinity' => log(0),
- 'not a number' => -log(0)
- ]
----
-test: Timestamp
-todo: true
-yaml: |
- canonical: 2001-12-15T02:59:43.1Z
- valid iso8601: 2001-12-14t21:59:43.10-05:00
- space separated: 2001-12-14 21:59:43.10 -05:00
- date (noon UTC): 2002-12-14
-ruby: |
- [
- 'canonical' => YAML::mktime( 2001, 12, 15, 2, 59, 43, 0.10 ),
- 'valid iso8601' => YAML::mktime( 2001, 12, 14, 21, 59, 43, 0.10, "-05:00" ),
- 'space separated' => YAML::mktime( 2001, 12, 14, 21, 59, 43, 0.10, "-05:00" ),
- 'date (noon UTC)' => Date.new( 2002, 12, 14 )
- ]
----
-test: Binary
-todo: true
-yaml: |
- canonical: !binary "\
- R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\
- OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\
- +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\
- AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="
- base64: !binary |
- R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
- OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
- +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
- AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
- description: >
- The binary value above is a tiny arrow
- encoded as a gif image.
-ruby-setup: |
- arrow_gif = "GIF89a\f\000\f\000\204\000\000\377\377\367\365\365\356\351\351\345fff\000\000\000\347\347\347^^^\363\363\355\216\216\216\340\340\340\237\237\237\223\223\223\247\247\247\236\236\236iiiccc\243\243\243\204\204\204\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371!\376\016Made with GIMP\000,\000\000\000\000\f\000\f\000\000\005, \216\2010\236\343@\024\350i\020\304\321\212\010\034\317\200M$z\357\3770\205p\270\2601f\r\e\316\001\303\001\036\020' \202\n\001\000;"
-ruby: |
- {
- 'canonical' => arrow_gif,
- 'base64' => arrow_gif,
- 'description' => "The binary value above is a tiny arrow encoded as a gif image.\n"
- }
-
----
-test: Merge key
-todo: true
-yaml: |
- ---
- - &CENTER { x: 1, y: 2 }
- - &LEFT { x: 0, y: 2 }
- - &BIG { r: 10 }
- - &SMALL { r: 1 }
-
- # All the following maps are equal:
-
- - # Explicit keys
- x: 1
- y: 2
- r: 10
- label: center/big
-
- - # Merge one map
- << : *CENTER
- r: 10
- label: center/big
-
- - # Merge multiple maps
- << : [ *CENTER, *BIG ]
- label: center/big
-
- - # Override
- << : [ *BIG, *LEFT, *SMALL ]
- x: 1
- label: center/big
-
-ruby-setup: |
- center = { 'x' => 1, 'y' => 2 }
- left = { 'x' => 0, 'y' => 2 }
- big = { 'r' => 10 }
- small = { 'r' => 1 }
- node1 = { 'x' => 1, 'y' => 2, 'r' => 10, 'label' => 'center/big' }
- node2 = center.dup
- node2.update( { 'r' => 10, 'label' => 'center/big' } )
- node3 = big.dup
- node3.update( center )
- node3.update( { 'label' => 'center/big' } )
- node4 = small.dup
- node4.update( left )
- node4.update( big )
- node4.update( { 'x' => 1, 'label' => 'center/big' } )
-
-ruby: |
- [
- center, left, big, small, node1, node2, node3, node4
- ]
-
----
-test: Default key
-todo: true
-yaml: |
- --- # Old schema
- link with:
- - library1.dll
- - library2.dll
- --- # New schema
- link with:
- - = : library1.dll
- version: 1.2
- - = : library2.dll
- version: 2.3
-ruby: |
- y = YAML::Stream.new
- y.add( { 'link with' => [ 'library1.dll', 'library2.dll' ] } )
- obj_h = Hash[ 'version' => 1.2 ]
- obj_h.default = 'library1.dll'
- obj_h2 = Hash[ 'version' => 2.3 ]
- obj_h2.default = 'library2.dll'
- y.add( { 'link with' => [ obj_h, obj_h2 ] } )
-documents: 2
-
----
-test: Special keys
-todo: true
-yaml: |
- "!": These three keys
- "&": had to be quoted
- "=": and are normal strings.
- # NOTE: the following node should NOT be serialized this way.
- encoded node :
- !special '!' : '!type'
- !special|canonical '&' : 12
- = : value
- # The proper way to serialize the above node is as follows:
- node : !!type &12 value
-ruby: |
- { '!' => 'These three keys', '&' => 'had to be quoted',
- '=' => 'and are normal strings.',
- 'encoded node' => YAML::PrivateType.new( 'type', 'value' ),
- 'node' => YAML::PrivateType.new( 'type', 'value' ) }
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsTypeTransfers.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsTypeTransfers.yml
deleted file mode 100644
index e96b5536..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/YtsTypeTransfers.yml
+++ /dev/null
@@ -1,266 +0,0 @@
---- %YAML:1.0
-test: Strings
-brief: >
- Any group of characters beginning with an
- alphabetic or numeric character is a string,
- unless it belongs to one of the groups below
- (such as an Integer or Time).
-yaml: |
- String
-php: |
- 'String'
----
-test: String characters
-brief: >
- A string can contain any alphabetic or
- numeric character, along with many
- punctuation characters, including the
- period, dash, space, quotes, exclamation, and
- question mark.
-yaml: |
- - What's Yaml?
- - It's for writing data structures in plain text.
- - And?
- - And what? That's not good enough for you?
- - No, I mean, "And what about Yaml?"
- - Oh, oh yeah. Uh.. Yaml for Ruby.
-php: |
- [
- "What's Yaml?",
- "It's for writing data structures in plain text.",
- "And?",
- "And what? That's not good enough for you?",
- "No, I mean, \"And what about Yaml?\"",
- "Oh, oh yeah. Uh.. Yaml for Ruby."
- ]
----
-test: Indicators in Strings
-brief: >
- Be careful using indicators in strings. In particular,
- the comma, colon, and pound sign must be used carefully.
-yaml: |
- the colon followed by space is an indicator: but is a string:right here
- same for the pound sign: here we have it#in a string
- the comma can, honestly, be used in most cases: [ but not in, inline collections ]
-php: |
- [
- 'the colon followed by space is an indicator' => 'but is a string:right here',
- 'same for the pound sign' => 'here we have it#in a string',
- 'the comma can, honestly, be used in most cases' => ['but not in', 'inline collections']
- ]
----
-test: Forcing Strings
-brief: >
- Any YAML type can be forced into a string using the
- explicit !!str method.
-yaml: |
- date string: !!str 2001-08-01
- number string: !!str 192
-php: |
- [
- 'date string' => '2001-08-01',
- 'number string' => '192'
- ]
----
-test: Single-quoted Strings
-brief: >
- You can also enclose your strings within single quotes,
- which allows use of slashes, colons, and other indicators
- freely. Inside single quotes, you can represent a single
- quote in your string by using two single quotes next to
- each other.
-yaml: |
- all my favorite symbols: '#:!/%.)'
- a few i hate: '&(*'
- why do i hate them?: 'it''s very hard to explain'
- entities: '&pound; me'
-php: |
- [
- 'all my favorite symbols' => '#:!/%.)',
- 'a few i hate' => '&(*',
- 'why do i hate them?' => 'it\'s very hard to explain',
- 'entities' => '&pound; me'
- ]
----
-test: Double-quoted Strings
-brief: >
- Enclosing strings in double quotes allows you
- to use escapings to represent ASCII and
- Unicode characters.
-yaml: |
- i know where i want my line breaks: "one here\nand another here\n"
-php: |
- [
- 'i know where i want my line breaks' => "one here\nand another here\n"
- ]
----
-test: Multi-line Quoted Strings
-todo: true
-brief: >
- Both single- and double-quoted strings may be
- carried on to new lines in your YAML document.
- They must be indented a step and indentation
- is interpreted as a single space.
-yaml: |
- i want a long string: "so i'm going to
- let it go on and on to other lines
- until i end it with a quote."
-php: |
- ['i want a long string' => "so i'm going to ".
- "let it go on and on to other lines ".
- "until i end it with a quote."
- ]
-
----
-test: Plain scalars
-todo: true
-brief: >
- Unquoted strings may also span multiple lines, if they
- are free of YAML space indicators and indented.
-yaml: |
- - My little toe is broken in two places;
- - I'm crazy to have skied this way;
- - I'm not the craziest he's seen, since there was always the German guy
- who skied for 3 hours on a broken shin bone (just below the kneecap);
- - Nevertheless, second place is respectable, and he doesn't
- recommend going for the record;
- - He's going to put my foot in plaster for a month;
- - This would impair my skiing ability somewhat for the
- duration, as can be imagined.
-php: |
- [
- "My little toe is broken in two places;",
- "I'm crazy to have skied this way;",
- "I'm not the craziest he's seen, since there was always ".
- "the German guy who skied for 3 hours on a broken shin ".
- "bone (just below the kneecap);",
- "Nevertheless, second place is respectable, and he doesn't ".
- "recommend going for the record;",
- "He's going to put my foot in plaster for a month;",
- "This would impair my skiing ability somewhat for the duration, ".
- "as can be imagined."
- ]
----
-test: 'Null'
-brief: >
- You can use the tilde '~' character for a null value.
-yaml: |
- name: Mr. Show
- hosted by: Bob and David
- date of next season: ~
-php: |
- [
- 'name' => 'Mr. Show',
- 'hosted by' => 'Bob and David',
- 'date of next season' => null
- ]
----
-test: Boolean
-brief: >
- You can use 'true' and 'false' for Boolean values.
-yaml: |
- Is Gus a Liar?: true
- Do I rely on Gus for Sustenance?: false
-php: |
- [
- 'Is Gus a Liar?' => true,
- 'Do I rely on Gus for Sustenance?' => false
- ]
----
-test: Integers
-dump_skip: true
-brief: >
- An integer is a series of numbers, optionally
- starting with a positive or negative sign. Integers
- may also contain commas for readability.
-yaml: |
- zero: 0
- simple: 12
-php: |
- [
- 'zero' => 0,
- 'simple' => 12,
- ]
----
-test: Positive Big Integer
-deprecated: true
-dump_skip: true
-brief: >
- An integer is a series of numbers, optionally
- starting with a positive or negative sign. Integers
- may also contain commas for readability.
-yaml: |
- one-thousand: 1,000
-php: |
- [
- 'one-thousand' => 1000.0,
- ]
----
-test: Negative Big Integer
-deprecated: true
-dump_skip: true
-brief: >
- An integer is a series of numbers, optionally
- starting with a positive or negative sign. Integers
- may also contain commas for readability.
-yaml: |
- negative one-thousand: -1,000
-php: |
- [
- 'negative one-thousand' => -1000.0
- ]
----
-test: Floats
-dump_skip: true
-brief: >
- Floats are represented by numbers with decimals,
- allowing for scientific notation, as well as
- positive and negative infinity and "not a number."
-yaml: |
- a simple float: 2.00
- scientific notation: 1.00009e+3
-php: |
- [
- 'a simple float' => 2.0,
- 'scientific notation' => 1000.09
- ]
----
-test: Larger Float
-dump_skip: true
-deprecated: true
-brief: >
- Floats are represented by numbers with decimals,
- allowing for scientific notation, as well as
- positive and negative infinity and "not a number."
-yaml: |
- larger float: 1,000.09
-php: |
- [
- 'larger float' => 1000.09,
- ]
----
-test: Time
-todo: true
-brief: >
- You can represent timestamps by using
- ISO8601 format, or a variation which
- allows spaces between the date, time and
- time zone.
-yaml: |
- iso8601: 2001-12-14t21:59:43.10-05:00
- space separated: 2001-12-14 21:59:43.10 -05:00
-php: |
- [
- 'iso8601' => mktime( 2001, 12, 14, 21, 59, 43, 0.10, "-05:00" ),
- 'space separated' => mktime( 2001, 12, 14, 21, 59, 43, 0.10, "-05:00" )
- ]
----
-test: Date
-todo: true
-brief: >
- A date can be represented by its year,
- month and day in ISO8601 order.
-yaml: |
- 1976-07-31
-php: |
- date( 1976, 7, 31 )
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/arrow.gif b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/arrow.gif
deleted file mode 100644
index 443aca42..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/arrow.gif
+++ /dev/null
Binary files differ
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/booleanMappingKeys.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/booleanMappingKeys.yml
deleted file mode 100644
index 88287f1b..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/booleanMappingKeys.yml
+++ /dev/null
@@ -1,11 +0,0 @@
---- %YAML:1.0
-test: Miscellaneous
-spec: 2.21
-yaml: |
- true: true
- false: false
-php: |
- [
- 'true' => true,
- 'false' => false,
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/embededPhp.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/embededPhp.yml
deleted file mode 100644
index ec456ed0..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/embededPhp.yml
+++ /dev/null
@@ -1 +0,0 @@
-value: <?php echo 1 + 2 + 3 ?>
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/escapedCharacters.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/escapedCharacters.yml
deleted file mode 100644
index 87d352db..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/escapedCharacters.yml
+++ /dev/null
@@ -1,155 +0,0 @@
-test: outside double quotes
-yaml: |
- \0 \ \a \b \n
-php: |
- "\\0 \\ \\a \\b \\n"
----
-test: 'null'
-yaml: |
- "\0"
-php: |
- "\x00"
----
-test: bell
-yaml: |
- "\a"
-php: |
- "\x07"
----
-test: backspace
-yaml: |
- "\b"
-php: |
- "\x08"
----
-test: horizontal tab (1)
-yaml: |
- "\t"
-php: |
- "\x09"
----
-test: horizontal tab (2)
-yaml: |
- "\ "
-php: |
- "\x09"
----
-test: line feed
-yaml: |
- "\n"
-php: |
- "\x0a"
----
-test: vertical tab
-yaml: |
- "\v"
-php: |
- "\x0b"
----
-test: form feed
-yaml: |
- "\f"
-php: |
- "\x0c"
----
-test: carriage return
-yaml: |
- "\r"
-php: |
- "\x0d"
----
-test: escape
-yaml: |
- "\e"
-php: |
- "\x1b"
----
-test: space
-yaml: |
- "\ "
-php: |
- "\x20"
----
-test: slash
-yaml: |
- "\/"
-php: |
- "\x2f"
----
-test: backslash
-yaml: |
- "\\"
-php: |
- "\\"
----
-test: Unicode next line
-yaml: |
- "\N"
-php: |
- "\xc2\x85"
----
-test: Unicode non-breaking space
-yaml: |
- "\_"
-php: |
- "\xc2\xa0"
----
-test: Unicode line separator
-yaml: |
- "\L"
-php: |
- "\xe2\x80\xa8"
----
-test: Unicode paragraph separator
-yaml: |
- "\P"
-php: |
- "\xe2\x80\xa9"
----
-test: Escaped 8-bit Unicode
-yaml: |
- "\x42"
-php: |
- "B"
----
-test: Escaped 16-bit Unicode
-yaml: |
- "\u20ac"
-php: |
- "\xe2\x82\xac"
----
-test: Escaped 32-bit Unicode
-yaml: |
- "\U00000043"
-php: |
- "C"
----
-test: Example 5.13 Escaped Characters
-note: |
- Currently throws an error parsing first line. Maybe Symfony Yaml doesn't support
- continuation of string across multiple lines? Keeping test here but disabled.
-todo: true
-yaml: |
- "Fun with \\
- \" \a \b \e \f \
- \n \r \t \v \0 \
- \ \_ \N \L \P \
- \x41 \u0041 \U00000041"
-php: |
- "Fun with \x5C\n\x22 \x07 \x08 \x1B \x0C\n\x0A \x0D \x09 \x0B \x00\n\x20 \xA0 \x85 \xe2\x80\xa8 \xe2\x80\xa9\nA A A"
----
-test: Double quotes with a line feed
-yaml: |
- { double: "some value\n \"some quoted string\" and 'some single quotes one'" }
-php: |
- [
- 'double' => "some value\n \"some quoted string\" and 'some single quotes one'"
- ]
----
-test: Backslashes
-yaml: |
- { single: 'foo\Var', no-quotes: foo\Var, double: "foo\\Var" }
-php: |
- [
- 'single' => 'foo\Var', 'no-quotes' => 'foo\Var', 'double' => 'foo\Var'
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/index.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/index.yml
deleted file mode 100644
index 3216a89e..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/index.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-- escapedCharacters
-- sfComments
-- sfCompact
-- sfTests
-- sfObjects
-- sfMergeKey
-- sfQuotes
-- YtsAnchorAlias
-- YtsBasicTests
-- YtsBlockMapping
-- YtsDocumentSeparator
-- YtsErrorTests
-- YtsFlowCollections
-- YtsFoldedScalars
-- YtsNullsAndEmpties
-- YtsSpecificationExamples
-- YtsTypeTransfers
-- unindentedCollections
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyBooleanMappingKeys.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyBooleanMappingKeys.yml
deleted file mode 100644
index db950165..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyBooleanMappingKeys.yml
+++ /dev/null
@@ -1,23 +0,0 @@
---- %YAML:1.0
-test: Miscellaneous
-spec: 2.21
-yaml: |
- true: true
- false: false
-php: |
- [
- 1 => true,
- 0 => false,
- ]
----
-test: Boolean
-yaml: |
- false: used as key
- logical: true
- answer: false
-php: |
- [
- false => 'used as key',
- 'logical' => true,
- 'answer' => false
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyNonStringKeys.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyNonStringKeys.yml
deleted file mode 100644
index 4e282018..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyNonStringKeys.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-- legacyBooleanMappingKeys
-- legacyNullMappingKey
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyNullMappingKey.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyNullMappingKey.yml
deleted file mode 100644
index 14f93c2d..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/legacyNullMappingKey.yml
+++ /dev/null
@@ -1,9 +0,0 @@
---- %YAML:1.0
-test: Miscellaneous
-spec: 2.21
-yaml: |
- null: ~
-php: |
- [
- '' => null,
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/multiple_lines_as_literal_block.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/multiple_lines_as_literal_block.yml
deleted file mode 100644
index 9d72f09b..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/multiple_lines_as_literal_block.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-data:
- single_line: 'foo bar baz'
- multi_line: |
- foo
- line with trailing spaces:
-
- bar
- integer like line:
- 123456789
- empty line:
-
- baz
- multi_line_with_carriage_return: "foo\nbar\r\nbaz"
- nested_inlined_multi_line_string: { inlined_multi_line: "foo\nbar\r\nempty line:\n\nbaz" }
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/multiple_lines_as_literal_block_leading_space_in_first_line.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/multiple_lines_as_literal_block_leading_space_in_first_line.yml
deleted file mode 100644
index 3f2dedd1..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/multiple_lines_as_literal_block_leading_space_in_first_line.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-data:
- multi_line: |4
- the first line has leading spaces
- The second line does not.
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/nonStringKeys.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/nonStringKeys.yml
deleted file mode 100644
index 354b0791..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/nonStringKeys.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-- booleanMappingKeys
-- numericMappingKeys
-- nullMappingKey
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/not_readable.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/not_readable.yml
deleted file mode 100644
index 3216a89e..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/not_readable.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-- escapedCharacters
-- sfComments
-- sfCompact
-- sfTests
-- sfObjects
-- sfMergeKey
-- sfQuotes
-- YtsAnchorAlias
-- YtsBasicTests
-- YtsBlockMapping
-- YtsDocumentSeparator
-- YtsErrorTests
-- YtsFlowCollections
-- YtsFoldedScalars
-- YtsNullsAndEmpties
-- YtsSpecificationExamples
-- YtsTypeTransfers
-- unindentedCollections
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/nullMappingKey.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/nullMappingKey.yml
deleted file mode 100644
index cd90f7b4..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/nullMappingKey.yml
+++ /dev/null
@@ -1,9 +0,0 @@
---- %YAML:1.0
-test: Miscellaneous
-spec: 2.21
-yaml: |
- null: ~
-php: |
- [
- 'null' => null,
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/numericMappingKeys.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/numericMappingKeys.yml
deleted file mode 100644
index 246447e4..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/numericMappingKeys.yml
+++ /dev/null
@@ -1,23 +0,0 @@
---- %YAML:1.0
-test: A sequence with an unordered array
-brief: >
- A sequence with an unordered array
-yaml: |
- 1: foo
- 0: bar
-php: |
- [1 => 'foo', 0 => 'bar']
----
-test: Integers as Map Keys
-brief: >
- An integer can be used as dictionary key.
-yaml: |
- 1: one
- 2: two
- 3: three
-php: |
- [
- 1 => 'one',
- 2 => 'two',
- 3 => 'three'
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfComments.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfComments.yml
deleted file mode 100644
index af3ab385..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfComments.yml
+++ /dev/null
@@ -1,76 +0,0 @@
---- %YAML:1.0
-test: Comments at the end of a line
-brief: >
- Comments at the end of a line
-yaml: |
- ex1: "foo # bar"
- ex2: "foo # bar" # comment
- ex3: 'foo # bar' # comment
- ex4: foo # comment
- ex5: foo # comment with tab before
- ex6: foo#foo # comment here
- ex7: foo # ignore me # and me
-php: |
- ['ex1' => 'foo # bar', 'ex2' => 'foo # bar', 'ex3' => 'foo # bar', 'ex4' => 'foo', 'ex5' => 'foo', 'ex6' => 'foo#foo', 'ex7' => 'foo']
----
-test: Comments in the middle
-brief: >
- Comments in the middle
-yaml: |
- foo:
- # some comment
- # some comment
- bar: foo
- # some comment
- # some comment
-php: |
- ['foo' => ['bar' => 'foo']]
----
-test: Comments on a hash line
-brief: >
- Comments on a hash line
-yaml: |
- foo: # a comment
- foo: bar # a comment
-php: |
- ['foo' => ['foo' => 'bar']]
----
-test: 'Value starting with a #'
-brief: >
- 'Value starting with a #'
-yaml: |
- foo: '#bar'
-php: |
- ['foo' => '#bar']
----
-test: Document starting with a comment and a separator
-brief: >
- Commenting before document start is allowed
-yaml: |
- # document comment
- ---
- foo: bar # a comment
-php: |
- ['foo' => 'bar']
----
-test: Comment containing a colon on a hash line
-brief: >
- Comment containing a colon on a scalar line
-yaml: 'foo # comment: this is also part of the comment'
-php: |
- 'foo'
----
-test: 'Hash key containing a #'
-brief: >
- 'Hash key containing a #'
-yaml: 'foo#bar: baz'
-php: |
- ['foo#bar' => 'baz']
----
-test: 'Hash key ending with a space and a #'
-brief: >
- 'Hash key ending with a space and a #'
-yaml: |
- 'foo #': baz
-php: |
- ['foo #' => 'baz']
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfCompact.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfCompact.yml
deleted file mode 100644
index 8cadae2c..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfCompact.yml
+++ /dev/null
@@ -1,159 +0,0 @@
---- %YAML:1.0
-test: Compact notation
-brief: |
- Compact notation for sets of mappings with single element
-yaml: |
- ---
- # products purchased
- - item : Super Hoop
- - item : Basketball
- quantity: 1
- - item:
- name: Big Shoes
- nick: Biggies
- quantity: 1
-php: |
- [
- [
- 'item' => 'Super Hoop',
- ],
- [
- 'item' => 'Basketball',
- 'quantity' => 1,
- ],
- [
- 'item' => [
- 'name' => 'Big Shoes',
- 'nick' => 'Biggies'
- ],
- 'quantity' => 1
- ]
- ]
----
-test: Compact notation combined with inline notation
-brief: |
- Combinations of compact and inline notation are allowed
-yaml: |
- ---
- items:
- - { item: Super Hoop, quantity: 1 }
- - [ Basketball, Big Shoes ]
-php: |
- [
- 'items' => [
- [
- 'item' => 'Super Hoop',
- 'quantity' => 1,
- ],
- [
- 'Basketball',
- 'Big Shoes'
- ]
- ]
- ]
---- %YAML:1.0
-test: Compact notation
-brief: |
- Compact notation for sets of mappings with single element
-yaml: |
- ---
- # products purchased
- - item : Super Hoop
- - item : Basketball
- quantity: 1
- - item:
- name: Big Shoes
- nick: Biggies
- quantity: 1
-php: |
- [
- [
- 'item' => 'Super Hoop',
- ],
- [
- 'item' => 'Basketball',
- 'quantity' => 1,
- ],
- [
- 'item' => [
- 'name' => 'Big Shoes',
- 'nick' => 'Biggies'
- ],
- 'quantity' => 1
- ]
- ]
----
-test: Compact notation combined with inline notation
-brief: |
- Combinations of compact and inline notation are allowed
-yaml: |
- ---
- items:
- - { item: Super Hoop, quantity: 1 }
- - [ Basketball, Big Shoes ]
-php: |
- [
- 'items' => [
- [
- 'item' => 'Super Hoop',
- 'quantity' => 1,
- ],
- [
- 'Basketball',
- 'Big Shoes'
- ]
- ]
- ]
---- %YAML:1.0
-test: Compact notation
-brief: |
- Compact notation for sets of mappings with single element
-yaml: |
- ---
- # products purchased
- - item : Super Hoop
- - item : Basketball
- quantity: 1
- - item:
- name: Big Shoes
- nick: Biggies
- quantity: 1
-php: |
- [
- [
- 'item' => 'Super Hoop',
- ],
- [
- 'item' => 'Basketball',
- 'quantity' => 1,
- ],
- [
- 'item' => [
- 'name' => 'Big Shoes',
- 'nick' => 'Biggies'
- ],
- 'quantity' => 1
- ]
- ]
----
-test: Compact notation combined with inline notation
-brief: |
- Combinations of compact and inline notation are allowed
-yaml: |
- ---
- items:
- - { item: Super Hoop, quantity: 1 }
- - [ Basketball, Big Shoes ]
-php: |
- [
- 'items' => [
- [
- 'item' => 'Super Hoop',
- 'quantity' => 1,
- ],
- [
- 'Basketball',
- 'Big Shoes'
- ]
- ]
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfMergeKey.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfMergeKey.yml
deleted file mode 100644
index af787ae4..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfMergeKey.yml
+++ /dev/null
@@ -1,61 +0,0 @@
---- %YAML:1.0
-test: Simple In Place Substitution
-brief: >
- If you want to reuse an entire alias, only overwriting what is different
- you can use a << in place substitution. This is not part of the official
- YAML spec, but a widely implemented extension. See the following URL for
- details: http://yaml.org/type/merge.html
-yaml: |
- foo: &foo
- a: Steve
- b: Clark
- c: Brian
- e: notnull
- bar:
- a: before
- d: other
- e: ~
- <<: *foo
- b: new
- x: Oren
- c:
- foo: bar
- bar: foo
- bar_inline: {a: before, d: other, <<: *foo, b: new, x: Oren, c: { foo: bar, bar: foo}}
- foo2: &foo2
- a: Ballmer
- ding: &dong [ fi, fei, fo, fam]
- check:
- <<:
- - *foo
- - *dong
- isit: tested
- head:
- <<: [ *foo , *dong , *foo2 ]
- taz: &taz
- a: Steve
- w:
- p: 1234
- nested:
- <<: *taz
- d: Doug
- w: &nestedref
- p: 12345
- z:
- <<: *nestedref
- head_inline: &head_inline { <<: [ *foo , *dong , *foo2 ] }
- recursive_inline: { <<: *head_inline, c: { <<: *foo2 } }
-php: |
- [
- 'foo' => ['a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull'],
- 'bar' => ['a' => 'before', 'd' => 'other', 'e' => null, 'b' => 'new', 'c' => ['foo' => 'bar', 'bar' => 'foo'], 'x' => 'Oren'],
- 'bar_inline' => ['a' => 'before', 'd' => 'other', 'b' => 'new', 'c' => ['foo' => 'bar', 'bar' => 'foo'], 'e' => 'notnull', 'x' => 'Oren'],
- 'foo2' => ['a' => 'Ballmer'],
- 'ding' => ['fi', 'fei', 'fo', 'fam'],
- 'check' => ['a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam', 'isit' => 'tested'],
- 'head' => ['a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam'],
- 'taz' => ['a' => 'Steve', 'w' => ['p' => 1234]],
- 'nested' => ['a' => 'Steve', 'w' => ['p' => 12345], 'd' => 'Doug', 'z' => ['p' => 12345]],
- 'head_inline' => ['a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam'],
- 'recursive_inline' => ['a' => 'Steve', 'b' => 'Clark', 'c' => ['a' => 'Ballmer'], 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam'],
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfObjects.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfObjects.yml
deleted file mode 100644
index 144615f2..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfObjects.yml
+++ /dev/null
@@ -1,11 +0,0 @@
---- %YAML:1.0
-test: Objects
-brief: >
- Comments at the end of a line
-yaml: |
- ex1: "foo # bar"
- ex2: "foo # bar" # comment
- ex3: 'foo # bar' # comment
- ex4: foo # comment
-php: |
- ['ex1' => 'foo # bar', 'ex2' => 'foo # bar', 'ex3' => 'foo # bar', 'ex4' => 'foo']
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfQuotes.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfQuotes.yml
deleted file mode 100644
index c8326fdb..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfQuotes.yml
+++ /dev/null
@@ -1,33 +0,0 @@
---- %YAML:1.0
-test: Some characters at the beginning of a string must be escaped
-brief: >
- Some characters at the beginning of a string must be escaped
-yaml: |
- foo: '| bar'
-php: |
- ['foo' => '| bar']
----
-test: A key can be a quoted string
-brief: >
- A key can be a quoted string
-yaml: |
- "foo1": bar
- 'foo2': bar
- "foo \" bar": bar
- 'foo '' bar': bar
- 'foo3: ': bar
- "foo4: ": bar
- foo5: { "foo \" bar: ": bar, 'foo '' bar: ': bar }
-php: |
- [
- 'foo1' => 'bar',
- 'foo2' => 'bar',
- 'foo " bar' => 'bar',
- 'foo \' bar' => 'bar',
- 'foo3: ' => 'bar',
- 'foo4: ' => 'bar',
- 'foo5' => [
- 'foo " bar: ' => 'bar',
- 'foo \' bar: ' => 'bar',
- ],
- ]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfTests.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfTests.yml
deleted file mode 100644
index 2ea417a7..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/sfTests.yml
+++ /dev/null
@@ -1,140 +0,0 @@
---- %YAML:1.0
-test: Multiple quoted string on one line
-brief: >
- Multiple quoted string on one line
-yaml: |
- stripped_title: { name: "foo bar", help: "bar foo" }
-php: |
- ['stripped_title' => ['name' => 'foo bar', 'help' => 'bar foo']]
----
-test: Empty sequence
-yaml: |
- foo: [ ]
-php: |
- ['foo' => []]
----
-test: Empty value
-yaml: |
- foo:
-php: |
- ['foo' => null]
----
-test: Inline string parsing
-brief: >
- Inline string parsing
-yaml: |
- test: ['complex: string', 'another [string]']
-php: |
- ['test' => ['complex: string', 'another [string]']]
----
-test: Boolean
-brief: >
- Boolean
-yaml: |
- - false
- - true
- - null
- - ~
- - 'false'
- - 'true'
- - 'null'
- - '~'
-php: |
- [
- false,
- true,
- null,
- null,
- 'false',
- 'true',
- 'null',
- '~',
- ]
----
-test: Empty lines in literal blocks
-brief: >
- Empty lines in literal blocks
-yaml: |
- foo:
- bar: |
- foo
-
-
-
- bar
-php: |
- ['foo' => ['bar' => "foo\n\n\n \nbar\n"]]
----
-test: Empty lines in folded blocks
-brief: >
- Empty lines in folded blocks
-yaml: |
- foo:
- bar: >
-
- foo
-
-
- bar
-php: |
- ['foo' => ['bar' => "\nfoo\n\nbar\n"]]
----
-test: IP addresses
-brief: >
- IP addresses
-yaml: |
- foo: 10.0.0.2
-php: |
- ['foo' => '10.0.0.2']
----
-test: A sequence with an embedded mapping
-brief: >
- A sequence with an embedded mapping
-yaml: |
- - foo
- - bar: { bar: foo }
-php: |
- ['foo', ['bar' => ['bar' => 'foo']]]
----
-test: Octal
-brief: as in spec example 2.19, octal value is converted
-yaml: |
- foo: 0123
-php: |
- ['foo' => 83]
----
-test: Octal strings
-brief: Octal notation in a string must remain a string
-yaml: |
- foo: "0123"
-php: |
- ['foo' => '0123']
----
-test: Octal strings
-brief: Octal notation in a string must remain a string
-yaml: |
- foo: '0123'
-php: |
- ['foo' => '0123']
----
-test: Octal strings
-brief: Octal notation in a string must remain a string
-yaml: |
- foo: |
- 0123
-php: |
- ['foo' => "0123\n"]
----
-test: Document as a simple hash
-brief: Document as a simple hash
-yaml: |
- { foo: bar }
-php: |
- ['foo' => 'bar']
----
-test: Document as a simple array
-brief: Document as a simple array
-yaml: |
- [ foo, bar ]
-php: |
- ['foo', 'bar']
diff --git a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/unindentedCollections.yml b/www/wiki/vendor/symfony/yaml/Tests/Fixtures/unindentedCollections.yml
deleted file mode 100644
index c85952df..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/Fixtures/unindentedCollections.yml
+++ /dev/null
@@ -1,82 +0,0 @@
---- %YAML:1.0
-test: Unindented collection
-brief: >
- Unindented collection
-yaml: |
- collection:
- - item1
- - item2
- - item3
-php: |
- ['collection' => ['item1', 'item2', 'item3']]
----
-test: Nested unindented collection (two levels)
-brief: >
- Nested unindented collection
-yaml: |
- collection:
- key:
- - a
- - b
- - c
-php: |
- ['collection' => ['key' => ['a', 'b', 'c']]]
----
-test: Nested unindented collection (three levels)
-brief: >
- Nested unindented collection
-yaml: |
- collection:
- key:
- subkey:
- - one
- - two
- - three
-php: |
- ['collection' => ['key' => ['subkey' => ['one', 'two', 'three']]]]
----
-test: Key/value after unindented collection (1)
-brief: >
- Key/value after unindented collection (1)
-yaml: |
- collection:
- key:
- - a
- - b
- - c
- foo: bar
-php: |
- ['collection' => ['key' => ['a', 'b', 'c']], 'foo' => 'bar']
----
-test: Key/value after unindented collection (at the same level)
-brief: >
- Key/value after unindented collection
-yaml: |
- collection:
- key:
- - a
- - b
- - c
- foo: bar
-php: |
- ['collection' => ['key' => ['a', 'b', 'c'], 'foo' => 'bar']]
----
-test: Shortcut Key after unindented collection
-brief: >
- Key/value after unindented collection
-yaml: |
- collection:
- - key: foo
- foo: bar
-php: |
- ['collection' => [['key' => 'foo', 'foo' => 'bar']]]
----
-test: Shortcut Key after unindented collection with custom spaces
-brief: >
- Key/value after unindented collection
-yaml: |
- collection:
- - key: foo
- foo: bar
-php: |
- ['collection' => [['key' => 'foo', 'foo' => 'bar']]]
diff --git a/www/wiki/vendor/symfony/yaml/Tests/InlineTest.php b/www/wiki/vendor/symfony/yaml/Tests/InlineTest.php
deleted file mode 100644
index 950c7023..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/InlineTest.php
+++ /dev/null
@@ -1,816 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Yaml\Exception\ParseException;
-use Symfony\Component\Yaml\Inline;
-use Symfony\Component\Yaml\Yaml;
-
-class InlineTest extends TestCase
-{
- protected function setUp()
- {
- Inline::initialize(0, 0);
- }
-
- /**
- * @dataProvider getTestsForParse
- */
- public function testParse($yaml, $value, $flags = 0)
- {
- $this->assertSame($value, Inline::parse($yaml, $flags), sprintf('::parse() converts an inline YAML to a PHP structure (%s)', $yaml));
- }
-
- /**
- * @dataProvider getTestsForParseWithMapObjects
- */
- public function testParseWithMapObjects($yaml, $value, $flags = Yaml::PARSE_OBJECT_FOR_MAP)
- {
- $actual = Inline::parse($yaml, $flags);
-
- $this->assertSame(serialize($value), serialize($actual));
- }
-
- /**
- * @dataProvider getTestsForParsePhpConstants
- */
- public function testParsePhpConstants($yaml, $value)
- {
- $actual = Inline::parse($yaml, Yaml::PARSE_CONSTANT);
-
- $this->assertSame($value, $actual);
- }
-
- public function getTestsForParsePhpConstants()
- {
- return [
- ['!php/const Symfony\Component\Yaml\Yaml::PARSE_CONSTANT', Yaml::PARSE_CONSTANT],
- ['!php/const PHP_INT_MAX', PHP_INT_MAX],
- ['[!php/const PHP_INT_MAX]', [PHP_INT_MAX]],
- ['{ foo: !php/const PHP_INT_MAX }', ['foo' => PHP_INT_MAX]],
- ['!php/const NULL', null],
- ];
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage The constant "WRONG_CONSTANT" is not defined
- */
- public function testParsePhpConstantThrowsExceptionWhenUndefined()
- {
- Inline::parse('!php/const WRONG_CONSTANT', Yaml::PARSE_CONSTANT);
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessageRegExp #The string "!php/const PHP_INT_MAX" could not be parsed as a constant.*#
- */
- public function testParsePhpConstantThrowsExceptionOnInvalidType()
- {
- Inline::parse('!php/const PHP_INT_MAX', Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
- }
-
- /**
- * @group legacy
- * @expectedDeprecation The !php/const: tag to indicate dumped PHP constants is deprecated since Symfony 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead on line 1.
- * @dataProvider getTestsForParseLegacyPhpConstants
- */
- public function testDeprecatedConstantTag($yaml, $expectedValue)
- {
- $this->assertSame($expectedValue, Inline::parse($yaml, Yaml::PARSE_CONSTANT));
- }
-
- public function getTestsForParseLegacyPhpConstants()
- {
- return [
- ['!php/const:Symfony\Component\Yaml\Yaml::PARSE_CONSTANT', Yaml::PARSE_CONSTANT],
- ['!php/const:PHP_INT_MAX', PHP_INT_MAX],
- ['[!php/const:PHP_INT_MAX]', [PHP_INT_MAX]],
- ['{ foo: !php/const:PHP_INT_MAX }', ['foo' => PHP_INT_MAX]],
- ['!php/const:NULL', null],
- ];
- }
-
- /**
- * @group legacy
- * @dataProvider getTestsForParseWithMapObjects
- */
- public function testParseWithMapObjectsPassingTrue($yaml, $value)
- {
- $actual = Inline::parse($yaml, false, false, true);
-
- $this->assertSame(serialize($value), serialize($actual));
- }
-
- /**
- * @dataProvider getTestsForDump
- */
- public function testDump($yaml, $value, $parseFlags = 0)
- {
- $this->assertEquals($yaml, Inline::dump($value), sprintf('::dump() converts a PHP structure to an inline YAML (%s)', $yaml));
-
- $this->assertSame($value, Inline::parse(Inline::dump($value), $parseFlags), 'check consistency');
- }
-
- public function testDumpNumericValueWithLocale()
- {
- $locale = setlocale(LC_NUMERIC, 0);
- if (false === $locale) {
- $this->markTestSkipped('Your platform does not support locales.');
- }
-
- try {
- $requiredLocales = ['fr_FR.UTF-8', 'fr_FR.UTF8', 'fr_FR.utf-8', 'fr_FR.utf8', 'French_France.1252'];
- if (false === setlocale(LC_NUMERIC, $requiredLocales)) {
- $this->markTestSkipped('Could not set any of required locales: '.implode(', ', $requiredLocales));
- }
-
- $this->assertEquals('1.2', Inline::dump(1.2));
- $this->assertContains('fr', strtolower(setlocale(LC_NUMERIC, 0)));
- } finally {
- setlocale(LC_NUMERIC, $locale);
- }
- }
-
- public function testHashStringsResemblingExponentialNumericsShouldNotBeChangedToINF()
- {
- $value = '686e444';
-
- $this->assertSame($value, Inline::parse(Inline::dump($value)));
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage Found unknown escape character "\V".
- */
- public function testParseScalarWithNonEscapedBlackslashShouldThrowException()
- {
- Inline::parse('"Foo\Var"');
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testParseScalarWithNonEscapedBlackslashAtTheEndShouldThrowException()
- {
- Inline::parse('"Foo\\"');
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testParseScalarWithIncorrectlyQuotedStringShouldThrowException()
- {
- $value = "'don't do somthin' like that'";
- Inline::parse($value);
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testParseScalarWithIncorrectlyDoubleQuotedStringShouldThrowException()
- {
- $value = '"don"t do somthin" like that"';
- Inline::parse($value);
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testParseInvalidMappingKeyShouldThrowException()
- {
- $value = '{ "foo " bar": "bar" }';
- Inline::parse($value);
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Using a colon after an unquoted mapping key that is not followed by an indication character (i.e. " ", ",", "[", "]", "{", "}") is deprecated since Symfony 3.2 and will throw a ParseException in 4.0 on line 1.
- * throws \Symfony\Component\Yaml\Exception\ParseException in 4.0
- */
- public function testParseMappingKeyWithColonNotFollowedBySpace()
- {
- Inline::parse('{1:""}');
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testParseInvalidMappingShouldThrowException()
- {
- Inline::parse('[foo] bar');
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testParseInvalidSequenceShouldThrowException()
- {
- Inline::parse('{ foo: bar } bar');
- }
-
- public function testParseScalarWithCorrectlyQuotedStringShouldReturnString()
- {
- $value = "'don''t do somthin'' like that'";
- $expect = "don't do somthin' like that";
-
- $this->assertSame($expect, Inline::parseScalar($value));
- }
-
- /**
- * @dataProvider getDataForParseReferences
- */
- public function testParseReferences($yaml, $expected)
- {
- $this->assertSame($expected, Inline::parse($yaml, 0, ['var' => 'var-value']));
- }
-
- /**
- * @group legacy
- * @dataProvider getDataForParseReferences
- */
- public function testParseReferencesAsFifthArgument($yaml, $expected)
- {
- $this->assertSame($expected, Inline::parse($yaml, false, false, false, ['var' => 'var-value']));
- }
-
- public function getDataForParseReferences()
- {
- return [
- 'scalar' => ['*var', 'var-value'],
- 'list' => ['[ *var ]', ['var-value']],
- 'list-in-list' => ['[[ *var ]]', [['var-value']]],
- 'map-in-list' => ['[ { key: *var } ]', [['key' => 'var-value']]],
- 'embedded-mapping-in-list' => ['[ key: *var ]', [['key' => 'var-value']]],
- 'map' => ['{ key: *var }', ['key' => 'var-value']],
- 'list-in-map' => ['{ key: [*var] }', ['key' => ['var-value']]],
- 'map-in-map' => ['{ foo: { bar: *var } }', ['foo' => ['bar' => 'var-value']]],
- ];
- }
-
- public function testParseMapReferenceInSequence()
- {
- $foo = [
- 'a' => 'Steve',
- 'b' => 'Clark',
- 'c' => 'Brian',
- ];
- $this->assertSame([$foo], Inline::parse('[*foo]', 0, ['foo' => $foo]));
- }
-
- /**
- * @group legacy
- */
- public function testParseMapReferenceInSequenceAsFifthArgument()
- {
- $foo = [
- 'a' => 'Steve',
- 'b' => 'Clark',
- 'c' => 'Brian',
- ];
- $this->assertSame([$foo], Inline::parse('[*foo]', false, false, false, ['foo' => $foo]));
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage A reference must contain at least one character at line 1.
- */
- public function testParseUnquotedAsterisk()
- {
- Inline::parse('{ foo: * }');
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage A reference must contain at least one character at line 1.
- */
- public function testParseUnquotedAsteriskFollowedByAComment()
- {
- Inline::parse('{ foo: * #foo }');
- }
-
- /**
- * @dataProvider getReservedIndicators
- */
- public function testParseUnquotedScalarStartingWithReservedIndicator($indicator)
- {
- if (method_exists($this, 'expectExceptionMessage')) {
- $this->expectException(ParseException::class);
- $this->expectExceptionMessage(sprintf('cannot start a plain scalar; you need to quote the scalar at line 1 (near "%sfoo ").', $indicator));
- } else {
- $this->setExpectedException(ParseException::class, sprintf('cannot start a plain scalar; you need to quote the scalar at line 1 (near "%sfoo ").', $indicator));
- }
-
- Inline::parse(sprintf('{ foo: %sfoo }', $indicator));
- }
-
- public function getReservedIndicators()
- {
- return [['@'], ['`']];
- }
-
- /**
- * @dataProvider getScalarIndicators
- */
- public function testParseUnquotedScalarStartingWithScalarIndicator($indicator)
- {
- if (method_exists($this, 'expectExceptionMessage')) {
- $this->expectException(ParseException::class);
- $this->expectExceptionMessage(sprintf('cannot start a plain scalar; you need to quote the scalar at line 1 (near "%sfoo ").', $indicator));
- } else {
- $this->setExpectedException(ParseException::class, sprintf('cannot start a plain scalar; you need to quote the scalar at line 1 (near "%sfoo ").', $indicator));
- }
-
- Inline::parse(sprintf('{ foo: %sfoo }', $indicator));
- }
-
- public function getScalarIndicators()
- {
- return [['|'], ['>']];
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Not quoting the scalar "%bar " starting with the "%" indicator character is deprecated since Symfony 3.1 and will throw a ParseException in 4.0 on line 1.
- * throws \Symfony\Component\Yaml\Exception\ParseException in 4.0
- */
- public function testParseUnquotedScalarStartingWithPercentCharacter()
- {
- Inline::parse('{ foo: %bar }');
- }
-
- /**
- * @dataProvider getDataForIsHash
- */
- public function testIsHash($array, $expected)
- {
- $this->assertSame($expected, Inline::isHash($array));
- }
-
- public function getDataForIsHash()
- {
- return [
- [[], false],
- [[1, 2, 3], false],
- [[2 => 1, 1 => 2, 0 => 3], true],
- [['foo' => 1, 'bar' => 2], true],
- ];
- }
-
- public function getTestsForParse()
- {
- return [
- ['', ''],
- ['null', null],
- ['false', false],
- ['true', true],
- ['12', 12],
- ['-12', -12],
- ['1_2', 12],
- ['_12', '_12'],
- ['12_', 12],
- ['"quoted string"', 'quoted string'],
- ["'quoted string'", 'quoted string'],
- ['12.30e+02', 12.30e+02],
- ['123.45_67', 123.4567],
- ['0x4D2', 0x4D2],
- ['0x_4_D_2_', 0x4D2],
- ['02333', 02333],
- ['0_2_3_3_3', 02333],
- ['.Inf', -log(0)],
- ['-.Inf', log(0)],
- ["'686e444'", '686e444'],
- ['686e444', 646e444],
- ['123456789123456789123456789123456789', '123456789123456789123456789123456789'],
- ['"foo\r\nbar"', "foo\r\nbar"],
- ["'foo#bar'", 'foo#bar'],
- ["'foo # bar'", 'foo # bar'],
- ["'#cfcfcf'", '#cfcfcf'],
- ['::form_base.html.twig', '::form_base.html.twig'],
-
- // Pre-YAML-1.2 booleans
- ["'y'", 'y'],
- ["'n'", 'n'],
- ["'yes'", 'yes'],
- ["'no'", 'no'],
- ["'on'", 'on'],
- ["'off'", 'off'],
-
- ['2007-10-30', gmmktime(0, 0, 0, 10, 30, 2007)],
- ['2007-10-30T02:59:43Z', gmmktime(2, 59, 43, 10, 30, 2007)],
- ['2007-10-30 02:59:43 Z', gmmktime(2, 59, 43, 10, 30, 2007)],
- ['1960-10-30 02:59:43 Z', gmmktime(2, 59, 43, 10, 30, 1960)],
- ['1730-10-30T02:59:43Z', gmmktime(2, 59, 43, 10, 30, 1730)],
-
- ['"a \\"string\\" with \'quoted strings inside\'"', 'a "string" with \'quoted strings inside\''],
- ["'a \"string\" with ''quoted strings inside'''", 'a "string" with \'quoted strings inside\''],
-
- // sequences
- // urls are no key value mapping. see #3609. Valid yaml "key: value" mappings require a space after the colon
- ['[foo, http://urls.are/no/mappings, false, null, 12]', ['foo', 'http://urls.are/no/mappings', false, null, 12]],
- ['[ foo , bar , false , null , 12 ]', ['foo', 'bar', false, null, 12]],
- ['[\'foo,bar\', \'foo bar\']', ['foo,bar', 'foo bar']],
-
- // mappings
- ['{foo: bar,bar: foo,"false": false, "null": null,integer: 12}', ['foo' => 'bar', 'bar' => 'foo', 'false' => false, 'null' => null, 'integer' => 12]],
- ['{ foo : bar, bar : foo, "false" : false, "null" : null, integer : 12 }', ['foo' => 'bar', 'bar' => 'foo', 'false' => false, 'null' => null, 'integer' => 12]],
- ['{foo: \'bar\', bar: \'foo: bar\'}', ['foo' => 'bar', 'bar' => 'foo: bar']],
- ['{\'foo\': \'bar\', "bar": \'foo: bar\'}', ['foo' => 'bar', 'bar' => 'foo: bar']],
- ['{\'foo\'\'\': \'bar\', "bar\"": \'foo: bar\'}', ['foo\'' => 'bar', 'bar"' => 'foo: bar']],
- ['{\'foo: \': \'bar\', "bar: ": \'foo: bar\'}', ['foo: ' => 'bar', 'bar: ' => 'foo: bar']],
- ['{"foo:bar": "baz"}', ['foo:bar' => 'baz']],
- ['{"foo":"bar"}', ['foo' => 'bar']],
-
- // nested sequences and mappings
- ['[foo, [bar, foo]]', ['foo', ['bar', 'foo']]],
- ['[foo, {bar: foo}]', ['foo', ['bar' => 'foo']]],
- ['{ foo: {bar: foo} }', ['foo' => ['bar' => 'foo']]],
- ['{ foo: [bar, foo] }', ['foo' => ['bar', 'foo']]],
- ['{ foo:{bar: foo} }', ['foo' => ['bar' => 'foo']]],
- ['{ foo:[bar, foo] }', ['foo' => ['bar', 'foo']]],
-
- ['[ foo, [ bar, foo ] ]', ['foo', ['bar', 'foo']]],
-
- ['[{ foo: {bar: foo} }]', [['foo' => ['bar' => 'foo']]]],
-
- ['[foo, [bar, [foo, [bar, foo]], foo]]', ['foo', ['bar', ['foo', ['bar', 'foo']], 'foo']]],
-
- ['[foo, {bar: foo, foo: [foo, {bar: foo}]}, [foo, {bar: foo}]]', ['foo', ['bar' => 'foo', 'foo' => ['foo', ['bar' => 'foo']]], ['foo', ['bar' => 'foo']]]],
-
- ['[foo, bar: { foo: bar }]', ['foo', '1' => ['bar' => ['foo' => 'bar']]]],
- ['[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']', ['foo', '@foo.baz', ['%foo%' => 'foo is %foo%', 'bar' => '%foo%'], true, '@service_container']],
- ];
- }
-
- public function getTestsForParseWithMapObjects()
- {
- return [
- ['', ''],
- ['null', null],
- ['false', false],
- ['true', true],
- ['12', 12],
- ['-12', -12],
- ['"quoted string"', 'quoted string'],
- ["'quoted string'", 'quoted string'],
- ['12.30e+02', 12.30e+02],
- ['0x4D2', 0x4D2],
- ['02333', 02333],
- ['.Inf', -log(0)],
- ['-.Inf', log(0)],
- ["'686e444'", '686e444'],
- ['686e444', 646e444],
- ['123456789123456789123456789123456789', '123456789123456789123456789123456789'],
- ['"foo\r\nbar"', "foo\r\nbar"],
- ["'foo#bar'", 'foo#bar'],
- ["'foo # bar'", 'foo # bar'],
- ["'#cfcfcf'", '#cfcfcf'],
- ['::form_base.html.twig', '::form_base.html.twig'],
-
- ['2007-10-30', gmmktime(0, 0, 0, 10, 30, 2007)],
- ['2007-10-30T02:59:43Z', gmmktime(2, 59, 43, 10, 30, 2007)],
- ['2007-10-30 02:59:43 Z', gmmktime(2, 59, 43, 10, 30, 2007)],
- ['1960-10-30 02:59:43 Z', gmmktime(2, 59, 43, 10, 30, 1960)],
- ['1730-10-30T02:59:43Z', gmmktime(2, 59, 43, 10, 30, 1730)],
-
- ['"a \\"string\\" with \'quoted strings inside\'"', 'a "string" with \'quoted strings inside\''],
- ["'a \"string\" with ''quoted strings inside'''", 'a "string" with \'quoted strings inside\''],
-
- // sequences
- // urls are no key value mapping. see #3609. Valid yaml "key: value" mappings require a space after the colon
- ['[foo, http://urls.are/no/mappings, false, null, 12]', ['foo', 'http://urls.are/no/mappings', false, null, 12]],
- ['[ foo , bar , false , null , 12 ]', ['foo', 'bar', false, null, 12]],
- ['[\'foo,bar\', \'foo bar\']', ['foo,bar', 'foo bar']],
-
- // mappings
- ['{foo: bar,bar: foo,"false": false,"null": null,integer: 12}', (object) ['foo' => 'bar', 'bar' => 'foo', 'false' => false, 'null' => null, 'integer' => 12], Yaml::PARSE_OBJECT_FOR_MAP],
- ['{ foo : bar, bar : foo, "false" : false, "null" : null, integer : 12 }', (object) ['foo' => 'bar', 'bar' => 'foo', 'false' => false, 'null' => null, 'integer' => 12], Yaml::PARSE_OBJECT_FOR_MAP],
- ['{foo: \'bar\', bar: \'foo: bar\'}', (object) ['foo' => 'bar', 'bar' => 'foo: bar']],
- ['{\'foo\': \'bar\', "bar": \'foo: bar\'}', (object) ['foo' => 'bar', 'bar' => 'foo: bar']],
- ['{\'foo\'\'\': \'bar\', "bar\"": \'foo: bar\'}', (object) ['foo\'' => 'bar', 'bar"' => 'foo: bar']],
- ['{\'foo: \': \'bar\', "bar: ": \'foo: bar\'}', (object) ['foo: ' => 'bar', 'bar: ' => 'foo: bar']],
- ['{"foo:bar": "baz"}', (object) ['foo:bar' => 'baz']],
- ['{"foo":"bar"}', (object) ['foo' => 'bar']],
-
- // nested sequences and mappings
- ['[foo, [bar, foo]]', ['foo', ['bar', 'foo']]],
- ['[foo, {bar: foo}]', ['foo', (object) ['bar' => 'foo']]],
- ['{ foo: {bar: foo} }', (object) ['foo' => (object) ['bar' => 'foo']]],
- ['{ foo: [bar, foo] }', (object) ['foo' => ['bar', 'foo']]],
-
- ['[ foo, [ bar, foo ] ]', ['foo', ['bar', 'foo']]],
-
- ['[{ foo: {bar: foo} }]', [(object) ['foo' => (object) ['bar' => 'foo']]]],
-
- ['[foo, [bar, [foo, [bar, foo]], foo]]', ['foo', ['bar', ['foo', ['bar', 'foo']], 'foo']]],
-
- ['[foo, {bar: foo, foo: [foo, {bar: foo}]}, [foo, {bar: foo}]]', ['foo', (object) ['bar' => 'foo', 'foo' => ['foo', (object) ['bar' => 'foo']]], ['foo', (object) ['bar' => 'foo']]]],
-
- ['[foo, bar: { foo: bar }]', ['foo', '1' => (object) ['bar' => (object) ['foo' => 'bar']]]],
- ['[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']', ['foo', '@foo.baz', (object) ['%foo%' => 'foo is %foo%', 'bar' => '%foo%'], true, '@service_container']],
-
- ['{}', new \stdClass()],
- ['{ foo : bar, bar : {} }', (object) ['foo' => 'bar', 'bar' => new \stdClass()]],
- ['{ foo : [], bar : {} }', (object) ['foo' => [], 'bar' => new \stdClass()]],
- ['{foo: \'bar\', bar: {} }', (object) ['foo' => 'bar', 'bar' => new \stdClass()]],
- ['{\'foo\': \'bar\', "bar": {}}', (object) ['foo' => 'bar', 'bar' => new \stdClass()]],
- ['{\'foo\': \'bar\', "bar": \'{}\'}', (object) ['foo' => 'bar', 'bar' => '{}']],
-
- ['[foo, [{}, {}]]', ['foo', [new \stdClass(), new \stdClass()]]],
- ['[foo, [[], {}]]', ['foo', [[], new \stdClass()]]],
- ['[foo, [[{}, {}], {}]]', ['foo', [[new \stdClass(), new \stdClass()], new \stdClass()]]],
- ['[foo, {bar: {}}]', ['foo', '1' => (object) ['bar' => new \stdClass()]]],
- ];
- }
-
- public function getTestsForDump()
- {
- return [
- ['null', null],
- ['false', false],
- ['true', true],
- ['12', 12],
- ["'1_2'", '1_2'],
- ['_12', '_12'],
- ["'12_'", '12_'],
- ["'quoted string'", 'quoted string'],
- ['!!float 1230', 12.30e+02],
- ['1234', 0x4D2],
- ['1243', 02333],
- ["'0x_4_D_2_'", '0x_4_D_2_'],
- ["'0_2_3_3_3'", '0_2_3_3_3'],
- ['.Inf', -log(0)],
- ['-.Inf', log(0)],
- ["'686e444'", '686e444'],
- ['"foo\r\nbar"', "foo\r\nbar"],
- ["'foo#bar'", 'foo#bar'],
- ["'foo # bar'", 'foo # bar'],
- ["'#cfcfcf'", '#cfcfcf'],
-
- ["'a \"string\" with ''quoted strings inside'''", 'a "string" with \'quoted strings inside\''],
-
- ["'-dash'", '-dash'],
- ["'-'", '-'],
-
- // Pre-YAML-1.2 booleans
- ["'y'", 'y'],
- ["'n'", 'n'],
- ["'yes'", 'yes'],
- ["'no'", 'no'],
- ["'on'", 'on'],
- ["'off'", 'off'],
-
- // sequences
- ['[foo, bar, false, null, 12]', ['foo', 'bar', false, null, 12]],
- ['[\'foo,bar\', \'foo bar\']', ['foo,bar', 'foo bar']],
-
- // mappings
- ['{ foo: bar, bar: foo, \'false\': false, \'null\': null, integer: 12 }', ['foo' => 'bar', 'bar' => 'foo', 'false' => false, 'null' => null, 'integer' => 12]],
- ['{ foo: bar, bar: \'foo: bar\' }', ['foo' => 'bar', 'bar' => 'foo: bar']],
-
- // nested sequences and mappings
- ['[foo, [bar, foo]]', ['foo', ['bar', 'foo']]],
-
- ['[foo, [bar, [foo, [bar, foo]], foo]]', ['foo', ['bar', ['foo', ['bar', 'foo']], 'foo']]],
-
- ['{ foo: { bar: foo } }', ['foo' => ['bar' => 'foo']]],
-
- ['[foo, { bar: foo }]', ['foo', ['bar' => 'foo']]],
-
- ['[foo, { bar: foo, foo: [foo, { bar: foo }] }, [foo, { bar: foo }]]', ['foo', ['bar' => 'foo', 'foo' => ['foo', ['bar' => 'foo']]], ['foo', ['bar' => 'foo']]]],
-
- ['[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']', ['foo', '@foo.baz', ['%foo%' => 'foo is %foo%', 'bar' => '%foo%'], true, '@service_container']],
-
- ['{ foo: { bar: { 1: 2, baz: 3 } } }', ['foo' => ['bar' => [1 => 2, 'baz' => 3]]]],
- ];
- }
-
- /**
- * @dataProvider getTimestampTests
- */
- public function testParseTimestampAsUnixTimestampByDefault($yaml, $year, $month, $day, $hour, $minute, $second)
- {
- $this->assertSame(gmmktime($hour, $minute, $second, $month, $day, $year), Inline::parse($yaml));
- }
-
- /**
- * @dataProvider getTimestampTests
- */
- public function testParseTimestampAsDateTimeObject($yaml, $year, $month, $day, $hour, $minute, $second, $timezone)
- {
- $expected = new \DateTime($yaml);
- $expected->setTimeZone(new \DateTimeZone('UTC'));
- $expected->setDate($year, $month, $day);
-
- if (\PHP_VERSION_ID >= 70100) {
- $expected->setTime($hour, $minute, $second, 1000000 * ($second - (int) $second));
- } else {
- $expected->setTime($hour, $minute, $second);
- }
-
- $date = Inline::parse($yaml, Yaml::PARSE_DATETIME);
- $this->assertEquals($expected, $date);
- $this->assertSame($timezone, $date->format('O'));
- }
-
- public function getTimestampTests()
- {
- return [
- 'canonical' => ['2001-12-15T02:59:43.1Z', 2001, 12, 15, 2, 59, 43.1, '+0000'],
- 'ISO-8601' => ['2001-12-15t21:59:43.10-05:00', 2001, 12, 16, 2, 59, 43.1, '-0500'],
- 'spaced' => ['2001-12-15 21:59:43.10 -5', 2001, 12, 16, 2, 59, 43.1, '-0500'],
- 'date' => ['2001-12-15', 2001, 12, 15, 0, 0, 0, '+0000'],
- ];
- }
-
- /**
- * @dataProvider getTimestampTests
- */
- public function testParseNestedTimestampListAsDateTimeObject($yaml, $year, $month, $day, $hour, $minute, $second)
- {
- $expected = new \DateTime($yaml);
- $expected->setTimeZone(new \DateTimeZone('UTC'));
- $expected->setDate($year, $month, $day);
- if (\PHP_VERSION_ID >= 70100) {
- $expected->setTime($hour, $minute, $second, 1000000 * ($second - (int) $second));
- } else {
- $expected->setTime($hour, $minute, $second);
- }
-
- $expectedNested = ['nested' => [$expected]];
- $yamlNested = "{nested: [$yaml]}";
-
- $this->assertEquals($expectedNested, Inline::parse($yamlNested, Yaml::PARSE_DATETIME));
- }
-
- /**
- * @dataProvider getDateTimeDumpTests
- */
- public function testDumpDateTime($dateTime, $expected)
- {
- $this->assertSame($expected, Inline::dump($dateTime));
- }
-
- public function getDateTimeDumpTests()
- {
- $tests = [];
-
- $dateTime = new \DateTime('2001-12-15 21:59:43', new \DateTimeZone('UTC'));
- $tests['date-time-utc'] = [$dateTime, '2001-12-15T21:59:43+00:00'];
-
- $dateTime = new \DateTimeImmutable('2001-07-15 21:59:43', new \DateTimeZone('Europe/Berlin'));
- $tests['immutable-date-time-europe-berlin'] = [$dateTime, '2001-07-15T21:59:43+02:00'];
-
- return $tests;
- }
-
- /**
- * @dataProvider getBinaryData
- */
- public function testParseBinaryData($data)
- {
- $this->assertSame('Hello world', Inline::parse($data));
- }
-
- public function getBinaryData()
- {
- return [
- 'enclosed with double quotes' => ['!!binary "SGVsbG8gd29ybGQ="'],
- 'enclosed with single quotes' => ["!!binary 'SGVsbG8gd29ybGQ='"],
- 'containing spaces' => ['!!binary "SGVs bG8gd 29ybGQ="'],
- ];
- }
-
- /**
- * @dataProvider getInvalidBinaryData
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testParseInvalidBinaryData($data, $expectedMessage)
- {
- if (method_exists($this, 'expectException')) {
- $this->expectExceptionMessageRegExp($expectedMessage);
- } else {
- $this->setExpectedExceptionRegExp(ParseException::class, $expectedMessage);
- }
-
- Inline::parse($data);
- }
-
- public function getInvalidBinaryData()
- {
- return [
- 'length not a multiple of four' => ['!!binary "SGVsbG8d29ybGQ="', '/The normalized base64 encoded data \(data without whitespace characters\) length must be a multiple of four \(\d+ bytes given\)/'],
- 'invalid characters' => ['!!binary "SGVsbG8#d29ybGQ="', '/The base64 encoded data \(.*\) contains invalid characters/'],
- 'too many equals characters' => ['!!binary "SGVsbG8gd29yb==="', '/The base64 encoded data \(.*\) contains invalid characters/'],
- 'misplaced equals character' => ['!!binary "SGVsbG8gd29ybG=Q"', '/The base64 encoded data \(.*\) contains invalid characters/'],
- ];
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage Malformed inline YAML string: {this, is not, supported} at line 1.
- */
- public function testNotSupportedMissingValue()
- {
- Inline::parse('{this, is not, supported}');
- }
-
- public function testVeryLongQuotedStrings()
- {
- $longStringWithQuotes = str_repeat("x\r\n\\\"x\"x", 1000);
-
- $yamlString = Inline::dump(['longStringWithQuotes' => $longStringWithQuotes]);
- $arrayFromYaml = Inline::parse($yamlString);
-
- $this->assertEquals($longStringWithQuotes, $arrayFromYaml['longStringWithQuotes']);
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Omitting the key of a mapping is deprecated and will throw a ParseException in 4.0 on line 1.
- */
- public function testOmittedMappingKeyIsParsedAsColon()
- {
- $this->assertSame([':' => 'foo'], Inline::parse('{: foo}'));
- }
-
- /**
- * @dataProvider getTestsForNullValues
- */
- public function testParseMissingMappingValueAsNull($yaml, $expected)
- {
- $this->assertSame($expected, Inline::parse($yaml));
- }
-
- public function getTestsForNullValues()
- {
- return [
- 'null before closing curly brace' => ['{foo:}', ['foo' => null]],
- 'null before comma' => ['{foo:, bar: baz}', ['foo' => null, 'bar' => 'baz']],
- ];
- }
-
- public function testTheEmptyStringIsAValidMappingKey()
- {
- $this->assertSame(['' => 'foo'], Inline::parse('{ "": foo }'));
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Implicit casting of incompatible mapping keys to strings is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead on line 1.
- * @dataProvider getNotPhpCompatibleMappingKeyData
- */
- public function testImplicitStringCastingOfMappingKeysIsDeprecated($yaml, $expected)
- {
- $this->assertSame($expected, Inline::parse($yaml));
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Using the Yaml::PARSE_KEYS_AS_STRINGS flag is deprecated since Symfony 3.4 as it will be removed in 4.0. Quote your keys when they are evaluable instead.
- * @expectedDeprecation Implicit casting of incompatible mapping keys to strings is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead on line 1.
- * @dataProvider getNotPhpCompatibleMappingKeyData
- */
- public function testExplicitStringCastingOfMappingKeys($yaml, $expected)
- {
- $this->assertSame($expected, Yaml::parse($yaml, Yaml::PARSE_KEYS_AS_STRINGS));
- }
-
- public function getNotPhpCompatibleMappingKeyData()
- {
- return [
- 'boolean-true' => ['{true: "foo"}', ['true' => 'foo']],
- 'boolean-false' => ['{false: "foo"}', ['false' => 'foo']],
- 'null' => ['{null: "foo"}', ['null' => 'foo']],
- 'float' => ['{0.25: "foo"}', ['0.25' => 'foo']],
- ];
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Support for the !str tag is deprecated since Symfony 3.4. Use the !!str tag instead on line 1.
- */
- public function testDeprecatedStrTag()
- {
- $this->assertSame(['foo' => 'bar'], Inline::parse('{ foo: !str bar }'));
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage Unexpected end of line, expected one of ",}" at line 1 (near "{abc: 'def'").
- */
- public function testUnfinishedInlineMap()
- {
- Inline::parse("{abc: 'def'");
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/Tests/ParseExceptionTest.php b/www/wiki/vendor/symfony/yaml/Tests/ParseExceptionTest.php
deleted file mode 100644
index 39579ede..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/ParseExceptionTest.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Yaml\Exception\ParseException;
-
-class ParseExceptionTest extends TestCase
-{
- public function testGetMessage()
- {
- $exception = new ParseException('Error message', 42, 'foo: bar', '/var/www/app/config.yml');
- $message = 'Error message in "/var/www/app/config.yml" at line 42 (near "foo: bar")';
-
- $this->assertEquals($message, $exception->getMessage());
- }
-
- public function testGetMessageWithUnicodeInFilename()
- {
- $exception = new ParseException('Error message', 42, 'foo: bar', 'äöü.yml');
- $message = 'Error message in "äöü.yml" at line 42 (near "foo: bar")';
-
- $this->assertEquals($message, $exception->getMessage());
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/Tests/ParserTest.php b/www/wiki/vendor/symfony/yaml/Tests/ParserTest.php
deleted file mode 100644
index 0f25732a..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/ParserTest.php
+++ /dev/null
@@ -1,2304 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Yaml\Exception\ParseException;
-use Symfony\Component\Yaml\Parser;
-use Symfony\Component\Yaml\Tag\TaggedValue;
-use Symfony\Component\Yaml\Yaml;
-
-class ParserTest extends TestCase
-{
- /** @var Parser */
- protected $parser;
-
- protected function setUp()
- {
- $this->parser = new Parser();
- }
-
- protected function tearDown()
- {
- $this->parser = null;
-
- chmod(__DIR__.'/Fixtures/not_readable.yml', 0644);
- }
-
- /**
- * @dataProvider getDataFormSpecifications
- */
- public function testSpecifications($expected, $yaml, $comment, $deprecated)
- {
- $deprecations = [];
-
- if ($deprecated) {
- set_error_handler(function ($type, $msg) use (&$deprecations) {
- if (E_USER_DEPRECATED !== $type) {
- restore_error_handler();
-
- if (class_exists('PHPUnit_Util_ErrorHandler')) {
- return \call_user_func_array('PHPUnit_Util_ErrorHandler::handleError', \func_get_args());
- }
-
- return \call_user_func_array('PHPUnit\Util\ErrorHandler::handleError', \func_get_args());
- }
-
- $deprecations[] = $msg;
- });
- }
-
- $this->assertEquals($expected, var_export($this->parser->parse($yaml), true), $comment);
-
- if ($deprecated) {
- restore_error_handler();
-
- $this->assertCount(1, $deprecations);
- $this->assertContains(true !== $deprecated ? $deprecated : 'Using the comma as a group separator for floats is deprecated since Symfony 3.2 and will be removed in 4.0 on line 1.', $deprecations[0]);
- }
- }
-
- public function getDataFormSpecifications()
- {
- return $this->loadTestsFromFixtureFiles('index.yml');
- }
-
- /**
- * @group legacy
- * @expectedDeprecationMessage Using the Yaml::PARSE_KEYS_AS_STRINGS flag is deprecated since Symfony 3.4 as it will be removed in 4.0. Quote your keys when they are evaluable
- * @dataProvider getNonStringMappingKeysData
- */
- public function testNonStringMappingKeys($expected, $yaml, $comment)
- {
- $this->assertSame($expected, var_export($this->parser->parse($yaml, Yaml::PARSE_KEYS_AS_STRINGS), true), $comment);
- }
-
- public function getNonStringMappingKeysData()
- {
- return $this->loadTestsFromFixtureFiles('nonStringKeys.yml');
- }
-
- /**
- * @group legacy
- * @dataProvider getLegacyNonStringMappingKeysData
- */
- public function testLegacyNonStringMappingKeys($expected, $yaml, $comment)
- {
- $this->assertSame($expected, var_export($this->parser->parse($yaml), true), $comment);
- }
-
- public function getLegacyNonStringMappingKeysData()
- {
- return $this->loadTestsFromFixtureFiles('legacyNonStringKeys.yml');
- }
-
- public function testTabsInYaml()
- {
- // test tabs in YAML
- $yamls = [
- "foo:\n bar",
- "foo:\n bar",
- "foo:\n bar",
- "foo:\n bar",
- ];
-
- foreach ($yamls as $yaml) {
- try {
- $content = $this->parser->parse($yaml);
-
- $this->fail('YAML files must not contain tabs');
- } catch (\Exception $e) {
- $this->assertInstanceOf('\Exception', $e, 'YAML files must not contain tabs');
- $this->assertEquals('A YAML file cannot contain tabs as indentation at line 2 (near "'.strpbrk($yaml, "\t").'").', $e->getMessage(), 'YAML files must not contain tabs');
- }
- }
- }
-
- public function testEndOfTheDocumentMarker()
- {
- $yaml = <<<'EOF'
---- %YAML:1.0
-foo
-...
-EOF;
-
- $this->assertEquals('foo', $this->parser->parse($yaml));
- }
-
- public function getBlockChompingTests()
- {
- $tests = [];
-
- $yaml = <<<'EOF'
-foo: |-
- one
- two
-bar: |-
- one
- two
-
-EOF;
- $expected = [
- 'foo' => "one\ntwo",
- 'bar' => "one\ntwo",
- ];
- $tests['Literal block chomping strip with single trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: |-
- one
- two
-
-bar: |-
- one
- two
-
-
-EOF;
- $expected = [
- 'foo' => "one\ntwo",
- 'bar' => "one\ntwo",
- ];
- $tests['Literal block chomping strip with multiple trailing newlines'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-{}
-
-
-EOF;
- $expected = [];
- $tests['Literal block chomping strip with multiple trailing newlines after a 1-liner'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: |-
- one
- two
-bar: |-
- one
- two
-EOF;
- $expected = [
- 'foo' => "one\ntwo",
- 'bar' => "one\ntwo",
- ];
- $tests['Literal block chomping strip without trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: |
- one
- two
-bar: |
- one
- two
-
-EOF;
- $expected = [
- 'foo' => "one\ntwo\n",
- 'bar' => "one\ntwo\n",
- ];
- $tests['Literal block chomping clip with single trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: |
- one
- two
-
-bar: |
- one
- two
-
-
-EOF;
- $expected = [
- 'foo' => "one\ntwo\n",
- 'bar' => "one\ntwo\n",
- ];
- $tests['Literal block chomping clip with multiple trailing newlines'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo:
-- bar: |
- one
-
- two
-EOF;
- $expected = [
- 'foo' => [
- [
- 'bar' => "one\n\ntwo",
- ],
- ],
- ];
- $tests['Literal block chomping clip with embedded blank line inside unindented collection'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: |
- one
- two
-bar: |
- one
- two
-EOF;
- $expected = [
- 'foo' => "one\ntwo\n",
- 'bar' => "one\ntwo",
- ];
- $tests['Literal block chomping clip without trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: |+
- one
- two
-bar: |+
- one
- two
-
-EOF;
- $expected = [
- 'foo' => "one\ntwo\n",
- 'bar' => "one\ntwo\n",
- ];
- $tests['Literal block chomping keep with single trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: |+
- one
- two
-
-bar: |+
- one
- two
-
-
-EOF;
- $expected = [
- 'foo' => "one\ntwo\n\n",
- 'bar' => "one\ntwo\n\n",
- ];
- $tests['Literal block chomping keep with multiple trailing newlines'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: |+
- one
- two
-bar: |+
- one
- two
-EOF;
- $expected = [
- 'foo' => "one\ntwo\n",
- 'bar' => "one\ntwo",
- ];
- $tests['Literal block chomping keep without trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: >-
- one
- two
-bar: >-
- one
- two
-
-EOF;
- $expected = [
- 'foo' => 'one two',
- 'bar' => 'one two',
- ];
- $tests['Folded block chomping strip with single trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: >-
- one
- two
-
-bar: >-
- one
- two
-
-
-EOF;
- $expected = [
- 'foo' => 'one two',
- 'bar' => 'one two',
- ];
- $tests['Folded block chomping strip with multiple trailing newlines'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: >-
- one
- two
-bar: >-
- one
- two
-EOF;
- $expected = [
- 'foo' => 'one two',
- 'bar' => 'one two',
- ];
- $tests['Folded block chomping strip without trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: >
- one
- two
-bar: >
- one
- two
-
-EOF;
- $expected = [
- 'foo' => "one two\n",
- 'bar' => "one two\n",
- ];
- $tests['Folded block chomping clip with single trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: >
- one
- two
-
-bar: >
- one
- two
-
-
-EOF;
- $expected = [
- 'foo' => "one two\n",
- 'bar' => "one two\n",
- ];
- $tests['Folded block chomping clip with multiple trailing newlines'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: >
- one
- two
-bar: >
- one
- two
-EOF;
- $expected = [
- 'foo' => "one two\n",
- 'bar' => 'one two',
- ];
- $tests['Folded block chomping clip without trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: >+
- one
- two
-bar: >+
- one
- two
-
-EOF;
- $expected = [
- 'foo' => "one two\n",
- 'bar' => "one two\n",
- ];
- $tests['Folded block chomping keep with single trailing newline'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: >+
- one
- two
-
-bar: >+
- one
- two
-
-
-EOF;
- $expected = [
- 'foo' => "one two\n\n",
- 'bar' => "one two\n\n",
- ];
- $tests['Folded block chomping keep with multiple trailing newlines'] = [$expected, $yaml];
-
- $yaml = <<<'EOF'
-foo: >+
- one
- two
-bar: >+
- one
- two
-EOF;
- $expected = [
- 'foo' => "one two\n",
- 'bar' => 'one two',
- ];
- $tests['Folded block chomping keep without trailing newline'] = [$expected, $yaml];
-
- return $tests;
- }
-
- /**
- * @dataProvider getBlockChompingTests
- */
- public function testBlockChomping($expected, $yaml)
- {
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- /**
- * Regression test for issue #7989.
- *
- * @see https://github.com/symfony/symfony/issues/7989
- */
- public function testBlockLiteralWithLeadingNewlines()
- {
- $yaml = <<<'EOF'
-foo: |-
-
-
- bar
-
-EOF;
- $expected = [
- 'foo' => "\n\nbar",
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- public function testObjectSupportEnabled()
- {
- $input = <<<'EOF'
-foo: !php/object O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
-bar: 1
-EOF;
- $this->assertEquals(['foo' => new B(), 'bar' => 1], $this->parser->parse($input, Yaml::PARSE_OBJECT), '->parse() is able to parse objects');
- }
-
- /**
- * @group legacy
- */
- public function testObjectSupportEnabledPassingTrue()
- {
- $input = <<<'EOF'
-foo: !php/object:O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
-bar: 1
-EOF;
- $this->assertEquals(['foo' => new B(), 'bar' => 1], $this->parser->parse($input, false, true), '->parse() is able to parse objects');
- }
-
- /**
- * @group legacy
- * @dataProvider deprecatedObjectValueProvider
- */
- public function testObjectSupportEnabledWithDeprecatedTag($yaml)
- {
- $this->assertEquals(['foo' => new B(), 'bar' => 1], $this->parser->parse($yaml, Yaml::PARSE_OBJECT), '->parse() is able to parse objects');
- }
-
- public function deprecatedObjectValueProvider()
- {
- return [
- [
- <<<YAML
-foo: !!php/object:O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
-bar: 1
-YAML
- ],
- [
- <<<YAML
-foo: !php/object:O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
-bar: 1
-YAML
- ],
- ];
- }
-
- /**
- * @dataProvider invalidDumpedObjectProvider
- */
- public function testObjectSupportDisabledButNoExceptions($input)
- {
- $this->assertEquals(['foo' => null, 'bar' => 1], $this->parser->parse($input), '->parse() does not parse objects');
- }
-
- /**
- * @dataProvider getObjectForMapTests
- */
- public function testObjectForMap($yaml, $expected)
- {
- $flags = Yaml::PARSE_OBJECT_FOR_MAP;
-
- $this->assertEquals($expected, $this->parser->parse($yaml, $flags));
- }
-
- /**
- * @group legacy
- * @dataProvider getObjectForMapTests
- */
- public function testObjectForMapEnabledWithMappingUsingBooleanToggles($yaml, $expected)
- {
- $this->assertEquals($expected, $this->parser->parse($yaml, false, false, true));
- }
-
- public function getObjectForMapTests()
- {
- $tests = [];
-
- $yaml = <<<'EOF'
-foo:
- fiz: [cat]
-EOF;
- $expected = new \stdClass();
- $expected->foo = new \stdClass();
- $expected->foo->fiz = ['cat'];
- $tests['mapping'] = [$yaml, $expected];
-
- $yaml = '{ "foo": "bar", "fiz": "cat" }';
- $expected = new \stdClass();
- $expected->foo = 'bar';
- $expected->fiz = 'cat';
- $tests['inline-mapping'] = [$yaml, $expected];
-
- $yaml = "foo: bar\nbaz: foobar";
- $expected = new \stdClass();
- $expected->foo = 'bar';
- $expected->baz = 'foobar';
- $tests['object-for-map-is-applied-after-parsing'] = [$yaml, $expected];
-
- $yaml = <<<'EOT'
-array:
- - key: one
- - key: two
-EOT;
- $expected = new \stdClass();
- $expected->array = [];
- $expected->array[0] = new \stdClass();
- $expected->array[0]->key = 'one';
- $expected->array[1] = new \stdClass();
- $expected->array[1]->key = 'two';
- $tests['nest-map-and-sequence'] = [$yaml, $expected];
-
- $yaml = <<<'YAML'
-map:
- 1: one
- 2: two
-YAML;
- $expected = new \stdClass();
- $expected->map = new \stdClass();
- $expected->map->{1} = 'one';
- $expected->map->{2} = 'two';
- $tests['numeric-keys'] = [$yaml, $expected];
-
- $yaml = <<<'YAML'
-map:
- '0': one
- '1': two
-YAML;
- $expected = new \stdClass();
- $expected->map = new \stdClass();
- $expected->map->{0} = 'one';
- $expected->map->{1} = 'two';
- $tests['zero-indexed-numeric-keys'] = [$yaml, $expected];
-
- return $tests;
- }
-
- /**
- * @dataProvider invalidDumpedObjectProvider
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testObjectsSupportDisabledWithExceptions($yaml)
- {
- $this->parser->parse($yaml, Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
- }
-
- public function testCanParseContentWithTrailingSpaces()
- {
- $yaml = "items: \n foo: bar";
-
- $expected = [
- 'items' => ['foo' => 'bar'],
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- /**
- * @group legacy
- * @dataProvider invalidDumpedObjectProvider
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testObjectsSupportDisabledWithExceptionsUsingBooleanToggles($yaml)
- {
- $this->parser->parse($yaml, true);
- }
-
- public function invalidDumpedObjectProvider()
- {
- $yamlTag = <<<'EOF'
-foo: !!php/object:O:30:"Symfony\Tests\Component\Yaml\B":1:{s:1:"b";s:3:"foo";}
-bar: 1
-EOF;
- $localTag = <<<'EOF'
-foo: !php/object:O:30:"Symfony\Tests\Component\Yaml\B":1:{s:1:"b";s:3:"foo";}
-bar: 1
-EOF;
-
- return [
- 'yaml-tag' => [$yamlTag],
- 'local-tag' => [$localTag],
- ];
- }
-
- /**
- * @requires extension iconv
- */
- public function testNonUtf8Exception()
- {
- $yamls = [
- iconv('UTF-8', 'ISO-8859-1', "foo: 'äöüß'"),
- iconv('UTF-8', 'ISO-8859-15', "euro: '€'"),
- iconv('UTF-8', 'CP1252', "cp1252: '©ÉÇáñ'"),
- ];
-
- foreach ($yamls as $yaml) {
- try {
- $this->parser->parse($yaml);
-
- $this->fail('charsets other than UTF-8 are rejected.');
- } catch (\Exception $e) {
- $this->assertInstanceOf('Symfony\Component\Yaml\Exception\ParseException', $e, 'charsets other than UTF-8 are rejected.');
- }
- }
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testUnindentedCollectionException()
- {
- $yaml = <<<'EOF'
-
-collection:
--item1
--item2
--item3
-
-EOF;
-
- $this->parser->parse($yaml);
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testShortcutKeyUnindentedCollectionException()
- {
- $yaml = <<<'EOF'
-
-collection:
-- key: foo
- foo: bar
-
-EOF;
-
- $this->parser->parse($yaml);
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessageRegExp /^Multiple documents are not supported.+/
- */
- public function testMultipleDocumentsNotSupportedException()
- {
- Yaml::parse(<<<'EOL'
-# Ranking of 1998 home runs
----
-- Mark McGwire
-- Sammy Sosa
-- Ken Griffey
-
-# Team ranking
----
-- Chicago Cubs
-- St Louis Cardinals
-EOL
- );
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testSequenceInAMapping()
- {
- Yaml::parse(<<<'EOF'
-yaml:
- hash: me
- - array stuff
-EOF
- );
- }
-
- public function testSequenceInMappingStartedBySingleDashLine()
- {
- $yaml = <<<'EOT'
-a:
--
- b:
- -
- bar: baz
-- foo
-d: e
-EOT;
- $expected = [
- 'a' => [
- [
- 'b' => [
- [
- 'bar' => 'baz',
- ],
- ],
- ],
- 'foo',
- ],
- 'd' => 'e',
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- public function testSequenceFollowedByCommentEmbeddedInMapping()
- {
- $yaml = <<<'EOT'
-a:
- b:
- - c
-# comment
- d: e
-EOT;
- $expected = [
- 'a' => [
- 'b' => ['c'],
- 'd' => 'e',
- ],
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- public function testNonStringFollowedByCommentEmbeddedInMapping()
- {
- $yaml = <<<'EOT'
-a:
- b:
- {}
-# comment
- d:
- 1.1
-# another comment
-EOT;
- $expected = [
- 'a' => [
- 'b' => [],
- 'd' => 1.1,
- ],
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- public function getParseExceptionNotAffectedMultiLineStringLastResortParsing()
- {
- $tests = [];
-
- $yaml = <<<'EOT'
-a
- b:
-EOT;
- $tests['parse error on first line'] = [$yaml];
-
- $yaml = <<<'EOT'
-a
-
-b
- c:
-EOT;
- $tests['parse error due to inconsistent indentation'] = [$yaml];
-
- $yaml = <<<'EOT'
- & * ! | > ' " % @ ` #, { asd a;sdasd }-@^qw3
-EOT;
- $tests['symfony/symfony/issues/22967#issuecomment-322067742'] = [$yaml];
-
- return $tests;
- }
-
- /**
- * @dataProvider getParseExceptionNotAffectedMultiLineStringLastResortParsing
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testParseExceptionNotAffectedByMultiLineStringLastResortParsing($yaml)
- {
- $this->parser->parse($yaml);
- }
-
- public function testMultiLineStringLastResortParsing()
- {
- $yaml = <<<'EOT'
-test:
- You can have things that don't look like strings here
- true
- yes you can
-EOT;
- $expected = [
- 'test' => 'You can have things that don\'t look like strings here true yes you can',
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml));
-
- $yaml = <<<'EOT'
-a:
- b
- c
-EOT;
- $expected = [
- 'a' => 'b c',
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testMappingInASequence()
- {
- Yaml::parse(<<<'EOF'
-yaml:
- - array stuff
- hash: me
-EOF
- );
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage missing colon
- */
- public function testScalarInSequence()
- {
- Yaml::parse(<<<'EOF'
-foo:
- - bar
-"missing colon"
- foo: bar
-EOF
- );
- }
-
- /**
- * > It is an error for two equal keys to appear in the same mapping node.
- * > In such a case the YAML processor may continue, ignoring the second
- * > `key: value` pair and issuing an appropriate warning. This strategy
- * > preserves a consistent information model for one-pass and random access
- * > applications.
- *
- * @see http://yaml.org/spec/1.2/spec.html#id2759572
- * @see http://yaml.org/spec/1.1/#id932806
- * @group legacy
- */
- public function testMappingDuplicateKeyBlock()
- {
- $input = <<<'EOD'
-parent:
- child: first
- child: duplicate
-parent:
- child: duplicate
- child: duplicate
-EOD;
- $expected = [
- 'parent' => [
- 'child' => 'first',
- ],
- ];
- $this->assertSame($expected, Yaml::parse($input));
- }
-
- /**
- * @group legacy
- */
- public function testMappingDuplicateKeyFlow()
- {
- $input = <<<'EOD'
-parent: { child: first, child: duplicate }
-parent: { child: duplicate, child: duplicate }
-EOD;
- $expected = [
- 'parent' => [
- 'child' => 'first',
- ],
- ];
- $this->assertSame($expected, Yaml::parse($input));
- }
-
- /**
- * @group legacy
- * @dataProvider getParseExceptionOnDuplicateData
- * @expectedDeprecation Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated %s and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0 on line %d.
- * throws \Symfony\Component\Yaml\Exception\ParseException in 4.0
- */
- public function testParseExceptionOnDuplicate($input, $duplicateKey, $lineNumber)
- {
- Yaml::parse($input);
- }
-
- public function getParseExceptionOnDuplicateData()
- {
- $tests = [];
-
- $yaml = <<<EOD
-parent: { child: first, child: duplicate }
-EOD;
- $tests[] = [$yaml, 'child', 1];
-
- $yaml = <<<EOD
-parent:
- child: first,
- child: duplicate
-EOD;
- $tests[] = [$yaml, 'child', 3];
-
- $yaml = <<<EOD
-parent: { child: foo }
-parent: { child: bar }
-EOD;
- $tests[] = [$yaml, 'parent', 2];
-
- $yaml = <<<EOD
-parent: { child_mapping: { value: bar}, child_mapping: { value: bar} }
-EOD;
- $tests[] = [$yaml, 'child_mapping', 1];
-
- $yaml = <<<EOD
-parent:
- child_mapping:
- value: bar
- child_mapping:
- value: bar
-EOD;
- $tests[] = [$yaml, 'child_mapping', 4];
-
- $yaml = <<<EOD
-parent: { child_sequence: ['key1', 'key2', 'key3'], child_sequence: ['key1', 'key2', 'key3'] }
-EOD;
- $tests[] = [$yaml, 'child_sequence', 1];
-
- $yaml = <<<EOD
-parent:
- child_sequence:
- - key1
- - key2
- - key3
- child_sequence:
- - key1
- - key2
- - key3
-EOD;
- $tests[] = [$yaml, 'child_sequence', 6];
-
- return $tests;
- }
-
- public function testEmptyValue()
- {
- $input = <<<'EOF'
-hash:
-EOF;
-
- $this->assertEquals(['hash' => null], Yaml::parse($input));
- }
-
- public function testCommentAtTheRootIndent()
- {
- $this->assertEquals([
- 'services' => [
- 'app.foo_service' => [
- 'class' => 'Foo',
- ],
- 'app/bar_service' => [
- 'class' => 'Bar',
- ],
- ],
- ], Yaml::parse(<<<'EOF'
-# comment 1
-services:
-# comment 2
- # comment 3
- app.foo_service:
- class: Foo
-# comment 4
- # comment 5
- app/bar_service:
- class: Bar
-EOF
- ));
- }
-
- public function testStringBlockWithComments()
- {
- $this->assertEquals(['content' => <<<'EOT'
-# comment 1
-header
-
- # comment 2
- <body>
- <h1>title</h1>
- </body>
-
-footer # comment3
-EOT
- ], Yaml::parse(<<<'EOF'
-content: |
- # comment 1
- header
-
- # comment 2
- <body>
- <h1>title</h1>
- </body>
-
- footer # comment3
-EOF
- ));
- }
-
- public function testFoldedStringBlockWithComments()
- {
- $this->assertEquals([['content' => <<<'EOT'
-# comment 1
-header
-
- # comment 2
- <body>
- <h1>title</h1>
- </body>
-
-footer # comment3
-EOT
- ]], Yaml::parse(<<<'EOF'
--
- content: |
- # comment 1
- header
-
- # comment 2
- <body>
- <h1>title</h1>
- </body>
-
- footer # comment3
-EOF
- ));
- }
-
- public function testNestedFoldedStringBlockWithComments()
- {
- $this->assertEquals([[
- 'title' => 'some title',
- 'content' => <<<'EOT'
-# comment 1
-header
-
- # comment 2
- <body>
- <h1>title</h1>
- </body>
-
-footer # comment3
-EOT
- ]], Yaml::parse(<<<'EOF'
--
- title: some title
- content: |
- # comment 1
- header
-
- # comment 2
- <body>
- <h1>title</h1>
- </body>
-
- footer # comment3
-EOF
- ));
- }
-
- public function testReferenceResolvingInInlineStrings()
- {
- $this->assertEquals([
- 'var' => 'var-value',
- 'scalar' => 'var-value',
- 'list' => ['var-value'],
- 'list_in_list' => [['var-value']],
- 'map_in_list' => [['key' => 'var-value']],
- 'embedded_mapping' => [['key' => 'var-value']],
- 'map' => ['key' => 'var-value'],
- 'list_in_map' => ['key' => ['var-value']],
- 'map_in_map' => ['foo' => ['bar' => 'var-value']],
- ], Yaml::parse(<<<'EOF'
-var: &var var-value
-scalar: *var
-list: [ *var ]
-list_in_list: [[ *var ]]
-map_in_list: [ { key: *var } ]
-embedded_mapping: [ key: *var ]
-map: { key: *var }
-list_in_map: { key: [*var] }
-map_in_map: { foo: { bar: *var } }
-EOF
- ));
- }
-
- public function testYamlDirective()
- {
- $yaml = <<<'EOF'
-%YAML 1.2
----
-foo: 1
-bar: 2
-EOF;
- $this->assertEquals(['foo' => 1, 'bar' => 2], $this->parser->parse($yaml));
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Implicit casting of numeric key to string is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead on line 2.
- */
- public function testFloatKeys()
- {
- $yaml = <<<'EOF'
-foo:
- 1.2: "bar"
- 1.3: "baz"
-EOF;
-
- $expected = [
- 'foo' => [
- '1.2' => 'bar',
- '1.3' => 'baz',
- ],
- ];
-
- $this->assertEquals($expected, $this->parser->parse($yaml));
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Implicit casting of non-string key to string is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead on line 1.
- */
- public function testBooleanKeys()
- {
- $yaml = <<<'EOF'
-true: foo
-false: bar
-EOF;
-
- $expected = [
- 1 => 'foo',
- 0 => 'bar',
- ];
-
- $this->assertEquals($expected, $this->parser->parse($yaml));
- }
-
- public function testExplicitStringCasting()
- {
- $yaml = <<<'EOF'
-'1.2': "bar"
-!!str 1.3: "baz"
-
-'true': foo
-!!str false: bar
-
-!!str null: 'null'
-'~': 'null'
-EOF;
-
- $expected = [
- '1.2' => 'bar',
- '1.3' => 'baz',
- 'true' => 'foo',
- 'false' => 'bar',
- 'null' => 'null',
- '~' => 'null',
- ];
-
- $this->assertEquals($expected, $this->parser->parse($yaml));
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage A colon cannot be used in an unquoted mapping value
- */
- public function testColonInMappingValueException()
- {
- $yaml = <<<'EOF'
-foo: bar: baz
-EOF;
-
- $this->parser->parse($yaml);
- }
-
- public function testColonInMappingValueExceptionNotTriggeredByColonInComment()
- {
- $yaml = <<<'EOT'
-foo:
- bar: foobar # Note: a comment after a colon
-EOT;
-
- $this->assertSame(['foo' => ['bar' => 'foobar']], $this->parser->parse($yaml));
- }
-
- /**
- * @dataProvider getCommentLikeStringInScalarBlockData
- */
- public function testCommentLikeStringsAreNotStrippedInBlockScalars($yaml, $expectedParserResult)
- {
- $this->assertSame($expectedParserResult, $this->parser->parse($yaml));
- }
-
- public function getCommentLikeStringInScalarBlockData()
- {
- $tests = [];
-
- $yaml = <<<'EOT'
-pages:
- -
- title: some title
- content: |
- # comment 1
- header
-
- # comment 2
- <body>
- <h1>title</h1>
- </body>
-
- footer # comment3
-EOT;
- $expected = [
- 'pages' => [
- [
- 'title' => 'some title',
- 'content' => <<<'EOT'
-# comment 1
-header
-
- # comment 2
- <body>
- <h1>title</h1>
- </body>
-
-footer # comment3
-EOT
- ,
- ],
- ],
- ];
- $tests[] = [$yaml, $expected];
-
- $yaml = <<<'EOT'
-test: |
- foo
- # bar
- baz
-collection:
- - one: |
- foo
- # bar
- baz
- - two: |
- foo
- # bar
- baz
-EOT;
- $expected = [
- 'test' => <<<'EOT'
-foo
-# bar
-baz
-
-EOT
- ,
- 'collection' => [
- [
- 'one' => <<<'EOT'
-foo
-# bar
-baz
-
-EOT
- ,
- ],
- [
- 'two' => <<<'EOT'
-foo
-# bar
-baz
-EOT
- ,
- ],
- ],
- ];
- $tests[] = [$yaml, $expected];
-
- $yaml = <<<'EOT'
-foo:
- bar:
- scalar-block: >
- line1
- line2>
- baz:
-# comment
- foobar: ~
-EOT;
- $expected = [
- 'foo' => [
- 'bar' => [
- 'scalar-block' => "line1 line2>\n",
- ],
- 'baz' => [
- 'foobar' => null,
- ],
- ],
- ];
- $tests[] = [$yaml, $expected];
-
- $yaml = <<<'EOT'
-a:
- b: hello
-# c: |
-# first row
-# second row
- d: hello
-EOT;
- $expected = [
- 'a' => [
- 'b' => 'hello',
- 'd' => 'hello',
- ],
- ];
- $tests[] = [$yaml, $expected];
-
- return $tests;
- }
-
- public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
- {
- $yaml = <<<'EOT'
-test: >
- <h2>A heading</h2>
-
- <ul>
- <li>a list</li>
- <li>may be a good example</li>
- </ul>
-EOT;
-
- $this->assertSame(
- [
- 'test' => <<<'EOT'
-<h2>A heading</h2>
-<ul> <li>a list</li> <li>may be a good example</li> </ul>
-EOT
- ,
- ],
- $this->parser->parse($yaml)
- );
- }
-
- public function testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks()
- {
- $yaml = <<<'EOT'
-test: >
- <h2>A heading</h2>
-
- <ul>
- <li>a list</li>
- <li>may be a good example</li>
- </ul>
-EOT;
-
- $this->assertSame(
- [
- 'test' => <<<'EOT'
-<h2>A heading</h2>
-<ul>
- <li>a list</li>
- <li>may be a good example</li>
-</ul>
-EOT
- ,
- ],
- $this->parser->parse($yaml)
- );
- }
-
- /**
- * @dataProvider getBinaryData
- */
- public function testParseBinaryData($data)
- {
- $this->assertSame(['data' => 'Hello world'], $this->parser->parse($data));
- }
-
- public function getBinaryData()
- {
- return [
- 'enclosed with double quotes' => ['data: !!binary "SGVsbG8gd29ybGQ="'],
- 'enclosed with single quotes' => ["data: !!binary 'SGVsbG8gd29ybGQ='"],
- 'containing spaces' => ['data: !!binary "SGVs bG8gd 29ybGQ="'],
- 'in block scalar' => [
- <<<'EOT'
-data: !!binary |
- SGVsbG8gd29ybGQ=
-EOT
- ],
- 'containing spaces in block scalar' => [
- <<<'EOT'
-data: !!binary |
- SGVs bG8gd 29ybGQ=
-EOT
- ],
- ];
- }
-
- /**
- * @dataProvider getInvalidBinaryData
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- */
- public function testParseInvalidBinaryData($data, $expectedMessage)
- {
- if (method_exists($this, 'expectException')) {
- $this->expectExceptionMessageRegExp($expectedMessage);
- } else {
- $this->setExpectedExceptionRegExp(ParseException::class, $expectedMessage);
- }
-
- $this->parser->parse($data);
- }
-
- public function getInvalidBinaryData()
- {
- return [
- 'length not a multiple of four' => ['data: !!binary "SGVsbG8d29ybGQ="', '/The normalized base64 encoded data \(data without whitespace characters\) length must be a multiple of four \(\d+ bytes given\)/'],
- 'invalid characters' => ['!!binary "SGVsbG8#d29ybGQ="', '/The base64 encoded data \(.*\) contains invalid characters/'],
- 'too many equals characters' => ['data: !!binary "SGVsbG8gd29yb==="', '/The base64 encoded data \(.*\) contains invalid characters/'],
- 'misplaced equals character' => ['data: !!binary "SGVsbG8gd29ybG=Q"', '/The base64 encoded data \(.*\) contains invalid characters/'],
- 'length not a multiple of four in block scalar' => [
- <<<'EOT'
-data: !!binary |
- SGVsbG8d29ybGQ=
-EOT
- ,
- '/The normalized base64 encoded data \(data without whitespace characters\) length must be a multiple of four \(\d+ bytes given\)/',
- ],
- 'invalid characters in block scalar' => [
- <<<'EOT'
-data: !!binary |
- SGVsbG8#d29ybGQ=
-EOT
- ,
- '/The base64 encoded data \(.*\) contains invalid characters/',
- ],
- 'too many equals characters in block scalar' => [
- <<<'EOT'
-data: !!binary |
- SGVsbG8gd29yb===
-EOT
- ,
- '/The base64 encoded data \(.*\) contains invalid characters/',
- ],
- 'misplaced equals character in block scalar' => [
- <<<'EOT'
-data: !!binary |
- SGVsbG8gd29ybG=Q
-EOT
- ,
- '/The base64 encoded data \(.*\) contains invalid characters/',
- ],
- ];
- }
-
- public function testParseDateAsMappingValue()
- {
- $yaml = <<<'EOT'
-date: 2002-12-14
-EOT;
- $expectedDate = new \DateTime();
- $expectedDate->setTimeZone(new \DateTimeZone('UTC'));
- $expectedDate->setDate(2002, 12, 14);
- $expectedDate->setTime(0, 0, 0);
-
- $this->assertEquals(['date' => $expectedDate], $this->parser->parse($yaml, Yaml::PARSE_DATETIME));
- }
-
- /**
- * @param $lineNumber
- * @param $yaml
- * @dataProvider parserThrowsExceptionWithCorrectLineNumberProvider
- */
- public function testParserThrowsExceptionWithCorrectLineNumber($lineNumber, $yaml)
- {
- if (method_exists($this, 'expectException')) {
- $this->expectException('\Symfony\Component\Yaml\Exception\ParseException');
- $this->expectExceptionMessage(sprintf('Unexpected characters near "," at line %d (near "bar: "123",").', $lineNumber));
- } else {
- $this->setExpectedException('\Symfony\Component\Yaml\Exception\ParseException', sprintf('Unexpected characters near "," at line %d (near "bar: "123",").', $lineNumber));
- }
-
- $this->parser->parse($yaml);
- }
-
- public function parserThrowsExceptionWithCorrectLineNumberProvider()
- {
- return [
- [
- 4,
- <<<'YAML'
-foo:
- -
- # bar
- bar: "123",
-YAML
- ],
- [
- 5,
- <<<'YAML'
-foo:
- -
- # bar
- # bar
- bar: "123",
-YAML
- ],
- [
- 8,
- <<<'YAML'
-foo:
- -
- # foobar
- baz: 123
-bar:
- -
- # bar
- bar: "123",
-YAML
- ],
- [
- 10,
- <<<'YAML'
-foo:
- -
- # foobar
- # foobar
- baz: 123
-bar:
- -
- # bar
- # bar
- bar: "123",
-YAML
- ],
- ];
- }
-
- public function testParseMultiLineQuotedString()
- {
- $yaml = <<<EOT
-foo: "bar
- baz
- foobar
-foo"
-bar: baz
-EOT;
-
- $this->assertSame(['foo' => 'bar baz foobar foo', 'bar' => 'baz'], $this->parser->parse($yaml));
- }
-
- public function testMultiLineQuotedStringWithTrailingBackslash()
- {
- $yaml = <<<YAML
-foobar:
- "foo\
- bar"
-YAML;
-
- $this->assertSame(['foobar' => 'foobar'], $this->parser->parse($yaml));
- }
-
- public function testCommentCharactersInMultiLineQuotedStrings()
- {
- $yaml = <<<YAML
-foo:
- foobar: 'foo
- #bar'
- bar: baz
-YAML;
- $expected = [
- 'foo' => [
- 'foobar' => 'foo #bar',
- 'bar' => 'baz',
- ],
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- public function testBlankLinesInQuotedMultiLineString()
- {
- $yaml = <<<YAML
-foobar: 'foo
-
- bar'
-YAML;
- $expected = [
- 'foobar' => "foo\nbar",
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- public function testParseMultiLineUnquotedString()
- {
- $yaml = <<<EOT
-foo: bar
- baz
- foobar
- foo
-bar: baz
-EOT;
-
- $this->assertSame(['foo' => 'bar baz foobar foo', 'bar' => 'baz'], $this->parser->parse($yaml));
- }
-
- public function testParseMultiLineString()
- {
- $this->assertEquals("foo bar\nbaz", $this->parser->parse("foo\nbar\n\nbaz"));
- }
-
- /**
- * @dataProvider multiLineDataProvider
- */
- public function testParseMultiLineMappingValue($yaml, $expected, $parseError)
- {
- $this->assertEquals($expected, $this->parser->parse($yaml));
- }
-
- public function multiLineDataProvider()
- {
- $tests = [];
-
- $yaml = <<<'EOF'
-foo:
-- bar:
- one
-
- two
- three
-EOF;
- $expected = [
- 'foo' => [
- [
- 'bar' => "one\ntwo three",
- ],
- ],
- ];
-
- $tests[] = [$yaml, $expected, false];
-
- $yaml = <<<'EOF'
-bar
-"foo"
-EOF;
- $expected = 'bar "foo"';
-
- $tests[] = [$yaml, $expected, false];
-
- $yaml = <<<'EOF'
-bar
-"foo
-EOF;
- $expected = 'bar "foo';
-
- $tests[] = [$yaml, $expected, false];
-
- $yaml = <<<'EOF'
-bar
-
-'foo'
-EOF;
- $expected = "bar\n'foo'";
-
- $tests[] = [$yaml, $expected, false];
-
- $yaml = <<<'EOF'
-bar
-
-foo'
-EOF;
- $expected = "bar\nfoo'";
-
- $tests[] = [$yaml, $expected, false];
-
- return $tests;
- }
-
- public function testTaggedInlineMapping()
- {
- $this->assertEquals(new TaggedValue('foo', ['foo' => 'bar']), $this->parser->parse('!foo {foo: bar}', Yaml::PARSE_CUSTOM_TAGS));
- }
-
- /**
- * @dataProvider taggedValuesProvider
- */
- public function testCustomTagSupport($expected, $yaml)
- {
- $this->assertEquals($expected, $this->parser->parse($yaml, Yaml::PARSE_CUSTOM_TAGS));
- }
-
- public function taggedValuesProvider()
- {
- return [
- 'sequences' => [
- [new TaggedValue('foo', ['yaml']), new TaggedValue('quz', ['bar'])],
- <<<YAML
-- !foo
- - yaml
-- !quz [bar]
-YAML
- ],
- 'mappings' => [
- new TaggedValue('foo', ['foo' => new TaggedValue('quz', ['bar']), 'quz' => new TaggedValue('foo', ['quz' => 'bar'])]),
- <<<YAML
-!foo
-foo: !quz [bar]
-quz: !foo
- quz: bar
-YAML
- ],
- 'inline' => [
- [new TaggedValue('foo', ['foo', 'bar']), new TaggedValue('quz', ['foo' => 'bar', 'quz' => new TaggedValue('bar', ['one' => 'bar'])])],
- <<<YAML
-- !foo [foo, bar]
-- !quz {foo: bar, quz: !bar {one: bar}}
-YAML
- ],
- ];
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage Tags support is not enabled. Enable the `Yaml::PARSE_CUSTOM_TAGS` flag to use "!iterator" at line 1 (near "!iterator [foo]").
- */
- public function testCustomTagsDisabled()
- {
- $this->parser->parse('!iterator [foo]');
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Using the unquoted scalar value "!iterator foo" is deprecated since Symfony 3.3 and will be considered as a tagged value in 4.0. You must quote it on line 1.
- */
- public function testUnsupportedTagWithScalar()
- {
- $this->assertEquals('!iterator foo', $this->parser->parse('!iterator foo'));
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage The built-in tag "!!foo" is not implemented at line 1 (near "!!foo").
- */
- public function testExceptionWhenUsingUnsuportedBuiltInTags()
- {
- $this->parser->parse('!!foo');
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Starting an unquoted string with a question mark followed by a space is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0 on line 1.
- */
- public function testComplexMappingThrowsParseException()
- {
- $yaml = <<<YAML
-? "1"
-:
- name: végétalien
-YAML;
-
- $this->parser->parse($yaml);
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Starting an unquoted string with a question mark followed by a space is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0 on line 2.
- */
- public function testComplexMappingNestedInMappingThrowsParseException()
- {
- $yaml = <<<YAML
-diet:
- ? "1"
- :
- name: végétalien
-YAML;
-
- $this->parser->parse($yaml);
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Starting an unquoted string with a question mark followed by a space is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0 on line 1.
- */
- public function testComplexMappingNestedInSequenceThrowsParseException()
- {
- $yaml = <<<YAML
-- ? "1"
- :
- name: végétalien
-YAML;
-
- $this->parser->parse($yaml);
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage Unable to parse at line 1 (near "[parameters]").
- */
- public function testParsingIniThrowsException()
- {
- $ini = <<<INI
-[parameters]
- foo = bar
- bar = %foo%
-INI;
-
- $this->parser->parse($ini);
- }
-
- private function loadTestsFromFixtureFiles($testsFile)
- {
- $parser = new Parser();
-
- $tests = [];
- $files = $parser->parseFile(__DIR__.'/Fixtures/'.$testsFile);
- foreach ($files as $file) {
- $yamls = file_get_contents(__DIR__.'/Fixtures/'.$file.'.yml');
-
- // split YAMLs documents
- foreach (preg_split('/^---( %YAML\:1\.0)?/m', $yamls) as $yaml) {
- if (!$yaml) {
- continue;
- }
-
- $test = $parser->parse($yaml);
- if (isset($test['todo']) && $test['todo']) {
- // TODO
- } else {
- eval('$expected = '.trim($test['php']).';');
-
- $tests[] = [var_export($expected, true), $test['yaml'], $test['test'], isset($test['deprecated']) ? $test['deprecated'] : false];
- }
- }
- }
-
- return $tests;
- }
-
- public function testCanParseVeryLongValue()
- {
- $longStringWithSpaces = str_repeat('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ', 20000);
- $trickyVal = ['x' => $longStringWithSpaces];
-
- $yamlString = Yaml::dump($trickyVal);
- $arrayFromYaml = $this->parser->parse($yamlString);
-
- $this->assertEquals($trickyVal, $arrayFromYaml);
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage Reference "foo" does not exist at line 2
- */
- public function testParserCleansUpReferencesBetweenRuns()
- {
- $yaml = <<<YAML
-foo: &foo
- baz: foobar
-bar:
- <<: *foo
-YAML;
- $this->parser->parse($yaml);
-
- $yaml = <<<YAML
-bar:
- <<: *foo
-YAML;
- $this->parser->parse($yaml);
- }
-
- public function testPhpConstantTagMappingKey()
- {
- $yaml = <<<YAML
-transitions:
- !php/const 'Symfony\Component\Yaml\Tests\B::FOO':
- from:
- - !php/const 'Symfony\Component\Yaml\Tests\B::BAR'
- to: !php/const 'Symfony\Component\Yaml\Tests\B::BAZ'
-YAML;
- $expected = [
- 'transitions' => [
- 'foo' => [
- 'from' => [
- 'bar',
- ],
- 'to' => 'baz',
- ],
- ],
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml, Yaml::PARSE_CONSTANT));
- }
-
- /**
- * @group legacy
- * @expectedDeprecation The !php/const: tag to indicate dumped PHP constants is deprecated since Symfony 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead on line 2.
- * @expectedDeprecation The !php/const: tag to indicate dumped PHP constants is deprecated since Symfony 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead on line 4.
- * @expectedDeprecation The !php/const: tag to indicate dumped PHP constants is deprecated since Symfony 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead on line 5.
- */
- public function testDeprecatedPhpConstantTagMappingKey()
- {
- $yaml = <<<YAML
-transitions:
- !php/const:Symfony\Component\Yaml\Tests\B::FOO:
- from:
- - !php/const:Symfony\Component\Yaml\Tests\B::BAR
- to: !php/const:Symfony\Component\Yaml\Tests\B::BAZ
-YAML;
- $expected = [
- 'transitions' => [
- 'foo' => [
- 'from' => [
- 'bar',
- ],
- 'to' => 'baz',
- ],
- ],
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml, Yaml::PARSE_CONSTANT));
- }
-
- /**
- * @group legacy
- * @expectedDeprecation Using the Yaml::PARSE_KEYS_AS_STRINGS flag is deprecated since Symfony 3.4 as it will be removed in 4.0. Quote your keys when they are evaluable instead.
- */
- public function testPhpConstantTagMappingKeyWithKeysCastToStrings()
- {
- $yaml = <<<YAML
-transitions:
- !php/const 'Symfony\Component\Yaml\Tests\B::FOO':
- from:
- - !php/const 'Symfony\Component\Yaml\Tests\B::BAR'
- to: !php/const 'Symfony\Component\Yaml\Tests\B::BAZ'
-YAML;
- $expected = [
- 'transitions' => [
- 'foo' => [
- 'from' => [
- 'bar',
- ],
- 'to' => 'baz',
- ],
- ],
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml, Yaml::PARSE_CONSTANT | Yaml::PARSE_KEYS_AS_STRINGS));
- }
-
- public function testMergeKeysWhenMappingsAreParsedAsObjects()
- {
- $yaml = <<<YAML
-foo: &FOO
- bar: 1
-bar: &BAR
- baz: 2
- <<: *FOO
-baz:
- baz_foo: 3
- <<:
- baz_bar: 4
-foobar:
- bar: ~
- <<: [*FOO, *BAR]
-YAML;
- $expected = (object) [
- 'foo' => (object) [
- 'bar' => 1,
- ],
- 'bar' => (object) [
- 'baz' => 2,
- 'bar' => 1,
- ],
- 'baz' => (object) [
- 'baz_foo' => 3,
- 'baz_bar' => 4,
- ],
- 'foobar' => (object) [
- 'bar' => null,
- 'baz' => 2,
- ],
- ];
-
- $this->assertEquals($expected, $this->parser->parse($yaml, Yaml::PARSE_OBJECT_FOR_MAP));
- }
-
- public function testFilenamesAreParsedAsStringsWithoutFlag()
- {
- $file = __DIR__.'/Fixtures/index.yml';
-
- $this->assertSame($file, $this->parser->parse($file));
- }
-
- public function testParseFile()
- {
- $this->assertInternalType('array', $this->parser->parseFile(__DIR__.'/Fixtures/index.yml'));
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessageRegExp #^File ".+/Fixtures/nonexistent.yml" does not exist\.$#
- */
- public function testParsingNonExistentFilesThrowsException()
- {
- $this->parser->parseFile(__DIR__.'/Fixtures/nonexistent.yml');
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessageRegExp #^File ".+/Fixtures/not_readable.yml" cannot be read\.$#
- */
- public function testParsingNotReadableFilesThrowsException()
- {
- if ('\\' === \DIRECTORY_SEPARATOR) {
- $this->markTestSkipped('chmod is not supported on Windows');
- }
-
- if (!getenv('USER') || 'root' === getenv('USER')) {
- $this->markTestSkipped('This test will fail if run under superuser');
- }
-
- $file = __DIR__.'/Fixtures/not_readable.yml';
- chmod($file, 0200);
-
- $this->parser->parseFile($file);
- }
-
- public function testParseReferencesOnMergeKeys()
- {
- $yaml = <<<YAML
-mergekeyrefdef:
- a: foo
- <<: &quux
- b: bar
- c: baz
-mergekeyderef:
- d: quux
- <<: *quux
-YAML;
- $expected = [
- 'mergekeyrefdef' => [
- 'a' => 'foo',
- 'b' => 'bar',
- 'c' => 'baz',
- ],
- 'mergekeyderef' => [
- 'd' => 'quux',
- 'b' => 'bar',
- 'c' => 'baz',
- ],
- ];
-
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- public function testParseReferencesOnMergeKeysWithMappingsParsedAsObjects()
- {
- $yaml = <<<YAML
-mergekeyrefdef:
- a: foo
- <<: &quux
- b: bar
- c: baz
-mergekeyderef:
- d: quux
- <<: *quux
-YAML;
- $expected = (object) [
- 'mergekeyrefdef' => (object) [
- 'a' => 'foo',
- 'b' => 'bar',
- 'c' => 'baz',
- ],
- 'mergekeyderef' => (object) [
- 'd' => 'quux',
- 'b' => 'bar',
- 'c' => 'baz',
- ],
- ];
-
- $this->assertEquals($expected, $this->parser->parse($yaml, Yaml::PARSE_OBJECT_FOR_MAP));
- }
-
- /**
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage Reference "foo" does not exist
- */
- public function testEvalRefException()
- {
- $yaml = <<<EOE
-foo: { &foo { a: Steve, <<: *foo} }
-EOE;
- $this->parser->parse($yaml);
- }
-
- /**
- * @dataProvider circularReferenceProvider
- * @expectedException \Symfony\Component\Yaml\Exception\ParseException
- * @expectedExceptionMessage Circular reference [foo, bar, foo] detected
- */
- public function testDetectCircularReferences($yaml)
- {
- $this->parser->parse($yaml, Yaml::PARSE_CUSTOM_TAGS);
- }
-
- public function circularReferenceProvider()
- {
- $tests = [];
-
- $yaml = <<<YAML
-foo:
- - &foo
- - &bar
- bar: foobar
- baz: *foo
-YAML;
- $tests['sequence'] = [$yaml];
-
- $yaml = <<<YAML
-foo: &foo
- bar: &bar
- foobar: baz
- baz: *foo
-YAML;
- $tests['mapping'] = [$yaml];
-
- $yaml = <<<YAML
-foo: &foo
- bar: &bar
- foobar: baz
- <<: *foo
-YAML;
- $tests['mapping with merge key'] = [$yaml];
-
- return $tests;
- }
-
- /**
- * @dataProvider indentedMappingData
- */
- public function testParseIndentedMappings($yaml, $expected)
- {
- $this->assertSame($expected, $this->parser->parse($yaml));
- }
-
- public function indentedMappingData()
- {
- $tests = [];
-
- $yaml = <<<YAML
-foo:
- - bar: "foobar"
- # A comment
- baz: "foobaz"
-YAML;
- $expected = [
- 'foo' => [
- [
- 'bar' => 'foobar',
- 'baz' => 'foobaz',
- ],
- ],
- ];
- $tests['comment line is first line in indented block'] = [$yaml, $expected];
-
- $yaml = <<<YAML
-foo:
- - bar:
- # comment
- baz: [1, 2, 3]
-YAML;
- $expected = [
- 'foo' => [
- [
- 'bar' => [
- 'baz' => [1, 2, 3],
- ],
- ],
- ],
- ];
- $tests['mapping value on new line starting with a comment line'] = [$yaml, $expected];
-
- $yaml = <<<YAML
-foo:
- -
- bar: foobar
-YAML;
- $expected = [
- 'foo' => [
- [
- 'bar' => 'foobar',
- ],
- ],
- ];
- $tests['mapping in sequence starting on a new line'] = [$yaml, $expected];
-
- $yaml = <<<YAML
-foo:
-
- bar: baz
-YAML;
- $expected = [
- 'foo' => [
- 'bar' => 'baz',
- ],
- ];
- $tests['blank line at the beginning of an indented mapping value'] = [$yaml, $expected];
-
- return $tests;
- }
-}
-
-class B
-{
- public $b = 'foo';
-
- const FOO = 'foo';
- const BAR = 'bar';
- const BAZ = 'baz';
-}
diff --git a/www/wiki/vendor/symfony/yaml/Tests/YamlTest.php b/www/wiki/vendor/symfony/yaml/Tests/YamlTest.php
deleted file mode 100644
index 5a792c51..00000000
--- a/www/wiki/vendor/symfony/yaml/Tests/YamlTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Symfony\Component\Yaml\Yaml;
-
-class YamlTest extends TestCase
-{
- public function testParseAndDump()
- {
- $data = ['lorem' => 'ipsum', 'dolor' => 'sit'];
- $yml = Yaml::dump($data);
- $parsed = Yaml::parse($yml);
- $this->assertEquals($data, $parsed);
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The indentation must be greater than zero
- */
- public function testZeroIndentationThrowsException()
- {
- Yaml::dump(['lorem' => 'ipsum', 'dolor' => 'sit'], 2, 0);
- }
-
- /**
- * @expectedException \InvalidArgumentException
- * @expectedExceptionMessage The indentation must be greater than zero
- */
- public function testNegativeIndentationThrowsException()
- {
- Yaml::dump(['lorem' => 'ipsum', 'dolor' => 'sit'], 2, -4);
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/Unescaper.php b/www/wiki/vendor/symfony/yaml/Unescaper.php
deleted file mode 100644
index 6a12999d..00000000
--- a/www/wiki/vendor/symfony/yaml/Unescaper.php
+++ /dev/null
@@ -1,142 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml;
-
-use Symfony\Component\Yaml\Exception\ParseException;
-
-/**
- * Unescaper encapsulates unescaping rules for single and double-quoted
- * YAML strings.
- *
- * @author Matthew Lewinski <matthew@lewinski.org>
- *
- * @internal
- */
-class Unescaper
-{
- /**
- * Regex fragment that matches an escaped character in a double quoted string.
- */
- const REGEX_ESCAPED_CHARACTER = '\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)';
-
- /**
- * Unescapes a single quoted string.
- *
- * @param string $value A single quoted string
- *
- * @return string The unescaped string
- */
- public function unescapeSingleQuotedString($value)
- {
- return str_replace('\'\'', '\'', $value);
- }
-
- /**
- * Unescapes a double quoted string.
- *
- * @param string $value A double quoted string
- *
- * @return string The unescaped string
- */
- public function unescapeDoubleQuotedString($value)
- {
- $callback = function ($match) {
- return $this->unescapeCharacter($match[0]);
- };
-
- // evaluate the string
- return preg_replace_callback('/'.self::REGEX_ESCAPED_CHARACTER.'/u', $callback, $value);
- }
-
- /**
- * Unescapes a character that was found in a double-quoted string.
- *
- * @param string $value An escaped character
- *
- * @return string The unescaped character
- */
- private function unescapeCharacter($value)
- {
- switch ($value[1]) {
- case '0':
- return "\x0";
- case 'a':
- return "\x7";
- case 'b':
- return "\x8";
- case 't':
- return "\t";
- case "\t":
- return "\t";
- case 'n':
- return "\n";
- case 'v':
- return "\xB";
- case 'f':
- return "\xC";
- case 'r':
- return "\r";
- case 'e':
- return "\x1B";
- case ' ':
- return ' ';
- case '"':
- return '"';
- case '/':
- return '/';
- case '\\':
- return '\\';
- case 'N':
- // U+0085 NEXT LINE
- return "\xC2\x85";
- case '_':
- // U+00A0 NO-BREAK SPACE
- return "\xC2\xA0";
- case 'L':
- // U+2028 LINE SEPARATOR
- return "\xE2\x80\xA8";
- case 'P':
- // U+2029 PARAGRAPH SEPARATOR
- return "\xE2\x80\xA9";
- case 'x':
- return self::utf8chr(hexdec(substr($value, 2, 2)));
- case 'u':
- return self::utf8chr(hexdec(substr($value, 2, 4)));
- case 'U':
- return self::utf8chr(hexdec(substr($value, 2, 8)));
- default:
- throw new ParseException(sprintf('Found unknown escape character "%s".', $value));
- }
- }
-
- /**
- * Get the UTF-8 character for the given code point.
- *
- * @param int $c The unicode code point
- *
- * @return string The corresponding UTF-8 character
- */
- private static function utf8chr($c)
- {
- if (0x80 > $c %= 0x200000) {
- return \chr($c);
- }
- if (0x800 > $c) {
- return \chr(0xC0 | $c >> 6).\chr(0x80 | $c & 0x3F);
- }
- if (0x10000 > $c) {
- return \chr(0xE0 | $c >> 12).\chr(0x80 | $c >> 6 & 0x3F).\chr(0x80 | $c & 0x3F);
- }
-
- return \chr(0xF0 | $c >> 18).\chr(0x80 | $c >> 12 & 0x3F).\chr(0x80 | $c >> 6 & 0x3F).\chr(0x80 | $c & 0x3F);
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/Yaml.php b/www/wiki/vendor/symfony/yaml/Yaml.php
deleted file mode 100644
index 17db7659..00000000
--- a/www/wiki/vendor/symfony/yaml/Yaml.php
+++ /dev/null
@@ -1,150 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Yaml;
-
-use Symfony\Component\Yaml\Exception\ParseException;
-
-/**
- * Yaml offers convenience methods to load and dump YAML.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- *
- * @final since version 3.4
- */
-class Yaml
-{
- const DUMP_OBJECT = 1;
- const PARSE_EXCEPTION_ON_INVALID_TYPE = 2;
- const PARSE_OBJECT = 4;
- const PARSE_OBJECT_FOR_MAP = 8;
- const DUMP_EXCEPTION_ON_INVALID_TYPE = 16;
- const PARSE_DATETIME = 32;
- const DUMP_OBJECT_AS_MAP = 64;
- const DUMP_MULTI_LINE_LITERAL_BLOCK = 128;
- const PARSE_CONSTANT = 256;
- const PARSE_CUSTOM_TAGS = 512;
- const DUMP_EMPTY_ARRAY_AS_SEQUENCE = 1024;
-
- /**
- * @deprecated since version 3.4, to be removed in 4.0. Quote your evaluable keys instead.
- */
- const PARSE_KEYS_AS_STRINGS = 2048;
-
- /**
- * Parses a YAML file into a PHP value.
- *
- * Usage:
- *
- * $array = Yaml::parseFile('config.yml');
- * print_r($array);
- *
- * @param string $filename The path to the YAML file to be parsed
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
- *
- * @return mixed The YAML converted to a PHP value
- *
- * @throws ParseException If the file could not be read or the YAML is not valid
- */
- public static function parseFile($filename, $flags = 0)
- {
- $yaml = new Parser();
-
- return $yaml->parseFile($filename, $flags);
- }
-
- /**
- * Parses YAML into a PHP value.
- *
- * Usage:
- * <code>
- * $array = Yaml::parse(file_get_contents('config.yml'));
- * print_r($array);
- * </code>
- *
- * @param string $input A string containing YAML
- * @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
- *
- * @return mixed The YAML converted to a PHP value
- *
- * @throws ParseException If the YAML is not valid
- */
- public static function parse($input, $flags = 0)
- {
- if (\is_bool($flags)) {
- @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since Symfony 3.1 and will be removed in 4.0. Use the PARSE_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED);
-
- if ($flags) {
- $flags = self::PARSE_EXCEPTION_ON_INVALID_TYPE;
- } else {
- $flags = 0;
- }
- }
-
- if (\func_num_args() >= 3) {
- @trigger_error('Passing a boolean flag to toggle object support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the PARSE_OBJECT flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(2)) {
- $flags |= self::PARSE_OBJECT;
- }
- }
-
- if (\func_num_args() >= 4) {
- @trigger_error('Passing a boolean flag to toggle object for map support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::PARSE_OBJECT_FOR_MAP flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(3)) {
- $flags |= self::PARSE_OBJECT_FOR_MAP;
- }
- }
-
- $yaml = new Parser();
-
- return $yaml->parse($input, $flags);
- }
-
- /**
- * Dumps a PHP value to a YAML string.
- *
- * The dump method, when supplied with an array, will do its best
- * to convert the array into friendly YAML.
- *
- * @param mixed $input The PHP value
- * @param int $inline The level where you switch to inline YAML
- * @param int $indent The amount of spaces to use for indentation of nested nodes
- * @param int $flags A bit field of DUMP_* constants to customize the dumped YAML string
- *
- * @return string A YAML string representing the original PHP value
- */
- public static function dump($input, $inline = 2, $indent = 4, $flags = 0)
- {
- if (\is_bool($flags)) {
- @trigger_error('Passing a boolean flag to toggle exception handling is deprecated since Symfony 3.1 and will be removed in 4.0. Use the DUMP_EXCEPTION_ON_INVALID_TYPE flag instead.', E_USER_DEPRECATED);
-
- if ($flags) {
- $flags = self::DUMP_EXCEPTION_ON_INVALID_TYPE;
- } else {
- $flags = 0;
- }
- }
-
- if (\func_num_args() >= 5) {
- @trigger_error('Passing a boolean flag to toggle object support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the DUMP_OBJECT flag instead.', E_USER_DEPRECATED);
-
- if (func_get_arg(4)) {
- $flags |= self::DUMP_OBJECT;
- }
- }
-
- $yaml = new Dumper($indent);
-
- return $yaml->dump($input, $inline, 0, $flags);
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/composer.json b/www/wiki/vendor/symfony/yaml/composer.json
deleted file mode 100644
index 933547da..00000000
--- a/www/wiki/vendor/symfony/yaml/composer.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "symfony/yaml",
- "type": "library",
- "description": "Symfony Yaml Component",
- "keywords": [],
- "homepage": "https://symfony.com",
- "license": "MIT",
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
- },
- "require-dev": {
- "symfony/console": "~3.4|~4.0"
- },
- "conflict": {
- "symfony/console": "<3.4"
- },
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "autoload": {
- "psr-4": { "Symfony\\Component\\Yaml\\": "" },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "minimum-stability": "dev",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/symfony/yaml/phpunit.xml.dist b/www/wiki/vendor/symfony/yaml/phpunit.xml.dist
deleted file mode 100644
index b5d4d914..00000000
--- a/www/wiki/vendor/symfony/yaml/phpunit.xml.dist
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.2/phpunit.xsd"
- backupGlobals="false"
- colors="true"
- bootstrap="vendor/autoload.php"
- failOnRisky="true"
- failOnWarning="true"
->
- <php>
- <ini name="error_reporting" value="-1" />
- </php>
-
- <testsuites>
- <testsuite name="Symfony Yaml Component Test Suite">
- <directory>./Tests/</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist>
- <directory>./</directory>
- <exclude>
- <directory>./Tests</directory>
- <directory>./vendor</directory>
- </exclude>
- </whitelist>
- </filter>
-</phpunit>
diff --git a/www/wiki/vendor/webmozart/assert/CHANGELOG.md b/www/wiki/vendor/webmozart/assert/CHANGELOG.md
deleted file mode 100644
index da4fb3fe..00000000
--- a/www/wiki/vendor/webmozart/assert/CHANGELOG.md
+++ /dev/null
@@ -1,76 +0,0 @@
-Changelog
-=========
-
-## UNRELEASED
-
-## 1.4.0 (2018-12-25)
-
-### Added
-
-* added `Assert::ip()`
-* added `Assert::ipv4()`
-* added `Assert::ipv6()`
-* added `Assert::notRegex()`
-* added `Assert::interfaceExists()`
-* added `Assert::isList()`
-* added `Assert::isMap()`
-* added polyfill for ctype
-
-### Fixed
-
-* Special case when comparing objects implementing `__toString()`
-
-## 1.3.0 (2018-01-29)
-
-### Added
-
-* added `Assert::minCount()`
-* added `Assert::maxCount()`
-* added `Assert::countBetween()`
-* added `Assert::isCountable()`
-* added `Assert::notWhitespaceOnly()`
-* added `Assert::natural()`
-* added `Assert::notContains()`
-* added `Assert::isArrayAccessible()`
-* added `Assert::isInstanceOfAny()`
-* added `Assert::isIterable()`
-
-### Fixed
-
-* `stringNotEmpty` will no longer report "0" is an empty string
-
-### Deprecation
-
-* deprecated `Assert::isTraversable()` in favor of `Assert::isIterable()`
-
-## 1.2.0 (2016-11-23)
-
- * added `Assert::throws()`
- * added `Assert::count()`
- * added extension point `Assert::reportInvalidArgument()` for custom subclasses
-
-## 1.1.0 (2016-08-09)
-
- * added `Assert::object()`
- * added `Assert::propertyExists()`
- * added `Assert::propertyNotExists()`
- * added `Assert::methodExists()`
- * added `Assert::methodNotExists()`
- * added `Assert::uuid()`
-
-## 1.0.2 (2015-08-24)
-
- * integrated Style CI
- * add tests for minimum package dependencies on Travis CI
-
-## 1.0.1 (2015-05-12)
-
- * added support for PHP 5.3.3
-
-## 1.0.0 (2015-05-12)
-
- * first stable release
-
-## 1.0.0-beta (2015-03-19)
-
- * first beta release
diff --git a/www/wiki/vendor/webmozart/assert/LICENSE b/www/wiki/vendor/webmozart/assert/LICENSE
deleted file mode 100644
index 9e2e3075..00000000
--- a/www/wiki/vendor/webmozart/assert/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Bernhard Schussek
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/www/wiki/vendor/webmozart/assert/README.md b/www/wiki/vendor/webmozart/assert/README.md
deleted file mode 100644
index ce7ba59d..00000000
--- a/www/wiki/vendor/webmozart/assert/README.md
+++ /dev/null
@@ -1,258 +0,0 @@
-Webmozart Assert
-================
-
-[![Build Status](https://travis-ci.org/webmozart/assert.svg?branch=master)](https://travis-ci.org/webmozart/assert)
-[![Build status](https://ci.appveyor.com/api/projects/status/lyg83bcsisrr94se/branch/master?svg=true)](https://ci.appveyor.com/project/webmozart/assert/branch/master)
-[![Latest Stable Version](https://poser.pugx.org/webmozart/assert/v/stable.svg)](https://packagist.org/packages/webmozart/assert)
-[![Total Downloads](https://poser.pugx.org/webmozart/assert/downloads.svg)](https://packagist.org/packages/webmozart/assert)
-
-Latest release: [1.2.0](https://packagist.org/packages/webmozart/assert#1.2.0)
-
-PHP >= 5.3.9
-
-This library contains efficient assertions to test the input and output of
-your methods. With these assertions, you can greatly reduce the amount of coding
-needed to write a safe implementation.
-
-All assertions in the [`Assert`] class throw an `\InvalidArgumentException` if
-they fail.
-
-FAQ
----
-
-**What's the difference to [beberlei/assert]?**
-
-This library is heavily inspired by Benjamin Eberlei's wonderful [assert package],
-but fixes a usability issue with error messages that can't be fixed there without
-breaking backwards compatibility.
-
-This package features usable error messages by default. However, you can also
-easily write custom error messages:
-
-```
-Assert::string($path, 'The path is expected to be a string. Got: %s');
-```
-
-In [beberlei/assert], the ordering of the `%s` placeholders is different for
-every assertion. This package, on the contrary, provides consistent placeholder
-ordering for all assertions:
-
-* `%s`: The tested value as string, e.g. `"/foo/bar"`.
-* `%2$s`, `%3$s`, ...: Additional assertion-specific values, e.g. the
- minimum/maximum length, allowed values, etc.
-
-Check the source code of the assertions to find out details about the additional
-available placeholders.
-
-Installation
-------------
-
-Use [Composer] to install the package:
-
-```
-$ composer require webmozart/assert
-```
-
-Example
--------
-
-```php
-use Webmozart\Assert\Assert;
-
-class Employee
-{
- public function __construct($id)
- {
- Assert::integer($id, 'The employee ID must be an integer. Got: %s');
- Assert::greaterThan($id, 0, 'The employee ID must be a positive integer. Got: %s');
- }
-}
-```
-
-If you create an employee with an invalid ID, an exception is thrown:
-
-```php
-new Employee('foobar');
-// => InvalidArgumentException:
-// The employee ID must be an integer. Got: string
-
-new Employee(-10);
-// => InvalidArgumentException:
-// The employee ID must be a positive integer. Got: -10
-```
-
-Assertions
-----------
-
-The [`Assert`] class provides the following assertions:
-
-### Type Assertions
-
-Method | Description
--------------------------------------------------------- | --------------------------------------------------
-`string($value, $message = '')` | Check that a value is a string
-`stringNotEmpty($value, $message = '')` | Check that a value is a non-empty string
-`integer($value, $message = '')` | Check that a value is an integer
-`integerish($value, $message = '')` | Check that a value casts to an integer
-`float($value, $message = '')` | Check that a value is a float
-`numeric($value, $message = '')` | Check that a value is numeric
-`natural($value, $message= ''')` | Check that a value is a non-negative integer
-`boolean($value, $message = '')` | Check that a value is a boolean
-`scalar($value, $message = '')` | Check that a value is a scalar
-`object($value, $message = '')` | Check that a value is an object
-`resource($value, $type = null, $message = '')` | Check that a value is a resource
-`isCallable($value, $message = '')` | Check that a value is a callable
-`isArray($value, $message = '')` | Check that a value is an array
-`isTraversable($value, $message = '')` (deprecated) | Check that a value is an array or a `\Traversable`
-`isIterable($value, $message = '')` | Check that a value is an array or a `\Traversable`
-`isCountable($value, $message = '')` | Check that a value is an array or a `\Countable`
-`isInstanceOf($value, $class, $message = '')` | Check that a value is an `instanceof` a class
-`isInstanceOfAny($value, array $classes, $message = '')` | Check that a value is an `instanceof` a at least one class on the array of classes
-`notInstanceOf($value, $class, $message = '')` | Check that a value is not an `instanceof` a class
-`isArrayAccessible($value, $message = '')` | Check that a value can be accessed as an array
-
-### Comparison Assertions
-
-Method | Description
------------------------------------------------ | --------------------------------------------------
-`true($value, $message = '')` | Check that a value is `true`
-`false($value, $message = '')` | Check that a value is `false`
-`null($value, $message = '')` | Check that a value is `null`
-`notNull($value, $message = '')` | Check that a value is not `null`
-`isEmpty($value, $message = '')` | Check that a value is `empty()`
-`notEmpty($value, $message = '')` | Check that a value is not `empty()`
-`eq($value, $value2, $message = '')` | Check that a value equals another (`==`)
-`notEq($value, $value2, $message = '')` | Check that a value does not equal another (`!=`)
-`same($value, $value2, $message = '')` | Check that a value is identical to another (`===`)
-`notSame($value, $value2, $message = '')` | Check that a value is not identical to another (`!==`)
-`greaterThan($value, $value2, $message = '')` | Check that a value is greater than another
-`greaterThanEq($value, $value2, $message = '')` | Check that a value is greater than or equal to another
-`lessThan($value, $value2, $message = '')` | Check that a value is less than another
-`lessThanEq($value, $value2, $message = '')` | Check that a value is less than or equal to another
-`range($value, $min, $max, $message = '')` | Check that a value is within a range
-`oneOf($value, array $values, $message = '')` | Check that a value is one of a list of values
-
-### String Assertions
-
-You should check that a value is a string with `Assert::string()` before making
-any of the following assertions.
-
-Method | Description
---------------------------------------------------- | -----------------------------------------------------------------
-`contains($value, $subString, $message = '')` | Check that a string contains a substring
-`notContains($value, $subString, $message = '')` | Check that a string does not contains a substring
-`startsWith($value, $prefix, $message = '')` | Check that a string has a prefix
-`startsWithLetter($value, $message = '')` | Check that a string starts with a letter
-`endsWith($value, $suffix, $message = '')` | Check that a string has a suffix
-`regex($value, $pattern, $message = '')` | Check that a string matches a regular expression
-`notRegex($value, $pattern, $message = '')` | Check that a string does not match a regular expression
-`alpha($value, $message = '')` | Check that a string contains letters only
-`digits($value, $message = '')` | Check that a string contains digits only
-`alnum($value, $message = '')` | Check that a string contains letters and digits only
-`lower($value, $message = '')` | Check that a string contains lowercase characters only
-`upper($value, $message = '')` | Check that a string contains uppercase characters only
-`length($value, $length, $message = '')` | Check that a string has a certain number of characters
-`minLength($value, $min, $message = '')` | Check that a string has at least a certain number of characters
-`maxLength($value, $max, $message = '')` | Check that a string has at most a certain number of characters
-`lengthBetween($value, $min, $max, $message = '')` | Check that a string has a length in the given range
-`uuid($value, $message = '')` | Check that a string is a valid UUID
-`ip($value, $message = '')` | Check that a string is a valid IP (either IPv4 or IPv6)
-`ipv4($value, $message = '')` | Check that a string is a valid IPv4
-`ipv6($value, $message = '')` | Check that a string is a valid IPv6
-`notWhitespaceOnly($value, $message = '')` | Check that a string contains at least one non-whitespace character
-
-### File Assertions
-
-Method | Description
------------------------------------ | --------------------------------------------------
-`fileExists($value, $message = '')` | Check that a value is an existing path
-`file($value, $message = '')` | Check that a value is an existing file
-`directory($value, $message = '')` | Check that a value is an existing directory
-`readable($value, $message = '')` | Check that a value is a readable path
-`writable($value, $message = '')` | Check that a value is a writable path
-
-### Object Assertions
-
-Method | Description
------------------------------------------------------ | --------------------------------------------------
-`classExists($value, $message = '')` | Check that a value is an existing class name
-`subclassOf($value, $class, $message = '')` | Check that a class is a subclass of another
-`interfaceExists($value, $message = '')` | Check that a value is an existing interface name
-`implementsInterface($value, $class, $message = '')` | Check that a class implements an interface
-`propertyExists($value, $property, $message = '')` | Check that a property exists in a class/object
-`propertyNotExists($value, $property, $message = '')` | Check that a property does not exist in a class/object
-`methodExists($value, $method, $message = '')` | Check that a method exists in a class/object
-`methodNotExists($value, $method, $message = '')` | Check that a method does not exist in a class/object
-
-### Array Assertions
-
-Method | Description
--------------------------------------------------- | ------------------------------------------------------------------
-`keyExists($array, $key, $message = '')` | Check that a key exists in an array
-`keyNotExists($array, $key, $message = '')` | Check that a key does not exist in an array
-`count($array, $number, $message = '')` | Check that an array contains a specific number of elements
-`minCount($array, $min, $message = '')` | Check that an array contains at least a certain number of elements
-`maxCount($array, $max, $message = '')` | Check that an array contains at most a certain number of elements
-`countBetween($array, $min, $max, $message = '')` | Check that an array has a count in the given range
-`isList($array, $message = '')` | Check that an array is a non-associative list
-`isMap($array, $message = '')` | Check that an array is associative and has strings as keys
-
-### Function Assertions
-
-Method | Description
-------------------------------------------- | -----------------------------------------------------------------------------------------------------
-`throws($closure, $class, $message = '')` | Check that a function throws a certain exception. Subclasses of the exception class will be accepted.
-
-### Collection Assertions
-
-All of the above assertions can be prefixed with `all*()` to test the contents
-of an array or a `\Traversable`:
-
-```php
-Assert::allIsInstanceOf($employees, 'Acme\Employee');
-```
-
-### Nullable Assertions
-
-All of the above assertions can be prefixed with `nullOr*()` to run the
-assertion only if it the value is not `null`:
-
-```php
-Assert::nullOrString($middleName, 'The middle name must be a string or null. Got: %s');
-```
-
-Authors
--------
-
-* [Bernhard Schussek] a.k.a. [@webmozart]
-* [The Community Contributors]
-
-Contribute
-----------
-
-Contributions to the package are always welcome!
-
-* Report any bugs or issues you find on the [issue tracker].
-* You can grab the source code at the package's [Git repository].
-
-Support
--------
-
-If you are having problems, send a mail to bschussek@gmail.com or shout out to
-[@webmozart] on Twitter.
-
-License
--------
-
-All contents of this package are licensed under the [MIT license].
-
-[beberlei/assert]: https://github.com/beberlei/assert
-[assert package]: https://github.com/beberlei/assert
-[Composer]: https://getcomposer.org
-[Bernhard Schussek]: http://webmozarts.com
-[The Community Contributors]: https://github.com/webmozart/assert/graphs/contributors
-[issue tracker]: https://github.com/webmozart/assert/issues
-[Git repository]: https://github.com/webmozart/assert
-[@webmozart]: https://twitter.com/webmozart
-[MIT license]: LICENSE
-[`Assert`]: src/Assert.php
diff --git a/www/wiki/vendor/webmozart/assert/composer.json b/www/wiki/vendor/webmozart/assert/composer.json
deleted file mode 100644
index b6002ef3..00000000
--- a/www/wiki/vendor/webmozart/assert/composer.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "name": "webmozart/assert",
- "description": "Assertions to validate method input/output with nice error messages.",
- "keywords": [
- "assert",
- "check",
- "validate"
- ],
- "license": "MIT",
- "authors": [
- {
- "name": "Bernhard Schussek",
- "email": "bschussek@gmail.com"
- }
- ],
- "require": {
- "php": "^5.3.3 || ^7.0",
- "symfony/polyfill-ctype": "^1.8"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.6",
- "sebastian/version": "^1.0.1"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.3-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Webmozart\\Assert\\": "src/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Webmozart\\Assert\\Tests\\": "tests/"
- }
- }
-}
diff --git a/www/wiki/vendor/webmozart/assert/src/Assert.php b/www/wiki/vendor/webmozart/assert/src/Assert.php
deleted file mode 100644
index db04bfbe..00000000
--- a/www/wiki/vendor/webmozart/assert/src/Assert.php
+++ /dev/null
@@ -1,1187 +0,0 @@
-<?php
-
-/*
- * This file is part of the webmozart/assert package.
- *
- * (c) Bernhard Schussek <bschussek@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Webmozart\Assert;
-
-use ArrayAccess;
-use BadMethodCallException;
-use Closure;
-use Countable;
-use Exception;
-use InvalidArgumentException;
-use Throwable;
-use Traversable;
-
-/**
- * Efficient assertions to validate the input/output of your methods.
- *
- * @method static void nullOrString($value, $message = '')
- * @method static void nullOrStringNotEmpty($value, $message = '')
- * @method static void nullOrInteger($value, $message = '')
- * @method static void nullOrIntegerish($value, $message = '')
- * @method static void nullOrFloat($value, $message = '')
- * @method static void nullOrNumeric($value, $message = '')
- * @method static void nullOrNatural($value, $message = '')
- * @method static void nullOrBoolean($value, $message = '')
- * @method static void nullOrScalar($value, $message = '')
- * @method static void nullOrObject($value, $message = '')
- * @method static void nullOrResource($value, $type = null, $message = '')
- * @method static void nullOrIsCallable($value, $message = '')
- * @method static void nullOrIsArray($value, $message = '')
- * @method static void nullOrIsTraversable($value, $message = '')
- * @method static void nullOrIsArrayAccessible($value, $message = '')
- * @method static void nullOrIsCountable($value, $message = '')
- * @method static void nullOrIsIterable($value, $message = '')
- * @method static void nullOrIsInstanceOf($value, $class, $message = '')
- * @method static void nullOrNotInstanceOf($value, $class, $message = '')
- * @method static void nullOrIsInstanceOfAny($value, $classes, $message = '')
- * @method static void nullOrIsEmpty($value, $message = '')
- * @method static void nullOrNotEmpty($value, $message = '')
- * @method static void nullOrTrue($value, $message = '')
- * @method static void nullOrFalse($value, $message = '')
- * @method static void nullOrIp($value, $message = '')
- * @method static void nullOrIpv4($value, $message = '')
- * @method static void nullOrIpv6($value, $message = '')
- * @method static void nullOrEq($value, $value2, $message = '')
- * @method static void nullOrNotEq($value,$value2, $message = '')
- * @method static void nullOrSame($value, $value2, $message = '')
- * @method static void nullOrNotSame($value, $value2, $message = '')
- * @method static void nullOrGreaterThan($value, $value2, $message = '')
- * @method static void nullOrGreaterThanEq($value, $value2, $message = '')
- * @method static void nullOrLessThan($value, $value2, $message = '')
- * @method static void nullOrLessThanEq($value, $value2, $message = '')
- * @method static void nullOrRange($value, $min, $max, $message = '')
- * @method static void nullOrOneOf($value, $values, $message = '')
- * @method static void nullOrContains($value, $subString, $message = '')
- * @method static void nullOrNotContains($value, $subString, $message = '')
- * @method static void nullOrNotWhitespaceOnly($value, $message = '')
- * @method static void nullOrStartsWith($value, $prefix, $message = '')
- * @method static void nullOrStartsWithLetter($value, $message = '')
- * @method static void nullOrEndsWith($value, $suffix, $message = '')
- * @method static void nullOrRegex($value, $pattern, $message = '')
- * @method static void nullOrNotRegex($value, $pattern, $message = '')
- * @method static void nullOrAlpha($value, $message = '')
- * @method static void nullOrDigits($value, $message = '')
- * @method static void nullOrAlnum($value, $message = '')
- * @method static void nullOrLower($value, $message = '')
- * @method static void nullOrUpper($value, $message = '')
- * @method static void nullOrLength($value, $length, $message = '')
- * @method static void nullOrMinLength($value, $min, $message = '')
- * @method static void nullOrMaxLength($value, $max, $message = '')
- * @method static void nullOrLengthBetween($value, $min, $max, $message = '')
- * @method static void nullOrFileExists($value, $message = '')
- * @method static void nullOrFile($value, $message = '')
- * @method static void nullOrDirectory($value, $message = '')
- * @method static void nullOrReadable($value, $message = '')
- * @method static void nullOrWritable($value, $message = '')
- * @method static void nullOrClassExists($value, $message = '')
- * @method static void nullOrSubclassOf($value, $class, $message = '')
- * @method static void nullOrInterfaceExists($value, $message = '')
- * @method static void nullOrImplementsInterface($value, $interface, $message = '')
- * @method static void nullOrPropertyExists($value, $property, $message = '')
- * @method static void nullOrPropertyNotExists($value, $property, $message = '')
- * @method static void nullOrMethodExists($value, $method, $message = '')
- * @method static void nullOrMethodNotExists($value, $method, $message = '')
- * @method static void nullOrKeyExists($value, $key, $message = '')
- * @method static void nullOrKeyNotExists($value, $key, $message = '')
- * @method static void nullOrCount($value, $key, $message = '')
- * @method static void nullOrMinCount($value, $min, $message = '')
- * @method static void nullOrMaxCount($value, $max, $message = '')
- * @method static void nullOrIsList($value, $message = '')
- * @method static void nullOrIsMap($value, $message = '')
- * @method static void nullOrCountBetween($value, $min, $max, $message = '')
- * @method static void nullOrUuid($values, $message = '')
- * @method static void nullOrThrows($expression, $class = 'Exception', $message = '')
- * @method static void allString($values, $message = '')
- * @method static void allStringNotEmpty($values, $message = '')
- * @method static void allInteger($values, $message = '')
- * @method static void allIntegerish($values, $message = '')
- * @method static void allFloat($values, $message = '')
- * @method static void allNumeric($values, $message = '')
- * @method static void allNatural($values, $message = '')
- * @method static void allBoolean($values, $message = '')
- * @method static void allScalar($values, $message = '')
- * @method static void allObject($values, $message = '')
- * @method static void allResource($values, $type = null, $message = '')
- * @method static void allIsCallable($values, $message = '')
- * @method static void allIsArray($values, $message = '')
- * @method static void allIsTraversable($values, $message = '')
- * @method static void allIsArrayAccessible($values, $message = '')
- * @method static void allIsCountable($values, $message = '')
- * @method static void allIsIterable($values, $message = '')
- * @method static void allIsInstanceOf($values, $class, $message = '')
- * @method static void allNotInstanceOf($values, $class, $message = '')
- * @method static void allIsInstanceOfAny($values, $classes, $message = '')
- * @method static void allNull($values, $message = '')
- * @method static void allNotNull($values, $message = '')
- * @method static void allIsEmpty($values, $message = '')
- * @method static void allNotEmpty($values, $message = '')
- * @method static void allTrue($values, $message = '')
- * @method static void allFalse($values, $message = '')
- * @method static void allIp($values, $message = '')
- * @method static void allIpv4($values, $message = '')
- * @method static void allIpv6($values, $message = '')
- * @method static void allEq($values, $value2, $message = '')
- * @method static void allNotEq($values,$value2, $message = '')
- * @method static void allSame($values, $value2, $message = '')
- * @method static void allNotSame($values, $value2, $message = '')
- * @method static void allGreaterThan($values, $value2, $message = '')
- * @method static void allGreaterThanEq($values, $value2, $message = '')
- * @method static void allLessThan($values, $value2, $message = '')
- * @method static void allLessThanEq($values, $value2, $message = '')
- * @method static void allRange($values, $min, $max, $message = '')
- * @method static void allOneOf($values, $values, $message = '')
- * @method static void allContains($values, $subString, $message = '')
- * @method static void allNotContains($values, $subString, $message = '')
- * @method static void allNotWhitespaceOnly($values, $message = '')
- * @method static void allStartsWith($values, $prefix, $message = '')
- * @method static void allStartsWithLetter($values, $message = '')
- * @method static void allEndsWith($values, $suffix, $message = '')
- * @method static void allRegex($values, $pattern, $message = '')
- * @method static void allNotRegex($values, $pattern, $message = '')
- * @method static void allAlpha($values, $message = '')
- * @method static void allDigits($values, $message = '')
- * @method static void allAlnum($values, $message = '')
- * @method static void allLower($values, $message = '')
- * @method static void allUpper($values, $message = '')
- * @method static void allLength($values, $length, $message = '')
- * @method static void allMinLength($values, $min, $message = '')
- * @method static void allMaxLength($values, $max, $message = '')
- * @method static void allLengthBetween($values, $min, $max, $message = '')
- * @method static void allFileExists($values, $message = '')
- * @method static void allFile($values, $message = '')
- * @method static void allDirectory($values, $message = '')
- * @method static void allReadable($values, $message = '')
- * @method static void allWritable($values, $message = '')
- * @method static void allClassExists($values, $message = '')
- * @method static void allSubclassOf($values, $class, $message = '')
- * @method static void allInterfaceExists($values, $message = '')
- * @method static void allImplementsInterface($values, $interface, $message = '')
- * @method static void allPropertyExists($values, $property, $message = '')
- * @method static void allPropertyNotExists($values, $property, $message = '')
- * @method static void allMethodExists($values, $method, $message = '')
- * @method static void allMethodNotExists($values, $method, $message = '')
- * @method static void allKeyExists($values, $key, $message = '')
- * @method static void allKeyNotExists($values, $key, $message = '')
- * @method static void allCount($values, $key, $message = '')
- * @method static void allMinCount($values, $min, $message = '')
- * @method static void allMaxCount($values, $max, $message = '')
- * @method static void allCountBetween($values, $min, $max, $message = '')
- * @method static void allIsList($values, $message = '')
- * @method static void allIsMap($values, $message = '')
- * @method static void allUuid($values, $message = '')
- * @method static void allThrows($expressions, $class = 'Exception', $message = '')
- *
- * @since 1.0
- *
- * @author Bernhard Schussek <bschussek@gmail.com>
- */
-class Assert
-{
- public static function string($value, $message = '')
- {
- if (!is_string($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a string. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function stringNotEmpty($value, $message = '')
- {
- static::string($value, $message);
- static::notEq($value, '', $message);
- }
-
- public static function integer($value, $message = '')
- {
- if (!is_int($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an integer. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function integerish($value, $message = '')
- {
- if (!is_numeric($value) || $value != (int) $value) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an integerish value. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function float($value, $message = '')
- {
- if (!is_float($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a float. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function numeric($value, $message = '')
- {
- if (!is_numeric($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a numeric. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function natural($value, $message = '')
- {
- if (!is_int($value) || $value < 0) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a non-negative integer. Got %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function boolean($value, $message = '')
- {
- if (!is_bool($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a boolean. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function scalar($value, $message = '')
- {
- if (!is_scalar($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a scalar. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function object($value, $message = '')
- {
- if (!is_object($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an object. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function resource($value, $type = null, $message = '')
- {
- if (!is_resource($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a resource. Got: %s',
- static::typeToString($value)
- ));
- }
-
- if ($type && $type !== get_resource_type($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a resource of type %2$s. Got: %s',
- static::typeToString($value),
- $type
- ));
- }
- }
-
- public static function isCallable($value, $message = '')
- {
- if (!is_callable($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a callable. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function isArray($value, $message = '')
- {
- if (!is_array($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an array. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function isTraversable($value, $message = '')
- {
- @trigger_error(
- sprintf(
- 'The "%s" assertion is deprecated. You should stop using it, as it will soon be removed in 2.0 version. Use "isIterable" or "isInstanceOf" instead.',
- __METHOD__
- ),
- E_USER_DEPRECATED
- );
-
- if (!is_array($value) && !($value instanceof Traversable)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a traversable. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function isArrayAccessible($value, $message = '')
- {
- if (!is_array($value) && !($value instanceof ArrayAccess)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an array accessible. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function isCountable($value, $message = '')
- {
- if (!is_array($value) && !($value instanceof Countable)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a countable. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function isIterable($value, $message = '')
- {
- if (!is_array($value) && !($value instanceof Traversable)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an iterable. Got: %s',
- static::typeToString($value)
- ));
- }
- }
-
- public static function isInstanceOf($value, $class, $message = '')
- {
- if (!($value instanceof $class)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an instance of %2$s. Got: %s',
- static::typeToString($value),
- $class
- ));
- }
- }
-
- public static function notInstanceOf($value, $class, $message = '')
- {
- if ($value instanceof $class) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an instance other than %2$s. Got: %s',
- static::typeToString($value),
- $class
- ));
- }
- }
-
- public static function isInstanceOfAny($value, array $classes, $message = '')
- {
- foreach ($classes as $class) {
- if ($value instanceof $class) {
- return;
- }
- }
-
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an instance of any of %2$s. Got: %s',
- static::typeToString($value),
- implode(', ', array_map(array('static', 'valueToString'), $classes))
- ));
- }
-
- public static function isEmpty($value, $message = '')
- {
- if (!empty($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an empty value. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function notEmpty($value, $message = '')
- {
- if (empty($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a non-empty value. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function null($value, $message = '')
- {
- if (null !== $value) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected null. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function notNull($value, $message = '')
- {
- if (null === $value) {
- static::reportInvalidArgument(
- $message ?: 'Expected a value other than null.'
- );
- }
- }
-
- public static function true($value, $message = '')
- {
- if (true !== $value) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to be true. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function false($value, $message = '')
- {
- if (false !== $value) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to be false. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function ip($value, $message = '')
- {
- if (false === filter_var($value, FILTER_VALIDATE_IP)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to be an IP. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function ipv4($value, $message = '')
- {
- if (false === filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to be an IPv4. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function ipv6($value, $message = '')
- {
- if (false === filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to be an IPv6. Got %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function eq($value, $value2, $message = '')
- {
- if ($value2 != $value) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value equal to %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($value2)
- ));
- }
- }
-
- public static function notEq($value, $value2, $message = '')
- {
- if ($value2 == $value) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a different value than %s.',
- static::valueToString($value2)
- ));
- }
- }
-
- public static function same($value, $value2, $message = '')
- {
- if ($value2 !== $value) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value identical to %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($value2)
- ));
- }
- }
-
- public static function notSame($value, $value2, $message = '')
- {
- if ($value2 === $value) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value not identical to %s.',
- static::valueToString($value2)
- ));
- }
- }
-
- public static function greaterThan($value, $limit, $message = '')
- {
- if ($value <= $limit) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value greater than %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($limit)
- ));
- }
- }
-
- public static function greaterThanEq($value, $limit, $message = '')
- {
- if ($value < $limit) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value greater than or equal to %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($limit)
- ));
- }
- }
-
- public static function lessThan($value, $limit, $message = '')
- {
- if ($value >= $limit) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value less than %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($limit)
- ));
- }
- }
-
- public static function lessThanEq($value, $limit, $message = '')
- {
- if ($value > $limit) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value less than or equal to %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($limit)
- ));
- }
- }
-
- public static function range($value, $min, $max, $message = '')
- {
- if ($value < $min || $value > $max) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value between %2$s and %3$s. Got: %s',
- static::valueToString($value),
- static::valueToString($min),
- static::valueToString($max)
- ));
- }
- }
-
- public static function oneOf($value, array $values, $message = '')
- {
- if (!in_array($value, $values, true)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected one of: %2$s. Got: %s',
- static::valueToString($value),
- implode(', ', array_map(array('static', 'valueToString'), $values))
- ));
- }
- }
-
- public static function contains($value, $subString, $message = '')
- {
- if (false === strpos($value, $subString)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to contain %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($subString)
- ));
- }
- }
-
- public static function notContains($value, $subString, $message = '')
- {
- if (false !== strpos($value, $subString)) {
- static::reportInvalidArgument(sprintf(
- $message ?: '%2$s was not expected to be contained in a value. Got: %s',
- static::valueToString($value),
- static::valueToString($subString)
- ));
- }
- }
-
- public static function notWhitespaceOnly($value, $message = '')
- {
- if (preg_match('/^\s*$/', $value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a non-whitespace string. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function startsWith($value, $prefix, $message = '')
- {
- if (0 !== strpos($value, $prefix)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to start with %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($prefix)
- ));
- }
- }
-
- public static function startsWithLetter($value, $message = '')
- {
- $valid = isset($value[0]);
-
- if ($valid) {
- $locale = setlocale(LC_CTYPE, 0);
- setlocale(LC_CTYPE, 'C');
- $valid = ctype_alpha($value[0]);
- setlocale(LC_CTYPE, $locale);
- }
-
- if (!$valid) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to start with a letter. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function endsWith($value, $suffix, $message = '')
- {
- if ($suffix !== substr($value, -static::strlen($suffix))) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to end with %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($suffix)
- ));
- }
- }
-
- public static function regex($value, $pattern, $message = '')
- {
- if (!preg_match($pattern, $value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'The value %s does not match the expected pattern.',
- static::valueToString($value)
- ));
- }
- }
-
- public static function notRegex($value, $pattern, $message = '')
- {
- if (preg_match($pattern, $value, $matches, PREG_OFFSET_CAPTURE)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'The value %s matches the pattern %s (at offset %d).',
- static::valueToString($value),
- static::valueToString($pattern),
- $matches[0][1]
- ));
- }
- }
-
- public static function alpha($value, $message = '')
- {
- $locale = setlocale(LC_CTYPE, 0);
- setlocale(LC_CTYPE, 'C');
- $valid = !ctype_alpha($value);
- setlocale(LC_CTYPE, $locale);
-
- if ($valid) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to contain only letters. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function digits($value, $message = '')
- {
- $locale = setlocale(LC_CTYPE, 0);
- setlocale(LC_CTYPE, 'C');
- $valid = !ctype_digit($value);
- setlocale(LC_CTYPE, $locale);
-
- if ($valid) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to contain digits only. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function alnum($value, $message = '')
- {
- $locale = setlocale(LC_CTYPE, 0);
- setlocale(LC_CTYPE, 'C');
- $valid = !ctype_alnum($value);
- setlocale(LC_CTYPE, $locale);
-
- if ($valid) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to contain letters and digits only. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function lower($value, $message = '')
- {
- $locale = setlocale(LC_CTYPE, 0);
- setlocale(LC_CTYPE, 'C');
- $valid = !ctype_lower($value);
- setlocale(LC_CTYPE, $locale);
-
- if ($valid) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to contain lowercase characters only. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function upper($value, $message = '')
- {
- $locale = setlocale(LC_CTYPE, 0);
- setlocale(LC_CTYPE, 'C');
- $valid = !ctype_upper($value);
- setlocale(LC_CTYPE, $locale);
-
- if ($valid) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to contain uppercase characters only. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function length($value, $length, $message = '')
- {
- if ($length !== static::strlen($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to contain %2$s characters. Got: %s',
- static::valueToString($value),
- $length
- ));
- }
- }
-
- public static function minLength($value, $min, $message = '')
- {
- if (static::strlen($value) < $min) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to contain at least %2$s characters. Got: %s',
- static::valueToString($value),
- $min
- ));
- }
- }
-
- public static function maxLength($value, $max, $message = '')
- {
- if (static::strlen($value) > $max) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to contain at most %2$s characters. Got: %s',
- static::valueToString($value),
- $max
- ));
- }
- }
-
- public static function lengthBetween($value, $min, $max, $message = '')
- {
- $length = static::strlen($value);
-
- if ($length < $min || $length > $max) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a value to contain between %2$s and %3$s characters. Got: %s',
- static::valueToString($value),
- $min,
- $max
- ));
- }
- }
-
- public static function fileExists($value, $message = '')
- {
- static::string($value);
-
- if (!file_exists($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'The file %s does not exist.',
- static::valueToString($value)
- ));
- }
- }
-
- public static function file($value, $message = '')
- {
- static::fileExists($value, $message);
-
- if (!is_file($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'The path %s is not a file.',
- static::valueToString($value)
- ));
- }
- }
-
- public static function directory($value, $message = '')
- {
- static::fileExists($value, $message);
-
- if (!is_dir($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'The path %s is no directory.',
- static::valueToString($value)
- ));
- }
- }
-
- public static function readable($value, $message = '')
- {
- if (!is_readable($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'The path %s is not readable.',
- static::valueToString($value)
- ));
- }
- }
-
- public static function writable($value, $message = '')
- {
- if (!is_writable($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'The path %s is not writable.',
- static::valueToString($value)
- ));
- }
- }
-
- public static function classExists($value, $message = '')
- {
- if (!class_exists($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an existing class name. Got: %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function subclassOf($value, $class, $message = '')
- {
- if (!is_subclass_of($value, $class)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected a sub-class of %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($class)
- ));
- }
- }
-
- public static function interfaceExists($value, $message = '')
- {
- if (!interface_exists($value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an existing interface name. got %s',
- static::valueToString($value)
- ));
- }
- }
-
- public static function implementsInterface($value, $interface, $message = '')
- {
- if (!in_array($interface, class_implements($value))) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an implementation of %2$s. Got: %s',
- static::valueToString($value),
- static::valueToString($interface)
- ));
- }
- }
-
- public static function propertyExists($classOrObject, $property, $message = '')
- {
- if (!property_exists($classOrObject, $property)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected the property %s to exist.',
- static::valueToString($property)
- ));
- }
- }
-
- public static function propertyNotExists($classOrObject, $property, $message = '')
- {
- if (property_exists($classOrObject, $property)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected the property %s to not exist.',
- static::valueToString($property)
- ));
- }
- }
-
- public static function methodExists($classOrObject, $method, $message = '')
- {
- if (!method_exists($classOrObject, $method)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected the method %s to exist.',
- static::valueToString($method)
- ));
- }
- }
-
- public static function methodNotExists($classOrObject, $method, $message = '')
- {
- if (method_exists($classOrObject, $method)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected the method %s to not exist.',
- static::valueToString($method)
- ));
- }
- }
-
- public static function keyExists($array, $key, $message = '')
- {
- if (!(isset($array[$key]) || array_key_exists($key, $array))) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected the key %s to exist.',
- static::valueToString($key)
- ));
- }
- }
-
- public static function keyNotExists($array, $key, $message = '')
- {
- if (isset($array[$key]) || array_key_exists($key, $array)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected the key %s to not exist.',
- static::valueToString($key)
- ));
- }
- }
-
- public static function count($array, $number, $message = '')
- {
- static::eq(
- count($array),
- $number,
- $message ?: sprintf('Expected an array to contain %d elements. Got: %d.', $number, count($array))
- );
- }
-
- public static function minCount($array, $min, $message = '')
- {
- if (count($array) < $min) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an array to contain at least %2$d elements. Got: %d',
- count($array),
- $min
- ));
- }
- }
-
- public static function maxCount($array, $max, $message = '')
- {
- if (count($array) > $max) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an array to contain at most %2$d elements. Got: %d',
- count($array),
- $max
- ));
- }
- }
-
- public static function countBetween($array, $min, $max, $message = '')
- {
- $count = count($array);
-
- if ($count < $min || $count > $max) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Expected an array to contain between %2$d and %3$d elements. Got: %d',
- $count,
- $min,
- $max
- ));
- }
- }
-
- public static function isList($array, $message = '')
- {
- if (!is_array($array) || !$array || array_keys($array) !== range(0, count($array) - 1)) {
- static::reportInvalidArgument(
- $message ?: 'Expected list - non-associative array.'
- );
- }
- }
-
- public static function isMap($array, $message = '')
- {
- if (
- !is_array($array) ||
- !$array ||
- array_keys($array) !== array_filter(array_keys($array), function ($key) {
- return is_string($key);
- })
- ) {
- static::reportInvalidArgument(
- $message ?: 'Expected map - associative array with string keys.'
- );
- }
- }
-
- public static function uuid($value, $message = '')
- {
- $value = str_replace(array('urn:', 'uuid:', '{', '}'), '', $value);
-
- // The nil UUID is special form of UUID that is specified to have all
- // 128 bits set to zero.
- if ('00000000-0000-0000-0000-000000000000' === $value) {
- return;
- }
-
- if (!preg_match('/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/', $value)) {
- static::reportInvalidArgument(sprintf(
- $message ?: 'Value %s is not a valid UUID.',
- static::valueToString($value)
- ));
- }
- }
-
- public static function throws(Closure $expression, $class = 'Exception', $message = '')
- {
- static::string($class);
-
- $actual = 'none';
-
- try {
- $expression();
- } catch (Exception $e) {
- $actual = get_class($e);
- if ($e instanceof $class) {
- return;
- }
- } catch (Throwable $e) {
- $actual = get_class($e);
- if ($e instanceof $class) {
- return;
- }
- }
-
- static::reportInvalidArgument($message ?: sprintf(
- 'Expected to throw "%s", got "%s"',
- $class,
- $actual
- ));
- }
-
- public static function __callStatic($name, $arguments)
- {
- if ('nullOr' === substr($name, 0, 6)) {
- if (null !== $arguments[0]) {
- $method = lcfirst(substr($name, 6));
- call_user_func_array(array('static', $method), $arguments);
- }
-
- return;
- }
-
- if ('all' === substr($name, 0, 3)) {
- static::isIterable($arguments[0]);
-
- $method = lcfirst(substr($name, 3));
- $args = $arguments;
-
- foreach ($arguments[0] as $entry) {
- $args[0] = $entry;
-
- call_user_func_array(array('static', $method), $args);
- }
-
- return;
- }
-
- throw new BadMethodCallException('No such method: '.$name);
- }
-
- protected static function valueToString($value)
- {
- if (null === $value) {
- return 'null';
- }
-
- if (true === $value) {
- return 'true';
- }
-
- if (false === $value) {
- return 'false';
- }
-
- if (is_array($value)) {
- return 'array';
- }
-
- if (is_object($value)) {
- if (method_exists($value, '__toString')) {
- return get_class($value).': '.self::valueToString($value->__toString());
- }
-
- return get_class($value);
- }
-
- if (is_resource($value)) {
- return 'resource';
- }
-
- if (is_string($value)) {
- return '"'.$value.'"';
- }
-
- return (string) $value;
- }
-
- protected static function typeToString($value)
- {
- return is_object($value) ? get_class($value) : gettype($value);
- }
-
- protected static function strlen($value)
- {
- if (!function_exists('mb_detect_encoding')) {
- return strlen($value);
- }
-
- if (false === $encoding = mb_detect_encoding($value)) {
- return strlen($value);
- }
-
- return mb_strwidth($value, $encoding);
- }
-
- protected static function reportInvalidArgument($message)
- {
- throw new InvalidArgumentException($message);
- }
-
- private function __construct()
- {
- }
-}
diff --git a/www/wiki/vendor/wikimedia/avro/LICENSE.txt b/www/wiki/vendor/wikimedia/avro/LICENSE.txt
deleted file mode 100644
index 6d3f211b..00000000
--- a/www/wiki/vendor/wikimedia/avro/LICENSE.txt
+++ /dev/null
@@ -1,308 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
-----------------------------------------------------------------------
-License for the Jansson C JSON parser used in the C implementation:
-
-Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-----------------------------------------------------------------------
-License for the Json.NET used in the C# implementation:
-
-Copyright (c) 2007 James Newton-King
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-----------------------------------------------------------------------
-License for msinttypes used in the C implementation:
-Source from:
-http://code.google.com/p/msinttypes/downloads/detail?name=msinttypes-r26.zip
-
-Copyright (c) 2006-2008 Alexander Chemeris
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- 3. The name of the author may be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-----------------------------------------------------------------------
-License for Dirent API for Microsoft Visual Studio used in the C implementation:
-Source from:
-http://www.softagalleria.net/download/dirent/dirent-1.11.zip
-
-Copyright (C) 2006 Toni Ronkko
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-``Software''), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL TONI RONKKO BE LIABLE FOR ANY CLAIM, DAMAGES OR
-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-----------------------------------------------------------------------
diff --git a/www/wiki/vendor/wikimedia/avro/NOTICE.txt b/www/wiki/vendor/wikimedia/avro/NOTICE.txt
deleted file mode 100644
index e601a8e9..00000000
--- a/www/wiki/vendor/wikimedia/avro/NOTICE.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Apache Avro
-Copyright 2010 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
-
-C JSON parsing provided by Jansson and
-written by Petri Lehtinen. The original software is
-available from http://www.digip.org/jansson/.
diff --git a/www/wiki/vendor/wikimedia/avro/README.md b/www/wiki/vendor/wikimedia/avro/README.md
deleted file mode 100644
index 5604baf2..00000000
--- a/www/wiki/vendor/wikimedia/avro/README.md
+++ /dev/null
@@ -1,23 +0,0 @@
-What the Avro PHP library is
-============================
-
-A library for using [Avro](http://avro.apache.org/) with PHP.
-
-Requirements
-------------
- * PHP 5
- * On 32-bit platforms, the [GMP PHP extension](http://php.net/gmp)
- * For testing, [PHPUnit](http://www.phpunit.de/)
-
-Both GMP and PHPUnit are often available via package management
-systems as `php5-gmp` and `phpunit`, respectively.
-
-Getting started
----------------
-```
-$ composer require wikimedia/avro
-```
-
-History
--------
-Extracted from https://github.com/apache/avro using `git subtree`.
diff --git a/www/wiki/vendor/wikimedia/avro/lib/avro.php b/www/wiki/vendor/wikimedia/avro/lib/avro.php
deleted file mode 100644
index 4805fb7a..00000000
--- a/www/wiki/vendor/wikimedia/avro/lib/avro.php
+++ /dev/null
@@ -1,195 +0,0 @@
-<?php
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Avro library top-level file.
- *
- * This file in turn includes all files supporting the
- * Avro implementation.
- *
- * @package Avro
- */
-
-/**
- * General Avro exceptions.
- * @package Avro
- */
-class AvroException extends Exception {}
-
-/**
- * Library-level class for PHP Avro port.
- *
- * Contains library details such as version number and platform checks.
- *
- * This port is an implementation of the
- * {@link http://avro.apache.org/docs/1.3.3/spec.html Avro 1.3.3 Specification}
- *
- * @package Avro
- *
- */
-class Avro
-{
- /**
- * @var string version number of Avro specification to which
- * this implemenation complies
- */
- const SPEC_VERSION = '1.3.3';
-
- /**#@+
- * Constant to enumerate endianness.
- * @access private
- * @var int
- */
- const BIG_ENDIAN = 0x00;
- const LITTLE_ENDIAN = 0x01;
- /**#@-*/
-
- /**
- * Memoized result of self::set_endianness()
- * @var int self::BIG_ENDIAN or self::LITTLE_ENDIAN
- * @see self::set_endianness()
- */
- private static $endianness;
-
- /**#@+
- * Constant to enumerate biginteger handling mode.
- * GMP is used, if available, on 32-bit platforms.
- */
- const PHP_BIGINTEGER_MODE = 0x00;
- const GMP_BIGINTEGER_MODE = 0x01;
- /**#@-*/
-
- /**
- * @var int
- * Mode used to handle bigintegers. After Avro::check_64_bit() has been called,
- * (usually via a call to Avro::check_platform(), set to
- * self::GMP_BIGINTEGER_MODE on 32-bit platforms that have GMP available,
- * and to self::PHP_BIGINTEGER_MODE otherwise.
- */
- private static $biginteger_mode;
-
- /**
- * Wrapper method to call each required check.
- *
- */
- public static function check_platform()
- {
- self::check_64_bit();
- self::check_little_endian();
- }
-
- /**
- * Determines if the host platform can encode and decode long integer data.
- *
- * @throws AvroException if the platform cannot handle long integers.
- */
- private static function check_64_bit()
- {
- if (8 != PHP_INT_SIZE)
- if (extension_loaded('gmp'))
- self::$biginteger_mode = self::GMP_BIGINTEGER_MODE;
- else
- throw new AvroException('This platform cannot handle a 64-bit operations. '
- . 'Please install the GMP PHP extension.');
- else
- self::$biginteger_mode = self::PHP_BIGINTEGER_MODE;
-
- }
-
- /**
- * @returns boolean true if the PHP GMP extension is used and false otherwise.
- * @internal Requires Avro::check_64_bit() (exposed via Avro::check_platform())
- * to have been called to set Avro::$biginteger_mode.
- */
- static function uses_gmp()
- {
- return (self::GMP_BIGINTEGER_MODE == self::$biginteger_mode);
- }
-
- /**
- * Determines if the host platform is little endian,
- * required for processing double and float data.
- *
- * @throws AvroException if the platform is not little endian.
- */
- private static function check_little_endian()
- {
- if (!self::is_little_endian_platform())
- throw new AvroException('This is not a little-endian platform');
- }
-
- /**
- * Determines the endianness of the host platform and memoizes
- * the result to Avro::$endianness.
- *
- * Based on a similar check perfomed in http://pear.php.net/package/Math_BinaryUtils
- *
- * @throws AvroException if the endianness cannot be determined.
- */
- private static function set_endianness()
- {
- $packed = pack('d', 1);
- switch ($packed)
- {
- case "\77\360\0\0\0\0\0\0":
- self::$endianness = self::BIG_ENDIAN;
- break;
- case "\0\0\0\0\0\0\360\77":
- self::$endianness = self::LITTLE_ENDIAN;
- break;
- default:
- throw new AvroException(
- sprintf('Error determining platform endianness: %s',
- AvroDebug::hex_string($packed)));
- }
- }
-
- /**
- * @returns boolean true if the host platform is big endian
- * and false otherwise.
- * @uses self::set_endianness()
- */
- private static function is_big_endian_platform()
- {
- if (is_null(self::$endianness))
- self::set_endianness();
-
- return (self::BIG_ENDIAN == self::$endianness);
- }
-
- /**
- * @returns boolean true if the host platform is little endian,
- * and false otherwise.
- * @uses self::is_bin_endian_platform()
- */
- private static function is_little_endian_platform()
- {
- return !self::is_big_endian_platform();
- }
-
-}
-
-require_once('avro/util.php');
-require_once('avro/debug.php');
-require_once('avro/schema.php');
-require_once('avro/io.php');
-require_once('avro/gmp.php');
-require_once('avro/datum.php');
-require_once('avro/data_file.php');
-require_once('avro/protocol.php');
diff --git a/www/wiki/vendor/wikimedia/avro/lib/avro/data_file.php b/www/wiki/vendor/wikimedia/avro/lib/avro/data_file.php
deleted file mode 100644
index e8e089f5..00000000
--- a/www/wiki/vendor/wikimedia/avro/lib/avro/data_file.php
+++ /dev/null
@@ -1,535 +0,0 @@
-<?php
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Classes handling reading and writing from and to AvroIO objects
- * @package Avro
- */
-
-/**
- * Raised when something unkind happens with respect to AvroDataIO.
- * @package Avro
- */
-class AvroDataIOException extends AvroException {}
-
-/**
- * @package Avro
- */
-class AvroDataIO
-{
- /**
- * @var int used in file header
- */
- const VERSION = 1;
-
- /**
- * @var int count of bytes in synchronization marker
- */
- const SYNC_SIZE = 16;
-
- /**
- * @var int count of items per block, arbitrarily set to 4000 * SYNC_SIZE
- * @todo make this value configurable
- */
- const SYNC_INTERVAL = 64000;
-
- /**
- * @var string map key for datafile metadata codec value
- */
- const METADATA_CODEC_ATTR = 'avro.codec';
-
- /**
- * @var string map key for datafile metadata schema value
- */
- const METADATA_SCHEMA_ATTR = 'avro.schema';
- /**
- * @var string JSON for datafile metadata schema
- */
- const METADATA_SCHEMA_JSON = '{"type":"map","values":"bytes"}';
-
- /**
- * @var string codec value for NULL codec
- */
- const NULL_CODEC = 'null';
-
- /**
- * @var string codec value for deflate codec
- */
- const DEFLATE_CODEC = 'deflate';
-
- /**
- * @var array array of valid codec names
- * @todo Avro implementations are required to implement deflate codec as well,
- * so implement it already!
- */
- private static $valid_codecs = array(self::NULL_CODEC);
-
- /**
- * @var AvroSchema cached version of metadata schema object
- */
- private static $metadata_schema;
-
- /**
- * @returns the initial "magic" segment of an Avro container file header.
- */
- public static function magic() { return ('Obj' . pack('c', self::VERSION)); }
-
- /**
- * @returns int count of bytes in the initial "magic" segment of the
- * Avro container file header
- */
- public static function magic_size() { return strlen(self::magic()); }
-
-
- /**
- * @returns AvroSchema object of Avro container file metadata.
- */
- public static function metadata_schema()
- {
- if (is_null(self::$metadata_schema))
- self::$metadata_schema = AvroSchema::parse(self::METADATA_SCHEMA_JSON);
- return self::$metadata_schema;
- }
-
- /**
- * @param string $file_path file_path of file to open
- * @param string $mode one of AvroFile::READ_MODE or AvroFile::WRITE_MODE
- * @param string $schema_json JSON of writer's schema
- * @returns AvroDataIOWriter instance of AvroDataIOWriter
- *
- * @throws AvroDataIOException if $writers_schema is not provided
- * or if an invalid $mode is given.
- */
- public static function open_file($file_path, $mode=AvroFile::READ_MODE,
- $schema_json=null)
- {
- $schema = !is_null($schema_json)
- ? AvroSchema::parse($schema_json) : null;
-
- $io = false;
- switch ($mode)
- {
- case AvroFile::WRITE_MODE:
- if (is_null($schema))
- throw new AvroDataIOException('Writing an Avro file requires a schema.');
- $file = new AvroFile($file_path, AvroFile::WRITE_MODE);
- $io = self::open_writer($file, $schema);
- break;
- case AvroFile::READ_MODE:
- $file = new AvroFile($file_path, AvroFile::READ_MODE);
- $io = self::open_reader($file, $schema);
- break;
- default:
- throw new AvroDataIOException(
- sprintf("Only modes '%s' and '%s' allowed. You gave '%s'.",
- AvroFile::READ_MODE, AvroFile::WRITE_MODE, $mode));
- }
- return $io;
- }
-
- /**
- * @returns array array of valid codecs
- */
- private static function valid_codecs()
- {
- return self::$valid_codecs;
- }
-
- /**
- * @param string $codec
- * @returns boolean true if $codec is a valid codec value and false otherwise
- */
- public static function is_valid_codec($codec)
- {
- return in_array($codec, self::valid_codecs());
- }
-
- /**
- * @param AvroIO $io
- * @param AvroSchema $schema
- * @returns AvroDataIOWriter
- */
- protected function open_writer($io, $schema)
- {
- $writer = new AvroIODatumWriter($schema);
- return new AvroDataIOWriter($io, $writer, $schema);
- }
-
- /**
- * @param AvroIO $io
- * @param AvroSchema $schema
- * @returns AvroDataIOReader
- */
- protected function open_reader($io, $schema)
- {
- $reader = new AvroIODatumReader(null, $schema);
- return new AvroDataIOReader($io, $reader);
- }
-
-}
-
-/**
- *
- * Reads Avro data from an AvroIO source using an AvroSchema.
- * @package Avro
- */
-class AvroDataIOReader
-{
- /**
- * @var AvroIO
- */
- private $io;
-
- /**
- * @var AvroIOBinaryDecoder
- */
- private $decoder;
-
- /**
- * @var AvroIODatumReader
- */
- private $datum_reader;
-
- /**
- * @var string
- */
- private $sync_marker;
-
- /**
- * @var array object container metadata
- */
- private $metadata;
-
- /**
- * @var int count of items in block
- */
- private $block_count;
-
- /**
- * @param AvroIO $io source from which to read
- * @param AvroIODatumReader $datum_reader reader that understands
- * the data schema
- * @throws AvroDataIOException if $io is not an instance of AvroIO
- * @uses read_header()
- */
- public function __construct($io, $datum_reader)
- {
-
- if (!($io instanceof AvroIO))
- throw new AvroDataIOException('io must be instance of AvroIO');
-
- $this->io = $io;
- $this->decoder = new AvroIOBinaryDecoder($this->io);
- $this->datum_reader = $datum_reader;
- $this->read_header();
-
- $codec = AvroUtil::array_value($this->metadata,
- AvroDataIO::METADATA_CODEC_ATTR);
- if ($codec && !AvroDataIO::is_valid_codec($codec))
- throw new AvroDataIOException(sprintf('Uknown codec: %s', $codec));
-
- $this->block_count = 0;
- // FIXME: Seems unsanitary to set writers_schema here.
- // Can't constructor take it as an argument?
- $this->datum_reader->set_writers_schema(
- AvroSchema::parse($this->metadata[AvroDataIO::METADATA_SCHEMA_ATTR]));
- }
-
- /**
- * Reads header of object container
- * @throws AvroDataIOException if the file is not an Avro data file.
- */
- private function read_header()
- {
- $this->seek(0, AvroIO::SEEK_SET);
-
- $magic = $this->read(AvroDataIO::magic_size());
-
- if (strlen($magic) < AvroDataIO::magic_size())
- throw new AvroDataIOException(
- 'Not an Avro data file: shorter than the Avro magic block');
-
- if (AvroDataIO::magic() != $magic)
- throw new AvroDataIOException(
- sprintf('Not an Avro data file: %s does not match %s',
- $magic, AvroDataIO::magic()));
-
- $this->metadata = $this->datum_reader->read_data(AvroDataIO::metadata_schema(),
- AvroDataIO::metadata_schema(),
- $this->decoder);
- $this->sync_marker = $this->read(AvroDataIO::SYNC_SIZE);
- }
-
- /**
- * @internal Would be nice to implement data() as an iterator, I think
- * @returns array of data from object container.
- */
- public function data()
- {
- $data = array();
- while (true)
- {
- if (0 == $this->block_count)
- {
- if ($this->is_eof())
- break;
-
- if ($this->skip_sync())
- if ($this->is_eof())
- break;
-
- $this->read_block_header();
- }
- $data []= $this->datum_reader->read($this->decoder);
- $this->block_count -= 1;
- }
- return $data;
- }
-
- /**
- * Closes this writer (and its AvroIO object.)
- * @uses AvroIO::close()
- */
- public function close() { return $this->io->close(); }
-
- /**
- * @uses AvroIO::seek()
- */
- private function seek($offset, $whence)
- {
- return $this->io->seek($offset, $whence);
- }
-
- /**
- * @uses AvroIO::read()
- */
- private function read($len) { return $this->io->read($len); }
-
- /**
- * @uses AvroIO::is_eof()
- */
- private function is_eof() { return $this->io->is_eof(); }
-
- private function skip_sync()
- {
- $proposed_sync_marker = $this->read(AvroDataIO::SYNC_SIZE);
- if ($proposed_sync_marker != $this->sync_marker)
- {
- $this->seek(-AvroDataIO::SYNC_SIZE, AvroIO::SEEK_CUR);
- return false;
- }
- return true;
- }
-
- /**
- * Reads the block header (which includes the count of items in the block
- * and the length in bytes of the block)
- * @returns int length in bytes of the block.
- */
- private function read_block_header()
- {
- $this->block_count = $this->decoder->read_long();
- return $this->decoder->read_long();
- }
-
-}
-
-/**
- * Writes Avro data to an AvroIO source using an AvroSchema
- * @package Avro
- */
-class AvroDataIOWriter
-{
- /**
- * @returns string a new, unique sync marker.
- */
- private static function generate_sync_marker()
- {
- // From http://php.net/manual/en/function.mt-rand.php comments
- return pack('S8',
- mt_rand(0, 0xffff), mt_rand(0, 0xffff),
- mt_rand(0, 0xffff),
- mt_rand(0, 0xffff) | 0x4000,
- mt_rand(0, 0xffff) | 0x8000,
- mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff));
- }
-
- /**
- * @var AvroIO object container where data is written
- */
- private $io;
-
- /**
- * @var AvroIOBinaryEncoder encoder for object container
- */
- private $encoder;
-
- /**
- * @var AvroDatumWriter
- */
- private $datum_writer;
-
- /**
- * @var AvroStringIO buffer for writing
- */
- private $buffer;
-
- /**
- * @var AvroIOBinaryEncoder encoder for buffer
- */
- private $buffer_encoder; // AvroIOBinaryEncoder
-
- /**
- * @var int count of items written to block
- */
- private $block_count;
-
- /**
- * @var array map of object container metadata
- */
- private $metadata;
-
- /**
- * @param AvroIO $io
- * @param AvroIODatumWriter $datum_writer
- * @param AvroSchema $writers_schema
- */
- public function __construct($io, $datum_writer, $writers_schema=null)
- {
- if (!($io instanceof AvroIO))
- throw new AvroDataIOException('io must be instance of AvroIO');
-
- $this->io = $io;
- $this->encoder = new AvroIOBinaryEncoder($this->io);
- $this->datum_writer = $datum_writer;
- $this->buffer = new AvroStringIO();
- $this->buffer_encoder = new AvroIOBinaryEncoder($this->buffer);
- $this->block_count = 0;
- $this->metadata = array();
-
- if ($writers_schema)
- {
- $this->sync_marker = self::generate_sync_marker();
- $this->metadata[AvroDataIO::METADATA_CODEC_ATTR] = AvroDataIO::NULL_CODEC;
- $this->metadata[AvroDataIO::METADATA_SCHEMA_ATTR] = strval($writers_schema);
- $this->write_header();
- }
- else
- {
- $dfr = new AvroDataIOReader($this->io, new AvroIODatumReader());
- $this->sync_marker = $dfr->sync_marker;
- $this->metadata[AvroDataIO::METADATA_CODEC_ATTR] = $dfr->metadata[AvroDataIO::METADATA_CODEC_ATTR];
-
- $schema_from_file = $dfr->metadata[AvroDataIO::METADATA_SCHEMA_ATTR];
- $this->metadata[AvroDataIO::METADATA_SCHEMA_ATTR] = $schema_from_file;
- $this->datum_writer->writers_schema = AvroSchema::parse($schema_from_file);
- $this->seek(0, SEEK_END);
- }
- }
-
- /**
- * @param mixed $datum
- */
- public function append($datum)
- {
- $this->datum_writer->write($datum, $this->buffer_encoder);
- $this->block_count++;
-
- if ($this->buffer->length() >= AvroDataIO::SYNC_INTERVAL)
- $this->write_block();
- }
-
- /**
- * Flushes buffer to AvroIO object container and closes it.
- * @return mixed value of $io->close()
- * @see AvroIO::close()
- */
- public function close()
- {
- $this->flush();
- return $this->io->close();
- }
-
- /**
- * Flushes biffer to AvroIO object container.
- * @returns mixed value of $io->flush()
- * @see AvroIO::flush()
- */
- private function flush()
- {
- $this->write_block();
- return $this->io->flush();
- }
-
- /**
- * Writes a block of data to the AvroIO object container.
- * @throws AvroDataIOException if the codec provided by the encoder
- * is not supported
- * @internal Should the codec check happen in the constructor?
- * Why wait until we're writing data?
- */
- private function write_block()
- {
- if ($this->block_count > 0)
- {
- $this->encoder->write_long($this->block_count);
- $to_write = strval($this->buffer);
- $this->encoder->write_long(strlen($to_write));
-
- if (AvroDataIO::is_valid_codec(
- $this->metadata[AvroDataIO::METADATA_CODEC_ATTR]))
- $this->write($to_write);
- else
- throw new AvroDataIOException(
- sprintf('codec %s is not supported',
- $this->metadata[AvroDataIO::METADATA_CODEC_ATTR]));
-
- $this->write($this->sync_marker);
- $this->buffer->truncate();
- $this->block_count = 0;
- }
- }
-
- /**
- * Writes the header of the AvroIO object container
- */
- private function write_header()
- {
- $this->write(AvroDataIO::magic());
- $this->datum_writer->write_data(AvroDataIO::metadata_schema(),
- $this->metadata, $this->encoder);
- $this->write($this->sync_marker);
- }
-
- /**
- * @param string $bytes
- * @uses AvroIO::write()
- */
- private function write($bytes) { return $this->io->write($bytes); }
-
- /**
- * @param int $offset
- * @param int $whence
- * @uses AvroIO::seek()
- */
- private function seek($offset, $whence)
- {
- return $this->io->seek($offset, $whence);
- }
-}
diff --git a/www/wiki/vendor/wikimedia/avro/lib/avro/datum.php b/www/wiki/vendor/wikimedia/avro/lib/avro/datum.php
deleted file mode 100644
index ea275faf..00000000
--- a/www/wiki/vendor/wikimedia/avro/lib/avro/datum.php
+++ /dev/null
@@ -1,984 +0,0 @@
-<?php
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Classes for reading and writing Avro data to AvroIO objects.
- *
- * @package Avro
- *
- * @todo Implement JSON encoding, as is required by the Avro spec.
- */
-
-/**
- * Exceptions arising from writing or reading Avro data.
- *
- * @package Avro
- */
-class AvroIOTypeException extends AvroException
-{
- /**
- * @param AvroSchema $expected_schema
- * @param mixed $datum
- */
- public function __construct($expected_schema, $datum)
- {
- parent::__construct(sprintf('The datum %s is not an example of schema %s',
- var_export($datum, true), $expected_schema));
- }
-}
-
-/**
- * Exceptions arising from incompatibility between
- * reader and writer schemas.
- *
- * @package Avro
- */
-class AvroIOSchemaMatchException extends AvroException
-{
- /**
- * @param AvroSchema $writers_schema
- * @param AvroSchema $readers_schema
- */
- function __construct($writers_schema, $readers_schema)
- {
- parent::__construct(
- sprintf("Writer's schema %s and Reader's schema %s do not match.",
- $writers_schema, $readers_schema));
- }
-}
-
-/**
- * Handles schema-specific writing of data to the encoder.
- *
- * Ensures that each datum written is consistent with the writer's schema.
- *
- * @package Avro
- */
-class AvroIODatumWriter
-{
- /**
- * Schema used by this instance to write Avro data.
- * @var AvroSchema
- */
- private $writers_schema;
-
- /**
- * @param AvroSchema $writers_schema
- */
- function __construct($writers_schema=null)
- {
- $this->writers_schema = $writers_schema;
- }
-
- /**
- * @param AvroSchema $writers_schema
- * @param $datum
- * @param AvroIOBinaryEncoder $encoder
- * @returns mixed
- *
- * @throws AvroIOTypeException if $datum is invalid for $writers_schema
- */
- function write_data($writers_schema, $datum, $encoder)
- {
- if (!AvroSchema::is_valid_datum($writers_schema, $datum))
- throw new AvroIOTypeException($writers_schema, $datum);
-
- switch ($writers_schema->type())
- {
- case AvroSchema::NULL_TYPE:
- return $encoder->write_null($datum);
- case AvroSchema::BOOLEAN_TYPE:
- return $encoder->write_boolean($datum);
- case AvroSchema::INT_TYPE:
- return $encoder->write_int($datum);
- case AvroSchema::LONG_TYPE:
- return $encoder->write_long($datum);
- case AvroSchema::FLOAT_TYPE:
- return $encoder->write_float($datum);
- case AvroSchema::DOUBLE_TYPE:
- return $encoder->write_double($datum);
- case AvroSchema::STRING_TYPE:
- return $encoder->write_string($datum);
- case AvroSchema::BYTES_TYPE:
- return $encoder->write_bytes($datum);
- case AvroSchema::ARRAY_SCHEMA:
- return $this->write_array($writers_schema, $datum, $encoder);
- case AvroSchema::MAP_SCHEMA:
- return $this->write_map($writers_schema, $datum, $encoder);
- case AvroSchema::FIXED_SCHEMA:
- return $this->write_fixed($writers_schema, $datum, $encoder);
- case AvroSchema::ENUM_SCHEMA:
- return $this->write_enum($writers_schema, $datum, $encoder);
- case AvroSchema::RECORD_SCHEMA:
- case AvroSchema::ERROR_SCHEMA:
- case AvroSchema::REQUEST_SCHEMA:
- return $this->write_record($writers_schema, $datum, $encoder);
- case AvroSchema::UNION_SCHEMA:
- return $this->write_union($writers_schema, $datum, $encoder);
- default:
- throw new AvroException(sprintf('Uknown type: %s',
- $writers_schema->type));
- }
- }
-
- /**
- * @param $datum
- * @param AvroIOBinaryEncoder $encoder
- */
- function write($datum, $encoder)
- {
- $this->write_data($this->writers_schema, $datum, $encoder);
- }
-
- /**#@+
- * @param AvroSchema $writers_schema
- * @param null|boolean|int|float|string|array $datum item to be written
- * @param AvroIOBinaryEncoder $encoder
- */
- private function write_array($writers_schema, $datum, $encoder)
- {
- $datum_count = count($datum);
- if (0 < $datum_count)
- {
- $encoder->write_long($datum_count);
- $items = $writers_schema->items();
- foreach ($datum as $item)
- $this->write_data($items, $item, $encoder);
- }
- return $encoder->write_long(0);
- }
-
- private function write_map($writers_schema, $datum, $encoder)
- {
- $datum_count = count($datum);
- if ($datum_count > 0)
- {
- $encoder->write_long($datum_count);
- foreach ($datum as $k => $v)
- {
- $encoder->write_string($k);
- $this->write_data($writers_schema->values(), $v, $encoder);
- }
- }
- $encoder->write_long(0);
- }
-
- private function write_union($writers_schema, $datum, $encoder)
- {
- $datum_schema_index = -1;
- $datum_schema = null;
- foreach ($writers_schema->schemas() as $index => $schema)
- if (AvroSchema::is_valid_datum($schema, $datum))
- {
- $datum_schema_index = $index;
- $datum_schema = $schema;
- break;
- }
-
- if (is_null($datum_schema))
- throw new AvroIOTypeException($writers_schema, $datum);
-
- $encoder->write_long($datum_schema_index);
- $this->write_data($datum_schema, $datum, $encoder);
- }
-
- private function write_enum($writers_schema, $datum, $encoder)
- {
- $datum_index = $writers_schema->symbol_index($datum);
- return $encoder->write_int($datum_index);
- }
-
- private function write_fixed($writers_schema, $datum, $encoder)
- {
- /**
- * NOTE Unused $writers_schema parameter included for consistency
- * with other write_* methods.
- */
- return $encoder->write($datum);
- }
-
- private function write_record($writers_schema, $datum, $encoder)
- {
- foreach ($writers_schema->fields() as $field)
- $this->write_data($field->type(), $datum[$field->name()], $encoder);
- }
-
- /**#@-*/
-}
-
-/**
- * Encodes and writes Avro data to an AvroIO object using
- * Avro binary encoding.
- *
- * @package Avro
- */
-class AvroIOBinaryEncoder
-{
- /**
- * Performs encoding of the given float value to a binary string
- *
- * XXX: This is <b>not</b> endian-aware! The {@link Avro::check_platform()}
- * called in {@link AvroIOBinaryEncoder::__construct()} should ensure the
- * library is only used on little-endian platforms, which ensure the little-endian
- * encoding required by the Avro spec.
- *
- * @param float $float
- * @returns string bytes
- * @see Avro::check_platform()
- */
- static function float_to_int_bits($float)
- {
- return pack('f', (float) $float);
- }
-
- /**
- * Performs encoding of the given double value to a binary string
- *
- * XXX: This is <b>not</b> endian-aware! See comments in
- * {@link AvroIOBinaryEncoder::float_to_int_bits()} for details.
- *
- * @param double $double
- * @returns string bytes
- */
- static function double_to_long_bits($double)
- {
- return pack('d', (double) $double);
- }
-
- /**
- * @param int|string $n
- * @returns string long $n encoded as bytes
- * @internal This relies on 64-bit PHP.
- */
- static public function encode_long($n)
- {
- $n = (int) $n;
- $n = ($n << 1) ^ ($n >> 63);
- $str = '';
- while (0 != ($n & ~0x7F))
- {
- $str .= chr(($n & 0x7F) | 0x80);
- $n >>= 7;
- }
- $str .= chr($n);
- return $str;
- }
-
- /**
- * @var AvroIO
- */
- private $io;
-
- /**
- * @param AvroIO $io object to which data is to be written.
- *
- */
- function __construct($io)
- {
- Avro::check_platform();
- $this->io = $io;
- }
-
- /**
- * @param null $datum actual value is ignored
- */
- function write_null($datum) { return null; }
-
- /**
- * @param boolean $datum
- */
- function write_boolean($datum)
- {
- $byte = $datum ? chr(1) : chr(0);
- $this->write($byte);
- }
-
- /**
- * @param int $datum
- */
- function write_int($datum) { $this->write_long($datum); }
-
- /**
- * @param int $n
- */
- function write_long($n)
- {
- if (Avro::uses_gmp())
- $this->write(AvroGMP::encode_long($n));
- else
- $this->write(self::encode_long($n));
- }
-
- /**
- * @param float $datum
- * @uses self::float_to_int_bits()
- */
- public function write_float($datum)
- {
- $this->write(self::float_to_int_bits($datum));
- }
-
- /**
- * @param float $datum
- * @uses self::double_to_long_bits()
- */
- public function write_double($datum)
- {
- $this->write(self::double_to_long_bits($datum));
- }
-
- /**
- * @param string $str
- * @uses self::write_bytes()
- */
- function write_string($str) { $this->write_bytes($str); }
-
- /**
- * @param string $bytes
- */
- function write_bytes($bytes)
- {
- $this->write_long(strlen($bytes));
- $this->write($bytes);
- }
-
- /**
- * @param string $datum
- */
- function write($datum) { $this->io->write($datum); }
-}
-
-/**
- * Handles schema-specifc reading of data from the decoder.
- *
- * Also handles schema resolution between the reader and writer
- * schemas (if a writer's schema is provided).
- *
- * @package Avro
- */
-class AvroIODatumReader
-{
- /**
- *
- * @param AvroSchema $writers_schema
- * @param AvroSchema $readers_schema
- * @returns boolean true if the schemas are consistent with
- * each other and false otherwise.
- */
- static function schemas_match($writers_schema, $readers_schema)
- {
- $writers_schema_type = $writers_schema->type;
- $readers_schema_type = $readers_schema->type;
-
- if (AvroSchema::UNION_SCHEMA == $writers_schema_type
- || AvroSchema::UNION_SCHEMA == $readers_schema_type)
- return true;
-
- if ($writers_schema_type == $readers_schema_type)
- {
- if (AvroSchema::is_primitive_type($writers_schema_type))
- return true;
-
- switch ($readers_schema_type)
- {
- case AvroSchema::MAP_SCHEMA:
- return self::attributes_match($writers_schema->values(),
- $readers_schema->values(),
- array(AvroSchema::TYPE_ATTR));
- case AvroSchema::ARRAY_SCHEMA:
- return self::attributes_match($writers_schema->items(),
- $readers_schema->items(),
- array(AvroSchema::TYPE_ATTR));
- case AvroSchema::ENUM_SCHEMA:
- return self::attributes_match($writers_schema, $readers_schema,
- array(AvroSchema::FULLNAME_ATTR));
- case AvroSchema::FIXED_SCHEMA:
- return self::attributes_match($writers_schema, $readers_schema,
- array(AvroSchema::FULLNAME_ATTR,
- AvroSchema::SIZE_ATTR));
- case AvroSchema::RECORD_SCHEMA:
- case AvroSchema::ERROR_SCHEMA:
- return self::attributes_match($writers_schema, $readers_schema,
- array(AvroSchema::FULLNAME_ATTR));
- case AvroSchema::REQUEST_SCHEMA:
- // XXX: This seems wrong
- return true;
- // XXX: no default
- }
-
- if (AvroSchema::INT_TYPE == $writers_schema_type
- && in_array($readers_schema_type, array(AvroSchema::LONG_TYPE,
- AvroSchema::FLOAT_TYPE,
- AvroSchema::DOUBLE_TYPE)))
- return true;
-
- if (AvroSchema::LONG_TYPE == $writers_schema_type
- && in_array($readers_schema_type, array(AvroSchema::FLOAT_TYPE,
- AvroSchema::DOUBLE_TYPE)))
- return true;
-
- if (AvroSchema::FLOAT_TYPE == $writers_schema_type
- && AvroSchema::DOUBLE_TYPE == $readers_schema_type)
- return true;
-
- return false;
- }
-
- }
-
- /**
- * Checks equivalence of the given attributes of the two given schemas.
- *
- * @param AvroSchema $schema_one
- * @param AvroSchema $schema_two
- * @param string[] $attribute_names array of string attribute names to compare
- *
- * @returns boolean true if the attributes match and false otherwise.
- */
- static function attributes_match($schema_one, $schema_two, $attribute_names)
- {
- foreach ($attribute_names as $attribute_name)
- if ($schema_one->attribute($attribute_name)
- != $schema_two->attribute($attribute_name))
- return false;
- return true;
- }
-
- /**
- * @var AvroSchema
- */
- private $writers_schema;
-
- /**
- * @var AvroSchema
- */
- private $readers_schema;
-
- /**
- * @param AvroSchema $writers_schema
- * @param AvroSchema $readers_schema
- */
- function __construct($writers_schema=null, $readers_schema=null)
- {
- $this->writers_schema = $writers_schema;
- $this->readers_schema = $readers_schema;
- }
-
- /**
- * @param AvroSchema $readers_schema
- */
- public function set_writers_schema($readers_schema)
- {
- $this->writers_schema = $readers_schema;
- }
-
- /**
- * @param AvroIOBinaryDecoder $decoder
- * @returns string
- */
- public function read($decoder)
- {
- if (is_null($this->readers_schema))
- $this->readers_schema = $this->writers_schema;
- return $this->read_data($this->writers_schema, $this->readers_schema,
- $decoder);
- }
-
- /**#@+
- * @param AvroSchema $writers_schema
- * @param AvroSchema $readers_schema
- * @param AvroIOBinaryDecoder $decoder
- */
- /**
- * @returns mixed
- */
- public function read_data($writers_schema, $readers_schema, $decoder)
- {
- if (!self::schemas_match($writers_schema, $readers_schema))
- throw new AvroIOSchemaMatchException($writers_schema, $readers_schema);
-
- // Schema resolution: reader's schema is a union, writer's schema is not
- if (AvroSchema::UNION_SCHEMA == $readers_schema->type()
- && AvroSchema::UNION_SCHEMA != $writers_schema->type())
- {
- foreach ($readers_schema->schemas() as $schema)
- if (self::schemas_match($writers_schema, $schema))
- return $this->read_data($writers_schema, $schema, $decoder);
- throw new AvroIOSchemaMatchException($writers_schema, $readers_schema);
- }
-
- switch ($writers_schema->type())
- {
- case AvroSchema::NULL_TYPE:
- return $decoder->read_null();
- case AvroSchema::BOOLEAN_TYPE:
- return $decoder->read_boolean();
- case AvroSchema::INT_TYPE:
- return $decoder->read_int();
- case AvroSchema::LONG_TYPE:
- return $decoder->read_long();
- case AvroSchema::FLOAT_TYPE:
- return $decoder->read_float();
- case AvroSchema::DOUBLE_TYPE:
- return $decoder->read_double();
- case AvroSchema::STRING_TYPE:
- return $decoder->read_string();
- case AvroSchema::BYTES_TYPE:
- return $decoder->read_bytes();
- case AvroSchema::ARRAY_SCHEMA:
- return $this->read_array($writers_schema, $readers_schema, $decoder);
- case AvroSchema::MAP_SCHEMA:
- return $this->read_map($writers_schema, $readers_schema, $decoder);
- case AvroSchema::UNION_SCHEMA:
- return $this->read_union($writers_schema, $readers_schema, $decoder);
- case AvroSchema::ENUM_SCHEMA:
- return $this->read_enum($writers_schema, $readers_schema, $decoder);
- case AvroSchema::FIXED_SCHEMA:
- return $this->read_fixed($writers_schema, $readers_schema, $decoder);
- case AvroSchema::RECORD_SCHEMA:
- case AvroSchema::ERROR_SCHEMA:
- case AvroSchema::REQUEST_SCHEMA:
- return $this->read_record($writers_schema, $readers_schema, $decoder);
- default:
- throw new AvroException(sprintf("Cannot read unknown schema type: %s",
- $writers_schema->type()));
- }
- }
-
- /**
- * @returns array
- */
- public function read_array($writers_schema, $readers_schema, $decoder)
- {
- $items = array();
- $block_count = $decoder->read_long();
- while (0 != $block_count)
- {
- if ($block_count < 0)
- {
- $block_count = -$block_count;
- $block_size = $decoder->read_long(); // Read (and ignore) block size
- }
- for ($i = 0; $i < $block_count; $i++)
- $items []= $this->read_data($writers_schema->items(),
- $readers_schema->items(),
- $decoder);
- $block_count = $decoder->read_long();
- }
- return $items;
- }
-
- /**
- * @returns array
- */
- public function read_map($writers_schema, $readers_schema, $decoder)
- {
- $items = array();
- $pair_count = $decoder->read_long();
- while (0 != $pair_count)
- {
- if ($pair_count < 0)
- {
- $pair_count = -$pair_count;
- // Note: we're not doing anything with block_size other than skipping it
- $block_size = $decoder->read_long();
- }
-
- for ($i = 0; $i < $pair_count; $i++)
- {
- $key = $decoder->read_string();
- $items[$key] = $this->read_data($writers_schema->values(),
- $readers_schema->values(),
- $decoder);
- }
- $pair_count = $decoder->read_long();
- }
- return $items;
- }
-
- /**
- * @returns mixed
- */
- public function read_union($writers_schema, $readers_schema, $decoder)
- {
- $schema_index = $decoder->read_long();
- $selected_writers_schema = $writers_schema->schema_by_index($schema_index);
- return $this->read_data($selected_writers_schema, $readers_schema, $decoder);
- }
-
- /**
- * @returns string
- */
- public function read_enum($writers_schema, $readers_schema, $decoder)
- {
- $symbol_index = $decoder->read_int();
- $symbol = $writers_schema->symbol_by_index($symbol_index);
- if (!$readers_schema->has_symbol($symbol))
- null; // FIXME: unset wrt schema resolution
- return $symbol;
- }
-
- /**
- * @returns string
- */
- public function read_fixed($writers_schema, $readers_schema, $decoder)
- {
- return $decoder->read($writers_schema->size());
- }
-
- /**
- * @returns array
- */
- public function read_record($writers_schema, $readers_schema, $decoder)
- {
- $readers_fields = $readers_schema->fields_hash();
- $record = array();
- foreach ($writers_schema->fields() as $writers_field)
- {
- $type = $writers_field->type();
- if (isset($readers_fields[$writers_field->name()]))
- $record[$writers_field->name()]
- = $this->read_data($type,
- $readers_fields[$writers_field->name()]->type(),
- $decoder);
- else
- $this->skip_data($type, $decoder);
- }
- // Fill in default values
- if (count($readers_fields) > count($record))
- {
- $writers_fields = $writers_schema->fields_hash();
- foreach ($readers_fields as $field_name => $field)
- {
- if (!isset($writers_fields[$field_name]))
- {
- if ($field->has_default_value())
- $record[$field->name()]
- = $this->read_default_value($field->type(),
- $field->default_value());
- else
- null; // FIXME: unset
- }
- }
- }
-
- return $record;
- }
- /**#@-*/
-
- /**
- * @param AvroSchema $field_schema
- * @param null|boolean|int|float|string|array $default_value
- * @returns null|boolean|int|float|string|array
- *
- * @throws AvroException if $field_schema type is unknown.
- */
- public function read_default_value($field_schema, $default_value)
- {
- switch($field_schema->type())
- {
- case AvroSchema::NULL_TYPE:
- return null;
- case AvroSchema::BOOLEAN_TYPE:
- return $default_value;
- case AvroSchema::INT_TYPE:
- case AvroSchema::LONG_TYPE:
- return (int) $default_value;
- case AvroSchema::FLOAT_TYPE:
- case AvroSchema::DOUBLE_TYPE:
- return (float) $default_value;
- case AvroSchema::STRING_TYPE:
- case AvroSchema::BYTES_TYPE:
- return $default_value;
- case AvroSchema::ARRAY_SCHEMA:
- $array = array();
- foreach ($default_value as $json_val)
- {
- $val = $this->read_default_value($field_schema->items(), $json_val);
- $array []= $val;
- }
- return $array;
- case AvroSchema::MAP_SCHEMA:
- $map = array();
- foreach ($default_value as $key => $json_val)
- $map[$key] = $this->read_default_value($field_schema->values(),
- $json_val);
- return $map;
- case AvroSchema::UNION_SCHEMA:
- return $this->read_default_value($field_schema->schema_by_index(0),
- $default_value);
- case AvroSchema::ENUM_SCHEMA:
- case AvroSchema::FIXED_SCHEMA:
- return $default_value;
- case AvroSchema::RECORD_SCHEMA:
- $record = array();
- foreach ($field_schema->fields() as $field)
- {
- $field_name = $field->name();
- if (!$json_val = $default_value[$field_name])
- $json_val = $field->default_value();
-
- $record[$field_name] = $this->read_default_value($field->type(),
- $json_val);
- }
- return $record;
- default:
- throw new AvroException(sprintf('Unknown type: %s', $field_schema->type()));
- }
- }
-
- /**
- * @param AvroSchema $writers_schema
- * @param AvroIOBinaryDecoder $decoder
- */
- private function skip_data($writers_schema, $decoder)
- {
- switch ($writers_schema->type())
- {
- case AvroSchema::NULL_TYPE:
- return $decoder->skip_null();
- case AvroSchema::BOOLEAN_TYPE:
- return $decoder->skip_boolean();
- case AvroSchema::INT_TYPE:
- return $decoder->skip_int();
- case AvroSchema::LONG_TYPE:
- return $decoder->skip_long();
- case AvroSchema::FLOAT_TYPE:
- return $decoder->skip_float();
- case AvroSchema::DOUBLE_TYPE:
- return $decoder->skip_double();
- case AvroSchema::STRING_TYPE:
- return $decoder->skip_string();
- case AvroSchema::BYTES_TYPE:
- return $decoder->skip_bytes();
- case AvroSchema::ARRAY_SCHEMA:
- return $decoder->skip_array($writers_schema, $decoder);
- case AvroSchema::MAP_SCHEMA:
- return $decoder->skip_map($writers_schema, $decoder);
- case AvroSchema::UNION_SCHEMA:
- return $decoder->skip_union($writers_schema, $decoder);
- case AvroSchema::ENUM_SCHEMA:
- return $decoder->skip_enum($writers_schema, $decoder);
- case AvroSchema::FIXED_SCHEMA:
- return $decoder->skip_fixed($writers_schema, $decoder);
- case AvroSchema::RECORD_SCHEMA:
- case AvroSchema::ERROR_SCHEMA:
- case AvroSchema::REQUEST_SCHEMA:
- return $decoder->skip_record($writers_schema, $decoder);
- default:
- throw new AvroException(sprintf('Uknown schema type: %s',
- $writers_schema->type()));
- }
- }
-}
-
-/**
- * Decodes and reads Avro data from an AvroIO object encoded using
- * Avro binary encoding.
- *
- * @package Avro
- */
-class AvroIOBinaryDecoder
-{
-
- /**
- * @param int[] array of byte ascii values
- * @returns long decoded value
- * @internal Requires 64-bit platform
- */
- public static function decode_long_from_array($bytes)
- {
- $b = array_shift($bytes);
- $n = $b & 0x7f;
- $shift = 7;
- while (0 != ($b & 0x80))
- {
- $b = array_shift($bytes);
- $n |= (($b & 0x7f) << $shift);
- $shift += 7;
- }
- return (($n >> 1) ^ -($n & 1));
- }
-
- /**
- * Performs decoding of the binary string to a float value.
- *
- * XXX: This is <b>not</b> endian-aware! See comments in
- * {@link AvroIOBinaryEncoder::float_to_int_bits()} for details.
- *
- * @param string $bits
- * @returns float
- */
- static public function int_bits_to_float($bits)
- {
- $float = unpack('f', $bits);
- return (float) $float[1];
- }
-
- /**
- * Performs decoding of the binary string to a double value.
- *
- * XXX: This is <b>not</b> endian-aware! See comments in
- * {@link AvroIOBinaryEncoder::float_to_int_bits()} for details.
- *
- * @param string $bits
- * @returns float
- */
- static public function long_bits_to_double($bits)
- {
- $double = unpack('d', $bits);
- return (double) $double[1];
- }
-
- /**
- * @var AvroIO
- */
- private $io;
-
- /**
- * @param AvroIO $io object from which to read.
- */
- public function __construct($io)
- {
- Avro::check_platform();
- $this->io = $io;
- }
-
- /**
- * @returns string the next byte from $this->io.
- * @throws AvroException if the next byte cannot be read.
- */
- private function next_byte() { return $this->read(1); }
-
- /**
- * @returns null
- */
- public function read_null() { return null; }
-
- /**
- * @returns boolean
- */
- public function read_boolean()
- {
- return (boolean) (1 == ord($this->next_byte()));
- }
-
- /**
- * @returns int
- */
- public function read_int() { return (int) $this->read_long(); }
-
- /**
- * @returns long
- */
- public function read_long()
- {
- $byte = ord($this->next_byte());
- $bytes = array($byte);
- while (0 != ($byte & 0x80))
- {
- $byte = ord($this->next_byte());
- $bytes []= $byte;
- }
-
- if (Avro::uses_gmp())
- return AvroGMP::decode_long_from_array($bytes);
-
- return self::decode_long_from_array($bytes);
- }
-
- /**
- * @returns float
- */
- public function read_float()
- {
- return self::int_bits_to_float($this->read(4));
- }
-
- /**
- * @returns double
- */
- public function read_double()
- {
- return self::long_bits_to_double($this->read(8));
- }
-
- /**
- * A string is encoded as a long followed by that many bytes
- * of UTF-8 encoded character data.
- * @returns string
- */
- public function read_string() { return $this->read_bytes(); }
-
- /**
- * @returns string
- */
- public function read_bytes() { return $this->read($this->read_long()); }
-
- /**
- * @param int $len count of bytes to read
- * @returns string
- */
- public function read($len) { return $this->io->read($len); }
-
- public function skip_null() { return null; }
-
- public function skip_boolean() { return $this->skip(1); }
-
- public function skip_int() { return $this->skip_long(); }
-
- protected function skip_long()
- {
- $b = $this->next_byte();
- while (0 != ($b & 0x80))
- $b = $this->next_byte();
- }
-
- public function skip_float() { return $this->skip(4); }
-
- public function skip_double() { return $this->skip(8); }
-
- public function skip_bytes() { return $this->skip($this->read_long()); }
-
- public function skip_string() { return $this->skip_bytes(); }
-
- /**
- * @param int $len count of bytes to skip
- * @uses AvroIO::seek()
- */
- public function skip($len) { $this->seek($len, AvroIO::SEEK_CUR); }
-
- /**
- * @returns int position of pointer in AvroIO instance
- * @uses AvroIO::tell()
- */
- private function tell() { return $this->io->tell(); }
-
- /**
- * @param int $offset
- * @param int $whence
- * @returns boolean true upon success
- * @uses AvroIO::seek()
- */
- private function seek($offset, $whence)
- {
- return $this->io->seek($offset, $whence);
- }
-}
-
diff --git a/www/wiki/vendor/wikimedia/avro/lib/avro/debug.php b/www/wiki/vendor/wikimedia/avro/lib/avro/debug.php
deleted file mode 100644
index 2278f19b..00000000
--- a/www/wiki/vendor/wikimedia/avro/lib/avro/debug.php
+++ /dev/null
@@ -1,194 +0,0 @@
-<?php
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @package Avro
- */
-
-/**
- * Avro library code debugging functions
- * @package Avro
- */
-class AvroDebug
-{
-
- /**
- * @var int high debug level
- */
- const DEBUG5 = 5;
- /**
- * @var int low debug level
- */
- const DEBUG1 = 1;
- /**
- * @var int current debug level
- */
- const DEBUG_LEVEL = self::DEBUG1;
-
- /**
- * @var int $debug_level
- * @returns boolean true if the given $debug_level is equivalent
- * or more verbose than than the current debug level
- * and false otherwise.
- */
- static function is_debug($debug_level=self::DEBUG1)
- {
- return (self::DEBUG_LEVEL >= $debug_level);
- }
-
- /**
- * @param string $format format string for the given arguments. Passed as is
- * to <code>vprintf</code>.
- * @param array $args array of arguments to pass to vsprinf.
- * @param int $debug_level debug level at which to print this statement
- * @returns boolean true
- */
- static function debug($format, $args, $debug_level=self::DEBUG1)
- {
- if (self::is_debug($debug_level))
- vprintf($format . "\n", $args);
- return true;
- }
-
- /**
- * @param string $str
- * @returns string[] array of hex representation of each byte of $str
- */
- static function hex_array($str) { return self::bytes_array($str); }
-
- /**
- * @param string $str
- * @param string $joiner string used to join
- * @returns string hex-represented bytes of each byte of $str
- joined by $joiner
- */
- static function hex_string($str, $joiner=' ')
- {
- return join($joiner, self::hex_array($str));
- }
-
- /**
- * @param string $str
- * @param string $format format to represent bytes
- * @returns string[] array of each byte of $str formatted using $format
- */
- static function bytes_array($str, $format='x%02x')
- {
- $x = array();
- foreach (str_split($str) as $b)
- $x []= sprintf($format, ord($b));
- return $x;
- }
-
- /**
- * @param string $str
- * @returns string[] array of bytes of $str represented in decimal format ('%3d')
- */
- static function dec_array($str) { return self::bytes_array($str, '%3d'); }
-
- /**
- * @param string $str
- * @param string $joiner string to join bytes of $str
- * @returns string of bytes of $str represented in decimal format
- * @uses dec_array()
- */
- static function dec_string($str, $joiner = ' ')
- {
- return join($joiner, self::dec_array($str));
- }
-
- /**
- * @param string $str
- * @param string $format one of 'ctrl', 'hex', or 'dec' for control,
- hexadecimal, or decimal format for bytes.
- - ctrl: ASCII control characters represented as text.
- For example, the null byte is represented as 'NUL'.
- Visible ASCII characters represent themselves, and
- others are represented as a decimal ('%03d')
- - hex: bytes represented in hexadecimal ('%02X')
- - dec: bytes represented in decimal ('%03d')
- * @returns string[] array of bytes represented in the given format.
- */
- static function ascii_array($str, $format='ctrl')
- {
- if (!in_array($format, array('ctrl', 'hex', 'dec')))
- throw new AvroException('Unrecognized format specifier');
-
- $ctrl_chars = array('NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL',
- 'BS', 'HT', 'LF', 'VT', 'FF', 'CR', 'SO', 'SI',
- 'DLE', 'DC1', 'DC2', 'DC3', 'DC4', 'NAK', 'SYN', 'ETB',
- 'CAN', 'EM', 'SUB', 'ESC', 'FS', 'GS', 'RS', 'US');
- $x = array();
- foreach (str_split($str) as $b)
- {
- $db = ord($b);
- if ($db < 32)
- {
- switch ($format)
- {
- case 'ctrl':
- $x []= str_pad($ctrl_chars[$db], 3, ' ', STR_PAD_LEFT);
- break;
- case 'hex':
- $x []= sprintf("x%02X", $db);
- break;
- case 'dec':
- $x []= str_pad($db, 3, '0', STR_PAD_LEFT);
- break;
- }
- }
- else if ($db < 127)
- $x []= " $b";
- else if ($db == 127)
- {
- switch ($format)
- {
- case 'ctrl':
- $x []= 'DEL';
- break;
- case 'hex':
- $x []= sprintf("x%02X", $db);
- break;
- case 'dec':
- $x []= str_pad($db, 3, '0', STR_PAD_LEFT);
- break;
- }
- }
- else
- if ('hex' == $format)
- $x []= sprintf("x%02X", $db);
- else
- $x []= str_pad($db, 3, '0', STR_PAD_LEFT);
- }
- return $x;
- }
-
- /**
- * @param string $str
- * @param string $format one of 'ctrl', 'hex', or 'dec'.
- * See {@link self::ascii_array()} for more description
- * @param string $joiner
- * @returns string of bytes joined by $joiner
- * @uses ascii_array()
- */
- static function ascii_string($str, $format='ctrl', $joiner = ' ')
- {
- return join($joiner, self::ascii_array($str, $format));
- }
-}
diff --git a/www/wiki/vendor/wikimedia/avro/lib/avro/gmp.php b/www/wiki/vendor/wikimedia/avro/lib/avro/gmp.php
deleted file mode 100644
index 3d41d034..00000000
--- a/www/wiki/vendor/wikimedia/avro/lib/avro/gmp.php
+++ /dev/null
@@ -1,222 +0,0 @@
-<?php
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @package Avro
- */
-
-/**
- * Methods for handling 64-bit operations using the GMP extension.
- *
- * This is a naive and hackish implementation that is intended
- * to work well enough to support Avro. It has not been tested
- * beyond what's needed to decode and encode long values.
- *
- * @package Avro
- */
-class AvroGMP {
-
- /**
- * @var resource memoized GMP resource for zero
- */
- private static $gmp_0;
-
- /**
- * @returns resource GMP resource for zero
- */
- private static function gmp_0()
- {
- if (!isset(self::$gmp_0))
- self::$gmp_0 = gmp_init('0');
- return self::$gmp_0;
- }
-
- /**
- * @var resource memoized GMP resource for one (1)
- */
- private static $gmp_1;
-
- /**
- * @returns resource GMP resource for one (1)
- */
- private static function gmp_1()
- {
- if (!isset(self::$gmp_1))
- self::$gmp_1 = gmp_init('1');
- return self::$gmp_1;
- }
-
- /**
- * @var resource memoized GMP resource for two (2)
- */
- private static $gmp_2;
-
- /**
- * @returns resource GMP resource for two (2)
- */
- private static function gmp_2()
- {
- if (!isset(self::$gmp_2))
- self::$gmp_2 = gmp_init('2');
- return self::$gmp_2;
- }
-
- /**
- * @var resource memoized GMP resource for 0x7f
- */
- private static $gmp_0x7f;
-
- /**
- * @returns resource GMP resource for 0x7f
- */
- private static function gmp_0x7f()
- {
- if (!isset(self::$gmp_0x7f))
- self::$gmp_0x7f = gmp_init('0x7f');
- return self::$gmp_0x7f;
- }
-
- /**
- * @var resource memoized GMP resource for 64-bit ~0x7f
- */
- private static $gmp_n0x7f;
-
- /**
- * @returns resource GMP resource for 64-bit ~0x7f
- */
- private static function gmp_n0x7f()
- {
- if (!isset(self::$gmp_n0x7f))
- self::$gmp_n0x7f = gmp_init('0xffffffffffffff80');
- return self::$gmp_n0x7f;
- }
-
- /**
- * @var resource memoized GMP resource for 64-bits of 1
- */
- private static $gmp_0xfs;
-
- /**
- * @returns resource GMP resource for 64-bits of 1
- */
- private static function gmp_0xfs()
- {
- if (!isset(self::$gmp_0xfs))
- self::$gmp_0xfs = gmp_init('0xffffffffffffffff');
- return self::$gmp_0xfs;
- }
-
- /**
- * @param GMP resource
- * @returns GMP resource 64-bit two's complement of input.
- */
- static function gmp_twos_complement($g)
- {
- return gmp_neg(gmp_sub(gmp_pow(self::gmp_2(), 64), $g));
- }
-
- /**
- * @interal Only works up to shift 63 (doesn't wrap bits around).
- * @param resource|int|string $g
- * @param int $shift number of bits to shift left
- * @returns resource $g shifted left
- */
- static function shift_left($g, $shift)
- {
- if (0 == $shift)
- return $g;
-
- if (0 > gmp_sign($g))
- $g = self::gmp_twos_complement($g);
-
- $m = gmp_mul($g, gmp_pow(self::gmp_2(), $shift));
- $m = gmp_and($m, self::gmp_0xfs());
- if (gmp_testbit($m, 63))
- $m = gmp_neg(gmp_add(gmp_and(gmp_com($m), self::gmp_0xfs()),
- self::gmp_1()));
- return $m;
- }
-
- /**
- * Arithmetic right shift
- * @param resource|int|string $g
- * @param int $shift number of bits to shift right
- * @returns resource $g shifted right $shift bits
- */
- static function shift_right($g, $shift)
- {
- if (0 == $shift)
- return $g;
-
- if (0 <= gmp_sign($g))
- $m = gmp_div($g, gmp_pow(self::gmp_2(), $shift));
- else // negative
- {
- $g = gmp_and($g, self::gmp_0xfs());
- $m = gmp_div($g, gmp_pow(self::gmp_2(), $shift));
- $m = gmp_and($m, self::gmp_0xfs());
- for ($i = 63; $i >= (63 - $shift); $i--)
- gmp_setbit($m, $i);
-
- $m = gmp_neg(gmp_add(gmp_and(gmp_com($m), self::gmp_0xfs()),
- self::gmp_1()));
- }
-
- return $m;
- }
-
- /**
- * @param int|str $n integer (or string representation of integer) to encode
- * @return string $bytes of the long $n encoded per the Avro spec
- */
- static function encode_long($n)
- {
- $g = gmp_init($n);
- $g = gmp_xor(self::shift_left($g, 1),
- self::shift_right($g, 63));
- $bytes = '';
- while (0 != gmp_cmp(self::gmp_0(), gmp_and($g, self::gmp_n0x7f())))
- {
- $bytes .= chr(gmp_intval(gmp_and($g, self::gmp_0x7f())) | 0x80);
- $g = self::shift_right($g, 7);
- }
- $bytes .= chr(gmp_intval($g));
- return $bytes;
- }
-
- /**
- * @param int[] $bytes array of ascii codes of bytes to decode
- * @return string represenation of decoded long.
- */
- static function decode_long_from_array($bytes)
- {
- $b = array_shift($bytes);
- $g = gmp_init($b & 0x7f);
- $shift = 7;
- while (0 != ($b & 0x80))
- {
- $b = array_shift($bytes);
- $g = gmp_or($g, self::shift_left(($b & 0x7f), $shift));
- $shift += 7;
- }
- $val = gmp_xor(self::shift_right($g, 1), gmp_neg(gmp_and($g, 1)));
- return gmp_strval($val);
- }
-
-}
diff --git a/www/wiki/vendor/wikimedia/avro/lib/avro/io.php b/www/wiki/vendor/wikimedia/avro/lib/avro/io.php
deleted file mode 100644
index 239e53d8..00000000
--- a/www/wiki/vendor/wikimedia/avro/lib/avro/io.php
+++ /dev/null
@@ -1,494 +0,0 @@
-<?php
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Avro IO object classes
- * @package Avro
- */
-
-/**
- * Exceptions associated with AvroIO instances.
- * @package Avro
- */
-class AvroIOException extends AvroException {}
-
-/**
- * Barebones IO base class to provide common interface for file and string
- * access within the Avro classes.
- *
- * @package Avro
- */
-class AvroIO
-{
-
- /**
- * @var string general read mode
- */
- const READ_MODE = 'r';
- /**
- * @var string general write mode.
- */
- const WRITE_MODE = 'w';
-
- /**
- * @var int set position equal to $offset bytes
- */
- const SEEK_CUR = SEEK_CUR;
- /**
- * @var int set position to current index + $offset bytes
- */
- const SEEK_SET = SEEK_SET;
- /**
- * @var int set position to end of file + $offset bytes
- */
- const SEEK_END = SEEK_END;
-
- /**
- * Read $len bytes from AvroIO instance
- * @var int $len
- * @return string bytes read
- */
- public function read($len)
- {
- throw new AvroNotImplementedException('Not implemented');
- }
-
- /**
- * Append bytes to this buffer. (Nothing more is needed to support Avro.)
- * @param str $arg bytes to write
- * @returns int count of bytes written.
- * @throws AvroIOException if $args is not a string value.
- */
- public function write($arg)
- {
- throw new AvroNotImplementedException('Not implemented');
- }
-
- /**
- * Return byte offset within AvroIO instance
- * @return int
- */
- public function tell()
- {
- throw new AvroNotImplementedException('Not implemented');
- }
-
- /**
- * Set the position indicator. The new position, measured in bytes
- * from the beginning of the file, is obtained by adding $offset to
- * the position specified by $whence.
- *
- * @param int $offset
- * @param int $whence one of AvroIO::SEEK_SET, AvroIO::SEEK_CUR,
- * or Avro::SEEK_END
- * @returns boolean true
- *
- * @throws AvroIOException
- */
- public function seek($offset, $whence=self::SEEK_SET)
- {
- throw new AvroNotImplementedException('Not implemented');
- }
-
- /**
- * Flushes any buffered data to the AvroIO object.
- * @returns boolean true upon success.
- */
- public function flush()
- {
- throw new AvroNotImplementedException('Not implemented');
- }
-
- /**
- * Returns whether or not the current position at the end of this AvroIO
- * instance.
- *
- * Note is_eof() is <b>not</b> like eof in C or feof in PHP:
- * it returns TRUE if the *next* read would be end of file,
- * rather than if the *most recent* read read end of file.
- * @returns boolean true if at the end of file, and false otherwise
- */
- public function is_eof()
- {
- throw new AvroNotImplementedException('Not implemented');
- }
-
- /**
- * Closes this AvroIO instance.
- */
- public function close()
- {
- throw new AvroNotImplementedException('Not implemented');
- }
-
-}
-
-/**
- * AvroIO wrapper for string access
- * @package Avro
- */
-class AvroStringIO extends AvroIO
-{
- /**
- * @var string
- */
- private $string_buffer;
- /**
- * @var int current position in string
- */
- private $current_index;
- /**
- * @var boolean whether or not the string is closed.
- */
- private $is_closed;
-
- /**
- * @param string $str initial value of AvroStringIO buffer. Regardless
- * of the initial value, the pointer is set to the
- * beginning of the buffer.
- * @throws AvroIOException if a non-string value is passed as $str
- */
- public function __construct($str = '')
- {
- $this->is_closed = false;
- $this->string_buffer = '';
- $this->current_index = 0;
-
- if (is_string($str))
- $this->string_buffer .= $str;
- else
- throw new AvroIOException(
- sprintf('constructor argument must be a string: %s', gettype($str)));
- }
-
- /**
- * Append bytes to this buffer.
- * (Nothing more is needed to support Avro.)
- * @param str $arg bytes to write
- * @returns int count of bytes written.
- * @throws AvroIOException if $args is not a string value.
- */
- public function write($arg)
- {
- $this->check_closed();
- if (is_string($arg))
- return $this->append_str($arg);
- throw new AvroIOException(
- sprintf('write argument must be a string: (%s) %s',
- gettype($arg), var_export($arg, true)));
- }
-
- /**
- * @returns string bytes read from buffer
- * @todo test for fencepost errors wrt updating current_index
- */
- public function read($len)
- {
- $this->check_closed();
- $read='';
- for($i=$this->current_index; $i<($this->current_index+$len); $i++)
- $read .= $this->string_buffer[$i];
- if (strlen($read) < $len)
- $this->current_index = $this->length();
- else
- $this->current_index += $len;
- return $read;
- }
-
- /**
- * @returns boolean true if successful
- * @throws AvroIOException if the seek failed.
- */
- public function seek($offset, $whence=self::SEEK_SET)
- {
- if (!is_int($offset))
- throw new AvroIOException('Seek offset must be an integer.');
- // Prevent seeking before BOF
- switch ($whence)
- {
- case self::SEEK_SET:
- if (0 > $offset)
- throw new AvroIOException('Cannot seek before beginning of file.');
- $this->current_index = $offset;
- break;
- case self::SEEK_CUR:
- if (0 > $this->current_index + $whence)
- throw new AvroIOException('Cannot seek before beginning of file.');
- $this->current_index += $offset;
- break;
- case self::SEEK_END:
- if (0 > $this->length() + $offset)
- throw new AvroIOException('Cannot seek before beginning of file.');
- $this->current_index = $this->length() + $offset;
- break;
- default:
- throw new AvroIOException(sprintf('Invalid seek whence %d', $whence));
- }
-
- return true;
- }
-
- /**
- * @returns int
- * @see AvroIO::tell()
- */
- public function tell() { return $this->current_index; }
-
- /**
- * @returns boolean
- * @see AvroIO::is_eof()
- */
- public function is_eof()
- {
- return ($this->current_index >= $this->length());
- }
-
- /**
- * No-op provided for compatibility with AvroIO interface.
- * @returns boolean true
- */
- public function flush() { return true; }
-
- /**
- * Marks this buffer as closed.
- * @returns boolean true
- */
- public function close()
- {
- $this->check_closed();
- $this->is_closed = true;
- return true;
- }
-
- /**
- * @throws AvroIOException if the buffer is closed.
- */
- private function check_closed()
- {
- if ($this->is_closed())
- throw new AvroIOException('Buffer is closed');
- }
-
- /**
- * Appends bytes to this buffer.
- * @param string $str
- * @returns integer count of bytes written.
- */
- private function append_str($str)
- {
- $this->check_closed();
- $this->string_buffer .= $str;
- $len = strlen($str);
- $this->current_index += $len;
- return $len;
- }
-
- /**
- * Truncates the truncate buffer to 0 bytes and returns the pointer
- * to the beginning of the buffer.
- * @returns boolean true
- */
- public function truncate()
- {
- $this->check_closed();
- $this->string_buffer = '';
- $this->current_index = 0;
- return true;
- }
-
- /**
- * @returns int count of bytes in the buffer
- * @internal Could probably memoize length for performance, but
- * no need do this yet.
- */
- public function length() { return strlen($this->string_buffer); }
-
- /**
- * @returns string
- */
- public function __toString() { return $this->string_buffer; }
-
-
- /**
- * @returns string
- * @uses self::__toString()
- */
- public function string() { return $this->__toString(); }
-
- /**
- * @returns boolean true if this buffer is closed and false
- * otherwise.
- */
- public function is_closed() { return $this->is_closed; }
-}
-
-/**
- * AvroIO wrapper for PHP file access functions
- * @package Avro
- */
-class AvroFile extends AvroIO
-{
- /**
- * @var string fopen read mode value. Used internally.
- */
- const FOPEN_READ_MODE = 'rb';
-
- /**
- * @var string fopen write mode value. Used internally.
- */
- const FOPEN_WRITE_MODE = 'wb';
-
- /**
- * @var string
- */
- private $file_path;
-
- /**
- * @var resource file handle for AvroFile instance
- */
- private $file_handle;
-
- public function __construct($file_path, $mode = self::READ_MODE)
- {
- /**
- * XXX: should we check for file existence (in case of reading)
- * or anything else about the provided file_path argument?
- */
- $this->file_path = $file_path;
- switch ($mode)
- {
- case self::WRITE_MODE:
- $this->file_handle = fopen($this->file_path, self::FOPEN_WRITE_MODE);
- if (false == $this->file_handle)
- throw new AvroIOException('Could not open file for writing');
- break;
- case self::READ_MODE:
- $this->file_handle = fopen($this->file_path, self::FOPEN_READ_MODE);
- if (false == $this->file_handle)
- throw new AvroIOException('Could not open file for reading');
- break;
- default:
- throw new AvroIOException(
- sprintf("Only modes '%s' and '%s' allowed. You provided '%s'.",
- self::READ_MODE, self::WRITE_MODE, $mode));
- }
- }
-
- /**
- * @returns int count of bytes written
- * @throws AvroIOException if write failed.
- */
- public function write($str)
- {
- $len = fwrite($this->file_handle, $str);
- if (false === $len)
- throw new AvroIOException(sprintf('Could not write to file'));
- return $len;
- }
-
- /**
- * @param int $len count of bytes to read.
- * @returns string bytes read
- * @throws AvroIOException if length value is negative or if the read failed
- */
- public function read($len)
- {
- if (0 > $len)
- throw new AvroIOException(
- sprintf("Invalid length value passed to read: %d", $len));
-
- if (0 == $len)
- return '';
-
- $bytes = fread($this->file_handle, $len);
- if (false === $bytes)
- throw new AvroIOException('Could not read from file');
- return $bytes;
- }
-
- /**
- * @returns int current position within the file
- * @throws AvroFileExcpetion if tell failed.
- */
- public function tell()
- {
- $position = ftell($this->file_handle);
- if (false === $position)
- throw new AvroIOException('Could not execute tell on reader');
- return $position;
- }
-
- /**
- * @param int $offset
- * @param int $whence
- * @returns boolean true upon success
- * @throws AvroIOException if seek failed.
- * @see AvroIO::seek()
- */
- public function seek($offset, $whence = SEEK_SET)
- {
- $res = fseek($this->file_handle, $offset, $whence);
- // Note: does not catch seeking beyond end of file
- if (-1 === $res)
- throw new AvroIOException(
- sprintf("Could not execute seek (offset = %d, whence = %d)",
- $offset, $whence));
- return true;
- }
-
- /**
- * Closes the file.
- * @returns boolean true if successful.
- * @throws AvroIOException if there was an error closing the file.
- */
- public function close()
- {
- $res = fclose($this->file_handle);
- if (false === $res)
- throw new AvroIOException('Error closing file.');
- return $res;
- }
-
- /**
- * @returns boolean true if the pointer is at the end of the file,
- * and false otherwise.
- * @see AvroIO::is_eof() as behavior differs from feof()
- */
- public function is_eof()
- {
- $this->read(1);
- if (feof($this->file_handle))
- return true;
- $this->seek(-1, self::SEEK_CUR);
- return false;
- }
-
- /**
- * @returns boolean true if the flush was successful.
- * @throws AvroIOException if there was an error flushing the file.
- */
- public function flush()
- {
- $res = fflush($this->file_handle);
- if (false === $res)
- throw new AvroIOException('Could not flush file.');
- return true;
- }
-
-}
diff --git a/www/wiki/vendor/wikimedia/avro/lib/avro/protocol.php b/www/wiki/vendor/wikimedia/avro/lib/avro/protocol.php
deleted file mode 100644
index a558e66b..00000000
--- a/www/wiki/vendor/wikimedia/avro/lib/avro/protocol.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @package Avro
- */
-
-/**
- * Avro library for protocols
- * @package Avro
- */
-class AvroProtocol
-{
- public $name;
- public $namespace;
- public $schemata;
-
- public static function parse($json)
- {
- if (is_null($json))
- throw new AvroProtocolParseException( "Protocol can't be null");
-
- $protocol = new AvroProtocol();
- $protocol->real_parse(json_decode($json, true));
- return $protocol;
- }
-
- function real_parse($avro) {
- $this->protocol = $avro["protocol"];
- $this->namespace = $avro["namespace"];
- $this->schemata = new AvroNamedSchemata();
- $this->name = $avro["protocol"];
-
- if (!is_null($avro["types"])) {
- $types = AvroSchema::real_parse($avro["types"], $this->namespace, $this->schemata);
- }
-
- if (!is_null($avro["messages"])) {
- foreach ($avro["messages"] as $messageName => $messageAvro) {
- $message = new AvroProtocolMessage($messageName, $messageAvro, $this);
- $this->messages{$messageName} = $message;
- }
- }
- }
-}
-
-class AvroProtocolMessage
-{
- /**
- * @var AvroRecordSchema $request
- */
-
- public $request;
-
- public $response;
-
- public function __construct($name, $avro, $protocol)
- {
- $this->name = $name;
- $this->request = new AvroRecordSchema(new AvroName($name, null, $protocol->namespace), null, $avro{'request'}, $protocol->schemata, AvroSchema::REQUEST_SCHEMA);
-
- if (array_key_exists('response', $avro)) {
- $this->response = $protocol->schemata->schema_by_name(new AvroName($avro{'response'}, $protocol->namespace, $protocol->namespace));
- if ($this->response == null)
- $this->response = new AvroPrimitiveSchema($avro{'response'});
- }
- }
-}
-
-class AvroProtocolParseException extends AvroException {};
diff --git a/www/wiki/vendor/wikimedia/avro/lib/avro/schema.php b/www/wiki/vendor/wikimedia/avro/lib/avro/schema.php
deleted file mode 100644
index 3d7fbbb8..00000000
--- a/www/wiki/vendor/wikimedia/avro/lib/avro/schema.php
+++ /dev/null
@@ -1,1457 +0,0 @@
-<?php
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Avro Schema and and Avro Schema support classes.
- * @package Avro
- */
-
-/** TODO
- * - ARRAY have only type and item attributes (what about metadata?)
- * - MAP keys are (assumed?) to be strings
- * - FIXED size must be integer (must be positive? less than MAXINT?)
- * - primitive type names cannot have a namespace (so throw an error? or ignore?)
- * - schema may contain multiple definitions of a named schema
- * if definitions are equivalent (?)
- * - Cleanup default namespace and named schemata handling.
- * - For one, it appears to be *too* global. According to the spec,
- * we should only be referencing schemas that are named within the
- * *enclosing* schema, so those in sibling schemas (say, unions or fields)
- * shouldn't be referenced, if I understand the spec correctly.
- * - Also, if a named schema is defined more than once in the same schema,
- * it must have the same definition: so it appears we *do* need to keep
- * track of named schemata globally as well. (And does this play well
- * with the requirements regarding enclosing schema?
- * - default values for bytes and fixed fields are JSON strings,
- * where unicode code points 0-255 are mapped to unsigned 8-bit byte values 0-255
- * - make sure other default values for other schema are of appropriate type
- * - Should AvroField really be an AvroSchema object? Avro Fields have a name
- * attribute, but not a namespace attribute (and the name can't be namespace
- * qualified). It also has additional attributes such as doc, which named schemas
- * enum and record have (though not fixed schemas, which also have names), and
- * fields also have default and order attributes, shared by no other schema type.
- */
-
-/**
- * Exceptions associated with parsing JSON schema represenations
- * @package Avro
- */
-class AvroSchemaParseException extends AvroException {};
-
-/**
- * @package Avro
- */
-class AvroSchema
-{
- /**
- * @var int lower bound of integer values: -(1 << 31)
- */
- const INT_MIN_VALUE = -2147483648;
-
- /**
- * @var int upper bound of integer values: (1 << 31) - 1
- */
- const INT_MAX_VALUE = 2147483647;
-
- /**
- * @var long lower bound of long values: -(1 << 63)
- */
- const LONG_MIN_VALUE = -9223372036854775808;
-
- /**
- * @var long upper bound of long values: (1 << 63) - 1
- */
- const LONG_MAX_VALUE = 9223372036854775807;
-
- /**
- * @var string null schema type name
- */
- const NULL_TYPE = 'null';
-
- /**
- * @var string boolean schema type name
- */
- const BOOLEAN_TYPE = 'boolean';
-
- /**
- * int schema type value is a 32-bit signed int
- * @var string int schema type name.
- */
- const INT_TYPE = 'int';
-
- /**
- * long schema type value is a 64-bit signed int
- * @var string long schema type name
- */
- const LONG_TYPE = 'long';
-
- /**
- * float schema type value is a 32-bit IEEE 754 floating-point number
- * @var string float schema type name
- */
- const FLOAT_TYPE = 'float';
-
- /**
- * double schema type value is a 64-bit IEEE 754 floating-point number
- * @var string double schema type name
- */
- const DOUBLE_TYPE = 'double';
-
- /**
- * string schema type value is a Unicode character sequence
- * @var string string schema type name
- */
- const STRING_TYPE = 'string';
-
- /**
- * bytes schema type value is a sequence of 8-bit unsigned bytes
- * @var string bytes schema type name
- */
- const BYTES_TYPE = 'bytes';
-
- // Complex Types
- // Unnamed Schema
- /**
- * @var string array schema type name
- */
- const ARRAY_SCHEMA = 'array';
-
- /**
- * @var string map schema type name
- */
- const MAP_SCHEMA = 'map';
-
- /**
- * @var string union schema type name
- */
- const UNION_SCHEMA = 'union';
-
- /**
- * Unions of error schemas are used by Avro messages
- * @var string error_union schema type name
- */
- const ERROR_UNION_SCHEMA = 'error_union';
-
- // Named Schema
-
- /**
- * @var string enum schema type name
- */
- const ENUM_SCHEMA = 'enum';
-
- /**
- * @var string fixed schema type name
- */
- const FIXED_SCHEMA = 'fixed';
-
- /**
- * @var string record schema type name
- */
- const RECORD_SCHEMA = 'record';
- // Other Schema
-
- /**
- * @var string error schema type name
- */
- const ERROR_SCHEMA = 'error';
-
- /**
- * @var string request schema type name
- */
- const REQUEST_SCHEMA = 'request';
-
-
- // Schema attribute names
- /**
- * @var string schema type name attribute name
- */
- const TYPE_ATTR = 'type';
-
- /**
- * @var string named schema name attribute name
- */
- const NAME_ATTR = 'name';
-
- /**
- * @var string named schema namespace attribute name
- */
- const NAMESPACE_ATTR = 'namespace';
-
- /**
- * @var string derived attribute: doesn't appear in schema
- */
- const FULLNAME_ATTR = 'fullname';
-
- /**
- * @var string array schema size attribute name
- */
- const SIZE_ATTR = 'size';
-
- /**
- * @var string record fields attribute name
- */
- const FIELDS_ATTR = 'fields';
-
- /**
- * @var string array schema items attribute name
- */
- const ITEMS_ATTR = 'items';
-
- /**
- * @var string enum schema symbols attribute name
- */
- const SYMBOLS_ATTR = 'symbols';
-
- /**
- * @var string map schema values attribute name
- */
- const VALUES_ATTR = 'values';
-
- /**
- * @var string document string attribute name
- */
- const DOC_ATTR = 'doc';
-
- /**
- * @var array list of primitive schema type names
- */
- private static $primitive_types = array(self::NULL_TYPE, self::BOOLEAN_TYPE,
- self::STRING_TYPE, self::BYTES_TYPE,
- self::INT_TYPE, self::LONG_TYPE,
- self::FLOAT_TYPE, self::DOUBLE_TYPE);
-
- /**
- * @var array list of named schema type names
- */
- private static $named_types = array(self::FIXED_SCHEMA, self::ENUM_SCHEMA,
- self::RECORD_SCHEMA, self::ERROR_SCHEMA);
-
- /**
- * @param string $type a schema type name
- * @returns boolean true if the given type name is a named schema type name
- * and false otherwise.
- */
- public static function is_named_type($type)
- {
- return in_array($type, self::$named_types);
- }
-
- /**
- * @param string $type a schema type name
- * @returns boolean true if the given type name is a primitive schema type
- * name and false otherwise.
- */
- public static function is_primitive_type($type)
- {
- return in_array($type, self::$primitive_types);
- }
-
- /**
- * @param string $type a schema type name
- * @returns boolean true if the given type name is a valid schema type
- * name and false otherwise.
- */
- public static function is_valid_type($type)
- {
- return (self::is_primitive_type($type)
- || self::is_named_type($type)
- || in_array($type, array(self::ARRAY_SCHEMA,
- self::MAP_SCHEMA,
- self::UNION_SCHEMA,
- self::REQUEST_SCHEMA,
- self::ERROR_UNION_SCHEMA)));
- }
-
- /**
- * @var array list of names of reserved attributes
- */
- private static $reserved_attrs = array(self::TYPE_ATTR,
- self::NAME_ATTR,
- self::NAMESPACE_ATTR,
- self::FIELDS_ATTR,
- self::ITEMS_ATTR,
- self::SIZE_ATTR,
- self::SYMBOLS_ATTR,
- self::VALUES_ATTR);
-
- /**
- * @param string $json JSON-encoded schema
- * @uses self::real_parse()
- * @returns AvroSchema
- */
- public static function parse($json)
- {
- $schemata = new AvroNamedSchemata();
- return self::real_parse(json_decode($json, true), null, $schemata);
- }
-
- /**
- * @param mixed $avro JSON-decoded schema
- * @param string $default_namespace namespace of enclosing schema
- * @param AvroNamedSchemata &$schemata reference to named schemas
- * @returns AvroSchema
- * @throws AvroSchemaParseException
- */
- static function real_parse($avro, $default_namespace=null, &$schemata=null)
- {
- if (is_null($schemata))
- $schemata = new AvroNamedSchemata();
-
- if (is_array($avro))
- {
- $type = AvroUtil::array_value($avro, self::TYPE_ATTR);
-
- if (self::is_primitive_type($type))
- return new AvroPrimitiveSchema($type);
-
- elseif (self::is_named_type($type))
- {
- $name = AvroUtil::array_value($avro, self::NAME_ATTR);
- $namespace = AvroUtil::array_value($avro, self::NAMESPACE_ATTR);
- $new_name = new AvroName($name, $namespace, $default_namespace);
- $doc = AvroUtil::array_value($avro, self::DOC_ATTR);
- switch ($type)
- {
- case self::FIXED_SCHEMA:
- $size = AvroUtil::array_value($avro, self::SIZE_ATTR);
- return new AvroFixedSchema($new_name, $doc,
- $size,
- $schemata);
- case self::ENUM_SCHEMA:
- $symbols = AvroUtil::array_value($avro, self::SYMBOLS_ATTR);
- return new AvroEnumSchema($new_name, $doc,
- $symbols,
- $schemata);
- case self::RECORD_SCHEMA:
- case self::ERROR_SCHEMA:
- $fields = AvroUtil::array_value($avro, self::FIELDS_ATTR);
- return new AvroRecordSchema($new_name, $doc,
- $fields,
- $schemata, $type);
- default:
- throw new AvroSchemaParseException(
- sprintf('Unknown named type: %s', $type));
- }
- }
- elseif (self::is_valid_type($type))
- {
- switch ($type)
- {
- case self::ARRAY_SCHEMA:
- return new AvroArraySchema($avro[self::ITEMS_ATTR],
- $default_namespace,
- $schemata);
- case self::MAP_SCHEMA:
- return new AvroMapSchema($avro[self::VALUES_ATTR],
- $default_namespace,
- $schemata);
- default:
- throw new AvroSchemaParseException(
- sprintf('Unknown valid type: %s', $type));
- }
- }
- elseif (!array_key_exists(self::TYPE_ATTR, $avro)
- && AvroUtil::is_list($avro))
- return new AvroUnionSchema($avro, $default_namespace, $schemata);
- else
- throw new AvroSchemaParseException(sprintf('Undefined type: %s',
- $type));
- }
- elseif (self::is_primitive_type($avro))
- return new AvroPrimitiveSchema($avro);
- else
- throw new AvroSchemaParseException(
- sprintf('%s is not a schema we know about.',
- print_r($avro, true)));
- }
-
- /**
- * @returns boolean true if $datum is valid for $expected_schema
- * and false otherwise.
- * @throws AvroSchemaParseException
- */
- public static function is_valid_datum($expected_schema, $datum)
- {
- switch($expected_schema->type)
- {
- case self::NULL_TYPE:
- return is_null($datum);
- case self::BOOLEAN_TYPE:
- return is_bool($datum);
- case self::STRING_TYPE:
- case self::BYTES_TYPE:
- return is_string($datum);
- case self::INT_TYPE:
- return (is_int($datum)
- && (self::INT_MIN_VALUE <= $datum)
- && ($datum <= self::INT_MAX_VALUE));
- case self::LONG_TYPE:
- return (is_int($datum)
- && (self::LONG_MIN_VALUE <= $datum)
- && ($datum <= self::LONG_MAX_VALUE));
- case self::FLOAT_TYPE:
- case self::DOUBLE_TYPE:
- return (is_float($datum) || is_int($datum));
- case self::ARRAY_SCHEMA:
- if (is_array($datum))
- {
- foreach ($datum as $d)
- if (!self::is_valid_datum($expected_schema->items(), $d))
- return false;
- return true;
- }
- return false;
- case self::MAP_SCHEMA:
- if (is_array($datum))
- {
- foreach ($datum as $k => $v)
- if (!is_string($k)
- || !self::is_valid_datum($expected_schema->values(), $v))
- return false;
- return true;
- }
- return false;
- case self::UNION_SCHEMA:
- foreach ($expected_schema->schemas() as $schema)
- if (self::is_valid_datum($schema, $datum))
- return true;
- return false;
- case self::ENUM_SCHEMA:
- return in_array($datum, $expected_schema->symbols());
- case self::FIXED_SCHEMA:
- return (is_string($datum)
- && (strlen($datum) == $expected_schema->size()));
- case self::RECORD_SCHEMA:
- case self::ERROR_SCHEMA:
- case self::REQUEST_SCHEMA:
- if (is_array($datum))
- {
- foreach ($expected_schema->fields() as $field)
- if (!array_key_exists($field->name(), $datum) || !self::is_valid_datum($field->type(), $datum[$field->name()]))
- return false;
- return true;
- }
- return false;
- default:
- throw new AvroSchemaParseException(
- sprintf('%s is not allowed.', $expected_schema));
- }
- }
-
- /**
- * @internal Should only be called from within the constructor of
- * a class which extends AvroSchema
- * @param string $type a schema type name
- */
- public function __construct($type)
- {
- $this->type = $type;
- }
-
- /**
- * @param mixed $avro
- * @param string $default_namespace namespace of enclosing schema
- * @param AvroNamedSchemata &$schemata
- * @returns AvroSchema
- * @uses AvroSchema::real_parse()
- * @throws AvroSchemaParseException
- */
- protected static function subparse($avro, $default_namespace, &$schemata=null)
- {
- try
- {
- return self::real_parse($avro, $default_namespace, $schemata);
- }
- catch (AvroSchemaParseException $e)
- {
- throw $e;
- }
- catch (Exception $e)
- {
- throw new AvroSchemaParseException(
- sprintf('Sub-schema is not a valid Avro schema. Bad schema: %s',
- print_r($avro, true)));
- }
-
- }
-
- /**
- * @returns string schema type name of this schema
- */
- public function type() { return $this->type; }
-
- /**
- * @returns mixed
- */
- public function to_avro()
- {
- return array(self::TYPE_ATTR => $this->type);
- }
-
- /**
- * @returns string the JSON-encoded representation of this Avro schema.
- */
- public function __toString() { return json_encode($this->to_avro()); }
-
- /**
- * @returns mixed value of the attribute with the given attribute name
- */
- public function attribute($attribute) { return $this->$attribute(); }
-
-}
-
-/**
- * Avro schema for basic types such as null, int, long, string.
- * @package Avro
- */
-class AvroPrimitiveSchema extends AvroSchema
-{
-
- /**
- * @param string $type the primitive schema type name
- * @throws AvroSchemaParseException if the given $type is not a
- * primitive schema type name
- */
- public function __construct($type)
- {
- if (self::is_primitive_type($type))
- return parent::__construct($type);
- throw new AvroSchemaParseException(
- sprintf('%s is not a valid primitive type.', $type));
- }
-
- /**
- * @returns mixed
- */
- public function to_avro()
- {
- $avro = parent::to_avro();
- // FIXME: Is this if really necessary? When *wouldn't* this be the case?
- if (1 == count($avro))
- return $this->type;
- return $avro;
- }
-}
-
-/**
- * Avro array schema, consisting of items of a particular
- * Avro schema type.
- * @package Avro
- */
-class AvroArraySchema extends AvroSchema
-{
- /**
- * @var AvroName|AvroSchema named schema name or AvroSchema of
- * array element
- */
- private $items;
-
- /**
- * @var boolean true if the items schema
- * FIXME: couldn't we derive this from whether or not $this->items
- * is an AvroName or an AvroSchema?
- */
- private $is_items_schema_from_schemata;
-
- /**
- * @param string|mixed $items AvroNamedSchema name or object form
- * of decoded JSON schema representation.
- * @param string $default_namespace namespace of enclosing schema
- * @param AvroNamedSchemata &$schemata
- */
- public function __construct($items, $default_namespace, &$schemata=null)
- {
- parent::__construct(AvroSchema::ARRAY_SCHEMA);
-
- $this->is_items_schema_from_schemata = false;
- $items_schema = null;
- if (is_string($items)
- && $items_schema = $schemata->schema_by_name(
- new AvroName($items, null, $default_namespace)))
- $this->is_items_schema_from_schemata = true;
- else
- $items_schema = AvroSchema::subparse($items, $default_namespace, $schemata);
-
- $this->items = $items_schema;
- }
-
-
- /**
- * @returns AvroName|AvroSchema named schema name or AvroSchema
- * of this array schema's elements.
- */
- public function items() { return $this->items; }
-
- /**
- * @returns mixed
- */
- public function to_avro()
- {
- $avro = parent::to_avro();
- $avro[AvroSchema::ITEMS_ATTR] = $this->is_items_schema_from_schemata
- ? $this->items->qualified_name() : $this->items->to_avro();
- return $avro;
- }
-}
-
-/**
- * Avro map schema consisting of named values of defined
- * Avro Schema types.
- * @package Avro
- */
-class AvroMapSchema extends AvroSchema
-{
- /**
- * @var string|AvroSchema named schema name or AvroSchema
- * of map schema values.
- */
- private $values;
-
- /**
- * @var boolean true if the named schema
- * XXX Couldn't we derive this based on whether or not
- * $this->values is a string?
- */
- private $is_values_schema_from_schemata;
-
- /**
- * @param string|AvroSchema $values
- * @param string $default_namespace namespace of enclosing schema
- * @param AvroNamedSchemata &$schemata
- */
- public function __construct($values, $default_namespace, &$schemata=null)
- {
- parent::__construct(AvroSchema::MAP_SCHEMA);
-
- $this->is_values_schema_from_schemata = false;
- $values_schema = null;
- if (is_string($values)
- && $values_schema = $schemata->schema_by_name(
- new AvroName($values, null, $default_namespace)))
- $this->is_values_schema_from_schemata = true;
- else
- $values_schema = AvroSchema::subparse($values, $default_namespace,
- $schemata);
-
- $this->values = $values_schema;
- }
-
- /**
- * @returns XXX|AvroSchema
- */
- public function values() { return $this->values; }
-
- /**
- * @returns mixed
- */
- public function to_avro()
- {
- $avro = parent::to_avro();
- $avro[AvroSchema::VALUES_ATTR] = $this->is_values_schema_from_schemata
- ? $this->values->qualified_name() : $this->values->to_avro();
- return $avro;
- }
-}
-
-/**
- * Union of Avro schemas, of which values can be of any of the schema in
- * the union.
- * @package Avro
- */
-class AvroUnionSchema extends AvroSchema
-{
- /**
- * @var AvroSchema[] list of schemas of this union
- */
- private $schemas;
-
- /**
- * @var int[] list of indices of named schemas which
- * are defined in $schemata
- */
- public $schema_from_schemata_indices;
-
- /**
- * @param AvroSchema[] $schemas list of schemas in the union
- * @param string $default_namespace namespace of enclosing schema
- * @param AvroNamedSchemata &$schemata
- */
- public function __construct($schemas, $default_namespace, &$schemata=null)
- {
- parent::__construct(AvroSchema::UNION_SCHEMA);
-
- $this->schema_from_schemata_indices = array();
- $schema_types = array();
- foreach ($schemas as $index => $schema)
- {
- $is_schema_from_schemata = false;
- $new_schema = null;
- if (is_string($schema)
- && ($new_schema = $schemata->schema_by_name(
- new AvroName($schema, null, $default_namespace))))
- $is_schema_from_schemata = true;
- else
- $new_schema = self::subparse($schema, $default_namespace, $schemata);
-
- $schema_type = $new_schema->type;
- if (self::is_valid_type($schema_type)
- && !self::is_named_type($schema_type)
- && in_array($schema_type, $schema_types))
- throw new AvroSchemaParseException(
- sprintf('"%s" is already in union', $schema_type));
- elseif (AvroSchema::UNION_SCHEMA == $schema_type)
- throw new AvroSchemaParseException('Unions cannot contain other unions');
- else
- {
- $schema_types []= $schema_type;
- $this->schemas []= $new_schema;
- if ($is_schema_from_schemata)
- $this->schema_from_schemata_indices []= $index;
- }
- }
-
- }
-
- /**
- * @returns AvroSchema[]
- */
- public function schemas() { return $this->schemas; }
-
- /**
- * @returns AvroSchema the particular schema from the union for
- * the given (zero-based) index.
- * @throws AvroSchemaParseException if the index is invalid for this schema.
- */
- public function schema_by_index($index)
- {
- if (count($this->schemas) > $index)
- return $this->schemas[$index];
-
- throw new AvroSchemaParseException('Invalid union schema index');
- }
-
- /**
- * @returns mixed
- */
- public function to_avro()
- {
- $avro = array();
-
- foreach ($this->schemas as $index => $schema)
- $avro []= (in_array($index, $this->schema_from_schemata_indices))
- ? $schema->qualified_name() : $schema->to_avro();
-
- return $avro;
- }
-}
-
-/**
- * Parent class of named Avro schema
- * @package Avro
- * @todo Refactor AvroNamedSchema to use an AvroName instance
- * to store name information.
- */
-class AvroNamedSchema extends AvroSchema
-{
- /**
- * @var AvroName $name
- */
- private $name;
-
- /**
- * @var string documentation string
- */
- private $doc;
-
- /**
- * @param string $type
- * @param AvroName $name
- * @param string $doc documentation string
- * @param AvroNamedSchemata &$schemata
- * @throws AvroSchemaParseException
- */
- public function __construct($type, $name, $doc=null, &$schemata=null)
- {
- parent::__construct($type);
- $this->name = $name;
-
- if ($doc && !is_string($doc))
- throw new AvroSchemaParseException('Schema doc attribute must be a string');
- $this->doc = $doc;
-
- if (!is_null($schemata))
- $schemata = $schemata->clone_with_new_schema($this);
- }
-
- /**
- * @returns mixed
- */
- public function to_avro()
- {
- $avro = parent::to_avro();
- list($name, $namespace) = AvroName::extract_namespace($this->qualified_name());
- $avro[AvroSchema::NAME_ATTR] = $name;
- if ($namespace)
- $avro[AvroSchema::NAMESPACE_ATTR] = $namespace;
- if (!is_null($this->doc))
- $avro[AvroSchema::DOC_ATTR] = $this->doc;
- return $avro;
- }
-
- /**
- * @returns string
- */
- public function fullname() { return $this->name->fullname(); }
-
- public function qualified_name() { return $this->name->qualified_name(); }
-
-}
-
-/**
- * @package Avro
- */
-class AvroName
-{
- /**
- * @var string character used to separate names comprising the fullname
- */
- const NAME_SEPARATOR = '.';
-
- /**
- * @var string regular expression to validate name values
- */
- const NAME_REGEXP = '/^[A-Za-z_][A-Za-z0-9_]*$/';
-
- /**
- * @returns string[] array($name, $namespace)
- */
- public static function extract_namespace($name, $namespace=null)
- {
- $parts = explode(self::NAME_SEPARATOR, $name);
- if (count($parts) > 1)
- {
- $name = array_pop($parts);
- $namespace = join(self::NAME_SEPARATOR, $parts);
- }
- return array($name, $namespace);
- }
-
- /**
- * @returns boolean true if the given name is well-formed
- * (is a non-null, non-empty string) and false otherwise
- */
- public static function is_well_formed_name($name)
- {
- return (is_string($name) && !empty($name)
- && preg_match(self::NAME_REGEXP, $name));
- }
-
- /**
- * @param string $namespace
- * @returns boolean true if namespace is composed of valid names
- * @throws AvroSchemaParseException if any of the namespace components
- * are invalid.
- */
- private static function check_namespace_names($namespace)
- {
- foreach (explode(self::NAME_SEPARATOR, $namespace) as $n)
- {
- if (empty($n) || (0 == preg_match(self::NAME_REGEXP, $n)))
- throw new AvroSchemaParseException(sprintf('Invalid name "%s"', $n));
- }
- return true;
- }
-
- /**
- * @param string $name
- * @param string $namespace
- * @returns string
- * @throws AvroSchemaParseException if any of the names are not valid.
- */
- private static function parse_fullname($name, $namespace)
- {
- if (!is_string($namespace) || empty($namespace))
- throw new AvroSchemaParseException('Namespace must be a non-empty string.');
- self::check_namespace_names($namespace);
- return $namespace . '.' . $name;
- }
-
- /**
- * @var string valid names are matched by self::NAME_REGEXP
- */
- private $name;
-
- /**
- * @var string
- */
- private $namespace;
-
- /**
- * @var string
- */
- private $fullname;
-
- /**
- * @var string Name qualified as necessary given its default namespace.
- */
- private $qualified_name;
-
- /**
- * @param string $name
- * @param string $namespace
- * @param string $default_namespace
- */
- public function __construct($name, $namespace, $default_namespace)
- {
- if (!is_string($name) || empty($name))
- throw new AvroSchemaParseException('Name must be a non-empty string.');
-
- if (strpos($name, self::NAME_SEPARATOR)
- && self::check_namespace_names($name))
- $this->fullname = $name;
- elseif (0 == preg_match(self::NAME_REGEXP, $name))
- throw new AvroSchemaParseException(sprintf('Invalid name "%s"', $name));
- elseif (!is_null($namespace))
- $this->fullname = self::parse_fullname($name, $namespace);
- elseif (!is_null($default_namespace))
- $this->fullname = self::parse_fullname($name, $default_namespace);
- else
- $this->fullname = $name;
-
- list($this->name, $this->namespace) = self::extract_namespace($this->fullname);
- $this->qualified_name = (is_null($this->namespace)
- || $this->namespace == $default_namespace)
- ? $this->name : $this->fullname;
- }
-
- /**
- * @returns array array($name, $namespace)
- */
- public function name_and_namespace()
- {
- return array($this->name, $this->namespace);
- }
-
- /**
- * @returns string
- */
- public function fullname() { return $this->fullname; }
-
- /**
- * @returns string fullname
- * @uses $this->fullname()
- */
- public function __toString() { return $this->fullname(); }
-
- /**
- * @returns string name qualified for its context
- */
- public function qualified_name() { return $this->qualified_name; }
-
-}
-
-/**
- * Keeps track of AvroNamedSchema which have been observed so far,
- * as well as the default namespace.
- *
- * @package Avro
- */
-class AvroNamedSchemata
-{
- /**
- * @var AvroNamedSchema[]
- */
- private $schemata;
-
- /**
- * @param AvroNamedSchemata[]
- */
- public function __construct($schemata=array())
- {
- $this->schemata = $schemata;
- }
-
- public function list_schemas() {
- var_export($this->schemata);
- foreach($this->schemata as $sch)
- print('Schema '.$sch->__toString()."\n");
- }
-
- /**
- * @param string $fullname
- * @returns boolean true if there exists a schema with the given name
- * and false otherwise.
- */
- public function has_name($fullname)
- {
- return array_key_exists($fullname, $this->schemata);
- }
-
- /**
- * @param string $fullname
- * @returns AvroSchema|null the schema which has the given name,
- * or null if there is no schema with the given name.
- */
- public function schema($fullname)
- {
- if (isset($this->schemata[$fullname]))
- return $this->schemata[$fullname];
- return null;
- }
-
- /**
- * @param AvroName $name
- * @returns AvroSchema|null
- */
- public function schema_by_name($name)
- {
- return $this->schema($name->fullname());
- }
-
- /**
- * Creates a new AvroNamedSchemata instance of this schemata instance
- * with the given $schema appended.
- * @param AvroNamedSchema schema to add to this existing schemata
- * @returns AvroNamedSchemata
- */
- public function clone_with_new_schema($schema)
- {
- $name = $schema->fullname();
- if (AvroSchema::is_valid_type($name))
- throw new AvroSchemaParseException(
- sprintf('Name "%s" is a reserved type name', $name));
- else if ($this->has_name($name))
- throw new AvroSchemaParseException(
- sprintf('Name "%s" is already in use', $name));
- $schemata = new AvroNamedSchemata($this->schemata);
- $schemata->schemata[$name] = $schema;
- return $schemata;
- }
-}
-
-/**
- * @package Avro
- */
-class AvroEnumSchema extends AvroNamedSchema
-{
- /**
- * @var string[] array of symbols
- */
- private $symbols;
-
- /**
- * @param AvroName $name
- * @param string $doc
- * @param string[] $symbols
- * @param AvroNamedSchemata &$schemata
- * @throws AvroSchemaParseException
- */
- public function __construct($name, $doc, $symbols, &$schemata=null)
- {
- if (!AvroUtil::is_list($symbols))
- throw new AvroSchemaParseException('Enum Schema symbols are not a list');
-
- if (count(array_unique($symbols)) > count($symbols))
- throw new AvroSchemaParseException(
- sprintf('Duplicate symbols: %s', $symbols));
-
- foreach ($symbols as $symbol)
- if (!is_string($symbol) || empty($symbol))
- throw new AvroSchemaParseException(
- sprintf('Enum schema symbol must be a string %',
- print_r($symbol, true)));
-
- parent::__construct(AvroSchema::ENUM_SCHEMA, $name, $doc, $schemata);
- $this->symbols = $symbols;
- }
-
- /**
- * @returns string[] this enum schema's symbols
- */
- public function symbols() { return $this->symbols; }
-
- /**
- * @param string $symbol
- * @returns boolean true if the given symbol exists in this
- * enum schema and false otherwise
- */
- public function has_symbol($symbol)
- {
- return in_array($symbol, $this->symbols);
- }
-
- /**
- * @param int $index
- * @returns string enum schema symbol with the given (zero-based) index
- */
- public function symbol_by_index($index)
- {
- if (array_key_exists($index, $this->symbols))
- return $this->symbols[$index];
- throw new AvroException(sprintf('Invalid symbol index %d', $index));
- }
-
- /**
- * @param string $symbol
- * @returns int the index of the given $symbol in the enum schema
- */
- public function symbol_index($symbol)
- {
- $idx = array_search($symbol, $this->symbols, true);
- if (false !== $idx)
- return $idx;
- throw new AvroException(sprintf("Invalid symbol value '%s'", $symbol));
- }
-
- /**
- * @returns mixed
- */
- public function to_avro()
- {
- $avro = parent::to_avro();
- $avro[AvroSchema::SYMBOLS_ATTR] = $this->symbols;
- return $avro;
- }
-}
-
-/**
- * AvroNamedSchema with fixed-length data values
- * @package Avro
- */
-class AvroFixedSchema extends AvroNamedSchema
-{
-
- /**
- * @var int byte count of this fixed schema data value
- */
- private $size;
-
- /**
- * @param AvroName $name
- * @param string $doc Set to null, as fixed schemas don't have doc strings
- * @param int $size byte count of this fixed schema data value
- * @param AvroNamedSchemata &$schemata
- */
- public function __construct($name, $doc, $size, &$schemata=null)
- {
- $doc = null; // Fixed schemas don't have doc strings.
- if (!is_integer($size))
- throw new AvroSchemaParseException(
- 'Fixed Schema requires a valid integer for "size" attribute');
- parent::__construct(AvroSchema::FIXED_SCHEMA, $name, $doc, $schemata);
- return $this->size = $size;
- }
-
- /**
- * @returns int byte count of this fixed schema data value
- */
- public function size() { return $this->size; }
-
- /**
- * @returns mixed
- */
- public function to_avro()
- {
- $avro = parent::to_avro();
- $avro[AvroSchema::SIZE_ATTR] = $this->size;
- return $avro;
- }
-}
-
-/**
- * @package Avro
- */
-class AvroRecordSchema extends AvroNamedSchema
-{
- /**
- * @param mixed $field_data
- * @param string $default_namespace namespace of enclosing schema
- * @param AvroNamedSchemata &$schemata
- * @returns AvroField[]
- * @throws AvroSchemaParseException
- */
- static function parse_fields($field_data, $default_namespace, &$schemata)
- {
- $fields = array();
- $field_names = array();
- foreach ($field_data as $index => $field)
- {
- $name = AvroUtil::array_value($field, AvroField::FIELD_NAME_ATTR);
- $type = AvroUtil::array_value($field, AvroSchema::TYPE_ATTR);
- $order = AvroUtil::array_value($field, AvroField::ORDER_ATTR);
-
- $default = null;
- $has_default = false;
- if (array_key_exists(AvroField::DEFAULT_ATTR, $field))
- {
- $default = $field[AvroField::DEFAULT_ATTR];
- $has_default = true;
- }
-
- if (in_array($name, $field_names))
- throw new AvroSchemaParseException(
- sprintf("Field name %s is already in use", $name));
-
- $is_schema_from_schemata = false;
- $field_schema = null;
- if (is_string($type)
- && $field_schema = $schemata->schema_by_name(
- new AvroName($type, null, $default_namespace)))
- $is_schema_from_schemata = true;
- else
- $field_schema = self::subparse($type, $default_namespace, $schemata);
-
- $new_field = new AvroField($name, $field_schema, $is_schema_from_schemata,
- $has_default, $default, $order);
- $field_names []= $name;
- $fields []= $new_field;
- }
- return $fields;
- }
-
- /**
- * @var AvroSchema[] array of AvroNamedSchema field definitions of
- * this AvroRecordSchema
- */
- private $fields;
-
- /**
- * @var array map of field names to field objects.
- * @internal Not called directly. Memoization of AvroRecordSchema->fields_hash()
- */
- private $fields_hash;
-
- /**
- * @param string $name
- * @param string $namespace
- * @param string $doc
- * @param array $fields
- * @param AvroNamedSchemata &$schemata
- * @param string $schema_type schema type name
- * @throws AvroSchemaParseException
- */
- public function __construct($name, $doc, $fields, &$schemata=null,
- $schema_type=AvroSchema::RECORD_SCHEMA)
- {
- if (is_null($fields))
- throw new AvroSchemaParseException(
- 'Record schema requires a non-empty fields attribute');
-
- if (AvroSchema::REQUEST_SCHEMA == $schema_type)
- parent::__construct($schema_type, $name);
- else
- parent::__construct($schema_type, $name, $doc, $schemata);
-
- list($x, $namespace) = $name->name_and_namespace();
- $this->fields = self::parse_fields($fields, $namespace, $schemata);
- }
-
- /**
- * @returns mixed
- */
- public function to_avro()
- {
- $avro = parent::to_avro();
-
- $fields_avro = array();
- foreach ($this->fields as $field)
- $fields_avro [] = $field->to_avro();
-
- if (AvroSchema::REQUEST_SCHEMA == $this->type)
- return $fields_avro;
-
- $avro[AvroSchema::FIELDS_ATTR] = $fields_avro;
-
- return $avro;
- }
-
- /**
- * @returns array the schema definitions of the fields of this AvroRecordSchema
- */
- public function fields() { return $this->fields; }
-
- /**
- * @returns array a hash table of the fields of this AvroRecordSchema fields
- * keyed by each field's name
- */
- public function fields_hash()
- {
- if (is_null($this->fields_hash))
- {
- $hash = array();
- foreach ($this->fields as $field)
- $hash[$field->name()] = $field;
- $this->fields_hash = $hash;
- }
- return $this->fields_hash;
- }
-}
-
-/**
- * Field of an {@link AvroRecordSchema}
- * @package Avro
- */
-class AvroField extends AvroSchema
-{
-
- /**
- * @var string fields name attribute name
- */
- const FIELD_NAME_ATTR = 'name';
-
- /**
- * @var string
- */
- const DEFAULT_ATTR = 'default';
-
- /**
- * @var string
- */
- const ORDER_ATTR = 'order';
-
- /**
- * @var string
- */
- const ASC_SORT_ORDER = 'ascending';
-
- /**
- * @var string
- */
- const DESC_SORT_ORDER = 'descending';
-
- /**
- * @var string
- */
- const IGNORE_SORT_ORDER = 'ignore';
-
- /**
- * @var array list of valid field sort order values
- */
- private static $valid_field_sort_orders = array(self::ASC_SORT_ORDER,
- self::DESC_SORT_ORDER,
- self::IGNORE_SORT_ORDER);
-
-
- /**
- * @param string $order
- * @returns boolean
- */
- private static function is_valid_field_sort_order($order)
- {
- return in_array($order, self::$valid_field_sort_orders);
- }
-
- /**
- * @param string $order
- * @throws AvroSchemaParseException if $order is not a valid
- * field order value.
- */
- private static function check_order_value($order)
- {
- if (!is_null($order) && !self::is_valid_field_sort_order($order))
- throw new AvroSchemaParseException(
- sprintf('Invalid field sort order %s', $order));
- }
-
- /**
- * @var string
- */
- private $name;
-
- /**
- * @var boolean whether or no there is a default value
- */
- private $has_default;
-
- /**
- * @var string field default value
- */
- private $default;
-
- /**
- * @var string sort order of this field
- */
- private $order;
-
- /**
- * @var boolean whether or not the AvroNamedSchema of this field is
- * defined in the AvroNamedSchemata instance
- */
- private $is_type_from_schemata;
-
- /**
- * @param string $type
- * @param string $name
- * @param AvroSchema $schema
- * @param boolean $is_type_from_schemata
- * @param string $default
- * @param string $order
- * @todo Check validity of $default value
- * @todo Check validity of $order value
- */
- public function __construct($name, $schema, $is_type_from_schemata,
- $has_default, $default, $order=null)
- {
- if (!AvroName::is_well_formed_name($name))
- throw new AvroSchemaParseException('Field requires a "name" attribute');
-
- $this->type = $schema;
- $this->is_type_from_schemata = $is_type_from_schemata;
- $this->name = $name;
- $this->has_default = $has_default;
- if ($this->has_default)
- $this->default = $default;
- $this->check_order_value($order);
- $this->order = $order;
- }
-
- /**
- * @returns mixed
- */
- public function to_avro()
- {
- $avro = array(AvroField::FIELD_NAME_ATTR => $this->name);
-
- $avro[AvroSchema::TYPE_ATTR] = ($this->is_type_from_schemata)
- ? $this->type->qualified_name() : $this->type->to_avro();
-
- if (isset($this->default))
- $avro[AvroField::DEFAULT_ATTR] = $this->default;
-
- if ($this->order)
- $avro[AvroField::ORDER_ATTR] = $this->order;
-
- return $avro;
- }
-
- /**
- * @returns string the name of this field
- */
- public function name() { return $this->name; }
-
- /**
- * @returns mixed the default value of this field
- */
- public function default_value() { return $this->default; }
-
- /**
- * @returns boolean true if the field has a default and false otherwise
- */
- public function has_default_value() { return $this->has_default; }
-}
diff --git a/www/wiki/vendor/wikimedia/avro/lib/avro/util.php b/www/wiki/vendor/wikimedia/avro/lib/avro/util.php
deleted file mode 100644
index a43613e9..00000000
--- a/www/wiki/vendor/wikimedia/avro/lib/avro/util.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @package Avro
- */
-
-/**
- * Class for static utility methods used in Avro.
- *
- * @package Avro
- */
-class AvroUtil
-{
- /**
- * Determines whether the given array is an associative array
- * (what is termed a map, hash, or dictionary in other languages)
- * or a list (an array with monotonically increasing integer indicies
- * starting with zero).
- *
- * @param array $ary array to test
- * @returns true if the array is a list and false otherwise.
- *
- */
- static function is_list($ary)
- {
- if (is_array($ary))
- {
- $i = 0;
- foreach ($ary as $k => $v)
- {
- if ($i !== $k)
- return false;
- $i++;
- }
- return true;
- }
- return false;
- }
-
- /**
- * @param array $ary
- * @param string $key
- * @returns mixed the value of $ary[$key] if it is set,
- * and null otherwise.
- */
- static function array_value($ary, $key)
- {
- return isset($ary[$key]) ? $ary[$key] : null;
- }
-}
diff --git a/www/wiki/vendor/wikimedia/testing-access-wrapper/LICENSE b/www/wiki/vendor/wikimedia/testing-access-wrapper/LICENSE
deleted file mode 100644
index 019694a9..00000000
--- a/www/wiki/vendor/wikimedia/testing-access-wrapper/LICENSE
+++ /dev/null
@@ -1,342 +0,0 @@
-== GNU GENERAL PUBLIC LICENSE ==
-
-Version 2, June 1991
-
-Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-Everyone is permitted to copy and distribute verbatim copies
-of this license document, but changing it is not allowed.
-
-=== Preamble ===
-
-The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
-When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
-We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-The precise terms and conditions for copying, distribution and
-modification follow.
-
-== TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION ==
-
-'''0.''' This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-'''1.''' You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-'''2.''' You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- '''a)''' You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- '''b)''' You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- '''c)''' If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-'''3.''' You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- '''a)''' Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- '''b)''' Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- '''c)''' Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-'''4.''' You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-'''5.''' You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-'''6.''' Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
-'''7.''' If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-'''8.''' If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
-'''9.''' The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-'''10.''' If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
-=== NO WARRANTY ===
-
-'''11.''' BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-'''12.''' IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- '''END OF TERMS AND CONDITIONS'''
-
-== How to Apply These Terms to Your New Programs ==
-
-If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
-
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
-
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
diff --git a/www/wiki/vendor/wikimedia/testing-access-wrapper/README.md b/www/wiki/vendor/wikimedia/testing-access-wrapper/README.md
deleted file mode 100644
index fb9b0a38..00000000
--- a/www/wiki/vendor/wikimedia/testing-access-wrapper/README.md
+++ /dev/null
@@ -1,41 +0,0 @@
-[![Latest Stable Version]](https://packagist.org/packages/wikimedia/testing-access-wrapper) [![License]](https://packagist.org/packages/wikimedia/testing-access-wrapper)
-
-Wikimedia Testing Access Wrapper
-================================
-
-Testing Access Wrapper is a simple helper for writing unit tests which provides
-convenient shortcuts for using reflection to access non-public properties/methods.
-
-The code was originally part of MediaWiki. See composer.json for a list of authors.
-
-Usage
------
-
-```php
-use Wikimedia\TestingAccessWrapper;
-
-class NonPublic {
- protected $prop;
- protected function func() {}
- protected static function staticFunc() {}
-}
-
-$object = new NonPublic();
-$wrapper = TestingAccessWrapper::newFromObject( $object );
-$classWrapper = TestingAccessWrapper::newFromClass( NonPublic::class );
-
-$wrapper->prop = 'foo';
-$wrapper->func();
-$classWrapper->staticFunc();
-```
-
-Running tests
--------------
-
- composer install
- composer test
-
-
----
-[Latest Stable Version]: https://poser.pugx.org/wikimedia/testing-access-wrapper/v/stable.svg
-[License]: https://poser.pugx.org/wikimedia/testing-access-wrapper/license.svg
diff --git a/www/wiki/vendor/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php b/www/wiki/vendor/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php
deleted file mode 100644
index 762df771..00000000
--- a/www/wiki/vendor/wikimedia/testing-access-wrapper/src/TestingAccessWrapper.php
+++ /dev/null
@@ -1,155 +0,0 @@
-<?php
-
-namespace Wikimedia;
-
-use DomainException;
-use InvalidArgumentException;
-use ReflectionClass;
-use ReflectionException;
-use ReflectionMethod;
-use ReflectionProperty;
-
-/**
- * Circumvent access restrictions on object internals
- *
- * This can be helpful for writing tests that can probe object internals,
- * without having to modify the class under test to accomodate.
- *
- * Wrap an object with private methods as follows:
- * $title = TestingAccessWrapper::newFromObject( Title::newFromDBkey( $key ) );
- *
- * You can access private and protected instance methods and variables:
- * $formatter = $title->getTitleFormatter();
- *
- */
-class TestingAccessWrapper {
- /** @var mixed The object, or the class name for static-only access */
- public $object;
-
- /**
- * Return a proxy object which can be used the same way as the original,
- * except that access restrictions can be ignored (protected and private methods and properties
- * are available for any caller).
- * @param object $object
- * @return TestingAccessWrapper
- * @throws InvalidArgumentException
- */
- public static function newFromObject( $object ) {
- if ( !is_object( $object ) ) {
- throw new InvalidArgumentException( __METHOD__ . ' must be called with an object' );
- }
- $wrapper = new TestingAccessWrapper();
- $wrapper->object = $object;
- return $wrapper;
- }
-
- /**
- * Allow access to non-public static methods and properties of the class.
- * Returns an object whose methods/properties will correspond to the
- * static methods/properties of the given class.
- * @param string $className
- * @return TestingAccessWrapper
- * @throws InvalidArgumentException
- */
- public static function newFromClass( $className ) {
- if ( !is_string( $className ) ) {
- throw new InvalidArgumentException( __METHOD__ . ' must be called with a class name' );
- }
- $wrapper = new TestingAccessWrapper();
- $wrapper->object = $className;
- return $wrapper;
- }
-
- public function __call( $method, $args ) {
- $methodReflection = $this->getMethod( $method );
-
- if ( $this->isStatic() && !$methodReflection->isStatic() ) {
- throw new DomainException( __METHOD__
- . ': Cannot call non-static method when wrapping static class' );
- }
-
- return $methodReflection->invokeArgs( $methodReflection->isStatic() ? null : $this->object,
- $args );
- }
-
- public function __set( $name, $value ) {
- $propertyReflection = $this->getProperty( $name );
-
- if ( $this->isStatic() && !$propertyReflection->isStatic() ) {
- throw new DomainException( __METHOD__
- . ': Cannot set non-static property when wrapping static class' );
- }
-
- $propertyReflection->setValue( $this->object, $value );
- }
-
- public function __get( $name ) {
- $propertyReflection = $this->getProperty( $name );
-
- if ( $this->isStatic() && !$propertyReflection->isStatic() ) {
- throw new DomainException( __METHOD__
- . ': Cannot get non-static property when wrapping static class' );
- }
-
- return $propertyReflection->getValue( $this->object );
- }
-
- /**
- * Tells whether this object was created for an object or a class.
- * @return bool
- */
- private function isStatic() {
- return is_string( $this->object );
- }
-
- /**
- * Return a method and make it accessible.
- * @param string $name
- * @return ReflectionMethod
- */
- private function getMethod( $name ) {
- $classReflection = new ReflectionClass( $this->object );
- $methodReflection = $classReflection->getMethod( $name );
- $methodReflection->setAccessible( true );
- return $methodReflection;
- }
-
- /**
- * Return a property and make it accessible.
- *
- * ReflectionClass::getProperty() fails if the private property is defined
- * in a parent class. This works more like ReflectionClass::getMethod().
- *
- * @param string $name
- * @return ReflectionProperty
- * @throws ReflectionException
- */
- private function getProperty( $name ) {
- $classReflection = new ReflectionClass( $this->object );
- try {
- $propertyReflection = $classReflection->getProperty( $name );
- } catch ( ReflectionException $ex ) {
- while ( true ) {
- $classReflection = $classReflection->getParentClass();
- if ( !$classReflection ) {
- throw $ex;
- }
- try {
- $propertyReflection = $classReflection->getProperty( $name );
- } catch ( ReflectionException $ex2 ) {
- continue;
- }
- if ( $propertyReflection->isPrivate() ) {
- break;
- } else {
- // @codeCoverageIgnoreStart
- throw $ex;
- // @codeCoverageIgnoreEnd
- }
- }
- }
- $propertyReflection->setAccessible( true );
- return $propertyReflection;
- }
-}
-
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/.editorconfig b/www/wiki/vendor/wmde/hamcrest-html-matchers/.editorconfig
deleted file mode 100644
index 9d499094..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/.editorconfig
+++ /dev/null
@@ -1,15 +0,0 @@
-; This file is for unifying the coding style for different editors and IDEs.
-; More information at http://editorconfig.org
-
-root = true
-
-[*]
-charset = utf-8
-indent_size = 4
-indent_style = space
-end_of_line = lf
-insert_final_newline = true
-trim_trailing_whitespace = true
-
-[*.md]
-trim_trailing_whitespace = false \ No newline at end of file
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/.gitignore b/www/wiki/vendor/wmde/hamcrest-html-matchers/.gitignore
deleted file mode 100644
index 6ea77161..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/.gitignore
+++ /dev/null
@@ -1,13 +0,0 @@
-nbproject
-._*
-.~lock.*
-.buildpath
-.DS_Store
-.idea
-.project
-.settings
-cache.properties
-build
-phpunit.xml
-composer.lock
-vendor/
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/.travis.yml b/www/wiki/vendor/wmde/hamcrest-html-matchers/.travis.yml
deleted file mode 100644
index 7f1d442b..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/.travis.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-language: php
-dist: trusty
-php:
- - 5.5
- - 5.6
- - 7.0
- - 7.1
- - hhvm
-
-env:
- - LOWEST_VERSIONS=""
- - LOWEST_VERSIONS=--prefer-lowest
-
-sudo: false
-
-install: travis_retry composer update $LOWEST_VERSIONS
-
-script: composer ci
-
-cache:
- directories:
- - $HOME/.composer/cache
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/COPYING b/www/wiki/vendor/wmde/hamcrest-html-matchers/COPYING
deleted file mode 100644
index 47a95e2f..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/COPYING
+++ /dev/null
@@ -1,510 +0,0 @@
-The license text below "----" applies to all files within this distribution, other
-than those that are in a directory which contains files named "LICENSE" or
-"COPYING", or a subdirectory thereof. For those files, the license text contained in
-said file overrides any license information contained in directories of smaller depth.
-Alternative licenses are typically used for software that is provided by external
-parties, and merely packaged with this software for convenience.
-----
-
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 2.1, February 1999
-
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the Lesser GPL. It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
- This license, the Lesser General Public License, applies to some
-specially designated software packages--typically libraries--of the
-Free Software Foundation and other authors who decide to use it. You
-can use it too, but we suggest you first think carefully about whether
-this license or the ordinary General Public License is the better
-strategy to use in any particular case, based on the explanations below.
-
- When we speak of free software, we are referring to freedom of use,
-not price. Our General Public Licenses are designed to make sure that
-you have the freedom to distribute copies of free software (and charge
-for this service if you wish); that you receive source code or can get
-it if you want it; that you can change the software and use pieces of
-it in new free programs; and that you are informed that you can do
-these things.
-
- To protect your rights, we need to make restrictions that forbid
-distributors to deny you these rights or to ask you to surrender these
-rights. These restrictions translate to certain responsibilities for
-you if you distribute copies of the library or if you modify it.
-
- For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you. You must make sure that they, too, receive or can get the source
-code. If you link other code with the library, you must provide
-complete object files to the recipients, so that they can relink them
-with the library after making changes to the library and recompiling
-it. And you must show them these terms so they know their rights.
-
- We protect your rights with a two-step method: (1) we copyright the
-library, and (2) we offer you this license, which gives you legal
-permission to copy, distribute and/or modify the library.
-
- To protect each distributor, we want to make it very clear that
-there is no warranty for the free library. Also, if the library is
-modified by someone else and passed on, the recipients should know
-that what they have is not the original version, so that the original
-author's reputation will not be affected by problems that might be
-introduced by others.
-
- Finally, software patents pose a constant threat to the existence of
-any free program. We wish to make sure that a company cannot
-effectively restrict the users of a free program by obtaining a
-restrictive license from a patent holder. Therefore, we insist that
-any patent license obtained for a version of the library must be
-consistent with the full freedom of use specified in this license.
-
- Most GNU software, including some libraries, is covered by the
-ordinary GNU General Public License. This license, the GNU Lesser
-General Public License, applies to certain designated libraries, and
-is quite different from the ordinary General Public License. We use
-this license for certain libraries in order to permit linking those
-libraries into non-free programs.
-
- When a program is linked with a library, whether statically or using
-a shared library, the combination of the two is legally speaking a
-combined work, a derivative of the original library. The ordinary
-General Public License therefore permits such linking only if the
-entire combination fits its criteria of freedom. The Lesser General
-Public License permits more lax criteria for linking other code with
-the library.
-
- We call this license the "Lesser" General Public License because it
-does Less to protect the user's freedom than the ordinary General
-Public License. It also provides other free software developers Less
-of an advantage over competing non-free programs. These disadvantages
-are the reason we use the ordinary General Public License for many
-libraries. However, the Lesser license provides advantages in certain
-special circumstances.
-
- For example, on rare occasions, there may be a special need to
-encourage the widest possible use of a certain library, so that it becomes
-a de-facto standard. To achieve this, non-free programs must be
-allowed to use the library. A more frequent case is that a free
-library does the same job as widely used non-free libraries. In this
-case, there is little to gain by limiting the free library to free
-software only, so we use the Lesser General Public License.
-
- In other cases, permission to use a particular library in non-free
-programs enables a greater number of people to use a large body of
-free software. For example, permission to use the GNU C Library in
-non-free programs enables many more people to use the whole GNU
-operating system, as well as its variant, the GNU/Linux operating
-system.
-
- Although the Lesser General Public License is Less protective of the
-users' freedom, it does ensure that the user of a program that is
-linked with the Library has the freedom and the wherewithal to run
-that program using a modified version of the Library.
-
- The precise terms and conditions for copying, distribution and
-modification follow. Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library". The
-former contains code derived from the library, whereas the latter must
-be combined with the library in order to run.
-
- GNU LESSER GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License Agreement applies to any software library or other
-program which contains a notice placed by the copyright holder or
-other authorized party saying it may be distributed under the terms of
-this Lesser General Public License (also called "this License").
-Each licensee is addressed as "you".
-
- A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
- The "Library", below, refers to any such software library or work
-which has been distributed under these terms. A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language. (Hereinafter, translation is
-included without limitation in the term "modification".)
-
- "Source code" for a work means the preferred form of the work for
-making modifications to it. For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control compilation
-and installation of the library.
-
- Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it). Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-
- 1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
- You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-
- 2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) The modified work must itself be a software library.
-
- b) You must cause the files modified to carry prominent notices
- stating that you changed the files and the date of any change.
-
- c) You must cause the whole of the work to be licensed at no
- charge to all third parties under the terms of this License.
-
- d) If a facility in the modified Library refers to a function or a
- table of data to be supplied by an application program that uses
- the facility, other than as an argument passed when the facility
- is invoked, then you must make a good faith effort to ensure that,
- in the event an application does not supply such function or
- table, the facility still operates, and performs whatever part of
- its purpose remains meaningful.
-
- (For example, a function in a library to compute square roots has
- a purpose that is entirely well-defined independent of the
- application. Therefore, Subsection 2d requires that any
- application-supplied function or table used by this function must
- be optional: if the application does not supply it, the square
- root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library. To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License. (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.) Do not make any other change in
-these notices.
-
- Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
- This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
- 4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
- If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library". Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
- However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library". The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
- When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library. The
-threshold for this to be true is not precisely defined by law.
-
- If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work. (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
- Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-
- 6. As an exception to the Sections above, you may also combine or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
- You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License. You must supply a copy of this License. If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License. Also, you must do one
-of these things:
-
- a) Accompany the work with the complete corresponding
- machine-readable source code for the Library including whatever
- changes were used in the work (which must be distributed under
- Sections 1 and 2 above); and, if the work is an executable linked
- with the Library, with the complete machine-readable "work that
- uses the Library", as object code and/or source code, so that the
- user can modify the Library and then relink to produce a modified
- executable containing the modified Library. (It is understood
- that the user who changes the contents of definitions files in the
- Library will not necessarily be able to recompile the application
- to use the modified definitions.)
-
- b) Use a suitable shared library mechanism for linking with the
- Library. A suitable mechanism is one that (1) uses at run time a
- copy of the library already present on the user's computer system,
- rather than copying library functions into the executable, and (2)
- will operate properly with a modified version of the library, if
- the user installs one, as long as the modified version is
- interface-compatible with the version that the work was made with.
-
- c) Accompany the work with a written offer, valid for at
- least three years, to give the same user the materials
- specified in Subsection 6a, above, for a charge no more
- than the cost of performing this distribution.
-
- d) If distribution of the work is made by offering access to copy
- from a designated place, offer equivalent access to copy the above
- specified materials from the same place.
-
- e) Verify that the user has already received a copy of these
- materials or that you have already sent this user a copy.
-
- For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it. However, as a special exception,
-the materials to be distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
- It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system. Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-
- 7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
- a) Accompany the combined library with a copy of the same work
- based on the Library, uncombined with any other library
- facilities. This must be distributed under the terms of the
- Sections above.
-
- b) Give prominent notice with the combined library of the fact
- that part of it is a work based on the Library, and explaining
- where to find the accompanying uncombined form of the same work.
-
- 8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License. Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License. However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
- 9. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Library or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
- 10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties with
-this License.
-
- 11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all. For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply,
-and the section as a whole is intended to apply in other circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License may add
-an explicit geographical distribution limitation excluding those countries,
-so that distribution is permitted only in or among countries not thus
-excluded. In such case, this License incorporates the limitation as if
-written in the body of this License.
-
- 13. The Free Software Foundation may publish revised and/or new
-versions of the Lesser General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation. If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-
- 14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission. For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this. Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
- NO WARRANTY
-
- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Libraries
-
- If you develop a new library, and you want it to be of the greatest
-possible use to the public, we recommend making it free software that
-everyone can redistribute and change. You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms of the
-ordinary General Public License).
-
- To apply these terms, attach the following notices to the library. It is
-safest to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
-
- <one line to give the library's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the library, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the
- library `Frob' (a library for tweaking knobs) written by James Random Hacker.
-
- <signature of Ty Coon>, 1 April 1990
- Ty Coon, President of Vice
-
-That's all there is to it!
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/README.md b/www/wiki/vendor/wmde/hamcrest-html-matchers/README.md
deleted file mode 100644
index 2c98a58b..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/README.md
+++ /dev/null
@@ -1,106 +0,0 @@
-This is the set of Hamcrest matchers for HTML assertrions
-=========================================================
-[![Build Status](https://travis-ci.org/wmde/hamcrest-html-matchers.svg?branch=master)](https://travis-ci.org/wmde/hamcrest-html-matchers)
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/wmde/hamcrest-html-matchers/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/wmde/hamcrest-html-matchers/?branch=master)
-[![Code Coverage](https://scrutinizer-ci.com/g/wmde/hamcrest-html-matchers/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/wmde/hamcrest-html-matchers/?branch=master)
-
-Usage examples
---------------
-Hamcrest allows you to create pretty complicated and flexible assertions. Just remember:
-
-*"You can" does not mean "you should".*
-
-
-The following example shows how we can ensure that there is an HTML form and password entered in it is not weak:
-
-```php
-$html = '<div>
- <form>
- <input name="password" value="strong password"/>
- </form>
- </div>';
-
-assertThat($html, is(htmlPiece(
- havingChild(
- both(withTagName('form'))
- ->andAlso(
- havingDirectChild(
- allOf(
- withTagName('input'),
- withAttribute('name')->havingValue('password'),
- withAttribute('value')->havingValue(not('weak password')))))))));
-```
-Usage limitations:
- * Each HTML assertion starts with `htmlPiece()` call (`is()` can be used to improve readability)
- * One of `havingRootElement()`, `havingDirectChild()` or `havingChild()` needed to be passed as an argument to `htmlPiece()`
-
-Documentation
--------------
-Information about general Hamcrest usage can be found at [Hamcrest github repository](https://github.com/hamcrest/hamcrest-php).
-
-
-Available Matchers
-------------------
-* `htmlPiece()` - checks that string is a valid HTML, parses it and passes control to given matcher if one present
- ```php
- assertThat('<p></p>', is(htmlPiece())); // Just checking that string is a valid piece of HTML
- ```
-* `havingRootElement` - checks given constraint against root element of HTML. *NOTE: Can be passed only to `htmlPiece()`*
- ```php
- assertThat('<p></p>', htmlPiece(havingRootElement(withTagName('p'))));
- ```
-
-* `havingDirectChild` - checks given constraint against direct children
- ```php
- assertThat('<p><b></b></p>', htmlPiece(havingRootElement(havingDirectChild(withTagName('b')))));
- ```
-
-* `havingChild` - checks given constraint against all children
- ```php
- assertThat('<p><b></b></p>', htmlPiece(havingChild(withTagName('b'))));
- ```
-
-* `withTagName` - checks given constraint against tag name
- ```php
- assertThat('<p><b></b></p>', htmlPiece(havingChild(withTagName(
- either(equalTo('i'))->orElse(equalTo('b'))
- ))));
- ```
-
-* `withAttribute` - checks given constraint against elements attributes comparing names and values
- ```php
- assertThat('<p><input required></p>', htmlPiece(havingChild(withAttribute('required'))));
- ```
- ```php
- assertThat('<p><input data-value="some data"></p>', htmlPiece(havingChild(
- withAttribute(startsWith('data-'))->havingValue('some data'))));
- ```
-
-* `withClass` - checks given constraint against element's class list
- ```php
- assertThat('<p class="class1 class2 class3"></p>', htmlPiece(havingChild(
- withClass('class2'))));
- ```
-
-* `havingTextContents` - checks given constraint against elements text contents
- ```php
- assertThat('<div><p>this is Some Text</p></div>', htmlPiece(havingChild(
- havingTextContents(containsString('some text')->ignoringCase()))));
- ```
-
-* `tagMatchingOutline` - tolerantly checks that tag matches given *outline* (*outline* - tag representation in HTML format)\
-
- That means:
- * Element's tag name is equal to outline's tag name
- * Element has all the attributes that outline has with the same values. If element has more attributes than outline it still matches.
- * **NOTE:** Attribute `class` is treated in a different manner (see further).
- * **NOTE:** If attribute outlined is boolean, then its value in element won't be checked, just presence.
- * Element has all html classes that outline has.
-
- This will pass:
- ```php
- assertThat('<form><input id="id-pass" name="password" class="pretty green" required="required"></form>',
- htmlPiece(havingChild(
- tagMatchingOutline('<input name="password" class="green" required>')
- )));
- ```
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/composer.json b/www/wiki/vendor/wmde/hamcrest-html-matchers/composer.json
deleted file mode 100644
index f88da5bb..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/composer.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "name": "wmde/hamcrest-html-matchers",
- "license": "LGPL-2.1",
- "type": "library",
- "description": "Set of Hamcrest matchers for HTML assertrions ",
- "authors": [
- {
- "name": "Aleksey Bekh-Ivanov"
- }
- ],
- "require": {
- "php": ">=5.5",
- "ext-mbstring": "*",
- "hamcrest/hamcrest-php": "^1.1.1||^2.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.8"
- },
- "autoload": {
- "psr-4": {
- "WMDE\\HamcrestHtml\\": "src/"
- }
- },
- "autoload-dev": {
- "files": [
- "vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php"
- ],
- "psr-4": {
- "WMDE\\HamcrestHtml\\Test\\": "tests/"
- }
- },
- "scripts": {
- "ci": [
- "phpunit"
- ]
- },
- "extra": {
- "branch-alias": {
- "dev-master": "0.1.x-dev"
- }
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/phpunit.xml.dist b/www/wiki/vendor/wmde/hamcrest-html-matchers/phpunit.xml.dist
deleted file mode 100644
index 6e8ffc24..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/phpunit.xml.dist
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit bootstrap="tests/bootstrap.php"
- backupGlobals="false"
- backupStaticAttributes="false"
- colors="true"
- verbose="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- processIsolation="false"
- stopOnFailure="false">
- <testsuites>
- <testsuite name="Main test suite">
- <directory>tests</directory>
- </testsuite>
- </testsuites>
- <filter>
- <whitelist>
- <directory suffix=".php">src/</directory>
- </whitelist>
- </filter>
- <logging>
- <log type="tap" target="build/report.tap"/>
- <log type="junit" target="build/report.junit.xml"/>
- <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
- <log type="coverage-text" target="build/coverage.txt"/>
- <log type="coverage-clover" target="build/logs/clover.xml"/>
- </logging>
-</phpunit>
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/AttributeMatcher.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/AttributeMatcher.php
deleted file mode 100644
index 4905806f..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/AttributeMatcher.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\Util;
-
-class AttributeMatcher extends TagMatcher
-{
- /**
- * @var Matcher
- */
- private $attributeNameMatcher;
-
- /**
- * @var Matcher|null
- */
- private $valueMatcher;
-
- public static function withAttribute($attributeName) {
- return new static(Util::wrapValueWithIsEqual($attributeName));
- }
-
- /**
- * AttributeMatcher constructor.
- * @param \Hamcrest\Matcher $attributeNameMatcher
- */
- public function __construct(Matcher $attributeNameMatcher)
- {
- parent::__construct();
-
- $this->attributeNameMatcher = $attributeNameMatcher;
- }
-
- /**
- * @param Matcher|mixed $value
- * @return AttributeMatcher
- */
- public function havingValue($value)
- {
- //TODO: Throw exception if value is set
- $result = clone $this;
- $result->valueMatcher = Util::wrapValueWithIsEqual($value);
-
- return $result;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('with attribute ')
- ->appendDescriptionOf($this->attributeNameMatcher);
- if ($this->valueMatcher) {
- $description->appendText(' having value ')
- ->appendDescriptionOf($this->valueMatcher);
- }
- }
-
- /**
- * @param \DOMElement $item
- * @param Description $mismatchDescription
- *
- * @return bool
- */
- protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- /** @var \DOMAttr $attribute */
- foreach ($item->attributes as $attribute) {
- if ($this->valueMatcher) {
- if (
- $this->attributeNameMatcher->matches($attribute->name)
- && $this->valueMatcher->matches($attribute->value)
- ) {
- return true;
- }
- } else {
- if ($this->attributeNameMatcher->matches($attribute->name)) {
- return true;
- }
- }
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/ChildElementMatcher.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/ChildElementMatcher.php
deleted file mode 100644
index 796e6568..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/ChildElementMatcher.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\TypeSafeDiagnosingMatcher;
-
-class ChildElementMatcher extends TypeSafeDiagnosingMatcher
-{
- /**
- * @var Matcher|null
- */
- private $matcher;
-
- public static function havingChild(Matcher $elementMatcher = null) {
- return new static($elementMatcher);
- }
-
- public function __construct(Matcher $matcher = null)
- {
- parent::__construct(\DOMNode::class);
- $this->matcher = $matcher;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('having child ');
- if ($this->matcher) {
- $description->appendDescriptionOf($this->matcher);
- }
- }
-
- /**
- * @param \DOMDocument|\DOMNode $item
- * @param Description $mismatchDescription
- *
- * @return bool
- */
- protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- if ($item instanceof \DOMDocument) {
- $directChildren = iterator_to_array($item->documentElement->childNodes);
-
- $body = array_shift($directChildren);
- $directChildren = $body->childNodes;
- } else {
- $directChildren = $item->childNodes;
- }
-
- if ($directChildren->length === 0) {
- $mismatchDescription->appendText('having no children');
- return false;
- }
-
- if (!$this->matcher) {
- return $directChildren->length > 0;
- }
-
- foreach (new XmlNodeRecursiveIterator($directChildren) as $child) {
- if ($this->matcher && $this->matcher->matches($child)) {
- return true;
- }
- }
-
- $mismatchDescription->appendText('having no children ')->appendDescriptionOf($this->matcher);
- return false;
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/ClassMatcher.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/ClassMatcher.php
deleted file mode 100644
index baf4c481..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/ClassMatcher.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\Util;
-
-class ClassMatcher extends TagMatcher
-{
- /**
- * @var Matcher
- */
- private $classMatcher;
-
- public static function withClass($class) {
- return new static(Util::wrapValueWithIsEqual($class));
- }
-
- public function __construct(Matcher $class)
- {
- parent::__construct();
- $this->classMatcher = $class;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('with class ')->appendDescriptionOf($this->classMatcher);
- }
-
- /**
- * @param \DOMElement $item
- * @param Description $mismatchDescription
- *
- * @return bool
- */
- protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- $classAttribute = $item->getAttribute('class');
-
- $classes = preg_split('/\s+/u', $classAttribute);
- foreach ($classes as $class) {
- if ($this->classMatcher->matches($class)) {
- return true;
- }
- }
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/ComplexTagMatcher.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/ComplexTagMatcher.php
deleted file mode 100644
index a842b4e9..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/ComplexTagMatcher.php
+++ /dev/null
@@ -1,208 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-
-use Hamcrest\Core\AllOf;
-use Hamcrest\Core\IsEqual;
-use InvalidArgumentException;
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-
-class ComplexTagMatcher extends TagMatcher
-{
- /**
- * @link http://www.xmlsoft.org/html/libxml-xmlerror.html#xmlParserErrors
- * @link https://github.com/Chronic-Dev/libxml2/blob/683f296a905710ff285c28b8644ef3a3d8be9486/include/libxml/xmlerror.h#L257
- */
- const XML_UNKNOWN_TAG_ERROR_CODE = 801;
-
- /**
- * @var string
- */
- private $tagHtmlOutline;
-
- /**
- * @var Matcher
- */
- private $matcher;
-
- /**
- * @param string $htmlOutline
- * @return self
- */
- public static function tagMatchingOutline($htmlOutline)
- {
- return new self($htmlOutline);
- }
-
- public function __construct($tagHtmlRepresentation)
- {
- parent::__construct();
-
- $this->tagHtmlOutline = $tagHtmlRepresentation;
- $this->matcher = $this->createMatcherFromHtml($tagHtmlRepresentation);
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('tag matching outline `')
- ->appendText($this->tagHtmlOutline)
- ->appendText('` ');
- }
-
- /**
- * @param \DOMElement $item
- * @param Description $mismatchDescription
- *
- * @return bool
- */
- protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- $result = $this->matcher->matches($item);
- if (!$result) {
- $mismatchDescription->appendText('was `')
- ->appendText($this->elementToString($item))
- ->appendText('`');
- }
- return $result;
- }
-
- private function createMatcherFromHtml($htmlOutline)
- {
- $document = $this->parseHtml($htmlOutline);
- $targetTag = $this->getSingleTagFromThe($document);
-
- $this->assertTagDoesNotContainChildren($targetTag);
-
- $attributeMatchers = $this->createAttributeMatchers($htmlOutline, $targetTag);
- $classMatchers = $this->createClassMatchers($targetTag);
-
- return AllOf::allOf(
- new TagNameMatcher(IsEqual::equalTo($targetTag->tagName)),
- call_user_func_array([AllOf::class, 'allOf'], $attributeMatchers),
- call_user_func_array([AllOf::class, 'allOf'], $classMatchers)
- );
- }
-
- private function isUnknownTagError(\LibXMLError $error)
- {
- return $error->code === self::XML_UNKNOWN_TAG_ERROR_CODE;
- }
-
- private function isBooleanAttribute($inputHtml, $attributeName)
- {
- $quotedName = preg_quote($attributeName, '/');
-
- $attributeHasValueAssigned = preg_match("/\b{$quotedName}\s*=/ui", $inputHtml);
- return !$attributeHasValueAssigned;
- }
-
- /**
- * @param $html
- *
- * @return \DOMDocument
- * @throws \InvalidArgumentException
- */
- private function parseHtml($html)
- {
- $internalErrors = libxml_use_internal_errors(true);
- $document = new \DOMDocument();
-
- if (!@$document->loadHTML($html)) {
- throw new \InvalidArgumentException("There was some parsing error of `$html`");
- }
-
- $errors = libxml_get_errors();
- libxml_clear_errors();
- libxml_use_internal_errors($internalErrors);
-
- /** @var \LibXMLError $error */
- foreach ($errors as $error) {
- if ($this->isUnknownTagError($error)) {
- continue;
- }
-
- throw new \InvalidArgumentException(
- 'There was parsing error: ' . trim($error->message) . ' on line ' . $error->line
- );
- }
-
- return $document;
- }
-
- /**
- * @param \DOMDocument $document
- *
- * @return \DOMElement
- * @throws \InvalidArgumentException
- */
- private function getSingleTagFromThe(\DOMDocument $document)
- {
- $directChildren = iterator_to_array($document->documentElement->childNodes);
-
- $body = array_shift($directChildren);
- $directChildren = iterator_to_array($body->childNodes);
-
- if (count($directChildren) !== 1) {
- throw new InvalidArgumentException('Expected exactly 1 tag description, got ' . count($directChildren));
- }
-
- return $directChildren[0];
- }
-
- private function assertTagDoesNotContainChildren(\DOMElement $targetTag)
- {
- if ($targetTag->childNodes->length > 0) {
- throw new InvalidArgumentException('Nested elements are not allowed');
- }
- }
-
- /**
- * @param string $inputHtml
- * @param $targetTag
- * @return AttributeMatcher[]
- */
- private function createAttributeMatchers($inputHtml, \DOMElement $targetTag)
- {
- $attributeMatchers = [];
- /** @var \DOMAttr $attribute */
- foreach ($targetTag->attributes as $attribute) {
- if ($attribute->name === 'class') {
- continue;
- }
-
- $attributeMatcher = new AttributeMatcher(IsEqual::equalTo($attribute->name));
- if (!$this->isBooleanAttribute($inputHtml, $attribute->name)) {
- $attributeMatcher = $attributeMatcher->havingValue(IsEqual::equalTo($attribute->value));
- }
-
- $attributeMatchers[] = $attributeMatcher;
- }
- return $attributeMatchers;
- }
-
- /**
- * @param \DOMElement $targetTag
- * @return ClassMatcher[]
- */
- private function createClassMatchers($targetTag)
- {
- $classMatchers = [];
- $classValue = $targetTag->getAttribute('class');
- foreach (explode(' ', $classValue) as $expectedClass) {
- if ($expectedClass === '') {
- continue;
- }
- $classMatchers[] = new ClassMatcher(IsEqual::equalTo($expectedClass));
- }
- return $classMatchers;
- }
-
- private function elementToString(\DOMElement $element)
- {
- $newDocument = new \DOMDocument();
- $cloned = $element->cloneNode(true);
- $newDocument->appendChild($newDocument->importNode($cloned, true));
- return trim($newDocument->saveHTML());
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/DirectChildElementMatcher.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/DirectChildElementMatcher.php
deleted file mode 100644
index d5b01cf0..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/DirectChildElementMatcher.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-
-
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\TypeSafeDiagnosingMatcher;
-
-class DirectChildElementMatcher extends TypeSafeDiagnosingMatcher
-{
- /**
- * @var Matcher
- */
- private $matcher;
-
- public static function havingDirectChild(Matcher $elementMatcher = null) {
- return new static($elementMatcher);
- }
-
- public function __construct(Matcher $matcher = null)
- {
- parent::__construct(\DOMNode::class);
- $this->matcher = $matcher;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('having direct child ');
- if ($this->matcher) {
- $description->appendDescriptionOf($this->matcher);
- }
- }
-
- /**
- * @param \DOMDocument|\DOMNode $item
- * @param Description $mismatchDescription
- *
- * @return bool
- */
- protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- if ($item instanceof \DOMDocument) {
- $directChildren = iterator_to_array($item->documentElement->childNodes);
-
- $body = array_shift($directChildren);
- $directChildren = $body->childNodes;
- } else {
- $directChildren = $item->childNodes;
- }
-
- if ($directChildren->length === 0) {
- $mismatchDescription->appendText('with no direct children');
- return false;
- }
-
- $childWord = $directChildren->length === 1 ? 'child' : 'children';
-
- $mismatchDescription->appendText("with direct {$childWord} ");
-
- if (!$this->matcher) {
- return count($directChildren) !== 0;
- }
-
- foreach ($directChildren as $child) {
- if ($this->matcher && $this->matcher->matches($child)) {
- return true;
- }
- }
-
- $this->matcher->describeMismatch($child, $mismatchDescription);
-
- return false;
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/HtmlMatcher.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/HtmlMatcher.php
deleted file mode 100644
index 055b1cc0..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/HtmlMatcher.php
+++ /dev/null
@@ -1,111 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-
-use Hamcrest\Description;
-use Hamcrest\DiagnosingMatcher;
-use Hamcrest\Matcher;
-
-class HtmlMatcher extends DiagnosingMatcher
-{
- /**
- * @link http://www.xmlsoft.org/html/libxml-xmlerror.html#xmlParserErrors
- * @link https://github.com/Chronic-Dev/libxml2/blob/683f296a905710ff285c28b8644ef3a3d8be9486/include/libxml/xmlerror.h#L257
- */
- const XML_UNKNOWN_TAG_ERROR_CODE = 801;
-
- const SCRIPT_BODY_REPLACEMENT = 'Contents were removed by HtmlMatcher';
-
- /**
- * @var Matcher
- */
- private $elementMatcher;
-
- /**
- * @param Matcher $elementMatcher
- *
- * @return HtmlMatcher
- */
- public static function htmlPiece(Matcher $elementMatcher = null)
- {
- return new static($elementMatcher);
- }
-
- private function __construct(Matcher $elementMatcher = null)
- {
- $this->elementMatcher = $elementMatcher;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('valid html piece ');
- if ($this->elementMatcher) {
- $description->appendDescriptionOf($this->elementMatcher);
- }
- }
-
- protected function matchesWithDiagnosticDescription($html, Description $mismatchDescription)
- {
- $internalErrors = libxml_use_internal_errors(true);
- $document = new \DOMDocument();
-
- $html = $this->stripScriptsContents($html);
-
- if (!@$document->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'))) {
- $mismatchDescription->appendText('there was some parsing error');
- return false;
- }
-
- $errors = libxml_get_errors();
- libxml_clear_errors();
- libxml_use_internal_errors($internalErrors);
-
- $result = true;
- /** @var \LibXMLError $error */
- foreach ($errors as $error) {
- if ($this->isUnknownTagError($error)) {
- continue;
- }
-
- $mismatchDescription->appendText('there was parsing error: ')
- ->appendText(trim($error->message))
- ->appendText(' on line ')
- ->appendText($error->line);
- $result = false;
- }
-
- if ($result === false) {
- return $result;
- }
- $mismatchDescription->appendText('valid html piece ');
-
- if ($this->elementMatcher) {
- $result = $this->elementMatcher->matches($document);
- $this->elementMatcher->describeMismatch($document, $mismatchDescription);
- }
-
- $mismatchDescription->appendText("\nActual html:\n")->appendText($html);
-
- return $result;
- }
-
- private function isUnknownTagError(\LibXMLError $error)
- {
- return $error->code === self::XML_UNKNOWN_TAG_ERROR_CODE;
- }
-
- /**
- * @param string $html
- * @return string
- */
- private function stripScriptsContents($html)
- {
- preg_match_all("#(<script.*>).*</script>#sU", $html, $scripts);
- foreach ($scripts[0] as $index => $script) {
- $openTag = $scripts[1][$index];
- $replacement = $openTag . self::SCRIPT_BODY_REPLACEMENT . '</script>';
- $html = str_replace($script, $replacement, $html);
- }
- return $html;
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/RootElementMatcher.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/RootElementMatcher.php
deleted file mode 100644
index 6dc4b3d7..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/RootElementMatcher.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\TypeSafeDiagnosingMatcher;
-
-class RootElementMatcher extends TypeSafeDiagnosingMatcher
-{
- /**
- * @var Matcher
- */
- private $tagMatcher;
-
- /**
- * @param Matcher|null $tagMatcher
- *
- * @return static
- */
- public static function havingRootElement(Matcher $tagMatcher = null) {
- return new static($tagMatcher);
- }
-
- public function __construct(Matcher $tagMatcher = null)
- {
- parent::__construct(self::TYPE_OBJECT, \DOMDocument::class);
- $this->tagMatcher = $tagMatcher;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('having root element ');
- if ($this->tagMatcher) {
- $description->appendDescriptionOf($this->tagMatcher);
- }
- }
-
- /**
- * @param \DOMDocument $item
- * @param Description $mismatchDescription
- *
- * @return bool
- */
- protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- $DOMNodeList = iterator_to_array($item->documentElement->childNodes);
-
- $body = array_shift($DOMNodeList);
- $DOMNodeList = iterator_to_array($body->childNodes);
- if (count($DOMNodeList) > 1) {
- //TODO Test this description
- $mismatchDescription->appendText('having ' . count($DOMNodeList) . ' root elements ');
- return false;
- }
-
- $target = array_shift($DOMNodeList);
- if (!$target) {
- //TODO Reproduce?
- $mismatchDescription->appendText('having no root elements ');
- return false;
- }
- if ($this->tagMatcher) {
- $mismatchDescription->appendText('root element ');
- $this->tagMatcher->describeMismatch($target, $mismatchDescription);
- return $this->tagMatcher->matches($target);
- }
-
- return (bool)$target;
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/TagMatcher.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/TagMatcher.php
deleted file mode 100644
index ed1500a5..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/TagMatcher.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-
-use Hamcrest\TypeSafeDiagnosingMatcher;
-
-abstract class TagMatcher extends TypeSafeDiagnosingMatcher
-{
- public function __construct()
- {
- parent::__construct(self::TYPE_OBJECT, \DOMElement::class);
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/TagNameMatcher.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/TagNameMatcher.php
deleted file mode 100644
index 51e61af5..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/TagNameMatcher.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\Util;
-
-class TagNameMatcher extends TagMatcher
-{
- /**
- * @var Matcher
- */
- private $tagNameMatcher;
-
- public static function withTagName($tagName) {
- return new static(Util::wrapValueWithIsEqual($tagName));
- }
-
- public function __construct(Matcher $tagNameMatcher)
- {
- parent::__construct();
- $this->tagNameMatcher = $tagNameMatcher;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('with tag name ')
- ->appendDescriptionOf($this->tagNameMatcher);
- }
-
- /**
- * @param \DOMElement $item
- * @param Description $mismatchDescription
- *
- * @return bool
- */
- protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- $mismatchDescription->appendText('tag name ');
- $this->tagNameMatcher->describeMismatch($item->tagName, $mismatchDescription);
- return $this->tagNameMatcher->matches($item->tagName);
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/TextContentsMatcher.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/TextContentsMatcher.php
deleted file mode 100644
index 215e8daa..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/TextContentsMatcher.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-use Hamcrest\Description;
-use Hamcrest\Matcher;
-use Hamcrest\Util;
-
-class TextContentsMatcher extends TagMatcher
-{
- /**
- * @var Matcher
- */
- private $matcher;
-
- public static function havingTextContents($text) {
- return new static(Util::wrapValueWithIsEqual($text));
- }
-
- public function __construct(Matcher $matcher)
- {
- parent::__construct();
- $this->matcher = $matcher;
- }
-
- public function describeTo(Description $description)
- {
- $description->appendText('having text contents ')->appendDescriptionOf($this->matcher);
- }
-
- /**
- * @param \DOMElement $item
- * @param Description $mismatchDescription
- *
- * @return bool
- */
- protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription)
- {
- return $this->matcher->matches($item->textContent);
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/XmlNodeRecursiveIterator.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/XmlNodeRecursiveIterator.php
deleted file mode 100644
index 24aee8e8..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/XmlNodeRecursiveIterator.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml;
-
-
-class XmlNodeRecursiveIterator extends \ArrayIterator
-{
- public function __construct(\DOMNodeList $nodeList)
- {
- $queue = $this->addElementsToQueue([], $nodeList);
- parent::__construct($queue);
- }
-
- /**
- * @param array $queue
- * @param \DOMNodeList $nodeList
- *
- * @return array New queue
- */
- private function addElementsToQueue(array $queue, \DOMNodeList $nodeList)
- {
- /** @var \DOMElement $node */
- foreach ($nodeList as $node) {
- $queue[] = $node;
- if ($node->childNodes !== null) {
- $queue = $this->addElementsToQueue($queue, $node->childNodes);
- }
- }
-
- return $queue;
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/functions.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/src/functions.php
deleted file mode 100644
index 5970442d..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/src/functions.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-use Hamcrest\Matcher;
-
-if (!function_exists('htmlPiece')) {
- /**
- * @param mixed $elementMatcher
- *
- * @return \WMDE\HamcrestHtml\HtmlMatcher
- */
- function htmlPiece(Matcher $elementMatcher = null) {
- return \WMDE\HamcrestHtml\HtmlMatcher::htmlPiece($elementMatcher);
- }
-}
-
-if (!function_exists('havingRootElement')) {
- function havingRootElement(Matcher $matcher = null) {
- return \WMDE\HamcrestHtml\RootElementMatcher::havingRootElement($matcher);
- }
-}
-
-if (!function_exists('havingDirectChild')) {
- function havingDirectChild(Matcher $elementMatcher = null) {
- return \WMDE\HamcrestHtml\DirectChildElementMatcher::havingDirectChild($elementMatcher);
- }
-}
-
-if (!function_exists('havingChild')) {
- function havingChild(Matcher $elementMatcher = null) {
- return \WMDE\HamcrestHtml\ChildElementMatcher::havingChild($elementMatcher);
- }
-}
-
-if (!function_exists('withTagName')) {
- /**
- * @param Matcher|string $tagName
- *
- * @return \WMDE\HamcrestHtml\TagNameMatcher
- */
- function withTagName($tagName) {
- return \WMDE\HamcrestHtml\TagNameMatcher::withTagName($tagName);
- }
-}
-
-if (!function_exists('withAttribute')) {
- /**
- * @param Matcher|string $attributeName
- *
- * @return \WMDE\HamcrestHtml\AttributeMatcher
- */
- function withAttribute($attributeName) {
- return \WMDE\HamcrestHtml\AttributeMatcher::withAttribute($attributeName);
- }
-}
-
-if (!function_exists('withClass')) {
- /**
- * @param Matcher|string $class
- *
- * @return \WMDE\HamcrestHtml\ClassMatcher
- */
- function withClass($class) {
- //TODO don't allow to call with empty string
-
- return \WMDE\HamcrestHtml\ClassMatcher::withClass($class);
- }
-}
-
-if (!function_exists('havingTextContents')) {
- /**
- * @param Matcher|string $text
- *
- * @return \WMDE\HamcrestHtml\TextContentsMatcher
- */
- function havingTextContents($text) {
- return \WMDE\HamcrestHtml\TextContentsMatcher::havingTextContents($text);
- }
-}
-
-if (!function_exists('tagMatchingOutline')) {
- /**
- * @param string $htmlOutline
- *
- * @return \WMDE\HamcrestHtml\ComplexTagMatcher
- */
- function tagMatchingOutline($htmlOutline) {
- return \WMDE\HamcrestHtml\ComplexTagMatcher::tagMatchingOutline($htmlOutline);
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/ComplexTagMatcherTest.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/ComplexTagMatcherTest.php
deleted file mode 100644
index d45c24d5..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/ComplexTagMatcherTest.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml\Test;
-
-use Hamcrest\AssertionError;
-use WMDE\HamcrestHtml\ComplexTagMatcher;
-
-/**
- * @covers WMDE\HamcrestHtml\ComplexTagMatcher
- */
-class ComplexTagMatcherTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @test
- */
- public function assertPasses_WhenTagInHtmlHasSameTagName() {
- $html = '<p></p>';
-
- assertThat($html, is(htmlPiece(havingChild(ComplexTagMatcher::tagMatchingOutline('<p/>')))));
- }
-
- /**
- * @test
- */
- public function assertFails_WhenTagInHtmlIsDiffersFromGivenTagName() {
- $html = '<a></a>';
-
- $this->setExpectedException(AssertionError::class);
- assertThat($html, is(htmlPiece(havingChild(ComplexTagMatcher::tagMatchingOutline('<p/>')))));
- }
-
- /**
- * @test
- */
- public function canNotCreateMatcherWithEmptyDescription() {
- $this->setExpectedException(\Exception::class);
- ComplexTagMatcher::tagMatchingOutline('');
- }
-
- /**
- * @test
- */
- public function canNotCreateMatcherExpectingTwoElements() {
- $this->setExpectedException(\Exception::class);
- ComplexTagMatcher::tagMatchingOutline('<p></p><b></b>');
- }
-
- /**
- * @test
- */
- public function canNotCreateMatcherWithChildElement() {
- $this->setExpectedException(\Exception::class);
- ComplexTagMatcher::tagMatchingOutline('<p><b></b></p>');
- }
-
- /**
- * @test
- */
- public function assertFails_WhenTagInHtmlDoesNotHaveExpectedAttribute() {
- $html = '<p></p>';
-
- $this->setExpectedException(AssertionError::class);
- assertThat($html, is(htmlPiece(havingChild(
- ComplexTagMatcher::tagMatchingOutline('<p id="some-id"/>')))));
- }
-
- /**
- * @test
- */
- public function assertPasses_WhenTagInHtmlHasExpectedAttribute() {
- $html = '<p id="some-id"></p>';
-
- assertThat($html, is(htmlPiece(havingChild(
- ComplexTagMatcher::tagMatchingOutline('<p id="some-id"/>')))));
- }
-
- /**
- * @test
- */
- public function assertFails_WhenTagInHtmlDoesNotHaveAllExpectedAttribute() {
- $html = '<p id="some-id"></p>';
-
- $this->setExpectedException(AssertionError::class);
- assertThat($html, is(htmlPiece(havingChild(
- ComplexTagMatcher::tagMatchingOutline('<p id="some-id" onclick="void();"/>')))));
- }
-
- /**
- * @test
- */
- public function assertPasses_WhenExpectBooleanAttributeButItIsThereWithSomeValue() {
- $html = '<input required="anything">';
-
- assertThat($html, is(htmlPiece(havingChild(
- ComplexTagMatcher::tagMatchingOutline('<input required/>')))));
- }
-
- /**
- * @test
- */
- public function assertFails_WhenExpectAttributeWithEmptyValueButItIsNotEmpty() {
- $html = '<input attr1="something">';
-
- $this->setExpectedException(AssertionError::class);
- assertThat($html, is(htmlPiece(havingChild(
- ComplexTagMatcher::tagMatchingOutline('<input attr1=""/>')))));
- }
-
- /**
- * @test
- */
- public function assertPasses_WhenGivenTagHasExpectedClass() {
- $html = '<input class="class1 class2">';
-
- assertThat($html, is(htmlPiece(havingChild(
- ComplexTagMatcher::tagMatchingOutline('<input class="class2"/>')))));
- }
-
- /**
- * @test
- */
- public function assertFails_WhenGivenTagDoesNotHaveExpectedClass() {
- $html = '<input class="class1 class2">';
-
- $this->setExpectedException(AssertionError::class);
- assertThat($html, is(htmlPiece(havingChild(
- ComplexTagMatcher::tagMatchingOutline('<input class="class3"/>')))));
- }
-
- /**
- * @test
- */
- public function toleratesExtraSpacesInClassDescription() {
- $html = '<input class="class1">';
-
- assertThat($html, is(htmlPiece(havingChild(
- ComplexTagMatcher::tagMatchingOutline('<input class=" class1 "/>')))));
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/FunctionsTest.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/FunctionsTest.php
deleted file mode 100644
index e09be83f..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/FunctionsTest.php
+++ /dev/null
@@ -1,200 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml\Test;
-
-use Hamcrest\AssertionError;
-use Hamcrest\Matcher;
-
-class FunctionsTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @test
- */
- public function havingRootElement_MultipleRootTags_ThrowsException()
- {
- //TODO Does it make sense?
- $html = '<p></p><p></p>';
-
- $this->setExpectedException(AssertionError::class);
- assertThat($html, is(htmlPiece(havingRootElement())));
- }
-
- /**
- * @test
- * @dataProvider dataProvider_ElementExists
- */
- public function matcherCanFindElement($html, $matcher) {
- assertThat($html, is(htmlPiece($matcher)));
- }
-
- /**
- * @test
- * @dataProvider dataProvider_ElementDoesNotExist
- */
- public function matcherCantFindElement($html, $matcher, Matcher $messageMatcher) {
- $thrownException = null;
- try {
- assertThat($html, is(htmlPiece($matcher)));
- } catch (\Exception $e) {
- $thrownException = $e;
- }
-
- assertThat($thrownException, is(anInstanceOf(AssertionError::class)));
- assertThat($thrownException->getMessage(), $messageMatcher);
- }
-
- public function dataProvider_ElementExists()
- {
- return [
- 'htmlPiece - simple case' => [
- '<p></p>',
- null
- ],
- 'havingRootElement - has root element' => [
- '<p></p>',
- havingRootElement()
- ],
- 'withTagName - simple case' => [
- '<p><b></b></p>',
- havingRootElement(withTagName('p'))
- ],
- 'havingDirectChild - without qualifier' => [
- '<p></p>',
- havingDirectChild()
- ],
- 'havingDirectChild - nested structure' => [
- '<p><b></b></p>',
- havingDirectChild(havingDirectChild(withTagName('b')))
- ],
- 'havingChild - target tag is not first' => [
- '<i></i><b></b>',
- havingChild(withTagName('b'))
- ],
- 'havingChild - target tag is nested' => [
- '<p><b><i></i></b></p>',
- havingChild(withTagName('i'))
- ],
- 'withAttribute - select element by attribute name only' => [
- '<p><input name="something"/></p>',
- havingChild(withAttribute('name'))
- ],
- 'withAttribute - select element by attribute name and value' => [
- '<p><input name="something"/></p>',
- havingChild(withAttribute('name')->havingValue('something'))
- ],
- 'withClass - exact match' => [
- '<p class="test-class"></p>',
- havingChild(withClass('test-class'))
- ],
- 'withClass - one of the classes' => [
- '<p class="class1 class2 class3"></p>',
- havingChild(withClass('class2'))
- ],
- 'withClass - classes separated with tab' => [
- "<p class='class1\tclass2\tclass3'></p>",
- havingChild(withClass('class2'))
- ],
- 'havingTextContents' => [
- '<p>this is some text</p>',
- havingChild(havingTextContents(containsString('some text')))
- ],
- 'havingTextContents - unicode text' => [
- '<p>какой-то текст</p>',
- havingChild(havingTextContents(containsString('какой-то текст')))
- ],
- 'tagMatchingOutline' => [
- '<form><input id="ip-password" class="pretty important" name="password"></form>',
- havingChild(tagMatchingOutline('<input name="password" class="important">'))
- ],
- ];
- }
-
- public function dataProvider_ElementDoesNotExist()
- {
- return [
- 'htmlPiece - messed up tags' => [
- '<p><a></p></a>',
- null,
- allOf(containsString('html piece'), containsString('there was parsing error'))
- ],
- 'htmlPiece - prints passed html on failure' => [
- '<p><a></a></p>',
- havingRootElement(withTagName('b')),
- containsString('<p><a></a></p>')
- ],
- 'withTagName - simple case' => [
- '<p><b></b></p>',
- havingRootElement(withTagName('b')),
- allOf(containsString('having root element'),
- containsString('with tag name "b"'),
- containsString('root element tag name was "p"')),
- ],
- 'havingDirectChild - no direct child' => [
- '<p></p>',
- havingDirectChild(havingDirectChild()),
- allOf(containsString('having direct child'),
- containsString('with direct child with no direct children')),
- ],
- 'havingDirectChild - single element' => [
- '<p></p>',
- havingDirectChild(withTagName('b')),
- allOf(containsString('having direct child'),
- containsString('with tag name "b"')),
- ],
- 'havingDirectChild - nested matcher' => [
- '<p><b></b></p>',
- havingDirectChild(havingDirectChild(withTagName('p'))),
- both(containsString('having direct child having direct child with tag name "p"'))
- ->andAlso(containsString('direct child with direct child tag name was "b"'))
- ],
- 'havingChild - no children' => [
- '<p></p>',
- havingDirectChild(havingChild()),
- both(containsString('having direct child having child'))
- ->andAlso(containsString('having no children'))
- ],
- 'havingChild - target tag is absent' => [
- '<p><b><i></i></b></p>',
- havingChild(withTagName('br')),
- both(containsString('having child with tag name "br"'))
- ->andAlso(containsString('having no children with tag name "br"'))
- ],
-
- 'withAttribute - select element by attribute name only' => [
- '<p><input name="something"/></p>',
- havingChild(withAttribute('value')),
- both(containsString('having child with attribute "value"'))
- ->andAlso(containsString('having no children with attribute "value"'))
- ],
- 'withAttribute - select element by attribute name and value' => [
- '<p><input name="something-else"/></p>',
- havingChild(withAttribute('name')->havingValue('something')),
- both(containsString('having child with attribute "name" having value "something"'))
- ->andAlso(containsString('having no children with attribute "name" having value "something"'))
- ],
- 'withClass - no class' => [
- '<p></p>',
- havingChild(withClass('test-class')),
- both(containsString('having child with class "test-class"'))
- ->andAlso(containsString('having no children with class "test-class"'))
- ],
- 'havingTextContents' => [
- '<div><p>this is some text</p></div>',
- havingChild(havingTextContents('this is another text')),
- both(containsString('having child having text contents "this is another text"'))
- ->andAlso(containsString('no children having text contents "this is another text"'))
- ],
- 'havingTextContents - does not respect text in comments;' => [
- '<div><!--commented text--></div>',
- havingChild(havingTextContents('commented text')),
- anything()
- ],
- 'tagMatchingOutline' => [
- '<input id="ip-password" class="pretty">',
- havingRootElement(tagMatchingOutline('<input name="password" class="important">')),
- both(containsString('matching outline `<input name="password" class="important">`'))
- ->andAlso(containsString('was `<input id="ip-password" class="pretty">`'))
- ],
- ];
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/HtmlMatcherTest.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/HtmlMatcherTest.php
deleted file mode 100644
index ea19e636..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/HtmlMatcherTest.php
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml\Test;
-
-use WMDE\HamcrestHtml\HtmlMatcher;
-
-/**
- * @covers WMDE\HamcrestHtml\HtmlMatcher
- */
-class HtmlMatcherTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @test
- * @dataProvider dataProvider_HtmlTagNamesIntroducedInHtml5
- */
- public function considersValidHtml_WhenUnknownForHtmlParserTagIsGiven($tagIntroducedInHtml5)
- {
- $html = "<$tagIntroducedInHtml5></$tagIntroducedInHtml5>";
-
- assertThat($html, is(HtmlMatcher::htmlPiece()));
- }
-
- public function dataProvider_HtmlTagNamesIntroducedInHtml5()
- {
- return [
- 'article' => ['article'],
- 'aside' => ['aside'],
- 'bdi' => ['bdi'],
- 'details' => ['details'],
- 'dialog' => ['dialog'],
- 'figcaption' => ['figcaption'],
- 'figure' => ['figure'],
- 'footer' => ['footer'],
- 'header' => ['header'],
- 'main' => ['main'],
- 'mark' => ['mark'],
- 'menuitem' => ['menuitem'],
- 'meter' => ['meter'],
- 'nav' => ['nav'],
- 'progress' => ['progress'],
- 'rp' => ['rp'],
- 'rt' => ['rt'],
- 'ruby' => ['ruby'],
- 'section' => ['section'],
- 'summary' => ['summary'],
- 'time' => ['time'],
- 'wbr' => ['wbr'],
- 'datalist' => ['datalist'],
- 'keygen' => ['keygen'],
- 'output' => ['output'],
- 'canvas' => ['canvas'],
- 'svg' => ['svg'],
- 'audio' => ['audio'],
- 'embed' => ['embed'],
- 'source' => ['source'],
- 'track' => ['track'],
- 'video' => ['video'],
- ];
- }
-
- /**
- * @test
- */
- public function considersValidHtml_WHtmlContainsScriptTagWithHtmlContents()
- {
- $html = "<div>
-<script type='x-template'>
- <span></span>
-</script>
-</div>";
-
- assertThat($html, is(HtmlMatcher::htmlPiece()));
- }
-
- /**
- * @test
- */
- public function addsSpecificTextInsideTheSciptTagsInsteadOfItsContents()
- {
- $html = "<div>
-<script type='x-template'>
- <span></span>
-</script>
-</div>";
-
- assertThat($html, is(htmlPiece(havingChild(
- both(withTagName('script'))
- ->andAlso(havingTextContents(HtmlMatcher::SCRIPT_BODY_REPLACEMENT))))));
- }
-
- /**
- * @test
- */
- public function doesNotTouchScriptTagAttributes()
- {
- $html = "<div>
-<script type='x-template' attr1='value1'>
- <span></span>
-</script>
-</div>";
-
- assertThat($html, is(htmlPiece(havingChild(
- allOf(
- withTagName('script'),
- withAttribute('type')->havingValue('x-template'),
- withAttribute('attr1')->havingValue('value1')
- )))));
- }
-
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/XmlNodeRecursiveIteratorTest.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/XmlNodeRecursiveIteratorTest.php
deleted file mode 100644
index 6ba27b32..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/XmlNodeRecursiveIteratorTest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-
-namespace WMDE\HamcrestHtml\Test;
-
-use WMDE\HamcrestHtml\XmlNodeRecursiveIterator;
-
-/**
- * @covers WMDE\HamcrestHtml\XmlNodeRecursiveIterator
- */
-class XmlNodeRecursiveIteratorTest extends \PHPUnit_Framework_TestCase
-{
- public function testIteratesAllElements_WhenFlatStructureGiven()
- {
- $DOMNodeList = $this->createDomNodeListFromHtml('<p></p>');
-
- $recursiveIterator = new XmlNodeRecursiveIterator($DOMNodeList);
-
- $tagNames = $this->collectTagNames($recursiveIterator);
- assertThat($tagNames, is(equalTo(['p'])));
- }
-
- public function testIteratesElementsInAnyOrder_WhenNestedStructureGiven()
- {
- $DOMNodeList = $this->createDomNodeListFromHtml('<a1><b1></b1><b2><c21></c21></b2></a1>');
-
- $recursiveIterator = new XmlNodeRecursiveIterator($DOMNodeList);
-
- $tagNames = $this->collectTagNames($recursiveIterator);
- assertThat($tagNames, is(containsInAnyOrder('a1', 'b1', 'b2', 'c21')));
- }
-
- private function createDomNodeListFromHtml($html)
- {
- $internalErrors = libxml_use_internal_errors(true);
- $DOMDocument = new \DOMDocument();
-
- if (!@$DOMDocument->loadHTML($html)) {
- throw new \RuntimeException('Filed to parse HTML');
- }
-
- libxml_clear_errors();
- libxml_use_internal_errors($internalErrors);
- $DOMNodeList = iterator_to_array($DOMDocument->documentElement->childNodes);
-
- $body = array_shift($DOMNodeList);
- return $body->childNodes;
- }
-
- /**
- * @param $recursiveIterator
- * @return array
- */
- protected function collectTagNames($recursiveIterator)
- {
- $array = iterator_to_array($recursiveIterator);
- $tagNames = array_map(function (\DOMElement $node) {
- return $node->tagName;
- }, $array);
- return $tagNames;
- }
-}
diff --git a/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/bootstrap.php b/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/bootstrap.php
deleted file mode 100644
index 2bcc433a..00000000
--- a/www/wiki/vendor/wmde/hamcrest-html-matchers/tests/bootstrap.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-
-/** @var $loader \Composer\Autoload\ClassLoader */
-$loader = require dirname(__DIR__) . '/vendor/autoload.php';
-
-require_once dirname(__DIR__) . '/src/functions.php';